// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa,ba,ca,ea,fa,ga,ha,C,ia,ja,ka,na,oa,pa,qa,ra,sa,ta,ua,wa,xa,ya,za,F,Aa,Ba,Ca,Da,Ea,R,Fa,Ga,Ha,Ja,Ka,La,Ma,Na,Qa,Ra,Sa,Ta,Ua,Va,Wa,Za,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,nb,ob,pb,qb,rb,sb,tb,ub,vb,wb,xb,yb,zb,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,fc={};"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,b,e,d){this.set(a,b,e,d)}function m(){this.jb=this.ib=this.lb=this.kb=this.Bb=this.Ab=this.Va=this.Ua=0}function n(a,b,e,d){a<b?e<d?(B=a<e?a:e,J=b>d?b:d):(B=a<d?a:d,J=b>e?b:e):e<d?(B=b<e?b:e,J=a>d?a:d):(B=b<d?b:d,J=a>e?a:e)}function k(){this.items=this.Kd=null;this.Rh=0;U&&(this.Kd=new Set);this.dh=[];this.Ee=!0}function t(a){w[r++]=a}function q(){this.P=this.dl=this.y=this.Hl=0}function g(a){this.yb=[];this.hj=this.jj=this.kj=this.ij=0;this.Fi(a)}function b(a,b){this.Ll=
a;this.Kl=b;this.cells={}}function u(a,b){this.Ll=a;this.Kl=b;this.cells={}}function f(a,b,e){var d;return G.length?(d=G.pop(),d.qm=a,d.x=b,d.y=e,d):new ba(a,b,e)}function a(a,b,e){this.qm=a;this.x=b;this.y=e;this.Db=new ca}function e(a,b,e){var d;return y.length?(d=y.pop(),d.qm=a,d.x=b,d.y=e,d):new ea(a,b,e)}function d(a,b,e){this.qm=a;this.x=b;this.y=e;this.Db=[];this.xg=!0;this.Gd=new ca;this.ih=!1}function l(a,b){return a.ud-b.ud}fa=function(a){window.console&&window.console.log&&window.console.log(a)};
ga=function(a){window.console&&window.console.error&&window.console.error(a)};aa=function(a){return a};ha=function(a){return"undefined"===typeof a};C=function(a){return"number"===typeof a};ia=function(a){return"string"===typeof a};ja=function(a){return 0<a&&0===(a-1&a)};ka=function(a){--a;for(var b=1;32>b;b<<=1)a=a|a>>b;return a+1};na=function(a){return 0>a?-a:a};oa=function(a,b){return a>b?a:b};pa=function(a,b){return a<b?a:b};qa=Math.PI;ra=function(a){return 0<=a?a|0:(a|0)-1};sa=function(a){var b=
a|0;return b===a?b:b+1};ta=function(a,b,e,d,l,h,f,p){var x,A,z,c;a<e?(A=a,x=e):(A=e,x=a);l<f?(c=l,z=f):(c=f,z=l);if(x<c||A>z)return!1;b<d?(A=b,x=d):(A=d,x=b);h<p?(c=h,z=p):(c=p,z=h);if(x<c||A>z)return!1;x=l-a+f-e;A=h-b+p-d;a=e-a;b=d-b;l=f-l;h=p-h;p=na(b*l-h*a);return na(l*A-h*x)>p?!1:na(a*A-b*x)<=p};c.prototype.set=function(a,b,e,d){this.left=a;this.top=b;this.right=e;this.bottom=d};c.prototype.ig=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,b){this.left+=a;this.top+=b;this.right+=a;this.bottom+=b;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.lw=function(a){return!(a.right<this.left||a.bottom<this.top||a.left>this.right||a.top>this.bottom)};c.prototype.mw=
function(a,b,e){return!(a.right+b<this.left||a.bottom+e<this.top||a.left+b>this.right||a.top+e>this.bottom)};c.prototype.Yb=function(a,b){return a>=this.left&&a<=this.right&&b>=this.top&&b<=this.bottom};c.prototype.rh=function(a){return this.left===a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};ua=c;m.prototype.Ei=function(a){this.Ua=a.left;this.Va=a.top;this.Ab=a.right;this.Bb=a.top;this.kb=a.right;this.lb=a.bottom;this.ib=a.left;this.jb=a.bottom};m.prototype.yr=function(a,
b){if(0===b)this.Ei(a);else{var e=Math.sin(b),d=Math.cos(b),l=a.left*e,h=a.top*e,f=a.right*e,e=a.bottom*e,p=a.left*d,x=a.top*d,A=a.right*d,d=a.bottom*d;this.Ua=p-h;this.Va=x+l;this.Ab=A-h;this.Bb=x+f;this.kb=A-e;this.lb=d+f;this.ib=p-e;this.jb=d+l}};m.prototype.offset=function(a,b){this.Ua+=a;this.Va+=b;this.Ab+=a;this.Bb+=b;this.kb+=a;this.lb+=b;this.ib+=a;this.jb+=b;return this};var B=0,J=0;m.prototype.Wo=function(a){n(this.Ua,this.Ab,this.kb,this.ib);a.left=B;a.right=J;n(this.Va,this.Bb,this.lb,
this.jb);a.top=B;a.bottom=J};m.prototype.Yb=function(a,b){var e=this.Ua,d=this.Va,l=this.Ab-e,h=this.Bb-d,f=this.kb-e,p=this.lb-d,x=a-e,A=b-d,z=l*l+h*h,c=l*f+h*p,h=l*x+h*A,u=f*f+p*p,g=f*x+p*A,w=1/(z*u-c*c),l=(u*h-c*g)*w,z=(z*g-c*h)*w;if(0<=l&&0<z&&1>l+z)return!0;l=this.ib-e;h=this.jb-d;z=l*l+h*h;c=l*f+h*p;h=l*x+h*A;w=1/(z*u-c*c);l=(u*h-c*g)*w;z=(z*g-c*h)*w;return 0<=l&&0<z&&1>l+z};m.prototype.Ce=function(a,b){if(b)switch(a){case 0:return this.Ua;case 1:return this.Ab;case 2:return this.kb;case 3:return this.ib;
case 4:return this.Ua;default:return this.Ua}else switch(a){case 0:return this.Va;case 1:return this.Bb;case 2:return this.lb;case 3:return this.jb;case 4:return this.Va;default:return this.Va}};m.prototype.yq=function(){return(this.Ua+this.Ab+this.kb+this.ib)/4};m.prototype.zq=function(){return(this.Va+this.Bb+this.lb+this.jb)/4};m.prototype.Np=function(a){var b=a.yq(),e=a.zq();if(this.Yb(b,e))return!0;b=this.yq();e=this.zq();if(a.Yb(b,e))return!0;var d,l,h,f,p,x,A,z;for(A=0;4>A;A++)for(z=0;4>z;z++)if(b=
this.Ce(A,!0),e=this.Ce(A,!1),d=this.Ce(A+1,!0),l=this.Ce(A+1,!1),h=a.Ce(z,!0),f=a.Ce(z,!1),p=a.Ce(z+1,!0),x=a.Ce(z+1,!1),ta(b,e,d,l,h,f,p,x))return!0;return!1};wa=m;xa=function(a,b){for(var e in b)b.hasOwnProperty(e)&&(a[e]=b[e]);return a};ya=function(a,b){var e,d;b=ra(b);if(!(0>b||b>=a.length)){e=b;for(d=a.length-1;e<d;e++)a[e]=a[e+1];za(a,d)}};za=function(a,b){a.length=b};F=function(a){za(a,0)};Aa=function(a,b){F(a);var e,d;e=0;for(d=b.length;e<d;++e)a[e]=b[e]};Ba=function(a,b){a.push.apply(a,
b)};Ca=function(a,b){var e,d;e=0;for(d=a.length;e<d;++e)if(a[e]===b)return e;return-1};Da=function(a,b){var e=Ca(a,b);-1!==e&&ya(a,e)};Ea=function(a,b,e){return a<b?b:a>e?e:a};R=function(a){return a/(180/qa)};Fa=function(a){return 180/qa*a};Ga=function(a){a%=360;0>a&&(a+=360);return a};Ha=function(a){a%=2*qa;0>a&&(a+=2*qa);return a};Ja=function(a){return Ga(Fa(a))};Ka=function(a){return Ha(R(a))};La=function(a,b,e,d){return Math.atan2(d-b,e-a)};Ma=function(a,b){if(a===b)return 0;var e=Math.sin(a),
d=Math.cos(a),l=Math.sin(b),h=Math.cos(b),e=e*l+d*h;return 1<=e?0:-1>=e?qa:Math.acos(e)};Na=function(a,b,e){var d=Math.sin(a),l=Math.cos(a),h=Math.sin(b),f=Math.cos(b);return Math.acos(d*h+l*f)>e?0<l*h-d*f?Ha(a+e):Ha(a-e):Ha(b)};Qa=function(a,b){var e=Math.sin(a),d=Math.cos(a),l=Math.sin(b),h=Math.cos(b);return 0>=d*l-e*h};Ra=function(a,b,e,d,l,h){if(0===e)return h?a:b;var f=Math.sin(e);e=Math.cos(e);a-=d;b-=l;var p=a*f;a=a*e-b*f;b=b*e+p;return h?a+d:b+l};Sa=function(a,b,e,d){a=e-a;b=d-b;return Math.sqrt(a*
a+b*b)};Ta=function(a,b){return!a!==!b};Ua=function(a,b,e){return a+(b-a)*e};Va=function(a){for(var b in a)if(a.hasOwnProperty(b))return!0;return!1};Wa=function(a){for(var b in a)a.hasOwnProperty(b)&&delete a[b]};var v=+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()-
v};var h=!1,p=h=!1,V=!1;"undefined"!==typeof window&&(h=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),h=!h&&/safari/i.test(navigator.userAgent),p=/(iphone|ipod|ipad)/i.test(navigator.userAgent),V=window.c2ejecta);var U=!h&&!V&&!p&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;k.prototype.contains=function(a){return this.de()?!1:U?this.Kd.has(a):this.items&&this.items.hasOwnProperty(a)};k.prototype.add=function(a){if(U)this.Kd.has(a)||(this.Kd.add(a),
this.Ee=!1);else{var b=a.toString(),e=this.items;e?e.hasOwnProperty(b)||(e[b]=a,this.Rh++,this.Ee=!1):(this.items={},this.items[b]=a,this.Rh=1,this.Ee=!1)}};k.prototype.remove=function(a){if(!this.de())if(U)this.Kd.has(a)&&(this.Kd["delete"](a),this.Ee=!1);else if(this.items){a=a.toString();var b=this.items;b.hasOwnProperty(a)&&(delete b[a],this.Rh--,this.Ee=!1)}};k.prototype.clear=function(){this.de()||(U?this.Kd.clear():(this.items=null,this.Rh=0),F(this.dh),this.Ee=!0)};k.prototype.de=function(){return 0===
this.count()};k.prototype.count=function(){return U?this.Kd.size:this.Rh};var w=null,r=0;k.prototype.Ux=function(){if(!this.Ee){if(U)F(this.dh),w=this.dh,r=0,this.Kd.forEach(t),w=null,r=0;else{var a=this.dh;F(a);var b,e=0,d=this.items;if(d)for(b in d)d.hasOwnProperty(b)&&(a[e++]=d[b])}this.Ee=!0}};k.prototype.te=function(){this.Ux();return this.dh};ca=k;new ca;$a=function(a,b){U?ab(a,b.Kd):bb(a,b.te())};ab=function(a,b){var e,d,l,h;d=e=0;for(l=a.length;e<l;++e)h=a[e],b.has(h)||(a[d++]=h);za(a,d)};
bb=function(a,b){var e,d,l,h;d=e=0;for(l=a.length;e<l;++e)h=a[e],-1===Ca(b,h)&&(a[d++]=h);za(a,d)};q.prototype.add=function(a){this.y=a-this.Hl;this.dl=this.P+this.y;this.Hl=this.dl-this.P-this.y;this.P=this.dl};q.prototype.reset=function(){this.P=this.dl=this.y=this.Hl=0};cb=q;db=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};g.prototype.Fi=function(a){this.hr=a;this.md=a.length/2;this.yb.length=a.length;this.mj=this.nj=-1;this.Zo=0};g.prototype.ug=function(){return!this.hr.length};
g.prototype.Ea=function(){for(var a=this.yb,b=a[0],e=b,d=a[1],l=d,h,f,p=1,x=this.md;p<x;++p)f=2*p,h=a[f],f=a[f+1],h<b&&(b=h),h>e&&(e=h),f<d&&(d=f),f>l&&(l=f);this.ij=b;this.jj=e;this.kj=d;this.hj=l};g.prototype.Ei=function(a,b,e){this.yb.length=8;this.md=4;var d=this.yb;d[0]=a.left-b;d[1]=a.top-e;d[2]=a.right-b;d[3]=a.top-e;d[4]=a.right-b;d[5]=a.bottom-e;d[6]=a.left-b;d[7]=a.bottom-e;this.nj=a.right-a.left;this.mj=a.bottom-a.top;this.Ea()};g.prototype.Ug=function(a,b,e,d,l){this.yb.length=8;this.md=
4;var h=this.yb;h[0]=a.Ua-b;h[1]=a.Va-e;h[2]=a.Ab-b;h[3]=a.Bb-e;h[4]=a.kb-b;h[5]=a.lb-e;h[6]=a.ib-b;h[7]=a.jb-e;this.nj=d;this.mj=l;this.Ea()};g.prototype.xr=function(a){this.md=a.md;Aa(this.yb,a.yb);this.ij=a.ij;this.kj-a.kj;this.jj=a.jj;this.hj=a.hj};g.prototype.gg=function(a,b,e){if(this.nj!==a||this.mj!==b||this.Zo!==e){this.nj=a;this.mj=b;this.Zo=e;var d,l,h,f,p,x=0,A=1,z=this.hr,c=this.yb;0!==e&&(x=Math.sin(e),A=Math.cos(e));e=0;for(h=this.md;e<h;e++)d=2*e,l=d+1,f=z[d]*a,p=z[l]*b,c[d]=f*A-p*
x,c[l]=p*A+f*x;this.Ea()}};g.prototype.Yb=function(a,b){var e=this.yb;if(a===e[0]&&b===e[1])return!0;var d,l,h,f=this.md,p=this.ij-110,x=this.kj-101,A=this.jj+131,z=this.hj+120,c,u,g=0,w=0;for(d=0;d<f;d++)l=2*d,h=(d+1)%f*2,c=e[l],l=e[l+1],u=e[h],h=e[h+1],ta(p,x,a,b,c,l,u,h)&&g++,ta(A,z,a,b,c,l,u,h)&&w++;return 1===g%2||1===w%2};g.prototype.Gh=function(a,b,e){var d=a.yb,l=this.yb;if(this.Yb(d[0]+b,d[1]+e)||a.Yb(l[0]-b,l[1]-e))return!0;var h,f,p,x,A,z,c,u,g,w,B,v;h=0;for(x=this.md;h<x;h++)for(f=2*h,
p=(h+1)%x*2,u=l[f],f=l[f+1],g=l[p],w=l[p+1],p=0,c=a.md;p<c;p++)if(A=2*p,z=(p+1)%c*2,B=d[A]+b,A=d[A+1]+e,v=d[z]+b,z=d[z+1]+e,ta(u,f,g,w,B,A,v,z))return!0;return!1};eb=g;b.prototype.Oe=function(a,b,e){var d;d=this.cells[a];return d?(d=d[b])?d:e?(d=f(this,a,b),this.cells[a][b]=d):null:e?(d=f(this,a,b),this.cells[a]={},this.cells[a][b]=d):null};b.prototype.hc=function(a){return ra(a/this.Ll)};b.prototype.ic=function(a){return ra(a/this.Kl)};b.prototype.update=function(a,b,e){var d,l,h,f,p;if(b)for(d=
b.left,l=b.right;d<=l;++d)for(h=b.top,f=b.bottom;h<=f;++h)if(!e||!e.Yb(d,h))if(p=this.Oe(d,h,!1))p.remove(a),p.de()&&(p.Db.clear(),1E3>G.length&&G.push(p),this.cells[d][h]=null);if(e)for(d=e.left,l=e.right;d<=l;++d)for(h=e.top,f=e.bottom;h<=f;++h)b&&b.Yb(d,h)||this.Oe(d,h,!0).ym(a)};b.prototype.Lk=function(a,b){var e,d,l,h,f,p;e=this.hc(a.left);l=this.ic(a.top);d=this.hc(a.right);for(f=this.ic(a.bottom);e<=d;++e)for(h=l;h<=f;++h)(p=this.Oe(e,h,!1))&&p.dump(b)};fb=b;u.prototype.Oe=function(a,b,d){var l;
l=this.cells[a];return l?(l=l[b])?l:d?(l=e(this,a,b),this.cells[a][b]=l):null:d?(l=e(this,a,b),this.cells[a]={},this.cells[a][b]=l):null};u.prototype.hc=function(a){return ra(a/this.Ll)};u.prototype.ic=function(a){return ra(a/this.Kl)};u.prototype.update=function(a,b,e){var d,l,h,f,p;if(b)for(d=b.left,l=b.right;d<=l;++d)for(h=b.top,f=b.bottom;h<=f;++h)if(!e||!e.Yb(d,h))if(p=this.Oe(d,h,!1))p.remove(a),p.de()&&(p.reset(),1E3>y.length&&y.push(p),this.cells[d][h]=null);if(e)for(d=e.left,l=e.right;d<=
l;++d)for(h=e.top,f=e.bottom;h<=f;++h)b&&b.Yb(d,h)||this.Oe(d,h,!0).ym(a)};u.prototype.Lk=function(a,b,e,d,l){var h,f;a=this.hc(a);b=this.ic(b);e=this.hc(e);for(h=this.ic(d);a<=e;++a)for(d=b;d<=h;++d)(f=this.Oe(a,d,!1))&&f.dump(l)};u.prototype.Kw=function(a){var b,e,d,l,h;b=a.left;d=a.top;e=a.right;for(l=a.bottom;b<=e;++b)for(a=d;a<=l;++a)if(h=this.Oe(b,a,!1))h.xg=!1};gb=u;var G=[];a.prototype.de=function(){return this.Db.de()};a.prototype.ym=function(a){this.Db.add(a)};a.prototype.remove=function(a){this.Db.remove(a)};
a.prototype.dump=function(a){Ba(a,this.Db.te())};ba=a;var y=[];d.prototype.de=function(){if(!this.Db.length)return!0;if(this.Db.length>this.Gd.count())return!1;this.dm();return!0};d.prototype.ym=function(a){this.Gd.contains(a)?(this.Gd.remove(a),this.Gd.de()&&(this.ih=!1)):this.Db.length?(this.Db[this.Db.length-1].Bd()>a.Bd()&&(this.xg=!1),this.Db.push(a)):(this.Db.push(a),this.xg=!0)};d.prototype.remove=function(a){this.Gd.add(a);this.ih=!0;30<=this.Gd.count()&&this.dm()};d.prototype.dm=function(){this.ih&&
(this.Gd.count()===this.Db.length?this.reset():($a(this.Db,this.Gd),this.Gd.clear(),this.ih=!1))};d.prototype.Pu=function(){this.xg||(this.Db.sort(l),this.xg=!0)};d.prototype.reset=function(){F(this.Db);this.xg=!0;this.Gd.clear();this.ih=!1};d.prototype.dump=function(a){this.dm();this.Pu();this.Db.length&&a.push(this.Db)};ea=d;var Q="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":
Q[a-1]};ib=function(a,b,e){if(e)switch(a.Vb=e.ONE,a.Sb=e.ONE_MINUS_SRC_ALPHA,b){case 1:a.Vb=e.ONE;a.Sb=e.ONE;break;case 3:a.Vb=e.ONE;a.Sb=e.ZERO;break;case 4:a.Vb=e.ONE_MINUS_DST_ALPHA;a.Sb=e.ONE;break;case 5:a.Vb=e.DST_ALPHA;a.Sb=e.ZERO;break;case 6:a.Vb=e.ZERO;a.Sb=e.SRC_ALPHA;break;case 7:a.Vb=e.ONE_MINUS_DST_ALPHA;a.Sb=e.ZERO;break;case 8:a.Vb=e.ZERO;a.Sb=e.ONE_MINUS_SRC_ALPHA;break;case 9:a.Vb=e.DST_ALPHA;a.Sb=e.ONE_MINUS_SRC_ALPHA;break;case 10:a.Vb=e.ONE_MINUS_DST_ALPHA,a.Sb=e.SRC_ALPHA}};
jb=function(a){return Math.round(1E6*a)/1E6};kb=function(a,b){return"string"!==typeof a||"string"!==typeof b||a.length!==b.length?!1:a===b?!0:a.toLowerCase()===b.toLowerCase()};nb=function(a){a=a.target;return!a||a===document||a===window||document&&document.body&&a===document.body||kb(a.tagName,"canvas")?!0:!1}})();var gc="undefined"!==typeof Float32Array?Float32Array:Array;function hc(c){var m=new gc(3);c&&(m[0]=c[0],m[1]=c[1],m[2]=c[2]);return m}
function ic(c){var m=new gc(16);c&&(m[0]=c[0],m[1]=c[1],m[2]=c[2],m[3]=c[3],m[4]=c[4],m[5]=c[5],m[6]=c[6],m[7]=c[7],m[8]=c[8],m[9]=c[9],m[10]=c[10],m[11]=c[11],m[12]=c[12],m[13]=c[13],m[14]=c[14],m[15]=c[15]);return m}function jc(c,m){m[0]=c[0];m[1]=c[1];m[2]=c[2];m[3]=c[3];m[4]=c[4];m[5]=c[5];m[6]=c[6];m[7]=c[7];m[8]=c[8];m[9]=c[9];m[10]=c[10];m[11]=c[11];m[12]=c[12];m[13]=c[13];m[14]=c[14];m[15]=c[15]}
function kc(c,m){var n=m[0],k=m[1];m=m[2];c[0]*=n;c[1]*=n;c[2]*=n;c[3]*=n;c[4]*=k;c[5]*=k;c[6]*=k;c[7]*=k;c[8]*=m;c[9]*=m;c[10]*=m;c[11]*=m}
function lc(c,m,n,k){k||(k=ic());var t,q,g,b,u,f,a,e,d=c[0],l=c[1];c=c[2];q=n[0];g=n[1];t=n[2];n=m[1];f=m[2];d===m[0]&&l===n&&c===f?(c=k,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=d-m[0],f=l-m[1],a=c-m[2],e=1/Math.sqrt(n*n+f*f+a*a),n*=e,f*=e,a*=e,m=g*a-t*f,t=t*n-q*a,q=q*f-g*n,(e=Math.sqrt(m*m+t*t+q*q))?(e=1/e,m*=e,t*=e,q*=e):q=t=m=0,g=f*q-a*t,b=a*m-n*q,u=n*t-f*m,(e=Math.sqrt(g*g+b*b+u*u))?(e=1/e,g*=e,b*=e,u*=e):u=b=g=0,
k[0]=m,k[1]=g,k[2]=n,k[3]=0,k[4]=t,k[5]=b,k[6]=f,k[7]=0,k[8]=q,k[9]=u,k[10]=a,k[11]=0,k[12]=-(m*d+t*l+q*c),k[13]=-(g*d+b*l+u*c),k[14]=-(n*d+f*l+a*c),k[15]=1)}
(function(){function c(b,c,f){this.Re=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.Ia=!!f;this.ak=this.Hh=!1;this.Rl=0;this.wl=1;this.lo=1E3;this.ay=(this.lo-this.wl)/32768;this.Il=hc([0,0,100]);this.gq=hc([0,0,0]);this.Ur=hc([0,1,0]);this.Xi=hc([1,1,1]);this.mp=!0;this.rk=ic();this.Jc=ic();this.Jm=ic();this.Ql=ic();this.F=b;this.version=0===this.F.getParameter(this.F.VERSION).indexOf("WebGL 2")?2:1;this.Jp()}function m(b,c,f){this.F=b;this.Gi=
c;this.name=f;this.Vc=b.getAttribLocation(c,"aPos");this.Ve=b.getAttribLocation(c,"aTex");this.dq=b.getUniformLocation(c,"matP");this.nk=b.getUniformLocation(c,"matMV");this.Gg=b.getUniformLocation(c,"opacity");this.Sm=b.getUniformLocation(c,"colorFill");this.fq=b.getUniformLocation(c,"samplerFront");this.$h=b.getUniformLocation(c,"samplerBack");this.Nf=b.getUniformLocation(c,"destStart");this.Mf=b.getUniformLocation(c,"destEnd");this.bi=b.getUniformLocation(c,"seconds");this.Um=b.getUniformLocation(c,
"pixelWidth");this.Tm=b.getUniformLocation(c,"pixelHeight");this.Zh=b.getUniformLocation(c,"layerScale");this.Yh=b.getUniformLocation(c,"layerAngle");this.ci=b.getUniformLocation(c,"viewOrigin");this.ai=b.getUniformLocation(c,"scrollPos");this.gw=!!(this.Um||this.Tm||this.bi||this.$h||this.Nf||this.Mf||this.Zh||this.Yh||this.ci||this.ai);this.oq=this.pq=-999;this.qk=1;this.kq=this.jq=0;this.mq=this.iq=this.hq=1;this.sq=this.rq=this.qq=this.uq=this.tq=this.lq=0;this.Im=[];this.nq=ic();this.Gg&&b.uniform1f(this.Gg,
1);this.Sm&&b.uniform4f(this.Sm,1,1,1,1);this.fq&&b.uniform1i(this.fq,0);this.$h&&b.uniform1i(this.$h,1);this.Nf&&b.uniform2f(this.Nf,0,0);this.Mf&&b.uniform2f(this.Mf,1,1);this.Zh&&b.uniform1f(this.Zh,1);this.Yh&&b.uniform1f(this.Yh,0);this.ci&&b.uniform2f(this.ci,0,0);this.ai&&b.uniform2f(this.ai,0,0);this.bi&&b.uniform1f(this.bi,0);this.yf=!1}function n(b,c){return b[0]===c[0]&&b[1]===c[1]&&b[2]===c[2]&&b[3]===c[3]&&b[4]===c[4]&&b[5]===c[5]&&b[6]===c[6]&&b[7]===c[7]&&b[8]===c[8]&&b[9]===c[9]&&
b[10]===c[10]&&b[11]===c[11]&&b[12]===c[12]&&b[13]===c[13]&&b[14]===c[14]&&b[15]===c[15]}function k(b,c){this.type=b;this.C=c;this.F=c.F;this.Cd=this.gc=this.Sq=0;this.ka=this.$c=null;this.Ar=[]}var t=ic();c.prototype.Jp=function(){var b=this.F,c;this.Zp=1;this.Gf=this.Ff=null;this.yj=1;b.clearColor(0,0,0,0);b.clear(b.COLOR_BUFFER_BIT);b.enable(b.BLEND);b.blendFunc(b.ONE,b.ONE_MINUS_SRC_ALPHA);b.disable(b.CULL_FACE);b.disable(b.STENCIL_TEST);b.disable(b.DITHER);this.Ia?(b.enable(b.DEPTH_TEST),b.depthFunc(b.LEQUAL)):
b.disable(b.DEPTH_TEST);this.$p=b.ONE;this.Yp=b.ONE_MINUS_SRC_ALPHA;this.tl=new Float32Array(8E3*(this.Ia?3:2));this.el=new Float32Array(16E3);this.dr=new Float32Array(32E3);this.rn=b.createBuffer();b.bindBuffer(b.ARRAY_BUFFER,this.rn);b.bufferData(b.ARRAY_BUFFER,this.dr.byteLength,b.DYNAMIC_DRAW);this.Wi=Array(4);this.Ni=Array(4);for(c=0;4>c;c++)this.Wi[c]=b.createBuffer(),b.bindBuffer(b.ARRAY_BUFFER,this.Wi[c]),b.bufferData(b.ARRAY_BUFFER,this.tl.byteLength,b.DYNAMIC_DRAW),this.Ni[c]=b.createBuffer(),
b.bindBuffer(b.ARRAY_BUFFER,this.Ni[c]),b.bufferData(b.ARRAY_BUFFER,this.el.byteLength,b.DYNAMIC_DRAW);this.Td=0;this.jw=b.createBuffer();b.bindBuffer(b.ELEMENT_ARRAY_BUFFER,this.jw);for(var f=new Uint16Array(12E3),a=c=0;12E3>c;)f[c++]=a,f[c++]=a+1,f[c++]=a+2,f[c++]=a,f[c++]=a+2,f[c++]=a+3,a+=4;b.bufferData(b.ELEMENT_ARRAY_BUFFER,f,b.STATIC_DRAW);this.sn=this.Xg=this.ue=0;this.Sa=[];c=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}";f=this.nh({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}"},c,"<default>");this.Sa.push(f);f=this.nh({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.Sa.push(f);f=this.nh({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},c,"<earlyz>");this.Sa.push(f);f=this.nh({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"},
c,"<fill>");this.Sa.push(f);for(var e in mc)mc.hasOwnProperty(e)&&this.Sa.push(this.nh(mc[e],c,e));b.activeTexture(b.TEXTURE0);b.bindTexture(b.TEXTURE_2D,null);this.De=[];this.Qd=0;this.Tb=!1;this.hp=this.Uh=-1;this.kg=null;this.am=b.createFramebuffer();this.Cj=this.Mk=null;this.To=!1;this.Ia&&(this.Cj=b.createRenderbuffer());this.df=hc([0,0,0]);this.vq=b.getParameter(b.ALIASED_POINT_SIZE_RANGE)[1];2048<this.vq&&(this.vq=2048);this.qc(0)};m.prototype.co=function(b){n(this.nq,b)||(jc(b,this.nq),this.F.uniformMatrix4fv(this.nk,
!1,b))};c.prototype.nh=function(b,c,f){var a=this.F,e=a.createShader(a.FRAGMENT_SHADER);a.shaderSource(e,b.src);a.compileShader(e);if(!a.getShaderParameter(e,a.COMPILE_STATUS))throw b=a.getShaderInfoLog(e),a.deleteShader(e),Error("error compiling fragment shader: "+b);var d=a.createShader(a.VERTEX_SHADER);a.shaderSource(d,c);a.compileShader(d);if(!a.getShaderParameter(d,a.COMPILE_STATUS))throw b=a.getShaderInfoLog(d),a.deleteShader(e),a.deleteShader(d),Error("error compiling vertex shader: "+b);c=
a.createProgram();a.attachShader(c,e);a.attachShader(c,d);a.linkProgram(c);if(!a.getProgramParameter(c,a.LINK_STATUS))throw b=a.getProgramInfoLog(c),a.deleteShader(e),a.deleteShader(d),a.deleteProgram(c),Error("error linking shader program: "+b);a.useProgram(c);a.deleteShader(e);a.deleteShader(d);e=new m(a,c,f);e.Zl=b.Zl||0;e.$l=b.$l||0;e.gp=!!b.gp;e.kd=!!b.kd;e.Ro=!!b.Ro;e.da=b.da||[];b=0;for(d=e.da.length;b<d;b++)e.da[b][1]=a.getUniformLocation(c,e.da[b][0]),e.Im.push(0),a.uniform1f(e.da[b][1],
0);return e};c.prototype.om=function(b){var c,f;c=0;for(f=this.Sa.length;c<f;c++)if(this.Sa[c].name===b)return c;return-1};c.prototype.gr=function(b,c,f){var a=this.Jc,e=this.rk,d=[0,0,0,0,0,0,0,0];d[0]=a[0]*b+a[4]*c+a[12];d[1]=a[1]*b+a[5]*c+a[13];d[2]=a[2]*b+a[6]*c+a[14];d[3]=a[3]*b+a[7]*c+a[15];d[4]=e[0]*d[0]+e[4]*d[1]+e[8]*d[2]+e[12]*d[3];d[5]=e[1]*d[0]+e[5]*d[1]+e[9]*d[2]+e[13]*d[3];d[6]=e[2]*d[0]+e[6]*d[1]+e[10]*d[2]+e[14]*d[3];d[7]=-d[2];0!==d[7]&&(d[7]=1/d[7],d[4]*=d[7],d[5]*=d[7],d[6]*=d[7],
f[0]=(.5*d[4]+.5)*this.width,f[1]=(.5*d[5]+.5)*this.height)};c.prototype.Uf=function(b,c,f){if(this.width!==b||this.height!==c||f){this.qf();f=this.F;this.width=b;this.height=c;f.viewport(0,0,b,c);lc(this.Il,this.gq,this.Ur,this.Jc);if(this.Ia){var a=-b/2;b=b/2;var e=c/2;c=-c/2;var d=this.wl,l=this.lo,g=this.rk;g||(g=ic());var k=b-a,v=c-e,h=l-d;g[0]=2/k;g[1]=0;g[2]=0;g[3]=0;g[4]=0;g[5]=2/v;g[6]=0;g[7]=0;g[8]=0;g[9]=0;g[10]=-2/h;g[11]=0;g[12]=-(a+b)/k;g[13]=-(c+e)/v;g[14]=-(l+d)/h;g[15]=1;this.Xi[0]=
1;this.Xi[1]=1}else c=b/c,a=this.wl,b=this.lo,g=this.rk,l=a*Math.tan(45*Math.PI/360),c*=l,e=-c,d=-l,g||(g=ic()),k=c-e,v=l-d,h=b-a,g[0]=2*a/k,g[1]=0,g[2]=0,g[3]=0,g[4]=0,g[5]=2*a/v,g[6]=0,g[7]=0,g[8]=(c+e)/k,g[9]=(l+d)/v,g[10]=-(b+a)/h,g[11]=-1,g[12]=0,g[13]=0,g[14]=-(b*a*2)/h,g[15]=0,a=[0,0],b=[0,0],this.gr(0,0,a),this.gr(1,1,b),this.Xi[0]=1/(b[0]-a[0]),this.Xi[1]=-1/(b[1]-a[1]);a=0;for(b=this.Sa.length;a<b;a++)e=this.Sa[a],e.yf=!1,e.dq&&(f.useProgram(e.Gi),f.uniformMatrix4fv(e.dq,!1,this.rk));f.useProgram(this.Sa[this.Uh].Gi);
f.bindTexture(f.TEXTURE_2D,null);f.activeTexture(f.TEXTURE1);f.bindTexture(f.TEXTURE_2D,null);f.activeTexture(f.TEXTURE0);this.Gf=this.Ff=null;this.Cj&&(f.bindFramebuffer(f.FRAMEBUFFER,this.am),f.bindRenderbuffer(f.RENDERBUFFER,this.Cj),f.renderbufferStorage(f.RENDERBUFFER,f.DEPTH_COMPONENT16,this.width,this.height),this.To||(f.framebufferRenderbuffer(f.FRAMEBUFFER,f.DEPTH_ATTACHMENT,f.RENDERBUFFER,this.Cj),this.To=!0),f.bindRenderbuffer(f.RENDERBUFFER,null),f.bindFramebuffer(f.FRAMEBUFFER,null),
this.Mk=null)}};c.prototype.Jd=function(){lc(this.Il,this.gq,this.Ur,this.Jc);kc(this.Jc,this.Xi)};c.prototype.translate=function(b,c){if(0!==b||0!==c){this.df[0]=b;this.df[1]=c;this.df[2]=0;var f=this.Jc,a=this.df,e=a[0],d=a[1],a=a[2];f[12]=f[0]*e+f[4]*d+f[8]*a+f[12];f[13]=f[1]*e+f[5]*d+f[9]*a+f[13];f[14]=f[2]*e+f[6]*d+f[10]*a+f[14];f[15]=f[3]*e+f[7]*d+f[11]*a+f[15]}};c.prototype.scale=function(b,c){if(1!==b||1!==c)this.df[0]=b,this.df[1]=c,this.df[2]=1,kc(this.Jc,this.df)};c.prototype.Dn=function(b){if(0!==
b){var c=this.Jc,f,a=Math.sin(b);b=Math.cos(b);var e=c[0],d=c[1],l=c[2],g=c[3],k=c[4],v=c[5],h=c[6],p=c[7];f?c!==f&&(f[8]=c[8],f[9]=c[9],f[10]=c[10],f[11]=c[11],f[12]=c[12],f[13]=c[13],f[14]=c[14],f[15]=c[15]):f=c;f[0]=e*b+k*a;f[1]=d*b+v*a;f[2]=l*b+h*a;f[3]=g*b+p*a;f[4]=e*-a+k*b;f[5]=d*-a+v*b;f[6]=l*-a+h*b;f[7]=g*-a+p*b}};c.prototype.td=function(){if(!n(this.Jm,this.Jc)){var b=this.Ac();b.type=5;b.ka?jc(this.Jc,b.ka):b.ka=ic(this.Jc);jc(this.Jc,this.Jm);this.Tb=!1}};c.prototype.Sk=function(b){this.Ia&&
(32760<b&&(b=32760),this.Rl=this.Il[2]-this.wl-b*this.ay)};k.prototype.zu=function(){var b=this.F,c=this.C;0!==this.gc?(b.depthMask(!0),b.colorMask(!1,!1,!1,!1),b.disable(b.BLEND),b.bindFramebuffer(b.FRAMEBUFFER,c.am),b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,null,0),b.clear(b.DEPTH_BUFFER_BIT),b.bindFramebuffer(b.FRAMEBUFFER,null),c.ak=!0):(b.depthMask(!1),b.colorMask(!0,!0,!0,!0),b.enable(b.BLEND),c.ak=!1)};k.prototype.Du=function(){this.F.bindTexture(this.F.TEXTURE_2D,
this.$c)};k.prototype.Eu=function(){var b=this.F;b.activeTexture(b.TEXTURE1);b.bindTexture(b.TEXTURE_2D,this.$c);b.activeTexture(b.TEXTURE0)};k.prototype.Au=function(){var b=this.Sq,c=this.C;c.yj=b;c=c.kg;c.Gg&&c.qk!==b&&(c.qk=b,this.F.uniform1f(c.Gg,b))};k.prototype.uu=function(){this.F.drawElements(this.F.TRIANGLES,this.Cd,this.F.UNSIGNED_SHORT,this.gc)};k.prototype.wu=function(){this.F.blendFunc(this.gc,this.Cd)};k.prototype.Fu=function(){var b,c,f,a=this.C.Sa,e=this.C.hp;b=0;for(c=a.length;b<
c;b++)f=a[b],b===e&&f.nk?(f.co(this.ka),f.yf=!0):f.yf=!1;jc(this.ka,this.C.Ql)};k.prototype.vu=function(){var b=this.F,c=this.C;this.$c?(c.Gf===this.$c&&(b.activeTexture(b.TEXTURE1),b.bindTexture(b.TEXTURE_2D,null),c.Gf=null,b.activeTexture(b.TEXTURE0)),b.bindFramebuffer(b.FRAMEBUFFER,c.am),c.ak||b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,this.$c,0)):(c.Ia||b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,null,0),b.bindFramebuffer(b.FRAMEBUFFER,null))};
k.prototype.ru=function(){var b=this.F,c=this.gc;0===c?(b.clearColor(this.ka[0],this.ka[1],this.ka[2],this.ka[3]),b.clear(b.COLOR_BUFFER_BIT)):1===c?(b.enable(b.SCISSOR_TEST),b.scissor(this.ka[0],this.ka[1],this.ka[2],this.ka[3]),b.clearColor(0,0,0,0),b.clear(b.COLOR_BUFFER_BIT),b.disable(b.SCISSOR_TEST)):b.clear(b.DEPTH_BUFFER_BIT)};k.prototype.yu=function(){var b=this.F;0!==this.gc?b.enable(b.DEPTH_TEST):b.disable(b.DEPTH_TEST)};k.prototype.tu=function(){var b=this.F,c=this.C;c.Ia&&b.disable(b.DEPTH_TEST);
var f=c.Sa[1];b.useProgram(f.Gi);!f.yf&&f.nk&&(f.co(c.Ql),f.yf=!0);b.enableVertexAttribArray(f.Vc);b.bindBuffer(b.ARRAY_BUFFER,c.rn);b.vertexAttribPointer(f.Vc,4,b.FLOAT,!1,0,0);b.drawArrays(b.POINTS,this.gc/4,this.Cd);f=c.kg;b.useProgram(f.Gi);0<=f.Vc&&(b.enableVertexAttribArray(f.Vc),b.bindBuffer(b.ARRAY_BUFFER,c.Wi[c.Td]),b.vertexAttribPointer(f.Vc,c.Ia?3:2,b.FLOAT,!1,0,0));0<=f.Ve&&(b.enableVertexAttribArray(f.Ve),b.bindBuffer(b.ARRAY_BUFFER,c.Ni[c.Td]),b.vertexAttribPointer(f.Ve,2,b.FLOAT,!1,
0,0));c.Ia&&b.enable(b.DEPTH_TEST)};k.prototype.Bu=function(){var b=this.F,c=this.C,f=c.Sa[this.gc];c.hp=this.gc;c.kg=f;b.useProgram(f.Gi);!f.yf&&f.nk&&(f.co(c.Ql),f.yf=!0);f.Gg&&f.qk!==c.yj&&(f.qk=c.yj,b.uniform1f(f.Gg,c.yj));0<=f.Vc&&(b.enableVertexAttribArray(f.Vc),b.bindBuffer(b.ARRAY_BUFFER,c.Wi[c.Td]),b.vertexAttribPointer(f.Vc,c.Ia?3:2,b.FLOAT,!1,0,0));0<=f.Ve&&(b.enableVertexAttribArray(f.Ve),b.bindBuffer(b.ARRAY_BUFFER,c.Ni[c.Td]),b.vertexAttribPointer(f.Ve,2,b.FLOAT,!1,0,0))};k.prototype.xu=
function(){var b=this.ka;this.F.uniform4f(this.C.kg.Sm,b[0],b[1],b[2],b[3])};k.prototype.Cu=function(){var b,c,f=this.C.kg,a=this.F;b=this.ka;f.$h&&this.C.Gf!==this.$c&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,this.$c),this.C.Gf=this.$c,a.activeTexture(a.TEXTURE0));var e=b[0];f.Um&&e!==f.pq&&(f.pq=e,a.uniform1f(f.Um,e));e=b[1];f.Tm&&e!==f.oq&&(f.oq=e,a.uniform1f(f.Tm,e));e=b[2];c=b[3];!f.Nf||e===f.jq&&c===f.kq||(f.jq=e,f.kq=c,a.uniform2f(f.Nf,e,c));e=b[4];c=b[5];!f.Mf||e===f.hq&&c===
f.iq||(f.hq=e,f.iq=c,a.uniform2f(f.Mf,e,c));e=b[6];f.Zh&&e!==f.mq&&(f.mq=e,a.uniform1f(f.Zh,e));e=b[7];f.Yh&&e!==f.lq&&(f.lq=e,a.uniform1f(f.Yh,e));e=b[8];c=b[9];!f.ci||e===f.tq&&c===f.uq||(f.tq=e,f.uq=c,a.uniform2f(f.ci,e,c));e=b[10];c=b[11];!f.ai||e===f.qq&&c===f.rq||(f.qq=e,f.rq=c,a.uniform2f(f.ai,e,c));e=b[12];f.bi&&e!==f.sq&&(f.sq=e,a.uniform1f(f.bi,e));if(f.da.length)for(b=0,c=f.da.length;b<c;b++)e=this.Ar[b],e!==f.Im[b]&&(f.Im[b]=e,a.uniform1f(f.da[b][1],e))};c.prototype.Ac=function(){this.Qd===
this.De.length&&this.De.push(new k(0,this));return this.De[this.Qd++]};c.prototype.qf=function(){if(0!==this.Qd&&!this.F.isContextLost()){var b=this.F;0<this.sn&&(b.bindBuffer(b.ARRAY_BUFFER,this.rn),b.bufferSubData(b.ARRAY_BUFFER,0,this.dr.subarray(0,this.sn)),c&&0<=c.Vc&&"<point>"===c.name&&b.vertexAttribPointer(c.Vc,4,b.FLOAT,!1,0,0));if(0<this.ue){var c=this.kg;b.bindBuffer(b.ARRAY_BUFFER,this.Wi[this.Td]);b.bufferSubData(b.ARRAY_BUFFER,0,this.tl.subarray(0,this.ue));c&&0<=c.Vc&&"<point>"!==c.name&&
b.vertexAttribPointer(c.Vc,this.Ia?3:2,b.FLOAT,!1,0,0);b.bindBuffer(b.ARRAY_BUFFER,this.Ni[this.Td]);b.bufferSubData(b.ARRAY_BUFFER,0,this.el.subarray(0,this.Xg));c&&0<=c.Ve&&"<point>"!==c.name&&b.vertexAttribPointer(c.Ve,2,b.FLOAT,!1,0,0)}for(var f,b=0,c=this.Qd;b<c;b++)switch(f=this.De[b],f.type){case 1:f.uu();break;case 2:f.Du();break;case 3:f.Au();break;case 4:f.wu();break;case 5:f.Fu();break;case 6:f.vu();break;case 7:f.ru();break;case 8:f.tu();break;case 9:f.Bu();break;case 10:f.Cu();break;
case 11:f.Eu();break;case 12:f.xu();break;case 13:f.yu();break;case 14:f.zu()}this.sn=this.Xg=this.ue=this.Qd=0;this.ak=this.Tb=!1;this.Td++;4<=this.Td&&(this.Td=0)}};c.prototype.Tf=function(b){if(b!==this.Zp&&!this.Hh){var c=this.Ac();c.type=3;this.Zp=c.Sq=b;this.Tb=!1}};c.prototype.Bc=function(b){if(b!==this.Ff){var c=this.Ac();c.type=2;this.Ff=c.$c=b;this.Tb=!1}};c.prototype.$e=function(b,c){if((b!==this.$p||c!==this.Yp)&&!this.Hh){var f=this.Ac();f.type=4;f.gc=b;f.Cd=c;this.$p=b;this.Yp=c;this.Tb=
!1}};c.prototype.pr=function(){this.$e(this.F.ONE,this.F.ONE_MINUS_SRC_ALPHA)};c.prototype.ri=function(b,c,f,a,e,d,l,g){15992<=this.ue&&this.qf();var k=this.ue,v=this.Xg,h=this.tl,p=this.el,m=this.Rl;if(this.Tb)this.De[this.Qd-1].Cd+=6;else{var q=this.Ac();q.type=1;q.gc=this.Ia?k:k/2*3;q.Cd=6;this.Tb=!0}this.Ia?(h[k++]=b,h[k++]=c,h[k++]=m,h[k++]=f,h[k++]=a,h[k++]=m,h[k++]=e,h[k++]=d,h[k++]=m,h[k++]=l,h[k++]=g,h[k++]=m):(h[k++]=b,h[k++]=c,h[k++]=f,h[k++]=a,h[k++]=e,h[k++]=d,h[k++]=l,h[k++]=g);p[v++]=
0;p[v++]=0;p[v++]=1;p[v++]=0;p[v++]=1;p[v++]=1;p[v++]=0;p[v++]=1;this.ue=k;this.Xg=v};c.prototype.Hd=function(b,c,f,a,e,d,l,g,k){15992<=this.ue&&this.qf();var v=this.ue,h=this.Xg,p=this.tl,m=this.el,q=this.Rl;if(this.Tb)this.De[this.Qd-1].Cd+=6;else{var w=this.Ac();w.type=1;w.gc=this.Ia?v:v/2*3;w.Cd=6;this.Tb=!0}var w=k.left,r=k.top,G=k.right;k=k.bottom;this.Ia?(p[v++]=b,p[v++]=c,p[v++]=q,p[v++]=f,p[v++]=a,p[v++]=q,p[v++]=e,p[v++]=d,p[v++]=q,p[v++]=l,p[v++]=g,p[v++]=q):(p[v++]=b,p[v++]=c,p[v++]=f,
p[v++]=a,p[v++]=e,p[v++]=d,p[v++]=l,p[v++]=g);m[h++]=w;m[h++]=r;m[h++]=G;m[h++]=r;m[h++]=G;m[h++]=k;m[h++]=w;m[h++]=k;this.ue=v;this.Xg=h};c.prototype.qc=function(b){if(this.Uh!==b){if(!this.Sa[b]){if(0===this.Uh)return;b=0}var c=this.Ac();c.type=9;this.Uh=c.gc=b;this.Tb=!1}};c.prototype.pi=function(b){b=this.Sa[b];return!(!b.Nf&&!b.Mf)};c.prototype.vn=function(b){b=this.Sa[b];return!!(b.Nf||b.Mf||b.gp)};c.prototype.un=function(b){return this.Sa[b].kd};c.prototype.hx=function(b){b=this.Sa[b];return 0!==
b.Zl||0!==b.$l};c.prototype.Mv=function(b){return this.Sa[b].Zl};c.prototype.Nv=function(b){return this.Sa[b].$l};c.prototype.Ov=function(b,c){return this.Sa[b].da[c][2]};c.prototype.Jk=function(b){return this.Sa[b].Ro};c.prototype.Tg=function(b,c,f,a,e,d,l,g,k,v,h,p,m,q,w){var r=this.Sa[this.Uh],G,n;if(r.gw||w.length){G=this.Ac();G.type=10;G.ka?jc(this.Jc,G.ka):G.ka=ic();n=G.ka;n[0]=c;n[1]=f;n[2]=a;n[3]=e;n[4]=d;n[5]=l;n[6]=g;n[7]=k;n[8]=v;n[9]=h;n[10]=p;n[11]=m;n[12]=q;r.$h?G.$c=b:G.$c=null;if(w.length)for(f=
G.Ar,f.length=w.length,b=0,c=w.length;b<c;b++)f[b]=w[b];this.Tb=!1}};c.prototype.clear=function(b,c,f,a){var e=this.Ac();e.type=7;e.gc=0;e.ka||(e.ka=ic());e.ka[0]=b;e.ka[1]=c;e.ka[2]=f;e.ka[3]=a;this.Tb=!1};c.prototype.clearRect=function(b,c,f,a){if(!(0>f||0>a)){var e=this.Ac();e.type=7;e.gc=1;e.ka||(e.ka=ic());e.ka[0]=b;e.ka[1]=c;e.ka[2]=f;e.ka[3]=a;this.Tb=!1}};c.prototype.sr=function(b){if(this.Ia&&(b=!!b,this.Hh!==b)){var c=this.Ac();c.type=14;c.gc=b?1:0;this.Tb=!1;this.Hh=b;this.Mk=null;this.Hh?
this.qc(2):this.qc(0)}};c.prototype.rr=function(b){if(this.Ia){var c=this.Ac();c.type=13;c.gc=b?1:0;this.Tb=!1}};c.prototype.up=function(){jc(this.Jm,t);this.Jd();this.td();var b=this.width/2,c=this.height/2;this.ri(-b,c,b,c,b,-c,-b,-c);jc(t,this.Jc);this.td()};c.prototype.qr=function(b,c,f){this.qc(3);var a=this.Ac();a.type=12;a.ka||(a.ka=ic());a.ka[0]=b;a.ka[1]=c;a.ka[2]=f;a.ka[3]=1;this.Tb=!1};c.prototype.Hx=function(){this.qc(0)};c.prototype.tx=function(){this.qc(2)};c.prototype.gx=function(){this.qf();
this.F.flush()};var q=[],g={};c.prototype.iu=function(){F(q);g={}};c.prototype.Eg=function(b,c,f,a){c=!!c;f=!!f;var e=b.src+","+c+","+f+(c?",undefined":""),d=null;if("undefined"!==typeof b.src&&g.hasOwnProperty(e))return d=g[e],d.lj++,d;this.qf();var l=this.F,k=ja(b.width)&&ja(b.height),d=l.createTexture();l.bindTexture(l.TEXTURE_2D,d);l.pixelStorei(l.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var m=l.RGBA,v=l.RGBA,h=l.UNSIGNED_BYTE;if(a&&!this.Re)switch(a){case 1:v=m=l.RGB;break;case 2:h=l.UNSIGNED_SHORT_4_4_4_4;
break;case 3:h=l.UNSIGNED_SHORT_5_5_5_1;break;case 4:v=m=l.RGB,h=l.UNSIGNED_SHORT_5_6_5}if(1===this.version&&!k&&c){a=document.createElement("canvas");a.width=ka(b.width);a.height=ka(b.height);var p=a.getContext("2d");"undefined"!==typeof p.imageSmoothingEnabled?p.imageSmoothingEnabled=f:(p.webkitImageSmoothingEnabled=f,p.mozImageSmoothingEnabled=f,p.msImageSmoothingEnabled=f);p.drawImage(b,0,0,b.width,b.height,0,0,a.width,a.height);l.texImage2D(l.TEXTURE_2D,0,m,v,h,a)}else l.texImage2D(l.TEXTURE_2D,
0,m,v,h,b);c?(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_S,l.REPEAT),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_T,l.REPEAT)):(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_S,l.CLAMP_TO_EDGE),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_T,l.CLAMP_TO_EDGE));f?(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MAG_FILTER,l.LINEAR),(k||2<=this.version)&&this.mp?(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MIN_FILTER,l.LINEAR_MIPMAP_LINEAR),l.generateMipmap(l.TEXTURE_2D)):l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MIN_FILTER,
l.LINEAR)):(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MAG_FILTER,l.NEAREST),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MIN_FILTER,l.NEAREST));l.bindTexture(l.TEXTURE_2D,null);this.Ff=null;d.kf=b.width;d.jf=b.height;d.lj=1;d.Yo=e;q.push(d);return g[e]=d};c.prototype.Qc=function(b,c,f){var a;this.qf();var e=this.F;this.Re&&(a=!1);var d=e.createTexture();e.bindTexture(e.TEXTURE_2D,d);e.texImage2D(e.TEXTURE_2D,0,e.RGBA,b,c,0,e.RGBA,a?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,f?e.LINEAR:e.NEAREST);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,f?e.LINEAR:e.NEAREST);e.bindTexture(e.TEXTURE_2D,null);this.Ff=null;d.kf=b;d.jf=c;q.push(d);return d};c.prototype.deleteTexture=function(b){b&&("undefined"!==typeof b.lj&&1<b.lj?b.lj--:(this.qf(),b===this.Ff&&(this.F.bindTexture(this.F.TEXTURE_2D,null),this.Ff=null),b===this.Gf&&(this.F.activeTexture(this.F.TEXTURE1),
this.F.bindTexture(this.F.TEXTURE_2D,null),this.F.activeTexture(this.F.TEXTURE0),this.Gf=null),Da(q,b),"undefined"!==typeof b.Yo&&delete g[b.Yo],this.F.deleteTexture(b)))};c.prototype.Yc=function(b){if(b!==this.Mk){var c=this.Ac();c.type=6;this.Mk=c.$c=b;this.Tb=!1}};ob=c})();
(function(){function c(a){if(a&&(a.getContext||a.dc)&&!a.c2runtime){a.c2runtime=this;var b=this;this.Gc=(this.bk=/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.Ub=!!a.dc;this.Pp="undefined"!==typeof window.AppMobi||
this.Ub;this.Uc=!!window.c2cocoonjs;this.gd=!!window.c2ejecta;this.Uc&&(CocoonJS.App.onSuspended.addEventListener(function(){b.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){b.setSuspended(!1)}));this.gd&&(document.addEventListener("pagehide",function(){b.setSuspended(!0)}),document.addEventListener("pageshow",function(){b.setSuspended(!1)}),document.addEventListener("resize",function(){b.setSize(window.innerWidth,window.innerHeight)}));this.Na=this.Ub||this.Uc||this.gd;this.Jh=
/edge\//i.test(navigator.userAgent);this.Re=(/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent))&&!this.Jh;this.Sp=/tizen/i.test(navigator.userAgent);this.Zj=/android/i.test(navigator.userAgent)&&!this.Sp&&!this.Re&&!this.Jh;this.Xp=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&!this.Re&&!this.Jh;this.zw=/ipad/i.test(navigator.userAgent);this.zg=this.Xp||this.zw||this.gd;this.Am=(/chrome/i.test(navigator.userAgent)||
/chromium/i.test(navigator.userAgent))&&!this.Re&&!this.Jh;this.Op=/amazonwebappplatform/i.test(navigator.userAgent);this.rw=/firefox/i.test(navigator.userAgent);this.vw=/safari/i.test(navigator.userAgent)&&!this.Am&&!this.Re&&!this.Jh;this.ww=/windows/i.test(navigator.userAgent);this.ck="undefined"!==typeof window.c2nodewebkit||"undefined"!==typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.Up=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);
this.Vp=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.Oh=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.Gm=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.Fm=!!window.cr_windows10;this.Tp=this.Up||this.Vp||this.Gm||this.Fm;this.pw=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.$j=this.Zj&&!this.Am&&!this.bk&&!this.rw&&!this.Op&&!this.Na;this.devicePixelRatio=
1;this.Cf=this.Gc||this.bk||this.Pp||this.Uc||this.Zj||this.zg||this.Oh||this.Gm||this.pw||this.Sp||this.gd;this.Cf||(this.Cf=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));this.dk=!!(this.zg&&this.Gc&&window.webkit);"undefined"===typeof cr_is_preview||this.ck||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||(this.ck=!0);this.canvas=a;this.$o=document.getElementById("c2canvasdiv");
this.C=this.F=null;this.pm="(unavailable)";this.Ia=!1;this.pf=0;this.La=null;this.Kj=!1;this.Kq=this.Lq=0;this.canvas.oncontextmenu=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.onselectstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.ontouchstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.Ub&&(window.c2runtime=this);this.ck&&(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.$j&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=a.width;this.height=a.height;this.S=this.width;this.R=this.height;this.wj=this.width;this.ph=this.height;this.Bg=window.innerWidth;this.Ag=window.innerHeight;this.Ba=!0;this.Mh=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.B=[];this.Oa=[];this.Dg={};this.hd=[];this.Yl={};
this.Yd=[];this.fh=[];this.ml=[];this.Bl=[];this.Zt=[];this.Gr=null;this.mf={};this.Cm=this.Pe=!1;this.Hc=0;this.Bm=this.Em=!1;this.ed=[];this.Ih=!1;this.kk=this.Hn="";this.sb=null;this.ee="";this.Ki=this.Dr=!1;this.Jj=[];this.of=this.Me=0;this.Aq=30;this.Ol=this.di=0;this.Yf=1;this.qb=new cb;this.ve=new cb;this.uk=this.Mj=this.tf=this.pe=this.If=this.em=this.hk=0;this.Rd=null;this.Dj=[];this.Xl=[];this.Fj=-1;this.Vm=[[]];this.Zn=this.ok=0;this.Kk(null);this.ei=[];this.fi=-1;this.Fq=this.ji=0;this.Qm=
!0;this.uh=0;this.Li=[];this.Wn=this.xn=-1;this.Ef=!0;this.Fg=0;this.Kh=!1;this.Kx=0;this.fg=null;this.ab=this.Sj=!1;this.Jq=new ca;this.bn=new ca;this.cn=new ca;this.Sf=[];this.od=new eb([]);this.Un=new eb([]);this.Be=[];this.rg={};this.Ie={};this.Ae={};this.eh={};this.Uo={};this.cq=this.jk=this.cb=this.rb=this.bq=this.ik=this.T=null;this.bh=this.Hm=!1;this.fm=[null,null];this.uf=0;this.cm="";this.he={};this.Ii=this.Te=null;this.Fr="";this.tk=[];this.rx()}}function m(a,b){return 128>=b?a[3]:256>=
b?a[2]:512>=b?a[1]:a[0]}function n(){try{return!!window.indexedDB}catch(a){return!1}}function k(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function t(a,b,e,d){try{var c=indexedDB.open("_C2SaveStates");c.onupgradeneeded=k;c.onerror=d;c.onsuccess=function(c){c=c.target.result;c.onerror=d;c.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,data:b}).onsuccess=e}}catch(l){d(l)}}function q(a,b,e){try{var d=indexedDB.open("_C2SaveStates");d.onupgradeneeded=k;d.onerror=
e;d.onsuccess=function(d){d=d.target.result;d.onerror=e;var c=d.transaction(["saves"]).objectStore("saves").get(a);c.onsuccess=function(){c.result?b(c.result.data):b(null)}}}catch(c){e(c)}}function g(){fa("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 b(a){var b,e={};for(b in a)!a.hasOwnProperty(b)||a[b]instanceof ca||a[b]&&"undefined"!==typeof a[b].Xy||
"spriteCreatedDestroyCallback"!==b&&(e[b]=a[b]);return e}var u=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;c.prototype.rx=function(){var a=this;if(this.dk)this.xv(function(b){a.Xh(JSON.parse(b))},function(){alert("Error fetching data.js")});else{var b;this.Oh?b=new ActiveXObject("Microsoft.XMLHTTP"):b=new XMLHttpRequest;var e="data.js";if(this.Up||this.Oh||this.Gm||this.Fm)e="data.json";
b.open("GET",e,!0);var d=!1;if(!this.Na&&"response"in b&&"responseType"in b)try{b.responseType="json",d="json"===b.responseType}catch(c){d=!1}if(!d&&"responseType"in b)try{b.responseType="text"}catch(l){}if("overrideMimeType"in b)try{b.overrideMimeType("application/json; charset=utf-8")}catch(h){}this.Oh?b.onreadystatechange=function(){4===b.readyState&&a.Xh(JSON.parse(b.responseText))}:(b.onload=function(){if(d)a.Xh(b.response);else if(a.gd){var e=b.responseText,e=e.substr(e.indexOf("{"));a.Xh(JSON.parse(e))}else a.Xh(JSON.parse(b.responseText))},
b.onerror=function(a){ga("Error requesting "+e+":");ga(a)});b.send()}};c.prototype.kw=function(){var a=this,b,e,d,c,l,h,f,p,g;this.Df=(!this.Na||this.gd||this.Gc)&&this.Wx&&!this.$j;0===this.Zb&&this.zg&&(this.Df=!1);this.devicePixelRatio=this.Df?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.Pb();0<this.Zb&&this.setSize(window.innerWidth,window.innerHeight,!0);this.canvas.addEventListener("webglcontextlost",function(b){b.preventDefault();
a.Ow();fa("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){a.C.Jp();a.C.Uf(a.C.width,a.C.height,!0);a.rb=null;a.cb=null;a.fm[0]=null;a.fm[1]=null;a.Pw();a.Ba=!0;fa("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);try{this.Nu&&(this.Uc||this.gd||!this.Na)&&(b={alpha:!0,depth:!1,antialias:!1,powerPreference:"high-performance",failIfMajorPerformanceCaveat:!0},this.F=this.canvas.getContext("webgl2",
b)||this.canvas.getContext("webgl",b)||this.canvas.getContext("experimental-webgl",b))}catch(w){}if(this.F){if(b=this.F.getExtension("WEBGL_debug_renderer_info"))this.pm=this.F.getParameter(b.UNMASKED_RENDERER_WEBGL)+" ["+this.F.getParameter(b.UNMASKED_VENDOR_WEBGL)+"]";this.Ia&&(this.pm+=" [front-to-back enabled]");this.Na||(this.Nb=document.createElement("canvas"),jQuery(this.Nb).appendTo(this.canvas.parentNode),this.Nb.oncontextmenu=function(){return!1},this.Nb.onselectstart=function(){return!1},
this.Nb.width=Math.round(this.wj*this.devicePixelRatio),this.Nb.height=Math.round(this.ph*this.devicePixelRatio),jQuery(this.Nb).css({width:this.wj+"px",height:this.ph+"px"}),this.fr(),this.qn=this.Nb.getContext("2d"));this.C=new ob(this.F,this.Cf,this.Ia);this.C.Uf(this.canvas.width,this.canvas.height);this.C.mp=0!==this.Gu;this.La=null;b=0;for(e=this.B.length;b<e;b++)for(l=this.B[b],d=0,c=l.ba.length;d<c;d++)f=l.ba[d],f.gb=this.C.om(f.id),f.kd=this.C.un(f.gb),this.bh=this.bh||this.C.pi(f.gb);b=
0;for(e=this.hd.length;b<e;b++){p=this.hd[b];d=0;for(c=p.ba.length;d<c;d++)f=p.ba[d],f.gb=this.C.om(f.id),f.kd=this.C.un(f.gb);p.sd();d=0;for(c=p.fa.length;d<c;d++){g=p.fa[d];l=0;for(h=g.ba.length;l<h;l++)f=g.ba[l],f.gb=this.C.om(f.id),f.kd=this.C.un(f.gb),this.bh=this.bh||this.C.pi(f.gb);g.sd()}}}else{if(0<this.Zb&&this.Ub){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.La=AppMobi.canvas.getContext("2d");try{this.La.samplingMode=this.Ja?
"smooth":"sharp",this.La.globalScale=1,this.La.HTML5CompatibilityMode=!0,this.La.imageSmoothingEnabled=this.Ja}catch(k){}0!==this.width&&0!==this.height&&(this.La.width=this.width,this.La.height=this.height)}this.La||(this.Uc?(b={antialias:!!this.Ja,alpha:!0},this.La=this.canvas.getContext("2d",b)):(b={alpha:!0},this.La=this.canvas.getContext("2d",b)),this.Rk(this.La,this.Ja));this.qn=this.Nb=null}this.Mr=function(b){a.Ta(!1,b)};window==window.top||this.Na||this.Tp||this.Oh||(document.addEventListener("mousedown",
function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.Uc&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(fa("Reloading for continuous preview"),this.kk="__c2_continuouspreview",this.Ki=!0),this.Ww&&!this.Cf&&(jQuery(window).focus(function(){a.setSuspended(!1)}),jQuery(window).blur(function(){var b=window.parent;b&&b.document.hasFocus()||a.setSuspended(!0)})));
window.addEventListener("blur",function(){a.Ye()});this.Na||(b=function(a){if(nb(a)&&document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(b){}},"undefined"!==typeof PointerEvent?document.addEventListener("pointerdown",b):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",b):document.addEventListener("touchstart",b),document.addEventListener("mousedown",b));0===this.Zb&&
this.Df&&1<this.devicePixelRatio&&this.setSize(this.ub,this.tb,!0);this.Rr();this.dw();this.go();this.L={}};c.prototype.setSize=function(a,b,e){var d=0,c=0,l=0,h=0,h=0;if(this.Bg!==a||this.Ag!==b||e){this.Bg=a;this.Ag=b;var f=this.Zb;if((l=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.Kh)&&!this.Gc)||0!==this.Zb||e)l&&0<this.uf&&(f=this.uf),e=this.devicePixelRatio,4<=f?(l=this.ub/this.tb,a/b>l?(l*=b,5===f?(h=l*e/this.ub,1<h?h=Math.floor(h):
1>h&&(h=1/Math.ceil(1/h)),l=this.ub*h/e,h=this.tb*h/e,d=(a-l)/2,c=(b-h)/2,a=l,b=h):(d=(a-l)/2,a=l)):(h=a/l,5===f?(h=h*e/this.tb,1<h?h=Math.floor(h):1>h&&(h=1/Math.ceil(1/h)),l=this.ub*h/e,h=this.tb*h/e,d=(a-l)/2,c=(b-h)/2,a=l):c=(b-h)/2,b=h)):this.ck&&this.Kh&&0===this.vp&&(d=Math.floor((a-this.ub)/2),c=Math.floor((b-this.tb)/2),a=this.ub,b=this.tb),2>f&&(this.kh=e),this.wj=Math.round(a),this.ph=Math.round(b),this.width=Math.round(a*e),this.height=Math.round(b*e),this.Ba=!0,this.bs?(this.S=this.width,
this.R=this.height,this.Dc=!0):this.width<this.ub&&this.height<this.tb||1===f?(this.S=this.width,this.R=this.height,this.Dc=!0):(this.S=this.ub,this.R=this.tb,this.Dc=!1,2===f?(l=this.ub/this.tb,f=this.Bg/this.Ag,f<l?this.S=this.R*f:f>l&&(this.R=this.S/f)):3===f&&(l=this.ub/this.tb,f=this.Bg/this.Ag,f>l?this.S=this.R*f:f<l&&(this.R=this.S/f))),this.$o&&!this.Na&&(jQuery(this.$o).css({width:Math.round(a)+"px",height:Math.round(b)+"px","margin-left":Math.floor(d)+"px","margin-top":Math.floor(c)+"px"}),
"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(a)+"px",height:Math.round(b)+"px"})),this.canvas&&(this.canvas.width=Math.round(a*e),this.canvas.height=Math.round(b*e),this.gd?(this.canvas.style.left=Math.floor(d)+"px",this.canvas.style.top=Math.floor(c)+"px",this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(b)+"px"):this.Df&&!this.Na&&(this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(b)+"px")),this.Nb&&(this.Nb.width=
Math.round(a*e),this.Nb.height=Math.round(b*e),this.Nb.style.width=this.wj+"px",this.Nb.style.height=this.ph+"px"),this.C&&this.C.Uf(Math.round(a*e),Math.round(b*e)),this.Ub&&this.La&&(this.La.width=Math.round(a),this.La.height=Math.round(b)),this.La&&this.Rk(this.La,this.Ja),this.Rr(),this.Xp&&!this.Gc&&window.scrollTo(0,0)}};c.prototype.Rr=function(){if(this.au&&0!==this.pn){var a="portrait";2===this.pn&&(a="landscape");try{screen.orientation&&screen.orientation.lock?screen.orientation.lock(a).catch(function(){}):
screen.lockOrientation?screen.lockOrientation(a):screen.webkitLockOrientation?screen.webkitLockOrientation(a):screen.mozLockOrientation?screen.mozLockOrientation(a):screen.msLockOrientation&&screen.msLockOrientation(a)}catch(b){console&&console.warn&&console.warn("Failed to lock orientation: ",b)}}};c.prototype.Ow=function(){this.C.iu();this.Hm=!0;var a,b,e;a=0;for(b=this.B.length;a<b;a++)e=this.B[a],e.vk&&e.vk()};c.prototype.Pw=function(){this.Hm=!1;var a,b,e;a=0;for(b=this.B.length;a<b;a++)e=this.B[a],
e.xk&&e.xk()};c.prototype.fr=function(){if(!this.Na){var a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.Kh)&&!this.Gc?jQuery(this.canvas).offset():jQuery(this.canvas).position();a.position="absolute";jQuery(this.Nb).css(a)}};var f=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;c.prototype.setSuspended=function(a){var b;if(a&&
!this.Mh)for(fa("[Construct 2] Suspending"),this.Mh=!0,-1!==this.xn&&f&&f(this.xn),-1!==this.Wn&&clearTimeout(this.Wn),a=0,b=this.Li.length;a<b;a++)this.Li[a](!0);else if(!a&&this.Mh){fa("[Construct 2] Resuming");this.Mh=!1;this.hk=Za();this.If=Za();a=this.di=this.Mj=0;for(b=this.Li.length;a<b;a++)this.Li[a](!1);this.Ta(!1)}};c.prototype.Po=function(a){this.Li.push(a)};c.prototype.ye=function(a){return this.tk[a]};c.prototype.Xh=function(a){a&&a.project||ga("Project model unavailable");a=a.project;
this.name=a[0];this.tp=a[1];this.Zb=a[12];this.vp=a[12];this.ub=a[10];this.tb=a[11];this.Zq=this.ub/2;this.$q=this.tb/2;this.Na&&!this.gd&&(4<=a[12]||0===a[12])&&(fa("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.vp=this.Zb=3);this.fo=a[18];this.Ue=a[19];if(0===this.Ue){var b=new Image;b.crossOrigin="anonymous";this.tr(b,"loading-logo.png");this.Te={pk:b}}else if(4===this.Ue){b=new Image;b.src="";var e=new Image;e.src="";var d=
new Image;d.src="";var c=new Image;c.src="";var l=new Image;l.src="";var h=new Image;h.src="";var f=new Image;f.src="";var p=new Image;p.src="";var g=new Image;g.src="";var w=new Image;w.src="";var k=new Image;k.src="";var v=new Image;v.src="";this.Te={pk:[b,e,d,c],ax:[l,h,f,p],Zx:[g,w,k,v]}}this.ji=a[21];this.tk=nc();this.Ld=new W(this);b=0;for(e=a[2].length;b<e;b++)f=a[2][b],d=this.ye(f[0]),pb(f,d.prototype),p=new d(this),p.$k=f[1],p.Se=f[2],p.yw=f[5],p.Cq=f[9],p.M&&p.M(),this.plugins.push(p);this.tk=
nc();b=0;for(e=a[3].length;b<e;b++){f=a[3][b];l=this.ye(f[1]);p=null;d=0;for(c=this.plugins.length;d<c;d++)if(this.plugins[d]instanceof l){p=this.plugins[d];break}g=new p.ja(p);g.name=f[0];g.N=f[2];g.zm=f[3].slice(0);g.Yx=f[3].length;g.bu=f[4];g.Bv=f[5];g.ma=f[11];g.N?(g.Pf=[],g.Zd=this.uh++,g.Ma=null):(g.Pf=null,g.Zd=-1,g.Ma=[]);g.Hj=null;g.mg=null;g.np=null;g.Kb=!1;g.uc=null;f[6]?(g.fl=f[6][0],g.Vn=f[6][1],g.Pi=f[6][2]):(g.fl=null,g.Vn=0,g.Pi=0);f[7]?g.sc=f[7]:g.sc=null;g.index=b;g.j=[];g.Aj=[];
g.oe=[new qb(g)];g.xd=0;g.Rc=null;g.ou=0;g.Wg=!0;g.ol=rb;g.Bp=sb;g.Kv=tb;g.Y=ub;g.qi=vb;g.Qg=wb;g.ke=xb;g.Pj=yb;g.gm=zb;g.km=Cb;g.Oc=Db;g.lm=Eb;g.tj=new fb(this.ub,this.tb);g.ej=!0;g.fj=!1;g.L={};g.toString=Fb;g.Oa=[];d=0;for(c=f[8].length;d<c;d++){w=f[8][d];k=this.ye(w[1]);v=null;l=0;for(h=this.Oa.length;l<h;l++)if(this.Oa[l]instanceof k){v=this.Oa[l];break}v||(v=new k(this),v.$m=[],v.sk=new ca,v.M&&v.M(),this.Oa.push(v),fc.Jx&&v instanceof fc.Jx&&(this.Gr=v));-1===v.$m.indexOf(g)&&v.$m.push(g);
l=new v.ja(v,g);l.name=w[0];l.ma=w[2];l.M();g.Oa.push(l)}g.global=f[9];g.Dm=f[10];g.ba=[];d=0;for(c=f[12].length;d<c;d++)g.ba.push({id:f[12][d][0],name:f[12][d][1],gb:-1,kd:!1,Qb:!0,index:d});g.rz=f[13];this.fo&&!g.N&&!g.Dm&&p.Se||g.M();g.name&&(this.types[g.name]=g);this.B.push(g);p.$k&&(d=new p.aa(g),d.uid=this.ji++,d.ir=this.Fq++,d.Af=0,d.Bh=Gb,d.toString=Hb,d.G=f[14],d.M(),g.j.push(d),this.he[d.uid.toString()]=d)}b=0;for(e=a[4].length;b<e;b++)for(l=a[4][b],h=this.B[l[0]],d=1,c=l.length;d<c;d++)f=
this.B[l[d]],f.Ma.push(h),h.Pf.push(f);b=0;for(e=a[28].length;b<e;b++){l=a[28][b];h=[];d=0;for(c=l.length;d<c;d++)h.push(this.B[l[d]]);d=0;for(c=h.length;d<c;d++)h[d].Kb=!0,h[d].uc=h}if(0<this.uh)for(b=0,e=this.B.length;b<e;b++)if(f=this.B[b],!f.N&&f.Ma.length){f.Hj=Array(this.uh);f.mg=Array(this.uh);f.np=Array(this.uh);g=[];d=v=k=w=0;for(c=f.Ma.length;d<c;d++)for(p=f.Ma[d],f.Hj[p.Zd]=w,w+=p.Yx,f.mg[p.Zd]=k,k+=p.bu,f.np[p.Zd]=v,v+=p.Bv,l=0,h=p.ba.length;l<h;l++)g.push(xa({},p.ba[l]));f.ba=g.concat(f.ba);
d=0;for(c=f.ba.length;d<c;d++)f.ba[d].index=d}b=0;for(e=a[5].length;b<e;b++)f=a[5][b],d=new Ib(this,f),this.Dg[d.name]=d,this.hd.push(d);b=0;for(e=a[6].length;b<e;b++)f=a[6][b],d=new Jb(this,f),this.Yl[d.name]=d,this.Yd.push(d);b=0;for(e=this.Yd.length;b<e;b++)this.Yd[b].Xa();b=0;for(e=this.Yd.length;b<e;b++)this.Yd[b].bo();b=0;for(e=this.ml.length;b<e;b++)this.ml[b].Xa();F(this.ml);this.$t=a[7];this.cm=a[8];this.jd=a[9];this.kh=1;this.Nu=a[13];this.Ja=a[14];this.dp=a[15];this.Wx=a[17];this.pn=a[20];
this.au=0<this.pn;this.Ww=a[22];this.Dc=this.bs=a[23];this.Gu=a[24];this.bx=a[25];this.Ia=a[27]&&!this.Re;this.al=Date.now();F(this.tk);this.kw()};var a=!1,e=0,d=[];c.prototype.kx=function(a,b){function c(){e--;l.wq()}var l=this;a.addEventListener("load",c);a.addEventListener("error",c);d.push([a,b]);this.wq()};c.prototype.wq=function(){for(var a;d.length&&100>e;)e++,a=d.shift(),this.tr(a[0],a[1])};c.prototype.io=function(b,e){b.cocoonLazyLoad=!0;b.onerror=function(e){a=b.Xo=!0;console&&console.error&&
console.error("Error loading image '"+b.src+"': ",e)};this.gd?b.src=e:b.src||("undefined"!==typeof XAPKReader?XAPKReader.get(e,function(a){b.src=a},function(d){a=b.Xo=!0;console&&console.error&&console.error("Error extracting image '"+e+"' from expansion file: ",d)}):(b.crossOrigin="anonymous",this.kx(b,e)));this.fh.push(b)};c.prototype.zv=function(a){var b,e;b=0;for(e=this.fh.length;b<e;b++)if(this.fh[b].ju===a)return this.fh[b];return null};var l=0,B=!1;c.prototype.dw=function(){this.fg&&(l=this.fg.Fx(this.$t))};
c.prototype.So=function(){var a=l,b=0,e=0,d=!0,c,h,e=0;for(c=this.fh.length;e<c;e++){h=this.fh[e];var f=h.fp;if(!f||0>=f)f=5E4;a+=f;h.src&&(h.complete||h.loaded)&&!h.Xo?b+=f:d=!1}d&&this.bx&&this.fg&&(B||(this.fg.Lx(),B=!0),e=this.fg.Lv(),b+=e,e<l&&(d=!1));this.ld=0==a?1:b/a;return d};var J=!1;c.prototype.go=function(){if(this.La||this.C){var b=this.La||this.qn;this.Nb&&this.fr();var e=window.innerWidth,d=window.innerHeight;this.Bg===e&&this.Ag===d||this.setSize(e,d);this.ld=0;this.aq=-1;var c=this;
if(this.So()&&(4!==this.Ue||J))this.ew();else{d=Date.now()-this.al;if(b){var l=this.width,h=this.height,e=this.devicePixelRatio;if(3>this.Ue&&(this.Uc||500<=d&&this.aq!=this.ld)){b.clearRect(0,0,l,h);var d=l/2,h=h/2,l=0===this.Ue&&this.Te.pk.complete,f=40*e,p=0,g=80*e,w;if(l){var k=this.Te.pk,g=k.width*e;w=k.height*e;f=g/2;p=w/2;b.drawImage(k,ra(d-f),ra(h-p),g,w)}1>=this.Ue?(d=ra(d-f)+.5,h=ra(h+(p+(l?12*e:0)))+.5,b.fillStyle=a?"red":"DodgerBlue",b.fillRect(d,h,Math.floor(g*this.ld),6*e),b.strokeStyle=
"black",b.strokeRect(d,h,g,6*e),b.strokeStyle="white",b.strokeRect(d-1*e,h-1*e,g+2*e,8*e)):2===this.Ue&&(b.font=this.gd?"12pt ArialMT":"12pt Arial",b.fillStyle=a?"#f00":"#999",b.qz="middle",e=Math.round(100*this.ld)+"%",l=b.measureText?b.measureText(e):null,b.fillText(e,d-(l?l.width:0)/2,h));this.aq=this.ld}else if(4===this.Ue){this.Lu(b);u?u(function(){c.go()}):setTimeout(function(){c.go()},16);return}}setTimeout(function(){c.go()},this.Uc?10:100)}}};var v=-1,h="undefined"===typeof cr_is_preview?
200:0,p=!0,V=!1,U=0,w=0,r="undefined"===typeof cr_is_preview?3E3:0,G=null,y=null,Q=0;c.prototype.Lu=function(b){if(!J){for(var e=Math.ceil(this.width),d=Math.ceil(this.height),c=this.Te.pk,l=this.Te.ax,f=this.Te.Zx,g=0;4>g;++g)if(!c[g].complete||!l[g].complete||!f[g].complete)return;0===Q&&(v=Date.now());var g=Date.now(),k=!1,B=b,n,q;p||V?(b.clearRect(0,0,e,d),G&&G.width===e&&G.height===d||(G=document.createElement("canvas"),G.width=e,G.height=d,y=G.getContext("2d")),B=y,k=!0,p&&1===Q&&(v=Date.now())):
b.globalAlpha=1;B.fillStyle="#333333";B.fillRect(0,0,e,d);256<this.ph?(n=Ea(.22*d,105,.6*e),q=.25*n,B.drawImage(m(l,n),.5*e-n/2,.2*d-q/2,n,q),q=n=Math.min(.395*d,.95*e),B.drawImage(m(c,n),.5*e-n/2,.485*d-q/2,n,q),n=Ea(.22*d,105,.6*e),q=.25*n,B.drawImage(m(f,n),.5*e-n/2,.868*d-q/2,n,q),B.fillStyle="#3C3C3C",n=e,q=Math.max(.005*d,2),B.fillRect(0,.8*d-q/2,n,q),B.fillStyle=a?"red":"#E0FF65",n=e*this.ld,B.fillRect(.5*e-n/2,.8*d-q/2,n,q)):(q=n=.55*d,B.drawImage(m(c,n),.5*e-n/2,.45*d-q/2,n,q),B.fillStyle=
"#3C3C3C",n=e,q=Math.max(.005*d,2),B.fillRect(0,.85*d-q/2,n,q),B.fillStyle=a?"red":"#E0FF65",n=e*this.ld,B.fillRect(.5*e-n/2,.85*d-q/2,n,q));k&&(p?b.globalAlpha=0===Q?0:Math.min((g-v)/300,1):V&&(b.globalAlpha=Math.max(1-(g-w)/300,0)),b.drawImage(G,0,0,e,d));p&&300<=g-v&&2<=Q&&(p=!1,U=g);!p&&g-U>=r&&!V&&1<=this.ld&&(V=!0,w=g);if(V&&g-w>=300+h||"undefined"!==typeof cr_is_preview&&1<=this.ld&&500>Date.now()-v)J=!0,V=p=!1,this.Te=y=G=null;++Q}};c.prototype.ew=function(){this.Nb&&(this.canvas.parentNode.removeChild(this.Nb),
this.Nb=this.qn=null);this.al=Date.now();this.If=Za();var a,b,e;if(this.fo)for(a=0,b=this.B.length;a<b;a++)e=this.B[a],e.N||e.Dm||!e.ua.Se||e.M();else this.Ef=!1;a=0;for(b=this.hd.length;a<b;a++)this.hd[a].ku();2<=this.Zb&&(a=this.ub/this.tb,b=this.width/this.height,this.kh=2!==this.Zb&&b>a||2===this.Zb&&b<a?this.height/this.tb:this.width/this.ub);this.tp?this.Dg[this.tp].Sn():this.hd[0].Sn();this.fo||(this.Fg=1,this.trigger(W.prototype.n.Ao,null),window.C2_RegisterSW&&window.C2_RegisterSW());navigator.splashscreen&&
navigator.splashscreen.hide&&navigator.splashscreen.hide();a=0;for(b=this.B.length;a<b;a++)e=this.B[a],e.Mq&&e.Mq();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.Ta(!1);this.Ub&&AppMobi.webview.execute("onGameReady();")};c.prototype.Ta=function(a,b,e){if(this.T){var d=Za();if(e||!this.Mh||a){a||(u?this.xn=u(this.Mr):this.Wn=setTimeout(this.Mr,this.Cf?1:16));b=b||d;var c=this.Zb;((e=(document.mozFullScreen||document.webkitIsFullScreen||
document.fullScreen||!!document.msFullscreenElement)&&!this.Gc)||this.Kh)&&0<this.uf&&(c=this.uf);if(0<c){var c=window.innerWidth,l=window.innerHeight;this.Bg===c&&this.Ag===l||this.setSize(c,l)}this.Na||(e?this.Kj||(this.Kj=!0):this.Kj?(this.Kj=!1,0===this.Zb&&this.setSize(Math.round(this.Lq/this.devicePixelRatio),Math.round(this.Kq/this.devicePixelRatio),!0)):(this.Lq=this.width,this.Kq=this.height));this.Ef&&(e=this.So(),this.Fg=this.ld,e&&(this.Ef=!1,this.ld=1,this.trigger(W.prototype.n.Ao,null),
window.C2_RegisterSW&&window.C2_RegisterSW()));this.Iw(b);!this.Ba&&!this.Uc||this.Hm||this.Ki||a||(this.Ba=!1,this.C?this.vc():this.Xd(),this.Ii&&(this.canvas&&this.canvas.toDataURL&&(this.Fr=this.canvas.toDataURL(this.Ii[0],this.Ii[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.Fr),this.trigger(W.prototype.n.Ms,null)),this.Ii=null));this.az||(this.pe++,this.tf++,this.Mj++);this.di+=Za()-d}}};c.prototype.Iw=function(a){var b,e,d,c,l,h,f,g;1E3<=a-this.If&&(this.If+=1E3,1E3<=a-this.If&&(this.If=
a),this.em=this.Mj,this.Mj=0,this.Ol=this.di,this.di=0);b=0;0!==this.hk&&(b=a-this.hk,0>b&&(b=0),this.of=b/=1E3,.5<this.of?this.of=0:this.of>1/this.Aq&&(this.of=1/this.Aq));this.hk=a;this.Me=this.of*this.Yf;this.qb.add(this.Me);this.ve.add(b);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.Kh)&&!this.Gc;2<=this.Zb||a&&0<this.uf?(b=this.ub/this.tb,e=this.width/this.height,d=this.Zb,a&&0<this.uf&&(d=this.uf),this.kh=2!==d&&e>b||2===d&&
e<b?this.height/this.tb:this.width/this.ub,this.T&&(this.T.In(this.T.scrollX),this.T.Jn(this.T.scrollY))):this.kh=this.Df?this.devicePixelRatio:1;this.Pb();this.Hc++;this.Ld.wx();this.Hc--;this.Pb();this.Hc++;e=this.Jq.te();a=0;for(b=e.length;a<b;a++)e[a].kz();a=0;for(b=this.B.length;a<b;a++)if(h=this.B[a],!h.N&&(h.Oa.length||h.Ma.length))for(e=0,d=h.j.length;e<d;e++)for(f=h.j[e],c=0,l=f.U.length;c<l;c++)f.U[c].Ta();a=0;for(b=this.B.length;a<b;a++)if(h=this.B[a],!h.N&&(h.Oa.length||h.Ma.length))for(e=
0,d=h.j.length;e<d;e++)for(f=h.j[e],c=0,l=f.U.length;c<l;c++)g=f.U[c],g.$w&&g.$w();e=this.bn.te();a=0;for(b=e.length;a<b;a++)e[a].Ta();this.Hc--;this.fw();for(a=0;this.Rd&&10>a++;)this.lp(this.Rd);a=0;for(b=this.Yd.length;a<b;a++)this.Yd[a].um=!1;this.T.rf&&this.T.rf.fb();F(this.Sf);this.Qm=!1;this.Hc++;a=0;for(b=this.B.length;a<b;a++)if(h=this.B[a],!h.N&&(h.Oa.length||h.Ma.length))for(e=0,d=h.j.length;e<d;e++)for(f=h.j[e],c=0,l=f.U.length;c<l;c++)g=f.U[c],g.Zg&&g.Zg();e=this.cn.te();a=0;for(b=e.length;a<
b;a++)e[a].Zg();this.Hc--};c.prototype.Ye=function(){var a,b,e,d,c,l,h,f,g;a=0;for(b=this.B.length;a<b;a++)if(h=this.B[a],!h.N)for(e=0,d=h.j.length;e<d;e++)if(f=h.j[e],f.Ye&&f.Ye(),f.U)for(c=0,l=f.U.length;c<l;c++)g=f.U[c],g.Ye&&g.Ye()};c.prototype.lp=function(a){var b=this.T;this.T.Mx();var e,d,c;if(this.C)for(e=0,d=this.B.length;e<d;e++)c=this.B[e],c.N||!c.nl||c.global&&0!==c.j.length||-1!==a.Fh.indexOf(c)||c.nl();b==a&&F(this.Ld.rc);F(this.Sf);this.nr(!0);a.Sn();this.nr(!1);this.Qm=this.Ba=!0;
this.Pb()};c.prototype.nr=function(a){var b,e,d,c,l,h,f,g,p;b=0;for(e=this.Oa.length;b<e;b++)d=this.Oa[b],a?d.ki&&d.ki():d.li&&d.li();b=0;for(e=this.B.length;b<e;b++)if(d=this.B[b],d.global||d.ua.$k)for(c=0,l=d.j.length;c<l;c++)if(h=d.j[c],a?h.ki&&h.ki():h.li&&h.li(),h.U)for(f=0,g=h.U.length;f<g;f++)p=h.U[f],a?p.ki&&p.ki():p.li&&p.li()};c.prototype.Qi=function(a){this.bn.add(a)};c.prototype.Ox=function(a){this.cn.add(a)};c.prototype.pg=function(a){return a&&-1!==a.ii?this.of*a.ii:this.Me};c.prototype.Xd=
function(){this.T.Xd(this.La);this.Ub&&this.La.present()};c.prototype.vc=function(){this.Ia&&(this.pf=1,this.T.nf(this.C));this.T.vc(this.C);this.C.gx()};c.prototype.Al=function(a){a&&this.Dj.push(a)};c.prototype.qx=function(a){Da(this.Dj,a)};c.prototype.yh=function(a){a=a.toString();return this.he.hasOwnProperty(a)?this.he[a]:null};var I=[];c.prototype.xe=function(a){var b,e;b=a.type.name;var d=null;if(this.mf.hasOwnProperty(b)){if(d=this.mf[b],d.contains(a))return}else d=I.length?I.pop():new ca,
this.mf[b]=d;d.add(a);this.Pe=!0;if(a.Kb)for(b=0,e=a.siblings.length;b<e;b++)this.xe(a.siblings[b]);this.Cm&&d.dh.push(a);this.Bm||(this.Hc++,this.trigger(Object.getPrototypeOf(a.type.ua).n.Os,a),this.Hc--)};c.prototype.Pb=function(){if(this.Pe){var a,b,e,d,c,l;this.Cm=!0;e=0;for(c=this.ed.length;e<c;++e)for(a=this.ed[e],b=a.type,b.j.push(a),d=0,l=b.Ma.length;d<l;++d)b.Ma[d].j.push(a),b.Ma[d].Wg=!0;F(this.ed);this.Hs();Wa(this.mf);this.Pe=this.Cm=!1}};c.prototype.Hs=function(){for(var a in this.mf)this.mf.hasOwnProperty(a)&&
this.ks(this.mf[a])};c.prototype.ks=function(a){var b=a.te(),e=b[0].type,d,c,l,h,f,g;$a(e.j,a);e.Wg=!0;0===e.j.length&&(e.fj=!1);d=0;for(c=e.Ma.length;d<c;++d)g=e.Ma[d],$a(g.j,a),g.Wg=!0;d=0;for(c=this.Ld.rc.length;d<c;++d)if(f=this.Ld.rc[d],f.fc.hasOwnProperty(e.index)&&$a(f.fc[e.index].be,a),!e.N)for(l=0,h=e.Ma.length;l<h;++l)g=e.Ma[l],f.fc.hasOwnProperty(g.index)&&$a(f.fc[g.index].be,a);if(f=b[0].A){if(f.Mc)for(l=f.j,d=0,c=l.length;d<c;++d)h=l[d],a.contains(h)&&(h.Ea(),f.Ob.update(h,h.oc,null),
h.oc.set(0,0,-1,-1));$a(f.j,a);f.Di(0)}for(d=0;d<b.length;++d)this.js(b[d],e);a.clear();I.push(a);this.Ba=!0};c.prototype.js=function(a,b){var e,d,c;e=0;for(d=this.Dj.length;e<d;++e)this.Dj[e](a);a.Je&&b.tj.update(a,a.Je,null);(e=a.A)&&e.Rg(a,!0);if(a.U)for(e=0,d=a.U.length;e<d;++e)c=a.U[e],c.Rf&&c.Rf(),c.behavior.sk.remove(a);this.Jq.remove(a);this.bn.remove(a);this.cn.remove(a);a.Rf&&a.Rf();this.he.hasOwnProperty(a.uid.toString())&&delete this.he[a.uid.toString()];this.uk--;100>b.Aj.length&&b.Aj.push(a)};
c.prototype.Pl=function(a,b,e,d){if(a.N){var c=ra(Math.random()*a.Pf.length);return this.Pl(a.Pf[c],b,e,d)}return a.Rc?this.Ke(a.Rc,b,!1,e,d,!1):null};var X=[];c.prototype.Ke=function(a,b,e,d,c,l){var h,f,g,p;if(!a)return null;var w=this.B[a[1]],k=w.ua.Se;if(this.Ef&&k&&!w.Dm||k&&!this.C&&11===a[0][11])return null;var v=b;k||(b=null);var r;w.Aj.length?(r=w.Aj.pop(),r.Xc=!0,w.ua.aa.call(r,w)):(r=new w.ua.aa(w),r.Xc=!1);!e||l||this.he.hasOwnProperty(a[2].toString())?r.uid=this.ji++:r.uid=a[2];this.he[r.uid.toString()]=
r;r.ir=this.Fq++;r.Af=w.j.length;h=0;for(f=this.ed.length;h<f;++h)this.ed[h].type===w&&r.Af++;r.Bh=Gb;r.toString=Hb;g=a[3];if(r.Xc)Wa(r.L);else{r.L={};if("undefined"!==typeof cr_is_preview)for(r.Mp=[],r.Mp.length=g.length,h=0,f=g.length;h<f;h++)r.Mp[h]=g[h][1];r.pb=[];r.pb.length=g.length}h=0;for(f=g.length;h<f;h++)r.pb[h]=g[h][0];if(k){var B=a[0];r.x=ha(d)?B[0]:d;r.y=ha(c)?B[1]:c;r.z=B[2];r.width=B[3];r.height=B[4];r.depth=B[5];r.q=B[6];r.opacity=B[7];r.$b=B[8];r.ac=B[9];r.Rb=B[10];h=B[11];!this.C&&
w.ba.length&&(r.Rb=h);r.mh=hb(r.Rb);this.F&&ib(r,r.Rb,this.F);if(r.Xc){h=0;for(f=B[12].length;h<f;h++)for(g=0,p=B[12][h].length;g<p;g++)r.Pa[h][g]=B[12][h][g];r.Ka.set(0,0,0,0);r.Je.set(0,0,-1,-1);r.oc.set(0,0,-1,-1);r.tc.Ei(r.Ka);F(r.Gl)}else{r.Pa=B[12].slice(0);h=0;for(f=r.Pa.length;h<f;h++)r.Pa[h]=B[12][h].slice(0);r.xa=[];r.ze=[];r.ze.length=w.ba.length;r.Ka=new ua(0,0,0,0);r.Je=new ua(0,0,-1,-1);r.oc=new ua(0,0,-1,-1);r.tc=new wa;r.Gl=[];r.W=Kb;r.Wy=Lb;r.Yb=Mb;r.Ea=Nb;r.Vx=Ob;r.Yr=Pb;r.Bd=Qb}r.$g=
!1;r.Rx=0;r.Qx=0;r.Px=null;14===B.length&&(r.$g=!0,r.Rx=B[13][0],r.Qx=B[13][1],r.Px=B[13][2]);h=0;for(f=w.ba.length;h<f;h++)r.ze[h]=!0;r.me=!0;r.sd=Rb;r.sd();r.Zr=!!r.xa.length;r.Fl=!0;r.Jl=!0;w.ej=!0;r.visible=!0;r.ii=-1;r.A=b;r.ud=b.j.length;r.pf=0;"undefined"===typeof r.za&&(r.za=null);this.Ba=r.Sd=!0}var m;F(X);h=0;for(f=w.Ma.length;h<f;h++)X.push.apply(X,w.Ma[h].Oa);X.push.apply(X,w.Oa);if(r.Xc)for(h=0,f=X.length;h<f;h++){var n=X[h];m=r.U[h];m.Xc=!0;n.behavior.aa.call(m,n,r);B=a[4][h];g=0;for(p=
B.length;g<p;g++)m.G[g]=B[g];m.M();n.behavior.sk.add(r)}else for(r.U=[],h=0,f=X.length;h<f;h++)n=X[h],m=new n.behavior.aa(n,r),m.Xc=!1,m.G=a[4][h].slice(0),m.M(),r.U.push(m),n.behavior.sk.add(r);B=a[5];if(r.Xc)for(h=0,f=B.length;h<f;h++)r.G[h]=B[h];else r.G=B.slice(0);this.ed.push(r);this.Pe=!0;b&&(b.jh(r,!0),1!==b.mc||1!==b.nc)&&(w.fj=!0);this.uk++;if(w.Kb){if(r.Kb=!0,r.Xc?F(r.siblings):r.siblings=[],!e&&!l){h=0;for(f=w.uc.length;h<f;h++)if(w.uc[h]!==w){if(!w.uc[h].Rc)return null;r.siblings.push(this.Ke(w.uc[h].Rc,
v,!1,k?r.x:d,k?r.y:c,!0))}h=0;for(f=r.siblings.length;h<f;h++)for(r.siblings[h].siblings.push(r),g=0;g<f;g++)h!==g&&r.siblings[h].siblings.push(r.siblings[g])}}else r.Kb=!1,r.siblings=null;r.M();h=0;for(f=r.U.length;h<f;h++)r.U[h].Zw&&r.U[h].Zw();return r};c.prototype.xh=function(a){var b,e;b=0;for(e=this.T.fa.length;b<e;b++){var d=this.T.fa[b];if(kb(d.name,a))return d}return null};c.prototype.ae=function(a){a=ra(a);0>a&&(a=0);a>=this.T.fa.length&&(a=this.T.fa.length-1);return this.T.fa[a]};c.prototype.Ml=
function(a){var b,e;b=0;for(e=a.length;b<e;b++)a[b].Y().ga=!0};c.prototype.qi=function(a){var b,e;b=0;for(e=a.length;b<e;b++)a[b].qi()};c.prototype.Qg=function(a){var b,e;b=0;for(e=a.length;b<e;b++)a[b].Qg()};c.prototype.ke=function(a){var b,e;b=0;for(e=a.length;b<e;b++)a[b].ke()};c.prototype.Wr=function(a){if(a.ej){var b,e,d=a.j;b=0;for(e=d.length;b<e;++b)d[b].Yr();d=this.ed;b=0;for(e=d.length;b<e;++b)d[b].type===a&&d[b].Yr();a.ej=!1}};c.prototype.im=function(a,b,e,d){var c,h,l=a?1!==a.mc||1!==a.nc:
!1;if(b.N)for(a=0,c=b.Pf.length;a<c;++a)h=b.Pf[a],l||h.fj?Ba(d,h.j):(this.Wr(h),h.tj.Lk(e,d));else l||b.fj?Ba(d,b.j):(this.Wr(b),b.tj.Lk(e,d))};c.prototype.Qv=function(a,b,e,d){var c,h;c=0;for(h=b.length;c<h;++c)this.im(a,b[c],e,d)};c.prototype.Pv=function(a,b,e){var d=this.Gr;d&&this.Qv(a,d.$m,b,e)};c.prototype.Mi=function(a,b,e){var d=a.Y(),c,h,l,f,g=this.Qa().Wa.Kc,p,r,w;if(d.ga)for(d.ga=!1,F(d.j),c=0,f=a.j.length;c<f;c++)l=a.j[c],l.Ea(),p=l.A.mb(b,e,!0),r=l.A.mb(b,e,!1),l.Yb(p,r)?d.j.push(l):
g&&d.ca.push(l);else{h=0;w=g?d.ca:d.j;c=0;for(f=w.length;c<f;c++)l=w[c],l.Ea(),p=l.A.mb(b,e,!0),r=l.A.mb(b,e,!1),l.Yb(p,r)&&(g?d.j.push(l):(d.j[h]=d.j[c],h++));w.length=h}a.Oc();return d.tm()};c.prototype.cf=function(a,b){if(!(a&&b&&a!==b&&a.Sd&&b.Sd))return!1;a.Ea();b.Ea();var e=a.A,d=b.A,c,h,l,f,g,p,r,w;if(e===d||e.mc===d.mc&&d.nc===d.nc&&e.scale===d.scale&&e.q===d.q&&e.Xb===d.Xb){if(!a.Ka.lw(b.Ka)||!a.tc.Np(b.tc)||a.$g&&b.$g)return!1;if(a.$g)return this.Kr(a,b);if(b.$g)return this.Kr(b,a);r=a.za&&
!a.za.ug();c=b.za&&!b.za.ug();if(!r&&!c)return!0;r?(a.za.gg(a.width,a.height,a.q),r=a.za):(this.od.Ug(a.tc,a.x,a.y,a.width,a.height),r=this.od);c?(b.za.gg(b.width,b.height,b.q),w=b.za):(this.od.Ug(b.tc,b.x,b.y,b.width,b.height),w=this.od);return r.Gh(w,b.x-a.x,b.y-a.y)}r=a.za&&!a.za.ug();c=b.za&&!b.za.ug();r?(a.za.gg(a.width,a.height,a.q),this.od.xr(a.za)):this.od.Ug(a.tc,a.x,a.y,a.width,a.height);r=this.od;c?(b.za.gg(b.width,b.height,b.q),this.Un.xr(b.za)):this.Un.Ug(b.tc,b.x,b.y,b.width,b.height);
w=this.Un;c=0;for(h=r.md;c<h;c++)l=2*c,f=l+1,g=r.yb[l],p=r.yb[f],r.yb[l]=e.cc(g+a.x,p+a.y,!0),r.yb[f]=e.cc(g+a.x,p+a.y,!1);r.Ea();c=0;for(h=w.md;c<h;c++)l=2*c,f=l+1,g=w.yb[l],p=w.yb[f],w.yb[l]=d.cc(g+b.x,p+b.y,!0),w.yb[f]=d.cc(g+b.x,p+b.y,!1);w.Ea();return r.Gh(w,0,0)};var K=new wa;new ua(0,0,0,0);var D=[];c.prototype.Kr=function(a,b){var e,d,c,h,l=b.Ka,f=a.x,g=a.y;a.Zy(l,D);var p=b.za&&!b.za.ug();e=0;for(d=D.length;e<d;++e)if(c=D[e],h=c.nz,l.mw(h,f,g)&&(K.Ei(h),K.offset(f,g),K.Np(b.tc)))if(p)if(b.za.gg(b.width,
b.height,b.q),c.tn){if(c.tn.Gh(b.za,b.x-(f+h.left),b.y-(g+h.top)))return F(D),!0}else{if(this.od.Ug(K,0,0,h.right-h.left,h.bottom-h.top),this.od.Gh(b.za,b.x,b.y))return F(D),!0}else if(c.tn){if(this.od.Ug(b.tc,0,0,b.width,b.height),c.tn.Gh(this.od,-(f+h.left),-(g+h.top)))return F(D),!0}else return F(D),!0;F(D);return!1};c.prototype.Sr=function(a,b){if(!b)return!1;var e,d,c,h,l;e=0;for(d=a.Oa.length;e<d;e++)if(a.Oa[e].behavior instanceof b)return!0;if(!a.N)for(e=0,d=a.Ma.length;e<d;e++)for(l=a.Ma[e],
c=0,h=l.Oa.length;c<h;c++)if(l.Oa[c].behavior instanceof b)return!0;return!1};c.prototype.$n=function(a){return this.Sr(a,fc.Ay)};c.prototype.ao=function(a){return this.Sr(a,fc.By)};var L=[];c.prototype.qd=function(a){var b,e,d;a.Ea();this.Pv(a.A,a.Ka,L);b=0;for(e=L.length;b<e;++b)if(d=L[b],d.L.solidEnabled&&this.cf(a,d))return F(L),d;F(L);return null};c.prototype.wn=function(a,b,e,d){d=d||50;var c=a.x,h=a.y,l,f=null,g=null;for(l=0;l<d;l++)if(a.x=c+b*l,a.y=h+e*l,a.W(),!this.cf(a,f)&&((f=this.qd(a))&&
(g=f),!f&&!f))return g&&this.ix(a,b,e,g),!0;a.x=c;a.y=h;a.W();return!1};c.prototype.ix=function(a,b,e,d){var c=2,h,l=!1;h=!1;for(var f=a.x,g=a.y;16>=c;)h=1/c,c*=2,a.x+=b*h*(l?1:-1),a.y+=e*h*(l?1:-1),a.W(),this.cf(a,d)?h=l=!0:(h=l=!1,f=a.x,g=a.y);h&&(a.x=f,a.y=g,a.W())};c.prototype.kr=function(a,b){var e=ha(b)?100:b,d=0,c=a.x,h=a.y,l=0,f=0,g=0,p=this.qd(a);if(!p)return!0;for(;d<=e;){switch(l){case 0:f=0;g=-1;d++;break;case 1:f=1;g=-1;break;case 2:f=1;g=0;break;case 3:g=f=1;break;case 4:f=0;g=1;break;
case 5:f=-1;g=1;break;case 6:f=-1;g=0;break;case 7:g=f=-1}l=(l+1)%8;a.x=ra(c+f*d);a.y=ra(h+g*d);a.W();if(!this.cf(a,p)&&(p=this.qd(a),!p))return!0}a.x=c;a.y=h;a.W();return!1};c.prototype.vi=function(a,b){a.Sd&&b.Sd&&this.Sf.push([a,b])};c.prototype.Yt=function(a,b,e){var d,c,h;d=0;for(c=this.Sf.length;d<c;++d){h=this.Sf[d];if(h[0]===a)h=h[1];else if(h[1]===a)h=h[0];else continue;if(b.N){if(-1===b.Pf.indexOf(b))continue}else if(h.type!==b)continue;-1===e.indexOf(h)&&e.push(h)}};c.prototype.gu=function(a,
b){var e,d,c;e=0;for(d=this.Sf.length;e<d;e++)if(c=this.Sf[e],c[0]===a&&c[1]===b||c[0]===b&&c[1]===a)return!0;return!1};c.prototype.eu=function(a,b,e){var d=a.x,c=a.y,h=oa(10,Sa(b,e,d,c)),l=La(b,e,d,c),f=this.qd(a);if(!f)return Ha(l+qa);var g=f,p,r,w,k,v=R(5);for(p=1;36>p;p++)if(r=l-p*v,a.x=b+Math.cos(r)*h,a.y=e+Math.sin(r)*h,a.W(),!this.cf(a,g)&&(g=this.qd(a),!g)){w=r;break}36===p&&(w=Ha(l+qa));g=f;for(p=1;36>p;p++)if(r=l+p*v,a.x=b+Math.cos(r)*h,a.y=e+Math.sin(r)*h,a.W(),!this.cf(a,g)&&(g=this.qd(a),
!g)){k=r;break}36===p&&(k=Ha(l+qa));a.x=d;a.y=c;a.W();if(k===w)return k;a=Ma(k,w)/2;a=Qa(k,w)?Ha(w+a+qa):Ha(k+a);w=Math.cos(l);l=Math.sin(l);k=Math.cos(a);a=Math.sin(a);b=w*k+l*a;return La(0,0,w-2*b*k,l-2*b*a)};var N=-1;c.prototype.trigger=function(a,b,e){if(!this.T)return!1;var d=this.T.rf;if(!d)return!1;var c=!1,h,l,f;N++;var g=d.Tl;l=0;for(f=g.length;l<f;++l)h=this.Pr(a,b,g[l],e),c=c||h;h=this.Pr(a,b,d,e);N--;return c||h};c.prototype.Pr=function(a,b,e,d){var c=!1,h,l,f,g;if(b)for(f=this.Yn(a,b,
b.type.name,e,d),c=c||f,g=b.type.Ma,h=0,l=g.length;h<l;++h)f=this.Yn(a,b,g[h].name,e,d),c=c||f;else f=this.Yn(a,b,"system",e,d),c=c||f;return c};c.prototype.Yn=function(a,b,e,d,c){var h,l=!1,f=!1,f="undefined"!==typeof c,g=(f?d.pp:d.Qr)[e];if(!g)return l;var p=null;d=0;for(h=g.length;d<h;++d)if(g[d].method==a){p=g[d].sh;break}if(!p)return l;var r;f?r=p[c]:r=p;if(!r)return null;d=0;for(h=r.length;d<h;d++)a=r[d][0],c=r[d][1],f=this.wv(b,e,a,c),l=l||f;return l};c.prototype.wv=function(a,b,e,d){var c,
h,l=!1;this.Zn++;var f=this.Qa().Wa;f&&this.qi(f.bf);var g=1<this.Zn;this.qi(e.bf);g&&this.jx();var p=this.Kk(e);p.Wa=e;a&&(c=this.types[b].Y(),c.ga=!1,F(c.j),c.j[0]=a,this.types[b].Oc());a=!0;if(e.parent){b=p.Jr;for(c=e.parent;c;)b.push(c),c=c.parent;b.reverse();c=0;for(h=b.length;c<h;c++)if(!b[c].yx()){a=!1;break}}a&&(this.tf++,e.Kc?e.xx(d):e.fb(),l=l||p.Hf);this.Fk();g&&this.Yw();this.ke(e.bf);f&&this.ke(f.bf);this.Pe&&0===this.Hc&&0===N&&!this.Em&&this.Pb();this.Zn--;return l};c.prototype.vf=
function(){var a=this.Qa();return a.Wa.nb[a.Ya]};c.prototype.qw=function(){return 0===this.Qa().Ya};c.prototype.Fv=function(){var a=this.Qa();return a.Wa.Nc[a.kc]};c.prototype.jx=function(){this.ok++;this.ok>=this.Vm.length&&this.Vm.push([])};c.prototype.Yw=function(){this.ok--};c.prototype.yp=function(){return this.Vm[this.ok]};c.prototype.Kk=function(a){this.Fj++;this.Fj>=this.Xl.length&&this.Xl.push(new Sb);var b=this.Qa();b.reset(a);return b};c.prototype.Fk=function(){this.Fj--};c.prototype.Qa=
function(){return this.Xl[this.Fj]};c.prototype.jr=function(){this.fi++;this.fi>=this.ei.length&&this.ei.push(aa({name:void 0,index:0,hb:!1}));var a=this.zp();a.name=void 0;a.index=0;a.hb=!1;return a};c.prototype.er=function(){this.fi--};c.prototype.zp=function(){return this.ei[this.fi]};c.prototype.Ap=function(a,b){for(var e,d,c,h,l,f;b;){e=0;for(d=b.Zc.length;e<d;e++)if(f=b.Zc[e],f instanceof Tb&&kb(a,f.name))return f;b=b.parent}e=0;for(d=this.Yd.length;e<d;e++)for(l=this.Yd[e],c=0,h=l.Ne.length;c<
h;c++)if(f=l.Ne[c],f instanceof Tb&&kb(a,f.name))return f;return null};c.prototype.Cp=function(a){var b,e;b=0;for(e=this.hd.length;b<e;b++)if(this.hd[b].ma===a)return this.hd[b];return null};c.prototype.Rj=function(a){var b,e;b=0;for(e=this.B.length;b<e;b++)if(this.B[b].ma===a)return this.B[b];return null};c.prototype.Gv=function(a){var b,e;b=0;for(e=this.Be.length;b<e;b++)if(this.Be[b].ma===a)return this.Be[b];return null};c.prototype.qu=function(a,b){this.Ii=[a,b];this.Ba=!0};c.prototype.fw=function(){var a=
this,b=this.Hn,e=this.ee,d=this.kk,c=!1;this.Dr&&(c=!0,b="__c2_continuouspreview",this.Dr=!1);if(b.length){this.Pb();e=this.Cx();if(n()&&!this.Uc)t(b,e,function(){fa("Saved state to IndexedDB storage ("+e.length+" bytes)");a.ee=e;a.trigger(W.prototype.n.xl,null);a.ee="";c&&g()},function(d){try{localStorage.setItem("__c2save_"+b,e),fa("Saved state to WebStorage ("+e.length+" bytes)"),a.ee=e,a.trigger(W.prototype.n.xl,null),a.ee="",c&&g()}catch(h){fa("Failed to save game state: "+d+"; "+h),a.trigger(W.prototype.n.Go,
null)}});else try{localStorage.setItem("__c2save_"+b,e),fa("Saved state to WebStorage ("+e.length+" bytes)"),a.ee=e,this.trigger(W.prototype.n.xl,null),a.ee="",c&&g()}catch(h){fa("Error saving to WebStorage: "+h),a.trigger(W.prototype.n.Go,null)}this.kk=this.Hn="";this.sb=null}if(d.length){if(n()&&!this.Uc)q(d,function(b){b?(a.sb=b,fa("Loaded state from IndexedDB storage ("+a.sb.length+" bytes)")):(a.sb=localStorage.getItem("__c2save_"+d)||"",fa("Loaded state from WebStorage ("+a.sb.length+" bytes)"));
a.Ki=!1;a.sb||(a.sb=null,a.trigger(W.prototype.n.aj,null))},function(){a.sb=localStorage.getItem("__c2save_"+d)||"";fa("Loaded state from WebStorage ("+a.sb.length+" bytes)");a.Ki=!1;a.sb||(a.sb=null,a.trigger(W.prototype.n.aj,null))});else{try{this.sb=localStorage.getItem("__c2save_"+d)||"",fa("Loaded state from WebStorage ("+this.sb.length+" bytes)")}catch(l){this.sb=null}this.Ki=!1;a.sb||(a.sb=null,a.trigger(W.prototype.n.aj,null))}this.Hn=this.kk=""}null!==this.sb&&(this.Pb(),this.Hw(this.sb)?
(this.ee=this.sb,this.trigger(W.prototype.n.Us,null),this.ee=""):a.trigger(W.prototype.n.aj,null),this.sb=null)};c.prototype.Cx=function(){var a,e,d,c,h,l,f,g={c2save:!0,version:1,rt:{time:this.qb.P,walltime:this.ve.P,timescale:this.Yf,tickcount:this.pe,execcount:this.tf,next_uid:this.ji,running_layout:this.T.ma,start_time_offset:Date.now()-this.al},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};a=0;for(e=this.B.length;a<e;a++)if(h=this.B[a],!h.N&&!this.$n(h)){l={instances:[]};Va(h.L)&&
(l.ex=b(h.L));d=0;for(c=h.j.length;d<c;d++)l.instances.push(this.Gn(h.j[d]));g.types[h.ma.toString()]=l}a=0;for(e=this.hd.length;a<e;a++)d=this.hd[a],g.layouts[d.ma.toString()]=d.zb();c=g.events.groups;a=0;for(e=this.Be.length;a<e;a++)d=this.Be[a],c[d.ma.toString()]=this.rg[d.Ch].xf;e=g.events.cnds;for(f in this.Ie)this.Ie.hasOwnProperty(f)&&(a=this.Ie[f],Va(a.L)&&(e[f]={ex:b(a.L)}));e=g.events.acts;for(f in this.Ae)this.Ae.hasOwnProperty(f)&&(a=this.Ae[f],Va(a.L)&&(e[f]={ex:b(a.L)}));e=g.events.vars;
for(f in this.eh)this.eh.hasOwnProperty(f)&&(a=this.eh[f],a.ek||a.parent&&!a.Qh||(e[f]=a.data));g.system=this.Ld.zb();return JSON.stringify(g)};c.prototype.mr=function(){var a,b,e,d,c,h;this.he={};a=0;for(b=this.B.length;a<b;a++)if(e=this.B[a],!e.N)for(d=0,c=e.j.length;d<c;d++)h=e.j[d],this.he[h.uid.toString()]=h};c.prototype.Hw=function(a){var b;try{b=JSON.parse(a)}catch(e){return!1}if(!b.c2save||1<b.version)return!1;this.Ih=!0;a=b.rt;this.qb.reset();this.qb.P=a.time;this.ve.reset();this.ve.P=a.walltime||
0;this.Yf=a.timescale;this.pe=a.tickcount;this.tf=a.execcount;this.al=Date.now()-a.start_time_offset;var d=a.running_layout;if(d!==this.T.ma)if(d=this.Cp(d))this.lp(d);else return;var c,h,l,f,g,p,r;p=b.types;for(h in p)if(p.hasOwnProperty(h)&&(f=this.Rj(parseInt(h,10)))&&!f.N&&!this.$n(f)){p[h].ex?f.L=p[h].ex:Wa(f.L);g=f.j;l=p[h].instances;d=0;for(c=pa(g.length,l.length);d<c;d++)this.lk(g[d],l[d]);d=l.length;for(c=g.length;d<c;d++)this.xe(g[d]);d=g.length;for(c=l.length;d<c;d++){g=null;if(f.ua.Se&&
(g=this.T.Qj(l[d].w.l),!g))continue;g=this.Ke(f.Rc,g,!1,0,0,!0);this.lk(g,l[d])}f.Wg=!0}this.Pb();this.mr();c=b.layouts;for(h in c)c.hasOwnProperty(h)&&(d=this.Cp(parseInt(h,10)))&&d.Lb(c[h]);c=b.events.groups;for(h in c)c.hasOwnProperty(h)&&(d=this.Gv(parseInt(h,10)))&&this.rg[d.Ch]&&this.rg[d.Ch].Bi(c[h]);d=b.events.cnds;for(h in this.Ie)this.Ie.hasOwnProperty(h)&&(d.hasOwnProperty(h)?this.Ie[h].L=d[h].ex:this.Ie[h].L={});d=b.events.acts;for(h in this.Ae)this.Ae.hasOwnProperty(h)&&(d.hasOwnProperty(h)?
this.Ae[h].L=d[h].ex:this.Ae[h].L={});d=b.events.vars;for(h in d)d.hasOwnProperty(h)&&this.eh.hasOwnProperty(h)&&(this.eh[h].data=d[h]);this.ji=a.next_uid;this.Ih=!1;d=0;for(c=this.Jj.length;d<c;++d)g=this.Jj[d],this.trigger(Object.getPrototypeOf(g.type.ua).n.dg,g);F(this.Jj);this.Ld.Lb(b.system);d=0;for(c=this.B.length;d<c;d++)if(f=this.B[d],!f.N&&!this.$n(f))for(b=0,h=f.j.length;b<h;b++){g=f.j[b];if(f.Kb)for(p=g.Bh(),F(g.siblings),a=0,l=f.uc.length;a<l;a++)r=f.uc[a],f!==r&&g.siblings.push(r.j[p]);
g.vd&&g.vd();if(g.U)for(a=0,l=g.U.length;a<l;a++)p=g.U[a],p.vd&&p.vd()}return this.Ba=!0};c.prototype.Gn=function(a,e){var d,c,h,l,f;l=a.type;h=l.ua;var g={};e?g.c2=!0:g.uid=a.uid;Va(a.L)&&(g.ex=b(a.L));if(a.pb&&a.pb.length)for(g.ivs={},d=0,c=a.pb.length;d<c;d++)g.ivs[a.type.zm[d].toString()]=a.pb[d];if(h.Se){h={x:a.x,y:a.y,w:a.width,h:a.height,l:a.A.ma,zi:a.Bd()};0!==a.q&&(h.a=a.q);1!==a.opacity&&(h.o=a.opacity);.5!==a.$b&&(h.hX=a.$b);.5!==a.ac&&(h.hY=a.ac);0!==a.Rb&&(h.bm=a.Rb);a.visible||(h.v=
a.visible);a.Sd||(h.ce=a.Sd);-1!==a.ii&&(h.mts=a.ii);if(l.ba.length)for(h.fx=[],d=0,c=l.ba.length;d<c;d++)f=l.ba[d],h.fx.push({name:f.name,active:a.ze[f.index],params:a.Pa[f.index]});g.w=h}if(a.U&&a.U.length)for(g.behs={},d=0,c=a.U.length;d<c;d++)l=a.U[d],l.zb&&(g.behs[l.type.ma.toString()]=l.zb());a.zb&&(g.data=a.zb());return g};c.prototype.Iv=function(a,b){var e,d;e=0;for(d=a.zm.length;e<d;e++)if(a.zm[e]===b)return e;return-1};c.prototype.Ev=function(a,b){var e,d;e=0;for(d=a.U.length;e<d;e++)if(a.U[e].type.ma===
b)return e;return-1};c.prototype.lk=function(a,b,e){var d,c,h,l,f;f=a.type;var g=f.ua;if(e){if(!b.c2)return}else a.uid=b.uid;b.ex?a.L=b.ex:Wa(a.L);if(c=b.ivs)for(d in c)c.hasOwnProperty(d)&&(h=this.Iv(f,parseInt(d,10)),0>h||h>=a.pb.length||(l=c[d],null===l&&(l=NaN),a.pb[h]=l));if(g.Se){h=b.w;a.A.ma!==h.l&&(c=a.A,a.A=this.T.Qj(h.l),a.A?(c.Rg(a,!0),a.A.jh(a,!0),a.W(),a.A.Di(0)):(a.A=c,e||this.xe(a)));a.x=h.x;a.y=h.y;a.width=h.w;a.height=h.h;a.ud=h.zi;a.q=h.hasOwnProperty("a")?h.a:0;a.opacity=h.hasOwnProperty("o")?
h.o:1;a.$b=h.hasOwnProperty("hX")?h.hX:.5;a.ac=h.hasOwnProperty("hY")?h.hY:.5;a.visible=h.hasOwnProperty("v")?h.v:!0;a.Sd=h.hasOwnProperty("ce")?h.ce:!0;a.ii=h.hasOwnProperty("mts")?h.mts:-1;a.Rb=h.hasOwnProperty("bm")?h.bm:0;a.mh=hb(a.Rb);this.F&&ib(a,a.Rb,this.F);a.W();if(h.hasOwnProperty("fx"))for(e=0,c=h.fx.length;e<c;e++)l=f.km(h.fx[e].name),0>l||(a.ze[l]=h.fx[e].active,a.Pa[l]=h.fx[e].params);a.sd()}if(f=b.behs)for(d in f)f.hasOwnProperty(d)&&(e=this.Ev(a,parseInt(d,10)),0>e||a.U[e].Lb(f[d]));
b.data&&a.Lb(b.data)};c.prototype.qp=function(a,b,e){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+"www/"+a,function(a){a.file(b,e)},e)};c.prototype.xv=function(a,b){this.qp("data.js",function(e){var d=new FileReader;d.onload=function(b){a(b.target.result)};d.onerror=b;d.readAsText(e)},b)};var S=[],E=0;c.prototype.Xm=function(){if(S.length&&!(8<=E)){E++;var a=S.shift();this.su(a.filename,a.Nx,a.Qu)}};c.prototype.rp=function(a,b,e){var d=this;S.push({filename:a,Nx:function(a){E--;
d.Xm();b(a)},Qu:function(a){E--;d.Xm();e(a)}});this.Xm()};c.prototype.su=function(a,b,e){this.qp(a,function(a){var e=new FileReader;e.onload=function(a){b(a.target.result)};e.readAsArrayBuffer(a)},e)};c.prototype.yv=function(a,b,e){var d="",h=a.toLowerCase(),c=h.substr(h.length-4),h=h.substr(h.length-5);".mp4"===c?d="video/mp4":".webm"===h?d="video/webm":".m4a"===c?d="audio/mp4":".mp3"===c&&(d="audio/mpeg");this.rp(a,function(a){a=URL.createObjectURL(new Blob([a],{type:d}));b(a)},e)};c.prototype.ow=
function(a){return/^(?:[a-z]+:)?\/\//.test(a)||"data:"===a.substr(0,5)||"blob:"===a.substr(0,5)};c.prototype.tr=function(a,b){this.dk&&!this.ow(b)?this.yv(b,function(b){a.src=b},function(a){alert("Failed to load image: "+a)}):a.src=b};c.prototype.Rk=function(a,b){"undefined"!==typeof a.imageSmoothingEnabled?a.imageSmoothingEnabled=b:(a.webkitImageSmoothingEnabled=b,a.mozImageSmoothingEnabled=b,a.msImageSmoothingEnabled=b)};Ub=function(a){return new c(document.getElementById(a))};Vb=function(a,b){return new c({dc:!0,
width:a,height:b})};window.cr_createRuntime=Ub;window.cr_createDCRuntime=Vb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.gj=!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,m){var n=window.cr_getC2Runtime();n&&n.qu(c,m)};window.cr_sizeCanvas=function(c,m){if(0!==c&&0!==m){var n=window.cr_getC2Runtime();n&&n.setSize(c,m)}};
window.cr_setSuspended=function(c){var m=window.cr_getC2Runtime();m&&m.setSuspended(c)};
(function(){function c(a,b){this.b=a;this.rf=null;this.scrollX=this.b.ub/2;this.scrollY=this.b.tb/2;this.scale=1;this.q=0;this.ng=!0;this.name=b[0];this.Vw=b[1];this.Uw=b[2];this.width=b[1];this.height=b[2];this.Tr=b[3];this.Br=b[4];this.ma=b[5];var d=b[6],c,f;this.fa=[];this.Fh=[];c=0;for(f=d.length;c<f;c++){var g=new Wb(this,d[c]);g.Hq=c;this.fa.push(g)}d=b[7];this.Qe=[];c=0;for(f=d.length;c<f;c++){var g=d[c],k=this.b.B[g[1]];k.Rc||(k.Rc=g);this.Qe.push(g);-1===this.Fh.indexOf(k)&&this.Fh.push(k)}this.ba=
[];this.xa=[];this.me=!0;this.Pa=[];c=0;for(f=b[8].length;c<f;c++)this.ba.push({id:b[8][c][0],name:b[8][c][1],gb:-1,kd:!1,Qb:!0,index:c}),this.Pa.push(b[8][c][2].slice(0));this.sd();this.ti=new ua(0,0,1,1);this.yn=new ua(0,0,1,1);this.Ze={}}function m(a,b){return a.ud-b.ud}function n(a,b){this.bb=a;this.b=a.b;this.j=[];this.scale=1;this.q=0;this.Wd=!1;this.qe=new ua(0,0,0,0);this.Nr=new wa;this.Fa=this.Da=this.Ga=this.Ca=0;this.$f=!1;this.we=-1;this.Nl=0;this.name=b[0];this.index=b[1];this.ma=b[2];
this.visible=b[3];this.cd=b[4];this.rd=b[5];this.mc=b[6];this.nc=b[7];this.opacity=b[8];this.Lj=b[9];this.Mc=b[10];this.Xb=b[11];this.Rb=b[12];this.Mu=b[13];this.mh="source-over";this.Sb=this.Vb=0;this.Ob=null;this.fe=k();this.nd=!0;this.Cg=new ua(0,0,-1,-1);this.Hb=new ua(0,0,-1,-1);this.Mc&&(this.Ob=new gb(this.b.ub,this.b.tb));this.Id=!1;var d=b[14],c,f;this.Hr=[];this.Fc=[];this.oh=[];c=0;for(f=d.length;c<f;c++){var g=d[c],v=this.b.B[g[1]];v.Rc||(v.Rc=g,v.ou=this.index);this.Fc.push(g);-1===this.bb.Fh.indexOf(v)&&
this.bb.Fh.push(v)}Aa(this.Hr,this.Fc);this.ba=[];this.xa=[];this.me=!0;this.Pa=[];c=0;for(f=b[15].length;c<f;c++)this.ba.push({id:b[15][c][0],name:b[15][c][1],gb:-1,kd:!1,Qb:!0,index:c}),this.Pa.push(b[15][c][2].slice(0));this.sd();this.ti=new ua(0,0,1,1);this.yn=new ua(0,0,1,1)}function k(){return b.length?b.pop():[]}function t(a){F(a);b.push(a)}c.prototype.Bx=function(a){var b=a.type.ma.toString();this.Ze.hasOwnProperty(b)||(this.Ze[b]=[]);this.Ze[b].push(this.b.Gn(a))};c.prototype.Fp=function(){var a=
this.fa[0];return!a.rd&&1===a.opacity&&!a.Lj&&a.visible};c.prototype.sd=function(){F(this.xa);this.me=!0;var a,b,d;a=0;for(b=this.ba.length;a<b;a++)d=this.ba[a],d.Qb&&(this.xa.push(d),d.kd||(this.me=!1))};c.prototype.jm=function(a){var b,d,c;b=0;for(d=this.ba.length;b<d;b++)if(c=this.ba[b],c.name===a)return c;return null};var q=[],g=!0;c.prototype.Sn=function(){this.Br&&(this.rf=this.b.Yl[this.Br],this.rf.bo());this.b.T=this;this.width=this.Vw;this.height=this.Uw;this.scrollX=this.b.ub/2;this.scrollY=
this.b.tb/2;var a,b,d,c,f,k,v;a=0;for(d=this.b.B.length;a<d;a++)if(b=this.b.B[a],!b.N)for(f=b.j,b=0,c=f.length;b<c;b++)if(k=f[b],k.A){var h=k.A.Hq;h>=this.fa.length&&(h=this.fa.length-1);k.A=this.fa[h];-1===k.A.j.indexOf(k)&&k.A.j.push(k);k.A.$f=!0}if(!g)for(a=0,d=this.fa.length;a<d;++a)this.fa[a].j.sort(m);F(q);this.Vo();a=0;for(d=this.fa.length;a<d;a++)k=this.fa[a],k.lu(),k.ql();f=!1;if(!this.ng){for(v in this.Ze)if(this.Ze.hasOwnProperty(v)&&(b=this.b.Rj(parseInt(v,10)))&&!b.N&&this.b.ao(b)){c=
this.Ze[v];a=0;for(d=c.length;a<d;a++){k=null;if(b.ua.Se&&(k=this.Qj(c[a].w.l),!k))continue;k=this.b.Ke(b.Rc,k,!1,0,0,!0);this.b.lk(k,c[a]);f=!0;q.push(k)}F(c)}a=0;for(d=this.fa.length;a<d;a++)this.fa[a].j.sort(m),this.fa[a].$f=!0}f&&(this.b.Pb(),this.b.mr());for(a=0;a<q.length;a++)if(k=q[a],k.type.Kb)for(d=k.Bh(),b=0,c=k.type.uc.length;b<c;b++)v=k.type.uc[b],k.type!==v&&(v.j.length>d?k.siblings.push(v.j[d]):v.Rc&&(f=this.b.Ke(v.Rc,k.A,!0,k.x,k.y,!0),this.b.Pb(),v.ol(),k.siblings.push(f),q.push(f)));
a=0;for(d=this.Qe.length;a<d;a++)k=this.Qe[a],b=this.b.B[k[1]],b.Kb||this.b.Ke(this.Qe[a],null,!0);this.b.Rd=null;this.b.Pb();if(this.b.La&&!this.b.Na)for(a=0,d=this.b.B.length;a<d;a++)v=this.b.B[a],!v.N&&v.j.length&&v.Ik&&v.Ik(this.b.La);if(this.b.Ih)Aa(this.b.Jj,q);else for(a=0,d=q.length;a<d;a++)k=q[a],this.b.trigger(Object.getPrototypeOf(k.type.ua).n.dg,k);F(q);this.b.Ih||this.b.trigger(W.prototype.n.zo,null);this.ng=!1};c.prototype.ku=function(){var a,b,d,c,f;b=a=0;for(d=this.Qe.length;a<d;a++)c=
this.Qe[a],f=this.b.B[c[1]],f.global?f.Kb||this.b.Ke(c,null,!0):(this.Qe[b]=c,b++);za(this.Qe,b)};c.prototype.Mx=function(){this.b.Ih||this.b.trigger(W.prototype.n.yo,null);this.b.Bm=!0;F(this.b.Ld.rc);var a,b,d,c,f,k;if(!this.ng)for(a=0,b=this.fa.length;a<b;a++)for(this.fa[a].eo(),f=this.fa[a].j,d=0,c=f.length;d<c;d++)k=f[d],k.type.global||this.b.ao(k.type)&&this.Bx(k);a=0;for(b=this.fa.length;a<b;a++){f=this.fa[a].j;d=0;for(c=f.length;d<c;d++)k=f[d],k.type.global||this.b.xe(k);this.b.Pb();F(f);
this.fa[a].$f=!0}a=0;for(b=this.b.B.length;a<b;a++)if(f=this.b.B[a],!(f.global||f.ua.Se||f.ua.$k||f.N)){d=0;for(c=f.j.length;d<c;d++)this.b.xe(f.j[d]);this.b.Pb()}g=!1;this.b.Bm=!1};new ua(0,0,0,0);c.prototype.Xd=function(a){var b,d=a,c=!1,f=!this.b.Dc;f&&(this.b.jk||(this.b.jk=document.createElement("canvas"),b=this.b.jk,b.width=this.b.S,b.height=this.b.R,this.b.cq=b.getContext("2d"),c=!0),b=this.b.jk,d=this.b.cq,b.width!==this.b.S&&(b.width=this.b.S,c=!0),b.height!==this.b.R&&(b.height=this.b.R,
c=!0),c&&this.b.Rk(d,this.b.Ja));d.globalAlpha=1;d.globalCompositeOperation="source-over";this.b.dp&&!this.Fp()&&d.clearRect(0,0,this.b.S,this.b.R);var g,k,c=0;for(g=this.fa.length;c<g;c++)k=this.fa[c],k.visible&&0<k.opacity&&11!==k.Rb&&(k.j.length||!k.rd)?k.Xd(d):k.ql();f&&a.drawImage(b,0,0,this.b.width,this.b.height)};c.prototype.nf=function(a){a.sr(!0);this.b.cb||(this.b.cb=a.Qc(this.b.S,this.b.R,this.b.Ja));if(this.b.cb.kf!==this.b.S||this.b.cb.jf!==this.b.R)a.deleteTexture(this.b.cb),this.b.cb=
a.Qc(this.b.S,this.b.R,this.b.Ja);a.Yc(this.b.cb);this.b.Dc||a.Uf(this.b.S,this.b.R);var b,d;for(b=this.fa.length-1;0<=b;--b)d=this.fa[b],d.visible&&1===d.opacity&&d.me&&0===d.Rb&&(d.j.length||!d.rd)?d.nf(a):d.ql();a.sr(!1)};c.prototype.vc=function(a){var b=0<this.xa.length||this.b.bh||!this.b.Dc||this.b.Ia;if(b){this.b.cb||(this.b.cb=a.Qc(this.b.S,this.b.R,this.b.Ja));if(this.b.cb.kf!==this.b.S||this.b.cb.jf!==this.b.R)a.deleteTexture(this.b.cb),this.b.cb=a.Qc(this.b.S,this.b.R,this.b.Ja);a.Yc(this.b.cb);
this.b.Dc||a.Uf(this.b.S,this.b.R)}else this.b.cb&&(a.Yc(null),a.deleteTexture(this.b.cb),this.b.cb=null);this.b.dp&&!this.Fp()&&a.clear(0,0,0,0);var d,c,f;d=0;for(c=this.fa.length;d<c;d++)f=this.fa[d],f.visible&&0<f.opacity&&(f.j.length||!f.rd)?f.vc(a):f.ql();b&&(0===this.xa.length||1===this.xa.length&&this.b.Dc?(1===this.xa.length?(b=this.xa[0].index,a.qc(this.xa[0].gb),a.Tg(null,1/this.b.S,1/this.b.R,0,0,1,1,this.scale,this.q,0,0,this.b.S/2,this.b.R/2,this.b.qb.P,this.Pa[b]),a.Jk(this.xa[0].gb)&&
(this.b.Ba=!0)):a.qc(0),this.b.Dc||a.Uf(this.b.width,this.b.height),a.Yc(null),a.rr(!1),a.Tf(1),a.Bc(this.b.cb),a.pr(),a.Jd(),a.td(),b=this.b.width/2,d=this.b.height/2,a.ri(-b,d,b,d,b,-d,-b,-d),a.Bc(null),a.rr(!0)):this.An(a,null,null,null))};c.prototype.zh=function(){return 0<this.xa.length||this.b.bh||!this.b.Dc||this.b.Ia?this.b.cb:null};c.prototype.Dp=function(){var a=this.fa[0].Tc(),b,d,c;b=1;for(d=this.fa.length;b<d;b++)c=this.fa[b],(0!==c.mc||0!==c.nc)&&c.Tc()<a&&(a=c.Tc());return a};c.prototype.In=
function(a){if(!this.Tr){var b=1/this.Dp()*this.b.S/2;a>this.width-b&&(a=this.width-b);a<b&&(a=b)}this.scrollX!==a&&(this.scrollX=a,this.b.Ba=!0)};c.prototype.Jn=function(a){if(!this.Tr){var b=1/this.Dp()*this.b.R/2;a>this.height-b&&(a=this.height-b);a<b&&(a=b)}this.scrollY!==a&&(this.scrollY=a,this.b.Ba=!0)};c.prototype.Vo=function(){this.In(this.scrollX);this.Jn(this.scrollY)};c.prototype.An=function(a,b,d,c){var f=d?d.xa:b?b.xa:this.xa,g=1,k=0,h=0,p=0,m=this.b.S,n=this.b.R;d?(g=d.A.Tc(),k=d.A.Jb(),
h=d.A.Ca,p=d.A.Da,m=d.A.Ga,n=d.A.Fa):b&&(g=b.Tc(),k=b.Jb(),h=b.Ca,p=b.Da,m=b.Ga,n=b.Fa);var w=this.b.fm,r,q,t,u,I=0,X=1,K,D,L=this.b.S,N=this.b.R,S=L/2,E=N/2,x=b?b.ti:this.ti,A=b?b.yn:this.yn,z=0,O=0,H=0,M=0,P=L,da=L,T=N,la=N,ma=t=0;u=d?d.A.Jb():0;if(d){r=0;for(q=f.length;r<q;r++)t+=a.Mv(f[r].gb),ma+=a.Nv(f[r].gb);M=d.Ka;z=b.cc(M.left,M.top,!0,!0);H=b.cc(M.left,M.top,!1,!0);P=b.cc(M.right,M.bottom,!0,!0);T=b.cc(M.right,M.bottom,!1,!0);0!==u&&(r=b.cc(M.right,M.top,!0,!0),q=b.cc(M.right,M.top,!1,!0),
O=b.cc(M.left,M.bottom,!0,!0),M=b.cc(M.left,M.bottom,!1,!0),u=Math.min(z,P,r,O),P=Math.max(z,P,r,O),z=u,u=Math.min(H,T,q,M),T=Math.max(H,T,q,M),H=u);z-=t;H-=ma;P+=t;T+=ma;A.left=z/L;A.top=1-H/N;A.right=P/L;A.bottom=1-T/N;O=z=ra(z);M=H=ra(H);da=P=sa(P);la=T=sa(T);O-=t;M-=ma;da+=t;la+=ma;0>z&&(z=0);0>H&&(H=0);P>L&&(P=L);T>N&&(T=N);0>O&&(O=0);0>M&&(M=0);da>L&&(da=L);la>N&&(la=N);x.left=z/L;x.top=1-H/N;x.right=P/L;x.bottom=1-T/N}else x.left=A.left=0,x.top=A.top=0,x.right=A.right=1,x.bottom=A.bottom=1;
ma=d&&(a.pi(f[0].gb)||0!==t||0!==ma||1!==d.opacity||d.type.ua.Cq)||b&&!d&&1!==b.opacity;a.pr();if(ma){w[I]||(w[I]=a.Qc(L,N,this.b.Ja));if(w[I].kf!==L||w[I].jf!==N)a.deleteTexture(w[I]),w[I]=a.Qc(L,N,this.b.Ja);a.qc(0);a.Yc(w[I]);D=la-M;a.clearRect(O,N-M-D,da-O,D);d?d.vc(a):(a.Bc(this.b.rb),a.Tf(b.opacity),a.Jd(),a.translate(-S,-E),a.td(),a.Hd(z,T,P,T,P,H,z,H,x));A.left=A.top=0;A.right=A.bottom=1;d&&(u=x.top,x.top=x.bottom,x.bottom=u);I=1;X=0}a.Tf(1);t=f.length-1;var Ia=a.vn(f[t].gb)||!b&&!d&&!this.b.Dc;
r=u=0;for(q=f.length;r<q;r++){w[I]||(w[I]=a.Qc(L,N,this.b.Ja));if(w[I].kf!==L||w[I].jf!==N)a.deleteTexture(w[I]),w[I]=a.Qc(L,N,this.b.Ja);a.qc(f[r].gb);u=f[r].index;a.Jk(f[r].gb)&&(this.b.Ba=!0);0!=r||ma?(a.Tg(c,1/L,1/N,A.left,A.top,A.right,A.bottom,g,k,h,p,(h+m)/2,(p+n)/2,this.b.qb.P,d?d.Pa[u]:b?b.Pa[u]:this.Pa[u]),a.Bc(null),r!==t||Ia?(a.Yc(w[I]),D=la-M,K=N-M-D,a.clearRect(O,K,da-O,D)):(d?a.$e(d.Vb,d.Sb):b&&a.$e(b.Vb,b.Sb),a.Yc(c)),a.Bc(w[X]),a.Jd(),a.translate(-S,-E),a.td(),a.Hd(z,T,P,T,P,H,z,
H,x),r!==t||Ia||a.Bc(null)):(a.Yc(w[I]),D=la-M,K=N-M-D,a.clearRect(O,K,da-O,D),d?(d.Gb&&d.Gb.O?(K=d.Gb.O,X=1/K.width,K=1/K.height):(X=1/d.width,K=1/d.height),a.Tg(c,X,K,A.left,A.top,A.right,A.bottom,g,k,h,p,(h+m)/2,(p+n)/2,this.b.qb.P,d.Pa[u]),d.vc(a)):(a.Tg(c,1/L,1/N,0,0,1,1,g,k,h,p,(h+m)/2,(p+n)/2,this.b.qb.P,b?b.Pa[u]:this.Pa[u]),a.Bc(b?this.b.rb:this.b.cb),a.Jd(),a.translate(-S,-E),a.td(),a.Hd(z,T,P,T,P,H,z,H,x)),A.left=A.top=0,A.right=A.bottom=1,d&&!Ia&&(u=T,T=H,H=u));I=0===I?1:0;X=0===I?1:0}Ia&&
(a.qc(0),d?a.$e(d.Vb,d.Sb):b?a.$e(b.Vb,b.Sb):this.b.Dc||(a.Uf(this.b.width,this.b.height),S=this.b.width/2,E=this.b.height/2,H=z=0,P=this.b.width,T=this.b.height),a.Yc(c),a.Bc(w[X]),a.Jd(),a.translate(-S,-E),a.td(),d&&1===f.length&&!ma?a.Hd(z,H,P,H,P,T,z,T,x):a.Hd(z,T,P,T,P,H,z,H,x),a.Bc(null))};c.prototype.Qj=function(a){var b,d;b=0;for(d=this.fa.length;b<d;b++)if(this.fa[b].ma===a)return this.fa[b];return null};c.prototype.zb=function(){var a,b,d,c={sx:this.scrollX,sy:this.scrollY,s:this.scale,
a:this.q,w:this.width,h:this.height,fv:this.ng,persist:this.Ze,fx:[],layers:{}};a=0;for(b=this.ba.length;a<b;a++)d=this.ba[a],c.fx.push({name:d.name,active:d.Qb,params:this.Pa[d.index]});a=0;for(b=this.fa.length;a<b;a++)d=this.fa[a],c.layers[d.ma.toString()]=d.zb();return c};c.prototype.Lb=function(a){var b,d,c,f;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.Ze=a.persist;"undefined"!==typeof a.fv&&(this.ng=a.fv);var g=a.fx;b=0;for(d=g.length;b<d;b++)if(c=
this.jm(g[b].name))c.Qb=g[b].active,this.Pa[c.index]=g[b].params;this.sd();b=a.layers;for(f in b)b.hasOwnProperty(f)&&(a=this.Qj(parseInt(f,10)))&&a.Lb(b[f])};Ib=c;n.prototype.sd=function(){F(this.xa);this.me=!0;var a,b,d;a=0;for(b=this.ba.length;a<b;a++)d=this.ba[a],d.Qb&&(this.xa.push(d),d.kd||(this.me=!1))};n.prototype.jm=function(a){var b,d,c;b=0;for(d=this.ba.length;b<d;b++)if(c=this.ba[b],c.name===a)return c;return null};n.prototype.lu=function(){var a,b,d,c,f,g;b=a=0;for(d=this.Fc.length;a<
d;a++){c=this.Fc[a];f=this.b.B[c[1]];g=this.b.ao(f);f=!0;if(!g||this.bb.ng){c=this.b.Ke(c,this,!0);if(!c)continue;q.push(c);c.type.global&&(f=!1,this.oh.push(c.uid))}f&&(this.Fc[b]=this.Fc[a],b++)}this.Fc.length=b;this.b.Pb();!this.b.C&&this.ba.length&&(this.Rb=this.Mu);this.mh=hb(this.Rb);this.b.F&&ib(this,this.Rb,this.b.F);this.nd=!0};n.prototype.Rg=function(a,b){var d=Ca(this.j,a);0>d||(b&&this.Mc&&a.oc&&a.oc.right>=a.oc.left&&(a.Ea(),this.Ob.update(a,a.oc,null),a.oc.set(0,0,-1,-1)),d===this.j.length-
1?this.j.pop():(ya(this.j,d),this.Di(d)),this.nd=!0)};n.prototype.jh=function(a,b){a.ud=this.j.length;this.j.push(a);b&&this.Mc&&a.oc&&a.W();this.nd=!0};n.prototype.cx=function(a){this.j.unshift(a);this.Di(0)};n.prototype.Nw=function(a,b,d){var c=a.Bd();b=b.Bd();ya(this.j,c);c<b&&b--;d&&b++;b===this.j.length?this.j.push(a):this.j.splice(b,0,a);this.Di(c<b?c:b)};n.prototype.Di=function(a){-1===this.we?this.we=a:a<this.we&&(this.we=a);this.nd=this.$f=!0};n.prototype.eo=function(){if(this.$f){-1===this.we&&
(this.we=0);var a,b,d;if(this.Mc)for(a=this.we,b=this.j.length;a<b;++a)d=this.j[a],d.ud=a,this.Ob.Kw(d.oc);else for(a=this.we,b=this.j.length;a<b;++a)this.j[a].ud=a;this.$f=!1;this.we=-1}};n.prototype.Tc=function(a){return this.Jv()*(this.b.Dc||a?this.b.kh:1)};n.prototype.Jv=function(){return(this.scale*this.bb.scale-1)*this.Xb+1};n.prototype.Jb=function(){return this.Wd?0:Ha(this.bb.q+this.q)};var b=[],u=[],f=[];n.prototype.nm=function(){this.eo();this.Ob.Lk(this.Ca,this.Da,this.Ga,this.Fa,f);if(!f.length)return k();
if(1===f.length){var a=k();Aa(a,f[0]);F(f);return a}for(var b=!0;1<f.length;){for(var a=f,d=void 0,c=void 0,g=void 0,m=void 0,v=void 0,d=0,c=a.length;d<c-1;d+=2){var g=a[d],m=a[d+1],v=k(),h=g,p=m,n=v,q=0,w=0,r=0,G=h.length,y=p.length,Q=void 0,I=void 0;for(n.length=G+y;q<G&&w<y;++r)Q=h[q],I=p[w],Q.ud<I.ud?(n[r]=Q,++q):(n[r]=I,++w);for(;q<G;++q,++r)n[r]=h[q];for(;w<y;++w,++r)n[r]=p[w];b||(t(g),t(m));u.push(v)}1===c%2&&(b?(g=k(),Aa(g,a[c-1]),u.push(g)):u.push(a[c-1]));Aa(a,u);F(u);b=!1}a=f[0];F(f);return a};
n.prototype.Xd=function(a){this.Id=this.Lj||1!==this.opacity||0!==this.Rb;var b=this.b.canvas,d=a,c=!1;this.Id&&(this.b.ik||(this.b.ik=document.createElement("canvas"),b=this.b.ik,b.width=this.b.S,b.height=this.b.R,this.b.bq=b.getContext("2d"),c=!0),b=this.b.ik,d=this.b.bq,b.width!==this.b.S&&(b.width=this.b.S,c=!0),b.height!==this.b.R&&(b.height=this.b.R,c=!0),c&&this.b.Rk(d,this.b.Ja),this.rd&&d.clearRect(0,0,this.b.S,this.b.R));d.globalAlpha=1;d.globalCompositeOperation="source-over";this.rd||
(d.fillStyle="rgb("+this.cd[0]+","+this.cd[1]+","+this.cd[2]+")",d.fillRect(0,0,this.b.S,this.b.R));d.save();this.Wd=!0;var c=this.mb(0,0,!0,!0),f=this.mb(0,0,!1,!0);this.Wd=!1;this.b.jd&&(c=Math.round(c),f=Math.round(f));this.Nk(c,f,d);var g=this.Tc();d.scale(g,g);d.translate(-c,-f);this.Mc?(this.Hb.left=this.Ob.hc(this.Ca),this.Hb.top=this.Ob.ic(this.Da),this.Hb.right=this.Ob.hc(this.Ga),this.Hb.bottom=this.Ob.ic(this.Fa),this.nd||!this.Hb.rh(this.Cg)?(t(this.fe),c=this.nm(),this.nd=!1,this.Cg.ig(this.Hb)):
c=this.fe):c=this.j;for(var k,h=null,f=0,g=c.length;f<g;++f)k=c[f],k!==h&&(this.Hu(k,d),h=k);this.Mc&&(this.fe=c);d.restore();this.Id&&(a.globalCompositeOperation=this.mh,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};n.prototype.Hu=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Ea();var d=a.Ka;d.right<this.Ca||d.bottom<this.Da||d.left>this.Ga||d.top>this.Fa||(b.globalCompositeOperation=a.mh,a.Xd(b))}};n.prototype.ql=function(){this.Wd=!0;var a=this.mb(0,0,!0,!0),b=this.mb(0,0,!1,!0);this.Wd=
!1;this.b.jd&&(a=Math.round(a),b=Math.round(b));this.Nk(a,b,null)};n.prototype.Nk=function(a,b,d){var c=this.Tc();this.Ca=a;this.Da=b;this.Ga=a+1/c*this.b.S;this.Fa=b+1/c*this.b.R;this.Ca>this.Ga&&(a=this.Ca,this.Ca=this.Ga,this.Ga=a);this.Da>this.Fa&&(a=this.Da,this.Da=this.Fa,this.Fa=a);a=this.Jb();0!==a&&(d&&(d.translate(this.b.S/2,this.b.R/2),d.rotate(-a),d.translate(this.b.S/-2,this.b.R/-2)),this.qe.set(this.Ca,this.Da,this.Ga,this.Fa),this.qe.offset((this.Ca+this.Ga)/-2,(this.Da+this.Fa)/-2),
this.Nr.yr(this.qe,a),this.Nr.Wo(this.qe),this.qe.offset((this.Ca+this.Ga)/2,(this.Da+this.Fa)/2),this.Ca=this.qe.left,this.Da=this.qe.top,this.Ga=this.qe.right,this.Fa=this.qe.bottom)};n.prototype.nf=function(a){if(this.Id=this.Lj){this.b.rb||(this.b.rb=a.Qc(this.b.S,this.b.R,this.b.Ja));if(this.b.rb.kf!==this.b.S||this.b.rb.jf!==this.b.R)a.deleteTexture(this.b.rb),this.b.rb=a.Qc(this.b.S,this.b.R,this.b.Ja);a.Yc(this.b.rb)}this.Wd=!0;var b=this.mb(0,0,!0,!0),d=this.mb(0,0,!1,!0);this.Wd=!1;this.b.jd&&
(b=Math.round(b),d=Math.round(d));this.Nk(b,d,null);b=this.Tc();a.Jd();a.scale(b,b);a.Dn(-this.Jb());a.translate((this.Ca+this.Ga)/-2,(this.Da+this.Fa)/-2);a.td();this.Mc?(this.Hb.left=this.Ob.hc(this.Ca),this.Hb.top=this.Ob.ic(this.Da),this.Hb.right=this.Ob.hc(this.Ga),this.Hb.bottom=this.Ob.ic(this.Fa),this.nd||!this.Hb.rh(this.Cg)?(t(this.fe),b=this.nm(),this.nd=!1,this.Cg.ig(this.Hb)):b=this.fe):b=this.j;for(var c,f=null,d=b.length-1;0<=d;--d)c=b[d],c!==f&&(this.Ju(b[d],a),f=c);this.Mc&&(this.fe=
b);this.rd||(this.Nl=this.b.pf++,a.Sk(this.Nl),a.qr(1,1,1),a.up(),a.tx())};n.prototype.vc=function(a){var b=0,d=0;if(this.Id=this.Lj||1!==this.opacity||0<this.xa.length||0!==this.Rb){this.b.rb||(this.b.rb=a.Qc(this.b.S,this.b.R,this.b.Ja));if(this.b.rb.kf!==this.b.S||this.b.rb.jf!==this.b.R)a.deleteTexture(this.b.rb),this.b.rb=a.Qc(this.b.S,this.b.R,this.b.Ja);a.Yc(this.b.rb);this.rd&&a.clear(0,0,0,0)}this.rd||(this.b.Ia?(a.Sk(this.Nl),a.qr(this.cd[0]/255,this.cd[1]/255,this.cd[2]/255),a.up(),a.Hx()):
a.clear(this.cd[0]/255,this.cd[1]/255,this.cd[2]/255,1));this.Wd=!0;var c=this.mb(0,0,!0,!0),b=this.mb(0,0,!1,!0);this.Wd=!1;this.b.jd&&(c=Math.round(c),b=Math.round(b));this.Nk(c,b,null);c=this.Tc();a.Jd();a.scale(c,c);a.Dn(-this.Jb());a.translate((this.Ca+this.Ga)/-2,(this.Da+this.Fa)/-2);a.td();this.Mc?(this.Hb.left=this.Ob.hc(this.Ca),this.Hb.top=this.Ob.ic(this.Da),this.Hb.right=this.Ob.hc(this.Ga),this.Hb.bottom=this.Ob.ic(this.Fa),this.nd||!this.Hb.rh(this.Cg)?(t(this.fe),b=this.nm(),this.nd=
!1,this.Cg.ig(this.Hb)):b=this.fe):b=this.j;var f,g,k=null,d=0;for(f=b.length;d<f;++d)g=b[d],g!==k&&(this.Iu(b[d],a),k=g);this.Mc&&(this.fe=b);this.Id&&(b=this.xa.length?this.xa[0].gb:0,d=this.xa.length?this.xa[0].index:0,0===this.xa.length||1===this.xa.length&&!a.vn(b)&&1===this.opacity?(1===this.xa.length?(a.qc(b),a.Tg(this.bb.zh(),1/this.b.S,1/this.b.R,0,0,1,1,c,this.Jb(),this.Ca,this.Da,(this.Ca+this.Ga)/2,(this.Da+this.Fa)/2,this.b.qb.P,this.Pa[d]),a.Jk(b)&&(this.b.Ba=!0)):a.qc(0),a.Yc(this.bb.zh()),
a.Tf(this.opacity),a.Bc(this.b.rb),a.$e(this.Vb,this.Sb),a.Jd(),a.td(),c=this.b.S/2,b=this.b.R/2,a.ri(-c,b,c,b,c,-b,-c,-b),a.Bc(null)):this.bb.An(a,this,null,this.bb.zh()))};n.prototype.Iu=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Ea();var d=a.Ka;d.right<this.Ca||d.bottom<this.Da||d.left>this.Ga||d.top>this.Fa||(b.Sk(a.pf),a.Zr?this.Ku(a,b):(b.qc(0),b.$e(a.Vb,a.Sb),a.vc(b)))}};n.prototype.Ju=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Ea();var d=a.Ka;d.right<this.Ca||d.bottom<
this.Da||d.left>this.Ga||d.top>this.Fa||(a.pf=this.b.pf++,0===a.Rb&&1===a.opacity&&a.me&&a.nf&&(b.Sk(a.pf),a.nf(b)))}};n.prototype.Ku=function(a,b){var d=a.xa[0].gb,c=a.xa[0].index,f=this.Tc();if(1!==a.xa.length||b.vn(d)||b.hx(d)||(a.q||a.A.Jb())&&b.pi(d)||1!==a.opacity||a.type.ua.Cq)this.bb.An(b,this,a,this.Id?this.b.rb:this.bb.zh()),b.Jd(),b.scale(f,f),b.Dn(-this.Jb()),b.translate((this.Ca+this.Ga)/-2,(this.Da+this.Fa)/-2),b.td();else{b.qc(d);b.$e(a.Vb,a.Sb);b.Jk(d)&&(this.b.Ba=!0);var g=0,k=0,
h=0,p=0;b.pi(d)&&(p=a.Ka,g=this.cc(p.left,p.top,!0,!0),k=this.cc(p.left,p.top,!1,!0),h=this.cc(p.right,p.bottom,!0,!0),p=this.cc(p.right,p.bottom,!1,!0),g=g/windowWidth,k=1-k/windowHeight,h=h/windowWidth,p=1-p/windowHeight);var m;a.Gb&&a.Gb.O?(m=a.Gb.O,d=1/m.width,m=1/m.height):(d=1/a.width,m=1/a.height);b.Tg(this.Id?this.b.rb:this.bb.zh(),d,m,g,k,h,p,f,this.Jb(),this.Ca,this.Da,(this.Ca+this.Ga)/2,(this.Da+this.Fa)/2,this.b.qb.P,a.Pa[c]);a.vc(b)}};n.prototype.mb=function(a,b,d,c){var f=this.b.devicePixelRatio;
this.b.Df&&(a*=f,b*=f);var f=this.b.Zq,g=this.b.$q,f=(this.bb.scrollX-f)*this.mc+f,g=(this.bb.scrollY-g)*this.nc+g,k=f,h=g,p=1/this.Tc(!c);c?(k-=this.b.S*p/2,h-=this.b.R*p/2):(k-=this.b.width*p/2,h-=this.b.height*p/2);k+=a*p;h+=b*p;b=this.Jb();0!==b&&(k-=f,h-=g,a=Math.cos(b),b=Math.sin(b),c=k*a-h*b,h=h*a+k*b,k=c+f,h+=g);return d?k:h};n.prototype.cc=function(a,b,d,c){var f=this.b.Zq,g=this.b.$q,k=(this.bb.scrollX-f)*this.mc+f,h=(this.bb.scrollY-g)*this.nc+g,g=k,f=h,p=this.Jb();if(0!==p){a-=k;b-=h;
var m=Math.cos(-p),p=Math.sin(-p),n=a*m-b*p;b=b*m+a*p;a=n+k;b+=h}k=1/this.Tc(!c);c?(g-=this.b.S*k/2,f-=this.b.R*k/2):(g-=this.b.width*k/2,f-=this.b.height*k/2);g=(a-g)/k;f=(b-f)/k;a=this.b.devicePixelRatio;this.b.Df&&!c&&(g/=a,f/=a);return d?g:f};n.prototype.zb=function(){var a,b,d,c={s:this.scale,a:this.q,vl:this.Ca,vt:this.Da,vr:this.Ga,vb:this.Fa,v:this.visible,bc:this.cd,t:this.rd,px:this.mc,py:this.nc,o:this.opacity,zr:this.Xb,fx:[],cg:this.oh,instances:[]};a=0;for(b=this.ba.length;a<b;a++)d=
this.ba[a],c.fx.push({name:d.name,active:d.Qb,params:this.Pa[d.index]});return c};n.prototype.Lb=function(a){var b,d,c;this.scale=a.s;this.q=a.a;this.Ca=a.vl;this.Da=a.vt;this.Ga=a.vr;this.Fa=a.vb;this.visible=a.v;this.cd=a.bc;this.rd=a.t;this.mc=a.px;this.nc=a.py;this.opacity=a.o;this.Xb=a.zr;this.oh=a.cg||[];Aa(this.Fc,this.Hr);var f=new ca;b=0;for(c=this.oh.length;b<c;++b)f.add(this.oh[b]);d=b=0;for(c=this.Fc.length;b<c;++b)f.contains(this.Fc[b][2])||(this.Fc[d]=this.Fc[b],++d);za(this.Fc,d);d=
a.fx;b=0;for(c=d.length;b<c;b++)if(a=this.jm(d[b].name))a.Qb=d[b].active,this.Pa[a.index]=d[b].params;this.sd();this.j.sort(m);this.$f=!0};Wb=n})();
(function(){function c(a,b){var d,c=a.length;switch(c){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<c;d++)if(a[d]!==b[d])return!1;return!0}}function m(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(m);a.length>=B.length&&(B.length=a.length+1);B[a.length]||(B[a.length]=[]);e=B[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 k(a,b){this.b=a;this.Qr={};this.pp={};this.um=!1;this.Ip=new ca;this.Tl=[];this.Cl=[];this.name=b[0];var d=b[1];this.Ne=[];var c,f;c=0;for(f=d.length;c<f;c++)this.Kp(d[c],null,this.Ne)}function t(a){this.type=a;this.j=[];this.ca=[];this.ga=!0}function q(a,b,d){this.sheet=a;this.parent=b;this.b=a.b;this.ya=[];this.bf=[];this.Gp=this.il=this.Xn=this.Xj=this.group=this.Rn=!1;this.nb=[];this.Nc=[];this.Zc=[];this.Ch="";this.xf=this.Xj=this.group=!1;this.uj=null;d[1]&&(this.Ch=d[1][1].toLowerCase(),
this.group=!0,this.Xj=!!d[1][0],this.uj=[],this.xf=this.Xj,this.b.Be.push(this),this.b.rg[this.Ch]=this);this.Kc=d[2];this.ma=d[4];this.group||(this.b.Uo[this.ma.toString()]=this);var c=d[5];a=0;for(b=c.length;a<b;a++){var f=new Xb(this,c[a]);f.index=a;this.nb.push(f);this.Oo(f.type)}c=d[6];a=0;for(b=c.length;a<b;a++)f=new Yb(this,c[a]),f.index=a,this.Nc.push(f);if(8===d.length)for(d=d[7],a=0,b=d.length;a<b;a++)this.sheet.Kp(d[a],this,this.Zc);this.fk=!1;this.nb.length&&(this.fk=null==this.nb[0].type&&
this.nb[0].Ib==W.prototype.n.no)}function g(a,b){var d,c,f;if(a&&(-1===b.indexOf(a)&&b.push(a),a.Kb))for(d=0,c=a.uc.length;d<c;d++)f=a.uc[d],a!==f&&-1===b.indexOf(f)&&b.push(f)}function b(a,b){this.Cc=a;this.sheet=a.sheet;this.b=a.b;this.da=[];this.Ra=[];this.L={};this.index=-1;this.hh=!1;this.Ib=this.b.ye(b[1]);this.trigger=0<b[3];this.op=2===b[3];this.Ed=b[4];this.Yj=b[5];this.Aw=b[6];this.ma=b[7];this.b.Ie[this.ma.toString()]=this;-1===b[0]?(this.type=null,this.fb=this.Fn,this.gf=null,this.dd=
-1):(this.type=this.b.B[b[0]],this.fb=this.Aw?this.zx:this.En,b[2]?(this.gf=this.type.Pj(b[2]),this.dd=this.type.gm(b[2])):(this.gf=null,this.dd=-1),this.Cc.parent&&this.Cc.parent.Uk());this.op&&(this.fb=this.Ax);if(10===b.length){var d,c,f=b[9];d=0;for(c=f.length;d<c;d++){var e=new Zb(this,f[d]);this.da.push(e)}this.Ra.length=f.length}}function u(a,b){this.Cc=a;this.sheet=a.sheet;this.b=a.b;this.da=[];this.Ra=[];this.L={};this.index=-1;this.hh=!1;this.Ib=this.b.ye(b[1]);-1===b[0]?(this.type=null,
this.fb=this.Fn,this.gf=null,this.dd=-1):(this.type=this.b.B[b[0]],this.fb=this.En,b[2]?(this.gf=this.type.Pj(b[2]),this.dd=this.type.gm(b[2])):(this.gf=null,this.dd=-1));this.ma=b[3];this.b.Ae[this.ma.toString()]=this;if(6===b.length){var d,c,f=b[5];d=0;for(c=f.length;d<c;d++){var e=new Zb(this,f[d]);this.da.push(e)}this.Ra.length=f.length}}function f(){v++;J.length===v&&J.push(new $b);return J[v]}function a(a,b){this.Wc=a;this.Cc=a.Cc;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.zd=null;this.ne=
0;this.get=null;this.ep=0;this.bb=null;this.key=0;this.object=null;this.index=0;this.Ui=this.Wf=this.Ui=this.Wf=this.sp=this.sf=this.Vi=null;this.ad=!1;var d,c,f;switch(b[0]){case 0:case 7:this.zd=new ac(this,b[1]);this.ne=0;this.get=this.Uv;break;case 1:this.zd=new ac(this,b[1]);this.ne=0;this.get=this.Vv;break;case 5:this.zd=new ac(this,b[1]);this.ne=0;this.get=this.Zv;break;case 3:case 8:this.ep=b[1];this.get=this.Sv;break;case 6:this.bb=this.b.Dg[b[1]];this.get=this.$v;break;case 9:this.key=b[1];
this.get=this.Yv;break;case 4:this.object=this.b.B[b[1]];this.get=this.aw;this.Cc.Oo(this.object);this.Wc instanceof Yb?this.Cc.Uk():this.Cc.parent&&this.Cc.parent.Uk();break;case 10:this.index=b[1];a.type&&a.type.N?(this.get=this.Wv,this.ad=!0):this.get=this.Xv;break;case 11:this.Vi=b[1];this.sf=null;this.get=this.Tv;break;case 2:case 12:this.sp=b[1];this.get=this.Rv;break;case 13:for(this.get=this.bw,this.Wf=[],this.Ui=[],d=1,c=b.length;d<c;d++)f=new Zb(this.Wc,b[d]),this.Wf.push(f),this.Ui.push(0)}}
function e(a,b,d){this.sheet=a;this.parent=b;this.b=a.b;this.ya=[];this.name=d[1];this.sl=d[2];this.Wj=d[3];this.Qh=!!d[4];this.ek=!!d[5];this.ma=d[6];this.b.eh[this.ma.toString()]=this;this.data=this.Wj;this.parent?(this.Of=this.Qh||this.ek?-1:this.b.Kx++,this.b.Zt.push(this)):(this.Of=-1,this.b.Bl.push(this))}function d(a,b,d){this.sheet=a;this.parent=b;this.b=a.b;this.ya=[];this.Eh=null;this.iw=d[1];this.Qb=!0}function l(){this.Jr=[];this.reset(null)}var B=[];k.prototype.toString=function(){return this.name};
k.prototype.Kp=function(a,b,d){switch(a[0]){case 0:a=new bc(this,b,a);if(a.Kc)for(d.push(a),d=0,b=a.nb.length;d<b;d++)a.nb[d].trigger&&this.Lp(a,d);else a.Wp()?this.Lp(a,0):d.push(a);break;case 1:a=new Tb(this,b,a);d.push(a);break;case 2:a=new cc(this,b,a),d.push(a)}};k.prototype.Xa=function(){var a,b;a=0;for(b=this.Ne.length;a<b;a++)this.Ne[a].Xa(a<b-1&&this.Ne[a+1].fk)};k.prototype.bo=function(){F(this.Tl);F(this.Cl);this.No(this);F(this.Cl)};k.prototype.No=function(a){var b,d,c,f,e=a.Tl,g=a.Cl,
l=this.Ip.te();b=0;for(d=l.length;b<d;++b)c=l[b],f=c.Eh,!c.Qb||a===f||-1<g.indexOf(f)||(g.push(f),f.No(a),e.push(f))};k.prototype.fb=function(a){this.b.oz||(this.um=!0,a||(this.b.Em=!0));var b,d;b=0;for(d=this.Ne.length;b<d;b++){var c=this.Ne[b];c.fb();this.b.Ml(c.ya);this.b.Pe&&this.b.Pb()}a||(this.b.Em=!1)};k.prototype.Lp=function(a,b){a.Kc||this.b.ml.push(a);var d,c,f=a.nb[b],e;f.type?e=f.type.name:e="system";var g=(d=f.op)?this.pp:this.Qr;g[e]||(g[e]=[]);e=g[e];g=f.Ib;if(d){if(f.da.length&&(f=
f.da[0],1===f.type&&2===f.zd.type)){f=f.zd.value.toLowerCase();d=0;for(c=e.length;d<c;d++)if(e[d].method==g){d=e[d].sh;d[f]?d[f].push([a,b]):d[f]=[[a,b]];return}d={};d[f]=[[a,b]];e.push({method:g,sh:d})}}else{d=0;for(c=e.length;d<c;d++)if(e[d].method==g){e[d].sh.push([a,b]);return}Y&&g===Y.prototype.n.eg?e.unshift({method:g,sh:[[a,b]]}):e.push({method:g,sh:[[a,b]]})}};Jb=k;t.prototype.tm=function(){return this.ga?this.type.j.length:this.j.length};t.prototype.lc=function(){return this.ga?this.type.j:
this.j};t.prototype.ni=function(a){a&&(a.b.Qa().Wa.Kc?(this.ga&&(F(this.j),Aa(this.ca,a.type.j),this.ga=!1),a=this.ca.indexOf(a),-1!==a&&(this.j.push(this.ca[a]),this.ca.splice(a,1))):(this.ga=!1,F(this.j),this.j[0]=a))};qb=t;window._c2hh_="961E9B51D9D1D93209C15E525FFEBF6CBA83A04F";q.prototype.Xa=function(a){var b,d=this.parent;if(this.group)for(this.il=!0;d;){if(!d.group){this.il=!1;break}d=d.parent}this.Xn=!this.Wp()&&(!this.parent||this.parent.group&&this.parent.il);this.Gp=!!a;this.bf=this.ya.slice(0);
for(d=this.parent;d;){a=0;for(b=d.ya.length;a<b;a++)this.Xt(d.ya[a]);d=d.parent}this.ya=n(this.ya);this.bf=n(this.bf);a=0;for(b=this.nb.length;a<b;a++)this.nb[a].Xa();a=0;for(b=this.Nc.length;a<b;a++)this.Nc[a].Xa();a=0;for(b=this.Zc.length;a<b;a++)this.Zc[a].Xa(a<b-1&&this.Zc[a+1].fk)};q.prototype.Bi=function(a){if(this.xf!==!!a){this.xf=!!a;var b;a=0;for(b=this.uj.length;a<b;++a)this.uj[a].Vr();0<b&&this.b.T.rf&&this.b.T.rf.bo()}};q.prototype.Oo=function(a){g(a,this.ya)};q.prototype.Xt=function(a){g(a,
this.bf)};q.prototype.Uk=function(){this.Rn=!0;this.parent&&this.parent.Uk()};q.prototype.Wp=function(){return this.nb.length?this.nb[0].trigger:!1};q.prototype.fb=function(){var a,b,d=!1,c=this.b,f=this.b.Qa();f.Wa=this;var e=this.nb;this.fk||(f.Wl=!1);if(this.Kc){0===e.length&&(d=!0);f.Ya=0;for(a=e.length;f.Ya<a;f.Ya++)b=e[f.Ya],b.trigger||(b=b.fb())&&(d=!0);(f.Hf=d)&&this.Ok()}else{f.Ya=0;for(a=e.length;f.Ya<a;f.Ya++)if(b=e[f.Ya].fb(),!b){f.Hf=!1;this.Xn&&c.Pe&&c.Pb();return}f.Hf=!0;this.Ok()}this.Ou(f)};
q.prototype.Ou=function(a){a.Hf&&this.Gp&&(a.Wl=!0);this.Xn&&this.b.Pe&&this.b.Pb()};q.prototype.xx=function(a){this.b.Qa().Wa=this;this.nb[a].fb()&&(this.Ok(),this.b.Qa().Hf=!0)};q.prototype.Ok=function(){var a=this.b.Qa(),b;a.kc=0;for(b=this.Nc.length;a.kc<b;a.kc++)if(this.Nc[a.kc].fb())return;this.or()};q.prototype.vx=function(){var a=this.b.Qa(),b;for(b=this.Nc.length;a.kc<b;a.kc++)if(this.Nc[a.kc].fb())return;this.or()};q.prototype.or=function(){if(this.Zc.length){var a,b,d,c,f=this.Zc.length-
1;this.b.Kk(this);if(this.Rn)for(a=0,b=this.Zc.length;a<b;a++)d=this.Zc[a],(c=!this.il||!this.group&&a<f)&&this.b.Qg(d.ya),d.fb(),c?this.b.ke(d.ya):this.b.Ml(d.ya);else for(a=0,b=this.Zc.length;a<b;a++)this.Zc[a].fb();this.b.Fk()}};q.prototype.yx=function(){var a=this.b.Qa();a.Wa=this;var b=!1,d;a.Ya=0;for(d=this.nb.length;a.Ya<d;a.Ya++)if(this.nb[a.Ya].fb())b=!0;else if(!this.Kc)return!1;return this.Kc?b:!0};q.prototype.xi=function(){this.b.tf++;var a=this.b.Qa().Ya,b=this.b.Kk(this);if(!this.Kc)for(b.Ya=
a+1,a=this.nb.length;b.Ya<a;b.Ya++)if(!this.nb[b.Ya].fb()){this.b.Fk();return}this.Ok();this.b.Fk()};q.prototype.sw=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.nb[b].type===a.type)return!1;return!0};bc=q;b.prototype.Xa=function(){var a,b,d;a=0;for(b=this.da.length;a<b;a++)d=this.da[a],d.Xa(),d.ad&&(this.hh=!0)};b.prototype.Ax=function(){return!0};b.prototype.Fn=function(){var a,b;a=0;for(b=this.da.length;a<b;a++)this.Ra[a]=this.da[a].get();return Ta(this.Ib.apply(this.b.Ld,
this.Ra),this.Yj)};b.prototype.zx=function(){var a,b;a=0;for(b=this.da.length;a<b;a++)this.Ra[a]=this.da[a].get();a=this.Ib.apply(this.gf?this.gf:this.type,this.Ra);this.type.Oc();return a};b.prototype.En=function(){var a,b,d,c,f,e,g,l,k=this.type,m=k.Y(),v=this.Cc.Kc&&!this.trigger;b=0;var n=k.Kb,q=k.N,t=k.Zd,B=this.dd,u=-1<B,J=this.hh,x=this.da,A=this.Ra,z=this.Yj,O=this.Ib,H;if(J)for(b=0,f=x.length;b<f;++b)e=x[b],e.ad||(A[b]=e.get(0));else for(b=0,f=x.length;b<f;++b)A[b]=x[b].get(0);if(m.ga){F(m.j);
F(m.ca);H=k.j;a=0;for(c=H.length;a<c;++a){l=H[a];if(J)for(b=0,f=x.length;b<f;++b)e=x[b],e.ad&&(A[b]=e.get(a));u?(b=0,q&&(b=l.type.mg[t]),b=O.apply(l.U[B+b],A)):b=O.apply(l,A);(g=Ta(b,z))?m.j.push(l):v&&m.ca.push(l)}k.finish&&k.finish(!0);m.ga=!1;k.Oc();return m.tm()}d=0;H=(g=v&&!this.Cc.sw(this))?m.ca:m.j;var M=!1;a=0;for(c=H.length;a<c;++a){l=H[a];if(J)for(b=0,f=x.length;b<f;++b)e=x[b],e.ad&&(A[b]=e.get(a));u?(b=0,q&&(b=l.type.mg[t]),b=O.apply(l.U[B+b],A)):b=O.apply(l,A);if(Ta(b,z))if(M=!0,g){if(m.j.push(l),
n)for(b=0,f=l.siblings.length;b<f;b++)e=l.siblings[b],e.type.Y().j.push(e)}else{H[d]=l;if(n)for(b=0,f=l.siblings.length;b<f;b++)e=l.siblings[b],e.type.Y().j[d]=e;d++}else if(g){H[d]=l;if(n)for(b=0,f=l.siblings.length;b<f;b++)e=l.siblings[b],e.type.Y().ca[d]=e;d++}else if(v&&(m.ca.push(l),n))for(b=0,f=l.siblings.length;b<f;b++)e=l.siblings[b],e.type.Y().ca.push(e)}za(H,d);if(n)for(q=k.uc,a=0,c=q.length;a<c;a++)l=q[a].Y(),g?za(l.ca,d):za(l.j,d);d=M;if(g&&!M)for(a=0,c=m.j.length;a<c;a++){l=m.j[a];if(J)for(b=
0,f=x.length;b<f;b++)e=x[b],e.ad&&(A[b]=e.get(a));b=u?O.apply(l.U[B],A):O.apply(l,A);if(Ta(b,z)){M=!0;break}}k.finish&&k.finish(d||v);return v?M:m.tm()};Xb=b;u.prototype.Xa=function(){var a,b,d;a=0;for(b=this.da.length;a<b;a++)d=this.da[a],d.Xa(),d.ad&&(this.hh=!0)};u.prototype.Fn=function(){var a=this.b,b,d,c=this.da,f=this.Ra;b=0;for(d=c.length;b<d;++b)f[b]=c[b].get();return this.Ib.apply(a.Ld,f)};u.prototype.En=function(){var a=this.type,b=this.dd,d=a.Zd,c=this.hh,f=this.da,e=this.Ra,g=this.Ib,
l=a.Y().lc(),a=a.N,k=-1<b,m,v,n,q,t,B;if(c)for(v=0,q=f.length;v<q;++v)t=f[v],t.ad||(e[v]=t.get(0));else for(v=0,q=f.length;v<q;++v)e[v]=f[v].get(0);m=0;for(n=l.length;m<n;++m){B=l[m];if(c)for(v=0,q=f.length;v<q;++v)t=f[v],t.ad&&(e[v]=t.get(m));k?(v=0,a&&(v=B.type.mg[d]),g.apply(B.U[b+v],e)):g.apply(B,e)}return!1};Yb=u;var J=[],v=-1;a.prototype.Xa=function(){var a,b;if(11===this.type)this.sf=this.b.Ap(this.Vi,this.Cc.parent);else if(13===this.type)for(a=0,b=this.Wf.length;a<b;a++)this.Wf[a].Xa();this.zd&&
this.zd.Xa()};a.prototype.Mw=function(a){this.ad||!a||a.ua.$k||(this.ad=!0)};a.prototype.ur=function(){this.ad=!0};a.prototype.Uv=function(a){this.ne=a||0;a=f();this.zd.get(a);v--;return a.data};a.prototype.Vv=function(a){this.ne=a||0;a=f();this.zd.get(a);v--;return ia(a.data)?a.data:""};a.prototype.aw=function(){return this.object};a.prototype.Sv=function(){return this.ep};a.prototype.Zv=function(a){this.ne=a||0;a=f();this.zd.get(a);v--;return a.Cb()?this.b.ae(a.data):this.b.xh(a.data)};a.prototype.$v=
function(){return this.bb};a.prototype.Yv=function(){return this.key};a.prototype.Xv=function(){return this.index};a.prototype.Wv=function(a){a=a||0;var b=this.Wc.type,d=null,d=b.Y(),c=d.lc();if(c.length)d=c[a%c.length].type;else if(d.ca.length)d=d.ca[a%d.ca.length].type;else if(b.j.length)d=b.j[a%b.j.length].type;else return 0;return this.index+d.Hj[b.Zd]};a.prototype.Tv=function(){return this.sf};a.prototype.Rv=function(){return this.sp};a.prototype.bw=function(){var a,b;a=0;for(b=this.Wf.length;a<
b;a++)this.Ui[a]=this.Wf[a].get();return this.Ui};Zb=a;e.prototype.Xa=function(){this.ya=n(this.ya)};e.prototype.Vf=function(a){var b=this.b.yp();this.parent&&!this.Qh&&b?(this.Of>=b.length&&(b.length=this.Of+1),b[this.Of]=a):this.data=a};e.prototype.Ah=function(){var a=this.b.yp();return!this.parent||this.Qh||!a||this.ek?this.data:this.Of>=a.length||"undefined"===typeof a[this.Of]?this.Wj:a[this.Of]};e.prototype.fb=function(){!this.parent||this.Qh||this.ek||this.Vf(this.Wj)};Tb=e;d.prototype.toString=
function(){return"include:"+this.Eh.toString()};d.prototype.Xa=function(){this.Eh=this.b.Yl[this.iw];this.sheet.Ip.add(this);this.ya=n(this.ya);for(var a=this.parent;a;)a.group&&a.uj.push(this),a=a.parent;this.Vr()};d.prototype.fb=function(){this.parent&&this.b.qi(this.b.B);this.Eh.um||this.Eh.fb(!0);this.parent&&this.b.ke(this.b.B)};d.prototype.Vr=function(){for(var a=this.parent;a;){if(a.group&&!a.xf){this.Qb=!1;return}a=a.parent}this.Qb=!0};cc=d;l.prototype.reset=function(a){this.Wa=a;this.kc=
this.Ya=0;F(this.Jr);this.Wl=this.Hf=!1};l.prototype.Rp=function(){return this.Wa.Rn?!0:this.Ya<this.Wa.nb.length-1?!!this.Wa.ya.length:!1};Sb=l})();
(function(){function c(c,b){this.Wc=c;this.b=c.b;this.type=b[0];this.get=[this.hv,this.bv,this.sv,this.vv,this.Ru,this.tv,this.nv,this.Zu,this.lv,this.rv,this.Su,this.qv,this.$u,this.ov,this.jv,this.kv,this.cv,this.dv,this.Yu,this.uv,this.pv,this.gv,this.Xu,this.av][this.type];var k=null;this.ge=this.da=this.Ra=this.Ib=this.hl=this.second=this.first=this.value=null;this.dd=-1;this.fd=null;this.$r=-1;this.sf=this.Vi=null;this.Sg=!1;switch(this.type){case 0:case 1:case 2:this.value=b[1];break;case 3:this.first=
new ac(c,b[1]);break;case 18:this.first=new ac(c,b[1]);this.second=new ac(c,b[2]);this.hl=new ac(c,b[3]);break;case 19:this.Ib=this.b.ye(b[1]);this.Ib!==W.prototype.V.random&&this.Ib!==W.prototype.V.cp||this.Wc.ur();this.Ra=[];this.da=[];3===b.length?(k=b[2],this.Ra.length=k.length+1):this.Ra.length=1;break;case 20:this.ge=this.b.B[b[1]];this.dd=-1;this.Ib=this.b.ye(b[2]);this.Sg=b[3];oc&&this.Ib===oc.prototype.V.hs&&this.Wc.ur();b[4]?this.fd=new ac(c,b[4]):this.fd=null;this.Ra=[];this.da=[];6===
b.length?(k=b[5],this.Ra.length=k.length+1):this.Ra.length=1;break;case 21:this.ge=this.b.B[b[1]];this.Sg=b[2];b[3]?this.fd=new ac(c,b[3]):this.fd=null;this.$r=b[4];break;case 22:this.ge=this.b.B[b[1]];this.ge.Pj(b[2]);this.dd=this.ge.gm(b[2]);this.Ib=this.b.ye(b[3]);this.Sg=b[4];b[5]?this.fd=new ac(c,b[5]):this.fd=null;this.Ra=[];this.da=[];7===b.length?(k=b[6],this.Ra.length=k.length+1):this.Ra.length=1;break;case 23:this.Vi=b[1],this.sf=null}this.Wc.Mw(this.ge);4<=this.type&&17>=this.type&&(this.first=
new ac(c,b[1]),this.second=new ac(c,b[2]));if(k){var f,a;f=0;for(a=k.length;f<a;f++)this.da.push(new ac(c,k[f]))}}function m(){++q;t.length===q&&t.push(new $b);return t[q]}function n(c,b,k){var f,a;f=0;for(a=c.length;f<a;++f)c[f].get(k),b[f+1]=k.data}function k(c,b){this.type=c||dc.bg;this.data=b||0;this.Qf=null;this.type==dc.bg&&(this.data=Math.floor(this.data))}c.prototype.Xa=function(){23===this.type&&(this.sf=this.Wc.b.Ap(this.Vi,this.Wc.Cc.parent));this.first&&this.first.Xa();this.second&&this.second.Xa();
this.hl&&this.hl.Xa();this.fd&&this.fd.Xa();if(this.da){var c,b;c=0;for(b=this.da.length;c<b;c++)this.da[c].Xa()}};var t=[],q=-1;c.prototype.uv=function(c){var b=this.da,k=this.Ra;k[0]=c;c=m();n(b,k,c);--q;this.Ib.apply(this.b.Ld,k)};c.prototype.pv=function(c){var b=this.ge,k=this.Ra,f=this.da,a=this.fd,e=this.Ib,d=this.Wc.ne,l=b.Y(),t=l.lc();if(!t.length)if(l.ca.length)t=l.ca;else{this.Sg?c.Fb(""):c.wa(0);return}k[0]=c;c.Qf=b;c=m();n(f,k,c);a&&(a.get(c),c.Cb()&&(d=c.data,t=b.j));--q;b=t.length;if(d>=
b||d<=-b)d%=b;0>d&&(d+=b);e.apply(t[d],k)};c.prototype.Xu=function(c){var b=this.ge,k=this.Ra,f=this.da,a=this.fd,e=this.dd,d=this.Ib,l=this.Wc.ne,t=b.Y(),J=t.lc();if(!J.length)if(t.ca.length)J=t.ca;else{this.Sg?c.Fb(""):c.wa(0);return}k[0]=c;c.Qf=b;c=m();n(f,k,c);a&&(a.get(c),c.Cb()&&(l=c.data,J=b.j));--q;f=J.length;if(l>=f||l<=-f)l%=f;0>l&&(l+=f);l=J[l];J=0;b.N&&(J=l.type.mg[b.Zd]);d.apply(l.U[e+J],k)};c.prototype.gv=function(c){var b=this.fd,k=this.ge,f=this.$r,a=this.Wc.ne,e=k.Y(),d=e.lc();if(!d.length)if(e.ca.length)d=
e.ca;else{this.Sg?c.Fb(""):c.wa(0);return}if(b){e=m();b.get(e);if(e.Cb()){a=e.data;d=k.j;0!==d.length&&(a%=d.length,0>a&&(a+=d.length));a=k.lm(a);k=a.pb[f];ia(k)?c.Fb(k):c.D(k);--q;return}--q}b=d.length;if(a>=b||a<=-b)a%=b;0>a&&(a+=b);a=d[a];d=0;k.N&&(d=a.type.Hj[k.Zd]);k=a.pb[f+d];ia(k)?c.Fb(k):c.D(k)};c.prototype.hv=function(c){c.type=dc.bg;c.data=this.value};c.prototype.bv=function(c){c.type=dc.ag;c.data=this.value};c.prototype.sv=function(c){c.type=dc.String;c.data=this.value};c.prototype.vv=
function(c){this.first.get(c);c.Cb()&&(c.data=-c.data)};c.prototype.Ru=function(c){this.first.get(c);var b=m();this.second.get(b);c.Cb()&&b.Cb()&&(c.data+=b.data,b.vg()&&c.Hg());--q};c.prototype.tv=function(c){this.first.get(c);var b=m();this.second.get(b);c.Cb()&&b.Cb()&&(c.data-=b.data,b.vg()&&c.Hg());--q};c.prototype.nv=function(c){this.first.get(c);var b=m();this.second.get(b);c.Cb()&&b.Cb()&&(c.data*=b.data,b.vg()&&c.Hg());--q};c.prototype.Zu=function(c){this.first.get(c);var b=m();this.second.get(b);
c.Cb()&&b.Cb()&&(c.data/=b.data,c.Hg());--q};c.prototype.lv=function(c){this.first.get(c);var b=m();this.second.get(b);c.Cb()&&b.Cb()&&(c.data%=b.data,b.vg()&&c.Hg());--q};c.prototype.rv=function(c){this.first.get(c);var b=m();this.second.get(b);c.Cb()&&b.Cb()&&(c.data=Math.pow(c.data,b.data),b.vg()&&c.Hg());--q};c.prototype.Su=function(c){this.first.get(c);var b=m();this.second.get(b);b.yg()||c.yg()?this.Uu(c,b):this.Tu(c,b);--q};c.prototype.Uu=function(c,b){c.yg()&&b.yg()?this.Wu(c,b):this.Vu(c,
b)};c.prototype.Wu=function(c,b){c.data+=b.data};c.prototype.Vu=function(c,b){c.yg()?c.data+=(Math.round(1E10*b.data)/1E10).toString():c.Fb(c.data.toString()+b.data)};c.prototype.Tu=function(c,b){c.wa(c.data&&b.data?1:0)};c.prototype.qv=function(c){this.first.get(c);var b=m();this.second.get(b);c.Cb()&&b.Cb()&&(c.data||b.data?c.wa(1):c.wa(0));--q};c.prototype.Yu=function(c){this.first.get(c);c.data?this.second.get(c):this.hl.get(c)};c.prototype.$u=function(c){this.first.get(c);var b=m();this.second.get(b);
c.wa(c.data===b.data?1:0);--q};c.prototype.ov=function(c){this.first.get(c);var b=m();this.second.get(b);c.wa(c.data!==b.data?1:0);--q};c.prototype.jv=function(c){this.first.get(c);var b=m();this.second.get(b);c.wa(c.data<b.data?1:0);--q};c.prototype.kv=function(c){this.first.get(c);var b=m();this.second.get(b);c.wa(c.data<=b.data?1:0);--q};c.prototype.cv=function(c){this.first.get(c);var b=m();this.second.get(b);c.wa(c.data>b.data?1:0);--q};c.prototype.dv=function(c){this.first.get(c);var b=m();
this.second.get(b);c.wa(c.data>=b.data?1:0);--q};c.prototype.av=function(c){var b=this.sf.Ah();C(b)?c.D(b):c.Fb(b)};ac=c;k.prototype.vg=function(){return this.type===dc.ag};k.prototype.Cb=function(){return this.type===dc.bg||this.type===dc.ag};k.prototype.yg=function(){return this.type===dc.String};k.prototype.Hg=function(){this.vg()||(this.yg()&&(this.data=parseFloat(this.data)),this.type=dc.ag)};k.prototype.wa=function(c){this.type=dc.bg;this.data=Math.floor(c)};k.prototype.D=function(c){this.type=
dc.ag;this.data=c};k.prototype.Fb=function(c){this.type=dc.String;this.data=c};k.prototype.wr=function(c){C(c)?(this.type=dc.ag,this.data=c):ia(c)?(this.type=dc.String,this.data=c.toString()):(this.type=dc.bg,this.data=0)};$b=k;dc={bg:0,ag:1,String:2}})();function W(c){this.b=c;this.rc=[]}
W.prototype.zb=function(){var c={},m,n,k,t,q,g,b,u;c.waits=[];var f=c.waits,a;m=0;for(n=this.rc.length;m<n;m++){g=this.rc[m];a={t:g.time,st:g.Er,s:g.Qn,ev:g.lg.ma,sm:[],sols:{}};g.lg.Nc[g.kc]&&(a.act=g.lg.Nc[g.kc].ma);k=0;for(t=g.ya.length;k<t;k++)a.sm.push(g.ya[k].ma);for(q in g.fc)if(g.fc.hasOwnProperty(q)){b=this.b.B[parseInt(q,10)];u={sa:g.fc[q].Pk,insts:[]};k=0;for(t=g.fc[q].be.length;k<t;k++)u.insts.push(g.fc[q].be[k].uid);a.sols[b.ma.toString()]=u}f.push(a)}return c};
W.prototype.Lb=function(c){c=c.waits;var m,n,k,t,q,g,b,u,f,a,e;F(this.rc);m=0;for(n=c.length;m<n;m++)if(g=c[m],u=this.b.Uo[g.ev.toString()]){f=-1;k=0;for(t=u.Nc.length;k<t;k++)if(u.Nc[k].ma===g.act){f=k;break}if(-1!==f){b={fc:{},ya:[],Ul:!1};b.time=g.t;b.Er=g.st||"";b.Qn=!!g.s;b.lg=u;b.kc=f;k=0;for(t=g.sm.length;k<t;k++)(u=this.b.Rj(g.sm[k]))&&b.ya.push(u);for(q in g.sols)if(g.sols.hasOwnProperty(q)&&(u=this.b.Rj(parseInt(q,10)))){f=g.sols[q];a={Pk:f.sa,be:[]};k=0;for(t=f.insts.length;k<t;k++)(e=
this.b.yh(f.insts[k]))&&a.be.push(e);b.fc[u.index.toString()]=a}this.rc.push(b)}}};
(function(){function c(){}function m(b,a){var c=b.L.c2_feo_val,d=a.L.c2_feo_val;if(C(c)&&C(d))return c-d;c=""+c;d=""+d;return c<d?-1:c>d?1:0}function n(){}function k(){}var t=W.prototype;c.prototype.xs=function(){return!0};c.prototype.zo=function(){return!0};c.prototype.yo=function(){return!0};c.prototype.ls=function(b,a,c){return ec(b,a,c)};c.prototype.jt=function(b){var a=this.b.Qa(),c=a.Wa,d=a.Rp(),a=this.b.jr();if(d)for(d=0;d<b&&!a.hb;d++)this.b.Qg(c.ya),a.index=d,c.xi(),this.b.ke(c.ya);else for(d=
0;d<b&&!a.hb;d++)a.index=d,c.xi();this.b.er();return!1};var q=[],g=-1;c.prototype.ys=function(b,a,c){a=b.Y();g++;q.length===g&&q.push([]);var d=q[g];Aa(d,a.lc());var l=this.b.Qa(),k=l.Wa,n=this.b.vf(),v=l.Rp(),l=this.b.jr(),h,p,t,u,w;h=0;for(p=d.length;h<p;h++)d[h].L.c2_feo_val=n.da[1].get(h);d.sort(m);1===c&&d.reverse();c=b.Kb;if(v)for(h=0,p=d.length;h<p&&!l.hb;h++){this.b.Qg(k.ya);t=d[h];a=b.Y();a.ga=!1;F(a.j);a.j[0]=t;if(c)for(n=0,v=t.siblings.length;n<v;n++)u=t.siblings[n],w=u.type.Y(),w.ga=!1,
F(w.j),w.j[0]=u;l.index=h;k.xi();this.b.ke(k.ya)}else for(a.ga=!1,F(a.j),h=0,p=d.length;h<p&&!l.hb;h++){t=d[h];a.j[0]=t;if(c)for(n=0,v=t.siblings.length;n<v;n++)u=t.siblings[n],w=u.type.Y(),w.ga=!1,F(w.j),w.j[0]=u;l.index=h;k.xi()}F(d);this.b.er();g--;return!1};c.prototype.ht=function(b,a,c,d){var l,k,m,v;if(b){g++;q.length===g&&q.push([]);var h=q[g],p=b.Y();Aa(h,p.lc());p.ga&&F(p.ca);var n=this.b.vf();m=l=0;for(k=h.length;l<k;l++)v=h[l],h[m]=v,a=n.da[1].get(l),d=n.da[3].get(l),ec(a,c,d)?m++:p.ca.push(v);
za(h,m);p.ga=!1;Aa(p.j,h);F(h);g--;b.Oc();return!!p.j.length}};c.prototype.Nt=function(){var b=this.b.vf().L;"undefined"===typeof b.TriggerOnce_lastTick&&(b.TriggerOnce_lastTick=-1);var a=b.TriggerOnce_lastTick,c=this.b.pe;b.TriggerOnce_lastTick=c;return this.b.Qm||a!==c-1};c.prototype.ws=function(b){var a=this.b.vf(),c=a.L.Every_lastTime||0,d=this.b.qb.P;"undefined"===typeof a.L.Every_seconds&&(a.L.Every_seconds=b);var l=a.L.Every_seconds;if(d>=c+l)return a.L.Every_lastTime=c+l,d>=a.L.Every_lastTime+
.04&&(a.L.Every_lastTime=d),a.L.Every_seconds=b,!0;d<c-.1&&(a.L.Every_lastTime=d);return!1};c.prototype.ps=function(b,a,c){return ec(b.Ah(),a,c)};c.prototype.Fs=function(b){return(b=this.b.rg[b.toLowerCase()])&&b.xf};c.prototype.no=function(){var b=this.b.Qa();return b.Wl?!1:!b.Hf};c.prototype.Ao=function(){return!0};c.prototype.Ms=function(){return!0};c.prototype.xl=function(){return!0};c.prototype.Go=function(){return!0};c.prototype.Us=function(){return!0};c.prototype.aj=function(){return!0};c.prototype.es=
function(b,a,c){return Ma(R(b),R(c))<=R(a)};c.prototype.Es=function(b,a){return Qa(R(b),R(a))};c.prototype.Ds=function(b,a,c){b=Ka(b);a=Ka(a);c=Ka(c);return Qa(c,a)?Qa(b,a)&&!Qa(b,c):!(!Qa(b,a)&&Qa(b,c))};t.n=new c;n.prototype.zs=function(b){this.b.Ef||this.b.Rd||(this.b.Rd=b)};n.prototype.us=function(b,a,c,d){if(a&&b&&(a=this.b.Pl(b,a,c,d))){this.b.Hc++;var l;this.b.trigger(Object.getPrototypeOf(b.ua).n.dg,a);if(a.Kb)for(c=0,d=a.siblings.length;c<d;c++)l=a.siblings[c],this.b.trigger(Object.getPrototypeOf(l.type.ua).n.dg,
l);this.b.Hc--;b=b.Y();b.ga=!1;F(b.j);b.j[0]=a;if(a.Kb)for(c=0,d=a.siblings.length;c<d;c++)l=a.siblings[c],b=l.type.Y(),b.ga=!1,F(b.j),b.j[0]=l}};n.prototype.wt=function(b){this.b.T&&this.b.T.scale!==b&&(this.b.T.scale=b,this.b.T.Vo(),this.b.Ba=!0)};n.prototype.Ct=function(b,a){0===b.sl?C(a)?b.Vf(a):b.Vf(parseFloat(a)):1===b.sl&&b.Vf(a.toString())};n.prototype.cs=function(b,a){0===b.sl?C(a)?b.Vf(b.Ah()+a):b.Vf(b.Ah()+parseFloat(a)):1===b.sl&&b.Vf(b.Ah()+a.toString())};n.prototype.qt=function(b,a){var c=
this.b.rg[b.toLowerCase()];if(c)switch(a){case 0:c.Bi(!1);break;case 1:c.Bi(!0);break;case 2:c.Bi(!c.xf)}};var b=[],u=[];n.prototype.Pt=function(c){if(!(0>c)){var a,e,d,l=this.b.Qa(),g;b.length?g=b.pop():g={fc:{},ya:[]};g.Ul=!1;g.time=this.b.qb.P+c;g.Er="";g.Qn=!1;g.lg=l.Wa;g.kc=l.kc+1;c=0;for(a=this.b.B.length;c<a;c++)d=this.b.B[c],e=d.Y(),e.ga&&-1===l.Wa.ya.indexOf(d)||(g.ya.push(d),d=void 0,u.length?d=u.pop():d={be:[]},d.Pk=!1,d.Pk=e.ga,Aa(d.be,e.j),g.fc[c.toString()]=d);this.rc.push(g);return!0}};
n.prototype.kt=function(){var b,a,c;b=0;for(a=this.b.Bl.length;b<a;b++)c=this.b.Bl[b],c.data=c.Wj};n.prototype.ut=function(b){b=R(b);b=Ha(b);this.b.T&&this.b.T.q!==b&&(this.b.T.q=b,this.b.Ba=!0)};n.prototype.As=function(b){if(!this.b.Ef&&!this.b.Rd)for(var a in this.b.Dg)if(this.b.Dg.hasOwnProperty(a)&&kb(a,b)){this.b.Rd=this.b.Dg[a];break}};n.prototype.lt=function(){if(!this.b.Ef&&!this.b.Rd&&this.b.T){this.b.Rd=this.b.T;var b,a,c;b=0;for(a=this.b.Be.length;b<a;b++)c=this.b.Be[b],c.Bi(c.Xj)}};t.H=
new n;k.prototype["int"]=function(b,a){ia(a)?(b.wa(parseInt(a,10)),isNaN(b.data)&&(b.data=0)):b.wa(a)};k.prototype["float"]=function(b,a){ia(a)?(b.D(parseFloat(a)),isNaN(b.data)&&(b.data=0)):b.D(a)};k.prototype.random=function(b,a,c){void 0===c?b.D(Math.random()*a):b.D(Math.random()*(c-a)+a)};k.prototype.sqrt=function(b,a){b.D(Math.sqrt(a))};k.prototype.abs=function(b,a){b.D(Math.abs(a))};k.prototype.round=function(b,a){b.wa(Math.round(a))};k.prototype.floor=function(b,a){b.wa(Math.floor(a))};k.prototype.ceil=
function(b,a){b.wa(Math.ceil(a))};k.prototype.sin=function(b,a){b.D(Math.sin(R(a)))};k.prototype.cos=function(b,a){b.D(Math.cos(R(a)))};k.prototype.tan=function(b,a){b.D(Math.tan(R(a)))};k.prototype.asin=function(b,a){b.D(Fa(Math.asin(a)))};k.prototype.acos=function(b,a){b.D(Fa(Math.acos(a)))};k.prototype.atan=function(b,a){b.D(Fa(Math.atan(a)))};k.prototype.exp=function(b,a){b.D(Math.exp(a))};k.prototype.log10=function(b,a){b.D(Math.log(a)/Math.LN10)};k.prototype.max=function(b){var a=arguments[1];
"number"!==typeof a&&(a=0);var c,d,l;c=2;for(d=arguments.length;c<d;c++)l=arguments[c],"number"===typeof l&&a<l&&(a=l);b.D(a)};k.prototype.min=function(b){var a=arguments[1];"number"!==typeof a&&(a=0);var c,d,l;c=2;for(d=arguments.length;c<d;c++)l=arguments[c],"number"===typeof l&&a>l&&(a=l);b.D(a)};k.prototype.Me=function(b){b.D(this.b.Me)};k.prototype.Yf=function(b){b.D(this.b.Yf)};k.prototype.time=function(b){b.D(this.b.qb.P)};k.prototype.pe=function(b){b.wa(this.b.pe)};k.prototype.uk=function(b){b.wa(this.b.uk)};
k.prototype.em=function(b){b.wa(this.b.em)};k.prototype.Jw=function(b,a){var c,d;if(this.b.ei.length)if(a){for(d=this.b.fi;0<=d;--d)if(c=this.b.ei[d],c.name===a){b.wa(c.index);return}b.wa(0)}else c=this.b.zp(),b.wa(c?c.index:-1);else b.wa(0)};k.prototype.pu=function(b,a,c,d,l){b.D(Sa(a,c,d,l))};k.prototype.q=function(b,a,c,d,l){b.D(Fa(La(a,c,d,l)))};k.prototype.Gw=function(b,a,c,d){b.D(Ua(a,c,d))};k.prototype.hu=function(b,a,c,d){a<c?b.D(c):a>d?b.D(d):b.D(a)};k.prototype.Ew=function(b){this.b.T?b.D(this.b.T.scale):
b.D(0)};k.prototype.Fw=function(b){b.wa(this.b.T.width)};k.prototype.Cw=function(b){b.wa(this.b.T.height)};k.prototype.left=function(b,a,c){b.Fb(ia(a)?a.substr(0,c):"")};k.prototype.right=function(b,a,c){b.Fb(ia(a)?a.substr(a.length-c):"")};k.prototype.replace=function(b,a,c,d){ia(a)&&ia(c)&&ia(d)?b.Fb(a.replace(new RegExp(db(c),"gi"),d)):b.Fb(ia(a)?a:"")};k.prototype.trim=function(b,a){b.Fb(ia(a)?a.trim():"")};k.prototype.Dw=function(b){this.b.T?b.Fb(this.b.T.name):b.Fb("")};k.prototype.cp=function(b){var a=
ra(Math.random()*(arguments.length-1));b.wr(arguments[a+1])};k.prototype.by=function(b,a,c){var d=0>a?"-":"";0>a&&(a=-a);c=c-a.toString().length;for(var l=0;l<c;l++)d+="0";b.Fb(d+a.toString())};k.prototype.Ol=function(b){b.D(this.b.Ol/1E3)};k.prototype.Fg=function(b){b.D(this.b.Fg)};t.V=new k;t.wx=function(){var c,a,e,d,l,g,k=this.b.Qa();c=0;for(e=this.rc.length;c<e;c++){d=this.rc[c];if(-1===d.time){if(!d.Qn)continue}else if(d.time>this.b.qb.P)continue;k.Wa=d.lg;k.kc=d.kc;k.Ya=0;for(a in d.fc)d.fc.hasOwnProperty(a)&&
(l=this.b.B[parseInt(a,10)].Y(),g=d.fc[a],l.ga=g.Pk,Aa(l.j,g.be),l=g,F(l.be),u.push(l));d.lg.vx();this.b.Ml(d.ya);d.Ul=!0}a=c=0;for(e=this.rc.length;c<e;c++)d=this.rc[c],this.rc[a]=d,d.Ul?(Wa(d.fc),F(d.ya),b.push(d)):a++;za(this.rc,a)}})();
(function(){pb=function(c,n){var k=c[1],t=c[3],q=c[4],g=c[5],b=c[6],u=c[7],f=c[8];n.n||(n.n={});n.H||(n.H={});n.V||(n.V={});var a=n.n,e=n.H,d=n.V;t&&(a.qs=function(a,b){return ec(this.x,a,b)},a.rs=function(a,b){return ec(this.y,a,b)},a.qy=function(){var a=this.A;this.Ea();var b=this.Ka;return!(b.right<a.Ca||b.bottom<a.Da||b.left>a.Ga||b.top>a.Fa)},a.ry=function(){this.Ea();var a=this.Ka,b=this.b.T;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},a.Dy=function(a,b,c){var d=this.Y(),e=
d.lc();if(!e.length)return!1;var f=e[0],g=f,k=Sa(f.x,f.y,b,c),m,r,n;m=1;for(r=e.length;m<r;m++)if(f=e[m],n=Sa(f.x,f.y,b,c),0===a&&n<k||1===a&&n>k)k=n,g=f;d.ni(g);return!0},e.Et=function(a){this.x!==a&&(this.x=a,this.W())},e.Ft=function(a){this.y!==a&&(this.y=a,this.W())},e.xt=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.W()},e.yt=function(a,b){var c=a.Kv(this);if(c){var d;c.wh?(d=c.wh(b,!0),c=c.wh(b,!1)):(d=c.x,c=c.y);if(this.x!==d||this.y!==c)this.x=d,this.y=c,this.W()}},e.xy=function(a){0!==
a&&(this.x+=Math.cos(this.q)*a,this.y+=Math.sin(this.q)*a,this.W())},e.wy=function(a,b){0!==b&&(this.x+=Math.cos(R(a))*b,this.y+=Math.sin(R(a))*b,this.W())},d.yl=function(a){a.D(this.x)},d.zl=function(a){a.D(this.y)},d.Me=function(a){a.D(this.b.pg(this))});q&&(a.ky=function(a,b){return ec(this.width,a,b)},a.iy=function(a,b){return ec(this.height,a,b)},e.Dt=function(a){this.width!==a&&(this.width=a,this.W())},e.Oy=function(a){this.height!==a&&(this.height=a,this.W())},e.At=function(a,b){if(this.width!==
a||this.height!==b)this.width=a,this.height=b,this.W()},d.Qt=function(a){a.D(this.width)},d.Cs=function(a){a.D(this.height)},d.fy=function(a){this.Ea();a.D(this.Ka.left)},d.hy=function(a){this.Ea();a.D(this.Ka.top)},d.gy=function(a){this.Ea();a.D(this.Ka.right)},d.ey=function(a){this.Ea();a.D(this.Ka.bottom)});g&&(a.es=function(a,b){return Ma(this.q,R(b))<=R(a)},a.Es=function(a){return Qa(this.q,R(a))},a.Ds=function(a,b){var c=Ka(a),d=Ka(b),e=Ha(this.q);return Qa(d,c)?Qa(e,c)&&!Qa(e,d):!(!Qa(e,c)&&
Qa(e,d))},e.mt=function(a){a=R(Ga(a));isNaN(a)||this.q===a||(this.q=a,this.W())},e.Hy=function(a){0===a||isNaN(a)||(this.q+=R(a),this.q=Ha(this.q),this.W())},e.Iy=function(a){0===a||isNaN(a)||(this.q-=R(a),this.q=Ha(this.q),this.W())},e.Jy=function(a,b){var c=Na(this.q,R(b),R(a));isNaN(c)||this.q===c||(this.q=c,this.W())},e.Ky=function(a,b,c){a=Na(this.q,Math.atan2(c-this.y,b-this.x),R(a));isNaN(a)||this.q===a||(this.q=a,this.W())},e.Qy=function(a,b){var c=Math.atan2(b-this.y,a-this.x);isNaN(c)||
this.q===c||(this.q=c,this.W())},d.ds=function(a){a.D(Ja(this.q))});k||(a.ns=function(a,b,c){return ec(this.pb[a],b,c)},a.ny=function(a){return this.pb[a]},a.Ey=function(a,b){var c=this.Y(),d=c.lc();if(!d.length)return!1;var e=d[0],f=e,g=e.pb[b],k,m,r;k=1;for(m=d.length;k<m;k++)if(e=d[k],r=e.pb[b],0===a&&r<g||1===a&&r>g)g=r,f=e;c.ni(f);return!0},a.Cy=function(a){var b,c,d,e,f;if(this.b.vf().Yj){f=this.Y();if(f.ga)for(f.ga=!1,F(f.j),F(f.ca),d=this.j,b=0,c=d.length;b<c;b++)e=d[b],e.uid===a?f.ca.push(e):
f.j.push(e);else{d=b=0;for(c=f.j.length;b<c;b++)e=f.j[b],f.j[d]=e,e.uid===a?f.ca.push(e):d++;za(f.j,d)}this.Oc();return!!f.j.length}e=this.b.yh(a);if(!e)return!1;f=this.Y();if(!f.ga&&-1===f.j.indexOf(e))return!1;if(this.N)for(a=e.type.Ma,b=0,c=a.length;b<c;b++){if(a[b]===this)return f.ni(e),this.Oc(),!0}else if(e.type===this)return f.ni(e),this.Oc(),!0;return!1},a.dg=function(){return!0},a.Os=function(){return!0},e.tt=function(a,b){var c=this.pb;C(c[a])?c[a]=C(b)?b:parseFloat(b):ia(c[a])&&(c[a]=ia(b)?
b:b.toString())},e.cy=function(a,b){var c=this.pb;C(c[a])?c[a]=C(b)?c[a]+b:c[a]+parseFloat(b):ia(c[a])&&(c[a]=ia(b)?c[a]+b:c[a]+b.toString())},e.Kt=function(a,b){var c=this.pb;C(c[a])&&(c[a]=C(b)?c[a]-b:c[a]-parseFloat(b))},e.Ly=function(a,b){this.pb[a]=b?1:0},e.Sy=function(a){this.pb[a]=1-this.pb[a]},e.vs=function(){this.b.xe(this)},e.Is||(e.Is=function(a){var b,c;try{b=JSON.parse(a)}catch(d){return}this.b.lk(this,b,!0);this.vd&&this.vd();if(this.U)for(a=0,b=this.U.length;a<b;++a)c=this.U[a],c.vd&&
c.vd()}),d.ts=function(a){var b=a.Qf.j.length,c,d,e;c=0;for(d=this.b.ed.length;c<d;c++)e=this.b.ed[c],a.Qf.N?0<=e.type.Ma.indexOf(a.Qf)&&b++:e.type===a.Qf&&b++;a.wa(b)},d.Gy=function(a){a.wa(a.Qf.Y().lc().length)},d.Ty=function(a){a.wa(this.uid)},d.my=function(a){a.wa(this.Bh())},d.mo||(d.mo=function(a){a.Fb(JSON.stringify(this.b.Gn(this,!0)))}));b&&(a.ty=function(){return this.visible},e.Ry=function(a){!a!==!this.visible&&(this.visible=!!a,this.b.Ba=!0)},a.jy=function(a,b){return ec(jb(100*this.opacity),
a,b)},e.Py=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.Ba=!0)},d.Opacity=function(a){a.D(jb(100*this.opacity))});u&&(a.oy=function(a){return a?this.A===a:!1},a.Fy=function(a){var b=this.Y(),c=b.lc();if(!c.length)return!1;var d=c[0],e=d,f,g;f=1;for(g=c.length;f<g;f++)if(d=c[f],0===a){if(d.A.index>e.A.index||d.A.index===e.A.index&&d.Bd()>e.Bd())e=d}else if(d.A.index<e.A.index||d.A.index===e.A.index&&d.Bd()<e.Bd())e=d;b.ni(e);return!0},e.po=function(){var a=this.A,
b=a.j;b.length&&b[b.length-1]===this||(a.Rg(this,!1),a.jh(this,!1),this.b.Ba=!0)},e.yy=function(){var a=this.A,b=a.j;b.length&&b[0]===this||(a.Rg(this,!1),a.cx(this),this.b.Ba=!0)},e.zy=function(a){a&&a!=this.A&&(this.A.Rg(this,!0),this.A=a,a.jh(this,!0),this.b.Ba=!0)},e.Vy=function(a,b){var c=0===a;if(b){var d=b.Bp(this);d&&d.uid!==this.uid&&(this.A.index!==d.A.index&&(this.A.Rg(this,!0),this.A=d.A,d.A.jh(this,!0)),this.A.Nw(this,d,c),this.b.Ba=!0)}},d.vy=function(a){a.wa(this.A.Hq)},d.uy=function(a){a.Fb(this.A.name)},
d.Uy=function(a){a.wa(this.Bd())});f&&(e.My=function(a,b){if(this.b.C){var c=this.type.km(b);if(!(0>c)){var d=1===a;this.ze[c]!==d&&(this.ze[c]=d,this.sd(),this.b.Ba=!0)}}},e.Ny=function(a,b,c){if(this.b.C){var d=this.type.km(a);0>d||(a=this.type.ba[d],d=this.Pa[d],b=Math.floor(b),0>b||b>=d.length||(1===this.b.C.Ov(a.gb,b)&&(c/=100),d[b]!==c&&(d[b]=c,a.Qb&&(this.b.Ba=!0))))}})};Kb=function(){this.Jl=this.Fl=!0;this.type.ej=!0;this.b.Ba=!0;var c,n,k=this.Gl;c=0;for(n=k.length;c<n;++c)k[c](this);this.A.Mc&&
this.Ea()};Lb=function(c){c&&this.Gl.push(c)};Nb=function(){if(this.Fl){var c=this.Ka,n=this.tc;c.set(this.x,this.y,this.x+this.width,this.y+this.height);c.offset(-this.$b*this.width,-this.ac*this.height);this.q?(c.offset(-this.x,-this.y),n.yr(c,this.q),n.offset(this.x,this.y),n.Wo(c)):n.Ei(c);c.normalize();this.Fl=!1;this.Vx()}};var c=new ua(0,0,0,0);Ob=function(){if(this.A.Mc){var m=this.A.Ob,n=this.Ka;c.set(m.hc(n.left),m.ic(n.top),m.hc(n.right),m.ic(n.bottom));this.oc.rh(c)||(this.oc.right<this.oc.left?
m.update(this,null,c):m.update(this,this.oc,c),this.oc.ig(c),this.A.nd=!0)}};Pb=function(){if(this.Jl&&this.Sd){this.Ea();var m=this.type.tj,n=this.Ka;c.set(m.hc(n.left),m.ic(n.top),m.hc(n.right),m.ic(n.bottom));this.Je.rh(c)||(this.Je.right<this.Je.left?m.update(this,null,c):m.update(this,this.Je,c),this.Je.ig(c),this.Jl=!1)}};Mb=function(c,n){return this.Ka.Yb(c,n)&&this.tc.Yb(c,n)?this.$g?this.pz(c,n):this.za&&!this.za.ug()?(this.za.gg(this.width,this.height,this.q),this.za.Yb(c-this.x,n-this.y)):
!0:!1};Gb=function(){this.type.ol();return this.Af};Qb=function(){this.A.eo();return this.ud};Rb=function(){F(this.xa);var c,n,k,t=!0;c=0;for(n=this.ze.length;c<n;c++)this.ze[c]&&(k=this.type.ba[c],this.xa.push(k),k.kd||(t=!1));this.Zr=!!this.xa.length;this.me=t};Hb=function(){return"Inst"+this.ir};sb=function(c){if(c&&c.Kb&&c.type!=this){var n,k,t;n=0;for(k=c.siblings.length;n<k;n++)if(t=c.siblings[n],t.type==this)return t}c=this.Y().lc();return c.length?c[0]:null};tb=function(c){var n=this.Y().lc();
return n.length?n[c.Bh()%n.length]:null};rb=function(){if(this.Wg&&!this.N){var c,n;c=0;for(n=this.j.length;c<n;c++)this.j[c].Af=c;var k=c,t=this.b.ed;c=0;for(n=t.length;c<n;++c)t[c].type===this&&(t[c].Af=k++);this.Wg=!1}};Eb=function(c){if(c<this.j.length)return this.j[c];c-=this.j.length;var n=this.b.ed,k,t;k=0;for(t=n.length;k<t;++k)if(n[k].type===this){if(0===c)return n[k];--c}return null};ub=function(){return this.oe[this.xd]};vb=function(){this.xd++;this.xd===this.oe.length?this.oe.push(new qb(this)):
(this.oe[this.xd].ga=!0,F(this.oe[this.xd].ca))};wb=function(){this.xd++;this.xd===this.oe.length&&this.oe.push(new qb(this));var c=this.oe[this.xd],n=this.oe[this.xd-1];n.ga?(c.ga=!0,F(c.ca)):(c.ga=!1,Aa(c.j,n.j),Aa(c.ca,n.ca))};xb=function(){this.xd--};yb=function(c){var n,k,t,q,g,b=0;if(!this.N)for(n=0,k=this.Ma.length;n<k;n++)for(g=this.Ma[n],t=0,q=g.Oa.length;t<q;t++){if(c===g.Oa[t].name)return this.L.lastBehIndex=b,g.Oa[t];b++}n=0;for(k=this.Oa.length;n<k;n++){if(c===this.Oa[n].name)return this.L.lastBehIndex=
b,this.Oa[n];b++}return null};zb=function(c){return this.Pj(c)?this.L.lastBehIndex:-1};Cb=function(c){var n,k;n=0;for(k=this.ba.length;n<k;n++)if(this.ba[n].name===c)return n;return-1};Db=function(){if(this.Kb&&!this.N){var c,n,k,t,q,g,b;this.ol();g=this.Y();var u=g.ga,f=(c=this.b.Qa())&&c.Wa&&c.Wa.Kc;c=0;for(n=this.uc.length;c<n;c++)if(q=this.uc[c],q!==this&&(q.ol(),b=q.Y(),b.ga=u,!u)){F(b.j);k=0;for(t=g.j.length;k<t;++k)b.j[k]=q.lm(g.j[k].Af);if(f)for(F(b.ca),k=0,t=g.ca.length;k<t;++k)b.ca[k]=q.lm(g.ca[k].Af)}}};
Fb=function(){return"Type"+this.ma};ec=function(c,n,k){if("undefined"===typeof c||"undefined"===typeof k)return!1;switch(n){case 0:return c===k;case 1:return c!==k;case 2:return c<k;case 3:return c<=k;case 4:return c>k;case 5:return c>=k;default:return!1}}})();var mc={};function pc(c){this.b=c}
(function(){function c(a){-1===lb.indexOf(a)&&lb.push(a)}function m(a){var b=a.u,d;try{d=b.play()}catch(e){c(a);return}d?d.catch(function(){c(a)}):Fc&&!D.ab&&c(a)}function n(){var a,b,d,e;Gc||ma||!x||(k(),"running"===x.state&&(Gc=!0));var f=lb.slice(0);F(lb);if(!P)for(a=0,b=f.length;a<b;++a)d=f[a],d.hb||d.wc||(e=d.u.play())&&e.catch(function(){c(d)})}function k(){"suspended"===x.state&&x.resume&&x.resume();if(x.createBuffer){var a=x.createBuffer(1,220,22050),b=x.createBufferSource();b.buffer=a;b.connect(x.destination);
u(b)}}function t(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function q(a){a=a.toLowerCase();return Z.hasOwnProperty(a)&&Z[a].length?Z[a][0].Ec():x.destination}function g(){return x.createGain?x.createGain():x.createGainNode()}function b(a){return x.createDelay?x.createDelay(a):x.createDelayNode(a)}function u(a,b){a.start?a.start(b||0):a.noteOn(b||0)}function f(a,b,c,d){a.start?a.start(d||0,b):a.noteGrainOn(d||0,b,c-b)}function a(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}function e(a,
b,c,d,e,f){this.type="filter";this.wb=[a,b,c,d,e,f];this.qa=g();this.Z=g();this.Z.gain.value=f;this.X=g();this.X.gain.value=1-f;this.Za=x.createBiquadFilter();this.Za.type="number"===typeof this.Za.type?a:Kc[a];this.Za.frequency.value=b;this.Za.detune&&(this.Za.detune.value=c);this.Za.Q.value=d;this.Za.gain.value=e;this.qa.connect(this.Za);this.qa.connect(this.X);this.Za.connect(this.Z)}function d(a,c,d){this.type="delay";this.wb=[a,c,d];this.qa=g();this.Z=g();this.Z.gain.value=d;this.X=g();this.X.gain.value=
1-d;this.gi=g();this.Sc=b(a);this.Sc.delayTime.value=a;this.Bj=g();this.Bj.gain.value=c;this.qa.connect(this.gi);this.qa.connect(this.X);this.gi.connect(this.Z);this.gi.connect(this.Sc);this.Sc.connect(this.Bj);this.Bj.connect(this.gi)}function l(a,b,c,d){this.type="convolve";this.wb=[b,c,d];this.qa=g();this.Z=g();this.Z.gain.value=c;this.X=g();this.X.gain.value=1-c;this.lf=x.createConvolver();a&&(this.lf.normalize=b,this.lf.buffer=a);this.qa.connect(this.lf);this.qa.connect(this.X);this.lf.connect(this.Z)}
function B(a,c,d,e,f){this.type="flanger";this.wb=[a,c,d,e,f];this.qa=g();this.X=g();this.X.gain.value=1-f/2;this.Z=g();this.Z.gain.value=f/2;this.Ij=g();this.Ij.gain.value=e;this.Sc=b(a+c);this.Sc.delayTime.value=a;this.Eb=x.createOscillator();this.Eb.frequency.value=d;this.zc=g();this.zc.gain.value=c;this.qa.connect(this.Sc);this.qa.connect(this.X);this.Sc.connect(this.Z);this.Sc.connect(this.Ij);this.Ij.connect(this.Sc);this.Eb.connect(this.zc);this.zc.connect(this.Sc.delayTime);u(this.Eb)}function J(a,
b,c,d,e,f){this.type="phaser";this.wb=[a,b,c,d,e,f];this.qa=g();this.X=g();this.X.gain.value=1-f/2;this.Z=g();this.Z.gain.value=f/2;this.Za=x.createBiquadFilter();this.Za.type="number"===typeof this.Za.type?7:"allpass";this.Za.frequency.value=a;this.Za.detune&&(this.Za.detune.value=b);this.Za.Q.value=c;this.Eb=x.createOscillator();this.Eb.frequency.value=e;this.zc=g();this.zc.gain.value=d;this.qa.connect(this.Za);this.qa.connect(this.X);this.Za.connect(this.Z);this.Eb.connect(this.zc);this.zc.connect(this.Za.frequency);
u(this.Eb)}function v(a){this.type="gain";this.wb=[a];this.ta=g();this.ta.gain.value=a}function h(a,b){this.type="tremolo";this.wb=[a,b];this.ta=g();this.ta.gain.value=1-b/2;this.Eb=x.createOscillator();this.Eb.frequency.value=a;this.zc=g();this.zc.gain.value=b/2;this.Eb.connect(this.zc);this.zc.connect(this.ta.gain);u(this.Eb)}function p(a,b){this.type="ringmod";this.wb=[a,b];this.qa=g();this.Z=g();this.Z.gain.value=b;this.X=g();this.X.gain.value=1-b;this.Ai=g();this.Ai.gain.value=0;this.Eb=x.createOscillator();
this.Eb.frequency.value=a;this.Eb.connect(this.Ai.gain);u(this.Eb);this.qa.connect(this.Ai);this.qa.connect(this.X);this.Ai.connect(this.Z)}function V(a,b,c,d,e){this.type="distortion";this.wb=[a,b,c,d,e];this.qa=g();this.Hk=g();this.Gk=g();this.Dx(c,Math.pow(10,d/20));this.Z=g();this.Z.gain.value=e;this.X=g();this.X.gain.value=1-e;this.ul=x.createWaveShaper();this.zj=new Float32Array(65536);this.Cv(a,b);this.ul.zj=this.zj;this.qa.connect(this.Hk);this.qa.connect(this.X);this.Hk.connect(this.ul);
this.ul.connect(this.Gk);this.Gk.connect(this.Z)}function U(a,b,c,d,e){this.type="compressor";this.wb=[a,b,c,d,e];this.ta=x.createDynamicsCompressor();try{this.ta.threshold.value=a,this.ta.knee.value=b,this.ta.ratio.value=c,this.ta.attack.value=d,this.ta.release.value=e}catch(f){}}function w(a,b){this.type="analyser";this.wb=[a,b];this.ta=x.createAnalyser();this.ta.fftSize=a;this.ta.smoothingTimeConstant=b;this.Av=new Float32Array(this.ta.frequencyBinCount);this.Cr=new Uint8Array(a);this.mi=0}function r(){this.Aa=
null;this.mk=0}function G(a,b){this.src=a;this.la=E;this.Dd=b;this.dj=!1;var c=this;this.Ig=this.Og=null;this.Pg=[];this.Qk=0;this.jo=this.Gj=this.Ir=this.Bk=!1;1===E&&b&&!mb&&(this.la=0,this.Og=g());this.Pd=this.ra=null;var d;switch(this.la){case 0:this.ra=new Audio;this.ra.crossOrigin="anonymous";this.ra.addEventListener("canplaythrough",function(){c.jo=!0});1===E&&x.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.Ir=!0,this.ra.addEventListener("canplay",function(){!c.Ig&&c.ra&&
(c.Ig=x.createMediaElementSource(c.ra),c.Ig.connect(c.Og))}));this.ra.autoplay=!1;this.ra.jz="auto";this.ra.src=a;break;case 1:D.dk?D.rp(a,function(a){c.Pd=a;c.ip()},function(){c.Gj=!0}):(d=new XMLHttpRequest,d.open("GET",a,!0),d.responseType="arraybuffer",d.onload=function(){c.Pd=d.response;c.ip()},d.onerror=function(){c.Gj=!0},d.send());break;case 2:this.ra=!0;break;case 3:this.ra=!0}}function y(a,b){var c=this;this.tag=b;this.hb=this.Ad=!0;this.src=a.src;this.buffer=a;this.la=E;this.Dd=a.Dd;this.playbackRate=
1;this.sg=!0;this.wc=this.Lc=!1;this.pc=0;this.Ph=this.wg=this.Ed=!1;this.volume=1;this.nn=function(a){if(!c.wc&&!c.Lc){var b=this;b||(b=a.target);b===c.cj&&(c.sg=!0,c.hb=!0,N=c.tag,D.trigger(pc.prototype.n.Zi,L))}};this.cj=null;this.tg=1===M&&!this.Dd||2===M;this.Kg=1;this.startTime=this.tg?D.qb.P:D.ve.P;this.eb=this.ob=null;this.Fd=!1;this.Mb=null;this.Wq=this.Vq=this.Uq=this.Tq=this.Yq=this.Xq=0;this.u=null;var d=!1;1!==this.la||0!==this.buffer.la||this.buffer.Ir||(this.la=0);switch(this.la){case 0:this.Dd?
(this.u=a.ra,d=!a.dj,a.dj=!0):(this.u=new Audio,this.u.crossOrigin="anonymous",this.u.autoplay=!1,this.u.src=a.ra.src,d=!0);d&&this.u.addEventListener("ended",function(){N=c.tag;c.hb=!0;D.trigger(pc.prototype.n.Zi,L)});break;case 1:this.ob=g();this.ob.connect(q(b));1===this.buffer.la?a.ra&&(this.u=x.createBufferSource(),this.u.buffer=a.ra,this.u.connect(this.ob)):(this.u=this.buffer.ra,this.buffer.Og.connect(this.ob),this.buffer.dj||(this.buffer.dj=!0,this.buffer.ra.addEventListener("ended",function(){N=
c.tag;c.hb=!0;D.trigger(pc.prototype.n.Zi,L)})));break;case 2:this.u=new window.Media(S+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(c.sg=!0,c.hb=!0,N=c.tag,D.trigger(pc.prototype.n.Zi,L))});break;case 3:this.u=!0}}function Q(a,b){Z.hasOwnProperty(a)?Z[a].push(b):Z[a]=[b];var c,d,e,f,h=x.destination;if(Z.hasOwnProperty(a)&&(e=Z[a],e.length))for(h=e[0].Ec(),c=0,d=e.length;c<d;c++)f=e[c],c+1===d?f.Pc(x.destination):f.Pc(e[c+1].Ec());F(Pa);if(a.length)for(c=0,d=z.length;c<d;c++)e=
z[c],kb(a,e.tag)&&Pa.push(e);else O&&!O.zf()&&(F(Pa),Pa[0]=O);c=0;for(d=Pa.length;c<d;c++)Pa[c].mx(h);Oa&&Bb===a&&(Oa.disconnect(),Oa.connect(h))}function I(){}function X(){}var K=pc.prototype;K.ja=function(a){this.ua=a;this.b=a.b};K.ja.prototype.M=function(){};var D=null,L=null,N="",S="",E=0,x=null,A=[],z=[],O=null,H=!1,M=0,P=!1,da=1,T=0,la=0,ma=!1,Ia=1,Ab=1,Bc=10,Dc=1E4,Ec=1,Oa=null,Bb="",Fc=!1,lb=[],mb=!1,Gc=!1;document.addEventListener("touchend",n,!0);document.addEventListener("click",n,!0);
document.addEventListener("keydown",n,!0);var Z={},Kc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");e.prototype.Pc=function(a){this.Z.disconnect();this.Z.connect(a);this.X.disconnect();this.X.connect(a)};e.prototype.remove=function(){this.qa.disconnect();this.Za.disconnect();this.Z.disconnect();this.X.disconnect()};e.prototype.Ec=function(){return this.qa};d.prototype.Pc=function(a){this.Z.disconnect();this.Z.connect(a);this.X.disconnect();this.X.connect(a)};d.prototype.remove=
function(){this.qa.disconnect();this.gi.disconnect();this.Sc.disconnect();this.Bj.disconnect();this.Z.disconnect();this.X.disconnect()};d.prototype.Ec=function(){return this.qa};l.prototype.Pc=function(a){this.Z.disconnect();this.Z.connect(a);this.X.disconnect();this.X.connect(a)};l.prototype.remove=function(){this.qa.disconnect();this.lf.disconnect();this.Z.disconnect();this.X.disconnect()};l.prototype.Ec=function(){return this.qa};B.prototype.Pc=function(a){this.X.disconnect();this.X.connect(a);
this.Z.disconnect();this.Z.connect(a)};B.prototype.remove=function(){this.qa.disconnect();this.Sc.disconnect();this.Eb.disconnect();this.zc.disconnect();this.X.disconnect();this.Z.disconnect();this.Ij.disconnect()};B.prototype.Ec=function(){return this.qa};J.prototype.Pc=function(a){this.X.disconnect();this.X.connect(a);this.Z.disconnect();this.Z.connect(a)};J.prototype.remove=function(){this.qa.disconnect();this.Za.disconnect();this.Eb.disconnect();this.zc.disconnect();this.X.disconnect();this.Z.disconnect()};
J.prototype.Ec=function(){return this.qa};v.prototype.Pc=function(a){this.ta.disconnect();this.ta.connect(a)};v.prototype.remove=function(){this.ta.disconnect()};v.prototype.Ec=function(){return this.ta};h.prototype.Pc=function(a){this.ta.disconnect();this.ta.connect(a)};h.prototype.remove=function(){this.Eb.disconnect();this.zc.disconnect();this.ta.disconnect()};h.prototype.Ec=function(){return this.ta};p.prototype.Pc=function(a){this.Z.disconnect();this.Z.connect(a);this.X.disconnect();this.X.connect(a)};
p.prototype.remove=function(){this.Eb.disconnect();this.Ai.disconnect();this.qa.disconnect();this.Z.disconnect();this.X.disconnect()};p.prototype.Ec=function(){return this.qa};V.prototype.Dx=function(a,b){.01>a&&(a=.01);this.Hk.gain.value=a;this.Gk.gain.value=Math.pow(1/a,.6)*b};V.prototype.shape=function(a,b,c){var d=1.05*c*b-b;c=0>a?-1:1;a=0>a?-a:a;b=a<b?a:b+d*(1-Math.exp(-(1/d)*(a-b)));return b*c};V.prototype.Cv=function(a,b){for(var c=Math.pow(10,a/20),d=Math.pow(10,b/20),e=0,f=0;32768>f;++f)e=
f/32768,e=this.shape(e,c,d),this.zj[32768+f]=e,this.zj[32768-f-1]=-e};V.prototype.Pc=function(a){this.Z.disconnect();this.Z.connect(a);this.X.disconnect();this.X.connect(a)};V.prototype.remove=function(){this.qa.disconnect();this.Hk.disconnect();this.ul.disconnect();this.Gk.disconnect();this.Z.disconnect();this.X.disconnect()};V.prototype.Ec=function(){return this.qa};U.prototype.Pc=function(a){this.ta.disconnect();this.ta.connect(a)};U.prototype.remove=function(){this.ta.disconnect()};U.prototype.Ec=
function(){return this.ta};w.prototype.Ta=function(){this.ta.getFloatFrequencyData(this.Av);this.ta.getByteTimeDomainData(this.Cr);for(var a=this.ta.fftSize,b=0,c=this.mi=0,d=0;b<a;b++)d=(this.Cr[b]-128)/128,0>d&&(d=-d),this.mi<d&&(this.mi=d),c+=d*d;this.mi=t(this.mi);t(Math.sqrt(c/a))};w.prototype.Pc=function(a){this.ta.disconnect();this.ta.connect(a)};w.prototype.remove=function(){this.ta.disconnect()};w.prototype.Ec=function(){return this.ta};r.prototype.Ci=function(a){this.Aa=a};r.prototype.Uj=
function(){return!!this.Aa};r.prototype.Ta=function(){};G.prototype.nx=function(){var a,b,c,d;c=a=0;for(b=z.length;a<b;++a)d=z[a],z[c]=d,d.buffer===this?d.stop():++c;z.length=c;this.Ig&&(this.Ig.disconnect(),this.Ig=null);this.Og&&(this.Og.disconnect(),this.Og=null);this.Pd=this.ra=null};G.prototype.ip=function(){if(!this.ra&&this.Pd){var a=this;if(x.decodeAudioData)x.decodeAudioData(this.Pd,function(b){a.ra=b;a.Pd=null;var c,d,e;if(ha(a.Dk)||P)ha(a.vj)||(c=a.vj.lf,c.normalize=a.Gq,c.buffer=b);else if(a.Pg.length){c=
0;for(d=a.Pg.length;c<d;c++){b=a.Pg[c];e=new y(a,b.Lr);e.Mn(!0);if("undefined"!==typeof b.Iq&&(b.Aa=D.yh(b.Iq),!b.Aa))continue;if(b.Aa){var f=Ra(b.Aa.x,b.Aa.y,-b.Aa.A.Jb(),T,la,!0),h=Ra(b.Aa.x,b.Aa.y,-b.Aa.A.Jb(),T,la,!1);e.Ln(f,h,Fa(b.Aa.q-b.Aa.A.Jb()),b.vm,b.an,b.dn);e.Ci(b.Aa)}else e.Ln(b.x,b.y,b.Tt,b.vm,b.an,b.dn);e.play(a.Wm,a.ho,a.Qk);a.Bk&&e.pause();z.push(e)}F(a.Pg)}else e=new y(a,a.Dk||""),e.play(a.Wm,a.ho,a.Qk),a.Bk&&e.pause(),z.push(e)},function(){a.Gj=!0});else if(this.ra=x.createBuffer(this.Pd,
!1),this.Pd=null,ha(this.Dk)||P)ha(this.vj)||(b=this.vj.lf,b.normalize=this.Gq,b.buffer=this.ra);else{var b=new y(this,this.Dk);b.play(this.Wm,this.ho,this.Qk);this.Bk&&b.pause();z.push(b)}}};G.prototype.Qp=function(){switch(this.la){case 0:var a=4<=this.ra.readyState;a&&(this.jo=!0);return a||this.jo;case 1:return!!this.Pd||!!this.ra;case 2:return!0;case 3:return!0}return!1};G.prototype.uw=function(){switch(this.la){case 0:return this.Qp();case 1:return!!this.ra;case 2:return!0;case 3:return!0}return!1};
G.prototype.hw=function(){switch(this.la){case 0:return!!this.ra.error;case 1:return this.Gj}return!1};y.prototype.zf=function(){switch(this.la){case 0:return this.u.ended;case 1:return 1===this.buffer.la?!this.Ad&&!this.hb&&this.u.loop||this.wc?!1:this.sg:this.u.ended;case 2:return this.sg;case 3:!0}return!0};y.prototype.fu=function(){return this.Ad||this.hb?!0:this.zf()};y.prototype.Mn=function(a){1===E&&(!this.Fd&&a?this.ob&&(this.eb||(this.eb=x.createPanner(),this.eb.panningModel="number"===typeof this.eb.panningModel?
Ia:["equalpower","HRTF","soundfield"][Ia],this.eb.distanceModel="number"===typeof this.eb.distanceModel?Ab:["linear","inverse","exponential"][Ab],this.eb.refDistance=Bc,this.eb.maxDistance=Dc,this.eb.rolloffFactor=Ec),this.ob.disconnect(),this.ob.connect(this.eb),this.eb.connect(q(this.tag)),this.Fd=!0):this.Fd&&!a&&this.ob&&(this.eb.disconnect(),this.ob.disconnect(),this.ob.connect(q(this.tag)),this.Fd=!1))};y.prototype.Ln=function(a,b,c,d,e,f){this.Fd&&1===E&&(this.eb.setPosition(a,b,0),this.eb.setOrientation(Math.cos(R(c)),
Math.sin(R(c)),0),this.eb.coneInnerAngle=d,this.eb.coneOuterAngle=e,this.eb.coneOuterGain=f,this.Xq=a,this.Yq=b,this.Tq=c,this.Uq=d,this.Vq=e,this.Wq=f)};y.prototype.Ci=function(a){this.Fd&&1===E&&(this.Mb||(this.Mb=new r),this.Mb.Ci(a))};y.prototype.Ta=function(a){if(this.Fd&&1===E&&this.Mb&&this.Mb.Uj()&&this.Lh()){this.Mb.Ta(a);a=this.Mb.Aa;var b=Ra(a.x,a.y,-a.A.Jb(),T,la,!0),c=Ra(a.x,a.y,-a.A.Jb(),T,la,!1);this.eb.setPosition(b,c,0);b=0;"undefined"!==typeof this.Mb.Aa.q&&(b=a.q-a.A.Jb(),this.eb.setOrientation(Math.cos(b),
Math.sin(b),0))}};y.prototype.play=function(a,b,c,d){var e=this.u;this.Ed=a;this.volume=b;c=c||0;d=d||0;switch(this.la){case 0:1!==e.playbackRate&&(e.playbackRate=1);e.volume!==b*da&&(e.volume=b*da);e.loop!==a&&(e.loop=a);e.muted&&(e.muted=!1);if(e.currentTime!==c)try{e.currentTime=c}catch(h){}m(this);break;case 1:this.muted=!1;this.Kg=1;if(1===this.buffer.la)this.ob.gain.value=b*da,this.Ad||(this.u=x.createBufferSource(),this.u.buffer=this.buffer.ra,this.u.connect(this.ob)),this.u.onended=this.nn,
this.cj=this.u,this.u.loop=a,this.sg=!1,0===c?u(this.u,d):f(this.u,c,this.wf(),d);else{1!==e.playbackRate&&(e.playbackRate=1);e.loop!==a&&(e.loop=a);e.volume=b*da;if(e.currentTime!==c)try{e.currentTime=c}catch(g){}m(this)}break;case 2:(!this.Ad&&this.hb||0!==c)&&e.seekTo(c);e.play();this.sg=!1;break;case 3:D.Ub?AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=1;this.startTime=(this.tg?D.qb.P:D.ve.P)-c;this.wc=this.hb=this.Ad=!1};y.prototype.stop=function(){switch(this.la){case 0:this.u.paused||
this.u.pause();break;case 1:1===this.buffer.la?a(this.u):this.u.paused||this.u.pause();break;case 2:this.u.stop();break;case 3:D.Ub&&AppMobi.context.stopSound(this.src)}this.hb=!0;this.wc=!1};y.prototype.pause=function(){if(!(this.Ad||this.hb||this.zf()||this.wc)){switch(this.la){case 0:this.u.paused||this.u.pause();break;case 1:1===this.buffer.la?(this.pc=this.mm(!0),this.Ed&&(this.pc=this.pc%this.wf()),this.wc=!0,a(this.u)):this.u.paused||this.u.pause();break;case 2:this.u.pause();break;case 3:D.Ub&&
AppMobi.context.stopSound(this.src)}this.wc=!0}};y.prototype.ux=function(){if(!(this.Ad||this.hb||this.zf())&&this.wc){switch(this.la){case 0:m(this);break;case 1:1===this.buffer.la?(this.u=x.createBufferSource(),this.u.buffer=this.buffer.ra,this.u.connect(this.ob),this.u.onended=this.nn,this.cj=this.u,this.u.loop=this.Ed,this.ob.gain.value=da*this.volume*this.Kg,this.pl(),this.startTime=(this.tg?D.qb.P:D.ve.P)-this.pc/(this.playbackRate||.001),f(this.u,this.pc,this.wf())):m(this);break;case 2:this.u.play();
break;case 3:D.Ub&&AppMobi.context.resumeSound(this.src)}this.wc=!1}};y.prototype.seek=function(a){if(!(this.Ad||this.hb||this.zf()))switch(this.la){case 0:try{this.u.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.la)this.wc?this.pc=a:(this.pause(),this.pc=a,this.ux());else try{this.u.currentTime=a}catch(c){}break;case 3:D.Ub&&AppMobi.context.seekSound(this.src,a)}};y.prototype.mx=function(a){1===this.la&&(this.Fd?(this.eb.disconnect(),this.eb.connect(a)):(this.ob.disconnect(),this.ob.connect(a)))};
y.prototype.wf=function(){var a=0;switch(this.la){case 0:"undefined"!==typeof this.u.duration&&(a=this.u.duration);break;case 1:a=this.buffer.ra.duration;break;case 2:a=this.u.getDuration();break;case 3:D.Ub&&(a=AppMobi.context.getDurationSound(this.src))}return a};y.prototype.mm=function(a){var b=this.wf(),c=0;switch(this.la){case 0:"undefined"!==typeof this.u.currentTime&&(c=this.u.currentTime);break;case 1:if(1===this.buffer.la){if(this.wc)return this.pc;c=(this.tg?D.qb.P:D.ve.P)-this.startTime}else"undefined"!==
typeof this.u.currentTime&&(c=this.u.currentTime);break;case 3:D.Ub&&(c=AppMobi.context.getPlaybackTimeSound(this.src))}a&&(c*=this.playbackRate);!this.Ed&&c>b&&(c=b);return c};y.prototype.Lh=function(){return!this.wc&&!this.Ad&&!this.hb&&!this.zf()};y.prototype.Ix=function(){return!this.Ad&&!this.hb&&!this.zf()};y.prototype.Tx=function(){var a=this.volume*da;isFinite(a)||(a=0);switch(this.la){case 0:"undefined"!==typeof this.u.volume&&this.u.volume!==a&&(this.u.volume=a);break;case 1:1===this.buffer.la?
this.ob.gain.value=a*this.Kg:"undefined"!==typeof this.u.volume&&this.u.volume!==a&&(this.u.volume=a)}};y.prototype.Ej=function(a){switch(this.la){case 0:this.u.muted!==!!a&&(this.u.muted=!!a);break;case 1:1===this.buffer.la?(this.Kg=a?0:1,this.ob.gain.value=da*this.volume*this.Kg):this.u.muted!==!!a&&(this.u.muted=!!a)}};y.prototype.Ex=function(){this.wg=!0;this.Ej(this.wg||this.Ph)};y.prototype.Tk=function(a){this.Ph=!!a;this.Ej(this.wg||this.Ph)};y.prototype.pl=function(){var a=this.playbackRate;
this.tg&&(a*=D.Yf);switch(this.la){case 0:this.u.playbackRate!==a&&(this.u.playbackRate=a);break;case 1:1===this.buffer.la?this.u.playbackRate.value!==a&&(this.u.playbackRate.value=a):this.u.playbackRate!==a&&(this.u.playbackRate=a)}};y.prototype.Gx=function(b){switch(this.la){case 0:b?this.Lh()?(this.Lc=!0,this.u.pause()):this.Lc=!1:this.Lc&&(this.u.play(),this.Lc=!1);break;case 1:b?this.Lh()?(this.Lc=!0,1===this.buffer.la?(this.pc=this.mm(!0),this.Ed&&(this.pc=this.pc%this.wf()),a(this.u)):this.u.pause()):
this.Lc=!1:this.Lc&&(1===this.buffer.la?(this.u=x.createBufferSource(),this.u.buffer=this.buffer.ra,this.u.connect(this.ob),this.u.onended=this.nn,this.cj=this.u,this.u.loop=this.Ed,this.ob.gain.value=da*this.volume*this.Kg,this.pl(),this.startTime=(this.tg?D.qb.P:D.ve.P)-this.pc/(this.playbackRate||.001),f(this.u,this.pc,this.wf())):this.u.play(),this.Lc=!1);break;case 2:b?this.Lh()?(this.u.pause(),this.Lc=!0):this.Lc=!1:this.Lc&&(this.Lc=!1,this.u.play())}};K.aa=function(a){this.type=a;D=this.b=
a.b;L=this;this.yc=null;this.Wh=-600;this.b.dk&&(mb=!0);!(this.b.zg||this.b.Zj&&(this.b.Am||this.b.$j))||this.b.bk||this.b.Na||this.b.Op||mb||(Fc=!0);x=null;"undefined"!==typeof AudioContext?(E=1,x=new AudioContext):"undefined"!==typeof webkitAudioContext&&(E=1,x=new webkitAudioContext);this.b.zg&&x&&(x.close&&x.close(),"undefined"!==typeof AudioContext?x=new AudioContext:"undefined"!==typeof webkitAudioContext&&(x=new webkitAudioContext));1!==E&&(this.b.Gc&&"undefined"!==typeof window.Media?E=2:
this.b.Pp&&(E=3));2===E&&(S=location.href,a=S.lastIndexOf("/"),-1<a&&(S=S.substr(0,a+1)),S=S.replace("file://",""));if(this.b.vw&&this.b.ww&&"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.xe(this);else{if(this.b.Ub)H=this.b.Zj;else try{H=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(b){H=!1}this.b.Qi(this)}};var va=K.aa.prototype;va.M=function(){this.b.fg=this;M=this.G[0];
this.le=this.G[1];this.Xw=0!==this.G[2];this.Eq=0;Ia=this.G[3];Ab=this.G[4];this.Wh=-this.G[5];Bc=this.G[6];Dc=this.G[7];Ec=this.G[8];this.yc=new r;var a=this.b.S||this.b.width,b=this.b.R||this.b.height;1===E&&(x.listener.setPosition(a/2,b/2,this.Wh),x.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,b){Oa&&Oa.disconnect();Bb=b.toLowerCase();Oa=x.createMediaStreamSource(a);Oa.connect(q(Bb))});this.b.Po(function(a){L.Sw(a)});var c=this;this.b.Al(function(a){c.en(a)})};va.en=
function(a){var b,c,d;b=0;for(c=z.length;b<c;b++)d=z[b],d.Mb&&d.Mb.Aa===a&&(d.Mb.Aa=null,d.Fd&&d.Lh()&&d.Ed&&d.stop());this.yc.Aa===a&&(this.yc.Aa=null)};va.zb=function(){var a={silent:P,masterVolume:da,listenerZ:this.Wh,listenerUid:this.yc.Uj()?this.yc.Aa.uid:-1,playing:[],effects:{}},b=a.playing,c,d,e,f,h,g;c=0;for(d=z.length;c<d;c++)e=z[c],!e.Ix()||3===this.le||e.Dd&&1===this.le||!e.Dd&&2===this.le||(f=e.mm(),e.Ed&&(f=f%e.wf()),f={tag:e.tag,buffersrc:e.buffer.src,is_music:e.Dd,playbackTime:f,volume:e.volume,
looping:e.Ed,muted:e.wg,playbackRate:e.playbackRate,paused:e.wc,resume_position:e.pc},e.Fd&&(f.pan={},g=f.pan,e.Mb&&e.Mb.Uj()?g.objUid=e.Mb.Aa.uid:(g.x=e.Xq,g.y=e.Yq,g.a=e.Tq),g.ia=e.Uq,g.oa=e.Vq,g.og=e.Wq),b.push(f));b=a.effects;for(h in Z)if(Z.hasOwnProperty(h)){e=[];c=0;for(d=Z[h].length;c<d;c++)e.push({type:Z[h][c].type,params:Z[h][c].wb});b[h]=e}return a};var Xa=[];va.Lb=function(a){var b=a.silent;da=a.masterVolume;this.Wh=a.listenerZ;this.yc.Ci(null);var c=a.listenerUid;-1!==c&&(this.yc.mk=
c,Xa.push(this.yc));var c=a.playing,f,g,k,n,q,m,t,G,u,y,I;if(3!==this.le)for(f=0,g=z.length;f<g;f++)u=z[f],u.Dd&&1===this.le||(u.Dd||2!==this.le)&&u.stop();for(q in Z)if(Z.hasOwnProperty(q))for(f=0,g=Z[q].length;f<g;f++)Z[q][f].remove();Wa(Z);for(q in a.effects)if(a.effects.hasOwnProperty(q))for(m=a.effects[q],f=0,g=m.length;f<g;f++)switch(k=m[f].type,y=m[f].params,k){case "filter":Q(q,new e(y[0],y[1],y[2],y[3],y[4],y[5]));break;case "delay":Q(q,new d(y[0],y[1],y[2]));break;case "convolve":k=y[2];
u=this.Oj(k,!1);u.ra?k=new l(u.ra,y[0],y[1],k):(k=new l(null,y[0],y[1],k),u.Gq=y[0],u.vj=k);Q(q,k);break;case "flanger":Q(q,new B(y[0],y[1],y[2],y[3],y[4]));break;case "phaser":Q(q,new J(y[0],y[1],y[2],y[3],y[4],y[5]));break;case "gain":Q(q,new v(y[0]));break;case "tremolo":Q(q,new h(y[0],y[1]));break;case "ringmod":Q(q,new p(y[0],y[1]));break;case "distortion":Q(q,new V(y[0],y[1],y[2],y[3],y[4]));break;case "compressor":Q(q,new U(y[0],y[1],y[2],y[3],y[4]));break;case "analyser":Q(q,new w(y[0],y[1]))}f=
0;for(g=c.length;f<g;f++)3===this.le||(a=c[f],k=a.buffersrc,n=a.is_music,q=a.tag,m=a.playbackTime,t=a.looping,G=a.volume,I=(y=a.pan)&&y.hasOwnProperty("objUid")?y.objUid:-1,n&&1===this.le)||!n&&2===this.le||((u=this.xp(k,q,n,t,G))?(u.pc=a.resume_position,u.Mn(!!y),u.play(t,G,m),u.pl(),u.Tx(),u.Ej(u.wg||u.Ph),a.paused&&u.pause(),a.muted&&u.Ex(),u.Ej(u.wg||u.Ph),y&&(-1!==I?(u.Mb=u.Mb||new r,u.Mb.mk=I,Xa.push(u.Mb)):u.Ln(y.x,y.y,y.a,y.ia,y.oa,y.og))):(u=this.Oj(k,n),u.Qk=m,u.Bk=a.paused,y&&(-1!==I?u.Pg.push({Iq:I,
vm:y.ia,an:y.oa,dn:y.og,Lr:q}):u.Pg.push({x:y.x,y:y.y,Tt:y.a,vm:y.ia,an:y.oa,dn:y.og,Lr:q}))));if(b&&!P){f=0;for(g=z.length;f<g;f++)z[f].Tk(!0);P=!0}else if(!b&&P){f=0;for(g=z.length;f<g;f++)z[f].Tk(!1);P=!1}};va.vd=function(){var a,b,c,d;a=0;for(b=Xa.length;a<b;a++)c=Xa[a],d=this.b.yh(c.mk),c.Ci(d),c.mk=-1,d&&(T=d.x,la=d.y);F(Xa)};va.Sw=function(a){if(!this.Xw){!a&&x&&x.resume&&(x.resume(),ma=!1);var b,c;b=0;for(c=z.length;b<c;b++)z[b].Gx(a);a&&x&&x.suspend&&(x.suspend(),ma=!0)}};va.Ta=function(){var a=
this.b.Me,b,c,d;b=0;for(c=z.length;b<c;b++)d=z[b],d.Ta(a),0!==M&&d.pl();var e,f;for(e in Z)if(Z.hasOwnProperty(e))for(d=Z[e],b=0,c=d.length;b<c;b++)f=d[b],f.Ta&&f.Ta();1===E&&this.yc.Uj()&&(this.yc.Ta(a),T=this.yc.Aa.x,la=this.yc.Aa.y,x.listener.setPosition(this.yc.Aa.x,this.yc.Aa.y,this.Wh))};var Ya=[];va.Fx=function(a){var b,c,d,e,f,h=0;b=0;for(c=a.length;b<c;++b)if(d=a[b],e=d[0],d=2*d[1],(f=4<e.length&&".ogg"===e.substr(e.length-4))&&H||!f&&!H)Ya.push({filename:e,size:d,Aa:null}),h+=d;return h};
va.Lx=function(){var a,b,c,d;a=0;for(b=Ya.length;a<b;++a)c=Ya[a],d=this.b.cm+c.filename,c.Aa=this.Oj(d,!1)};va.Lv=function(){var a=0,b,c,d;b=0;for(c=Ya.length;b<c;++b)d=Ya[b],d.Aa.uw()||d.Aa.hw()||this.b.Na||this.b.$j?a+=d.size:d.Aa.Qp()&&(a+=Math.floor(d.size/2));return a};va.ox=function(){var a,b,c,d;c=a=0;for(b=A.length;a<b;++a)d=A[a],A[c]=d,d.Dd?d.nx():++c;A.length=c};va.Oj=function(a,b){var c,d,e,f=null;c=0;for(d=A.length;c<d;c++)if(e=A[c],e.src===a){f=e;break}f||(mb&&b&&this.ox(),f=new G(a,
b),A.push(f));return f};va.xp=function(a,b,c,d,e){var f,h,g;f=0;for(h=z.length;f<h;f++)if(g=z[f],g.src===a&&(g.fu()||c))return g.tag=b,g;a=this.Oj(a,c);if(!a.ra)return"<preload>"!==b&&(a.Dk=b,a.Wm=d,a.ho=e),null;g=new y(a,b);z.push(g);return g};var Pa=[];I.prototype.Zi=function(a){return kb(N,a)};K.n=new I;X.prototype.Play=function(a,b,c,d){!P&&(c=Math.pow(10,c/20),isFinite(c)||(c=0),0>c&&(c=0),1<c&&(c=1),O=this.xp(this.b.cm+a[0]+(H?".ogg":".m4a"),d,a[1],0!==b,c))&&(O.Mn(!1),O.play(0!==b,c,0,this.Eq),
this.Eq=0)};X.prototype.zt=function(a){var b;2===a&&(a=P?1:0);if(0===a&&!P){a=0;for(b=z.length;a<b;a++)z[a].Tk(!0);P=!0}else if(1===a&&P){a=0;for(b=z.length;a<b;a++)z[a].Tk(!1);P=!1}};K.H=new X;K.V=new function(){}})();function qc(c){this.b=c}
(function(){function c(){t&&q&&window.OfflineClientInfo&&window.OfflineClientInfo.SetMessageCallback(function(b){g.Rw(b)})}function m(){}var n=qc.prototype;n.ja=function(b){this.ua=b;this.b=b.b};var k=n.ja.prototype;k.M=function(){};var t=!1,q=!1;document.addEventListener("DOMContentLoaded",function(){if(window.C2_RegisterSW&&navigator.gj){var b=document.createElement("script");b.onload=function(){t=!0;c()};b.src="offlineClient.js";document.head.appendChild(b)}});var g=null;k.Mq=function(){q=!0;c()};
n.aa=function(b){this.type=b;this.b=b.b};k=n.aa.prototype;k.M=function(){var b=this;window.addEventListener("resize",function(){b.b.trigger(qc.prototype.n.$s,b)});g=this;"undefined"!==typeof navigator.onLine&&(window.addEventListener("online",function(){b.b.trigger(qc.prototype.n.Xs,b)}),window.addEventListener("offline",function(){b.b.trigger(qc.prototype.n.Vs,b)}));"undefined"!==typeof window.applicationCache&&(window.applicationCache.addEventListener("updateready",function(){b.b.Fg=1;b.b.trigger(qc.prototype.n.bj,
b)}),window.applicationCache.addEventListener("progress",function(c){b.b.Fg=c.loaded/c.total||0}));this.b.Ub||(document.addEventListener("appMobi.device.update.available",function(){b.b.trigger(qc.prototype.n.bj,b)}),document.addEventListener("backbutton",function(){b.b.trigger(qc.prototype.n.Yi,b)}),document.addEventListener("menubutton",function(){b.b.trigger(qc.prototype.n.Bo,b)}),document.addEventListener("searchbutton",function(){b.b.trigger(qc.prototype.n.bt,b)}),document.addEventListener("tizenhwkey",
function(c){var f;switch(c.keyName){case "back":f=b.b.trigger(qc.prototype.n.Yi,b);!f&&window.tizen&&window.tizen.application.getCurrentApplication().exit();break;case "menu":(f=b.b.trigger(qc.prototype.n.Bo,b))||c.preventDefault()}}));this.b.Fm&&"undefined"!==typeof Windows?Windows.UI.Core.SystemNavigationManager.getForCurrentView().addEventListener("backrequested",function(c){b.b.trigger(qc.prototype.n.Yi,b)&&(c.handled=!0)}):this.b.Tp&&WinJS.Application&&(WinJS.Application.onbackclick=function(){return!!b.b.trigger(qc.prototype.n.Yi,
b)});this.b.Po(function(c){c?b.b.trigger(qc.prototype.n.Ys,b):b.b.trigger(qc.prototype.n.Zs,b)})};k.Rw=function(b){b=b.data.type;"downloading-update"===b?this.b.trigger(qc.prototype.n.ft,this):"update-ready"===b||"update-pending"===b?this.b.trigger(qc.prototype.n.bj,this):"offline-ready"===b&&this.b.trigger(qc.prototype.n.Ws,this)};m.prototype.Xs=function(){return!0};m.prototype.Vs=function(){return!0};m.prototype.bj=function(){return!0};m.prototype.Zs=function(){return!0};m.prototype.Ys=function(){return!0};
m.prototype.$s=function(){return!0};m.prototype.Yi=function(){return!0};m.prototype.Bo=function(){return!0};m.prototype.bt=function(){return!0};m.prototype.ft=function(){return!0};m.prototype.bj=function(){return!0};m.prototype.Ws=function(){return!0};n.n=new m;n.H=new function(){};n.V=new function(){}})();function oc(c){this.b=c}
(function(){function c(){this.name="";this.wi=0;this.wb=[]}function m(){b++;b===g.length&&g.push(new c);return g[b]}function n(){}function k(){}function t(){}var q=oc.prototype;q.ja=function(b){this.ua=b;this.b=b.b};q.ja.prototype.M=function(){};q.aa=function(b){this.type=b;this.b=b.b};var g=[],b=-1;q.aa.prototype.M=function(){var c=this;window.c2_callFunction=function(f,a){var e,d,g,k=m();k.name=f.toLowerCase();k.wi=0;if(a)for(k.wb.length=a.length,e=0,d=a.length;e<d;++e)g=a[e],k.wb[e]="number"===
typeof g||"string"===typeof g?g:"boolean"===typeof g?g?1:0:0;else F(k.wb);c.b.trigger(oc.prototype.n.$i,c,k.name);b--;return k.wi}};n.prototype.$i=function(c){var f=0>b?null:g[b];return f?kb(c,f.name):!1};n.prototype.os=function(c,f,a){var e=0>b?null:g[b];if(!e)return!1;c=ra(c);return 0>c||c>=e.wb.length?!1:ec(e.wb[c],f,a)};q.n=new n;k.prototype.CallFunction=function(c,f){var a=m();a.name=c.toLowerCase();a.wi=0;Aa(a.wb,f);this.b.trigger(oc.prototype.n.$i,this,a.name);b--};q.H=new k;t.prototype.hs=
function(c,f){var a=m();a.name=f.toLowerCase();a.wi=0;F(a.wb);var e,d;e=2;for(d=arguments.length;e<d;e++)a.wb.push(arguments[e]);this.b.trigger(oc.prototype.n.$i,this,a.name);b--;c.wr(a.wi)};q.V=new t})();function rc(c){this.b=c}
(function(){function c(){}var m=rc.prototype;m.ja=function(c){this.ua=c;this.b=c.b};m.ja.prototype.M=function(){};m.aa=function(c){this.type=c;this.b=c.b;this.Sh=Array(256);this.Ti=Array(256);this.re=0};var n=m.aa.prototype;n.M=function(){var c=this;this.b.Na||(jQuery(document).keydown(function(k){c.gn(k)}),jQuery(document).keyup(function(k){c.hn(k)}))};var k=[32,33,34,35,36,37,38,39,40,44];n.gn=function(c){var n=!1;window!=window.top&&-1<k.indexOf(c.which)&&(c.preventDefault(),n=!0,c.stopPropagation());
if(this.Sh[c.which])this.Ti[c.which]&&!n&&c.preventDefault();else{this.Sh[c.which]=!0;this.re=c.which;this.b.ab=!0;this.b.trigger(rc.prototype.n.Ls,this);var g=this.b.trigger(rc.prototype.n.vo,this),b=this.b.trigger(rc.prototype.n.Ts,this);this.b.ab=!1;if(g||b)this.Ti[c.which]=!0,n||c.preventDefault()}};n.hn=function(c){this.Sh[c.which]=!1;this.re=c.which;this.b.ab=!0;this.b.trigger(rc.prototype.n.ro,this);var k=this.b.trigger(rc.prototype.n.xo,this),g=this.b.trigger(rc.prototype.n.wo,this);this.b.ab=
!1;if(k||g||this.Ti[c.which])this.Ti[c.which]=!0,c.preventDefault()};n.Ye=function(){var c;for(c=0;256>c;++c)if(this.Sh[c]){this.Sh[c]=!1;this.re=c;this.b.trigger(rc.prototype.n.ro,this);var k=this.b.trigger(rc.prototype.n.xo,this),g=this.b.trigger(rc.prototype.n.wo,this);if(k||g)this.Ti[c]=!0}};n.zb=function(){return{triggerKey:this.re}};n.Lb=function(c){this.re=c.triggerKey};c.prototype.vo=function(c){return c===this.re};c.prototype.Ls=function(){return!0};c.prototype.ro=function(){return!0};c.prototype.xo=
function(c){return c===this.re};c.prototype.Ts=function(c){return c===this.re};c.prototype.wo=function(c){return c===this.re};m.n=new c;m.H=new function(){};m.V=new function(){}})();function sc(c){this.b=c}
(function(){function c(){}function m(){}var n=sc.prototype;n.ja=function(c){this.ua=c;this.b=c.b};n.ja.prototype.M=function(){};n.aa=function(c){this.type=c;this.b=c.b;this.hf=Array(4);this.Or=this.kl=this.Zf=this.Xe=this.We=0;this.rm=!1};var k=n.aa.prototype;k.M=function(){var c=this;if(!this.b.Na){jQuery(document).mousemove(function(b){c.kn(b)});jQuery(document).mousedown(function(b){c.jn(b)});jQuery(document).mouseup(function(b){c.ln(b)});jQuery(document).dblclick(function(b){c.Qw(b)});var g=function(b){c.Tw(b)};
document.addEventListener("mousewheel",g,!1);document.addEventListener("DOMMouseScroll",g,!1)}};var t={left:0,top:0};k.kn=function(c){var g=this.b.Na?t:jQuery(this.b.canvas).offset();this.We=c.pageX-g.left;this.Xe=c.pageY-g.top};k.Bq=function(){return 0<this.b.Zb?!0:0<=this.We&&0<=this.Xe&&this.We<this.b.width&&this.Xe<this.b.height};k.jn=function(c){this.Bq()&&(this.hf[c.which]=!0,this.b.ab=!0,this.b.trigger(sc.prototype.n.Ks,this),this.Zf=c.which-1,this.kl=0,this.b.trigger(sc.prototype.n.so,this),
this.b.trigger(sc.prototype.n.Eo,this),this.b.ab=!1)};k.ln=function(c){this.hf[c.which]&&(this.b.Sj&&!this.b.Cf&&c.preventDefault(),this.b.Sj=!0,this.hf[c.which]=!1,this.b.ab=!0,this.Zf=c.which-1,this.b.trigger(sc.prototype.n.Fo,this),this.b.ab=!1)};k.Qw=function(c){this.Bq()&&(c.preventDefault(),this.b.ab=!0,this.Zf=c.which-1,this.kl=1,this.b.trigger(sc.prototype.n.so,this),this.b.trigger(sc.prototype.n.Eo,this),this.b.ab=!1)};k.Tw=function(c){this.Or=0>(c.wheelDelta?c.wheelDelta:c.detail?-c.detail:
0)?0:1;this.rm=!1;this.b.ab=!0;this.b.trigger(sc.prototype.n.gt,this);this.b.ab=!1;this.rm&&nb(c)&&c.preventDefault()};k.Ye=function(){var c,g;c=0;for(g=this.hf.length;c<g;++c)this.hf[c]&&(this.hf[c]=!1,this.Zf=c-1,this.b.trigger(sc.prototype.n.Fo,this))};c.prototype.so=function(c,g){return c===this.Zf&&g===this.kl};c.prototype.Ks=function(){return!0};c.prototype.oo=function(c){return this.hf[c+1]};c.prototype.Fo=function(c){return c===this.Zf};c.prototype.Eo=function(c,g,b){return c!==this.Zf||g!==
this.kl?!1:this.b.Mi(b,this.We,this.Xe)};c.prototype.gt=function(c){this.rm=!0;return c===this.Or};n.n=new c;n.H=new function(){};m.prototype.yl=function(c,g){var b,k,f,a,e;ha(g)?(b=this.b.ae(0),k=b.scale,f=b.Xb,a=b.mc,e=b.q,b.scale=1,b.Xb=1,b.mc=1,b.q=0,c.D(b.mb(this.We,this.Xe,!0)),b.scale=k,b.Xb=f,b.mc=a,b.q=e):(b=C(g)?this.b.ae(g):this.b.xh(g))?c.D(b.mb(this.We,this.Xe,!0)):c.D(0)};m.prototype.zl=function(c,g){var b,k,f,a,e;ha(g)?(b=this.b.ae(0),k=b.scale,f=b.Xb,a=b.nc,e=b.q,b.scale=1,b.Xb=1,
b.nc=1,b.q=0,c.D(b.mb(this.We,this.Xe,!1)),b.scale=k,b.Xb=f,b.nc=a,b.q=e):(b=C(g)?this.b.ae(g):this.b.xh(g))?c.D(b.mb(this.We,this.Xe,!1)):c.D(0)};n.V=new m})();function Y(c){this.b=c}
(function(){function c(){if(0===this.Sl.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.Vg?b.drawImage(this.O,this.Mg,this.Ng,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.O,0,0,this.width,this.height);this.Sl=a.toDataURL("image/png")}return this.Sl}function m(){}function n(a){a[0]=0;a[1]=0;a[2]=0;l.push(a)}function k(a,b){return a<b?""+a+","+b:""+b+","+a}function t(a,b,c,d){b=b.uid;c=c.uid;var e=k(b,c);if(a.hasOwnProperty(e))a[e][2]=
d;else{var f=l.length?l.pop():[0,0,0];f[0]=b;f[1]=c;f[2]=d;a[e]=f}}function q(a,b,c){b=k(b.uid,c.uid);a.hasOwnProperty(b)&&(n(a[b]),delete a[b])}function g(a,b,c){b=k(b.uid,c.uid);if(a.hasOwnProperty(b))return B=a[b][2],!0;B=-2;return!1}function b(){}function u(){}var f=Y.prototype;f.ja=function(a){this.ua=a;this.b=a.b};var a=f.ja.prototype;a.M=function(){if(!this.N){var a,b,d,e,f,g,h,k,l;this.bd=[];this.Dh=!1;a=0;for(b=this.sc.length;a<b;a++){f=this.sc[a];h={};h.name=f[0];h.speed=f[1];h.loop=f[2];
h.Bn=f[3];h.Cn=f[4];h.br=f[5];h.ma=f[6];h.frames=[];d=0;for(e=f[7].length;d<e;d++)g=f[7][d],k={},k.fl=g[0],k.Vn=g[1],k.Mg=g[2],k.Ng=g[3],k.width=g[4],k.height=g[5],k.duration=g[6],k.$b=g[7],k.ac=g[8],k.xm=g[9],k.Ek=g[10],k.cr=g[11],k.Vg=0!==k.width,k.Sl="",k.$y=c,l={left:0,top:0,right:1,bottom:1},k.Pn=l,k.ea=null,(l=this.b.zv(g[0]))?k.O=l:(k.O=new Image,k.O.ju=g[0],k.O.fp=g[1],k.O.du=null,this.b.io(k.O,g[0])),h.frames.push(k),this.bd.push(k);this.sc[a]=h}}};a.Xr=function(){var a,b,c;a=0;for(b=this.j.length;a<
b;a++)c=this.j[a],c.xj=c.Gb.ea};a.vk=function(){if(!this.N){var a,b,c;a=0;for(b=this.bd.length;a<b;++a)c=this.bd[a],c.O.du=null,c.ea=null;this.Dh=!1;this.Xr()}};a.xk=function(){if(!this.N&&this.j.length){var a,b,c;a=0;for(b=this.bd.length;a<b;++a)c=this.bd[a],c.ea=this.b.C.Eg(c.O,!1,this.b.Ja,c.cr);this.Xr()}};a.Rm=function(){if(!this.N&&!this.Dh&&this.b.C){var a,b,c;a=0;for(b=this.bd.length;a<b;++a)c=this.bd[a],c.ea=this.b.C.Eg(c.O,!1,this.b.Ja,c.cr);this.Dh=!0}};a.nl=function(){if(!this.N&&!this.j.length&&
this.Dh){var a,b,c;a=0;for(b=this.bd.length;a<b;++a)c=this.bd[a],this.b.C.deleteTexture(c.ea),c.ea=null;this.Dh=!1}};var e=[];a.Ik=function(a){var b,c,d;F(e);b=0;for(c=this.bd.length;b<c;++b)d=this.bd[b].O,-1===e.indexOf(d)&&(a.drawImage(d,0,0),e.push(d))};f.aa=function(a){this.type=a;this.b=a.b;a=this.type.sc[0].frames[0].Ek;this.Xc?this.za.Fi(a):this.za=new eb(a)};var d=f.aa.prototype;d.M=function(){this.visible=0===this.G[0];this.Vj=this.Nh=!1;this.Sd=0!==this.G[3];this.Ha=this.wp(this.G[1])||
this.type.sc[0];this.K=this.G[2];0>this.K&&(this.K=0);this.K>=this.Ha.frames.length&&(this.K=this.Ha.frames.length-1);var a=this.Ha.frames[this.K];this.za.Fi(a.Ek);this.$b=a.$b;this.ac=a.ac;this.jg=this.Ha.speed;this.Le=this.Ha.Cn;1===this.type.sc.length&&1===this.type.sc[0].frames.length||0===this.jg||(this.b.Qi(this),this.Nh=!0);this.Xc?this.wd.reset():this.wd=new cb;this.$d=this.wd.P;this.ff=!0;this.Od=0;this.ef=!0;this.pj=this.Qo="";this.bp=0;this.oj=-1;this.type.Rm();var b,c,d,e,f,g,h,a=0;for(b=
this.type.sc.length;a<b;a++)for(e=this.type.sc[a],c=0,d=e.frames.length;c<d;c++)f=e.frames[c],0===f.width&&(f.width=f.O.width,f.height=f.O.height),f.Vg&&(h=f.O,g=f.Pn,g.left=f.Mg/h.width,g.top=f.Ng/h.height,g.right=(f.Mg+f.width)/h.width,g.bottom=(f.Ng+f.height)/h.height,0===f.Mg&&0===f.Ng&&f.width===h.width&&f.height===h.height&&(f.Vg=!1));this.Gb=this.Ha.frames[this.K];this.xj=this.Gb.ea};d.zb=function(){var a={a:this.Ha.ma,f:this.K,cas:this.jg,fs:this.$d,ar:this.Od,at:this.wd.P,rt:this.Le};this.ff||
(a.ap=this.ff);this.ef||(a.af=this.ef);return a};d.Lb=function(a){var b=this.Dv(a.a);b&&(this.Ha=b);this.K=a.f;0>this.K&&(this.K=0);this.K>=this.Ha.frames.length&&(this.K=this.Ha.frames.length-1);this.jg=a.cas;this.$d=a.fs;this.Od=a.ar;this.wd.reset();this.wd.P=a.at;this.ff=a.hasOwnProperty("ap")?a.ap:!0;this.ef=a.hasOwnProperty("af")?a.af:!0;a.hasOwnProperty("rt")?this.Le=a.rt:this.Le=this.Ha.Cn;this.Gb=this.Ha.frames[this.K];this.xj=this.Gb.ea;this.za.Fi(this.Gb.Ek);this.$b=this.Gb.$b;this.ac=this.Gb.ac};
d.El=function(a){this.K=a?0:this.Ha.frames.length-1;this.ff=!1;this.Qo=this.Ha.name;this.Vj=!0;this.b.trigger(Y.prototype.n.Js,this);this.b.trigger(Y.prototype.n.qo,this);this.Vj=!1;this.Od=0};d.gj=function(){return this.wd.P};d.Ta=function(){this.wd.add(this.b.pg(this));this.pj.length&&this.jp();0<=this.oj&&this.kp();var a=this.wd.P,b=this.Ha,c=b.frames[this.K],d=c.duration/this.jg;this.ff&&a>=this.$d+d&&(this.ef?this.K++:this.K--,this.$d+=d,this.K>=b.frames.length&&(b.br?(this.ef=!1,this.K=b.frames.length-
2):b.loop?this.K=this.Le:(this.Od++,this.Od>=b.Bn?this.El(!1):this.K=this.Le)),0>this.K&&(b.br?(this.K=1,this.ef=!0,b.loop||(this.Od++,this.Od>=b.Bn&&this.El(!0))):b.loop?this.K=this.Le:(this.Od++,this.Od>=b.Bn?this.El(!0):this.K=this.Le)),0>this.K?this.K=0:this.K>=b.frames.length&&(this.K=b.frames.length-1),a>this.$d+b.frames[this.K].duration/this.jg&&(this.$d=a),a=b.frames[this.K],this.eg(c,a),this.b.Ba=!0)};d.wp=function(a){var b,c,d;b=0;for(c=this.type.sc.length;b<c;b++)if(d=this.type.sc[b],kb(d.name,
a))return d;return null};d.Dv=function(a){var b,c,d;b=0;for(c=this.type.sc.length;b<c;b++)if(d=this.type.sc[b],d.ma===a)return d;return null};d.jp=function(){var a=this.Ha.frames[this.K],b=this.wp(this.pj);this.pj="";!b||kb(b.name,this.Ha.name)&&this.ff||(this.Ha=b,this.jg=b.speed,this.Le=b.Cn,0>this.K&&(this.K=0),this.K>=this.Ha.frames.length&&(this.K=this.Ha.frames.length-1),1===this.bp&&(this.K=0),this.ff=!0,this.$d=this.wd.P,this.ef=!0,this.eg(a,this.Ha.frames[this.K]),this.b.Ba=!0)};d.kp=function(){var a=
this.Ha.frames[this.K],b=this.K;this.K=ra(this.oj);0>this.K&&(this.K=0);this.K>=this.Ha.frames.length&&(this.K=this.Ha.frames.length-1);b!==this.K&&(this.eg(a,this.Ha.frames[this.K]),this.$d=this.wd.P,this.b.Ba=!0);this.oj=-1};d.eg=function(a,b){var c=a.width,d=a.height,e=b.width,f=b.height;c!=e&&(this.width*=e/c);d!=f&&(this.height*=f/d);this.$b=b.$b;this.ac=b.ac;this.za.Fi(b.Ek);this.W();this.Gb=b;this.xj=b.ea;c=0;for(d=this.U.length;c<d;c++)e=this.U[c],e.Pq&&e.Pq(a,b);this.b.trigger(Y.prototype.n.eg,
this)};d.Xd=function(a){a.globalAlpha=this.opacity;var b=this.Gb,c=b.Vg,d=b.O,e=this.x,f=this.y,g=this.width,h=this.height;if(0===this.q&&0<=g&&0<=h)e-=this.$b*g,f-=this.ac*h,this.b.jd&&(e=Math.round(e),f=Math.round(f)),c?a.drawImage(d,b.Mg,b.Ng,b.width,b.height,e,f,g,h):a.drawImage(d,e,f,g,h);else{this.b.jd&&(e=Math.round(e),f=Math.round(f));a.save();var k=0<g?1:-1,l=0<h?1:-1;a.translate(e,f);1===k&&1===l||a.scale(k,l);a.rotate(this.q*k*l);e=0-this.$b*na(g);f=0-this.ac*na(h);c?a.drawImage(d,b.Mg,
b.Ng,b.width,b.height,e,f,na(g),na(h)):a.drawImage(d,e,f,na(g),na(h));a.restore()}};d.nf=function(a){this.vc(a)};d.vc=function(a){a.Bc(this.xj);a.Tf(this.opacity);var b=this.Gb,c=this.tc;if(this.b.jd){var d=Math.round(this.x)-this.x,e=Math.round(this.y)-this.y;b.Vg?a.Hd(c.Ua+d,c.Va+e,c.Ab+d,c.Bb+e,c.kb+d,c.lb+e,c.ib+d,c.jb+e,b.Pn):a.ri(c.Ua+d,c.Va+e,c.Ab+d,c.Bb+e,c.kb+d,c.lb+e,c.ib+d,c.jb+e)}else b.Vg?a.Hd(c.Ua,c.Va,c.Ab,c.Bb,c.kb,c.lb,c.ib,c.jb,b.Pn):a.ri(c.Ua,c.Va,c.Ab,c.Bb,c.kb,c.lb,c.ib,c.jb)};
d.Hv=function(a){var b=this.Gb,c,d;c=0;for(d=b.xm.length;c<d;c++)if(kb(a,b.xm[c][0]))return c;return-1};d.wh=function(a,b){var c=this.Gb,d=c.xm,e;ia(a)?e=this.Hv(a):e=a-1;e=ra(e);if(0>e||e>=d.length)return b?this.x:this.y;var f=(d[e][1]-c.$b)*this.width,d=d[e][2],d=(d-c.ac)*this.height,c=Math.cos(this.q);e=Math.sin(this.q);var g=f*c-d*e,d=d*c+f*e,f=g+this.x,d=d+this.y;return b?f:d};var l=[],B=-2,J=[];m.prototype.Ns=function(a){if(!a)return!1;var b=this.b,c=b.vf(),d=c.type,e=null;c.L.collmemory?e=
c.L.collmemory:(e={},c.L.collmemory=e);c.L.spriteCreatedDestroyCallback||(c.L.spriteCreatedDestroyCallback=!0,b.Al(function(a){var b=c.L.collmemory;a=a.uid;var d,e;for(d in b)b.hasOwnProperty(d)&&(e=b[d],e[0]===a||e[1]===a)&&(n(b[d]),delete b[d])}));var f=d.Y(),h=a.Y(),f=f.lc(),k,l,p,m,v,u,x,U=this.b.pe,z=U-1,V=b.Qa().Wa;for(l=0;l<f.length;l++){p=f[l];h.ga?(p.Ea(),this.b.im(p.A,a,p.Ka,J),k=J,this.b.Yt(p,a,k)):k=h.lc();for(m=0;m<k.length;m++)v=k[m],b.cf(p,v)||b.gu(p,v)?(u=g(e,p,v),u=!u||B<z,t(e,p,
v,U),u&&(b.Qg(V.ya),u=d.Y(),x=a.Y(),u.ga=!1,x.ga=!1,d===a?(u.j.length=2,u.j[0]=p,u.j[1]=v,d.Oc()):(u.j.length=1,x.j.length=1,u.j[0]=p,x.j[0]=v,d.Oc(),a.Oc()),V.xi(),b.ke(V.ya))):q(e,p,v);F(J)}return!1};var v=null,h=new ca,p=!1,V=[],U=new ua(0,0,0,0);a.finish=function(a){if(p){if(a){var b=this.b.Qa().Wa.Kc;a=v.Y();var c=h.te(),d,e;if(a.ga){a.ga=!1;F(a.j);d=0;for(e=c.length;d<e;++d)a.j[d]=c[d];if(b)for(F(a.ca),d=0,e=v.j.length;d<e;++d)c=v.j[d],h.contains(c)||a.ca.push(c)}else if(b)for(b=a.j.length,
d=0,e=c.length;d<e;++d)a.j[b+d]=c[d],Da(a.ca,c[d]);else Aa(a.j,c);v.Oc()}h.clear();p=!1}};m.prototype.Gs=function(a){if(a){var b=!1,c,d,e,f=this.b.vf(),g=f.type,f=f.Yj;c=a.Y();d=this.b.Qa().Wa.Kc;var k;c.ga?(this.Ea(),U.ig(this.Ka),U.offset(0,0),this.b.im(this.A,a,U,V),k=V):k=d?this.b.qw()&&!c.ca.length&&c.j.length?c.j:c.ca:c.j;v=a;p=g!==a&&!f;c=0;for(d=k.length;c<d;c++)if(e=k[c],this.b.cf(this,e)){b=!0;if(f)break;g!==a&&h.add(e)}F(V);a=b}else a=!1;return a};m.prototype.qo=function(a){return kb(this.Qo,
a)};m.prototype.Js=function(){return!0};m.prototype.eg=function(){return!0};f.n=new m;b.prototype.Ht=function(a,b,c){if(a&&b&&(b=this.b.Pl(a,b,this.wh(c,!0),this.wh(c,!1)))){"undefined"!==typeof b.q&&(b.q=this.q,b.W());this.b.Hc++;var d,e,f;this.b.trigger(Object.getPrototypeOf(a.ua).n.dg,b);if(b.Kb)for(d=0,e=b.siblings.length;d<e;d++)f=b.siblings[d],this.b.trigger(Object.getPrototypeOf(f.type.ua).n.dg,f);this.b.Hc--;d=this.b.Fv();c=!1;if(ha(d.L.Spawn_LastExec)||d.L.Spawn_LastExec<this.b.tf)c=!0,d.L.Spawn_LastExec=
this.b.tf;if(a!=this.type&&(a=a.Y(),a.ga=!1,c?(F(a.j),a.j[0]=b):a.j.push(b),b.Kb))for(d=0,e=b.siblings.length;d<e;d++)f=b.siblings[d],a=f.type.Y(),a.ga=!1,c?(F(a.j),a.j[0]=f):a.j.push(f)}};b.prototype.ot=function(a,b){this.pj=a;this.bp=b;this.Nh||(this.b.Qi(this),this.Nh=!0);this.Vj||this.jp()};b.prototype.pt=function(a){this.oj=a;this.Nh||(this.b.Qi(this),this.Nh=!0);this.Vj||this.kp()};f.H=new b;u.prototype.gs=function(a){a.wa(this.Ha.frames.length)};f.V=new u})();function tc(c){this.b=c}
(function(){function c(a,b){return a.length?a.pop():new b}function m(a,b,c){if(c){var e;c=0;for(e=b.length;c<e;c++)a.length<g&&a.push(b[c]);F(b)}else for(e in b)Object.prototype.hasOwnProperty.call(b,e)&&(a.length<g&&a.push(b[e]),delete b[e])}function n(a,e,f){var g=a.Lf;f=f.replace(/\s\s*$/,"");e>=g.length&&g.push(c(b,Object));e=g[e];e.text=f;e.width=a.Ym(f);a.Yg=oa(a.Yg,e.width)}function k(){}var t=tc.prototype;t.M=function(){};t.ja=function(a){this.ua=a;this.b=a.b};var q=t.ja.prototype;q.M=function(){this.N||
(this.O=new Image,this.b.io(this.O,this.fl),this.ea=null)};q.vk=function(){this.N||(this.ea=null)};q.xk=function(){if(!this.N&&this.j.length){this.ea||(this.ea=this.b.C.Eg(this.O,!1,this.b.Ja,this.Pi));var a,b;a=0;for(b=this.j.length;a<b;a++)this.j[a].ea=this.ea}};q.nl=function(){this.N||this.j.length||!this.ea||(this.b.C.deleteTexture(this.ea),this.ea=null)};q.Ik=function(a){a.drawImage(this.O,0,0)};t.aa=function(a){this.type=a;this.b=a.b};q=t.aa.prototype;q.Rf=function(){m(b,this.Lf,!0);m(u,this.rj,
!1);m(f,this.sj,!1);Wa(this.He)};q.M=function(){this.O=this.type.O;this.qj=this.G[0];this.Fe=this.G[1];this.characterSet=this.G[2];this.text=this.G[3];this.Ge=this.G[4];this.visible=0===this.G[5];this.Tj=this.G[6]/2;this.rl=this.G[7]/2;this.$x=0===this.G[9];this.hg=this.G[10];this.lineHeight=this.G[11];this.Xf=this.Yg=0;this.Xc?(F(this.Lf),Wa(this.rj),Wa(this.sj),Wa(this.He)):(this.Lf=[],this.rj={},this.sj={},this.He={});this.Oi=!0;this.Pm=this.width;this.b.C&&(this.type.ea||(this.type.ea=this.b.C.Eg(this.type.O,
!1,this.b.Ja,this.type.Pi)),this.ea=this.type.ea);this.It()};q.zb=function(){var a={t:this.text,csc:this.Ge,csp:this.hg,lh:this.lineHeight,tw:this.Yg,th:this.Xf,lrt:this.Bw,ha:this.Tj,va:this.rl,cw:{}},b;for(b in this.He)a.cw[b]=this.He[b];return a};q.Lb=function(a){this.text=a.t;this.Ge=a.csc;this.hg=a.csp;this.lineHeight=a.lh;this.Yg=a.tw;this.Xf=a.th;this.Bw=a.lrt;a.hasOwnProperty("ha")&&(this.Tj=a.ha);a.hasOwnProperty("va")&&(this.rl=a.va);for(var b in a.cw)this.He[b]=a.cw[b];this.Oi=!0;this.Pm=
this.width};var g=1E3,b=[],u=[],f=[];q.It=function(){for(var a=this.O,b=a.width,e=a.height,a=this.qj,g=this.Fe,k=a/b,h=g/e,n=this.characterSet,b=Math.floor(b/a),e=Math.floor(e/g),m=0;m<n.length&&!(m>=b*e);m++){var q=m%b,t=Math.floor(m/b),r=n.charAt(m);if(this.b.C){var G=this.sj,y=q*k,Q=t*h,q=(q+1)*k,t=(t+1)*h;void 0===G[r]&&(G[r]=c(f,ua));G[r].left=y;G[r].top=Q;G[r].right=q;G[r].bottom=t}else G=this.rj,q=q*a,t=t*g,y=a,Q=g,void 0===G[r]&&(G[r]=c(u,Object)),G[r].x=q,G[r].y=t,G[r].as=y,G[r].Ep=Q}};var a=
[];t.Mt=function(b){F(a);for(var c="",e,f=0;f<b.length;)if(e=b.charAt(f),"\n"===e)c.length&&(a.push(c),c=""),a.push("\n"),++f;else if(" "===e||"\t"===e||"-"===e){do c+=b.charAt(f),f++;while(f<b.length&&(" "===b.charAt(f)||"\t"===b.charAt(f)));a.push(c);c=""}else f<b.length&&(c+=e,f++);c.length&&a.push(c)};t.Rt=function(a){var e=a.text,f=a.Lf;if(e&&e.length){var g=a.width;if(2>=g)m(b,f,!0);else{var k=a.Ge,h=a.hg;if(e.length*(a.qj*k+h)-h<=g&&-1===e.indexOf("\n")&&(h=a.Ym(e),h<=g)){m(b,f,!0);f.push(c(b,
Object));f[0].text=e;f[0].width=h;a.Yg=h;a.Xf=a.Fe*k+a.lineHeight;return}this.St(a);a.Xf=f.length*(a.Fe*k+a.lineHeight)}}else m(b,f,!0)};t.St=function(c){var e=c.$x,f=c.text,k=c.Lf,m=c.width;e&&(this.Mt(f),f=a);var h="",p,q,t,w=0,r=!1;for(t=0;t<f.length;t++)"\n"===f[t]?(!0===r?r=!1:(n(c,w,h),w++),h=""):(r=!1,p=h,h+=f[t],q=c.Ym(h.replace(/\s\s*$/,"")),q>m&&(""===p?(n(c,w,h),h="",r=!0):(n(c,w,p),h=f[t]),w++,e||" "!==h||(h="")));h.replace(/\s\s*$/,"").length&&(n(c,w,h),w++);for(t=w;t<k.length;t++)b.length<
g&&b.push(k[t]);k.length=w};q.Ym=function(a){for(var b=this.hg,c=a.length,e=0,f=0;f<c;f++)e+=this.hm(a.charAt(f))*this.Ge+b;return e-(0<e?b:0)};q.hm=function(a){var b=this.He;return void 0!==b[a]?b[a]:this.qj};q.lr=function(){if(this.Oi||this.width!==this.Pm)this.Xf=this.Yg=0,this.type.ua.Rt(this),this.Oi=!1,this.Pm=this.width};q.Xd=function(a){var b=this.O;if(""!==this.text&&null!=b&&(this.lr(),!(this.height<this.Fe*this.Ge+this.lineHeight))){a.globalAlpha=this.opacity;var b=this.x,c=this.y;this.b.jd&&
(b=Math.round(b),c=Math.round(c));var e=this.A.Ca,f=this.A.Da,g=this.A.Ga,k=this.A.Fa;a.save();a.translate(b,c);a.rotate(this.q);for(var n=this.q,m=this.Tj,q=this.Ge,r=this.Fe*q,t=this.lineHeight,u=this.hg,Q=this.Lf,I,X=-(this.$b*this.width),K=-(this.ac*this.height),K=K+this.rl*oa(0,this.height-this.Xf),D,L,N,S=0;S<Q.length;S++){var E=Q[S].text;I=m*oa(0,this.width-Q[S].width);D=X+I;K+=t;if(0===n&&c+K+r<f)K+=r;else{for(var x=0;x<E.length;x++){L=E.charAt(x);I=this.hm(L);var A=this.rj[L];if(0===n&&b+
D+I*q+u<e)D+=I*q+u;else{if(D+I*q>this.width+1E-5)break;void 0!==A&&(L=D,N=K,0===n&&1===q&&(L=Math.round(L),N=Math.round(N)),a.drawImage(this.O,A.x,A.y,A.as,A.Ep,L,N,A.as*q,A.Ep*q));D+=I*q+u;if(0===n&&b+D>g)break}}K+=r;if(0===n&&(K+r+t>this.height||c+K>k))break}}a.restore()}};var e=new wa;q.vc=function(a){a.Bc(this.ea);a.Tf(this.opacity);if(this.text&&(this.lr(),!(this.height<this.Fe*this.Ge+this.lineHeight))){this.Ea();var b=this.tc,c=0,f=0;this.b.jd&&(c=Math.round(this.x)-this.x,f=Math.round(this.y)-
this.y);var g=this.A.Ca,h=this.A.Da,k=this.A.Ga,n=this.A.Fa,m=this.q,q=this.Tj,r=this.rl,t=this.Ge,u=this.Fe*t,Q=this.lineHeight,I=this.hg,X=this.Lf,K=this.Xf,D,L,N;0!==m&&(L=Math.cos(m),N=Math.sin(m));for(var c=b.Ua+c,b=b.Va+f,S,r=r*oa(0,this.height-K),E,x,K=0;K<X.length;K++)if(f=X[K].text,S=D=q*oa(0,this.width-X[K].width),r+=Q,0===m&&b+r+u<h)r+=u;else{for(var A=0;A<f.length;A++){var z=f.charAt(A);D=this.hm(z);z=this.sj[z];if(0===m&&c+S+D*t+I<g)S+=D*t+I;else{if(S+D*t>this.width+1E-5)break;if(void 0!==
z){var O=this.qj*t,H=this.Fe*t;E=S;x=r;0===m&&1===t&&(E=Math.round(E),x=Math.round(x));e.Ua=E;e.Va=x;e.Ab=E+O;e.Bb=x;e.ib=E;e.jb=x+H;e.kb=E+O;e.lb=x+H;0!==m&&(E=e,x=L,O=N,H=void 0,H=E.Ua*x-E.Va*O,E.Va=E.Va*x+E.Ua*O,E.Ua=H,H=E.Ab*x-E.Bb*O,E.Bb=E.Bb*x+E.Ab*O,E.Ab=H,H=E.ib*x-E.jb*O,E.jb=E.jb*x+E.ib*O,E.ib=H,H=E.kb*x-E.lb*O,E.lb=E.lb*x+E.kb*O,E.kb=H);e.offset(c,b);a.Hd(e.Ua,e.Va,e.Ab,e.Bb,e.kb,e.lb,e.ib,e.jb,z)}S+=D*t+I;if(0===m&&c+S>k)break}}r+=u;if(0===m&&(r+u+Q>this.height||b+r>n))break}}};t.n=new function(){};
k.prototype.Bt=function(a){C(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.Oi=!0,this.b.Ba=!0)};q.gj=function(a,b){var c=parseInt(b,10);this.He[a]!==c&&(this.He[a]=c,this.Oi=!0,this.b.Ba=!0)};t.H=new k;t.V=new function(){}})();function uc(c){this.b=c}
(function(){var c=uc.prototype;c.ja=function(c){this.ua=c;this.b=c.b};var m=c.ja.prototype;m.M=function(){this.N||(this.O=new Image,this.O.fp=this.Vn,this.b.io(this.O,this.fl),this.ea=this.pattern=null)};m.vk=function(){this.N||(this.ea=null)};m.xk=function(){if(!this.N&&this.j.length){this.ea||(this.ea=this.b.C.Eg(this.O,!0,this.b.Ja,this.Pi));var c,k;c=0;for(k=this.j.length;c<k;c++)this.j[c].ea=this.ea}};m.Rm=function(){this.N||this.ea||!this.b.C||(this.ea=this.b.C.Eg(this.O,!0,this.b.Ja,this.Pi))};
m.nl=function(){this.N||this.j.length||!this.ea||(this.b.C.deleteTexture(this.ea),this.ea=null)};m.Ik=function(c){c.drawImage(this.O,0,0)};c.aa=function(c){this.type=c;this.b=c.b};m=c.aa.prototype;m.M=function(){this.visible=0===this.G[0];this.ti=new ua(0,0,0,0);this.Hp=!1;this.O=this.type.O;this.b.C?(this.type.Rm(),this.ea=this.type.ea):(this.type.pattern||(this.type.pattern=this.b.La.createPattern(this.type.O,"repeat")),this.pattern=this.type.pattern)};m.vd=function(){this.Hp=!1;this.O=this.type.O};
m.Rf=function(){this.b.C&&this.Hp&&this.ea&&(this.b.C.deleteTexture(this.ea),this.ea=null)};m.Xd=function(c){c.globalAlpha=this.opacity;c.save();c.fillStyle=this.pattern;var k=this.x,m=this.y;this.b.jd&&(k=Math.round(k),m=Math.round(m));var q=-(this.$b*this.width),g=-(this.ac*this.height),b=q%this.O.width,u=g%this.O.height;0>b&&(b+=this.O.width);0>u&&(u+=this.O.height);c.translate(k,m);c.rotate(this.q);c.translate(b,u);c.fillRect(q-b,g-u,this.width,this.height);c.restore()};m.nf=function(c){this.vc(c)};
m.vc=function(c){c.Bc(this.ea);c.Tf(this.opacity);var k=this.ti;k.right=this.width/this.O.width;k.bottom=this.height/this.O.height;var m=this.tc;if(this.b.jd){var q=Math.round(this.x)-this.x,g=Math.round(this.y)-this.y;c.Hd(m.Ua+q,m.Va+g,m.Ab+q,m.Bb+g,m.kb+q,m.lb+g,m.ib+q,m.jb+g,k)}else c.Hd(m.Ua,m.Va,m.Ab,m.Bb,m.kb,m.lb,m.ib,m.jb,k)};c.n=new function(){};c.H=new function(){};c.V=new function(){}})();function vc(c){this.b=c}
(function(){function c(b){f=b.x;a=b.y;e=b.z}function m(a,b,c,e){var f;f=d.length?d.pop():new n;f.init(a,b,c,e);return f}function n(){this.Ji=this.id=this.Kf=this.Jf=this.y=this.x=this.cl=this.bl=this.Nm=this.time=this.Tn=0;this.Ri=this.ll=!1}function k(a){return a.sourceCapabilities&&a.sourceCapabilities.firesTouchEvents||a.originalEvent&&a.originalEvent.sourceCapabilities&&a.originalEvent.sourceCapabilities.firesTouchEvents}function t(){}function q(){}var g=vc.prototype;g.ja=function(a){this.ua=
a;this.b=a.b};g.ja.prototype.M=function(){};g.aa=function(a){this.type=a;this.b=a.b;this.touches=[];this.Zm=!1};var b=g.aa.prototype,u={left:0,top:0};b.vh=function(a){var b,c;b=0;for(c=this.touches.length;b<c;b++)if(this.touches[b].id===a)return b;return-1};var f=0,a=0,e=0,d=[];n.prototype.init=function(a,b,c,d){var e=Za();this.Tn=this.Nm=this.time=e;this.bl=a;this.cl=b;this.x=a;this.y=b;this.Jf=a;this.Kf=b;this.pressure=this.height=this.width=0;this.id=c;this.Ji=d;this.Ri=this.ll=!1};n.prototype.update=
function(a,b,c,d,e,f){this.Nm=this.time;this.time=a;this.Jf=this.x;this.Kf=this.y;this.x=b;this.y=c;this.width=d;this.height=e;this.pressure=f;!this.Ri&&15<=Sa(this.bl,this.cl,this.x,this.y)&&(this.Ri=!0)};n.prototype.Lw=function(a,b){!this.ll&&500<=Za()-this.Tn&&!this.Ri&&15>Sa(this.bl,this.cl,this.x,this.y)&&(this.ll=!0,a.Md=this.Ji,a.ah=this.id,a.qg=b,a.b.trigger(vc.prototype.n.Rs,a),a.Ud=this.x,a.Vd=this.y,a.b.trigger(vc.prototype.n.Ss,a),a.qg=0)};var l=-1E3,B=-1E3,J=-1E4;n.prototype.xq=function(a,
b){if(!this.ll){var c=Za();333>=c-this.Tn&&!this.Ri&&15>Sa(this.bl,this.cl,this.x,this.y)&&(a.Md=this.Ji,a.ah=this.id,a.qg=b,666>=c-J&&25>Sa(l,B,this.x,this.y)?(a.b.trigger(vc.prototype.n.Ps,a),a.Ud=this.x,a.Vd=this.y,a.b.trigger(vc.prototype.n.Qs,a),B=l=-1E3,J=-1E4):(a.b.trigger(vc.prototype.n.ct,a),a.Ud=this.x,a.Vd=this.y,a.b.trigger(vc.prototype.n.dt,a),l=this.x,B=this.y,J=c),a.qg=0)}};b.M=function(){this.xw=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.qg=this.ah=this.Md=
this.Vd=this.Ud=this.Mo=this.Lo=this.Ko=this.Wt=this.Vt=this.Ut=this.Ak=this.zk=this.yk=0;this.Xx=0!==this.G[0];var a=0<this.b.Zb?document:this.b.canvas,b=document;this.b.Ub?b=a=window.Canvas:this.b.Uc&&(b=a=window);var d=this;"undefined"!==typeof PointerEvent?(a.addEventListener("pointerdown",function(a){d.Oq(a)},!1),a.addEventListener("pointermove",function(a){d.Nq(a)},!1),b.addEventListener("pointerup",function(a){d.wk(a,!1)},!1),b.addEventListener("pointercancel",function(a){d.wk(a,!0)},!1),this.b.canvas&&
(this.b.canvas.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),document.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),this.b.canvas.addEventListener("gesturehold",function(a){a.preventDefault()},!1),document.addEventListener("gesturehold",function(a){a.preventDefault()},!1))):window.navigator.msPointerEnabled?(a.addEventListener("MSPointerDown",function(a){d.Oq(a)},!1),a.addEventListener("MSPointerMove",function(a){d.Nq(a)},!1),b.addEventListener("MSPointerUp",
function(a){d.wk(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){d.wk(a,!0)},!1),this.b.canvas&&(this.b.canvas.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),document.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1))):(a.addEventListener("touchstart",function(a){d.Rq(a)},!1),a.addEventListener("touchmove",function(a){d.Qq(a)},!1),b.addEventListener("touchend",function(a){d.mn(a,!1)},!1),b.addEventListener("touchcancel",function(a){d.mn(a,!0)},
!1));if(this.xw){var e=function(a){a=a.reading;d.Ko=a.accelerationX;d.Lo=a.accelerationY;d.Mo=a.accelerationZ},f=function(a){a=a.reading;d.yk=a.yawDegrees;d.zk=a.pitchDegrees;d.Ak=a.rollDegrees},g=Windows.Devices.Sensors.Accelerometer.getDefault();g&&(g.reportInterval=Math.max(g.minimumReportInterval,16),g.addEventListener("readingchanged",e));var k=Windows.Devices.Sensors.Inclinometer.getDefault();k&&(k.reportInterval=Math.max(k.minimumReportInterval,16),k.addEventListener("readingchanged",f));document.addEventListener("visibilitychange",
function(){document.hidden||document.msHidden?(g&&g.removeEventListener("readingchanged",e),k&&k.removeEventListener("readingchanged",f)):(g&&g.addEventListener("readingchanged",e),k&&k.addEventListener("readingchanged",f))},!1)}else window.addEventListener("deviceorientation",function(a){d.yk=a.alpha||0;d.zk=a.beta||0;d.Ak=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(d.Ut=a.accelerationIncludingGravity.x||0,d.Vt=a.accelerationIncludingGravity.y||
0,d.Wt=a.accelerationIncludingGravity.z||0);a.acceleration&&(d.Ko=a.acceleration.x||0,d.Lo=a.acceleration.y||0,d.Mo=a.acceleration.z||0)},!1);this.Xx&&!this.b.Na&&(jQuery(document).mousemove(function(a){d.kn(a)}),jQuery(document).mousedown(function(a){d.jn(a)}),jQuery(document).mouseup(function(a){d.ln(a)}));!this.b.zg&&this.b.Gc&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(c,null,{frequency:40});this.b.Ox(this)};b.Nq=function(a){if(a.pointerType!==
a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var b=this.vh(a.pointerId),c=Za();if(0<=b){var d=this.b.Na?u:jQuery(this.b.canvas).offset(),b=this.touches[b];2>c-b.time||b.update(c,a.pageX-d.left,a.pageY-d.top,a.width||0,a.height||0,a.pressure||0)}}};b.Oq=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&nb(a)&&a.preventDefault();var b=this.b.Na?u:jQuery(this.b.canvas).offset(),c=a.pageX-b.left,b=a.pageY-b.top;Za();
this.Md=this.touches.length;this.ah=a.pointerId;this.touches.push(m(c,b,a.pointerId,this.Md));this.b.ab=!0;this.b.trigger(vc.prototype.n.Do,this);this.b.trigger(vc.prototype.n.Jo,this);this.Ud=c;this.Vd=b;this.b.trigger(vc.prototype.n.Io,this);this.b.ab=!1}};b.wk=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&nb(a)&&a.preventDefault();var c=this.vh(a.pointerId);this.Md=0<=c?this.touches[c].Ji:-1;this.ah=0<=c?this.touches[c].id:-1;this.b.ab=!0;this.b.trigger(vc.prototype.n.Co,
this);this.b.trigger(vc.prototype.n.Ho,this);0<=c&&(b||this.touches[c].xq(this,c),100>d.length&&d.push(this.touches[c]),this.touches.splice(c,1));this.b.ab=!1}};b.Qq=function(a){a.preventDefault&&a.preventDefault();var b=Za(),c,d,e,f;c=0;for(d=a.changedTouches.length;c<d;c++)if(e=a.changedTouches[c],f=this.vh(e.identifier),0<=f){var g=this.b.Na?u:jQuery(this.b.canvas).offset();f=this.touches[f];2>b-f.time||f.update(b,e.pageX-g.left,e.pageY-g.top,2*(e.lz||e.uz||e.ez||e.hz||0),2*(e.mz||e.vz||e.fz||
e.iz||0),e.Yy||e.sz||e.dz||e.gz||0)}};b.Rq=function(a){a.preventDefault&&nb(a)&&a.preventDefault();var b=this.b.Na?u:jQuery(this.b.canvas).offset();Za();this.b.ab=!0;var c,d,e,f;c=0;for(d=a.changedTouches.length;c<d;c++)if(e=a.changedTouches[c],f=this.vh(e.identifier),-1===f){f=e.pageX-b.left;var g=e.pageY-b.top;this.Md=this.touches.length;this.ah=e.identifier;this.touches.push(m(f,g,e.identifier,this.Md));this.b.trigger(vc.prototype.n.Do,this);this.b.trigger(vc.prototype.n.Jo,this);this.Ud=f;this.Vd=
g;this.b.trigger(vc.prototype.n.Io,this)}this.b.ab=!1};b.mn=function(a,b){a.preventDefault&&nb(a)&&a.preventDefault();this.b.ab=!0;var c,e,f;c=0;for(e=a.changedTouches.length;c<e;c++)f=a.changedTouches[c],f=this.vh(f.identifier),0<=f&&(this.Md=this.touches[f].Ji,this.ah=this.touches[f].id,this.b.trigger(vc.prototype.n.Co,this),this.b.trigger(vc.prototype.n.Ho,this),b||this.touches[f].xq(this,f),100>d.length&&d.push(this.touches[f]),this.touches.splice(f,1));this.b.ab=!1};b.gj=function(){return this.b.Gc&&
0===this.yk&&0!==e?90*e:this.yk};b.bz=function(){return this.b.Gc&&0===this.zk&&0!==a?90*a:this.zk};b.cz=function(){return this.b.Gc&&0===this.Ak&&0!==f?90*f:this.Ak};b.jn=function(a){k(a)||(this.Rq({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]}),this.Zm=!0)};b.kn=function(a){this.Zm&&!k(a)&&this.Qq({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};b.ln=function(a){a.preventDefault&&this.b.Sj&&!this.b.Cf&&a.preventDefault();this.b.Sj=!0;k(a)||(this.mn({changedTouches:[{pageX:a.pageX,
pageY:a.pageY,identifier:0}]}),this.Zm=!1)};b.Zg=function(){var a,b,c,d=Za();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=d-50&&(c.Nm=d),c.Lw(this,a)};t.prototype.Jo=function(){return!0};t.prototype.Ho=function(){return!0};t.prototype.Io=function(a){return a?this.b.Mi(a,this.Ud,this.Vd):!1};t.prototype.Do=function(a){a=Math.floor(a);return a===this.Md};t.prototype.Co=function(a){a=Math.floor(a);return a===this.Md};t.prototype.Rs=function(){return!0};t.prototype.ct=function(){return!0};
t.prototype.Ps=function(){return!0};t.prototype.Ss=function(a){return a?this.b.Mi(a,this.Ud,this.Vd):!1};t.prototype.dt=function(a){return a?this.b.Mi(a,this.Ud,this.Vd):!1};t.prototype.Qs=function(a){return a?this.b.Mi(a,this.Ud,this.Vd):!1};g.n=new t;q.prototype.yl=function(a,b){var c=this.qg;if(0>c||c>=this.touches.length)a.D(0);else{var d,e,f,g,k;ha(b)?(d=this.b.ae(0),e=d.scale,f=d.Xb,g=d.mc,k=d.q,d.scale=1,d.Xb=1,d.mc=1,d.q=0,a.D(d.mb(this.touches[c].x,this.touches[c].y,!0)),d.scale=e,d.Xb=f,
d.mc=g,d.q=k):(d=C(b)?this.b.ae(b):this.b.xh(b))?a.D(d.mb(this.touches[c].x,this.touches[c].y,!0)):a.D(0)}};q.prototype.zl=function(a,b){var c=this.qg;if(0>c||c>=this.touches.length)a.D(0);else{var d,e,f,g,k;ha(b)?(d=this.b.ae(0),e=d.scale,f=d.Xb,g=d.nc,k=d.q,d.scale=1,d.Xb=1,d.nc=1,d.q=0,a.D(d.mb(this.touches[c].x,this.touches[c].y,!1)),d.scale=e,d.Xb=f,d.nc=g,d.q=k):(d=C(b)?this.b.ae(b):this.b.xh(b))?a.D(d.mb(this.touches[c].x,this.touches[c].y,!1)):a.D(0)}};g.V=new q})();
function wc(c){this.b=c}
(function(){function c(){}var m=wc.prototype;m.ja=function(b){this.ua=b;this.b=b.b};m.ja.prototype.M=function(){};m.aa=function(b){this.type=b;this.b=b.b};var n=m.aa.prototype,k="",t="undefined"!==typeof window.is_scirra_arcade;t&&(k="arcade"+window.scirra_arcade_id);var q=!1;try{localStorage.getItem("test"),q=!0}catch(g){q=!1}n.M=function(){q||fa("[Construct 2] Webstorage plugin: local storage is not supported on this platform.")};m.n=new function(){};m.H=new function(){};c.prototype.mo=function(b){if(q){var c=
{},f,a,e;f=0;for(a=localStorage.length;f<a;f++)e=localStorage.key(f),t?e.substr(0,k.length)===k&&(c[e.substr(k.length)]=localStorage.getItem(e)):c[e]=localStorage.getItem(e);b.Fb(JSON.stringify({c2dictionary:!0,data:c}))}else b.Fb("")};m.V=new c})();function xc(c){this.b=c}
(function(){function c(a){var b;if(!e[a])for(e[a]=Array(20),b=0;20>b;++b)e[a][b]=0;return e[a]}function m(a){var b;if(!d[a])for(d[a]=Array(20),b=0;20>b;++b)d[a][b]=0;return d[a]}function n(a,b){return b?4<=a?-1:a+16:16<=a?-1:a}function k(b){a[b.gamepad.index]=b.gamepad;u.trigger(xc.prototype.n.to,f)}function t(b){u.trigger(xc.prototype.n.uo,f);a[b.gamepad.index]=null}function q(){}var g=xc.prototype,b=!1;g.ja=function(a){this.ua=a;this.b=a.b;b=!!(navigator.getGamepads||navigator.webkitGetGamepads||
navigator.mozGetGamepads||navigator.gamepads||navigator.webkitGamepads||navigator.MozGamepads||window.cr_getGamepads)};g.ja.prototype.M=function(){};var u=null,f=null,a=Array(16),e=Array(16),d=Array(16),l="",B="",J=null,v={windows:{}};v.windows.firefox={};var h=[0,1,2,3,4,5,8,9,10,11],p=[0,1,[7,6],2,3,[14,15],[12,13]];v.windows.firefox.xbox360=function(a,b){return b?a>=p.length?-1:C(p[a])?p[a]+16:p[a]:a>=h.length?-1:h[a]};var V=[2,0,1,3,4,6,5,7,8,9],U=[0,1,2,3,[14,15],[12,13]];v.windows.firefox.logitechdualaction=
function(a,b){return b?a>=U.length?-1:C(U[a])?U[a]+16:U[a]:a>=V.length?-1:V[a]};g.aa=function(a){this.type=a;u=this.b=a.b;f=this};var w=g.aa.prototype;w.M=function(){this.mu=this.G[0];this.gk=0;var a=navigator.userAgent;l="windows";/mac/i.test(a)&&(l="mac");J=v[l];B="chrome";/firefox/i.test(a)&&(B="firefox");J&&(J=J[B]);window.addEventListener("webkitgamepadconnected",k,!1);window.addEventListener("webkitgamepaddisconnected",t,!1);window.addEventListener("MozGamepadConnected",k,!1);window.addEventListener("MozGamepadDisconnected",
t,!1);window.addEventListener("gamepadconnected",k,!1);window.addEventListener("gamepaddisconnected",t,!1);this.b.Qi(this);this.gh=[]};w.Ta=function(){this.gh.length=0;var b=null,f=!1;navigator.getGamepads?b=navigator.getGamepads():navigator.webkitGetGamepads?b=navigator.webkitGetGamepads():navigator.mozGetGamepads?b=navigator.mozGetGamepads():navigator.msGetGamepads?b=navigator.msGetGamepads():this.b.Vp&&window.cr_getGamepads?(b=window.cr_getGamepads(),f=!0):b=navigator.gamepads||navigator.webkitGamepads||
navigator.MozGamepads||a;if(b){var g,k,h,l,q,t,p;g=0;for(k=b.length;g<k;g++){var u=b[g];if(u){var v=c(g),w=m(g);l=g;h=c(l);l=m(l);q=void 0;for(q=0;20>q;++q)l[q]=h[q];f?h=n:J?(h="",l=u.id.toLowerCase(),-1<l.indexOf("xbox 360")?h="xbox360":-1<l.indexOf("logitech dual action")&&(h="logitechdualaction"),h=J[h]||n):h=n;q=h;h=0;for(l=u.buttons.length;h<l;h++)p="undefined"!==typeof u.buttons[h].value?u.buttons[h].value:u.buttons[h],t=q(h,!1,p),0<=t&&20>t&&(v[t]=100*p,50<=v[t]&&50>w[t]&&(this.gk=t));h=0;
for(l=u.axes.length;h<l;h++)p=u.axes[h],t=q(h,!0,p),C(t)?0<=t&&20>t&&(v[t]=100*p):(v[t[0]]=0,v[t[1]]=0,0>=p?v[t[0]]=Math.abs(100*p):v[t[1]]=Math.abs(100*p));this.gh.push(u)}else u=g,e[u]=null,d[u]=null}for(;20>g;++g)b=g,e[b]=null,d[b]=null}};w.zb=function(){return{lastButton:this.gk}};w.Lb=function(a){this.gk=a.lastButton};q.prototype.Lt=function(){return b};q.prototype.to=function(){return!0};q.prototype.uo=function(){return!0};q.prototype.oo=function(a,b){a=Math.floor(a);if(0>a||a>=this.gh.length)return!1;
var d=c(a);if(!d)return!1;if(d=50<=d[b])this.gk=b;return d};q.prototype.Bs=function(){return 0<this.gh.length};q.prototype.ms=function(a,b,d,e){a=Math.floor(a);b=Math.floor(b);if(0>a||a>=this.gh.length)return!1;if(a=c(a)){var f=a[b+16],g=0,g=0===b%2?a[b+16+1]:a[b+16-1];Math.sqrt(f*f+g*g)<=this.mu&&(f=0);return ec(f,d,e)}};g.n=new q;g.H=new function(){};g.V=new function(){}})();function yc(c){this.b=c}
(function(){function c(){}var m=yc.prototype;m.ja=function(c){this.behavior=c;this.b=c.b};m.ja.prototype.M=function(){};m.aa=function(c,m){this.type=c;this.behavior=c.behavior;this.k=m;this.b=c.b};var n=m.aa.prototype;n.M=function(){var c=this.G[0];this.jc=this.G[1];this.Nj=this.G[2];this.cu=0!==this.G[3];this.Kn=0!==this.G[4];this.J=Math.cos(this.k.q)*c;this.I=Math.sin(this.k.q)*c;this.Jf=this.k.x;this.Kf=this.k.y;this.Ic=this.k.q;this.jl=0;this.enabled=0!==this.G[5]};n.zb=function(){return{acc:this.jc,
g:this.Nj,dx:this.J,dy:this.I,lx:this.Jf,ly:this.Kf,lka:this.Ic,t:this.jl,e:this.enabled}};n.Lb=function(c){this.jc=c.acc;this.Nj=c.g;this.J=c.dx;this.I=c.dy;this.Jf=c.lx;this.Kf=c.ly;this.Ic=c.lka;this.jl=c.t;this.enabled=c.e};n.Ta=function(){if(this.enabled){var c=this.b.pg(this.k),m,n;this.k.q!==this.Ic&&(this.Kn&&(m=Sa(0,0,this.J,this.I),this.J=Math.cos(this.k.q)*m,this.I=Math.sin(this.k.q)*m),this.Ic=this.k.q);0!==this.jc&&(m=Sa(0,0,this.J,this.I),n=0===this.J&&0===this.I?this.k.q:La(0,0,this.J,
this.I),m+=this.jc*c,0>m&&(m=0),this.J=Math.cos(n)*m,this.I=Math.sin(n)*m);0!==this.Nj&&(this.I+=this.Nj*c);this.Jf=this.k.x;this.Kf=this.k.y;if(0!==this.J||0!==this.I)if(this.k.x+=this.J*c,this.k.y+=this.I*c,this.jl+=Sa(0,0,this.J*c,this.I*c),this.Kn&&(this.k.q=La(0,0,this.J,this.I),this.k.W(),this.Ic=this.k.q),this.k.W(),this.cu&&(m=this.b.qd(this.k)))this.b.vi(this.k,m),m=Sa(0,0,this.J,this.I),n=this.b.eu(this.k,this.Jf,this.Kf),this.J=Math.cos(n)*m,this.I=Math.sin(n)*m,this.k.x+=this.J*c,this.k.y+=
this.I*c,this.k.W(),this.Kn&&(this.Ic=this.k.q=n,this.k.W()),this.b.wn(this.k,this.J/m,this.I/m,Math.max(2.5*m*c,30))||this.b.kr(this.k,100)}};m.n=new function(){};c.prototype.nt=function(c){c=R(c);var m=Sa(0,0,this.J,this.I);this.J=Math.cos(c)*m;this.I=Math.sin(c)*m};m.H=new c;m.V=new function(){}})();function zc(c){this.b=c}
(function(){function c(){}var m=zc.prototype;m.ja=function(c){this.behavior=c;this.b=c.b};m.ja.prototype.M=function(){};m.aa=function(c,m){this.type=c;this.behavior=c.behavior;this.k=m;this.b=c.b;this.Yk=this.Xk=this.Wk=this.Zk=this.wm=this.yi=this.Vh=this.qh=this.Si=!1;this.Mm=this.Lm=this.Km=this.Om=-1;this.I=this.J=0};var n=m.aa.prototype;n.M=function(){this.hi=this.G[0];this.jc=this.G[1];this.yd=this.G[2];this.Vl=this.G[3];this.Dl=this.G[4];this.nu=1===this.G[5];this.enabled=0!==this.G[6];this.nu&&
!this.b.Na&&(jQuery(document).keydown(function(c){return function(m){c.gn(m)}}(this)),jQuery(document).keyup(function(c){return function(m){c.hn(m)}}(this)))};n.zb=function(){return{dx:this.J,dy:this.I,enabled:this.enabled,maxspeed:this.hi,acc:this.jc,dec:this.yd,ignoreInput:this.wm}};n.Lb=function(c){this.J=c.dx;this.I=c.dy;this.enabled=c.enabled;this.hi=c.maxspeed;this.jc=c.acc;this.yd=c.dec;this.wm=c.ignoreInput;this.Yk=this.Xk=this.Wk=this.Zk=this.yi=this.Vh=this.qh=this.Si=!1;this.Mm=this.Lm=
this.Km=this.Om=-1};n.gn=function(c){var m=this.b.pe;switch(c.which){case 37:c.preventDefault();this.Lm<m&&(this.Vh=!0);break;case 38:c.preventDefault();this.Om<m&&(this.Si=!0);break;case 39:c.preventDefault();this.Mm<m&&(this.yi=!0);break;case 40:c.preventDefault(),this.Km<m&&(this.qh=!0)}};n.hn=function(c){var m=this.b.pe;switch(c.which){case 37:c.preventDefault();this.Vh=!1;this.Lm=m;break;case 38:c.preventDefault();this.Si=!1;this.Om=m;break;case 39:c.preventDefault();this.yi=!1;this.Mm=m;break;
case 40:c.preventDefault(),this.qh=!1,this.Km=m}};n.Ye=function(){this.yi=this.Vh=this.qh=this.Si=!1};n.Ta=function(){var c=this.b.pg(this.k),m=this.Vh||this.Xk,n=this.yi||this.Yk,g=this.Si||this.Zk,b=this.qh||this.Wk;this.Wk=this.Zk=this.Yk=this.Xk=!1;if(this.enabled){var u=this.b.qd(this.k);if(u&&(this.b.vi(this.k,u),!this.b.kr(this.k)))return;this.wm&&(b=g=n=m=!1);0===this.Vl?n=m=!1:1===this.Vl&&(b=g=!1);2===this.Vl&&(g||b)&&(n=m=!1);m==n&&(0>this.J?(this.J+=this.yd*c,0<this.J&&(this.J=0)):0<this.J&&
(this.J-=this.yd*c,0>this.J&&(this.J=0)));g==b&&(0>this.I?(this.I+=this.yd*c,0<this.I&&(this.I=0)):0<this.I&&(this.I-=this.yd*c,0>this.I&&(this.I=0)));m&&!n&&(this.J=0<this.J?this.J-(this.jc+this.yd)*c:this.J-this.jc*c);n&&!m&&(this.J=0>this.J?this.J+(this.jc+this.yd)*c:this.J+this.jc*c);g&&!b&&(this.I=0<this.I?this.I-(this.jc+this.yd)*c:this.I-this.jc*c);b&&!g&&(this.I=0>this.I?this.I+(this.jc+this.yd)*c:this.I+this.jc*c);if(0!==this.J||0!==this.I){Math.sqrt(this.J*this.J+this.I*this.I)>this.hi&&
(u=Math.atan2(this.I,this.J),this.J=this.hi*Math.cos(u),this.I=this.hi*Math.sin(u));n=this.k.x;g=this.k.y;m=this.k.q;this.k.x+=this.J*c;this.k.W();if(u=this.b.qd(this.k))this.b.wn(this.k,0>this.J?1:-1,0,Math.abs(Math.floor(this.J*c)))||(this.k.x=n),this.J=0,this.k.W(),this.b.vi(this.k,u);this.k.y+=this.I*c;this.k.W();if(u=this.b.qd(this.k))this.b.wn(this.k,0,0>this.I?1:-1,Math.abs(Math.floor(this.I*c)))||(this.k.y=g),this.I=0,this.k.W(),this.b.vi(this.k,u);c=jb(this.J);u=jb(this.I);0===c&&0===u||
!this.k.type.ua.yw||(1===this.Dl?this.k.q=Ka(90*Math.round(Fa(Math.atan2(u,c))/90)):2===this.Dl?this.k.q=Ka(45*Math.round(Fa(Math.atan2(u,c))/45)):3===this.Dl&&(this.k.q=Math.atan2(u,c)));this.k.W();this.k.q!=m&&(u=this.b.qd(this.k))&&(this.k.q=m,this.k.W(),this.b.vi(this.k,u))}}};m.n=new function(){};c.prototype.Gt=function(c){switch(c){case 0:this.Xk=!0;break;case 1:this.Yk=!0;break;case 2:this.Zk=!0;break;case 3:this.Wk=!0}};m.H=new c;m.V=new function(){}})();function Ac(c){this.b=c}
(function(){function c(){}var m=Ac.prototype;m.ja=function(c){this.behavior=c;this.b=c.b};m.ja.prototype.M=function(){};m.aa=function(c,m){this.type=c;this.behavior=c.behavior;this.k=m;this.b=c.b};var n=m.aa.prototype;n.M=function(){this.xb=null;this.Ck=-1;this.mode=this.Ic=this.gl=this.Lg=this.je=this.oi=0;var c=this;this.Xc||(this.Dq=function(m){c.en(m)});this.b.Al(this.Dq)};n.zb=function(){return{uid:this.xb?this.xb.uid:-1,pa:this.oi,pd:this.je,msa:this.Lg,tsa:this.gl,lka:this.Ic,m:this.mode}};
n.Lb=function(c){this.Ck=c.uid;this.oi=c.pa;this.je=c.pd;this.Lg=c.msa;this.gl=c.tsa;this.Ic=c.lka;this.mode=c.m};n.vd=function(){-1===this.Ck?this.xb=null:this.xb=this.b.yh(this.Ck);this.Ck=-1};n.en=function(c){this.xb==c&&(this.xb=null)};n.Rf=function(){this.xb=null;this.b.qx(this.Dq)};n.Ta=function(){};n.Zg=function(){if(this.xb){this.Ic!==this.k.q&&(this.Lg=Ha(this.Lg+(this.k.q-this.Ic)));var c=this.k.x,m=this.k.y;if(3===this.mode||4===this.mode){var n=Sa(this.k.x,this.k.y,this.xb.x,this.xb.y);
if(n>this.je||4===this.mode&&n<this.je)m=La(this.xb.x,this.xb.y,this.k.x,this.k.y),c=this.xb.x+Math.cos(m)*this.je,m=this.xb.y+Math.sin(m)*this.je}else c=this.xb.x+Math.cos(this.xb.q+this.oi)*this.je,m=this.xb.y+Math.sin(this.xb.q+this.oi)*this.je;this.Ic=n=Ha(this.Lg+(this.xb.q-this.gl));0!==this.mode&&1!==this.mode&&3!==this.mode&&4!==this.mode||this.k.x===c&&this.k.y===m||(this.k.x=c,this.k.y=m,this.k.W());0!==this.mode&&2!==this.mode||this.k.q===n||(this.k.q=n,this.k.W())}};m.n=new function(){};
c.prototype.it=function(c,m){if(c){var n=c.Bp(this.k);n&&(this.xb=n,this.oi=La(n.x,n.y,this.k.x,this.k.y)-n.q,this.je=Sa(n.x,n.y,this.k.x,this.k.y),this.Ic=this.Lg=this.k.q,this.gl=n.q,this.mode=m)}};m.H=new c;m.V=new function(){}})();function Cc(c){this.b=c}
(function(){function c(){}var m=Cc.prototype;m.ja=function(c){this.behavior=c;this.b=c.b};m.ja.prototype.M=function(){};m.aa=function(c,b){this.type=c;this.behavior=c.behavior;this.k=b;this.b=c.b;this.$a=0};var n=m.aa.prototype,k=2*Math.PI,t=Math.PI/2,q=3*Math.PI/2;n.M=function(){this.Qb=1===this.G[0];this.Jg=this.G[1];this.ko=this.G[2];this.ie=this.G[3];this.ie+=Math.random()*this.G[4];0===this.ie?this.$a=0:(this.$a=this.G[5]/this.ie*k,this.$a+=Math.random()*this.G[6]/this.ie*k);this.ec=this.G[7];
this.ec+=Math.random()*this.G[8];this.si=this.Bf=this.na=0;5===this.Jg&&(this.ec=R(this.ec));this.init()};n.zb=function(){return{i:this.$a,a:this.Qb,mv:this.Jg,w:this.ko,p:this.ie,mag:this.ec,iv:this.na,iv2:this.Bf,r:this.si,lkv:this.xc,lkv2:this.Th}};n.Lb=function(c){this.$a=c.i;this.Qb=c.a;this.Jg=c.mv;this.ko=c.w;this.ie=c.p;this.ec=c.mag;this.na=c.iv;this.Bf=c.iv2||0;this.si=c.r;this.xc=c.lkv;this.Th=c.lkv2||0};n.init=function(){switch(this.Jg){case 0:this.na=this.k.x;break;case 1:this.na=this.k.y;
break;case 2:this.na=this.k.width;this.si=this.k.height/this.k.width;break;case 3:this.na=this.k.width;break;case 4:this.na=this.k.height;break;case 5:this.na=this.k.q;break;case 6:this.na=this.k.opacity;break;case 7:this.na=0;break;case 8:this.na=this.k.x,this.Bf=this.k.y}this.xc=this.na;this.Th=this.Bf};n.Nd=function(c){c=c%k;switch(this.ko){case 0:return Math.sin(c);case 1:return c<=t?c/t:c<=q?1-2*(c-t)/Math.PI:(c-q)/t-1;case 2:return 2*c/k-1;case 3:return-2*c/k+1;case 4:return c<Math.PI?-1:1}return 0};
n.Ta=function(){var c=this.b.pg(this.k);this.Qb&&0!==c&&(0===this.ie?this.$a=0:(this.$a+=c/this.ie*k,this.$a=this.$a%k),this.Sx())};n.Sx=function(){switch(this.Jg){case 0:this.k.x!==this.xc&&(this.na+=this.k.x-this.xc);this.k.x=this.na+this.Nd(this.$a)*this.ec;this.xc=this.k.x;break;case 1:this.k.y!==this.xc&&(this.na+=this.k.y-this.xc);this.k.y=this.na+this.Nd(this.$a)*this.ec;this.xc=this.k.y;break;case 2:this.k.width=this.na+this.Nd(this.$a)*this.ec;this.k.height=this.k.width*this.si;break;case 3:this.k.width=
this.na+this.Nd(this.$a)*this.ec;break;case 4:this.k.height=this.na+this.Nd(this.$a)*this.ec;break;case 5:this.k.q!==this.xc&&(this.na=Ha(this.na+(this.k.q-this.xc)));this.k.q=Ha(this.na+this.Nd(this.$a)*this.ec);this.xc=this.k.q;break;case 6:this.k.opacity=this.na+this.Nd(this.$a)*this.ec/100;0>this.k.opacity?this.k.opacity=0:1<this.k.opacity&&(this.k.opacity=1);break;case 8:this.k.x!==this.xc&&(this.na+=this.k.x-this.xc),this.k.y!==this.Th&&(this.Bf+=this.k.y-this.Th),this.k.x=this.na+Math.cos(this.k.q)*
this.Nd(this.$a)*this.ec,this.k.y=this.Bf+Math.sin(this.k.q)*this.Nd(this.$a)*this.ec,this.xc=this.k.x,this.Th=this.k.y}this.k.W()};n.Pq=function(c,b){switch(this.Jg){case 2:this.na*=b.width/c.width;this.si=b.height/b.width;break;case 3:this.na*=b.width/c.width;break;case 4:this.na*=b.height/c.height}};m.n=new function(){};m.H=new function(){};c.prototype.Ot=function(c){c.D(this.Nd(this.$a)*this.ec)};m.V=new c})();function Hc(c){this.b=c}
(function(){function c(){}function m(){}var n=Hc.prototype;n.ja=function(c){this.behavior=c;this.b=c.b};n.ja.prototype.M=function(){};n.aa=function(c,k){this.type=c;this.behavior=c.behavior;this.k=k;this.b=c.b};var k=n.aa.prototype;k.M=function(){this.Wb={}};k.Rf=function(){Wa(this.Wb)};k.zb=function(){var c={},k,g;for(k in this.Wb)this.Wb.hasOwnProperty(k)&&(g=this.Wb[k],c[k]={c:g.current.P,t:g.total.P,d:g.duration,r:g.zn});return c};k.Lb=function(c){this.Wb={};for(var k in c)c.hasOwnProperty(k)&&
(this.Wb[k]={current:new cb,total:new cb,duration:c[k].d,zn:c[k].r},this.Wb[k].current.P=c[k].c,this.Wb[k].total.P=c[k].t)};k.Ta=function(){var c=this.b.pg(this.k),k,g;for(k in this.Wb)this.Wb.hasOwnProperty(k)&&(g=this.Wb[k],g.current.add(c),g.total.add(c))};k.Zg=function(){var c,k;for(c in this.Wb)this.Wb.hasOwnProperty(c)&&(k=this.Wb[c],k.current.P>=k.duration&&(k.zn?k.current.P-=k.duration:delete this.Wb[c]))};c.prototype.et=function(c){c=c.toLowerCase();return(c=this.Wb[c])?c.current.P>=c.duration:
!1};n.n=new c;m.prototype.Jt=function(c,k,g){this.Wb[g.toLowerCase()]={current:new cb,total:new cb,duration:c,zn:1===k}};n.H=new m;n.V=new function(){}})();function Ic(c){this.b=c}
(function(){var c=Ic.prototype;c.ja=function(c){this.behavior=c;this.b=c.b};c.ja.prototype.M=function(){};c.aa=function(c,n){this.type=c;this.behavior=c.behavior;this.k=n;this.b=c.b};c=c.aa.prototype;c.M=function(){};c.Ta=function(){this.k.Ea();var c=this.k.Ka,n=this.k.A.bb;(0>c.right||0>c.bottom||c.left>n.width||c.top>n.height)&&this.b.xe(this.k)}})();function Jc(c){this.b=c;this.On=this.Vk=this.Hi=this.Nn=0}
(function(){var c=Jc.prototype;c.ja=function(c){this.behavior=c;this.b=c.b};c.ja.prototype.M=function(){};c.aa=function(c,k){this.type=c;this.behavior=c.behavior;this.k=k;this.b=c.b};var m=c.aa.prototype;m.M=function(){this.enabled=0!==this.G[0]};m.zb=function(){return{smg:this.behavior.Nn,ss:this.behavior.Hi,se:this.behavior.Vk,smd:this.behavior.On}};m.Lb=function(c){this.behavior.Nn=c.smg;this.behavior.Hi=c.ss;this.behavior.Vk=c.se;this.behavior.On=c.smd};m.Ta=function(){};m.Zg=function(){if(this.enabled){var c=
this.behavior.sk.te(),k=0,m=0,q,g,b,u=0;q=0;for(g=c.length;q<g;q++){a:{b=c[q];for(var f=void 0,a=void 0,e=void 0,f=0,a=b.U.length;f<a;++f)if(e=b.U[f],e.behavior instanceof Jc){b=e;break a}b=null}b&&b.enabled&&(k+=c[q].x,m+=c[q].y,++u)}c=this.k.A.bb;g=this.b.qb.P;b=q=0;g>=this.behavior.Hi&&g<this.behavior.Vk&&(q=this.behavior.Nn*Math.min(this.b.Yf,1),0===this.behavior.On&&(q*=1-(g-this.behavior.Hi)/(this.behavior.Vk-this.behavior.Hi)),g=Math.random()*Math.PI*2,b=Math.random()*q,q=Math.cos(g)*b,b*=
Math.sin(g));c.In(k/u+q);c.Jn(m/u+b)}};c.H=new function(){}})();
function nc(){return[qc,pc,oc,sc,xc,rc,Y,tc,wc,uc,vc,zc,Jc,Hc,Ac,yc,Ic,Cc,W.prototype.n.Fs,Y.prototype.n.qs,Y.prototype.V.yl,Y.prototype.V.Qt,Y.prototype.H.xt,Y.prototype.V.zl,Y.prototype.n.rs,Y.prototype.V.Cs,W.prototype.V.Cw,W.prototype.n.ys,Y.prototype.H.po,W.prototype.n.ws,Y.prototype.H.tt,W.prototype.n.ls,Y.prototype.V.ts,Y.prototype.H.vs,W.prototype.n.ps,W.prototype.V.Fw,Y.prototype.H.Et,W.prototype.n.xs,tc.prototype.H.Bt,W.prototype.V.by,W.prototype.n.zo,pc.prototype.H.Play,oc.prototype.n.$i,
oc.prototype.n.os,W.prototype.H.us,W.prototype.V.random,Y.prototype.H.pt,Y.prototype.V.gs,W.prototype.V.cp,W.prototype.H.qt,W.prototype.H.Pt,W.prototype.H.kt,W.prototype.H.zs,Y.prototype.H.Ft,W.prototype.V.Gw,W.prototype.V.Me,Hc.prototype.n.et,W.prototype.H.Ct,Y.prototype.H.At,Y.prototype.H.yt,Ac.prototype.H.it,Y.prototype.H.mt,Hc.prototype.H.Jt,W.prototype.V.Jw,W.prototype.n.no,W.prototype.n.jt,oc.prototype.H.CallFunction,Y.prototype.n.Ns,Y.prototype.n.Gs,W.prototype.n.Nt,Y.prototype.H.Kt,Y.prototype.n.ns,
Y.prototype.H.ot,Y.prototype.n.qo,W.prototype.H.cs,xc.prototype.n.ms,zc.prototype.H.Gt,W.prototype.V.Dw,Y.prototype.H.Ht,yc.prototype.H.nt,Y.prototype.V.ds,xc.prototype.n.oo,W.prototype.H.wt,W.prototype.V.Ew,W.prototype.H.lt,W.prototype.n.ht,W.prototype.V.pu,Y.prototype.H.Dt,W.prototype.V.hu,rc.prototype.n.vo,pc.prototype.H.zt,tc.prototype.H.po,W.prototype.n.yo,Cc.prototype.V.Ot,W.prototype.H.ut,xc.prototype.n.Bs,W.prototype.H.As,xc.prototype.n.uo,xc.prototype.n.to,xc.prototype.n.Lt]};
