// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa,ca,ea,I,ga,ha,ia,P,ja,ma,na,oa,qa,Q,ra,ta,S,va,wa,xa,ya,za,Aa,Ba,T,Ca,Da,Ea,Fa,Ha,Ia,Ja,Ka,Pa,Qa,Ra,Sa,Ta,Ua,U,Va,Wa,Xa,Ya,Za,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,qb,rb,sb,tb,ub,vb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,V,Wb,Xb={},Yb={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(f){return f.__proto__}:function(f){return f.constructor.prototype});
(function(){function f(d,p,b,c){this.set(d,p,b,c)}function n(){this.xb=this.wb=this.zb=this.yb=this.Lb=this.Kb=this.Ta=this.Sa=0}function a(d,p,b,c){d<p?b<c?(u=d<b?d:b,t=p>c?p:c):(u=d<c?d:c,t=p>b?p:b):b<c?(u=p<b?p:b,t=d>c?d:c):(u=p<c?p:c,t=d>b?d:b)}function e(){this.items=this.Qc=null;this.Cf=0;p&&(this.Qc=new Set);this.eg=[];this.Wd=!0}function q(d){z[M++]=d}function c(){this.aa=this.zj=this.y=this.ck=0}function b(d){this.Oa=[];this.Kh=this.Mh=this.Nh=this.Lh=0;this.wh(d)}function m(d,p){this.fk=
d;this.ek=p;this.cells={}}function v(d,p){this.fk=d;this.ek=p;this.cells={}}function w(d,p,b){var c;return X.length?(c=X.pop(),c.Pk=d,c.x=p,c.y=b,c):new aa(d,p,b)}function g(d,p,b){this.Pk=d;this.x=p;this.y=b;this.Ya=new ca}function k(d,p,b){var c;return y.length?(c=y.pop(),c.Pk=d,c.x=p,c.y=b,c):new ea(d,p,b)}function r(d,p,b){this.Pk=d;this.x=p;this.y=b;this.Ya=[];this.Af=!0;this.dd=new ca;this.ig=!1}function h(d,p){return d.Vc-p.Vc}I=function(d){window.console&&window.console.log&&window.console.log(d)};
ga=function(d){window.console&&window.console.error&&window.console.error(d)};ha=function(d){return"undefined"===typeof d};ia=function(d){return"number"===typeof d};P=function(d){return"string"===typeof d};ja=function(d){return 0<d&&0===(d-1&d)};ma=function(d){--d;for(var p=1;32>p;p<<=1)d|=d>>p;return d+1};na=function(d){return 0>d?-d:d};oa=function(d,p){return d<p?d:p};qa=Math.PI;Q=function(d){return 0<=d?d|0:(d|0)-1};ra=function(d){var p=d|0;return p===d?p:p+1};ta=function(d,p,b,c,k,g,l,A){var m,
a,h,z;d<b?(a=d,m=b):(a=b,m=d);k<l?(z=k,h=l):(z=l,h=k);if(m<z||a>h)return!1;p<c?(a=p,m=c):(a=c,m=p);g<A?(z=g,h=A):(z=A,h=g);if(m<z||a>h)return!1;m=k-d+l-b;a=g-p+A-c;d=b-d;p=c-p;k=l-k;g=A-g;A=na(p*k-g*d);return na(k*a-g*m)>A?!1:na(d*a-p*m)<=A};f.prototype.set=function(d,p,b,c){this.left=d;this.top=p;this.right=b;this.bottom=c};f.prototype.pg=function(d){this.left=d.left;this.top=d.top;this.right=d.right;this.bottom=d.bottom};f.prototype.width=function(){return this.right-this.left};f.prototype.height=
function(){return this.bottom-this.top};f.prototype.offset=function(d,p){this.left+=d;this.top+=p;this.right+=d;this.bottom+=p;return this};f.prototype.normalize=function(){var d=0;this.left>this.right&&(d=this.left,this.left=this.right,this.right=d);this.top>this.bottom&&(d=this.top,this.top=this.bottom,this.bottom=d)};f.prototype.Ns=function(d){return!(d.right<this.left||d.bottom<this.top||d.left>this.right||d.top>this.bottom)};f.prototype.Os=function(d,p,b){return!(d.right+p<this.left||d.bottom+
b<this.top||d.left+p>this.right||d.top+b>this.bottom)};f.prototype.bb=function(d,p){return d>=this.left&&d<=this.right&&p>=this.top&&p<=this.bottom};f.prototype.di=function(d){return this.left===d.left&&this.top===d.top&&this.right===d.right&&this.bottom===d.bottom};S=f;n.prototype.Vf=function(d){this.Sa=d.left;this.Ta=d.top;this.Kb=d.right;this.Lb=d.top;this.yb=d.right;this.zb=d.bottom;this.wb=d.left;this.xb=d.bottom};n.prototype.fp=function(d,p){if(0===p)this.Vf(d);else{var b=Math.sin(p),c=Math.cos(p),
k=d.left*b,g=d.top*b,l=d.right*b,b=d.bottom*b,A=d.left*c,m=d.top*c,a=d.right*c,c=d.bottom*c;this.Sa=A-g;this.Ta=m+k;this.Kb=a-g;this.Lb=m+l;this.yb=a-b;this.zb=c+l;this.wb=A-b;this.xb=c+k}};n.prototype.offset=function(d,p){this.Sa+=d;this.Ta+=p;this.Kb+=d;this.Lb+=p;this.yb+=d;this.zb+=p;this.wb+=d;this.xb+=p;return this};var u=0,t=0;n.prototype.Um=function(d){a(this.Sa,this.Kb,this.yb,this.wb);d.left=u;d.right=t;a(this.Ta,this.Lb,this.zb,this.xb);d.top=u;d.bottom=t};n.prototype.bb=function(d,p){var b=
this.Kb-this.Sa,c=this.Lb-this.Ta,k=this.yb-this.Sa,g=this.zb-this.Ta,l=d-this.Sa,A=p-this.Ta,m=b*b+c*c,a=b*k+c*g,c=b*l+c*A,h=k*k+g*g,z=k*l+g*A,r=1/(m*h-a*a),b=(h*c-a*z)*r,m=(m*z-a*c)*r;if(0<=b&&0<m&&1>b+m)return!0;b=this.wb-this.Sa;c=this.xb-this.Ta;m=b*b+c*c;a=b*k+c*g;c=b*l+c*A;r=1/(m*h-a*a);b=(h*c-a*z)*r;m=(m*z-a*c)*r;return 0<=b&&0<m&&1>b+m};n.prototype.Ud=function(d,p){if(p)switch(d){case 0:return this.Sa;case 1:return this.Kb;case 2:return this.yb;case 3:return this.wb;case 4:return this.Sa;
default:return this.Sa}else switch(d){case 0:return this.Ta;case 1:return this.Lb;case 2:return this.zb;case 3:return this.xb;case 4:return this.Ta;default:return this.Ta}};n.prototype.qo=function(){return(this.Sa+this.Kb+this.yb+this.wb)/4};n.prototype.ro=function(){return(this.Ta+this.Lb+this.zb+this.xb)/4};n.prototype.Gn=function(d){var p=d.qo(),b=d.ro();if(this.bb(p,b))return!0;p=this.qo();b=this.ro();if(d.bb(p,b))return!0;var c,k,g,m,l,A,a,h;for(a=0;4>a;a++)for(h=0;4>h;h++)if(p=this.Ud(a,!0),
b=this.Ud(a,!1),c=this.Ud(a+1,!0),k=this.Ud(a+1,!1),g=d.Ud(h,!0),m=d.Ud(h,!1),l=d.Ud(h+1,!0),A=d.Ud(h+1,!1),ta(p,b,c,k,g,m,l,A))return!0;return!1};va=n;wa=function(d,p){for(var b in p)p.hasOwnProperty(b)&&(d[b]=p[b]);return d};xa=function(d,p){var b,c;p=Q(p);if(!(0>p||p>=d.length)){b=p;for(c=d.length-1;b<c;b++)d[b]=d[b+1];d.length=c}};ya=function(d,p){d.length=p.length;var b,c;b=0;for(c=p.length;b<c;b++)d[b]=p[b]};za=function(d,p){d.push.apply(d,p)};Aa=function(d,p){var b,c;b=0;for(c=d.length;b<c;++b)if(d[b]===
p)return b;return-1};Ba=function(d,p){var b=Aa(d,p);-1!==b&&xa(d,b)};T=function(d){return d/(180/qa)};Ca=function(d){return 180/qa*d};Da=function(d){d%=360;0>d&&(d+=360);return d};Ea=function(d){d%=2*qa;0>d&&(d+=2*qa);return d};Fa=function(d){return Da(Ca(d))};Ha=function(d){return Ea(T(d))};Ia=function(d,p,b,c){return Math.atan2(c-p,b-d)};Ja=function(d,p){if(d===p)return 0;var b=Math.sin(d),c=Math.cos(d),k=Math.sin(p),g=Math.cos(p),b=b*k+c*g;return 1<=b?0:-1>=b?qa:Math.acos(b)};Ka=function(d,p,b){var c=
Math.sin(d),k=Math.cos(d),g=Math.sin(p),m=Math.cos(p);return Math.acos(c*g+k*m)>b?0<k*g-c*m?Ea(d+b):Ea(d-b):Ea(p)};Pa=function(d,p){var b=Math.sin(d),c=Math.cos(d),k=Math.sin(p),g=Math.cos(p);return 0>=c*k-b*g};Qa=function(d,p,b,c,k,g){if(0===b)return g?d:p;var m=Math.sin(b);b=Math.cos(b);d-=c;p-=k;var l=d*m;d=d*b-p*m;p=p*b+l;return g?d+c:p+k};Ra=function(d,p,b,c){d=b-d;p=c-p;return Math.sqrt(d*d+p*p)};Sa=function(d,p){return!d!==!p};Ta=function(d){for(var p in d)if(d.hasOwnProperty(p))return!0;return!1};
Ua=function(d){for(var p in d)d.hasOwnProperty(p)&&delete d[p]};var l=+new Date;U=function(){if("undefined"!==typeof window.performance){var d=window.performance;if("undefined"!==typeof d.now)return d.now();if("undefined"!==typeof d.webkitNow)return d.webkitNow();if("undefined"!==typeof d.mozNow)return d.mozNow();if("undefined"!==typeof d.msNow)return d.msNow()}return Date.now()-l};var B=!1,d=B=!1,A=!1;"undefined"!==typeof window&&(B=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),
B=!B&&/safari/i.test(navigator.userAgent),d=/(iphone|ipod|ipad)/i.test(navigator.userAgent),A=window.c2ejecta);var p=!B&&!A&&!d&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;e.prototype.contains=function(d){return this.Bd()?!1:p?this.Qc.has(d):this.items&&this.items.hasOwnProperty(d)};e.prototype.add=function(d){if(p)this.Qc.has(d)||(this.Qc.add(d),this.Wd=!1);else{var b=d.toString(),c=this.items;c?c.hasOwnProperty(b)||(c[b]=d,this.Cf++,this.Wd=!1):(this.items={},this.items[b]=
d,this.Cf=1,this.Wd=!1)}};e.prototype.remove=function(d){if(!this.Bd())if(p)this.Qc.has(d)&&(this.Qc["delete"](d),this.Wd=!1);else if(this.items){d=d.toString();var b=this.items;b.hasOwnProperty(d)&&(delete b[d],this.Cf--,this.Wd=!1)}};e.prototype.clear=function(){this.Bd()||(p?this.Qc.clear():(this.items=null,this.Cf=0),this.eg.length=0,this.Wd=!0)};e.prototype.Bd=function(){return 0===this.count()};e.prototype.count=function(){return p?this.Qc.size:this.Cf};var z=null,M=0;e.prototype.iu=function(){if(!this.Wd){if(p)this.eg.length=
this.Qc.size,z=this.eg,M=0,this.Qc.forEach(q),z=null,M=0;else{var d=this.eg;d.length=this.Cf;var b,c=0,k=this.items;if(k)for(b in k)k.hasOwnProperty(b)&&(d[c++]=k[b])}this.Wd=!0}};e.prototype.Uc=function(){this.iu();return this.eg};ca=e;new ca;Va=function(d,b){p?Wa(d,b.Qc):Xa(d,b.Uc())};Wa=function(d,p){var b,c,k,g;c=b=0;for(k=d.length;b<k;++b)g=d[b],p.has(g)||(d[c++]=g);d.length=c};Xa=function(d,p){var b,c,k,g;c=b=0;for(k=d.length;b<k;++b)g=d[b],-1===Aa(p,g)&&(d[c++]=g);d.length=c};c.prototype.add=
function(d){this.y=d-this.ck;this.zj=this.aa+this.y;this.ck=this.zj-this.aa-this.y;this.aa=this.zj};c.prototype.reset=function(){this.aa=this.zj=this.y=this.ck=0};Ya=c;Za=function(d){return d.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};b.prototype.wh=function(d){this.To=d;this.Oc=d.length/2;this.Oa.length=d.length;this.Rh=this.Sh=-1;this.Xm=0};b.prototype.xf=function(){return!this.To.length};b.prototype.ma=function(){for(var d=this.Oa,p=d[0],b=p,c=d[1],k=c,g,m,l=1,A=this.Oc;l<A;++l)m=2*l,g=d[m],m=
d[m+1],g<p&&(p=g),g>b&&(b=g),m<c&&(c=m),m>k&&(k=m);this.Lh=p;this.Mh=b;this.Nh=c;this.Kh=k};b.prototype.Vf=function(d,p,b){this.Oa.length=8;this.Oc=4;var c=this.Oa;c[0]=d.left-p;c[1]=d.top-b;c[2]=d.right-p;c[3]=d.top-b;c[4]=d.right-p;c[5]=d.bottom-b;c[6]=d.left-p;c[7]=d.bottom-b;this.Sh=d.right-d.left;this.Rh=d.bottom-d.top;this.ma()};b.prototype.Uf=function(d,p,b,c,k){this.Oa.length=8;this.Oc=4;var g=this.Oa;g[0]=d.Sa-p;g[1]=d.Ta-b;g[2]=d.Kb-p;g[3]=d.Lb-b;g[4]=d.yb-p;g[5]=d.zb-b;g[6]=d.wb-p;g[7]=
d.xb-b;this.Sh=c;this.Rh=k;this.ma()};b.prototype.ep=function(d){this.Oc=d.Oc;ya(this.Oa,d.Oa);this.Lh=d.Lh;this.Nh-d.Nh;this.Mh=d.Mh;this.Kh=d.Kh};b.prototype.hf=function(d,p,b){if(this.Sh!==d||this.Rh!==p||this.Xm!==b){this.Sh=d;this.Rh=p;this.Xm=b;var c,g,k,m,l,A=0,a=1,h=this.To,z=this.Oa;0!==b&&(A=Math.sin(b),a=Math.cos(b));b=0;for(k=this.Oc;b<k;b++)c=2*b,g=c+1,m=h[c]*d,l=h[g]*p,z[c]=m*a-l*A,z[g]=l*a+m*A;this.ma()}};b.prototype.bb=function(d,p){var b=this.Oa;if(d===b[0]&&p===b[1])return!0;var c,
g,k,m=this.Oc,l=this.Lh-110,A=this.Nh-101,a=this.Mh+131,h=this.Kh+120,z,r,M=0,u=0;for(c=0;c<m;c++)g=2*c,k=(c+1)%m*2,z=b[g],g=b[g+1],r=b[k],k=b[k+1],ta(l,A,d,p,z,g,r,k)&&M++,ta(a,h,d,p,z,g,r,k)&&u++;return 1===M%2||1===u%2};b.prototype.Dg=function(d,p,b){var c=d.Oa,g=this.Oa;if(this.bb(c[0]+p,c[1]+b)||d.bb(g[0]-p,g[1]-b))return!0;var k,m,l,A,a,h,z,r,M,u,B,x;k=0;for(A=this.Oc;k<A;k++)for(m=2*k,l=(k+1)%A*2,r=g[m],m=g[m+1],M=g[l],u=g[l+1],l=0,z=d.Oc;l<z;l++)if(a=2*l,h=(l+1)%z*2,B=c[a]+p,a=c[a+1]+b,x=
c[h]+p,h=c[h+1]+b,ta(r,m,M,u,B,a,x,h))return!0;return!1};$a=b;m.prototype.be=function(d,p,b){var c;c=this.cells[d];return c?(c=c[p])?c:b?(c=w(this,d,p),this.cells[d][p]=c):null:b?(c=w(this,d,p),this.cells[d]={},this.cells[d][p]=c):null};m.prototype.cc=function(d){return Q(d/this.fk)};m.prototype.ec=function(d){return Q(d/this.ek)};m.prototype.update=function(d,p,b){var c,g,k,m,l;if(p)for(c=p.left,g=p.right;c<=g;++c)for(k=p.top,m=p.bottom;k<=m;++k)if(!b||!b.bb(c,k))if(l=this.be(c,k,!1))l.remove(d),
l.Bd()&&(l.Ya.clear(),1E3>X.length&&X.push(l),this.cells[c][k]=null);if(b)for(c=b.left,g=b.right;c<=g;++c)for(k=b.top,m=b.bottom;k<=m;++k)p&&p.bb(c,k)||this.be(c,k,!0).Zk(d)};m.prototype.jj=function(d,p){var b,c,g,k,m,l;b=this.cc(d.left);g=this.ec(d.top);c=this.cc(d.right);for(m=this.ec(d.bottom);b<=c;++b)for(k=g;k<=m;++k)(l=this.be(b,k,!1))&&l.dump(p)};ab=m;v.prototype.be=function(d,p,b){var c;c=this.cells[d];return c?(c=c[p])?c:b?(c=k(this,d,p),this.cells[d][p]=c):null:b?(c=k(this,d,p),this.cells[d]=
{},this.cells[d][p]=c):null};v.prototype.cc=function(d){return Q(d/this.fk)};v.prototype.ec=function(d){return Q(d/this.ek)};v.prototype.update=function(d,p,b){var c,k,g,m,l;if(p)for(c=p.left,k=p.right;c<=k;++c)for(g=p.top,m=p.bottom;g<=m;++g)if(!b||!b.bb(c,g))if(l=this.be(c,g,!1))l.remove(d),l.Bd()&&(l.reset(),1E3>y.length&&y.push(l),this.cells[c][g]=null);if(b)for(c=b.left,k=b.right;c<=k;++c)for(g=b.top,m=b.bottom;g<=m;++g)p&&p.bb(c,g)||this.be(c,g,!0).Zk(d)};v.prototype.jj=function(d,p,b,c,g){var k,
m;d=this.cc(d);p=this.ec(p);b=this.cc(b);for(k=this.ec(c);d<=b;++d)for(c=p;c<=k;++c)(m=this.be(d,c,!1))&&m.dump(g)};v.prototype.bt=function(d){var p,b,c,g,k;p=d.left;c=d.top;b=d.right;for(g=d.bottom;p<=b;++p)for(d=c;d<=g;++d)if(k=this.be(p,d,!1))k.Af=!1};bb=v;var X=[];g.prototype.Bd=function(){return this.Ya.Bd()};g.prototype.Zk=function(d){this.Ya.add(d)};g.prototype.remove=function(d){this.Ya.remove(d)};g.prototype.dump=function(d){za(d,this.Ya.Uc())};aa=g;var y=[];r.prototype.Bd=function(){if(!this.Ya.length)return!0;
if(this.Ya.length>this.dd.count())return!1;this.Ak();return!0};r.prototype.Zk=function(d){this.dd.contains(d)?(this.dd.remove(d),this.dd.Bd()&&(this.ig=!1)):this.Ya.length?(this.Ya[this.Ya.length-1].uc()>d.uc()&&(this.Af=!1),this.Ya.push(d)):(this.Ya.push(d),this.Af=!0)};r.prototype.remove=function(d){this.dd.add(d);this.ig=!0;30<=this.dd.count()&&this.Ak()};r.prototype.Ak=function(){this.ig&&(this.dd.count()===this.Ya.length?this.reset():(Va(this.Ya,this.dd),this.dd.clear(),this.ig=!1))};r.prototype.Ar=
function(){this.Af||(this.Ya.sort(h),this.Af=!0)};r.prototype.reset=function(){this.Ya.length=0;this.Af=!0;this.dd.clear();this.ig=!1};r.prototype.dump=function(d){this.Ak();this.Ar();this.Ya.length&&d.push(this.Ya)};ea=r;var x="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");cb=function(d){return 0>=d||11<=d?"source-over":x[d-1]};db=function(d,p,b){if(b)switch(d.lb=b.ONE,d.kb=b.ONE_MINUS_SRC_ALPHA,p){case 1:d.lb=b.ONE;
d.kb=b.ONE;break;case 3:d.lb=b.ONE;d.kb=b.ZERO;break;case 4:d.lb=b.ONE_MINUS_DST_ALPHA;d.kb=b.ONE;break;case 5:d.lb=b.DST_ALPHA;d.kb=b.ZERO;break;case 6:d.lb=b.ZERO;d.kb=b.SRC_ALPHA;break;case 7:d.lb=b.ONE_MINUS_DST_ALPHA;d.kb=b.ZERO;break;case 8:d.lb=b.ZERO;d.kb=b.ONE_MINUS_SRC_ALPHA;break;case 9:d.lb=b.DST_ALPHA;d.kb=b.ONE_MINUS_SRC_ALPHA;break;case 10:d.lb=b.ONE_MINUS_DST_ALPHA,d.kb=b.SRC_ALPHA}};eb=function(d){return Math.round(1E6*d)/1E6};fb=function(d,p){return"string"!==typeof d||"string"!==
typeof p||d.length!==p.length?!1:d===p?!0:d.toLowerCase()===p.toLowerCase()};gb=function(d){d=d.target;return!d||d===document||d===window||document&&document.body&&d===document.body||fb(d.tagName,"canvas")?!0:!1}})();var Zb="undefined"!==typeof Float32Array?Float32Array:Array;function $b(f){var n=new Zb(3);f&&(n[0]=f[0],n[1]=f[1],n[2]=f[2]);return n}
function ac(f){var n=new Zb(16);f&&(n[0]=f[0],n[1]=f[1],n[2]=f[2],n[3]=f[3],n[4]=f[4],n[5]=f[5],n[6]=f[6],n[7]=f[7],n[8]=f[8],n[9]=f[9],n[10]=f[10],n[11]=f[11],n[12]=f[12],n[13]=f[13],n[14]=f[14],n[15]=f[15]);return n}function bc(f,n){n[0]=f[0];n[1]=f[1];n[2]=f[2];n[3]=f[3];n[4]=f[4];n[5]=f[5];n[6]=f[6];n[7]=f[7];n[8]=f[8];n[9]=f[9];n[10]=f[10];n[11]=f[11];n[12]=f[12];n[13]=f[13];n[14]=f[14];n[15]=f[15]}
function cc(f,n){var a=n[0],e=n[1];n=n[2];f[0]*=a;f[1]*=a;f[2]*=a;f[3]*=a;f[4]*=e;f[5]*=e;f[6]*=e;f[7]*=e;f[8]*=n;f[9]*=n;f[10]*=n;f[11]*=n}
function dc(f,n,a,e){e||(e=ac());var q,c,b,m,v,w,g,k,r=f[0],h=f[1];f=f[2];c=a[0];b=a[1];q=a[2];a=n[1];w=n[2];r===n[0]&&h===a&&f===w?(f=e,f[0]=1,f[1]=0,f[2]=0,f[3]=0,f[4]=0,f[5]=1,f[6]=0,f[7]=0,f[8]=0,f[9]=0,f[10]=1,f[11]=0,f[12]=0,f[13]=0,f[14]=0,f[15]=1):(a=r-n[0],w=h-n[1],g=f-n[2],k=1/Math.sqrt(a*a+w*w+g*g),a*=k,w*=k,g*=k,n=b*g-q*w,q=q*a-c*g,c=c*w-b*a,(k=Math.sqrt(n*n+q*q+c*c))?(k=1/k,n*=k,q*=k,c*=k):c=q=n=0,b=w*c-g*q,m=g*n-a*c,v=a*q-w*n,(k=Math.sqrt(b*b+m*m+v*v))?(k=1/k,b*=k,m*=k,v*=k):v=m=b=0,
e[0]=n,e[1]=b,e[2]=a,e[3]=0,e[4]=q,e[5]=m,e[6]=w,e[7]=0,e[8]=c,e[9]=v,e[10]=g,e[11]=0,e[12]=-(n*r+q*h+c*f),e[13]=-(b*r+m*h+v*f),e[14]=-(a*r+w*h+g*f),e[15]=1)}
(function(){function f(c){this.Me=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.Ym=$b([0,0,100]);this.Yn=$b([0,0,0]);this.yp=$b([0,1,0]);this.ym=$b([1,1,1]);this.gn=!0;this.rl=ac();this.Ac=ac();this.Qn=ac();this.nk=ac();this.m=c;this.Cn()}function n(c,b,m){this.m=c;this.xh=b;this.name=m;this.zc=c.getAttribLocation(b,"aPos");this.ge=c.getAttribLocation(b,"aTex");this.Wn=c.getUniformLocation(b,"matP");this.Pi=c.getUniformLocation(b,"matMV");this.Gf=
c.getUniformLocation(b,"opacity");this.Xn=c.getUniformLocation(b,"samplerFront");this.Wg=c.getUniformLocation(b,"samplerBack");this.Ue=c.getUniformLocation(b,"destStart");this.Te=c.getUniformLocation(b,"destEnd");this.ol=c.getUniformLocation(b,"seconds");this.nl=c.getUniformLocation(b,"pixelWidth");this.ml=c.getUniformLocation(b,"pixelHeight");this.Vg=c.getUniformLocation(b,"layerScale");this.Ug=c.getUniformLocation(b,"layerAngle");this.Yg=c.getUniformLocation(b,"viewOrigin");this.Xg=c.getUniformLocation(b,
"scrollPos");this.Is=!!(this.nl||this.ml||this.ol||this.Wg||this.Ue||this.Te||this.Vg||this.Ug||this.Yg||this.Xg);this.ho=this.jo=-999;this.Ri=1;this.bo=this.ao=0;this.eo=this.$n=this.Zn=1;this.lo=this.ko=this.no=this.mo=this.co=0;this.hl=[];this.fo=ac();this.Gf&&c.uniform1f(this.Gf,1);this.Xn&&c.uniform1i(this.Xn,0);this.Wg&&c.uniform1i(this.Wg,1);this.Ue&&c.uniform2f(this.Ue,0,0);this.Te&&c.uniform2f(this.Te,1,1);this.Vg&&c.uniform1f(this.Vg,1);this.Ug&&c.uniform1f(this.Ug,0);this.Yg&&c.uniform2f(this.Yg,
0,0);this.Xg&&c.uniform2f(this.Xg,0,0);this.Ie=!1}function a(c,b){this.type=c;this.q=b;this.m=b.m;this.vc=this.lc=this.Do=0;this.Y=this.Sc=null;this.gp=[]}f.prototype.Cn=function(){var c=this.m,b;this.Rn=1;this.Qe=this.Pe=null;this.Zh=1;c.clearColor(0,0,0,0);c.clear(c.COLOR_BUFFER_BIT);c.enable(c.BLEND);c.blendFunc(c.ONE,c.ONE_MINUS_SRC_ALPHA);c.disable(c.CULL_FACE);c.disable(c.DEPTH_TEST);this.Sn=c.ONE;this.Pn=c.ONE_MINUS_SRC_ALPHA;this.Il=c.createBuffer();c.bindBuffer(c.ARRAY_BUFFER,this.Il);this.Hh=
Array(4);this.Bh=Array(4);for(b=0;4>b;b++)this.Hh[b]=c.createBuffer(),c.bindBuffer(c.ARRAY_BUFFER,this.Hh[b]),this.Bh[b]=c.createBuffer(),c.bindBuffer(c.ARRAY_BUFFER,this.Bh[b]);this.qd=0;this.Ls=c.createBuffer();c.bindBuffer(c.ELEMENT_ARRAY_BUFFER,this.Ls);this.um=new Float32Array(16E3);this.fm=new Float32Array(16E3);this.Po=new Float32Array(32E3);for(var m=new Uint16Array(12E3),a=b=0;12E3>b;)m[b++]=a,m[b++]=a+1,m[b++]=a+2,m[b++]=a,m[b++]=a+2,m[b++]=a+3,a+=4;c.bufferData(c.ELEMENT_ARRAY_BUFFER,m,
c.STATIC_DRAW);this.Pf=this.kd=0;this.Ra=[];b=this.mk({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.Ra.push(b);b=this.mk({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.Ra.push(b);for(var e in ec)ec.hasOwnProperty(e)&&this.Ra.push(this.mk(ec[e],
"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}",e));c.activeTexture(c.TEXTURE0);c.bindTexture(c.TEXTURE_2D,null);this.pd=[];this.Xc=0;this.Ub=this.Bb=!1;this.bn=this.Kg=-1;this.rg=null;this.Yr=c.createFramebuffer();this.Wo=null;this.qe=$b([0,0,0]);c=c.getParameter(c.ALIASED_POINT_SIZE_RANGE);this.et=c[0];this.sl=
c[1];2048<this.sl&&(this.sl=2048);this.gd(0)};n.prototype.nm=function(c){var b=this.fo;if(b[0]!==c[0]||b[1]!==c[1]||b[2]!==c[2]||b[3]!==c[3]||b[4]!==c[4]||b[5]!==c[5]||b[6]!==c[6]||b[7]!==c[7]||b[8]!==c[8]||b[9]!==c[9]||b[10]!==c[10]||b[11]!==c[11]||b[12]!==c[12]||b[13]!==c[13]||b[14]!==c[14]||b[15]!==c[15])bc(c,this.fo),this.m.uniformMatrix4fv(this.Pi,!1,c)};f.prototype.mk=function(c,b,m){var a=this.m,e=a.createShader(a.FRAGMENT_SHADER);a.shaderSource(e,c.src);a.compileShader(e);if(!a.getShaderParameter(e,
a.COMPILE_STATUS))return a.deleteShader(e),null;var g=a.createShader(a.VERTEX_SHADER);a.shaderSource(g,b);a.compileShader(g);if(!a.getShaderParameter(g,a.COMPILE_STATUS))return a.deleteShader(e),a.deleteShader(g),null;b=a.createProgram();a.attachShader(b,e);a.attachShader(b,g);a.linkProgram(b);if(!a.getProgramParameter(b,a.LINK_STATUS))return a.deleteShader(e),a.deleteShader(g),a.deleteProgram(b),null;a.useProgram(b);a.deleteShader(e);a.deleteShader(g);m=new n(a,b,m);m.wk=c.wk||0;m.xk=c.xk||0;m.an=
!!c.an;m.Rm=!!c.Rm;m.I=c.I||[];c=0;for(e=m.I.length;c<e;c++)m.I[c][1]=a.getUniformLocation(b,m.I[c][0]),m.hl.push(0),a.uniform1f(m.I[c][1],0);return m};f.prototype.Mk=function(c){var b,a;b=0;for(a=this.Ra.length;b<a;b++)if(this.Ra[b].name===c)return b;return-1};f.prototype.So=function(c,b,a){var e=this.Ac,q=this.rl,g=[0,0,0,0,0,0,0,0];g[0]=e[0]*c+e[4]*b+e[12];g[1]=e[1]*c+e[5]*b+e[13];g[2]=e[2]*c+e[6]*b+e[14];g[3]=e[3]*c+e[7]*b+e[15];g[4]=q[0]*g[0]+q[4]*g[1]+q[8]*g[2]+q[12]*g[3];g[5]=q[1]*g[0]+q[5]*
g[1]+q[9]*g[2]+q[13]*g[3];g[6]=q[2]*g[0]+q[6]*g[1]+q[10]*g[2]+q[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],a[0]=(.5*g[4]+.5)*this.width,a[1]=(.5*g[5]+.5)*this.height)};f.prototype.Tf=function(c,b,a){if(this.width!==c||this.height!==b||a){this.$d();this.width=c;this.height=b;this.m.viewport(0,0,c,b);b=c/b;var e=this.rl,q;q=1*Math.tan(45*Math.PI/360);b*=q;c=-b;a=-q;e||(e=ac());var g=b-c,k=q-a;e[0]=2/g;e[1]=0;e[2]=0;e[3]=0;e[4]=0;e[5]=2/k;e[6]=0;e[7]=0;e[8]=(b+c)/g;e[9]=
(q+a)/k;e[10]=-1001/999;e[11]=-1;e[12]=0;e[13]=0;e[14]=-2E3/999;e[15]=0;dc(this.Ym,this.Yn,this.yp,this.Ac);c=[0,0];b=[0,0];this.So(0,0,c);this.So(1,1,b);this.ym[0]=1/(b[0]-c[0]);this.ym[1]=-1/(b[1]-c[1]);c=0;for(b=this.Ra.length;c<b;c++)a=this.Ra[c],a.Ie=!1,a.Wn&&(this.m.useProgram(a.xh),this.m.uniformMatrix4fv(a.Wn,!1,this.rl));this.m.useProgram(this.Ra[this.Kg].xh);this.m.bindTexture(this.m.TEXTURE_2D,null);this.m.activeTexture(this.m.TEXTURE1);this.m.bindTexture(this.m.TEXTURE_2D,null);this.m.activeTexture(this.m.TEXTURE0);
this.Qe=this.Pe=null}};f.prototype.ke=function(){dc(this.Ym,this.Yn,this.yp,this.Ac);cc(this.Ac,this.ym)};f.prototype.translate=function(c,b){if(0!==c||0!==b){this.qe[0]=c;this.qe[1]=b;this.qe[2]=0;var a=this.Ac,e=this.qe,q=e[0],g=e[1],e=e[2];a[12]=a[0]*q+a[4]*g+a[8]*e+a[12];a[13]=a[1]*q+a[5]*g+a[9]*e+a[13];a[14]=a[2]*q+a[6]*g+a[10]*e+a[14];a[15]=a[3]*q+a[7]*g+a[11]*e+a[15]}};f.prototype.scale=function(c,b){if(1!==c||1!==b)this.qe[0]=c,this.qe[1]=b,this.qe[2]=1,cc(this.Ac,this.qe)};f.prototype.Xo=
function(c){if(0!==c){var b=this.Ac,a,e=Math.sin(c);c=Math.cos(c);var q=b[0],g=b[1],k=b[2],r=b[3],h=b[4],u=b[5],t=b[6],l=b[7];a?b!==a&&(a[8]=b[8],a[9]=b[9],a[10]=b[10],a[11]=b[11],a[12]=b[12],a[13]=b[13],a[14]=b[14],a[15]=b[15]):a=b;a[0]=q*c+h*e;a[1]=g*c+u*e;a[2]=k*c+t*e;a[3]=r*c+l*e;a[4]=q*-e+h*c;a[5]=g*-e+u*c;a[6]=k*-e+t*c;a[7]=r*-e+l*c}};f.prototype.se=function(){for(var c=!1,b=0;16>b;b++)if(this.Qn[b]!==this.Ac[b]){c=!0;break}c&&(c=this.Bc(),c.type=5,c.Y?bc(this.Ac,c.Y):c.Y=ac(this.Ac),bc(this.Ac,
this.Qn),this.Ub=this.Bb=!1)};a.prototype.mr=function(){this.m.bindTexture(this.m.TEXTURE_2D,this.Sc)};a.prototype.nr=function(){var c=this.m;c.activeTexture(c.TEXTURE1);c.bindTexture(c.TEXTURE_2D,this.Sc);c.activeTexture(c.TEXTURE0)};a.prototype.jr=function(){var c=this.Do,b=this.q;b.Zh=c;b=b.rg;b.Gf&&b.Ri!==c&&(b.Ri=c,this.m.uniform1f(b.Gf,c))};a.prototype.fr=function(){this.m.drawElements(this.m.TRIANGLES,this.vc,this.m.UNSIGNED_SHORT,2*this.lc)};a.prototype.ir=function(){this.m.blendFunc(this.lc,
this.vc)};a.prototype.or=function(){var c,b,a,e=this.q.Ra,q=this.q.bn;c=0;for(b=e.length;c<b;c++)a=e[c],c===q&&a.Pi?(a.nm(this.Y),a.Ie=!0):a.Ie=!1;bc(this.Y,this.q.nk)};a.prototype.hr=function(){var c=this.m,b=this.q;this.Sc?(b.Qe===this.Sc&&(c.activeTexture(c.TEXTURE1),c.bindTexture(c.TEXTURE_2D,null),b.Qe=null,c.activeTexture(c.TEXTURE0)),c.bindFramebuffer(c.FRAMEBUFFER,b.Yr),c.framebufferTexture2D(c.FRAMEBUFFER,c.COLOR_ATTACHMENT0,c.TEXTURE_2D,this.Sc,0)):(c.framebufferTexture2D(c.FRAMEBUFFER,
c.COLOR_ATTACHMENT0,c.TEXTURE_2D,null,0),c.bindFramebuffer(c.FRAMEBUFFER,null))};a.prototype.dr=function(){var c=this.m;0===this.lc?(c.clearColor(this.Y[0],this.Y[1],this.Y[2],this.Y[3]),c.clear(c.COLOR_BUFFER_BIT)):(c.enable(c.SCISSOR_TEST),c.scissor(this.Y[0],this.Y[1],this.Y[2],this.Y[3]),c.clearColor(0,0,0,0),c.clear(this.m.COLOR_BUFFER_BIT),c.disable(c.SCISSOR_TEST))};a.prototype.er=function(){var c=this.m,b=this.q,a=b.Ra[1];c.useProgram(a.xh);!a.Ie&&a.Pi&&(a.nm(b.nk),a.Ie=!0);c.enableVertexAttribArray(a.zc);
c.bindBuffer(c.ARRAY_BUFFER,b.Il);c.vertexAttribPointer(a.zc,4,c.FLOAT,!1,0,0);c.drawArrays(c.POINTS,this.lc/4,this.vc);a=b.rg;c.useProgram(a.xh);0<=a.zc&&(c.enableVertexAttribArray(a.zc),c.bindBuffer(c.ARRAY_BUFFER,b.Hh[b.qd]),c.vertexAttribPointer(a.zc,2,c.FLOAT,!1,0,0));0<=a.ge&&(c.enableVertexAttribArray(a.ge),c.bindBuffer(c.ARRAY_BUFFER,b.Bh[b.qd]),c.vertexAttribPointer(a.ge,2,c.FLOAT,!1,0,0))};a.prototype.kr=function(){var c=this.m,b=this.q,a=b.Ra[this.lc];b.bn=this.lc;b.rg=a;c.useProgram(a.xh);
!a.Ie&&a.Pi&&(a.nm(b.nk),a.Ie=!0);a.Gf&&a.Ri!==b.Zh&&(a.Ri=b.Zh,c.uniform1f(a.Gf,b.Zh));0<=a.zc&&(c.enableVertexAttribArray(a.zc),c.bindBuffer(c.ARRAY_BUFFER,b.Hh[b.qd]),c.vertexAttribPointer(a.zc,2,c.FLOAT,!1,0,0));0<=a.ge&&(c.enableVertexAttribArray(a.ge),c.bindBuffer(c.ARRAY_BUFFER,b.Bh[b.qd]),c.vertexAttribPointer(a.ge,2,c.FLOAT,!1,0,0))};a.prototype.lr=function(){var c,b,a=this.q.rg,e=this.m;c=this.Y;a.Wg&&this.q.Qe!==this.Sc&&(e.activeTexture(e.TEXTURE1),e.bindTexture(e.TEXTURE_2D,this.Sc),
this.q.Qe=this.Sc,e.activeTexture(e.TEXTURE0));var q=c[0];a.nl&&q!==a.jo&&(a.jo=q,e.uniform1f(a.nl,q));q=c[1];a.ml&&q!==a.ho&&(a.ho=q,e.uniform1f(a.ml,q));q=c[2];b=c[3];!a.Ue||q===a.ao&&b===a.bo||(a.ao=q,a.bo=b,e.uniform2f(a.Ue,q,b));q=c[4];b=c[5];!a.Te||q===a.Zn&&b===a.$n||(a.Zn=q,a.$n=q,e.uniform2f(a.Te,q,b));q=c[6];a.Vg&&q!==a.eo&&(a.eo=q,e.uniform1f(a.Vg,q));q=c[7];a.Ug&&q!==a.co&&(a.co=q,e.uniform1f(a.Ug,q));q=c[8];b=c[9];!a.Yg||q===a.mo&&b===a.no||(a.mo=q,a.no=b,e.uniform2f(a.Yg,q,b));q=c[10];
b=c[11];!a.Xg||q===a.ko&&b===a.lo||(a.ko=q,a.lo=b,e.uniform2f(a.Xg,q,b));a.ol&&e.uniform1f(a.ol,U()/1E3);if(a.I.length)for(c=0,b=a.I.length;c<b;c++)q=this.gp[c],q!==a.hl[c]&&(a.hl[c]=q,e.uniform1f(a.I[c][1],q))};f.prototype.Bc=function(){this.Xc===this.pd.length&&this.pd.push(new a(0,this));return this.pd[this.Xc++]};f.prototype.$d=function(){if(0!==this.Xc&&!this.m.isContextLost()){var c=this.m;0<this.Pf&&(c.bindBuffer(c.ARRAY_BUFFER,this.Il),c.bufferData(c.ARRAY_BUFFER,this.Po.subarray(0,this.Pf),
c.STREAM_DRAW),b&&0<=b.zc&&"<point>"===b.name&&c.vertexAttribPointer(b.zc,4,c.FLOAT,!1,0,0));if(0<this.kd){var b=this.rg;c.bindBuffer(c.ARRAY_BUFFER,this.Hh[this.qd]);c.bufferData(c.ARRAY_BUFFER,this.um.subarray(0,this.kd),c.STREAM_DRAW);b&&0<=b.zc&&"<point>"!==b.name&&c.vertexAttribPointer(b.zc,2,c.FLOAT,!1,0,0);c.bindBuffer(c.ARRAY_BUFFER,this.Bh[this.qd]);c.bufferData(c.ARRAY_BUFFER,this.fm.subarray(0,this.kd),c.STREAM_DRAW);b&&0<=b.ge&&"<point>"!==b.name&&c.vertexAttribPointer(b.ge,2,c.FLOAT,
!1,0,0)}for(var a,c=0,b=this.Xc;c<b;c++)switch(a=this.pd[c],a.type){case 1:a.fr();break;case 2:a.mr();break;case 3:a.jr();break;case 4:a.ir();break;case 5:a.or();break;case 6:a.hr();break;case 7:a.dr();break;case 8:a.er();break;case 9:a.kr();break;case 10:a.lr();break;case 11:a.nr()}this.Pf=this.kd=this.Xc=0;this.Ub=this.Bb=!1;this.qd++;4<=this.qd&&(this.qd=0)}};f.prototype.Ye=function(c){if(c!==this.Rn){var b=this.Bc();b.type=3;this.Rn=b.Do=c;this.Ub=this.Bb=!1}};f.prototype.$b=function(c){if(c!==
this.Pe){var b=this.Bc();b.type=2;this.Pe=b.Sc=c;this.Ub=this.Bb=!1}};f.prototype.le=function(c,b){if(c!==this.Sn||b!==this.Pn){var a=this.Bc();a.type=4;a.lc=c;a.vc=b;this.Sn=c;this.Pn=b;this.Ub=this.Bb=!1}};f.prototype.bp=function(){this.le(this.m.ONE,this.m.ONE_MINUS_SRC_ALPHA)};f.prototype.qh=function(c,b,a,e,q,g,k,r){15992<=this.kd&&this.$d();var h=this.kd,u=this.um,t=this.fm;if(this.Bb)this.pd[this.Xc-1].vc+=6;else{var l=this.Bc();l.type=1;l.lc=h/4*3;l.vc=6;this.Bb=!0;this.Ub=!1}u[h]=c;t[h++]=
0;u[h]=b;t[h++]=0;u[h]=a;t[h++]=1;u[h]=e;t[h++]=0;u[h]=q;t[h++]=1;u[h]=g;t[h++]=1;u[h]=k;t[h++]=0;u[h]=r;t[h++]=1;this.kd=h};f.prototype.Hd=function(c,b,a,e,q,g,k,r,h){15992<=this.kd&&this.$d();var u=this.kd,t=this.um,l=this.fm;if(this.Bb)this.pd[this.Xc-1].vc+=6;else{var B=this.Bc();B.type=1;B.lc=u/4*3;B.vc=6;this.Bb=!0;this.Ub=!1}var B=h.left,d=h.top,A=h.right;h=h.bottom;t[u]=c;l[u++]=B;t[u]=b;l[u++]=d;t[u]=a;l[u++]=A;t[u]=e;l[u++]=d;t[u]=q;l[u++]=A;t[u]=g;l[u++]=h;t[u]=k;l[u++]=B;t[u]=r;l[u++]=
h;this.kd=u};f.prototype.zt=function(c,b,a,e){7996<=this.Pf&&this.$d();var q=this.Pf,g=this.Po;if(this.Ub)this.pd[this.Xc-1].vc++;else{var k=this.Bc();k.type=8;k.lc=q;k.vc=1;this.Ub=!0;this.Bb=!1}g[q++]=c;g[q++]=b;g[q++]=a;g[q++]=e;this.Pf=q};f.prototype.gd=function(a){if(this.Kg!==a){if(!this.Ra[a]){if(0===this.Kg)return;a=0}var b=this.Bc();b.type=9;this.Kg=b.lc=a;this.Ub=this.Bb=!1}};f.prototype.oh=function(a){a=this.Ra[a];return!(!a.Ue&&!a.Te)};f.prototype.Kl=function(a){a=this.Ra[a];return!!(a.Ue||
a.Te||a.an)};f.prototype.Gt=function(a){a=this.Ra[a];return 0!==a.wk||0!==a.xk};f.prototype.ps=function(a){return this.Ra[a].wk};f.prototype.qs=function(a){return this.Ra[a].xk};f.prototype.rs=function(a,b){return this.Ra[a].I[b][2]};f.prototype.ij=function(a){return this.Ra[a].Rm};f.prototype.Sf=function(a,b,m,e,q,g,k,r,h,u,t,l,B,d){var A=this.Ra[this.Kg],p,z;if(A.Is||d.length){p=this.Bc();p.type=10;p.Y?bc(this.Ac,p.Y):p.Y=ac();z=p.Y;z[0]=b;z[1]=m;z[2]=e;z[3]=q;z[4]=g;z[5]=k;z[6]=r;z[7]=h;z[8]=u;
z[9]=t;z[10]=l;z[11]=B;p.Sc=A.Wg?a:null;if(d.length)for(m=p.gp,m.length=d.length,a=0,b=d.length;a<b;a++)m[a]=d[a];this.Ub=this.Bb=!1}};f.prototype.clear=function(a,b,m,e){var q=this.Bc();q.type=7;q.lc=0;q.Y||(q.Y=ac());q.Y[0]=a;q.Y[1]=b;q.Y[2]=m;q.Y[3]=e;this.Ub=this.Bb=!1};f.prototype.clearRect=function(a,b,m,e){if(!(0>m||0>e)){var q=this.Bc();q.type=7;q.lc=1;q.Y||(q.Y=ac());q.Y[0]=a;q.Y[1]=b;q.Y[2]=m;q.Y[3]=e;this.Ub=this.Bb=!1}};f.prototype.Ft=function(){this.$d();this.m.flush()};var e=[],q={};
f.prototype.Vq=function(){e.length=0;q={}};f.prototype.Ef=function(a,b,m,f){b=!!b;m=!!m;var n=a.src+","+b+","+m+(b?",undefined":""),g=null;if("undefined"!==typeof a.src&&q.hasOwnProperty(n))return g=q[n],g.Qh++,g;this.$d();var k=this.m,r=ja(a.width)&&ja(a.height),g=k.createTexture();k.bindTexture(k.TEXTURE_2D,g);k.pixelStorei(k.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var h=k.RGBA,u=k.RGBA,t=k.UNSIGNED_BYTE;if(f&&!this.Me)switch(f){case 1:u=h=k.RGB;break;case 2:t=k.UNSIGNED_SHORT_4_4_4_4;break;case 3:t=
k.UNSIGNED_SHORT_5_5_5_1;break;case 4:u=h=k.RGB,t=k.UNSIGNED_SHORT_5_6_5}if(!r&&b){f=document.createElement("canvas");f.width=ma(a.width);f.height=ma(a.height);var l=f.getContext("2d");l.webkitImageSmoothingEnabled=m;l.mozImageSmoothingEnabled=m;l.msImageSmoothingEnabled=m;l.imageSmoothingEnabled=m;l.drawImage(a,0,0,a.width,a.height,0,0,f.width,f.height);k.texImage2D(k.TEXTURE_2D,0,h,u,t,f)}else k.texImage2D(k.TEXTURE_2D,0,h,u,t,a);b?(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_S,k.REPEAT),k.texParameteri(k.TEXTURE_2D,
k.TEXTURE_WRAP_T,k.REPEAT)):(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_S,k.CLAMP_TO_EDGE),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_T,k.CLAMP_TO_EDGE));m?(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MAG_FILTER,k.LINEAR),r&&this.gn?(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MIN_FILTER,k.LINEAR_MIPMAP_LINEAR),k.generateMipmap(k.TEXTURE_2D)):k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MIN_FILTER,k.LINEAR)):(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MAG_FILTER,k.NEAREST),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MIN_FILTER,
k.NEAREST));k.bindTexture(k.TEXTURE_2D,null);this.Pe=null;g.mg=a.width;g.lg=a.height;g.Qh=1;g.Wm=n;e.push(g);return q[n]=g};f.prototype.Yd=function(a,b,m){var q;this.$d();var f=this.m;this.Me&&(q=!1);var g=f.createTexture();f.bindTexture(f.TEXTURE_2D,g);f.texImage2D(f.TEXTURE_2D,0,f.RGBA,a,b,0,f.RGBA,q?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,m?f.LINEAR:f.NEAREST);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,m?f.LINEAR:f.NEAREST);f.bindTexture(f.TEXTURE_2D,null);this.Pe=null;g.mg=a;g.lg=b;e.push(g);return g};f.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.Qh&&1<a.Qh?a.Qh--:(this.$d(),a===this.Pe&&(this.m.bindTexture(this.m.TEXTURE_2D,null),this.Pe=null),a===this.Qe&&(this.m.activeTexture(this.m.TEXTURE1),this.m.bindTexture(this.m.TEXTURE_2D,null),this.m.activeTexture(this.m.TEXTURE0),this.Qe=
null),Ba(e,a),"undefined"!==typeof a.Wm&&delete q[a.Wm],this.m.deleteTexture(a)))};f.prototype.fd=function(a){if(a!==this.Wo){var b=this.Bc();b.type=6;this.Wo=b.Sc=a;this.Ub=this.Bb=!1}};hb=f})();
(function(){function f(){return"undefined"!==typeof jQuery?jQuery(window).width():window.innerWidth}function n(){return"undefined"!==typeof jQuery?jQuery(window).height():window.innerHeight}function a(d){if(d&&(d.getContext||d.dc)&&!d.c2runtime){d.c2runtime=this;var a=this;this.wc=(this.Fg=/crosswalk/i.test(navigator.userAgent)||/xwalk/i.test(navigator.userAgent)||!("undefined"===typeof window.c2isCrosswalk||!window.c2isCrosswalk))||"undefined"!==typeof window.device&&("undefined"!==typeof window.device.cordova||
"undefined"!==typeof window.device.phonegap)||"undefined"!==typeof window.c2iscordova&&window.c2iscordova;this.eb=!!d.dc;this.uf="undefined"!==typeof window.AppMobi||this.eb;this.hc=!!window.c2cocoonjs;this.Jc=!!window.c2ejecta;this.hc&&(CocoonJS.App.onSuspended.addEventListener(function(){a.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){a.setSuspended(!1)}));this.Jc&&(document.addEventListener("pagehide",function(){a.setSuspended(!0)}),document.addEventListener("pageshow",
function(){a.setSuspended(!1)}),document.addEventListener("resize",function(){a.setSize(window.innerWidth,window.innerHeight)}));this.da=this.eb||this.hc||this.Jc;this.Me=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent)||/edge\//i.test(navigator.userAgent);this.Kn=/tizen/i.test(navigator.userAgent);this.yi=/android/i.test(navigator.userAgent)&&!this.Kn&&!this.Me;this.fl=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&
!this.Me;this.On=/ipad/i.test(navigator.userAgent);this.Ei=this.fl||this.On||this.Jc;this.Xs=this.fl&&/os\s6/i.test(navigator.userAgent);this.Eg=(/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent))&&!this.Me;this.Hn=/amazonwebappplatform/i.test(navigator.userAgent);this.Rs=/firefox/i.test(navigator.userAgent);this.Jn=/safari/i.test(navigator.userAgent)&&!this.Eg&&!this.Me;this.Us=/windows/i.test(navigator.userAgent);this.ee="undefined"!==typeof window.c2nodewebkit||/nodewebkit/i.test(navigator.userAgent);
this.Mn=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.Ws=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.wf=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.dl=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.Ln=this.Mn||this.Ws||this.dl;this.Ps=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.Ai=this.yi&&!this.Eg&&!this.Fg&&!this.Rs&&!this.Hn&&
!this.da;this.devicePixelRatio=1;this.ad=this.wc||this.Fg||this.uf||this.hc||this.yi||this.Ei||this.wf||this.dl||this.Ps||this.Kn||this.Jc;this.ad||(this.ad=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));"undefined"===typeof cr_is_preview||this.ee||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)||(this.ee=!0);this.Qs="undefined"!==typeof cr_is_preview&&-1<window.location.search.indexOf("debug");this.canvas=
d;this.Zm=document.getElementById("c2canvasdiv");this.ba=this.q=this.m=null;this.Dk="";this.ii=!1;this.Bo=this.Co=0;this.canvas.oncontextmenu=function(d){d.preventDefault&&d.preventDefault();return!1};this.canvas.onselectstart=function(d){d.preventDefault&&d.preventDefault();return!1};this.eb&&(window.c2runtime=this);this.ee&&(window.ondragover=function(d){d.preventDefault();return!1},window.ondrop=function(d){d.preventDefault();return!1},require("nw.gui").App.clearCache());this.Ai&&"undefined"!==
typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=d.width;this.height=d.height;this.M=this.width;this.L=this.height;this.Xh=this.width;this.Wh=this.height;this.Mg=window.innerWidth;this.Lg=window.innerHeight;this.$r=!1;this.ga=!0;this.Hg=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.n=[];this.Fa=[];this.ll={};this.Wb=[];this.vk={};this.vd=[];this.gg=[];this.Ij=[];this.Wj=[];this.Mq=[];this.Be={};this.al=this.de=!1;this.Cd=0;
this.cl=!1;this.Gc=[];this.Dd=this.rb=this.Rg=this.oj="";this.zh=this.jp=!1;this.kk=this.Zg=this.ud=this.De=0;this.ag=1;this.ic=new Ya;this.ld=new Ya;this.Ii=0;this.po=!0;this.Ui=this.ki=this.fi=this.$f=this.Se=this.Ck=0;this.xe=null;this.rk=[];this.uk=[];this.ei=-1;this.pl=[[]];this.km=this.Qi=0;this.Ml(null);this.wo=this.bh=0;this.kl=!0;this.tg=0;this.Ah=[];this.Ej=this.kj=-1;this.Bf=!0;this.Oi=0;this.Gg=!1;this.$t=0;this.gf=null;this.Gs=!1;this.il=0;this.ja=this.rf=this.Nl=!1;this.Ao=new ca;this.yl=
new ca;this.zl=new ca;this.Jt=[];this.Rc=new $a([]);this.em=new $a([]);this.Td=[];this.ri={};this.jf={};this.ff={};this.fg={};this.Tm={};this.Vn=this.Ki=this.Vb=this.jc=this.Un=this.Ji=this.Z=null;this.dg=this.el=!1;this.Ek=[null,null];this.Ge=0;this.zk="";this.he={};this.tj=this.Ff=null;this.Ti=[];this.Kt()}}function e(d){d.target.result.createObjectStore("saves",{keyPath:"slot"})}function q(d,a,p,b){var c=indexedDB.open("_C2SaveStates");c.onupgradeneeded=e;c.onerror=b;c.onsuccess=function(c){c=
c.target.result;c.onerror=b;c.transaction(["saves"],"readwrite").objectStore("saves").put({slot:d,data:a}).onsuccess=p}}function c(d,a,p){var b=indexedDB.open("_C2SaveStates");b.onupgradeneeded=e;b.onerror=p;b.onsuccess=function(b){b=b.target.result;b.onerror=p;var c=b.transaction(["saves"]).objectStore("saves").get(d);c.onsuccess=function(){c.result?a(c.result.data):a(null)}}}function b(){I("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?
window.location.reload(!0):window.location+="?continuous"}function m(d){var a,p={};for(a in d)!d.hasOwnProperty(a)||d[a]instanceof ca||d[a]&&"undefined"!==typeof d[a].sv||(p[a]=d[a]);return p}a.prototype.Kt=function(){var d=this,a;a=this.wf?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest;var p="data.js";if(this.Mn||this.wf||this.dl)p="data.json";a.open("GET",p,!0);var b=!1;if(!this.da&&"response"in a&&"responseType"in a)try{a.responseType="json",b="json"===a.responseType}catch(c){b=!1}if(!b&&
"responseType"in a)try{a.responseType="text"}catch(g){}if("overrideMimeType"in a)try{a.overrideMimeType("application/json; charset=utf-8")}catch(k){}this.wf?a.onreadystatechange=function(){4===a.readyState&&d.Mi(JSON.parse(a.responseText))}:(a.onload=function(){if(b)d.Mi(a.response);else if(d.Jc){var p=a.responseText,p=p.substr(p.indexOf("{"));d.Mi(JSON.parse(p))}else d.Mi(JSON.parse(a.responseText))},a.onerror=function(d){ga("Error requesting "+p+":");ga(d)});a.send()};a.prototype.Ms=function(){var d=
this,a,p,b,c,g,k,l,h,m;this.devicePixelRatio=(this.Ne=(!this.da||this.Jc)&&this.ku&&!this.Ai)?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.hb();p=!(!this.$r&&(!this.Yj||this.ee||this.Ln||this.wf||this.Fg||this.wc||this.Hn));0<this.nb&&this.setSize(f(),n(),!0);try{this.ur&&(this.hc||this.Jc||!this.da)&&(a={alpha:p,depth:!1,antialias:!1,failIfMajorPerformanceCaveat:!0},this.m=this.canvas.getContext("webgl",a)||this.canvas.getContext("experimental-webgl",
a))}catch(e){}if(this.m){this.da||(this.fb=document.createElement("canvas"),jQuery(this.fb).appendTo(this.canvas.parentNode),this.fb.oncontextmenu=function(){return!1},this.fb.onselectstart=function(){return!1},this.fb.width=this.Xh,this.fb.height=this.Wh,jQuery(this.fb).css({width:this.Xh+"px",height:this.Wh+"px"}),this.Ro(),this.Hl=this.fb.getContext("2d"));this.q=new hb(this.m,this.ad);this.q.Tf(this.canvas.width,this.canvas.height);this.q.gn=0!==this.pr;this.ba=null;this.canvas.addEventListener("webglcontextlost",
function(a){a.preventDefault();d.it();I("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){d.q.Cn();d.q.Tf(d.q.width,d.q.height,!0);d.jc=null;d.Vb=null;d.Ek[0]=null;d.Ek[1]=null;d.jt();d.ga=!0;I("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);a=0;for(p=this.n.length;a<p;a++)for(g=this.n[a],b=0,c=g.H.length;b<c;b++)l=g.H[b],l.gb=this.q.Mk(l.id),this.dg=this.dg||this.q.oh(l.gb);a=0;for(p=this.Wb.length;a<
p;a++){h=this.Wb[a];b=0;for(c=h.H.length;b<c;b++)l=h.H[b],l.gb=this.q.Mk(l.id);b=0;for(c=h.K.length;b<c;b++)for(m=h.K[b],g=0,k=m.H.length;g<k;g++)l=m.H[g],l.gb=this.q.Mk(l.id),this.dg=this.dg||this.q.oh(l.gb)}}else{if(0<this.nb&&this.eb){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.ba=AppMobi.canvas.getContext("2d");try{this.ba.samplingMode=this.S?"smooth":"sharp",this.ba.globalScale=1,this.ba.HTML5CompatibilityMode=!0,this.ba.imageSmoothingEnabled=
this.S}catch(q){}0!==this.width&&0!==this.height&&(this.ba.width=this.width,this.ba.height=this.height)}this.ba||(a=this.hc?{antialias:!!this.S,alpha:p}:{alpha:p},this.ba=this.canvas.getContext("2d",a),this.ba.webkitImageSmoothingEnabled=this.S,this.ba.mozImageSmoothingEnabled=this.S,this.ba.msImageSmoothingEnabled=this.S,this.ba.imageSmoothingEnabled=this.S);this.Hl=this.fb=null}this.Dj=function(){d.ab(!1)};window==window.top||this.da||this.Ln||this.wf||(document.addEventListener("mousedown",function(){window.focus()},
!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.hc&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(I("Reloading for continuous preview"),this.Rg="__c2_continuouspreview",this.zh=!0),this.xt&&!this.ad&&(jQuery(window).focus(function(){d.setSuspended(!1)}),jQuery(window).blur(function(){d.setSuspended(!0)})));this.da||(a=function(d){if(gb(d)&&document.activeElement&&
document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(a){}},window.navigator.pointerEnabled?document.addEventListener("pointerdown",a):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",a):document.addEventListener("touchstart",a),document.addEventListener("mousedown",a));0===this.nb&&this.Ne&&1<this.devicePixelRatio&&this.setSize(this.Na,this.Ma,!0);this.up();this.Es();this.go();this.va={}};
a.prototype.setSize=function(d,a,p){var b=0,c=0,g=0,k=0,k=0,l=this.Xs&&this.Jn&&!navigator.standalone&&!this.da&&!this.wc;l&&(a+=60);if(this.Mg!==d||this.Lg!==a||p){this.Mg=d;this.Lg=a;var h=this.nb,m=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.Gg)&&!this.wc;if(m||0!==this.nb||p)m&&0<this.Ge&&(h=this.Ge),p=this.devicePixelRatio,4<=h?(g=this.Na/this.Ma,d/a>g?(g*=a,5===h?(k=g*p/this.Na,1<k?k=Math.floor(k):1>k&&(k=1/Math.ceil(1/k)),
g=this.Na*k/p,k=this.Ma*k/p,b=(d-g)/2,c=(a-k)/2,d=g,a=k):(b=(d-g)/2,d=g)):(k=d/g,5===h?(k=k*p/this.Ma,1<k?k=Math.floor(k):1>k&&(k=1/Math.ceil(1/k)),g=this.Na*k/p,k=this.Ma*k/p,b=(d-g)/2,c=(a-k)/2,d=g):c=(a-k)/2,a=k),m&&!this.ee&&(c=b=0)):this.ee&&this.Gg&&0===this.on&&(b=Math.floor((d-this.Na)/2),c=Math.floor((a-this.Ma)/2),d=this.Na,a=this.Ma),2>h&&(this.kg=p),this.Ne&&this.On&&1<p&&(1024<=d&&(d=1023),1024<=a&&(a=1023)),this.Xh=Math.round(d),this.Wh=Math.round(a),this.width=Math.round(d*p),this.height=
Math.round(a*p),this.ga=!0,this.Ep?(this.M=this.width,this.L=this.height,this.rc=!0):this.width<this.Na&&this.height<this.Ma||1===h?(this.M=this.width,this.L=this.height,this.rc=!0):(this.M=this.Na,this.L=this.Ma,this.rc=!1,2===h?(g=this.Na/this.Ma,h=this.Mg/this.Lg,h<g?this.M=this.L*h:h>g&&(this.L=this.M/h)):3===h&&(g=this.Na/this.Ma,h=this.Mg/this.Lg,h>g?this.M=this.L*h:h<g&&(this.L=this.M/h))),this.Zm&&!this.da&&(jQuery(this.Zm).css({width:Math.round(d)+"px",height:Math.round(a)+"px","margin-left":Math.floor(b)+
"px","margin-top":Math.floor(c)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(d)+"px",height:Math.round(a)+"px"})),this.canvas&&(this.canvas.width=Math.round(d*p),this.canvas.height=Math.round(a*p),this.Jc?(this.canvas.style.left=Math.floor(b)+"px",this.canvas.style.top=Math.floor(c)+"px",this.canvas.style.width=Math.round(d)+"px",this.canvas.style.height=Math.round(a)+"px"):this.Ne&&!this.da&&jQuery(this.canvas).css({width:Math.round(d)+"px",height:Math.round(a)+
"px"})),this.fb&&(this.fb.width=Math.round(d),this.fb.height=Math.round(a),jQuery(this.fb).css({width:Math.round(d)+"px",height:Math.round(a)+"px"})),this.q&&this.q.Tf(Math.round(d*p),Math.round(a*p)),this.eb&&this.ba&&(this.ba.width=Math.round(d),this.ba.height=Math.round(a)),this.ba&&(this.ba.webkitImageSmoothingEnabled=this.S,this.ba.mozImageSmoothingEnabled=this.S,this.ba.msImageSmoothingEnabled=this.S,this.ba.imageSmoothingEnabled=this.S),this.up(),this.da||!l&&!this.fl||window.setTimeout(function(){window.scrollTo(0,
1)},100)}};a.prototype.up=function(){if(this.Oq&&0!==this.Fl){var d="portrait";2===this.Fl&&(d="landscape");screen.orientation&&screen.orientation.lock?screen.orientation.lock(d):screen.lockOrientation?screen.lockOrientation(d):screen.webkitLockOrientation?screen.webkitLockOrientation(d):screen.mozLockOrientation?screen.mozLockOrientation(d):screen.msLockOrientation&&screen.msLockOrientation(d)}};a.prototype.it=function(){this.q.Vq();this.el=!0;var d,a,p;d=0;for(a=this.n.length;d<a;d++)p=this.n[d],
p.Vi&&p.Vi()};a.prototype.jt=function(){this.el=!1;var d,a,p;d=0;for(a=this.n.length;d<a;d++)p=this.n[d],p.Wi&&p.Wi()};a.prototype.Ro=function(){if(!this.da){var d=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.Gg)&&!this.wc?jQuery(this.canvas).offset():jQuery(this.canvas).position();d.position="absolute";jQuery(this.fb).css(d)}};var v=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||
window.oCancelAnimationFrame;a.prototype.setSuspended=function(d){var a;if(d&&!this.Hg)for(I("[Construct 2] Suspending"),this.Hg=!0,-1!==this.kj&&v&&v(this.kj),-1!==this.Ej&&clearTimeout(this.Ej),d=0,a=this.Ah.length;d<a;d++)this.Ah[d](!0);else if(!d&&this.Hg){I("[Construct 2] Resuming");this.Hg=!1;this.Ii=U();this.Se=U();d=this.Zg=this.ki=0;for(a=this.Ah.length;d<a;d++)this.Ah[d](!1);this.ab(!1)}};a.prototype.Kq=function(d){this.Ah.push(d)};a.prototype.Qd=function(d){return this.Ti[d]};a.prototype.Mi=
function(d){d&&d.project||ga("Project model unavailable");d=d.project;this.name=d[0];this.nn=d[1];this.nb=d[12];this.on=d[12];this.Na=d[10];this.Ma=d[11];this.Ko=this.Na/2;this.Lo=this.Ma/2;this.da&&!this.Jc&&(4<=d[12]||0===d[12])&&(I("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.on=this.nb=3);this.rm=d[18];this.Tg=d[19];0===this.Tg&&(this.Ff=new Image,this.Ff.src="loading-logo.png");this.bh=d[21];this.Ti=fc();this.hd=new Y(this);
var a,p,b,c,g,k,l,h,m;a=0;for(p=d[2].length;a<p;a++)l=d[2][a],b=this.Qd(l[0]),ib(l,b.prototype),m=new b(this),m.rj=l[1],m.fe=l[2],m.uo=l[9],m.ka&&m.ka(),this.plugins.push(m);this.Ti=fc();a=0;for(p=d[3].length;a<p;a++){l=d[3][a];g=this.Qd(l[1]);m=null;b=0;for(c=this.plugins.length;b<c;b++)if(this.plugins[b]instanceof g){m=this.plugins[b];break}var e=new m.ib(m);e.name=l[0];e.B=l[2];e.$k=l[3].slice(0);e.mu=l[3].length;e.Pq=l[4];e.bs=l[5];e.P=l[11];e.B?(e.Si=[],e.wd=this.tg++,e.qa=null):(e.Si=null,e.wd=
-1,e.qa=[]);e.gi=null;e.mf=null;e.jn=null;e.Kc=!1;e.Qb=null;l[6]?(e.Aj=l[6][0],e.Bj=l[6][1],e.Ch=l[6][2]):(e.Aj=null,e.Bj=0,e.Ch=0);e.Ob=l[7]?l[7]:null;e.index=a;e.c=[];e.ai=[];e.oe=[new jb(e)];e.td=0;e.Yc=null;e.$q=0;e.Yf=!0;e.Kj=kb;e.hs=lb;e.ns=mb;e.ca=nb;e.ph=ob;e.Ll=qb;e.Qf=rb;e.mi=sb;e.Gk=tb;e.Jk=ub;e.od=vb;e.tn=wb;e.Th=new ab(this.Na,this.Ma);e.Ih=!0;e.Jh=!1;e.va={};e.toString=xb;e.Fa=[];b=0;for(c=l[8].length;b<c;b++){h=l[8][b];var q=this.Qd(h[1]),r=null;g=0;for(k=this.Fa.length;g<k;g++)if(this.Fa[g]instanceof
q){r=this.Fa[g];break}r||(r=new q(this),r.vo=[],r.Jf=new ca,r.ka&&r.ka(),this.Fa.push(r));-1===r.vo.indexOf(e)&&r.vo.push(e);g=new r.ib(r,e);g.name=h[0];g.P=h[2];g.ka();e.Fa.push(g)}e.global=l[9];e.bl=l[10];e.H=[];b=0;for(c=l[12].length;b<c;b++)e.H.push({id:l[12][b][0],name:l[12][b][1],gb:-1,Ua:!0,index:b});e.Gv=l[13];this.rm&&!e.B&&!e.bl&&m.fe||e.ka();e.name&&(this.types[e.name]=e);this.n.push(e);m.rj&&(b=new m.Ea(e),b.uid=this.bh++,b.Uo=this.wo++,b.Ke=0,b.yg=yb,b.toString=zb,b.ra=l[14],b.ka(),e.c.push(b),
this.he[b.uid.toString()]=b)}a=0;for(p=d[4].length;a<p;a++)for(g=d[4][a],k=this.n[g[0]],b=1,c=g.length;b<c;b++)l=this.n[g[b]],l.qa.push(k),k.Si.push(l);a=0;for(p=d[27].length;a<p;a++){g=d[27][a];k=[];b=0;for(c=g.length;b<c;b++)k.push(this.n[g[b]]);b=0;for(c=k.length;b<c;b++)k[b].Kc=!0,k[b].Qb=k}if(0<this.tg)for(a=0,p=this.n.length;a<p;a++)if(l=this.n[a],!l.B&&l.qa.length){l.gi=Array(this.tg);l.mf=Array(this.tg);l.jn=Array(this.tg);e=[];b=r=q=h=0;for(c=l.qa.length;b<c;b++)for(m=l.qa[b],l.gi[m.wd]=
h,h+=m.mu,l.mf[m.wd]=q,q+=m.Pq,l.jn[m.wd]=r,r+=m.bs,g=0,k=m.H.length;g<k;g++)e.push(wa({},m.H[g]));l.H=e.concat(l.H);b=0;for(c=l.H.length;b<c;b++)l.H[b].index=b}a=0;for(p=d[5].length;a<p;a++)l=d[5][a],b=new Ab(this,l),this.ll[b.name]=b,this.Wb.push(b);a=0;for(p=d[6].length;a<p;a++)l=d[6][a],b=new Bb(this,l),this.vk[b.name]=b,this.vd.push(b);a=0;for(p=this.vd.length;a<p;a++)this.vd[a].Da();a=0;for(p=this.vd.length;a<p;a++)this.vd[a].mm();a=0;for(p=this.Ij.length;a<p;a++)this.Ij[a].Da();this.Ij.length=
0;this.Nq=d[7];this.zk=d[8];this.ed=d[9];this.kg=1;this.ur=d[13];this.S=d[14];this.Yj=d[15];this.ku=d[17];this.Fl=d[20];this.Oq=0<this.Fl;this.xt=d[22];this.rc=this.Ep=d[23];this.pr=d[24];this.Dt=d[25];this.wj=Date.now();this.Ti.length=0;this.Ms()};var w=!1;a.prototype.wm=function(d,a){d.cocoonLazyLoad=!0;d.onerror=function(a){w=d.Vm=!0;console&&console.error&&console.error("Error loading image '"+d.src+"': ",a)};this.Jc?d.src=a:d.src||("undefined"!==typeof XAPKReader?XAPKReader.get(a,function(a){d.src=
a},function(b){w=d.Vm=!0;console&&console.error&&console.error("Error extracting image '"+a+"' from expansion file: ",b)}):d.src=a);this.gg.push(d)};a.prototype.Zr=function(d){var a,b;a=0;for(b=this.gg.length;a<b;a++)if(this.gg[a].Wq===d)return this.gg[a];return null};var g=0,k=!1;a.prototype.Es=function(){this.gf&&(g=this.gf.Xt(this.Nq))};a.prototype.Sm=function(){var d=g,a=0,b=0,c=!0,l,h,b=0;for(l=this.gg.length;b<l;b++){h=this.gg[b];var e=h.lk;if(!e||0>=e)e=5E4;d+=e;h.src&&(h.complete||h.loaded)&&
!h.Vm?a+=e:c=!1}c&&this.Dt&&this.gf&&(k||(this.gf.au(),k=!0),b=this.gf.os(),a+=b,b<g&&(c=!1));this.Xe=0==d?0:a/d;return c};a.prototype.go=function(){if(this.ba||this.q){var d=this.ba||this.Hl;this.fb&&this.Ro();this.Xe=0;this.Tn=-1;if(this.Sm())this.Fs();else{var a=Date.now()-this.wj;if(d){var b=this.width,c=this.height,g=this.devicePixelRatio;this.fb&&(b=this.Xh,c=this.Wh,g=1);if(3!==this.Tg&&(this.hc||500<=a&&this.Tn!=this.Xe)){d.clearRect(0,0,b,c);var a=b/2,c=c/2,b=0===this.Tg&&this.Ff.complete,
k=40*g,l=0,h=80*g,e;b&&(h=this.Ff.width*g,e=this.Ff.height*g,k=h/2,l=e/2,d.drawImage(this.Ff,Q(a-k),Q(c-l),h,e));1>=this.Tg?(a=Q(a-k)+.5,c=Q(c+(l+(b?12*g:0)))+.5,d.fillStyle=w?"red":"DodgerBlue",d.fillRect(a,c,Math.floor(h*this.Xe),6*g),d.strokeStyle="black",d.strokeRect(a,c,h,6*g),d.strokeStyle="white",d.strokeRect(a-1*g,c-1*g,h+2*g,8*g)):2===this.Tg&&(d.font=this.Jc?"12pt ArialMT":"12pt Arial",d.fillStyle=w?"#f00":"#999",d.Fv="middle",g=Math.round(100*this.Xe)+"%",b=d.measureText?d.measureText(g):
null,d.fillText(g,a-(b?b.width:0)/2,c))}this.Tn=this.Xe}setTimeout(function(d){return function(){d.go()}}(this),this.hc?10:100)}}};a.prototype.Fs=function(){this.fb&&(this.canvas.parentNode.removeChild(this.fb),this.fb=this.Hl=null);this.wj=Date.now();this.Se=U();var d,a,b;if(this.rm)for(d=0,a=this.n.length;d<a;d++)b=this.n[d],b.B||b.bl||!b.Ca.fe||b.ka();else this.Bf=!1;d=0;for(a=this.Wb.length;d<a;d++)this.Wb[d].Xq();2<=this.nb&&(d=this.Na/this.Ma,a=this.width/this.height,this.kg=2!==this.nb&&a>
d||2===this.nb&&a<d?this.height/this.Ma:this.width/this.Na);this.nn?this.ll[this.nn].am():this.Wb[0].am();this.rm||(this.Oi=1,this.trigger(Y.prototype.i.Dm,null));navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();d=0;for(a=this.n.length;d<a;d++)b=this.n[d],b.ht&&b.ht();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.ab(!1);this.eb&&AppMobi.webview.execute("onGameReady();")};var r=window.requestAnimationFrame||
window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;a.prototype.ab=function(d){if(this.Z){var a=U();if(this.Gs&&this.Nl&&29>a-this.il)this.Nl=!1,this.il=a,r?this.kj=r(this.Dj,this.canvas):this.Ej=setTimeout(this.Dj,this.ad?1:16);else{this.Nl=!0;this.il=a;var b=this.nb,c=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.wc;(c||this.Gg)&&0<this.Ge&&(b=this.Ge);
0<b&&(!this.Ei||window.self!==window.top)&&(b=window.innerHeight,this.Mg===window.innerWidth&&this.Lg===b||this.setSize(f(),n()));this.da||(c?(this.ii||(this.Dk=jQuery(this.canvas).css("margin")||"0",this.ii=!0),this.Eg||this.ee||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.ii?(this.Eg||this.ee||jQuery(this.canvas).css("margin",this.Dk),this.Dk=
"",this.ii=!1,0===this.nb&&this.setSize(Math.round(this.Co/this.devicePixelRatio),Math.round(this.Bo/this.devicePixelRatio),!0)):(this.Co=this.width,this.Bo=this.height));this.Bf&&(c=this.Sm(),this.Oi=this.Xe,c&&(this.Bf=!1,this.Xe=1,this.trigger(Y.prototype.i.Dm,null)));this.$s();!this.ga&&!this.hc||this.el||this.zh||d||(this.ga=!1,this.q?this.Sb():this.Hc(),this.tj&&(this.canvas&&this.canvas.toDataURL&&(this.canvas.toDataURL(this.tj[0],this.tj[1]),this.trigger(Y.prototype.i.aq,null)),this.tj=null));
this.zv||(this.$f++,this.fi++,this.ki++);this.Zg+=U()-a;this.Hg||d||(r?this.kj=r(this.Dj,this.canvas):this.Ej=setTimeout(this.Dj,this.ad?1:16))}}};a.prototype.$s=function(){var d,a,b,c,g,k,l,h,e;d=U();1E3<=d-this.Se&&(this.Se+=1E3,1E3<=d-this.Se&&(this.Se=d),this.Ck=this.ki,this.ki=0,this.kk=this.Zg,this.Zg=0);this.po&&(0!==this.Ii&&(a=d-this.Ii,0!==a||this.Qs?(this.ud=a/1E3,.5<this.ud?this.ud=0:.1<this.ud&&(this.ud=.1)):(10<=this.Hv&&(this.po=!1),this.ud=1/60)),this.Ii=d);this.De=this.ud*this.ag;
this.ic.add(this.De);this.ld.add(this.ud);d=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.Gg)&&!this.wc;2<=this.nb||d&&0<this.Ge?(a=this.Na/this.Ma,b=this.width/this.height,c=this.nb,d&&0<this.Ge&&(c=this.Ge),this.kg=2!==c&&b>a||2===c&&b<a?this.height/this.Ma:this.width/this.Na,this.Z&&(this.Z.Zo(this.Z.scrollX),this.Z.$o(this.Z.scrollY))):this.kg=this.Ne?this.devicePixelRatio:1;this.hb();this.Cd++;this.hd.Nt();this.Cd--;this.hb();
this.Cd++;b=this.Ao.Uc();d=0;for(a=b.length;d<a;d++)b[d].Bv();d=0;for(a=this.n.length;d<a;d++)if(l=this.n[d],!l.B&&(l.Fa.length||l.qa.length))for(b=0,c=l.c.length;b<c;b++)for(h=l.c[b],g=0,k=h.G.length;g<k;g++)h.G[g].ab();d=0;for(a=this.n.length;d<a;d++)if(l=this.n[d],!l.B&&(l.Fa.length||l.qa.length))for(b=0,c=l.c.length;b<c;b++)for(h=l.c[b],g=0,k=h.G.length;g<k;g++)e=h.G[g],e.Ct&&e.Ct();b=this.yl.Uc();d=0;for(a=b.length;d<a;d++)b[d].ab();this.Cd--;this.Hs();for(d=0;this.xe&&10>d++;)this.cn(this.xe);
d=0;for(a=this.vd.length;d<a;d++)this.vd[d].Tk=!1;this.Z.Ee&&this.Z.Ee.Qa();this.Jt.length=0;this.kl=!1;this.Cd++;d=0;for(a=this.n.length;d<a;d++)if(l=this.n[d],!l.B&&(l.Fa.length||l.qa.length))for(b=0,c=l.c.length;b<c;b++)for(h=l.c[b],g=0,k=h.G.length;g<k;g++)e=h.G[g],e.gm&&e.gm();b=this.zl.Uc();d=0;for(a=b.length;d<a;d++)b[d].gm();this.Cd--};a.prototype.cn=function(d){var a=this.Z;this.Z.bu();var b,c,g,k,l,h,e;if(this.q)for(b=0,c=this.n.length;b<c;b++)l=this.n[b],l.B||!l.Jj||l.global&&0!==l.c.length||
-1!==d.Cg.indexOf(l)||l.Jj();a==d&&(this.hd.Mb.length=0);d.am();b=0;for(c=this.n.length;b<c;b++)if(l=this.n[b],l.global||l.Ca.rj)for(d=0,a=l.c.length;d<a;d++)if(h=l.c[d],h.El&&h.El(),h.G)for(g=0,k=h.G.length;g<k;g++)e=h.G[g],e.El&&e.El();this.kl=this.ga=!0;this.hb()};a.prototype.hm=function(d){this.yl.add(d)};a.prototype.du=function(d){this.zl.add(d)};a.prototype.Hk=function(d){return d&&-1!==d.ah?this.ud*d.ah:this.De};a.prototype.Hc=function(){this.Z.Hc(this.ba);this.eb&&this.ba.present()};a.prototype.Sb=
function(){this.Z.Sb(this.q);this.q.Ft()};a.prototype.Iq=function(d){d&&this.rk.push(d)};a.prototype.pi=function(d){d=d.toString();return this.he.hasOwnProperty(d)?this.he[d]:null};var h=[];a.prototype.Pd=function(d){var a,b;a=d.type.name;var c=null;if(this.Be.hasOwnProperty(a)){if(c=this.Be[a],c.contains(d))return}else c=h.length?h.pop():new ca,this.Be[a]=c;c.add(d);this.de=!0;if(d.Kc)for(a=0,b=d.siblings.length;a<b;a++)this.Pd(d.siblings[a]);this.al&&c.eg.push(d);this.Cd++;this.trigger(Object.getPrototypeOf(d.type.Ca).i.cq,
d);this.Cd--};a.prototype.hb=function(){if(this.de){var d,a,b,c,g,k;this.al=!0;b=0;for(g=this.Gc.length;b<g;++b)for(d=this.Gc[b],a=d.type,a.c.push(d),c=0,k=a.qa.length;c<k;++c)a.qa[c].c.push(d),a.qa[c].Yf=!0;this.Gc.length=0;this.Tp();Ua(this.Be);this.de=this.al=!1}};a.prototype.Tp=function(){for(var d in this.Be)this.Be.hasOwnProperty(d)&&this.Jp(this.Be[d])};a.prototype.Jp=function(d){var a=d.Uc(),b=a[0].type,c,g,k,l,e,m;Va(b.c,d);b.Yf=!0;0===b.c.length&&(b.Jh=!1);c=0;for(g=b.qa.length;c<g;++c)m=
b.qa[c],Va(m.c,d),m.Yf=!0;c=0;for(g=this.hd.Mb.length;c<g;++c)if(e=this.hd.Mb[c],e.tb.hasOwnProperty(b.index)&&Va(e.tb[b.index].Ad,d),!b.B)for(k=0,l=b.qa.length;k<l;++k)m=b.qa[k],e.tb.hasOwnProperty(m.index)&&Va(e.tb[m.index].Ad,d);if(e=a[0].d){if(e.Tc)for(k=e.c,c=0,g=k.length;c<g;++c)l=k[c],d.contains(l)&&(l.ma(),e.Yb.update(l,l.Ib,null),l.Ib.set(0,0,-1,-1));Va(e.c,d);e.vh(0)}for(c=0;c<a.length;++c)this.Ip(a[c],b);d.clear();h.push(d);this.ga=!0};a.prototype.Ip=function(d,a){var b,c,g;b=0;for(c=this.rk.length;b<
c;++b)this.rk[b](d);d.Xd&&a.Th.update(d,d.Xd,null);(b=d.d)&&b.Rf(d,!0);if(d.G)for(b=0,c=d.G.length;b<c;++b)g=d.G[b],g.dh&&g.dh(),g.behavior.Jf.remove(d);this.Ao.remove(d);this.yl.remove(d);this.zl.remove(d);d.dh&&d.dh();this.he.hasOwnProperty(d.uid.toString())&&delete this.he[d.uid.toString()];this.Ui--;100>a.ai.length&&a.ai.push(d)};var u=[];a.prototype.Ae=function(d,a,b,c,g,k){var l,h,e,m;if(!d)return null;var r=this.n[d[1]],q=r.Ca.fe;if(this.Bf&&q&&!r.bl||q&&!this.q&&11===d[0][11])return null;
var B=a;q||(a=null);var f;r.ai.length?(f=r.ai.pop(),f.Pc=!0,r.Ca.Ea.call(f,r)):(f=new r.Ca.Ea(r),f.Pc=!1);f.uid=b&&!k?d[2]:this.bh++;this.he[f.uid.toString()]=f;f.Uo=this.wo++;f.Ke=r.c.length;l=0;for(h=this.Gc.length;l<h;++l)this.Gc[l].type===r&&f.Ke++;f.yg=yb;f.toString=zb;e=d[3];if(f.Pc)Ua(f.va);else{f.va={};if("undefined"!==typeof cr_is_preview)for(f.Fn=[],f.Fn.length=e.length,l=0,h=e.length;l<h;l++)f.Fn[l]=e[l][1];f.La=[];f.La.length=e.length}l=0;for(h=e.length;l<h;l++)f.La[l]=e[l][0];if(q){var t=
d[0];f.x=ha(c)?t[0]:c;f.y=ha(g)?t[1]:g;f.z=t[2];f.width=t[3];f.height=t[4];f.depth=t[5];f.e=t[6];f.opacity=t[7];f.Cb=t[8];f.Db=t[9];f.ub=t[10];l=t[11];!this.q&&r.H.length&&(f.ub=l);f.ng=cb(f.ub);this.m&&db(f,f.ub,this.m);if(f.Pc){l=0;for(h=t[12].length;l<h;l++)for(e=0,m=t[12][l].length;e<m;e++)f.ua[l][e]=t[12][l][e];f.za.set(0,0,0,0);f.Xd.set(0,0,-1,-1);f.Ib.set(0,0,-1,-1);f.Pb.Vf(f.za);f.bk.length=0}else{f.ua=t[12].slice(0);l=0;for(h=f.ua.length;l<h;l++)f.ua[l]=t[12][l].slice(0);f.U=[];f.Rd=[];f.Rd.length=
r.H.length;f.za=new S(0,0,0,0);f.Xd=new S(0,0,-1,-1);f.Ib=new S(0,0,-1,-1);f.Pb=new va;f.bk=[];f.wa=Cb;f.Lq=Db;f.bb=Eb;f.ma=Fb;f.ju=Gb;f.qm=Hb;f.uc=Ib}f.Dh=!1;f.gu=0;f.fu=0;f.eu=null;14===t.length&&(f.Dh=!0,f.gu=t[13][0],f.fu=t[13][1],f.eu=t[13][2]);l=0;for(h=r.H.length;l<h;l++)f.Rd[l]=!0;f.Nd=Jb;f.Nd();f.Dp=!!f.U.length;f.Oh=!0;f.dk=!0;r.Ih=!0;f.visible=!0;f.ah=-1;f.d=a;f.Vc=a.c.length;"undefined"===typeof f.W&&(f.W=null);this.ga=f.ye=!0}var n;l=u.length=0;for(h=r.qa.length;l<h;l++)u.push.apply(u,
r.qa[l].Fa);u.push.apply(u,r.Fa);if(f.Pc)for(l=0,h=u.length;l<h;l++){var v=u[l];n=f.G[l];n.Pc=!0;v.behavior.Ea.call(n,v,f);t=d[4][l];e=0;for(m=t.length;e<m;e++)n.ra[e]=t[e];n.ka();v.behavior.Jf.add(f)}else for(f.G=[],l=0,h=u.length;l<h;l++)v=u[l],n=new v.behavior.Ea(v,f),n.Pc=!1,n.ra=d[4][l].slice(0),n.ka(),f.G.push(n),v.behavior.Jf.add(f);t=d[5];if(f.Pc)for(l=0,h=t.length;l<h;l++)f.ra[l]=t[l];else f.ra=t.slice(0);this.Gc.push(f);this.de=!0;a&&(a.jg(f,!0),1!==a.Gb||1!==a.Hb)&&(r.Jh=!0);this.Ui++;
if(r.Kc){if(f.Kc=!0,f.Pc?f.siblings.length=0:f.siblings=[],!b&&!k){l=0;for(h=r.Qb.length;l<h;l++)if(r.Qb[l]!==r){if(!r.Qb[l].Yc)return null;f.siblings.push(this.Ae(r.Qb[l].Yc,B,!1,q?f.x:c,q?f.y:g,!0))}l=0;for(h=f.siblings.length;l<h;l++)for(f.siblings[l].siblings.push(f),e=0;e<h;e++)l!==e&&f.siblings[l].siblings.push(f.siblings[e])}}else f.Kc=!1,f.siblings=null;f.ka();l=0;for(h=f.G.length;l<h;l++)f.G[l].Bt&&f.G[l].Bt();return f};a.prototype.vg=function(d){var a,b;a=0;for(b=this.Z.K.length;a<b;a++){var c=
this.Z.K[a];if(fb(c.name,d))return c}return null};a.prototype.yd=function(d){d=Q(d);0>d&&(d=0);d>=this.Z.K.length&&(d=this.Z.K.length-1);return this.Z.K[d]};a.prototype.ik=function(d){var a,b;a=0;for(b=d.length;a<b;a++)d[a].ca().ha=!0};a.prototype.ph=function(d){var a,b;a=0;for(b=d.length;a<b;a++)d[a].ph()};a.prototype.Ll=function(d){var a,b;a=0;for(b=d.length;a<b;a++)d[a].Ll()};a.prototype.Qf=function(d){var a,b;a=0;for(b=d.length;a<b;a++)d[a].Qf()};a.prototype.Ap=function(d){if(d.Ih){var a,b,c=
d.c;a=0;for(b=c.length;a<b;++a)c[a].qm();c=this.Gc;a=0;for(b=c.length;a<b;++a)c[a].type===d&&c[a].qm();d.Ih=!1}};a.prototype.gs=function(d,a,b,c){var g,l,k=d?1!==d.Gb||1!==d.Hb:!1;if(a.B)for(d=0,g=a.Si.length;d<g;++d)l=a.Si[d],k||l.Jh?za(c,l.c):(this.Ap(l),l.Th.jj(b,c));else k||a.Jh?za(c,a.c):(this.Ap(a),a.Th.jj(b,c))};a.prototype.Zf=function(d,a,b,c){var g=d.ca(),l,k,h,e,m,f;if(g.ha)for(c||(g.ha=!1,g.c.length=0),l=0,e=d.c.length;l<e;l++){if(h=d.c[l],h.ma(),m=h.d.pa(a,b,!0),f=h.d.pa(a,b,!1),h.bb(m,
f)){if(c)return!1;g.c.push(h)}}else{l=k=0;for(e=g.c.length;l<e;l++)if(h=g.c[l],h.ma(),m=h.d.pa(a,b,!0),f=h.d.pa(a,b,!1),h.bb(m,f)){if(c)return!1;g.c[k]=g.c[l];k++}c||(g.c.length=k)}d.od();return c?!0:g.Sk()};a.prototype.cu=function(d,a){if(!(d&&a&&d!==a&&d.ye&&a.ye))return!1;d.ma();a.ma();var b=d.d,c=a.d,g,l,k,h,e,m,f,r;if(b===c||b.Gb===c.Gb&&c.Hb===c.Hb&&b.scale===c.scale&&b.e===c.e&&b.mb===c.mb){if(!d.za.Ns(a.za)||!d.Pb.Gn(a.Pb)||d.Dh&&a.Dh)return!1;if(d.Dh)return this.op(d,a);if(a.Dh)return this.op(a,
d);f=d.W&&!d.W.xf();g=a.W&&!a.W.xf();if(!f&&!g)return!0;f?(d.W.hf(d.width,d.height,d.e),f=d.W):(this.Rc.Uf(d.Pb,d.x,d.y,d.width,d.height),f=this.Rc);g?(a.W.hf(a.width,a.height,a.e),r=a.W):(this.Rc.Uf(a.Pb,a.x,a.y,a.width,a.height),r=this.Rc);return f.Dg(r,a.x-d.x,a.y-d.y)}f=d.W&&!d.W.xf();g=a.W&&!a.W.xf();f?(d.W.hf(d.width,d.height,d.e),this.Rc.ep(d.W)):this.Rc.Uf(d.Pb,d.x,d.y,d.width,d.height);f=this.Rc;g?(a.W.hf(a.width,a.height,a.e),this.em.ep(a.W)):this.em.Uf(a.Pb,a.x,a.y,a.width,a.height);r=
this.em;g=0;for(l=f.Oc;g<l;g++)k=2*g,h=k+1,e=f.Oa[k],m=f.Oa[h],f.Oa[k]=b.pb(e+d.x,m+d.y,!0),f.Oa[h]=b.pb(e+d.x,m+d.y,!1);f.ma();g=0;for(l=r.Oc;g<l;g++)k=2*g,h=k+1,e=r.Oa[k],m=r.Oa[h],r.Oa[k]=c.pb(e+a.x,m+a.y,!0),r.Oa[h]=c.pb(e+a.x,m+a.y,!1);r.ma();return f.Dg(r,0,0)};var t=new va;new S(0,0,0,0);var l=[];a.prototype.op=function(d,a){var b,c,g,k,h=a.za,e=d.x,m=d.y;d.vv(h,l);var f=a.W&&!a.W.xf();b=0;for(c=l.length;b<c;++b)if(g=l[b],k=g.Cv,h.Os(k,e,m)&&(t.Vf(k),t.offset(e,m),t.Gn(a.Pb)))if(f)if(a.W.hf(a.width,
a.height,a.e),g.Jl){if(g.Jl.Dg(a.W,a.x-(e+k.left),a.y-(m+k.top)))return l.length=0,!0}else{if(this.Rc.Uf(t,0,0,k.right-k.left,k.bottom-k.top),this.Rc.Dg(a.W,a.x,a.y))return l.length=0,!0}else if(g.Jl){if(this.Rc.Uf(a.Pb,0,0,a.width,a.height),g.Jl.Dg(this.Rc,-(e+k.left),-(m+k.top)))return l.length=0,!0}else return l.length=0,!0;l.length=0;return!1};a.prototype.vp=function(d,a){if(!a)return!1;var b,c,g,l,k;b=0;for(c=d.Fa.length;b<c;b++)if(d.Fa[b].behavior instanceof a)return!0;if(!d.B)for(b=0,c=d.qa.length;b<
c;b++)for(k=d.qa[b],g=0,l=k.Fa.length;g<l;g++)if(k.Fa[g].behavior instanceof a)return!0;return!1};a.prototype.wp=function(d){return this.vp(d,Yb.Ou)};a.prototype.lm=function(d){return this.vp(d,Yb.Pu)};var B=-1;a.prototype.trigger=function(d,a,b){if(!this.Z)return!1;var c=this.Z.Ee;if(!c)return!1;var g=!1,l,k,h;B++;var e=c.pk;k=0;for(h=e.length;k<h;++k)l=this.sp(d,a,e[k],b),g=g||l;l=this.sp(d,a,c,b);B--;return g||l};a.prototype.sp=function(d,a,b,c){var g=!1,l,k,h,e;if(a)for(h=this.jm(d,a,a.type.name,
b,c),g=g||h,e=a.type.qa,l=0,k=e.length;l<k;++l)h=this.jm(d,a,e[l].name,b,c),g=g||h;else h=this.jm(d,a,"system",b,c),g=g||h;return g};a.prototype.jm=function(d,a,b,c,g){var l,k=!1,h=!1,h="undefined"!==typeof g,e=(h?c.ln:c.tp)[b];if(!e)return k;var m=null;c=0;for(l=e.length;c<l;++c)if(e[c].method==d){m=e[c].sg;break}if(!m)return k;d=h?m[g]:m;if(!d)return null;c=0;for(l=d.length;c<l;c++)g=d[c][0],h=d[c][1],h=this.Xr(a,b,g,h),k=k||h;return k};a.prototype.Xr=function(d,a,b,c){var g,l,k=!1;this.km++;var h=
this.ob().Rb;h&&this.ph(h.me);var e=1<this.km;this.ph(b.me);e&&this.Ht();var m=this.Ml(b);m.Rb=b;d&&(g=this.types[a].ca(),g.ha=!1,g.c.length=1,g.c[0]=d,this.types[a].od());d=!0;if(b.parent){a=m.np;for(g=b.parent;g;)a.push(g),g=g.parent;a.reverse();g=0;for(l=a.length;g<l;g++)if(!a[g].Pt()){d=!1;break}}d&&(this.fi++,b.Mc?b.Ot(c):b.Qa(),k=k||m.Re);this.Qo();e&&this.At();this.Qf(b.me);h&&this.Qf(h.me);this.de&&0===this.Cd&&0===B&&!this.cl&&this.hb();this.km--;return k};a.prototype.ni=function(){var d=
this.ob();return d.Rb.jb[d.Ab]};a.prototype.Ht=function(){this.Qi++;this.Qi>=this.pl.length&&this.pl.push([])};a.prototype.At=function(){this.Qi--};a.prototype.rn=function(){return this.pl[this.Qi]};a.prototype.Ml=function(d){this.ei++;this.ei>=this.uk.length&&this.uk.push(new Kb);var a=this.ob();a.reset(d);return a};a.prototype.Qo=function(){this.ei--};a.prototype.ob=function(){return this.uk[this.ei]};a.prototype.sn=function(d,a){for(var b,c,g,l,k,h;a;){b=0;for(c=a.Cc.length;b<c;b++)if(h=a.Cc[b],
h instanceof Lb&&fb(d,h.name))return h;a=a.parent}b=0;for(c=this.vd.length;b<c;b++)for(k=this.vd[b],g=0,l=k.ae.length;g<l;g++)if(h=k.ae[g],h instanceof Lb&&fb(d,h.name))return h;return null};a.prototype.un=function(d){var a,b;a=0;for(b=this.Wb.length;a<b;a++)if(this.Wb[a].P===d)return this.Wb[a];return null};a.prototype.qi=function(d){var a,b;a=0;for(b=this.n.length;a<b;a++)if(this.n[a].P===d)return this.n[a];return null};a.prototype.js=function(d){var a,b;a=0;for(b=this.Td.length;a<b;a++)if(this.Td[a].P===
d)return this.Td[a];return null};a.prototype.Hs=function(){var d=this,a=this.oj,g=this.Dd,l=this.Rg,k=!1;this.jp&&(k=!0,a="__c2_continuouspreview",this.jp=!1);if(a.length){this.hb();g=this.Tt();if(window.indexedDB&&!this.hc)q(a,g,function(){I("Saved state to IndexedDB storage ("+g.length+" bytes)");d.Dd=g;d.trigger(Y.prototype.i.Tj,null);d.Dd="";k&&b()},function(c){try{localStorage.setItem("__c2save_"+a,g),I("Saved state to WebStorage ("+g.length+" bytes)"),d.Dd=g,d.trigger(Y.prototype.i.Tj,null),
d.Dd="",k&&b()}catch(l){I("Failed to save game state: "+c+"; "+l)}});else try{localStorage.setItem("__c2save_"+a,g),I("Saved state to WebStorage ("+g.length+" bytes)"),d.Dd=g,this.trigger(Y.prototype.i.Tj,null),d.Dd="",k&&b()}catch(h){I("Error saving to WebStorage: "+h)}this.rb=this.Rg=this.oj=""}l.length&&(window.indexedDB&&!this.hc?c(l,function(a){a?(d.rb=a,I("Loaded state from IndexedDB storage ("+d.rb.length+" bytes)")):(d.rb=localStorage.getItem("__c2save_"+l)||"",I("Loaded state from WebStorage ("+
d.rb.length+" bytes)"));d.zh=!1;d.rb.length||d.trigger(Y.prototype.i.Rj,null)},function(){d.rb=localStorage.getItem("__c2save_"+l)||"";I("Loaded state from WebStorage ("+d.rb.length+" bytes)");d.zh=!1;d.rb.length||d.trigger(Y.prototype.i.Rj,null)}):(this.rb=localStorage.getItem("__c2save_"+l)||"",I("Loaded state from WebStorage ("+this.rb.length+" bytes)"),this.zh=!1,d.rb.length||d.trigger(Y.prototype.i.Rj,null)),this.oj=this.Rg="");this.rb.length&&(this.hb(),this.Zs(this.rb),this.Dd=this.rb,this.trigger(Y.prototype.i.pq,
null),this.rb=this.Dd="")};a.prototype.Tt=function(){var d,a,b,c,g,l,k,h={c2save:!0,version:1,rt:{time:this.ic.aa,walltime:this.ld.aa,timescale:this.ag,tickcount:this.$f,execcount:this.fi,next_uid:this.bh,running_layout:this.Z.P,start_time_offset:Date.now()-this.wj},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};d=0;for(a=this.n.length;d<a;d++)if(g=this.n[d],!g.B&&!this.wp(g)){l={instances:[]};Ta(g.va)&&(l.ex=m(g.va));b=0;for(c=g.c.length;b<c;b++)l.instances.push(this.Vl(g.c[b]));
h.types[g.P.toString()]=l}d=0;for(a=this.Wb.length;d<a;d++)b=this.Wb[d],h.layouts[b.P.toString()]=b.Zb();c=h.events.groups;d=0;for(a=this.Td.length;d<a;d++)b=this.Td[d],c[b.P.toString()]=this.ri[b.zg].pf;a=h.events.cnds;for(k in this.jf)this.jf.hasOwnProperty(k)&&(d=this.jf[k],Ta(d.va)&&(a[k]={ex:m(d.va)}));a=h.events.acts;for(k in this.ff)this.ff.hasOwnProperty(k)&&(d=this.ff[k],Ta(d.va)&&(a[k]={ex:d.va}));a=h.events.vars;for(k in this.fg)this.fg.hasOwnProperty(k)&&(d=this.fg[k],d.Bi||d.parent&&
!d.Jg||(a[k]=d.data));h.system=this.hd.Zb();return JSON.stringify(h)};a.prototype.Vo=function(){var d,a,b,c,g,l;this.he={};d=0;for(a=this.n.length;d<a;d++)if(b=this.n[d],!b.B)for(c=0,g=b.c.length;c<g;c++)l=b.c[c],this.he[l.uid.toString()]=l};a.prototype.Zs=function(d){d=JSON.parse(d);if(d.c2save&&!(1<d.version)){var a=d.rt;this.ic.reset();this.ic.aa=a.time;this.ld.reset();this.ld.aa=a.walltime||0;this.ag=a.timescale;this.$f=a.tickcount;this.fi=a.execcount;this.wj=Date.now()-a.start_time_offset;var b=
a.running_layout;if(b!==this.Z.P)if(b=this.un(b))this.cn(b);else return;var c,g,l,k,h,e,m;e=d.types;for(g in e)if(e.hasOwnProperty(g)&&(k=this.qi(parseInt(g,10)))&&!k.B&&!this.wp(k)){e[g].ex?k.va=e[g].ex:Ua(k.va);h=k.c;l=e[g].instances;b=0;for(c=oa(h.length,l.length);b<c;b++)this.Li(h[b],l[b]);b=l.length;for(c=h.length;b<c;b++)this.Pd(h[b]);b=h.length;for(c=l.length;b<c;b++){h=null;if(k.Ca.fe&&(h=this.Z.oi(l[b].w.l),!h))continue;h=this.Ae(k.Yc,h,!1,0,0,!0);this.Li(h,l[b])}k.Yf=!0}this.hb();this.Vo();
c=d.layouts;for(g in c)c.hasOwnProperty(g)&&(b=this.un(parseInt(g,10)))&&b.yc(c[g]);c=d.events.groups;for(g in c)c.hasOwnProperty(g)&&(b=this.js(parseInt(g,10)))&&this.ri[b.zg]&&(this.ri[b.zg].pf=c[g]);b=d.events.cnds;for(g in b)b.hasOwnProperty(g)&&this.jf.hasOwnProperty(g)&&(this.jf[g].va=b[g].ex);b=d.events.acts;for(g in b)b.hasOwnProperty(g)&&this.ff.hasOwnProperty(g)&&(this.ff[g].va=b[g].ex);b=d.events.vars;for(g in b)b.hasOwnProperty(g)&&this.fg.hasOwnProperty(g)&&(this.fg[g].data=b[g]);this.bh=
a.next_uid;this.hd.yc(d.system);b=0;for(c=this.n.length;b<c;b++)if(k=this.n[b],!k.B)for(g=0,d=k.c.length;g<d;g++){h=k.c[g];if(k.Kc)for(e=h.yg(),a=h.siblings.length=0,l=k.Qb.length;a<l;a++)m=k.Qb[a],k!==m&&h.siblings.push(m.c[e]);h.md&&h.md();if(h.G)for(a=0,l=h.G.length;a<l;a++)e=h.G[a],e.md&&e.md()}this.ga=!0}};a.prototype.Vl=function(d,a){var b,c,g,l,k;l=d.type;g=l.Ca;var h={};a?h.c2=!0:h.uid=d.uid;Ta(d.va)&&(h.ex=m(d.va));if(d.La&&d.La.length)for(h.ivs={},b=0,c=d.La.length;b<c;b++)h.ivs[d.type.$k[b].toString()]=
d.La[b];if(g.fe){g={x:d.x,y:d.y,w:d.width,h:d.height,l:d.d.P,zi:d.uc()};0!==d.e&&(g.a=d.e);1!==d.opacity&&(g.o=d.opacity);.5!==d.Cb&&(g.hX=d.Cb);.5!==d.Db&&(g.hY=d.Db);0!==d.ub&&(g.bm=d.ub);d.visible||(g.v=d.visible);d.ye||(g.ce=d.ye);-1!==d.ah&&(g.mts=d.ah);if(l.H.length)for(g.fx=[],b=0,c=l.H.length;b<c;b++)k=l.H[b],g.fx.push({name:k.name,active:d.Rd[k.index],params:d.ua[k.index]});h.w=g}if(d.G&&d.G.length)for(h.behs={},b=0,c=d.G.length;b<c;b++)l=d.G[b],l.Zb&&(h.behs[l.type.P.toString()]=l.Zb());
d.Zb&&(h.data=d.Zb());return h};a.prototype.ls=function(d,a){var b,c;b=0;for(c=d.$k.length;b<c;b++)if(d.$k[b]===a)return b;return-1};a.prototype.es=function(d,a){var b,c;b=0;for(c=d.G.length;b<c;b++)if(d.G[b].type.P===a)return b;return-1};a.prototype.Li=function(d,a,b){var c,g,l,k,h;h=d.type;l=h.Ca;if(b){if(!a.c2)return}else d.uid=a.uid;a.ex?d.va=a.ex:Ua(d.va);if(g=a.ivs)for(c in g)g.hasOwnProperty(c)&&(b=this.ls(h,parseInt(c,10)),0>b||b>=d.La.length||(d.La[b]=g[c]));if(l.fe){l=a.w;d.d.P!==l.l&&(b=
d.d,d.d=this.Z.oi(l.l),d.d?(b.Rf(d,!0),d.d.jg(d,!0),d.wa(),d.d.vh(0)):(d.d=b,this.Pd(d)));d.x=l.x;d.y=l.y;d.width=l.w;d.height=l.h;d.Vc=l.zi;d.e=l.hasOwnProperty("a")?l.a:0;d.opacity=l.hasOwnProperty("o")?l.o:1;d.Cb=l.hasOwnProperty("hX")?l.hX:.5;d.Db=l.hasOwnProperty("hY")?l.hY:.5;d.visible=l.hasOwnProperty("v")?l.v:!0;d.ye=l.hasOwnProperty("ce")?l.ce:!0;d.ah=l.hasOwnProperty("mts")?l.mts:-1;d.ub=l.hasOwnProperty("bm")?l.bm:0;d.ng=cb(d.ub);this.m&&db(d,d.ub,this.m);d.wa();if(l.hasOwnProperty("fx"))for(b=
0,g=l.fx.length;b<g;b++)k=h.Jk(l.fx[b].name),0>k||(d.Rd[k]=l.fx[b].active,d.ua[k]=l.fx[b].params);d.Nd()}if(h=a.behs)for(c in h)h.hasOwnProperty(c)&&(l=this.es(d,parseInt(c,10)),0>l||d.G[l].yc(h[c]));a.data&&d.yc(a.data)};Mb=function(d){return new a(document.getElementById(d))};Nb=function(d,b){return new a({dc:!0,width:d,height:b})};window.cr_createRuntime=Mb;window.cr_createDCRuntime=Nb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var d=document.createElement("screencanvas")||document.createElement("canvas");
d.Ev=!0;document.body.appendChild(d);d=new a(d);window.c2runtime=d;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);return d};window.createEjectaRuntime=function(){var d=new a(document.getElementById("canvas"));window.c2runtime=d;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return d}})();
window.cr_getC2Runtime=function(){var f=document.getElementById("c2canvas");return f?f.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_sizeCanvas=function(f,n){if(0!==f&&0!==n){var a=window.cr_getC2Runtime();a&&a.setSize(f,n)}};window.cr_setSuspended=function(f){var n=window.cr_getC2Runtime();n&&n.setSuspended(f)};
(function(){function f(a,b){this.b=a;this.Ee=null;this.scrollX=this.b.Na/2;this.scrollY=this.b.Ma/2;this.scale=1;this.e=0;this.nf=!0;this.name=b[0];this.width=b[1];this.height=b[2];this.xp=b[3];this.hp=b[4];this.P=b[5];var c=b[6],h,e;this.K=[];this.Cg=[];h=0;for(e=c.length;h<e;h++){var m=new Ob(this,c[h]);m.yo=h;this.K.push(m)}c=b[7];this.Le=[];h=0;for(e=c.length;h<e;h++){var m=c[h],l=this.b.n[m[1]];l.Yc||(l.Yc=m);this.Le.push(m);-1===this.Cg.indexOf(l)&&this.Cg.push(l)}this.H=[];this.U=[];this.ua=
[];h=0;for(e=b[8].length;h<e;h++)this.H.push({id:b[8][h][0],name:b[8][h][1],gb:-1,Ua:!0,index:h}),this.ua.push(b[8][h][2].slice(0));this.Nd();this.rh=new S(0,0,1,1);this.Ol=new S(0,0,1,1);this.ie={}}function n(a,b){return a.Vc-b.Vc}function a(a,b){this.Xa=a;this.b=a.b;this.c=[];this.scale=1;this.e=0;this.Ce=!1;this.Ld=new S(0,0,0,0);this.qp=new va;this.Ja=this.ya=this.Ka=this.xa=0;this.bf=!1;this.Od=-1;this.name=b[0];this.index=b[1];this.P=b[2];this.visible=b[3];this.Vd=b[4];this.Md=b[5];this.Gb=
b[6];this.Hb=b[7];this.opacity=b[8];this.Bk=b[9];this.Tc=b[10];this.mb=b[11];this.ub=b[12];this.tr=b[13];this.ng="source-over";this.kb=this.lb=0;this.Yb=null;this.Df=e();this.Id=!0;this.Hi=new S(0,0,-1,-1);this.pc=new S(0,0,-1,-1);this.Tc&&(this.Yb=new bb(this.b.Na,this.b.Ma));this.je=!1;var c=b[14],h,m;this.sf=[];h=0;for(m=c.length;h<m;h++){var f=c[h],l=this.b.n[f[1]];l.Yc||(l.Yc=f,l.$q=this.index);this.sf.push(f);-1===this.Xa.Cg.indexOf(l)&&this.Xa.Cg.push(l)}this.H=[];this.U=[];this.ua=[];h=0;
for(m=b[15].length;h<m;h++)this.H.push({id:b[15][h][0],name:b[15][h][1],gb:-1,Ua:!0,index:h}),this.ua.push(b[15][h][2].slice(0));this.Nd();this.rh=new S(0,0,1,1);this.Ol=new S(0,0,1,1)}function e(){return m.length?m.pop():[]}function q(a){a.length=0;m.push(a)}f.prototype.St=function(a){var b=a.type.P.toString();this.ie.hasOwnProperty(b)||(this.ie[b]=[]);this.ie[b].push(this.b.Vl(a))};f.prototype.yn=function(){var a=this.K[0];return!a.Md&&1===a.opacity&&!a.Bk&&a.visible};f.prototype.Nd=function(){this.U.length=
0;var a,b,c;a=0;for(b=this.H.length;a<b;a++)c=this.H[a],c.Ua&&this.U.push(c)};f.prototype.Ik=function(a){var b,c,h;b=0;for(c=this.H.length;b<c;b++)if(h=this.H[b],h.name===a)return h;return null};var c=[],b=!0;f.prototype.am=function(){this.hp&&(this.Ee=this.b.vk[this.hp],this.Ee.mm());this.b.Z=this;this.scrollX=this.b.Na/2;this.scrollY=this.b.Ma/2;var a,k,e,h,m,f,l;a=0;for(e=this.b.n.length;a<e;a++)if(k=this.b.n[a],!k.B)for(m=k.c,k=0,h=m.length;k<h;k++)if(f=m[k],f.d){var q=f.d.yo;q>=this.K.length&&
(q=this.K.length-1);f.d=this.K[q];-1===f.d.c.indexOf(f)&&f.d.c.push(f);f.d.bf=!0}if(!b)for(a=0,e=this.K.length;a<e;++a)this.K[a].c.sort(n);c.length=0;this.Qq();a=0;for(e=this.K.length;a<e;a++)f=this.K[a],f.Yq(),f.om();m=!1;if(!this.nf){for(l in this.ie)if(this.ie.hasOwnProperty(l)&&(k=this.b.qi(parseInt(l,10)))&&!k.B&&this.b.lm(k)){h=this.ie[l];a=0;for(e=h.length;a<e;a++){f=null;if(k.Ca.fe&&(f=this.oi(h[a].w.l),!f))continue;f=this.b.Ae(k.Yc,f,!1,0,0,!0);this.b.Li(f,h[a]);m=!0;c.push(f)}h.length=0}a=
0;for(e=this.K.length;a<e;a++)this.K[a].c.sort(n),this.K[a].bf=!0}m&&(this.b.hb(),this.b.Vo());for(a=0;a<c.length;a++)if(f=c[a],f.type.Kc)for(e=f.yg(),k=0,h=f.type.Qb.length;k<h;k++)l=f.type.Qb[k],f.type!==l&&(l.c.length>e?f.siblings.push(l.c[e]):l.Yc&&(m=this.b.Ae(l.Yc,f.d,!0,f.x,f.y,!0),this.b.hb(),l.Kj(),f.siblings.push(m),c.push(m)));a=0;for(e=this.Le.length;a<e;a++)this.b.Ae(this.Le[a],null,!0);this.b.xe=null;this.b.hb();if(this.b.ba&&!this.b.da)for(a=0,e=this.b.n.length;a<e;a++)l=this.b.n[a],
!l.B&&l.c.length&&l.hj&&l.hj(this.b.ba);a=0;for(e=c.length;a<e;a++)f=c[a],this.b.trigger(Object.getPrototypeOf(f.type.Ca).i.bq,f);c.length=0;this.b.trigger(Y.prototype.i.Cm,null);this.nf=!1};f.prototype.Xq=function(){var a,b,c,h,e;b=a=0;for(c=this.Le.length;a<c;a++)h=this.Le[a],e=this.b.n[h[1]],e.global?this.b.Ae(h,null,!0):(this.Le[b]=h,b++);this.Le.length=b};f.prototype.bu=function(){this.b.trigger(Y.prototype.i.oq,null);this.b.hd.Mb.length=0;var a,c,e,h,m,f;if(!this.nf)for(a=0,c=this.K.length;a<
c;a++)for(this.K[a].pm(),m=this.K[a].c,e=0,h=m.length;e<h;e++)f=m[e],f.type.global||this.b.lm(f.type)&&this.St(f);a=0;for(c=this.K.length;a<c;a++){m=this.K[a].c;e=0;for(h=m.length;e<h;e++)f=m[e],f.type.global||this.b.Pd(f);this.b.hb();m.length=0;this.K[a].bf=!0}a=0;for(c=this.b.n.length;a<c;a++)if(m=this.b.n[a],!(m.global||m.Ca.fe||m.Ca.rj||m.B)){e=0;for(h=m.c.length;e<h;e++)this.b.Pd(m.c[e]);this.b.hb()}b=!1};new S(0,0,0,0);f.prototype.Hc=function(a){var b,c=a,h=!1,e=!this.b.rc;e&&(this.b.Ki||(this.b.Ki=
document.createElement("canvas"),b=this.b.Ki,b.width=this.b.M,b.height=this.b.L,this.b.Vn=b.getContext("2d"),h=!0),b=this.b.Ki,c=this.b.Vn,b.width!==this.b.M&&(b.width=this.b.M,h=!0),b.height!==this.b.L&&(b.height=this.b.L,h=!0),h&&(c.webkitImageSmoothingEnabled=this.b.S,c.mozImageSmoothingEnabled=this.b.S,c.msImageSmoothingEnabled=this.b.S,c.imageSmoothingEnabled=this.b.S));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.b.Yj&&!this.yn()&&c.clearRect(0,0,this.b.M,this.b.L);var m,l,
h=0;for(m=this.K.length;h<m;h++)l=this.K[h],l.visible&&0<l.opacity&&11!==l.ub&&(l.c.length||!l.Md)?l.Hc(c):l.om();e&&a.drawImage(b,0,0,this.b.width,this.b.height)};f.prototype.Sb=function(a){var b=0<this.U.length||this.b.dg||!this.b.rc;if(b){this.b.Vb||(this.b.Vb=a.Yd(this.b.M,this.b.L,this.b.S));if(this.b.Vb.mg!==this.b.M||this.b.Vb.lg!==this.b.L)a.deleteTexture(this.b.Vb),this.b.Vb=a.Yd(this.b.M,this.b.L,this.b.S);a.fd(this.b.Vb);this.b.rc||a.Tf(this.b.M,this.b.L)}else this.b.Vb&&(a.fd(null),a.deleteTexture(this.b.Vb),
this.b.Vb=null);this.b.Yj&&!this.yn()&&a.clear(0,0,0,0);var c,h,e;c=0;for(h=this.K.length;c<h;c++)e=this.K[c],e.visible&&0<e.opacity&&(e.c.length||!e.Md)?e.Sb(a):e.om();b&&(0===this.U.length||1===this.U.length&&this.b.rc?(1===this.U.length?(b=this.U[0].index,a.gd(this.U[0].gb),a.Sf(null,1/this.b.M,1/this.b.L,0,0,1,1,this.scale,this.e,0,0,this.b.M/2,this.b.L/2,this.ua[b]),a.ij(this.U[0].gb)&&(this.b.ga=!0)):a.gd(0),this.b.rc||a.Tf(this.b.width,this.b.height),a.fd(null),a.Ye(1),a.$b(this.b.Vb),a.bp(),
a.ke(),a.se(),b=this.b.width/2,c=this.b.height/2,a.qh(-b,c,b,c,b,-c,-b,-c),a.$b(null)):this.Pl(a,null,null,null))};f.prototype.wg=function(){return 0<this.U.length||this.b.dg||!this.b.rc?this.b.Vb:null};f.prototype.vn=function(){var a=this.K[0].tc(),b,c,h;b=1;for(c=this.K.length;b<c;b++)h=this.K[b],(0!==h.Gb||0!==h.Hb)&&h.tc()<a&&(a=h.tc());return a};f.prototype.Zo=function(a){if(!this.xp){var b=1/this.vn()*this.b.M/2;a>this.width-b&&(a=this.width-b);a<b&&(a=b)}this.scrollX!==a&&(this.scrollX=a,this.b.ga=
!0)};f.prototype.$o=function(a){if(!this.xp){var b=1/this.vn()*this.b.L/2;a>this.height-b&&(a=this.height-b);a<b&&(a=b)}this.scrollY!==a&&(this.scrollY=a,this.b.ga=!0)};f.prototype.Qq=function(){this.Zo(this.scrollX);this.$o(this.scrollY)};f.prototype.Pl=function(a,b,c,h){var e=c?c.U:b?b.U:this.U,m=1,l=0,f=0,d=0,q=this.b.M,p=this.b.L;c?(m=c.d.tc(),l=c.d.Va(),f=c.d.xa,d=c.d.ya,q=c.d.Ka,p=c.d.Ja):b&&(m=b.tc(),l=b.Va(),f=b.xa,d=b.ya,q=b.Ka,p=b.Ja);var n=this.b.Ek,v,w,y,x,K=0,fa=1,W,E=this.b.M,s=this.b.L,
ua=E/2,N=s/2,F=b?b.rh:this.rh,D=b?b.Ol:this.Ol,G=0,H=0,C=0,O=0,J=E,ka=E,L=s,pa=s,da=y=0,sa=c?c.d.Va():0;if(c){v=0;for(w=e.length;v<w;v++)y+=a.ps(e[v].gb),da+=a.qs(e[v].gb);x=c.za;G=b.pb(x.left,x.top,!0,!0);C=b.pb(x.left,x.top,!1,!0);J=b.pb(x.right,x.bottom,!0,!0);L=b.pb(x.right,x.bottom,!1,!0);0!==sa&&(v=b.pb(x.right,x.top,!0,!0),w=b.pb(x.right,x.top,!1,!0),H=b.pb(x.left,x.bottom,!0,!0),O=b.pb(x.left,x.bottom,!1,!0),x=Math.min(G,J,v,H),J=Math.max(G,J,v,H),G=x,x=Math.min(C,L,w,O),L=Math.max(C,L,w,
O),C=x);G-=y;C-=da;J+=y;L+=da;D.left=G/E;D.top=1-C/s;D.right=J/E;D.bottom=1-L/s;H=G=Q(G);O=C=Q(C);ka=J=ra(J);pa=L=ra(L);H-=y;O-=da;ka+=y;pa+=da;0>G&&(G=0);0>C&&(C=0);J>E&&(J=E);L>s&&(L=s);0>H&&(H=0);0>O&&(O=0);ka>E&&(ka=E);pa>s&&(pa=s);F.left=G/E;F.top=1-C/s;F.right=J/E;F.bottom=1-L/s}else F.left=D.left=0,F.top=D.top=0,F.right=D.right=1,F.bottom=D.bottom=1;da=c&&((c.e||sa)&&a.oh(e[0].gb)||0!==y||0!==da||1!==c.opacity||c.type.Ca.uo)||b&&!c&&1!==b.opacity;a.bp();if(da){n[K]||(n[K]=a.Yd(E,s,this.b.S));
if(n[K].mg!==E||n[K].lg!==s)a.deleteTexture(n[K]),n[K]=a.Yd(E,s,this.b.S);a.gd(0);a.fd(n[K]);W=pa-O;a.clearRect(H,s-O-W,ka-H,W);c?c.Sb(a):(a.$b(this.b.jc),a.Ye(b.opacity),a.ke(),a.translate(-ua,-N),a.se(),a.Hd(G,L,J,L,J,C,G,C,F));D.left=D.top=0;D.right=D.bottom=1;c&&(x=F.top,F.top=F.bottom,F.bottom=x);K=1;fa=0}a.Ye(1);y=e.length-1;var sa=a.Kl(e[y].gb)||!b&&!c&&!this.b.rc,ba=0;v=0;for(w=e.length;v<w;v++){n[K]||(n[K]=a.Yd(E,s,this.b.S));if(n[K].mg!==E||n[K].lg!==s)a.deleteTexture(n[K]),n[K]=a.Yd(E,
s,this.b.S);a.gd(e[v].gb);ba=e[v].index;a.ij(e[v].gb)&&(this.b.ga=!0);0!=v||da?(a.Sf(h,1/E,1/s,D.left,D.top,D.right,D.bottom,m,l,f,d,(f+q)/2,(d+p)/2,c?c.ua[ba]:b?b.ua[ba]:this.ua[ba]),a.$b(null),v!==y||sa?(a.fd(n[K]),W=pa-O,x=s-O-W,a.clearRect(H,x,ka-H,W)):(c?a.le(c.lb,c.kb):b&&a.le(b.lb,b.kb),a.fd(h)),a.$b(n[fa]),a.ke(),a.translate(-ua,-N),a.se(),a.Hd(G,L,J,L,J,C,G,C,F),v!==y||sa||a.$b(null)):(a.fd(n[K]),W=pa-O,x=s-O-W,a.clearRect(H,x,ka-H,W),c?(a.Sf(h,1/c.width,1/c.height,D.left,D.top,D.right,D.bottom,
m,l,f,d,(f+q)/2,(d+p)/2,c.ua[ba]),c.Sb(a)):(a.Sf(h,1/E,1/s,0,0,1,1,m,l,f,d,(f+q)/2,(d+p)/2,b?b.ua[ba]:this.ua[ba]),a.$b(b?this.b.jc:this.b.Vb),a.ke(),a.translate(-ua,-N),a.se(),a.Hd(G,L,J,L,J,C,G,C,F)),D.left=D.top=0,D.right=D.bottom=1,c&&!sa&&(x=L,L=C,C=x));K=0===K?1:0;fa=0===K?1:0}sa&&(a.gd(0),c?a.le(c.lb,c.kb):b?a.le(b.lb,b.kb):this.b.rc||(a.Tf(this.b.width,this.b.height),ua=this.b.width/2,N=this.b.height/2,C=G=0,J=this.b.width,L=this.b.height),a.fd(h),a.$b(n[fa]),a.ke(),a.translate(-ua,-N),a.se(),
c&&1===e.length&&!da?a.Hd(G,C,J,C,J,L,G,L,F):a.Hd(G,L,J,L,J,C,G,C,F),a.$b(null))};f.prototype.oi=function(a){var b,c;b=0;for(c=this.K.length;b<c;b++)if(this.K[b].P===a)return this.K[b];return null};f.prototype.Zb=function(){var a,b,c,h={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.e,w:this.width,h:this.height,fv:this.nf,persist:this.ie,fx:[],layers:{}};a=0;for(b=this.H.length;a<b;a++)c=this.H[a],h.fx.push({name:c.name,active:c.Ua,params:this.ua[c.index]});a=0;for(b=this.K.length;a<b;a++)c=
this.K[a],h.layers[c.P.toString()]=c.Zb();return h};f.prototype.yc=function(a){var b,c,h,e;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.ie=a.persist;"undefined"!==typeof a.fv&&(this.nf=a.fv);var m=a.fx;b=0;for(c=m.length;b<c;b++)if(h=this.Ik(m[b].name))h.Ua=m[b].active,this.ua[h.index]=m[b].params;this.Nd();b=a.layers;for(e in b)b.hasOwnProperty(e)&&(a=this.oi(parseInt(e,10)))&&a.yc(b[e])};Ab=f;a.prototype.Nd=function(){this.U.length=0;var a,b,
c;a=0;for(b=this.H.length;a<b;a++)c=this.H[a],c.Ua&&this.U.push(c)};a.prototype.Ik=function(a){var b,c,h;b=0;for(c=this.H.length;b<c;b++)if(h=this.H[b],h.name===a)return h;return null};a.prototype.Yq=function(){var a,b,e,h,m,f;b=a=0;for(e=this.sf.length;a<e;a++){h=this.sf[a];m=this.b.n[h[1]];f=this.b.lm(m);m=!0;if(!f||this.Xa.nf)h=this.b.Ae(h,this,!0),c.push(h),h.type.global&&(m=!1);m&&(this.sf[b]=this.sf[a],b++)}this.sf.length=b;this.b.hb();!this.b.q&&this.H.length&&(this.ub=this.tr);this.ng=cb(this.ub);
this.b.m&&db(this,this.ub,this.b.m);this.Id=!0};a.prototype.Rf=function(a,b){var c=Aa(this.c,a);0>c||(b&&this.Tc&&a.Ib&&a.Ib.right>=a.Ib.left&&(a.ma(),this.Yb.update(a,a.Ib,null),a.Ib.set(0,0,-1,-1)),c===this.c.length-1?this.c.pop():(xa(this.c,c),this.vh(c)),this.Id=!0)};a.prototype.jg=function(a,b){a.Vc=this.c.length;this.c.push(a);b&&this.Tc&&a.Ib&&a.wa();this.Id=!0};a.prototype.Et=function(a){this.c.unshift(a);this.vh(0)};a.prototype.gt=function(a,b,c){var h=a.uc();b=b.uc();xa(this.c,h);h<b&&b--;
c&&b++;b===this.c.length?this.c.push(a):this.c.splice(b,0,a);this.vh(h<b?h:b)};a.prototype.vh=function(a){-1===this.Od?this.Od=a:a<this.Od&&(this.Od=a);this.Id=this.bf=!0};a.prototype.pm=function(){if(this.bf){-1===this.Od&&(this.Od=0);var a,b,c;if(this.Tc)for(a=this.Od,b=this.c.length;a<b;++a)c=this.c[a],c.Vc=a,this.Yb.bt(c.Ib);else for(a=this.Od,b=this.c.length;a<b;++a)this.c[a].Vc=a;this.bf=!1;this.Od=-1}};a.prototype.tc=function(a){return this.ms()*(this.b.rc||a?this.b.kg:1)};a.prototype.ms=function(){return(this.scale*
this.Xa.scale-1)*this.mb+1};a.prototype.Va=function(){return this.Ce?0:Ea(this.Xa.e+this.e)};var m=[],v=[],w=[];a.prototype.wn=function(){this.pm();this.Yb.jj(this.xa,this.ya,this.Ka,this.Ja,w);if(!w.length)return e();if(1===w.length){var a=e();ya(a,w[0]);w.length=0;return a}for(var b=!0;1<w.length;){for(var a=w,c=void 0,h=void 0,m=void 0,f=void 0,l=void 0,c=0,h=a.length;c<h-1;c+=2){var m=a[c],f=a[c+1],l=e(),B=m,d=f,n=l,p=0,z=0,M=0,X=B.length,y=d.length,x=void 0,K=void 0;for(n.length=X+y;p<X&&z<y;++M)x=
B[p],K=d[z],x.Vc<K.Vc?(n[M]=x,++p):(n[M]=K,++z);for(;p<X;++p,++M)n[M]=B[p];for(;z<y;++z,++M)n[M]=d[z];b||(q(m),q(f));v.push(l)}1===h%2&&(b?(m=e(),ya(m,a[h-1]),v.push(m)):v.push(a[h-1]));ya(a,v);v.length=0;b=!1}a=w[0];w.length=0;return a};a.prototype.Hc=function(a){this.je=this.Bk||1!==this.opacity||0!==this.ub;var b=this.b.canvas,c=a,h=!1;this.je&&(this.b.Ji||(this.b.Ji=document.createElement("canvas"),b=this.b.Ji,b.width=this.b.M,b.height=this.b.L,this.b.Un=b.getContext("2d"),h=!0),b=this.b.Ji,c=
this.b.Un,b.width!==this.b.M&&(b.width=this.b.M,h=!0),b.height!==this.b.L&&(b.height=this.b.L,h=!0),h&&(c.webkitImageSmoothingEnabled=this.b.S,c.mozImageSmoothingEnabled=this.b.S,c.msImageSmoothingEnabled=this.b.S,c.imageSmoothingEnabled=this.b.S),this.Md&&c.clearRect(0,0,this.b.M,this.b.L));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.Md||(c.fillStyle="rgb("+this.Vd[0]+","+this.Vd[1]+","+this.Vd[2]+")",c.fillRect(0,0,this.b.M,this.b.L));c.save();this.Ce=!0;var h=this.pa(0,0,!0,!0),
e=this.pa(0,0,!1,!0);this.Ce=!1;this.b.ed&&(h=Math.round(h),e=Math.round(e));this.Rl(h,e,c);var m=this.tc();c.scale(m,m);c.translate(-h,-e);this.Tc?(this.pc.left=this.Yb.cc(this.xa),this.pc.top=this.Yb.ec(this.ya),this.pc.right=this.Yb.cc(this.Ka),this.pc.bottom=this.Yb.ec(this.Ja),this.Id||!this.pc.di(this.Hi)?(q(this.Df),h=this.wn(),this.Id=!1,this.Hi.pg(this.pc)):h=this.Df):h=this.c;for(var l,f=null,e=0,m=h.length;e<m;++e)l=h[e],l!==f&&(this.qr(l,c),f=l);this.Tc&&(this.Df=h);c.restore();this.je&&
(a.globalCompositeOperation=this.ng,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};a.prototype.qr=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.ma();var c=a.za;c.right<this.xa||c.bottom<this.ya||c.left>this.Ka||c.top>this.Ja||(b.globalCompositeOperation=a.ng,a.Hc(b))}};a.prototype.om=function(){this.Ce=!0;var a=this.pa(0,0,!0,!0),b=this.pa(0,0,!1,!0);this.Ce=!1;this.b.ed&&(a=Math.round(a),b=Math.round(b));this.Rl(a,b,null)};a.prototype.Rl=function(a,b,c){var h=this.tc();this.xa=a;this.ya=
b;this.Ka=a+1/h*this.b.M;this.Ja=b+1/h*this.b.L;a=this.Va();0!==a&&(c&&(c.translate(this.b.M/2,this.b.L/2),c.rotate(-a),c.translate(this.b.M/-2,this.b.L/-2)),this.Ld.set(this.xa,this.ya,this.Ka,this.Ja),this.Ld.offset((this.xa+this.Ka)/-2,(this.ya+this.Ja)/-2),this.qp.fp(this.Ld,a),this.qp.Um(this.Ld),this.Ld.offset((this.xa+this.Ka)/2,(this.ya+this.Ja)/2),this.xa=this.Ld.left,this.ya=this.Ld.top,this.Ka=this.Ld.right,this.Ja=this.Ld.bottom)};a.prototype.Sb=function(a){var b=0,c=0;if(this.je=this.Bk||
1!==this.opacity||0<this.U.length||0!==this.ub){this.b.jc||(this.b.jc=a.Yd(this.b.M,this.b.L,this.b.S));if(this.b.jc.mg!==this.b.M||this.b.jc.lg!==this.b.L)a.deleteTexture(this.b.jc),this.b.jc=a.Yd(this.b.M,this.b.L,this.b.S);a.fd(this.b.jc);this.Md&&a.clear(0,0,0,0)}this.Md||a.clear(this.Vd[0]/255,this.Vd[1]/255,this.Vd[2]/255,1);this.Ce=!0;var h=this.pa(0,0,!0,!0),b=this.pa(0,0,!1,!0);this.Ce=!1;this.b.ed&&(h=Math.round(h),b=Math.round(b));this.Rl(h,b,null);h=this.tc();a.ke();a.scale(h,h);a.Xo(-this.Va());
a.translate((this.xa+this.Ka)/-2,(this.ya+this.Ja)/-2);a.se();this.Tc?(this.pc.left=this.Yb.cc(this.xa),this.pc.top=this.Yb.ec(this.ya),this.pc.right=this.Yb.cc(this.Ka),this.pc.bottom=this.Yb.ec(this.Ja),this.Id||!this.pc.di(this.Hi)?(q(this.Df),b=this.wn(),this.Id=!1,this.Hi.pg(this.pc)):b=this.Df):b=this.c;var e,m,l=null,c=0;for(e=b.length;c<e;++c)m=b[c],m!==l&&(this.rr(b[c],a),l=m);this.Tc&&(this.Df=b);this.je&&(b=this.U.length?this.U[0].gb:0,c=this.U.length?this.U[0].index:0,0===this.U.length||
1===this.U.length&&!a.Kl(b)&&1===this.opacity?(1===this.U.length?(a.gd(b),a.Sf(this.Xa.wg(),1/this.b.M,1/this.b.L,0,0,1,1,h,this.Va(),this.xa,this.ya,(this.xa+this.Ka)/2,(this.ya+this.Ja)/2,this.ua[c]),a.ij(b)&&(this.b.ga=!0)):a.gd(0),a.fd(this.Xa.wg()),a.Ye(this.opacity),a.$b(this.b.jc),a.le(this.lb,this.kb),a.ke(),a.se(),h=this.b.M/2,b=this.b.L/2,a.qh(-h,b,h,b,h,-b,-h,-b),a.$b(null)):this.Xa.Pl(a,this,null,this.Xa.wg()))};a.prototype.rr=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.ma();
var c=a.za;c.right<this.xa||c.bottom<this.ya||c.left>this.Ka||c.top>this.Ja||(a.Dp?this.sr(a,b):(b.gd(0),b.le(a.lb,a.kb),a.Sb(b)))}};a.prototype.sr=function(a,b){var c=a.U[0].gb,h=a.U[0].index,e=this.tc();if(1!==a.U.length||b.Kl(c)||b.Gt(c)||(a.e||a.d.Va())&&b.oh(c)||1!==a.opacity||a.type.Ca.uo)this.Xa.Pl(b,this,a,this.je?this.b.jc:this.Xa.wg()),b.ke(),b.scale(e,e),b.Xo(-this.Va()),b.translate((this.xa+this.Ka)/-2,(this.ya+this.Ja)/-2),b.se();else{b.gd(c);b.le(a.lb,a.kb);b.ij(c)&&(this.b.ga=!0);var m=
0,l=0,f=0,d=0;b.oh(c)&&(c=a.za,m=this.pb(c.left,c.top,!0,!0),l=this.pb(c.left,c.top,!1,!0),f=this.pb(c.right,c.bottom,!0,!0),c=this.pb(c.right,c.bottom,!1,!0),m/=windowWidth,l=1-l/windowHeight,f/=windowWidth,d=1-c/windowHeight);b.Sf(this.je?this.b.jc:this.Xa.wg(),1/a.width,1/a.height,m,l,f,d,e,this.Va(),this.xa,this.ya,(this.xa+this.Ka)/2,(this.ya+this.Ja)/2,a.ua[h]);a.Sb(b)}};a.prototype.pa=function(a,b,c,h){var e=this.b.devicePixelRatio;this.b.Ne&&(a*=e,b*=e);var e=this.b.Ko,m=this.b.Lo,e=(this.Xa.scrollX-
e)*this.Gb+e,m=(this.Xa.scrollY-m)*this.Hb+m,l=e,f=m,d=1/this.tc(!h);h?(l-=this.b.M*d/2,f-=this.b.L*d/2):(l-=this.b.width*d/2,f-=this.b.height*d/2);l+=a*d;f+=b*d;b=this.Va();0!==b&&(l-=e,f-=m,a=Math.cos(b),b=Math.sin(b),h=l*a-f*b,f=f*a+l*b,l=h+e,f+=m);return c?l:f};a.prototype.pb=function(a,b,c,h){var e=this.b.Ko,m=this.b.Lo,l=(this.Xa.scrollX-e)*this.Gb+e,f=(this.Xa.scrollY-m)*this.Hb+m,m=l,e=f,d=this.Va();if(0!==d){a-=l;b-=f;var q=Math.cos(-d),d=Math.sin(-d),p=a*q-b*d;b=b*q+a*d;a=p+l;b+=f}l=1/this.tc(!h);
h?(m-=this.b.M*l/2,e-=this.b.L*l/2):(m-=this.b.width*l/2,e-=this.b.height*l/2);m=(a-m)/l;e=(b-e)/l;a=this.b.devicePixelRatio;this.b.Ne&&!h&&(m/=a,e/=a);return c?m:e};a.prototype.Zb=function(){var a,b,c,h={s:this.scale,a:this.e,vl:this.xa,vt:this.ya,vr:this.Ka,vb:this.Ja,v:this.visible,bc:this.Vd,t:this.Md,px:this.Gb,py:this.Hb,o:this.opacity,zr:this.mb,fx:[],instances:[]};a=0;for(b=this.H.length;a<b;a++)c=this.H[a],h.fx.push({name:c.name,active:c.Ua,params:this.ua[c.index]});return h};a.prototype.yc=
function(a){var b,c;this.scale=a.s;this.e=a.a;this.xa=a.vl;this.ya=a.vt;this.Ka=a.vr;this.Ja=a.vb;this.visible=a.v;this.Vd=a.bc;this.Md=a.t;this.Gb=a.px;this.Hb=a.py;this.opacity=a.o;this.mb=a.zr;var h=a.fx;a=0;for(b=h.length;a<b;a++)if(c=this.Ik(h[a].name))c.Ua=h[a].active,this.ua[c.index]=h[a].params;this.Nd();this.c.sort(n);this.bf=!0};Ob=a})();
(function(){function f(a,b){var d,c=a.length;switch(c){case 0:return!0;case 1:return a[0]===b[0];case 2:return a[0]===b[0]&&a[1]===b[1];default:for(d=0;d<c;d++)if(a[d]!==b[d])return!1;return!0}}function n(a,b){return a.index-b.index}function a(a){var b,d,c,e;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(n);a.length>=h.length&&(h.length=a.length+1);h[a.length]||(h[a.length]=[]);e=h[a.length];b=0;for(d=e.length;b<d;b++)if(c=e[b],f(a,c))return c;e.push(a);return a}
function e(a,b){this.b=a;this.tp={};this.ln={};this.Tk=!1;this.Bn=new ca;this.pk=[];this.Zj=[];this.name=b[0];var d=b[1];this.ae=[];var c,h;c=0;for(h=d.length;c<h;c++)this.Dn(d[c],null,this.ae)}function q(a){this.type=a;this.c=[];this.V=[];this.ha=!0}function c(a,b,d){this.sheet=a;this.parent=b;this.b=a.b;this.la=[];this.me=[];this.zn=this.Fj=this.im=this.xi=this.group=this.lp=!1;this.jb=[];this.Ec=[];this.Cc=[];this.zg="";this.pf=this.xi=this.group=!1;this.Uh=null;d[1]&&(this.zg=d[1][1].toLowerCase(),
this.group=!0,this.xi=!!d[1][0],this.Uh=[],this.pf=this.xi,this.b.Td.push(this),this.b.ri[this.zg]=this);this.Mc=d[2];this.P=d[4];this.group||(this.b.Tm[this.P.toString()]=this);var c=d[5];a=0;for(b=c.length;a<b;a++){var h=new Pb(this,c[a]);h.index=a;this.jb.push(h);this.Om(h.type)}c=d[6];a=0;for(b=c.length;a<b;a++)h=new Qb(this,c[a]),h.index=a,this.Ec.push(h);if(8===d.length)for(d=d[7],a=0,b=d.length;a<b;a++)this.sheet.Dn(d[a],this,this.Cc);this.Ci=!1;this.jb.length&&(this.Ci=null==this.jb[0].type&&
this.jb[0].cb==Y.prototype.i.zm)}function b(a,b){var d,c,h;if(a&&(-1===b.indexOf(a)&&b.push(a),a.Kc))for(d=0,c=a.Qb.length;d<c;d++)h=a.Qb[d],a!==h&&-1===b.indexOf(h)&&b.push(h)}function m(a,b){this.fc=a;this.sheet=a.sheet;this.b=a.b;this.I=[];this.ea=[];this.va={};this.index=-1;this.hg=!1;this.cb=this.b.Qd(b[1]);this.trigger=0<b[3];this.kn=2===b[3];this.bd=b[4];this.tf=b[5];this.Ys=b[6];this.P=b[7];this.b.jf[this.P.toString()]=this;-1===b[0]?(this.type=null,this.Qa=this.Ul,this.we=null,this.mc=-1):
(this.type=this.b.n[b[0]],this.Qa=this.Ys?this.Qt:this.Tl,b[2]?(this.we=this.type.mi(b[2]),this.mc=this.type.Gk(b[2])):(this.we=null,this.mc=-1),this.fc.parent&&this.fc.parent.qj());this.kn&&(this.Qa=this.Rt);if(10===b.length){var d,c,h=b[9];d=0;for(c=h.length;d<c;d++){var e=new Rb(this,h[d]);this.I.push(e)}this.ea.length=h.length}}function v(a,b){this.fc=a;this.sheet=a.sheet;this.b=a.b;this.I=[];this.ea=[];this.va={};this.index=-1;this.hg=!1;this.cb=this.b.Qd(b[1]);-1===b[0]?(this.type=null,this.Qa=
this.Ul,this.we=null,this.mc=-1):(this.type=this.b.n[b[0]],this.Qa=this.Tl,b[2]?(this.we=this.type.mi(b[2]),this.mc=this.type.Gk(b[2])):(this.we=null,this.mc=-1));this.P=b[3];this.b.ff[this.P.toString()]=this;if(6===b.length){var d,c,h=b[5];d=0;for(c=h.length;d<c;d++){var e=new Rb(this,h[d]);this.I.push(e)}this.ea.length=h.length}}function w(a,b){this.k=a;this.fc=a.fc;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.Zc=null;this.ne=0;this.get=null;this.$m=0;this.Xa=null;this.key=0;this.object=null;
this.index=0;this.Fh=this.$e=this.Fh=this.$e=this.mn=this.Fe=this.Gh=null;this.Dc=!1;var d,c,h;switch(b[0]){case 0:case 7:this.Zc=new Sb(this,b[1]);this.ne=0;this.get=this.vs;break;case 1:this.Zc=new Sb(this,b[1]);this.ne=0;this.get=this.ws;break;case 5:this.Zc=new Sb(this,b[1]);this.ne=0;this.get=this.As;break;case 3:case 8:this.$m=b[1];this.get=this.ts;break;case 6:this.Xa=this.b.ll[b[1]];this.get=this.Bs;break;case 9:this.key=b[1];this.get=this.zs;break;case 4:this.object=this.b.n[b[1]];this.get=
this.Cs;this.fc.Om(this.object);this.k instanceof Qb?this.fc.qj():this.fc.parent&&this.fc.parent.qj();break;case 10:this.index=b[1];a.type.B?(this.get=this.xs,this.Dc=!0):this.get=this.ys;break;case 11:this.Gh=b[1];this.Fe=null;this.get=this.us;break;case 2:case 12:this.mn=b[1];this.get=this.ss;break;case 13:for(this.get=this.Ds,this.$e=[],this.Fh=[],d=1,c=b.length;d<c;d++)h=new Rb(this.k,b[d]),this.$e.push(h),this.Fh.push(0)}}function g(a,b,d){this.sheet=a;this.parent=b;this.b=a.b;this.la=[];this.name=
d[1];this.Mj=d[2];this.wi=d[3];this.Jg=!!d[4];this.Bi=!!d[5];this.P=d[6];this.b.fg[this.P.toString()]=this;this.data=this.wi;this.parent?(this.Ve=this.Jg||this.Bi?-1:this.b.$t++,this.b.Mq.push(this)):(this.Ve=-1,this.b.Wj.push(this))}function k(a,b,d){this.sheet=a;this.parent=b;this.b=a.b;this.la=[];this.Bg=null;this.Ks=d[1];this.Ua=!0}function r(){this.np=[];this.reset(null)}var h=[];e.prototype.toString=function(){return this.name};e.prototype.Dn=function(a,b,d){switch(a[0]){case 0:a=new Tb(this,
b,a);if(a.Mc)for(d.push(a),d=0,b=a.jb.length;d<b;d++)a.jb[d].trigger&&this.En(a,d);else a.Nn()?this.En(a,0):d.push(a);break;case 1:a=new Lb(this,b,a);d.push(a);break;case 2:a=new Ub(this,b,a),d.push(a)}};e.prototype.Da=function(){var a,b;a=0;for(b=this.ae.length;a<b;a++)this.ae[a].Da(a<b-1&&this.ae[a+1].Ci)};e.prototype.mm=function(){this.pk.length=0;this.Zj.length=0;this.Nm(this);this.Zj.length=0};e.prototype.Nm=function(a){var b,d,c,h,e=a.pk,m=a.Zj,k=this.Bn.Uc();b=0;for(d=k.length;b<d;++b)c=k[b],
h=c.Bg,!c.Ua||a===h||-1<m.indexOf(h)||(m.push(h),h.Nm(a),e.push(h))};e.prototype.Qa=function(a){this.b.Dv||(this.Tk=!0,a||(this.b.cl=!0));var b,d;b=0;for(d=this.ae.length;b<d;b++){var c=this.ae[b];c.Qa();this.b.ik(c.la);this.b.de&&this.b.hb()}a||(this.b.cl=!1)};e.prototype.En=function(a,b){a.Mc||this.b.Ij.push(a);var d,c,h=a.jb[b],e;e=h.type?h.type.name:"system";var m=(d=h.kn)?this.ln:this.tp;m[e]||(m[e]=[]);e=m[e];m=h.cb;if(d){if(h.I.length&&(h=h.I[0],1===h.type&&2===h.Zc.type)){h=h.Zc.value.toLowerCase();
d=0;for(c=e.length;d<c;d++)if(e[d].method==m){d=e[d].sg;d[h]?d[h].push([a,b]):d[h]=[[a,b]];return}d={};d[h]=[[a,b]];e.push({method:m,sg:d})}}else{d=0;for(c=e.length;d<c;d++)if(e[d].method==m){e[d].sg.push([a,b]);return}gc&&m===gc.prototype.i.ef?e.unshift({method:m,sg:[[a,b]]}):e.push({method:m,sg:[[a,b]]})}};Bb=e;q.prototype.Sk=function(){return this.ha?this.type.c.length:this.c.length};q.prototype.Ic=function(){return this.ha?this.type.c:this.c};q.prototype.nh=function(a){a&&(a.b.ob().Rb.Mc?(this.ha&&
(this.c.length=0,ya(this.V,a.type.c),this.ha=!1),a=this.V.indexOf(a),-1!==a&&(this.c.push(this.V[a]),this.V.splice(a,1))):(this.ha=!1,this.c.length=1,this.c[0]=a))};jb=q;window._c2hh_="028182FC3C1790C453899C06084DBCA3F631EAD1";c.prototype.Da=function(b){var c,d=this.parent;if(this.group)for(this.Fj=!0;d;){if(!d.group){this.Fj=!1;break}d=d.parent}this.im=!this.Nn()&&(!this.parent||this.parent.group&&this.parent.Fj);this.zn=!!b;this.me=this.la.slice(0);for(d=this.parent;d;){b=0;for(c=d.la.length;b<
c;b++)this.Jq(d.la[b]);d=d.parent}this.la=a(this.la);this.me=a(this.me);b=0;for(c=this.jb.length;b<c;b++)this.jb[b].Da();b=0;for(c=this.Ec.length;b<c;b++)this.Ec[b].Da();b=0;for(c=this.Cc.length;b<c;b++)this.Cc[b].Da(b<c-1&&this.Cc[b+1].Ci)};c.prototype.Vt=function(a){if(this.pf!==!!a){this.pf=!!a;var b;a=0;for(b=this.Uh.length;a<b;++a)this.Uh[a].zp();0<b&&this.b.Z.Ee&&this.b.Z.Ee.mm()}};c.prototype.Om=function(a){b(a,this.la)};c.prototype.Jq=function(a){b(a,this.me)};c.prototype.qj=function(){this.lp=
!0;this.parent&&this.parent.qj()};c.prototype.Nn=function(){return this.jb.length?this.jb[0].trigger:!1};c.prototype.Qa=function(){var a,b=!1,d,c=this.b,h=this.b.ob();h.Rb=this;var e=this.jb;this.Ci||(h.tk=!1);if(this.Mc){0===e.length&&(b=!0);h.Ab=0;for(a=e.length;h.Ab<a;h.Ab++)e[h.Ab].trigger||(d=e[h.Ab].Qa())&&(b=!0);(h.Re=b)&&this.Sl()}else{h.Ab=0;for(a=e.length;h.Ab<a;h.Ab++)if(d=e[h.Ab].Qa(),!d){h.Re=!1;this.im&&c.de&&c.hb();return}h.Re=!0;this.Sl()}this.wr(h)};c.prototype.wr=function(a){a.Re&&
this.zn&&(a.tk=!0);this.im&&this.b.de&&this.b.hb()};c.prototype.Ot=function(a){this.b.ob().Rb=this;this.jb[a].Qa()&&(this.Sl(),this.b.ob().Re=!0)};c.prototype.Sl=function(){var a=this.b.ob(),b;a.Nb=0;for(b=this.Ec.length;a.Nb<b;a.Nb++)if(this.Ec[a.Nb].Qa())return;this.Yo()};c.prototype.Mt=function(){var a=this.b.ob(),b;for(b=this.Ec.length;a.Nb<b;a.Nb++)if(this.Ec[a.Nb].Qa())return;this.Yo()};c.prototype.Yo=function(){if(this.Cc.length){var a,b,d,c,h=this.Cc.length-1;this.b.Ml(this);if(this.lp)for(a=
0,b=this.Cc.length;a<b;a++)d=this.Cc[a],(c=!this.Fj||!this.group&&a<h)&&this.b.Ll(d.la),d.Qa(),c?this.b.Qf(d.la):this.b.ik(d.la);else for(a=0,b=this.Cc.length;a<b;a++)this.Cc[a].Qa();this.b.Qo()}};c.prototype.Pt=function(){var a=this.b.ob();a.Rb=this;var b=!1,d;a.Ab=0;for(d=this.jb.length;a.Ab<d;a.Ab++)if(this.jb[a.Ab].Qa())b=!0;else if(!this.Mc)return!1;return this.Mc?b:!0};c.prototype.Ss=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.jb[b].type===a.type)return!1;return!0};
Tb=c;m.prototype.Da=function(){var a,b,d;a=0;for(b=this.I.length;a<b;a++)d=this.I[a],d.Da(),d.Dc&&(this.hg=!0)};m.prototype.Rt=function(){return!0};m.prototype.Ul=function(){var a,b;a=0;for(b=this.I.length;a<b;a++)this.ea[a]=this.I[a].get();return Sa(this.cb.apply(this.b.hd,this.ea),this.tf)};m.prototype.Qt=function(){var a,b;a=0;for(b=this.I.length;a<b;a++)this.ea[a]=this.I[a].get();a=this.cb.apply(this.we?this.we:this.type,this.ea);this.type.od();return a};m.prototype.Tl=function(){var a,b,d,c,
h,e,m,k,f=this.type,g=f.ca(),q=this.fc.Mc&&!this.trigger;b=0;var n=f.Kc,u=f.B,r=f.wd,t=this.mc,v=-1<t,w=this.hg,F=this.I,D=this.ea,G=this.tf,H=this.cb,C;if(w)for(b=0,h=F.length;b<h;++b)e=F[b],e.Dc||(D[b]=e.get(0));else for(b=0,h=F.length;b<h;++b)D[b]=F[b].get(0);if(g.ha){g.c.length=0;g.V.length=0;C=f.c;a=0;for(c=C.length;a<c;++a){k=C[a];if(w)for(b=0,h=F.length;b<h;++b)e=F[b],e.Dc&&(D[b]=e.get(a));v?(b=0,u&&(b=k.type.mf[r]),b=H.apply(k.G[t+b],D)):b=H.apply(k,D);(m=Sa(b,G))?g.c.push(k):q&&g.V.push(k)}f.finish&&
f.finish(!0);g.ha=!1;f.od();return g.Sk()}d=0;C=(m=q&&!this.fc.Ss(this))?g.V:g.c;var O=!1;a=0;for(c=C.length;a<c;++a){k=C[a];if(w)for(b=0,h=F.length;b<h;++b)e=F[b],e.Dc&&(D[b]=e.get(a));v?(b=0,u&&(b=k.type.mf[r]),b=H.apply(k.G[t+b],D)):b=H.apply(k,D);if(Sa(b,G))if(O=!0,m){if(g.c.push(k),n)for(b=0,h=k.siblings.length;b<h;b++)e=k.siblings[b],e.type.ca().c.push(e)}else{C[d]=k;if(n)for(b=0,h=k.siblings.length;b<h;b++)e=k.siblings[b],e.type.ca().c[d]=e;d++}else if(m){C[d]=k;if(n)for(b=0,h=k.siblings.length;b<
h;b++)e=k.siblings[b],e.type.ca().V[d]=e;d++}else if(q&&(g.V.push(k),n))for(b=0,h=k.siblings.length;b<h;b++)e=k.siblings[b],e.type.ca().V.push(e)}C.length=d;if(n)for(u=f.Qb,a=0,c=u.length;a<c;a++)k=u[a].ca(),m?k.V.length=d:k.c.length=d;d=O;if(m&&!O)for(a=0,c=g.c.length;a<c;a++){k=g.c[a];if(w)for(b=0,h=F.length;b<h;b++)e=F[b],e.Dc&&(D[b]=e.get(a));b=v?H.apply(k.G[t],D):H.apply(k,D);if(Sa(b,G)){O=!0;break}}f.finish&&f.finish(d||q);return q?O:g.Sk()};Pb=m;v.prototype.Da=function(){var a,b,d;a=0;for(b=
this.I.length;a<b;a++)d=this.I[a],d.Da(),d.Dc&&(this.hg=!0)};v.prototype.Ul=function(){var a,b;a=0;for(b=this.I.length;a<b;a++)this.ea[a]=this.I[a].get();return this.cb.apply(this.b.hd,this.ea)};v.prototype.Tl=function(){var a=this.type.ca().Ic(),b=this.type.B,d=this.type.wd,c=this.mc,h=-1<c,e=this.hg,m=this.I,k=this.ea,f=this.cb,g,q,n,u,r,t;if(e)for(q=0,u=m.length;q<u;++q)r=m[q],r.Dc||(k[q]=r.get(0));else for(q=0,u=m.length;q<u;++q)k[q]=m[q].get(0);g=0;for(n=a.length;g<n;++g){t=a[g];if(e)for(q=0,
u=m.length;q<u;++q)r=m[q],r.Dc&&(k[q]=r.get(g));h?(q=0,b&&(q=t.type.mf[d]),f.apply(t.G[c+q],k)):f.apply(t,k)}return!1};Qb=v;var u=[],t=-1;w.prototype.Da=function(){var a,b;if(11===this.type)this.Fe=this.b.sn(this.Gh,this.fc.parent);else if(13===this.type)for(a=0,b=this.$e.length;a<b;a++)this.$e[a].Da();this.Zc&&this.Zc.Da()};w.prototype.dt=function(a){this.Dc||!a||a.Ca.rj||(this.Dc=!0)};w.prototype.dp=function(){this.Dc=!0};w.prototype.Pa=function(){t++;u.length===t&&u.push(new Vb);return u[t]};w.prototype.Ia=
function(){t--};w.prototype.vs=function(a){this.ne=a||0;a=this.Pa();this.Zc.get(a);this.Ia();return a.data};w.prototype.ws=function(a){this.ne=a||0;a=this.Pa();this.Zc.get(a);this.Ia();return P(a.data)?a.data:""};w.prototype.Cs=function(){return this.object};w.prototype.ts=function(){return this.$m};w.prototype.As=function(a){this.ne=a||0;a=this.Pa();this.Zc.get(a);this.Ia();return a.Wa()?this.b.yd(a.data):this.b.vg(a.data)};w.prototype.Bs=function(){return this.Xa};w.prototype.zs=function(){return this.key};
w.prototype.ys=function(){return this.index};w.prototype.xs=function(a){a=a||0;var b=this.k.type,d=null,d=b.ca(),c=d.Ic();if(c.length)d=c[a%c.length].type;else if(d.V.length)d=d.V[a%d.V.length].type;else if(b.c.length)d=b.c[a%b.c.length].type;else return 0;return this.index+d.gi[b.wd]};w.prototype.us=function(){return this.Fe};w.prototype.ss=function(){return this.mn};w.prototype.Ds=function(){var a,b;a=0;for(b=this.$e.length;a<b;a++)this.Fh[a]=this.$e[a].get();return this.Fh};Rb=w;g.prototype.Da=
function(){this.la=a(this.la)};g.prototype.Ze=function(a){var b=this.b.rn();this.parent&&!this.Jg&&b?(this.Ve>=b.length&&(b.length=this.Ve+1),b[this.Ve]=a):this.data=a};g.prototype.xg=function(){var a=this.b.rn();return!this.parent||this.Jg||!a||this.Bi?this.data:this.Ve>=a.length||"undefined"===typeof a[this.Ve]?this.wi:a[this.Ve]};g.prototype.Qa=function(){!this.parent||this.Jg||this.Bi||this.Ze(this.wi)};Lb=g;k.prototype.toString=function(){return"include:"+this.Bg.toString()};k.prototype.Da=function(){this.Bg=
this.b.vk[this.Ks];this.sheet.Bn.add(this);this.la=a(this.la);for(var b=this.parent;b;)b.group&&b.Uh.push(this),b=b.parent;this.zp()};k.prototype.Qa=function(){this.parent&&this.b.ph(this.b.n);this.Bg.Tk||this.Bg.Qa(!0);this.parent&&this.b.Qf(this.b.n)};k.prototype.zp=function(){for(var a=this.parent;a;){if(a.group&&!a.pf){this.Ua=!1;return}a=a.parent}this.Ua=!0};Ub=k;r.prototype.reset=function(a){this.Rb=a;this.Nb=this.Ab=0;this.np.length=0;this.tk=this.Re=!1};Kb=r})();
(function(){function f(a,e){this.k=a;this.b=a.b;this.type=e[0];this.get=[this.Lr,this.Hr,this.Tr,this.Wr,this.Br,this.Ur,this.Pr,this.Er,this.Or,this.Sr,this.Cr,this.Rr,this.Fr,this.Qr,this.Mr,this.Nr,this.Ir,this.Jr,this.Dr,this.Vr,this.hn,this.Kr,this.hn,this.Gr][this.type];var f=null;this.Fb=this.I=this.ea=this.cb=this.Cj=this.$a=this.first=this.value=null;this.mc=-1;this.zd=null;this.tm=-1;this.Fe=this.Gh=null;this.sh=!1;switch(this.type){case 0:case 1:case 2:this.value=e[1];break;case 3:this.first=
new Sb(a,e[1]);break;case 18:this.first=new Sb(a,e[1]);this.$a=new Sb(a,e[2]);this.Cj=new Sb(a,e[3]);break;case 19:this.cb=this.b.Qd(e[1]);this.cb!==Y.prototype.Tb.random&&this.cb!==Y.prototype.Tb.Uq||this.k.dp();this.ea=[];this.I=[];3===e.length?(f=e[2],this.ea.length=f.length+1):this.ea.length=1;break;case 20:this.Fb=this.b.n[e[1]];this.mc=-1;this.cb=this.b.Qd(e[2]);this.sh=e[3];Xb.Function&&this.cb===Xb.Function.prototype.Tb.tu&&this.k.dp();this.zd=e[4]?new Sb(a,e[4]):null;this.ea=[];this.I=[];
6===e.length?(f=e[5],this.ea.length=f.length+1):this.ea.length=1;break;case 21:this.Fb=this.b.n[e[1]];this.sh=e[2];this.zd=e[3]?new Sb(a,e[3]):null;this.tm=e[4];break;case 22:this.Fb=this.b.n[e[1]];this.Fb.mi(e[2]);this.mc=this.Fb.Gk(e[2]);this.cb=this.b.Qd(e[3]);this.sh=e[4];this.zd=e[5]?new Sb(a,e[5]):null;this.ea=[];this.I=[];7===e.length?(f=e[6],this.ea.length=f.length+1):this.ea.length=1;break;case 23:this.Gh=e[1],this.Fe=null}this.k.dt(this.Fb);4<=this.type&&17>=this.type&&(this.first=new Sb(a,
e[1]),this.$a=new Sb(a,e[2]));if(f){var c,b;c=0;for(b=f.length;c<b;c++)this.I.push(new Sb(a,f[c]))}}function n(a,e){this.type=a||V.df;this.data=e||0;this.Kf=null;this.type==V.df&&(this.data=Math.floor(this.data))}f.prototype.Da=function(){23===this.type&&(this.Fe=this.k.b.sn(this.Gh,this.k.fc.parent));this.first&&this.first.Da();this.$a&&this.$a.Da();this.Cj&&this.Cj.Da();this.zd&&this.zd.Da();if(this.I){var a,e;a=0;for(e=this.I.length;a<e;a++)this.I[a].Da()}};f.prototype.Vr=function(a){this.ea[0]=
a;a=this.k.Pa();var e,f;e=0;for(f=this.I.length;e<f;e++)this.I[e].get(a),this.ea[e+1]=a.data;this.k.Ia();this.cb.apply(this.b.hd,this.ea)};f.prototype.hn=function(a){var e=this.Fb.ca(),f=e.Ic();if(!f.length)if(e.V.length)f=e.V;else{this.sh?a.kc(""):a.fa(0);return}this.ea[0]=a;a.Kf=this.Fb;a=this.k.Pa();var c,e=0;for(c=this.I.length;e<c;e++)this.I[e].get(a),this.ea[e+1]=a.data;e=this.k.ne;this.zd&&(this.zd.get(a),a.Wa()&&(e=a.data,f=this.Fb.c));this.k.Ia();e%=f.length;0>e&&(e+=f.length);f=f[e];-1<
this.mc?(a=0,this.Fb.B&&(a=f.type.mf[this.Fb.wd]),this.cb.apply(f.G[this.mc+a],this.ea)):this.cb.apply(f,this.ea)};f.prototype.Kr=function(a){var e=this.Fb.ca(),f=e.Ic();if(!f.length)if(e.V.length)f=e.V;else{this.sh?a.kc(""):a.fa(0);return}e=this.k.ne;if(this.zd){var c=this.k.Pa();this.zd.get(c);if(c.Wa()){e=c.data;f=this.Fb.c;e%=f.length;0>e&&(e+=f.length);f=f[e].La[this.tm];P(f)?a.kc(f):a.u(f);this.k.Ia();return}this.k.Ia()}e%=f.length;0>e&&(e+=f.length);f=f[e];e=0;this.Fb.B&&(e=f.type.gi[this.Fb.wd]);
f=f.La[this.tm+e];P(f)?a.kc(f):a.u(f)};f.prototype.Lr=function(a){a.type=V.df;a.data=this.value};f.prototype.Hr=function(a){a.type=V.cf;a.data=this.value};f.prototype.Tr=function(a){a.type=V.String;a.data=this.value};f.prototype.Wr=function(a){this.first.get(a);a.Wa()&&(a.data=-a.data)};f.prototype.Br=function(a){this.first.get(a);var e=this.k.Pa();this.$a.get(e);a.Wa()&&e.Wa()&&(a.data+=e.data,e.yf()&&a.Hf());this.k.Ia()};f.prototype.Ur=function(a){this.first.get(a);var e=this.k.Pa();this.$a.get(e);
a.Wa()&&e.Wa()&&(a.data-=e.data,e.yf()&&a.Hf());this.k.Ia()};f.prototype.Pr=function(a){this.first.get(a);var e=this.k.Pa();this.$a.get(e);a.Wa()&&e.Wa()&&(a.data*=e.data,e.yf()&&a.Hf());this.k.Ia()};f.prototype.Er=function(a){this.first.get(a);var e=this.k.Pa();this.$a.get(e);a.Wa()&&e.Wa()&&(a.data/=e.data,a.Hf());this.k.Ia()};f.prototype.Or=function(a){this.first.get(a);var e=this.k.Pa();this.$a.get(e);a.Wa()&&e.Wa()&&(a.data%=e.data,e.yf()&&a.Hf());this.k.Ia()};f.prototype.Sr=function(a){this.first.get(a);
var e=this.k.Pa();this.$a.get(e);a.Wa()&&e.Wa()&&(a.data=Math.pow(a.data,e.data),e.yf()&&a.Hf());this.k.Ia()};f.prototype.Cr=function(a){this.first.get(a);var e=this.k.Pa();this.$a.get(e);a.Wa()?e.Di()?a.kc(a.data.toString()+e.data):a.data&&e.data?a.fa(1):a.fa(0):a.Di()&&(a.data=e.Di()?a.data+e.data:a.data+(Math.round(1E10*e.data)/1E10).toString());this.k.Ia()};f.prototype.Rr=function(a){this.first.get(a);var e=this.k.Pa();this.$a.get(e);a.Wa()&&e.Wa()&&(a.data||e.data?a.fa(1):a.fa(0));this.k.Ia()};
f.prototype.Dr=function(a){this.first.get(a);a.data?this.$a.get(a):this.Cj.get(a)};f.prototype.Fr=function(a){this.first.get(a);var e=this.k.Pa();this.$a.get(e);a.fa(a.data===e.data?1:0);this.k.Ia()};f.prototype.Qr=function(a){this.first.get(a);var e=this.k.Pa();this.$a.get(e);a.fa(a.data!==e.data?1:0);this.k.Ia()};f.prototype.Mr=function(a){this.first.get(a);var e=this.k.Pa();this.$a.get(e);a.fa(a.data<e.data?1:0);this.k.Ia()};f.prototype.Nr=function(a){this.first.get(a);var e=this.k.Pa();this.$a.get(e);
a.fa(a.data<=e.data?1:0);this.k.Ia()};f.prototype.Ir=function(a){this.first.get(a);var e=this.k.Pa();this.$a.get(e);a.fa(a.data>e.data?1:0);this.k.Ia()};f.prototype.Jr=function(a){this.first.get(a);var e=this.k.Pa();this.$a.get(e);a.fa(a.data>=e.data?1:0);this.k.Ia()};f.prototype.Gr=function(a){var e=this.Fe.xg();ia(e)?a.u(e):a.kc(e)};Sb=f;n.prototype.yf=function(){return this.type===V.cf};n.prototype.Wa=function(){return this.type===V.df||this.type===V.cf};n.prototype.Di=function(){return this.type===
V.String};n.prototype.Hf=function(){this.yf()||(this.Di()&&(this.data=parseFloat(this.data)),this.type=V.cf)};n.prototype.fa=function(a){this.type=V.df;this.data=Math.floor(a)};n.prototype.u=function(a){this.type=V.cf;this.data=a};n.prototype.kc=function(a){this.type=V.String;this.data=a};n.prototype.Zt=function(a){ia(a)?(this.type=V.cf,this.data=a):P(a)?(this.type=V.String,this.data=a.toString()):(this.type=V.df,this.data=0)};Vb=n;V={df:0,cf:1,String:2}})();function Y(f){this.b=f;this.Mb=[]}
Y.prototype.Zb=function(){var f={},n,a,e,q,c,b,m,v;f.waits=[];var w=f.waits,g;n=0;for(a=this.Mb.length;n<a;n++){b=this.Mb[n];g={t:b.time,st:b.kp,s:b.Zl,ev:b.lf.P,sm:[],sols:{}};b.lf.Ec[b.Nb]&&(g.act=b.lf.Ec[b.Nb].P);e=0;for(q=b.la.length;e<q;e++)g.sm.push(b.la[e].P);for(c in b.tb)if(b.tb.hasOwnProperty(c)){m=this.b.n[parseInt(c,10)];v={sa:b.tb[c].nj,insts:[]};e=0;for(q=b.tb[c].Ad.length;e<q;e++)v.insts.push(b.tb[c].Ad[e].uid);g.sols[m.P.toString()]=v}w.push(g)}return f};
Y.prototype.yc=function(f){f=f.waits;var n,a,e,q,c,b,m,v,w,g,k;n=this.Mb.length=0;for(a=f.length;n<a;n++)if(b=f[n],v=this.b.Tm[b.ev.toString()]){w=-1;e=0;for(q=v.Ec.length;e<q;e++)if(v.Ec[e].P===b.act){w=e;break}if(-1!==w){m={tb:{},la:[],qk:!1};m.time=b.t;m.kp=b.st||"";m.Zl=!!b.s;m.lf=v;m.Nb=w;e=0;for(q=b.sm.length;e<q;e++)(v=this.b.qi(b.sm[e]))&&m.la.push(v);for(c in b.sols)if(b.sols.hasOwnProperty(c)&&(v=this.b.qi(parseInt(c,10)))){w=b.sols[c];g={nj:w.sa,Ad:[]};e=0;for(q=w.insts.length;e<q;e++)(k=
this.b.pi(w.insts[e]))&&g.Ad.push(k);m.tb[v.index.toString()]=g}this.Mb.push(m)}}};
(function(){function f(){}function n(){}function a(){}var e=Y.prototype;f.prototype.Cm=function(){return!0};f.prototype.oq=function(){return!0};f.prototype.Cq=function(){var a=this.b.ni().va;"undefined"===typeof a.TriggerOnce_lastTick&&(a.TriggerOnce_lastTick=-1);var c=a.TriggerOnce_lastTick,e=this.b.$f;a.TriggerOnce_lastTick=e;return this.b.kl||c!==e-1};f.prototype.Kp=function(a,c,e){return Wb(a.xg(),c,e)};f.prototype.zm=function(){var a=this.b.ob();return a.tk?!1:!a.Re};f.prototype.Dm=function(){return!0};
f.prototype.aq=function(){return!0};f.prototype.Tj=function(){return!0};f.prototype.pq=function(){return!0};f.prototype.Rj=function(){return!0};f.prototype.Gp=function(a,c,e){return Ja(T(a),T(e))<=T(c)};f.prototype.Op=function(a,c){return Pa(T(a),T(c))};f.prototype.Mp=function(a,c,e){a=Ha(a);c=Ha(c);e=Ha(e);return Pa(e,c)?Pa(a,c)&&!Pa(a,e):!(!Pa(a,c)&&Pa(a,e))};e.i=new f;n.prototype.Wp=function(a){if(!this.b.Bf&&!this.b.xe){var c=this.b.Wb.indexOf(this.b.Z);if(!a||0!==c)if(a||c!==this.b.Wb.length-
1)this.b.xe=this.b.Wb[c+(a?-1:1)]}};n.prototype.Aq=function(a,c){0===a.Mj?ia(c)?a.Ze(c):a.Ze(parseFloat(c)):1===a.Mj&&a.Ze(c.toString())};n.prototype.Fp=function(a,c){0===a.Mj?ia(c)?a.Ze(a.xg()+c):a.Ze(a.xg()+parseFloat(c)):1===a.Mj&&a.Ze(a.xg()+c.toString())};var q=[],c=[];n.prototype.Dq=function(a){if(!(0>a)){var e,f,n,g=this.b.ob(),k;k=q.length?q.pop():{tb:{},la:[]};k.qk=!1;k.time=this.b.ic.aa+a;k.kp="";k.Zl=!1;k.lf=g.Rb;k.Nb=g.Nb+1;a=0;for(e=this.b.n.length;a<e;a++)n=this.b.n[a],f=n.ca(),f.ha&&
-1===g.Rb.la.indexOf(n)||(k.la.push(n),n=void 0,n=c.length?c.pop():{Ad:[]},n.nj=!1,n.nj=f.ha,ya(n.Ad,f.c),k.tb[a.toString()]=n);this.Mb.push(k);return!0}};n.prototype.uq=function(){var a,c,e;a=0;for(c=this.b.Wj.length;a<c;a++)e=this.b.Wj[a],e.data=e.wi};n.prototype.vq=function(){if(!this.b.Bf&&!this.b.xe&&this.b.Z){this.b.xe=this.b.Z;var a,c,e;a=0;for(c=this.b.Td.length;a<c;a++)e=this.b.Td[a],e.Vt(e.xi)}};n.prototype.wq=function(a){this.b.oj=a};n.prototype.Vp=function(a){this.b.Rg=a};e.na=new n;a.prototype["int"]=
function(a,c){P(c)?(a.fa(parseInt(c,10)),isNaN(a.data)&&(a.data=0)):a.fa(c)};a.prototype["float"]=function(a,c){P(c)?(a.u(parseFloat(c)),isNaN(a.data)&&(a.data=0)):a.u(c)};a.prototype.random=function(a,c,e){void 0===e?a.u(Math.random()*c):a.u(Math.random()*(e-c)+c)};a.prototype.sqrt=function(a,c){a.u(Math.sqrt(c))};a.prototype.abs=function(a,c){a.u(Math.abs(c))};a.prototype.round=function(a,c){a.fa(Math.round(c))};a.prototype.floor=function(a,c){a.fa(Math.floor(c))};a.prototype.ceil=function(a,c){a.fa(Math.ceil(c))};
a.prototype.sin=function(a,c){a.u(Math.sin(T(c)))};a.prototype.cos=function(a,c){a.u(Math.cos(T(c)))};a.prototype.tan=function(a,c){a.u(Math.tan(T(c)))};a.prototype.asin=function(a,c){a.u(Ca(Math.asin(c)))};a.prototype.acos=function(a,c){a.u(Ca(Math.acos(c)))};a.prototype.atan=function(a,c){a.u(Ca(Math.atan(c)))};a.prototype.exp=function(a,c){a.u(Math.exp(c))};a.prototype.log10=function(a,c){a.u(Math.log(c)/Math.LN10)};a.prototype.max=function(a){var c=arguments[1];"number"!==typeof c&&(c=0);var e,
f,g;e=2;for(f=arguments.length;e<f;e++)g=arguments[e],"number"===typeof g&&c<g&&(c=g);a.u(c)};a.prototype.min=function(a){var c=arguments[1];"number"!==typeof c&&(c=0);var e,f,g;e=2;for(f=arguments.length;e<f;e++)g=arguments[e],"number"===typeof g&&c>g&&(c=g);a.u(c)};a.prototype.De=function(a){a.u(this.b.De)};a.prototype.ag=function(a){a.u(this.b.ag)};a.prototype.time=function(a){a.u(this.b.ic.aa)};a.prototype.$f=function(a){a.fa(this.b.$f)};a.prototype.Ui=function(a){a.fa(this.b.Ui)};a.prototype.Ck=
function(a){a.fa(this.b.Ck)};a.prototype.e=function(a,c,e,f,g){a.u(Ca(Ia(c,e,f,g)))};a.prototype.find=function(a,c,e){P(c)&&P(e)?a.fa(c.search(new RegExp(Za(e),"i"))):a.fa(-1)};a.prototype.left=function(a,c,e){a.kc(P(c)?c.substr(0,e):"")};a.prototype.right=function(a,c,e){a.kc(P(c)?c.substr(c.length-e):"")};a.prototype.replace=function(a,c,e,f){P(c)&&P(e)&&P(f)?a.kc(c.replace(new RegExp(Za(e),"gi"),f)):a.kc(P(c)?c:"")};a.prototype.trim=function(a,c){a.kc(P(c)?c.trim():"")};a.prototype.Uq=function(a){var c=
Q(Math.random()*(arguments.length-1));a.Zt(arguments[c+1])};a.prototype.kk=function(a){a.u(this.b.kk/1E3)};a.prototype.Oi=function(a){a.u(this.b.Oi)};e.Tb=new a;e.Nt=function(){var a,e,f,n,g,k,r=this.b.ob();a=0;for(f=this.Mb.length;a<f;a++){n=this.Mb[a];if(-1===n.time){if(!n.Zl)continue}else if(n.time>this.b.ic.aa)continue;r.Rb=n.lf;r.Nb=n.Nb;r.Ab=0;for(e in n.tb)n.tb.hasOwnProperty(e)&&(g=this.b.n[parseInt(e,10)].ca(),k=n.tb[e],g.ha=k.nj,ya(g.c,k.Ad),g=k,g.Ad.length=0,c.push(g));n.lf.Mt();this.b.ik(n.la);
n.qk=!0}e=a=0;for(f=this.Mb.length;a<f;a++)n=this.Mb[a],this.Mb[e]=n,n.qk?(Ua(n.tb),n.la.length=0,q.push(n)):e++;this.Mb.length=e}})();
(function(){ib=function(f,a){var e=f[1],q=f[3],c=f[4],b=f[5],m=f[6],v=f[7],w=f[8];a.i||(a.i={});a.na||(a.na={});a.Tb||(a.Tb={});var g=a.i,k=a.na,r=a.Tb;q&&(g.yu=function(a,b){return Wb(this.x,a,b)},g.zu=function(a,b){return Wb(this.y,a,b)},g.Fu=function(){var a=this.d;this.ma();var b=this.za;return!(b.right<a.xa||b.bottom<a.ya||b.left>a.Ka||b.top>a.Ja)},g.Gu=function(){this.ma();var a=this.za,b=this.b.Z;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},g.Ru=function(a,b,c){var e=this.ca(),
f=e.Ic();if(!f.length)return!1;var d=f[0],k=d,g=Ra(d.x,d.y,b,c),m,q,n;m=1;for(q=f.length;m<q;m++)if(d=f[m],n=Ra(d.x,d.y,b,c),0===a&&n<g||1===a&&n>g)g=n,k=d;e.nh(k);return!0},k.kv=function(a){this.x!==a&&(this.x=a,this.wa())},k.lv=function(a){this.y!==a&&(this.y=a,this.wa())},k.zq=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.wa()},k.gv=function(a,b){var c=a.ns(this);if(c){var e;c.Kk?(e=c.Kk(b,!0),c=c.Kk(b,!1)):(e=c.x,c=c.y);if(this.x!==e||this.y!==c)this.x=e,this.y=c,this.wa()}},
k.Ku=function(a){0!==a&&(this.x+=Math.cos(this.e)*a,this.y+=Math.sin(this.e)*a,this.wa())},k.Ju=function(a,b){0!==b&&(this.x+=Math.cos(T(a))*b,this.y+=Math.sin(T(a))*b,this.wa())},r.Im=function(a){a.u(this.x)},r.Jm=function(a){a.u(this.y)},r.De=function(a){a.u(this.b.Hk(this))});c&&(g.xu=function(a,b){return Wb(this.width,a,b)},g.uu=function(a,b){return Wb(this.height,a,b)},k.jv=function(a){this.width!==a&&(this.width=a,this.wa())},k.cv=function(a){this.height!==a&&(this.height=a,this.wa())},k.hv=
function(a,b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.wa()},r.pv=function(a){a.u(this.width)},r.Bu=function(a){a.u(this.height)},r.qu=function(a){this.ma();a.u(this.za.left)},r.su=function(a){this.ma();a.u(this.za.top)},r.ru=function(a){this.ma();a.u(this.za.right)},r.pu=function(a){this.ma();a.u(this.za.bottom)});b&&(g.Gp=function(a,b){return Ja(this.e,T(b))<=T(a)},g.Op=function(a){return Pa(this.e,T(a))},g.Mp=function(a,b){var c=Ha(a),e=Ha(b),f=Ea(this.e);return Pa(e,
c)?Pa(f,c)&&!Pa(f,e):!(!Pa(f,c)&&Pa(f,e))},k.Zu=function(a){a=T(Da(a));isNaN(a)||this.e===a||(this.e=a,this.wa())},k.Vu=function(a){0===a||isNaN(a)||(this.e+=T(a),this.e=Ea(this.e),this.wa())},k.Wu=function(a){0===a||isNaN(a)||(this.e-=T(a),this.e=Ea(this.e),this.wa())},k.Xu=function(a,b){var c=Ka(this.e,T(b),T(a));isNaN(c)||this.e===c||(this.e=c,this.wa())},k.Yu=function(a,b,c){a=Ka(this.e,Math.atan2(c-this.y,b-this.x),T(a));isNaN(a)||this.e===a||(this.e=a,this.wa())},k.iv=function(a,b){var c=Math.atan2(b-
this.y,a-this.x);isNaN(c)||this.e===c||(this.e=c,this.wa())},r.ou=function(a){a.u(Fa(this.e))});e||(g.vu=function(a,b,c){return Wb(this.La[a],b,c)},g.Du=function(a){return this.La[a]},g.Su=function(a,b){var c=this.ca(),e=c.Ic();if(!e.length)return!1;var f=e[0],d=f,k=f.La[b],g,m,q;g=1;for(m=e.length;g<m;g++)if(f=e[g],q=f.La[b],0===a&&q<k||1===a&&q>k)k=q,d=f;c.nh(d);return!0},g.Qu=function(a){var b,c,e,f,d;if(this.b.ni().tf){d=this.ca();if(d.ha)for(d.ha=!1,d.c.length=0,d.V.length=0,e=this.c,b=0,c=e.length;b<
c;b++)f=e[b],f.uid===a?d.V.push(f):d.c.push(f);else{e=b=0;for(c=d.c.length;b<c;b++)f=d.c[b],d.c[e]=f,f.uid===a?d.V.push(f):e++;d.c.length=e}this.od();return!!d.c.length}f=this.b.pi(a);if(!f)return!1;d=this.ca();if(!d.ha&&-1===d.c.indexOf(f))return!1;if(this.B)for(a=f.type.qa,b=0,c=a.length;b<c;b++){if(a[b]===this)return d.nh(f),this.od(),!0}else if(f.type===this)return d.nh(f),this.od(),!0;return!1},g.bq=function(){return!0},g.cq=function(){return!0},k.dv=function(a,b){var c=this.La;ia(c[a])?c[a]=
ia(b)?b:parseFloat(b):P(c[a])&&(c[a]=P(b)?b:b.toString())},k.nu=function(a,b){var c=this.La;ia(c[a])?c[a]=ia(b)?c[a]+b:c[a]+parseFloat(b):P(c[a])&&(c[a]=P(b)?c[a]+b:c[a]+b.toString())},k.mv=function(a,b){var c=this.La;ia(c[a])&&(c[a]=ia(b)?c[a]-b:c[a]-parseFloat(b))},k.$u=function(a,b){this.La[a]=b?1:0},k.nv=function(a){this.La[a]=1-this.La[a]},k.Lp=function(){this.b.Pd(this)},k.Up||(k.Up=function(a){var b,c;try{b=JSON.parse(a)}catch(e){return}this.b.Li(this,b,!0);this.md&&this.md();if(this.G)for(a=
0,b=this.G.length;a<b;++a)c=this.G[a],c.md&&c.md()}),r.Au=function(a){var b=a.Kf.c.length,c,e,f;c=0;for(e=this.b.Gc.length;c<e;c++)f=this.b.Gc[c],a.Kf.B?0<=f.type.qa.indexOf(a.Kf)&&b++:f.type===a.Kf&&b++;a.fa(b)},r.Uu=function(a){a.fa(a.Kf.ca().Ic().length)},r.ov=function(a){a.fa(this.uid)},r.Cu=function(a){a.fa(this.yg())},r.Hp||(r.Hp=function(a){a.kc(JSON.stringify(this.b.Vl(this,!0)))}));m&&(g.Sp=function(){return this.visible},k.Bq=function(a){!a!==!this.visible&&(this.visible=a,this.b.ga=!0)},
g.wu=function(a,b){return Wb(eb(100*this.opacity),a,b)},k.yq=function(a){a/=100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.ga=!0)},r.Opacity=function(a){a.u(eb(100*this.opacity))});v&&(g.Eu=function(a){return a?this.d===a:!1},g.Tu=function(a){var b=this.ca(),c=b.Ic();if(!c.length)return!1;var e=c[0],f=e,d,k;d=1;for(k=c.length;d<k;d++)if(e=c[d],0===a){if(e.d.index>f.d.index||e.d.index===f.d.index&&e.uc()>f.uc())f=e}else if(e.d.index<f.d.index||e.d.index===f.d.index&&e.uc()<f.uc())f=
e;b.nh(f);return!0},k.Nu=function(){var a=this.d,b=a.c;b.length&&b[b.length-1]===this||(a.Rf(this,!1),a.jg(this,!1),this.b.ga=!0)},k.Lu=function(){var a=this.d,b=a.c;b.length&&b[0]===this||(a.Rf(this,!1),a.Et(this),this.b.ga=!0)},k.Mu=function(a){a&&a!=this.d&&(this.d.Rf(this,!0),this.d=a,a.jg(this,!0),this.b.ga=!0)},k.rv=function(a,b){var c=0===a;if(b){var e=b.hs(this);e&&e.uid!==this.uid&&(this.d.index!==e.d.index&&(this.d.Rf(this,!0),this.d=e.d,e.d.jg(this,!0)),this.d.gt(this,e,c),this.b.ga=!0)}},
r.Iu=function(a){a.fa(this.d.yo)},r.Hu=function(a){a.kc(this.d.name)},r.qv=function(a){a.fa(this.uc())});w&&(k.av=function(a,b){if(this.b.q){var c=this.type.Jk(b);if(!(0>c)){var e=1===a;this.Rd[c]!==e&&(this.Rd[c]=e,this.Nd(),this.b.ga=!0)}}},k.bv=function(a,b,c){if(this.b.q){var e=this.type.Jk(a);0>e||(a=this.type.H[e],e=this.ua[e],b=Math.floor(b),0>b||b>=e.length||(1===this.b.q.rs(a.gb,b)&&(c/=100),e[b]!==c&&(e[b]=c,a.Ua&&(this.b.ga=!0))))}})};Cb=function(){this.dk=this.Oh=!0;this.type.Ih=!0;this.b.ga=
!0;var f,a,e=this.bk;f=0;for(a=e.length;f<a;++f)e[f](this);this.d.Tc&&this.ma()};Db=function(f){f&&this.bk.push(f)};Fb=function(){if(this.Oh){var f=this.za,a=this.Pb;f.set(this.x,this.y,this.x+this.width,this.y+this.height);f.offset(-this.Cb*this.width,-this.Db*this.height);this.e?(f.offset(-this.x,-this.y),a.fp(f,this.e),a.offset(this.x,this.y),a.Um(f)):a.Vf(f);f.normalize();this.Oh=!1;this.ju()}};var f=new S(0,0,0,0);Gb=function(){if(this.d.Tc){var n=this.d.Yb,a=this.za;f.set(n.cc(a.left),n.ec(a.top),
n.cc(a.right),n.ec(a.bottom));this.Ib.di(f)||(this.Ib.right<this.Ib.left?n.update(this,null,f):n.update(this,this.Ib,f),this.Ib.pg(f),this.d.Id=!0)}};Hb=function(){if(this.dk&&this.ye){this.ma();var n=this.type.Th,a=this.za;f.set(n.cc(a.left),n.ec(a.top),n.cc(a.right),n.ec(a.bottom));this.Xd.di(f)||(this.Xd.right<this.Xd.left?n.update(this,null,f):n.update(this,this.Xd,f),this.Xd.pg(f),this.dk=!1)}};Eb=function(f,a){return this.za.bb(f,a)&&this.Pb.bb(f,a)?this.W&&!this.W.xf()?(this.W.hf(this.width,
this.height,this.e),this.W.bb(f-this.x,a-this.y)):!0:!1};yb=function(){this.type.Kj();return this.Ke};Ib=function(){this.d.pm();return this.Vc};Jb=function(){this.U.length=0;var f,a;f=0;for(a=this.Rd.length;f<a;f++)this.Rd[f]&&this.U.push(this.type.H[f]);this.Dp=!!this.U.length};zb=function(){return"Inst"+this.Uo};lb=function(f){if(f&&f.Kc&&f.type!=this){var a,e,q;a=0;for(e=f.siblings.length;a<e;a++)if(q=f.siblings[a],q.type==this)return q}f=this.ca().Ic();return f.length?f[0]:null};mb=function(f){var a=
this.ca().Ic();return a.length?a[f.yg()%a.length]:null};kb=function(){if(this.Yf&&!this.B){var f,a;f=0;for(a=this.c.length;f<a;f++)this.c[f].Ke=f;var e=f,q=this.b.Gc;f=0;for(a=q.length;f<a;++f)q[f].type===this&&(q[f].Ke=e++);this.Yf=!1}};wb=function(f){if(f<this.c.length)return this.c[f];f-=this.c.length;var a=this.b.Gc,e,q;e=0;for(q=a.length;e<q;++e)if(a[e].type===this){if(0===f)return a[e];--f}return null};nb=function(){return this.oe[this.td]};ob=function(){this.td++;this.td===this.oe.length?this.oe.push(new jb(this)):
this.oe[this.td].ha=!0};qb=function(){this.td++;this.td===this.oe.length&&this.oe.push(new jb(this));var f=this.oe[this.td],a=this.oe[this.td-1];a.ha?f.ha=!0:(f.ha=!1,ya(f.c,a.c),ya(f.V,a.V))};rb=function(){this.td--};sb=function(f){var a,e,q,c,b,m=0;if(!this.B)for(a=0,e=this.qa.length;a<e;a++)for(b=this.qa[a],q=0,c=b.Fa.length;q<c;q++){if(f===b.Fa[q].name)return this.va.lastBehIndex=m,b.Fa[q];m++}a=0;for(e=this.Fa.length;a<e;a++){if(f===this.Fa[a].name)return this.va.lastBehIndex=m,this.Fa[a];m++}return null};
tb=function(f){return this.mi(f)?this.va.lastBehIndex:-1};ub=function(f){var a,e;a=0;for(e=this.H.length;a<e;a++)if(this.H[a].name===f)return a;return-1};vb=function(){if(this.Kc&&!this.B){var f,a,e,q,c,b,m;this.Kj();b=this.ca();var v=b.ha,w=(f=this.b.ob())&&f.Rb&&f.Rb.Mc;f=0;for(a=this.Qb.length;f<a;f++)if(c=this.Qb[f],c!==this&&(c.Kj(),m=c.ca(),m.ha=v,!v)){m.c.length=b.c.length;e=0;for(q=b.c.length;e<q;e++)m.c[e]=c.tn(b.c[e].Ke);if(w)for(m.V.length=b.V.length,e=0,q=b.V.length;e<q;e++)m.V[e]=c.tn(b.V[e].Ke)}}};
xb=function(){return"Type"+this.P};Wb=function(f,a,e){if("undefined"===typeof f||"undefined"===typeof e)return!1;switch(a){case 0:return f===e;case 1:return f!==e;case 2:return f<e;case 3:return f<=e;case 4:return f>e;case 5:return f>=e;default:return!1}}})();var ec={};function hc(f){this.b=f}
(function(){function f(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function n(a){a=a.toLowerCase();return R.hasOwnProperty(a)&&R[a].length?R[a][0].gc():s.destination}function a(){return s.createGain?s.createGain():s.createGainNode()}function e(a){return s.createDelay?s.createDelay(a):s.createDelayNode(a)}function q(a){a.start?a.start(0):a.noteOn(0)}function c(a,b,c){a.start?a.start(0,b):a.noteGrainOn(0,b,c-b)}function b(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}function m(b,
c,d,e,f,h){this.type="filter";this.Nc=[b,c,d,e,f,h];this.R=a();this.F=a();this.F.gain.value=h;this.C=a();this.C.gain.value=1-h;this.Ga=s.createBiquadFilter();this.Ga.type="number"===typeof this.Ga.type?b:oc[b];this.Ga.frequency.value=c;this.Ga.detune&&(this.Ga.detune.value=d);this.Ga.Q.value=e;this.Ga.gain.value=f;this.R.connect(this.Ga);this.R.connect(this.C);this.Ga.connect(this.F)}function v(b,c,d){this.type="delay";this.Nc=[b,c,d];this.R=a();this.F=a();this.F.gain.value=d;this.C=a();this.C.gain.value=
1-d;this.$g=a();this.qc=e(b);this.qc.delayTime.value=b;this.bi=a();this.bi.gain.value=c;this.R.connect(this.$g);this.R.connect(this.C);this.$g.connect(this.F);this.$g.connect(this.qc);this.qc.connect(this.bi);this.bi.connect(this.$g)}function w(b,c,d,e){this.type="convolve";this.Nc=[c,d,e];this.R=a();this.F=a();this.F.gain.value=d;this.C=a();this.C.gain.value=1-d;this.ze=s.createConvolver();b&&(this.ze.normalize=c,this.ze.buffer=b);this.R.connect(this.ze);this.R.connect(this.C);this.ze.connect(this.F)}
function g(b,c,d,f,h){this.type="flanger";this.Nc=[b,c,d,f,h];this.R=a();this.C=a();this.C.gain.value=1-h/2;this.F=a();this.F.gain.value=h/2;this.hi=a();this.hi.gain.value=f;this.qc=e(b+c);this.qc.delayTime.value=b;this.Za=s.createOscillator();this.Za.frequency.value=d;this.Xb=a();this.Xb.gain.value=c;this.R.connect(this.qc);this.R.connect(this.C);this.qc.connect(this.F);this.qc.connect(this.hi);this.hi.connect(this.qc);this.Za.connect(this.Xb);this.Xb.connect(this.qc.delayTime);q(this.Za)}function k(b,
c,d,e,f,h){this.type="phaser";this.Nc=[b,c,d,e,f,h];this.R=a();this.C=a();this.C.gain.value=1-h/2;this.F=a();this.F.gain.value=h/2;this.Ga=s.createBiquadFilter();this.Ga.type="number"===typeof this.Ga.type?7:"allpass";this.Ga.frequency.value=b;this.Ga.detune&&(this.Ga.detune.value=c);this.Ga.Q.value=d;this.Za=s.createOscillator();this.Za.frequency.value=f;this.Xb=a();this.Xb.gain.value=e;this.R.connect(this.Ga);this.R.connect(this.C);this.Ga.connect(this.F);this.Za.connect(this.Xb);this.Xb.connect(this.Ga.frequency);
q(this.Za)}function r(b){this.type="gain";this.Nc=[b];this.T=a();this.T.gain.value=b}function h(b,c){this.type="tremolo";this.Nc=[b,c];this.T=a();this.T.gain.value=1-c/2;this.Za=s.createOscillator();this.Za.frequency.value=b;this.Xb=a();this.Xb.gain.value=c/2;this.Za.connect(this.Xb);this.Xb.connect(this.T.gain);q(this.Za)}function u(b,c){this.type="ringmod";this.Nc=[b,c];this.R=a();this.F=a();this.F.gain.value=c;this.C=a();this.C.gain.value=1-c;this.th=a();this.th.gain.value=0;this.Za=s.createOscillator();
this.Za.frequency.value=b;this.Za.connect(this.th.gain);q(this.Za);this.R.connect(this.th);this.R.connect(this.C);this.th.connect(this.F)}function t(b,c,d,e,f){this.type="distortion";this.Nc=[b,c,d,e,f];this.R=a();this.gj=a();this.fj=a();this.Ut(d,Math.pow(10,e/20));this.F=a();this.F.gain.value=f;this.C=a();this.C.gain.value=1-f;this.Nj=s.createWaveShaper();this.$h=new Float32Array(65536);this.cs(b,c);this.Nj.$h=this.$h;this.R.connect(this.gj);this.R.connect(this.C);this.gj.connect(this.Nj);this.Nj.connect(this.fj);
this.fj.connect(this.F)}function l(a,b,c,d,e){this.type="compressor";this.Nc=[a,b,c,d,e];this.T=s.createDynamicsCompressor();try{this.T.threshold.value=a,this.T.knee.value=b,this.T.ratio.value=c,this.T.attack.value=d,this.T.release.value=e}catch(f){}}function B(a,b){this.type="analyser";this.Nc=[a,b];this.T=s.createAnalyser();this.T.fftSize=a;this.T.smoothingTimeConstant=b;this.as=new Float32Array(this.T.frequencyBinCount);this.ip=new Uint8Array(a);this.mh=0}function d(){this.D=null;this.Ni=0;this.pe=
[];this.wl=this.Gi=this.Fi=0}function A(b,c){this.src=b;this.N=E;this.Lc=c;this.Pm=!1;var d=this;this.tl=this.Gl=null;this.Of=[];this.pj=0;this.xm=this.yk=this.mp=this.cj=!1;1===E&&c&&(this.N=0,this.Gl=a());this.ve=this.X=null;var e;switch(this.N){case 0:this.X=new Audio;this.X.addEventListener("canplaythrough",function(){d.xm=!0});1===E&&s.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.mp=!0,this.X.addEventListener("canplay",function(){d.tl||(d.tl=s.createMediaElementSource(d.X),
d.tl.connect(d.Gl))}));this.X.autoplay=!1;this.X.Av="auto";this.X.src=b;break;case 1:e=new XMLHttpRequest;e.open("GET",b,!0);e.responseType="arraybuffer";e.onload=function(){d.ve=e.response;d.Zq()};e.onerror=function(){d.yk=!0};e.send();break;case 2:this.X=!0;break;case 3:this.X=!0}}function p(b,c){var d=this;this.tag=c;this.ac=this.$c=!0;this.src=b.src;this.buffer=b;this.N=E;this.Lc=b.Lc;this.playbackRate=1;this.jk=!0;this.xc=this.Jd=!1;this.Jb=0;this.Ig=this.zf=this.bd=!1;this.volume=1;this.Oe=
1===G&&!this.Lc||2===G;this.If=1;this.startTime=this.Oe?x.ic.aa:x.ld.aa;this.Ba=this.Ha=null;this.cd=!1;this.Aa=null;this.Ho=this.Go=this.Fo=this.Eo=this.Jo=this.Io=0;this.j=null;var e=!1;1!==this.N||0!==this.buffer.N||this.buffer.mp||(this.N=0);switch(this.N){case 0:this.Lc?(this.j=b.X,e=!b.Pm,b.Pm=!0):(this.j=new Audio,this.j.autoplay=!1,this.j.src=b.X.src,e=!0);e&&this.j.addEventListener("ended",function(){fa=d.tag;d.ac=!0;x.trigger(hc.prototype.i.Qj,K)});break;case 1:this.Ha=a();this.Ha.connect(n(c));
1===this.buffer.N?b.X&&(this.j=s.createBufferSource(),this.j.buffer=b.X,this.j.connect(this.Ha)):(this.j=this.buffer.X,this.buffer.Gl.connect(this.Ha));break;case 2:this.j=new window.Media(W+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(d.jk=!0,d.ac=!0,fa=d.tag,x.trigger(hc.prototype.i.Qj,K))});break;case 3:this.j=!0}}function z(a,b){R.hasOwnProperty(a)?R[a].push(b):R[a]=[b];var c,d,e,f,h=s.destination;if(R.hasOwnProperty(a)&&(e=R[a],e.length))for(h=e[0].gc(),c=0,d=e.length;c<d;c++)f=
e[c],c+1===d?f.nc(s.destination):f.nc(e[c+1].gc());Ga.length=0;if(a.length)for(c=0,d=N.length;c<d;c++)e=N[c],fb(a,e.tag)&&Ga.push(e);else F&&!F.Je()&&(Ga.length=1,Ga[0]=F);c=0;for(d=Ga.length;c<d;c++)Ga[c].It(h);ba&&pb===a&&(ba.disconnect(),ba.connect(h))}function M(){}function X(){}var y=hc.prototype;y.ib=function(a){this.Ca=a;this.b=a.b};y.ib.prototype.ka=function(){};var x=null,K=null,fa="",W="",E=0,s=null,ua=[],N=[],F=null,D=!1,G=0,H=!1,C=1,O=0,J=0,ka=1,L=1,pa=10,da=1E4,sa=1,ba=null,pb="",La=
!1,Ma=[],R={},oc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");m.prototype.nc=function(a){this.F.disconnect();this.F.connect(a);this.C.disconnect();this.C.connect(a)};m.prototype.remove=function(){this.R.disconnect();this.Ga.disconnect();this.F.disconnect();this.C.disconnect()};m.prototype.gc=function(){return this.R};v.prototype.nc=function(a){this.F.disconnect();this.F.connect(a);this.C.disconnect();this.C.connect(a)};v.prototype.remove=function(){this.R.disconnect();
this.$g.disconnect();this.qc.disconnect();this.bi.disconnect();this.F.disconnect();this.C.disconnect()};v.prototype.gc=function(){return this.R};w.prototype.nc=function(a){this.F.disconnect();this.F.connect(a);this.C.disconnect();this.C.connect(a)};w.prototype.remove=function(){this.R.disconnect();this.ze.disconnect();this.F.disconnect();this.C.disconnect()};w.prototype.gc=function(){return this.R};g.prototype.nc=function(a){this.C.disconnect();this.C.connect(a);this.F.disconnect();this.F.connect(a)};
g.prototype.remove=function(){this.R.disconnect();this.qc.disconnect();this.Za.disconnect();this.Xb.disconnect();this.C.disconnect();this.F.disconnect();this.hi.disconnect()};g.prototype.gc=function(){return this.R};k.prototype.nc=function(a){this.C.disconnect();this.C.connect(a);this.F.disconnect();this.F.connect(a)};k.prototype.remove=function(){this.R.disconnect();this.Ga.disconnect();this.Za.disconnect();this.Xb.disconnect();this.C.disconnect();this.F.disconnect()};k.prototype.gc=function(){return this.R};
r.prototype.nc=function(a){this.T.disconnect();this.T.connect(a)};r.prototype.remove=function(){this.T.disconnect()};r.prototype.gc=function(){return this.T};h.prototype.nc=function(a){this.T.disconnect();this.T.connect(a)};h.prototype.remove=function(){this.Za.disconnect();this.Xb.disconnect();this.T.disconnect()};h.prototype.gc=function(){return this.T};u.prototype.nc=function(a){this.F.disconnect();this.F.connect(a);this.C.disconnect();this.C.connect(a)};u.prototype.remove=function(){this.Za.disconnect();
this.th.disconnect();this.R.disconnect();this.F.disconnect();this.C.disconnect()};u.prototype.gc=function(){return this.R};t.prototype.Ut=function(a,b){.01>a&&(a=.01);this.gj.gain.value=a;this.fj.gain.value=Math.pow(1/a,.6)*b};t.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};t.prototype.cs=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.$h[32768+f]=e,this.$h[32768-
f-1]=-e};t.prototype.nc=function(a){this.F.disconnect();this.F.connect(a);this.C.disconnect();this.C.connect(a)};t.prototype.remove=function(){this.R.disconnect();this.gj.disconnect();this.Nj.disconnect();this.fj.disconnect();this.F.disconnect();this.C.disconnect()};t.prototype.gc=function(){return this.R};l.prototype.nc=function(a){this.T.disconnect();this.T.connect(a)};l.prototype.remove=function(){this.T.disconnect()};l.prototype.gc=function(){return this.T};B.prototype.ab=function(){this.T.getFloatFrequencyData(this.as);
this.T.getByteTimeDomainData(this.ip);for(var a=this.T.fftSize,b=0,c=this.mh=0,d=0;b<a;b++)d=(this.ip[b]-128)/128,0>d&&(d=-d),this.mh<d&&(this.mh=d),c+=d*d;this.mh=f(this.mh);f(Math.sqrt(c/a))};B.prototype.nc=function(a){this.T.disconnect();this.T.connect(a)};B.prototype.remove=function(){this.T.disconnect()};B.prototype.gc=function(){return this.T};d.prototype.uh=function(a){if(this.D=a)this.Fi=this.D.x,this.Gi=this.D.y;this.pe.length=0};d.prototype.vi=function(){return!!this.D};d.prototype.ab=function(a){this.D&&
0!==a&&(this.wl=Ia(this.Fi,this.Gi,this.D.x,this.D.y),a=Ra(this.Fi,this.Gi,this.D.x,this.D.y)/a,4>this.pe.length||this.pe.shift(),this.pe.push(a),this.Fi=this.D.x,this.Gi=this.D.y)};d.prototype.xn=function(){if(!this.pe.length)return 0;var a,b,c=0;a=0;for(b=this.pe.length;a<b;a++)c+=this.pe[a];return c/this.pe.length};d.prototype.Nk=function(){return Math.cos(this.wl)*this.xn()};d.prototype.Ok=function(){return Math.sin(this.wl)*this.xn()};var lc=!1;A.prototype.Zq=function(){if(!this.X&&this.ve){var a=
this;if(s.decodeAudioData)s.decodeAudioData(this.ve,function(b){a.X=b;a.ve=null;var c,d,e;if(ha(a.dj)||H)ha(a.Vh)||(c=a.Vh.ze,c.normalize=a.xo,c.buffer=b);else if(a.Of.length){c=0;for(d=a.Of.length;c<d;c++){b=a.Of[c];e=new p(a,b.pp);e.Xl(!0);if("undefined"!==typeof b.zo&&(b.D=x.pi(b.zo),!b.D))continue;if(b.D){var f=Qa(b.D.x,b.D.y,-b.D.d.Va(),O,J,!0),h=Qa(b.D.x,b.D.y,-b.D.d.Va(),O,J,!1);e.Wl(f,h,Ca(b.D.e-b.D.d.Va()),b.Uk,b.xl,b.Al);e.uh(b.D)}else e.Wl(b.x,b.y,b.Eq,b.Uk,b.xl,b.Al);e.play(a.ql,a.vm,
a.pj);a.cj&&e.pause();N.push(e)}a.Of.length=0}else e=new p(a,a.dj),e.play(a.ql,a.vm,a.pj),a.cj&&e.pause(),N.push(e)},function(){a.yk=!0});else if(this.X=s.createBuffer(this.ve,!1),this.ve=null,ha(this.dj)||H)ha(this.Vh)||(b=this.Vh.ze,b.normalize=this.xo,b.buffer=this.X);else{var b=new p(this,this.dj);b.play(this.ql,this.vm,this.pj);this.cj&&b.pause();N.push(b)}}};A.prototype.In=function(){switch(this.N){case 0:var a=4<=this.X.readyState;a&&(this.xm=!0);return a||this.xm;case 1:return!!this.ve||!!this.X;
case 2:return!0;case 3:return!0}return!1};A.prototype.Ts=function(){switch(this.N){case 0:return this.In();case 1:return!!this.X;case 2:return!0;case 3:return!0}return!1};A.prototype.Js=function(){switch(this.N){case 0:return!!this.X.error;case 1:return this.yk}return!1};p.prototype.Je=function(){var a;switch(this.N){case 0:return this.j.ended;case 1:if(1===this.buffer.N){if(!this.$c&&!this.ac&&this.j.loop||this.xc)return!1;a=this.Oe?x.ic.aa:x.ld.aa;return a-this.startTime>this.buffer.X.duration}return this.j.ended;
case 2:return this.jk;case 3:!0}return!0};p.prototype.Sq=function(){return this.$c||this.ac?!0:this.Je()};p.prototype.Xl=function(a){1===E&&(!this.cd&&a?this.Ha&&(this.Ba||(this.Ba=s.createPanner(),this.Ba.panningModel="number"===typeof this.Ba.panningModel?ka:["equalpower","HRTF","soundfield"][ka],this.Ba.distanceModel="number"===typeof this.Ba.distanceModel?L:["linear","inverse","exponential"][L],this.Ba.refDistance=pa,this.Ba.maxDistance=da,this.Ba.rolloffFactor=sa),this.Ha.disconnect(),this.Ha.connect(this.Ba),
this.Ba.connect(n(this.tag)),this.cd=!0):this.cd&&!a&&this.Ha&&(this.Ba.disconnect(),this.Ha.disconnect(),this.Ha.connect(n(this.tag)),this.cd=!1))};p.prototype.Wl=function(a,b,c,d,e,f){this.cd&&1===E&&(this.Ba.setPosition(a,b,0),this.Ba.setOrientation(Math.cos(T(c)),Math.sin(T(c)),0),this.Ba.coneInnerAngle=d,this.Ba.coneOuterAngle=e,this.Ba.coneOuterGain=f,this.Io=a,this.Jo=b,this.Eo=c,this.Fo=d,this.Go=e,this.Ho=f)};p.prototype.uh=function(a){this.cd&&1===E&&(this.Aa||(this.Aa=new d),this.Aa.uh(a))};
p.prototype.ab=function(a){if(this.cd&&1===E&&this.Aa&&this.Aa.vi()&&this.vf()){this.Aa.ab(a);a=this.Aa.D;var b=Qa(a.x,a.y,-a.d.Va(),O,J,!0),c=Qa(a.x,a.y,-a.d.Va(),O,J,!1);this.Ba.setPosition(b,c,0);b=0;"undefined"!==typeof this.Aa.D.e&&(b=a.e-a.d.Va(),this.Ba.setOrientation(Math.cos(b),Math.sin(b),0));b=Qa(this.Aa.Nk(),this.Aa.Ok(),-a.d.Va(),0,0,!0);c=Qa(this.Aa.Nk(),this.Aa.Ok(),-a.d.Va(),0,0,!1);this.Ba.setVelocity(b,c,0)}};p.prototype.play=function(a,b,d){var e=this.j;this.bd=a;this.volume=b;
d=d||0;switch(this.N){case 0:1!==e.playbackRate&&(e.playbackRate=1);e.volume!==b*C&&(e.volume=b*C);e.loop!==a&&(e.loop=a);e.muted&&(e.muted=!1);if(e.currentTime!==d)try{e.currentTime=d}catch(f){}if(this.Lc&&La&&!x.ja)Ma.push(this);else try{this.j.play()}catch(h){console&&console.log&&console.log("[C2] WARNING: exception trying to play audio '"+this.buffer.src+"': ",h)}break;case 1:this.muted=!1;this.If=1;if(1===this.buffer.N)this.$c||(this.j=s.createBufferSource(),this.j.buffer=this.buffer.X,this.j.connect(this.Ha)),
this.j.loop=a,this.Ha.gain.value=b*C,0===d?q(this.j):c(this.j,d,this.He());else{1!==e.playbackRate&&(e.playbackRate=1);e.loop!==a&&(e.loop=a);this.Ha.gain.value=b*C;if(e.currentTime!==d)try{e.currentTime=d}catch(k){}this.Lc&&La&&!x.ja?Ma.push(this):e.play()}break;case 2:(!this.$c&&this.ac||0!==d)&&e.seekTo(d);e.play();this.jk=!1;break;case 3:x.eb?AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=1;this.startTime=(this.Oe?x.ic.aa:x.ld.aa)-d;this.xc=this.ac=
this.$c=!1};p.prototype.stop=function(){switch(this.N){case 0:this.j.paused||this.j.pause();break;case 1:1===this.buffer.N?b(this.j):this.j.paused||this.j.pause();break;case 2:this.j.stop();break;case 3:x.eb&&AppMobi.context.stopSound(this.src)}this.ac=!0;this.xc=!1};p.prototype.pause=function(){if(!(this.$c||this.ac||this.Je()||this.xc)){switch(this.N){case 0:this.j.paused||this.j.pause();break;case 1:1===this.buffer.N?(this.Jb=this.Lk(),this.bd&&(this.Jb%=this.He()),b(this.j)):this.j.paused||this.j.pause();
break;case 2:this.j.pause();break;case 3:x.eb&&AppMobi.context.stopSound(this.src)}this.xc=!0}};p.prototype.Lt=function(){if(!(this.$c||this.ac||this.Je())&&this.xc){switch(this.N){case 0:this.j.play();break;case 1:1===this.buffer.N?(this.j=s.createBufferSource(),this.j.buffer=this.buffer.X,this.j.connect(this.Ha),this.j.loop=this.bd,this.Ha.gain.value=C*this.volume*this.If,this.startTime=(this.Oe?x.ic.aa:x.ld.aa)-this.Jb,c(this.j,this.Jb,this.He())):this.j.play();break;case 2:this.j.play();break;
case 3:x.eb&&AppMobi.context.resumeSound(this.src)}this.xc=!1}};p.prototype.seek=function(a){if(!(this.$c||this.ac||this.Je()))switch(this.N){case 0:try{this.j.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.N)this.xc?this.Jb=a:(this.pause(),this.Jb=a,this.Lt());else try{this.j.currentTime=a}catch(c){}break;case 3:x.eb&&AppMobi.context.seekSound(this.src,a)}};p.prototype.It=function(a){1===this.N&&(this.cd?(this.Ba.disconnect(),this.Ba.connect(a)):(this.Ha.disconnect(),this.Ha.connect(a)))};
p.prototype.He=function(){switch(this.N){case 0:if("undefined"!==typeof this.j.duration)return this.j.duration;break;case 1:return this.buffer.X.duration;case 2:return this.j.getDuration();case 3:if(x.eb)return AppMobi.context.getDurationSound(this.src)}return 0};p.prototype.Lk=function(){var a=this.He(),b=0;switch(this.N){case 0:"undefined"!==typeof this.j.currentTime&&(b=this.j.currentTime);break;case 1:if(1===this.buffer.N){if(this.xc)return this.Jb;b=(this.Oe?x.ic.aa:x.ld.aa)-this.startTime}else"undefined"!==
typeof this.j.currentTime&&(b=this.j.currentTime);break;case 3:x.eb&&(b=AppMobi.context.getPlaybackTimeSound(this.src))}!this.bd&&b>a&&(b=a);return b};p.prototype.vf=function(){return!this.xc&&!this.$c&&!this.ac&&!this.Je()};p.prototype.hu=function(){var a=this.volume*C;switch(this.N){case 0:this.j.volume&&this.j.volume!==a&&(this.j.volume=a);break;case 1:this.Ha.gain.value=a*this.If}};p.prototype.ci=function(a){switch(this.N){case 0:this.j.muted!==!!a&&(this.j.muted=!!a);break;case 1:this.If=a?0:
1,this.Ha.gain.value=C*this.volume*this.If}};p.prototype.Wt=function(){this.zf=!0;this.ci(this.zf||this.Ig)};p.prototype.cp=function(a){this.Ig=!!a;this.ci(this.zf||this.Ig)};p.prototype.Cp=function(){var a=this.playbackRate;this.Oe&&(a*=x.ag);switch(this.N){case 0:this.j.playbackRate!==a&&(this.j.playbackRate=a);break;case 1:1===this.buffer.N?this.j.playbackRate.value!==a&&(this.j.playbackRate.value=a):this.j.playbackRate!==a&&(this.j.playbackRate=a)}};p.prototype.Yt=function(a){switch(this.N){case 0:a?
this.vf()?(this.j.pause(),this.Jd=!0):this.Jd=!1:this.Jd&&this.j.play();break;case 1:a?this.vf()?(1===this.buffer.N?(this.Jb=this.Lk(),this.bd&&(this.Jb%=this.He()),b(this.j)):this.j.pause(),this.Jd=!0):this.Jd=!1:this.Jd&&(1===this.buffer.N?(this.j=s.createBufferSource(),this.j.buffer=this.buffer.X,this.j.connect(this.Ha),this.j.loop=this.bd,this.Ha.gain.value=C*this.volume*this.If,this.startTime=(this.Oe?x.ic.aa:x.ld.aa)-this.Jb,c(this.j,this.Jb,this.He())):this.j.play());break;case 2:a?this.vf()?
(this.j.pause(),this.Jd=!0):this.Jd=!1:this.Jd&&this.j.play()}};y.Ea=function(a){this.type=a;x=this.b=a.b;K=this;this.qb=null;this.Qg=-600;!(this.b.Ei||this.b.yi&&(this.b.Eg||this.b.Ai))||this.b.Fg||this.b.da||(La=!0);s=null;"undefined"!==typeof AudioContext?(E=1,s=new AudioContext):"undefined"!==typeof webkitAudioContext&&(E=1,s=new webkitAudioContext);(this.b.Ei&&1===E||La)&&document.addEventListener("touchstart",function(){var a,b,c;!lc&&s&&(a=s.createBuffer(1,1,22050),b=s.createBufferSource(),
b.buffer=a,b.connect(s.destination),q(b),lc=!0);if(La){if(!H)for(a=0,b=Ma.length;a<b;++a)c=Ma[a],c.ac||c.xc||c.j.play();Ma.length=0}},!0);1!==E&&(this.b.wc&&"undefined"!==typeof window.Media?E=2:this.b.uf&&(E=3));2===E&&(W=location.href,a=W.lastIndexOf("/"),-1<a&&(W=W.substr(0,a+1)),W=W.replace("file://",""));if(this.b.Jn&&this.b.Us&&"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.Pd(this);
else{if(this.b.eb)D=this.b.yi;else try{D=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(b){D=!1}this.b.hm(this)}};var la=y.Ea.prototype;la.ka=function(){this.b.gf=this;G=this.ra[0];this.Kd=this.ra[1];this.yt=0!==this.ra[2];ka=this.ra[3];L=this.ra[4];this.Qg=-this.ra[5];pa=this.ra[6];da=this.ra[7];sa=this.ra[8];this.qb=new d;var a=this.b.M||this.b.width,b=this.b.L||this.b.height;1===E&&(s.listener.speedOfSound=this.ra[9],s.listener.dopplerFactor=this.ra[10],s.listener.setPosition(a/
2,b/2,this.Qg),s.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,b){ba&&ba.disconnect();pb=b.toLowerCase();ba=s.createMediaStreamSource(a);ba.connect(n(pb))});this.b.Kq(function(a){K.tt(a)});var c=this;this.b.Iq(function(a){c.mt(a)})};la.mt=function(a){var b,c,d;b=0;for(c=N.length;b<c;b++)d=N[b],d.Aa&&d.Aa.D===a&&(d.Aa.D=null,d.cd&&d.vf()&&d.bd&&d.stop());this.qb.D===a&&(this.qb.D=null)};la.Zb=function(){var a={silent:H,masterVolume:C,listenerZ:this.Qg,listenerUid:this.qb.vi()?
this.qb.D.uid:-1,playing:[],effects:{}},b=a.playing,c,d,e,f,h,k;c=0;for(d=N.length;c<d;c++)e=N[c],!e.vf()||3===this.Kd||e.Lc&&1===this.Kd||!e.Lc&&2===this.Kd||(f=e.Lk(),e.bd&&(f%=e.He()),f={tag:e.tag,buffersrc:e.buffer.src,is_music:e.Lc,playbackTime:f,volume:e.volume,looping:e.bd,muted:e.zf,playbackRate:e.playbackRate,paused:e.xc,resume_position:e.Jb},e.cd&&(f.pan={},k=f.pan,e.Aa&&e.Aa.vi()?k.objUid=e.Aa.D.uid:(k.x=e.Io,k.y=e.Jo,k.a=e.Eo),k.ia=e.Fo,k.oa=e.Go,k.og=e.Ho),b.push(f));b=a.effects;for(h in R)if(R.hasOwnProperty(h)){e=
[];c=0;for(d=R[h].length;c<d;c++)e.push({type:R[h][c].type,params:R[h][c].Nc});b[h]=e}return a};var Na=[];la.yc=function(a){var b=a.silent;C=a.masterVolume;this.Qg=a.listenerZ;this.qb.uh(null);var c=a.listenerUid;-1!==c&&(this.qb.Ni=c,Na.push(this.qb));var c=a.playing,e,f,p,q,n,M,x,fa,y,s,X;if(3!==this.Kd)for(e=0,f=N.length;e<f;e++)y=N[e],y.Lc&&1===this.Kd||(y.Lc||2!==this.Kd)&&y.stop();for(n in R)if(R.hasOwnProperty(n))for(e=0,f=R[n].length;e<f;e++)R[n][e].remove();Ua(R);for(n in a.effects)if(a.effects.hasOwnProperty(n))for(M=
a.effects[n],e=0,f=M.length;e<f;e++)switch(p=M[e].type,s=M[e].params,p){case "filter":z(n,new m(s[0],s[1],s[2],s[3],s[4],s[5]));break;case "delay":z(n,new v(s[0],s[1],s[2]));break;case "convolve":p=s[2];y=this.li(p,!1);y.X?p=new w(y.X,s[0],s[1],p):(p=new w(null,s[0],s[1],p),y.xo=s[0],y.Vh=p);z(n,p);break;case "flanger":z(n,new g(s[0],s[1],s[2],s[3],s[4]));break;case "phaser":z(n,new k(s[0],s[1],s[2],s[3],s[4],s[5]));break;case "gain":z(n,new r(s[0]));break;case "tremolo":z(n,new h(s[0],s[1]));break;
case "ringmod":z(n,new u(s[0],s[1]));break;case "distortion":z(n,new t(s[0],s[1],s[2],s[3],s[4]));break;case "compressor":z(n,new l(s[0],s[1],s[2],s[3],s[4]));break;case "analyser":z(n,new B(s[0],s[1]))}e=0;for(f=c.length;e<f;e++)3===this.Kd||(a=c[e],p=a.buffersrc,q=a.is_music,n=a.tag,M=a.playbackTime,x=a.looping,fa=a.volume,X=(s=a.pan)&&s.hasOwnProperty("objUid")?s.objUid:-1,q&&1===this.Kd)||!q&&2===this.Kd||((y=this.qn(p,n,q,x,fa))?(y.Jb=a.resume_position,y.Xl(!!s),y.play(x,fa,M),y.Cp(),y.hu(),
y.ci(y.zf||y.Ig),a.paused&&y.pause(),a.muted&&y.Wt(),y.ci(y.zf||y.Ig),s&&(-1!==X?(y.Aa=y.Aa||new d,y.Aa.Ni=X,Na.push(y.Aa)):y.Wl(s.x,s.y,s.a,s.ia,s.oa,s.og))):(y=this.li(p,q),y.pj=M,y.cj=a.paused,s&&(-1!==X?y.Of.push({zo:X,Uk:s.ia,xl:s.oa,Al:s.og,pp:n}):y.Of.push({x:s.x,y:s.y,Eq:s.a,Uk:s.ia,xl:s.oa,Al:s.og,pp:n}))));if(b&&!H){e=0;for(f=N.length;e<f;e++)N[e].cp(!0);H=!0}else if(!b&&H){e=0;for(f=N.length;e<f;e++)N[e].cp(!1);H=!1}};la.md=function(){var a,b,c,d;a=0;for(b=Na.length;a<b;a++)c=Na[a],d=this.b.pi(c.Ni),
c.uh(d),c.Ni=-1,d&&(O=d.x,J=d.y);Na.length=0};la.tt=function(a){if(!this.yt){!a&&s&&s.resume&&s.resume();var b,c;b=0;for(c=N.length;b<c;b++)N[b].Yt(a);a&&s&&s.suspend&&s.suspend()}};la.ab=function(){var a=this.b.De,b,c,d;b=0;for(c=N.length;b<c;b++)d=N[b],d.ab(a),0===d.N||3===d.N||d.$c||d.ac||!d.Je()||(d.ac=!0,fa=d.tag,x.trigger(hc.prototype.i.Qj,K)),0!==G&&d.Cp();var e,f;for(e in R)if(R.hasOwnProperty(e))for(d=R[e],b=0,c=d.length;b<c;b++)f=d[b],f.ab&&f.ab();1===E&&this.qb.vi()&&(this.qb.ab(a),O=this.qb.D.x,
J=this.qb.D.y,s.listener.setPosition(this.qb.D.x,this.qb.D.y,this.Qg),s.listener.setVelocity(this.qb.Nk(),this.qb.Ok(),0))};var Oa=[];la.Xt=function(a){var b,c,d,e,f,h=0;b=0;for(c=a.length;b<c;++b)if(d=a[b],e=d[0],d=2*d[1],(f=4<e.length&&".ogg"===e.substr(e.length-4))&&D||!f&&!D)Oa.push({filename:e,size:d,D:null}),h+=d;return h};la.au=function(){var a,b,c,d;a=0;for(b=Oa.length;a<b;++a)c=Oa[a],d=this.b.zk+c.filename,c.D=this.li(d,!1)};la.os=function(){var a=0,b,c,d;b=0;for(c=Oa.length;b<c;++b)d=Oa[b],
d.D.Ts()||d.D.Js()||this.b.da||this.b.Ai?a+=d.size:d.D.In()&&(a+=Math.floor(d.size/2));return a};la.li=function(a,b){var c,d,e,f=null;c=0;for(d=ua.length;c<d;c++)if(e=ua[c],e.src===a){f=e;break}f||(f=new A(a,b),ua.push(f));return f};la.qn=function(a,b,c,d,e){var f,h,k;f=0;for(h=N.length;f<h;f++)if(k=N[f],k.src===a&&(k.Sq()||c))return k.tag=b,k;a=this.li(a,c);if(!a.X)return"<preload>"!==b&&(a.dj=b,a.ql=d,a.vm=e),null;k=new p(a,b);N.push(k);return k};var Ga=[];M.prototype.Qj=function(a){return fb(fa,
a)};y.i=new M;X.prototype.Play=function(a,b,c,d){!H&&(c=Math.pow(10,c/20),0>c&&(c=0),1<c&&(c=1),F=this.qn(this.b.zk+a[0]+(D?".ogg":".m4a"),d,a[1],0!==b,c))&&(F.Xl(!1),F.play(0!==b,c))};y.na=new X;y.Tb=new function(){}})();function ic(f){this.b=f}
(function(){function f(){}var n=ic.prototype;n.ib=function(a){this.Ca=a;this.b=a.b};n.ib.prototype.ka=function(){};n.Ea=function(a){this.type=a;this.b=a.b;this.gl=Array(256);this.Lj=Array(256);this.re=0};var a=n.Ea.prototype;a.ka=function(){var a=this;this.b.da||(jQuery(document).keydown(function(c){a.nt(c)}),jQuery(document).keyup(function(c){a.ot(c)}))};var e=[32,33,34,35,36,37,38,39,40,44];a.nt=function(a){var c=!1;window!=window.top&&-1<e.indexOf(a.which)&&(a.preventDefault(),c=!0,a.stopPropagation());
if(this.gl[a.which])this.Lj[a.which]&&!c&&a.preventDefault();else{this.gl[a.which]=!0;this.re=a.which;this.b.ja=!0;this.b.trigger(ic.prototype.i.Zp,this);var b=this.b.trigger(ic.prototype.i.kq,this),f=this.b.trigger(ic.prototype.i.lq,this);this.b.ja=!1;if(b||f)this.Lj[a.which]=!0,c||a.preventDefault()}};a.ot=function(a){this.gl[a.which]=!1;this.re=a.which;this.b.ja=!0;this.b.trigger(ic.prototype.i.$p,this);var c=this.b.trigger(ic.prototype.i.nq,this),b=this.b.trigger(ic.prototype.i.mq,this);this.b.ja=
!1;if(c||b||this.Lj[a.which])this.Lj[a.which]=!0,a.preventDefault()};a.Zb=function(){return{triggerKey:this.re}};a.yc=function(a){this.re=a.triggerKey};f.prototype.kq=function(a){return a===this.re};f.prototype.Zp=function(){return!0};f.prototype.$p=function(){return!0};f.prototype.nq=function(a){return a===this.re};f.prototype.lq=function(a){return a===this.re};f.prototype.mq=function(a){return a===this.re};n.i=new f;n.na=new function(){};n.Tb=new function(){}})();function jc(f){this.b=f}
(function(){function f(){}function n(){}var a=jc.prototype;a.ib=function(a){this.Ca=a;this.b=a.b};a.ib.prototype.ka=function(){};a.Ea=function(a){this.type=a;this.b=a.b;this.Ph=Array(4);this.rp=this.Gj=this.bg=this.Fd=this.Ed=0;this.Rk=!1};var e=a.Ea.prototype;e.ka=function(){var a=this;if(!this.b.da){jQuery(document).mousemove(function(b){a.fh(b)});jQuery(document).mousedown(function(b){a.eh(b)});jQuery(document).mouseup(function(b){a.gh(b)});jQuery(document).dblclick(function(b){a.kt(b)});var b=
function(b){a.wt(b)};document.addEventListener("mousewheel",b,!1);document.addEventListener("DOMMouseScroll",b,!1)}};var q={left:0,top:0};e.fh=function(a){var b=this.b.da?q:jQuery(this.b.canvas).offset();this.Ed=a.pageX-b.left;this.Fd=a.pageY-b.top};e.so=function(){return 0<this.b.nb?!0:0<=this.Ed&&0<=this.Fd&&this.Ed<this.b.width&&this.Fd<this.b.height};e.eh=function(a){this.so()&&(this.b.rf&&!this.b.ad&&a.preventDefault(),this.Ph[a.which]=!0,this.b.ja=!0,this.b.trigger(jc.prototype.i.Am,this),this.bg=
a.which-1,this.Gj=0,this.b.trigger(jc.prototype.i.Bm,this),this.b.trigger(jc.prototype.i.Sj,this),this.b.ja=!1)};e.gh=function(a){this.Ph[a.which]&&(this.b.rf&&!this.b.ad&&a.preventDefault(),this.b.rf=!0,this.Ph[a.which]=!1,this.b.ja=!0,this.bg=a.which-1,this.b.trigger(jc.prototype.i.qq,this),this.b.ja=!1)};e.kt=function(a){this.so()&&(a.preventDefault(),this.b.ja=!0,this.bg=a.which-1,this.Gj=1,this.b.trigger(jc.prototype.i.Bm,this),this.b.trigger(jc.prototype.i.Sj,this),this.b.ja=!1)};e.wt=function(a){this.rp=
0>(a.wheelDelta?a.wheelDelta:a.detail?-a.detail:0)?0:1;this.Rk=!1;this.b.ja=!0;this.b.trigger(jc.prototype.i.tq,this);this.b.ja=!1;this.Rk&&gb(a)&&a.preventDefault()};f.prototype.Bm=function(a,b){return a===this.bg&&b===this.Gj};f.prototype.Am=function(){return!0};f.prototype.Np=function(a){return this.Ph[a+1]};f.prototype.qq=function(a){return a===this.bg};f.prototype.Pp=function(a){var b=this.b.ni();return Sa(this.b.Zf(a,this.Ed,this.Fd,b.tf),b.tf)};f.prototype.Sj=function(a,b,e){return a!==this.bg||
b!==this.Gj?!1:this.b.Zf(e,this.Ed,this.Fd,!1)};f.prototype.tq=function(a){this.Rk=!0;return a===this.rp};a.i=new f;a.na=new function(){};n.prototype.Im=function(a,b){var e,f,q,g,k;ha(b)?(e=this.b.yd(0),f=e.scale,q=e.mb,g=e.Gb,k=e.e,e.scale=1,e.mb=1,e.Gb=1,e.e=0,a.u(e.pa(this.Ed,this.Fd,!0)),e.scale=f,e.mb=q,e.Gb=g,e.e=k):(e=ia(b)?this.b.yd(b):this.b.vg(b))?a.u(e.pa(this.Ed,this.Fd,!0)):a.u(0)};n.prototype.Jm=function(a,b){var e,f,q,g,k;ha(b)?(e=this.b.yd(0),f=e.scale,q=e.mb,g=e.Hb,k=e.e,e.scale=
1,e.mb=1,e.Hb=1,e.e=0,a.u(e.pa(this.Ed,this.Fd,!1)),e.scale=f,e.mb=q,e.Hb=g,e.e=k):(e=ia(b)?this.b.yd(b):this.b.vg(b))?a.u(e.pa(this.Ed,this.Fd,!1)):a.u(0)};a.Tb=new n})();function kc(f){this.b=f}
(function(){function f(a){this.k=a;this.Ua=!1;this.e=this.speed=this.y=this.x=0;this.opacity=1;this.Sd=this.qf=this.size=this.si=0}var n=kc.prototype;n.ib=function(a){this.Ca=a;this.b=a.b};var a=n.ib.prototype;a.ka=function(){this.B||(this.J=new Image,this.J.lk=this.Bj,this.O=null,this.b.wm(this.J,this.Aj))};a.Vi=function(){this.B||(this.O=null)};a.Wi=function(){this.B||!this.c.length||this.O||(this.O=this.b.q.Ef(this.J,!0,this.b.S,this.Ch))};a.Sg=function(){this.B||this.O||!this.b.q||(this.O=this.b.q.Ef(this.J,
!0,this.b.S,this.Ch))};a.Jj=function(){this.B||this.c.length||!this.O||(this.b.q.deleteTexture(this.O),this.O=null)};a.hj=function(a){a.drawImage(this.J,0,0)};f.prototype.init=function(){var a=this.k;this.x=a.x-a.Oj/2+Math.random()*a.Oj;this.y=a.y-a.Pj/2+Math.random()*a.Pj;this.speed=a.Yk-a.uj/2+Math.random()*a.uj;this.e=a.e-a.vj/2+Math.random()*a.vj;this.opacity=a.Wk;this.size=a.Xk-a.sj/2+Math.random()*a.sj;this.si=a.Qk-a.ti/2+Math.random()*a.ti;this.Sd=this.qf=0};f.prototype.ab=function(a){var c=
this.k;this.x+=Math.cos(this.e)*this.speed*a;this.y+=Math.sin(this.e)*this.speed*a;this.y+=this.qf*a;this.speed+=c.Vj*a;this.size+=this.si*a;this.qf+=c.Fk*a;this.Sd+=a;1>this.size?this.Ua=!1:(0!==c.Ng&&(this.e+=Math.random()*c.Ng*a-c.Ng*a/2),0!==c.Pg&&(this.speed+=Math.random()*c.Pg*a-c.Pg*a/2),0!==c.Og&&(this.opacity+=Math.random()*c.Og*a-c.Og*a/2,0>this.opacity?this.opacity=0:1<this.opacity&&(this.opacity=1)),1>=c.kf&&this.Sd>=c.timeout&&(this.Ua=!1),2===c.kf&&0>=this.speed&&(this.Ua=!1))};f.prototype.Hc=
function(a){var c=this.k.opacity*this.opacity;if(0!==c){0===this.k.kf&&(c*=1-this.Sd/this.k.timeout);a.globalAlpha=c;var c=this.x-this.size/2,b=this.y-this.size/2;this.k.b.ed&&(c=c+.5|0,b=b+.5|0);a.drawImage(this.k.type.J,c,b,this.size,this.size)}};f.prototype.Sb=function(a){var c=this.k.opacity*this.opacity;0===this.k.kf&&(c*=1-this.Sd/this.k.timeout);var b=this.size,e=b*this.k.Mo,f=this.x-b/2,n=this.y-b/2;this.k.b.ed&&(f=f+.5|0,n=n+.5|0);1>e||0===c||(e<a.et||e>a.sl?(a.Ye(c),a.qh(f,n,f+b,n,f+b,n+
b,f,n+b)):a.zt(this.x,this.y,e,c))};f.prototype.left=function(){return this.x-this.size/2};f.prototype.right=function(){return this.x+this.size/2};f.prototype.top=function(){return this.y-this.size/2};f.prototype.bottom=function(){return this.y+this.size/2};n.Ea=function(a){this.type=a;this.b=a.b};var a=n.Ea.prototype,e=[];a.ka=function(){var a=this.ra;this.lj=a[0];this.vj=T(a[1]);this.Wf=a[2];this.$l=!0;this.Yk=a[3];this.Xk=a[4];this.Wk=a[5]/100;this.Qk=a[6];this.Oj=a[7];this.Pj=a[8];this.uj=a[9];
this.sj=a[10];this.ti=a[11];this.Vj=a[12];this.Fk=a[13];this.Ng=a[14];this.Pg=a[15];this.Og=a[16];this.kf=a[17];this.timeout=a[18];this.We=0;this.Mo=1;this.$i=this.x;this.bj=this.y;this.aj=this.x;this.Zi=this.y;this.Lq(function(a){a.za.set(a.$i,a.bj,a.aj,a.Zi);a.Pb.Vf(a.za);a.Oh=!1;a.qm()});this.Pc||(this.sb=[]);this.b.hm(this);this.type.Sg();if(1===this.Wf)for(a=0;a<this.lj;a++)this.Xj().opacity=0;this.ji=!0};a.Zb=function(){var a={r:this.lj,sc:this.vj,st:this.Wf,s:this.$l,isp:this.Yk,isz:this.Xk,
io:this.Wk,gr:this.Qk,xr:this.Oj,yr:this.Pj,spr:this.uj,szr:this.sj,grnd:this.ti,acc:this.Vj,g:this.Fk,lar:this.Ng,lsr:this.Pg,lor:this.Og,dm:this.kf,to:this.timeout,pcc:this.We,ft:this.ji,p:[]},c,b,e,f=a.p;c=0;for(b=this.sb.length;c<b;c++)e=this.sb[c],f.push([e.x,e.y,e.speed,e.e,e.opacity,e.si,e.size,e.qf,e.Sd]);return a};a.yc=function(a){this.lj=a.r;this.vj=a.sc;this.Wf=a.st;this.$l=a.s;this.Yk=a.isp;this.Xk=a.isz;this.Wk=a.io;this.Qk=a.gr;this.Oj=a.xr;this.Pj=a.yr;this.uj=a.spr;this.sj=a.szr;this.ti=
a.grnd;this.Vj=a.acc;this.Fk=a.g;this.Ng=a.lar;this.Pg=a.lsr;this.Og=a.lor;this.kf=a.dm;this.timeout=a.to;this.We=a.pcc;this.ji=a.ft;e.push.apply(e,this.sb);this.sb.length=0;var c,b,f,n=a.p;a=0;for(c=n.length;a<c;a++)b=this.Xj(),f=n[a],b.x=f[0],b.y=f[1],b.speed=f[2],b.e=f[3],b.opacity=f[4],b.si=f[5],b.size=f[6],b.qf=f[7],b.Sd=f[8]};a.dh=function(){e.push.apply(e,this.sb);this.sb.length=0};a.Xj=function(){var a;e.length?(a=e.pop(),a.k=this):a=new f(this);this.sb.push(a);a.Ua=!0;return a};a.ab=function(){var a=
this.b.Hk(this),c,b,f,n;if(0===this.Wf&&this.$l)for(this.We+=a*this.lj,b=Q(this.We),this.We-=b,c=0;c<b;c++)f=this.Xj(),f.init();this.$i=this.x;this.bj=this.y;this.aj=this.x;this.Zi=this.y;n=c=0;for(b=this.sb.length;c<b;c++)f=this.sb[c],this.sb[n]=f,this.b.ga=!0,1===this.Wf&&this.ji&&f.init(),f.ab(a),f.Ua?(f.left()<this.$i&&(this.$i=f.left()),f.right()>this.aj&&(this.aj=f.right()),f.top()<this.bj&&(this.bj=f.top()),f.bottom()>this.Zi&&(this.Zi=f.bottom()),n++):e.push(f);this.sb.length=n;this.wa();
this.ji=!1;1===this.Wf&&0===this.sb.length&&this.b.Pd(this)};a.Hc=function(a){var c,b,e,f=this.d;c=0;for(b=this.sb.length;c<b;c++)e=this.sb[c],e.right()>=f.xa&&e.bottom()>=f.ya&&e.left()<=f.Ka&&e.top()<=f.Ja&&e.Hc(a)};a.Sb=function(a){this.Mo=this.d.tc();a.$b(this.type.O);var c,b,e,f=this.d;c=0;for(b=this.sb.length;c<b;c++)e=this.sb[c],e.right()>=f.xa&&e.bottom()>=f.ya&&e.left()<=f.Ka&&e.top()<=f.Ja&&e.Sb(a)};n.i=new function(){};n.na=new function(){};n.Tb=new function(){}})();
function gc(f){this.b=f}
(function(){function f(){if(0===this.ok.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.Xf?b.drawImage(this.J,this.Lf,this.Mf,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.J,0,0,this.width,this.height);this.ok=a.toDataURL("image/png")}return this.ok}function n(){}var a=gc.prototype;a.ib=function(a){this.Ca=a;this.b=a.b};var e=a.ib.prototype;e.ka=function(){if(!this.B){var a,b,c,e,g,l,m,d,n;this.Fc=[];this.Ag=
!1;a=0;for(b=this.Ob.length;a<b;a++){g=this.Ob[a];m={};m.name=g[0];m.speed=g[1];m.loop=g[2];m.Ql=g[3];m.mj=g[4];m.No=g[5];m.P=g[6];m.frames=[];c=0;for(e=g[7].length;c<e;c++)l=g[7][c],d={},d.Aj=l[0],d.Bj=l[1],d.Lf=l[2],d.Mf=l[3],d.width=l[4],d.height=l[5],d.duration=l[6],d.Cb=l[7],d.Db=l[8],d.Vk=l[9],d.ej=l[10],d.Oo=l[11],d.Xf=0!==d.width,d.ok="",d.wv=f,n={left:0,top:0,right:1,bottom:1},d.Yl=n,d.O=null,(n=this.b.Zr(l[0]))?d.J=n:(d.J=new Image,d.J.Wq=l[0],d.J.lk=l[1],d.J.Rq=null,this.b.wm(d.J,l[0])),
m.frames.push(d),this.Fc.push(d);this.Ob[a]=m}}};e.Bp=function(){var a,b,c;a=0;for(b=this.c.length;a<b;a++)c=this.c[a],c.Yh=c.oc.O};e.Vi=function(){if(!this.B){var a,b,c;a=0;for(b=this.Fc.length;a<b;++a)c=this.Fc[a],c.J.Rq=null,c.O=null;this.Ag=!1;this.Bp()}};e.Wi=function(){if(!this.B&&this.c.length){var a,b,c;a=0;for(b=this.Fc.length;a<b;++a)c=this.Fc[a],c.O=this.b.q.Ef(c.J,!1,this.b.S,c.Oo);this.Bp()}};e.Sg=function(){if(!this.B&&!this.Ag&&this.b.q){var a,b,c;a=0;for(b=this.Fc.length;a<b;++a)c=
this.Fc[a],c.O=this.b.q.Ef(c.J,!1,this.b.S,c.Oo);this.Ag=!0}};e.Jj=function(){if(!this.B&&!this.c.length&&this.Ag){var a,b,c;a=0;for(b=this.Fc.length;a<b;++a)c=this.Fc[a],this.b.q.deleteTexture(c.O),c.O=null;this.Ag=!1}};var q=[];e.hj=function(a){var b,c,e;b=q.length=0;for(c=this.Fc.length;b<c;++b)e=this.Fc[b].J,-1===q.indexOf(e)&&(a.drawImage(e,0,0),q.push(e))};a.Ea=function(a){this.type=a;this.b=a.b;a=this.type.Ob[0].frames[0].ej;this.Pc?this.W.wh(a):this.W=new $a(a)};var c=a.Ea.prototype;c.ka=
function(){this.visible=0===this.ra[0];this.ye=0!==this.ra[3];1===this.type.Ob.length&&1===this.type.Ob[0].frames.length||0===this.type.Ob[0].speed||this.b.hm(this);this.ta=this.pn(this.ra[1])||this.type.Ob[0];this.A=this.ra[2];0>this.A&&(this.A=0);this.A>=this.ta.frames.length&&(this.A=this.ta.frames.length-1);var a=this.ta.frames[this.A];this.W.wh(a.ej);this.Cb=a.Cb;this.Db=a.Db;this.qg=this.ta.speed;this.Pc?this.Wc.reset():this.Wc=new Ya;this.xd=this.Wc.aa;this.ue=!0;this.nd=0;this.te=!0;this.hk=
this.Qm="";this.Tq=0;this.gk=-1;this.type.Sg();var b,c,e,f,g,m,d,a=0;for(b=this.type.Ob.length;a<b;a++)for(f=this.type.Ob[a],c=0,e=f.frames.length;c<e;c++)g=f.frames[c],0===g.width&&(g.width=g.J.width,g.height=g.J.height),g.Xf&&(d=g.J,m=g.Yl,m.left=g.Lf/d.width,m.top=g.Mf/d.height,m.right=(g.Lf+g.width)/d.width,m.bottom=(g.Mf+g.height)/d.height,0===g.Lf&&0===g.Mf&&g.width===d.width&&g.height===d.height&&(g.Xf=!1));this.oc=this.ta.frames[this.A];this.Yh=this.oc.O};c.Zb=function(){var a={a:this.ta.P,
f:this.A,cas:this.qg,fs:this.xd,ar:this.nd,at:this.Wc.aa};this.ue||(a.ap=this.ue);this.te||(a.af=this.te);return a};c.yc=function(a){var b=this.ds(a.a);b&&(this.ta=b);this.A=a.f;0>this.A&&(this.A=0);this.A>=this.ta.frames.length&&(this.A=this.ta.frames.length-1);this.qg=a.cas;this.xd=a.fs;this.nd=a.ar;this.Wc.reset();this.Wc.aa=a.at;this.ue=a.hasOwnProperty("ap")?a.ap:!0;this.te=a.hasOwnProperty("af")?a.af:!0;this.oc=this.ta.frames[this.A];this.Yh=this.oc.O;this.W.wh(this.oc.ej);this.Cb=this.oc.Cb;
this.Db=this.oc.Db};c.$j=function(a){this.A=a?0:this.ta.frames.length-1;this.ue=!1;this.Qm=this.ta.name;this.b.trigger(gc.prototype.i.Yp,this);this.b.trigger(gc.prototype.i.Xp,this);this.nd=0};c.yv=function(){return this.Wc.aa};c.ab=function(){this.Wc.add(this.b.Hk(this));this.hk.length&&this.br();0<=this.gk&&this.cr();var a=this.Wc.aa,b=this.ta,c=b.frames[this.A],e=c.duration/this.qg;this.ue&&a>=this.xd+e&&(this.te?this.A++:this.A--,this.xd+=e,this.A>=b.frames.length&&(b.No?(this.te=!1,this.A=b.frames.length-
2):b.loop?this.A=b.mj:(this.nd++,this.nd>=b.Ql?this.$j(!1):this.A=b.mj)),0>this.A&&(b.No?(this.A=1,this.te=!0,b.loop||(this.nd++,this.nd>=b.Ql&&this.$j(!0))):b.loop?this.A=b.mj:(this.nd++,this.nd>=b.Ql?this.$j(!0):this.A=b.mj)),0>this.A?this.A=0:this.A>=b.frames.length&&(this.A=b.frames.length-1),a>this.xd+b.frames[this.A].duration/this.qg&&(this.xd=a),a=b.frames[this.A],this.ef(c,a),this.b.ga=!0)};c.pn=function(a){var b,c,e;b=0;for(c=this.type.Ob.length;b<c;b++)if(e=this.type.Ob[b],fb(e.name,a))return e;
return null};c.ds=function(a){var b,c,e;b=0;for(c=this.type.Ob.length;b<c;b++)if(e=this.type.Ob[b],e.P===a)return e;return null};c.br=function(){var a=this.ta.frames[this.A],b=this.pn(this.hk);this.hk="";!b||fb(b.name,this.ta.name)&&this.ue||(this.ta=b,this.qg=b.speed,0>this.A&&(this.A=0),this.A>=this.ta.frames.length&&(this.A=this.ta.frames.length-1),1===this.Tq&&(this.A=0),this.ue=!0,this.xd=this.Wc.aa,this.te=!0,this.ef(a,this.ta.frames[this.A]),this.b.ga=!0)};c.cr=function(){var a=this.ta.frames[this.A],
b=this.A;this.A=Q(this.gk);0>this.A&&(this.A=0);this.A>=this.ta.frames.length&&(this.A=this.ta.frames.length-1);b!==this.A&&(this.ef(a,this.ta.frames[this.A]),this.xd=this.Wc.aa,this.b.ga=!0);this.gk=-1};c.ef=function(a,b){var c=a.width,e=a.height,f=b.width,g=b.height;c!=f&&(this.width*=f/c);e!=g&&(this.height*=g/e);this.Cb=b.Cb;this.Db=b.Db;this.W.wh(b.ej);this.wa();this.oc=b;this.Yh=b.O;c=0;for(e=this.G.length;c<e;c++)f=this.G[c],f.qt&&f.qt(a,b);this.b.trigger(gc.prototype.i.ef,this)};c.Hc=function(a){a.globalAlpha=
this.opacity;var b=this.oc,c=b.Xf,e=b.J,f=this.x,g=this.y,m=this.width,d=this.height;if(0===this.e&&0<=m&&0<=d)f-=this.Cb*m,g-=this.Db*d,this.b.ed&&(f=Math.round(f),g=Math.round(g)),c?a.drawImage(e,b.Lf,b.Mf,b.width,b.height,f,g,m,d):a.drawImage(e,f,g,m,d);else{this.b.ed&&(f=Math.round(f),g=Math.round(g));a.save();var n=0<m?1:-1,p=0<d?1:-1;a.translate(f,g);1===n&&1===p||a.scale(n,p);a.rotate(this.e*n*p);f=0-this.Cb*na(m);g=0-this.Db*na(d);c?a.drawImage(e,b.Lf,b.Mf,b.width,b.height,f,g,na(m),na(d)):
a.drawImage(e,f,g,na(m),na(d));a.restore()}};c.Sb=function(a){a.$b(this.Yh);a.Ye(this.opacity);var b=this.oc,c=this.Pb;if(this.b.ed){var e=Math.round(this.x)-this.x,f=Math.round(this.y)-this.y;b.Xf?a.Hd(c.Sa+e,c.Ta+f,c.Kb+e,c.Lb+f,c.yb+e,c.zb+f,c.wb+e,c.xb+f,b.Yl):a.qh(c.Sa+e,c.Ta+f,c.Kb+e,c.Lb+f,c.yb+e,c.zb+f,c.wb+e,c.xb+f)}else b.Xf?a.Hd(c.Sa,c.Ta,c.Kb,c.Lb,c.yb,c.zb,c.wb,c.xb,b.Yl):a.qh(c.Sa,c.Ta,c.Kb,c.Lb,c.yb,c.zb,c.wb,c.xb)};c.ks=function(a){var b=this.oc,c,e;c=0;for(e=b.Vk.length;c<e;c++)if(fb(a,
b.Vk[c][0]))return c;return-1};c.Kk=function(a,b){var c=this.oc,e=c.Vk,f;f=P(a)?this.ks(a):a-1;f=Q(f);if(0>f||f>=e.length)return b?this.x:this.y;var g=(e[f][1]-c.Cb)*this.width,e=e[f][2],e=(e-c.Db)*this.height,c=Math.cos(this.e);f=Math.sin(this.e);var m=g*c-e*f,e=e*c+g*f,g=m+this.x,e=e+this.y;return b?g:e};var b=null,m=new ca,v=!1,w=[],g=new S(0,0,0,0);e.finish=function(a){if(v){if(a){var c=this.b.ob().Rb.Mc;a=b.ca();var e=m.Uc(),f,g;if(a.ha){a.ha=!1;a.c.length=e.length;f=0;for(g=e.length;f<g;f++)a.c[f]=
e[f];if(c)for(f=a.V.length=0,g=b.c.length;f<g;f++)e=b.c[f],m.contains(e)||a.V.push(e)}else if(c)for(c=a.c.length,a.c.length=c+e.length,f=0,g=e.length;f<g;f++)a.c[c+f]=e[f],Ba(a.V,e[f]);else ya(a.c,e);b.od()}m.clear();v=!1}};n.prototype.Qp=function(a){if(a){var c=!1,e,f,n,l=this.b.ni(),q=l.type,l=l.tf;e=a.ca();f=this.b.ob().Rb.Mc;var d;e.ha?(this.ma(),g.pg(this.za),g.offset(0,0),this.b.gs(this.d,a,g,w),d=w):d=f?e.V:e.c;b=a;v=q!==a&&!l;e=0;for(f=d.length;e<f;e++)if(n=d[e],this.b.cu(this,n)){c=!0;if(l)break;
q!==a&&m.add(n)}w.length=0;a=c}else a=!1;return a};n.prototype.Xp=function(a){return fb(this.Qm,a)};n.prototype.Yp=function(){return!0};n.prototype.ef=function(){return!0};a.i=new n;a.na=new function(){};a.Tb=new function(){}})();function mc(f){this.b=f}
(function(){var f=mc.prototype;f.ib=function(a){this.Ca=a;this.b=a.b};var n=f.ib.prototype;n.ka=function(){this.B||(this.J=new Image,this.J.lk=this.Bj,this.b.wm(this.J,this.Aj),this.O=this.pattern=null)};n.Vi=function(){this.B||(this.O=null)};n.Wi=function(){if(!this.B&&this.c.length){this.O||(this.O=this.b.q.Ef(this.J,!0,this.b.S,this.Ch));var a,e;a=0;for(e=this.c.length;a<e;a++)this.c[a].O=this.O}};n.Sg=function(){this.B||this.O||!this.b.q||(this.O=this.b.q.Ef(this.J,!0,this.b.S,this.Ch))};n.Jj=
function(){this.B||this.c.length||!this.O||(this.b.q.deleteTexture(this.O),this.O=null)};n.hj=function(a){a.drawImage(this.J,0,0)};f.Ea=function(a){this.type=a;this.b=a.b};n=f.Ea.prototype;n.ka=function(){this.visible=0===this.ra[0];this.rh=new S(0,0,0,0);this.An=!1;this.J=this.type.J;this.b.q?(this.type.Sg(),this.O=this.type.O):(this.type.pattern||(this.type.pattern=this.b.ba.createPattern(this.type.J,"repeat")),this.pattern=this.type.pattern)};n.md=function(){this.An=!1;this.J=this.type.J};n.dh=
function(){this.b.q&&this.An&&this.O&&(this.b.q.deleteTexture(this.O),this.O=null)};n.Hc=function(a){a.globalAlpha=this.opacity;a.save();a.fillStyle=this.pattern;var e=this.x,f=this.y;this.b.ed&&(e=Math.round(e),f=Math.round(f));var c=-(this.Cb*this.width),b=-(this.Db*this.height),m=c%this.J.width,n=b%this.J.height;0>m&&(m+=this.J.width);0>n&&(n+=this.J.height);a.translate(e,f);a.rotate(this.e);a.translate(m,n);a.fillRect(c-m,b-n,this.width,this.height);a.restore()};n.Sb=function(a){a.$b(this.O);
a.Ye(this.opacity);var e=this.rh;e.right=this.width/this.J.width;e.bottom=this.height/this.J.height;var f=this.Pb;if(this.b.ed){var c=Math.round(this.x)-this.x,b=Math.round(this.y)-this.y;a.Hd(f.Sa+c,f.Ta+b,f.Kb+c,f.Lb+b,f.yb+c,f.zb+b,f.wb+c,f.xb+b,e)}else a.Hd(f.Sa,f.Ta,f.Kb,f.Lb,f.yb,f.zb,f.wb,f.xb,e)};f.i=new function(){};f.na=new function(){};f.Tb=new function(){}})();function Z(f){this.b=f}
(function(){function f(a){w=a.x;g=a.y;k=a.z}function n(a){r=a.x;h=a.y;u=a.z}function a(a,b,c,d){var f;f=t.length?t.pop():new e;f.init(a,b,c,d);return f}function e(){this.yh=this.id=this.y=this.x=this.yj=this.xj=this.jl=this.time=this.cm=0;this.Eh=this.Hj=!1}function q(){}function c(){}var b=Z.prototype;b.ib=function(a){this.Ca=a;this.b=a.b};b.ib.prototype.ka=function(){};b.Ea=function(a){this.type=a;this.b=a.b;this.touches=[];this.ul=!1};var m=b.Ea.prototype,v={left:0,top:0};m.ug=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 w=0,g=0,k=0,r=0,h=0,u=0,t=[];e.prototype.init=function(a,b,c,d){var e=U();this.cm=this.jl=this.time=e;this.xj=a;this.yj=b;this.x=a;this.y=b;this.id=c;this.yh=d;this.Eh=this.Hj=!1};e.prototype.update=function(a,b,c){this.jl=this.time;this.time=a;this.x=b;this.y=c;!this.Eh&&15<=Ra(this.xj,this.yj,this.x,this.y)&&(this.Eh=!0)};e.prototype.ct=function(a,b){!this.Hj&&500<=U()-this.cm&&!this.Eh&&15>Ra(this.xj,this.yj,
this.x,this.y)&&(this.Hj=!0,a.jd=this.yh,a.cg=this.id,a.of=b,a.b.trigger(Z.prototype.i.iq,a),a.rd=this.x,a.sd=this.y,a.b.trigger(Z.prototype.i.jq,a),a.of=0)};var l=-1E3,B=-1E3,d=-1E4;e.prototype.oo=function(a,b){if(!this.Hj){var c=U();333>=c-this.cm&&!this.Eh&&15>Ra(this.xj,this.yj,this.x,this.y)&&(a.jd=this.yh,a.cg=this.id,a.of=b,666>=c-d&&25>Ra(l,B,this.x,this.y)?(a.b.trigger(Z.prototype.i.dq,a),a.rd=this.x,a.sd=this.y,a.b.trigger(Z.prototype.i.fq,a),B=l=-1E3,d=-1E4):(a.b.trigger(Z.prototype.i.rq,
a),a.rd=this.x,a.sd=this.y,a.b.trigger(Z.prototype.i.sq,a),l=this.x,B=this.y,d=c),a.of=0)}};m.ka=function(){this.Vs=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.of=this.cg=this.jd=this.sd=this.rd=this.Mm=this.Lm=this.Km=this.Hq=this.Gq=this.Fq=this.lh=this.kh=this.jh=0;this.lu=0!==this.ra[0];var a=0<this.b.nb?document:this.b.canvas,b=document;this.b.eb?b=a=window.Canvas:this.b.hc&&(b=a=window);var c=this;window.navigator.pointerEnabled?(a.addEventListener("pointerdown",function(a){c.ih(a)},
!1),a.addEventListener("pointermove",function(a){c.hh(a)},!1),b.addEventListener("pointerup",function(a){c.Gd(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.Gd(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.ih(a)},!1),a.addEventListener("MSPointerMove",function(a){c.hh(a)},!1),b.addEventListener("MSPointerUp",function(a){c.Gd(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.Gd(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.Yi(a)},
!1),a.addEventListener("touchmove",function(a){c.Xi(a)},!1),b.addEventListener("touchend",function(a){c.Nf(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.Nf(a,!0)},!1));if(this.Vs){var d=function(a){a=a.reading;c.Km=a.accelerationX;c.Lm=a.accelerationY;c.Mm=a.accelerationZ},e=function(a){a=a.reading;c.jh=a.yawDegrees;c.kh=a.pitchDegrees;c.lh=a.rollDegrees},g=Windows.Devices.Sensors.Accelerometer.getDefault();g&&(g.reportInterval=Math.max(g.minimumReportInterval,16),g.addEventListener("readingchanged",
d));var h=Windows.Devices.Sensors.Inclinometer.getDefault();h&&(h.reportInterval=Math.max(h.minimumReportInterval,16),h.addEventListener("readingchanged",e));document.addEventListener("visibilitychange",function(){document.hidden||document.msHidden?(g&&g.removeEventListener("readingchanged",d),h&&h.removeEventListener("readingchanged",e)):(g&&g.addEventListener("readingchanged",d),h&&h.addEventListener("readingchanged",e))},!1)}else window.addEventListener("deviceorientation",function(a){c.jh=a.alpha||
0;c.kh=a.beta||0;c.lh=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.Fq=a.accelerationIncludingGravity.x||0,c.Gq=a.accelerationIncludingGravity.y||0,c.Hq=a.accelerationIncludingGravity.z||0);a.acceleration&&(c.Km=a.acceleration.x||0,c.Lm=a.acceleration.y||0,c.Mm=a.acceleration.z||0)},!1);this.lu&&!this.b.da&&(jQuery(document).mousemove(function(a){c.fh(a)}),jQuery(document).mousedown(function(a){c.eh(a)}),jQuery(document).mouseup(function(a){c.gh(a)}));
this.b.uf&&!this.b.eb&&AppMobi.accelerometer.watchAcceleration(f,{frequency:40,adjustForRotation:!0});this.b.wc&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(n,null,{frequency:40});this.b.du(this)};m.hh=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var b=this.ug(a.pointerId),c=U();if(0<=b){var d=this.b.da?v:jQuery(this.b.canvas).offset(),b=this.touches[b];2>c-b.time||
b.update(c,a.pageX-d.left,a.pageY-d.top)}}};m.ih=function(b){if(b.pointerType!==b.MSPOINTER_TYPE_MOUSE&&"mouse"!==b.pointerType){b.preventDefault&&gb(b)&&b.preventDefault();var c=this.b.da?v:jQuery(this.b.canvas).offset(),d=b.pageX-c.left,c=b.pageY-c.top;U();this.jd=this.touches.length;this.cg=b.pointerId;this.touches.push(a(d,c,b.pointerId,this.jd));this.b.ja=!0;this.b.trigger(Z.prototype.i.Fm,this);this.b.trigger(Z.prototype.i.Hm,this);this.rd=d;this.sd=c;this.b.trigger(Z.prototype.i.Gm,this);this.b.ja=
!1}};m.Gd=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&gb(a)&&a.preventDefault();var c=this.ug(a.pointerId);this.jd=0<=c?this.touches[c].yh:-1;this.cg=0<=c?this.touches[c].id:-1;this.b.ja=!0;this.b.trigger(Z.prototype.i.Em,this);this.b.trigger(Z.prototype.i.Uj,this);0<=c&&(b||this.touches[c].oo(this,c),100>t.length&&t.push(this.touches[c]),this.touches.splice(c,1));this.b.ja=!1}};m.Xi=function(a){a.preventDefault&&a.preventDefault();var b=U(),
c,d,e,f;c=0;for(d=a.changedTouches.length;c<d;c++)if(e=a.changedTouches[c],f=this.ug(e.identifier),0<=f){var g=this.b.da?v:jQuery(this.b.canvas).offset();f=this.touches[f];2>b-f.time||f.update(b,e.pageX-g.left,e.pageY-g.top)}};m.Yi=function(b){b.preventDefault&&gb(b)&&b.preventDefault();var c=this.b.da?v:jQuery(this.b.canvas).offset();U();this.b.ja=!0;var d,e,f,g;d=0;for(e=b.changedTouches.length;d<e;d++)if(f=b.changedTouches[d],g=this.ug(f.identifier),-1===g){g=f.pageX-c.left;var h=f.pageY-c.top;
this.jd=this.touches.length;this.cg=f.identifier;this.touches.push(a(g,h,f.identifier,this.jd));this.b.trigger(Z.prototype.i.Fm,this);this.b.trigger(Z.prototype.i.Hm,this);this.rd=g;this.sd=h;this.b.trigger(Z.prototype.i.Gm,this)}this.b.ja=!1};m.Nf=function(a,b){a.preventDefault&&gb(a)&&a.preventDefault();this.b.ja=!0;var c,d,e;c=0;for(d=a.changedTouches.length;c<d;c++)e=a.changedTouches[c],e=this.ug(e.identifier),0<=e&&(this.jd=this.touches[e].yh,this.cg=this.touches[e].id,this.b.trigger(Z.prototype.i.Em,
this),this.b.trigger(Z.prototype.i.Uj,this),b||this.touches[e].oo(this,e),100>t.length&&t.push(this.touches[e]),this.touches.splice(e,1));this.b.ja=!1};m.tv=function(){return this.b.uf&&0===this.jh&&0!==k?90*k:this.b.wc&&0===this.jh&&0!==u?90*u:this.jh};m.uv=function(){return this.b.uf&&0===this.kh&&0!==g?-90*g:this.b.wc&&0===this.kh&&0!==h?90*h:this.kh};m.xv=function(){return this.b.uf&&0===this.lh&&0!==w?90*w:this.b.wc&&0===this.lh&&0!==r?90*r:this.lh};m.eh=function(a){a.preventDefault&&this.b.rf&&
!this.b.ad&&a.preventDefault();this.Yi({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.ul=!0};m.fh=function(a){this.ul&&this.Xi({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};m.gh=function(a){a.preventDefault&&this.b.rf&&!this.b.ad&&a.preventDefault();this.b.rf=!0;this.Nf({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.ul=!1};m.gm=function(){var a,b,c,d=U();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=d-50&&(c.jl=d),c.ct(this,
a)};q.prototype.Hm=function(){return!0};q.prototype.Uj=function(){return!0};q.prototype.Gm=function(a){return a?this.b.Zf(a,this.rd,this.sd,!1):!1};var A=[];q.prototype.Rp=function(a){if(!a)return!1;var b=a.ca(),c=b.Ic(),d,e,f,g,h,k;f=0;for(g=c.length;f<g;f++){var l=c[f];l.ma();h=0;for(k=this.touches.length;h<k;h++)if(e=this.touches[h],d=l.d.pa(e.x,e.y,!0),e=l.d.pa(e.x,e.y,!1),l.bb(d,e)){A.push(l);break}}return A.length?(b.ha=!1,ya(b.c,A),a.od(),A.length=0,!0):!1};q.prototype.Fm=function(a){a=Math.floor(a);
return a===this.jd};q.prototype.Em=function(a){a=Math.floor(a);return a===this.jd};q.prototype.iq=function(){return!0};q.prototype.rq=function(){return!0};q.prototype.dq=function(){return!0};q.prototype.jq=function(a){return a?this.b.Zf(a,this.rd,this.sd,!1):!1};q.prototype.sq=function(a){return a?this.b.Zf(a,this.rd,this.sd,!1):!1};q.prototype.fq=function(a){return a?this.b.Zf(a,this.rd,this.sd,!1):!1};b.i=new q;c.prototype.Im=function(a,b){var c=this.of;if(0>c||c>=this.touches.length)a.u(0);else{var d,
e,f,g,h;ha(b)?(d=this.b.yd(0),e=d.scale,f=d.mb,g=d.Gb,h=d.e,d.scale=1,d.mb=1,d.Gb=1,d.e=0,a.u(d.pa(this.touches[c].x,this.touches[c].y,!0)),d.scale=e,d.mb=f,d.Gb=g,d.e=h):(d=ia(b)?this.b.yd(b):this.b.vg(b))?a.u(d.pa(this.touches[c].x,this.touches[c].y,!0)):a.u(0)}};c.prototype.Jm=function(a,b){var c=this.of;if(0>c||c>=this.touches.length)a.u(0);else{var d,e,f,g,h;ha(b)?(d=this.b.yd(0),e=d.scale,f=d.mb,g=d.Hb,h=d.e,d.scale=1,d.mb=1,d.Hb=1,d.e=0,a.u(d.pa(this.touches[c].x,this.touches[c].y,!1)),d.scale=
e,d.mb=f,d.Hb=g,d.e=h):(d=ia(b)?this.b.yd(b):this.b.vg(b))?a.u(d.pa(this.touches[c].x,this.touches[c].y,!1)):a.u(0)}};b.Tb=new c})();
function nc(f){this.b=f;var n=this;this.b.da||(jQuery(document).mousemove(function(a){n.fh(a)}),jQuery(document).mousedown(function(a){n.eh(a)}),jQuery(document).mouseup(function(a){n.gh(a)}));f=0<this.b.nb?document:this.b.canvas;this.b.eb?f=window.Canvas:this.b.hc&&(f=window);window.navigator.pointerEnabled?(f.addEventListener("pointerdown",function(a){n.ih(a)},!1),f.addEventListener("pointermove",function(a){n.hh(a)},!1),f.addEventListener("pointerup",function(a){n.Gd(a)},!1),f.addEventListener("pointercancel",
function(a){n.Gd(a)},!1)):window.navigator.msPointerEnabled?(f.addEventListener("MSPointerDown",function(a){n.ih(a)},!1),f.addEventListener("MSPointerMove",function(a){n.hh(a)},!1),f.addEventListener("MSPointerUp",function(a){n.Gd(a)},!1),f.addEventListener("MSPointerCancel",function(a){n.Gd(a)},!1)):(f.addEventListener("touchstart",function(a){n.Yi(a)},!1),f.addEventListener("touchmove",function(a){n.Xi(a)},!1),f.addEventListener("touchend",function(a){n.Nf(a)},!1),f.addEventListener("touchcancel",
function(a){n.Nf(a)},!1))}
(function(){function f(a){var c,f;c=0;for(f=a.G.length;c<f;c++)if(a.G[c]instanceof e.Ea)return a.G[c];return null}function n(){}function a(){}var e=nc.prototype,q={left:0,top:0};e.eh=function(a){1===a.which&&this.Bl("leftmouse",a.pageX,a.pageY)};e.fh=function(a){1===a.which&&this.Cl("leftmouse",a.pageX,a.pageY)};e.gh=function(a){1===a.which&&this.Dl("leftmouse")};e.Yi=function(a){a.preventDefault&&gb(a)&&a.preventDefault();var c,e,f,g;c=0;for(e=a.changedTouches.length;c<e;c++)f=a.changedTouches[c],
g=f.identifier,this.Bl(g?g.toString():"<none>",f.pageX,f.pageY)};e.Xi=function(a){a.preventDefault&&a.preventDefault();var c,e,f,g;c=0;for(e=a.changedTouches.length;c<e;c++)f=a.changedTouches[c],g=f.identifier,this.Cl(g?g.toString():"<none>",f.pageX,f.pageY)};e.Nf=function(a){a.preventDefault&&gb(a)&&a.preventDefault();var c,e,f;c=0;for(e=a.changedTouches.length;c<e;c++)f=a.changedTouches[c],f=f.identifier,this.Dl(f?f.toString():"<none>")};e.ih=function(a){a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&
"mouse"!==a.pointerType&&(a.preventDefault&&gb(a)&&a.preventDefault(),this.Bl(a.pointerId.toString(),a.pageX,a.pageY))};e.hh=function(a){a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType&&(a.preventDefault&&a.preventDefault(),this.Cl(a.pointerId.toString(),a.pageX,a.pageY))};e.Gd=function(a){a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType&&(a.preventDefault&&gb(a)&&a.preventDefault(),this.Dl(a.pointerId.toString()))};e.Bl=function(a,c,e){var n=this.b.da?q:jQuery(this.b.canvas).offset();
c-=n.left;e-=n.top;var g,k,r,h,n=this.Jf.Uc(),u,t,l,B=null;u=0;for(t=n.length;u<t;u++)if(l=n[u],g=f(l),g.enabled&&!g.Zd&&(g=l.d.pa(c,e,!0),k=l.d.pa(c,e,!1),l.ma(),l.bb(g,k)))B?l.d.index>B.d.index?(B=l,r=g,h=k):l.d.index===B.d.index&&l.uc()>B.uc()&&(B=l,r=g,h=k):(B=l,r=g,h=k);B&&f(B).lt(a,r,h)};e.Cl=function(a,c,e){var n=this.b.da?q:jQuery(this.b.canvas).offset();c-=n.left;e-=n.top;var g,k=this.Jf.Uc(),r,h,u;r=0;for(h=k.length;r<h;r++)g=k[r],u=f(g),!u.enabled||!u.Zd||u.Zd&&u.sk!==a||(n=g.d.pa(c,e,
!0),g=g.d.pa(c,e,!1),u.pt(n,g))};e.Dl=function(a){var c=this.Jf.Uc(),e,n,g;e=0;for(n=c.length;e<n;e++)g=c[e],g=f(g),g.Zd&&g.sk===a&&g.ut()};e.ib=function(a){this.behavior=a;this.b=a.b};e.ib.prototype.ka=function(){};e.Ea=function(a,c){this.type=a;this.behavior=a.behavior;this.Eb=c;this.b=a.b};var c=e.Ea.prototype;c.ka=function(){this.Zd=!1;this.en=this.dn=0;this.sk="<none>";this.ak=this.ra[0];this.enabled=0!==this.ra[1]};c.Zb=function(){return{enabled:this.enabled}};c.yc=function(a){this.enabled=
a.enabled;this.Zd=!1};c.lt=function(a,c,e){this.dn=c-this.Eb.x;this.en=e-this.Eb.y;this.Zd=!0;this.sk=a;this.b.ja=!0;this.b.trigger(nc.prototype.i.gq,this.Eb);this.b.ja=!1};c.pt=function(a,c){var e=a-this.dn,f=c-this.en;if(0===this.ak){if(this.Eb.x!==e||this.Eb.y!==f)this.Eb.x=e,this.Eb.y=f,this.Eb.wa()}else 1===this.ak?this.Eb.x!==e&&(this.Eb.x=e,this.Eb.wa()):2===this.ak&&this.Eb.y!==f&&(this.Eb.y=f,this.Eb.wa())};c.ut=function(){this.Zd=!1;this.b.ja=!0;this.b.trigger(nc.prototype.i.hq,this.Eb);
this.b.ja=!1};c.ab=function(){};n.prototype.gq=function(){return!0};n.prototype.hq=function(){return!0};e.i=new n;a.prototype.xq=function(a){this.enabled=0!==a;this.enabled||(this.Zd=!1)};e.na=new a;e.Tb=new function(){}})();
function fc(){return[hc,ic,jc,kc,gc,mc,Z,nc,jc.prototype.i.Pp,gc.prototype.na.yq,jc.prototype.i.Sj,Z.prototype.i.Rp,Y.prototype.na.Aq,jc.prototype.i.Np,Y.prototype.i.Kp,Y.prototype.na.wq,Y.prototype.na.Wp,hc.prototype.na.Play,Z.prototype.i.Uj,Y.prototype.na.Dq,Y.prototype.i.Cm,gc.prototype.na.Bq,jc.prototype.i.Am,gc.prototype.i.Sp,Y.prototype.i.Cq,gc.prototype.na.Lp,gc.prototype.i.Qp,gc.prototype.na.zq,Y.prototype.na.Fp,nc.prototype.na.xq,Y.prototype.i.zm,Y.prototype.na.uq,Y.prototype.na.vq,Y.prototype.na.Vp]}
;
