Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa,ba,ca,y,da,ea,fa,Q,ha,ia,ja,ma,na,oa,R,ra,sa,ta,ua,wa,xa,ya,T,za,Aa,Ba,Ca,Da,X,Ea,Fa,Ga,Ha,Ka,La,Ma,Na,Pa,Qa,Ra,Wa,Xa,Ya,Za,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,mb,nb,ob,pb,qb,rb,sb,tb,ub,vb,wb,xb,yb,zb,Bb,Cb,Db,Eb,Fb,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={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(c){return c.__proto__}:function(c){return c.constructor.prototype});
(function(){function c(a,d,h,e){this.set(a,d,h,e)}function l(){this.Lb=this.Kb=this.Ob=this.Nb=this.Xb=this.Wb=this.wb=this.ub=0}function n(a,d,h,e){a<d?h<e?(I=a<h?a:h,E=d>e?d:e):(I=a<e?a:e,E=d>h?d:h):h<e?(I=d<h?d:h,E=a>e?a:e):(I=d<e?d:e,E=a>h?a:h)}function m(){this.items=this.ee=null;this.fi=0;C&&(this.ee=new Set);this.kh=[];this.Ue=!0}function k(a){G[P++]=a}function q(){this.T=this.pl=this.y=this.Sl=0}function b(a){this.ib=[];this.Cj=this.Ej=this.Fj=this.Dj=0;this.cj(a)}function a(a,d){this.Wl=
a;this.Vl=d;this.cells={}}function f(a,d){this.Wl=a;this.Vl=d;this.cells={}}function p(a,d,h){var e;return N.length?(e=N.pop(),e.Im=a,e.x=d,e.y=h,e):new aa(a,d,h)}function d(a,d,h){this.Im=a;this.x=d;this.y=h;this.Ab=new ba}function e(a,d,h){var e;return F.length?(e=F.pop(),e.Im=a,e.x=d,e.y=h,e):new ca(a,d,h)}function v(a,d,h){this.Im=a;this.x=d;this.y=h;this.Ab=[];this.Mg=!0;this.$d=new ba;this.qh=!1}function g(a,d){return a.Nd-d.Nd}y=function(a){window.console&&window.console.log&&window.console.log(a)};
da=function(a){window.console&&window.console.error&&window.console.error(a)};ea=function(a){return"undefined"===typeof a};fa=function(a){return"number"===typeof a};Q=function(a){return"string"===typeof a};ha=function(a){return 0<a&&0===(a-1&a)};ia=function(a){--a;for(var d=1;32>d;d<<=1)a=a|a>>d;return a+1};ja=function(a){return 0>a?-a:a};ma=function(a,d){return a>d?a:d};na=function(a,d){return a<d?a:d};oa=Math.PI;R=function(a){return 0<=a?a|0:(a|0)-1};ra=function(a){var d=a|0;return d===a?d:d+1};
sa=function(a,d,h,e,f,g,w,u){var D,p,r,b;a<h?(p=a,D=h):(p=h,D=a);f<w?(b=f,r=w):(b=w,r=f);if(D<b||p>r)return!1;d<e?(p=d,D=e):(p=e,D=d);g<u?(b=g,r=u):(b=u,r=g);if(D<b||p>r)return!1;D=f-a+w-h;p=g-d+u-e;a=h-a;d=e-d;f=w-f;g=u-g;u=ja(d*f-g*a);return ja(f*p-g*D)>u?!1:ja(a*p-d*D)<=u};c.prototype.set=function(a,d,h,e){this.left=a;this.top=d;this.right=h;this.bottom=e};c.prototype.xh=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};c.prototype.width=function(){return this.right-
this.left};c.prototype.height=function(){return this.bottom-this.top};c.prototype.offset=function(a,d){this.left+=a;this.top+=d;this.right+=a;this.bottom+=d;return this};c.prototype.normalize=function(){var a=0;this.left>this.right&&(a=this.left,this.left=this.right,this.right=a);this.top>this.bottom&&(a=this.top,this.top=this.bottom,this.bottom=a)};c.prototype.Np=function(a){return!(a.right<this.left||a.bottom<this.top||a.left>this.right||a.top>this.bottom)};c.prototype.Op=function(a,d,h){return!(a.right+
d<this.left||a.bottom+h<this.top||a.left+d>this.right||a.top+h>this.bottom)};c.prototype.Pb=function(a,d){return a>=this.left&&a<=this.right&&d>=this.top&&d<=this.bottom};c.prototype.Eh=function(a){return this.left===a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};ta=c;l.prototype.dh=function(a){this.ub=a.left;this.wb=a.top;this.Wb=a.right;this.Xb=a.top;this.Nb=a.right;this.Ob=a.bottom;this.Kb=a.left;this.Lb=a.bottom};l.prototype.rr=function(a,d){if(0===d)this.dh(a);else{var h=
Math.sin(d),e=Math.cos(d),f=a.left*h,g=a.top*h,w=a.right*h,h=a.bottom*h,u=a.left*e,D=a.top*e,p=a.right*e,e=a.bottom*e;this.ub=u-g;this.wb=D+f;this.Wb=p-g;this.Xb=D+w;this.Nb=p-h;this.Ob=e+w;this.Kb=u-h;this.Lb=e+f}};l.prototype.offset=function(a,d){this.ub+=a;this.wb+=d;this.Wb+=a;this.Xb+=d;this.Nb+=a;this.Ob+=d;this.Kb+=a;this.Lb+=d;return this};var I=0,E=0;l.prototype.Xo=function(a){n(this.ub,this.Wb,this.Nb,this.Kb);a.left=I;a.right=E;n(this.wb,this.Xb,this.Ob,this.Lb);a.top=I;a.bottom=E};l.prototype.Pb=
function(a,d){var h=this.ub,e=this.wb,f=this.Wb-h,g=this.Xb-e,w=this.Nb-h,u=this.Ob-e,D=a-h,p=d-e,r=f*f+g*g,b=f*w+g*u,g=f*D+g*p,v=w*w+u*u,c=w*D+u*p,k=1/(r*v-b*b),f=(v*g-b*c)*k,r=(r*c-b*g)*k;if(0<=f&&0<r&&1>f+r)return!0;f=this.Kb-h;g=this.Lb-e;r=f*f+g*g;b=f*w+g*u;g=f*D+g*p;k=1/(r*v-b*b);f=(v*g-b*c)*k;r=(r*c-b*g)*k;return 0<=f&&0<r&&1>f+r};l.prototype.Uc=function(a,d){if(d)switch(a){case 0:return this.ub;case 1:return this.Wb;case 2:return this.Nb;case 3:return this.Kb;case 4:return this.ub;default:return this.ub}else switch(a){case 0:return this.wb;
case 1:return this.Xb;case 2:return this.Ob;case 3:return this.Lb;case 4:return this.wb;default:return this.wb}};l.prototype.xq=function(){return(this.ub+this.Wb+this.Nb+this.Kb)/4};l.prototype.yq=function(){return(this.wb+this.Xb+this.Ob+this.Lb)/4};l.prototype.Th=function(a,d,h,e){if(this.Pb(a,d)||this.Pb(h,e))return!0;var f,g,w,u,p;for(p=0;4>p;p++)if(f=this.Uc(p,!0),g=this.Uc(p,!1),w=this.Uc(p+1,!0),u=this.Uc(p+1,!1),sa(a,d,h,e,f,g,w,u))return!0;return!1};l.prototype.Mp=function(a){var d=a.xq(),
h=a.yq();if(this.Pb(d,h))return!0;d=this.xq();h=this.yq();if(a.Pb(d,h))return!0;var e,f,g,w,u,p,r,b;for(r=0;4>r;r++)for(b=0;4>b;b++)if(d=this.Uc(r,!0),h=this.Uc(r,!1),e=this.Uc(r+1,!0),f=this.Uc(r+1,!1),g=a.Uc(b,!0),w=a.Uc(b,!1),u=a.Uc(b+1,!0),p=a.Uc(b+1,!1),sa(d,h,e,f,g,w,u,p))return!0;return!1};ua=l;wa=function(a,d){for(var h in d)d.hasOwnProperty(h)&&(a[h]=d[h]);return a};xa=function(a,d){var h,e;d=R(d);if(!(0>d||d>=a.length)){h=d;for(e=a.length-1;h<e;h++)a[h]=a[h+1];ya(a,e)}};ya=function(a,d){a.length=
d};T=function(a){ya(a,0)};za=function(a,d){T(a);var h,e;h=0;for(e=d.length;h<e;++h)a[h]=d[h]};Aa=function(a,d){a.push.apply(a,d)};Ba=function(a,d){var h,e;h=0;for(e=a.length;h<e;++h)if(a[h]===d)return h;return-1};Ca=function(a,d){var h=Ba(a,d);-1!==h&&xa(a,h)};Da=function(a,d,h){return a<d?d:a>h?h:a};X=function(a){return a/(180/oa)};Ea=function(a){return 180/oa*a};Fa=function(a){a%=360;0>a&&(a+=360);return a};Ga=function(a){a%=2*oa;0>a&&(a+=2*oa);return a};Ha=function(a){return Fa(Ea(a))};Ka=function(a){return Ga(X(a))};
La=function(a,d,h,e){return Math.atan2(e-d,h-a)};Ma=function(a,d){if(a===d)return 0;var h=Math.sin(a),e=Math.cos(a),f=Math.sin(d),g=Math.cos(d),h=h*f+e*g;return 1<=h?0:-1>=h?oa:Math.acos(h)};Na=function(a,d,h){var e=Math.sin(a),f=Math.cos(a),g=Math.sin(d),w=Math.cos(d);return Math.acos(e*g+f*w)>h?0<f*g-e*w?Ga(a+h):Ga(a-h):Ga(d)};Pa=function(a,d){var h=Math.sin(a),e=Math.cos(a),f=Math.sin(d),g=Math.cos(d);return 0>=e*f-h*g};Qa=function(a,d,h,e,f,g){if(0===h)return g?a:d;var w=Math.sin(h);h=Math.cos(h);
a-=e;d-=f;var u=a*w;a=a*h-d*w;d=d*h+u;return g?a+e:d+f};Ra=function(a,d,h,e){a=h-a;d=e-d;return Math.sqrt(a*a+d*d)};Wa=function(a,d){return!a!==!d};Xa=function(a){for(var d in a)if(a.hasOwnProperty(d))return!0;return!1};Ya=function(a){for(var d in a)a.hasOwnProperty(d)&&delete a[d]};var A=+new Date;Za=function(){if("undefined"!==typeof window.performance){var a=window.performance;if("undefined"!==typeof a.now)return a.now();if("undefined"!==typeof a.webkitNow)return a.webkitNow();if("undefined"!==
typeof a.mozNow)return a.mozNow();if("undefined"!==typeof a.msNow)return a.msNow()}return Date.now()-A};var h=!1,r=h=!1,x=!1;"undefined"!==typeof window&&(h=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),h=!h&&/safari/i.test(navigator.userAgent),r=/(iphone|ipod|ipad)/i.test(navigator.userAgent),x=window.c2ejecta);var C=!h&&!x&&!r&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;m.prototype.contains=function(a){return this.re()?!1:C?this.ee.has(a):this.items&&
this.items.hasOwnProperty(a)};m.prototype.add=function(a){if(C)this.ee.has(a)||(this.ee.add(a),this.Ue=!1);else{var d=a.toString(),h=this.items;h?h.hasOwnProperty(d)||(h[d]=a,this.fi++,this.Ue=!1):(this.items={},this.items[d]=a,this.fi=1,this.Ue=!1)}};m.prototype.remove=function(a){if(!this.re())if(C)this.ee.has(a)&&(this.ee["delete"](a),this.Ue=!1);else if(this.items){a=a.toString();var d=this.items;d.hasOwnProperty(a)&&(delete d[a],this.fi--,this.Ue=!1)}};m.prototype.clear=function(){this.re()||
(C?this.ee.clear():(this.items=null,this.fi=0),T(this.kh),this.Ue=!0)};m.prototype.re=function(){return 0===this.count()};m.prototype.count=function(){return C?this.ee.size:this.fi};var G=null,P=0;m.prototype.$w=function(){if(!this.Ue){if(C)T(this.kh),G=this.kh,P=0,this.ee.forEach(k),G=null,P=0;else{var a=this.kh;T(a);var d,h=0,e=this.items;if(e)for(d in e)e.hasOwnProperty(d)&&(a[h++]=e[d])}this.Ue=!0}};m.prototype.nd=function(){this.$w();return this.kh};ba=m;new ba;$a=function(a,d){C?ab(a,d.ee):
bb(a,d.nd())};ab=function(a,d){var h,e,f,g;e=h=0;for(f=a.length;h<f;++h)g=a[h],d.has(g)||(a[e++]=g);ya(a,e)};bb=function(a,d){var h,e,f,g;e=h=0;for(f=a.length;h<f;++h)g=a[h],-1===Ba(d,g)&&(a[e++]=g);ya(a,e)};q.prototype.add=function(a){this.y=a-this.Sl;this.pl=this.T+this.y;this.Sl=this.pl-this.T-this.y;this.T=this.pl};q.prototype.reset=function(){this.T=this.pl=this.y=this.Sl=0};cb=q;db=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};b.prototype.cj=function(a){this.br=a;this.gd=
a.length/2;this.ib.length=a.length;this.Hj=this.Ij=-1;this.$o=0};b.prototype.Zf=function(){return!this.br.length};b.prototype.Ha=function(){for(var a=this.ib,d=a[0],h=d,e=a[1],f=e,g,w,u=1,p=this.gd;u<p;++u)w=2*u,g=a[w],w=a[w+1],g<d&&(d=g),g>h&&(h=g),w<e&&(e=w),w>f&&(f=w);this.Dj=d;this.Ej=h;this.Fj=e;this.Cj=f};b.prototype.dh=function(a,d,h){this.ib.length=8;this.gd=4;var e=this.ib;e[0]=a.left-d;e[1]=a.top-h;e[2]=a.right-d;e[3]=a.top-h;e[4]=a.right-d;e[5]=a.bottom-h;e[6]=a.left-d;e[7]=a.bottom-h;
this.Ij=a.right-a.left;this.Hj=a.bottom-a.top;this.Ha()};b.prototype.bh=function(a,d,h,e,f){this.ib.length=8;this.gd=4;var g=this.ib;g[0]=a.ub-d;g[1]=a.wb-h;g[2]=a.Wb-d;g[3]=a.Xb-h;g[4]=a.Nb-d;g[5]=a.Ob-h;g[6]=a.Kb-d;g[7]=a.Lb-h;this.Ij=e;this.Hj=f;this.Ha()};b.prototype.qr=function(a){this.gd=a.gd;za(this.ib,a.ib);this.Dj=a.Dj;this.Fj-a.Fj;this.Ej=a.Ej;this.Cj=a.Cj};b.prototype.Ef=function(a,d,h){if(this.Ij!==a||this.Hj!==d||this.$o!==h){this.Ij=a;this.Hj=d;this.$o=h;var e,f,g,w,u,p=0,r=1,b=this.br,
v=this.ib;0!==h&&(p=Math.sin(h),r=Math.cos(h));h=0;for(g=this.gd;h<g;h++)e=2*h,f=e+1,w=b[e]*a,u=b[f]*d,v[e]=w*r-u*p,v[f]=u*r+w*p;this.Ha()}};b.prototype.Pb=function(a,d){var h=this.ib;if(a===h[0]&&d===h[1])return!0;var e,f,g,w=this.gd,u=this.Dj-110,p=this.Fj-101,r=this.Ej+131,b=this.Cj+120,v,c,k=0,n=0;for(e=0;e<w;e++)f=2*e,g=(e+1)%w*2,v=h[f],f=h[f+1],c=h[g],g=h[g+1],sa(u,p,a,d,v,f,c,g)&&k++,sa(r,b,a,d,v,f,c,g)&&n++;return 1===k%2||1===n%2};b.prototype.Sh=function(a,d,h){var e=a.ib,f=this.ib;if(this.Pb(e[0]+
d,e[1]+h)||a.Pb(f[0]-d,f[1]-h))return!0;var g,w,u,p,r,b,v,c,k,n,m,x;g=0;for(p=this.gd;g<p;g++)for(w=2*g,u=(g+1)%p*2,c=f[w],w=f[w+1],k=f[u],n=f[u+1],u=0,v=a.gd;u<v;u++)if(r=2*u,b=(u+1)%v*2,m=e[r]+d,r=e[r+1]+h,x=e[b]+d,b=e[b+1]+h,sa(c,w,k,n,m,r,x,b))return!0;return!1};b.prototype.Th=function(a,d,h,e,f,g){var w=this.ib;if(this.Pb(h-a,e-d))return!0;var u,p,r,b,v,c;u=0;for(p=this.gd;u<p;u++)if(r=2*u,b=(u+1)%p*2,v=w[r]+a,r=w[r+1]+d,c=w[b]+a,b=w[b+1]+d,sa(h,e,f,g,v,r,c,b))return!0;return!1};eb=b;a.prototype.ef=
function(a,d,h){var e;e=this.cells[a];return e?(e=e[d])?e:h?(e=p(this,a,d),this.cells[a][d]=e):null:h?(e=p(this,a,d),this.cells[a]={},this.cells[a][d]=e):null};a.prototype.fc=function(a){return R(a/this.Wl)};a.prototype.gc=function(a){return R(a/this.Vl)};a.prototype.update=function(a,d,h){var e,f,g,w,u;if(d)for(e=d.left,f=d.right;e<=f;++e)for(g=d.top,w=d.bottom;g<=w;++g)if(!h||!h.Pb(e,g))if(u=this.ef(e,g,!1))u.remove(a),u.re()&&(u.Ab.clear(),1E3>N.length&&N.push(u),this.cells[e][g]=null);if(h)for(e=
h.left,f=h.right;e<=f;++e)for(g=h.top,w=h.bottom;g<=w;++g)d&&d.Pb(e,g)||this.ef(e,g,!0).Om(a)};a.prototype.bl=function(a,d){var h,e,f,g,w,u;h=this.fc(a.left);f=this.gc(a.top);e=this.fc(a.right);for(w=this.gc(a.bottom);h<=e;++h)for(g=f;g<=w;++g)(u=this.ef(h,g,!1))&&u.dump(d)};fb=a;f.prototype.ef=function(a,d,h){var f;f=this.cells[a];return f?(f=f[d])?f:h?(f=e(this,a,d),this.cells[a][d]=f):null:h?(f=e(this,a,d),this.cells[a]={},this.cells[a][d]=f):null};f.prototype.fc=function(a){return R(a/this.Wl)};
f.prototype.gc=function(a){return R(a/this.Vl)};f.prototype.update=function(a,d,h){var e,f,g,w,u;if(d)for(e=d.left,f=d.right;e<=f;++e)for(g=d.top,w=d.bottom;g<=w;++g)if(!h||!h.Pb(e,g))if(u=this.ef(e,g,!1))u.remove(a),u.re()&&(u.reset(),1E3>F.length&&F.push(u),this.cells[e][g]=null);if(h)for(e=h.left,f=h.right;e<=f;++e)for(g=h.top,w=h.bottom;g<=w;++g)d&&d.Pb(e,g)||this.ef(e,g,!0).Om(a)};f.prototype.bl=function(a,d,h,e,f){var g,w;a=this.fc(a);d=this.gc(d);h=this.fc(h);for(g=this.gc(e);a<=h;++a)for(e=
d;e<=g;++e)(w=this.ef(a,e,!1))&&w.dump(f)};f.prototype.bw=function(a){var d,h,e,f,g;d=a.left;e=a.top;h=a.right;for(f=a.bottom;d<=h;++d)for(a=e;a<=f;++a)if(g=this.ef(d,a,!1))g.Mg=!1};gb=f;var N=[];d.prototype.re=function(){return this.Ab.re()};d.prototype.Om=function(a){this.Ab.add(a)};d.prototype.remove=function(a){this.Ab.remove(a)};d.prototype.dump=function(a){Aa(a,this.Ab.nd())};aa=d;var F=[];v.prototype.re=function(){if(!this.Ab.length)return!0;if(this.Ab.length>this.$d.count())return!1;this.tm();
return!0};v.prototype.Om=function(a){this.$d.contains(a)?(this.$d.remove(a),this.$d.re()&&(this.qh=!1)):this.Ab.length?(this.Ab[this.Ab.length-1].Td()>a.Td()&&(this.Mg=!1),this.Ab.push(a)):(this.Ab.push(a),this.Mg=!0)};v.prototype.remove=function(a){this.$d.add(a);this.qh=!0;30<=this.$d.count()&&this.tm()};v.prototype.tm=function(){this.qh&&(this.$d.count()===this.Ab.length?this.reset():($a(this.Ab,this.$d),this.$d.clear(),this.qh=!1))};v.prototype.nu=function(){this.Mg||(this.Ab.sort(g),this.Mg=
!0)};v.prototype.reset=function(){T(this.Ab);this.Mg=!0;this.$d.clear();this.qh=!1};v.prototype.dump=function(a){this.tm();this.nu();this.Ab.length&&a.push(this.Ab)};ca=v;var z="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");hb=function(a){return 0>=a||11<=a?"source-over":z[a-1]};ib=function(a,d,h){if(h)switch(a.Vb=h.ONE,a.Rb=h.ONE_MINUS_SRC_ALPHA,d){case 1:a.Vb=h.ONE;a.Rb=h.ONE;break;case 3:a.Vb=h.ONE;a.Rb=h.ZERO;break;
case 4:a.Vb=h.ONE_MINUS_DST_ALPHA;a.Rb=h.ONE;break;case 5:a.Vb=h.DST_ALPHA;a.Rb=h.ZERO;break;case 6:a.Vb=h.ZERO;a.Rb=h.SRC_ALPHA;break;case 7:a.Vb=h.ONE_MINUS_DST_ALPHA;a.Rb=h.ZERO;break;case 8:a.Vb=h.ZERO;a.Rb=h.ONE_MINUS_SRC_ALPHA;break;case 9:a.Vb=h.DST_ALPHA;a.Rb=h.ONE_MINUS_SRC_ALPHA;break;case 10:a.Vb=h.ONE_MINUS_DST_ALPHA,a.Rb=h.SRC_ALPHA}};jb=function(a){return Math.round(1E6*a)/1E6};kb=function(a,d){return"string"!==typeof a||"string"!==typeof d||a.length!==d.length?!1:a===d?!0:a.toLowerCase()===
d.toLowerCase()};mb=function(a){a=a.target;return!a||a===document||a===window||document&&document.body&&a===document.body||kb(a.tagName,"canvas")?!0:!1}})();var fc="undefined"!==typeof Float32Array?Float32Array:Array;function gc(c){var l=new fc(3);c&&(l[0]=c[0],l[1]=c[1],l[2]=c[2]);return l}
function hc(c){var l=new fc(16);c&&(l[0]=c[0],l[1]=c[1],l[2]=c[2],l[3]=c[3],l[4]=c[4],l[5]=c[5],l[6]=c[6],l[7]=c[7],l[8]=c[8],l[9]=c[9],l[10]=c[10],l[11]=c[11],l[12]=c[12],l[13]=c[13],l[14]=c[14],l[15]=c[15]);return l}function ic(c,l){l[0]=c[0];l[1]=c[1];l[2]=c[2];l[3]=c[3];l[4]=c[4];l[5]=c[5];l[6]=c[6];l[7]=c[7];l[8]=c[8];l[9]=c[9];l[10]=c[10];l[11]=c[11];l[12]=c[12];l[13]=c[13];l[14]=c[14];l[15]=c[15]}
function jc(c,l){var n=l[0],m=l[1];l=l[2];c[0]*=n;c[1]*=n;c[2]*=n;c[3]*=n;c[4]*=m;c[5]*=m;c[6]*=m;c[7]*=m;c[8]*=l;c[9]*=l;c[10]*=l;c[11]*=l}
function kc(c,l,n,m){m||(m=hc());var k,q,b,a,f,p,d,e,v=c[0],g=c[1];c=c[2];q=n[0];b=n[1];k=n[2];n=l[1];p=l[2];v===l[0]&&g===n&&c===p?(c=m,c[0]=1,c[1]=0,c[2]=0,c[3]=0,c[4]=0,c[5]=1,c[6]=0,c[7]=0,c[8]=0,c[9]=0,c[10]=1,c[11]=0,c[12]=0,c[13]=0,c[14]=0,c[15]=1):(n=v-l[0],p=g-l[1],d=c-l[2],e=1/Math.sqrt(n*n+p*p+d*d),n*=e,p*=e,d*=e,l=b*d-k*p,k=k*n-q*d,q=q*p-b*n,(e=Math.sqrt(l*l+k*k+q*q))?(e=1/e,l*=e,k*=e,q*=e):q=k=l=0,b=p*q-d*k,a=d*l-n*q,f=n*k-p*l,(e=Math.sqrt(b*b+a*a+f*f))?(e=1/e,b*=e,a*=e,f*=e):f=a=b=0,
m[0]=l,m[1]=b,m[2]=n,m[3]=0,m[4]=k,m[5]=a,m[6]=p,m[7]=0,m[8]=q,m[9]=f,m[10]=d,m[11]=0,m[12]=-(l*v+k*g+q*c),m[13]=-(b*v+a*g+f*c),m[14]=-(n*v+p*g+d*c),m[15]=1)}
(function(){function c(a,f,p){this.te=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.Ia=!!p;this.rk=this.Wh=!1;this.em=0;this.El=1;this.Bo=1E3;this.ix=(this.Bo-this.El)/32768;this.Tl=gc([0,0,100]);this.hq=gc([0,0,0]);this.Rr=gc([0,1,0]);this.sj=gc([1,1,1]);this.kp=!0;this.Mk=hc();this.Oc=hc();this.$m=hc();this.dm=hc();this.K=a;this.Ip()}function l(a,f,p){this.K=a;this.ej=f;this.name=p;this.dd=a.getAttribLocation(f,"aPos");this.of=a.getAttribLocation(f,
"aTex");this.fq=a.getUniformLocation(f,"matP");this.Ik=a.getUniformLocation(f,"matMV");this.Tg=a.getUniformLocation(f,"opacity");this.nn=a.getUniformLocation(f,"colorFill");this.gq=a.getUniformLocation(f,"samplerFront");this.Ai=a.getUniformLocation(f,"samplerBack");this.gg=a.getUniformLocation(f,"destStart");this.fg=a.getUniformLocation(f,"destEnd");this.Ci=a.getUniformLocation(f,"seconds");this.qn=a.getUniformLocation(f,"pixelWidth");this.pn=a.getUniformLocation(f,"pixelHeight");this.yi=a.getUniformLocation(f,
"layerScale");this.xi=a.getUniformLocation(f,"layerAngle");this.Di=a.getUniformLocation(f,"viewOrigin");this.Bi=a.getUniformLocation(f,"scrollPos");this.Jv=!!(this.qn||this.pn||this.Ci||this.Ai||this.gg||this.fg||this.yi||this.xi||this.Di||this.Bi);this.pq=this.qq=-999;this.Lk=1;this.lq=this.kq=0;this.nq=this.jq=this.iq=1;this.tq=this.sq=this.rq=this.vq=this.uq=this.mq=0;this.Zm=[];this.oq=hc();this.Tg&&a.uniform1f(this.Tg,1);this.nn&&a.uniform4f(this.nn,1,1,1,1);this.gq&&a.uniform1i(this.gq,0);this.Ai&&
a.uniform1i(this.Ai,1);this.gg&&a.uniform2f(this.gg,0,0);this.fg&&a.uniform2f(this.fg,1,1);this.yi&&a.uniform1f(this.yi,1);this.xi&&a.uniform1f(this.xi,0);this.Di&&a.uniform2f(this.Di,0,0);this.Bi&&a.uniform2f(this.Bi,0,0);this.Ci&&a.uniform1f(this.Ci,0);this.Sf=!1}function n(a,f){return a[0]===f[0]&&a[1]===f[1]&&a[2]===f[2]&&a[3]===f[3]&&a[4]===f[4]&&a[5]===f[5]&&a[6]===f[6]&&a[7]===f[7]&&a[8]===f[8]&&a[9]===f[9]&&a[10]===f[10]&&a[11]===f[11]&&a[12]===f[12]&&a[13]===f[13]&&a[14]===f[14]&&a[15]===
f[15]}function m(a,f){this.type=a;this.H=f;this.K=f.K;this.Ud=this.cc=this.Mq=0;this.aa=this.ld=null;this.sr=[]}var k=hc();c.prototype.Ip=function(){var a=this.K,f;this.$p=1;this.bg=this.jf=null;this.Oj=1;a.clearColor(0,0,0,0);a.clear(a.COLOR_BUFFER_BIT);a.enable(a.BLEND);a.blendFunc(a.ONE,a.ONE_MINUS_SRC_ALPHA);a.disable(a.CULL_FACE);a.disable(a.STENCIL_TEST);a.disable(a.DITHER);this.Ia?(a.enable(a.DEPTH_TEST),a.depthFunc(a.LEQUAL)):a.disable(a.DEPTH_TEST);this.aq=a.ONE;this.Zp=a.ONE_MINUS_SRC_ALPHA;
this.Cl=new Float32Array(8E3*(this.Ia?3:2));this.ql=new Float32Array(16E3);this.Xq=new Float32Array(32E3);this.Dn=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.Dn);a.bufferData(a.ARRAY_BUFFER,this.Xq.byteLength,a.DYNAMIC_DRAW);this.rj=Array(4);this.kj=Array(4);for(f=0;4>f;f++)this.rj[f]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.rj[f]),a.bufferData(a.ARRAY_BUFFER,this.Cl.byteLength,a.DYNAMIC_DRAW),this.kj[f]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.kj[f]),a.bufferData(a.ARRAY_BUFFER,
this.ql.byteLength,a.DYNAMIC_DRAW);this.ke=0;this.Ov=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.Ov);for(var p=new Uint16Array(12E3),d=f=0;12E3>f;)p[f++]=d,p[f++]=d+1,p[f++]=d+2,p[f++]=d,p[f++]=d+2,p[f++]=d+3,d+=4;a.bufferData(a.ELEMENT_ARRAY_BUFFER,p,a.STATIC_DRAW);this.En=this.gh=this.Le=0;this.$a=[];f=this.Ia?"attribute highp vec3 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, aPos.z, 1.0);\n\tvTex = aTex;\n}":
"attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}";p=this.yh({src:"varying mediump vec2 vTex;\nuniform lowp float opacity;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, vTex);\n\tgl_FragColor *= opacity;\n}"},f,"<default>");this.$a.push(p);p=this.yh({src:"uniform mediump sampler2D samplerFront;\nvarying lowp float opacity;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, gl_PointCoord);\n\tgl_FragColor *= opacity;\n}"},
"attribute vec4 aPos;\nvarying float opacity;\nuniform mat4 matP;\nuniform mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tgl_PointSize = aPos.z;\n\topacity = aPos.w;\n}","<point>");this.$a.push(p);p=this.yh({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},f,"<earlyz>");this.$a.push(p);p=this.yh({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"},
f,"<fill>");this.$a.push(p);for(var e in lc)lc.hasOwnProperty(e)&&this.$a.push(this.yh(lc[e],f,e));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,null);this.Te=[];this.je=0;this.Sb=!1;this.gp=this.mi=-1;this.Bg=null;this.qm=a.createFramebuffer();this.Sj=this.cl=null;this.Vo=!1;this.Ia&&(this.Sj=a.createRenderbuffer());this.xf=gc([0,0,0]);this.wq=a.getParameter(a.ALIASED_POINT_SIZE_RANGE)[1];2048<this.wq&&(this.wq=2048);this.uc(0)};l.prototype.uo=function(a){n(this.oq,a)||(ic(a,this.oq),this.K.uniformMatrix4fv(this.Ik,
!1,a))};c.prototype.yh=function(a,f,p){var d=this.K,e=d.createShader(d.FRAGMENT_SHADER);d.shaderSource(e,a.src);d.compileShader(e);if(!d.getShaderParameter(e,d.COMPILE_STATUS))return d.deleteShader(e),null;var b=d.createShader(d.VERTEX_SHADER);d.shaderSource(b,f);d.compileShader(b);if(!d.getShaderParameter(b,d.COMPILE_STATUS))return d.deleteShader(e),d.deleteShader(b),null;f=d.createProgram();d.attachShader(f,e);d.attachShader(f,b);d.linkProgram(f);if(!d.getProgramParameter(f,d.LINK_STATUS))return d.deleteShader(e),
d.deleteShader(b),d.deleteProgram(f),null;d.useProgram(f);d.deleteShader(e);d.deleteShader(b);p=new l(d,f,p);p.om=a.om||0;p.pm=a.pm||0;p.fp=!!a.fp;p.Gd=!!a.Gd;p.To=!!a.To;p.ba=a.ba||[];a=0;for(e=p.ba.length;a<e;a++)p.ba[a][1]=d.getUniformLocation(f,p.ba[a][0]),p.Zm.push(0),d.uniform1f(p.ba[a][1],0);return p};c.prototype.Dm=function(a){var f,p;f=0;for(p=this.$a.length;f<p;f++)if(this.$a[f].name===a)return f;return-1};c.prototype.$q=function(a,f,p){var d=this.Oc,e=this.Mk,b=[0,0,0,0,0,0,0,0];b[0]=d[0]*
a+d[4]*f+d[12];b[1]=d[1]*a+d[5]*f+d[13];b[2]=d[2]*a+d[6]*f+d[14];b[3]=d[3]*a+d[7]*f+d[15];b[4]=e[0]*b[0]+e[4]*b[1]+e[8]*b[2]+e[12]*b[3];b[5]=e[1]*b[0]+e[5]*b[1]+e[9]*b[2]+e[13]*b[3];b[6]=e[2]*b[0]+e[6]*b[1]+e[10]*b[2]+e[14]*b[3];b[7]=-b[2];0!==b[7]&&(b[7]=1/b[7],b[4]*=b[7],b[5]*=b[7],b[6]*=b[7],p[0]=(.5*b[4]+.5)*this.width,p[1]=(.5*b[5]+.5)*this.height)};c.prototype.pg=function(a,f,b){if(this.width!==a||this.height!==f||b){this.$e();b=this.K;this.width=a;this.height=f;b.viewport(0,0,a,f);kc(this.Tl,
this.hq,this.Rr,this.Oc);if(this.Ia){var d=-a/2;a=a/2;var e=f/2;f=-f/2;var c=this.El,g=this.Bo,k=this.Mk;k||(k=hc());var n=a-d,m=f-e,h=g-c;k[0]=2/n;k[1]=0;k[2]=0;k[3]=0;k[4]=0;k[5]=2/m;k[6]=0;k[7]=0;k[8]=0;k[9]=0;k[10]=-2/h;k[11]=0;k[12]=-(d+a)/n;k[13]=-(f+e)/m;k[14]=-(g+c)/h;k[15]=1;this.sj[0]=1;this.sj[1]=1}else f=a/f,d=this.El,a=this.Bo,k=this.Mk,g=d*Math.tan(45*Math.PI/360),f*=g,e=-f,c=-g,k||(k=hc()),n=f-e,m=g-c,h=a-d,k[0]=2*d/n,k[1]=0,k[2]=0,k[3]=0,k[4]=0,k[5]=2*d/m,k[6]=0,k[7]=0,k[8]=(f+e)/
n,k[9]=(g+c)/m,k[10]=-(a+d)/h,k[11]=-1,k[12]=0,k[13]=0,k[14]=-(a*d*2)/h,k[15]=0,d=[0,0],a=[0,0],this.$q(0,0,d),this.$q(1,1,a),this.sj[0]=1/(a[0]-d[0]),this.sj[1]=-1/(a[1]-d[1]);d=0;for(a=this.$a.length;d<a;d++)e=this.$a[d],e.Sf=!1,e.fq&&(b.useProgram(e.ej),b.uniformMatrix4fv(e.fq,!1,this.Mk));b.useProgram(this.$a[this.mi].ej);b.bindTexture(b.TEXTURE_2D,null);b.activeTexture(b.TEXTURE1);b.bindTexture(b.TEXTURE_2D,null);b.activeTexture(b.TEXTURE0);this.bg=this.jf=null;this.Sj&&(b.bindFramebuffer(b.FRAMEBUFFER,
this.qm),b.bindRenderbuffer(b.RENDERBUFFER,this.Sj),b.renderbufferStorage(b.RENDERBUFFER,b.DEPTH_COMPONENT16,this.width,this.height),this.Vo||(b.framebufferRenderbuffer(b.FRAMEBUFFER,b.DEPTH_ATTACHMENT,b.RENDERBUFFER,this.Sj),this.Vo=!0),b.bindRenderbuffer(b.RENDERBUFFER,null),b.bindFramebuffer(b.FRAMEBUFFER,null),this.cl=null)}};c.prototype.hd=function(){kc(this.Tl,this.hq,this.Rr,this.Oc);jc(this.Oc,this.sj)};c.prototype.translate=function(a,f){if(0!==a||0!==f){this.xf[0]=a;this.xf[1]=f;this.xf[2]=
0;var b=this.Oc,d=this.xf,e=d[0],c=d[1],d=d[2];b[12]=b[0]*e+b[4]*c+b[8]*d+b[12];b[13]=b[1]*e+b[5]*c+b[9]*d+b[13];b[14]=b[2]*e+b[6]*c+b[10]*d+b[14];b[15]=b[3]*e+b[7]*c+b[11]*d+b[15]}};c.prototype.scale=function(a,f){if(1!==a||1!==f)this.xf[0]=a,this.xf[1]=f,this.xf[2]=1,jc(this.Oc,this.xf)};c.prototype.el=function(a){if(0!==a){var f=this.Oc,b,d=Math.sin(a);a=Math.cos(a);var e=f[0],c=f[1],g=f[2],k=f[3],n=f[4],m=f[5],h=f[6],r=f[7];b?f!==b&&(b[8]=f[8],b[9]=f[9],b[10]=f[10],b[11]=f[11],b[12]=f[12],b[13]=
f[13],b[14]=f[14],b[15]=f[15]):b=f;b[0]=e*a+n*d;b[1]=c*a+m*d;b[2]=g*a+h*d;b[3]=k*a+r*d;b[4]=e*-d+n*a;b[5]=c*-d+m*a;b[6]=g*-d+h*a;b[7]=k*-d+r*a}};c.prototype.Rc=function(){if(!n(this.$m,this.Oc)){var a=this.Ec();a.type=5;a.aa?ic(this.Oc,a.aa):a.aa=hc(this.Oc);ic(this.Oc,this.$m);this.Sb=!1}};c.prototype.il=function(a){this.Ia&&(32760<a&&(a=32760),this.em=this.Tl[2]-this.El-a*this.ix)};m.prototype.Yt=function(){var a=this.K,f=this.H;0!==this.cc?(a.depthMask(!0),a.colorMask(!1,!1,!1,!1),a.disable(a.BLEND),
a.bindFramebuffer(a.FRAMEBUFFER,f.qm),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.clear(a.DEPTH_BUFFER_BIT),a.bindFramebuffer(a.FRAMEBUFFER,null),f.rk=!0):(a.depthMask(!1),a.colorMask(!0,!0,!0,!0),a.enable(a.BLEND),f.rk=!1)};m.prototype.bu=function(){this.K.bindTexture(this.K.TEXTURE_2D,this.ld)};m.prototype.cu=function(){var a=this.K;a.activeTexture(a.TEXTURE1);a.bindTexture(a.TEXTURE_2D,this.ld);a.activeTexture(a.TEXTURE0)};m.prototype.Zt=function(){var a=this.Mq,
f=this.H;f.Oj=a;f=f.Bg;f.Tg&&f.Lk!==a&&(f.Lk=a,this.K.uniform1f(f.Tg,a))};m.prototype.Tt=function(){this.K.drawElements(this.K.TRIANGLES,this.Ud,this.K.UNSIGNED_SHORT,this.cc)};m.prototype.Vt=function(){this.K.blendFunc(this.cc,this.Ud)};m.prototype.du=function(){var a,f,b,d=this.H.$a,e=this.H.gp;a=0;for(f=d.length;a<f;a++)b=d[a],a===e&&b.Ik?(b.uo(this.aa),b.Sf=!0):b.Sf=!1;ic(this.aa,this.H.dm)};m.prototype.Ut=function(){var a=this.K,f=this.H;this.ld?(f.bg===this.ld&&(a.activeTexture(a.TEXTURE1),
a.bindTexture(a.TEXTURE_2D,null),f.bg=null,a.activeTexture(a.TEXTURE0)),a.bindFramebuffer(a.FRAMEBUFFER,f.qm),f.rk||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,this.ld,0)):(f.Ia||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.bindFramebuffer(a.FRAMEBUFFER,null))};m.prototype.Rt=function(){var a=this.K,f=this.cc;0===f?(a.clearColor(this.aa[0],this.aa[1],this.aa[2],this.aa[3]),a.clear(a.COLOR_BUFFER_BIT)):1===f?(a.enable(a.SCISSOR_TEST),a.scissor(this.aa[0],
this.aa[1],this.aa[2],this.aa[3]),a.clearColor(0,0,0,0),a.clear(a.COLOR_BUFFER_BIT),a.disable(a.SCISSOR_TEST)):a.clear(a.DEPTH_BUFFER_BIT)};m.prototype.Xt=function(){var a=this.K;0!==this.cc?a.enable(a.DEPTH_TEST):a.disable(a.DEPTH_TEST)};m.prototype.St=function(){var a=this.K,f=this.H;f.Ia&&a.disable(a.DEPTH_TEST);var b=f.$a[1];a.useProgram(b.ej);!b.Sf&&b.Ik&&(b.uo(f.dm),b.Sf=!0);a.enableVertexAttribArray(b.dd);a.bindBuffer(a.ARRAY_BUFFER,f.Dn);a.vertexAttribPointer(b.dd,4,a.FLOAT,!1,0,0);a.drawArrays(a.POINTS,
this.cc/4,this.Ud);b=f.Bg;a.useProgram(b.ej);0<=b.dd&&(a.enableVertexAttribArray(b.dd),a.bindBuffer(a.ARRAY_BUFFER,f.rj[f.ke]),a.vertexAttribPointer(b.dd,f.Ia?3:2,a.FLOAT,!1,0,0));0<=b.of&&(a.enableVertexAttribArray(b.of),a.bindBuffer(a.ARRAY_BUFFER,f.kj[f.ke]),a.vertexAttribPointer(b.of,2,a.FLOAT,!1,0,0));f.Ia&&a.enable(a.DEPTH_TEST)};m.prototype.$t=function(){var a=this.K,f=this.H,b=f.$a[this.cc];f.gp=this.cc;f.Bg=b;a.useProgram(b.ej);!b.Sf&&b.Ik&&(b.uo(f.dm),b.Sf=!0);b.Tg&&b.Lk!==f.Oj&&(b.Lk=f.Oj,
a.uniform1f(b.Tg,f.Oj));0<=b.dd&&(a.enableVertexAttribArray(b.dd),a.bindBuffer(a.ARRAY_BUFFER,f.rj[f.ke]),a.vertexAttribPointer(b.dd,f.Ia?3:2,a.FLOAT,!1,0,0));0<=b.of&&(a.enableVertexAttribArray(b.of),a.bindBuffer(a.ARRAY_BUFFER,f.kj[f.ke]),a.vertexAttribPointer(b.of,2,a.FLOAT,!1,0,0))};m.prototype.Wt=function(){var a=this.aa;this.K.uniform4f(this.H.Bg.nn,a[0],a[1],a[2],a[3])};m.prototype.au=function(){var a,f,b=this.H.Bg,d=this.K;a=this.aa;b.Ai&&this.H.bg!==this.ld&&(d.activeTexture(d.TEXTURE1),
d.bindTexture(d.TEXTURE_2D,this.ld),this.H.bg=this.ld,d.activeTexture(d.TEXTURE0));var e=a[0];b.qn&&e!==b.qq&&(b.qq=e,d.uniform1f(b.qn,e));e=a[1];b.pn&&e!==b.pq&&(b.pq=e,d.uniform1f(b.pn,e));e=a[2];f=a[3];!b.gg||e===b.kq&&f===b.lq||(b.kq=e,b.lq=f,d.uniform2f(b.gg,e,f));e=a[4];f=a[5];!b.fg||e===b.iq&&f===b.jq||(b.iq=e,b.jq=f,d.uniform2f(b.fg,e,f));e=a[6];b.yi&&e!==b.nq&&(b.nq=e,d.uniform1f(b.yi,e));e=a[7];b.xi&&e!==b.mq&&(b.mq=e,d.uniform1f(b.xi,e));e=a[8];f=a[9];!b.Di||e===b.uq&&f===b.vq||(b.uq=e,
b.vq=f,d.uniform2f(b.Di,e,f));e=a[10];f=a[11];!b.Bi||e===b.rq&&f===b.sq||(b.rq=e,b.sq=f,d.uniform2f(b.Bi,e,f));e=a[12];b.Ci&&e!==b.tq&&(b.tq=e,d.uniform1f(b.Ci,e));if(b.ba.length)for(a=0,f=b.ba.length;a<f;a++)e=this.sr[a],e!==b.Zm[a]&&(b.Zm[a]=e,d.uniform1f(b.ba[a][1],e))};c.prototype.Ec=function(){this.je===this.Te.length&&this.Te.push(new m(0,this));return this.Te[this.je++]};c.prototype.$e=function(){if(0!==this.je&&!this.K.isContextLost()){var a=this.K;0<this.En&&(a.bindBuffer(a.ARRAY_BUFFER,
this.Dn),a.bufferSubData(a.ARRAY_BUFFER,0,this.Xq.subarray(0,this.En)),b&&0<=b.dd&&"<point>"===b.name&&a.vertexAttribPointer(b.dd,4,a.FLOAT,!1,0,0));if(0<this.Le){var b=this.Bg;a.bindBuffer(a.ARRAY_BUFFER,this.rj[this.ke]);a.bufferSubData(a.ARRAY_BUFFER,0,this.Cl.subarray(0,this.Le));b&&0<=b.dd&&"<point>"!==b.name&&a.vertexAttribPointer(b.dd,this.Ia?3:2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.kj[this.ke]);a.bufferSubData(a.ARRAY_BUFFER,0,this.ql.subarray(0,this.gh));b&&0<=b.of&&"<point>"!==
b.name&&a.vertexAttribPointer(b.of,2,a.FLOAT,!1,0,0)}for(var c,a=0,b=this.je;a<b;a++)switch(c=this.Te[a],c.type){case 1:c.Tt();break;case 2:c.bu();break;case 3:c.Zt();break;case 4:c.Vt();break;case 5:c.du();break;case 6:c.Ut();break;case 7:c.Rt();break;case 8:c.St();break;case 9:c.$t();break;case 10:c.au();break;case 11:c.cu();break;case 12:c.Wt();break;case 13:c.Xt();break;case 14:c.Yt()}this.En=this.gh=this.Le=this.je=0;this.rk=this.Sb=!1;this.ke++;4<=this.ke&&(this.ke=0)}};c.prototype.ng=function(a){if(a!==
this.$p&&!this.Wh){var b=this.Ec();b.type=3;this.$p=b.Mq=a;this.Sb=!1}};c.prototype.Gc=function(a){if(a!==this.jf){var b=this.Ec();b.type=2;this.jf=b.ld=a;this.Sb=!1}};c.prototype.uf=function(a,b){if((a!==this.aq||b!==this.Zp)&&!this.Wh){var c=this.Ec();c.type=4;c.cc=a;c.Ud=b;this.aq=a;this.Zp=b;this.Sb=!1}};c.prototype.ir=function(){this.uf(this.K.ONE,this.K.ONE_MINUS_SRC_ALPHA)};c.prototype.Xi=function(a,b,c,d,e,k,g,n){15992<=this.Le&&this.$e();var m=this.Le,l=this.gh,h=this.Cl,r=this.ql,x=this.em;
if(this.Sb)this.Te[this.je-1].Ud+=6;else{var q=this.Ec();q.type=1;q.cc=this.Ia?m:m/2*3;q.Ud=6;this.Sb=!0}this.Ia?(h[m++]=a,h[m++]=b,h[m++]=x,h[m++]=c,h[m++]=d,h[m++]=x,h[m++]=e,h[m++]=k,h[m++]=x,h[m++]=g,h[m++]=n,h[m++]=x):(h[m++]=a,h[m++]=b,h[m++]=c,h[m++]=d,h[m++]=e,h[m++]=k,h[m++]=g,h[m++]=n);r[l++]=0;r[l++]=0;r[l++]=1;r[l++]=0;r[l++]=1;r[l++]=1;r[l++]=0;r[l++]=1;this.Le=m;this.gh=l};c.prototype.ae=function(a,b,c,d,e,k,g,m,n){15992<=this.Le&&this.$e();var l=this.Le,h=this.gh,r=this.Cl,x=this.ql,
q=this.em;if(this.Sb)this.Te[this.je-1].Ud+=6;else{var G=this.Ec();G.type=1;G.cc=this.Ia?l:l/2*3;G.Ud=6;this.Sb=!0}var G=n.left,P=n.top,N=n.right;n=n.bottom;this.Ia?(r[l++]=a,r[l++]=b,r[l++]=q,r[l++]=c,r[l++]=d,r[l++]=q,r[l++]=e,r[l++]=k,r[l++]=q,r[l++]=g,r[l++]=m,r[l++]=q):(r[l++]=a,r[l++]=b,r[l++]=c,r[l++]=d,r[l++]=e,r[l++]=k,r[l++]=g,r[l++]=m);x[h++]=G;x[h++]=P;x[h++]=N;x[h++]=P;x[h++]=N;x[h++]=n;x[h++]=G;x[h++]=n;this.Le=l;this.gh=h};c.prototype.uc=function(a){if(this.mi!==a){if(!this.$a[a]){if(0===
this.mi)return;a=0}var b=this.Ec();b.type=9;this.mi=b.cc=a;this.Sb=!1}};c.prototype.Ui=function(a){a=this.$a[a];return!(!a.gg&&!a.fg)};c.prototype.Hn=function(a){a=this.$a[a];return!!(a.gg||a.fg||a.fp)};c.prototype.Gn=function(a){return this.$a[a].Gd};c.prototype.uw=function(a){a=this.$a[a];return 0!==a.om||0!==a.pm};c.prototype.rv=function(a){return this.$a[a].om};c.prototype.sv=function(a){return this.$a[a].pm};c.prototype.tv=function(a,b){return this.$a[a].ba[b][2]};c.prototype.Zk=function(a){return this.$a[a].To};
c.prototype.ah=function(a,b,c,d,e,k,g,m,n,l,h,r,x,q,G){var P=this.$a[this.mi],N,F;if(P.Jv||G.length){N=this.Ec();N.type=10;N.aa?ic(this.Oc,N.aa):N.aa=hc();F=N.aa;F[0]=b;F[1]=c;F[2]=d;F[3]=e;F[4]=k;F[5]=g;F[6]=m;F[7]=n;F[8]=l;F[9]=h;F[10]=r;F[11]=x;F[12]=q;P.Ai?N.ld=a:N.ld=null;if(G.length)for(c=N.sr,c.length=G.length,a=0,b=G.length;a<b;a++)c[a]=G[a];this.Sb=!1}};c.prototype.clear=function(a,b,c,d){var e=this.Ec();e.type=7;e.cc=0;e.aa||(e.aa=hc());e.aa[0]=a;e.aa[1]=b;e.aa[2]=c;e.aa[3]=d;this.Sb=!1};
c.prototype.clearRect=function(a,b,c,d){if(!(0>c||0>d)){var e=this.Ec();e.type=7;e.cc=1;e.aa||(e.aa=hc());e.aa[0]=a;e.aa[1]=b;e.aa[2]=c;e.aa[3]=d;this.Sb=!1}};c.prototype.lr=function(a){if(this.Ia&&(a=!!a,this.Wh!==a)){var b=this.Ec();b.type=14;b.cc=a?1:0;this.Sb=!1;this.Wh=a;this.cl=null;this.Wh?this.uc(2):this.uc(0)}};c.prototype.kr=function(a){if(this.Ia){var b=this.Ec();b.type=13;b.cc=a?1:0;this.Sb=!1}};c.prototype.sp=function(){ic(this.$m,k);this.hd();this.Rc();var a=this.width/2,b=this.height/
2;this.Xi(-a,b,a,b,a,-b,-a,-b);ic(k,this.Oc);this.Rc()};c.prototype.jr=function(a,b,c){this.uc(3);var d=this.Ec();d.type=12;d.aa||(d.aa=hc());d.aa[0]=a;d.aa[1]=b;d.aa[2]=c;d.aa[3]=1;this.Sb=!1};c.prototype.Qw=function(){this.uc(0)};c.prototype.Bw=function(){this.uc(2)};c.prototype.sw=function(){this.$e();this.K.flush()};var q=[],b={};c.prototype.Kt=function(){T(q);b={}};c.prototype.Fk=function(a,f,c,d){f=!!f;c=!!c;var e=a.src+","+f+","+c+(f?",undefined":""),k=null;if("undefined"!==typeof a.src&&b.hasOwnProperty(e))return k=
b[e],k.Gj++,k;this.$e();var g=this.K,m=ha(a.width)&&ha(a.height),k=g.createTexture();g.bindTexture(g.TEXTURE_2D,k);g.pixelStorei(g.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var n=g.RGBA,l=g.RGBA,h=g.UNSIGNED_BYTE;if(d&&!this.te)switch(d){case 1:l=n=g.RGB;break;case 2:h=g.UNSIGNED_SHORT_4_4_4_4;break;case 3:h=g.UNSIGNED_SHORT_5_5_5_1;break;case 4:l=n=g.RGB,h=g.UNSIGNED_SHORT_5_6_5}if(!m&&f){d=document.createElement("canvas");d.width=ia(a.width);d.height=ia(a.height);var r=d.getContext("2d");r.webkitImageSmoothingEnabled=
c;r.mozImageSmoothingEnabled=c;r.msImageSmoothingEnabled=c;r.imageSmoothingEnabled=c;r.drawImage(a,0,0,a.width,a.height,0,0,d.width,d.height);g.texImage2D(g.TEXTURE_2D,0,n,l,h,d)}else g.texImage2D(g.TEXTURE_2D,0,n,l,h,a);f?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_S,g.REPEAT),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,g.REPEAT)):(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_S,g.CLAMP_TO_EDGE),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,g.CLAMP_TO_EDGE));c?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,
g.LINEAR),m&&this.kp?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,g.LINEAR_MIPMAP_LINEAR),g.generateMipmap(g.TEXTURE_2D)):g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,g.LINEAR)):(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,g.NEAREST),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,g.NEAREST));g.bindTexture(g.TEXTURE_2D,null);this.jf=null;k.Df=a.width;k.Cf=a.height;k.Gj=1;k.Zo=e;q.push(k);return b[e]=k};c.prototype.Kc=function(a,b,c,d){this.$e();var e=this.K;this.te&&(d=!1);var k=
e.createTexture();e.bindTexture(e.TEXTURE_2D,k);e.texImage2D(e.TEXTURE_2D,0,e.RGBA,a,b,0,e.RGBA,d?e.UNSIGNED_SHORT_4_4_4_4:e.UNSIGNED_BYTE,null);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,c?e.LINEAR:e.NEAREST);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,c?e.LINEAR:e.NEAREST);e.bindTexture(e.TEXTURE_2D,null);this.jf=null;k.Df=a;k.Cf=b;q.push(k);return k};c.prototype.gx=
function(a,b,c){this.$e();var d=this.K;this.te&&(c=!1);d.bindTexture(d.TEXTURE_2D,b);d.pixelStorei(d.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);try{d.texImage2D(d.TEXTURE_2D,0,d.RGBA,d.RGBA,c?d.UNSIGNED_SHORT_4_4_4_4:d.UNSIGNED_BYTE,a)}catch(e){console&&console.error&&console.error("Error updating WebGL texture: ",e)}d.bindTexture(d.TEXTURE_2D,null);this.jf=null};c.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.Gj&&1<a.Gj?a.Gj--:(this.$e(),a===this.jf&&(this.K.bindTexture(this.K.TEXTURE_2D,
null),this.jf=null),a===this.bg&&(this.K.activeTexture(this.K.TEXTURE1),this.K.bindTexture(this.K.TEXTURE_2D,null),this.K.activeTexture(this.K.TEXTURE0),this.bg=null),Ca(q,a),"undefined"!==typeof a.Zo&&delete b[a.Zo],this.K.deleteTexture(a)))};c.prototype.jd=function(a){if(a!==this.cl){var b=this.Ec();b.type=6;this.cl=b.ld=a;this.Sb=!1}};nb=c})();
(function(){function c(a){if(a&&(a.getContext||a.dc)&&!a.c2runtime){a.c2runtime=this;var d=this;this.Vd=(this.Vh=/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.pc=!!a.dc;this.Pp="undefined"!==typeof window.AppMobi||
this.pc;this.xd=!!window.c2cocoonjs;this.yd=!!window.c2ejecta;this.xd&&(CocoonJS.App.onSuspended.addEventListener(function(){d.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){d.setSuspended(!1)}));this.yd&&(document.addEventListener("pagehide",function(){d.setSuspended(!0)}),document.addEventListener("pageshow",function(){d.setSuspended(!1)}),document.addEventListener("resize",function(){d.setSize(window.innerWidth,window.innerHeight)}));this.Da=this.pc||this.xd||this.yd;this.Yh=
/edge\//i.test(navigator.userAgent);this.te=(/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent))&&!this.Yh;this.Sp=/tizen/i.test(navigator.userAgent);this.pk=/android/i.test(navigator.userAgent)&&!this.Sp&&!this.te&&!this.Yh;this.Xp=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&!this.te&&!this.Yh;this.Xv=/ipad/i.test(navigator.userAgent);this.ei=this.Xp||this.Xv||this.yd;this.Uh=(/chrome/i.test(navigator.userAgent)||
/chromium/i.test(navigator.userAgent))&&!this.te&&!this.Yh;this.Qm=/amazonwebappplatform/i.test(navigator.userAgent);this.Rv=/firefox/i.test(navigator.userAgent);this.Uv=/safari/i.test(navigator.userAgent)&&!this.Uh&&!this.te&&!this.Yh;this.Vv=/windows/i.test(navigator.userAgent);this.gf="undefined"!==typeof window.c2nodewebkit||"undefined"!==typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.Vp=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);
this.Wv=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.Jg=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.Wm=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.Up=!!window.cr_windows10;this.Tp=this.Vp||this.Wv||this.Wm||this.Up;this.Qv=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.qk=this.pk&&!this.Uh&&!this.Vh&&!this.Rv&&!this.Qm&&!this.Da;this.devicePixelRatio=
1;this.Xf=this.Vd||this.Vh||this.Pp||this.xd||this.pk||this.ei||this.Jg||this.Wm||this.Qv||this.Sp||this.yd;this.Xf||(this.Xf=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));this.bi=!!(this.ei&&this.Vd&&window.indexedDB);this.Gp=null;this.Mv="";this.bi&&(this.Gp=cordova&&cordova.plugins&&cordova.plugins.CorHttpd?cordova.plugins.CorHttpd:null);"undefined"===typeof cr_is_preview||this.gf||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&
!/nwjs/i.test(navigator.userAgent)||(this.gf=!0);this.canvas=a;this.Ag=document.getElementById("c2canvasdiv");this.H=this.K=null;this.Hm="(unavailable)";this.Ia=!1;this.Kf=0;this.Aa=null;this.vm="";this.$j=!1;this.Jq=this.Kq=0;this.canvas.oncontextmenu=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.onselectstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.pc&&(window.c2runtime=this);this.gf&&(window.ondragover=function(a){a.preventDefault();return!1},window.ondrop=
function(a){a.preventDefault();return!1},window.nwgui&&window.nwgui.App.clearCache&&window.nwgui.App.clearCache());this.qk&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=a.width;this.height=a.height;this.R=this.width;this.P=this.height;this.Mj=this.width;this.Ah=this.height;this.si=window.innerWidth;this.ri=window.innerHeight;this.Vu=!1;this.Ca=!0;this.ai=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.G=[];this.Wa=
[];this.hn={};this.Ad=[];this.nm={};this.me=[];this.mh=[];this.ul=[];this.Kl=[];this.yt=[];this.Yp=this.eo=null;this.Hf={};this.Sm=this.ff=!1;this.zd=0;this.Rm=this.Um=!1;this.vd=[];this.Xh=!1;this.ue=this.Ub=this.Dk=this.Un="";this.ij=this.xr=!1;this.Zj=[];this.Ze=this.Jf=0;this.zq=30;this.cm=this.Ei=0;this.ug=1;this.ob=new cb;this.Me=new cb;this.Pk=this.ek=this.Nf=this.md=this.eg=this.um=this.wk=0;this.Ff=null;this.Tj=[];this.mm=[];this.Vj=-1;this.rn=[[]];this.po=this.Jk=0;this.al(null);this.Gh=
this.Dq=this.Li=0;this.jj=[];this.mo=this.Ln=-1;this.Og=!0;this.Hk=0;this.Zh=!1;this.Tw=0;this.zg=null;this.Wd=!1;this.Hq=new ba;this.wn=new ba;this.Iq=new ba;this.Zi=[];this.Kd=new eb([]);this.ho=new eb([]);this.Se=[];this.jk={};this.We={};this.Re={};this.lh={};this.Wo={};this.dq=this.Ck=this.gb=this.pb=this.cq=this.Bk=this.za=null;this.jh=this.Xm=!1;this.wm=[null,null];this.Of=0;this.rm="";this.xe={};this.hj=this.lf=null;this.Ar="";this.Ok=[];this.Aw()}}function l(a,d){return 128>=d?a[3]:256>=d?
a[2]:512>=d?a[1]:a[0]}function n(){try{return!!window.indexedDB}catch(a){return!1}}function m(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function k(a,d,h,e){try{var b=indexedDB.open("_C2SaveStates");b.onupgradeneeded=m;b.onerror=e;b.onsuccess=function(b){b=b.target.result;b.onerror=e;b.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,data:d}).onsuccess=h}}catch(f){e(f)}}function q(a,d,h){try{var e=indexedDB.open("_C2SaveStates");e.onupgradeneeded=m;e.onerror=
h;e.onsuccess=function(e){e=e.target.result;e.onerror=h;var b=e.transaction(["saves"]).objectStore("saves").get(a);b.onsuccess=function(){b.result?d(b.result.data):d(null)}}}catch(b){h(b)}}function b(){y("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?window.location.reload(!0):window.location=window.location+"?continuous"}function a(a){var d,h={};for(d in a)!a.hasOwnProperty(d)||a[d]instanceof ba||a[d]&&"undefined"!==typeof a[d].gy||
"spriteCreatedDestroyCallback"!==d&&(h[d]=a[d]);return h}var f=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;c.prototype.Aw=function(){var a=this;if(this.bi)this.Gp.startServer({port:0,localhost_only:!0},function(d){a.Mv=d;a.Ru(function(d){a.wi(JSON.parse(d))},function(){alert("Error fetching data.js")})},function(a){alert("error starting local server: "+a)});else{var d;this.Jg?d=new ActiveXObject("Microsoft.XMLHTTP"):
d=new XMLHttpRequest;var h="data.js";if(this.Vp||this.Jg||this.Wm||this.Up)h="data.json";d.open("GET",h,!0);var e=!1;if(!this.Da&&"response"in d&&"responseType"in d)try{d.responseType="json",e="json"===d.responseType}catch(b){e=!1}if(!e&&"responseType"in d)try{d.responseType="text"}catch(f){}if("overrideMimeType"in d)try{d.overrideMimeType("application/json; charset=utf-8")}catch(g){}this.Jg?d.onreadystatechange=function(){4===d.readyState&&a.wi(JSON.parse(d.responseText))}:(d.onload=function(){if(e)a.wi(d.response);
else if(a.yd){var h=d.responseText,h=h.substr(h.indexOf("{"));a.wi(JSON.parse(h))}else a.wi(JSON.parse(d.responseText))},d.onerror=function(a){da("Error requesting "+h+":");da(a)});d.send()}};c.prototype.Pv=function(){var a=this,d,h,e,b,f,g,c,r,k;this.Yf=(!this.Da||this.yd||this.Vd)&&this.bx&&!this.qk;0===this.yc&&this.ei&&(this.Yf=!1);this.devicePixelRatio=this.Yf?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.Hb();h=!(!this.Vu&&
(!this.Ll||this.gf||this.Tp||this.Jg||this.Vh||this.Vd||this.Qm));0<this.yc&&this.setSize(window.innerWidth,window.innerHeight,!0);try{this.lu&&(this.xd||this.yd||!this.Da)&&(d={alpha:h,depth:!1,antialias:!1,failIfMajorPerformanceCaveat:!0},this.K=this.canvas.getContext("webgl",d)||this.canvas.getContext("experimental-webgl",d))}catch(v){}if(this.K){if(d=this.K.getExtension("WEBGL_debug_renderer_info"))this.Hm=this.K.getParameter(d.UNMASKED_RENDERER_WEBGL)+" ["+this.K.getParameter(d.UNMASKED_VENDOR_WEBGL)+
"]";this.Ia&&(this.Hm+=" [front-to-back enabled]");this.Da||(this.Fb=document.createElement("canvas"),jQuery(this.Fb).appendTo(this.canvas.parentNode),this.Fb.oncontextmenu=function(){return!1},this.Fb.onselectstart=function(){return!1},this.Fb.width=Math.round(this.Mj*this.devicePixelRatio),this.Fb.height=Math.round(this.Ah*this.devicePixelRatio),jQuery(this.Fb).css({width:this.Mj+"px",height:this.Ah+"px"}),this.Yq(),this.Cn=this.Fb.getContext("2d"));this.H=new nb(this.K,this.Xf,this.Ia);this.H.pg(this.canvas.width,
this.canvas.height);this.H.kp=0!==this.eu;this.Aa=null;this.canvas.addEventListener("webglcontextlost",function(d){d.preventDefault();a.gw();y("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){a.H.Ip();a.H.pg(a.H.width,a.H.height,!0);a.pb=null;a.gb=null;a.wm[0]=null;a.wm[1]=null;a.hw();a.Ca=!0;y("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);d=0;for(h=this.G.length;d<h;d++)for(f=this.G[d],e=0,
b=f.X.length;e<b;e++)c=f.X[e],c.kb=this.H.Dm(c.id),c.Gd=this.H.Gn(c.kb),this.jh=this.jh||this.H.Ui(c.kb);d=0;for(h=this.Ad.length;d<h;d++){r=this.Ad[d];e=0;for(b=r.X.length;e<b;e++)c=r.X[e],c.kb=this.H.Dm(c.id),c.Gd=this.H.Gn(c.kb);r.Md();e=0;for(b=r.Z.length;e<b;e++){k=r.Z[e];f=0;for(g=k.X.length;f<g;f++)c=k.X[f],c.kb=this.H.Dm(c.id),c.Gd=this.H.Gn(c.kb),this.jh=this.jh||this.H.Ui(c.kb);k.Md()}}}else{if(0<this.yc&&this.pc){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=
function(){return!1};this.Aa=AppMobi.canvas.getContext("2d");try{this.Aa.samplingMode=this.da?"smooth":"sharp",this.Aa.globalScale=1,this.Aa.HTML5CompatibilityMode=!0,this.Aa.imageSmoothingEnabled=this.da}catch(n){}0!==this.width&&0!==this.height&&(this.Aa.width=this.width,this.Aa.height=this.height)}this.Aa||(this.xd?(d={antialias:!!this.da,alpha:h},this.Aa=this.canvas.getContext("2d",d)):(d={alpha:h},this.Aa=this.canvas.getContext("2d",d)),this.Aa.webkitImageSmoothingEnabled=this.da,this.Aa.mozImageSmoothingEnabled=
this.da,this.Aa.msImageSmoothingEnabled=this.da,this.Aa.imageSmoothingEnabled=this.da);this.Cn=this.Fb=null}this.Kr=function(d){a.Ea(!1,d)};window==window.top||this.Da||this.Tp||this.Jg||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.xd&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(y("Reloading for continuous preview"),
this.Dk="__c2_continuouspreview",this.ij=!0),this.kw&&!this.Xf&&(jQuery(window).focus(function(){a.setSuspended(!1)}),jQuery(window).blur(function(){a.setSuspended(!0)})));window.addEventListener("blur",function(){a.qf()});this.Da||(d=function(a){if(mb(a)&&document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(d){}},window.navigator.pointerEnabled?document.addEventListener("pointerdown",d):window.navigator.msPointerEnabled?
document.addEventListener("MSPointerDown",d):document.addEventListener("touchstart",d),document.addEventListener("mousedown",d));0===this.yc&&this.Yf&&1<this.devicePixelRatio&&this.setSize(this.sb,this.rb,!0);this.Or();this.Gv();this.go();this.L={}};c.prototype.setSize=function(a,d,h){var e=0,b=0,f=0,g=0,g=0;if(this.si!==a||this.ri!==d||h){this.si=a;this.ri=d;var c=this.yc,r=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.Zh)&&!this.Vd;
if(r||0!==this.yc||h)r&&0<this.Of&&(c=this.Of),h=this.devicePixelRatio,4<=c?(f=this.sb/this.rb,a/d>f?(f*=d,5===c?(g=f*h/this.sb,1<g?g=Math.floor(g):1>g&&(g=1/Math.ceil(1/g)),f=this.sb*g/h,g=this.rb*g/h,e=(a-f)/2,b=(d-g)/2,a=f,d=g):(e=(a-f)/2,a=f)):(g=a/f,5===c?(g=g*h/this.rb,1<g?g=Math.floor(g):1>g&&(g=1/Math.ceil(1/g)),f=this.sb*g/h,g=this.rb*g/h,e=(a-f)/2,b=(d-g)/2,a=f):b=(d-g)/2,d=g),r&&!this.gf&&(b=e=0)):this.gf&&this.Zh&&0===this.tp&&(e=Math.floor((a-this.sb)/2),b=Math.floor((d-this.rb)/2),a=
this.sb,d=this.rb),2>c&&(this.sh=h),this.Mj=Math.round(a),this.Ah=Math.round(d),this.width=Math.round(a*h),this.height=Math.round(d*h),this.Ca=!0,this.$r?(this.R=this.width,this.P=this.height,this.Lc=!0):this.width<this.sb&&this.height<this.rb||1===c?(this.R=this.width,this.P=this.height,this.Lc=!0):(this.R=this.sb,this.P=this.rb,this.Lc=!1,2===c?(f=this.sb/this.rb,c=this.si/this.ri,c<f?this.R=this.P*c:c>f&&(this.P=this.R/c)):3===c&&(f=this.sb/this.rb,c=this.si/this.ri,c>f?this.R=this.P*c:c<f&&(this.P=
this.R/c))),this.Ag&&!this.Da&&(jQuery(this.Ag).css({width:Math.round(a)+"px",height:Math.round(d)+"px","margin-left":Math.floor(e)+"px","margin-top":Math.floor(b)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(a)+"px",height:Math.round(d)+"px"})),this.canvas&&(this.canvas.width=Math.round(a*h),this.canvas.height=Math.round(d*h),this.yd?(this.canvas.style.left=Math.floor(e)+"px",this.canvas.style.top=Math.floor(b)+"px",this.canvas.style.width=Math.round(a)+
"px",this.canvas.style.height=Math.round(d)+"px"):this.Yf&&!this.Da&&(this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(d)+"px")),this.Fb&&(this.Fb.width=Math.round(a*h),this.Fb.height=Math.round(d*h),this.Fb.style.width=this.Mj+"px",this.Fb.style.height=this.Ah+"px"),this.H&&this.H.pg(Math.round(a*h),Math.round(d*h)),this.pc&&this.Aa&&(this.Aa.width=Math.round(a),this.Aa.height=Math.round(d)),this.Aa&&(this.Aa.webkitImageSmoothingEnabled=this.da,this.Aa.mozImageSmoothingEnabled=
this.da,this.Aa.msImageSmoothingEnabled=this.da,this.Aa.imageSmoothingEnabled=this.da),this.Or(),this.Xp&&!this.Vd&&window.scrollTo(0,0)}};c.prototype.Or=function(){if(this.Bt&&0!==this.An){var a="portrait";2===this.An&&(a="landscape");try{screen.orientation&&screen.orientation.lock?screen.orientation.lock(a):screen.lockOrientation?screen.lockOrientation(a):screen.webkitLockOrientation?screen.webkitLockOrientation(a):screen.mozLockOrientation?screen.mozLockOrientation(a):screen.msLockOrientation&&
screen.msLockOrientation(a)}catch(d){console&&console.warn&&console.warn("Failed to lock orientation: ",d)}}};c.prototype.gw=function(){this.H.Kt();this.Xm=!0;var a,d,h;a=0;for(d=this.G.length;a<d;a++)h=this.G[a],h.Qk&&h.Qk()};c.prototype.hw=function(){this.Xm=!1;var a,d,h;a=0;for(d=this.G.length;a<d;a++)h=this.G[a],h.yn&&h.yn()};c.prototype.Yq=function(){if(!this.Da){var a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.Zh)&&!this.Vd?
jQuery(this.canvas).offset():jQuery(this.canvas).position();a.position="absolute";jQuery(this.Fb).css(a)}};var p=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;c.prototype.setSuspended=function(a){var d;if(a&&!this.ai)for(y("[Construct 2] Suspending"),this.ai=!0,-1!==this.Ln&&p&&p(this.Ln),-1!==this.mo&&clearTimeout(this.mo),a=0,d=this.jj.length;a<d;a++)this.jj[a](!0);else if(!a&&this.ai){y("[Construct 2] Resuming");
this.ai=!1;this.wk=Za();this.eg=Za();a=this.Ei=this.ek=0;for(d=this.jj.length;a<d;a++)this.jj[a](!1);this.Ea(!1)}};c.prototype.xt=function(a){this.jj.push(a)};c.prototype.Pe=function(a){return this.Ok[a]};c.prototype.wi=function(a){a&&a.project||da("Project model unavailable");a=a.project;this.name=a[0];this.rp=a[1];this.yc=a[12];this.tp=a[12];this.sb=a[10];this.rb=a[11];this.Tq=this.sb/2;this.Uq=this.rb/2;this.Da&&!this.yd&&(4<=a[12]||0===a[12])&&(y("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),
this.tp=this.yc=3);this.wo=a[18];this.nf=a[19];if(0===this.nf){var d=new Image;d.crossOrigin="anonymous";this.nr(d,"loading-logo.png");this.lf={Kk:d}}else if(4===this.nf){d=new Image;d.src="";var h=new Image;h.src="";var e=new Image;e.src="";var b=new Image;b.src="";var f=new Image;f.src="";var g=new Image;g.src="";var c=new Image;c.src="";var r=new Image;r.src="";var k=new Image;k.src="";var v=new Image;v.src="";var n=new Image;n.src="";var m=new Image;m.src="";this.lf={Kk:[d,h,e,b],pw:[f,g,c,r],
hx:[k,v,n,m]}}this.Li=a[21];this.Ok=mc();this.fe=new Y(this);d=0;for(h=a[2].length;d<h;d++)c=a[2][d],e=this.Pe(c[0]),ob(c,e.prototype),r=new e(this),r.nl=c[1],r.hf=c[2],r.Aq=c[9],r.N&&r.N(),this.plugins.push(r);this.Ok=mc();d=0;for(h=a[3].length;d<h;d++){c=a[3][d];f=this.Pe(c[1]);r=null;e=0;for(b=this.plugins.length;e<b;e++)if(this.plugins[e]instanceof f){r=this.plugins[e];break}k=new r.ka(r);k.name=c[0];k.S=c[2];k.Pm=c[3].slice(0);k.cx=c[3].length;k.Ct=c[4];k.Xu=c[5];k.ja=c[11];k.S?(k.jg=[],k.ne=
this.Gh++,k.Ta=null):(k.jg=null,k.ne=-1,k.Ta=[]);k.Xj=null;k.Eg=null;k.lp=null;k.zc=!1;k.xc=null;c[6]?(k.io=c[6][0],k.jo=c[6][1],k.ko=c[6][2]):(k.io=null,k.jo=0,k.ko=0);c[7]?k.ic=c[7]:k.ic=null;k.index=d;k.k=[];k.Qj=[];k.Ie=[new pb(k)];k.Qd=0;k.Yc=null;k.Ot=0;k.fh=!0;k.xl=qb;k.dv=rb;k.pv=sb;k.ma=tb;k.Wi=ub;k.$k=vb;k.mg=wb;k.hk=xb;k.xm=yb;k.zm=zb;k.Pd=Bb;k.Am=Cb;k.vh=new fb(this.sb,this.rb);k.Aj=!0;k.Bj=!1;k.L={};k.toString=Db;k.Wa=[];e=0;for(b=c[8].length;e<b;e++){v=c[8][e];n=this.Pe(v[1]);m=null;
f=0;for(g=this.Wa.length;f<g;f++)if(this.Wa[f]instanceof n){m=this.Wa[f];break}m||(m=new n(this),m.Nk=[],m.Ji=new ba,m.N&&m.N(),this.Wa.push(m),nc&&m instanceof nc&&(this.eo=m),oc&&m instanceof oc&&(this.Yp=m));-1===m.Nk.indexOf(k)&&m.Nk.push(k);f=new m.ka(m,k);f.name=v[0];f.ja=v[2];f.N();k.Wa.push(f)}k.global=c[9];k.Tm=c[10];k.X=[];e=0;for(b=c[12].length;e<b;e++)k.X.push({id:c[12][e][0],name:c[12][e][1],kb:-1,Gd:!1,Ib:!0,index:e});k.oy=c[13];this.wo&&!k.S&&!k.Tm&&r.hf||k.N();k.name&&(this.types[k.name]=
k);this.G.push(k);r.nl&&(e=new r.Y(k),e.uid=this.Li++,e.cr=this.Dq++,e.Uf=0,e.Mh=Eb,e.toString=Fb,e.C=c[14],e.N(),k.k.push(e),this.xe[e.uid.toString()]=e)}d=0;for(h=a[4].length;d<h;d++)for(f=a[4][d],g=this.G[f[0]],e=1,b=f.length;e<b;e++)c=this.G[f[e]],c.Ta.push(g),g.jg.push(c);d=0;for(h=a[28].length;d<h;d++){f=a[28][d];g=[];e=0;for(b=f.length;e<b;e++)g.push(this.G[f[e]]);e=0;for(b=g.length;e<b;e++)g[e].zc=!0,g[e].xc=g}if(0<this.Gh)for(d=0,h=this.G.length;d<h;d++)if(c=this.G[d],!c.S&&c.Ta.length){c.Xj=
Array(this.Gh);c.Eg=Array(this.Gh);c.lp=Array(this.Gh);k=[];e=m=n=v=0;for(b=c.Ta.length;e<b;e++)for(r=c.Ta[e],c.Xj[r.ne]=v,v+=r.cx,c.Eg[r.ne]=n,n+=r.Ct,c.lp[r.ne]=m,m+=r.Xu,f=0,g=r.X.length;f<g;f++)k.push(wa({},r.X[f]));c.X=k.concat(c.X);e=0;for(b=c.X.length;e<b;e++)c.X[e].index=e}d=0;for(h=a[5].length;d<h;d++)c=a[5][d],e=new Gb(this,c),this.hn[e.name]=e,this.Ad.push(e);d=0;for(h=a[6].length;d<h;d++)c=a[6][d],e=new Hb(this,c),this.nm[e.name]=e,this.me.push(e);d=0;for(h=this.me.length;d<h;d++)this.me[d].eb();
d=0;for(h=this.me.length;d<h;d++)this.me[d].to();d=0;for(h=this.ul.length;d<h;d++)this.ul[d].eb();T(this.ul);this.zt=a[7];this.rm=a[8];this.Fd=a[9];this.sh=1;this.lu=a[13];this.da=a[14];this.Ll=a[15];this.bx=a[17];this.An=a[20];this.Bt=0<this.An;this.kw=a[22];this.Lc=this.$r=a[23];this.eu=a[24];this.qw=a[25];this.Ia=a[27]&&!this.te;this.ol=Date.now();T(this.Ok);this.Pv()};var d=!1;c.prototype.Zr=function(a,h){a.cocoonLazyLoad=!0;a.onerror=function(h){d=a.Yo=!0;console&&console.error&&console.error("Error loading image '"+
a.src+"': ",h)};this.yd?a.src=h:a.src||("undefined"!==typeof XAPKReader?XAPKReader.get(h,function(d){a.src=d},function(e){d=a.Yo=!0;console&&console.error&&console.error("Error extracting image '"+h+"' from expansion file: ",e)}):(a.crossOrigin="anonymous",this.nr(a,h)));this.mh.push(a)};c.prototype.Uu=function(a){var d,h;d=0;for(h=this.mh.length;d<h;d++)if(this.mh[d].Lt===a)return this.mh[d];return null};var e=0,v=!1;c.prototype.Gv=function(){this.zg&&(e=this.zg.Ow(this.zt))};c.prototype.Uo=function(){var a=
e,d=0,h=0,b=!0,f,g,h=0;for(f=this.mh.length;h<f;h++){g=this.mh[h];var c=g.dp;if(!c||0>=c)c=5E4;a+=c;g.src&&(g.complete||g.loaded)&&!g.Yo?d+=c:b=!1}b&&this.qw&&this.zg&&(v||(this.zg.Uw(),v=!0),h=this.zg.qv(),d+=h,h<e&&(b=!1));this.Hd=0==a?1:d/a;return b};var g=!1;c.prototype.go=function(){if(this.Aa||this.H){var a=this.Aa||this.Cn;this.Fb&&this.Yq();this.Hd=0;this.bq=-1;var h=this;if(this.Uo()&&(4!==this.nf||g))this.Hv();else{var e=Date.now()-this.ol;if(a){var b=this.width,c=this.height,k=this.devicePixelRatio;
if(3>this.nf&&(this.xd||500<=e&&this.bq!=this.Hd)){a.clearRect(0,0,b,c);var e=b/2,c=c/2,b=0===this.nf&&this.lf.Kk.complete,r=40*k,m=0,v=80*k,n;if(b){var l=this.lf.Kk,v=l.width*k;n=l.height*k;r=v/2;m=n/2;a.drawImage(l,R(e-r),R(c-m),v,n)}1>=this.nf?(e=R(e-r)+.5,c=R(c+(m+(b?12*k:0)))+.5,a.fillStyle=d?"red":"DodgerBlue",a.fillRect(e,c,Math.floor(v*this.Hd),6*k),a.strokeStyle="black",a.strokeRect(e,c,v,6*k),a.strokeStyle="white",a.strokeRect(e-1*k,c-1*k,v+2*k,8*k)):2===this.nf&&(a.font=this.yd?"12pt ArialMT":
"12pt Arial",a.fillStyle=d?"#f00":"#999",a.ny="middle",k=Math.round(100*this.Hd)+"%",b=a.measureText?a.measureText(k):null,a.fillText(k,e-(b?b.width:0)/2,c));this.bq=this.Hd}else if(4===this.nf){this.ju(a);f?f(function(){h.go()}):setTimeout(function(){h.go()},16);return}}setTimeout(function(){h.go()},this.xd?10:100)}}};var I=-1,E="undefined"===typeof cr_is_preview?200:0,A=!0,h=!1,r=0,x=0,C="undefined"===typeof cr_is_preview?3E3:0,G=null,P=null,N=0;c.prototype.ju=function(a){if(!g){for(var e=Math.ceil(this.width),
b=Math.ceil(this.height),f=this.lf.Kk,c=this.lf.pw,k=this.lf.hx,m=0;4>m;++m)if(!f[m].complete||!c[m].complete||!k[m].complete)return;0===N&&(I=Date.now());var m=Date.now(),v=!1,n=a,p,q;A||h?(a.clearRect(0,0,e,b),G&&G.width===e&&G.height===b||(G=document.createElement("canvas"),G.width=e,G.height=b,P=G.getContext("2d")),n=P,v=!0,A&&1===N&&(I=Date.now())):a.globalAlpha=1;n.fillStyle="#333333";n.fillRect(0,0,e,b);256<this.Ah?(p=Da(.22*b,105,.6*e),q=.25*p,n.drawImage(l(c,p),.5*e-p/2,.2*b-q/2,p,q),q=p=
Math.min(.395*b,.95*e),n.drawImage(l(f,p),.5*e-p/2,.485*b-q/2,p,q),p=Da(.22*b,105,.6*e),q=.25*p,n.drawImage(l(k,p),.5*e-p/2,.868*b-q/2,p,q),n.fillStyle="#3C3C3C",p=e,q=Math.max(.005*b,2),n.fillRect(0,.8*b-q/2,p,q),n.fillStyle=d?"red":"#E0FF65",p=e*this.Hd,n.fillRect(.5*e-p/2,.8*b-q/2,p,q)):(q=p=.55*b,n.drawImage(l(f,p),.5*e-p/2,.45*b-q/2,p,q),n.fillStyle="#3C3C3C",p=e,q=Math.max(.005*b,2),n.fillRect(0,.85*b-q/2,p,q),n.fillStyle=d?"red":"#E0FF65",p=e*this.Hd,n.fillRect(.5*e-p/2,.85*b-q/2,p,q));v&&
(A?a.globalAlpha=0===N?0:Math.min((m-I)/300,1):h&&(a.globalAlpha=Math.max(1-(m-x)/300,0)),a.drawImage(G,0,0,e,b));A&&300<=m-I&&2<=N&&(A=!1,r=m);!A&&m-r>=C&&!h&&1<=this.Hd&&(h=!0,x=m);if(h&&m-x>=300+E||"undefined"!==typeof cr_is_preview&&1<=this.Hd&&500>Date.now()-I)g=!0,h=A=!1,this.lf=P=G=null;++N}};c.prototype.Hv=function(){this.Fb&&(this.canvas.parentNode.removeChild(this.Fb),this.Fb=this.Cn=null);this.ol=Date.now();this.eg=Za();var a,d,h;if(this.wo)for(a=0,d=this.G.length;a<d;a++)h=this.G[a],h.S||
h.Tm||!h.Ja.hf||h.N();else this.Og=!1;a=0;for(d=this.Ad.length;a<d;a++)this.Ad[a].Mt();2<=this.yc&&(a=this.sb/this.rb,d=this.width/this.height,this.sh=2!==this.yc&&d>a||2===this.yc&&d<a?this.height/this.rb:this.width/this.sb);this.rp?this.hn[this.rp].fo():this.Ad[0].fo();this.wo||(this.Hk=1,this.trigger(Y.prototype.D.Ko,null));navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();a=0;for(d=this.G.length;a<d;a++)h=this.G[a],h.fw&&h.fw();document.hidden||document.webkitHidden||
document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.Ea(!1);this.pc&&AppMobi.webview.execute("onGameReady();")};c.prototype.Ea=function(a,d,h){if(this.za){var e=Za();if(h||!this.ai||a){a||(f?this.Ln=f(this.Kr):this.mo=setTimeout(this.Kr,this.Xf?1:16));d=d||e;var b=this.yc;((h=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.Vd)||this.Zh)&&0<this.Of&&(b=this.Of);if(0<b){var b=window.innerWidth,g=window.innerHeight;this.si===
b&&this.ri===g||this.setSize(b,g)}this.Da||(h?(this.$j||(this.vm=jQuery(this.canvas).css("margin")||"0",this.$j=!0),this.Uh||this.gf||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.$j?(this.Uh||this.gf||jQuery(this.canvas).css("margin",this.vm),this.vm="",this.$j=!1,0===this.yc&&this.setSize(Math.round(this.Kq/this.devicePixelRatio),Math.round(this.Jq/
this.devicePixelRatio),!0)):(this.Kq=this.width,this.Jq=this.height));this.Og&&(h=this.Uo(),this.Hk=this.Hd,h&&(this.Og=!1,this.Hd=1,this.trigger(Y.prototype.D.Ko,null)));this.aw(d);!this.Ca&&!this.xd||this.Xm||this.ij||a||(this.Ca=!1,this.H?this.Yb():this.$c(),this.hj&&(this.canvas&&this.canvas.toDataURL&&(this.Ar=this.canvas.toDataURL(this.hj[0],this.hj[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.Ar),this.trigger(Y.prototype.D.Hs,null)),this.hj=null));this.iy||(this.md++,this.Nf++,this.ek++);
this.Ei+=Za()-e}}};c.prototype.aw=function(a){var d,h,e,b,f,g,c,k;1E3<=a-this.eg&&(this.eg+=1E3,1E3<=a-this.eg&&(this.eg=a),this.um=this.ek,this.ek=0,this.cm=this.Ei,this.Ei=0);0!==this.wk&&(d=a-this.wk,0>d&&(d=0),this.Ze=d/1E3,.5<this.Ze?this.Ze=0:this.Ze>1/this.zq&&(this.Ze=1/this.zq));this.wk=a;this.Jf=this.Ze*this.ug;this.ob.add(this.Jf);this.Me.add(this.Ze);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.Zh)&&!this.Vd;2<=this.yc||
a&&0<this.Of?(d=this.sb/this.rb,h=this.width/this.height,e=this.yc,a&&0<this.Of&&(e=this.Of),this.sh=2!==e&&h>d||2===e&&h<d?this.height/this.rb:this.width/this.sb,this.za&&(this.za.Vn(this.za.scrollX),this.za.Wn(this.za.scrollY))):this.sh=this.Yf?this.devicePixelRatio:1;this.Hb();this.zd++;this.fe.Fw();this.zd--;this.Hb();this.zd++;h=this.Hq.nd();a=0;for(d=h.length;a<d;a++)h[a].ky();a=0;for(d=this.G.length;a<d;a++)if(g=this.G[a],!g.S&&(g.Wa.length||g.Ta.length))for(h=0,e=g.k.length;h<e;h++)for(c=
g.k[h],b=0,f=c.O.length;b<f;b++)c.O[b].Ea();a=0;for(d=this.G.length;a<d;a++)if(g=this.G[a],!g.S&&(g.Wa.length||g.Ta.length))for(h=0,e=g.k.length;h<e;h++)for(c=g.k[h],b=0,f=c.O.length;b<f;b++)k=c.O[b],k.Zq&&k.Zq();h=this.wn.nd();a=0;for(d=h.length;a<d;a++)h[a].Ea();this.zd--;this.Iv();for(a=0;this.Ff&&10>a++;)this.jp(this.Ff);a=0;for(d=this.me.length;a<d;a++)this.me[a].Km=!1;this.za.Lf&&this.za.Lf.jb();T(this.Zi);this.zd++;a=0;for(d=this.G.length;a<d;a++)if(g=this.G[a],!g.S&&(g.Wa.length||g.Ta.length))for(h=
0,e=g.k.length;h<e;h++)for(c=g.k[h],b=0,f=c.O.length;b<f;b++)k=c.O[b],k.lj&&k.lj();h=this.Iq.nd();a=0;for(d=h.length;a<d;a++)h[a].lj();this.zd--};c.prototype.qf=function(){var a,d,h,e,b,g,f,c,k;a=0;for(d=this.G.length;a<d;a++)if(f=this.G[a],!f.S)for(h=0,e=f.k.length;h<e;h++)if(c=f.k[h],c.qf&&c.qf(),c.O)for(b=0,g=c.O.length;b<g;b++)k=c.O[b],k.qf&&k.qf()};c.prototype.jp=function(a){var d=this.za;this.za.Vw();var h,e,b;if(this.H)for(h=0,e=this.G.length;h<e;h++)b=this.G[h],b.S||!b.so||b.global&&0!==b.k.length||
-1!==a.Rh.indexOf(b)||b.so();d==a&&T(this.fe.wc);T(this.Zi);this.gr(!0);a.fo();this.gr(!1);this.Ca=!0;this.Hb()};c.prototype.gr=function(a){var d,h,e,b,g,f,c,k,r;d=0;for(h=this.Wa.length;d<h;d++)e=this.Wa[d],a?e.Mi&&e.Mi():e.Qi&&e.Qi();d=0;for(h=this.G.length;d<h;d++)if(e=this.G[d],e.global||e.Ja.nl)for(b=0,g=e.k.length;b<g;b++)if(f=e.k[b],a?f.Mi&&f.Mi():f.Qi&&f.Qi(),f.O)for(c=0,k=f.O.length;c<k;c++)r=f.O[c],a?r.Mi&&r.Mi():r.Qi&&r.Qi()};c.prototype.hh=function(a){this.wn.add(a)};c.prototype.Pf=function(a){return a&&
-1!==a.Ki?this.Ze*a.Ki:this.Jf};c.prototype.$c=function(){this.za.$c(this.Aa);this.pc&&this.Aa.present()};c.prototype.Yb=function(){this.Ia&&(this.Kf=1,this.za.If(this.H));this.za.Yb(this.H);this.H.sw()};c.prototype.yj=function(a){a&&this.Tj.push(a)};c.prototype.fr=function(a){Ca(this.Tj,a)};c.prototype.Rf=function(a){a=a.toString();return this.xe.hasOwnProperty(a)?this.xe[a]:null};var F=[];c.prototype.yf=function(a){var d,h;d=a.type.name;var e=null;if(this.Hf.hasOwnProperty(d)){if(e=this.Hf[d],e.contains(a))return}else e=
F.length?F.pop():new ba,this.Hf[d]=e;e.add(a);this.ff=!0;if(a.zc)for(d=0,h=a.siblings.length;d<h;d++)this.yf(a.siblings[d]);this.Sm&&e.kh.push(a);this.Rm||(this.zd++,this.trigger(Object.getPrototypeOf(a.type.Ja).D.Js,a),this.zd--)};c.prototype.Hb=function(){if(this.ff){var a,d,h,e,b,f;this.Sm=!0;h=0;for(b=this.vd.length;h<b;++h)for(a=this.vd[h],d=a.type,d.k.push(a),e=0,f=d.Ta.length;e<f;++e)d.Ta[e].k.push(a),d.Ta[e].fh=!0;T(this.vd);this.Bs();Ya(this.Hf);this.ff=this.Sm=!1}};c.prototype.Bs=function(){for(var a in this.Hf)this.Hf.hasOwnProperty(a)&&
this.gs(this.Hf[a])};c.prototype.gs=function(a){var d=a.nd(),h=d[0].type,e,b,f,g,c,k;$a(h.k,a);h.fh=!0;0===h.k.length&&(h.Bj=!1);e=0;for(b=h.Ta.length;e<b;++e)k=h.Ta[e],$a(k.k,a),k.fh=!0;e=0;for(b=this.fe.wc.length;e<b;++e)if(c=this.fe.wc[e],c.ac.hasOwnProperty(h.index)&&$a(c.ac[h.index].qe,a),!h.S)for(f=0,g=h.Ta.length;f<g;++f)k=h.Ta[f],c.ac.hasOwnProperty(k.index)&&$a(c.ac[k.index].qe,a);if(c=d[0].n){if(c.Sc)for(f=c.k,e=0,b=f.length;e<b;++e)g=f[e],a.contains(g)&&(g.Ha(),c.Gb.update(g,g.rc,null),
g.rc.set(0,0,-1,-1));$a(c.k,a);c.bj(0)}for(e=0;e<d.length;++e)this.es(d[e],h);a.clear();F.push(a);this.Ca=!0};c.prototype.es=function(a,d){var h,e,b;h=0;for(e=this.Tj.length;h<e;++h)this.Tj[h](a);a.Vc&&d.vh.update(a,a.Vc,null);(h=a.n)&&h.Zg(a,!0);if(a.O)for(h=0,e=a.O.length;h<e;++h)b=a.O[h],b.Cd&&b.Cd(),b.behavior.Ji.remove(a);this.Hq.remove(a);this.wn.remove(a);this.Iq.remove(a);a.Cd&&a.Cd();this.xe.hasOwnProperty(a.uid.toString())&&delete this.xe[a.uid.toString()];this.Pk--;100>d.Qj.length&&d.Qj.push(a)};
c.prototype.ep=function(a,d,h,e){if(a.S){var b=R(Math.random()*a.jg.length);return this.ep(a.jg[b],d,h,e)}return a.Yc?this.Xe(a.Yc,d,!1,h,e,!1):null};var z=[];c.prototype.Xe=function(a,d,h,e,b,f){var g,c,k,r;if(!a)return null;var m=this.G[a[1]],n=m.Ja.hf;if(this.Og&&n&&!m.Tm||n&&!this.H&&11===a[0][11])return null;var v=d;n||(d=null);var l;m.Qj.length?(l=m.Qj.pop(),l.Fc=!0,m.Ja.Y.call(l,m)):(l=new m.Ja.Y(m),l.Fc=!1);!h||f||this.xe.hasOwnProperty(a[2].toString())?l.uid=this.Li++:l.uid=a[2];this.xe[l.uid.toString()]=
l;l.cr=this.Dq++;l.Uf=m.k.length;g=0;for(c=this.vd.length;g<c;++g)this.vd[g].type===m&&l.Uf++;l.Mh=Eb;l.toString=Fb;k=a[3];if(l.Fc)Ya(l.L);else{l.L={};if("undefined"!==typeof cr_is_preview)for(l.Lp=[],l.Lp.length=k.length,g=0,c=k.length;g<c;g++)l.Lp[g]=k[g][1];l.nb=[];l.nb.length=k.length}g=0;for(c=k.length;g<c;g++)l.nb[g]=k[g][0];if(n){var p=a[0];l.x=ea(e)?p[0]:e;l.y=ea(b)?p[1]:b;l.z=p[2];l.width=p[3];l.height=p[4];l.depth=p[5];l.q=p[6];l.opacity=p[7];l.nc=p[8];l.oc=p[9];l.Jb=p[10];g=p[11];!this.H&&
m.X.length&&(l.Jb=g);l.wh=hb(l.Jb);this.K&&ib(l,l.Jb,this.K);if(l.Fc){g=0;for(c=p[12].length;g<c;g++)for(k=0,r=p[12][g].length;k<r;k++)l.Xa[g][k]=p[12][g][k];l.Oa.set(0,0,0,0);l.Vc.set(0,0,-1,-1);l.rc.set(0,0,-1,-1);l.Mb.dh(l.Oa);T(l.Rl)}else{l.Xa=p[12].slice(0);g=0;for(c=l.Xa.length;g<c;g++)l.Xa[g]=p[12][g].slice(0);l.ta=[];l.Qe=[];l.Qe.length=m.X.length;l.Oa=new ta(0,0,0,0);l.Vc=new ta(0,0,-1,-1);l.rc=new ta(0,0,-1,-1);l.Mb=new ua;l.Rl=[];l.F=Ib;l.fy=Jb;l.Pb=Kb;l.Ha=Lb;l.ax=Mb;l.Vr=Nb;l.Td=Ob}l.ih=
!1;l.Yw=0;l.Xw=0;l.Ww=null;14===p.length&&(l.ih=!0,l.Yw=p[13][0],l.Xw=p[13][1],l.Ww=p[13][2]);g=0;for(c=m.X.length;g<c;g++)l.Qe[g]=!0;l.Ee=!0;l.Md=Pb;l.Md();l.Xr=!!l.ta.length;l.Ql=!0;l.Ul=!0;m.Aj=!0;l.visible=!0;l.Ki=-1;l.n=d;l.Nd=d.k.length;l.Kf=0;"undefined"===typeof l.la&&(l.la=null);this.Ca=l.Jc=!0}var x;T(z);g=0;for(c=m.Ta.length;g<c;g++)z.push.apply(z,m.Ta[g].Wa);z.push.apply(z,m.Wa);if(l.Fc)for(g=0,c=z.length;g<c;g++){var q=z[g];x=l.O[g];x.Fc=!0;q.behavior.Y.call(x,q,l);p=a[4][g];k=0;for(r=
p.length;k<r;k++)x.C[k]=p[k];x.N();q.behavior.Ji.add(l)}else for(l.O=[],g=0,c=z.length;g<c;g++)q=z[g],x=new q.behavior.Y(q,l),x.Fc=!1,x.C=a[4][g].slice(0),x.N(),l.O.push(x),q.behavior.Ji.add(l);p=a[5];if(l.Fc)for(g=0,c=p.length;g<c;g++)l.C[g]=p[g];else l.C=p.slice(0);this.vd.push(l);this.ff=!0;d&&(d.rh(l,!0),1!==d.ye||1!==d.ze)&&(m.Bj=!0);this.Pk++;if(m.zc){if(l.zc=!0,l.Fc?T(l.siblings):l.siblings=[],!h&&!f){g=0;for(c=m.xc.length;g<c;g++)if(m.xc[g]!==m){if(!m.xc[g].Yc)return null;l.siblings.push(this.Xe(m.xc[g].Yc,
v,!1,n?l.x:e,n?l.y:b,!0))}g=0;for(c=l.siblings.length;g<c;g++)for(l.siblings[g].siblings.push(l),k=0;k<c;k++)g!==k&&l.siblings[g].siblings.push(l.siblings[k])}}else l.zc=!1,l.siblings=null;l.N();g=0;for(c=l.O.length;g<c;g++)l.O[g].ow&&l.O[g].ow();return l};c.prototype.lv=function(a){var d,h;d=0;for(h=this.za.Z.length;d<h;d++){var e=this.za.Z[d];if(kb(e.name,a))return e}return null};c.prototype.nv=function(a){a=R(a);0>a&&(a=0);a>=this.za.Z.length&&(a=this.za.Z.length-1);return this.za.Z[a]};c.prototype.Yl=
function(a){var d,h;d=0;for(h=a.length;d<h;d++)a[d].ma().xa=!0};c.prototype.Wi=function(a){var d,h;d=0;for(h=a.length;d<h;d++)a[d].Wi()};c.prototype.$k=function(a){var d,h;d=0;for(h=a.length;d<h;d++)a[d].$k()};c.prototype.mg=function(a){var d,h;d=0;for(h=a.length;d<h;d++)a[d].mg()};c.prototype.Tr=function(a){if(a.Aj){var d,h,e=a.k;d=0;for(h=e.length;d<h;++d)e[d].Vr();e=this.vd;d=0;for(h=e.length;d<h;++d)e[d].type===a&&e[d].Vr();a.Aj=!1}};c.prototype.wp=function(a,d,h,e){var b,g,f=a?1!==a.ye||1!==
a.ze:!1;if(d.S)for(a=0,b=d.jg.length;a<b;++a)g=d.jg[a],f||g.Bj?Aa(e,g.k):(this.Tr(g),g.vh.bl(h,e));else f||d.Bj?Aa(e,d.k):(this.Tr(d),d.vh.bl(h,e))};c.prototype.Em=function(a,d,h,e){var b,g;b=0;for(g=d.length;b<g;++b)this.wp(a,d[b],h,e)};c.prototype.Bp=function(a,d,h){var e=this.eo;e&&this.Em(a,e.Nk,d,h)};c.prototype.kv=function(a,d,h){var e=this.Yp;e&&this.Em(a,e.Nk,d,h)};c.prototype.ec=function(a,d){if(!(a&&d&&a!==d&&a.Jc&&d.Jc))return!1;a.Ha();d.Ha();var h=a.n,e=d.n,b,g,f,c,k,r,l,m;if(h===e||h.ye===
e.ye&&e.ze===e.ze&&h.scale===e.scale&&h.q===e.q&&h.tj===e.tj){if(!a.Oa.Np(d.Oa)||!a.Mb.Mp(d.Mb)||a.ih&&d.ih)return!1;if(a.ih)return this.Gr(a,d);if(d.ih)return this.Gr(d,a);l=a.la&&!a.la.Zf();b=d.la&&!d.la.Zf();if(!l&&!b)return!0;l?(a.la.Ef(a.width,a.height,a.q),l=a.la):(this.Kd.bh(a.Mb,a.x,a.y,a.width,a.height),l=this.Kd);b?(d.la.Ef(d.width,d.height,d.q),m=d.la):(this.Kd.bh(d.Mb,d.x,d.y,d.width,d.height),m=this.Kd);return l.Sh(m,d.x-a.x,d.y-a.y)}l=a.la&&!a.la.Zf();b=d.la&&!d.la.Zf();l?(a.la.Ef(a.width,
a.height,a.q),this.Kd.qr(a.la)):this.Kd.bh(a.Mb,a.x,a.y,a.width,a.height);l=this.Kd;b?(d.la.Ef(d.width,d.height,d.q),this.ho.qr(d.la)):this.ho.bh(d.Mb,d.x,d.y,d.width,d.height);m=this.ho;b=0;for(g=l.gd;b<g;b++)f=2*b,c=f+1,k=l.ib[f],r=l.ib[c],l.ib[f]=h.wa(k+a.x,r+a.y,!0),l.ib[c]=h.wa(k+a.x,r+a.y,!1);l.Ha();b=0;for(g=m.gd;b<g;b++)f=2*b,c=f+1,k=m.ib[f],r=m.ib[c],m.ib[f]=e.wa(k+d.x,r+d.y,!0),m.ib[c]=e.wa(k+d.x,r+d.y,!1);m.Ha();return l.Sh(m,0,0)};var M=new ua,ga=new ta(0,0,0,0),K=[];c.prototype.Gr=function(a,
d){var h,e,b,g,f=d.Oa,c=a.x,k=a.y;a.av(f,K);var r=d.la&&!d.la.Zf();h=0;for(e=K.length;h<e;++h)if(b=K[h],g=b.ww,f.Op(g,c,k)&&(M.dh(g),M.offset(c,k),M.Mp(d.Mb)))if(r)if(d.la.Ef(d.width,d.height,d.q),b.Ti){if(b.Ti.Sh(d.la,d.x-(c+g.left),d.y-(k+g.top)))return T(K),!0}else{if(this.Kd.bh(M,0,0,g.right-g.left,g.bottom-g.top),this.Kd.Sh(d.la,d.x,d.y))return T(K),!0}else if(b.Ti){if(this.Kd.bh(d.Mb,0,0,d.width,d.height),b.Ti.Sh(this.Kd,-(c+g.left),-(k+g.top)))return T(K),!0}else return T(K),!0;T(K);return!1};
c.prototype.Fr=function(a,d,h,e,b){if(!b||!b.Jc)return!1;b.Ha();ga.set(na(a,h),na(d,e),ma(a,h),ma(d,e));if(!b.Oa.Np(ga))return!1;if(b.ih){b.av(ga,K);var g,f,c,k=b.x,r=b.y;b=0;for(g=K.length;b<g;++b)if(f=K[b],c=f.ww,ga.Op(c,k,r)&&(M.dh(c),M.offset(k,r),M.Th(a,d,h,e)))if(f.Ti){if(f.Ti.Th(k+c.left,r+c.top,a,d,h,e))return T(K),!0}else return T(K),!0;T(K);return!1}if(!b.Mb.Th(a,d,h,e))return!1;if(!b.la||b.la.Zf())return!0;b.la.Ef(b.width,b.height,b.q);return b.la.Th(b.x,b.y,a,d,h,e)};c.prototype.Pr=function(a,
d){if(!d)return!1;var h,e,b,g,f;h=0;for(e=a.Wa.length;h<e;h++)if(a.Wa[h].behavior instanceof d)return!0;if(!a.S)for(h=0,e=a.Ta.length;h<e;h++)for(f=a.Ta[h],b=0,g=f.Wa.length;b<g;b++)if(f.Wa[b].behavior instanceof d)return!0;return!1};c.prototype.qo=function(a){return this.Pr(a,ec.Jx)};c.prototype.ro=function(a){return this.Pr(a,ec.Kx)};var B=[];c.prototype.Ka=function(a){var d,h,e;a.Ha();this.Bp(a.n,a.Oa,B);d=0;for(h=B.length;d<h;++d)if(e=B[d],e.L.solidEnabled&&this.ec(a,e))return T(B),e;T(B);return null};
var t=[];c.prototype.ge=function(a,d){var h=null;d&&(h=t,T(h));a.Ha();this.kv(a.n,a.Oa,B);var e,b,g;e=0;for(b=B.length;e<b;++e)if(g=B[e],g.L.jumpthruEnabled&&this.ec(a,g))if(d)h.push(g);else return T(B),g;T(B);return h};c.prototype.Pc=function(a,d,h,e,b,g){e=e||50;var f=a.x,c=a.y,k,r=null,l=null;for(k=0;k<e;k++)if(a.x=f+d*k,a.y=c+h*k,a.F(),!this.ec(a,r)&&((r=this.Ka(a))&&(l=r),!r&&(b&&(g?r=this.ec(a,g)?g:null:r=this.ge(a),r&&(l=r)),!r)))return l&&this.In(a,d,h,l),!0;a.x=f;a.y=c;a.F();return!1};c.prototype.In=
function(a,d,h,e){var b=2,g,f=!1;g=!1;for(var c=a.x,k=a.y;16>=b;)g=1/b,b*=2,a.x+=d*g*(f?1:-1),a.y+=h*g*(f?1:-1),a.F(),this.ec(a,e)?g=f=!0:(g=f=!1,c=a.x,k=a.y);g&&(a.x=c,a.y=k,a.F())};c.prototype.Jn=function(a,d){var h=ea(d)?100:d,e=0,b=a.x,g=a.y,f=0,c=0,k=0,r=this.Ka(a);if(!r)return!0;for(;e<=h;){switch(f){case 0:c=0;k=-1;e++;break;case 1:c=1;k=-1;break;case 2:c=1;k=0;break;case 3:k=c=1;break;case 4:c=0;k=1;break;case 5:c=-1;k=1;break;case 6:c=-1;k=0;break;case 7:k=c=-1}f=(f+1)%8;a.x=R(b+c*e);a.y=
R(g+k*e);a.F();if(!this.ec(a,r)&&(r=this.Ka(a),!r))return!0}a.x=b;a.y=g;a.F();return!1};c.prototype.be=function(a,d){a.Jc&&d.Jc&&this.Zi.push([a,d])};c.prototype.It=function(a,d){var h,e,b;h=0;for(e=this.Zi.length;h<e;h++)if(b=this.Zi[h],b[0]==a&&b[1]==d||b[0]==d&&b[1]==a)return!0;return!1};c.prototype.Gt=function(a,d,h){var e=a.x,b=a.y,g=ma(10,Ra(d,h,e,b)),f=La(d,h,e,b),c=this.Ka(a);if(!c)return Ga(f+oa);var k=c,r,l,m,n,v=X(5);for(r=1;36>r;r++)if(l=f-r*v,a.x=d+Math.cos(l)*g,a.y=h+Math.sin(l)*g,a.F(),
!this.ec(a,k)&&(k=this.Ka(a),!k)){m=l;break}36===r&&(m=Ga(f+oa));k=c;for(r=1;36>r;r++)if(l=f+r*v,a.x=d+Math.cos(l)*g,a.y=h+Math.sin(l)*g,a.F(),!this.ec(a,k)&&(k=this.Ka(a),!k)){n=l;break}36===r&&(n=Ga(f+oa));a.x=e;a.y=b;a.F();if(n===m)return n;a=Ma(n,m)/2;a=Pa(n,m)?Ga(m+a+oa):Ga(n+a);m=Math.cos(f);f=Math.sin(f);n=Math.cos(a);a=Math.sin(a);d=m*n+f*a;return La(0,0,m-2*d*n,f-2*d*a)};var W=-1;c.prototype.trigger=function(a,d,h){if(!this.za)return!1;var e=this.za.Lf;if(!e)return!1;var b=!1,g,f,c;W++;var k=
e.gm;f=0;for(c=k.length;f<c;++f)g=this.Mr(a,d,k[f],h),b=b||g;g=this.Mr(a,d,e,h);W--;return b||g};c.prototype.Mr=function(a,d,h,e){var b=!1,g,f,c,k;if(d)for(c=this.oo(a,d,d.type.name,h,e),b=b||c,k=d.type.Ta,g=0,f=k.length;g<f;++g)c=this.oo(a,d,k[g].name,h,e),b=b||c;else c=this.oo(a,d,"system",h,e),b=b||c;return b};c.prototype.oo=function(a,d,h,e,b){var g,f=!1,c=!1,c="undefined"!==typeof b,k=(c?e.np:e.Nr)[h];if(!k)return f;var r=null;e=0;for(g=k.length;e<g;++e)if(k[e].method==a){r=k[e].Fh;break}if(!r)return f;
var l;c?l=r[b]:l=r;if(!l)return null;e=0;for(g=l.length;e<g;e++)a=l[e][0],b=l[e][1],c=this.Qu(d,h,a,b),f=f||c;return f};c.prototype.Qu=function(a,d,h,e){var b,g,f=!1;this.po++;var c=this.Eb().jc;c&&this.Wi(c.vf);var k=1<this.po;this.Wi(h.vf);k&&this.vw();var r=this.al(h);r.jc=h;a&&(b=this.types[d].ma(),b.xa=!1,T(b.k),b.k[0]=a,this.types[d].Pd());a=!0;if(h.parent){d=r.Er;for(b=h.parent;b;)d.push(b),b=b.parent;d.reverse();b=0;for(g=d.length;b<g;b++)if(!d[b].Hw()){a=!1;break}}a&&(this.Nf++,h.Dd?h.Gw(e):
h.jb(),f=f||r.dg);this.Wk();k&&this.mw();this.mg(h.vf);c&&this.mg(c.vf);this.ff&&0===this.zd&&0===W&&!this.Um&&this.Hb();this.po--;return f};c.prototype.Hh=function(){var a=this.Eb();return a.jc.yb[a.xb]};c.prototype.cv=function(){return this.Hh().type};c.prototype.bv=function(){var a=this.Eb();return a.jc.Tc[a.hc]};c.prototype.vw=function(){this.Jk++;this.Jk>=this.rn.length&&this.rn.push([])};c.prototype.mw=function(){this.Jk--};c.prototype.xp=function(){return this.rn[this.Jk]};c.prototype.al=function(a){this.Vj++;
this.Vj>=this.mm.length&&this.mm.push(new Qb);var d=this.Eb();d.reset(a);return d};c.prototype.Wk=function(){this.Vj--};c.prototype.Eb=function(){return this.mm[this.Vj]};c.prototype.yp=function(a,d){for(var h,e,b,g,f,c;d;){h=0;for(e=d.kd.length;h<e;h++)if(c=d.kd[h],c instanceof Rb&&kb(a,c.name))return c;d=d.parent}h=0;for(e=this.me.length;h<e;h++)for(f=this.me[h],b=0,g=f.bf.length;b<g;b++)if(c=f.bf[b],c instanceof Rb&&kb(a,c.name))return c;return null};c.prototype.zp=function(a){var d,h;d=0;for(h=
this.Ad.length;d<h;d++)if(this.Ad[d].ja===a)return this.Ad[d];return null};c.prototype.Jh=function(a){var d,h;d=0;for(h=this.G.length;d<h;d++)if(this.G[d].ja===a)return this.G[d];return null};c.prototype.gv=function(a){var d,h;d=0;for(h=this.Se.length;d<h;d++)if(this.Se[d].ja===a)return this.Se[d];return null};c.prototype.Pt=function(a,d){this.hj=[a,d];this.Ca=!0};c.prototype.Iv=function(){var a=this,d=this.Un,h=this.ue,e=this.Dk,g=!1;this.xr&&(g=!0,d="__c2_continuouspreview",this.xr=!1);if(d.length){this.Hb();
h=this.Lw();if(n()&&!this.xd)k(d,h,function(){y("Saved state to IndexedDB storage ("+h.length+" bytes)");a.ue=h;a.trigger(Y.prototype.D.Gl,null);a.ue="";g&&b()},function(e){try{localStorage.setItem("__c2save_"+d,h),y("Saved state to WebStorage ("+h.length+" bytes)"),a.ue=h,a.trigger(Y.prototype.D.Gl,null),a.ue="",g&&b()}catch(f){y("Failed to save game state: "+e+"; "+f)}});else try{localStorage.setItem("__c2save_"+d,h),y("Saved state to WebStorage ("+h.length+" bytes)"),a.ue=h,this.trigger(Y.prototype.D.Gl,
null),a.ue="",g&&b()}catch(f){y("Error saving to WebStorage: "+f)}this.Ub=this.Dk=this.Un=""}if(e.length){if(n()&&!this.xd)q(e,function(d){d?(a.Ub=d,y("Loaded state from IndexedDB storage ("+a.Ub.length+" bytes)")):(a.Ub=localStorage.getItem("__c2save_"+e)||"",y("Loaded state from WebStorage ("+a.Ub.length+" bytes)"));a.ij=!1;a.Ub.length||a.trigger(Y.prototype.D.Fl,null)},function(){a.Ub=localStorage.getItem("__c2save_"+e)||"";y("Loaded state from WebStorage ("+a.Ub.length+" bytes)");a.ij=!1;a.Ub.length||
a.trigger(Y.prototype.D.Fl,null)});else{try{this.Ub=localStorage.getItem("__c2save_"+e)||"",y("Loaded state from WebStorage ("+this.Ub.length+" bytes)")}catch(c){this.Ub=""}this.ij=!1;a.Ub.length||a.trigger(Y.prototype.D.Fl,null)}this.Un=this.Dk=""}this.Ub.length&&(this.Hb(),this.$v(this.Ub),this.ue=this.Ub,this.trigger(Y.prototype.D.Os,null),this.Ub=this.ue="")};c.prototype.Lw=function(){var d,h,e,b,g,f,c,k={c2save:!0,version:1,rt:{time:this.ob.T,walltime:this.Me.T,timescale:this.ug,tickcount:this.md,
execcount:this.Nf,next_uid:this.Li,running_layout:this.za.ja,start_time_offset:Date.now()-this.ol},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};d=0;for(h=this.G.length;d<h;d++)if(g=this.G[d],!g.S&&!this.qo(g)){f={instances:[]};Xa(g.L)&&(f.ex=a(g.L));e=0;for(b=g.k.length;e<b;e++)f.instances.push(this.Tn(g.k[e]));k.types[g.ja.toString()]=f}d=0;for(h=this.Ad.length;d<h;d++)e=this.Ad[d],k.layouts[e.ja.toString()]=e.Za();b=k.events.groups;d=0;for(h=this.Se.length;d<h;d++)e=this.Se[d],
b[e.ja.toString()]=this.jk[e.Oh].Nh;h=k.events.cnds;for(c in this.We)this.We.hasOwnProperty(c)&&(d=this.We[c],Xa(d.L)&&(h[c]={ex:a(d.L)}));h=k.events.acts;for(c in this.Re)this.Re.hasOwnProperty(c)&&(d=this.Re[c],Xa(d.L)&&(h[c]={ex:a(d.L)}));h=k.events.vars;for(c in this.lh)this.lh.hasOwnProperty(c)&&(d=this.lh[c],d.sk||d.parent&&!d.di||(h[c]=d.data));k.system=this.fe.Za();return JSON.stringify(k)};c.prototype.dr=function(){var a,d,h,e,b,g;this.xe={};a=0;for(d=this.G.length;a<d;a++)if(h=this.G[a],
!h.S)for(e=0,b=h.k.length;e<b;e++)g=h.k[e],this.xe[g.uid.toString()]=g};c.prototype.$v=function(a){a=JSON.parse(a);if(a.c2save&&!(1<a.version)){this.Xh=!0;var d=a.rt;this.ob.reset();this.ob.T=d.time;this.Me.reset();this.Me.T=d.walltime||0;this.ug=d.timescale;this.md=d.tickcount;this.Nf=d.execcount;this.ol=Date.now()-d.start_time_offset;var h=d.running_layout;if(h!==this.za.ja)if(h=this.zp(h))this.jp(h);else return;var e,b,g,f,c,k,r;k=a.types;for(b in k)if(k.hasOwnProperty(b)&&(f=this.Jh(parseInt(b,
10)))&&!f.S&&!this.qo(f)){k[b].ex?f.L=k[b].ex:Ya(f.L);c=f.k;g=k[b].instances;h=0;for(e=na(c.length,g.length);h<e;h++)this.Ek(c[h],g[h]);h=g.length;for(e=c.length;h<e;h++)this.yf(c[h]);h=c.length;for(e=g.length;h<e;h++){c=null;if(f.Ja.hf&&(c=this.za.ik(g[h].w.l),!c))continue;c=this.Xe(f.Yc,c,!1,0,0,!0);this.Ek(c,g[h])}f.fh=!0}this.Hb();this.dr();e=a.layouts;for(b in e)e.hasOwnProperty(b)&&(h=this.zp(parseInt(b,10)))&&h.hb(e[b]);e=a.events.groups;for(b in e)e.hasOwnProperty(b)&&(h=this.gv(parseInt(b,
10)))&&this.jk[h.Oh]&&this.jk[h.Oh].mr(e[b]);h=a.events.cnds;for(b in this.We)this.We.hasOwnProperty(b)&&(h.hasOwnProperty(b)?this.We[b].L=h[b].ex:this.We[b].L={});h=a.events.acts;for(b in this.Re)this.Re.hasOwnProperty(b)&&(h.hasOwnProperty(b)?this.Re[b].L=h[b].ex:this.Re[b].L={});h=a.events.vars;for(b in h)h.hasOwnProperty(b)&&this.lh.hasOwnProperty(b)&&(this.lh[b].data=h[b]);this.Li=d.next_uid;this.Xh=!1;h=0;for(e=this.Zj.length;h<e;++h)c=this.Zj[h],this.trigger(Object.getPrototypeOf(c.type.Ja).D.vj,
c);T(this.Zj);this.fe.hb(a.system);h=0;for(e=this.G.length;h<e;h++)if(f=this.G[h],!f.S&&!this.qo(f))for(b=0,a=f.k.length;b<a;b++){c=f.k[b];if(f.zc)for(k=c.Mh(),T(c.siblings),d=0,g=f.xc.length;d<g;d++)r=f.xc[d],f!==r&&c.siblings.push(r.k[k]);c.qd&&c.qd();if(c.O)for(d=0,g=c.O.length;d<g;d++)k=c.O[d],k.qd&&k.qd()}this.Ca=!0}};c.prototype.Tn=function(d,h){var e,b,g,f,c;f=d.type;g=f.Ja;var k={};h?k.c2=!0:k.uid=d.uid;Xa(d.L)&&(k.ex=a(d.L));if(d.nb&&d.nb.length)for(k.ivs={},e=0,b=d.nb.length;e<b;e++)k.ivs[d.type.Pm[e].toString()]=
d.nb[e];if(g.hf){g={x:d.x,y:d.y,w:d.width,h:d.height,l:d.n.ja,zi:d.Td()};0!==d.q&&(g.a=d.q);1!==d.opacity&&(g.o=d.opacity);.5!==d.nc&&(g.hX=d.nc);.5!==d.oc&&(g.hY=d.oc);0!==d.Jb&&(g.bm=d.Jb);d.visible||(g.v=d.visible);d.Jc||(g.ce=d.Jc);-1!==d.Ki&&(g.mts=d.Ki);if(f.X.length)for(g.fx=[],e=0,b=f.X.length;e<b;e++)c=f.X[e],g.fx.push({name:c.name,active:d.Qe[c.index],params:d.Xa[c.index]});k.w=g}if(d.O&&d.O.length)for(k.behs={},e=0,b=d.O.length;e<b;e++)f=d.O[e],f.Za&&(k.behs[f.type.ja.toString()]=f.Za());
d.Za&&(k.data=d.Za());return k};c.prototype.jv=function(a,d){var h,e;h=0;for(e=a.Pm.length;h<e;h++)if(a.Pm[h]===d)return h;return-1};c.prototype.$u=function(a,d){var h,e;h=0;for(e=a.O.length;h<e;h++)if(a.O[h].type.ja===d)return h;return-1};c.prototype.Ek=function(a,d,h){var e,b,g,f,c;c=a.type;f=c.Ja;if(h){if(!d.c2)return}else a.uid=d.uid;d.ex?a.L=d.ex:Ya(a.L);if(b=d.ivs)for(e in b)b.hasOwnProperty(e)&&(g=this.jv(c,parseInt(e,10)),0>g||g>=a.nb.length||(a.nb[g]=b[e]));if(f.hf){g=d.w;a.n.ja!==g.l&&(b=
a.n,a.n=this.za.ik(g.l),a.n?(b.Zg(a,!0),a.n.rh(a,!0),a.F(),a.n.bj(0)):(a.n=b,h||this.yf(a)));a.x=g.x;a.y=g.y;a.width=g.w;a.height=g.h;a.Nd=g.zi;a.q=g.hasOwnProperty("a")?g.a:0;a.opacity=g.hasOwnProperty("o")?g.o:1;a.nc=g.hasOwnProperty("hX")?g.hX:.5;a.oc=g.hasOwnProperty("hY")?g.hY:.5;a.visible=g.hasOwnProperty("v")?g.v:!0;a.Jc=g.hasOwnProperty("ce")?g.ce:!0;a.Ki=g.hasOwnProperty("mts")?g.mts:-1;a.Jb=g.hasOwnProperty("bm")?g.bm:0;a.wh=hb(a.Jb);this.K&&ib(a,a.Jb,this.K);a.F();if(g.hasOwnProperty("fx"))for(h=
0,b=g.fx.length;h<b;h++)f=c.zm(g.fx[h].name),0>f||(a.Qe[f]=g.fx[h].active,a.Xa[f]=g.fx[h].params);a.Md()}if(c=d.behs)for(e in c)c.hasOwnProperty(e)&&(h=this.$u(a,parseInt(e,10)),0>h||a.O[h].hb(c[e]));d.data&&a.hb(d.data)};c.prototype.op=function(a,d,h){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+"www/"+a,function(a){a.file(d,h)},h)};c.prototype.Ru=function(a,d){this.op("data.js",function(h){var e=new FileReader;e.onload=function(d){a(d.target.result)};e.onerror=d;e.readAsText(h)},
d)};c.prototype.pp=function(a,d,h){this.op(a,function(a){var h=new FileReader;h.onload=function(a){d(a.target.result)};h.readAsArrayBuffer(a)},h)};c.prototype.Su=function(a,d,h){this.pp(a,function(a){a=URL.createObjectURL(new Blob([a]));d(a)},h)};c.prototype.nr=function(a,d){this.bi?this.Su(d,function(d){a.src=d},function(a){alert("Failed to load image: "+a)}):a.src=d};Sb=function(a){return new c(document.getElementById(a))};Tb=function(a,d){return new c({dc:!0,width:a,height:d})};window.cr_createRuntime=
Sb;window.cr_createDCRuntime=Tb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.Pl=!0;document.body.appendChild(a);a=new c(a);window.c2runtime=a;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a};window.createEjectaRuntime=function(){var a=new c(document.getElementById("canvas"));
window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();window.cr_getC2Runtime=function(){var c=document.getElementById("c2canvas");return c?c.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(c,l){var n=window.cr_getC2Runtime();n&&n.Pt(c,l)};window.cr_sizeCanvas=function(c,l){if(0!==c&&0!==l){var n=window.cr_getC2Runtime();n&&n.setSize(c,l)}};window.cr_setSuspended=function(c){var l=window.cr_getC2Runtime();l&&l.setSuspended(c)};
(function(){function c(a,e){this.b=a;this.Lf=null;this.scrollX=this.b.sb/2;this.scrollY=this.b.rb/2;this.scale=1;this.q=0;this.Fg=!0;this.name=e[0];this.width=e[1];this.height=e[2];this.Qr=e[3];this.tr=e[4];this.ja=e[5];var b=e[6],g,f;this.Z=[];this.Rh=[];g=0;for(f=b.length;g<f;g++){var c=new Ub(this,b[g]);c.Fq=g;this.Z.push(c)}b=e[7];this.Wf=[];g=0;for(f=b.length;g<f;g++){var c=b[g],k=this.b.G[c[1]];k.Yc||(k.Yc=c);this.Wf.push(c);-1===this.Rh.indexOf(k)&&this.Rh.push(k)}this.X=[];this.ta=[];this.Ee=
!0;this.Xa=[];g=0;for(f=e[8].length;g<f;g++)this.X.push({id:e[8][g][0],name:e[8][g][1],kb:-1,Gd:!1,Ib:!0,index:g}),this.Xa.push(e[8][g][2].slice(0));this.Md();this.tf=new ta(0,0,1,1);this.Nn=new ta(0,0,1,1);this.rf={}}function l(a,e){return a.Nd-e.Nd}function n(a,e){this.qb=a;this.b=a.b;this.k=[];this.scale=1;this.q=0;this.le=!1;this.Je=new ta(0,0,0,0);this.Lr=new ua;this.Ua=this.Ma=this.Va=this.La=0;this.vg=!1;this.Oe=-1;this.Zl=0;this.name=e[0];this.index=e[1];this.ja=e[2];this.visible=e[3];this.td=
e[4];this.Ld=e[5];this.ye=e[6];this.ze=e[7];this.opacity=e[8];this.dk=e[9];this.Sc=e[10];this.tj=e[11];this.Jb=e[12];this.ku=e[13];this.wh="source-over";this.Rb=this.Vb=0;this.Gb=null;this.ve=m();this.Id=!0;this.Sg=new ta(0,0,-1,-1);this.Cb=new ta(0,0,-1,-1);this.Sc&&(this.Gb=new gb(this.b.sb,this.b.rb));this.de=!1;var b=e[14],g,f;this.Cr=[];this.Nc=[];this.zh=[];g=0;for(f=b.length;g<f;g++){var c=b[g],k=this.b.G[c[1]];k.Yc||(k.Yc=c,k.Ot=this.index);this.Nc.push(c);-1===this.qb.Rh.indexOf(k)&&this.qb.Rh.push(k)}za(this.Cr,
this.Nc);this.X=[];this.ta=[];this.Ee=!0;this.Xa=[];g=0;for(f=e[15].length;g<f;g++)this.X.push({id:e[15][g][0],name:e[15][g][1],kb:-1,Gd:!1,Ib:!0,index:g}),this.Xa.push(e[15][g][2].slice(0));this.Md();this.tf=new ta(0,0,1,1);this.Nn=new ta(0,0,1,1)}function m(){return a.length?a.pop():[]}function k(d){T(d);a.push(d)}c.prototype.Kw=function(a){var e=a.type.ja.toString();this.rf.hasOwnProperty(e)||(this.rf[e]=[]);this.rf[e].push(this.b.Tn(a))};c.prototype.Dp=function(){var a=this.Z[0];return!a.Ld&&
1===a.opacity&&!a.dk&&a.visible};c.prototype.Md=function(){T(this.ta);this.Ee=!0;var a,e,b;a=0;for(e=this.X.length;a<e;a++)b=this.X[a],b.Ib&&(this.ta.push(b),b.Gd||(this.Ee=!1))};c.prototype.ym=function(a){var e,b,g;e=0;for(b=this.X.length;e<b;e++)if(g=this.X[e],g.name===a)return g;return null};var q=[],b=!0;c.prototype.fo=function(){this.tr&&(this.Lf=this.b.nm[this.tr],this.Lf.to());this.b.za=this;this.scrollX=this.b.sb/2;this.scrollY=this.b.rb/2;var a,e,f,g,c,k,m;a=0;for(f=this.b.G.length;a<f;a++)if(e=
this.b.G[a],!e.S)for(c=e.k,e=0,g=c.length;e<g;e++)if(k=c[e],k.n){var h=k.n.Fq;h>=this.Z.length&&(h=this.Z.length-1);k.n=this.Z[h];-1===k.n.k.indexOf(k)&&k.n.k.push(k);k.n.vg=!0}if(!b)for(a=0,f=this.Z.length;a<f;++a)this.Z[a].k.sort(l);T(q);this.Et();a=0;for(f=this.Z.length;a<f;a++)k=this.Z[a],k.Nt(),k.zl();c=!1;if(!this.Fg){for(m in this.rf)if(this.rf.hasOwnProperty(m)&&(e=this.b.Jh(parseInt(m,10)))&&!e.S&&this.b.ro(e)){g=this.rf[m];a=0;for(f=g.length;a<f;a++){k=null;if(e.Ja.hf&&(k=this.ik(g[a].w.l),
!k))continue;k=this.b.Xe(e.Yc,k,!1,0,0,!0);this.b.Ek(k,g[a]);c=!0;q.push(k)}T(g)}a=0;for(f=this.Z.length;a<f;a++)this.Z[a].k.sort(l),this.Z[a].vg=!0}c&&(this.b.Hb(),this.b.dr());for(a=0;a<q.length;a++)if(k=q[a],k.type.zc)for(f=k.Mh(),e=0,g=k.type.xc.length;e<g;e++)m=k.type.xc[e],k.type!==m&&(m.k.length>f?k.siblings.push(m.k[f]):m.Yc&&(c=this.b.Xe(m.Yc,k.n,!0,k.x,k.y,!0),this.b.Hb(),m.xl(),k.siblings.push(c),q.push(c)));a=0;for(f=this.Wf.length;a<f;a++)this.b.Xe(this.Wf[a],null,!0);this.b.Ff=null;
this.b.Hb();if(this.b.Aa&&!this.b.Da)for(a=0,f=this.b.G.length;a<f;a++)m=this.b.G[a],!m.S&&m.k.length&&m.Fn&&m.Fn(this.b.Aa);if(this.b.Xh)za(this.b.Zj,q);else for(a=0,f=q.length;a<f;a++)k=q[a],this.b.trigger(Object.getPrototypeOf(k.type.Ja).D.vj,k);T(q);this.b.Xh||this.b.trigger(Y.prototype.D.Jo,null);this.Fg=!1};c.prototype.Mt=function(){var a,e,b,g,f;e=a=0;for(b=this.Wf.length;a<b;a++)g=this.Wf[a],f=this.b.G[g[1]],f.global?f.zc||this.b.Xe(g,null,!0):(this.Wf[e]=g,e++);ya(this.Wf,e)};c.prototype.Vw=
function(){this.b.Xh||this.b.trigger(Y.prototype.D.Ns,null);this.b.Rm=!0;T(this.b.fe.wc);var a,e,f,g,c,k;if(!this.Fg)for(a=0,e=this.Z.length;a<e;a++)for(this.Z[a].vo(),c=this.Z[a].k,f=0,g=c.length;f<g;f++)k=c[f],k.type.global||this.b.ro(k.type)&&this.Kw(k);a=0;for(e=this.Z.length;a<e;a++){c=this.Z[a].k;f=0;for(g=c.length;f<g;f++)k=c[f],k.type.global||this.b.yf(k);this.b.Hb();T(c);this.Z[a].vg=!0}a=0;for(e=this.b.G.length;a<e;a++)if(c=this.b.G[a],!(c.global||c.Ja.hf||c.Ja.nl||c.S)){f=0;for(g=c.k.length;f<
g;f++)this.b.yf(c.k[f]);this.b.Hb()}b=!1;this.b.Rm=!1};new ta(0,0,0,0);c.prototype.$c=function(a){var e,b=a,g=!1,f=!this.b.Lc;f&&(this.b.Ck||(this.b.Ck=document.createElement("canvas"),e=this.b.Ck,e.width=this.b.R,e.height=this.b.P,this.b.dq=e.getContext("2d"),g=!0),e=this.b.Ck,b=this.b.dq,e.width!==this.b.R&&(e.width=this.b.R,g=!0),e.height!==this.b.P&&(e.height=this.b.P,g=!0),g&&(b.webkitImageSmoothingEnabled=this.b.da,b.mozImageSmoothingEnabled=this.b.da,b.msImageSmoothingEnabled=this.b.da,b.imageSmoothingEnabled=
this.b.da));b.globalAlpha=1;b.globalCompositeOperation="source-over";this.b.Ll&&!this.Dp()&&b.clearRect(0,0,this.b.R,this.b.P);var c,k,g=0;for(c=this.Z.length;g<c;g++)k=this.Z[g],k.visible&&0<k.opacity&&11!==k.Jb&&(k.k.length||!k.Ld)?k.$c(b):k.zl();f&&a.drawImage(e,0,0,this.b.width,this.b.height)};c.prototype.If=function(a){a.lr(!0);this.b.gb||(this.b.gb=a.Kc(this.b.R,this.b.P,this.b.da));if(this.b.gb.Df!==this.b.R||this.b.gb.Cf!==this.b.P)a.deleteTexture(this.b.gb),this.b.gb=a.Kc(this.b.R,this.b.P,
this.b.da);a.jd(this.b.gb);this.b.Lc||a.pg(this.b.R,this.b.P);var e,b;for(e=this.Z.length-1;0<=e;--e)b=this.Z[e],b.visible&&1===b.opacity&&b.Ee&&0===b.Jb&&(b.k.length||!b.Ld)?b.If(a):b.zl();a.lr(!1)};c.prototype.Yb=function(a){var e=0<this.ta.length||this.b.jh||!this.b.Lc||this.b.Ia;if(e){this.b.gb||(this.b.gb=a.Kc(this.b.R,this.b.P,this.b.da));if(this.b.gb.Df!==this.b.R||this.b.gb.Cf!==this.b.P)a.deleteTexture(this.b.gb),this.b.gb=a.Kc(this.b.R,this.b.P,this.b.da);a.jd(this.b.gb);this.b.Lc||a.pg(this.b.R,
this.b.P)}else this.b.gb&&(a.jd(null),a.deleteTexture(this.b.gb),this.b.gb=null);this.b.Ll&&!this.Dp()&&a.clear(0,0,0,0);var b,g,f;b=0;for(g=this.Z.length;b<g;b++)f=this.Z[b],f.visible&&0<f.opacity&&(f.k.length||!f.Ld)?f.Yb(a):f.zl();e&&(0===this.ta.length||1===this.ta.length&&this.b.Lc?(1===this.ta.length?(e=this.ta[0].index,a.uc(this.ta[0].kb),a.ah(null,1/this.b.R,1/this.b.P,0,0,1,1,this.scale,this.q,0,0,this.b.R/2,this.b.P/2,this.b.ob.T,this.Xa[e]),a.Zk(this.ta[0].kb)&&(this.b.Ca=!0)):a.uc(0),
this.b.Lc||a.pg(this.b.width,this.b.height),a.jd(null),a.kr(!1),a.ng(1),a.Gc(this.b.gb),a.ir(),a.hd(),a.Rc(),e=this.b.width/2,b=this.b.height/2,a.Xi(-e,b,e,b,e,-b,-e,-b),a.Gc(null),a.kr(!0)):this.On(a,null,null,null))};c.prototype.Kh=function(){return 0<this.ta.length||this.b.jh||!this.b.Lc||this.b.Ia?this.b.gb:null};c.prototype.Ap=function(){var a=this.Z[0].mc(),e,b,g;e=1;for(b=this.Z.length;e<b;e++)g=this.Z[e],(0!==g.ye||0!==g.ze)&&g.mc()<a&&(a=g.mc());return a};c.prototype.Vn=function(a){if(!this.Qr){var e=
1/this.Ap()*this.b.R/2;a>this.width-e&&(a=this.width-e);a<e&&(a=e)}this.scrollX!==a&&(this.scrollX=a,this.b.Ca=!0)};c.prototype.Wn=function(a){if(!this.Qr){var e=1/this.Ap()*this.b.P/2;a>this.height-e&&(a=this.height-e);a<e&&(a=e)}this.scrollY!==a&&(this.scrollY=a,this.b.Ca=!0)};c.prototype.Et=function(){this.Vn(this.scrollX);this.Wn(this.scrollY)};c.prototype.On=function(a,e,b,g){var f=b?b.ta:e?e.ta:this.ta,c=1,k=0,h=0,r=0,l=this.b.R,m=this.b.P;b?(c=b.n.mc(),k=b.n.ab(),h=b.n.La,r=b.n.Ma,l=b.n.Va,
m=b.n.Ua):e&&(c=e.mc(),k=e.ab(),h=e.La,r=e.Ma,l=e.Va,m=e.Ua);var n=this.b.wm,p,q,F,z,M=0,ga=1,K,B=this.b.R,t=this.b.P,W=B/2,w=t/2,u=e?e.tf:this.tf,D=e?e.Nn:this.Nn,L=0,U=0,J=0,H=0,O=B,pa=B,S=t,qa=t,ka=F=0;z=b?b.n.ab():0;if(b){p=0;for(q=f.length;p<q;p++)F+=a.rv(f[p].kb),ka+=a.sv(f[p].kb);H=b.Oa;L=e.wa(H.left,H.top,!0,!0);J=e.wa(H.left,H.top,!1,!0);O=e.wa(H.right,H.bottom,!0,!0);S=e.wa(H.right,H.bottom,!1,!0);0!==z&&(p=e.wa(H.right,H.top,!0,!0),q=e.wa(H.right,H.top,!1,!0),U=e.wa(H.left,H.bottom,!0,
!0),H=e.wa(H.left,H.bottom,!1,!0),z=Math.min(L,O,p,U),O=Math.max(L,O,p,U),L=z,z=Math.min(J,S,q,H),S=Math.max(J,S,q,H),J=z);L-=F;J-=ka;O+=F;S+=ka;D.left=L/B;D.top=1-J/t;D.right=O/B;D.bottom=1-S/t;U=L=R(L);H=J=R(J);pa=O=ra(O);qa=S=ra(S);U-=F;H-=ka;pa+=F;qa+=ka;0>L&&(L=0);0>J&&(J=0);O>B&&(O=B);S>t&&(S=t);0>U&&(U=0);0>H&&(H=0);pa>B&&(pa=B);qa>t&&(qa=t);u.left=L/B;u.top=1-J/t;u.right=O/B;u.bottom=1-S/t}else u.left=D.left=0,u.top=D.top=0,u.right=D.right=1,u.bottom=D.bottom=1;ka=b&&(a.Ui(f[0].kb)||0!==F||
0!==ka||1!==b.opacity||b.type.Ja.Aq)||e&&!b&&1!==e.opacity;a.ir();if(ka){n[M]||(n[M]=a.Kc(B,t,this.b.da));if(n[M].Df!==B||n[M].Cf!==t)a.deleteTexture(n[M]),n[M]=a.Kc(B,t,this.b.da);a.uc(0);a.jd(n[M]);K=qa-H;a.clearRect(U,t-H-K,pa-U,K);b?b.Yb(a):(a.Gc(this.b.pb),a.ng(e.opacity),a.hd(),a.translate(-W,-w),a.Rc(),a.ae(L,S,O,S,O,J,L,J,u));D.left=D.top=0;D.right=D.bottom=1;b&&(z=u.top,u.top=u.bottom,u.bottom=z);M=1;ga=0}a.ng(1);F=f.length-1;var Ia=a.Hn(f[F].kb)||!e&&!b&&!this.b.Lc,va=0;p=0;for(q=f.length;p<
q;p++){n[M]||(n[M]=a.Kc(B,t,this.b.da));if(n[M].Df!==B||n[M].Cf!==t)a.deleteTexture(n[M]),n[M]=a.Kc(B,t,this.b.da);a.uc(f[p].kb);va=f[p].index;a.Zk(f[p].kb)&&(this.b.Ca=!0);0!=p||ka?(a.ah(g,1/B,1/t,D.left,D.top,D.right,D.bottom,c,k,h,r,(h+l)/2,(r+m)/2,this.b.ob.T,b?b.Xa[va]:e?e.Xa[va]:this.Xa[va]),a.Gc(null),p!==F||Ia?(a.jd(n[M]),K=qa-H,z=t-H-K,a.clearRect(U,z,pa-U,K)):(b?a.uf(b.Vb,b.Rb):e&&a.uf(e.Vb,e.Rb),a.jd(g)),a.Gc(n[ga]),a.hd(),a.translate(-W,-w),a.Rc(),a.ae(L,S,O,S,O,J,L,J,u),p!==F||Ia||a.Gc(null)):
(a.jd(n[M]),K=qa-H,z=t-H-K,a.clearRect(U,z,pa-U,K),b?(a.ah(g,1/b.width,1/b.height,D.left,D.top,D.right,D.bottom,c,k,h,r,(h+l)/2,(r+m)/2,this.b.ob.T,b.Xa[va]),b.Yb(a)):(a.ah(g,1/B,1/t,0,0,1,1,c,k,h,r,(h+l)/2,(r+m)/2,this.b.ob.T,e?e.Xa[va]:this.Xa[va]),a.Gc(e?this.b.pb:this.b.gb),a.hd(),a.translate(-W,-w),a.Rc(),a.ae(L,S,O,S,O,J,L,J,u)),D.left=D.top=0,D.right=D.bottom=1,b&&!Ia&&(z=S,S=J,J=z));M=0===M?1:0;ga=0===M?1:0}Ia&&(a.uc(0),b?a.uf(b.Vb,b.Rb):e?a.uf(e.Vb,e.Rb):this.b.Lc||(a.pg(this.b.width,this.b.height),
W=this.b.width/2,w=this.b.height/2,J=L=0,O=this.b.width,S=this.b.height),a.jd(g),a.Gc(n[ga]),a.hd(),a.translate(-W,-w),a.Rc(),b&&1===f.length&&!ka?a.ae(L,J,O,J,O,S,L,S,u):a.ae(L,S,O,S,O,J,L,J,u),a.Gc(null))};c.prototype.ik=function(a){var b,f;b=0;for(f=this.Z.length;b<f;b++)if(this.Z[b].ja===a)return this.Z[b];return null};c.prototype.Za=function(){var a,b,f,g={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.q,w:this.width,h:this.height,fv:this.Fg,persist:this.rf,fx:[],layers:{}};a=0;for(b=this.X.length;a<
b;a++)f=this.X[a],g.fx.push({name:f.name,active:f.Ib,params:this.Xa[f.index]});a=0;for(b=this.Z.length;a<b;a++)f=this.Z[a],g.layers[f.ja.toString()]=f.Za();return g};c.prototype.hb=function(a){var b,f,g,c;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.q=a.a;this.width=a.w;this.height=a.h;this.rf=a.persist;"undefined"!==typeof a.fv&&(this.Fg=a.fv);var k=a.fx;b=0;for(f=k.length;b<f;b++)if(g=this.ym(k[b].name))g.Ib=k[b].active,this.Xa[g.index]=k[b].params;this.Md();b=a.layers;for(c in b)b.hasOwnProperty(c)&&
(a=this.ik(parseInt(c,10)))&&a.hb(b[c])};Gb=c;n.prototype.Md=function(){T(this.ta);this.Ee=!0;var a,b,f;a=0;for(b=this.X.length;a<b;a++)f=this.X[a],f.Ib&&(this.ta.push(f),f.Gd||(this.Ee=!1))};n.prototype.ym=function(a){var b,f,g;b=0;for(f=this.X.length;b<f;b++)if(g=this.X[b],g.name===a)return g;return null};n.prototype.Nt=function(){var a,b,f,g,c,k;b=a=0;for(f=this.Nc.length;a<f;a++){g=this.Nc[a];c=this.b.G[g[1]];k=this.b.ro(c);c=!0;if(!k||this.qb.Fg){g=this.b.Xe(g,this,!0);if(!g)continue;q.push(g);
g.type.global&&(c=!1,this.zh.push(g.uid))}c&&(this.Nc[b]=this.Nc[a],b++)}this.Nc.length=b;this.b.Hb();!this.b.H&&this.X.length&&(this.Jb=this.ku);this.wh=hb(this.Jb);this.b.K&&ib(this,this.Jb,this.b.K);this.Id=!0};n.prototype.Zg=function(a,b){var f=Ba(this.k,a);0>f||(b&&this.Sc&&a.rc&&a.rc.right>=a.rc.left&&(a.Ha(),this.Gb.update(a,a.rc,null),a.rc.set(0,0,-1,-1)),f===this.k.length-1?this.k.pop():(xa(this.k,f),this.bj(f)),this.Id=!0)};n.prototype.rh=function(a,b){a.Nd=this.k.length;this.k.push(a);
b&&this.Sc&&a.rc&&a.F();this.Id=!0};n.prototype.rw=function(a){this.k.unshift(a);this.bj(0)};n.prototype.dw=function(a,b,f){var g=a.Td();b=b.Td();xa(this.k,g);g<b&&b--;f&&b++;b===this.k.length?this.k.push(a):this.k.splice(b,0,a);this.bj(g<b?g:b)};n.prototype.bj=function(a){-1===this.Oe?this.Oe=a:a<this.Oe&&(this.Oe=a);this.Id=this.vg=!0};n.prototype.vo=function(){if(this.vg){-1===this.Oe&&(this.Oe=0);var a,b,f;if(this.Sc)for(a=this.Oe,b=this.k.length;a<b;++a)f=this.k[a],f.Nd=a,this.Gb.bw(f.rc);else for(a=
this.Oe,b=this.k.length;a<b;++a)this.k[a].Nd=a;this.vg=!1;this.Oe=-1}};n.prototype.mc=function(a){return this.ov()*(this.b.Lc||a?this.b.sh:1)};n.prototype.ov=function(){return(this.scale*this.qb.scale-1)*this.tj+1};n.prototype.ab=function(){return this.le?0:Ga(this.qb.q+this.q)};var a=[],f=[],p=[];n.prototype.Cm=function(){this.vo();this.Gb.bl(this.La,this.Ma,this.Va,this.Ua,p);if(!p.length)return m();if(1===p.length){var a=m();za(a,p[0]);T(p);return a}for(var b=!0;1<p.length;){for(var a=p,c=void 0,
g=void 0,l=void 0,n=void 0,q=void 0,c=0,g=a.length;c<g-1;c+=2){var l=a[c],n=a[c+1],q=m(),h=l,r=n,x=q,C=0,G=0,P=0,N=h.length,F=r.length,z=void 0,M=void 0;for(x.length=N+F;C<N&&G<F;++P)z=h[C],M=r[G],z.Nd<M.Nd?(x[P]=z,++C):(x[P]=M,++G);for(;C<N;++C,++P)x[P]=h[C];for(;G<F;++G,++P)x[P]=r[G];b||(k(l),k(n));f.push(q)}1===g%2&&(b?(l=m(),za(l,a[g-1]),f.push(l)):f.push(a[g-1]));za(a,f);T(f);b=!1}a=p[0];T(p);return a};n.prototype.$c=function(a){this.de=this.dk||1!==this.opacity||0!==this.Jb;var b=this.b.canvas,
f=a,g=!1;this.de&&(this.b.Bk||(this.b.Bk=document.createElement("canvas"),b=this.b.Bk,b.width=this.b.R,b.height=this.b.P,this.b.cq=b.getContext("2d"),g=!0),b=this.b.Bk,f=this.b.cq,b.width!==this.b.R&&(b.width=this.b.R,g=!0),b.height!==this.b.P&&(b.height=this.b.P,g=!0),g&&(f.webkitImageSmoothingEnabled=this.b.da,f.mozImageSmoothingEnabled=this.b.da,f.msImageSmoothingEnabled=this.b.da,f.imageSmoothingEnabled=this.b.da),this.Ld&&f.clearRect(0,0,this.b.R,this.b.P));f.globalAlpha=1;f.globalCompositeOperation=
"source-over";this.Ld||(f.fillStyle="rgb("+this.td[0]+","+this.td[1]+","+this.td[2]+")",f.fillRect(0,0,this.b.R,this.b.P));f.save();this.le=!0;var g=this.Ve(!0),c=this.Ve(!1);this.le=!1;this.b.Fd&&(g=Math.round(g),c=Math.round(c));this.dl(g,c,f);var l=this.mc();f.scale(l,l);f.translate(-g,-c);this.Sc?(this.Cb.left=this.Gb.fc(this.La),this.Cb.top=this.Gb.gc(this.Ma),this.Cb.right=this.Gb.fc(this.Va),this.Cb.bottom=this.Gb.gc(this.Ua),this.Id||!this.Cb.Eh(this.Sg)?(k(this.ve),g=this.Cm(),this.Id=!1,
this.Sg.xh(this.Cb)):g=this.ve):g=this.k;for(var m,h=null,c=0,l=g.length;c<l;++c)m=g[c],m!==h&&(this.fu(m,f),h=m);this.Sc&&(this.ve=g);f.restore();this.de&&(a.globalCompositeOperation=this.wh,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};n.prototype.fu=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Ha();var f=a.Oa;f.right<this.La||f.bottom<this.Ma||f.left>this.Va||f.top>this.Ua||(b.globalCompositeOperation=a.wh,a.$c(b))}};n.prototype.zl=function(){this.le=!0;var a=this.Ve(!0),b=this.Ve(!1);
this.le=!1;this.b.Fd&&(a=Math.round(a),b=Math.round(b));this.dl(a,b,null)};n.prototype.dl=function(a,b,f){var g=this.mc();this.La=a;this.Ma=b;this.Va=a+1/g*this.b.R;this.Ua=b+1/g*this.b.P;a=this.ab();0!==a&&(f&&(f.translate(this.b.R/2,this.b.P/2),f.rotate(-a),f.translate(this.b.R/-2,this.b.P/-2)),this.Je.set(this.La,this.Ma,this.Va,this.Ua),this.Je.offset((this.La+this.Va)/-2,(this.Ma+this.Ua)/-2),this.Lr.rr(this.Je,a),this.Lr.Xo(this.Je),this.Je.offset((this.La+this.Va)/2,(this.Ma+this.Ua)/2),this.La=
this.Je.left,this.Ma=this.Je.top,this.Va=this.Je.right,this.Ua=this.Je.bottom)};n.prototype.If=function(a){if(this.de=this.dk){this.b.pb||(this.b.pb=a.Kc(this.b.R,this.b.P,this.b.da));if(this.b.pb.Df!==this.b.R||this.b.pb.Cf!==this.b.P)a.deleteTexture(this.b.pb),this.b.pb=a.Kc(this.b.R,this.b.P,this.b.da);a.jd(this.b.pb)}this.le=!0;var b=this.Ve(!0),f=this.Ve(!1);this.le=!1;this.b.Fd&&(b=Math.round(b),f=Math.round(f));this.dl(b,f,null);b=this.mc();a.hd();a.scale(b,b);a.el(-this.ab());a.translate((this.La+
this.Va)/-2,(this.Ma+this.Ua)/-2);a.Rc();this.Sc?(this.Cb.left=this.Gb.fc(this.La),this.Cb.top=this.Gb.gc(this.Ma),this.Cb.right=this.Gb.fc(this.Va),this.Cb.bottom=this.Gb.gc(this.Ua),this.Id||!this.Cb.Eh(this.Sg)?(k(this.ve),b=this.Cm(),this.Id=!1,this.Sg.xh(this.Cb)):b=this.ve):b=this.k;for(var g,c=null,f=b.length-1;0<=f;--f)g=b[f],g!==c&&(this.hu(b[f],a),c=g);this.Sc&&(this.ve=b);this.Ld||(this.Zl=this.b.Kf++,a.il(this.Zl),a.jr(1,1,1),a.sp(),a.Bw())};n.prototype.Yb=function(a){var b=0,f=0;if(this.de=
this.dk||1!==this.opacity||0<this.ta.length||0!==this.Jb){this.b.pb||(this.b.pb=a.Kc(this.b.R,this.b.P,this.b.da));if(this.b.pb.Df!==this.b.R||this.b.pb.Cf!==this.b.P)a.deleteTexture(this.b.pb),this.b.pb=a.Kc(this.b.R,this.b.P,this.b.da);a.jd(this.b.pb);this.Ld&&a.clear(0,0,0,0)}this.Ld||(this.b.Ia?(a.il(this.Zl),a.jr(this.td[0]/255,this.td[1]/255,this.td[2]/255),a.sp(),a.Qw()):a.clear(this.td[0]/255,this.td[1]/255,this.td[2]/255,1));this.le=!0;var g=this.Ve(!0),b=this.Ve(!1);this.le=!1;this.b.Fd&&
(g=Math.round(g),b=Math.round(b));this.dl(g,b,null);g=this.mc();a.hd();a.scale(g,g);a.el(-this.ab());a.translate((this.La+this.Va)/-2,(this.Ma+this.Ua)/-2);a.Rc();this.Sc?(this.Cb.left=this.Gb.fc(this.La),this.Cb.top=this.Gb.gc(this.Ma),this.Cb.right=this.Gb.fc(this.Va),this.Cb.bottom=this.Gb.gc(this.Ua),this.Id||!this.Cb.Eh(this.Sg)?(k(this.ve),b=this.Cm(),this.Id=!1,this.Sg.xh(this.Cb)):b=this.ve):b=this.k;var c,l,m=null,f=0;for(c=b.length;f<c;++f)l=b[f],l!==m&&(this.gu(b[f],a),m=l);this.Sc&&(this.ve=
b);this.de&&(b=this.ta.length?this.ta[0].kb:0,f=this.ta.length?this.ta[0].index:0,0===this.ta.length||1===this.ta.length&&!a.Hn(b)&&1===this.opacity?(1===this.ta.length?(a.uc(b),a.ah(this.qb.Kh(),1/this.b.R,1/this.b.P,0,0,1,1,g,this.ab(),this.La,this.Ma,(this.La+this.Va)/2,(this.Ma+this.Ua)/2,this.b.ob.T,this.Xa[f]),a.Zk(b)&&(this.b.Ca=!0)):a.uc(0),a.jd(this.qb.Kh()),a.ng(this.opacity),a.Gc(this.b.pb),a.uf(this.Vb,this.Rb),a.hd(),a.Rc(),g=this.b.R/2,b=this.b.P/2,a.Xi(-g,b,g,b,g,-b,-g,-b),a.Gc(null)):
this.qb.On(a,this,null,this.qb.Kh()))};n.prototype.gu=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Ha();var f=a.Oa;f.right<this.La||f.bottom<this.Ma||f.left>this.Va||f.top>this.Ua||(b.il(a.Kf),a.Xr?this.iu(a,b):(b.uc(0),b.uf(a.Vb,a.Rb),a.Yb(b)))}};n.prototype.hu=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Ha();var f=a.Oa;f.right<this.La||f.bottom<this.Ma||f.left>this.Va||f.top>this.Ua||(a.Kf=this.b.Kf++,0===a.Jb&&1===a.opacity&&a.Ee&&a.If&&(b.il(a.Kf),a.If(b)))}};n.prototype.iu=
function(a,b){var f=a.ta[0].kb,g=a.ta[0].index,c=this.mc();if(1!==a.ta.length||b.Hn(f)||b.uw(f)||(a.q||a.n.ab())&&b.Ui(f)||1!==a.opacity||a.type.Ja.Aq)this.qb.On(b,this,a,this.de?this.b.pb:this.qb.Kh()),b.hd(),b.scale(c,c),b.el(-this.ab()),b.translate((this.La+this.Va)/-2,(this.Ma+this.Ua)/-2),b.Rc();else{b.uc(f);b.uf(a.Vb,a.Rb);b.Zk(f)&&(this.b.Ca=!0);var k=0,l=0,h=0,r=0;b.Ui(f)&&(f=a.Oa,k=this.wa(f.left,f.top,!0,!0),l=this.wa(f.left,f.top,!1,!0),h=this.wa(f.right,f.bottom,!0,!0),f=this.wa(f.right,
f.bottom,!1,!0),k=k/windowWidth,l=1-l/windowHeight,h=h/windowWidth,r=1-f/windowHeight);b.ah(this.de?this.b.pb:this.qb.Kh(),1/a.width,1/a.height,k,l,h,r,c,this.ab(),this.La,this.Ma,(this.La+this.Va)/2,(this.Ma+this.Ua)/2,this.b.ob.T,a.Xa[g]);a.Yb(b)}};n.prototype.Ve=function(a){var b=0,f=0,g=this.b.devicePixelRatio;this.b.Yf&&(b*=g,f*=g);var g=this.b.Tq,c=this.b.Uq,g=(this.qb.scrollX-g)*this.ye+g,c=(this.qb.scrollY-c)*this.ze+c,k,l,h=1/this.mc(!1);k=g-this.b.R*h/2;l=c-this.b.P*h/2;k+=b*h;l+=f*h;f=
this.ab();0!==f&&(k-=g,l-=c,b=Math.cos(f),f=Math.sin(f),h=k*b-l*f,l=l*b+k*f,k=h+g,l+=c);return a?k:l};n.prototype.wa=function(a,b,f,g){var c=this.b.Tq,k=this.b.Uq,l=(this.qb.scrollX-c)*this.ye+c,h=(this.qb.scrollY-k)*this.ze+k,k=l,c=h,r=this.ab();if(0!==r){a-=l;b-=h;var m=Math.cos(-r),r=Math.sin(-r),n=a*m-b*r;b=b*m+a*r;a=n+l;b+=h}l=1/this.mc(!g);g?(k-=this.b.R*l/2,c-=this.b.P*l/2):(k-=this.b.width*l/2,c-=this.b.height*l/2);k=(a-k)/l;c=(b-c)/l;a=this.b.devicePixelRatio;this.b.Yf&&!g&&(k/=a,c/=a);return f?
k:c};n.prototype.Za=function(){var a,b,f,g={s:this.scale,a:this.q,vl:this.La,vt:this.Ma,vr:this.Va,vb:this.Ua,v:this.visible,bc:this.td,t:this.Ld,px:this.ye,py:this.ze,o:this.opacity,zr:this.tj,fx:[],cg:this.zh,instances:[]};a=0;for(b=this.X.length;a<b;a++)f=this.X[a],g.fx.push({name:f.name,active:f.Ib,params:this.Xa[f.index]});return g};n.prototype.hb=function(a){var b,f,g;this.scale=a.s;this.q=a.a;this.La=a.vl;this.Ma=a.vt;this.Va=a.vr;this.Ua=a.vb;this.visible=a.v;this.td=a.bc;this.Ld=a.t;this.ye=
a.px;this.ze=a.py;this.opacity=a.o;this.tj=a.zr;this.zh=a.cg||[];za(this.Nc,this.Cr);var c=new ba;b=0;for(g=this.zh.length;b<g;++b)c.add(this.zh[b]);f=b=0;for(g=this.Nc.length;b<g;++b)c.contains(this.Nc[b][2])||(this.Nc[f]=this.Nc[b],++f);ya(this.Nc,f);f=a.fx;b=0;for(g=f.length;b<g;b++)if(a=this.ym(f[b].name))a.Ib=f[b].active,this.Xa[a.index]=f[b].params;this.Md();this.k.sort(l);this.vg=!0};Ub=n})();
(function(){function c(a,b){var d,f=a.length;switch(f){case 0:return!0;case 1:return a[0]===b[0];case 2:return a[0]===b[0]&&a[1]===b[1];default:for(d=0;d<f;d++)if(a[d]!==b[d])return!1;return!0}}function l(a,b){return a.index-b.index}function n(a){var b,d,f,e;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(l);a.length>=I.length&&(I.length=a.length+1);I[a.length]||(I[a.length]=[]);e=I[a.length];b=0;for(d=e.length;b<d;b++)if(f=e[b],c(a,f))return f;e.push(a);return a}
function m(a,b){this.b=a;this.Nr={};this.np={};this.Km=!1;this.Hp=new ba;this.gm=[];this.Ml=[];this.name=b[0];var d=b[1];this.bf=[];var f,e;f=0;for(e=d.length;f<e;f++)this.Jp(d[f],null,this.bf)}function k(a){this.type=a;this.k=[];this.ca=[];this.xa=!0}function q(a,b,d){this.sheet=a;this.parent=b;this.b=a.b;this.Ga=[];this.vf=[];this.Ep=this.sl=this.no=this.nk=this.group=this.Br=!1;this.yb=[];this.Tc=[];this.kd=[];this.Oh="";this.Nh=this.nk=this.group=!1;this.Kj=null;d[1]&&(this.Oh=d[1][1].toLowerCase(),
this.group=!0,this.nk=!!d[1][0],this.Kj=[],this.Nh=this.nk,this.b.Se.push(this),this.b.jk[this.Oh]=this);this.Dd=d[2];this.ja=d[4];this.group||(this.b.Wo[this.ja.toString()]=this);var f=d[5];a=0;for(b=f.length;a<b;a++){var e=new Vb(this,f[a]);e.index=a;this.yb.push(e);this.Ro(e.type)}f=d[6];a=0;for(b=f.length;a<b;a++)e=new Wb(this,f[a]),e.index=a,this.Tc.push(e);if(8===d.length)for(d=d[7],a=0,b=d.length;a<b;a++)this.sheet.Jp(d[a],this,this.kd);this.tk=!1;this.yb.length&&(this.tk=null==this.yb[0].type&&
this.yb[0].Db==Y.prototype.D.Do)}function b(a,b){var d,f,e;if(a&&(-1===b.indexOf(a)&&b.push(a),a.zc))for(d=0,f=a.xc.length;d<f;d++)e=a.xc[d],a!==e&&-1===b.indexOf(e)&&b.push(e)}function a(a,b){this.Ic=a;this.sheet=a.sheet;this.b=a.b;this.ba=[];this.Ya=[];this.L={};this.index=-1;this.ph=!1;this.Db=this.b.Pe(b[1]);this.trigger=0<b[3];this.mp=2===b[3];this.Xd=b[4];this.ok=b[5];this.Yv=b[6];this.ja=b[7];this.b.We[this.ja.toString()]=this;-1===b[0]?(this.type=null,this.jb=this.Sn,this.Bf=null,this.ud=
-1):(this.type=this.b.G[b[0]],this.jb=this.Yv?this.Iw:this.Rn,b[2]?(this.Bf=this.type.hk(b[2]),this.ud=this.type.xm(b[2])):(this.Bf=null,this.ud=-1),this.Ic.parent&&this.Ic.parent.jl());this.mp&&(this.jb=this.Jw);if(10===b.length){var d,f,e=b[9];d=0;for(f=e.length;d<f;d++){var g=new Xb(this,e[d]);this.ba.push(g)}this.Ya.length=e.length}}function f(a,b){this.Ic=a;this.sheet=a.sheet;this.b=a.b;this.ba=[];this.Ya=[];this.L={};this.index=-1;this.ph=!1;this.Db=this.b.Pe(b[1]);-1===b[0]?(this.type=null,
this.jb=this.Sn,this.Bf=null,this.ud=-1):(this.type=this.b.G[b[0]],this.jb=this.Rn,b[2]?(this.Bf=this.type.hk(b[2]),this.ud=this.type.xm(b[2])):(this.Bf=null,this.ud=-1));this.ja=b[3];this.b.Re[this.ja.toString()]=this;if(6===b.length){var d,f,e=b[5];d=0;for(f=e.length;d<f;d++){var g=new Xb(this,e[d]);this.ba.push(g)}this.Ya.length=e.length}}function p(){A++;E.length===A&&E.push(new Yb);return E[A]}function d(a,b){this.fd=a;this.Ic=a.Ic;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.Rd=null;this.He=
0;this.get=null;this.cp=0;this.qb=null;this.key=0;this.object=null;this.index=0;this.pj=this.rg=this.pj=this.rg=this.qp=this.Mf=this.qj=null;this.od=!1;var d,f,e;switch(b[0]){case 0:case 7:this.Rd=new Zb(this,b[1]);this.He=0;this.get=this.xv;break;case 1:this.Rd=new Zb(this,b[1]);this.He=0;this.get=this.yv;break;case 5:this.Rd=new Zb(this,b[1]);this.He=0;this.get=this.Cv;break;case 3:case 8:this.cp=b[1];this.get=this.vv;break;case 6:this.qb=this.b.hn[b[1]];this.get=this.Dv;break;case 9:this.key=b[1];
this.get=this.Bv;break;case 4:this.object=this.b.G[b[1]];this.get=this.Ev;this.Ic.Ro(this.object);this.fd instanceof Wb?this.Ic.jl():this.Ic.parent&&this.Ic.parent.jl();break;case 10:this.index=b[1];a.type.S?(this.get=this.zv,this.od=!0):this.get=this.Av;break;case 11:this.qj=b[1];this.Mf=null;this.get=this.wv;break;case 2:case 12:this.qp=b[1];this.get=this.uv;break;case 13:for(this.get=this.Fv,this.rg=[],this.pj=[],d=1,f=b.length;d<f;d++)e=new Xb(this.fd,b[d]),this.rg.push(e),this.pj.push(0)}}function e(a,
b,d){this.sheet=a;this.parent=b;this.b=a.b;this.Ga=[];this.name=d[1];this.Bl=d[2];this.mk=d[3];this.di=!!d[4];this.sk=!!d[5];this.ja=d[6];this.b.lh[this.ja.toString()]=this;this.data=this.mk;this.parent?(this.hg=this.di||this.sk?-1:this.b.Tw++,this.b.yt.push(this)):(this.hg=-1,this.b.Kl.push(this))}function v(a,b,d){this.sheet=a;this.parent=b;this.b=a.b;this.Ga=[];this.Qh=null;this.Nv=d[1];this.Ib=!0}function g(){this.Er=[];this.reset(null)}var I=[];m.prototype.toString=function(){return this.name};
m.prototype.Jp=function(a,b,d){switch(a[0]){case 0:a=new $b(this,b,a);if(a.Dd)for(d.push(a),d=0,b=a.yb.length;d<b;d++)a.yb[d].trigger&&this.Kp(a,d);else a.Wp()?this.Kp(a,0):d.push(a);break;case 1:a=new Rb(this,b,a);d.push(a);break;case 2:a=new ac(this,b,a),d.push(a)}};m.prototype.eb=function(){var a,b;a=0;for(b=this.bf.length;a<b;a++)this.bf[a].eb(a<b-1&&this.bf[a+1].tk)};m.prototype.to=function(){T(this.gm);T(this.Ml);this.Qo(this);T(this.Ml)};m.prototype.Qo=function(a){var b,d,f,e,g=a.gm,c=a.Ml,
k=this.Hp.nd();b=0;for(d=k.length;b<d;++b)f=k[b],e=f.Qh,!f.Ib||a===e||-1<c.indexOf(e)||(c.push(e),e.Qo(a),g.push(e))};m.prototype.jb=function(a){this.b.my||(this.Km=!0,a||(this.b.Um=!0));var b,d;b=0;for(d=this.bf.length;b<d;b++){var f=this.bf[b];f.jb();this.b.Yl(f.Ga);this.b.ff&&this.b.Hb()}a||(this.b.Um=!1)};m.prototype.Kp=function(a,b){a.Dd||this.b.ul.push(a);var d,f,e=a.yb[b],g;e.type?g=e.type.name:g="system";var c=(d=e.mp)?this.np:this.Nr;c[g]||(c[g]=[]);g=c[g];c=e.Db;if(d){if(e.ba.length&&(e=
e.ba[0],1===e.type&&2===e.Rd.type)){e=e.Rd.value.toLowerCase();d=0;for(f=g.length;d<f;d++)if(g[d].method==c){d=g[d].Fh;d[e]?d[e].push([a,b]):d[e]=[[a,b]];return}d={};d[e]=[[a,b]];g.push({method:c,Fh:d})}}else{d=0;for(f=g.length;d<f;d++)if(g[d].method==c){g[d].Fh.push([a,b]);return}Z&&c===Z.prototype.D.yg?g.unshift({method:c,Fh:[[a,b]]}):g.push({method:c,Fh:[[a,b]]})}};Hb=m;k.prototype.Jm=function(){return this.xa?this.type.k.length:this.k.length};k.prototype.lc=function(){return this.xa?this.type.k:
this.k};k.prototype.Si=function(a){a&&(a.b.Eb().jc.Dd?(this.xa&&(T(this.k),za(this.ca,a.type.k),this.xa=!1),a=this.ca.indexOf(a),-1!==a&&(this.k.push(this.ca[a]),this.ca.splice(a,1))):(this.xa=!1,T(this.k),this.k[0]=a))};pb=k;window._c2hh_="CDBC7FB1261439E62B470B5C6EFCF9F1C7C6C111";q.prototype.eb=function(a){var b,d=this.parent;if(this.group)for(this.sl=!0;d;){if(!d.group){this.sl=!1;break}d=d.parent}this.no=!this.Wp()&&(!this.parent||this.parent.group&&this.parent.sl);this.Ep=!!a;this.vf=this.Ga.slice(0);
for(d=this.parent;d;){a=0;for(b=d.Ga.length;a<b;a++)this.wt(d.Ga[a]);d=d.parent}this.Ga=n(this.Ga);this.vf=n(this.vf);a=0;for(b=this.yb.length;a<b;a++)this.yb[a].eb();a=0;for(b=this.Tc.length;a<b;a++)this.Tc[a].eb();a=0;for(b=this.kd.length;a<b;a++)this.kd[a].eb(a<b-1&&this.kd[a+1].tk)};q.prototype.mr=function(a){if(this.Nh!==!!a){this.Nh=!!a;var b;a=0;for(b=this.Kj.length;a<b;++a)this.Kj[a].Sr();0<b&&this.b.za.Lf&&this.b.za.Lf.to()}};q.prototype.Ro=function(a){b(a,this.Ga)};q.prototype.wt=function(a){b(a,
this.vf)};q.prototype.jl=function(){this.Br=!0;this.parent&&this.parent.jl()};q.prototype.Wp=function(){return this.yb.length?this.yb[0].trigger:!1};q.prototype.jb=function(){var a,b,d=!1,f=this.b,e=this.b.Eb();e.jc=this;var g=this.yb;this.tk||(e.km=!1);if(this.Dd){0===g.length&&(d=!0);e.xb=0;for(a=g.length;e.xb<a;e.xb++)b=g[e.xb],b.trigger||(b=b.jb())&&(d=!0);(e.dg=d)&&this.fl()}else{e.xb=0;for(a=g.length;e.xb<a;e.xb++)if(b=g[e.xb].jb(),!b){e.dg=!1;this.no&&f.ff&&f.Hb();return}e.dg=!0;this.fl()}this.mu(e)};
q.prototype.mu=function(a){a.dg&&this.Ep&&(a.km=!0);this.no&&this.b.ff&&this.b.Hb()};q.prototype.Gw=function(a){this.b.Eb().jc=this;this.yb[a].jb()&&(this.fl(),this.b.Eb().dg=!0)};q.prototype.fl=function(){var a=this.b.Eb(),b;a.hc=0;for(b=this.Tc.length;a.hc<b;a.hc++)if(this.Tc[a.hc].jb())return;this.hr()};q.prototype.Dw=function(){var a=this.b.Eb(),b;for(b=this.Tc.length;a.hc<b;a.hc++)if(this.Tc[a.hc].jb())return;this.hr()};q.prototype.hr=function(){if(this.kd.length){var a,b,d,f,e=this.kd.length-
1;this.b.al(this);if(this.Br)for(a=0,b=this.kd.length;a<b;a++)d=this.kd[a],(f=!this.sl||!this.group&&a<e)&&this.b.$k(d.Ga),d.jb(),f?this.b.mg(d.Ga):this.b.Yl(d.Ga);else for(a=0,b=this.kd.length;a<b;a++)this.kd[a].jb();this.b.Wk()}};q.prototype.Hw=function(){var a=this.b.Eb();a.jc=this;var b=!1,d;a.xb=0;for(d=this.yb.length;a.xb<d;a.xb++)if(this.yb[a.xb].jb())b=!0;else if(!this.Dd)return!1;return this.Dd?b:!0};q.prototype.Ew=function(){this.b.Nf++;var a=this.b.Eb().xb,b=this.b.al(this);if(!this.Dd)for(b.xb=
a+1,a=this.yb.length;b.xb<a;b.xb++)if(!this.yb[b.xb].jb()){this.b.Wk();return}this.fl();this.b.Wk()};q.prototype.Sv=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.yb[b].type===a.type)return!1;return!0};$b=q;a.prototype.eb=function(){var a,b,d;a=0;for(b=this.ba.length;a<b;a++)d=this.ba[a],d.eb(),d.od&&(this.ph=!0)};a.prototype.Jw=function(){return!0};a.prototype.Sn=function(){var a,b;a=0;for(b=this.ba.length;a<b;a++)this.Ya[a]=this.ba[a].get();return Wa(this.Db.apply(this.b.fe,
this.Ya),this.ok)};a.prototype.Iw=function(){var a,b;a=0;for(b=this.ba.length;a<b;a++)this.Ya[a]=this.ba[a].get();a=this.Db.apply(this.Bf?this.Bf:this.type,this.Ya);this.type.Pd();return a};a.prototype.Rn=function(){var a,b,d,f,e,g,c,k,l=this.type,m=l.ma(),n=this.Ic.Dd&&!this.trigger;b=0;var p=l.zc,q=l.S,v=l.ne,I=this.ud,E=-1<I,A=this.ph,D=this.ba,L=this.Ya,U=this.ok,J=this.Db,H;if(A)for(b=0,e=D.length;b<e;++b)g=D[b],g.od||(L[b]=g.get(0));else for(b=0,e=D.length;b<e;++b)L[b]=D[b].get(0);if(m.xa){T(m.k);
T(m.ca);H=l.k;a=0;for(f=H.length;a<f;++a){k=H[a];if(A)for(b=0,e=D.length;b<e;++b)g=D[b],g.od&&(L[b]=g.get(a));E?(b=0,q&&(b=k.type.Eg[v]),b=J.apply(k.O[I+b],L)):b=J.apply(k,L);(c=Wa(b,U))?m.k.push(k):n&&m.ca.push(k)}l.finish&&l.finish(!0);m.xa=!1;l.Pd();return m.Jm()}d=0;H=(c=n&&!this.Ic.Sv(this))?m.ca:m.k;var O=!1;a=0;for(f=H.length;a<f;++a){k=H[a];if(A)for(b=0,e=D.length;b<e;++b)g=D[b],g.od&&(L[b]=g.get(a));E?(b=0,q&&(b=k.type.Eg[v]),b=J.apply(k.O[I+b],L)):b=J.apply(k,L);if(Wa(b,U))if(O=!0,c){if(m.k.push(k),
p)for(b=0,e=k.siblings.length;b<e;b++)g=k.siblings[b],g.type.ma().k.push(g)}else{H[d]=k;if(p)for(b=0,e=k.siblings.length;b<e;b++)g=k.siblings[b],g.type.ma().k[d]=g;d++}else if(c){H[d]=k;if(p)for(b=0,e=k.siblings.length;b<e;b++)g=k.siblings[b],g.type.ma().ca[d]=g;d++}else if(n&&(m.ca.push(k),p))for(b=0,e=k.siblings.length;b<e;b++)g=k.siblings[b],g.type.ma().ca.push(g)}ya(H,d);if(p)for(q=l.xc,a=0,f=q.length;a<f;a++)k=q[a].ma(),c?ya(k.ca,d):ya(k.k,d);d=O;if(c&&!O)for(a=0,f=m.k.length;a<f;a++){k=m.k[a];
if(A)for(b=0,e=D.length;b<e;b++)g=D[b],g.od&&(L[b]=g.get(a));b=E?J.apply(k.O[I],L):J.apply(k,L);if(Wa(b,U)){O=!0;break}}l.finish&&l.finish(d||n);return n?O:m.Jm()};Vb=a;f.prototype.eb=function(){var a,b,d;a=0;for(b=this.ba.length;a<b;a++)d=this.ba[a],d.eb(),d.od&&(this.ph=!0)};f.prototype.Sn=function(){var a=this.b,b,d,f=this.ba,e=this.Ya;b=0;for(d=f.length;b<d;++b)e[b]=f[b].get();return this.Db.apply(a.fe,e)};f.prototype.Rn=function(){var a=this.type,b=this.ud,d=a.ne,f=this.ph,e=this.ba,g=this.Ya,
c=this.Db,k=a.ma().lc(),a=a.S,l=-1<b,m,n,p,q,v,I;if(f)for(n=0,q=e.length;n<q;++n)v=e[n],v.od||(g[n]=v.get(0));else for(n=0,q=e.length;n<q;++n)g[n]=e[n].get(0);m=0;for(p=k.length;m<p;++m){I=k[m];if(f)for(n=0,q=e.length;n<q;++n)v=e[n],v.od&&(g[n]=v.get(m));l?(n=0,a&&(n=I.type.Eg[d]),c.apply(I.O[b+n],g)):c.apply(I,g)}return!1};Wb=f;var E=[],A=-1;d.prototype.eb=function(){var a,b;if(11===this.type)this.Mf=this.b.yp(this.qj,this.Ic.parent);else if(13===this.type)for(a=0,b=this.rg.length;a<b;a++)this.rg[a].eb();
this.Rd&&this.Rd.eb()};d.prototype.cw=function(a){this.od||!a||a.Ja.nl||(this.od=!0)};d.prototype.pr=function(){this.od=!0};d.prototype.xv=function(a){this.He=a||0;a=p();this.Rd.get(a);A--;return a.data};d.prototype.yv=function(a){this.He=a||0;a=p();this.Rd.get(a);A--;return Q(a.data)?a.data:""};d.prototype.Ev=function(){return this.object};d.prototype.vv=function(){return this.cp};d.prototype.Cv=function(a){this.He=a||0;a=p();this.Rd.get(a);A--;return a.zb()?this.b.nv(a.data):this.b.lv(a.data)};
d.prototype.Dv=function(){return this.qb};d.prototype.Bv=function(){return this.key};d.prototype.Av=function(){return this.index};d.prototype.zv=function(a){a=a||0;var b=this.fd.type,d=null,d=b.ma(),f=d.lc();if(f.length)d=f[a%f.length].type;else if(d.ca.length)d=d.ca[a%d.ca.length].type;else if(b.k.length)d=b.k[a%b.k.length].type;else return 0;return this.index+d.Xj[b.ne]};d.prototype.wv=function(){return this.Mf};d.prototype.uv=function(){return this.qp};d.prototype.Fv=function(){var a,b;a=0;for(b=
this.rg.length;a<b;a++)this.pj[a]=this.rg[a].get();return this.pj};Xb=d;e.prototype.eb=function(){this.Ga=n(this.Ga)};e.prototype.qg=function(a){var b=this.b.xp();this.parent&&!this.di&&b?(this.hg>=b.length&&(b.length=this.hg+1),b[this.hg]=a):this.data=a};e.prototype.Lh=function(){var a=this.b.xp();return!this.parent||this.di||!a||this.sk?this.data:this.hg>=a.length||"undefined"===typeof a[this.hg]?this.mk:a[this.hg]};e.prototype.jb=function(){!this.parent||this.di||this.sk||this.qg(this.mk)};Rb=
e;v.prototype.toString=function(){return"include:"+this.Qh.toString()};v.prototype.eb=function(){this.Qh=this.b.nm[this.Nv];this.sheet.Hp.add(this);this.Ga=n(this.Ga);for(var a=this.parent;a;)a.group&&a.Kj.push(this),a=a.parent;this.Sr()};v.prototype.jb=function(){this.parent&&this.b.Wi(this.b.G);this.Qh.Km||this.Qh.jb(!0);this.parent&&this.b.mg(this.b.G)};v.prototype.Sr=function(){for(var a=this.parent;a;){if(a.group&&!a.Nh){this.Ib=!1;return}a=a.parent}this.Ib=!0};ac=v;g.prototype.reset=function(a){this.jc=
a;this.hc=this.xb=0;T(this.Er);this.km=this.dg=!1};Qb=g})();
(function(){function c(b,a){this.fd=b;this.b=b.b;this.type=a[0];this.get=[this.Du,this.zu,this.Mu,this.Pu,this.ou,this.Nu,this.Hu,this.wu,this.Gu,this.Lu,this.pu,this.Ku,this.xu,this.Iu,this.Eu,this.Fu,this.Au,this.Bu,this.vu,this.Ou,this.Ju,this.Cu,this.uu,this.yu][this.type];var f=null;this.we=this.ba=this.Ya=this.Db=this.rl=this.second=this.first=this.value=null;this.ud=-1;this.wd=null;this.Yr=-1;this.Mf=this.qj=null;this.$g=!1;switch(this.type){case 0:case 1:case 2:this.value=a[1];break;case 3:this.first=
new Zb(b,a[1]);break;case 18:this.first=new Zb(b,a[1]);this.second=new Zb(b,a[2]);this.rl=new Zb(b,a[3]);break;case 19:this.Db=this.b.Pe(a[1]);this.Db!==Y.prototype.Qa.random&&this.Db!==Y.prototype.Qa.Jt||this.fd.pr();this.Ya=[];this.ba=[];3===a.length?(f=a[2],this.Ya.length=f.length+1):this.Ya.length=1;break;case 20:this.we=this.b.G[a[1]];this.ud=-1;this.Db=this.b.Pe(a[2]);this.$g=a[3];dc.Function&&this.Db===dc.Function.prototype.Qa.qx&&this.fd.pr();a[4]?this.wd=new Zb(b,a[4]):this.wd=null;this.Ya=
[];this.ba=[];6===a.length?(f=a[5],this.Ya.length=f.length+1):this.Ya.length=1;break;case 21:this.we=this.b.G[a[1]];this.$g=a[2];a[3]?this.wd=new Zb(b,a[3]):this.wd=null;this.Yr=a[4];break;case 22:this.we=this.b.G[a[1]];this.we.hk(a[2]);this.ud=this.we.xm(a[2]);this.Db=this.b.Pe(a[3]);this.$g=a[4];a[5]?this.wd=new Zb(b,a[5]):this.wd=null;this.Ya=[];this.ba=[];7===a.length?(f=a[6],this.Ya.length=f.length+1):this.Ya.length=1;break;case 23:this.qj=a[1],this.Mf=null}this.fd.cw(this.we);4<=this.type&&
17>=this.type&&(this.first=new Zb(b,a[1]),this.second=new Zb(b,a[2]));if(f){var c,d;c=0;for(d=f.length;c<d;c++)this.ba.push(new Zb(b,f[c]))}}function l(){++q;k.length===q&&k.push(new Yb);return k[q]}function n(b,a,f){var c,d;c=0;for(d=b.length;c<d;++c)b[c].get(f),a[c+1]=f.data}function m(b,a){this.type=b||bc.xg;this.data=a||0;this.lg=null;this.type==bc.xg&&(this.data=Math.floor(this.data))}c.prototype.eb=function(){23===this.type&&(this.Mf=this.fd.b.yp(this.qj,this.fd.Ic.parent));this.first&&this.first.eb();
this.second&&this.second.eb();this.rl&&this.rl.eb();this.wd&&this.wd.eb();if(this.ba){var b,a;b=0;for(a=this.ba.length;b<a;b++)this.ba[b].eb()}};var k=[],q=-1;c.prototype.Ou=function(b){var a=this.ba,f=this.Ya;f[0]=b;b=l();n(a,f,b);--q;this.Db.apply(this.b.fe,f)};c.prototype.Ju=function(b){var a=this.we,f=this.Ya,c=this.ba,d=this.wd,e=this.Db,k=this.fd.He,g=a.ma(),m=g.lc();if(!m.length)if(g.ca.length)m=g.ca;else{this.$g?b.Hc(""):b.Fa(0);return}f[0]=b;b.lg=a;b=l();n(c,f,b);d&&(d.get(b),b.zb()&&(k=
b.data,m=a.k));--q;a=m.length;if(k>=a||k<=-a)k%=a;0>k&&(k+=a);e.apply(m[k],f)};c.prototype.uu=function(b){var a=this.we,f=this.Ya,c=this.ba,d=this.wd,e=this.ud,k=this.Db,g=this.fd.He,m=a.ma(),E=m.lc();if(!E.length)if(m.ca.length)E=m.ca;else{this.$g?b.Hc(""):b.Fa(0);return}f[0]=b;b.lg=a;b=l();n(c,f,b);d&&(d.get(b),b.zb()&&(g=b.data,E=a.k));--q;c=E.length;if(g>=c||g<=-c)g%=c;0>g&&(g+=c);g=E[g];E=0;a.S&&(E=g.type.Eg[a.ne]);k.apply(g.O[e+E],f)};c.prototype.Cu=function(b){var a=this.wd,f=this.we,c=this.Yr,
d=this.fd.He,e=f.ma(),k=e.lc();if(!k.length)if(e.ca.length)k=e.ca;else{this.$g?b.Hc(""):b.Fa(0);return}if(a){e=l();a.get(e);if(e.zb()){d=e.data;k=f.k;0!==k.length&&(d%=k.length,0>d&&(d+=k.length));d=f.Am(d);f=d.nb[c];Q(f)?b.Hc(f):b.fa(f);--q;return}--q}a=k.length;if(d>=a||d<=-a)d%=a;0>d&&(d+=a);d=k[d];k=0;f.S&&(k=d.type.Xj[f.ne]);f=d.nb[c+k];Q(f)?b.Hc(f):b.fa(f)};c.prototype.Du=function(b){b.type=bc.xg;b.data=this.value};c.prototype.zu=function(b){b.type=bc.wg;b.data=this.value};c.prototype.Mu=function(b){b.type=
bc.String;b.data=this.value};c.prototype.Pu=function(b){this.first.get(b);b.zb()&&(b.data=-b.data)};c.prototype.ou=function(b){this.first.get(b);var a=l();this.second.get(a);b.zb()&&a.zb()&&(b.data+=a.data,a.Kg()&&b.Ug());--q};c.prototype.Nu=function(b){this.first.get(b);var a=l();this.second.get(a);b.zb()&&a.zb()&&(b.data-=a.data,a.Kg()&&b.Ug());--q};c.prototype.Hu=function(b){this.first.get(b);var a=l();this.second.get(a);b.zb()&&a.zb()&&(b.data*=a.data,a.Kg()&&b.Ug());--q};c.prototype.wu=function(b){this.first.get(b);
var a=l();this.second.get(a);b.zb()&&a.zb()&&(b.data/=a.data,b.Ug());--q};c.prototype.Gu=function(b){this.first.get(b);var a=l();this.second.get(a);b.zb()&&a.zb()&&(b.data%=a.data,a.Kg()&&b.Ug());--q};c.prototype.Lu=function(b){this.first.get(b);var a=l();this.second.get(a);b.zb()&&a.zb()&&(b.data=Math.pow(b.data,a.data),a.Kg()&&b.Ug());--q};c.prototype.pu=function(b){this.first.get(b);var a=l();this.second.get(a);a.Ng()||b.Ng()?this.ru(b,a):this.qu(b,a);--q};c.prototype.ru=function(b,a){b.Ng()&&
a.Ng()?this.tu(b,a):this.su(b,a)};c.prototype.tu=function(b,a){b.data+=a.data};c.prototype.su=function(b,a){b.Ng()?b.data+=(Math.round(1E10*a.data)/1E10).toString():b.Hc(b.data.toString()+a.data)};c.prototype.qu=function(b,a){b.Fa(b.data&&a.data?1:0)};c.prototype.Ku=function(b){this.first.get(b);var a=l();this.second.get(a);b.zb()&&a.zb()&&(b.data||a.data?b.Fa(1):b.Fa(0));--q};c.prototype.vu=function(b){this.first.get(b);b.data?this.second.get(b):this.rl.get(b)};c.prototype.xu=function(b){this.first.get(b);
var a=l();this.second.get(a);b.Fa(b.data===a.data?1:0);--q};c.prototype.Iu=function(b){this.first.get(b);var a=l();this.second.get(a);b.Fa(b.data!==a.data?1:0);--q};c.prototype.Eu=function(b){this.first.get(b);var a=l();this.second.get(a);b.Fa(b.data<a.data?1:0);--q};c.prototype.Fu=function(b){this.first.get(b);var a=l();this.second.get(a);b.Fa(b.data<=a.data?1:0);--q};c.prototype.Au=function(b){this.first.get(b);var a=l();this.second.get(a);b.Fa(b.data>a.data?1:0);--q};c.prototype.Bu=function(b){this.first.get(b);
var a=l();this.second.get(a);b.Fa(b.data>=a.data?1:0);--q};c.prototype.yu=function(b){var a=this.Mf.Lh();fa(a)?b.fa(a):b.Hc(a)};Zb=c;m.prototype.Kg=function(){return this.type===bc.wg};m.prototype.zb=function(){return this.type===bc.xg||this.type===bc.wg};m.prototype.Ng=function(){return this.type===bc.String};m.prototype.Ug=function(){this.Kg()||(this.Ng()&&(this.data=parseFloat(this.data)),this.type=bc.wg)};m.prototype.Fa=function(b){this.type=bc.xg;this.data=Math.floor(b)};m.prototype.fa=function(b){this.type=
bc.wg;this.data=b};m.prototype.Hc=function(b){this.type=bc.String;this.data=b};m.prototype.Rw=function(b){fa(b)?(this.type=bc.wg,this.data=b):Q(b)?(this.type=bc.String,this.data=b.toString()):(this.type=bc.xg,this.data=0)};Yb=m;bc={xg:0,wg:1,String:2}})();function Y(c){this.b=c;this.wc=[]}
Y.prototype.Za=function(){var c={},l,n,m,k,q,b,a,f;c.waits=[];var p=c.waits,d;l=0;for(n=this.wc.length;l<n;l++){b=this.wc[l];d={t:b.time,st:b.yr,s:b.co,ev:b.Cg.ja,sm:[],sols:{}};b.Cg.Tc[b.hc]&&(d.act=b.Cg.Tc[b.hc].ja);m=0;for(k=b.Ga.length;m<k;m++)d.sm.push(b.Ga[m].ja);for(q in b.ac)if(b.ac.hasOwnProperty(q)){a=this.b.G[parseInt(q,10)];f={sa:b.ac[q].gl,insts:[]};m=0;for(k=b.ac[q].qe.length;m<k;m++)f.insts.push(b.ac[q].qe[m].uid);d.sols[a.ja.toString()]=f}p.push(d)}return c};
Y.prototype.hb=function(c){c=c.waits;var l,n,m,k,q,b,a,f,p,d,e;T(this.wc);l=0;for(n=c.length;l<n;l++)if(b=c[l],f=this.b.Wo[b.ev.toString()]){p=-1;m=0;for(k=f.Tc.length;m<k;m++)if(f.Tc[m].ja===b.act){p=m;break}if(-1!==p){a={ac:{},Ga:[],im:!1};a.time=b.t;a.yr=b.st||"";a.co=!!b.s;a.Cg=f;a.hc=p;m=0;for(k=b.sm.length;m<k;m++)(f=this.b.Jh(b.sm[m]))&&a.Ga.push(f);for(q in b.sols)if(b.sols.hasOwnProperty(q)&&(f=this.b.Jh(parseInt(q,10)))){p=b.sols[q];d={gl:p.sa,qe:[]};m=0;for(k=p.insts.length;m<k;m++)(e=
this.b.Rf(p.insts[m]))&&d.qe.push(e);a.ac[f.index.toString()]=d}this.wc.push(a)}}};
(function(){function c(){}function l(){}function n(){}var m=Y.prototype;c.prototype.os=function(){return!0};c.prototype.Jo=function(){return!0};c.prototype.Ns=function(){return!0};c.prototype.ns=function(b){var a=this.b.Hh(),f=a.L.Every_lastTime||0,c=this.b.ob.T;"undefined"===typeof a.L.Every_seconds&&(a.L.Every_seconds=b);var d=a.L.Every_seconds;if(c>=f+d)return a.L.Every_lastTime=f+d,c>=a.L.Every_lastTime+.04&&(a.L.Every_lastTime=c),a.L.Every_seconds=b,!0;c<f-.1&&(a.L.Every_lastTime=c);return!1};
c.prototype.ks=function(b,a,f){return cc(b.Lh(),a,f)};c.prototype.Do=function(){var b=this.b.Eb();return b.km?!1:!b.dg};c.prototype.Ko=function(){return!0};c.prototype.Hs=function(){return!0};c.prototype.Gl=function(){return!0};c.prototype.Os=function(){return!0};c.prototype.Fl=function(){return!0};c.prototype.Co=function(b,a,f){return Ma(X(b),X(f))<=X(a)};c.prototype.ys=function(b,a){return Pa(X(b),X(a))};c.prototype.vs=function(b,a,f){b=Ka(b);a=Ka(a);f=Ka(f);return Pa(f,a)?Pa(b,a)&&!Pa(b,f):!(!Pa(b,
a)&&Pa(b,f))};m.D=new c;l.prototype.rs=function(b){this.b.Og||this.b.Ff||(this.b.Ff=b)};l.prototype.gt=function(b,a){0===b.Bl?fa(a)?b.qg(a):b.qg(parseFloat(a)):1===b.Bl&&b.qg(a.toString())};l.prototype.cs=function(b,a){0===b.Bl?fa(a)?b.qg(b.Lh()+a):b.qg(b.Lh()+parseFloat(a)):1===b.Bl&&b.qg(b.Lh()+a.toString())};var k=[],q=[];l.prototype.mt=function(b){if(!(0>b)){var a,f,c,d=this.b.Eb(),e;k.length?e=k.pop():e={ac:{},Ga:[]};e.im=!1;e.time=this.b.ob.T+b;e.yr="";e.co=!1;e.Cg=d.jc;e.hc=d.hc+1;b=0;for(a=
this.b.G.length;b<a;b++)c=this.b.G[b],f=c.ma(),f.xa&&-1===d.jc.Ga.indexOf(c)||(e.Ga.push(c),c=void 0,q.length?c=q.pop():c={qe:[]},c.gl=!1,c.gl=f.xa,za(c.qe,f.k),e.ac[b.toString()]=c);this.wc.push(e);return!0}};l.prototype.Rs=function(){var b,a,f;b=0;for(a=this.b.Kl.length;b<a;b++)f=this.b.Kl[b],f.data=f.mk};l.prototype.Ss=function(){if(!this.b.Og&&!this.b.Ff&&this.b.za){this.b.Ff=this.b.za;var b,a,f;b=0;for(a=this.b.Se.length;b<a;b++)f=this.b.Se[b],f.mr(f.nk)}};m.J=new l;n.prototype["int"]=function(b,
a){Q(a)?(b.Fa(parseInt(a,10)),isNaN(b.data)&&(b.data=0)):b.Fa(a)};n.prototype["float"]=function(b,a){Q(a)?(b.fa(parseFloat(a)),isNaN(b.data)&&(b.data=0)):b.fa(a)};n.prototype.random=function(b,a,f){void 0===f?b.fa(Math.random()*a):b.fa(Math.random()*(f-a)+a)};n.prototype.sqrt=function(b,a){b.fa(Math.sqrt(a))};n.prototype.abs=function(b,a){b.fa(Math.abs(a))};n.prototype.round=function(b,a){b.Fa(Math.round(a))};n.prototype.floor=function(b,a){b.Fa(Math.floor(a))};n.prototype.ceil=function(b,a){b.Fa(Math.ceil(a))};
n.prototype.sin=function(b,a){b.fa(Math.sin(X(a)))};n.prototype.cos=function(b,a){b.fa(Math.cos(X(a)))};n.prototype.tan=function(b,a){b.fa(Math.tan(X(a)))};n.prototype.asin=function(b,a){b.fa(Ea(Math.asin(a)))};n.prototype.acos=function(b,a){b.fa(Ea(Math.acos(a)))};n.prototype.atan=function(b,a){b.fa(Ea(Math.atan(a)))};n.prototype.exp=function(b,a){b.fa(Math.exp(a))};n.prototype.log10=function(b,a){b.fa(Math.log(a)/Math.LN10)};n.prototype.max=function(b){var a=arguments[1];"number"!==typeof a&&(a=
0);var f,c,d;f=2;for(c=arguments.length;f<c;f++)d=arguments[f],"number"===typeof d&&a<d&&(a=d);b.fa(a)};n.prototype.min=function(b){var a=arguments[1];"number"!==typeof a&&(a=0);var f,c,d;f=2;for(c=arguments.length;f<c;f++)d=arguments[f],"number"===typeof d&&a>d&&(a=d);b.fa(a)};n.prototype.Jf=function(b){b.fa(this.b.Jf)};n.prototype.ug=function(b){b.fa(this.b.ug)};n.prototype.time=function(b){b.fa(this.b.ob.T)};n.prototype.md=function(b){b.Fa(this.b.md)};n.prototype.Pk=function(b){b.Fa(this.b.Pk)};
n.prototype.um=function(b){b.Fa(this.b.um)};n.prototype.q=function(b,a,f,c,d){b.fa(Ea(La(a,f,c,d)))};n.prototype.Zv=function(b){b.Fa(this.b.za.height)};n.prototype.left=function(b,a,f){b.Hc(Q(a)?a.substr(0,f):"")};n.prototype.right=function(b,a,f){b.Hc(Q(a)?a.substr(a.length-f):"")};n.prototype.replace=function(b,a,f,c){Q(a)&&Q(f)&&Q(c)?b.Hc(a.replace(new RegExp(db(f),"gi"),c)):b.Hc(Q(a)?a:"")};n.prototype.trim=function(b,a){b.Hc(Q(a)?a.trim():"")};n.prototype.Jt=function(b){var a=R(Math.random()*
(arguments.length-1));b.Rw(arguments[a+1])};n.prototype.cm=function(b){b.fa(this.b.cm/1E3)};n.prototype.Hk=function(b){b.fa(this.b.Hk)};m.Qa=new n;m.Fw=function(){var b,a,f,c,d,e,l=this.b.Eb();b=0;for(f=this.wc.length;b<f;b++){c=this.wc[b];if(-1===c.time){if(!c.co)continue}else if(c.time>this.b.ob.T)continue;l.jc=c.Cg;l.hc=c.hc;l.xb=0;for(a in c.ac)c.ac.hasOwnProperty(a)&&(d=this.b.G[parseInt(a,10)].ma(),e=c.ac[a],d.xa=e.gl,za(d.k,e.qe),d=e,T(d.qe),q.push(d));c.Cg.Dw();this.b.Yl(c.Ga);c.im=!0}a=b=
0;for(f=this.wc.length;b<f;b++)c=this.wc[b],this.wc[a]=c,c.im?(Ya(c.ac),T(c.Ga),k.push(c)):a++;ya(this.wc,a)}})();
(function(){ob=function(c,n){var m=c[1],k=c[3],q=c[4],b=c[5],a=c[6],f=c[7],p=c[8];n.D||(n.D={});n.J||(n.J={});n.Qa||(n.Qa={});var d=n.D,e=n.J,v=n.Qa;k&&(d.vx=function(a,b){return cc(this.x,a,b)},d.ls=function(a,b){return cc(this.y,a,b)},d.Ax=function(){var a=this.n;this.Ha();var b=this.Oa;return!(b.right<a.La||b.bottom<a.Ma||b.left>a.Va||b.top>a.Ua)},d.Bx=function(){this.Ha();var a=this.Oa,b=this.b.za;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},d.Mx=function(a,b,d){var f=this.ma(),
e=f.lc();if(!e.length)return!1;var c=e[0],k=c,l=Ra(c.x,c.y,b,d),m,n,p;m=1;for(n=e.length;m<n;m++)if(c=e[m],p=Ra(c.x,c.y,b,d),0===a&&p<l||1===a&&p>l)l=p,k=c;f.Si(k);return!0},e.Zx=function(a){this.x!==a&&(this.x=a,this.F())},e.$x=function(a){this.y!==a&&(this.y=a,this.F())},e.bt=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.F()},e.ct=function(a,b){var d=a.pv(this);if(d){var f;d.Ih?(f=d.Ih(b,!0),d=d.Ih(b,!1)):(f=d.x,d=d.y);if(this.x!==f||this.y!==d)this.x=f,this.y=d,this.F()}},e.Gx=
function(a){0!==a&&(this.x+=Math.cos(this.q)*a,this.y+=Math.sin(this.q)*a,this.F())},e.Fx=function(a,b){0!==b&&(this.x+=Math.cos(X(a))*b,this.y+=Math.sin(X(a))*b,this.F())},v.qt=function(a){a.fa(this.x)},v.tt=function(a){a.fa(this.y)},v.Jf=function(a){a.fa(this.b.Pf(this))});q&&(d.ux=function(a,b){return cc(this.width,a,b)},d.rx=function(a,b){return cc(this.height,a,b)},e.Po=function(a){this.width!==a&&(this.width=a,this.F())},e.Xs=function(a){this.height!==a&&(this.height=a,this.F())},e.Yx=function(a,
b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.F()},v.nt=function(a){a.fa(this.width)},v.us=function(a){a.fa(this.height)},v.mx=function(a){this.Ha();a.fa(this.Oa.left)},v.ox=function(a){this.Ha();a.fa(this.Oa.top)},v.nx=function(a){this.Ha();a.fa(this.Oa.right)},v.kx=function(a){this.Ha();a.fa(this.Oa.bottom)});b&&(d.Co=function(a,b){return Ma(this.q,X(b))<=X(a)},d.ys=function(a){return Pa(this.q,X(a))},d.vs=function(a,b){var d=Ka(a),f=Ka(b),e=Ga(this.q);return Pa(f,d)?Pa(e,
d)&&!Pa(e,f):!(!Pa(e,d)&&Pa(e,f))},e.Ux=function(a){a=X(Fa(a));isNaN(a)||this.q===a||(this.q=a,this.F())},e.Qx=function(a){0===a||isNaN(a)||(this.q+=X(a),this.q=Ga(this.q),this.F())},e.Rx=function(a){0===a||isNaN(a)||(this.q-=X(a),this.q=Ga(this.q),this.F())},e.Sx=function(a,b){var d=Na(this.q,X(b),X(a));isNaN(d)||this.q===d||(this.q=d,this.F())},e.Tx=function(a,b,d){a=Na(this.q,Math.atan2(d-this.y,b-this.x),X(a));isNaN(a)||this.q===a||(this.q=a,this.F())},e.et=function(a,b){var d=Math.atan2(b-this.y,
a-this.x);isNaN(d)||this.q===d||(this.q=d,this.F())},v.jx=function(a){a.fa(Ha(this.q))});m||(d.hs=function(a,b,d){return cc(this.nb[a],b,d)},d.ws=function(a){return this.nb[a]},d.Nx=function(a,b){var d=this.ma(),f=d.lc();if(!f.length)return!1;var e=f[0],c=e,k=e.nb[b],l,m,n;l=1;for(m=f.length;l<m;l++)if(e=f[l],n=e.nb[b],0===a&&n<k||1===a&&n>k)k=n,c=e;d.Si(c);return!0},d.Lx=function(a){var b,d,f,e,c;if(this.b.Hh().ok){c=this.ma();if(c.xa)for(c.xa=!1,T(c.k),T(c.ca),f=this.k,b=0,d=f.length;b<d;b++)e=
f[b],e.uid===a?c.ca.push(e):c.k.push(e);else{f=b=0;for(d=c.k.length;b<d;b++)e=c.k[b],c.k[f]=e,e.uid===a?c.ca.push(e):f++;ya(c.k,f)}this.Pd();return!!c.k.length}e=this.b.Rf(a);if(!e)return!1;c=this.ma();if(!c.xa&&-1===c.k.indexOf(e))return!1;if(this.S)for(a=e.type.Ta,b=0,d=a.length;b<d;b++){if(a[b]===this)return c.Si(e),this.Pd(),!0}else if(e.type===this)return c.Si(e),this.Pd(),!0;return!1},d.vj=function(){return!0},d.Js=function(){return!0},e.Ys=function(a,b){var d=this.nb;fa(d[a])?d[a]=fa(b)?b:
parseFloat(b):Q(d[a])&&(d[a]=Q(b)?b:b.toString())},e.as=function(a,b){var d=this.nb;fa(d[a])?d[a]=fa(b)?d[a]+b:d[a]+parseFloat(b):Q(d[a])&&(d[a]=Q(b)?d[a]+b:d[a]+b.toString())},e.jt=function(a,b){var d=this.nb;fa(d[a])&&(d[a]=fa(b)?d[a]-b:d[a]-parseFloat(b))},e.Us=function(a,b){this.nb[a]=b?1:0},e.ay=function(a){this.nb[a]=1-this.nb[a]},e.xx=function(){this.b.yf(this)},e.Cs||(e.Cs=function(a){var b,d;try{b=JSON.parse(a)}catch(f){return}this.b.Ek(this,b,!0);this.qd&&this.qd();if(this.O)for(a=0,b=this.O.length;a<
b;++a)d=this.O[a],d.qd&&d.qd()}),v.wx=function(a){var b=a.lg.k.length,d,f,e;d=0;for(f=this.b.vd.length;d<f;d++)e=this.b.vd[d],a.lg.S?0<=e.type.Ta.indexOf(a.lg)&&b++:e.type===a.lg&&b++;a.Fa(b)},v.Px=function(a){a.Fa(a.lg.ma().lc().length)},v.by=function(a){a.Fa(this.uid)},v.yx=function(a){a.Fa(this.Mh())},v.ds||(v.ds=function(a){a.Hc(JSON.stringify(this.b.Tn(this,!0)))}));a&&(d.Cx=function(){return this.visible},e.Il=function(a){!a!==!this.visible&&(this.visible=!!a,this.b.Ca=!0)},d.tx=function(a,
b){return cc(jb(100*this.opacity),a,b)},e.Xx=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.Ca=!0)},v.Opacity=function(a){a.fa(jb(100*this.opacity))});f&&(d.zx=function(a){return a?this.n===a:!1},d.Ox=function(a){var b=this.ma(),d=b.lc();if(!d.length)return!1;var f=d[0],e=f,c,k;c=1;for(k=d.length;c<k;c++)if(f=d[c],0===a){if(f.n.index>e.n.index||f.n.index===e.n.index&&f.Td()>e.Td())e=f}else if(f.n.index<e.n.index||f.n.index===e.n.index&&f.Td()<e.Td())e=f;b.Si(e);return!0},
e.Ix=function(){var a=this.n,b=a.k;b.length&&b[b.length-1]===this||(a.Zg(this,!1),a.rh(this,!1),this.b.Ca=!0)},e.Ds=function(){var a=this.n,b=a.k;b.length&&b[0]===this||(a.Zg(this,!1),a.rw(this),this.b.Ca=!0)},e.Hx=function(a){a&&a!=this.n&&(this.n.Zg(this,!0),this.n=a,a.rh(this,!0),this.b.Ca=!0)},e.ey=function(a,b){var d=0===a;if(b){var f=b.dv(this);f&&f.uid!==this.uid&&(this.n.index!==f.n.index&&(this.n.Zg(this,!0),this.n=f.n,f.n.rh(this,!0)),this.n.dw(this,f,d),this.b.Ca=!0)}},v.Ex=function(a){a.Fa(this.n.Fq)},
v.Dx=function(a){a.Hc(this.n.name)},v.cy=function(a){a.Fa(this.Td())});p&&(e.Vx=function(a,b){if(this.b.H){var d=this.type.zm(b);if(!(0>d)){var f=1===a;this.Qe[d]!==f&&(this.Qe[d]=f,this.Md(),this.b.Ca=!0)}}},e.Wx=function(a,b,d){if(this.b.H){var f=this.type.zm(a);0>f||(a=this.type.X[f],f=this.Xa[f],b=Math.floor(b),0>b||b>=f.length||(1===this.b.H.tv(a.kb,b)&&(d/=100),f[b]!==d&&(f[b]=d,a.Ib&&(this.b.Ca=!0))))}})};Ib=function(){this.Ul=this.Ql=!0;this.type.Aj=!0;this.b.Ca=!0;var c,n,m=this.Rl;c=0;for(n=
m.length;c<n;++c)m[c](this);this.n.Sc&&this.Ha()};Jb=function(c){c&&this.Rl.push(c)};Lb=function(){if(this.Ql){var c=this.Oa,n=this.Mb;c.set(this.x,this.y,this.x+this.width,this.y+this.height);c.offset(-this.nc*this.width,-this.oc*this.height);this.q?(c.offset(-this.x,-this.y),n.rr(c,this.q),n.offset(this.x,this.y),n.Xo(c)):n.dh(c);c.normalize();this.Ql=!1;this.ax()}};var c=new ta(0,0,0,0);Mb=function(){if(this.n.Sc){var l=this.n.Gb,n=this.Oa;c.set(l.fc(n.left),l.gc(n.top),l.fc(n.right),l.gc(n.bottom));
this.rc.Eh(c)||(this.rc.right<this.rc.left?l.update(this,null,c):l.update(this,this.rc,c),this.rc.xh(c),this.n.Id=!0)}};Nb=function(){if(this.Ul&&this.Jc){this.Ha();var l=this.type.vh,n=this.Oa;c.set(l.fc(n.left),l.gc(n.top),l.fc(n.right),l.gc(n.bottom));this.Vc.Eh(c)||(this.Vc.right<this.Vc.left?l.update(this,null,c):l.update(this,this.Vc,c),this.Vc.xh(c),this.Ul=!1)}};Kb=function(c,n){return this.Oa.Pb(c,n)&&this.Mb.Pb(c,n)?this.la&&!this.la.Zf()?(this.la.Ef(this.width,this.height,this.q),this.la.Pb(c-
this.x,n-this.y)):!0:!1};Eb=function(){this.type.xl();return this.Uf};Ob=function(){this.n.vo();return this.Nd};Pb=function(){T(this.ta);var c,n,m,k=!0;c=0;for(n=this.Qe.length;c<n;c++)this.Qe[c]&&(m=this.type.X[c],this.ta.push(m),m.Gd||(k=!1));this.Xr=!!this.ta.length;this.Ee=k};Fb=function(){return"Inst"+this.cr};rb=function(c){if(c&&c.zc&&c.type!=this){var n,m,k;n=0;for(m=c.siblings.length;n<m;n++)if(k=c.siblings[n],k.type==this)return k}c=this.ma().lc();return c.length?c[0]:null};sb=function(c){var n=
this.ma().lc();return n.length?n[c.Mh()%n.length]:null};qb=function(){if(this.fh&&!this.S){var c,n;c=0;for(n=this.k.length;c<n;c++)this.k[c].Uf=c;var m=c,k=this.b.vd;c=0;for(n=k.length;c<n;++c)k[c].type===this&&(k[c].Uf=m++);this.fh=!1}};Cb=function(c){if(c<this.k.length)return this.k[c];c-=this.k.length;var n=this.b.vd,m,k;m=0;for(k=n.length;m<k;++m)if(n[m].type===this){if(0===c)return n[m];--c}return null};tb=function(){return this.Ie[this.Qd]};ub=function(){this.Qd++;this.Qd===this.Ie.length?this.Ie.push(new pb(this)):
(this.Ie[this.Qd].xa=!0,T(this.Ie[this.Qd].ca))};vb=function(){this.Qd++;this.Qd===this.Ie.length&&this.Ie.push(new pb(this));var c=this.Ie[this.Qd],n=this.Ie[this.Qd-1];n.xa?(c.xa=!0,T(c.ca)):(c.xa=!1,za(c.k,n.k),za(c.ca,n.ca))};wb=function(){this.Qd--};xb=function(c){var n,m,k,q,b,a=0;if(!this.S)for(n=0,m=this.Ta.length;n<m;n++)for(b=this.Ta[n],k=0,q=b.Wa.length;k<q;k++){if(c===b.Wa[k].name)return this.L.lastBehIndex=a,b.Wa[k];a++}n=0;for(m=this.Wa.length;n<m;n++){if(c===this.Wa[n].name)return this.L.lastBehIndex=
a,this.Wa[n];a++}return null};yb=function(c){return this.hk(c)?this.L.lastBehIndex:-1};zb=function(c){var n,m;n=0;for(m=this.X.length;n<m;n++)if(this.X[n].name===c)return n;return-1};Bb=function(){if(this.zc&&!this.S){var c,n,m,k,q,b,a;this.xl();b=this.ma();var f=b.xa,p=(c=this.b.Eb())&&c.jc&&c.jc.Dd;c=0;for(n=this.xc.length;c<n;c++)if(q=this.xc[c],q!==this&&(q.xl(),a=q.ma(),a.xa=f,!f)){T(a.k);m=0;for(k=b.k.length;m<k;++m)a.k[m]=q.Am(b.k[m].Uf);if(p)for(T(a.ca),m=0,k=b.ca.length;m<k;++m)a.ca[m]=q.Am(b.ca[m].Uf)}}};
Db=function(){return"Type"+this.ja};cc=function(c,n,m){if("undefined"===typeof c||"undefined"===typeof m)return!1;switch(n){case 0:return c===m;case 1:return c!==m;case 2:return c<m;case 3:return c<=m;case 4:return c>m;case 5:return c>=m;default:return!1}}})();var lc={};function pc(c){this.b=c}
(function(){function c(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function l(a){a=a.toLowerCase();return V.hasOwnProperty(a)&&V[a].length?V[a][0].Mc():t.destination}function n(){return t.createGain?t.createGain():t.createGainNode()}function m(a){return t.createDelay?t.createDelay(a):t.createDelayNode(a)}function k(a,b){a.start?a.start(b||0):a.noteOn(b||0)}function q(a,b,d,f){a.start?a.start(f||0,b):a.noteGrainOn(f||0,b,d-b)}function b(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}
function a(a,b,d,f,c,e){this.type="filter";this.Ed=[a,b,d,f,c,e];this.qa=n();this.W=n();this.W.gain.value=e;this.U=n();this.U.gain.value=1-e;this.fb=t.createBiquadFilter();this.fb.type="number"===typeof this.fb.type?a:Ec[a];this.fb.frequency.value=b;this.fb.detune&&(this.fb.detune.value=d);this.fb.Q.value=f;this.fb.gain.value=c;this.qa.connect(this.fb);this.qa.connect(this.U);this.fb.connect(this.W)}function f(a,b,d){this.type="delay";this.Ed=[a,b,d];this.qa=n();this.W=n();this.W.gain.value=d;this.U=
n();this.U.gain.value=1-d;this.Fi=n();this.Zc=m(a);this.Zc.delayTime.value=a;this.Rj=n();this.Rj.gain.value=b;this.qa.connect(this.Fi);this.qa.connect(this.U);this.Fi.connect(this.W);this.Fi.connect(this.Zc);this.Zc.connect(this.Rj);this.Rj.connect(this.Fi)}function p(a,b,d,f){this.type="convolve";this.Ed=[b,d,f];this.qa=n();this.W=n();this.W.gain.value=d;this.U=n();this.U.gain.value=1-d;this.Gf=t.createConvolver();a&&(this.Gf.normalize=b,this.Gf.buffer=a);this.qa.connect(this.Gf);this.qa.connect(this.U);
this.Gf.connect(this.W)}function d(a,b,d,f,e){this.type="flanger";this.Ed=[a,b,d,f,e];this.qa=n();this.U=n();this.U.gain.value=1-e/2;this.W=n();this.W.gain.value=e/2;this.Yj=n();this.Yj.gain.value=f;this.Zc=m(a+b);this.Zc.delayTime.value=a;this.Bb=t.createOscillator();this.Bb.frequency.value=d;this.Dc=n();this.Dc.gain.value=b;this.qa.connect(this.Zc);this.qa.connect(this.U);this.Zc.connect(this.W);this.Zc.connect(this.Yj);this.Yj.connect(this.Zc);this.Bb.connect(this.Dc);this.Dc.connect(this.Zc.delayTime);
k(this.Bb)}function e(a,b,d,f,e,c){this.type="phaser";this.Ed=[a,b,d,f,e,c];this.qa=n();this.U=n();this.U.gain.value=1-c/2;this.W=n();this.W.gain.value=c/2;this.fb=t.createBiquadFilter();this.fb.type="number"===typeof this.fb.type?7:"allpass";this.fb.frequency.value=a;this.fb.detune&&(this.fb.detune.value=b);this.fb.Q.value=d;this.Bb=t.createOscillator();this.Bb.frequency.value=e;this.Dc=n();this.Dc.gain.value=f;this.qa.connect(this.fb);this.qa.connect(this.U);this.fb.connect(this.W);this.Bb.connect(this.Dc);
this.Dc.connect(this.fb.frequency);k(this.Bb)}function v(a){this.type="gain";this.Ed=[a];this.ra=n();this.ra.gain.value=a}function g(a,b){this.type="tremolo";this.Ed=[a,b];this.ra=n();this.ra.gain.value=1-b/2;this.Bb=t.createOscillator();this.Bb.frequency.value=a;this.Dc=n();this.Dc.gain.value=b/2;this.Bb.connect(this.Dc);this.Dc.connect(this.ra.gain);k(this.Bb)}function I(a,b){this.type="ringmod";this.Ed=[a,b];this.qa=n();this.W=n();this.W.gain.value=b;this.U=n();this.U.gain.value=1-b;this.$i=n();
this.$i.gain.value=0;this.Bb=t.createOscillator();this.Bb.frequency.value=a;this.Bb.connect(this.$i.gain);k(this.Bb);this.qa.connect(this.$i);this.qa.connect(this.U);this.$i.connect(this.W)}function E(a,b,d,f,e){this.type="distortion";this.Ed=[a,b,d,f,e];this.qa=n();this.Yk=n();this.Xk=n();this.Mw(d,Math.pow(10,f/20));this.W=n();this.W.gain.value=e;this.U=n();this.U.gain.value=1-e;this.Dl=t.createWaveShaper();this.Pj=new Float32Array(65536);this.Yu(a,b);this.Dl.Pj=this.Pj;this.qa.connect(this.Yk);
this.qa.connect(this.U);this.Yk.connect(this.Dl);this.Dl.connect(this.Xk);this.Xk.connect(this.W)}function A(a,b,d,f,e){this.type="compressor";this.Ed=[a,b,d,f,e];this.ra=t.createDynamicsCompressor();try{this.ra.threshold.value=a,this.ra.knee.value=b,this.ra.ratio.value=d,this.ra.attack.value=f,this.ra.release.value=e}catch(c){}}function h(a,b){this.type="analyser";this.Ed=[a,b];this.ra=t.createAnalyser();this.ra.fftSize=a;this.ra.smoothingTimeConstant=b;this.Wu=new Float32Array(this.ra.frequencyBinCount);
this.ur=new Uint8Array(a);this.Ri=0}function r(){this.V=null;this.Gk=0;this.wf=[];this.un=this.vk=this.uk=0}function x(a,b){this.src=a;this.ea=B;this.bd=b;this.zj=!1;var d=this;this.tn=this.Bn=null;this.Yg=[];this.hl=0;this.yo=this.Wj=this.Dr=this.Rk=!1;1===B&&b&&!lb&&(this.ea=0,this.Bn=n());this.ie=this.ua=null;var f;switch(this.ea){case 0:this.ua=new Audio;this.ua.crossOrigin="anonymous";this.ua.addEventListener("canplaythrough",function(){d.yo=!0});1===B&&t.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&
(this.Dr=!0,this.ua.addEventListener("canplay",function(){d.tn||(d.tn=t.createMediaElementSource(d.ua),d.tn.connect(d.Bn))}));this.ua.autoplay=!1;this.ua.jy="auto";this.ua.src=a;break;case 1:z.bi?z.pp(a,function(a){d.ie=a;d.hp()},function(){d.Wj=!0}):(f=new XMLHttpRequest,f.open("GET",a,!0),f.responseType="arraybuffer",f.onload=function(){d.ie=f.response;d.hp()},f.onerror=function(){d.Wj=!0},f.send());break;case 2:this.ua=!0;break;case 3:this.ua=!0}}function C(a,b){var d=this;this.tag=b;this.tc=this.Sd=
!0;this.src=a.src;this.buffer=a;this.ea=B;this.bd=a.bd;this.playbackRate=1;this.Gg=!0;this.Ac=this.Qc=!1;this.sc=0;this.ci=this.Lg=this.Xd=!1;this.volume=1;this.zn=function(a){if(!d.Ac&&!d.Qc){var b=this;b||(b=a.target);b===d.xj&&(d.Gg=!0,d.tc=!0,ga=d.tag,z.trigger(pc.prototype.D.wj,M))}};this.xj=null;this.Ig=1===L&&!this.bd||2===L;this.Vg=1;this.startTime=this.Ig?z.ob.T:z.Me.T;this.cb=this.lb=null;this.Zd=!1;this.bb=null;this.Qq=this.Pq=this.Oq=this.Nq=this.Sq=this.Rq=0;this.u=null;var f=!1;1!==
this.ea||0!==this.buffer.ea||this.buffer.Dr||(this.ea=0);switch(this.ea){case 0:this.bd?(this.u=a.ua,f=!a.zj,a.zj=!0):(this.u=new Audio,this.u.crossOrigin="anonymous",this.u.autoplay=!1,this.u.src=a.ua.src,f=!0);f&&this.u.addEventListener("ended",function(){ga=d.tag;d.tc=!0;z.trigger(pc.prototype.D.wj,M)});break;case 1:this.lb=n();this.lb.connect(l(b));1===this.buffer.ea?a.ua&&(this.u=t.createBufferSource(),this.u.buffer=a.ua,this.u.connect(this.lb)):(this.u=this.buffer.ua,this.buffer.Bn.connect(this.lb),
this.buffer.zj||(this.buffer.zj=!0,this.buffer.ua.addEventListener("ended",function(){ga=d.tag;d.tc=!0;z.trigger(pc.prototype.D.wj,M)})));break;case 2:this.u=new window.Media(K+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(d.Gg=!0,d.tc=!0,ga=d.tag,z.trigger(pc.prototype.D.wj,M))});break;case 3:this.u=!0}}function G(a,b){V.hasOwnProperty(a)?V[a].push(b):V[a]=[b];var d,f,e,c,h=t.destination;if(V.hasOwnProperty(a)&&(e=V[a],e.length))for(h=e[0].Mc(),d=0,f=e.length;d<f;d++)c=e[d],d+1===
f?c.Wc(t.destination):c.Wc(e[d+1].Mc());T(Oa);if(a.length)for(d=0,f=w.length;d<f;d++)e=w[d],kb(a,e.tag)&&Oa.push(e);else u&&!u.Tf()&&(T(Oa),Oa[0]=u);d=0;for(f=Oa.length;d<f;d++)Oa[d].xw(h);Ja&&Ab===a&&(Ja.disconnect(),Ja.connect(h))}function P(){}function N(){}var F=pc.prototype;F.ka=function(a){this.Ja=a;this.b=a.b};F.ka.prototype.N=function(){};var z=null,M=null,ga="",K="",B=0,t=null,W=[],w=[],u=null,D=!1,L=0,U=!1,J=1,H=0,O=0,pa=!1,S=1,qa=1,ka=10,Ia=1E4,va=1,Ja=null,Ab="",Sa=!1,Ta=[],lb=!1,V={},
Ec="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");a.prototype.Wc=function(a){this.W.disconnect();this.W.connect(a);this.U.disconnect();this.U.connect(a)};a.prototype.remove=function(){this.qa.disconnect();this.fb.disconnect();this.W.disconnect();this.U.disconnect()};a.prototype.Mc=function(){return this.qa};f.prototype.Wc=function(a){this.W.disconnect();this.W.connect(a);this.U.disconnect();this.U.connect(a)};f.prototype.remove=function(){this.qa.disconnect();this.Fi.disconnect();
this.Zc.disconnect();this.Rj.disconnect();this.W.disconnect();this.U.disconnect()};f.prototype.Mc=function(){return this.qa};p.prototype.Wc=function(a){this.W.disconnect();this.W.connect(a);this.U.disconnect();this.U.connect(a)};p.prototype.remove=function(){this.qa.disconnect();this.Gf.disconnect();this.W.disconnect();this.U.disconnect()};p.prototype.Mc=function(){return this.qa};d.prototype.Wc=function(a){this.U.disconnect();this.U.connect(a);this.W.disconnect();this.W.connect(a)};d.prototype.remove=
function(){this.qa.disconnect();this.Zc.disconnect();this.Bb.disconnect();this.Dc.disconnect();this.U.disconnect();this.W.disconnect();this.Yj.disconnect()};d.prototype.Mc=function(){return this.qa};e.prototype.Wc=function(a){this.U.disconnect();this.U.connect(a);this.W.disconnect();this.W.connect(a)};e.prototype.remove=function(){this.qa.disconnect();this.fb.disconnect();this.Bb.disconnect();this.Dc.disconnect();this.U.disconnect();this.W.disconnect()};e.prototype.Mc=function(){return this.qa};v.prototype.Wc=
function(a){this.ra.disconnect();this.ra.connect(a)};v.prototype.remove=function(){this.ra.disconnect()};v.prototype.Mc=function(){return this.ra};g.prototype.Wc=function(a){this.ra.disconnect();this.ra.connect(a)};g.prototype.remove=function(){this.Bb.disconnect();this.Dc.disconnect();this.ra.disconnect()};g.prototype.Mc=function(){return this.ra};I.prototype.Wc=function(a){this.W.disconnect();this.W.connect(a);this.U.disconnect();this.U.connect(a)};I.prototype.remove=function(){this.Bb.disconnect();
this.$i.disconnect();this.qa.disconnect();this.W.disconnect();this.U.disconnect()};I.prototype.Mc=function(){return this.qa};E.prototype.Mw=function(a,b){.01>a&&(a=.01);this.Yk.gain.value=a;this.Xk.gain.value=Math.pow(1/a,.6)*b};E.prototype.shape=function(a,b,d){var f=1.05*d*b-b;d=0>a?-1:1;a=0>a?-a:a;b=a<b?a:b+f*(1-Math.exp(-(1/f)*(a-b)));return b*d};E.prototype.Yu=function(a,b){for(var d=Math.pow(10,a/20),f=Math.pow(10,b/20),e=0,c=0;32768>c;++c)e=c/32768,e=this.shape(e,d,f),this.Pj[32768+c]=e,this.Pj[32768-
c-1]=-e};E.prototype.Wc=function(a){this.W.disconnect();this.W.connect(a);this.U.disconnect();this.U.connect(a)};E.prototype.remove=function(){this.qa.disconnect();this.Yk.disconnect();this.Dl.disconnect();this.Xk.disconnect();this.W.disconnect();this.U.disconnect()};E.prototype.Mc=function(){return this.qa};A.prototype.Wc=function(a){this.ra.disconnect();this.ra.connect(a)};A.prototype.remove=function(){this.ra.disconnect()};A.prototype.Mc=function(){return this.ra};h.prototype.Ea=function(){this.ra.getFloatFrequencyData(this.Wu);
this.ra.getByteTimeDomainData(this.ur);for(var a=this.ra.fftSize,b=0,d=this.Ri=0,f=0;b<a;b++)f=(this.ur[b]-128)/128,0>f&&(f=-f),this.Ri<f&&(this.Ri=f),d+=f*f;this.Ri=c(this.Ri);c(Math.sqrt(d/a))};h.prototype.Wc=function(a){this.ra.disconnect();this.ra.connect(a)};h.prototype.remove=function(){this.ra.disconnect()};h.prototype.Mc=function(){return this.ra};r.prototype.aj=function(a){if(this.V=a)this.uk=this.V.x,this.vk=this.V.y;T(this.wf)};r.prototype.lk=function(){return!!this.V};r.prototype.Ea=function(a){this.V&&
0!==a&&(this.un=La(this.uk,this.vk,this.V.x,this.V.y),a=Ra(this.uk,this.vk,this.V.x,this.V.y)/a,4>this.wf.length||this.wf.shift(),this.wf.push(a),this.uk=this.V.x,this.vk=this.V.y)};r.prototype.Cp=function(){if(!this.wf.length)return 0;var a,b,d=0;a=0;for(b=this.wf.length;a<b;a++)d+=this.wf[a];return d/this.wf.length};r.prototype.Fm=function(){return Math.cos(this.un)*this.Cp()};r.prototype.Gm=function(){return Math.sin(this.un)*this.Cp()};var zc=!1;x.prototype.yw=function(){var a,b,d,f;d=a=0;for(b=
w.length;a<b;++a)f=w[a],w[d]=f,f.buffer===this?f.stop():++d;w.length=d;this.ie=this.ua=null};x.prototype.hp=function(){if(!this.ua&&this.ie){var a=this;if(t.decodeAudioData)t.decodeAudioData(this.ie,function(b){a.ua=b;a.ie=null;var d,f,e;if(ea(a.Uk)||U)ea(a.Lj)||(d=a.Lj.Gf,d.normalize=a.Eq,d.buffer=b);else if(a.Yg.length){d=0;for(f=a.Yg.length;d<f;d++){b=a.Yg[d];e=new C(a,b.Jr);e.Zn(!0);if("undefined"!==typeof b.Gq&&(b.V=z.Rf(b.Gq),!b.V))continue;if(b.V){var c=Qa(b.V.x,b.V.y,-b.V.n.ab(),H,O,!0),h=
Qa(b.V.x,b.V.y,-b.V.n.ab(),H,O,!1);e.Yn(c,h,Ea(b.V.q-b.V.n.ab()),b.Lm,b.vn,b.xn);e.aj(b.V)}else e.Yn(b.x,b.y,b.ut,b.Lm,b.vn,b.xn);e.play(a.sn,a.xo,a.hl);a.Rk&&e.pause();w.push(e)}T(a.Yg)}else e=new C(a,a.Uk||""),e.play(a.sn,a.xo,a.hl),a.Rk&&e.pause(),w.push(e)},function(){a.Wj=!0});else if(this.ua=t.createBuffer(this.ie,!1),this.ie=null,ea(this.Uk)||U)ea(this.Lj)||(b=this.Lj.Gf,b.normalize=this.Eq,b.buffer=this.ua);else{var b=new C(this,this.Uk);b.play(this.sn,this.xo,this.hl);this.Rk&&b.pause();
w.push(b)}}};x.prototype.Qp=function(){switch(this.ea){case 0:var a=4<=this.ua.readyState;a&&(this.yo=!0);return a||this.yo;case 1:return!!this.ie||!!this.ua;case 2:return!0;case 3:return!0}return!1};x.prototype.Tv=function(){switch(this.ea){case 0:return this.Qp();case 1:return!!this.ua;case 2:return!0;case 3:return!0}return!1};x.prototype.Kv=function(){switch(this.ea){case 0:return!!this.ua.error;case 1:return this.Wj}return!1};C.prototype.Tf=function(){switch(this.ea){case 0:return this.u.ended;
case 1:return 1===this.buffer.ea?!this.Sd&&!this.tc&&this.u.loop||this.Ac?!1:this.Gg:this.u.ended;case 2:return this.Gg;case 3:!0}return!0};C.prototype.Ht=function(){return this.Sd||this.tc?!0:this.Tf()};C.prototype.Zn=function(a){1===B&&(!this.Zd&&a?this.lb&&(this.cb||(this.cb=t.createPanner(),this.cb.panningModel="number"===typeof this.cb.panningModel?S:["equalpower","HRTF","soundfield"][S],this.cb.distanceModel="number"===typeof this.cb.distanceModel?qa:["linear","inverse","exponential"][qa],this.cb.refDistance=
ka,this.cb.maxDistance=Ia,this.cb.rolloffFactor=va),this.lb.disconnect(),this.lb.connect(this.cb),this.cb.connect(l(this.tag)),this.Zd=!0):this.Zd&&!a&&this.lb&&(this.cb.disconnect(),this.lb.disconnect(),this.lb.connect(l(this.tag)),this.Zd=!1))};C.prototype.Yn=function(a,b,d,f,e,c){this.Zd&&1===B&&(this.cb.setPosition(a,b,0),this.cb.setOrientation(Math.cos(X(d)),Math.sin(X(d)),0),this.cb.coneInnerAngle=f,this.cb.coneOuterAngle=e,this.cb.coneOuterGain=c,this.Rq=a,this.Sq=b,this.Nq=d,this.Oq=f,this.Pq=
e,this.Qq=c)};C.prototype.aj=function(a){this.Zd&&1===B&&(this.bb||(this.bb=new r),this.bb.aj(a))};C.prototype.Ea=function(a){if(this.Zd&&1===B&&this.bb&&this.bb.lk()&&this.$h()){this.bb.Ea(a);a=this.bb.V;var b=Qa(a.x,a.y,-a.n.ab(),H,O,!0),d=Qa(a.x,a.y,-a.n.ab(),H,O,!1);this.cb.setPosition(b,d,0);b=0;"undefined"!==typeof this.bb.V.q&&(b=a.q-a.n.ab(),this.cb.setOrientation(Math.cos(b),Math.sin(b),0));b=Qa(this.bb.Fm(),this.bb.Gm(),-a.n.ab(),0,0,!0);d=Qa(this.bb.Fm(),this.bb.Gm(),-a.n.ab(),0,0,!1);
this.cb.setVelocity(b,d,0)}};C.prototype.play=function(a,b,d,f){var e=this.u;this.Xd=a;this.volume=b;d=d||0;f=f||0;switch(this.ea){case 0:1!==e.playbackRate&&(e.playbackRate=1);e.volume!==b*J&&(e.volume=b*J);e.loop!==a&&(e.loop=a);e.muted&&(e.muted=!1);if(e.currentTime!==d)try{e.currentTime=d}catch(c){}if(this.bd&&Sa&&!z.Wd)Ta.push(this);else try{this.u.play()}catch(h){console&&console.log&&console.log("[C2] WARNING: exception trying to play audio '"+this.buffer.src+"': ",h)}break;case 1:this.muted=
!1;this.Vg=1;if(1===this.buffer.ea)this.lb.gain.value=b*J,this.Sd||(this.u=t.createBufferSource(),this.u.buffer=this.buffer.ua,this.u.connect(this.lb)),this.u.onended=this.zn,this.xj=this.u,this.u.loop=a,this.Gg=!1,0===d?k(this.u,f):q(this.u,d,this.Qf(),f);else{1!==e.playbackRate&&(e.playbackRate=1);e.loop!==a&&(e.loop=a);e.volume=b*J;if(e.currentTime!==d)try{e.currentTime=d}catch(g){}this.bd&&Sa&&!z.Wd?Ta.push(this):e.play()}break;case 2:(!this.Sd&&this.tc||0!==d)&&e.seekTo(d);e.play();this.Gg=!1;
break;case 3:z.pc?AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=1;this.startTime=(this.Ig?z.ob.T:z.Me.T)-d;this.Ac=this.tc=this.Sd=!1};C.prototype.stop=function(){switch(this.ea){case 0:this.u.paused||this.u.pause();break;case 1:1===this.buffer.ea?b(this.u):this.u.paused||this.u.pause();break;case 2:this.u.stop();break;case 3:z.pc&&AppMobi.context.stopSound(this.src)}this.tc=!0;this.Ac=!1};C.prototype.pause=function(){if(!(this.Sd||this.tc||this.Tf()||
this.Ac)){switch(this.ea){case 0:this.u.paused||this.u.pause();break;case 1:1===this.buffer.ea?(this.sc=this.Bm(!0),this.Xd&&(this.sc=this.sc%this.Qf()),this.Ac=!0,b(this.u)):this.u.paused||this.u.pause();break;case 2:this.u.pause();break;case 3:z.pc&&AppMobi.context.stopSound(this.src)}this.Ac=!0}};C.prototype.Cw=function(){if(!(this.Sd||this.tc||this.Tf())&&this.Ac){switch(this.ea){case 0:this.u.play();break;case 1:1===this.buffer.ea?(this.u=t.createBufferSource(),this.u.buffer=this.buffer.ua,this.u.connect(this.lb),
this.u.onended=this.zn,this.xj=this.u,this.u.loop=this.Xd,this.lb.gain.value=J*this.volume*this.Vg,this.yl(),this.startTime=(this.Ig?z.ob.T:z.Me.T)-this.sc/(this.playbackRate||.001),q(this.u,this.sc,this.Qf())):this.u.play();break;case 2:this.u.play();break;case 3:z.pc&&AppMobi.context.resumeSound(this.src)}this.Ac=!1}};C.prototype.seek=function(a){if(!(this.Sd||this.tc||this.Tf()))switch(this.ea){case 0:try{this.u.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.ea)this.Ac?this.sc=a:(this.pause(),
this.sc=a,this.Cw());else try{this.u.currentTime=a}catch(d){}break;case 3:z.pc&&AppMobi.context.seekSound(this.src,a)}};C.prototype.xw=function(a){1===this.ea&&(this.Zd?(this.cb.disconnect(),this.cb.connect(a)):(this.lb.disconnect(),this.lb.connect(a)))};C.prototype.Qf=function(){var a=0;switch(this.ea){case 0:"undefined"!==typeof this.u.duration&&(a=this.u.duration);break;case 1:a=this.buffer.ua.duration;break;case 2:a=this.u.getDuration();break;case 3:z.pc&&(a=AppMobi.context.getDurationSound(this.src))}return a};
C.prototype.Bm=function(a){var b=this.Qf(),d=0;switch(this.ea){case 0:"undefined"!==typeof this.u.currentTime&&(d=this.u.currentTime);break;case 1:if(1===this.buffer.ea){if(this.Ac)return this.sc;d=(this.Ig?z.ob.T:z.Me.T)-this.startTime}else"undefined"!==typeof this.u.currentTime&&(d=this.u.currentTime);break;case 3:z.pc&&(d=AppMobi.context.getPlaybackTimeSound(this.src))}a&&(d*=this.playbackRate);!this.Xd&&d>b&&(d=b);return d};C.prototype.$h=function(){return!this.Ac&&!this.Sd&&!this.tc&&!this.Tf()};
C.prototype.Sw=function(){return!this.Sd&&!this.tc&&!this.Tf()};C.prototype.Zw=function(){var a=this.volume*J;isFinite(a)||(a=0);switch(this.ea){case 0:"undefined"!==typeof this.u.volume&&this.u.volume!==a&&(this.u.volume=a);break;case 1:1===this.buffer.ea?this.lb.gain.value=a*this.Vg:"undefined"!==typeof this.u.volume&&this.u.volume!==a&&(this.u.volume=a)}};C.prototype.Uj=function(a){switch(this.ea){case 0:this.u.muted!==!!a&&(this.u.muted=!!a);break;case 1:1===this.buffer.ea?(this.Vg=a?0:1,this.lb.gain.value=
J*this.volume*this.Vg):this.u.muted!==!!a&&(this.u.muted=!!a)}};C.prototype.Nw=function(){this.Lg=!0;this.Uj(this.Lg||this.ci)};C.prototype.or=function(a){this.ci=!!a;this.Uj(this.Lg||this.ci)};C.prototype.yl=function(){var a=this.playbackRate;this.Ig&&(a*=z.ug);switch(this.ea){case 0:this.u.playbackRate!==a&&(this.u.playbackRate=a);break;case 1:1===this.buffer.ea?this.u.playbackRate.value!==a&&(this.u.playbackRate.value=a):this.u.playbackRate!==a&&(this.u.playbackRate=a)}};C.prototype.Pw=function(a){switch(this.ea){case 0:a?
this.$h()?(this.Qc=!0,this.u.pause()):this.Qc=!1:this.Qc&&(this.u.play(),this.Qc=!1);break;case 1:a?this.$h()?(this.Qc=!0,1===this.buffer.ea?(this.sc=this.Bm(!0),this.Xd&&(this.sc=this.sc%this.Qf()),b(this.u)):this.u.pause()):this.Qc=!1:this.Qc&&(1===this.buffer.ea?(this.u=t.createBufferSource(),this.u.buffer=this.buffer.ua,this.u.connect(this.lb),this.u.onended=this.zn,this.xj=this.u,this.u.loop=this.Xd,this.lb.gain.value=J*this.volume*this.Vg,this.yl(),this.startTime=(this.Ig?z.ob.T:z.Me.T)-this.sc/
(this.playbackRate||.001),q(this.u,this.sc,this.Qf())):this.u.play(),this.Qc=!1);break;case 2:a?this.$h()?(this.u.pause(),this.Qc=!0):this.Qc=!1:this.Qc&&(this.Qc=!1,this.u.play())}};F.Y=function(a){this.type=a;z=this.b=a.b;M=this;this.$b=null;this.vi=-600;this.b.bi&&(lb=!0);!(this.b.ei||this.b.pk&&(this.b.Uh||this.b.qk))||this.b.Vh||this.b.Da||this.b.Qm||lb||(Sa=!0);t=null;"undefined"!==typeof AudioContext?(B=1,t=new AudioContext):"undefined"!==typeof webkitAudioContext&&(B=1,t=new webkitAudioContext);
this.b.ei&&t&&(t.close&&t.close(),"undefined"!==typeof AudioContext?t=new AudioContext:"undefined"!==typeof webkitAudioContext&&(t=new webkitAudioContext));Sa&&document.addEventListener("touchend",function(){if(!zc&&t){if(!pa&&t.createBuffer){var a=t.createBuffer(1,220,22050),b=t.createBufferSource();b.buffer=a;b.connect(t.destination);k(b)}zc=!0}var d;if(Sa){if(!U)for(a=0,b=Ta.length;a<b;++a)d=Ta[a],d.tc||d.Ac||d.u.play();T(Ta)}},!0);1!==B&&(this.b.Vd&&"undefined"!==typeof window.Media?B=2:this.b.Pp&&
(B=3));2===B&&(K=location.href,a=K.lastIndexOf("/"),-1<a&&(K=K.substr(0,a+1)),K=K.replace("file://",""));if(this.b.Uv&&this.b.Vv&&"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.yf(this);else{if(this.b.pc)D=this.b.pk;else try{D=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(b){D=!1}this.b.hh(this)}};var la=F.Y.prototype;la.N=function(){this.b.zg=this;L=this.C[0];this.De=
this.C[1];this.lw=0!==this.C[2];this.Cq=0;S=this.C[3];qa=this.C[4];this.vi=-this.C[5];ka=this.C[6];Ia=this.C[7];va=this.C[8];this.$b=new r;var a=this.b.R||this.b.width,b=this.b.P||this.b.height;1===B&&("undefined"!==typeof t.listener.dopplerFactor&&(t.listener.dopplerFactor=0),t.listener.setPosition(a/2,b/2,this.vi),t.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,b){Ja&&Ja.disconnect();Ab=b.toLowerCase();Ja=t.createMediaStreamSource(a);Ja.connect(l(Ab))});this.b.xt(function(a){M.iw(a)});
var d=this;this.b.yj(function(a){d.Ni(a)})};la.Ni=function(a){var b,d,f;b=0;for(d=w.length;b<d;b++)f=w[b],f.bb&&f.bb.V===a&&(f.bb.V=null,f.Zd&&f.$h()&&f.Xd&&f.stop());this.$b.V===a&&(this.$b.V=null)};la.Za=function(){var a={silent:U,masterVolume:J,listenerZ:this.vi,listenerUid:this.$b.lk()?this.$b.V.uid:-1,playing:[],effects:{}},b=a.playing,d,f,e,c,h,k;d=0;for(f=w.length;d<f;d++)e=w[d],!e.Sw()||3===this.De||e.bd&&1===this.De||!e.bd&&2===this.De||(c=e.Bm(),e.Xd&&(c=c%e.Qf()),c={tag:e.tag,buffersrc:e.buffer.src,
is_music:e.bd,playbackTime:c,volume:e.volume,looping:e.Xd,muted:e.Lg,playbackRate:e.playbackRate,paused:e.Ac,resume_position:e.sc},e.Zd&&(c.pan={},k=c.pan,e.bb&&e.bb.lk()?k.objUid=e.bb.V.uid:(k.x=e.Rq,k.y=e.Sq,k.a=e.Nq),k.ia=e.Oq,k.oa=e.Pq,k.og=e.Qq),b.push(c));b=a.effects;for(h in V)if(V.hasOwnProperty(h)){e=[];d=0;for(f=V[h].length;d<f;d++)e.push({type:V[h][d].type,params:V[h][d].Ed});b[h]=e}return a};var Ua=[];la.hb=function(b){var c=b.silent;J=b.masterVolume;this.vi=b.listenerZ;this.$b.aj(null);
var k=b.listenerUid;-1!==k&&(this.$b.Gk=k,Ua.push(this.$b));var k=b.playing,m,l,n,q,x,C,P,F,u,t,z;if(3!==this.De)for(m=0,l=w.length;m<l;m++)u=w[m],u.bd&&1===this.De||(u.bd||2!==this.De)&&u.stop();for(x in V)if(V.hasOwnProperty(x))for(m=0,l=V[x].length;m<l;m++)V[x][m].remove();Ya(V);for(x in b.effects)if(b.effects.hasOwnProperty(x))for(C=b.effects[x],m=0,l=C.length;m<l;m++)switch(n=C[m].type,t=C[m].params,n){case "filter":G(x,new a(t[0],t[1],t[2],t[3],t[4],t[5]));break;case "delay":G(x,new f(t[0],
t[1],t[2]));break;case "convolve":n=t[2];u=this.gk(n,!1);u.ua?n=new p(u.ua,t[0],t[1],n):(n=new p(null,t[0],t[1],n),u.Eq=t[0],u.Lj=n);G(x,n);break;case "flanger":G(x,new d(t[0],t[1],t[2],t[3],t[4]));break;case "phaser":G(x,new e(t[0],t[1],t[2],t[3],t[4],t[5]));break;case "gain":G(x,new v(t[0]));break;case "tremolo":G(x,new g(t[0],t[1]));break;case "ringmod":G(x,new I(t[0],t[1]));break;case "distortion":G(x,new E(t[0],t[1],t[2],t[3],t[4]));break;case "compressor":G(x,new A(t[0],t[1],t[2],t[3],t[4]));
break;case "analyser":G(x,new h(t[0],t[1]))}m=0;for(l=k.length;m<l;m++)3===this.De||(b=k[m],n=b.buffersrc,q=b.is_music,x=b.tag,C=b.playbackTime,P=b.looping,F=b.volume,z=(t=b.pan)&&t.hasOwnProperty("objUid")?t.objUid:-1,q&&1===this.De)||!q&&2===this.De||((u=this.vp(n,x,q,P,F))?(u.sc=b.resume_position,u.Zn(!!t),u.play(P,F,C),u.yl(),u.Zw(),u.Uj(u.Lg||u.ci),b.paused&&u.pause(),b.muted&&u.Nw(),u.Uj(u.Lg||u.ci),t&&(-1!==z?(u.bb=u.bb||new r,u.bb.Gk=z,Ua.push(u.bb)):u.Yn(t.x,t.y,t.a,t.ia,t.oa,t.og))):(u=
this.gk(n,q),u.hl=C,u.Rk=b.paused,t&&(-1!==z?u.Yg.push({Gq:z,Lm:t.ia,vn:t.oa,xn:t.og,Jr:x}):u.Yg.push({x:t.x,y:t.y,ut:t.a,Lm:t.ia,vn:t.oa,xn:t.og,Jr:x}))));if(c&&!U){m=0;for(l=w.length;m<l;m++)w[m].or(!0);U=!0}else if(!c&&U){m=0;for(l=w.length;m<l;m++)w[m].or(!1);U=!1}};la.qd=function(){var a,b,d,f;a=0;for(b=Ua.length;a<b;a++)d=Ua[a],f=this.b.Rf(d.Gk),d.aj(f),d.Gk=-1,f&&(H=f.x,O=f.y);T(Ua)};la.iw=function(a){if(!this.lw){!a&&t&&t.resume&&(t.resume(),pa=!1);var b,d;b=0;for(d=w.length;b<d;b++)w[b].Pw(a);
a&&t&&t.suspend&&(t.suspend(),pa=!0)}};la.Ea=function(){var a=this.b.Jf,b,d,f;b=0;for(d=w.length;b<d;b++)f=w[b],f.Ea(a),0!==L&&f.yl();var e,c;for(e in V)if(V.hasOwnProperty(e))for(f=V[e],b=0,d=f.length;b<d;b++)c=f[b],c.Ea&&c.Ea();1===B&&this.$b.lk()&&(this.$b.Ea(a),H=this.$b.V.x,O=this.$b.V.y,t.listener.setPosition(this.$b.V.x,this.$b.V.y,this.vi),t.listener.setVelocity(this.$b.Fm(),this.$b.Gm(),0))};var Va=[];la.Ow=function(a){var b,d,f,e,c,h=0;b=0;for(d=a.length;b<d;++b)if(f=a[b],e=f[0],f=2*f[1],
(c=4<e.length&&".ogg"===e.substr(e.length-4))&&D||!c&&!D)Va.push({filename:e,size:f,V:null}),h+=f;return h};la.Uw=function(){var a,b,d,f;a=0;for(b=Va.length;a<b;++a)d=Va[a],f=this.b.rm+d.filename,d.V=this.gk(f,!1)};la.qv=function(){var a=0,b,d,f;b=0;for(d=Va.length;b<d;++b)f=Va[b],f.V.Tv()||f.V.Kv()||this.b.Da||this.b.qk?a+=f.size:f.V.Qp()&&(a+=Math.floor(f.size/2));return a};la.zw=function(){var a,b,d,f;d=a=0;for(b=W.length;a<b;++a)f=W[a],W[d]=f,f.bd?f.yw():++d;W.length=d};la.gk=function(a,b){var d,
f,e,c=null;d=0;for(f=W.length;d<f;d++)if(e=W[d],e.src===a){c=e;break}c||(lb&&b&&this.zw(),c=new x(a,b),W.push(c));return c};la.vp=function(a,b,d,f,e){var c,h,k;c=0;for(h=w.length;c<h;c++)if(k=w[c],k.src===a&&(k.Ht()||d))return k.tag=b,k;a=this.gk(a,d);if(!a.ua)return"<preload>"!==b&&(a.Uk=b,a.sn=f,a.xo=e),null;k=new C(a,b);w.push(k);return k};var Oa=[];P.prototype.wj=function(a){return kb(ga,a)};F.D=new P;N.prototype.Play=function(a,b,d,f){!U&&(d=Math.pow(10,d/20),isFinite(d)||(d=0),0>d&&(d=0),1<
d&&(d=1),u=this.vp(this.b.rm+a[0]+(D?".ogg":".m4a"),f,a[1],0!==b,d))&&(u.Zn(!1),u.play(0!==b,d,0,this.Cq),this.Cq=0)};N.prototype.it=function(){var a,b;a=0;for(b=w.length;a<b;a++)w[a].stop()};F.J=new N;F.Qa=new function(){}})();function qc(c){this.b=c}
(function(){function c(){}function l(){}var n=qc.prototype;n.ka=function(c){this.Ja=c;this.b=c.b};n.ka.prototype.N=function(){};n.Y=function(c){this.type=c;this.b=c.b};var m=n.Y.prototype;m.N=function(){this.b.Da?y("[Construct 2] Button plugin not supported on this platform - the object will not be created"):(this.Hg=1===this.C[0],this.ad=document.createElement("input"),this.I=this.Hg?document.createElement("label"):this.ad,this.hi=null,this.ad.type=this.Hg?"checkbox":"button",this.ad.id=this.C[6],
jQuery(this.I).appendTo(this.b.Ag?this.b.Ag:"body"),this.Hg?(jQuery(this.ad).appendTo(this.I),this.hi=document.createTextNode(this.C[1]),jQuery(this.I).append(this.hi),this.ad.checked=0!==this.C[7],jQuery(this.I).css("font-family","sans-serif"),jQuery(this.I).css("display","inline-block"),jQuery(this.I).css("color","black")):this.ad.value=this.C[1],this.I.title=this.C[2],this.ad.disabled=0===this.C[4],this.At=0!==this.C[5],this.kc=!1,0===this.C[3]&&(jQuery(this.I).hide(),this.visible=!1,this.kc=!0),
this.ad.onclick=function(c){return function(m){m.stopPropagation();c.b.Wd=!0;c.b.trigger(qc.prototype.D.uj,c);c.b.Wd=!1}}(this),this.I.addEventListener("touchstart",function(c){c.stopPropagation()},!1),this.I.addEventListener("touchmove",function(c){c.stopPropagation()},!1),this.I.addEventListener("touchend",function(c){c.stopPropagation()},!1),jQuery(this.I).mousedown(function(c){c.stopPropagation()}),jQuery(this.I).mouseup(function(c){c.stopPropagation()}),jQuery(this.I).keydown(function(c){c.stopPropagation()}),
jQuery(this.I).keyup(function(c){c.stopPropagation()}),this.pi=this.qi=this.ji=this.ni=this.oi=this.li=0,this.mj(!0),this.b.hh(this))};m.Za=function(){var c={tooltip:this.I.title,disabled:!!this.ad.disabled};this.Hg?(c.checked=!!this.ad.checked,c.text=this.hi.nodeValue):c.text=this.I.value;return c};m.hb=function(c){this.I.title=c.tooltip;this.ad.disabled=c.disabled;this.Hg?(this.ad.checked=c.checked,this.hi.nodeValue=c.text):this.I.value=c.text};m.Cd=function(){this.b.Da||(jQuery(this.I).remove(),
this.I=null)};m.Ea=function(){this.mj()};m.mj=function(c){if(!this.b.Da){var m=this.n.wa(this.x,this.y,!0),b=this.n.wa(this.x,this.y,!1),a=this.n.wa(this.x+this.width,this.y+this.height,!0),f=this.n.wa(this.x+this.width,this.y+this.height,!1),l=this.b.width/this.b.devicePixelRatio,d=this.b.height/this.b.devicePixelRatio;!this.visible||!this.n.visible||0>=a||0>=f||m>=l||b>=d?(this.kc||jQuery(this.I).hide(),this.kc=!0):(1>m&&(m=1),1>b&&(b=1),a>=l&&(a=l-1),f>=d&&(f=d-1),l=window.innerWidth,d=window.innerHeight,
c||this.li!==m||this.oi!==b||this.ni!==a||this.ji!==f||this.qi!==l||this.pi!==d?(this.li=m,this.oi=b,this.ni=a,this.ji=f,this.qi=l,this.pi=d,this.kc&&(jQuery(this.I).show(),this.kc=!1),c=Math.round(m)+jQuery(this.b.canvas).offset().left,l=Math.round(b)+jQuery(this.b.canvas).offset().top,jQuery(this.I).css("position","absolute"),jQuery(this.I).offset({left:c,top:l}),jQuery(this.I).width(Math.round(a-m)),jQuery(this.I).height(Math.round(f-b)),this.At&&jQuery(this.I).css("font-size",this.n.mc(!0)/this.b.devicePixelRatio-
.2+"em")):this.kc&&(jQuery(this.I).show(),this.kc=!1))}};m.$c=function(){};m.Yb=function(){};c.prototype.uj=function(){return!0};n.D=new c;l.prototype.No=function(c){this.b.Da||(this.Hg?this.hi.nodeValue=c:this.I.value=c)};l.prototype.Il=function(c){this.b.Da||(this.visible=0!==c)};n.J=new l;n.Qa=new function(){}})();function rc(c){this.b=c}
(function(){function c(){}var l=rc.prototype;l.ka=function(c){this.Ja=c;this.b=c.b};l.ka.prototype.N=function(){};l.Y=function(c){this.type=c;this.b=c.b;this.Rg=Array(256);this.oj=Array(256);this.Ke=0};var n=l.Y.prototype;n.N=function(){var c=this;this.b.Da||(jQuery(document).keydown(function(m){c.Oi(m)}),jQuery(document).keyup(function(m){c.Pi(m)}))};var m=[32,33,34,35,36,37,38,39,40,44];n.Oi=function(c){var l=!1;window!=window.top&&-1<m.indexOf(c.which)&&(c.preventDefault(),l=!0,c.stopPropagation());
if(this.Rg[c.which])this.oj[c.which]&&!l&&c.preventDefault();else{this.Rg[c.which]=!0;this.Ke=c.which;this.b.Wd=!0;this.b.trigger(rc.prototype.D.Gs,this);var b=this.b.trigger(rc.prototype.D.Fo,this),a=this.b.trigger(rc.prototype.D.Ms,this);this.b.Wd=!1;if(b||a)this.oj[c.which]=!0,l||c.preventDefault()}};n.Pi=function(c){this.Rg[c.which]=!1;this.Ke=c.which;this.b.Wd=!0;this.b.trigger(rc.prototype.D.Eo,this);var m=this.b.trigger(rc.prototype.D.Ho,this),b=this.b.trigger(rc.prototype.D.Go,this);this.b.Wd=
!1;if(m||b||this.oj[c.which])this.oj[c.which]=!0,c.preventDefault()};n.qf=function(){var c;for(c=0;256>c;++c)if(this.Rg[c]){this.Rg[c]=!1;this.Ke=c;this.b.trigger(rc.prototype.D.Eo,this);var m=this.b.trigger(rc.prototype.D.Ho,this),b=this.b.trigger(rc.prototype.D.Go,this);if(m||b)this.oj[c]=!0}};n.Za=function(){return{triggerKey:this.Ke}};n.hb=function(c){this.Ke=c.triggerKey};c.prototype.zs=function(c){return this.Rg[c]};c.prototype.Fo=function(c){return c===this.Ke};c.prototype.Gs=function(){return!0};
c.prototype.Eo=function(){return!0};c.prototype.Ho=function(c){return c===this.Ke};c.prototype.Ms=function(c){return c===this.Ke};c.prototype.Go=function(c){return c===this.Ke};l.D=new c;l.J=new function(){};l.Qa=new function(){}})();function Z(c){this.b=c}
(function(){function c(){if(0===this.fm.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.eh?b.drawImage(this.ya,this.Wg,this.Xg,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.ya,0,0,this.width,this.height);this.fm=a.toDataURL("image/png")}return this.fm}function l(){}function n(a){a[0]=0;a[1]=0;a[2]=0;v.push(a)}function m(a,b){return a<b?""+a+","+b:""+b+","+a}function k(a,b,d,f){b=b.uid;d=d.uid;var c=m(b,d);if(a.hasOwnProperty(c))a[c][2]=
f;else{var e=v.length?v.pop():[0,0,0];e[0]=b;e[1]=d;e[2]=f;a[c]=e}}function q(a,b,d){b=m(b.uid,d.uid);a.hasOwnProperty(b)&&(n(a[b]),delete a[b])}function b(a,b,d){b=m(b.uid,d.uid);if(a.hasOwnProperty(b))return g=a[b][2],!0;g=-2;return!1}function a(){}var f=Z.prototype;f.ka=function(a){this.Ja=a;this.b=a.b};var p=f.ka.prototype;p.N=function(){if(!this.S){var a,b,d,f,e,k,g,m,l;this.rd=[];this.Ph=!1;a=0;for(b=this.ic.length;a<b;a++){e=this.ic[a];g={};g.name=e[0];g.speed=e[1];g.loop=e[2];g.Pn=e[3];g.Qn=
e[4];g.Vq=e[5];g.ja=e[6];g.frames=[];d=0;for(f=e[7].length;d<f;d++)k=e[7][d],m={},m.io=k[0],m.jo=k[1],m.Wg=k[2],m.Xg=k[3],m.width=k[4],m.height=k[5],m.duration=k[6],m.nc=k[7],m.oc=k[8],m.Mm=k[9],m.Vk=k[10],m.Wq=k[11],m.eh=0!==m.width,m.fm="",m.hy=c,l={left:0,top:0,right:1,bottom:1},m.bo=l,m.Na=null,(l=this.b.Uu(k[0]))?m.ya=l:(m.ya=new Image,m.ya.Lt=k[0],m.ya.dp=k[1],m.ya.Ft=null,this.b.Zr(m.ya,k[0])),g.frames.push(m),this.rd.push(m);this.ic[a]=g}}};p.Ur=function(){var a,b,d;a=0;for(b=this.k.length;a<
b;a++)d=this.k[a],d.Nj=d.Xc.Na};p.Qk=function(){if(!this.S){var a,b,d;a=0;for(b=this.rd.length;a<b;++a)d=this.rd[a],d.ya.Ft=null,d.Na=null;this.Ph=!1;this.Ur()}};p.yn=function(){if(!this.S&&this.k.length){var a,b,d;a=0;for(b=this.rd.length;a<b;++a)d=this.rd[a],d.Na=this.b.H.Fk(d.ya,!1,this.b.da,d.Wq);this.Ur()}};p.mn=function(){if(!this.S&&!this.Ph&&this.b.H){var a,b,d;a=0;for(b=this.rd.length;a<b;++a)d=this.rd[a],d.Na=this.b.H.Fk(d.ya,!1,this.b.da,d.Wq);this.Ph=!0}};p.so=function(){if(!this.S&&!this.k.length&&
this.Ph){var a,b,d;a=0;for(b=this.rd.length;a<b;++a)d=this.rd[a],this.b.H.deleteTexture(d.Na),d.Na=null;this.Ph=!1}};var d=[];p.Fn=function(a){var b,f,c;T(d);b=0;for(f=this.rd.length;b<f;++b)c=this.rd[b].ya,-1===d.indexOf(c)&&(a.drawImage(c,0,0),d.push(c))};f.Y=function(a){this.type=a;this.b=a.b;a=this.type.ic[0].frames[0].Vk;this.Fc?this.la.cj(a):this.la=new eb(a)};var e=f.Y.prototype;e.N=function(){this.visible=0===this.C[0];this.Nm=this.Vm=!1;this.Jc=0!==this.C[3];1===this.type.ic.length&&1===
this.type.ic[0].frames.length||0===this.type.ic[0].speed||(this.b.hh(this),this.Vm=!0);this.Pa=this.up(this.C[1])||this.type.ic[0];this.M=this.C[2];0>this.M&&(this.M=0);this.M>=this.Pa.frames.length&&(this.M=this.Pa.frames.length-1);var a=this.Pa.frames[this.M];this.la.cj(a.Vk);this.nc=a.nc;this.oc=a.oc;this.Bh=this.Pa.speed;this.Ye=this.Pa.Qn;this.Fc?this.Od.reset():this.Od=new cb;this.oe=this.Od.T;this.Af=!0;this.he=0;this.zf=!0;this.Jj=this.So="";this.bp=0;this.Xl=-1;this.type.mn();var b,d,f,c,
e,k,g,a=0;for(b=this.type.ic.length;a<b;a++)for(c=this.type.ic[a],d=0,f=c.frames.length;d<f;d++)e=c.frames[d],0===e.width&&(e.width=e.ya.width,e.height=e.ya.height),e.eh&&(g=e.ya,k=e.bo,k.left=e.Wg/g.width,k.top=e.Xg/g.height,k.right=(e.Wg+e.width)/g.width,k.bottom=(e.Xg+e.height)/g.height,0===e.Wg&&0===e.Xg&&e.width===g.width&&e.height===g.height&&(e.eh=!1));this.Xc=this.Pa.frames[this.M];this.Nj=this.Xc.Na};e.Za=function(){var a={a:this.Pa.ja,f:this.M,cas:this.Bh,fs:this.oe,ar:this.he,at:this.Od.T,
rt:this.Ye};this.Af||(a.ap=this.Af);this.zf||(a.af=this.zf);return a};e.hb=function(a){var b=this.Zu(a.a);b&&(this.Pa=b);this.M=a.f;0>this.M&&(this.M=0);this.M>=this.Pa.frames.length&&(this.M=this.Pa.frames.length-1);this.Bh=a.cas;this.oe=a.fs;this.he=a.ar;this.Od.reset();this.Od.T=a.at;this.Af=a.hasOwnProperty("ap")?a.ap:!0;this.zf=a.hasOwnProperty("af")?a.af:!0;a.hasOwnProperty("rt")?this.Ye=a.rt:this.Ye=this.Pa.Qn;this.Xc=this.Pa.frames[this.M];this.Nj=this.Xc.Na;this.la.cj(this.Xc.Vk);this.nc=
this.Xc.nc;this.oc=this.Xc.oc};e.Ol=function(a){this.M=a?0:this.Pa.frames.length-1;this.Af=!1;this.So=this.Pa.name;this.Nm=!0;this.b.trigger(Z.prototype.D.Fs,this);this.b.trigger(Z.prototype.D.Es,this);this.Nm=!1;this.he=0};e.Pl=function(){return this.Od.T};e.Ea=function(){this.Od.add(this.b.Pf(this));this.Jj.length&&this.ip();0<=this.Xl&&this.Qt();var a=this.Od.T,b=this.Pa,d=b.frames[this.M],f=d.duration/this.Bh;this.Af&&a>=this.oe+f&&(this.zf?this.M++:this.M--,this.oe+=f,this.M>=b.frames.length&&
(b.Vq?(this.zf=!1,this.M=b.frames.length-2):b.loop?this.M=this.Ye:(this.he++,this.he>=b.Pn?this.Ol(!1):this.M=this.Ye)),0>this.M&&(b.Vq?(this.M=1,this.zf=!0,b.loop||(this.he++,this.he>=b.Pn&&this.Ol(!0))):b.loop?this.M=this.Ye:(this.he++,this.he>=b.Pn?this.Ol(!0):this.M=this.Ye)),0>this.M?this.M=0:this.M>=b.frames.length&&(this.M=b.frames.length-1),a>this.oe+b.frames[this.M].duration/this.Bh&&(this.oe=a),a=b.frames[this.M],this.yg(d,a),this.b.Ca=!0)};e.up=function(a){var b,d,f;b=0;for(d=this.type.ic.length;b<
d;b++)if(f=this.type.ic[b],kb(f.name,a))return f;return null};e.Zu=function(a){var b,d,f;b=0;for(d=this.type.ic.length;b<d;b++)if(f=this.type.ic[b],f.ja===a)return f;return null};e.ip=function(){var a=this.Pa.frames[this.M],b=this.up(this.Jj);this.Jj="";!b||kb(b.name,this.Pa.name)&&this.Af||(this.Pa=b,this.Bh=b.speed,this.Ye=b.Qn,0>this.M&&(this.M=0),this.M>=this.Pa.frames.length&&(this.M=this.Pa.frames.length-1),1===this.bp&&(this.M=0),this.Af=!0,this.oe=this.Od.T,this.zf=!0,this.yg(a,this.Pa.frames[this.M]),
this.b.Ca=!0)};e.Qt=function(){var a=this.Pa.frames[this.M],b=this.M;this.M=R(this.Xl);0>this.M&&(this.M=0);this.M>=this.Pa.frames.length&&(this.M=this.Pa.frames.length-1);b!==this.M&&(this.yg(a,this.Pa.frames[this.M]),this.oe=this.Od.T,this.b.Ca=!0);this.Xl=-1};e.yg=function(a,b){var d=a.width,f=a.height,c=b.width,e=b.height;d!=c&&(this.width*=c/d);f!=e&&(this.height*=e/f);this.nc=b.nc;this.oc=b.oc;this.la.cj(b.Vk);this.F();this.Xc=b;this.Nj=b.Na;d=0;for(f=this.O.length;d<f;d++)c=this.O[d],c.Lq&&
c.Lq(a,b);this.b.trigger(Z.prototype.D.yg,this)};e.$c=function(a){a.globalAlpha=this.opacity;var b=this.Xc,d=b.eh,f=b.ya,c=this.x,e=this.y,k=this.width,g=this.height;if(0===this.q&&0<=k&&0<=g)c-=this.nc*k,e-=this.oc*g,this.b.Fd&&(c=Math.round(c),e=Math.round(e)),d?a.drawImage(f,b.Wg,b.Xg,b.width,b.height,c,e,k,g):a.drawImage(f,c,e,k,g);else{this.b.Fd&&(c=Math.round(c),e=Math.round(e));a.save();var m=0<k?1:-1,l=0<g?1:-1;a.translate(c,e);1===m&&1===l||a.scale(m,l);a.rotate(this.q*m*l);c=0-this.nc*ja(k);
e=0-this.oc*ja(g);d?a.drawImage(f,b.Wg,b.Xg,b.width,b.height,c,e,ja(k),ja(g)):a.drawImage(f,c,e,ja(k),ja(g));a.restore()}};e.If=function(a){this.Yb(a)};e.Yb=function(a){a.Gc(this.Nj);a.ng(this.opacity);var b=this.Xc,d=this.Mb;if(this.b.Fd){var f=Math.round(this.x)-this.x,c=Math.round(this.y)-this.y;b.eh?a.ae(d.ub+f,d.wb+c,d.Wb+f,d.Xb+c,d.Nb+f,d.Ob+c,d.Kb+f,d.Lb+c,b.bo):a.Xi(d.ub+f,d.wb+c,d.Wb+f,d.Xb+c,d.Nb+f,d.Ob+c,d.Kb+f,d.Lb+c)}else b.eh?a.ae(d.ub,d.wb,d.Wb,d.Xb,d.Nb,d.Ob,d.Kb,d.Lb,b.bo):a.Xi(d.ub,
d.wb,d.Wb,d.Xb,d.Nb,d.Ob,d.Kb,d.Lb)};e.hv=function(a){var b=this.Xc,d,f;d=0;for(f=b.Mm.length;d<f;d++)if(kb(a,b.Mm[d][0]))return d;return-1};e.Ih=function(a,b){var d=this.Xc,f=d.Mm,c;Q(a)?c=this.hv(a):c=a-1;c=R(c);if(0>c||c>=f.length)return b?this.x:this.y;var e=(f[c][1]-d.nc)*this.width,f=f[c][2],f=(f-d.oc)*this.height,d=Math.cos(this.q);c=Math.sin(this.q);var k=e*d-f*c,f=f*d+e*c,e=k+this.x,f=f+this.y;return b?e:f};var v=[],g=-2,I=[];l.prototype.Is=function(a){if(!a)return!1;var d=this.b,f=d.Hh(),
c=f.type,e=null;f.L.collmemory?e=f.L.collmemory:(e={},f.L.collmemory=e);f.L.spriteCreatedDestroyCallback||(f.L.spriteCreatedDestroyCallback=!0,d.yj(function(a){var b=f.L.collmemory;a=a.uid;var d,c;for(d in b)b.hasOwnProperty(d)&&(c=b[d],c[0]===a||c[1]===a)&&(n(b[d]),delete b[d])}));var m=c.ma(),l=a.ma(),m=m.lc(),p,v,E,A,K,B,t,W=this.b.md,w=W-1,u=d.Eb().jc;for(v=0;v<m.length;v++){E=m[v];l.xa?(E.Ha(),this.b.wp(E.n,a,E.Oa,I),p=I):p=l.lc();for(A=0;A<p.length;A++)K=p[A],d.ec(E,K)||d.It(E,K)?(B=b(e,E,K),
B=!B||g<w,k(e,E,K,W),B&&(d.$k(u.Ga),B=c.ma(),t=a.ma(),B.xa=!1,t.xa=!1,c===a?(B.k.length=2,B.k[0]=E,B.k[1]=K,c.Pd()):(B.k.length=1,t.k.length=1,B.k[0]=E,t.k[0]=K,c.Pd(),a.Pd()),u.Ew(),d.mg(u.Ga))):q(e,E,K);T(I)}return!1};var E=new ba,A=!1;new ta(0,0,0,0);p.finish=function(a){if(A){if(a){var b=this.b.Eb().jc.Dd;a=null.ma();var d=E.nd(),f,c;if(a.xa){a.xa=!1;T(a.k);f=0;for(c=d.length;f<c;++f)a.k[f]=d[f];if(b)for(T(a.ca),f=0,c=null.k.length;f<c;++f)d=null.k[f],E.contains(d)||a.ca.push(d)}else if(b)for(b=
a.k.length,f=0,c=d.length;f<c;++f)a.k[b+f]=d[f],Ca(a.ca,d[f]);else za(a.k,d);null.Pd()}E.clear();A=!1}};l.prototype.Es=function(a){return kb(this.So,a)};l.prototype.Fs=function(){return!0};l.prototype.yg=function(){return!0};f.D=new l;a.prototype.ht=function(a,b,d){if(a&&b&&(b=this.b.ep(a,b,this.Ih(d,!0),this.Ih(d,!1)))){"undefined"!==typeof b.q&&(b.q=this.q,b.F());this.b.zd++;var f,c,e;this.b.trigger(Object.getPrototypeOf(a.Ja).D.vj,b);if(b.zc)for(f=0,c=b.siblings.length;f<c;f++)e=b.siblings[f],
this.b.trigger(Object.getPrototypeOf(e.type.Ja).D.vj,e);this.b.zd--;f=this.b.bv();d=!1;if(ea(f.L.Spawn_LastExec)||f.L.Spawn_LastExec<this.b.Nf)d=!0,f.L.Spawn_LastExec=this.b.Nf;if(a!=this.type&&(a=a.ma(),a.xa=!1,d?(T(a.k),a.k[0]=b):a.k.push(b),b.zc))for(f=0,c=b.siblings.length;f<c;f++)e=b.siblings[f],a=e.type.ma(),a.xa=!1,d?(T(a.k),a.k[0]=e):a.k.push(e)}};a.prototype.Ts=function(a,b){this.Jj=a;this.bp=b;this.Vm||(this.b.hh(this),this.Vm=!0);this.Nm||this.ip()};a.prototype.$s=function(a){a=ja(this.width)*
(0===a?-1:1);this.width!==a&&(this.width=a,this.F())};a.prototype.Vs=function(a){this.Jc!==(0!==a)&&((this.Jc=0!==a)?this.F():(this.Vc.right>=this.Vc.left&&this.type.vh.update(this,this.Vc,null),this.Vc.set(0,0,-1,-1)))};f.J=new a;f.Qa=new function(){}})();function sc(c){this.b=c}
(function(){function c(){return a.length?a.pop():{}}function l(b){var c,d;c=0;for(d=b.length;c<d;c++)a.push(b[c]);T(b)}function n(a){return a.length&&" "===a.charAt(a.length-1)?a.substring(0,a.length-1):a}function m(){}var k=sc.prototype;k.N=function(){k.J.Po=function(a){this.width!==a&&(this.width=a,this.tg=!0,this.F())}};k.ka=function(a){this.Ja=a;this.b=a.b};var q=k.ka.prototype;q.N=function(){};q.Qk=function(){if(!this.S){var a,b,d;a=0;for(b=this.k.length;a<b;a++)d=this.k[a],d.Yd=null,d.kg=null,
d.Cc=null}};k.Y=function(a){this.type=a;this.b=a.b;this.Fc?T(this.kf):this.kf=[];this.tg=!0};q=k.Y.prototype;q.N=function(){this.text=this.C[0];this.visible=0===this.C[1];this.font=this.C[2];this.color=this.C[3];this.kk=this.C[4];this.Al=this.C[5];this.Ao=0===this.C[7];this.gn=this.yk=this.width;this.xk=this.height;this.jn=this.C[8];this.ck=this.Dg="";this.Hr=this.Ir=this.Vi=0;this.jw();this.Cc=this.kg=this.Yd=null;this.Bq=!1;this.ti=this.b.md;this.Fc?this.tf.set(0,0,1,1):this.tf=new ta(0,0,1,1);
this.b.H&&this.b.hh(this)};q.jw=function(){var a=this.font.split(" "),b;for(b=0;b<a.length;b++)if("pt"===a[b].substr(a[b].length-2,2)){this.Vi=parseInt(a[b].substr(0,a[b].length-2));this.Kn=Math.ceil(this.Vi/72*96)+4;0<b&&(this.ck=a[b-1]);this.Dg=a[b+1];for(b+=2;b<a.length;b++)this.Dg+=" "+a[b];break}};q.Za=function(){return{t:this.text,f:this.font,c:this.color,ha:this.kk,va:this.Al,wr:this.Ao,lho:this.jn,fn:this.Dg,fs:this.ck,ps:this.Vi,pxh:this.Kn,tw:this.Ir,th:this.Hr,lrt:this.ti}};q.hb=function(a){this.text=
a.t;this.font=a.f;this.color=a.c;this.kk=a.ha;this.Al=a.va;this.Ao=a.wr;this.jn=a.lho;this.Dg=a.fn;this.ck=a.fs;this.Vi=a.ps;this.Kn=a.pxh;this.Ir=a.tw;this.Hr=a.th;this.ti=a.lrt;this.tg=!0;this.gn=this.yk=this.width;this.xk=this.height};q.Ea=function(){if(this.b.H&&this.Cc&&300<=this.b.md-this.ti){var a=this.n;this.Ha();var b=this.Oa;if(b.right<a.La||b.bottom<a.Ma||b.left>a.Va||b.top>a.Ua)this.b.H.deleteTexture(this.Cc),this.Yd=this.kg=this.Cc=null}};q.Cd=function(){this.Yd=this.kg=null;this.b.H&&
this.Cc&&this.b.H.deleteTexture(this.Cc);this.Cc=null};q.Pl=function(){this.font=this.ck+" "+this.Vi.toString()+"pt "+this.Dg;this.tg=!0;this.b.Ca=!0};q.$c=function(a,b){a.font=this.font;a.textBaseline="top";a.fillStyle=this.color;a.globalAlpha=b?1:this.opacity;var d=1;b&&(d=this.n.mc(),a.save(),a.scale(d,d));if(this.tg||this.width!==this.gn)this.type.Ja.ot(this.text,this.kf,a,this.width,this.Ao),this.tg=!1,this.gn=this.width;this.Ha();var d=b?0:this.Mb.ub,c=b?0:this.Mb.wb;this.b.Fd&&(d=d+.5|0,c=
c+.5|0);0===this.q||b||(a.save(),a.translate(d,c),a.rotate(this.q),c=d=0);var k=c+this.height,g=this.Kn,g=g+this.jn,m,l;1===this.Al?c+=Math.max(this.height/2-this.kf.length*g/2,0):2===this.Al&&(c+=Math.max(this.height-this.kf.length*g-2,0));for(l=0;l<this.kf.length&&!(m=d,1===this.kk?m=d+(this.width-this.kf[l].width)/2:2===this.kk&&(m=d+(this.width-this.kf[l].width)),a.fillText(this.kf[l].text,m,c),c+=g,c>=k-g);l++);(0!==this.q||b)&&a.restore();this.ti=this.b.md};q.Yb=function(a){if(!(1>this.width||
1>this.height)){var b=this.tg||this.Bq;this.Bq=!1;var d=this.n.mc(),c=this.n.ab(),k=this.tf,g=d*this.width,m=d*this.height,l=Math.ceil(g),n=Math.ceil(m),h=this.b.R/2,q=this.b.P/2;this.kg||(this.Yd=document.createElement("canvas"),this.Yd.width=l,this.Yd.height=n,this.yk=l,this.xk=n,b=!0,this.kg=this.Yd.getContext("2d"));if(l!==this.yk||n!==this.xk)this.Yd.width=l,this.Yd.height=n,this.Cc&&(a.deleteTexture(this.Cc),this.Cc=null),b=!0;b&&(this.kg.clearRect(0,0,l,n),this.$c(this.kg,!0),this.Cc||(this.Cc=
a.Kc(l,n,this.b.da,this.b.Xf)),a.gx(this.Yd,this.Cc,this.b.Xf));this.yk=l;this.xk=n;a.Gc(this.Cc);a.ng(this.opacity);a.hd();a.translate(-h,-q);a.Rc();var x=this.Mb,b=this.n.wa(x.ub,x.wb,!0,!0),h=this.n.wa(x.ub,x.wb,!1,!0),q=this.n.wa(x.Wb,x.Xb,!0,!0),C=this.n.wa(x.Wb,x.Xb,!1,!0),G=this.n.wa(x.Nb,x.Ob,!0,!0),P=this.n.wa(x.Nb,x.Ob,!1,!0),N=this.n.wa(x.Kb,x.Lb,!0,!0),x=this.n.wa(x.Kb,x.Lb,!1,!0);if(this.b.Fd||0===this.q&&0===c)var F=(b+.5|0)-b,z=(h+.5|0)-h,b=b+F,h=h+z,q=q+F,C=C+z,G=G+F,P=P+z,N=N+F,x=
x+z;0===this.q&&0===c?(q=b+l,C=h,G=q,P=h+n,N=b,x=P,k.right=1,k.bottom=1):(k.right=g/l,k.bottom=m/n);a.ae(b,h,q,C,G,P,N,x,k);a.hd();a.scale(d,d);a.el(-this.n.ab());a.translate((this.n.La+this.n.Va)/-2,(this.n.Ma+this.n.Ua)/-2);a.Rc();this.ti=this.b.md}};var b=[];k.kt=function(a){T(b);for(var c="",d,e=0;e<a.length;)if(d=a.charAt(e),"\n"===d)c.length&&(b.push(c),c=""),b.push("\n"),++e;else if(" "===d||"\t"===d||"-"===d){do c+=a.charAt(e),e++;while(e<a.length&&(" "===a.charAt(e)||"\t"===a.charAt(e)));
b.push(c);c=""}else e<a.length&&(c+=d,e++);c.length&&b.push(c)};var a=[];k.ot=function(a,b,d,e,k){if(a&&a.length)if(2>=e)l(b);else{if(100>=a.length&&-1===a.indexOf("\n")){var g=d.measureText(a).width;if(g<=e){l(b);b.push(c());b[0].text=a;b[0].width=g;return}}this.pt(a,b,d,e,k)}else l(b)};k.pt=function(f,k,d,e,m){m&&(this.kt(f),f=b);var g="",l,q,A,h=0;for(A=0;A<f.length;A++)"\n"===f[A]?(h>=k.length&&k.push(c()),g=n(g),q=k[h],q.text=g,q.width=d.measureText(g).width,h++,g=""):(l=g,g+=f[A],q=d.measureText(g).width,
q>=e&&(h>=k.length&&k.push(c()),l=n(l),q=k[h],q.text=l,q.width=d.measureText(l).width,h++,g=f[A],m||" "!==g||(g="")));g.length&&(h>=k.length&&k.push(c()),g=n(g),q=k[h],q.text=g,q.width=d.measureText(g).width,h++);for(A=h;A<k.length;A++)a.push(k[A]);k.length=h};k.D=new function(){};m.prototype.No=function(a){fa(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.tg=!0,this.b.Ca=!0)};k.J=new m;k.Qa=new function(){}})();function tc(c){this.b=c}
(function(){var c=tc.prototype;c.ka=function(c){this.Ja=c;this.b=c.b};var l=c.ka.prototype;l.N=function(){this.S||(this.ya=new Image,this.ya.dp=this.jo,this.b.Zr(this.ya,this.io),this.Na=this.pattern=null)};l.Qk=function(){this.S||(this.Na=null)};l.yn=function(){if(!this.S&&this.k.length){this.Na||(this.Na=this.b.H.Fk(this.ya,!0,this.b.da,this.ko));var c,m;c=0;for(m=this.k.length;c<m;c++)this.k[c].Na=this.Na}};l.mn=function(){this.S||this.Na||!this.b.H||(this.Na=this.b.H.Fk(this.ya,!0,this.b.da,this.ko))};
l.so=function(){this.S||this.k.length||!this.Na||(this.b.H.deleteTexture(this.Na),this.Na=null)};l.Fn=function(c){c.drawImage(this.ya,0,0)};c.Y=function(c){this.type=c;this.b=c.b};l=c.Y.prototype;l.N=function(){this.visible=0===this.C[0];this.tf=new ta(0,0,0,0);this.Fp=!1;this.ya=this.type.ya;this.b.H?(this.type.mn(),this.Na=this.type.Na):(this.type.pattern||(this.type.pattern=this.b.Aa.createPattern(this.type.ya,"repeat")),this.pattern=this.type.pattern)};l.qd=function(){this.Fp=!1;this.ya=this.type.ya};
l.Cd=function(){this.b.H&&this.Fp&&this.Na&&(this.b.H.deleteTexture(this.Na),this.Na=null)};l.$c=function(c){c.globalAlpha=this.opacity;c.save();c.fillStyle=this.pattern;var m=this.x,k=this.y;this.b.Fd&&(m=Math.round(m),k=Math.round(k));var l=-(this.nc*this.width),b=-(this.oc*this.height),a=l%this.ya.width,f=b%this.ya.height;0>a&&(a+=this.ya.width);0>f&&(f+=this.ya.height);c.translate(m,k);c.rotate(this.q);c.translate(a,f);c.fillRect(l-a,b-f,this.width,this.height);c.restore()};l.If=function(c){this.Yb(c)};
l.Yb=function(c){c.Gc(this.Na);c.ng(this.opacity);var m=this.tf;m.right=this.width/this.ya.width;m.bottom=this.height/this.ya.height;var k=this.Mb;if(this.b.Fd){var l=Math.round(this.x)-this.x,b=Math.round(this.y)-this.y;c.ae(k.ub+l,k.wb+b,k.Wb+l,k.Xb+b,k.Nb+l,k.Ob+b,k.Kb+l,k.Lb+b,m)}else c.ae(k.ub,k.wb,k.Wb,k.Xb,k.Nb,k.Ob,k.Kb,k.Lb,m)};c.D=new function(){};c.J=new function(){};c.Qa=new function(){}})();function uc(c){this.b=c}
(function(){function c(){}function l(){}var n=uc.prototype;n.ka=function(c){this.Ja=c;this.b=c.b};n.ka.prototype.N=function(){};n.Y=function(c){this.type=c;this.b=c.b};var m=n.Y.prototype;m.N=function(){this.b.Da?y("[Construct 2] Progress Bar plugin not supported on this platform - the object will not be created"):(this.I=document.createElement("progress"),this.value=this.C[0],this.max=this.C[1],0<this.max&&0<=this.value&&(this.I.max=this.max,this.I.value=this.value),this.I.id=this.C[4],this.I.title=
this.C[2],jQuery(this.I).appendTo(this.b.Ag?this.b.Ag:"body"),this.kc=!1,0===this.C[3]&&(jQuery(this.I).hide(),this.visible=!1,this.kc=!0),this.I.onclick=function(c){return function(m){m.stopPropagation();c.b.Wd=!0;c.b.trigger(uc.prototype.D.uj,c);c.b.Wd=!1}}(this),this.I.addEventListener("touchstart",function(c){c.stopPropagation()},!1),this.I.addEventListener("touchmove",function(c){c.stopPropagation()},!1),this.I.addEventListener("touchend",function(c){c.stopPropagation()},!1),jQuery(this.I).mousedown(function(c){c.stopPropagation()}),
jQuery(this.I).mouseup(function(c){c.stopPropagation()}),this.pi=this.qi=this.ji=this.ni=this.oi=this.li=0,this.mj(!0),this.b.hh(this))};m.Za=function(){return{v:this.I.value,m:this.I.max}};m.hb=function(c){this.I.value=c.v;this.I.max=c.m};m.Cd=function(){this.b.Da||(jQuery(this.I).remove(),this.I=null)};m.Ea=function(){this.mj()};m.mj=function(c){if(!this.b.Da){var m=this.n.wa(this.x,this.y,!0),b=this.n.wa(this.x,this.y,!1),a=this.n.wa(this.x+this.width,this.y+this.height,!0),f=this.n.wa(this.x+
this.width,this.y+this.height,!1),l=this.b.width/this.b.devicePixelRatio,d=this.b.height/this.b.devicePixelRatio;!this.visible||!this.n.visible||0>=a||0>=f||m>=l||b>=d?(this.kc||jQuery(this.I).hide(),this.kc=!0):(1>m&&(m=1),1>b&&(b=1),a>=l&&(a=l-1),f>=d&&(f=d-1),l=window.innerWidth,d=window.innerHeight,c||this.li!==m||this.oi!==b||this.ni!==a||this.ji!==f||this.qi!==l||this.pi!==d?(this.li=m,this.oi=b,this.ni=a,this.ji=f,this.qi=l,this.pi=d,this.kc&&(jQuery(this.I).show(),this.kc=!1),c=Math.round(m)+
jQuery(this.b.canvas).offset().left,l=Math.round(b)+jQuery(this.b.canvas).offset().top,jQuery(this.I).css("position","absolute"),jQuery(this.I).offset({left:c,top:l}),jQuery(this.I).width(Math.round(a-m)),jQuery(this.I).height(Math.round(f-b))):this.kc&&(jQuery(this.I).show(),this.kc=!1))}};m.$c=function(){};m.Yb=function(){};c.prototype.uj=function(){return!0};n.D=new c;l.prototype.Il=function(c){this.b.Da||(this.visible=0!==c)};l.prototype.dt=function(c){this.b.Da||(this.value=c,this.I.max=this.max,
this.I.value=this.value)};n.J=new l;n.Qa=new function(){}})();function vc(c){this.b=c}
(function(){function c(){}var l=vc.prototype;l.ka=function(c){this.behavior=c;this.b=c.b};l.ka.prototype.N=function(){};l.Y=function(c,k){this.type=c;this.behavior=c.behavior;this.j=k;this.b=c.b};var n=l.Y.prototype;n.N=function(){var c=this.C[0];this.Ba=this.C[1];this.Zb=this.C[2];this.Dt=0!==this.C[3];this.Xn=0!==this.C[4];this.A=Math.cos(this.j.q)*c;this.B=Math.sin(this.j.q)*c;this.zk=this.j.x;this.Ak=this.j.y;this.cd=this.j.q;this.tl=0;this.enabled=0!==this.C[5]};n.Za=function(){return{acc:this.Ba,
g:this.Zb,dx:this.A,dy:this.B,lx:this.zk,ly:this.Ak,lka:this.cd,t:this.tl,e:this.enabled}};n.hb=function(c){this.Ba=c.acc;this.Zb=c.g;this.A=c.dx;this.B=c.dy;this.zk=c.lx;this.Ak=c.ly;this.cd=c.lka;this.tl=c.t;this.enabled=c.e};n.Ea=function(){if(this.enabled){var c=this.b.Pf(this.j),k,l;this.j.q!==this.cd&&(this.Xn&&(k=Ra(0,0,this.A,this.B),this.A=Math.cos(this.j.q)*k,this.B=Math.sin(this.j.q)*k),this.cd=this.j.q);0!==this.Ba&&(k=Ra(0,0,this.A,this.B),l=0===this.A&&0===this.B?this.j.q:La(0,0,this.A,
this.B),k+=this.Ba*c,0>k&&(k=0),this.A=Math.cos(l)*k,this.B=Math.sin(l)*k);0!==this.Zb&&(this.B+=this.Zb*c);this.zk=this.j.x;this.Ak=this.j.y;if(0!==this.A||0!==this.B)if(this.j.x+=this.A*c,this.j.y+=this.B*c,this.tl+=Ra(0,0,this.A*c,this.B*c),this.Xn&&(this.j.q=La(0,0,this.A,this.B),this.j.F(),this.cd=this.j.q),this.j.F(),this.Dt&&(k=this.b.Ka(this.j)))this.b.be(this.j,k),k=Ra(0,0,this.A,this.B),l=this.b.Gt(this.j,this.zk,this.Ak),this.A=Math.cos(l)*k,this.B=Math.sin(l)*k,this.j.x+=this.A*c,this.j.y+=
this.B*c,this.j.F(),this.Xn&&(this.cd=this.j.q=l,this.j.F()),this.b.Pc(this.j,this.A/k,this.B/k,Math.max(2.5*k*c,30))||this.b.Jn(this.j,100)}};l.D=new function(){};c.prototype.Hl=function(c){this.Ba=c};c.prototype.Lo=function(c){this.Zb=c};l.J=new c;l.Qa=new function(){}})();function wc(c){this.b=c}
(function(){function c(){}var l=wc.prototype;l.ka=function(c){this.behavior=c;this.b=c.b};l.ka.prototype.N=function(){};l.Y=function(c,k){this.type=c;this.behavior=c.behavior;this.j=k;this.b=c.b;this.Ge=this.Fe=this.ll=this.ml=this.pe=this.Jd=this.Bd=this.Dh=this.nj=!1;this.cn=this.bn=this.an=this.dn=-1;this.B=this.A=0};var n=l.Y.prototype;n.N=function(){this.ed=this.C[0];this.Ba=this.C[1];this.Qb=this.C[2];this.jm=this.C[3];this.Nl=this.C[4];this.hm=1===this.C[5];this.enabled=0!==this.C[6];this.hm&&
!this.b.Da&&(jQuery(document).keydown(function(c){return function(k){c.Oi(k)}}(this)),jQuery(document).keyup(function(c){return function(k){c.Pi(k)}}(this)))};n.Za=function(){return{dx:this.A,dy:this.B,enabled:this.enabled,maxspeed:this.ed,acc:this.Ba,dec:this.Qb,ignoreInput:this.pe}};n.hb=function(c){this.A=c.dx;this.B=c.dy;this.enabled=c.enabled;this.ed=c.maxspeed;this.Ba=c.acc;this.Qb=c.dec;this.pe=c.ignoreInput;this.Ge=this.Fe=this.ll=this.ml=this.Jd=this.Bd=this.Dh=this.nj=!1;this.cn=this.bn=
this.an=this.dn=-1};n.Oi=function(c){var k=this.b.md;switch(c.which){case 37:c.preventDefault();this.bn<k&&(this.Bd=!0);break;case 38:c.preventDefault();this.dn<k&&(this.nj=!0);break;case 39:c.preventDefault();this.cn<k&&(this.Jd=!0);break;case 40:c.preventDefault(),this.an<k&&(this.Dh=!0)}};n.Pi=function(c){var k=this.b.md;switch(c.which){case 37:c.preventDefault();this.Bd=!1;this.bn=k;break;case 38:c.preventDefault();this.nj=!1;this.dn=k;break;case 39:c.preventDefault();this.Jd=!1;this.cn=k;break;
case 40:c.preventDefault(),this.Dh=!1,this.an=k}};n.qf=function(){this.Jd=this.Bd=this.Dh=this.nj=!1};n.Ea=function(){var c=this.b.Pf(this.j),k=this.Bd||this.Fe,l=this.Jd||this.Ge,b=this.nj||this.ml,a=this.Dh||this.ll;this.ll=this.ml=this.Ge=this.Fe=!1;if(this.enabled){var f=this.b.Ka(this.j);if(f&&(this.b.be(this.j,f),!this.b.Jn(this.j)))return;this.pe&&(a=b=l=k=!1);0===this.jm?l=k=!1:1===this.jm&&(a=b=!1);2===this.jm&&(b||a)&&(l=k=!1);k==l&&(0>this.A?(this.A+=this.Qb*c,0<this.A&&(this.A=0)):0<this.A&&
(this.A-=this.Qb*c,0>this.A&&(this.A=0)));b==a&&(0>this.B?(this.B+=this.Qb*c,0<this.B&&(this.B=0)):0<this.B&&(this.B-=this.Qb*c,0>this.B&&(this.B=0)));k&&!l&&(this.A=0<this.A?this.A-(this.Ba+this.Qb)*c:this.A-this.Ba*c);l&&!k&&(this.A=0>this.A?this.A+(this.Ba+this.Qb)*c:this.A+this.Ba*c);b&&!a&&(this.B=0<this.B?this.B-(this.Ba+this.Qb)*c:this.B-this.Ba*c);a&&!b&&(this.B=0>this.B?this.B+(this.Ba+this.Qb)*c:this.B+this.Ba*c);if(0!==this.A||0!==this.B){Math.sqrt(this.A*this.A+this.B*this.B)>this.ed&&
(f=Math.atan2(this.B,this.A),this.A=this.ed*Math.cos(f),this.B=this.ed*Math.sin(f));l=this.j.x;b=this.j.y;k=this.j.q;this.j.x+=this.A*c;this.j.F();if(f=this.b.Ka(this.j))this.j.x=l,this.A=0,this.j.F(),this.b.be(this.j,f);this.j.y+=this.B*c;this.j.F();if(f=this.b.Ka(this.j))this.j.y=b,this.B=0,this.j.F(),this.b.be(this.j,f);c=jb(this.A);f=jb(this.B);if(0!==c||0!==f)1===this.Nl?this.j.q=Ka(90*Math.round(Ea(Math.atan2(f,c))/90)):2===this.Nl?this.j.q=Ka(45*Math.round(Ea(Math.atan2(f,c))/45)):3===this.Nl&&
(this.j.q=Math.atan2(f,c));this.j.F();this.j.q!=k&&(f=this.b.Ka(this.j))&&(this.j.q=k,this.j.F(),this.b.be(this.j,f))}}};l.D=new function(){};c.prototype.Mo=function(c){this.pe=c};c.prototype.Hl=function(c){this.Ba=c;0>this.Ba&&(this.Ba=0)};c.prototype.Jl=function(c){switch(c){case 0:this.Fe=!0;break;case 1:this.Ge=!0;break;case 2:this.ml=!0;break;case 3:this.ll=!0}};c.prototype.Oo=function(c){this.B=c};l.J=new c;l.Qa=new function(){}})();function xc(c){this.b=c}
(function(){function c(){}function l(){}var n=xc.prototype;n.ka=function(a){this.behavior=a;this.b=a.b};var m=n.ka.prototype;m.N=function(){this.pf=[]};m.Tu=function(a){var b,d,c;b=0;for(d=a.O.length;b<d;++b)if(c=a.O[b],c instanceof xc.prototype.Y&&c.type===this)return c;return null};n.Y=function(a,b){this.type=a;this.behavior=a.behavior;this.j=b;this.b=a.b};m=n.Y.prototype;m.N=function(){this.ew=this.C[0];this.Mn=this.C[1];this.$l=X(this.C[2]);this.Wr=0!==this.C[3]};m.Cd=function(){};m.Za=function(){var a=
{r:this.Mn,c:this.$l,t:[]},b,d;b=0;for(d=this.type.pf.length;b<d;b++)a.t.push(this.type.pf[b].ja);return a};m.hb=function(a){this.Mn=a.r;this.$l=a.c;T(this.type.pf);var b,d,c;b=0;for(d=a.t.length;b<d;b++)(c=this.b.Jh(a.t[b]))&&this.type.pf.push(c)};m.Ea=function(){};var k=[],q=new ta(0,0,0,0);m.Lv=function(a,b){var d=this.j.x,c=this.j.y,l=this.j.q;0>this.j.width&&(l+=Math.PI);if(Ra(d,c,a,b)>this.Mn||Ma(l,La(d,c,a,b))>this.$l/2)return!1;var g,m;q.set(d,c,a,b);q.normalize();if(0===this.ew)for(this.Wr?
this.b.Bp(this.j.n,q,k):(l=this.b.eo)&&Aa(k,l.Ji.nd()),l=0,g=k.length;l<g;++l){if(m=k[l],m.L.solidEnabled&&m!==this.j&&this.b.Fr(d,c,a,b,m))return T(k),!1}else{if(this.Wr)this.b.Em(this.j.n,this.type.pf,q,k);else for(l=0,g=this.type.pf.length;l<g;++l)Aa(k,this.type.pf[l].k);l=0;for(g=k.length;l<g;++l)if(m=k[l],m!==this.j&&this.b.Fr(d,c,a,b,m))return T(k),!1}T(k);return!0};var b=new ba,a=new ba;c.prototype.ts=function(c){if(!c)return!1;var k,d,e,l,g,m,n,q,h=this.b.cv().ma();c=c.ma();var r=h.lc(),x=
c.lc();h.xa&&T(h.ca);c.xa&&T(c.ca);var C=this.b.Hh().ok;k=0;for(e=r.length;k<e;++k){g=r[k];q=!1;m=this.Tu(g);d=0;for(l=x.length;d<l;++d)n=x[d],g!==n&&Wa(m.Lv(n.x,n.y),C)&&(q=!0,a.add(n));q&&b.add(g)}k=b.nd();d=a.nd();h.xa=!1;c.xa=!1;za(h.k,k);za(c.k,d);b.clear();a.clear();return h.Jm()};n.D=new c;l.prototype.bs=function(a){var b=this.type.pf;if(-1===b.indexOf(a)){var d,c,k;d=0;for(c=b.length;d<c;d++)if(k=b[d],k.S&&-1!==k.jg.indexOf(a))return;b.push(a)}};n.J=new l;n.Qa=new function(){}})();
function yc(c){this.b=c}
(function(){function c(){}var l=yc.prototype;l.ka=function(c){this.behavior=c;this.b=c.b};l.ka.prototype.N=function(){};l.Y=function(c,k){this.type=c;this.behavior=c.behavior;this.j=k;this.b=c.b};var n=l.Y.prototype;n.N=function(){this.tb=null;this.Tk=-1;this.mode=this.cd=this.lo=this.Ii=this.sf=this.Sk=0;var c=this;this.Fc||(this.Hi=function(k){c.Ni(k)});this.b.yj(this.Hi)};n.Za=function(){return{uid:this.tb?this.tb.uid:-1,pa:this.Sk,pd:this.sf,msa:this.Ii,tsa:this.lo,lka:this.cd,m:this.mode}};n.hb=
function(c){this.Tk=c.uid;this.Sk=c.pa;this.sf=c.pd;this.Ii=c.msa;this.lo=c.tsa;this.cd=c.lka;this.mode=c.m};n.qd=function(){-1===this.Tk?this.tb=null:this.tb=this.b.Rf(this.Tk);this.Tk=-1};n.Ni=function(c){this.tb==c&&(this.tb=null)};n.Cd=function(){this.tb=null;this.b.fr(this.Hi)};n.Ea=function(){};n.lj=function(){if(this.tb){this.cd!==this.j.q&&(this.Ii=Ga(this.Ii+(this.j.q-this.cd)));var c=this.j.x,k=this.j.y;if(3===this.mode||4===this.mode){var l=Ra(this.j.x,this.j.y,this.tb.x,this.tb.y);if(l>
this.sf||4===this.mode&&l<this.sf)k=La(this.tb.x,this.tb.y,this.j.x,this.j.y),c=this.tb.x+Math.cos(k)*this.sf,k=this.tb.y+Math.sin(k)*this.sf}else c=this.tb.x+Math.cos(this.tb.q+this.Sk)*this.sf,k=this.tb.y+Math.sin(this.tb.q+this.Sk)*this.sf;this.cd=l=Ga(this.Ii+(this.tb.q-this.lo));0!==this.mode&&1!==this.mode&&3!==this.mode&&4!==this.mode||this.j.x===c&&this.j.y===k||(this.j.x=c,this.j.y=k,this.j.F());0!==this.mode&&2!==this.mode||this.j.q===l||(this.j.q=l,this.j.F())}};l.D=new function(){};c.prototype.lt=
function(){this.tb=null};l.J=new c;l.Qa=new function(){}})();function Ac(c){this.b=c}
(function(){function c(){}function l(){}var n=Ac.prototype;n.ka=function(c){this.behavior=c;this.b=c.b};n.ka.prototype.N=function(){};n.Y=function(c,l){this.type=c;this.behavior=c.behavior;this.j=l;this.b=c.b;this.gj=this.Ge=this.Fe=this.pe=this.uh=this.Ch=this.Pg=this.Qg=this.Jd=this.Bd=!1;this.Tb=null;this.kn=-1;this.ag=this.$f=0;this.bk=!1;this.cf=this.sd=0;this.ak=!0;this.B=this.A=0};var m=n.Y.prototype;m.wl=function(){this.Ra=Math.cos(this.df);this.Sa=Math.sin(this.df);this.Be=Math.cos(this.df-
Math.PI/2);this.Ce=Math.sin(this.df-Math.PI/2);this.Ra=jb(this.Ra);this.Sa=jb(this.Sa);this.Be=jb(this.Be);this.Ce=jb(this.Ce);this.fk=this.Zb;0>this.Zb&&(this.Ra*=-1,this.Sa*=-1,this.Zb=Math.abs(this.Zb))};m.N=function(){this.ed=this.C[0];this.Ba=this.C[1];this.Qb=this.C[2];this.gi=this.C[3];this.fk=this.Zb=this.C[4];this.ig=this.C[5];this.lm=0!==this.C[6];this.Ym=this.C[7]/1E3;this.hm=1===this.C[8];this.enabled=0!==this.C[9];this.nh=!1;this.oh=this.b.ge(this.j);this.ln=-1;this.sg=0;this.df=X(90);
this.wl();var c=this;this.hm&&!this.b.Da&&(jQuery(document).keydown(function(l){c.Oi(l)}),jQuery(document).keyup(function(l){c.Pi(l)}));this.Fc||(this.Hi=function(l){c.Ni(l)});this.b.yj(this.Hi);this.j.L.isPlatformBehavior=!0};m.Za=function(){return{ii:this.pe,lfx:this.$f,lfy:this.ag,lfo:this.Tb?this.Tb.uid:-1,am:this.sd,en:this.enabled,fall:this.cf,ft:this.ak,dx:this.A,dy:this.B,ms:this.ed,acc:this.Ba,dec:this.Qb,js:this.gi,g:this.Zb,g1:this.fk,mf:this.ig,wof:this.nh,woj:this.oh?this.oh.uid:-1,ga:this.df,
edj:this.lm,cdj:this.uh,dj:this.Ch,sus:this.Ym}};m.hb=function(c){this.pe=c.ii;this.$f=c.lfx;this.ag=c.lfy;this.kn=c.lfo;this.sd=c.am;this.enabled=c.en;this.cf=c.fall;this.ak=c.ft;this.A=c.dx;this.B=c.dy;this.ed=c.ms;this.Ba=c.acc;this.Qb=c.dec;this.gi=c.js;this.Zb=c.g;this.fk=c.g1;this.ig=c.mf;this.nh=c.wof;this.ln=c.woj;this.df=c.ga;this.lm=c.edj;this.uh=c.cdj;this.Ch=c.dj;this.Ym=c.sus;this.gj=this.Ge=this.Fe=this.Pg=this.Qg=this.Jd=this.Bd=!1;this.sg=0;this.wl()};m.qd=function(){-1===this.kn?
this.Tb=null:this.Tb=this.b.Rf(this.kn);-1===this.ln?this.oh=null:this.oh=this.b.Rf(this.ln)};m.Ni=function(c){this.Tb==c&&(this.Tb=null)};m.Cd=function(){this.Tb=null;this.b.fr(this.Hi)};m.Oi=function(c){switch(c.which){case 38:c.preventDefault();this.Qg=!0;break;case 37:c.preventDefault();this.Bd=!0;break;case 39:c.preventDefault(),this.Jd=!0}};m.Pi=function(c){switch(c.which){case 38:c.preventDefault();this.Pg=this.Qg=!1;break;case 37:c.preventDefault();this.Bd=!1;break;case 39:c.preventDefault(),
this.Jd=!1}};m.qf=function(){this.Qg=this.Jd=this.Bd=!1};m.Pl=function(){return 0>this.Zb?-1:1};m.Rp=function(){var c=null,l=null,b,a;b=this.j.x;a=this.j.y;this.j.x+=this.Ra;this.j.y+=this.Sa;this.j.F();if(this.Tb&&this.b.ec(this.j,this.Tb))return this.j.x=b,this.j.y=a,this.j.F(),this.Tb;(c=this.b.Ka(this.j))||0!==this.cf||(l=this.b.ge(this.j,!0));this.j.x=b;this.j.y=a;this.j.F();if(c){if(this.b.ec(this.j,c))return null;this.bk=!1;return c}if(l&&l.length){a=c=0;for(b=l.length;c<b;c++)l[a]=l[c],this.b.ec(this.j,
l[c])||a++;if(1<=a)return this.bk=!0,l[0]}return null};m.Ea=function(){};m.Zq=function(){var c=this.b.Pf(this.j),l,b,a,f,m,d,e,n,g;this.Qg||this.gj||(this.Pg=!1);var I=this.Bd||this.Fe;a=this.Jd||this.Ge;var E=(f=this.Qg||this.gj)&&!this.Pg;this.gj=this.Ge=this.Fe=!1;if(this.enabled){this.pe&&(E=f=a=I=!1);f||(this.sg=0);n=this.Tb;g=!1;this.ak&&((this.b.Ka(this.j)||this.b.ge(this.j))&&this.b.Pc(this.j,-this.Ra,-this.Sa,4,!0),this.ak=!1);!n||0!==this.B||n.y===this.ag&&n.x===this.$f||(l=n.x-this.$f,
b=n.y-this.ag,this.j.x+=l,this.j.y+=b,this.j.F(),this.$f=n.x,this.ag=n.y,g=!0,this.b.Ka(this.j)&&this.b.Pc(this.j,-l,-b,2.5*Math.sqrt(l*l+b*b)));var A=this.Rp();if(b=this.b.Ka(this.j))if(this.j.L.inputPredicted)this.b.Pc(this.j,-this.Ra,-this.Sa,10,!1);else if(this.b.Jn(this.j,Math.max(this.j.width,this.j.height)/2))this.b.be(this.j,b);else return;A?(this.uh=this.Ch=!1,0<this.B&&(this.nh||(this.b.In(this.j,-this.Ra,-this.Sa,A),this.nh=!0),this.B=0),n!=A)?(this.Tb=A,this.$f=A.x,this.ag=A.y,this.b.be(this.j,
A)):g&&(b=this.b.Ka(this.j))&&(this.b.be(this.j,b),0!==l&&(0<l?this.b.Pc(this.j,-this.Be,-this.Ce):this.b.Pc(this.j,this.Be,this.Ce)),this.b.Pc(this.j,-this.Ra,-this.Sa)):f||(this.uh=!0);if(A&&E||!A&&this.lm&&f&&this.uh&&!this.Ch)n=this.j.x,g=this.j.y,this.j.x-=this.Ra,this.j.y-=this.Sa,this.j.F(),this.b.Ka(this.j)?E=!1:(this.sg=this.Ym,this.b.trigger(Ac.prototype.D.Ls,this.j),this.sd=2,this.B=-this.gi,E=!0,A?this.Pg=!0:this.Ch=!0),this.j.x=n,this.j.y=g,this.j.F();A||(f&&0<this.sg?(this.B=-this.gi,
this.sg-=c):(this.Tb=null,this.B+=this.Zb*c,this.B>this.ig&&(this.B=this.ig)),E&&(this.Pg=!0));this.nh=!!A;I==a&&(0>this.A?(this.A+=this.Qb*c,0<this.A&&(this.A=0)):0<this.A&&(this.A-=this.Qb*c,0>this.A&&(this.A=0)));I&&!a&&(this.A=0<this.A?this.A-(this.Ba+this.Qb)*c:this.A-this.Ba*c);a&&!I&&(this.A=0>this.A?this.A+(this.Ba+this.Qb)*c:this.A+this.Ba*c);this.A>this.ed?this.A=this.ed:this.A<-this.ed&&(this.A=-this.ed);I=!1;0!==this.A&&(n=this.j.x,g=this.j.y,l=this.A*c*this.Be,b=this.A*c*this.Ce,this.j.x+=
this.Be*(1<this.A?1:-1)-this.Ra,this.j.y+=this.Ce*(1<this.A?1:-1)-this.Sa,this.j.F(),f=!1,m=this.b.Ka(this.j),this.j.x=n+l,this.j.y=g+b,this.j.F(),a=this.b.Ka(this.j),!a&&A&&(a=this.b.ge(this.j))&&(this.j.x=n,this.j.y=g,this.j.F(),this.b.ec(this.j,a)?(a=null,f=!1):f=!0,this.j.x=n+l,this.j.y=g+b,this.j.F()),a?(l=Math.abs(this.A*c)+2,m||!this.b.Pc(this.j,-this.Ra,-this.Sa,l,f,a))?(this.b.be(this.j,a),l=Math.max(Math.abs(this.A*c*2.5),30),this.b.Pc(this.j,this.Be*(0>this.A?1:-1),this.Ce*(0>this.A?1:
-1),l,!1)?!A||f||this.bk||(n=this.j.x,g=this.j.y,this.j.x+=this.Ra,this.j.y+=this.Sa,this.b.Ka(this.j)?this.b.Pc(this.j,-this.Ra,-this.Sa,3,!1)||(this.j.x=n,this.j.y=g,this.j.F()):(this.j.x=n,this.j.y=g,this.j.F())):(this.j.x=n,this.j.y=g,this.j.F()),f||(this.A=0)):!m&&!E&&Math.abs(this.B)<Math.abs(this.gi/4)&&(this.B=0,A||(I=!0)):(n=this.Rp(),A&&!n?(b=Math.ceil(Math.abs(this.A*c))+2,n=this.j.x,g=this.j.y,this.j.x+=this.Ra*b,this.j.y+=this.Sa*b,this.j.F(),this.b.Ka(this.j)||this.b.ge(this.j)?this.b.Pc(this.j,
-this.Ra,-this.Sa,b+2,!0):(this.j.x=n,this.j.y=g,this.j.F())):n&&0===this.B&&this.b.In(this.j,-this.Ra,-this.Sa,n)));if(0!==this.B){n=this.j.x;g=this.j.y;this.j.x+=this.B*c*this.Ra;this.j.y+=this.B*c*this.Sa;l=this.j.x;a=this.j.y;this.j.F();b=this.b.Ka(this.j);f=!1;if(!b&&0<this.B&&!A){if((f=0<this.cf?null:this.b.ge(this.j,!0))&&f.length){if(this.oh){this.j.x=n;this.j.y=g;this.j.F();e=m=0;for(d=f.length;m<d;m++)f[e]=f[m],this.b.ec(this.j,f[m])||e++;f.length=e;this.j.x=l;this.j.y=a;this.j.F()}1<=f.length&&
(b=f[0])}f=!!b}b&&(this.b.be(this.j,b),this.sg=0,l=f?Math.abs(this.B*c*2.5+10):Math.max(Math.abs(this.B*c*2.5+10),30),this.b.Pc(this.j,this.Ra*(0>this.B?1:-1),this.Sa*(0>this.B?1:-1),l,f,b)?(this.Tb=b,this.$f=b.x,this.ag=b.y,(this.bk=f)&&(I=!0),this.B=0):(this.j.x=n,this.j.y=g,this.j.F(),this.nh=!0,f||(this.B=0)))}3!==this.sd&&0<this.B&&!A&&(this.b.trigger(Ac.prototype.D.Ks,this.j),this.sd=3);if(A||I)3===this.sd||I||E&&0===this.B?(this.b.trigger(Ac.prototype.D.Io,this.j),this.sd=0===this.A&&0===this.B?
0:1):(0!==this.sd&&0===this.A&&0===this.B&&(this.b.trigger(Ac.prototype.D.Qs,this.j),this.sd=0),1===this.sd||0===this.A&&0===this.B||E||(this.b.trigger(Ac.prototype.D.Ps,this.j),this.sd=1));0<this.cf&&this.cf--;this.oh=this.b.ge(this.j)}};c.prototype.As=function(){if(0!==this.B)return!1;var c=null,l=null,b,a;b=this.j.x;a=this.j.y;this.j.x+=this.Ra;this.j.y+=this.Sa;this.j.F();(c=this.b.Ka(this.j))||0!==this.cf||(l=this.b.ge(this.j,!0));this.j.x=b;this.j.y=a;this.j.F();if(c)return!this.b.ec(this.j,
c);if(l&&l.length){a=c=0;for(b=l.length;c<b;c++)l[a]=l[c],this.b.ec(this.j,l[c])||a++;if(1<=a)return!0}return!1};c.prototype.xs=function(c){var l=!1,b=this.j.x,a=this.j.y;this.j.x-=3*this.Ra;this.j.y-=3*this.Sa;this.j.F();if(this.b.Ka(this.j))return this.j.x=b,this.j.y=a,this.j.F(),!1;0===c?(this.j.x-=2*this.Be,this.j.y-=2*this.Ce):(this.j.x+=2*this.Be,this.j.y+=2*this.Ce);this.j.F();l=this.b.Ka(this.j);this.j.x=b;this.j.y=a;this.j.F();return l};c.prototype.Ls=function(){return!0};c.prototype.Ks=
function(){return!0};c.prototype.Qs=function(){return!0};c.prototype.Ps=function(){return!0};c.prototype.Io=function(){return!0};n.D=new c;l.prototype.Mo=function(c){this.pe=c};l.prototype.Hl=function(c){this.Ba=c;0>this.Ba&&(this.Ba=0)};l.prototype.Lo=function(c){this.fk!==c&&(this.Zb=c,this.wl(),this.b.Ka(this.j)&&(this.b.Pc(this.j,this.Ra,this.Sa,10),this.j.x+=2*this.Ra,this.j.y+=2*this.Sa,this.j.F()),this.Tb=null)};l.prototype.Zs=function(c){this.ig=c;0>this.ig&&(this.ig=0)};l.prototype.Jl=function(c){switch(c){case 0:this.Fe=
!0;break;case 1:this.Ge=!0;break;case 2:this.gj=!0}};l.prototype.Oo=function(c){this.B=c};l.prototype.Ws=function(c){c=X(c);c=Ga(c);this.df!==c&&(this.df=c,this.wl(),this.Tb=null)};l.prototype.qs=function(){var c=this.j.x,l=this.j.y;this.j.x+=this.Ra;this.j.y+=this.Sa;this.j.F();var b=this.b.ge(this.j,!1);this.j.x=c;this.j.y=l;this.j.F();b&&(this.cf=3,this.Tb=null)};n.J=new l;n.Qa=new function(){}})();function Bc(c){this.b=c}
(function(){var c=Bc.prototype;c.ka=function(c){this.behavior=c;this.b=c.b};c.ka.prototype.N=function(){};c.Y=function(c,b){this.type=c;this.behavior=c.behavior;this.j=b;this.b=c.b;this.mb=0};var l=c.Y.prototype,n=2*Math.PI,m=Math.PI/2,k=3*Math.PI/2;l.N=function(){this.Ib=1===this.C[0];this.Gi=this.C[1];this.zo=this.C[2];this.Ae=this.C[3];this.Ae+=Math.random()*this.C[4];0===this.Ae?this.mb=0:(this.mb=this.C[5]/this.Ae*n,this.mb+=Math.random()*this.C[6]/this.Ae*n);this.qc=this.C[7];this.qc+=Math.random()*
this.C[8];this.Yi=this.Vf=this.na=0;this.init()};l.Za=function(){return{i:this.mb,a:this.Ib,mv:this.Gi,w:this.zo,p:this.Ae,mag:this.qc,iv:this.na,iv2:this.Vf,r:this.Yi,lkv:this.Bc,lkv2:this.ki}};l.hb=function(c){this.mb=c.i;this.Ib=c.a;this.Gi=c.mv;this.zo=c.w;this.Ae=c.p;this.qc=c.mag;this.na=c.iv;this.Vf=c.iv2||0;this.Yi=c.r;this.Bc=c.lkv;this.ki=c.lkv2||0};l.init=function(){switch(this.Gi){case 0:this.na=this.j.x;break;case 1:this.na=this.j.y;break;case 2:this.na=this.j.width;this.Yi=this.j.height/
this.j.width;break;case 3:this.na=this.j.width;break;case 4:this.na=this.j.height;break;case 5:this.na=this.j.q;this.qc=X(this.qc);break;case 6:this.na=this.j.opacity;break;case 7:this.na=0;break;case 8:this.na=this.j.x,this.Vf=this.j.y}this.Bc=this.na;this.ki=this.Vf};l.Ne=function(c){c=c%n;switch(this.zo){case 0:return Math.sin(c);case 1:return c<=m?c/m:c<=k?1-2*(c-m)/Math.PI:(c-k)/m-1;case 2:return 2*c/n-1;case 3:return-2*c/n+1;case 4:return c<Math.PI?-1:1}return 0};l.Ea=function(){var c=this.b.Pf(this.j);
if(this.Ib&&0!==c){0===this.Ae?this.mb=0:(this.mb+=c/this.Ae*n,this.mb=this.mb%n);switch(this.Gi){case 0:this.j.x!==this.Bc&&(this.na+=this.j.x-this.Bc);this.j.x=this.na+this.Ne(this.mb)*this.qc;this.Bc=this.j.x;break;case 1:this.j.y!==this.Bc&&(this.na+=this.j.y-this.Bc);this.j.y=this.na+this.Ne(this.mb)*this.qc;this.Bc=this.j.y;break;case 2:this.j.width=this.na+this.Ne(this.mb)*this.qc;this.j.height=this.j.width*this.Yi;break;case 3:this.j.width=this.na+this.Ne(this.mb)*this.qc;break;case 4:this.j.height=
this.na+this.Ne(this.mb)*this.qc;break;case 5:this.j.q!==this.Bc&&(this.na=Ga(this.na+(this.j.q-this.Bc)));this.j.q=Ga(this.na+this.Ne(this.mb)*this.qc);this.Bc=this.j.q;break;case 6:this.j.opacity=this.na+this.Ne(this.mb)*this.qc/100;0>this.j.opacity?this.j.opacity=0:1<this.j.opacity&&(this.j.opacity=1);break;case 8:this.j.x!==this.Bc&&(this.na+=this.j.x-this.Bc),this.j.y!==this.ki&&(this.Vf+=this.j.y-this.ki),this.j.x=this.na+Math.cos(this.j.q)*this.Ne(this.mb)*this.qc,this.j.y=this.Vf+Math.sin(this.j.q)*
this.Ne(this.mb)*this.qc,this.Bc=this.j.x,this.ki=this.j.y}this.j.F()}};l.Lq=function(c,b){switch(this.Gi){case 2:this.na*=b.width/c.width;this.Yi=b.height/b.width;break;case 3:this.na*=b.width/c.width;break;case 4:this.na*=b.height/c.height}};c.D=new function(){};c.J=new function(){};c.Qa=new function(){}})();function Cc(c){this.b=c}
(function(){var c=Cc.prototype;c.ka=function(c){this.behavior=c;this.b=c.b};c.ka.prototype.N=function(){};c.Y=function(c,l){this.type=c;this.behavior=c.behavior;this.j=l;this.b=c.b};var l=c.Y.prototype;l.N=function(){this.vc={}};l.Cd=function(){Ya(this.vc)};l.Za=function(){var c={},l,k;for(l in this.vc)this.vc.hasOwnProperty(l)&&(k=this.vc[l],c[l]={c:k.current.T,t:k.total.T,d:k.duration,r:k.er});return c};l.hb=function(c){this.vc={};for(var l in c)c.hasOwnProperty(l)&&(this.vc[l]={current:new cb,
total:new cb,duration:c[l].d,er:c[l].r},this.vc[l].current.T=c[l].c,this.vc[l].total.T=c[l].t)};l.Ea=function(){var c=this.b.Pf(this.j),l,k;for(l in this.vc)this.vc.hasOwnProperty(l)&&(k=this.vc[l],k.current.add(c),k.total.add(c))};l.lj=function(){var c,l;for(c in this.vc)this.vc.hasOwnProperty(c)&&(l=this.vc[c],l.current.T>=l.duration&&(l.er?l.current.T-=l.duration:delete this.vc[c]))};c.D=new function(){};c.J=new function(){};c.Qa=new function(){}})();function oc(c){this.b=c}
(function(){var c=oc.prototype;c.ka=function(c){this.behavior=c;this.b=c.b};c.ka.prototype.N=function(){};c.Y=function(c,l){this.type=c;this.behavior=c.behavior;this.j=l;this.b=c.b};var l=c.Y.prototype;l.N=function(){this.j.L.jumpthruEnabled=0!==this.C[0]};l.Ea=function(){};c.D=new function(){};c.J=new function(){}})();function Dc(c){this.b=c;this.ao=this.kl=this.fj=this.$n=0}
(function(){var c=Dc.prototype;c.ka=function(c){this.behavior=c;this.b=c.b};c.ka.prototype.N=function(){};c.Y=function(c,l){this.type=c;this.behavior=c.behavior;this.j=l;this.b=c.b};var l=c.Y.prototype;l.N=function(){this.enabled=0!==this.C[0]};l.Za=function(){return{smg:this.behavior.$n,ss:this.behavior.fj,se:this.behavior.kl,smd:this.behavior.ao}};l.hb=function(c){this.behavior.$n=c.smg;this.behavior.fj=c.ss;this.behavior.kl=c.se;this.behavior.ao=c.smd};l.Ea=function(){};l.lj=function(){if(this.enabled){var c=
this.behavior.Ji.nd(),l=0,k=0,q,b,a,f=0;q=0;for(b=c.length;q<b;q++){a:{a=c[q];for(var p=void 0,d=void 0,e=void 0,p=0,d=a.O.length;p<d;++p)if(e=a.O[p],e.behavior instanceof Dc){a=e;break a}a=null}a&&a.enabled&&(l+=c[q].x,k+=c[q].y,++f)}c=this.j.n.qb;b=this.b.ob.T;a=q=0;b>=this.behavior.fj&&b<this.behavior.kl&&(q=this.behavior.$n*Math.min(this.b.ug,1),0===this.behavior.ao&&(q*=1-(b-this.behavior.fj)/(this.behavior.kl-this.behavior.fj)),b=Math.random()*Math.PI*2,a=Math.random()*q,q=Math.cos(b)*a,a*=
Math.sin(b));c.Vn(l/f+q);c.Wn(k/f+a)}};c.J=new function(){}})();function nc(c){this.b=c}(function(){var c=nc.prototype;c.ka=function(c){this.behavior=c;this.b=c.b};c.ka.prototype.N=function(){};c.Y=function(c,l){this.type=c;this.behavior=c.behavior;this.j=l;this.b=c.b};var l=c.Y.prototype;l.N=function(){this.j.L.solidEnabled=0!==this.C[0]};l.Ea=function(){};c.D=new function(){};c.J=new function(){}})();
function mc(){return[pc,qc,rc,uc,sc,tc,Z,Ac,Dc,yc,nc,Bc,oc,Cc,wc,xc,vc,rc.prototype.D.Fo,Z.prototype.D.hs,Z.prototype.J.Us,yc.prototype.J.lt,Ac.prototype.J.Oo,Y.prototype.J.cs,pc.prototype.J.Play,Y.prototype.D.ks,Z.prototype.J.Ts,Z.prototype.J.Ys,Y.prototype.D.Do,Z.prototype.J.jt,Ac.prototype.D.As,Y.prototype.J.gt,rc.prototype.D.zs,Ac.prototype.J.Jl,Ac.prototype.J.qs,Z.prototype.J.$s,Z.prototype.D.ls,Y.prototype.Qa.Zv,Y.prototype.J.Ss,Ac.prototype.D.Io,Y.prototype.J.mt,Y.prototype.D.os,sc.prototype.J.No,
uc.prototype.J.dt,Z.prototype.J.ct,Z.prototype.J.Xs,Z.prototype.Qa.us,Z.prototype.J.Po,Z.prototype.Qa.nt,Z.prototype.D.Is,Z.prototype.D.ws,Ac.prototype.J.Hl,Ac.prototype.J.Lo,Ac.prototype.J.Zs,Z.prototype.Qa.tt,Ac.prototype.D.xs,Y.prototype.D.ns,Z.prototype.J.as,Y.prototype.D.Jo,Z.prototype.D.Co,wc.prototype.J.Jl,Z.prototype.J.Vs,Ac.prototype.J.Mo,pc.prototype.J.it,Z.prototype.J.bt,Z.prototype.Qa.qt,xc.prototype.D.ts,Z.prototype.J.ht,Z.prototype.J.et,xc.prototype.J.bs,Ac.prototype.J.Ws,sc.prototype.J.Il,
Y.prototype.J.rs,Y.prototype.J.Rs,Z.prototype.J.Ds,qc.prototype.D.uj]};