// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var ba,ca,da,fa,ga,ha,ka,la,J,ma,na,oa,pa,qa,ra,L,ta,ua,R,wa,xa,ya,za,Ba,Ca,Da,U,Ea,Fa,Ga,Ha,Ia,Ja,La,Ma,Na,Oa,Pa,Qa,Ra,Sa,Ta,Ua,Va,Wa,Xa,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,rb,sb,tb,ub,vb,wb,xb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,Xb,Yb,Zb,$b,ac={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(h){return h.__proto__}:function(h){return h.constructor.prototype});
(function(){function h(k,d,a,g){this.set(k,d,a,g)}function l(){this.Jb=this.Ib=this.Lb=this.Kb=this.Rb=this.Qb=this.wb=this.ub=0}function f(k,d,a,g){k<d?a<g?(z=k<a?k:a,C=d>g?d:g):(z=k<g?k:g,C=d>a?d:a):a<g?(z=d<a?d:a,C=k>g?k:g):(z=d<g?d:g,C=k>a?k:a)}function q(){this.items=this.Ad=null;this.Qg=0;d&&(this.Ad=new Set);this.mh=[];this.Se=!0}function t(d){k[x++]=d}function a(){this.qa=this.fl=this.y=this.Ql=0}function c(d){this.Ga=[];this.lj=this.nj=this.oj=this.mj=0;this.Ni(d)}function b(d,k){this.Ab=
d;this.zb=k;this.cells={}}function e(d,k){this.Ab=d;this.zb=k;this.cells={}}function w(d,k,a){var g;return B.length?(g=B.pop(),g.Fm=d,g.x=k,g.y=a,g):new ca(d,k,a)}function g(d,k,a){this.Fm=d;this.x=k;this.y=a;this.xb=new da}function m(d,k,a){var g;return K.length?(g=K.pop(),g.Fm=d,g.x=k,g.y=a,g):new fa(d,k,a)}function r(d,k,a){this.Fm=d;this.x=k;this.y=a;this.xb=[];this.Pg=!0;this.Pd=new da;this.sh=!1}function p(d,k){return d.Ed-k.Ed}ga=function(d){window.console&&window.console.log&&window.console.log(d)};
ha=function(d){window.console&&window.console.error&&window.console.error(d)};ba=function(d){return d};ka=function(d){return"undefined"===typeof d};la=function(d){return"number"===typeof d};J=function(d){return"string"===typeof d};ma=function(d){return 0<d&&0===(d-1&d)};na=function(d){--d;for(var k=1;32>k;k<<=1)d=d|d>>k;return d+1};oa=function(d){return 0>d?-d:d};pa=function(d,k){return d>k?d:k};qa=function(d,k){return d<k?d:k};ra=Math.PI;L=function(d){return 0<=d?d|0:(d|0)-1};ta=function(d){var k=
d|0;return k===d?k:k+1};ua=function(d,k,a,g,x,b,c,n){var B,e,m,p;d<a?(e=d,B=a):(e=a,B=d);x<c?(p=x,m=c):(p=c,m=x);if(B<p||e>m)return!1;k<g?(e=k,B=g):(e=g,B=k);b<n?(p=b,m=n):(p=n,m=b);if(B<p||e>m)return!1;B=x-d+c-a;e=b-k+n-g;d=a-d;k=g-k;x=c-x;b=n-b;n=oa(k*x-b*d);return oa(x*e-b*B)>n?!1:oa(d*e-k*B)<=n};h.prototype.set=function(d,k,a,g){this.left=d;this.top=k;this.right=a;this.bottom=g};h.prototype.Bh=function(d){this.left=d.left;this.top=d.top;this.right=d.right;this.bottom=d.bottom};h.prototype.width=
function(){return this.right-this.left};h.prototype.height=function(){return this.bottom-this.top};h.prototype.offset=function(d,k){this.left+=d;this.top+=k;this.right+=d;this.bottom+=k;return this};h.prototype.normalize=function(){var d=0;this.left>this.right&&(d=this.left,this.left=this.right,this.right=d);this.top>this.bottom&&(d=this.top,this.top=this.bottom,this.bottom=d)};h.prototype.Jw=function(d){return!(d.right<this.left||d.bottom<this.top||d.left>this.right||d.top>this.bottom)};h.prototype.Kw=
function(d,k,a){return!(d.right+k<this.left||d.bottom+a<this.top||d.left+k>this.right||d.top+a>this.bottom)};h.prototype.Ub=function(d,k){return d>=this.left&&d<=this.right&&k>=this.top&&k<=this.bottom};h.prototype.Fj=function(d){return this.left===d.left&&this.top===d.top&&this.right===d.right&&this.bottom===d.bottom};R=h;l.prototype.Mi=function(d){this.ub=d.left;this.wb=d.top;this.Qb=d.right;this.Rb=d.top;this.Kb=d.right;this.Lb=d.bottom;this.Ib=d.left;this.Jb=d.bottom};l.prototype.Dr=function(d,
k){if(0===k)this.Mi(d);else{var a=Math.sin(k),g=Math.cos(k),x=d.left*a,b=d.top*a,c=d.right*a,a=d.bottom*a,n=d.left*g,B=d.top*g,e=d.right*g,g=d.bottom*g;this.ub=n-b;this.wb=B+x;this.Qb=e-b;this.Rb=B+c;this.Kb=e-a;this.Lb=g+c;this.Ib=n-a;this.Jb=g+x}};l.prototype.offset=function(d,k){this.ub+=d;this.wb+=k;this.Qb+=d;this.Rb+=k;this.Kb+=d;this.Lb+=k;this.Ib+=d;this.Jb+=k;return this};var z=0,C=0;l.prototype.rp=function(d){f(this.ub,this.Qb,this.Kb,this.Ib);d.left=z;d.right=C;f(this.wb,this.Rb,this.Lb,
this.Jb);d.top=z;d.bottom=C};l.prototype.Ub=function(d,k){var a=this.ub,g=this.wb,x=this.Qb-a,b=this.Rb-g,c=this.Kb-a,n=this.Lb-g,B=d-a,e=k-g,m=x*x+b*b,p=x*c+b*n,b=x*B+b*e,v=c*c+n*n,K=c*B+n*e,f=1/(m*v-p*p),x=(v*b-p*K)*f,m=(m*K-p*b)*f;if(0<=x&&0<m&&1>x+m)return!0;x=this.Ib-a;b=this.Jb-g;m=x*x+b*b;p=x*c+b*n;b=x*B+b*e;f=1/(m*v-p*p);x=(v*b-p*K)*f;m=(m*K-p*b)*f;return 0<=x&&0<m&&1>x+m};l.prototype.Pe=function(d,k){if(k)switch(d){case 0:return this.ub;case 1:return this.Qb;case 2:return this.Kb;case 3:return this.Ib;
case 4:return this.ub;default:return this.ub}else switch(d){case 0:return this.wb;case 1:return this.Rb;case 2:return this.Lb;case 3:return this.Jb;case 4:return this.wb;default:return this.wb}};l.prototype.Lq=function(){return(this.ub+this.Qb+this.Kb+this.Ib)/4};l.prototype.Mq=function(){return(this.wb+this.Rb+this.Lb+this.Jb)/4};l.prototype.bq=function(d){var k=d.Lq(),a=d.Mq();if(this.Ub(k,a))return!0;k=this.Lq();a=this.Mq();if(d.Ub(k,a))return!0;var g,x,b,c,n,B,e,m;for(e=0;4>e;e++)for(m=0;4>m;m++)if(k=
this.Pe(e,!0),a=this.Pe(e,!1),g=this.Pe(e+1,!0),x=this.Pe(e+1,!1),b=d.Pe(m,!0),c=d.Pe(m,!1),n=d.Pe(m+1,!0),B=d.Pe(m+1,!1),ua(k,a,g,x,b,c,n,B))return!0;return!1};wa=l;xa=function(d,k){for(var a in k)k.hasOwnProperty(a)&&(d[a]=k[a]);return d};ya=function(d,k){var a,g;k=L(k);if(!(0>k||k>=d.length)){a=k;for(g=d.length-1;a<g;a++)d[a]=d[a+1];d.length=g}};za=function(d,k){d.length=k.length;var a,g;a=0;for(g=k.length;a<g;a++)d[a]=k[a]};Ba=function(d,k){d.push.apply(d,k)};Ca=function(d,k){var a,g;a=0;for(g=
d.length;a<g;++a)if(d[a]===k)return a;return-1};Da=function(d,k){var a=Ca(d,k);-1!==a&&ya(d,a)};U=function(d){return d/(180/ra)};Ea=function(d){return 180/ra*d};Fa=function(d){d%=360;0>d&&(d+=360);return d};Ga=function(d){d%=2*ra;0>d&&(d+=2*ra);return d};Ha=function(d){return Fa(Ea(d))};Ia=function(d){return Ga(U(d))};Ja=function(d,k,a,g){return Math.atan2(g-k,a-d)};La=function(d,k){if(d===k)return 0;var a=Math.sin(d),g=Math.cos(d),x=Math.sin(k),b=Math.cos(k),a=a*x+g*b;return 1<=a?0:-1>=a?ra:Math.acos(a)};
Ma=function(d,k,a){var g=Math.sin(d),x=Math.cos(d),b=Math.sin(k),c=Math.cos(k);return Math.acos(g*b+x*c)>a?0<x*b-g*c?Ga(d+a):Ga(d-a):Ga(k)};Na=function(d,k){var a=Math.sin(d),g=Math.cos(d),x=Math.sin(k),b=Math.cos(k);return 0>=g*x-a*b};Oa=function(d,k,a,g,x,b){if(0===a)return b?d:k;var c=Math.sin(a);a=Math.cos(a);d-=g;k-=x;var n=d*c;d=d*a-k*c;k=k*a+n;return b?d+g:k+x};Pa=function(d,k,a,g){d=a-d;k=g-k;return Math.sqrt(d*d+k*k)};Qa=function(d,k){return!d!==!k};Ra=function(d){for(var k in d)if(d.hasOwnProperty(k))return!0;
return!1};Sa=function(d){for(var k in d)d.hasOwnProperty(k)&&delete d[k]};var u=+new Date;Ta=function(){if("undefined"!==typeof window.performance){var d=window.performance;if("undefined"!==typeof d.now)return d.now();if("undefined"!==typeof d.webkitNow)return d.webkitNow();if("undefined"!==typeof d.mozNow)return d.mozNow();if("undefined"!==typeof d.msNow)return d.msNow()}return Date.now()-u};var n=!1,v=n=!1,A=!1;"undefined"!==typeof window&&(n=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),
n=!n&&/safari/i.test(navigator.userAgent),v=/(iphone|ipod|ipad)/i.test(navigator.userAgent),A=window.c2ejecta);var d=!n&&!A&&!v&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;q.prototype.contains=function(k){return this.le()?!1:d?this.Ad.has(k):this.items&&this.items.hasOwnProperty(k)};q.prototype.add=function(k){if(d)this.Ad.has(k)||(this.Ad.add(k),this.Se=!1);else{var a=k.toString(),g=this.items;g?g.hasOwnProperty(a)||(g[a]=k,this.Qg++,this.Se=!1):(this.items={},this.items[a]=
k,this.Qg=1,this.Se=!1)}};q.prototype.remove=function(k){if(!this.le())if(d)this.Ad.has(k)&&(this.Ad["delete"](k),this.Se=!1);else if(this.items){k=k.toString();var a=this.items;a.hasOwnProperty(k)&&(delete a[k],this.Qg--,this.Se=!1)}};q.prototype.clear=function(){this.le()||(d?this.Ad.clear():(this.items=null,this.Qg=0),this.mh.length=0,this.Se=!0)};q.prototype.le=function(){return 0===this.count()};q.prototype.count=function(){return d?this.Ad.size:this.Qg};var k=null,x=0;q.prototype.ey=function(){if(!this.Se){if(d)this.mh.length=
this.Ad.size,k=this.mh,x=0,this.Ad.forEach(t),k=null,x=0;else{var a=this.mh;a.length=this.Qg;var g,b=0,c=this.items;if(c)for(g in c)c.hasOwnProperty(g)&&(a[b++]=c[g])}this.Se=!0}};q.prototype.He=function(){this.ey();return this.mh};da=q;new da;Ua=function(k,a){d?Va(k,a.Ad):Wa(k,a.He())};Va=function(d,k){var a,g,x,b;g=a=0;for(x=d.length;a<x;++a)b=d[a],k.has(b)||(d[g++]=b);d.length=g};Wa=function(d,k){var a,g,x,b;g=a=0;for(x=d.length;a<x;++a)b=d[a],-1===Ca(k,b)&&(d[g++]=b);d.length=g};a.prototype.add=
function(d){this.y=d-this.Ql;this.fl=this.qa+this.y;this.Ql=this.fl-this.qa-this.y;this.qa=this.fl};a.prototype.reset=function(){this.qa=this.fl=this.y=this.Ql=0};Xa=a;bb=function(d){return d.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};c.prototype.Ni=function(d){this.pr=d;this.Ac=d.length/2;this.Ga.length=d.length;this.qj=this.rj=-1;this.up=0};c.prototype.Mg=function(){return!this.pr.length};c.prototype.la=function(){for(var d=this.Ga,k=d[0],a=k,g=d[1],x=g,b,c,n=1,B=this.Ac;n<B;++n)c=2*n,b=d[c],c=
d[c+1],b<k&&(k=b),b>a&&(a=b),c<g&&(g=c),c>x&&(x=c);this.mj=k;this.nj=a;this.oj=g;this.lj=x};c.prototype.Mi=function(d,k,a){this.Ga.length=8;this.Ac=4;var g=this.Ga;g[0]=d.left-k;g[1]=d.top-a;g[2]=d.right-k;g[3]=d.top-a;g[4]=d.right-k;g[5]=d.bottom-a;g[6]=d.left-k;g[7]=d.bottom-a;this.rj=d.right-d.left;this.qj=d.bottom-d.top;this.la()};c.prototype.hh=function(d,k,a,g,x){this.Ga.length=8;this.Ac=4;var b=this.Ga;b[0]=d.ub-k;b[1]=d.wb-a;b[2]=d.Qb-k;b[3]=d.Rb-a;b[4]=d.Kb-k;b[5]=d.Lb-a;b[6]=d.Ib-k;b[7]=
d.Jb-a;this.rj=g;this.qj=x;this.la()};c.prototype.Cr=function(d){this.Ac=d.Ac;za(this.Ga,d.Ga);this.mj=d.mj;this.oj-d.oj;this.nj=d.nj;this.lj=d.lj};c.prototype.Ff=function(d,k,a){if(this.rj!==d||this.qj!==k||this.up!==a){this.rj=d;this.qj=k;this.up=a;var g,x,b,c,n,B=0,e=1,m=this.pr,p=this.Ga;0!==a&&(B=Math.sin(a),e=Math.cos(a));a=0;for(b=this.Ac;a<b;a++)g=2*a,x=g+1,c=m[g]*d,n=m[x]*k,p[g]=c*e-n*B,p[x]=n*e+c*B;this.la()}};c.prototype.Ub=function(d,k){var a=this.Ga;if(d===a[0]&&k===a[1])return!0;var g,
x,b,c=this.Ac,n=this.mj-110,B=this.oj-101,e=this.nj+131,m=this.lj+120,p,v,K=0,f=0;for(g=0;g<c;g++)x=2*g,b=(g+1)%c*2,p=a[x],x=a[x+1],v=a[b],b=a[b+1],ua(n,B,d,k,p,x,v,b)&&K++,ua(e,m,d,k,p,x,v,b)&&f++;return 1===K%2||1===f%2};c.prototype.Th=function(d,k,a){var g=d.Ga,x=this.Ga;if(this.Ub(g[0]+k,g[1]+a)||d.Ub(x[0]-k,x[1]-a))return!0;var b,c,n,B,e,m,p,v,K,f,w,u;b=0;for(B=this.Ac;b<B;b++)for(c=2*b,n=(b+1)%B*2,v=x[c],c=x[c+1],K=x[n],f=x[n+1],n=0,p=d.Ac;n<p;n++)if(e=2*n,m=(n+1)%p*2,w=g[e]+k,e=g[e+1]+a,u=
g[m]+k,m=g[m+1]+a,ua(v,c,K,f,w,e,u,m))return!0;return!1};c.prototype.ax=function(d){var k,a,g;k=0;for(a=this.Ac;k<a;++k)g=2*k,this.Ga[g]=2*d-this.Ga[g]};c.prototype.Qv=function(d){var k,a,g;k=0;for(a=this.Ac;k<a;++k)g=2*k+1,this.Ga[g]=2*d-this.Ga[g]};c.prototype.Pu=function(){var d,k,a,g,x;d=0;for(k=this.Ac;d<k;++d)a=2*d,g=a+1,x=this.Ga[a],this.Ga[a]=this.Ga[g],this.Ga[g]=x};cb=c;b.prototype.Ye=function(d,k,a){var g;g=this.cells[d];return g?(g=g[k])?g:a?(g=w(this,d,k),this.cells[d][k]=g):null:a?(g=
w(this,d,k),this.cells[d]={},this.cells[d][k]=g):null};b.prototype.Fc=function(d){return L(d/this.Ab)};b.prototype.Gc=function(d){return L(d/this.zb)};b.prototype.update=function(d,k,a){var g,x,b,c,n;if(k)for(g=k.left,x=k.right;g<=x;++g)for(b=k.top,c=k.bottom;b<=c;++b)if(!a||!a.Ub(g,b))if(n=this.Ye(g,b,!1))n.remove(d),n.le()&&(n.xb.clear(),1E3>B.length&&B.push(n),this.cells[g][b]=null);if(a)for(g=a.left,x=a.right;g<=x;++g)for(b=a.top,c=a.bottom;b<=c;++b)k&&k.Ub(g,b)||this.Ye(g,b,!0).Om(d)};b.prototype.Uk=
function(d,k){var a,g,x,b,c,n;a=this.Fc(d.left);x=this.Gc(d.top);g=this.Fc(d.right);for(c=this.Gc(d.bottom);a<=g;++a)for(b=x;b<=c;++b)(n=this.Ye(a,b,!1))&&n.dump(k)};db=b;e.prototype.Ye=function(d,k,a){var g;g=this.cells[d];return g?(g=g[k])?g:a?(g=m(this,d,k),this.cells[d][k]=g):null:a?(g=m(this,d,k),this.cells[d]={},this.cells[d][k]=g):null};e.prototype.Fc=function(d){return L(d/this.Ab)};e.prototype.Gc=function(d){return L(d/this.zb)};e.prototype.update=function(d,k,a){var g,x,b,c,n;if(k)for(g=
k.left,x=k.right;g<=x;++g)for(b=k.top,c=k.bottom;b<=c;++b)if(!a||!a.Ub(g,b))if(n=this.Ye(g,b,!1))n.remove(d),n.le()&&(n.reset(),1E3>K.length&&K.push(n),this.cells[g][b]=null);if(a)for(g=a.left,x=a.right;g<=x;++g)for(b=a.top,c=a.bottom;b<=c;++b)k&&k.Ub(g,b)||this.Ye(g,b,!0).Om(d)};e.prototype.Uk=function(d,k,a,g,x){var b,c;d=this.Fc(d);k=this.Gc(k);a=this.Fc(a);for(b=this.Gc(g);d<=a;++d)for(g=k;g<=b;++g)(c=this.Ye(d,g,!1))&&c.dump(x)};e.prototype.Yw=function(d){var k,a,g,x,b;k=d.left;g=d.top;a=d.right;
for(x=d.bottom;k<=a;++k)for(d=g;d<=x;++d)if(b=this.Ye(k,d,!1))b.Pg=!1};eb=e;var B=[];g.prototype.le=function(){return this.xb.le()};g.prototype.Om=function(d){this.xb.add(d)};g.prototype.remove=function(d){this.xb.remove(d)};g.prototype.dump=function(d){Ba(d,this.xb.He())};ca=g;var K=[];r.prototype.le=function(){if(!this.xb.length)return!0;if(this.xb.length>this.Pd.count())return!1;this.pm();return!0};r.prototype.Om=function(d){this.Pd.contains(d)?(this.Pd.remove(d),this.Pd.le()&&(this.sh=!1)):this.xb.length?
(this.xb[this.xb.length-1].Ld()>d.Ld()&&(this.Pg=!1),this.xb.push(d)):(this.xb.push(d),this.Pg=!0)};r.prototype.remove=function(d){this.Pd.add(d);this.sh=!0;30<=this.Pd.count()&&this.pm()};r.prototype.pm=function(){this.sh&&(this.Pd.count()===this.xb.length?this.reset():(Ua(this.xb,this.Pd),this.Pd.clear(),this.sh=!1))};r.prototype.ov=function(){this.Pg||(this.xb.sort(p),this.Pg=!0)};r.prototype.reset=function(){this.xb.length=0;this.Pg=!0;this.Pd.clear();this.sh=!1};r.prototype.dump=function(d){this.pm();
this.ov();this.xb.length&&d.push(this.xb)};fa=r;var Z="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");fb=function(d){return 0>=d||11<=d?"source-over":Z[d-1]};gb=function(d,k,a){if(a)switch(d.Ob=a.ONE,d.Nb=a.ONE_MINUS_SRC_ALPHA,k){case 1:d.Ob=a.ONE;d.Nb=a.ONE;break;case 3:d.Ob=a.ONE;d.Nb=a.ZERO;break;case 4:d.Ob=a.ONE_MINUS_DST_ALPHA;d.Nb=a.ONE;break;case 5:d.Ob=a.DST_ALPHA;d.Nb=a.ZERO;break;case 6:d.Ob=a.ZERO;d.Nb=a.SRC_ALPHA;
break;case 7:d.Ob=a.ONE_MINUS_DST_ALPHA;d.Nb=a.ZERO;break;case 8:d.Ob=a.ZERO;d.Nb=a.ONE_MINUS_SRC_ALPHA;break;case 9:d.Ob=a.DST_ALPHA;d.Nb=a.ONE_MINUS_SRC_ALPHA;break;case 10:d.Ob=a.ONE_MINUS_DST_ALPHA,d.Nb=a.SRC_ALPHA}};hb=function(d){return Math.round(1E6*d)/1E6};ib=function(d,k){return"string"!==typeof d||"string"!==typeof k||d.length!==k.length?!1:d===k?!0:d.toLowerCase()===k.toLowerCase()};jb=function(d){d=d.target;return!d||d===document||d===window||document&&document.body&&d===document.body||
ib(d.tagName,"canvas")?!0:!1}})();var bc="undefined"!==typeof Float32Array?Float32Array:Array;function cc(h){var l=new bc(3);h&&(l[0]=h[0],l[1]=h[1],l[2]=h[2]);return l}function dc(h){var l=new bc(16);h&&(l[0]=h[0],l[1]=h[1],l[2]=h[2],l[3]=h[3],l[4]=h[4],l[5]=h[5],l[6]=h[6],l[7]=h[7],l[8]=h[8],l[9]=h[9],l[10]=h[10],l[11]=h[11],l[12]=h[12],l[13]=h[13],l[14]=h[14],l[15]=h[15]);return l}
function ec(h,l){l[0]=h[0];l[1]=h[1];l[2]=h[2];l[3]=h[3];l[4]=h[4];l[5]=h[5];l[6]=h[6];l[7]=h[7];l[8]=h[8];l[9]=h[9];l[10]=h[10];l[11]=h[11];l[12]=h[12];l[13]=h[13];l[14]=h[14];l[15]=h[15]}function fc(h,l){var f=l[0],q=l[1];l=l[2];h[0]*=f;h[1]*=f;h[2]*=f;h[3]*=f;h[4]*=q;h[5]*=q;h[6]*=q;h[7]*=q;h[8]*=l;h[9]*=l;h[10]*=l;h[11]*=l}
function gc(h,l,f,q){q||(q=dc());var t,a,c,b,e,w,g,m,r=h[0],p=h[1];h=h[2];a=f[0];c=f[1];t=f[2];f=l[1];w=l[2];r===l[0]&&p===f&&h===w?(h=q,h[0]=1,h[1]=0,h[2]=0,h[3]=0,h[4]=0,h[5]=1,h[6]=0,h[7]=0,h[8]=0,h[9]=0,h[10]=1,h[11]=0,h[12]=0,h[13]=0,h[14]=0,h[15]=1):(f=r-l[0],w=p-l[1],g=h-l[2],m=1/Math.sqrt(f*f+w*w+g*g),f*=m,w*=m,g*=m,l=c*g-t*w,t=t*f-a*g,a=a*w-c*f,(m=Math.sqrt(l*l+t*t+a*a))?(m=1/m,l*=m,t*=m,a*=m):a=t=l=0,c=w*a-g*t,b=g*l-f*a,e=f*t-w*l,(m=Math.sqrt(c*c+b*b+e*e))?(m=1/m,c*=m,b*=m,e*=m):e=b=c=0,
q[0]=l,q[1]=c,q[2]=f,q[3]=0,q[4]=t,q[5]=b,q[6]=w,q[7]=0,q[8]=a,q[9]=e,q[10]=g,q[11]=0,q[12]=-(l*r+t*p+a*h),q[13]=-(c*r+b*p+e*h),q[14]=-(f*r+w*p+g*h),q[15]=1)}
(function(){function h(a){this.cf=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.vp=cc([0,0,100]);this.wq=cc([0,0,0]);this.ds=cc([0,1,0]);this.Ko=cc([1,1,1]);this.Cp=!0;this.tn=dc();this.bd=dc();this.oq=dc();this.cm=dc();this.G=a;this.Yp()}function l(a,c,b){this.G=a;this.Oi=c;this.name=b;this.ad=a.getAttribLocation(c,"aPos");this.hf=a.getAttribLocation(c,"aTex");this.uq=a.getUniformLocation(c,"matP");this.wk=a.getUniformLocation(c,"matMV");this.Wg=
a.getUniformLocation(c,"opacity");this.vq=a.getUniformLocation(c,"samplerFront");this.mi=a.getUniformLocation(c,"samplerBack");this.dg=a.getUniformLocation(c,"destStart");this.bg=a.getUniformLocation(c,"destEnd");this.pn=a.getUniformLocation(c,"seconds");this.nn=a.getUniformLocation(c,"pixelWidth");this.mn=a.getUniformLocation(c,"pixelHeight");this.li=a.getUniformLocation(c,"layerScale");this.ki=a.getUniformLocation(c,"layerAngle");this.oi=a.getUniformLocation(c,"viewOrigin");this.ni=a.getUniformLocation(c,
"scrollPos");this.Ew=!!(this.nn||this.mn||this.pn||this.mi||this.dg||this.bg||this.li||this.ki||this.oi||this.ni);this.Eq=this.Fq=-999;this.zk=1;this.Aq=this.zq=0;this.Cq=this.yq=this.xq=1;this.Hq=this.Gq=this.Jq=this.Iq=this.Bq=0;this.Zm=[];this.Dq=dc();this.Wg&&a.uniform1f(this.Wg,1);this.vq&&a.uniform1i(this.vq,0);this.mi&&a.uniform1i(this.mi,1);this.dg&&a.uniform2f(this.dg,0,0);this.bg&&a.uniform2f(this.bg,1,1);this.li&&a.uniform1f(this.li,1);this.ki&&a.uniform1f(this.ki,0);this.oi&&a.uniform2f(this.oi,
0,0);this.ni&&a.uniform2f(this.ni,0,0);this.Qf=!1}function f(a,c){this.type=a;this.H=c;this.G=c.G;this.Mc=this.Sc=this.$q=0;this.Ca=this.ld=null;this.Er=[]}h.prototype.Yp=function(){var a=this.G,c;this.pq=1;this.Zf=this.ff=null;this.yj=1;a.clearColor(0,0,0,0);a.clear(a.COLOR_BUFFER_BIT);a.enable(a.BLEND);a.blendFunc(a.ONE,a.ONE_MINUS_SRC_ALPHA);a.disable(a.CULL_FACE);a.disable(a.DEPTH_TEST);this.qq=a.ONE;this.nq=a.ONE_MINUS_SRC_ALPHA;this.aj=new Float32Array(16E3);this.Ui=new Float32Array(16E3);this.lr=
new Float32Array(32E3);this.Hn=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.Hn);a.bufferData(a.ARRAY_BUFFER,this.lr.byteLength,a.DYNAMIC_DRAW);this.$i=Array(4);this.Ti=Array(4);for(c=0;4>c;c++)this.$i[c]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.$i[c]),a.bufferData(a.ARRAY_BUFFER,this.aj.byteLength,a.DYNAMIC_DRAW),this.Ti[c]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.Ti[c]),a.bufferData(a.ARRAY_BUFFER,this.Ui.byteLength,a.DYNAMIC_DRAW);this.be=0;this.Hw=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,
this.Hw);for(var b=new Uint16Array(12E3),e=c=0;12E3>c;)b[c++]=e,b[c++]=e+1,b[c++]=e+2,b[c++]=e,b[c++]=e+2,b[c++]=e+3,e+=4;a.bufferData(a.ELEMENT_ARRAY_BUFFER,b,a.STATIC_DRAW);this.In=this.Uc=0;this.sb=[];c=this.Zl({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}"},"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}",
"<default>");this.sb.push(c);c=this.Zl({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.sb.push(c);for(var f in hc)hc.hasOwnProperty(f)&&
this.sb.push(this.Zl(hc[f],"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));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,null);this.Id=[];this.qd=0;this.Wb=!1;this.zp=this.di=-1;this.Eh=null;this.Ov=a.createFramebuffer();this.sr=null;this.zf=cc([0,0,0]);this.Kq=a.getParameter(a.ALIASED_POINT_SIZE_RANGE)[1];
2048<this.Kq&&(this.Kq=2048);this.Ud(0)};l.prototype.Co=function(a){var c=this.Dq;if(c[0]!==a[0]||c[1]!==a[1]||c[2]!==a[2]||c[3]!==a[3]||c[4]!==a[4]||c[5]!==a[5]||c[6]!==a[6]||c[7]!==a[7]||c[8]!==a[8]||c[9]!==a[9]||c[10]!==a[10]||c[11]!==a[11]||c[12]!==a[12]||c[13]!==a[13]||c[14]!==a[14]||c[15]!==a[15])ec(a,this.Dq),this.G.uniformMatrix4fv(this.wk,!1,a)};h.prototype.Zl=function(a,c,b){var e=this.G,f=e.createShader(e.FRAGMENT_SHADER);e.shaderSource(f,a.src);e.compileShader(f);if(!e.getShaderParameter(f,
e.COMPILE_STATUS))return e.deleteShader(f),null;var g=e.createShader(e.VERTEX_SHADER);e.shaderSource(g,c);e.compileShader(g);if(!e.getShaderParameter(g,e.COMPILE_STATUS))return e.deleteShader(f),e.deleteShader(g),null;c=e.createProgram();e.attachShader(c,f);e.attachShader(c,g);e.linkProgram(c);if(!e.getProgramParameter(c,e.LINK_STATUS))return e.deleteShader(f),e.deleteShader(g),e.deleteProgram(c),null;e.useProgram(c);e.deleteShader(f);e.deleteShader(g);b=new l(e,c,b);b.Hj=a.Hj||0;b.Ij=a.Ij||0;b.$l=
!!a.$l;b.Jl=!!a.Jl;b.X=a.X||[];a=0;for(f=b.X.length;a<f;a++)b.X[a][1]=e.getUniformLocation(c,b.X[a][0]),b.Zm.push(0),e.uniform1f(b.X[a][1],0);return b};h.prototype.Cm=function(a){var c,b;c=0;for(b=this.sb.length;c<b;c++)if(this.sb[c].name===a)return c;return-1};h.prototype.or=function(a,c,b){var e=this.bd,f=this.tn,g=[0,0,0,0,0,0,0,0];g[0]=e[0]*a+e[4]*c+e[12];g[1]=e[1]*a+e[5]*c+e[13];g[2]=e[2]*a+e[6]*c+e[14];g[3]=e[3]*a+e[7]*c+e[15];g[4]=f[0]*g[0]+f[4]*g[1]+f[8]*g[2]+f[12]*g[3];g[5]=f[1]*g[0]+f[5]*
g[1]+f[9]*g[2]+f[13]*g[3];g[6]=f[2]*g[0]+f[6]*g[1]+f[10]*g[2]+f[14]*g[3];g[7]=-g[2];0!==g[7]&&(g[7]=1/g[7],g[4]*=g[7],g[5]*=g[7],g[6]*=g[7],b[0]=(.5*g[4]+.5)*this.width,b[1]=(.5*g[5]+.5)*this.height)};h.prototype.gh=function(a,c,b){if(this.width!==a||this.height!==c||b){this.fe();this.width=a;this.height=c;this.G.viewport(0,0,a,c);c=a/c;var e=this.tn,f;f=1*Math.tan(45*Math.PI/360);c*=f;a=-c;b=-f;e||(e=dc());var g=c-a,m=f-b;e[0]=2/g;e[1]=0;e[2]=0;e[3]=0;e[4]=0;e[5]=2/m;e[6]=0;e[7]=0;e[8]=(c+a)/g;e[9]=
(f+b)/m;e[10]=-1001/999;e[11]=-1;e[12]=0;e[13]=0;e[14]=-2E3/999;e[15]=0;gc(this.vp,this.wq,this.ds,this.bd);a=[0,0];c=[0,0];this.or(0,0,a);this.or(1,1,c);this.Ko[0]=1/(c[0]-a[0]);this.Ko[1]=-1/(c[1]-a[1]);a=0;for(c=this.sb.length;a<c;a++)b=this.sb[a],b.Qf=!1,b.uq&&(this.G.useProgram(b.Oi),this.G.uniformMatrix4fv(b.uq,!1,this.tn));this.G.useProgram(this.sb[this.di].Oi);this.G.bindTexture(this.G.TEXTURE_2D,null);this.G.activeTexture(this.G.TEXTURE1);this.G.bindTexture(this.G.TEXTURE_2D,null);this.G.activeTexture(this.G.TEXTURE0);
this.Zf=this.ff=null}};h.prototype.Rd=function(){gc(this.vp,this.wq,this.ds,this.bd);fc(this.bd,this.Ko)};h.prototype.translate=function(a,c){if(0!==a||0!==c){this.zf[0]=a;this.zf[1]=c;this.zf[2]=0;var b=this.bd,e=this.zf,f=e[0],g=e[1],e=e[2];b[12]=b[0]*f+b[4]*g+b[8]*e+b[12];b[13]=b[1]*f+b[5]*g+b[9]*e+b[13];b[14]=b[2]*f+b[6]*g+b[10]*e+b[14];b[15]=b[3]*f+b[7]*g+b[11]*e+b[15]}};h.prototype.scale=function(a,c){if(1!==a||1!==c)this.zf[0]=a,this.zf[1]=c,this.zf[2]=1,fc(this.bd,this.zf)};h.prototype.Tn=
function(a){if(0!==a){var c=this.bd,b,e=Math.sin(a);a=Math.cos(a);var f=c[0],g=c[1],m=c[2],r=c[3],p=c[4],z=c[5],h=c[6],u=c[7];b?c!==b&&(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]):b=c;b[0]=f*a+p*e;b[1]=g*a+z*e;b[2]=m*a+h*e;b[3]=r*a+u*e;b[4]=f*-e+p*a;b[5]=g*-e+z*a;b[6]=m*-e+h*a;b[7]=r*-e+u*a}};h.prototype.Zd=function(){for(var a=!1,c=0;16>c;c++)if(this.oq[c]!==this.bd[c]){a=!0;break}a&&(a=this.hd(),a.type=5,a.Ca?ec(this.bd,a.Ca):a.Ca=dc(this.bd),ec(this.bd,
this.oq),this.Wb=!1)};f.prototype.$u=function(){this.G.bindTexture(this.G.TEXTURE_2D,this.ld)};f.prototype.av=function(){var a=this.G;a.activeTexture(a.TEXTURE1);a.bindTexture(a.TEXTURE_2D,this.ld);a.activeTexture(a.TEXTURE0)};f.prototype.Xu=function(){var a=this.$q,c=this.H;c.yj=a;c=c.Eh;c.Wg&&c.zk!==a&&(c.zk=a,this.G.uniform1f(c.Wg,a))};f.prototype.Uu=function(){this.G.drawElements(this.G.TRIANGLES,this.Mc,this.G.UNSIGNED_SHORT,2*this.Sc)};f.prototype.Wu=function(){this.G.blendFunc(this.Sc,this.Mc)};
f.prototype.cv=function(){var a,c,b,e=this.H.sb,f=this.H.zp;a=0;for(c=e.length;a<c;a++)b=e[a],a===f&&b.wk?(b.Co(this.Ca),b.Qf=!0):b.Qf=!1;ec(this.Ca,this.H.cm)};f.prototype.Vu=function(){var a=this.G,c=this.H;this.ld?(c.Zf===this.ld&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,null),c.Zf=null,a.activeTexture(a.TEXTURE0)),a.bindFramebuffer(a.FRAMEBUFFER,c.Ov),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,this.ld,0)):(a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,
a.TEXTURE_2D,null,0),a.bindFramebuffer(a.FRAMEBUFFER,null))};f.prototype.Su=function(){var a=this.G;0===this.Sc?(a.clearColor(this.Ca[0],this.Ca[1],this.Ca[2],this.Ca[3]),a.clear(a.COLOR_BUFFER_BIT)):(a.enable(a.SCISSOR_TEST),a.scissor(this.Ca[0],this.Ca[1],this.Ca[2],this.Ca[3]),a.clearColor(0,0,0,0),a.clear(this.G.COLOR_BUFFER_BIT),a.disable(a.SCISSOR_TEST))};f.prototype.Tu=function(){var a=this.G,c=this.H,b=c.sb[1];a.useProgram(b.Oi);!b.Qf&&b.wk&&(b.Co(c.cm),b.Qf=!0);a.enableVertexAttribArray(b.ad);
a.bindBuffer(a.ARRAY_BUFFER,c.Hn);a.vertexAttribPointer(b.ad,4,a.FLOAT,!1,0,0);a.drawArrays(a.POINTS,this.Sc/4,this.Mc);b=c.Eh;a.useProgram(b.Oi);0<=b.ad&&(a.enableVertexAttribArray(b.ad),a.bindBuffer(a.ARRAY_BUFFER,c.$i[c.be]),a.vertexAttribPointer(b.ad,2,a.FLOAT,!1,0,0));0<=b.hf&&(a.enableVertexAttribArray(b.hf),a.bindBuffer(a.ARRAY_BUFFER,c.Ti[c.be]),a.vertexAttribPointer(b.hf,2,a.FLOAT,!1,0,0))};f.prototype.Yu=function(){var a=this.G,c=this.H,b=c.sb[this.Sc];c.zp=this.Sc;c.Eh=b;a.useProgram(b.Oi);
!b.Qf&&b.wk&&(b.Co(c.cm),b.Qf=!0);b.Wg&&b.zk!==c.yj&&(b.zk=c.yj,a.uniform1f(b.Wg,c.yj));0<=b.ad&&(a.enableVertexAttribArray(b.ad),a.bindBuffer(a.ARRAY_BUFFER,c.$i[c.be]),a.vertexAttribPointer(b.ad,2,a.FLOAT,!1,0,0));0<=b.hf&&(a.enableVertexAttribArray(b.hf),a.bindBuffer(a.ARRAY_BUFFER,c.Ti[c.be]),a.vertexAttribPointer(b.hf,2,a.FLOAT,!1,0,0))};f.prototype.Zu=function(){var a,c,b=this.H.Eh,e=this.G;a=this.Ca;b.mi&&this.H.Zf!==this.ld&&(e.activeTexture(e.TEXTURE1),e.bindTexture(e.TEXTURE_2D,this.ld),
this.H.Zf=this.ld,e.activeTexture(e.TEXTURE0));var f=a[0];b.nn&&f!==b.Fq&&(b.Fq=f,e.uniform1f(b.nn,f));f=a[1];b.mn&&f!==b.Eq&&(b.Eq=f,e.uniform1f(b.mn,f));f=a[2];c=a[3];!b.dg||f===b.zq&&c===b.Aq||(b.zq=f,b.Aq=c,e.uniform2f(b.dg,f,c));f=a[4];c=a[5];!b.bg||f===b.xq&&c===b.yq||(b.xq=f,b.yq=f,e.uniform2f(b.bg,f,c));f=a[6];b.li&&f!==b.Cq&&(b.Cq=f,e.uniform1f(b.li,f));f=a[7];b.ki&&f!==b.Bq&&(b.Bq=f,e.uniform1f(b.ki,f));f=a[8];c=a[9];!b.oi||f===b.Iq&&c===b.Jq||(b.Iq=f,b.Jq=c,e.uniform2f(b.oi,f,c));f=a[10];
c=a[11];!b.ni||f===b.Gq&&c===b.Hq||(b.Gq=f,b.Hq=c,e.uniform2f(b.ni,f,c));b.pn&&e.uniform1f(b.pn,Ta()/1E3);if(b.X.length)for(a=0,c=b.X.length;a<c;a++)f=this.Er[a],f!==b.Zm[a]&&(b.Zm[a]=f,e.uniform1f(b.X[a][1],f))};h.prototype.hd=function(){this.qd===this.Id.length&&this.Id.push(new f(0,this));return this.Id[this.qd++]};h.prototype.fe=function(){if(0!==this.qd&&!this.G.isContextLost()){var a=this.G;0<this.In&&(a.bindBuffer(a.ARRAY_BUFFER,this.Hn),a.bufferSubData(a.ARRAY_BUFFER,0,this.lr.subarray(0,
this.In)),c&&0<=c.ad&&"<point>"===c.name&&a.vertexAttribPointer(c.ad,4,a.FLOAT,!1,0,0));if(0<this.Uc){var c=this.Eh;a.bindBuffer(a.ARRAY_BUFFER,this.$i[this.be]);a.bufferSubData(a.ARRAY_BUFFER,0,this.aj.subarray(0,this.Uc));c&&0<=c.ad&&"<point>"!==c.name&&a.vertexAttribPointer(c.ad,2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.Ti[this.be]);a.bufferSubData(a.ARRAY_BUFFER,0,this.Ui.subarray(0,this.Uc));c&&0<=c.hf&&"<point>"!==c.name&&a.vertexAttribPointer(c.hf,2,a.FLOAT,!1,0,0)}for(var b,a=0,c=
this.qd;a<c;a++)switch(b=this.Id[a],b.type){case 1:b.Uu();break;case 2:b.$u();break;case 3:b.Xu();break;case 4:b.Wu();break;case 5:b.cv();break;case 6:b.Vu();break;case 7:b.Su();break;case 8:b.Tu();break;case 9:b.Yu();break;case 10:b.Zu();break;case 11:b.av()}this.In=this.Uc=this.qd=0;this.Wb=!1;this.be++;4<=this.be&&(this.be=0)}};h.prototype.vf=function(a){if(a!==this.pq){var c=this.hd();c.type=3;this.pq=c.$q=a;this.Wb=!1}};h.prototype.nc=function(a){if(a!==this.ff){var c=this.hd();c.type=2;this.ff=
c.ld=a;this.Wb=!1}};h.prototype.uf=function(a,c){if(a!==this.qq||c!==this.nq){var b=this.hd();b.type=4;b.Sc=a;b.Mc=c;this.qq=a;this.nq=c;this.Wb=!1}};h.prototype.ur=function(){this.uf(this.G.ONE,this.G.ONE_MINUS_SRC_ALPHA)};h.prototype.Tk=function(a,c,b,e,f,g,m,r){15992<=this.Uc&&this.fe();var p=this.Uc,h=this.aj,l=this.Ui;if(this.Wb)this.Id[this.qd-1].Mc+=6;else{var u=this.hd();u.type=1;u.Sc=p/4*3;u.Mc=6;this.Wb=!0}h[p]=a;l[p++]=0;h[p]=c;l[p++]=0;h[p]=b;l[p++]=1;h[p]=e;l[p++]=0;h[p]=f;l[p++]=1;h[p]=
g;l[p++]=1;h[p]=m;l[p++]=0;h[p]=r;l[p++]=1;this.Uc=p};h.prototype.zd=function(a,c,b,e,f,g,m,r,p){15992<=this.Uc&&this.fe();var h=this.Uc,l=this.aj,u=this.Ui;if(this.Wb)this.Id[this.qd-1].Mc+=6;else{var n=this.hd();n.type=1;n.Sc=h/4*3;n.Mc=6;this.Wb=!0}var n=p.left,v=p.top,A=p.right;p=p.bottom;l[h]=a;u[h++]=n;l[h]=c;u[h++]=v;l[h]=b;u[h++]=A;l[h]=e;u[h++]=v;l[h]=f;u[h++]=A;l[h]=g;u[h++]=p;l[h]=m;u[h++]=n;l[h]=r;u[h++]=p;this.Uc=h};h.prototype.Fx=function(a,c,b,e,f,g,m,h,p,l,C,u,n,v,A,d){15992<=this.Uc&&
this.fe();var k=this.Uc,x=this.aj,B=this.Ui;if(this.Wb)this.Id[this.qd-1].Mc+=6;else{var K=this.hd();K.type=1;K.Sc=k/4*3;K.Mc=6;this.Wb=!0}x[k]=a;B[k++]=p;x[k]=c;B[k++]=l;x[k]=b;B[k++]=C;x[k]=e;B[k++]=u;x[k]=f;B[k++]=n;x[k]=g;B[k++]=v;x[k]=m;B[k++]=A;x[k]=h;B[k++]=d;this.Uc=k};h.prototype.Ud=function(a){if(this.di!==a){if(!this.sb[a]){if(0===this.di)return;a=0}var c=this.hd();c.type=9;this.di=c.Sc=a;this.Wb=!1}};h.prototype.Ci=function(a){a=this.sb[a];return!(!a.dg&&!a.bg)};h.prototype.Jn=function(a){a=
this.sb[a];return!!(a.dg||a.bg||a.$l)};h.prototype.Cx=function(a){a=this.sb[a];return 0!==a.Hj||0!==a.Ij};h.prototype.hw=function(a){return this.sb[a].Hj};h.prototype.iw=function(a){return this.sb[a].Ij};h.prototype.jw=function(a,c){return this.sb[a].X[c][2]};h.prototype.Qk=function(a){return this.sb[a].Jl};h.prototype.fh=function(a,c,b,e,f,g,m,h,p,l,C,u,n,v){var A=this.sb[this.di],d,k;if(A.Ew||v.length){d=this.hd();d.type=10;d.Ca?ec(this.bd,d.Ca):d.Ca=dc();k=d.Ca;k[0]=c;k[1]=b;k[2]=e;k[3]=f;k[4]=
g;k[5]=m;k[6]=h;k[7]=p;k[8]=l;k[9]=C;k[10]=u;k[11]=n;A.mi?d.ld=a:d.ld=null;if(v.length)for(b=d.Er,b.length=v.length,a=0,c=v.length;a<c;a++)b[a]=v[a];this.Wb=!1}};h.prototype.clear=function(a,c,b,e){var f=this.hd();f.type=7;f.Sc=0;f.Ca||(f.Ca=dc());f.Ca[0]=a;f.Ca[1]=c;f.Ca[2]=b;f.Ca[3]=e;this.Wb=!1};h.prototype.clearRect=function(a,c,b,e){if(!(0>b||0>e)){var f=this.hd();f.type=7;f.Sc=1;f.Ca||(f.Ca=dc());f.Ca[0]=a;f.Ca[1]=c;f.Ca[2]=b;f.Ca[3]=e;this.Wb=!1}};h.prototype.Bx=function(){this.fe();this.G.flush()};
var q=[],t={};h.prototype.Iu=function(){q.length=0;t={}};h.prototype.sk=function(a,c,b,e){c=!!c;b=!!b;var f=a.src+","+c+","+b+(c?",undefined":""),g=null;if("undefined"!==typeof a.src&&t.hasOwnProperty(f))return g=t[f],g.pj++,g;this.fe();var m=this.G,h=ma(a.width)&&ma(a.height),g=m.createTexture();m.bindTexture(m.TEXTURE_2D,g);m.pixelStorei(m.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var p=m.RGBA,l=m.RGBA,C=m.UNSIGNED_BYTE;if(e&&!this.cf)switch(e){case 1:l=p=m.RGB;break;case 2:C=m.UNSIGNED_SHORT_4_4_4_4;
break;case 3:C=m.UNSIGNED_SHORT_5_5_5_1;break;case 4:l=p=m.RGB,C=m.UNSIGNED_SHORT_5_6_5}if(!h&&c){e=document.createElement("canvas");e.width=na(a.width);e.height=na(a.height);var u=e.getContext("2d");u.webkitImageSmoothingEnabled=b;u.mozImageSmoothingEnabled=b;u.msImageSmoothingEnabled=b;u.imageSmoothingEnabled=b;u.drawImage(a,0,0,a.width,a.height,0,0,e.width,e.height);m.texImage2D(m.TEXTURE_2D,0,p,l,C,e)}else m.texImage2D(m.TEXTURE_2D,0,p,l,C,a);c?(m.texParameteri(m.TEXTURE_2D,m.TEXTURE_WRAP_S,m.REPEAT),
m.texParameteri(m.TEXTURE_2D,m.TEXTURE_WRAP_T,m.REPEAT)):(m.texParameteri(m.TEXTURE_2D,m.TEXTURE_WRAP_S,m.CLAMP_TO_EDGE),m.texParameteri(m.TEXTURE_2D,m.TEXTURE_WRAP_T,m.CLAMP_TO_EDGE));b?(m.texParameteri(m.TEXTURE_2D,m.TEXTURE_MAG_FILTER,m.LINEAR),h&&this.Cp?(m.texParameteri(m.TEXTURE_2D,m.TEXTURE_MIN_FILTER,m.LINEAR_MIPMAP_LINEAR),m.generateMipmap(m.TEXTURE_2D)):m.texParameteri(m.TEXTURE_2D,m.TEXTURE_MIN_FILTER,m.LINEAR)):(m.texParameteri(m.TEXTURE_2D,m.TEXTURE_MAG_FILTER,m.NEAREST),m.texParameteri(m.TEXTURE_2D,
m.TEXTURE_MIN_FILTER,m.NEAREST));m.bindTexture(m.TEXTURE_2D,null);this.ff=null;g.xh=a.width;g.wh=a.height;g.pj=1;g.tp=f;q.push(g);return t[f]=g};h.prototype.Jd=function(a,c,b,e,f){this.fe();var g=this.G;this.cf&&(e=!1);var m=g.createTexture();g.bindTexture(g.TEXTURE_2D,m);g.texImage2D(g.TEXTURE_2D,0,g.RGBA,a,c,0,g.RGBA,e?g.UNSIGNED_SHORT_4_4_4_4:g.UNSIGNED_BYTE,null);f?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_S,g.REPEAT),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,g.REPEAT)):(g.texParameteri(g.TEXTURE_2D,
g.TEXTURE_WRAP_S,g.CLAMP_TO_EDGE),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,g.CLAMP_TO_EDGE));g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,b?g.LINEAR:g.NEAREST);g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,b?g.LINEAR:g.NEAREST);g.bindTexture(g.TEXTURE_2D,null);this.ff=null;m.xh=a;m.wh=c;q.push(m);return m};h.prototype.qs=function(a,c,b){this.fe();var e=this.G;this.cf&&(b=!1);e.bindTexture(e.TEXTURE_2D,c);e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);try{e.texImage2D(e.TEXTURE_2D,
0,e.RGBA,e.RGBA,b?e.UNSIGNED_SHORT_4_4_4_4:e.UNSIGNED_BYTE,a)}catch(f){console&&console.error&&console.error("Error updating WebGL texture: ",f)}e.bindTexture(e.TEXTURE_2D,null);this.ff=null};h.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.pj&&1<a.pj?a.pj--:(this.fe(),a===this.ff&&(this.G.bindTexture(this.G.TEXTURE_2D,null),this.ff=null),a===this.Zf&&(this.G.activeTexture(this.G.TEXTURE1),this.G.bindTexture(this.G.TEXTURE_2D,null),this.G.activeTexture(this.G.TEXTURE0),this.Zf=null),
Da(q,a),"undefined"!==typeof a.tp&&delete t[a.tp],this.G.deleteTexture(a)))};h.prototype.Sd=function(a){if(a!==this.sr){var c=this.hd();c.type=6;this.sr=c.ld=a;this.Wb=!1}};kb=h})();
(function(){function h(){return"undefined"!==typeof jQuery?jQuery(window).width():window.innerWidth}function l(){return"undefined"!==typeof jQuery?jQuery(window).height():window.innerHeight}function f(d){if(d&&(d.getContext||d.dc)&&!d.c2runtime){d.c2runtime=this;var k=this;this.bf=(this.Vh=/crosswalk/i.test(navigator.userAgent)||/xwalk/i.test(navigator.userAgent)||!("undefined"===typeof window.c2isCrosswalk||!window.c2isCrosswalk))||"undefined"!==typeof window.device&&("undefined"!==typeof window.device.cordova||
"undefined"!==typeof window.device.phonegap)||"undefined"!==typeof window.c2iscordova&&window.c2iscordova;this.ic=!!d.dc;this.cq="undefined"!==typeof window.AppMobi||this.ic;this.vd=!!window.c2cocoonjs;this.wd=!!window.c2ejecta;this.vd&&(CocoonJS.App.onSuspended.addEventListener(function(){k.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){k.setSuspended(!1)}));this.wd&&(document.addEventListener("pagehide",function(){k.setSuspended(!0)}),document.addEventListener("pageshow",
function(){k.setSuspended(!1)}),document.addEventListener("resize",function(){k.setSize(window.innerWidth,window.innerHeight)}));this.Xa=this.ic||this.vd||this.wd;this.cf=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent)||/edge\//i.test(navigator.userAgent);this.hq=/tizen/i.test(navigator.userAgent);this.bk=/android/i.test(navigator.userAgent)&&!this.hq&&!this.cf;this.Xm=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&
!this.cf;this.lq=/ipad/i.test(navigator.userAgent);this.gk=this.Xm||this.lq||this.wd;this.Sw=this.Xm&&/os\s6/i.test(navigator.userAgent);this.Uh=(/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent))&&!this.cf;this.Qm=/amazonwebappplatform/i.test(navigator.userAgent);this.Mw=/firefox/i.test(navigator.userAgent);this.gq=/safari/i.test(navigator.userAgent)&&!this.Uh&&!this.cf;this.Qw=/windows/i.test(navigator.userAgent);this.df="undefined"!==typeof window.c2nodewebkit||"undefined"!==
typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.jq=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.Rw=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.Lg=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.Vm=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.iq=this.jq||this.Rw||this.Vm;this.Lw=!("undefined"===typeof window.c2isBlackberry10||
!window.c2isBlackberry10);this.ck=this.bk&&!this.Uh&&!this.Vh&&!this.Mw&&!this.Qm&&!this.Xa;this.devicePixelRatio=1;this.me=this.bf||this.Vh||this.cq||this.vd||this.bk||this.gk||this.Lg||this.Vm||this.Lw||this.hq||this.wd;this.me||(this.me=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));"undefined"===typeof cr_is_preview||this.df||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||
(this.df=!0);this.canvas=d;this.wp=document.getElementById("c2canvasdiv");this.xa=this.H=this.G=null;this.um="";this.Mj=!1;this.Xq=this.Yq=0;this.canvas.oncontextmenu=function(d){d.preventDefault&&d.preventDefault();return!1};this.canvas.onselectstart=function(d){d.preventDefault&&d.preventDefault();return!1};this.ic&&(window.c2runtime=this);this.df&&(window.ondragover=function(d){d.preventDefault();return!1},window.ondrop=function(d){d.preventDefault();return!1},require("nw.gui").App.clearCache());
this.ck&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=d.width;this.height=d.height;this.ba=this.width;this.aa=this.height;this.wj=this.width;this.vj=this.height;this.fi=window.innerWidth;this.ei=window.innerHeight;this.Rv=!1;this.Y=!0;this.Xh=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.I=[];this.bb=[];this.hn={};this.yd=[];this.mm={};this.ge=[];this.oh=[];this.pl=[];this.vu=[];this.wu=[];this.mq=this.Jr=
null;this.If={};this.Rm=this.$e=!1;this.Oc=0;this.Tm=!1;this.sd=[];this.ne=this.$b=this.pk=this.Xn="";this.Ri=this.Hr=!1;this.Wl=this.pi=this.Ve=this.ee=0;this.qg=1;this.Pc=new Xa;this.Ie=new Xa;this.Ek=this.Rj=this.Mf=this.Tc=this.ag=this.rm=this.kk=0;this.zh=null;this.Cj=[];this.lm=[];this.Gj=-1;this.qn=[[]];this.yo=this.xk=0;this.Rk(null);this.sn=[];this.yk=-1;this.Rq=this.vi=0;this.gn=!0;this.Ih=0;this.Si=[];this.vo=this.Mn=-1;this.$h=!0;this.vk=0;this.Wh=!1;this.Yx=0;this.xg=null;this.uc=this.Gm=
!1;this.Vq=new da;this.zn=new da;this.Wq=new da;this.Hi=[];this.Bd=new cb([]);this.oo=new cb([]);this.Oe=[];this.Oh={};this.zg={};this.wg={};this.nh={};this.pp={};this.tq=this.ok=this.xc=this.Qc=this.sq=this.nk=this.da=null;this.lh=this.Wm=!1;this.vm=[null,null];this.Nf=0;this.om="";this.te={};this.dl=this.Vg=null;this.Dk=[];this.Ix()}}function q(d){d.target.result.createObjectStore("saves",{keyPath:"slot"})}function t(d,k,a,g){var b=indexedDB.open("_C2SaveStates");b.onupgradeneeded=q;b.onerror=g;
b.onsuccess=function(b){b=b.target.result;b.onerror=g;b.transaction(["saves"],"readwrite").objectStore("saves").put({slot:d,data:k}).onsuccess=a}}function a(d,k,a){var g=indexedDB.open("_C2SaveStates");g.onupgradeneeded=q;g.onerror=a;g.onsuccess=function(g){g=g.target.result;g.onerror=a;var b=g.transaction(["saves"]).objectStore("saves").get(d);b.onsuccess=function(){b.result?k(b.result.data):k(null)}}}function c(){ga("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(d){var k,a={};for(k in d)!d.hasOwnProperty(k)||d[k]instanceof da||d[k]&&"undefined"!==typeof d[k].Sy||(a[k]=d[k]);return a}f.prototype.Ix=function(){var d=this,k;this.Lg?k=new ActiveXObject("Microsoft.XMLHTTP"):k=new XMLHttpRequest;var a="data.js";if(this.jq||this.Lg||this.Vm)a="data.json";k.open("GET",a,!0);var g=!1;if(!this.Xa&&"response"in k&&"responseType"in k)try{k.responseType=
"json",g="json"===k.responseType}catch(b){g=!1}if(!g&&"responseType"in k)try{k.responseType="text"}catch(c){}if("overrideMimeType"in k)try{k.overrideMimeType("application/json; charset=utf-8")}catch(n){}this.Lg?k.onreadystatechange=function(){4===k.readyState&&d.rk(JSON.parse(k.responseText))}:(k.onload=function(){if(g)d.rk(k.response);else if(d.wd){var a=k.responseText,a=a.substr(a.indexOf("{"));d.rk(JSON.parse(a))}else d.rk(JSON.parse(k.responseText))},k.onerror=function(d){ha("Error requesting "+
a+":");ha(d)});k.send()};f.prototype.Iw=function(){var d=this,k,a,g,b,c,n,e,m,f;this.devicePixelRatio=(this.Wf=(!this.Xa||this.wd)&&this.gy&&!this.ck)?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.Gb();a=!(!this.Rv&&(!this.Gl||this.df||this.iq||this.Lg||this.Vh||this.bf||this.Qm));0<this.sc&&this.setSize(h(),l(),!0);try{this.lv&&(this.vd||this.wd||!this.Xa)&&(k={alpha:a,depth:!1,antialias:!1,failIfMajorPerformanceCaveat:!0},
this.G=this.canvas.getContext("webgl",k)||this.canvas.getContext("experimental-webgl",k))}catch(p){}if(this.G){this.Xa||(this.Cb=document.createElement("canvas"),jQuery(this.Cb).appendTo(this.canvas.parentNode),this.Cb.oncontextmenu=function(){return!1},this.Cb.onselectstart=function(){return!1},this.Cb.width=this.wj,this.Cb.height=this.vj,jQuery(this.Cb).css({width:this.wj+"px",height:this.vj+"px"}),this.mr(),this.Gn=this.Cb.getContext("2d"));this.H=new kb(this.G,this.me);this.H.gh(this.canvas.width,
this.canvas.height);this.H.Cp=0!==this.dv;this.xa=null;this.canvas.addEventListener("webglcontextlost",function(k){k.preventDefault();d.gx();ga("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){d.H.Yp();d.H.gh(d.H.width,d.H.height,!0);d.Qc=null;d.xc=null;d.vm[0]=null;d.vm[1]=null;d.hx();d.Y=!0;ga("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);k=0;for(a=this.I.length;k<a;k++)for(c=this.I[k],g=
0,b=c.T.length;g<b;g++)e=c.T[g],e.Eb=this.H.Cm(e.id),this.lh=this.lh||this.H.Ci(e.Eb);k=0;for(a=this.yd.length;k<a;k++){m=this.yd[k];g=0;for(b=m.T.length;g<b;g++)e=m.T[g],e.Eb=this.H.Cm(e.id);g=0;for(b=m.ca.length;g<b;g++)for(f=m.ca[g],c=0,n=f.T.length;c<n;c++)e=f.T[c],e.Eb=this.H.Cm(e.id),this.lh=this.lh||this.H.Ci(e.Eb)}}else{if(0<this.sc&&this.ic){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.xa=AppMobi.canvas.getContext("2d");try{this.xa.samplingMode=
this.ra?"smooth":"sharp",this.xa.globalScale=1,this.xa.HTML5CompatibilityMode=!0,this.xa.imageSmoothingEnabled=this.ra}catch(v){}0!==this.width&&0!==this.height&&(this.xa.width=this.width,this.xa.height=this.height)}this.xa||(this.vd?(k={antialias:!!this.ra,alpha:a},this.xa=this.canvas.getContext("2d",k)):(k={alpha:a},this.xa=this.canvas.getContext("2d",k)),this.xa.webkitImageSmoothingEnabled=this.ra,this.xa.mozImageSmoothingEnabled=this.ra,this.xa.msImageSmoothingEnabled=this.ra,this.xa.imageSmoothingEnabled=
this.ra);this.Gn=this.Cb=null}this.Rr=function(k){d.Ha(!1,k)};window==window.top||this.Xa||this.iq||this.Lg||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.vd&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(ga("Reloading for continuous preview"),this.pk="__c2_continuouspreview",this.Ri=!0),this.ux&&
!this.me&&(jQuery(window).focus(function(){d.setSuspended(!1)}),jQuery(window).blur(function(){d.setSuspended(!0)})));this.Xa||(k=function(d){if(jb(d)&&document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(k){}},window.navigator.pointerEnabled?document.addEventListener("pointerdown",k):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",k):document.addEventListener("touchstart",
k),document.addEventListener("mousedown",k));0===this.sc&&this.Wf&&1<this.devicePixelRatio&&this.setSize(this.Ra,this.Qa,!0);this.$r();this.Aw();this.go();this.fa={}};f.prototype.setSize=function(d,k,a){var g=0,b=0,c=0,n=0,n=0,e=this.Sw&&this.gq&&!navigator.standalone&&!this.Xa&&!this.bf;e&&(k+=60);if(this.fi!==d||this.ei!==k||a){this.fi=d;this.ei=k;var m=this.sc,f=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.Wh)&&!this.bf;if(f||0!==
this.sc||a)f&&0<this.Nf&&(m=this.Nf),a=this.devicePixelRatio,4<=m?(c=this.Ra/this.Qa,d/k>c?(c*=k,5===m?(n=c*a/this.Ra,1<n?n=Math.floor(n):1>n&&(n=1/Math.ceil(1/n)),c=this.Ra*n/a,n=this.Qa*n/a,g=(d-c)/2,b=(k-n)/2,d=c,k=n):(g=(d-c)/2,d=c)):(n=d/c,5===m?(n=n*a/this.Qa,1<n?n=Math.floor(n):1>n&&(n=1/Math.ceil(1/n)),c=this.Ra*n/a,n=this.Qa*n/a,g=(d-c)/2,b=(k-n)/2,d=c):b=(k-n)/2,k=n),f&&!this.df&&(b=g=0)):this.df&&this.Wh&&0===this.Ip&&(g=Math.floor((d-this.Ra)/2),b=Math.floor((k-this.Qa)/2),d=this.Ra,k=
this.Qa),2>m&&(this.vh=a),this.Wf&&this.lq&&1<a&&(1024<=d&&(d=1023),1024<=k&&(k=1023)),this.wj=Math.round(d),this.vj=Math.round(k),this.width=Math.round(d*a),this.height=Math.round(k*a),this.Y=!0,this.rs?(this.ba=this.width,this.aa=this.height,this.$c=!0):this.width<this.Ra&&this.height<this.Qa||1===m?(this.ba=this.width,this.aa=this.height,this.$c=!0):(this.ba=this.Ra,this.aa=this.Qa,this.$c=!1,2===m?(c=this.Ra/this.Qa,m=this.fi/this.ei,m<c?this.ba=this.aa*m:m>c&&(this.aa=this.ba/m)):3===m&&(c=this.Ra/
this.Qa,m=this.fi/this.ei,m>c?this.ba=this.aa*m:m<c&&(this.aa=this.ba/m))),this.wp&&!this.Xa&&(jQuery(this.wp).css({width:Math.round(d)+"px",height:Math.round(k)+"px","margin-left":Math.floor(g)+"px","margin-top":Math.floor(b)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(d)+"px",height:Math.round(k)+"px"})),this.canvas&&(this.canvas.width=Math.round(d*a),this.canvas.height=Math.round(k*a),this.wd?(this.canvas.style.left=Math.floor(g)+"px",this.canvas.style.top=
Math.floor(b)+"px",this.canvas.style.width=Math.round(d)+"px",this.canvas.style.height=Math.round(k)+"px"):this.Wf&&!this.Xa&&jQuery(this.canvas).css({width:Math.round(d)+"px",height:Math.round(k)+"px"})),this.Cb&&(this.Cb.width=Math.round(d),this.Cb.height=Math.round(k),jQuery(this.Cb).css({width:Math.round(d)+"px",height:Math.round(k)+"px"})),this.H&&this.H.gh(Math.round(d*a),Math.round(k*a)),this.ic&&this.xa&&(this.xa.width=Math.round(d),this.xa.height=Math.round(k)),this.xa&&(this.xa.webkitImageSmoothingEnabled=
this.ra,this.xa.mozImageSmoothingEnabled=this.ra,this.xa.msImageSmoothingEnabled=this.ra,this.xa.imageSmoothingEnabled=this.ra),this.$r(),this.Xa||!e&&!this.Xm||window.setTimeout(function(){window.scrollTo(0,1)},100)}};f.prototype.$r=function(){if(this.Au&&0!==this.En){var d="portrait";2===this.En&&(d="landscape");screen.orientation&&screen.orientation.lock?screen.orientation.lock(d):screen.lockOrientation?screen.lockOrientation(d):screen.webkitLockOrientation?screen.webkitLockOrientation(d):screen.mozLockOrientation?
screen.mozLockOrientation(d):screen.msLockOrientation&&screen.msLockOrientation(d)}};f.prototype.gx=function(){this.H.Iu();this.Wm=!0;var d,k,a;d=0;for(k=this.I.length;d<k;d++)a=this.I[d],a.yi&&a.yi()};f.prototype.hx=function(){this.Wm=!1;var d,k,a;d=0;for(k=this.I.length;d<k;d++)a=this.I[d],a.Gk&&a.Gk()};f.prototype.mr=function(){if(!this.Xa){var d=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.Wh)&&!this.bf?jQuery(this.canvas).offset():
jQuery(this.canvas).position();d.position="absolute";jQuery(this.Cb).css(d)}};var e=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;f.prototype.setSuspended=function(d){var k;if(d&&!this.Xh)for(ga("[Construct 2] Suspending"),this.Xh=!0,-1!==this.Mn&&e&&e(this.Mn),-1!==this.vo&&clearTimeout(this.vo),d=0,k=this.Si.length;d<k;d++)this.Si[d](!0);else if(!d&&this.Xh){ga("[Construct 2] Resuming");
this.Xh=!1;this.kk=Ta();this.ag=Ta();d=this.pi=this.Rj=0;for(k=this.Si.length;d<k;d++)this.Si[d](!1);this.Ha(!1)}};f.prototype.uu=function(d){this.Si.push(d)};f.prototype.Me=function(d){return this.Dk[d]};f.prototype.rk=function(d){d&&d.project||ha("Project model unavailable");d=d.project;this.name=d[0];this.Hp=d[1];this.sc=d[12];this.Ip=d[12];this.Ra=d[10];this.Qa=d[11];this.hr=this.Ra/2;this.ir=this.Qa/2;this.Xa&&!this.wd&&(4<=d[12]||0===d[12])&&(ga("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),
this.Ip=this.sc=3);this.Fo=d[18];this.ji=d[19];0===this.ji&&(this.Vg=new Image,this.Vg.src="loading-logo.png");this.vi=d[21];this.Dk=ic();this.Vd=new W(this);var k,a,g,b,c,n,e,m,f;k=0;for(a=d[2].length;k<a;k++)e=d[2][k],g=this.Me(e[0]),lb(e,g.prototype),f=new g(this),f.cl=e[1],f.ef=e[2],f.Oq=e[9],f.M&&f.M(),this.plugins.push(f);this.Dk=ic();k=0;for(a=d[3].length;k<a;k++){e=d[3][k];c=this.Me(e[1]);f=null;g=0;for(b=this.plugins.length;g<b;g++)if(this.plugins[g]instanceof c){f=this.plugins[g];break}var p=
new f.Z(f);p.name=e[0];p.N=e[2];p.Pm=e[3].slice(0);p.hy=e[3].length;p.Bu=e[4];p.Tv=e[5];p.ka=e[11];p.N?(p.Yg=[],p.he=this.Ih++,p.Oa=null):(p.Yg=null,p.he=-1,p.Oa=[]);p.Kj=null;p.Dg=null;p.Dp=null;p.Xb=!1;p.rc=null;e[6]?(p.gl=e[6][0],p.hl=e[6][1],p.po=e[6][2]):(p.gl=null,p.hl=0,p.po=0);e[7]?p.ec=e[7]:p.ec=null;p.index=k;p.k=[];p.Aj=[];p.xf=[new mb(p)];p.de=0;p.Yc=null;p.Nu=0;p.jh=!0;p.rl=nb;p.$v=ob;p.fw=pb;p.U=qb;p.Di=rb;p.Ei=sb;p.pf=tb;p.Uj=ub;p.wm=vb;p.zm=wb;p.pd=xb;p.Np=zb;p.sj=new db(this.Ra,this.Qa);
p.ij=!0;p.jj=!1;p.fa={};p.toString=Ab;p.bb=[];g=0;for(b=e[8].length;g<b;g++){m=e[8][g];var v=this.Me(m[1]),u=null;c=0;for(n=this.bb.length;c<n;c++)if(this.bb[c]instanceof v){u=this.bb[c];break}u||(u=new v(this),u.Ck=[],u.Bk=new da,u.M&&u.M(),this.bb.push(u),jc&&u instanceof jc&&(this.Jr=u),kc&&u instanceof kc&&(this.mq=u));-1===u.Ck.indexOf(p)&&u.Ck.push(p);c=new u.Z(u,p);c.name=m[0];c.ka=m[2];c.M();p.bb.push(c)}p.global=e[9];p.Sm=e[10];p.T=[];g=0;for(b=e[12].length;g<b;g++)p.T.push({id:e[12][g][0],
name:e[12][g][1],Eb:-1,Hb:!0,index:g});p.kl=e[13];this.Fo&&!p.N&&!p.Sm&&f.ef||p.M();p.name&&(this.types[p.name]=p);this.I.push(p);f.cl&&(g=new f.S(p),g.uid=this.vi++,g.qr=this.Rq++,g.Sf=0,g.Mh=Bb,g.toString=Cb,g.C=e[14],g.M(),p.k.push(g),this.te[g.uid.toString()]=g)}k=0;for(a=d[4].length;k<a;k++)for(c=d[4][k],n=this.I[c[0]],g=1,b=c.length;g<b;g++)e=this.I[c[g]],e.Oa.push(n),n.Yg.push(e);k=0;for(a=d[27].length;k<a;k++){c=d[27][k];n=[];g=0;for(b=c.length;g<b;g++)n.push(this.I[c[g]]);g=0;for(b=n.length;g<
b;g++)n[g].Xb=!0,n[g].rc=n}if(0<this.Ih)for(k=0,a=this.I.length;k<a;k++)if(e=this.I[k],!e.N&&e.Oa.length){e.Kj=Array(this.Ih);e.Dg=Array(this.Ih);e.Dp=Array(this.Ih);p=[];g=u=v=m=0;for(b=e.Oa.length;g<b;g++)for(f=e.Oa[g],e.Kj[f.he]=m,m+=f.hy,e.Dg[f.he]=v,v+=f.Bu,e.Dp[f.he]=u,u+=f.Tv,c=0,n=f.T.length;c<n;c++)p.push(xa({},f.T[c]));e.T=p.concat(e.T);g=0;for(b=e.T.length;g<b;g++)e.T[g].index=g}k=0;for(a=d[5].length;k<a;k++)e=d[5][k],g=new Db(this,e),this.hn[g.name]=g,this.yd.push(g);k=0;for(a=d[6].length;k<
a;k++)e=d[6][k],g=new Eb(this,e),this.mm[g.name]=g,this.ge.push(g);k=0;for(a=this.ge.length;k<a;k++)this.ge[k].$a();k=0;for(a=this.ge.length;k<a;k++)this.ge[k].Ao();k=0;for(a=this.pl.length;k<a;k++)this.pl[k].$a();this.pl.length=0;this.zu=d[7];this.om=d[8];this.gd=d[9];this.vh=1;this.lv=d[13];this.ra=d[14];this.Gl=d[15];this.gy=d[17];this.En=d[20];this.Au=0<this.En;this.ux=d[22];this.$c=this.rs=d[23];this.dv=d[24];this.zx=d[25];this.el=Date.now();this.Dk.length=0;this.Iw()};var w=!1;f.prototype.Ho=
function(d,k){d.cocoonLazyLoad=!0;d.onerror=function(k){w=d.sp=!0;console&&console.error&&console.error("Error loading image '"+d.src+"': ",k)};this.wd?d.src=k:d.src||("undefined"!==typeof XAPKReader?XAPKReader.get(k,function(k){d.src=k},function(a){w=d.sp=!0;console&&console.error&&console.error("Error extracting image '"+k+"' from expansion file: ",a)}):d.src=k);this.oh.push(d)};f.prototype.Pv=function(d){var k,a;k=0;for(a=this.oh.length;k<a;k++)if(this.oh[k].Ju===d)return this.oh[k];return null};
var g=0,m=!1;f.prototype.Aw=function(){this.xg&&(g=this.xg.Wx(this.zu))};f.prototype.op=function(){var d=g,k=0,a=0,b=!0,c,n,a=0;for(c=this.oh.length;a<c;a++){n=this.oh[a];var e=n.Xl;if(!e||0>=e)e=5E4;d+=e;n.src&&(n.complete||n.loaded)&&!n.sp?k+=e:b=!1}b&&this.zx&&this.xg&&(m||(this.xg.Zx(),m=!0),a=this.xg.gw(),k+=a,a<g&&(b=!1));this.jg=0==d?0:k/d;return b};f.prototype.go=function(){if(this.xa||this.H){var d=this.xa||this.Gn;this.Cb&&this.mr();this.jg=0;this.rq=-1;if(this.op())this.Bw();else{var k=
Date.now()-this.el;if(d){var a=this.width,g=this.height,b=this.devicePixelRatio;this.Cb&&(a=this.wj,g=this.vj,b=1);if(3!==this.ji&&(this.vd||500<=k&&this.rq!=this.jg)){d.clearRect(0,0,a,g);var k=a/2,g=g/2,a=0===this.ji&&this.Vg.complete,c=40*b,n=0,e=80*b,m;a&&(e=this.Vg.width*b,m=this.Vg.height*b,c=e/2,n=m/2,d.drawImage(this.Vg,L(k-c),L(g-n),e,m));1>=this.ji?(k=L(k-c)+.5,g=L(g+(n+(a?12*b:0)))+.5,d.fillStyle=w?"red":"DodgerBlue",d.fillRect(k,g,Math.floor(e*this.jg),6*b),d.strokeStyle="black",d.strokeRect(k,
g,e,6*b),d.strokeStyle="white",d.strokeRect(k-1*b,g-1*b,e+2*b,8*b)):2===this.ji&&(d.font=this.wd?"12pt ArialMT":"12pt Arial",d.fillStyle=w?"#f00":"#999",d.Yy="middle",b=Math.round(100*this.jg)+"%",a=d.measureText?d.measureText(b):null,d.fillText(b,k-(a?a.width:0)/2,g))}this.rq=this.jg}setTimeout(function(d){return function(){d.go()}}(this),this.vd?10:100)}}};f.prototype.Bw=function(){this.Cb&&(this.canvas.parentNode.removeChild(this.Cb),this.Cb=this.Gn=null);this.el=Date.now();this.ag=Ta();var d,
k,a;if(this.Fo)for(d=0,k=this.I.length;d<k;d++)a=this.I[d],a.N||a.Sm||!a.Fa.ef||a.M();else this.$h=!1;d=0;for(k=this.yd.length;d<k;d++)this.yd[d].Ku();2<=this.sc&&(d=this.Ra/this.Qa,k=this.width/this.height,this.vh=2!==this.sc&&k>d||2===this.sc&&k<d?this.height/this.Qa:this.width/this.Ra);this.Hp?this.hn[this.Hp].no():this.yd[0].no();this.Fo||(this.vk=1,this.trigger(W.prototype.m.Zo,null));navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();d=0;for(k=this.I.length;d<
k;d++)a=this.I[d],a.cx&&a.cx();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.Ha(!1);this.ic&&AppMobi.webview.execute("onGameReady();")};var r=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;f.prototype.Ha=function(d,k,a){if(this.da){var g=Ta();if(a||!this.Xh||d){d||(r?this.Mn=r(this.Rr):this.vo=setTimeout(this.Rr,this.me?1:
16));k=k||g;var b=this.sc;((a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.bf)||this.Wh)&&0<this.Nf&&(b=this.Nf);0<b&&(!this.gk||window.self!==window.top)&&(b=window.innerHeight,this.fi===window.innerWidth&&this.ei===b||this.setSize(h(),l()));this.Xa||(a?(this.Mj||(this.um=jQuery(this.canvas).css("margin")||"0",this.Mj=!0),this.Uh||this.df||jQuery(this.canvas).css({"margin-left":""+Math.floor((screen.width-this.width/this.devicePixelRatio)/
2)+"px","margin-top":""+Math.floor((screen.height-this.height/this.devicePixelRatio)/2)+"px"})):this.Mj?(this.Uh||this.df||jQuery(this.canvas).css("margin",this.um),this.um="",this.Mj=!1,0===this.sc&&this.setSize(Math.round(this.Yq/this.devicePixelRatio),Math.round(this.Xq/this.devicePixelRatio),!0)):(this.Yq=this.width,this.Xq=this.height));this.$h&&(a=this.op(),this.vk=this.jg,a&&(this.$h=!1,this.jg=1,this.trigger(W.prototype.m.Zo,null)));this.Xw(k);!this.Y&&!this.vd||this.Wm||this.Ri||d||(this.Y=
!1,this.H?this.Jc():this.td(),this.dl&&(this.canvas&&this.canvas.toDataURL&&(this.canvas.toDataURL(this.dl[0],this.dl[1]),this.trigger(W.prototype.m.nt,null)),this.dl=null));this.Uy||(this.Tc++,this.Mf++,this.Rj++);this.pi+=Ta()-g}}};f.prototype.Xw=function(d){var k,a,g,b,c,n,e,m;1E3<=d-this.ag&&(this.ag+=1E3,1E3<=d-this.ag&&(this.ag=d),this.rm=this.Rj,this.Rj=0,this.Wl=this.pi,this.pi=0);0!==this.kk&&(k=d-this.kk,0>k&&(k=0),this.Ve=k/1E3,.5<this.Ve?this.Ve=0:.1<this.Ve&&(this.Ve=.1));this.kk=d;this.ee=
this.Ve*this.qg;this.Pc.add(this.ee);this.Ie.add(this.Ve);d=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.Wh)&&!this.bf;2<=this.sc||d&&0<this.Nf?(k=this.Ra/this.Qa,a=this.width/this.height,g=this.sc,d&&0<this.Nf&&(g=this.Nf),this.vh=2!==g&&a>k||2===g&&a<k?this.height/this.Qa:this.width/this.Ra,this.da&&(this.da.Yn(this.da.scrollX),this.da.Zn(this.da.scrollY))):this.vh=this.Wf?this.devicePixelRatio:1;this.Gb();this.Oc++;this.Vd.Lx();
this.Oc--;this.Gb();this.Oc++;a=this.Vq.He();d=0;for(k=a.length;d<k;d++)a[d].Wy();d=0;for(k=this.I.length;d<k;d++)if(n=this.I[d],!n.N&&(n.bb.length||n.Oa.length))for(a=0,g=n.k.length;a<g;a++)for(e=n.k[a],b=0,c=e.V.length;b<c;b++)e.V[b].Ha();d=0;for(k=this.I.length;d<k;d++)if(n=this.I[d],!n.N&&(n.bb.length||n.Oa.length))for(a=0,g=n.k.length;a<g;a++)for(e=n.k[a],b=0,c=e.V.length;b<c;b++)m=e.V[b],m.nr&&m.nr();a=this.zn.He();d=0;for(k=a.length;d<k;d++)a[d].Ha();this.Oc--;this.Dw();for(d=0;this.zh&&10>
d++;)this.Bp(this.zh);d=0;for(k=this.ge.length;d<k;d++)this.ge[d].Jm=!1;this.da.Kf&&this.da.Kf.gb();this.Hi.length=0;this.gn=!1;this.Oc++;d=0;for(k=this.I.length;d<k;d++)if(n=this.I[d],!n.N&&(n.bb.length||n.Oa.length))for(a=0,g=n.k.length;a<g;a++)for(e=n.k[a],b=0,c=e.V.length;b<c;b++)m=e.V[b],m.qo&&m.qo();a=this.Wq.He();d=0;for(k=a.length;d<k;d++)a[d].qo();this.Oc--};f.prototype.Bp=function(d){var k=this.da;this.da.$x();var a,g,b,c,n,e,m;if(this.H)for(a=0,g=this.I.length;a<g;a++)n=this.I[a],n.N||
!n.ql||n.global&&0!==n.k.length||-1!==d.Sh.indexOf(n)||n.ql();k==d&&(this.Vd.pc.length=0);this.Hi.length=0;d.no();a=0;for(g=this.I.length;a<g;a++)if(n=this.I[a],n.global||n.Fa.cl)for(d=0,k=n.k.length;d<k;d++)if(e=n.k[d],e.Cn&&e.Cn(),e.V)for(b=0,c=e.V.length;b<c;b++)m=e.V[b],m.Cn&&m.Cn();this.gn=this.Y=!0;this.Gb()};f.prototype.jl=function(d){this.zn.add(d)};f.prototype.Ze=function(d){return d&&-1!==d.ti?this.Ve*d.ti:this.ee};f.prototype.td=function(){this.da.td(this.xa);this.ic&&this.xa.present()};
f.prototype.Jc=function(){this.da.Jc(this.H);this.H.Bx()};f.prototype.Fl=function(d){d&&this.Cj.push(d)};f.prototype.Hx=function(d){Da(this.Cj,d)};f.prototype.Gg=function(d){d=d.toString();return this.te.hasOwnProperty(d)?this.te[d]:null};var p=[];f.prototype.Le=function(d){var k,a;k=d.type.name;var g=null;if(this.If.hasOwnProperty(k)){if(g=this.If[k],g.contains(d))return}else g=p.length?p.pop():new da,this.If[k]=g;g.add(d);this.$e=!0;if(d.Xb)for(k=0,a=d.siblings.length;k<a;k++)this.Le(d.siblings[k]);
this.Rm&&g.mh.push(d);this.Oc++;this.trigger(Object.getPrototypeOf(d.type.Fa).m.pt,d);this.Oc--};f.prototype.Gb=function(){if(this.$e){var d,k,a,g,b,c;this.Rm=!0;a=0;for(b=this.sd.length;a<b;++a)for(d=this.sd[a],k=d.type,k.k.push(d),g=0,c=k.Oa.length;g<c;++g)k.Oa[g].k.push(d),k.Oa[g].jh=!0;this.sd.length=0;this.ht();Sa(this.If);this.$e=this.Rm=!1}};f.prototype.ht=function(){for(var d in this.If)this.If.hasOwnProperty(d)&&this.Fs(this.If[d])};f.prototype.Fs=function(d){var k=d.He(),a=k[0].type,g,b,
c,n,e,m;Ua(a.k,d);a.jh=!0;0===a.k.length&&(a.jj=!1);g=0;for(b=a.Oa.length;g<b;++g)m=a.Oa[g],Ua(m.k,d),m.jh=!0;g=0;for(b=this.Vd.pc.length;g<b;++g)if(e=this.Vd.pc[g],e.ac.hasOwnProperty(a.index)&&Ua(e.ac[a.index].ke,d),!a.N)for(c=0,n=a.Oa.length;c<n;++c)m=a.Oa[c],e.ac.hasOwnProperty(m.index)&&Ua(e.ac[m.index].ke,d);if(e=k[0].A){if(e.Dd)for(c=e.k,g=0,b=c.length;g<b;++g)n=c[g],d.contains(n)&&(n.la(),e.Bc.update(n,n.lc,null),n.lc.set(0,0,-1,-1));Ua(e.k,d);e.Li(0)}for(g=0;g<k.length;++g)this.Es(k[g],a);
d.clear();p.push(d);this.Y=!0};f.prototype.Es=function(d,a){var g,b,c;g=0;for(b=this.Cj.length;g<b;++g)this.Cj[g](d);d.Te&&a.sj.update(d,d.Te,null);(g=d.A)&&g.dh(d,!0);if(d.V)for(g=0,b=d.V.length;g<b;++g)c=d.V[g],c.ig&&c.ig(),c.behavior.Bk.remove(d);this.Vq.remove(d);this.zn.remove(d);this.Wq.remove(d);d.ig&&d.ig();this.te.hasOwnProperty(d.uid.toString())&&delete this.te[d.uid.toString()];this.Ek--;100>a.Aj.length&&a.Aj.push(d)};f.prototype.Yl=function(d,a,g,b){if(d.N){var c=L(Math.random()*d.Yg.length);
return this.Yl(d.Yg[c],a,g,b)}return d.Yc?this.Ue(d.Yc,a,!1,g,b,!1):null};var z=[];f.prototype.Ue=function(d,a,g,b,c,n){var e,m,f,p;if(!d)return null;var v=this.I[d[1]],u=v.Fa.ef;if(this.$h&&u&&!v.Sm||u&&!this.H&&11===d[0][11])return null;var h=a;u||(a=null);var r;v.Aj.length?(r=v.Aj.pop(),r.kc=!0,v.Fa.S.call(r,v)):(r=new v.Fa.S(v),r.kc=!1);!g||n||this.te.hasOwnProperty(d[2].toString())?r.uid=this.vi++:r.uid=d[2];this.te[r.uid.toString()]=r;r.qr=this.Rq++;r.Sf=v.k.length;e=0;for(m=this.sd.length;e<
m;++e)this.sd[e].type===v&&r.Sf++;r.Mh=Bb;r.toString=Cb;f=d[3];if(r.kc)Sa(r.fa);else{r.fa={};if("undefined"!==typeof cr_is_preview)for(r.aq=[],r.aq.length=f.length,e=0,m=f.length;e<m;e++)r.aq[e]=f[e][1];r.mb=[];r.mb.length=f.length}e=0;for(m=f.length;e<m;e++)r.mb[e]=f[e][0];if(u){var l=d[0];r.x=ka(b)?l[0]:b;r.y=ka(c)?l[1]:c;r.z=l[2];r.width=l[3];r.height=l[4];r.depth=l[5];r.u=l[6];r.opacity=l[7];r.gc=l[8];r.hc=l[9];r.fc=l[10];e=l[11];!this.H&&v.T.length&&(r.fc=e);r.Ah=fb(r.fc);this.G&&gb(r,r.fc,this.G);
if(r.kc){e=0;for(m=l[12].length;e<m;e++)for(f=0,p=l[12][e].length;f<p;f++)r.Va[e][f]=l[12][e][f];r.ya.set(0,0,0,0);r.Te.set(0,0,-1,-1);r.lc.set(0,0,-1,-1);r.Sb.Mi(r.ya);r.Nl.length=0}else{r.Va=l[12].slice(0);e=0;for(m=r.Va.length;e<m;e++)r.Va[e]=l[12][e].slice(0);r.wa=[];r.Ne=[];r.Ne.length=v.T.length;r.ya=new R(0,0,0,0);r.Te=new R(0,0,-1,-1);r.lc=new R(0,0,-1,-1);r.Sb=new wa;r.Nl=[];r.D=Fb;r.Ry=Gb;r.Ub=Hb;r.la=Ib;r.fy=Jb;r.ls=Kb;r.Ld=Lb}r.Vi=!1;r.Vr=0;r.Ur=0;r.Tr=null;14===l.length&&(r.Vi=!0,r.Vr=
l[13][0],r.Ur=l[13][1],r.Tr=l[13][2]);e=0;for(m=v.T.length;e<m;e++)r.Ne[e]=!0;r.Ge=Mb;r.Ge();r.ns=!!r.wa.length;r.Ml=!0;r.Tl=!0;v.ij=!0;r.visible=!0;r.ti=-1;r.A=a;r.Ed=a.k.length;"undefined"===typeof r.za&&(r.za=null);this.Y=r.ae=!0}var w;e=z.length=0;for(m=v.Oa.length;e<m;e++)z.push.apply(z,v.Oa[e].bb);z.push.apply(z,v.bb);if(r.kc)for(e=0,m=z.length;e<m;e++){var A=z[e];w=r.V[e];w.kc=!0;A.behavior.S.call(w,A,r);l=d[4][e];f=0;for(p=l.length;f<p;f++)w.C[f]=l[f];w.M();A.behavior.Bk.add(r)}else for(r.V=
[],e=0,m=z.length;e<m;e++)A=z[e],w=new A.behavior.S(A,r),w.kc=!1,w.C=d[4][e].slice(0),w.M(),r.V.push(w),A.behavior.Bk.add(r);l=d[5];if(r.kc)for(e=0,m=l.length;e<m;e++)r.C[e]=l[e];else r.C=l.slice(0);this.sd.push(r);this.$e=!0;a&&(a.uh(r,!0),1!==a.ed||1!==a.fd)&&(v.jj=!0);this.Ek++;if(v.Xb){if(r.Xb=!0,r.kc?r.siblings.length=0:r.siblings=[],!g&&!n){e=0;for(m=v.rc.length;e<m;e++)if(v.rc[e]!==v){if(!v.rc[e].Yc)return null;r.siblings.push(this.Ue(v.rc[e].Yc,h,!1,u?r.x:b,u?r.y:c,!0))}e=0;for(m=r.siblings.length;e<
m;e++)for(r.siblings[e].siblings.push(r),f=0;f<m;f++)e!==f&&r.siblings[e].siblings.push(r.siblings[f])}}else r.Xb=!1,r.siblings=null;r.M();e=0;for(m=r.V.length;e<m;e++)r.V[e].yx&&r.V[e].yx();return r};f.prototype.Am=function(d){var a,g;a=0;for(g=this.da.ca.length;a<g;a++){var b=this.da.ca[a];if(ib(b.name,d))return b}return null};f.prototype.Kh=function(d){d=L(d);0>d&&(d=0);d>=this.da.ca.length&&(d=this.da.ca.length-1);return this.da.ca[d]};f.prototype.Vl=function(d){var a,g;a=0;for(g=d.length;a<g;a++)d[a].U().ea=
!0};f.prototype.Di=function(d){var a,g;a=0;for(g=d.length;a<g;a++)d[a].Di()};f.prototype.Ei=function(d){var a,g;a=0;for(g=d.length;a<g;a++)d[a].Ei()};f.prototype.pf=function(d){var a,g;a=0;for(g=d.length;a<g;a++)d[a].pf()};f.prototype.gs=function(d){if(d.ij){var a,g,b=d.k;a=0;for(g=b.length;a<g;++a)b[a].ls();b=this.sd;a=0;for(g=b.length;a<g;++a)b[a].type===d&&b[a].ls();d.ij=!1}};f.prototype.xm=function(d,a,g,b){var c,e,n=d?1!==d.ed||1!==d.fd:!1;if(a.N)for(d=0,c=a.Yg.length;d<c;++d)e=a.Yg[d],n||e.jj?
Ba(b,e.k):(this.gs(e),e.sj.Uk(g,b));else n||a.jj?Ba(b,a.k):(this.gs(a),a.sj.Uk(g,b))};f.prototype.Tp=function(d,a,g,b){var c,e;c=0;for(e=a.length;c<e;++c)this.xm(d,a[c],g,b)};f.prototype.kw=function(d,a,g){var b=this.Jr;b&&this.Tp(d,b.Ck,a,g)};f.prototype.dw=function(d,a,g){var b=this.mq;b&&this.Tp(d,b.Ck,a,g)};f.prototype.ay=function(d,a,g){var b=d.U(),c,e,n,m,f,p;if(b.ea)for(b.ea=!1,c=b.k.length=0,m=d.k.length;c<m;c++)n=d.k[c],n.la(),f=n.A.qc(a,g,!0),p=n.A.qc(a,g,!1),n.Ub(f,p)&&b.k.push(n);else{c=
e=0;for(m=b.k.length;c<m;c++)n=b.k[c],n.la(),f=n.A.qc(a,g,!0),p=n.A.qc(a,g,!1),n.Ub(f,p)&&(b.k[e]=b.k[c],e++);b.k.length=e}d.pd();return b.Im()};f.prototype.Pb=function(d,a){if(!(d&&a&&d!==a&&d.ae&&a.ae))return!1;d.la();a.la();var g=d.A,b=a.A,c,e,n,m,f,p,v,r;if(g===b||g.ed===b.ed&&b.fd===b.fd&&g.scale===b.scale&&g.u===b.u&&g.Fd===b.Fd){if(!d.ya.Jw(a.ya)||!d.Sb.bq(a.Sb)||d.Vi&&a.Vi)return!1;if(d.Vi)return this.Nr(d,a);if(a.Vi)return this.Nr(a,d);v=d.za&&!d.za.Mg();c=a.za&&!a.za.Mg();if(!v&&!c)return!0;
v?(d.za.Ff(d.width,d.height,d.u),v=d.za):(this.Bd.hh(d.Sb,d.x,d.y,d.width,d.height),v=this.Bd);c?(a.za.Ff(a.width,a.height,a.u),r=a.za):(this.Bd.hh(a.Sb,a.x,a.y,a.width,a.height),r=this.Bd);return v.Th(r,a.x-d.x,a.y-d.y)}v=d.za&&!d.za.Mg();c=a.za&&!a.za.Mg();v?(d.za.Ff(d.width,d.height,d.u),this.Bd.Cr(d.za)):this.Bd.hh(d.Sb,d.x,d.y,d.width,d.height);v=this.Bd;c?(a.za.Ff(a.width,a.height,a.u),this.oo.Cr(a.za)):this.oo.hh(a.Sb,a.x,a.y,a.width,a.height);r=this.oo;c=0;for(e=v.Ac;c<e;c++)n=2*c,m=n+1,f=
v.Ga[n],p=v.Ga[m],v.Ga[n]=g.Pa(f+d.x,p+d.y,!0),v.Ga[m]=g.Pa(f+d.x,p+d.y,!1);v.la();c=0;for(e=r.Ac;c<e;c++)n=2*c,m=n+1,f=r.Ga[n],p=r.Ga[m],r.Ga[n]=b.Pa(f+a.x,p+a.y,!0),r.Ga[m]=b.Pa(f+a.x,p+a.y,!1);r.la();return v.Th(r,0,0)};var C=new wa;new R(0,0,0,0);var u=[];f.prototype.Nr=function(d,a){var g,b,c,e,n=a.ya,m=d.x,f=d.y;d.Xv(n,u);var p=a.za&&!a.za.Mg();g=0;for(b=u.length;g<b;++g)if(c=u[g],e=c.Aa,n.Kw(e,m,f)&&(C.Mi(e),C.offset(m,f),C.bq(a.Sb)))if(p)if(a.za.Ff(a.width,a.height,a.u),c.ve){if(c.ve.Th(a.za,
a.x-(m+e.left),a.y-(f+e.top)))return u.length=0,!0}else{if(this.Bd.hh(C,0,0,e.right-e.left,e.bottom-e.top),this.Bd.Th(a.za,a.x,a.y))return u.length=0,!0}else if(c.ve){if(this.Bd.hh(a.Sb,0,0,a.width,a.height),c.ve.Th(this.Bd,-(m+e.left),-(f+e.top)))return u.length=0,!0}else return u.length=0,!0;u.length=0;return!1};f.prototype.as=function(d,a){if(!a)return!1;var g,b,c,e,n;g=0;for(b=d.bb.length;g<b;g++)if(d.bb[g].behavior instanceof a)return!0;if(!d.N)for(g=0,b=d.Oa.length;g<b;g++)for(n=d.Oa[g],c=0,
e=n.bb.length;c<e;c++)if(n.bb[c].behavior instanceof a)return!0;return!1};f.prototype.bs=function(d){return this.as(d,ac.By)};f.prototype.zo=function(d){return this.as(d,ac.Cy)};var n=[];f.prototype.Sa=function(d){var a,g,b;d.la();this.kw(d.A,d.ya,n);a=0;for(g=n.length;a<g;++a)if(b=n[a],b.fa.solidEnabled&&this.Pb(d,b))return n.length=0,b;n.length=0;return null};var v=[];f.prototype.Wd=function(d,a){var g=null;a&&(g=v,g.length=0);d.la();this.dw(d.A,d.ya,n);var b,c,e;b=0;for(c=n.length;b<c;++b)if(e=
n[b],e.fa.jumpthruEnabled&&this.Pb(d,e))if(a)g.push(e);else return n.length=0,e;n.length=0;return g};f.prototype.Rc=function(d,a,g,b,c,e){b=b||50;var n=d.x,m=d.y,f,p=null,v=null;for(f=0;f<b;f++)if(d.x=n+a*f,d.y=m+g*f,d.D(),!this.Pb(d,p)&&((p=this.Sa(d))&&(v=p),!p&&(c&&(e?p=this.Pb(d,e)?e:null:p=this.Wd(d),p&&(v=p)),!p)))return v&&this.Kn(d,a,g,v),!0;d.x=n;d.y=m;d.D();return!1};f.prototype.Kn=function(d,a,g,b){var c=2,e,n=!1;e=!1;for(var m=d.x,f=d.y;16>=c;)e=1/c,c*=2,d.x+=a*e*(n?1:-1),d.y+=g*e*(n?
1:-1),d.D(),this.Pb(d,b)?e=n=!0:(e=n=!1,m=d.x,f=d.y);e&&(d.x=m,d.y=f,d.D())};f.prototype.Ln=function(d,a){var g=ka(a)?100:a,b=0,c=d.x,e=d.y,n=0,m=0,f=0,p=this.Sa(d);if(!p)return!0;for(;b<=g;){switch(n){case 0:m=0;f=-1;b++;break;case 1:m=1;f=-1;break;case 2:m=1;f=0;break;case 3:f=m=1;break;case 4:m=0;f=1;break;case 5:m=-1;f=1;break;case 6:m=-1;f=0;break;case 7:f=m=-1}n=(n+1)%8;d.x=L(c+m*b);d.y=L(e+f*b);d.D();if(!this.Pb(d,p)&&(p=this.Sa(d),!p))return!0}d.x=c;d.y=e;d.D();return!1};f.prototype.Qd=function(d,
a){d.ae&&a.ae&&this.Hi.push([d,a])};f.prototype.Gu=function(d,a){var g,b,c;g=0;for(b=this.Hi.length;g<b;g++)if(c=this.Hi[g],c[0]==d&&c[1]==a||c[0]==a&&c[1]==d)return!0;return!1};f.prototype.Eu=function(d,a,g){var b=d.x,c=d.y,e=pa(10,Pa(a,g,b,c)),n=Ja(a,g,b,c),m=this.Sa(d);if(!m)return Ga(n+ra);var f=m,p,v,r,u,h=U(5);for(p=1;36>p;p++)if(v=n-p*h,d.x=a+Math.cos(v)*e,d.y=g+Math.sin(v)*e,d.D(),!this.Pb(d,f)&&(f=this.Sa(d),!f)){r=v;break}36===p&&(r=Ga(n+ra));f=m;for(p=1;36>p;p++)if(v=n+p*h,d.x=a+Math.cos(v)*
e,d.y=g+Math.sin(v)*e,d.D(),!this.Pb(d,f)&&(f=this.Sa(d),!f)){u=v;break}36===p&&(u=Ga(n+ra));d.x=b;d.y=c;d.D();if(u===r)return u;d=La(u,r)/2;d=Na(u,r)?Ga(r+d+ra):Ga(u+d);r=Math.cos(n);n=Math.sin(n);u=Math.cos(d);d=Math.sin(d);a=r*u+n*d;return Ja(0,0,r-2*a*u,n-2*a*d)};var A=-1;f.prototype.trigger=function(d,a,g){if(!this.da)return!1;var b=this.da.Kf;if(!b)return!1;var c=!1,e,n,m;A++;var f=b.fm;n=0;for(m=f.length;n<m;++n)e=this.Yr(d,a,f[n],g),c=c||e;e=this.Yr(d,a,b,g);A--;return c||e};f.prototype.Yr=
function(d,a,g,b){var c=!1,e,n,m,f;if(a)for(m=this.xo(d,a,a.type.name,g,b),c=c||m,f=a.type.Oa,e=0,n=f.length;e<n;++e)m=this.xo(d,a,f[e].name,g,b),c=c||m;else m=this.xo(d,a,"system",g,b),c=c||m;return c};f.prototype.xo=function(a,g,b,c,e){var n,m=!1,f=!1,f="undefined"!==typeof e,p=(f?c.Fp:c.Zr)[b];if(!p)return m;var v=null;c=0;for(n=p.length;c<n;++c)if(p[c].method==a){v=p[c].Gh;break}if(!v)return m;var r;f?r=v[e]:r=v;if(!r)return null;c=0;for(n=r.length;c<n;c++)a=r[c][0],e=r[c][1],f=this.Nv(g,b,a,
e),m=m||f;return m};f.prototype.Nv=function(a,g,b,c){var e,n,m=!1;this.yo++;var f=this.kb().ib;f&&this.Di(f.wf);var p=1<this.yo;this.Di(b.wf);p&&this.Dx();var v=this.Rk(b);v.ib=b;a&&(e=this.types[g].U(),e.ea=!1,e.k.length=1,e.k[0]=a,this.types[g].pd());a=!0;if(b.parent){g=v.Mr;for(e=b.parent;e;)g.push(e),e=e.parent;g.reverse();e=0;for(n=g.length;e<n;e++)if(!g[e].Nx()){a=!1;break}}a&&(this.Mf++,b.cd?b.Mx(c):b.gb(),m=m||v.$f);this.Mk();p&&this.wx();this.pf(b.wf);f&&this.pf(f.wf);this.$e&&0===this.Oc&&
0===A&&!this.Tm&&this.Gb();this.yo--;return m};f.prototype.Vj=function(){var a=this.kb();return a.ib.hb[a.cb]};f.prototype.Yv=function(){var a=this.kb();return a.ib.Vc[a.cc]};f.prototype.Dx=function(){this.xk++;this.xk>=this.qn.length&&this.qn.push([])};f.prototype.wx=function(){this.xk--};f.prototype.Lp=function(){return this.qn[this.xk]};f.prototype.Rk=function(a){this.Gj++;this.Gj>=this.lm.length&&this.lm.push(new Nb);var g=this.kb();g.reset(a);return g};f.prototype.Mk=function(){this.Gj--};f.prototype.kb=
function(){return this.lm[this.Gj]};f.prototype.Ex=function(){this.yk++;this.yk>=this.sn.length&&this.sn.push(ba({name:void 0,index:0,Fb:!1}));var a=this.Zv();a.name=void 0;a.index=0;a.Fb=!1;return a};f.prototype.xx=function(){this.yk--};f.prototype.Zv=function(){return this.sn[this.yk]};f.prototype.Mp=function(a,g){for(var b,c,e,n,m,f;g;){b=0;for(c=g.kd.length;b<c;b++)if(f=g.kd[b],f instanceof Ob&&ib(a,f.name))return f;g=g.parent}b=0;for(c=this.ge.length;b<c;b++)for(m=this.ge[b],e=0,n=m.We.length;e<
n;e++)if(f=m.We[e],f instanceof Ob&&ib(a,f.name))return f;return null};f.prototype.Op=function(a){var g,b;g=0;for(b=this.yd.length;g<b;g++)if(this.yd[g].ka===a)return this.yd[g];return null};f.prototype.Xj=function(a){var g,b;g=0;for(b=this.I.length;g<b;g++)if(this.I[g].ka===a)return this.I[g];return null};f.prototype.aw=function(a){var g,b;g=0;for(b=this.Oe.length;g<b;g++)if(this.Oe[g].ka===a)return this.Oe[g];return null};f.prototype.Dw=function(){var d=this,g=this.Xn,b=this.ne,e=this.pk,n=!1;this.Hr&&
(n=!0,g="__c2_continuouspreview",this.Hr=!1);if(g.length){this.Gb();b=this.Rx();if(window.indexedDB&&!this.vd)t(g,b,function(){ga("Saved state to IndexedDB storage ("+b.length+" bytes)");d.ne=b;d.trigger(W.prototype.m.Bl,null);d.ne="";n&&c()},function(a){try{localStorage.setItem("__c2save_"+g,b),ga("Saved state to WebStorage ("+b.length+" bytes)"),d.ne=b,d.trigger(W.prototype.m.Bl,null),d.ne="",n&&c()}catch(e){ga("Failed to save game state: "+a+"; "+e)}});else try{localStorage.setItem("__c2save_"+
g,b),ga("Saved state to WebStorage ("+b.length+" bytes)"),d.ne=b,this.trigger(W.prototype.m.Bl,null),d.ne="",n&&c()}catch(m){ga("Error saving to WebStorage: "+m)}this.$b=this.pk=this.Xn=""}e.length&&(window.indexedDB&&!this.vd?a(e,function(a){a?(d.$b=a,ga("Loaded state from IndexedDB storage ("+d.$b.length+" bytes)")):(d.$b=localStorage.getItem("__c2save_"+e)||"",ga("Loaded state from WebStorage ("+d.$b.length+" bytes)"));d.Ri=!1;d.$b.length||d.trigger(W.prototype.m.Al,null)},function(){d.$b=localStorage.getItem("__c2save_"+
e)||"";ga("Loaded state from WebStorage ("+d.$b.length+" bytes)");d.Ri=!1;d.$b.length||d.trigger(W.prototype.m.Al,null)}):(this.$b=localStorage.getItem("__c2save_"+e)||"",ga("Loaded state from WebStorage ("+this.$b.length+" bytes)"),this.Ri=!1,d.$b.length||d.trigger(W.prototype.m.Al,null)),this.Xn=this.pk="");this.$b.length&&(this.Gb(),this.Ww(this.$b),this.ne=this.$b,this.trigger(W.prototype.m.Et,null),this.$b=this.ne="")};f.prototype.Rx=function(){var a,g,c,e,n,m,f,p={c2save:!0,version:1,rt:{time:this.Pc.qa,
walltime:this.Ie.qa,timescale:this.qg,tickcount:this.Tc,execcount:this.Mf,next_uid:this.vi,running_layout:this.da.ka,start_time_offset:Date.now()-this.el},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};a=0;for(g=this.I.length;a<g;a++)if(n=this.I[a],!n.N&&!this.bs(n)){m={instances:[]};Ra(n.fa)&&(m.ex=b(n.fa));c=0;for(e=n.k.length;c<e;c++)m.instances.push(this.Wn(n.k[c]));p.types[n.ka.toString()]=m}a=0;for(g=this.yd.length;a<g;a++)c=this.yd[a],p.layouts[c.ka.toString()]=c.ab();e=p.events.groups;
a=0;for(g=this.Oe.length;a<g;a++)c=this.Oe[a],e[c.ka.toString()]=this.Oh[c.Nh].Hg;g=p.events.cnds;for(f in this.zg)this.zg.hasOwnProperty(f)&&(a=this.zg[f],Ra(a.fa)&&(g[f]={ex:b(a.fa)}));g=p.events.acts;for(f in this.wg)this.wg.hasOwnProperty(f)&&(a=this.wg[f],Ra(a.fa)&&(g[f]={ex:a.fa}));g=p.events.vars;for(f in this.nh)this.nh.hasOwnProperty(f)&&(a=this.nh[f],a.dk||a.parent&&!a.Zh||(g[f]=a.data));p.system=this.Vd.ab();return JSON.stringify(p)};f.prototype.rr=function(){var a,g,b,c,e,n;this.te={};
a=0;for(g=this.I.length;a<g;a++)if(b=this.I[a],!b.N)for(c=0,e=b.k.length;c<e;c++)n=b.k[c],this.te[n.uid.toString()]=n};f.prototype.Ww=function(a){a=JSON.parse(a);if(a.c2save&&!(1<a.version)){var g=a.rt;this.Pc.reset();this.Pc.qa=g.time;this.Ie.reset();this.Ie.qa=g.walltime||0;this.qg=g.timescale;this.Tc=g.tickcount;this.Mf=g.execcount;this.el=Date.now()-g.start_time_offset;var b=g.running_layout;if(b!==this.da.ka)if(b=this.Op(b))this.Bp(b);else return;var c,e,n,m,f,p,v;p=a.types;for(e in p)if(p.hasOwnProperty(e)&&
(m=this.Xj(parseInt(e,10)))&&!m.N&&!this.bs(m)){p[e].ex?m.fa=p[e].ex:Sa(m.fa);f=m.k;n=p[e].instances;b=0;for(c=qa(f.length,n.length);b<c;b++)this.qk(f[b],n[b]);b=n.length;for(c=f.length;b<c;b++)this.Le(f[b]);b=f.length;for(c=n.length;b<c;b++){f=null;if(m.Fa.ef&&(f=this.da.Wj(n[b].w.l),!f))continue;f=this.Ue(m.Yc,f,!1,0,0,!0);this.qk(f,n[b])}m.jh=!0}this.Gb();this.rr();c=a.layouts;for(e in c)c.hasOwnProperty(e)&&(b=this.Op(parseInt(e,10)))&&b.pb(c[e]);c=a.events.groups;for(e in c)c.hasOwnProperty(e)&&
(b=this.aw(parseInt(e,10)))&&this.Oh[b.Nh]&&this.Oh[b.Nh].xr(c[e]);b=a.events.cnds;for(e in b)b.hasOwnProperty(e)&&this.zg.hasOwnProperty(e)&&(this.zg[e].fa=b[e].ex);b=a.events.acts;for(e in b)b.hasOwnProperty(e)&&this.wg.hasOwnProperty(e)&&(this.wg[e].fa=b[e].ex);b=a.events.vars;for(e in b)b.hasOwnProperty(e)&&this.nh.hasOwnProperty(e)&&(this.nh[e].data=b[e]);this.vi=g.next_uid;this.Vd.pb(a.system);b=0;for(c=this.I.length;b<c;b++)if(m=this.I[b],!m.N)for(e=0,a=m.k.length;e<a;e++){f=m.k[e];if(m.Xb)for(p=
f.Mh(),g=f.siblings.length=0,n=m.rc.length;g<n;g++)v=m.rc[g],m!==v&&f.siblings.push(v.k[p]);f.Gd&&f.Gd();if(f.V)for(g=0,n=f.V.length;g<n;g++)p=f.V[g],p.Gd&&p.Gd()}this.Y=!0}};f.prototype.Wn=function(a,g){var c,e,n,m,f;m=a.type;n=m.Fa;var p={};g?p.c2=!0:p.uid=a.uid;Ra(a.fa)&&(p.ex=b(a.fa));if(a.mb&&a.mb.length)for(p.ivs={},c=0,e=a.mb.length;c<e;c++)p.ivs[a.type.Pm[c].toString()]=a.mb[c];if(n.ef){n={x:a.x,y:a.y,w:a.width,h:a.height,l:a.A.ka,zi:a.Ld()};0!==a.u&&(n.a=a.u);1!==a.opacity&&(n.o=a.opacity);
.5!==a.gc&&(n.hX=a.gc);.5!==a.hc&&(n.hY=a.hc);0!==a.fc&&(n.bm=a.fc);a.visible||(n.v=a.visible);a.ae||(n.ce=a.ae);-1!==a.ti&&(n.mts=a.ti);if(m.T.length)for(n.fx=[],c=0,e=m.T.length;c<e;c++)f=m.T[c],n.fx.push({name:f.name,active:a.Ne[f.index],params:a.Va[f.index]});p.w=n}if(a.V&&a.V.length)for(p.behs={},c=0,e=a.V.length;c<e;c++)m=a.V[c],m.ab&&(p.behs[m.type.ka.toString()]=m.ab());a.ab&&(p.data=a.ab());return p};f.prototype.cw=function(a,g){var b,c;b=0;for(c=a.Pm.length;b<c;b++)if(a.Pm[b]===g)return b;
return-1};f.prototype.Wv=function(a,g){var b,c;b=0;for(c=a.V.length;b<c;b++)if(a.V[b].type.ka===g)return b;return-1};f.prototype.qk=function(a,g,b){var c,e,n,m,f;f=a.type;m=f.Fa;if(b){if(!g.c2)return}else a.uid=g.uid;g.ex?a.fa=g.ex:Sa(a.fa);if(e=g.ivs)for(c in e)e.hasOwnProperty(c)&&(n=this.cw(f,parseInt(c,10)),0>n||n>=a.mb.length||(a.mb[n]=e[c]));if(m.ef){n=g.w;a.A.ka!==n.l&&(e=a.A,a.A=this.da.Wj(n.l),a.A?(e.dh(a,!0),a.A.uh(a,!0),a.D(),a.A.Li(0)):(a.A=e,b||this.Le(a)));a.x=n.x;a.y=n.y;a.width=n.w;
a.height=n.h;a.Ed=n.zi;a.u=n.hasOwnProperty("a")?n.a:0;a.opacity=n.hasOwnProperty("o")?n.o:1;a.gc=n.hasOwnProperty("hX")?n.hX:.5;a.hc=n.hasOwnProperty("hY")?n.hY:.5;a.visible=n.hasOwnProperty("v")?n.v:!0;a.ae=n.hasOwnProperty("ce")?n.ce:!0;a.ti=n.hasOwnProperty("mts")?n.mts:-1;a.fc=n.hasOwnProperty("bm")?n.bm:0;a.Ah=fb(a.fc);this.G&&gb(a,a.fc,this.G);a.D();if(n.hasOwnProperty("fx"))for(b=0,e=n.fx.length;b<e;b++)m=f.zm(n.fx[b].name),0>m||(a.Ne[m]=n.fx[b].active,a.Va[m]=n.fx[b].params);a.Ge()}if(f=
g.behs)for(c in f)f.hasOwnProperty(c)&&(b=this.Wv(a,parseInt(c,10)),0>b||a.V[b].pb(f[c]));g.data&&a.pb(g.data)};Pb=function(a){return new f(document.getElementById(a))};Qb=function(a,g){return new f({dc:!0,width:a,height:g})};window.cr_createRuntime=Pb;window.cr_createDCRuntime=Qb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.Ll=!0;document.body.appendChild(a);a=new f(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 f(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();window.cr_getC2Runtime=function(){var h=document.getElementById("c2canvas");return h?h.c2runtime:window.c2runtime?window.c2runtime:null};
window.cr_sizeCanvas=function(h,l){if(0!==h&&0!==l){var f=window.cr_getC2Runtime();f&&f.setSize(h,l)}};window.cr_setSuspended=function(h){var l=window.cr_getC2Runtime();l&&l.setSuspended(h)};
(function(){function h(a,b){this.b=a;this.Kf=null;this.scrollX=this.b.Ra/2;this.scrollY=this.b.Qa/2;this.scale=1;this.u=0;this.Eg=!0;this.name=b[0];this.width=b[1];this.height=b[2];this.cs=b[3];this.Fr=b[4];this.ka=b[5];var c=b[6],e,f;this.ca=[];this.Sh=[];e=0;for(f=c.length;e<f;e++){var h=new Rb(this,c[e]);h.Tq=e;this.ca.push(h)}c=b[7];this.Uf=[];e=0;for(f=c.length;e<f;e++){var h=c[e],u=this.b.I[h[1]];u.Yc||(u.Yc=h);this.Uf.push(h);-1===this.Sh.indexOf(u)&&this.Sh.push(u)}this.T=[];this.wa=[];this.Va=
[];e=0;for(f=b[8].length;e<f;e++)this.T.push({id:b[8][e][0],name:b[8][e][1],Eb:-1,Hb:!0,index:e}),this.Va.push(b[8][e][2].slice(0));this.Ge();this.rf=new R(0,0,1,1);this.Nn=new R(0,0,1,1);this.of={}}function l(a,b){return a.Ed-b.Ed}function f(a,b){this.ob=a;this.b=a.b;this.k=[];this.scale=1;this.u=0;this.Jf=!1;this.Ee=new R(0,0,0,0);this.Wr=new wa;this.La=this.Ja=this.Ma=this.Ia=0;this.rg=!1;this.Ke=-1;this.name=b[0];this.index=b[1];this.ka=b[2];this.visible=b[3];this.Qe=b[4];this.Fe=b[5];this.ed=
b[6];this.fd=b[7];this.opacity=b[8];this.qm=b[9];this.Dd=b[10];this.Fd=b[11];this.fc=b[12];this.kv=b[13];this.Ah="source-over";this.Nb=this.Ob=0;this.Bc=null;this.Ug=q();this.we=!0;this.jk=new R(0,0,-1,-1);this.Xc=new R(0,0,-1,-1);this.Dd&&(this.Bc=new eb(this.b.Ra,this.b.Qa));this.sf=!1;var c=b[14],e,f;this.Kr=[];this.Nc=[];this.Ch=[];e=0;for(f=c.length;e<f;e++){var h=c[e],u=this.b.I[h[1]];u.Yc||(u.Yc=h,u.Nu=this.index);this.Nc.push(h);-1===this.ob.Sh.indexOf(u)&&this.ob.Sh.push(u)}za(this.Kr,this.Nc);
this.T=[];this.wa=[];this.Va=[];e=0;for(f=b[15].length;e<f;e++)this.T.push({id:b[15][e][0],name:b[15][e][1],Eb:-1,Hb:!0,index:e}),this.Va.push(b[15][e][2].slice(0));this.Ge();this.rf=new R(0,0,1,1);this.Nn=new R(0,0,1,1)}function q(){return b.length?b.pop():[]}function t(a){a.length=0;b.push(a)}h.prototype.Qx=function(a){var b=a.type.ka.toString();this.of.hasOwnProperty(b)||(this.of[b]=[]);this.of[b].push(this.b.Wn(a))};h.prototype.Up=function(){var a=this.ca[0];return!a.Fe&&1===a.opacity&&!a.qm&&
a.visible};h.prototype.Ge=function(){this.wa.length=0;var a,b,c;a=0;for(b=this.T.length;a<b;a++)c=this.T[a],c.Hb&&this.wa.push(c)};h.prototype.ym=function(a){var b,c,e;b=0;for(c=this.T.length;b<c;b++)if(e=this.T[b],e.name===a)return e;return null};var a=[],c=!0;h.prototype.no=function(){this.Fr&&(this.Kf=this.b.mm[this.Fr],this.Kf.Ao());this.b.da=this;this.scrollX=this.b.Ra/2;this.scrollY=this.b.Qa/2;var g,b,e,f,h,w,u;g=0;for(e=this.b.I.length;g<e;g++)if(b=this.b.I[g],!b.N)for(h=b.k,b=0,f=h.length;b<
f;b++)if(w=h[b],w.A){var n=w.A.Tq;n>=this.ca.length&&(n=this.ca.length-1);w.A=this.ca[n];-1===w.A.k.indexOf(w)&&w.A.k.push(w);w.A.rg=!0}if(!c)for(g=0,e=this.ca.length;g<e;++g)this.ca[g].k.sort(l);a.length=0;this.qp();g=0;for(e=this.ca.length;g<e;g++)w=this.ca[g],w.Lu(),w.Do();h=!1;if(!this.Eg){for(u in this.of)if(this.of.hasOwnProperty(u)&&(b=this.b.Xj(parseInt(u,10)))&&!b.N&&this.b.zo(b)){f=this.of[u];g=0;for(e=f.length;g<e;g++){w=null;if(b.Fa.ef&&(w=this.Wj(f[g].w.l),!w))continue;w=this.b.Ue(b.Yc,
w,!1,0,0,!0);this.b.qk(w,f[g]);h=!0;a.push(w)}f.length=0}g=0;for(e=this.ca.length;g<e;g++)this.ca[g].k.sort(l),this.ca[g].rg=!0}h&&(this.b.Gb(),this.b.rr());for(g=0;g<a.length;g++)if(w=a[g],w.type.Xb)for(e=w.Mh(),b=0,f=w.type.rc.length;b<f;b++)u=w.type.rc[b],w.type!==u&&(u.k.length>e?w.siblings.push(u.k[e]):u.Yc&&(h=this.b.Ue(u.Yc,w.A,!0,w.x,w.y,!0),this.b.Gb(),u.rl(),w.siblings.push(h),a.push(h)));g=0;for(e=this.Uf.length;g<e;g++)this.b.Ue(this.Uf[g],null,!0);this.b.zh=null;this.b.Gb();if(this.b.xa&&
!this.b.Xa)for(g=0,e=this.b.I.length;g<e;g++)u=this.b.I[g],!u.N&&u.k.length&&u.Pk&&u.Pk(this.b.xa);g=0;for(e=a.length;g<e;g++)w=a[g],this.b.trigger(Object.getPrototypeOf(w.type.Fa).m.ug,w);a.length=0;this.b.trigger(W.prototype.m.Yo,null);this.Eg=!1};h.prototype.Ku=function(){var a,b,c,e,f;b=a=0;for(c=this.Uf.length;a<c;a++)e=this.Uf[a],f=this.b.I[e[1]],f.global?this.b.Ue(e,null,!0):(this.Uf[b]=e,b++);this.Uf.length=b};h.prototype.$x=function(){this.b.trigger(W.prototype.m.Dt,null);this.b.Vd.pc.length=
0;var a,b,e,f,h,l;if(!this.Eg)for(a=0,b=this.ca.length;a<b;a++)for(this.ca[a].Eo(),h=this.ca[a].k,e=0,f=h.length;e<f;e++)l=h[e],l.type.global||this.b.zo(l.type)&&this.Qx(l);a=0;for(b=this.ca.length;a<b;a++){h=this.ca[a].k;e=0;for(f=h.length;e<f;e++)l=h[e],l.type.global||this.b.Le(l);this.b.Gb();h.length=0;this.ca[a].rg=!0}a=0;for(b=this.b.I.length;a<b;a++)if(h=this.b.I[a],!(h.global||h.Fa.ef||h.Fa.cl||h.N)){e=0;for(f=h.k.length;e<f;e++)this.b.Le(h.k[e]);this.b.Gb()}c=!1};new R(0,0,0,0);h.prototype.td=
function(a){var b,e=a,c=!1,f=!this.b.$c;f&&(this.b.ok||(this.b.ok=document.createElement("canvas"),b=this.b.ok,b.width=this.b.ba,b.height=this.b.aa,this.b.tq=b.getContext("2d"),c=!0),b=this.b.ok,e=this.b.tq,b.width!==this.b.ba&&(b.width=this.b.ba,c=!0),b.height!==this.b.aa&&(b.height=this.b.aa,c=!0),c&&(e.webkitImageSmoothingEnabled=this.b.ra,e.mozImageSmoothingEnabled=this.b.ra,e.msImageSmoothingEnabled=this.b.ra,e.imageSmoothingEnabled=this.b.ra));e.globalAlpha=1;e.globalCompositeOperation="source-over";
this.b.Gl&&!this.Up()&&e.clearRect(0,0,this.b.ba,this.b.aa);var h,u,c=0;for(h=this.ca.length;c<h;c++)u=this.ca[c],u.visible&&0<u.opacity&&11!==u.fc&&(u.k.length||!u.Fe)?u.td(e):u.Do();f&&a.drawImage(b,0,0,this.b.width,this.b.height)};h.prototype.Jc=function(a){var b=0<this.wa.length||this.b.lh||!this.b.$c;if(b){this.b.xc||(this.b.xc=a.Jd(this.b.ba,this.b.aa,this.b.ra));if(this.b.xc.xh!==this.b.ba||this.b.xc.wh!==this.b.aa)a.deleteTexture(this.b.xc),this.b.xc=a.Jd(this.b.ba,this.b.aa,this.b.ra);a.Sd(this.b.xc);
this.b.$c||a.gh(this.b.ba,this.b.aa)}else this.b.xc&&(a.Sd(null),a.deleteTexture(this.b.xc),this.b.xc=null);this.b.Gl&&!this.Up()&&a.clear(0,0,0,0);var e,c,f;e=0;for(c=this.ca.length;e<c;e++)f=this.ca[e],f.visible&&0<f.opacity&&(f.k.length||!f.Fe)?f.Jc(a):f.Do();b&&(0===this.wa.length||1===this.wa.length&&this.b.$c?(1===this.wa.length?(b=this.wa[0].index,a.Ud(this.wa[0].Eb),a.fh(null,1/this.b.ba,1/this.b.aa,0,0,1,1,this.scale,this.u,0,0,this.b.ba/2,this.b.aa/2,this.Va[b]),a.Qk(this.wa[0].Eb)&&(this.b.Y=
!0)):a.Ud(0),this.b.$c||a.gh(this.b.width,this.b.height),a.Sd(null),a.vf(1),a.nc(this.b.xc),a.ur(),a.Rd(),a.Zd(),b=this.b.width/2,e=this.b.height/2,a.Tk(-b,e,b,e,b,-e,-b,-e),a.nc(null)):this.Pn(a,null,null,null))};h.prototype.Lh=function(){return 0<this.wa.length||this.b.lh||!this.b.$c?this.b.xc:null};h.prototype.Pp=function(){var a=this.ca[0].Lc(),b,e,c;b=1;for(e=this.ca.length;b<e;b++)c=this.ca[b],(0!==c.ed||0!==c.fd)&&c.Lc()<a&&(a=c.Lc());return a};h.prototype.Yn=function(a){if(!this.cs){var b=
1/this.Pp()*this.b.ba/2;a>this.width-b&&(a=this.width-b);a<b&&(a=b)}this.scrollX!==a&&(this.scrollX=a,this.b.Y=!0)};h.prototype.Zn=function(a){if(!this.cs){var b=1/this.Pp()*this.b.aa/2;a>this.height-b&&(a=this.height-b);a<b&&(a=b)}this.scrollY!==a&&(this.scrollY=a,this.b.Y=!0)};h.prototype.qp=function(){this.Yn(this.scrollX);this.Zn(this.scrollY)};h.prototype.Pn=function(a,b,e,c){var f=e?e.wa:b?b.wa:this.wa,h=1,u=0,n=0,v=0,l=this.b.ba,d=this.b.aa;e?(h=e.A.Lc(),u=e.A.fb(),n=e.A.Ia,v=e.A.Ja,l=e.A.Ma,
d=e.A.La):b&&(h=b.Lc(),u=b.fb(),n=b.Ia,v=b.Ja,l=b.Ma,d=b.La);var k=this.b.vm,x,w,t,q,y=0,va=1,X,S=this.b.ba,N=this.b.aa,F=S/2,ea=N/2,G=b?b.rf:this.rf,M=b?b.Nn:this.Nn,D=0,O=0,E=0,H=0,I=S,T=S,P=N,Q=N,aa=t=0,ia=e?e.A.fb():0;if(e){x=0;for(w=f.length;x<w;x++)t+=a.hw(f[x].Eb),aa+=a.iw(f[x].Eb);q=e.ya;D=b.Pa(q.left,q.top,!0,!0);E=b.Pa(q.left,q.top,!1,!0);I=b.Pa(q.right,q.bottom,!0,!0);P=b.Pa(q.right,q.bottom,!1,!0);0!==ia&&(x=b.Pa(q.right,q.top,!0,!0),w=b.Pa(q.right,q.top,!1,!0),O=b.Pa(q.left,q.bottom,
!0,!0),H=b.Pa(q.left,q.bottom,!1,!0),q=Math.min(D,I,x,O),I=Math.max(D,I,x,O),D=q,q=Math.min(E,P,w,H),P=Math.max(E,P,w,H),E=q);D-=t;E-=aa;I+=t;P+=aa;M.left=D/S;M.top=1-E/N;M.right=I/S;M.bottom=1-P/N;O=D=L(D);H=E=L(E);T=I=ta(I);Q=P=ta(P);O-=t;H-=aa;T+=t;Q+=aa;0>D&&(D=0);0>E&&(E=0);I>S&&(I=S);P>N&&(P=N);0>O&&(O=0);0>H&&(H=0);T>S&&(T=S);Q>N&&(Q=N);G.left=D/S;G.top=1-E/N;G.right=I/S;G.bottom=1-P/N}else G.left=M.left=0,G.top=M.top=0,G.right=M.right=1,G.bottom=M.bottom=1;aa=e&&((e.u||ia)&&a.Ci(f[0].Eb)||
0!==t||0!==aa||1!==e.opacity||e.type.Fa.Oq)||b&&!e&&1!==b.opacity;a.ur();if(aa){k[y]||(k[y]=a.Jd(S,N,this.b.ra));if(k[y].xh!==S||k[y].wh!==N)a.deleteTexture(k[y]),k[y]=a.Jd(S,N,this.b.ra);a.Ud(0);a.Sd(k[y]);X=Q-H;a.clearRect(O,N-H-X,T-O,X);e?e.Jc(a):(a.nc(this.b.Qc),a.vf(b.opacity),a.Rd(),a.translate(-F,-ea),a.Zd(),a.zd(D,P,I,P,I,E,D,E,G));M.left=M.top=0;M.right=M.bottom=1;e&&(q=G.top,G.top=G.bottom,G.bottom=q);y=1;va=0}a.vf(1);t=f.length-1;var ia=a.Jn(f[t].Eb)||!b&&!e&&!this.b.$c,ja=0;x=0;for(w=
f.length;x<w;x++){k[y]||(k[y]=a.Jd(S,N,this.b.ra));if(k[y].xh!==S||k[y].wh!==N)a.deleteTexture(k[y]),k[y]=a.Jd(S,N,this.b.ra);a.Ud(f[x].Eb);ja=f[x].index;a.Qk(f[x].Eb)&&(this.b.Y=!0);0!=x||aa?(a.fh(c,1/S,1/N,M.left,M.top,M.right,M.bottom,h,u,n,v,(n+l)/2,(v+d)/2,e?e.Va[ja]:b?b.Va[ja]:this.Va[ja]),a.nc(null),x!==t||ia?(a.Sd(k[y]),X=Q-H,q=N-H-X,a.clearRect(O,q,T-O,X)):(e?a.uf(e.Ob,e.Nb):b&&a.uf(b.Ob,b.Nb),a.Sd(c)),a.nc(k[va]),a.Rd(),a.translate(-F,-ea),a.Zd(),a.zd(D,P,I,P,I,E,D,E,G),x!==t||ia||a.nc(null)):
(a.Sd(k[y]),X=Q-H,q=N-H-X,a.clearRect(O,q,T-O,X),e?(a.fh(c,1/e.width,1/e.height,M.left,M.top,M.right,M.bottom,h,u,n,v,(n+l)/2,(v+d)/2,e.Va[ja]),e.Jc(a)):(a.fh(c,1/S,1/N,0,0,1,1,h,u,n,v,(n+l)/2,(v+d)/2,b?b.Va[ja]:this.Va[ja]),a.nc(b?this.b.Qc:this.b.xc),a.Rd(),a.translate(-F,-ea),a.Zd(),a.zd(D,P,I,P,I,E,D,E,G)),M.left=M.top=0,M.right=M.bottom=1,e&&!ia&&(q=P,P=E,E=q));y=0===y?1:0;va=0===y?1:0}ia&&(a.Ud(0),e?a.uf(e.Ob,e.Nb):b?a.uf(b.Ob,b.Nb):this.b.$c||(a.gh(this.b.width,this.b.height),F=this.b.width/
2,ea=this.b.height/2,E=D=0,I=this.b.width,P=this.b.height),a.Sd(c),a.nc(k[va]),a.Rd(),a.translate(-F,-ea),a.Zd(),e&&1===f.length&&!aa?a.zd(D,E,I,E,I,P,D,P,G):a.zd(D,P,I,P,I,E,D,E,G),a.nc(null))};h.prototype.Wj=function(a){var b,e;b=0;for(e=this.ca.length;b<e;b++)if(this.ca[b].ka===a)return this.ca[b];return null};h.prototype.ab=function(){var a,b,e,c={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.u,w:this.width,h:this.height,fv:this.Eg,persist:this.of,fx:[],layers:{}};a=0;for(b=this.T.length;a<
b;a++)e=this.T[a],c.fx.push({name:e.name,active:e.Hb,params:this.Va[e.index]});a=0;for(b=this.ca.length;a<b;a++)e=this.ca[a],c.layers[e.ka.toString()]=e.ab();return c};h.prototype.pb=function(a){var b,e,c,f;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.u=a.a;this.width=a.w;this.height=a.h;this.of=a.persist;"undefined"!==typeof a.fv&&(this.Eg=a.fv);var h=a.fx;b=0;for(e=h.length;b<e;b++)if(c=this.ym(h[b].name))c.Hb=h[b].active,this.Va[c.index]=h[b].params;this.Ge();b=a.layers;for(f in b)b.hasOwnProperty(f)&&
(a=this.Wj(parseInt(f,10)))&&a.pb(b[f])};Db=h;f.prototype.Ge=function(){this.wa.length=0;var a,b,e;a=0;for(b=this.T.length;a<b;a++)e=this.T[a],e.Hb&&this.wa.push(e)};f.prototype.ym=function(a){var b,e,c;b=0;for(e=this.T.length;b<e;b++)if(c=this.T[b],c.name===a)return c;return null};f.prototype.Lu=function(){var b,e,c,f,h,l;e=b=0;for(c=this.Nc.length;b<c;b++){f=this.Nc[b];h=this.b.I[f[1]];l=this.b.zo(h);h=!0;if(!l||this.ob.Eg)f=this.b.Ue(f,this,!0),a.push(f),f.type.global&&(h=!1,this.Ch.push(f.uid));
h&&(this.Nc[e]=this.Nc[b],e++)}this.Nc.length=e;this.b.Gb();!this.b.H&&this.T.length&&(this.fc=this.kv);this.Ah=fb(this.fc);this.b.G&&gb(this,this.fc,this.b.G);this.we=!0};f.prototype.dh=function(a,b){var e=Ca(this.k,a);0>e||(b&&this.Dd&&a.lc&&a.lc.right>=a.lc.left&&(a.la(),this.Bc.update(a,a.lc,null),a.lc.set(0,0,-1,-1)),e===this.k.length-1?this.k.pop():(ya(this.k,e),this.Li(e)),this.we=!0)};f.prototype.uh=function(a,b){a.Ed=this.k.length;this.k.push(a);b&&this.Dd&&a.lc&&a.D();this.we=!0};f.prototype.Ax=
function(a){this.k.unshift(a);this.Li(0)};f.prototype.bx=function(a,b,e){var c=a.Ld();b=b.Ld();ya(this.k,c);c<b&&b--;e&&b++;b===this.k.length?this.k.push(a):this.k.splice(b,0,a);this.Li(c<b?c:b)};f.prototype.Li=function(a){-1===this.Ke?this.Ke=a:a<this.Ke&&(this.Ke=a);this.we=this.rg=!0};f.prototype.Eo=function(){if(this.rg){-1===this.Ke&&(this.Ke=0);var a,b,e;if(this.Dd)for(a=this.Ke,b=this.k.length;a<b;++a)e=this.k[a],e.Ed=a,this.Bc.Yw(e.lc);else for(a=this.Ke,b=this.k.length;a<b;++a)this.k[a].Ed=
a;this.rg=!1;this.Ke=-1}};f.prototype.Lc=function(a){return this.ew()*(this.b.$c||a?this.b.vh:1)};f.prototype.ew=function(){return(this.scale*this.ob.scale-1)*this.Fd+1};f.prototype.fb=function(){return this.Jf?0:Ga(this.ob.u+this.u)};var b=[],e=[],w=[];f.prototype.Qp=function(){this.Eo();this.Bc.Uk(this.Ia,this.Ja,this.Ma,this.La,w);if(!w.length)return q();if(1===w.length){var a=q();za(a,w[0]);w.length=0;return a}for(var b=!0;1<w.length;){for(var a=w,c=void 0,f=void 0,h=void 0,l=void 0,u=void 0,
c=0,f=a.length;c<f-1;c+=2){var h=a[c],l=a[c+1],u=q(),n=h,v=l,A=u,d=0,k=0,x=0,B=n.length,K=v.length,Z=void 0,y=void 0;for(A.length=B+K;d<B&&k<K;++x)Z=n[d],y=v[k],Z.Ed<y.Ed?(A[x]=Z,++d):(A[x]=y,++k);for(;d<B;++d,++x)A[x]=n[d];for(;k<K;++k,++x)A[x]=v[k];b||(t(h),t(l));e.push(u)}1===f%2&&(b?(h=q(),za(h,a[f-1]),e.push(h)):e.push(a[f-1]));za(a,e);e.length=0;b=!1}a=w[0];w.length=0;return a};f.prototype.td=function(a){this.sf=this.qm||1!==this.opacity||0!==this.fc;var b=this.b.canvas,e=a,c=!1;this.sf&&(this.b.nk||
(this.b.nk=document.createElement("canvas"),b=this.b.nk,b.width=this.b.ba,b.height=this.b.aa,this.b.sq=b.getContext("2d"),c=!0),b=this.b.nk,e=this.b.sq,b.width!==this.b.ba&&(b.width=this.b.ba,c=!0),b.height!==this.b.aa&&(b.height=this.b.aa,c=!0),c&&(e.webkitImageSmoothingEnabled=this.b.ra,e.mozImageSmoothingEnabled=this.b.ra,e.msImageSmoothingEnabled=this.b.ra,e.imageSmoothingEnabled=this.b.ra),this.Fe&&e.clearRect(0,0,this.b.ba,this.b.aa));e.globalAlpha=1;e.globalCompositeOperation="source-over";
this.Fe||(e.fillStyle="rgb("+this.Qe[0]+","+this.Qe[1]+","+this.Qe[2]+")",e.fillRect(0,0,this.b.ba,this.b.aa));e.save();this.Jf=!0;var c=this.qc(0,0,!0,!0),f=this.qc(0,0,!1,!0);this.Jf=!1;this.b.gd&&(c=Math.round(c),f=Math.round(f));this.Sn(c,f,e);var h=this.Lc();e.scale(h,h);e.translate(-c,-f);this.Dd?(this.Xc.left=this.Bc.Fc(this.Ia),this.Xc.top=this.Bc.Gc(this.Ja),this.Xc.right=this.Bc.Fc(this.Ma),this.Xc.bottom=this.Bc.Gc(this.La),this.we||!this.Xc.Fj(this.jk)?(t(this.Ug),c=this.Qp(),this.we=
!1,this.jk.Bh(this.Xc)):c=this.Ug):c=this.k;for(var u,n=null,f=0,h=c.length;f<h;++f)u=c[f],u!==n&&(this.gv(u,e),n=u);this.Dd&&(this.Ug=c);e.restore();this.sf&&(a.globalCompositeOperation=this.Ah,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};f.prototype.gv=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.la();var e=a.ya;e.right<this.Ia||e.bottom<this.Ja||e.left>this.Ma||e.top>this.La||(b.globalCompositeOperation=a.Ah,a.td(b))}};f.prototype.Do=function(){this.Jf=!0;var a=this.qc(0,0,!0,!0),
b=this.qc(0,0,!1,!0);this.Jf=!1;this.b.gd&&(a=Math.round(a),b=Math.round(b));this.Sn(a,b,null)};f.prototype.Sn=function(a,b,e){var c=this.Lc();this.Ia=a;this.Ja=b;this.Ma=a+1/c*this.b.ba;this.La=b+1/c*this.b.aa;a=this.fb();0!==a&&(e&&(e.translate(this.b.ba/2,this.b.aa/2),e.rotate(-a),e.translate(this.b.ba/-2,this.b.aa/-2)),this.Ee.set(this.Ia,this.Ja,this.Ma,this.La),this.Ee.offset((this.Ia+this.Ma)/-2,(this.Ja+this.La)/-2),this.Wr.Dr(this.Ee,a),this.Wr.rp(this.Ee),this.Ee.offset((this.Ia+this.Ma)/
2,(this.Ja+this.La)/2),this.Ia=this.Ee.left,this.Ja=this.Ee.top,this.Ma=this.Ee.right,this.La=this.Ee.bottom)};f.prototype.Jc=function(a){var b=0,e=0;if(this.sf=this.qm||1!==this.opacity||0<this.wa.length||0!==this.fc){this.b.Qc||(this.b.Qc=a.Jd(this.b.ba,this.b.aa,this.b.ra));if(this.b.Qc.xh!==this.b.ba||this.b.Qc.wh!==this.b.aa)a.deleteTexture(this.b.Qc),this.b.Qc=a.Jd(this.b.ba,this.b.aa,this.b.ra);a.Sd(this.b.Qc);this.Fe&&a.clear(0,0,0,0)}this.Fe||a.clear(this.Qe[0]/255,this.Qe[1]/255,this.Qe[2]/
255,1);this.Jf=!0;var c=this.qc(0,0,!0,!0),b=this.qc(0,0,!1,!0);this.Jf=!1;this.b.gd&&(c=Math.round(c),b=Math.round(b));this.Sn(c,b,null);c=this.Lc();a.Rd();a.scale(c,c);a.Tn(-this.fb());a.translate((this.Ia+this.Ma)/-2,(this.Ja+this.La)/-2);a.Zd();this.Dd?(this.Xc.left=this.Bc.Fc(this.Ia),this.Xc.top=this.Bc.Gc(this.Ja),this.Xc.right=this.Bc.Fc(this.Ma),this.Xc.bottom=this.Bc.Gc(this.La),this.we||!this.Xc.Fj(this.jk)?(t(this.Ug),b=this.Qp(),this.we=!1,this.jk.Bh(this.Xc)):b=this.Ug):b=this.k;var f,
h,u=null,e=0;for(f=b.length;e<f;++e)h=b[e],h!==u&&(this.hv(b[e],a),u=h);this.Dd&&(this.Ug=b);this.sf&&(b=this.wa.length?this.wa[0].Eb:0,e=this.wa.length?this.wa[0].index:0,0===this.wa.length||1===this.wa.length&&!a.Jn(b)&&1===this.opacity?(1===this.wa.length?(a.Ud(b),a.fh(this.ob.Lh(),1/this.b.ba,1/this.b.aa,0,0,1,1,c,this.fb(),this.Ia,this.Ja,(this.Ia+this.Ma)/2,(this.Ja+this.La)/2,this.Va[e]),a.Qk(b)&&(this.b.Y=!0)):a.Ud(0),a.Sd(this.ob.Lh()),a.vf(this.opacity),a.nc(this.b.Qc),a.uf(this.Ob,this.Nb),
a.Rd(),a.Zd(),c=this.b.ba/2,b=this.b.aa/2,a.Tk(-c,b,c,b,c,-b,-c,-b),a.nc(null)):this.ob.Pn(a,this,null,this.ob.Lh()))};f.prototype.hv=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.la();var e=a.ya;e.right<this.Ia||e.bottom<this.Ja||e.left>this.Ma||e.top>this.La||(a.ns?this.jv(a,b):(b.Ud(0),b.uf(a.Ob,a.Nb),a.Jc(b)))}};f.prototype.jv=function(a,b){var e=a.wa[0].Eb,c=a.wa[0].index,f=this.Lc();if(1!==a.wa.length||b.Jn(e)||b.Cx(e)||(a.u||a.A.fb())&&b.Ci(e)||1!==a.opacity||a.type.Fa.Oq)this.ob.Pn(b,
this,a,this.sf?this.b.Qc:this.ob.Lh()),b.Rd(),b.scale(f,f),b.Tn(-this.fb()),b.translate((this.Ia+this.Ma)/-2,(this.Ja+this.La)/-2),b.Zd();else{b.Ud(e);b.uf(a.Ob,a.Nb);b.Qk(e)&&(this.b.Y=!0);var h=0,u=0,n=0,v=0;b.Ci(e)&&(e=a.ya,h=this.Pa(e.left,e.top,!0,!0),u=this.Pa(e.left,e.top,!1,!0),n=this.Pa(e.right,e.bottom,!0,!0),e=this.Pa(e.right,e.bottom,!1,!0),h=h/windowWidth,u=1-u/windowHeight,n=n/windowWidth,v=1-e/windowHeight);b.fh(this.sf?this.b.Qc:this.ob.Lh(),1/a.width,1/a.height,h,u,n,v,f,this.fb(),
this.Ia,this.Ja,(this.Ia+this.Ma)/2,(this.Ja+this.La)/2,a.Va[c]);a.Jc(b)}};f.prototype.qc=function(a,b,e,c){var f=this.b.devicePixelRatio;this.b.Wf&&(a*=f,b*=f);var f=this.b.hr,h=this.b.ir,f=(this.ob.scrollX-f)*this.ed+f,h=(this.ob.scrollY-h)*this.fd+h,u=f,n=h,v=1/this.Lc(!c);c?(u-=this.b.ba*v/2,n-=this.b.aa*v/2):(u-=this.b.width*v/2,n-=this.b.height*v/2);u+=a*v;n+=b*v;b=this.fb();0!==b&&(u-=f,n-=h,a=Math.cos(b),b=Math.sin(b),c=u*a-n*b,n=n*a+u*b,u=c+f,n+=h);return e?u:n};f.prototype.Pa=function(a,
b,e,c){var f=this.b.hr,h=this.b.ir,u=(this.ob.scrollX-f)*this.ed+f,n=(this.ob.scrollY-h)*this.fd+h,h=u,f=n,v=this.fb();if(0!==v){a-=u;b-=n;var l=Math.cos(-v),v=Math.sin(-v),d=a*l-b*v;b=b*l+a*v;a=d+u;b+=n}u=1/this.Lc(!c);c?(h-=this.b.ba*u/2,f-=this.b.aa*u/2):(h-=this.b.width*u/2,f-=this.b.height*u/2);h=(a-h)/u;f=(b-f)/u;a=this.b.devicePixelRatio;this.b.Wf&&!c&&(h/=a,f/=a);return e?h:f};f.prototype.ab=function(){var a,b,e,c={s:this.scale,a:this.u,vl:this.Ia,vt:this.Ja,vr:this.Ma,vb:this.La,v:this.visible,
bc:this.Qe,t:this.Fe,px:this.ed,py:this.fd,o:this.opacity,zr:this.Fd,fx:[],cg:this.Ch,instances:[]};a=0;for(b=this.T.length;a<b;a++)e=this.T[a],c.fx.push({name:e.name,active:e.Hb,params:this.Va[e.index]});return c};f.prototype.pb=function(a){var b,e,c;this.scale=a.s;this.u=a.a;this.Ia=a.vl;this.Ja=a.vt;this.Ma=a.vr;this.La=a.vb;this.visible=a.v;this.Qe=a.bc;this.Fe=a.t;this.ed=a.px;this.fd=a.py;this.opacity=a.o;this.Fd=a.zr;this.Ch=a.cg||[];za(this.Nc,this.Kr);var f=new da;b=0;for(c=this.Ch.length;b<
c;++b)f.add(this.Ch[b]);e=b=0;for(c=this.Nc.length;b<c;++b)f.contains(this.Nc[b][2])||(this.Nc[e]=this.Nc[b],++e);this.Nc.length=e;e=a.fx;b=0;for(c=e.length;b<c;b++)if(a=this.ym(e[b].name))a.Hb=e[b].active,this.Va[a.index]=e[b].params;this.Ge();this.k.sort(l);this.rg=!0};Rb=f})();
(function(){function h(a,b){var e,d=a.length;switch(d){case 0:return!0;case 1:return a[0]===b[0];case 2:return a[0]===b[0]&&a[1]===b[1];default:for(e=0;e<d;e++)if(a[e]!==b[e])return!1;return!0}}function l(a,b){return a.index-b.index}function f(a){var b,e,d,c;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(l);a.length>=z.length&&(z.length=a.length+1);z[a.length]||(z[a.length]=[]);c=z[a.length];b=0;for(e=c.length;b<e;b++)if(d=c[b],h(a,d))return d;c.push(a);return a}
function q(a,b){this.b=a;this.Zr={};this.Fp={};this.Jm=!1;this.Xp=new da;this.fm=[];this.Hl=[];this.name=b[0];var e=b[1];this.We=[];var d,c;d=0;for(c=e.length;d<c;d++)this.Zp(e[d],null,this.We)}function t(a){this.type=a;this.k=[];this.ma=[];this.ea=!0}function a(a,b,e){this.sheet=a;this.parent=b;this.b=a.b;this.Da=[];this.wf=[];this.Vp=this.ml=this.wo=this.$j=this.group=this.lo=!1;this.hb=[];this.Vc=[];this.kd=[];this.Nh="";this.Hg=this.$j=this.group=!1;this.tj=null;e[1]&&(this.Nh=e[1][1].toLowerCase(),
this.group=!0,this.$j=!!e[1][0],this.tj=[],this.Hg=this.$j,this.b.Oe.push(this),this.b.Oh[this.Nh]=this);this.cd=e[2];this.ka=e[4];this.group||(this.b.pp[this.ka.toString()]=this);var d=e[5];a=0;for(b=d.length;a<b;a++){var c=new Sb(this,d[a]);c.index=a;this.hb.push(c);this.jp(c.type)}d=e[6];a=0;for(b=d.length;a<b;a++)c=new Tb(this,d[a]),c.index=a,this.Vc.push(c);if(8===e.length)for(e=e[7],a=0,b=e.length;a<b;a++)this.sheet.Zp(e[a],this,this.kd);this.ek=!1;this.hb.length&&(this.ek=null==this.hb[0].type&&
this.hb[0].Bb==W.prototype.m.Ro)}function c(a,b){var e,d,c;if(a&&(-1===b.indexOf(a)&&b.push(a),a.Xb))for(e=0,d=a.rc.length;e<d;e++)c=a.rc[e],a!==c&&-1===b.indexOf(c)&&b.push(c)}function b(a,b){this.Hc=a;this.sheet=a.sheet;this.b=a.b;this.X=[];this.Wa=[];this.fa={};this.index=-1;this.rh=!1;this.Bb=this.b.Me(b[1]);this.trigger=0<b[3];this.Ep=2===b[3];this.Md=b[4];this.ak=b[5];this.Tw=b[6];this.ka=b[7];this.b.zg[this.ka.toString()]=this;-1===b[0]?(this.type=null,this.gb=this.Vn,this.Ef=null,this.rd=
-1):(this.type=this.b.I[b[0]],this.gb=this.Tw?this.Ox:this.Un,b[2]?(this.Ef=this.type.Uj(b[2]),this.rd=this.type.wm(b[2])):(this.Ef=null,this.rd=-1),this.Hc.parent&&this.Hc.parent.Zk());this.Ep&&(this.gb=this.Px);if(10===b.length){var e,d,c=b[9];e=0;for(d=c.length;e<d;e++){var g=new Ub(this,c[e]);this.X.push(g)}this.Wa.length=c.length}}function e(a,b){this.Hc=a;this.sheet=a.sheet;this.b=a.b;this.X=[];this.Wa=[];this.fa={};this.index=-1;this.rh=!1;this.Bb=this.b.Me(b[1]);-1===b[0]?(this.type=null,
this.gb=this.Vn,this.Ef=null,this.rd=-1):(this.type=this.b.I[b[0]],this.gb=this.Un,b[2]?(this.Ef=this.type.Uj(b[2]),this.rd=this.type.wm(b[2])):(this.Ef=null,this.rd=-1));this.ka=b[3];this.b.wg[this.ka.toString()]=this;if(6===b.length){var e,d,c=b[5];e=0;for(d=c.length;e<d;e++){var g=new Ub(this,c[e]);this.X.push(g)}this.Wa.length=c.length}}function w(){u++;C.length===u&&C.push(new Vb);return C[u]}function g(a,b){this.dd=a;this.Hc=a.Hc;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.Kd=null;this.De=
0;this.get=null;this.yp=0;this.ob=null;this.key=0;this.object=null;this.index=0;this.Wi=this.mg=this.Wi=this.mg=this.Gp=this.Lf=this.Xi=null;this.md=!1;var e,d,c;switch(b[0]){case 0:case 7:this.Kd=new Wb(this,b[1]);this.De=0;this.get=this.qw;break;case 1:this.Kd=new Wb(this,b[1]);this.De=0;this.get=this.rw;break;case 5:this.Kd=new Wb(this,b[1]);this.De=0;this.get=this.ww;break;case 3:case 8:this.yp=b[1];this.get=this.ow;break;case 6:this.ob=this.b.hn[b[1]];this.get=this.xw;break;case 9:this.key=b[1];
this.get=this.vw;break;case 4:this.object=this.b.I[b[1]];this.get=this.yw;this.Hc.jp(this.object);this.dd instanceof Tb?this.Hc.Zk():this.Hc.parent&&this.Hc.parent.Zk();break;case 10:this.index=b[1];a.type.N?(this.get=this.sw,this.md=!0):this.get=this.uw;break;case 11:this.Xi=b[1];this.Lf=null;this.get=this.pw;break;case 2:case 12:this.Gp=b[1];this.get=this.nw;break;case 13:for(this.get=this.zw,this.mg=[],this.Wi=[],e=1,d=b.length;e<d;e++)c=new Ub(this.dd,b[e]),this.mg.push(c),this.Wi.push(0)}}function m(a,
b,e){this.sheet=a;this.parent=b;this.b=a.b;this.Da=[];this.name=e[1];this.Yi=e[2];this.Nm=e[3];this.Zh=!!e[4];this.dk=!!e[5];this.ka=e[6];this.b.nh[this.ka.toString()]=this;this.data=this.Nm;this.parent?(this.eg=this.Zh||this.dk?-1:this.b.Yx++,this.b.wu.push(this)):(this.eg=-1,this.b.vu.push(this))}function r(a,b,e){this.sheet=a;this.parent=b;this.b=a.b;this.Da=[];this.Rh=null;this.Gw=e[1];this.Hb=!0}function p(){this.Mr=[];this.reset(null)}var z=[];q.prototype.toString=function(){return this.name};
q.prototype.Zp=function(a,b,e){switch(a[0]){case 0:a=new Xb(this,b,a);if(a.cd)for(e.push(a),e=0,b=a.hb.length;e<b;e++)a.hb[e].trigger&&this.$p(a,e);else a.kq()?this.$p(a,0):e.push(a);break;case 1:a=new Ob(this,b,a);e.push(a);break;case 2:a=new Yb(this,b,a),e.push(a)}};q.prototype.$a=function(){var a,b;a=0;for(b=this.We.length;a<b;a++)this.We[a].$a(a<b-1&&this.We[a+1].ek)};q.prototype.Ao=function(){this.fm.length=0;this.Hl.length=0;this.ip(this);this.Hl.length=0};q.prototype.ip=function(a){var b,e,
d,c,g=a.fm,f=a.Hl,p=this.Xp.He();b=0;for(e=p.length;b<e;++b)d=p[b],c=d.Rh,!d.Hb||a===c||-1<f.indexOf(c)||(f.push(c),c.ip(a),g.push(c))};q.prototype.gb=function(a){this.b.Xy||(this.Jm=!0,a||(this.b.Tm=!0));var b,e;b=0;for(e=this.We.length;b<e;b++){var d=this.We[b];d.gb();this.b.Vl(d.Da);this.b.$e&&this.b.Gb()}a||(this.b.Tm=!1)};q.prototype.$p=function(a,b){a.cd||this.b.pl.push(a);var e,d,c=a.hb[b],g;c.type?g=c.type.name:g="system";var f=(e=c.Ep)?this.Fp:this.Zr;f[g]||(f[g]=[]);g=f[g];f=c.Bb;if(e){if(c.X.length&&
(c=c.X[0],1===c.type&&2===c.Kd.type)){c=c.Kd.value.toLowerCase();e=0;for(d=g.length;e<d;e++)if(g[e].method==f){e=g[e].Gh;e[c]?e[c].push([a,b]):e[c]=[[a,b]];return}e={};e[c]=[[a,b]];g.push({method:f,Gh:e})}}else{e=0;for(d=g.length;e<d;e++)if(g[e].method==f){g[e].Gh.push([a,b]);return}Y&&f===Y.prototype.m.vg?g.unshift({method:f,Gh:[[a,b]]}):g.push({method:f,Gh:[[a,b]]})}};Eb=q;t.prototype.Im=function(){return this.ea?this.type.k.length:this.k.length};t.prototype.tc=function(){return this.ea?this.type.k:
this.k};t.prototype.Bi=function(a){a&&(a.b.kb().ib.cd?(this.ea&&(this.k.length=0,za(this.ma,a.type.k),this.ea=!1),a=this.ma.indexOf(a),-1!==a&&(this.k.push(this.ma[a]),this.ma.splice(a,1))):(this.ea=!1,this.k.length=1,this.k[0]=a))};mb=t;window._c2hh_="9D9F626D6BAEC33C4C8791199FC5293CA45CE74F";a.prototype.$a=function(a){var b,e=this.parent;if(this.group)for(this.ml=!0;e;){if(!e.group){this.ml=!1;break}e=e.parent}this.wo=!this.kq()&&(!this.parent||this.parent.group&&this.parent.ml);this.Vp=!!a;this.wf=
this.Da.slice(0);for(e=this.parent;e;){a=0;for(b=e.Da.length;a<b;a++)this.tu(e.Da[a]);e=e.parent}this.Da=f(this.Da);this.wf=f(this.wf);a=0;for(b=this.hb.length;a<b;a++)this.hb[a].$a();a=0;for(b=this.Vc.length;a<b;a++)this.Vc[a].$a();a=0;for(b=this.kd.length;a<b;a++)this.kd[a].$a(a<b-1&&this.kd[a+1].ek)};a.prototype.xr=function(a){if(this.Hg!==!!a){this.Hg=!!a;var b;a=0;for(b=this.tj.length;a<b;++a)this.tj[a].es();0<b&&this.b.da.Kf&&this.b.da.Kf.Ao()}};a.prototype.jp=function(a){c(a,this.Da)};a.prototype.tu=
function(a){c(a,this.wf)};a.prototype.Zk=function(){this.lo=!0;this.parent&&this.parent.Zk()};a.prototype.kq=function(){return this.hb.length?this.hb[0].trigger:!1};a.prototype.gb=function(){var a,b=!1,e,d=this.b,c=this.b.kb();c.ib=this;var g=this.hb;this.ek||(c.jm=!1);if(this.cd){0===g.length&&(b=!0);c.cb=0;for(a=g.length;c.cb<a;c.cb++)g[c.cb].trigger||(e=g[c.cb].gb())&&(b=!0);(c.$f=b)&&this.Wk()}else{c.cb=0;for(a=g.length;c.cb<a;c.cb++)if(e=g[c.cb].gb(),!e){c.$f=!1;this.wo&&d.$e&&d.Gb();return}c.$f=
!0;this.Wk()}this.nv(c)};a.prototype.nv=function(a){a.$f&&this.Vp&&(a.jm=!0);this.wo&&this.b.$e&&this.b.Gb()};a.prototype.Mx=function(a){this.b.kb().ib=this;this.hb[a].gb()&&(this.Wk(),this.b.kb().$f=!0)};a.prototype.Wk=function(){var a=this.b.kb(),b;a.cc=0;for(b=this.Vc.length;a.cc<b;a.cc++)if(this.Vc[a.cc].gb())return;this.tr()};a.prototype.Kx=function(){var a=this.b.kb(),b;for(b=this.Vc.length;a.cc<b;a.cc++)if(this.Vc[a.cc].gb())return;this.tr()};a.prototype.tr=function(){if(this.kd.length){var a,
b,e,d,c=this.kd.length-1;this.b.Rk(this);if(this.lo)for(a=0,b=this.kd.length;a<b;a++)e=this.kd[a],(d=!this.ml||!this.group&&a<c)&&this.b.Ei(e.Da),e.gb(),d?this.b.pf(e.Da):this.b.Vl(e.Da);else for(a=0,b=this.kd.length;a<b;a++)this.kd[a].gb();this.b.Mk()}};a.prototype.Nx=function(){var a=this.b.kb();a.ib=this;var b=!1,e;a.cb=0;for(e=this.hb.length;a.cb<e;a.cb++)if(this.hb[a.cb].gb())b=!0;else if(!this.cd)return!1;return this.cd?b:!0};a.prototype.Rn=function(){this.b.Mf++;var a=this.b.kb().cb,b=this.b.Rk(this);
if(!this.cd)for(b.cb=a+1,a=this.hb.length;b.cb<a;b.cb++)if(!this.hb[b.cb].gb()){this.b.Mk();return}this.Wk();this.b.Mk()};a.prototype.Nw=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.hb[b].type===a.type)return!1;return!0};Xb=a;b.prototype.$a=function(){var a,b,e;a=0;for(b=this.X.length;a<b;a++)e=this.X[a],e.$a(),e.md&&(this.rh=!0)};b.prototype.Px=function(){return!0};b.prototype.Vn=function(){var a,b;a=0;for(b=this.X.length;a<b;a++)this.Wa[a]=this.X[a].get();return Qa(this.Bb.apply(this.b.Vd,
this.Wa),this.ak)};b.prototype.Ox=function(){var a,b;a=0;for(b=this.X.length;a<b;a++)this.Wa[a]=this.X[a].get();a=this.Bb.apply(this.Ef?this.Ef:this.type,this.Wa);this.type.pd();return a};b.prototype.Un=function(){var a,b,e,d,c,g,f,p,h=this.type,u=h.U(),m=this.Hc.cd&&!this.trigger;b=0;var l=h.Xb,w=h.N,r=h.he,t=this.rd,q=-1<t,z=this.rh,C=this.X,D=this.Wa,O=this.ak,E=this.Bb,H;if(z)for(b=0,c=C.length;b<c;++b)g=C[b],g.md||(D[b]=g.get(0));else for(b=0,c=C.length;b<c;++b)D[b]=C[b].get(0);if(u.ea){u.k.length=
0;u.ma.length=0;H=h.k;a=0;for(d=H.length;a<d;++a){p=H[a];if(z)for(b=0,c=C.length;b<c;++b)g=C[b],g.md&&(D[b]=g.get(a));q?(b=0,w&&(b=p.type.Dg[r]),b=E.apply(p.V[t+b],D)):b=E.apply(p,D);(f=Qa(b,O))?u.k.push(p):m&&u.ma.push(p)}h.finish&&h.finish(!0);u.ea=!1;h.pd();return u.Im()}e=0;H=(f=m&&!this.Hc.Nw(this))?u.ma:u.k;var I=!1;a=0;for(d=H.length;a<d;++a){p=H[a];if(z)for(b=0,c=C.length;b<c;++b)g=C[b],g.md&&(D[b]=g.get(a));q?(b=0,w&&(b=p.type.Dg[r]),b=E.apply(p.V[t+b],D)):b=E.apply(p,D);if(Qa(b,O))if(I=
!0,f){if(u.k.push(p),l)for(b=0,c=p.siblings.length;b<c;b++)g=p.siblings[b],g.type.U().k.push(g)}else{H[e]=p;if(l)for(b=0,c=p.siblings.length;b<c;b++)g=p.siblings[b],g.type.U().k[e]=g;e++}else if(f){H[e]=p;if(l)for(b=0,c=p.siblings.length;b<c;b++)g=p.siblings[b],g.type.U().ma[e]=g;e++}else if(m&&(u.ma.push(p),l))for(b=0,c=p.siblings.length;b<c;b++)g=p.siblings[b],g.type.U().ma.push(g)}H.length=e;if(l)for(w=h.rc,a=0,d=w.length;a<d;a++)p=w[a].U(),f?p.ma.length=e:p.k.length=e;e=I;if(f&&!I)for(a=0,d=u.k.length;a<
d;a++){p=u.k[a];if(z)for(b=0,c=C.length;b<c;b++)g=C[b],g.md&&(D[b]=g.get(a));b=q?E.apply(p.V[t],D):E.apply(p,D);if(Qa(b,O)){I=!0;break}}h.finish&&h.finish(e||m);return m?I:u.Im()};Sb=b;e.prototype.$a=function(){var a,b,e;a=0;for(b=this.X.length;a<b;a++)e=this.X[a],e.$a(),e.md&&(this.rh=!0)};e.prototype.Vn=function(){var a=this.b,b,e,d=this.X,c=this.Wa;b=0;for(e=d.length;b<e;++b)c[b]=d[b].get();return this.Bb.apply(a.Vd,c)};e.prototype.Un=function(){var a=this.type,b=this.rd,e=a.he,d=this.rh,c=this.X,
g=this.Wa,f=this.Bb,p=a.U().tc(),a=a.N,h=-1<b,u,m,l,w,r,t;if(d)for(m=0,w=c.length;m<w;++m)r=c[m],r.md||(g[m]=r.get(0));else for(m=0,w=c.length;m<w;++m)g[m]=c[m].get(0);u=0;for(l=p.length;u<l;++u){t=p[u];if(d)for(m=0,w=c.length;m<w;++m)r=c[m],r.md&&(g[m]=r.get(u));h?(m=0,a&&(m=t.type.Dg[e]),f.apply(t.V[b+m],g)):f.apply(t,g)}return!1};Tb=e;var C=[],u=-1;g.prototype.$a=function(){var a,b;if(11===this.type)this.Lf=this.b.Mp(this.Xi,this.Hc.parent);else if(13===this.type)for(a=0,b=this.mg.length;a<b;a++)this.mg[a].$a();
this.Kd&&this.Kd.$a()};g.prototype.$w=function(a){this.md||!a||a.Fa.cl||(this.md=!0)};g.prototype.Br=function(){this.md=!0};g.prototype.qw=function(a){this.De=a||0;a=w();this.Kd.get(a);u--;return a.data};g.prototype.rw=function(a){this.De=a||0;a=w();this.Kd.get(a);u--;return J(a.data)?a.data:""};g.prototype.yw=function(){return this.object};g.prototype.ow=function(){return this.yp};g.prototype.ww=function(a){this.De=a||0;a=w();this.Kd.get(a);u--;return a.nb()?this.b.Kh(a.data):this.b.Am(a.data)};
g.prototype.xw=function(){return this.ob};g.prototype.vw=function(){return this.key};g.prototype.uw=function(){return this.index};g.prototype.sw=function(a){a=a||0;var b=this.dd.type,e=null,e=b.U(),d=e.tc();if(d.length)e=d[a%d.length].type;else if(e.ma.length)e=e.ma[a%e.ma.length].type;else if(b.k.length)e=b.k[a%b.k.length].type;else return 0;return this.index+e.Kj[b.he]};g.prototype.pw=function(){return this.Lf};g.prototype.nw=function(){return this.Gp};g.prototype.zw=function(){var a,b;a=0;for(b=
this.mg.length;a<b;a++)this.Wi[a]=this.mg[a].get();return this.Wi};Ub=g;m.prototype.$a=function(){this.Da=f(this.Da)};m.prototype.Ae=function(a){var b=this.b.Lp();this.parent&&!this.Zh&&b?(this.eg>=b.length&&(b.length=this.eg+1),b[this.eg]=a):this.data=a};m.prototype.Pf=function(){var a=this.b.Lp();return!this.parent||this.Zh||!a||this.dk?this.data:this.eg>=a.length||"undefined"===typeof a[this.eg]?this.Nm:a[this.eg]};m.prototype.gb=function(){!this.parent||this.Zh||this.dk||this.Ae(this.Nm)};Ob=
m;r.prototype.toString=function(){return"include:"+this.Rh.toString()};r.prototype.$a=function(){this.Rh=this.b.mm[this.Gw];this.sheet.Xp.add(this);this.Da=f(this.Da);for(var a=this.parent;a;)a.group&&a.tj.push(this),a=a.parent;this.es()};r.prototype.gb=function(){this.parent&&this.b.Di(this.b.I);this.Rh.Jm||this.Rh.gb(!0);this.parent&&this.b.pf(this.b.I)};r.prototype.es=function(){for(var a=this.parent;a;){if(a.group&&!a.Hg){this.Hb=!1;return}a=a.parent}this.Hb=!0};Yb=r;p.prototype.reset=function(a){this.ib=
a;this.cc=this.cb=0;this.Mr.length=0;this.jm=this.$f=!1};p.prototype.Pw=function(){return this.ib.lo?!0:this.cb<this.ib.hb.length-1?!!this.ib.Da.length:!1};Nb=p})();
(function(){function h(a,b){this.dd=a;this.b=a.b;this.type=b[0];this.get=[this.Av,this.wv,this.Jv,this.Mv,this.pv,this.Kv,this.Ev,this.tv,this.Dv,this.Iv,this.qv,this.Hv,this.uv,this.Fv,this.Bv,this.Cv,this.xv,this.yv,this.sv,this.Lv,this.Gv,this.zv,this.rv,this.vv][this.type];var e=null;this.re=this.X=this.Wa=this.Bb=this.il=this.second=this.first=this.value=null;this.rd=-1;this.ud=null;this.os=-1;this.Lf=this.Xi=null;this.eh=!1;switch(this.type){case 0:case 1:case 2:this.value=b[1];break;case 3:this.first=
new Wb(a,b[1]);break;case 18:this.first=new Wb(a,b[1]);this.second=new Wb(a,b[2]);this.il=new Wb(a,b[3]);break;case 19:this.Bb=this.b.Me(b[1]);this.Bb!==W.prototype.J.random&&this.Bb!==W.prototype.J.Hu||this.dd.Br();this.Wa=[];this.X=[];3===b.length?(e=b[2],this.Wa.length=e.length+1):this.Wa.length=1;break;case 20:this.re=this.b.I[b[1]];this.rd=-1;this.Bb=this.b.Me(b[2]);this.eh=b[3];lc&&this.Bb===lc.prototype.J.Ds&&this.dd.Br();b[4]?this.ud=new Wb(a,b[4]):this.ud=null;this.Wa=[];this.X=[];6===b.length?
(e=b[5],this.Wa.length=e.length+1):this.Wa.length=1;break;case 21:this.re=this.b.I[b[1]];this.eh=b[2];b[3]?this.ud=new Wb(a,b[3]):this.ud=null;this.os=b[4];break;case 22:this.re=this.b.I[b[1]];this.re.Uj(b[2]);this.rd=this.re.wm(b[2]);this.Bb=this.b.Me(b[3]);this.eh=b[4];b[5]?this.ud=new Wb(a,b[5]):this.ud=null;this.Wa=[];this.X=[];7===b.length?(e=b[6],this.Wa.length=e.length+1):this.Wa.length=1;break;case 23:this.Xi=b[1],this.Lf=null}this.dd.$w(this.re);4<=this.type&&17>=this.type&&(this.first=new Wb(a,
b[1]),this.second=new Wb(a,b[2]));if(e){var f,g;f=0;for(g=e.length;f<g;f++)this.X.push(new Wb(a,e[f]))}}function l(){++a;t.length===a&&t.push(new Vb);return t[a]}function f(a,b,e){var f,g;f=0;for(g=a.length;f<g;++f)a[f].get(e),b[f+1]=e.data}function q(a,b){this.type=a||Zb.tg;this.data=b||0;this.hg=null;this.type==Zb.tg&&(this.data=Math.floor(this.data))}h.prototype.$a=function(){23===this.type&&(this.Lf=this.dd.b.Mp(this.Xi,this.dd.Hc.parent));this.first&&this.first.$a();this.second&&this.second.$a();
this.il&&this.il.$a();this.ud&&this.ud.$a();if(this.X){var a,b;a=0;for(b=this.X.length;a<b;a++)this.X[a].$a()}};var t=[],a=-1;h.prototype.Lv=function(c){var b=this.X,e=this.Wa;e[0]=c;c=l();f(b,e,c);--a;this.Bb.apply(this.b.Vd,e)};h.prototype.Gv=function(c){var b=this.re,e=this.Wa,h=this.X,g=this.ud,m=this.Bb,r=this.dd.De,p=b.U(),t=p.tc();if(!t.length)if(p.ma.length)t=p.ma;else{this.eh?c.Cc(""):c.ua(0);return}e[0]=c;c.hg=b;c=l();f(h,e,c);g&&(g.get(c),c.nb()&&(r=c.data,t=b.k));--a;b=t.length;if(r>=
b||r<=-b)r%=b;0>r&&(r+=b);m.apply(t[r],e)};h.prototype.rv=function(c){var b=this.re,e=this.Wa,h=this.X,g=this.ud,m=this.rd,r=this.Bb,p=this.dd.De,t=b.U(),q=t.tc();if(!q.length)if(t.ma.length)q=t.ma;else{this.eh?c.Cc(""):c.ua(0);return}e[0]=c;c.hg=b;c=l();f(h,e,c);g&&(g.get(c),c.nb()&&(p=c.data,q=b.k));--a;h=q.length;if(p>=h||p<=-h)p%=h;0>p&&(p+=h);p=q[p];q=0;b.N&&(q=p.type.Dg[b.he]);r.apply(p.V[m+q],e)};h.prototype.zv=function(c){var b=this.ud,e=this.re,f=this.os,g=this.dd.De,h=e.U(),r=h.tc();if(!r.length)if(h.ma.length)r=
h.ma;else{this.eh?c.Cc(""):c.ua(0);return}if(b){h=l();b.get(h);if(h.nb()){g=h.data;e=e.k;g%=e.length;0>g&&(g+=e.length);f=e[g].mb[f];J(f)?c.Cc(f):c.K(f);--a;return}--a}b=r.length;if(g>=b||g<=-b)g%=b;0>g&&(g+=b);g=r[g];r=0;e.N&&(r=g.type.Kj[e.he]);f=g.mb[f+r];J(f)?c.Cc(f):c.K(f)};h.prototype.Av=function(a){a.type=Zb.tg;a.data=this.value};h.prototype.wv=function(a){a.type=Zb.sg;a.data=this.value};h.prototype.Jv=function(a){a.type=Zb.String;a.data=this.value};h.prototype.Mv=function(a){this.first.get(a);
a.nb()&&(a.data=-a.data)};h.prototype.pv=function(c){this.first.get(c);var b=l();this.second.get(b);c.nb()&&b.nb()&&(c.data+=b.data,b.Ng()&&c.Xg());--a};h.prototype.Kv=function(c){this.first.get(c);var b=l();this.second.get(b);c.nb()&&b.nb()&&(c.data-=b.data,b.Ng()&&c.Xg());--a};h.prototype.Ev=function(c){this.first.get(c);var b=l();this.second.get(b);c.nb()&&b.nb()&&(c.data*=b.data,b.Ng()&&c.Xg());--a};h.prototype.tv=function(c){this.first.get(c);var b=l();this.second.get(b);c.nb()&&b.nb()&&(c.data/=
b.data,c.Xg());--a};h.prototype.Dv=function(c){this.first.get(c);var b=l();this.second.get(b);c.nb()&&b.nb()&&(c.data%=b.data,b.Ng()&&c.Xg());--a};h.prototype.Iv=function(c){this.first.get(c);var b=l();this.second.get(b);c.nb()&&b.nb()&&(c.data=Math.pow(c.data,b.data),b.Ng()&&c.Xg());--a};h.prototype.qv=function(c){this.first.get(c);var b=l();this.second.get(b);c.nb()?b.fk()?c.Cc(c.data.toString()+b.data):c.data&&b.data?c.ua(1):c.ua(0):c.fk()&&(b.fk()?c.data+=b.data:c.data+=(Math.round(1E10*b.data)/
1E10).toString());--a};h.prototype.Hv=function(c){this.first.get(c);var b=l();this.second.get(b);c.nb()&&b.nb()&&(c.data||b.data?c.ua(1):c.ua(0));--a};h.prototype.sv=function(a){this.first.get(a);a.data?this.second.get(a):this.il.get(a)};h.prototype.uv=function(c){this.first.get(c);var b=l();this.second.get(b);c.ua(c.data===b.data?1:0);--a};h.prototype.Fv=function(c){this.first.get(c);var b=l();this.second.get(b);c.ua(c.data!==b.data?1:0);--a};h.prototype.Bv=function(c){this.first.get(c);var b=l();
this.second.get(b);c.ua(c.data<b.data?1:0);--a};h.prototype.Cv=function(c){this.first.get(c);var b=l();this.second.get(b);c.ua(c.data<=b.data?1:0);--a};h.prototype.xv=function(c){this.first.get(c);var b=l();this.second.get(b);c.ua(c.data>b.data?1:0);--a};h.prototype.yv=function(c){this.first.get(c);var b=l();this.second.get(b);c.ua(c.data>=b.data?1:0);--a};h.prototype.vv=function(a){var b=this.Lf.Pf();la(b)?a.K(b):a.Cc(b)};Wb=h;q.prototype.Ng=function(){return this.type===Zb.sg};q.prototype.nb=function(){return this.type===
Zb.tg||this.type===Zb.sg};q.prototype.fk=function(){return this.type===Zb.String};q.prototype.Xg=function(){this.Ng()||(this.fk()&&(this.data=parseFloat(this.data)),this.type=Zb.sg)};q.prototype.ua=function(a){this.type=Zb.tg;this.data=Math.floor(a)};q.prototype.K=function(a){this.type=Zb.sg;this.data=a};q.prototype.Cc=function(a){this.type=Zb.String;this.data=a};q.prototype.fo=function(a){la(a)?(this.type=Zb.sg,this.data=a):J(a)?(this.type=Zb.String,this.data=a.toString()):(this.type=Zb.tg,this.data=
0)};Vb=q;Zb={tg:0,sg:1,String:2}})();function W(h){this.b=h;this.pc=[]}
W.prototype.ab=function(){var h={},l,f,q,t,a,c,b,e;h.waits=[];var w=h.waits,g;l=0;for(f=this.pc.length;l<f;l++){c=this.pc[l];g={t:c.time,st:c.Ir,s:c.ko,ev:c.Bg.ka,sm:[],sols:{}};c.Bg.Vc[c.cc]&&(g.act=c.Bg.Vc[c.cc].ka);q=0;for(t=c.Da.length;q<t;q++)g.sm.push(c.Da[q].ka);for(a in c.ac)if(c.ac.hasOwnProperty(a)){b=this.b.I[parseInt(a,10)];e={sa:c.ac[a].Xk,insts:[]};q=0;for(t=c.ac[a].ke.length;q<t;q++)e.insts.push(c.ac[a].ke[q].uid);g.sols[b.ka.toString()]=e}w.push(g)}return h};
W.prototype.pb=function(h){h=h.waits;var l,f,q,t,a,c,b,e,w,g,m;l=this.pc.length=0;for(f=h.length;l<f;l++)if(c=h[l],e=this.b.pp[c.ev.toString()]){w=-1;q=0;for(t=e.Vc.length;q<t;q++)if(e.Vc[q].ka===c.act){w=q;break}if(-1!==w){b={ac:{},Da:[],hm:!1};b.time=c.t;b.Ir=c.st||"";b.ko=!!c.s;b.Bg=e;b.cc=w;q=0;for(t=c.sm.length;q<t;q++)(e=this.b.Xj(c.sm[q]))&&b.Da.push(e);for(a in c.sols)if(c.sols.hasOwnProperty(a)&&(e=this.b.Xj(parseInt(a,10)))){w=c.sols[a];g={Xk:w.sa,ke:[]};q=0;for(t=w.insts.length;q<t;q++)(m=
this.b.Gg(w.insts[q]))&&g.ke.push(m);b.ac[e.index.toString()]=g}this.pc.push(b)}}};
(function(){function h(){}function l(){}function f(){}var q=W.prototype;h.prototype.Os=function(){return!0};h.prototype.Yo=function(){return!0};h.prototype.Dt=function(){return!0};h.prototype.Gs=function(a,b,c){return $b(a,b,c)};var t=[],a=-1;h.prototype.Rs=function(b){var c=b.U();a++;t.length===a&&t.push([]);var g=t[a];za(g,c.tc());var f=this.b.kb(),h=f.ib,p=f.Pw(),f=this.b.Ex(),l,q,u,n,v,A,d=b.Xb;if(p)for(p=0,l=g.length;p<l&&!f.Fb;p++){this.b.Ei(h.Da);n=g[p];c=b.U();c.ea=!1;c.k.length=1;c.k[0]=
n;if(d)for(q=0,u=n.siblings.length;q<u;q++)v=n.siblings[q],A=v.type.U(),A.ea=!1,A.k.length=1,A.k[0]=v;f.index=p;h.Rn();this.b.pf(h.Da)}else for(c.ea=!1,c.k.length=1,p=0,l=g.length;p<l&&!f.Fb;p++){n=g[p];c.k[0]=n;if(d)for(q=0,u=n.siblings.length;q<u;q++)v=n.siblings[q],A=v.type.U(),A.ea=!1,A.k.length=1,A.k[0]=v;f.index=p;h.Rn()}g.length=0;this.b.xx();a--;return!1};h.prototype.nu=function(){var a=this.b.Vj().fa;"undefined"===typeof a.TriggerOnce_lastTick&&(a.TriggerOnce_lastTick=-1);var b=a.TriggerOnce_lastTick,
c=this.b.Tc;a.TriggerOnce_lastTick=c;return this.b.gn||b!==c-1};h.prototype.Hs=function(a,b,c){return $b(a.Pf(),b,c)};h.prototype.Ys=function(a){return(a=this.b.Oh[a.toLowerCase()])&&a.Hg};h.prototype.Ro=function(){var a=this.b.kb();return a.jm?!1:!a.$f};h.prototype.Zo=function(){return!0};h.prototype.nt=function(){return!0};h.prototype.Bl=function(){return!0};h.prototype.Et=function(){return!0};h.prototype.Al=function(){return!0};h.prototype.xs=function(a,b,c){return La(U(a),U(c))<=U(b)};h.prototype.Vs=
function(a,b){return Na(U(a),U(b))};h.prototype.Us=function(a,b,c){a=Ia(a);b=Ia(b);c=Ia(c);return Na(c,b)?Na(a,b)&&!Na(a,c):!(!Na(a,b)&&Na(a,c))};q.m=new h;l.prototype.Ls=function(a,b,c,f){if(b&&a&&(b=this.b.Yl(a,b,c,f))){this.b.Oc++;var h;this.b.trigger(Object.getPrototypeOf(a.Fa).m.ug,b);if(b.Xb)for(c=0,f=b.siblings.length;c<f;c++)h=b.siblings[c],this.b.trigger(Object.getPrototypeOf(h.type.Fa).m.ug,h);this.b.Oc--;a=a.U();a.ea=!1;a.k.length=1;a.k[0]=b;if(b.Xb)for(c=0,f=b.siblings.length;c<f;c++)h=
b.siblings[c],a=h.type.U(),a.ea=!1,a.k.length=1,a.k[0]=h}};l.prototype.Wt=function(a){this.b.da&&this.b.da.scale!==a&&(this.b.da.scale=a,this.b.da.qp(),this.b.Y=!0)};l.prototype.du=function(a,b){0===a.Yi?la(b)?a.Ae(b):a.Ae(parseFloat(b)):1===a.Yi&&a.Ae(b.toString())};l.prototype.vs=function(a,b){0===a.Yi?la(b)?a.Ae(a.Pf()+b):a.Ae(a.Pf()+parseFloat(b)):1===a.Yi&&a.Ae(a.Pf()+b.toString())};l.prototype.lu=function(a,b){0===a.Yi&&(la(b)?a.Ae(a.Pf()-b):a.Ae(a.Pf()-parseFloat(b)))};var c=[],b=[];l.prototype.ou=
function(a){if(!(0>a)){var f,g,h,l=this.b.kb(),p;c.length?p=c.pop():p={ac:{},Da:[]};p.hm=!1;p.time=this.b.Pc.qa+a;p.Ir="";p.ko=!1;p.Bg=l.ib;p.cc=l.cc+1;a=0;for(f=this.b.I.length;a<f;a++)h=this.b.I[a],g=h.U(),g.ea&&-1===l.ib.Da.indexOf(h)||(p.Da.push(h),h=void 0,b.length?h=b.pop():h={ke:[]},h.Xk=!1,h.Xk=g.ea,za(h.ke,g.k),p.ac[a.toString()]=h);this.pc.push(p);return!0}};l.prototype.Ot=function(){if(!this.b.$h&&!this.b.zh&&this.b.da){this.b.zh=this.b.da;var a,b,c;a=0;for(b=this.b.Oe.length;a<b;a++)c=
this.b.Oe[a],c.xr(c.$j)}};q.F=new l;f.prototype["int"]=function(a,b){J(b)?(a.ua(parseInt(b,10)),isNaN(a.data)&&(a.data=0)):a.ua(b)};f.prototype["float"]=function(a,b){J(b)?(a.K(parseFloat(b)),isNaN(a.data)&&(a.data=0)):a.K(b)};f.prototype.random=function(a,b,c){void 0===c?a.K(Math.random()*b):a.K(Math.random()*(c-b)+b)};f.prototype.sqrt=function(a,b){a.K(Math.sqrt(b))};f.prototype.abs=function(a,b){a.K(Math.abs(b))};f.prototype.round=function(a,b){a.ua(Math.round(b))};f.prototype.floor=function(a,
b){a.ua(Math.floor(b))};f.prototype.ceil=function(a,b){a.ua(Math.ceil(b))};f.prototype.sin=function(a,b){a.K(Math.sin(U(b)))};f.prototype.cos=function(a,b){a.K(Math.cos(U(b)))};f.prototype.tan=function(a,b){a.K(Math.tan(U(b)))};f.prototype.asin=function(a,b){a.K(Ea(Math.asin(b)))};f.prototype.acos=function(a,b){a.K(Ea(Math.acos(b)))};f.prototype.atan=function(a,b){a.K(Ea(Math.atan(b)))};f.prototype.exp=function(a,b){a.K(Math.exp(b))};f.prototype.log10=function(a,b){a.K(Math.log(b)/Math.LN10)};f.prototype.max=
function(a){var b=arguments[1];"number"!==typeof b&&(b=0);var c,f,h;c=2;for(f=arguments.length;c<f;c++)h=arguments[c],"number"===typeof h&&b<h&&(b=h);a.K(b)};f.prototype.min=function(a){var b=arguments[1];"number"!==typeof b&&(b=0);var c,f,h;c=2;for(f=arguments.length;c<f;c++)h=arguments[c],"number"===typeof h&&b>h&&(b=h);a.K(b)};f.prototype.ee=function(a){a.K(this.b.ee)};f.prototype.qg=function(a){a.K(this.b.qg)};f.prototype.time=function(a){a.K(this.b.Pc.qa)};f.prototype.Tc=function(a){a.ua(this.b.Tc)};
f.prototype.Ek=function(a){a.ua(this.b.Ek)};f.prototype.rm=function(a){a.ua(this.b.rm)};f.prototype.Qu=function(a,b,c,f,h){a.K(Pa(b,c,f,h))};f.prototype.u=function(a,b,c,f,h){a.K(Ea(Ja(b,c,f,h)))};f.prototype.Sx=function(a){a.K(this.b.da.scrollX)};f.prototype.Tx=function(a){a.K(this.b.da.scrollY)};f.prototype.Vw=function(a){a.ua(this.b.da.width)};f.prototype.Uw=function(a){a.ua(this.b.da.height)};f.prototype.left=function(a,b,c){a.Cc(J(b)?b.substr(0,c):"")};f.prototype.right=function(a,b,c){a.Cc(J(b)?
b.substr(b.length-c):"")};f.prototype.replace=function(a,b,c,f){J(b)&&J(c)&&J(f)?a.Cc(b.replace(new RegExp(bb(c),"gi"),f)):a.Cc(J(b)?b:"")};f.prototype.trim=function(a,b){a.Cc(J(b)?b.trim():"")};f.prototype.Hu=function(a){var b=L(Math.random()*(arguments.length-1));a.fo(arguments[b+1])};f.prototype.Wl=function(a){a.K(this.b.Wl/1E3)};f.prototype.vk=function(a){a.K(this.b.vk)};f.prototype.rx=function(a){a.ua(this.b.Ra)};f.prototype.qx=function(a){a.ua(this.b.Qa)};q.J=new f;q.Lx=function(){var a,f,g,
h,l,p,t=this.b.kb();a=0;for(g=this.pc.length;a<g;a++){h=this.pc[a];if(-1===h.time){if(!h.ko)continue}else if(h.time>this.b.Pc.qa)continue;t.ib=h.Bg;t.cc=h.cc;t.cb=0;for(f in h.ac)h.ac.hasOwnProperty(f)&&(l=this.b.I[parseInt(f,10)].U(),p=h.ac[f],l.ea=p.Xk,za(l.k,p.ke),l=p,l.ke.length=0,b.push(l));h.Bg.Kx();this.b.Vl(h.Da);h.hm=!0}f=a=0;for(g=this.pc.length;a<g;a++)h=this.pc[a],this.pc[f]=h,h.hm?(Sa(h.ac),h.Da.length=0,c.push(h)):f++;this.pc.length=f}})();
(function(){lb=function(h,f){var q=h[1],t=h[3],a=h[4],c=h[5],b=h[6],e=h[7],w=h[8];f.m||(f.m={});f.F||(f.F={});f.J||(f.J={});var g=f.m,m=f.F,r=f.J;t&&(g.Is=function(a,b){return $b(this.x,a,b)},g.Js=function(a,b){return $b(this.y,a,b)},g.Vo=function(){var a=this.A;this.la();var b=this.ya;return!(b.right<a.Ia||b.bottom<a.Ja||b.left>a.Ma||b.top>a.La)},g.ry=function(){this.la();var a=this.ya,b=this.b.da;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},g.Lt=function(a,b,c){var e=this.U(),g=
e.tc();if(!g.length)return!1;var f=g[0],h=f,d=Pa(f.x,f.y,b,c),k,m,l;k=1;for(m=g.length;k<m;k++)if(f=g[k],l=Pa(f.x,f.y,b,c),0===a&&l<d||1===a&&l>d)d=l,h=f;e.Bi(h);return!0},m.gu=function(a){this.x!==a&&(this.x=a,this.D())},m.hu=function(a){this.y!==a&&(this.y=a,this.D())},m.Zt=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.D()},m.$t=function(a,b){var c=a.fw(this);if(c){var e;c.Jh?(e=c.Jh(b,!0),c=c.Jh(b,!1)):(e=c.x,c=c.y);if(this.x!==e||this.y!==c)this.x=e,this.y=c,this.D()}},m.xy=function(a){0!==
a&&(this.x+=Math.cos(this.u)*a,this.y+=Math.sin(this.u)*a,this.D())},m.wy=function(a,b){0!==b&&(this.x+=Math.cos(U(a))*b,this.y+=Math.sin(U(a))*b,this.D())},r.fj=function(a){a.K(this.x)},r.gj=function(a){a.K(this.y)},r.ee=function(a){a.K(this.b.Ze(this))});a&&(g.ny=function(a,b){return $b(this.width,a,b)},g.ky=function(a,b){return $b(this.height,a,b)},m.fu=function(a){this.width!==a&&(this.width=a,this.D())},m.Ny=function(a){this.height!==a&&(this.height=a,this.D())},m.dp=function(a,b){if(this.width!==
a||this.height!==b)this.width=a,this.height=b,this.D()},r.pu=function(a){a.K(this.width)},r.Ss=function(a){a.K(this.height)},r.As=function(a){this.la();a.K(this.ya.left)},r.Cs=function(a){this.la();a.K(this.ya.top)},r.Bs=function(a){this.la();a.K(this.ya.right)},r.zs=function(a){this.la();a.K(this.ya.bottom)});c&&(g.xs=function(a,b){return La(this.u,U(b))<=U(a)},g.Vs=function(a){return Na(this.u,U(a))},g.Us=function(a,b){var c=Ia(a),e=Ia(b),g=Ga(this.u);return Na(e,c)?Na(g,c)&&!Na(g,e):!(!Na(g,c)&&
Na(g,e))},m.Pt=function(a){a=U(Fa(a));isNaN(a)||this.u===a||(this.u=a,this.D())},m.Hy=function(a){0===a||isNaN(a)||(this.u+=U(a),this.u=Ga(this.u),this.D())},m.Iy=function(a){0===a||isNaN(a)||(this.u-=U(a),this.u=Ga(this.u),this.D())},m.Jy=function(a,b){var c=Ma(this.u,U(b),U(a));isNaN(c)||this.u===c||(this.u=c,this.D())},m.Ky=function(a,b,c){a=Ma(this.u,Math.atan2(c-this.y,b-this.x),U(a));isNaN(a)||this.u===a||(this.u=a,this.D())},m.cu=function(a,b){var c=Math.atan2(b-this.y,a-this.x);isNaN(c)||
this.u===c||(this.u=c,this.D())},r.ws=function(a){a.K(Ha(this.u))});q||(g.Qo=function(a,b,c){return $b(this.mb[a],b,c)},g.To=function(a){return this.mb[a]},g.Ey=function(a,b){var c=this.U(),e=c.tc();if(!e.length)return!1;var g=e[0],f=g,h=g.mb[b],d,k,m;d=1;for(k=e.length;d<k;d++)if(g=e[d],m=g.mb[b],0===a&&m<h||1===a&&m>h)h=m,f=g;c.Bi(f);return!0},g.Dy=function(a){var b,c,e,g,f;if(this.b.Vj().ak){f=this.U();if(f.ea)for(f.ea=!1,f.k.length=0,f.ma.length=0,e=this.k,b=0,c=e.length;b<c;b++)g=e[b],g.uid===
a?f.ma.push(g):f.k.push(g);else{e=b=0;for(c=f.k.length;b<c;b++)g=f.k[b],f.k[e]=g,g.uid===a?f.ma.push(g):e++;f.k.length=e}this.pd();return!!f.k.length}g=this.b.Gg(a);if(!g)return!1;f=this.U();if(!f.ea&&-1===f.k.indexOf(g))return!1;if(this.N)for(a=g.type.Oa,b=0,c=a.length;b<c;b++){if(a[b]===this)return f.Bi(g),this.pd(),!0}else if(g.type===this)return f.Bi(g),this.pd(),!0;return!1},g.ug=function(){return!0},g.pt=function(){return!0},m.Vt=function(a,b){var c=this.mb;la(c[a])?c[a]=la(b)?b:parseFloat(b):
J(c[a])&&(c[a]=J(b)?b:b.toString())},m.jy=function(a,b){var c=this.mb;la(c[a])?c[a]=la(b)?c[a]+b:c[a]+parseFloat(b):J(c[a])&&(c[a]=J(b)?c[a]+b:c[a]+b.toString())},m.ku=function(a,b){var c=this.mb;la(c[a])&&(c[a]=la(b)?c[a]-b:c[a]-parseFloat(b))},m.St=function(a,b){this.mb[a]=b?1:0},m.Oy=function(a){this.mb[a]=1-this.mb[a]},m.Ns=function(){this.b.Le(this)},m.it||(m.it=function(a){var b,c;try{b=JSON.parse(a)}catch(e){return}this.b.qk(this,b,!0);this.Gd&&this.Gd();if(this.V)for(a=0,b=this.V.length;a<
b;++a)c=this.V[a],c.Gd&&c.Gd()}),r.Ks=function(a){var b=a.hg.k.length,c,e,g;c=0;for(e=this.b.sd.length;c<e;c++)g=this.b.sd[c],a.hg.N?0<=g.type.Oa.indexOf(a.hg)&&b++:g.type===a.hg&&b++;a.ua(b)},r.Gy=function(a){a.ua(a.hg.U().tc().length)},r.hp=function(a){a.ua(this.uid)},r.oy=function(a){a.ua(this.Mh())},r.ys||(r.ys=function(a){a.Cc(JSON.stringify(this.b.Wn(this,!0)))}));b&&(g.ty=function(){return this.visible},m.eu=function(a){!a!==!this.visible&&(this.visible=a,this.b.Y=!0)},g.my=function(a,b){return $b(hb(100*
this.opacity),a,b)},m.Yt=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.Y=!0)},r.Opacity=function(a){a.K(hb(100*this.opacity))});e&&(g.qy=function(a){return a?this.A===a:!1},g.Fy=function(a){var b=this.U(),c=b.tc();if(!c.length)return!1;var e=c[0],g=e,f,h;f=1;for(h=c.length;f<h;f++)if(e=c[f],0===a){if(e.A.index>g.A.index||e.A.index===g.A.index&&e.Ld()>g.Ld())g=e}else if(e.A.index<g.A.index||e.A.index===g.A.index&&e.Ld()<g.Ld())g=e;b.Bi(g);return!0},m.Ay=function(){var a=
this.A,b=a.k;b.length&&b[b.length-1]===this||(a.dh(this,!1),a.uh(this,!1),this.b.Y=!0)},m.yy=function(){var a=this.A,b=a.k;b.length&&b[0]===this||(a.dh(this,!1),a.Ax(this),this.b.Y=!0)},m.zy=function(a){a&&a!=this.A&&(this.A.dh(this,!0),this.A=a,a.uh(this,!0),this.b.Y=!0)},m.Qy=function(a,b){var c=0===a;if(b){var e=b.$v(this);e&&e.uid!==this.uid&&(this.A.index!==e.A.index&&(this.A.dh(this,!0),this.A=e.A,e.A.uh(this,!0)),this.A.bx(this,e,c),this.b.Y=!0)}},r.vy=function(a){a.ua(this.A.Tq)},r.uy=function(a){a.Cc(this.A.name)},
r.Py=function(a){a.ua(this.Ld())});w&&(m.Ly=function(a,b){if(this.b.H){var c=this.type.zm(b);if(!(0>c)){var e=1===a;this.Ne[c]!==e&&(this.Ne[c]=e,this.Ge(),this.b.Y=!0)}}},m.My=function(a,b,c){if(this.b.H){var e=this.type.zm(a);0>e||(a=this.type.T[e],e=this.Va[e],b=Math.floor(b),0>b||b>=e.length||(1===this.b.H.jw(a.Eb,b)&&(c/=100),e[b]!==c&&(e[b]=c,a.Hb&&(this.b.Y=!0))))}})};Fb=function(){this.Tl=this.Ml=!0;this.type.ij=!0;this.b.Y=!0;var h,f,q=this.Nl;h=0;for(f=q.length;h<f;++h)q[h](this);this.A.Dd&&
this.la()};Gb=function(h){h&&this.Nl.push(h)};Ib=function(){if(this.Ml){var h=this.ya,f=this.Sb;h.set(this.x,this.y,this.x+this.width,this.y+this.height);h.offset(-this.gc*this.width,-this.hc*this.height);this.u?(h.offset(-this.x,-this.y),f.Dr(h,this.u),f.offset(this.x,this.y),f.rp(h)):f.Mi(h);h.normalize();this.Ml=!1;this.fy()}};var h=new R(0,0,0,0);Jb=function(){if(this.A.Dd){var l=this.A.Bc,f=this.ya;h.set(l.Fc(f.left),l.Gc(f.top),l.Fc(f.right),l.Gc(f.bottom));this.lc.Fj(h)||(this.lc.right<this.lc.left?
l.update(this,null,h):l.update(this,this.lc,h),this.lc.Bh(h),this.A.we=!0)}};Kb=function(){if(this.Tl&&this.ae){this.la();var l=this.type.sj,f=this.ya;h.set(l.Fc(f.left),l.Gc(f.top),l.Fc(f.right),l.Gc(f.bottom));this.Te.Fj(h)||(this.Te.right<this.Te.left?l.update(this,null,h):l.update(this,this.Te,h),this.Te.Bh(h),this.Tl=!1)}};Hb=function(h,f){return this.ya.Ub(h,f)&&this.Sb.Ub(h,f)?this.za&&!this.za.Mg()?(this.za.Ff(this.width,this.height,this.u),this.za.Ub(h-this.x,f-this.y)):!0:!1};Bb=function(){this.type.rl();
return this.Sf};Lb=function(){this.A.Eo();return this.Ed};Mb=function(){this.wa.length=0;var h,f;h=0;for(f=this.Ne.length;h<f;h++)this.Ne[h]&&this.wa.push(this.type.T[h]);this.ns=!!this.wa.length};Cb=function(){return"Inst"+this.qr};ob=function(h){if(h&&h.Xb&&h.type!=this){var f,q,t;f=0;for(q=h.siblings.length;f<q;f++)if(t=h.siblings[f],t.type==this)return t}h=this.U().tc();return h.length?h[0]:null};pb=function(h){var f=this.U().tc();return f.length?f[h.Mh()%f.length]:null};nb=function(){if(this.jh&&
!this.N){var h,f;h=0;for(f=this.k.length;h<f;h++)this.k[h].Sf=h;var q=h,t=this.b.sd;h=0;for(f=t.length;h<f;++h)t[h].type===this&&(t[h].Sf=q++);this.jh=!1}};zb=function(h){if(h<this.k.length)return this.k[h];h-=this.k.length;var f=this.b.sd,q,t;q=0;for(t=f.length;q<t;++q)if(f[q].type===this){if(0===h)return f[q];--h}return null};qb=function(){return this.xf[this.de]};rb=function(){this.de++;this.de===this.xf.length?this.xf.push(new mb(this)):this.xf[this.de].ea=!0};sb=function(){this.de++;this.de===
this.xf.length&&this.xf.push(new mb(this));var h=this.xf[this.de],f=this.xf[this.de-1];f.ea?h.ea=!0:(h.ea=!1,za(h.k,f.k),za(h.ma,f.ma))};tb=function(){this.de--};ub=function(h){var f,q,t,a,c,b=0;if(!this.N)for(f=0,q=this.Oa.length;f<q;f++)for(c=this.Oa[f],t=0,a=c.bb.length;t<a;t++){if(h===c.bb[t].name)return this.fa.lastBehIndex=b,c.bb[t];b++}f=0;for(q=this.bb.length;f<q;f++){if(h===this.bb[f].name)return this.fa.lastBehIndex=b,this.bb[f];b++}return null};vb=function(h){return this.Uj(h)?this.fa.lastBehIndex:
-1};wb=function(h){var f,q;f=0;for(q=this.T.length;f<q;f++)if(this.T[f].name===h)return f;return-1};xb=function(){if(this.Xb&&!this.N){var h,f,q,t,a,c,b;this.rl();c=this.U();var e=c.ea,w=(h=this.b.kb())&&h.ib&&h.ib.cd;h=0;for(f=this.rc.length;h<f;h++)if(a=this.rc[h],a!==this&&(a.rl(),b=a.U(),b.ea=e,!e)){b.k.length=c.k.length;q=0;for(t=c.k.length;q<t;q++)b.k[q]=a.Np(c.k[q].Sf);if(w)for(b.ma.length=c.ma.length,q=0,t=c.ma.length;q<t;q++)b.ma[q]=a.Np(c.ma[q].Sf)}}};Ab=function(){return"Type"+this.ka};
$b=function(h,f,q){if("undefined"===typeof h||"undefined"===typeof q)return!1;switch(f){case 0:return h===q;case 1:return h!==q;case 2:return h<q;case 3:return h<=q;case 4:return h>q;case 5:return h>=q;default:return!1}}})();
var hc={noise:{src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nuniform mediump float seconds;\nuniform lowp float intensity;\nuniform lowp float color;\nvoid main(void)\n{\nlowp vec4 front = texture2D(samplerFront, vTex);\nfront.rgb /= front.a;\nmediump float seconds_mod = mod(seconds, 10.0);\nmediump vec3 noise = vec3(fract(sin(dot(vTex.xy, vec2(12.9898,78.233)) + seconds_mod) * 43758.5453),\nfract(sin(dot(vTex.yx, vec2(12.9898,-78.233)) + seconds_mod) * 43758.5453),\nfract(sin(dot(vTex.xy, vec2(-12.9898,-78.233)) + seconds_mod) * 43758.5453));\nnoise = mix(vec3(noise.r), noise, color);\nfront.rgb += (noise * intensity) - (intensity / 2.0);\nfront.rgb *= front.a;\ngl_FragColor = front;\n}",Hj:0,
Ij:0,$l:!1,Jl:!0,X:[["intensity",0,1],["color",0,1]]}};function mc(h){this.b=h}
(function(){function h(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function l(a){a=a.toLowerCase();return V.hasOwnProperty(a)&&V[a].length?V[a][0].Kc():F.destination}function f(){return F.createGain?F.createGain():F.createGainNode()}function q(a){return F.createDelay?F.createDelay(a):F.createDelayNode(a)}function t(a){a.start?a.start(0):a.noteOn(0)}function a(a,b,c){a.start?a.start(0,b):a.noteGrainOn(0,b,c-b)}function c(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}function b(a,
b,c,e,d,g){this.type="filter";this.rb=[a,b,c,e,d,g];this.pa=f();this.R=f();this.R.gain.value=g;this.O=f();this.O.gain.value=1-g;this.eb=F.createBiquadFilter();this.eb.type="number"===typeof this.eb.type?a:Bc[a];this.eb.frequency.value=b;this.eb.detune&&(this.eb.detune.value=c);this.eb.Q.value=e;this.eb.gain.value=d;this.pa.connect(this.eb);this.pa.connect(this.O);this.eb.connect(this.R)}function e(a,b,c){this.type="delay";this.rb=[a,b,c];this.pa=f();this.R=f();this.R.gain.value=c;this.O=f();this.O.gain.value=
1-c;this.qi=f();this.Zc=q(a);this.Zc.delayTime.value=a;this.Bj=f();this.Bj.gain.value=b;this.pa.connect(this.qi);this.pa.connect(this.O);this.qi.connect(this.R);this.qi.connect(this.Zc);this.Zc.connect(this.Bj);this.Bj.connect(this.qi)}function w(a,b,c,e){this.type="convolve";this.rb=[b,c,e];this.pa=f();this.R=f();this.R.gain.value=c;this.O=f();this.O.gain.value=1-c;this.Gf=F.createConvolver();a&&(this.Gf.normalize=b,this.Gf.buffer=a);this.pa.connect(this.Gf);this.pa.connect(this.O);this.Gf.connect(this.R)}
function g(a,b,c,e,d){this.type="flanger";this.rb=[a,b,c,e,d];this.pa=f();this.O=f();this.O.gain.value=1-d/2;this.R=f();this.R.gain.value=d/2;this.Lj=f();this.Lj.gain.value=e;this.Zc=q(a+b);this.Zc.delayTime.value=a;this.yb=F.createOscillator();this.yb.frequency.value=c;this.zc=f();this.zc.gain.value=b;this.pa.connect(this.Zc);this.pa.connect(this.O);this.Zc.connect(this.R);this.Zc.connect(this.Lj);this.Lj.connect(this.Zc);this.yb.connect(this.zc);this.zc.connect(this.Zc.delayTime);t(this.yb)}function m(a,
b,c,e,d,g){this.type="phaser";this.rb=[a,b,c,e,d,g];this.pa=f();this.O=f();this.O.gain.value=1-g/2;this.R=f();this.R.gain.value=g/2;this.eb=F.createBiquadFilter();this.eb.type="number"===typeof this.eb.type?7:"allpass";this.eb.frequency.value=a;this.eb.detune&&(this.eb.detune.value=b);this.eb.Q.value=c;this.yb=F.createOscillator();this.yb.frequency.value=d;this.zc=f();this.zc.gain.value=e;this.pa.connect(this.eb);this.pa.connect(this.O);this.eb.connect(this.R);this.yb.connect(this.zc);this.zc.connect(this.eb.frequency);
t(this.yb)}function r(a){this.type="gain";this.rb=[a];this.ta=f();this.ta.gain.value=a}function p(a,b){this.type="tremolo";this.rb=[a,b];this.ta=f();this.ta.gain.value=1-b/2;this.yb=F.createOscillator();this.yb.frequency.value=a;this.zc=f();this.zc.gain.value=b/2;this.yb.connect(this.zc);this.zc.connect(this.ta.gain);t(this.yb)}function z(a,b){this.type="ringmod";this.rb=[a,b];this.pa=f();this.R=f();this.R.gain.value=b;this.O=f();this.O.gain.value=1-b;this.Ji=f();this.Ji.gain.value=0;this.yb=F.createOscillator();
this.yb.frequency.value=a;this.yb.connect(this.Ji.gain);t(this.yb);this.pa.connect(this.Ji);this.pa.connect(this.O);this.Ji.connect(this.R)}function C(a,b,c,e,d){this.type="distortion";this.rb=[a,b,c,e,d];this.pa=f();this.Ok=f();this.Nk=f();this.Ux(c,Math.pow(10,e/20));this.R=f();this.R.gain.value=d;this.O=f();this.O.gain.value=1-d;this.wl=F.createWaveShaper();this.zj=new Float32Array(65536);this.Uv(a,b);this.wl.zj=this.zj;this.pa.connect(this.Ok);this.pa.connect(this.O);this.Ok.connect(this.wl);
this.wl.connect(this.Nk);this.Nk.connect(this.R)}function u(a,b,c,e,d){this.type="compressor";this.rb=[a,b,c,e,d];this.ta=F.createDynamicsCompressor();try{this.ta.threshold.value=a,this.ta.knee.value=b,this.ta.ratio.value=c,this.ta.attack.value=e,this.ta.release.value=d}catch(g){}}function n(a,b){this.type="analyser";this.rb=[a,b];this.ta=F.createAnalyser();this.ta.fftSize=a;this.ta.smoothingTimeConstant=b;this.Sv=new Float32Array(this.ta.frequencyBinCount);this.Gr=new Uint8Array(a);this.Ai=0}function v(){this.P=
null;this.uk=0;this.yf=[];this.xn=this.ik=this.hk=0}function A(a,b){this.src=a;this.ja=N;this.xd=b;this.hj=!1;var c=this;this.wn=this.Fn=null;this.bh=[];this.Yk=0;this.Io=this.nm=this.Lr=this.Ik=!1;1===N&&b&&(this.ja=0,this.Fn=f());this.Df=this.Ba=null;var e;switch(this.ja){case 0:this.Ba=new Audio;this.Ba.addEventListener("canplaythrough",function(){c.Io=!0});1===N&&F.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.Lr=!0,this.Ba.addEventListener("canplay",function(){c.wn||(c.wn=
F.createMediaElementSource(c.Ba),c.wn.connect(c.Fn))}));this.Ba.autoplay=!1;this.Ba.Vy="auto";this.Ba.src=a;break;case 1:e=new XMLHttpRequest;e.open("GET",a,!0);e.responseType="arraybuffer";e.onload=function(){c.Df=e.response;c.Mu()};e.onerror=function(){c.nm=!0};e.send();break;case 2:this.Ba=!0;break;case 3:this.Ba=!0}}function d(a,b){var c=this;this.tag=b;this.Fb=this.je=!0;this.src=a.src;this.buffer=a;this.ja=N;this.xd=a.xd;this.playbackRate=1;this.Jg=!0;this.vc=this.xe=!1;this.mc=0;this.Yh=this.Og=
this.Md=!1;this.volume=1;this.Dn=function(){c.vc||(c.Jg=!0,c.Fb=!0,X=c.tag,y.trigger(mc.prototype.m.cj,va))};this.Kg=1===O&&!this.xd||2===O;this.Zg=1;this.startTime=this.Kg?y.Pc.qa:y.Ie.qa;this.Za=this.jb=null;this.Od=!1;this.Ya=null;this.er=this.dr=this.cr=this.br=this.gr=this.fr=0;this.B=null;var e=!1;1!==this.ja||0!==this.buffer.ja||this.buffer.Lr||(this.ja=0);switch(this.ja){case 0:this.xd?(this.B=a.Ba,e=!a.hj,a.hj=!0):(this.B=new Audio,this.B.autoplay=!1,this.B.src=a.Ba.src,e=!0);e&&this.B.addEventListener("ended",
function(){X=c.tag;c.Fb=!0;y.trigger(mc.prototype.m.cj,va)});break;case 1:this.jb=f();this.jb.connect(l(b));1===this.buffer.ja?a.Ba&&(this.B=F.createBufferSource(),this.B.buffer=a.Ba,this.B.connect(this.jb)):(this.B=this.buffer.Ba,this.buffer.Fn.connect(this.jb),this.buffer.hj||(this.buffer.hj=!0,this.buffer.Ba.addEventListener("ended",function(){X=c.tag;c.Fb=!0;y.trigger(mc.prototype.m.cj,va)})));break;case 2:this.B=new window.Media(S+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&
(c.Jg=!0,c.Fb=!0,X=c.tag,y.trigger(mc.prototype.m.cj,va))});break;case 3:this.B=!0}}function k(a){Aa.length=0;if(a.length){var b,c,e;b=0;for(c=G.length;b<c;b++)e=G[b],ib(a,e.tag)&&Aa.push(e)}else M&&!M.Ig()&&(Aa.length=1,Aa[0]=M)}function x(a,b){V.hasOwnProperty(a)?V[a].push(b):V[a]=[b];var c,e,d,g,f=F.destination;if(V.hasOwnProperty(a)&&(d=V[a],d.length))for(f=d[0].Kc(),c=0,e=d.length;c<e;c++)g=d[c],c+1===e?g.Wc(F.destination):g.Wc(d[c+1].Kc());k(a);c=0;for(e=Aa.length;c<e;c++)Aa[c].Gx(f);Ka&&yb===
a&&(Ka.disconnect(),Ka.connect(f))}function B(){}function K(){}var Z=mc.prototype;Z.Z=function(a){this.Fa=a;this.b=a.b};Z.Z.prototype.M=function(){};var y=null,va=null,X="",S="",N=0,F=null,ea=[],G=[],M=null,D=!1,O=0,E=!1,H=1,I=0,T=0,P=1,Q=1,aa=10,ia=1E4,ja=1,Ka=null,yb="",Ya=!1,Za=[],V={},Bc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");b.prototype.Wc=function(a){this.R.disconnect();this.R.connect(a);this.O.disconnect();this.O.connect(a)};b.prototype.remove=function(){this.pa.disconnect();
this.eb.disconnect();this.R.disconnect();this.O.disconnect()};b.prototype.Kc=function(){return this.pa};e.prototype.Wc=function(a){this.R.disconnect();this.R.connect(a);this.O.disconnect();this.O.connect(a)};e.prototype.remove=function(){this.pa.disconnect();this.qi.disconnect();this.Zc.disconnect();this.Bj.disconnect();this.R.disconnect();this.O.disconnect()};e.prototype.Kc=function(){return this.pa};w.prototype.Wc=function(a){this.R.disconnect();this.R.connect(a);this.O.disconnect();this.O.connect(a)};
w.prototype.remove=function(){this.pa.disconnect();this.Gf.disconnect();this.R.disconnect();this.O.disconnect()};w.prototype.Kc=function(){return this.pa};g.prototype.Wc=function(a){this.O.disconnect();this.O.connect(a);this.R.disconnect();this.R.connect(a)};g.prototype.remove=function(){this.pa.disconnect();this.Zc.disconnect();this.yb.disconnect();this.zc.disconnect();this.O.disconnect();this.R.disconnect();this.Lj.disconnect()};g.prototype.Kc=function(){return this.pa};m.prototype.Wc=function(a){this.O.disconnect();
this.O.connect(a);this.R.disconnect();this.R.connect(a)};m.prototype.remove=function(){this.pa.disconnect();this.eb.disconnect();this.yb.disconnect();this.zc.disconnect();this.O.disconnect();this.R.disconnect()};m.prototype.Kc=function(){return this.pa};r.prototype.Wc=function(a){this.ta.disconnect();this.ta.connect(a)};r.prototype.remove=function(){this.ta.disconnect()};r.prototype.Kc=function(){return this.ta};p.prototype.Wc=function(a){this.ta.disconnect();this.ta.connect(a)};p.prototype.remove=
function(){this.yb.disconnect();this.zc.disconnect();this.ta.disconnect()};p.prototype.Kc=function(){return this.ta};z.prototype.Wc=function(a){this.R.disconnect();this.R.connect(a);this.O.disconnect();this.O.connect(a)};z.prototype.remove=function(){this.yb.disconnect();this.Ji.disconnect();this.pa.disconnect();this.R.disconnect();this.O.disconnect()};z.prototype.Kc=function(){return this.pa};C.prototype.Ux=function(a,b){.01>a&&(a=.01);this.Ok.gain.value=a;this.Nk.gain.value=Math.pow(1/a,.6)*b};
C.prototype.shape=function(a,b,c){var e=1.05*c*b-b;c=0>a?-1:1;a=0>a?-a:a;b=a<b?a:b+e*(1-Math.exp(-(1/e)*(a-b)));return b*c};C.prototype.Uv=function(a,b){for(var c=Math.pow(10,a/20),e=Math.pow(10,b/20),d=0,g=0;32768>g;++g)d=g/32768,d=this.shape(d,c,e),this.zj[32768+g]=d,this.zj[32768-g-1]=-d};C.prototype.Wc=function(a){this.R.disconnect();this.R.connect(a);this.O.disconnect();this.O.connect(a)};C.prototype.remove=function(){this.pa.disconnect();this.Ok.disconnect();this.wl.disconnect();this.Nk.disconnect();
this.R.disconnect();this.O.disconnect()};C.prototype.Kc=function(){return this.pa};u.prototype.Wc=function(a){this.ta.disconnect();this.ta.connect(a)};u.prototype.remove=function(){this.ta.disconnect()};u.prototype.Kc=function(){return this.ta};n.prototype.Ha=function(){this.ta.getFloatFrequencyData(this.Sv);this.ta.getByteTimeDomainData(this.Gr);for(var a=this.ta.fftSize,b=0,c=this.Ai=0,e=0;b<a;b++)e=(this.Gr[b]-128)/128,0>e&&(e=-e),this.Ai<e&&(this.Ai=e),c+=e*e;this.Ai=h(this.Ai);h(Math.sqrt(c/
a))};n.prototype.Wc=function(a){this.ta.disconnect();this.ta.connect(a)};n.prototype.remove=function(){this.ta.disconnect()};n.prototype.Kc=function(){return this.ta};v.prototype.Ki=function(a){if(this.P=a)this.hk=this.P.x,this.ik=this.P.y;this.yf.length=0};v.prototype.Zj=function(){return!!this.P};v.prototype.Ha=function(a){this.P&&0!==a&&(this.xn=Ja(this.hk,this.ik,this.P.x,this.P.y),a=Pa(this.hk,this.ik,this.P.x,this.P.y)/a,4>this.yf.length||this.yf.shift(),this.yf.push(a),this.hk=this.P.x,this.ik=
this.P.y)};v.prototype.Rp=function(){if(!this.yf.length)return 0;var a,b,c=0;a=0;for(b=this.yf.length;a<b;a++)c+=this.yf[a];return c/this.yf.length};v.prototype.Dm=function(){return Math.cos(this.xn)*this.Rp()};v.prototype.Em=function(){return Math.sin(this.xn)*this.Rp()};var xc=!1;A.prototype.Mu=function(){if(!this.Ba&&this.Df){var a=this;if(F.decodeAudioData)F.decodeAudioData(this.Df,function(b){a.Ba=b;a.Df=null;var c,e,g;if(ka(a.Kk)||E)ka(a.uj)||(c=a.uj.Gf,c.normalize=a.Sq,c.buffer=b);else if(a.bh.length){c=
0;for(e=a.bh.length;c<e;c++){b=a.bh[c];g=new d(a,b.Qr);g.co(!0);if("undefined"!==typeof b.Uq&&(b.P=y.Gg(b.Uq),!b.P))continue;if(b.P){var f=Oa(b.P.x,b.P.y,-b.P.A.fb(),I,T,!0),k=Oa(b.P.x,b.P.y,-b.P.A.fb(),I,T,!1);g.bo(f,k,Ea(b.P.u-b.P.A.fb()),b.Km,b.yn,b.An);g.Ki(b.P)}else g.bo(b.x,b.y,b.su,b.Km,b.yn,b.An);g.play(a.rn,a.Go,a.Yk);a.Ik&&g.pause();G.push(g)}a.bh.length=0}else g=new d(a,a.Kk),g.play(a.rn,a.Go,a.Yk),a.Ik&&g.pause(),G.push(g)},function(){a.nm=!0});else if(this.Ba=F.createBuffer(this.Df,!1),
this.Df=null,ka(this.Kk)||E)ka(this.uj)||(b=this.uj.Gf,b.normalize=this.Sq,b.buffer=this.Ba);else{var b=new d(this,this.Kk);b.play(this.rn,this.Go,this.Yk);this.Ik&&b.pause();G.push(b)}}};A.prototype.dq=function(){switch(this.ja){case 0:var a=4<=this.Ba.readyState;a&&(this.Io=!0);return a||this.Io;case 1:return!!this.Df||!!this.Ba;case 2:return!0;case 3:return!0}return!1};A.prototype.Ow=function(){switch(this.ja){case 0:return this.dq();case 1:return!!this.Ba;case 2:return!0;case 3:return!0}return!1};
A.prototype.Fw=function(){switch(this.ja){case 0:return!!this.Ba.error;case 1:return this.nm}return!1};d.prototype.Ig=function(){switch(this.ja){case 0:return this.B.ended;case 1:return 1===this.buffer.ja?!this.je&&!this.Fb&&this.B.loop||this.vc?!1:this.Jg:this.B.ended;case 2:return this.Jg;case 3:!0}return!0};d.prototype.Fu=function(){return this.je||this.Fb?!0:this.Ig()};d.prototype.co=function(a){1===N&&(!this.Od&&a?this.jb&&(this.Za||(this.Za=F.createPanner(),this.Za.panningModel="number"===typeof this.Za.panningModel?
P:["equalpower","HRTF","soundfield"][P],this.Za.distanceModel="number"===typeof this.Za.distanceModel?Q:["linear","inverse","exponential"][Q],this.Za.refDistance=aa,this.Za.maxDistance=ia,this.Za.rolloffFactor=ja),this.jb.disconnect(),this.jb.connect(this.Za),this.Za.connect(l(this.tag)),this.Od=!0):this.Od&&!a&&this.jb&&(this.Za.disconnect(),this.jb.disconnect(),this.jb.connect(l(this.tag)),this.Od=!1))};d.prototype.bo=function(a,b,c,e,d,g){this.Od&&1===N&&(this.Za.setPosition(a,b,0),this.Za.setOrientation(Math.cos(U(c)),
Math.sin(U(c)),0),this.Za.coneInnerAngle=e,this.Za.coneOuterAngle=d,this.Za.coneOuterGain=g,this.fr=a,this.gr=b,this.br=c,this.cr=e,this.dr=d,this.er=g)};d.prototype.Ki=function(a){this.Od&&1===N&&(this.Ya||(this.Ya=new v),this.Ya.Ki(a))};d.prototype.Ha=function(a){if(this.Od&&1===N&&this.Ya&&this.Ya.Zj()&&this.Vf()){this.Ya.Ha(a);a=this.Ya.P;var b=Oa(a.x,a.y,-a.A.fb(),I,T,!0),c=Oa(a.x,a.y,-a.A.fb(),I,T,!1);this.Za.setPosition(b,c,0);b=0;"undefined"!==typeof this.Ya.P.u&&(b=a.u-a.A.fb(),this.Za.setOrientation(Math.cos(b),
Math.sin(b),0));b=Oa(this.Ya.Dm(),this.Ya.Em(),-a.A.fb(),0,0,!0);c=Oa(this.Ya.Dm(),this.Ya.Em(),-a.A.fb(),0,0,!1);this.Za.setVelocity(b,c,0)}};d.prototype.play=function(b,c,e){var d=this.B;this.Md=b;this.volume=c;e=e||0;switch(this.ja){case 0:1!==d.playbackRate&&(d.playbackRate=1);d.volume!==c*H&&(d.volume=c*H);d.loop!==b&&(d.loop=b);d.muted&&(d.muted=!1);if(d.currentTime!==e)try{d.currentTime=e}catch(g){}if(this.xd&&Ya&&!y.uc)Za.push(this);else try{this.B.play()}catch(f){console&&console.log&&console.log("[C2] WARNING: exception trying to play audio '"+
this.buffer.src+"': ",f)}break;case 1:this.muted=!1;this.Zg=1;if(1===this.buffer.ja)this.jb.gain.value=c*H,this.je||(this.B=F.createBufferSource(),this.B.buffer=this.buffer.Ba,this.B.connect(this.jb)),this.B.onended=this.Dn,this.B.loop=b,this.Jg=!1,0===e?t(this.B):a(this.B,e,this.Of());else{1!==d.playbackRate&&(d.playbackRate=1);d.loop!==b&&(d.loop=b);d.volume=c*H;if(d.currentTime!==e)try{d.currentTime=e}catch(k){}this.xd&&Ya&&!y.uc?Za.push(this):d.play()}break;case 2:(!this.je&&this.Fb||0!==e)&&
d.seekTo(e);d.play();this.Jg=!1;break;case 3:y.ic?AppMobi.context.playSound(this.src,b):AppMobi.player.playSound(this.src,b)}this.playbackRate=1;this.startTime=(this.Kg?y.Pc.qa:y.Ie.qa)-e;this.vc=this.Fb=this.je=!1};d.prototype.stop=function(){switch(this.ja){case 0:this.B.paused||this.B.pause();break;case 1:1===this.buffer.ja?c(this.B):this.B.paused||this.B.pause();break;case 2:this.B.stop();break;case 3:y.ic&&AppMobi.context.stopSound(this.src)}this.Fb=!0;this.vc=!1};d.prototype.pause=function(){if(!(this.je||
this.Fb||this.Ig()||this.vc)){switch(this.ja){case 0:this.B.paused||this.B.pause();break;case 1:1===this.buffer.ja?(this.mc=this.Bm(),this.Md&&(this.mc=this.mc%this.Of()),this.vc=!0,c(this.B)):this.B.paused||this.B.pause();break;case 2:this.B.pause();break;case 3:y.ic&&AppMobi.context.stopSound(this.src)}this.vc=!0}};d.prototype.Jx=function(){if(!(this.je||this.Fb||this.Ig())&&this.vc){switch(this.ja){case 0:this.B.play();break;case 1:1===this.buffer.ja?(this.B=F.createBufferSource(),this.B.buffer=
this.buffer.Ba,this.B.connect(this.jb),this.B.onended=this.Dn,this.B.loop=this.Md,this.jb.gain.value=H*this.volume*this.Zg,this.startTime=(this.Kg?y.Pc.qa:y.Ie.qa)-this.mc,a(this.B,this.mc,this.Of())):this.B.play();break;case 2:this.B.play();break;case 3:y.ic&&AppMobi.context.resumeSound(this.src)}this.vc=!1}};d.prototype.seek=function(a){if(!(this.je||this.Fb||this.Ig()))switch(this.ja){case 0:try{this.B.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.ja)this.vc?this.mc=a:(this.pause(),this.mc=
a,this.Jx());else try{this.B.currentTime=a}catch(c){}break;case 3:y.ic&&AppMobi.context.seekSound(this.src,a)}};d.prototype.Gx=function(a){1===this.ja&&(this.Od?(this.Za.disconnect(),this.Za.connect(a)):(this.jb.disconnect(),this.jb.connect(a)))};d.prototype.Of=function(){switch(this.ja){case 0:if("undefined"!==typeof this.B.duration)return this.B.duration;break;case 1:return this.buffer.Ba.duration;case 2:return this.B.getDuration();case 3:if(y.ic)return AppMobi.context.getDurationSound(this.src)}return 0};
d.prototype.Bm=function(){var a=this.Of(),b=0;switch(this.ja){case 0:"undefined"!==typeof this.B.currentTime&&(b=this.B.currentTime);break;case 1:if(1===this.buffer.ja){if(this.vc)return this.mc;b=(this.Kg?y.Pc.qa:y.Ie.qa)-this.startTime}else"undefined"!==typeof this.B.currentTime&&(b=this.B.currentTime);break;case 3:y.ic&&(b=AppMobi.context.getPlaybackTimeSound(this.src))}!this.Md&&b>a&&(b=a);return b};d.prototype.Vf=function(){return!this.vc&&!this.je&&!this.Fb&&!this.Ig()};d.prototype.cy=function(){var a=
this.volume*H;isFinite(a)||(a=0);switch(this.ja){case 0:"undefined"!==typeof this.B.volume&&this.B.volume!==a&&(this.B.volume=a);break;case 1:1===this.buffer.ja?this.jb.gain.value=a*this.Zg:"undefined"!==typeof this.B.volume&&this.B.volume!==a&&(this.B.volume=a)}};d.prototype.Dj=function(a){switch(this.ja){case 0:this.B.muted!==!!a&&(this.B.muted=!!a);break;case 1:1===this.buffer.ja?(this.Zg=a?0:1,this.jb.gain.value=H*this.volume*this.Zg):this.B.muted!==!!a&&(this.B.muted=!!a)}};d.prototype.Vx=function(){this.Og=
!0;this.Dj(this.Og||this.Yh)};d.prototype.yr=function(a){this.Yh=!!a;this.Dj(this.Og||this.Yh)};d.prototype.ks=function(){var a=this.playbackRate;this.Kg&&(a*=y.qg);switch(this.ja){case 0:this.B.playbackRate!==a&&(this.B.playbackRate=a);break;case 1:1===this.buffer.ja?this.B.playbackRate.value!==a&&(this.B.playbackRate.value=a):this.B.playbackRate!==a&&(this.B.playbackRate=a)}};d.prototype.Xx=function(b){switch(this.ja){case 0:b?this.Vf()?(this.B.pause(),this.xe=!0):this.xe=!1:this.xe&&this.B.play();
break;case 1:b?this.Vf()?(1===this.buffer.ja?(this.mc=this.Bm(),this.Md&&(this.mc=this.mc%this.Of()),c(this.B)):this.B.pause(),this.xe=!0):this.xe=!1:this.xe&&(1===this.buffer.ja?(this.B=F.createBufferSource(),this.B.buffer=this.buffer.Ba,this.B.connect(this.jb),this.B.onended=this.Dn,this.B.loop=this.Md,this.jb.gain.value=H*this.volume*this.Zg,this.startTime=(this.Kg?y.Pc.qa:y.Ie.qa)-this.mc,a(this.B,this.mc,this.Of())):this.B.play());break;case 2:b?this.Vf()?(this.B.pause(),this.xe=!0):this.xe=
!1:this.xe&&this.B.play()}};Z.S=function(a){this.type=a;y=this.b=a.b;va=this;this.Zb=null;this.hi=-600;!(this.b.gk||this.b.bk&&(this.b.Uh||this.b.ck))||this.b.Vh||this.b.Xa||this.b.Qm||(Ya=!0);F=null;"undefined"!==typeof AudioContext?(N=1,F=new AudioContext):"undefined"!==typeof webkitAudioContext&&(N=1,F=new webkitAudioContext);(this.b.gk&&1===N||Ya)&&document.addEventListener("touchstart",function(){var a,b,c;!xc&&F&&(a=F.createBuffer(1,1,22050),b=F.createBufferSource(),b.buffer=a,b.connect(F.destination),
t(b),xc=!0);if(Ya){if(!E)for(a=0,b=Za.length;a<b;++a)c=Za[a],c.Fb||c.vc||c.B.play();Za.length=0}},!0);1!==N&&(this.b.bf&&"undefined"!==typeof window.Media?N=2:this.b.cq&&(N=3));2===N&&(S=location.href,a=S.lastIndexOf("/"),-1<a&&(S=S.substr(0,a+1)),S=S.replace("file://",""));if(this.b.gq&&this.b.Qw&&"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.Le(this);else{if(this.b.ic)D=this.b.bk;
else try{D=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(b){D=!1}this.b.jl(this)}};var sa=Z.S.prototype;sa.M=function(){this.b.xg=this;O=this.C[0];this.ze=this.C[1];this.vx=0!==this.C[2];P=this.C[3];Q=this.C[4];this.hi=-this.C[5];aa=this.C[6];ia=this.C[7];ja=this.C[8];this.Zb=new v;var a=this.b.ba||this.b.width,b=this.b.aa||this.b.height;1===N&&("undefined"!==typeof F.listener.dopplerFactor&&(F.listener.dopplerFactor=0),F.listener.setPosition(a/2,b/2,this.hi),F.listener.setOrientation(0,
0,1,0,-1,0),window.c2OnAudioMicStream=function(a,b){Ka&&Ka.disconnect();yb=b.toLowerCase();Ka=F.createMediaStreamSource(a);Ka.connect(l(yb))});this.b.uu(function(a){va.nx(a)});var c=this;this.b.Fl(function(a){c.Bn(a)})};sa.Bn=function(a){var b,c,e;b=0;for(c=G.length;b<c;b++)e=G[b],e.Ya&&e.Ya.P===a&&(e.Ya.P=null,e.Od&&e.Vf()&&e.Md&&e.stop());this.Zb.P===a&&(this.Zb.P=null)};sa.ab=function(){var a={silent:E,masterVolume:H,listenerZ:this.hi,listenerUid:this.Zb.Zj()?this.Zb.P.uid:-1,playing:[],effects:{}},
b=a.playing,c,e,d,g,f,k;c=0;for(e=G.length;c<e;c++)d=G[c],!d.Vf()||3===this.ze||d.xd&&1===this.ze||!d.xd&&2===this.ze||(g=d.Bm(),d.Md&&(g=g%d.Of()),g={tag:d.tag,buffersrc:d.buffer.src,is_music:d.xd,playbackTime:g,volume:d.volume,looping:d.Md,muted:d.Og,playbackRate:d.playbackRate,paused:d.vc,resume_position:d.mc},d.Od&&(g.pan={},k=g.pan,d.Ya&&d.Ya.Zj()?k.objUid=d.Ya.P.uid:(k.x=d.fr,k.y=d.gr,k.a=d.br),k.ia=d.cr,k.oa=d.dr,k.og=d.er),b.push(g));b=a.effects;for(f in V)if(V.hasOwnProperty(f)){d=[];c=0;
for(e=V[f].length;c<e;c++)d.push({type:V[f][c].type,params:V[f][c].rb});b[f]=d}return a};var $a=[];sa.pb=function(a){var c=a.silent;H=a.masterVolume;this.hi=a.listenerZ;this.Zb.Ki(null);var d=a.listenerUid;-1!==d&&(this.Zb.uk=d,$a.push(this.Zb));var d=a.playing,f,k,h,l,t,q,B,K,A,y,Z;if(3!==this.ze)for(f=0,k=G.length;f<k;f++)A=G[f],A.xd&&1===this.ze||(A.xd||2!==this.ze)&&A.stop();for(t in V)if(V.hasOwnProperty(t))for(f=0,k=V[t].length;f<k;f++)V[t][f].remove();Sa(V);for(t in a.effects)if(a.effects.hasOwnProperty(t))for(q=
a.effects[t],f=0,k=q.length;f<k;f++)switch(h=q[f].type,y=q[f].params,h){case "filter":x(t,new b(y[0],y[1],y[2],y[3],y[4],y[5]));break;case "delay":x(t,new e(y[0],y[1],y[2]));break;case "convolve":h=y[2];A=this.Tj(h,!1);A.Ba?h=new w(A.Ba,y[0],y[1],h):(h=new w(null,y[0],y[1],h),A.Sq=y[0],A.uj=h);x(t,h);break;case "flanger":x(t,new g(y[0],y[1],y[2],y[3],y[4]));break;case "phaser":x(t,new m(y[0],y[1],y[2],y[3],y[4],y[5]));break;case "gain":x(t,new r(y[0]));break;case "tremolo":x(t,new p(y[0],y[1]));break;
case "ringmod":x(t,new z(y[0],y[1]));break;case "distortion":x(t,new C(y[0],y[1],y[2],y[3],y[4]));break;case "compressor":x(t,new u(y[0],y[1],y[2],y[3],y[4]));break;case "analyser":x(t,new n(y[0],y[1]))}f=0;for(k=d.length;f<k;f++)3===this.ze||(a=d[f],h=a.buffersrc,l=a.is_music,t=a.tag,q=a.playbackTime,B=a.looping,K=a.volume,Z=(y=a.pan)&&y.hasOwnProperty("objUid")?y.objUid:-1,l&&1===this.ze)||!l&&2===this.ze||((A=this.Kp(h,t,l,B,K))?(A.mc=a.resume_position,A.co(!!y),A.play(B,K,q),A.ks(),A.cy(),A.Dj(A.Og||
A.Yh),a.paused&&A.pause(),a.muted&&A.Vx(),A.Dj(A.Og||A.Yh),y&&(-1!==Z?(A.Ya=A.Ya||new v,A.Ya.uk=Z,$a.push(A.Ya)):A.bo(y.x,y.y,y.a,y.ia,y.oa,y.og))):(A=this.Tj(h,l),A.Yk=q,A.Ik=a.paused,y&&(-1!==Z?A.bh.push({Uq:Z,Km:y.ia,yn:y.oa,An:y.og,Qr:t}):A.bh.push({x:y.x,y:y.y,su:y.a,Km:y.ia,yn:y.oa,An:y.og,Qr:t}))));if(c&&!E){f=0;for(k=G.length;f<k;f++)G[f].yr(!0);E=!0}else if(!c&&E){f=0;for(k=G.length;f<k;f++)G[f].yr(!1);E=!1}};sa.Gd=function(){var a,b,c,d;a=0;for(b=$a.length;a<b;a++)c=$a[a],d=this.b.Gg(c.uk),
c.Ki(d),c.uk=-1,d&&(I=d.x,T=d.y);$a.length=0};sa.nx=function(a){if(!this.vx){!a&&F&&F.resume&&F.resume();var b,c;b=0;for(c=G.length;b<c;b++)G[b].Xx(a);a&&F&&F.suspend&&F.suspend()}};sa.Ha=function(){var a=this.b.ee,b,c,d;b=0;for(c=G.length;b<c;b++)d=G[b],d.Ha(a),0!==O&&d.ks();var e,g;for(e in V)if(V.hasOwnProperty(e))for(d=V[e],b=0,c=d.length;b<c;b++)g=d[b],g.Ha&&g.Ha();1===N&&this.Zb.Zj()&&(this.Zb.Ha(a),I=this.Zb.P.x,T=this.Zb.P.y,F.listener.setPosition(this.Zb.P.x,this.Zb.P.y,this.hi),F.listener.setVelocity(this.Zb.Dm(),
this.Zb.Em(),0))};var ab=[];sa.Wx=function(a){var b,c,d,e,g,f=0;b=0;for(c=a.length;b<c;++b)if(d=a[b],e=d[0],d=2*d[1],(g=4<e.length&&".ogg"===e.substr(e.length-4))&&D||!g&&!D)ab.push({filename:e,size:d,P:null}),f+=d;return f};sa.Zx=function(){var a,b,c,d;a=0;for(b=ab.length;a<b;++a)c=ab[a],d=this.b.om+c.filename,c.P=this.Tj(d,!1)};sa.gw=function(){var a=0,b,c,d;b=0;for(c=ab.length;b<c;++b)d=ab[b],d.P.Ow()||d.P.Fw()||this.b.Xa||this.b.ck?a+=d.size:d.P.dq()&&(a+=Math.floor(d.size/2));return a};sa.Tj=
function(a,b){var c,d,e,g=null;c=0;for(d=ea.length;c<d;c++)if(e=ea[c],e.src===a){g=e;break}g||(g=new A(a,b),ea.push(g));return g};sa.Kp=function(a,b,c,e,g){var f,k,h;f=0;for(k=G.length;f<k;f++)if(h=G[f],h.src===a&&(h.Fu()||c))return h.tag=b,h;a=this.Tj(a,c);if(!a.Ba)return"<preload>"!==b&&(a.Kk=b,a.rn=e,a.Go=g),null;h=new d(a,b);G.push(h);return h};var Aa=[];B.prototype.cj=function(a){return ib(X,a)};B.prototype.gt=function(a){k(a);var b;a=0;for(b=Aa.length;a<b;a++)if(Aa[a].Vf())return!0;return!1};
Z.m=new B;K.prototype.Mt=function(a,b,c,d,e){!E&&(d=Math.pow(10,d/20),0>d&&(d=0),1<d&&(d=1),M=this.Kp(this.b.om+b.toLowerCase()+(D?".ogg":".m4a"),e,1===a,0!==c,d))&&(M.co(!1),M.play(0!==c,d))};K.prototype.gp=function(a){k(a);var b;a=0;for(b=Aa.length;a<b;a++)Aa[a].stop()};Z.F=new K;Z.J=new function(){}})();function lc(h){this.b=h}
(function(){function h(){this.name="";this.Ii=0;this.rb=[]}function l(){b++;b===c.length&&c.push(new h);return c[b]}function f(){}function q(){}function t(){}var a=lc.prototype;a.Z=function(a){this.Fa=a;this.b=a.b};a.Z.prototype.M=function(){};a.S=function(a){this.type=a;this.b=a.b};var c=[],b=-1;a.S.prototype.M=function(){var a=this;window.c2_callFunction=function(c,g){var f,h,p,t=l();t.name=c.toLowerCase();t.Ii=0;if(g)for(t.rb.length=g.length,f=0,h=g.length;f<h;++f)p=g[f],t.rb[f]="number"===typeof p||
"string"===typeof p?p:"boolean"===typeof p?p?1:0:0;else t.rb.length=0;a.b.trigger(lc.prototype.m.ej,a,t.name);b--;return t.Ii}};f.prototype.ej=function(a){var f=0>b?null:c[b];return f?ib(a,f.name):!1};a.m=new f;q.prototype.CallFunction=function(a,c){var g=l();g.name=a.toLowerCase();g.Ii=0;za(g.rb,c);this.b.trigger(lc.prototype.m.ej,this,g.name);b--};a.F=new q;t.prototype.Kt=function(a,f){f=L(f);var g=0>b?null:c[b];g?0<=f&&f<g.rb.length?a.fo(g.rb[f]):a.ua(0):a.ua(0)};t.prototype.Ds=function(a,c){var g=
l();g.name=c.toLowerCase();g.Ii=0;g.rb.length=0;var f,h;f=2;for(h=arguments.length;f<h;f++)g.rb.push(arguments[f]);this.b.trigger(lc.prototype.m.ej,this,g.name);b--;a.fo(g.Ii)};a.J=new t})();function nc(h){this.b=h}
(function(){function h(){}var l=nc.prototype;l.Z=function(f){this.Fa=f;this.b=f.b};l.Z.prototype.M=function(){};l.S=function(f){this.type=f;this.b=f.b;this.Sg=Array(256);this.tl=Array(256);this.Af=0};var f=l.S.prototype;f.M=function(){var f=this;this.b.Xa||(jQuery(document).keydown(function(a){f.wi(a)}),jQuery(document).keyup(function(a){f.xi(a)}))};var q=[32,33,34,35,36,37,38,39,40,44];f.wi=function(f){var a=!1;window!=window.top&&-1<q.indexOf(f.which)&&(f.preventDefault(),a=!0,f.stopPropagation());
if(this.Sg[f.which])this.tl[f.which]&&!a&&f.preventDefault();else{this.Sg[f.which]=!0;this.Af=f.which;this.b.uc=!0;this.b.trigger(nc.prototype.m.lt,this);var c=this.b.trigger(nc.prototype.m.yt,this),b=this.b.trigger(nc.prototype.m.zt,this);this.b.uc=!1;if(c||b)this.tl[f.which]=!0,a||f.preventDefault()}};f.xi=function(f){this.Sg[f.which]=!1;this.Af=f.which;this.b.uc=!0;this.b.trigger(nc.prototype.m.mt,this);var a=this.b.trigger(nc.prototype.m.Bt,this),c=this.b.trigger(nc.prototype.m.At,this);this.b.uc=
!1;if(a||c||this.tl[f.which])this.tl[f.which]=!0,f.preventDefault()};f.ab=function(){return{triggerKey:this.Af}};f.pb=function(f){this.Af=f.triggerKey};h.prototype.bt=function(f){return this.Sg[f]};h.prototype.yt=function(f){return f===this.Af};h.prototype.lt=function(){return!0};h.prototype.mt=function(){return!0};h.prototype.Bt=function(f){return f===this.Af};h.prototype.$s=function(f){f=Math.floor(f);return 0>f||f>=this.Sg.length?!1:this.Sg[f]};h.prototype.zt=function(f){return f===this.Af};h.prototype.At=
function(f){return f===this.Af};l.m=new h;l.F=new function(){};l.J=new function(){}})();function oc(h){this.b=h}
(function(){function h(){}function l(){}var f=oc.prototype;f.Z=function(a){this.Fa=a;this.b=a.b};f.Z.prototype.M=function(){};f.S=function(a){this.type=a;this.b=a.b;this.Pl=Array(4);this.Xr=this.ol=this.kh=this.nf=this.lf=0;this.Hm=!1};var q=f.S.prototype;q.M=function(){var a=this;if(!this.b.Xa){jQuery(document).mousemove(function(b){a.kx(b)});jQuery(document).mousedown(function(b){a.jx(b)});jQuery(document).mouseup(function(b){a.mx(b)});jQuery(document).dblclick(function(b){a.ix(b)});var c=function(b){a.ox(b)};
document.addEventListener("mousewheel",c,!1);document.addEventListener("DOMMouseScroll",c,!1)}};var t={left:0,top:0};q.kx=function(a){var c=this.b.Xa?t:jQuery(this.b.canvas).offset();this.lf=a.pageX-c.left;this.nf=a.pageY-c.top};q.Nq=function(){return 0<this.b.sc?!0:0<=this.lf&&0<=this.nf&&this.lf<this.b.width&&this.nf<this.b.height};q.jx=function(a){this.Nq()&&(this.b.Gm&&!this.b.me&&a.preventDefault(),this.Pl[a.which]=!0,this.b.uc=!0,this.b.trigger(oc.prototype.m.kt,this),this.kh=a.which-1,this.ol=
0,this.b.trigger(oc.prototype.m.zl,this),this.b.trigger(oc.prototype.m.$o,this),this.b.uc=!1)};q.mx=function(a){this.Pl[a.which]&&(this.b.Gm&&!this.b.me&&a.preventDefault(),this.b.Gm=!0,this.Pl[a.which]=!1,this.b.uc=!0,this.kh=a.which-1,this.b.trigger(oc.prototype.m.Gt,this),this.b.uc=!1)};q.ix=function(a){this.Nq()&&(a.preventDefault(),this.b.uc=!0,this.kh=a.which-1,this.ol=1,this.b.trigger(oc.prototype.m.zl,this),this.b.trigger(oc.prototype.m.$o,this),this.b.uc=!1)};q.ox=function(a){this.Xr=0>(a.wheelDelta?
a.wheelDelta:a.detail?-a.detail:0)?0:1;this.Hm=!1;this.b.uc=!0;this.b.trigger(oc.prototype.m.Jt,this);this.b.uc=!1;this.Hm&&jb(a)&&a.preventDefault()};h.prototype.zl=function(a,c){return a===this.kh&&c===this.ol};h.prototype.kt=function(){return!0};h.prototype.Gt=function(a){return a===this.kh};h.prototype.$o=function(a,c,b){return a!==this.kh||c!==this.ol?!1:this.b.ay(b,this.lf,this.nf)};h.prototype.Jt=function(a){this.Hm=!0;return a===this.Xr};f.m=new h;f.F=new function(){};l.prototype.fj=function(a,
c){var b,e,f,g,h;ka(c)?(b=this.b.Kh(0),e=b.scale,f=b.Fd,g=b.ed,h=b.u,b.scale=1,b.Fd=1,b.ed=1,b.u=0,a.K(b.qc(this.lf,this.nf,!0)),b.scale=e,b.Fd=f,b.ed=g,b.u=h):(b=la(c)?this.b.Kh(c):this.b.Am(c))?a.K(b.qc(this.lf,this.nf,!0)):a.K(0)};l.prototype.gj=function(a,c){var b,e,f,g,h;ka(c)?(b=this.b.Kh(0),e=b.scale,f=b.Fd,g=b.fd,h=b.u,b.scale=1,b.Fd=1,b.fd=1,b.u=0,a.K(b.qc(this.lf,this.nf,!1)),b.scale=e,b.Fd=f,b.fd=g,b.u=h):(b=la(c)?this.b.Kh(c):this.b.Am(c))?a.K(b.qc(this.lf,this.nf,!1)):a.K(0)};f.J=new l})();
function Y(h){this.b=h}
(function(){function h(){if(0===this.em.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.ih?b.drawImage(this.W,this.$g,this.ah,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.W,0,0,this.width,this.height);this.em=a.toDataURL("image/png")}return this.em}function l(){}function f(a){a[0]=0;a[1]=0;a[2]=0;p.push(a)}function q(a,b){return a<b?""+a+","+b:""+b+","+a}function t(a,b,c,d){b=b.uid;c=c.uid;var e=q(b,c);if(a.hasOwnProperty(e))a[e][2]=
d;else{var f=p.length?p.pop():[0,0,0];f[0]=b;f[1]=c;f[2]=d;a[e]=f}}function a(a,b,c){b=q(b.uid,c.uid);a.hasOwnProperty(b)&&(f(a[b]),delete a[b])}function c(a,b,c){b=q(b.uid,c.uid);if(a.hasOwnProperty(b))return z=a[b][2],!0;z=-2;return!1}function b(a,b,c){if(!a)return!1;var e=0!==b||0!==c,f,g,h=!1,m,p=this.b.Vj(),l=p.type,p=p.ak,q=a.U();m=this.b.kb().ib.cd;q.ea?(this.la(),d.Bh(this.ya),d.offset(b,c),this.b.xm(this.A,a,d,A),q=A):q=m?q.ma:q.k;u=a;v=l!==a&&!p;e&&(f=this.x,g=this.y,this.x+=b,this.y+=c,
this.D());b=0;for(c=q.length;b<c;b++)if(m=q[b],this.b.Pb(this,m)){h=!0;if(p)break;l!==a&&n.add(m)}e&&(this.x=f,this.y=g,this.D());A.length=0;return h}function e(){}var w=Y.prototype;w.Z=function(a){this.Fa=a;this.b=a.b};var g=w.Z.prototype;g.M=function(){if(!this.N){var a,b,c,d,e,f,g,n,u;this.nd=[];this.Ph=!1;a=0;for(b=this.ec.length;a<b;a++){e=this.ec[a];g={};g.name=e[0];g.speed=e[1];g.loop=e[2];g.Qn=e[3];g.Vk=e[4];g.jr=e[5];g.ka=e[6];g.frames=[];c=0;for(d=e[7].length;c<d;c++)f=e[7][c],n={},n.gl=
f[0],n.hl=f[1],n.$g=f[2],n.ah=f[3],n.width=f[4],n.height=f[5],n.duration=f[6],n.gc=f[7],n.hc=f[8],n.Lm=f[9],n.Lk=f[10],n.kr=f[11],n.ih=0!==n.width,n.em="",n.Ty=h,u={left:0,top:0,right:1,bottom:1},n.jo=u,n.Ka=null,(u=this.b.Pv(f[0]))?n.W=u:(n.W=new Image,n.W.Ju=f[0],n.W.Xl=f[1],n.W.Du=null,this.b.Ho(n.W,f[0])),g.frames.push(n),this.nd.push(n);this.ec[a]=g}}};g.hs=function(){var a,b,c;a=0;for(b=this.k.length;a<b;a++)c=this.k[a],c.xj=c.Ic.Ka};g.yi=function(){if(!this.N){var a,b,c;a=0;for(b=this.nd.length;a<
b;++a)c=this.nd[a],c.W.Du=null,c.Ka=null;this.Ph=!1;this.hs()}};g.Gk=function(){if(!this.N&&this.k.length){var a,b,c;a=0;for(b=this.nd.length;a<b;++a)c=this.nd[a],c.Ka=this.b.H.sk(c.W,!1,this.b.ra,c.kr);this.hs()}};g.tk=function(){if(!this.N&&!this.Ph&&this.b.H){var a,b,c;a=0;for(b=this.nd.length;a<b;++a)c=this.nd[a],c.Ka=this.b.H.sk(c.W,!1,this.b.ra,c.kr);this.Ph=!0}};g.ql=function(){if(!this.N&&!this.k.length&&this.Ph){var a,b,c;a=0;for(b=this.nd.length;a<b;++a)c=this.nd[a],this.b.H.deleteTexture(c.Ka),
c.Ka=null;this.Ph=!1}};var m=[];g.Pk=function(a){var b,c,d;b=m.length=0;for(c=this.nd.length;b<c;++b)d=this.nd[b].W,-1===m.indexOf(d)&&(a.drawImage(d,0,0),m.push(d))};w.S=function(a){this.type=a;this.b=a.b;a=this.type.ec[0].frames[0].Lk;this.kc?this.za.Ni(a):this.za=new cb(a)};var r=w.S.prototype;r.M=function(){this.visible=0===this.C[0];this.Mm=this.Um=!1;this.ae=0!==this.C[3];1===this.type.ec.length&&1===this.type.ec[0].frames.length||0===this.type.ec[0].speed||(this.b.jl(this),this.Um=!0);this.Na=
this.Jp(this.C[1])||this.type.ec[0];this.L=this.C[2];0>this.L&&(this.L=0);this.L>=this.Na.frames.length&&(this.L=this.Na.frames.length-1);var a=this.Na.frames[this.L];this.za.Ni(a.Lk);this.gc=a.gc;this.hc=a.hc;this.Dh=this.Na.speed;this.kc?this.Hd.reset():this.Hd=new Xa;this.ie=this.Hd.qa;this.Cf=!0;this.$d=0;this.Bf=!0;this.yg=this.mp="";this.xp=0;this.Ul=-1;this.type.tk();var b,c,d,e,f,g,h,a=0;for(b=this.type.ec.length;a<b;a++)for(e=this.type.ec[a],c=0,d=e.frames.length;c<d;c++)f=e.frames[c],0===
f.width&&(f.width=f.W.width,f.height=f.W.height),f.ih&&(h=f.W,g=f.jo,g.left=f.$g/h.width,g.top=f.ah/h.height,g.right=(f.$g+f.width)/h.width,g.bottom=(f.ah+f.height)/h.height,0===f.$g&&0===f.ah&&f.width===h.width&&f.height===h.height&&(f.ih=!1));this.Ic=this.Na.frames[this.L];this.xj=this.Ic.Ka};r.ab=function(){var a={a:this.Na.ka,f:this.L,cas:this.Dh,fs:this.ie,ar:this.$d,at:this.Hd.qa};this.Cf||(a.ap=this.Cf);this.Bf||(a.af=this.Bf);return a};r.pb=function(a){var b=this.Vv(a.a);b&&(this.Na=b);this.L=
a.f;0>this.L&&(this.L=0);this.L>=this.Na.frames.length&&(this.L=this.Na.frames.length-1);this.Dh=a.cas;this.ie=a.fs;this.$d=a.ar;this.Hd.reset();this.Hd.qa=a.at;this.Cf=a.hasOwnProperty("ap")?a.ap:!0;this.Bf=a.hasOwnProperty("af")?a.af:!0;this.Ic=this.Na.frames[this.L];this.xj=this.Ic.Ka;this.za.Ni(this.Ic.Lk);this.gc=this.Ic.gc;this.hc=this.Ic.hc};r.Kl=function(a){this.L=a?0:this.Na.frames.length-1;this.Cf=!1;this.mp=this.Na.name;this.Mm=!0;this.b.trigger(Y.prototype.m.jt,this);this.b.trigger(Y.prototype.m.Wo,
this);this.Mm=!1;this.$d=0};r.Ll=function(){return this.Hd.qa};r.Ha=function(){this.Hd.add(this.b.Ze(this));this.yg.length&&this.Ap();0<=this.Ul&&this.Ru();var a=this.Hd.qa,b=this.Na,c=b.frames[this.L],d=c.duration/this.Dh;this.Cf&&a>=this.ie+d&&(this.Bf?this.L++:this.L--,this.ie+=d,this.L>=b.frames.length&&(b.jr?(this.Bf=!1,this.L=b.frames.length-2):b.loop?this.L=b.Vk:(this.$d++,this.$d>=b.Qn?this.Kl(!1):this.L=b.Vk)),0>this.L&&(b.jr?(this.L=1,this.Bf=!0,b.loop||(this.$d++,this.$d>=b.Qn&&this.Kl(!0))):
b.loop?this.L=b.Vk:(this.$d++,this.$d>=b.Qn?this.Kl(!0):this.L=b.Vk)),0>this.L?this.L=0:this.L>=b.frames.length&&(this.L=b.frames.length-1),a>this.ie+b.frames[this.L].duration/this.Dh&&(this.ie=a),a=b.frames[this.L],this.vg(c,a),this.b.Y=!0)};r.Jp=function(a){var b,c,d;b=0;for(c=this.type.ec.length;b<c;b++)if(d=this.type.ec[b],ib(d.name,a))return d;return null};r.Vv=function(a){var b,c,d;b=0;for(c=this.type.ec.length;b<c;b++)if(d=this.type.ec[b],d.ka===a)return d;return null};r.Ap=function(){var a=
this.Na.frames[this.L],b=this.Jp(this.yg);this.yg="";!b||ib(b.name,this.Na.name)&&this.Cf||(this.Na=b,this.Dh=b.speed,0>this.L&&(this.L=0),this.L>=this.Na.frames.length&&(this.L=this.Na.frames.length-1),1===this.xp&&(this.L=0),this.Cf=!0,this.ie=this.Hd.qa,this.Bf=!0,this.vg(a,this.Na.frames[this.L]),this.b.Y=!0)};r.Ru=function(){var a=this.Na.frames[this.L],b=this.L;this.L=L(this.Ul);0>this.L&&(this.L=0);this.L>=this.Na.frames.length&&(this.L=this.Na.frames.length-1);b!==this.L&&(this.vg(a,this.Na.frames[this.L]),
this.ie=this.Hd.qa,this.b.Y=!0);this.Ul=-1};r.vg=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.gc=b.gc;this.hc=b.hc;this.za.Ni(b.Lk);this.D();this.Ic=b;this.xj=b.Ka;c=0;for(d=this.V.length;c<d;c++)e=this.V[c],e.Zq&&e.Zq(a,b);this.b.trigger(Y.prototype.m.vg,this)};r.td=function(a){a.globalAlpha=this.opacity;var b=this.Ic,c=b.ih,d=b.W,e=this.x,f=this.y,g=this.width,h=this.height;if(0===this.u&&0<=g&&0<=h)e-=this.gc*g,f-=this.hc*h,this.b.gd&&
(e=Math.round(e),f=Math.round(f)),c?a.drawImage(d,b.$g,b.ah,b.width,b.height,e,f,g,h):a.drawImage(d,e,f,g,h);else{this.b.gd&&(e=Math.round(e),f=Math.round(f));a.save();var n=0<g?1:-1,u=0<h?1:-1;a.translate(e,f);1===n&&1===u||a.scale(n,u);a.rotate(this.u*n*u);e=0-this.gc*oa(g);f=0-this.hc*oa(h);c?a.drawImage(d,b.$g,b.ah,b.width,b.height,e,f,oa(g),oa(h)):a.drawImage(d,e,f,oa(g),oa(h));a.restore()}};r.Jc=function(a){a.nc(this.xj);a.vf(this.opacity);var b=this.Ic,c=this.Sb;if(this.b.gd){var d=Math.round(this.x)-
this.x,e=Math.round(this.y)-this.y;b.ih?a.zd(c.ub+d,c.wb+e,c.Qb+d,c.Rb+e,c.Kb+d,c.Lb+e,c.Ib+d,c.Jb+e,b.jo):a.Tk(c.ub+d,c.wb+e,c.Qb+d,c.Rb+e,c.Kb+d,c.Lb+e,c.Ib+d,c.Jb+e)}else b.ih?a.zd(c.ub,c.wb,c.Qb,c.Rb,c.Kb,c.Lb,c.Ib,c.Jb,b.jo):a.Tk(c.ub,c.wb,c.Qb,c.Rb,c.Kb,c.Lb,c.Ib,c.Jb)};r.bw=function(a){var b=this.Ic,c,d;c=0;for(d=b.Lm.length;c<d;c++)if(ib(a,b.Lm[c][0]))return c;return-1};r.Jh=function(a,b){var c=this.Ic,d=c.Lm,e;J(a)?e=this.bw(a):e=a-1;e=L(e);if(0>e||e>=d.length)return b?this.x:this.y;var f=
(d[e][1]-c.gc)*this.width,d=d[e][2],d=(d-c.hc)*this.height,c=Math.cos(this.u);e=Math.sin(this.u);var g=f*c-d*e,d=d*c+f*e,f=g+this.x,d=d+this.y;return b?f:d};var p=[],z=-2,C=[];l.prototype.ot=function(b){if(!b)return!1;var d=this.b,e=d.Vj(),g=e.type,h=null;e.fa.collmemory?h=e.fa.collmemory:(h={},e.fa.collmemory=h,d.Fl(function(a){var b=e.fa.collmemory;a=a.uid;var c,d;for(c in b)b.hasOwnProperty(c)&&(d=b[c],d[0]===a||d[1]===a)&&(f(b[c]),delete b[c])}));var n=g.U(),u=b.U(),n=n.tc(),m,p,l,v,q,r,w,A=this.b.Tc,
O=A-1,E=d.kb().ib;for(p=0;p<n.length;p++){l=n[p];u.ea?(l.la(),this.b.xm(l.A,b,l.ya,C),m=C):m=u.tc();for(v=0;v<m.length;v++)q=m[v],d.Pb(l,q)||d.Gu(l,q)?(r=c(h,l,q),r=!r||z<O,t(h,l,q,A),r&&(d.Ei(E.Da),r=g.U(),w=b.U(),r.ea=!1,w.ea=!1,g===b?(r.k.length=2,r.k[0]=l,r.k[1]=q,g.pd()):(r.k.length=1,w.k.length=1,r.k[0]=l,w.k[0]=q,g.pd(),b.pd()),E.Rn(),d.pf(E.Da))):a(h,l,q);C.length=0}return!1};var u=null,n=new da,v=!1,A=[],d=new R(0,0,0,0);g.finish=function(a){if(v){if(a){var b=this.b.kb().ib.cd;a=u.U();var c=
n.He(),d,e;if(a.ea){a.ea=!1;a.k.length=c.length;d=0;for(e=c.length;d<e;d++)a.k[d]=c[d];if(b)for(d=a.ma.length=0,e=u.k.length;d<e;d++)c=u.k[d],n.contains(c)||a.ma.push(c)}else if(b)for(b=a.k.length,a.k.length=b+c.length,d=0,e=c.length;d<e;d++)a.k[b+d]=c[d],Da(a.ma,c[d]);else za(a.k,c);u.pd()}n.clear();v=!1}};l.prototype.dt=function(a){return b.call(this,a,0,0)};l.prototype.et=function(a,c,d){return b.call(this,a,c,d)};l.prototype.Ts=function(a){return this.yg.length?ib(this.yg,a):ib(this.Na.name,a)};
l.prototype.Wo=function(a){return ib(this.mp,a)};l.prototype.jt=function(){return!0};l.prototype.vg=function(){return!0};w.m=new l;e.prototype.iu=function(a,b,c){if(a&&b&&(b=this.b.Yl(a,b,this.Jh(c,!0),this.Jh(c,!1)))){"undefined"!==typeof b.u&&(b.u=this.u,b.D());this.b.Oc++;var d,e,f;this.b.trigger(Object.getPrototypeOf(a.Fa).m.ug,b);if(b.Xb)for(d=0,e=b.siblings.length;d<e;d++)f=b.siblings[d],this.b.trigger(Object.getPrototypeOf(f.type.Fa).m.ug,f);this.b.Oc--;d=this.b.Yv();c=!1;if(ka(d.fa.Spawn_LastExec)||
d.fa.Spawn_LastExec<this.b.Mf)c=!0,d.fa.Spawn_LastExec=this.b.Mf;if(a!=this.type&&(a=a.U(),a.ea=!1,c?(a.k.length=1,a.k[0]=b):a.k.push(b),b.Xb))for(d=0,e=b.siblings.length;d<e;d++)f=b.siblings[d],a=f.type.U(),a.ea=!1,c?(a.k.length=1,a.k[0]=f):a.k.push(f)}};e.prototype.Rt=function(a,b){this.yg=a;this.xp=b;this.Um||(this.b.jl(this),this.Um=!0);this.Mm||this.Ap()};e.prototype.Xt=function(a){a=oa(this.width)*(0===a?-1:1);this.width!==a&&(this.width=a,this.D())};e.prototype.Tt=function(a){a=oa(this.height)*
(0===a?-1:1);this.height!==a&&(this.height=a,this.D())};e.prototype.au=function(a){var b=this.Ic,c=b.width*a*(0>this.width?-1:1);a=b.height*a*(0>this.height?-1:1);if(this.width!==c||this.height!==a)this.width=c,this.height=a,this.D()};w.F=new e;w.J=new function(){}})();function pc(h){this.b=h}
(function(){function h(){return c.length?c.pop():{}}function l(a){var e,f;e=0;for(f=a.length;e<f;e++)c.push(a[e]);a.length=0}function f(){}var q=pc.prototype;q.M=function(){q.F.fu=function(a){this.width!==a&&(this.width=a,this.pg=!0,this.D())}};q.Z=function(a){this.Fa=a;this.b=a.b};var t=q.Z.prototype;t.M=function(){};t.yi=function(){if(!this.N){var a,c,f;a=0;for(c=this.k.length;a<c;a++)f=this.k[a],f.Nd=null,f.gg=null,f.yc=null}};q.S=function(a){this.type=a;this.b=a.b;this.kc?this.gf.length=0:this.gf=
[];this.pg=!0};t=q.S.prototype;t.M=function(){this.text=this.C[0];this.visible=0===this.C[1];this.font=this.C[2];this.color=this.C[3];this.Yj=this.C[4];this.ul=this.C[5];this.Lo=0===this.C[7];this.dn=this.pe=this.width;this.oe=this.height;this.jn=this.C[8];this.Qj=this.Cg="";this.Or=this.Pr=this.qf=0;this.tx();this.yc=this.gg=this.Nd=null;this.Qq=!1;this.gi=this.b.Tc;this.kc?this.rf.set(0,0,1,1):this.rf=new R(0,0,1,1);this.b.H&&this.b.jl(this)};t.tx=function(){var a=this.font.split(" "),c;for(c=0;c<
a.length;c++)if("pt"===a[c].substr(a[c].length-2,2)){this.qf=parseInt(a[c].substr(0,a[c].length-2));this.Sk=Math.ceil(this.qf/72*96)+4;0<c&&(this.Qj=a[c-1]);this.Cg=a[c+1];for(c+=2;c<a.length;c++)this.Cg+=" "+a[c];break}};t.ab=function(){return{t:this.text,f:this.font,c:this.color,ha:this.Yj,va:this.ul,wr:this.Lo,lho:this.jn,fn:this.Cg,fs:this.Qj,ps:this.qf,pxh:this.Sk,tw:this.Pr,th:this.Or,lrt:this.gi}};t.pb=function(a){this.text=a.t;this.font=a.f;this.color=a.c;this.Yj=a.ha;this.ul=a.va;this.Lo=
a.wr;this.jn=a.lho;this.Cg=a.fn;this.Qj=a.fs;this.qf=a.ps;this.Sk=a.pxh;this.Pr=a.tw;this.Or=a.th;this.gi=a.lrt;this.pg=!0;this.dn=this.pe=this.width;this.oe=this.height};t.Ha=function(){if(this.b.H&&this.yc&&300<=this.b.Tc-this.gi){var a=this.A;this.la();var c=this.ya;if(c.right<a.Ia||c.bottom<a.Ja||c.left>a.Ma||c.top>a.La)this.b.H.deleteTexture(this.yc),this.Nd=this.gg=this.yc=null}};t.ig=function(){this.Nd=this.gg=null;this.b.H&&this.yc&&this.b.H.deleteTexture(this.yc);this.yc=null};t.by=function(){this.font=
this.Qj+" "+this.qf.toString()+"pt "+this.Cg;this.pg=!0;this.b.Y=!0};t.td=function(a,c){a.font=this.font;a.textBaseline="top";a.fillStyle=this.color;a.globalAlpha=c?1:this.opacity;var f=1;c&&(f=this.A.Lc(),a.save(),a.scale(f,f));if(this.pg||this.width!==this.dn)this.type.Fa.qu(this.text,this.gf,a,this.width,this.Lo),this.pg=!1,this.dn=this.width;this.la();var f=c?0:this.Sb.ub,g=c?0:this.Sb.wb;this.b.gd&&(f=f+.5|0,g=g+.5|0);0===this.u||c||(a.save(),a.translate(f,g),a.rotate(this.u),g=f=0);var h=g+
this.height,l=this.Sk,l=l+this.jn,p,q;1===this.ul?g+=Math.max(this.height/2-this.gf.length*l/2,0):2===this.ul&&(g+=Math.max(this.height-this.gf.length*l-2,0));for(q=0;q<this.gf.length&&!(p=f,1===this.Yj?p=f+(this.width-this.gf[q].width)/2:2===this.Yj&&(p=f+(this.width-this.gf[q].width)),a.fillText(this.gf[q].text,p,g),g+=l,g>=h-l);q++);(0!==this.u||c)&&a.restore();this.gi=this.b.Tc};t.Jc=function(a){if(!(1>this.width||1>this.height)){var c=this.pg||this.Qq;this.Qq=!1;var f=this.A.Lc(),g=this.A.fb(),
h=this.rf,l=f*this.width,p=f*this.height,q=Math.ceil(l),t=Math.ceil(p),u=this.b.ba/2,n=this.b.aa/2;this.gg||(this.Nd=document.createElement("canvas"),this.Nd.width=q,this.Nd.height=t,this.pe=q,this.oe=t,c=!0,this.gg=this.Nd.getContext("2d"));if(q!==this.pe||t!==this.oe)this.Nd.width=q,this.Nd.height=t,this.yc&&(a.deleteTexture(this.yc),this.yc=null),c=!0;c&&(this.gg.clearRect(0,0,q,t),this.td(this.gg,!0),this.yc||(this.yc=a.Jd(q,t,this.b.ra,this.b.me)),a.qs(this.Nd,this.yc,this.b.me));this.pe=q;this.oe=
t;a.nc(this.yc);a.vf(this.opacity);a.Rd();a.translate(-u,-n);a.Zd();var v=this.Sb,c=this.A.Pa(v.ub,v.wb,!0,!0),u=this.A.Pa(v.ub,v.wb,!1,!0),n=this.A.Pa(v.Qb,v.Rb,!0,!0),A=this.A.Pa(v.Qb,v.Rb,!1,!0),d=this.A.Pa(v.Kb,v.Lb,!0,!0),k=this.A.Pa(v.Kb,v.Lb,!1,!0),x=this.A.Pa(v.Ib,v.Jb,!0,!0),v=this.A.Pa(v.Ib,v.Jb,!1,!0);if(this.b.gd||0===this.u&&0===g)var B=(c+.5|0)-c,K=(u+.5|0)-u,c=c+B,u=u+K,n=n+B,A=A+K,d=d+B,k=k+K,x=x+B,v=v+K;0===this.u&&0===g?(n=c+q,A=u,d=n,k=u+t,x=c,v=k,h.right=1,h.bottom=1):(h.right=
l/q,h.bottom=p/t);a.zd(c,u,n,A,d,k,x,v,h);a.Rd();a.scale(f,f);a.Tn(-this.A.fb());a.translate((this.A.Ia+this.A.Ma)/-2,(this.A.Ja+this.A.La)/-2);a.Zd();this.gi=this.b.Tc}};var a=[];q.mu=function(b){a.length=0;for(var c="",f,g=0;g<b.length;)if(f=b.charAt(g),"\n"===f)c.length&&(a.push(c),c=""),a.push("\n"),++g;else if(" "===f||"\t"===f||"-"===f){do c+=b.charAt(g),g++;while(g<b.length&&(" "===b.charAt(g)||"\t"===b.charAt(g)));a.push(c);c=""}else g<b.length&&(c+=f,g++);c.length&&a.push(c)};var c=[];q.qu=
function(a,c,f,g,m){if(a&&a.length)if(2>=g)l(c);else{if(100>=a.length&&-1===a.indexOf("\n")){var q=f.measureText(a).width;if(q<=g){l(c);c.push(h());c[0].text=a;c[0].width=q;return}}this.ru(a,c,f,g,m)}else l(c)};q.ru=function(b,e,f,g,m){m&&(this.mu(b),b=a);var l="",p,q,t,u=0;for(t=0;t<b.length;t++)"\n"===b[t]?(u>=e.length&&e.push(h()),q=e[u],q.text=l,q.width=f.measureText(l).width,u++,l=""):(p=l,l+=b[t],q=f.measureText(l).width,q>=g&&(u>=e.length&&e.push(h()),q=e[u],q.text=p,q.width=f.measureText(p).width,
u++,l=b[t],m||" "!==l||(l="")));l.length&&(u>=e.length&&e.push(h()),q=e[u],q.text=l,q.width=f.measureText(l).width,u++);for(t=u;t<e.length;t++)c.push(e[t]);e.length=u};q.m=new function(){};f.prototype.bu=function(a){la(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.pg=!0,this.b.Y=!0)};f.prototype.Ut=function(a){this.qf!==a&&(this.qf=a,this.Sk=Math.ceil(this.qf/72*96)+4,this.by())};q.F=new f;q.J=new function(){}})();function qc(h){this.b=h}
(function(){var h=qc.prototype;h.Z=function(f){this.Fa=f;this.b=f.b};var l=h.Z.prototype;l.M=function(){this.N||(this.W=new Image,this.W.Xl=this.hl,this.b.Ho(this.W,this.gl),this.Ka=this.pattern=null)};l.yi=function(){this.N||(this.Ka=null)};l.Gk=function(){if(!this.N&&this.k.length){this.Ka||(this.Ka=this.b.H.sk(this.W,!0,this.b.ra,this.po));var f,h;f=0;for(h=this.k.length;f<h;f++)this.k[f].Ka=this.Ka}};l.tk=function(){this.N||this.Ka||!this.b.H||(this.Ka=this.b.H.sk(this.W,!0,this.b.ra,this.po))};
l.ql=function(){this.N||this.k.length||!this.Ka||(this.b.H.deleteTexture(this.Ka),this.Ka=null)};l.Pk=function(f){f.drawImage(this.W,0,0)};h.S=function(f){this.type=f;this.b=f.b};l=h.S.prototype;l.M=function(){this.visible=0===this.C[0];this.rf=new R(0,0,0,0);this.Wp=!1;this.W=this.type.W;this.b.H?(this.type.tk(),this.Ka=this.type.Ka):(this.type.pattern||(this.type.pattern=this.b.xa.createPattern(this.type.W,"repeat")),this.pattern=this.type.pattern)};l.Gd=function(){this.Wp=!1;this.W=this.type.W};
l.ig=function(){this.b.H&&this.Wp&&this.Ka&&(this.b.H.deleteTexture(this.Ka),this.Ka=null)};l.td=function(f){f.globalAlpha=this.opacity;f.save();f.fillStyle=this.pattern;var h=this.x,l=this.y;this.b.gd&&(h=Math.round(h),l=Math.round(l));var a=-(this.gc*this.width),c=-(this.hc*this.height),b=a%this.W.width,e=c%this.W.height;0>b&&(b+=this.W.width);0>e&&(e+=this.W.height);f.translate(h,l);f.rotate(this.u);f.translate(b,e);f.fillRect(a-b,c-e,this.width,this.height);f.restore()};l.Jc=function(f){f.nc(this.Ka);
f.vf(this.opacity);var h=this.rf;h.right=this.width/this.W.width;h.bottom=this.height/this.W.height;var l=this.Sb;if(this.b.gd){var a=Math.round(this.x)-this.x,c=Math.round(this.y)-this.y;f.zd(l.ub+a,l.wb+c,l.Qb+a,l.Rb+c,l.Kb+a,l.Lb+c,l.Ib+a,l.Jb+c,h)}else f.zd(l.ub,l.wb,l.Qb,l.Rb,l.Kb,l.Lb,l.Ib,l.Jb,h)};h.m=new function(){};h.F=new function(){};h.J=new function(){}})();function rc(h){this.b=h}
(function(){function h(){this.ll=this.id=-1;this.np=this.Ag=this.Zi=this.Qh=!1;this.Aa=new R(0,0,0,0)}function l(a){1E4>r.length&&r.push(a)}function f(){this.id=-1;this.Aa=new R(0,0,0,0);this.ve=null}function q(a){1E4>p.length&&p.push(a)}function t(b,c,e){var f;return z.length?(f=z.pop(),f.j=b,f.x=c,f.y=e,f.left=f.x*f.j.Ab*f.j.Ec,f.top=f.y*f.j.zb*f.j.Dc,f.clear(),f.Fi=!1,f):new a(b,c,e)}function a(a,b,c){this.j=a;this.x=b;this.y=c;this.left=this.x*this.j.Ab*this.j.Ec;this.top=this.y*this.j.zb*this.j.Dc;
this.Xd=[];this.Db=[];this.Tb=[];this.Fi=!1;var e,d;a=0;for(b=this.j.zb;a<b;++a){d=[];c=0;for(e=this.j.Ab;c<e;++c)d.push(-1);this.Xd.push(d)}}var c=rc.prototype;c.Z=function(a){this.Fa=a;this.b=a.b};var b=c.Z.prototype;b.M=function(){var a,b,c;if(!this.N&&(this.W=new Image,this.W.Xl=this.hl,this.b.Ho(this.W,this.gl),this.Hf=[],this.dm=!1,this.Cd=[],this.Sr=!1,this.kl&&this.kl.length))for(a=0,b=this.kl.length;a<b;++a)(c=this.kl[a])?this.Cd.push({ve:c,Oj:[[[null,null],[null,null]],[[null,null],[null,
null]]]}):this.Cd.push(null)};b.Re=function(a,b,c,e,d,f){if(!(0>a||a>=this.Cd.length)&&this.Cd[a]){var g=this.Cd[a].Oj;a=new cb(this.Cd[a].ve);a.Ff(b,c,0);f&&a.Pu();e&&a.ax(b/2);d&&a.Qv(c/2);g[e?1:0][d?1:0][f?1:0]=a}};b.lw=function(a){if(-1===a)return null;var b=a&m;return 0>b||b>=this.Cd.length||!this.Cd[b]?null:this.Cd[b].Oj[a&e?1:0][a&w?1:0][a&g?1:0]};b.tm=function(){var a,b,c=this.b.H;if(c)for(a=0,b=this.Hf.length;a<b;++a)c.deleteTexture(this.Hf[a]);this.Hf.length=0;this.dm=!1};b.vn=function(a,
b,c,e,d,f,g){if(!(this.dm||0>=a||0>=b)){this.tm();var h=this.W.width,m=this.W.height,l;for(l=e;l+b<=m;l+=b+f)for(e=c;e+a<=h;e+=a+d)this.Hf.push(this.Ms(e,l,a,b,g));this.dm=!0}};b.Ms=function(a,b,c,e,d){if(this.b.H)return this.yl(a,b,c,e,!1,!1,!1,d);var f=[[[null,null],[null,null]],[[null,null],[null,null]]];f[0][0][0]=this.yl(a,b,c,e,!1,!1,!1,d);return{Oj:f,x:a,y:b,iy:c,Cw:e}};b.So=function(a,b,c,e,d){if(0>a||a>=this.Hf.length)return null;a=this.Hf[a];var f=a.Oj;b=b?1:0;c=c?1:0;e=e?1:0;var g=f[b][c][e];
if(g)return g;g=this.yl(a.x,a.y,a.iy,a.Cw,0!==b,0!==c,0!==e,d);return f[b][c][e]=g};b.yl=function(a,b,c,e,d,f,g,h){var m=c,l=e;this.b.H&&!h&&(ma(m)||(m=na(m)),ma(l)||(l=na(l)));var p=document.createElement("canvas");p.width=m;p.height=l;var q=p.getContext("2d");if(this.b.xa)return d?f?(g?(q.rotate(Math.PI/2),q.scale(-1,1)):q.scale(-1,-1),q.translate(-m,-l)):g?(q.rotate(Math.PI/2),q.translate(0,-l)):(q.scale(-1,1),q.translate(-m,0)):f?g?(q.rotate(-Math.PI/2),q.translate(-m,0)):(q.scale(1,-1),q.translate(0,
-l)):g&&(q.scale(-1,1),q.rotate(Math.PI/2)),q.drawImage(this.W,a,b,c,e,0,0,m,l),h?p:this.b.xa.createPattern(p,"repeat");q.drawImage(this.W,a,b,c,e,0,0,m,l);a=this.b.H.Jd(m,l,this.b.ra,!1,!h);this.b.H.qs(p,a);return a};b.yi=function(){this.N||this.tm()};b.Gk=function(){};b.tk=function(){};b.ql=function(){this.N||this.k.length||this.tm()};b.Pk=function(){};c.S=function(a){this.type=a;this.b=a.b};var b=c.S.prototype,e=-2147483648,w=1073741824,g=536870912,m=536870911,r=[],p=[],z=[];a.prototype.clear=
function(){var a,b,c,e,d;this.Xd.length=this.j.zb;a=0;for(b=this.Xd.length;a<b;++a)for(d=this.Xd[a],d||(d=[],this.Xd[a]=d),d.length=this.j.Ab,c=0,e=d.length;c<e;++c)d[c]=-1};a.prototype.ri=function(){if(!this.Fi){var a=this.j.Ec,b=this.j.Dc;if(!(0>=a||0>=b)){var c,t,d,k,x,B;c=0;for(t=this.Db.length;c<t;++c)l(this.Db[c]);c=0;for(t=this.Tb.length;c<t;++c)q(this.Tb[c]);this.Db.length=0;this.Tb.length=0;var K=Math.floor(this.j.width/a),C=Math.floor(this.j.height/b),K=K-this.left/a,C=C-this.top/b;K>this.j.Ab&&
(K=this.j.Ab);C>this.j.zb&&(C=this.j.zb);var y=this.j.tf,z=null;c=0;for(t=C;c<t;++c){x=this.Xd[c];d=0;for(k=K;d<k;++d)B=x[d],-1===B?z&&(this.Db.push(z),z=null):y||!z||B!==z.id?(z&&this.Db.push(z),z=r.length?r.pop():new h,z.id=B,z.ll=B&m,z.Qh=0!==(B&e),z.Zi=0!==(B&w),z.Ag=0!==(B&g),z.np=z.Qh||z.Zi||z.Ag,z.Aa.left=d*a+this.left,z.Aa.top=c*b+this.top,z.Aa.right=z.Aa.left+a,z.Aa.bottom=z.Aa.top+b):z.Aa.right+=a;z&&(this.Db.push(z),z=null)}var z=null,X=!1;c=0;for(t=C;c<t;++c){x=this.Xd[c];d=0;for(k=K;d<
k;++d)B=x[d],-1===B?z&&(this.Tb.push(z),z=null,X=!1):(C=this.j.type.lw(B),!z||C||X?(z&&this.Tb.push(z),z=p.length?p.pop():new f,z.id=B,z.ve=C?C:null,B=z.Aa,B.left=d*a+this.left,B.top=c*b+this.top,B.right=B.left+a,B.bottom=B.top+b,X=!!C):z.Aa.right+=a);z&&(this.Tb.push(z),z=null,X=!1)}if(!y)for(t=this.Db.length,c=0;c<t;++c)for(k=this.Db[c],a=c+1;a<t;++a)if(d=this.Db[a],!(d.Aa.top<k.Aa.bottom)){if(d.Aa.top>k.Aa.bottom)break;if(d.Aa.right>k.Aa.right||d.Aa.left>k.Aa.left)break;d.id===k.id&&d.Aa.left===
k.Aa.left&&d.Aa.right===k.Aa.right&&(l(this.Db[a]),this.Db.splice(a,1),--t,k.Aa.bottom+=b,--a)}t=this.Tb.length;for(c=0;c<t;++c)if(k=this.Tb[c],!k.ve)for(x=k.Aa,a=c+1;a<t;++a)if(d=this.Tb[a],k=d.Aa,!(k.top<x.bottom)){if(k.top>x.bottom)break;if(k.right>x.right||k.left>x.left)break;d.ve||k.left!==x.left||k.right!==x.right||(q(this.Tb[a]),this.Tb.splice(a,1),--t,x.bottom+=b,--a)}this.Fi=!0}}};a.prototype.eo=function(a,b,c){this.Xd[b][a]!==c&&(this.Xd[b][a]=c,this.Fi=!1,this.j.kj=!0,this.j.Jk=!0,this.j.b.Y=
!0)};b.M=function(){var a,b,c;this.visible=0===this.C[0];this.Ec=this.C[1];this.Dc=this.C[2];this.ro=this.C[3];this.to=this.C[4];this.so=this.C[5];this.uo=this.C[6];this.tf=0!==this.C[7];this.kf=this.Vr;this.jf=this.Ur;this.pe=this.width;this.oe=this.height;var e=this.Ec,d=this.Dc;0===e&&(e=1);0===d&&(d=1);this.Ab=Math.ceil(this.b.Ra/e);this.zb=Math.ceil(this.b.Qa/d);if(!this.type.Sr)for(this.type.Sr=!0,a=0,b=this.type.Cd.length;a<b;++a)if(c=this.type.Cd[a])this.type.Re(a,e,d,!1,!1,!1),this.type.Re(a,
e,d,!1,!1,!0),this.type.Re(a,e,d,!1,!0,!1),this.type.Re(a,e,d,!1,!0,!0),this.type.Re(a,e,d,!0,!1,!1),this.type.Re(a,e,d,!0,!1,!0),this.type.Re(a,e,d,!0,!0,!1),this.type.Re(a,e,d,!0,!0,!0);this.kc||(this.oc=[]);this.Zw();this.Ar(this.Tr);this.type.vn(this.Ec,this.Dc,this.ro,this.to,this.so,this.uo,this.tf);this.Jk=!1;this.kj=!0;this.un()};b.un=function(){if(this.kj){var a,b,c,e,d;a=0;for(b=this.oc.length;a<b;++a)for(d=this.oc[a],c=0,e=d.length;c<e;++c)d[c].ri();this.kj=!1}};b.$n=function(){var a,b,
c,e,d;a=0;for(b=this.oc.length;a<b;++a)for(d=this.oc[a],c=0,e=d.length;c<e;++c)d[c].Fi=!1;this.kj=!0};b.Zw=function(){var a,b;a=Math.ceil(this.jf/this.zb);b=Math.ceil(this.kf/this.Ab);var c,e,d;for(c=0;c<a;++c)if(d=this.oc[c])for(e=d.length;e<b;++e)d.push(t(this,e,c));else{d=[];for(e=0;e<b;++e)d.push(t(this,e,c));this.oc[c]=d}};b.Rl=function(a,b){if(0>a||0>b)return null;var c=L(b/this.zb);if(c>=this.oc.length)return null;var c=this.oc[c],e=L(a/this.Ab);return e>=c.length?null:c[e]};b.Sl=function(a,
b){if(0>a||0>b||b>=this.oc.length)return null;var c=this.oc[b];return a>=c.length?null:c[a]};b.Ar=function(a){var b=[];a=a.split(",");var c,f,d,h,m;c=0;for(f=a.length;c<f;++c)if(d=a[c],h=d.indexOf("x"),-1<h)for(m=parseInt(d.substring(0,h),10),d=d.substring(h+1),h=parseInt(d,10),-1<d.indexOf("h")&&(h|=e),-1<d.indexOf("v")&&(h|=w),-1<d.indexOf("d")&&(h|=g);0<m;--m)b.push(h);else h=parseInt(d,10),-1<d.indexOf("h")&&(h|=e),-1<d.indexOf("v")&&(h|=w),-1<d.indexOf("d")&&(h|=g),b.push(h);for(c=a=0;c<this.jf;++c)for(f=
0;f<this.kf;++f)m=b[a++],(d=this.Rl(f,c))&&d.eo(f%this.Ab,c%this.zb,m)};b.mw=function(){var a="";if(0>=this.kf||0>=this.jf)return a;var b=1,c=this.Sp(0,0),f,d=this.jf,h,l=this.kf,p,q,t,r;for(f=0;f<d;++f)for(h=0===f?1:0;h<l;++h)p=this.Sp(h,f),p===c?++b:(-1===c?(q=-1,c=r=t=!1):(q=c&m,t=0!==(c&e),r=0!==(c&w),c=0!==(c&g)),a=1===b?a+(""+q):a+(""+b+"x"+q),t&&(a+="h"),r&&(a+="v"),c&&(a+="d"),a+=",",b=1,c=p);-1===c?(q=-1,c=r=t=!1):(q=c&m,t=0!==(c&e),r=0!==(c&w),c=0!==(c&g));a=1===b?a+(""+q):a+(""+b+"x"+q);
t&&(a+="h");r&&(a+="v");c&&(a+="d");return a};b.Sp=function(a,b){a=Math.floor(a);b=Math.floor(b);if(0>a||0>b||a>=this.kf||b>=this.jf)return-1;var c=this.Rl(a,b);return c?c.Xd[b%this.zb][a%this.Ab]:-1};b.eo=function(a,b,c){a=Math.floor(a);b=Math.floor(b);if(0>a||0>b||a>=this.kf||b>=this.jf)return-1;var e=this.Rl(a,b);if(!e)return-1;e.eo(a%this.Ab,b%this.zb,c)};b.ts=function(a){return Math.floor((a-this.x)/(this.Ab*this.Ec))};b.us=function(a){return Math.floor((a-this.y)/(this.zb*this.Dc))};b.Xv=function(a,
b){var c=this.us(a.top),e=this.ts(a.right),d=this.us(a.bottom),f,g,h;for(f=this.ts(a.left);f<=e;++f)for(g=c;g<=d;++g)if(h=this.Sl(f,g))h.ri(),Ba(b,h.Tb)};b.Ll=function(a){var b,c,e,d,f,g;b=0;for(c=this.oc.length;b<c;++b)for(f=this.oc[b],e=0,d=f.length;e<d;++e)g=f[e],g.ri(),Ba(a,g.Tb)};b.ig=function(){var a,b,c,e,d;a=0;for(b=this.oc.length;a<b;++a){d=this.oc[a];c=0;for(e=d.length;c<e;++c){for(var f=d[c],g=void 0,h=void 0,g=0,h=f.Db.length;g<h;++g)l(f.Db[g]);g=f.Db.length=0;for(h=f.Tb.length;g<h;++g)q(f.Tb[g]);
f.Tb.length=0;1E3>z.length&&z.push(f)}d.length=0}this.oc.length=0};b.ab=function(){return{w:this.kf,h:this.jf,d:this.mw()}};b.pb=function(a){this.kf=a.w;this.jf=a.h;this.Ar(a.d);this.Jk=!0;this.$n()};b.td=function(a){if(!(0>=this.Ec||0>=this.Dc)){this.type.vn(this.Ec,this.Dc,this.ro,this.to,this.so,this.uo,this.tf);if(this.width!==this.pe||this.height!==this.oe)this.Jk=!0,this.$n(),this.un(),this.pe=this.width,this.oe=this.height;a.globalAlpha=this.opacity;var b=this.A,c=b.Ia,e=b.Ja,d=b.Ma,b=b.La,
f=this.x,g=this.y,h=this.tf,m;this.b.gd&&(f=Math.round(f),g=Math.round(g));var l=this.Ab*this.Ec,p=this.zb*this.Dc,q=Math.floor((c-f)/l),l=Math.floor((d-f)/l),t=Math.floor((e-g)/p),p=Math.floor((b-g)/p),r=f%this.Ec,w=g%this.Dc;this.tf&&(w=r=0);if(0!==r||0!==w)a.save(),a.translate(r,w),f-=r,g-=w,c-=r,e-=w,d-=r,b-=w;for(var z,C,G,M,D,O,E,H,I;q<=l;++q)for(z=t;z<=p;++z)if(C=this.Sl(q,z))for(C.ri(),G=0,M=C.Db.length;G<M;++G)D=C.Db[G],-1!==D.id&&(m=D.Aa,O=m.left+f,E=m.top+g,H=m.right+f,m=m.bottom+g,O>d||
H<c||E>b||m<e||(I=this.type.So(D.ll,D.Qh,D.Zi,D.Ag,this.tf),h?a.drawImage(I,O,E):(a.fillStyle=this.type.So(D.ll,D.Qh,D.Zi,D.Ag,this.tf),a.fillRect(O,E,H-O,m-E))));0===r&&0===w||a.restore()}};var C=new R(0,0,1,1);b.Jc=function(a){if(!(0>=this.Ec||0>=this.Dc)){this.type.vn(this.Ec,this.Dc,this.ro,this.to,this.so,this.uo,this.tf);if(this.width!==this.pe||this.height!==this.oe)this.Jk=!0,this.$n(),this.un(),this.pe=this.width,this.oe=this.height;a.vf(this.opacity);var b=this.type.Hf,c=this.A,e=c.Ia,d=
c.Ja,f=c.Ma,c=c.La,g=this.x,h=this.y,m;this.b.gd&&(g=Math.round(g),h=Math.round(h));var l=this.Ab*this.Ec,p=this.zb*this.Dc,q=Math.floor((f-g)/l),t=Math.floor((d-h)/p),p=Math.floor((c-h)/p),r,w,z,ea,G,M,D,O,E,H,I,T,P,Q,aa,ia,ja;for(aa=Math.floor((e-g)/l);aa<=q;++aa)for(ia=t;ia<=p;++ia)if(ja=this.Sl(aa,ia))for(ja.ri(),l=0,r=ja.Db.length;l<r;++l)w=ja.Db[l],-1!==w.id&&(m=w.Aa,z=m.left+g,ea=m.top+h,G=m.right+g,m=m.bottom+h,z>f||G<e||ea>c||m<d||(a.nc(b[w.ll]),C.right=(G-z)/this.Ec,C.bottom=(m-ea)/this.Dc,
w.np?(w.Ag&&(Q=C.right,C.right=C.bottom,C.bottom=Q),D=M=0,O=C.right,E=0,H=C.right,I=C.bottom,T=0,P=C.bottom,w.Ag&&(Q=T,T=O,O=Q,Q=P,P=E,E=Q),w.Qh&&(Q=M,M=O,O=Q,Q=D,D=E,E=Q,Q=T,T=H,H=Q,Q=P,P=I,I=Q),w.Zi&&(Q=M,M=T,T=Q,Q=D,D=P,P=Q,Q=O,O=H,H=Q,Q=E,E=I,I=Q),a.Fx(z,ea,G,ea,G,m,z,m,M,D,O,E,H,I,T,P)):a.zd(z,ea,G,ea,G,m,z,m,C)))}};c.m=new function(){};c.F=new function(){};c.J=new function(){}})();function sc(h){this.b=h}
(function(){var h=sc.prototype;h.Z=function(f){this.behavior=f;this.b=f.b};h.Z.prototype.M=function(){};h.S=function(f,h){this.type=f;this.behavior=f.behavior;this.j=h;this.b=f.b};var l=h.S.prototype;l.M=function(){this.kp=this.C[0];this.lp=this.C[1];this.yu=this.C[2];this.xu=this.C[3];this.j.la();this.Mo=this.j.ya.left;this.Po=this.j.ya.top;this.No=this.b.Ra-this.j.ya.left;this.Oo=this.b.Qa-this.j.ya.top;this.On=this.b.Ra-this.j.ya.right;this.Ol=this.b.Qa-this.j.ya.bottom;this.enabled=0!==this.C[4]};
l.ab=function(){return{xleft:this.Mo,ytop:this.Po,xright:this.No,ybottom:this.Oo,rdiff:this.On,bdiff:this.Ol,enabled:this.enabled}};l.pb=function(f){this.Mo=f.xleft;this.Po=f.ytop;this.No=f.xright;this.Oo=f.ybottom;this.On=f.rdiff;this.Ol=f.bdiff;this.enabled=f.enabled};l.Ha=function(){if(this.enabled){var f,h=this.j.A,l=this.j,a=this.j.ya;0===this.kp?(l.la(),f=h.Ia+this.Mo-a.left,0!==f&&(l.x+=f,l.D())):1===this.kp&&(l.la(),f=h.Ma-this.No-a.left,0!==f&&(l.x+=f,l.D()));0===this.lp?(l.la(),f=h.Ja+this.Po-
a.top,0!==f&&(l.y+=f,l.D())):1===this.lp&&(l.la(),f=h.La-this.Oo-a.top,0!==f&&(l.y+=f,l.D()));1===this.yu&&(l.la(),f=h.Ma-this.On-a.right,0!==f&&(l.width+=f,0>l.width&&(l.width=0),l.D()));1===this.xu&&(l.la(),f=h.La-this.Ol-a.bottom,0!==f&&(l.height+=f,0>l.height&&(l.height=0),l.D()))}};h.m=new function(){};h.F=new function(){};h.J=new function(){}})();function tc(h){this.b=h}
(function(){function h(){}function l(){}function f(){}var q=tc.prototype;q.Z=function(a){this.behavior=a;this.b=a.b};q.Z.prototype.M=function(){};q.S=function(a,c){this.type=a;this.behavior=a.behavior;this.j=c;this.b=a.b};var t=q.S.prototype;t.M=function(){var a=this.C[0];this.Ea=this.C[1];this.Vb=this.C[2];this.Cu=0!==this.C[3];this.ao=0!==this.C[4];this.n=Math.cos(this.j.u)*a;this.q=Math.sin(this.j.u)*a;this.lk=this.j.x;this.mk=this.j.y;this.Tg=this.j.u;this.nl=0;this.enabled=0!==this.C[5]};t.ab=
function(){return{acc:this.Ea,g:this.Vb,dx:this.n,dy:this.q,lx:this.lk,ly:this.mk,lka:this.Tg,t:this.nl,e:this.enabled}};t.pb=function(a){this.Ea=a.acc;this.Vb=a.g;this.n=a.dx;this.q=a.dy;this.lk=a.lx;this.mk=a.ly;this.Tg=a.lka;this.nl=a.t;this.enabled=a.e};t.Ha=function(){if(this.enabled){var a=this.b.Ze(this.j),c,b;this.j.u!==this.Tg&&(this.ao&&(c=Pa(0,0,this.n,this.q),this.n=Math.cos(this.j.u)*c,this.q=Math.sin(this.j.u)*c),this.Tg=this.j.u);0!==this.Ea&&(c=Pa(0,0,this.n,this.q),b=0===this.n&&
0===this.q?this.j.u:Ja(0,0,this.n,this.q),c+=this.Ea*a,0>c&&(c=0),this.n=Math.cos(b)*c,this.q=Math.sin(b)*c);0!==this.Vb&&(this.q+=this.Vb*a);this.lk=this.j.x;this.mk=this.j.y;if(0!==this.n||0!==this.q)if(this.j.x+=this.n*a,this.j.y+=this.q*a,this.nl+=Pa(0,0,this.n*a,this.q*a),this.ao&&(this.j.u=Ja(0,0,this.n,this.q),this.j.D(),this.Tg=this.j.u),this.j.D(),this.Cu&&(c=this.b.Sa(this.j)))this.b.Qd(this.j,c),c=Pa(0,0,this.n,this.q),b=this.b.Eu(this.j,this.lk,this.mk),this.n=Math.cos(b)*c,this.q=Math.sin(b)*
c,this.j.x+=this.n*a,this.j.y+=this.q*a,this.j.D(),this.ao&&(this.Tg=this.j.u=b,this.j.D()),this.b.Rc(this.j,this.n/c,this.q/c,Math.max(2.5*c*a,30))||this.b.Ln(this.j,100)}};h.prototype.xl=function(a,c){return $b(Pa(0,0,this.n,this.q),a,c)};q.m=new h;l.prototype.ep=function(a){var c=Ja(0,0,this.n,this.q);this.n=Math.cos(c)*a;this.q=Math.sin(c)*a};l.prototype.Cl=function(a){this.Ea=a};l.prototype.bp=function(a){this.Vb=a};l.prototype.Qt=function(a){a=U(a);var c=Pa(0,0,this.n,this.q);this.n=Math.cos(a)*
c;this.q=Math.sin(a)*c};q.F=new l;f.prototype.El=function(a){var c=Pa(0,0,this.n,this.q),c=hb(c);a.K(c)};q.J=new f})();function uc(h){this.b=h}
(function(){function h(){}function l(){}function f(){}var q=uc.prototype;q.Z=function(a){this.behavior=a;this.b=a.b};q.Z.prototype.M=function(){};q.S=function(a,c){this.type=a;this.behavior=a.behavior;this.j=c;this.b=a.b;this.Ce=this.Be=this.al=this.bl=this.Rf=this.ye=this.qe=this.Ej=this.sl=!1;this.bn=this.an=this.$m=this.cn=-1;this.q=this.n=0};var t=q.S.prototype;t.M=function(){this.qb=this.C[0];this.Ea=this.C[1];this.Mb=this.C[2];this.im=this.C[3];this.Il=this.C[4];this.gm=1===this.C[5];this.enabled=
0!==this.C[6];this.gm&&!this.b.Xa&&(jQuery(document).keydown(function(a){return function(c){a.wi(c)}}(this)),jQuery(document).keyup(function(a){return function(c){a.xi(c)}}(this)))};t.ab=function(){return{dx:this.n,dy:this.q,enabled:this.enabled,maxspeed:this.qb,acc:this.Ea,dec:this.Mb,ignoreInput:this.Rf}};t.pb=function(a){this.n=a.dx;this.q=a.dy;this.enabled=a.enabled;this.qb=a.maxspeed;this.Ea=a.acc;this.Mb=a.dec;this.Rf=a.ignoreInput;this.Ce=this.Be=this.al=this.bl=this.ye=this.qe=this.Ej=this.sl=
!1;this.bn=this.an=this.$m=this.cn=-1};t.wi=function(a){var c=this.b.Tc;switch(a.which){case 37:a.preventDefault();this.an<c&&(this.qe=!0);break;case 38:a.preventDefault();this.cn<c&&(this.sl=!0);break;case 39:a.preventDefault();this.bn<c&&(this.ye=!0);break;case 40:a.preventDefault(),this.$m<c&&(this.Ej=!0)}};t.xi=function(a){var c=this.b.Tc;switch(a.which){case 37:a.preventDefault();this.qe=!1;this.an=c;break;case 38:a.preventDefault();this.sl=!1;this.cn=c;break;case 39:a.preventDefault();this.ye=
!1;this.bn=c;break;case 40:a.preventDefault(),this.Ej=!1,this.$m=c}};t.Ha=function(){var a=this.b.Ze(this.j),c=this.qe||this.Be,b=this.ye||this.Ce,e=this.sl||this.bl,f=this.Ej||this.al;this.al=this.bl=this.Ce=this.Be=!1;if(this.enabled){var g=this.b.Sa(this.j);if(g&&(this.b.Qd(this.j,g),!this.b.Ln(this.j)))return;this.Rf&&(f=e=b=c=!1);0===this.im?b=c=!1:1===this.im&&(f=e=!1);2===this.im&&(e||f)&&(b=c=!1);c==b&&(0>this.n?(this.n+=this.Mb*a,0<this.n&&(this.n=0)):0<this.n&&(this.n-=this.Mb*a,0>this.n&&
(this.n=0)));e==f&&(0>this.q?(this.q+=this.Mb*a,0<this.q&&(this.q=0)):0<this.q&&(this.q-=this.Mb*a,0>this.q&&(this.q=0)));c&&!b&&(this.n=0<this.n?this.n-(this.Ea+this.Mb)*a:this.n-this.Ea*a);b&&!c&&(this.n=0>this.n?this.n+(this.Ea+this.Mb)*a:this.n+this.Ea*a);e&&!f&&(this.q=0<this.q?this.q-(this.Ea+this.Mb)*a:this.q-this.Ea*a);f&&!e&&(this.q=0>this.q?this.q+(this.Ea+this.Mb)*a:this.q+this.Ea*a);if(0!==this.n||0!==this.q){Math.sqrt(this.n*this.n+this.q*this.q)>this.qb&&(g=Math.atan2(this.q,this.n),
this.n=this.qb*Math.cos(g),this.q=this.qb*Math.sin(g));b=this.j.x;e=this.j.y;c=this.j.u;this.j.x+=this.n*a;this.j.D();if(g=this.b.Sa(this.j))this.j.x=b,this.n=0,this.j.D(),this.b.Qd(this.j,g);this.j.y+=this.q*a;this.j.D();if(g=this.b.Sa(this.j))this.j.y=e,this.q=0,this.j.D(),this.b.Qd(this.j,g);a=hb(this.n);g=hb(this.q);if(0!==a||0!==g)1===this.Il?this.j.u=Ia(90*Math.round(Ea(Math.atan2(g,a))/90)):2===this.Il?this.j.u=Ia(45*Math.round(Ea(Math.atan2(g,a))/45)):3===this.Il&&(this.j.u=Math.atan2(g,a));
this.j.D();this.j.u!=c&&(g=this.b.Sa(this.j))&&(this.j.u=c,this.j.D(),this.b.Qd(this.j,g))}}};h.prototype.Uo=function(){return 0!==this.n||0!==this.q};h.prototype.xl=function(a,c){var b=Math.sqrt(this.n*this.n+this.q*this.q);return $b(b,a,c)};q.m=new h;l.prototype.gp=function(){this.q=this.n=0};l.prototype.ep=function(a){0>a&&(a=0);a>this.qb&&(a=this.qb);var c=Math.atan2(this.q,this.n);this.n=a*Math.cos(c);this.q=a*Math.sin(c)};l.prototype.cp=function(a){this.qb=a;0>this.qb&&(this.qb=0)};l.prototype.Cl=
function(a){this.Ea=a;0>this.Ea&&(this.Ea=0)};l.prototype.Dl=function(a){switch(a){case 0:this.Be=!0;break;case 1:this.Ce=!0;break;case 2:this.bl=!0;break;case 3:this.al=!0}};l.prototype.fp=function(a){this.q=a};q.F=new l;f.prototype.El=function(a){a.K(Math.sqrt(this.n*this.n+this.q*this.q))};q.J=new f})();function vc(h){this.b=h}
(function(){function h(){}function l(){}var f=vc.prototype;f.Z=function(f){this.behavior=f;this.b=f.b};f.Z.prototype.M=function(){};f.S=function(f,a){this.type=f;this.behavior=f.behavior;this.j=a;this.b=f.b};var q=f.S.prototype;q.M=function(){var f=1===this.C[0];this.Hh=this.C[1];this.bj=this.C[2];this.Jj=this.C[3];this.Ou=this.C[4];this.tb=f?0:3;this.kc?this.jd.reset():this.jd=new Xa;this.fg=this.j.opacity?this.j.opacity:1;f&&(0===this.Hh?(this.tb=1,0===this.bj&&(this.tb=2)):(this.j.opacity=0,this.b.Y=
!0))};q.ab=function(){return{fit:this.Hh,wt:this.bj,fot:this.Jj,s:this.tb,st:this.jd.qa,mo:this.fg}};q.pb=function(f){this.Hh=f.fit;this.bj=f.wt;this.Jj=f.fot;this.tb=f.s;this.jd.reset();this.jd.qa=f.st;this.fg=f.mo};q.Ha=function(){this.jd.add(this.b.Ze(this.j));0===this.tb&&(this.j.opacity=this.jd.qa/this.Hh*this.fg,this.b.Y=!0,this.j.opacity>=this.fg&&(this.j.opacity=this.fg,this.tb=1,this.jd.reset(),this.b.trigger(vc.prototype.m.qt,this.j)));1===this.tb&&this.jd.qa>=this.bj&&(this.tb=2,this.jd.reset(),
this.b.trigger(vc.prototype.m.It,this.j));2===this.tb&&0!==this.Jj&&(this.j.opacity=this.fg-this.jd.qa/this.Jj*this.fg,this.b.Y=!0,0>this.j.opacity&&(this.j.opacity=0,this.tb=3,this.jd.reset(),this.b.trigger(vc.prototype.m.tt,this.j),1===this.Ou&&this.b.Le(this.j)))};q.bv=function(){this.tb=0;this.jd.reset();0===this.Hh?(this.tb=1,0===this.bj&&(this.tb=2)):(this.j.opacity=0,this.b.Y=!0)};h.prototype.tt=function(){return!0};h.prototype.qt=function(){return!0};h.prototype.It=function(){return!0};f.m=
new h;l.prototype.Nt=function(){this.bv()};f.F=new l;f.J=new function(){}})();function wc(h){this.b=h}
(function(){function h(){}function l(){}var f=wc.prototype;f.Z=function(f){this.behavior=f;this.b=f.b};f.Z.prototype.M=function(){};f.S=function(f,a){this.type=f;this.behavior=f.behavior;this.j=a;this.b=f.b};var q=f.S.prototype;q.M=function(){this.Yd=this.Td=this.tb=this.Fk=this.Hk=0};q.ab=function(){return{ontime:this.Hk,offtime:this.Fk,stage:this.tb,stagetimeleft:this.Td,timeleft:this.Yd}};q.pb=function(f){this.Hk=f.ontime;this.Fk=f.offtime;this.tb=f.stage;this.Td=f.stagetimeleft;this.Yd=f.timeleft};
q.Ha=function(){if(!(0>=this.Yd)){var f=this.b.Ze(this.j);this.Yd-=f;0>=this.Yd?(this.Yd=0,this.j.visible=!0,this.b.Y=!0,this.b.trigger(wc.prototype.m.xt,this.j)):(this.Td-=f,0>=this.Td&&(0===this.tb?(this.j.visible=!1,this.tb=1,this.Td+=this.Fk):(this.j.visible=!0,this.tb=0,this.Td+=this.Hk),this.b.Y=!0))}};h.prototype.Xs=function(){return 0<this.Yd};h.prototype.xt=function(){return!0};f.m=new h;l.prototype.Qs=function(f,a,c){this.Hk=f;this.Fk=a;this.tb=1;this.Td=a;this.Yd=c;this.j.visible=!1;this.b.Y=
!0};l.prototype.ju=function(){this.Yd=0;this.j.visible=!0;this.b.Y=!0};f.F=new l;f.J=new function(){}})();function yc(h){this.b=h}
(function(){function h(){}function l(){}function f(){}var q=yc.prototype;q.Z=function(a){this.behavior=a;this.b=a.b};q.Z.prototype.M=function(){};q.S=function(a,c){this.type=a;this.behavior=a.behavior;this.j=c;this.b=a.b;this.Qi=this.Ce=this.Be=this.Rf=this.yh=this.Fh=this.Rg=this.bi=this.ye=this.qe=!1;this.Yb=null;this.kn=-1;this.Yf=this.Xf=0;this.Pj=!1;this.Xe=this.od=0;this.Nj=!0;this.q=this.n=0};var t=q.S.prototype;t.Bo=function(){this.Ta=Math.cos(this.Fg);this.Ua=Math.sin(this.Fg);this.kg=Math.cos(this.Fg-
Math.PI/2);this.lg=Math.sin(this.Fg-Math.PI/2);this.Ta=hb(this.Ta);this.Ua=hb(this.Ua);this.kg=hb(this.kg);this.lg=hb(this.lg);this.Sj=this.Vb;0>this.Vb&&(this.Ta*=-1,this.Ua*=-1,this.Vb=Math.abs(this.Vb))};t.M=function(){this.qb=this.C[0];this.Ea=this.C[1];this.Mb=this.C[2];this.ai=this.C[3];this.Sj=this.Vb=this.C[4];this.Ak=this.C[5];this.km=0!==this.C[6];this.Ym=this.C[7]/1E3;this.gm=1===this.C[8];this.enabled=0!==this.C[9];this.ph=!1;this.qh=this.b.Wd(this.j);this.ln=-1;this.ng=0;this.Fg=U(90);
this.Bo();var a=this;this.gm&&!this.b.Xa&&(jQuery(document).keydown(function(c){a.wi(c)}),jQuery(document).keyup(function(c){a.xi(c)}));this.kc||(this.Pq=function(c){a.Bn(c)});this.b.Fl(this.Pq);this.j.fa.isPlatformBehavior=!0};t.ab=function(){return{ii:this.Rf,lfx:this.Xf,lfy:this.Yf,lfo:this.Yb?this.Yb.uid:-1,am:this.od,en:this.enabled,fall:this.Xe,ft:this.Nj,dx:this.n,dy:this.q,ms:this.qb,acc:this.Ea,dec:this.Mb,js:this.ai,g:this.Vb,g1:this.Sj,mf:this.Ak,wof:this.ph,woj:this.qh?this.qh.uid:-1,
ga:this.Fg,edj:this.km,cdj:this.yh,dj:this.Fh,sus:this.Ym}};t.pb=function(a){this.Rf=a.ii;this.Xf=a.lfx;this.Yf=a.lfy;this.kn=a.lfo;this.od=a.am;this.enabled=a.en;this.Xe=a.fall;this.Nj=a.ft;this.n=a.dx;this.q=a.dy;this.qb=a.ms;this.Ea=a.acc;this.Mb=a.dec;this.ai=a.js;this.Vb=a.g;this.Sj=a.g1;this.Ak=a.mf;this.ph=a.wof;this.ln=a.woj;this.Fg=a.ga;this.km=a.edj;this.yh=a.cdj;this.Fh=a.dj;this.Ym=a.sus;this.Qi=this.Ce=this.Be=this.Rg=this.bi=this.ye=this.qe=!1;this.ng=0;this.Bo()};t.Gd=function(){-1===
this.kn?this.Yb=null:this.Yb=this.b.Gg(this.kn);-1===this.ln?this.qh=null:this.qh=this.b.Gg(this.ln)};t.Bn=function(a){this.Yb==a&&(this.Yb=null)};t.ig=function(){this.Yb=null;this.b.Hx(this.Pq)};t.wi=function(a){switch(a.which){case 38:a.preventDefault();this.bi=!0;break;case 37:a.preventDefault();this.qe=!0;break;case 39:a.preventDefault(),this.ye=!0}};t.xi=function(a){switch(a.which){case 38:a.preventDefault();this.Rg=this.bi=!1;break;case 37:a.preventDefault();this.qe=!1;break;case 39:a.preventDefault(),
this.ye=!1}};t.Ll=function(){return 0>this.Vb?-1:1};t.fq=function(){var a=null,c=null,b,e;b=this.j.x;e=this.j.y;this.j.x+=this.Ta;this.j.y+=this.Ua;this.j.D();if(this.Yb&&this.b.Pb(this.j,this.Yb))return this.j.x=b,this.j.y=e,this.j.D(),this.Yb;(a=this.b.Sa(this.j))||0!==this.Xe||(c=this.b.Wd(this.j,!0));this.j.x=b;this.j.y=e;this.j.D();if(a){if(this.b.Pb(this.j,a))return null;this.Pj=!1;return a}if(c&&c.length){e=a=0;for(b=c.length;a<b;a++)c[e]=c[a],this.b.Pb(this.j,c[a])||e++;if(1<=e)return this.Pj=
!0,c[0]}return null};t.Ha=function(){};t.nr=function(){var a=this.b.Ze(this.j),c,b,e,f,g,h,l,p,q;this.bi||this.Qi||(this.Rg=!1);var t=this.qe||this.Be;e=this.ye||this.Ce;var u=(f=this.bi||this.Qi)&&!this.Rg;this.Qi=this.Ce=this.Be=!1;if(this.enabled){this.Rf&&(u=f=e=t=!1);f||(this.ng=0);p=this.Yb;q=!1;this.Nj&&((this.b.Sa(this.j)||this.b.Wd(this.j))&&this.b.Rc(this.j,-this.Ta,-this.Ua,4,!0),this.Nj=!1);!p||0!==this.q||p.y===this.Yf&&p.x===this.Xf||(c=p.x-this.Xf,b=p.y-this.Yf,this.j.x+=c,this.j.y+=
b,this.j.D(),this.Xf=p.x,this.Yf=p.y,q=!0,this.b.Sa(this.j)&&this.b.Rc(this.j,-c,-b,2.5*Math.sqrt(c*c+b*b)));var n=this.fq();if(b=this.b.Sa(this.j))if(this.j.fa.inputPredicted)this.b.Rc(this.j,-this.Ta,-this.Ua,10,!1);else if(this.b.Ln(this.j,Math.max(this.j.width,this.j.height)/2))this.b.Qd(this.j,b);else return;n?(this.yh=this.Fh=!1,0<this.q&&(this.ph||(this.b.Kn(this.j,-this.Ta,-this.Ua,n),this.ph=!0),this.q=0),p!=n)?(this.Yb=n,this.Xf=n.x,this.Yf=n.y,this.b.Qd(this.j,n)):q&&(b=this.b.Sa(this.j))&&
(this.b.Qd(this.j,b),0!==c&&(0<c?this.b.Rc(this.j,-this.kg,-this.lg):this.b.Rc(this.j,this.kg,this.lg)),this.b.Rc(this.j,-this.Ta,-this.Ua)):f||(this.yh=!0);if(n&&u||!n&&this.km&&f&&this.yh&&!this.Fh)p=this.j.x,q=this.j.y,this.j.x-=this.Ta,this.j.y-=this.Ua,this.j.D(),this.b.Sa(this.j)?u=!1:(this.ng=this.Ym,this.b.trigger(yc.prototype.m.Xo,this.j),this.od=2,this.q=-this.ai,u=!0,n?this.Rg=!0:this.Fh=!0),this.j.x=p,this.j.y=q,this.j.D();n||(f&&0<this.ng?(this.q=-this.ai,this.ng-=a):(this.Yb=null,this.q+=
this.Vb*a,this.q>this.Ak&&(this.q=this.Ak)),u&&(this.Rg=!0));this.ph=!!n;t==e&&(0>this.n?(this.n+=this.Mb*a,0<this.n&&(this.n=0)):0<this.n&&(this.n-=this.Mb*a,0>this.n&&(this.n=0)));t&&!e&&(this.n=0<this.n?this.n-(this.Ea+this.Mb)*a:this.n-this.Ea*a);e&&!t&&(this.n=0>this.n?this.n+(this.Ea+this.Mb)*a:this.n+this.Ea*a);this.n>this.qb?this.n=this.qb:this.n<-this.qb&&(this.n=-this.qb);t=!1;0!==this.n&&(p=this.j.x,q=this.j.y,c=this.n*a*this.kg,b=this.n*a*this.lg,this.j.x+=this.kg*(1<this.n?1:-1)-this.Ta,
this.j.y+=this.lg*(1<this.n?1:-1)-this.Ua,this.j.D(),f=!1,g=this.b.Sa(this.j),this.j.x=p+c,this.j.y=q+b,this.j.D(),e=this.b.Sa(this.j),!e&&n&&(e=this.b.Wd(this.j))&&(this.j.x=p,this.j.y=q,this.j.D(),this.b.Pb(this.j,e)?(e=null,f=!1):f=!0,this.j.x=p+c,this.j.y=q+b,this.j.D()),e?(c=Math.abs(this.n*a)+2,g||!this.b.Rc(this.j,-this.Ta,-this.Ua,c,f,e))?(this.b.Qd(this.j,e),c=Math.max(Math.abs(this.n*a*2.5),30),this.b.Rc(this.j,this.kg*(0>this.n?1:-1),this.lg*(0>this.n?1:-1),c,!1)?!n||f||this.Pj||(p=this.j.x,
q=this.j.y,this.j.x+=this.Ta,this.j.y+=this.Ua,this.b.Sa(this.j)?this.b.Rc(this.j,-this.Ta,-this.Ua,3,!1)||(this.j.x=p,this.j.y=q,this.j.D()):(this.j.x=p,this.j.y=q,this.j.D())):(this.j.x=p,this.j.y=q,this.j.D()),f||(this.n=0)):!g&&!u&&Math.abs(this.q)<Math.abs(this.ai/4)&&(this.q=0,n||(t=!0)):(p=this.fq(),n&&!p?(b=Math.ceil(Math.abs(this.n*a))+2,p=this.j.x,q=this.j.y,this.j.x+=this.Ta*b,this.j.y+=this.Ua*b,this.j.D(),this.b.Sa(this.j)||this.b.Wd(this.j)?this.b.Rc(this.j,-this.Ta,-this.Ua,b+2,!0):
(this.j.x=p,this.j.y=q,this.j.D())):p&&0===this.q&&this.b.Kn(this.j,-this.Ta,-this.Ua,p)));if(0!==this.q){p=this.j.x;q=this.j.y;this.j.x+=this.q*a*this.Ta;this.j.y+=this.q*a*this.Ua;c=this.j.x;e=this.j.y;this.j.D();b=this.b.Sa(this.j);f=!1;if(!b&&0<this.q&&!n){if((f=0<this.Xe?null:this.b.Wd(this.j,!0))&&f.length){if(this.qh){this.j.x=p;this.j.y=q;this.j.D();l=g=0;for(h=f.length;g<h;g++)f[l]=f[g],this.b.Pb(this.j,f[g])||l++;f.length=l;this.j.x=c;this.j.y=e;this.j.D()}1<=f.length&&(b=f[0])}f=!!b}b&&
(this.b.Qd(this.j,b),this.ng=0,c=f?Math.abs(this.q*a*2.5+10):Math.max(Math.abs(this.q*a*2.5+10),30),this.b.Rc(this.j,this.Ta*(0>this.q?1:-1),this.Ua*(0>this.q?1:-1),c,f,b)?(this.Yb=b,this.Xf=b.x,this.Yf=b.y,(this.Pj=f)&&(t=!0),this.q=0):(this.j.x=p,this.j.y=q,this.j.D(),this.ph=!0,f||(this.q=0)))}3!==this.od&&0<this.q&&!n&&(this.b.trigger(yc.prototype.m.ut,this.j),this.od=3);if(n||t)3===this.od||t||u&&0===this.q?(this.b.trigger(yc.prototype.m.Ct,this.j),this.od=0===this.n&&0===this.q?0:1):(0!==this.od&&
0===this.n&&0===this.q&&(this.b.trigger(yc.prototype.m.Ht,this.j),this.od=0),1===this.od||0===this.n&&0===this.q||u||(this.b.trigger(yc.prototype.m.Ft,this.j),this.od=1));0<this.Xe&&this.Xe--;this.qh=this.b.Wd(this.j)}};h.prototype.Uo=function(){return 0!==this.n||0!==this.q};h.prototype.xl=function(a,c){var b=Math.sqrt(this.n*this.n+this.q*this.q);return $b(b,a,c)};h.prototype.ct=function(){if(0!==this.q)return!1;var a=null,c=null,b,e;b=this.j.x;e=this.j.y;this.j.x+=this.Ta;this.j.y+=this.Ua;this.j.D();
(a=this.b.Sa(this.j))||0!==this.Xe||(c=this.b.Wd(this.j,!0));this.j.x=b;this.j.y=e;this.j.D();if(a)return!this.b.Pb(this.j,a);if(c&&c.length){e=a=0;for(b=c.length;a<b;a++)c[e]=c[a],this.b.Pb(this.j,c[a])||e++;if(1<=e)return!0}return!1};h.prototype.Zs=function(){return 0>this.q};h.prototype.Ws=function(){return 0<this.q};h.prototype.Xo=function(){return!0};h.prototype.ut=function(){return!0};h.prototype.Ht=function(){return!0};h.prototype.Ft=function(){return!0};h.prototype.Ct=function(){return!0};
q.m=new h;l.prototype.cp=function(a){this.qb=a;0>this.qb&&(this.qb=0)};l.prototype.Cl=function(a){this.Ea=a;0>this.Ea&&(this.Ea=0)};l.prototype.bp=function(a){this.Sj!==a&&(this.Vb=a,this.Bo(),this.b.Sa(this.j)&&(this.b.Rc(this.j,this.Ta,this.Ua,10),this.j.x+=2*this.Ta,this.j.y+=2*this.Ua,this.j.D()),this.Yb=null)};l.prototype.Dl=function(a){switch(a){case 0:this.Be=!0;break;case 1:this.Ce=!0;break;case 2:this.Qi=!0}};l.prototype.fp=function(a){this.q=a};l.prototype.Ps=function(){var a=this.j.x,c=
this.j.y;this.j.x+=this.Ta;this.j.y+=this.Ua;this.j.D();var b=this.b.Wd(this.j,!1);this.j.x=a;this.j.y=c;this.j.D();b&&(this.Xe=3,this.Yb=null)};q.F=new l;f.prototype.El=function(a){a.K(Math.sqrt(this.n*this.n+this.q*this.q))};q.J=new f})();function zc(h){this.b=h}
(function(){var h=zc.prototype;h.Z=function(a){this.behavior=a;this.b=a.b};h.Z.prototype.M=function(){};h.S=function(a,c){this.type=a;this.behavior=a.behavior;this.j=c;this.b=a.b;this.lb=0};var l=h.S.prototype,f=2*Math.PI,q=Math.PI/2,t=3*Math.PI/2;l.M=function(){this.Hb=1===this.C[0];this.si=this.C[1];this.Jo=this.C[2];this.ue=this.C[3];this.ue+=Math.random()*this.C[4];0===this.ue?this.lb=0:(this.lb=this.C[5]/this.ue*f,this.lb+=Math.random()*this.C[6]/this.ue*f);this.jc=this.C[7];this.jc+=Math.random()*
this.C[8];this.Gi=this.Tf=this.na=0;this.init()};l.ab=function(){return{i:this.lb,a:this.Hb,mv:this.si,w:this.Jo,p:this.ue,mag:this.jc,iv:this.na,iv2:this.Tf,r:this.Gi,lkv:this.wc,lkv2:this.ci}};l.pb=function(a){this.lb=a.i;this.Hb=a.a;this.si=a.mv;this.Jo=a.w;this.ue=a.p;this.jc=a.mag;this.na=a.iv;this.Tf=a.iv2||0;this.Gi=a.r;this.wc=a.lkv;this.ci=a.lkv2||0};l.init=function(){switch(this.si){case 0:this.na=this.j.x;break;case 1:this.na=this.j.y;break;case 2:this.na=this.j.width;this.Gi=this.j.height/
this.j.width;break;case 3:this.na=this.j.width;break;case 4:this.na=this.j.height;break;case 5:this.na=this.j.u;this.jc=U(this.jc);break;case 6:this.na=this.j.opacity;break;case 7:this.na=0;break;case 8:this.na=this.j.x,this.Tf=this.j.y}this.wc=this.na;this.ci=this.Tf};l.Je=function(a){a=a%f;switch(this.Jo){case 0:return Math.sin(a);case 1:return a<=q?a/q:a<=t?1-2*(a-q)/Math.PI:(a-t)/q-1;case 2:return 2*a/f-1;case 3:return-2*a/f+1;case 4:return a<Math.PI?-1:1}return 0};l.Ha=function(){var a=this.b.Ze(this.j);
if(this.Hb&&0!==a){0===this.ue?this.lb=0:(this.lb+=a/this.ue*f,this.lb=this.lb%f);switch(this.si){case 0:this.j.x!==this.wc&&(this.na+=this.j.x-this.wc);this.j.x=this.na+this.Je(this.lb)*this.jc;this.wc=this.j.x;break;case 1:this.j.y!==this.wc&&(this.na+=this.j.y-this.wc);this.j.y=this.na+this.Je(this.lb)*this.jc;this.wc=this.j.y;break;case 2:this.j.width=this.na+this.Je(this.lb)*this.jc;this.j.height=this.j.width*this.Gi;break;case 3:this.j.width=this.na+this.Je(this.lb)*this.jc;break;case 4:this.j.height=
this.na+this.Je(this.lb)*this.jc;break;case 5:this.j.u!==this.wc&&(this.na=Ga(this.na+(this.j.u-this.wc)));this.j.u=Ga(this.na+this.Je(this.lb)*this.jc);this.wc=this.j.u;break;case 6:this.j.opacity=this.na+this.Je(this.lb)*this.jc/100;0>this.j.opacity?this.j.opacity=0:1<this.j.opacity&&(this.j.opacity=1);break;case 8:this.j.x!==this.wc&&(this.na+=this.j.x-this.wc),this.j.y!==this.ci&&(this.Tf+=this.j.y-this.ci),this.j.x=this.na+Math.cos(this.j.u)*this.Je(this.lb)*this.jc,this.j.y=this.Tf+Math.sin(this.j.u)*
this.Je(this.lb)*this.jc,this.wc=this.j.x,this.ci=this.j.y}this.j.D()}};l.Zq=function(a,c){switch(this.si){case 2:this.na*=c.width/a.width;this.Gi=c.height/c.width;break;case 3:this.na*=c.width/a.width;break;case 4:this.na*=c.height/a.height}};h.m=new function(){};h.F=new function(){};h.J=new function(){}})();function kc(h){this.b=h}
(function(){var h=kc.prototype;h.Z=function(f){this.behavior=f;this.b=f.b};h.Z.prototype.M=function(){};h.S=function(f,h){this.type=f;this.behavior=f.behavior;this.j=h;this.b=f.b};var l=h.S.prototype;l.M=function(){this.j.fa.jumpthruEnabled=0!==this.C[0]};l.Ha=function(){};h.m=new function(){};h.F=new function(){}})();function Ac(h){this.b=h;this.io=this.$k=this.Pi=this.ho=0}
(function(){var h=Ac.prototype;h.Z=function(f){this.behavior=f;this.b=f.b};h.Z.prototype.M=function(){};h.S=function(f,h){this.type=f;this.behavior=f.behavior;this.j=h;this.b=f.b};var l=h.S.prototype;l.M=function(){this.enabled=0!==this.C[0]};l.ab=function(){return{smg:this.behavior.ho,ss:this.behavior.Pi,se:this.behavior.$k,smd:this.behavior.io}};l.pb=function(f){this.behavior.ho=f.smg;this.behavior.Pi=f.ss;this.behavior.$k=f.se;this.behavior.io=f.smd};l.Ha=function(){};l.qo=function(){if(this.enabled){var f=
this.behavior.Bk.He(),h=0,l=0,a,c,b,e=0;a=0;for(c=f.length;a<c;a++){a:{b=f[a];for(var w=void 0,g=void 0,m=void 0,w=0,g=b.V.length;w<g;++w)if(m=b.V[w],m.behavior instanceof Ac){b=m;break a}b=null}b&&b.enabled&&(h+=f[a].x,l+=f[a].y,++e)}f=this.j.A.ob;c=this.b.Pc.qa;b=a=0;c>=this.behavior.Pi&&c<this.behavior.$k&&(a=this.behavior.ho*Math.min(this.b.qg,1),0===this.behavior.io&&(a*=1-(c-this.behavior.Pi)/(this.behavior.$k-this.behavior.Pi)),c=Math.random()*Math.PI*2,b=Math.random()*a,a=Math.cos(c)*b,b*=
Math.sin(c));f.Yn(h/e+a);f.Zn(l/e+b)}};h.F=new function(){}})();function jc(h){this.b=h}(function(){var h=jc.prototype;h.Z=function(f){this.behavior=f;this.b=f.b};h.Z.prototype.M=function(){};h.S=function(f,h){this.type=f;this.behavior=f.behavior;this.j=h;this.b=f.b};var l=h.S.prototype;l.M=function(){this.j.fa.solidEnabled=0!==this.C[0]};l.Ha=function(){};h.m=new function(){};h.F=new function(){}})();
function ic(){return[mc,lc,nc,oc,Y,pc,qc,rc,yc,tc,vc,zc,sc,Ac,uc,kc,jc,wc,Y.prototype.m.dt,W.prototype.m.nu,mc.prototype.F.gp,mc.prototype.F.Mt,W.prototype.F.du,W.prototype.F.Ls,W.prototype.J.Vw,W.prototype.J.Uw,Y.prototype.F.Vt,W.prototype.m.Hs,Y.prototype.F.Ns,W.prototype.J.Sx,W.prototype.J.Tx,pc.prototype.F.dp,pc.prototype.F.Ut,pc.prototype.F.bu,W.prototype.F.ou,W.prototype.F.Wt,W.prototype.F.Ot,W.prototype.m.Yo,Y.prototype.m.Qo,Y.prototype.J.fj,Y.prototype.J.gj,Y.prototype.J.Ss,W.prototype.m.Ys,
W.prototype.m.Os,Y.prototype.F.$t,nc.prototype.m.$s,lc.prototype.F.CallFunction,nc.prototype.m.bt,oc.prototype.m.zl,lc.prototype.m.ej,yc.prototype.F.Dl,yc.prototype.m.Zs,yc.prototype.F.fp,yc.prototype.m.Xo,yc.prototype.F.Ps,yc.prototype.m.Ws,Y.prototype.m.et,yc.prototype.F.bp,Y.prototype.F.Zt,qc.prototype.J.As,Y.prototype.J.pu,qc.prototype.J.Cs,qc.prototype.J.Bs,Y.prototype.F.hu,Y.prototype.F.iu,Y.prototype.F.cu,oc.prototype.J.fj,oc.prototype.J.gj,W.prototype.F.lu,yc.prototype.F.cp,Y.prototype.F.ku,
Y.prototype.J.ee,W.prototype.F.vs,lc.prototype.J.Kt,yc.prototype.F.Cl,wc.prototype.m.Xs,wc.prototype.F.Qs,wc.prototype.F.ju,Y.prototype.F.Xt,yc.prototype.m.ct,yc.prototype.m.Uo,Y.prototype.F.Rt,W.prototype.m.Ro,Y.prototype.m.Is,W.prototype.m.Gs,Y.prototype.J.Ks,qc.prototype.F.dp,Y.prototype.F.au,qc.prototype.F.Yt,Y.prototype.F.gu,W.prototype.J.abs,uc.prototype.F.Dl,Y.prototype.m.Js,qc.prototype.m.Vo,qc.prototype.m.Lt,qc.prototype.J.hp,qc.prototype.m.To,qc.prototype.m.Qo,qc.prototype.J.zs,qc.prototype.J.fj,
W.prototype.J.rx,qc.prototype.J.gj,W.prototype.J.qx,W.prototype.J.ee,mc.prototype.m.gt,W.prototype.m.Rs,Y.prototype.J.hp,Y.prototype.m.Vo,Y.prototype.m.Wo,Y.prototype.m.Ts,W.prototype.J.Qu,tc.prototype.F.ep,Y.prototype.F.Pt,Y.prototype.J.ws,tc.prototype.m.xl,tc.prototype.J.El,Y.prototype.F.eu,Y.prototype.F.Tt,Y.prototype.m.ot,Y.prototype.m.To,Y.prototype.m.ug,tc.prototype.F.Qt,W.prototype.J.u,vc.prototype.F.Nt,Y.prototype.F.St]};
