// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var ba,ca,H,da,fa,L,N,ga,ha,ia,la,na,P,oa,pa,qa,ra,sa,ta,ua,va,wa,xa,Q,ya,Aa,Ba,Ca,Da,Fa,Ga,Ha,Ia,Ja,Ka,Pa,Qa,Ra,S,Sa,Ta,Ua,Va,Wa,Xa,Ya,Za,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,pb,qb,rb,sb,tb,ub,vb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,T,Ob,Pb,Qb,V,Rb,Sb={},Tb={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(e){return e.__proto__}:function(e){return e.constructor.prototype});
(function(){function e(r,a,k,n){this.set(r,a,k,n)}function h(){this.Eb=this.Db=this.Gb=this.Fb=this.Sb=this.Rb=this.Wa=this.Va=0}function b(r,a,k,n){r<a?k<n?(q=r<k?r:k,s=a>n?a:n):(q=r<n?r:n,s=a>k?a:k):k<n?(q=a<k?a:k,s=r>n?r:n):(q=a<n?a:n,s=r>k?r:k)}function g(){this.items=this.Rc=null;this.xf=0;l&&(this.Rc=new Set);this.Wf=[];this.Sd=!0}function m(r){v[A++]=r}function a(){this.ja=this.Ej=this.y=this.lk=0}function c(r){this.Sa=[];this.Fh=this.Hh=this.Ih=this.Gh=0;this.nh(r)}function d(r,a){this.Br=
r;this.Ar=a;this.cells={}}function p(r,a,k){var c;return n.length?(c=n.pop(),c.nt=r,c.x=a,c.y=k,c):new ba(r,a,k)}function f(r,a,k){this.nt=r;this.x=a;this.y=k;this.Vg=new ca}H=function(r){window.console&&window.console.log&&window.console.log(r)};da=function(r){window.console&&window.console.error&&window.console.error(r)};fa=function(r){return"undefined"===typeof r};L=function(r){return"number"===typeof r};N=function(r){return"string"===typeof r};ga=function(r){return 0<r&&0===(r-1&r)};ha=function(r){--r;
for(var a=1;32>a;a<<=1)r|=r>>a;return r+1};ia=function(r){return 0>r?-r:r};la=function(r,a){return r<a?r:a};na=Math.PI;P=function(r){return 0<=r?r|0:(r|0)-1};oa=function(r){var a=r|0;return a===r?a:a+1};pa=function(r,a,k,n,c,d,b,p){var l,f,g,e;r<k?(f=r,l=k):(f=k,l=r);c<b?(e=c,g=b):(e=b,g=c);if(l<e||f>g)return!1;a<n?(f=a,l=n):(f=n,l=a);d<p?(e=d,g=p):(e=p,g=d);if(l<e||f>g)return!1;l=c-r+b-k;f=d-a+p-n;r=k-r;a=n-a;c=b-c;d=p-d;p=ia(a*c-d*r);return ia(c*f-d*l)>p?!1:ia(r*f-a*l)<=p};e.prototype.set=function(r,
a,k,n){this.left=r;this.top=a;this.right=k;this.bottom=n};e.prototype.Gr=function(r){this.left=r.left;this.top=r.top;this.right=r.right;this.bottom=r.bottom};e.prototype.width=function(){return this.right-this.left};e.prototype.height=function(){return this.bottom-this.top};e.prototype.offset=function(r,a){this.left+=r;this.top+=a;this.right+=r;this.bottom+=a;return this};e.prototype.normalize=function(){var r=0;this.left>this.right&&(r=this.left,this.left=this.right,this.right=r);this.top>this.bottom&&
(r=this.top,this.top=this.bottom,this.bottom=r)};e.prototype.zt=function(r){return!(r.right<this.left||r.bottom<this.top||r.left>this.right||r.top>this.bottom)};e.prototype.At=function(r,a,k){return!(r.right+a<this.left||r.bottom+k<this.top||r.left+a>this.right||r.top+k>this.bottom)};e.prototype.ub=function(r,a){return r>=this.left&&r<=this.right&&a>=this.top&&a<=this.bottom};e.prototype.ds=function(r){return this.left===r.left&&this.top===r.top&&this.right===r.right&&this.bottom===r.bottom};qa=e;
h.prototype.Nf=function(r){this.Va=r.left;this.Wa=r.top;this.Rb=r.right;this.Sb=r.top;this.Fb=r.right;this.Gb=r.bottom;this.Db=r.left;this.Eb=r.bottom};h.prototype.tp=function(r,a){if(0===a)this.Nf(r);else{var k=Math.sin(a),n=Math.cos(a),c=r.left*k,d=r.top*k,b=r.right*k,k=r.bottom*k,p=r.left*n,l=r.top*n,f=r.right*n,n=r.bottom*n;this.Va=p-d;this.Wa=l+c;this.Rb=f-d;this.Sb=l+b;this.Fb=f-k;this.Gb=n+b;this.Db=p-k;this.Eb=n+c}};h.prototype.offset=function(r,a){this.Va+=r;this.Wa+=a;this.Rb+=r;this.Sb+=
a;this.Fb+=r;this.Gb+=a;this.Db+=r;this.Eb+=a;return this};var q=0,s=0;h.prototype.kn=function(r){b(this.Va,this.Rb,this.Fb,this.Db);r.left=q;r.right=s;b(this.Wa,this.Sb,this.Gb,this.Eb);r.top=q;r.bottom=s};h.prototype.ub=function(r,a){var k=this.Rb-this.Va,n=this.Sb-this.Wa,c=this.Fb-this.Va,d=this.Gb-this.Wa,b=r-this.Va,p=a-this.Wa,l=k*k+n*n,f=k*c+n*d,n=k*b+n*p,g=c*c+d*d,e=c*b+d*p,m=1/(l*g-f*f),k=(g*n-f*e)*m,l=(l*e-f*n)*m;if(0<=k&&0<l&&1>k+l)return!0;k=this.Db-this.Va;n=this.Eb-this.Wa;l=k*k+n*
n;f=k*c+n*d;n=k*b+n*p;m=1/(l*g-f*f);k=(g*n-f*e)*m;l=(l*e-f*n)*m;return 0<=k&&0<l&&1>k+l};h.prototype.Qd=function(r,a){if(a)switch(r){case 0:return this.Va;case 1:return this.Rb;case 2:return this.Fb;case 3:return this.Db;case 4:return this.Va;default:return this.Va}else switch(r){case 0:return this.Wa;case 1:return this.Sb;case 2:return this.Gb;case 3:return this.Eb;case 4:return this.Wa;default:return this.Wa}};h.prototype.Io=function(){return(this.Va+this.Rb+this.Fb+this.Db)/4};h.prototype.Jo=function(){return(this.Wa+
this.Sb+this.Gb+this.Eb)/4};h.prototype.Rn=function(r){var a=r.Io(),k=r.Jo();if(this.ub(a,k))return!0;a=this.Io();k=this.Jo();if(r.ub(a,k))return!0;var n,c,d,b,p,l,f,g;for(f=0;4>f;f++)for(g=0;4>g;g++)if(a=this.Qd(f,!0),k=this.Qd(f,!1),n=this.Qd(f+1,!0),c=this.Qd(f+1,!1),d=r.Qd(g,!0),b=r.Qd(g,!1),p=r.Qd(g+1,!0),l=r.Qd(g+1,!1),pa(a,k,n,c,d,b,p,l))return!0;return!1};ra=h;sa=function(a,k){for(var n in k)k.hasOwnProperty(n)&&(a[n]=k[n]);return a};ta=function(a,k){var n,c;k=P(k);if(!(0>k||k>=a.length)){n=
k;for(c=a.length-1;n<c;n++)a[n]=a[n+1];a.length=c}};ua=function(a,k){a.length=k.length;var n,c;n=0;for(c=k.length;n<c;n++)a[n]=k[n]};va=function(a,k){a.push.apply(a,k)};wa=function(a,k){var n,c;n=0;for(c=a.length;n<c;++n)if(a[n]===k)return n;return-1};xa=function(a,k){var n=wa(a,k);-1!==n&&ta(a,n)};Q=function(a){return a/(180/na)};ya=function(a){return 180/na*a};Aa=function(a){a%=360;0>a&&(a+=360);return a};Ba=function(a){a%=2*na;0>a&&(a+=2*na);return a};Ca=function(a){return Aa(ya(a))};Da=function(a){return Ba(Q(a))};
Fa=function(a,k,n,c){return Math.atan2(c-k,n-a)};Ga=function(a,k){if(a===k)return 0;var n=Math.sin(a),c=Math.cos(a),d=Math.sin(k),b=Math.cos(k),n=n*d+c*b;return 1<=n?0:-1>=n?na:Math.acos(n)};Ha=function(a,k,n){var c=Math.sin(a),d=Math.cos(a),b=Math.sin(k),p=Math.cos(k);return Math.acos(c*b+d*p)>n?0<d*b-c*p?Ba(a+n):Ba(a-n):Ba(k)};Ia=function(a,k){var n=Math.sin(a),c=Math.cos(a),d=Math.sin(k),b=Math.cos(k);return 0>=c*d-n*b};Ja=function(a,k,n,c,d,b){if(0===n)return b?a:k;var p=Math.sin(n);n=Math.cos(n);
a-=c;k-=d;var l=a*p;a=a*n-k*p;k=k*n+l;return b?a+c:k+d};Ka=function(a,k,n,c){a=n-a;k=c-k;return Math.sqrt(a*a+k*k)};Pa=function(a,k){return!a!==!k};Qa=function(a){for(var k in a)if(a.hasOwnProperty(k))return!0;return!1};Ra=function(a){for(var k in a)a.hasOwnProperty(k)&&delete a[k]};var z=+new Date;S=function(){if("undefined"!==typeof window.performance){var a=window.performance;if("undefined"!==typeof a.now)return a.now();if("undefined"!==typeof a.webkitNow)return a.webkitNow();if("undefined"!==
typeof a.mozNow)return a.mozNow();if("undefined"!==typeof a.msNow)return a.msNow()}return Date.now()-z};var y=!1,w=y=!1,u=!1;"undefined"!==typeof window&&(y=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),y=!y&&/safari/i.test(navigator.userAgent),w=/(iphone|ipod|ipad)/i.test(navigator.userAgent),u=window.c2ejecta);var l=!y&&!u&&!w&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;g.prototype.contains=function(a){return this.qf()?!1:l?this.Rc.has(a):this.items&&
this.items.hasOwnProperty(a)};g.prototype.add=function(a){if(l)this.Rc.has(a)||(this.Rc.add(a),this.Sd=!1);else{var k=a.toString(),n=this.items;n?n.hasOwnProperty(k)||(n[k]=a,this.xf++,this.Sd=!1):(this.items={},this.items[k]=a,this.xf=1,this.Sd=!1)}};g.prototype.remove=function(a){if(!this.qf())if(l)this.Rc.has(a)&&(this.Rc["delete"](a),this.Sd=!1);else if(this.items){a=a.toString();var k=this.items;k.hasOwnProperty(a)&&(delete k[a],this.xf--,this.Sd=!1)}};g.prototype.clear=function(){this.qf()||
(l?this.Rc.clear():(this.items=null,this.xf=0),this.Wf.length=0,this.Sd=!0)};g.prototype.qf=function(){return 0===this.count()};g.prototype.count=function(){return l?this.Rc.size:this.xf};var v=null,A=0;g.prototype.Nu=function(){if(!this.Sd){if(l)this.Wf.length=this.Rc.size,v=this.Wf,A=0,this.Rc.forEach(m),v=null,A=0;else{var a=this.Wf;a.length=this.xf;var k,n=0,c=this.items;if(c)for(k in c)c.hasOwnProperty(k)&&(a[n++]=c[k])}this.Sd=!0}};g.prototype.Gc=function(){this.Nu();return this.Wf};ca=g;new ca;
Ua=function(a,k){l?Sa(a,k.Rc):Ta(a,k.Gc())};Sa=function(a,k){var n,c,d,b;c=n=0;for(d=a.length;n<d;++n)b=a[n],k.has(b)||(a[c++]=b);a.length=c};Ta=function(a,k){var n,c,d,b;c=n=0;for(d=a.length;n<d;++n)b=a[n],-1===wa(k,b)&&(a[c++]=b);a.length=c};a.prototype.add=function(a){this.y=a-this.lk;this.Ej=this.ja+this.y;this.lk=this.Ej-this.ja-this.y;this.ja=this.Ej};a.prototype.reset=function(){this.ja=this.Ej=this.y=this.lk=0};Va=a;Wa=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};c.prototype.nh=
function(a){this.ip=a;this.Pc=a.length/2;this.Sa.length=a.length;this.Mh=this.Nh=-1;this.nn=0};c.prototype.tf=function(){return!this.ip.length};c.prototype.za=function(){for(var a=this.Sa,k=a[0],n=k,c=a[1],d=c,b,p,l=1,f=this.Pc;l<f;++l)p=2*l,b=a[p],p=a[p+1],b<k&&(k=b),b>n&&(n=b),p<c&&(c=p),p>d&&(d=p);this.Gh=k;this.Hh=n;this.Ih=c;this.Fh=d};c.prototype.Nf=function(a,k,n){this.Sa.length=8;this.Pc=4;var c=this.Sa;c[0]=a.left-k;c[1]=a.top-n;c[2]=a.right-k;c[3]=a.top-n;c[4]=a.right-k;c[5]=a.bottom-n;
c[6]=a.left-k;c[7]=a.bottom-n;this.Nh=a.right-a.left;this.Mh=a.bottom-a.top;this.za()};c.prototype.Mf=function(a,k,n,c,d){this.Sa.length=8;this.Pc=4;var b=this.Sa;b[0]=a.Va-k;b[1]=a.Wa-n;b[2]=a.Rb-k;b[3]=a.Sb-n;b[4]=a.Fb-k;b[5]=a.Gb-n;b[6]=a.Db-k;b[7]=a.Eb-n;this.Nh=c;this.Mh=d;this.za()};c.prototype.sp=function(a){this.Pc=a.Pc;ua(this.Sa,a.Sa);this.Gh=a.Gh;this.Ih-a.Ih;this.Hh=a.Hh;this.Fh=a.Fh};c.prototype.df=function(a,k,n){if(this.Nh!==a||this.Mh!==k||this.nn!==n){this.Nh=a;this.Mh=k;this.nn=
n;var c,d,b,p,l,f=0,g=1,e=this.ip,m=this.Sa;0!==n&&(f=Math.sin(n),g=Math.cos(n));n=0;for(b=this.Pc;n<b;n++)c=2*n,d=c+1,p=e[c]*a,l=e[d]*k,m[c]=p*g-l*f,m[d]=l*g+p*f;this.za()}};c.prototype.ub=function(a,k){var n=this.Sa;if(a===n[0]&&k===n[1])return!0;var c,d,b,p=this.Pc,l=this.Gh-110,f=this.Ih-101,g=this.Hh+131,e=this.Fh+120,m,v,h=0,q=0;for(c=0;c<p;c++)d=2*c,b=(c+1)%p*2,m=n[d],d=n[d+1],v=n[b],b=n[b+1],pa(l,f,a,k,m,d,v,b)&&h++,pa(g,e,a,k,m,d,v,b)&&q++;return 1===h%2||1===q%2};c.prototype.tg=function(a,
k,n){var c=a.Sa,d=this.Sa;if(this.ub(c[0]+k,c[1]+n)||a.ub(d[0]-k,d[1]-n))return!0;var b,p,l,f,g,e,m,v,h,q,y,s;b=0;for(f=this.Pc;b<f;b++)for(p=2*b,l=(b+1)%f*2,v=d[p],p=d[p+1],h=d[l],q=d[l+1],l=0,m=a.Pc;l<m;l++)if(g=2*l,e=(l+1)%m*2,y=c[g]+k,g=c[g+1]+n,s=c[e]+k,e=c[e+1]+n,pa(v,p,h,q,y,g,s,e))return!0;return!1};Xa=c;d.prototype.Nk=function(a,k,n){var c;c=this.cells[a];return c?(c=c[k])?c:n?(c=p(this,a,k),this.cells[a][k]=c):null:n?(c=p(this,a,k),this.cells[a]={},this.cells[a][k]=c):null};d.prototype.Bh=
function(a){return P(a/this.Br)};d.prototype.Ch=function(a){return P(a/this.Ar)};d.prototype.update=function(a,k,c){var d,b,p,l,f;if(k)for(d=k.left,b=k.right;d<=b;++d)for(p=k.top,l=k.bottom;p<=l;++p)if(!c||!c.ub(d,p))if(f=this.Nk(d,p,!1))f.remove(a),f.qf()&&(f.Vg.clear(),1E3>n.length&&n.push(f),this.cells[d][p]=null);if(c)for(d=c.left,b=c.right;d<=b;++d)for(p=c.top,l=c.bottom;p<=l;++p)k&&k.ub(d,p)||this.Nk(d,p,!0).yt(a)};d.prototype.kp=function(a,k){var n,c,d,b,p,l;n=this.Bh(a.left);d=this.Ch(a.top);
c=this.Bh(a.right);for(p=this.Ch(a.bottom);n<=c;++n)for(b=d;b<=p;++b)(l=this.Nk(n,b,!1))&&l.dump(k)};Ya=d;var n=[];f.prototype.qf=function(){return this.Vg.qf()};f.prototype.yt=function(a){this.Vg.add(a)};f.prototype.remove=function(a){this.Vg.remove(a)};f.prototype.dump=function(a){va(a,this.Vg.Gc())};ba=f;var k="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");Za=function(a){return 0>=a||11<=a?"source-over":k[a-1]};$a=
function(a,k,n){if(n)switch(a.sb=n.ONE,a.qb=n.ONE_MINUS_SRC_ALPHA,k){case 1:a.sb=n.ONE;a.qb=n.ONE;break;case 3:a.sb=n.ONE;a.qb=n.ZERO;break;case 4:a.sb=n.ONE_MINUS_DST_ALPHA;a.qb=n.ONE;break;case 5:a.sb=n.DST_ALPHA;a.qb=n.ZERO;break;case 6:a.sb=n.ZERO;a.qb=n.SRC_ALPHA;break;case 7:a.sb=n.ONE_MINUS_DST_ALPHA;a.qb=n.ZERO;break;case 8:a.sb=n.ZERO;a.qb=n.ONE_MINUS_SRC_ALPHA;break;case 9:a.sb=n.DST_ALPHA;a.qb=n.ONE_MINUS_SRC_ALPHA;break;case 10:a.sb=n.ONE_MINUS_DST_ALPHA,a.qb=n.SRC_ALPHA}};ab=function(a){return Math.round(1E6*
a)/1E6};bb=function(a,k){return"string"!==typeof a||"string"!==typeof k||a.length!==k.length?!1:a===k?!0:a.toLowerCase()===k.toLowerCase()};cb=function(a){a=a.target;return!a||a===document||a===window||document&&document.body&&a===document.body||bb(a.tagName,"canvas")?!0:!1}})();var Ub="undefined"!==typeof Float32Array?Float32Array:Array;function Vb(e){var h=new Ub(3);e&&(h[0]=e[0],h[1]=e[1],h[2]=e[2]);return h}
function Wb(e){var h=new Ub(16);e&&(h[0]=e[0],h[1]=e[1],h[2]=e[2],h[3]=e[3],h[4]=e[4],h[5]=e[5],h[6]=e[6],h[7]=e[7],h[8]=e[8],h[9]=e[9],h[10]=e[10],h[11]=e[11],h[12]=e[12],h[13]=e[13],h[14]=e[14],h[15]=e[15]);return h}function Xb(e,h){h[0]=e[0];h[1]=e[1];h[2]=e[2];h[3]=e[3];h[4]=e[4];h[5]=e[5];h[6]=e[6];h[7]=e[7];h[8]=e[8];h[9]=e[9];h[10]=e[10];h[11]=e[11];h[12]=e[12];h[13]=e[13];h[14]=e[14];h[15]=e[15]}
function Yb(e,h){var b=h[0],g=h[1];h=h[2];e[0]*=b;e[1]*=b;e[2]*=b;e[3]*=b;e[4]*=g;e[5]*=g;e[6]*=g;e[7]*=g;e[8]*=h;e[9]*=h;e[10]*=h;e[11]*=h}
function Zb(e,h,b,g){g||(g=Wb());var m,a,c,d,p,f,q,s,z=e[0],y=e[1];e=e[2];a=b[0];c=b[1];m=b[2];b=h[1];f=h[2];z===h[0]&&y===b&&e===f?(e=g,e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1):(b=z-h[0],f=y-h[1],q=e-h[2],s=1/Math.sqrt(b*b+f*f+q*q),b*=s,f*=s,q*=s,h=c*q-m*f,m=m*b-a*q,a=a*f-c*b,(s=Math.sqrt(h*h+m*m+a*a))?(s=1/s,h*=s,m*=s,a*=s):a=m=h=0,c=f*a-q*m,d=q*h-b*a,p=b*m-f*h,(s=Math.sqrt(c*c+d*d+p*p))?(s=1/s,c*=s,d*=s,p*=s):p=d=c=0,
g[0]=h,g[1]=c,g[2]=b,g[3]=0,g[4]=m,g[5]=d,g[6]=f,g[7]=0,g[8]=a,g[9]=p,g[10]=q,g[11]=0,g[12]=-(h*z+m*y+a*e),g[13]=-(c*z+d*y+p*e),g[14]=-(b*z+f*y+q*e),g[15]=1)}
(function(){function e(a){this.rf=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.on=Vb([0,0,100]);this.ro=Vb([0,0,0]);this.Np=Vb([0,1,0]);this.Nm=Vb([1,1,1]);this.tn=!0;this.Bl=Wb();this.Cc=Wb();this.co=Wb();this.tk=Wb();this.n=a;this.Nn()}function h(a,c,d){this.n=a;this.oh=c;this.name=d;this.Bc=a.getAttribLocation(c,"aPos");this.$d=a.getAttribLocation(c,"aTex");this.po=a.getUniformLocation(c,"matP");this.Ni=a.getUniformLocation(c,"matMV");this.Af=
a.getUniformLocation(c,"opacity");this.qo=a.getUniformLocation(c,"samplerFront");this.Ng=a.getUniformLocation(c,"samplerBack");this.Ne=a.getUniformLocation(c,"destStart");this.Me=a.getUniformLocation(c,"destEnd");this.yl=a.getUniformLocation(c,"seconds");this.xl=a.getUniformLocation(c,"pixelWidth");this.wl=a.getUniformLocation(c,"pixelHeight");this.Mg=a.getUniformLocation(c,"layerScale");this.Lg=a.getUniformLocation(c,"layerAngle");this.Pg=a.getUniformLocation(c,"viewOrigin");this.Og=a.getUniformLocation(c,
"scrollPos");this.qt=!!(this.xl||this.wl||this.yl||this.Ng||this.Ne||this.Me||this.Mg||this.Lg||this.Pg||this.Og);this.Ao=this.Bo=-999;this.Pi=1;this.wo=this.vo=0;this.yo=this.uo=this.so=1;this.Do=this.Co=this.Fo=this.Eo=this.xo=0;this.ll=[];this.zo=Wb();this.Af&&a.uniform1f(this.Af,1);this.qo&&a.uniform1i(this.qo,0);this.Ng&&a.uniform1i(this.Ng,1);this.Ne&&a.uniform2f(this.Ne,0,0);this.Me&&a.uniform2f(this.Me,1,1);this.Mg&&a.uniform1f(this.Mg,1);this.Lg&&a.uniform1f(this.Lg,0);this.Pg&&a.uniform2f(this.Pg,
0,0);this.Og&&a.uniform2f(this.Og,0,0);this.De=!1}function b(a,c){this.type=a;this.u=c;this.n=c.n;this.yc=this.pc=this.To=0;this.ma=this.Tc=null;this.up=[]}e.prototype.Nn=function(){var a=this.n,c;this.eo=1;this.Ke=this.Je=null;this.Wh=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.ho=a.ONE;this.ao=a.ONE_MINUS_SRC_ALPHA;this.Vl=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.Vl);this.Ah=
Array(4);this.th=Array(4);for(c=0;4>c;c++)this.Ah[c]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.Ah[c]),this.th[c]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.th[c]);this.od=0;this.wt=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.wt);this.Jm=new Float32Array(16E3);this.ym=new Float32Array(16E3);this.fp=new Float32Array(32E3);for(var d=new Uint16Array(12E3),b=c=0;12E3>c;)d[c++]=b,d[c++]=b+1,d[c++]=b+2,d[c++]=b,d[c++]=b+2,d[c++]=b+3,b+=4;a.bufferData(a.ELEMENT_ARRAY_BUFFER,d,
a.STATIC_DRAW);this.Jf=this.hd=0;this.Ua=[];c=this.sk({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.Ua.push(c);c=this.sk({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.Ua.push(c);for(var f in $b)$b.hasOwnProperty(f)&&this.Ua.push(this.sk($b[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.md=[];this.Vc=0;this.ac=this.Jb=!1;this.rn=this.Ag=-1;this.eg=null;this.Es=a.createFramebuffer();this.mp=null;this.ke=Vb([0,0,0]);a=a.getParameter(a.ALIASED_POINT_SIZE_RANGE);this.Qt=a[0];this.Cl=
a[1];2048<this.Cl&&(this.Cl=2048);this.ed(0)};h.prototype.Em=function(a){var c=this.zo;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])Xb(a,this.zo),this.n.uniformMatrix4fv(this.Ni,!1,a)};e.prototype.sk=function(a,c,d){var b=this.n,f=b.createShader(b.FRAGMENT_SHADER);b.shaderSource(f,a.src);b.compileShader(f);if(!b.getShaderParameter(f,
b.COMPILE_STATUS))return b.deleteShader(f),null;var g=b.createShader(b.VERTEX_SHADER);b.shaderSource(g,c);b.compileShader(g);if(!b.getShaderParameter(g,b.COMPILE_STATUS))return b.deleteShader(f),b.deleteShader(g),null;c=b.createProgram();b.attachShader(c,f);b.attachShader(c,g);b.linkProgram(c);if(!b.getProgramParameter(c,b.LINK_STATUS))return b.deleteShader(f),b.deleteShader(g),b.deleteProgram(c),null;b.useProgram(c);b.deleteShader(f);b.deleteShader(g);d=new h(b,c,d);d.Dk=a.Dk||0;d.Ek=a.Ek||0;d.qn=
!!a.qn;d.gn=!!a.gn;d.L=a.L||[];a=0;for(f=d.L.length;a<f;a++)d.L[a][1]=b.getUniformLocation(c,d.L[a][0]),d.ll.push(0),b.uniform1f(d.L[a][1],0);return d};e.prototype.Tk=function(a){var c,d;c=0;for(d=this.Ua.length;c<d;c++)if(this.Ua[c].name===a)return c;return-1};e.prototype.hp=function(a,c,d){var b=this.Cc,f=this.Bl,g=[0,0,0,0,0,0,0,0];g[0]=b[0]*a+b[4]*c+b[12];g[1]=b[1]*a+b[5]*c+b[13];g[2]=b[2]*a+b[6]*c+b[14];g[3]=b[3]*a+b[7]*c+b[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],d[0]=(.5*g[4]+.5)*this.width,d[1]=(.5*g[5]+.5)*this.height)};e.prototype.Lf=function(a,c,d){if(this.width!==a||this.height!==c||d){this.Vd();this.width=a;this.height=c;this.n.viewport(0,0,a,c);c=a/c;var b=this.Bl,f;f=1*Math.tan(45*Math.PI/360);c*=f;a=-c;d=-f;b||(b=Wb());var g=c-a,e=f-d;b[0]=2/g;b[1]=0;b[2]=0;b[3]=0;b[4]=0;b[5]=2/e;b[6]=0;b[7]=0;b[8]=(c+a)/g;b[9]=
(f+d)/e;b[10]=-1001/999;b[11]=-1;b[12]=0;b[13]=0;b[14]=-2E3/999;b[15]=0;Zb(this.on,this.ro,this.Np,this.Cc);a=[0,0];c=[0,0];this.hp(0,0,a);this.hp(1,1,c);this.Nm[0]=1/(c[0]-a[0]);this.Nm[1]=-1/(c[1]-a[1]);a=0;for(c=this.Ua.length;a<c;a++)d=this.Ua[a],d.De=!1,d.po&&(this.n.useProgram(d.oh),this.n.uniformMatrix4fv(d.po,!1,this.Bl));this.n.useProgram(this.Ua[this.Ag].oh);this.n.bindTexture(this.n.TEXTURE_2D,null);this.n.activeTexture(this.n.TEXTURE1);this.n.bindTexture(this.n.TEXTURE_2D,null);this.n.activeTexture(this.n.TEXTURE0);
this.Ke=this.Je=null}};e.prototype.ee=function(){Zb(this.on,this.ro,this.Np,this.Cc);Yb(this.Cc,this.Nm)};e.prototype.translate=function(a,c){if(0!==a||0!==c){this.ke[0]=a;this.ke[1]=c;this.ke[2]=0;var d=this.Cc,b=this.ke,f=b[0],g=b[1],b=b[2];d[12]=d[0]*f+d[4]*g+d[8]*b+d[12];d[13]=d[1]*f+d[5]*g+d[9]*b+d[13];d[14]=d[2]*f+d[6]*g+d[10]*b+d[14];d[15]=d[3]*f+d[7]*g+d[11]*b+d[15]}};e.prototype.scale=function(a,c){if(1!==a||1!==c)this.ke[0]=a,this.ke[1]=c,this.ke[2]=1,Yb(this.Cc,this.ke)};e.prototype.np=
function(a){if(0!==a){var c=this.Cc,d,b=Math.sin(a);a=Math.cos(a);var f=c[0],g=c[1],e=c[2],m=c[3],h=c[4],w=c[5],u=c[6],l=c[7];d?c!==d&&(d[8]=c[8],d[9]=c[9],d[10]=c[10],d[11]=c[11],d[12]=c[12],d[13]=c[13],d[14]=c[14],d[15]=c[15]):d=c;d[0]=f*a+h*b;d[1]=g*a+w*b;d[2]=e*a+u*b;d[3]=m*a+l*b;d[4]=f*-b+h*a;d[5]=g*-b+w*a;d[6]=e*-b+u*a;d[7]=m*-b+l*a}};e.prototype.me=function(){for(var a=!1,c=0;16>c;c++)if(this.co[c]!==this.Cc[c]){a=!0;break}a&&(a=this.Ec(),a.type=5,a.ma?Xb(this.Cc,a.ma):a.ma=Wb(this.Cc),Xb(this.Cc,
this.co),this.ac=this.Jb=!1)};b.prototype.Xr=function(){this.n.bindTexture(this.n.TEXTURE_2D,this.Tc)};b.prototype.Yr=function(){var a=this.n;a.activeTexture(a.TEXTURE1);a.bindTexture(a.TEXTURE_2D,this.Tc);a.activeTexture(a.TEXTURE0)};b.prototype.Ur=function(){var a=this.To,c=this.u;c.Wh=a;c=c.eg;c.Af&&c.Pi!==a&&(c.Pi=a,this.n.uniform1f(c.Af,a))};b.prototype.Rr=function(){this.n.drawElements(this.n.TRIANGLES,this.yc,this.n.UNSIGNED_SHORT,2*this.pc)};b.prototype.Tr=function(){this.n.blendFunc(this.pc,
this.yc)};b.prototype.Zr=function(){var a,c,d,b=this.u.Ua,f=this.u.rn;a=0;for(c=b.length;a<c;a++)d=b[a],a===f&&d.Ni?(d.Em(this.ma),d.De=!0):d.De=!1;Xb(this.ma,this.u.tk)};b.prototype.Sr=function(){var a=this.n,c=this.u;this.Tc?(c.Ke===this.Tc&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,null),c.Ke=null,a.activeTexture(a.TEXTURE0)),a.bindFramebuffer(a.FRAMEBUFFER,c.Es),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,this.Tc,0)):(a.framebufferTexture2D(a.FRAMEBUFFER,
a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.bindFramebuffer(a.FRAMEBUFFER,null))};b.prototype.Pr=function(){var a=this.n;0===this.pc?(a.clearColor(this.ma[0],this.ma[1],this.ma[2],this.ma[3]),a.clear(a.COLOR_BUFFER_BIT)):(a.enable(a.SCISSOR_TEST),a.scissor(this.ma[0],this.ma[1],this.ma[2],this.ma[3]),a.clearColor(0,0,0,0),a.clear(this.n.COLOR_BUFFER_BIT),a.disable(a.SCISSOR_TEST))};b.prototype.Qr=function(){var a=this.n,c=this.u,d=c.Ua[1];a.useProgram(d.oh);!d.De&&d.Ni&&(d.Em(c.tk),d.De=!0);a.enableVertexAttribArray(d.Bc);
a.bindBuffer(a.ARRAY_BUFFER,c.Vl);a.vertexAttribPointer(d.Bc,4,a.FLOAT,!1,0,0);a.drawArrays(a.POINTS,this.pc/4,this.yc);d=c.eg;a.useProgram(d.oh);0<=d.Bc&&(a.enableVertexAttribArray(d.Bc),a.bindBuffer(a.ARRAY_BUFFER,c.Ah[c.od]),a.vertexAttribPointer(d.Bc,2,a.FLOAT,!1,0,0));0<=d.$d&&(a.enableVertexAttribArray(d.$d),a.bindBuffer(a.ARRAY_BUFFER,c.th[c.od]),a.vertexAttribPointer(d.$d,2,a.FLOAT,!1,0,0))};b.prototype.Vr=function(){var a=this.n,c=this.u,d=c.Ua[this.pc];c.rn=this.pc;c.eg=d;a.useProgram(d.oh);
!d.De&&d.Ni&&(d.Em(c.tk),d.De=!0);d.Af&&d.Pi!==c.Wh&&(d.Pi=c.Wh,a.uniform1f(d.Af,c.Wh));0<=d.Bc&&(a.enableVertexAttribArray(d.Bc),a.bindBuffer(a.ARRAY_BUFFER,c.Ah[c.od]),a.vertexAttribPointer(d.Bc,2,a.FLOAT,!1,0,0));0<=d.$d&&(a.enableVertexAttribArray(d.$d),a.bindBuffer(a.ARRAY_BUFFER,c.th[c.od]),a.vertexAttribPointer(d.$d,2,a.FLOAT,!1,0,0))};b.prototype.Wr=function(){var a,c,d=this.u.eg,b=this.n;a=this.ma;d.Ng&&this.u.Ke!==this.Tc&&(b.activeTexture(b.TEXTURE1),b.bindTexture(b.TEXTURE_2D,this.Tc),
this.u.Ke=this.Tc,b.activeTexture(b.TEXTURE0));var f=a[0];d.xl&&f!==d.Bo&&(d.Bo=f,b.uniform1f(d.xl,f));f=a[1];d.wl&&f!==d.Ao&&(d.Ao=f,b.uniform1f(d.wl,f));f=a[2];c=a[3];!d.Ne||f===d.vo&&c===d.wo||(d.vo=f,d.wo=c,b.uniform2f(d.Ne,f,c));f=a[4];c=a[5];!d.Me||f===d.so&&c===d.uo||(d.so=f,d.uo=f,b.uniform2f(d.Me,f,c));f=a[6];d.Mg&&f!==d.yo&&(d.yo=f,b.uniform1f(d.Mg,f));f=a[7];d.Lg&&f!==d.xo&&(d.xo=f,b.uniform1f(d.Lg,f));f=a[8];c=a[9];!d.Pg||f===d.Eo&&c===d.Fo||(d.Eo=f,d.Fo=c,b.uniform2f(d.Pg,f,c));f=a[10];
c=a[11];!d.Og||f===d.Co&&c===d.Do||(d.Co=f,d.Do=c,b.uniform2f(d.Og,f,c));d.yl&&b.uniform1f(d.yl,S()/1E3);if(d.L.length)for(a=0,c=d.L.length;a<c;a++)f=this.up[a],f!==d.ll[a]&&(d.ll[a]=f,b.uniform1f(d.L[a][1],f))};e.prototype.Ec=function(){this.Vc===this.md.length&&this.md.push(new b(0,this));return this.md[this.Vc++]};e.prototype.Vd=function(){if(0!==this.Vc&&!this.n.isContextLost()){var a=this.n;0<this.Jf&&(a.bindBuffer(a.ARRAY_BUFFER,this.Vl),a.bufferData(a.ARRAY_BUFFER,this.fp.subarray(0,this.Jf),
a.STREAM_DRAW),c&&0<=c.Bc&&"<point>"===c.name&&a.vertexAttribPointer(c.Bc,4,a.FLOAT,!1,0,0));if(0<this.hd){var c=this.eg;a.bindBuffer(a.ARRAY_BUFFER,this.Ah[this.od]);a.bufferData(a.ARRAY_BUFFER,this.Jm.subarray(0,this.hd),a.STREAM_DRAW);c&&0<=c.Bc&&"<point>"!==c.name&&a.vertexAttribPointer(c.Bc,2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.th[this.od]);a.bufferData(a.ARRAY_BUFFER,this.ym.subarray(0,this.hd),a.STREAM_DRAW);c&&0<=c.$d&&"<point>"!==c.name&&a.vertexAttribPointer(c.$d,2,a.FLOAT,
!1,0,0)}for(var d,a=0,c=this.Vc;a<c;a++)switch(d=this.md[a],d.type){case 1:d.Rr();break;case 2:d.Xr();break;case 3:d.Ur();break;case 4:d.Tr();break;case 5:d.Zr();break;case 6:d.Sr();break;case 7:d.Pr();break;case 8:d.Qr();break;case 9:d.Vr();break;case 10:d.Wr();break;case 11:d.Yr()}this.Jf=this.hd=this.Vc=0;this.ac=this.Jb=!1;this.od++;4<=this.od&&(this.od=0)}};e.prototype.Te=function(a){if(a!==this.eo){var c=this.Ec();c.type=3;this.eo=c.To=a;this.ac=this.Jb=!1}};e.prototype.hc=function(a){if(a!==
this.Je){var c=this.Ec();c.type=2;this.Je=c.Tc=a;this.ac=this.Jb=!1}};e.prototype.fe=function(a,c){if(a!==this.ho||c!==this.ao){var d=this.Ec();d.type=4;d.pc=a;d.yc=c;this.ho=a;this.ao=c;this.ac=this.Jb=!1}};e.prototype.pp=function(){this.fe(this.n.ONE,this.n.ONE_MINUS_SRC_ALPHA)};e.prototype.ih=function(a,c,d,b,f,g,e,m){15992<=this.hd&&this.Vd();var h=this.hd,w=this.Jm,u=this.ym;if(this.Jb)this.md[this.Vc-1].yc+=6;else{var l=this.Ec();l.type=1;l.pc=h/4*3;l.yc=6;this.Jb=!0;this.ac=!1}w[h]=a;u[h++]=
0;w[h]=c;u[h++]=0;w[h]=d;u[h++]=1;w[h]=b;u[h++]=0;w[h]=f;u[h++]=1;w[h]=g;u[h++]=1;w[h]=e;u[h++]=0;w[h]=m;u[h++]=1;this.hd=h};e.prototype.Ed=function(a,c,d,b,f,g,e,m,h){15992<=this.hd&&this.Vd();var w=this.hd,u=this.Jm,l=this.ym;if(this.Jb)this.md[this.Vc-1].yc+=6;else{var v=this.Ec();v.type=1;v.pc=w/4*3;v.yc=6;this.Jb=!0;this.ac=!1}var v=h.left,A=h.top,n=h.right;h=h.bottom;u[w]=a;l[w++]=v;u[w]=c;l[w++]=A;u[w]=d;l[w++]=n;u[w]=b;l[w++]=A;u[w]=f;l[w++]=n;u[w]=g;l[w++]=h;u[w]=e;l[w++]=v;u[w]=m;l[w++]=
h;this.hd=w};e.prototype.eu=function(a,c,d,b){7996<=this.Jf&&this.Vd();var f=this.Jf,g=this.fp;if(this.ac)this.md[this.Vc-1].yc++;else{var e=this.Ec();e.type=8;e.pc=f;e.yc=1;this.ac=!0;this.Jb=!1}g[f++]=a;g[f++]=c;g[f++]=d;g[f++]=b;this.Jf=f};e.prototype.ed=function(a){if(this.Ag!==a){if(!this.Ua[a]){if(0===this.Ag)return;a=0}var c=this.Ec();c.type=9;this.Ag=c.pc=a;this.ac=this.Jb=!1}};e.prototype.gh=function(a){a=this.Ua[a];return!(!a.Ne&&!a.Me)};e.prototype.Xl=function(a){a=this.Ua[a];return!!(a.Ne||
a.Me||a.qn)};e.prototype.ku=function(a){a=this.Ua[a];return 0!==a.Dk||0!==a.Ek};e.prototype.Ts=function(a){return this.Ua[a].Dk};e.prototype.Us=function(a){return this.Ua[a].Ek};e.prototype.Vs=function(a,c){return this.Ua[a].L[c][2]};e.prototype.hj=function(a){return this.Ua[a].gn};e.prototype.Kf=function(a,c,d,b,f,g,e,m,h,w,u,l,v,A){var n=this.Ua[this.Ag],k,r;if(n.qt||A.length){k=this.Ec();k.type=10;k.ma?Xb(this.Cc,k.ma):k.ma=Wb();r=k.ma;r[0]=c;r[1]=d;r[2]=b;r[3]=f;r[4]=g;r[5]=e;r[6]=m;r[7]=h;r[8]=
w;r[9]=u;r[10]=l;r[11]=v;k.Tc=n.Ng?a:null;if(A.length)for(d=k.up,d.length=A.length,a=0,c=A.length;a<c;a++)d[a]=A[a];this.ac=this.Jb=!1}};e.prototype.clear=function(a,c,d,b){var f=this.Ec();f.type=7;f.pc=0;f.ma||(f.ma=Wb());f.ma[0]=a;f.ma[1]=c;f.ma[2]=d;f.ma[3]=b;this.ac=this.Jb=!1};e.prototype.clearRect=function(a,c,d,b){if(!(0>d||0>b)){var f=this.Ec();f.type=7;f.pc=1;f.ma||(f.ma=Wb());f.ma[0]=a;f.ma[1]=c;f.ma[2]=d;f.ma[3]=b;this.ac=this.Jb=!1}};e.prototype.ju=function(){this.Vd();this.n.flush()};
var g=[],m={};e.prototype.Fr=function(){g.length=0;m={}};e.prototype.yf=function(a,c,d,b){c=!!c;d=!!d;var f=a.src+","+c+","+d+(c?",undefined":""),e=null;if("undefined"!==typeof a.src&&m.hasOwnProperty(f))return e=m[f],e.Lh++,e;this.Vd();var h=this.n,z=ga(a.width)&&ga(a.height),e=h.createTexture();h.bindTexture(h.TEXTURE_2D,e);h.pixelStorei(h.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var y=h.RGBA,w=h.RGBA,u=h.UNSIGNED_BYTE;if(b&&!this.rf)switch(b){case 1:w=y=h.RGB;break;case 2:u=h.UNSIGNED_SHORT_4_4_4_4;
break;case 3:u=h.UNSIGNED_SHORT_5_5_5_1;break;case 4:w=y=h.RGB,u=h.UNSIGNED_SHORT_5_6_5}if(!z&&c){b=document.createElement("canvas");b.width=ha(a.width);b.height=ha(a.height);var l=b.getContext("2d");l.webkitImageSmoothingEnabled=d;l.mozImageSmoothingEnabled=d;l.msImageSmoothingEnabled=d;l.imageSmoothingEnabled=d;l.drawImage(a,0,0,a.width,a.height,0,0,b.width,b.height);h.texImage2D(h.TEXTURE_2D,0,y,w,u,b)}else h.texImage2D(h.TEXTURE_2D,0,y,w,u,a);c?(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_S,h.REPEAT),
h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_T,h.REPEAT)):(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_S,h.CLAMP_TO_EDGE),h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_T,h.CLAMP_TO_EDGE));d?(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MAG_FILTER,h.LINEAR),z&&this.tn?(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MIN_FILTER,h.LINEAR_MIPMAP_LINEAR),h.generateMipmap(h.TEXTURE_2D)):h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MIN_FILTER,h.LINEAR)):(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MAG_FILTER,h.NEAREST),h.texParameteri(h.TEXTURE_2D,
h.TEXTURE_MIN_FILTER,h.NEAREST));h.bindTexture(h.TEXTURE_2D,null);this.Je=null;e.bg=a.width;e.ag=a.height;e.Lh=1;e.mn=f;g.push(e);return m[f]=e};e.prototype.Td=function(a,c,d){var b;this.Vd();var f=this.n;this.rf&&(b=!1);var h=f.createTexture();f.bindTexture(f.TEXTURE_2D,h);f.texImage2D(f.TEXTURE_2D,0,f.RGBA,a,c,0,f.RGBA,b?f.UNSIGNED_SHORT_4_4_4_4:f.UNSIGNED_BYTE,null);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_S,f.CLAMP_TO_EDGE);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_T,f.CLAMP_TO_EDGE);f.texParameteri(f.TEXTURE_2D,
f.TEXTURE_MAG_FILTER,d?f.LINEAR:f.NEAREST);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,d?f.LINEAR:f.NEAREST);f.bindTexture(f.TEXTURE_2D,null);this.Je=null;h.bg=a;h.ag=c;g.push(h);return h};e.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.Lh&&1<a.Lh?a.Lh--:(this.Vd(),a===this.Je&&(this.n.bindTexture(this.n.TEXTURE_2D,null),this.Je=null),a===this.Ke&&(this.n.activeTexture(this.n.TEXTURE1),this.n.bindTexture(this.n.TEXTURE_2D,null),this.n.activeTexture(this.n.TEXTURE0),this.Ke=
null),xa(g,a),"undefined"!==typeof a.mn&&delete m[a.mn],this.n.deleteTexture(a)))};e.prototype.dd=function(a){if(a!==this.mp){var c=this.Ec();c.type=6;this.mp=c.Tc=a;this.ac=this.Jb=!1}};db=e})();
(function(){function e(){return"undefined"!==typeof jQuery?jQuery(window).width():window.innerWidth}function h(){return"undefined"!==typeof jQuery?jQuery(window).height():window.innerHeight}function b(a){if(a&&(a.getContext||a.dc)&&!a.c2runtime){a.c2runtime=this;var k=this;this.zc=(this.vg=/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.c2isphonegap&&window.c2isphonegap;this.kb=!!a.dc;this.pf="undefined"!==typeof window.AppMobi||this.kb;this.nc=!!window.c2cocoonjs;this.Lc=!!window.c2ejecta;this.nc&&(CocoonJS.App.onSuspended.addEventListener(function(){k.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){k.setSuspended(!1)}));this.Lc&&(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.P=this.kb||this.nc||this.Lc;this.rf=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent);this.Vn=/tizen/i.test(navigator.userAgent);this.vi=/android/i.test(navigator.userAgent)&&!this.Vn&&!this.rf;this.kl=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&!this.rf;this.Zn=/ipad/i.test(navigator.userAgent);
this.Ci=this.kl||this.Zn||this.Lc;this.Kt=this.kl&&/os\s6/i.test(navigator.userAgent);this.ug=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent);this.Sn=/amazonwebappplatform/i.test(navigator.userAgent);this.Dt=/firefox/i.test(navigator.userAgent);this.Un=/safari/i.test(navigator.userAgent)&&!this.ug&&!this.rf;this.Gt=/windows/i.test(navigator.userAgent);this.Yd="undefined"!==typeof window.c2nodewebkit||/nodewebkit/i.test(navigator.userAgent);this.It=!("undefined"===typeof window.c2isWindows8||
!window.c2isWindows8);this.Jt=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.xi=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.Xn=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.Wn=this.It||this.Jt||this.Xn;this.Bt=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.wi=this.vi&&!this.ug&&!this.vg&&!this.Dt&&!this.Sn&&!this.P;this.devicePixelRatio=1;this.$c=this.zc||
this.vg||this.pf||this.nc||this.vi||this.Ci||this.xi||this.Xn||this.Bt||this.Vn||this.Lc;this.$c||(this.$c=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));"undefined"===typeof cr_is_preview||this.Yd||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)||(this.Yd=!0);this.Ct="undefined"!==typeof cr_is_preview&&-1<window.location.search.indexOf("debug");this.canvas=a;this.Oh=document.getElementById("c2canvasdiv");
this.qa=this.u=this.n=null;this.Jk="";this.fi=!1;this.Ro=this.So=0;this.canvas.oncontextmenu=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.onselectstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.kb&&(window.c2runtime=this);this.Yd&&(window.ondragover=function(a){a.preventDefault();return!1},window.ondrop=function(a){a.preventDefault();return!1},require("nw.gui").App.clearCache());this.wi&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow",
"visible");this.width=a.width;this.height=a.height;this.O=this.width;this.N=this.height;this.Uh=this.width;this.Th=this.height;this.Cg=window.innerWidth;this.Bg=window.innerHeight;this.Gs=!1;this.xa=!0;this.xg=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.q=[];this.Ka=[];this.tl={};this.fc=[];this.Ck={};this.td=[];this.Yf=[];this.Pj=[];this.dk=[];this.or=[];this.Ap=null;this.ve={};this.gl=this.Xd=!1;this.zd=0;this.il=!1;this.Kc=[];this.Ad=this.yb=this.Ig=this.sj=
"";this.rh=this.xp=!1;this.qk=this.Qg=this.sd=this.Ud=0;this.We=1;this.cc=new Va;this.jd=new Va;this.Gi=0;this.Ho=!0;this.Si=this.hi=this.ci=this.Hd=this.Dg=this.Ik=0;this.re=null;this.xk=[];this.Bk=[];this.bi=-1;this.zl=[[]];this.Bm=this.Oi=0;this.jj(null);this.Mo=this.Ug=0;this.sl=!0;this.gg=0;this.sh=[];this.Lj=this.kj=-1;this.wf=!0;this.Mi=0;this.wg=!1;this.Fu=0;this.cf=null;this.ot=!1;this.ml=0;this.la=this.mf=this.Yl=!1;this.Qo=new ca;this.Il=new ca;this.Jl=new ca;this.nj=[];this.Sc=new Xa([]);
this.xm=new Xa([]);this.Pd=[];this.oi={};this.ef={};this.bf={};this.Xf={};this.jn={};this.oo=this.Ii=this.ec=this.oc=this.no=this.Hi=this.na=null;this.Vf=this.jl=!1;this.Kk=[null,null];this.Be=0;this.Gk="";this.ae={};this.yj=this.zf=null;this.Ri=[];this.ou()}}function g(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function m(a,k,c,d){var b=indexedDB.open("_C2SaveStates");b.onupgradeneeded=g;b.onerror=d;b.onsuccess=function(b){b=b.target.result;b.onerror=d;b.transaction(["saves"],
"readwrite").objectStore("saves").put({slot:a,data:k}).onsuccess=c}}function a(a,k,c){var d=indexedDB.open("_C2SaveStates");d.onupgradeneeded=g;d.onerror=c;d.onsuccess=function(d){d=d.target.result;d.onerror=c;var b=d.transaction(["saves"]).objectStore("saves").get(a);b.onsuccess=function(){b.result?k(b.result.data):k(null)}}}function c(){H("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?window.location.reload(!0):window.location+=
"?continuous"}function d(a){var k,c={};for(k in a)!a.hasOwnProperty(k)||a[k]instanceof ca||a[k]&&"undefined"!==typeof a[k].Uv||(c[k]=a[k]);return c}b.prototype.ou=function(){var a=this,k;k=this.xi?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest;k.open("GET","data.js",!0);var c=!1;if(!this.P&&"response"in k&&"responseType"in k)try{k.responseType="json",c="json"===k.responseType}catch(d){c=!1}if(!c&&"responseType"in k)try{k.responseType="text"}catch(b){}if("overrideMimeType"in k)try{k.overrideMimeType("application/json; charset=utf-8")}catch(l){}k.onload=
function(){if(c)a.ul(k.response);else if(a.Lc){var d=k.responseText,d=d.substr(d.indexOf("{"));a.ul(JSON.parse(d))}else a.ul(JSON.parse(k.responseText))};k.onerror=function(a){da("Error requesting data.js:");da(a)};k.send()};b.prototype.xt=function(){var a=this,k,c,d,b,l,f,g,p,m;this.devicePixelRatio=(this.He=(!this.P||this.Lc)&&this.Ou&&!this.wi)?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.pb();c=!(!this.Gs&&(!this.fk||this.Yd||
this.Wn||this.xi||this.vg||this.zc||this.Sn));0<this.wb&&this.setSize(e(),h(),!0);try{this.bs&&(this.nc||this.Lc||!this.P)&&(k={alpha:c,depth:!1,antialias:!1,failIfMajorPerformanceCaveat:!0},this.n=this.canvas.getContext("webgl",k)||this.canvas.getContext("experimental-webgl",k))}catch(v){}if(this.n){this.P||(this.lb=document.createElement("canvas"),jQuery(this.lb).appendTo(this.canvas.parentNode),this.lb.oncontextmenu=function(){return!1},this.lb.onselectstart=function(){return!1},this.lb.width=
this.Uh,this.lb.height=this.Th,jQuery(this.lb).css({width:this.Uh+"px",height:this.Th+"px"}),this.gp(),this.Tl=this.lb.getContext("2d"));this.u=new db(this.n,this.$c);this.u.Lf(this.canvas.width,this.canvas.height);this.u.tn=0!==this.$r;this.qa=null;this.canvas.addEventListener("webglcontextlost",function(k){k.preventDefault();a.Tt();H("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){a.u.Nn();a.u.Lf(a.u.width,a.u.height,
!0);a.oc=null;a.ec=null;a.Kk[0]=null;a.Kk[1]=null;a.Ut();a.xa=!0;H("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);k=0;for(c=this.q.length;k<c;k++)for(l=this.q[k],d=0,b=l.K.length;d<b;d++)g=l.K[d],g.mb=this.u.Tk(g.id),this.Vf=this.Vf||this.u.gh(g.mb);k=0;for(c=this.fc.length;k<c;k++){p=this.fc[k];d=0;for(b=p.K.length;d<b;d++)g=p.K[d],g.mb=this.u.Tk(g.id);d=0;for(b=p.R.length;d<b;d++)for(m=p.R[d],l=0,f=m.K.length;l<f;l++)g=m.K[l],g.mb=this.u.Tk(g.id),this.Vf=this.Vf||this.u.gh(g.mb)}}else{if(0<
this.wb&&this.kb){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.qa=AppMobi.canvas.getContext("2d");try{this.qa.samplingMode=this.Y?"smooth":"sharp",this.qa.globalScale=1,this.qa.HTML5CompatibilityMode=!0,this.qa.imageSmoothingEnabled=this.Y}catch(y){}0!==this.width&&0!==this.height&&(this.qa.width=this.width,this.qa.height=this.height)}this.qa||(k=this.nc?{antialias:!!this.Y,alpha:c}:{alpha:c},this.qa=this.canvas.getContext("2d",k),this.qa.webkitImageSmoothingEnabled=
this.Y,this.qa.mozImageSmoothingEnabled=this.Y,this.qa.msImageSmoothingEnabled=this.Y,this.qa.imageSmoothingEnabled=this.Y);this.Tl=this.lb=null}this.Jj=function(){a.Da(!1)};window==window.top||this.P||this.Wn||this.xi||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.nc&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&
(H("Reloading for continuous preview"),this.Ig="__c2_continuouspreview",this.rh=!0),this.cu&&!this.$c&&(jQuery(window).focus(function(){a.setSuspended(!1)}),jQuery(window).blur(function(){a.setSuspended(!0)})));this.P||(k=function(a){cb(a)&&document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur&&document.activeElement.blur()},window.navigator.pointerEnabled?document.addEventListener("pointerdown",k):window.navigator.msPointerEnabled?
document.addEventListener("MSPointerDown",k):document.addEventListener("touchstart",k),document.addEventListener("mousedown",k));0===this.wb&&this.He&&1<this.devicePixelRatio&&this.setSize(this.fb,this.eb,!0);this.Jp();this.lt();this.go();this.ra={}};b.prototype.setSize=function(a,k,c){var d=0,b=0,l=0,f=0,f=0,g=this.Kt&&this.Un&&!navigator.standalone&&!this.P&&!this.zc;g&&(k+=60);if(this.Cg!==a||this.Bg!==k||c){this.Cg=a;this.Bg=k;var h=this.wb,p=(document.mozFullScreen||document.webkitIsFullScreen||
!!document.msFullscreenElement||document.fullScreen||this.wg)&&!this.zc;if(p||0!==this.wb||c)p&&0<this.Be&&(h=this.Be),c=this.devicePixelRatio,4<=h?(l=this.fb/this.eb,a/k>l?(l*=k,5===h?(f=l*c/this.fb,1<f?f=Math.floor(f):1>f&&(f=1/Math.ceil(1/f)),l=this.fb*f/c,f=this.eb*f/c,d=(a-l)/2,b=(k-f)/2,a=l,k=f):(d=(a-l)/2,a=l)):(f=a/l,5===h?(f=f*c/this.eb,1<f?f=Math.floor(f):1>f&&(f=1/Math.ceil(1/f)),l=this.fb*f/c,f=this.eb*f/c,d=(a-l)/2,b=(k-f)/2,a=l):b=(k-f)/2,k=f),p&&!this.Yd&&(b=d=0)):this.Yd&&this.wg&&
0===this.An&&(d=Math.floor((a-this.fb)/2),b=Math.floor((k-this.eb)/2),a=this.fb,k=this.eb),2>h&&(this.$f=c),this.He&&this.Zn&&1<c&&(1024<=a&&(a=1023),1024<=k&&(k=1023)),this.Uh=Math.round(a),this.Th=Math.round(k),this.width=Math.round(a*c),this.height=Math.round(k*c),this.xa=!0,this.Vp?(this.O=this.width,this.N=this.height,this.xc=!0):this.width<this.fb&&this.height<this.eb||1===h?(this.O=this.width,this.N=this.height,this.xc=!0):(this.O=this.fb,this.N=this.eb,this.xc=!1,2===h?(l=this.fb/this.eb,
h=this.Cg/this.Bg,h<l?this.O=this.N*h:h>l&&(this.N=this.O/h)):3===h&&(l=this.fb/this.eb,h=this.Cg/this.Bg,h>l?this.O=this.N*h:h<l&&(this.N=this.O/h))),this.Oh&&!this.P&&(jQuery(this.Oh).css({width:Math.round(a)+"px",height:Math.round(k)+"px","margin-left":Math.floor(d)+"px","margin-top":Math.floor(b)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(a)+"px",height:Math.round(k)+"px"})),this.canvas&&(this.canvas.width=Math.round(a*c),this.canvas.height=Math.round(k*
c),this.Lc?(this.canvas.style.left=Math.floor(d)+"px",this.canvas.style.top=Math.floor(b)+"px",this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(k)+"px"):this.He&&!this.P&&jQuery(this.canvas).css({width:Math.round(a)+"px",height:Math.round(k)+"px"})),this.lb&&(this.lb.width=Math.round(a),this.lb.height=Math.round(k),jQuery(this.lb).css({width:Math.round(a)+"px",height:Math.round(k)+"px"})),this.u&&this.u.Lf(Math.round(a*c),Math.round(k*c)),this.kb&&this.qa&&(this.qa.width=
Math.round(a),this.qa.height=Math.round(k)),this.qa&&(this.qa.webkitImageSmoothingEnabled=this.Y,this.qa.mozImageSmoothingEnabled=this.Y,this.qa.msImageSmoothingEnabled=this.Y,this.qa.imageSmoothingEnabled=this.Y),this.Jp(),this.P||!g&&!this.kl||window.setTimeout(function(){window.scrollTo(0,1)},100)}};b.prototype.Jp=function(){if(this.rr&&0!==this.Rl){var a="portrait";2===this.Rl&&(a="landscape");screen.orientation&&screen.orientation.lock?screen.orientation.lock(a):screen.lockOrientation?screen.lockOrientation(a):
screen.webkitLockOrientation?screen.webkitLockOrientation(a):screen.mozLockOrientation?screen.mozLockOrientation(a):screen.msLockOrientation&&screen.msLockOrientation(a)}};b.prototype.Tt=function(){this.u.Fr();this.jl=!0;var a,k,c;a=0;for(k=this.q.length;a<k;a++)c=this.q[a],c.Ti&&c.Ti()};b.prototype.Ut=function(){this.jl=!1;var a,k,c;a=0;for(k=this.q.length;a<k;a++)c=this.q[a],c.Ui&&c.Ui()};b.prototype.gp=function(){if(!this.P){var a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||
document.msFullscreenElement||this.wg)&&!this.zc?jQuery(this.canvas).offset():jQuery(this.canvas).position();a.position="absolute";jQuery(this.lb).css(a)}};var p=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;b.prototype.setSuspended=function(a){var k;if(a&&!this.xg)for(H("[Construct 2] Suspending"),this.xg=!0,-1!==this.kj&&p&&p(this.kj),-1!==this.Lj&&clearTimeout(this.Lj),a=0,k=this.sh.length;a<
k;a++)this.sh[a](!0);else if(!a&&this.xg){H("[Construct 2] Resuming");this.xg=!1;this.Gi=S();this.Dg=S();a=this.Qg=this.hi=0;for(k=this.sh.length;a<k;a++)this.sh[a](!1);this.Da(!1)}};b.prototype.mr=function(a){this.sh.push(a)};b.prototype.Md=function(a){return this.Ri[a]};b.prototype.ul=function(a){a&&a.project||da("Project model unavailable");a=a.project;this.name=a[0];this.zn=a[1];this.wb=a[12];this.An=a[12];this.fb=a[10];this.eb=a[11];this.$o=this.fb/2;this.bp=this.eb/2;this.P&&!this.Lc&&(4<=a[12]||
0===a[12])&&(H("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.An=this.wb=3);this.Hm=a[18];this.Kg=a[19];0===this.Kg&&(this.zf=new Image,this.zf.src="loading-logo.png");this.Ug=a[21];this.Ri=ac();this.fd=new W(this);var k,c,d,b,l,f,g,h,p;k=0;for(c=a[2].length;k<c;k++)g=a[2][k],d=this.Md(g[0]),eb(g,d.prototype),p=new d(this),p.wj=g[1],p.Zd=g[2],p.Lo=g[9],p.T&&p.T(),this.plugins.push(p);this.Ri=ac();k=0;for(c=a[3].length;k<c;k++){g=
a[3][k];l=this.Md(g[1]);p=null;d=0;for(b=this.plugins.length;d<b;d++)if(this.plugins[d]instanceof l){p=this.plugins[d];break}var e=new p.wa(p);e.name=g[0];e.F=g[2];e.fl=g[3].slice(0);e.Qu=g[3].length;e.sr=g[4];e.Is=g[5];e.V=g[11];e.F?(e.Qi=[],e.ud=this.gg++,e.Ca=null):(e.Qi=null,e.ud=-1,e.Ca=[]);e.di=null;e.hf=null;e.vn=null;e.Mc=!1;e.Yb=null;g[6]?(e.Gj=g[6][0],e.Hj=g[6][1],e.uh=g[6][2]):(e.Gj=null,e.Hj=0,e.uh=0);e.Wb=g[7]?g[7]:null;e.index=k;e.c=[];e.Yh=[];e.ie=[new fb(e)];e.rd=0;e.Xc=null;e.Mr=
0;e.Qf=!0;e.Rj=gb;e.Ms=hb;e.Rs=ib;e.ca=jb;e.hh=kb;e.ij=lb;e.Re=mb;e.ji=pb;e.Mk=qb;e.Qk=rb;e.qc=sb;e.Fn=tb;e.Qh=new Ya(this.fb,this.eb);e.Dh=!0;e.Eh=!1;e.ra={};e.toString=ub;e.Ka=[];d=0;for(b=g[8].length;d<b;d++){h=g[8][d];var m=this.Md(h[1]),v=null;l=0;for(f=this.Ka.length;l<f;l++)if(this.Ka[l]instanceof m){v=this.Ka[l];break}v||(v=new m(this),v.Gl=[],v.Pe=new ca,v.T&&v.T(),this.Ka.push(v),bc&&v instanceof bc&&(this.Ap=v));-1===v.Gl.indexOf(e)&&v.Gl.push(e);l=new v.wa(v,e);l.name=h[0];l.V=h[2];l.T();
e.Ka.push(l)}e.global=g[9];e.hl=g[10];e.K=[];d=0;for(b=g[12].length;d<b;d++)e.K.push({id:g[12][d][0],name:g[12][d][1],mb:-1,Za:!0,index:d});e.hw=g[13];this.Hm&&!e.F&&!e.hl&&p.Zd||e.T();e.name&&(this.types[e.name]=e);this.q.push(e);p.wj&&(d=new p.da(e),d.uid=this.Ug++,d.jp=this.Mo++,d.Fe=0,d.ng=vb,d.toString=wb,d.D=g[14],d.T(),e.c.push(d),this.ae[d.uid.toString()]=d)}k=0;for(c=a[4].length;k<c;k++)for(l=a[4][k],f=this.q[l[0]],d=1,b=l.length;d<b;d++)g=this.q[l[d]],g.Ca.push(f),f.Qi.push(g);k=0;for(c=
a[27].length;k<c;k++){l=a[27][k];f=[];d=0;for(b=l.length;d<b;d++)f.push(this.q[l[d]]);d=0;for(b=f.length;d<b;d++)f[d].Mc=!0,f[d].Yb=f}if(0<this.gg)for(k=0,c=this.q.length;k<c;k++)if(g=this.q[k],!g.F&&g.Ca.length){g.di=Array(this.gg);g.hf=Array(this.gg);g.vn=Array(this.gg);e=[];d=v=m=h=0;for(b=g.Ca.length;d<b;d++)for(p=g.Ca[d],g.di[p.ud]=h,h+=p.Qu,g.hf[p.ud]=m,m+=p.sr,g.vn[p.ud]=v,v+=p.Is,l=0,f=p.K.length;l<f;l++)e.push(sa({},p.K[l]));g.K=e.concat(g.K);d=0;for(b=g.K.length;d<b;d++)g.K[d].index=d}k=
0;for(c=a[5].length;k<c;k++)g=a[5][k],d=new xb(this,g),this.tl[d.name]=d,this.fc.push(d);k=0;for(c=a[6].length;k<c;k++)g=a[6][k],d=new yb(this,g),this.Ck[d.name]=d,this.td.push(d);k=0;for(c=this.td.length;k<c;k++)this.td[k].Ja();k=0;for(c=this.td.length;k<c;k++)this.td[k].Dm();k=0;for(c=this.Pj.length;k<c;k++)this.Pj[k].Ja();this.Pj.length=0;this.pr=a[7];this.Gk=a[8];this.cd=a[9];this.$f=1;this.bs=a[13];this.Y=a[14];this.fk=a[15];this.Ou=a[17];this.Rl=a[20];this.rr=0<this.Rl;this.cu=a[22];this.xc=
this.Vp=a[23];this.$r=a[24];this.iu=a[25];this.Bj=Date.now();this.Ri.length=0;this.xt()};var f=!1;b.prototype.Lm=function(a,k){a.cocoonLazyLoad=!0;a.onerror=function(k){f=a.ln=!0;console&&console.error&&console.error("Error loading image '"+a.src+"': ",k)};this.Lc?a.src=k:a.src||("undefined"!==typeof XAPKReader?XAPKReader.get(k,function(k){a.src=k},function(c){f=a.ln=!0;console&&console.error&&console.error("Error extracting image '"+k+"' from expansion file: ",c)}):a.src=k);this.Yf.push(a)};b.prototype.Fs=
function(a){var k,c;k=0;for(c=this.Yf.length;k<c;k++)if(this.Yf[k].Hr===a)return this.Yf[k];return null};var q=0,s=!1;b.prototype.lt=function(){this.cf&&(q=this.cf.Cu(this.pr))};b.prototype.hn=function(){var a=q,k=0,c=0,d=!0,b,l,c=0;for(b=this.Yf.length;c<b;c++){l=this.Yf[c];var g=l.rk;if(!g||0>=g)g=5E4;a+=g;l.src&&(l.complete||l.loaded)&&!l.ln?k+=g:d=!1}d&&this.iu&&this.cf&&(s||(this.cf.Gu(),s=!0),c=this.cf.Ss(),k+=c,c<q&&(d=!1));this.Se=0==a?0:k/a;return d};b.prototype.go=function(){if(this.qa||
this.u){var a=this.qa||this.Tl;this.lb&&this.gp();this.Se=0;this.mo=-1;if(this.hn())this.mt();else{var k=Date.now()-this.Bj;if(a){var c=this.width,d=this.height,b=this.devicePixelRatio;this.lb&&(c=this.Uh,d=this.Th,b=1);if(3!==this.Kg&&(this.nc||500<=k&&this.mo!=this.Se)){a.clearRect(0,0,c,d);var k=c/2,d=d/2,c=0===this.Kg&&this.zf.complete,l=40*b,g=0,e=80*b,h;c&&(e=this.zf.width*b,h=this.zf.height*b,l=e/2,g=h/2,a.drawImage(this.zf,P(k-l),P(d-g),e,h));1>=this.Kg?(k=P(k-l)+.5,d=P(d+(g+(c?12*b:0)))+
.5,a.fillStyle=f?"red":"DodgerBlue",a.fillRect(k,d,Math.floor(e*this.Se),6*b),a.strokeStyle="black",a.strokeRect(k,d,e,6*b),a.strokeStyle="white",a.strokeRect(k-1*b,d-1*b,e+2*b,8*b)):2===this.Kg&&(a.font=this.Lc?"12pt ArialMT":"12pt Arial",a.fillStyle=f?"#f00":"#999",a.gw="middle",b=Math.round(100*this.Se)+"%",c=a.measureText?a.measureText(b):null,a.fillText(b,k-(c?c.width:0)/2,d))}this.mo=this.Se}setTimeout(function(a){return function(){a.go()}}(this),this.nc?10:100)}}};b.prototype.mt=function(){this.lb&&
(this.canvas.parentNode.removeChild(this.lb),this.lb=this.Tl=null);this.Bj=Date.now();this.Dg=S();var a,k,c;if(this.Hm)for(a=0,k=this.q.length;a<k;a++)c=this.q[a],c.F||c.hl||!c.Ga.Zd||c.T();else this.wf=!1;a=0;for(k=this.fc.length;a<k;a++)this.fc[a].Ir();2<=this.wb&&(a=this.fb/this.eb,k=this.width/this.height,this.$f=2!==this.wb&&k>a||2===this.wb&&k<a?this.height/this.eb:this.width/this.fb);this.zn?this.tl[this.zn].vm():this.fc[0].vm();this.Hm||(this.Mi=1,this.trigger(W.prototype.i.Rm,null));navigator.splashscreen&&
navigator.splashscreen.hide&&navigator.splashscreen.hide();a=0;for(k=this.q.length;a<k;a++)c=this.q[a],c.St&&c.St();this.Da(!1);this.kb&&AppMobi.webview.execute("onGameReady();")};var z=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;b.prototype.Da=function(a){if(this.na){var k=S();if(this.ot&&this.Yl&&29>k-this.ml)this.Yl=!1,this.ml=k,z?this.kj=z(this.Jj,this.canvas):this.Lj=setTimeout(this.Jj,
this.$c?1:16);else{this.Yl=!0;this.ml=k;var c=this.wb,d=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.zc;(d||this.wg)&&0<this.Be&&(c=this.Be);0<c&&(!this.Ci||window.self!==window.top)&&(c=window.innerHeight,this.Cg===window.innerWidth&&this.Bg===c||this.setSize(e(),h()));this.P||(d?(this.fi||(this.Jk=jQuery(this.canvas).css("margin")||"0",this.fi=!0),this.ug||this.Yd||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.fi?(this.ug||this.Yd||jQuery(this.canvas).css("margin",this.Jk),this.Jk="",this.fi=!1,0===this.wb&&this.setSize(Math.round(this.So/this.devicePixelRatio),Math.round(this.Ro/this.devicePixelRatio),!0)):(this.So=this.width,this.Ro=this.height));this.wf&&(d=this.hn(),this.Mi=this.Se,d&&(this.wf=!1,this.Se=1,this.trigger(W.prototype.i.Rm,null)));this.Nt();!this.xa&&!this.nc||
this.jl||this.rh||a||(this.xa=!1,this.u?this.Ib():this.wc(),this.yj&&(this.canvas&&this.canvas.toDataURL&&(this.canvas.toDataURL(this.yj[0],this.yj[1]),this.trigger(W.prototype.i.wq,null)),this.yj=null));this.aw||(this.Hd++,this.ci++,this.hi++);this.Qg+=S()-k;this.xg||a||(z?this.kj=z(this.Jj,this.canvas):this.Lj=setTimeout(this.Jj,this.$c?1:16))}}};b.prototype.Nt=function(){var a,k,c,d,b,l,g,f,e;a=S();1E3<=a-this.Dg&&(this.Dg+=1E3,this.Ik=this.hi,this.hi=0,this.qk=this.Qg,this.Qg=0);this.Ho&&(0!==
this.Gi&&(k=a-this.Gi,0!==k||this.Ct?(this.sd=k/1E3,.5<this.sd?this.sd=0:.1<this.sd&&(this.sd=.1)):(10<=this.iw&&(this.Ho=!1),this.sd=1/60)),this.Gi=a);this.Ud=this.sd*this.We;this.cc.add(this.Ud);this.jd.add(this.sd);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.wg)&&!this.zc;2<=this.wb||a&&0<this.Be?(k=this.fb/this.eb,c=this.width/this.height,d=this.wb,a&&0<this.Be&&(d=this.Be),this.$f=2!==d&&c>k||2===d&&c<k?this.height/this.eb:
this.width/this.fb,this.na&&(this.na.hm(this.na.scrollX),this.na.im(this.na.scrollY))):this.$f=this.He?this.devicePixelRatio:1;this.pb();this.zd++;this.fd.su();this.zd--;this.pb();this.zd++;c=this.Qo.Gc();a=0;for(k=c.length;a<k;a++)c[a].cw();a=0;for(k=this.q.length;a<k;a++)if(g=this.q[a],!g.F&&(g.Ka.length||g.Ca.length))for(c=0,d=g.c.length;c<d;c++)for(f=g.c[c],b=0,l=f.G.length;b<l;b++)f.G[b].Da();a=0;for(k=this.q.length;a<k;a++)if(g=this.q[a],!g.F&&(g.Ka.length||g.Ca.length))for(c=0,d=g.c.length;c<
d;c++)for(f=g.c[c],b=0,l=f.G.length;b<l;b++)e=f.G[b],e.hu&&e.hu();c=this.Il.Gc();a=0;for(k=c.length;a<k;a++)c[a].Da();this.zd--;this.pt();for(a=0;this.re&&10>a++;)this.sn(this.re);a=0;for(k=this.td.length;a<k;a++)this.td[a].Zk=!1;this.na.ze&&this.na.ze.Oa();this.nj.length=0;this.sl=!1;this.zd++;a=0;for(k=this.q.length;a<k;a++)if(g=this.q[a],!g.F&&(g.Ka.length||g.Ca.length))for(c=0,d=g.c.length;c<d;c++)for(f=g.c[c],b=0,l=f.G.length;b<l;b++)e=f.G[b],e.vh&&e.vh();c=this.Jl.Gc();a=0;for(k=c.length;a<
k;a++)c[a].vh();this.zd--};b.prototype.sn=function(a){var c=this.na;this.na.Hu();var d,b,l,g,f,e,h;if(this.u)for(d=0,b=this.q.length;d<b;d++)f=this.q[d],f.F||!f.Qj||f.global&&0!==f.c.length||-1!==a.sg.indexOf(f)||f.Qj();c==a&&(this.fd.Tb.length=0);a.vm();d=0;for(b=this.q.length;d<b;d++)if(f=this.q[d],f.global||f.Ga.wj)for(a=0,c=f.c.length;a<c;a++)if(e=f.c[a],e.Ql&&e.Ql(),e.G)for(l=0,g=e.G.length;l<g;l++)h=e.G[l],h.Ql&&h.Ql();this.sl=this.xa=!0;this.pb()};b.prototype.Kj=function(a){this.Il.add(a)};
b.prototype.Iu=function(a){this.Jl.add(a)};b.prototype.ki=function(a){return a&&-1!==a.Tg?this.sd*a.Tg:this.Ud};b.prototype.wc=function(){this.na.wc(this.qa);this.kb&&this.qa.present()};b.prototype.Ib=function(){this.na.Ib(this.u);this.u.ju()};b.prototype.bn=function(a){a&&this.xk.push(a)};b.prototype.mi=function(a){a=a.toString();return this.ae.hasOwnProperty(a)?this.ae[a]:null};var y=[];b.prototype.Ld=function(a){var c,d;c=a.type.name;var b=null;if(this.ve.hasOwnProperty(c)){if(b=this.ve[c],b.contains(a))return}else b=
y.length?y.pop():new ca,this.ve[c]=b;b.add(a);this.Xd=!0;if(a.Mc)for(c=0,d=a.siblings.length;c<d;c++)this.Ld(a.siblings[c]);this.gl&&b.Wf.push(a);this.zd++;this.trigger(Object.getPrototypeOf(a.type.Ga).i.Aq,a);this.zd--};b.prototype.pb=function(){if(this.Xd){var a,c,d,b,l,g;this.gl=!0;d=0;for(l=this.Kc.length;d<l;++d)for(a=this.Kc[d],c=a.type,c.c.push(a),b=0,g=c.Ca.length;b<g;++b)c.Ca[b].c.push(a),c.Ca[b].Qf=!0;this.Kc.length=0;this.nq();Ra(this.ve);this.Xd=this.gl=!1}};b.prototype.nq=function(){for(var a in this.ve)this.ve.hasOwnProperty(a)&&
this.$p(this.ve[a])};b.prototype.$p=function(a){var c=a.Gc(),d=c[0].type,b,l,g,f,e,h;Ua(d.c,a);d.Qf=!0;0===d.c.length&&(d.Eh=!1);b=0;for(l=d.Ca.length;b<l;++b)h=d.Ca[b],Ua(h.c,a),h.Qf=!0;b=0;for(l=this.fd.Tb.length;b<l;++b)if(e=this.fd.Tb[b],e.Bb.hasOwnProperty(d.index)&&Ua(e.Bb[d.index].yd,a),!d.F)for(g=0,f=d.Ca.length;g<f;++g)h=d.Ca[g],e.Bb.hasOwnProperty(h.index)&&Ua(e.Bb[h.index].yd,a);(b=c[0].d)&&Ua(b.c,a);for(b=0;b<c.length;++b)this.Zp(c[b],d);a.clear();y.push(a);this.xa=!0};b.prototype.Zp=
function(a,c){var d,b,l;d=0;for(b=this.xk.length;d<b;++d)this.xk[d](a);a.Ph&&c.Qh.update(a,a.Ph,null);if(d=a.d)xa(d.c,a),d.jc=!0;if(a.G)for(d=0,b=a.G.length;d<b;++d)l=a.G[d],l.Gf&&l.Gf(),l.behavior.Pe.remove(a);this.Qo.remove(a);this.Il.remove(a);this.Jl.remove(a);a.Gf&&a.Gf();this.ae.hasOwnProperty(a.uid.toString())&&delete this.ae[a.uid.toString()];this.Si--;100>c.Yh.length&&c.Yh.push(a)};var w=[];b.prototype.ue=function(a,c,d,b,l,g){var f,e,h,p;if(!a)return null;var m=this.q[a[1]],v=m.Ga.Zd;if(this.wf&&
v&&!m.hl||v&&!this.u&&11===a[0][11])return null;var y=c;v||(c=null);var q;m.Yh.length?(q=m.Yh.pop(),q.Qc=!0,m.Ga.da.call(q,m)):(q=new m.Ga.da(m),q.Qc=!1);q.uid=d&&!g?a[2]:this.Ug++;this.ae[q.uid.toString()]=q;q.jp=this.Mo++;q.Fe=m.c.length;f=0;for(e=this.Kc.length;f<e;++f)this.Kc[f].type===m&&q.Fe++;q.ng=vb;h=a[3];if(q.Qc)Ra(q.ra);else{q.ra={};if("undefined"!==typeof cr_is_preview)for(q.Qn=[],q.Qn.length=h.length,f=0,e=h.length;f<e;f++)q.Qn[f]=h[f][1];q.Qa=[];q.Qa.length=h.length}f=0;for(e=h.length;f<
e;f++)q.Qa[f]=h[f][0];if(v){var A=a[0];q.x=fa(b)?A[0]:b;q.y=fa(l)?A[1]:l;q.z=A[2];q.width=A[3];q.height=A[4];q.depth=A[5];q.e=A[6];q.opacity=A[7];q.Kb=A[8];q.Lb=A[9];q.Cb=A[10];f=A[11];!this.u&&m.K.length&&(q.Cb=f);q.cg=Za(q.Cb);this.n&&$a(q,q.Cb,this.n);if(q.Qc){f=0;for(e=A[12].length;f<e;f++)for(h=0,p=A[12][f].length;h<p;h++)q.Fa[f][h]=A[12][f][h];q.Aa.set(0,0,0,0);q.Ph.set(0,0,-1,-1);q.Xb.Nf(q.Aa);q.kk.length=0}else{q.Fa=A[12].slice(0);f=0;for(e=q.Fa.length;f<e;f++)q.Fa[f]=A[12][f].slice(0);q.aa=
[];q.Nd=[];q.Nd.length=m.K.length;q.Aa=new qa(0,0,0,0);q.Ph=new qa(0,0,-1,-1);q.Xb=new ra;q.kk=[];q.ha=zb;q.nr=Ab;q.ub=Bb;q.za=Cb;q.Gm=Db;q.$b=Eb}q.wh=!1;q.Lu=0;q.Ku=0;q.Ju=null;14===A.length&&(q.wh=!0,q.Lu=A[13][0],q.Ku=A[13][1],q.Ju=A[13][2]);f=0;for(e=m.K.length;f<e;f++)q.Nd[f]=!0;q.Kd=Fb;q.Kd();q.Up=!!q.aa.length;q.Jh=!0;q.mk=!0;m.Dh=!0;q.visible=!0;q.Tg=-1;q.d=c;q.Xe=c.c.length;"undefined"===typeof q.ea&&(q.ea=null);this.xa=q.nd=!0}q.toString=wb;var s;f=w.length=0;for(e=m.Ca.length;f<e;f++)w.push.apply(w,
m.Ca[f].Ka);w.push.apply(w,m.Ka);if(q.Qc)for(f=0,e=w.length;f<e;f++){var u=w[f];s=q.G[f];s.Qc=!0;u.behavior.da.call(s,u,q);A=a[4][f];h=0;for(p=A.length;h<p;h++)s.D[h]=A[h];s.T();u.behavior.Pe.add(q)}else for(q.G=[],f=0,e=w.length;f<e;f++)u=w[f],s=new u.behavior.da(u,q),s.Qc=!1,s.D=a[4][f].slice(0),s.T(),q.G.push(s),u.behavior.Pe.add(q);A=a[5];if(q.Qc)for(f=0,e=A.length;f<e;f++)q.D[f]=A[f];else q.D=A.slice(0);this.Kc.push(q);this.Xd=!0;c&&(c.c.push(q),1!==c.Ob||1!==c.Pb)&&(m.Eh=!0);this.Si++;if(m.Mc){if(q.Mc=
!0,q.Qc?q.siblings.length=0:q.siblings=[],!d&&!g){f=0;for(e=m.Yb.length;f<e;f++)if(m.Yb[f]!==m){if(!m.Yb[f].Xc)return null;q.siblings.push(this.ue(m.Yb[f].Xc,y,!1,v?q.x:b,v?q.y:l,!0))}f=0;for(e=q.siblings.length;f<e;f++)for(q.siblings[f].siblings.push(q),h=0;h<e;h++)f!==h&&q.siblings[f].siblings.push(q.siblings[h])}}else q.Mc=!1,q.siblings=null;q.T();f=0;for(e=q.G.length;f<e;f++)q.G[f].gu&&q.G[f].gu();return q};b.prototype.kg=function(a){var c,d;c=0;for(d=this.na.R.length;c<d;c++){var b=this.na.R[c];
if(bb(b.name,a))return b}return null};b.prototype.wd=function(a){a=P(a);0>a&&(a=0);a>=this.na.R.length&&(a=this.na.R.length-1);return this.na.R[a]};b.prototype.pk=function(a){var c,d;c=0;for(d=a.length;c<d;c++)a[c].ca().pa=!0};b.prototype.hh=function(a){var c,d;c=0;for(d=a.length;c<d;c++)a[c].hh()};b.prototype.ij=function(a){var c,d;c=0;for(d=a.length;c<d;c++)a[c].ij()};b.prototype.Re=function(a){var c,d;c=0;for(d=a.length;c<d;c++)a[c].Re()};b.prototype.Pp=function(a){if(a.Dh){var c,d,b=a.c;c=0;for(d=
b.length;c<d;++c)b[c].Gm();b=this.Kc;c=0;for(d=b.length;c<d;++c)b[c].type===a&&b[c].Gm();a.Dh=!1}};b.prototype.Ok=function(a,c,d,b){var f,l,g=a?1!==a.Ob||1!==a.Pb:!1;if(c.F)for(a=0,f=c.Qi.length;a<f;++a)l=c.Qi[a],g||l.Eh?va(b,l.c):(this.Pp(l),l.Qh.kp(d,b));else g||c.Eh?va(b,c.c):(this.Pp(c),c.Qh.kp(d,b))};b.prototype.Xs=function(a,c,d,b){var f,l;f=0;for(l=c.length;f<l;++f)this.Ok(a,c[f],d,b)};b.prototype.Ws=function(a,c,d){var b=this.Ap;b&&this.Xs(a,b.Gl,c,d)};b.prototype.Rf=function(a,c,d,b){var f=
a.ca(),l,g,e,h,p,m;if(f.pa)for(b||(f.pa=!1,f.c.length=0),l=0,h=a.c.length;l<h;l++){if(e=a.c[l],e.za(),p=e.d.Ba(c,d,!0),m=e.d.Ba(c,d,!1),e.ub(p,m)){if(b)return!1;f.c.push(e)}}else{l=g=0;for(h=f.c.length;l<h;l++)if(e=f.c[l],e.za(),p=e.d.Ba(c,d,!0),m=e.d.Ba(c,d,!1),e.ub(p,m)){if(b)return!1;f.c[g]=f.c[l];g++}b||(f.c.length=g)}a.qc();return b?!0:f.Yk()};b.prototype.Fj=function(a,c){if(!(a&&c&&a!==c&&a.nd&&c.nd))return!1;a.za();c.za();var d=a.d,b=c.d,f,l,g,e,h,p,m,v;if(d===b||d.Ob===b.Ob&&b.Pb===b.Pb&&
d.scale===b.scale&&d.e===b.e&&d.tb===b.tb){if(!a.Aa.zt(c.Aa)||!a.Xb.Rn(c.Xb)||a.wh&&c.wh)return!1;if(a.wh)return this.Dp(a,c);if(c.wh)return this.Dp(c,a);m=a.ea&&!a.ea.tf();f=c.ea&&!c.ea.tf();if(!m&&!f)return!0;m?(a.ea.df(a.width,a.height,a.e),m=a.ea):(this.Sc.Mf(a.Xb,a.x,a.y,a.width,a.height),m=this.Sc);f?(c.ea.df(c.width,c.height,c.e),v=c.ea):(this.Sc.Mf(c.Xb,c.x,c.y,c.width,c.height),v=this.Sc);return m.tg(v,c.x-a.x,c.y-a.y)}m=a.ea&&!a.ea.tf();f=c.ea&&!c.ea.tf();m?(a.ea.df(a.width,a.height,a.e),
this.Sc.sp(a.ea)):this.Sc.Mf(a.Xb,a.x,a.y,a.width,a.height);m=this.Sc;f?(c.ea.df(c.width,c.height,c.e),this.xm.sp(c.ea)):this.xm.Mf(c.Xb,c.x,c.y,c.width,c.height);v=this.xm;f=0;for(l=m.Pc;f<l;f++)g=2*f,e=g+1,h=m.Sa[g],p=m.Sa[e],m.Sa[g]=d.Ra(h+a.x,p+a.y,!0),m.Sa[e]=d.Ra(h+a.x,p+a.y,!1);m.za();f=0;for(l=v.Pc;f<l;f++)g=2*f,e=g+1,h=v.Sa[g],p=v.Sa[e],v.Sa[g]=b.Ra(h+c.x,p+c.y,!0),v.Sa[e]=b.Ra(h+c.x,p+c.y,!1);v.za();return m.tg(v,0,0)};var u=new ra;new qa(0,0,0,0);var l=[];b.prototype.Dp=function(a,c){var d,
b,f,g,e=c.Aa,h=a.x,p=a.y;a.Xv(e,l);var m=c.ea&&!c.ea.tf();d=0;for(b=l.length;d<b;++d)if(f=l[d],g=f.dw,e.At(g,h,p)&&(u.Nf(g),u.offset(h,p),u.Rn(c.Xb)))if(m)if(c.ea.df(c.width,c.height,c.e),f.Wl){if(f.Wl.tg(c.ea,c.x-(h+g.left),c.y-(p+g.top)))return l.length=0,!0}else{if(this.Sc.Mf(u,0,0,g.right-g.left,g.bottom-g.top),this.Sc.tg(c.ea,c.x,c.y))return l.length=0,!0}else if(f.Wl){if(this.Sc.Mf(c.Xb,0,0,c.width,c.height),f.Wl.tg(this.Sc,-(h+g.left),-(p+g.top)))return l.length=0,!0}else return l.length=0,
!0;l.length=0;return!1};b.prototype.Kp=function(a,c){if(!c)return!1;var d,b,f,l,g;d=0;for(b=a.Ka.length;d<b;d++)if(a.Ka[d].behavior instanceof c)return!0;if(!a.F)for(d=0,b=a.Ca.length;d<b;d++)for(g=a.Ca[d],f=0,l=g.Ka.length;f<l;f++)if(g.Ka[f].behavior instanceof c)return!0;return!1};b.prototype.Lp=function(a){return this.Kp(a,Tb.sv)};b.prototype.Cm=function(a){return this.Kp(a,Tb.tv)};var v=[];b.prototype.Sf=function(a){var c,d,b;a.za();this.Ws(a.d,a.Aa,v);c=0;for(d=v.length;c<d;++c)if(b=v[c],b.ra.solidEnabled&&
this.Fj(a,b))return v.length=0,b;v.length=0;return null};b.prototype.mu=function(a){var c=fa(void 0)?100:void 0,d=0,b=a.x,f=a.y,l=0,g=0,e=0,h=this.Sf(a);if(!h)return!0;for(;d<=c;){switch(l){case 0:g=0;e=-1;d++;break;case 1:g=1;e=-1;break;case 2:g=1;e=0;break;case 3:e=g=1;break;case 4:g=0;e=1;break;case 5:g=-1;e=1;break;case 6:g=-1;e=0;break;case 7:e=g=-1}l=(l+1)%8;a.x=P(b+g*d);a.y=P(f+e*d);a.ha();if(!this.Fj(a,h)&&(h=this.Sf(a),!h))return!0}a.x=b;a.y=f;a.ha();return!1};b.prototype.mj=function(a,c){a.nd&&
c.nd&&this.nj.push([a,c])};b.prototype.Dr=function(a,c){var d,b,f;d=0;for(b=this.nj.length;d<b;d++)if(f=this.nj[d],f[0]==a&&f[1]==c||f[0]==c&&f[1]==a)return!0;return!1};var A=-1;b.prototype.trigger=function(a,c,d){if(!this.na)return!1;var b=this.na.ze;if(!b)return!1;var f=!1,l,g,e;A++;var h=b.vk;g=0;for(e=h.length;g<e;++g)l=this.Hp(a,c,h[g],d),f=f||l;l=this.Hp(a,c,b,d);A--;return f||l};b.prototype.Hp=function(a,c,d,b){var f=!1,l,g,e,h;if(c)for(e=this.Am(a,c,c.type.name,d,b),f=f||e,h=c.type.Ca,l=0,
g=h.length;l<g;++l)e=this.Am(a,c,h[l].name,d,b),f=f||e;else e=this.Am(a,c,"system",d,b),f=f||e;return f};b.prototype.Am=function(a,c,d,b,f){var l,g=!1,e=!1,e="undefined"!==typeof f,h=(e?b.xn:b.Ip)[d];if(!h)return g;var p=null;b=0;for(l=h.length;b<l;++b)if(h[b].method==a){p=h[b].fg;break}if(!p)return g;a=e?p[f]:p;if(!a)return null;b=0;for(l=a.length;b<l;b++)f=a[b][0],e=a[b][1],e=this.Ds(c,d,f,e),g=g||e;return g};b.prototype.Ds=function(a,c,d,b){var f,l,g=!1;this.Bm++;var e=this.jb().Hb;e&&this.hh(e.ge);
var h=1<this.Bm;this.hh(d.ge);h&&this.lu();var p=this.jj(d);p.Hb=d;a&&(f=this.types[c].ca(),f.pa=!1,f.c.length=1,f.c[0]=a,this.types[c].qc());a=!0;if(d.parent){c=p.Cp;for(f=d.parent;f;)c.push(f),f=f.parent;c.reverse();f=0;for(l=c.length;f<l;f++)if(!c[f].uu()){a=!1;break}}a&&(this.ci++,d.Dc?d.tu(b):d.Oa(),g=g||p.Le);this.dj();h&&this.fu();this.Re(d.ge);e&&this.Re(e.ge);this.Xd&&0===this.zd&&0===A&&!this.il&&this.pb();this.Bm--;return g};b.prototype.jg=function(){var a=this.jb();return a.Hb.$a[a.Pa]};
b.prototype.lu=function(){this.Oi++;this.Oi>=this.zl.length&&this.zl.push([])};b.prototype.fu=function(){this.Oi--};b.prototype.Dn=function(){return this.zl[this.Oi]};b.prototype.jj=function(a){this.bi++;this.bi>=this.Bk.length&&this.Bk.push(new Gb);var c=this.jb();c.reset(a);return c};b.prototype.dj=function(){this.bi--};b.prototype.jb=function(){return this.Bk[this.bi]};b.prototype.En=function(a,c){for(var d,b,f,l,g,e;c;){d=0;for(b=c.Fc.length;d<b;d++)if(e=c.Fc[d],e instanceof Hb&&bb(a,e.name))return e;
c=c.parent}d=0;for(b=this.td.length;d<b;d++)for(g=this.td[d],f=0,l=g.Wd.length;f<l;f++)if(e=g.Wd[f],e instanceof Hb&&bb(a,e.name))return e;return null};b.prototype.Gn=function(a){var c,d;c=0;for(d=this.fc.length;c<d;c++)if(this.fc[c].V===a)return this.fc[c];return null};b.prototype.ni=function(a){var c,d;c=0;for(d=this.q.length;c<d;c++)if(this.q[c].V===a)return this.q[c];return null};b.prototype.Ns=function(a){var c,d;c=0;for(d=this.Pd.length;c<d;c++)if(this.Pd[c].V===a)return this.Pd[c];return null};
b.prototype.pt=function(){var d=this,b=this.sj,f=this.Ad,l=this.Ig,g=!1;this.xp&&(g=!0,b="__c2_continuouspreview",this.xp=!1);if(b.length){this.pb();f=this.yu();if(window.indexedDB&&!this.nc)m(b,f,function(){H("Saved state to IndexedDB storage ("+f.length+" bytes)");d.Ad=f;d.trigger(W.prototype.i.ak,null);d.Ad="";g&&c()},function(a){try{localStorage.setItem("__c2save_"+b,f),H("Saved state to WebStorage ("+f.length+" bytes)"),d.Ad=f,d.trigger(W.prototype.i.ak,null),d.Ad="",g&&c()}catch(l){H("Failed to save game state: "+
a+"; "+l)}});else try{localStorage.setItem("__c2save_"+b,f),H("Saved state to WebStorage ("+f.length+" bytes)"),d.Ad=f,this.trigger(W.prototype.i.ak,null),d.Ad="",g&&c()}catch(e){H("Error saving to WebStorage: "+e)}this.yb=this.Ig=this.sj=""}l.length&&(window.indexedDB&&!this.nc?a(l,function(a){a?(d.yb=a,H("Loaded state from IndexedDB storage ("+d.yb.length+" bytes)")):(d.yb=localStorage.getItem("__c2save_"+l)||"",H("Loaded state from WebStorage ("+d.yb.length+" bytes)"));d.rh=!1;d.yb.length||d.trigger(W.prototype.i.Zj,
null)},function(){d.yb=localStorage.getItem("__c2save_"+l)||"";H("Loaded state from WebStorage ("+d.yb.length+" bytes)");d.rh=!1;d.yb.length||d.trigger(W.prototype.i.Zj,null)}):(this.yb=localStorage.getItem("__c2save_"+l)||"",H("Loaded state from WebStorage ("+this.yb.length+" bytes)"),this.rh=!1,d.yb.length||d.trigger(W.prototype.i.Zj,null)),this.sj=this.Ig="");this.yb.length&&(this.pb(),this.Mt(this.yb),this.Ad=this.yb,this.trigger(W.prototype.i.Nq,null),this.yb=this.Ad="")};b.prototype.yu=function(){var a,
c,b,f,l,g,e,h={c2save:!0,version:1,rt:{time:this.cc.ja,walltime:this.jd.ja,timescale:this.We,tickcount:this.Hd,execcount:this.ci,next_uid:this.Ug,running_layout:this.na.V,start_time_offset:Date.now()-this.Bj},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};a=0;for(c=this.q.length;a<c;a++)if(l=this.q[a],!l.F&&!this.Lp(l)){g={instances:[]};Qa(l.ra)&&(g.ex=d(l.ra));b=0;for(f=l.c.length;b<f;b++)g.instances.push(this.gm(l.c[b]));h.types[l.V.toString()]=g}a=0;for(c=this.fc.length;a<c;a++)b=
this.fc[a],h.layouts[b.V.toString()]=b.rb();f=h.events.groups;a=0;for(c=this.Pd.length;a<c;a++)b=this.Pd[a],f[b.V.toString()]=this.oi[b.pg].kf;c=h.events.cnds;for(e in this.ef)this.ef.hasOwnProperty(e)&&(a=this.ef[e],Qa(a.ra)&&(c[e]={ex:d(a.ra)}));c=h.events.acts;for(e in this.bf)this.bf.hasOwnProperty(e)&&(a=this.bf[e],Qa(a.ra)&&(c[e]={ex:a.ra}));c=h.events.vars;for(e in this.Xf)this.Xf.hasOwnProperty(e)&&(a=this.Xf[e],a.yi||a.parent&&!a.zg||(c[e]=a.data));h.system=this.fd.rb();return JSON.stringify(h)};
b.prototype.lp=function(){var a,c,d,b,f,l;this.ae={};a=0;for(c=this.q.length;a<c;a++)if(d=this.q[a],!d.F)for(b=0,f=d.c.length;b<f;b++)l=d.c[b],this.ae[l.uid.toString()]=l};b.prototype.Mt=function(a){a=JSON.parse(a);if(a.c2save&&!(1<a.version)){var c=a.rt;this.cc.reset();this.cc.ja=c.time;this.jd.reset();this.jd.ja=c.walltime||0;this.We=c.timescale;this.Hd=c.tickcount;this.Bj=Date.now()-c.start_time_offset;var d=c.running_layout;if(d!==this.na.V)if(d=this.Gn(d))this.sn(d);else return;var b,f,l,g,e,
h,p;h=a.types;for(f in h)if(h.hasOwnProperty(f)&&(g=this.ni(parseInt(f,10)))&&!g.F&&!this.Lp(g)){h[f].ex?g.ra=h[f].ex:Ra(g.ra);e=g.c;l=h[f].instances;d=0;for(b=la(e.length,l.length);d<b;d++)this.Ki(e[d],l[d]);d=l.length;for(b=e.length;d<b;d++)this.Ld(e[d]);d=e.length;for(b=l.length;d<b;d++){e=null;if(g.Ga.Zd&&(e=this.na.li(l[d].w.l),!e))continue;e=this.ue(g.Xc,e,!1,0,0,!0);this.Ki(e,l[d])}g.Qf=!0}this.pb();this.lp();b=a.layouts;for(f in b)b.hasOwnProperty(f)&&(d=this.Gn(parseInt(f,10)))&&d.Mb(b[f]);
b=a.events.groups;for(f in b)b.hasOwnProperty(f)&&(d=this.Ns(parseInt(f,10)))&&this.oi[d.pg]&&(this.oi[d.pg].kf=b[f]);d=a.events.cnds;for(f in d)d.hasOwnProperty(f)&&this.ef.hasOwnProperty(f)&&(this.ef[f].ra=d[f].ex);d=a.events.acts;for(f in d)d.hasOwnProperty(f)&&this.bf.hasOwnProperty(f)&&(this.bf[f].ra=d[f].ex);d=a.events.vars;for(f in d)d.hasOwnProperty(f)&&this.Xf.hasOwnProperty(f)&&(this.Xf[f].data=d[f]);this.Ug=c.next_uid;this.fd.Mb(a.system);d=0;for(b=this.q.length;d<b;d++)if(g=this.q[d],
!g.F)for(f=0,a=g.c.length;f<a;f++){e=g.c[f];if(g.Mc)for(h=e.ng(),c=e.siblings.length=0,l=g.Yb.length;c<l;c++)p=g.Yb[c],g!==p&&e.siblings.push(p.c[h]);e.kd&&e.kd();if(e.G)for(c=0,l=e.G.length;c<l;c++)h=e.G[c],h.kd&&h.kd()}this.xa=!0}};b.prototype.gm=function(a,c){var b,f,l,g,e;g=a.type;l=g.Ga;var h={};c?h.c2=!0:h.uid=a.uid;Qa(a.ra)&&(h.ex=d(a.ra));if(a.Qa&&a.Qa.length)for(h.ivs={},b=0,f=a.Qa.length;b<f;b++)h.ivs[a.type.fl[b].toString()]=a.Qa[b];if(l.Zd){l={x:a.x,y:a.y,w:a.width,h:a.height,l:a.d.V,
zi:a.$b()};0!==a.e&&(l.a=a.e);1!==a.opacity&&(l.o=a.opacity);.5!==a.Kb&&(l.hX=a.Kb);.5!==a.Lb&&(l.hY=a.Lb);0!==a.Cb&&(l.bm=a.Cb);a.visible||(l.v=a.visible);a.nd||(l.ce=a.nd);-1!==a.Tg&&(l.mts=a.Tg);if(g.K.length)for(l.fx=[],b=0,f=g.K.length;b<f;b++)e=g.K[b],l.fx.push({name:e.name,active:a.Nd[e.index],params:a.Fa[e.index]});h.w=l}if(a.G&&a.G.length)for(h.behs={},b=0,f=a.G.length;b<f;b++)g=a.G[b],g.rb&&(h.behs[g.type.V.toString()]=g.rb());a.rb&&(h.data=a.rb());return h};b.prototype.Ps=function(a,c){var d,
b;d=0;for(b=a.fl.length;d<b;d++)if(a.fl[d]===c)return d;return-1};b.prototype.Ls=function(a,c){var d,b;d=0;for(b=a.G.length;d<b;d++)if(a.G[d].type.V===c)return d;return-1};b.prototype.Ki=function(a,c,d){var b,f,l,g,e;e=a.type;l=e.Ga;if(d){if(!c.c2)return}else a.uid=c.uid;c.ex?a.ra=c.ex:Ra(a.ra);if(f=c.ivs)for(b in f)f.hasOwnProperty(b)&&(d=this.Ps(e,parseInt(b,10)),0>d||d>=a.Qa.length||(a.Qa[d]=f[b]));if(l.Zd){l=c.w;a.d.V!==l.l&&(d=a.d,a.d=this.na.li(l.l),a.d?(a.d.c.push(a),a.d.jc=!0,xa(d.c,a),d.jc=
!0):(a.d=d,this.Ld(a)));a.x=l.x;a.y=l.y;a.width=l.w;a.height=l.h;a.Xe=l.zi;a.e=l.hasOwnProperty("a")?l.a:0;a.opacity=l.hasOwnProperty("o")?l.o:1;a.Kb=l.hasOwnProperty("hX")?l.hX:.5;a.Lb=l.hasOwnProperty("hY")?l.hY:.5;a.visible=l.hasOwnProperty("v")?l.v:!0;a.nd=l.hasOwnProperty("ce")?l.ce:!0;a.Tg=l.hasOwnProperty("mts")?l.mts:-1;a.Cb=l.hasOwnProperty("bm")?l.bm:0;a.cg=Za(a.Cb);this.n&&$a(a,a.Cb,this.n);a.ha();if(l.hasOwnProperty("fx"))for(d=0,f=l.fx.length;d<f;d++)g=e.Qk(l.fx[d].name),0>g||(a.Nd[g]=
l.fx[d].active,a.Fa[g]=l.fx[d].params);a.Kd()}if(e=c.behs)for(b in e)e.hasOwnProperty(b)&&(l=this.Ls(a,parseInt(b,10)),0>l||a.G[l].Mb(e[b]));c.data&&a.Mb(c.data)};Ib=function(a){return new b(document.getElementById(a))};Jb=function(a,c){return new b({dc:!0,width:a,height:c})};window.cr_createRuntime=Ib;window.cr_createDCRuntime=Jb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.fw=!0;document.body.appendChild(a);
a=new b(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 b(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();
window.cr_getC2Runtime=function(){var e=document.getElementById("c2canvas");return e?e.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_sizeCanvas=function(e,h){if(0!==e&&0!==h){var b=window.cr_getC2Runtime();b&&b.setSize(e,h)}};window.cr_setSuspended=function(e){var h=window.cr_getC2Runtime();h&&h.setSuspended(e)};
(function(){function e(a,c){this.b=a;this.ze=null;this.scrollX=this.b.fb/2;this.scrollY=this.b.eb/2;this.scale=1;this.e=0;this.ig=!0;this.name=c[0];this.width=c[1];this.height=c[2];this.Mp=c[3];this.vp=c[4];this.V=c[5];var d=c[6],b,f;this.R=[];this.sg=[];b=0;for(f=d.length;b<f;b++){var g=new Kb(this,d[b]);g.Oo=b;this.R.push(g)}d=c[7];this.Ge=[];b=0;for(f=d.length;b<f;b++){var g=d[b],e=this.b.q[g[1]];e.Xc||(e.Xc=g);this.Ge.push(g);-1===this.sg.indexOf(e)&&this.sg.push(e)}this.K=[];this.aa=[];this.Fa=
[];b=0;for(f=c[8].length;b<f;b++)this.K.push({id:c[8][b][0],name:c[8][b][1],mb:-1,Za:!0,index:b}),this.Fa.push(c[8][b][2].slice(0));this.Kd();this.jh=new qa(0,0,1,1);this.Zl=new qa(0,0,1,1);this.be={}}function h(a,c){return a.Xe-c.Xe}function b(a,c){this.ta=a;this.b=a.b;this.c=[];this.scale=1;this.e=0;this.we=!1;this.Id=new qa(0,0,0,0);this.Fp=new ra;this.nb=this.Ya=this.ob=this.Xa=0;this.jc=!1;this.name=c[0];this.index=c[1];this.V=c[2];this.visible=c[3];this.Rd=c[4];this.Jd=c[5];this.Ob=c[6];this.Pb=
c[7];this.opacity=c[8];this.Hk=c[9];this.tb=c[10];this.Cb=c[11];this.as=c[12];this.cg="source-over";this.qb=this.sb=0;this.de=!1;var d=c[13],b,f;this.nf=[];b=0;for(f=d.length;b<f;b++){var g=d[b],e=this.b.q[g[1]];e.Xc||(e.Xc=g,e.Mr=this.index);this.nf.push(g);-1===this.ta.sg.indexOf(e)&&this.ta.sg.push(e)}this.K=[];this.aa=[];this.Fa=[];b=0;for(f=c[14].length;b<f;b++)this.K.push({id:c[14][b][0],name:c[14][b][1],mb:-1,Za:!0,index:b}),this.Fa.push(c[14][b][2].slice(0));this.Kd();this.jh=new qa(0,0,1,
1);this.Zl=new qa(0,0,1,1)}e.prototype.xu=function(a){var c=a.type.V.toString();this.be.hasOwnProperty(c)||(this.be[c]=[]);this.be[c].push(this.b.gm(a))};e.prototype.Jn=function(){var a=this.R[0];return!a.Jd&&1===a.opacity&&!a.Hk&&a.visible};e.prototype.Kd=function(){this.aa.length=0;var a,c,d;a=0;for(c=this.K.length;a<c;a++)d=this.K[a],d.Za&&this.aa.push(d)};e.prototype.Pk=function(a){var c,d,b;c=0;for(d=this.K.length;c<d;c++)if(b=this.K[c],b.name===a)return b;return null};var g=[],m=!0;e.prototype.vm=
function(){this.vp&&(this.ze=this.b.Ck[this.vp],this.ze.Dm());this.b.na=this;this.scrollX=this.b.fb/2;this.scrollY=this.b.eb/2;var a,c,d,b,f,e,s;a=0;for(d=this.b.q.length;a<d;a++)if(c=this.b.q[a],!c.F)for(f=c.c,c=0,b=f.length;c<b;c++)if(e=f[c],e.d){var z=e.d.Oo;z>=this.R.length&&(z=this.R.length-1);e.d=this.R[z];-1===e.d.c.indexOf(e)&&e.d.c.push(e);e.d.jc=!0}if(!m)for(a=0,d=this.R.length;a<d;++a)this.R[a].c.sort(h);g.length=0;this.tr();a=0;for(d=this.R.length;a<d;a++)e=this.R[a],e.Jr(),e.Fm();f=!1;
if(!this.ig){for(s in this.be)if(this.be.hasOwnProperty(s)&&(c=this.b.ni(parseInt(s,10)))&&!c.F&&this.b.Cm(c)){b=this.be[s];a=0;for(d=b.length;a<d;a++){e=null;if(c.Ga.Zd&&(e=this.li(b[a].w.l),!e))continue;e=this.b.ue(c.Xc,e,!1,0,0,!0);this.b.Ki(e,b[a]);f=!0;g.push(e)}b.length=0}a=0;for(d=this.R.length;a<d;a++)this.R[a].c.sort(h),this.R[a].jc=!0}f&&(this.b.pb(),this.b.lp());for(a=0;a<g.length;a++)if(e=g[a],e.type.Mc)for(d=e.ng(),c=0,b=e.type.Yb.length;c<b;c++)s=e.type.Yb[c],e.type!==s&&(s.c.length>
d?e.siblings.push(s.c[d]):s.Xc&&(f=this.b.ue(s.Xc,e.d,!0,e.x,e.y,!0),this.b.pb(),s.Rj(),e.siblings.push(f),g.push(f)));a=0;for(d=this.Ge.length;a<d;a++)this.b.ue(this.Ge[a],null,!0);this.b.re=null;this.b.pb();if(this.b.qa&&!this.b.P)for(a=0,d=this.b.q.length;a<d;a++)s=this.b.q[a],!s.F&&s.c.length&&s.gj&&s.gj(this.b.qa);a=0;for(d=g.length;a<d;a++)e=g[a],this.b.trigger(Object.getPrototypeOf(e.type.Ga).i.zq,e);g.length=0;this.b.trigger(W.prototype.i.Qm,null);this.ig=!1};e.prototype.Ir=function(){var a,
c,d,b,f;c=a=0;for(d=this.Ge.length;a<d;a++)b=this.Ge[a],f=this.b.q[b[1]],f.global?this.b.ue(b,null,!0):(this.Ge[c]=b,c++);this.Ge.length=c};e.prototype.Hu=function(){this.b.trigger(W.prototype.i.Mq,null);this.b.fd.Tb.length=0;var a,c,d,b,f,g;a=0;for(c=this.R.length;a<c;a++)for(this.R[a].Tp(),f=this.R[a].c,d=0,b=f.length;d<b;d++)g=f[d],g.type.global||this.b.Cm(g.type)&&this.xu(g);a=0;for(c=this.R.length;a<c;a++){f=this.R[a].c;d=0;for(b=f.length;d<b;d++)g=f[d],g.type.global||this.b.Ld(g);this.b.pb();
f.length=0;this.R[a].jc=!0}a=0;for(c=this.b.q.length;a<c;a++)if(f=this.b.q[a],!(f.global||f.Ga.Zd||f.Ga.wj||f.F)){d=0;for(b=f.c.length;d<b;d++)this.b.Ld(f.c[d]);this.b.pb()}m=!1};e.prototype.wc=function(a){var c,d=a,b=!1,f=!this.b.xc;f&&(this.b.Ii||(this.b.Ii=document.createElement("canvas"),c=this.b.Ii,c.width=this.b.O,c.height=this.b.N,this.b.oo=c.getContext("2d"),b=!0),c=this.b.Ii,d=this.b.oo,c.width!==this.b.O&&(c.width=this.b.O,b=!0),c.height!==this.b.N&&(c.height=this.b.N,b=!0),b&&(d.webkitImageSmoothingEnabled=
this.b.Y,d.mozImageSmoothingEnabled=this.b.Y,d.msImageSmoothingEnabled=this.b.Y,d.imageSmoothingEnabled=this.b.Y));d.globalAlpha=1;d.globalCompositeOperation="source-over";this.b.fk&&!this.Jn()&&d.clearRect(0,0,this.b.O,this.b.N);var g,e,b=0;for(g=this.R.length;b<g;b++)e=this.R[b],e.visible&&0<e.opacity&&11!==e.Cb&&(e.c.length||!e.Jd)?e.wc(d):e.Fm();f&&a.drawImage(c,0,0,this.b.width,this.b.height)};e.prototype.Ib=function(a){var c=0<this.aa.length||this.b.Vf||!this.b.xc;if(c){this.b.ec||(this.b.ec=
a.Td(this.b.O,this.b.N,this.b.Y));if(this.b.ec.bg!==this.b.O||this.b.ec.ag!==this.b.N)a.deleteTexture(this.b.ec),this.b.ec=a.Td(this.b.O,this.b.N,this.b.Y);a.dd(this.b.ec);this.b.xc||a.Lf(this.b.O,this.b.N)}else this.b.ec&&(a.dd(null),a.deleteTexture(this.b.ec),this.b.ec=null);this.b.fk&&!this.Jn()&&a.clear(0,0,0,0);var d,b,f;d=0;for(b=this.R.length;d<b;d++)f=this.R[d],f.visible&&0<f.opacity&&(f.c.length||!f.Jd)?f.Ib(a):f.Fm();c&&(0===this.aa.length||1===this.aa.length&&this.b.xc?(1===this.aa.length?
(c=this.aa[0].index,a.ed(this.aa[0].mb),a.Kf(null,1/this.b.O,1/this.b.N,0,0,1,1,this.scale,this.e,0,0,this.b.O/2,this.b.N/2,this.Fa[c]),a.hj(this.aa[0].mb)&&(this.b.xa=!0)):a.ed(0),this.b.xc||a.Lf(this.b.width,this.b.height),a.dd(null),a.Te(1),a.hc(this.b.ec),a.pp(),a.ee(),a.me(),c=this.b.width/2,d=this.b.height/2,a.ih(-c,d,c,d,c,-d,-c,-d),a.hc(null)):this.$l(a,null,null,null))};e.prototype.lg=function(){return 0<this.aa.length||this.b.Vf||!this.b.xc?this.b.ec:null};e.prototype.Hn=function(){var a=
this.R[0].Zb(),c,d,b;c=1;for(d=this.R.length;c<d;c++)b=this.R[c],(0!==b.Ob||0!==b.Pb)&&b.Zb()<a&&(a=b.Zb());return a};e.prototype.hm=function(a){if(!this.Mp){var c=1/this.Hn()*this.b.O/2;a>this.width-c&&(a=this.width-c);a<c&&(a=c)}this.scrollX!==a&&(this.scrollX=a,this.b.xa=!0)};e.prototype.im=function(a){if(!this.Mp){var c=1/this.Hn()*this.b.N/2;a>this.height-c&&(a=this.height-c);a<c&&(a=c)}this.scrollY!==a&&(this.scrollY=a,this.b.xa=!0)};e.prototype.tr=function(){this.hm(this.scrollX);this.im(this.scrollY)};
e.prototype.$l=function(a,c,d,b){var f=d?d.aa:c?c.aa:this.aa,g=1,e=0,h=0,m=0,w=this.b.O,u=this.b.N;d?(g=d.d.Zb(),e=d.d.bb(),h=d.d.Xa,m=d.d.Ya,w=d.d.ob,u=d.d.nb):c&&(g=c.Zb(),e=c.bb(),h=c.Xa,m=c.Ya,w=c.ob,u=c.nb);var l=this.b.Kk,v,A,n,k,r=0,ja=1,C,I=this.b.O,t=this.b.N,ka=I/2,X=t/2,K=c?c.jh:this.jh,E=c?c.Zl:this.Zl,x=0,R=0,B=0,G=0,D=I,U=I,F=t,J=t,M=n=0,aa=d?d.d.bb():0;if(d){v=0;for(A=f.length;v<A;v++)n+=a.Ts(f[v].mb),M+=a.Us(f[v].mb);k=d.Aa;x=c.Ra(k.left,k.top,!0,!0);B=c.Ra(k.left,k.top,!1,!0);D=c.Ra(k.right,
k.bottom,!0,!0);F=c.Ra(k.right,k.bottom,!1,!0);0!==aa&&(v=c.Ra(k.right,k.top,!0,!0),A=c.Ra(k.right,k.top,!1,!0),R=c.Ra(k.left,k.bottom,!0,!0),G=c.Ra(k.left,k.bottom,!1,!0),k=Math.min(x,D,v,R),D=Math.max(x,D,v,R),x=k,k=Math.min(B,F,A,G),F=Math.max(B,F,A,G),B=k);x-=n;B-=M;D+=n;F+=M;E.left=x/I;E.top=1-B/t;E.right=D/I;E.bottom=1-F/t;R=x=P(x);G=B=P(B);U=D=oa(D);J=F=oa(F);R-=n;G-=M;U+=n;J+=M;0>x&&(x=0);0>B&&(B=0);D>I&&(D=I);F>t&&(F=t);0>R&&(R=0);0>G&&(G=0);U>I&&(U=I);J>t&&(J=t);K.left=x/I;K.top=1-B/t;K.right=
D/I;K.bottom=1-F/t}else K.left=E.left=0,K.top=E.top=0,K.right=E.right=1,K.bottom=E.bottom=1;M=d&&((d.e||aa)&&a.gh(f[0].mb)||0!==n||0!==M||1!==d.opacity||d.type.Ga.Lo)||c&&!d&&1!==c.opacity;a.pp();if(M){l[r]||(l[r]=a.Td(I,t,this.b.Y));if(l[r].bg!==I||l[r].ag!==t)a.deleteTexture(l[r]),l[r]=a.Td(I,t,this.b.Y);a.ed(0);a.dd(l[r]);C=J-G;a.clearRect(R,t-G-C,U-R,C);d?d.Ib(a):(a.hc(this.b.oc),a.Te(c.opacity),a.ee(),a.translate(-ka,-X),a.me(),a.Ed(x,F,D,F,D,B,x,B,K));E.left=E.top=0;E.right=E.bottom=1;d&&(k=
K.top,K.top=K.bottom,K.bottom=k);r=1;ja=0}a.Te(1);n=f.length-1;var aa=a.Xl(f[n].mb)||!c&&!d&&!this.b.xc,ma=0;v=0;for(A=f.length;v<A;v++){l[r]||(l[r]=a.Td(I,t,this.b.Y));if(l[r].bg!==I||l[r].ag!==t)a.deleteTexture(l[r]),l[r]=a.Td(I,t,this.b.Y);a.ed(f[v].mb);ma=f[v].index;a.hj(f[v].mb)&&(this.b.xa=!0);0!=v||M?(a.Kf(b,1/I,1/t,E.left,E.top,E.right,E.bottom,g,e,h,m,(h+w)/2,(m+u)/2,d?d.Fa[ma]:c?c.Fa[ma]:this.Fa[ma]),a.hc(null),v!==n||aa?(a.dd(l[r]),C=J-G,k=t-G-C,a.clearRect(R,k,U-R,C)):(d?a.fe(d.sb,d.qb):
c&&a.fe(c.sb,c.qb),a.dd(b)),a.hc(l[ja]),a.ee(),a.translate(-ka,-X),a.me(),a.Ed(x,F,D,F,D,B,x,B,K),v!==n||aa||a.hc(null)):(a.dd(l[r]),C=J-G,k=t-G-C,a.clearRect(R,k,U-R,C),d?(a.Kf(b,1/d.width,1/d.height,E.left,E.top,E.right,E.bottom,g,e,h,m,(h+w)/2,(m+u)/2,d.Fa[ma]),d.Ib(a)):(a.Kf(b,1/I,1/t,0,0,1,1,g,e,h,m,(h+w)/2,(m+u)/2,c?c.Fa[ma]:this.Fa[ma]),a.hc(c?this.b.oc:this.b.ec),a.ee(),a.translate(-ka,-X),a.me(),a.Ed(x,F,D,F,D,B,x,B,K)),E.left=E.top=0,E.right=E.bottom=1,d&&!aa&&(k=F,F=B,B=k));r=0===r?1:0;
ja=0===r?1:0}aa&&(a.ed(0),d?a.fe(d.sb,d.qb):c?a.fe(c.sb,c.qb):this.b.xc||(a.Lf(this.b.width,this.b.height),ka=this.b.width/2,X=this.b.height/2,B=x=0,D=this.b.width,F=this.b.height),a.dd(b),a.hc(l[ja]),a.ee(),a.translate(-ka,-X),a.me(),d&&1===f.length&&!M?a.Ed(x,B,D,B,D,F,x,F,K):a.Ed(x,F,D,F,D,B,x,B,K),a.hc(null))};e.prototype.li=function(a){var c,d;c=0;for(d=this.R.length;c<d;c++)if(this.R[c].V===a)return this.R[c];return null};e.prototype.rb=function(){var a,c,d,b={sx:this.scrollX,sy:this.scrollY,
s:this.scale,a:this.e,w:this.width,h:this.height,fv:this.ig,persist:this.be,fx:[],layers:{}};a=0;for(c=this.K.length;a<c;a++)d=this.K[a],b.fx.push({name:d.name,active:d.Za,params:this.Fa[d.index]});a=0;for(c=this.R.length;a<c;a++)d=this.R[a],b.layers[d.V.toString()]=d.rb();return b};e.prototype.Mb=function(a){var c,d,b,f;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.e=a.a;this.width=a.w;this.height=a.h;this.be=a.persist;"undefined"!==typeof a.fv&&(this.ig=a.fv);var g=a.fx;c=0;for(d=g.length;c<
d;c++)if(b=this.Pk(g[c].name))b.Za=g[c].active,this.Fa[b.index]=g[c].params;this.Kd();c=a.layers;for(f in c)c.hasOwnProperty(f)&&(a=this.li(parseInt(f,10)))&&a.Mb(c[f])};xb=e;b.prototype.Kd=function(){this.aa.length=0;var a,c,d;a=0;for(c=this.K.length;a<c;a++)d=this.K[a],d.Za&&this.aa.push(d)};b.prototype.Pk=function(a){var c,d,b;c=0;for(d=this.K.length;c<d;c++)if(b=this.K[c],b.name===a)return b;return null};b.prototype.Jr=function(){var a,c,d,b,f,e;c=a=0;for(d=this.nf.length;a<d;a++){b=this.nf[a];
f=this.b.q[b[1]];e=this.b.Cm(f);f=!0;if(!e||this.ta.ig)b=this.b.ue(b,this,!0),g.push(b),b.type.global&&(f=!1);f&&(this.nf[c]=this.nf[a],c++)}this.nf.length=c;this.b.pb();!this.b.u&&this.K.length&&(this.Cb=this.as);this.cg=Za(this.Cb);this.b.n&&$a(this,this.Cb,this.b.n)};b.prototype.Tp=function(){if(this.jc){var a,c;a=0;for(c=this.c.length;a<c;a++)this.c[a].Xe=a;this.jc=!1}};b.prototype.Zb=function(a){return this.Qs()*(this.b.xc||a?this.b.$f:1)};b.prototype.Qs=function(){return(this.scale*this.ta.scale-
1)*this.tb+1};b.prototype.bb=function(){return this.we?0:Ba(this.ta.e+this.e)};b.prototype.wc=function(a){this.de=this.Hk||1!==this.opacity||0!==this.Cb;var c=this.b.canvas,d=a,b=!1;this.de&&(this.b.Hi||(this.b.Hi=document.createElement("canvas"),c=this.b.Hi,c.width=this.b.O,c.height=this.b.N,this.b.no=c.getContext("2d"),b=!0),c=this.b.Hi,d=this.b.no,c.width!==this.b.O&&(c.width=this.b.O,b=!0),c.height!==this.b.N&&(c.height=this.b.N,b=!0),b&&(d.webkitImageSmoothingEnabled=this.b.Y,d.mozImageSmoothingEnabled=
this.b.Y,d.msImageSmoothingEnabled=this.b.Y,d.imageSmoothingEnabled=this.b.Y),this.Jd&&d.clearRect(0,0,this.b.O,this.b.N));d.globalAlpha=1;d.globalCompositeOperation="source-over";this.Jd||(d.fillStyle="rgb("+this.Rd[0]+","+this.Rd[1]+","+this.Rd[2]+")",d.fillRect(0,0,this.b.O,this.b.N));d.save();this.we=!0;var b=this.Ba(0,0,!0,!0),f=this.Ba(0,0,!1,!0);this.we=!1;this.b.cd&&(b=Math.round(b),f=Math.round(f));this.cm(b,f,d);var g=this.Zb();d.scale(g,g);d.translate(-b,-f);for(var e,b=0,f=this.c.length;b<
f;b++)g=this.c[b],g.visible&&0!==g.width&&0!==g.height&&(g.za(),e=g.Aa,e.right<this.Xa||e.bottom<this.Ya||e.left>this.ob||e.top>this.nb||(d.globalCompositeOperation=g.cg,g.wc(d)));d.restore();this.de&&(a.globalCompositeOperation=this.cg,a.globalAlpha=this.opacity,a.drawImage(c,0,0))};b.prototype.Fm=function(){this.we=!0;var a=this.Ba(0,0,!0,!0),c=this.Ba(0,0,!1,!0);this.we=!1;this.b.cd&&(a=Math.round(a),c=Math.round(c));this.cm(a,c,null)};b.prototype.cm=function(a,c,d){var b=this.Zb();this.Xa=a;this.Ya=
c;this.ob=a+1/b*this.b.O;this.nb=c+1/b*this.b.N;a=this.bb();0!==a&&(d&&(d.translate(this.b.O/2,this.b.N/2),d.rotate(-a),d.translate(this.b.O/-2,this.b.N/-2)),this.Id.set(this.Xa,this.Ya,this.ob,this.nb),this.Id.offset((this.Xa+this.ob)/-2,(this.Ya+this.nb)/-2),this.Fp.tp(this.Id,a),this.Fp.kn(this.Id),this.Id.offset((this.Xa+this.ob)/2,(this.Ya+this.nb)/2),this.Xa=this.Id.left,this.Ya=this.Id.top,this.ob=this.Id.right,this.nb=this.Id.bottom)};b.prototype.Ib=function(a){var c=this.b.O,d=this.b.N,b=
0,f=0;if(this.de=this.Hk||1!==this.opacity||0<this.aa.length||0!==this.Cb){this.b.oc||(this.b.oc=a.Td(this.b.O,this.b.N,this.b.Y));if(this.b.oc.bg!==this.b.O||this.b.oc.ag!==this.b.N)a.deleteTexture(this.b.oc),this.b.oc=a.Td(this.b.O,this.b.N,this.b.Y);a.dd(this.b.oc);this.Jd&&a.clear(0,0,0,0)}this.Jd||a.clear(this.Rd[0]/255,this.Rd[1]/255,this.Rd[2]/255,1);this.we=!0;var f=this.Ba(0,0,!0,!0),g=this.Ba(0,0,!1,!0);this.we=!1;this.b.cd&&(f=Math.round(f),g=Math.round(g));this.cm(f,g,null);g=this.Zb();
a.ee();a.scale(g,g);a.np(-this.bb());a.translate((this.Xa+this.ob)/-2,(this.Ya+this.nb)/-2);a.me();var e,h,m;e=0;for(h=this.c.length;e<h;e++)if(m=this.c[e],m.visible&&0!==m.width&&0!==m.height&&(m.za(),b=m.Aa,!(b.right<this.Xa||b.bottom<this.Ya||b.left>this.ob||b.top>this.nb)))if(m.Up)if(b=m.aa[0].mb,f=m.aa[0].index,1!==m.aa.length||a.Xl(b)||a.ku(b)||(m.e||m.d.bb())&&a.gh(b)||1!==m.opacity||m.type.Ga.Lo)this.ta.$l(a,this,m,this.de?this.b.oc:this.ta.lg()),a.ee(),a.scale(g,g),a.np(-this.bb()),a.translate((this.Xa+
this.ob)/-2,(this.Ya+this.nb)/-2),a.me();else{a.ed(b);a.fe(m.sb,m.qb);a.hj(b)&&(this.b.xa=!0);var w=0,u=0,l=0,v=0;a.gh(b)&&(b=m.Aa,w=this.Ra(b.left,b.top,!0,!0),u=this.Ra(b.left,b.top,!1,!0),l=this.Ra(b.right,b.bottom,!0,!0),b=this.Ra(b.right,b.bottom,!1,!0),w/=c,u=1-u/d,l/=c,v=1-b/d);a.Kf(this.de?this.b.oc:this.ta.lg(),1/m.width,1/m.height,w,u,l,v,this.Zb(),this.bb(),this.Xa,this.Ya,(this.Xa+this.ob)/2,(this.Ya+this.nb)/2,m.Fa[f]);m.Ib(a)}else a.ed(0),a.fe(m.sb,m.qb),m.Ib(a);this.de&&(b=this.aa.length?
this.aa[0].mb:0,f=this.aa.length?this.aa[0].index:0,0===this.aa.length||1===this.aa.length&&!a.Xl(b)&&1===this.opacity?(1===this.aa.length?(a.ed(b),a.Kf(this.ta.lg(),1/this.b.O,1/this.b.N,0,0,1,1,this.Zb(),this.bb(),this.Xa,this.Ya,(this.Xa+this.ob)/2,(this.Ya+this.nb)/2,this.Fa[f]),a.hj(b)&&(this.b.xa=!0)):a.ed(0),a.dd(this.ta.lg()),a.Te(this.opacity),a.hc(this.b.oc),a.fe(this.sb,this.qb),a.ee(),a.me(),c=this.b.O/2,d=this.b.N/2,a.ih(-c,d,c,d,c,-d,-c,-d),a.hc(null)):this.ta.$l(a,this,null,this.ta.lg()))};
b.prototype.Ba=function(a,c,b,g){var f=this.b.devicePixelRatio;this.b.He&&(a*=f,c*=f);var f=this.b.$o,e=this.b.bp,f=(this.ta.scrollX-f)*this.Ob+f,e=(this.ta.scrollY-e)*this.Pb+e,h=1/this.Zb(!g);g?(f-=this.b.O*h/2,e-=this.b.N*h/2):(f-=this.b.width*h/2,e-=this.b.height*h/2);f+=a*h;e+=c*h;c=this.bb();0!==c&&(f-=this.ta.scrollX,e-=this.ta.scrollY,a=Math.cos(c),c=Math.sin(c),g=f*a-e*c,e=e*a+f*c,f=g+this.ta.scrollX,e+=this.ta.scrollY);return b?f:e};b.prototype.Ra=function(a,c,b,g){var f=this.bb();if(0!==
f){a-=this.ta.scrollX;c-=this.ta.scrollY;var e=Math.cos(-f),f=Math.sin(-f),h=a*e-c*f;c=c*e+a*f;a=h+this.ta.scrollX;c+=this.ta.scrollY}e=this.b.$o;f=this.b.bp;e=(this.ta.scrollX-e)*this.Ob+e;f=(this.ta.scrollY-f)*this.Pb+f;h=1/this.Zb(!g);g?(e-=this.b.O*h/2,f-=this.b.N*h/2):(e-=this.b.width*h/2,f-=this.b.height*h/2);e=(a-e)/h;f=(c-f)/h;a=this.b.devicePixelRatio;this.b.He&&!g&&(e/=a,f/=a);return b?e:f};b.prototype.rb=function(){var a,c,b,e={s:this.scale,a:this.e,vl:this.Xa,vt:this.Ya,vr:this.ob,vb:this.nb,
v:this.visible,bc:this.Rd,t:this.Jd,px:this.Ob,py:this.Pb,o:this.opacity,zr:this.tb,fx:[],instances:[]};a=0;for(c=this.K.length;a<c;a++)b=this.K[a],e.fx.push({name:b.name,active:b.Za,params:this.Fa[b.index]});return e};b.prototype.Mb=function(a){var c,b;this.scale=a.s;this.e=a.a;this.Xa=a.vl;this.Ya=a.vt;this.ob=a.vr;this.nb=a.vb;this.visible=a.v;this.Rd=a.bc;this.Jd=a.t;this.Ob=a.px;this.Pb=a.py;this.opacity=a.o;this.tb=a.zr;var e=a.fx;a=0;for(c=e.length;a<c;a++)if(b=this.Pk(e[a].name))b.Za=e[a].active,
this.Fa[b.index]=e[a].params;this.Kd();this.c.sort(h);this.jc=!0};Kb=b})();
(function(){function e(a,c){var b,d=a.length;switch(d){case 0:return!0;case 1:return a[0]===c[0];case 2:return a[0]===c[0]&&a[1]===c[1];default:for(b=0;b<d;b++)if(a[b]!==c[b])return!1;return!0}}function h(a,c){return a.index-c.index}function b(a){var c,b,d,k;2===a.length?a[0].index>a[1].index&&(c=a[0],a[0]=a[1],a[1]=c):2<a.length&&a.sort(h);a.length>=y.length&&(y.length=a.length+1);y[a.length]||(y[a.length]=[]);k=y[a.length];c=0;for(b=k.length;c<b;c++)if(d=k[c],e(a,d))return d;k.push(a);return a}
function g(a,c){this.b=a;this.Ip={};this.xn={};this.Zk=!1;this.Mn=new ca;this.vk=[];this.gk=[];this.name=c[0];var b=c[1];this.Wd=[];var d,k;d=0;for(k=b.length;d<k;d++)this.On(b[d],null,this.Wd)}function m(a){this.type=a;this.c=[];this.ba=[];this.pa=!0}function a(a,c,b){this.sheet=a;this.parent=c;this.b=a.b;this.ya=[];this.ge=[];this.Kn=this.Mj=this.zm=this.ti=this.group=this.zp=!1;this.$a=[];this.Ic=[];this.Fc=[];this.pg="";this.kf=this.ti=this.group=!1;this.Rh=null;b[1]&&(this.pg=b[1][1].toLowerCase(),
this.group=!0,this.ti=!!b[1][0],this.Rh=[],this.kf=this.ti,this.b.Pd.push(this),this.b.oi[this.pg]=this);this.Dc=b[2];this.V=b[4];this.group||(this.b.jn[this.V.toString()]=this);var d=b[5];a=0;for(c=d.length;a<c;a++){var k=new Lb(this,d[a]);k.index=a;this.$a.push(k);this.cn(k.type)}d=b[6];a=0;for(c=d.length;a<c;a++)k=new Mb(this,d[a]),k.index=a,this.Ic.push(k);if(8===b.length)for(b=b[7],a=0,c=b.length;a<c;a++)this.sheet.On(b[a],this,this.Fc);this.Ai=!1;this.$a.length&&(this.Ai=null==this.$a[0].type&&
this.$a[0].ib==W.prototype.i.cq)}function c(a,c){var b,d,k;if(a&&(-1===c.indexOf(a)&&c.push(a),a.Mc))for(b=0,d=a.Yb.length;b<d;b++)k=a.Yb[b],a!==k&&-1===c.indexOf(k)&&c.push(k)}function d(a,c){this.kc=a;this.sheet=a.sheet;this.b=a.b;this.L=[];this.ua=[];this.ra={};this.index=-1;this.Zf=!1;this.ib=this.b.Md(c[1]);this.trigger=0<c[3];this.wn=2===c[3];this.ad=c[4];this.of=c[5];this.Lt=c[6];this.V=c[7];this.b.ef[this.V.toString()]=this;-1===c[0]?(this.type=null,this.Oa=this.fm,this.qe=null,this.rc=-1):
(this.type=this.b.q[c[0]],this.Oa=this.Lt?this.vu:this.em,c[2]?(this.qe=this.type.ji(c[2]),this.rc=this.type.Mk(c[2])):(this.qe=null,this.rc=-1),this.kc.parent&&this.kc.parent.uj());this.wn&&(this.Oa=this.wu);if(10===c.length){var b,d,k=c[9];b=0;for(d=k.length;b<d;b++){var f=new Nb(this,k[b]);this.L.push(f)}this.ua.length=k.length}}function p(a,c){this.kc=a;this.sheet=a.sheet;this.b=a.b;this.L=[];this.ua=[];this.ra={};this.index=-1;this.Zf=!1;this.ib=this.b.Md(c[1]);-1===c[0]?(this.type=null,this.Oa=
this.fm,this.qe=null,this.rc=-1):(this.type=this.b.q[c[0]],this.Oa=this.em,c[2]?(this.qe=this.type.ji(c[2]),this.rc=this.type.Mk(c[2])):(this.qe=null,this.rc=-1));this.V=c[3];this.b.bf[this.V.toString()]=this;if(6===c.length){var b,d,k=c[5];b=0;for(d=k.length;b<d;b++){var f=new Nb(this,k[b]);this.L.push(f)}this.ua.length=k.length}}function f(a,c){this.m=a;this.kc=a.kc;this.sheet=a.sheet;this.b=a.b;this.type=c[0];this.Yc=null;this.he=0;this.get=null;this.pn=0;this.ta=null;this.key=0;this.object=null;
this.index=0;this.yh=this.Ve=this.yh=this.Ve=this.yn=this.Ae=this.zh=null;this.Hc=!1;var b,d,k;switch(c[0]){case 0:case 7:this.Yc=new T(this,c[1]);this.he=0;this.get=this.bt;break;case 1:this.Yc=new T(this,c[1]);this.he=0;this.get=this.ct;break;case 5:this.Yc=new T(this,c[1]);this.he=0;this.get=this.ht;break;case 3:case 8:this.pn=c[1];this.get=this.Zs;break;case 6:this.ta=this.b.tl[c[1]];this.get=this.it;break;case 9:this.key=c[1];this.get=this.gt;break;case 4:this.object=this.b.q[c[1]];this.get=
this.jt;this.kc.cn(this.object);this.m instanceof Mb?this.kc.uj():this.kc.parent&&this.kc.parent.uj();break;case 10:this.index=c[1];a.type.F?(this.get=this.dt,this.Hc=!0):this.get=this.et;break;case 11:this.zh=c[1];this.Ae=null;this.get=this.$s;break;case 2:case 12:this.yn=c[1];this.get=this.Ys;break;case 13:for(this.get=this.kt,this.Ve=[],this.yh=[],b=1,d=c.length;b<d;b++)k=new Nb(this.m,c[b]),this.Ve.push(k),this.yh.push(0)}}function q(a,c,b){this.sheet=a;this.parent=c;this.b=a.b;this.ya=[];this.name=
b[1];this.Uj=b[2];this.si=b[3];this.zg=!!b[4];this.yi=!!b[5];this.V=b[6];this.b.Xf[this.V.toString()]=this;this.data=this.si;this.parent?(this.Oe=this.zg||this.yi?-1:this.b.Fu++,this.b.or.push(this)):(this.Oe=-1,this.b.dk.push(this))}function s(a,c,b){this.sheet=a;this.parent=c;this.b=a.b;this.ya=[];this.rg=null;this.ut=b[1];this.Za=!0}function z(){this.Cp=[];this.reset(null)}var y=[];g.prototype.toString=function(){return this.name};g.prototype.On=function(a,c,b){switch(a[0]){case 0:a=new Ob(this,
c,a);if(a.Dc)for(b.push(a),b=0,c=a.$a.length;b<c;b++)a.$a[b].trigger&&this.Pn(a,b);else a.Yn()?this.Pn(a,0):b.push(a);break;case 1:a=new Hb(this,c,a);b.push(a);break;case 2:a=new Pb(this,c,a),b.push(a)}};g.prototype.Ja=function(){var a,c;a=0;for(c=this.Wd.length;a<c;a++)this.Wd[a].Ja(a<c-1&&this.Wd[a+1].Ai)};g.prototype.Dm=function(){this.vk.length=0;this.gk.length=0;this.an(this);this.gk.length=0};g.prototype.an=function(a){var c,b,d,k,f=a.vk,e=a.gk,g=this.Mn.Gc();c=0;for(b=g.length;c<b;++c)d=g[c],
k=d.rg,!d.Za||a===k||-1<e.indexOf(k)||(e.push(k),k.an(a),f.push(k))};g.prototype.Oa=function(a){this.b.ew||(this.Zk=!0,a||(this.b.il=!0));var c,b;c=0;for(b=this.Wd.length;c<b;c++){var d=this.Wd[c];d.Oa();this.b.pk(d.ya);this.b.Xd&&this.b.pb()}a||(this.b.il=!1)};g.prototype.Pn=function(a,c){a.Dc||this.b.Pj.push(a);var b,d,k=a.$a[c],f;f=k.type?k.type.name:"system";var e=(b=k.wn)?this.xn:this.Ip;e[f]||(e[f]=[]);f=e[f];e=k.ib;if(b){if(k.L.length&&(k=k.L[0],1===k.type&&2===k.Yc.type)){k=k.Yc.value.toLowerCase();
b=0;for(d=f.length;b<d;b++)if(f[b].method==e){b=f[b].fg;b[k]?b[k].push([a,c]):b[k]=[[a,c]];return}b={};b[k]=[[a,c]];f.push({method:e,fg:b})}}else{b=0;for(d=f.length;b<d;b++)if(f[b].method==e){f[b].fg.push([a,c]);return}Y&&e===Y.prototype.i.$e?f.unshift({method:e,fg:[[a,c]]}):f.push({method:e,fg:[[a,c]]})}};yb=g;m.prototype.Yk=function(){return this.pa?this.type.c.length:this.c.length};m.prototype.mc=function(){return this.pa?this.type.c:this.c};m.prototype.fh=function(a){a&&(a.b.jb().Hb.Dc?(this.pa&&
(this.c.length=0,ua(this.ba,a.type.c),this.pa=!1),a=this.ba.indexOf(a),-1!==a&&(this.c.push(this.ba[a]),this.ba.splice(a,1))):(this.pa=!1,this.c.length=1,this.c[0]=a))};fb=m;window._c2hh_="028182FC3C1790C453899C06084DBCA3F631EAD1";a.prototype.Ja=function(a){var c,d=this.parent;if(this.group)for(this.Mj=!0;d;){if(!d.group){this.Mj=!1;break}d=d.parent}this.zm=!this.Yn()&&(!this.parent||this.parent.group&&this.parent.Mj);this.Kn=!!a;this.ge=this.ya.slice(0);for(d=this.parent;d;){a=0;for(c=d.ya.length;a<
c;a++)this.lr(d.ya[a]);d=d.parent}this.ya=b(this.ya);this.ge=b(this.ge);a=0;for(c=this.$a.length;a<c;a++)this.$a[a].Ja();a=0;for(c=this.Ic.length;a<c;a++)this.Ic[a].Ja();a=0;for(c=this.Fc.length;a<c;a++)this.Fc[a].Ja(a<c-1&&this.Fc[a+1].Ai)};a.prototype.Au=function(a){if(this.kf!==!!a){this.kf=!!a;var c;a=0;for(c=this.Rh.length;a<c;++a)this.Rh[a].Op();0<c&&this.b.na.ze&&this.b.na.ze.Dm()}};a.prototype.cn=function(a){c(a,this.ya)};a.prototype.lr=function(a){c(a,this.ge)};a.prototype.uj=function(){this.zp=
!0;this.parent&&this.parent.uj()};a.prototype.Yn=function(){return this.$a.length?this.$a[0].trigger:!1};a.prototype.Oa=function(){var a,c=!1,b,d=this.b,k=this.b.jb();k.Hb=this;var f=this.$a;this.Ai||(k.Ak=!1);if(this.Dc){0===f.length&&(c=!0);k.Pa=0;for(a=f.length;k.Pa<a;k.Pa++)f[k.Pa].trigger||(b=f[k.Pa].Oa())&&(c=!0);(k.Le=c)&&this.qj()}else{k.Pa=0;for(a=f.length;k.Pa<a;k.Pa++)if(b=f[k.Pa].Oa(),!b){k.Le=!1;this.zm&&d.Xd&&d.pb();return}k.Le=!0;this.qj()}this.cs(k)};a.prototype.cs=function(a){a.Le&&
this.Kn&&(a.Ak=!0);this.zm&&this.b.Xd&&this.b.pb()};a.prototype.tu=function(a){this.b.jb().Hb=this;this.$a[a].Oa()&&(this.qj(),this.b.jb().Le=!0)};a.prototype.qj=function(){var a=this.b.jb(),c;a.Vb=0;for(c=this.Ic.length;a.Vb<c;a.Vb++)if(this.Ic[a.Vb].Oa())return;this.op()};a.prototype.qu=function(){var a=this.b.jb(),c;for(c=this.Ic.length;a.Vb<c;a.Vb++)if(this.Ic[a.Vb].Oa())return;this.op()};a.prototype.op=function(){if(this.Fc.length){var a,c,b,d,k=this.Fc.length-1;this.b.jj(this);if(this.zp)for(a=
0,c=this.Fc.length;a<c;a++)b=this.Fc[a],(d=!this.Mj||!this.group&&a<k)&&this.b.ij(b.ya),b.Oa(),d?this.b.Re(b.ya):this.b.pk(b.ya);else for(a=0,c=this.Fc.length;a<c;a++)this.Fc[a].Oa();this.b.dj()}};a.prototype.uu=function(){var a=this.b.jb();a.Hb=this;var c=!1,b;a.Pa=0;for(b=this.$a.length;a.Pa<b;a.Pa++)if(this.$a[a.Pa].Oa())c=!0;else if(!this.Dc)return!1;return this.Dc?c:!0};a.prototype.ru=function(){this.b.ci++;var a=this.b.jb().Pa,c=this.b.jj(this);if(!this.Dc)for(c.Pa=a+1,a=this.$a.length;c.Pa<
a;c.Pa++)if(!this.$a[c.Pa].Oa()){this.b.dj();return}this.qj();this.b.dj()};a.prototype.Et=function(a){var c=a.index;if(0===c)return!0;for(--c;0<=c;--c)if(this.$a[c].type===a.type)return!1;return!0};Ob=a;d.prototype.Ja=function(){var a,c,b;a=0;for(c=this.L.length;a<c;a++)b=this.L[a],b.Ja(),b.Hc&&(this.Zf=!0)};d.prototype.wu=function(){return!0};d.prototype.fm=function(){var a,c;a=0;for(c=this.L.length;a<c;a++)this.ua[a]=this.L[a].get();return Pa(this.ib.apply(this.b.fd,this.ua),this.of)};d.prototype.vu=
function(){var a,c;a=0;for(c=this.L.length;a<c;a++)this.ua[a]=this.L[a].get();a=this.ib.apply(this.qe?this.qe:this.type,this.ua);this.type.qc();return a};d.prototype.em=function(){var a,c,b,d,k,f,e,g,h=this.type,m=h.ca(),p=this.kc.Dc&&!this.trigger;c=0;var y=h.Mc,q=h.F,w=h.ud,u=this.rc,s=-1<u,z=this.Zf,G=this.L,D=this.ua,U=this.of,F=this.ib,J;if(z)for(c=0,k=G.length;c<k;++c)f=G[c],f.Hc||(D[c]=f.get(0));else for(c=0,k=G.length;c<k;++c)D[c]=G[c].get(0);if(m.pa){m.c.length=0;m.ba.length=0;J=h.c;a=0;
for(d=J.length;a<d;++a){g=J[a];if(z)for(c=0,k=G.length;c<k;++c)f=G[c],f.Hc&&(D[c]=f.get(a));s?(c=0,q&&(c=g.type.hf[w]),c=F.apply(g.G[u+c],D)):c=F.apply(g,D);(e=Pa(c,U))?m.c.push(g):p&&m.ba.push(g)}h.finish&&h.finish(!0);m.pa=!1;h.qc();return m.Yk()}b=0;J=(e=p&&!this.kc.Et(this))?m.ba:m.c;var M=!1;a=0;for(d=J.length;a<d;++a){g=J[a];if(z)for(c=0,k=G.length;c<k;++c)f=G[c],f.Hc&&(D[c]=f.get(a));s?(c=0,q&&(c=g.type.hf[w]),c=F.apply(g.G[u+c],D)):c=F.apply(g,D);if(Pa(c,U))if(M=!0,e){if(m.c.push(g),y)for(c=
0,k=g.siblings.length;c<k;c++)f=g.siblings[c],f.type.ca().c.push(f)}else{J[b]=g;if(y)for(c=0,k=g.siblings.length;c<k;c++)f=g.siblings[c],f.type.ca().c[b]=f;b++}else if(e){J[b]=g;if(y)for(c=0,k=g.siblings.length;c<k;c++)f=g.siblings[c],f.type.ca().ba[b]=f;b++}else if(p&&(m.ba.push(g),y))for(c=0,k=g.siblings.length;c<k;c++)f=g.siblings[c],f.type.ca().ba.push(f)}J.length=b;if(y)for(q=h.Yb,a=0,d=q.length;a<d;a++)g=q[a].ca(),e?g.ba.length=b:g.c.length=b;b=M;if(e&&!M)for(a=0,d=m.c.length;a<d;a++){g=m.c[a];
if(z)for(c=0,k=G.length;c<k;c++)f=G[c],f.Hc&&(D[c]=f.get(a));c=s?F.apply(g.G[u],D):F.apply(g,D);if(Pa(c,U)){M=!0;break}}h.finish&&h.finish(b||p);return p?M:m.Yk()};Lb=d;p.prototype.Ja=function(){var a,c,b;a=0;for(c=this.L.length;a<c;a++)b=this.L[a],b.Ja(),b.Hc&&(this.Zf=!0)};p.prototype.fm=function(){var a,c;a=0;for(c=this.L.length;a<c;a++)this.ua[a]=this.L[a].get();return this.ib.apply(this.b.fd,this.ua)};p.prototype.em=function(){var a=this.type.ca().mc(),c=this.type.F,b=this.type.ud,d=this.rc,
f=-1<d,e=this.Zf,g=this.L,h=this.ua,m=this.ib,p,y,q,w,u,s;if(e)for(y=0,w=g.length;y<w;++y)u=g[y],u.Hc||(h[y]=u.get(0));else for(y=0,w=g.length;y<w;++y)h[y]=g[y].get(0);p=0;for(q=a.length;p<q;++p){s=a[p];if(e)for(y=0,w=g.length;y<w;++y)u=g[y],u.Hc&&(h[y]=u.get(p));f?(y=0,c&&(y=s.type.hf[b]),m.apply(s.G[d+y],h)):m.apply(s,h)}return!1};Mb=p;var w=[],u=-1;f.prototype.Ja=function(){var a,c;if(11===this.type)this.Ae=this.b.En(this.zh,this.kc.parent);else if(13===this.type)for(a=0,c=this.Ve.length;a<c;a++)this.Ve[a].Ja();
this.Yc&&this.Yc.Ja()};f.prototype.Pt=function(a){this.Hc||!a||a.Ga.wj||(this.Hc=!0)};f.prototype.rp=function(){this.Hc=!0};f.prototype.Ta=function(){u++;w.length===u&&w.push(new Qb);return w[u]};f.prototype.Na=function(){u--};f.prototype.bt=function(a){this.he=a||0;a=this.Ta();this.Yc.get(a);this.Na();return a.data};f.prototype.ct=function(a){this.he=a||0;a=this.Ta();this.Yc.get(a);this.Na();return N(a.data)?a.data:""};f.prototype.jt=function(){return this.object};f.prototype.Zs=function(){return this.pn};
f.prototype.ht=function(a){this.he=a||0;a=this.Ta();this.Yc.get(a);this.Na();return a.cb()?this.b.wd(a.data):this.b.kg(a.data)};f.prototype.it=function(){return this.ta};f.prototype.gt=function(){return this.key};f.prototype.et=function(){return this.index};f.prototype.dt=function(a){a=a||0;var c=this.m.type,b=null,b=c.ca(),d=b.mc();if(d.length)b=d[a%d.length].type;else if(b.ba.length)b=b.ba[a%b.ba.length].type;else if(c.c.length)b=c.c[a%c.c.length].type;else return 0;return this.index+b.di[c.ud]};
f.prototype.$s=function(){return this.Ae};f.prototype.Ys=function(){return this.yn};f.prototype.kt=function(){var a,c;a=0;for(c=this.Ve.length;a<c;a++)this.yh[a]=this.Ve[a].get();return this.yh};Nb=f;q.prototype.Ja=function(){this.ya=b(this.ya)};q.prototype.Ue=function(a){var c=this.b.Dn();this.parent&&!this.zg&&c?(this.Oe>=c.length&&(c.length=this.Oe+1),c[this.Oe]=a):this.data=a};q.prototype.mg=function(){var a=this.b.Dn();return!this.parent||this.zg||!a||this.yi?this.data:this.Oe>=a.length||"undefined"===
typeof a[this.Oe]?this.si:a[this.Oe]};q.prototype.Oa=function(){!this.parent||this.zg||this.yi||this.Ue(this.si)};Hb=q;s.prototype.toString=function(){return"include:"+this.rg.toString()};s.prototype.Ja=function(){this.rg=this.b.Ck[this.ut];this.sheet.Mn.add(this);this.ya=b(this.ya);for(var a=this.parent;a;)a.group&&a.Rh.push(this),a=a.parent;this.Op()};s.prototype.Oa=function(){this.parent&&this.b.hh(this.b.q);this.rg.Zk||this.rg.Oa(!0);this.parent&&this.b.Re(this.b.q)};s.prototype.Op=function(){for(var a=
this.parent;a;){if(a.group&&!a.kf){this.Za=!1;return}a=a.parent}this.Za=!0};Pb=s;z.prototype.reset=function(a){this.Hb=a;this.Vb=this.Pa=0;this.Cp.length=0;this.Ak=this.Le=!1};Gb=z})();
(function(){function e(b,g){this.m=b;this.b=b.b;this.type=g[0];this.get=[this.qs,this.ms,this.zs,this.Cs,this.es,this.As,this.vs,this.js,this.us,this.ys,this.gs,this.xs,this.ks,this.ws,this.rs,this.ts,this.ns,this.os,this.hs,this.Bs,this.un,this.ps,this.un,this.ls][this.type];var e=null;this.Nb=this.L=this.ua=this.ib=this.Ij=this.hb=this.first=this.value=null;this.rc=-1;this.xd=null;this.Im=-1;this.Ae=this.zh=null;this.kh=!1;switch(this.type){case 0:case 1:case 2:this.value=g[1];break;case 3:this.first=
new T(b,g[1]);break;case 18:this.first=new T(b,g[1]);this.hb=new T(b,g[2]);this.Ij=new T(b,g[3]);break;case 19:this.ib=this.b.Md(g[1]);this.ib!==W.prototype.ab.random&&this.ib!==W.prototype.ab.Er||this.m.rp();this.ua=[];this.L=[];3===g.length?(e=g[2],this.ua.length=e.length+1):this.ua.length=1;break;case 20:this.Nb=this.b.q[g[1]];this.rc=-1;this.ib=this.b.Md(g[2]);this.kh=g[3];Sb.Function&&this.ib===Sb.Function.prototype.ab.Xu&&this.m.rp();this.xd=g[4]?new T(b,g[4]):null;this.ua=[];this.L=[];6===
g.length?(e=g[5],this.ua.length=e.length+1):this.ua.length=1;break;case 21:this.Nb=this.b.q[g[1]];this.kh=g[2];this.xd=g[3]?new T(b,g[3]):null;this.Im=g[4];break;case 22:this.Nb=this.b.q[g[1]];this.Nb.ji(g[2]);this.rc=this.Nb.Mk(g[2]);this.ib=this.b.Md(g[3]);this.kh=g[4];this.xd=g[5]?new T(b,g[5]):null;this.ua=[];this.L=[];7===g.length?(e=g[6],this.ua.length=e.length+1):this.ua.length=1;break;case 23:this.zh=g[1],this.Ae=null}this.m.Pt(this.Nb);4<=this.type&&17>=this.type&&(this.first=new T(b,g[1]),
this.hb=new T(b,g[2]));if(e){var a,c;a=0;for(c=e.length;a<c;a++)this.L.push(new T(b,e[a]))}}function h(b,e){this.type=b||V.Ze;this.data=e||0;this.Df=null;this.type==V.Ze&&(this.data=Math.floor(this.data))}e.prototype.Ja=function(){23===this.type&&(this.Ae=this.m.b.En(this.zh,this.m.kc.parent));this.first&&this.first.Ja();this.hb&&this.hb.Ja();this.Ij&&this.Ij.Ja();this.xd&&this.xd.Ja();if(this.L){var b,e;b=0;for(e=this.L.length;b<e;b++)this.L[b].Ja()}};e.prototype.Bs=function(b){this.ua[0]=b;b=this.m.Ta();
var e,h;e=0;for(h=this.L.length;e<h;e++)this.L[e].get(b),this.ua[e+1]=b.data;this.m.Na();this.ib.apply(this.b.fd,this.ua)};e.prototype.un=function(b){var e=this.Nb.ca(),h=e.mc();if(!h.length)if(e.ba.length)h=e.ba;else{this.kh?b.Ab(""):b.va(0);return}this.ua[0]=b;b.Df=this.Nb;b=this.m.Ta();var a,e=0;for(a=this.L.length;e<a;e++)this.L[e].get(b),this.ua[e+1]=b.data;e=this.m.he;this.xd&&(this.xd.get(b),b.cb()&&(e=b.data,h=this.Nb.c));this.m.Na();e%=h.length;0>e&&(e+=h.length);h=h[e];-1<this.rc?(b=0,this.Nb.F&&
(b=h.type.hf[this.Nb.ud]),this.ib.apply(h.G[this.rc+b],this.ua)):this.ib.apply(h,this.ua)};e.prototype.ps=function(b){var e=this.Nb.ca(),h=e.mc();if(!h.length)if(e.ba.length)h=e.ba;else{this.kh?b.Ab(""):b.va(0);return}e=this.m.he;if(this.xd){var a=this.m.Ta();this.xd.get(a);if(a.cb()){e=a.data;h=this.Nb.c;e%=h.length;0>e&&(e+=h.length);h=h[e].Qa[this.Im];N(h)?b.Ab(h):b.B(h);this.m.Na();return}this.m.Na()}e%=h.length;0>e&&(e+=h.length);h=h[e];e=0;this.Nb.F&&(e=h.type.di[this.Nb.ud]);h=h.Qa[this.Im+
e];N(h)?b.Ab(h):b.B(h)};e.prototype.qs=function(b){b.type=V.Ze;b.data=this.value};e.prototype.ms=function(b){b.type=V.Ye;b.data=this.value};e.prototype.zs=function(b){b.type=V.String;b.data=this.value};e.prototype.Cs=function(b){this.first.get(b);b.cb()&&(b.data=-b.data)};e.prototype.es=function(b){this.first.get(b);var e=this.m.Ta();this.hb.get(e);b.cb()&&e.cb()&&(b.data+=e.data,e.uf()&&b.Bf());this.m.Na()};e.prototype.As=function(b){this.first.get(b);var e=this.m.Ta();this.hb.get(e);b.cb()&&e.cb()&&
(b.data-=e.data,e.uf()&&b.Bf());this.m.Na()};e.prototype.vs=function(b){this.first.get(b);var e=this.m.Ta();this.hb.get(e);b.cb()&&e.cb()&&(b.data*=e.data,e.uf()&&b.Bf());this.m.Na()};e.prototype.js=function(b){this.first.get(b);var e=this.m.Ta();this.hb.get(e);b.cb()&&e.cb()&&(b.data/=e.data,b.Bf());this.m.Na()};e.prototype.us=function(b){this.first.get(b);var e=this.m.Ta();this.hb.get(e);b.cb()&&e.cb()&&(b.data%=e.data,e.uf()&&b.Bf());this.m.Na()};e.prototype.ys=function(b){this.first.get(b);var e=
this.m.Ta();this.hb.get(e);b.cb()&&e.cb()&&(b.data=Math.pow(b.data,e.data),e.uf()&&b.Bf());this.m.Na()};e.prototype.gs=function(b){this.first.get(b);var e=this.m.Ta();this.hb.get(e);b.cb()?e.Bi()?b.Ab(b.data.toString()+e.data):b.data&&e.data?b.va(1):b.va(0):b.Bi()&&(b.data=e.Bi()?b.data+e.data:b.data+(Math.round(1E10*e.data)/1E10).toString());this.m.Na()};e.prototype.xs=function(b){this.first.get(b);var e=this.m.Ta();this.hb.get(e);b.cb()&&e.cb()&&(b.data||e.data?b.va(1):b.va(0));this.m.Na()};e.prototype.hs=
function(b){this.first.get(b);b.data?this.hb.get(b):this.Ij.get(b)};e.prototype.ks=function(b){this.first.get(b);var e=this.m.Ta();this.hb.get(e);b.va(b.data===e.data?1:0);this.m.Na()};e.prototype.ws=function(b){this.first.get(b);var e=this.m.Ta();this.hb.get(e);b.va(b.data!==e.data?1:0);this.m.Na()};e.prototype.rs=function(b){this.first.get(b);var e=this.m.Ta();this.hb.get(e);b.va(b.data<e.data?1:0);this.m.Na()};e.prototype.ts=function(b){this.first.get(b);var e=this.m.Ta();this.hb.get(e);b.va(b.data<=
e.data?1:0);this.m.Na()};e.prototype.ns=function(b){this.first.get(b);var e=this.m.Ta();this.hb.get(e);b.va(b.data>e.data?1:0);this.m.Na()};e.prototype.os=function(b){this.first.get(b);var e=this.m.Ta();this.hb.get(e);b.va(b.data>=e.data?1:0);this.m.Na()};e.prototype.ls=function(b){var e=this.Ae.mg();L(e)?b.B(e):b.Ab(e)};T=e;h.prototype.uf=function(){return this.type===V.Ye};h.prototype.cb=function(){return this.type===V.Ze||this.type===V.Ye};h.prototype.Bi=function(){return this.type===V.String};
h.prototype.Bf=function(){this.uf()||(this.Bi()&&(this.data=parseFloat(this.data)),this.type=V.Ye)};h.prototype.va=function(b){this.type=V.Ze;this.data=Math.floor(b)};h.prototype.B=function(b){this.type=V.Ye;this.data=b};h.prototype.Ab=function(b){this.type=V.String;this.data=b};h.prototype.Eu=function(b){L(b)?(this.type=V.Ye,this.data=b):N(b)?(this.type=V.String,this.data=b.toString()):(this.type=V.Ze,this.data=0)};Qb=h;V={Ze:0,Ye:1,String:2}})();function W(e){this.b=e;this.Tb=[]}
W.prototype.rb=function(){var e={},h,b,g,m,a,c,d,p;e.waits=[];var f=e.waits,q;h=0;for(b=this.Tb.length;h<b;h++){c=this.Tb[h];q={t:c.time,st:c.yp,s:c.om,ev:c.gf.V,sm:[],sols:{}};c.gf.Ic[c.Vb]&&(q.act=c.gf.Ic[c.Vb].V);g=0;for(m=c.ya.length;g<m;g++)q.sm.push(c.ya[g].V);for(a in c.Bb)if(c.Bb.hasOwnProperty(a)){d=this.b.q[parseInt(a,10)];p={sa:c.Bb[a].rj,insts:[]};g=0;for(m=c.Bb[a].yd.length;g<m;g++)p.insts.push(c.Bb[a].yd[g].uid);q.sols[d.V.toString()]=p}f.push(q)}return e};
W.prototype.Mb=function(e){e=e.waits;var h,b,g,m,a,c,d,p,f,q,s;h=this.Tb.length=0;for(b=e.length;h<b;h++)if(c=e[h],p=this.b.jn[c.ev.toString()]){f=-1;g=0;for(m=p.Ic.length;g<m;g++)if(p.Ic[g].V===c.act){f=g;break}if(-1!==f){d={Bb:{},ya:[],wk:!1};d.time=c.t;d.yp=c.st||"";d.om=!!c.s;d.gf=p;d.Vb=f;g=0;for(m=c.sm.length;g<m;g++)(p=this.b.ni(c.sm[g]))&&d.ya.push(p);for(a in c.sols)if(c.sols.hasOwnProperty(a)&&(p=this.b.ni(parseInt(a,10)))){f=c.sols[a];q={rj:f.sa,yd:[]};g=0;for(m=f.insts.length;g<m;g++)(s=
this.b.mi(f.insts[g]))&&q.yd.push(s);d.Bb[p.index.toString()]=q}this.Tb.push(d)}}};
(function(){function e(){}function h(){}function b(){}var g=W.prototype;e.prototype.dq=function(){return!0};e.prototype.Qm=function(){return!0};e.prototype.Mq=function(){return!0};e.prototype.er=function(){var a=this.b.jg().ra;"undefined"===typeof a.TriggerOnce_lastTick&&(a.TriggerOnce_lastTick=-1);var b=a.TriggerOnce_lastTick,e=this.b.Hd;a.TriggerOnce_lastTick=e;return this.b.sl||b!==e-1};e.prototype.aq=function(a,b,e){return Rb(a.mg(),b,e)};e.prototype.cq=function(){var a=this.b.jb();return a.Ak?
!1:!a.Le};e.prototype.Rm=function(){return!0};e.prototype.wq=function(){return!0};e.prototype.ak=function(){return!0};e.prototype.Nq=function(){return!0};e.prototype.Zj=function(){return!0};e.prototype.Xp=function(a,b,e){return Ga(Q(a),Q(e))<=Q(b)};e.prototype.hq=function(a,b){return Ia(Q(a),Q(b))};e.prototype.fq=function(a,b,e){a=Da(a);b=Da(b);e=Da(e);return Ia(e,b)?Ia(a,b)&&!Ia(a,e):!(!Ia(a,b)&&Ia(a,e))};g.i=new e;h.prototype.rq=function(a){if(!this.b.wf&&!this.b.re){var b=this.b.fc.indexOf(this.b.na);
if(!a||0!==b)if(a||b!==this.b.fc.length-1)this.b.re=this.b.fc[b+(a?-1:1)]}};h.prototype.dr=function(a,b){0===a.Uj?L(b)?a.Ue(b):a.Ue(parseFloat(b)):1===a.Uj&&a.Ue(b.toString())};h.prototype.Wp=function(a,b){0===a.Uj?L(b)?a.Ue(a.mg()+b):a.Ue(a.mg()+parseFloat(b)):1===a.Uj&&a.Ue(a.mg()+b.toString())};var m=[],a=[];h.prototype.fr=function(c){if(!(0>c)){var b,e,f,g=this.b.jb(),h;h=m.length?m.pop():{Bb:{},ya:[]};h.wk=!1;h.time=this.b.cc.ja+c;h.yp="";h.om=!1;h.gf=g.Hb;h.Vb=g.Vb+1;c=0;for(b=this.b.q.length;c<
b;c++)f=this.b.q[c],e=f.ca(),e.pa&&-1===g.Hb.ya.indexOf(f)||(h.ya.push(f),f=void 0,f=a.length?a.pop():{yd:[]},f.rj=!1,f.rj=e.pa,ua(f.yd,e.c),h.Bb[c.toString()]=f);this.Tb.push(h);return!0}};h.prototype.Tq=function(){var a,b,e;a=0;for(b=this.b.dk.length;a<b;a++)e=this.b.dk[a],e.data=e.si};h.prototype.Uq=function(){if(!this.b.wf&&!this.b.re&&this.b.na){this.b.re=this.b.na;var a,b,e;a=0;for(b=this.b.Pd.length;a<b;a++)e=this.b.Pd[a],e.Au(e.ti)}};h.prototype.Vq=function(a){this.b.sj=a};h.prototype.pq=
function(a){this.b.Ig=a};g.W=new h;b.prototype["int"]=function(a,b){N(b)?(a.va(parseInt(b,10)),isNaN(a.data)&&(a.data=0)):a.va(b)};b.prototype["float"]=function(a,b){N(b)?(a.B(parseFloat(b)),isNaN(a.data)&&(a.data=0)):a.B(b)};b.prototype.random=function(a,b,e){void 0===e?a.B(Math.random()*b):a.B(Math.random()*(e-b)+b)};b.prototype.sqrt=function(a,b){a.B(Math.sqrt(b))};b.prototype.abs=function(a,b){a.B(Math.abs(b))};b.prototype.round=function(a,b){a.va(Math.round(b))};b.prototype.floor=function(a,
b){a.va(Math.floor(b))};b.prototype.ceil=function(a,b){a.va(Math.ceil(b))};b.prototype.sin=function(a,b){a.B(Math.sin(Q(b)))};b.prototype.cos=function(a,b){a.B(Math.cos(Q(b)))};b.prototype.tan=function(a,b){a.B(Math.tan(Q(b)))};b.prototype.asin=function(a,b){a.B(ya(Math.asin(b)))};b.prototype.acos=function(a,b){a.B(ya(Math.acos(b)))};b.prototype.atan=function(a,b){a.B(ya(Math.atan(b)))};b.prototype.exp=function(a,b){a.B(Math.exp(b))};b.prototype.log10=function(a,b){a.B(Math.log(b)/Math.LN10)};b.prototype.max=
function(a){var b=arguments[1];"number"!==typeof b&&(b=0);var e,f,g;e=2;for(f=arguments.length;e<f;e++)g=arguments[e],"number"===typeof g&&b<g&&(b=g);a.B(b)};b.prototype.min=function(a){var b=arguments[1];"number"!==typeof b&&(b=0);var e,f,g;e=2;for(f=arguments.length;e<f;e++)g=arguments[e],"number"===typeof g&&b>g&&(b=g);a.B(b)};b.prototype.Ud=function(a){a.B(this.b.Ud)};b.prototype.We=function(a){a.B(this.b.We)};b.prototype.time=function(a){a.B(this.b.cc.ja)};b.prototype.Hd=function(a){a.va(this.b.Hd)};
b.prototype.Si=function(a){a.va(this.b.Si)};b.prototype.Ik=function(a){a.va(this.b.Ik)};b.prototype.e=function(a,b,e,f,g){a.B(ya(Fa(b,e,f,g)))};b.prototype.Rt=function(a){a.Ab("\n")};b.prototype.find=function(a,b,e){N(b)&&N(e)?a.va(b.search(new RegExp(Wa(e),"i"))):a.va(-1)};b.prototype.left=function(a,b,e){a.Ab(N(b)?b.substr(0,e):"")};b.prototype.right=function(a,b,e){a.Ab(N(b)?b.substr(b.length-e):"")};b.prototype.replace=function(a,b,e,f){N(b)&&N(e)&&N(f)?a.Ab(b.replace(new RegExp(Wa(e),"gi"),f)):
a.Ab(N(b)?b:"")};b.prototype.trim=function(a,b){a.Ab(N(b)?b.trim():"")};b.prototype.Er=function(a){var b=P(Math.random()*(arguments.length-1));a.Eu(arguments[b+1])};b.prototype.qk=function(a){a.B(this.b.qk/1E3)};b.prototype.Mi=function(a){a.B(this.b.Mi)};g.ab=new b;g.su=function(){var b,d,e,f,g,h,z=this.b.jb();b=0;for(e=this.Tb.length;b<e;b++){f=this.Tb[b];if(-1===f.time){if(!f.om)continue}else if(f.time>this.b.cc.ja)continue;z.Hb=f.gf;z.Vb=f.Vb;z.Pa=0;for(d in f.Bb)f.Bb.hasOwnProperty(d)&&(g=this.b.q[parseInt(d,
10)].ca(),h=f.Bb[d],g.pa=h.rj,ua(g.c,h.yd),g=h,g.yd.length=0,a.push(g));f.gf.qu();this.b.pk(f.ya);f.wk=!0}d=b=0;for(e=this.Tb.length;b<e;b++)f=this.Tb[b],this.Tb[d]=f,f.wk?(Ra(f.Bb),f.ya.length=0,m.push(f)):d++;this.Tb.length=d}})();
(function(){eb=function(e,b){var g=e[1],m=e[3],a=e[4],c=e[5],d=e[6],p=e[7],f=e[8];b.i||(b.i={});b.W||(b.W={});b.ab||(b.ab={});var q=b.i,s=b.W,z=b.ab;m&&(q.bv=function(a,b){return Rb(this.x,a,b)},q.cv=function(a,b){return Rb(this.y,a,b)},q.kv=function(){var a=this.d;this.za();var b=this.Aa;return!(b.right<a.Xa||b.bottom<a.Ya||b.left>a.ob||b.top>a.nb)},q.lv=function(){this.za();var a=this.Aa,b=this.b.na;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},q.vv=function(a,b,c){var d=this.ca(),
e=d.mc();if(!e.length)return!1;var f=e[0],g=f,k=Ka(f.x,f.y,b,c),h,m,p;h=1;for(m=e.length;h<m;h++)if(f=e[h],p=Ka(f.x,f.y,b,c),0===a&&p<k||1===a&&p>k)k=p,g=f;d.fh(g);return!0},s.Mv=function(a){this.x!==a&&(this.x=a,this.ha())},s.Nv=function(a){this.y!==a&&(this.y=a,this.ha())},s.br=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.ha()},s.Iv=function(a,b){var c=a.Rs(this);if(c){var d;c.Rk?(d=c.Rk(b,!0),c=c.Rk(b,!1)):(d=c.x,c=c.y);if(this.x!==d||this.y!==c)this.x=d,this.y=c,this.ha()}},
s.ov=function(a){0!==a&&(this.x+=Math.cos(this.e)*a,this.y+=Math.sin(this.e)*a,this.ha())},s.qq=function(a,b){0!==b&&(this.x+=Math.cos(Q(a))*b,this.y+=Math.sin(Q(a))*b,this.ha())},z.Wm=function(a){a.B(this.x)},z.Xm=function(a){a.B(this.y)},z.Ud=function(a){a.B(this.b.ki(this))});a&&(q.av=function(a,b){return Rb(this.width,a,b)},q.Yu=function(a,b){return Rb(this.height,a,b)},s.Lv=function(a){this.width!==a&&(this.width=a,this.ha())},s.Gv=function(a){this.height!==a&&(this.height=a,this.ha())},s.Jv=
function(a,b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.ha()},z.Rv=function(a){a.B(this.width)},z.gv=function(a){a.B(this.height)},z.Uu=function(a){this.za();a.B(this.Aa.left)},z.Wu=function(a){this.za();a.B(this.Aa.top)},z.Vu=function(a){this.za();a.B(this.Aa.right)},z.Tu=function(a){this.za();a.B(this.Aa.bottom)});c&&(q.Xp=function(a,b){return Ga(this.e,Q(b))<=Q(a)},q.hq=function(a){return Ia(this.e,Q(a))},q.fq=function(a,b){var c=Da(a),d=Da(b),e=Ba(this.e);return Ia(d,
c)?Ia(e,c)&&!Ia(e,d):!(!Ia(e,c)&&Ia(e,d))},s.Wq=function(a){a=Q(Aa(a));isNaN(a)||this.e===a||(this.e=a,this.ha())},s.zv=function(a){0===a||isNaN(a)||(this.e+=Q(a),this.e=Ba(this.e),this.ha())},s.Av=function(a){0===a||isNaN(a)||(this.e-=Q(a),this.e=Ba(this.e),this.ha())},s.Bv=function(a,b){var c=Ha(this.e,Q(b),Q(a));isNaN(c)||this.e===c||(this.e=c,this.ha())},s.Cv=function(a,b,c){a=Ha(this.e,Math.atan2(c-this.y,b-this.x),Q(a));isNaN(a)||this.e===a||(this.e=a,this.ha())},s.Kv=function(a,b){var c=Math.atan2(b-
this.y,a-this.x);isNaN(c)||this.e===c||(this.e=c,this.ha())},z.Su=function(a){a.B(Ca(this.e))});g||(q.Zu=function(a,b,c){return Rb(this.Qa[a],b,c)},q.iv=function(a){return this.Qa[a]},q.wv=function(a,b){var c=this.ca(),d=c.mc();if(!d.length)return!1;var e=d[0],f=e,g=e.Qa[b],k,h,m;k=1;for(h=d.length;k<h;k++)if(e=d[k],m=e.Qa[b],0===a&&m<g||1===a&&m>g)g=m,f=e;c.fh(f);return!0},q.uv=function(a){var b,c,d,e,f;if(this.b.jg().of){f=this.ca();if(f.pa)for(f.pa=!1,f.c.length=0,f.ba.length=0,d=this.c,b=0,c=
d.length;b<c;b++)e=d[b],e.uid===a?f.ba.push(e):f.c.push(e);else{d=b=0;for(c=f.c.length;b<c;b++)e=f.c[b],f.c[d]=e,e.uid===a?f.ba.push(e):d++;f.c.length=d}this.qc();return!!f.c.length}e=this.b.mi(a);if(!e)return!1;f=this.ca();if(!f.pa&&-1===f.c.indexOf(e))return!1;if(this.F)for(a=e.type.Ca,b=0,c=a.length;b<c;b++){if(a[b]===this)return f.fh(e),this.qc(),!0}else if(e.type===this)return f.fh(e),this.qc(),!0;return!1},q.zq=function(){return!0},q.Aq=function(){return!0},s.Hv=function(a,b){var c=this.Qa;
L(c[a])?c[a]=L(b)?b:parseFloat(b):N(c[a])&&(c[a]=N(b)?b:b.toString())},s.Ru=function(a,b){var c=this.Qa;L(c[a])?c[a]=L(b)?c[a]+b:c[a]+parseFloat(b):N(c[a])&&(c[a]=N(b)?c[a]+b:c[a]+b.toString())},s.Ov=function(a,b){var c=this.Qa;L(c[a])&&(c[a]=L(b)?c[a]-b:c[a]-parseFloat(b))},s.Dv=function(a,b){this.Qa[a]=b?1:0},s.Pv=function(a){this.Qa[a]=1-this.Qa[a]},s.bq=function(){this.b.Ld(this)},s.oq||(s.oq=function(a){var b,c;try{b=JSON.parse(a)}catch(d){return}this.b.Ki(this,b,!0);this.kd&&this.kd();if(this.G)for(a=
0,b=this.G.length;a<b;++a)c=this.G[a],c.kd&&c.kd()}),z.dv=function(a){var b=a.Df.c.length,c,d,e;c=0;for(d=this.b.Kc.length;c<d;c++)e=this.b.Kc[c],a.Df.F?0<=e.type.Ca.indexOf(a.Df)&&b++:e.type===a.Df&&b++;a.va(b)},z.yv=function(a){a.va(a.Df.ca().mc().length)},z.Qv=function(a){a.va(this.uid)},z.hv=function(a){a.va(this.ng())},z.Yp||(z.Yp=function(a){a.Ab(JSON.stringify(this.b.gm(this,!0)))}));d&&(q.mq=function(){return this.visible},s.ck=function(a){!a!==!this.visible&&(this.visible=a,this.b.xa=!0)},
q.$u=function(a,b){return Rb(ab(100*this.opacity),a,b)},s.Zq=function(a){a/=100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.xa=!0)},z.Opacity=function(a){a.B(ab(100*this.opacity))});p&&(q.jv=function(a){return a?this.d===a:!1},q.xv=function(a){var b=this.ca(),c=b.mc();if(!c.length)return!1;var d=c[0],e=d,f,g;f=1;for(g=c.length;f<g;f++)if(d=c[f],0===a){if(d.d.index>e.d.index||d.d.index===e.d.index&&d.$b()>e.$b())e=d}else if(d.d.index<e.d.index||d.d.index===e.d.index&&d.$b()<e.$b())e=
d;b.fh(e);return!0},s.rv=function(){var a=this.$b();a!==this.d.c.length-1&&(ta(this.d.c,a),this.d.c.push(this),this.b.xa=!0,this.d.jc=!0)},s.pv=function(){var a=this.$b();0!==a&&(ta(this.d.c,a),this.d.c.unshift(this),this.b.xa=!0,this.d.jc=!0)},s.qv=function(a){a&&a!=this.d&&(ta(this.d.c,this.$b()),this.d.jc=!0,this.d=a,this.Xe=a.c.length,a.c.push(this),this.b.xa=!0)},s.Tv=function(a,b){var c=0===a;if(b){var d=b.Ms(this);if(d&&d.uid!==this.uid){this.d.index!==d.d.index&&(ta(this.d.c,this.$b()),this.d.jc=
!0,this.d=d.d,this.Xe=d.d.c.length,d.d.c.push(this));var e=this.$b(),d=d.$b();ta(this.d.c,e);e<d&&d--;c&&d++;d===this.d.c.length?this.d.c.push(this):this.d.c.splice(d,0,this);this.d.jc=!0;this.b.xa=!0}}},z.nv=function(a){a.va(this.d.Oo)},z.mv=function(a){a.Ab(this.d.name)},z.Sv=function(a){a.va(this.$b())});f&&(s.Ev=function(a,b){if(this.b.u){var c=this.type.Qk(b);if(!(0>c)){var d=1===a;this.Nd[c]!==d&&(this.Nd[c]=d,this.Kd(),this.b.xa=!0)}}},s.Fv=function(a,b,c){if(this.b.u){var d=this.type.Qk(a);
0>d||(a=this.type.K[d],d=this.Fa[d],b=Math.floor(b),0>b||b>=d.length||(1===this.b.u.Vs(a.mb,b)&&(c/=100),d[b]!==c&&(d[b]=c,a.Za&&(this.b.xa=!0))))}})};zb=function(){this.mk=this.Jh=!0;this.type.Dh=!0;this.b.xa=!0;var e,b,g=this.kk;e=0;for(b=g.length;e<b;++e)g[e](this)};Ab=function(e){e&&this.kk.push(e)};Cb=function(){if(this.Jh){var e=this.Aa,b=this.Xb;e.set(this.x,this.y,this.x+this.width,this.y+this.height);e.offset(-this.Kb*this.width,-this.Lb*this.height);this.e?(e.offset(-this.x,-this.y),b.tp(e,
this.e),b.offset(this.x,this.y),b.kn(e)):b.Nf(e);e.normalize();this.Jh=!1}};var e=new qa(0,0,0,0);Db=function(){if(this.mk&&this.nd){this.za();var h=this.type.Qh,b=this.Ph,g=this.Aa;e.set(h.Bh(g.left),h.Ch(g.top),h.Bh(g.right),h.Ch(g.bottom));b.ds(e)||(b.right<b.left?h.update(this,null,e):h.update(this,b,e),b.Gr(e),this.mk=!1)}};Bb=function(e,b){return this.Aa.ub(e,b)&&this.Xb.ub(e,b)?this.ea&&!this.ea.tf()?(this.ea.df(this.width,this.height,this.e),this.ea.ub(e-this.x,b-this.y)):!0:!1};vb=function(){this.type.Rj();
return this.Fe};Eb=function(){this.d.Tp();return this.Xe};Fb=function(){this.aa.length=0;var e,b;e=0;for(b=this.Nd.length;e<b;e++)this.Nd[e]&&this.aa.push(this.type.K[e]);this.Up=!!this.aa.length};wb=function(){return"Inst"+this.jp};hb=function(e){if(e&&e.Mc&&e.type!=this){var b,g,m;b=0;for(g=e.siblings.length;b<g;b++)if(m=e.siblings[b],m.type==this)return m}e=this.ca().mc();return e.length?e[0]:null};ib=function(e){var b=this.ca().mc();return b.length?b[e.ng()%b.length]:null};gb=function(){if(this.Qf&&
!this.F){var e,b;e=0;for(b=this.c.length;e<b;e++)this.c[e].Fe=e;var g=e,m=this.b.Kc;e=0;for(b=m.length;e<b;++e)m[e].type===this&&(m[e].Fe=g++);this.Qf=!1}};tb=function(e){if(e<this.c.length)return this.c[e];e-=this.c.length;var b=this.b.Kc,g,m;g=0;for(m=b.length;g<m;++g)if(b[g].type===this){if(0===e)return b[g];--e}return null};jb=function(){return this.ie[this.rd]};kb=function(){this.rd++;this.rd===this.ie.length?this.ie.push(new fb(this)):this.ie[this.rd].pa=!0};lb=function(){this.rd++;this.rd===
this.ie.length&&this.ie.push(new fb(this));var e=this.ie[this.rd],b=this.ie[this.rd-1];b.pa?e.pa=!0:(e.pa=!1,ua(e.c,b.c),ua(e.ba,b.ba))};mb=function(){this.rd--};pb=function(e){var b,g,m,a,c,d=0;if(!this.F)for(b=0,g=this.Ca.length;b<g;b++)for(c=this.Ca[b],m=0,a=c.Ka.length;m<a;m++){if(e===c.Ka[m].name)return this.ra.lastBehIndex=d,c.Ka[m];d++}b=0;for(g=this.Ka.length;b<g;b++){if(e===this.Ka[b].name)return this.ra.lastBehIndex=d,this.Ka[b];d++}return null};qb=function(e){return this.ji(e)?this.ra.lastBehIndex:
-1};rb=function(e){var b,g;b=0;for(g=this.K.length;b<g;b++)if(this.K[b].name===e)return b;return-1};sb=function(){if(this.Mc&&!this.F){var e,b,g,m,a,c,d;this.Rj();c=this.ca();var p=c.pa,f=(e=this.b.jb())&&e.Hb&&e.Hb.Dc;e=0;for(b=this.Yb.length;e<b;e++)if(a=this.Yb[e],a!==this&&(a.Rj(),d=a.ca(),d.pa=p,!p)){d.c.length=c.c.length;g=0;for(m=c.c.length;g<m;g++)d.c[g]=a.Fn(c.c[g].Fe);if(f)for(d.ba.length=c.ba.length,g=0,m=c.ba.length;g<m;g++)d.ba[g]=a.Fn(c.ba[g].Fe)}}};ub=function(){return"Type"+this.V};
Rb=function(e,b,g){if("undefined"===typeof e||"undefined"===typeof g)return!1;switch(b){case 0:return e===g;case 1:return e!==g;case 2:return e<g;case 3:return e<=g;case 4:return e>g;case 5:return e>=g;default:return!1}}})();var $b={};function cc(e){this.b=e}
(function(){function e(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function h(a){a=a.toLowerCase();return O.hasOwnProperty(a)&&O[a].length?O[a][0].lc():x.destination}function b(){return x.createGain?x.createGain():x.createGainNode()}function g(a){return x.createDelay?x.createDelay(a):x.createDelayNode(a)}function m(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 d(a,
c,d,e,f,k){this.type="filter";this.Oc=[a,c,d,e,f,k];this.X=b();this.J=b();this.J.gain.value=k;this.H=b();this.H.gain.value=1-k;this.La=x.createBiquadFilter();this.La.type="number"===typeof this.La.type?a:qc[a];this.La.frequency.value=c;this.La.detune&&(this.La.detune.value=d);this.La.Q.value=e;this.La.gain.value=f;this.X.connect(this.La);this.X.connect(this.H);this.La.connect(this.J)}function p(a,c,d){this.type="delay";this.Oc=[a,c,d];this.X=b();this.J=b();this.J.gain.value=d;this.H=b();this.H.gain.value=
1-d;this.Rg=b();this.vc=g(a);this.vc.delayTime.value=a;this.Zh=b();this.Zh.gain.value=c;this.X.connect(this.Rg);this.X.connect(this.H);this.Rg.connect(this.J);this.Rg.connect(this.vc);this.vc.connect(this.Zh);this.Zh.connect(this.Rg)}function f(a,c,d,e){this.type="convolve";this.Oc=[c,d,e];this.X=b();this.J=b();this.J.gain.value=d;this.H=b();this.H.gain.value=1-d;this.te=x.createConvolver();a&&(this.te.normalize=c,this.te.buffer=a);this.X.connect(this.te);this.X.connect(this.H);this.te.connect(this.J)}
function q(a,c,d,e,f){this.type="flanger";this.Oc=[a,c,d,e,f];this.X=b();this.H=b();this.H.gain.value=1-f/2;this.J=b();this.J.gain.value=f/2;this.ei=b();this.ei.gain.value=e;this.vc=g(a+c);this.vc.delayTime.value=a;this.gb=x.createOscillator();this.gb.frequency.value=d;this.gc=b();this.gc.gain.value=c;this.X.connect(this.vc);this.X.connect(this.H);this.vc.connect(this.J);this.vc.connect(this.ei);this.ei.connect(this.vc);this.gb.connect(this.gc);this.gc.connect(this.vc.delayTime);m(this.gb)}function s(a,
c,d,e,f,k){this.type="phaser";this.Oc=[a,c,d,e,f,k];this.X=b();this.H=b();this.H.gain.value=1-k/2;this.J=b();this.J.gain.value=k/2;this.La=x.createBiquadFilter();this.La.type="number"===typeof this.La.type?7:"allpass";this.La.frequency.value=a;this.La.detune&&(this.La.detune.value=c);this.La.Q.value=d;this.gb=x.createOscillator();this.gb.frequency.value=f;this.gc=b();this.gc.gain.value=e;this.X.connect(this.La);this.X.connect(this.H);this.La.connect(this.J);this.gb.connect(this.gc);this.gc.connect(this.La.frequency);
m(this.gb)}function z(a){this.type="gain";this.Oc=[a];this.Z=b();this.Z.gain.value=a}function y(a,c){this.type="tremolo";this.Oc=[a,c];this.Z=b();this.Z.gain.value=1-c/2;this.gb=x.createOscillator();this.gb.frequency.value=a;this.gc=b();this.gc.gain.value=c/2;this.gb.connect(this.gc);this.gc.connect(this.Z.gain);m(this.gb)}function w(a,c){this.type="ringmod";this.Oc=[a,c];this.X=b();this.J=b();this.J.gain.value=c;this.H=b();this.H.gain.value=1-c;this.lh=b();this.lh.gain.value=0;this.gb=x.createOscillator();
this.gb.frequency.value=a;this.gb.connect(this.lh.gain);m(this.gb);this.X.connect(this.lh);this.X.connect(this.H);this.lh.connect(this.J)}function u(a,c,d,e,f){this.type="distortion";this.Oc=[a,c,d,e,f];this.X=b();this.fj=b();this.ej=b();this.zu(d,Math.pow(10,e/20));this.J=b();this.J.gain.value=f;this.H=b();this.H.gain.value=1-f;this.Vj=x.createWaveShaper();this.Xh=new Float32Array(65536);this.Js(a,c);this.Vj.Xh=this.Xh;this.X.connect(this.fj);this.X.connect(this.H);this.fj.connect(this.Vj);this.Vj.connect(this.ej);
this.ej.connect(this.J)}function l(a,b,c,d,e){this.type="compressor";this.Oc=[a,b,c,d,e];this.Z=x.createDynamicsCompressor();try{this.Z.threshold.value=a,this.Z.knee.value=b,this.Z.ratio.value=c,this.Z.attack.value=d,this.Z.release.value=e}catch(f){}}function v(a,b){this.type="analyser";this.Oc=[a,b];this.Z=x.createAnalyser();this.Z.fftSize=a;this.Z.smoothingTimeConstant=b;this.Hs=new Float32Array(this.Z.frequencyBinCount);this.wp=new Uint8Array(a);this.eh=0}function A(){this.I=null;this.Li=0;this.je=
[];this.Fl=this.Fi=this.Ei=0}function n(a,c){this.src=a;this.S=E;this.Nc=c;this.dn=!1;var d=this;this.Dl=this.Sl=null;this.If=[];this.tj=0;this.Mm=this.Fk=this.Bp=this.aj=!1;1===E&&c&&(this.S=0,this.Sl=b());this.pe=this.ka=null;var e;switch(this.S){case 0:this.ka=new Audio;this.ka.addEventListener("canplaythrough",function(){d.Mm=!0});1===E&&x.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.Bp=!0,this.ka.addEventListener("canplay",function(){d.Dl||(d.Dl=x.createMediaElementSource(d.ka),
d.Dl.connect(d.Sl))}));this.ka.autoplay=!1;this.ka.bw="auto";this.ka.src=a;break;case 1:e=new XMLHttpRequest;e.open("GET",a,!0);e.responseType="arraybuffer";e.onload=function(){d.pe=e.response;d.Kr()};e.onerror=function(){d.Fk=!0};e.send();break;case 2:this.ka=!0;break;case 3:this.ka=!0}}function k(a,c){var d=this;this.tag=c;this.ic=this.Zc=!0;this.src=a.src;this.buffer=a;this.S=E;this.Nc=a.Nc;this.playbackRate=1;this.Ul=!0;this.Ac=this.Fd=!1;this.Qb=0;this.yg=this.vf=this.ad=!1;this.volume=1;this.Ie=
1===U&&!this.Nc||2===U;this.Cf=1;this.startTime=this.Ie?t.cc.ja:t.jd.ja;this.Ia=this.Ma=null;this.bd=!1;this.Ha=null;this.Xo=this.Wo=this.Vo=this.Uo=this.Zo=this.Yo=0;this.j=null;var e=!1;1!==this.S||0!==this.buffer.S||this.buffer.Bp||(this.S=0);switch(this.S){case 0:this.Nc?(this.j=a.ka,e=!a.dn,a.dn=!0):(this.j=new Audio,this.j.autoplay=!1,this.j.src=a.ka.src,e=!0);e&&this.j.addEventListener("ended",function(){X=d.tag;d.ic=!0;t.trigger(cc.prototype.i.Yj,ka)});break;case 1:this.Ma=b();this.Ma.connect(h(c));
1===this.buffer.S?a.ka&&(this.j=x.createBufferSource(),this.j.buffer=a.ka,this.j.connect(this.Ma)):(this.j=this.buffer.ka,this.buffer.Sl.connect(this.Ma));break;case 2:this.j=new window.Media(K+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(d.Ul=!0,d.ic=!0,X=d.tag,t.trigger(cc.prototype.i.Yj,ka))});break;case 3:this.j=!0}}function r(a,b){O.hasOwnProperty(a)?O[a].push(b):O[a]=[b];var c,d,e,f,k=x.destination;if(O.hasOwnProperty(a)&&(e=O[a],e.length))for(k=e[0].lc(),c=0,d=e.length;c<
d;c++)f=e[c],c+1===d?f.tc(x.destination):f.tc(e[c+1].lc());Ea.length=0;if(a.length)for(c=0,d=B.length;c<d;c++)e=B[c],bb(a,e.tag)&&Ea.push(e);else G&&!G.Ee()&&(Ea.length=1,Ea[0]=G);c=0;for(d=Ea.length;c<d;c++)Ea[c].nu(k);za&&nb===a&&(za.disconnect(),za.connect(k))}function ja(){}function C(){}var I=cc.prototype;I.wa=function(a){this.Ga=a;this.b=a.b};I.wa.prototype.T=function(){};var t=null,ka=null,X="",K="",E=0,x=null,R=[],B=[],G=null,D=!1,U=0,F=!1,J=1,M=0,aa=0,ma=1,ob=1,ic=10,jc=1E4,kc=1,za=null,
nb="",La=!1,Ma=[],O={},qc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");d.prototype.tc=function(a){this.J.disconnect();this.J.connect(a);this.H.disconnect();this.H.connect(a)};d.prototype.remove=function(){this.X.disconnect();this.La.disconnect();this.J.disconnect();this.H.disconnect()};d.prototype.lc=function(){return this.X};p.prototype.tc=function(a){this.J.disconnect();this.J.connect(a);this.H.disconnect();this.H.connect(a)};p.prototype.remove=function(){this.X.disconnect();
this.Rg.disconnect();this.vc.disconnect();this.Zh.disconnect();this.J.disconnect();this.H.disconnect()};p.prototype.lc=function(){return this.X};f.prototype.tc=function(a){this.J.disconnect();this.J.connect(a);this.H.disconnect();this.H.connect(a)};f.prototype.remove=function(){this.X.disconnect();this.te.disconnect();this.J.disconnect();this.H.disconnect()};f.prototype.lc=function(){return this.X};q.prototype.tc=function(a){this.H.disconnect();this.H.connect(a);this.J.disconnect();this.J.connect(a)};
q.prototype.remove=function(){this.X.disconnect();this.vc.disconnect();this.gb.disconnect();this.gc.disconnect();this.H.disconnect();this.J.disconnect();this.ei.disconnect()};q.prototype.lc=function(){return this.X};s.prototype.tc=function(a){this.H.disconnect();this.H.connect(a);this.J.disconnect();this.J.connect(a)};s.prototype.remove=function(){this.X.disconnect();this.La.disconnect();this.gb.disconnect();this.gc.disconnect();this.H.disconnect();this.J.disconnect()};s.prototype.lc=function(){return this.X};
z.prototype.tc=function(a){this.Z.disconnect();this.Z.connect(a)};z.prototype.remove=function(){this.Z.disconnect()};z.prototype.lc=function(){return this.Z};y.prototype.tc=function(a){this.Z.disconnect();this.Z.connect(a)};y.prototype.remove=function(){this.gb.disconnect();this.gc.disconnect();this.Z.disconnect()};y.prototype.lc=function(){return this.Z};w.prototype.tc=function(a){this.J.disconnect();this.J.connect(a);this.H.disconnect();this.H.connect(a)};w.prototype.remove=function(){this.gb.disconnect();
this.lh.disconnect();this.X.disconnect();this.J.disconnect();this.H.disconnect()};w.prototype.lc=function(){return this.X};u.prototype.zu=function(a,b){.01>a&&(a=.01);this.fj.gain.value=a;this.ej.gain.value=Math.pow(1/a,.6)*b};u.prototype.shape=function(a,b,c){var d=1.05*c*b-b;c=0>a?-1:1;a=0>a?-a:a;b=a<b?a:b+d*(1-Math.exp(-(1/d)*(a-b)));return b*c};u.prototype.Js=function(a,b){for(var c=Math.pow(10,a/20),d=Math.pow(10,b/20),e=0,f=0;32768>f;++f)e=f/32768,e=this.shape(e,c,d),this.Xh[32768+f]=e,this.Xh[32768-
f-1]=-e};u.prototype.tc=function(a){this.J.disconnect();this.J.connect(a);this.H.disconnect();this.H.connect(a)};u.prototype.remove=function(){this.X.disconnect();this.fj.disconnect();this.Vj.disconnect();this.ej.disconnect();this.J.disconnect();this.H.disconnect()};u.prototype.lc=function(){return this.X};l.prototype.tc=function(a){this.Z.disconnect();this.Z.connect(a)};l.prototype.remove=function(){this.Z.disconnect()};l.prototype.lc=function(){return this.Z};v.prototype.Da=function(){this.Z.getFloatFrequencyData(this.Hs);
this.Z.getByteTimeDomainData(this.wp);for(var a=this.Z.fftSize,b=0,c=this.eh=0,d=0;b<a;b++)d=(this.wp[b]-128)/128,0>d&&(d=-d),this.eh<d&&(this.eh=d),c+=d*d;this.eh=e(this.eh);e(Math.sqrt(c/a))};v.prototype.tc=function(a){this.Z.disconnect();this.Z.connect(a)};v.prototype.remove=function(){this.Z.disconnect()};v.prototype.lc=function(){return this.Z};A.prototype.mh=function(a){if(this.I=a)this.Ei=this.I.x,this.Fi=this.I.y;this.je.length=0};A.prototype.ri=function(){return!!this.I};A.prototype.Da=function(a){this.I&&
0!==a&&(this.Fl=Fa(this.Ei,this.Fi,this.I.x,this.I.y),a=Ka(this.Ei,this.Fi,this.I.x,this.I.y)/a,4>this.je.length||this.je.shift(),this.je.push(a),this.Ei=this.I.x,this.Fi=this.I.y)};A.prototype.In=function(){if(!this.je.length)return 0;var a,b,c=0;a=0;for(b=this.je.length;a<b;a++)c+=this.je[a];return c/this.je.length};A.prototype.Uk=function(){return Math.cos(this.Fl)*this.In()};A.prototype.Vk=function(){return Math.sin(this.Fl)*this.In()};var lc=!1;n.prototype.Kr=function(){if(!this.ka&&this.pe){var a=
this;if(x.decodeAudioData)x.decodeAudioData(this.pe,function(b){a.ka=b;a.pe=null;var c,d,e;if(fa(a.bj)||F)fa(a.Sh)||(c=a.Sh.te,c.normalize=a.No,c.buffer=b);else if(a.If.length){c=0;for(d=a.If.length;c<d;c++){b=a.If[c];e=new k(a,b.Ep);e.km(!0);if("undefined"!==typeof b.Po&&(b.I=t.mi(b.Po),!b.I))continue;if(b.I){var f=Ja(b.I.x,b.I.y,-b.I.d.bb(),M,aa,!0),g=Ja(b.I.x,b.I.y,-b.I.d.bb(),M,aa,!1);e.jm(f,g,ya(b.I.e-b.I.d.bb()),b.$k,b.Hl,b.Kl);e.mh(b.I)}else e.jm(b.x,b.y,b.hr,b.$k,b.Hl,b.Kl);e.play(a.Al,a.Km,
a.tj);a.aj&&e.pause();B.push(e)}a.If.length=0}else e=new k(a,a.bj),e.play(a.Al,a.Km,a.tj),a.aj&&e.pause(),B.push(e)},function(){a.Fk=!0});else if(this.ka=x.createBuffer(this.pe,!1),this.pe=null,fa(this.bj)||F)fa(this.Sh)||(b=this.Sh.te,b.normalize=this.No,b.buffer=this.ka);else{var b=new k(this,this.bj);b.play(this.Al,this.Km,this.tj);this.aj&&b.pause();B.push(b)}}};n.prototype.Tn=function(){switch(this.S){case 0:var a=4<=this.ka.readyState;a&&(this.Mm=!0);return a||this.Mm;case 1:return!!this.pe||
!!this.ka;case 2:return!0;case 3:return!0}return!1};n.prototype.Ft=function(){switch(this.S){case 0:return this.Tn();case 1:return!!this.ka;case 2:return!0;case 3:return!0}return!1};n.prototype.tt=function(){switch(this.S){case 0:return!!this.ka.error;case 1:return this.Fk}return!1};k.prototype.Ee=function(){var a;switch(this.S){case 0:return this.j.ended;case 1:if(1===this.buffer.S){if(!this.Zc&&!this.ic&&this.j.loop||this.Ac)return!1;a=this.Ie?t.cc.ja:t.jd.ja;return a-this.startTime>this.buffer.ka.duration}return this.j.ended;
case 2:return this.Ul;case 3:!0}return!0};k.prototype.wr=function(){return this.Zc||this.ic?!0:this.Ee()};k.prototype.km=function(a){1===E&&(!this.bd&&a?this.Ma&&(this.Ia||(this.Ia=x.createPanner(),this.Ia.panningModel="number"===typeof this.Ia.panningModel?ma:["equalpower","HRTF","soundfield"][ma],this.Ia.distanceModel="number"===typeof this.Ia.distanceModel?ob:["linear","inverse","exponential"][ob],this.Ia.refDistance=ic,this.Ia.maxDistance=jc,this.Ia.rolloffFactor=kc),this.Ma.disconnect(),this.Ma.connect(this.Ia),
this.Ia.connect(h(this.tag)),this.bd=!0):this.bd&&!a&&this.Ma&&(this.Ia.disconnect(),this.Ma.disconnect(),this.Ma.connect(h(this.tag)),this.bd=!1))};k.prototype.jm=function(a,b,c,d,e,f){this.bd&&1===E&&(this.Ia.setPosition(a,b,0),this.Ia.setOrientation(Math.cos(Q(c)),Math.sin(Q(c)),0),this.Ia.coneInnerAngle=d,this.Ia.coneOuterAngle=e,this.Ia.coneOuterGain=f,this.Yo=a,this.Zo=b,this.Uo=c,this.Vo=d,this.Wo=e,this.Xo=f)};k.prototype.mh=function(a){this.bd&&1===E&&(this.Ha||(this.Ha=new A),this.Ha.mh(a))};
k.prototype.Da=function(a){if(this.bd&&1===E&&this.Ha&&this.Ha.ri()&&this.sf()){this.Ha.Da(a);a=this.Ha.I;var b=Ja(a.x,a.y,-a.d.bb(),M,aa,!0),c=Ja(a.x,a.y,-a.d.bb(),M,aa,!1);this.Ia.setPosition(b,c,0);b=0;"undefined"!==typeof this.Ha.I.e&&(b=a.e-a.d.bb(),this.Ia.setOrientation(Math.cos(b),Math.sin(b),0));b=Ja(this.Ha.Uk(),this.Ha.Vk(),-a.d.bb(),0,0,!0);c=Ja(this.Ha.Uk(),this.Ha.Vk(),-a.d.bb(),0,0,!1);this.Ia.setVelocity(b,c,0)}};k.prototype.play=function(b,c,d){var e=this.j;this.ad=b;this.volume=
c;d=d||0;switch(this.S){case 0:1!==e.playbackRate&&(e.playbackRate=1);e.volume!==c*J&&(e.volume=c*J);e.loop!==b&&(e.loop=b);e.muted&&(e.muted=!1);if(e.currentTime!==d)try{e.currentTime=d}catch(f){}if(this.Nc&&La&&!t.la)Ma.push(this);else try{this.j.play()}catch(k){console&&console.log&&console.log("[C2] WARNING: exception trying to play audio '"+this.buffer.src+"': ",k)}break;case 1:this.muted=!1;this.Cf=1;if(1===this.buffer.S)this.Zc||(this.j=x.createBufferSource(),this.j.buffer=this.buffer.ka,this.j.connect(this.Ma)),
this.j.loop=b,this.Ma.gain.value=c*J,0===d?m(this.j):a(this.j,d,this.Ce());else{1!==e.playbackRate&&(e.playbackRate=1);e.loop!==b&&(e.loop=b);this.Ma.gain.value=c*J;if(e.currentTime!==d)try{e.currentTime=d}catch(g){}this.Nc&&La&&!t.la?Ma.push(this):e.play()}break;case 2:(!this.Zc&&this.ic||0!==d)&&e.seekTo(d);e.play();this.Ul=!1;break;case 3:t.kb?AppMobi.context.playSound(this.src,b):AppMobi.player.playSound(this.src,b)}this.playbackRate=1;this.startTime=(this.Ie?t.cc.ja:t.jd.ja)-d;this.Ac=this.ic=
this.Zc=!1};k.prototype.stop=function(){switch(this.S){case 0:this.j.paused||this.j.pause();break;case 1:1===this.buffer.S?c(this.j):this.j.paused||this.j.pause();break;case 2:this.j.stop();break;case 3:t.kb&&AppMobi.context.stopSound(this.src)}this.ic=!0;this.Ac=!1};k.prototype.pause=function(){if(!(this.Zc||this.ic||this.Ee()||this.Ac)){switch(this.S){case 0:this.j.paused||this.j.pause();break;case 1:1===this.buffer.S?(this.Qb=this.Sk(),this.ad&&(this.Qb%=this.Ce()),c(this.j)):this.j.paused||this.j.pause();
break;case 2:this.j.pause();break;case 3:t.kb&&AppMobi.context.stopSound(this.src)}this.Ac=!0}};k.prototype.pu=function(){if(!(this.Zc||this.ic||this.Ee())&&this.Ac){switch(this.S){case 0:this.j.play();break;case 1:1===this.buffer.S?(this.j=x.createBufferSource(),this.j.buffer=this.buffer.ka,this.j.connect(this.Ma),this.j.loop=this.ad,this.Ma.gain.value=J*this.volume*this.Cf,this.startTime=(this.Ie?t.cc.ja:t.jd.ja)-this.Qb,a(this.j,this.Qb,this.Ce())):this.j.play();break;case 2:this.j.play();break;
case 3:t.kb&&AppMobi.context.resumeSound(this.src)}this.Ac=!1}};k.prototype.seek=function(a){if(!(this.Zc||this.ic||this.Ee()))switch(this.S){case 0:try{this.j.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.S)this.Ac?this.Qb=a:(this.pause(),this.Qb=a,this.pu());else try{this.j.currentTime=a}catch(c){}break;case 3:t.kb&&AppMobi.context.seekSound(this.src,a)}};k.prototype.nu=function(a){1===this.S&&(this.bd?(this.Ia.disconnect(),this.Ia.connect(a)):(this.Ma.disconnect(),this.Ma.connect(a)))};
k.prototype.Ce=function(){switch(this.S){case 0:if("undefined"!==typeof this.j.duration)return this.j.duration;break;case 1:return this.buffer.ka.duration;case 2:return this.j.getDuration();case 3:if(t.kb)return AppMobi.context.getDurationSound(this.src)}return 0};k.prototype.Sk=function(){var a=this.Ce(),b=0;switch(this.S){case 0:"undefined"!==typeof this.j.currentTime&&(b=this.j.currentTime);break;case 1:if(1===this.buffer.S){if(this.Ac)return this.Qb;b=(this.Ie?t.cc.ja:t.jd.ja)-this.startTime}else"undefined"!==
typeof this.j.currentTime&&(b=this.j.currentTime);break;case 3:t.kb&&(b=AppMobi.context.getPlaybackTimeSound(this.src))}!this.ad&&b>a&&(b=a);return b};k.prototype.sf=function(){return!this.Ac&&!this.Zc&&!this.ic&&!this.Ee()};k.prototype.Mu=function(){var a=this.volume*J;switch(this.S){case 0:this.j.volume&&this.j.volume!==a&&(this.j.volume=a);break;case 1:this.Ma.gain.value=a*this.Cf}};k.prototype.$h=function(a){switch(this.S){case 0:this.j.muted!==!!a&&(this.j.muted=!!a);break;case 1:this.Cf=a?0:
1,this.Ma.gain.value=J*this.volume*this.Cf}};k.prototype.Bu=function(){this.vf=!0;this.$h(this.vf||this.yg)};k.prototype.qp=function(a){this.yg=!!a;this.$h(this.vf||this.yg)};k.prototype.Rp=function(){var a=this.playbackRate;this.Ie&&(a*=t.We);switch(this.S){case 0:this.j.playbackRate!==a&&(this.j.playbackRate=a);break;case 1:1===this.buffer.S?this.j.playbackRate.value!==a&&(this.j.playbackRate.value=a):this.j.playbackRate!==a&&(this.j.playbackRate=a)}};k.prototype.Du=function(b){switch(this.S){case 0:b?
this.sf()?(this.j.pause(),this.Fd=!0):this.Fd=!1:this.Fd&&this.j.play();break;case 1:b?this.sf()?(1===this.buffer.S?(this.Qb=this.Sk(),this.ad&&(this.Qb%=this.Ce()),c(this.j)):this.j.pause(),this.Fd=!0):this.Fd=!1:this.Fd&&(1===this.buffer.S?(this.j=x.createBufferSource(),this.j.buffer=this.buffer.ka,this.j.connect(this.Ma),this.j.loop=this.ad,this.Ma.gain.value=J*this.volume*this.Cf,this.startTime=(this.Ie?t.cc.ja:t.jd.ja)-this.Qb,a(this.j,this.Qb,this.Ce())):this.j.play());break;case 2:b?this.sf()?
(this.j.pause(),this.Fd=!0):this.Fd=!1:this.Fd&&this.j.play()}};I.da=function(a){this.type=a;t=this.b=a.b;ka=this;this.xb=null;this.Hg=-600;!(this.b.Ci||this.b.vi&&(this.b.ug||this.b.wi))||this.b.vg||this.b.P||(La=!0);x=null;"undefined"!==typeof AudioContext?(E=1,x=new AudioContext):"undefined"!==typeof webkitAudioContext&&(E=1,x=new webkitAudioContext);(this.b.Ci&&1===E||La)&&document.addEventListener("touchstart",function(){var a,b,c;!lc&&x&&(a=x.createBuffer(1,1,22050),b=x.createBufferSource(),
b.buffer=a,b.connect(x.destination),m(b),lc=!0);if(La){if(!F)for(a=0,b=Ma.length;a<b;++a)c=Ma[a],c.ic||c.Ac||c.j.play();Ma.length=0}},!0);1!==E&&(this.b.zc&&"undefined"!==typeof window.Media?E=2:this.b.pf&&(E=3));2===E&&(K=location.href,a=K.lastIndexOf("/"),-1<a&&(K=K.substr(0,a+1)),K=K.replace("file://",""));if(this.b.Un&&this.b.Gt&&"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.Ld(this);
else{if(this.b.kb)D=this.b.vi;else try{D=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(b){D=!1}this.b.Kj(this)}};var ea=I.da.prototype;ea.T=function(){this.b.cf=this;U=this.D[0];this.Gd=this.D[1];this.du=0!==this.D[2];ma=this.D[3];ob=this.D[4];this.Hg=-this.D[5];ic=this.D[6];jc=this.D[7];kc=this.D[8];this.xb=new A;var a=this.b.O||this.b.width,b=this.b.N||this.b.height;1===E&&(x.listener.speedOfSound=this.D[9],x.listener.dopplerFactor=this.D[10],x.listener.setPosition(a/2,b/2,this.Hg),
x.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,b){za&&za.disconnect();nb=b.toLowerCase();za=x.createMediaStreamSource(a);za.connect(h(nb))});this.b.mr(function(a){ka.$t(a)});var c=this;this.b.bn(function(a){c.Xt(a)})};ea.Xt=function(a){var b,c,d;b=0;for(c=B.length;b<c;b++)d=B[b],d.Ha&&d.Ha.I===a&&(d.Ha.I=null,d.bd&&d.sf()&&d.ad&&d.stop());this.xb.I===a&&(this.xb.I=null)};ea.rb=function(){var a={silent:F,masterVolume:J,listenerZ:this.Hg,listenerUid:this.xb.ri()?this.xb.I.uid:
-1,playing:[],effects:{}},b=a.playing,c,d,e,f,k,g;c=0;for(d=B.length;c<d;c++)e=B[c],!e.sf()||3===this.Gd||e.Nc&&1===this.Gd||!e.Nc&&2===this.Gd||(f=e.Sk(),e.ad&&(f%=e.Ce()),f={tag:e.tag,buffersrc:e.buffer.src,is_music:e.Nc,playbackTime:f,volume:e.volume,looping:e.ad,muted:e.vf,playbackRate:e.playbackRate,paused:e.Ac,resume_position:e.Qb},e.bd&&(f.pan={},g=f.pan,e.Ha&&e.Ha.ri()?g.objUid=e.Ha.I.uid:(g.x=e.Yo,g.y=e.Zo,g.a=e.Uo),g.ia=e.Vo,g.oa=e.Wo,g.og=e.Xo),b.push(f));b=a.effects;for(k in O)if(O.hasOwnProperty(k)){e=
[];c=0;for(d=O[k].length;c<d;c++)e.push({type:O[k][c].type,params:O[k][c].Oc});b[k]=e}return a};var Na=[];ea.Mb=function(a){var b=a.silent;J=a.masterVolume;this.Hg=a.listenerZ;this.xb.mh(null);var c=a.listenerUid;-1!==c&&(this.xb.Li=c,Na.push(this.xb));var c=a.playing,e,k,g,h,m,n,ja,I,C,t,X;if(3!==this.Gd)for(e=0,k=B.length;e<k;e++)C=B[e],C.Nc&&1===this.Gd||(C.Nc||2!==this.Gd)&&C.stop();for(m in O)if(O.hasOwnProperty(m))for(e=0,k=O[m].length;e<k;e++)O[m][e].remove();Ra(O);for(m in a.effects)if(a.effects.hasOwnProperty(m))for(n=
a.effects[m],e=0,k=n.length;e<k;e++)switch(g=n[e].type,t=n[e].params,g){case "filter":r(m,new d(t[0],t[1],t[2],t[3],t[4],t[5]));break;case "delay":r(m,new p(t[0],t[1],t[2]));break;case "convolve":g=t[2];C=this.ii(g,!1);C.ka?g=new f(C.ka,t[0],t[1],g):(g=new f(null,t[0],t[1],g),C.No=t[0],C.Sh=g);r(m,g);break;case "flanger":r(m,new q(t[0],t[1],t[2],t[3],t[4]));break;case "phaser":r(m,new s(t[0],t[1],t[2],t[3],t[4],t[5]));break;case "gain":r(m,new z(t[0]));break;case "tremolo":r(m,new y(t[0],t[1]));break;
case "ringmod":r(m,new w(t[0],t[1]));break;case "distortion":r(m,new u(t[0],t[1],t[2],t[3],t[4]));break;case "compressor":r(m,new l(t[0],t[1],t[2],t[3],t[4]));break;case "analyser":r(m,new v(t[0],t[1]))}e=0;for(k=c.length;e<k;e++)3===this.Gd||(a=c[e],g=a.buffersrc,h=a.is_music,m=a.tag,n=a.playbackTime,ja=a.looping,I=a.volume,X=(t=a.pan)&&t.hasOwnProperty("objUid")?t.objUid:-1,h&&1===this.Gd)||!h&&2===this.Gd||((C=this.Cn(g,m,h,ja,I))?(C.Qb=a.resume_position,C.km(!!t),C.play(ja,I,n),C.Rp(),C.Mu(),
C.$h(C.vf||C.yg),a.paused&&C.pause(),a.muted&&C.Bu(),C.$h(C.vf||C.yg),t&&(-1!==X?(C.Ha=C.Ha||new A,C.Ha.Li=X,Na.push(C.Ha)):C.jm(t.x,t.y,t.a,t.ia,t.oa,t.og))):(C=this.ii(g,h),C.tj=n,C.aj=a.paused,t&&(-1!==X?C.If.push({Po:X,$k:t.ia,Hl:t.oa,Kl:t.og,Ep:m}):C.If.push({x:t.x,y:t.y,hr:t.a,$k:t.ia,Hl:t.oa,Kl:t.og,Ep:m}))));if(b&&!F){e=0;for(k=B.length;e<k;e++)B[e].qp(!0);F=!0}else if(!b&&F){e=0;for(k=B.length;e<k;e++)B[e].qp(!1);F=!1}};ea.kd=function(){var a,b,c,d;a=0;for(b=Na.length;a<b;a++)c=Na[a],d=this.b.mi(c.Li),
c.mh(d),c.Li=-1,d&&(M=d.x,aa=d.y);Na.length=0};ea.$t=function(a){if(!this.du){!a&&x&&x.resume&&x.resume();var b,c;b=0;for(c=B.length;b<c;b++)B[b].Du(a);a&&x&&x.suspend&&x.suspend()}};ea.Da=function(){var a=this.b.Ud,b,c,d;b=0;for(c=B.length;b<c;b++)d=B[b],d.Da(a),0===d.S||3===d.S||d.Zc||d.ic||!d.Ee()||(d.ic=!0,X=d.tag,t.trigger(cc.prototype.i.Yj,ka)),0!==U&&d.Rp();var e,f;for(e in O)if(O.hasOwnProperty(e))for(d=O[e],b=0,c=d.length;b<c;b++)f=d[b],f.Da&&f.Da();1===E&&this.xb.ri()&&(this.xb.Da(a),M=
this.xb.I.x,aa=this.xb.I.y,x.listener.setPosition(this.xb.I.x,this.xb.I.y,this.Hg),x.listener.setVelocity(this.xb.Uk(),this.xb.Vk(),0))};var Oa=[];ea.Cu=function(a){var b,c,d,e,f,k=0;b=0;for(c=a.length;b<c;++b)if(d=a[b],e=d[0],d=2*d[1],(f=4<e.length&&".ogg"===e.substr(e.length-4))&&D||!f&&!D)Oa.push({filename:e,size:d,I:null}),k+=d;return k};ea.Gu=function(){var a,b,c,d;a=0;for(b=Oa.length;a<b;++a)c=Oa[a],d=this.b.Gk+c.filename,c.I=this.ii(d,!1)};ea.Ss=function(){var a=0,b,c,d;b=0;for(c=Oa.length;b<
c;++b)d=Oa[b],d.I.Ft()||d.I.tt()||this.b.P||this.b.wi?a+=d.size:d.I.Tn()&&(a+=Math.floor(d.size/2));return a};ea.ii=function(a,b){var c,d,e,f=null;c=0;for(d=R.length;c<d;c++)if(e=R[c],e.src===a){f=e;break}f||(f=new n(a,b),R.push(f));return f};ea.Cn=function(a,b,c,d,e){var f,g,h;f=0;for(g=B.length;f<g;f++)if(h=B[f],h.src===a&&(h.wr()||c))return h.tag=b,h;a=this.ii(a,c);if(!a.ka)return"<preload>"!==b&&(a.bj=b,a.Al=d,a.Km=e),null;h=new k(a,b);B.push(h);return h};var Ea=[];ja.prototype.Yj=function(a){return bb(X,
a)};I.i=new ja;C.prototype.Play=function(a,b,c,d){!F&&(c=Math.pow(10,c/20),0>c&&(c=0),1<c&&(c=1),G=this.Cn(this.b.Gk+a[0]+(D?".ogg":".m4a"),d,a[1],0!==b,c))&&(G.km(!1),G.play(0!==b,c))};I.W=new C;I.ab=new function(){}})();function dc(e){this.b=e}
(function(){function e(){}var h=dc.prototype;h.wa=function(b){this.Ga=b;this.b=b.b};h.wa.prototype.T=function(){};h.da=function(b){this.type=b;this.b=b.b;this.Di=Array(256);this.Tj=Array(256);this.le=0};var b=h.da.prototype;b.T=function(){var b=this;this.b.P||(jQuery(document).keydown(function(a){b.Ol(a)}),jQuery(document).keyup(function(a){b.Pl(a)}))};var g=[32,33,34,35,36,37,38,39,40,44];b.Ol=function(b){var a=!1;window!=window.top&&-1<g.indexOf(b.which)&&(b.preventDefault(),a=!0,b.stopPropagation());
if(this.Di[b.which])this.Tj[b.which]&&!a&&b.preventDefault();else{this.Di[b.which]=!0;this.le=b.which;this.b.la=!0;this.b.trigger(dc.prototype.i.uq,this);var c=this.b.trigger(dc.prototype.i.Iq,this),d=this.b.trigger(dc.prototype.i.Jq,this);this.b.la=!1;if(c||d)this.Tj[b.which]=!0,a||b.preventDefault()}};b.Pl=function(b){this.Di[b.which]=!1;this.le=b.which;this.b.la=!0;this.b.trigger(dc.prototype.i.vq,this);var a=this.b.trigger(dc.prototype.i.Lq,this),c=this.b.trigger(dc.prototype.i.Kq,this);this.b.la=
!1;if(a||c||this.Tj[b.which])this.Tj[b.which]=!0,b.preventDefault()};b.rb=function(){return{triggerKey:this.le}};b.Mb=function(b){this.le=b.triggerKey};e.prototype.iq=function(b){return this.Di[b]};e.prototype.Iq=function(b){return b===this.le};e.prototype.uq=function(){return!0};e.prototype.vq=function(){return!0};e.prototype.Lq=function(b){return b===this.le};e.prototype.Jq=function(b){return b===this.le};e.prototype.Kq=function(b){return b===this.le};h.i=new e;h.W=new function(){};h.ab=new function(){}})();
function ec(e){this.b=e}
(function(){function e(){}function h(){}var b=ec.prototype;b.wa=function(a){this.Ga=a;this.b=a.b};b.wa.prototype.T=function(){};b.da=function(a){this.type=a;this.b=a.b;this.Kh=Array(4);this.Gp=this.Nj=this.Tf=this.Cd=this.Bd=0;this.Xk=!1};var g=b.da.prototype;g.T=function(){var a=this;if(!this.b.P){jQuery(document).mousemove(function(b){a.Xg(b)});jQuery(document).mousedown(function(b){a.Wg(b)});jQuery(document).mouseup(function(b){a.Yg(b)});jQuery(document).dblclick(function(b){a.Vt(b)});var b=function(b){a.bu(b)};
document.addEventListener("mousewheel",b,!1);document.addEventListener("DOMMouseScroll",b,!1)}};var m={left:0,top:0};g.Xg=function(a){var b=this.b.P?m:jQuery(this.b.canvas).offset();this.Bd=a.pageX-b.left;this.Cd=a.pageY-b.top};g.Ko=function(){return 0<this.b.wb?!0:0<=this.Bd&&0<=this.Cd&&this.Bd<this.b.width&&this.Cd<this.b.height};g.Wg=function(a){this.Ko()&&(this.b.mf&&!this.b.$c&&a.preventDefault(),this.Kh[a.which]=!0,this.b.la=!0,this.b.trigger(ec.prototype.i.Om,this),this.Tf=a.which-1,this.Nj=
0,this.b.trigger(ec.prototype.i.Pm,this),this.b.trigger(ec.prototype.i.$j,this),this.b.la=!1)};g.Yg=function(a){this.Kh[a.which]&&(this.b.mf&&!this.b.$c&&a.preventDefault(),this.b.mf=!0,this.Kh[a.which]=!1,this.b.la=!0,this.Tf=a.which-1,this.b.trigger(ec.prototype.i.Oq,this),this.b.la=!1)};g.Vt=function(a){this.Ko()&&(a.preventDefault(),this.b.la=!0,this.Tf=a.which-1,this.Nj=1,this.b.trigger(ec.prototype.i.Pm,this),this.b.trigger(ec.prototype.i.$j,this),this.b.la=!1)};g.bu=function(a){this.Gp=0>(a.wheelDelta?
a.wheelDelta:a.detail?-a.detail:0)?0:1;this.Xk=!1;this.b.la=!0;this.b.trigger(ec.prototype.i.Sq,this);this.b.la=!1;this.Xk&&a.preventDefault()};e.prototype.Pm=function(a,b){return a===this.Tf&&b===this.Nj};e.prototype.Om=function(){return!0};e.prototype.gq=function(a){return this.Kh[a+1]};e.prototype.Oq=function(a){return a===this.Tf};e.prototype.jq=function(a){var b=this.b.jg();return Pa(this.b.Rf(a,this.Bd,this.Cd,b.of),b.of)};e.prototype.$j=function(a,b,d){return a!==this.Tf||b!==this.Nj?!1:this.b.Rf(d,
this.Bd,this.Cd,!1)};e.prototype.Sq=function(a){this.Xk=!0;return a===this.Gp};b.i=new e;b.W=new function(){};h.prototype.Wm=function(a,b){var d,e,f,g,h;fa(b)?(d=this.b.wd(0),e=d.scale,f=d.tb,g=d.Ob,h=d.e,d.scale=1,d.tb=1,d.Ob=1,d.e=0,a.B(d.Ba(this.Bd,this.Cd,!0)),d.scale=e,d.tb=f,d.Ob=g,d.e=h):(d=L(b)?this.b.wd(b):this.b.kg(b))?a.B(d.Ba(this.Bd,this.Cd,!0)):a.B(0)};h.prototype.Xm=function(a,b){var d,e,f,g,h;fa(b)?(d=this.b.wd(0),e=d.scale,f=d.tb,g=d.Pb,h=d.e,d.scale=1,d.tb=1,d.Pb=1,d.e=0,a.B(d.Ba(this.Bd,
this.Cd,!1)),d.scale=e,d.tb=f,d.Pb=g,d.e=h):(d=L(b)?this.b.wd(b):this.b.kg(b))?a.B(d.Ba(this.Bd,this.Cd,!1)):a.B(0)};b.ab=new h})();function fc(e){this.b=e}
(function(){function e(b){this.m=b;this.Za=!1;this.e=this.speed=this.y=this.x=0;this.opacity=1;this.Od=this.lf=this.size=this.pi=0}var h=fc.prototype;h.wa=function(b){this.Ga=b;this.b=b.b};var b=h.wa.prototype;b.T=function(){this.F||(this.M=new Image,this.M.rk=this.Hj,this.U=null,this.b.Lm(this.M,this.Gj))};b.Ti=function(){this.F||(this.U=null)};b.Ui=function(){this.F||!this.c.length||this.U||(this.U=this.b.u.yf(this.M,!0,this.b.Y,this.uh))};b.Jg=function(){this.F||this.U||!this.b.u||(this.U=this.b.u.yf(this.M,
!0,this.b.Y,this.uh))};b.Qj=function(){this.F||this.c.length||!this.U||(this.b.u.deleteTexture(this.U),this.U=null)};b.gj=function(b){b.drawImage(this.M,0,0)};e.prototype.init=function(){var b=this.m;this.x=b.x-b.Wj/2+Math.random()*b.Wj;this.y=b.y-b.Xj/2+Math.random()*b.Xj;this.speed=b.el-b.zj/2+Math.random()*b.zj;this.e=b.e-b.Aj/2+Math.random()*b.Aj;this.opacity=b.cl;this.size=b.dl-b.xj/2+Math.random()*b.xj;this.pi=b.Wk-b.qi/2+Math.random()*b.qi;this.Od=this.lf=0};e.prototype.Da=function(b){var a=
this.m;this.x+=Math.cos(this.e)*this.speed*b;this.y+=Math.sin(this.e)*this.speed*b;this.y+=this.lf*b;this.speed+=a.Ub*b;this.size+=this.pi*b;this.lf+=a.Lk*b;this.Od+=b;1>this.size?this.Za=!1:(0!==a.Eg&&(this.e+=Math.random()*a.Eg*b-a.Eg*b/2),0!==a.Gg&&(this.speed+=Math.random()*a.Gg*b-a.Gg*b/2),0!==a.Fg&&(this.opacity+=Math.random()*a.Fg*b-a.Fg*b/2,0>this.opacity?this.opacity=0:1<this.opacity&&(this.opacity=1)),1>=a.ff&&this.Od>=a.timeout&&(this.Za=!1),2===a.ff&&0>=this.speed&&(this.Za=!1))};e.prototype.wc=
function(b){var a=this.m.opacity*this.opacity;if(0!==a){0===this.m.ff&&(a*=1-this.Od/this.m.timeout);b.globalAlpha=a;var a=this.x-this.size/2,c=this.y-this.size/2;this.m.b.cd&&(a=a+.5|0,c=c+.5|0);b.drawImage(this.m.type.M,a,c,this.size,this.size)}};e.prototype.Ib=function(b){var a=this.m.opacity*this.opacity;0===this.m.ff&&(a*=1-this.Od/this.m.timeout);var c=this.size,d=c*this.m.cp,e=this.x-c/2,f=this.y-c/2;this.m.b.cd&&(e=e+.5|0,f=f+.5|0);1>d||0===a||(d<b.Qt||d>b.Cl?(b.Te(a),b.ih(e,f,e+c,f,e+c,f+
c,e,f+c)):b.eu(this.x,this.y,d,a))};e.prototype.left=function(){return this.x-this.size/2};e.prototype.right=function(){return this.x+this.size/2};e.prototype.top=function(){return this.y-this.size/2};e.prototype.bottom=function(){return this.y+this.size/2};h.da=function(b){this.type=b;this.b=b.b};var b=h.da.prototype,g=[];b.T=function(){var b=this.D;this.lj=b[0];this.Aj=Q(b[1]);this.Of=b[2];this.um=!0;this.el=b[3];this.dl=b[4];this.cl=b[5]/100;this.Wk=b[6];this.Wj=b[7];this.Xj=b[8];this.zj=b[9];
this.xj=b[10];this.qi=b[11];this.Ub=b[12];this.Lk=b[13];this.Eg=b[14];this.Gg=b[15];this.Fg=b[16];this.ff=b[17];this.timeout=b[18];this.Qe=0;this.cp=1;this.Yi=this.x;this.$i=this.y;this.Zi=this.x;this.Xi=this.y;this.nr(function(a){a.Aa.set(a.Yi,a.$i,a.Zi,a.Xi);a.Xb.Nf(a.Aa);a.Jh=!1;a.Gm()});this.Qc||(this.zb=[]);this.b.Kj(this);this.type.Jg();if(1===this.Of)for(b=0;b<this.lj;b++)this.ek().opacity=0;this.gi=!0};b.rb=function(){var b={r:this.lj,sc:this.Aj,st:this.Of,s:this.um,isp:this.el,isz:this.dl,
io:this.cl,gr:this.Wk,xr:this.Wj,yr:this.Xj,spr:this.zj,szr:this.xj,grnd:this.qi,acc:this.Ub,g:this.Lk,lar:this.Eg,lsr:this.Gg,lor:this.Fg,dm:this.ff,to:this.timeout,pcc:this.Qe,ft:this.gi,p:[]},a,c,d,e=b.p;a=0;for(c=this.zb.length;a<c;a++)d=this.zb[a],e.push([d.x,d.y,d.speed,d.e,d.opacity,d.pi,d.size,d.lf,d.Od]);return b};b.Mb=function(b){this.lj=b.r;this.Aj=b.sc;this.Of=b.st;this.um=b.s;this.el=b.isp;this.dl=b.isz;this.cl=b.io;this.Wk=b.gr;this.Wj=b.xr;this.Xj=b.yr;this.zj=b.spr;this.xj=b.szr;this.qi=
b.grnd;this.Ub=b.acc;this.Lk=b.g;this.Eg=b.lar;this.Gg=b.lsr;this.Fg=b.lor;this.ff=b.dm;this.timeout=b.to;this.Qe=b.pcc;this.gi=b.ft;g.push.apply(g,this.zb);this.zb.length=0;var a,c,d,e=b.p;b=0;for(a=e.length;b<a;b++)c=this.ek(),d=e[b],c.x=d[0],c.y=d[1],c.speed=d[2],c.e=d[3],c.opacity=d[4],c.pi=d[5],c.size=d[6],c.lf=d[7],c.Od=d[8]};b.Gf=function(){g.push.apply(g,this.zb);this.zb.length=0};b.ek=function(){var b;g.length?(b=g.pop(),b.m=this):b=new e(this);this.zb.push(b);b.Za=!0;return b};b.Da=function(){var b=
this.b.ki(this),a,c,d,e;if(0===this.Of&&this.um)for(this.Qe+=b*this.lj,c=P(this.Qe),this.Qe-=c,a=0;a<c;a++)d=this.ek(),d.init();this.Yi=this.x;this.$i=this.y;this.Zi=this.x;this.Xi=this.y;e=a=0;for(c=this.zb.length;a<c;a++)d=this.zb[a],this.zb[e]=d,this.b.xa=!0,1===this.Of&&this.gi&&d.init(),d.Da(b),d.Za?(d.left()<this.Yi&&(this.Yi=d.left()),d.right()>this.Zi&&(this.Zi=d.right()),d.top()<this.$i&&(this.$i=d.top()),d.bottom()>this.Xi&&(this.Xi=d.bottom()),e++):g.push(d);this.zb.length=e;this.ha();
this.gi=!1;1===this.Of&&0===this.zb.length&&this.b.Ld(this)};b.wc=function(b){var a,c,d,e=this.d;a=0;for(c=this.zb.length;a<c;a++)d=this.zb[a],d.right()>=e.Xa&&d.bottom()>=e.Ya&&d.left()<=e.ob&&d.top()<=e.nb&&d.wc(b)};b.Ib=function(b){this.cp=this.d.Zb();b.hc(this.type.U);var a,c,d,e=this.d;a=0;for(c=this.zb.length;a<c;a++)d=this.zb[a],d.right()>=e.Xa&&d.bottom()>=e.Ya&&d.left()<=e.ob&&d.top()<=e.nb&&d.Ib(b)};h.i=new function(){};h.W=new function(){};h.ab=new function(){}})();
function Y(e){this.b=e}
(function(){function e(){if(0===this.uk.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.Pf?b.drawImage(this.M,this.Ef,this.Ff,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.M,0,0,this.width,this.height);this.uk=a.toDataURL("image/png")}return this.uk}function h(){}function b(a){a[0]=0;a[1]=0;a[2]=0;z.push(a)}function g(a,b){return a<b?""+a+","+b:""+b+","+a}function m(a,b,c,d){b=b.uid;c=c.uid;var e=g(b,c);if(a.hasOwnProperty(e))a[e][2]=
d;else{var f=z.length?z.pop():[0,0,0];f[0]=b;f[1]=c;f[2]=d;a[e]=f}}function a(a,c,d){c=g(c.uid,d.uid);a.hasOwnProperty(c)&&(b(a[c]),delete a[c])}function c(a,b,c){b=g(b.uid,c.uid);if(a.hasOwnProperty(b))return y=a[b][2],!0;y=-2;return!1}function d(){}var p=Y.prototype;p.wa=function(a){this.Ga=a;this.b=a.b};var f=p.wa.prototype;f.T=function(){if(!this.F){var a,b,c,d,f,g,h,l,m;this.Jc=[];this.qg=!1;a=0;for(b=this.Wb.length;a<b;a++){f=this.Wb[a];h={};h.name=f[0];h.speed=f[1];h.loop=f[2];h.am=f[3];h.oj=
f[4];h.dp=f[5];h.V=f[6];h.frames=[];c=0;for(d=f[7].length;c<d;c++)g=f[7][c],l={},l.Gj=g[0],l.Hj=g[1],l.Ef=g[2],l.Ff=g[3],l.width=g[4],l.height=g[5],l.duration=g[6],l.Kb=g[7],l.Lb=g[8],l.bl=g[9],l.cj=g[10],l.ep=g[11],l.Pf=0!==l.width,l.uk="",l.Yv=e,m={left:0,top:0,right:1,bottom:1},l.nm=m,l.U=null,(m=this.b.Fs(g[0]))?l.M=m:(l.M=new Image,l.M.Hr=g[0],l.M.rk=g[1],l.M.ur=null,this.b.Lm(l.M,g[0])),h.frames.push(l),this.Jc.push(l);this.Wb[a]=h}}};f.Qp=function(){var a,b,c;a=0;for(b=this.c.length;a<b;a++)c=
this.c[a],c.Vh=c.uc.U};f.Ti=function(){if(!this.F){var a,b,c;a=0;for(b=this.Jc.length;a<b;++a)c=this.Jc[a],c.M.ur=null,c.U=null;this.qg=!1;this.Qp()}};f.Ui=function(){if(!this.F&&this.c.length){var a,b,c;a=0;for(b=this.Jc.length;a<b;++a)c=this.Jc[a],c.U=this.b.u.yf(c.M,!1,this.b.Y,c.ep);this.Qp()}};f.Jg=function(){if(!this.F&&!this.qg&&this.b.u){var a,b,c;a=0;for(b=this.Jc.length;a<b;++a)c=this.Jc[a],c.U=this.b.u.yf(c.M,!1,this.b.Y,c.ep);this.qg=!0}};f.Qj=function(){if(!this.F&&!this.c.length&&this.qg){var a,
b,c;a=0;for(b=this.Jc.length;a<b;++a)c=this.Jc[a],this.b.u.deleteTexture(c.U),c.U=null;this.qg=!1}};var q=[];f.gj=function(a){var b,c,d;b=q.length=0;for(c=this.Jc.length;b<c;++b)d=this.Jc[b].M,-1===q.indexOf(d)&&(a.drawImage(d,0,0),q.push(d))};p.da=function(a){this.type=a;this.b=a.b;a=this.type.Wb[0].frames[0].cj;this.Qc?this.ea.nh(a):this.ea=new Xa(a)};var s=p.da.prototype;s.T=function(){this.visible=0===this.D[0];this.nd=0!==this.D[3];1===this.type.Wb.length&&1===this.type.Wb[0].frames.length||
0===this.type.Wb[0].speed||this.b.Kj(this);this.Ea=this.Bn(this.D[1])||this.type.Wb[0];this.C=this.D[2];0>this.C&&(this.C=0);this.C>=this.Ea.frames.length&&(this.C=this.Ea.frames.length-1);var a=this.Ea.frames[this.C];this.ea.nh(a.cj);this.Kb=a.Kb;this.Lb=a.Lb;this.dg=this.Ea.speed;this.Qc?this.Uc.reset():this.Uc=new Va;this.vd=this.Uc.ja;this.oe=!0;this.ld=0;this.ne=!0;this.ok=this.en="";this.Cr=0;this.nk=-1;this.type.Jg();var b,c,d,e,f,g,h,a=0;for(b=this.type.Wb.length;a<b;a++)for(e=this.type.Wb[a],
c=0,d=e.frames.length;c<d;c++)f=e.frames[c],0===f.width&&(f.width=f.M.width,f.height=f.M.height),f.Pf&&(h=f.M,g=f.nm,g.left=f.Ef/h.width,g.top=f.Ff/h.height,g.right=(f.Ef+f.width)/h.width,g.bottom=(f.Ff+f.height)/h.height,0===f.Ef&&0===f.Ff&&f.width===h.width&&f.height===h.height&&(f.Pf=!1));this.uc=this.Ea.frames[this.C];this.Vh=this.uc.U};s.rb=function(){var a={a:this.Ea.V,f:this.C,cas:this.dg,fs:this.vd,ar:this.ld,at:this.Uc.ja};this.oe||(a.ap=this.oe);this.ne||(a.af=this.ne);return a};s.Mb=function(a){var b=
this.Ks(a.a);b&&(this.Ea=b);this.C=a.f;0>this.C&&(this.C=0);this.C>=this.Ea.frames.length&&(this.C=this.Ea.frames.length-1);this.dg=a.cas;this.vd=a.fs;this.ld=a.ar;this.Uc.reset();this.Uc.ja=a.at;this.oe=a.hasOwnProperty("ap")?a.ap:!0;this.ne=a.hasOwnProperty("af")?a.af:!0;this.uc=this.Ea.frames[this.C];this.Vh=this.uc.U;this.ea.nh(this.uc.cj);this.Kb=this.uc.Kb;this.Lb=this.uc.Lb};s.ik=function(a){this.C=a?0:this.Ea.frames.length-1;this.oe=!1;this.en=this.Ea.name;this.b.trigger(Y.prototype.i.tq,
this);this.b.trigger(Y.prototype.i.sq,this);this.ld=0};s.$v=function(){return this.Uc.ja};s.Da=function(){this.Uc.add(this.b.ki(this));this.ok.length&&this.Nr();0<=this.nk&&this.Or();var a=this.Uc.ja,b=this.Ea,c=b.frames[this.C],d=c.duration/this.dg;this.oe&&a>=this.vd+d&&(this.ne?this.C++:this.C--,this.vd+=d,this.C>=b.frames.length&&(b.dp?(this.ne=!1,this.C=b.frames.length-2):b.loop?this.C=b.oj:(this.ld++,this.ld>=b.am?this.ik(!1):this.C=b.oj)),0>this.C&&(b.dp?(this.C=1,this.ne=!0,b.loop||(this.ld++,
this.ld>=b.am&&this.ik(!0))):b.loop?this.C=b.oj:(this.ld++,this.ld>=b.am?this.ik(!0):this.C=b.oj)),0>this.C?this.C=0:this.C>=b.frames.length&&(this.C=b.frames.length-1),a>this.vd+b.frames[this.C].duration/this.dg&&(this.vd=a),a=b.frames[this.C],this.$e(c,a),this.b.xa=!0)};s.Bn=function(a){var b,c,d;b=0;for(c=this.type.Wb.length;b<c;b++)if(d=this.type.Wb[b],bb(d.name,a))return d;return null};s.Ks=function(a){var b,c,d;b=0;for(c=this.type.Wb.length;b<c;b++)if(d=this.type.Wb[b],d.V===a)return d;return null};
s.Nr=function(){var a=this.Ea.frames[this.C],b=this.Bn(this.ok);this.ok="";!b||bb(b.name,this.Ea.name)&&this.oe||(this.Ea=b,this.dg=b.speed,0>this.C&&(this.C=0),this.C>=this.Ea.frames.length&&(this.C=this.Ea.frames.length-1),1===this.Cr&&(this.C=0),this.oe=!0,this.vd=this.Uc.ja,this.ne=!0,this.$e(a,this.Ea.frames[this.C]),this.b.xa=!0)};s.Or=function(){var a=this.Ea.frames[this.C],b=this.C;this.C=P(this.nk);0>this.C&&(this.C=0);this.C>=this.Ea.frames.length&&(this.C=this.Ea.frames.length-1);b!==this.C&&
(this.$e(a,this.Ea.frames[this.C]),this.vd=this.Uc.ja,this.b.xa=!0);this.nk=-1};s.$e=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.Kb=b.Kb;this.Lb=b.Lb;this.ea.nh(b.cj);this.ha();this.uc=b;this.Vh=b.U;c=0;for(d=this.G.length;c<d;c++)e=this.G[c],e.Zt&&e.Zt(a,b);this.b.trigger(Y.prototype.i.$e,this)};s.wc=function(a){a.globalAlpha=this.opacity;var b=this.uc,c=b.Pf,d=b.M,e=this.x,f=this.y,g=this.width,h=this.height;if(0===this.e&&0<=
g&&0<=h)e-=this.Kb*g,f-=this.Lb*h,this.b.cd&&(e=Math.round(e),f=Math.round(f)),c?a.drawImage(d,b.Ef,b.Ff,b.width,b.height,e,f,g,h):a.drawImage(d,e,f,g,h);else{this.b.cd&&(e=Math.round(e),f=Math.round(f));a.save();var l=0<g?1:-1,m=0<h?1:-1;a.translate(e,f);1===l&&1===m||a.scale(l,m);a.rotate(this.e*l*m);e=0-this.Kb*ia(g);f=0-this.Lb*ia(h);c?a.drawImage(d,b.Ef,b.Ff,b.width,b.height,e,f,ia(g),ia(h)):a.drawImage(d,e,f,ia(g),ia(h));a.restore()}};s.Ib=function(a){a.hc(this.Vh);a.Te(this.opacity);var b=
this.uc,c=this.Xb;if(this.b.cd){var d=Math.round(this.x)-this.x,e=Math.round(this.y)-this.y;b.Pf?a.Ed(c.Va+d,c.Wa+e,c.Rb+d,c.Sb+e,c.Fb+d,c.Gb+e,c.Db+d,c.Eb+e,b.nm):a.ih(c.Va+d,c.Wa+e,c.Rb+d,c.Sb+e,c.Fb+d,c.Gb+e,c.Db+d,c.Eb+e)}else b.Pf?a.Ed(c.Va,c.Wa,c.Rb,c.Sb,c.Fb,c.Gb,c.Db,c.Eb,b.nm):a.ih(c.Va,c.Wa,c.Rb,c.Sb,c.Fb,c.Gb,c.Db,c.Eb)};s.Os=function(a){var b=this.uc,c,d;c=0;for(d=b.bl.length;c<d;c++)if(bb(a,b.bl[c][0]))return c;return-1};s.Rk=function(a,b){var c=this.uc,d=c.bl,e;e=N(a)?this.Os(a):a-1;
e=P(e);if(0>e||e>=d.length)return b?this.x:this.y;var f=(d[e][1]-c.Kb)*this.width,d=d[e][2],d=(d-c.Lb)*this.height,c=Math.cos(this.e);e=Math.sin(this.e);var g=f*c-d*e,d=d*c+f*e,f=g+this.x,d=d+this.y;return b?f:d};var z=[],y=-2,w=[];h.prototype.yq=function(d){if(!d)return!1;var e=this.b,f=e.jg(),g=f.type;f.ra.collmemory||(f.ra.collmemory={},e.bn(function(a){return function(c){c=c.uid;var d,e;for(d in a)a.hasOwnProperty(d)&&(e=a[d],e[0]===c||e[1]===c)&&(b(a[d]),delete a[d])}}(f.ra.collmemory)));var f=
f.ra.collmemory,h=g.ca(),l=d.ca(),h=h.mc(),p,q,s,u,v,x,z,A=this.b.Hd,G=A-1,D=e.jb().Hb;for(q=0;q<h.length;q++){s=h[q];l.pa?(s.za(),this.b.Ok(s.d,d,s.Aa,w),p=w):p=l.mc();for(u=0;u<p.length;u++)v=p[u],e.Fj(s,v)||e.Dr(s,v)?(x=c(f,s,v),x=!x||y<G,m(f,s,v,A),x&&(e.ij(D.ya),x=g.ca(),z=d.ca(),x.pa=!1,z.pa=!1,g===d?(x.c.length=2,x.c[0]=s,x.c[1]=v,g.qc()):(x.c.length=1,z.c.length=1,x.c[0]=s,z.c[0]=v,g.qc(),d.qc()),D.ru(),e.Re(D.ya))):a(f,s,v);w.length=0}return!1};var u=null,l=new ca,v=!1,A=[];f.finish=function(a){if(v){if(a){var b=
this.b.jb().Hb.Dc;a=u.ca();var c=l.Gc(),d,e;if(a.pa){a.pa=!1;a.c.length=c.length;d=0;for(e=c.length;d<e;d++)a.c[d]=c[d];if(b)for(d=a.ba.length=0,e=u.c.length;d<e;d++)c=u.c[d],l.contains(c)||a.ba.push(c)}else if(b)for(b=a.c.length,a.c.length=b+c.length,d=0,e=c.length;d<e;d++)a.c[b+d]=c[d],xa(a.ba,c[d]);else ua(a.c,c);u.qc()}l.clear();v=!1}};h.prototype.kq=function(a){if(a){var b=!1,c,d,e,f=this.b.jg(),g=f.type,f=f.of;c=a.ca();d=this.b.jb().Hb.Dc;var h;c.pa?(this.za(),this.b.Ok(this.d,a,this.Aa,A),
h=A):h=d?c.ba:c.c;u=a;v=g!==a&&!f;c=0;for(d=h.length;c<d;c++)if(e=h[c],this.b.Fj(this,e)){b=!0;if(f)break;g!==a&&l.add(e)}A.length=0;a=b}else a=!1;return a};h.prototype.sq=function(a){return bb(this.en,a)};h.prototype.tq=function(){return!0};h.prototype.$e=function(){return!0};p.i=new h;d.prototype.Yq=function(a){a=ia(this.width)*(0===a?-1:1);this.width!==a&&(this.width=a,this.ha())};p.W=new d;p.ab=new function(){}})();function gc(e){this.b=e}
(function(){function e(){}function h(){}function b(){}var g=gc.prototype;g.wa=function(a){this.Ga=a;this.b=a.b};g.wa.prototype.T=function(){};g.da=function(a){this.type=a;this.b=a.b};var m=g.da.prototype,a="text password email number tel url".split(" ");-1<navigator.userAgent.indexOf("MSIE 9")&&(a[2]="text",a[3]="text",a[4]="text",a[5]="text");m.T=function(){if(this.b.P)H("[Construct 2] Textbox plugin not supported on this platform - the object will not be created");else{6===this.D[7]?(this.A=document.createElement("textarea"),
jQuery(this.A).css("resize","none")):(this.A=document.createElement("input"),this.A.type=a[this.D[7]]);this.A.id=this.D[9];jQuery(this.A).appendTo(this.b.Oh?this.b.Oh:"body");this.A.autocomplete="off";this.A.value=this.D[0];this.A.placeholder=this.D[1];this.A.title=this.D[2];this.A.disabled=0===this.D[4];this.A.readOnly=1===this.D[5];this.A.spellcheck=1===this.D[6];this.qr=0!==this.D[8];this.ye=!1;0===this.D[3]&&(jQuery(this.A).hide(),this.visible=!1,this.ye=!0);var b=function(a){return function(){a.b.trigger(gc.prototype.i.Rq,
a)}}(this);this.A.oninput=b;-1!==navigator.userAgent.indexOf("MSIE")&&(this.A.oncut=b);this.A.onclick=function(a){return function(b){b.stopPropagation();a.b.la=!0;a.b.trigger(gc.prototype.i.xq,a);a.b.la=!1}}(this);this.A.ondblclick=function(a){return function(b){b.stopPropagation();a.b.la=!0;a.b.trigger(gc.prototype.i.Bq,a);a.b.la=!1}}(this);this.A.addEventListener("touchstart",function(a){a.stopPropagation()},!1);this.A.addEventListener("touchmove",function(a){a.stopPropagation()},!1);this.A.addEventListener("touchend",
function(a){a.stopPropagation()},!1);jQuery(this.A).mousedown(function(a){a.stopPropagation()});jQuery(this.A).mouseup(function(a){a.stopPropagation()});jQuery(this.A).keydown(function(a){13!==a.which&&27!=a.which&&a.stopPropagation()});jQuery(this.A).keyup(function(a){13!==a.which&&27!=a.which&&a.stopPropagation()});this.ko=this.lo=this.$n=this.fo=this.jo=this.bo=0;this.Sp(!0);this.b.Kj(this)}};m.rb=function(){return{text:this.A.value,placeholder:this.A.placeholder,tooltip:this.A.title,disabled:!!this.A.disabled,
readonly:!!this.A.readOnly,spellcheck:!!this.A.spellcheck}};m.Mb=function(a){this.A.value=a.text;this.A.placeholder=a.placeholder;this.A.title=a.tooltip;this.A.disabled=a.disabled;this.A.readOnly=a.readonly;this.A.spellcheck=a.spellcheck};m.Gf=function(){this.b.P||(jQuery(this.A).remove(),this.A=null)};m.Da=function(){this.Sp()};m.Sp=function(a){if(!this.b.P){var b=this.d.Ra(this.x,this.y,!0),e=this.d.Ra(this.x,this.y,!1),f=this.d.Ra(this.x+this.width,this.y+this.height,!0),g=this.d.Ra(this.x+this.width,
this.y+this.height,!1),h=this.b.width/this.b.devicePixelRatio,m=this.b.height/this.b.devicePixelRatio;!this.visible||!this.d.visible||0>=f||0>=g||b>=h||e>=m?(this.ye||jQuery(this.A).hide(),this.ye=!0):(1>b&&(b=1),1>e&&(e=1),f>=h&&(f=h-1),g>=m&&(g=m-1),h=window.innerWidth,m=window.innerHeight,a||this.bo!==b||this.jo!==e||this.fo!==f||this.$n!==g||this.lo!==h||this.ko!==m?(this.bo=b,this.jo=e,this.fo=f,this.$n=g,this.lo=h,this.ko=m,this.ye&&(jQuery(this.A).show(),this.ye=!1),a=Math.round(b)+jQuery(this.b.canvas).offset().left,
h=Math.round(e)+jQuery(this.b.canvas).offset().top,jQuery(this.A).css("position","absolute"),jQuery(this.A).offset({left:a,top:h}),jQuery(this.A).width(Math.round(f-b)),jQuery(this.A).height(Math.round(g-e)),this.qr&&jQuery(this.A).css("font-size",this.d.Zb(!0)/this.b.devicePixelRatio-.2+"em")):this.ye&&(jQuery(this.A).show(),this.ye=!1))}};m.wc=function(){};m.Ib=function(){};e.prototype.Rq=function(){return!0};e.prototype.xq=function(){return!0};e.prototype.Bq=function(){return!0};g.i=new e;h.prototype.cr=
function(a){this.b.P||(this.A.value=a)};h.prototype.$q=function(a){this.b.P||(this.A.placeholder=a)};h.prototype.ck=function(a){this.b.P||(this.visible=0!==a)};h.prototype.Xq=function(a,b){this.b.P||jQuery(this.A).css(a,b)};g.W=new h;b.prototype.Text=function(a){this.b.P?a.Ab(""):a.Ab(this.A.value)};g.ab=new b})();function hc(e){this.b=e}
(function(){var e=hc.prototype;e.wa=function(b){this.Ga=b;this.b=b.b};var h=e.wa.prototype;h.T=function(){this.F||(this.M=new Image,this.M.rk=this.Hj,this.b.Lm(this.M,this.Gj),this.U=this.pattern=null)};h.Ti=function(){this.F||(this.U=null)};h.Ui=function(){if(!this.F&&this.c.length){this.U||(this.U=this.b.u.yf(this.M,!0,this.b.Y,this.uh));var b,e;b=0;for(e=this.c.length;b<e;b++)this.c[b].U=this.U}};h.Jg=function(){this.F||this.U||!this.b.u||(this.U=this.b.u.yf(this.M,!0,this.b.Y,this.uh))};h.Qj=
function(){this.F||this.c.length||!this.U||(this.b.u.deleteTexture(this.U),this.U=null)};h.gj=function(b){b.drawImage(this.M,0,0)};e.da=function(b){this.type=b;this.b=b.b};h=e.da.prototype;h.T=function(){this.visible=0===this.D[0];this.jh=new qa(0,0,0,0);this.Ln=!1;this.M=this.type.M;this.b.u?(this.type.Jg(),this.U=this.type.U):(this.type.pattern||(this.type.pattern=this.b.qa.createPattern(this.type.M,"repeat")),this.pattern=this.type.pattern)};h.kd=function(){this.Ln=!1;this.M=this.type.M};h.Gf=
function(){this.b.u&&this.Ln&&this.U&&(this.b.u.deleteTexture(this.U),this.U=null)};h.wc=function(b){b.globalAlpha=this.opacity;b.save();b.fillStyle=this.pattern;var e=this.x,h=this.y;this.b.cd&&(e=Math.round(e),h=Math.round(h));var a=-(this.Kb*this.width),c=-(this.Lb*this.height),d=a%this.M.width,p=c%this.M.height;0>d&&(d+=this.M.width);0>p&&(p+=this.M.height);b.translate(e,h);b.rotate(this.e);b.translate(d,p);b.fillRect(a-d,c-p,this.width,this.height);b.restore()};h.Ib=function(b){b.hc(this.U);
b.Te(this.opacity);var e=this.jh;e.right=this.width/this.M.width;e.bottom=this.height/this.M.height;var h=this.Xb;if(this.b.cd){var a=Math.round(this.x)-this.x,c=Math.round(this.y)-this.y;b.Ed(h.Va+a,h.Wa+c,h.Rb+a,h.Sb+c,h.Fb+a,h.Gb+c,h.Db+a,h.Eb+c,e)}else b.Ed(h.Va,h.Wa,h.Rb,h.Sb,h.Fb,h.Gb,h.Db,h.Eb,e)};e.i=new function(){};e.W=new function(){};e.ab=new function(){}})();function Z(e){this.b=e}
(function(){function e(a){f=a.x;q=a.y;s=a.z}function h(a){z=a.x;y=a.y;w=a.z}function b(a,b,c,d){var e;e=u.length?u.pop():new g;e.init(a,b,c,d);return e}function g(){this.qh=this.id=this.y=this.x=this.Dj=this.Cj=this.ql=this.time=this.wm=0;this.xh=this.Oj=!1}function m(){}function a(){}var c=Z.prototype;c.wa=function(a){this.Ga=a;this.b=a.b};c.wa.prototype.T=function(){};c.da=function(a){this.type=a;this.b=a.b;this.touches=[];this.El=!1};var d=c.da.prototype,p={left:0,top:0};d.hg=function(a){var b,
c;b=0;for(c=this.touches.length;b<c;b++)if(this.touches[b].id===a)return b;return-1};var f=0,q=0,s=0,z=0,y=0,w=0,u=[];g.prototype.init=function(a,b,c,d){var e=S();this.wm=this.ql=this.time=e;this.Cj=a;this.Dj=b;this.x=a;this.y=b;this.id=c;this.qh=d;this.xh=this.Oj=!1};g.prototype.update=function(a,b,c){this.ql=this.time;this.time=a;this.x=b;this.y=c;!this.xh&&15<=Ka(this.Cj,this.Dj,this.x,this.y)&&(this.xh=!0)};g.prototype.Ot=function(a,b){!this.Oj&&500<=S()-this.wm&&!this.xh&&15>Ka(this.Cj,this.Dj,
this.x,this.y)&&(this.Oj=!0,a.gd=this.qh,a.Uf=this.id,a.jf=b,a.b.trigger(Z.prototype.i.Gq,a),a.pd=this.x,a.qd=this.y,a.b.trigger(Z.prototype.i.Hq,a),a.jf=0)};var l=-1E3,v=-1E3,A=-1E4;g.prototype.Go=function(a,b){if(!this.Oj){var c=S();333>=c-this.wm&&!this.xh&&15>Ka(this.Cj,this.Dj,this.x,this.y)&&(a.gd=this.qh,a.Uf=this.id,a.jf=b,666>=c-A&&25>Ka(l,v,this.x,this.y)?(a.b.trigger(Z.prototype.i.Cq,a),a.pd=this.x,a.qd=this.y,a.b.trigger(Z.prototype.i.Dq,a),v=l=-1E3,A=-1E4):(a.b.trigger(Z.prototype.i.Pq,
a),a.pd=this.x,a.qd=this.y,a.b.trigger(Z.prototype.i.Qq,a),l=this.x,v=this.y,A=c),a.jf=0)}};d.T=function(){this.Ht=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.jf=this.Uf=this.gd=this.qd=this.pd=this.$m=this.Zm=this.Ym=this.kr=this.jr=this.ir=this.dh=this.bh=this.ah=0;this.Pu=0!==this.D[0];var a=0<this.b.wb?document:this.b.canvas,b=document;this.b.kb?b=a=window.Canvas:this.b.nc&&(b=a=window);var c=this;window.navigator.pointerEnabled?(a.addEventListener("pointerdown",function(a){c.$g(a)},
!1),a.addEventListener("pointermove",function(a){c.Zg(a)},!1),b.addEventListener("pointerup",function(a){c.Dd(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.Dd(a,!0)},!1),this.b.canvas&&(this.b.canvas.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),document.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),this.b.canvas.addEventListener("gesturehold",function(a){a.preventDefault()},!1),document.addEventListener("gesturehold",function(a){a.preventDefault()},
!1))):window.navigator.msPointerEnabled?(a.addEventListener("MSPointerDown",function(a){c.$g(a)},!1),a.addEventListener("MSPointerMove",function(a){c.Zg(a)},!1),b.addEventListener("MSPointerUp",function(a){c.Dd(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.Dd(a,!0)},!1),this.b.canvas&&(this.b.canvas.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),document.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1))):(a.addEventListener("touchstart",function(a){c.Wi(a)},
!1),a.addEventListener("touchmove",function(a){c.Vi(a)},!1),b.addEventListener("touchend",function(a){c.Hf(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.Hf(a,!0)},!1));if(this.Ht){var d=function(a){a=a.reading;c.Ym=a.accelerationX;c.Zm=a.accelerationY;c.$m=a.accelerationZ},f=function(a){a=a.reading;c.ah=a.yawDegrees;c.bh=a.pitchDegrees;c.dh=a.rollDegrees},g=Windows.Devices.Sensors.Accelerometer.getDefault();g&&(g.reportInterval=Math.max(g.minimumReportInterval,16),g.addEventListener("readingchanged",
d));var l=Windows.Devices.Sensors.Inclinometer.getDefault();l&&(l.reportInterval=Math.max(l.minimumReportInterval,16),l.addEventListener("readingchanged",f));document.addEventListener("visibilitychange",function(){document.hidden||document.msHidden?(g&&g.removeEventListener("readingchanged",d),l&&l.removeEventListener("readingchanged",f)):(g&&g.addEventListener("readingchanged",d),l&&l.addEventListener("readingchanged",f))},!1)}else window.addEventListener("deviceorientation",function(a){c.ah=a.alpha||
0;c.bh=a.beta||0;c.dh=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.ir=a.accelerationIncludingGravity.x||0,c.jr=a.accelerationIncludingGravity.y||0,c.kr=a.accelerationIncludingGravity.z||0);a.acceleration&&(c.Ym=a.acceleration.x||0,c.Zm=a.acceleration.y||0,c.$m=a.acceleration.z||0)},!1);this.Pu&&!this.b.P&&(jQuery(document).mousemove(function(a){c.Xg(a)}),jQuery(document).mousedown(function(a){c.Wg(a)}),jQuery(document).mouseup(function(a){c.Yg(a)}));
this.b.pf&&!this.b.kb&&AppMobi.accelerometer.watchAcceleration(e,{frequency:40,adjustForRotation:!0});this.b.zc&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(h,null,{frequency:40});this.b.Iu(this)};d.Zg=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var b=this.hg(a.pointerId),c=S();if(0<=b){var d=this.b.P?p:jQuery(this.b.canvas).offset(),b=this.touches[b];2>c-b.time||
b.update(c,a.pageX-d.left,a.pageY-d.top)}}};d.$g=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&cb(a)&&a.preventDefault();var c=this.b.P?p:jQuery(this.b.canvas).offset(),d=a.pageX-c.left,c=a.pageY-c.top;S();this.gd=this.touches.length;this.Uf=a.pointerId;this.touches.push(b(d,c,a.pointerId,this.gd));this.b.la=!0;this.b.trigger(Z.prototype.i.Tm,this);this.b.trigger(Z.prototype.i.Vm,this);this.pd=d;this.qd=c;this.b.trigger(Z.prototype.i.bk,this);this.b.la=
!1}};d.Dd=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&cb(a)&&a.preventDefault();var c=this.hg(a.pointerId);this.gd=0<=c?this.touches[c].qh:-1;this.Uf=0<=c?this.touches[c].id:-1;this.b.la=!0;this.b.trigger(Z.prototype.i.Sm,this);this.b.trigger(Z.prototype.i.Um,this);0<=c&&(b||this.touches[c].Go(this,c),100>u.length&&u.push(this.touches[c]),this.touches.splice(c,1));this.b.la=!1}};d.Vi=function(a){a.preventDefault&&a.preventDefault();var b=S(),
c,d,e,f;c=0;for(d=a.changedTouches.length;c<d;c++)if(e=a.changedTouches[c],f=this.hg(e.identifier),0<=f){var g=this.b.P?p:jQuery(this.b.canvas).offset();f=this.touches[f];2>b-f.time||f.update(b,e.pageX-g.left,e.pageY-g.top)}};d.Wi=function(a){a.preventDefault&&cb(a)&&a.preventDefault();var c=this.b.P?p:jQuery(this.b.canvas).offset();S();this.b.la=!0;var d,e,f,g;d=0;for(e=a.changedTouches.length;d<e;d++)if(f=a.changedTouches[d],g=this.hg(f.identifier),-1===g){g=f.pageX-c.left;var h=f.pageY-c.top;this.gd=
this.touches.length;this.Uf=f.identifier;this.touches.push(b(g,h,f.identifier,this.gd));this.b.trigger(Z.prototype.i.Tm,this);this.b.trigger(Z.prototype.i.Vm,this);this.pd=g;this.qd=h;this.b.trigger(Z.prototype.i.bk,this)}this.b.la=!1};d.Hf=function(a,b){a.preventDefault&&cb(a)&&a.preventDefault();this.b.la=!0;var c,d,e;c=0;for(d=a.changedTouches.length;c<d;c++)e=a.changedTouches[c],e=this.hg(e.identifier),0<=e&&(this.gd=this.touches[e].qh,this.Uf=this.touches[e].id,this.b.trigger(Z.prototype.i.Sm,
this),this.b.trigger(Z.prototype.i.Um,this),b||this.touches[e].Go(this,e),100>u.length&&u.push(this.touches[e]),this.touches.splice(e,1));this.b.la=!1};d.Vv=function(){return this.b.pf&&0===this.ah&&0!==s?90*s:this.b.zc&&0===this.ah&&0!==w?90*w:this.ah};d.Wv=function(){return this.b.pf&&0===this.bh&&0!==q?-90*q:this.b.zc&&0===this.bh&&0!==y?-90*y:this.bh};d.Zv=function(){return this.b.pf&&0===this.dh&&0!==f?90*f:this.b.zc&&0===this.dh&&0!==z?90*z:this.dh};d.Wg=function(a){a.preventDefault&&this.b.mf&&
!this.b.$c&&a.preventDefault();this.Wi({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.El=!0};d.Xg=function(a){this.El&&this.Vi({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};d.Yg=function(a){a.preventDefault&&this.b.mf&&!this.b.$c&&a.preventDefault();this.b.mf=!0;this.Hf({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.El=!1};d.vh=function(){var a,b,c,d=S();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=d-50&&(c.ql=d),c.Ot(this,
a)};m.prototype.Vm=function(){return!0};m.prototype.Um=function(){return!0};m.prototype.bk=function(a){return a?this.b.Rf(a,this.pd,this.qd,!1):!1};var n=[];m.prototype.lq=function(a){if(!a)return!1;var b=a.ca(),c=b.mc(),d,e,f,g,h,l;f=0;for(g=c.length;f<g;f++){var m=c[f];m.za();h=0;for(l=this.touches.length;h<l;h++)if(e=this.touches[h],d=m.d.Ba(e.x,e.y,!0),e=m.d.Ba(e.x,e.y,!1),m.ub(d,e)){n.push(m);break}}return n.length?(b.pa=!1,ua(b.c,n),a.qc(),n.length=0,!0):!1};m.prototype.Tm=function(a){a=Math.floor(a);
return a===this.gd};m.prototype.Sm=function(a){a=Math.floor(a);return a===this.gd};m.prototype.Gq=function(){return!0};m.prototype.Pq=function(){return!0};m.prototype.Cq=function(){return!0};m.prototype.Hq=function(a){return a?this.b.Rf(a,this.pd,this.qd,!1):!1};m.prototype.Qq=function(a){return a?this.b.Rf(a,this.pd,this.qd,!1):!1};m.prototype.Dq=function(a){return a?this.b.Rf(a,this.pd,this.qd,!1):!1};c.i=new m;a.prototype.Wm=function(a,b){var c=this.jf;if(0>c||c>=this.touches.length)a.B(0);else{var d,
e,f,g,h;fa(b)?(d=this.b.wd(0),e=d.scale,f=d.tb,g=d.Ob,h=d.e,d.scale=1,d.tb=1,d.Ob=1,d.e=0,a.B(d.Ba(this.touches[c].x,this.touches[c].y,!0)),d.scale=e,d.tb=f,d.Ob=g,d.e=h):(d=L(b)?this.b.wd(b):this.b.kg(b))?a.B(d.Ba(this.touches[c].x,this.touches[c].y,!0)):a.B(0)}};a.prototype.Xm=function(a,b){var c=this.jf;if(0>c||c>=this.touches.length)a.B(0);else{var d,e,f,g,h;fa(b)?(d=this.b.wd(0),e=d.scale,f=d.tb,g=d.Pb,h=d.e,d.scale=1,d.tb=1,d.Pb=1,d.e=0,a.B(d.Ba(this.touches[c].x,this.touches[c].y,!1)),d.scale=
e,d.tb=f,d.Pb=g,d.e=h):(d=L(b)?this.b.wd(b):this.b.kg(b))?a.B(d.Ba(this.touches[c].x,this.touches[c].y,!1)):a.B(0)}};c.ab=new a})();
function mc(e){this.b=e;var h=this;this.b.P||(jQuery(document).mousemove(function(b){h.Xg(b)}),jQuery(document).mousedown(function(b){h.Wg(b)}),jQuery(document).mouseup(function(b){h.Yg(b)}));e=0<this.b.wb?document:this.b.canvas;this.b.kb?e=window.Canvas:this.b.nc&&(e=window);window.navigator.pointerEnabled?(e.addEventListener("pointerdown",function(b){h.$g(b)},!1),e.addEventListener("pointermove",function(b){h.Zg(b)},!1),e.addEventListener("pointerup",function(b){h.Dd(b)},!1),e.addEventListener("pointercancel",
function(b){h.Dd(b)},!1)):window.navigator.msPointerEnabled?(e.addEventListener("MSPointerDown",function(b){h.$g(b)},!1),e.addEventListener("MSPointerMove",function(b){h.Zg(b)},!1),e.addEventListener("MSPointerUp",function(b){h.Dd(b)},!1),e.addEventListener("MSPointerCancel",function(b){h.Dd(b)},!1)):(e.addEventListener("touchstart",function(b){h.Wi(b)},!1),e.addEventListener("touchmove",function(b){h.Vi(b)},!1),e.addEventListener("touchend",function(b){h.Hf(b)},!1),e.addEventListener("touchcancel",
function(b){h.Hf(b)},!1))}
(function(){function e(a){var c,d;c=0;for(d=a.G.length;c<d;c++)if(a.G[c]instanceof b.da)return a.G[c];return null}function h(){}var b=mc.prototype,g={left:0,top:0};b.Wg=function(a){1===a.which&&this.Ll("leftmouse",a.pageX,a.pageY)};b.Xg=function(a){1===a.which&&this.Ml("leftmouse",a.pageX,a.pageY)};b.Yg=function(a){1===a.which&&this.Nl("leftmouse")};b.Wi=function(a){a.preventDefault&&cb(a)&&a.preventDefault();var b,d,e,f;b=0;for(d=a.changedTouches.length;b<d;b++)e=a.changedTouches[b],f=e.identifier,
this.Ll(f?f.toString():"<none>",e.pageX,e.pageY)};b.Vi=function(a){a.preventDefault&&a.preventDefault();var b,d,e,f;b=0;for(d=a.changedTouches.length;b<d;b++)e=a.changedTouches[b],f=e.identifier,this.Ml(f?f.toString():"<none>",e.pageX,e.pageY)};b.Hf=function(a){a.preventDefault&&cb(a)&&a.preventDefault();var b,d,e;b=0;for(d=a.changedTouches.length;b<d;b++)e=a.changedTouches[b],e=e.identifier,this.Nl(e?e.toString():"<none>")};b.$g=function(a){a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType&&
(a.preventDefault&&cb(a)&&a.preventDefault(),this.Ll(a.pointerId.toString(),a.pageX,a.pageY))};b.Zg=function(a){a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType&&(a.preventDefault&&a.preventDefault(),this.Ml(a.pointerId.toString(),a.pageX,a.pageY))};b.Dd=function(a){a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType&&(a.preventDefault&&cb(a)&&a.preventDefault(),this.Nl(a.pointerId.toString()))};b.Ll=function(a,b,d){var h=this.b.P?g:jQuery(this.b.canvas).offset();b-=h.left;
d-=h.top;var f,m,s,z,h=this.Pe.Gc(),y,w,u,l=null;y=0;for(w=h.length;y<w;y++)if(u=h[y],f=e(u),f.enabled&&!f.xe&&(f=u.d.Ba(b,d,!0),m=u.d.Ba(b,d,!1),u.za(),u.ub(f,m)))l?u.d.index>l.d.index?(l=u,s=f,z=m):u.d.index===l.d.index&&u.$b()>l.$b()&&(l=u,s=f,z=m):(l=u,s=f,z=m);l&&e(l).Wt(a,s,z)};b.Ml=function(a,b,d){var h=this.b.P?g:jQuery(this.b.canvas).offset();b-=h.left;d-=h.top;var f,m=this.Pe.Gc(),s,z,y;s=0;for(z=m.length;s<z;s++)f=m[s],y=e(f),!y.enabled||!y.xe||y.xe&&y.zk!==a||(h=f.d.Ba(b,d,!0),f=f.d.Ba(b,
d,!1),y.Yt(h,f))};b.Nl=function(a){var b=this.Pe.Gc(),d,g,f;d=0;for(g=b.length;d<g;d++)f=b[d],f=e(f),f.xe&&f.zk===a&&f.au()};b.wa=function(a){this.behavior=a;this.b=a.b};b.wa.prototype.T=function(){};b.da=function(a,b){this.type=a;this.behavior=a.behavior;this.k=b;this.b=a.b};var m=b.da.prototype;m.T=function(){this.xe=!1;this.ga=this.fa=0;this.zk="<none>";this.jk=this.D[0];this.enabled=0!==this.D[1]};m.rb=function(){return{enabled:this.enabled}};m.Mb=function(a){this.enabled=a.enabled;this.xe=!1};
m.Wt=function(a,b,d){this.fa=b-this.k.x;this.ga=d-this.k.y;this.xe=!0;this.zk=a;this.b.la=!0;this.b.trigger(mc.prototype.i.Eq,this.k);this.b.la=!1};m.Yt=function(a,b){var d=a-this.fa,e=b-this.ga;if(0===this.jk){if(this.k.x!==d||this.k.y!==e)this.k.x=d,this.k.y=e,this.k.ha()}else 1===this.jk?this.k.x!==d&&(this.k.x=d,this.k.ha()):2===this.jk&&this.k.y!==e&&(this.k.y=e,this.k.ha())};m.au=function(){this.xe=!1;this.b.la=!0;this.b.trigger(mc.prototype.i.Fq,this.k);this.b.la=!1};m.Da=function(){};h.prototype.Eq=
function(){return!0};h.prototype.Fq=function(){return!0};b.i=new h;b.W=new function(){};b.ab=new function(){}})();function nc(e){this.b=e}
(function(){var e=nc.prototype;e.wa=function(b){this.behavior=b;this.b=b.b};e.wa.prototype.T=function(){};e.da=function(b,e){this.type=b;this.behavior=b.behavior;this.k=e;this.b=b.b;this.rm=this.qm=this.pm=this.tm=this.al=this.pj=this.Ji=this.ai=this.Sj=!1;this.pl=this.ol=this.nl=this.rl=-1;this.ga=this.fa=0};var h=e.da.prototype;h.T=function(){this.Sg=this.D[0];this.Ub=this.D[1];this.Wc=this.D[2];this.yk=this.D[3];this.hk=this.D[4];this.Lr=1===this.D[5];this.enabled=0!==this.D[6];this.Lr&&!this.b.P&&
(jQuery(document).keydown(function(b){return function(e){b.Ol(e)}}(this)),jQuery(document).keyup(function(b){return function(e){b.Pl(e)}}(this)))};h.rb=function(){return{dx:this.fa,dy:this.ga,enabled:this.enabled,maxspeed:this.Sg,acc:this.Ub,dec:this.Wc,ignoreInput:this.al}};h.Mb=function(b){this.fa=b.dx;this.ga=b.dy;this.enabled=b.enabled;this.Sg=b.maxspeed;this.Ub=b.acc;this.Wc=b.dec;this.al=b.ignoreInput;this.rm=this.qm=this.pm=this.tm=this.pj=this.Ji=this.ai=this.Sj=!1;this.pl=this.ol=this.nl=
this.rl=-1};h.Ol=function(b){var e=this.b.Hd;switch(b.which){case 37:b.preventDefault();this.ol<e&&(this.Ji=!0);break;case 38:b.preventDefault();this.rl<e&&(this.Sj=!0);break;case 39:b.preventDefault();this.pl<e&&(this.pj=!0);break;case 40:b.preventDefault(),this.nl<e&&(this.ai=!0)}};h.Pl=function(b){var e=this.b.Hd;switch(b.which){case 37:b.preventDefault();this.Ji=!1;this.ol=e;break;case 38:b.preventDefault();this.Sj=!1;this.rl=e;break;case 39:b.preventDefault();this.pj=!1;this.pl=e;break;case 40:b.preventDefault(),
this.ai=!1,this.nl=e}};h.Da=function(){var b=this.b.ki(this.k),e=this.Ji||this.qm,h=this.pj||this.rm,a=this.Sj||this.tm,c=this.ai||this.pm;this.pm=this.tm=this.rm=this.qm=!1;if(this.enabled){var d=this.b.Sf(this.k);if(d&&(this.b.mj(this.k,d),!this.b.mu(this.k)))return;this.al&&(c=a=h=e=!1);0===this.yk?h=e=!1:1===this.yk&&(c=a=!1);2===this.yk&&(a||c)&&(h=e=!1);e==h&&(0>this.fa?(this.fa+=this.Wc*b,0<this.fa&&(this.fa=0)):0<this.fa&&(this.fa-=this.Wc*b,0>this.fa&&(this.fa=0)));a==c&&(0>this.ga?(this.ga+=
this.Wc*b,0<this.ga&&(this.ga=0)):0<this.ga&&(this.ga-=this.Wc*b,0>this.ga&&(this.ga=0)));e&&!h&&(this.fa=0<this.fa?this.fa-(this.Ub+this.Wc)*b:this.fa-this.Ub*b);h&&!e&&(this.fa=0>this.fa?this.fa+(this.Ub+this.Wc)*b:this.fa+this.Ub*b);a&&!c&&(this.ga=0<this.ga?this.ga-(this.Ub+this.Wc)*b:this.ga-this.Ub*b);c&&!a&&(this.ga=0>this.ga?this.ga+(this.Ub+this.Wc)*b:this.ga+this.Ub*b);if(0!==this.fa||0!==this.ga){Math.sqrt(this.fa*this.fa+this.ga*this.ga)>this.Sg&&(d=Math.atan2(this.ga,this.fa),this.fa=
this.Sg*Math.cos(d),this.ga=this.Sg*Math.sin(d));h=this.k.x;a=this.k.y;e=this.k.e;this.k.x+=this.fa*b;this.k.ha();if(d=this.b.Sf(this.k))this.k.x=h,this.fa=0,this.k.ha(),this.b.mj(this.k,d);this.k.y+=this.ga*b;this.k.ha();if(d=this.b.Sf(this.k))this.k.y=a,this.ga=0,this.k.ha(),this.b.mj(this.k,d);b=ab(this.fa);d=ab(this.ga);if(0!==b||0!==d)1===this.hk?this.k.e=Da(90*Math.round(ya(Math.atan2(d,b))/90)):2===this.hk?this.k.e=Da(45*Math.round(ya(Math.atan2(d,b))/45)):3===this.hk&&(this.k.e=Math.atan2(d,
b));this.k.ha();this.k.e!=e&&(d=this.b.Sf(this.k))&&(this.k.e=e,this.k.ha(),this.b.mj(this.k,d))}}};e.i=new function(){};e.W=new function(){};e.ab=new function(){}})();function oc(e){this.b=e}
(function(){var e=oc.prototype;e.wa=function(e){this.behavior=e;this.b=e.b};e.wa.prototype.T=function(){};e.da=function(e,b){this.type=e;this.behavior=e.behavior;this.k=b;this.b=e.b;this.mode=0};e=e.da.prototype;e.T=function(){this.mode=this.D[0]};e.Da=function(){};e.vh=function(){this.k.za();var e=this.k.Aa,b=this.k.d.ta,g=!1;0===this.mode?(0>this.k.x&&(this.k.x=0,g=!0),0>this.k.y&&(this.k.y=0,g=!0),this.k.x>b.width&&(this.k.x=b.width,g=!0),this.k.y>b.height&&(this.k.y=b.height,g=!0)):(0>e.left&&
(this.k.x-=e.left,g=!0),0>e.top&&(this.k.y-=e.top,g=!0),e.right>b.width&&(this.k.x-=e.right-b.width,g=!0),e.bottom>b.height&&(this.k.y-=e.bottom-b.height,g=!0));g&&this.k.ha()}})();function pc(e){this.b=e;this.mm=this.vj=this.ph=this.lm=0}
(function(){var e=pc.prototype;e.wa=function(b){this.behavior=b;this.b=b.b};e.wa.prototype.T=function(){};e.da=function(b,e){this.type=b;this.behavior=b.behavior;this.k=e;this.b=b.b};var h=e.da.prototype;h.T=function(){this.enabled=0!==this.D[0]};h.rb=function(){return{smg:this.behavior.lm,ss:this.behavior.ph,se:this.behavior.vj,smd:this.behavior.mm}};h.Mb=function(b){this.behavior.lm=b.smg;this.behavior.ph=b.ss;this.behavior.vj=b.se;this.behavior.mm=b.smd};h.Da=function(){};h.vh=function(){if(this.enabled){var b=
this.behavior.Pe.Gc(),e=0,h=0,a,c,d,p=0;a=0;for(c=b.length;a<c;a++){a:{d=b[a];for(var f=void 0,q=void 0,s=void 0,f=0,q=d.G.length;f<q;++f)if(s=d.G[f],s.behavior instanceof pc){d=s;break a}d=null}d&&d.enabled&&(e+=b[a].x,h+=b[a].y,++p)}b=this.k.d.ta;c=this.b.cc.ja;d=a=0;c>=this.behavior.ph&&c<this.behavior.vj&&(a=this.behavior.lm*Math.min(this.b.We,1),0===this.behavior.mm&&(a*=1-(c-this.behavior.ph)/(this.behavior.vj-this.behavior.ph)),c=Math.random()*Math.PI*2,d=Math.random()*a,a=Math.cos(c)*d,d*=
Math.sin(c));b.hm(e/p+a);b.im(h/p+d)}};e.W=new function(){}})();function bc(e){this.b=e}(function(){var e=bc.prototype;e.wa=function(b){this.behavior=b;this.b=b.b};e.wa.prototype.T=function(){};e.da=function(b,e){this.type=b;this.behavior=b.behavior;this.k=e;this.b=b.b};var h=e.da.prototype;h.T=function(){this.k.ra.solidEnabled=0!==this.D[0]};h.Da=function(){};e.i=new function(){};e.W=new function(){}})();
function ac(){return[cc,dc,ec,fc,Y,gc,hc,Z,mc,oc,pc,nc,bc,ec.prototype.i.jq,Y.prototype.W.Zq,ec.prototype.i.$j,Z.prototype.i.lq,W.prototype.W.dr,ec.prototype.i.gq,W.prototype.i.aq,W.prototype.W.Vq,W.prototype.W.rq,W.prototype.i.Qm,Y.prototype.W.ck,gc.prototype.W.ck,gc.prototype.W.Xq,ec.prototype.i.Om,Y.prototype.i.mq,Z.prototype.i.bk,Y.prototype.i.kq,W.prototype.i.er,cc.prototype.W.Play,W.prototype.W.fr,dc.prototype.i.iq,Y.prototype.W.Yq,Y.prototype.W.Wq,Y.prototype.W.qq,Y.prototype.i.yq,Y.prototype.W.bq,
W.prototype.W.Wp,Y.prototype.W.br,W.prototype.i.dq,W.prototype.ab.Ud,gc.prototype.W.cr,gc.prototype.W.$q,W.prototype.ab.Rt,W.prototype.ab.floor,W.prototype.W.Tq,W.prototype.W.Uq,W.prototype.W.pq]};
