// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa,ca,ea,J,fa,ga,P,R,ia,la,ma,na,oa,T,qa,sa,U,ta,va,wa,xa,ya,za,Aa,V,Ba,Ca,Da,Ea,Fa,Ha,Ia,Ja,Oa,Pa,Qa,Ra,Sa,Ta,Ua,Va,Wa,Xa,Ya,Za,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,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,W,Wb,Xb={},Yb={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(k){return k.__proto__}:function(k){return k.constructor.prototype});
(function(){function k(g,q,c,a){this.set(g,q,c,a)}function p(){this.Kb=this.Jb=this.Mb=this.Lb=this.Zb=this.Yb=this.ib=this.hb=0}function f(g,q,c,a){g<q?c<a?(w=g<c?g:c,t=q>a?q:a):(w=g<a?g:a,t=q>c?q:c):c<a?(w=q<c?q:c,t=g>a?g:a):(w=q<a?q:a,t=g>c?g:c)}function r(){this.items=this.Oc=null;this.Ff=0;v&&(this.Oc=new Set);this.jg=[];this.de=!0}function l(g){A[K++]=g}function b(){this.ca=this.Bj=this.y=this.ek=0}function a(g){this.Vf=[];this.$m=this.bn=this.cn=this.an=0;this.Eh(g)}function d(g,c){this.jk=
g;this.ik=c;this.cells={}}function e(g,c){this.jk=g;this.ik=c;this.cells={}}function h(g,c,q){var a;return B.length?(a=B.pop(),a.Tk=g,a.x=c,a.y=q,a):new aa(g,c,q)}function c(g,c,q){this.Tk=g;this.x=c;this.y=q;this.Za=new ca}function m(g,c,q){var a;return u.length?(a=u.pop(),a.Tk=g,a.x=c,a.y=q,a):new ea(g,c,q)}function s(g,c,q){this.Tk=g;this.x=c;this.y=q;this.Za=[];this.Ef=!0;this.dd=new ca;this.ng=!1}function n(g,c){return g.Sc-c.Sc}J=function(g){window.console&&window.console.log&&window.console.log(g)};
fa=function(g){window.console&&window.console.error&&window.console.error(g)};ga=function(g){return"undefined"===typeof g};P=function(g){return"number"===typeof g};R=function(g){return"string"===typeof g};ia=function(g){return 0<g&&0===(g-1&g)};la=function(g){--g;for(var c=1;32>c;c<<=1)g|=g>>c;return g+1};ma=function(g){return 0>g?-g:g};na=function(g,c){return g<c?g:c};oa=Math.PI;T=function(g){return 0<=g?g|0:(g|0)-1};qa=function(g){var c=g|0;return c===g?c:c+1};sa=function(g,c,q,a,b,d,x,e){var m,
n,v,h;g<q?(n=g,m=q):(n=q,m=g);b<x?(h=b,v=x):(h=x,v=b);if(m<h||n>v)return!1;c<a?(n=c,m=a):(n=a,m=c);d<e?(h=d,v=e):(h=e,v=d);if(m<h||n>v)return!1;m=b-g+x-q;n=d-c+e-a;g=q-g;c=a-c;b=x-b;d=e-d;e=ma(c*b-d*g);return ma(b*n-d*m)>e?!1:ma(g*n-c*m)<=e};k.prototype.set=function(g,c,q,a){this.left=g;this.top=c;this.right=q;this.bottom=a};k.prototype.Uh=function(g){this.left=g.left;this.top=g.top;this.right=g.right;this.bottom=g.bottom};k.prototype.width=function(){return this.right-this.left};k.prototype.height=
function(){return this.bottom-this.top};k.prototype.offset=function(g,c){this.left+=g;this.top+=c;this.right+=g;this.bottom+=c;return this};k.prototype.normalize=function(){var g=0;this.left>this.right&&(g=this.left,this.left=this.right,this.right=g);this.top>this.bottom&&(g=this.top,this.top=this.bottom,this.bottom=g)};k.prototype.Ob=function(g,c){return g>=this.left&&g<=this.right&&c>=this.top&&c<=this.bottom};k.prototype.ci=function(g){return this.left===g.left&&this.top===g.top&&this.right===
g.right&&this.bottom===g.bottom};U=k;p.prototype.Dh=function(g){this.hb=g.left;this.ib=g.top;this.Yb=g.right;this.Zb=g.top;this.Lb=g.right;this.Mb=g.bottom;this.Jb=g.left;this.Kb=g.bottom};p.prototype.op=function(g,c){if(0===c)this.Dh(g);else{var q=Math.sin(c),a=Math.cos(c),b=g.left*q,d=g.top*q,x=g.right*q,q=g.bottom*q,e=g.left*a,m=g.top*a,n=g.right*a,a=g.bottom*a;this.hb=e-d;this.ib=m+b;this.Yb=n-d;this.Zb=m+x;this.Lb=n-q;this.Mb=a+x;this.Jb=e-q;this.Kb=a+b}};p.prototype.offset=function(g,c){this.hb+=
g;this.ib+=c;this.Yb+=g;this.Zb+=c;this.Lb+=g;this.Mb+=c;this.Jb+=g;this.Kb+=c;return this};var w=0,t=0;p.prototype.en=function(g){f(this.hb,this.Yb,this.Lb,this.Jb);g.left=w;g.right=t;f(this.ib,this.Zb,this.Mb,this.Kb);g.top=w;g.bottom=t};p.prototype.Ob=function(g,c){var q=this.Yb-this.hb,a=this.Zb-this.ib,b=this.Lb-this.hb,d=this.Mb-this.ib,x=g-this.hb,e=c-this.ib,m=q*q+a*a,n=q*b+a*d,a=q*x+a*e,v=b*b+d*d,h=b*x+d*e,C=1/(m*v-n*n),q=(v*a-n*h)*C,m=(m*h-n*a)*C;if(0<=q&&0<m&&1>q+m)return!0;q=this.Jb-this.hb;
a=this.Kb-this.ib;m=q*q+a*a;n=q*b+a*d;a=q*x+a*e;C=1/(m*v-n*n);q=(v*a-n*h)*C;m=(m*h-n*a)*C;return 0<=q&&0<m&&1>q+m};ta=p;va=function(g,c){for(var q in c)c.hasOwnProperty(q)&&(g[q]=c[q]);return g};wa=function(g,c){var q,a;c=T(c);if(!(0>c||c>=g.length)){q=c;for(a=g.length-1;q<a;q++)g[q]=g[q+1];g.length=a}};xa=function(g,c){g.length=c.length;var q,a;q=0;for(a=c.length;q<a;q++)g[q]=c[q]};ya=function(g,c){g.push.apply(g,c)};za=function(g,c){var q,a;q=0;for(a=g.length;q<a;++q)if(g[q]===c)return q;return-1};
Aa=function(g,c){var q=za(g,c);-1!==q&&wa(g,q)};V=function(g){return g/(180/oa)};Ba=function(g){return 180/oa*g};Ca=function(g){g%=360;0>g&&(g+=360);return g};Da=function(g){g%=2*oa;0>g&&(g+=2*oa);return g};Ea=function(g){return Ca(Ba(g))};Fa=function(g){return Da(V(g))};Ha=function(g,c,q,a){return Math.atan2(a-c,q-g)};Ia=function(g,c){if(g===c)return 0;var q=Math.sin(g),a=Math.cos(g),b=Math.sin(c),d=Math.cos(c),q=q*b+a*d;return 1<=q?0:-1>=q?oa:Math.acos(q)};Ja=function(g,c,q){var a=Math.sin(g),b=
Math.cos(g),d=Math.sin(c),x=Math.cos(c);return Math.acos(a*d+b*x)>q?0<b*d-a*x?Da(g+q):Da(g-q):Da(c)};Oa=function(g,c){var q=Math.sin(g),a=Math.cos(g),b=Math.sin(c),d=Math.cos(c);return 0>=a*b-q*d};Pa=function(g,c,q,a,b,d){if(0===q)return d?g:c;var x=Math.sin(q);q=Math.cos(q);g-=a;c-=b;var m=g*x;g=g*q-c*x;c=c*q+m;return d?g+a:c+b};Qa=function(g,c,q,a){g=q-g;c=a-c;return Math.sqrt(g*g+c*c)};Ra=function(g,c){return!g!==!c};Sa=function(g){for(var c in g)if(g.hasOwnProperty(c))return!0;return!1};Ta=function(g){for(var c in g)g.hasOwnProperty(c)&&
delete g[c]};var q=+new Date;Ua=function(){if("undefined"!==typeof window.performance){var g=window.performance;if("undefined"!==typeof g.now)return g.now();if("undefined"!==typeof g.webkitNow)return g.webkitNow();if("undefined"!==typeof g.mozNow)return g.mozNow();if("undefined"!==typeof g.msNow)return g.msNow()}return Date.now()-q};var g=!1,x=g=!1,C=!1;"undefined"!==typeof window&&(g=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),g=!g&&/safari/i.test(navigator.userAgent),
x=/(iphone|ipod|ipad)/i.test(navigator.userAgent),C=window.c2ejecta);var v=!g&&!C&&!x&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;r.prototype.contains=function(g){return this.Hd()?!1:v?this.Oc.has(g):this.items&&this.items.hasOwnProperty(g)};r.prototype.add=function(g){if(v)this.Oc.has(g)||(this.Oc.add(g),this.de=!1);else{var c=g.toString(),q=this.items;q?q.hasOwnProperty(c)||(q[c]=g,this.Ff++,this.de=!1):(this.items={},this.items[c]=g,this.Ff=1,this.de=!1)}};r.prototype.remove=
function(g){if(!this.Hd())if(v)this.Oc.has(g)&&(this.Oc["delete"](g),this.de=!1);else if(this.items){g=g.toString();var c=this.items;c.hasOwnProperty(g)&&(delete c[g],this.Ff--,this.de=!1)}};r.prototype.clear=function(){this.Hd()||(v?this.Oc.clear():(this.items=null,this.Ff=0),this.jg.length=0,this.de=!0)};r.prototype.Hd=function(){return 0===this.count()};r.prototype.count=function(){return v?this.Oc.size:this.Ff};var A=null,K=0;r.prototype.zu=function(){if(!this.de){if(v)this.jg.length=this.Oc.size,
A=this.jg,K=0,this.Oc.forEach(l),A=null,K=0;else{var g=this.jg;g.length=this.Ff;var c,q=0,a=this.items;if(a)for(c in a)a.hasOwnProperty(c)&&(g[q++]=a[c])}this.de=!0}};r.prototype.Rc=function(){this.zu();return this.jg};ca=r;new ca;Va=function(g,c){v?Wa(g,c.Oc):Xa(g,c.Rc())};Wa=function(g,c){var q,a,b,d;a=q=0;for(b=g.length;q<b;++q)d=g[q],c.has(d)||(g[a++]=d);g.length=a};Xa=function(g,c){var q,a,b,d;a=q=0;for(b=g.length;q<b;++q)d=g[q],-1===za(c,d)&&(g[a++]=d);g.length=a};b.prototype.add=function(g){this.y=
g-this.ek;this.Bj=this.ca+this.y;this.ek=this.Bj-this.ca-this.y;this.ca=this.Bj};b.prototype.reset=function(){this.ca=this.Bj=this.y=this.ek=0};Ya=b;Za=function(g){return g.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};a.prototype.Eh=function(g){this.cp=g;this.nj=g.length/2;this.Vf.length=g.length;this.fk=this.gk=-1;this.jn=0};a.prototype.ot=function(){return!this.cp.length};a.prototype.Na=function(){for(var g=this.Vf,c=g[0],q=c,a=g[1],b=a,d,x,m=1,e=this.nj;m<e;++m)x=2*m,d=g[x],x=g[x+1],d<c&&(c=d),
d>q&&(q=d),x<a&&(a=x),x>b&&(b=x);this.an=c;this.bn=q;this.cn=a;this.$m=b};a.prototype.Dh=function(g,c,q){this.Vf.length=8;this.nj=4;var a=this.Vf;a[0]=g.left-c;a[1]=g.top-q;a[2]=g.right-c;a[3]=g.top-q;a[4]=g.right-c;a[5]=g.bottom-q;a[6]=g.left-c;a[7]=g.bottom-q;this.gk=g.right-g.left;this.fk=g.bottom-g.top;this.Na()};a.prototype.jr=function(g,c,q){if(this.gk!==g||this.fk!==c||this.jn!==q){this.gk=g;this.fk=c;this.jn=q;var a,b,d,x,m,e=0,n=1,v=this.cp,h=this.Vf;0!==q&&(e=Math.sin(q),n=Math.cos(q));
q=0;for(d=this.nj;q<d;q++)a=2*q,b=a+1,x=v[a]*g,m=v[b]*c,h[a]=x*n-m*e,h[b]=m*n+x*e;this.Na()}};a.prototype.Ob=function(g,c){var q=this.Vf;if(g===q[0]&&c===q[1])return!0;var a,b,d,x=this.nj,m=this.an-110,e=this.cn-101,n=this.bn+131,v=this.$m+120,h,C,K=0,A=0;for(a=0;a<x;a++)b=2*a,d=(a+1)%x*2,h=q[b],b=q[b+1],C=q[d],d=q[d+1],sa(m,e,g,c,h,b,C,d)&&K++,sa(n,v,g,c,h,b,C,d)&&A++;return 1===K%2||1===A%2};$a=a;d.prototype.ie=function(g,c,q){var a;a=this.cells[g];return a?(a=a[c])?a:q?(a=h(this,g,c),this.cells[g][c]=
a):null:q?(a=h(this,g,c),this.cells[g]={},this.cells[g][c]=a):null};d.prototype.$b=function(g){return T(g/this.jk)};d.prototype.ac=function(g){return T(g/this.ik)};d.prototype.update=function(g,c,q){var a,b,d,x,m;if(c)for(a=c.left,b=c.right;a<=b;++a)for(d=c.top,x=c.bottom;d<=x;++d)if(!q||!q.Ob(a,d))if(m=this.ie(a,d,!1))m.remove(g),m.Hd()&&(m.Za.clear(),1E3>B.length&&B.push(m),this.cells[a][d]=null);if(q)for(a=q.left,b=q.right;a<=b;++a)for(d=q.top,x=q.bottom;d<=x;++d)c&&c.Ob(a,d)||this.ie(a,d,!0).cl(g)};
d.prototype.ep=function(g,c){var q,a,b,d,x,m;q=this.$b(g.left);b=this.ac(g.top);a=this.$b(g.right);for(x=this.ac(g.bottom);q<=a;++q)for(d=b;d<=x;++d)(m=this.ie(q,d,!1))&&m.dump(c)};ab=d;e.prototype.ie=function(g,c,q){var a;a=this.cells[g];return a?(a=a[c])?a:q?(a=m(this,g,c),this.cells[g][c]=a):null:q?(a=m(this,g,c),this.cells[g]={},this.cells[g][c]=a):null};e.prototype.$b=function(g){return T(g/this.jk)};e.prototype.ac=function(g){return T(g/this.ik)};e.prototype.update=function(g,c,q){var a,b,d,
x,m;if(c)for(a=c.left,b=c.right;a<=b;++a)for(d=c.top,x=c.bottom;d<=x;++d)if(!q||!q.Ob(a,d))if(m=this.ie(a,d,!1))m.remove(g),m.Hd()&&(m.reset(),1E3>u.length&&u.push(m),this.cells[a][d]=null);if(q)for(a=q.left,b=q.right;a<=b;++a)for(d=q.top,x=q.bottom;d<=x;++d)c&&c.Ob(a,d)||this.ie(a,d,!0).cl(g)};e.prototype.ep=function(g,c,q,a,d){var b,x;g=this.$b(g);c=this.ac(c);q=this.$b(q);for(b=this.ac(a);g<=q;++g)for(a=c;a<=b;++a)(x=this.ie(g,a,!1))&&x.dump(d)};e.prototype.wt=function(g){var c,q,a,b,d;c=g.left;
a=g.top;q=g.right;for(b=g.bottom;c<=q;++c)for(g=a;g<=b;++g)if(d=this.ie(c,g,!1))d.Ef=!1};bb=e;var B=[];c.prototype.Hd=function(){return this.Za.Hd()};c.prototype.cl=function(g){this.Za.add(g)};c.prototype.remove=function(g){this.Za.remove(g)};c.prototype.dump=function(g){ya(g,this.Za.Rc())};aa=c;var u=[];s.prototype.Hd=function(){if(!this.Za.length)return!0;if(this.Za.length>this.dd.count())return!1;this.Ek();return!0};s.prototype.cl=function(g){this.dd.contains(g)?(this.dd.remove(g),this.dd.Hd()&&
(this.ng=!1)):this.Za.length?(this.Za[this.Za.length-1].uc()>g.uc()&&(this.Ef=!1),this.Za.push(g)):(this.Za.push(g),this.Ef=!0)};s.prototype.remove=function(g){this.dd.add(g);this.ng=!0;30<=this.dd.count()&&this.Ek()};s.prototype.Ek=function(){this.ng&&(this.dd.count()===this.Za.length?this.reset():(Va(this.Za,this.dd),this.dd.clear(),this.ng=!1))};s.prototype.Sr=function(){this.Ef||(this.Za.sort(n),this.Ef=!0)};s.prototype.reset=function(){this.Za.length=0;this.Ef=!0;this.dd.clear();this.ng=!1};
s.prototype.dump=function(g){this.Ek();this.Sr();this.Za.length&&g.push(this.Za)};ea=s;var z="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");cb=function(g){return 0>=g||11<=g?"source-over":z[g-1]};db=function(g,c,q){if(q)switch(g.mb=q.ONE,g.lb=q.ONE_MINUS_SRC_ALPHA,c){case 1:g.mb=q.ONE;g.lb=q.ONE;break;case 3:g.mb=q.ONE;g.lb=q.ZERO;break;case 4:g.mb=q.ONE_MINUS_DST_ALPHA;g.lb=q.ONE;break;case 5:g.mb=q.DST_ALPHA;g.lb=q.ZERO;
break;case 6:g.mb=q.ZERO;g.lb=q.SRC_ALPHA;break;case 7:g.mb=q.ONE_MINUS_DST_ALPHA;g.lb=q.ZERO;break;case 8:g.mb=q.ZERO;g.lb=q.ONE_MINUS_SRC_ALPHA;break;case 9:g.mb=q.DST_ALPHA;g.lb=q.ONE_MINUS_SRC_ALPHA;break;case 10:g.mb=q.ONE_MINUS_DST_ALPHA,g.lb=q.SRC_ALPHA}};eb=function(g){return Math.round(1E6*g)/1E6};fb=function(g,q){return"string"!==typeof g||"string"!==typeof q||g.length!==q.length?!1:g===q?!0:g.toLowerCase()===q.toLowerCase()};gb=function(g){g=g.target;return!g||g===document||g===window||
document&&document.body&&g===document.body||fb(g.tagName,"canvas")?!0:!1}})();var Zb="undefined"!==typeof Float32Array?Float32Array:Array;function $b(k){var p=new Zb(3);k&&(p[0]=k[0],p[1]=k[1],p[2]=k[2]);return p}function ac(k){var p=new Zb(16);k&&(p[0]=k[0],p[1]=k[1],p[2]=k[2],p[3]=k[3],p[4]=k[4],p[5]=k[5],p[6]=k[6],p[7]=k[7],p[8]=k[8],p[9]=k[9],p[10]=k[10],p[11]=k[11],p[12]=k[12],p[13]=k[13],p[14]=k[14],p[15]=k[15]);return p}
function bc(k,p){p[0]=k[0];p[1]=k[1];p[2]=k[2];p[3]=k[3];p[4]=k[4];p[5]=k[5];p[6]=k[6];p[7]=k[7];p[8]=k[8];p[9]=k[9];p[10]=k[10];p[11]=k[11];p[12]=k[12];p[13]=k[13];p[14]=k[14];p[15]=k[15]}function cc(k,p){var f=p[0],r=p[1];p=p[2];k[0]*=f;k[1]*=f;k[2]*=f;k[3]*=f;k[4]*=r;k[5]*=r;k[6]*=r;k[7]*=r;k[8]*=p;k[9]*=p;k[10]*=p;k[11]*=p}
function dc(k,p,f,r){r||(r=ac());var l,b,a,d,e,h,c,m,s=k[0],n=k[1];k=k[2];b=f[0];a=f[1];l=f[2];f=p[1];h=p[2];s===p[0]&&n===f&&k===h?(k=r,k[0]=1,k[1]=0,k[2]=0,k[3]=0,k[4]=0,k[5]=1,k[6]=0,k[7]=0,k[8]=0,k[9]=0,k[10]=1,k[11]=0,k[12]=0,k[13]=0,k[14]=0,k[15]=1):(f=s-p[0],h=n-p[1],c=k-p[2],m=1/Math.sqrt(f*f+h*h+c*c),f*=m,h*=m,c*=m,p=a*c-l*h,l=l*f-b*c,b=b*h-a*f,(m=Math.sqrt(p*p+l*l+b*b))?(m=1/m,p*=m,l*=m,b*=m):b=l=p=0,a=h*b-c*l,d=c*p-f*b,e=f*l-h*p,(m=Math.sqrt(a*a+d*d+e*e))?(m=1/m,a*=m,d*=m,e*=m):e=d=a=0,
r[0]=p,r[1]=a,r[2]=f,r[3]=0,r[4]=l,r[5]=d,r[6]=h,r[7]=0,r[8]=b,r[9]=e,r[10]=c,r[11]=0,r[12]=-(p*s+l*n+b*k),r[13]=-(a*s+d*n+e*k),r[14]=-(f*s+h*n+c*k),r[15]=1)}
(function(){function k(b){this.le=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.kn=$b([0,0,100]);this.ko=$b([0,0,0]);this.Kp=$b([0,1,0]);this.Cm=$b([1,1,1]);this.un=!0;this.xl=ac();this.zc=ac();this.$n=ac();this.rk=ac();this.m=b;this.On()}function p(b,a,d){this.m=b;this.Fh=a;this.name=d;this.yc=b.getAttribLocation(a,"aPos");this.qe=b.getAttribLocation(a,"aTex");this.ho=b.getUniformLocation(a,"matP");this.Ti=b.getUniformLocation(a,"matMV");this.Kf=
b.getUniformLocation(a,"opacity");this.jo=b.getUniformLocation(a,"samplerFront");this.dh=b.getUniformLocation(a,"samplerBack");this.Ze=b.getUniformLocation(a,"destStart");this.Ye=b.getUniformLocation(a,"destEnd");this.tl=b.getUniformLocation(a,"seconds");this.sl=b.getUniformLocation(a,"pixelWidth");this.rl=b.getUniformLocation(a,"pixelHeight");this.bh=b.getUniformLocation(a,"layerScale");this.ah=b.getUniformLocation(a,"layerAngle");this.fh=b.getUniformLocation(a,"viewOrigin");this.eh=b.getUniformLocation(a,
"scrollPos");this.bt=!!(this.sl||this.rl||this.tl||this.dh||this.Ze||this.Ye||this.bh||this.ah||this.fh||this.eh);this.so=this.uo=-999;this.Vi=1;this.oo=this.no=0;this.qo=this.mo=this.lo=1;this.wo=this.vo=this.yo=this.xo=this.po=0;this.ml=[];this.ro=ac();this.Kf&&b.uniform1f(this.Kf,1);this.jo&&b.uniform1i(this.jo,0);this.dh&&b.uniform1i(this.dh,1);this.Ze&&b.uniform2f(this.Ze,0,0);this.Ye&&b.uniform2f(this.Ye,1,1);this.bh&&b.uniform1f(this.bh,1);this.ah&&b.uniform1f(this.ah,0);this.fh&&b.uniform2f(this.fh,
0,0);this.eh&&b.uniform2f(this.eh,0,0);this.Pe=!1}function f(b,a){this.type=b;this.q=a;this.m=a.m;this.vc=this.mc=this.Mo=0;this.Z=this.Pc=null;this.pp=[]}k.prototype.On=function(){var b=this.m,a;this.ao=1;this.Ve=this.oe=null;this.Yh=1;b.clearColor(0,0,0,0);b.clear(b.COLOR_BUFFER_BIT);b.enable(b.BLEND);b.blendFunc(b.ONE,b.ONE_MINUS_SRC_ALPHA);b.disable(b.CULL_FACE);b.disable(b.DEPTH_TEST);this.bo=b.ONE;this.Zn=b.ONE_MINUS_SRC_ALPHA;this.Nl=b.createBuffer();b.bindBuffer(b.ARRAY_BUFFER,this.Nl);this.Oh=
Array(4);this.Jh=Array(4);for(a=0;4>a;a++)this.Oh[a]=b.createBuffer(),b.bindBuffer(b.ARRAY_BUFFER,this.Oh[a]),this.Jh[a]=b.createBuffer(),b.bindBuffer(b.ARRAY_BUFFER,this.Jh[a]);this.xd=0;this.et=b.createBuffer();b.bindBuffer(b.ELEMENT_ARRAY_BUFFER,this.et);this.ym=new Float32Array(16E3);this.lm=new Float32Array(16E3);this.Yo=new Float32Array(32E3);for(var d=new Uint16Array(12E3),e=a=0;12E3>a;)d[a++]=e,d[a++]=e+1,d[a++]=e+2,d[a++]=e,d[a++]=e+2,d[a++]=e+3,e+=4;b.bufferData(b.ELEMENT_ARRAY_BUFFER,d,
b.STATIC_DRAW);this.Tf=this.od=0;this.Va=[];a=this.qk({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.Va.push(a);a=this.qk({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.Va.push(a);for(var h in ec)ec.hasOwnProperty(h)&&this.Va.push(this.qk(ec[h],
"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}",h));b.activeTexture(b.TEXTURE0);b.bindTexture(b.TEXTURE_2D,null);this.td=[];this.Uc=0;this.Qb=this.yb=!1;this.qn=this.Rg=-1;this.xg=null;this.us=b.createFramebuffer();this.gp=null;this.Ae=$b([0,0,0]);b=b.getParameter(b.ALIASED_POINT_SIZE_RANGE);this.zt=b[0];this.yl=
b[1];2048<this.yl&&(this.yl=2048);this.jd(0)};p.prototype.um=function(b){var a=this.ro;if(a[0]!==b[0]||a[1]!==b[1]||a[2]!==b[2]||a[3]!==b[3]||a[4]!==b[4]||a[5]!==b[5]||a[6]!==b[6]||a[7]!==b[7]||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])bc(b,this.ro),this.m.uniformMatrix4fv(this.Ti,!1,b)};k.prototype.qk=function(b,a,d){var e=this.m,h=e.createShader(e.FRAGMENT_SHADER);e.shaderSource(h,b.src);e.compileShader(h);if(!e.getShaderParameter(h,
e.COMPILE_STATUS))return e.deleteShader(h),null;var c=e.createShader(e.VERTEX_SHADER);e.shaderSource(c,a);e.compileShader(c);if(!e.getShaderParameter(c,e.COMPILE_STATUS))return e.deleteShader(h),e.deleteShader(c),null;a=e.createProgram();e.attachShader(a,h);e.attachShader(a,c);e.linkProgram(a);if(!e.getProgramParameter(a,e.LINK_STATUS))return e.deleteShader(h),e.deleteShader(c),e.deleteProgram(a),null;e.useProgram(a);e.deleteShader(h);e.deleteShader(c);d=new p(e,a,d);d.Ak=b.Ak||0;d.Bk=b.Bk||0;d.pn=
!!b.pn;d.Wm=!!b.Wm;d.N=b.N||[];b=0;for(h=d.N.length;b<h;b++)d.N[b][1]=e.getUniformLocation(a,d.N[b][0]),d.ml.push(0),e.uniform1f(d.N[b][1],0);return d};k.prototype.Qk=function(b){var a,d;a=0;for(d=this.Va.length;a<d;a++)if(this.Va[a].name===b)return a;return-1};k.prototype.bp=function(b,a,d){var e=this.zc,h=this.xl,c=[0,0,0,0,0,0,0,0];c[0]=e[0]*b+e[4]*a+e[12];c[1]=e[1]*b+e[5]*a+e[13];c[2]=e[2]*b+e[6]*a+e[14];c[3]=e[3]*b+e[7]*a+e[15];c[4]=h[0]*c[0]+h[4]*c[1]+h[8]*c[2]+h[12]*c[3];c[5]=h[1]*c[0]+h[5]*
c[1]+h[9]*c[2]+h[13]*c[3];c[6]=h[2]*c[0]+h[6]*c[1]+h[10]*c[2]+h[14]*c[3];c[7]=-c[2];0!==c[7]&&(c[7]=1/c[7],c[4]*=c[7],c[5]*=c[7],c[6]*=c[7],d[0]=(.5*c[4]+.5)*this.width,d[1]=(.5*c[5]+.5)*this.height)};k.prototype.Zf=function(b,a,d){if(this.width!==b||this.height!==a||d){this.Bd();this.width=b;this.height=a;this.m.viewport(0,0,b,a);a=b/a;var e=this.xl,h;h=1*Math.tan(45*Math.PI/360);a*=h;b=-a;d=-h;e||(e=ac());var c=a-b,m=h-d;e[0]=2/c;e[1]=0;e[2]=0;e[3]=0;e[4]=0;e[5]=2/m;e[6]=0;e[7]=0;e[8]=(a+b)/c;e[9]=
(h+d)/m;e[10]=-1001/999;e[11]=-1;e[12]=0;e[13]=0;e[14]=-2E3/999;e[15]=0;dc(this.kn,this.ko,this.Kp,this.zc);b=[0,0];a=[0,0];this.bp(0,0,b);this.bp(1,1,a);this.Cm[0]=1/(a[0]-b[0]);this.Cm[1]=-1/(a[1]-b[1]);b=0;for(a=this.Va.length;b<a;b++)d=this.Va[b],d.Pe=!1,d.ho&&(this.m.useProgram(d.Fh),this.m.uniformMatrix4fv(d.ho,!1,this.xl));this.m.useProgram(this.Va[this.Rg].Fh);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.Ve=this.oe=null}};k.prototype.fd=function(){dc(this.kn,this.ko,this.Kp,this.zc);cc(this.zc,this.Cm)};k.prototype.translate=function(b,a){if(0!==b||0!==a){this.Ae[0]=b;this.Ae[1]=a;this.Ae[2]=0;var d=this.zc,e=this.Ae,h=e[0],c=e[1],e=e[2];d[12]=d[0]*h+d[4]*c+d[8]*e+d[12];d[13]=d[1]*h+d[5]*c+d[9]*e+d[13];d[14]=d[2]*h+d[6]*c+d[10]*e+d[14];d[15]=d[3]*h+d[7]*c+d[11]*e+d[15]}};k.prototype.scale=function(b,a){if(1!==b||1!==a)this.Ae[0]=b,this.Ae[1]=a,this.Ae[2]=1,cc(this.zc,this.Ae)};k.prototype.Xl=
function(b){if(0!==b){var a=this.zc,d,e=Math.sin(b);b=Math.cos(b);var h=a[0],c=a[1],m=a[2],f=a[3],n=a[4],w=a[5],t=a[6],q=a[7];d?a!==d&&(d[8]=a[8],d[9]=a[9],d[10]=a[10],d[11]=a[11],d[12]=a[12],d[13]=a[13],d[14]=a[14],d[15]=a[15]):d=a;d[0]=h*b+n*e;d[1]=c*b+w*e;d[2]=m*b+t*e;d[3]=f*b+q*e;d[4]=h*-e+n*b;d[5]=c*-e+w*b;d[6]=m*-e+t*b;d[7]=f*-e+q*b}};k.prototype.nd=function(){for(var b=!1,a=0;16>a;a++)if(this.$n[a]!==this.zc[a]){b=!0;break}b&&(b=this.Dc(),b.type=5,b.Z?bc(this.zc,b.Z):b.Z=ac(this.zc),bc(this.zc,
this.$n),this.Qb=this.yb=!1)};f.prototype.Ir=function(){this.m.bindTexture(this.m.TEXTURE_2D,this.Pc)};f.prototype.Jr=function(){var b=this.m;b.activeTexture(b.TEXTURE1);b.bindTexture(b.TEXTURE_2D,this.Pc);b.activeTexture(b.TEXTURE0)};f.prototype.Fr=function(){var b=this.Mo,a=this.q;a.Yh=b;a=a.xg;a.Kf&&a.Vi!==b&&(a.Vi=b,this.m.uniform1f(a.Kf,b))};f.prototype.Cr=function(){this.m.drawElements(this.m.TRIANGLES,this.vc,this.m.UNSIGNED_SHORT,2*this.mc)};f.prototype.Er=function(){this.m.blendFunc(this.mc,
this.vc)};f.prototype.Kr=function(){var b,a,d,e=this.q.Va,h=this.q.qn;b=0;for(a=e.length;b<a;b++)d=e[b],b===h&&d.Ti?(d.um(this.Z),d.Pe=!0):d.Pe=!1;bc(this.Z,this.q.rk)};f.prototype.Dr=function(){var b=this.m,a=this.q;this.Pc?(a.Ve===this.Pc&&(b.activeTexture(b.TEXTURE1),b.bindTexture(b.TEXTURE_2D,null),a.Ve=null,b.activeTexture(b.TEXTURE0)),b.bindFramebuffer(b.FRAMEBUFFER,a.us),b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,this.Pc,0)):(b.framebufferTexture2D(b.FRAMEBUFFER,
b.COLOR_ATTACHMENT0,b.TEXTURE_2D,null,0),b.bindFramebuffer(b.FRAMEBUFFER,null))};f.prototype.Ar=function(){var b=this.m;0===this.mc?(b.clearColor(this.Z[0],this.Z[1],this.Z[2],this.Z[3]),b.clear(b.COLOR_BUFFER_BIT)):(b.enable(b.SCISSOR_TEST),b.scissor(this.Z[0],this.Z[1],this.Z[2],this.Z[3]),b.clearColor(0,0,0,0),b.clear(this.m.COLOR_BUFFER_BIT),b.disable(b.SCISSOR_TEST))};f.prototype.Br=function(){var b=this.m,a=this.q,d=a.Va[1];b.useProgram(d.Fh);!d.Pe&&d.Ti&&(d.um(a.rk),d.Pe=!0);b.enableVertexAttribArray(d.yc);
b.bindBuffer(b.ARRAY_BUFFER,a.Nl);b.vertexAttribPointer(d.yc,4,b.FLOAT,!1,0,0);b.drawArrays(b.POINTS,this.mc/4,this.vc);d=a.xg;b.useProgram(d.Fh);0<=d.yc&&(b.enableVertexAttribArray(d.yc),b.bindBuffer(b.ARRAY_BUFFER,a.Oh[a.xd]),b.vertexAttribPointer(d.yc,2,b.FLOAT,!1,0,0));0<=d.qe&&(b.enableVertexAttribArray(d.qe),b.bindBuffer(b.ARRAY_BUFFER,a.Jh[a.xd]),b.vertexAttribPointer(d.qe,2,b.FLOAT,!1,0,0))};f.prototype.Gr=function(){var b=this.m,a=this.q,d=a.Va[this.mc];a.qn=this.mc;a.xg=d;b.useProgram(d.Fh);
!d.Pe&&d.Ti&&(d.um(a.rk),d.Pe=!0);d.Kf&&d.Vi!==a.Yh&&(d.Vi=a.Yh,b.uniform1f(d.Kf,a.Yh));0<=d.yc&&(b.enableVertexAttribArray(d.yc),b.bindBuffer(b.ARRAY_BUFFER,a.Oh[a.xd]),b.vertexAttribPointer(d.yc,2,b.FLOAT,!1,0,0));0<=d.qe&&(b.enableVertexAttribArray(d.qe),b.bindBuffer(b.ARRAY_BUFFER,a.Jh[a.xd]),b.vertexAttribPointer(d.qe,2,b.FLOAT,!1,0,0))};f.prototype.Hr=function(){var b,a,d=this.q.xg,e=this.m;b=this.Z;d.dh&&this.q.Ve!==this.Pc&&(e.activeTexture(e.TEXTURE1),e.bindTexture(e.TEXTURE_2D,this.Pc),
this.q.Ve=this.Pc,e.activeTexture(e.TEXTURE0));var h=b[0];d.sl&&h!==d.uo&&(d.uo=h,e.uniform1f(d.sl,h));h=b[1];d.rl&&h!==d.so&&(d.so=h,e.uniform1f(d.rl,h));h=b[2];a=b[3];!d.Ze||h===d.no&&a===d.oo||(d.no=h,d.oo=a,e.uniform2f(d.Ze,h,a));h=b[4];a=b[5];!d.Ye||h===d.lo&&a===d.mo||(d.lo=h,d.mo=h,e.uniform2f(d.Ye,h,a));h=b[6];d.bh&&h!==d.qo&&(d.qo=h,e.uniform1f(d.bh,h));h=b[7];d.ah&&h!==d.po&&(d.po=h,e.uniform1f(d.ah,h));h=b[8];a=b[9];!d.fh||h===d.xo&&a===d.yo||(d.xo=h,d.yo=a,e.uniform2f(d.fh,h,a));h=b[10];
a=b[11];!d.eh||h===d.vo&&a===d.wo||(d.vo=h,d.wo=a,e.uniform2f(d.eh,h,a));d.tl&&e.uniform1f(d.tl,Ua()/1E3);if(d.N.length)for(b=0,a=d.N.length;b<a;b++)h=this.pp[b],h!==d.ml[b]&&(d.ml[b]=h,e.uniform1f(d.N[b][1],h))};k.prototype.Dc=function(){this.Uc===this.td.length&&this.td.push(new f(0,this));return this.td[this.Uc++]};k.prototype.Bd=function(){if(0!==this.Uc&&!this.m.isContextLost()){var b=this.m;0<this.Tf&&(b.bindBuffer(b.ARRAY_BUFFER,this.Nl),b.bufferData(b.ARRAY_BUFFER,this.Yo.subarray(0,this.Tf),
b.STREAM_DRAW),a&&0<=a.yc&&"<point>"===a.name&&b.vertexAttribPointer(a.yc,4,b.FLOAT,!1,0,0));if(0<this.od){var a=this.xg;b.bindBuffer(b.ARRAY_BUFFER,this.Oh[this.xd]);b.bufferData(b.ARRAY_BUFFER,this.ym.subarray(0,this.od),b.STREAM_DRAW);a&&0<=a.yc&&"<point>"!==a.name&&b.vertexAttribPointer(a.yc,2,b.FLOAT,!1,0,0);b.bindBuffer(b.ARRAY_BUFFER,this.Jh[this.xd]);b.bufferData(b.ARRAY_BUFFER,this.lm.subarray(0,this.od),b.STREAM_DRAW);a&&0<=a.qe&&"<point>"!==a.name&&b.vertexAttribPointer(a.qe,2,b.FLOAT,
!1,0,0)}for(var d,b=0,a=this.Uc;b<a;b++)switch(d=this.td[b],d.type){case 1:d.Cr();break;case 2:d.Ir();break;case 3:d.Fr();break;case 4:d.Er();break;case 5:d.Kr();break;case 6:d.Dr();break;case 7:d.Ar();break;case 8:d.Br();break;case 9:d.Gr();break;case 10:d.Hr();break;case 11:d.Jr()}this.Tf=this.od=this.Uc=0;this.Qb=this.yb=!1;this.xd++;4<=this.xd&&(this.xd=0)}};k.prototype.ve=function(b){if(b!==this.ao){var a=this.Dc();a.type=3;this.ao=a.Mo=b;this.Qb=this.yb=!1}};k.prototype.Db=function(b){if(b!==
this.oe){var a=this.Dc();a.type=2;this.oe=a.Pc=b;this.Qb=this.yb=!1}};k.prototype.ue=function(b,a){if(b!==this.bo||a!==this.Zn){var d=this.Dc();d.type=4;d.mc=b;d.vc=a;this.bo=b;this.Zn=a;this.Qb=this.yb=!1}};k.prototype.kp=function(){this.ue(this.m.ONE,this.m.ONE_MINUS_SRC_ALPHA)};k.prototype.zh=function(b,a,d,e,h,c,m,f){15992<=this.od&&this.Bd();var n=this.od,w=this.ym,t=this.lm;if(this.yb)this.td[this.Uc-1].vc+=6;else{var q=this.Dc();q.type=1;q.mc=n/4*3;q.vc=6;this.yb=!0;this.Qb=!1}w[n]=b;t[n++]=
0;w[n]=a;t[n++]=0;w[n]=d;t[n++]=1;w[n]=e;t[n++]=0;w[n]=h;t[n++]=1;w[n]=c;t[n++]=1;w[n]=m;t[n++]=0;w[n]=f;t[n++]=1;this.od=n};k.prototype.ed=function(b,a,d,e,h,c,m,f,n){15992<=this.od&&this.Bd();var w=this.od,t=this.ym,q=this.lm;if(this.yb)this.td[this.Uc-1].vc+=6;else{var g=this.Dc();g.type=1;g.mc=w/4*3;g.vc=6;this.yb=!0;this.Qb=!1}var g=n.left,x=n.top,C=n.right;n=n.bottom;t[w]=b;q[w++]=g;t[w]=a;q[w++]=x;t[w]=d;q[w++]=C;t[w]=e;q[w++]=x;t[w]=h;q[w++]=C;t[w]=c;q[w++]=n;t[w]=m;q[w++]=g;t[w]=f;q[w++]=
n;this.od=w};k.prototype.Rt=function(b,a,d,e){7996<=this.Tf&&this.Bd();var h=this.Tf,c=this.Yo;if(this.Qb)this.td[this.Uc-1].vc++;else{var m=this.Dc();m.type=8;m.mc=h;m.vc=1;this.Qb=!0;this.yb=!1}c[h++]=b;c[h++]=a;c[h++]=d;c[h++]=e;this.Tf=h};k.prototype.jd=function(b){if(this.Rg!==b){if(!this.Va[b]){if(0===this.Rg)return;b=0}var a=this.Dc();a.type=9;this.Rg=a.mc=b;this.Qb=this.yb=!1}};k.prototype.wh=function(b){b=this.Va[b];return!(!b.Ze&&!b.Ye)};k.prototype.Ol=function(b){b=this.Va[b];return!!(b.Ze||
b.Ye||b.pn)};k.prototype.Yt=function(b){b=this.Va[b];return 0!==b.Ak||0!==b.Bk};k.prototype.Js=function(b){return this.Va[b].Ak};k.prototype.Ks=function(b){return this.Va[b].Bk};k.prototype.Ls=function(b,a){return this.Va[b].N[a][2]};k.prototype.mj=function(b){return this.Va[b].Wm};k.prototype.Yf=function(b,a,d,e,h,c,m,f,n,w,t,q,g,x){var C=this.Va[this.Rg],v,A;if(C.bt||x.length){v=this.Dc();v.type=10;v.Z?bc(this.zc,v.Z):v.Z=ac();A=v.Z;A[0]=a;A[1]=d;A[2]=e;A[3]=h;A[4]=c;A[5]=m;A[6]=f;A[7]=n;A[8]=w;
A[9]=t;A[10]=q;A[11]=g;v.Pc=C.dh?b:null;if(x.length)for(d=v.pp,d.length=x.length,b=0,a=x.length;b<a;b++)d[b]=x[b];this.Qb=this.yb=!1}};k.prototype.clear=function(b,a,d,e){var h=this.Dc();h.type=7;h.mc=0;h.Z||(h.Z=ac());h.Z[0]=b;h.Z[1]=a;h.Z[2]=d;h.Z[3]=e;this.Qb=this.yb=!1};k.prototype.clearRect=function(b,a,d,e){if(!(0>d||0>e)){var h=this.Dc();h.type=7;h.mc=1;h.Z||(h.Z=ac());h.Z[0]=b;h.Z[1]=a;h.Z[2]=d;h.Z[3]=e;this.Qb=this.yb=!1}};k.prototype.Xt=function(){this.Bd();this.m.flush()};var r=[],l={};
k.prototype.nr=function(){r.length=0;l={}};k.prototype.If=function(b,a,d,e){a=!!a;d=!!d;var h=b.src+","+a+","+d+(a?",undefined":""),c=null;if("undefined"!==typeof b.src&&l.hasOwnProperty(h))return c=l[h],c.Rh++,c;this.Bd();var m=this.m,f=ia(b.width)&&ia(b.height),c=m.createTexture();m.bindTexture(m.TEXTURE_2D,c);m.pixelStorei(m.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var n=m.RGBA,w=m.RGBA,t=m.UNSIGNED_BYTE;if(e&&!this.le)switch(e){case 1:w=n=m.RGB;break;case 2:t=m.UNSIGNED_SHORT_4_4_4_4;break;case 3:t=
m.UNSIGNED_SHORT_5_5_5_1;break;case 4:w=n=m.RGB,t=m.UNSIGNED_SHORT_5_6_5}if(!f&&a){e=document.createElement("canvas");e.width=la(b.width);e.height=la(b.height);var q=e.getContext("2d");q.webkitImageSmoothingEnabled=d;q.mozImageSmoothingEnabled=d;q.msImageSmoothingEnabled=d;q.imageSmoothingEnabled=d;q.drawImage(b,0,0,b.width,b.height,0,0,e.width,e.height);m.texImage2D(m.TEXTURE_2D,0,n,w,t,e)}else m.texImage2D(m.TEXTURE_2D,0,n,w,t,b);a?(m.texParameteri(m.TEXTURE_2D,m.TEXTURE_WRAP_S,m.REPEAT),m.texParameteri(m.TEXTURE_2D,
m.TEXTURE_WRAP_T,m.REPEAT)):(m.texParameteri(m.TEXTURE_2D,m.TEXTURE_WRAP_S,m.CLAMP_TO_EDGE),m.texParameteri(m.TEXTURE_2D,m.TEXTURE_WRAP_T,m.CLAMP_TO_EDGE));d?(m.texParameteri(m.TEXTURE_2D,m.TEXTURE_MAG_FILTER,m.LINEAR),f&&this.un?(m.texParameteri(m.TEXTURE_2D,m.TEXTURE_MIN_FILTER,m.LINEAR_MIPMAP_LINEAR),m.generateMipmap(m.TEXTURE_2D)):m.texParameteri(m.TEXTURE_2D,m.TEXTURE_MIN_FILTER,m.LINEAR)):(m.texParameteri(m.TEXTURE_2D,m.TEXTURE_MAG_FILTER,m.NEAREST),m.texParameteri(m.TEXTURE_2D,m.TEXTURE_MIN_FILTER,
m.NEAREST));m.bindTexture(m.TEXTURE_2D,null);this.oe=null;c.sg=b.width;c.rg=b.height;c.Rh=1;c.hn=h;r.push(c);return l[h]=c};k.prototype.wd=function(b,a,d,e){this.Bd();var h=this.m;this.le&&(e=!1);var c=h.createTexture();h.bindTexture(h.TEXTURE_2D,c);h.texImage2D(h.TEXTURE_2D,0,h.RGBA,b,a,0,h.RGBA,e?h.UNSIGNED_SHORT_4_4_4_4:h.UNSIGNED_BYTE,null);h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_S,h.CLAMP_TO_EDGE);h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_T,h.CLAMP_TO_EDGE);h.texParameteri(h.TEXTURE_2D,
h.TEXTURE_MAG_FILTER,d?h.LINEAR:h.NEAREST);h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MIN_FILTER,d?h.LINEAR:h.NEAREST);h.bindTexture(h.TEXTURE_2D,null);this.oe=null;c.sg=b;c.rg=a;r.push(c);return c};k.prototype.Fu=function(b,a,d){this.Bd();var e=this.m;this.le&&(d=!1);e.bindTexture(e.TEXTURE_2D,a);e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);try{e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,d?e.UNSIGNED_SHORT_4_4_4_4:e.UNSIGNED_BYTE,b)}catch(h){console&&console.error&&console.error("Error updating WebGL texture: ",
h)}e.bindTexture(e.TEXTURE_2D,null);this.oe=null};k.prototype.deleteTexture=function(b){b&&("undefined"!==typeof b.Rh&&1<b.Rh?b.Rh--:(this.Bd(),b===this.oe&&(this.m.bindTexture(this.m.TEXTURE_2D,null),this.oe=null),b===this.Ve&&(this.m.activeTexture(this.m.TEXTURE1),this.m.bindTexture(this.m.TEXTURE_2D,null),this.m.activeTexture(this.m.TEXTURE0),this.Ve=null),Aa(r,b),"undefined"!==typeof b.hn&&delete l[b.hn],this.m.deleteTexture(b)))};k.prototype.gd=function(b){if(b!==this.gp){var a=this.Dc();a.type=
6;this.gp=a.Pc=b;this.Qb=this.yb=!1}};hb=k})();
(function(){function k(){return"undefined"!==typeof jQuery?jQuery(window).width():window.innerWidth}function p(){return"undefined"!==typeof jQuery?jQuery(window).height():window.innerHeight}function f(q){if(q&&(q.getContext||q.dc)&&!q.c2runtime){q.c2runtime=this;var g=this;this.wc=(this.Mg=/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=!!q.dc;this.yf="undefined"!==typeof window.AppMobi||this.eb;this.ic=!!window.c2cocoonjs;this.Jc=!!window.c2ejecta;this.ic&&(CocoonJS.App.onSuspended.addEventListener(function(){g.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){g.setSuspended(!1)}));this.Jc&&(document.addEventListener("pagehide",function(){g.setSuspended(!0)}),document.addEventListener("pageshow",
function(){g.setSuspended(!1)}),document.addEventListener("resize",function(){g.setSize(window.innerWidth,window.innerHeight)}));this.ga=this.eb||this.ic||this.Jc;this.le=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent)||/edge\//i.test(navigator.userAgent);this.Un=/tizen/i.test(navigator.userAgent);this.Ai=/android/i.test(navigator.userAgent)&&!this.Un&&!this.le;this.kl=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&
!this.le;this.Yn=/ipad/i.test(navigator.userAgent);this.Fi=this.kl||this.Yn||this.Jc;this.pt=this.kl&&/os\s6/i.test(navigator.userAgent);this.Lg=(/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent))&&!this.le;this.el=/amazonwebappplatform/i.test(navigator.userAgent);this.it=/firefox/i.test(navigator.userAgent);this.Tn=/safari/i.test(navigator.userAgent)&&!this.Lg&&!this.le;this.lt=/windows/i.test(navigator.userAgent);this.me="undefined"!==typeof window.c2nodewebkit||"undefined"!==
typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.Wn=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.nt=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.Bf=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.il=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.Vn=this.Wn||this.nt||this.il;this.ht=!("undefined"===typeof window.c2isBlackberry10||
!window.c2isBlackberry10);this.Bi=this.Ai&&!this.Lg&&!this.Mg&&!this.it&&!this.el&&!this.ga;this.devicePixelRatio=1;this.Kc=this.wc||this.Mg||this.yf||this.ic||this.Ai||this.Fi||this.Bf||this.il||this.ht||this.Un||this.Jc;this.Kc||(this.Kc=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));"undefined"===typeof cr_is_preview||this.me||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||
(this.me=!0);this.canvas=q;this.ln=document.getElementById("c2canvasdiv");this.da=this.q=this.m=null;this.Hk="";this.hi=!1;this.Ko=this.Lo=0;this.canvas.oncontextmenu=function(g){g.preventDefault&&g.preventDefault();return!1};this.canvas.onselectstart=function(g){g.preventDefault&&g.preventDefault();return!1};this.eb&&(window.c2runtime=this);this.me&&(window.ondragover=function(g){g.preventDefault();return!1},window.ondrop=function(g){g.preventDefault();return!1},require("nw.gui").App.clearCache());
this.Bi&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=q.width;this.height=q.height;this.L=this.width;this.K=this.height;this.Wh=this.width;this.Vh=this.height;this.Tg=window.innerWidth;this.Sg=window.innerHeight;this.ws=!1;this.V=!0;this.Og=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.n=[];this.Ja=[];this.Hf={};this.Sb=[];this.zk={};this.Cd=[];this.lg=[];this.Jj=[];this.Yj=[];this.cr=[];this.Ie={};this.fl=
this.je=!1;this.Id=0;this.hl=!1;this.Wc=[];this.Jd=this.pb=this.Oi=this.cm="";this.Hh=this.sp=!1;this.ok=this.gh=this.ge=this.fe=0;this.fg=1;this.jc=new Ya;this.pd=new Ya;this.Xi=this.ki=this.ei=this.ld=this.Xe=this.Gk=this.Ji=0;this.vd=null;this.vk=[];this.yk=[];this.di=-1;this.ul=[[]];this.qm=this.Ui=0;this.Ql(null);this.Fo=this.jh=0;this.pl=!0;this.zg=0;this.Ih=[];this.nm=this.Sl=-1;this.Ue=!0;this.Si=0;this.Ng=!1;this.qu=0;this.of=null;this.ka=this.xf=!1;this.Jo=new ca;this.Dl=new ca;this.El=
new ca;this.au=[];new $a([]);new $a([]);this.ae=[];this.ri={};this.pf={};this.nf={};this.kg={};this.dn={};this.fo=this.Ni=this.Rb=this.kc=this.eo=this.Mi=this.ba=null;this.ig=this.jl=!1;this.Ik=[null,null];this.Ne=0;this.Dk="";this.Nd={};this.vj=this.Jf=null;this.Wi=[];this.bu()}}function r(q){q.target.result.createObjectStore("saves",{keyPath:"slot"})}function l(q,g,c,a){var b=indexedDB.open("_C2SaveStates");b.onupgradeneeded=r;b.onerror=a;b.onsuccess=function(b){b=b.target.result;b.onerror=a;b.transaction(["saves"],
"readwrite").objectStore("saves").put({slot:q,data:g}).onsuccess=c}}function b(q,g,c){var a=indexedDB.open("_C2SaveStates");a.onupgradeneeded=r;a.onerror=c;a.onsuccess=function(a){a=a.target.result;a.onerror=c;var b=a.transaction(["saves"]).objectStore("saves").get(q);b.onsuccess=function(){b.result?g(b.result.data):g(null)}}}function a(){J("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?window.location.reload(!0):window.location+=
"?continuous"}function d(q){var g,c={};for(g in q)!q.hasOwnProperty(g)||q[g]instanceof ca||q[g]&&"undefined"!==typeof q[g].Mv||(c[g]=q[g]);return c}f.prototype.bu=function(){var c=this,g;g=this.Bf?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest;var a="data.js";if(this.Wn||this.Bf||this.il)a="data.json";g.open("GET",a,!0);var b=!1;if(!this.ga&&"response"in g&&"responseType"in g)try{g.responseType="json",b="json"===g.responseType}catch(d){b=!1}if(!b&&"responseType"in g)try{g.responseType=
"text"}catch(m){}if("overrideMimeType"in g)try{g.overrideMimeType("application/json; charset=utf-8")}catch(e){}this.Bf?g.onreadystatechange=function(){4===g.readyState&&c.Qi(JSON.parse(g.responseText))}:(g.onload=function(){if(b)c.Qi(g.response);else if(c.Jc){var a=g.responseText,a=a.substr(a.indexOf("{"));c.Qi(JSON.parse(a))}else c.Qi(JSON.parse(g.responseText))},g.onerror=function(g){fa("Error requesting "+a+":");fa(g)});g.send()};f.prototype.gt=function(){var c=this,g,a,b,d,m,e,n,h,f;this.devicePixelRatio=
(this.Af=(!this.ga||this.Jc)&&this.Cu&&!this.Bi)?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.jb();a=!(!this.ws&&(!this.$j||this.me||this.Vn||this.Bf||this.Mg||this.wc||this.el));0<this.nb&&this.setSize(k(),p(),!0);try{this.Qr&&(this.ic||this.Jc||!this.ga)&&(g={alpha:a,depth:!1,antialias:!1,failIfMajorPerformanceCaveat:!0},this.m=this.canvas.getContext("webgl",g)||this.canvas.getContext("experimental-webgl",g))}catch(s){}if(this.m){this.ga||
(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.Wh,this.fb.height=this.Vh,jQuery(this.fb).css({width:this.Wh+"px",height:this.Vh+"px"}),this.$o(),this.Ml=this.fb.getContext("2d"));this.q=new hb(this.m,this.Kc);this.q.Zf(this.canvas.width,this.canvas.height);this.q.un=0!==this.Lr;this.da=null;this.canvas.addEventListener("webglcontextlost",function(g){g.preventDefault();
c.Ct();J("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){c.q.On();c.q.Zf(c.q.width,c.q.height,!0);c.kc=null;c.Rb=null;c.Ik[0]=null;c.Ik[1]=null;c.Dt();c.V=!0;J("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);g=0;for(a=this.n.length;g<a;g++)for(m=this.n[g],b=0,d=m.H.length;b<d;b++)n=m.H[b],n.gb=this.q.Qk(n.id),this.ig=this.ig||this.q.wh(n.gb);g=0;for(a=this.Sb.length;g<a;g++){h=this.Sb[g];b=0;
for(d=h.H.length;b<d;b++)n=h.H[b],n.gb=this.q.Qk(n.id);b=0;for(d=h.M.length;b<d;b++)for(f=h.M[b],m=0,e=f.H.length;m<e;m++)n=f.H[m],n.gb=this.q.Qk(n.id),this.ig=this.ig||this.q.wh(n.gb)}}else{if(0<this.nb&&this.eb){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.da=AppMobi.canvas.getContext("2d");try{this.da.samplingMode=this.S?"smooth":"sharp",this.da.globalScale=1,this.da.HTML5CompatibilityMode=!0,this.da.imageSmoothingEnabled=this.S}catch(w){}0!==
this.width&&0!==this.height&&(this.da.width=this.width,this.da.height=this.height)}this.da||(g=this.ic?{antialias:!!this.S,alpha:a}:{alpha:a},this.da=this.canvas.getContext("2d",g),this.da.webkitImageSmoothingEnabled=this.S,this.da.mozImageSmoothingEnabled=this.S,this.da.msImageSmoothingEnabled=this.S,this.da.imageSmoothingEnabled=this.S);this.Ml=this.fb=null}this.Bp=function(g){c.Ma(!1,g)};window==window.top||this.ga||this.Vn||this.Bf||(document.addEventListener("mousedown",function(){window.focus()},
!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.ic&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(J("Reloading for continuous preview"),this.Oi="__c2_continuouspreview",this.Hh=!0),this.Pt&&!this.Kc&&(jQuery(window).focus(function(){c.setSuspended(!1)}),jQuery(window).blur(function(){c.setSuspended(!0)})));this.ga||(g=function(g){if(gb(g)&&document.activeElement&&
document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(c){}},window.navigator.pointerEnabled?document.addEventListener("pointerdown",g):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",g):document.addEventListener("touchstart",g),document.addEventListener("mousedown",g));0===this.nb&&this.Af&&1<this.devicePixelRatio&&this.setSize(this.Ta,this.Sa,!0);this.Gp();this.Ys();this.go();this.Aa={}};
f.prototype.setSize=function(c,g,a){var b=0,d=0,m=0,e=0,e=0,n=this.pt&&this.Tn&&!navigator.standalone&&!this.ga&&!this.wc;n&&(g+=60);if(this.Tg!==c||this.Sg!==g||a){this.Tg=c;this.Sg=g;var h=this.nb,f=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.Ng)&&!this.wc;if(f||0!==this.nb||a)f&&0<this.Ne&&(h=this.Ne),a=this.devicePixelRatio,4<=h?(m=this.Ta/this.Sa,c/g>m?(m*=g,5===h?(e=m*a/this.Ta,1<e?e=Math.floor(e):1>e&&(e=1/Math.ceil(1/e)),
m=this.Ta*e/a,e=this.Sa*e/a,b=(c-m)/2,d=(g-e)/2,c=m,g=e):(b=(c-m)/2,c=m)):(e=c/m,5===h?(e=e*a/this.Sa,1<e?e=Math.floor(e):1>e&&(e=1/Math.ceil(1/e)),m=this.Ta*e/a,e=this.Sa*e/a,b=(c-m)/2,d=(g-e)/2,c=m):d=(g-e)/2,g=e),f&&!this.me&&(d=b=0)):this.me&&this.Ng&&0===this.An&&(b=Math.floor((c-this.Ta)/2),d=Math.floor((g-this.Sa)/2),c=this.Ta,g=this.Sa),2>h&&(this.qg=a),this.Af&&this.Yn&&1<a&&(1024<=c&&(c=1023),1024<=g&&(g=1023)),this.Wh=Math.round(c),this.Vh=Math.round(g),this.width=Math.round(c*a),this.height=
Math.round(g*a),this.V=!0,this.Qp?(this.L=this.width,this.K=this.height,this.rc=!0):this.width<this.Ta&&this.height<this.Sa||1===h?(this.L=this.width,this.K=this.height,this.rc=!0):(this.L=this.Ta,this.K=this.Sa,this.rc=!1,2===h?(m=this.Ta/this.Sa,h=this.Tg/this.Sg,h<m?this.L=this.K*h:h>m&&(this.K=this.L/h)):3===h&&(m=this.Ta/this.Sa,h=this.Tg/this.Sg,h>m?this.L=this.K*h:h<m&&(this.K=this.L/h))),this.ln&&!this.ga&&(jQuery(this.ln).css({width:Math.round(c)+"px",height:Math.round(g)+"px","margin-left":Math.floor(b)+
"px","margin-top":Math.floor(d)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(c)+"px",height:Math.round(g)+"px"})),this.canvas&&(this.canvas.width=Math.round(c*a),this.canvas.height=Math.round(g*a),this.Jc?(this.canvas.style.left=Math.floor(b)+"px",this.canvas.style.top=Math.floor(d)+"px",this.canvas.style.width=Math.round(c)+"px",this.canvas.style.height=Math.round(g)+"px"):this.Af&&!this.ga&&jQuery(this.canvas).css({width:Math.round(c)+"px",height:Math.round(g)+
"px"})),this.fb&&(this.fb.width=Math.round(c),this.fb.height=Math.round(g),jQuery(this.fb).css({width:Math.round(c)+"px",height:Math.round(g)+"px"})),this.q&&this.q.Zf(Math.round(c*a),Math.round(g*a)),this.eb&&this.da&&(this.da.width=Math.round(c),this.da.height=Math.round(g)),this.da&&(this.da.webkitImageSmoothingEnabled=this.S,this.da.mozImageSmoothingEnabled=this.S,this.da.msImageSmoothingEnabled=this.S,this.da.imageSmoothingEnabled=this.S),this.Gp(),this.ga||!n&&!this.kl||window.setTimeout(function(){window.scrollTo(0,
1)},100)}};f.prototype.Gp=function(){if(this.er&&0!==this.Kl){var c="portrait";2===this.Kl&&(c="landscape");screen.orientation&&screen.orientation.lock?screen.orientation.lock(c):screen.lockOrientation?screen.lockOrientation(c):screen.webkitLockOrientation?screen.webkitLockOrientation(c):screen.mozLockOrientation?screen.mozLockOrientation(c):screen.msLockOrientation&&screen.msLockOrientation(c)}};f.prototype.Ct=function(){this.q.nr();this.jl=!0;var c,g,a;c=0;for(g=this.n.length;c<g;c++)a=this.n[c],
a.kh&&a.kh()};f.prototype.Dt=function(){this.jl=!1;var c,g,a;c=0;for(g=this.n.length;c<g;c++)a=this.n[c],a.Zi&&a.Zi()};f.prototype.$o=function(){if(!this.ga){var c=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.Ng)&&!this.wc?jQuery(this.canvas).offset():jQuery(this.canvas).position();c.position="absolute";jQuery(this.fb).css(c)}};var e=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||
window.oCancelAnimationFrame;f.prototype.setSuspended=function(c){var g;if(c&&!this.Og)for(J("[Construct 2] Suspending"),this.Og=!0,-1!==this.Sl&&e&&e(this.Sl),-1!==this.nm&&clearTimeout(this.nm),c=0,g=this.Ih.length;c<g;c++)this.Ih[c](!0);else if(!c&&this.Og){J("[Construct 2] Resuming");this.Og=!1;this.Ji=Ua();this.Xe=Ua();c=this.gh=this.ki=0;for(g=this.Ih.length;c<g;c++)this.Ih[c](!1);this.Ma(!1)}};f.prototype.$q=function(c){this.Ih.push(c)};f.prototype.Yd=function(c){return this.Wi[c]};f.prototype.Qi=
function(c){c&&c.project||fa("Project model unavailable");c=c.project;this.name=c[0];this.zn=c[1];this.nb=c[12];this.An=c[12];this.Ta=c[10];this.Sa=c[11];this.To=this.Ta/2;this.Uo=this.Sa/2;this.ga&&!this.Jc&&(4<=c[12]||0===c[12])&&(J("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.An=this.nb=3);this.xm=c[18];this.$g=c[19];0===this.$g&&(this.Jf=new Image,this.Jf.src="loading-logo.png");this.jh=c[21];this.Wi=fc();this.kd=new X(this);
var g,a,b,d,m,e,n,h,f;g=0;for(a=c[2].length;g<a;g++)n=c[2][g],b=this.Yd(n[0]),ib(n,b.prototype),f=new b(this),f.tj=n[1],f.ne=n[2],f.Co=n[9],f.X&&f.X(),this.plugins.push(f);this.Wi=fc();g=0;for(a=c[3].length;g<a;g++){n=c[3][g];m=this.Yd(n[1]);f=null;b=0;for(d=this.plugins.length;b<d;b++)if(this.plugins[b]instanceof m){f=this.plugins[b];break}var s=new f.Ia(f);s.name=n[0];s.B=n[2];s.dl=n[3].slice(0);s.Eu=n[3].length;s.fr=n[4];s.ys=n[5];s.P=n[11];s.B?(s.Ao=[],s.Dd=this.zg++,s.ua=null):(s.Ao=null,s.Dd=
-1,s.ua=[]);s.fi=null;s.tf=null;s.vn=null;s.Lc=!1;s.Nb=null;n[6]?(s.Cj=n[6][0],s.Dj=n[6][1],s.Kh=n[6][2]):(s.Cj=null,s.Dj=0,s.Kh=0);s.Ib=n[7]?n[7]:null;s.index=g;s.d=[];s.$h=[];s.xe=[new jb(s)];s.Ad=0;s.Xc=null;s.sr=0;s.dg=!0;s.Lj=kb;s.Cs=lb;s.Hs=mb;s.fa=nb;s.yh=ob;s.Pl=pb;s.Uf=qb;s.mi=sb;s.Kk=tb;s.Nk=ub;s.sd=vb;s.Fn=wb;s.mn=new ab(this.Ta,this.Sa);s.Xm=!0;s.Ym=!1;s.Aa={};s.toString=xb;s.Ja=[];b=0;for(d=n[8].length;b<d;b++){h=n[8][b];var w=this.Yd(h[1]),t=null;m=0;for(e=this.Ja.length;m<e;m++)if(this.Ja[m]instanceof
w){t=this.Ja[m];break}t||(t=new w(this),t.Do=[],t.Nf=new ca,t.X&&t.X(),this.Ja.push(t));-1===t.Do.indexOf(s)&&t.Do.push(s);m=new t.Ia(t,s);m.name=h[0];m.P=h[2];m.X();s.Ja.push(m)}s.global=n[9];s.gl=n[10];s.H=[];b=0;for(d=n[12].length;b<d;b++)s.H.push({id:n[12][b][0],name:n[12][b][1],gb:-1,Wa:!0,index:b});s.Yv=n[13];this.xm&&!s.B&&!s.gl&&f.ne||s.X();s.name&&(this.types[s.name]=s);this.n.push(s);f.tj&&(b=new f.na(s),b.uid=this.jh++,b.dp=this.Fo++,b.Re=0,b.Eg=yb,b.toString=zb,b.aa=n[14],b.X(),s.d.push(b),
this.Nd[b.uid.toString()]=b)}g=0;for(a=c[4].length;g<a;g++)for(m=c[4][g],e=this.n[m[0]],b=1,d=m.length;b<d;b++)n=this.n[m[b]],n.ua.push(e),e.Ao.push(n);g=0;for(a=c[27].length;g<a;g++){m=c[27][g];e=[];b=0;for(d=m.length;b<d;b++)e.push(this.n[m[b]]);b=0;for(d=e.length;b<d;b++)e[b].Lc=!0,e[b].Nb=e}if(0<this.zg)for(g=0,a=this.n.length;g<a;g++)if(n=this.n[g],!n.B&&n.ua.length){n.fi=Array(this.zg);n.tf=Array(this.zg);n.vn=Array(this.zg);s=[];b=t=w=h=0;for(d=n.ua.length;b<d;b++)for(f=n.ua[b],n.fi[f.Dd]=
h,h+=f.Eu,n.tf[f.Dd]=w,w+=f.fr,n.vn[f.Dd]=t,t+=f.ys,m=0,e=f.H.length;m<e;m++)s.push(va({},f.H[m]));n.H=s.concat(n.H);b=0;for(d=n.H.length;b<d;b++)n.H[b].index=b}g=0;for(a=c[5].length;g<a;g++)n=c[5][g],b=new Ab(this,n),this.Hf[b.name]=b,this.Sb.push(b);g=0;for(a=c[6].length;g<a;g++)n=c[6][g],b=new Bb(this,n),this.zk[b.name]=b,this.Cd.push(b);g=0;for(a=this.Cd.length;g<a;g++)this.Cd[g].Ha();g=0;for(a=this.Cd.length;g<a;g++)this.Cd[g].tm();g=0;for(a=this.Jj.length;g<a;g++)this.Jj[g].Ha();this.Jj.length=
0;this.dr=c[7];this.Dk=c[8];this.Cc=c[9];this.qg=1;this.Qr=c[13];this.S=c[14];this.$j=c[15];this.Cu=c[17];this.Kl=c[20];this.er=0<this.Kl;this.Pt=c[22];this.rc=this.Qp=c[23];this.Lr=c[24];this.Vt=c[25];this.yj=Date.now();this.Wi.length=0;this.gt()};var h=!1;f.prototype.Am=function(c,g){c.cocoonLazyLoad=!0;c.onerror=function(g){h=c.gn=!0;console&&console.error&&console.error("Error loading image '"+c.src+"': ",g)};this.Jc?c.src=g:c.src||("undefined"!==typeof XAPKReader?XAPKReader.get(g,function(g){c.src=
g},function(a){h=c.gn=!0;console&&console.error&&console.error("Error extracting image '"+g+"' from expansion file: ",a)}):c.src=g);this.lg.push(c)};f.prototype.vs=function(c){var g,a;g=0;for(a=this.lg.length;g<a;g++)if(this.lg[g].or===c)return this.lg[g];return null};var c=0,m=!1;f.prototype.Ys=function(){this.of&&(c=this.of.nu(this.dr))};f.prototype.Zm=function(){var a=c,g=0,b=0,d=!0,e,n,b=0;for(e=this.lg.length;b<e;b++){n=this.lg[b];var h=n.pk;if(!h||0>=h)h=5E4;a+=h;n.src&&(n.complete||n.loaded)&&
!n.gn?g+=h:d=!1}d&&this.Vt&&this.of&&(m||(this.of.ru(),m=!0),b=this.of.Is(),g+=b,b<c&&(d=!1));this.ef=0==a?0:g/a;return d};f.prototype.go=function(){if(this.da||this.q){var c=this.da||this.Ml;this.fb&&this.$o();this.ef=0;this.co=-1;if(this.Zm())this.Zs();else{var g=Date.now()-this.yj;if(c){var a=this.width,b=this.height,d=this.devicePixelRatio;this.fb&&(a=this.Wh,b=this.Vh,d=1);if(3!==this.$g&&(this.ic||500<=g&&this.co!=this.ef)){c.clearRect(0,0,a,b);var g=a/2,b=b/2,a=0===this.$g&&this.Jf.complete,
m=40*d,e=0,n=80*d,f;a&&(n=this.Jf.width*d,f=this.Jf.height*d,m=n/2,e=f/2,c.drawImage(this.Jf,T(g-m),T(b-e),n,f));1>=this.$g?(g=T(g-m)+.5,b=T(b+(e+(a?12*d:0)))+.5,c.fillStyle=h?"red":"DodgerBlue",c.fillRect(g,b,Math.floor(n*this.ef),6*d),c.strokeStyle="black",c.strokeRect(g,b,n,6*d),c.strokeStyle="white",c.strokeRect(g-1*d,b-1*d,n+2*d,8*d)):2===this.$g&&(c.font=this.Jc?"12pt ArialMT":"12pt Arial",c.fillStyle=h?"#f00":"#999",c.Xv="middle",d=Math.round(100*this.ef)+"%",a=c.measureText?c.measureText(d):
null,c.fillText(d,g-(a?a.width:0)/2,b))}this.co=this.ef}setTimeout(function(g){return function(){g.go()}}(this),this.ic?10:100)}}};f.prototype.Zs=function(){this.fb&&(this.canvas.parentNode.removeChild(this.fb),this.fb=this.Ml=null);this.yj=Date.now();this.Xe=Ua();var c,g,a;if(this.xm)for(c=0,g=this.n.length;c<g;c++)a=this.n[c],a.B||a.gl||!a.wa.ne||a.X();else this.Ue=!1;c=0;for(g=this.Sb.length;c<g;c++)this.Sb[c].pr();2<=this.nb&&(c=this.Ta/this.Sa,g=this.width/this.height,this.qg=2!==this.nb&&g>
c||2===this.nb&&g<c?this.height/this.Sa:this.width/this.Ta);this.zn?this.Hf[this.zn].jm():this.Sb[0].jm();this.xm||(this.Si=1,this.trigger(X.prototype.j.Hm,null));navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();c=0;for(g=this.n.length;c<g;c++)a=this.n[c],a.Bt&&a.Bt();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.Ma(!1);this.eb&&AppMobi.webview.execute("onGameReady();")};var s=window.requestAnimationFrame||
window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;f.prototype.Ma=function(c,g,a){if(this.ba){var b=Ua();if(a||!this.Og||c){c||(s?this.Sl=s(this.Bp):this.nm=setTimeout(this.Bp,this.Kc?1:16));g=g||b;var d=this.nb;((a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.wc)||this.Ng)&&0<this.Ne&&(d=this.Ne);0<d&&(!this.Fi||window.self!==window.top)&&(d=window.innerHeight,
this.Tg===window.innerWidth&&this.Sg===d||this.setSize(k(),p()));this.ga||(a?(this.hi||(this.Hk=jQuery(this.canvas).css("margin")||"0",this.hi=!0),this.Lg||this.me||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.hi?(this.Lg||this.me||jQuery(this.canvas).css("margin",this.Hk),this.Hk="",this.hi=!1,0===this.nb&&this.setSize(Math.round(this.Lo/this.devicePixelRatio),
Math.round(this.Ko/this.devicePixelRatio),!0)):(this.Lo=this.width,this.Ko=this.height));this.Ue&&(a=this.Zm(),this.Si=this.ef,a&&(this.Ue=!1,this.ef=1,this.trigger(X.prototype.j.Hm,null)));this.ut(g);!this.V&&!this.ic||this.jl||this.Hh||c||(this.V=!1,this.q?this.wb():this.fc(),this.vj&&(this.canvas&&this.canvas.toDataURL&&(this.canvas.toDataURL(this.vj[0],this.vj[1]),this.trigger(X.prototype.j.pq,null)),this.vj=null));this.Sv||(this.ld++,this.ei++,this.ki++);this.gh+=Ua()-b}}};f.prototype.ut=function(c){var g,
a,b,d,m,e,n,h;1E3<=c-this.Xe&&(this.Xe+=1E3,1E3<=c-this.Xe&&(this.Xe=c),this.Gk=this.ki,this.ki=0,this.ok=this.gh,this.gh=0);0!==this.Ji&&(g=c-this.Ji,0>g&&(g=0),this.ge=g/1E3,.5<this.ge?this.ge=0:.1<this.ge&&(this.ge=.1));this.Ji=c;this.fe=this.ge*this.fg;this.jc.add(this.fe);this.pd.add(this.ge);c=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.Ng)&&!this.wc;2<=this.nb||c&&0<this.Ne?(g=this.Ta/this.Sa,a=this.width/this.height,b=this.nb,
c&&0<this.Ne&&(b=this.Ne),this.qg=2!==b&&a>g||2===b&&a<g?this.height/this.Sa:this.width/this.Ta,this.ba&&(this.ba.ip(this.ba.scrollX),this.ba.jp(this.ba.scrollY))):this.qg=this.Af?this.devicePixelRatio:1;this.jb();this.Id++;this.kd.eu();this.Id--;this.jb();this.Id++;a=this.Jo.Rc();c=0;for(g=a.length;c<g;c++)a[c].Uv();c=0;for(g=this.n.length;c<g;c++)if(e=this.n[c],!e.B&&(e.Ja.length||e.ua.length))for(a=0,b=e.d.length;a<b;a++)for(n=e.d[a],d=0,m=n.G.length;d<m;d++)n.G[d].Ma();c=0;for(g=this.n.length;c<
g;c++)if(e=this.n[c],!e.B&&(e.Ja.length||e.ua.length))for(a=0,b=e.d.length;a<b;a++)for(n=e.d[a],d=0,m=n.G.length;d<m;d++)h=n.G[d],h.Ut&&h.Ut();a=this.Dl.Rc();c=0;for(g=a.length;c<g;c++)a[c].Ma();this.Id--;this.$s();for(c=0;this.vd&&10>c++;)this.rn(this.vd);c=0;for(g=this.Cd.length;c<g;c++)this.Cd[c].Xk=!1;this.ba.Le&&this.ba.Le.Ua();this.au.length=0;this.pl=!1;this.Id++;c=0;for(g=this.n.length;c<g;c++)if(e=this.n[c],!e.B&&(e.Ja.length||e.ua.length))for(a=0,b=e.d.length;a<b;a++)for(n=e.d[a],d=0,m=
n.G.length;d<m;d++)h=n.G[d],h.mm&&h.mm();a=this.El.Rc();c=0;for(g=a.length;c<g;c++)a[c].mm();this.Id--};f.prototype.rn=function(c){var g=this.ba;this.ba.su();var a,b,d,m,e,n,h;if(this.q)for(a=0,b=this.n.length;a<b;a++)e=this.n[a],e.B||!e.Kj||e.global&&0!==e.d.length||-1!==c.Jg.indexOf(e)||e.Kj();g==c&&(this.kd.Fb.length=0);c.jm();a=0;for(b=this.n.length;a<b;a++)if(e=this.n[a],e.global||e.wa.tj)for(c=0,g=e.d.length;c<g;c++)if(n=e.d[c],n.Jl&&n.Jl(),n.G)for(d=0,m=n.G.length;d<m;d++)h=n.G[d],h.Jl&&h.Jl();
this.pl=this.V=!0;this.jb()};f.prototype.Fj=function(c){this.Dl.add(c)};f.prototype.tu=function(c){this.El.add(c)};f.prototype.ni=function(c){return c&&-1!==c.ih?this.ge*c.ih:this.fe};f.prototype.fc=function(){this.ba.fc(this.da);this.eb&&this.da.present()};f.prototype.wb=function(){this.ba.wb(this.q);this.q.Xt()};f.prototype.Yq=function(c){c&&this.vk.push(c)};f.prototype.pi=function(c){c=c.toString();return this.Nd.hasOwnProperty(c)?this.Nd[c]:null};var n=[];f.prototype.Xd=function(c){var g,a;g=
c.type.name;var b=null;if(this.Ie.hasOwnProperty(g)){if(b=this.Ie[g],b.contains(c))return}else b=n.length?n.pop():new ca,this.Ie[g]=b;b.add(c);this.je=!0;if(c.Lc)for(g=0,a=c.siblings.length;g<a;g++)this.Xd(c.siblings[g]);this.fl&&b.jg.push(c);this.Id++;this.trigger(Object.getPrototypeOf(c.type.wa).j.rq,c);this.Id--};f.prototype.jb=function(){if(this.je){var c,g,a,b,d,m;this.fl=!0;a=0;for(d=this.Wc.length;a<d;++a)for(c=this.Wc[a],g=c.type,g.d.push(c),b=0,m=g.ua.length;b<m;++b)g.ua[b].d.push(c),g.ua[b].dg=
!0;this.Wc.length=0;this.hq();Ta(this.Ie);this.je=this.fl=!1}};f.prototype.hq=function(){for(var c in this.Ie)this.Ie.hasOwnProperty(c)&&this.Vp(this.Ie[c])};f.prototype.Vp=function(c){var g=c.Rc(),a=g[0].type,b,d,m,e,h,f;Va(a.d,c);a.dg=!0;0===a.d.length&&(a.Ym=!1);b=0;for(d=a.ua.length;b<d;++b)f=a.ua[b],Va(f.d,c),f.dg=!0;b=0;for(d=this.kd.Fb.length;b<d;++b)if(h=this.kd.Fb[b],h.sb.hasOwnProperty(a.index)&&Va(h.sb[a.index].Gd,c),!a.B)for(m=0,e=a.ua.length;m<e;++m)f=a.ua[m],h.sb.hasOwnProperty(f.index)&&
Va(h.sb[f.index].Gd,c);if(h=g[0].e){if(h.Qc)for(m=h.d,b=0,d=m.length;b<d;++b)e=m[b],c.contains(e)&&(e.Na(),h.Wb.update(e,e.Bb,null),e.Bb.set(0,0,-1,-1));Va(h.d,c);h.Ch(0)}for(b=0;b<g.length;++b)this.Up(g[b],a);c.clear();n.push(c);this.V=!0};f.prototype.Up=function(c,g){var a,b,d;a=0;for(b=this.vk.length;a<b;++a)this.vk[a](c);c.ee&&g.mn.update(c,c.ee,null);(a=c.e)&&a.Wf(c,!0);if(c.G)for(a=0,b=c.G.length;a<b;++a)d=c.G[a],d.Qf&&d.Qf(),d.behavior.Nf.remove(c);this.Jo.remove(c);this.Dl.remove(c);this.El.remove(c);
c.Qf&&c.Qf();this.Nd.hasOwnProperty(c.uid.toString())&&delete this.Nd[c.uid.toString()];this.Xi--;100>g.$h.length&&g.$h.push(c)};var w=[];f.prototype.He=function(c,g,a,b,d,m){var e,n,h,f;if(!c)return null;var s=this.n[c[1]],t=s.wa.ne;if(this.Ue&&t&&!s.gl||t&&!this.q&&11===c[0][11])return null;var k=g;t||(g=null);var l;s.$h.length?(l=s.$h.pop(),l.lc=!0,s.wa.na.call(l,s)):(l=new s.wa.na(s),l.lc=!1);l.uid=!a||m||this.Nd.hasOwnProperty(c[2].toString())?this.jh++:c[2];this.Nd[l.uid.toString()]=l;l.dp=
this.Fo++;l.Re=s.d.length;e=0;for(n=this.Wc.length;e<n;++e)this.Wc[e].type===s&&l.Re++;l.Eg=yb;l.toString=zb;h=c[3];if(l.lc)Ta(l.Aa);else{l.Aa={};if("undefined"!==typeof cr_is_preview)for(l.Rn=[],l.Rn.length=h.length,e=0,n=h.length;e<n;e++)l.Rn[e]=h[e][1];l.Pa=[];l.Pa.length=h.length}e=0;for(n=h.length;e<n;e++)l.Pa[e]=h[e][0];if(t){var p=c[0];l.x=ga(b)?p[0]:b;l.y=ga(d)?p[1]:d;l.z=p[2];l.width=p[3];l.height=p[4];l.depth=p[5];l.k=p[6];l.opacity=p[7];l.zb=p[8];l.Ab=p[9];l.tb=p[10];e=p[11];!this.q&&s.H.length&&
(l.tb=e);l.ug=cb(l.tb);this.m&&db(l,l.tb,this.m);if(l.lc){e=0;for(n=p[12].length;e<n;e++)for(h=0,f=p[12][e].length;h<f;h++)l.za[e][h]=p[12][e][h];l.Xa.set(0,0,0,0);l.ee.set(0,0,-1,-1);l.Bb.set(0,0,-1,-1);l.ud.Dh(l.Xa);l.dk.length=0}else{l.za=p[12].slice(0);e=0;for(n=l.za.length;e<n;e++)l.za[e]=p[12][e].slice(0);l.W=[];l.Zd=[];l.Zd.length=s.H.length;l.Xa=new U(0,0,0,0);l.ee=new U(0,0,-1,-1);l.Bb=new U(0,0,-1,-1);l.ud=new ta;l.dk=[];l.xa=Cb;l.br=Db;l.Ob=Eb;l.Na=Fb;l.Bu=Gb;l.Au=Hb;l.uc=Ib}l.vu=!1;l.xu=
0;l.wu=0;l.uu=null;14===p.length&&(l.vu=!0,l.xu=p[13][0],l.wu=p[13][1],l.uu=p[13][2]);e=0;for(n=s.H.length;e<n;e++)l.Zd[e]=!0;l.Vd=Jb;l.Vd();l.Op=!!l.W.length;l.Ph=!0;l.hk=!0;s.Xm=!0;l.visible=!0;l.ih=-1;l.e=g;l.Sc=g.d.length;"undefined"===typeof l.Vc&&(l.Vc=null);this.V=l.tg=!0}var r;e=w.length=0;for(n=s.ua.length;e<n;e++)w.push.apply(w,s.ua[e].Ja);w.push.apply(w,s.Ja);if(l.lc)for(e=0,n=w.length;e<n;e++){var H=w[e];r=l.G[e];r.lc=!0;H.behavior.na.call(r,H,l);p=c[4][e];h=0;for(f=p.length;h<f;h++)r.aa[h]=
p[h];r.X();H.behavior.Nf.add(l)}else for(l.G=[],e=0,n=w.length;e<n;e++)H=w[e],r=new H.behavior.na(H,l),r.lc=!1,r.aa=c[4][e].slice(0),r.X(),l.G.push(r),H.behavior.Nf.add(l);p=c[5];if(l.lc)for(e=0,n=p.length;e<n;e++)l.aa[e]=p[e];else l.aa=p.slice(0);this.Wc.push(l);this.je=!0;g&&(g.pg(l,!0),1!==g.Ac||1!==g.Bc)&&(s.Ym=!0);this.Xi++;if(s.Lc){if(l.Lc=!0,l.lc?l.siblings.length=0:l.siblings=[],!a&&!m){e=0;for(n=s.Nb.length;e<n;e++)if(s.Nb[e]!==s){if(!s.Nb[e].Xc)return null;l.siblings.push(this.He(s.Nb[e].Xc,
k,!1,t?l.x:b,t?l.y:d,!0))}e=0;for(n=l.siblings.length;e<n;e++)for(l.siblings[e].siblings.push(l),h=0;h<n;h++)e!==h&&l.siblings[e].siblings.push(l.siblings[h])}}else l.Lc=!1,l.siblings=null;l.X();e=0;for(n=l.G.length;e<n;e++)l.G[e].Tt&&l.G[e].Tt();return l};f.prototype.Bg=function(c){var g,a;g=0;for(a=this.ba.M.length;g<a;g++){var b=this.ba.M[g];if(fb(b.name,c))return b}return null};f.prototype.Fd=function(c){c=T(c);0>c&&(c=0);c>=this.ba.M.length&&(c=this.ba.M.length-1);return this.ba.M[c]};f.prototype.mk=
function(c){var g,a;g=0;for(a=c.length;g<a;g++)c[g].fa().ma=!0};f.prototype.yh=function(c){var g,a;g=0;for(a=c.length;g<a;g++)c[g].yh()};f.prototype.Pl=function(c){var g,a;g=0;for(a=c.length;g<a;g++)c[g].Pl()};f.prototype.Uf=function(c){var g,a;g=0;for(a=c.length;g<a;g++)c[g].Uf()};f.prototype.eg=function(c,g,a,b){var d=c.fa(),e,m,n,h,s,f;if(d.ma)for(b||(d.ma=!1,d.d.length=0),e=0,h=c.d.length;e<h;e++){if(n=c.d[e],n.Na(),s=n.e.ta(g,a,!0),f=n.e.ta(g,a,!1),n.Ob(s,f)){if(b)return!1;d.d.push(n)}}else{e=
m=0;for(h=d.d.length;e<h;e++)if(n=d.d[e],n.Na(),s=n.e.ta(g,a,!0),f=n.e.ta(g,a,!1),n.Ob(s,f)){if(b)return!1;d.d[m]=d.d[e];m++}b||(d.d.length=m)}c.sd();return b?!0:d.Wk()};new ta;new U(0,0,0,0);f.prototype.Hp=function(c,g){if(!g)return!1;var a,b,d,e,m;a=0;for(b=c.Ja.length;a<b;a++)if(c.Ja[a].behavior instanceof g)return!0;if(!c.B)for(a=0,b=c.ua.length;a<b;a++)for(m=c.ua[a],d=0,e=m.Ja.length;d<e;d++)if(m.Ja[d].behavior instanceof g)return!0;return!1};f.prototype.Ip=function(c){return this.Hp(c,Yb.jv)};
f.prototype.rm=function(c){return this.Hp(c,Yb.kv)};var t=-1;f.prototype.trigger=function(c,g,a){if(!this.ba)return!1;var b=this.ba.Le;if(!b)return!1;var d=!1,e,m,n;t++;var h=b.tk;m=0;for(n=h.length;m<n;++m)e=this.Ep(c,g,h[m],a),d=d||e;e=this.Ep(c,g,b,a);t--;return d||e};f.prototype.Ep=function(c,g,a,b){var d=!1,e,m,n,h;if(g)for(n=this.pm(c,g,g.type.name,a,b),d=d||n,h=g.type.ua,e=0,m=h.length;e<m;++e)n=this.pm(c,g,h[e].name,a,b),d=d||n;else n=this.pm(c,g,"system",a,b),d=d||n;return d};f.prototype.pm=
function(c,g,a,b,d){var e,m=!1,n=!1,n="undefined"!==typeof d,h=(n?b.xn:b.Fp)[a];if(!h)return m;var s=null;b=0;for(e=h.length;b<e;++b)if(h[b].method==c){s=h[b].yg;break}if(!s)return m;c=n?s[d]:s;if(!c)return null;b=0;for(e=c.length;b<e;b++)d=c[b][0],n=c[b][1],n=this.ts(g,a,d,n),m=m||n;return m};f.prototype.ts=function(c,g,a,b){var d,e,m=!1;this.qm++;var n=this.xb().ec;n&&this.yh(n.we);var h=1<this.qm;this.yh(a.we);h&&this.Zt();var s=this.Ql(a);s.ec=a;c&&(d=this.types[g].fa(),d.ma=!1,d.d.length=1,d.d[0]=
c,this.types[g].sd());c=!0;if(a.parent){g=s.xp;for(d=a.parent;d;)g.push(d),d=d.parent;g.reverse();d=0;for(e=g.length;d<e;d++)if(!g[d].gu()){c=!1;break}}c&&(this.ei++,a.bd?a.fu(b):a.Ua(),m=m||s.We);this.Zo();h&&this.St();this.Uf(a.we);n&&this.Uf(n.we);this.je&&0===this.Id&&0===t&&!this.hl&&this.jb();this.qm--;return m};f.prototype.Lk=function(){var c=this.xb();return c.ec.kb[c.ub]};f.prototype.Zt=function(){this.Ui++;this.Ui>=this.ul.length&&this.ul.push([])};f.prototype.St=function(){this.Ui--};f.prototype.Dn=
function(){return this.ul[this.Ui]};f.prototype.Ql=function(c){this.di++;this.di>=this.yk.length&&this.yk.push(new Kb);var g=this.xb();g.reset(c);return g};f.prototype.Zo=function(){this.di--};f.prototype.xb=function(){return this.yk[this.di]};f.prototype.En=function(c,g){for(var a,b,d,e,m,n;g;){a=0;for(b=g.Ec.length;a<b;a++)if(n=g.Ec[a],n instanceof Lb&&fb(c,n.name))return n;g=g.parent}a=0;for(b=this.Cd.length;a<b;a++)for(m=this.Cd[a],d=0,e=m.he.length;d<e;d++)if(n=m.he[d],n instanceof Lb&&fb(c,
n.name))return n;return null};f.prototype.Gn=function(c){var g,a;g=0;for(a=this.Sb.length;g<a;g++)if(this.Sb[g].P===c)return this.Sb[g];return null};f.prototype.qi=function(c){var g,a;g=0;for(a=this.n.length;g<a;g++)if(this.n[g].P===c)return this.n[g];return null};f.prototype.Ds=function(c){var g,a;g=0;for(a=this.ae.length;g<a;g++)if(this.ae[g].P===c)return this.ae[g];return null};f.prototype.$s=function(){var c=this,g=this.cm,d=this.Jd,e=this.Oi,m=!1;this.sp&&(m=!0,g="__c2_continuouspreview",this.sp=
!1);if(g.length){this.jb();d=this.ku();if(window.indexedDB&&!this.ic)l(g,d,function(){J("Saved state to IndexedDB storage ("+d.length+" bytes)");c.Jd=d;c.trigger(X.prototype.j.Vj,null);c.Jd="";m&&a()},function(b){try{localStorage.setItem("__c2save_"+g,d),J("Saved state to WebStorage ("+d.length+" bytes)"),c.Jd=d,c.trigger(X.prototype.j.Vj,null),c.Jd="",m&&a()}catch(e){J("Failed to save game state: "+b+"; "+e)}});else try{localStorage.setItem("__c2save_"+g,d),J("Saved state to WebStorage ("+d.length+
" bytes)"),c.Jd=d,this.trigger(X.prototype.j.Vj,null),c.Jd="",m&&a()}catch(n){J("Error saving to WebStorage: "+n)}this.pb=this.Oi=this.cm=""}e.length&&(window.indexedDB&&!this.ic?b(e,function(g){g?(c.pb=g,J("Loaded state from IndexedDB storage ("+c.pb.length+" bytes)")):(c.pb=localStorage.getItem("__c2save_"+e)||"",J("Loaded state from WebStorage ("+c.pb.length+" bytes)"));c.Hh=!1;c.pb.length||c.trigger(X.prototype.j.Tj,null)},function(){c.pb=localStorage.getItem("__c2save_"+e)||"";J("Loaded state from WebStorage ("+
c.pb.length+" bytes)");c.Hh=!1;c.pb.length||c.trigger(X.prototype.j.Tj,null)}):(this.pb=localStorage.getItem("__c2save_"+e)||"",J("Loaded state from WebStorage ("+this.pb.length+" bytes)"),this.Hh=!1,c.pb.length||c.trigger(X.prototype.j.Tj,null)),this.cm=this.Oi="");this.pb.length&&(this.jb(),this.tt(this.pb),this.Jd=this.pb,this.trigger(X.prototype.j.Dq,null),this.pb=this.Jd="")};f.prototype.ku=function(){var c,g,a,b,e,m,n,h={c2save:!0,version:1,rt:{time:this.jc.ca,walltime:this.pd.ca,timescale:this.fg,
tickcount:this.ld,execcount:this.ei,next_uid:this.jh,running_layout:this.ba.P,start_time_offset:Date.now()-this.yj},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};c=0;for(g=this.n.length;c<g;c++)if(e=this.n[c],!e.B&&!this.Ip(e)){m={instances:[]};Sa(e.Aa)&&(m.ex=d(e.Aa));a=0;for(b=e.d.length;a<b;a++)m.instances.push(this.am(e.d[a]));h.types[e.P.toString()]=m}c=0;for(g=this.Sb.length;c<g;c++)a=this.Sb[c],h.layouts[a.P.toString()]=a.rb();b=h.events.groups;c=0;for(g=this.ae.length;c<
g;c++)a=this.ae[c],b[a.P.toString()]=this.ri[a.Gg].Fg;g=h.events.cnds;for(n in this.pf)this.pf.hasOwnProperty(n)&&(c=this.pf[n],Sa(c.Aa)&&(g[n]={ex:d(c.Aa)}));g=h.events.acts;for(n in this.nf)this.nf.hasOwnProperty(n)&&(c=this.nf[n],Sa(c.Aa)&&(g[n]={ex:c.Aa}));g=h.events.vars;for(n in this.kg)this.kg.hasOwnProperty(n)&&(c=this.kg[n],c.Ci||c.parent&&!c.Qg||(g[n]=c.data));h.system=this.kd.rb();return JSON.stringify(h)};f.prototype.fp=function(){var c,g,a,b,d,e;this.Nd={};c=0;for(g=this.n.length;c<g;c++)if(a=
this.n[c],!a.B)for(b=0,d=a.d.length;b<d;b++)e=a.d[b],this.Nd[e.uid.toString()]=e};f.prototype.tt=function(c){c=JSON.parse(c);if(c.c2save&&!(1<c.version)){var g=c.rt;this.jc.reset();this.jc.ca=g.time;this.pd.reset();this.pd.ca=g.walltime||0;this.fg=g.timescale;this.ld=g.tickcount;this.ei=g.execcount;this.yj=Date.now()-g.start_time_offset;var a=g.running_layout;if(a!==this.ba.P)if(a=this.Gn(a))this.rn(a);else return;var b,d,e,m,n,h,s;h=c.types;for(d in h)if(h.hasOwnProperty(d)&&(m=this.qi(parseInt(d,
10)))&&!m.B&&!this.Ip(m)){h[d].ex?m.Aa=h[d].ex:Ta(m.Aa);n=m.d;e=h[d].instances;a=0;for(b=na(n.length,e.length);a<b;a++)this.Pi(n[a],e[a]);a=e.length;for(b=n.length;a<b;a++)this.Xd(n[a]);a=n.length;for(b=e.length;a<b;a++){n=null;if(m.wa.ne&&(n=this.ba.oi(e[a].w.l),!n))continue;n=this.He(m.Xc,n,!1,0,0,!0);this.Pi(n,e[a])}m.dg=!0}this.jb();this.fp();b=c.layouts;for(d in b)b.hasOwnProperty(d)&&(a=this.Gn(parseInt(d,10)))&&a.Tb(b[d]);b=c.events.groups;for(d in b)b.hasOwnProperty(d)&&(a=this.Ds(parseInt(d,
10)))&&this.ri[a.Gg]&&this.ri[a.Gg].lp(b[d]);a=c.events.cnds;for(d in a)a.hasOwnProperty(d)&&this.pf.hasOwnProperty(d)&&(this.pf[d].Aa=a[d].ex);a=c.events.acts;for(d in a)a.hasOwnProperty(d)&&this.nf.hasOwnProperty(d)&&(this.nf[d].Aa=a[d].ex);a=c.events.vars;for(d in a)a.hasOwnProperty(d)&&this.kg.hasOwnProperty(d)&&(this.kg[d].data=a[d]);this.jh=g.next_uid;this.kd.Tb(c.system);a=0;for(b=this.n.length;a<b;a++)if(m=this.n[a],!m.B)for(d=0,c=m.d.length;d<c;d++){n=m.d[d];if(m.Lc)for(h=n.Eg(),g=n.siblings.length=
0,e=m.Nb.length;g<e;g++)s=m.Nb[g],m!==s&&n.siblings.push(s.d[h]);n.qd&&n.qd();if(n.G)for(g=0,e=n.G.length;g<e;g++)h=n.G[g],h.qd&&h.qd()}this.V=!0}};f.prototype.am=function(c,a){var b,e,m,n,h;n=c.type;m=n.wa;var s={};a?s.c2=!0:s.uid=c.uid;Sa(c.Aa)&&(s.ex=d(c.Aa));if(c.Pa&&c.Pa.length)for(s.ivs={},b=0,e=c.Pa.length;b<e;b++)s.ivs[c.type.dl[b].toString()]=c.Pa[b];if(m.ne){m={x:c.x,y:c.y,w:c.width,h:c.height,l:c.e.P,zi:c.uc()};0!==c.k&&(m.a=c.k);1!==c.opacity&&(m.o=c.opacity);.5!==c.zb&&(m.hX=c.zb);.5!==
c.Ab&&(m.hY=c.Ab);0!==c.tb&&(m.bm=c.tb);c.visible||(m.v=c.visible);c.tg||(m.ce=c.tg);-1!==c.ih&&(m.mts=c.ih);if(n.H.length)for(m.fx=[],b=0,e=n.H.length;b<e;b++)h=n.H[b],m.fx.push({name:h.name,active:c.Zd[h.index],params:c.za[h.index]});s.w=m}if(c.G&&c.G.length)for(s.behs={},b=0,e=c.G.length;b<e;b++)n=c.G[b],n.rb&&(s.behs[n.type.P.toString()]=n.rb());c.rb&&(s.data=c.rb());return s};f.prototype.Fs=function(c,a){var b,d;b=0;for(d=c.dl.length;b<d;b++)if(c.dl[b]===a)return b;return-1};f.prototype.Bs=function(c,
a){var b,d;b=0;for(d=c.G.length;b<d;b++)if(c.G[b].type.P===a)return b;return-1};f.prototype.Pi=function(c,a,b){var d,e,m,n,h;h=c.type;m=h.wa;if(b){if(!a.c2)return}else c.uid=a.uid;a.ex?c.Aa=a.ex:Ta(c.Aa);if(e=a.ivs)for(d in e)e.hasOwnProperty(d)&&(b=this.Fs(h,parseInt(d,10)),0>b||b>=c.Pa.length||(c.Pa[b]=e[d]));if(m.ne){m=a.w;c.e.P!==m.l&&(b=c.e,c.e=this.ba.oi(m.l),c.e?(b.Wf(c,!0),c.e.pg(c,!0),c.xa(),c.e.Ch(0)):(c.e=b,this.Xd(c)));c.x=m.x;c.y=m.y;c.width=m.w;c.height=m.h;c.Sc=m.zi;c.k=m.hasOwnProperty("a")?
m.a:0;c.opacity=m.hasOwnProperty("o")?m.o:1;c.zb=m.hasOwnProperty("hX")?m.hX:.5;c.Ab=m.hasOwnProperty("hY")?m.hY:.5;c.visible=m.hasOwnProperty("v")?m.v:!0;c.tg=m.hasOwnProperty("ce")?m.ce:!0;c.ih=m.hasOwnProperty("mts")?m.mts:-1;c.tb=m.hasOwnProperty("bm")?m.bm:0;c.ug=cb(c.tb);this.m&&db(c,c.tb,this.m);c.xa();if(m.hasOwnProperty("fx"))for(b=0,e=m.fx.length;b<e;b++)n=h.Nk(m.fx[b].name),0>n||(c.Zd[n]=m.fx[b].active,c.za[n]=m.fx[b].params);c.Vd()}if(h=a.behs)for(d in h)h.hasOwnProperty(d)&&(m=this.Bs(c,
parseInt(d,10)),0>m||c.G[m].Tb(h[d]));a.data&&c.Tb(a.data)};Mb=function(c){return new f(document.getElementById(c))};Nb=function(c,a){return new f({dc:!0,width:c,height:a})};window.cr_createRuntime=Mb;window.cr_createDCRuntime=Nb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var c=document.createElement("screencanvas")||document.createElement("canvas");c.Wv=!0;document.body.appendChild(c);c=new f(c);window.c2runtime=c;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,
window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);return c};window.createEjectaRuntime=function(){var c=new f(document.getElementById("canvas"));window.c2runtime=c;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return c}})();window.cr_getC2Runtime=function(){var k=document.getElementById("c2canvas");return k?k.c2runtime:window.c2runtime?window.c2runtime:null};
window.cr_sizeCanvas=function(k,p){if(0!==k&&0!==p){var f=window.cr_getC2Runtime();f&&f.setSize(k,p)}};window.cr_setSuspended=function(k){var p=window.cr_getC2Runtime();p&&p.setSuspended(k)};
(function(){function k(c,a){this.b=c;this.Le=null;this.scrollX=this.b.Ta/2;this.scrollY=this.b.Sa/2;this.scale=1;this.k=0;this.uf=!0;this.name=a[0];this.width=a[1];this.height=a[2];this.Jp=a[3];this.qp=a[4];this.P=a[5];var b=a[6],d,e;this.M=[];this.Jg=[];d=0;for(e=b.length;d<e;d++){var h=new Ob(this,b[d]);h.Ho=d;this.M.push(h)}b=a[7];this.Se=[];d=0;for(e=b.length;d<e;d++){var h=b[d],f=this.b.n[h[1]];f.Xc||(f.Xc=h);this.Se.push(h);-1===this.Jg.indexOf(f)&&this.Jg.push(f)}this.H=[];this.W=[];this.za=
[];d=0;for(e=a[8].length;d<e;d++)this.H.push({id:a[8][d][0],name:a[8][d][1],gb:-1,Wa:!0,index:d}),this.za.push(a[8][d][2].slice(0));this.Vd();this.se=new U(0,0,1,1);this.Tl=new U(0,0,1,1);this.re={}}function p(c,a){return c.Sc-a.Sc}function f(c,a){this.Ya=c;this.b=c.b;this.d=[];this.scale=1;this.k=0;this.Je=!1;this.Td=new U(0,0,0,0);this.Cp=new ta;this.Ca=this.ra=this.Da=this.qa=0;this.jf=!1;this.Wd=-1;this.name=a[0];this.index=a[1];this.P=a[2];this.visible=a[3];this.be=a[4];this.Ud=a[5];this.Ac=
a[6];this.Bc=a[7];this.opacity=a[8];this.Fk=a[9];this.Qc=a[10];this.Gb=a[11];this.tb=a[12];this.Pr=a[13];this.ug="source-over";this.lb=this.mb=0;this.Wb=null;this.Gf=r();this.Pd=!0;this.Ii=new U(0,0,-1,-1);this.pc=new U(0,0,-1,-1);this.Qc&&(this.Wb=new bb(this.b.Ta,this.b.Sa));this.te=!1;var b=a[14],d,e;this.vp=[];this.hc=[];this.vg=[];d=0;for(e=b.length;d<e;d++){var h=b[d],f=this.b.n[h[1]];f.Xc||(f.Xc=h,f.sr=this.index);this.hc.push(h);-1===this.Ya.Jg.indexOf(f)&&this.Ya.Jg.push(f)}xa(this.vp,this.hc);
this.H=[];this.W=[];this.za=[];d=0;for(e=a[15].length;d<e;d++)this.H.push({id:a[15][d][0],name:a[15][d][1],gb:-1,Wa:!0,index:d}),this.za.push(a[15][d][2].slice(0));this.Vd();this.se=new U(0,0,1,1);this.Tl=new U(0,0,1,1)}function r(){return d.length?d.pop():[]}function l(c){c.length=0;d.push(c)}k.prototype.ju=function(c){var a=c.type.P.toString();this.re.hasOwnProperty(a)||(this.re[a]=[]);this.re[a].push(this.b.am(c))};k.prototype.Kn=function(){var c=this.M[0];return!c.Ud&&1===c.opacity&&!c.Fk&&c.visible};
k.prototype.Vd=function(){this.W.length=0;var c,a,b;c=0;for(a=this.H.length;c<a;c++)b=this.H[c],b.Wa&&this.W.push(b)};k.prototype.Mk=function(c){var a,b,d;a=0;for(b=this.H.length;a<b;a++)if(d=this.H[a],d.name===c)return d;return null};var b=[],a=!0;k.prototype.jm=function(){this.qp&&(this.Le=this.b.zk[this.qp],this.Le.tm());this.b.ba=this;this.scrollX=this.b.Ta/2;this.scrollY=this.b.Sa/2;var c,d,e,n,h,f,l;c=0;for(e=this.b.n.length;c<e;c++)if(d=this.b.n[c],!d.B)for(h=d.d,d=0,n=h.length;d<n;d++)if(f=
h[d],f.e){var g=f.e.Ho;g>=this.M.length&&(g=this.M.length-1);f.e=this.M[g];-1===f.e.d.indexOf(f)&&f.e.d.push(f);f.e.jf=!0}if(!a)for(c=0,e=this.M.length;c<e;++c)this.M[c].d.sort(p);b.length=0;this.hr();c=0;for(e=this.M.length;c<e;c++)f=this.M[c],f.qr(),f.vm();h=!1;if(!this.uf){for(l in this.re)if(this.re.hasOwnProperty(l)&&(d=this.b.qi(parseInt(l,10)))&&!d.B&&this.b.rm(d)){n=this.re[l];c=0;for(e=n.length;c<e;c++){f=null;if(d.wa.ne&&(f=this.oi(n[c].w.l),!f))continue;f=this.b.He(d.Xc,f,!1,0,0,!0);this.b.Pi(f,
n[c]);h=!0;b.push(f)}n.length=0}c=0;for(e=this.M.length;c<e;c++)this.M[c].d.sort(p),this.M[c].jf=!0}h&&(this.b.jb(),this.b.fp());for(c=0;c<b.length;c++)if(f=b[c],f.type.Lc)for(e=f.Eg(),d=0,n=f.type.Nb.length;d<n;d++)l=f.type.Nb[d],f.type!==l&&(l.d.length>e?f.siblings.push(l.d[e]):l.Xc&&(h=this.b.He(l.Xc,f.e,!0,f.x,f.y,!0),this.b.jb(),l.Lj(),f.siblings.push(h),b.push(h)));c=0;for(e=this.Se.length;c<e;c++)this.b.He(this.Se[c],null,!0);this.b.vd=null;this.b.jb();if(this.b.da&&!this.b.ga)for(c=0,e=this.b.n.length;c<
e;c++)l=this.b.n[c],!l.B&&l.d.length&&l.lj&&l.lj(this.b.da);c=0;for(e=b.length;c<e;c++)f=b[c],this.b.trigger(Object.getPrototypeOf(f.type.wa).j.qq,f);b.length=0;this.b.trigger(X.prototype.j.Gm,null);this.uf=!1};k.prototype.pr=function(){var c,a,b,d,e;a=c=0;for(b=this.Se.length;c<b;c++)d=this.Se[c],e=this.b.n[d[1]],e.global?this.b.He(d,null,!0):(this.Se[a]=d,a++);this.Se.length=a};k.prototype.su=function(){this.b.trigger(X.prototype.j.Cq,null);this.b.kd.Fb.length=0;var c,b,d,e,h,f;if(!this.uf)for(c=
0,b=this.M.length;c<b;c++)for(this.M[c].wm(),h=this.M[c].d,d=0,e=h.length;d<e;d++)f=h[d],f.type.global||this.b.rm(f.type)&&this.ju(f);c=0;for(b=this.M.length;c<b;c++){h=this.M[c].d;d=0;for(e=h.length;d<e;d++)f=h[d],f.type.global||this.b.Xd(f);this.b.jb();h.length=0;this.M[c].jf=!0}c=0;for(b=this.b.n.length;c<b;c++)if(h=this.b.n[c],!(h.global||h.wa.ne||h.wa.tj||h.B)){d=0;for(e=h.d.length;d<e;d++)this.b.Xd(h.d[d]);this.b.jb()}a=!1};new U(0,0,0,0);k.prototype.fc=function(c){var a,b=c,d=!1,e=!this.b.rc;
e&&(this.b.Ni||(this.b.Ni=document.createElement("canvas"),a=this.b.Ni,a.width=this.b.L,a.height=this.b.K,this.b.fo=a.getContext("2d"),d=!0),a=this.b.Ni,b=this.b.fo,a.width!==this.b.L&&(a.width=this.b.L,d=!0),a.height!==this.b.K&&(a.height=this.b.K,d=!0),d&&(b.webkitImageSmoothingEnabled=this.b.S,b.mozImageSmoothingEnabled=this.b.S,b.msImageSmoothingEnabled=this.b.S,b.imageSmoothingEnabled=this.b.S));b.globalAlpha=1;b.globalCompositeOperation="source-over";this.b.$j&&!this.Kn()&&b.clearRect(0,0,this.b.L,
this.b.K);var h,f,d=0;for(h=this.M.length;d<h;d++)f=this.M[d],f.visible&&0<f.opacity&&11!==f.tb&&(f.d.length||!f.Ud)?f.fc(b):f.vm();e&&c.drawImage(a,0,0,this.b.width,this.b.height)};k.prototype.wb=function(c){var a=0<this.W.length||this.b.ig||!this.b.rc;if(a){this.b.Rb||(this.b.Rb=c.wd(this.b.L,this.b.K,this.b.S));if(this.b.Rb.sg!==this.b.L||this.b.Rb.rg!==this.b.K)c.deleteTexture(this.b.Rb),this.b.Rb=c.wd(this.b.L,this.b.K,this.b.S);c.gd(this.b.Rb);this.b.rc||c.Zf(this.b.L,this.b.K)}else this.b.Rb&&
(c.gd(null),c.deleteTexture(this.b.Rb),this.b.Rb=null);this.b.$j&&!this.Kn()&&c.clear(0,0,0,0);var b,d,e;b=0;for(d=this.M.length;b<d;b++)e=this.M[b],e.visible&&0<e.opacity&&(e.d.length||!e.Ud)?e.wb(c):e.vm();a&&(0===this.W.length||1===this.W.length&&this.b.rc?(1===this.W.length?(a=this.W[0].index,c.jd(this.W[0].gb),c.Yf(null,1/this.b.L,1/this.b.K,0,0,1,1,this.scale,this.k,0,0,this.b.L/2,this.b.K/2,this.za[a]),c.mj(this.W[0].gb)&&(this.b.V=!0)):c.jd(0),this.b.rc||c.Zf(this.b.width,this.b.height),c.gd(null),
c.ve(1),c.Db(this.b.Rb),c.kp(),c.fd(),c.nd(),a=this.b.width/2,b=this.b.height/2,c.zh(-a,b,a,b,a,-b,-a,-b),c.Db(null)):this.Ul(c,null,null,null))};k.prototype.Cg=function(){return 0<this.W.length||this.b.ig||!this.b.rc?this.b.Rb:null};k.prototype.Hn=function(){var c=this.M[0].Pb(),a,b,d;a=1;for(b=this.M.length;a<b;a++)d=this.M[a],(0!==d.Ac||0!==d.Bc)&&d.Pb()<c&&(c=d.Pb());return c};k.prototype.ip=function(c){if(!this.Jp){var a=1/this.Hn()*this.b.L/2;c>this.width-a&&(c=this.width-a);c<a&&(c=a)}this.scrollX!==
c&&(this.scrollX=c,this.b.V=!0)};k.prototype.jp=function(c){if(!this.Jp){var a=1/this.Hn()*this.b.K/2;c>this.height-a&&(c=this.height-a);c<a&&(c=a)}this.scrollY!==c&&(this.scrollY=c,this.b.V=!0)};k.prototype.hr=function(){this.ip(this.scrollX);this.jp(this.scrollY)};k.prototype.Ul=function(c,a,b,d){var e=b?b.W:a?a.W:this.W,h=1,f=0,g=0,l=0,p=this.b.L,k=this.b.K;b?(h=b.e.Pb(),f=b.e.La(),g=b.e.qa,l=b.e.ra,p=b.e.Da,k=b.e.Ca):a&&(h=a.Pb(),f=a.La(),g=a.qa,l=a.ra,p=a.Da,k=a.Ca);var A=this.b.Ik,r,B,u,z,M=
0,ha=1,Y,G=this.b.L,y=this.b.K,ua=G/2,H=y/2,Q=a?a.se:this.se,E=a?a.Tl:this.Tl,F=0,O=0,D=0,L=0,I=G,ja=G,N=y,pa=y,da=u=0,ra=b?b.e.La():0;if(b){r=0;for(B=e.length;r<B;r++)u+=c.Js(e[r].gb),da+=c.Ks(e[r].gb);z=b.Xa;F=a.Ra(z.left,z.top,!0);D=a.Ra(z.left,z.top,!1);I=a.Ra(z.right,z.bottom,!0);N=a.Ra(z.right,z.bottom,!1);0!==ra&&(r=a.Ra(z.right,z.top,!0),B=a.Ra(z.right,z.top,!1),O=a.Ra(z.left,z.bottom,!0),L=a.Ra(z.left,z.bottom,!1),z=Math.min(F,I,r,O),I=Math.max(F,I,r,O),F=z,z=Math.min(D,N,B,L),N=Math.max(D,
N,B,L),D=z);F-=u;D-=da;I+=u;N+=da;E.left=F/G;E.top=1-D/y;E.right=I/G;E.bottom=1-N/y;O=F=T(F);L=D=T(D);ja=I=qa(I);pa=N=qa(N);O-=u;L-=da;ja+=u;pa+=da;0>F&&(F=0);0>D&&(D=0);I>G&&(I=G);N>y&&(N=y);0>O&&(O=0);0>L&&(L=0);ja>G&&(ja=G);pa>y&&(pa=y);Q.left=F/G;Q.top=1-D/y;Q.right=I/G;Q.bottom=1-N/y}else Q.left=E.left=0,Q.top=E.top=0,Q.right=E.right=1,Q.bottom=E.bottom=1;da=b&&((b.k||ra)&&c.wh(e[0].gb)||0!==u||0!==da||1!==b.opacity||b.type.wa.Co)||a&&!b&&1!==a.opacity;c.kp();if(da){A[M]||(A[M]=c.wd(G,y,this.b.S));
if(A[M].sg!==G||A[M].rg!==y)c.deleteTexture(A[M]),A[M]=c.wd(G,y,this.b.S);c.jd(0);c.gd(A[M]);Y=pa-L;c.clearRect(O,y-L-Y,ja-O,Y);b?b.wb(c):(c.Db(this.b.kc),c.ve(a.opacity),c.fd(),c.translate(-ua,-H),c.nd(),c.ed(F,N,I,N,I,D,F,D,Q));E.left=E.top=0;E.right=E.bottom=1;b&&(z=Q.top,Q.top=Q.bottom,Q.bottom=z);M=1;ha=0}c.ve(1);u=e.length-1;var ra=c.Ol(e[u].gb)||!a&&!b&&!this.b.rc,ba=0;r=0;for(B=e.length;r<B;r++){A[M]||(A[M]=c.wd(G,y,this.b.S));if(A[M].sg!==G||A[M].rg!==y)c.deleteTexture(A[M]),A[M]=c.wd(G,
y,this.b.S);c.jd(e[r].gb);ba=e[r].index;c.mj(e[r].gb)&&(this.b.V=!0);0!=r||da?(c.Yf(d,1/G,1/y,E.left,E.top,E.right,E.bottom,h,f,g,l,(g+p)/2,(l+k)/2,b?b.za[ba]:a?a.za[ba]:this.za[ba]),c.Db(null),r!==u||ra?(c.gd(A[M]),Y=pa-L,z=y-L-Y,c.clearRect(O,z,ja-O,Y)):(b?c.ue(b.mb,b.lb):a&&c.ue(a.mb,a.lb),c.gd(d)),c.Db(A[ha]),c.fd(),c.translate(-ua,-H),c.nd(),c.ed(F,N,I,N,I,D,F,D,Q),r!==u||ra||c.Db(null)):(c.gd(A[M]),Y=pa-L,z=y-L-Y,c.clearRect(O,z,ja-O,Y),b?(c.Yf(d,1/b.width,1/b.height,E.left,E.top,E.right,E.bottom,
h,f,g,l,(g+p)/2,(l+k)/2,b.za[ba]),b.wb(c)):(c.Yf(d,1/G,1/y,0,0,1,1,h,f,g,l,(g+p)/2,(l+k)/2,a?a.za[ba]:this.za[ba]),c.Db(a?this.b.kc:this.b.Rb),c.fd(),c.translate(-ua,-H),c.nd(),c.ed(F,N,I,N,I,D,F,D,Q)),E.left=E.top=0,E.right=E.bottom=1,b&&!ra&&(z=N,N=D,D=z));M=0===M?1:0;ha=0===M?1:0}ra&&(c.jd(0),b?c.ue(b.mb,b.lb):a?c.ue(a.mb,a.lb):this.b.rc||(c.Zf(this.b.width,this.b.height),ua=this.b.width/2,H=this.b.height/2,D=F=0,I=this.b.width,N=this.b.height),c.gd(d),c.Db(A[ha]),c.fd(),c.translate(-ua,-H),c.nd(),
b&&1===e.length&&!da?c.ed(F,D,I,D,I,N,F,N,Q):c.ed(F,N,I,N,I,D,F,D,Q),c.Db(null))};k.prototype.oi=function(c){var a,b;a=0;for(b=this.M.length;a<b;a++)if(this.M[a].P===c)return this.M[a];return null};k.prototype.rb=function(){var c,a,b,d={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.k,w:this.width,h:this.height,fv:this.uf,persist:this.re,fx:[],layers:{}};c=0;for(a=this.H.length;c<a;c++)b=this.H[c],d.fx.push({name:b.name,active:b.Wa,params:this.za[b.index]});c=0;for(a=this.M.length;c<a;c++)b=
this.M[c],d.layers[b.P.toString()]=b.rb();return d};k.prototype.Tb=function(c){var a,b,d,e;this.scrollX=c.sx;this.scrollY=c.sy;this.scale=c.s;this.k=c.a;this.width=c.w;this.height=c.h;this.re=c.persist;"undefined"!==typeof c.fv&&(this.uf=c.fv);var h=c.fx;a=0;for(b=h.length;a<b;a++)if(d=this.Mk(h[a].name))d.Wa=h[a].active,this.za[d.index]=h[a].params;this.Vd();a=c.layers;for(e in a)a.hasOwnProperty(e)&&(c=this.oi(parseInt(e,10)))&&c.Tb(a[e])};Ab=k;f.prototype.Vd=function(){this.W.length=0;var c,a,
b;c=0;for(a=this.H.length;c<a;c++)b=this.H[c],b.Wa&&this.W.push(b)};f.prototype.Mk=function(c){var a,b,d;a=0;for(b=this.H.length;a<b;a++)if(d=this.H[a],d.name===c)return d;return null};f.prototype.qr=function(){var c,a,d,e,h,f;a=c=0;for(d=this.hc.length;c<d;c++){e=this.hc[c];h=this.b.n[e[1]];f=this.b.rm(h);h=!0;if(!f||this.Ya.uf)e=this.b.He(e,this,!0),b.push(e),e.type.global&&(h=!1,this.vg.push(e.uid));h&&(this.hc[a]=this.hc[c],a++)}this.hc.length=a;this.b.jb();!this.b.q&&this.H.length&&(this.tb=
this.Pr);this.ug=cb(this.tb);this.b.m&&db(this,this.tb,this.b.m);this.Pd=!0};f.prototype.Wf=function(c,a){var b=za(this.d,c);0>b||(a&&this.Qc&&c.Bb&&c.Bb.right>=c.Bb.left&&(c.Na(),this.Wb.update(c,c.Bb,null),c.Bb.set(0,0,-1,-1)),b===this.d.length-1?this.d.pop():(wa(this.d,b),this.Ch(b)),this.Pd=!0)};f.prototype.pg=function(c,a){c.Sc=this.d.length;this.d.push(c);a&&this.Qc&&c.Bb&&c.xa();this.Pd=!0};f.prototype.Wt=function(c){this.d.unshift(c);this.Ch(0)};f.prototype.At=function(c,a,b){var d=c.uc();
a=a.uc();wa(this.d,d);d<a&&a--;b&&a++;a===this.d.length?this.d.push(c):this.d.splice(a,0,c);this.Ch(d<a?d:a)};f.prototype.Ch=function(c){-1===this.Wd?this.Wd=c:c<this.Wd&&(this.Wd=c);this.Pd=this.jf=!0};f.prototype.wm=function(){if(this.jf){-1===this.Wd&&(this.Wd=0);var c,a,b;if(this.Qc)for(c=this.Wd,a=this.d.length;c<a;++c)b=this.d[c],b.Sc=c,this.Wb.wt(b.Bb);else for(c=this.Wd,a=this.d.length;c<a;++c)this.d[c].Sc=c;this.jf=!1;this.Wd=-1}};f.prototype.Pb=function(c){return this.Gs()*(this.b.rc||c?
this.b.qg:1)};f.prototype.Gs=function(){return(this.scale*this.Ya.scale-1)*this.Gb+1};f.prototype.La=function(){return this.Je?0:Da(this.Ya.k+this.k)};var d=[],e=[],h=[];f.prototype.In=function(){this.wm();this.Wb.ep(this.qa,this.ra,this.Da,this.Ca,h);if(!h.length)return r();if(1===h.length){var c=r();xa(c,h[0]);h.length=0;return c}for(var a=!0;1<h.length;){for(var c=h,b=void 0,d=void 0,f=void 0,p=void 0,q=void 0,b=0,d=c.length;b<d-1;b+=2){var f=c[b],p=c[b+1],q=r(),g=f,x=p,k=q,v=0,A=0,K=0,B=g.length,
u=x.length,z=void 0,M=void 0;for(k.length=B+u;v<B&&A<u;++K)z=g[v],M=x[A],z.Sc<M.Sc?(k[K]=z,++v):(k[K]=M,++A);for(;v<B;++v,++K)k[K]=g[v];for(;A<u;++A,++K)k[K]=x[A];a||(l(f),l(p));e.push(q)}1===d%2&&(a?(f=r(),xa(f,c[d-1]),e.push(f)):e.push(c[d-1]));xa(c,e);e.length=0;a=!1}c=h[0];h.length=0;return c};f.prototype.fc=function(c){this.te=this.Fk||1!==this.opacity||0!==this.tb;var a=this.b.canvas,b=c,d=!1;this.te&&(this.b.Mi||(this.b.Mi=document.createElement("canvas"),a=this.b.Mi,a.width=this.b.L,a.height=
this.b.K,this.b.eo=a.getContext("2d"),d=!0),a=this.b.Mi,b=this.b.eo,a.width!==this.b.L&&(a.width=this.b.L,d=!0),a.height!==this.b.K&&(a.height=this.b.K,d=!0),d&&(b.webkitImageSmoothingEnabled=this.b.S,b.mozImageSmoothingEnabled=this.b.S,b.msImageSmoothingEnabled=this.b.S,b.imageSmoothingEnabled=this.b.S),this.Ud&&b.clearRect(0,0,this.b.L,this.b.K));b.globalAlpha=1;b.globalCompositeOperation="source-over";this.Ud||(b.fillStyle="rgb("+this.be[0]+","+this.be[1]+","+this.be[2]+")",b.fillRect(0,0,this.b.L,
this.b.K));b.save();this.Je=!0;var d=this.ta(0,0,!0,!0),e=this.ta(0,0,!1,!0);this.Je=!1;this.b.Cc&&(d=Math.round(d),e=Math.round(e));this.Wl(d,e,b);var h=this.Pb();b.scale(h,h);b.translate(-d,-e);this.Qc?(this.pc.left=this.Wb.$b(this.qa),this.pc.top=this.Wb.ac(this.ra),this.pc.right=this.Wb.$b(this.Da),this.pc.bottom=this.Wb.ac(this.Ca),this.Pd||!this.pc.ci(this.Ii)?(l(this.Gf),d=this.In(),this.Pd=!1,this.Ii.Uh(this.pc)):d=this.Gf):d=this.d;for(var f,g=null,e=0,h=d.length;e<h;++e)f=d[e],f!==g&&(this.Mr(f,
b),g=f);this.Qc&&(this.Gf=d);b.restore();this.te&&(c.globalCompositeOperation=this.ug,c.globalAlpha=this.opacity,c.drawImage(a,0,0))};f.prototype.Mr=function(c,a){if(c.visible&&0!==c.width&&0!==c.height){c.Na();var b=c.Xa;b.right<this.qa||b.bottom<this.ra||b.left>this.Da||b.top>this.Ca||(a.globalCompositeOperation=c.ug,c.fc(a))}};f.prototype.vm=function(){this.Je=!0;var c=this.ta(0,0,!0,!0),a=this.ta(0,0,!1,!0);this.Je=!1;this.b.Cc&&(c=Math.round(c),a=Math.round(a));this.Wl(c,a,null)};f.prototype.Wl=
function(c,a,b){var d=this.Pb();this.qa=c;this.ra=a;this.Da=c+1/d*this.b.L;this.Ca=a+1/d*this.b.K;c=this.La();0!==c&&(b&&(b.translate(this.b.L/2,this.b.K/2),b.rotate(-c),b.translate(this.b.L/-2,this.b.K/-2)),this.Td.set(this.qa,this.ra,this.Da,this.Ca),this.Td.offset((this.qa+this.Da)/-2,(this.ra+this.Ca)/-2),this.Cp.op(this.Td,c),this.Cp.en(this.Td),this.Td.offset((this.qa+this.Da)/2,(this.ra+this.Ca)/2),this.qa=this.Td.left,this.ra=this.Td.top,this.Da=this.Td.right,this.Ca=this.Td.bottom)};f.prototype.wb=
function(c){var a=0,b=0;if(this.te=this.Fk||1!==this.opacity||0<this.W.length||0!==this.tb){this.b.kc||(this.b.kc=c.wd(this.b.L,this.b.K,this.b.S));if(this.b.kc.sg!==this.b.L||this.b.kc.rg!==this.b.K)c.deleteTexture(this.b.kc),this.b.kc=c.wd(this.b.L,this.b.K,this.b.S);c.gd(this.b.kc);this.Ud&&c.clear(0,0,0,0)}this.Ud||c.clear(this.be[0]/255,this.be[1]/255,this.be[2]/255,1);this.Je=!0;var d=this.ta(0,0,!0,!0),a=this.ta(0,0,!1,!0);this.Je=!1;this.b.Cc&&(d=Math.round(d),a=Math.round(a));this.Wl(d,a,
null);d=this.Pb();c.fd();c.scale(d,d);c.Xl(-this.La());c.translate((this.qa+this.Da)/-2,(this.ra+this.Ca)/-2);c.nd();this.Qc?(this.pc.left=this.Wb.$b(this.qa),this.pc.top=this.Wb.ac(this.ra),this.pc.right=this.Wb.$b(this.Da),this.pc.bottom=this.Wb.ac(this.Ca),this.Pd||!this.pc.ci(this.Ii)?(l(this.Gf),a=this.In(),this.Pd=!1,this.Ii.Uh(this.pc)):a=this.Gf):a=this.d;var e,h,f=null,b=0;for(e=a.length;b<e;++b)h=a[b],h!==f&&(this.Nr(a[b],c),f=h);this.Qc&&(this.Gf=a);this.te&&(a=this.W.length?this.W[0].gb:
0,b=this.W.length?this.W[0].index:0,0===this.W.length||1===this.W.length&&!c.Ol(a)&&1===this.opacity?(1===this.W.length?(c.jd(a),c.Yf(this.Ya.Cg(),1/this.b.L,1/this.b.K,0,0,1,1,d,this.La(),this.qa,this.ra,(this.qa+this.Da)/2,(this.ra+this.Ca)/2,this.za[b]),c.mj(a)&&(this.b.V=!0)):c.jd(0),c.gd(this.Ya.Cg()),c.ve(this.opacity),c.Db(this.b.kc),c.ue(this.mb,this.lb),c.fd(),c.nd(),d=this.b.L/2,a=this.b.K/2,c.zh(-d,a,d,a,d,-a,-d,-a),c.Db(null)):this.Ya.Ul(c,this,null,this.Ya.Cg()))};f.prototype.Nr=function(c,
a){if(c.visible&&0!==c.width&&0!==c.height){c.Na();var b=c.Xa;b.right<this.qa||b.bottom<this.ra||b.left>this.Da||b.top>this.Ca||(c.Op?this.Or(c,a):(a.jd(0),a.ue(c.mb,c.lb),c.wb(a)))}};f.prototype.Or=function(c,a){var b=c.W[0].gb,d=c.W[0].index,e=this.Pb();if(1!==c.W.length||a.Ol(b)||a.Yt(b)||(c.k||c.e.La())&&a.wh(b)||1!==c.opacity||c.type.wa.Co)this.Ya.Ul(a,this,c,this.te?this.b.kc:this.Ya.Cg()),a.fd(),a.scale(e,e),a.Xl(-this.La()),a.translate((this.qa+this.Da)/-2,(this.ra+this.Ca)/-2),a.nd();else{a.jd(b);
a.ue(c.mb,c.lb);a.mj(b)&&(this.b.V=!0);var h=0,f=0,g=0,l=0;a.wh(b)&&(b=c.Xa,h=this.Ra(b.left,b.top,!0),f=this.Ra(b.left,b.top,!1),g=this.Ra(b.right,b.bottom,!0),b=this.Ra(b.right,b.bottom,!1),h/=windowWidth,f=1-f/windowHeight,g/=windowWidth,l=1-b/windowHeight);a.Yf(this.te?this.b.kc:this.Ya.Cg(),1/c.width,1/c.height,h,f,g,l,e,this.La(),this.qa,this.ra,(this.qa+this.Da)/2,(this.ra+this.Ca)/2,c.za[d]);c.wb(a)}};f.prototype.ta=function(c,a,b,d){var e=this.b.devicePixelRatio;this.b.Af&&(c*=e,a*=e);var e=
this.b.To,h=this.b.Uo,e=(this.Ya.scrollX-e)*this.Ac+e,h=(this.Ya.scrollY-h)*this.Bc+h,f=e,g=h,l=1/this.Pb(!d);d?(f-=this.b.L*l/2,g-=this.b.K*l/2):(f-=this.b.width*l/2,g-=this.b.height*l/2);f+=c*l;g+=a*l;a=this.La();0!==a&&(f-=e,g-=h,c=Math.cos(a),a=Math.sin(a),d=f*c-g*a,g=g*c+f*a,f=d+e,g+=h);return b?f:g};f.prototype.Ra=function(a,b,d){var e=this.b.To,h=this.b.Uo,e=(this.Ya.scrollX-e)*this.Ac+e,f=(this.Ya.scrollY-h)*this.Bc+h,h=e,l=f,g=this.La();if(0!==g){a-=e;b-=f;var x=Math.cos(-g),g=Math.sin(-g),
k=a*x-b*g;b=b*x+a*g;a=k+e;b+=f}e=1/this.Pb(!1);h-=this.b.L*e/2;l-=this.b.K*e/2;h=(a-h)/e;return d?h:(b-l)/e};f.prototype.rb=function(){var a,b,d,e={s:this.scale,a:this.k,vl:this.qa,vt:this.ra,vr:this.Da,vb:this.Ca,v:this.visible,bc:this.be,t:this.Ud,px:this.Ac,py:this.Bc,o:this.opacity,zr:this.Gb,fx:[],cg:this.vg,instances:[]};a=0;for(b=this.H.length;a<b;a++)d=this.H[a],e.fx.push({name:d.name,active:d.Wa,params:this.za[d.index]});return e};f.prototype.Tb=function(a){var b,d,e;this.scale=a.s;this.k=
a.a;this.qa=a.vl;this.ra=a.vt;this.Da=a.vr;this.Ca=a.vb;this.visible=a.v;this.be=a.bc;this.Ud=a.t;this.Ac=a.px;this.Bc=a.py;this.opacity=a.o;this.Gb=a.zr;this.vg=a.cg||[];xa(this.hc,this.vp);var h=new ca;b=0;for(e=this.vg.length;b<e;++b)h.add(this.vg[b]);d=b=0;for(e=this.hc.length;b<e;++b)h.contains(this.hc[b][2])||(this.hc[d]=this.hc[b],++d);this.hc.length=d;d=a.fx;b=0;for(e=d.length;b<e;b++)if(a=this.Mk(d[b].name))a.Wa=d[b].active,this.za[a.index]=d[b].params;this.Vd();this.d.sort(p);this.jf=!0};
Ob=f})();
(function(){function k(a,c){var b,d=a.length;switch(d){case 0:return!0;case 1:return a[0]===c[0];case 2:return a[0]===c[0]&&a[1]===c[1];default:for(b=0;b<d;b++)if(a[b]!==c[b])return!1;return!0}}function p(a,c){return a.index-c.index}function f(a){var c,b,d,e;2===a.length?a[0].index>a[1].index&&(c=a[0],a[0]=a[1],a[1]=c):2<a.length&&a.sort(p);a.length>=w.length&&(w.length=a.length+1);w[a.length]||(w[a.length]=[]);e=w[a.length];c=0;for(b=e.length;c<b;c++)if(d=e[c],k(a,d))return d;e.push(a);return a}
function r(a,c){this.b=a;this.Fp={};this.xn={};this.Xk=!1;this.Nn=new ca;this.tk=[];this.ak=[];this.name=c[0];var b=c[1];this.he=[];var d,e;d=0;for(e=b.length;d<e;d++)this.Pn(b[d],null,this.he)}function l(a){this.type=a;this.d=[];this.T=[];this.ma=!0}function b(a,c,b){this.sheet=a;this.parent=c;this.b=a.b;this.pa=[];this.we=[];this.Ln=this.Gj=this.om=this.yi=this.group=this.up=!1;this.kb=[];this.Gc=[];this.Ec=[];this.Gg="";this.Fg=this.yi=this.group=!1;this.Sh=null;b[1]&&(this.Gg=b[1][1].toLowerCase(),
this.group=!0,this.yi=!!b[1][0],this.Sh=[],this.Fg=this.yi,this.b.ae.push(this),this.b.ri[this.Gg]=this);this.bd=b[2];this.P=b[4];this.group||(this.b.dn[this.P.toString()]=this);var d=b[5];a=0;for(c=d.length;a<c;a++){var e=new Pb(this,d[a]);e.index=a;this.kb.push(e);this.Tm(e.type)}d=b[6];a=0;for(c=d.length;a<c;a++)e=new Qb(this,d[a]),e.index=a,this.Gc.push(e);if(8===b.length)for(b=b[7],a=0,c=b.length;a<c;a++)this.sheet.Pn(b[a],this,this.Ec);this.Di=!1;this.kb.length&&(this.Di=null==this.kb[0].type&&
this.kb[0].cb==X.prototype.j.Xp)}function a(a,c){var b,d,e;if(a&&(-1===c.indexOf(a)&&c.push(a),a.Lc))for(b=0,d=a.Nb.length;b<d;b++)e=a.Nb[b],a!==e&&-1===c.indexOf(e)&&c.push(e)}function d(a,c){this.cc=a;this.sheet=a.sheet;this.b=a.b;this.N=[];this.Ba=[];this.Aa={};this.index=-1;this.mg=!1;this.cb=this.b.Yd(c[1]);this.trigger=0<c[3];this.wn=2===c[3];this.$c=c[4];this.Kg=c[5];this.qt=c[6];this.P=c[7];this.b.pf[this.P.toString()]=this;-1===c[0]?(this.type=null,this.Ua=this.$l,this.Fe=null,this.Ic=-1):
(this.type=this.b.n[c[0]],this.Ua=this.qt?this.hu:this.Zl,c[2]?(this.Fe=this.type.mi(c[2]),this.Ic=this.type.Kk(c[2])):(this.Fe=null,this.Ic=-1),this.cc.parent&&this.cc.parent.sj());this.wn&&(this.Ua=this.iu);if(10===c.length){var b,d,e=c[9];b=0;for(d=e.length;b<d;b++){var h=new Rb(this,e[b]);this.N.push(h)}this.Ba.length=e.length}}function e(a,c){this.cc=a;this.sheet=a.sheet;this.b=a.b;this.N=[];this.Ba=[];this.Aa={};this.index=-1;this.mg=!1;this.cb=this.b.Yd(c[1]);-1===c[0]?(this.type=null,this.Ua=
this.$l,this.Fe=null,this.Ic=-1):(this.type=this.b.n[c[0]],this.Ua=this.Zl,c[2]?(this.Fe=this.type.mi(c[2]),this.Ic=this.type.Kk(c[2])):(this.Fe=null,this.Ic=-1));this.P=c[3];this.b.nf[this.P.toString()]=this;if(6===c.length){var b,d,e=c[5];b=0;for(d=e.length;b<d;b++){var h=new Rb(this,e[b]);this.N.push(h)}this.Ba.length=e.length}}function h(){q++;t.length===q&&t.push(new Sb);return t[q]}function c(a,c){this.la=a;this.cc=a.cc;this.sheet=a.sheet;this.b=a.b;this.type=c[0];this.Yc=null;this.Sd=0;this.get=
null;this.nn=0;this.Ya=null;this.key=0;this.object=null;this.index=0;this.Mh=this.gf=this.Mh=this.gf=this.yn=this.Me=this.Nh=null;this.Fc=!1;var b,d,e;switch(c[0]){case 0:case 7:this.Yc=new Tb(this,c[1]);this.Sd=0;this.get=this.Ps;break;case 1:this.Yc=new Tb(this,c[1]);this.Sd=0;this.get=this.Qs;break;case 5:this.Yc=new Tb(this,c[1]);this.Sd=0;this.get=this.Us;break;case 3:case 8:this.nn=c[1];this.get=this.Ns;break;case 6:this.Ya=this.b.Hf[c[1]];this.get=this.Vs;break;case 9:this.key=c[1];this.get=
this.Ts;break;case 4:this.object=this.b.n[c[1]];this.get=this.Ws;this.cc.Tm(this.object);this.la instanceof Qb?this.cc.sj():this.cc.parent&&this.cc.parent.sj();break;case 10:this.index=c[1];a.type.B?(this.get=this.Rs,this.Fc=!0):this.get=this.Ss;break;case 11:this.Nh=c[1];this.Me=null;this.get=this.Os;break;case 2:case 12:this.yn=c[1];this.get=this.Ms;break;case 13:for(this.get=this.Xs,this.gf=[],this.Mh=[],b=1,d=c.length;b<d;b++)e=new Rb(this.la,c[b]),this.gf.push(e),this.Mh.push(0)}}function m(a,
c,b){this.sheet=a;this.parent=c;this.b=a.b;this.pa=[];this.name=b[1];this.Oj=b[2];this.xi=b[3];this.Qg=!!b[4];this.Ci=!!b[5];this.P=b[6];this.b.kg[this.P.toString()]=this;this.data=this.xi;this.parent?(this.$e=this.Qg||this.Ci?-1:this.b.qu++,this.b.cr.push(this)):(this.$e=-1,this.b.Yj.push(this))}function s(a,c,b){this.sheet=a;this.parent=c;this.b=a.b;this.pa=[];this.Ig=null;this.dt=b[1];this.Wa=!0}function n(){this.xp=[];this.reset(null)}var w=[];r.prototype.toString=function(){return this.name};
r.prototype.Pn=function(a,c,b){switch(a[0]){case 0:a=new Ub(this,c,a);if(a.bd)for(b.push(a),b=0,c=a.kb.length;b<c;b++)a.kb[b].trigger&&this.Qn(a,b);else a.Xn()?this.Qn(a,0):b.push(a);break;case 1:a=new Lb(this,c,a);b.push(a);break;case 2:a=new Vb(this,c,a),b.push(a)}};r.prototype.Ha=function(){var a,c;a=0;for(c=this.he.length;a<c;a++)this.he[a].Ha(a<c-1&&this.he[a+1].Di)};r.prototype.tm=function(){this.tk.length=0;this.ak.length=0;this.Sm(this);this.ak.length=0};r.prototype.Sm=function(a){var c,b,
d,e,h=a.tk,n=a.ak,f=this.Nn.Rc();c=0;for(b=f.length;c<b;++c)d=f[c],e=d.Ig,!d.Wa||a===e||-1<n.indexOf(e)||(n.push(e),e.Sm(a),h.push(e))};r.prototype.Ua=function(a){this.b.Vv||(this.Xk=!0,a||(this.b.hl=!0));var c,b;c=0;for(b=this.he.length;c<b;c++){var d=this.he[c];d.Ua();this.b.mk(d.pa);this.b.je&&this.b.jb()}a||(this.b.hl=!1)};r.prototype.Qn=function(a,c){a.bd||this.b.Jj.push(a);var b,d,e=a.kb[c],h;h=e.type?e.type.name:"system";var n=(b=e.wn)?this.xn:this.Fp;n[h]||(n[h]=[]);h=n[h];n=e.cb;if(b){if(e.N.length&&
(e=e.N[0],1===e.type&&2===e.Yc.type)){e=e.Yc.value.toLowerCase();b=0;for(d=h.length;b<d;b++)if(h[b].method==n){b=h[b].yg;b[e]?b[e].push([a,c]):b[e]=[[a,c]];return}b={};b[e]=[[a,c]];h.push({method:n,yg:b})}}else{b=0;for(d=h.length;b<d;b++)if(h[b].method==n){h[b].yg.push([a,c]);return}gc&&n===gc.prototype.j.mf?h.unshift({method:n,yg:[[a,c]]}):h.push({method:n,yg:[[a,c]]})}};Bb=r;l.prototype.Wk=function(){return this.ma?this.type.d.length:this.d.length};l.prototype.tc=function(){return this.ma?this.type.d:
this.d};l.prototype.vh=function(a){a&&(a.b.xb().ec.bd?(this.ma&&(this.d.length=0,xa(this.T,a.type.d),this.ma=!1),a=this.T.indexOf(a),-1!==a&&(this.d.push(this.T[a]),this.T.splice(a,1))):(this.ma=!1,this.d.length=1,this.d[0]=a))};jb=l;window._c2hh_="028182FC3C1790C453899C06084DBCA3F631EAD1";b.prototype.Ha=function(a){var c,b=this.parent;if(this.group)for(this.Gj=!0;b;){if(!b.group){this.Gj=!1;break}b=b.parent}this.om=!this.Xn()&&(!this.parent||this.parent.group&&this.parent.Gj);this.Ln=!!a;this.we=
this.pa.slice(0);for(b=this.parent;b;){a=0;for(c=b.pa.length;a<c;a++)this.Zq(b.pa[a]);b=b.parent}this.pa=f(this.pa);this.we=f(this.we);a=0;for(c=this.kb.length;a<c;a++)this.kb[a].Ha();a=0;for(c=this.Gc.length;a<c;a++)this.Gc[a].Ha();a=0;for(c=this.Ec.length;a<c;a++)this.Ec[a].Ha(a<c-1&&this.Ec[a+1].Di)};b.prototype.lp=function(a){if(this.Fg!==!!a){this.Fg=!!a;var c;a=0;for(c=this.Sh.length;a<c;++a)this.Sh[a].Lp();0<c&&this.b.ba.Le&&this.b.ba.Le.tm()}};b.prototype.Tm=function(c){a(c,this.pa)};b.prototype.Zq=
function(c){a(c,this.we)};b.prototype.sj=function(){this.up=!0;this.parent&&this.parent.sj()};b.prototype.Xn=function(){return this.kb.length?this.kb[0].trigger:!1};b.prototype.Ua=function(){var a,c=!1,b,d=this.b,e=this.b.xb();e.ec=this;var h=this.kb;this.Di||(e.xk=!1);if(this.bd){0===h.length&&(c=!0);e.ub=0;for(a=h.length;e.ub<a;e.ub++)h[e.ub].trigger||(b=h[e.ub].Ua())&&(c=!0);(e.We=c)&&this.Yl()}else{e.ub=0;for(a=h.length;e.ub<a;e.ub++)if(b=h[e.ub].Ua(),!b){e.We=!1;this.om&&d.je&&d.jb();return}e.We=
!0;this.Yl()}this.Rr(e)};b.prototype.Rr=function(a){a.We&&this.Ln&&(a.xk=!0);this.om&&this.b.je&&this.b.jb()};b.prototype.fu=function(a){this.b.xb().ec=this;this.kb[a].Ua()&&(this.Yl(),this.b.xb().We=!0)};b.prototype.Yl=function(){var a=this.b.xb(),c;a.Hb=0;for(c=this.Gc.length;a.Hb<c;a.Hb++)if(this.Gc[a.Hb].Ua())return;this.hp()};b.prototype.du=function(){var a=this.b.xb(),c;for(c=this.Gc.length;a.Hb<c;a.Hb++)if(this.Gc[a.Hb].Ua())return;this.hp()};b.prototype.hp=function(){if(this.Ec.length){var a,
c,b,d,e=this.Ec.length-1;this.b.Ql(this);if(this.up)for(a=0,c=this.Ec.length;a<c;a++)b=this.Ec[a],(d=!this.Gj||!this.group&&a<e)&&this.b.Pl(b.pa),b.Ua(),d?this.b.Uf(b.pa):this.b.mk(b.pa);else for(a=0,c=this.Ec.length;a<c;a++)this.Ec[a].Ua();this.b.Zo()}};b.prototype.gu=function(){var a=this.b.xb();a.ec=this;var c=!1,b;a.ub=0;for(b=this.kb.length;a.ub<b;a.ub++)if(this.kb[a.ub].Ua())c=!0;else if(!this.bd)return!1;return this.bd?c:!0};b.prototype.jt=function(a){var c=a.index;if(0===c)return!0;for(--c;0<=
c;--c)if(this.kb[c].type===a.type)return!1;return!0};Ub=b;d.prototype.Ha=function(){var a,c,b;a=0;for(c=this.N.length;a<c;a++)b=this.N[a],b.Ha(),b.Fc&&(this.mg=!0)};d.prototype.iu=function(){return!0};d.prototype.$l=function(){var a,c;a=0;for(c=this.N.length;a<c;a++)this.Ba[a]=this.N[a].get();return Ra(this.cb.apply(this.b.kd,this.Ba),this.Kg)};d.prototype.hu=function(){var a,c;a=0;for(c=this.N.length;a<c;a++)this.Ba[a]=this.N[a].get();a=this.cb.apply(this.Fe?this.Fe:this.type,this.Ba);this.type.sd();
return a};d.prototype.Zl=function(){var a,c,b,d,e,h,n,f,m=this.type,l=m.fa(),q=this.cc.bd&&!this.trigger;c=0;var k=m.Lc,p=m.B,s=m.Dd,t=this.Ic,w=-1<t,r=this.mg,E=this.N,F=this.Ba,O=this.Kg,D=this.cb,L;if(r)for(c=0,e=E.length;c<e;++c)h=E[c],h.Fc||(F[c]=h.get(0));else for(c=0,e=E.length;c<e;++c)F[c]=E[c].get(0);if(l.ma){l.d.length=0;l.T.length=0;L=m.d;a=0;for(d=L.length;a<d;++a){f=L[a];if(r)for(c=0,e=E.length;c<e;++c)h=E[c],h.Fc&&(F[c]=h.get(a));w?(c=0,p&&(c=f.type.tf[s]),c=D.apply(f.G[t+c],F)):c=D.apply(f,
F);(n=Ra(c,O))?l.d.push(f):q&&l.T.push(f)}m.finish&&m.finish(!0);l.ma=!1;m.sd();return l.Wk()}b=0;L=(n=q&&!this.cc.jt(this))?l.T:l.d;var I=!1;a=0;for(d=L.length;a<d;++a){f=L[a];if(r)for(c=0,e=E.length;c<e;++c)h=E[c],h.Fc&&(F[c]=h.get(a));w?(c=0,p&&(c=f.type.tf[s]),c=D.apply(f.G[t+c],F)):c=D.apply(f,F);if(Ra(c,O))if(I=!0,n){if(l.d.push(f),k)for(c=0,e=f.siblings.length;c<e;c++)h=f.siblings[c],h.type.fa().d.push(h)}else{L[b]=f;if(k)for(c=0,e=f.siblings.length;c<e;c++)h=f.siblings[c],h.type.fa().d[b]=
h;b++}else if(n){L[b]=f;if(k)for(c=0,e=f.siblings.length;c<e;c++)h=f.siblings[c],h.type.fa().T[b]=h;b++}else if(q&&(l.T.push(f),k))for(c=0,e=f.siblings.length;c<e;c++)h=f.siblings[c],h.type.fa().T.push(h)}L.length=b;if(k)for(p=m.Nb,a=0,d=p.length;a<d;a++)f=p[a].fa(),n?f.T.length=b:f.d.length=b;b=I;if(n&&!I)for(a=0,d=l.d.length;a<d;a++){f=l.d[a];if(r)for(c=0,e=E.length;c<e;c++)h=E[c],h.Fc&&(F[c]=h.get(a));c=w?D.apply(f.G[t],F):D.apply(f,F);if(Ra(c,O)){I=!0;break}}m.finish&&m.finish(b||q);return q?
I:l.Wk()};Pb=d;e.prototype.Ha=function(){var a,c,b;a=0;for(c=this.N.length;a<c;a++)b=this.N[a],b.Ha(),b.Fc&&(this.mg=!0)};e.prototype.$l=function(){var a=this.b,c,b,d=this.N,e=this.Ba;c=0;for(b=d.length;c<b;++c)e[c]=d[c].get();return this.cb.apply(a.kd,e)};e.prototype.Zl=function(){var a=this.type,c=this.Ic,b=a.Dd,d=this.mg,e=this.N,h=this.Ba,n=this.cb,f=a.fa().tc(),a=a.B,m=-1<c,l,q,k,p,s,t;if(d)for(q=0,p=e.length;q<p;++q)s=e[q],s.Fc||(h[q]=s.get(0));else for(q=0,p=e.length;q<p;++q)h[q]=e[q].get(0);
l=0;for(k=f.length;l<k;++l){t=f[l];if(d)for(q=0,p=e.length;q<p;++q)s=e[q],s.Fc&&(h[q]=s.get(l));m?(q=0,a&&(q=t.type.tf[b]),n.apply(t.G[c+q],h)):n.apply(t,h)}return!1};Qb=e;var t=[],q=-1;c.prototype.Ha=function(){var a,c;if(11===this.type)this.Me=this.b.En(this.Nh,this.cc.parent);else if(13===this.type)for(a=0,c=this.gf.length;a<c;a++)this.gf[a].Ha();this.Yc&&this.Yc.Ha()};c.prototype.yt=function(a){this.Fc||!a||a.wa.tj||(this.Fc=!0)};c.prototype.np=function(){this.Fc=!0};c.prototype.Ps=function(a){this.Sd=
a||0;a=h();this.Yc.get(a);q--;return a.data};c.prototype.Qs=function(a){this.Sd=a||0;a=h();this.Yc.get(a);q--;return R(a.data)?a.data:""};c.prototype.Ws=function(){return this.object};c.prototype.Ns=function(){return this.nn};c.prototype.Us=function(a){this.Sd=a||0;a=h();this.Yc.get(a);q--;return a.Qa()?this.b.Fd(a.data):this.b.Bg(a.data)};c.prototype.Vs=function(){return this.Ya};c.prototype.Ts=function(){return this.key};c.prototype.Ss=function(){return this.index};c.prototype.Rs=function(a){a=
a||0;var c=this.la.type,b=null,b=c.fa(),d=b.tc();if(d.length)b=d[a%d.length].type;else if(b.T.length)b=b.T[a%b.T.length].type;else if(c.d.length)b=c.d[a%c.d.length].type;else return 0;return this.index+b.fi[c.Dd]};c.prototype.Os=function(){return this.Me};c.prototype.Ms=function(){return this.yn};c.prototype.Xs=function(){var a,c;a=0;for(c=this.gf.length;a<c;a++)this.Mh[a]=this.gf[a].get();return this.Mh};Rb=c;m.prototype.Ha=function(){this.pa=f(this.pa)};m.prototype.ff=function(a){var c=this.b.Dn();
this.parent&&!this.Qg&&c?(this.$e>=c.length&&(c.length=this.$e+1),c[this.$e]=a):this.data=a};m.prototype.Dg=function(){var a=this.b.Dn();return!this.parent||this.Qg||!a||this.Ci?this.data:this.$e>=a.length||"undefined"===typeof a[this.$e]?this.xi:a[this.$e]};m.prototype.Ua=function(){!this.parent||this.Qg||this.Ci||this.ff(this.xi)};Lb=m;s.prototype.toString=function(){return"include:"+this.Ig.toString()};s.prototype.Ha=function(){this.Ig=this.b.zk[this.dt];this.sheet.Nn.add(this);this.pa=f(this.pa);
for(var a=this.parent;a;)a.group&&a.Sh.push(this),a=a.parent;this.Lp()};s.prototype.Ua=function(){this.parent&&this.b.yh(this.b.n);this.Ig.Xk||this.Ig.Ua(!0);this.parent&&this.b.Uf(this.b.n)};s.prototype.Lp=function(){for(var a=this.parent;a;){if(a.group&&!a.Fg){this.Wa=!1;return}a=a.parent}this.Wa=!0};Vb=s;n.prototype.reset=function(a){this.ec=a;this.Hb=this.ub=0;this.xp.length=0;this.xk=this.We=!1};Kb=n})();
(function(){function k(a,b){this.la=a;this.b=a.b;this.type=b[0];this.get=[this.ds,this.$r,this.os,this.ss,this.Tr,this.qs,this.js,this.Xr,this.hs,this.ns,this.Ur,this.ms,this.Yr,this.ks,this.es,this.gs,this.as,this.bs,this.Wr,this.rs,this.ls,this.cs,this.Vr,this.Zr][this.type];var e=null;this.Md=this.N=this.Ba=this.cb=this.Ej=this.ab=this.first=this.value=null;this.Ic=-1;this.ke=null;this.Pp=-1;this.Me=this.Nh=null;this.Xf=!1;switch(this.type){case 0:case 1:case 2:this.value=b[1];break;case 3:this.first=
new Tb(a,b[1]);break;case 18:this.first=new Tb(a,b[1]);this.ab=new Tb(a,b[2]);this.Ej=new Tb(a,b[3]);break;case 19:this.cb=this.b.Yd(b[1]);this.cb!==X.prototype.bb.random&&this.cb!==X.prototype.bb.mr||this.la.np();this.Ba=[];this.N=[];3===b.length?(e=b[2],this.Ba.length=e.length+1):this.Ba.length=1;break;case 20:this.Md=this.b.n[b[1]];this.Ic=-1;this.cb=this.b.Yd(b[2]);this.Xf=b[3];Xb.Function&&this.cb===Xb.Function.prototype.bb.Mu&&this.la.np();this.ke=b[4]?new Tb(a,b[4]):null;this.Ba=[];this.N=
[];6===b.length?(e=b[5],this.Ba.length=e.length+1):this.Ba.length=1;break;case 21:this.Md=this.b.n[b[1]];this.Xf=b[2];this.ke=b[3]?new Tb(a,b[3]):null;this.Pp=b[4];break;case 22:this.Md=this.b.n[b[1]];this.Md.mi(b[2]);this.Ic=this.Md.Kk(b[2]);this.cb=this.b.Yd(b[3]);this.Xf=b[4];this.ke=b[5]?new Tb(a,b[5]):null;this.Ba=[];this.N=[];7===b.length?(e=b[6],this.Ba.length=e.length+1):this.Ba.length=1;break;case 23:this.Nh=b[1],this.Me=null}this.la.yt(this.Md);4<=this.type&&17>=this.type&&(this.first=new Tb(a,
b[1]),this.ab=new Tb(a,b[2]));if(e){var h,c;h=0;for(c=e.length;h<c;h++)this.N.push(new Tb(a,e[h]))}}function p(){++b;l.length===b&&l.push(new Sb);return l[b]}function f(a,b,e){var h,c;h=0;for(c=a.length;h<c;++h)a[h].get(e),b[h+1]=e.data}function r(a,b){this.type=a||W.lf;this.data=b||0;this.cf=null;this.type==W.lf&&(this.data=Math.floor(this.data))}k.prototype.Ha=function(){23===this.type&&(this.Me=this.la.b.En(this.Nh,this.la.cc.parent));this.first&&this.first.Ha();this.ab&&this.ab.Ha();this.Ej&&
this.Ej.Ha();this.ke&&this.ke.Ha();if(this.N){var a,b;a=0;for(b=this.N.length;a<b;a++)this.N[a].Ha()}};var l=[],b=-1;k.prototype.rs=function(a){var d=this.N,e=this.Ba;e[0]=a;a=p();f(d,e,a);--b;this.cb.apply(this.b.kd,e)};k.prototype.ls=function(a){var d=this.Md,e=this.Ba,h=this.N,c=this.ke,m=this.cb,l=this.la.Sd,n=d.fa(),k=n.tc();if(!k.length)if(n.T.length)k=n.T;else{this.Xf?a.Eb(""):a.ea(0);return}e[0]=a;a.cf=d;a=p();f(h,e,a);c&&(c.get(a),a.Qa()&&(l=a.data,k=d.d));--b;d=k.length;if(l>=d||l<=-d)l%=
d;0>l&&(l+=d);m.apply(k[l],e)};k.prototype.Vr=function(a){var d=this.Md,e=this.Ba,h=this.N,c=this.ke,m=this.Ic,l=this.cb,n=this.la.Sd,k=d.fa(),t=k.tc();if(!t.length)if(k.T.length)t=k.T;else{this.Xf?a.Eb(""):a.ea(0);return}e[0]=a;a.cf=d;a=p();f(h,e,a);c&&(c.get(a),a.Qa()&&(n=a.data,t=d.d));--b;h=t.length;if(n>=h||n<=-h)n%=h;0>n&&(n+=h);n=t[n];t=0;d.B&&(t=n.type.tf[d.Dd]);l.apply(n.G[m+t],e)};k.prototype.cs=function(a){var d=this.ke,e=this.Md,h=this.Pp,c=this.la.Sd,f=e.fa(),l=f.tc();if(!l.length)if(f.T.length)l=
f.T;else{this.Xf?a.Eb(""):a.ea(0);return}if(d){f=p();d.get(f);if(f.Qa()){c=f.data;e=e.d;c%=e.length;0>c&&(c+=e.length);h=e[c].Pa[h];R(h)?a.Eb(h):a.u(h);--b;return}--b}d=l.length;if(c>=d||c<=-d)c%=d;0>c&&(c+=d);c=l[c];l=0;e.B&&(l=c.type.fi[e.Dd]);h=c.Pa[h+l];R(h)?a.Eb(h):a.u(h)};k.prototype.ds=function(a){a.type=W.lf;a.data=this.value};k.prototype.$r=function(a){a.type=W.kf;a.data=this.value};k.prototype.os=function(a){a.type=W.String;a.data=this.value};k.prototype.ss=function(a){this.first.get(a);
a.Qa()&&(a.data=-a.data)};k.prototype.Tr=function(a){this.first.get(a);var d=p();this.ab.get(d);a.Qa()&&d.Qa()&&(a.data+=d.data,d.Cf()&&a.Lf());--b};k.prototype.qs=function(a){this.first.get(a);var d=p();this.ab.get(d);a.Qa()&&d.Qa()&&(a.data-=d.data,d.Cf()&&a.Lf());--b};k.prototype.js=function(a){this.first.get(a);var d=p();this.ab.get(d);a.Qa()&&d.Qa()&&(a.data*=d.data,d.Cf()&&a.Lf());--b};k.prototype.Xr=function(a){this.first.get(a);var d=p();this.ab.get(d);a.Qa()&&d.Qa()&&(a.data/=d.data,a.Lf());
--b};k.prototype.hs=function(a){this.first.get(a);var d=p();this.ab.get(d);a.Qa()&&d.Qa()&&(a.data%=d.data,d.Cf()&&a.Lf());--b};k.prototype.ns=function(a){this.first.get(a);var d=p();this.ab.get(d);a.Qa()&&d.Qa()&&(a.data=Math.pow(a.data,d.data),d.Cf()&&a.Lf());--b};k.prototype.Ur=function(a){this.first.get(a);var d=p();this.ab.get(d);a.Qa()?d.Ei()?a.Eb(a.data.toString()+d.data):a.data&&d.data?a.ea(1):a.ea(0):a.Ei()&&(a.data=d.Ei()?a.data+d.data:a.data+(Math.round(1E10*d.data)/1E10).toString());--b};
k.prototype.ms=function(a){this.first.get(a);var d=p();this.ab.get(d);a.Qa()&&d.Qa()&&(a.data||d.data?a.ea(1):a.ea(0));--b};k.prototype.Wr=function(a){this.first.get(a);a.data?this.ab.get(a):this.Ej.get(a)};k.prototype.Yr=function(a){this.first.get(a);var d=p();this.ab.get(d);a.ea(a.data===d.data?1:0);--b};k.prototype.ks=function(a){this.first.get(a);var d=p();this.ab.get(d);a.ea(a.data!==d.data?1:0);--b};k.prototype.es=function(a){this.first.get(a);var d=p();this.ab.get(d);a.ea(a.data<d.data?1:0);
--b};k.prototype.gs=function(a){this.first.get(a);var d=p();this.ab.get(d);a.ea(a.data<=d.data?1:0);--b};k.prototype.as=function(a){this.first.get(a);var d=p();this.ab.get(d);a.ea(a.data>d.data?1:0);--b};k.prototype.bs=function(a){this.first.get(a);var d=p();this.ab.get(d);a.ea(a.data>=d.data?1:0);--b};k.prototype.Zr=function(a){var b=this.Me.Dg();P(b)?a.u(b):a.Eb(b)};Tb=k;r.prototype.Cf=function(){return this.type===W.kf};r.prototype.Qa=function(){return this.type===W.lf||this.type===W.kf};r.prototype.Ei=
function(){return this.type===W.String};r.prototype.Lf=function(){this.Cf()||(this.Ei()&&(this.data=parseFloat(this.data)),this.type=W.kf)};r.prototype.ea=function(a){this.type=W.lf;this.data=Math.floor(a)};r.prototype.u=function(a){this.type=W.kf;this.data=a};r.prototype.Eb=function(a){this.type=W.String;this.data=a};r.prototype.pu=function(a){P(a)?(this.type=W.kf,this.data=a):R(a)?(this.type=W.String,this.data=a.toString()):(this.type=W.lf,this.data=0)};Sb=r;W={lf:0,kf:1,String:2}})();
function X(k){this.b=k;this.Fb=[]}X.prototype.rb=function(){var k={},p,f,r,l,b,a,d,e;k.waits=[];var h=k.waits,c;p=0;for(f=this.Fb.length;p<f;p++){a=this.Fb[p];c={t:a.time,st:a.tp,s:a.hm,ev:a.rf.P,sm:[],sols:{}};a.rf.Gc[a.Hb]&&(c.act=a.rf.Gc[a.Hb].P);r=0;for(l=a.pa.length;r<l;r++)c.sm.push(a.pa[r].P);for(b in a.sb)if(a.sb.hasOwnProperty(b)){d=this.b.n[parseInt(b,10)];e={sa:a.sb[b].qj,insts:[]};r=0;for(l=a.sb[b].Gd.length;r<l;r++)e.insts.push(a.sb[b].Gd[r].uid);c.sols[d.P.toString()]=e}h.push(c)}return k};
X.prototype.Tb=function(k){k=k.waits;var p,f,r,l,b,a,d,e,h,c,m;p=this.Fb.length=0;for(f=k.length;p<f;p++)if(a=k[p],e=this.b.dn[a.ev.toString()]){h=-1;r=0;for(l=e.Gc.length;r<l;r++)if(e.Gc[r].P===a.act){h=r;break}if(-1!==h){d={sb:{},pa:[],uk:!1};d.time=a.t;d.tp=a.st||"";d.hm=!!a.s;d.rf=e;d.Hb=h;r=0;for(l=a.sm.length;r<l;r++)(e=this.b.qi(a.sm[r]))&&d.pa.push(e);for(b in a.sols)if(a.sols.hasOwnProperty(b)&&(e=this.b.qi(parseInt(b,10)))){h=a.sols[b];c={qj:h.sa,Gd:[]};r=0;for(l=h.insts.length;r<l;r++)(m=
this.b.pi(h.insts[r]))&&c.Gd.push(m);d.sb[e.index.toString()]=c}this.Fb.push(d)}}};
(function(){function k(){}function p(){}function f(){}var r=X.prototype;k.prototype.Yp=function(){return!0};k.prototype.Gm=function(){return!0};k.prototype.Cq=function(){return!0};k.prototype.Qq=function(){var a=this.b.Lk().Aa;"undefined"===typeof a.TriggerOnce_lastTick&&(a.TriggerOnce_lastTick=-1);var b=a.TriggerOnce_lastTick,e=this.b.ld;a.TriggerOnce_lastTick=e;return this.b.pl||b!==e-1};k.prototype.Wp=function(a,b,e){return Wb(a.Dg(),b,e)};k.prototype.Xp=function(){var a=this.b.xb();return a.xk?
!1:!a.We};k.prototype.Hm=function(){return!0};k.prototype.pq=function(){return!0};k.prototype.Vj=function(){return!0};k.prototype.Dq=function(){return!0};k.prototype.Tj=function(){return!0};k.prototype.Sp=function(a,b,e){return Ia(V(a),V(e))<=V(b)};k.prototype.cq=function(a,b){return Oa(V(a),V(b))};k.prototype.aq=function(a,b,e){a=Fa(a);b=Fa(b);e=Fa(e);return Oa(e,b)?Oa(a,b)&&!Oa(a,e):!(!Oa(a,b)&&Oa(a,e))};r.j=new k;p.prototype.jq=function(a){if(!this.b.Ue&&!this.b.vd){var b=this.b.Sb.indexOf(this.b.ba);
if(!a||0!==b)if(a||b!==this.b.Sb.length-1)this.b.vd=this.b.Sb[b+(a?-1:1)]}};p.prototype.Kq=function(a,b){a&&a.visible!==b&&(a.visible=b,this.b.V=!0)};p.prototype.Nq=function(a,b){0===a.Oj?P(b)?a.ff(b):a.ff(parseFloat(b)):1===a.Oj&&a.ff(b.toString())};p.prototype.Rp=function(a,b){0===a.Oj?P(b)?a.ff(a.Dg()+b):a.ff(a.Dg()+parseFloat(b)):1===a.Oj&&a.ff(a.Dg()+b.toString())};var l=[],b=[];p.prototype.Rq=function(a){if(!(0>a)){var d,e,h,c=this.b.xb(),f;f=l.length?l.pop():{sb:{},pa:[]};f.uk=!1;f.time=this.b.jc.ca+
a;f.tp="";f.hm=!1;f.rf=c.ec;f.Hb=c.Hb+1;a=0;for(d=this.b.n.length;a<d;a++)h=this.b.n[a],e=h.fa(),e.ma&&-1===c.ec.pa.indexOf(h)||(f.pa.push(h),h=void 0,h=b.length?b.pop():{Gd:[]},h.qj=!1,h.qj=e.ma,xa(h.Gd,e.d),f.sb[a.toString()]=h);this.Fb.push(f);return!0}};p.prototype.Iq=function(){var a,b,e;a=0;for(b=this.b.Yj.length;a<b;a++)e=this.b.Yj[a],e.data=e.xi};p.prototype.$p=function(a){if(!this.b.Ue&&!this.b.vd)for(var b in this.b.Hf)if(this.b.Hf.hasOwnProperty(b)&&fb(b,a)){this.b.vd=this.b.Hf[b];break}};
p.prototype.Jq=function(){if(!this.b.Ue&&!this.b.vd&&this.b.ba){this.b.vd=this.b.ba;var a,b,e;a=0;for(b=this.b.ae.length;a<b;a++)e=this.b.ae[a],e.lp(e.yi)}};r.ja=new p;f.prototype["int"]=function(a,b){R(b)?(a.ea(parseInt(b,10)),isNaN(a.data)&&(a.data=0)):a.ea(b)};f.prototype["float"]=function(a,b){R(b)?(a.u(parseFloat(b)),isNaN(a.data)&&(a.data=0)):a.u(b)};f.prototype.random=function(a,b,e){void 0===e?a.u(Math.random()*b):a.u(Math.random()*(e-b)+b)};f.prototype.sqrt=function(a,b){a.u(Math.sqrt(b))};
f.prototype.abs=function(a,b){a.u(Math.abs(b))};f.prototype.round=function(a,b){a.ea(Math.round(b))};f.prototype.floor=function(a,b){a.ea(Math.floor(b))};f.prototype.ceil=function(a,b){a.ea(Math.ceil(b))};f.prototype.sin=function(a,b){a.u(Math.sin(V(b)))};f.prototype.cos=function(a,b){a.u(Math.cos(V(b)))};f.prototype.tan=function(a,b){a.u(Math.tan(V(b)))};f.prototype.asin=function(a,b){a.u(Ba(Math.asin(b)))};f.prototype.acos=function(a,b){a.u(Ba(Math.acos(b)))};f.prototype.atan=function(a,b){a.u(Ba(Math.atan(b)))};
f.prototype.exp=function(a,b){a.u(Math.exp(b))};f.prototype.log10=function(a,b){a.u(Math.log(b)/Math.LN10)};f.prototype.max=function(a){var b=arguments[1];"number"!==typeof b&&(b=0);var e,h,c;e=2;for(h=arguments.length;e<h;e++)c=arguments[e],"number"===typeof c&&b<c&&(b=c);a.u(b)};f.prototype.min=function(a){var b=arguments[1];"number"!==typeof b&&(b=0);var e,h,c;e=2;for(h=arguments.length;e<h;e++)c=arguments[e],"number"===typeof c&&b>c&&(b=c);a.u(b)};f.prototype.fe=function(a){a.u(this.b.fe)};f.prototype.fg=
function(a){a.u(this.b.fg)};f.prototype.time=function(a){a.u(this.b.jc.ca)};f.prototype.ld=function(a){a.ea(this.b.ld)};f.prototype.Xi=function(a){a.ea(this.b.Xi)};f.prototype.Gk=function(a){a.ea(this.b.Gk)};f.prototype.k=function(a,b,e,h,c){a.u(Ba(Ha(b,e,h,c)))};f.prototype.find=function(a,b,e){R(b)&&R(e)?a.ea(b.search(new RegExp(Za(e),"i"))):a.ea(-1)};f.prototype.left=function(a,b,e){a.Eb(R(b)?b.substr(0,e):"")};f.prototype.right=function(a,b,e){a.Eb(R(b)?b.substr(b.length-e):"")};f.prototype.replace=
function(a,b,e,h){R(b)&&R(e)&&R(h)?a.Eb(b.replace(new RegExp(Za(e),"gi"),h)):a.Eb(R(b)?b:"")};f.prototype.trim=function(a,b){a.Eb(R(b)?b.trim():"")};f.prototype.mr=function(a){var b=T(Math.random()*(arguments.length-1));a.pu(arguments[b+1])};f.prototype.ok=function(a){a.u(this.b.ok/1E3)};f.prototype.Si=function(a){a.u(this.b.Si)};r.bb=new f;r.eu=function(){var a,d,e,h,c,f,k=this.b.xb();a=0;for(e=this.Fb.length;a<e;a++){h=this.Fb[a];if(-1===h.time){if(!h.hm)continue}else if(h.time>this.b.jc.ca)continue;
k.ec=h.rf;k.Hb=h.Hb;k.ub=0;for(d in h.sb)h.sb.hasOwnProperty(d)&&(c=this.b.n[parseInt(d,10)].fa(),f=h.sb[d],c.ma=f.qj,xa(c.d,f.Gd),c=f,c.Gd.length=0,b.push(c));h.rf.du();this.b.mk(h.pa);h.uk=!0}d=a=0;for(e=this.Fb.length;a<e;a++)h=this.Fb[a],this.Fb[d]=h,h.uk?(Ta(h.sb),h.pa.length=0,l.push(h)):d++;this.Fb.length=d}})();
(function(){ib=function(k,f){var r=k[1],l=k[3],b=k[4],a=k[5],d=k[6],e=k[7],h=k[8];f.j||(f.j={});f.ja||(f.ja={});f.bb||(f.bb={});var c=f.j,m=f.ja,s=f.bb;l&&(c.Ru=function(a,c){return Wb(this.x,a,c)},c.Su=function(a,c){return Wb(this.y,a,c)},c.Zu=function(){var a=this.e;this.Na();var c=this.Xa;return!(c.right<a.qa||c.bottom<a.ra||c.left>a.Da||c.top>a.Ca)},c.$u=function(){this.Na();var a=this.Xa,c=this.b.ba;return 0>a.right||0>a.bottom||a.left>c.width||a.top>c.height},c.mv=function(a,c,b){var e=this.fa(),
d=e.tc();if(!d.length)return!1;var h=d[0],f=h,m=Qa(h.x,h.y,c,b),l,k,p;l=1;for(k=d.length;l<k;l++)if(h=d[l],p=Qa(h.x,h.y,c,b),0===a&&p<m||1===a&&p>m)m=p,f=h;e.vh(f);return!0},m.Ev=function(a){this.x!==a&&(this.x=a,this.xa())},m.Fv=function(a){this.y!==a&&(this.y=a,this.xa())},m.Av=function(a,c){if(this.x!==a||this.y!==c)this.x=a,this.y=c,this.xa()},m.Bv=function(a,c){var b=a.Hs(this);if(b){var e;b.Ok?(e=b.Ok(c,!0),b=b.Ok(c,!1)):(e=b.x,b=b.y);if(this.x!==e||this.y!==b)this.x=e,this.y=b,this.xa()}},
m.dv=function(a){0!==a&&(this.x+=Math.cos(this.k)*a,this.y+=Math.sin(this.k)*a,this.xa())},m.cv=function(a,c){0!==c&&(this.x+=Math.cos(V(a))*c,this.y+=Math.sin(V(a))*c,this.xa())},s.Nm=function(a){a.u(this.x)},s.Om=function(a){a.u(this.y)},s.fe=function(a){a.u(this.b.ni(this))});b&&(c.Qu=function(a,c){return Wb(this.width,a,c)},c.Nu=function(a,c){return Wb(this.height,a,c)},m.Oq=function(a){this.width!==a&&(this.width=a,this.xa())},m.yv=function(a){this.height!==a&&(this.height=a,this.xa())},m.Cv=
function(a,c){if(this.width!==a||this.height!==c)this.width=a,this.height=c,this.xa()},s.Jv=function(a){a.u(this.width)},s.Vu=function(a){a.u(this.height)},s.Ju=function(a){this.Na();a.u(this.Xa.left)},s.Lu=function(a){this.Na();a.u(this.Xa.top)},s.Ku=function(a){this.Na();a.u(this.Xa.right)},s.Iu=function(a){this.Na();a.u(this.Xa.bottom)});a&&(c.Sp=function(a,c){return Ia(this.k,V(c))<=V(a)},c.cq=function(a){return Oa(this.k,V(a))},c.aq=function(a,c){var b=Fa(a),e=Fa(c),d=Da(this.k);return Oa(e,
b)?Oa(d,b)&&!Oa(d,e):!(!Oa(d,b)&&Oa(d,e))},m.uv=function(a){a=V(Ca(a));isNaN(a)||this.k===a||(this.k=a,this.xa())},m.qv=function(a){0===a||isNaN(a)||(this.k+=V(a),this.k=Da(this.k),this.xa())},m.rv=function(a){0===a||isNaN(a)||(this.k-=V(a),this.k=Da(this.k),this.xa())},m.sv=function(a,c){var b=Ja(this.k,V(c),V(a));isNaN(b)||this.k===b||(this.k=b,this.xa())},m.tv=function(a,c,b){a=Ja(this.k,Math.atan2(b-this.y,c-this.x),V(a));isNaN(a)||this.k===a||(this.k=a,this.xa())},m.Dv=function(a,c){var b=Math.atan2(c-
this.y,a-this.x);isNaN(b)||this.k===b||(this.k=b,this.xa())},s.Hu=function(a){a.u(Ea(this.k))});r||(c.Ou=function(a,c,b){return Wb(this.Pa[a],c,b)},c.Xu=function(a){return this.Pa[a]},c.nv=function(a,c){var b=this.fa(),e=b.tc();if(!e.length)return!1;var d=e[0],h=d,f=d.Pa[c],m,l,k;m=1;for(l=e.length;m<l;m++)if(d=e[m],k=d.Pa[c],0===a&&k<f||1===a&&k>f)f=k,h=d;b.vh(h);return!0},c.lv=function(a){var c,b,e,d,h;if(this.b.Lk().Kg){h=this.fa();if(h.ma)for(h.ma=!1,h.d.length=0,h.T.length=0,e=this.d,c=0,b=e.length;c<
b;c++)d=e[c],d.uid===a?h.T.push(d):h.d.push(d);else{e=c=0;for(b=h.d.length;c<b;c++)d=h.d[c],h.d[e]=d,d.uid===a?h.T.push(d):e++;h.d.length=e}this.sd();return!!h.d.length}d=this.b.pi(a);if(!d)return!1;h=this.fa();if(!h.ma&&-1===h.d.indexOf(d))return!1;if(this.B)for(a=d.type.ua,c=0,b=a.length;c<b;c++){if(a[c]===this)return h.vh(d),this.sd(),!0}else if(d.type===this)return h.vh(d),this.sd(),!0;return!1},c.qq=function(){return!0},c.rq=function(){return!0},m.zv=function(a,c){var b=this.Pa;P(b[a])?b[a]=
P(c)?c:parseFloat(c):R(b[a])&&(b[a]=R(c)?c:c.toString())},m.Gu=function(a,c){var b=this.Pa;P(b[a])?b[a]=P(c)?b[a]+c:b[a]+parseFloat(c):R(b[a])&&(b[a]=R(c)?b[a]+c:b[a]+c.toString())},m.Gv=function(a,c){var b=this.Pa;P(b[a])&&(b[a]=P(c)?b[a]-c:b[a]-parseFloat(c))},m.vv=function(a,c){this.Pa[a]=c?1:0},m.Hv=function(a){this.Pa[a]=1-this.Pa[a]},m.Uu=function(){this.b.Xd(this)},m.iq||(m.iq=function(a){var c,b;try{c=JSON.parse(a)}catch(e){return}this.b.Pi(this,c,!0);this.qd&&this.qd();if(this.G)for(a=0,
c=this.G.length;a<c;++a)b=this.G[a],b.qd&&b.qd()}),s.Tu=function(a){var c=a.cf.d.length,b,e,d;b=0;for(e=this.b.Wc.length;b<e;b++)d=this.b.Wc[b],a.cf.B?0<=d.type.ua.indexOf(a.cf)&&c++:d.type===a.cf&&c++;a.ea(c)},s.pv=function(a){a.ea(a.cf.fa().tc().length)},s.Iv=function(a){a.ea(this.uid)},s.Wu=function(a){a.ea(this.Eg())},s.Tp||(s.Tp=function(a){a.Eb(JSON.stringify(this.b.am(this,!0)))}));d&&(c.gq=function(){return this.visible},m.Mm=function(a){!a!==!this.visible&&(this.visible=a,this.b.V=!0)},c.Pu=
function(a,c){return Wb(eb(100*this.opacity),a,c)},m.Lq=function(a){a/=100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.V=!0)},s.Opacity=function(a){a.u(eb(100*this.opacity))});e&&(c.Yu=function(a){return a?this.e===a:!1},c.ov=function(a){var c=this.fa(),b=c.tc();if(!b.length)return!1;var e=b[0],d=e,h,f;h=1;for(f=b.length;h<f;h++)if(e=b[h],0===a){if(e.e.index>d.e.index||e.e.index===d.e.index&&e.uc()>d.uc())d=e}else if(e.e.index<d.e.index||e.e.index===d.e.index&&e.uc()<d.uc())d=e;c.vh(d);
return!0},m.iv=function(){var a=this.e,c=a.d;c.length&&c[c.length-1]===this||(a.Wf(this,!1),a.pg(this,!1),this.b.V=!0)},m.gv=function(){var a=this.e,c=a.d;c.length&&c[0]===this||(a.Wf(this,!1),a.Wt(this),this.b.V=!0)},m.hv=function(a){a&&a!=this.e&&(this.e.Wf(this,!0),this.e=a,a.pg(this,!0),this.b.V=!0)},m.Lv=function(a,c){var b=0===a;if(c){var e=c.Cs(this);e&&e.uid!==this.uid&&(this.e.index!==e.e.index&&(this.e.Wf(this,!0),this.e=e.e,e.e.pg(this,!0)),this.e.At(this,e,b),this.b.V=!0)}},s.bv=function(a){a.ea(this.e.Ho)},
s.av=function(a){a.Eb(this.e.name)},s.Kv=function(a){a.ea(this.uc())});h&&(m.wv=function(a,c){if(this.b.q){var b=this.type.Nk(c);if(!(0>b)){var e=1===a;this.Zd[b]!==e&&(this.Zd[b]=e,this.Vd(),this.b.V=!0)}}},m.xv=function(a,c,b){if(this.b.q){var e=this.type.Nk(a);0>e||(a=this.type.H[e],e=this.za[e],c=Math.floor(c),0>c||c>=e.length||(1===this.b.q.Ls(a.gb,c)&&(b/=100),e[c]!==b&&(e[c]=b,a.Wa&&(this.b.V=!0))))}})};Cb=function(){this.hk=this.Ph=!0;this.type.Xm=!0;this.b.V=!0;var k,f,r=this.dk;k=0;for(f=
r.length;k<f;++k)r[k](this);this.e.Qc&&this.Na()};Db=function(k){k&&this.dk.push(k)};Fb=function(){if(this.Ph){var k=this.Xa,f=this.ud;k.set(this.x,this.y,this.x+this.width,this.y+this.height);k.offset(-this.zb*this.width,-this.Ab*this.height);this.k?(k.offset(-this.x,-this.y),f.op(k,this.k),f.offset(this.x,this.y),f.en(k)):f.Dh(k);k.normalize();this.Ph=!1;this.Bu()}};var k=new U(0,0,0,0);Gb=function(){if(this.e.Qc){var p=this.e.Wb,f=this.Xa;k.set(p.$b(f.left),p.ac(f.top),p.$b(f.right),p.ac(f.bottom));
this.Bb.ci(k)||(this.Bb.right<this.Bb.left?p.update(this,null,k):p.update(this,this.Bb,k),this.Bb.Uh(k),this.e.Pd=!0)}};Hb=function(){if(this.hk&&this.tg){this.Na();var p=this.type.mn,f=this.Xa;k.set(p.$b(f.left),p.ac(f.top),p.$b(f.right),p.ac(f.bottom));this.ee.ci(k)||(this.ee.right<this.ee.left?p.update(this,null,k):p.update(this,this.ee,k),this.ee.Uh(k),this.hk=!1)}};Eb=function(k,f){return this.Xa.Ob(k,f)&&this.ud.Ob(k,f)?this.Vc&&!this.Vc.ot()?(this.Vc.jr(this.width,this.height,this.k),this.Vc.Ob(k-
this.x,f-this.y)):!0:!1};yb=function(){this.type.Lj();return this.Re};Ib=function(){this.e.wm();return this.Sc};Jb=function(){this.W.length=0;var k,f;k=0;for(f=this.Zd.length;k<f;k++)this.Zd[k]&&this.W.push(this.type.H[k]);this.Op=!!this.W.length};zb=function(){return"Inst"+this.dp};lb=function(k){if(k&&k.Lc&&k.type!=this){var f,r,l;f=0;for(r=k.siblings.length;f<r;f++)if(l=k.siblings[f],l.type==this)return l}k=this.fa().tc();return k.length?k[0]:null};mb=function(k){var f=this.fa().tc();return f.length?
f[k.Eg()%f.length]:null};kb=function(){if(this.dg&&!this.B){var k,f;k=0;for(f=this.d.length;k<f;k++)this.d[k].Re=k;var r=k,l=this.b.Wc;k=0;for(f=l.length;k<f;++k)l[k].type===this&&(l[k].Re=r++);this.dg=!1}};wb=function(k){if(k<this.d.length)return this.d[k];k-=this.d.length;var f=this.b.Wc,r,l;r=0;for(l=f.length;r<l;++r)if(f[r].type===this){if(0===k)return f[r];--k}return null};nb=function(){return this.xe[this.Ad]};ob=function(){this.Ad++;this.Ad===this.xe.length?this.xe.push(new jb(this)):this.xe[this.Ad].ma=
!0};pb=function(){this.Ad++;this.Ad===this.xe.length&&this.xe.push(new jb(this));var k=this.xe[this.Ad],f=this.xe[this.Ad-1];f.ma?k.ma=!0:(k.ma=!1,xa(k.d,f.d),xa(k.T,f.T))};qb=function(){this.Ad--};sb=function(k){var f,r,l,b,a,d=0;if(!this.B)for(f=0,r=this.ua.length;f<r;f++)for(a=this.ua[f],l=0,b=a.Ja.length;l<b;l++){if(k===a.Ja[l].name)return this.Aa.lastBehIndex=d,a.Ja[l];d++}f=0;for(r=this.Ja.length;f<r;f++){if(k===this.Ja[f].name)return this.Aa.lastBehIndex=d,this.Ja[f];d++}return null};tb=function(k){return this.mi(k)?
this.Aa.lastBehIndex:-1};ub=function(k){var f,r;f=0;for(r=this.H.length;f<r;f++)if(this.H[f].name===k)return f;return-1};vb=function(){if(this.Lc&&!this.B){var k,f,r,l,b,a,d;this.Lj();a=this.fa();var e=a.ma,h=(k=this.b.xb())&&k.ec&&k.ec.bd;k=0;for(f=this.Nb.length;k<f;k++)if(b=this.Nb[k],b!==this&&(b.Lj(),d=b.fa(),d.ma=e,!e)){d.d.length=a.d.length;r=0;for(l=a.d.length;r<l;r++)d.d[r]=b.Fn(a.d[r].Re);if(h)for(d.T.length=a.T.length,r=0,l=a.T.length;r<l;r++)d.T[r]=b.Fn(a.T[r].Re)}}};xb=function(){return"Type"+
this.P};Wb=function(k,f,r){if("undefined"===typeof k||"undefined"===typeof r)return!1;switch(f){case 0:return k===r;case 1:return k!==r;case 2:return k<r;case 3:return k<=r;case 4:return k>r;case 5:return k>=r;default:return!1}}})();var ec={};function hc(k){this.b=k}
(function(){function k(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function p(a){a=a.toLowerCase();return S.hasOwnProperty(a)&&S[a].length?S[a][0].gc():y.destination}function f(){return y.createGain?y.createGain():y.createGainNode()}function r(a){return y.createDelay?y.createDelay(a):y.createDelayNode(a)}function l(a){a.start?a.start(0):a.noteOn(0)}function b(a,c,b){a.start?a.start(0,c):a.noteGrainOn(0,c,b-c)}function a(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(c){}}function d(a,
c,b,e,d,g){this.type="filter";this.Nc=[a,c,b,e,d,g];this.R=f();this.F=f();this.F.gain.value=g;this.C=f();this.C.gain.value=1-g;this.Ka=y.createBiquadFilter();this.Ka.type="number"===typeof this.Ka.type?a:qc[a];this.Ka.frequency.value=c;this.Ka.detune&&(this.Ka.detune.value=b);this.Ka.Q.value=e;this.Ka.gain.value=d;this.R.connect(this.Ka);this.R.connect(this.C);this.Ka.connect(this.F)}function e(a,c,b){this.type="delay";this.Nc=[a,c,b];this.R=f();this.F=f();this.F.gain.value=b;this.C=f();this.C.gain.value=
1-b;this.hh=f();this.qc=r(a);this.qc.delayTime.value=a;this.ai=f();this.ai.gain.value=c;this.R.connect(this.hh);this.R.connect(this.C);this.hh.connect(this.F);this.hh.connect(this.qc);this.qc.connect(this.ai);this.ai.connect(this.hh)}function h(a,c,b,e){this.type="convolve";this.Nc=[c,b,e];this.R=f();this.F=f();this.F.gain.value=b;this.C=f();this.C.gain.value=1-b;this.Ge=y.createConvolver();a&&(this.Ge.normalize=c,this.Ge.buffer=a);this.R.connect(this.Ge);this.R.connect(this.C);this.Ge.connect(this.F)}
function c(a,c,b,e,d){this.type="flanger";this.Nc=[a,c,b,e,d];this.R=f();this.C=f();this.C.gain.value=1-d/2;this.F=f();this.F.gain.value=d/2;this.gi=f();this.gi.gain.value=e;this.qc=r(a+c);this.qc.delayTime.value=a;this.$a=y.createOscillator();this.$a.frequency.value=b;this.Vb=f();this.Vb.gain.value=c;this.R.connect(this.qc);this.R.connect(this.C);this.qc.connect(this.F);this.qc.connect(this.gi);this.gi.connect(this.qc);this.$a.connect(this.Vb);this.Vb.connect(this.qc.delayTime);l(this.$a)}function m(a,
c,b,e,d,g){this.type="phaser";this.Nc=[a,c,b,e,d,g];this.R=f();this.C=f();this.C.gain.value=1-g/2;this.F=f();this.F.gain.value=g/2;this.Ka=y.createBiquadFilter();this.Ka.type="number"===typeof this.Ka.type?7:"allpass";this.Ka.frequency.value=a;this.Ka.detune&&(this.Ka.detune.value=c);this.Ka.Q.value=b;this.$a=y.createOscillator();this.$a.frequency.value=d;this.Vb=f();this.Vb.gain.value=e;this.R.connect(this.Ka);this.R.connect(this.C);this.Ka.connect(this.F);this.$a.connect(this.Vb);this.Vb.connect(this.Ka.frequency);
l(this.$a)}function s(a){this.type="gain";this.Nc=[a];this.U=f();this.U.gain.value=a}function n(a,c){this.type="tremolo";this.Nc=[a,c];this.U=f();this.U.gain.value=1-c/2;this.$a=y.createOscillator();this.$a.frequency.value=a;this.Vb=f();this.Vb.gain.value=c/2;this.$a.connect(this.Vb);this.Vb.connect(this.U.gain);l(this.$a)}function w(a,c){this.type="ringmod";this.Nc=[a,c];this.R=f();this.F=f();this.F.gain.value=c;this.C=f();this.C.gain.value=1-c;this.Ah=f();this.Ah.gain.value=0;this.$a=y.createOscillator();
this.$a.frequency.value=a;this.$a.connect(this.Ah.gain);l(this.$a);this.R.connect(this.Ah);this.R.connect(this.C);this.Ah.connect(this.F)}function t(a,c,b,e,d){this.type="distortion";this.Nc=[a,c,b,e,d];this.R=f();this.kj=f();this.jj=f();this.lu(b,Math.pow(10,e/20));this.F=f();this.F.gain.value=d;this.C=f();this.C.gain.value=1-d;this.Pj=y.createWaveShaper();this.Zh=new Float32Array(65536);this.zs(a,c);this.Pj.Zh=this.Zh;this.R.connect(this.kj);this.R.connect(this.C);this.kj.connect(this.Pj);this.Pj.connect(this.jj);
this.jj.connect(this.F)}function q(a,c,b,e,d){this.type="compressor";this.Nc=[a,c,b,e,d];this.U=y.createDynamicsCompressor();try{this.U.threshold.value=a,this.U.knee.value=c,this.U.ratio.value=b,this.U.attack.value=e,this.U.release.value=d}catch(g){}}function g(a,c){this.type="analyser";this.Nc=[a,c];this.U=y.createAnalyser();this.U.fftSize=a;this.U.smoothingTimeConstant=c;this.xs=new Float32Array(this.U.frequencyBinCount);this.rp=new Uint8Array(a);this.uh=0}function x(){this.D=null;this.Ri=0;this.ye=
[];this.Bl=this.Hi=this.Gi=0}function C(a,c){this.src=a;this.J=G;this.Mc=c;this.Um=!1;var b=this;this.zl=this.Ll=null;this.Sf=[];this.rj=0;this.Bm=this.Ck=this.wp=this.gj=!1;1===G&&c&&(this.J=0,this.Ll=f());this.Ee=this.Y=null;var e;switch(this.J){case 0:this.Y=new Audio;this.Y.addEventListener("canplaythrough",function(){b.Bm=!0});1===G&&y.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.wp=!0,this.Y.addEventListener("canplay",function(){b.zl||(b.zl=y.createMediaElementSource(b.Y),
b.zl.connect(b.Ll))}));this.Y.autoplay=!1;this.Y.Tv="auto";this.Y.src=a;break;case 1:e=new XMLHttpRequest;e.open("GET",a,!0);e.responseType="arraybuffer";e.onload=function(){b.Ee=e.response;b.rr()};e.onerror=function(){b.Ck=!0};e.send();break;case 2:this.Y=!0;break;case 3:this.Y=!0}}function v(a,c){var b=this;this.tag=c;this.Xb=this.Zc=!0;this.src=a.src;this.buffer=a;this.J=G;this.Mc=a.Mc;this.playbackRate=1;this.nk=!0;this.xc=this.Qd=!1;this.Cb=0;this.Pg=this.Df=this.$c=!1;this.volume=1;this.Te=
1===F&&!this.Mc||2===F;this.Mf=1;this.startTime=this.Te?z.jc.ca:z.pd.ca;this.Ga=this.Oa=null;this.cd=!1;this.Fa=null;this.Qo=this.Po=this.Oo=this.No=this.So=this.Ro=0;this.i=null;var e=!1;1!==this.J||0!==this.buffer.J||this.buffer.wp||(this.J=0);switch(this.J){case 0:this.Mc?(this.i=a.Y,e=!a.Um,a.Um=!0):(this.i=new Audio,this.i.autoplay=!1,this.i.src=a.Y.src,e=!0);e&&this.i.addEventListener("ended",function(){ha=b.tag;b.Xb=!0;z.trigger(hc.prototype.j.Sj,M)});break;case 1:this.Oa=f();this.Oa.connect(p(c));
1===this.buffer.J?a.Y&&(this.i=y.createBufferSource(),this.i.buffer=a.Y,this.i.connect(this.Oa)):(this.i=this.buffer.Y,this.buffer.Ll.connect(this.Oa));break;case 2:this.i=new window.Media(Y+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(b.nk=!0,b.Xb=!0,ha=b.tag,z.trigger(hc.prototype.j.Sj,M))});break;case 3:this.i=!0}}function A(a,c){S.hasOwnProperty(a)?S[a].push(c):S[a]=[c];var b,e,d,g,h=y.destination;if(S.hasOwnProperty(a)&&(d=S[a],d.length))for(h=d[0].gc(),b=0,e=d.length;b<e;b++)g=
d[b],b+1===e?g.nc(y.destination):g.nc(d[b+1].gc());Ga.length=0;if(a.length)for(b=0,e=H.length;b<e;b++)d=H[b],fb(a,d.tag)&&Ga.push(d);else Q&&!Q.Qe()&&(Ga.length=1,Ga[0]=Q);b=0;for(e=Ga.length;b<e;b++)Ga[b].$t(h);ba&&rb===a&&(ba.disconnect(),ba.connect(h))}function K(){}function B(){}var u=hc.prototype;u.Ia=function(a){this.wa=a;this.b=a.b};u.Ia.prototype.X=function(){};var z=null,M=null,ha="",Y="",G=0,y=null,ua=[],H=[],Q=null,E=!1,F=0,O=!1,D=1,L=0,I=0,ja=1,N=1,pa=10,da=1E4,ra=1,ba=null,rb="",Ka=!1,
La=[],S={},qc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");d.prototype.nc=function(a){this.F.disconnect();this.F.connect(a);this.C.disconnect();this.C.connect(a)};d.prototype.remove=function(){this.R.disconnect();this.Ka.disconnect();this.F.disconnect();this.C.disconnect()};d.prototype.gc=function(){return this.R};e.prototype.nc=function(a){this.F.disconnect();this.F.connect(a);this.C.disconnect();this.C.connect(a)};e.prototype.remove=function(){this.R.disconnect();
this.hh.disconnect();this.qc.disconnect();this.ai.disconnect();this.F.disconnect();this.C.disconnect()};e.prototype.gc=function(){return this.R};h.prototype.nc=function(a){this.F.disconnect();this.F.connect(a);this.C.disconnect();this.C.connect(a)};h.prototype.remove=function(){this.R.disconnect();this.Ge.disconnect();this.F.disconnect();this.C.disconnect()};h.prototype.gc=function(){return this.R};c.prototype.nc=function(a){this.C.disconnect();this.C.connect(a);this.F.disconnect();this.F.connect(a)};
c.prototype.remove=function(){this.R.disconnect();this.qc.disconnect();this.$a.disconnect();this.Vb.disconnect();this.C.disconnect();this.F.disconnect();this.gi.disconnect()};c.prototype.gc=function(){return this.R};m.prototype.nc=function(a){this.C.disconnect();this.C.connect(a);this.F.disconnect();this.F.connect(a)};m.prototype.remove=function(){this.R.disconnect();this.Ka.disconnect();this.$a.disconnect();this.Vb.disconnect();this.C.disconnect();this.F.disconnect()};m.prototype.gc=function(){return this.R};
s.prototype.nc=function(a){this.U.disconnect();this.U.connect(a)};s.prototype.remove=function(){this.U.disconnect()};s.prototype.gc=function(){return this.U};n.prototype.nc=function(a){this.U.disconnect();this.U.connect(a)};n.prototype.remove=function(){this.$a.disconnect();this.Vb.disconnect();this.U.disconnect()};n.prototype.gc=function(){return this.U};w.prototype.nc=function(a){this.F.disconnect();this.F.connect(a);this.C.disconnect();this.C.connect(a)};w.prototype.remove=function(){this.$a.disconnect();
this.Ah.disconnect();this.R.disconnect();this.F.disconnect();this.C.disconnect()};w.prototype.gc=function(){return this.R};t.prototype.lu=function(a,c){.01>a&&(a=.01);this.kj.gain.value=a;this.jj.gain.value=Math.pow(1/a,.6)*c};t.prototype.shape=function(a,c,b){var e=1.05*b*c-c;b=0>a?-1:1;a=0>a?-a:a;c=a<c?a:c+e*(1-Math.exp(-(1/e)*(a-c)));return c*b};t.prototype.zs=function(a,c){for(var b=Math.pow(10,a/20),e=Math.pow(10,c/20),d=0,g=0;32768>g;++g)d=g/32768,d=this.shape(d,b,e),this.Zh[32768+g]=d,this.Zh[32768-
g-1]=-d};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.kj.disconnect();this.Pj.disconnect();this.jj.disconnect();this.F.disconnect();this.C.disconnect()};t.prototype.gc=function(){return this.R};q.prototype.nc=function(a){this.U.disconnect();this.U.connect(a)};q.prototype.remove=function(){this.U.disconnect()};q.prototype.gc=function(){return this.U};g.prototype.Ma=function(){this.U.getFloatFrequencyData(this.xs);
this.U.getByteTimeDomainData(this.rp);for(var a=this.U.fftSize,c=0,b=this.uh=0,e=0;c<a;c++)e=(this.rp[c]-128)/128,0>e&&(e=-e),this.uh<e&&(this.uh=e),b+=e*e;this.uh=k(this.uh);k(Math.sqrt(b/a))};g.prototype.nc=function(a){this.U.disconnect();this.U.connect(a)};g.prototype.remove=function(){this.U.disconnect()};g.prototype.gc=function(){return this.U};x.prototype.Bh=function(a){if(this.D=a)this.Gi=this.D.x,this.Hi=this.D.y;this.ye.length=0};x.prototype.wi=function(){return!!this.D};x.prototype.Ma=function(a){this.D&&
0!==a&&(this.Bl=Ha(this.Gi,this.Hi,this.D.x,this.D.y),a=Qa(this.Gi,this.Hi,this.D.x,this.D.y)/a,4>this.ye.length||this.ye.shift(),this.ye.push(a),this.Gi=this.D.x,this.Hi=this.D.y)};x.prototype.Jn=function(){if(!this.ye.length)return 0;var a,c,b=0;a=0;for(c=this.ye.length;a<c;a++)b+=this.ye[a];return b/this.ye.length};x.prototype.Rk=function(){return Math.cos(this.Bl)*this.Jn()};x.prototype.Sk=function(){return Math.sin(this.Bl)*this.Jn()};var nc=!1;C.prototype.rr=function(){if(!this.Y&&this.Ee){var a=
this;if(y.decodeAudioData)y.decodeAudioData(this.Ee,function(c){a.Y=c;a.Ee=null;var b,e,d;if(ga(a.hj)||O)ga(a.Th)||(b=a.Th.Ge,b.normalize=a.Go,b.buffer=c);else if(a.Sf.length){b=0;for(e=a.Sf.length;b<e;b++){c=a.Sf[b];d=new v(a,c.Ap);d.fm(!0);if("undefined"!==typeof c.Io&&(c.D=z.pi(c.Io),!c.D))continue;if(c.D){var g=Pa(c.D.x,c.D.y,-c.D.e.La(),L,I,!0),h=Pa(c.D.x,c.D.y,-c.D.e.La(),L,I,!1);d.em(g,h,Ba(c.D.k-c.D.e.La()),c.Yk,c.Cl,c.Fl);d.Bh(c.D)}else d.em(c.x,c.y,c.Uq,c.Yk,c.Cl,c.Fl);d.play(a.wl,a.zm,
a.rj);a.gj&&d.pause();H.push(d)}a.Sf.length=0}else d=new v(a,a.hj),d.play(a.wl,a.zm,a.rj),a.gj&&d.pause(),H.push(d)},function(){a.Ck=!0});else if(this.Y=y.createBuffer(this.Ee,!1),this.Ee=null,ga(this.hj)||O)ga(this.Th)||(c=this.Th.Ge,c.normalize=this.Go,c.buffer=this.Y);else{var c=new v(this,this.hj);c.play(this.wl,this.zm,this.rj);this.gj&&c.pause();H.push(c)}}};C.prototype.Sn=function(){switch(this.J){case 0:var a=4<=this.Y.readyState;a&&(this.Bm=!0);return a||this.Bm;case 1:return!!this.Ee||!!this.Y;
case 2:return!0;case 3:return!0}return!1};C.prototype.kt=function(){switch(this.J){case 0:return this.Sn();case 1:return!!this.Y;case 2:return!0;case 3:return!0}return!1};C.prototype.ct=function(){switch(this.J){case 0:return!!this.Y.error;case 1:return this.Ck}return!1};v.prototype.Qe=function(){var a;switch(this.J){case 0:return this.i.ended;case 1:if(1===this.buffer.J){if(!this.Zc&&!this.Xb&&this.i.loop||this.xc)return!1;a=this.Te?z.jc.ca:z.pd.ca;var c=this.playbackRate;0===c&&(c=1E-6);return a-
this.startTime>this.buffer.Y.duration/c}return this.i.ended;case 2:return this.nk;case 3:!0}return!0};v.prototype.kr=function(){return this.Zc||this.Xb?!0:this.Qe()};v.prototype.fm=function(a){1===G&&(!this.cd&&a?this.Oa&&(this.Ga||(this.Ga=y.createPanner(),this.Ga.panningModel="number"===typeof this.Ga.panningModel?ja:["equalpower","HRTF","soundfield"][ja],this.Ga.distanceModel="number"===typeof this.Ga.distanceModel?N:["linear","inverse","exponential"][N],this.Ga.refDistance=pa,this.Ga.maxDistance=
da,this.Ga.rolloffFactor=ra),this.Oa.disconnect(),this.Oa.connect(this.Ga),this.Ga.connect(p(this.tag)),this.cd=!0):this.cd&&!a&&this.Oa&&(this.Ga.disconnect(),this.Oa.disconnect(),this.Oa.connect(p(this.tag)),this.cd=!1))};v.prototype.em=function(a,c,b,e,d,g){this.cd&&1===G&&(this.Ga.setPosition(a,c,0),this.Ga.setOrientation(Math.cos(V(b)),Math.sin(V(b)),0),this.Ga.coneInnerAngle=e,this.Ga.coneOuterAngle=d,this.Ga.coneOuterGain=g,this.Ro=a,this.So=c,this.No=b,this.Oo=e,this.Po=d,this.Qo=g)};v.prototype.Bh=
function(a){this.cd&&1===G&&(this.Fa||(this.Fa=new x),this.Fa.Bh(a))};v.prototype.Ma=function(a){if(this.cd&&1===G&&this.Fa&&this.Fa.wi()&&this.zf()){this.Fa.Ma(a);a=this.Fa.D;var c=Pa(a.x,a.y,-a.e.La(),L,I,!0),b=Pa(a.x,a.y,-a.e.La(),L,I,!1);this.Ga.setPosition(c,b,0);c=0;"undefined"!==typeof this.Fa.D.k&&(c=a.k-a.e.La(),this.Ga.setOrientation(Math.cos(c),Math.sin(c),0));c=Pa(this.Fa.Rk(),this.Fa.Sk(),-a.e.La(),0,0,!0);b=Pa(this.Fa.Rk(),this.Fa.Sk(),-a.e.La(),0,0,!1);this.Ga.setVelocity(c,b,0)}};
v.prototype.play=function(a,c,e){var d=this.i;this.$c=a;this.volume=c;e=e||0;switch(this.J){case 0:1!==d.playbackRate&&(d.playbackRate=1);d.volume!==c*D&&(d.volume=c*D);d.loop!==a&&(d.loop=a);d.muted&&(d.muted=!1);if(d.currentTime!==e)try{d.currentTime=e}catch(g){}if(this.Mc&&Ka&&!z.ka)La.push(this);else try{this.i.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.Mf=1;if(1===this.buffer.J)this.Oa.gain.value=
c*D,this.Zc||(this.i=y.createBufferSource(),this.i.buffer=this.buffer.Y,this.i.connect(this.Oa)),this.i.loop=a,0===e?l(this.i):b(this.i,e,this.Oe());else{1!==d.playbackRate&&(d.playbackRate=1);d.loop!==a&&(d.loop=a);d.volume=c*D;if(d.currentTime!==e)try{d.currentTime=e}catch(f){}this.Mc&&Ka&&!z.ka?La.push(this):d.play()}break;case 2:(!this.Zc&&this.Xb||0!==e)&&d.seekTo(e);d.play();this.nk=!1;break;case 3:z.eb?AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=
1;this.startTime=(this.Te?z.jc.ca:z.pd.ca)-e;this.xc=this.Xb=this.Zc=!1};v.prototype.stop=function(){switch(this.J){case 0:this.i.paused||this.i.pause();break;case 1:1===this.buffer.J?a(this.i):this.i.paused||this.i.pause();break;case 2:this.i.stop();break;case 3:z.eb&&AppMobi.context.stopSound(this.src)}this.Xb=!0;this.xc=!1};v.prototype.pause=function(){if(!(this.Zc||this.Xb||this.Qe()||this.xc)){switch(this.J){case 0:this.i.paused||this.i.pause();break;case 1:1===this.buffer.J?(this.Cb=this.Pk(),
this.$c&&(this.Cb%=this.Oe()),a(this.i)):this.i.paused||this.i.pause();break;case 2:this.i.pause();break;case 3:z.eb&&AppMobi.context.stopSound(this.src)}this.xc=!0}};v.prototype.cu=function(){if(!(this.Zc||this.Xb||this.Qe())&&this.xc){switch(this.J){case 0:this.i.play();break;case 1:1===this.buffer.J?(this.i=y.createBufferSource(),this.i.buffer=this.buffer.Y,this.i.connect(this.Oa),this.i.loop=this.$c,this.Oa.gain.value=D*this.volume*this.Mf,this.startTime=(this.Te?z.jc.ca:z.pd.ca)-this.Cb,b(this.i,
this.Cb,this.Oe())):this.i.play();break;case 2:this.i.play();break;case 3:z.eb&&AppMobi.context.resumeSound(this.src)}this.xc=!1}};v.prototype.seek=function(a){if(!(this.Zc||this.Xb||this.Qe()))switch(this.J){case 0:try{this.i.currentTime=a}catch(c){}break;case 1:if(1===this.buffer.J)this.xc?this.Cb=a:(this.pause(),this.Cb=a,this.cu());else try{this.i.currentTime=a}catch(b){}break;case 3:z.eb&&AppMobi.context.seekSound(this.src,a)}};v.prototype.$t=function(a){1===this.J&&(this.cd?(this.Ga.disconnect(),
this.Ga.connect(a)):(this.Oa.disconnect(),this.Oa.connect(a)))};v.prototype.Oe=function(){switch(this.J){case 0:if("undefined"!==typeof this.i.duration)return this.i.duration;break;case 1:return this.buffer.Y.duration;case 2:return this.i.getDuration();case 3:if(z.eb)return AppMobi.context.getDurationSound(this.src)}return 0};v.prototype.Pk=function(){var a=this.Oe(),c=0;switch(this.J){case 0:"undefined"!==typeof this.i.currentTime&&(c=this.i.currentTime);break;case 1:if(1===this.buffer.J){if(this.xc)return this.Cb;
c=(this.Te?z.jc.ca:z.pd.ca)-this.startTime}else"undefined"!==typeof this.i.currentTime&&(c=this.i.currentTime);break;case 3:z.eb&&(c=AppMobi.context.getPlaybackTimeSound(this.src))}!this.$c&&c>a&&(c=a);return c};v.prototype.zf=function(){return!this.xc&&!this.Zc&&!this.Xb&&!this.Qe()};v.prototype.yu=function(){var a=this.volume*D;switch(this.J){case 0:"undefined"!==typeof this.i.volume&&this.i.volume!==a&&(this.i.volume=a);break;case 1:1===this.buffer.J?this.Oa.gain.value=a*this.Mf:"undefined"!==
typeof this.i.volume&&this.i.volume!==a&&(this.i.volume=a)}};v.prototype.bi=function(a){switch(this.J){case 0:this.i.muted!==!!a&&(this.i.muted=!!a);break;case 1:1===this.buffer.J?(this.Mf=a?0:1,this.Oa.gain.value=D*this.volume*this.Mf):this.i.muted!==!!a&&(this.i.muted=!!a)}};v.prototype.mu=function(){this.Df=!0;this.bi(this.Df||this.Pg)};v.prototype.mp=function(a){this.Pg=!!a;this.bi(this.Df||this.Pg)};v.prototype.Np=function(){var a=this.playbackRate;this.Te&&(a*=z.fg);switch(this.J){case 0:this.i.playbackRate!==
a&&(this.i.playbackRate=a);break;case 1:1===this.buffer.J?this.i.playbackRate.value!==a&&(this.i.playbackRate.value=a):this.i.playbackRate!==a&&(this.i.playbackRate=a)}};v.prototype.ou=function(c){switch(this.J){case 0:c?this.zf()?(this.i.pause(),this.Qd=!0):this.Qd=!1:this.Qd&&this.i.play();break;case 1:c?this.zf()?(1===this.buffer.J?(this.Cb=this.Pk(),this.$c&&(this.Cb%=this.Oe()),a(this.i)):this.i.pause(),this.Qd=!0):this.Qd=!1:this.Qd&&(1===this.buffer.J?(this.i=y.createBufferSource(),this.i.buffer=
this.buffer.Y,this.i.connect(this.Oa),this.i.loop=this.$c,this.Oa.gain.value=D*this.volume*this.Mf,this.startTime=(this.Te?z.jc.ca:z.pd.ca)-this.Cb,b(this.i,this.Cb,this.Oe())):this.i.play());break;case 2:c?this.zf()?(this.i.pause(),this.Qd=!0):this.Qd=!1:this.Qd&&this.i.play()}};u.na=function(a){this.type=a;z=this.b=a.b;M=this;this.ob=null;this.Yg=-600;!(this.b.Fi||this.b.Ai&&(this.b.Lg||this.b.Bi))||this.b.Mg||this.b.ga||this.b.el||(Ka=!0);y=null;"undefined"!==typeof AudioContext?(G=1,y=new AudioContext):
"undefined"!==typeof webkitAudioContext&&(G=1,y=new webkitAudioContext);(this.b.Fi&&1===G||Ka)&&document.addEventListener("touchstart",function(){var a,c,b;!nc&&y&&(a=y.createBuffer(1,1,22050),c=y.createBufferSource(),c.buffer=a,c.connect(y.destination),l(c),nc=!0);if(Ka){if(!O)for(a=0,c=La.length;a<c;++a)b=La[a],b.Xb||b.xc||b.i.play();La.length=0}},!0);1!==G&&(this.b.wc&&"undefined"!==typeof window.Media?G=2:this.b.yf&&(G=3));2===G&&(Y=location.href,a=Y.lastIndexOf("/"),-1<a&&(Y=Y.substr(0,a+1)),
Y=Y.replace("file://",""));if(this.b.Tn&&this.b.lt&&"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.Xd(this);else{if(this.b.eb)E=this.b.Ai;else try{E=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(c){E=!1}this.b.Fj(this)}};var ka=u.na.prototype;ka.X=function(){this.b.of=this;F=this.aa[0];this.Rd=this.aa[1];this.Qt=0!==this.aa[2];ja=this.aa[3];N=this.aa[4];this.Yg=-this.aa[5];
pa=this.aa[6];da=this.aa[7];ra=this.aa[8];this.ob=new x;var a=this.b.L||this.b.width,c=this.b.K||this.b.height;1===G&&("undefined"!==typeof y.listener.dopplerFactor&&(y.listener.dopplerFactor=0),y.listener.setPosition(a/2,c/2,this.Yg),y.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,c){ba&&ba.disconnect();rb=c.toLowerCase();ba=y.createMediaStreamSource(a);ba.connect(p(rb))});this.b.$q(function(a){M.Lt(a)});var b=this;this.b.Yq(function(a){b.Gt(a)})};ka.Gt=function(a){var c,
b,e;c=0;for(b=H.length;c<b;c++)e=H[c],e.Fa&&e.Fa.D===a&&(e.Fa.D=null,e.cd&&e.zf()&&e.$c&&e.stop());this.ob.D===a&&(this.ob.D=null)};ka.rb=function(){var a={silent:O,masterVolume:D,listenerZ:this.Yg,listenerUid:this.ob.wi()?this.ob.D.uid:-1,playing:[],effects:{}},c=a.playing,b,e,d,g,h,f;b=0;for(e=H.length;b<e;b++)d=H[b],!d.zf()||3===this.Rd||d.Mc&&1===this.Rd||!d.Mc&&2===this.Rd||(g=d.Pk(),d.$c&&(g%=d.Oe()),g={tag:d.tag,buffersrc:d.buffer.src,is_music:d.Mc,playbackTime:g,volume:d.volume,looping:d.$c,
muted:d.Df,playbackRate:d.playbackRate,paused:d.xc,resume_position:d.Cb},d.cd&&(g.pan={},f=g.pan,d.Fa&&d.Fa.wi()?f.objUid=d.Fa.D.uid:(f.x=d.Ro,f.y=d.So,f.a=d.No),f.ia=d.Oo,f.oa=d.Po,f.og=d.Qo),c.push(g));c=a.effects;for(h in S)if(S.hasOwnProperty(h)){d=[];b=0;for(e=S[h].length;b<e;b++)d.push({type:S[h][b].type,params:S[h][b].Nc});c[h]=d}return a};var Ma=[];ka.Tb=function(a){var b=a.silent;D=a.masterVolume;this.Yg=a.listenerZ;this.ob.Bh(null);var f=a.listenerUid;-1!==f&&(this.ob.Ri=f,Ma.push(this.ob));
var f=a.playing,l,k,p,r,v,K,z,ha,B,u,y;if(3!==this.Rd)for(l=0,k=H.length;l<k;l++)B=H[l],B.Mc&&1===this.Rd||(B.Mc||2!==this.Rd)&&B.stop();for(v in S)if(S.hasOwnProperty(v))for(l=0,k=S[v].length;l<k;l++)S[v][l].remove();Ta(S);for(v in a.effects)if(a.effects.hasOwnProperty(v))for(K=a.effects[v],l=0,k=K.length;l<k;l++)switch(p=K[l].type,u=K[l].params,p){case "filter":A(v,new d(u[0],u[1],u[2],u[3],u[4],u[5]));break;case "delay":A(v,new e(u[0],u[1],u[2]));break;case "convolve":p=u[2];B=this.li(p,!1);B.Y?
p=new h(B.Y,u[0],u[1],p):(p=new h(null,u[0],u[1],p),B.Go=u[0],B.Th=p);A(v,p);break;case "flanger":A(v,new c(u[0],u[1],u[2],u[3],u[4]));break;case "phaser":A(v,new m(u[0],u[1],u[2],u[3],u[4],u[5]));break;case "gain":A(v,new s(u[0]));break;case "tremolo":A(v,new n(u[0],u[1]));break;case "ringmod":A(v,new w(u[0],u[1]));break;case "distortion":A(v,new t(u[0],u[1],u[2],u[3],u[4]));break;case "compressor":A(v,new q(u[0],u[1],u[2],u[3],u[4]));break;case "analyser":A(v,new g(u[0],u[1]))}l=0;for(k=f.length;l<
k;l++)3===this.Rd||(a=f[l],p=a.buffersrc,r=a.is_music,v=a.tag,K=a.playbackTime,z=a.looping,ha=a.volume,y=(u=a.pan)&&u.hasOwnProperty("objUid")?u.objUid:-1,r&&1===this.Rd)||!r&&2===this.Rd||((B=this.Cn(p,v,r,z,ha))?(B.Cb=a.resume_position,B.fm(!!u),B.play(z,ha,K),B.Np(),B.yu(),B.bi(B.Df||B.Pg),a.paused&&B.pause(),a.muted&&B.mu(),B.bi(B.Df||B.Pg),u&&(-1!==y?(B.Fa=B.Fa||new x,B.Fa.Ri=y,Ma.push(B.Fa)):B.em(u.x,u.y,u.a,u.ia,u.oa,u.og))):(B=this.li(p,r),B.rj=K,B.gj=a.paused,u&&(-1!==y?B.Sf.push({Io:y,Yk:u.ia,
Cl:u.oa,Fl:u.og,Ap:v}):B.Sf.push({x:u.x,y:u.y,Uq:u.a,Yk:u.ia,Cl:u.oa,Fl:u.og,Ap:v}))));if(b&&!O){l=0;for(k=H.length;l<k;l++)H[l].mp(!0);O=!0}else if(!b&&O){l=0;for(k=H.length;l<k;l++)H[l].mp(!1);O=!1}};ka.qd=function(){var a,c,b,e;a=0;for(c=Ma.length;a<c;a++)b=Ma[a],e=this.b.pi(b.Ri),b.Bh(e),b.Ri=-1,e&&(L=e.x,I=e.y);Ma.length=0};ka.Lt=function(a){if(!this.Qt){!a&&y&&y.resume&&y.resume();var c,b;c=0;for(b=H.length;c<b;c++)H[c].ou(a);a&&y&&y.suspend&&y.suspend()}};ka.Ma=function(){var a=this.b.fe,c,
b,e;c=0;for(b=H.length;c<b;c++)e=H[c],e.Ma(a),0===e.J||3===e.J||e.Zc||e.Xb||!e.Qe()||(e.Xb=!0,ha=e.tag,z.trigger(hc.prototype.j.Sj,M)),0!==F&&e.Np();var d,g;for(d in S)if(S.hasOwnProperty(d))for(e=S[d],c=0,b=e.length;c<b;c++)g=e[c],g.Ma&&g.Ma();1===G&&this.ob.wi()&&(this.ob.Ma(a),L=this.ob.D.x,I=this.ob.D.y,y.listener.setPosition(this.ob.D.x,this.ob.D.y,this.Yg),y.listener.setVelocity(this.ob.Rk(),this.ob.Sk(),0))};var Na=[];ka.nu=function(a){var c,b,e,d,g,h=0;c=0;for(b=a.length;c<b;++c)if(e=a[c],
d=e[0],e=2*e[1],(g=4<d.length&&".ogg"===d.substr(d.length-4))&&E||!g&&!E)Na.push({filename:d,size:e,D:null}),h+=e;return h};ka.ru=function(){var a,c,b,e;a=0;for(c=Na.length;a<c;++a)b=Na[a],e=this.b.Dk+b.filename,b.D=this.li(e,!1)};ka.Is=function(){var a=0,c,b,e;c=0;for(b=Na.length;c<b;++c)e=Na[c],e.D.kt()||e.D.ct()||this.b.ga||this.b.Bi?a+=e.size:e.D.Sn()&&(a+=Math.floor(e.size/2));return a};ka.li=function(a,c){var b,e,d,g=null;b=0;for(e=ua.length;b<e;b++)if(d=ua[b],d.src===a){g=d;break}g||(g=new C(a,
c),ua.push(g));return g};ka.Cn=function(a,c,b,e,d){var g,h,f;g=0;for(h=H.length;g<h;g++)if(f=H[g],f.src===a&&(f.kr()||b))return f.tag=c,f;a=this.li(a,b);if(!a.Y)return"<preload>"!==c&&(a.hj=c,a.wl=e,a.zm=d),null;f=new v(a,c);H.push(f);return f};var Ga=[];K.prototype.Sj=function(a){return fb(ha,a)};u.j=new K;B.prototype.Play=function(a,c,b,e){!O&&(b=Math.pow(10,b/20),0>b&&(b=0),1<b&&(b=1),Q=this.Cn(this.b.Dk+a[0]+(E?".ogg":".m4a"),e,a[1],0!==c,b))&&(Q.fm(!1),Q.play(0!==c,b))};u.ja=new B;u.bb=new function(){}})();
function ic(k){this.b=k}
(function(){function k(){}var p=ic.prototype;p.Ia=function(f){this.wa=f;this.b=f.b};p.Ia.prototype.X=function(){};p.na=function(f){this.type=f;this.b=f.b;this.ll=Array(256);this.Mj=Array(256);this.Be=0};var f=p.na.prototype;f.X=function(){var f=this;this.b.ga||(jQuery(document).keydown(function(b){f.Ht(b)}),jQuery(document).keyup(function(b){f.It(b)}))};var r=[32,33,34,35,36,37,38,39,40,44];f.Ht=function(f){var b=!1;window!=window.top&&-1<r.indexOf(f.which)&&(f.preventDefault(),b=!0,f.stopPropagation());
if(this.ll[f.which])this.Mj[f.which]&&!b&&f.preventDefault();else{this.ll[f.which]=!0;this.Be=f.which;this.b.ka=!0;this.b.trigger(ic.prototype.j.nq,this);var a=this.b.trigger(ic.prototype.j.Fm,this),d=this.b.trigger(ic.prototype.j.zq,this);this.b.ka=!1;if(a||d)this.Mj[f.which]=!0,b||f.preventDefault()}};f.It=function(f){this.ll[f.which]=!1;this.Be=f.which;this.b.ka=!0;this.b.trigger(ic.prototype.j.oq,this);var b=this.b.trigger(ic.prototype.j.Bq,this),a=this.b.trigger(ic.prototype.j.Aq,this);this.b.ka=
!1;if(b||a||this.Mj[f.which])this.Mj[f.which]=!0,f.preventDefault()};f.rb=function(){return{triggerKey:this.Be}};f.Tb=function(f){this.Be=f.triggerKey};k.prototype.Fm=function(f){return f===this.Be};k.prototype.nq=function(){return!0};k.prototype.oq=function(){return!0};k.prototype.Bq=function(f){return f===this.Be};k.prototype.zq=function(f){return f===this.Be};k.prototype.Aq=function(f){return f===this.Be};p.j=new k;p.ja=new function(){};p.bb=new function(){}})();function jc(k){this.b=k}
(function(){function k(){}function p(){}var f=jc.prototype;f.Ia=function(b){this.wa=b;this.b=b.b};f.Ia.prototype.X=function(){};f.na=function(b){this.type=b;this.b=b.b;this.Qh=Array(4);this.Dp=this.Hj=this.gg=this.Ld=this.Kd=0;this.Vk=!1};var r=f.na.prototype;r.X=function(){var b=this;if(!this.b.ga){jQuery(document).mousemove(function(a){b.mh(a)});jQuery(document).mousedown(function(a){b.lh(a)});jQuery(document).mouseup(function(a){b.nh(a)});jQuery(document).dblclick(function(a){b.Et(a)});var a=function(a){b.Nt(a)};
document.addEventListener("mousewheel",a,!1);document.addEventListener("DOMMouseScroll",a,!1)}};var l={left:0,top:0};r.mh=function(b){var a=this.b.ga?l:jQuery(this.b.canvas).offset();this.Kd=b.pageX-a.left;this.Ld=b.pageY-a.top};r.Bo=function(){return 0<this.b.nb?!0:0<=this.Kd&&0<=this.Ld&&this.Kd<this.b.width&&this.Ld<this.b.height};r.lh=function(b){this.Bo()&&(this.b.xf&&!this.b.Kc&&b.preventDefault(),this.Qh[b.which]=!0,this.b.ka=!0,this.b.trigger(jc.prototype.j.mq,this),this.gg=b.which-1,this.Hj=
0,this.b.trigger(jc.prototype.j.Em,this),this.b.trigger(jc.prototype.j.Uj,this),this.b.ka=!1)};r.nh=function(b){this.Qh[b.which]&&(this.b.xf&&!this.b.Kc&&b.preventDefault(),this.b.xf=!0,this.Qh[b.which]=!1,this.b.ka=!0,this.gg=b.which-1,this.b.trigger(jc.prototype.j.Eq,this),this.b.ka=!1)};r.Et=function(b){this.Bo()&&(b.preventDefault(),this.b.ka=!0,this.gg=b.which-1,this.Hj=1,this.b.trigger(jc.prototype.j.Em,this),this.b.trigger(jc.prototype.j.Uj,this),this.b.ka=!1)};r.Nt=function(b){this.Dp=0>(b.wheelDelta?
b.wheelDelta:b.detail?-b.detail:0)?0:1;this.Vk=!1;this.b.ka=!0;this.b.trigger(jc.prototype.j.Hq,this);this.b.ka=!1;this.Vk&&gb(b)&&b.preventDefault()};k.prototype.Em=function(b,a){return b===this.gg&&a===this.Hj};k.prototype.mq=function(){return!0};k.prototype.bq=function(b){return this.Qh[b+1]};k.prototype.Eq=function(b){return b===this.gg};k.prototype.dq=function(b){var a=this.b.Lk();return Ra(this.b.eg(b,this.Kd,this.Ld,a.Kg),a.Kg)};k.prototype.Uj=function(b,a,d){return b!==this.gg||a!==this.Hj?
!1:this.b.eg(d,this.Kd,this.Ld,!1)};k.prototype.Hq=function(b){this.Vk=!0;return b===this.Dp};f.j=new k;f.ja=new function(){};p.prototype.Nm=function(b,a){var d,e,h,c,f;ga(a)?(d=this.b.Fd(0),e=d.scale,h=d.Gb,c=d.Ac,f=d.k,d.scale=1,d.Gb=1,d.Ac=1,d.k=0,b.u(d.ta(this.Kd,this.Ld,!0)),d.scale=e,d.Gb=h,d.Ac=c,d.k=f):(d=P(a)?this.b.Fd(a):this.b.Bg(a))?b.u(d.ta(this.Kd,this.Ld,!0)):b.u(0)};p.prototype.Om=function(b,a){var d,e,h,c,f;ga(a)?(d=this.b.Fd(0),e=d.scale,h=d.Gb,c=d.Bc,f=d.k,d.scale=1,d.Gb=1,d.Bc=
1,d.k=0,b.u(d.ta(this.Kd,this.Ld,!1)),d.scale=e,d.Gb=h,d.Bc=c,d.k=f):(d=P(a)?this.b.Fd(a):this.b.Bg(a))?b.u(d.ta(this.Kd,this.Ld,!1)):b.u(0)};f.bb=new p})();function kc(k){this.b=k}
(function(){function k(f){this.la=f;this.Wa=!1;this.k=this.speed=this.y=this.x=0;this.opacity=1;this.$d=this.wf=this.size=this.si=0}var p=kc.prototype;p.Ia=function(f){this.wa=f;this.b=f.b};var f=p.Ia.prototype;f.X=function(){this.B||(this.I=new Image,this.I.pk=this.Dj,this.O=null,this.b.Am(this.I,this.Cj))};f.kh=function(){this.B||(this.O=null)};f.Zi=function(){this.B||!this.d.length||this.O||(this.O=this.b.q.If(this.I,!0,this.b.S,this.Kh))};f.Zg=function(){this.B||this.O||!this.b.q||(this.O=this.b.q.If(this.I,
!0,this.b.S,this.Kh))};f.Kj=function(){this.B||this.d.length||!this.O||(this.b.q.deleteTexture(this.O),this.O=null)};f.lj=function(f){f.drawImage(this.I,0,0)};k.prototype.init=function(){var f=this.la;this.x=f.x-f.Qj/2+Math.random()*f.Qj;this.y=f.y-f.Rj/2+Math.random()*f.Rj;this.speed=f.bl-f.wj/2+Math.random()*f.wj;this.k=f.k-f.xj/2+Math.random()*f.xj;this.opacity=f.$k;this.size=f.al-f.uj/2+Math.random()*f.uj;this.si=f.Uk-f.ti/2+Math.random()*f.ti;this.$d=this.wf=0};k.prototype.Ma=function(f){var b=
this.la;this.x+=Math.cos(this.k)*this.speed*f;this.y+=Math.sin(this.k)*this.speed*f;this.y+=this.wf*f;this.speed+=b.Xj*f;this.size+=this.si*f;this.wf+=b.Jk*f;this.$d+=f;1>this.size?this.Wa=!1:(0!==b.Vg&&(this.k+=Math.random()*b.Vg*f-b.Vg*f/2),0!==b.Xg&&(this.speed+=Math.random()*b.Xg*f-b.Xg*f/2),0!==b.Wg&&(this.opacity+=Math.random()*b.Wg*f-b.Wg*f/2,0>this.opacity?this.opacity=0:1<this.opacity&&(this.opacity=1)),1>=b.qf&&this.$d>=b.timeout&&(this.Wa=!1),2===b.qf&&0>=this.speed&&(this.Wa=!1))};k.prototype.fc=
function(f){var b=this.la.opacity*this.opacity;if(0!==b){0===this.la.qf&&(b*=1-this.$d/this.la.timeout);f.globalAlpha=b;var b=this.x-this.size/2,a=this.y-this.size/2;this.la.b.Cc&&(b=b+.5|0,a=a+.5|0);f.drawImage(this.la.type.I,b,a,this.size,this.size)}};k.prototype.wb=function(f){var b=this.la.opacity*this.opacity;0===this.la.qf&&(b*=1-this.$d/this.la.timeout);var a=this.size,d=a*this.la.Vo,e=this.x-a/2,h=this.y-a/2;this.la.b.Cc&&(e=e+.5|0,h=h+.5|0);1>d||0===b||(d<f.zt||d>f.yl?(f.ve(b),f.zh(e,h,e+
a,h,e+a,h+a,e,h+a)):f.Rt(this.x,this.y,d,b))};k.prototype.left=function(){return this.x-this.size/2};k.prototype.right=function(){return this.x+this.size/2};k.prototype.top=function(){return this.y-this.size/2};k.prototype.bottom=function(){return this.y+this.size/2};p.na=function(f){this.type=f;this.b=f.b};var f=p.na.prototype,r=[];f.X=function(){var f=this.aa;this.oj=f[0];this.xj=V(f[1]);this.$f=f[2];this.im=!0;this.bl=f[3];this.al=f[4];this.$k=f[5]/100;this.Uk=f[6];this.Qj=f[7];this.Rj=f[8];this.wj=
f[9];this.uj=f[10];this.ti=f[11];this.Xj=f[12];this.Jk=f[13];this.Vg=f[14];this.Xg=f[15];this.Wg=f[16];this.qf=f[17];this.timeout=f[18];this.df=0;this.Vo=1;this.dj=this.x;this.fj=this.y;this.ej=this.x;this.cj=this.y;this.br(function(b){b.Xa.set(b.dj,b.fj,b.ej,b.cj);b.ud.Dh(b.Xa);b.Ph=!1;b.Au()});this.lc||(this.qb=[]);this.b.Fj(this);this.type.Zg();if(1===this.$f)for(f=0;f<this.oj;f++)this.Zj().opacity=0;this.ii=!0};f.rb=function(){var f={r:this.oj,sc:this.xj,st:this.$f,s:this.im,isp:this.bl,isz:this.al,
io:this.$k,gr:this.Uk,xr:this.Qj,yr:this.Rj,spr:this.wj,szr:this.uj,grnd:this.ti,acc:this.Xj,g:this.Jk,lar:this.Vg,lsr:this.Xg,lor:this.Wg,dm:this.qf,to:this.timeout,pcc:this.df,ft:this.ii,p:[]},b,a,d,e=f.p;b=0;for(a=this.qb.length;b<a;b++)d=this.qb[b],e.push([d.x,d.y,d.speed,d.k,d.opacity,d.si,d.size,d.wf,d.$d]);return f};f.Tb=function(f){this.oj=f.r;this.xj=f.sc;this.$f=f.st;this.im=f.s;this.bl=f.isp;this.al=f.isz;this.$k=f.io;this.Uk=f.gr;this.Qj=f.xr;this.Rj=f.yr;this.wj=f.spr;this.uj=f.szr;this.ti=
f.grnd;this.Xj=f.acc;this.Jk=f.g;this.Vg=f.lar;this.Xg=f.lsr;this.Wg=f.lor;this.qf=f.dm;this.timeout=f.to;this.df=f.pcc;this.ii=f.ft;r.push.apply(r,this.qb);this.qb.length=0;var b,a,d,e=f.p;f=0;for(b=e.length;f<b;f++)a=this.Zj(),d=e[f],a.x=d[0],a.y=d[1],a.speed=d[2],a.k=d[3],a.opacity=d[4],a.si=d[5],a.size=d[6],a.wf=d[7],a.$d=d[8]};f.Qf=function(){r.push.apply(r,this.qb);this.qb.length=0};f.Zj=function(){var f;r.length?(f=r.pop(),f.la=this):f=new k(this);this.qb.push(f);f.Wa=!0;return f};f.Ma=function(){var f=
this.b.ni(this),b,a,d,e;if(0===this.$f&&this.im)for(this.df+=f*this.oj,a=T(this.df),this.df-=a,b=0;b<a;b++)d=this.Zj(),d.init();this.dj=this.x;this.fj=this.y;this.ej=this.x;this.cj=this.y;e=b=0;for(a=this.qb.length;b<a;b++)d=this.qb[b],this.qb[e]=d,this.b.V=!0,1===this.$f&&this.ii&&d.init(),d.Ma(f),d.Wa?(d.left()<this.dj&&(this.dj=d.left()),d.right()>this.ej&&(this.ej=d.right()),d.top()<this.fj&&(this.fj=d.top()),d.bottom()>this.cj&&(this.cj=d.bottom()),e++):r.push(d);this.qb.length=e;this.xa();this.ii=
!1;1===this.$f&&0===this.qb.length&&this.b.Xd(this)};f.fc=function(f){var b,a,d,e=this.e;b=0;for(a=this.qb.length;b<a;b++)d=this.qb[b],d.right()>=e.qa&&d.bottom()>=e.ra&&d.left()<=e.Da&&d.top()<=e.Ca&&d.fc(f)};f.wb=function(f){this.Vo=this.e.Pb();f.Db(this.type.O);var b,a,d,e=this.e;b=0;for(a=this.qb.length;b<a;b++)d=this.qb[b],d.right()>=e.qa&&d.bottom()>=e.ra&&d.left()<=e.Da&&d.top()<=e.Ca&&d.wb(f)};p.j=new function(){};p.ja=new function(){};p.bb=new function(){}})();function gc(k){this.b=k}
(function(){function k(){if(0===this.sk.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.ag?b.drawImage(this.I,this.Of,this.Pf,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.I,0,0,this.width,this.height);this.sk=a.toDataURL("image/png")}return this.sk}function p(){}var f=gc.prototype;f.Ia=function(a){this.wa=a;this.b=a.b};var r=f.Ia.prototype;r.X=function(){if(!this.B){var a,b,c,d,f,n,l,p,q;this.Hc=[];this.Hg=
!1;a=0;for(b=this.Ib.length;a<b;a++){f=this.Ib[a];l={};l.name=f[0];l.speed=f[1];l.loop=f[2];l.Vl=f[3];l.pj=f[4];l.Wo=f[5];l.P=f[6];l.frames=[];c=0;for(d=f[7].length;c<d;c++)n=f[7][c],p={},p.Cj=n[0],p.Dj=n[1],p.Of=n[2],p.Pf=n[3],p.width=n[4],p.height=n[5],p.duration=n[6],p.zb=n[7],p.Ab=n[8],p.Zk=n[9],p.ij=n[10],p.Xo=n[11],p.ag=0!==p.width,p.sk="",p.Pv=k,q={left:0,top:0,right:1,bottom:1},p.gm=q,p.O=null,(q=this.b.vs(n[0]))?p.I=q:(p.I=new Image,p.I.or=n[0],p.I.pk=n[1],p.I.ir=null,this.b.Am(p.I,n[0])),
l.frames.push(p),this.Hc.push(p);this.Ib[a]=l}}};r.Mp=function(){var a,b,c;a=0;for(b=this.d.length;a<b;a++)c=this.d[a],c.Xh=c.oc.O};r.kh=function(){if(!this.B){var a,b,c;a=0;for(b=this.Hc.length;a<b;++a)c=this.Hc[a],c.I.ir=null,c.O=null;this.Hg=!1;this.Mp()}};r.Zi=function(){if(!this.B&&this.d.length){var a,b,c;a=0;for(b=this.Hc.length;a<b;++a)c=this.Hc[a],c.O=this.b.q.If(c.I,!1,this.b.S,c.Xo);this.Mp()}};r.Zg=function(){if(!this.B&&!this.Hg&&this.b.q){var a,b,c;a=0;for(b=this.Hc.length;a<b;++a)c=
this.Hc[a],c.O=this.b.q.If(c.I,!1,this.b.S,c.Xo);this.Hg=!0}};r.Kj=function(){if(!this.B&&!this.d.length&&this.Hg){var a,b,c;a=0;for(b=this.Hc.length;a<b;++a)c=this.Hc[a],this.b.q.deleteTexture(c.O),c.O=null;this.Hg=!1}};var l=[];r.lj=function(a){var b,c,d;b=l.length=0;for(c=this.Hc.length;b<c;++b)d=this.Hc[b].I,-1===l.indexOf(d)&&(a.drawImage(d,0,0),l.push(d))};f.na=function(a){this.type=a;this.b=a.b;a=this.type.Ib[0].frames[0].ij;this.lc?this.Vc.Eh(a):this.Vc=new $a(a)};var b=f.na.prototype;b.X=
function(){this.visible=0===this.aa[0];this.tg=0!==this.aa[3];1===this.type.Ib.length&&1===this.type.Ib[0].frames.length||0===this.type.Ib[0].speed||this.b.Fj(this);this.ya=this.Bn(this.aa[1])||this.type.Ib[0];this.A=this.aa[2];0>this.A&&(this.A=0);this.A>=this.ya.frames.length&&(this.A=this.ya.frames.length-1);var a=this.ya.frames[this.A];this.Vc.Eh(a.ij);this.zb=a.zb;this.Ab=a.Ab;this.wg=this.ya.speed;this.lc?this.Tc.reset():this.Tc=new Ya;this.Ed=this.Tc.ca;this.De=!0;this.rd=0;this.Ce=!0;this.lk=
this.Vm="";this.lr=0;this.kk=-1;this.type.Zg();var b,c,d,f,k,l,p,a=0;for(b=this.type.Ib.length;a<b;a++)for(f=this.type.Ib[a],c=0,d=f.frames.length;c<d;c++)k=f.frames[c],0===k.width&&(k.width=k.I.width,k.height=k.I.height),k.ag&&(p=k.I,l=k.gm,l.left=k.Of/p.width,l.top=k.Pf/p.height,l.right=(k.Of+k.width)/p.width,l.bottom=(k.Pf+k.height)/p.height,0===k.Of&&0===k.Pf&&k.width===p.width&&k.height===p.height&&(k.ag=!1));this.oc=this.ya.frames[this.A];this.Xh=this.oc.O};b.rb=function(){var a={a:this.ya.P,
f:this.A,cas:this.wg,fs:this.Ed,ar:this.rd,at:this.Tc.ca};this.De||(a.ap=this.De);this.Ce||(a.af=this.Ce);return a};b.Tb=function(a){var b=this.As(a.a);b&&(this.ya=b);this.A=a.f;0>this.A&&(this.A=0);this.A>=this.ya.frames.length&&(this.A=this.ya.frames.length-1);this.wg=a.cas;this.Ed=a.fs;this.rd=a.ar;this.Tc.reset();this.Tc.ca=a.at;this.De=a.hasOwnProperty("ap")?a.ap:!0;this.Ce=a.hasOwnProperty("af")?a.af:!0;this.oc=this.ya.frames[this.A];this.Xh=this.oc.O;this.Vc.Eh(this.oc.ij);this.zb=this.oc.zb;
this.Ab=this.oc.Ab};b.bk=function(a){this.A=a?0:this.ya.frames.length-1;this.De=!1;this.Vm=this.ya.name;this.b.trigger(gc.prototype.j.lq,this);this.b.trigger(gc.prototype.j.kq,this);this.rd=0};b.Rv=function(){return this.Tc.ca};b.Ma=function(){this.Tc.add(this.b.ni(this));this.lk.length&&this.tr();0<=this.kk&&this.ur();var a=this.Tc.ca,b=this.ya,c=b.frames[this.A],d=c.duration/this.wg;this.De&&a>=this.Ed+d&&(this.Ce?this.A++:this.A--,this.Ed+=d,this.A>=b.frames.length&&(b.Wo?(this.Ce=!1,this.A=b.frames.length-
2):b.loop?this.A=b.pj:(this.rd++,this.rd>=b.Vl?this.bk(!1):this.A=b.pj)),0>this.A&&(b.Wo?(this.A=1,this.Ce=!0,b.loop||(this.rd++,this.rd>=b.Vl&&this.bk(!0))):b.loop?this.A=b.pj:(this.rd++,this.rd>=b.Vl?this.bk(!0):this.A=b.pj)),0>this.A?this.A=0:this.A>=b.frames.length&&(this.A=b.frames.length-1),a>this.Ed+b.frames[this.A].duration/this.wg&&(this.Ed=a),a=b.frames[this.A],this.mf(c,a),this.b.V=!0)};b.Bn=function(a){var b,c,d;b=0;for(c=this.type.Ib.length;b<c;b++)if(d=this.type.Ib[b],fb(d.name,a))return d;
return null};b.As=function(a){var b,c,d;b=0;for(c=this.type.Ib.length;b<c;b++)if(d=this.type.Ib[b],d.P===a)return d;return null};b.tr=function(){var a=this.ya.frames[this.A],b=this.Bn(this.lk);this.lk="";!b||fb(b.name,this.ya.name)&&this.De||(this.ya=b,this.wg=b.speed,0>this.A&&(this.A=0),this.A>=this.ya.frames.length&&(this.A=this.ya.frames.length-1),1===this.lr&&(this.A=0),this.De=!0,this.Ed=this.Tc.ca,this.Ce=!0,this.mf(a,this.ya.frames[this.A]),this.b.V=!0)};b.ur=function(){var a=this.ya.frames[this.A],
b=this.A;this.A=T(this.kk);0>this.A&&(this.A=0);this.A>=this.ya.frames.length&&(this.A=this.ya.frames.length-1);b!==this.A&&(this.mf(a,this.ya.frames[this.A]),this.Ed=this.Tc.ca,this.b.V=!0);this.kk=-1};b.mf=function(a,b){var c=a.width,d=a.height,f=b.width,k=b.height;c!=f&&(this.width*=f/c);d!=k&&(this.height*=k/d);this.zb=b.zb;this.Ab=b.Ab;this.Vc.Eh(b.ij);this.xa();this.oc=b;this.Xh=b.O;c=0;for(d=this.G.length;c<d;c++)f=this.G[c],f.Kt&&f.Kt(a,b);this.b.trigger(gc.prototype.j.mf,this)};b.fc=function(a){a.globalAlpha=
this.opacity;var b=this.oc,c=b.ag,d=b.I,f=this.x,k=this.y,l=this.width,p=this.height;if(0===this.k&&0<=l&&0<=p)f-=this.zb*l,k-=this.Ab*p,this.b.Cc&&(f=Math.round(f),k=Math.round(k)),c?a.drawImage(d,b.Of,b.Pf,b.width,b.height,f,k,l,p):a.drawImage(d,f,k,l,p);else{this.b.Cc&&(f=Math.round(f),k=Math.round(k));a.save();var q=0<l?1:-1,g=0<p?1:-1;a.translate(f,k);1===q&&1===g||a.scale(q,g);a.rotate(this.k*q*g);f=0-this.zb*ma(l);k=0-this.Ab*ma(p);c?a.drawImage(d,b.Of,b.Pf,b.width,b.height,f,k,ma(l),ma(p)):
a.drawImage(d,f,k,ma(l),ma(p));a.restore()}};b.wb=function(a){a.Db(this.Xh);a.ve(this.opacity);var b=this.oc,c=this.ud;if(this.b.Cc){var d=Math.round(this.x)-this.x,f=Math.round(this.y)-this.y;b.ag?a.ed(c.hb+d,c.ib+f,c.Yb+d,c.Zb+f,c.Lb+d,c.Mb+f,c.Jb+d,c.Kb+f,b.gm):a.zh(c.hb+d,c.ib+f,c.Yb+d,c.Zb+f,c.Lb+d,c.Mb+f,c.Jb+d,c.Kb+f)}else b.ag?a.ed(c.hb,c.ib,c.Yb,c.Zb,c.Lb,c.Mb,c.Jb,c.Kb,b.gm):a.zh(c.hb,c.ib,c.Yb,c.Zb,c.Lb,c.Mb,c.Jb,c.Kb)};b.Es=function(a){var b=this.oc,c,d;c=0;for(d=b.Zk.length;c<d;c++)if(fb(a,
b.Zk[c][0]))return c;return-1};b.Ok=function(a,b){var c=this.oc,d=c.Zk,f;f=R(a)?this.Es(a):a-1;f=T(f);if(0>f||f>=d.length)return b?this.x:this.y;var k=(d[f][1]-c.zb)*this.width,d=d[f][2],d=(d-c.Ab)*this.height,c=Math.cos(this.k);f=Math.sin(this.k);var l=k*c-d*f,d=d*c+k*f,k=l+this.x,d=d+this.y;return b?k:d};var a=new ca,d=!1;new U(0,0,0,0);r.finish=function(b){if(d){if(b){var f=this.b.xb().ec.bd;b=null.fa();var c=a.Rc(),k,l;if(b.ma){b.ma=!1;b.d.length=c.length;k=0;for(l=c.length;k<l;k++)b.d[k]=c[k];
if(f)for(k=b.T.length=0,l=null.d.length;k<l;k++)c=null.d[k],a.contains(c)||b.T.push(c)}else if(f)for(f=b.d.length,b.d.length=f+c.length,k=0,l=c.length;k<l;k++)b.d[f+k]=c[k],Aa(b.T,c[k]);else xa(b.d,c);null.sd()}a.clear();d=!1}};p.prototype.kq=function(a){return fb(this.Vm,a)};p.prototype.lq=function(){return!0};p.prototype.mf=function(){return!0};f.j=new p;f.ja=new function(){};f.bb=new function(){}})();function lc(k){this.b=k}
(function(){function k(){return d.length?d.pop():{}}function p(a){var b,c;b=0;for(c=a.length;b<c;b++)d.push(a[b]);a.length=0}function f(){}function r(){}var l=lc.prototype;l.X=function(){l.ja.Oq=function(a){this.width!==a&&(this.width=a,this.hf=!0,this.xa())}};l.Ia=function(a){this.wa=a;this.b=a.b};var b=l.Ia.prototype;b.X=function(){};b.kh=function(){if(!this.B){var a,b,c;a=0;for(b=this.d.length;a<b;a++)c=this.d[a],c.ad=null,c.bf=null,c.Ub=null}};l.na=function(a){this.type=a;this.b=a.b;this.lc?this.pe.length=
0:this.pe=[];this.hf=!0};b=l.na.prototype;b.X=function(){this.text=this.aa[0];this.visible=0===this.aa[1];this.font=this.aa[2];this.color=this.aa[3];this.vi=this.aa[4];this.Nj=this.aa[5];this.Dm=0===this.aa[7];this.ol=this.Li=this.width;this.Ki=this.height;this.ql=this.aa[8];this.ji=this.sf="";this.yp=this.zp=this.xh=0;this.Ot();this.Ub=this.bf=this.ad=null;this.Eo=!1;this.Ug=this.b.ld;this.lc?this.se.set(0,0,1,1):this.se=new U(0,0,1,1);this.b.q&&this.b.Fj(this)};b.Ot=function(){var a=this.font.split(" "),
b;for(b=0;b<a.length;b++)if("pt"===a[b].substr(a[b].length-2,2)){this.xh=parseInt(a[b].substr(0,a[b].length-2));this.Rl=Math.ceil(this.xh/72*96)+4;0<b&&(this.ji=a[b-1]);this.sf=a[b+1];for(b+=2;b<a.length;b++)this.sf+=" "+a[b];break}};b.rb=function(){return{t:this.text,f:this.font,c:this.color,ha:this.vi,va:this.Nj,wr:this.Dm,lho:this.ql,fn:this.sf,fs:this.ji,ps:this.xh,pxh:this.Rl,tw:this.zp,th:this.yp,lrt:this.Ug}};b.Tb=function(a){this.text=a.t;this.font=a.f;this.color=a.c;this.vi=a.ha;this.Nj=
a.va;this.Dm=a.wr;this.ql=a.lho;this.sf=a.fn;this.ji=a.fs;this.xh=a.ps;this.Rl=a.pxh;this.zp=a.tw;this.yp=a.th;this.Ug=a.lrt;this.hf=!0;this.ol=this.Li=this.width;this.Ki=this.height};b.Ma=function(){if(this.b.q&&this.Ub&&300<=this.b.ld-this.Ug){var a=this.e;this.Na();var b=this.Xa;if(b.right<a.qa||b.bottom<a.ra||b.left>a.Da||b.top>a.Ca)this.b.q.deleteTexture(this.Ub),this.ad=this.bf=this.Ub=null}};b.Qf=function(){this.ad=this.bf=null;this.b.q&&this.Ub&&this.b.q.deleteTexture(this.Ub);this.Ub=null};
b.Zv=function(){this.font=this.ji+" "+this.xh.toString()+"pt "+this.sf;this.hf=!0;this.b.V=!0};b.fc=function(a,b){a.font=this.font;a.textBaseline="top";a.fillStyle=this.color;a.globalAlpha=b?1:this.opacity;var c=1;b&&(c=this.e.Pb(),a.save(),a.scale(c,c));if(this.hf||this.width!==this.ol)this.type.wa.Sq(this.text,this.pe,a,this.width,this.Dm),this.hf=!1,this.ol=this.width;this.Na();var c=b?0:this.ud.hb,d=b?0:this.ud.ib;this.b.Cc&&(c=c+.5|0,d=d+.5|0);0===this.k||b||(a.save(),a.translate(c,d),a.rotate(this.k),
d=c=0);var f=d+this.height,k=this.Rl,k=k+this.ql,l,p;1===this.Nj?d+=Math.max(this.height/2-this.pe.length*k/2,0):2===this.Nj&&(d+=Math.max(this.height-this.pe.length*k-2,0));for(p=0;p<this.pe.length&&!(l=c,1===this.vi?l=c+(this.width-this.pe[p].width)/2:2===this.vi&&(l=c+(this.width-this.pe[p].width)),a.fillText(this.pe[p].text,l,d),d+=k,d>=f-k);p++);(0!==this.k||b)&&a.restore();this.Ug=this.b.ld};b.wb=function(a){if(!(1>this.width||1>this.height)){var b=this.hf||this.Eo;this.Eo=!1;var c=this.e.Pb(),
d=this.e.La(),f=this.se,k=c*this.width,l=c*this.height,p=Math.ceil(k),q=Math.ceil(l),g=this.b.L/2,r=this.b.K/2;this.bf||(this.ad=document.createElement("canvas"),this.ad.width=p,this.ad.height=q,this.Li=p,this.Ki=q,b=!0,this.bf=this.ad.getContext("2d"));if(p!==this.Li||q!==this.Ki)this.ad.width=p,this.ad.height=q,this.Ub&&(a.deleteTexture(this.Ub),this.Ub=null),b=!0;b&&(this.bf.clearRect(0,0,p,q),this.fc(this.bf,!0),this.Ub||(this.Ub=a.wd(p,q,this.b.S,this.b.Kc)),a.Fu(this.ad,this.Ub,this.b.Kc));
this.Li=p;this.Ki=q;a.Db(this.Ub);a.ve(this.opacity);a.fd();a.translate(-g,-r);a.nd();var C=this.ud,b=this.e.Ra(C.hb,C.ib,!0),g=this.e.Ra(C.hb,C.ib,!1),r=this.e.Ra(C.Yb,C.Zb,!0),v=this.e.Ra(C.Yb,C.Zb,!1),A=this.e.Ra(C.Lb,C.Mb,!0),K=this.e.Ra(C.Lb,C.Mb,!1),B=this.e.Ra(C.Jb,C.Kb,!0),C=this.e.Ra(C.Jb,C.Kb,!1);if(this.b.Cc||0===this.k&&0===d)var u=(b+.5|0)-b,z=(g+.5|0)-g,b=b+u,g=g+z,r=r+u,v=v+z,A=A+u,K=K+z,B=B+u,C=C+z;0===this.k&&0===d?(r=b+p,v=g,A=r,K=g+q,B=b,C=K,f.right=1,f.bottom=1):(f.right=k/p,f.bottom=
l/q);a.ed(b,g,r,v,A,K,B,C,f);a.fd();a.scale(c,c);a.Xl(-this.e.La());a.translate((this.e.qa+this.e.Da)/-2,(this.e.ra+this.e.Ca)/-2);a.nd();this.Ug=this.b.ld}};var a=[];l.Pq=function(b){a.length=0;for(var d="",c,f=0;f<b.length;)if(c=b.charAt(f),"\n"===c)d.length&&(a.push(d),d=""),a.push("\n"),++f;else if(" "===c||"\t"===c||"-"===c){do d+=b.charAt(f),f++;while(f<b.length&&(" "===b.charAt(f)||"\t"===b.charAt(f)));a.push(d);d=""}else f<b.length&&(d+=c,f++);d.length&&a.push(d)};var d=[];l.Sq=function(a,
b,c,d,f){if(a&&a.length)if(2>=d)p(b);else{if(100>=a.length&&-1===a.indexOf("\n")){var l=c.measureText(a).width;if(l<=d){p(b);b.push(k());b[0].text=a;b[0].width=l;return}}this.Tq(a,b,c,d,f)}else p(b)};l.Tq=function(b,f,c,l,p){p&&(this.Pq(b),b=a);var n="",r,t,q,g=0;for(q=0;q<b.length;q++)"\n"===b[q]?(g>=f.length&&f.push(k()),t=f[g],t.text=n,t.width=c.measureText(n).width,g++,n=""):(r=n,n+=b[q],t=c.measureText(n).width,t>=l&&(g>=f.length&&f.push(k()),t=f[g],t.text=r,t.width=c.measureText(r).width,g++,
n=b[q],p||" "!==n||(n="")));n.length&&(g>=f.length&&f.push(k()),t=f[g],t.text=n,t.width=c.measureText(n).width,g++);for(q=g;q<f.length;q++)d.push(f[q]);f.length=g};l.j=new function(){};f.prototype.Mq=function(a){P(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.hf=!0,this.b.V=!0)};l.ja=new f;r.prototype.Text=function(a){a.Eb(this.text)};l.bb=new r})();function mc(k){this.b=k}
(function(){var k=mc.prototype;k.Ia=function(f){this.wa=f;this.b=f.b};var p=k.Ia.prototype;p.X=function(){this.B||(this.I=new Image,this.I.pk=this.Dj,this.b.Am(this.I,this.Cj),this.O=this.pattern=null)};p.kh=function(){this.B||(this.O=null)};p.Zi=function(){if(!this.B&&this.d.length){this.O||(this.O=this.b.q.If(this.I,!0,this.b.S,this.Kh));var f,k;f=0;for(k=this.d.length;f<k;f++)this.d[f].O=this.O}};p.Zg=function(){this.B||this.O||!this.b.q||(this.O=this.b.q.If(this.I,!0,this.b.S,this.Kh))};p.Kj=
function(){this.B||this.d.length||!this.O||(this.b.q.deleteTexture(this.O),this.O=null)};p.lj=function(f){f.drawImage(this.I,0,0)};k.na=function(f){this.type=f;this.b=f.b};p=k.na.prototype;p.X=function(){this.visible=0===this.aa[0];this.se=new U(0,0,0,0);this.Mn=!1;this.I=this.type.I;this.b.q?(this.type.Zg(),this.O=this.type.O):(this.type.pattern||(this.type.pattern=this.b.da.createPattern(this.type.I,"repeat")),this.pattern=this.type.pattern)};p.qd=function(){this.Mn=!1;this.I=this.type.I};p.Qf=
function(){this.b.q&&this.Mn&&this.O&&(this.b.q.deleteTexture(this.O),this.O=null)};p.fc=function(f){f.globalAlpha=this.opacity;f.save();f.fillStyle=this.pattern;var k=this.x,l=this.y;this.b.Cc&&(k=Math.round(k),l=Math.round(l));var b=-(this.zb*this.width),a=-(this.Ab*this.height),d=b%this.I.width,e=a%this.I.height;0>d&&(d+=this.I.width);0>e&&(e+=this.I.height);f.translate(k,l);f.rotate(this.k);f.translate(d,e);f.fillRect(b-d,a-e,this.width,this.height);f.restore()};p.wb=function(f){f.Db(this.O);
f.ve(this.opacity);var k=this.se;k.right=this.width/this.I.width;k.bottom=this.height/this.I.height;var l=this.ud;if(this.b.Cc){var b=Math.round(this.x)-this.x,a=Math.round(this.y)-this.y;f.ed(l.hb+b,l.ib+a,l.Yb+b,l.Zb+a,l.Lb+b,l.Mb+a,l.Jb+b,l.Kb+a,k)}else f.ed(l.hb,l.ib,l.Yb,l.Zb,l.Lb,l.Mb,l.Jb,l.Kb,k)};k.j=new function(){};k.ja=new function(){};k.bb=new function(){}})();function Z(k){this.b=k}
(function(){function k(a){h=a.x;c=a.y;m=a.z}function p(a){s=a.x;n=a.y;w=a.z}function f(a,c,b,d){var e;e=t.length?t.pop():new r;e.init(a,c,b,d);return e}function r(){this.Gh=this.id=this.y=this.x=this.Aj=this.zj=this.nl=this.time=this.km=0;this.Lh=this.Ij=!1}function l(){}function b(){}var a=Z.prototype;a.Ia=function(a){this.wa=a;this.b=a.b};a.Ia.prototype.X=function(){};a.na=function(a){this.type=a;this.b=a.b;this.touches=[];this.Al=!1};var d=a.na.prototype,e={left:0,top:0};d.Ag=function(a){var c,
b;c=0;for(b=this.touches.length;c<b;c++)if(this.touches[c].id===a)return c;return-1};var h=0,c=0,m=0,s=0,n=0,w=0,t=[];r.prototype.init=function(a,c,b,d){var e=Ua();this.km=this.nl=this.time=e;this.zj=a;this.Aj=c;this.x=a;this.y=c;this.id=b;this.Gh=d;this.Lh=this.Ij=!1};r.prototype.update=function(a,c,b){this.nl=this.time;this.time=a;this.x=c;this.y=b;!this.Lh&&15<=Qa(this.zj,this.Aj,this.x,this.y)&&(this.Lh=!0)};r.prototype.xt=function(a,c){!this.Ij&&500<=Ua()-this.km&&!this.Lh&&15>Qa(this.zj,this.Aj,
this.x,this.y)&&(this.Ij=!0,a.md=this.Gh,a.hg=this.id,a.vf=c,a.b.trigger(Z.prototype.j.xq,a),a.yd=this.x,a.zd=this.y,a.b.trigger(Z.prototype.j.yq,a),a.vf=0)};var q=-1E3,g=-1E3,x=-1E4;r.prototype.zo=function(a,c){if(!this.Ij){var b=Ua();333>=b-this.km&&!this.Lh&&15>Qa(this.zj,this.Aj,this.x,this.y)&&(a.md=this.Gh,a.hg=this.id,a.vf=c,666>=b-x&&25>Qa(q,g,this.x,this.y)?(a.b.trigger(Z.prototype.j.sq,a),a.yd=this.x,a.zd=this.y,a.b.trigger(Z.prototype.j.tq,a),g=q=-1E3,x=-1E4):(a.b.trigger(Z.prototype.j.Fq,
a),a.yd=this.x,a.zd=this.y,a.b.trigger(Z.prototype.j.Gq,a),q=this.x,g=this.y,x=b),a.vf=0)}};d.X=function(){this.mt=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.vf=this.hg=this.md=this.zd=this.yd=this.Rm=this.Qm=this.Pm=this.Xq=this.Wq=this.Vq=this.sh=this.rh=this.qh=0;this.Du=0!==this.aa[0];var a=0<this.b.nb?document:this.b.canvas,c=document;this.b.eb?c=a=window.Canvas:this.b.ic&&(c=a=window);var b=this;window.navigator.pointerEnabled?(a.addEventListener("pointerdown",function(a){b.ph(a)},
!1),a.addEventListener("pointermove",function(a){b.oh(a)},!1),c.addEventListener("pointerup",function(a){b.Od(a,!1)},!1),c.addEventListener("pointercancel",function(a){b.Od(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){b.ph(a)},!1),a.addEventListener("MSPointerMove",function(a){b.oh(a)},!1),c.addEventListener("MSPointerUp",function(a){b.Od(a,!1)},!1),c.addEventListener("MSPointerCancel",function(a){b.Od(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){b.aj(a)},
!1),a.addEventListener("touchmove",function(a){b.$i(a)},!1),c.addEventListener("touchend",function(a){b.Rf(a,!1)},!1),c.addEventListener("touchcancel",function(a){b.Rf(a,!0)},!1));if(this.mt){var d=function(a){a=a.reading;b.Pm=a.accelerationX;b.Qm=a.accelerationY;b.Rm=a.accelerationZ},e=function(a){a=a.reading;b.qh=a.yawDegrees;b.rh=a.pitchDegrees;b.sh=a.rollDegrees},f=Windows.Devices.Sensors.Accelerometer.getDefault();f&&(f.reportInterval=Math.max(f.minimumReportInterval,16),f.addEventListener("readingchanged",
d));var g=Windows.Devices.Sensors.Inclinometer.getDefault();g&&(g.reportInterval=Math.max(g.minimumReportInterval,16),g.addEventListener("readingchanged",e));document.addEventListener("visibilitychange",function(){document.hidden||document.msHidden?(f&&f.removeEventListener("readingchanged",d),g&&g.removeEventListener("readingchanged",e)):(f&&f.addEventListener("readingchanged",d),g&&g.addEventListener("readingchanged",e))},!1)}else window.addEventListener("deviceorientation",function(a){b.qh=a.alpha||
0;b.rh=a.beta||0;b.sh=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(b.Vq=a.accelerationIncludingGravity.x||0,b.Wq=a.accelerationIncludingGravity.y||0,b.Xq=a.accelerationIncludingGravity.z||0);a.acceleration&&(b.Pm=a.acceleration.x||0,b.Qm=a.acceleration.y||0,b.Rm=a.acceleration.z||0)},!1);this.Du&&!this.b.ga&&(jQuery(document).mousemove(function(a){b.mh(a)}),jQuery(document).mousedown(function(a){b.lh(a)}),jQuery(document).mouseup(function(a){b.nh(a)}));
this.b.yf&&!this.b.eb&&AppMobi.accelerometer.watchAcceleration(k,{frequency:40,adjustForRotation:!0});this.b.wc&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(p,null,{frequency:40});this.b.tu(this)};d.oh=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var b=this.Ag(a.pointerId),c=Ua();if(0<=b){var d=this.b.ga?e:jQuery(this.b.canvas).offset(),b=this.touches[b];2>c-b.time||
b.update(c,a.pageX-d.left,a.pageY-d.top)}}};d.ph=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&gb(a)&&a.preventDefault();var b=this.b.ga?e:jQuery(this.b.canvas).offset(),c=a.pageX-b.left,b=a.pageY-b.top;Ua();this.md=this.touches.length;this.hg=a.pointerId;this.touches.push(f(c,b,a.pointerId,this.md));this.b.ka=!0;this.b.trigger(Z.prototype.j.Jm,this);this.b.trigger(Z.prototype.j.Lm,this);this.yd=c;this.zd=b;this.b.trigger(Z.prototype.j.Km,this);
this.b.ka=!1}};d.Od=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&gb(a)&&a.preventDefault();var c=this.Ag(a.pointerId);this.md=0<=c?this.touches[c].Gh:-1;this.hg=0<=c?this.touches[c].id:-1;this.b.ka=!0;this.b.trigger(Z.prototype.j.Im,this);this.b.trigger(Z.prototype.j.Wj,this);0<=c&&(b||this.touches[c].zo(this,c),100>t.length&&t.push(this.touches[c]),this.touches.splice(c,1));this.b.ka=!1}};d.$i=function(a){a.preventDefault&&a.preventDefault();
var b=Ua(),c,d,f,g;c=0;for(d=a.changedTouches.length;c<d;c++)if(f=a.changedTouches[c],g=this.Ag(f.identifier),0<=g){var h=this.b.ga?e:jQuery(this.b.canvas).offset();g=this.touches[g];2>b-g.time||g.update(b,f.pageX-h.left,f.pageY-h.top)}};d.aj=function(a){a.preventDefault&&gb(a)&&a.preventDefault();var b=this.b.ga?e:jQuery(this.b.canvas).offset();Ua();this.b.ka=!0;var c,d,g,h;c=0;for(d=a.changedTouches.length;c<d;c++)if(g=a.changedTouches[c],h=this.Ag(g.identifier),-1===h){h=g.pageX-b.left;var k=g.pageY-
b.top;this.md=this.touches.length;this.hg=g.identifier;this.touches.push(f(h,k,g.identifier,this.md));this.b.trigger(Z.prototype.j.Jm,this);this.b.trigger(Z.prototype.j.Lm,this);this.yd=h;this.zd=k;this.b.trigger(Z.prototype.j.Km,this)}this.b.ka=!1};d.Rf=function(a,c){a.preventDefault&&gb(a)&&a.preventDefault();this.b.ka=!0;var b,d,e;b=0;for(d=a.changedTouches.length;b<d;b++)e=a.changedTouches[b],e=this.Ag(e.identifier),0<=e&&(this.md=this.touches[e].Gh,this.hg=this.touches[e].id,this.b.trigger(Z.prototype.j.Im,
this),this.b.trigger(Z.prototype.j.Wj,this),c||this.touches[e].zo(this,e),100>t.length&&t.push(this.touches[e]),this.touches.splice(e,1));this.b.ka=!1};d.Nv=function(){return this.b.yf&&0===this.qh&&0!==m?90*m:this.b.wc&&0===this.qh&&0!==w?90*w:this.qh};d.Ov=function(){return this.b.yf&&0===this.rh&&0!==c?-90*c:this.b.wc&&0===this.rh&&0!==n?90*n:this.rh};d.Qv=function(){return this.b.yf&&0===this.sh&&0!==h?90*h:this.b.wc&&0===this.sh&&0!==s?90*s:this.sh};d.lh=function(a){a.preventDefault&&this.b.xf&&
!this.b.Kc&&a.preventDefault();this.aj({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.Al=!0};d.mh=function(a){this.Al&&this.$i({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};d.nh=function(a){a.preventDefault&&this.b.xf&&!this.b.Kc&&a.preventDefault();this.b.xf=!0;this.Rf({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.Al=!1};d.mm=function(){var a,b,c,d=Ua();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=d-50&&(c.nl=d),c.xt(this,
a)};l.prototype.Lm=function(){return!0};l.prototype.Wj=function(){return!0};l.prototype.Km=function(a){return a?this.b.eg(a,this.yd,this.zd,!1):!1};var C=[];l.prototype.fq=function(a){if(!a)return!1;var b=a.fa(),c=b.tc(),d,e,f,g,h,k;f=0;for(g=c.length;f<g;f++){var l=c[f];l.Na();h=0;for(k=this.touches.length;h<k;h++)if(e=this.touches[h],d=l.e.ta(e.x,e.y,!0),e=l.e.ta(e.x,e.y,!1),l.Ob(d,e)){C.push(l);break}}return C.length?(b.ma=!1,xa(b.d,C),a.sd(),C.length=0,!0):!1};l.prototype.Jm=function(a){a=Math.floor(a);
return a===this.md};l.prototype.Im=function(a){a=Math.floor(a);return a===this.md};l.prototype.xq=function(){return!0};l.prototype.Fq=function(){return!0};l.prototype.sq=function(){return!0};l.prototype.yq=function(a){return a?this.b.eg(a,this.yd,this.zd,!1):!1};l.prototype.Gq=function(a){return a?this.b.eg(a,this.yd,this.zd,!1):!1};l.prototype.tq=function(a){return a?this.b.eg(a,this.yd,this.zd,!1):!1};a.j=new l;b.prototype.Nm=function(a,b){var c=this.vf;if(0>c||c>=this.touches.length)a.u(0);else{var d,
e,f,g,h;ga(b)?(d=this.b.Fd(0),e=d.scale,f=d.Gb,g=d.Ac,h=d.k,d.scale=1,d.Gb=1,d.Ac=1,d.k=0,a.u(d.ta(this.touches[c].x,this.touches[c].y,!0)),d.scale=e,d.Gb=f,d.Ac=g,d.k=h):(d=P(b)?this.b.Fd(b):this.b.Bg(b))?a.u(d.ta(this.touches[c].x,this.touches[c].y,!0)):a.u(0)}};b.prototype.Om=function(a,c){var b=this.vf;if(0>b||b>=this.touches.length)a.u(0);else{var d,e,f,g,h;ga(c)?(d=this.b.Fd(0),e=d.scale,f=d.Gb,g=d.Bc,h=d.k,d.scale=1,d.Gb=1,d.Bc=1,d.k=0,a.u(d.ta(this.touches[b].x,this.touches[b].y,!1)),d.scale=
e,d.Gb=f,d.Bc=g,d.k=h):(d=P(c)?this.b.Fd(c):this.b.Bg(c))?a.u(d.ta(this.touches[b].x,this.touches[b].y,!1)):a.u(0)}};a.bb=new b})();
function oc(k){this.b=k;var p=this;this.b.ga||(jQuery(document).mousemove(function(f){p.mh(f)}),jQuery(document).mousedown(function(f){p.lh(f)}),jQuery(document).mouseup(function(f){p.nh(f)}));k=0<this.b.nb?document:this.b.canvas;this.b.eb?k=window.Canvas:this.b.ic&&(k=window);window.navigator.pointerEnabled?(k.addEventListener("pointerdown",function(f){p.ph(f)},!1),k.addEventListener("pointermove",function(f){p.oh(f)},!1),k.addEventListener("pointerup",function(f){p.Od(f)},!1),k.addEventListener("pointercancel",
function(f){p.Od(f)},!1)):window.navigator.msPointerEnabled?(k.addEventListener("MSPointerDown",function(f){p.ph(f)},!1),k.addEventListener("MSPointerMove",function(f){p.oh(f)},!1),k.addEventListener("MSPointerUp",function(f){p.Od(f)},!1),k.addEventListener("MSPointerCancel",function(f){p.Od(f)},!1)):(k.addEventListener("touchstart",function(f){p.aj(f)},!1),k.addEventListener("touchmove",function(f){p.$i(f)},!1),k.addEventListener("touchend",function(f){p.Rf(f)},!1),k.addEventListener("touchcancel",
function(f){p.Rf(f)},!1))}
(function(){function k(b){var a,d;a=0;for(d=b.G.length;a<d;a++)if(b.G[a]instanceof f.na)return b.G[a];return null}function p(){}var f=oc.prototype,r={left:0,top:0};f.lh=function(b){1===b.which&&this.Gl("leftmouse",b.pageX,b.pageY)};f.mh=function(b){1===b.which&&this.Hl("leftmouse",b.pageX,b.pageY)};f.nh=function(b){1===b.which&&this.Il("leftmouse")};f.aj=function(b){b.preventDefault&&gb(b)&&b.preventDefault();var a,d,e,f;a=0;for(d=b.changedTouches.length;a<d;a++)e=b.changedTouches[a],f=e.identifier,
this.Gl(f?f.toString():"<none>",e.pageX,e.pageY)};f.$i=function(b){b.preventDefault&&b.preventDefault();var a,d,e,f;a=0;for(d=b.changedTouches.length;a<d;a++)e=b.changedTouches[a],f=e.identifier,this.Hl(f?f.toString():"<none>",e.pageX,e.pageY)};f.Rf=function(b){b.preventDefault&&gb(b)&&b.preventDefault();var a,d,e;a=0;for(d=b.changedTouches.length;a<d;a++)e=b.changedTouches[a],e=e.identifier,this.Il(e?e.toString():"<none>")};f.ph=function(b){b.pointerType!==b.MSPOINTER_TYPE_MOUSE&&"mouse"!==b.pointerType&&
(b.preventDefault&&gb(b)&&b.preventDefault(),this.Gl(b.pointerId.toString(),b.pageX,b.pageY))};f.oh=function(b){b.pointerType!==b.MSPOINTER_TYPE_MOUSE&&"mouse"!==b.pointerType&&(b.preventDefault&&b.preventDefault(),this.Hl(b.pointerId.toString(),b.pageX,b.pageY))};f.Od=function(b){b.pointerType!==b.MSPOINTER_TYPE_MOUSE&&"mouse"!==b.pointerType&&(b.preventDefault&&gb(b)&&b.preventDefault(),this.Il(b.pointerId.toString()))};f.Gl=function(b,a,d){var e=this.b.ga?r:jQuery(this.b.canvas).offset();a-=e.left;
d-=e.top;var f,c,l,p,e=this.Nf.Rc(),n,w,t,q=null;n=0;for(w=e.length;n<w;n++)if(t=e[n],f=k(t),f.enabled&&!f.Ke&&(f=t.e.ta(a,d,!0),c=t.e.ta(a,d,!1),t.Na(),t.Ob(f,c)))q?t.e.index>q.e.index?(q=t,l=f,p=c):t.e.index===q.e.index&&t.uc()>q.uc()&&(q=t,l=f,p=c):(q=t,l=f,p=c);q&&k(q).Ft(b,l,p)};f.Hl=function(b,a,d){var e=this.b.ga?r:jQuery(this.b.canvas).offset();a-=e.left;d-=e.top;var f,c=this.Nf.Rc(),l,p,n;l=0;for(p=c.length;l<p;l++)f=c[l],n=k(f),!n.enabled||!n.Ke||n.Ke&&n.wk!==b||(e=f.e.ta(a,d,!0),f=f.e.ta(a,
d,!1),n.Jt(e,f))};f.Il=function(b){var a=this.Nf.Rc(),d,e,f;d=0;for(e=a.length;d<e;d++)f=a[d],f=k(f),f.Ke&&f.wk===b&&f.Mt()};f.Ia=function(b){this.behavior=b;this.b=b.b};f.Ia.prototype.X=function(){};f.na=function(b,a){this.type=b;this.behavior=b.behavior;this.Ea=a;this.b=b.b};var l=f.na.prototype;l.X=function(){this.Ke=!1;this.tn=this.sn=0;this.wk="<none>";this.ck=this.aa[0];this.enabled=0!==this.aa[1]};l.rb=function(){return{enabled:this.enabled}};l.Tb=function(b){this.enabled=b.enabled;this.Ke=
!1};l.Ft=function(b,a,d){this.sn=a-this.Ea.x;this.tn=d-this.Ea.y;this.Ke=!0;this.wk=b;this.b.ka=!0;this.b.trigger(oc.prototype.j.uq,this.Ea);this.b.ka=!1};l.Jt=function(b,a){var d=b-this.sn,e=a-this.tn;if(0===this.ck){if(this.Ea.x!==d||this.Ea.y!==e)this.Ea.x=d,this.Ea.y=e,this.Ea.xa()}else 1===this.ck?this.Ea.x!==d&&(this.Ea.x=d,this.Ea.xa()):2===this.ck&&this.Ea.y!==e&&(this.Ea.y=e,this.Ea.xa())};l.Mt=function(){this.Ke=!1;this.b.ka=!0;this.b.trigger(oc.prototype.j.vq,this.Ea);this.b.ka=!1};l.Ma=
function(){};p.prototype.uq=function(){return!0};p.prototype.vq=function(){return!0};f.j=new p;f.ja=new function(){};f.bb=new function(){}})();function pc(k){this.b=k}
(function(){function k(){}function p(){}var f=pc.prototype;f.Ia=function(f){this.behavior=f;this.b=f.b};f.Ia.prototype.X=function(){};f.na=function(f,b){this.type=f;this.behavior=f.behavior;this.Ea=b;this.b=f.b};var r=f.na.prototype;r.X=function(){this.ze=this.hd=this.bg=this.Yi=this.bj=0};r.rb=function(){return{ontime:this.bj,offtime:this.Yi,stage:this.bg,stagetimeleft:this.hd,timeleft:this.ze}};r.Tb=function(f){this.bj=f.ontime;this.Yi=f.offtime;this.bg=f.stage;this.hd=f.stagetimeleft;this.ze=f.timeleft};
r.Ma=function(){if(!(0>=this.ze)){var f=this.b.ni(this.Ea);this.ze-=f;0>=this.ze?(this.ze=0,this.Ea.visible=!0,this.b.V=!0,this.b.trigger(pc.prototype.j.wq,this.Ea)):(this.hd-=f,0>=this.hd&&(0===this.bg?(this.Ea.visible=!1,this.bg=1,this.hd+=this.Yi):(this.Ea.visible=!0,this.bg=0,this.hd+=this.bj),this.b.V=!0))}};k.prototype.wq=function(){return!0};f.j=new k;p.prototype.Zp=function(f,b,a){this.bj=f;this.Yi=b;this.bg=1;this.hd=b;this.ze=a;this.Ea.visible=!1;this.b.V=!0};f.ja=new p;f.bb=new function(){}})();
function fc(){return[hc,ic,jc,kc,gc,lc,mc,Z,oc,pc,jc.prototype.j.dq,gc.prototype.ja.Lq,jc.prototype.j.Uj,Z.prototype.j.fq,X.prototype.ja.Nq,X.prototype.ja.jq,jc.prototype.j.bq,X.prototype.j.Wp,X.prototype.ja.$p,gc.prototype.j.gq,gc.prototype.ja.Mm,Z.prototype.j.Wj,lc.prototype.ja.Mm,pc.prototype.ja.Zp,X.prototype.j.Qq,X.prototype.ja.Rp,hc.prototype.ja.Play,X.prototype.ja.Rq,X.prototype.j.Yp,X.prototype.bb.fe,lc.prototype.ja.Mq,X.prototype.bb.floor,ic.prototype.j.Fm,X.prototype.j.Gm,X.prototype.ja.Iq,
X.prototype.ja.Jq,X.prototype.ja.Kq]};
