// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa,ba,ca,da,fa,ia,ja,I,ka,la,ma,na,qa,N,ra,sa,ta,ua,xa,ya,za,Aa,Ba,Da,Ea,R,Fa,Ga,Ha,Ia,V,Ka,La,Ma,Na,Oa,Pa,Qa,Ra,Sa,Ta,Ya,Za,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,rb,sb,tb,ub,vb,wb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,Xb,Yb,Zb,$b,ac,bc,cc,dc,ec,fc={},gc={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(d){return d.__proto__}:function(d){return d.constructor.prototype});
(function(){function d(f,n,a,b){this.set(f,n,a,b)}function q(){this.xb=this.wb=this.Ab=this.zb=this.Jb=this.Ib=this.ib=this.hb=0}function h(f,n,a,b){f<n?a<b?(C=f<a?f:a,A=n>b?n:b):(C=f<b?f:b,A=n>a?n:a):a<b?(C=n<a?n:a,A=f>b?f:b):(C=n<b?n:b,A=f>a?f:a)}function m(){this.items=this.Ed=null;this.Lh=0;f&&(this.Ed=new Set);this.Ug=[];this.ze=!0}function u(f){n[z++]=f}function c(){this.aa=this.Zk=this.y=this.Dl=0}function b(f){this.fb=[];this.Zi=this.aj=this.bj=this.$i=0;this.Bi(f)}function a(f,n){this.Gl=
f;this.Fl=n;this.cells={}}function e(f,n){this.Gl=f;this.Fl=n;this.cells={}}function k(f,n,a){var b;return L.length?(b=L.pop(),b.nm=f,b.x=n,b.y=a,b):new aa(f,n,a)}function g(f,n,a){this.nm=f;this.x=n;this.y=a;this.mb=new ba}function l(f,n,a){var b;return y.length?(b=y.pop(),b.nm=f,b.x=n,b.y=a,b):new ca(f,n,a)}function w(f,n,a){this.nm=f;this.x=n;this.y=a;this.mb=[];this.vg=!0;this.Bd=new ba;this.ah=!1}function v(f,n){return f.rd-n.rd}da=function(f){window.console&&window.console.log&&window.console.log(f)};
fa=function(f){window.console&&window.console.error&&window.console.error(f)};ia=function(f){return"undefined"===typeof f};ja=function(f){return"number"===typeof f};I=function(f){return"string"===typeof f};ka=function(f){return 0<f&&0===(f-1&f)};la=function(f){--f;for(var n=1;32>n;n<<=1)f=f|f>>n;return f+1};ma=function(f){return 0>f?-f:f};na=function(f,n){return f<n?f:n};qa=Math.PI;N=function(f){return 0<=f?f|0:(f|0)-1};ra=function(f){var n=f|0;return n===f?n:n+1};sa=function(f,n,a,b,c,g,z,p){var l,
e,v,t;f<a?(e=f,l=a):(e=a,l=f);c<z?(t=c,v=z):(t=z,v=c);if(l<t||e>v)return!1;n<b?(e=n,l=b):(e=b,l=n);g<p?(t=g,v=p):(t=p,v=g);if(l<t||e>v)return!1;l=c-f+z-a;e=g-n+p-b;f=a-f;n=b-n;c=z-c;g=p-g;p=ma(n*c-g*f);return ma(c*e-g*l)>p?!1:ma(f*e-n*l)<=p};d.prototype.set=function(f,n,a,b){this.left=f;this.top=n;this.right=a;this.bottom=b};d.prototype.lj=function(f){this.left=f.left;this.top=f.top;this.right=f.right;this.bottom=f.bottom};d.prototype.width=function(){return this.right-this.left};d.prototype.height=
function(){return this.bottom-this.top};d.prototype.offset=function(f,n){this.left+=f;this.top+=n;this.right+=f;this.bottom+=n;return this};d.prototype.normalize=function(){var f=0;this.left>this.right&&(f=this.left,this.left=this.right,this.right=f);this.top>this.bottom&&(f=this.top,this.top=this.bottom,this.bottom=f)};d.prototype.Fv=function(f){return!(f.right<this.left||f.bottom<this.top||f.left>this.right||f.top>this.bottom)};d.prototype.Gv=function(f,n,a){return!(f.right+n<this.left||f.bottom+
a<this.top||f.left+n>this.right||f.top+a>this.bottom)};d.prototype.Lb=function(f,n){return f>=this.left&&f<=this.right&&n>=this.top&&n<=this.bottom};d.prototype.vj=function(f){return this.left===f.left&&this.top===f.top&&this.right===f.right&&this.bottom===f.bottom};ta=d;q.prototype.Ng=function(f){this.hb=f.left;this.ib=f.top;this.Ib=f.right;this.Jb=f.top;this.zb=f.right;this.Ab=f.bottom;this.wb=f.left;this.xb=f.bottom};q.prototype.dr=function(f,n){if(0===n)this.Ng(f);else{var a=Math.sin(n),b=Math.cos(n),
c=f.left*a,g=f.top*a,z=f.right*a,a=f.bottom*a,p=f.left*b,l=f.top*b,e=f.right*b,b=f.bottom*b;this.hb=p-g;this.ib=l+c;this.Ib=e-g;this.Jb=l+z;this.zb=e-a;this.Ab=b+z;this.wb=p-a;this.xb=b+c}};q.prototype.offset=function(f,n){this.hb+=f;this.ib+=n;this.Ib+=f;this.Jb+=n;this.zb+=f;this.Ab+=n;this.wb+=f;this.xb+=n;return this};var C=0,A=0;q.prototype.Uo=function(f){h(this.hb,this.Ib,this.zb,this.wb);f.left=C;f.right=A;h(this.ib,this.Jb,this.Ab,this.xb);f.top=C;f.bottom=A};q.prototype.Lb=function(f,n){var a=
this.hb,b=this.ib,c=this.Ib-a,g=this.Jb-b,z=this.zb-a,p=this.Ab-b,l=f-a,e=n-b,v=c*c+g*g,t=c*z+g*p,g=c*l+g*e,r=z*z+p*p,L=z*l+p*e,y=1/(v*r-t*t),c=(r*g-t*L)*y,v=(v*L-t*g)*y;if(0<=c&&0<v&&1>c+v)return!0;c=this.wb-a;g=this.xb-b;v=c*c+g*g;t=c*z+g*p;g=c*l+g*e;y=1/(v*r-t*t);c=(r*g-t*L)*y;v=(v*L-t*g)*y;return 0<=c&&0<v&&1>c+v};q.prototype.xe=function(f,n){if(n)switch(f){case 0:return this.hb;case 1:return this.Ib;case 2:return this.zb;case 3:return this.wb;case 4:return this.hb;default:return this.hb}else switch(f){case 0:return this.ib;
case 1:return this.Jb;case 2:return this.Ab;case 3:return this.xb;case 4:return this.ib;default:return this.ib}};q.prototype.oq=function(){return(this.hb+this.Ib+this.zb+this.wb)/4};q.prototype.pq=function(){return(this.ib+this.Jb+this.Ab+this.xb)/4};q.prototype.Gp=function(f){var n=f.oq(),a=f.pq();if(this.Lb(n,a))return!0;n=this.oq();a=this.pq();if(f.Lb(n,a))return!0;var b,c,g,z,p,l,e,v;for(e=0;4>e;e++)for(v=0;4>v;v++)if(n=this.xe(e,!0),a=this.xe(e,!1),b=this.xe(e+1,!0),c=this.xe(e+1,!1),g=f.xe(v,
!0),z=f.xe(v,!1),p=f.xe(v+1,!0),l=f.xe(v+1,!1),sa(n,a,b,c,g,z,p,l))return!0;return!1};ua=q;xa=function(f,n,a){return Math.max(Math.min(f,255),0)|Math.max(Math.min(n,255),0)<<8|Math.max(Math.min(a,255),0)<<16};ya=function(f){return f&255};za=function(f){return(f&65280)>>8};Aa=function(f){return(f&16711680)>>16};Ba=function(f,n){for(var a in n)n.hasOwnProperty(a)&&(f[a]=n[a]);return f};Da=function(f,n){var a,b;n=N(n);if(!(0>n||n>=f.length)){a=n;for(b=f.length-1;a<b;a++)f[a]=f[a+1];Ea(f,b)}};Ea=function(f,
n){f.length=n};R=function(f){Ea(f,0)};Fa=function(f,n){R(f);var a,b;a=0;for(b=n.length;a<b;++a)f[a]=n[a]};Ga=function(f,n){f.push.apply(f,n)};Ha=function(f,n){var a,b;a=0;for(b=f.length;a<b;++a)if(f[a]===n)return a;return-1};Ia=function(f,n){var a=Ha(f,n);-1!==a&&Da(f,a)};V=function(f){return f/(180/qa)};Ka=function(f){return 180/qa*f};La=function(f){f%=360;0>f&&(f+=360);return f};Ma=function(f){f%=2*qa;0>f&&(f+=2*qa);return f};Na=function(f){return La(Ka(f))};Oa=function(f){return Ma(V(f))};Pa=function(f,
n,a,b){return Math.atan2(b-n,a-f)};Qa=function(f,n){if(f===n)return 0;var a=Math.sin(f),b=Math.cos(f),c=Math.sin(n),g=Math.cos(n),a=a*c+b*g;return 1<=a?0:-1>=a?qa:Math.acos(a)};Ra=function(f,n,a){var b=Math.sin(f),c=Math.cos(f),g=Math.sin(n),z=Math.cos(n);return Math.acos(b*g+c*z)>a?0<c*g-b*z?Ma(f+a):Ma(f-a):Ma(n)};Sa=function(f,n){var a=Math.sin(f),b=Math.cos(f),c=Math.sin(n),g=Math.cos(n);return 0>=b*c-a*g};Ta=function(f,n,a,b,c,g){if(0===a)return g?f:n;var z=Math.sin(a);a=Math.cos(a);f-=b;n-=c;
var p=f*z;f=f*a-n*z;n=n*a+p;return g?f+b:n+c};Ya=function(f,n,a,b){f=a-f;n=b-n;return Math.sqrt(f*f+n*n)};Za=function(f,n){return!f!==!n};$a=function(f){for(var n in f)if(f.hasOwnProperty(n))return!0;return!1};ab=function(f){for(var n in f)f.hasOwnProperty(n)&&delete f[n]};var x=+new Date;bb=function(){if("undefined"!==typeof window.performance){var f=window.performance;if("undefined"!==typeof f.now)return f.now();if("undefined"!==typeof f.webkitNow)return f.webkitNow();if("undefined"!==typeof f.mozNow)return f.mozNow();
if("undefined"!==typeof f.msNow)return f.msNow()}return Date.now()-x};var p=!1,t=p=!1,r=!1;"undefined"!==typeof window&&(p=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),p=!p&&/safari/i.test(navigator.userAgent),t=/(iphone|ipod|ipad)/i.test(navigator.userAgent),r=window.c2ejecta);var f=!p&&!r&&!t&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;m.prototype.contains=function(n){return this.ae()?!1:f?this.Ed.has(n):this.items&&this.items.hasOwnProperty(n)};
m.prototype.add=function(n){if(f)this.Ed.has(n)||(this.Ed.add(n),this.ze=!1);else{var a=n.toString(),b=this.items;b?b.hasOwnProperty(a)||(b[a]=n,this.Lh++,this.ze=!1):(this.items={},this.items[a]=n,this.Lh=1,this.ze=!1)}};m.prototype.remove=function(n){if(!this.ae())if(f)this.Ed.has(n)&&(this.Ed["delete"](n),this.ze=!1);else if(this.items){n=n.toString();var a=this.items;a.hasOwnProperty(n)&&(delete a[n],this.Lh--,this.ze=!1)}};m.prototype.clear=function(){this.ae()||(f?this.Ed.clear():(this.items=
null,this.Lh=0),R(this.Ug),this.ze=!0)};m.prototype.ae=function(){return 0===this.count()};m.prototype.count=function(){return f?this.Ed.size:this.Lh};var n=null,z=0;m.prototype.Uw=function(){if(!this.ze){if(f)R(this.Ug),n=this.Ug,z=0,this.Ed.forEach(u),n=null,z=0;else{var a=this.Ug;R(a);var b,c=0,g=this.items;if(g)for(b in g)g.hasOwnProperty(b)&&(a[c++]=g[b])}this.ze=!0}};m.prototype.pe=function(){this.Uw();return this.Ug};ba=m;new ba;cb=function(n,a){f?db(n,a.Ed):eb(n,a.pe())};db=function(f,n){var a,
b,c,g;b=a=0;for(c=f.length;a<c;++a)g=f[a],n.has(g)||(f[b++]=g);Ea(f,b)};eb=function(f,n){var a,b,c,g;b=a=0;for(c=f.length;a<c;++a)g=f[a],-1===Ha(n,g)&&(f[b++]=g);Ea(f,b)};c.prototype.add=function(f){this.y=f-this.Dl;this.Zk=this.aa+this.y;this.Dl=this.Zk-this.aa-this.y;this.aa=this.Zk};c.prototype.reset=function(){this.aa=this.Zk=this.y=this.Dl=0};fb=c;gb=function(f){return f.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};b.prototype.Bi=function(f){this.Uq=f;this.nd=f.length/2;this.fb.length=f.length;
this.fj=this.gj=-1;this.Xo=0};b.prototype.sg=function(){return!this.Uq.length};b.prototype.Ba=function(){for(var f=this.fb,n=f[0],a=n,b=f[1],c=b,g,z,p=1,l=this.nd;p<l;++p)z=2*p,g=f[z],z=f[z+1],g<n&&(n=g),g>a&&(a=g),z<b&&(b=z),z>c&&(c=z);this.$i=n;this.aj=a;this.bj=b;this.Zi=c};b.prototype.Ng=function(f,n,a){this.fb.length=8;this.nd=4;var b=this.fb;b[0]=f.left-n;b[1]=f.top-a;b[2]=f.right-n;b[3]=f.top-a;b[4]=f.right-n;b[5]=f.bottom-a;b[6]=f.left-n;b[7]=f.bottom-a;this.gj=f.right-f.left;this.fj=f.bottom-
f.top;this.Ba()};b.prototype.Mg=function(f,n,a,b,c){this.fb.length=8;this.nd=4;var g=this.fb;g[0]=f.hb-n;g[1]=f.ib-a;g[2]=f.Ib-n;g[3]=f.Jb-a;g[4]=f.zb-n;g[5]=f.Ab-a;g[6]=f.wb-n;g[7]=f.xb-a;this.gj=b;this.fj=c;this.Ba()};b.prototype.cr=function(f){this.nd=f.nd;Fa(this.fb,f.fb);this.$i=f.$i;this.bj-f.bj;this.aj=f.aj;this.Zi=f.Zi};b.prototype.Wf=function(f,n,a){if(this.gj!==f||this.fj!==n||this.Xo!==a){this.gj=f;this.fj=n;this.Xo=a;var b,c,g,z,p,l=0,e=1,v=this.Uq,t=this.fb;0!==a&&(l=Math.sin(a),e=Math.cos(a));
a=0;for(g=this.nd;a<g;a++)b=2*a,c=b+1,z=v[b]*f,p=v[c]*n,t[b]=z*e-p*l,t[c]=p*e+z*l;this.Ba()}};b.prototype.Lb=function(f,n){var a=this.fb;if(f===a[0]&&n===a[1])return!0;var b,c,g,z=this.nd,p=this.$i-110,l=this.bj-101,e=this.aj+131,v=this.Zi+120,t,r,L=0,y=0;for(b=0;b<z;b++)c=2*b,g=(b+1)%z*2,t=a[c],c=a[c+1],r=a[g],g=a[g+1],sa(p,l,f,n,t,c,r,g)&&L++,sa(e,v,f,n,t,c,r,g)&&y++;return 1===L%2||1===y%2};b.prototype.Ch=function(f,n,a){var b=f.fb,c=this.fb;if(this.Lb(b[0]+n,b[1]+a)||f.Lb(c[0]-n,c[1]-a))return!0;
var g,z,p,l,e,v,t,r,L,y,k,h;g=0;for(l=this.nd;g<l;g++)for(z=2*g,p=(g+1)%l*2,r=c[z],z=c[z+1],L=c[p],y=c[p+1],p=0,t=f.nd;p<t;p++)if(e=2*p,v=(p+1)%t*2,k=b[e]+n,e=b[e+1]+a,h=b[v]+n,v=b[v+1]+a,sa(r,z,L,y,k,e,h,v))return!0;return!1};hb=b;a.prototype.Ee=function(f,n,a){var b;b=this.cells[f];return b?(b=b[n])?b:a?(b=k(this,f,n),this.cells[f][n]=b):null:a?(b=k(this,f,n),this.cells[f]={},this.cells[f][n]=b):null};a.prototype.zc=function(f){return N(f/this.Gl)};a.prototype.Ac=function(f){return N(f/this.Fl)};
a.prototype.update=function(f,n,a){var b,c,g,z,p;if(n)for(b=n.left,c=n.right;b<=c;++b)for(g=n.top,z=n.bottom;g<=z;++g)if(!a||!a.Lb(b,g))if(p=this.Ee(b,g,!1))p.remove(f),p.ae()&&(p.mb.clear(),1E3>L.length&&L.push(p),this.cells[b][g]=null);if(a)for(b=a.left,c=a.right;b<=c;++b)for(g=a.top,z=a.bottom;g<=z;++g)n&&n.Lb(b,g)||this.Ee(b,g,!0).Cm(f)};a.prototype.Gk=function(f,n){var a,b,c,g,z,p;a=this.zc(f.left);c=this.Ac(f.top);b=this.zc(f.right);for(z=this.Ac(f.bottom);a<=b;++a)for(g=c;g<=z;++g)(p=this.Ee(a,
g,!1))&&p.dump(n)};ib=a;e.prototype.Ee=function(f,n,a){var b;b=this.cells[f];return b?(b=b[n])?b:a?(b=l(this,f,n),this.cells[f][n]=b):null:a?(b=l(this,f,n),this.cells[f]={},this.cells[f][n]=b):null};e.prototype.zc=function(f){return N(f/this.Gl)};e.prototype.Ac=function(f){return N(f/this.Fl)};e.prototype.update=function(f,n,a){var b,c,g,z,p;if(n)for(b=n.left,c=n.right;b<=c;++b)for(g=n.top,z=n.bottom;g<=z;++g)if(!a||!a.Lb(b,g))if(p=this.Ee(b,g,!1))p.remove(f),p.ae()&&(p.reset(),1E3>y.length&&y.push(p),
this.cells[b][g]=null);if(a)for(b=a.left,c=a.right;b<=c;++b)for(g=a.top,z=a.bottom;g<=z;++g)n&&n.Lb(b,g)||this.Ee(b,g,!0).Cm(f)};e.prototype.Gk=function(f,n,a,b,c){var g,z;f=this.zc(f);n=this.Ac(n);a=this.zc(a);for(g=this.Ac(b);f<=a;++f)for(b=n;b<=g;++b)(z=this.Ee(f,b,!1))&&z.dump(c)};e.prototype.Tv=function(f){var n,a,b,c,g;n=f.left;b=f.top;a=f.right;for(c=f.bottom;n<=a;++n)for(f=b;f<=c;++f)if(g=this.Ee(n,f,!1))g.vg=!1};jb=e;var L=[];g.prototype.ae=function(){return this.mb.ae()};g.prototype.Cm=
function(f){this.mb.add(f)};g.prototype.remove=function(f){this.mb.remove(f)};g.prototype.dump=function(f){Ga(f,this.mb.pe())};aa=g;var y=[];w.prototype.ae=function(){if(!this.mb.length)return!0;if(this.mb.length>this.Bd.count())return!1;this.Yl();return!0};w.prototype.Cm=function(f){this.Bd.contains(f)?(this.Bd.remove(f),this.Bd.ae()&&(this.ah=!1)):this.mb.length?(this.mb[this.mb.length-1].xd()>f.xd()&&(this.vg=!1),this.mb.push(f)):(this.mb.push(f),this.vg=!0)};w.prototype.remove=function(f){this.Bd.add(f);
this.ah=!0;30<=this.Bd.count()&&this.Yl()};w.prototype.Yl=function(){this.ah&&(this.Bd.count()===this.mb.length?this.reset():(cb(this.mb,this.Bd),this.Bd.clear(),this.ah=!1))};w.prototype.ku=function(){this.vg||(this.mb.sort(v),this.vg=!0)};w.prototype.reset=function(){R(this.mb);this.vg=!0;this.Bd.clear();this.ah=!1};w.prototype.dump=function(f){this.Yl();this.ku();this.mb.length&&f.push(this.mb)};ca=w;var F="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");
kb=function(f){return 0>=f||11<=f?"source-over":F[f-1]};lb=function(f,n,a){if(a)switch(f.Hb=a.ONE,f.Bb=a.ONE_MINUS_SRC_ALPHA,n){case 1:f.Hb=a.ONE;f.Bb=a.ONE;break;case 3:f.Hb=a.ONE;f.Bb=a.ZERO;break;case 4:f.Hb=a.ONE_MINUS_DST_ALPHA;f.Bb=a.ONE;break;case 5:f.Hb=a.DST_ALPHA;f.Bb=a.ZERO;break;case 6:f.Hb=a.ZERO;f.Bb=a.SRC_ALPHA;break;case 7:f.Hb=a.ONE_MINUS_DST_ALPHA;f.Bb=a.ZERO;break;case 8:f.Hb=a.ZERO;f.Bb=a.ONE_MINUS_SRC_ALPHA;break;case 9:f.Hb=a.DST_ALPHA;f.Bb=a.ONE_MINUS_SRC_ALPHA;break;case 10:f.Hb=
a.ONE_MINUS_DST_ALPHA,f.Bb=a.SRC_ALPHA}};mb=function(f){return Math.round(1E6*f)/1E6};nb=function(f,n){return"string"!==typeof f||"string"!==typeof n||f.length!==n.length?!1:f===n?!0:f.toLowerCase()===n.toLowerCase()};ob=function(f){f=f.target;return!f||f===document||f===window||document&&document.body&&f===document.body||nb(f.tagName,"canvas")?!0:!1}})();var hc="undefined"!==typeof Float32Array?Float32Array:Array;function ic(d){var q=new hc(3);d&&(q[0]=d[0],q[1]=d[1],q[2]=d[2]);return q}
function jc(d){var q=new hc(16);d&&(q[0]=d[0],q[1]=d[1],q[2]=d[2],q[3]=d[3],q[4]=d[4],q[5]=d[5],q[6]=d[6],q[7]=d[7],q[8]=d[8],q[9]=d[9],q[10]=d[10],q[11]=d[11],q[12]=d[12],q[13]=d[13],q[14]=d[14],q[15]=d[15]);return q}function kc(d,q){q[0]=d[0];q[1]=d[1];q[2]=d[2];q[3]=d[3];q[4]=d[4];q[5]=d[5];q[6]=d[6];q[7]=d[7];q[8]=d[8];q[9]=d[9];q[10]=d[10];q[11]=d[11];q[12]=d[12];q[13]=d[13];q[14]=d[14];q[15]=d[15]}
function lc(d,q){var h=q[0],m=q[1];q=q[2];d[0]*=h;d[1]*=h;d[2]*=h;d[3]*=h;d[4]*=m;d[5]*=m;d[6]*=m;d[7]*=m;d[8]*=q;d[9]*=q;d[10]*=q;d[11]*=q}
function mc(d,q,h,m){m||(m=jc());var u,c,b,a,e,k,g,l,w=d[0],v=d[1];d=d[2];c=h[0];b=h[1];u=h[2];h=q[1];k=q[2];w===q[0]&&v===h&&d===k?(d=m,d[0]=1,d[1]=0,d[2]=0,d[3]=0,d[4]=0,d[5]=1,d[6]=0,d[7]=0,d[8]=0,d[9]=0,d[10]=1,d[11]=0,d[12]=0,d[13]=0,d[14]=0,d[15]=1):(h=w-q[0],k=v-q[1],g=d-q[2],l=1/Math.sqrt(h*h+k*k+g*g),h*=l,k*=l,g*=l,q=b*g-u*k,u=u*h-c*g,c=c*k-b*h,(l=Math.sqrt(q*q+u*u+c*c))?(l=1/l,q*=l,u*=l,c*=l):c=u=q=0,b=k*c-g*u,a=g*q-h*c,e=h*u-k*q,(l=Math.sqrt(b*b+a*a+e*e))?(l=1/l,b*=l,a*=l,e*=l):e=a=b=0,
m[0]=q,m[1]=b,m[2]=h,m[3]=0,m[4]=u,m[5]=a,m[6]=k,m[7]=0,m[8]=c,m[9]=e,m[10]=g,m[11]=0,m[12]=-(q*w+u*v+c*d),m[13]=-(b*w+a*v+e*d),m[14]=-(h*w+k*v+g*d),m[15]=1)}
(function(){function d(c){this.Ge=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.Yo=ic([0,0,100]);this.Zp=ic([0,0,0]);this.Ir=ic([0,1,0]);this.vo=ic([1,1,1]);this.gp=!0;this.an=jc();this.Rc=jc();this.Rp=jc();this.Ml=jc();this.q=c;this.Cp()}function q(c,b,a){this.q=c;this.Ci=b;this.name=a;this.Qc=c.getAttribLocation(b,"aPos");this.Me=c.getAttribLocation(b,"aTex");this.Xp=c.getUniformLocation(b,"matP");this.ik=c.getUniformLocation(b,"matMV");this.Ag=
c.getUniformLocation(b,"opacity");this.Yp=c.getUniformLocation(b,"samplerFront");this.ai=c.getUniformLocation(b,"samplerBack");this.zf=c.getUniformLocation(b,"destStart");this.yf=c.getUniformLocation(b,"destEnd");this.Ym=c.getUniformLocation(b,"seconds");this.Xm=c.getUniformLocation(b,"pixelWidth");this.Wm=c.getUniformLocation(b,"pixelHeight");this.$h=c.getUniformLocation(b,"layerScale");this.Zh=c.getUniformLocation(b,"layerAngle");this.ci=c.getUniformLocation(b,"viewOrigin");this.bi=c.getUniformLocation(b,
"scrollPos");this.Av=!!(this.Xm||this.Wm||this.Ym||this.ai||this.zf||this.yf||this.$h||this.Zh||this.ci||this.bi);this.hq=this.iq=-999;this.kk=1;this.cq=this.bq=0;this.fq=this.aq=this.$p=1;this.kq=this.jq=this.mq=this.lq=this.dq=0;this.Om=[];this.gq=jc();this.Ag&&c.uniform1f(this.Ag,1);this.Yp&&c.uniform1i(this.Yp,0);this.ai&&c.uniform1i(this.ai,1);this.zf&&c.uniform2f(this.zf,0,0);this.yf&&c.uniform2f(this.yf,1,1);this.$h&&c.uniform1f(this.$h,1);this.Zh&&c.uniform1f(this.Zh,0);this.ci&&c.uniform2f(this.ci,
0,0);this.bi&&c.uniform2f(this.bi,0,0);this.of=!1}function h(c,b){this.type=c;this.A=b;this.q=b.q;this.Nc=this.Gc=this.Fq=0;this.ra=this.Yc=null;this.er=[]}d.prototype.Cp=function(){var c=this.q,b;this.Sp=1;this.uf=this.Ke=null;this.pj=1;c.clearColor(0,0,0,0);c.clear(c.COLOR_BUFFER_BIT);c.enable(c.BLEND);c.blendFunc(c.ONE,c.ONE_MINUS_SRC_ALPHA);c.disable(c.CULL_FACE);c.disable(c.DEPTH_TEST);this.Tp=c.ONE;this.Qp=c.ONE_MINUS_SRC_ALPHA;this.ml=new Float32Array(16E3);this.$k=new Float32Array(16E3);this.zn=
new Float32Array(32E3);this.yn=c.createBuffer();c.bindBuffer(c.ARRAY_BUFFER,this.yn);c.bufferData(c.ARRAY_BUFFER,this.zn.byteLength,c.DYNAMIC_DRAW);this.Qi=Array(4);this.Ji=Array(4);for(b=0;4>b;b++)this.Qi[b]=c.createBuffer(),c.bindBuffer(c.ARRAY_BUFFER,this.Qi[b]),c.bufferData(c.ARRAY_BUFFER,this.ml.byteLength,c.DYNAMIC_DRAW),this.Ji[b]=c.createBuffer(),c.bindBuffer(c.ARRAY_BUFFER,this.Ji[b]),c.bufferData(c.ARRAY_BUFFER,this.$k.byteLength,c.DYNAMIC_DRAW);this.Qd=0;this.Dv=c.createBuffer();c.bindBuffer(c.ELEMENT_ARRAY_BUFFER,
this.Dv);for(var a=new Uint16Array(12E3),e=b=0;12E3>b;)a[b++]=e,a[b++]=e+1,a[b++]=e+2,a[b++]=e,a[b++]=e+2,a[b++]=e+3,e+=4;c.bufferData(c.ELEMENT_ARRAY_BUFFER,a,c.STATIC_DRAW);this.Hg=this.Kd=0;this.gb=[];b=this.Ll({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.gb.push(b);b=this.Ll({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.gb.push(b);for(var k in nc)nc.hasOwnProperty(k)&&
this.gb.push(this.Ll(nc[k],"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}",k));c.activeTexture(c.TEXTURE0);c.bindTexture(c.TEXTURE_2D,null);this.Nd=[];this.vd=0;this.nc=this.Ub=!1;this.dp=this.Ph=-1;this.mh=null;this.Ou=c.createFramebuffer();this.Xq=null;this.Ye=ic([0,0,0]);c=c.getParameter(c.ALIASED_POINT_SIZE_RANGE);
this.Wv=c[0];this.bn=c[1];2048<this.bn&&(this.bn=2048);this.Gd(0)};q.prototype.ko=function(c){var b=this.gq;if(b[0]!==c[0]||b[1]!==c[1]||b[2]!==c[2]||b[3]!==c[3]||b[4]!==c[4]||b[5]!==c[5]||b[6]!==c[6]||b[7]!==c[7]||b[8]!==c[8]||b[9]!==c[9]||b[10]!==c[10]||b[11]!==c[11]||b[12]!==c[12]||b[13]!==c[13]||b[14]!==c[14]||b[15]!==c[15])kc(c,this.gq),this.q.uniformMatrix4fv(this.ik,!1,c)};d.prototype.Ll=function(c,b,a){var e=this.q,k=e.createShader(e.FRAGMENT_SHADER);e.shaderSource(k,c.src);e.compileShader(k);
if(!e.getShaderParameter(k,e.COMPILE_STATUS))return e.deleteShader(k),null;var g=e.createShader(e.VERTEX_SHADER);e.shaderSource(g,b);e.compileShader(g);if(!e.getShaderParameter(g,e.COMPILE_STATUS))return e.deleteShader(k),e.deleteShader(g),null;b=e.createProgram();e.attachShader(b,k);e.attachShader(b,g);e.linkProgram(b);if(!e.getProgramParameter(b,e.LINK_STATUS))return e.deleteShader(k),e.deleteShader(g),e.deleteProgram(b),null;e.useProgram(b);e.deleteShader(k);e.deleteShader(g);a=new q(e,b,a);a.Ul=
c.Ul||0;a.Vl=c.Vl||0;a.cp=!!c.cp;a.Ro=!!c.Ro;a.V=c.V||[];c=0;for(k=a.V.length;c<k;c++)a.V[c][1]=e.getUniformLocation(b,a.V[c][0]),a.Om.push(0),e.uniform1f(a.V[c][1],0);return a};d.prototype.km=function(c){var b,a;b=0;for(a=this.gb.length;b<a;b++)if(this.gb[b].name===c)return b;return-1};d.prototype.Tq=function(c,b,a){var e=this.Rc,k=this.an,g=[0,0,0,0,0,0,0,0];g[0]=e[0]*c+e[4]*b+e[12];g[1]=e[1]*c+e[5]*b+e[13];g[2]=e[2]*c+e[6]*b+e[14];g[3]=e[3]*c+e[7]*b+e[15];g[4]=k[0]*g[0]+k[4]*g[1]+k[8]*g[2]+k[12]*
g[3];g[5]=k[1]*g[0]+k[5]*g[1]+k[9]*g[2]+k[13]*g[3];g[6]=k[2]*g[0]+k[6]*g[1]+k[10]*g[2]+k[14]*g[3];g[7]=-g[2];0!==g[7]&&(g[7]=1/g[7],g[4]*=g[7],g[5]*=g[7],g[6]*=g[7],a[0]=(.5*g[4]+.5)*this.width,a[1]=(.5*g[5]+.5)*this.height)};d.prototype.Lg=function(c,b,a){if(this.width!==c||this.height!==b||a){this.Ud();this.width=c;this.height=b;this.q.viewport(0,0,c,b);b=c/b;var e=this.an,k;k=1*Math.tan(45*Math.PI/360);b*=k;c=-b;a=-k;e||(e=jc());var g=b-c,l=k-a;e[0]=2/g;e[1]=0;e[2]=0;e[3]=0;e[4]=0;e[5]=2/l;e[6]=
0;e[7]=0;e[8]=(b+c)/g;e[9]=(k+a)/l;e[10]=-1001/999;e[11]=-1;e[12]=0;e[13]=0;e[14]=-2E3/999;e[15]=0;mc(this.Yo,this.Zp,this.Ir,this.Rc);c=[0,0];b=[0,0];this.Tq(0,0,c);this.Tq(1,1,b);this.vo[0]=1/(b[0]-c[0]);this.vo[1]=-1/(b[1]-c[1]);c=0;for(b=this.gb.length;c<b;c++)a=this.gb[c],a.of=!1,a.Xp&&(this.q.useProgram(a.Ci),this.q.uniformMatrix4fv(a.Xp,!1,this.an));this.q.useProgram(this.gb[this.Ph].Ci);this.q.bindTexture(this.q.TEXTURE_2D,null);this.q.activeTexture(this.q.TEXTURE1);this.q.bindTexture(this.q.TEXTURE_2D,
null);this.q.activeTexture(this.q.TEXTURE0);this.uf=this.Ke=null}};d.prototype.Dd=function(){mc(this.Yo,this.Zp,this.Ir,this.Rc);lc(this.Rc,this.vo)};d.prototype.translate=function(c,b){if(0!==c||0!==b){this.Ye[0]=c;this.Ye[1]=b;this.Ye[2]=0;var a=this.Rc,e=this.Ye,k=e[0],g=e[1],e=e[2];a[12]=a[0]*k+a[4]*g+a[8]*e+a[12];a[13]=a[1]*k+a[5]*g+a[9]*e+a[13];a[14]=a[2]*k+a[6]*g+a[10]*e+a[14];a[15]=a[3]*k+a[7]*g+a[11]*e+a[15]}};d.prototype.scale=function(c,b){if(1!==c||1!==b)this.Ye[0]=c,this.Ye[1]=b,this.Ye[2]=
1,lc(this.Rc,this.Ye)};d.prototype.Jn=function(c){if(0!==c){var b=this.Rc,a,e=Math.sin(c);c=Math.cos(c);var k=b[0],g=b[1],l=b[2],h=b[3],v=b[4],C=b[5],d=b[6],q=b[7];a?b!==a&&(a[8]=b[8],a[9]=b[9],a[10]=b[10],a[11]=b[11],a[12]=b[12],a[13]=b[13],a[14]=b[14],a[15]=b[15]):a=b;a[0]=k*c+v*e;a[1]=g*c+C*e;a[2]=l*c+d*e;a[3]=h*c+q*e;a[4]=k*-e+v*c;a[5]=g*-e+C*c;a[6]=l*-e+d*c;a[7]=h*-e+q*c}};d.prototype.Jd=function(){for(var c=!1,b=0;16>b;b++)if(this.Rp[b]!==this.Rc[b]){c=!0;break}c&&(c=this.Tc(),c.type=5,c.ra?
kc(this.Rc,c.ra):c.ra=jc(this.Rc),kc(this.Rc,this.Rp),this.nc=this.Ub=!1)};h.prototype.$t=function(){this.q.bindTexture(this.q.TEXTURE_2D,this.Yc)};h.prototype.au=function(){var c=this.q;c.activeTexture(c.TEXTURE1);c.bindTexture(c.TEXTURE_2D,this.Yc);c.activeTexture(c.TEXTURE0)};h.prototype.Xt=function(){var c=this.Fq,b=this.A;b.pj=c;b=b.mh;b.Ag&&b.kk!==c&&(b.kk=c,this.q.uniform1f(b.Ag,c))};h.prototype.Ut=function(){this.q.drawElements(this.q.TRIANGLES,this.Nc,this.q.UNSIGNED_SHORT,2*this.Gc)};h.prototype.Wt=
function(){this.q.blendFunc(this.Gc,this.Nc)};h.prototype.cu=function(){var c,b,a,e=this.A.gb,k=this.A.dp;c=0;for(b=e.length;c<b;c++)a=e[c],c===k&&a.ik?(a.ko(this.ra),a.of=!0):a.of=!1;kc(this.ra,this.A.Ml)};h.prototype.Vt=function(){var c=this.q,b=this.A;this.Yc?(b.uf===this.Yc&&(c.activeTexture(c.TEXTURE1),c.bindTexture(c.TEXTURE_2D,null),b.uf=null,c.activeTexture(c.TEXTURE0)),c.bindFramebuffer(c.FRAMEBUFFER,b.Ou),c.framebufferTexture2D(c.FRAMEBUFFER,c.COLOR_ATTACHMENT0,c.TEXTURE_2D,this.Yc,0)):
(c.framebufferTexture2D(c.FRAMEBUFFER,c.COLOR_ATTACHMENT0,c.TEXTURE_2D,null,0),c.bindFramebuffer(c.FRAMEBUFFER,null))};h.prototype.St=function(){var c=this.q;0===this.Gc?(c.clearColor(this.ra[0],this.ra[1],this.ra[2],this.ra[3]),c.clear(c.COLOR_BUFFER_BIT)):(c.enable(c.SCISSOR_TEST),c.scissor(this.ra[0],this.ra[1],this.ra[2],this.ra[3]),c.clearColor(0,0,0,0),c.clear(this.q.COLOR_BUFFER_BIT),c.disable(c.SCISSOR_TEST))};h.prototype.Tt=function(){var c=this.q,b=this.A,a=b.gb[1];c.useProgram(a.Ci);!a.of&&
a.ik&&(a.ko(b.Ml),a.of=!0);c.enableVertexAttribArray(a.Qc);c.bindBuffer(c.ARRAY_BUFFER,b.yn);c.vertexAttribPointer(a.Qc,4,c.FLOAT,!1,0,0);c.drawArrays(c.POINTS,this.Gc/4,this.Nc);a=b.mh;c.useProgram(a.Ci);0<=a.Qc&&(c.enableVertexAttribArray(a.Qc),c.bindBuffer(c.ARRAY_BUFFER,b.Qi[b.Qd]),c.vertexAttribPointer(a.Qc,2,c.FLOAT,!1,0,0));0<=a.Me&&(c.enableVertexAttribArray(a.Me),c.bindBuffer(c.ARRAY_BUFFER,b.Ji[b.Qd]),c.vertexAttribPointer(a.Me,2,c.FLOAT,!1,0,0))};h.prototype.Yt=function(){var c=this.q,
b=this.A,a=b.gb[this.Gc];b.dp=this.Gc;b.mh=a;c.useProgram(a.Ci);!a.of&&a.ik&&(a.ko(b.Ml),a.of=!0);a.Ag&&a.kk!==b.pj&&(a.kk=b.pj,c.uniform1f(a.Ag,b.pj));0<=a.Qc&&(c.enableVertexAttribArray(a.Qc),c.bindBuffer(c.ARRAY_BUFFER,b.Qi[b.Qd]),c.vertexAttribPointer(a.Qc,2,c.FLOAT,!1,0,0));0<=a.Me&&(c.enableVertexAttribArray(a.Me),c.bindBuffer(c.ARRAY_BUFFER,b.Ji[b.Qd]),c.vertexAttribPointer(a.Me,2,c.FLOAT,!1,0,0))};h.prototype.Zt=function(){var c,b,a=this.A.mh,e=this.q;c=this.ra;a.ai&&this.A.uf!==this.Yc&&
(e.activeTexture(e.TEXTURE1),e.bindTexture(e.TEXTURE_2D,this.Yc),this.A.uf=this.Yc,e.activeTexture(e.TEXTURE0));var k=c[0];a.Xm&&k!==a.iq&&(a.iq=k,e.uniform1f(a.Xm,k));k=c[1];a.Wm&&k!==a.hq&&(a.hq=k,e.uniform1f(a.Wm,k));k=c[2];b=c[3];!a.zf||k===a.bq&&b===a.cq||(a.bq=k,a.cq=b,e.uniform2f(a.zf,k,b));k=c[4];b=c[5];!a.yf||k===a.$p&&b===a.aq||(a.$p=k,a.aq=k,e.uniform2f(a.yf,k,b));k=c[6];a.$h&&k!==a.fq&&(a.fq=k,e.uniform1f(a.$h,k));k=c[7];a.Zh&&k!==a.dq&&(a.dq=k,e.uniform1f(a.Zh,k));k=c[8];b=c[9];!a.ci||
k===a.lq&&b===a.mq||(a.lq=k,a.mq=b,e.uniform2f(a.ci,k,b));k=c[10];b=c[11];!a.bi||k===a.jq&&b===a.kq||(a.jq=k,a.kq=b,e.uniform2f(a.bi,k,b));a.Ym&&e.uniform1f(a.Ym,bb()/1E3);if(a.V.length)for(c=0,b=a.V.length;c<b;c++)k=this.er[c],k!==a.Om[c]&&(a.Om[c]=k,e.uniform1f(a.V[c][1],k))};d.prototype.Tc=function(){this.vd===this.Nd.length&&this.Nd.push(new h(0,this));return this.Nd[this.vd++]};d.prototype.Ud=function(){if(0!==this.vd&&!this.q.isContextLost()){var c=this.q;0<this.Hg&&(c.bindBuffer(c.ARRAY_BUFFER,
this.yn),c.bufferSubData(c.ARRAY_BUFFER,0,this.zn.subarray(0,this.Hg)),b&&0<=b.Qc&&"<point>"===b.name&&c.vertexAttribPointer(b.Qc,4,c.FLOAT,!1,0,0));if(0<this.Kd){var b=this.mh;c.bindBuffer(c.ARRAY_BUFFER,this.Qi[this.Qd]);c.bufferSubData(c.ARRAY_BUFFER,0,this.ml.subarray(0,this.Kd));b&&0<=b.Qc&&"<point>"!==b.name&&c.vertexAttribPointer(b.Qc,2,c.FLOAT,!1,0,0);c.bindBuffer(c.ARRAY_BUFFER,this.Ji[this.Qd]);c.bufferSubData(c.ARRAY_BUFFER,0,this.$k.subarray(0,this.Kd));b&&0<=b.Me&&"<point>"!==b.name&&
c.vertexAttribPointer(b.Me,2,c.FLOAT,!1,0,0)}for(var a,c=0,b=this.vd;c<b;c++)switch(a=this.Nd[c],a.type){case 1:a.Ut();break;case 2:a.$t();break;case 3:a.Xt();break;case 4:a.Wt();break;case 5:a.cu();break;case 6:a.Vt();break;case 7:a.St();break;case 8:a.Tt();break;case 9:a.Yt();break;case 10:a.Zt();break;case 11:a.au()}this.Hg=this.Kd=this.vd=0;this.nc=this.Ub=!1;this.Qd++;4<=this.Qd&&(this.Qd=0)}};d.prototype.Te=function(c){if(c!==this.Sp){var b=this.Tc();b.type=3;this.Sp=b.Fq=c;this.nc=this.Ub=
!1}};d.prototype.fc=function(c){if(c!==this.Ke){var b=this.Tc();b.type=2;this.Ke=b.Yc=c;this.nc=this.Ub=!1}};d.prototype.Se=function(c,b){if(c!==this.Tp||b!==this.Qp){var a=this.Tc();a.type=4;a.Gc=c;a.Nc=b;this.Tp=c;this.Qp=b;this.nc=this.Ub=!1}};d.prototype.Zq=function(){this.Se(this.q.ONE,this.q.ONE_MINUS_SRC_ALPHA)};d.prototype.si=function(c,b,a,e,k,g,l,h){15992<=this.Kd&&this.Ud();var v=this.Kd,d=this.ml,q=this.$k;if(this.Ub)this.Nd[this.vd-1].Nc+=6;else{var m=this.Tc();m.type=1;m.Gc=v/4*3;m.Nc=
6;this.Ub=!0;this.nc=!1}d[v]=c;q[v++]=0;d[v]=b;q[v++]=0;d[v]=a;q[v++]=1;d[v]=e;q[v++]=0;d[v]=k;q[v++]=1;d[v]=g;q[v++]=1;d[v]=l;q[v++]=0;d[v]=h;q[v++]=1;this.Kd=v};d.prototype.Cd=function(c,b,a,e,k,g,l,h,v){15992<=this.Kd&&this.Ud();var d=this.Kd,q=this.ml,m=this.$k;if(this.Ub)this.Nd[this.vd-1].Nc+=6;else{var p=this.Tc();p.type=1;p.Gc=d/4*3;p.Nc=6;this.Ub=!0;this.nc=!1}var p=v.left,t=v.top,r=v.right;v=v.bottom;q[d]=c;m[d++]=p;q[d]=b;m[d++]=t;q[d]=a;m[d++]=r;q[d]=e;m[d++]=t;q[d]=k;m[d++]=r;q[d]=g;
m[d++]=v;q[d]=l;m[d++]=p;q[d]=h;m[d++]=v;this.Kd=d};d.prototype.jw=function(c,b,a,e){7996<=this.Hg&&this.Ud();var k=this.Hg,g=this.zn;if(this.nc)this.Nd[this.vd-1].Nc++;else{var l=this.Tc();l.type=8;l.Gc=k;l.Nc=1;this.nc=!0;this.Ub=!1}g[k++]=c;g[k++]=b;g[k++]=a;g[k++]=e;this.Hg=k};d.prototype.Gd=function(c){if(this.Ph!==c){if(!this.gb[c]){if(0===this.Ph)return;c=0}var b=this.Tc();b.type=9;this.Ph=b.Gc=c;this.nc=this.Ub=!1}};d.prototype.pi=function(c){c=this.gb[c];return!(!c.zf&&!c.yf)};d.prototype.Bn=
function(c){c=this.gb[c];return!!(c.zf||c.yf||c.cp)};d.prototype.pw=function(c){c=this.gb[c];return 0!==c.Ul||0!==c.Vl};d.prototype.dv=function(c){return this.gb[c].Ul};d.prototype.gv=function(c){return this.gb[c].Vl};d.prototype.hv=function(c,b){return this.gb[c].V[b][2]};d.prototype.Dk=function(c){return this.gb[c].Ro};d.prototype.Kg=function(c,b,a,e,k,g,l,h,v,d,q,m,p,t){var r=this.gb[this.Ph],f,n;if(r.Av||t.length){f=this.Tc();f.type=10;f.ra?kc(this.Rc,f.ra):f.ra=jc();n=f.ra;n[0]=b;n[1]=a;n[2]=
e;n[3]=k;n[4]=g;n[5]=l;n[6]=h;n[7]=v;n[8]=d;n[9]=q;n[10]=m;n[11]=p;r.ai?f.Yc=c:f.Yc=null;if(t.length)for(a=f.er,a.length=t.length,c=0,b=t.length;c<b;c++)a[c]=t[c];this.nc=this.Ub=!1}};d.prototype.clear=function(c,b,a,e){var k=this.Tc();k.type=7;k.Gc=0;k.ra||(k.ra=jc());k.ra[0]=c;k.ra[1]=b;k.ra[2]=a;k.ra[3]=e;this.nc=this.Ub=!1};d.prototype.clearRect=function(c,b,a,e){if(!(0>a||0>e)){var k=this.Tc();k.type=7;k.Gc=1;k.ra||(k.ra=jc());k.ra[0]=c;k.ra[1]=b;k.ra[2]=a;k.ra[3]=e;this.nc=this.Ub=!1}};d.prototype.ow=
function(){this.Ud();this.q.flush()};var m=[],u={};d.prototype.Ht=function(){m.length=0;u={}};d.prototype.zg=function(c,b,a,e){b=!!b;a=!!a;var k=c.src+","+b+","+a+(b?",undefined":""),g=null;if("undefined"!==typeof c.src&&u.hasOwnProperty(k))return g=u[k],g.ej++,g;this.Ud();var l=this.q,h=ka(c.width)&&ka(c.height),g=l.createTexture();l.bindTexture(l.TEXTURE_2D,g);l.pixelStorei(l.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var v=l.RGBA,d=l.RGBA,q=l.UNSIGNED_BYTE;if(e&&!this.Ge)switch(e){case 1:d=v=l.RGB;break;
case 2:q=l.UNSIGNED_SHORT_4_4_4_4;break;case 3:q=l.UNSIGNED_SHORT_5_5_5_1;break;case 4:d=v=l.RGB,q=l.UNSIGNED_SHORT_5_6_5}if(!h&&b){e=document.createElement("canvas");e.width=la(c.width);e.height=la(c.height);var x=e.getContext("2d");x.webkitImageSmoothingEnabled=a;x.mozImageSmoothingEnabled=a;x.msImageSmoothingEnabled=a;x.imageSmoothingEnabled=a;x.drawImage(c,0,0,c.width,c.height,0,0,e.width,e.height);l.texImage2D(l.TEXTURE_2D,0,v,d,q,e)}else l.texImage2D(l.TEXTURE_2D,0,v,d,q,c);b?(l.texParameteri(l.TEXTURE_2D,
l.TEXTURE_WRAP_S,l.REPEAT),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_T,l.REPEAT)):(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_S,l.CLAMP_TO_EDGE),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_T,l.CLAMP_TO_EDGE));a?(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MAG_FILTER,l.LINEAR),h&&this.gp?(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MIN_FILTER,l.LINEAR_MIPMAP_LINEAR),l.generateMipmap(l.TEXTURE_2D)):l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MIN_FILTER,l.LINEAR)):(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MAG_FILTER,
l.NEAREST),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MIN_FILTER,l.NEAREST));l.bindTexture(l.TEXTURE_2D,null);this.Ke=null;g.gh=c.width;g.fh=c.height;g.ej=1;g.Wo=k;m.push(g);return u[k]=g};d.prototype.Pd=function(c,b,a,e){this.Ud();var k=this.q;this.Ge&&(e=!1);var g=k.createTexture();k.bindTexture(k.TEXTURE_2D,g);k.texImage2D(k.TEXTURE_2D,0,k.RGBA,c,b,0,k.RGBA,e?k.UNSIGNED_SHORT_4_4_4_4:k.UNSIGNED_BYTE,null);k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_S,k.CLAMP_TO_EDGE);k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_T,
k.CLAMP_TO_EDGE);k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MAG_FILTER,a?k.LINEAR:k.NEAREST);k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MIN_FILTER,a?k.LINEAR:k.NEAREST);k.bindTexture(k.TEXTURE_2D,null);this.Ke=null;g.gh=c;g.fh=b;m.push(g);return g};d.prototype.Zw=function(c,b,a){this.Ud();var e=this.q;this.Ge&&(a=!1);e.bindTexture(e.TEXTURE_2D,b);e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);try{e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,a?e.UNSIGNED_SHORT_4_4_4_4:e.UNSIGNED_BYTE,c)}catch(k){console&&
console.error&&console.error("Error updating WebGL texture: ",k)}e.bindTexture(e.TEXTURE_2D,null);this.Ke=null};d.prototype.deleteTexture=function(c){c&&("undefined"!==typeof c.ej&&1<c.ej?c.ej--:(this.Ud(),c===this.Ke&&(this.q.bindTexture(this.q.TEXTURE_2D,null),this.Ke=null),c===this.uf&&(this.q.activeTexture(this.q.TEXTURE1),this.q.bindTexture(this.q.TEXTURE_2D,null),this.q.activeTexture(this.q.TEXTURE0),this.uf=null),Ia(m,c),"undefined"!==typeof c.Wo&&delete u[c.Wo],this.q.deleteTexture(c)))};
d.prototype.Fd=function(c){if(c!==this.Xq){var b=this.Tc();b.type=6;this.Xq=b.Yc=c;this.nc=this.Ub=!1}};pb=d})();
(function(){function d(){return"undefined"!==typeof jQuery?jQuery(window).width():window.innerWidth}function q(){return"undefined"!==typeof jQuery?jQuery(window).height():window.innerHeight}function h(f){if(f&&(f.getContext||f.dc)&&!f.c2runtime){f.c2runtime=this;var n=this;this.Pc=(this.Eh=/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=!!f.dc;this.ng="undefined"!==typeof window.AppMobi||this.Eb;this.Oc=!!window.c2cocoonjs;this.gd=!!window.c2ejecta;this.Oc&&(CocoonJS.App.onSuspended.addEventListener(function(){n.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){n.setSuspended(!1)}));this.gd&&(document.addEventListener("pagehide",function(){n.setSuspended(!0)}),document.addEventListener("pageshow",
function(){n.setSuspended(!1)}),document.addEventListener("resize",function(){n.setSize(window.innerWidth,window.innerHeight)}));this.Ea=this.Eb||this.Oc||this.gd;this.Ge=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent)||/edge\//i.test(navigator.userAgent);this.Kp=/tizen/i.test(navigator.userAgent);this.Rj=/android/i.test(navigator.userAgent)&&!this.Kp&&!this.Ge;this.Mm=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&
!this.Ge;this.Op=/ipad/i.test(navigator.userAgent);this.Jh=this.Mm||this.Op||this.gd;this.Ov=this.Mm&&/os\s6/i.test(navigator.userAgent);this.Dh=(/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent))&&!this.Ge;this.Fm=/amazonwebappplatform/i.test(navigator.userAgent);this.Iv=/firefox/i.test(navigator.userAgent);this.Jp=/safari/i.test(navigator.userAgent)&&!this.Dh&&!this.Ge;this.Lv=/windows/i.test(navigator.userAgent);this.He="undefined"!==typeof window.c2nodewebkit||"undefined"!==
typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.Mp=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.Nv=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.rg=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.Km=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.Lp=this.Mp||this.Nv||this.Km;this.Hv=!("undefined"===typeof window.c2isBlackberry10||
!window.c2isBlackberry10);this.Sj=this.Rj&&!this.Dh&&!this.Eh&&!this.Iv&&!this.Fm&&!this.Ea;this.devicePixelRatio=1;this.be=this.Pc||this.Eh||this.ng||this.Oc||this.Rj||this.Jh||this.rg||this.Km||this.Hv||this.Kp||this.gd;this.be||(this.be=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));"undefined"===typeof cr_is_preview||this.He||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||
(this.He=!0);this.canvas=f;this.Zo=document.getElementById("c2canvasdiv");this.pa=this.A=this.q=null;this.cm="";this.Aj=!1;this.yq=this.zq=0;this.canvas.oncontextmenu=function(f){f.preventDefault&&f.preventDefault();return!1};this.canvas.onselectstart=function(f){f.preventDefault&&f.preventDefault();return!1};this.Eb&&(window.c2runtime=this);this.He&&(window.ondragover=function(f){f.preventDefault();return!1},window.ondrop=function(f){f.preventDefault();return!1},require("nw.gui").App.clearCache());
this.Sj&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=f.width;this.height=f.height;this.T=this.width;this.S=this.height;this.nj=this.width;this.mj=this.height;this.Rh=window.innerWidth;this.Qh=window.innerHeight;this.Qu=!1;this.Y=!0;this.Gh=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.u=[];this.Ta=[];this.Sm={};this.kd=[];this.Tl={};this.Vd=[];this.Wg=[];this.hl=[];this.ut=[];this.xt=[];this.Pp=this.mr=null;
this.ef={};this.Gm=this.Fe=!1;this.hd=0;this.Im=!1;this.ed=[];this.de=this.Fb=this.dk=this.Nn="";this.Gi=this.ir=!1;this.Jl=this.di=this.Ce=this.gf=0;this.Of=1;this.qc=new fb;this.qe=new fb;this.pk=this.Fj=this.ph=this.pd=this.wf=this.$l=this.Yj=0;this.ih=null;this.tj=[];this.Sl=[];this.wj=-1;this.Zm=[[]];this.eo=this.jk=0;this.Fk(null);this.tq=this.hi=0;this.Rm=!0;this.rh=0;this.Hi=[];this.ao=this.En=-1;this.Kh=!0;this.hk=0;this.Fh=!1;this.Nw=0;this.Vf=null;this.sb=this.Oj=!1;this.xq=new ba;this.kn=
new ba;this.ln=new ba;this.wi=[];this.od=new hb([]);this.$n=new hb([]);this.Uf=[];this.jg={};this.Xf={};this.Tf={};this.Vg={};this.To={};this.Wp=this.bk=this.tc=this.Fc=this.Vp=this.ak=this.ya=null;this.Tg=this.Lm=!1;this.em=[null,null];this.kf=0;this.Xl="";this.ge={};this.Ei=this.xf=null;this.kr="";this.ok=[];this.vw()}}function m(f){f.target.result.createObjectStore("saves",{keyPath:"slot"})}function u(f,n,a,b){var c=indexedDB.open("_C2SaveStates");c.onupgradeneeded=m;c.onerror=b;c.onsuccess=function(c){c=
c.target.result;c.onerror=b;c.transaction(["saves"],"readwrite").objectStore("saves").put({slot:f,data:n}).onsuccess=a}}function c(f,n,a){var b=indexedDB.open("_C2SaveStates");b.onupgradeneeded=m;b.onerror=a;b.onsuccess=function(b){b=b.target.result;b.onerror=a;var c=b.transaction(["saves"]).objectStore("saves").get(f);c.onsuccess=function(){c.result?n(c.result.data):n(null)}}}function b(){da("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?
window.location.reload(!0):window.location=window.location+"?continuous"}function a(f){var n,a={};for(n in f)!f.hasOwnProperty(n)||f[n]instanceof ba||f[n]&&"undefined"!==typeof f[n].fy||(a[n]=f[n]);return a}h.prototype.vw=function(){var f=this,n;this.rg?n=new ActiveXObject("Microsoft.XMLHTTP"):n=new XMLHttpRequest;var a="data.js";if(this.Mp||this.rg||this.Km)a="data.json";n.open("GET",a,!0);var b=!1;if(!this.Ea&&"response"in n&&"responseType"in n)try{n.responseType="json",b="json"===n.responseType}catch(c){b=
!1}if(!b&&"responseType"in n)try{n.responseType="text"}catch(g){}if("overrideMimeType"in n)try{n.overrideMimeType("application/json; charset=utf-8")}catch(p){}this.rg?n.onreadystatechange=function(){4===n.readyState&&f.fk(JSON.parse(n.responseText))}:(n.onload=function(){if(b)f.fk(n.response);else if(f.gd){var a=n.responseText,a=a.substr(a.indexOf("{"));f.fk(JSON.parse(a))}else f.fk(JSON.parse(n.responseText))},n.onerror=function(f){fa("Error requesting "+a+":");fa(f)});n.send()};h.prototype.Ev=function(){var f=
this,n,a,b,c,g,p,l,e,v;this.Ie=(!this.Ea||this.gd)&&this.Ww&&!this.Sj;0===this.Mb&&this.Jh&&(this.Ie=!1);this.devicePixelRatio=this.Ie?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.ub();a=!(!this.Qu&&(!this.yl||this.He||this.Lp||this.rg||this.Eh||this.Pc||this.Fm));0<this.Mb&&this.setSize(d(),q(),!0);try{this.iu&&(this.Oc||this.gd||!this.Ea)&&(n={alpha:a,depth:!1,antialias:!1,failIfMajorPerformanceCaveat:!0},this.q=this.canvas.getContext("webgl",
n)||this.canvas.getContext("experimental-webgl",n))}catch(t){}if(this.q){this.q.getExtension("WEBGL_debug_renderer_info");this.Ea||(this.ob=document.createElement("canvas"),jQuery(this.ob).appendTo(this.canvas.parentNode),this.ob.oncontextmenu=function(){return!1},this.ob.onselectstart=function(){return!1},this.ob.width=this.nj,this.ob.height=this.mj,jQuery(this.ob).css({width:this.nj+"px",height:this.mj+"px"}),this.Rq(),this.xn=this.ob.getContext("2d"));this.A=new pb(this.q,this.be);this.A.Lg(this.canvas.width,
this.canvas.height);this.A.gp=0!==this.du;this.pa=null;this.canvas.addEventListener("webglcontextlost",function(n){n.preventDefault();f.$v();da("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){f.A.Cp();f.A.Lg(f.A.width,f.A.height,!0);f.Fc=null;f.tc=null;f.em[0]=null;f.em[1]=null;f.aw();f.Y=!0;da("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);n=0;for(a=this.u.length;n<a;n++)for(g=this.u[n],b=
0,c=g.M.length;b<c;b++)l=g.M[b],l.tb=this.A.km(l.id),this.Tg=this.Tg||this.A.pi(l.tb);n=0;for(a=this.kd.length;n<a;n++){e=this.kd[n];b=0;for(c=e.M.length;b<c;b++)l=e.M[b],l.tb=this.A.km(l.id);b=0;for(c=e.U.length;b<c;b++)for(v=e.U[b],g=0,p=v.M.length;g<p;g++)l=v.M[g],l.tb=this.A.km(l.id),this.Tg=this.Tg||this.A.pi(l.tb)}}else{if(0<this.Mb&&this.Eb){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.pa=AppMobi.canvas.getContext("2d");try{this.pa.samplingMode=
this.da?"smooth":"sharp",this.pa.globalScale=1,this.pa.HTML5CompatibilityMode=!0,this.pa.imageSmoothingEnabled=this.da}catch(r){}0!==this.width&&0!==this.height&&(this.pa.width=this.width,this.pa.height=this.height)}this.pa||(this.Oc?(n={antialias:!!this.da,alpha:a},this.pa=this.canvas.getContext("2d",n)):(n={alpha:a},this.pa=this.canvas.getContext("2d",n)),this.pa.webkitImageSmoothingEnabled=this.da,this.pa.mozImageSmoothingEnabled=this.da,this.pa.msImageSmoothingEnabled=this.da,this.pa.imageSmoothingEnabled=
this.da);this.xn=this.ob=null}this.ur=function(n){f.Ja(!1,n)};window==window.top||this.Ea||this.Lp||this.rg||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.Oc&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(da("Reloading for continuous preview"),this.dk="__c2_continuouspreview",this.Gi=!0),this.hw&&
!this.be&&(jQuery(window).focus(function(){f.setSuspended(!1)}),jQuery(window).blur(function(){f.setSuspended(!0)})));this.Ea||(n=function(f){if(ob(f)&&document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(n){}},window.navigator.pointerEnabled?document.addEventListener("pointerdown",n):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",n):document.addEventListener("touchstart",
n),document.addEventListener("mousedown",n));0===this.Mb&&this.Ie&&1<this.devicePixelRatio&&this.setSize(this.eb,this.cb,!0);this.Er();this.xv();this.go();this.I={}};h.prototype.setSize=function(f,n,a){var b=0,c=0,g=0,p=0,p=0,l=this.Ov&&this.Jp&&!navigator.standalone&&!this.Ea&&!this.Pc;l&&(n+=60);if(this.Rh!==f||this.Qh!==n||a){this.Rh=f;this.Qh=n;var e=this.Mb,v=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.Fh)&&!this.Pc;if(v||0!==
this.Mb||a)v&&0<this.kf&&(e=this.kf),a=this.devicePixelRatio,4<=e?(g=this.eb/this.cb,f/n>g?(g*=n,5===e?(p=g*a/this.eb,1<p?p=Math.floor(p):1>p&&(p=1/Math.ceil(1/p)),g=this.eb*p/a,p=this.cb*p/a,b=(f-g)/2,c=(n-p)/2,f=g,n=p):(b=(f-g)/2,f=g)):(p=f/g,5===e?(p=p*a/this.cb,1<p?p=Math.floor(p):1>p&&(p=1/Math.ceil(1/p)),g=this.eb*p/a,p=this.cb*p/a,b=(f-g)/2,c=(n-p)/2,f=g):c=(n-p)/2,n=p),v&&!this.He&&(c=b=0)):this.He&&this.Fh&&0===this.mp&&(b=Math.floor((f-this.eb)/2),c=Math.floor((n-this.cb)/2),f=this.eb,n=
this.cb),2>e&&(this.dh=a),this.Ie&&this.Op&&1<a&&(1024<=f&&(f=1023),1024<=n&&(n=1023)),this.nj=Math.round(f),this.mj=Math.round(n),this.width=Math.round(f*a),this.height=Math.round(n*a),this.Y=!0,this.Qr?(this.T=this.width,this.S=this.height,this.Mc=!0):this.width<this.eb&&this.height<this.cb||1===e?(this.T=this.width,this.S=this.height,this.Mc=!0):(this.T=this.eb,this.S=this.cb,this.Mc=!1,2===e?(g=this.eb/this.cb,e=this.Rh/this.Qh,e<g?this.T=this.S*e:e>g&&(this.S=this.T/e)):3===e&&(g=this.eb/this.cb,
e=this.Rh/this.Qh,e>g?this.T=this.S*e:e<g&&(this.S=this.T/e))),this.Zo&&!this.Ea&&(jQuery(this.Zo).css({width:Math.round(f)+"px",height:Math.round(n)+"px","margin-left":Math.floor(b)+"px","margin-top":Math.floor(c)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(f)+"px",height:Math.round(n)+"px"})),this.canvas&&(this.canvas.width=Math.round(f*a),this.canvas.height=Math.round(n*a),this.gd?(this.canvas.style.left=Math.floor(b)+"px",this.canvas.style.top=Math.floor(c)+
"px",this.canvas.style.width=Math.round(f)+"px",this.canvas.style.height=Math.round(n)+"px"):this.Ie&&!this.Ea&&(this.canvas.style.width=Math.round(f)+"px",this.canvas.style.height=Math.round(n)+"px")),this.ob&&(this.ob.width=Math.round(f),this.ob.height=Math.round(n),this.ob.style.width=Math.round(f)+"px",this.ob.style.height=Math.round(n)+"px"),this.A&&this.A.Lg(Math.round(f*a),Math.round(n*a)),this.Eb&&this.pa&&(this.pa.width=Math.round(f),this.pa.height=Math.round(n)),this.pa&&(this.pa.webkitImageSmoothingEnabled=
this.da,this.pa.mozImageSmoothingEnabled=this.da,this.pa.msImageSmoothingEnabled=this.da,this.pa.imageSmoothingEnabled=this.da),this.Er(),this.Ea||!l&&!this.Mm||window.setTimeout(function(){window.scrollTo(0,1)},100)}};h.prototype.Er=function(){if(this.zt&&0!==this.vn){var f="portrait";2===this.vn&&(f="landscape");screen.orientation&&screen.orientation.lock?screen.orientation.lock(f):screen.lockOrientation?screen.lockOrientation(f):screen.webkitLockOrientation?screen.webkitLockOrientation(f):screen.mozLockOrientation?
screen.mozLockOrientation(f):screen.msLockOrientation&&screen.msLockOrientation(f)}};h.prototype.$v=function(){this.A.Ht();this.Lm=!0;var f,n,a;f=0;for(n=this.u.length;f<n;f++)a=this.u[f],a.ji&&a.ji()};h.prototype.aw=function(){this.Lm=!1;var f,a,b;f=0;for(a=this.u.length;f<a;f++)b=this.u[f],b.rk&&b.rk()};h.prototype.Rq=function(){if(!this.Ea){var f=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.Fh)&&!this.Pc?jQuery(this.canvas).offset():
jQuery(this.canvas).position();f.position="absolute";jQuery(this.ob).css(f)}};var e=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;h.prototype.setSuspended=function(f){var a;if(f&&!this.Gh)for(da("[Construct 2] Suspending"),this.Gh=!0,-1!==this.En&&e&&e(this.En),-1!==this.ao&&clearTimeout(this.ao),f=0,a=this.Hi.length;f<a;f++)this.Hi[f](!0);else if(!f&&this.Gh){da("[Construct 2] Resuming");
this.Gh=!1;this.Yj=bb();this.wf=bb();f=this.di=this.Fj=0;for(a=this.Hi.length;f<a;f++)this.Hi[f](!1);this.Ja(!1)}};h.prototype.qt=function(f){this.Hi.push(f)};h.prototype.ue=function(f){return this.ok[f]};h.prototype.fk=function(f){f&&f.project||fa("Project model unavailable");f=f.project;this.name=f[0];this.lp=f[1];this.Mb=f[12];this.mp=f[12];this.eb=f[10];this.cb=f[11];this.Mq=this.eb/2;this.Nq=this.cb/2;this.Ea&&!this.gd&&(4<=f[12]||0===f[12])&&(da("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),
this.mp=this.Mb=3);this.po=f[18];this.Yh=f[19];0===this.Yh&&(this.xf=new Image,this.xf.crossOrigin="anonymous",this.xf.src="loading-logo.png");this.hi=f[21];this.ok=oc();this.Hd=new X(this);var a,b,c,g,p,l,e,v,t;a=0;for(b=f[2].length;a<b;a++)e=f[2][a],c=this.ue(e[0]),qb(e,c.prototype),t=new c(this),t.Rk=e[1],t.Je=e[2],t.rq=e[9],t.P&&t.P(),this.plugins.push(t);this.ok=oc();a=0;for(b=f[3].length;a<b;a++){e=f[3][a];p=this.ue(e[1]);t=null;c=0;for(g=this.plugins.length;c<g;c++)if(this.plugins[c]instanceof
p){t=this.plugins[c];break}var r=new t.ua(t);r.name=e[0];r.G=e[2];r.Dm=e[3].slice(0);r.Yw=e[3].length;r.At=e[4];r.Su=e[5];r.Z=e[11];r.G?(r.Cg=[],r.Wd=this.rh++,r.Ha=null):(r.Cg=null,r.Wd=-1,r.Ha=[]);r.yj=null;r.dg=null;r.hp=null;r.oc=!1;r.jc=null;e[6]?(r.al=e[6][0],r.bl=e[6][1],r.Ki=e[6][2]):(r.al=null,r.bl=0,r.Ki=0);e[7]?r.Rb=e[7]:r.Rb=null;r.index=a;r.e=[];r.rj=[];r.Ve=[new rb(r)];r.Td=0;r.Kc=null;r.Ot=0;r.Qg=!0;r.jl=sb;r.Wu=tb;r.bv=ub;r.ea=vb;r.ri=wb;r.Ek=yb;r.Gf=zb;r.Ij=Ab;r.fm=Bb;r.hm=Cb;r.cd=
Db;r.sp=Eb;r.ij=new ib(this.eb,this.cb);r.Xi=!0;r.Yi=!1;r.I={};r.toString=Fb;r.Ta=[];c=0;for(g=e[8].length;c<g;c++){v=e[8][c];var k=this.ue(v[1]),h=null;p=0;for(l=this.Ta.length;p<l;p++)if(this.Ta[p]instanceof k){h=this.Ta[p];break}h||(h=new k(this),h.nk=[],h.mk=new ba,h.P&&h.P(),this.Ta.push(h),pc&&h instanceof pc&&(this.mr=h),gc.Qv&&h instanceof gc.Qv&&(this.Pp=h));-1===h.nk.indexOf(r)&&h.nk.push(r);p=new h.ua(h,r);p.name=v[0];p.Z=v[2];p.P();r.Ta.push(p)}r.global=e[9];r.Hm=e[10];r.M=[];c=0;for(g=
e[12].length;c<g;c++)r.M.push({id:e[12][c][0],name:e[12][c][1],tb:-1,Ka:!0,index:c});r.qy=e[13];this.po&&!r.G&&!r.Hm&&t.Je||r.P();r.name&&(this.types[r.name]=r);this.u.push(r);t.Rk&&(c=new t.ja(r),c.uid=this.hi++,c.Vq=this.tq++,c.pf=0,c.xh=Gb,c.toString=Hb,c.B=e[14],c.P(),r.e.push(c),this.ge[c.uid.toString()]=c)}a=0;for(b=f[4].length;a<b;a++)for(p=f[4][a],l=this.u[p[0]],c=1,g=p.length;c<g;c++)e=this.u[p[c]],e.Ha.push(l),l.Cg.push(e);a=0;for(b=f[27].length;a<b;a++){p=f[27][a];l=[];c=0;for(g=p.length;c<
g;c++)l.push(this.u[p[c]]);c=0;for(g=l.length;c<g;c++)l[c].oc=!0,l[c].jc=l}if(0<this.rh)for(a=0,b=this.u.length;a<b;a++)if(e=this.u[a],!e.G&&e.Ha.length){e.yj=Array(this.rh);e.dg=Array(this.rh);e.hp=Array(this.rh);r=[];c=h=k=v=0;for(g=e.Ha.length;c<g;c++)for(t=e.Ha[c],e.yj[t.Wd]=v,v+=t.Yw,e.dg[t.Wd]=k,k+=t.At,e.hp[t.Wd]=h,h+=t.Su,p=0,l=t.M.length;p<l;p++)r.push(Ba({},t.M[p]));e.M=r.concat(e.M);c=0;for(g=e.M.length;c<g;c++)e.M[c].index=c}a=0;for(b=f[5].length;a<b;a++)e=f[5][a],c=new Ib(this,e),this.Sm[c.name]=
c,this.kd.push(c);a=0;for(b=f[6].length;a<b;a++)e=f[6][a],c=new Jb(this,e),this.Tl[c.name]=c,this.Vd.push(c);a=0;for(b=this.Vd.length;a<b;a++)this.Vd[a].Sa();a=0;for(b=this.Vd.length;a<b;a++)this.Vd[a].ho();a=0;for(b=this.hl.length;a<b;a++)this.hl[a].Sa();this.hl.length=0;this.yt=f[7];this.Xl=f[8];this.Sc=f[9];this.dh=1;this.iu=f[13];this.da=f[14];this.yl=f[15];this.Ww=f[17];this.vn=f[20];this.zt=0<this.vn;this.hw=f[22];this.Mc=this.Qr=f[23];this.du=f[24];this.mw=f[25];this.Wk=Date.now();this.ok.length=
0;this.Ev()};var k=!1;h.prototype.ro=function(f,a){f.cocoonLazyLoad=!0;f.onerror=function(a){k=f.Vo=!0;console&&console.error&&console.error("Error loading image '"+f.src+"': ",a)};this.gd?f.src=a:f.src||("undefined"!==typeof XAPKReader?XAPKReader.get(a,function(a){f.src=a},function(b){k=f.Vo=!0;console&&console.error&&console.error("Error extracting image '"+a+"' from expansion file: ",b)}):(f.crossOrigin="anonymous",f.src=a));this.Wg.push(f)};h.prototype.Pu=function(f){var a,b;a=0;for(b=this.Wg.length;a<
b;a++)if(this.Wg[a].It===f)return this.Wg[a];return null};var g=0,l=!1;h.prototype.xv=function(){this.Vf&&(g=this.Vf.Jw(this.yt))};h.prototype.So=function(){var f=g,a=0,b=0,c=!0,p,e,b=0;for(p=this.Wg.length;b<p;b++){e=this.Wg[b];var r=e.Kl;if(!r||0>=r)r=5E4;f+=r;e.src&&(e.complete||e.loaded)&&!e.Vo?a+=r:c=!1}c&&this.mw&&this.Vf&&(l||(this.Vf.Ow(),l=!0),b=this.Vf.cv(),a+=b,b<g&&(c=!1));this.Hf=0==f?0:a/f;return c};h.prototype.go=function(){if(this.pa||this.A){var f=this.pa||this.xn;this.ob&&this.Rq();
this.Hf=0;this.Up=-1;if(this.So())this.yv();else{var a=Date.now()-this.Wk;if(f){var b=this.width,c=this.height,g=this.devicePixelRatio;this.ob&&(b=this.nj,c=this.mj,g=1);if(3!==this.Yh&&(this.Oc||500<=a&&this.Up!=this.Hf)){f.clearRect(0,0,b,c);var a=b/2,c=c/2,b=0===this.Yh&&this.xf.complete,p=40*g,e=0,l=80*g,r;b&&(l=this.xf.width*g,r=this.xf.height*g,p=l/2,e=r/2,f.drawImage(this.xf,N(a-p),N(c-e),l,r));1>=this.Yh?(a=N(a-p)+.5,c=N(c+(e+(b?12*g:0)))+.5,f.fillStyle=k?"red":"DodgerBlue",f.fillRect(a,c,
Math.floor(l*this.Hf),6*g),f.strokeStyle="black",f.strokeRect(a,c,l,6*g),f.strokeStyle="white",f.strokeRect(a-1*g,c-1*g,l+2*g,8*g)):2===this.Yh&&(f.font=this.gd?"12pt ArialMT":"12pt Arial",f.fillStyle=k?"#f00":"#999",f.oy="middle",g=Math.round(100*this.Hf)+"%",b=f.measureText?f.measureText(g):null,f.fillText(g,a-(b?b.width:0)/2,c))}this.Up=this.Hf}setTimeout(function(f){return function(){f.go()}}(this),this.Oc?10:100)}}};h.prototype.yv=function(){this.ob&&(this.canvas.parentNode.removeChild(this.ob),
this.ob=this.xn=null);this.Wk=Date.now();this.wf=bb();var f,a,b;if(this.po)for(f=0,a=this.u.length;f<a;f++)b=this.u[f],b.G||b.Hm||!b.xa.Je||b.P();else this.Kh=!1;f=0;for(a=this.kd.length;f<a;f++)this.kd[f].Jt();2<=this.Mb&&(f=this.eb/this.cb,a=this.width/this.height,this.dh=2!==this.Mb&&a>f||2===this.Mb&&a<f?this.height/this.cb:this.width/this.eb);this.lp?this.Sm[this.lp].Yn():this.kd[0].Yn();this.po||(this.hk=1,this.trigger(X.prototype.j.Co,null));navigator.splashscreen&&navigator.splashscreen.hide&&
navigator.splashscreen.hide();f=0;for(a=this.u.length;f<a;f++)b=this.u[f],b.Zv&&b.Zv();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.Ja(!1);this.Eb&&AppMobi.webview.execute("onGameReady();")};var w=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;h.prototype.Ja=function(f,a,b){if(this.ya){var c=bb();if(b||!this.Gh||f){f||(w?
this.En=w(this.ur):this.ao=setTimeout(this.ur,this.be?1:16));a=a||c;var g=this.Mb;((b=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.Pc)||this.Fh)&&0<this.kf&&(g=this.kf);0<g&&(!this.Jh||window.self!==window.top)&&(g=window.innerHeight,this.Rh===window.innerWidth&&this.Qh===g||this.setSize(d(),q()));this.Ea||(b?(this.Aj||(this.cm=jQuery(this.canvas).css("margin")||"0",this.Aj=!0),this.Dh||this.He||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.Aj?(this.Dh||this.He||jQuery(this.canvas).css("margin",this.cm),this.cm="",this.Aj=!1,0===this.Mb&&this.setSize(Math.round(this.zq/this.devicePixelRatio),Math.round(this.yq/this.devicePixelRatio),!0)):(this.zq=this.width,this.yq=this.height));this.Kh&&(b=this.So(),this.hk=this.Hf,b&&(this.Kh=!1,this.Hf=1,this.trigger(X.prototype.j.Co,null)));
this.Sv(a);!this.Y&&!this.Oc||this.Lm||this.Gi||f||(this.Y=!1,this.A?this.Cb():this.lc(),this.Ei&&(this.canvas&&this.canvas.toDataURL&&(this.kr=this.canvas.toDataURL(this.Ei[0],this.Ei[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.kr),this.trigger(X.prototype.j.us,null)),this.Ei=null));this.jy||(this.pd++,this.ph++,this.Fj++);this.di+=bb()-c}}};h.prototype.Sv=function(f){var a,b,c,g,p,e,l,r;1E3<=f-this.wf&&(this.wf+=1E3,1E3<=f-this.wf&&(this.wf=f),this.$l=this.Fj,this.Fj=0,this.Jl=this.di,this.di=
0);0!==this.Yj&&(a=f-this.Yj,0>a&&(a=0),this.Ce=a/1E3,.5<this.Ce?this.Ce=0:.1<this.Ce&&(this.Ce=.1));this.Yj=f;this.gf=this.Ce*this.Of;this.qc.add(this.gf);this.qe.add(this.Ce);f=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.Fh)&&!this.Pc;2<=this.Mb||f&&0<this.kf?(a=this.eb/this.cb,b=this.width/this.height,c=this.Mb,f&&0<this.kf&&(c=this.kf),this.dh=2!==c&&b>a||2===c&&b<a?this.height/this.cb:this.width/this.eb,this.ya&&(this.ya.On(this.ya.scrollX),
this.ya.Pn(this.ya.scrollY))):this.dh=this.Ie?this.devicePixelRatio:1;this.ub();this.hd++;this.Hd.Aw();this.hd--;this.ub();this.hd++;b=this.xq.pe();f=0;for(a=b.length;f<a;f++)b[f].ly();f=0;for(a=this.u.length;f<a;f++)if(e=this.u[f],!e.G&&(e.Ta.length||e.Ha.length))for(b=0,c=e.e.length;b<c;b++)for(l=e.e[b],g=0,p=l.N.length;g<p;g++)l.N[g].Ja();f=0;for(a=this.u.length;f<a;f++)if(e=this.u[f],!e.G&&(e.Ta.length||e.Ha.length))for(b=0,c=e.e.length;b<c;b++)for(l=e.e[b],g=0,p=l.N.length;g<p;g++)r=l.N[g],r.Sq&&
r.Sq();b=this.kn.pe();f=0;for(a=b.length;f<a;f++)b[f].Ja();this.hd--;this.zv();for(f=0;this.ih&&10>f++;)this.fp(this.ih);f=0;for(a=this.Vd.length;f<a;f++)this.Vd[f].rm=!1;this.ya.hf&&this.ya.hf.Ya();this.wi.length=0;this.Rm=!1;this.hd++;f=0;for(a=this.u.length;f<a;f++)if(e=this.u[f],!e.G&&(e.Ta.length||e.Ha.length))for(b=0,c=e.e.length;b<c;b++)for(l=e.e[b],g=0,p=l.N.length;g<p;g++)r=l.N[g],r.dl&&r.dl();b=this.ln.pe();f=0;for(a=b.length;f<a;f++)b[f].dl();this.hd--};h.prototype.fp=function(f){var a=
this.ya;this.ya.Pw();var b,c,g,p,e,l,r;if(this.A)for(b=0,c=this.u.length;b<c;b++)e=this.u[b],e.G||!e.il||e.global&&0!==e.e.length||-1!==f.Bh.indexOf(e)||e.il();a==f&&(this.Hd.hc.length=0);this.wi.length=0;f.Yn();b=0;for(c=this.u.length;b<c;b++)if(e=this.u[b],e.global||e.xa.Rk)for(f=0,a=e.e.length;f<a;f++)if(l=e.e[f],l.pn&&l.pn(),l.N)for(g=0,p=l.N.length;g<p;g++)r=l.N[g],r.pn&&r.pn();this.Rm=this.Y=!0;this.ub()};h.prototype.Li=function(f){this.kn.add(f)};h.prototype.Qw=function(f){this.ln.add(f)};
h.prototype.gg=function(f){return f&&-1!==f.gi?this.Ce*f.gi:this.gf};h.prototype.lc=function(){this.ya.lc(this.pa);this.Eb&&this.pa.present()};h.prototype.Cb=function(){this.ya.Cb(this.A);this.A.ow()};h.prototype.wl=function(f){f&&this.tj.push(f)};h.prototype.uw=function(f){Ia(this.tj,f)};h.prototype.hg=function(f){f=f.toString();return this.ge.hasOwnProperty(f)?this.ge[f]:null};var v=[];h.prototype.Ld=function(f){var a,b;a=f.type.name;var c=null;if(this.ef.hasOwnProperty(a)){if(c=this.ef[a],c.contains(f))return}else c=
v.length?v.pop():new ba,this.ef[a]=c;c.add(f);this.Fe=!0;if(f.oc)for(a=0,b=f.siblings.length;a<b;a++)this.Ld(f.siblings[a]);this.Gm&&c.Ug.push(f);this.hd++;this.trigger(Object.getPrototypeOf(f.type.xa).j.ws,f);this.hd--};h.prototype.ub=function(){if(this.Fe){var f,a,b,c,g,p;this.Gm=!0;b=0;for(g=this.ed.length;b<g;++b)for(f=this.ed[b],a=f.type,a.e.push(f),c=0,p=a.Ha.length;c<p;++c)a.Ha[c].e.push(f),a.Ha[c].Qg=!0;this.ed.length=0;this.ls();ab(this.ef);this.Fe=this.Gm=!1}};h.prototype.ls=function(){for(var f in this.ef)this.ef.hasOwnProperty(f)&&
this.Ur(this.ef[f])};h.prototype.Ur=function(f){var a=f.pe(),b=a[0].type,c,g,p,e,l,r;cb(b.e,f);b.Qg=!0;0===b.e.length&&(b.Yi=!1);c=0;for(g=b.Ha.length;c<g;++c)r=b.Ha[c],cb(r.e,f),r.Qg=!0;c=0;for(g=this.Hd.hc.length;c<g;++c)if(l=this.Hd.hc[c],l.Qb.hasOwnProperty(b.index)&&cb(l.Qb[b.index].$d,f),!b.G)for(p=0,e=b.Ha.length;p<e;++p)r=b.Ha[p],l.Qb.hasOwnProperty(r.index)&&cb(l.Qb[r.index].$d,f);if(l=a[0].k){if(l.qd)for(p=l.e,c=0,g=p.length;c<g;++c)e=p[c],f.contains(e)&&(e.Ba(),l.wc.update(e,e.cc,null),
e.cc.set(0,0,-1,-1));cb(l.e,f);l.Ai(0)}for(c=0;c<a.length;++c)this.Tr(a[c],b);f.clear();v.push(f);this.Y=!0};h.prototype.Tr=function(f,a){var b,c,g;b=0;for(c=this.tj.length;b<c;++b)this.tj[b](f);f.Ae&&a.ij.update(f,f.Ae,null);(b=f.k)&&b.Ig(f,!0);if(f.N)for(b=0,c=f.N.length;b<c;++b)g=f.N[b],g.Ef&&g.Ef(),g.behavior.mk.remove(f);this.xq.remove(f);this.kn.remove(f);this.ln.remove(f);f.Ef&&f.Ef();this.ge.hasOwnProperty(f.uid.toString())&&delete this.ge[f.uid.toString()];this.pk--;100>a.rj.length&&a.rj.push(f)};
h.prototype.bp=function(f,a,b,c){if(f.G){var g=N(Math.random()*f.Cg.length);return this.bp(f.Cg[g],a,b,c)}return f.Kc?this.Be(f.Kc,a,!1,b,c,!1):null};var C=[];h.prototype.Be=function(f,a,b,c,g,p){var e,l,r,v;if(!f)return null;var t=this.u[f[1]],h=t.xa.Je;if(this.Kh&&h&&!t.Hm||h&&!this.A&&11===f[0][11])return null;var k=a;h||(a=null);var d;t.rj.length?(d=t.rj.pop(),d.ac=!0,t.xa.ja.call(d,t)):(d=new t.xa.ja(t),d.ac=!1);!b||p||this.ge.hasOwnProperty(f[2].toString())?d.uid=this.hi++:d.uid=f[2];this.ge[d.uid.toString()]=
d;d.Vq=this.tq++;d.pf=t.e.length;e=0;for(l=this.ed.length;e<l;++e)this.ed[e].type===t&&d.pf++;d.xh=Gb;d.toString=Hb;r=f[3];if(d.ac)ab(d.I);else{d.I={};if("undefined"!==typeof cr_is_preview)for(d.Fp=[],d.Fp.length=r.length,e=0,l=r.length;e<l;e++)d.Fp[e]=r[e][1];d.ab=[];d.ab.length=r.length}e=0;for(l=r.length;e<l;e++)d.ab[e]=r[e][0];if(h){var w=f[0];d.x=ia(c)?w[0]:c;d.y=ia(g)?w[1]:g;d.z=w[2];d.width=w[3];d.height=w[4];d.depth=w[5];d.m=w[6];d.opacity=w[7];d.Vb=w[8];d.Wb=w[9];d.Sb=w[10];e=w[11];!this.A&&
t.M.length&&(d.Sb=e);d.jh=kb(d.Sb);this.q&&lb(d,d.Sb,this.q);if(d.ac){e=0;for(l=w[12].length;e<l;e++)for(r=0,v=w[12][e].length;r<v;r++)d.Ma[e][r]=w[12][e][r];d.Da.set(0,0,0,0);d.Ae.set(0,0,-1,-1);d.cc.set(0,0,-1,-1);d.yb.Ng(d.Da);d.Bl.length=0}else{d.Ma=w[12].slice(0);e=0;for(l=d.Ma.length;e<l;e++)d.Ma[e]=w[12][e].slice(0);d.ka=[];d.ve=[];d.ve.length=t.M.length;d.Da=new ta(0,0,0,0);d.Ae=new ta(0,0,-1,-1);d.cc=new ta(0,0,-1,-1);d.yb=new ua;d.Bl=[];d.D=Kb;d.tt=Lb;d.Lb=Mb;d.Ba=Nb;d.Vw=Ob;d.oo=Pb;d.xd=
Qb}d.Mi=!1;d.Tw=0;d.Sw=0;d.Rw=null;14===w.length&&(d.Mi=!0,d.Tw=w[13][0],d.Sw=w[13][1],d.Rw=w[13][2]);e=0;for(l=t.M.length;e<l;e++)d.ve[e]=!0;d.oe=Rb;d.oe();d.Or=!!d.ka.length;d.cj=!0;d.El=!0;t.Xi=!0;d.visible=!0;d.gi=-1;d.k=a;d.rd=a.e.length;"undefined"===typeof d.na&&(d.na=null);this.Y=d.Od=!0}var q;e=C.length=0;for(l=t.Ha.length;e<l;e++)C.push.apply(C,t.Ha[e].Ta);C.push.apply(C,t.Ta);if(d.ac)for(e=0,l=C.length;e<l;e++){var m=C[e];q=d.N[e];q.ac=!0;m.behavior.ja.call(q,m,d);w=f[4][e];r=0;for(v=w.length;r<
v;r++)q.B[r]=w[r];q.P();m.behavior.mk.add(d)}else for(d.N=[],e=0,l=C.length;e<l;e++)m=C[e],q=new m.behavior.ja(m,d),q.ac=!1,q.B=f[4][e].slice(0),q.P(),d.N.push(q),m.behavior.mk.add(d);w=f[5];if(d.ac)for(e=0,l=w.length;e<l;e++)d.B[e]=w[e];else d.B=w.slice(0);this.ed.push(d);this.Fe=!0;a&&(a.bh(d,!0),1!==a.Zb||1!==a.$b)&&(t.Yi=!0);this.pk++;if(t.oc){if(d.oc=!0,d.ac?d.siblings.length=0:d.siblings=[],!b&&!p){e=0;for(l=t.jc.length;e<l;e++)if(t.jc[e]!==t){if(!t.jc[e].Kc)return null;d.siblings.push(this.Be(t.jc[e].Kc,
k,!1,h?d.x:c,h?d.y:g,!0))}e=0;for(l=d.siblings.length;e<l;e++)for(d.siblings[e].siblings.push(d),r=0;r<l;r++)e!==r&&d.siblings[e].siblings.push(d.siblings[r])}}else d.oc=!1,d.siblings=null;d.P();e=0;for(l=d.N.length;e<l;e++)d.N[e].lw&&d.N[e].lw();return d};h.prototype.uh=function(f){var a,b;a=0;for(b=this.ya.U.length;a<b;a++){var c=this.ya.U[a];if(nb(c.name,f))return c}return null};h.prototype.Zd=function(f){f=N(f);0>f&&(f=0);f>=this.ya.U.length&&(f=this.ya.U.length-1);return this.ya.U[f]};h.prototype.Il=
function(f){var a,b;a=0;for(b=f.length;a<b;a++)f[a].ea().ta=!0};h.prototype.ri=function(f){var a,b;a=0;for(b=f.length;a<b;a++)f[a].ri()};h.prototype.Ek=function(f){var a,b;a=0;for(b=f.length;a<b;a++)f[a].Ek()};h.prototype.Gf=function(f){var a,b;a=0;for(b=f.length;a<b;a++)f[a].Gf()};h.prototype.Kr=function(f){if(f.Xi){var a,b,c=f.e;a=0;for(b=c.length;a<b;++a)c[a].oo();c=this.ed;a=0;for(b=c.length;a<b;++a)c[a].type===f&&c[a].oo();f.Xi=!1}};h.prototype.pp=function(f,a,b,c){var g,p,e=f?1!==f.Zb||1!==
f.$b:!1;if(a.G)for(f=0,g=a.Cg.length;f<g;++f)p=a.Cg[f],e||p.Yi?Ga(c,p.e):(this.Kr(p),p.ij.Gk(b,c));else e||a.Yi?Ga(c,a.e):(this.Kr(a),a.ij.Gk(b,c))};h.prototype.xp=function(f,a,b,c){var g,p;g=0;for(p=a.length;g<p;++g)this.pp(f,a[g],b,c)};h.prototype.jv=function(f,a,b){var c=this.mr;c&&this.xp(f,c.nk,a,b)};h.prototype.$u=function(f,a,b){var c=this.Pp;c&&this.xp(f,c.nk,a,b)};h.prototype.Ii=function(f,a,b){var c=f.ea(),g,p,e,l,r,t;if(c.ta)for(c.ta=!1,g=c.e.length=0,l=f.e.length;g<l;g++)e=f.e[g],e.Ba(),
r=e.k.qb(a,b,!0),t=e.k.qb(a,b,!1),e.Lb(r,t)&&c.e.push(e);else{g=p=0;for(l=c.e.length;g<l;g++)e=c.e[g],e.Ba(),r=e.k.qb(a,b,!0),t=e.k.qb(a,b,!1),e.Lb(r,t)&&(c.e[p]=c.e[g],p++);c.e.length=p}f.cd();return c.qm()};h.prototype.Xc=function(f,a){if(!(f&&a&&f!==a&&f.Od&&a.Od))return!1;f.Ba();a.Ba();var b=f.k,c=a.k,g,p,e,l,r,t,v,d;if(b===c||b.Zb===c.Zb&&c.$b===c.$b&&b.scale===c.scale&&b.m===c.m&&b.Kb===c.Kb){if(!f.Da.Fv(a.Da)||!f.yb.Gp(a.yb)||f.Mi&&a.Mi)return!1;if(f.Mi)return this.qr(f,a);if(a.Mi)return this.qr(a,
f);v=f.na&&!f.na.sg();g=a.na&&!a.na.sg();if(!v&&!g)return!0;v?(f.na.Wf(f.width,f.height,f.m),v=f.na):(this.od.Mg(f.yb,f.x,f.y,f.width,f.height),v=this.od);g?(a.na.Wf(a.width,a.height,a.m),d=a.na):(this.od.Mg(a.yb,a.x,a.y,a.width,a.height),d=this.od);return v.Ch(d,a.x-f.x,a.y-f.y)}v=f.na&&!f.na.sg();g=a.na&&!a.na.sg();v?(f.na.Wf(f.width,f.height,f.m),this.od.cr(f.na)):this.od.Mg(f.yb,f.x,f.y,f.width,f.height);v=this.od;g?(a.na.Wf(a.width,a.height,a.m),this.$n.cr(a.na)):this.$n.Mg(a.yb,a.x,a.y,a.width,
a.height);d=this.$n;g=0;for(p=v.nd;g<p;g++)e=2*g,l=e+1,r=v.fb[e],t=v.fb[l],v.fb[e]=b.Ia(r+f.x,t+f.y,!0),v.fb[l]=b.Ia(r+f.x,t+f.y,!1);v.Ba();g=0;for(p=d.nd;g<p;g++)e=2*g,l=e+1,r=d.fb[e],t=d.fb[l],d.fb[e]=c.Ia(r+a.x,t+a.y,!0),d.fb[l]=c.Ia(r+a.x,t+a.y,!1);d.Ba();return v.Ch(d,0,0)};var A=new ua;new ta(0,0,0,0);var x=[];h.prototype.qr=function(f,a){var b,c,g,p,e=a.Da,l=f.x,r=f.y;f.hy(e,x);var t=a.na&&!a.na.sg();b=0;for(c=x.length;b<c;++b)if(g=x[b],p=g.my,e.Gv(p,l,r)&&(A.Ng(p),A.offset(l,r),A.Gp(a.yb)))if(t)if(a.na.Wf(a.width,
a.height,a.m),g.An){if(g.An.Ch(a.na,a.x-(l+p.left),a.y-(r+p.top)))return x.length=0,!0}else{if(this.od.Mg(A,0,0,p.right-p.left,p.bottom-p.top),this.od.Ch(a.na,a.x,a.y))return x.length=0,!0}else if(g.An){if(this.od.Mg(a.yb,0,0,a.width,a.height),g.An.Ch(this.od,-(l+p.left),-(r+p.top)))return x.length=0,!0}else return x.length=0,!0;x.length=0;return!1};h.prototype.Fr=function(f,a){if(!a)return!1;var b,c,g,p,e;b=0;for(c=f.Ta.length;b<c;b++)if(f.Ta[b].behavior instanceof a)return!0;if(!f.G)for(b=0,c=f.Ha.length;b<
c;b++)for(e=f.Ha[b],g=0,p=e.Ta.length;g<p;g++)if(e.Ta[g].behavior instanceof a)return!0;return!1};h.prototype.Gr=function(f){return this.Fr(f,gc.Dx)};h.prototype.fo=function(f){return this.Fr(f,gc.Ex)};var p=[];h.prototype.gc=function(f){var a,b,c;f.Ba();this.jv(f.k,f.Da,p);a=0;for(b=p.length;a<b;++a)if(c=p[a],c.I.solidEnabled&&this.Xc(f,c))return p.length=0,c;p.length=0;return null};var t=[];h.prototype.Xe=function(f,a){var b=null;a&&(b=t,b.length=0);f.Ba();this.$u(f.k,f.Da,p);var c,g,e;c=0;for(g=
p.length;c<g;++c)if(e=p[c],e.I.jumpthruEnabled&&this.Xc(f,e))if(a)b.push(e);else return p.length=0,e;p.length=0;return b};h.prototype.Uc=function(f,a,b,c,g,p){c=c||50;var e=f.x,l=f.y,r,t=null,v=null;for(r=0;r<c;r++)if(f.x=e+a*r,f.y=l+b*r,f.D(),!this.Xc(f,t)&&((t=this.gc(f))&&(v=t),!t&&(g&&(p?t=this.Xc(f,p)?p:null:t=this.Xe(f),t&&(v=t)),!t)))return v&&this.Cn(f,a,b,v),!0;f.x=e;f.y=l;f.D();return!1};h.prototype.Cn=function(f,a,b,c){var g=2,p,e=!1;p=!1;for(var l=f.x,r=f.y;16>=g;)p=1/g,g*=2,f.x+=a*p*
(e?1:-1),f.y+=b*p*(e?1:-1),f.D(),this.Xc(f,c)?p=e=!0:(p=e=!1,l=f.x,r=f.y);p&&(f.x=l,f.y=r,f.D())};h.prototype.rw=function(f,a){var b=ia(a)?100:a,c=0,g=f.x,p=f.y,e=0,l=0,r=0,t=this.gc(f);if(!t)return!0;for(;c<=b;){switch(e){case 0:l=0;r=-1;c++;break;case 1:l=1;r=-1;break;case 2:l=1;r=0;break;case 3:r=l=1;break;case 4:l=0;r=1;break;case 5:l=-1;r=1;break;case 6:l=-1;r=0;break;case 7:r=l=-1}e=(e+1)%8;f.x=N(g+l*c);f.y=N(p+r*c);f.D();if(!this.Xc(f,t)&&(t=this.gc(f),!t))return!0}f.x=g;f.y=p;f.D();return!1};
h.prototype.vi=function(f,a){f.Od&&a.Od&&this.wi.push([f,a])};h.prototype.Ft=function(f,a){var b,c,g;b=0;for(c=this.wi.length;b<c;b++)if(g=this.wi[b],g[0]==f&&g[1]==a||g[0]==a&&g[1]==f)return!0;return!1};var r=-1;h.prototype.trigger=function(f,a,b){if(!this.ya)return!1;var c=this.ya.hf;if(!c)return!1;var g=!1,p,e,l;r++;var t=c.Ol;e=0;for(l=t.length;e<l;++e)p=this.Cr(f,a,t[e],b),g=g||p;p=this.Cr(f,a,c,b);r--;return g||p};h.prototype.Cr=function(f,a,b,c){var g=!1,p,e,l,r;if(a)for(l=this.co(f,a,a.type.name,
b,c),g=g||l,r=a.type.Ha,p=0,e=r.length;p<e;++p)l=this.co(f,a,r[p].name,b,c),g=g||l;else l=this.co(f,a,"system",b,c),g=g||l;return g};h.prototype.co=function(a,b,c,g,p){var e,l=!1,r=!1,r="undefined"!==typeof p,t=(r?g.jp:g.Dr)[c];if(!t)return l;var v=null;g=0;for(e=t.length;g<e;++g)if(t[g].method==a){v=t[g].oh;break}if(!v)return l;var d;r?d=v[p]:d=v;if(!d)return null;g=0;for(e=d.length;g<e;g++)a=d[g][0],p=d[g][1],r=this.Nu(b,c,a,p),l=l||r;return l};h.prototype.Nu=function(a,b,c,g){var p,e,l=!1;this.eo++;
var t=this.Db().kc;t&&this.ri(t.Ue);var v=1<this.eo;this.ri(c.Ue);v&&this.qw();var d=this.Fk(c);d.kc=c;a&&(p=this.types[b].ea(),p.ta=!1,p.e.length=1,p.e[0]=a,this.types[b].cd());a=!0;if(c.parent){b=d.pr;for(p=c.parent;p;)b.push(p),p=p.parent;b.reverse();p=0;for(e=b.length;p<e;p++)if(!b[p].Cw()){a=!1;break}}a&&(this.ph++,c.ld?c.Bw(g):c.Ya(),l=l||d.vf);this.zk();v&&this.kw();this.Gf(c.Ue);t&&this.Gf(t.Ue);this.Fe&&0===this.hd&&0===r&&!this.Im&&this.ub();this.eo--;return l};h.prototype.Jj=function(){var a=
this.Db();return a.kc.kb[a.jb]};h.prototype.qw=function(){this.jk++;this.jk>=this.Zm.length&&this.Zm.push([])};h.prototype.kw=function(){this.jk--};h.prototype.qp=function(){return this.Zm[this.jk]};h.prototype.Fk=function(a){this.wj++;this.wj>=this.Sl.length&&this.Sl.push(new Sb);var b=this.Db();b.reset(a);return b};h.prototype.zk=function(){this.wj--};h.prototype.Db=function(){return this.Sl[this.wj]};h.prototype.rp=function(a,b){for(var c,g,p,e,l,r;b;){c=0;for(g=b.Wc.length;c<g;c++)if(r=b.Wc[c],
r instanceof Tb&&nb(a,r.name))return r;b=b.parent}c=0;for(g=this.Vd.length;c<g;c++)for(l=this.Vd[c],p=0,e=l.De.length;p<e;p++)if(r=l.De[p],r instanceof Tb&&nb(a,r.name))return r;return null};h.prototype.tp=function(a){var b,c;b=0;for(c=this.kd.length;b<c;b++)if(this.kd[b].Z===a)return this.kd[b];return null};h.prototype.Lj=function(a){var b,c;b=0;for(c=this.u.length;b<c;b++)if(this.u[b].Z===a)return this.u[b];return null};h.prototype.Xu=function(a){var b,c;b=0;for(c=this.Uf.length;b<c;b++)if(this.Uf[b].Z===
a)return this.Uf[b];return null};h.prototype.Qt=function(a,b){this.Ei=[a,b];this.Y=!0};h.prototype.zv=function(){var a=this,g=this.Nn,p=this.de,e=this.dk,l=!1;this.ir&&(l=!0,g="__c2_continuouspreview",this.ir=!1);if(g.length){this.ub();p=this.Gw();if(window.indexedDB&&!this.Oc)u(g,p,function(){da("Saved state to IndexedDB storage ("+p.length+" bytes)");a.de=p;a.trigger(X.prototype.j.rl,null);a.de="";l&&b()},function(c){try{localStorage.setItem("__c2save_"+g,p),da("Saved state to WebStorage ("+p.length+
" bytes)"),a.de=p,a.trigger(X.prototype.j.rl,null),a.de="",l&&b()}catch(e){da("Failed to save game state: "+c+"; "+e)}});else try{localStorage.setItem("__c2save_"+g,p),da("Saved state to WebStorage ("+p.length+" bytes)"),a.de=p,this.trigger(X.prototype.j.rl,null),a.de="",l&&b()}catch(r){da("Error saving to WebStorage: "+r)}this.Fb=this.dk=this.Nn=""}if(e.length){if(window.indexedDB&&!this.Oc)c(e,function(b){b?(a.Fb=b,da("Loaded state from IndexedDB storage ("+a.Fb.length+" bytes)")):(a.Fb=localStorage.getItem("__c2save_"+
e)||"",da("Loaded state from WebStorage ("+a.Fb.length+" bytes)"));a.Gi=!1;a.Fb.length||a.trigger(X.prototype.j.ql,null)},function(){a.Fb=localStorage.getItem("__c2save_"+e)||"";da("Loaded state from WebStorage ("+a.Fb.length+" bytes)");a.Gi=!1;a.Fb.length||a.trigger(X.prototype.j.ql,null)});else{try{this.Fb=localStorage.getItem("__c2save_"+e)||"",da("Loaded state from WebStorage ("+this.Fb.length+" bytes)")}catch(t){this.Fb=""}this.Gi=!1;a.Fb.length||a.trigger(X.prototype.j.ql,null)}this.Nn=this.dk=
""}this.Fb.length&&(this.ub(),this.Rv(this.Fb),this.de=this.Fb,this.trigger(X.prototype.j.Hs,null),this.Fb=this.de="")};h.prototype.Gw=function(){var f,b,c,g,p,e,l,r={c2save:!0,version:1,rt:{time:this.qc.aa,walltime:this.qe.aa,timescale:this.Of,tickcount:this.pd,execcount:this.ph,next_uid:this.hi,running_layout:this.ya.Z,start_time_offset:Date.now()-this.Wk},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};f=0;for(b=this.u.length;f<b;f++)if(p=this.u[f],!p.G&&!this.Gr(p)){e={instances:[]};
$a(p.I)&&(e.ex=a(p.I));c=0;for(g=p.e.length;c<g;c++)e.instances.push(this.Mn(p.e[c]));r.types[p.Z.toString()]=e}f=0;for(b=this.kd.length;f<b;f++)c=this.kd[f],r.layouts[c.Z.toString()]=c.Gb();g=r.events.groups;f=0;for(b=this.Uf.length;f<b;f++)c=this.Uf[f],g[c.Z.toString()]=this.jg[c.yh].nf;b=r.events.cnds;for(l in this.Xf)this.Xf.hasOwnProperty(l)&&(f=this.Xf[l],$a(f.I)&&(b[l]={ex:a(f.I)}));b=r.events.acts;for(l in this.Tf)this.Tf.hasOwnProperty(l)&&(f=this.Tf[l],$a(f.I)&&(b[l]={ex:f.I}));b=r.events.vars;
for(l in this.Vg)this.Vg.hasOwnProperty(l)&&(f=this.Vg[l],f.Tj||f.parent&&!f.Ih||(b[l]=f.data));r.system=this.Hd.Gb();return JSON.stringify(r)};h.prototype.Wq=function(){var a,b,c,g,p,e;this.ge={};a=0;for(b=this.u.length;a<b;a++)if(c=this.u[a],!c.G)for(g=0,p=c.e.length;g<p;g++)e=c.e[g],this.ge[e.uid.toString()]=e};h.prototype.Rv=function(a){a=JSON.parse(a);if(a.c2save&&!(1<a.version)){var b=a.rt;this.qc.reset();this.qc.aa=b.time;this.qe.reset();this.qe.aa=b.walltime||0;this.Of=b.timescale;this.pd=
b.tickcount;this.ph=b.execcount;this.Wk=Date.now()-b.start_time_offset;var c=b.running_layout;if(c!==this.ya.Z)if(c=this.tp(c))this.fp(c);else return;var g,p,e,l,r,t,v;t=a.types;for(p in t)if(t.hasOwnProperty(p)&&(l=this.Lj(parseInt(p,10)))&&!l.G&&!this.Gr(l)){t[p].ex?l.I=t[p].ex:ab(l.I);r=l.e;e=t[p].instances;c=0;for(g=na(r.length,e.length);c<g;c++)this.ek(r[c],e[c]);c=e.length;for(g=r.length;c<g;c++)this.Ld(r[c]);c=r.length;for(g=e.length;c<g;c++){r=null;if(l.xa.Je&&(r=this.ya.Kj(e[c].w.l),!r))continue;
r=this.Be(l.Kc,r,!1,0,0,!0);this.ek(r,e[c])}l.Qg=!0}this.ub();this.Wq();g=a.layouts;for(p in g)g.hasOwnProperty(p)&&(c=this.tp(parseInt(p,10)))&&c.Xb(g[p]);g=a.events.groups;for(p in g)g.hasOwnProperty(p)&&(c=this.Xu(parseInt(p,10)))&&this.jg[c.yh]&&this.jg[c.yh].Nk(g[p]);c=a.events.cnds;for(p in c)c.hasOwnProperty(p)&&this.Xf.hasOwnProperty(p)&&(this.Xf[p].I=c[p].ex);c=a.events.acts;for(p in c)c.hasOwnProperty(p)&&this.Tf.hasOwnProperty(p)&&(this.Tf[p].I=c[p].ex);c=a.events.vars;for(p in c)c.hasOwnProperty(p)&&
this.Vg.hasOwnProperty(p)&&(this.Vg[p].data=c[p]);this.hi=b.next_uid;this.Hd.Xb(a.system);c=0;for(g=this.u.length;c<g;c++)if(l=this.u[c],!l.G)for(p=0,a=l.e.length;p<a;p++){r=l.e[p];if(l.oc)for(t=r.xh(),b=r.siblings.length=0,e=l.jc.length;b<e;b++)v=l.jc[b],l!==v&&r.siblings.push(v.e[t]);r.td&&r.td();if(r.N)for(b=0,e=r.N.length;b<e;b++)t=r.N[b],t.td&&t.td()}this.Y=!0}};h.prototype.Mn=function(b,c){var g,p,e,l,r;l=b.type;e=l.xa;var t={};c?t.c2=!0:t.uid=b.uid;$a(b.I)&&(t.ex=a(b.I));if(b.ab&&b.ab.length)for(t.ivs=
{},g=0,p=b.ab.length;g<p;g++)t.ivs[b.type.Dm[g].toString()]=b.ab[g];if(e.Je){e={x:b.x,y:b.y,w:b.width,h:b.height,l:b.k.Z,zi:b.xd()};0!==b.m&&(e.a=b.m);1!==b.opacity&&(e.o=b.opacity);.5!==b.Vb&&(e.hX=b.Vb);.5!==b.Wb&&(e.hY=b.Wb);0!==b.Sb&&(e.bm=b.Sb);b.visible||(e.v=b.visible);b.Od||(e.ce=b.Od);-1!==b.gi&&(e.mts=b.gi);if(l.M.length)for(e.fx=[],g=0,p=l.M.length;g<p;g++)r=l.M[g],e.fx.push({name:r.name,active:b.ve[r.index],params:b.Ma[r.index]});t.w=e}if(b.N&&b.N.length)for(t.behs={},g=0,p=b.N.length;g<
p;g++)l=b.N[g],l.Gb&&(t.behs[l.type.Z.toString()]=l.Gb());b.Gb&&(t.data=b.Gb());return t};h.prototype.Zu=function(a,b){var c,g;c=0;for(g=a.Dm.length;c<g;c++)if(a.Dm[c]===b)return c;return-1};h.prototype.Vu=function(a,b){var c,g;c=0;for(g=a.N.length;c<g;c++)if(a.N[c].type.Z===b)return c;return-1};h.prototype.ek=function(a,b,c){var g,p,e,l,r;r=a.type;l=r.xa;if(c){if(!b.c2)return}else a.uid=b.uid;b.ex?a.I=b.ex:ab(a.I);if(p=b.ivs)for(g in p)p.hasOwnProperty(g)&&(e=this.Zu(r,parseInt(g,10)),0>e||e>=a.ab.length||
(a.ab[e]=p[g]));if(l.Je){e=b.w;a.k.Z!==e.l&&(p=a.k,a.k=this.ya.Kj(e.l),a.k?(p.Ig(a,!0),a.k.bh(a,!0),a.D(),a.k.Ai(0)):(a.k=p,c||this.Ld(a)));a.x=e.x;a.y=e.y;a.width=e.w;a.height=e.h;a.rd=e.zi;a.m=e.hasOwnProperty("a")?e.a:0;a.opacity=e.hasOwnProperty("o")?e.o:1;a.Vb=e.hasOwnProperty("hX")?e.hX:.5;a.Wb=e.hasOwnProperty("hY")?e.hY:.5;a.visible=e.hasOwnProperty("v")?e.v:!0;a.Od=e.hasOwnProperty("ce")?e.ce:!0;a.gi=e.hasOwnProperty("mts")?e.mts:-1;a.Sb=e.hasOwnProperty("bm")?e.bm:0;a.jh=kb(a.Sb);this.q&&
lb(a,a.Sb,this.q);a.D();if(e.hasOwnProperty("fx"))for(c=0,p=e.fx.length;c<p;c++)l=r.hm(e.fx[c].name),0>l||(a.ve[l]=e.fx[c].active,a.Ma[l]=e.fx[c].params);a.oe()}if(r=b.behs)for(g in r)r.hasOwnProperty(g)&&(c=this.Vu(a,parseInt(g,10)),0>c||a.N[c].Xb(r[g]));b.data&&a.Xb(b.data)};Ub=function(a){return new h(document.getElementById(a))};Vb=function(a,b){return new h({dc:!0,width:a,height:b})};window.cr_createRuntime=Ub;window.cr_createDCRuntime=Vb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=
!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.eh=!0;document.body.appendChild(a);a=new h(a);window.c2runtime=a;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a};window.createEjectaRuntime=function(){var a=new h(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);
return a}})();window.cr_getC2Runtime=function(){var d=document.getElementById("c2canvas");return d?d.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(d,q){var h=window.cr_getC2Runtime();h&&h.Qt(d,q)};window.cr_sizeCanvas=function(d,q){if(0!==d&&0!==q){var h=window.cr_getC2Runtime();h&&h.setSize(d,q)}};window.cr_setSuspended=function(d){var q=window.cr_getC2Runtime();q&&q.setSuspended(d)};
(function(){function d(a,b){this.b=a;this.hf=null;this.scrollX=this.b.eb/2;this.scrollY=this.b.cb/2;this.scale=1;this.m=0;this.eg=!0;this.name=b[0];this.width=b[1];this.height=b[2];this.Hr=b[3];this.fr=b[4];this.Z=b[5];var c=b[6],e,d;this.U=[];this.Bh=[];e=0;for(d=c.length;e<d;e++){var h=new Wb(this,c[e]);h.vq=e;this.U.push(h)}c=b[7];this.rf=[];e=0;for(d=c.length;e<d;e++){var h=c[e],k=this.b.u[h[1]];k.Kc||(k.Kc=h);this.rf.push(h);-1===this.Bh.indexOf(k)&&this.Bh.push(k)}this.M=[];this.ka=[];this.Ma=
[];e=0;for(d=b[8].length;e<d;e++)this.M.push({id:b[8][e][0],name:b[8][e][1],tb:-1,Ka:!0,index:e}),this.Ma.push(b[8][e][2].slice(0));this.oe();this.Qe=new ta(0,0,1,1);this.Fn=new ta(0,0,1,1);this.Pe={}}function q(a,b){return a.rd-b.rd}function h(a,b){this.bb=a;this.b=a.b;this.e=[];this.scale=1;this.m=0;this.ff=!1;this.me=new ta(0,0,0,0);this.Ar=new ua;this.Oa=this.Ga=this.Pa=this.Fa=0;this.Pf=!1;this.te=-1;this.name=b[0];this.index=b[1];this.Z=b[2];this.visible=b[3];this.ye=b[4];this.ne=b[5];this.Zb=
b[6];this.$b=b[7];this.opacity=b[8];this.Zl=b[9];this.qd=b[10];this.Kb=b[11];this.Sb=b[12];this.hu=b[13];this.jh="source-over";this.Bb=this.Hb=0;this.wc=null;this.yg=m();this.ie=!0;this.Xj=new ta(0,0,-1,-1);this.Jc=new ta(0,0,-1,-1);this.qd&&(this.wc=new jb(this.b.eb,this.b.cb));this.Re=!1;var c=b[14],e,d;this.nr=[];this.Ec=[];this.kh=[];e=0;for(d=c.length;e<d;e++){var h=c[e],k=this.b.u[h[1]];k.Kc||(k.Kc=h,k.Ot=this.index);this.Ec.push(h);-1===this.bb.Bh.indexOf(k)&&this.bb.Bh.push(k)}Fa(this.nr,
this.Ec);this.M=[];this.ka=[];this.Ma=[];e=0;for(d=b[15].length;e<d;e++)this.M.push({id:b[15][e][0],name:b[15][e][1],tb:-1,Ka:!0,index:e}),this.Ma.push(b[15][e][2].slice(0));this.oe();this.Qe=new ta(0,0,1,1);this.Fn=new ta(0,0,1,1)}function m(){return a.length?a.pop():[]}function u(b){b.length=0;a.push(b)}d.prototype.Fw=function(a){var b=a.type.Z.toString();this.Pe.hasOwnProperty(b)||(this.Pe[b]=[]);this.Pe[b].push(this.b.Mn(a))};d.prototype.yp=function(){var a=this.U[0];return!a.ne&&1===a.opacity&&
!a.Zl&&a.visible};d.prototype.oe=function(){this.ka.length=0;var a,b,c;a=0;for(b=this.M.length;a<b;a++)c=this.M[a],c.Ka&&this.ka.push(c)};d.prototype.gm=function(a){var b,c,e;b=0;for(c=this.M.length;b<c;b++)if(e=this.M[b],e.name===a)return e;return null};var c=[],b=!0;d.prototype.Yn=function(){this.fr&&(this.hf=this.b.Tl[this.fr],this.hf.ho());this.b.ya=this;this.scrollX=this.b.eb/2;this.scrollY=this.b.cb/2;var a,e,d,v,h,k,m;a=0;for(d=this.b.u.length;a<d;a++)if(e=this.b.u[a],!e.G)for(h=e.e,e=0,v=
h.length;e<v;e++)if(k=h[e],k.k){var p=k.k.vq;p>=this.U.length&&(p=this.U.length-1);k.k=this.U[p];-1===k.k.e.indexOf(k)&&k.k.e.push(k);k.k.Pf=!0}if(!b)for(a=0,d=this.U.length;a<d;++a)this.U[a].e.sort(q);c.length=0;this.Bt();a=0;for(d=this.U.length;a<d;a++)k=this.U[a],k.Kt(),k.lo();h=!1;if(!this.eg){for(m in this.Pe)if(this.Pe.hasOwnProperty(m)&&(e=this.b.Lj(parseInt(m,10)))&&!e.G&&this.b.fo(e)){v=this.Pe[m];a=0;for(d=v.length;a<d;a++){k=null;if(e.xa.Je&&(k=this.Kj(v[a].w.l),!k))continue;k=this.b.Be(e.Kc,
k,!1,0,0,!0);this.b.ek(k,v[a]);h=!0;c.push(k)}v.length=0}a=0;for(d=this.U.length;a<d;a++)this.U[a].e.sort(q),this.U[a].Pf=!0}h&&(this.b.ub(),this.b.Wq());for(a=0;a<c.length;a++)if(k=c[a],k.type.oc)for(d=k.xh(),e=0,v=k.type.jc.length;e<v;e++)m=k.type.jc[e],k.type!==m&&(m.e.length>d?k.siblings.push(m.e[d]):m.Kc&&(h=this.b.Be(m.Kc,k.k,!0,k.x,k.y,!0),this.b.ub(),m.jl(),k.siblings.push(h),c.push(h)));a=0;for(d=this.rf.length;a<d;a++)this.b.Be(this.rf[a],null,!0);this.b.ih=null;this.b.ub();if(this.b.pa&&
!this.b.Ea)for(a=0,d=this.b.u.length;a<d;a++)m=this.b.u[a],!m.G&&m.e.length&&m.Ck&&m.Ck(this.b.pa);a=0;for(d=c.length;a<d;a++)k=c[a],this.b.trigger(Object.getPrototypeOf(k.type.xa).j.Zg,k);c.length=0;this.b.trigger(X.prototype.j.Bo,null);this.eg=!1};d.prototype.Jt=function(){var a,b,c,e,d;b=a=0;for(c=this.rf.length;a<c;a++)e=this.rf[a],d=this.b.u[e[1]],d.global?d.oc||this.b.Be(e,null,!0):(this.rf[b]=e,b++);this.rf.length=b};d.prototype.Pw=function(){this.b.trigger(X.prototype.j.Gs,null);this.b.Hd.hc.length=
0;var a,c,e,d,k,h;if(!this.eg)for(a=0,c=this.U.length;a<c;a++)for(this.U[a].no(),k=this.U[a].e,e=0,d=k.length;e<d;e++)h=k[e],h.type.global||this.b.fo(h.type)&&this.Fw(h);a=0;for(c=this.U.length;a<c;a++){k=this.U[a].e;e=0;for(d=k.length;e<d;e++)h=k[e],h.type.global||this.b.Ld(h);this.b.ub();k.length=0;this.U[a].Pf=!0}a=0;for(c=this.b.u.length;a<c;a++)if(k=this.b.u[a],!(k.global||k.xa.Je||k.xa.Rk||k.G)){e=0;for(d=k.e.length;e<d;e++)this.b.Ld(k.e[e]);this.b.ub()}b=!1};new ta(0,0,0,0);d.prototype.lc=
function(a){var b,c=a,e=!1,d=!this.b.Mc;d&&(this.b.bk||(this.b.bk=document.createElement("canvas"),b=this.b.bk,b.width=this.b.T,b.height=this.b.S,this.b.Wp=b.getContext("2d"),e=!0),b=this.b.bk,c=this.b.Wp,b.width!==this.b.T&&(b.width=this.b.T,e=!0),b.height!==this.b.S&&(b.height=this.b.S,e=!0),e&&(c.webkitImageSmoothingEnabled=this.b.da,c.mozImageSmoothingEnabled=this.b.da,c.msImageSmoothingEnabled=this.b.da,c.imageSmoothingEnabled=this.b.da));c.globalAlpha=1;c.globalCompositeOperation="source-over";
this.b.yl&&!this.yp()&&c.clearRect(0,0,this.b.T,this.b.S);var k,h,e=0;for(k=this.U.length;e<k;e++)h=this.U[e],h.visible&&0<h.opacity&&11!==h.Sb&&(h.e.length||!h.ne)?h.lc(c):h.lo();d&&a.drawImage(b,0,0,this.b.width,this.b.height)};d.prototype.Cb=function(a){var b=0<this.ka.length||this.b.Tg||!this.b.Mc;if(b){this.b.tc||(this.b.tc=a.Pd(this.b.T,this.b.S,this.b.da));if(this.b.tc.gh!==this.b.T||this.b.tc.fh!==this.b.S)a.deleteTexture(this.b.tc),this.b.tc=a.Pd(this.b.T,this.b.S,this.b.da);a.Fd(this.b.tc);
this.b.Mc||a.Lg(this.b.T,this.b.S)}else this.b.tc&&(a.Fd(null),a.deleteTexture(this.b.tc),this.b.tc=null);this.b.yl&&!this.yp()&&a.clear(0,0,0,0);var c,e,d;c=0;for(e=this.U.length;c<e;c++)d=this.U[c],d.visible&&0<d.opacity&&(d.e.length||!d.ne)?d.Cb(a):d.lo();b&&(0===this.ka.length||1===this.ka.length&&this.b.Mc?(1===this.ka.length?(b=this.ka[0].index,a.Gd(this.ka[0].tb),a.Kg(null,1/this.b.T,1/this.b.S,0,0,1,1,this.scale,this.m,0,0,this.b.T/2,this.b.S/2,this.Ma[b]),a.Dk(this.ka[0].tb)&&(this.b.Y=!0)):
a.Gd(0),this.b.Mc||a.Lg(this.b.width,this.b.height),a.Fd(null),a.Te(1),a.fc(this.b.tc),a.Zq(),a.Dd(),a.Jd(),b=this.b.width/2,c=this.b.height/2,a.si(-b,c,b,c,b,-c,-b,-c),a.fc(null)):this.Gn(a,null,null,null))};d.prototype.vh=function(){return 0<this.ka.length||this.b.Tg||!this.b.Mc?this.b.tc:null};d.prototype.up=function(){var a=this.U[0].mc(),b,c,e;b=1;for(c=this.U.length;b<c;b++)e=this.U[b],(0!==e.Zb||0!==e.$b)&&e.mc()<a&&(a=e.mc());return a};d.prototype.On=function(a){if(!this.Hr){var b=1/this.up()*
this.b.T/2;a>this.width-b&&(a=this.width-b);a<b&&(a=b)}this.scrollX!==a&&(this.scrollX=a,this.b.Y=!0)};d.prototype.Pn=function(a){if(!this.Hr){var b=1/this.up()*this.b.S/2;a>this.height-b&&(a=this.height-b);a<b&&(a=b)}this.scrollY!==a&&(this.scrollY=a,this.b.Y=!0)};d.prototype.Bt=function(){this.On(this.scrollX);this.Pn(this.scrollY)};d.prototype.Gn=function(a,b,c,e){var d=c?c.ka:b?b.ka:this.ka,k=1,h=0,p=0,t=0,r=this.b.T,f=this.b.S;c?(k=c.k.mc(),h=c.k.Xa(),p=c.k.Fa,t=c.k.Ga,r=c.k.Pa,f=c.k.Oa):b&&
(k=b.mc(),h=b.Xa(),p=b.Fa,t=b.Ga,r=b.Pa,f=b.Oa);var n=this.b.em,q,m,u,F,B=0,Q=1,ea,J=this.b.T,M=this.b.S,S=J/2,D=M/2,T=b?b.Qe:this.Qe,E=b?b.Fn:this.Fn,G=0,U=0,K=0,O=0,H=J,ga=J,P=M,oa=M,ha=u=0,va=c?c.k.Xa():0;if(c){q=0;for(m=d.length;q<m;q++)u+=a.dv(d[q].tb),ha+=a.gv(d[q].tb);F=c.Da;G=b.Ia(F.left,F.top,!0,!0);K=b.Ia(F.left,F.top,!1,!0);H=b.Ia(F.right,F.bottom,!0,!0);P=b.Ia(F.right,F.bottom,!1,!0);0!==va&&(q=b.Ia(F.right,F.top,!0,!0),m=b.Ia(F.right,F.top,!1,!0),U=b.Ia(F.left,F.bottom,!0,!0),O=b.Ia(F.left,
F.bottom,!1,!0),F=Math.min(G,H,q,U),H=Math.max(G,H,q,U),G=F,F=Math.min(K,P,m,O),P=Math.max(K,P,m,O),K=F);G-=u;K-=ha;H+=u;P+=ha;E.left=G/J;E.top=1-K/M;E.right=H/J;E.bottom=1-P/M;U=G=N(G);O=K=N(K);ga=H=ra(H);oa=P=ra(P);U-=u;O-=ha;ga+=u;oa+=ha;0>G&&(G=0);0>K&&(K=0);H>J&&(H=J);P>M&&(P=M);0>U&&(U=0);0>O&&(O=0);ga>J&&(ga=J);oa>M&&(oa=M);T.left=G/J;T.top=1-K/M;T.right=H/J;T.bottom=1-P/M}else T.left=E.left=0,T.top=E.top=0,T.right=E.right=1,T.bottom=E.bottom=1;ha=c&&((c.m||va)&&a.pi(d[0].tb)||0!==u||0!==ha||
1!==c.opacity||c.type.xa.rq)||b&&!c&&1!==b.opacity;a.Zq();if(ha){n[B]||(n[B]=a.Pd(J,M,this.b.da));if(n[B].gh!==J||n[B].fh!==M)a.deleteTexture(n[B]),n[B]=a.Pd(J,M,this.b.da);a.Gd(0);a.Fd(n[B]);ea=oa-O;a.clearRect(U,M-O-ea,ga-U,ea);c?c.Cb(a):(a.fc(this.b.Fc),a.Te(b.opacity),a.Dd(),a.translate(-S,-D),a.Jd(),a.Cd(G,P,H,P,H,K,G,K,T));E.left=E.top=0;E.right=E.bottom=1;c&&(F=T.top,T.top=T.bottom,T.bottom=F);B=1;Q=0}a.Te(1);u=d.length-1;var va=a.Bn(d[u].tb)||!b&&!c&&!this.b.Mc,wa=0;q=0;for(m=d.length;q<m;q++){n[B]||
(n[B]=a.Pd(J,M,this.b.da));if(n[B].gh!==J||n[B].fh!==M)a.deleteTexture(n[B]),n[B]=a.Pd(J,M,this.b.da);a.Gd(d[q].tb);wa=d[q].index;a.Dk(d[q].tb)&&(this.b.Y=!0);0!=q||ha?(a.Kg(e,1/J,1/M,E.left,E.top,E.right,E.bottom,k,h,p,t,(p+r)/2,(t+f)/2,c?c.Ma[wa]:b?b.Ma[wa]:this.Ma[wa]),a.fc(null),q!==u||va?(a.Fd(n[B]),ea=oa-O,F=M-O-ea,a.clearRect(U,F,ga-U,ea)):(c?a.Se(c.Hb,c.Bb):b&&a.Se(b.Hb,b.Bb),a.Fd(e)),a.fc(n[Q]),a.Dd(),a.translate(-S,-D),a.Jd(),a.Cd(G,P,H,P,H,K,G,K,T),q!==u||va||a.fc(null)):(a.Fd(n[B]),ea=
oa-O,F=M-O-ea,a.clearRect(U,F,ga-U,ea),c?(a.Kg(e,1/c.width,1/c.height,E.left,E.top,E.right,E.bottom,k,h,p,t,(p+r)/2,(t+f)/2,c.Ma[wa]),c.Cb(a)):(a.Kg(e,1/J,1/M,0,0,1,1,k,h,p,t,(p+r)/2,(t+f)/2,b?b.Ma[wa]:this.Ma[wa]),a.fc(b?this.b.Fc:this.b.tc),a.Dd(),a.translate(-S,-D),a.Jd(),a.Cd(G,P,H,P,H,K,G,K,T)),E.left=E.top=0,E.right=E.bottom=1,c&&!va&&(F=P,P=K,K=F));B=0===B?1:0;Q=0===B?1:0}va&&(a.Gd(0),c?a.Se(c.Hb,c.Bb):b?a.Se(b.Hb,b.Bb):this.b.Mc||(a.Lg(this.b.width,this.b.height),S=this.b.width/2,D=this.b.height/
2,K=G=0,H=this.b.width,P=this.b.height),a.Fd(e),a.fc(n[Q]),a.Dd(),a.translate(-S,-D),a.Jd(),c&&1===d.length&&!ha?a.Cd(G,K,H,K,H,P,G,P,T):a.Cd(G,P,H,P,H,K,G,K,T),a.fc(null))};d.prototype.Kj=function(a){var b,c;b=0;for(c=this.U.length;b<c;b++)if(this.U[b].Z===a)return this.U[b];return null};d.prototype.Gb=function(){var a,b,c,e={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.m,w:this.width,h:this.height,fv:this.eg,persist:this.Pe,fx:[],layers:{}};a=0;for(b=this.M.length;a<b;a++)c=this.M[a],e.fx.push({name:c.name,
active:c.Ka,params:this.Ma[c.index]});a=0;for(b=this.U.length;a<b;a++)c=this.U[a],e.layers[c.Z.toString()]=c.Gb();return e};d.prototype.Xb=function(a){var b,c,e,d;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.m=a.a;this.width=a.w;this.height=a.h;this.Pe=a.persist;"undefined"!==typeof a.fv&&(this.eg=a.fv);var k=a.fx;b=0;for(c=k.length;b<c;b++)if(e=this.gm(k[b].name))e.Ka=k[b].active,this.Ma[e.index]=k[b].params;this.oe();b=a.layers;for(d in b)b.hasOwnProperty(d)&&(a=this.Kj(parseInt(d,10)))&&
a.Xb(b[d])};Ib=d;h.prototype.oe=function(){this.ka.length=0;var a,b,c;a=0;for(b=this.M.length;a<b;a++)c=this.M[a],c.Ka&&this.ka.push(c)};h.prototype.gm=function(a){var b,c,e;b=0;for(c=this.M.length;b<c;b++)if(e=this.M[b],e.name===a)return e;return null};h.prototype.Kt=function(){var a,b,e,d,k,h;b=a=0;for(e=this.Ec.length;a<e;a++){d=this.Ec[a];k=this.b.u[d[1]];h=this.b.fo(k);k=!0;if(!h||this.bb.eg)d=this.b.Be(d,this,!0),c.push(d),d.type.global&&(k=!1,this.kh.push(d.uid));k&&(this.Ec[b]=this.Ec[a],
b++)}this.Ec.length=b;this.b.ub();!this.b.A&&this.M.length&&(this.Sb=this.hu);this.jh=kb(this.Sb);this.b.q&&lb(this,this.Sb,this.b.q);this.ie=!0};h.prototype.Ig=function(a,b){var c=Ha(this.e,a);0>c||(b&&this.qd&&a.cc&&a.cc.right>=a.cc.left&&(a.Ba(),this.wc.update(a,a.cc,null),a.cc.set(0,0,-1,-1)),c===this.e.length-1?this.e.pop():(Da(this.e,c),this.Ai(c)),this.ie=!0)};h.prototype.bh=function(a,b){a.rd=this.e.length;this.e.push(a);b&&this.qd&&a.cc&&a.D();this.ie=!0};h.prototype.nw=function(a){this.e.unshift(a);
this.Ai(0)};h.prototype.Xv=function(a,b,c){var e=a.xd();b=b.xd();Da(this.e,e);e<b&&b--;c&&b++;b===this.e.length?this.e.push(a):this.e.splice(b,0,a);this.Ai(e<b?e:b)};h.prototype.Ai=function(a){-1===this.te?this.te=a:a<this.te&&(this.te=a);this.ie=this.Pf=!0};h.prototype.no=function(){if(this.Pf){-1===this.te&&(this.te=0);var a,b,c;if(this.qd)for(a=this.te,b=this.e.length;a<b;++a)c=this.e[a],c.rd=a,this.wc.Tv(c.cc);else for(a=this.te,b=this.e.length;a<b;++a)this.e[a].rd=a;this.Pf=!1;this.te=-1}};h.prototype.mc=
function(a){return this.av()*(this.b.Mc||a?this.b.dh:1)};h.prototype.av=function(){return(this.scale*this.bb.scale-1)*this.Kb+1};h.prototype.Xa=function(){return this.ff?0:Ma(this.bb.m+this.m)};var a=[],e=[],k=[];h.prototype.vp=function(){this.no();this.wc.Gk(this.Fa,this.Ga,this.Pa,this.Oa,k);if(!k.length)return m();if(1===k.length){var a=m();Fa(a,k[0]);k.length=0;return a}for(var b=!0;1<k.length;){for(var a=k,c=void 0,d=void 0,h=void 0,q=void 0,x=void 0,c=0,d=a.length;c<d-1;c+=2){var h=a[c],q=a[c+
1],x=m(),p=h,t=q,r=x,f=0,n=0,z=0,L=p.length,y=t.length,F=void 0,B=void 0;for(r.length=L+y;f<L&&n<y;++z)F=p[f],B=t[n],F.rd<B.rd?(r[z]=F,++f):(r[z]=B,++n);for(;f<L;++f,++z)r[z]=p[f];for(;n<y;++n,++z)r[z]=t[n];b||(u(h),u(q));e.push(x)}1===d%2&&(b?(h=m(),Fa(h,a[d-1]),e.push(h)):e.push(a[d-1]));Fa(a,e);e.length=0;b=!1}a=k[0];k.length=0;return a};h.prototype.lc=function(a){this.Re=this.Zl||1!==this.opacity||0!==this.Sb;var b=this.b.canvas,c=a,e=!1;this.Re&&(this.b.ak||(this.b.ak=document.createElement("canvas"),
b=this.b.ak,b.width=this.b.T,b.height=this.b.S,this.b.Vp=b.getContext("2d"),e=!0),b=this.b.ak,c=this.b.Vp,b.width!==this.b.T&&(b.width=this.b.T,e=!0),b.height!==this.b.S&&(b.height=this.b.S,e=!0),e&&(c.webkitImageSmoothingEnabled=this.b.da,c.mozImageSmoothingEnabled=this.b.da,c.msImageSmoothingEnabled=this.b.da,c.imageSmoothingEnabled=this.b.da),this.ne&&c.clearRect(0,0,this.b.T,this.b.S));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.ne||(c.fillStyle="rgb("+this.ye[0]+","+this.ye[1]+
","+this.ye[2]+")",c.fillRect(0,0,this.b.T,this.b.S));c.save();this.ff=!0;var e=this.qb(0,0,!0,!0),d=this.qb(0,0,!1,!0);this.ff=!1;this.b.Sc&&(e=Math.round(e),d=Math.round(d));this.In(e,d,c);var k=this.mc();c.scale(k,k);c.translate(-e,-d);this.qd?(this.Jc.left=this.wc.zc(this.Fa),this.Jc.top=this.wc.Ac(this.Ga),this.Jc.right=this.wc.zc(this.Pa),this.Jc.bottom=this.wc.Ac(this.Oa),this.ie||!this.Jc.vj(this.Xj)?(u(this.yg),e=this.vp(),this.ie=!1,this.Xj.lj(this.Jc)):e=this.yg):e=this.e;for(var h,p=null,
d=0,k=e.length;d<k;++d)h=e[d],h!==p&&(this.eu(h,c),p=h);this.qd&&(this.yg=e);c.restore();this.Re&&(a.globalCompositeOperation=this.jh,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};h.prototype.eu=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Ba();var c=a.Da;c.right<this.Fa||c.bottom<this.Ga||c.left>this.Pa||c.top>this.Oa||(b.globalCompositeOperation=a.jh,a.lc(b))}};h.prototype.lo=function(){this.ff=!0;var a=this.qb(0,0,!0,!0),b=this.qb(0,0,!1,!0);this.ff=!1;this.b.Sc&&(a=Math.round(a),
b=Math.round(b));this.In(a,b,null)};h.prototype.In=function(a,b,c){var e=this.mc();this.Fa=a;this.Ga=b;this.Pa=a+1/e*this.b.T;this.Oa=b+1/e*this.b.S;a=this.Xa();0!==a&&(c&&(c.translate(this.b.T/2,this.b.S/2),c.rotate(-a),c.translate(this.b.T/-2,this.b.S/-2)),this.me.set(this.Fa,this.Ga,this.Pa,this.Oa),this.me.offset((this.Fa+this.Pa)/-2,(this.Ga+this.Oa)/-2),this.Ar.dr(this.me,a),this.Ar.Uo(this.me),this.me.offset((this.Fa+this.Pa)/2,(this.Ga+this.Oa)/2),this.Fa=this.me.left,this.Ga=this.me.top,
this.Pa=this.me.right,this.Oa=this.me.bottom)};h.prototype.Cb=function(a){var b=0,c=0;if(this.Re=this.Zl||1!==this.opacity||0<this.ka.length||0!==this.Sb){this.b.Fc||(this.b.Fc=a.Pd(this.b.T,this.b.S,this.b.da));if(this.b.Fc.gh!==this.b.T||this.b.Fc.fh!==this.b.S)a.deleteTexture(this.b.Fc),this.b.Fc=a.Pd(this.b.T,this.b.S,this.b.da);a.Fd(this.b.Fc);this.ne&&a.clear(0,0,0,0)}this.ne||a.clear(this.ye[0]/255,this.ye[1]/255,this.ye[2]/255,1);this.ff=!0;var e=this.qb(0,0,!0,!0),b=this.qb(0,0,!1,!0);this.ff=
!1;this.b.Sc&&(e=Math.round(e),b=Math.round(b));this.In(e,b,null);e=this.mc();a.Dd();a.scale(e,e);a.Jn(-this.Xa());a.translate((this.Fa+this.Pa)/-2,(this.Ga+this.Oa)/-2);a.Jd();this.qd?(this.Jc.left=this.wc.zc(this.Fa),this.Jc.top=this.wc.Ac(this.Ga),this.Jc.right=this.wc.zc(this.Pa),this.Jc.bottom=this.wc.Ac(this.Oa),this.ie||!this.Jc.vj(this.Xj)?(u(this.yg),b=this.vp(),this.ie=!1,this.Xj.lj(this.Jc)):b=this.yg):b=this.e;var d,k,h=null,c=0;for(d=b.length;c<d;++c)k=b[c],k!==h&&(this.fu(b[c],a),h=
k);this.qd&&(this.yg=b);this.Re&&(b=this.ka.length?this.ka[0].tb:0,c=this.ka.length?this.ka[0].index:0,0===this.ka.length||1===this.ka.length&&!a.Bn(b)&&1===this.opacity?(1===this.ka.length?(a.Gd(b),a.Kg(this.bb.vh(),1/this.b.T,1/this.b.S,0,0,1,1,e,this.Xa(),this.Fa,this.Ga,(this.Fa+this.Pa)/2,(this.Ga+this.Oa)/2,this.Ma[c]),a.Dk(b)&&(this.b.Y=!0)):a.Gd(0),a.Fd(this.bb.vh()),a.Te(this.opacity),a.fc(this.b.Fc),a.Se(this.Hb,this.Bb),a.Dd(),a.Jd(),e=this.b.T/2,b=this.b.S/2,a.si(-e,b,e,b,e,-b,-e,-b),
a.fc(null)):this.bb.Gn(a,this,null,this.bb.vh()))};h.prototype.fu=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Ba();var c=a.Da;c.right<this.Fa||c.bottom<this.Ga||c.left>this.Pa||c.top>this.Oa||(a.Or?this.gu(a,b):(b.Gd(0),b.Se(a.Hb,a.Bb),a.Cb(b)))}};h.prototype.gu=function(a,b){var c=a.ka[0].tb,e=a.ka[0].index,d=this.mc();if(1!==a.ka.length||b.Bn(c)||b.pw(c)||(a.m||a.k.Xa())&&b.pi(c)||1!==a.opacity||a.type.xa.rq)this.bb.Gn(b,this,a,this.Re?this.b.Fc:this.bb.vh()),b.Dd(),b.scale(d,d),b.Jn(-this.Xa()),
b.translate((this.Fa+this.Pa)/-2,(this.Ga+this.Oa)/-2),b.Jd();else{b.Gd(c);b.Se(a.Hb,a.Bb);b.Dk(c)&&(this.b.Y=!0);var k=0,h=0,p=0,t=0;b.pi(c)&&(c=a.Da,k=this.Ia(c.left,c.top,!0,!0),h=this.Ia(c.left,c.top,!1,!0),p=this.Ia(c.right,c.bottom,!0,!0),c=this.Ia(c.right,c.bottom,!1,!0),k=k/windowWidth,h=1-h/windowHeight,p=p/windowWidth,t=1-c/windowHeight);b.Kg(this.Re?this.b.Fc:this.bb.vh(),1/a.width,1/a.height,k,h,p,t,d,this.Xa(),this.Fa,this.Ga,(this.Fa+this.Pa)/2,(this.Ga+this.Oa)/2,a.Ma[e]);a.Cb(b)}};
h.prototype.qb=function(a,b,c,e){var d=this.b.devicePixelRatio;this.b.Ie&&(a*=d,b*=d);var d=this.b.Mq,k=this.b.Nq,d=(this.bb.scrollX-d)*this.Zb+d,k=(this.bb.scrollY-k)*this.$b+k,h=d,p=k,t=1/this.mc(!e);e?(h-=this.b.T*t/2,p-=this.b.S*t/2):(h-=this.b.width*t/2,p-=this.b.height*t/2);h+=a*t;p+=b*t;b=this.Xa();0!==b&&(h-=d,p-=k,a=Math.cos(b),b=Math.sin(b),e=h*a-p*b,p=p*a+h*b,h=e+d,p+=k);return c?h:p};h.prototype.Ia=function(a,b,c,e){var d=this.b.Mq,k=this.b.Nq,h=(this.bb.scrollX-d)*this.Zb+d,p=(this.bb.scrollY-
k)*this.$b+k,k=h,d=p,t=this.Xa();if(0!==t){a-=h;b-=p;var r=Math.cos(-t),t=Math.sin(-t),f=a*r-b*t;b=b*r+a*t;a=f+h;b+=p}h=1/this.mc(!e);e?(k-=this.b.T*h/2,d-=this.b.S*h/2):(k-=this.b.width*h/2,d-=this.b.height*h/2);k=(a-k)/h;d=(b-d)/h;a=this.b.devicePixelRatio;this.b.Ie&&!e&&(k/=a,d/=a);return c?k:d};h.prototype.Gb=function(){var a,b,c,e={s:this.scale,a:this.m,vl:this.Fa,vt:this.Ga,vr:this.Pa,vb:this.Oa,v:this.visible,bc:this.ye,t:this.ne,px:this.Zb,py:this.$b,o:this.opacity,zr:this.Kb,fx:[],cg:this.kh,
instances:[]};a=0;for(b=this.M.length;a<b;a++)c=this.M[a],e.fx.push({name:c.name,active:c.Ka,params:this.Ma[c.index]});return e};h.prototype.Xb=function(a){var b,c,e;this.scale=a.s;this.m=a.a;this.Fa=a.vl;this.Ga=a.vt;this.Pa=a.vr;this.Oa=a.vb;this.visible=a.v;this.ye=a.bc;this.ne=a.t;this.Zb=a.px;this.$b=a.py;this.opacity=a.o;this.Kb=a.zr;this.kh=a.cg||[];Fa(this.Ec,this.nr);var d=new ba;b=0;for(e=this.kh.length;b<e;++b)d.add(this.kh[b]);c=b=0;for(e=this.Ec.length;b<e;++b)d.contains(this.Ec[b][2])||
(this.Ec[c]=this.Ec[b],++c);this.Ec.length=c;c=a.fx;b=0;for(e=c.length;b<e;b++)if(a=this.gm(c[b].name))a.Ka=c[b].active,this.Ma[a.index]=c[b].params;this.oe();this.e.sort(q);this.Pf=!0};Wb=h})();
(function(){function d(a,b){var c,f=a.length;switch(f){case 0:return!0;case 1:return a[0]===b[0];case 2:return a[0]===b[0]&&a[1]===b[1];default:for(c=0;c<f;c++)if(a[c]!==b[c])return!1;return!0}}function q(a,b){return a.index-b.index}function h(a){var b,c,f,e;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(q);a.length>=C.length&&(C.length=a.length+1);C[a.length]||(C[a.length]=[]);e=C[a.length];b=0;for(c=e.length;b<c;b++)if(f=e[b],d(a,f))return f;e.push(a);return a}
function m(a,b){this.b=a;this.Dr={};this.jp={};this.rm=!1;this.Bp=new ba;this.Ol=[];this.zl=[];this.name=b[0];var c=b[1];this.De=[];var f,e;f=0;for(e=c.length;f<e;f++)this.Dp(c[f],null,this.De)}function u(a){this.type=a;this.e=[];this.la=[];this.ta=!0}function c(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.Aa=[];this.Ue=[];this.zp=this.el=this.bo=this.ym=this.group=this.lr=!1;this.kb=[];this.$c=[];this.Wc=[];this.yh="";this.nf=this.ym=this.group=!1;this.jj=null;c[1]&&(this.yh=c[1][1].toLowerCase(),
this.group=!0,this.ym=!!c[1][0],this.jj=[],this.nf=this.ym,this.b.Uf.push(this),this.b.jg[this.yh]=this);this.ld=c[2];this.Z=c[4];this.group||(this.b.To[this.Z.toString()]=this);var f=c[5];a=0;for(b=f.length;a<b;a++){var e=new Xb(this,f[a]);e.index=a;this.kb.push(e);this.Po(e.type)}f=c[6];a=0;for(b=f.length;a<b;a++)e=new Yb(this,f[a]),e.index=a,this.$c.push(e);if(8===c.length)for(c=c[7],a=0,b=c.length;a<b;a++)this.sheet.Dp(c[a],this,this.Wc);this.Uj=!1;this.kb.length&&(this.Uj=null==this.kb[0].type&&
this.kb[0].rb==X.prototype.j.zo)}function b(a,b){var c,f,e;if(a&&(-1===b.indexOf(a)&&b.push(a),a.oc))for(c=0,f=a.jc.length;c<f;c++)e=a.jc[c],a!==e&&-1===b.indexOf(e)&&b.push(e)}function a(a,b){this.Bc=a;this.sheet=a.sheet;this.b=a.b;this.V=[];this.Na=[];this.I={};this.index=-1;this.$g=!1;this.rb=this.b.ue(b[1]);this.trigger=0<b[3];this.ip=2===b[3];this.yd=b[4];this.Em=b[5];this.Pv=b[6];this.Z=b[7];this.b.Xf[this.Z.toString()]=this;-1===b[0]?(this.type=null,this.Ya=this.Ln,this.cf=null,this.dd=-1):
(this.type=this.b.u[b[0]],this.Ya=this.Pv?this.Dw:this.Kn,b[2]?(this.cf=this.type.Ij(b[2]),this.dd=this.type.fm(b[2])):(this.cf=null,this.dd=-1),this.Bc.parent&&this.Bc.parent.Ok());this.ip&&(this.Ya=this.Ew);if(10===b.length){var c,f,e=b[9];c=0;for(f=e.length;c<f;c++){var g=new Zb(this,e[c]);this.V.push(g)}this.Na.length=e.length}}function e(a,b){this.Bc=a;this.sheet=a.sheet;this.b=a.b;this.V=[];this.Na=[];this.I={};this.index=-1;this.$g=!1;this.rb=this.b.ue(b[1]);-1===b[0]?(this.type=null,this.Ya=
this.Ln,this.cf=null,this.dd=-1):(this.type=this.b.u[b[0]],this.Ya=this.Kn,b[2]?(this.cf=this.type.Ij(b[2]),this.dd=this.type.fm(b[2])):(this.cf=null,this.dd=-1));this.Z=b[3];this.b.Tf[this.Z.toString()]=this;if(6===b.length){var c,f,e=b[5];c=0;for(f=e.length;c<f;c++){var g=new Zb(this,e[c]);this.V.push(g)}this.Na.length=e.length}}function k(){x++;A.length===x&&A.push(new $b);return A[x]}function g(a,b){this.Ca=a;this.Bc=a.Bc;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.wd=null;this.le=0;this.get=
null;this.$o=0;this.bb=null;this.key=0;this.object=null;this.index=0;this.Oi=this.Lf=this.Oi=this.Lf=this.kp=this.jf=this.Pi=null;this.Zc=!1;var c,f,e;switch(b[0]){case 0:case 7:this.wd=new ac(this,b[1]);this.le=0;this.get=this.ov;break;case 1:this.wd=new ac(this,b[1]);this.le=0;this.get=this.pv;break;case 5:this.wd=new ac(this,b[1]);this.le=0;this.get=this.tv;break;case 3:case 8:this.$o=b[1];this.get=this.lv;break;case 6:this.bb=this.b.Sm[b[1]];this.get=this.uv;break;case 9:this.key=b[1];this.get=
this.sv;break;case 4:this.object=this.b.u[b[1]];this.get=this.vv;this.Bc.Po(this.object);this.Ca instanceof Yb?this.Bc.Ok():this.Bc.parent&&this.Bc.parent.Ok();break;case 10:this.index=b[1];a.type.G?(this.get=this.qv,this.Zc=!0):this.get=this.rv;break;case 11:this.Pi=b[1];this.jf=null;this.get=this.nv;break;case 2:case 12:this.kp=b[1];this.get=this.kv;break;case 13:for(this.get=this.wv,this.Lf=[],this.Oi=[],c=1,f=b.length;c<f;c++)e=new Zb(this.Ca,b[c]),this.Lf.push(e),this.Oi.push(0)}}function l(a,
b,c){this.sheet=a;this.parent=b;this.b=a.b;this.Aa=[];this.name=c[1];this.ll=c[2];this.xm=c[3];this.Ih=!!c[4];this.Tj=!!c[5];this.Z=c[6];this.b.Vg[this.Z.toString()]=this;this.data=this.xm;this.parent?(this.Af=this.Ih||this.Tj?-1:this.b.Nw++,this.b.xt.push(this)):(this.Af=-1,this.b.ut.push(this))}function w(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.Aa=[];this.Ah=null;this.Cv=c[1];this.Ka=!0}function v(){this.pr=[];this.reset(null)}var C=[];m.prototype.toString=function(){return this.name};
m.prototype.Dp=function(a,b,c){switch(a[0]){case 0:a=new bc(this,b,a);if(a.ld)for(c.push(a),c=0,b=a.kb.length;c<b;c++)a.kb[c].trigger&&this.Ep(a,c);else a.Np()?this.Ep(a,0):c.push(a);break;case 1:a=new Tb(this,b,a);c.push(a);break;case 2:a=new cc(this,b,a),c.push(a)}};m.prototype.Sa=function(){var a,b;a=0;for(b=this.De.length;a<b;a++)this.De[a].Sa(a<b-1&&this.De[a+1].Uj)};m.prototype.ho=function(){R(this.Ol);R(this.zl);this.Oo(this);R(this.zl)};m.prototype.Oo=function(a){var b,c,f,e,g=a.Ol,d=a.zl,
k=this.Bp.pe();b=0;for(c=k.length;b<c;++b)f=k[b],e=f.Ah,!f.Ka||a===e||-1<d.indexOf(e)||(d.push(e),e.Oo(a),g.push(e))};m.prototype.Ya=function(a){this.b.ny||(this.rm=!0,a||(this.b.Im=!0));var b,c;b=0;for(c=this.De.length;b<c;b++){var f=this.De[b];f.Ya();this.b.Il(f.Aa);this.b.Fe&&this.b.ub()}a||(this.b.Im=!1)};m.prototype.Ep=function(a,b){a.ld||this.b.hl.push(a);var c,f,e=a.kb[b],g;e.type?g=e.type.name:g="system";var d=(c=e.ip)?this.jp:this.Dr;d[g]||(d[g]=[]);g=d[g];d=e.rb;if(c){if(e.V.length&&(e=
e.V[0],1===e.type&&2===e.wd.type)){e=e.wd.value.toLowerCase();c=0;for(f=g.length;c<f;c++)if(g[c].method==d){c=g[c].oh;c[e]?c[e].push([a,b]):c[e]=[[a,b]];return}c={};c[e]=[[a,b]];g.push({method:d,oh:c})}}else{c=0;for(f=g.length;c<f;c++)if(g[c].method==d){g[c].oh.push([a,b]);return}Y&&d===Y.prototype.j.Sf?g.unshift({method:d,oh:[[a,b]]}):g.push({method:d,oh:[[a,b]]})}};Jb=m;u.prototype.qm=function(){return this.ta?this.type.e.length:this.e.length};u.prototype.Dc=function(){return this.ta?this.type.e:
this.e};u.prototype.oi=function(a){a&&(a.b.Db().kc.ld?(this.ta&&(R(this.e),Fa(this.la,a.type.e),this.ta=!1),a=this.la.indexOf(a),-1!==a&&(this.e.push(this.la[a]),this.la.splice(a,1))):(this.ta=!1,R(this.e),this.e[0]=a))};rb=u;window._c2hh_="417E4E0E570EED14CF766147927F77190F28B24E";c.prototype.Sa=function(a){var b,c=this.parent;if(this.group)for(this.el=!0;c;){if(!c.group){this.el=!1;break}c=c.parent}this.bo=!this.Np()&&(!this.parent||this.parent.group&&this.parent.el);this.zp=!!a;this.Ue=this.Aa.slice(0);
for(c=this.parent;c;){a=0;for(b=c.Aa.length;a<b;a++)this.pt(c.Aa[a]);c=c.parent}this.Aa=h(this.Aa);this.Ue=h(this.Ue);a=0;for(b=this.kb.length;a<b;a++)this.kb[a].Sa();a=0;for(b=this.$c.length;a<b;a++)this.$c[a].Sa();a=0;for(b=this.Wc.length;a<b;a++)this.Wc[a].Sa(a<b-1&&this.Wc[a+1].Uj)};c.prototype.Nk=function(a){if(this.nf!==!!a){this.nf=!!a;var b;a=0;for(b=this.jj.length;a<b;++a)this.jj[a].Jr();0<b&&this.b.ya.hf&&this.b.ya.hf.ho()}};c.prototype.Po=function(a){b(a,this.Aa)};c.prototype.pt=function(a){b(a,
this.Ue)};c.prototype.Ok=function(){this.lr=!0;this.parent&&this.parent.Ok()};c.prototype.Np=function(){return this.kb.length?this.kb[0].trigger:!1};c.prototype.Ya=function(){var a,b,c=!1,f=this.b,e=this.b.Db();e.kc=this;var g=this.kb;this.Uj||(e.Ql=!1);if(this.ld){0===g.length&&(c=!0);e.jb=0;for(a=g.length;e.jb<a;e.jb++)b=g[e.jb],b.trigger||(b=b.Ya())&&(c=!0);(e.vf=c)&&this.Kk()}else{e.jb=0;for(a=g.length;e.jb<a;e.jb++)if(b=g[e.jb].Ya(),!b){e.vf=!1;this.bo&&f.Fe&&f.ub();return}e.vf=!0;this.Kk()}this.ju(e)};
c.prototype.ju=function(a){a.vf&&this.zp&&(a.Ql=!0);this.bo&&this.b.Fe&&this.b.ub()};c.prototype.Bw=function(a){this.b.Db().kc=this;this.kb[a].Ya()&&(this.Kk(),this.b.Db().vf=!0)};c.prototype.Kk=function(){var a=this.b.Db(),b;a.ic=0;for(b=this.$c.length;a.ic<b;a.ic++)if(this.$c[a.ic].Ya())return;this.Yq()};c.prototype.xw=function(){var a=this.b.Db(),b;for(b=this.$c.length;a.ic<b;a.ic++)if(this.$c[a.ic].Ya())return;this.Yq()};c.prototype.Yq=function(){if(this.Wc.length){var a,b,c,f,e=this.Wc.length-
1;this.b.Fk(this);if(this.lr)for(a=0,b=this.Wc.length;a<b;a++)c=this.Wc[a],(f=!this.el||!this.group&&a<e)&&this.b.Ek(c.Aa),c.Ya(),f?this.b.Gf(c.Aa):this.b.Il(c.Aa);else for(a=0,b=this.Wc.length;a<b;a++)this.Wc[a].Ya();this.b.zk()}};c.prototype.Cw=function(){var a=this.b.Db();a.kc=this;var b=!1,c;a.jb=0;for(c=this.kb.length;a.jb<c;a.jb++)if(this.kb[a.jb].Ya())b=!0;else if(!this.ld)return!1;return this.ld?b:!0};c.prototype.yw=function(){this.b.ph++;var a=this.b.Db().jb,b=this.b.Fk(this);if(!this.ld)for(b.jb=
a+1,a=this.kb.length;b.jb<a;b.jb++)if(!this.kb[b.jb].Ya()){this.b.zk();return}this.Kk();this.b.zk()};c.prototype.Jv=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.kb[b].type===a.type)return!1;return!0};bc=c;a.prototype.Sa=function(){var a,b,c;a=0;for(b=this.V.length;a<b;a++)c=this.V[a],c.Sa(),c.Zc&&(this.$g=!0)};a.prototype.Ew=function(){return!0};a.prototype.Ln=function(){var a,b;a=0;for(b=this.V.length;a<b;a++)this.Na[a]=this.V[a].get();return Za(this.rb.apply(this.b.Hd,this.Na),
this.Em)};a.prototype.Dw=function(){var a,b;a=0;for(b=this.V.length;a<b;a++)this.Na[a]=this.V[a].get();a=this.rb.apply(this.cf?this.cf:this.type,this.Na);this.type.cd();return a};a.prototype.Kn=function(){var a,b,c,f,e,g,d,k,h=this.type,l=h.ea(),v=this.Bc.ld&&!this.trigger;b=0;var q=h.oc,m=h.G,u=h.Wd,C=this.dd,w=-1<C,A=this.$g,x=this.V,G=this.Na,U=this.Em,K=this.rb,O;if(A)for(b=0,e=x.length;b<e;++b)g=x[b],g.Zc||(G[b]=g.get(0));else for(b=0,e=x.length;b<e;++b)G[b]=x[b].get(0);if(l.ta){R(l.e);R(l.la);
O=h.e;a=0;for(f=O.length;a<f;++a){k=O[a];if(A)for(b=0,e=x.length;b<e;++b)g=x[b],g.Zc&&(G[b]=g.get(a));w?(b=0,m&&(b=k.type.dg[u]),b=K.apply(k.N[C+b],G)):b=K.apply(k,G);(d=Za(b,U))?l.e.push(k):v&&l.la.push(k)}h.finish&&h.finish(!0);l.ta=!1;h.cd();return l.qm()}c=0;O=(d=v&&!this.Bc.Jv(this))?l.la:l.e;var H=!1;a=0;for(f=O.length;a<f;++a){k=O[a];if(A)for(b=0,e=x.length;b<e;++b)g=x[b],g.Zc&&(G[b]=g.get(a));w?(b=0,m&&(b=k.type.dg[u]),b=K.apply(k.N[C+b],G)):b=K.apply(k,G);if(Za(b,U))if(H=!0,d){if(l.e.push(k),
q)for(b=0,e=k.siblings.length;b<e;b++)g=k.siblings[b],g.type.ea().e.push(g)}else{O[c]=k;if(q)for(b=0,e=k.siblings.length;b<e;b++)g=k.siblings[b],g.type.ea().e[c]=g;c++}else if(d){O[c]=k;if(q)for(b=0,e=k.siblings.length;b<e;b++)g=k.siblings[b],g.type.ea().la[c]=g;c++}else if(v&&(l.la.push(k),q))for(b=0,e=k.siblings.length;b<e;b++)g=k.siblings[b],g.type.ea().la.push(g)}Ea(O,c);if(q)for(m=h.jc,a=0,f=m.length;a<f;a++)k=m[a].ea(),d?Ea(k.la,c):Ea(k.e,c);c=H;if(d&&!H)for(a=0,f=l.e.length;a<f;a++){k=l.e[a];
if(A)for(b=0,e=x.length;b<e;b++)g=x[b],g.Zc&&(G[b]=g.get(a));b=w?K.apply(k.N[C],G):K.apply(k,G);if(Za(b,U)){H=!0;break}}h.finish&&h.finish(c||v);return v?H:l.qm()};Xb=a;e.prototype.Sa=function(){var a,b,c;a=0;for(b=this.V.length;a<b;a++)c=this.V[a],c.Sa(),c.Zc&&(this.$g=!0)};e.prototype.Ln=function(){var a=this.b,b,c,f=this.V,e=this.Na;b=0;for(c=f.length;b<c;++b)e[b]=f[b].get();return this.rb.apply(a.Hd,e)};e.prototype.Kn=function(){var a=this.type,b=this.dd,c=a.Wd,f=this.$g,e=this.V,g=this.Na,d=
this.rb,k=a.ea().Dc(),a=a.G,h=-1<b,l,v,q,m,u,C;if(f)for(v=0,m=e.length;v<m;++v)u=e[v],u.Zc||(g[v]=u.get(0));else for(v=0,m=e.length;v<m;++v)g[v]=e[v].get(0);l=0;for(q=k.length;l<q;++l){C=k[l];if(f)for(v=0,m=e.length;v<m;++v)u=e[v],u.Zc&&(g[v]=u.get(l));h?(v=0,a&&(v=C.type.dg[c]),d.apply(C.N[b+v],g)):d.apply(C,g)}return!1};Yb=e;var A=[],x=-1;g.prototype.Sa=function(){var a,b;if(11===this.type)this.jf=this.b.rp(this.Pi,this.Bc.parent);else if(13===this.type)for(a=0,b=this.Lf.length;a<b;a++)this.Lf[a].Sa();
this.wd&&this.wd.Sa()};g.prototype.Vv=function(a){this.Zc||!a||a.xa.Rk||(this.Zc=!0)};g.prototype.br=function(){this.Zc=!0};g.prototype.ov=function(a){this.le=a||0;a=k();this.wd.get(a);x--;return a.data};g.prototype.pv=function(a){this.le=a||0;a=k();this.wd.get(a);x--;return I(a.data)?a.data:""};g.prototype.vv=function(){return this.object};g.prototype.lv=function(){return this.$o};g.prototype.tv=function(a){this.le=a||0;a=k();this.wd.get(a);x--;return a.lb()?this.b.Zd(a.data):this.b.uh(a.data)};
g.prototype.uv=function(){return this.bb};g.prototype.sv=function(){return this.key};g.prototype.rv=function(){return this.index};g.prototype.qv=function(a){a=a||0;var b=this.Ca.type,c=null,c=b.ea(),f=c.Dc();if(f.length)c=f[a%f.length].type;else if(c.la.length)c=c.la[a%c.la.length].type;else if(b.e.length)c=b.e[a%b.e.length].type;else return 0;return this.index+c.yj[b.Wd]};g.prototype.nv=function(){return this.jf};g.prototype.kv=function(){return this.kp};g.prototype.wv=function(){var a,b;a=0;for(b=
this.Lf.length;a<b;a++)this.Oi[a]=this.Lf[a].get();return this.Oi};Zb=g;l.prototype.Sa=function(){this.Aa=h(this.Aa)};l.prototype.Kf=function(a){var b=this.b.qp();this.parent&&!this.Ih&&b?(this.Af>=b.length&&(b.length=this.Af+1),b[this.Af]=a):this.data=a};l.prototype.wh=function(){var a=this.b.qp();return!this.parent||this.Ih||!a||this.Tj?this.data:this.Af>=a.length||"undefined"===typeof a[this.Af]?this.xm:a[this.Af]};l.prototype.Ya=function(){!this.parent||this.Ih||this.Tj||this.Kf(this.xm)};Tb=
l;w.prototype.toString=function(){return"include:"+this.Ah.toString()};w.prototype.Sa=function(){this.Ah=this.b.Tl[this.Cv];this.sheet.Bp.add(this);this.Aa=h(this.Aa);for(var a=this.parent;a;)a.group&&a.jj.push(this),a=a.parent;this.Jr()};w.prototype.Ya=function(){this.parent&&this.b.ri(this.b.u);this.Ah.rm||this.Ah.Ya(!0);this.parent&&this.b.Gf(this.b.u)};w.prototype.Jr=function(){for(var a=this.parent;a;){if(a.group&&!a.nf){this.Ka=!1;return}a=a.parent}this.Ka=!0};cc=w;v.prototype.reset=function(a){this.kc=
a;this.ic=this.jb=0;R(this.pr);this.Ql=this.vf=!1};Sb=v})();
(function(){function d(b,a){this.Ca=b;this.b=b.b;this.type=a[0];this.get=[this.Au,this.wu,this.Ju,this.Mu,this.lu,this.Ku,this.Eu,this.tu,this.Du,this.Iu,this.mu,this.Hu,this.uu,this.Fu,this.Bu,this.Cu,this.xu,this.yu,this.su,this.Lu,this.Gu,this.zu,this.ru,this.vu][this.type];var c=null;this.fe=this.V=this.Na=this.rb=this.cl=this.second=this.first=this.value=null;this.dd=-1;this.fd=null;this.Pr=-1;this.jf=this.Pi=null;this.Jg=!1;switch(this.type){case 0:case 1:case 2:this.value=a[1];break;case 3:this.first=
new ac(b,a[1]);break;case 18:this.first=new ac(b,a[1]);this.second=new ac(b,a[2]);this.cl=new ac(b,a[3]);break;case 19:this.rb=this.b.ue(a[1]);this.rb!==X.prototype.wa.random&&this.rb!==X.prototype.wa.Gt||this.Ca.br();this.Na=[];this.V=[];3===a.length?(c=a[2],this.Na.length=c.length+1):this.Na.length=1;break;case 20:this.fe=this.b.u[a[1]];this.dd=-1;this.rb=this.b.ue(a[2]);this.Jg=a[3];fc.Function&&this.rb===fc.Function.prototype.wa.ix&&this.Ca.br();a[4]?this.fd=new ac(b,a[4]):this.fd=null;this.Na=
[];this.V=[];6===a.length?(c=a[5],this.Na.length=c.length+1):this.Na.length=1;break;case 21:this.fe=this.b.u[a[1]];this.Jg=a[2];a[3]?this.fd=new ac(b,a[3]):this.fd=null;this.Pr=a[4];break;case 22:this.fe=this.b.u[a[1]];this.fe.Ij(a[2]);this.dd=this.fe.fm(a[2]);this.rb=this.b.ue(a[3]);this.Jg=a[4];a[5]?this.fd=new ac(b,a[5]):this.fd=null;this.Na=[];this.V=[];7===a.length?(c=a[6],this.Na.length=c.length+1):this.Na.length=1;break;case 23:this.Pi=a[1],this.jf=null}this.Ca.Vv(this.fe);4<=this.type&&17>=
this.type&&(this.first=new ac(b,a[1]),this.second=new ac(b,a[2]));if(c){var d,g;d=0;for(g=c.length;d<g;d++)this.V.push(new ac(b,c[d]))}}function q(){++c;u.length===c&&u.push(new $b);return u[c]}function h(b,a,c){var d,g;d=0;for(g=b.length;d<g;++d)b[d].get(c),a[d+1]=c.data}function m(b,a){this.type=b||dc.Rf;this.data=a||0;this.Df=null;this.type==dc.Rf&&(this.data=Math.floor(this.data))}d.prototype.Sa=function(){23===this.type&&(this.jf=this.Ca.b.rp(this.Pi,this.Ca.Bc.parent));this.first&&this.first.Sa();
this.second&&this.second.Sa();this.cl&&this.cl.Sa();this.fd&&this.fd.Sa();if(this.V){var b,a;b=0;for(a=this.V.length;b<a;b++)this.V[b].Sa()}};var u=[],c=-1;d.prototype.Lu=function(b){var a=this.V,e=this.Na;e[0]=b;b=q();h(a,e,b);--c;this.rb.apply(this.b.Hd,e)};d.prototype.Gu=function(b){var a=this.fe,e=this.Na,d=this.V,g=this.fd,l=this.rb,m=this.Ca.le,v=a.ea(),u=v.Dc();if(!u.length)if(v.la.length)u=v.la;else{this.Jg?b.pb(""):b.za(0);return}e[0]=b;b.Df=a;b=q();h(d,e,b);g&&(g.get(b),b.lb()&&(m=b.data,
u=a.e));--c;a=u.length;if(m>=a||m<=-a)m%=a;0>m&&(m+=a);l.apply(u[m],e)};d.prototype.ru=function(b){var a=this.fe,e=this.Na,d=this.V,g=this.fd,l=this.dd,m=this.rb,v=this.Ca.le,u=a.ea(),A=u.Dc();if(!A.length)if(u.la.length)A=u.la;else{this.Jg?b.pb(""):b.za(0);return}e[0]=b;b.Df=a;b=q();h(d,e,b);g&&(g.get(b),b.lb()&&(v=b.data,A=a.e));--c;d=A.length;if(v>=d||v<=-d)v%=d;0>v&&(v+=d);v=A[v];A=0;a.G&&(A=v.type.dg[a.Wd]);m.apply(v.N[l+A],e)};d.prototype.zu=function(b){var a=this.fd,e=this.fe,d=this.Pr,g=this.Ca.le,
h=e.ea(),m=h.Dc();if(!m.length)if(h.la.length)m=h.la;else{this.Jg?b.pb(""):b.za(0);return}if(a){h=q();a.get(h);if(h.lb()){g=h.data;e=e.e;g%=e.length;0>g&&(g+=e.length);d=e[g].ab[d];I(d)?b.pb(d):b.C(d);--c;return}--c}a=m.length;if(g>=a||g<=-a)g%=a;0>g&&(g+=a);g=m[g];m=0;e.G&&(m=g.type.yj[e.Wd]);d=g.ab[d+m];I(d)?b.pb(d):b.C(d)};d.prototype.Au=function(b){b.type=dc.Rf;b.data=this.value};d.prototype.wu=function(b){b.type=dc.Qf;b.data=this.value};d.prototype.Ju=function(b){b.type=dc.String;b.data=this.value};
d.prototype.Mu=function(b){this.first.get(b);b.lb()&&(b.data=-b.data)};d.prototype.lu=function(b){this.first.get(b);var a=q();this.second.get(a);b.lb()&&a.lb()&&(b.data+=a.data,a.tg()&&b.Bg());--c};d.prototype.Ku=function(b){this.first.get(b);var a=q();this.second.get(a);b.lb()&&a.lb()&&(b.data-=a.data,a.tg()&&b.Bg());--c};d.prototype.Eu=function(b){this.first.get(b);var a=q();this.second.get(a);b.lb()&&a.lb()&&(b.data*=a.data,a.tg()&&b.Bg());--c};d.prototype.tu=function(b){this.first.get(b);var a=
q();this.second.get(a);b.lb()&&a.lb()&&(b.data/=a.data,b.Bg());--c};d.prototype.Du=function(b){this.first.get(b);var a=q();this.second.get(a);b.lb()&&a.lb()&&(b.data%=a.data,a.tg()&&b.Bg());--c};d.prototype.Iu=function(b){this.first.get(b);var a=q();this.second.get(a);b.lb()&&a.lb()&&(b.data=Math.pow(b.data,a.data),a.tg()&&b.Bg());--c};d.prototype.mu=function(b){this.first.get(b);var a=q();this.second.get(a);a.wg()||b.wg()?this.ou(b,a):this.nu(b,a);--c};d.prototype.ou=function(b,a){b.wg()&&a.wg()?
this.qu(b,a):this.pu(b,a)};d.prototype.qu=function(b,a){b.data+=a.data};d.prototype.pu=function(b,a){b.wg()?b.data+=(Math.round(1E10*a.data)/1E10).toString():b.pb(b.data.toString()+a.data)};d.prototype.nu=function(b,a){b.za(b.data&&a.data?1:0)};d.prototype.Hu=function(b){this.first.get(b);var a=q();this.second.get(a);b.lb()&&a.lb()&&(b.data||a.data?b.za(1):b.za(0));--c};d.prototype.su=function(b){this.first.get(b);b.data?this.second.get(b):this.cl.get(b)};d.prototype.uu=function(b){this.first.get(b);
var a=q();this.second.get(a);b.za(b.data===a.data?1:0);--c};d.prototype.Fu=function(b){this.first.get(b);var a=q();this.second.get(a);b.za(b.data!==a.data?1:0);--c};d.prototype.Bu=function(b){this.first.get(b);var a=q();this.second.get(a);b.za(b.data<a.data?1:0);--c};d.prototype.Cu=function(b){this.first.get(b);var a=q();this.second.get(a);b.za(b.data<=a.data?1:0);--c};d.prototype.xu=function(b){this.first.get(b);var a=q();this.second.get(a);b.za(b.data>a.data?1:0);--c};d.prototype.yu=function(b){this.first.get(b);
var a=q();this.second.get(a);b.za(b.data>=a.data?1:0);--c};d.prototype.vu=function(b){var a=this.jf.wh();ja(a)?b.C(a):b.pb(a)};ac=d;m.prototype.tg=function(){return this.type===dc.Qf};m.prototype.lb=function(){return this.type===dc.Rf||this.type===dc.Qf};m.prototype.wg=function(){return this.type===dc.String};m.prototype.Bg=function(){this.tg()||(this.wg()&&(this.data=parseFloat(this.data)),this.type=dc.Qf)};m.prototype.za=function(b){this.type=dc.Rf;this.data=Math.floor(b)};m.prototype.C=function(b){this.type=
dc.Qf;this.data=b};m.prototype.pb=function(b){this.type=dc.String;this.data=b};m.prototype.Mw=function(b){ja(b)?(this.type=dc.Qf,this.data=b):I(b)?(this.type=dc.String,this.data=b.toString()):(this.type=dc.Rf,this.data=0)};$b=m;dc={Rf:0,Qf:1,String:2}})();function X(d){this.b=d;this.hc=[]}
X.prototype.Gb=function(){var d={},q,h,m,u,c,b,a,e;d.waits=[];var k=d.waits,g;q=0;for(h=this.hc.length;q<h;q++){b=this.hc[q];g={t:b.time,st:b.jr,s:b.Vn,ev:b.$f.Z,sm:[],sols:{}};b.$f.$c[b.ic]&&(g.act=b.$f.$c[b.ic].Z);m=0;for(u=b.Aa.length;m<u;m++)g.sm.push(b.Aa[m].Z);for(c in b.Qb)if(b.Qb.hasOwnProperty(c)){a=this.b.u[parseInt(c,10)];e={sa:b.Qb[c].Lk,insts:[]};m=0;for(u=b.Qb[c].$d.length;m<u;m++)e.insts.push(b.Qb[c].$d[m].uid);g.sols[a.Z.toString()]=e}k.push(g)}return d};
X.prototype.Xb=function(d){d=d.waits;var q,h,m,u,c,b,a,e,k,g,l;R(this.hc);q=0;for(h=d.length;q<h;q++)if(b=d[q],e=this.b.To[b.ev.toString()]){k=-1;m=0;for(u=e.$c.length;m<u;m++)if(e.$c[m].Z===b.act){k=m;break}if(-1!==k){a={Qb:{},Aa:[],Pl:!1};a.time=b.t;a.jr=b.st||"";a.Vn=!!b.s;a.$f=e;a.ic=k;m=0;for(u=b.sm.length;m<u;m++)(e=this.b.Lj(b.sm[m]))&&a.Aa.push(e);for(c in b.sols)if(b.sols.hasOwnProperty(c)&&(e=this.b.Lj(parseInt(c,10)))){k=b.sols[c];g={Lk:k.sa,$d:[]};m=0;for(u=k.insts.length;m<u;m++)(l=this.b.hg(k.insts[m]))&&
g.$d.push(l);a.Qb[e.index.toString()]=g}this.hc.push(a)}}};
(function(){function d(){}function q(){}function h(){}var m=X.prototype;d.prototype.cs=function(){return!0};d.prototype.Bo=function(){return!0};d.prototype.Gs=function(){return!0};d.prototype.ht=function(){var b=this.b.Jj().I;"undefined"===typeof b.TriggerOnce_lastTick&&(b.TriggerOnce_lastTick=-1);var a=b.TriggerOnce_lastTick,c=this.b.pd;b.TriggerOnce_lastTick=c;return this.b.Rm||a!==c-1};d.prototype.bs=function(b){var a=this.b.Jj(),c=a.I.Every_lastTime||0,d=this.b.qc.aa;"undefined"===typeof a.I.Every_seconds&&
(a.I.Every_seconds=b);var g=a.I.Every_seconds;if(d>=c+g)return a.I.Every_lastTime=c+g,d>=a.I.Every_lastTime+.04&&(a.I.Every_lastTime=d),a.I.Every_seconds=b,!0;d<c-.1&&(a.I.Every_lastTime=d);return!1};d.prototype.Yr=function(b,a,c){return ec(b.wh(),a,c)};d.prototype.ks=function(b){return(b=this.b.jg[b.toLowerCase()])&&b.nf};d.prototype.zo=function(){var b=this.b.Db();return b.Ql?!1:!b.vf};d.prototype.Co=function(){return!0};d.prototype.us=function(){return!0};d.prototype.rl=function(){return!0};d.prototype.Hs=
function(){return!0};d.prototype.ql=function(){return!0};d.prototype.Sr=function(b,a,c){return Qa(V(b),V(c))<=V(a)};d.prototype.hs=function(b,a){return Sa(V(b),V(a))};d.prototype.gs=function(b,a,c){b=Oa(b);a=Oa(a);c=Oa(c);return Sa(c,a)?Sa(b,a)&&!Sa(b,c):!(!Sa(b,a)&&Sa(b,c))};m.j=new d;q.prototype.es=function(b){this.b.Kh||this.b.ih||(this.b.ih=b)};q.prototype.$r=function(b,a,c,d){if(a&&b&&(a=this.b.bp(b,a,c,d))){this.b.hd++;var g;this.b.trigger(Object.getPrototypeOf(b.xa).j.Zg,a);if(a.oc)for(c=0,
d=a.siblings.length;c<d;c++)g=a.siblings[c],this.b.trigger(Object.getPrototypeOf(g.type.xa).j.Zg,g);this.b.hd--;b=b.ea();b.ta=!1;R(b.e);b.e[0]=a;if(a.oc)for(c=0,d=a.siblings.length;c<d;c++)g=a.siblings[c],b=g.type.ea(),b.ta=!1,R(b.e),b.e[0]=g}};q.prototype.Xs=function(b,a){0===b.ll?ja(a)?b.Kf(a):b.Kf(parseFloat(a)):1===b.ll&&b.Kf(a.toString())};q.prototype.Rr=function(b,a){0===b.ll?ja(a)?b.Kf(b.wh()+a):b.Kf(b.wh()+parseFloat(a)):1===b.ll&&b.Kf(b.wh()+a.toString())};q.prototype.Rs=function(b,a){var c=
this.b.jg[b.toLowerCase()];if(c)switch(a){case 0:c.Nk(!1);break;case 1:c.Nk(!0);break;case 2:c.Nk(!c.nf)}};var u=[],c=[];q.prototype.it=function(b){if(!(0>b)){var a,e,d,g=this.b.Db(),h;u.length?h=u.pop():h={Qb:{},Aa:[]};h.Pl=!1;h.time=this.b.qc.aa+b;h.jr="";h.Vn=!1;h.$f=g.kc;h.ic=g.ic+1;b=0;for(a=this.b.u.length;b<a;b++)d=this.b.u[b],e=d.ea(),e.ta&&-1===g.kc.Aa.indexOf(d)||(h.Aa.push(d),d=void 0,c.length?d=c.pop():d={$d:[]},d.Lk=!1,d.Lk=e.ta,Fa(d.$d,e.e),h.Qb[b.toString()]=d);this.hc.push(h);return!0}};
m.H=new q;h.prototype["int"]=function(b,a){I(a)?(b.za(parseInt(a,10)),isNaN(b.data)&&(b.data=0)):b.za(a)};h.prototype["float"]=function(b,a){I(a)?(b.C(parseFloat(a)),isNaN(b.data)&&(b.data=0)):b.C(a)};h.prototype.random=function(b,a,c){void 0===c?b.C(Math.random()*a):b.C(Math.random()*(c-a)+a)};h.prototype.sqrt=function(b,a){b.C(Math.sqrt(a))};h.prototype.abs=function(b,a){b.C(Math.abs(a))};h.prototype.round=function(b,a){b.za(Math.round(a))};h.prototype.floor=function(b,a){b.za(Math.floor(a))};h.prototype.ceil=
function(b,a){b.za(Math.ceil(a))};h.prototype.sin=function(b,a){b.C(Math.sin(V(a)))};h.prototype.cos=function(b,a){b.C(Math.cos(V(a)))};h.prototype.tan=function(b,a){b.C(Math.tan(V(a)))};h.prototype.asin=function(b,a){b.C(Ka(Math.asin(a)))};h.prototype.acos=function(b,a){b.C(Ka(Math.acos(a)))};h.prototype.atan=function(b,a){b.C(Ka(Math.atan(a)))};h.prototype.exp=function(b,a){b.C(Math.exp(a))};h.prototype.log10=function(b,a){b.C(Math.log(a)/Math.LN10)};h.prototype.max=function(b){var a=arguments[1];
"number"!==typeof a&&(a=0);var c,d,g;c=2;for(d=arguments.length;c<d;c++)g=arguments[c],"number"===typeof g&&a<g&&(a=g);b.C(a)};h.prototype.min=function(b){var a=arguments[1];"number"!==typeof a&&(a=0);var c,d,g;c=2;for(d=arguments.length;c<d;c++)g=arguments[c],"number"===typeof g&&a>g&&(a=g);b.C(a)};h.prototype.gf=function(b){b.C(this.b.gf)};h.prototype.Of=function(b){b.C(this.b.Of)};h.prototype.time=function(b){b.C(this.b.qc.aa)};h.prototype.pd=function(b){b.za(this.b.pd)};h.prototype.pk=function(b){b.za(this.b.pk)};
h.prototype.$l=function(b){b.za(this.b.$l)};h.prototype.m=function(b,a,c,d,g){b.C(Ka(Pa(a,c,d,g)))};h.prototype.left=function(b,a,c){b.pb(I(a)?a.substr(0,c):"")};h.prototype.right=function(b,a,c){b.pb(I(a)?a.substr(a.length-c):"")};h.prototype.replace=function(b,a,c,d){I(a)&&I(c)&&I(d)?b.pb(a.replace(new RegExp(gb(c),"gi"),d)):b.pb(I(a)?a:"")};h.prototype.trim=function(b,a){b.pb(I(a)?a.trim():"")};h.prototype.Gt=function(b){var a=N(Math.random()*(arguments.length-1));b.Mw(arguments[a+1])};h.prototype.zw=
function(b,a,c,d){b.za(xa(a,c,d))};h.prototype.Jl=function(b){b.C(this.b.Jl/1E3)};h.prototype.hk=function(b){b.C(this.b.hk)};m.wa=new h;m.Aw=function(){var b,a,e,d,g,h,q=this.b.Db();b=0;for(e=this.hc.length;b<e;b++){d=this.hc[b];if(-1===d.time){if(!d.Vn)continue}else if(d.time>this.b.qc.aa)continue;q.kc=d.$f;q.ic=d.ic;q.jb=0;for(a in d.Qb)d.Qb.hasOwnProperty(a)&&(g=this.b.u[parseInt(a,10)].ea(),h=d.Qb[a],g.ta=h.Lk,Fa(g.e,h.$d),g=h,R(g.$d),c.push(g));d.$f.xw();this.b.Il(d.Aa);d.Pl=!0}a=b=0;for(e=this.hc.length;b<
e;b++)d=this.hc[b],this.hc[a]=d,d.Pl?(ab(d.Qb),R(d.Aa),u.push(d)):a++;Ea(this.hc,a)}})();
(function(){qb=function(d,h){var m=d[1],u=d[3],c=d[4],b=d[5],a=d[6],e=d[7],k=d[8];h.j||(h.j={});h.H||(h.H={});h.wa||(h.wa={});var g=h.j,l=h.H,w=h.wa;u&&(g.yo=function(a,b){return ec(this.x,a,b)},g.Zr=function(a,b){return ec(this.y,a,b)},g.tx=function(){var a=this.k;this.Ba();var b=this.Da;return!(b.right<a.Fa||b.bottom<a.Ga||b.left>a.Pa||b.top>a.Oa)},g.ux=function(){this.Ba();var a=this.Da,b=this.b.ya;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},g.Gx=function(a,b,c){var e=this.ea(),
d=e.Dc();if(!d.length)return!1;var g=d[0],r=g,f=Ya(g.x,g.y,b,c),n,h,k;n=1;for(h=d.length;n<h;n++)if(g=d[n],k=Ya(g.x,g.y,b,c),0===a&&k<f||1===a&&k>f)f=k,r=g;e.oi(r);return!0},l.Yx=function(a){this.x!==a&&(this.x=a,this.D())},l.ct=function(a){this.y!==a&&(this.y=a,this.D())},l.Ko=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.D()},l.Ux=function(a,b){var c=a.bv(this);if(c){var e;c.im?(e=c.im(b,!0),c=c.im(b,!1)):(e=c.x,c=c.y);if(this.x!==e||this.y!==c)this.x=e,this.y=c,this.D()}},l.zx=
function(a){0!==a&&(this.x+=Math.cos(this.m)*a,this.y+=Math.sin(this.m)*a,this.D())},l.yx=function(a,b){0!==b&&(this.x+=Math.cos(V(a))*b,this.y+=Math.sin(V(a))*b,this.D())},w.Ti=function(a){a.C(this.x)},w.Ui=function(a){a.C(this.y)},w.gf=function(a){a.C(this.b.gg(this))});c&&(g.lx=function(a,b){return ec(this.width,a,b)},g.jx=function(a,b){return ec(this.height,a,b)},l.bt=function(a){this.width!==a&&(this.width=a,this.D())},l.Sx=function(a){this.height!==a&&(this.height=a,this.D())},l.Vx=function(a,
b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.D()},w.by=function(a){a.C(this.width)},w.nx=function(a){a.C(this.height)},w.cx=function(a){this.Ba();a.C(this.Da.left)},w.hx=function(a){this.Ba();a.C(this.Da.top)},w.gx=function(a){this.Ba();a.C(this.Da.right)},w.bx=function(a){this.Ba();a.C(this.Da.bottom)});b&&(g.Sr=function(a,b){return Qa(this.m,V(b))<=V(a)},g.hs=function(a){return Sa(this.m,V(a))},g.gs=function(a,b){var c=Oa(a),e=Oa(b),d=Ma(this.m);return Sa(e,c)?Sa(d,c)&&
!Sa(d,e):!(!Sa(d,c)&&Sa(d,e))},l.Ox=function(a){a=V(La(a));isNaN(a)||this.m===a||(this.m=a,this.D())},l.Os=function(a){0===a||isNaN(a)||(this.m+=V(a),this.m=Ma(this.m),this.D())},l.Lx=function(a){0===a||isNaN(a)||(this.m-=V(a),this.m=Ma(this.m),this.D())},l.Mx=function(a,b){var c=Ra(this.m,V(b),V(a));isNaN(c)||this.m===c||(this.m=c,this.D())},l.Nx=function(a,b,c){a=Ra(this.m,Math.atan2(c-this.y,b-this.x),V(a));isNaN(a)||this.m===a||(this.m=a,this.D())},l.Wx=function(a,b){var c=Math.atan2(b-this.y,
a-this.x);isNaN(c)||this.m===c||(this.m=c,this.D())},w.ax=function(a){a.C(Na(this.m))});m||(g.Vr=function(a,b,c){return ec(this.ab[a],b,c)},g.qx=function(a){return this.ab[a]},g.Hx=function(a,b){var c=this.ea(),e=c.Dc();if(!e.length)return!1;var d=e[0],g=d,h=d.ab[b],f,n,k;f=1;for(n=e.length;f<n;f++)if(d=e[f],k=d.ab[b],0===a&&k<h||1===a&&k>h)h=k,g=d;c.oi(g);return!0},g.Fx=function(a){var b,c,e,d,g;if(this.b.Jj().Em){g=this.ea();if(g.ta)for(g.ta=!1,R(g.e),R(g.la),e=this.e,b=0,c=e.length;b<c;b++)d=e[b],
d.uid===a?g.la.push(d):g.e.push(d);else{e=b=0;for(c=g.e.length;b<c;b++)d=g.e[b],g.e[e]=d,d.uid===a?g.la.push(d):e++;Ea(g.e,e)}this.cd();return!!g.e.length}d=this.b.hg(a);if(!d)return!1;g=this.ea();if(!g.ta&&-1===g.e.indexOf(d))return!1;if(this.G)for(a=d.type.Ha,b=0,c=a.length;b<c;b++){if(a[b]===this)return g.oi(d),this.cd(),!0}else if(d.type===this)return g.oi(d),this.cd(),!0;return!1},g.Zg=function(){return!0},g.ws=function(){return!0},l.Ss=function(a,b){var c=this.ab;ja(c[a])?c[a]=ja(b)?b:parseFloat(b):
I(c[a])&&(c[a]=I(b)?b:b.toString())},l.$w=function(a,b){var c=this.ab;ja(c[a])?c[a]=ja(b)?c[a]+b:c[a]+parseFloat(b):I(c[a])&&(c[a]=I(b)?c[a]+b:c[a]+b.toString())},l.Zx=function(a,b){var c=this.ab;ja(c[a])&&(c[a]=ja(b)?c[a]-b:c[a]-parseFloat(b))},l.Px=function(a,b){this.ab[a]=b?1:0},l.$x=function(a){this.ab[a]=1-this.ab[a]},l.as=function(){this.b.Ld(this)},l.ns||(l.ns=function(a){var b,c;try{b=JSON.parse(a)}catch(e){return}this.b.ek(this,b,!0);this.td&&this.td();if(this.N)for(a=0,b=this.N.length;a<
b;++a)c=this.N[a],c.td&&c.td()}),w.mx=function(a){var b=a.Df.e.length,c,e,d;c=0;for(e=this.b.ed.length;c<e;c++)d=this.b.ed[c],a.Df.G?0<=d.type.Ha.indexOf(a.Df)&&b++:d.type===a.Df&&b++;a.za(b)},w.Jx=function(a){a.za(a.Df.ea().Dc().length)},w.ay=function(a){a.za(this.uid)},w.ox=function(a){a.za(this.xh())},w.xo||(w.xo=function(a){a.pb(JSON.stringify(this.b.Mn(this,!0)))}));a&&(g.vx=function(){return this.visible},l.Xx=function(a){!a!==!this.visible&&(this.visible=a,this.b.Y=!0)},g.kx=function(a,b){return ec(mb(100*
this.opacity),a,b)},l.Tx=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.Y=!0)},w.Opacity=function(a){a.C(mb(100*this.opacity))});e&&(g.rx=function(a){return a?this.k===a:!1},g.Ix=function(a){var b=this.ea(),c=b.Dc();if(!c.length)return!1;var e=c[0],d=e,g,h;g=1;for(h=c.length;g<h;g++)if(e=c[g],0===a){if(e.k.index>d.k.index||e.k.index===d.k.index&&e.xd()>d.xd())d=e}else if(e.k.index<d.k.index||e.k.index===d.k.index&&e.xd()<d.xd())d=e;b.oi(d);return!0},l.Cx=function(){var a=
this.k,b=a.e;b.length&&b[b.length-1]===this||(a.Ig(this,!1),a.bh(this,!1),this.b.Y=!0)},l.Ax=function(){var a=this.k,b=a.e;b.length&&b[0]===this||(a.Ig(this,!1),a.nw(this),this.b.Y=!0)},l.Bx=function(a){a&&a!=this.k&&(this.k.Ig(this,!0),this.k=a,a.bh(this,!0),this.b.Y=!0)},l.ey=function(a,b){var c=0===a;if(b){var e=b.Wu(this);e&&e.uid!==this.uid&&(this.k.index!==e.k.index&&(this.k.Ig(this,!0),this.k=e.k,e.k.bh(this,!0)),this.k.Xv(this,e,c),this.b.Y=!0)}},w.xx=function(a){a.za(this.k.vq)},w.wx=function(a){a.pb(this.k.name)},
w.cy=function(a){a.za(this.xd())});k&&(l.Qx=function(a,b){if(this.b.A){var c=this.type.hm(b);if(!(0>c)){var e=1===a;this.ve[c]!==e&&(this.ve[c]=e,this.oe(),this.b.Y=!0)}}},l.Rx=function(a,b,c){if(this.b.A){var e=this.type.hm(a);0>e||(a=this.type.M[e],e=this.Ma[e],b=Math.floor(b),0>b||b>=e.length||(1===this.b.A.hv(a.tb,b)&&(c/=100),e[b]!==c&&(e[b]=c,a.Ka&&(this.b.Y=!0))))}})};Kb=function(){this.El=this.cj=!0;this.type.Xi=!0;this.b.Y=!0;var d,h,m=this.Bl;d=0;for(h=m.length;d<h;++d)m[d](this);this.k.qd&&
this.Ba()};Lb=function(d){d&&this.Bl.push(d)};Nb=function(){if(this.cj){var d=this.Da,h=this.yb;d.set(this.x,this.y,this.x+this.width,this.y+this.height);d.offset(-this.Vb*this.width,-this.Wb*this.height);this.m?(d.offset(-this.x,-this.y),h.dr(d,this.m),h.offset(this.x,this.y),h.Uo(d)):h.Ng(d);d.normalize();this.cj=!1;this.Vw()}};var d=new ta(0,0,0,0);Ob=function(){if(this.k.qd){var q=this.k.wc,h=this.Da;d.set(q.zc(h.left),q.Ac(h.top),q.zc(h.right),q.Ac(h.bottom));this.cc.vj(d)||(this.cc.right<this.cc.left?
q.update(this,null,d):q.update(this,this.cc,d),this.cc.lj(d),this.k.ie=!0)}};Pb=function(){if(this.El&&this.Od){this.Ba();var q=this.type.ij,h=this.Da;d.set(q.zc(h.left),q.Ac(h.top),q.zc(h.right),q.Ac(h.bottom));this.Ae.vj(d)||(this.Ae.right<this.Ae.left?q.update(this,null,d):q.update(this,this.Ae,d),this.Ae.lj(d),this.El=!1)}};Mb=function(d,h){return this.Da.Lb(d,h)&&this.yb.Lb(d,h)?this.na&&!this.na.sg()?(this.na.Wf(this.width,this.height,this.m),this.na.Lb(d-this.x,h-this.y)):!0:!1};Gb=function(){this.type.jl();
return this.pf};Qb=function(){this.k.no();return this.rd};Rb=function(){R(this.ka);var d,h;d=0;for(h=this.ve.length;d<h;d++)this.ve[d]&&this.ka.push(this.type.M[d]);this.Or=!!this.ka.length};Hb=function(){return"Inst"+this.Vq};tb=function(d){if(d&&d.oc&&d.type!=this){var h,m,u;h=0;for(m=d.siblings.length;h<m;h++)if(u=d.siblings[h],u.type==this)return u}d=this.ea().Dc();return d.length?d[0]:null};ub=function(d){var h=this.ea().Dc();return h.length?h[d.xh()%h.length]:null};sb=function(){if(this.Qg&&
!this.G){var d,h;d=0;for(h=this.e.length;d<h;d++)this.e[d].pf=d;var m=d,u=this.b.ed;d=0;for(h=u.length;d<h;++d)u[d].type===this&&(u[d].pf=m++);this.Qg=!1}};Eb=function(d){if(d<this.e.length)return this.e[d];d-=this.e.length;var h=this.b.ed,m,u;m=0;for(u=h.length;m<u;++m)if(h[m].type===this){if(0===d)return h[m];--d}return null};vb=function(){return this.Ve[this.Td]};wb=function(){this.Td++;this.Td===this.Ve.length?this.Ve.push(new rb(this)):this.Ve[this.Td].ta=!0};yb=function(){this.Td++;this.Td===
this.Ve.length&&this.Ve.push(new rb(this));var d=this.Ve[this.Td],h=this.Ve[this.Td-1];h.ta?d.ta=!0:(d.ta=!1,Fa(d.e,h.e),Fa(d.la,h.la))};zb=function(){this.Td--};Ab=function(d){var h,m,u,c,b,a=0;if(!this.G)for(h=0,m=this.Ha.length;h<m;h++)for(b=this.Ha[h],u=0,c=b.Ta.length;u<c;u++){if(d===b.Ta[u].name)return this.I.lastBehIndex=a,b.Ta[u];a++}h=0;for(m=this.Ta.length;h<m;h++){if(d===this.Ta[h].name)return this.I.lastBehIndex=a,this.Ta[h];a++}return null};Bb=function(d){return this.Ij(d)?this.I.lastBehIndex:
-1};Cb=function(d){var h,m;h=0;for(m=this.M.length;h<m;h++)if(this.M[h].name===d)return h;return-1};Db=function(){if(this.oc&&!this.G){var d,h,m,u,c,b,a;this.jl();b=this.ea();var e=b.ta,k=(d=this.b.Db())&&d.kc&&d.kc.ld;d=0;for(h=this.jc.length;d<h;d++)if(c=this.jc[d],c!==this&&(c.jl(),a=c.ea(),a.ta=e,!e)){R(a.e);m=0;for(u=b.e.length;m<u;++m)a.e[m]=c.sp(b.e[m].pf);if(k)for(R(a.la),m=0,u=b.la.length;m<u;++m)a.la[m]=c.sp(b.la[m].pf)}}};Fb=function(){return"Type"+this.Z};ec=function(d,h,m){if("undefined"===
typeof d||"undefined"===typeof m)return!1;switch(h){case 0:return d===m;case 1:return d!==m;case 2:return d<m;case 3:return d<=m;case 4:return d>m;case 5:return d>=m;default:return!1}}})();var nc={};function qc(d){this.b=d}
(function(){function d(a){a=Math.pow(10,a/20);0>a&&(a=0);1<a&&(a=1);return a}function q(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function h(a){a=a.toLowerCase();return W.hasOwnProperty(a)&&W[a].length?W[a][0].Cc():D.destination}function m(){return D.createGain?D.createGain():D.createGainNode()}function u(a){return D.createDelay?D.createDelay(a):D.createDelayNode(a)}function c(a){a.start?a.start(0):a.noteOn(0)}function b(a,b,c){a.start?a.start(0,b):a.noteGrainOn(0,b,c-b)}function a(a){try{a.stop?
a.stop(0):a.noteOff(0)}catch(b){}}function e(a,b,c,f,e,d){this.type="filter";this.md=[a,b,c,f,e,d];this.ca=m();this.L=m();this.L.gain.value=d;this.J=m();this.J.gain.value=1-d;this.Wa=D.createBiquadFilter();this.Wa.type="number"===typeof this.Wa.type?a:Dc[a];this.Wa.frequency.value=b;this.Wa.detune&&(this.Wa.detune.value=c);this.Wa.Q.value=f;this.Wa.gain.value=e;this.ca.connect(this.Wa);this.ca.connect(this.J);this.Wa.connect(this.L)}function k(a,b,c){this.type="delay";this.md=[a,b,c];this.ca=m();
this.L=m();this.L.gain.value=c;this.J=m();this.J.gain.value=1-c;this.ei=m();this.Lc=u(a);this.Lc.delayTime.value=a;this.sj=m();this.sj.gain.value=b;this.ca.connect(this.ei);this.ca.connect(this.J);this.ei.connect(this.L);this.ei.connect(this.Lc);this.Lc.connect(this.sj);this.sj.connect(this.ei)}function g(a,b,c,f){this.type="convolve";this.md=[b,c,f];this.ca=m();this.L=m();this.L.gain.value=c;this.J=m();this.J.gain.value=1-c;this.df=D.createConvolver();a&&(this.df.normalize=b,this.df.buffer=a);this.ca.connect(this.df);
this.ca.connect(this.J);this.df.connect(this.L)}function l(a,b,f,e,d){this.type="flanger";this.md=[a,b,f,e,d];this.ca=m();this.J=m();this.J.gain.value=1-d/2;this.L=m();this.L.gain.value=d/2;this.zj=m();this.zj.gain.value=e;this.Lc=u(a+b);this.Lc.delayTime.value=a;this.nb=D.createOscillator();this.nb.frequency.value=f;this.vc=m();this.vc.gain.value=b;this.ca.connect(this.Lc);this.ca.connect(this.J);this.Lc.connect(this.L);this.Lc.connect(this.zj);this.zj.connect(this.Lc);this.nb.connect(this.vc);this.vc.connect(this.Lc.delayTime);
c(this.nb)}function w(a,b,f,e,d,g){this.type="phaser";this.md=[a,b,f,e,d,g];this.ca=m();this.J=m();this.J.gain.value=1-g/2;this.L=m();this.L.gain.value=g/2;this.Wa=D.createBiquadFilter();this.Wa.type="number"===typeof this.Wa.type?7:"allpass";this.Wa.frequency.value=a;this.Wa.detune&&(this.Wa.detune.value=b);this.Wa.Q.value=f;this.nb=D.createOscillator();this.nb.frequency.value=d;this.vc=m();this.vc.gain.value=e;this.ca.connect(this.Wa);this.ca.connect(this.J);this.Wa.connect(this.L);this.nb.connect(this.vc);
this.vc.connect(this.Wa.frequency);c(this.nb)}function v(a){this.type="gain";this.md=[a];this.fa=m();this.fa.gain.value=a}function C(a,b){this.type="tremolo";this.md=[a,b];this.fa=m();this.fa.gain.value=1-b/2;this.nb=D.createOscillator();this.nb.frequency.value=a;this.vc=m();this.vc.gain.value=b/2;this.nb.connect(this.vc);this.vc.connect(this.fa.gain);c(this.nb)}function A(a,b){this.type="ringmod";this.md=[a,b];this.ca=m();this.L=m();this.L.gain.value=b;this.J=m();this.J.gain.value=1-b;this.xi=m();
this.xi.gain.value=0;this.nb=D.createOscillator();this.nb.frequency.value=a;this.nb.connect(this.xi.gain);c(this.nb);this.ca.connect(this.xi);this.ca.connect(this.J);this.xi.connect(this.L)}function x(a,b,c,f,e){this.type="distortion";this.md=[a,b,c,f,e];this.ca=m();this.Bk=m();this.Ak=m();this.Hw(c,Math.pow(10,f/20));this.L=m();this.L.gain.value=e;this.J=m();this.J.gain.value=1-e;this.nl=D.createWaveShaper();this.qj=new Float32Array(65536);this.Tu(a,b);this.nl.qj=this.qj;this.ca.connect(this.Bk);
this.ca.connect(this.J);this.Bk.connect(this.nl);this.nl.connect(this.Ak);this.Ak.connect(this.L)}function p(a,b,c,f,e){this.type="compressor";this.md=[a,b,c,f,e];this.fa=D.createDynamicsCompressor();try{this.fa.threshold.value=a,this.fa.knee.value=b,this.fa.ratio.value=c,this.fa.attack.value=f,this.fa.release.value=e}catch(d){}}function t(a,b){this.type="analyser";this.md=[a,b];this.fa=D.createAnalyser();this.fa.fftSize=a;this.fa.smoothingTimeConstant=b;this.Ru=new Float32Array(this.fa.frequencyBinCount);
this.hr=new Uint8Array(a);this.ni=0}function r(){this.K=null;this.gk=0;this.We=[];this.gn=this.Wj=this.Vj=0}function f(a,b){this.src=a;this.W=S;this.jd=b;this.Wi=!1;var c=this;this.cn=this.wn=null;this.Gg=[];this.Mk=0;this.so=this.Wl=this.or=this.wk=!1;1===S&&b&&(this.W=0,this.wn=m());this.bf=this.ma=null;var f;switch(this.W){case 0:this.ma=new Audio;this.ma.crossOrigin="anonymous";this.ma.addEventListener("canplaythrough",function(){c.so=!0});1===S&&D.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&
(this.or=!0,this.ma.addEventListener("canplay",function(){c.cn||(c.cn=D.createMediaElementSource(c.ma),c.cn.connect(c.wn))}));this.ma.autoplay=!1;this.ma.ky="auto";this.ma.src=a;break;case 1:f=new XMLHttpRequest;f.open("GET",a,!0);f.responseType="arraybuffer";f.onload=function(){c.bf=f.response;c.Mt()};f.onerror=function(){c.Wl=!0};f.send();break;case 2:this.ma=!0;break;case 3:this.ma=!0}}function n(a,b){var c=this;this.tag=b;this.yc=this.Yd=!0;this.src=a.src;this.buffer=a;this.W=S;this.jd=a.jd;this.playbackRate=
1;this.mg=!0;this.pc=this.je=!1;this.ec=0;this.Hh=this.ug=this.yd=!1;this.volume=1;this.un=function(){c.pc||this!==c.Vi||(c.mg=!0,c.yc=!0,J=c.tag,Q.trigger(qc.prototype.j.Si,ea))};this.Vi=null;this.qg=1===K&&!this.jd||2===K;this.Dg=1;this.startTime=this.qg?Q.qc.aa:Q.qe.aa;this.Ra=this.Za=null;this.Ad=!1;this.Qa=null;this.Jq=this.Iq=this.Hq=this.Gq=this.Lq=this.Kq=0;this.n=null;var f=!1;1!==this.W||0!==this.buffer.W||this.buffer.or||(this.W=0);switch(this.W){case 0:this.jd?(this.n=a.ma,f=!a.Wi,a.Wi=
!0):(this.n=new Audio,this.n.crossOrigin="anonymous",this.n.autoplay=!1,this.n.src=a.ma.src,f=!0);f&&this.n.addEventListener("ended",function(){J=c.tag;c.yc=!0;Q.trigger(qc.prototype.j.Si,ea)});break;case 1:this.Za=m();this.Za.connect(h(b));1===this.buffer.W?a.ma&&(this.n=D.createBufferSource(),this.n.buffer=a.ma,this.n.connect(this.Za)):(this.n=this.buffer.ma,this.buffer.wn.connect(this.Za),this.buffer.Wi||(this.buffer.Wi=!0,this.buffer.ma.addEventListener("ended",function(){J=c.tag;c.yc=!0;Q.trigger(qc.prototype.j.Si,
ea)})));break;case 2:this.n=new window.Media(M+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(c.mg=!0,c.yc=!0,J=c.tag,Q.trigger(qc.prototype.j.Si,ea))});break;case 3:this.n=!0}}function z(a){R(Ca);if(a.length){var b,c,f;b=0;for(c=E.length;b<c;b++)f=E[b],nb(a,f.tag)&&Ca.push(f)}else G&&!G.lg()&&(R(Ca),Ca[0]=G)}function L(a,b){W.hasOwnProperty(a)?W[a].push(b):W[a]=[b];var c,f,e,d,g=D.destination;if(W.hasOwnProperty(a)&&(e=W[a],e.length))for(g=e[0].Cc(),c=0,f=e.length;c<f;c++)d=e[c],
c+1===f?d.Hc(D.destination):d.Hc(e[c+1].Cc());z(a);c=0;for(f=Ca.length;c<f;c++)Ca[c].sw(g);Ja&&xb===a&&(Ja.disconnect(),Ja.connect(g))}function y(){}function F(){}var B=qc.prototype;B.ua=function(a){this.xa=a;this.b=a.b};B.ua.prototype.P=function(){};var Q=null,ea=null,J="",M="",S=0,D=null,T=[],E=[],G=null,U=!1,K=0,O=!1,H=1,ga=0,P=0,oa=1,ha=1,va=10,wa=1E4,zc=1,Ja=null,xb="",Ua=!1,Va=[],W={},Dc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");e.prototype.Hc=function(a){this.L.disconnect();
this.L.connect(a);this.J.disconnect();this.J.connect(a)};e.prototype.remove=function(){this.ca.disconnect();this.Wa.disconnect();this.L.disconnect();this.J.disconnect()};e.prototype.Cc=function(){return this.ca};k.prototype.Hc=function(a){this.L.disconnect();this.L.connect(a);this.J.disconnect();this.J.connect(a)};k.prototype.remove=function(){this.ca.disconnect();this.ei.disconnect();this.Lc.disconnect();this.sj.disconnect();this.L.disconnect();this.J.disconnect()};k.prototype.Cc=function(){return this.ca};
g.prototype.Hc=function(a){this.L.disconnect();this.L.connect(a);this.J.disconnect();this.J.connect(a)};g.prototype.remove=function(){this.ca.disconnect();this.df.disconnect();this.L.disconnect();this.J.disconnect()};g.prototype.Cc=function(){return this.ca};l.prototype.Hc=function(a){this.J.disconnect();this.J.connect(a);this.L.disconnect();this.L.connect(a)};l.prototype.remove=function(){this.ca.disconnect();this.Lc.disconnect();this.nb.disconnect();this.vc.disconnect();this.J.disconnect();this.L.disconnect();
this.zj.disconnect()};l.prototype.Cc=function(){return this.ca};w.prototype.Hc=function(a){this.J.disconnect();this.J.connect(a);this.L.disconnect();this.L.connect(a)};w.prototype.remove=function(){this.ca.disconnect();this.Wa.disconnect();this.nb.disconnect();this.vc.disconnect();this.J.disconnect();this.L.disconnect()};w.prototype.Cc=function(){return this.ca};v.prototype.Hc=function(a){this.fa.disconnect();this.fa.connect(a)};v.prototype.remove=function(){this.fa.disconnect()};v.prototype.Cc=function(){return this.fa};
C.prototype.Hc=function(a){this.fa.disconnect();this.fa.connect(a)};C.prototype.remove=function(){this.nb.disconnect();this.vc.disconnect();this.fa.disconnect()};C.prototype.Cc=function(){return this.fa};A.prototype.Hc=function(a){this.L.disconnect();this.L.connect(a);this.J.disconnect();this.J.connect(a)};A.prototype.remove=function(){this.nb.disconnect();this.xi.disconnect();this.ca.disconnect();this.L.disconnect();this.J.disconnect()};A.prototype.Cc=function(){return this.ca};x.prototype.Hw=function(a,
b){.01>a&&(a=.01);this.Bk.gain.value=a;this.Ak.gain.value=Math.pow(1/a,.6)*b};x.prototype.shape=function(a,b,c){var f=1.05*c*b-b;c=0>a?-1:1;a=0>a?-a:a;b=a<b?a:b+f*(1-Math.exp(-(1/f)*(a-b)));return b*c};x.prototype.Tu=function(a,b){for(var c=Math.pow(10,a/20),f=Math.pow(10,b/20),e=0,d=0;32768>d;++d)e=d/32768,e=this.shape(e,c,f),this.qj[32768+d]=e,this.qj[32768-d-1]=-e};x.prototype.Hc=function(a){this.L.disconnect();this.L.connect(a);this.J.disconnect();this.J.connect(a)};x.prototype.remove=function(){this.ca.disconnect();
this.Bk.disconnect();this.nl.disconnect();this.Ak.disconnect();this.L.disconnect();this.J.disconnect()};x.prototype.Cc=function(){return this.ca};p.prototype.Hc=function(a){this.fa.disconnect();this.fa.connect(a)};p.prototype.remove=function(){this.fa.disconnect()};p.prototype.Cc=function(){return this.fa};t.prototype.Ja=function(){this.fa.getFloatFrequencyData(this.Ru);this.fa.getByteTimeDomainData(this.hr);for(var a=this.fa.fftSize,b=0,c=this.ni=0,f=0;b<a;b++)f=(this.hr[b]-128)/128,0>f&&(f=-f),
this.ni<f&&(this.ni=f),c+=f*f;this.ni=q(this.ni);q(Math.sqrt(c/a))};t.prototype.Hc=function(a){this.fa.disconnect();this.fa.connect(a)};t.prototype.remove=function(){this.fa.disconnect()};t.prototype.Cc=function(){return this.fa};r.prototype.yi=function(a){if(this.K=a)this.Vj=this.K.x,this.Wj=this.K.y;R(this.We)};r.prototype.Qj=function(){return!!this.K};r.prototype.Ja=function(a){this.K&&0!==a&&(this.gn=Pa(this.Vj,this.Wj,this.K.x,this.K.y),a=Ya(this.Vj,this.Wj,this.K.x,this.K.y)/a,4>this.We.length||
this.We.shift(),this.We.push(a),this.Vj=this.K.x,this.Wj=this.K.y)};r.prototype.wp=function(){if(!this.We.length)return 0;var a,b,c=0;a=0;for(b=this.We.length;a<b;a++)c+=this.We[a];return c/this.We.length};r.prototype.lm=function(){return Math.cos(this.gn)*this.wp()};r.prototype.mm=function(){return Math.sin(this.gn)*this.wp()};var Ac=!1;f.prototype.Mt=function(){if(!this.ma&&this.bf){var a=this;if(D.decodeAudioData)D.decodeAudioData(this.bf,function(b){a.ma=b;a.bf=null;var c,f,e;if(ia(a.xk)||O)ia(a.kj)||
(c=a.kj.df,c.normalize=a.uq,c.buffer=b);else if(a.Gg.length){c=0;for(f=a.Gg.length;c<f;c++){b=a.Gg[c];e=new n(a,b.tr);e.Rn(!0);if("undefined"!==typeof b.wq&&(b.K=Q.hg(b.wq),!b.K))continue;if(b.K){var d=Ta(b.K.x,b.K.y,-b.K.k.Xa(),ga,P,!0),g=Ta(b.K.x,b.K.y,-b.K.k.Xa(),ga,P,!1);e.Qn(d,g,Ka(b.K.m-b.K.k.Xa()),b.tm,b.jn,b.mn);e.yi(b.K)}else e.Qn(b.x,b.y,b.lt,b.tm,b.jn,b.mn);e.play(a.$m,a.qo,a.Mk);a.wk&&e.pause();E.push(e)}R(a.Gg)}else e=new n(a,a.xk||""),e.play(a.$m,a.qo,a.Mk),a.wk&&e.pause(),E.push(e)},
function(){a.Wl=!0});else if(this.ma=D.createBuffer(this.bf,!1),this.bf=null,ia(this.xk)||O)ia(this.kj)||(b=this.kj.df,b.normalize=this.uq,b.buffer=this.ma);else{var b=new n(this,this.xk);b.play(this.$m,this.qo,this.Mk);this.wk&&b.pause();E.push(b)}}};f.prototype.Hp=function(){switch(this.W){case 0:var a=4<=this.ma.readyState;a&&(this.so=!0);return a||this.so;case 1:return!!this.bf||!!this.ma;case 2:return!0;case 3:return!0}return!1};f.prototype.Kv=function(){switch(this.W){case 0:return this.Hp();
case 1:return!!this.ma;case 2:return!0;case 3:return!0}return!1};f.prototype.Bv=function(){switch(this.W){case 0:return!!this.ma.error;case 1:return this.Wl}return!1};n.prototype.lg=function(){switch(this.W){case 0:return this.n.ended;case 1:return 1===this.buffer.W?!this.Yd&&!this.yc&&this.n.loop||this.pc?!1:this.mg:this.n.ended;case 2:return this.mg;case 3:!0}return!0};n.prototype.Dt=function(){return this.Yd||this.yc?!0:this.lg()};n.prototype.Rn=function(a){1===S&&(!this.Ad&&a?this.Za&&(this.Ra||
(this.Ra=D.createPanner(),this.Ra.panningModel="number"===typeof this.Ra.panningModel?oa:["equalpower","HRTF","soundfield"][oa],this.Ra.distanceModel="number"===typeof this.Ra.distanceModel?ha:["linear","inverse","exponential"][ha],this.Ra.refDistance=va,this.Ra.maxDistance=wa,this.Ra.rolloffFactor=zc),this.Za.disconnect(),this.Za.connect(this.Ra),this.Ra.connect(h(this.tag)),this.Ad=!0):this.Ad&&!a&&this.Za&&(this.Ra.disconnect(),this.Za.disconnect(),this.Za.connect(h(this.tag)),this.Ad=!1))};n.prototype.Qn=
function(a,b,c,f,e,d){this.Ad&&1===S&&(this.Ra.setPosition(a,b,0),this.Ra.setOrientation(Math.cos(V(c)),Math.sin(V(c)),0),this.Ra.coneInnerAngle=f,this.Ra.coneOuterAngle=e,this.Ra.coneOuterGain=d,this.Kq=a,this.Lq=b,this.Gq=c,this.Hq=f,this.Iq=e,this.Jq=d)};n.prototype.yi=function(a){this.Ad&&1===S&&(this.Qa||(this.Qa=new r),this.Qa.yi(a))};n.prototype.Ja=function(a){if(this.Ad&&1===S&&this.Qa&&this.Qa.Qj()&&this.pg()){this.Qa.Ja(a);a=this.Qa.K;var b=Ta(a.x,a.y,-a.k.Xa(),ga,P,!0),c=Ta(a.x,a.y,-a.k.Xa(),
ga,P,!1);this.Ra.setPosition(b,c,0);b=0;"undefined"!==typeof this.Qa.K.m&&(b=a.m-a.k.Xa(),this.Ra.setOrientation(Math.cos(b),Math.sin(b),0));b=Ta(this.Qa.lm(),this.Qa.mm(),-a.k.Xa(),0,0,!0);c=Ta(this.Qa.lm(),this.Qa.mm(),-a.k.Xa(),0,0,!1);this.Ra.setVelocity(b,c,0)}};n.prototype.play=function(a,f,e){var d=this.n;this.yd=a;this.volume=f;e=e||0;switch(this.W){case 0:1!==d.playbackRate&&(d.playbackRate=1);d.volume!==f*H&&(d.volume=f*H);d.loop!==a&&(d.loop=a);d.muted&&(d.muted=!1);if(d.currentTime!==
e)try{d.currentTime=e}catch(g){}if(this.jd&&Ua&&!Q.sb)Va.push(this);else try{this.n.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.Dg=1;if(1===this.buffer.W)this.Za.gain.value=f*H,this.Yd||(this.n=D.createBufferSource(),this.n.buffer=this.buffer.ma,this.n.connect(this.Za)),this.n.onended=this.un,this.Vi=this.n,this.n.loop=a,this.mg=!1,0===e?c(this.n):b(this.n,e,this.lf());else{1!==d.playbackRate&&
(d.playbackRate=1);d.loop!==a&&(d.loop=a);d.volume=f*H;if(d.currentTime!==e)try{d.currentTime=e}catch(n){}this.jd&&Ua&&!Q.sb?Va.push(this):d.play()}break;case 2:(!this.Yd&&this.yc||0!==e)&&d.seekTo(e);d.play();this.mg=!1;break;case 3:Q.Eb?AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=1;this.startTime=(this.qg?Q.qc.aa:Q.qe.aa)-e;this.pc=this.yc=this.Yd=!1};n.prototype.stop=function(){switch(this.W){case 0:this.n.paused||this.n.pause();break;case 1:1===
this.buffer.W?a(this.n):this.n.paused||this.n.pause();break;case 2:this.n.stop();break;case 3:Q.Eb&&AppMobi.context.stopSound(this.src)}this.yc=!0;this.pc=!1};n.prototype.pause=function(){if(!(this.Yd||this.yc||this.lg()||this.pc)){switch(this.W){case 0:this.n.paused||this.n.pause();break;case 1:1===this.buffer.W?(this.ec=this.jm(),this.yd&&(this.ec=this.ec%this.lf()),this.pc=!0,a(this.n)):this.n.paused||this.n.pause();break;case 2:this.n.pause();break;case 3:Q.Eb&&AppMobi.context.stopSound(this.src)}this.pc=
!0}};n.prototype.ww=function(){if(!(this.Yd||this.yc||this.lg())&&this.pc){switch(this.W){case 0:this.n.play();break;case 1:1===this.buffer.W?(this.n=D.createBufferSource(),this.n.buffer=this.buffer.ma,this.n.connect(this.Za),this.n.onended=this.un,this.Vi=this.n,this.n.loop=this.yd,this.Za.gain.value=H*this.volume*this.Dg,this.startTime=(this.qg?Q.qc.aa:Q.qe.aa)-this.ec,b(this.n,this.ec,this.lf())):this.n.play();break;case 2:this.n.play();break;case 3:Q.Eb&&AppMobi.context.resumeSound(this.src)}this.pc=
!1}};n.prototype.seek=function(a){if(!(this.Yd||this.yc||this.lg()))switch(this.W){case 0:try{this.n.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.W)this.pc?this.ec=a:(this.pause(),this.ec=a,this.ww());else try{this.n.currentTime=a}catch(c){}break;case 3:Q.Eb&&AppMobi.context.seekSound(this.src,a)}};n.prototype.sw=function(a){1===this.W&&(this.Ad?(this.Ra.disconnect(),this.Ra.connect(a)):(this.Za.disconnect(),this.Za.connect(a)))};n.prototype.lf=function(){switch(this.W){case 0:if("undefined"!==
typeof this.n.duration)return this.n.duration;break;case 1:return this.buffer.ma.duration;case 2:return this.n.getDuration();case 3:if(Q.Eb)return AppMobi.context.getDurationSound(this.src)}return 0};n.prototype.jm=function(){var a=this.lf(),b=0;switch(this.W){case 0:"undefined"!==typeof this.n.currentTime&&(b=this.n.currentTime);break;case 1:if(1===this.buffer.W){if(this.pc)return this.ec;b=(this.qg?Q.qc.aa:Q.qe.aa)-this.startTime}else"undefined"!==typeof this.n.currentTime&&(b=this.n.currentTime);
break;case 3:Q.Eb&&(b=AppMobi.context.getPlaybackTimeSound(this.src))}!this.yd&&b>a&&(b=a);return b};n.prototype.pg=function(){return!this.pc&&!this.Yd&&!this.yc&&!this.lg()};n.prototype.Lw=function(a){this.volume=a;this.Nr()};n.prototype.Nr=function(){var a=this.volume*H;isFinite(a)||(a=0);switch(this.W){case 0:"undefined"!==typeof this.n.volume&&this.n.volume!==a&&(this.n.volume=a);break;case 1:1===this.buffer.W?this.Za.gain.value=a*this.Dg:"undefined"!==typeof this.n.volume&&this.n.volume!==a&&
(this.n.volume=a)}};n.prototype.uj=function(a){switch(this.W){case 0:this.n.muted!==!!a&&(this.n.muted=!!a);break;case 1:1===this.buffer.W?(this.Dg=a?0:1,this.Za.gain.value=H*this.volume*this.Dg):this.n.muted!==!!a&&(this.n.muted=!!a)}};n.prototype.Iw=function(){this.ug=!0;this.uj(this.ug||this.Hh)};n.prototype.$q=function(a){this.Hh=!!a;this.uj(this.ug||this.Hh)};n.prototype.Mr=function(){var a=this.playbackRate;this.qg&&(a*=Q.Of);switch(this.W){case 0:this.n.playbackRate!==a&&(this.n.playbackRate=
a);break;case 1:1===this.buffer.W?this.n.playbackRate.value!==a&&(this.n.playbackRate.value=a):this.n.playbackRate!==a&&(this.n.playbackRate=a)}};n.prototype.Kw=function(c){switch(this.W){case 0:c?this.pg()?(this.n.pause(),this.je=!0):this.je=!1:this.je&&this.n.play();break;case 1:c?this.pg()?(1===this.buffer.W?(this.ec=this.jm(),this.yd&&(this.ec=this.ec%this.lf()),a(this.n)):this.n.pause(),this.je=!0):this.je=!1:this.je&&(1===this.buffer.W?(this.n=D.createBufferSource(),this.n.buffer=this.buffer.ma,
this.n.connect(this.Za),this.n.onended=this.un,this.Vi=this.n,this.n.loop=this.yd,this.Za.gain.value=H*this.volume*this.Dg,this.startTime=(this.qg?Q.qc.aa:Q.qe.aa)-this.ec,b(this.n,this.ec,this.lf())):this.n.play());break;case 2:c?this.pg()?(this.n.pause(),this.je=!0):this.je=!1:this.je&&this.n.play()}};B.ja=function(a){this.type=a;Q=this.b=a.b;ea=this;this.Ob=null;this.Wh=-600;!(this.b.Jh||this.b.Rj&&(this.b.Dh||this.b.Sj))||this.b.Eh||this.b.Ea||this.b.Fm||(Ua=!0);D=null;"undefined"!==typeof AudioContext?
(S=1,D=new AudioContext):"undefined"!==typeof webkitAudioContext&&(S=1,D=new webkitAudioContext);(this.b.Jh&&1===S||Ua)&&document.addEventListener("touchstart",function(){var a,b,f;!Ac&&D&&(a=D.createBuffer(1,1,22050),b=D.createBufferSource(),b.buffer=a,b.connect(D.destination),c(b),Ac=!0);if(Ua){if(!O)for(a=0,b=Va.length;a<b;++a)f=Va[a],f.yc||f.pc||f.n.play();R(Va)}},!0);1!==S&&(this.b.Pc&&"undefined"!==typeof window.Media?S=2:this.b.ng&&(S=3));2===S&&(M=location.href,a=M.lastIndexOf("/"),-1<a&&
(M=M.substr(0,a+1)),M=M.replace("file://",""));if(this.b.Jp&&this.b.Lv&&"undefined"===typeof Audio)alert("It looks like you're using Safari for Windows without Quicktime.  Audio cannot be played until Quicktime is installed."),this.b.Ld(this);else{if(this.b.Eb)U=this.b.Rj;else try{U=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(b){U=!1}this.b.Li(this)}};var pa=B.ja.prototype;pa.P=function(){this.b.Vf=this;K=this.B[0];this.ke=this.B[1];this.iw=0!==this.B[2];oa=this.B[3];ha=this.B[4];
this.Wh=-this.B[5];va=this.B[6];wa=this.B[7];zc=this.B[8];this.Ob=new r;var a=this.b.T||this.b.width,b=this.b.S||this.b.height;1===S&&("undefined"!==typeof D.listener.dopplerFactor&&(D.listener.dopplerFactor=0),D.listener.setPosition(a/2,b/2,this.Wh),D.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,b){Ja&&Ja.disconnect();xb=b.toLowerCase();Ja=D.createMediaStreamSource(a);Ja.connect(h(xb))});this.b.qt(function(a){ea.ew(a)});var c=this;this.b.wl(function(a){c.nn(a)})};pa.nn=
function(a){var b,c,f;b=0;for(c=E.length;b<c;b++)f=E[b],f.Qa&&f.Qa.K===a&&(f.Qa.K=null,f.Ad&&f.pg()&&f.yd&&f.stop());this.Ob.K===a&&(this.Ob.K=null)};pa.Gb=function(){var a={silent:O,masterVolume:H,listenerZ:this.Wh,listenerUid:this.Ob.Qj()?this.Ob.K.uid:-1,playing:[],effects:{}},b=a.playing,c,f,e,d,g,h;c=0;for(f=E.length;c<f;c++)e=E[c],!e.pg()||3===this.ke||e.jd&&1===this.ke||!e.jd&&2===this.ke||(d=e.jm(),e.yd&&(d=d%e.lf()),d={tag:e.tag,buffersrc:e.buffer.src,is_music:e.jd,playbackTime:d,volume:e.volume,
looping:e.yd,muted:e.ug,playbackRate:e.playbackRate,paused:e.pc,resume_position:e.ec},e.Ad&&(d.pan={},h=d.pan,e.Qa&&e.Qa.Qj()?h.objUid=e.Qa.K.uid:(h.x=e.Kq,h.y=e.Lq,h.a=e.Gq),h.ia=e.Hq,h.oa=e.Iq,h.og=e.Jq),b.push(d));b=a.effects;for(g in W)if(W.hasOwnProperty(g)){e=[];c=0;for(f=W[g].length;c<f;c++)e.push({type:W[g][c].type,params:W[g][c].md});b[g]=e}return a};var Wa=[];pa.Xb=function(a){var b=a.silent;H=a.masterVolume;this.Wh=a.listenerZ;this.Ob.yi(null);var c=a.listenerUid;-1!==c&&(this.Ob.gk=c,
Wa.push(this.Ob));var c=a.playing,f,d,h,n,m,q,u,z,B,y,F;if(3!==this.ke)for(f=0,d=E.length;f<d;f++)B=E[f],B.jd&&1===this.ke||(B.jd||2!==this.ke)&&B.stop();for(m in W)if(W.hasOwnProperty(m))for(f=0,d=W[m].length;f<d;f++)W[m][f].remove();ab(W);for(m in a.effects)if(a.effects.hasOwnProperty(m))for(q=a.effects[m],f=0,d=q.length;f<d;f++)switch(h=q[f].type,y=q[f].params,h){case "filter":L(m,new e(y[0],y[1],y[2],y[3],y[4],y[5]));break;case "delay":L(m,new k(y[0],y[1],y[2]));break;case "convolve":h=y[2];B=
this.Hj(h,!1);B.ma?h=new g(B.ma,y[0],y[1],h):(h=new g(null,y[0],y[1],h),B.uq=y[0],B.kj=h);L(m,h);break;case "flanger":L(m,new l(y[0],y[1],y[2],y[3],y[4]));break;case "phaser":L(m,new w(y[0],y[1],y[2],y[3],y[4],y[5]));break;case "gain":L(m,new v(y[0]));break;case "tremolo":L(m,new C(y[0],y[1]));break;case "ringmod":L(m,new A(y[0],y[1]));break;case "distortion":L(m,new x(y[0],y[1],y[2],y[3],y[4]));break;case "compressor":L(m,new p(y[0],y[1],y[2],y[3],y[4]));break;case "analyser":L(m,new t(y[0],y[1]))}f=
0;for(d=c.length;f<d;f++)3===this.ke||(a=c[f],h=a.buffersrc,n=a.is_music,m=a.tag,q=a.playbackTime,u=a.looping,z=a.volume,F=(y=a.pan)&&y.hasOwnProperty("objUid")?y.objUid:-1,n&&1===this.ke)||!n&&2===this.ke||((B=this.op(h,m,n,u,z))?(B.ec=a.resume_position,B.Rn(!!y),B.play(u,z,q),B.Mr(),B.Nr(),B.uj(B.ug||B.Hh),a.paused&&B.pause(),a.muted&&B.Iw(),B.uj(B.ug||B.Hh),y&&(-1!==F?(B.Qa=B.Qa||new r,B.Qa.gk=F,Wa.push(B.Qa)):B.Qn(y.x,y.y,y.a,y.ia,y.oa,y.og))):(B=this.Hj(h,n),B.Mk=q,B.wk=a.paused,y&&(-1!==F?B.Gg.push({wq:F,
tm:y.ia,jn:y.oa,mn:y.og,tr:m}):B.Gg.push({x:y.x,y:y.y,lt:y.a,tm:y.ia,jn:y.oa,mn:y.og,tr:m}))));if(b&&!O){f=0;for(d=E.length;f<d;f++)E[f].$q(!0);O=!0}else if(!b&&O){f=0;for(d=E.length;f<d;f++)E[f].$q(!1);O=!1}};pa.td=function(){var a,b,c,f;a=0;for(b=Wa.length;a<b;a++)c=Wa[a],f=this.b.hg(c.gk),c.yi(f),c.gk=-1,f&&(ga=f.x,P=f.y);R(Wa)};pa.ew=function(a){if(!this.iw){!a&&D&&D.resume&&D.resume();var b,c;b=0;for(c=E.length;b<c;b++)E[b].Kw(a);a&&D&&D.suspend&&D.suspend()}};pa.Ja=function(){var a=this.b.gf,
b,c,f;b=0;for(c=E.length;b<c;b++)f=E[b],f.Ja(a),0!==K&&f.Mr();var e,d;for(e in W)if(W.hasOwnProperty(e))for(f=W[e],b=0,c=f.length;b<c;b++)d=f[b],d.Ja&&d.Ja();1===S&&this.Ob.Qj()&&(this.Ob.Ja(a),ga=this.Ob.K.x,P=this.Ob.K.y,D.listener.setPosition(this.Ob.K.x,this.Ob.K.y,this.Wh),D.listener.setVelocity(this.Ob.lm(),this.Ob.mm(),0))};var Xa=[];pa.Jw=function(a){var b,c,f,e,d,g=0;b=0;for(c=a.length;b<c;++b)if(f=a[b],e=f[0],f=2*f[1],(d=4<e.length&&".ogg"===e.substr(e.length-4))&&U||!d&&!U)Xa.push({filename:e,
size:f,K:null}),g+=f;return g};pa.Ow=function(){var a,b,c,f;a=0;for(b=Xa.length;a<b;++a)c=Xa[a],f=this.b.Xl+c.filename,c.K=this.Hj(f,!1)};pa.cv=function(){var a=0,b,c,f;b=0;for(c=Xa.length;b<c;++b)f=Xa[b],f.K.Kv()||f.K.Bv()||this.b.Ea||this.b.Sj?a+=f.size:f.K.Hp()&&(a+=Math.floor(f.size/2));return a};pa.Hj=function(a,b){var c,e,d,g=null;c=0;for(e=T.length;c<e;c++)if(d=T[c],d.src===a){g=d;break}g||(g=new f(a,b),T.push(g));return g};pa.op=function(a,b,c,f,e){var d,g,h;d=0;for(g=E.length;d<g;d++)if(h=
E[d],h.src===a&&(h.Dt()||c))return h.tag=b,h;a=this.Hj(a,c);if(!a.ma)return"<preload>"!==b&&(a.xk=b,a.$m=f,a.qo=e),null;h=new n(a,b);E.push(h);return h};var Ca=[];y.prototype.Si=function(a){return nb(J,a)};B.j=new y;F.prototype.Play=function(a,b,c,f){!O&&(c=d(c),G=this.op(this.b.Xl+a[0]+(U?".ogg":".m4a"),f,a[1],0!==b,c))&&(G.Rn(!1),G.play(0!==b,c))};F.prototype.$s=function(a,b){z(a);var c=d(b),f,e;f=0;for(e=Ca.length;f<e;f++)Ca[f].Lw(c)};B.H=new F;B.wa=new function(){}})();
function rc(d){this.b=d}
(function(){function d(){}function q(){}var h=rc.prototype;h.ua=function(c){this.xa=c;this.b=c.b};h.ua.prototype.P=function(){};h.ja=function(c){this.type=c;this.b=c.b;this.Cl=Array(4);this.Br=this.fl=this.Rg=this.Oe=this.Ne=0;this.pm=!1};var m=h.ja.prototype;m.P=function(){var c=this;if(!this.b.Ea){jQuery(document).mousemove(function(a){c.rn(a)});jQuery(document).mousedown(function(a){c.qn(a)});jQuery(document).mouseup(function(a){c.sn(a)});jQuery(document).dblclick(function(a){c.bw(a)});var b=function(a){c.fw(a)};
document.addEventListener("mousewheel",b,!1);document.addEventListener("DOMMouseScroll",b,!1)}};var u={left:0,top:0};m.rn=function(c){var b=this.b.Ea?u:jQuery(this.b.canvas).offset();this.Ne=c.pageX-b.left;this.Oe=c.pageY-b.top};m.qq=function(){return 0<this.b.Mb?!0:0<=this.Ne&&0<=this.Oe&&this.Ne<this.b.width&&this.Oe<this.b.height};m.qn=function(c){this.qq()&&(this.Cl[c.which]=!0,this.b.sb=!0,this.b.trigger(rc.prototype.j.ts,this),this.Rg=c.which-1,this.fl=0,this.b.trigger(rc.prototype.j.Ao,this),
this.b.trigger(rc.prototype.j.Fo,this),this.b.sb=!1)};m.sn=function(c){this.Cl[c.which]&&(this.b.Oj&&!this.b.be&&c.preventDefault(),this.b.Oj=!0,this.Cl[c.which]=!1,this.b.sb=!0,this.Rg=c.which-1,this.b.trigger(rc.prototype.j.Ks,this),this.b.sb=!1)};m.bw=function(c){this.qq()&&(c.preventDefault(),this.b.sb=!0,this.Rg=c.which-1,this.fl=1,this.b.trigger(rc.prototype.j.Ao,this),this.b.trigger(rc.prototype.j.Fo,this),this.b.sb=!1)};m.fw=function(c){this.Br=0>(c.wheelDelta?c.wheelDelta:c.detail?-c.detail:
0)?0:1;this.pm=!1;this.b.sb=!0;this.b.trigger(rc.prototype.j.Ns,this);this.b.sb=!1;this.pm&&ob(c)&&c.preventDefault()};d.prototype.Ao=function(c,b){return c===this.Rg&&b===this.fl};d.prototype.ts=function(){return!0};d.prototype.Ks=function(c){return c===this.Rg};d.prototype.Fo=function(c,b,a){return c!==this.Rg||b!==this.fl?!1:this.b.Ii(a,this.Ne,this.Oe)};d.prototype.Ns=function(c){this.pm=!0;return c===this.Br};h.j=new d;h.H=new function(){};q.prototype.Ti=function(c,b){var a,e,d,g,h;ia(b)?(a=
this.b.Zd(0),e=a.scale,d=a.Kb,g=a.Zb,h=a.m,a.scale=1,a.Kb=1,a.Zb=1,a.m=0,c.C(a.qb(this.Ne,this.Oe,!0)),a.scale=e,a.Kb=d,a.Zb=g,a.m=h):(a=ja(b)?this.b.Zd(b):this.b.uh(b))?c.C(a.qb(this.Ne,this.Oe,!0)):c.C(0)};q.prototype.Ui=function(c,b){var a,e,d,g,h;ia(b)?(a=this.b.Zd(0),e=a.scale,d=a.Kb,g=a.$b,h=a.m,a.scale=1,a.Kb=1,a.$b=1,a.m=0,c.C(a.qb(this.Ne,this.Oe,!1)),a.scale=e,a.Kb=d,a.$b=g,a.m=h):(a=ja(b)?this.b.Zd(b):this.b.uh(b))?c.C(a.qb(this.Ne,this.Oe,!1)):c.C(0)};h.wa=new q})();
function sc(d){this.b=d}
(function(){function d(c){this.Ca=c;this.Ka=!1;this.m=this.speed=this.y=this.x=0;this.opacity=1;this.we=this.kg=this.size=this.Mj=0}function q(){}var h=sc.prototype;h.ua=function(c){this.xa=c;this.b=c.b};var m=h.ua.prototype;m.P=function(){this.G||(this.R=new Image,this.R.Kl=this.bl,this.X=null,this.b.ro(this.R,this.al))};m.ji=function(){this.G||(this.X=null)};m.rk=function(){this.G||!this.e.length||this.X||(this.X=this.b.A.zg(this.R,!0,this.b.da,this.Ki))};m.Xh=function(){this.G||this.X||!this.b.A||
(this.X=this.b.A.zg(this.R,!0,this.b.da,this.Ki))};m.il=function(){this.G||this.e.length||!this.X||(this.b.A.deleteTexture(this.X),this.X=null)};m.Ck=function(c){c.drawImage(this.R,0,0)};d.prototype.init=function(){var c=this.Ca;this.x=c.x-c.ol/2+Math.random()*c.ol;this.y=c.y-c.pl/2+Math.random()*c.pl;this.speed=c.Bm-c.Tk/2+Math.random()*c.Tk;this.m=c.m-c.Uk/2+Math.random()*c.Uk;this.opacity=c.zm;this.size=c.Am-c.Sk/2+Math.random()*c.Sk;this.Mj=c.om-c.Nj/2+Math.random()*c.Nj;this.we=this.kg=0};d.prototype.Ja=
function(c){var b=this.Ca;this.x+=Math.cos(this.m)*this.speed*c;this.y+=Math.sin(this.m)*this.speed*c;this.y+=this.kg*c;this.speed+=b.sd*c;this.size+=this.Mj*c;this.kg+=b.Tb*c;this.we+=c;1>this.size?this.Ka=!1:(0!==b.Th&&(this.m+=Math.random()*b.Th*c-b.Th*c/2),0!==b.Vh&&(this.speed+=Math.random()*b.Vh*c-b.Vh*c/2),0!==b.Uh&&(this.opacity+=Math.random()*b.Uh*c-b.Uh*c/2,0>this.opacity?this.opacity=0:1<this.opacity&&(this.opacity=1)),1>=b.Zf&&this.we>=b.timeout&&(this.Ka=!1),2===b.Zf&&0>=this.speed&&
(this.Ka=!1))};d.prototype.lc=function(c){var b=this.Ca.opacity*this.opacity;if(0!==b){0===this.Ca.Zf&&(b*=1-this.we/this.Ca.timeout);c.globalAlpha=b;var b=this.x-this.size/2,a=this.y-this.size/2;this.Ca.b.Sc&&(b=b+.5|0,a=a+.5|0);c.drawImage(this.Ca.type.R,b,a,this.size,this.size)}};d.prototype.Cb=function(c){var b=this.Ca.opacity*this.opacity;0===this.Ca.Zf&&(b*=1-this.we/this.Ca.timeout);var a=this.size,e=a*this.Ca.Oq,d=this.x-a/2,g=this.y-a/2;this.Ca.b.Sc&&(d=d+.5|0,g=g+.5|0);1>e||0===b||(e<c.Wv||
e>c.bn?(c.Te(b),c.si(d,g,d+a,g,d+a,g+a,d,g+a)):c.jw(this.x,this.y,e,b))};d.prototype.left=function(){return this.x-this.size/2};d.prototype.right=function(){return this.x+this.size/2};d.prototype.top=function(){return this.y-this.size/2};d.prototype.bottom=function(){return this.y+this.size/2};h.ja=function(c){this.type=c;this.b=c.b};var m=h.ja.prototype,u=[];m.P=function(){var c=this.B;this.Hk=c[0];this.Uk=V(c[1]);this.Og=c[2];this.Vk=!0;this.Bm=c[3];this.Am=c[4];this.zm=c[5]/100;this.om=c[6];this.ol=
c[7];this.pl=c[8];this.Tk=c[9];this.Sk=c[10];this.Nj=c[11];this.sd=c[12];this.Tb=c[13];this.Th=c[14];this.Vh=c[15];this.Uh=c[16];this.Zf=c[17];this.timeout=c[18];this.Ff=0;this.Oq=1;this.tk=this.x;this.vk=this.y;this.uk=this.x;this.sk=this.y;this.tt(function(b){b.Da.set(b.tk,b.vk,b.uk,b.sk);b.yb.Ng(b.Da);b.cj=!1;b.oo()});this.ac||(this.Pb=[]);this.b.Li(this);this.type.Xh();if(1===this.Og)for(c=0;c<this.Hk;c++)this.xl().opacity=0;this.Cj=!0};m.Gb=function(){var c={r:this.Hk,sc:this.Uk,st:this.Og,s:this.Vk,
isp:this.Bm,isz:this.Am,io:this.zm,gr:this.om,xr:this.ol,yr:this.pl,spr:this.Tk,szr:this.Sk,grnd:this.Nj,acc:this.sd,g:this.Tb,lar:this.Th,lsr:this.Vh,lor:this.Uh,dm:this.Zf,to:this.timeout,pcc:this.Ff,ft:this.Cj,p:[]},b,a,e,d=c.p;b=0;for(a=this.Pb.length;b<a;b++)e=this.Pb[b],d.push([e.x,e.y,e.speed,e.m,e.opacity,e.Mj,e.size,e.kg,e.we]);return c};m.Xb=function(c){this.Hk=c.r;this.Uk=c.sc;this.Og=c.st;this.Vk=c.s;this.Bm=c.isp;this.Am=c.isz;this.zm=c.io;this.om=c.gr;this.ol=c.xr;this.pl=c.yr;this.Tk=
c.spr;this.Sk=c.szr;this.Nj=c.grnd;this.sd=c.acc;this.Tb=c.g;this.Th=c.lar;this.Vh=c.lsr;this.Uh=c.lor;this.Zf=c.dm;this.timeout=c.to;this.Ff=c.pcc;this.Cj=c.ft;u.push.apply(u,this.Pb);R(this.Pb);var b,a,e,d=c.p;c=0;for(b=d.length;c<b;c++)a=this.xl(),e=d[c],a.x=e[0],a.y=e[1],a.speed=e[2],a.m=e[3],a.opacity=e[4],a.Mj=e[5],a.size=e[6],a.kg=e[7],a.we=e[8]};m.Ef=function(){u.push.apply(u,this.Pb);R(this.Pb)};m.xl=function(){var c;u.length?(c=u.pop(),c.Ca=this):c=new d(this);this.Pb.push(c);c.Ka=!0;return c};
m.Ja=function(){var c=this.b.gg(this),b,a,e,d;if(0===this.Og&&this.Vk)for(this.Ff+=c*this.Hk,a=N(this.Ff),this.Ff-=a,b=0;b<a;b++)e=this.xl(),e.init();this.tk=this.x;this.vk=this.y;this.uk=this.x;this.sk=this.y;d=b=0;for(a=this.Pb.length;b<a;b++)e=this.Pb[b],this.Pb[d]=e,this.b.Y=!0,1===this.Og&&this.Cj&&e.init(),e.Ja(c),e.Ka?(e.left()<this.tk&&(this.tk=e.left()),e.right()>this.uk&&(this.uk=e.right()),e.top()<this.vk&&(this.vk=e.top()),e.bottom()>this.sk&&(this.sk=e.bottom()),d++):u.push(e);Ea(this.Pb,
d);this.D();this.Cj=!1;1===this.Og&&0===this.Pb.length&&this.b.Ld(this)};m.lc=function(c){var b,a,e,d=this.k;b=0;for(a=this.Pb.length;b<a;b++)e=this.Pb[b],e.right()>=d.Fa&&e.bottom()>=d.Ga&&e.left()<=d.Pa&&e.top()<=d.Oa&&e.lc(c)};m.Cb=function(c){this.Oq=this.k.mc();c.fc(this.type.X);var b,a,e,d=this.k;b=0;for(a=this.Pb.length;b<a;b++)e=this.Pb[b],e.right()>=d.Fa&&e.bottom()>=d.Ga&&e.left()<=d.Pa&&e.top()<=d.Oa&&e.Cb(c)};h.j=new function(){};q.prototype.Vs=function(c){this.Vk=0!==c};q.prototype.Jo=
function(c){this.Tb=c};h.H=new q;h.wa=new function(){}})();function Y(d){this.b=d}
(function(){function d(){if(0===this.Nl.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.Pg?b.drawImage(this.R,this.Eg,this.Fg,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.R,0,0,this.width,this.height);this.Nl=a.toDataURL("image/png")}return this.Nl}function q(){}function h(a){a[0]=0;a[1]=0;a[2]=0;w.push(a)}function m(a,b){return a<b?""+a+","+b:""+b+","+a}function u(a,b,c,f){b=b.uid;c=c.uid;var e=m(b,c);if(a.hasOwnProperty(e))a[e][2]=
f;else{var d=w.length?w.pop():[0,0,0];d[0]=b;d[1]=c;d[2]=f;a[e]=d}}function c(a,b,c){b=m(b.uid,c.uid);a.hasOwnProperty(b)&&(h(a[b]),delete a[b])}function b(a,b,c){b=m(b.uid,c.uid);if(a.hasOwnProperty(b))return v=a[b][2],!0;v=-2;return!1}function a(){}var e=Y.prototype;e.ua=function(a){this.xa=a;this.b=a.b};var k=e.ua.prototype;k.P=function(){if(!this.G){var a,b,c,f,e,g,h,k,l;this.ad=[];this.zh=!1;a=0;for(b=this.Rb.length;a<b;a++){e=this.Rb[a];h={};h.name=e[0];h.speed=e[1];h.loop=e[2];h.Hn=e[3];h.Ik=
e[4];h.Pq=e[5];h.Z=e[6];h.frames=[];c=0;for(f=e[7].length;c<f;c++)g=e[7][c],k={},k.al=g[0],k.bl=g[1],k.Eg=g[2],k.Fg=g[3],k.width=g[4],k.height=g[5],k.duration=g[6],k.Vb=g[7],k.Wb=g[8],k.vm=g[9],k.yk=g[10],k.Qq=g[11],k.Pg=0!==k.width,k.Nl="",k.iy=d,l={left:0,top:0,right:1,bottom:1},k.Un=l,k.X=null,(l=this.b.Pu(g[0]))?k.R=l:(k.R=new Image,k.R.It=g[0],k.R.Kl=g[1],k.R.Ct=null,this.b.ro(k.R,g[0])),h.frames.push(k),this.ad.push(k);this.Rb[a]=h}}};k.Lr=function(){var a,b,c;a=0;for(b=this.e.length;a<b;a++)c=
this.e[a],c.oj=c.Ic.X};k.ji=function(){if(!this.G){var a,b,c;a=0;for(b=this.ad.length;a<b;++a)c=this.ad[a],c.R.Ct=null,c.X=null;this.zh=!1;this.Lr()}};k.rk=function(){if(!this.G&&this.e.length){var a,b,c;a=0;for(b=this.ad.length;a<b;++a)c=this.ad[a],c.X=this.b.A.zg(c.R,!1,this.b.da,c.Qq);this.Lr()}};k.Xh=function(){if(!this.G&&!this.zh&&this.b.A){var a,b,c;a=0;for(b=this.ad.length;a<b;++a)c=this.ad[a],c.X=this.b.A.zg(c.R,!1,this.b.da,c.Qq);this.zh=!0}};k.il=function(){if(!this.G&&!this.e.length&&
this.zh){var a,b,c;a=0;for(b=this.ad.length;a<b;++a)c=this.ad[a],this.b.A.deleteTexture(c.X),c.X=null;this.zh=!1}};var g=[];k.Ck=function(a){var b,c,f;R(g);b=0;for(c=this.ad.length;b<c;++b)f=this.ad[b].R,-1===g.indexOf(f)&&(a.drawImage(f,0,0),g.push(f))};e.ja=function(a){this.type=a;this.b=a.b;a=this.type.Rb[0].frames[0].yk;this.ac?this.na.Bi(a):this.na=new hb(a)};var l=e.ja.prototype;l.P=function(){this.visible=0===this.B[0];this.wm=this.Jm=!1;this.Od=0!==this.B[3];1===this.type.Rb.length&&1===this.type.Rb[0].frames.length||
0===this.type.Rb[0].speed||(this.b.Li(this),this.Jm=!0);this.La=this.np(this.B[1])||this.type.Rb[0];this.F=this.B[2];0>this.F&&(this.F=0);this.F>=this.La.frames.length&&(this.F=this.La.frames.length-1);var a=this.La.frames[this.F];this.na.Bi(a.yk);this.Vb=a.Vb;this.Wb=a.Wb;this.lh=this.La.speed;this.ac?this.ud.reset():this.ud=new fb;this.Xd=this.ud.aa;this.$e=!0;this.Md=0;this.Ze=!0;this.Hl=this.Qo="";this.Et=0;this.hj=-1;this.type.Xh();var b,c,f,e,d,g,h,a=0;for(b=this.type.Rb.length;a<b;a++)for(e=
this.type.Rb[a],c=0,f=e.frames.length;c<f;c++)d=e.frames[c],0===d.width&&(d.width=d.R.width,d.height=d.R.height),d.Pg&&(h=d.R,g=d.Un,g.left=d.Eg/h.width,g.top=d.Fg/h.height,g.right=(d.Eg+d.width)/h.width,g.bottom=(d.Fg+d.height)/h.height,0===d.Eg&&0===d.Fg&&d.width===h.width&&d.height===h.height&&(d.Pg=!1));this.Ic=this.La.frames[this.F];this.oj=this.Ic.X};l.Gb=function(){var a={a:this.La.Z,f:this.F,cas:this.lh,fs:this.Xd,ar:this.Md,at:this.ud.aa};this.$e||(a.ap=this.$e);this.Ze||(a.af=this.Ze);return a};
l.Xb=function(a){var b=this.Uu(a.a);b&&(this.La=b);this.F=a.f;0>this.F&&(this.F=0);this.F>=this.La.frames.length&&(this.F=this.La.frames.length-1);this.lh=a.cas;this.Xd=a.fs;this.Md=a.ar;this.ud.reset();this.ud.aa=a.at;this.$e=a.hasOwnProperty("ap")?a.ap:!0;this.Ze=a.hasOwnProperty("af")?a.af:!0;this.Ic=this.La.frames[this.F];this.oj=this.Ic.X;this.na.Bi(this.Ic.yk);this.Vb=this.Ic.Vb;this.Wb=this.Ic.Wb};l.Al=function(a){this.F=a?0:this.La.frames.length-1;this.$e=!1;this.Qo=this.La.name;this.wm=!0;
this.b.trigger(Y.prototype.j.rs,this);this.b.trigger(Y.prototype.j.qs,this);this.wm=!1;this.Md=0};l.Lt=function(){return this.ud.aa};l.Ja=function(){this.ud.add(this.b.gg(this));this.Hl.length&&this.Rt();0<=this.hj&&this.ep();var a=this.ud.aa,b=this.La,c=b.frames[this.F],f=c.duration/this.lh;this.$e&&a>=this.Xd+f&&(this.Ze?this.F++:this.F--,this.Xd+=f,this.F>=b.frames.length&&(b.Pq?(this.Ze=!1,this.F=b.frames.length-2):b.loop?this.F=b.Ik:(this.Md++,this.Md>=b.Hn?this.Al(!1):this.F=b.Ik)),0>this.F&&
(b.Pq?(this.F=1,this.Ze=!0,b.loop||(this.Md++,this.Md>=b.Hn&&this.Al(!0))):b.loop?this.F=b.Ik:(this.Md++,this.Md>=b.Hn?this.Al(!0):this.F=b.Ik)),0>this.F?this.F=0:this.F>=b.frames.length&&(this.F=b.frames.length-1),a>this.Xd+b.frames[this.F].duration/this.lh&&(this.Xd=a),a=b.frames[this.F],this.Sf(c,a),this.b.Y=!0)};l.np=function(a){var b,c,f;b=0;for(c=this.type.Rb.length;b<c;b++)if(f=this.type.Rb[b],nb(f.name,a))return f;return null};l.Uu=function(a){var b,c,f;b=0;for(c=this.type.Rb.length;b<c;b++)if(f=
this.type.Rb[b],f.Z===a)return f;return null};l.Rt=function(){var a=this.La.frames[this.F],b=this.np(this.Hl);this.Hl="";!b||nb(b.name,this.La.name)&&this.$e||(this.La=b,this.lh=b.speed,0>this.F&&(this.F=0),this.F>=this.La.frames.length&&(this.F=this.La.frames.length-1),1===this.Et&&(this.F=0),this.$e=!0,this.Xd=this.ud.aa,this.Ze=!0,this.Sf(a,this.La.frames[this.F]),this.b.Y=!0)};l.ep=function(){var a=this.La.frames[this.F],b=this.F;this.F=N(this.hj);0>this.F&&(this.F=0);this.F>=this.La.frames.length&&
(this.F=this.La.frames.length-1);b!==this.F&&(this.Sf(a,this.La.frames[this.F]),this.Xd=this.ud.aa,this.b.Y=!0);this.hj=-1};l.Sf=function(a,b){var c=a.width,f=a.height,e=b.width,d=b.height;c!=e&&(this.width*=e/c);f!=d&&(this.height*=d/f);this.Vb=b.Vb;this.Wb=b.Wb;this.na.Bi(b.yk);this.D();this.Ic=b;this.oj=b.X;c=0;for(f=this.N.length;c<f;c++)e=this.N[c],e.Cq&&e.Cq(a,b);this.b.trigger(Y.prototype.j.Sf,this)};l.lc=function(a){a.globalAlpha=this.opacity;var b=this.Ic,c=b.Pg,f=b.R,e=this.x,d=this.y,g=
this.width,h=this.height;if(0===this.m&&0<=g&&0<=h)e-=this.Vb*g,d-=this.Wb*h,this.b.Sc&&(e=Math.round(e),d=Math.round(d)),c?a.drawImage(f,b.Eg,b.Fg,b.width,b.height,e,d,g,h):a.drawImage(f,e,d,g,h);else{this.b.Sc&&(e=Math.round(e),d=Math.round(d));a.save();var k=0<g?1:-1,l=0<h?1:-1;a.translate(e,d);1===k&&1===l||a.scale(k,l);a.rotate(this.m*k*l);e=0-this.Vb*ma(g);d=0-this.Wb*ma(h);c?a.drawImage(f,b.Eg,b.Fg,b.width,b.height,e,d,ma(g),ma(h)):a.drawImage(f,e,d,ma(g),ma(h));a.restore()}};l.eh=function(a){this.Cb(a)};
l.Cb=function(a){a.fc(this.oj);a.Te(this.opacity);var b=this.Ic,c=this.yb;if(this.b.Sc){var f=Math.round(this.x)-this.x,e=Math.round(this.y)-this.y;b.Pg?a.Cd(c.hb+f,c.ib+e,c.Ib+f,c.Jb+e,c.zb+f,c.Ab+e,c.wb+f,c.xb+e,b.Un):a.si(c.hb+f,c.ib+e,c.Ib+f,c.Jb+e,c.zb+f,c.Ab+e,c.wb+f,c.xb+e)}else b.Pg?a.Cd(c.hb,c.ib,c.Ib,c.Jb,c.zb,c.Ab,c.wb,c.xb,b.Un):a.si(c.hb,c.ib,c.Ib,c.Jb,c.zb,c.Ab,c.wb,c.xb)};l.Yu=function(a){var b=this.Ic,c,f;c=0;for(f=b.vm.length;c<f;c++)if(nb(a,b.vm[c][0]))return c;return-1};l.im=function(a,
b){var c=this.Ic,f=c.vm,e;I(a)?e=this.Yu(a):e=a-1;e=N(e);if(0>e||e>=f.length)return b?this.x:this.y;var d=(f[e][1]-c.Vb)*this.width,f=f[e][2],f=(f-c.Wb)*this.height,c=Math.cos(this.m);e=Math.sin(this.m);var g=d*c-f*e,f=f*c+d*e,d=g+this.x,f=f+this.y;return b?d:f};var w=[],v=-2,C=[];q.prototype.vs=function(a){if(!a)return!1;var e=this.b,d=e.Jj(),f=d.type,g=null;d.I.collmemory?g=d.I.collmemory:(g={},d.I.collmemory=g,e.wl(function(a){var b=d.I.collmemory;a=a.uid;var c,f;for(c in b)b.hasOwnProperty(c)&&
(f=b[c],f[0]===a||f[1]===a)&&(h(b[c]),delete b[c])}));var k=f.ea(),l=a.ea(),k=k.Dc(),m,q,w,x,A,J,M,S=this.b.pd,D=S-1,T=e.Db().kc;for(q=0;q<k.length;q++){w=k[q];l.ta?(w.Ba(),this.b.pp(w.k,a,w.Da,C),m=C):m=l.Dc();for(x=0;x<m.length;x++)A=m[x],e.Xc(w,A)||e.Ft(w,A)?(J=b(g,w,A),J=!J||v<D,u(g,w,A,S),J&&(e.Ek(T.Aa),J=f.ea(),M=a.ea(),J.ta=!1,M.ta=!1,f===a?(J.e.length=2,J.e[0]=w,J.e[1]=A,f.cd()):(J.e.length=1,M.e.length=1,J.e[0]=w,M.e[0]=A,f.cd(),a.cd()),T.yw(),e.Gf(T.Aa))):c(g,w,A);R(C)}return!1};var A=new ba,
x=!1;new ta(0,0,0,0);k.finish=function(a){if(x){if(a){var b=this.b.Db().kc.ld;a=null.ea();var c=A.pe(),f,e;if(a.ta){a.ta=!1;R(a.e);f=0;for(e=c.length;f<e;++f)a.e[f]=c[f];if(b)for(R(a.la),f=0,e=null.e.length;f<e;++f)c=null.e[f],A.contains(c)||a.la.push(c)}else if(b)for(b=a.e.length,f=0,e=c.length;f<e;++f)a.e[b+f]=c[f],Ia(a.la,c[f]);else Fa(a.e,c);null.cd()}A.clear();x=!1}};q.prototype.qs=function(a){return nb(this.Qo,a)};q.prototype.rs=function(){return!0};q.prototype.Sf=function(){return!0};e.j=new q;
a.prototype.Ps=function(a){this.hj=a;this.Jm||(this.b.Li(this),this.Jm=!0);this.wm||this.ep()};a.prototype.Us=function(a){a=ma(this.width)*(0===a?-1:1);this.width!==a&&(this.width=a,this.D())};e.H=new a;e.wa=new function(){}})();function tc(d){this.b=d}
(function(){function d(){return b.length?b.pop():{}}function q(a){var c,d;c=0;for(d=a.length;c<d;c++)b.push(a[c]);R(a)}function h(){}var m=tc.prototype;m.P=function(){m.H.bt=function(a){this.width!==a&&(this.width=a,this.Nf=!0,this.D())}};m.ua=function(a){this.xa=a;this.b=a.b};var u=m.ua.prototype;u.P=function(){};u.ji=function(){if(!this.G){var a,b,c;a=0;for(b=this.e.length;a<b;a++)c=this.e[a],c.zd=null,c.Cf=null,c.uc=null}};m.ja=function(a){this.type=a;this.b=a.b;this.ac?R(this.Le):this.Le=[];this.Nf=
!0};u=m.ja.prototype;u.P=function(){this.text=this.B[0];this.visible=0===this.B[1];this.font=this.B[2];this.color=this.B[3];this.Pj=this.B[4];this.kl=this.B[5];this.wo=0===this.B[7];this.Qm=this.$j=this.width;this.Zj=this.height;this.Tm=this.B[8];this.Ej=this.ag="";this.rr=this.sr=this.qi=0;this.gw();this.uc=this.Cf=this.zd=null;this.hn=!1;this.Sh=this.b.pd;this.ac?this.Qe.set(0,0,1,1):this.Qe=new ta(0,0,1,1);this.b.A&&this.b.Li(this)};u.gw=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.qi=parseInt(a[b].substr(0,a[b].length-2));this.Dn=Math.ceil(this.qi/72*96)+4;0<b&&(this.Ej=a[b-1]);this.ag=a[b+1];for(b+=2;b<a.length;b++)this.ag+=" "+a[b];break}};u.Gb=function(){return{t:this.text,f:this.font,c:this.color,ha:this.Pj,va:this.kl,wr:this.wo,lho:this.Tm,fn:this.ag,fs:this.Ej,ps:this.qi,pxh:this.Dn,tw:this.sr,th:this.rr,lrt:this.Sh}};u.Xb=function(a){this.text=a.t;this.font=a.f;this.color=a.c;this.Pj=a.ha;this.kl=a.va;this.wo=a.wr;this.Tm=a.lho;this.ag=
a.fn;this.Ej=a.fs;this.qi=a.ps;this.Dn=a.pxh;this.sr=a.tw;this.rr=a.th;this.Sh=a.lrt;this.Nf=!0;this.Qm=this.$j=this.width;this.Zj=this.height};u.Ja=function(){if(this.b.A&&this.uc&&300<=this.b.pd-this.Sh){var a=this.k;this.Ba();var b=this.Da;if(b.right<a.Fa||b.bottom<a.Ga||b.left>a.Pa||b.top>a.Oa)this.b.A.deleteTexture(this.uc),this.zd=this.Cf=this.uc=null}};u.Ef=function(){this.zd=this.Cf=null;this.b.A&&this.uc&&this.b.A.deleteTexture(this.uc);this.uc=null};u.eh=function(){this.font=this.Ej+" "+
this.qi.toString()+"pt "+this.ag;this.Nf=!0;this.b.Y=!0};u.lc=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.k.mc(),a.save(),a.scale(c,c));if(this.Nf||this.width!==this.Qm)this.type.xa.jt(this.text,this.Le,a,this.width,this.wo),this.Nf=!1,this.Qm=this.width;this.Ba();var c=b?0:this.yb.hb,d=b?0:this.yb.ib;this.b.Sc&&(c=c+.5|0,d=d+.5|0);0===this.m||b||(a.save(),a.translate(c,d),a.rotate(this.m),d=c=0);var h=d+this.height,
m=this.Dn,m=m+this.Tm,q,u;1===this.kl?d+=Math.max(this.height/2-this.Le.length*m/2,0):2===this.kl&&(d+=Math.max(this.height-this.Le.length*m-2,0));for(u=0;u<this.Le.length&&!(q=c,1===this.Pj?q=c+(this.width-this.Le[u].width)/2:2===this.Pj&&(q=c+(this.width-this.Le[u].width)),a.fillText(this.Le[u].text,q,d),d+=m,d>=h-m);u++);(0!==this.m||b)&&a.restore();this.Sh=this.b.pd};u.Cb=function(a){if(!(1>this.width||1>this.height)){var b=this.Nf||this.hn;this.hn=!1;var c=this.k.mc(),d=this.k.Xa(),h=this.Qe,
m=c*this.width,q=c*this.height,u=Math.ceil(m),A=Math.ceil(q),x=this.b.T/2,p=this.b.S/2;this.Cf||(this.zd=document.createElement("canvas"),this.zd.width=u,this.zd.height=A,this.$j=u,this.Zj=A,b=!0,this.Cf=this.zd.getContext("2d"));if(u!==this.$j||A!==this.Zj)this.zd.width=u,this.zd.height=A,this.uc&&(a.deleteTexture(this.uc),this.uc=null),b=!0;b&&(this.Cf.clearRect(0,0,u,A),this.lc(this.Cf,!0),this.uc||(this.uc=a.Pd(u,A,this.b.da,this.b.be)),a.Zw(this.zd,this.uc,this.b.be));this.$j=u;this.Zj=A;a.fc(this.uc);
a.Te(this.opacity);a.Dd();a.translate(-x,-p);a.Jd();var t=this.yb,b=this.k.Ia(t.hb,t.ib,!0,!0),x=this.k.Ia(t.hb,t.ib,!1,!0),p=this.k.Ia(t.Ib,t.Jb,!0,!0),r=this.k.Ia(t.Ib,t.Jb,!1,!0),f=this.k.Ia(t.zb,t.Ab,!0,!0),n=this.k.Ia(t.zb,t.Ab,!1,!0),z=this.k.Ia(t.wb,t.xb,!0,!0),t=this.k.Ia(t.wb,t.xb,!1,!0);if(this.b.Sc||0===this.m&&0===d)var L=(b+.5|0)-b,y=(x+.5|0)-x,b=b+L,x=x+y,p=p+L,r=r+y,f=f+L,n=n+y,z=z+L,t=t+y;0===this.m&&0===d?(p=b+u,r=x,f=p,n=x+A,z=b,t=n,h.right=1,h.bottom=1):(h.right=m/u,h.bottom=q/
A);a.Cd(b,x,p,r,f,n,z,t,h);a.Dd();a.scale(c,c);a.Jn(-this.k.Xa());a.translate((this.k.Fa+this.k.Pa)/-2,(this.k.Ga+this.k.Oa)/-2);a.Jd();this.Sh=this.b.pd}};var c=[];m.gt=function(a){R(c);for(var b="",d,g=0;g<a.length;)if(d=a.charAt(g),"\n"===d)b.length&&(c.push(b),b=""),c.push("\n"),++g;else if(" "===d||"\t"===d||"-"===d){do b+=a.charAt(g),g++;while(g<a.length&&(" "===a.charAt(g)||"\t"===a.charAt(g)));c.push(b);b=""}else g<a.length&&(b+=d,g++);b.length&&c.push(b)};var b=[];m.jt=function(a,b,c,g,h){if(a&&
a.length)if(2>=g)q(b);else{if(100>=a.length&&-1===a.indexOf("\n")){var m=c.measureText(a).width;if(m<=g){q(b);b.push(d());b[0].text=a;b[0].width=m;return}}this.kt(a,b,c,g,h)}else q(b)};m.kt=function(a,e,h,g,l){l&&(this.gt(a),a=c);var m="",q,u,A,x=0;for(A=0;A<a.length;A++)"\n"===a[A]?(x>=e.length&&e.push(d()),u=e[x],u.text=m,u.width=h.measureText(m).width,x++,m=""):(q=m,m+=a[A],u=h.measureText(m).width,u>=g&&(x>=e.length&&e.push(d()),u=e[x],u.text=q,u.width=h.measureText(q).width,x++,m=a[A],l||" "!==
m||(m="")));m.length&&(x>=e.length&&e.push(d()),u=e[x],u.text=m,u.width=h.measureText(m).width,x++);for(A=x;A<e.length;A++)b.push(e[A]);e.length=x};m.j=new function(){};h.prototype.Ws=function(a){ja(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.Nf=!0,this.b.Y=!0)};h.prototype.Qs=function(a){a="rgb("+ya(a).toString()+","+za(a).toString()+","+Aa(a).toString()+")";a!==this.color&&(this.color=a,this.hn=!0,this.b.Y=!0)};m.H=new h;m.wa=new function(){}})();
function uc(d){this.b=d}
(function(){var d=uc.prototype;d.ua=function(d){this.xa=d;this.b=d.b};var q=d.ua.prototype;q.P=function(){this.G||(this.R=new Image,this.R.Kl=this.bl,this.b.ro(this.R,this.al),this.X=this.pattern=null)};q.ji=function(){this.G||(this.X=null)};q.rk=function(){if(!this.G&&this.e.length){this.X||(this.X=this.b.A.zg(this.R,!0,this.b.da,this.Ki));var d,m;d=0;for(m=this.e.length;d<m;d++)this.e[d].X=this.X}};q.Xh=function(){this.G||this.X||!this.b.A||(this.X=this.b.A.zg(this.R,!0,this.b.da,this.Ki))};q.il=
function(){this.G||this.e.length||!this.X||(this.b.A.deleteTexture(this.X),this.X=null)};q.Ck=function(d){d.drawImage(this.R,0,0)};d.ja=function(d){this.type=d;this.b=d.b};q=d.ja.prototype;q.P=function(){this.visible=0===this.B[0];this.Qe=new ta(0,0,0,0);this.Ap=!1;this.R=this.type.R;this.b.A?(this.type.Xh(),this.X=this.type.X):(this.type.pattern||(this.type.pattern=this.b.pa.createPattern(this.type.R,"repeat")),this.pattern=this.type.pattern)};q.td=function(){this.Ap=!1;this.R=this.type.R};q.Ef=
function(){this.b.A&&this.Ap&&this.X&&(this.b.A.deleteTexture(this.X),this.X=null)};q.lc=function(d){d.globalAlpha=this.opacity;d.save();d.fillStyle=this.pattern;var m=this.x,u=this.y;this.b.Sc&&(m=Math.round(m),u=Math.round(u));var c=-(this.Vb*this.width),b=-(this.Wb*this.height),a=c%this.R.width,e=b%this.R.height;0>a&&(a+=this.R.width);0>e&&(e+=this.R.height);d.translate(m,u);d.rotate(this.m);d.translate(a,e);d.fillRect(c-a,b-e,this.width,this.height);d.restore()};q.eh=function(d){this.Cb(d)};q.Cb=
function(d){d.fc(this.X);d.Te(this.opacity);var m=this.Qe;m.right=this.width/this.R.width;m.bottom=this.height/this.R.height;var u=this.yb;if(this.b.Sc){var c=Math.round(this.x)-this.x,b=Math.round(this.y)-this.y;d.Cd(u.hb+c,u.ib+b,u.Ib+c,u.Jb+b,u.zb+c,u.Ab+b,u.wb+c,u.xb+b,m)}else d.Cd(u.hb,u.ib,u.Ib,u.Jb,u.zb,u.Ab,u.wb,u.xb,m)};d.j=new function(){};d.H=new function(){};d.wa=new function(){}})();function Z(d){this.b=d}
(function(){function d(a){k=a.x;g=a.y;l=a.z}function q(a){w=a.x;v=a.y;C=a.z}function h(a,b,c,e){var d;d=A.length?A.pop():new m;d.init(a,b,c,e);return d}function m(){this.Fi=this.id=this.y=this.x=this.Yk=this.Xk=this.Pm=this.time=this.Zn=0;this.Ni=this.gl=!1}function u(){}function c(){}var b=Z.prototype;b.ua=function(a){this.xa=a;this.b=a.b};b.ua.prototype.P=function(){};b.ja=function(a){this.type=a;this.b=a.b;this.touches=[];this.dn=!1};var a=b.ja.prototype,e={left:0,top:0};a.sh=function(a){var b,
c;b=0;for(c=this.touches.length;b<c;b++)if(this.touches[b].id===a)return b;return-1};var k=0,g=0,l=0,w=0,v=0,C=0,A=[];m.prototype.init=function(a,b,c,e){var d=bb();this.Zn=this.Pm=this.time=d;this.Xk=a;this.Yk=b;this.x=a;this.y=b;this.id=c;this.Fi=e;this.Ni=this.gl=!1};m.prototype.update=function(a,b,c){this.Pm=this.time;this.time=a;this.x=b;this.y=c;!this.Ni&&15<=Ya(this.Xk,this.Yk,this.x,this.y)&&(this.Ni=!0)};m.prototype.Uv=function(a,b){!this.gl&&500<=bb()-this.Zn&&!this.Ni&&15>Ya(this.Xk,this.Yk,
this.x,this.y)&&(this.gl=!0,a.Id=this.Fi,a.Sg=this.id,a.ig=b,a.b.trigger(Z.prototype.j.Cs,a),a.Rd=this.x,a.Sd=this.y,a.b.trigger(Z.prototype.j.Ds,a),a.ig=0)};var x=-1E3,p=-1E3,t=-1E4;m.prototype.nq=function(a,b){if(!this.gl){var c=bb();333>=c-this.Zn&&!this.Ni&&15>Ya(this.Xk,this.Yk,this.x,this.y)&&(a.Id=this.Fi,a.Sg=this.id,a.ig=b,666>=c-t&&25>Ya(x,p,this.x,this.y)?(a.b.trigger(Z.prototype.j.xs,a),a.Rd=this.x,a.Sd=this.y,a.b.trigger(Z.prototype.j.ys,a),p=x=-1E3,t=-1E4):(a.b.trigger(Z.prototype.j.Go,
a),a.Rd=this.x,a.Sd=this.y,a.b.trigger(Z.prototype.j.Ho,a),x=this.x,p=this.y,t=c),a.ig=0)}};a.P=function(){this.Mv=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.ig=this.Sg=this.Id=this.Sd=this.Rd=this.No=this.Mo=this.Lo=this.ot=this.nt=this.mt=this.mi=this.li=this.ki=0;this.Xw=0!==this.B[0];var a=0<this.b.Mb?document:this.b.canvas,b=document;this.b.Eb?b=a=window.Canvas:this.b.Oc&&(b=a=window);var c=this;window.navigator.pointerEnabled?(a.addEventListener("pointerdown",function(a){c.Bq(a)},
!1),a.addEventListener("pointermove",function(a){c.Aq(a)},!1),b.addEventListener("pointerup",function(a){c.qk(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.qk(a,!0)},!1),this.b.canvas&&(this.b.canvas.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),document.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),this.b.canvas.addEventListener("gesturehold",function(a){a.preventDefault()},!1),document.addEventListener("gesturehold",function(a){a.preventDefault()},
!1))):window.navigator.msPointerEnabled?(a.addEventListener("MSPointerDown",function(a){c.Bq(a)},!1),a.addEventListener("MSPointerMove",function(a){c.Aq(a)},!1),b.addEventListener("MSPointerUp",function(a){c.qk(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.qk(a,!0)},!1),this.b.canvas&&(this.b.canvas.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),document.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1))):(a.addEventListener("touchstart",function(a){c.Eq(a)},
!1),a.addEventListener("touchmove",function(a){c.Dq(a)},!1),b.addEventListener("touchend",function(a){c.tn(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.tn(a,!0)},!1));if(this.Mv){var e=function(a){a=a.reading;c.Lo=a.accelerationX;c.Mo=a.accelerationY;c.No=a.accelerationZ},g=function(a){a=a.reading;c.ki=a.yawDegrees;c.li=a.pitchDegrees;c.mi=a.rollDegrees},h=Windows.Devices.Sensors.Accelerometer.getDefault();h&&(h.reportInterval=Math.max(h.minimumReportInterval,16),h.addEventListener("readingchanged",
e));var k=Windows.Devices.Sensors.Inclinometer.getDefault();k&&(k.reportInterval=Math.max(k.minimumReportInterval,16),k.addEventListener("readingchanged",g));document.addEventListener("visibilitychange",function(){document.hidden||document.msHidden?(h&&h.removeEventListener("readingchanged",e),k&&k.removeEventListener("readingchanged",g)):(h&&h.addEventListener("readingchanged",e),k&&k.addEventListener("readingchanged",g))},!1)}else window.addEventListener("deviceorientation",function(a){c.ki=a.alpha||
0;c.li=a.beta||0;c.mi=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.mt=a.accelerationIncludingGravity.x||0,c.nt=a.accelerationIncludingGravity.y||0,c.ot=a.accelerationIncludingGravity.z||0);a.acceleration&&(c.Lo=a.acceleration.x||0,c.Mo=a.acceleration.y||0,c.No=a.acceleration.z||0)},!1);this.Xw&&!this.b.Ea&&(jQuery(document).mousemove(function(a){c.rn(a)}),jQuery(document).mousedown(function(a){c.qn(a)}),jQuery(document).mouseup(function(a){c.sn(a)}));
this.b.ng&&!this.b.Eb&&AppMobi.accelerometer.watchAcceleration(d,{frequency:40,adjustForRotation:!0});this.b.Pc&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(q,null,{frequency:40});this.b.Qw(this)};a.Aq=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var b=this.sh(a.pointerId),c=bb();if(0<=b){var d=this.b.Ea?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)}}};a.Bq=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&ob(a)&&a.preventDefault();var b=this.b.Ea?e:jQuery(this.b.canvas).offset(),c=a.pageX-b.left,b=a.pageY-b.top;bb();this.Id=this.touches.length;this.Sg=a.pointerId;this.touches.push(h(c,b,a.pointerId,this.Id));this.b.sb=!0;this.b.trigger(Z.prototype.j.Eo,this);this.b.trigger(Z.prototype.j.tl,this);this.Rd=c;this.Sd=b;this.b.trigger(Z.prototype.j.sl,this);
this.b.sb=!1}};a.qk=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&ob(a)&&a.preventDefault();var c=this.sh(a.pointerId);this.Id=0<=c?this.touches[c].Fi:-1;this.Sg=0<=c?this.touches[c].id:-1;this.b.sb=!0;this.b.trigger(Z.prototype.j.Do,this);this.b.trigger(Z.prototype.j.Io,this);0<=c&&(b||this.touches[c].nq(this,c),100>A.length&&A.push(this.touches[c]),this.touches.splice(c,1));this.b.sb=!1}};a.Dq=function(a){a.preventDefault&&a.preventDefault();
var b=bb(),c,d,g,h;c=0;for(d=a.changedTouches.length;c<d;c++)if(g=a.changedTouches[c],h=this.sh(g.identifier),0<=h){var k=this.b.Ea?e:jQuery(this.b.canvas).offset();h=this.touches[h];2>b-h.time||h.update(b,g.pageX-k.left,g.pageY-k.top)}};a.Eq=function(a){a.preventDefault&&ob(a)&&a.preventDefault();var b=this.b.Ea?e:jQuery(this.b.canvas).offset();bb();this.b.sb=!0;var c,d,g,k;c=0;for(d=a.changedTouches.length;c<d;c++)if(g=a.changedTouches[c],k=this.sh(g.identifier),-1===k){k=g.pageX-b.left;var l=g.pageY-
b.top;this.Id=this.touches.length;this.Sg=g.identifier;this.touches.push(h(k,l,g.identifier,this.Id));this.b.trigger(Z.prototype.j.Eo,this);this.b.trigger(Z.prototype.j.tl,this);this.Rd=k;this.Sd=l;this.b.trigger(Z.prototype.j.sl,this)}this.b.sb=!1};a.tn=function(a,b){a.preventDefault&&ob(a)&&a.preventDefault();this.b.sb=!0;var c,e,d;c=0;for(e=a.changedTouches.length;c<e;c++)d=a.changedTouches[c],d=this.sh(d.identifier),0<=d&&(this.Id=this.touches[d].Fi,this.Sg=this.touches[d].id,this.b.trigger(Z.prototype.j.Do,
this),this.b.trigger(Z.prototype.j.Io,this),b||this.touches[d].nq(this,d),100>A.length&&A.push(this.touches[d]),this.touches.splice(d,1));this.b.sb=!1};a.eh=function(){return this.b.ng&&0===this.ki&&0!==l?90*l:this.b.Pc&&0===this.ki&&0!==C?90*C:this.ki};a.Lt=function(){return this.b.ng&&0===this.li&&0!==g?-90*g:this.b.Pc&&0===this.li&&0!==v?90*v:this.li};a.gy=function(){return this.b.ng&&0===this.mi&&0!==k?90*k:this.b.Pc&&0===this.mi&&0!==w?90*w:this.mi};a.qn=function(a){this.Eq({changedTouches:[{pageX:a.pageX,
pageY:a.pageY,identifier:0}]});this.dn=!0};a.rn=function(a){this.dn&&this.Dq({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};a.sn=function(a){a.preventDefault&&this.b.Oj&&!this.b.be&&a.preventDefault();this.b.Oj=!0;this.tn({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.dn=!1};a.dl=function(){var a,b,c,e=bb();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=e-50&&(c.Pm=e),c.Uv(this,a)};u.prototype.tl=function(){return!0};u.prototype.Io=function(){return!0};
u.prototype.sl=function(a){return a?this.b.Ii(a,this.Rd,this.Sd):!1};u.prototype.Eo=function(a){a=Math.floor(a);return a===this.Id};u.prototype.Do=function(a){a=Math.floor(a);return a===this.Id};u.prototype.Cs=function(){return!0};u.prototype.Go=function(){return!0};u.prototype.xs=function(){return!0};u.prototype.Ds=function(a){return a?this.b.Ii(a,this.Rd,this.Sd):!1};u.prototype.Ho=function(a){return a?this.b.Ii(a,this.Rd,this.Sd):!1};u.prototype.ys=function(a){return a?this.b.Ii(a,this.Rd,this.Sd):
!1};b.j=new u;c.prototype.Ti=function(a,b){var c=this.ig;if(0>c||c>=this.touches.length)a.C(0);else{var e,d,g,h,k;ia(b)?(e=this.b.Zd(0),d=e.scale,g=e.Kb,h=e.Zb,k=e.m,e.scale=1,e.Kb=1,e.Zb=1,e.m=0,a.C(e.qb(this.touches[c].x,this.touches[c].y,!0)),e.scale=d,e.Kb=g,e.Zb=h,e.m=k):(e=ja(b)?this.b.Zd(b):this.b.uh(b))?a.C(e.qb(this.touches[c].x,this.touches[c].y,!0)):a.C(0)}};c.prototype.Ui=function(a,b){var c=this.ig;if(0>c||c>=this.touches.length)a.C(0);else{var e,d,g,h,k;ia(b)?(e=this.b.Zd(0),d=e.scale,
g=e.Kb,h=e.$b,k=e.m,e.scale=1,e.Kb=1,e.$b=1,e.m=0,a.C(e.qb(this.touches[c].x,this.touches[c].y,!1)),e.scale=d,e.Kb=g,e.$b=h,e.m=k):(e=ja(b)?this.b.Zd(b):this.b.uh(b))?a.C(e.qb(this.touches[c].x,this.touches[c].y,!1)):a.C(0)}};b.wa=new c})();function vc(d){this.b=d}
(function(){function d(){}function q(){}function h(){}var m=vc.prototype;m.ua=function(a){this.xa=a;this.b=a.b};m.ua.prototype.P=function(){};m.ja=function(a){this.type=a;this.b=a.b};var u=m.ja.prototype,c="",b="undefined"!==typeof window.is_scirra_arcade;b&&(c="arcade"+window.scirra_arcade_id);var a=!1;try{localStorage.getItem("test"),a=!0}catch(e){a=!1}u.P=function(){a||da("[Construct 2] Webstorage plugin: local storage is not supported on this platform.")};d.prototype.Js=function(){return!0};d.prototype.Xr=
function(b,e,d){if(!a)return!1;b=localStorage.getItem(c+b)||"";return d?b==e:nb(b,e)};d.prototype.Wr=function(b,e,d){if(!a)return!1;b=localStorage.getItem(c+b)||"";return ec(parseFloat(b),e,d)};m.j=new d;q.prototype.et=function(b,e){if(a)try{localStorage.setItem(c+b,e)}catch(d){this.b.trigger(vc.prototype.j.Js,this)}};m.H=new q;h.prototype.os=function(b,e){a?b.pb(localStorage.getItem(c+e)||""):b.pb("")};h.prototype.xo=function(e){if(a){var d={},h,m,u;h=0;for(m=localStorage.length;h<m;h++)u=localStorage.key(h),
b?u.substr(0,c.length)===c&&(d[u.substr(c.length)]=localStorage.getItem(u)):d[u]=localStorage.getItem(u);e.pb(JSON.stringify({c2dictionary:!0,data:d}))}else e.pb("")};m.wa=new h})();function wc(d){this.b=d}
(function(){var d=wc.prototype;d.ua=function(d){this.xa=d;this.b=d.b};d.ua.prototype.P=function(){};d.ja=function(d){this.type=d;this.b=d.b};var q=d.ja.prototype;q.P=function(){this.Yv=this.B[0];this.returnValue="";var d=document.createElement("script");d.setAttribute("type","text/javascript");d.setAttribute("src",this.Yv);"undefined"!=typeof d&&document.getElementsByTagName("head")[0].appendChild(d)};q.lc=function(){};d.j={};d.H={};d.H.ds=function(d){this.returnValue="";try{this.returnValue=eval(d)}catch(m){this.returnValue=
m}};d.wa={};d.wa.Kx=function(d){d.pb(this.returnValue)}})();function xc(d){this.b=d}
(function(){function d(){}function q(){}var h=xc.prototype;h.ua=function(d){this.behavior=d;this.b=d.b};h.ua.prototype.P=function(){};h.ja=function(d,c){this.type=d;this.behavior=d.behavior;this.d=c;this.b=d.b};var m=h.ja.prototype;m.P=function(){var d=1===this.B[0];this.qh=this.B[1];this.Ri=this.B[2];this.xj=this.B[3];this.Pt=this.B[4];this.xc=d?0:3;this.ac?this.Vc.reset():this.Vc=new fb;this.Bf=this.d.opacity?this.d.opacity:1;d&&(0===this.qh?(this.xc=1,0===this.Ri&&(this.xc=2)):(this.d.opacity=
0,this.b.Y=!0))};m.Gb=function(){return{fit:this.qh,wt:this.Ri,fot:this.xj,s:this.xc,st:this.Vc.aa,mo:this.Bf}};m.Xb=function(d){this.qh=d.fit;this.Ri=d.wt;this.xj=d.fot;this.xc=d.s;this.Vc.reset();this.Vc.aa=d.st;this.Bf=d.mo};m.Ja=function(){this.Vc.add(this.b.gg(this.d));0===this.xc&&(this.d.opacity=this.Vc.aa/this.qh*this.Bf,this.b.Y=!0,this.d.opacity>=this.Bf&&(this.d.opacity=this.Bf,this.xc=1,this.Vc.reset(),this.b.trigger(xc.prototype.j.zs,this.d)));1===this.xc&&this.Vc.aa>=this.Ri&&(this.xc=
2,this.Vc.reset(),this.b.trigger(xc.prototype.j.Ms,this.d));2===this.xc&&0!==this.xj&&(this.d.opacity=this.Bf-this.Vc.aa/this.xj*this.Bf,this.b.Y=!0,0>this.d.opacity&&(this.d.opacity=0,this.xc=3,this.Vc.reset(),this.b.trigger(xc.prototype.j.As,this.d),1===this.Pt&&this.b.Ld(this.d)))};m.bu=function(){this.xc=0;this.Vc.reset();0===this.qh?(this.xc=1,0===this.Ri&&(this.xc=2)):(this.d.opacity=0,this.b.Y=!0)};d.prototype.As=function(){return!0};d.prototype.zs=function(){return!0};d.prototype.Ms=function(){return!0};
h.j=new d;q.prototype.dt=function(){3===this.xc&&this.bu()};h.H=new q;h.wa=new function(){}})();function yc(d){this.b=d}
(function(){function d(){}function q(){}var h=yc.prototype;h.ua=function(d){this.behavior=d;this.b=d.b};h.ua.prototype.P=function(){};h.ja=function(d,c){this.type=d;this.behavior=d.behavior;this.d=c;this.b=d.b;this.Qk=this.Xn=this.Wn=this.um=this.hh=this.nh=this.xg=this.Nh=this.Jk=this.ck=!1;this.Nb=null;this.Um=-1;this.tf=this.sf=0;this.Dj=!1;this.bg=this.bd=0;this.Bj=!0;this.qa=this.O=0};var m=h.ja.prototype;m.jo=function(){this.Ua=Math.cos(this.fg);this.Va=Math.sin(this.fg);this.If=Math.cos(this.fg-
Math.PI/2);this.Jf=Math.sin(this.fg-Math.PI/2);this.Ua=mb(this.Ua);this.Va=mb(this.Va);this.If=mb(this.If);this.Jf=mb(this.Jf);this.Gj=this.Tb;0>this.Tb&&(this.Ua*=-1,this.Va*=-1,this.Tb=Math.abs(this.Tb))};m.P=function(){this.ee=this.B[0];this.sd=this.B[1];this.Yf=this.B[2];this.Mh=this.B[3];this.Gj=this.Tb=this.B[4];this.lk=this.B[5];this.Rl=0!==this.B[6];this.Nm=this.B[7]/1E3;this.Nt=1===this.B[8];this.enabled=0!==this.B[9];this.Xg=!1;this.Yg=this.b.Xe(this.d);this.Vm=-1;this.Mf=0;this.fg=V(90);
this.jo();var d=this;this.Nt&&!this.b.Ea&&(jQuery(document).keydown(function(c){d.cw(c)}),jQuery(document).keyup(function(c){d.dw(c)}));this.ac||(this.sq=function(c){d.nn(c)});this.b.wl(this.sq);this.d.I.isPlatformBehavior=!0};m.Gb=function(){return{ii:this.um,lfx:this.sf,lfy:this.tf,lfo:this.Nb?this.Nb.uid:-1,am:this.bd,en:this.enabled,fall:this.bg,ft:this.Bj,dx:this.O,dy:this.qa,ms:this.ee,acc:this.sd,dec:this.Yf,js:this.Mh,g:this.Tb,g1:this.Gj,mf:this.lk,wof:this.Xg,woj:this.Yg?this.Yg.uid:-1,
ga:this.fg,edj:this.Rl,cdj:this.hh,dj:this.nh,sus:this.Nm}};m.Xb=function(d){this.um=d.ii;this.sf=d.lfx;this.tf=d.lfy;this.Um=d.lfo;this.bd=d.am;this.enabled=d.en;this.bg=d.fall;this.Bj=d.ft;this.O=d.dx;this.qa=d.dy;this.ee=d.ms;this.sd=d.acc;this.Yf=d.dec;this.Mh=d.js;this.Tb=d.g;this.Gj=d.g1;this.lk=d.mf;this.Xg=d.wof;this.Vm=d.woj;this.fg=d.ga;this.Rl=d.edj;this.hh=d.cdj;this.nh=d.dj;this.Nm=d.sus;this.Qk=this.Xn=this.Wn=this.xg=this.Nh=this.Jk=this.ck=!1;this.Mf=0;this.jo()};m.td=function(){-1===
this.Um?this.Nb=null:this.Nb=this.b.hg(this.Um);-1===this.Vm?this.Yg=null:this.Yg=this.b.hg(this.Vm)};m.nn=function(d){this.Nb==d&&(this.Nb=null)};m.Ef=function(){this.Nb=null;this.b.uw(this.sq)};m.cw=function(d){switch(d.which){case 38:d.preventDefault();this.Nh=!0;break;case 37:d.preventDefault();this.ck=!0;break;case 39:d.preventDefault(),this.Jk=!0}};m.dw=function(d){switch(d.which){case 38:d.preventDefault();this.xg=this.Nh=!1;break;case 37:d.preventDefault();this.ck=!1;break;case 39:d.preventDefault(),
this.Jk=!1}};m.eh=function(){return 0>this.Tb?-1:1};m.Ip=function(){var d=null,c=null,b,a;b=this.d.x;a=this.d.y;this.d.x+=this.Ua;this.d.y+=this.Va;this.d.D();if(this.Nb&&this.b.Xc(this.d,this.Nb))return this.d.x=b,this.d.y=a,this.d.D(),this.Nb;(d=this.b.gc(this.d))||0!==this.bg||(c=this.b.Xe(this.d,!0));this.d.x=b;this.d.y=a;this.d.D();if(d){if(this.b.Xc(this.d,d))return null;this.Dj=!1;return d}if(c&&c.length){a=d=0;for(b=c.length;d<b;d++)c[a]=c[d],this.b.Xc(this.d,c[d])||a++;if(1<=a)return this.Dj=
!0,c[0]}return null};m.Ja=function(){};m.Sq=function(){var d=this.b.gg(this.d),c,b,a,e,h,g,l,m,q;this.Nh||this.Qk||(this.xg=!1);var C=this.ck||this.Wn;a=this.Jk||this.Xn;var A=(e=this.Nh||this.Qk)&&!this.xg;this.Qk=this.Xn=this.Wn=!1;if(this.enabled){this.um&&(A=e=a=C=!1);e||(this.Mf=0);m=this.Nb;q=!1;this.Bj&&((this.b.gc(this.d)||this.b.Xe(this.d))&&this.b.Uc(this.d,-this.Ua,-this.Va,4,!0),this.Bj=!1);!m||0!==this.qa||m.y===this.tf&&m.x===this.sf||(c=m.x-this.sf,b=m.y-this.tf,this.d.x+=c,this.d.y+=
b,this.d.D(),this.sf=m.x,this.tf=m.y,q=!0,this.b.gc(this.d)&&this.b.Uc(this.d,-c,-b,2.5*Math.sqrt(c*c+b*b)));var x=this.Ip();if(b=this.b.gc(this.d))if(this.d.I.inputPredicted)this.b.Uc(this.d,-this.Ua,-this.Va,10,!1);else if(this.b.rw(this.d,Math.max(this.d.width,this.d.height)/2))this.b.vi(this.d,b);else return;x?(this.hh=this.nh=!1,0<this.qa&&(this.Xg||(this.b.Cn(this.d,-this.Ua,-this.Va,x),this.Xg=!0),this.qa=0),m!=x)?(this.Nb=x,this.sf=x.x,this.tf=x.y,this.b.vi(this.d,x)):q&&(b=this.b.gc(this.d))&&
(this.b.vi(this.d,b),0!==c&&(0<c?this.b.Uc(this.d,-this.If,-this.Jf):this.b.Uc(this.d,this.If,this.Jf)),this.b.Uc(this.d,-this.Ua,-this.Va)):e||(this.hh=!0);if(x&&A||!x&&this.Rl&&e&&this.hh&&!this.nh)m=this.d.x,q=this.d.y,this.d.x-=this.Ua,this.d.y-=this.Va,this.d.D(),this.b.gc(this.d)?A=!1:(this.Mf=this.Nm,this.b.trigger(yc.prototype.j.Es,this.d),this.bd=2,this.qa=-this.Mh,A=!0,x?this.xg=!0:this.nh=!0),this.d.x=m,this.d.y=q,this.d.D();x||(e&&0<this.Mf?(this.qa=-this.Mh,this.Mf-=d):(this.Nb=null,
this.qa+=this.Tb*d,this.qa>this.lk&&(this.qa=this.lk)),A&&(this.xg=!0));this.Xg=!!x;C==a&&(0>this.O?(this.O+=this.Yf*d,0<this.O&&(this.O=0)):0<this.O&&(this.O-=this.Yf*d,0>this.O&&(this.O=0)));C&&!a&&(this.O=0<this.O?this.O-(this.sd+this.Yf)*d:this.O-this.sd*d);a&&!C&&(this.O=0>this.O?this.O+(this.sd+this.Yf)*d:this.O+this.sd*d);this.O>this.ee?this.O=this.ee:this.O<-this.ee&&(this.O=-this.ee);C=!1;0!==this.O&&(m=this.d.x,q=this.d.y,c=this.O*d*this.If,b=this.O*d*this.Jf,this.d.x+=this.If*(1<this.O?
1:-1)-this.Ua,this.d.y+=this.Jf*(1<this.O?1:-1)-this.Va,this.d.D(),e=!1,h=this.b.gc(this.d),this.d.x=m+c,this.d.y=q+b,this.d.D(),a=this.b.gc(this.d),!a&&x&&(a=this.b.Xe(this.d))&&(this.d.x=m,this.d.y=q,this.d.D(),this.b.Xc(this.d,a)?(a=null,e=!1):e=!0,this.d.x=m+c,this.d.y=q+b,this.d.D()),a?(c=Math.abs(this.O*d)+2,h||!this.b.Uc(this.d,-this.Ua,-this.Va,c,e,a))?(this.b.vi(this.d,a),c=Math.max(Math.abs(this.O*d*2.5),30),this.b.Uc(this.d,this.If*(0>this.O?1:-1),this.Jf*(0>this.O?1:-1),c,!1)?!x||e||this.Dj||
(m=this.d.x,q=this.d.y,this.d.x+=this.Ua,this.d.y+=this.Va,this.b.gc(this.d)?this.b.Uc(this.d,-this.Ua,-this.Va,3,!1)||(this.d.x=m,this.d.y=q,this.d.D()):(this.d.x=m,this.d.y=q,this.d.D())):(this.d.x=m,this.d.y=q,this.d.D()),e||(this.O=0)):!h&&!A&&Math.abs(this.qa)<Math.abs(this.Mh/4)&&(this.qa=0,x||(C=!0)):(m=this.Ip(),x&&!m?(b=Math.ceil(Math.abs(this.O*d))+2,m=this.d.x,q=this.d.y,this.d.x+=this.Ua*b,this.d.y+=this.Va*b,this.d.D(),this.b.gc(this.d)||this.b.Xe(this.d)?this.b.Uc(this.d,-this.Ua,-this.Va,
b+2,!0):(this.d.x=m,this.d.y=q,this.d.D())):m&&0===this.qa&&this.b.Cn(this.d,-this.Ua,-this.Va,m)));if(0!==this.qa){m=this.d.x;q=this.d.y;this.d.x+=this.qa*d*this.Ua;this.d.y+=this.qa*d*this.Va;c=this.d.x;a=this.d.y;this.d.D();b=this.b.gc(this.d);e=!1;if(!b&&0<this.qa&&!x){if((e=0<this.bg?null:this.b.Xe(this.d,!0))&&e.length){if(this.Yg){this.d.x=m;this.d.y=q;this.d.D();l=h=0;for(g=e.length;h<g;h++)e[l]=e[h],this.b.Xc(this.d,e[h])||l++;e.length=l;this.d.x=c;this.d.y=a;this.d.D()}1<=e.length&&(b=e[0])}e=
!!b}b&&(this.b.vi(this.d,b),this.Mf=0,c=e?Math.abs(this.qa*d*2.5+10):Math.max(Math.abs(this.qa*d*2.5+10),30),this.b.Uc(this.d,this.Ua*(0>this.qa?1:-1),this.Va*(0>this.qa?1:-1),c,e,b)?(this.Nb=b,this.sf=b.x,this.tf=b.y,(this.Dj=e)&&(C=!0),this.qa=0):(this.d.x=m,this.d.y=q,this.d.D(),this.Xg=!0,e||(this.qa=0)))}3!==this.bd&&0<this.qa&&!x&&(this.b.trigger(yc.prototype.j.Bs,this.d),this.bd=3);if(x||C)3===this.bd||C||A&&0===this.qa?(this.b.trigger(yc.prototype.j.Fs,this.d),this.bd=0===this.O&&0===this.qa?
0:1):(0!==this.bd&&0===this.O&&0===this.qa&&(this.b.trigger(yc.prototype.j.Ls,this.d),this.bd=0),1===this.bd||0===this.O&&0===this.qa||A||(this.b.trigger(yc.prototype.j.Is,this.d),this.bd=1));0<this.bg&&this.bg--;this.Yg=this.b.Xe(this.d)}};d.prototype.Es=function(){return!0};d.prototype.Bs=function(){return!0};d.prototype.Ls=function(){return!0};d.prototype.Is=function(){return!0};d.prototype.Fs=function(){return!0};h.j=new d;q.prototype.Ts=function(d){this.ee=d;0>this.ee&&(this.ee=0)};q.prototype.Jo=
function(d){this.Gj!==d&&(this.Tb=d,this.jo(),this.b.gc(this.d)&&(this.b.Uc(this.d,this.Ua,this.Va,10),this.d.x+=2*this.Ua,this.d.y+=2*this.Va,this.d.D()),this.Nb=null)};q.prototype.Ys=function(d){this.O=d};q.prototype.Zs=function(d){this.qa=d};q.prototype.ul=function(d){this.enabled!==(1===d)&&(this.enabled=1===d,this.enabled||(this.Nb=null))};h.H=new q;h.wa=new function(){}})();function Bc(d){this.b=d}
(function(){var d=Bc.prototype;d.ua=function(c){this.behavior=c;this.b=c.b};d.ua.prototype.P=function(){};d.ja=function(c,b){this.type=c;this.behavior=c.behavior;this.d=b;this.b=c.b;this.$a=0};var q=d.ja.prototype,h=2*Math.PI,m=Math.PI/2,u=3*Math.PI/2;q.P=function(){this.Ka=1===this.B[0];this.fi=this.B[1];this.uo=this.B[2];this.he=this.B[3];this.he+=Math.random()*this.B[4];0===this.he?this.$a=0:(this.$a=this.B[5]/this.he*h,this.$a+=Math.random()*this.B[6]/this.he*h);this.Yb=this.B[7];this.Yb+=Math.random()*
this.B[8];this.ti=this.qf=this.ba=0;this.init()};q.Gb=function(){return{i:this.$a,a:this.Ka,mv:this.fi,w:this.uo,p:this.he,mag:this.Yb,iv:this.ba,iv2:this.qf,r:this.ti,lkv:this.rc,lkv2:this.Oh}};q.Xb=function(c){this.$a=c.i;this.Ka=c.a;this.fi=c.mv;this.uo=c.w;this.he=c.p;this.Yb=c.mag;this.ba=c.iv;this.qf=c.iv2||0;this.ti=c.r;this.rc=c.lkv;this.Oh=c.lkv2||0};q.init=function(){switch(this.fi){case 0:this.ba=this.d.x;break;case 1:this.ba=this.d.y;break;case 2:this.ba=this.d.width;this.ti=this.d.height/
this.d.width;break;case 3:this.ba=this.d.width;break;case 4:this.ba=this.d.height;break;case 5:this.ba=this.d.m;this.Yb=V(this.Yb);break;case 6:this.ba=this.d.opacity;break;case 7:this.ba=0;break;case 8:this.ba=this.d.x,this.qf=this.d.y}this.rc=this.ba;this.Oh=this.qf};q.re=function(c){c=c%h;switch(this.uo){case 0:return Math.sin(c);case 1:return c<=m?c/m:c<=u?1-2*(c-m)/Math.PI:(c-u)/m-1;case 2:return 2*c/h-1;case 3:return-2*c/h+1;case 4:return c<Math.PI?-1:1}return 0};q.Ja=function(){var c=this.b.gg(this.d);
if(this.Ka&&0!==c){0===this.he?this.$a=0:(this.$a+=c/this.he*h,this.$a=this.$a%h);switch(this.fi){case 0:this.d.x!==this.rc&&(this.ba+=this.d.x-this.rc);this.d.x=this.ba+this.re(this.$a)*this.Yb;this.rc=this.d.x;break;case 1:this.d.y!==this.rc&&(this.ba+=this.d.y-this.rc);this.d.y=this.ba+this.re(this.$a)*this.Yb;this.rc=this.d.y;break;case 2:this.d.width=this.ba+this.re(this.$a)*this.Yb;this.d.height=this.d.width*this.ti;break;case 3:this.d.width=this.ba+this.re(this.$a)*this.Yb;break;case 4:this.d.height=
this.ba+this.re(this.$a)*this.Yb;break;case 5:this.d.m!==this.rc&&(this.ba=Ma(this.ba+(this.d.m-this.rc)));this.d.m=Ma(this.ba+this.re(this.$a)*this.Yb);this.rc=this.d.m;break;case 6:this.d.opacity=this.ba+this.re(this.$a)*this.Yb/100;0>this.d.opacity?this.d.opacity=0:1<this.d.opacity&&(this.d.opacity=1);break;case 8:this.d.x!==this.rc&&(this.ba+=this.d.x-this.rc),this.d.y!==this.Oh&&(this.qf+=this.d.y-this.Oh),this.d.x=this.ba+Math.cos(this.d.m)*this.re(this.$a)*this.Yb,this.d.y=this.qf+Math.sin(this.d.m)*
this.re(this.$a)*this.Yb,this.rc=this.d.x,this.Oh=this.d.y}this.d.D()}};q.Cq=function(c,b){switch(this.fi){case 2:this.ba*=b.width/c.width;this.ti=b.height/b.width;break;case 3:this.ba*=b.width/c.width;break;case 4:this.ba*=b.height/c.height}};d.j=new function(){};d.H=new function(){};d.wa=new function(){}})();function Cc(d){this.b=d;this.Tn=this.Pk=this.Di=this.Sn=0}
(function(){function d(){}var q=Cc.prototype;q.ua=function(d){this.behavior=d;this.b=d.b};q.ua.prototype.P=function(){};q.ja=function(d,h){this.type=d;this.behavior=d.behavior;this.d=h;this.b=d.b};var h=q.ja.prototype;h.P=function(){this.enabled=0!==this.B[0]};h.Gb=function(){return{smg:this.behavior.Sn,ss:this.behavior.Di,se:this.behavior.Pk,smd:this.behavior.Tn}};h.Xb=function(d){this.behavior.Sn=d.smg;this.behavior.Di=d.ss;this.behavior.Pk=d.se;this.behavior.Tn=d.smd};h.Ja=function(){};h.dl=function(){if(this.enabled){var d=
this.behavior.mk.pe(),h=0,c=0,b,a,e,k=0;b=0;for(a=d.length;b<a;b++){a:{e=d[b];for(var g=void 0,l=void 0,q=void 0,g=0,l=e.N.length;g<l;++g)if(q=e.N[g],q.behavior instanceof Cc){e=q;break a}e=null}e&&e.enabled&&(h+=d[b].x,c+=d[b].y,++k)}d=this.d.k.bb;a=this.b.qc.aa;e=b=0;a>=this.behavior.Di&&a<this.behavior.Pk&&(b=this.behavior.Sn*Math.min(this.b.Of,1),0===this.behavior.Tn&&(b*=1-(a-this.behavior.Di)/(this.behavior.Pk-this.behavior.Di)),a=Math.random()*Math.PI*2,e=Math.random()*b,b=Math.cos(a)*e,e*=
Math.sin(a));d.On(h/k+b);d.Pn(c/k+e)}};d.prototype.ul=function(d){this.enabled=0!==d};q.H=new d})();function pc(d){this.b=d}(function(){function d(){}var q=pc.prototype;q.ua=function(d){this.behavior=d;this.b=d.b};q.ua.prototype.P=function(){};q.ja=function(d,h){this.type=d;this.behavior=d.behavior;this.d=h;this.b=d.b};var h=q.ja.prototype;h.P=function(){this.d.I.solidEnabled=0!==this.B[0]};h.Ja=function(){};q.j=new function(){};d.prototype.ul=function(d){this.d.I.solidEnabled=!!d};q.H=new d})();
function oc(){return[qc,wc,Y,tc,uc,Z,vc,rc,sc,pc,yc,Cc,xc,Bc,X.prototype.j.ks,X.prototype.j.Bo,X.prototype.H.it,X.prototype.H.Rs,Y.prototype.H.Ps,vc.prototype.j.Xr,vc.prototype.H.et,X.prototype.j.bs,Y.prototype.j.Zr,Y.prototype.H.Ko,Y.prototype.wa.Ti,Y.prototype.wa.Ui,Y.prototype.j.yo,Z.prototype.j.Ho,qc.prototype.H.Play,X.prototype.H.es,X.prototype.j.Yr,Z.prototype.j.sl,wc.prototype.H.ds,yc.prototype.H.ul,sc.prototype.H.Vs,X.prototype.H.Xs,vc.prototype.wa.os,X.prototype.j.cs,Y.prototype.H.Os,tc.prototype.H.ct,
tc.prototype.wa.Ui,tc.prototype.H.Ws,X.prototype.H.Rr,Z.prototype.j.Go,Z.prototype.j.tl,yc.prototype.H.Zs,Y.prototype.j.Vr,X.prototype.H.$r,Y.prototype.j.vs,Y.prototype.H.Ss,X.prototype.j.zo,yc.prototype.H.Ys,Y.prototype.H.Us,Y.prototype.H.as,Y.prototype.j.Zg,xc.prototype.H.dt,X.prototype.wa.random,X.prototype.j.ht,qc.prototype.H.$s,tc.prototype.j.Zg,yc.prototype.H.Jo,yc.prototype.H.Ts,tc.prototype.H.Ko,tc.prototype.wa.Ti,tc.prototype.j.yo,vc.prototype.j.Wr,X.prototype.wa["int"],tc.prototype.H.Qs,
X.prototype.wa.zw]};
