// Generated by Construct 2, the HTML5 game and app creator :: https://www.construct.net
'use strict';var aa,da,ea,ga,ja,ka,la,w,ma,na,oa,pa,ra,sa,M,ta,ua,va,wa,xa,ya,za,O,Aa,Ba,Ca,Da,Fa,V,Ha,Ia,X,Ja,La,Ma,Na,Oa,Pa,Qa,Ra,Sa,Ta,Ua,Xa,Ya,Za,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,mb,nb,ob,pb,qb,rb,sb,tb,ub,vb,wb,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={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(b){return b.__proto__}:function(b){return b.constructor.prototype});
(function(){function b(a,d,e,f){this.set(a,d,e,f)}function h(){this.Yb=this.Xb=this.$b=this.Zb=this.kc=this.jc=this.Qb=this.Pb=0}function p(a,d,e,f){a<d?e<f?(D=a<e?a:e,F=d>f?d:f):(D=a<f?a:f,F=d>e?d:e):e<f?(D=d<e?d:e,F=a>f?a:f):(D=d<f?d:f,F=a>e?a:e)}function l(){this.items=this.Xa=null;this.Ni=0;R&&(this.Xa=new Set);this.Xh=[];this.hf=!0}function g(a){C[G++]=a}function q(){this.da=this.hm=this.y=this.Mm=0}function c(a){this.xb=[];this.ck=this.ek=this.fk=this.dk=0;this.Bj(a)}function a(a,d){this.Qm=
a;this.Pm=d;this.cells={}}function m(a,d){this.Qm=a;this.Pm=d;this.cells={}}function v(a,d,e){var f;return z.length?(f=z.pop(),f.Dn=a,f.x=d,f.y=e,f):new aa(a,d,e)}function d(a,d,e){this.Dn=a;this.x=d;this.y=e;this.Ab=new da}function e(a,d,e){var f;return t.length?(f=t.pop(),f.Dn=a,f.x=d,f.y=e,f):new ea(a,d,e)}function k(a,d,e){this.Dn=a;this.x=d;this.y=e;this.Ab=[];this.qh=!0;this.ge=new da;this.ci=!1}function f(a,d){return a.Td-d.Td}ga=function(a){window.console&&window.console.log&&window.console.log(a)};
ja=function(a){window.console&&window.console.error&&window.console.error(a)};ka=function(a){return"undefined"===typeof a};la=function(a){return"number"===typeof a};w=function(a){return"string"===typeof a};ma=function(a){return 0<a&&0===(a-1&a)};na=function(a){--a;for(var d=1;32>d;d<<=1)a=a|a>>d;return a+1};oa=function(a){return 0>a?-a:a};pa=function(a,d){return a>d?a:d};ra=function(a,d){return a<d?a:d};sa=Math.PI;M=function(a){return 0<=a?a|0:(a|0)-1};ta=function(a){var d=a|0;return d===a?d:d+1};
ua=function(a,d,e,f,c,m,k,n){var b,r,y,x;a<e?(r=a,b=e):(r=e,b=a);c<k?(x=c,y=k):(x=k,y=c);if(b<x||r>y)return!1;d<f?(r=d,b=f):(r=f,b=d);m<n?(x=m,y=n):(x=n,y=m);if(b<x||r>y)return!1;b=c-a+k-e;r=m-d+n-f;a=e-a;d=f-d;c=k-c;m=n-m;n=oa(d*c-m*a);return oa(c*r-m*b)>n?!1:oa(a*r-d*b)<=n};b.prototype.set=function(a,d,e,f){this.left=a;this.top=d;this.right=e;this.bottom=f};b.prototype.Ug=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};b.prototype.width=function(){return this.right-
this.left};b.prototype.height=function(){return this.bottom-this.top};b.prototype.offset=function(a,d){this.left+=a;this.top+=d;this.right+=a;this.bottom+=d;return this};b.prototype.normalize=function(){var a=0;this.left>this.right&&(a=this.left,this.left=this.right,this.right=a);this.top>this.bottom&&(a=this.top,this.top=this.bottom,this.bottom=a)};b.prototype.Nq=function(a){return!(a.right<this.left||a.bottom<this.top||a.left>this.right||a.top>this.bottom)};b.prototype.Oq=function(a,d,e){return!(a.right+
d<this.left||a.bottom+e<this.top||a.left+d>this.right||a.top+e>this.bottom)};b.prototype.cc=function(a,d){return a>=this.left&&a<=this.right&&d>=this.top&&d<=this.bottom};b.prototype.oi=function(a){return this.left===a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};va=b;h.prototype.Ne=function(a){this.Pb=a.left;this.Qb=a.top;this.jc=a.right;this.kc=a.top;this.Zb=a.right;this.$b=a.bottom;this.Xb=a.left;this.Yb=a.bottom};h.prototype.Cs=function(a,d){if(0===d)this.Ne(a);else{var e=
Math.sin(d),f=Math.cos(d),c=a.left*e,m=a.top*e,k=a.right*e,e=a.bottom*e,n=a.left*f,b=a.top*f,r=a.right*f,f=a.bottom*f;this.Pb=n-m;this.Qb=b+c;this.jc=r-m;this.kc=b+k;this.Zb=r-e;this.$b=f+k;this.Xb=n-e;this.Yb=f+c}};h.prototype.offset=function(a,d){this.Pb+=a;this.Qb+=d;this.jc+=a;this.kc+=d;this.Zb+=a;this.$b+=d;this.Xb+=a;this.Yb+=d;return this};var D=0,F=0;h.prototype.Up=function(a){p(this.Pb,this.jc,this.Zb,this.Xb);a.left=D;a.right=F;p(this.Qb,this.kc,this.$b,this.Yb);a.top=D;a.bottom=F};h.prototype.cc=
function(a,d){var e=this.Pb,f=this.Qb,c=this.jc-e,m=this.kc-f,k=this.Zb-e,n=this.$b-f,b=a-e,r=d-f,y=c*c+m*m,x=c*k+m*n,m=c*b+m*r,v=k*k+n*n,g=k*b+n*r,u=1/(y*v-x*x),c=(v*m-x*g)*u,y=(y*g-x*m)*u;if(0<=c&&0<y&&1>c+y)return!0;c=this.Xb-e;m=this.Yb-f;y=c*c+m*m;x=c*k+m*n;m=c*b+m*r;u=1/(y*v-x*x);c=(v*m-x*g)*u;y=(y*g-x*m)*u;return 0<=c&&0<y&&1>c+y};h.prototype.gf=function(a,d){if(d)switch(a){case 0:return this.Pb;case 1:return this.jc;case 2:return this.Zb;case 3:return this.Xb;case 4:return this.Pb;default:return this.Pb}else switch(a){case 0:return this.Qb;
case 1:return this.kc;case 2:return this.$b;case 3:return this.Yb;case 4:return this.Qb;default:return this.Qb}};h.prototype.Dr=function(){return(this.Pb+this.jc+this.Zb+this.Xb)/4};h.prototype.Er=function(){return(this.Qb+this.kc+this.$b+this.Yb)/4};h.prototype.Sn=function(a){var d=a.Dr(),e=a.Er();if(this.cc(d,e))return!0;d=this.Dr();e=this.Er();if(a.cc(d,e))return!0;var f,c,m,k,n,b,r,y;for(r=0;4>r;r++)for(y=0;4>y;y++)if(d=this.gf(r,!0),e=this.gf(r,!1),f=this.gf(r+1,!0),c=this.gf(r+1,!1),m=a.gf(y,
!0),k=a.gf(y,!1),n=a.gf(y+1,!0),b=a.gf(y+1,!1),ua(d,e,f,c,m,k,n,b))return!0;return!1};wa=h;xa=function(a,d){for(var e in d)d.hasOwnProperty(e)&&(a[e]=d[e]);return a};ya=function(a,d){var e,f;d=M(d);if(!(0>d||d>=a.length)){e=d;for(f=a.length-1;e<f;e++)a[e]=a[e+1];za(a,f)}};za=function(a,d){a.length=d};O=function(a){za(a,0)};Aa=function(a,d){O(a);var e,f;e=0;for(f=d.length;e<f;++e)a[e]=d[e]};Ba=function(a,d){a.push.apply(a,d)};Ca=function(a,d){var e,f;e=0;for(f=a.length;e<f;++e)if(a[e]===d)return e;
return-1};Da=function(a,d){var e=Ca(a,d);-1!==e&&ya(a,e)};Fa=function(a,d,e){return a<d?d:a>e?e:a};V=function(a){return a/(180/sa)};Ha=function(a){return 180/sa*a};Ia=function(a){a%=360;0>a&&(a+=360);return a};X=function(a){a%=2*sa;0>a&&(a+=2*sa);return a};Ja=function(a){return Ia(Ha(a))};La=function(a){return X(V(a))};Ma=function(a,d,e,f){return Math.atan2(f-d,e-a)};Na=function(a,d){if(a===d)return 0;var e=Math.sin(a),f=Math.cos(a),c=Math.sin(d),m=Math.cos(d),e=e*c+f*m;return 1<=e?0:-1>=e?sa:Math.acos(e)};
Oa=function(a,d,e){var f=Math.sin(a),c=Math.cos(a),m=Math.sin(d),k=Math.cos(d);return Math.acos(f*m+c*k)>e?0<c*m-f*k?X(a+e):X(a-e):X(d)};Pa=function(a,d){var e=Math.sin(a),f=Math.cos(a),c=Math.sin(d),m=Math.cos(d);return 0>=f*c-e*m};Qa=function(a,d,e,f,c,m){if(0===e)return m?a:d;var k=Math.sin(e);e=Math.cos(e);a-=f;d-=c;var n=a*k;a=a*e-d*k;d=d*e+n;return m?a+f:d+c};Ra=function(a,d,e,f){a=e-a;d=f-d;return Math.sqrt(a*a+d*d)};Sa=function(a,d){return!a!==!d};Ta=function(a){for(var d in a)if(a.hasOwnProperty(d))return!0;
return!1};Ua=function(a){for(var d in a)a.hasOwnProperty(d)&&delete a[d]};var B=+new Date;Xa=function(){if("undefined"!==typeof window.performance){var a=window.performance;if("undefined"!==typeof a.now)return a.now();if("undefined"!==typeof a.webkitNow)return a.webkitNow();if("undefined"!==typeof a.mozNow)return a.mozNow();if("undefined"!==typeof a.msNow)return a.msNow()}return Date.now()-B};var n=!1,u=n=!1,S=!1;"undefined"!==typeof window&&(n=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),
n=!n&&/safari/i.test(navigator.userAgent),u=/(iphone|ipod|ipad)/i.test(navigator.userAgent),S=window.c2ejecta);var R=!n&&!S&&!u&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;l.prototype.contains=function(a){return this.ze()?!1:R?this.Xa.has(a):this.items&&this.items.hasOwnProperty(a)};l.prototype.add=function(a){if(R)this.Xa.has(a)||(this.Xa.add(a),this.hf=!1);else{var d=a.toString(),e=this.items;e?e.hasOwnProperty(d)||(e[d]=a,this.Ni++,this.hf=!1):(this.items={},this.items[d]=
a,this.Ni=1,this.hf=!1)}};l.prototype.remove=function(a){if(!this.ze())if(R)this.Xa.has(a)&&(this.Xa["delete"](a),this.hf=!1);else if(this.items){a=a.toString();var d=this.items;d.hasOwnProperty(a)&&(delete d[a],this.Ni--,this.hf=!1)}};l.prototype.clear=function(){this.ze()||(R?this.Xa.clear():(this.items=null,this.Ni=0),O(this.Xh),this.hf=!0)};l.prototype.ze=function(){return 0===this.count()};l.prototype.count=function(){return R?this.Xa.size:this.Ni};var C=null,G=0;l.prototype.oy=function(){if(!this.hf){if(R)O(this.Xh),
C=this.Xh,G=0,this.Xa.forEach(g),C=null,G=0;else{var a=this.Xh;O(a);var d,e=0,f=this.items;if(f)for(d in f)f.hasOwnProperty(d)&&(a[e++]=f[d])}this.hf=!0}};l.prototype.Ve=function(){this.oy();return this.Xh};da=l;new da;Ya=function(a,d){R?Za(a,d.Xa):$a(a,d.Ve())};Za=function(a,d){var e,f,c,m;f=e=0;for(c=a.length;e<c;++e)m=a[e],d.has(m)||(a[f++]=m);za(a,f)};$a=function(a,d){var e,f,c,m;f=e=0;for(c=a.length;e<c;++e)m=a[e],-1===Ca(d,m)&&(a[f++]=m);za(a,f)};q.prototype.add=function(a){this.y=a-this.Mm;
this.hm=this.da+this.y;this.Mm=this.hm-this.da-this.y;this.da=this.hm};q.prototype.reset=function(){this.da=this.hm=this.y=this.Mm=0};ab=q;bb=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};c.prototype.Bj=function(a){this.ls=a;this.Ld=a.length/2;this.xb.length=a.length;this.ik=this.jk=-1;this.Xp=0};c.prototype.ng=function(){return!this.ls.length};c.prototype.Aa=function(){for(var a=this.xb,d=a[0],e=d,f=a[1],c=f,m,k,n=1,b=this.Ld;n<b;++n)k=2*n,m=a[k],k=a[k+1],m<d&&(d=m),m>e&&(e=m),
k<f&&(f=k),k>c&&(c=k);this.dk=d;this.ek=e;this.fk=f;this.ck=c};c.prototype.Ne=function(a,d,e){this.xb.length=8;this.Ld=4;var f=this.xb;f[0]=a.left-d;f[1]=a.top-e;f[2]=a.right-d;f[3]=a.top-e;f[4]=a.right-d;f[5]=a.bottom-e;f[6]=a.left-d;f[7]=a.bottom-e;this.jk=a.right-a.left;this.ik=a.bottom-a.top;this.Aa()};c.prototype.Fg=function(a,d,e,f,c){this.xb.length=8;this.Ld=4;var m=this.xb;m[0]=a.Pb-d;m[1]=a.Qb-e;m[2]=a.jc-d;m[3]=a.kc-e;m[4]=a.Zb-d;m[5]=a.$b-e;m[6]=a.Xb-d;m[7]=a.Yb-e;this.jk=f;this.ik=c;this.Aa()};
c.prototype.Bs=function(a){this.Ld=a.Ld;Aa(this.xb,a.xb);this.dk=a.dk;this.fk=a.fk;this.ek=a.ek;this.ck=a.ck};c.prototype.Qf=function(a,d,e){if(this.jk!==a||this.ik!==d||this.Xp!==e){this.jk=a;this.ik=d;this.Xp=e;var f,c,m,k,n,b=0,r=1,y=this.ls,x=this.xb;0!==e&&(b=Math.sin(e),r=Math.cos(e));e=0;for(m=this.Ld;e<m;e++)f=2*e,c=f+1,k=y[f]*a,n=y[c]*d,x[f]=k*r-n*b,x[c]=n*r+k*b;this.Aa()}};c.prototype.cc=function(a,d){var e=this.xb;if(a===e[0]&&d===e[1])return!0;var f,c,m,k=this.Ld,n=this.dk-110,b=this.fk-
101,r=this.ek+131,y=this.ck+120,x,v,g=0,u=0;for(f=0;f<k;f++)c=2*f,m=(f+1)%k*2,x=e[c],c=e[c+1],v=e[m],m=e[m+1],ua(n,b,a,d,x,c,v,m)&&g++,ua(r,y,a,d,x,c,v,m)&&u++;return 1===g%2||1===u%2};c.prototype.lg=function(a,d,e){var f=a.xb,c=this.xb;if(this.cc(f[0]+d,f[1]+e)||a.cc(c[0]-d,c[1]-e))return!0;var m,k,n,b,r,y,x,v,g,u,D,q;m=0;for(b=this.Ld;m<b;m++)for(k=2*m,n=(m+1)%b*2,v=c[k],k=c[k+1],g=c[n],u=c[n+1],n=0,x=a.Ld;n<x;n++)if(r=2*n,y=(n+1)%x*2,D=f[r]+d,r=f[r+1]+e,q=f[y]+d,y=f[y+1]+e,ua(v,k,g,u,D,r,q,y))return!0;
return!1};cb=c;a.prototype.pf=function(a,d,e){var f;f=this.cells[a];return f?(f=f[d])?f:e?(f=v(this,a,d),this.cells[a][d]=f):null:e?(f=v(this,a,d),this.cells[a]={},this.cells[a][d]=f):null};a.prototype.lc=function(a){return M(a/this.Qm)};a.prototype.mc=function(a){return M(a/this.Pm)};a.prototype.update=function(a,d,e){var f,c,m,k,n;if(d)for(f=d.left,c=d.right;f<=c;++f)for(m=d.top,k=d.bottom;m<=k;++m)if(!e||!e.cc(f,m))if(n=this.pf(f,m,!1))n.remove(a),n.ze()&&(n.Ab.clear(),1E3>z.length&&z.push(n),
this.cells[f][m]=null);if(e)for(f=e.left,c=e.right;f<=c;++f)for(m=e.top,k=e.bottom;m<=k;++m)d&&d.cc(f,m)||this.pf(f,m,!0).Qn(a)};a.prototype.Ll=function(a,d){var e,f,m,c,k,n;e=this.lc(a.left);m=this.mc(a.top);f=this.lc(a.right);for(k=this.mc(a.bottom);e<=f;++e)for(c=m;c<=k;++c)(n=this.pf(e,c,!1))&&n.dump(d)};db=a;m.prototype.pf=function(a,d,f){var c;c=this.cells[a];return c?(c=c[d])?c:f?(c=e(this,a,d),this.cells[a][d]=c):null:f?(c=e(this,a,d),this.cells[a]={},this.cells[a][d]=c):null};m.prototype.lc=
function(a){return M(a/this.Qm)};m.prototype.mc=function(a){return M(a/this.Pm)};m.prototype.update=function(a,d,e){var f,c,m,k,n;if(d)for(f=d.left,c=d.right;f<=c;++f)for(m=d.top,k=d.bottom;m<=k;++m)if(!e||!e.cc(f,m))if(n=this.pf(f,m,!1))n.remove(a),n.ze()&&(n.reset(),1E3>t.length&&t.push(n),this.cells[f][m]=null);if(e)for(f=e.left,c=e.right;f<=c;++f)for(m=e.top,k=e.bottom;m<=k;++m)d&&d.cc(f,m)||this.pf(f,m,!0).Qn(a)};m.prototype.Ll=function(a,d,e,f,c){var m,k;a=this.lc(a);d=this.mc(d);e=this.lc(e);
for(m=this.mc(f);a<=e;++a)for(f=d;f<=m;++f)(k=this.pf(a,f,!1))&&k.dump(c)};m.prototype.Sw=function(a){var d,e,f,c,m;d=a.left;f=a.top;e=a.right;for(c=a.bottom;d<=e;++d)for(a=f;a<=c;++a)if(m=this.pf(d,a,!1))m.qh=!1};eb=m;var z=[];d.prototype.ze=function(){return this.Ab.ze()};d.prototype.Qn=function(a){this.Ab.add(a)};d.prototype.remove=function(a){this.Ab.remove(a)};d.prototype.dump=function(a){Ba(a,this.Ab.Ve())};aa=d;var t=[];k.prototype.ze=function(){if(!this.Ab.length)return!0;if(this.Ab.length>
this.ge.count())return!1;this.pn();return!0};k.prototype.Qn=function(a){this.ge.contains(a)?(this.ge.remove(a),this.ge.ze()&&(this.ci=!1)):this.Ab.length?(this.Ab[this.Ab.length-1].$d()>a.$d()&&(this.qh=!1),this.Ab.push(a)):(this.Ab.push(a),this.qh=!0)};k.prototype.remove=function(a){this.ge.add(a);this.ci=!0;30<=this.ge.count()&&this.pn()};k.prototype.pn=function(){this.ci&&(this.ge.count()===this.Ab.length?this.reset():(Ya(this.Ab,this.ge),this.ge.clear(),this.ci=!1))};k.prototype.hv=function(){this.qh||
(this.Ab.sort(f),this.qh=!0)};k.prototype.reset=function(){O(this.Ab);this.qh=!0;this.ge.clear();this.ci=!1};k.prototype.dump=function(a){this.pn();this.hv();this.Ab.length&&a.push(this.Ab)};ea=k;var L="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");fb=function(a){return 0>=a||11<=a?"source-over":L[a-1]};gb=function(a,d,e){if(e)switch(a.Ob=e.ONE,a.Eb=e.ONE_MINUS_SRC_ALPHA,d){case 1:a.Ob=e.ONE;a.Eb=e.ONE;break;case 3:a.Ob=
e.ONE;a.Eb=e.ZERO;break;case 4:a.Ob=e.ONE_MINUS_DST_ALPHA;a.Eb=e.ONE;break;case 5:a.Ob=e.DST_ALPHA;a.Eb=e.ZERO;break;case 6:a.Ob=e.ZERO;a.Eb=e.SRC_ALPHA;break;case 7:a.Ob=e.ONE_MINUS_DST_ALPHA;a.Eb=e.ZERO;break;case 8:a.Ob=e.ZERO;a.Eb=e.ONE_MINUS_SRC_ALPHA;break;case 9:a.Ob=e.DST_ALPHA;a.Eb=e.ONE_MINUS_SRC_ALPHA;break;case 10:a.Ob=e.ONE_MINUS_DST_ALPHA,a.Eb=e.SRC_ALPHA}};hb=function(a){return Math.round(1E6*a)/1E6};ib=function(a,d){return"string"!==typeof a||"string"!==typeof d||a.length!==d.length?
!1:a===d?!0:a.toLowerCase()===d.toLowerCase()};jb=function(a){a=a.target;return!a||a===document||a===window||document&&document.body&&a===document.body||ib(a.tagName,"canvas")?!0:!1}})();var gc="undefined"!==typeof Float32Array?Float32Array:Array;function hc(b){var h=new gc(3);b&&(h[0]=b[0],h[1]=b[1],h[2]=b[2]);return h}
function ic(b){var h=new gc(16);b&&(h[0]=b[0],h[1]=b[1],h[2]=b[2],h[3]=b[3],h[4]=b[4],h[5]=b[5],h[6]=b[6],h[7]=b[7],h[8]=b[8],h[9]=b[9],h[10]=b[10],h[11]=b[11],h[12]=b[12],h[13]=b[13],h[14]=b[14],h[15]=b[15]);return h}function jc(b,h){h[0]=b[0];h[1]=b[1];h[2]=b[2];h[3]=b[3];h[4]=b[4];h[5]=b[5];h[6]=b[6];h[7]=b[7];h[8]=b[8];h[9]=b[9];h[10]=b[10];h[11]=b[11];h[12]=b[12];h[13]=b[13];h[14]=b[14];h[15]=b[15]}
function kc(b,h){var p=h[0],l=h[1];h=h[2];b[0]*=p;b[1]*=p;b[2]*=p;b[3]*=p;b[4]*=l;b[5]*=l;b[6]*=l;b[7]*=l;b[8]*=h;b[9]*=h;b[10]*=h;b[11]*=h}
function lc(b,h,p,l){l||(l=ic());var g,q,c,a,m,v,d,e,k=b[0],f=b[1];b=b[2];q=p[0];c=p[1];g=p[2];p=h[1];v=h[2];k===h[0]&&f===p&&b===v?(b=l,b[0]=1,b[1]=0,b[2]=0,b[3]=0,b[4]=0,b[5]=1,b[6]=0,b[7]=0,b[8]=0,b[9]=0,b[10]=1,b[11]=0,b[12]=0,b[13]=0,b[14]=0,b[15]=1):(p=k-h[0],v=f-h[1],d=b-h[2],e=1/Math.sqrt(p*p+v*v+d*d),p*=e,v*=e,d*=e,h=c*d-g*v,g=g*p-q*d,q=q*v-c*p,(e=Math.sqrt(h*h+g*g+q*q))?(e=1/e,h*=e,g*=e,q*=e):q=g=h=0,c=v*q-d*g,a=d*h-p*q,m=p*g-v*h,(e=Math.sqrt(c*c+a*a+m*m))?(e=1/e,c*=e,a*=e,m*=e):m=a=c=0,
l[0]=h,l[1]=c,l[2]=p,l[3]=0,l[4]=g,l[5]=a,l[6]=v,l[7]=0,l[8]=q,l[9]=m,l[10]=d,l[11]=0,l[12]=-(h*k+g*f+q*b),l[13]=-(c*k+a*f+m*b),l[14]=-(p*k+v*f+d*b),l[15]=1)}
(function(){function b(a,c,b){this.ae=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.Ga=!!b;this.Uk=this.Gi=!1;this.Ym=0;this.Bm=1;this.yp=1E3;this.yy=(this.yp-this.Bm)/32768;this.Nm=hc([0,0,100]);this.jr=hc([0,0,0]);this.Xs=hc([0,1,0]);this.Tj=hc([1,1,1]);this.mq=!0;this.nl=ic();this.Wc=ic();this.eo=ic();this.Xm=ic();this.G=a;this.version=0===this.G.getParameter(this.G.VERSION).indexOf("WebGL 2")?2:1;this.Jq()}function h(a,c,b){this.G=a;this.Cj=
c;this.name=b;this.kd=a.getAttribLocation(c,"aPos");this.zf=a.getAttribLocation(c,"aTex");this.hr=a.getUniformLocation(c,"matP");this.jl=a.getUniformLocation(c,"matMV");this.Ch=a.getUniformLocation(c,"opacity");this.no=a.getUniformLocation(c,"colorFill");this.ir=a.getUniformLocation(c,"samplerFront");this.Zi=a.getUniformLocation(c,"samplerBack");this.tg=a.getUniformLocation(c,"destStart");this.sg=a.getUniformLocation(c,"destEnd");this.aj=a.getUniformLocation(c,"seconds");this.po=a.getUniformLocation(c,
"pixelWidth");this.oo=a.getUniformLocation(c,"pixelHeight");this.Yi=a.getUniformLocation(c,"layerScale");this.Xi=a.getUniformLocation(c,"layerAngle");this.bj=a.getUniformLocation(c,"viewOrigin");this.$i=a.getUniformLocation(c,"scrollPos");this.yw=!!(this.po||this.oo||this.aj||this.Zi||this.tg||this.sg||this.Yi||this.Xi||this.bj||this.$i);this.rr=this.sr=-999;this.ml=1;this.nr=this.mr=0;this.pr=this.lr=this.kr=1;this.wr=this.ur=this.tr=this.Br=this.Ar=this.or=0;this.co=[];this.qr=ic();this.Ch&&a.uniform1f(this.Ch,
1);this.no&&a.uniform4f(this.no,1,1,1,1);this.ir&&a.uniform1i(this.ir,0);this.Zi&&a.uniform1i(this.Zi,1);this.tg&&a.uniform2f(this.tg,0,0);this.sg&&a.uniform2f(this.sg,1,1);this.Yi&&a.uniform1f(this.Yi,1);this.Xi&&a.uniform1f(this.Xi,0);this.bj&&a.uniform2f(this.bj,0,0);this.$i&&a.uniform2f(this.$i,0,0);this.aj&&a.uniform1f(this.aj,0);this.gg=!1}function p(a,c){return a[0]===c[0]&&a[1]===c[1]&&a[2]===c[2]&&a[3]===c[3]&&a[4]===c[4]&&a[5]===c[5]&&a[6]===c[6]&&a[7]===c[7]&&a[8]===c[8]&&a[9]===c[9]&&
a[10]===c[10]&&a[11]===c[11]&&a[12]===c[12]&&a[13]===c[13]&&a[14]===c[14]&&a[15]===c[15]}function l(a,c){this.type=a;this.D=c;this.G=c.G;this.jd=this.Wb=this.Sr=0;this.Y=this.sd=null;this.Ds=[]}var g=ic();b.prototype.Jq=function(){var a=this.G,c;this.$q=1;this.pg=this.wf=null;this.pk=1;a.clearColor(0,0,0,0);a.clear(a.COLOR_BUFFER_BIT);a.enable(a.BLEND);a.blendFunc(a.ONE,a.ONE_MINUS_SRC_ALPHA);a.disable(a.CULL_FACE);a.disable(a.STENCIL_TEST);a.disable(a.DITHER);this.Ga?(a.enable(a.DEPTH_TEST),a.depthFunc(a.LEQUAL)):
a.disable(a.DEPTH_TEST);this.br=a.ONE;this.Zq=a.ONE_MINUS_SRC_ALPHA;this.xm=new Float32Array(8E3*(this.Ga?3:2));this.jm=new Float32Array(16E3);this.Do=new Float32Array(32E3);this.Co=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.Co);a.bufferData(a.ARRAY_BUFFER,this.Do.byteLength,a.DYNAMIC_DRAW);this.Rj=Array(4);this.Ij=Array(4);for(c=0;4>c;c++)this.Rj[c]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.Rj[c]),a.bufferData(a.ARRAY_BUFFER,this.xm.byteLength,a.DYNAMIC_DRAW),this.Ij[c]=a.createBuffer(),
a.bindBuffer(a.ARRAY_BUFFER,this.Ij[c]),a.bufferData(a.ARRAY_BUFFER,this.jm.byteLength,a.DYNAMIC_DRAW);this.ne=0;this.Bw=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.Bw);for(var b=new Uint16Array(12E3),d=c=0;12E3>c;)b[c++]=d,b[c++]=d+1,b[c++]=d+2,b[c++]=d,b[c++]=d+2,b[c++]=d+3,d+=4;a.bufferData(a.ELEMENT_ARRAY_BUFFER,b,a.STATIC_DRAW);this.Nh=this.Vh=this.We=0;this.Ua=[];c=this.Ga?"attribute highp vec3 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, aPos.z, 1.0);\n\tvTex = aTex;\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}";b=this.ji({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}"},c,"<default>");this.Ua.push(b);b=this.ji({src:"uniform mediump sampler2D samplerFront;\nvarying lowp float opacity;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, gl_PointCoord);\n\tgl_FragColor *= opacity;\n}"},
"attribute vec4 aPos;\nvarying float opacity;\nuniform mat4 matP;\nuniform mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tgl_PointSize = aPos.z;\n\topacity = aPos.w;\n}","<point>");this.Ua.push(b);b=this.ji({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},c,"<earlyz>");this.Ua.push(b);b=this.ji({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"},
c,"<fill>");this.Ua.push(b);for(var e in mc)mc.hasOwnProperty(e)&&this.Ua.push(this.ji(mc[e],c,e));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,null);this.me=[];this.Wd=0;this.Vb=this.Ib=!1;this.hq=this.Qi=-1;this.Wg=null;this.ln=a.createFramebuffer();this.vk=this.Nl=null;this.Sp=!1;this.Ga&&(this.vk=a.createRenderbuffer());this.Kf=hc([0,0,0]);a=a.getParameter(a.ALIASED_POINT_SIZE_RANGE);this.Uw=a[0];this.so=a[1];2048<this.so&&(this.so=2048);this.Dc(0)};h.prototype.pp=function(a){p(this.qr,
a)||(jc(a,this.qr),this.G.uniformMatrix4fv(this.jl,!1,a))};b.prototype.ji=function(a,c,b){var d=this.G,e=d.createShader(d.FRAGMENT_SHADER);d.shaderSource(e,a.src);d.compileShader(e);if(!d.getShaderParameter(e,d.COMPILE_STATUS))throw a=d.getShaderInfoLog(e),d.deleteShader(e),Error("error compiling fragment shader: "+a);var k=d.createShader(d.VERTEX_SHADER);d.shaderSource(k,c);d.compileShader(k);if(!d.getShaderParameter(k,d.COMPILE_STATUS))throw a=d.getShaderInfoLog(k),d.deleteShader(e),d.deleteShader(k),
Error("error compiling vertex shader: "+a);c=d.createProgram();d.attachShader(c,e);d.attachShader(c,k);d.linkProgram(c);if(!d.getProgramParameter(c,d.LINK_STATUS))throw a=d.getProgramInfoLog(c),d.deleteShader(e),d.deleteShader(k),d.deleteProgram(c),Error("error linking shader program: "+a);d.useProgram(c);d.deleteShader(e);d.deleteShader(k);e=new h(d,c,b);e.Ak=a.Ak||0;e.Bk=a.Bk||0;e.Wm=!!a.Wm;e.od=!!a.od;e.Im=!!a.Im;e.X=a.X||[];a=0;for(k=e.X.length;a<k;a++)e.X[a][1]=d.getUniformLocation(c,e.X[a][0]),
e.co.push(0),d.uniform1f(e.X[a][1],0);return e};b.prototype.An=function(a){var c,b;c=0;for(b=this.Ua.length;c<b;c++)if(this.Ua[c].name===a)return c;return-1};b.prototype.ks=function(a,c,b){var d=this.Wc,e=this.nl,k=[0,0,0,0,0,0,0,0];k[0]=d[0]*a+d[4]*c+d[12];k[1]=d[1]*a+d[5]*c+d[13];k[2]=d[2]*a+d[6]*c+d[14];k[3]=d[3]*a+d[7]*c+d[15];k[4]=e[0]*k[0]+e[4]*k[1]+e[8]*k[2]+e[12]*k[3];k[5]=e[1]*k[0]+e[5]*k[1]+e[9]*k[2]+e[13]*k[3];k[6]=e[2]*k[0]+e[6]*k[1]+e[10]*k[2]+e[14]*k[3];k[7]=-k[2];0!==k[7]&&(k[7]=1/
k[7],k[4]*=k[7],k[5]*=k[7],k[6]*=k[7],b[0]=(.5*k[4]+.5)*this.width,b[1]=(.5*k[5]+.5)*this.height)};b.prototype.Eg=function(a,c,b){if(this.width!==a||this.height!==c||b){this.qe();b=this.G;this.width=a;this.height=c;b.viewport(0,0,a,c);lc(this.Nm,this.jr,this.Xs,this.Wc);if(this.Ga){var d=-a/2;a=a/2;var e=c/2;c=-c/2;var k=this.Bm,f=this.yp,g=this.nl;g||(g=ic());var q=a-d,l=c-e,n=f-k;g[0]=2/q;g[1]=0;g[2]=0;g[3]=0;g[4]=0;g[5]=2/l;g[6]=0;g[7]=0;g[8]=0;g[9]=0;g[10]=-2/n;g[11]=0;g[12]=-(d+a)/q;g[13]=-(c+
e)/l;g[14]=-(f+k)/n;g[15]=1;this.Tj[0]=1;this.Tj[1]=1}else c=a/c,d=this.Bm,a=this.yp,g=this.nl,f=d*Math.tan(45*Math.PI/360),c*=f,e=-c,k=-f,g||(g=ic()),q=c-e,l=f-k,n=a-d,g[0]=2*d/q,g[1]=0,g[2]=0,g[3]=0,g[4]=0,g[5]=2*d/l,g[6]=0,g[7]=0,g[8]=(c+e)/q,g[9]=(f+k)/l,g[10]=-(a+d)/n,g[11]=-1,g[12]=0,g[13]=0,g[14]=-(a*d*2)/n,g[15]=0,d=[0,0],a=[0,0],this.ks(0,0,d),this.ks(1,1,a),this.Tj[0]=1/(a[0]-d[0]),this.Tj[1]=-1/(a[1]-d[1]);d=0;for(a=this.Ua.length;d<a;d++)e=this.Ua[d],e.gg=!1,e.hr&&(b.useProgram(e.Cj),
b.uniformMatrix4fv(e.hr,!1,this.nl));b.useProgram(this.Ua[this.Qi].Cj);b.bindTexture(b.TEXTURE_2D,null);b.activeTexture(b.TEXTURE1);b.bindTexture(b.TEXTURE_2D,null);b.activeTexture(b.TEXTURE0);this.pg=this.wf=null;this.vk&&(b.bindFramebuffer(b.FRAMEBUFFER,this.ln),b.bindRenderbuffer(b.RENDERBUFFER,this.vk),b.renderbufferStorage(b.RENDERBUFFER,b.DEPTH_COMPONENT16,this.width,this.height),this.Sp||(b.framebufferRenderbuffer(b.FRAMEBUFFER,b.DEPTH_ATTACHMENT,b.RENDERBUFFER,this.vk),this.Sp=!0),b.bindRenderbuffer(b.RENDERBUFFER,
null),b.bindFramebuffer(b.FRAMEBUFFER,null),this.Nl=null)}};b.prototype.ie=function(){lc(this.Nm,this.jr,this.Xs,this.Wc);kc(this.Wc,this.Tj)};b.prototype.translate=function(a,c){if(0!==a||0!==c){this.Kf[0]=a;this.Kf[1]=c;this.Kf[2]=0;var b=this.Wc,d=this.Kf,e=d[0],k=d[1],d=d[2];b[12]=b[0]*e+b[4]*k+b[8]*d+b[12];b[13]=b[1]*e+b[5]*k+b[9]*d+b[13];b[14]=b[2]*e+b[6]*k+b[10]*d+b[14];b[15]=b[3]*e+b[7]*k+b[11]*d+b[15]}};b.prototype.scale=function(a,c){if(1!==a||1!==c)this.Kf[0]=a,this.Kf[1]=c,this.Kf[2]=
1,kc(this.Wc,this.Kf)};b.prototype.No=function(a){if(0!==a){var c=this.Wc,b,d=Math.sin(a);a=Math.cos(a);var e=c[0],k=c[1],f=c[2],g=c[3],q=c[4],l=c[5],n=c[6],u=c[7];b?c!==b&&(b[8]=c[8],b[9]=c[9],b[10]=c[10],b[11]=c[11],b[12]=c[12],b[13]=c[13],b[14]=c[14],b[15]=c[15]):b=c;b[0]=e*a+q*d;b[1]=k*a+l*d;b[2]=f*a+n*d;b[3]=g*a+u*d;b[4]=e*-d+q*a;b[5]=k*-d+l*a;b[6]=f*-d+n*a;b[7]=g*-d+u*a}};b.prototype.Sd=function(){if(!p(this.eo,this.Wc)){var a=this.wc();a.type=5;a.Y?jc(this.Wc,a.Y):a.Y=ic(this.Wc);jc(this.Wc,
this.eo);this.Vb=this.Ib=!1}};b.prototype.Ul=function(a){this.Ga&&(32760<a&&(a=32760),this.Ym=this.Nm[2]-this.Bm-a*this.yy)};l.prototype.Pu=function(){var a=this.G,c=this.D;0!==this.Wb?(a.depthMask(!0),a.colorMask(!1,!1,!1,!1),a.disable(a.BLEND),a.bindFramebuffer(a.FRAMEBUFFER,c.ln),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.clear(a.DEPTH_BUFFER_BIT),a.bindFramebuffer(a.FRAMEBUFFER,null),c.Uk=!0):(a.depthMask(!1),a.colorMask(!0,!0,!0,!0),a.enable(a.BLEND),c.Uk=
!1)};l.prototype.Tu=function(){this.G.bindTexture(this.G.TEXTURE_2D,this.sd)};l.prototype.Uu=function(){var a=this.G;a.activeTexture(a.TEXTURE1);a.bindTexture(a.TEXTURE_2D,this.sd);a.activeTexture(a.TEXTURE0)};l.prototype.Qu=function(){var a=this.Sr,c=this.D;c.pk=a;c=c.Wg;c.Ch&&c.ml!==a&&(c.ml=a,this.G.uniform1f(c.Ch,a))};l.prototype.Ku=function(){this.G.drawElements(this.G.TRIANGLES,this.jd,this.G.UNSIGNED_SHORT,this.Wb)};l.prototype.Mu=function(){this.G.blendFunc(this.Wb,this.jd)};l.prototype.Vu=
function(){var a,c,b,d=this.D.Ua,e=this.D.hq;a=0;for(c=d.length;a<c;a++)b=d[a],a===e&&b.jl?(b.pp(this.Y),b.gg=!0):b.gg=!1;jc(this.Y,this.D.Xm)};l.prototype.Lu=function(){var a=this.G,c=this.D;this.sd?(c.pg===this.sd&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,null),c.pg=null,a.activeTexture(a.TEXTURE0)),a.bindFramebuffer(a.FRAMEBUFFER,c.ln),c.Uk||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,this.sd,0)):(c.Ga||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,
a.TEXTURE_2D,null,0),a.bindFramebuffer(a.FRAMEBUFFER,null))};l.prototype.Hu=function(){var a=this.G,c=this.Wb;0===c?(a.clearColor(this.Y[0],this.Y[1],this.Y[2],this.Y[3]),a.clear(a.COLOR_BUFFER_BIT)):1===c?(a.enable(a.SCISSOR_TEST),a.scissor(this.Y[0],this.Y[1],this.Y[2],this.Y[3]),a.clearColor(0,0,0,0),a.clear(a.COLOR_BUFFER_BIT),a.disable(a.SCISSOR_TEST)):a.clear(a.DEPTH_BUFFER_BIT)};l.prototype.Ou=function(){var a=this.G;0!==this.Wb?a.enable(a.DEPTH_TEST):a.disable(a.DEPTH_TEST)};l.prototype.Ju=
function(){var a=this.G,c=this.D;c.Ga&&a.disable(a.DEPTH_TEST);var b=c.Ua[1];a.useProgram(b.Cj);!b.gg&&b.jl&&(b.pp(c.Xm),b.gg=!0);a.enableVertexAttribArray(b.kd);a.bindBuffer(a.ARRAY_BUFFER,c.Co);a.vertexAttribPointer(b.kd,4,a.FLOAT,!1,0,0);a.drawArrays(a.POINTS,this.Wb/4,this.jd);b=c.Wg;a.useProgram(b.Cj);0<=b.kd&&(a.enableVertexAttribArray(b.kd),a.bindBuffer(a.ARRAY_BUFFER,c.Rj[c.ne]),a.vertexAttribPointer(b.kd,c.Ga?3:2,a.FLOAT,!1,0,0));0<=b.zf&&(a.enableVertexAttribArray(b.zf),a.bindBuffer(a.ARRAY_BUFFER,
c.Ij[c.ne]),a.vertexAttribPointer(b.zf,2,a.FLOAT,!1,0,0));c.Ga&&a.enable(a.DEPTH_TEST)};l.prototype.Ru=function(){var a=this.G,c=this.D,b=c.Ua[this.Wb];c.hq=this.Wb;c.Wg=b;a.useProgram(b.Cj);!b.gg&&b.jl&&(b.pp(c.Xm),b.gg=!0);b.Ch&&b.ml!==c.pk&&(b.ml=c.pk,a.uniform1f(b.Ch,c.pk));0<=b.kd&&(a.enableVertexAttribArray(b.kd),a.bindBuffer(a.ARRAY_BUFFER,c.Rj[c.ne]),a.vertexAttribPointer(b.kd,c.Ga?3:2,a.FLOAT,!1,0,0));0<=b.zf&&(a.enableVertexAttribArray(b.zf),a.bindBuffer(a.ARRAY_BUFFER,c.Ij[c.ne]),a.vertexAttribPointer(b.zf,
2,a.FLOAT,!1,0,0))};l.prototype.Nu=function(){var a=this.Y;this.G.uniform4f(this.D.Wg.no,a[0],a[1],a[2],a[3])};l.prototype.Su=function(){var a,c,b=this.D.Wg,d=this.G;a=this.Y;b.Zi&&this.D.pg!==this.sd&&(d.activeTexture(d.TEXTURE1),d.bindTexture(d.TEXTURE_2D,this.sd),this.D.pg=this.sd,d.activeTexture(d.TEXTURE0));var e=a[0];b.po&&e!==b.sr&&(b.sr=e,d.uniform1f(b.po,e));e=a[1];b.oo&&e!==b.rr&&(b.rr=e,d.uniform1f(b.oo,e));e=a[2];c=a[3];!b.tg||e===b.mr&&c===b.nr||(b.mr=e,b.nr=c,d.uniform2f(b.tg,e,c));
e=a[4];c=a[5];!b.sg||e===b.kr&&c===b.lr||(b.kr=e,b.lr=c,d.uniform2f(b.sg,e,c));e=a[6];b.Yi&&e!==b.pr&&(b.pr=e,d.uniform1f(b.Yi,e));e=a[7];b.Xi&&e!==b.or&&(b.or=e,d.uniform1f(b.Xi,e));e=a[8];c=a[9];!b.bj||e===b.Ar&&c===b.Br||(b.Ar=e,b.Br=c,d.uniform2f(b.bj,e,c));e=a[10];c=a[11];!b.$i||e===b.tr&&c===b.ur||(b.tr=e,b.ur=c,d.uniform2f(b.$i,e,c));e=a[12];b.aj&&e!==b.wr&&(b.wr=e,d.uniform1f(b.aj,e));if(b.X.length)for(a=0,c=b.X.length;a<c;a++)e=this.Ds[a],e!==b.co[a]&&(b.co[a]=e,d.uniform1f(b.X[a][1],e))};
b.prototype.wc=function(){this.Wd===this.me.length&&this.me.push(new l(0,this));return this.me[this.Wd++]};b.prototype.qe=function(){if(0!==this.Wd&&!this.G.isContextLost()){var a=this.G;0<this.Nh&&(a.bindBuffer(a.ARRAY_BUFFER,this.Co),a.bufferSubData(a.ARRAY_BUFFER,0,this.Do.subarray(0,this.Nh)),c&&0<=c.kd&&"<point>"===c.name&&a.vertexAttribPointer(c.kd,4,a.FLOAT,!1,0,0));if(0<this.We){var c=this.Wg;a.bindBuffer(a.ARRAY_BUFFER,this.Rj[this.ne]);a.bufferSubData(a.ARRAY_BUFFER,0,this.xm.subarray(0,
this.We));c&&0<=c.kd&&"<point>"!==c.name&&a.vertexAttribPointer(c.kd,this.Ga?3:2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.Ij[this.ne]);a.bufferSubData(a.ARRAY_BUFFER,0,this.jm.subarray(0,this.Vh));c&&0<=c.zf&&"<point>"!==c.name&&a.vertexAttribPointer(c.zf,2,a.FLOAT,!1,0,0)}for(var b,a=0,c=this.Wd;a<c;a++)switch(b=this.me[a],b.type){case 1:b.Ku();break;case 2:b.Tu();break;case 3:b.Qu();break;case 4:b.Mu();break;case 5:b.Vu();break;case 6:b.Lu();break;case 7:b.Hu();break;case 8:b.Ju();break;
case 9:b.Ru();break;case 10:b.Su();break;case 11:b.Uu();break;case 12:b.Nu();break;case 13:b.Ou();break;case 14:b.Pu()}this.Nh=this.Vh=this.We=this.Wd=0;this.Uk=this.Vb=this.Ib=!1;this.ne++;4<=this.ne&&(this.ne=0)}};b.prototype.Gf=function(a){if(a!==this.$q&&!this.Gi){var c=this.wc();c.type=3;this.$q=c.Sr=a;this.Vb=this.Ib=!1}};b.prototype.Ac=function(a){if(a!==this.wf){var c=this.wc();c.type=2;this.wf=c.sd=a;this.Vb=this.Ib=!1}};b.prototype.Le=function(a,c){if((a!==this.br||c!==this.Zq)&&!this.Gi){var b=
this.wc();b.type=4;b.Wb=a;b.jd=c;this.br=a;this.Zq=c;this.Vb=this.Ib=!1}};b.prototype.us=function(){this.Le(this.G.ONE,this.G.ONE_MINUS_SRC_ALPHA)};b.prototype.Ag=function(a,c,b,d,e,k,f,g){15992<=this.We&&this.qe();var q=this.We,l=this.Vh,n=this.xm,u=this.jm,h=this.Ym;if(this.Ib)this.me[this.Wd-1].jd+=6;else{var p=this.wc();p.type=1;p.Wb=this.Ga?q:q/2*3;p.jd=6;this.Ib=!0;this.Vb=!1}this.Ga?(n[q++]=a,n[q++]=c,n[q++]=h,n[q++]=b,n[q++]=d,n[q++]=h,n[q++]=e,n[q++]=k,n[q++]=h,n[q++]=f,n[q++]=g,n[q++]=h):
(n[q++]=a,n[q++]=c,n[q++]=b,n[q++]=d,n[q++]=e,n[q++]=k,n[q++]=f,n[q++]=g);u[l++]=0;u[l++]=0;u[l++]=1;u[l++]=0;u[l++]=1;u[l++]=1;u[l++]=0;u[l++]=1;this.We=q;this.Vh=l};b.prototype.Je=function(a,c,b,d,e,k,f,g,q){15992<=this.We&&this.qe();var l=this.We,n=this.Vh,u=this.xm,h=this.jm,p=this.Ym;if(this.Ib)this.me[this.Wd-1].jd+=6;else{var C=this.wc();C.type=1;C.Wb=this.Ga?l:l/2*3;C.jd=6;this.Ib=!0;this.Vb=!1}var C=q.left,G=q.top,z=q.right;q=q.bottom;this.Ga?(u[l++]=a,u[l++]=c,u[l++]=p,u[l++]=b,u[l++]=d,
u[l++]=p,u[l++]=e,u[l++]=k,u[l++]=p,u[l++]=f,u[l++]=g,u[l++]=p):(u[l++]=a,u[l++]=c,u[l++]=b,u[l++]=d,u[l++]=e,u[l++]=k,u[l++]=f,u[l++]=g);h[n++]=C;h[n++]=G;h[n++]=z;h[n++]=G;h[n++]=z;h[n++]=q;h[n++]=C;h[n++]=q;this.We=l;this.Vh=n};b.prototype.ux=function(a,c,b,d){7996<=this.Nh&&this.qe();var e=this.Nh,k=this.Do;if(this.Vb)this.me[this.Wd-1].jd++;else{var f=this.wc();f.type=8;f.Wb=e;f.jd=1;this.Vb=!0;this.Ib=!1}k[e++]=a;k[e++]=c;k[e++]=b;k[e++]=d;this.Nh=e};b.prototype.Dc=function(a){if(this.Qi!==
a){if(!this.Ua[a]){if(0===this.Qi)return;a=0}var c=this.wc();c.type=9;this.Qi=c.Wb=a;this.Vb=this.Ib=!1}};b.prototype.tj=function(a){a=this.Ua[a];return!(!a.tg&&!a.sg)};b.prototype.Fo=function(a){a=this.Ua[a];return!!(a.tg||a.sg||a.Wm)};b.prototype.Eo=function(a){return this.Ua[a].od};b.prototype.Bx=function(a){a=this.Ua[a];return 0!==a.Ak||0!==a.Bk};b.prototype.fw=function(a){return this.Ua[a].Ak};b.prototype.gw=function(a){return this.Ua[a].Bk};b.prototype.hw=function(a,c){return this.Ua[a].X[c][2]};
b.prototype.Hl=function(a){return this.Ua[a].Im};b.prototype.Rh=function(a,c,b,d,e,k,f,g,q,l,n,u,h,p,C){var G=this.Ua[this.Qi],z,t;if(G.yw||C.length){z=this.wc();z.type=10;z.Y?jc(this.Wc,z.Y):z.Y=ic();t=z.Y;t[0]=c;t[1]=b;t[2]=d;t[3]=e;t[4]=k;t[5]=f;t[6]=g;t[7]=q;t[8]=l;t[9]=n;t[10]=u;t[11]=h;t[12]=p;G.Zi?z.sd=a:z.sd=null;if(C.length)for(b=z.Ds,b.length=C.length,a=0,c=C.length;a<c;a++)b[a]=C[a];this.Vb=this.Ib=!1}};b.prototype.clear=function(a,c,b,d){var e=this.wc();e.type=7;e.Wb=0;e.Y||(e.Y=ic());
e.Y[0]=a;e.Y[1]=c;e.Y[2]=b;e.Y[3]=d;this.Vb=this.Ib=!1};b.prototype.clearRect=function(a,c,b,d){if(!(0>b||0>d)){var e=this.wc();e.type=7;e.Wb=1;e.Y||(e.Y=ic());e.Y[0]=a;e.Y[1]=c;e.Y[2]=b;e.Y[3]=d;this.Vb=this.Ib=!1}};b.prototype.xs=function(a){if(this.Ga&&(a=!!a,this.Gi!==a)){var c=this.wc();c.type=14;c.Wb=a?1:0;this.Vb=this.Ib=!1;this.Gi=a;this.Nl=null;this.Gi?this.Dc(2):this.Dc(0)}};b.prototype.ws=function(a){if(this.Ga){var c=this.wc();c.type=13;c.Wb=a?1:0;this.Vb=this.Ib=!1}};b.prototype.vq=function(){jc(this.eo,
g);this.ie();this.Sd();var a=this.width/2,c=this.height/2;this.Ag(-a,c,a,c,a,-c,-a,-c);jc(g,this.Wc);this.Sd()};b.prototype.vs=function(a,c,b){this.Dc(3);var d=this.wc();d.type=12;d.Y||(d.Y=ic());d.Y[0]=a;d.Y[1]=c;d.Y[2]=b;d.Y[3]=1;this.Vb=this.Ib=!1};b.prototype.Zx=function(){this.Dc(0)};b.prototype.Jx=function(){this.Dc(2)};b.prototype.Ax=function(){this.qe();this.G.flush()};var q=[],c={};b.prototype.zu=function(){O(q);c={}};b.prototype.Bh=function(a,b,g,d){b=!!b;g=!!g;var e=a.src+","+b+","+g+(b?
",undefined":""),k=null;if("undefined"!==typeof a.src&&c.hasOwnProperty(e))return k=c[e],k.hk++,k;this.qe();var f=this.G,l=ma(a.width)&&ma(a.height),k=f.createTexture();f.bindTexture(f.TEXTURE_2D,k);f.pixelStorei(f.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var h=f.RGBA,p=f.RGBA,n=f.UNSIGNED_BYTE;if(d&&!this.ae)switch(d){case 1:p=h=f.RGB;break;case 2:n=f.UNSIGNED_SHORT_4_4_4_4;break;case 3:n=f.UNSIGNED_SHORT_5_5_5_1;break;case 4:p=h=f.RGB,n=f.UNSIGNED_SHORT_5_6_5}if(1===this.version&&!l&&b){d=document.createElement("canvas");
d.width=na(a.width);d.height=na(a.height);var u=d.getContext("2d");"undefined"!==typeof u.imageSmoothingEnabled?u.imageSmoothingEnabled=g:(u.webkitImageSmoothingEnabled=g,u.mozImageSmoothingEnabled=g,u.msImageSmoothingEnabled=g);u.drawImage(a,0,0,a.width,a.height,0,0,d.width,d.height);f.texImage2D(f.TEXTURE_2D,0,h,p,n,d)}else f.texImage2D(f.TEXTURE_2D,0,h,p,n,a);b?(f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_S,f.REPEAT),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_T,f.REPEAT)):(f.texParameteri(f.TEXTURE_2D,
f.TEXTURE_WRAP_S,f.CLAMP_TO_EDGE),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_T,f.CLAMP_TO_EDGE));g?(f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MAG_FILTER,f.LINEAR),(l||2<=this.version)&&this.mq?(f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,f.LINEAR_MIPMAP_LINEAR),f.generateMipmap(f.TEXTURE_2D)):f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,f.LINEAR)):(f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MAG_FILTER,f.NEAREST),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,f.NEAREST));f.bindTexture(f.TEXTURE_2D,
null);this.wf=null;k.Pf=a.width;k.Of=a.height;k.hk=1;k.Wp=e;q.push(k);return c[e]=k};b.prototype.Qc=function(a,c,b,d,e){this.qe();var k=this.G;this.ae&&(d=!1);var f=k.createTexture();k.bindTexture(k.TEXTURE_2D,f);k.texImage2D(k.TEXTURE_2D,0,k.RGBA,a,c,0,k.RGBA,d?k.UNSIGNED_SHORT_4_4_4_4:k.UNSIGNED_BYTE,null);e?(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_S,k.REPEAT),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_T,k.REPEAT)):(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_S,k.CLAMP_TO_EDGE),k.texParameteri(k.TEXTURE_2D,
k.TEXTURE_WRAP_T,k.CLAMP_TO_EDGE));k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MAG_FILTER,b?k.LINEAR:k.NEAREST);k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MIN_FILTER,b?k.LINEAR:k.NEAREST);k.bindTexture(k.TEXTURE_2D,null);this.wf=null;f.Pf=a;f.Of=c;q.push(f);return f};b.prototype.gt=function(a,c){var b;this.qe();var d=this.G;this.ae&&(b=!1);d.bindTexture(d.TEXTURE_2D,c);d.pixelStorei(d.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);try{d.texImage2D(d.TEXTURE_2D,0,d.RGBA,d.RGBA,b?d.UNSIGNED_SHORT_4_4_4_4:d.UNSIGNED_BYTE,
a)}catch(e){console&&console.error&&console.error("Error updating WebGL texture: ",e)}d.bindTexture(d.TEXTURE_2D,null);this.wf=null};b.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.hk&&1<a.hk?a.hk--:(this.qe(),a===this.wf&&(this.G.bindTexture(this.G.TEXTURE_2D,null),this.wf=null),a===this.pg&&(this.G.activeTexture(this.G.TEXTURE1),this.G.bindTexture(this.G.TEXTURE_2D,null),this.G.activeTexture(this.G.TEXTURE0),this.pg=null),Da(q,a),"undefined"!==typeof a.Wp&&delete c[a.Wp],this.G.deleteTexture(a)))};
b.prototype.qd=function(a){if(a!==this.Nl){var c=this.wc();c.type=6;this.Nl=c.sd=a;this.Vb=this.Ib=!1}};mb=b})();
(function(){function b(a){if(a&&(a.getContext||a.dc)&&!a.c2runtime){a.c2runtime=this;var d=this;this.ye=(this.Fi=/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.ec=!!a.dc;this.Rq="undefined"!==typeof window.AppMobi||
this.ec;this.Cd=!!window.c2cocoonjs;this.Dd=!!window.c2ejecta;this.Cd&&(CocoonJS.App.onSuspended.addEventListener(function(){d.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){d.setSuspended(!1)}));this.Dd&&(document.addEventListener("pagehide",function(){d.setSuspended(!0)}),document.addEventListener("pageshow",function(){d.setSuspended(!1)}),document.addEventListener("resize",function(){d.setSize(window.innerWidth,window.innerHeight)}));this.fb=this.ec||this.Cd||this.Dd;this.lh=
/edge\//i.test(navigator.userAgent);this.ae=(/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent))&&!this.lh;this.Uq=/tizen/i.test(navigator.userAgent);this.kh=/android/i.test(navigator.userAgent)&&!this.Uq&&!this.ae&&!this.lh;this.Xq=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&!this.ae&&!this.lh;this.Nw=/ipad/i.test(navigator.userAgent);this.sh=this.Xq||this.Nw||this.Dd;this.Vk=(/chrome/i.test(navigator.userAgent)||
/chromium/i.test(navigator.userAgent))&&!this.ae&&!this.lh;this.Qq=/amazonwebappplatform/i.test(navigator.userAgent);this.Fw=/firefox/i.test(navigator.userAgent);this.Iw=/safari/i.test(navigator.userAgent)&&!this.Vk&&!this.ae&&!this.lh;this.Kw=/windows/i.test(navigator.userAgent);this.Vn="undefined"!==typeof window.c2nodewebkit||"undefined"!==typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.Vq=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);
this.Lw=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.Ki=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.$n=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.Zn=!!window.cr_windows10;this.Jw=this.Vq||this.Lw||this.$n||this.Zn;this.Dw=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.Di=this.kh&&!this.Vk&&!this.Fi&&!this.Fw&&!this.Qq&&!this.fb;this.devicePixelRatio=
1;this.mh=this.ye||this.Fi||this.Rq||this.Cd||this.kh||this.sh||this.Ki||this.$n||this.Dw||this.Uq||this.Dd;this.mh||(this.mh=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));this.Xk=!!(this.sh&&this.ye&&window.webkit);"undefined"===typeof cr_is_preview||this.Vn||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||(this.Vn=!0);this.canvas=a;this.$p=document.getElementById("c2canvasdiv");
this.D=this.G=null;this.Cn="(unavailable)";this.Ga=!1;this.Xf=0;this.La=null;this.Gk=!1;this.Pr=this.Qr=0;this.canvas.oncontextmenu=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.onselectstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.ontouchstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.ec&&(window.c2runtime=this);this.Vn&&(window.ondragover=function(a){a.preventDefault();return!1},window.ondrop=function(a){a.preventDefault();
return!1},window.nwgui&&window.nwgui.App.clearCache&&window.nwgui.App.clearCache());this.Di&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=a.width;this.height=a.height;this.N=this.width;this.M=this.height;this.nk=this.width;this.li=this.height;this.yh=window.innerWidth;this.xh=window.innerHeight;this.wa=!0;this.Ji=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.F=[];this.Oa=[];this.Ah={};this.Fd=[];this.kn={};
this.te=[];this.Zh=[];this.rm=[];this.nu=[];this.ou=[];this.Yq=this.Ks=null;this.Tf={};this.Un=this.qf=!1;this.Ed=0;this.Tn=this.Xn=!1;this.Ad=[];this.Hi=!1;this.fl=this.Ro="";this.sb=null;this.Ae="";this.Gj=this.Gs=!1;this.Fk=[];this.Wf=this.Vf=0;this.Fr=30;this.Um=this.cj=0;this.Jg=1;this.ob=new ab;this.Xe=new ab;this.sl=this.Kk=this.$f=this.Jf=this.rg=this.qn=this.al=0;this.Rf=null;this.wk=[];this.jn=[];this.zk=-1;this.qo=[[]];this.kp=this.kl=0;this.Jl(null);this.qi=this.Jr=this.ij=0;this.Hj=[];
this.gp=this.Io=-1;this.th=!0;this.il=0;this.Wk=!1;this.by=0;this.Sg=null;this.Ic=this.Eq=!1;this.Nr=new da;this.wo=new da;this.Or=new da;this.Dg=[];this.Ec=new cb([]);this.ep=new cb([]);this.Rg=[];this.gh={};this.jf={};this.ef={};this.Yh={};this.Tp={};this.er=this.el=this.gb=this.pb=this.dr=this.dl=this.ua=null;this.Wh=this.ao=!1;this.rn=[null,null];this.dh=0;this.nn="";this.De={};this.Fj=this.xf=null;this.Is="";this.rl=[];this.Ix()}}function h(a,d){return 128>=d?a[3]:256>=d?a[2]:512>=d?a[1]:a[0]}
function p(){try{return!!window.indexedDB}catch(a){return!1}}function l(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function g(a,d,c,e){try{var f=indexedDB.open("_C2SaveStates");f.onupgradeneeded=l;f.onerror=e;f.onsuccess=function(f){f=f.target.result;f.onerror=e;f.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,data:d}).onsuccess=c}}catch(b){e(b)}}function q(a,d,c){try{var e=indexedDB.open("_C2SaveStates");e.onupgradeneeded=l;e.onerror=c;e.onsuccess=function(e){e=
e.target.result;e.onerror=c;var f=e.transaction(["saves"]).objectStore("saves").get(a);f.onsuccess=function(){f.result?d(f.result.data):d(null)}}}catch(f){c(f)}}function c(){ga("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?window.location.reload(!0):window.location=window.location+"?continuous"}function a(a){var d,c={};for(d in a)!a.hasOwnProperty(d)||a[d]instanceof da||a[d]&&"undefined"!==typeof a[d].Fz||"spriteCreatedDestroyCallback"!==
d&&(c[d]=a[d]);return c}var m=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;b.prototype.Ix=function(){var a=this;if(this.Xk)this.Ov(function(d){a.Vi(JSON.parse(d))},function(){alert("Error fetching data.js")});else{var d;this.Ki?d=new ActiveXObject("Microsoft.XMLHTTP"):d=new XMLHttpRequest;var c="data.js";if(this.Vq||this.Ki||this.$n||this.Zn)c="data.json";d.open("GET",c,!0);var e=!1;
if(!this.fb&&"response"in d&&"responseType"in d)try{d.responseType="json",e="json"===d.responseType}catch(f){e=!1}if(!e&&"responseType"in d)try{d.responseType="text"}catch(b){}if("overrideMimeType"in d)try{d.overrideMimeType("application/json; charset=utf-8")}catch(k){}this.Ki?d.onreadystatechange=function(){4===d.readyState&&a.Vi(JSON.parse(d.responseText))}:(d.onload=function(){if(e)a.Vi(d.response);else if(a.Dd){var c=d.responseText,c=c.substr(c.indexOf("{"));a.Vi(JSON.parse(c))}else a.Vi(JSON.parse(d.responseText))},
d.onerror=function(a){ja("Error requesting "+c+":");ja(a)});d.send()}};b.prototype.Cw=function(){var a=this,d,c,e,f,b,k,n,g,m;this.mg=(!this.fb||this.Dd||this.ye)&&this.qy&&!this.Di;0===this.pc&&this.sh&&(this.mg=!1);this.devicePixelRatio=this.mg?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;"object"===typeof window.StatusBar&&window.StatusBar.hide();this.Rb();0<this.pc&&this.setSize(window.innerWidth,window.innerHeight,!0);this.canvas.addEventListener("webglcontextlost",
function(d){d.preventDefault();a.$w();ga("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){a.D.Jq();a.D.Eg(a.D.width,a.D.height,!0);a.pb=null;a.gb=null;a.rn[0]=null;a.rn[1]=null;a.ax();a.wa=!0;ga("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);try{this.dv&&(this.Cd||this.Dd||!this.fb)&&(d={alpha:!0,depth:!1,antialias:!1,powerPreference:"high-performance",failIfMajorPerformanceCaveat:!0},this.kh||
(this.G=this.canvas.getContext("webgl2",d)),this.G||(this.G=this.canvas.getContext("webgl",d)||this.canvas.getContext("experimental-webgl",d)))}catch(q){}if(this.G){if(d=this.G.getExtension("WEBGL_debug_renderer_info"))this.Cn=this.G.getParameter(d.UNMASKED_RENDERER_WEBGL)+" ["+this.G.getParameter(d.UNMASKED_VENDOR_WEBGL)+"]";this.Ga&&(this.Cn+=" [front-to-back enabled]");this.fb||(this.Mb=document.createElement("canvas"),jQuery(this.Mb).appendTo(this.canvas.parentNode),this.Mb.oncontextmenu=function(){return!1},
this.Mb.onselectstart=function(){return!1},this.Mb.width=Math.round(this.nk*this.devicePixelRatio),this.Mb.height=Math.round(this.li*this.devicePixelRatio),jQuery(this.Mb).css({width:this.nk+"px",height:this.li+"px"}),this.es(),this.Bo=this.Mb.getContext("2d"));this.D=new mb(this.G,this.mh,this.Ga);this.D.Eg(this.canvas.width,this.canvas.height);this.D.mq=0!==this.Wu;this.La=null;d=0;for(c=this.F.length;d<c;d++)for(b=this.F[d],e=0,f=b.V.length;e<f;e++)n=b.V[e],n.jb=this.D.An(n.id),n.od=this.D.Eo(n.jb),
this.Wh=this.Wh||this.D.tj(n.jb);d=0;for(c=this.Fd.length;d<c;d++){g=this.Fd[d];e=0;for(f=g.V.length;e<f;e++)n=g.V[e],n.jb=this.D.An(n.id),n.od=this.D.Eo(n.jb);g.Rd();e=0;for(f=g.W.length;e<f;e++){m=g.W[e];b=0;for(k=m.V.length;b<k;b++)n=m.V[b],n.jb=this.D.An(n.id),n.od=this.D.Eo(n.jb),this.Wh=this.Wh||this.D.tj(n.jb);m.Rd()}}}else{if(0<this.pc&&this.ec){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.La=AppMobi.canvas.getContext("2d");
try{this.La.samplingMode=this.Ha?"smooth":"sharp",this.La.globalScale=1,this.La.HTML5CompatibilityMode=!0,this.La.imageSmoothingEnabled=this.Ha}catch(l){}0!==this.width&&0!==this.height&&(this.La.width=this.width,this.La.height=this.height)}this.La||(this.Cd?(d={antialias:!!this.Ha,alpha:!0},this.La=this.canvas.getContext("2d",d)):(d={alpha:!0},this.La=this.canvas.getContext("2d",d)),this.Tl(this.La,this.Ha));this.Bo=this.Mb=null}this.Qs=function(d){a.za(!1,d)};window==window.top||this.fb||this.Jw||
this.Ki||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.Cd&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(ga("Reloading for continuous preview"),this.fl="__c2_continuouspreview",this.Gj=!0),this.ox&&!this.mh&&(jQuery(window).focus(function(){a.setSuspended(!1)}),jQuery(window).blur(function(){var d=
window.parent;d&&d.document.hasFocus()||a.setSuspended(!0)})));window.addEventListener("blur",function(){a.Fe()});this.fb||(d=function(a){if(jb(a)&&document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(d){}},"undefined"!==typeof PointerEvent?document.addEventListener("pointerdown",d):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",d):document.addEventListener("touchstart",
d),document.addEventListener("mousedown",d));0===this.pc&&this.mg&&1<this.devicePixelRatio&&this.setSize(this.ub,this.tb,!0);this.Vs();this.vw();this.go();this.H={}};b.prototype.setSize=function(a,d,c){var e=0,f=0,b=0,k=0,k=0;if(this.yh!==a||this.xh!==d||c){this.yh=a;this.xh=d;var n=this.pc;if((b=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.Wk)&&!this.ye)||0!==this.pc||c)b&&(n=this.dh),c=this.devicePixelRatio,4<=n?(5===n&&1!==c&&(a+=
1,d+=1),b=this.ub/this.tb,a/d>b?(b*=d,5===n?(k=b*c/this.ub,1<k?k=Math.floor(k):1>k&&(k=1/Math.ceil(1/k)),b=this.ub*k/c,k=this.tb*k/c,e=(a-b)/2,f=(d-k)/2,a=b,d=k):(e=(a-b)/2,a=b)):(k=a/b,5===n?(k=k*c/this.tb,1<k?k=Math.floor(k):1>k&&(k=1/Math.ceil(1/k)),b=this.ub*k/c,k=this.tb*k/c,e=(a-b)/2,f=(d-k)/2,a=b):f=(d-k)/2,d=k)):b&&0===n&&(e=Math.floor((a-this.ub)/2),f=Math.floor((d-this.tb)/2),a=this.ub,d=this.tb),2>n&&(this.ei=c),this.nk=Math.round(a),this.li=Math.round(d),this.width=Math.round(a*c),this.height=
Math.round(d*c),this.wa=!0,this.ht?(this.N=this.width,this.M=this.height,this.Rc=!0):this.width<this.ub&&this.height<this.tb||1===n?(this.N=this.width,this.M=this.height,this.Rc=!0):(this.N=this.ub,this.M=this.tb,this.Rc=!1,2===n?(b=this.ub/this.tb,n=this.yh/this.xh,n<b?this.N=this.M*n:n>b&&(this.M=this.N/n)):3===n&&(b=this.ub/this.tb,n=this.yh/this.xh,n>b?this.N=this.M*n:n<b&&(this.M=this.N/n))),this.$p&&!this.fb&&(jQuery(this.$p).css({width:Math.round(a)+"px",height:Math.round(d)+"px","margin-left":Math.floor(e)+
"px","margin-top":Math.floor(f)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(a)+"px",height:Math.round(d)+"px"})),this.canvas&&(this.canvas.width=Math.round(a*c),this.canvas.height=Math.round(d*c),this.Dd?(this.canvas.style.left=Math.floor(e)+"px",this.canvas.style.top=Math.floor(f)+"px",this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(d)+"px"):this.mg&&!this.fb&&(this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=
Math.round(d)+"px")),this.Mb&&(this.Mb.width=Math.round(a*c),this.Mb.height=Math.round(d*c),this.Mb.style.width=this.nk+"px",this.Mb.style.height=this.li+"px"),this.D&&this.D.Eg(Math.round(a*c),Math.round(d*c)),this.ec&&this.La&&(this.La.width=Math.round(a),this.La.height=Math.round(d)),this.La&&this.Tl(this.La,this.Ha),this.Vs(),this.Xq&&!this.ye&&window.scrollTo(0,0)}};b.prototype.Vs=function(){if(this.qu&&0!==this.Ao){var a="portrait";2===this.Ao&&(a="landscape");try{screen.orientation&&screen.orientation.lock?
screen.orientation.lock(a).catch(function(){}):screen.lockOrientation?screen.lockOrientation(a):screen.webkitLockOrientation?screen.webkitLockOrientation(a):screen.mozLockOrientation?screen.mozLockOrientation(a):screen.msLockOrientation&&screen.msLockOrientation(a)}catch(d){console&&console.warn&&console.warn("Failed to lock orientation: ",d)}}};b.prototype.$w=function(){this.D.zu();this.ao=!0;var a,d,c;a=0;for(d=this.F.length;a<d;a++)c=this.F[a],c.oj&&c.oj()};b.prototype.ax=function(){this.ao=!1;
var a,d,c;a=0;for(d=this.F.length;a<d;a++)c=this.F[a],c.tl&&c.tl()};b.prototype.es=function(){if(!this.fb){var a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.Wk)&&!this.ye?jQuery(this.canvas).offset():jQuery(this.canvas).position();a.position="absolute";jQuery(this.Mb).css(a)}};var v=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;
b.prototype.setSuspended=function(a){var d;if(a&&!this.Ji)for(ga("[Construct 2] Suspending"),this.Ji=!0,-1!==this.Io&&v&&v(this.Io),-1!==this.gp&&clearTimeout(this.gp),a=0,d=this.Hj.length;a<d;a++)this.Hj[a](!0);else if(!a&&this.Ji){ga("[Construct 2] Resuming");this.Ji=!1;this.al=Xa();this.rg=Xa();a=this.cj=this.Kk=0;for(d=this.Hj.length;a<d;a++)this.Hj[a](!1);this.za(!1)}};b.prototype.Pp=function(a){this.Hj.push(a)};b.prototype.bf=function(a){return this.rl[a]};b.prototype.Vi=function(a){a&&a.project||
ja("Project model unavailable");a=a.project;this.name=a[0];this.uq=a[1];this.pc=a[12];this.ub=a[10];this.tb=a[11];this.Zr=this.ub/2;this.$r=this.tb/2;this.fb&&!this.Dd&&(4<=a[12]||0===a[12])&&(ga("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.pc=3);this.sp=a[18];this.yf=a[19];if(0===this.yf){var d=new Image;d.crossOrigin="anonymous";this.ys(d,"loading-logo.png");this.xf={ll:d}}else if(4===this.yf){d=new Image;d.src="data:image/png;base64, ";
var c=new Image;c.src="data:image/png;base64, ";
var e=new Image;e.src="data:image/png;base64, ";
var f=new Image;f.src="data:image/png;base64, ";
var b=new Image;b.src="data:image/png;base64, ";
var k=new Image;k.src="data:image/png;base64, ";
var n=new Image;n.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAABACAMAAADCg1mMAAABmFBMVEUzMzOIjoM0NDSHjoKFjIFyeG89Pj1gZF5dYVs2NjY4ODhQU0+Ah3yBiH1XWlU5OjmEin86Ozp+hHpwdWx8gnh3fHNSVFCFjIB8gndNUEx6gHaEi4BcYFpFRkRkaGFjZ2Btcmpxd25qb2dTVlF5f3VVWFNISkc1NTVJS0hpbmZ9hHlAQkBUVlJAQT9na2Q8PDtGSEVQUk5xdm1KTElMTktMTkpobWU/QD51enFmamOCiX54fnRZXFdDREJ2fHI8PTxERUNWWVRrcGiAhntcX1leYls7PDpSVVE9Pjx/hntYXFZaXViDin5laWI7PDtvdGtPUU1obGRCREFCQ0FhZV9uc2tLTUqDin9PUk5eYlxscWk1NjVaXlhHSUZiZl9yeG50eXBlamJISUZXWlRRVE96gHVKTEg4ODdpbWZvdGx0enBERkN4fXN7gXdwdW0+Pz5bXllPUk1scGhrcGd9g3lISkZYW1UzNDNYW1ZjZ2E/QT+GjYJUVlFgZF03Nzc5OTlnbGRjaGBERUKIj4JGR0U3ODd2e3JjaGE5GY8RAAAGGUlEQVR4Xu2XVZMrNxCFdQbMzIzLzMzMzJeZmcIMfzvWaMjrWxunspO6qdV52G5199qaT9K0TL5gcXFxcXFxcXFxcXFxcXElc+6qsZDL+clVkh1dVeNmwMYB/CfiADgADoAD4AAE3ywhznJr8VZrzGmOD+Reytvf96jDTl9MT5V9euGgTytwNZbkvtGdZnWY9TUR0t9V7Gth456DsFzIDBND2a7x0Iszt/B5AN0OuS301LGkRNp9jaZ8v6+fXKKaAeFoFYrabujhlhdgkjuV8TcQ/WpqBRjQykI4Yc7sGBQlVCAO7DoLADBLR7Y+lhXz17SvHaVDEYjaPgcgFgBEAIFe5d9FfDBWZh6NlwzgOzGy9ottcmIecW09G0U8jw0H9ydCOL6rRBLoVXM+6DPuxLcuxdmElOtZsvVGIbWoAIYKSC3snLRXBvseNCwPB7MHEsICA1CC+PW+ILQvBkKPawFkMO4OEmf/bYhJGiqaSloguS4ZgDTHtrQ/ijbmPRRhZzN9dIgxG3Xy+hxuQfKwJLkHWbET8D5jyzMEj4sB8GBRrfKH0MWOxrMxLCjOfYhJlWFIrAUgtjZrH+f9sWLdONZP3SjOyCUDiGoHdzoAnxKLYFfPT6FAbT9C6uOIKRl3mV/AOjU2SWzSysdxygBglKi6gz5BdU8QoHyEBG5q2Z5aABjXZuSMIEPNGNxa1ovkZQNoMXWkKDUxjBm7bAag2/hamholaZ9Qpy9ssFgOJb18B20MQNyvRrYksV1PN6BcMTcgBfXQ21oAg/rAhwRj+FINDMDbfNkAjKYzCdBpP0GeGLoNBzWH+Epd9R4bImzx2MMKXjTp1U4JrxQAh1pkDTLRdYrHFbOIYp1tsBtYoS0DYrf28sgR6wAIAeVRNmBuNNfZbBvxhBpnelUgUexRP4NNhi0gGOUPMKgAaNUCBVw3sm8wpYRO6wRA5nHEPnWd8Q0gayEAMo4YIVuAvkGN07+CNO1hSfrQC8jQkMz6YS88DkNtWK4GkMJbIzuE95VQFI31AhhhpRNoIOy7XhArARRxj5B2/GqumEFAPb60ww3hIW1/zyvuD1JcaRqzqFZHNQAPqhRiPbVeAC+xRk1QwgzbThlLAfTBRwGI5opJpNWJ2ul59woUBqU2iLD6ohp3m/WqGoAXGXN2QAFwUi+AMANACsp7ySXBZimAEbp8rwAnMXQDHsU2YZz+GaL+In0j5nGP3ZogkypVA1hF0/lsFB31AritnpYkPM2ElCETSwGsYrASEjFJDHUgqlhhDEGSZ114DzLbBlRHWL0IwB+1V9dDOOoFEMIgi3owQHdoh6UAgmzwnK6vriHtSjOHGGkLsM2REP1bSLH4EtB5AYBNlM5nT7FdJ4CgPriJMxIU4y5LAXRot5ioUeA61u4ly3g8gzNt1ssxHOgHx34BgH52JzKrCfFH+uDPWgB7phlFVG8fkt+HOWIBAH25hQb2JNMS3HrBASIC84JiKIP7zM9iblc/227EjS3QfR6AkMJPRB9sKaEIFrTIkrcWwJzup4wbwxRmRzBoBYB0j75s8Wl1i47NqLFeEUljCg36L7G2+dRxswZORqpb6xne3XMAyENgQqscZb+aliGpX+p6iloAOp6fsaHvnlkk4BGsAJCIX6cb0pUDPqrzDCO9Rg+7/6Zo2t6LQFjz88CZseoRzMcoDtd6GuXzAMhroDRMnd9kNPyudrX0ur9SX34vhWsBtGL7g0DIXgG4b5zFOJAnVgCYLEKaejIiwdhu10aB+Eg4KkIy3WOzQKPRHFEmBgEZ2JDDUQmBZVIDgHQEgFS4OA/cCrKIcw6AxyPC07JeC8BpFyGtbgCSuYGUgBlLANg+uWUJkMJ3TfFsyQsgtDlsigl9I0GTv0VMSobTABL2afWRRxzmbLc9AiAQ3jFCA9teMTCVcZGjd9VtUnhXImSmKyJJkTtV3eUNHlBjTRcQpqdrjpd/5Z/1nKUV5wVZ58rSJ/KvlMdrqwD8LyR4xOkrDWAARXKlATxF75UGsIiIcGUBZCccUxBbyJUF4APgTRJrNDwskC9dto8Lsb9vyVxcXFxcXFxcXFxcXFxcfwEXKq8s5phFegAAAABJRU5ErkJggg==";
var g=new Image;g.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAAAgCAMAAADt/IAXAAACEFBMVEUzMzN9g3g0NDR7gXdzeG9CQ0E1NTWBh3w6OzpvdGx9g3k6OjlkaGFLTUqEi394fXRvdGt1enE2NjZ3fXM9Pj1iZl+AhntVWFNjZ2BWWVQ4OTh1e3FwdWxpbmZAQT83Nzc4ODdrcGhuc2tMTkpKTElNT0tRVE9aXVdPUU1PUk42NzZ6gHZLTUk7PDs5OjldYFp0eXB+hHlYW1Z0enBeYlx+hHp5f3WAh3w2NjVtcmpqb2dMTktISkd/hntHSUY4ODhmamNdYVtnbGRBQkA3ODdyd25yeG88PTs7OzpQUk5ERkNZXFdhZV5eYVuCiX03NzY1NjVOUU2Din5ERUM/QD9uc2pma2N+hXpUV1JFR0Q0NTRDREKIj4OCiH1XWlVGSEVfY1w9Pjw+Pz0/QD6Ein92fHI7PDpdYVp8gniFjIA8PTyAhnxgY11gZF5FRkRQU05YXFZna2NCREFSVVFAQkB/hXpXW1Vrb2dJSkc9PTxlamKFi4BISUZZXVeHjoJzeW9gZF1TVlFfYlxna2RVV1JcX1lbX1lNUEyDiX5tcmlzeXB8gndRVFBOUExpbWZSVFBNT0xhZF5laWJ4fXNwdW1RU09bXllDRUJqbmZfY12Ei4BUVlJbXlhKTEhTVVFcYFpeYltxdm1xd25obGU1NTSFjIFKS0iBiHxscWl9hHlscGhpbWVaXVhvc2ttcWk0NDPL7ZluAAAChElEQVR4Xu3SU6+kWRxG8fWibNvHtm3bdtu27bFtfsXJ6a5UMkklXdU5yZlMat09++Kf38Xmf1mmTJnmnwOAuN3FvpT1fhyw5OVdygBETYlekvStAEUfCKYDBXD+KTAWVQOxduDDMu13WcCx1dLCNpifFrZXRCBoXi4fyk4AggGnKqCmxOwFaDyaImBJ7td1TleK4KlubA1GfHXkdAOx658DnwzCbctAONb8AGTTewN2DOXZrYs+B/TVfhEadUkJgK9RqWszLWBxAfhXUgV8CYxpsyneUgBizx/orhTAqYYocOQsCqcXiEkgRwDluVVAPXGYow0AHyUARYBY089cJaA7pE4V4AV4pcejAeClCSwGxNk+VQiFAMccAKKxFzkfMNgA0ORge5bkDwy3ETZugidKWoC5KO5PAbB/Bl+7afETyWNQD/VP5N1+/Bh5HKhQvZ5HTqJaTAL4SgO/fwOP89MD3DKjrwKg9xBMFuK4S34AvwHM9xSvs74B5Na/mTpUp5MAzmigScvhkbr0AO0z5F4A4KIENF+S1ISaR1VWuFxFvNeAE2XEs2UnAZTOAMLVazOkDNgEsOUQnFADBIaADscNoH7YDBSVWwGUcUCJURGfN78HcCUAxwFMJ4DSO7aW1AHyBgtr0hi4LXaU96t1QJ6xAnjx0APwyF+M6Po2DqDi4CQ0FXrZUXl+EPMOJgC+FkLuGiWwbhRIHfBTpTDSvQGIudXan39ZBwj/age8WjuAcs0p1DbsQMQAwAtp1ll2HFDIxtqOpt/igJqpP5e3/ioGoKcqDYCXOivxukSSFv73e4HyLVeFqbQAe16Whf0EdI5rDaTc33ore9wBzTj/0TJlyvQPsTd0lRaZaakAAAAASUVORK5CYII=";
var m=new Image;m.src="data:image/png;base64, ";
var q=new Image;q.src="data:image/png;base64, ";
var l=new Image;l.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAABACAMAAADCg1mMAAABnlBMVEUzMzOIjoM0NDSHjoJyeG+FjIE2NjZISkeAhntNUEw4ODhVWFN1enFXWlWFjIA9Pj06Ozp4fnRxd26Ah3x6gHZtcmqEin98gnh5f3U8PTxobGWBiH1+hHo1NTVBQkBWWVQ9PjyEi4BMTkp9hHlna2Q5OjlDREJRVFBgZF6Din5laWJGSEU/QD5UVlJ7gXdscWlcX1lFRkRAQT9aXlhvdGtjZ2BCQ0FmamOCiX5wdm03Nzc7PDtHSEZJS0hTVlFpbmZYW1ZERkNuc2tdYVs3ODdCREF2fHJbXlliZl9QUk41NjVeYltZXFc/QD9YW1VQU09tcmlhZV9scGhKTEl3fHNeYlxERUNwdWw7PDpcYFpLTUpqb2d/hntpbWY+Pz5nbGR2e3JMTktWWlR9g3l0eXA8PDt8gndPUk44ODeDin9obGRaXViBiHxrcGhTVVFPUk1OUE1KTEhvdGx4fXNZXFZlamJyeG5RVE90enCGjYJkaGFgZF1rcGczNDNISkZISUZAQj9gY11fY11kaGBLTkpERUJVV1NGR0VUVlFwdW0dCiH/AAAHg0lEQVR4Xu3WVZPkOBYF4HOMycxYyMzMDM3MzMwwM8v4r3fKkpyZ1d3R2Rsxuw/j71HlSstH90rC/57H4/F4PB6Px+PxeDwe26/h98wmV/B71kaO4HftQ3UP/z8ej2cs3A1lKWxBagv3Yy4c3oB0JjwAqSv8ArDDi5AC4RNQguEo6gQGryWM9LnR+qHgcsL4+XgMUjgcAIB7h9OYOjVrrDhjc4htrxk3cMg6MT1rTPTY+JrrIyeNRMcJCzWrf54wZvv8ZUh2+O/AvYOTvw6ewaG5pWXDuFINwHGMeieEFvIWpBIfACX6IWW5A+ka+4Ag45C6+SmgpkM9hprwIwoJN5bbvXRE1jU4yD+J4zCLSzrJZ85YS9sMySQADCYpbI3hKKtPp8P3ElJ0lkL2bxA6OKKNmHQYMeCD/MGiiAP3uQshTHZAGHM+app9EDbJLCQf24A8eRHCSVIVUZBbqLlE/cZiPra6P8OreTg+U3+8mJ+3p3X+fCSA9rdMnjrx0nbGdk2zsOR/AWCHeuHMfKBSvcNkHo3mQny0vnox6p8lq3CMFul7shkb6N4i36oA1t9x1n8sak+avPvLOK+On49ODQ6xVSQ66X71e5pJTS4UDQB+Zt1viXAKjgojFoC4+mqrNcJhCKe5DteYrgqoJcs0Dg0yImNfyPB2YwCZyEQAApm8L5f7ASOv4AjE+QyNlpmVpfWWn7oAYD7JhPgVbZ30ywCGVDxt5F95QTzwMMdl0d0swdGppwz+EY40nwDYMCk7/w2neQmOFb4GgJ/kv+MWC2bGEi8tchSuESYg2aLP5ooMQlqir9wQAHN7kMjWAQhnOQKpn6ZKyB2YglTgsIgkZ0GapM8SAbAHUppMqQf8bHVmsNfKiuzlngPZ6VqvGEvI6KLcWuVZOCbE0i0wCcdjtk3IvWOVSQ2uPvZBeWr2Ox0ypEHSrvIPjQG0QanNWCv5xqAUuYB6VzgNpcLIHhDVaUOxfAyKAGY2IAXJl5AsXRb1GldkOv1RZmW27Th0wLRc9W3cYQsAlDOMOhnNsEusembvOcV+vc0CakYYQqOJ+g4ZZrghgBkNCnkeXzHk7tFqlWy4ipwCnjCOmnM0RAAdUM7Q3IPi46JM5bXo5asaznJTtHyf3AsfOdMyOIYdHhcrn1L5j4uZX0Gn+VQTBbOLhj3gpzLqJbkI11yn1RBACS5y4OsB+FGnQt2CK9CpAWv8C2pGGdGcAHqg2PTB1S6LroWte05L9AEjotMNlXWWC2J3APr5HgD2eUqdfgnRabvArFPOlinOQ6Wqs/3cqAbFIqOo12QA2pR/MPgrX2MAl9n+ZUS7qLHIgWYCQM5ZmAJfAWN8A2DOjFjq2DoHYInnDpvW2chCqu5iumkBuBPZAILccerLQIOFEMnetWAMjntk4McD2Cz0UmoM4ATjOCJJG3UyPN9UAD3sAbRiUXPCiAJtvOCmfBNAmuedMLqBgN5bhnCTl4EurjlhZJ3fGccRle3ZDGk+vggA+f8mgH2dpenqrUXbtkuNAXR/GcDTxm2yl6NNBWAzDtgsiApfASZ5G4IV0TthRdrFY2nAz9OQ1jkJ7HNJ9EwXEGcFX9L6P0foqwAIkPd+NIBtRoLa1/cAP4dwRIltqGOy0lQA2gxjmBTxbtIQZSBN8AH8nHQee9pq4TOXIK0yBcTFRfo41xHT2/F10ThzGoAIV38wgFiE/m9tgqPM4Ii7XEHNdfJhUwHgGbvRLi8z9/XOeaagVNmBgrweTdOPFOch/ZJk/rq87OQZxy778A1Rnf90miYIV0tX7PsBPGcc3wpgQ+cYXJUuC9hhGjVLHEJzATzntfMcVhvC826eghJlSSvK681lFlp4Fq4CBw8YVhtCtKPxmB5YvgFXjt3OwTwB1xr/8f0ARngSiqZOAeUjD+ovBccAm2YMLoM9TQYQ00uX+EEV1rPHtOFK8V/qwlWeSXZzH64HXE4wD8cTVrMRC3XmyUpd2H4Ax3R9ClJnhmPfD+A441DGeSSAQbZbENSFPsdpKLeoDzQZALaYMwNq2Jd6VIarh3FehnCNCY7CFfiUjdx0++29e3RoagEmNAi7cmVu8M1D+cwwJ5rYAzbpltWgTr5oeEE5xQ4V531RDYvkIIRKkZNoNoB9urPHJDmMGpt0Dz4/Gy77MMhxSHHKbiiHdDHY1crEKgA8HDflHAIppmznbwn68k0EgDRbgxagLaR5NsVqwwvQleHaAADtVpaGJnuG7+YB7AV7eXev6QBGySCkBXIJNeVeXoFkZVhAnXHyGKRL5HUcmqLaQ/tLpC/xessk+2RuFz+SpcS/s2R8AM0EEAiRrblcL5kOpPmu8QUYLZGpC4kieXoOQjVCPX7hboa8YqHpALQLRgySNmHMo86p0BkoPaE21KmETkMZCw2r4i6pMOdWQiZJ33I/FK3bMEnz42AZQijU4ixmKA3AHctDKR+P6+TM6UUgGLp25AXYGMnpZObkK7hadu6QnBm2IW2HqlC6QmtwDYf68ZvT5qOBo0P5fBk/worG8G1Wy0UcsdESw5c8Ho/H4/F4PB6Px+PxeDwej8fzH+ab6YZ24mCxAAAAAElFTkSuQmCC";
var u=new Image;u.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAAAgCAMAAADt/IAXAAABblBMVEUzMzM2NjY4ODheYlxAQkA/QD58gng0NDQ5Ojl6gHaCiX59hHlMTktZXFc9Pj15f3VkaGFdYVuEi39WWVQ8PTxgZF5FRkRtcmo1NTVlaWJscWl4fnSBiH1xdm5iZmBqb2c9Pjx2fHJcYFpYW1Y6Ozp9g3lHSEZcX1mAhnt+hXo3NzdSVFCHjoJGSEVAQT9CQ0FERUNZXFZobWVERkOAh3xUVlI8PDt1enF3fHNiZl9DREJ2e3I3ODdRVE+FjIE4ODdOUU2Din9KTElVWFNJS0hxdm1MTkpna2RbX1lQUk5XWlV7gXd8gndrcGhuc2tfY11tcml0eXBNUEyDin5yeG9ISkc1NjVmamOEi4BKTEhvdGx6gHVLTUp0enBwdWxNT0x4fXR4fXNVV1M+Pz5aXVhbXlhPUk5vdGs7PDs/QD9pbmZTVVGIj4NXWlRgZF1pbWY5OTlhZV9TVlFlamJzeXB/hntscWg0NDNeYluBiHw6JP9nAAAC8ElEQVR4Xu3R1YpsORhA4bVdyt3dXdvd3e2467jL2w+himloai7m6nCgvos/yWYTFoSv3tTUlFzky/pxhy+rGOQrZ0YM4NsCQEY7cAF80wEGMZTHwKz4gZkthNk7Sz8PA6xclOZmxBqA3stA4gkrb9ZzHviQKiUUibF2Rre8JiDlX+s7u0D4zN3XPUq0GDs6upOB4zKQcwCabbR0QG0qgOKlsgd839wGnq8DSKVK0Zyxu5B/FV4O587A54X+q3hLw5dI3ajsv25JWiTOSGc4YwZDR3WiF3FV3i0VwGldb8uDRCy3YmqRCJBWIGjNdyFwgpHUoJLxAEvPWKwBOxkvrD1aA9h+ChBKE7yaBT755VHAnAH4HBJQVQF51UTgRQHgNEDhuQG0/UGczTaw+Z0TKDaXYXMJDkMVBeINyARgXj3WkDck+F1FdmQd4EwhqLaGwFYEwZUdBbwD8MX4V7KNIK3+BHBzSe4DQqSAMwfwdtUA2NDgdsMkFVY9GMkiNCIELUIu1k+BvQKNGEtdvC4EAsPzgBsILTAyCnCNd8Lgh/jHj6ujADXJ2NVnxpHOOQC3H8EWn08P5BJYWngJMG3jUCF8QSwArD8h/ph3CpbKiOT82ZGRCIX+K8Bn/dJxu+1xwJAx/1uEyq8TArb2Gl5QXJU8wFw5NYBS8TgLLNtyLYrmCercu91RKGQQzOjDgOyGef8EyE0JQFrDs4nQ358QkHXEb2Dxt+sBQN6rA2mfByG10AcS4m7hfQ/g8A/UpAQYQ+1hQMsB4B4/AbkDgLTC2QmAaXcmBOBxGIClI3T9aaBshxBc/ksgbz+DbgPKwzK4PVvQj8vU7855GFBPBgzK848W+bOXhe1aGC6rWWTdFyV4HWNSQD59PyFRBoxEC6GtS4Aq5ntRvjtfdThcQDRU1asLEvQUWHgD0PsLIJy4SqYWXzip114Cu55aNdUBZk/+LtX2DdiMAAQthKdu/q/bOmNrTCZFJx+NZSaYmpqamvoHZD1hKSAldSkAAAAASUVORK5CYII=";
this.xf={ll:[d,c,e,f],xx:[b,k,n,g],xy:[m,q,l,u]}}this.ij=a[21];this.rl=nc();this.je=new Y(this);d=0;for(c=a[2].length;d<c;d++)n=a[2][d],e=this.bf(n[0]),nb(n,e.prototype),g=new e(this),g.$l=n[1],g.tf=n[2],g.Mw=n[5],g.Hr=n[9],g.R&&g.R(),this.plugins.push(g);this.rl=nc();d=0;for(c=a[3].length;d<c;d++){n=a[3][d];b=this.bf(n[1]);g=null;e=0;for(f=this.plugins.length;e<f;e++)if(this.plugins[e]instanceof b){g=this.plugins[e];break}m=new g.ma(g);m.name=n[0];m.J=n[2];m.Rn=n[3].slice(0);m.vy=n[3].length;m.ru=
n[4];m.Sv=n[5];m.aa=n[11];m.J?(m.vg=[],m.ue=this.qi++,m.Ma=null):(m.vg=null,m.ue=-1,m.Ma=[]);m.Dk=null;m.ah=null;m.nq=null;m.tc=!1;m.Hc=null;n[6]?(m.km=n[6][0],m.lm=n[6][1],m.Jj=n[6][2]):(m.km=null,m.lm=0,m.Jj=0);n[7]?m.Gc=n[7]:m.Gc=null;m.index=d;m.d=[];m.rk=[];m.Se=[new ob(m)];m.Xd=0;m.fd=null;m.Eu=0;m.Uh=!0;m.um=pb;m.Aq=qb;m.dw=rb;m.ha=sb;m.uj=tb;m.Il=ub;m.zg=vb;m.Mk=wb;m.tn=Ab;m.vn=Bb;m.wd=Cb;m.wn=Db;m.gi=new db(this.ub,this.tb);m.$j=!0;m.ak=!1;m.H={};m.toString=Eb;m.Oa=[];e=0;for(f=n[8].length;e<
f;e++){q=n[8][e];l=this.bf(q[1]);u=null;b=0;for(k=this.Oa.length;b<k;b++)if(this.Oa[b]instanceof l){u=this.Oa[b];break}u||(u=new l(this),u.ql=[],u.pl=new da,u.R&&u.R(),this.Oa.push(u),oc&&u instanceof oc&&(this.Ks=u),fc.Pw&&u instanceof fc.Pw&&(this.Yq=u));-1===u.ql.indexOf(m)&&u.ql.push(m);b=new u.ma(u,m);b.name=q[0];b.aa=q[2];b.R();m.Oa.push(b)}m.global=n[9];m.Wn=n[10];m.V=[];e=0;for(f=n[12].length;e<f;e++)m.V.push({id:n[12][e][0],name:n[12][e][1],jb:-1,od:!1,Na:!0,index:e});m.Mz=n[13];this.sp&&
!m.J&&!m.Wn&&g.tf||m.R();m.name&&(this.types[m.name]=m);this.F.push(m);g.$l&&(e=new g.ba(m),e.uid=this.ij++,e.ns=this.Jr++,e.jg=0,e.xi=Fb,e.toString=Gb,e.B=n[14],e.R(),m.d.push(e),this.De[e.uid.toString()]=e)}d=0;for(c=a[4].length;d<c;d++)for(b=a[4][d],k=this.F[b[0]],e=1,f=b.length;e<f;e++)n=this.F[b[e]],n.Ma.push(k),k.vg.push(n);d=0;for(c=a[28].length;d<c;d++){b=a[28][d];k=[];e=0;for(f=b.length;e<f;e++)k.push(this.F[b[e]]);e=0;for(f=k.length;e<f;e++)k[e].tc=!0,k[e].Hc=k}if(0<this.qi)for(d=0,c=this.F.length;d<
c;d++)if(n=this.F[d],!n.J&&n.Ma.length){n.Dk=Array(this.qi);n.ah=Array(this.qi);n.nq=Array(this.qi);m=[];e=u=l=q=0;for(f=n.Ma.length;e<f;e++)for(g=n.Ma[e],n.Dk[g.ue]=q,q+=g.vy,n.ah[g.ue]=l,l+=g.ru,n.nq[g.ue]=u,u+=g.Sv,b=0,k=g.V.length;b<k;b++)m.push(xa({},g.V[b]));n.V=m.concat(n.V);e=0;for(f=n.V.length;e<f;e++)n.V[e].index=e}d=0;for(c=a[5].length;d<c;d++)n=a[5][d],e=new Hb(this,n),this.Ah[e.name]=e,this.Fd.push(e);d=0;for(c=a[6].length;d<c;d++)n=a[6][d],e=new Ib(this,n),this.kn[e.name]=e,this.te.push(e);
d=0;for(c=this.te.length;d<c;d++)this.te[d].Wa();d=0;for(c=this.te.length;d<c;d++)this.te[d].op();d=0;for(c=this.rm.length;d<c;d++)this.rm[d].Wa();O(this.rm);this.pu=a[7];this.nn=a[8];this.Jd=a[9];this.ei=1;this.dv=a[13];this.Ha=a[14];this.bq=a[15];this.qy=a[17];this.Ao=a[20];this.qu=0<this.Ao;this.ox=a[22];this.Rc=this.ht=a[23];this.Wu=a[24];this.yx=a[25];this.Ga=a[27]&&!this.ae;this.gm=Date.now();O(this.rl);this.Cw()};var d=!1,e=0,k=[];b.prototype.Dx=function(a,d){function c(){e--;f.Cr()}var f=
this;a.addEventListener("load",c);a.addEventListener("error",c);k.push([a,d]);this.Cr()};b.prototype.Cr=function(){for(var a;k.length&&100>e;)e++,a=k.shift(),this.ys(a[0],a[1])};b.prototype.vp=function(a,c){a.cocoonLazyLoad=!0;a.onerror=function(c){d=a.Vp=!0;console&&console.error&&console.error("Error loading image '"+a.src+"': ",c)};this.Dd?a.src=c:a.src||("undefined"!==typeof XAPKReader?XAPKReader.get(c,function(d){a.src=d},function(e){d=a.Vp=!0;console&&console.error&&console.error("Error extracting image '"+
c+"' from expansion file: ",e)}):(a.crossOrigin="anonymous",this.Dx(a,c)));this.Zh.push(a)};b.prototype.Qv=function(a){var d,c;d=0;for(c=this.Zh.length;d<c;d++)if(this.Zh[d].Bu===a)return this.Zh[d];return null};var f=0,D=!1;b.prototype.vw=function(){this.Sg&&(f=this.Sg.Xx(this.pu))};b.prototype.Rp=function(){var a=f,d=0,c=0,e=!0,b,k,c=0;for(b=this.Zh.length;c<b;c++){k=this.Zh[c];var n=k.Vm;if(!n||0>=n)n=5E4;a+=n;k.src&&(k.complete||k.loaded)&&!k.Vp?d+=n:e=!1}e&&this.yx&&this.Sg&&(D||(this.Sg.cy(),
D=!0),c=this.Sg.ew(),d+=c,c<f&&(e=!1));this.Kd=0==a?1:d/a;return e};var F=!1;b.prototype.go=function(){if(this.La||this.D){var a=this.La||this.Bo;this.Mb&&this.es();var c=window.innerWidth,e=window.innerHeight;this.yh===c&&this.xh===e||this.setSize(c,e);this.Kd=0;this.cr=-1;var f=this;if(this.Rp()&&(4!==this.yf||F))this.ww();else{e=Date.now()-this.gm;if(a){var b=this.width,k=this.height,c=this.devicePixelRatio;if(3>this.yf&&(this.Cd||500<=e&&this.cr!=this.Kd)){a.clearRect(0,0,b,k);var e=b/2,k=k/2,
b=0===this.yf&&this.xf.ll.complete,n=40*c,g=0,q=80*c,l;if(b){var u=this.xf.ll,q=u.width*c;l=u.height*c;n=q/2;g=l/2;a.drawImage(u,M(e-n),M(k-g),q,l)}1>=this.yf?(e=M(e-n)+.5,k=M(k+(g+(b?12*c:0)))+.5,a.fillStyle=d?"red":"DodgerBlue",a.fillRect(e,k,Math.floor(q*this.Kd),6*c),a.strokeStyle="black",a.strokeRect(e,k,q,6*c),a.strokeStyle="white",a.strokeRect(e-1*c,k-1*c,q+2*c,8*c)):2===this.yf&&(a.font=this.Dd?"12pt ArialMT":"12pt Arial",a.fillStyle=d?"#f00":"#999",a.Lz="middle",c=Math.round(100*this.Kd)+
"%",b=a.measureText?a.measureText(c):null,a.fillText(c,e-(b?b.width:0)/2,k));this.cr=this.Kd}else if(4===this.yf){this.bv(a);m?m(function(){f.go()}):setTimeout(function(){f.go()},16);return}}setTimeout(function(){f.go()},this.Cd?10:100)}}};var B=-1,n="undefined"===typeof cr_is_preview?200:0,u=!0,S=!1,R=0,C=0,G="undefined"===typeof cr_is_preview?3E3:0,z=null,t=null,L=0;b.prototype.bv=function(a){if(!F){for(var c=Math.ceil(this.width),e=Math.ceil(this.height),f=this.xf.ll,b=this.xf.xx,k=this.xf.xy,
g=0;4>g;++g)if(!f[g].complete||!b[g].complete||!k[g].complete)return;0===L&&(B=Date.now());var g=Date.now(),m=!1,q=a,l,p;u||S?(a.clearRect(0,0,c,e),z&&z.width===c&&z.height===e||(z=document.createElement("canvas"),z.width=c,z.height=e,t=z.getContext("2d")),q=t,m=!0,u&&1===L&&(B=Date.now())):a.globalAlpha=1;q.fillStyle="#333333";q.fillRect(0,0,c,e);256<this.li?(l=Fa(.22*e,105,.6*c),p=.25*l,q.drawImage(h(b,l),.5*c-l/2,.2*e-p/2,l,p),p=l=Math.min(.395*e,.95*c),q.drawImage(h(f,l),.5*c-l/2,.485*e-p/2,l,
p),l=Fa(.22*e,105,.6*c),p=.25*l,q.drawImage(h(k,l),.5*c-l/2,.868*e-p/2,l,p),q.fillStyle="#3C3C3C",l=c,p=Math.max(.005*e,2),q.fillRect(0,.8*e-p/2,l,p),q.fillStyle=d?"red":"#E0FF65",l=c*this.Kd,q.fillRect(.5*c-l/2,.8*e-p/2,l,p)):(p=l=.55*e,q.drawImage(h(f,l),.5*c-l/2,.45*e-p/2,l,p),q.fillStyle="#3C3C3C",l=c,p=Math.max(.005*e,2),q.fillRect(0,.85*e-p/2,l,p),q.fillStyle=d?"red":"#E0FF65",l=c*this.Kd,q.fillRect(.5*c-l/2,.85*e-p/2,l,p));m&&(u?a.globalAlpha=0===L?0:Math.min((g-B)/300,1):S&&(a.globalAlpha=
Math.max(1-(g-C)/300,0)),a.drawImage(z,0,0,c,e));u&&300<=g-B&&2<=L&&(u=!1,R=g);!u&&g-R>=G&&!S&&1<=this.Kd&&(S=!0,C=g);if(S&&g-C>=300+n||"undefined"!==typeof cr_is_preview&&1<=this.Kd&&500>Date.now()-B)F=!0,S=u=!1,this.xf=t=z=null;++L}};b.prototype.ww=function(){this.Mb&&(this.canvas.parentNode.removeChild(this.Mb),this.Mb=this.Bo=null);this.gm=Date.now();this.rg=Xa();var a,d,c;if(this.sp)for(a=0,d=this.F.length;a<d;a++)c=this.F[a],c.J||c.Wn||!c.Ja.tf||c.R();else this.th=!1;a=0;for(d=this.Fd.length;a<
d;a++)this.Fd[a].Cu();2<=this.pc&&(a=this.ub/this.tb,d=this.width/this.height,this.ei=2!==this.pc&&d>a||2===this.pc&&d<a?this.height/this.tb:this.width/this.ub);this.uq?this.Ah[this.uq].dp():this.Fd[0].dp();this.sp||(this.il=1,this.trigger(Y.prototype.k.Ep,null),window.C2_RegisterSW&&window.C2_RegisterSW());navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();a=0;for(d=this.F.length;a<d;a++)c=this.F[a],c.Zw&&c.Zw();document.hidden||document.webkitHidden||document.mozHidden||
document.msHidden?window.cr_setSuspended(!0):this.za(!1);this.ec&&AppMobi.webview.execute("onGameReady();")};b.prototype.za=function(a,d,c){if(this.ua){var e=Xa();if(c||!this.Ji||a){a||(m?this.Io=m(this.Qs):this.gp=setTimeout(this.Qs,this.mh?1:16));d=d||e;var f=this.pc;((c=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.ye)||this.Wk)&&0<this.dh&&(f=this.dh);if(0<f){var f=window.innerWidth,b=window.innerHeight;this.yh===f&&this.xh===
b||this.setSize(f,b)}this.fb||(c?this.Gk||(this.Gk=!0):this.Gk?(this.Gk=!1,0===this.pc&&this.setSize(Math.round(this.Qr/this.devicePixelRatio),Math.round(this.Pr/this.devicePixelRatio),!0)):(this.Qr=this.width,this.Pr=this.height));this.th&&(c=this.Rp(),this.il=this.Kd,c&&(this.th=!1,this.Kd=1,this.trigger(Y.prototype.k.Ep,null),window.C2_RegisterSW&&window.C2_RegisterSW()));this.Rw(d);!this.wa&&!this.Cd||this.ao||this.Gj||a||(this.wa=!1,this.D?this.Ub():this.hd(),this.Fj&&(this.canvas&&this.canvas.toDataURL&&
(this.Is=this.canvas.toDataURL(this.Fj[0],this.Fj[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.Is),this.trigger(Y.prototype.k.Lt,null)),this.Fj=null));this.Hz||(this.Jf++,this.$f++,this.Kk++);this.cj+=Xa()-e}}};b.prototype.Rw=function(a){var d,c,e,f,b,k,n,g;1E3<=a-this.rg&&(this.rg+=1E3,1E3<=a-this.rg&&(this.rg=a),this.qn=this.Kk,this.Kk=0,this.Um=this.cj,this.cj=0);d=0;0!==this.al&&(d=a-this.al,0>d&&(d=0),this.Wf=d/=1E3,.5<this.Wf?this.Wf=0:this.Wf>1/this.Fr&&(this.Wf=1/this.Fr));this.al=
a;this.Vf=this.Wf*this.Jg;this.ob.add(this.Vf);this.Xe.add(d);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.Wk)&&!this.ye;2<=this.pc||a&&0<this.dh?(d=this.ub/this.tb,c=this.width/this.height,e=this.pc,a&&0<this.dh&&(e=this.dh),this.ei=2!==e&&c>d||2===e&&c<d?this.height/this.tb:this.width/this.ub,this.ua&&(this.ua.So(this.ua.scrollX),this.ua.To(this.ua.scrollY))):this.ei=this.mg?this.devicePixelRatio:1;this.Rb();this.Ed++;this.je.Nx();
this.Ed--;this.Rb();this.Ed++;c=this.Nr.Ve();a=0;for(d=c.length;a<d;a++)c[a].Iz();a=0;for(d=this.F.length;a<d;a++)if(k=this.F[a],!k.J&&(k.Oa.length||k.Ma.length))for(c=0,e=k.d.length;c<e;c++)for(n=k.d[c],f=0,b=n.P.length;f<b;f++)n.P[f].za();a=0;for(d=this.F.length;a<d;a++)if(k=this.F[a],!k.J&&(k.Oa.length||k.Ma.length))for(c=0,e=k.d.length;c<e;c++)for(n=k.d[c],f=0,b=n.P.length;f<b;f++)g=n.P[f],g.gs&&g.gs();c=this.wo.Ve();a=0;for(d=c.length;a<d;a++)c[a].za();this.Ed--;this.xw();for(a=0;this.Rf&&10>
a++;)this.kq(this.Rf);a=0;for(d=this.te.length;a<d;a++)this.te[a].Hn=!1;this.ua.Yf&&this.ua.Yf.ib();O(this.Dg);this.Ed++;a=0;for(d=this.F.length;a<d;a++)if(k=this.F[a],!k.J&&(k.Oa.length||k.Ma.length))for(c=0,e=k.d.length;c<e;c++)for(n=k.d[c],f=0,b=n.P.length;f<b;f++)g=n.P[f],g.Kj&&g.Kj();c=this.Or.Ve();a=0;for(d=c.length;a<d;a++)c[a].Kj();this.Ed--};b.prototype.Fe=function(){var a,d,c,e,f,b,k,n,g;a=0;for(d=this.F.length;a<d;a++)if(k=this.F[a],!k.J)for(c=0,e=k.d.length;c<e;c++)if(n=k.d[c],n.Fe&&n.Fe(),
n.P)for(f=0,b=n.P.length;f<b;f++)g=n.P[f],g.Fe&&g.Fe()};b.prototype.kq=function(a){var d=this.ua;this.ua.ey();var c,e,f;if(this.D)for(c=0,e=this.F.length;c<e;c++)f=this.F[c],f.J||!f.tm||f.global&&0!==f.d.length||-1!==a.Ci.indexOf(f)||f.tm();d==a&&O(this.je.Fc);O(this.Dg);this.rs(!0);a.dp();this.rs(!1);this.wa=!0;this.Rb()};b.prototype.rs=function(a){var d,c,e,f,b,k,n,g,m;d=0;for(c=this.Oa.length;d<c;d++)e=this.Oa[d],a?e.Kh&&e.Kh():e.nj&&e.nj();d=0;for(c=this.F.length;d<c;d++)if(e=this.F[d],e.global||
e.Ja.$l)for(f=0,b=e.d.length;f<b;f++)if(k=e.d[f],a?k.Kh&&k.Kh():k.nj&&k.nj(),k.P)for(n=0,g=k.P.length;n<g;n++)m=k.P[n],a?m.Kh&&m.Kh():m.nj&&m.nj()};b.prototype.Lj=function(a){this.wo.add(a)};b.prototype.we=function(a){return a&&-1!==a.hj?this.Wf*a.hj:this.Vf};b.prototype.hd=function(){this.ua.hd(this.La);this.ec&&this.La.present()};b.prototype.Ub=function(){this.Ga&&(this.Xf=1,this.ua.Uf(this.D));this.ua.Ub(this.D);this.D.Ax()};b.prototype.Yj=function(a){a&&this.wk.push(a)};b.prototype.qs=function(a){Da(this.wk,
a)};b.prototype.dg=function(a){a=a.toString();return this.De.hasOwnProperty(a)?this.De[a]:null};var J=[];b.prototype.$e=function(a){var d,c;d=a.type.name;var e=null;if(this.Tf.hasOwnProperty(d)){if(e=this.Tf[d],e.contains(a))return}else e=J.length?J.pop():new da,this.Tf[d]=e;e.add(a);this.qf=!0;if(a.tc)for(d=0,c=a.siblings.length;d<c;d++)this.$e(a.siblings[d]);this.Un&&e.Xh.push(a);this.Tn||(this.Ed++,this.trigger(Object.getPrototypeOf(a.type.Ja).k.Nt,a),this.Ed--)};b.prototype.Rb=function(){if(this.qf){var a,
d,c,e,f,b;this.Un=!0;c=0;for(f=this.Ad.length;c<f;++c)for(a=this.Ad[c],d=a.type,d.d.push(a),e=0,b=d.Ma.length;e<b;++e)d.Ma[e].d.push(a),d.Ma[e].Uh=!0;O(this.Ad);this.Et();Ua(this.Tf);this.qf=this.Un=!1}};b.prototype.Et=function(){for(var a in this.Tf)this.Tf.hasOwnProperty(a)&&this.nt(this.Tf[a])};b.prototype.nt=function(a){var d=a.Ve(),c=d[0].type,e,f,b,k,n,g;Ya(c.d,a);c.Uh=!0;0===c.d.length&&(c.ak=!1);e=0;for(f=c.Ma.length;e<f;++e)g=c.Ma[e],Ya(g.d,a),g.Uh=!0;e=0;for(f=this.je.Fc.length;e<f;++e)if(n=
this.je.Fc[e],n.hc.hasOwnProperty(c.index)&&Ya(n.hc[c.index].xe,a),!c.J)for(b=0,k=c.Ma.length;b<k;++b)g=c.Ma[b],n.hc.hasOwnProperty(g.index)&&Ya(n.hc[g.index].xe,a);if(n=d[0].A){if(n.$c)for(b=n.d,e=0,f=b.length;e<f;++e)k=b[e],a.contains(k)&&(k.Aa(),n.Nb.update(k,k.yc,null),k.yc.set(0,0,-1,-1));Ya(n.d,a);n.Aj(0)}for(e=0;e<d.length;++e)this.mt(d[e],c);a.clear();J.push(a);this.wa=!0};b.prototype.mt=function(a,d){var c,e,f;c=0;for(e=this.wk.length;c<e;++c)this.wk[c](a);a.dd&&d.gi.update(a,a.dd,null);
(c=a.A)&&c.Ph(a,!0);if(a.P)for(c=0,e=a.P.length;c<e;++c)f=a.P[c],f.Ee&&f.Ee(),f.behavior.pl.remove(a);this.Nr.remove(a);this.wo.remove(a);this.Or.remove(a);a.Ee&&a.Ee();this.De.hasOwnProperty(a.uid.toString())&&delete this.De[a.uid.toString()];this.sl--;100>d.rk.length&&d.rk.push(a)};b.prototype.gq=function(a,d,c,e){if(a.J){var f=M(Math.random()*a.vg.length);return this.gq(a.vg[f],d,c,e)}return a.fd?this.lf(a.fd,d,!1,c,e,!1):null};var W=[];b.prototype.lf=function(a,d,c,e,f,b){var k,n,g,m;if(!a)return null;
var l=this.F[a[1]],q=l.Ja.tf;if(this.th&&q&&!l.Wn||q&&!this.D&&11===a[0][11])return null;var u=d;q||(d=null);var h;l.rk.length?(h=l.rk.pop(),h.xc=!0,l.Ja.ba.call(h,l)):(h=new l.Ja.ba(l),h.xc=!1);!c||b||this.De.hasOwnProperty(a[2].toString())?h.uid=this.ij++:h.uid=a[2];this.De[h.uid.toString()]=h;h.ns=this.Jr++;h.jg=l.d.length;k=0;for(n=this.Ad.length;k<n;++k)this.Ad[k].type===l&&h.jg++;h.xi=Fb;h.toString=Gb;g=a[3];if(h.xc)Ua(h.H);else{h.H={};if("undefined"!==typeof cr_is_preview)for(h.Mq=[],h.Mq.length=
g.length,k=0,n=g.length;k<n;k++)h.Mq[k]=g[k][1];h.nb=[];h.nb.length=g.length}k=0;for(n=g.length;k<n;k++)h.nb[k]=g[k][0];if(q){var p=a[0];h.x=ka(e)?p[0]:e;h.y=ka(f)?p[1]:f;h.z=p[2];h.width=p[3];h.height=p[4];h.depth=p[5];h.j=p[6];h.opacity=p[7];h.qc=p[8];h.rc=p[9];h.Sb=p[10];k=p[11];!this.D&&l.V.length&&(h.Sb=k);h.hi=fb(h.Sb);this.G&&gb(h,h.Sb,this.G);if(h.xc){k=0;for(n=p[12].length;k<n;k++)for(g=0,m=p[12][k].length;g<m;g++)h.Qa[k][g]=p[12][k][g];h.Ba.set(0,0,0,0);h.dd.set(0,0,-1,-1);h.yc.set(0,0,
-1,-1);h.oc.Ne(h.Ba);O(h.Lm)}else{h.Qa=p[12].slice(0);k=0;for(n=h.Qa.length;k<n;k++)h.Qa[k]=p[12][k].slice(0);h.ta=[];h.df=[];h.df.length=l.V.length;h.Ba=new va(0,0,0,0);h.dd=new va(0,0,-1,-1);h.yc=new va(0,0,-1,-1);h.oc=new wa;h.Lm=[];h.C=Jb;h.mu=Kb;h.cc=Lb;h.Aa=Mb;h.ct=Nb;h.rp=Ob;h.$d=Pb}h.Ig=!1;h.ky=0;h.jy=0;h.iy=null;14===p.length&&(h.Ig=!0,h.ky=p[13][0],h.jy=p[13][1],h.iy=p[13][2]);k=0;for(n=l.V.length;k<n;k++)h.df[k]=!0;h.Oe=!0;h.Rd=Qb;h.Rd();h.dt=!!h.ta.length;h.gk=!0;h.Om=!0;l.$j=!0;h.visible=
!0;h.hj=-1;h.A=d;h.Td=d.d.length;h.Xf=0;"undefined"===typeof h.fa&&(h.fa=null);this.wa=h.Pc=!0}var C;O(W);k=0;for(n=l.Ma.length;k<n;k++)W.push.apply(W,l.Ma[k].Oa);W.push.apply(W,l.Oa);if(h.xc)for(k=0,n=W.length;k<n;k++){var D=W[k];C=h.P[k];C.xc=!0;D.behavior.ba.call(C,D,h);p=a[4][k];g=0;for(m=p.length;g<m;g++)C.B[g]=p[g];C.R();D.behavior.pl.add(h)}else for(h.P=[],k=0,n=W.length;k<n;k++)D=W[k],C=new D.behavior.ba(D,h),C.xc=!1,C.B=a[4][k].slice(0),C.R(),h.P.push(C),D.behavior.pl.add(h);p=a[5];if(h.xc)for(k=
0,n=p.length;k<n;k++)h.B[k]=p[k];else h.B=p.slice(0);this.Ad.push(h);this.qf=!0;d&&(d.di(h,!0),1!==d.md||1!==d.nd)&&(l.ak=!0);this.sl++;if(l.tc){if(h.tc=!0,h.xc?O(h.siblings):h.siblings=[],!c&&!b){k=0;for(n=l.Hc.length;k<n;k++)if(l.Hc[k]!==l){if(!l.Hc[k].fd)return null;h.siblings.push(this.lf(l.Hc[k].fd,u,!1,q?h.x:e,q?h.y:f,!0))}k=0;for(n=h.siblings.length;k<n;k++)for(h.siblings[k].siblings.push(h),g=0;g<n;g++)k!==g&&h.siblings[k].siblings.push(h.siblings[g])}}else h.tc=!1,h.siblings=null;h.R();k=
0;for(n=h.P.length;k<n;k++)h.P[k].wx&&h.P[k].wx();return h};b.prototype.xn=function(a){var d,c;d=0;for(c=this.ua.W.length;d<c;d++){var e=this.ua.W[d];if(ib(e.name,a))return e}return null};b.prototype.vi=function(a){a=M(a);0>a&&(a=0);a>=this.ua.W.length&&(a=this.ua.W.length-1);return this.ua.W[a]};b.prototype.Sm=function(a){var d,c;d=0;for(c=a.length;d<c;d++)a[d].ha().va=!0};b.prototype.uj=function(a){var d,c;d=0;for(c=a.length;d<c;d++)a[d].uj()};b.prototype.Il=function(a){var d,c;d=0;for(c=a.length;d<
c;d++)a[d].Il()};b.prototype.zg=function(a){var d,c;d=0;for(c=a.length;d<c;d++)a[d].zg()};b.prototype.Zs=function(a){if(a.$j){var d,c,e=a.d;d=0;for(c=e.length;d<c;++d)e[d].rp();e=this.Ad;d=0;for(c=e.length;d<c;++d)e[d].type===a&&e[d].rp();a.$j=!1}};b.prototype.Nk=function(a,d,c,e){var f,b,k=a?1!==a.md||1!==a.nd:!1;if(d.J)for(a=0,f=d.vg.length;a<f;++a)b=d.vg[a],k||b.ak?Ba(e,b.d):(this.Zs(b),b.gi.Ll(c,e));else k||d.ak?Ba(e,d.d):(this.Zs(d),d.gi.Ll(c,e))};b.prototype.Bn=function(a,d,c,e){var f,b;f=0;
for(b=d.length;f<b;++f)this.Nk(a,d[f],c,e)};b.prototype.Dq=function(a,d,c){var e=this.Ks;e&&this.Bn(a,e.ql,d,c)};b.prototype.bw=function(a,d,c){var e=this.Yq;e&&this.Bn(a,e.ql,d,c)};b.prototype.gy=function(a,d,c){var e=a.ha(),f,b,k,n,g=this.eb().Tb.Xc,m,h,l;if(e.va)for(e.va=!1,O(e.d),f=0,n=a.d.length;f<n;f++)k=a.d[f],k.Aa(),m=k.A.ac(d,c,!0),h=k.A.ac(d,c,!1),k.cc(m,h)?e.d.push(k):g&&e.ca.push(k);else{b=0;l=g?e.ca:e.d;f=0;for(n=l.length;f<n;f++)k=l[f],k.Aa(),m=k.A.ac(d,c,!0),h=k.A.ac(d,c,!1),k.cc(m,
h)&&(g?e.d.push(k):(e.d[b]=e.d[f],b++));l.length=b}a.wd();return e.Gn()};b.prototype.ic=function(a,d){if(!(a&&d&&a!==d&&a.Pc&&d.Pc))return!1;a.Aa();d.Aa();var c=a.A,e=d.A,f,b,k,n,g,m,h,l;if(c===e||c.md===e.md&&e.nd===e.nd&&c.scale===e.scale&&c.j===e.j&&c.Ud===e.Ud){if(!a.Ba.Nq(d.Ba)||!a.oc.Sn(d.oc)||a.Ig&&d.Ig)return!1;if(a.Ig)return this.Os(a,d);if(d.Ig)return this.Os(d,a);h=a.fa&&!a.fa.ng();f=d.fa&&!d.fa.ng();if(!h&&!f)return!0;h?(a.fa.Qf(a.width,a.height,a.j),h=a.fa):(this.Ec.Fg(a.oc,a.x,a.y,a.width,
a.height),h=this.Ec);f?(d.fa.Qf(d.width,d.height,d.j),l=d.fa):(this.Ec.Fg(d.oc,d.x,d.y,d.width,d.height),l=this.Ec);return h.lg(l,d.x-a.x,d.y-a.y)}h=a.fa&&!a.fa.ng();f=d.fa&&!d.fa.ng();h?(a.fa.Qf(a.width,a.height,a.j),this.Ec.Bs(a.fa)):this.Ec.Fg(a.oc,a.x,a.y,a.width,a.height);h=this.Ec;f?(d.fa.Qf(d.width,d.height,d.j),this.ep.Bs(d.fa)):this.ep.Fg(d.oc,d.x,d.y,d.width,d.height);l=this.ep;f=0;for(b=h.Ld;f<b;f++)k=2*f,n=k+1,g=h.xb[k],m=h.xb[n],h.xb[k]=c.fc(g+a.x,m+a.y,!0),h.xb[n]=c.fc(g+a.x,m+a.y,!1);
h.Aa();f=0;for(b=l.Ld;f<b;f++)k=2*f,n=k+1,g=l.xb[k],m=l.xb[n],l.xb[k]=e.fc(g+d.x,m+d.y,!0),l.xb[n]=e.fc(g+d.x,m+d.y,!1);l.Aa();return h.lg(l,0,0)};var T=new wa;new va(0,0,0,0);var N=[];b.prototype.Os=function(a,d){var c,e,f,b,k=d.Ba,n=a.x,g=a.y;a.Xv(k,N);var m=d.fa&&!d.fa.ng();c=0;for(e=N.length;c<e;++c)if(f=N[c],b=f.Ex,k.Oq(b,n,g)&&(T.Ne(b),T.offset(n,g),T.Sn(d.oc)))if(m)if(d.fa.Qf(d.width,d.height,d.j),f.sj){if(f.sj.lg(d.fa,d.x-(n+b.left),d.y-(g+b.top)))return O(N),!0}else{if(this.Ec.Fg(T,0,0,b.right-
b.left,b.bottom-b.top),this.Ec.lg(d.fa,d.x,d.y))return O(N),!0}else if(f.sj){if(this.Ec.Fg(d.oc,0,0,d.width,d.height),f.sj.lg(this.Ec,-(n+b.left),-(g+b.top)))return O(N),!0}else return O(N),!0;O(N);return!1};b.prototype.fp=function(a,d){if(!d||!d.Pc)return!1;d.Aa();if(!d.Ba.Nq(a))return!1;if(d.Ig){d.Xv(a,N);var c,e,f,b,k=d.x,n=d.y;c=0;for(e=N.length;c<e;++c)if(f=N[c],b=f.Ex,a.Oq(b,k,n))if(f.sj){if(this.Ec.Ne(a,0,0),f.sj.lg(this.Ec,-(k+b.left),-(n+b.top)))return O(N),!0}else return O(N),!0;O(N);return!1}T.Ne(a);
if(!d.oc.Sn(T))return!1;if(!d.fa||d.fa.ng())return!0;d.fa.Qf(d.width,d.height,d.j);T.offset(-a.left,-a.top);this.Ec.Fg(T,0,0,1,1);return d.fa.lg(this.Ec,a.left-d.x,a.top-d.y)};b.prototype.lp=function(a,d){if(!d)return!1;var c,e,f,b,k;c=0;for(e=a.Oa.length;c<e;c++)if(a.Oa[c].behavior instanceof d)return!0;if(!a.J)for(c=0,e=a.Ma.length;c<e;c++)for(k=a.Ma[c],f=0,b=k.Oa.length;f<b;f++)if(k.Oa[f].behavior instanceof d)return!0;return!1};b.prototype.mp=function(a){return this.lp(a,fc.$y)};b.prototype.np=
function(a){return this.lp(a,fc.az)};var A=[];b.prototype.Va=function(a){var d,c,e;a.Aa();this.Dq(a.A,a.Ba,A);d=0;for(c=A.length;d<c;++d)if(e=A[d],e.H.solidEnabled&&this.ic(a,e))return O(A),e;O(A);return null};b.prototype.hy=function(a){var d,c,e;this.Dq(null,a,A);d=0;for(c=A.length;d<c;++d)if(e=A[d],e.H.solidEnabled&&this.fp(a,e))return O(A),e;O(A);return null};var P=[];b.prototype.If=function(a,d){var c=null;d&&(c=P,O(c));a.Aa();this.bw(a.A,a.Ba,A);var e,f,b;e=0;for(f=A.length;e<f;++e)if(b=A[e],
b.H.jumpthruEnabled&&this.ic(a,b))if(d)c.push(b);else return O(A),b;O(A);return c};b.prototype.Nc=function(a,d,c,e,f,b){e=e||50;var k=a.x,n=a.y,g,m=null,h=null;for(g=0;g<e;g++)if(a.x=k+d*g,a.y=n+c*g,a.C(),!this.ic(a,m)&&((m=this.Va(a))&&(h=m),!m&&(f&&(b?m=this.ic(a,b)?b:null:m=this.If(a),m&&(h=m)),!m)))return h&&this.Kl(a,d,c,h),!0;a.x=k;a.y=n;a.C();return!1};b.prototype.Go=function(a,d,c,e){e=e||50;var f=a.x,b=a.y,k=null,n=null,g,m,h;for(g=0;g<e;++g)for(m=0;2>m;++m)if(h=2*m-1,a.x=f+d*g*h,a.y=b+c*
g*h,a.C(),!this.ic(a,k))if(k=this.Va(a))n=k;else return n&&this.Kl(a,d*h,c*h,n),!0;a.x=f;a.y=b;a.C();return!1};b.prototype.Kl=function(a,d,c,e){var f=2,b,k=!1;b=!1;for(var n=a.x,g=a.y;16>=f;)b=1/f,f*=2,a.x+=d*b*(k?1:-1),a.y+=c*b*(k?1:-1),a.C(),this.ic(a,e)?b=k=!0:(b=k=!1,n=a.x,g=a.y);b&&(a.x=n,a.y=g,a.C())};b.prototype.Ho=function(a,d){var c=ka(d)?100:d,e=0,f=a.x,b=a.y,k=0,n=0,g=0,m=this.Va(a);if(!m)return!0;for(;e<=c;){switch(k){case 0:n=0;g=-1;e++;break;case 1:n=1;g=-1;break;case 2:n=1;g=0;break;
case 3:g=n=1;break;case 4:n=0;g=1;break;case 5:n=-1;g=1;break;case 6:n=-1;g=0;break;case 7:g=n=-1}k=(k+1)%8;a.x=M(f+n*e);a.y=M(b+g*e);a.C();if(!this.ic(a,m)&&(m=this.Va(a),!m))return!0}a.x=f;a.y=b;a.C();return!1};b.prototype.Yc=function(a,d){a.Pc&&d.Pc&&this.Dg.push([a,d])};b.prototype.lu=function(a,d,c){var e,f,b;e=0;for(f=this.Dg.length;e<f;++e){b=this.Dg[e];if(b[0]===a)b=b[1];else if(b[1]===a)b=b[0];else continue;if(d.J){if(-1===d.vg.indexOf(d))continue}else if(b.type!==d)continue;-1===c.indexOf(b)&&
c.push(b)}};b.prototype.xu=function(a,d){var c,e,f;c=0;for(e=this.Dg.length;c<e;c++)if(f=this.Dg[c],f[0]===a&&f[1]===d||f[0]===d&&f[1]===a)return!0;return!1};b.prototype.vu=function(a,d,c){var e=a.x,f=a.y,b=pa(10,Ra(d,c,e,f)),k=Ma(d,c,e,f),n=this.Va(a);if(!n)return X(k+sa);var g=n,m,h,l,q,u=V(5);for(m=1;36>m;m++)if(h=k-m*u,a.x=d+Math.cos(h)*b,a.y=c+Math.sin(h)*b,a.C(),!this.ic(a,g)&&(g=this.Va(a),!g)){l=h;break}36===m&&(l=X(k+sa));g=n;for(m=1;36>m;m++)if(h=k+m*u,a.x=d+Math.cos(h)*b,a.y=c+Math.sin(h)*
b,a.C(),!this.ic(a,g)&&(g=this.Va(a),!g)){q=h;break}36===m&&(q=X(k+sa));a.x=e;a.y=f;a.C();if(q===l)return q;a=Na(q,l)/2;a=Pa(q,l)?X(l+a+sa):X(q+a);l=Math.cos(k);k=Math.sin(k);q=Math.cos(a);a=Math.sin(a);d=l*q+k*a;return Ma(0,0,l-2*d*q,k-2*d*a)};var ha=-1;b.prototype.trigger=function(a,d,c){if(!this.ua)return!1;var e=this.ua.Yf;if(!e)return!1;var f=!1,b,k,n;ha++;var g=e.$m;k=0;for(n=g.length;k<n;++k)b=this.Ts(a,d,g[k],c),f=f||b;b=this.Ts(a,d,e,c);ha--;return f||b};b.prototype.Ts=function(a,d,c,e){var f=
!1,b,k,n,g;if(d)for(n=this.jp(a,d,d.type.name,c,e),f=f||n,g=d.type.Ma,b=0,k=g.length;b<k;++b)n=this.jp(a,d,g[b].name,c,e),f=f||n;else n=this.jp(a,d,"system",c,e),f=f||n;return f};b.prototype.jp=function(a,d,c,e,f){var b,k=!1,n=!1,n="undefined"!==typeof f,g=(n?e.pq:e.Us)[c];if(!g)return k;var m=null;e=0;for(b=g.length;e<b;++e)if(g[e].method==a){m=g[e].pi;break}if(!m)return k;var h;n?h=m[f]:h=m;if(!h)return null;e=0;for(b=h.length;e<b;e++)a=h[e][0],f=h[e][1],n=this.Nv(d,c,a,f),k=k||n;return k};b.prototype.Nv=
function(a,d,c,e){var f,b,k=!1;this.kp++;var n=this.eb().Tb;n&&this.uj(n.Hf);var g=1<this.kp;this.uj(c.Hf);g&&this.Cx();var m=this.Jl(c);m.Tb=c;a&&(f=this.types[d].ha(),f.va=!1,O(f.d),f.d[0]=a,this.types[d].wd());a=!0;if(c.parent){d=m.Ns;for(f=c.parent;f;)d.push(f),f=f.parent;d.reverse();f=0;for(b=d.length;f<b;f++)if(!d[f].Px()){a=!1;break}}a&&(this.$f++,c.Xc?c.Ox(e):c.ib(),k=k||m.qg);this.Dl();g&&this.vx();this.zg(c.Hf);n&&this.zg(n.Hf);this.qf&&0===this.Ed&&0===ha&&!this.Xn&&this.Rb();this.kp--;
return k};b.prototype.Ok=function(){var a=this.eb();return a.Tb.yb[a.kb]};b.prototype.Ew=function(){return 0===this.eb().kb};b.prototype.Yv=function(){var a=this.eb();return a.Tb.bd[a.nc]};b.prototype.Cx=function(){this.kl++;this.kl>=this.qo.length&&this.qo.push([])};b.prototype.vx=function(){this.kl--};b.prototype.yq=function(){return this.qo[this.kl]};b.prototype.Jl=function(a){this.zk++;this.zk>=this.jn.length&&this.jn.push(new Rb);var d=this.eb();d.reset(a);return d};b.prototype.Dl=function(){this.zk--};
b.prototype.eb=function(){return this.jn[this.zk]};b.prototype.zq=function(a,d){for(var c,e,f,b,k,n;d;){c=0;for(e=d.rd.length;c<e;c++)if(n=d.rd[c],n instanceof Sb&&ib(a,n.name))return n;d=d.parent}c=0;for(e=this.te.length;c<e;c++)for(k=this.te[c],f=0,b=k.of.length;f<b;f++)if(n=k.of[f],n instanceof Sb&&ib(a,n.name))return n;return null};b.prototype.Bq=function(a){var d,c;d=0;for(c=this.Fd.length;d<c;d++)if(this.Fd[d].aa===a)return this.Fd[d];return null};b.prototype.fh=function(a){var d,c;d=0;for(c=
this.F.length;d<c;d++)if(this.F[d].aa===a)return this.F[d];return null};b.prototype.Zv=function(a){var d,c;d=0;for(c=this.Rg.length;d<c;d++)if(this.Rg[d].aa===a)return this.Rg[d];return null};b.prototype.Fu=function(a,d){this.Fj=[a,d];this.wa=!0};b.prototype.xw=function(){var a=this,d=this.Ro,e=this.Ae,f=this.fl,b=!1;this.Gs&&(b=!0,d="__c2_continuouspreview",this.Gs=!1);if(d.length){this.Rb();e=this.Tx();if(p()&&!this.Cd)g(d,e,function(){ga("Saved state to IndexedDB storage ("+e.length+" bytes)");
a.Ae=e;a.trigger(Y.prototype.k.Em,null);e=a.Ae="";b&&c()},function(f){try{localStorage.setItem("__c2save_"+d,e),ga("Saved state to WebStorage ("+e.length+" bytes)"),a.Ae=e,a.trigger(Y.prototype.k.Em,null),e=a.Ae="",b&&c()}catch(k){ga("Failed to save game state: "+f+"; "+k),a.trigger(Y.prototype.k.Hp,null)}});else try{localStorage.setItem("__c2save_"+d,e),ga("Saved state to WebStorage ("+e.length+" bytes)"),a.Ae=e,this.trigger(Y.prototype.k.Em,null),e=a.Ae="",b&&c()}catch(k){ga("Error saving to WebStorage: "+
k),a.trigger(Y.prototype.k.Hp,null)}this.fl=this.Ro="";this.sb=null}if(f.length){if(p()&&!this.Cd)q(f,function(d){d?(a.sb=d,ga("Loaded state from IndexedDB storage ("+a.sb.length+" bytes)")):(a.sb=localStorage.getItem("__c2save_"+f)||"",ga("Loaded state from WebStorage ("+a.sb.length+" bytes)"));a.Gj=!1;a.sb||(a.sb=null,a.trigger(Y.prototype.k.Wj,null))},function(){a.sb=localStorage.getItem("__c2save_"+f)||"";ga("Loaded state from WebStorage ("+a.sb.length+" bytes)");a.Gj=!1;a.sb||(a.sb=null,a.trigger(Y.prototype.k.Wj,
null))});else{try{this.sb=localStorage.getItem("__c2save_"+f)||"",ga("Loaded state from WebStorage ("+this.sb.length+" bytes)")}catch(n){this.sb=null}this.Gj=!1;a.sb||(a.sb=null,a.trigger(Y.prototype.k.Wj,null))}this.Ro=this.fl=""}null!==this.sb&&(this.Rb(),this.Qw(this.sb)?(this.Ae=this.sb,this.trigger(Y.prototype.k.Ut,null),this.Ae=""):a.trigger(Y.prototype.k.Wj,null),this.sb=null)};b.prototype.Tx=function(){var d,c,e,f,b,k,n,g={c2save:!0,version:1,rt:{time:this.ob.da,walltime:this.Xe.da,timescale:this.Jg,
tickcount:this.Jf,execcount:this.$f,next_uid:this.ij,running_layout:this.ua.aa,start_time_offset:Date.now()-this.gm},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};d=0;for(c=this.F.length;d<c;d++)if(b=this.F[d],!b.J&&!this.mp(b)){k={instances:[]};Ta(b.H)&&(k.ex=a(b.H));e=0;for(f=b.d.length;e<f;e++)k.instances.push(this.Qo(b.d[e]));g.types[b.aa.toString()]=k}d=0;for(c=this.Fd.length;d<c;d++)e=this.Fd[d],g.layouts[e.aa.toString()]=e.Ya();f=g.events.groups;d=0;for(c=this.Rg.length;d<
c;d++)e=this.Rg[d],f[e.aa.toString()]=this.gh[e.yi].fg;c=g.events.cnds;for(n in this.jf)this.jf.hasOwnProperty(n)&&(d=this.jf[n],Ta(d.H)&&(c[n]={ex:a(d.H)}));c=g.events.acts;for(n in this.ef)this.ef.hasOwnProperty(n)&&(d=this.ef[n],Ta(d.H)&&(c[n]={ex:a(d.H)}));c=g.events.vars;for(n in this.Yh)this.Yh.hasOwnProperty(n)&&(d=this.Yh[n],d.Yk||d.parent&&!d.Mi||(c[n]=d.data));g.system=this.je.Ya();return JSON.stringify(g)};b.prototype.ps=function(){var a,d,c,e,f,b;this.De={};a=0;for(d=this.F.length;a<d;a++)if(c=
this.F[a],!c.J)for(e=0,f=c.d.length;e<f;e++)b=c.d[e],this.De[b.uid.toString()]=b};b.prototype.Qw=function(a){var d;try{d=JSON.parse(a)}catch(c){return!1}if(!d.c2save||1<d.version)return!1;this.Hi=!0;a=d.rt;this.ob.reset();this.ob.da=a.time;this.Xe.reset();this.Xe.da=a.walltime||0;this.Jg=a.timescale;this.Jf=a.tickcount;this.$f=a.execcount;this.gm=Date.now()-a.start_time_offset;var e=a.running_layout;if(e!==this.ua.aa)if(e=this.Bq(e))this.kq(e);else return;var f,b,k,n,g,m,h;m=d.types;for(b in m)if(m.hasOwnProperty(b)&&
(n=this.fh(parseInt(b,10)))&&!n.J&&!this.mp(n)){m[b].ex?n.H=m[b].ex:Ua(n.H);g=n.d;k=m[b].instances;e=0;for(f=ra(g.length,k.length);e<f;e++)this.gl(g[e],k[e]);e=k.length;for(f=g.length;e<f;e++)this.$e(g[e]);e=g.length;for(f=k.length;e<f;e++){g=null;if(n.Ja.tf&&(g=this.ua.Pk(k[e].w.l),!g))continue;g=this.lf(n.fd,g,!1,0,0,!0);this.gl(g,k[e])}n.Uh=!0}this.Rb();this.ps();f=d.layouts;for(b in f)f.hasOwnProperty(b)&&(e=this.Bq(parseInt(b,10)))&&e.rb(f[b]);f=d.events.groups;for(b in f)f.hasOwnProperty(b)&&
(e=this.Zv(parseInt(b,10)))&&this.gh[e.yi]&&this.gh[e.yi].Vl(f[b]);e=d.events.cnds;for(b in this.jf)this.jf.hasOwnProperty(b)&&(e.hasOwnProperty(b)?this.jf[b].H=e[b].ex:this.jf[b].H={});e=d.events.acts;for(b in this.ef)this.ef.hasOwnProperty(b)&&(e.hasOwnProperty(b)?this.ef[b].H=e[b].ex:this.ef[b].H={});e=d.events.vars;for(b in e)e.hasOwnProperty(b)&&this.Yh.hasOwnProperty(b)&&(this.Yh[b].data=e[b]);this.ij=a.next_uid;this.Hi=!1;e=0;for(f=this.Fk.length;e<f;++e)g=this.Fk[e],this.trigger(Object.getPrototypeOf(g.type.Ja).k.Uj,
g);O(this.Fk);this.je.rb(d.system);e=0;for(f=this.F.length;e<f;e++)if(n=this.F[e],!n.J&&!this.mp(n))for(d=0,b=n.d.length;d<b;d++){g=n.d[d];if(n.tc)for(m=g.xi(),O(g.siblings),a=0,k=n.Hc.length;a<k;a++)h=n.Hc[a],n!==h&&g.siblings.push(h.d[m]);g.cd&&g.cd();if(g.P)for(a=0,k=g.P.length;a<k;a++)m=g.P[a],m.cd&&m.cd()}return this.wa=!0};b.prototype.Qo=function(d,c){var e,f,b,k,n;k=d.type;b=k.Ja;var g={};c?g.c2=!0:g.uid=d.uid;Ta(d.H)&&(g.ex=a(d.H));if(d.nb&&d.nb.length)for(g.ivs={},e=0,f=d.nb.length;e<f;e++)g.ivs[d.type.Rn[e].toString()]=
d.nb[e];if(b.tf){b={x:d.x,y:d.y,w:d.width,h:d.height,l:d.A.aa,zi:d.$d()};0!==d.j&&(b.a=d.j);1!==d.opacity&&(b.o=d.opacity);.5!==d.qc&&(b.hX=d.qc);.5!==d.rc&&(b.hY=d.rc);0!==d.Sb&&(b.bm=d.Sb);d.visible||(b.v=d.visible);d.Pc||(b.ce=d.Pc);-1!==d.hj&&(b.mts=d.hj);if(k.V.length)for(b.fx=[],e=0,f=k.V.length;e<f;e++)n=k.V[e],b.fx.push({name:n.name,active:d.df[n.index],params:d.Qa[n.index]});g.w=b}if(d.P&&d.P.length)for(g.behs={},e=0,f=d.P.length;e<f;e++)k=d.P[e],k.Ya&&(g.behs[k.type.aa.toString()]=k.Ya());
d.Ya&&(g.data=d.Ya());return g};b.prototype.aw=function(a,d){var c,e;c=0;for(e=a.Rn.length;c<e;c++)if(a.Rn[c]===d)return c;return-1};b.prototype.Wv=function(a,d){var c,e;c=0;for(e=a.P.length;c<e;c++)if(a.P[c].type.aa===d)return c;return-1};b.prototype.gl=function(a,d,c){var e,f,b,k,n;n=a.type;var g=n.Ja;if(c){if(!d.c2)return}else a.uid=d.uid;d.ex?a.H=d.ex:Ua(a.H);if(f=d.ivs)for(e in f)f.hasOwnProperty(e)&&(b=this.aw(n,parseInt(e,10)),0>b||b>=a.nb.length||(k=f[e],null===k&&(k=NaN),a.nb[b]=k));if(g.tf){b=
d.w;a.A.aa!==b.l&&(f=a.A,a.A=this.ua.Pk(b.l),a.A?(f.Ph(a,!0),a.A.di(a,!0),a.C(),a.A.Aj(0)):(a.A=f,c||this.$e(a)));a.x=b.x;a.y=b.y;a.width=b.w;a.height=b.h;a.Td=b.zi;a.j=b.hasOwnProperty("a")?b.a:0;a.opacity=b.hasOwnProperty("o")?b.o:1;a.qc=b.hasOwnProperty("hX")?b.hX:.5;a.rc=b.hasOwnProperty("hY")?b.hY:.5;a.visible=b.hasOwnProperty("v")?b.v:!0;a.Pc=b.hasOwnProperty("ce")?b.ce:!0;a.hj=b.hasOwnProperty("mts")?b.mts:-1;a.Sb=b.hasOwnProperty("bm")?b.bm:0;a.hi=fb(a.Sb);this.G&&gb(a,a.Sb,this.G);a.C();
if(b.hasOwnProperty("fx"))for(c=0,f=b.fx.length;c<f;c++)k=n.vn(b.fx[c].name),0>k||(a.df[k]=b.fx[c].active,a.Qa[k]=b.fx[c].params);a.Rd()}if(n=d.behs)for(e in n)n.hasOwnProperty(e)&&(c=this.Wv(a,parseInt(e,10)),0>c||a.P[c].rb(n[e]));d.data&&a.rb(d.data)};b.prototype.qq=function(a,d,c){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+"www/"+a,function(a){a.file(d,c)},c)};b.prototype.Ov=function(a,d){this.qq("data.js",function(c){var e=new FileReader;e.onload=function(d){a(d.target.result)};
e.onerror=d;e.readAsText(c)},d)};var fa=[],E=0;b.prototype.uo=function(){if(fa.length&&!(8<=E)){E++;var a=fa.shift();this.Iu(a.filename,a.fy,a.jv)}};b.prototype.rq=function(a,d,c){var e=this;fa.push({filename:a,fy:function(a){E--;e.uo();d(a)},jv:function(a){E--;e.uo();c(a)}});this.uo()};b.prototype.Iu=function(a,d,c){this.qq(a,function(a){var c=new FileReader;c.onload=function(a){d(a.target.result)};c.readAsArrayBuffer(a)},c)};b.prototype.Pv=function(a,d,c){var e="",f=a.toLowerCase(),b=f.substr(f.length-
4),f=f.substr(f.length-5);".mp4"===b?e="video/mp4":".webm"===f?e="video/webm":".m4a"===b?e="audio/mp4":".mp3"===b&&(e="audio/mpeg");this.rq(a,function(a){a=URL.createObjectURL(new Blob([a],{type:e}));d(a)},c)};b.prototype.Pq=function(a){return/^(?:[a-z]+:)?\/\//.test(a)||"data:"===a.substr(0,5)||"blob:"===a.substr(0,5)};b.prototype.ys=function(a,d){this.Xk&&!this.Pq(d)?this.Pv(d,function(d){a.src=d},function(a){alert("Failed to load image: "+a)}):a.src=d};b.prototype.Tl=function(a,d){"undefined"!==
typeof a.imageSmoothingEnabled?a.imageSmoothingEnabled=d:(a.webkitImageSmoothingEnabled=d,a.mozImageSmoothingEnabled=d,a.msImageSmoothingEnabled=d)};Tb=function(a){return new b(document.getElementById(a))};Ub=function(a,d){return new b({dc:!0,width:a,height:d})};window.cr_createRuntime=Tb;window.cr_createDCRuntime=Ub;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.Km=!0;document.body.appendChild(a);a=new b(a);
window.c2runtime=a;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a};window.createEjectaRuntime=function(){var a=new b(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();
window.cr_getC2Runtime=function(){var b=document.getElementById("c2canvas");return b?b.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(b,h){var p=window.cr_getC2Runtime();p&&p.Fu(b,h)};window.cr_sizeCanvas=function(b,h){if(0!==b&&0!==h){var p=window.cr_getC2Runtime();p&&p.setSize(b,h)}};window.cr_setSuspended=function(b){var h=window.cr_getC2Runtime();h&&h.setSuspended(b)};
(function(){function b(a,c){this.b=a;this.Yf=null;this.scrollX=this.b.ub/2;this.scrollY=this.b.tb/2;this.scale=1;this.j=0;this.bh=!0;this.name=c[0];this.kx=c[1];this.jx=c[2];this.width=c[1];this.height=c[2];this.Ws=c[3];this.Es=c[4];this.aa=c[5];var b=c[6],f,g;this.W=[];this.Ci=[];f=0;for(g=b.length;f<g;f++){var m=new Vb(this,b[f]);m.Lr=f;this.W.push(m)}b=c[7];this.rf=[];f=0;for(g=b.length;f<g;f++){var m=b[f],h=this.b.F[m[1]];h.fd||(h.fd=m);this.rf.push(m);-1===this.Ci.indexOf(h)&&this.Ci.push(h)}this.V=
[];this.ta=[];this.Oe=!0;this.Qa=[];f=0;for(g=c[8].length;f<g;f++)this.V.push({id:c[8][f][0],name:c[8][f][1],jb:-1,od:!1,Na:!0,index:f}),this.Qa.push(c[8][f][2].slice(0));this.Rd();this.wj=new va(0,0,1,1);this.Jo=new va(0,0,1,1);this.Df={}}function h(a,c){return a.Td-c.Td}function p(a,c){this.qb=a;this.b=a.b;this.d=[];this.scale=1;this.j=0;this.pe=!1;this.Te=new va(0,0,0,0);this.Rs=new wa;this.Da=this.ya=this.Ea=this.xa=0;this.Mg=!1;this.Ze=-1;this.Tm=0;this.name=c[0];this.index=c[1];this.aa=c[2];
this.visible=c[3];this.xd=c[4];this.Qd=c[5];this.md=c[6];this.nd=c[7];this.opacity=c[8];this.Jk=c[9];this.$c=c[10];this.Ud=c[11];this.Sb=c[12];this.cv=c[13];this.hi="source-over";this.Eb=this.Ob=0;this.Nb=null;this.Be=l();this.Od=!0;this.zh=new va(0,0,-1,-1);this.Db=new va(0,0,-1,-1);this.$c&&(this.Nb=new eb(this.b.ub,this.b.tb));this.he=!1;var b=c[14],f,g;this.Ls=[];this.Vc=[];this.ki=[];f=0;for(g=b.length;f<g;f++){var m=b[f],h=this.b.F[m[1]];h.fd||(h.fd=m,h.Eu=this.index);this.Vc.push(m);-1===this.qb.Ci.indexOf(h)&&
this.qb.Ci.push(h)}Aa(this.Ls,this.Vc);this.V=[];this.ta=[];this.Oe=!0;this.Qa=[];f=0;for(g=c[15].length;f<g;f++)this.V.push({id:c[15][f][0],name:c[15][f][1],jb:-1,od:!1,Na:!0,index:f}),this.Qa.push(c[15][f][2].slice(0));this.Rd();this.wj=new va(0,0,1,1);this.Jo=new va(0,0,1,1)}function l(){return a.length?a.pop():[]}function g(d){O(d);a.push(d)}b.prototype.Sx=function(a){var c=a.type.aa.toString();this.Df.hasOwnProperty(c)||(this.Df[c]=[]);this.Df[c].push(this.b.Qo(a))};b.prototype.Fq=function(){var a=
this.W[0];return!a.Qd&&1===a.opacity&&!a.Jk&&a.visible};b.prototype.Rd=function(){O(this.ta);this.Oe=!0;var a,c,b;a=0;for(c=this.V.length;a<c;a++)b=this.V[a],b.Na&&(this.ta.push(b),b.od||(this.Oe=!1))};b.prototype.un=function(a){var c,b,f;c=0;for(b=this.V.length;c<b;c++)if(f=this.V[c],f.name===a)return f;return null};var q=[],c=!0;b.prototype.dp=function(){this.Es&&(this.Yf=this.b.kn[this.Es],this.Yf.op());this.b.ua=this;this.width=this.kx;this.height=this.jx;this.scrollX=this.b.ub/2;this.scrollY=
this.b.tb/2;var a,e,b,f,g,m,l;a=0;for(b=this.b.F.length;a<b;a++)if(e=this.b.F[a],!e.J)for(g=e.d,e=0,f=g.length;e<f;e++)if(m=g[e],m.A){var n=m.A.Lr;n>=this.W.length&&(n=this.W.length-1);m.A=this.W[n];-1===m.A.d.indexOf(m)&&m.A.d.push(m);m.A.Mg=!0}if(!c)for(a=0,b=this.W.length;a<b;++a)this.W[a].d.sort(h);O(q);this.tu();a=0;for(b=this.W.length;a<b;a++)m=this.W[a],m.Du(),m.wm();g=!1;if(!this.bh){for(l in this.Df)if(this.Df.hasOwnProperty(l)&&(e=this.b.fh(parseInt(l,10)))&&!e.J&&this.b.np(e)){f=this.Df[l];
a=0;for(b=f.length;a<b;a++){m=null;if(e.Ja.tf&&(m=this.Pk(f[a].w.l),!m))continue;m=this.b.lf(e.fd,m,!1,0,0,!0);this.b.gl(m,f[a]);g=!0;q.push(m)}O(f)}a=0;for(b=this.W.length;a<b;a++)this.W[a].d.sort(h),this.W[a].Mg=!0}g&&(this.b.Rb(),this.b.ps());for(a=0;a<q.length;a++)if(m=q[a],m.type.tc)for(b=m.xi(),e=0,f=m.type.Hc.length;e<f;e++)l=m.type.Hc[e],m.type!==l&&(l.d.length>b?m.siblings.push(l.d[b]):l.fd&&(g=this.b.lf(l.fd,m.A,!0,m.x,m.y,!0),this.b.Rb(),l.um(),m.siblings.push(g),q.push(g)));a=0;for(b=
this.rf.length;a<b;a++)m=this.rf[a],e=this.b.F[m[1]],e.tc||this.b.lf(this.rf[a],null,!0);this.b.Rf=null;this.b.Rb();if(this.b.La&&!this.b.fb)for(a=0,b=this.b.F.length;a<b;a++)l=this.b.F[a],!l.J&&l.d.length&&l.Gl&&l.Gl(this.b.La);if(this.b.Hi)Aa(this.b.Fk,q);else for(a=0,b=q.length;a<b;a++)m=q[a],this.b.trigger(Object.getPrototypeOf(m.type.Ja).k.Uj,m);O(q);this.b.Hi||this.b.trigger(Y.prototype.k.Dp,null);this.bh=!1};b.prototype.Cu=function(){var a,c,b,f,g;c=a=0;for(b=this.rf.length;a<b;a++)f=this.rf[a],
g=this.b.F[f[1]],g.global?g.tc||this.b.lf(f,null,!0):(this.rf[c]=f,c++);za(this.rf,c)};b.prototype.ey=function(){this.b.Hi||this.b.trigger(Y.prototype.k.Tt,null);this.b.Tn=!0;O(this.b.je.Fc);var a,e,b,f,g,m;if(!this.bh)for(a=0,e=this.W.length;a<e;a++)for(this.W[a].qp(),g=this.W[a].d,b=0,f=g.length;b<f;b++)m=g[b],m.type.global||this.b.np(m.type)&&this.Sx(m);a=0;for(e=this.W.length;a<e;a++){g=this.W[a].d;b=0;for(f=g.length;b<f;b++)m=g[b],m.type.global||this.b.$e(m);this.b.Rb();O(g);this.W[a].Mg=!0}a=
0;for(e=this.b.F.length;a<e;a++)if(g=this.b.F[a],!(g.global||g.Ja.tf||g.Ja.$l||g.J)){b=0;for(f=g.d.length;b<f;b++)this.b.$e(g.d[b]);this.b.Rb()}c=!1;this.b.Tn=!1};new va(0,0,0,0);b.prototype.hd=function(a){var c,b=a,f=!1,g=!this.b.Rc;g&&(this.b.el||(this.b.el=document.createElement("canvas"),c=this.b.el,c.width=this.b.N,c.height=this.b.M,this.b.er=c.getContext("2d"),f=!0),c=this.b.el,b=this.b.er,c.width!==this.b.N&&(c.width=this.b.N,f=!0),c.height!==this.b.M&&(c.height=this.b.M,f=!0),f&&this.b.Tl(b,
this.b.Ha));b.globalAlpha=1;b.globalCompositeOperation="source-over";this.b.bq&&!this.Fq()&&b.clearRect(0,0,this.b.N,this.b.M);var m,h,f=0;for(m=this.W.length;f<m;f++)h=this.W[f],h.visible&&0<h.opacity&&11!==h.Sb&&(h.d.length||!h.Qd)?h.hd(b):h.wm();g&&a.drawImage(c,0,0,this.b.width,this.b.height)};b.prototype.Uf=function(a){a.xs(!0);this.b.gb||(this.b.gb=a.Qc(this.b.N,this.b.M,this.b.Ha));if(this.b.gb.Pf!==this.b.N||this.b.gb.Of!==this.b.M)a.deleteTexture(this.b.gb),this.b.gb=a.Qc(this.b.N,this.b.M,
this.b.Ha);a.qd(this.b.gb);this.b.Rc||a.Eg(this.b.N,this.b.M);var c,b;for(c=this.W.length-1;0<=c;--c)b=this.W[c],b.visible&&1===b.opacity&&b.Oe&&0===b.Sb&&(b.d.length||!b.Qd)?b.Uf(a):b.wm();a.xs(!1)};b.prototype.Ub=function(a){var c=0<this.ta.length||this.b.Wh||!this.b.Rc||this.b.Ga;if(c){this.b.gb||(this.b.gb=a.Qc(this.b.N,this.b.M,this.b.Ha));if(this.b.gb.Pf!==this.b.N||this.b.gb.Of!==this.b.M)a.deleteTexture(this.b.gb),this.b.gb=a.Qc(this.b.N,this.b.M,this.b.Ha);a.qd(this.b.gb);this.b.Rc||a.Eg(this.b.N,
this.b.M)}else this.b.gb&&(a.qd(null),a.deleteTexture(this.b.gb),this.b.gb=null);this.b.bq&&!this.Fq()&&a.clear(0,0,0,0);var b,f,g;b=0;for(f=this.W.length;b<f;b++)g=this.W[b],g.visible&&0<g.opacity&&(g.d.length||!g.Qd)?g.Ub(a):g.wm();c&&(0===this.ta.length||1===this.ta.length&&this.b.Rc?(1===this.ta.length?(c=this.ta[0].index,a.Dc(this.ta[0].jb),a.Rh(null,1/this.b.N,1/this.b.M,0,0,1,1,this.scale,this.j,0,0,this.b.N/2,this.b.M/2,this.b.ob.da,this.Qa[c]),a.Hl(this.ta[0].jb)&&(this.b.wa=!0)):a.Dc(0),
this.b.Rc||a.Eg(this.b.width,this.b.height),a.qd(null),a.ws(!1),a.Gf(1),a.Ac(this.b.gb),a.us(),a.ie(),a.Sd(),c=this.b.width/2,b=this.b.height/2,a.Ag(-c,b,c,b,c,-b,-c,-b),a.Ac(null),a.ws(!0)):this.Ko(a,null,null,null))};b.prototype.wi=function(){return 0<this.ta.length||this.b.Wh||!this.b.Rc||this.b.Ga?this.b.gb:null};b.prototype.Cq=function(){var a=this.W[0].Uc(),c,b,f;c=1;for(b=this.W.length;c<b;c++)f=this.W[c],(0!==f.md||0!==f.nd)&&f.Uc()<a&&(a=f.Uc());return a};b.prototype.So=function(a){if(!this.Ws){var c=
1/this.Cq()*this.b.N/2;a>this.width-c&&(a=this.width-c);a<c&&(a=c)}this.scrollX!==a&&(this.scrollX=a,this.b.wa=!0)};b.prototype.To=function(a){if(!this.Ws){var c=1/this.Cq()*this.b.M/2;a>this.height-c&&(a=this.height-c);a<c&&(a=c)}this.scrollY!==a&&(this.scrollY=a,this.b.wa=!0)};b.prototype.tu=function(){this.So(this.scrollX);this.To(this.scrollY)};b.prototype.Ko=function(a,c,b,f){var g=b?b.ta:c?c.ta:this.ta,m=1,h=0,n=0,l=0,q=this.b.N,p=this.b.M;b?(m=b.A.Uc(),h=b.A.Hb(),n=b.A.xa,l=b.A.ya,q=b.A.Ea,
p=b.A.Da):c&&(m=c.Uc(),h=c.Hb(),n=c.xa,l=c.ya,q=c.Ea,p=c.Da);var C=this.b.rn,G,v,t,L,J=0,W=1,T,N,A=this.b.N,P=this.b.M,ha=A/2,fa=P/2,E=c?c.wj:this.wj,r=c?c.Jo:this.Jo,y=0,x=0,I=0,H=0,Q=A,ba=A,K=P,ia=P,ca=t=0;L=b?b.A.Hb():0;if(b){G=0;for(v=g.length;G<v;G++)t+=a.fw(g[G].jb),ca+=a.gw(g[G].jb);H=b.Ba;y=c.fc(H.left,H.top,!0,!0);I=c.fc(H.left,H.top,!1,!0);Q=c.fc(H.right,H.bottom,!0,!0);K=c.fc(H.right,H.bottom,!1,!0);0!==L&&(G=c.fc(H.right,H.top,!0,!0),v=c.fc(H.right,H.top,!1,!0),x=c.fc(H.left,H.bottom,
!0,!0),H=c.fc(H.left,H.bottom,!1,!0),L=Math.min(y,Q,G,x),Q=Math.max(y,Q,G,x),y=L,L=Math.min(I,K,v,H),K=Math.max(I,K,v,H),I=L);y-=t;I-=ca;Q+=t;K+=ca;r.left=y/A;r.top=1-I/P;r.right=Q/A;r.bottom=1-K/P;x=y=M(y);H=I=M(I);ba=Q=ta(Q);ia=K=ta(K);x-=t;H-=ca;ba+=t;ia+=ca;0>y&&(y=0);0>I&&(I=0);Q>A&&(Q=A);K>P&&(K=P);0>x&&(x=0);0>H&&(H=0);ba>A&&(ba=A);ia>P&&(ia=P);E.left=y/A;E.top=1-I/P;E.right=Q/A;E.bottom=1-K/P}else E.left=r.left=0,E.top=r.top=0,E.right=r.right=1,E.bottom=r.bottom=1;ca=b&&(a.tj(g[0].jb)||0!==
t||0!==ca||1!==b.opacity||b.type.Ja.Hr)||c&&!b&&1!==c.opacity;a.us();if(ca){C[J]||(C[J]=a.Qc(A,P,this.b.Ha));if(C[J].Pf!==A||C[J].Of!==P)a.deleteTexture(C[J]),C[J]=a.Qc(A,P,this.b.Ha);a.Dc(0);a.qd(C[J]);N=ia-H;a.clearRect(x,P-H-N,ba-x,N);b?b.Ub(a):(a.Ac(this.b.pb),a.Gf(c.opacity),a.ie(),a.translate(-ha,-fa),a.Sd(),a.Je(y,K,Q,K,Q,I,y,I,E));r.left=r.top=0;r.right=r.bottom=1;b&&(L=E.top,E.top=E.bottom,E.bottom=L);J=1;W=0}a.Gf(1);t=g.length-1;var Ea=a.Fo(g[t].jb)||!c&&!b&&!this.b.Rc;G=L=0;for(v=g.length;G<
v;G++){C[J]||(C[J]=a.Qc(A,P,this.b.Ha));if(C[J].Pf!==A||C[J].Of!==P)a.deleteTexture(C[J]),C[J]=a.Qc(A,P,this.b.Ha);a.Dc(g[G].jb);L=g[G].index;a.Hl(g[G].jb)&&(this.b.wa=!0);0!=G||ca?(a.Rh(f,1/A,1/P,r.left,r.top,r.right,r.bottom,m,h,n,l,(n+q)/2,(l+p)/2,this.b.ob.da,b?b.Qa[L]:c?c.Qa[L]:this.Qa[L]),a.Ac(null),G!==t||Ea?(a.qd(C[J]),N=ia-H,T=P-H-N,a.clearRect(x,T,ba-x,N)):(b?a.Le(b.Ob,b.Eb):c&&a.Le(c.Ob,c.Eb),a.qd(f)),a.Ac(C[W]),a.ie(),a.translate(-ha,-fa),a.Sd(),a.Je(y,K,Q,K,Q,I,y,I,E),G!==t||Ea||a.Ac(null)):
(a.qd(C[J]),N=ia-H,T=P-H-N,a.clearRect(x,T,ba-x,N),b?(b.Cb&&b.Cb.O?(T=b.Cb.O,W=1/T.width,T=1/T.height):(W=1/b.width,T=1/b.height),a.Rh(f,W,T,r.left,r.top,r.right,r.bottom,m,h,n,l,(n+q)/2,(l+p)/2,this.b.ob.da,b.Qa[L]),b.Ub(a)):(a.Rh(f,1/A,1/P,0,0,1,1,m,h,n,l,(n+q)/2,(l+p)/2,this.b.ob.da,c?c.Qa[L]:this.Qa[L]),a.Ac(c?this.b.pb:this.b.gb),a.ie(),a.translate(-ha,-fa),a.Sd(),a.Je(y,K,Q,K,Q,I,y,I,E)),r.left=r.top=0,r.right=r.bottom=1,b&&!Ea&&(L=K,K=I,I=L));J=0===J?1:0;W=0===J?1:0}Ea&&(a.Dc(0),b?a.Le(b.Ob,
b.Eb):c?a.Le(c.Ob,c.Eb):this.b.Rc||(a.Eg(this.b.width,this.b.height),ha=this.b.width/2,fa=this.b.height/2,I=y=0,Q=this.b.width,K=this.b.height),a.qd(f),a.Ac(C[W]),a.ie(),a.translate(-ha,-fa),a.Sd(),b&&1===g.length&&!ca?a.Je(y,I,Q,I,Q,K,y,K,E):a.Je(y,K,Q,K,Q,I,y,I,E),a.Ac(null))};b.prototype.Pk=function(a){var c,b;c=0;for(b=this.W.length;c<b;c++)if(this.W[c].aa===a)return this.W[c];return null};b.prototype.Ya=function(){var a,c,b,f={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.j,w:this.width,
h:this.height,fv:this.bh,persist:this.Df,fx:[],layers:{}};a=0;for(c=this.V.length;a<c;a++)b=this.V[a],f.fx.push({name:b.name,active:b.Na,params:this.Qa[b.index]});a=0;for(c=this.W.length;a<c;a++)b=this.W[a],f.layers[b.aa.toString()]=b.Ya();return f};b.prototype.rb=function(a){var c,b,f,g;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.j=a.a;this.width=a.w;this.height=a.h;this.Df=a.persist;"undefined"!==typeof a.fv&&(this.bh=a.fv);var m=a.fx;c=0;for(b=m.length;c<b;c++)if(f=this.un(m[c].name))f.Na=
m[c].active,this.Qa[f.index]=m[c].params;this.Rd();c=a.layers;for(g in c)c.hasOwnProperty(g)&&(a=this.Pk(parseInt(g,10)))&&a.rb(c[g])};Hb=b;p.prototype.Rd=function(){O(this.ta);this.Oe=!0;var a,c,b;a=0;for(c=this.V.length;a<c;a++)b=this.V[a],b.Na&&(this.ta.push(b),b.od||(this.Oe=!1))};p.prototype.un=function(a){var c,b,f;c=0;for(b=this.V.length;c<b;c++)if(f=this.V[c],f.name===a)return f;return null};p.prototype.Du=function(){var a,c,b,f,g,m;c=a=0;for(b=this.Vc.length;a<b;a++){f=this.Vc[a];g=this.b.F[f[1]];
m=this.b.np(g);g=!0;if(!m||this.qb.bh){f=this.b.lf(f,this,!0);if(!f)continue;q.push(f);f.type.global&&(g=!1,this.ki.push(f.uid))}g&&(this.Vc[c]=this.Vc[a],c++)}this.Vc.length=c;this.b.Rb();!this.b.D&&this.V.length&&(this.Sb=this.cv);this.hi=fb(this.Sb);this.b.G&&gb(this,this.Sb,this.b.G);this.Od=!0};p.prototype.Ph=function(a,c){var b=Ca(this.d,a);0>b||(c&&this.$c&&a.yc&&a.yc.right>=a.yc.left&&(a.Aa(),this.Nb.update(a,a.yc,null),a.yc.set(0,0,-1,-1)),b===this.d.length-1?this.d.pop():(ya(this.d,b),this.Aj(b)),
this.Od=!0)};p.prototype.di=function(a,c){a.Td=this.d.length;this.d.push(a);c&&this.$c&&a.yc&&a.C();this.Od=!0};p.prototype.zx=function(a){this.d.unshift(a);this.Aj(0)};p.prototype.Vw=function(a,c,b){var f=a.$d();c=c.$d();ya(this.d,f);f<c&&c--;b&&c++;c===this.d.length?this.d.push(a):this.d.splice(c,0,a);this.Aj(f<c?f:c)};p.prototype.Aj=function(a){-1===this.Ze?this.Ze=a:a<this.Ze&&(this.Ze=a);this.Od=this.Mg=!0};p.prototype.qp=function(){if(this.Mg){-1===this.Ze&&(this.Ze=0);var a,c,b;if(this.$c)for(a=
this.Ze,c=this.d.length;a<c;++a)b=this.d[a],b.Td=a,this.Nb.Sw(b.yc);else for(a=this.Ze,c=this.d.length;a<c;++a)this.d[a].Td=a;this.Mg=!1;this.Ze=-1}};p.prototype.Uc=function(a){return this.cw()*(this.b.Rc||a?this.b.ei:1)};p.prototype.cw=function(){return(this.scale*this.qb.scale-1)*this.Ud+1};p.prototype.Hb=function(){return this.pe?0:X(this.qb.j+this.j)};var a=[],m=[],v=[];p.prototype.zn=function(){this.qp();this.Nb.Ll(this.xa,this.ya,this.Ea,this.Da,v);if(!v.length)return l();if(1===v.length){var a=
l();Aa(a,v[0]);O(v);return a}for(var c=!0;1<v.length;){for(var a=v,b=void 0,f=void 0,h=void 0,q=void 0,p=void 0,b=0,f=a.length;b<f-1;b+=2){var h=a[b],q=a[b+1],p=l(),n=h,u=q,S=p,R=0,C=0,G=0,z=n.length,t=u.length,L=void 0,J=void 0;for(S.length=z+t;R<z&&C<t;++G)L=n[R],J=u[C],L.Td<J.Td?(S[G]=L,++R):(S[G]=J,++C);for(;R<z;++R,++G)S[G]=n[R];for(;C<t;++C,++G)S[G]=u[C];c||(g(h),g(q));m.push(p)}1===f%2&&(c?(h=l(),Aa(h,a[f-1]),m.push(h)):m.push(a[f-1]));Aa(a,m);O(m);c=!1}a=v[0];O(v);return a};p.prototype.hd=
function(a){this.he=this.Jk||1!==this.opacity||0!==this.Sb;var c=this.b.canvas,b=a,f=!1;this.he&&(this.b.dl||(this.b.dl=document.createElement("canvas"),c=this.b.dl,c.width=this.b.N,c.height=this.b.M,this.b.dr=c.getContext("2d"),f=!0),c=this.b.dl,b=this.b.dr,c.width!==this.b.N&&(c.width=this.b.N,f=!0),c.height!==this.b.M&&(c.height=this.b.M,f=!0),f&&this.b.Tl(b,this.b.Ha),this.Qd&&b.clearRect(0,0,this.b.N,this.b.M));b.globalAlpha=1;b.globalCompositeOperation="source-over";this.Qd||(b.fillStyle="rgb("+
this.xd[0]+","+this.xd[1]+","+this.xd[2]+")",b.fillRect(0,0,this.b.N,this.b.M));b.save();this.pe=!0;var f=this.ac(0,0,!0,!0),m=this.ac(0,0,!1,!0);this.pe=!1;this.b.Jd&&(f=Math.round(f),m=Math.round(m));this.Pl(f,m,b);var h=this.Uc();b.scale(h,h);b.translate(-f,-m);this.$c?(this.Db.left=this.Nb.lc(this.xa),this.Db.top=this.Nb.mc(this.ya),this.Db.right=this.Nb.lc(this.Ea),this.Db.bottom=this.Nb.mc(this.Da),this.Od||!this.Db.oi(this.zh)?(g(this.Be),f=this.zn(),this.Od=!1,this.zh.Ug(this.Db)):f=this.Be):
f=this.d;for(var l,n=null,m=0,h=f.length;m<h;++m)l=f[m],l!==n&&(this.Xu(l,b),n=l);this.$c&&(this.Be=f);b.restore();this.he&&(a.globalCompositeOperation=this.hi,a.globalAlpha=this.opacity,a.drawImage(c,0,0))};p.prototype.Xu=function(a,c){if(a.visible&&0!==a.width&&0!==a.height){a.Aa();var b=a.Ba;b.right<this.xa||b.bottom<this.ya||b.left>this.Ea||b.top>this.Da||(c.globalCompositeOperation=a.hi,a.hd(c))}};p.prototype.wm=function(){this.pe=!0;var a=this.ac(0,0,!0,!0),c=this.ac(0,0,!1,!0);this.pe=!1;this.b.Jd&&
(a=Math.round(a),c=Math.round(c));this.Pl(a,c,null)};p.prototype.Pl=function(a,c,b){var f=this.Uc();this.xa=a;this.ya=c;this.Ea=a+1/f*this.b.N;this.Da=c+1/f*this.b.M;this.xa>this.Ea&&(a=this.xa,this.xa=this.Ea,this.Ea=a);this.ya>this.Da&&(a=this.ya,this.ya=this.Da,this.Da=a);a=this.Hb();0!==a&&(b&&(b.translate(this.b.N/2,this.b.M/2),b.rotate(-a),b.translate(this.b.N/-2,this.b.M/-2)),this.Te.set(this.xa,this.ya,this.Ea,this.Da),this.Te.offset((this.xa+this.Ea)/-2,(this.ya+this.Da)/-2),this.Rs.Cs(this.Te,
a),this.Rs.Up(this.Te),this.Te.offset((this.xa+this.Ea)/2,(this.ya+this.Da)/2),this.xa=this.Te.left,this.ya=this.Te.top,this.Ea=this.Te.right,this.Da=this.Te.bottom)};p.prototype.Uf=function(a){if(this.he=this.Jk){this.b.pb||(this.b.pb=a.Qc(this.b.N,this.b.M,this.b.Ha));if(this.b.pb.Pf!==this.b.N||this.b.pb.Of!==this.b.M)a.deleteTexture(this.b.pb),this.b.pb=a.Qc(this.b.N,this.b.M,this.b.Ha);a.qd(this.b.pb)}this.pe=!0;var c=this.ac(0,0,!0,!0),b=this.ac(0,0,!1,!0);this.pe=!1;this.b.Jd&&(c=Math.round(c),
b=Math.round(b));this.Pl(c,b,null);c=this.Uc();a.ie();a.scale(c,c);a.No(-this.Hb());a.translate((this.xa+this.Ea)/-2,(this.ya+this.Da)/-2);a.Sd();this.$c?(this.Db.left=this.Nb.lc(this.xa),this.Db.top=this.Nb.mc(this.ya),this.Db.right=this.Nb.lc(this.Ea),this.Db.bottom=this.Nb.mc(this.Da),this.Od||!this.Db.oi(this.zh)?(g(this.Be),c=this.zn(),this.Od=!1,this.zh.Ug(this.Db)):c=this.Be):c=this.d;for(var f,m=null,b=c.length-1;0<=b;--b)f=c[b],f!==m&&(this.Zu(c[b],a),m=f);this.$c&&(this.Be=c);this.Qd||(this.Tm=
this.b.Xf++,a.Ul(this.Tm),a.vs(1,1,1),a.vq(),a.Jx())};p.prototype.Ub=function(a){var c=0,b=0;if(this.he=this.Jk||1!==this.opacity||0<this.ta.length||0!==this.Sb){this.b.pb||(this.b.pb=a.Qc(this.b.N,this.b.M,this.b.Ha));if(this.b.pb.Pf!==this.b.N||this.b.pb.Of!==this.b.M)a.deleteTexture(this.b.pb),this.b.pb=a.Qc(this.b.N,this.b.M,this.b.Ha);a.qd(this.b.pb);this.Qd&&a.clear(0,0,0,0)}this.Qd||(this.b.Ga?(a.Ul(this.Tm),a.vs(this.xd[0]/255,this.xd[1]/255,this.xd[2]/255),a.vq(),a.Zx()):a.clear(this.xd[0]/
255,this.xd[1]/255,this.xd[2]/255,1));this.pe=!0;var f=this.ac(0,0,!0,!0),c=this.ac(0,0,!1,!0);this.pe=!1;this.b.Jd&&(f=Math.round(f),c=Math.round(c));this.Pl(f,c,null);f=this.Uc();a.ie();a.scale(f,f);a.No(-this.Hb());a.translate((this.xa+this.Ea)/-2,(this.ya+this.Da)/-2);a.Sd();this.$c?(this.Db.left=this.Nb.lc(this.xa),this.Db.top=this.Nb.mc(this.ya),this.Db.right=this.Nb.lc(this.Ea),this.Db.bottom=this.Nb.mc(this.Da),this.Od||!this.Db.oi(this.zh)?(g(this.Be),c=this.zn(),this.Od=!1,this.zh.Ug(this.Db)):
c=this.Be):c=this.d;var m,h,l=null,b=0;for(m=c.length;b<m;++b)h=c[b],h!==l&&(this.Yu(c[b],a),l=h);this.$c&&(this.Be=c);this.he&&(c=this.ta.length?this.ta[0].jb:0,b=this.ta.length?this.ta[0].index:0,0===this.ta.length||1===this.ta.length&&!a.Fo(c)&&1===this.opacity?(1===this.ta.length?(a.Dc(c),a.Rh(this.qb.wi(),1/this.b.N,1/this.b.M,0,0,1,1,f,this.Hb(),this.xa,this.ya,(this.xa+this.Ea)/2,(this.ya+this.Da)/2,this.b.ob.da,this.Qa[b]),a.Hl(c)&&(this.b.wa=!0)):a.Dc(0),a.qd(this.qb.wi()),a.Gf(this.opacity),
a.Ac(this.b.pb),a.Le(this.Ob,this.Eb),a.ie(),a.Sd(),f=this.b.N/2,c=this.b.M/2,a.Ag(-f,c,f,c,f,-c,-f,-c),a.Ac(null)):this.qb.Ko(a,this,null,this.qb.wi()))};p.prototype.Yu=function(a,c){if(a.visible&&0!==a.width&&0!==a.height){a.Aa();var b=a.Ba;b.right<this.xa||b.bottom<this.ya||b.left>this.Ea||b.top>this.Da||(c.Ul(a.Xf),a.dt?this.$u(a,c):(c.Dc(0),c.Le(a.Ob,a.Eb),a.Ub(c)))}};p.prototype.Zu=function(a,c){if(a.visible&&0!==a.width&&0!==a.height){a.Aa();var b=a.Ba;b.right<this.xa||b.bottom<this.ya||b.left>
this.Ea||b.top>this.Da||(a.Xf=this.b.Xf++,0===a.Sb&&1===a.opacity&&a.Oe&&a.Uf&&(c.Ul(a.Xf),a.Uf(c)))}};p.prototype.$u=function(a,c){var b=a.ta[0].jb,f=a.ta[0].index,g=this.Uc();if(1!==a.ta.length||c.Fo(b)||c.Bx(b)||(a.j||a.A.Hb())&&c.tj(b)||1!==a.opacity||a.type.Ja.Hr)this.qb.Ko(c,this,a,this.he?this.b.pb:this.qb.wi()),c.ie(),c.scale(g,g),c.No(-this.Hb()),c.translate((this.xa+this.Ea)/-2,(this.ya+this.Da)/-2),c.Sd();else{c.Dc(b);c.Le(a.Ob,a.Eb);c.Hl(b)&&(this.b.wa=!0);var m=0,h=0,n=0,l=0;c.tj(b)&&
(l=a.Ba,m=this.fc(l.left,l.top,!0,!0),h=this.fc(l.left,l.top,!1,!0),n=this.fc(l.right,l.bottom,!0,!0),l=this.fc(l.right,l.bottom,!1,!0),m=m/windowWidth,h=1-h/windowHeight,n=n/windowWidth,l=1-l/windowHeight);var q;a.Cb&&a.Cb.O?(q=a.Cb.O,b=1/q.width,q=1/q.height):(b=1/a.width,q=1/a.height);c.Rh(this.he?this.b.pb:this.qb.wi(),b,q,m,h,n,l,g,this.Hb(),this.xa,this.ya,(this.xa+this.Ea)/2,(this.ya+this.Da)/2,this.b.ob.da,a.Qa[f]);a.Ub(c)}};p.prototype.ac=function(a,c,b,f){var g=this.b.devicePixelRatio;this.b.mg&&
(a*=g,c*=g);var g=this.b.Zr,m=this.b.$r,g=(this.qb.scrollX-g)*this.md+g,m=(this.qb.scrollY-m)*this.nd+m,h=g,n=m,l=1/this.Uc(!f);f?(h-=this.b.N*l/2,n-=this.b.M*l/2):(h-=this.b.width*l/2,n-=this.b.height*l/2);h+=a*l;n+=c*l;c=this.Hb();0!==c&&(h-=g,n-=m,a=Math.cos(c),c=Math.sin(c),f=h*a-n*c,n=n*a+h*c,h=f+g,n+=m);return b?h:n};p.prototype.fc=function(a,c,b,f){var g=this.b.Zr,m=this.b.$r,h=(this.qb.scrollX-g)*this.md+g,n=(this.qb.scrollY-m)*this.nd+m,m=h,g=n,l=this.Hb();if(0!==l){a-=h;c-=n;var q=Math.cos(-l),
l=Math.sin(-l),p=a*q-c*l;c=c*q+a*l;a=p+h;c+=n}h=1/this.Uc(!f);f?(m-=this.b.N*h/2,g-=this.b.M*h/2):(m-=this.b.width*h/2,g-=this.b.height*h/2);m=(a-m)/h;g=(c-g)/h;a=this.b.devicePixelRatio;this.b.mg&&!f&&(m/=a,g/=a);return b?m:g};p.prototype.Ya=function(){var a,c,b,f={s:this.scale,a:this.j,vl:this.xa,vt:this.ya,vr:this.Ea,vb:this.Da,v:this.visible,bc:this.xd,t:this.Qd,px:this.md,py:this.nd,o:this.opacity,zr:this.Ud,fx:[],cg:this.ki,instances:[]};a=0;for(c=this.V.length;a<c;a++)b=this.V[a],f.fx.push({name:b.name,
active:b.Na,params:this.Qa[b.index]});return f};p.prototype.rb=function(a){var c,b,f;this.scale=a.s;this.j=a.a;this.xa=a.vl;this.ya=a.vt;this.Ea=a.vr;this.Da=a.vb;this.visible=a.v;this.xd=a.bc;this.Qd=a.t;this.md=a.px;this.nd=a.py;this.opacity=a.o;this.Ud=a.zr;this.ki=a.cg||[];Aa(this.Vc,this.Ls);var g=new da;c=0;for(f=this.ki.length;c<f;++c)g.add(this.ki[c]);b=c=0;for(f=this.Vc.length;c<f;++c)g.contains(this.Vc[c][2])||(this.Vc[b]=this.Vc[c],++b);za(this.Vc,b);b=a.fx;c=0;for(f=b.length;c<f;c++)if(a=
this.un(b[c].name))a.Na=b[c].active,this.Qa[a.index]=b[c].params;this.Rd();this.d.sort(h);this.Mg=!0};Vb=p})();
(function(){function b(a,c){var b,d=a.length;switch(d){case 0:return!0;case 1:return a[0]===c[0];case 2:return a[0]===c[0]&&a[1]===c[1];default:for(b=0;b<d;b++)if(a[b]!==c[b])return!1;return!0}}function h(a,c){return a.index-c.index}function p(a){var c,d,f,e;2===a.length?a[0].index>a[1].index&&(c=a[0],a[0]=a[1],a[1]=c):2<a.length&&a.sort(h);a.length>=D.length&&(D.length=a.length+1);D[a.length]||(D[a.length]=[]);e=D[a.length];c=0;for(d=e.length;c<d;c++)if(f=e[c],b(a,f))return f;e.push(a);return a}
function l(a,c){this.b=a;this.Us={};this.pq={};this.Hn=!1;this.Iq=new da;this.$m=[];this.Gm=[];this.name=c[0];var b=c[1];this.of=[];var d,f;d=0;for(f=b.length;d<f;d++)this.Kq(b[d],null,this.of)}function g(a){this.type=a;this.d=[];this.ca=[];this.va=!0}function q(a,c,b){this.sheet=a;this.parent=c;this.b=a.b;this.Ca=[];this.Hf=[];this.Gq=this.om=this.ip=this.Mn=this.group=this.Js=!1;this.yb=[];this.bd=[];this.rd=[];this.yi="";this.fg=this.Mn=this.group=!1;this.lk=null;b[1]&&(this.yi=b[1][1].toLowerCase(),
this.group=!0,this.Mn=!!b[1][0],this.lk=[],this.fg=this.Mn,this.b.Rg.push(this),this.b.gh[this.yi]=this);this.Xc=b[2];this.aa=b[4];this.group||(this.b.Tp[this.aa.toString()]=this);var d=b[5];a=0;for(c=d.length;a<c;a++){var f=new Wb(this,d[a]);f.index=a;this.yb.push(f);this.Op(f.type)}d=b[6];a=0;for(c=d.length;a<c;a++)f=new Xb(this,d[a]),f.index=a,this.bd.push(f);if(8===b.length)for(b=b[7],a=0,c=b.length;a<c;a++)this.sheet.Kq(b[a],this,this.rd);this.$k=!1;this.yb.length&&(this.$k=null==this.yb[0].type&&
this.yb[0].Fb==Y.prototype.k.tt)}function c(a,c){var b,d,f;if(a&&(-1===c.indexOf(a)&&c.push(a),a.tc))for(b=0,d=a.Hc.length;b<d;b++)f=a.Hc[b],a!==f&&-1===c.indexOf(f)&&c.push(f)}function a(a,c){this.Oc=a;this.sheet=a.sheet;this.b=a.b;this.X=[];this.Ta=[];this.H={};this.index=-1;this.bi=!1;this.Fb=this.b.bf(c[1]);this.trigger=0<c[3];this.oq=2===c[3];this.Hd=c[4];this.Tk=c[5];this.Ow=c[6];this.aa=c[7];this.b.jf[this.aa.toString()]=this;-1===c[0]?(this.type=null,this.ib=this.Po,this.Nf=null,this.yd=-1):
(this.type=this.b.F[c[0]],this.ib=this.Ow?this.Qx:this.Oo,c[2]?(this.Nf=this.type.Mk(c[2]),this.yd=this.type.tn(c[2])):(this.Nf=null,this.yd=-1),this.Oc.parent&&this.Oc.parent.Wl());this.oq&&(this.ib=this.Rx);if(10===c.length){var b,d,f=c[9];b=0;for(d=f.length;b<d;b++){var e=new Yb(this,f[b]);this.X.push(e)}this.Ta.length=f.length}}function m(a,c){this.Oc=a;this.sheet=a.sheet;this.b=a.b;this.X=[];this.Ta=[];this.H={};this.index=-1;this.bi=!1;this.Fb=this.b.bf(c[1]);-1===c[0]?(this.type=null,this.ib=
this.Po,this.Nf=null,this.yd=-1):(this.type=this.b.F[c[0]],this.ib=this.Oo,c[2]?(this.Nf=this.type.Mk(c[2]),this.yd=this.type.tn(c[2])):(this.Nf=null,this.yd=-1));this.aa=c[3];this.b.ef[this.aa.toString()]=this;if(6===c.length){var b,d,f=c[5];b=0;for(d=f.length;b<d;b++){var e=new Yb(this,f[b]);this.X.push(e)}this.Ta.length=f.length}}function v(){B++;F.length===B&&F.push(new Zb);return F[B]}function d(a,c){this.Ia=a;this.Oc=a.Oc;this.sheet=a.sheet;this.b=a.b;this.type=c[0];this.Yd=null;this.Re=0;this.get=
null;this.dq=0;this.qb=null;this.key=0;this.object=null;this.index=0;this.Oj=this.Gg=this.Oj=this.Gg=this.sq=this.Zf=this.Pj=null;this.td=!1;var b,d,f;switch(c[0]){case 0:case 7:this.Yd=new $b(this,c[1]);this.Re=0;this.get=this.lw;break;case 1:this.Yd=new $b(this,c[1]);this.Re=0;this.get=this.mw;break;case 5:this.Yd=new $b(this,c[1]);this.Re=0;this.get=this.rw;break;case 3:case 8:this.dq=c[1];this.get=this.jw;break;case 6:this.qb=this.b.Ah[c[1]];this.get=this.sw;break;case 9:this.key=c[1];this.get=
this.qw;break;case 4:this.object=this.b.F[c[1]];this.get=this.tw;this.Oc.Op(this.object);this.Ia instanceof Xb?this.Oc.Wl():this.Oc.parent&&this.Oc.parent.Wl();break;case 10:this.index=c[1];a.type&&a.type.J?(this.get=this.ow,this.td=!0):this.get=this.pw;break;case 11:this.Pj=c[1];this.Zf=null;this.get=this.kw;break;case 2:case 12:this.sq=c[1];this.get=this.iw;break;case 13:for(this.get=this.uw,this.Gg=[],this.Oj=[],b=1,d=c.length;b<d;b++)f=new Yb(this.Ia,c[b]),this.Gg.push(f),this.Oj.push(0)}}function e(a,
c,b){this.sheet=a;this.parent=c;this.b=a.b;this.Ca=[];this.name=b[1];this.Qj=b[2];this.Ln=b[3];this.Mi=!!b[4];this.Yk=!!b[5];this.aa=b[6];this.b.Yh[this.aa.toString()]=this;this.data=this.Ln;this.parent?(this.ug=this.Mi||this.Yk?-1:this.b.by++,this.b.ou.push(this)):(this.ug=-1,this.b.nu.push(this))}function k(a,c,b){this.sheet=a;this.parent=c;this.b=a.b;this.Ca=[];this.Bi=null;this.Aw=b[1];this.Na=!0}function f(){this.Ns=[];this.reset(null)}var D=[];l.prototype.toString=function(){return this.name};
l.prototype.Kq=function(a,c,b){switch(a[0]){case 0:a=new ac(this,c,a);if(a.Xc)for(b.push(a),b=0,c=a.yb.length;b<c;b++)a.yb[b].trigger&&this.Lq(a,b);else a.Wq()?this.Lq(a,0):b.push(a);break;case 1:a=new Sb(this,c,a);b.push(a);break;case 2:a=new bc(this,c,a),b.push(a)}};l.prototype.Wa=function(){var a,c;a=0;for(c=this.of.length;a<c;a++)this.of[a].Wa(a<c-1&&this.of[a+1].$k)};l.prototype.op=function(){O(this.$m);O(this.Gm);this.Np(this);O(this.Gm)};l.prototype.Np=function(a){var c,b,d,f,e=a.$m,g=a.Gm,
m=this.Iq.Ve();c=0;for(b=m.length;c<b;++c)d=m[c],f=d.Bi,!d.Na||a===f||-1<g.indexOf(f)||(g.push(f),f.Np(a),e.push(f))};l.prototype.ib=function(a){this.b.Jz||(this.Hn=!0,a||(this.b.Xn=!0));var c,b;c=0;for(b=this.of.length;c<b;c++){var d=this.of[c];d.ib();this.b.Sm(d.Ca);this.b.qf&&this.b.Rb()}a||(this.b.Xn=!1)};l.prototype.Lq=function(a,c){a.Xc||this.b.rm.push(a);var b,d,f=a.yb[c],e;f.type?e=f.type.name:e="system";var g=(b=f.oq)?this.pq:this.Us;g[e]||(g[e]=[]);e=g[e];g=f.Fb;if(b){if(f.X.length&&(f=
f.X[0],1===f.type&&2===f.Yd.type)){f=f.Yd.value.toLowerCase();b=0;for(d=e.length;b<d;b++)if(e[b].method==g){b=e[b].pi;b[f]?b[f].push([a,c]):b[f]=[[a,c]];return}b={};b[f]=[[a,c]];e.push({method:g,pi:b})}}else{b=0;for(d=e.length;b<d;b++)if(e[b].method==g){e[b].pi.push([a,c]);return}Z&&g===Z.prototype.k.Pg?e.unshift({method:g,pi:[[a,c]]}):e.push({method:g,pi:[[a,c]]})}};Ib=l;g.prototype.Gn=function(){return this.va?this.type.d.length:this.d.length};g.prototype.Tc=function(){return this.va?this.type.d:
this.d};g.prototype.qj=function(a){a&&(a.b.eb().Tb.Xc?(this.va&&(O(this.d),Aa(this.ca,a.type.d),this.va=!1),a=this.ca.indexOf(a),-1!==a&&(this.d.push(this.ca[a]),this.ca.splice(a,1))):(this.va=!1,O(this.d),this.d[0]=a))};ob=g;window._c2hh_="";q.prototype.Wa=function(a){var c,b=this.parent;if(this.group)for(this.om=!0;b;){if(!b.group){this.om=!1;break}b=b.parent}this.ip=!this.Wq()&&(!this.parent||this.parent.group&&this.parent.om);this.Gq=!!a;this.Hf=this.Ca.slice(0);for(b=this.parent;b;){a=0;for(c=
b.Ca.length;a<c;a++)this.ku(b.Ca[a]);b=b.parent}this.Ca=p(this.Ca);this.Hf=p(this.Hf);a=0;for(c=this.yb.length;a<c;a++)this.yb[a].Wa();a=0;for(c=this.bd.length;a<c;a++)this.bd[a].Wa();a=0;for(c=this.rd.length;a<c;a++)this.rd[a].Wa(a<c-1&&this.rd[a+1].$k)};q.prototype.Vl=function(a){if(this.fg!==!!a){this.fg=!!a;var c;a=0;for(c=this.lk.length;a<c;++a)this.lk[a].Ys();0<c&&this.b.ua.Yf&&this.b.ua.Yf.op()}};q.prototype.Op=function(a){c(a,this.Ca)};q.prototype.ku=function(a){c(a,this.Hf)};q.prototype.Wl=
function(){this.Js=!0;this.parent&&this.parent.Wl()};q.prototype.Wq=function(){return this.yb.length?this.yb[0].trigger:!1};q.prototype.ib=function(){var a,c,b=!1,d=this.b,f=this.b.eb();f.Tb=this;var e=this.yb;this.$k||(f.gn=!1);if(this.Xc){0===e.length&&(b=!0);f.kb=0;for(a=e.length;f.kb<a;f.kb++)c=e[f.kb],c.trigger||(c=c.ib())&&(b=!0);(f.qg=b)&&this.Ql()}else{f.kb=0;for(a=e.length;f.kb<a;f.kb++)if(c=e[f.kb].ib(),!c){f.qg=!1;this.ip&&d.qf&&d.Rb();return}f.qg=!0;this.Ql()}this.gv(f)};q.prototype.gv=
function(a){a.qg&&this.Gq&&(a.gn=!0);this.ip&&this.b.qf&&this.b.Rb()};q.prototype.Ox=function(a){this.b.eb().Tb=this;this.yb[a].ib()&&(this.Ql(),this.b.eb().qg=!0)};q.prototype.Ql=function(){var a=this.b.eb(),c;a.nc=0;for(c=this.bd.length;a.nc<c;a.nc++)if(this.bd[a.nc].ib())return;this.ts()};q.prototype.Lx=function(){var a=this.b.eb(),c;for(c=this.bd.length;a.nc<c;a.nc++)if(this.bd[a.nc].ib())return;this.ts()};q.prototype.ts=function(){if(this.rd.length){var a,c,b,d,f=this.rd.length-1;this.b.Jl(this);
if(this.Js)for(a=0,c=this.rd.length;a<c;a++)b=this.rd[a],(d=!this.om||!this.group&&a<f)&&this.b.Il(b.Ca),b.ib(),d?this.b.zg(b.Ca):this.b.Sm(b.Ca);else for(a=0,c=this.rd.length;a<c;a++)this.rd[a].ib();this.b.Dl()}};q.prototype.Px=function(){var a=this.b.eb();a.Tb=this;var c=!1,b;a.kb=0;for(b=this.yb.length;a.kb<b;a.kb++)if(this.yb[a.kb].ib())c=!0;else if(!this.Xc)return!1;return this.Xc?c:!0};q.prototype.Mx=function(){this.b.$f++;var a=this.b.eb().kb,c=this.b.Jl(this);if(!this.Xc)for(c.kb=a+1,a=this.yb.length;c.kb<
a;c.kb++)if(!this.yb[c.kb].ib()){this.b.Dl();return}this.Ql();this.b.Dl()};q.prototype.Gw=function(a){var c=a.index;if(0===c)return!0;for(--c;0<=c;--c)if(this.yb[c].type===a.type)return!1;return!0};ac=q;a.prototype.Wa=function(){var a,c,b;a=0;for(c=this.X.length;a<c;a++)b=this.X[a],b.Wa(),b.td&&(this.bi=!0)};a.prototype.Rx=function(){return!0};a.prototype.Po=function(){var a,c;a=0;for(c=this.X.length;a<c;a++)this.Ta[a]=this.X[a].get();return Sa(this.Fb.apply(this.b.je,this.Ta),this.Tk)};a.prototype.Qx=
function(){var a,c;a=0;for(c=this.X.length;a<c;a++)this.Ta[a]=this.X[a].get();a=this.Fb.apply(this.Nf?this.Nf:this.type,this.Ta);this.type.wd();return a};a.prototype.Oo=function(){var a,c,b,d,f,e,g,m,k=this.type,h=k.ha(),l=this.Oc.Xc&&!this.trigger;c=0;var q=k.tc,p=k.J,v=k.ue,D=this.yd,F=-1<D,B=this.bi,E=this.X,r=this.Ta,y=this.Tk,x=this.Fb,I;if(B)for(c=0,f=E.length;c<f;++c)e=E[c],e.td||(r[c]=e.get(0));else for(c=0,f=E.length;c<f;++c)r[c]=E[c].get(0);if(h.va){O(h.d);O(h.ca);I=k.d;a=0;for(d=I.length;a<
d;++a){m=I[a];if(B)for(c=0,f=E.length;c<f;++c)e=E[c],e.td&&(r[c]=e.get(a));F?(c=0,p&&(c=m.type.ah[v]),c=x.apply(m.P[D+c],r)):c=x.apply(m,r);(g=Sa(c,y))?h.d.push(m):l&&h.ca.push(m)}k.finish&&k.finish(!0);h.va=!1;k.wd();return h.Gn()}b=0;I=(g=l&&!this.Oc.Gw(this))?h.ca:h.d;var H=!1;a=0;for(d=I.length;a<d;++a){m=I[a];if(B)for(c=0,f=E.length;c<f;++c)e=E[c],e.td&&(r[c]=e.get(a));F?(c=0,p&&(c=m.type.ah[v]),c=x.apply(m.P[D+c],r)):c=x.apply(m,r);if(Sa(c,y))if(H=!0,g){if(h.d.push(m),q)for(c=0,f=m.siblings.length;c<
f;c++)e=m.siblings[c],e.type.ha().d.push(e)}else{I[b]=m;if(q)for(c=0,f=m.siblings.length;c<f;c++)e=m.siblings[c],e.type.ha().d[b]=e;b++}else if(g){I[b]=m;if(q)for(c=0,f=m.siblings.length;c<f;c++)e=m.siblings[c],e.type.ha().ca[b]=e;b++}else if(l&&(h.ca.push(m),q))for(c=0,f=m.siblings.length;c<f;c++)e=m.siblings[c],e.type.ha().ca.push(e)}za(I,b);if(q)for(p=k.Hc,a=0,d=p.length;a<d;a++)m=p[a].ha(),g?za(m.ca,b):za(m.d,b);b=H;if(g&&!H)for(a=0,d=h.d.length;a<d;a++){m=h.d[a];if(B)for(c=0,f=E.length;c<f;c++)e=
E[c],e.td&&(r[c]=e.get(a));c=F?x.apply(m.P[D],r):x.apply(m,r);if(Sa(c,y)){H=!0;break}}k.finish&&k.finish(b||l);return l?H:h.Gn()};Wb=a;m.prototype.Wa=function(){var a,c,b;a=0;for(c=this.X.length;a<c;a++)b=this.X[a],b.Wa(),b.td&&(this.bi=!0)};m.prototype.Po=function(){var a=this.b,c,b,d=this.X,f=this.Ta;c=0;for(b=d.length;c<b;++c)f[c]=d[c].get();return this.Fb.apply(a.je,f)};m.prototype.Oo=function(){var a=this.type,c=this.yd,b=a.ue,d=this.bi,f=this.X,e=this.Ta,g=this.Fb,m=a.ha().Tc(),a=a.J,k=-1<c,
h,l,q,p,v,D;if(d)for(l=0,p=f.length;l<p;++l)v=f[l],v.td||(e[l]=v.get(0));else for(l=0,p=f.length;l<p;++l)e[l]=f[l].get(0);h=0;for(q=m.length;h<q;++h){D=m[h];if(d)for(l=0,p=f.length;l<p;++l)v=f[l],v.td&&(e[l]=v.get(h));k?(l=0,a&&(l=D.type.ah[b]),g.apply(D.P[c+l],e)):g.apply(D,e)}return!1};Xb=m;var F=[],B=-1;d.prototype.Wa=function(){var a,c;if(11===this.type)this.Zf=this.b.zq(this.Pj,this.Oc.parent);else if(13===this.type)for(a=0,c=this.Gg.length;a<c;a++)this.Gg[a].Wa();this.Yd&&this.Yd.Wa()};d.prototype.Tw=
function(a){this.td||!a||a.Ja.$l||(this.td=!0)};d.prototype.As=function(){this.td=!0};d.prototype.lw=function(a){this.Re=a||0;a=v();this.Yd.get(a);B--;return a.data};d.prototype.mw=function(a){this.Re=a||0;a=v();this.Yd.get(a);B--;return w(a.data)?a.data:""};d.prototype.tw=function(){return this.object};d.prototype.jw=function(){return this.dq};d.prototype.rw=function(a){this.Re=a||0;a=v();this.Yd.get(a);B--;return a.zb()?this.b.vi(a.data):this.b.xn(a.data)};d.prototype.sw=function(){return this.qb};
d.prototype.qw=function(){return this.key};d.prototype.pw=function(){return this.index};d.prototype.ow=function(a){a=a||0;var c=this.Ia.type,b=null,b=c.ha(),d=b.Tc();if(d.length)b=d[a%d.length].type;else if(b.ca.length)b=b.ca[a%b.ca.length].type;else if(c.d.length)b=c.d[a%c.d.length].type;else return 0;return this.index+b.Dk[c.ue]};d.prototype.kw=function(){return this.Zf};d.prototype.iw=function(){return this.sq};d.prototype.uw=function(){var a,c;a=0;for(c=this.Gg.length;a<c;a++)this.Oj[a]=this.Gg[a].get();
return this.Oj};Yb=d;e.prototype.Wa=function(){this.Ca=p(this.Ca)};e.prototype.Me=function(a){var c=this.b.yq();this.parent&&!this.Mi&&c?(this.ug>=c.length&&(c.length=this.ug+1),c[this.ug]=a):this.data=a};e.prototype.eg=function(){var a=this.b.yq();return!this.parent||this.Mi||!a||this.Yk?this.data:this.ug>=a.length||"undefined"===typeof a[this.ug]?this.Ln:a[this.ug]};e.prototype.ib=function(){!this.parent||this.Mi||this.Yk||this.Me(this.Ln)};Sb=e;k.prototype.toString=function(){return"include:"+
this.Bi.toString()};k.prototype.Wa=function(){this.Bi=this.b.kn[this.Aw];this.sheet.Iq.add(this);this.Ca=p(this.Ca);for(var a=this.parent;a;)a.group&&a.lk.push(this),a=a.parent;this.Ys()};k.prototype.ib=function(){this.parent&&this.b.uj(this.b.F);this.Bi.Hn||this.Bi.ib(!0);this.parent&&this.b.zg(this.b.F)};k.prototype.Ys=function(){for(var a=this.parent;a;){if(a.group&&!a.fg){this.Na=!1;return}a=a.parent}this.Na=!0};bc=k;f.prototype.reset=function(a){this.Tb=a;this.nc=this.kb=0;O(this.Ns);this.gn=
this.qg=!1};Rb=f})();
(function(){function b(c,a){this.Ia=c;this.b=c.b;this.type=a[0];this.get=[this.Av,this.wv,this.Jv,this.Mv,this.kv,this.Kv,this.Ev,this.tv,this.Dv,this.Iv,this.lv,this.Hv,this.uv,this.Fv,this.Bv,this.Cv,this.xv,this.yv,this.sv,this.Lv,this.Gv,this.zv,this.rv,this.vv][this.type];var b=null;this.Ce=this.X=this.Ta=this.Fb=this.nm=this.second=this.first=this.value=null;this.yd=-1;this.Bd=null;this.et=-1;this.Zf=this.Pj=null;this.Qh=!1;switch(this.type){case 0:case 1:case 2:this.value=a[1];break;case 3:this.first=
new $b(c,a[1]);break;case 18:this.first=new $b(c,a[1]);this.second=new $b(c,a[2]);this.nm=new $b(c,a[3]);break;case 19:this.Fb=this.b.bf(a[1]);this.Fb!==Y.prototype.Ra.random&&this.Fb!==Y.prototype.Ra.yu||this.Ia.As();this.Ta=[];this.X=[];3===a.length?(b=a[2],this.Ta.length=b.length+1):this.Ta.length=1;break;case 20:this.Ce=this.b.F[a[1]];this.yd=-1;this.Fb=this.b.bf(a[2]);this.Qh=a[3];ec.Function&&this.Fb===ec.Function.prototype.Ra.Fy&&this.Ia.As();a[4]?this.Bd=new $b(c,a[4]):this.Bd=null;this.Ta=
[];this.X=[];6===a.length?(b=a[5],this.Ta.length=b.length+1):this.Ta.length=1;break;case 21:this.Ce=this.b.F[a[1]];this.Qh=a[2];a[3]?this.Bd=new $b(c,a[3]):this.Bd=null;this.et=a[4];break;case 22:this.Ce=this.b.F[a[1]];this.Ce.Mk(a[2]);this.yd=this.Ce.tn(a[2]);this.Fb=this.b.bf(a[3]);this.Qh=a[4];a[5]?this.Bd=new $b(c,a[5]):this.Bd=null;this.Ta=[];this.X=[];7===a.length?(b=a[6],this.Ta.length=b.length+1):this.Ta.length=1;break;case 23:this.Pj=a[1],this.Zf=null}this.Ia.Tw(this.Ce);4<=this.type&&17>=
this.type&&(this.first=new $b(c,a[1]),this.second=new $b(c,a[2]));if(b){var g,d;g=0;for(d=b.length;g<d;g++)this.X.push(new $b(c,b[g]))}}function h(){++q;g.length===q&&g.push(new Zb);return g[q]}function p(c,a,b){var g,d;g=0;for(d=c.length;g<d;++g)c[g].get(b),a[g+1]=b.data}function l(c,a){this.type=c||cc.Og;this.data=a||0;this.xg=null;this.type==cc.Og&&(this.data=Math.floor(this.data))}b.prototype.Wa=function(){23===this.type&&(this.Zf=this.Ia.b.zq(this.Pj,this.Ia.Oc.parent));this.first&&this.first.Wa();
this.second&&this.second.Wa();this.nm&&this.nm.Wa();this.Bd&&this.Bd.Wa();if(this.X){var c,a;c=0;for(a=this.X.length;c<a;c++)this.X[c].Wa()}};var g=[],q=-1;b.prototype.Lv=function(c){var a=this.X,b=this.Ta;b[0]=c;c=h();p(a,b,c);--q;this.Fb.apply(this.b.je,b)};b.prototype.Gv=function(c){var a=this.Ce,b=this.Ta,g=this.X,d=this.Bd,e=this.Fb,k=this.Ia.Re,f=a.ha(),l=f.Tc();if(!l.length)if(f.ca.length)l=f.ca;else{this.Qh?c.Bc(""):c.Ka(0);return}b[0]=c;c.xg=a;c=h();p(g,b,c);d&&(d.get(c),c.zb()&&(k=c.data,
l=a.d));--q;a=l.length;if(k>=a||k<=-a)k%=a;0>k&&(k+=a);e.apply(l[k],b)};b.prototype.rv=function(c){var a=this.Ce,b=this.Ta,g=this.X,d=this.Bd,e=this.yd,k=this.Fb,f=this.Ia.Re,l=a.ha(),F=l.Tc();if(!F.length)if(l.ca.length)F=l.ca;else{this.Qh?c.Bc(""):c.Ka(0);return}b[0]=c;c.xg=a;c=h();p(g,b,c);d&&(d.get(c),c.zb()&&(f=c.data,F=a.d));--q;g=F.length;if(f>=g||f<=-g)f%=g;0>f&&(f+=g);f=F[f];F=0;a.J&&(F=f.type.ah[a.ue]);k.apply(f.P[e+F],b)};b.prototype.zv=function(c){var a=this.Bd,b=this.Ce,g=this.et,d=this.Ia.Re,
e=b.ha(),k=e.Tc();if(!k.length)if(e.ca.length)k=e.ca;else{this.Qh?c.Bc(""):c.Ka(0);return}if(a){e=h();a.get(e);if(e.zb()){d=e.data;k=b.d;0!==k.length&&(d%=k.length,0>d&&(d+=k.length));d=b.wn(d);b=d.nb[g];w(b)?c.Bc(b):c.S(b);--q;return}--q}a=k.length;if(d>=a||d<=-a)d%=a;0>d&&(d+=a);d=k[d];k=0;b.J&&(k=d.type.Dk[b.ue]);b=d.nb[g+k];w(b)?c.Bc(b):c.S(b)};b.prototype.Av=function(c){c.type=cc.Og;c.data=this.value};b.prototype.wv=function(c){c.type=cc.Ng;c.data=this.value};b.prototype.Jv=function(c){c.type=
cc.String;c.data=this.value};b.prototype.Mv=function(c){this.first.get(c);c.zb()&&(c.data=-c.data)};b.prototype.kv=function(c){this.first.get(c);var a=h();this.second.get(a);c.zb()&&a.zb()&&(c.data+=a.data,a.oh()&&c.Dh());--q};b.prototype.Kv=function(c){this.first.get(c);var a=h();this.second.get(a);c.zb()&&a.zb()&&(c.data-=a.data,a.oh()&&c.Dh());--q};b.prototype.Ev=function(c){this.first.get(c);var a=h();this.second.get(a);c.zb()&&a.zb()&&(c.data*=a.data,a.oh()&&c.Dh());--q};b.prototype.tv=function(c){this.first.get(c);
var a=h();this.second.get(a);c.zb()&&a.zb()&&(c.data/=a.data,c.Dh());--q};b.prototype.Dv=function(c){this.first.get(c);var a=h();this.second.get(a);c.zb()&&a.zb()&&(c.data%=a.data,a.oh()&&c.Dh());--q};b.prototype.Iv=function(c){this.first.get(c);var a=h();this.second.get(a);c.zb()&&a.zb()&&(c.data=Math.pow(c.data,a.data),a.oh()&&c.Dh());--q};b.prototype.lv=function(c){this.first.get(c);var a=h();this.second.get(a);a.rh()||c.rh()?this.ov(c,a):this.nv(c,a);--q};b.prototype.ov=function(c,a){c.rh()&&
a.rh()?this.qv(c,a):this.pv(c,a)};b.prototype.qv=function(c,a){c.data+=a.data};b.prototype.pv=function(c,a){c.rh()?c.data+=(Math.round(1E10*a.data)/1E10).toString():c.Bc(c.data.toString()+a.data)};b.prototype.nv=function(c,a){c.Ka(c.data&&a.data?1:0)};b.prototype.Hv=function(c){this.first.get(c);var a=h();this.second.get(a);c.zb()&&a.zb()&&(c.data||a.data?c.Ka(1):c.Ka(0));--q};b.prototype.sv=function(c){this.first.get(c);c.data?this.second.get(c):this.nm.get(c)};b.prototype.uv=function(c){this.first.get(c);
var a=h();this.second.get(a);c.Ka(c.data===a.data?1:0);--q};b.prototype.Fv=function(c){this.first.get(c);var a=h();this.second.get(a);c.Ka(c.data!==a.data?1:0);--q};b.prototype.Bv=function(c){this.first.get(c);var a=h();this.second.get(a);c.Ka(c.data<a.data?1:0);--q};b.prototype.Cv=function(c){this.first.get(c);var a=h();this.second.get(a);c.Ka(c.data<=a.data?1:0);--q};b.prototype.xv=function(c){this.first.get(c);var a=h();this.second.get(a);c.Ka(c.data>a.data?1:0);--q};b.prototype.yv=function(c){this.first.get(c);
var a=h();this.second.get(a);c.Ka(c.data>=a.data?1:0);--q};b.prototype.vv=function(c){var a=this.Zf.eg();la(a)?c.S(a):c.Bc(a)};$b=b;l.prototype.oh=function(){return this.type===cc.Ng};l.prototype.zb=function(){return this.type===cc.Og||this.type===cc.Ng};l.prototype.rh=function(){return this.type===cc.String};l.prototype.Dh=function(){this.oh()||(this.rh()&&(this.data=parseFloat(this.data)),this.type=cc.Ng)};l.prototype.Ka=function(c){this.type=cc.Og;this.data=Math.floor(c)};l.prototype.S=function(c){this.type=
cc.Ng;this.data=c};l.prototype.Bc=function(c){this.type=cc.String;this.data=c};l.prototype.$x=function(c){la(c)?(this.type=cc.Ng,this.data=c):w(c)?(this.type=cc.String,this.data=c.toString()):(this.type=cc.Og,this.data=0)};Zb=l;cc={Og:0,Ng:1,String:2}})();function Y(b){this.b=b;this.Fc=[]}
Y.prototype.Ya=function(){var b={},h,p,l,g,q,c,a,m;b.waits=[];var v=b.waits,d;h=0;for(p=this.Fc.length;h<p;h++){c=this.Fc[h];d={t:c.time,st:c.Hs,s:c.bp,ev:c.Zg.aa,sm:[],sols:{}};c.Zg.bd[c.nc]&&(d.act=c.Zg.bd[c.nc].aa);l=0;for(g=c.Ca.length;l<g;l++)d.sm.push(c.Ca[l].aa);for(q in c.hc)if(c.hc.hasOwnProperty(q)){a=this.b.F[parseInt(q,10)];m={sa:c.hc[q].Rl,insts:[]};l=0;for(g=c.hc[q].xe.length;l<g;l++)m.insts.push(c.hc[q].xe[l].uid);d.sols[a.aa.toString()]=m}v.push(d)}return b};
Y.prototype.rb=function(b){b=b.waits;var h,p,l,g,q,c,a,m,v,d,e;O(this.Fc);h=0;for(p=b.length;h<p;h++)if(c=b[h],m=this.b.Tp[c.ev.toString()]){v=-1;l=0;for(g=m.bd.length;l<g;l++)if(m.bd[l].aa===c.act){v=l;break}if(-1!==v){a={hc:{},Ca:[],bn:!1};a.time=c.t;a.Hs=c.st||"";a.bp=!!c.s;a.Zg=m;a.nc=v;l=0;for(g=c.sm.length;l<g;l++)(m=this.b.fh(c.sm[l]))&&a.Ca.push(m);for(q in c.sols)if(c.sols.hasOwnProperty(q)&&(m=this.b.fh(parseInt(q,10)))){v=c.sols[q];d={Rl:v.sa,xe:[]};l=0;for(g=v.insts.length;l<g;l++)(e=
this.b.dg(v.insts[l]))&&d.xe.push(e);a.hc[m.index.toString()]=d}this.Fc.push(a)}}};
(function(){function b(){}function h(){}function p(){}var l=Y.prototype;b.prototype.Dp=function(){return!0};b.prototype.Tt=function(){return!0};b.prototype.ut=function(c){var a=this.b.Ok(),b=a.H.Every_lastTime||0,g=this.b.ob.da;"undefined"===typeof a.H.Every_seconds&&(a.H.Every_seconds=c);var d=a.H.Every_seconds;if(g>=b+d)return a.H.Every_lastTime=b+d,g>=a.H.Every_lastTime+.04&&(a.H.Every_lastTime=g),a.H.Every_seconds=c,!0;g<b-.1&&(a.H.Every_lastTime=g);return!1};b.prototype.pt=function(c,a,b){return dc(c.eg(),
a,b)};b.prototype.Bt=function(c){return(c=this.b.gh[c.toLowerCase()])&&c.fg};b.prototype.tt=function(){var c=this.b.eb();return c.gn?!1:!c.qg};b.prototype.Ep=function(){return!0};b.prototype.Lt=function(){return!0};b.prototype.Em=function(){return!0};b.prototype.Hp=function(){return!0};b.prototype.Ut=function(){return!0};b.prototype.Wj=function(){return!0};b.prototype.jt=function(c,a,b){return Na(V(c),V(b))<=V(a)};b.prototype.At=function(c,a){return Pa(V(c),V(a))};b.prototype.zt=function(c,a,b){c=
La(c);a=La(a);b=La(b);return Pa(b,a)?Pa(c,a)&&!Pa(c,b):!(!Pa(c,a)&&Pa(c,b))};l.k=new b;h.prototype.xt=function(c){this.b.th||this.b.Rf||(this.b.Rf=c)};h.prototype.eu=function(c,a){0===c.Qj?la(a)?c.Me(a):c.Me(parseFloat(a)):1===c.Qj&&c.Me(a.toString())};h.prototype.it=function(c,a){0===c.Qj?la(a)?c.Me(c.eg()+a):c.Me(c.eg()+parseFloat(a)):1===c.Qj&&c.Me(c.eg()+a.toString())};h.prototype.iu=function(c,a){0===c.Qj&&(la(a)?c.Me(c.eg()-a):c.Me(c.eg()-parseFloat(a)))};h.prototype.bu=function(c,a){var b=
this.b.gh[c.toLowerCase()];if(b)switch(a){case 0:b.Vl(!1);break;case 1:b.Vl(!0);break;case 2:b.Vl(!b.fg)}};var g=[],q=[];h.prototype.ju=function(c){if(!(0>c)){var a,b,h,d=this.b.eb(),e;g.length?e=g.pop():e={hc:{},Ca:[]};e.bn=!1;e.time=this.b.ob.da+c;e.Hs="";e.bp=!1;e.Zg=d.Tb;e.nc=d.nc+1;c=0;for(a=this.b.F.length;c<a;c++)h=this.b.F[c],b=h.ha(),b.va&&-1===d.Tb.Ca.indexOf(h)||(e.Ca.push(h),h=void 0,q.length?h=q.pop():h={xe:[]},h.Rl=!1,h.Rl=b.va,Aa(h.xe,b.d),e.hc[c.toString()]=h);this.Fc.push(e);return!0}};
h.prototype.yt=function(c){if(!this.b.th&&!this.b.Rf)for(var a in this.b.Ah)if(this.b.Ah.hasOwnProperty(a)&&ib(a,c)){this.b.Rf=this.b.Ah[a];break}};l.L=new h;p.prototype["int"]=function(c,a){w(a)?(c.Ka(parseInt(a,10)),isNaN(c.data)&&(c.data=0)):c.Ka(a)};p.prototype["float"]=function(c,a){w(a)?(c.S(parseFloat(a)),isNaN(c.data)&&(c.data=0)):c.S(a)};p.prototype.random=function(c,a,b){void 0===b?c.S(Math.random()*a):c.S(Math.random()*(b-a)+a)};p.prototype.sqrt=function(c,a){c.S(Math.sqrt(a))};p.prototype.abs=
function(c,a){c.S(Math.abs(a))};p.prototype.round=function(c,a){c.Ka(Math.round(a))};p.prototype.floor=function(c,a){c.Ka(Math.floor(a))};p.prototype.ceil=function(c,a){c.Ka(Math.ceil(a))};p.prototype.sin=function(c,a){c.S(Math.sin(V(a)))};p.prototype.cos=function(c,a){c.S(Math.cos(V(a)))};p.prototype.tan=function(c,a){c.S(Math.tan(V(a)))};p.prototype.asin=function(c,a){c.S(Ha(Math.asin(a)))};p.prototype.acos=function(c,a){c.S(Ha(Math.acos(a)))};p.prototype.atan=function(c,a){c.S(Ha(Math.atan(a)))};
p.prototype.exp=function(c,a){c.S(Math.exp(a))};p.prototype.log10=function(c,a){c.S(Math.log(a)/Math.LN10)};p.prototype.max=function(c){var a=arguments[1];"number"!==typeof a&&(a=0);var b,g,d;b=2;for(g=arguments.length;b<g;b++)d=arguments[b],"number"===typeof d&&a<d&&(a=d);c.S(a)};p.prototype.min=function(c){var a=arguments[1];"number"!==typeof a&&(a=0);var b,g,d;b=2;for(g=arguments.length;b<g;b++)d=arguments[b],"number"===typeof d&&a>d&&(a=d);c.S(a)};p.prototype.Vf=function(c){c.S(this.b.Vf)};p.prototype.Jg=
function(c){c.S(this.b.Jg)};p.prototype.time=function(c){c.S(this.b.ob.da)};p.prototype.Jf=function(c){c.Ka(this.b.Jf)};p.prototype.sl=function(c){c.Ka(this.b.sl)};p.prototype.qn=function(c){c.Ka(this.b.qn)};p.prototype.j=function(c,a,b,g,d){c.S(Ha(Ma(a,b,g,d)))};p.prototype.left=function(c,a,b){c.Bc(w(a)?a.substr(0,b):"")};p.prototype.right=function(c,a,b){c.Bc(w(a)?a.substr(a.length-b):"")};p.prototype.replace=function(c,a,b,g){w(a)&&w(b)&&w(g)?c.Bc(a.replace(new RegExp(bb(b),"gi"),g)):c.Bc(w(a)?
a:"")};p.prototype.trim=function(c,a){c.Bc(w(a)?a.trim():"")};p.prototype.yu=function(c){var a=M(Math.random()*(arguments.length-1));c.$x(arguments[a+1])};p.prototype.Um=function(c){c.S(this.b.Um/1E3)};p.prototype.il=function(c){c.S(this.b.il)};l.Ra=new p;l.Nx=function(){var c,a,b,h,d,e,k=this.b.eb();c=0;for(b=this.Fc.length;c<b;c++){h=this.Fc[c];if(-1===h.time){if(!h.bp)continue}else if(h.time>this.b.ob.da)continue;k.Tb=h.Zg;k.nc=h.nc;k.kb=0;for(a in h.hc)h.hc.hasOwnProperty(a)&&(d=this.b.F[parseInt(a,
10)].ha(),e=h.hc[a],d.va=e.Rl,Aa(d.d,e.xe),d=e,O(d.xe),q.push(d));h.Zg.Lx();this.b.Sm(h.Ca);h.bn=!0}a=c=0;for(b=this.Fc.length;c<b;c++)h=this.Fc[c],this.Fc[a]=h,h.bn?(Ua(h.hc),O(h.Ca),g.push(h)):a++;za(this.Fc,a)}})();
(function(){nb=function(b,p){var l=b[1],g=b[3],q=b[4],c=b[5],a=b[6],m=b[7],v=b[8];p.k||(p.k={});p.L||(p.L={});p.Ra||(p.Ra={});var d=p.k,e=p.L,k=p.Ra;g&&(d.Jy=function(a,c){return dc(this.x,a,c)},d.Ky=function(a,c){return dc(this.y,a,c)},d.Qy=function(){var a=this.A;this.Aa();var c=this.Ba;return!(c.right<a.xa||c.bottom<a.ya||c.left>a.Ea||c.top>a.Da)},d.Ry=function(){this.Aa();var a=this.Ba,c=this.b.ua;return 0>a.right||0>a.bottom||a.left>c.width||a.top>c.height},d.cz=function(a,c,b){var d=this.ha(),
e=d.Tc();if(!e.length)return!1;var g=e[0],k=g,h=Ra(g.x,g.y,c,b),m,l,q;m=1;for(l=e.length;m<l;m++)if(g=e[m],q=Ra(g.x,g.y,c,b),0===a&&q<h||1===a&&q>h)h=q,k=g;d.qj(k);return!0},e.xz=function(a){this.x!==a&&(this.x=a,this.C())},e.yz=function(a){this.y!==a&&(this.y=a,this.C())},e.rz=function(a,c){if(this.x!==a||this.y!==c)this.x=a,this.y=c,this.C()},e.sz=function(a,c){var b=a.dw(this);if(b){var d;b.ti?(d=b.ti(c,!0),b=b.ti(c,!1)):(d=b.x,b=b.y);if(this.x!==d||this.y!==b)this.x=d,this.y=b,this.C()}},e.Wy=
function(a){0!==a&&(this.x+=Math.cos(this.j)*a,this.y+=Math.sin(this.j)*a,this.C())},e.Vy=function(a,c){0!==c&&(this.x+=Math.cos(V(a))*c,this.y+=Math.sin(V(a))*c,this.C())},k.Lp=function(a){a.S(this.x)},k.Mp=function(a){a.S(this.y)},k.Vf=function(a){a.S(this.b.we(this))});q&&(d.Iy=function(a,c){return dc(this.width,a,c)},d.Gy=function(a,c){return dc(this.height,a,c)},e.wz=function(a){this.width!==a&&(this.width=a,this.C())},e.oz=function(a){this.height!==a&&(this.height=a,this.C())},e.uz=function(a,
c){if(this.width!==a||this.height!==c)this.width=a,this.height=c,this.C()},k.Cz=function(a){a.S(this.width)},k.My=function(a){a.S(this.height)},k.Cy=function(a){this.Aa();a.S(this.Ba.left)},k.Ey=function(a){this.Aa();a.S(this.Ba.top)},k.Dy=function(a){this.Aa();a.S(this.Ba.right)},k.By=function(a){this.Aa();a.S(this.Ba.bottom)});c&&(d.jt=function(a,c){return Na(this.j,V(c))<=V(a)},d.At=function(a){return Pa(this.j,V(a))},d.zt=function(a,c){var b=La(a),d=La(c),e=X(this.j);return Pa(d,b)?Pa(e,b)&&!Pa(e,
d):!(!Pa(e,b)&&Pa(e,d))},e.kz=function(a){a=V(Ia(a));isNaN(a)||this.j===a||(this.j=a,this.C())},e.gz=function(a){0===a||isNaN(a)||(this.j+=V(a),this.j=X(this.j),this.C())},e.hz=function(a){0===a||isNaN(a)||(this.j-=V(a),this.j=X(this.j),this.C())},e.iz=function(a,c){var b=Oa(this.j,V(c),V(a));isNaN(b)||this.j===b||(this.j=b,this.C())},e.jz=function(a,c,b){a=Oa(this.j,Math.atan2(b-this.y,c-this.x),V(a));isNaN(a)||this.j===a||(this.j=a,this.C())},e.vz=function(a,c){var b=Math.atan2(c-this.y,a-this.x);
isNaN(b)||this.j===b||(this.j=b,this.C())},k.Ay=function(a){a.S(Ja(this.j))});l||(d.ot=function(a,c,b){return dc(this.nb[a],c,b)},d.Oy=function(a){return this.nb[a]},d.dz=function(a,c){var b=this.ha(),d=b.Tc();if(!d.length)return!1;var e=d[0],g=e,k=e.nb[c],h,m,l;h=1;for(m=d.length;h<m;h++)if(e=d[h],l=e.nb[c],0===a&&l<k||1===a&&l>k)k=l,g=e;b.qj(g);return!0},d.bz=function(a){var c,b,d,e,g;if(this.b.Ok().Tk){g=this.ha();if(g.va)for(g.va=!1,O(g.d),O(g.ca),d=this.d,c=0,b=d.length;c<b;c++)e=d[c],e.uid===
a?g.ca.push(e):g.d.push(e);else{d=c=0;for(b=g.d.length;c<b;c++)e=g.d[c],g.d[d]=e,e.uid===a?g.ca.push(e):d++;za(g.d,d)}this.wd();return!!g.d.length}e=this.b.dg(a);if(!e)return!1;g=this.ha();if(!g.va&&-1===g.d.indexOf(e))return!1;if(this.J)for(a=e.type.Ma,c=0,b=a.length;c<b;c++){if(a[c]===this)return g.qj(e),this.wd(),!0}else if(e.type===this)return g.qj(e),this.wd(),!0;return!1},d.Uj=function(){return!0},d.Nt=function(){return!0},e.pz=function(a,c){var b=this.nb;la(b[a])?b[a]=la(c)?c:parseFloat(c):
w(b[a])&&(b[a]=w(c)?c:c.toString())},e.zy=function(a,c){var b=this.nb;la(b[a])?b[a]=la(c)?b[a]+c:b[a]+parseFloat(c):w(b[a])&&(b[a]=w(c)?b[a]+c:b[a]+c.toString())},e.zz=function(a,c){var b=this.nb;la(b[a])&&(b[a]=la(c)?b[a]-c:b[a]-parseFloat(c))},e.lz=function(a,c){this.nb[a]=c?1:0},e.Az=function(a){this.nb[a]=1-this.nb[a]},e.qt=function(){this.b.$e(this)},e.Ft||(e.Ft=function(a){var c,b;try{c=JSON.parse(a)}catch(d){return}this.b.gl(this,c,!0);this.cd&&this.cd();if(this.P)for(a=0,c=this.P.length;a<
c;++a)b=this.P[a],b.cd&&b.cd()}),k.Ly=function(a){var c=a.xg.d.length,b,d,e;b=0;for(d=this.b.Ad.length;b<d;b++)e=this.b.Ad[b],a.xg.J?0<=e.type.Ma.indexOf(a.xg)&&c++:e.type===a.xg&&c++;a.Ka(c)},k.fz=function(a){a.Ka(a.xg.ha().Tc().length)},k.Bz=function(a){a.Ka(this.uid)},k.Ny=function(a){a.Ka(this.xi())},k.lt||(k.lt=function(a){a.Bc(JSON.stringify(this.b.Qo(this,!0)))}));a&&(d.Sy=function(){return this.visible},e.Jp=function(a){!a!==!this.visible&&(this.visible=!!a,this.b.wa=!0)},d.Hy=function(a,
c){return dc(hb(100*this.opacity),a,c)},e.qz=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.wa=!0)},k.Opacity=function(a){a.S(hb(100*this.opacity))});m&&(d.Py=function(a){return a?this.A===a:!1},d.ez=function(a){var c=this.ha(),b=c.Tc();if(!b.length)return!1;var d=b[0],e=d,g,k;g=1;for(k=b.length;g<k;g++)if(d=b[g],0===a){if(d.A.index>e.A.index||d.A.index===e.A.index&&d.$d()>e.$d())e=d}else if(d.A.index<e.A.index||d.A.index===e.A.index&&d.$d()<e.$d())e=d;c.qj(e);return!0},
e.Zy=function(){var a=this.A,c=a.d;c.length&&c[c.length-1]===this||(a.Ph(this,!1),a.di(this,!1),this.b.wa=!0)},e.Xy=function(){var a=this.A,c=a.d;c.length&&c[0]===this||(a.Ph(this,!1),a.zx(this),this.b.wa=!0)},e.Yy=function(a){a&&a!=this.A&&(this.A.Ph(this,!0),this.A=a,a.di(this,!0),this.b.wa=!0)},e.Ez=function(a,c){var b=0===a;if(c){var d=c.Aq(this);d&&d.uid!==this.uid&&(this.A.index!==d.A.index&&(this.A.Ph(this,!0),this.A=d.A,d.A.di(this,!0)),this.A.Vw(this,d,b),this.b.wa=!0)}},k.Uy=function(a){a.Ka(this.A.Lr)},
k.Ty=function(a){a.Bc(this.A.name)},k.Dz=function(a){a.Ka(this.$d())});v&&(e.mz=function(a,c){if(this.b.D){var b=this.type.vn(c);if(!(0>b)){var d=1===a;this.df[b]!==d&&(this.df[b]=d,this.Rd(),this.b.wa=!0)}}},e.nz=function(a,c,b){if(this.b.D){var d=this.type.vn(a);0>d||(a=this.type.V[d],d=this.Qa[d],c=Math.floor(c),0>c||c>=d.length||(1===this.b.D.hw(a.jb,c)&&(b/=100),d[c]!==b&&(d[c]=b,a.Na&&(this.b.wa=!0))))}})};Jb=function(){this.Om=this.gk=!0;this.type.$j=!0;this.b.wa=!0;var b,p,l=this.Lm;b=0;for(p=
l.length;b<p;++b)l[b](this);this.A.$c&&this.Aa()};Kb=function(b){b&&this.Lm.push(b)};Mb=function(){if(this.gk){var b=this.Ba,p=this.oc;b.set(this.x,this.y,this.x+this.width,this.y+this.height);b.offset(-this.qc*this.width,-this.rc*this.height);this.j?(b.offset(-this.x,-this.y),p.Cs(b,this.j),p.offset(this.x,this.y),p.Up(b)):p.Ne(b);b.normalize();this.gk=!1;this.ct()}};var b=new va(0,0,0,0);Nb=function(){if(this.A.$c){var h=this.A.Nb,p=this.Ba;b.set(h.lc(p.left),h.mc(p.top),h.lc(p.right),h.mc(p.bottom));
this.yc.oi(b)||(this.yc.right<this.yc.left?h.update(this,null,b):h.update(this,this.yc,b),this.yc.Ug(b),this.A.Od=!0)}};Ob=function(){if(this.Om&&this.Pc){this.Aa();var h=this.type.gi,p=this.Ba;b.set(h.lc(p.left),h.mc(p.top),h.lc(p.right),h.mc(p.bottom));this.dd.oi(b)||(this.dd.right<this.dd.left?h.update(this,null,b):h.update(this,this.dd,b),this.dd.Ug(b),this.Om=!1)}};Lb=function(b,p){return this.Ba.cc(b,p)&&this.oc.cc(b,p)?this.Ig?this.Kz(b,p):this.fa&&!this.fa.ng()?(this.fa.Qf(this.width,this.height,
this.j),this.fa.cc(b-this.x,p-this.y)):!0:!1};Fb=function(){this.type.um();return this.jg};Pb=function(){this.A.qp();return this.Td};Qb=function(){O(this.ta);var b,p,l,g=!0;b=0;for(p=this.df.length;b<p;b++)this.df[b]&&(l=this.type.V[b],this.ta.push(l),l.od||(g=!1));this.dt=!!this.ta.length;this.Oe=g};Gb=function(){return"Inst"+this.ns};qb=function(b){if(b&&b.tc&&b.type!=this){var p,l,g;p=0;for(l=b.siblings.length;p<l;p++)if(g=b.siblings[p],g.type==this)return g}b=this.ha().Tc();return b.length?b[0]:
null};rb=function(b){var p=this.ha().Tc();return p.length?p[b.xi()%p.length]:null};pb=function(){if(this.Uh&&!this.J){var b,p;b=0;for(p=this.d.length;b<p;b++)this.d[b].jg=b;var l=b,g=this.b.Ad;b=0;for(p=g.length;b<p;++b)g[b].type===this&&(g[b].jg=l++);this.Uh=!1}};Db=function(b){if(b<this.d.length)return this.d[b];b-=this.d.length;var p=this.b.Ad,l,g;l=0;for(g=p.length;l<g;++l)if(p[l].type===this){if(0===b)return p[l];--b}return null};sb=function(){return this.Se[this.Xd]};tb=function(){this.Xd++;
this.Xd===this.Se.length?this.Se.push(new ob(this)):(this.Se[this.Xd].va=!0,O(this.Se[this.Xd].ca))};ub=function(){this.Xd++;this.Xd===this.Se.length&&this.Se.push(new ob(this));var b=this.Se[this.Xd],p=this.Se[this.Xd-1];p.va?b.va=!0:(b.va=!1,Aa(b.d,p.d));O(b.ca)};vb=function(){this.Xd--};wb=function(b){var p,l,g,q,c,a=0;if(!this.J)for(p=0,l=this.Ma.length;p<l;p++)for(c=this.Ma[p],g=0,q=c.Oa.length;g<q;g++){if(b===c.Oa[g].name)return this.H.lastBehIndex=a,c.Oa[g];a++}p=0;for(l=this.Oa.length;p<l;p++){if(b===
this.Oa[p].name)return this.H.lastBehIndex=a,this.Oa[p];a++}return null};Ab=function(b){return this.Mk(b)?this.H.lastBehIndex:-1};Bb=function(b){var p,l;p=0;for(l=this.V.length;p<l;p++)if(this.V[p].name===b)return p;return-1};Cb=function(){if(this.tc&&!this.J){var b,p,l,g,q,c,a;this.um();c=this.ha();var m=c.va,v=(b=this.b.eb())&&b.Tb&&b.Tb.Xc;b=0;for(p=this.Hc.length;b<p;b++)if(q=this.Hc[b],q!==this&&(q.um(),a=q.ha(),a.va=m,!m)){O(a.d);l=0;for(g=c.d.length;l<g;++l)a.d[l]=q.wn(c.d[l].jg);if(v)for(O(a.ca),
l=0,g=c.ca.length;l<g;++l)a.ca[l]=q.wn(c.ca[l].jg)}}};Eb=function(){return"Type"+this.aa};dc=function(b,p,l){if("undefined"===typeof b||"undefined"===typeof l)return!1;switch(p){case 0:return b===l;case 1:return b!==l;case 2:return b<l;case 3:return b<=l;case 4:return b>l;case 5:return b>=l;default:return!1}}})();
var mc={waterbg:{src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nuniform lowp sampler2D samplerBack;\nuniform mediump vec2 destStart;\nuniform mediump vec2 destEnd;\nprecision mediump float;\nuniform float seconds;\nuniform float pixelWidth;\nuniform float pixelHeight;\nconst float PI = 3.1415926535897932;\nuniform float speed;\nuniform float speed_x;\nuniform float speed_y;\nuniform float intensity;\nconst int steps = 8;\nuniform float frequency;\nuniform float angle; // better when a prime\nuniform float delta;\nuniform float intence;\nuniform float emboss;\nfloat col(vec2 coord)\n{\nfloat delta_theta = 2.0 * PI / angle;\nfloat col = 0.0;\nfloat theta = 0.0;\nfor (int i = 0; i < steps; i++)\n{\nvec2 adjc = coord;\ntheta = delta_theta*float(i);\nadjc.x += cos(theta)*seconds*speed + seconds * speed_x;\nadjc.y -= sin(theta)*seconds*speed - seconds * speed_y;\ncol = col + cos( (adjc.x*cos(theta) - adjc.y*sin(theta))*frequency)*intensity;\n}\nreturn cos(col);\n}\nvoid main(void)\n{\nvec2 p = vTex, c1 = p, c2 = p;\nfloat cc1 = col(c1);\nc2.x += (1.0 / pixelWidth) / delta;\nfloat dx = emboss*(cc1-col(c2))/delta;\nc2.x = p.x;\nc2.y += (1.0 / pixelHeight) / delta;\nfloat dy = emboss*(cc1-col(c2))/delta;\nc1.x += dx;\nc1.y = -(c1.y+dy);\nfloat alpha = 1.+dot(dx,dy)*intence;\nc1.y = -c1.y;\nlowp vec4 front = texture2D(samplerFront,c1) * alpha;\nlowp vec4 result;\nif (front.a == 0.0)\nresult = front + texture2D(samplerBack, mix(destStart, destEnd, vTex)) * (1.0 - front.a);\nelse\nresult = front + texture2D(samplerBack, mix(destStart, destEnd, c1)) * (1.0 - front.a);\ngl_FragColor = result;\n}",Ak:25,
Bk:25,Wm:!0,od:!1,Im:!0,X:[["speed",0,1],["speed_x",0,1],["speed_y",0,1],["intensity",0,0],["frequency",0,0],["angle",0,0],["delta",0,0],["intence",0,0],["emboss",0,1]]}};function pc(b){this.b=b}
(function(){function b(a){-1===kb.indexOf(a)&&kb.push(a)}function h(a){var c=a.n,d;try{d=c.play()}catch(e){b(a);return}d?d.catch(function(){b(a)}):Dc&&!A.Ic&&b(a)}function p(){var a,c,d,e;Ec||Ea||!r||(l(),"running"===r.state&&(Ec=!0));var f=kb.slice(0);O(kb);if(!ba)for(a=0,c=f.length;a<c;++a)d=f[a],d.Cc||d.Jc||(e=d.n.play())&&e.catch(function(){b(d)})}function l(){"suspended"===r.state&&r.resume&&r.resume();if(r.createBuffer){var a=r.createBuffer(1,220,22050),c=r.createBufferSource();c.buffer=a;c.connect(r.destination);
m(c)}}function g(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function q(a){a=a.toLowerCase();return U.hasOwnProperty(a)&&U[a].length?U[a][0].Sc():r.destination}function c(){return r.createGain?r.createGain():r.createGainNode()}function a(a){return r.createDelay?r.createDelay(a):r.createDelayNode(a)}function m(a,c){a.start?a.start(c||0):a.noteOn(c||0)}function v(a,c,b,d){a.start?a.start(d||0,c):a.noteGrainOn(d||0,c,b-c)}function d(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(c){}}function e(a,
b,d,e,f,g){this.type="filter";this.Id=[a,b,d,e,f,g];this.ka=c();this.U=c();this.U.gain.value=g;this.T=c();this.T.gain.value=1-g;this.bb=r.createBiquadFilter();this.bb.type="number"===typeof this.bb.type?a:Ic[a];this.bb.frequency.value=b;this.bb.detune&&(this.bb.detune.value=d);this.bb.Q.value=e;this.bb.gain.value=f;this.ka.connect(this.bb);this.ka.connect(this.T);this.bb.connect(this.U)}function k(b,d,e){this.type="delay";this.Id=[b,d,e];this.ka=c();this.U=c();this.U.gain.value=e;this.T=c();this.T.gain.value=
1-e;this.ej=c();this.gd=a(b);this.gd.delayTime.value=b;this.sk=c();this.sk.gain.value=d;this.ka.connect(this.ej);this.ka.connect(this.T);this.ej.connect(this.U);this.ej.connect(this.gd);this.gd.connect(this.sk);this.sk.connect(this.ej)}function f(a,b,d,e){this.type="convolve";this.Id=[b,d,e];this.ka=c();this.U=c();this.U.gain.value=d;this.T=c();this.T.gain.value=1-d;this.Sf=r.createConvolver();a&&(this.Sf.normalize=b,this.Sf.buffer=a);this.ka.connect(this.Sf);this.ka.connect(this.T);this.Sf.connect(this.U)}
function D(b,d,e,f,g){this.type="flanger";this.Id=[b,d,e,f,g];this.ka=c();this.T=c();this.T.gain.value=1-g/2;this.U=c();this.U.gain.value=g/2;this.Ek=c();this.Ek.gain.value=f;this.gd=a(b+d);this.gd.delayTime.value=b;this.Bb=r.createOscillator();this.Bb.frequency.value=e;this.Mc=c();this.Mc.gain.value=d;this.ka.connect(this.gd);this.ka.connect(this.T);this.gd.connect(this.U);this.gd.connect(this.Ek);this.Ek.connect(this.gd);this.Bb.connect(this.Mc);this.Mc.connect(this.gd.delayTime);m(this.Bb)}function F(a,
b,d,e,f,g){this.type="phaser";this.Id=[a,b,d,e,f,g];this.ka=c();this.T=c();this.T.gain.value=1-g/2;this.U=c();this.U.gain.value=g/2;this.bb=r.createBiquadFilter();this.bb.type="number"===typeof this.bb.type?7:"allpass";this.bb.frequency.value=a;this.bb.detune&&(this.bb.detune.value=b);this.bb.Q.value=d;this.Bb=r.createOscillator();this.Bb.frequency.value=f;this.Mc=c();this.Mc.gain.value=e;this.ka.connect(this.bb);this.ka.connect(this.T);this.bb.connect(this.U);this.Bb.connect(this.Mc);this.Mc.connect(this.bb.frequency);
m(this.Bb)}function B(a){this.type="gain";this.Id=[a];this.qa=c();this.qa.gain.value=a}function n(a,b){this.type="tremolo";this.Id=[a,b];this.qa=c();this.qa.gain.value=1-b/2;this.Bb=r.createOscillator();this.Bb.frequency.value=a;this.Mc=c();this.Mc.gain.value=b/2;this.Bb.connect(this.Mc);this.Mc.connect(this.qa.gain);m(this.Bb)}function u(a,b){this.type="ringmod";this.Id=[a,b];this.ka=c();this.U=c();this.U.gain.value=b;this.T=c();this.T.gain.value=1-b;this.yj=c();this.yj.gain.value=0;this.Bb=r.createOscillator();
this.Bb.frequency.value=a;this.Bb.connect(this.yj.gain);m(this.Bb);this.ka.connect(this.yj);this.ka.connect(this.T);this.yj.connect(this.U)}function S(a,b,d,e,f){this.type="distortion";this.Id=[a,b,d,e,f];this.ka=c();this.Fl=c();this.El=c();this.Ux(d,Math.pow(10,e/20));this.U=c();this.U.gain.value=f;this.T=c();this.T.gain.value=1-f;this.ym=r.createWaveShaper();this.qk=new Float32Array(65536);this.Tv(a,b);this.ym.qk=this.qk;this.ka.connect(this.Fl);this.ka.connect(this.T);this.Fl.connect(this.ym);
this.ym.connect(this.El);this.El.connect(this.U)}function R(a,c,b,d,e){this.type="compressor";this.Id=[a,c,b,d,e];this.qa=r.createDynamicsCompressor();try{this.qa.threshold.value=a,this.qa.knee.value=c,this.qa.ratio.value=b,this.qa.attack.value=d,this.qa.release.value=e}catch(f){}}function C(a,c){this.type="analyser";this.Id=[a,c];this.qa=r.createAnalyser();this.qa.fftSize=a;this.qa.smoothingTimeConstant=c;this.Rv=new Float32Array(this.qa.frequencyBinCount);this.Fs=new Uint8Array(a);this.pj=0}function G(){this.la=
null;this.hl=0}function z(a,b){this.src=a;this.Z=E;this.be=b;this.Zj=!1;var d=this;this.Eh=this.Lh=null;this.Mh=[];this.Sl=0;this.wp=this.Ck=this.Ms=this.zl=!1;1===E&&b&&!lb&&(this.Z=0,this.Lh=c());this.le=this.na=null;var e;switch(this.Z){case 0:this.na=new Audio;this.na.crossOrigin="anonymous";this.na.addEventListener("canplaythrough",function(){d.wp=!0});1===E&&r.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.Ms=!0,this.na.addEventListener("canplay",function(){!d.Eh&&d.na&&
(d.Eh=r.createMediaElementSource(d.na),d.Eh.connect(d.Lh))}));this.na.autoplay=!1;this.na.hs="auto";this.na.src=a;break;case 1:A.Xk?A.rq(a,function(a){d.le=a;d.iq()},function(){d.Ck=!0}):(e=new XMLHttpRequest,e.open("GET",a,!0),e.responseType="arraybuffer",e.onload=function(){d.le=e.response;d.iq()},e.onerror=function(){d.Ck=!0},e.send());break;case 2:this.na=!0;break;case 3:this.na=!0}}function t(a,b){var d=this;this.tag=b;this.Cc=this.Zd=!0;this.src=a.src;this.buffer=a;this.Z=E;this.be=a.be;this.playbackRate=
1;this.jh=!0;this.Jc=this.Zc=!1;this.zc=0;this.Li=this.ph=this.Hd=!1;this.volume=1;this.zo=function(a){if(!d.Jc&&!d.Zc){var c=this;c||(c=a.target);c===d.Xj&&(d.jh=!0,d.Cc=!0,ha=d.tag,A.trigger(pc.prototype.k.Vj,P))}};this.Xj=null;this.nh=1===Q&&!this.be||2===Q;this.Gh=1;this.startTime=this.nh?A.ob.da:A.Xe.da;this.hb=this.lb=null;this.fe=!1;this.Lb=null;this.Wr=this.Vr=this.Ur=this.Tr=this.Yr=this.Xr=0;this.n=null;var e=!1;1!==this.Z||0!==this.buffer.Z||this.buffer.Ms||(this.Z=0);switch(this.Z){case 0:this.be?
(this.n=a.na,e=!a.Zj,a.Zj=!0):(this.n=new Audio,this.n.crossOrigin="anonymous",this.n.autoplay=!1,this.n.src=a.na.src,e=!0);e&&this.n.addEventListener("ended",function(){ha=d.tag;d.Cc=!0;A.trigger(pc.prototype.k.Vj,P)});break;case 1:this.lb=c();this.lb.connect(q(b));1===this.buffer.Z?a.na&&(this.n=r.createBufferSource(),this.n.buffer=a.na,this.n.connect(this.lb)):(this.n=this.buffer.na,this.buffer.Lh.connect(this.lb),this.buffer.Zj||(this.buffer.Zj=!0,this.buffer.na.addEventListener("ended",function(){ha=
d.tag;d.Cc=!0;A.trigger(pc.prototype.k.Vj,P)})));break;case 2:this.n=new window.Media(fa+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(d.jh=!0,d.Cc=!0,ha=d.tag,A.trigger(pc.prototype.k.Vj,P))});break;case 3:this.n=!0}}function L(a){O(Ga);if(a.length){var c,b,d;c=0;for(b=x.length;c<b;c++)d=x[c],ib(a,d.tag)&&Ga.push(d)}else I&&!I.hg()&&(O(Ga),Ga[0]=I)}function J(a,c){U.hasOwnProperty(a)?U[a].push(c):U[a]=[c];var b,d,e,f,g=r.destination;if(U.hasOwnProperty(a)&&(e=U[a],e.length))for(g=
e[0].Sc(),b=0,d=e.length;b<d;b++)f=e[b],b+1===d?f.ed(r.destination):f.ed(e[b+1].Sc());L(a);b=0;for(d=Ga.length;b<d;b++)Ga[b].Fx(g);Ka&&zb===a&&(Ka.disconnect(),Ka.connect(g))}function W(){}function T(){}var N=pc.prototype;N.ma=function(a){this.Ja=a;this.b=a.b};N.ma.prototype.R=function(){};var A=null,P=null,ha="",fa="",E=0,r=null,y=[],x=[],I=null,H=!1,Q=0,ba=!1,K=1,ia=0,ca=0,Ea=!1,yb=1,xb=1,zc=10,Bc=1E4,Cc=1,Ka=null,zb="",Dc=!1,kb=[],lb=!1,Ec=!1;document.addEventListener("pointerup",p,!0);document.addEventListener("touchend",
p,!0);document.addEventListener("click",p,!0);document.addEventListener("keydown",p,!0);document.addEventListener("gamepadconnected",p,!0);var U={},Ic="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");e.prototype.ed=function(a){this.U.disconnect();this.U.connect(a);this.T.disconnect();this.T.connect(a)};e.prototype.remove=function(){this.ka.disconnect();this.bb.disconnect();this.U.disconnect();this.T.disconnect()};e.prototype.Sc=function(){return this.ka};k.prototype.ed=
function(a){this.U.disconnect();this.U.connect(a);this.T.disconnect();this.T.connect(a)};k.prototype.remove=function(){this.ka.disconnect();this.ej.disconnect();this.gd.disconnect();this.sk.disconnect();this.U.disconnect();this.T.disconnect()};k.prototype.Sc=function(){return this.ka};f.prototype.ed=function(a){this.U.disconnect();this.U.connect(a);this.T.disconnect();this.T.connect(a)};f.prototype.remove=function(){this.ka.disconnect();this.Sf.disconnect();this.U.disconnect();this.T.disconnect()};
f.prototype.Sc=function(){return this.ka};D.prototype.ed=function(a){this.T.disconnect();this.T.connect(a);this.U.disconnect();this.U.connect(a)};D.prototype.remove=function(){this.ka.disconnect();this.gd.disconnect();this.Bb.disconnect();this.Mc.disconnect();this.T.disconnect();this.U.disconnect();this.Ek.disconnect()};D.prototype.Sc=function(){return this.ka};F.prototype.ed=function(a){this.T.disconnect();this.T.connect(a);this.U.disconnect();this.U.connect(a)};F.prototype.remove=function(){this.ka.disconnect();
this.bb.disconnect();this.Bb.disconnect();this.Mc.disconnect();this.T.disconnect();this.U.disconnect()};F.prototype.Sc=function(){return this.ka};B.prototype.ed=function(a){this.qa.disconnect();this.qa.connect(a)};B.prototype.remove=function(){this.qa.disconnect()};B.prototype.Sc=function(){return this.qa};n.prototype.ed=function(a){this.qa.disconnect();this.qa.connect(a)};n.prototype.remove=function(){this.Bb.disconnect();this.Mc.disconnect();this.qa.disconnect()};n.prototype.Sc=function(){return this.qa};
u.prototype.ed=function(a){this.U.disconnect();this.U.connect(a);this.T.disconnect();this.T.connect(a)};u.prototype.remove=function(){this.Bb.disconnect();this.yj.disconnect();this.ka.disconnect();this.U.disconnect();this.T.disconnect()};u.prototype.Sc=function(){return this.ka};S.prototype.Ux=function(a,c){.01>a&&(a=.01);this.Fl.gain.value=a;this.El.gain.value=Math.pow(1/a,.6)*c};S.prototype.shape=function(a,c,b){var d=1.05*b*c-c;b=0>a?-1:1;a=0>a?-a:a;c=a<c?a:c+d*(1-Math.exp(-(1/d)*(a-c)));return c*
b};S.prototype.Tv=function(a,c){for(var b=Math.pow(10,a/20),d=Math.pow(10,c/20),e=0,f=0;32768>f;++f)e=f/32768,e=this.shape(e,b,d),this.qk[32768+f]=e,this.qk[32768-f-1]=-e};S.prototype.ed=function(a){this.U.disconnect();this.U.connect(a);this.T.disconnect();this.T.connect(a)};S.prototype.remove=function(){this.ka.disconnect();this.Fl.disconnect();this.ym.disconnect();this.El.disconnect();this.U.disconnect();this.T.disconnect()};S.prototype.Sc=function(){return this.ka};R.prototype.ed=function(a){this.qa.disconnect();
this.qa.connect(a)};R.prototype.remove=function(){this.qa.disconnect()};R.prototype.Sc=function(){return this.qa};C.prototype.za=function(){this.qa.getFloatFrequencyData(this.Rv);this.qa.getByteTimeDomainData(this.Fs);for(var a=this.qa.fftSize,c=0,b=this.pj=0,d=0;c<a;c++)d=(this.Fs[c]-128)/128,0>d&&(d=-d),this.pj<d&&(this.pj=d),b+=d*d;this.pj=g(this.pj);g(Math.sqrt(b/a))};C.prototype.ed=function(a){this.qa.disconnect();this.qa.connect(a)};C.prototype.remove=function(){this.qa.disconnect()};C.prototype.Sc=
function(){return this.qa};G.prototype.zj=function(a){this.la=a};G.prototype.Sk=function(){return!!this.la};G.prototype.za=function(){};z.prototype.Gx=function(){var a,c,b,d;b=a=0;for(c=x.length;a<c;++a)d=x[a],x[b]=d,d.buffer===this?d.stop():++b;x.length=b;this.Eh&&(this.Eh.disconnect(),this.Eh=null);this.Lh&&(this.Lh.disconnect(),this.Lh=null);this.le=this.na=null};z.prototype.iq=function(){if(!this.na&&this.le){var a=this;if(r.decodeAudioData)r.decodeAudioData(this.le,function(c){a.na=c;a.le=null;
var b,d,e;if(ka(a.Bl)||ba)ka(a.mk)||(b=a.mk.Sf,b.normalize=a.Kr,b.buffer=c);else if(a.Mh.length){b=0;for(d=a.Mh.length;b<d;b++){c=a.Mh[b];e=new t(a,c.Ps);e.Wo(!0);if("undefined"!==typeof c.Mr&&(c.la=A.dg(c.Mr),!c.la))continue;if(c.la){var f=Qa(c.la.x,c.la.y,-c.la.A.Hb(),ia,ca,!0),g=Qa(c.la.x,c.la.y,-c.la.A.Hb(),ia,ca,!1);e.Vo(f,g,Ha(c.la.j-c.la.A.Hb()),c.In,c.vo,c.xo);e.zj(c.la)}else e.Vo(c.x,c.y,c.ad,c.In,c.vo,c.xo);e.play(a.ro,a.up,a.Sl);a.zl&&e.pause();x.push(e)}O(a.Mh)}else e=new t(a,a.Bl||""),
e.play(a.ro,a.up,a.Sl),a.zl&&e.pause(),x.push(e)},function(){a.Ck=!0});else if(this.na=r.createBuffer(this.le,!1),this.le=null,ka(this.Bl)||ba)ka(this.mk)||(c=this.mk.Sf,c.normalize=this.Kr,c.buffer=this.na);else{var c=new t(this,this.Bl);c.play(this.ro,this.up,this.Sl);this.zl&&c.pause();x.push(c)}}};z.prototype.Sq=function(){switch(this.Z){case 0:var a=4<=this.na.readyState;a&&(this.wp=!0);return a||this.wp;case 1:return!!this.le||!!this.na;case 2:return!0;case 3:return!0}return!1};z.prototype.Hw=
function(){switch(this.Z){case 0:return this.Sq();case 1:return!!this.na;case 2:return!0;case 3:return!0}return!1};z.prototype.zw=function(){switch(this.Z){case 0:return!!this.na.error;case 1:return this.Ck}return!1};t.prototype.hg=function(){switch(this.Z){case 0:return this.n.ended;case 1:return 1===this.buffer.Z?!this.Zd&&!this.Cc&&this.n.loop||this.Jc?!1:this.jh:this.n.ended;case 2:return this.jh;case 3:!0}return!0};t.prototype.wu=function(){return this.Zd||this.Cc?!0:this.hg()};t.prototype.Wo=
function(a){1===E&&(!this.fe&&a?this.lb&&(this.hb||(this.hb=r.createPanner(),this.hb.panningModel="number"===typeof this.hb.panningModel?yb:["equalpower","HRTF","soundfield"][yb],this.hb.distanceModel="number"===typeof this.hb.distanceModel?xb:["linear","inverse","exponential"][xb],this.hb.refDistance=zc,this.hb.maxDistance=Bc,this.hb.rolloffFactor=Cc),this.lb.disconnect(),this.lb.connect(this.hb),this.hb.connect(q(this.tag)),this.fe=!0):this.fe&&!a&&this.lb&&(this.hb.disconnect(),this.lb.disconnect(),
this.lb.connect(q(this.tag)),this.fe=!1))};t.prototype.Vo=function(a,c,b,d,e,f){this.fe&&1===E&&(this.hb.setPosition(a,c,0),this.hb.setOrientation(Math.cos(V(b)),Math.sin(V(b)),0),this.hb.coneInnerAngle=d,this.hb.coneOuterAngle=e,this.hb.coneOuterGain=f,this.Xr=a,this.Yr=c,this.Tr=b,this.Ur=d,this.Vr=e,this.Wr=f)};t.prototype.zj=function(a){this.fe&&1===E&&(this.Lb||(this.Lb=new G),this.Lb.zj(a))};t.prototype.za=function(a){if(this.fe&&1===E&&this.Lb&&this.Lb.Sk()&&this.Ii()){this.Lb.za(a);a=this.Lb.la;
var c=Qa(a.x,a.y,-a.A.Hb(),ia,ca,!0),b=Qa(a.x,a.y,-a.A.Hb(),ia,ca,!1);this.hb.setPosition(c,b,0);c=0;"undefined"!==typeof this.Lb.la.j&&(c=a.j-a.A.Hb(),this.hb.setOrientation(Math.cos(c),Math.sin(c),0))}};t.prototype.play=function(a,c,b,d){var e=this.n;this.Hd=a;this.volume=c;b=b||0;d=d||0;switch(this.Z){case 0:1!==e.playbackRate&&(e.playbackRate=1);e.volume!==c*K&&(e.volume=c*K);e.loop!==a&&(e.loop=a);e.muted&&(e.muted=!1);if(e.currentTime!==b)try{e.currentTime=b}catch(f){}h(this);break;case 1:this.muted=
!1;this.Gh=1;if(1===this.buffer.Z)this.lb.gain.value=c*K,this.Zd||(this.n=r.createBufferSource(),this.n.buffer=this.buffer.na,this.n.connect(this.lb)),this.n.onended=this.zo,this.Xj=this.n,this.n.loop=a,this.jh=!1,0===b?m(this.n,d):v(this.n,b,this.ag(),d);else{1!==e.playbackRate&&(e.playbackRate=1);e.loop!==a&&(e.loop=a);e.volume=c*K;if(e.currentTime!==b)try{e.currentTime=b}catch(g){}h(this)}break;case 2:(!this.Zd&&this.Cc||0!==b)&&e.seekTo(b);e.play();this.jh=!1;break;case 3:A.ec?AppMobi.context.playSound(this.src,
a):AppMobi.player.playSound(this.src,a)}this.playbackRate=1;this.startTime=(this.nh?A.ob.da:A.Xe.da)-b;this.Jc=this.Cc=this.Zd=!1};t.prototype.stop=function(){switch(this.Z){case 0:this.n.paused||this.n.pause();break;case 1:1===this.buffer.Z?d(this.n):this.n.paused||this.n.pause();break;case 2:this.n.stop();break;case 3:A.ec&&AppMobi.context.stopSound(this.src)}this.Cc=!0;this.Jc=!1};t.prototype.pause=function(){if(!(this.Zd||this.Cc||this.hg()||this.Jc)){switch(this.Z){case 0:this.n.paused||this.n.pause();
break;case 1:1===this.buffer.Z?(this.zc=this.yn(!0),this.Hd&&(this.zc=this.zc%this.ag()),this.Jc=!0,d(this.n)):this.n.paused||this.n.pause();break;case 2:this.n.pause();break;case 3:A.ec&&AppMobi.context.stopSound(this.src)}this.Jc=!0}};t.prototype.Kx=function(){if(!(this.Zd||this.Cc||this.hg())&&this.Jc){switch(this.Z){case 0:h(this);break;case 1:1===this.buffer.Z?(this.n=r.createBufferSource(),this.n.buffer=this.buffer.na,this.n.connect(this.lb),this.n.onended=this.zo,this.Xj=this.n,this.n.loop=
this.Hd,this.lb.gain.value=K*this.volume*this.Gh,this.vm(),this.startTime=(this.nh?A.ob.da:A.Xe.da)-this.zc/(this.playbackRate||.001),v(this.n,this.zc,this.ag())):h(this);break;case 2:this.n.play();break;case 3:A.ec&&AppMobi.context.resumeSound(this.src)}this.Jc=!1}};t.prototype.seek=function(a){if(!(this.Zd||this.Cc||this.hg()))switch(this.Z){case 0:try{this.n.currentTime=a}catch(c){}break;case 1:if(1===this.buffer.Z)this.Jc?this.zc=a:(this.pause(),this.zc=a,this.Kx());else try{this.n.currentTime=
a}catch(b){}break;case 3:A.ec&&AppMobi.context.seekSound(this.src,a)}};t.prototype.Fx=function(a){1===this.Z&&(this.fe?(this.hb.disconnect(),this.hb.connect(a)):(this.lb.disconnect(),this.lb.connect(a)))};t.prototype.ag=function(){var a=0;switch(this.Z){case 0:"undefined"!==typeof this.n.duration&&(a=this.n.duration);break;case 1:a=this.buffer.na.duration;break;case 2:a=this.n.getDuration();break;case 3:A.ec&&(a=AppMobi.context.getDurationSound(this.src))}return a};t.prototype.yn=function(a){var c=
this.ag(),b=0;switch(this.Z){case 0:"undefined"!==typeof this.n.currentTime&&(b=this.n.currentTime);break;case 1:if(1===this.buffer.Z){if(this.Jc)return this.zc;b=(this.nh?A.ob.da:A.Xe.da)-this.startTime}else"undefined"!==typeof this.n.currentTime&&(b=this.n.currentTime);break;case 3:A.ec&&(b=AppMobi.context.getPlaybackTimeSound(this.src))}a&&(b*=this.playbackRate);!this.Hd&&b>c&&(b=c);return b};t.prototype.Ii=function(){return!this.Jc&&!this.Zd&&!this.Cc&&!this.hg()};t.prototype.ay=function(){return!this.Zd&&
!this.Cc&&!this.hg()};t.prototype.ny=function(){var a=this.volume*K;isFinite(a)||(a=0);switch(this.Z){case 0:"undefined"!==typeof this.n.volume&&this.n.volume!==a&&(this.n.volume=a);break;case 1:1===this.buffer.Z?this.lb.gain.value=a*this.Gh:"undefined"!==typeof this.n.volume&&this.n.volume!==a&&(this.n.volume=a)}};t.prototype.yk=function(a){switch(this.Z){case 0:this.n.muted!==!!a&&(this.n.muted=!!a);break;case 1:1===this.buffer.Z?(this.Gh=a?0:1,this.lb.gain.value=K*this.volume*this.Gh):this.n.muted!==
!!a&&(this.n.muted=!!a)}};t.prototype.Wx=function(){this.ph=!0;this.yk(this.ph||this.Li)};t.prototype.zs=function(a){this.Li=!!a;this.yk(this.ph||this.Li)};t.prototype.Vx=function(a){this.Hd=a;switch(this.Z){case 0:this.n.loop!==!!a&&(this.n.loop=!!a);break;case 1:this.n.loop!==!!a&&(this.n.loop=!!a);break;case 3:A.ec&&AppMobi.context.setLoopingSound(this.src,a)}};t.prototype.vm=function(){var a=this.playbackRate;this.nh&&(a*=A.Jg);switch(this.Z){case 0:this.n.playbackRate!==a&&(this.n.playbackRate=
a);break;case 1:1===this.buffer.Z?this.n.playbackRate.value!==a&&(this.n.playbackRate.value=a):this.n.playbackRate!==a&&(this.n.playbackRate=a)}};t.prototype.Yx=function(a){switch(this.Z){case 0:a?this.Ii()?(this.Zc=!0,this.n.pause()):this.Zc=!1:this.Zc&&(this.n.play(),this.Zc=!1);break;case 1:a?this.Ii()?(this.Zc=!0,1===this.buffer.Z?(this.zc=this.yn(!0),this.Hd&&(this.zc=this.zc%this.ag()),d(this.n)):this.n.pause()):this.Zc=!1:this.Zc&&(1===this.buffer.Z?(this.n=r.createBufferSource(),this.n.buffer=
this.buffer.na,this.n.connect(this.lb),this.n.onended=this.zo,this.Xj=this.n,this.n.loop=this.Hd,this.lb.gain.value=K*this.volume*this.Gh,this.vm(),this.startTime=(this.nh?A.ob.da:A.Xe.da)-this.zc/(this.playbackRate||.001),v(this.n,this.zc,this.ag())):this.n.play(),this.Zc=!1);break;case 2:a?this.Ii()?(this.n.pause(),this.Zc=!0):this.Zc=!1:this.Zc&&(this.Zc=!1,this.n.play())}};N.ba=function(a){this.type=a;A=this.b=a.b;P=this;this.Lc=null;this.Ui=-600;this.b.Xk&&(lb=!0);!(this.b.sh||this.b.kh&&(this.b.Vk||
this.b.Di))||this.b.Fi||this.b.fb||this.b.Qq||lb||(Dc=!0);r=null;"undefined"!==typeof AudioContext?(E=1,r=new AudioContext):"undefined"!==typeof webkitAudioContext&&(E=1,r=new webkitAudioContext);this.b.sh&&r&&(r.close&&r.close(),"undefined"!==typeof AudioContext?r=new AudioContext:"undefined"!==typeof webkitAudioContext&&(r=new webkitAudioContext));1!==E&&(this.b.ye&&"undefined"!==typeof window.Media?E=2:this.b.Rq&&(E=3));2===E&&(fa=location.href,a=fa.lastIndexOf("/"),-1<a&&(fa=fa.substr(0,a+1)),
fa=fa.replace("file://",""));if(this.b.Iw&&this.b.Kw&&"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.$e(this);else{if(this.b.ec)H=this.b.kh;else try{H=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')&&!this.b.Zn}catch(c){H=!1}this.b.Lj(this)}};var qa=N.ba.prototype;qa.R=function(){this.b.Sg=this;Q=this.B[0];this.Ke=this.B[1];this.tx=0!==this.B[2];this.Ir=0;yb=this.B[3];xb=this.B[4];
this.Ui=-this.B[5];zc=this.B[6];Bc=this.B[7];Cc=this.B[8];this.Lc=new G;var a=this.b.N||this.b.width,c=this.b.M||this.b.height;1===E&&(r.listener.setPosition(a/2,c/2,this.Ui),r.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,c){Ka&&Ka.disconnect();zb=c.toLowerCase();Ka=r.createMediaStreamSource(a);Ka.connect(q(zb))});this.b.Pp(function(a){P.yo(a)});var b=this;this.b.Yj(function(a){b.kj(a)})};qa.kj=function(a){var c,b,d;c=0;for(b=x.length;c<b;c++)d=x[c],d.Lb&&d.Lb.la===a&&
(d.Lb.la=null,d.fe&&d.Ii()&&d.Hd&&d.stop());this.Lc.la===a&&(this.Lc.la=null)};qa.Ya=function(){var a={silent:ba,masterVolume:K,listenerZ:this.Ui,listenerUid:this.Lc.Sk()?this.Lc.la.uid:-1,playing:[],effects:{}},c=a.playing,b,d,e,f,g,k;b=0;for(d=x.length;b<d;b++)e=x[b],!e.ay()||3===this.Ke||e.be&&1===this.Ke||!e.be&&2===this.Ke||(f=e.yn(),e.Hd&&(f=f%e.ag()),f={tag:e.tag,buffersrc:e.buffer.src,is_music:e.be,playbackTime:f,volume:e.volume,looping:e.Hd,muted:e.ph,playbackRate:e.playbackRate,paused:e.Jc,
resume_position:e.zc},e.fe&&(f.pan={},k=f.pan,e.Lb&&e.Lb.Sk()?k.objUid=e.Lb.la.uid:(k.x=e.Xr,k.y=e.Yr,k.a=e.Tr),k.ia=e.Ur,k.oa=e.Vr,k.og=e.Wr),c.push(f));c=a.effects;for(g in U)if(U.hasOwnProperty(g)){e=[];b=0;for(d=U[g].length;b<d;b++)e.push({type:U[g][b].type,params:U[g][b].Id});c[g]=e}return a};var Va=[];qa.rb=function(a){var c=a.silent;K=a.masterVolume;this.Ui=a.listenerZ;this.Lc.zj(null);var b=a.listenerUid;-1!==b&&(this.Lc.hl=b,Va.push(this.Lc));var b=a.playing,d,g,m,l,h,q,p,v,z,t,r;if(3!==
this.Ke)for(d=0,g=x.length;d<g;d++)z=x[d],z.be&&1===this.Ke||(z.be||2!==this.Ke)&&z.stop();for(h in U)if(U.hasOwnProperty(h))for(d=0,g=U[h].length;d<g;d++)U[h][d].remove();Ua(U);for(h in a.effects)if(a.effects.hasOwnProperty(h))for(q=a.effects[h],d=0,g=q.length;d<g;d++)switch(m=q[d].type,t=q[d].params,m){case "filter":J(h,new e(t[0],t[1],t[2],t[3],t[4],t[5]));break;case "delay":J(h,new k(t[0],t[1],t[2]));break;case "convolve":m=t[2];z=this.Lk(m,!1);z.na?m=new f(z.na,t[0],t[1],m):(m=new f(null,t[0],
t[1],m),z.Kr=t[0],z.mk=m);J(h,m);break;case "flanger":J(h,new D(t[0],t[1],t[2],t[3],t[4]));break;case "phaser":J(h,new F(t[0],t[1],t[2],t[3],t[4],t[5]));break;case "gain":J(h,new B(t[0]));break;case "tremolo":J(h,new n(t[0],t[1]));break;case "ringmod":J(h,new u(t[0],t[1]));break;case "distortion":J(h,new S(t[0],t[1],t[2],t[3],t[4]));break;case "compressor":J(h,new R(t[0],t[1],t[2],t[3],t[4]));break;case "analyser":J(h,new C(t[0],t[1]))}d=0;for(g=b.length;d<g;d++)3===this.Ke||(a=b[d],m=a.buffersrc,
l=a.is_music,h=a.tag,q=a.playbackTime,p=a.looping,v=a.volume,r=(t=a.pan)&&t.hasOwnProperty("objUid")?t.objUid:-1,l&&1===this.Ke)||!l&&2===this.Ke||((z=this.xq(m,h,l,p,v))?(z.zc=a.resume_position,z.Wo(!!t),z.play(p,v,q),z.vm(),z.ny(),z.yk(z.ph||z.Li),a.paused&&z.pause(),a.muted&&z.Wx(),z.yk(z.ph||z.Li),t&&(-1!==r?(z.Lb=z.Lb||new G,z.Lb.hl=r,Va.push(z.Lb)):z.Vo(t.x,t.y,t.a,t.ia,t.oa,t.og))):(z=this.Lk(m,l),z.Sl=q,z.zl=a.paused,t&&(-1!==r?z.Mh.push({Mr:r,In:t.ia,vo:t.oa,xo:t.og,Ps:h}):z.Mh.push({x:t.x,
y:t.y,ad:t.a,In:t.ia,vo:t.oa,xo:t.og,Ps:h}))));if(c&&!ba){d=0;for(g=x.length;d<g;d++)x[d].zs(!0);ba=!0}else if(!c&&ba){d=0;for(g=x.length;d<g;d++)x[d].zs(!1);ba=!1}};qa.cd=function(){var a,c,b,d;a=0;for(c=Va.length;a<c;a++)b=Va[a],d=this.b.dg(b.hl),b.zj(d),b.hl=-1,d&&(ia=d.x,ca=d.y);O(Va)};qa.yo=function(a){if(!this.tx){!a&&r&&r.resume&&(r.resume(),Ea=!1);var c,b;c=0;for(b=x.length;c<b;c++)x[c].Yx(a);a&&r&&r.suspend&&(r.suspend(),Ea=!0)}};qa.za=function(){var a=this.b.Vf,c,b,d;c=0;for(b=x.length;c<
b;c++)d=x[c],d.za(a),0!==Q&&d.vm();var e,f;for(e in U)if(U.hasOwnProperty(e))for(d=U[e],c=0,b=d.length;c<b;c++)f=d[c],f.za&&f.za();1===E&&this.Lc.Sk()&&(this.Lc.za(a),ia=this.Lc.la.x,ca=this.Lc.la.y,r.listener.setPosition(this.Lc.la.x,this.Lc.la.y,this.Ui))};var Wa=[];qa.Xx=function(a){var c,b,d,e,f,g=0;c=0;for(b=a.length;c<b;++c)if(d=a[c],e=d[0],d=2*d[1],(f=4<e.length&&".ogg"===e.substr(e.length-4))&&H||!f&&!H)Wa.push({filename:e,size:d,la:null}),g+=d;return g};qa.cy=function(){var a,c,b,d;a=0;for(c=
Wa.length;a<c;++a)b=Wa[a],d=this.b.nn+b.filename,b.la=this.Lk(d,!1)};qa.ew=function(){var a=0,c,b,d;c=0;for(b=Wa.length;c<b;++c)d=Wa[c],d.la.Hw()||d.la.zw()||this.b.fb||this.b.Di?a+=d.size:d.la.Sq()&&(a+=Math.floor(d.size/2));return a};qa.Hx=function(){var a,c,b,d;b=a=0;for(c=y.length;a<c;++a)d=y[a],y[b]=d,d.be?d.Gx():++b;y.length=b};qa.Lk=function(a,c){var b,d,e,f=null;b=0;for(d=y.length;b<d;b++)if(e=y[b],e.src===a){f=e;break}f||(lb&&c&&this.Hx(),f=new z(a,c),y.push(f));return f};qa.xq=function(a,
c,b,d,e){var f,g,k;f=0;for(g=x.length;f<g;f++)if(k=x[f],k.src===a&&(k.wu()||b))return k.tag=c,k;a=this.Lk(a,b);if(!a.na)return"<preload>"!==c&&(a.Bl=c,a.ro=d,a.up=e),null;k=new t(a,c);x.push(k);return k};var Ga=[];W.prototype.Vj=function(a){return ib(ha,a)};N.k=new W;T.prototype.Play=function(a,c,b,d){!ba&&(b=Math.pow(10,b/20),isFinite(b)||(b=0),0>b&&(b=0),1<b&&(b=1),I=this.xq(this.b.nn+a[0]+(H?".ogg":".m4a"),d,a[1],0!==c,b))&&(I.Wo(!1),I.play(0!==c,b,0,this.Ir),this.Ir=0)};T.prototype.Ip=function(a,
c){L(a);var b,d;b=0;for(d=Ga.length;b<d;b++)Ga[b].Vx(0===c)};T.prototype.hu=function(){var a,c;a=0;for(c=x.length;a<c;a++)x[a].stop()};N.L=new T;N.Ra=new function(){}})();function qc(b){this.b=b}
(function(){function b(){}var h=qc.prototype;h.ma=function(b){this.Ja=b;this.b=b.b};h.ma.prototype.R=function(){};h.ba=function(b){this.type=b;this.b=b.b;this.wh=Array(256);this.Nj=Array(256);this.Ue=0};var p=h.ba.prototype;p.R=function(){var b=this;this.b.fb||(jQuery(document).keydown(function(l){b.lj(l)}),jQuery(document).keyup(function(l){b.mj(l)}))};var l=[32,33,34,35,36,37,38,39,40,44];p.lj=function(b){var h=!1;window!=window.top&&-1<l.indexOf(b.which)&&(b.preventDefault(),h=!0,b.stopPropagation());
if(this.wh[b.which])this.Nj[b.which]&&!h&&b.preventDefault();else{this.wh[b.which]=!0;this.Ue=b.which;this.b.Ic=!0;this.b.trigger(qc.prototype.k.Jt,this);var c=this.b.trigger(qc.prototype.k.Qt,this),a=this.b.trigger(qc.prototype.k.Rt,this);this.b.Ic=!1;if(c||a)this.Nj[b.which]=!0,h||b.preventDefault()}};p.mj=function(b){this.wh[b.which]=!1;this.Ue=b.which;this.b.Ic=!0;this.b.trigger(qc.prototype.k.zp,this);var l=this.b.trigger(qc.prototype.k.Cp,this),c=this.b.trigger(qc.prototype.k.Bp,this);this.b.Ic=
!1;if(l||c||this.Nj[b.which])this.Nj[b.which]=!0,b.preventDefault()};p.Fe=function(){var b;for(b=0;256>b;++b)if(this.wh[b]){this.wh[b]=!1;this.Ue=b;this.b.trigger(qc.prototype.k.zp,this);var l=this.b.trigger(qc.prototype.k.Cp,this),c=this.b.trigger(qc.prototype.k.Bp,this);if(l||c)this.Nj[b]=!0}};p.Ya=function(){return{triggerKey:this.Ue}};p.rb=function(b){this.Ue=b.triggerKey};b.prototype.Ct=function(b){return this.wh[b]};b.prototype.Qt=function(b){return b===this.Ue};b.prototype.Jt=function(){return!0};
b.prototype.zp=function(){return!0};b.prototype.Cp=function(b){return b===this.Ue};b.prototype.Rt=function(b){return b===this.Ue};b.prototype.Bp=function(b){return b===this.Ue};h.k=new b;h.L=new function(){};h.Ra=new function(){}})();function rc(b){this.b=b}
(function(){function b(){}function h(){}var p=rc.prototype;p.ma=function(b){this.Ja=b;this.b=b.b};p.ma.prototype.R=function(){};p.ba=function(b){this.type=b;this.b=b.b;this.Tg=Array(4);this.Ss=this.qm=this.Kg=this.Bf=this.Af=0;this.Fn=!1};var l=p.ba.prototype;l.R=function(){var b=this;if(!this.b.fb){jQuery(document).mousemove(function(a){b.gx(a)});jQuery(document).mousedown(function(a){b.cx(a)});jQuery(document).mouseup(function(a){b.hx(a)});jQuery(document).dblclick(function(a){b.bx(a)});var c=function(a){b.ix(a)};
document.addEventListener("mousewheel",c,!1);document.addEventListener("DOMMouseScroll",c,!1)}};var g={left:0,top:0};l.gx=function(b){var c=this.b.fb?g:jQuery(this.b.canvas).offset();this.Af=b.pageX-c.left;this.Bf=b.pageY-c.top};l.Gr=function(){return 0<this.b.pc?!0:0<=this.Af&&0<=this.Bf&&this.Af<this.b.width&&this.Bf<this.b.height};l.cx=function(b){this.Gr()&&(this.Tg[b.which]=!0,this.b.Ic=!0,this.b.trigger(rc.prototype.k.It,this),this.Kg=b.which-1,this.qm=0,this.b.trigger(rc.prototype.k.Cm,this),
this.b.trigger(rc.prototype.k.Dm,this),this.b.Ic=!1)};l.hx=function(b){this.Tg[b.which]&&(this.b.Eq&&!this.b.mh&&b.preventDefault(),this.b.Eq=!0,this.Tg[b.which]=!1,this.b.Ic=!0,this.Kg=b.which-1,this.b.trigger(rc.prototype.k.Gp,this),this.b.Ic=!1)};l.bx=function(b){this.Gr()&&(b.preventDefault(),this.b.Ic=!0,this.Kg=b.which-1,this.qm=1,this.b.trigger(rc.prototype.k.Cm,this),this.b.trigger(rc.prototype.k.Dm,this),this.b.Ic=!1)};l.ix=function(b){this.Ss=0>(b.wheelDelta?b.wheelDelta:b.detail?-b.detail:
0)?0:1;this.Fn=!1;this.b.Ic=!0;this.b.trigger(rc.prototype.k.Xt,this);this.b.Ic=!1;this.Fn&&jb(b)&&b.preventDefault()};l.Fe=function(){var b,c;b=0;for(c=this.Tg.length;b<c;++b)this.Tg[b]&&(this.Tg[b]=!1,this.Kg=b-1,this.b.trigger(rc.prototype.k.Gp,this))};b.prototype.Cm=function(b,c){return b===this.Kg&&c===this.qm};b.prototype.It=function(){return!0};b.prototype.Gp=function(b){return b===this.Kg};b.prototype.Dm=function(b,c,a){return b!==this.Kg||c!==this.qm?!1:this.b.gy(a,this.Af,this.Bf)};b.prototype.Xt=
function(b){this.Fn=!0;return b===this.Ss};p.k=new b;p.L=new function(){};h.prototype.Lp=function(b,c){var a,g,l,d,e;ka(c)?(a=this.b.vi(0),g=a.scale,l=a.Ud,d=a.md,e=a.j,a.scale=1,a.Ud=1,a.md=1,a.j=0,b.S(a.ac(this.Af,this.Bf,!0)),a.scale=g,a.Ud=l,a.md=d,a.j=e):(a=la(c)?this.b.vi(c):this.b.xn(c))?b.S(a.ac(this.Af,this.Bf,!0)):b.S(0)};h.prototype.Mp=function(b,c){var a,g,l,d,e;ka(c)?(a=this.b.vi(0),g=a.scale,l=a.Ud,d=a.nd,e=a.j,a.scale=1,a.Ud=1,a.nd=1,a.j=0,b.S(a.ac(this.Af,this.Bf,!1)),a.scale=g,a.Ud=
l,a.nd=d,a.j=e):(a=la(c)?this.b.vi(c):this.b.xn(c))?b.S(a.ac(this.Af,this.Bf,!1)):b.S(0)};p.Ra=new h})();function sc(b){this.b=b}
(function(){function b(b){this.Ia=b;this.Na=!1;this.j=this.speed=this.y=this.x=0;this.opacity=1;this.ff=this.hh=this.size=this.Qk=0}var h=sc.prototype;h.ma=function(b){this.Ja=b;this.b=b.b};var p=h.ma.prototype;p.R=function(){this.J||(this.O=new Image,this.O.Vm=this.lm,this.I=null,this.b.vp(this.O,this.km))};p.oj=function(){this.J||(this.I=null)};p.tl=function(){this.J||!this.d.length||this.I||(this.I=this.b.D.Bh(this.O,!0,this.b.Ha,this.Jj))};p.Wi=function(){this.J||this.I||!this.b.D||(this.I=this.b.D.Bh(this.O,
!0,this.b.Ha,this.Jj))};p.tm=function(){this.J||this.d.length||!this.I||(this.b.D.deleteTexture(this.I),this.I=null)};p.Gl=function(b){b.drawImage(this.O,0,0)};b.prototype.init=function(){var b=this.Ia;this.x=b.x-b.zm/2+Math.random()*b.zm;this.y=b.y-b.Am/2+Math.random()*b.Am;this.speed=b.Pn-b.em/2+Math.random()*b.em;this.j=b.j-b.fm/2+Math.random()*b.fm;this.opacity=b.Nn;this.size=b.On-b.cm/2+Math.random()*b.cm;this.Qk=b.En-b.Rk/2+Math.random()*b.Rk;this.ff=this.hh=0};b.prototype.za=function(b){var l=
this.Ia;this.x+=Math.cos(this.j)*this.speed*b;this.y+=Math.sin(this.j)*this.speed*b;this.y+=this.hh*b;this.speed+=l.ea*b;this.size+=this.Qk*b;this.hh+=l.Gb*b;this.ff+=b;1>this.size?this.Na=!1:(0!==l.Ri&&(this.j+=Math.random()*l.Ri*b-l.Ri*b/2),0!==l.Ti&&(this.speed+=Math.random()*l.Ti*b-l.Ti*b/2),0!==l.Si&&(this.opacity+=Math.random()*l.Si*b-l.Si*b/2,0>this.opacity?this.opacity=0:1<this.opacity&&(this.opacity=1)),1>=l.Yg&&this.ff>=l.timeout&&(this.Na=!1),2===l.Yg&&0>=this.speed&&(this.Na=!1))};b.prototype.hd=
function(b){var l=this.Ia.opacity*this.opacity;if(0!==l){0===this.Ia.Yg&&(l*=1-this.ff/this.Ia.timeout);b.globalAlpha=l;var l=this.x-this.size/2,c=this.y-this.size/2;this.Ia.b.Jd&&(l=l+.5|0,c=c+.5|0);b.drawImage(this.Ia.type.O,l,c,this.size,this.size)}};b.prototype.Ub=function(b){var l=this.Ia.opacity*this.opacity;0===this.Ia.Yg&&(l*=1-this.ff/this.Ia.timeout);var c=this.size,a=c*this.Ia.as,m=this.x-c/2,h=this.y-c/2;this.Ia.b.Jd&&(m=m+.5|0,h=h+.5|0);1>a||0===l||(a<b.Uw||a>b.so?(b.Gf(l),b.Ag(m,h,m+
c,h,m+c,h+c,m,h+c)):b.ux(this.x,this.y,a,l))};b.prototype.left=function(){return this.x-this.size/2};b.prototype.right=function(){return this.x+this.size/2};b.prototype.top=function(){return this.y-this.size/2};b.prototype.bottom=function(){return this.y+this.size/2};h.ba=function(b){this.type=b;this.b=b.b};var p=h.ba.prototype,l=[];p.R=function(){var b=this.B;this.Ml=b[0];this.fm=V(b[1]);this.Sh=b[2];this.cp=!0;this.Pn=b[3];this.On=b[4];this.Nn=b[5]/100;this.En=b[6];this.zm=b[7];this.Am=b[8];this.em=
b[9];this.cm=b[10];this.Rk=b[11];this.ea=b[12];this.Gb=b[13];this.Ri=b[14];this.Ti=b[15];this.Si=b[16];this.Yg=b[17];this.timeout=b[18];this.yg=0;this.as=1;this.wl=this.x;this.yl=this.y;this.xl=this.x;this.ul=this.y;this.mu(function(b){b.Ba.set(b.wl,b.yl,b.xl,b.ul);b.oc.Ne(b.Ba);b.gk=!1;b.rp();b.ct()});this.xc||(this.gc=[]);this.b.Lj(this);this.type.Wi();if(1===this.Sh)for(b=0;b<this.Ml;b++)this.Fm().opacity=0;this.Ik=!0};p.Ya=function(){var b={r:this.Ml,sc:this.fm,st:this.Sh,s:this.cp,isp:this.Pn,
isz:this.On,io:this.Nn,gr:this.En,xr:this.zm,yr:this.Am,spr:this.em,szr:this.cm,grnd:this.Rk,acc:this.ea,g:this.Gb,lar:this.Ri,lsr:this.Ti,lor:this.Si,dm:this.Yg,to:this.timeout,pcc:this.yg,ft:this.Ik,p:[]},l,c,a,m=b.p;l=0;for(c=this.gc.length;l<c;l++)a=this.gc[l],m.push([a.x,a.y,a.speed,a.j,a.opacity,a.Qk,a.size,a.hh,a.ff]);return b};p.rb=function(b){this.Ml=b.r;this.fm=b.sc;this.Sh=b.st;this.cp=b.s;this.Pn=b.isp;this.On=b.isz;this.Nn=b.io;this.En=b.gr;this.zm=b.xr;this.Am=b.yr;this.em=b.spr;this.cm=
b.szr;this.Rk=b.grnd;this.ea=b.acc;this.Gb=b.g;this.Ri=b.lar;this.Ti=b.lsr;this.Si=b.lor;this.Yg=b.dm;this.timeout=b.to;this.yg=b.pcc;this.Ik=b.ft;l.push.apply(l,this.gc);O(this.gc);var h,c,a,m=b.p;b=0;for(h=m.length;b<h;b++)c=this.Fm(),a=m[b],c.x=a[0],c.y=a[1],c.speed=a[2],c.j=a[3],c.opacity=a[4],c.Qk=a[5],c.size=a[6],c.hh=a[7],c.ff=a[8]};p.Ee=function(){l.push.apply(l,this.gc);O(this.gc)};p.Fm=function(){var g;l.length?(g=l.pop(),g.Ia=this):g=new b(this);this.gc.push(g);g.Na=!0;return g};p.za=function(){var b=
this.b.we(this),h,c,a,m;if(0===this.Sh&&this.cp)for(this.yg+=b*this.Ml,c=M(this.yg),this.yg-=c,h=0;h<c;h++)a=this.Fm(),a.init();this.wl=this.x;this.yl=this.y;this.xl=this.x;this.ul=this.y;m=h=0;for(c=this.gc.length;h<c;h++)a=this.gc[h],this.gc[m]=a,this.b.wa=!0,1===this.Sh&&this.Ik&&a.init(),a.za(b),a.Na?(a.left()<this.wl&&(this.wl=a.left()),a.right()>this.xl&&(this.xl=a.right()),a.top()<this.yl&&(this.yl=a.top()),a.bottom()>this.ul&&(this.ul=a.bottom()),m++):l.push(a);za(this.gc,m);this.C();this.Ik=
!1;1===this.Sh&&0===this.gc.length&&this.b.$e(this)};p.hd=function(b){var l,c,a,m=this.A;l=0;for(c=this.gc.length;l<c;l++)a=this.gc[l],a.right()>=m.xa&&a.bottom()>=m.ya&&a.left()<=m.Ea&&a.top()<=m.Da&&a.hd(b)};p.Ub=function(b){this.as=this.A.Uc();b.Ac(this.type.I);var l,c,a,m=this.A;l=0;for(c=this.gc.length;l<c;l++)a=this.gc[l],a.right()>=m.xa&&a.bottom()>=m.ya&&a.left()<=m.Ea&&a.top()<=m.Da&&a.Ub(b)};h.k=new function(){};h.L=new function(){};h.Ra=new function(){}})();function Z(b){this.b=b}
(function(){function b(){if(0===this.Zm.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var c=a.getContext("2d");this.Th?c.drawImage(this.O,this.Ih,this.Jh,this.width,this.height,0,0,this.width,this.height):c.drawImage(this.O,0,0,this.width,this.height);this.Zm=a.toDataURL("image/png")}return this.Zm}function h(){}function p(a){a[0]=0;a[1]=0;a[2]=0;f.push(a)}function l(a,c){return a<c?""+a+","+c:""+c+","+a}function g(a,c,b,d){c=c.uid;b=b.uid;var e=l(c,b);if(a.hasOwnProperty(e))a[e][2]=
d;else{var g=f.length?f.pop():[0,0,0];g[0]=c;g[1]=b;g[2]=d;a[e]=g}}function q(a,c,b){c=l(c.uid,b.uid);a.hasOwnProperty(c)&&(p(a[c]),delete a[c])}function c(a,c,b){c=l(c.uid,b.uid);if(a.hasOwnProperty(c))return D=a[c][2],!0;D=-2;return!1}function a(){}function m(){}var v=Z.prototype;v.ma=function(a){this.Ja=a;this.b=a.b};var d=v.ma.prototype;d.R=function(){if(!this.J){var a,c,d,e,f,g,k,l,m;this.ud=[];this.Ai=!1;a=0;for(c=this.Gc.length;a<c;a++){f=this.Gc[a];k={};k.name=f[0];k.speed=f[1];k.loop=f[2];
k.Lo=f[3];k.Mo=f[4];k.bs=f[5];k.aa=f[6];k.frames=[];d=0;for(e=f[7].length;d<e;d++)g=f[7][d],l={},l.km=g[0],l.lm=g[1],l.Ih=g[2],l.Jh=g[3],l.width=g[4],l.height=g[5],l.duration=g[6],l.qc=g[7],l.rc=g[8],l.Jn=g[9],l.Cl=g[10],l.ds=g[11],l.Th=0!==l.width,l.Zm="",l.Gz=b,m={left:0,top:0,right:1,bottom:1},l.$o=m,l.I=null,(m=this.b.Qv(g[0]))?l.O=m:(l.O=new Image,l.O.Bu=g[0],l.O.Vm=g[1],l.O.uu=null,this.b.vp(l.O,g[0])),k.frames.push(l),this.ud.push(l);this.Gc[a]=k}}};d.$s=function(){var a,c,b;a=0;for(c=this.d.length;a<
c;a++)b=this.d[a],b.ok=b.Cb.I};d.oj=function(){if(!this.J){var a,c,b;a=0;for(c=this.ud.length;a<c;++a)b=this.ud[a],b.O.uu=null,b.I=null;this.Ai=!1;this.$s()}};d.tl=function(){if(!this.J&&this.d.length){var a,c,b;a=0;for(c=this.ud.length;a<c;++a)b=this.ud[a],b.I=this.b.D.Bh(b.O,!1,this.b.Ha,b.ds);this.$s()}};d.Wi=function(){if(!this.J&&!this.Ai&&this.b.D){var a,c,b;a=0;for(c=this.ud.length;a<c;++a)b=this.ud[a],b.I=this.b.D.Bh(b.O,!1,this.b.Ha,b.ds);this.Ai=!0}};d.tm=function(){if(!this.J&&!this.d.length&&
this.Ai){var a,c,b;a=0;for(c=this.ud.length;a<c;++a)b=this.ud[a],this.b.D.deleteTexture(b.I),b.I=null;this.Ai=!1}};var e=[];d.Gl=function(a){var c,b,d;O(e);c=0;for(b=this.ud.length;c<b;++c)d=this.ud[c].O,-1===e.indexOf(d)&&(a.drawImage(d,0,0),e.push(d))};v.ba=function(a){this.type=a;this.b=a.b;a=this.type.Gc[0].frames[0].Cl;this.xc?this.fa.Bj(a):this.fa=new cb(a)};var k=v.ba.prototype;k.R=function(){this.visible=0===this.B[0];this.Kn=this.Yn=!1;this.Pc=0!==this.B[3];this.Fa=this.wq(this.B[1])||this.type.Gc[0];
this.K=this.B[2];0>this.K&&(this.K=0);this.K>=this.Fa.frames.length&&(this.K=this.Fa.frames.length-1);var a=this.Fa.frames[this.K];this.fa.Bj(a.Cl);this.qc=a.qc;this.rc=a.rc;this.Vg=this.Fa.speed;this.nf=this.Fa.Mo;1===this.type.Gc.length&&1===this.type.Gc[0].frames.length||0===this.Vg||(this.b.Lj(this),this.Yn=!0);this.xc?this.Vd.reset():this.Vd=new ab;this.ve=this.Vd.da;this.Mf=!0;this.ke=0;this.Lf=!0;this.kk=this.Qp="";this.aq=0;this.Rm=-1;this.type.Wi();var c,b,d,e,f,g,l,a=0;for(c=this.type.Gc.length;a<
c;a++)for(e=this.type.Gc[a],b=0,d=e.frames.length;b<d;b++)f=e.frames[b],0===f.width&&(f.width=f.O.width,f.height=f.O.height),f.Th&&(l=f.O,g=f.$o,g.left=f.Ih/l.width,g.top=f.Jh/l.height,g.right=(f.Ih+f.width)/l.width,g.bottom=(f.Jh+f.height)/l.height,0===f.Ih&&0===f.Jh&&f.width===l.width&&f.height===l.height&&(f.Th=!1));this.Cb=this.Fa.frames[this.K];this.ok=this.Cb.I};k.Ya=function(){var a={a:this.Fa.aa,f:this.K,cas:this.Vg,fs:this.ve,ar:this.ke,at:this.Vd.da,rt:this.nf};this.Mf||(a.ap=this.Mf);this.Lf||
(a.af=this.Lf);return a};k.rb=function(a){var c=this.Vv(a.a);c&&(this.Fa=c);this.K=a.f;0>this.K&&(this.K=0);this.K>=this.Fa.frames.length&&(this.K=this.Fa.frames.length-1);this.Vg=a.cas;this.ve=a.fs;this.ke=a.ar;this.Vd.reset();this.Vd.da=a.at;this.Mf=a.hasOwnProperty("ap")?a.ap:!0;this.Lf=a.hasOwnProperty("af")?a.af:!0;a.hasOwnProperty("rt")?this.nf=a.rt:this.nf=this.Fa.Mo;this.Cb=this.Fa.frames[this.K];this.ok=this.Cb.I;this.fa.Bj(this.Cb.Cl);this.qc=this.Cb.qc;this.rc=this.Cb.rc};k.Jm=function(a){this.K=
a?0:this.Fa.frames.length-1;this.Mf=!1;this.Qp=this.Fa.name;this.Kn=!0;this.b.trigger(Z.prototype.k.Ht,this);this.b.trigger(Z.prototype.k.Gt,this);this.Kn=!1;this.ke=0};k.Km=function(){return this.Vd.da};k.za=function(){this.Vd.add(this.b.we(this));this.kk.length&&this.jq();0<=this.Rm&&this.Gu();var a=this.Vd.da,c=this.Fa,b=c.frames[this.K],d=b.duration/this.Vg;this.Mf&&a>=this.ve+d&&(this.Lf?this.K++:this.K--,this.ve+=d,this.K>=c.frames.length&&(c.bs?(this.Lf=!1,this.K=c.frames.length-2):c.loop?
this.K=this.nf:(this.ke++,this.ke>=c.Lo?this.Jm(!1):this.K=this.nf)),0>this.K&&(c.bs?(this.K=1,this.Lf=!0,c.loop||(this.ke++,this.ke>=c.Lo&&this.Jm(!0))):c.loop?this.K=this.nf:(this.ke++,this.ke>=c.Lo?this.Jm(!0):this.K=this.nf)),0>this.K?this.K=0:this.K>=c.frames.length&&(this.K=c.frames.length-1),a>this.ve+c.frames[this.K].duration/this.Vg&&(this.ve=a),a=c.frames[this.K],this.Pg(b,a),this.b.wa=!0)};k.wq=function(a){var c,b,d;c=0;for(b=this.type.Gc.length;c<b;c++)if(d=this.type.Gc[c],ib(d.name,a))return d;
return null};k.Vv=function(a){var c,b,d;c=0;for(b=this.type.Gc.length;c<b;c++)if(d=this.type.Gc[c],d.aa===a)return d;return null};k.jq=function(){var a=this.Fa.frames[this.K],c=this.wq(this.kk);this.kk="";!c||ib(c.name,this.Fa.name)&&this.Mf||(this.Fa=c,this.Vg=c.speed,this.nf=c.Mo,0>this.K&&(this.K=0),this.K>=this.Fa.frames.length&&(this.K=this.Fa.frames.length-1),1===this.aq&&(this.K=0),this.Mf=!0,this.ve=this.Vd.da,this.Lf=!0,this.Pg(a,this.Fa.frames[this.K]),this.b.wa=!0)};k.Gu=function(){var a=
this.Fa.frames[this.K],c=this.K;this.K=M(this.Rm);0>this.K&&(this.K=0);this.K>=this.Fa.frames.length&&(this.K=this.Fa.frames.length-1);c!==this.K&&(this.Pg(a,this.Fa.frames[this.K]),this.ve=this.Vd.da,this.b.wa=!0);this.Rm=-1};k.Pg=function(a,c){var b=a.width,d=a.height,e=c.width,f=c.height;b!=e&&(this.width*=e/b);d!=f&&(this.height*=f/d);this.qc=c.qc;this.rc=c.rc;this.fa.Bj(c.Cl);this.C();this.Cb=c;this.ok=c.I;b=0;for(d=this.P.length;b<d;b++)e=this.P[b],e.Rr&&e.Rr(a,c);this.b.trigger(Z.prototype.k.Pg,
this)};k.hd=function(a){a.globalAlpha=this.opacity;var c=this.Cb,b=c.Th,d=c.O,e=this.x,f=this.y,g=this.width,l=this.height;if(0===this.j&&0<=g&&0<=l)e-=this.qc*g,f-=this.rc*l,this.b.Jd&&(e=Math.round(e),f=Math.round(f)),b?a.drawImage(d,c.Ih,c.Jh,c.width,c.height,e,f,g,l):a.drawImage(d,e,f,g,l);else{this.b.Jd&&(e=Math.round(e),f=Math.round(f));a.save();var k=0<g?1:-1,m=0<l?1:-1;a.translate(e,f);1===k&&1===m||a.scale(k,m);a.rotate(this.j*k*m);e=0-this.qc*oa(g);f=0-this.rc*oa(l);b?a.drawImage(d,c.Ih,
c.Jh,c.width,c.height,e,f,oa(g),oa(l)):a.drawImage(d,e,f,oa(g),oa(l));a.restore()}};k.Uf=function(a){this.Ub(a)};k.Ub=function(a){a.Ac(this.ok);a.Gf(this.opacity);var c=this.Cb,b=this.oc;if(this.b.Jd){var d=Math.round(this.x)-this.x,e=Math.round(this.y)-this.y;c.Th?a.Je(b.Pb+d,b.Qb+e,b.jc+d,b.kc+e,b.Zb+d,b.$b+e,b.Xb+d,b.Yb+e,c.$o):a.Ag(b.Pb+d,b.Qb+e,b.jc+d,b.kc+e,b.Zb+d,b.$b+e,b.Xb+d,b.Yb+e)}else c.Th?a.Je(b.Pb,b.Qb,b.jc,b.kc,b.Zb,b.$b,b.Xb,b.Yb,c.$o):a.Ag(b.Pb,b.Qb,b.jc,b.kc,b.Zb,b.$b,b.Xb,b.Yb)};
k.$v=function(a){var c=this.Cb,b,d;b=0;for(d=c.Jn.length;b<d;b++)if(ib(a,c.Jn[b][0]))return b;return-1};k.ti=function(a,c){var b=this.Cb,d=b.Jn,e;w(a)?e=this.$v(a):e=a-1;e=M(e);if(0>e||e>=d.length)return c?this.x:this.y;var f=(d[e][1]-b.qc)*this.width,d=d[e][2],d=(d-b.rc)*this.height,b=Math.cos(this.j);e=Math.sin(this.j);var g=f*b-d*e,d=d*b+f*e,f=g+this.x,d=d+this.y;return c?f:d};var f=[],D=-2,F=[];h.prototype.Mt=function(a){if(!a)return!1;var b=this.b,d=b.Ok(),e=d.type,f=null;d.H.collmemory?f=d.H.collmemory:
(f={},d.H.collmemory=f);d.H.spriteCreatedDestroyCallback||(d.H.spriteCreatedDestroyCallback=!0,b.Yj(function(a){var c=d.H.collmemory;a=a.uid;var b,e;for(b in c)c.hasOwnProperty(b)&&(e=c[b],e[0]===a||e[1]===a)&&(p(c[b]),delete c[b])}));var l=e.ha(),k=a.ha(),l=l.Tc(),m,h,n,v,u,B,E,r=this.b.Jf,y=r-1,x=b.eb().Tb;for(h=0;h<l.length;h++){n=l[h];k.va?(n.Aa(),this.b.Nk(n.A,a,n.Ba,F),m=F,this.b.lu(n,a,m)):m=k.Tc();for(v=0;v<m.length;v++)u=m[v],b.ic(n,u)||b.xu(n,u)?(B=c(f,n,u),B=!B||D<y,g(f,n,u,r),B&&(b.Il(x.Ca),
B=e.ha(),E=a.ha(),B.va=!1,E.va=!1,e===a?(B.d.length=2,B.d[0]=n,B.d[1]=u,e.wd()):(B.d.length=1,E.d.length=1,B.d[0]=n,E.d[0]=u,e.wd(),a.wd()),x.Mx(),b.zg(x.Ca))):q(f,n,u);O(F)}return!1};var B=null,n=new da,u=!1,S=[],R=new va(0,0,0,0);d.finish=function(a){if(u){if(a){var c=this.b.eb().Tb.Xc;a=B.ha();var b=n.Ve(),d,e;if(a.va){a.va=!1;O(a.d);d=0;for(e=b.length;d<e;++d)a.d[d]=b[d];if(c)for(O(a.ca),d=0,e=B.d.length;d<e;++d)b=B.d[d],n.contains(b)||a.ca.push(b)}else if(c)for(c=a.d.length,d=0,e=b.length;d<
e;++d)a.d[c+d]=b[d],Da(a.ca,b[d]);else Aa(a.d,b);B.wd()}n.clear();u=!1}};h.prototype.Dt=function(a){if(a){var c=!1,b,d,e,f=this.b.Ok(),g=f.type,f=f.Tk;b=a.ha();d=this.b.eb().Tb.Xc;var l;b.va?(this.Aa(),R.Ug(this.Ba),R.offset(0,0),this.b.Nk(this.A,a,R,S),l=S):l=d?this.b.Ew()&&!b.ca.length&&b.d.length?b.d:b.ca:b.d;B=a;u=g!==a&&!f;b=0;for(d=l.length;b<d;b++)if(e=l[b],this.b.ic(this,e)){c=!0;if(f)break;g!==a&&n.add(e)}O(S);a=c}else a=!1;return a};h.prototype.Gt=function(a){return ib(this.Qp,a)};h.prototype.Ht=
function(){return!0};h.prototype.Pg=function(){return!0};v.k=new h;a.prototype.fu=function(a,c,b){if(a&&c&&(c=this.b.gq(a,c,this.ti(b,!0),this.ti(b,!1)))){"undefined"!==typeof c.j&&(c.j=this.j,c.C());this.b.Ed++;var d,e,f;this.b.trigger(Object.getPrototypeOf(a.Ja).k.Uj,c);if(c.tc)for(d=0,e=c.siblings.length;d<e;d++)f=c.siblings[d],this.b.trigger(Object.getPrototypeOf(f.type.Ja).k.Uj,f);this.b.Ed--;d=this.b.Yv();b=!1;if(ka(d.H.Spawn_LastExec)||d.H.Spawn_LastExec<this.b.$f)b=!0,d.H.Spawn_LastExec=this.b.$f;
if(a!=this.type&&(a=a.ha(),a.va=!1,b?(O(a.d),a.d[0]=c):a.d.push(c),c.tc))for(d=0,e=c.siblings.length;d<e;d++)f=c.siblings[d],a=f.type.ha(),a.va=!1,b?(O(a.d),a.d[0]=f):a.d.push(f)}};a.prototype.$t=function(a,c){this.kk=a;this.aq=c;this.Yn||(this.b.Lj(this),this.Yn=!0);this.Kn||this.jq()};a.prototype.cu=function(a){a=oa(this.width)*(0===a?-1:1);this.width!==a&&(this.width=a,this.C())};a.prototype.au=function(a){this.Pc!==(0!==a)&&((this.Pc=0!==a)?this.C():(this.dd.right>=this.dd.left&&this.type.gi.update(this,
this.dd,null),this.dd.set(0,0,-1,-1)))};v.L=new a;m.prototype.kt=function(a){a.Bc(this.Fa.name)};v.Ra=new m})();function tc(b){this.b=b}
(function(){var b=tc.prototype;b.ma=function(b){this.Ja=b;this.b=b.b};var h=b.ma.prototype;h.R=function(){this.J||(this.O=new Image,this.O.Vm=this.lm,this.b.vp(this.O,this.km),this.I=this.pattern=null)};h.oj=function(){this.J||(this.I=null)};h.tl=function(){if(!this.J&&this.d.length){this.I||(this.I=this.b.D.Bh(this.O,!0,this.b.Ha,this.Jj));var b,l;b=0;for(l=this.d.length;b<l;b++)this.d[b].I=this.I}};h.Wi=function(){this.J||this.I||!this.b.D||(this.I=this.b.D.Bh(this.O,!0,this.b.Ha,this.Jj))};h.tm=
function(){this.J||this.d.length||!this.I||(this.b.D.deleteTexture(this.I),this.I=null)};h.Gl=function(b){b.drawImage(this.O,0,0)};b.ba=function(b){this.type=b;this.b=b.b};h=b.ba.prototype;h.R=function(){this.visible=0===this.B[0];this.wj=new va(0,0,0,0);this.Hq=!1;this.O=this.type.O;this.b.D?(this.type.Wi(),this.I=this.type.I):(this.type.pattern||(this.type.pattern=this.b.La.createPattern(this.type.O,"repeat")),this.pattern=this.type.pattern)};h.cd=function(){this.Hq=!1;this.O=this.type.O};h.Ee=
function(){this.b.D&&this.Hq&&this.I&&(this.b.D.deleteTexture(this.I),this.I=null)};h.hd=function(b){b.globalAlpha=this.opacity;b.save();b.fillStyle=this.pattern;var l=this.x,g=this.y;this.b.Jd&&(l=Math.round(l),g=Math.round(g));var h=-(this.qc*this.width),c=-(this.rc*this.height),a=h%this.O.width,m=c%this.O.height;0>a&&(a+=this.O.width);0>m&&(m+=this.O.height);b.translate(l,g);b.rotate(this.j);b.translate(a,m);b.fillRect(h-a,c-m,this.width,this.height);b.restore()};h.Uf=function(b){this.Ub(b)};h.Ub=
function(b){b.Ac(this.I);b.Gf(this.opacity);var l=this.wj;l.right=this.width/this.O.width;l.bottom=this.height/this.O.height;var g=this.oc;if(this.b.Jd){var h=Math.round(this.x)-this.x,c=Math.round(this.y)-this.y;b.Je(g.Pb+h,g.Qb+c,g.jc+h,g.kc+c,g.Zb+h,g.$b+c,g.Xb+h,g.Yb+c,l)}else b.Je(g.Pb,g.Qb,g.jc,g.kc,g.Zb,g.$b,g.Xb,g.Yb,l)};b.k=new function(){};b.L=new function(){};b.Ra=new function(){}})();function uc(b){this.b=b}
(function(){function b(a){return a&&!a.paused&&!a.ended&&0<a.currentTime}function h(){var a=d.slice(0);O(d);var c,b,e,g;c=0;for(b=a.length;c<b;++c)g=a[c],(e=g.play())&&e.catch(function(){p(g)})}function p(a){-1===d.indexOf(a)&&d.push(a)}function l(){}function g(){}var q=uc.prototype;q.ma=function(a){this.Ja=a;this.b=a.b};var c=q.ma.prototype;c.R=function(){};c.oj=function(){if(!this.J){var a,c,b;a=0;for(c=this.d.length;a<c;++a)b=this.d[a],b.I=null}};var c=document.createElement("video"),a=!!c.canPlayType("video/webm"),
m=!!c.canPlayType("video/ogg"),v=!!c.canPlayType("video/mp4"),c=null;q.ba=function(a){this.type=a;this.b=a.b};var c=q.ba.prototype,d=[];document.addEventListener("touchend",h,!0);document.addEventListener("click",h,!0);document.addEventListener("keydown",h,!0);c.Bg=function(a){if(this.video){var c=this;if(a){var b;try{b=this.video.play()}catch(e){p(this.video);return}b?b.catch(function(){c.video&&p(c.video)}):this.ty&&!this.b.Ic&&p(this.video)}else a=d.indexOf(this.video),0<=a&&d.splice(a,1)}};c.R=
function(){this.wy=this.B[0];this.Yw=this.B[1];this.Ww=this.B[2];this.autoplay=this.B[3];this.qx=0!==this.B[4];this.tp=!1;this.video=document.createElement("video");this.video.crossOrigin="anonymous";this.video.playsInline=!0;this.I=null;this.oe=-1;this.Sj=this.Lg=null;this.uy=this.b.ae||this.b.lh;var a=this;this.video.addEventListener("canplay",function(){a.oe=0;a.b.trigger(uc.prototype.k.cf,a)});this.video.addEventListener("canplaythrough",function(){a.oe=1;a.b.trigger(uc.prototype.k.cf,a)});this.video.addEventListener("ended",
function(){a.oe=2;a.b.trigger(uc.prototype.k.cf,a)});this.video.addEventListener("error",function(){a.oe=3;a.b.trigger(uc.prototype.k.cf,a)});this.video.addEventListener("loadstart",function(){a.oe=4;a.b.trigger(uc.prototype.k.cf,a)});this.video.addEventListener("playing",function(){a.oe=5;a.b.trigger(uc.prototype.k.cf,a)});this.video.addEventListener("pause",function(){a.oe=6;a.b.trigger(uc.prototype.k.cf,a)});this.video.addEventListener("stalled",function(){a.oe=7;a.b.trigger(uc.prototype.k.cf,
a)});this.ty=(this.b.sh||this.b.kh&&(this.b.Vk||this.b.Di))&&!this.b.Fi&&!this.b.fb;0===this.autoplay?(this.video.autoplay=!1,this.video.hs="none"):1===this.autoplay?(this.video.autoplay=!1,this.video.hs="auto"):2===this.autoplay&&(this.video.autoplay=!0);this.Xo(this.wy,this.Yw,this.Ww);2===this.autoplay&&this.Bg(!0);this.visible=0!==this.B[5];this.b.Lj(this);this.xc||(a=this,this.b.Pp(function(c){a.yo(c)}))};c.yo=function(a){!this.qx&&this.video&&(a?b(this.video)&&(this.Bg(!1),this.video.pause(),
this.tp=!0):this.tp&&(this.Bg(!0),this.tp=!1))};c.Xo=function(c,b,d){var e="";a&&c?e=c:m&&b?e=b:v&&d&&(e=d);e&&(this.b.Pq(e)||(e=e.toLowerCase()),this.video.src=e);this.b.D&&this.I&&(this.b.D.deleteTexture(this.I),this.I=null);this.Sj=this.Lg=null};c.Ee=function(){this.Bg(!1);b(this.video)&&this.video.pause();this.b.D&&this.I&&(this.b.D.deleteTexture(this.I),this.I=null);this.Sj=this.Lg=null;this.video.src="";this.video=null};c.za=function(){b(this.video)&&(this.b.wa=!0)};c.Ya=function(){return{s:this.video.src||
"",p:!!b(this.video),t:this.video.currentTime||0}};c.rb=function(a){if(a&&"undefined"!==typeof a.s){var c=a.s;this.Xo(c,c,c);try{this.video.currentTime=a.t}catch(b){}a.p?this.Bg(!0):(this.Bg(!1),this.video.pause())}};c.hd=function(a){if(this.video){var c=this.video.videoWidth,b=this.video.videoHeight;if(!(0>=c||0>=b)){var c=c/b,b=this.width,d=this.height,e=0,g=0,l=0,k=0;b/d>c?(l=d*c,k=d,e=Math.floor((b-l)/2),0>e&&(e=0)):(l=b,k=b/c,g=Math.floor((d-k)/2),0>g&&(g=0));a.globalAlpha=this.opacity;a.drawImage(this.video,
this.x+e,this.y+g,l,k)}}};var e=new va(0,0,0,0),k=new wa;c.Ub=function(a){if(this.video){var c=this.video.videoWidth,b=this.video.videoHeight;if(!(0>=c||0>=b)){var d=c/b,g=this.width,l=this.height,m=0,h=0,p=0,q=0;g/l>d?(p=l*d,q=l,m=Math.floor((g-p)/2),0>m&&(m=0)):(p=g,q=g/d,h=Math.floor((l-q)/2),0>h&&(h=0));this.I||(this.I=a.Qc(c,b,this.b.Ha,!1,!1));this.uy?(this.Sj||(this.Lg=document.createElement("canvas"),this.Lg.width=c,this.Lg.height=b,this.Sj=this.Lg.getContext("2d")),this.Sj.drawImage(this.video,
0,0),a.gt(this.Lg,this.I)):a.gt(this.video,this.I);a.Le(this.Ob,this.Eb);a.Gf(this.opacity);a.Ac(this.I);e.set(this.x+m,this.y+h,this.x+m+p,this.y+h+q);k.Ne(e);a.Ag(k.Pb,k.Qb,k.jc,k.kc,k.Zb,k.$b,k.Xb,k.Yb)}}};l.prototype.cf=function(a){return this.oe===a};q.k=new l;g.prototype.du=function(a,c,b){this.Xo(a,c,b);this.video.load()};g.prototype.Ip=function(a){this.video.loop=0!==a};g.prototype.Play=function(){this.Bg(!0)};q.L=new g;q.Ra=new function(){}})();function vc(b){this.b=b}
(function(){function b(){}var h=vc.prototype;h.ma=function(b){this.behavior=b;this.b=b.b};h.ma.prototype.R=function(){};h.ba=function(b,g){this.type=b;this.behavior=b.behavior;this.c=g;this.b=b.b};var p=h.ba.prototype;p.R=function(){var b=this.B[0];this.ea=this.B[1];this.Gb=this.B[2];this.su=0!==this.B[3];this.Uo=0!==this.B[4];this.q=Math.cos(this.c.j)*b;this.u=Math.sin(this.c.j)*b;this.bl=this.c.x;this.cl=this.c.y;this.Kb=this.c.j;this.pm=0;this.enabled=0!==this.B[5]};p.Ya=function(){return{acc:this.ea,
g:this.Gb,dx:this.q,dy:this.u,lx:this.bl,ly:this.cl,lka:this.Kb,t:this.pm,e:this.enabled}};p.rb=function(b){this.ea=b.acc;this.Gb=b.g;this.q=b.dx;this.u=b.dy;this.bl=b.lx;this.cl=b.ly;this.Kb=b.lka;this.pm=b.t;this.enabled=b.e};p.za=function(){if(this.enabled){var b=this.b.we(this.c),g,h;this.c.j!==this.Kb&&(this.Uo&&(g=Ra(0,0,this.q,this.u),this.q=Math.cos(this.c.j)*g,this.u=Math.sin(this.c.j)*g),this.Kb=this.c.j);0!==this.ea&&(g=Ra(0,0,this.q,this.u),h=0===this.q&&0===this.u?this.c.j:Ma(0,0,this.q,
this.u),g+=this.ea*b,0>g&&(g=0),this.q=Math.cos(h)*g,this.u=Math.sin(h)*g);0!==this.Gb&&(this.u+=this.Gb*b);this.bl=this.c.x;this.cl=this.c.y;if(0!==this.q||0!==this.u)if(this.c.x+=this.q*b,this.c.y+=this.u*b,this.pm+=Ra(0,0,this.q*b,this.u*b),this.Uo&&(this.c.j=Ma(0,0,this.q,this.u),this.c.C(),this.Kb=this.c.j),this.c.C(),this.su&&(g=this.b.Va(this.c)))this.b.Yc(this.c,g),g=Ra(0,0,this.q,this.u),h=this.b.vu(this.c,this.bl,this.cl),this.q=Math.cos(h)*g,this.u=Math.sin(h)*g,this.c.x+=this.q*b,this.c.y+=
this.u*b,this.c.C(),this.Uo&&(this.Kb=this.c.j=h,this.c.C()),this.b.Nc(this.c,this.q/g,this.u/g,Math.max(2.5*g*b,30))||this.b.Ho(this.c,100)}};h.k=new function(){};b.prototype.Zt=function(b){b=V(b);var g=Ra(0,0,this.q,this.u);this.q=Math.cos(b)*g;this.u=Math.sin(b)*g};b.prototype.Qg=function(b){this.enabled=1===b};h.L=new b;h.Ra=new function(){}})();function wc(b){this.b=b}
(function(){function b(){}var h=wc.prototype;h.ma=function(b){this.behavior=b;this.b=b.b};h.ma.prototype.R=function(){};h.ba=function(b,g){this.type=b;this.behavior=b.behavior;this.c=g;this.b=b.b;this.Qe=this.Pe=this.Yl=this.Zl=this.ig=this.Pd=this.Gd=this.ni=this.Mj=!1;this.jo=this.ho=this.fo=this.ko=-1;this.u=this.q=0};var p=h.ba.prototype;p.R=function(){this.ld=this.B[0];this.ea=this.B[1];this.Za=this.B[2];this.cn=this.B[3];this.Hm=this.B[4];this.an=1===this.B[5];this.enabled=0!==this.B[6];this.an&&
!this.b.fb&&(jQuery(document).keydown(function(b){return function(g){b.lj(g)}}(this)),jQuery(document).keyup(function(b){return function(g){b.mj(g)}}(this)))};p.Ya=function(){return{dx:this.q,dy:this.u,enabled:this.enabled,maxspeed:this.ld,acc:this.ea,dec:this.Za,ignoreInput:this.ig}};p.rb=function(b){this.q=b.dx;this.u=b.dy;this.enabled=b.enabled;this.ld=b.maxspeed;this.ea=b.acc;this.Za=b.dec;this.ig=b.ignoreInput;this.Qe=this.Pe=this.Yl=this.Zl=this.Pd=this.Gd=this.ni=this.Mj=!1;this.jo=this.ho=
this.fo=this.ko=-1};p.lj=function(b){var g=this.b.Jf;switch(b.which){case 37:b.preventDefault();this.ho<g&&(this.Gd=!0);break;case 38:b.preventDefault();this.ko<g&&(this.Mj=!0);break;case 39:b.preventDefault();this.jo<g&&(this.Pd=!0);break;case 40:b.preventDefault(),this.fo<g&&(this.ni=!0)}};p.mj=function(b){var g=this.b.Jf;switch(b.which){case 37:b.preventDefault();this.Gd=!1;this.ho=g;break;case 38:b.preventDefault();this.Mj=!1;this.ko=g;break;case 39:b.preventDefault();this.Pd=!1;this.jo=g;break;
case 40:b.preventDefault(),this.ni=!1,this.fo=g}};p.Fe=function(){this.Pd=this.Gd=this.ni=this.Mj=!1};p.za=function(){var b=this.b.we(this.c),g=this.Gd||this.Pe,h=this.Pd||this.Qe,c=this.Mj||this.Zl,a=this.ni||this.Yl;this.Yl=this.Zl=this.Qe=this.Pe=!1;if(this.enabled){var m=this.b.Va(this.c);if(m&&(this.b.Yc(this.c,m),!this.b.Ho(this.c)))return;this.ig&&(a=c=h=g=!1);0===this.cn?h=g=!1:1===this.cn&&(a=c=!1);2===this.cn&&(c||a)&&(h=g=!1);g==h&&(0>this.q?(this.q+=this.Za*b,0<this.q&&(this.q=0)):0<this.q&&
(this.q-=this.Za*b,0>this.q&&(this.q=0)));c==a&&(0>this.u?(this.u+=this.Za*b,0<this.u&&(this.u=0)):0<this.u&&(this.u-=this.Za*b,0>this.u&&(this.u=0)));g&&!h&&(this.q=0<this.q?this.q-(this.ea+this.Za)*b:this.q-this.ea*b);h&&!g&&(this.q=0>this.q?this.q+(this.ea+this.Za)*b:this.q+this.ea*b);c&&!a&&(this.u=0<this.u?this.u-(this.ea+this.Za)*b:this.u-this.ea*b);a&&!c&&(this.u=0>this.u?this.u+(this.ea+this.Za)*b:this.u+this.ea*b);if(0!==this.q||0!==this.u){Math.sqrt(this.q*this.q+this.u*this.u)>this.ld&&
(m=Math.atan2(this.u,this.q),this.q=this.ld*Math.cos(m),this.u=this.ld*Math.sin(m));h=this.c.x;c=this.c.y;g=this.c.j;this.c.x+=this.q*b;this.c.C();if(m=this.b.Va(this.c))this.b.Nc(this.c,0>this.q?1:-1,0,Math.abs(Math.floor(this.q*b)))||(this.c.x=h),this.q=0,this.c.C(),this.b.Yc(this.c,m);this.c.y+=this.u*b;this.c.C();if(m=this.b.Va(this.c))this.b.Nc(this.c,0,0>this.u?1:-1,Math.abs(Math.floor(this.u*b)))||(this.c.y=c),this.u=0,this.c.C(),this.b.Yc(this.c,m);b=hb(this.q);m=hb(this.u);0===b&&0===m||
!this.c.type.Ja.Mw||(1===this.Hm?this.c.j=La(90*Math.round(Ha(Math.atan2(m,b))/90)):2===this.Hm?this.c.j=La(45*Math.round(Ha(Math.atan2(m,b))/45)):3===this.Hm&&(this.c.j=Math.atan2(m,b)));this.c.C();this.c.j!=g&&(m=this.b.Va(this.c))&&(this.c.j=g,this.c.C(),this.b.Yc(this.c,m))}}};h.k=new function(){};b.prototype.Kp=function(b){switch(b){case 0:this.Pe=!0;break;case 1:this.Qe=!0;break;case 2:this.Zl=!0;break;case 3:this.Yl=!0}};b.prototype.Qg=function(b){this.enabled=1===b};h.L=new b;h.Ra=new function(){}})();
function xc(b){this.b=b}
(function(){function b(){}function h(){}var p={},l=xc.prototype;l.Kh=function(){var a,b;for(a in p)p.hasOwnProperty(a)&&(b=p[a],b.Ge.unsetReady(),b.xj=!0)};l.ma=function(a){this.behavior=a;this.b=a.b};l.ma.prototype.R=function(){this.jj=[];this.kf=[]};l.ba=function(a,b){this.type=a;this.behavior=a.behavior;this.c=b;this.b=a.b};var g=l.ba.prototype;g.R=function(){this.Pa=this.B[0];3>this.Pa&&(this.Pa=3);this.zd=this.B[1];this.Xw=this.B[2];this.ee=this.B[3];this.ea=this.B[4];this.Za=this.B[5];this.bk=
V(this.B[6]);this.Ol=0!==this.B[7];this.xk=0!==this.B[8];this.enabled=0!==this.B[9];this.ih=this.ri=this.fj=this.sf=!1;this.vc=0;this.Kb=this.ad=this.c.j;this.Oh=this.Nd=this.Md=this.Xa=0;this.Cf=Math.ceil(this.b.ua.width/this.Pa);this.wg=Math.ceil(this.b.ua.height/this.Pa);this.Sa=[];this.Xg=!1;this.uk=this.tk=0;this.Ei=this.Zk=!1;this.Zp=this.Yp=0;this.tq=!0;var a=this;this.xc||(this.nx=function(){a.Zk||(a.Ei=!1,a.Au(),a.ih=0<a.Sa.length,a.vc=0,a.b.trigger(xc.prototype.k.Fp,a.c),a.dn())},this.mx=
function(){a.Zk||(a.Ei=!1,a.cq(),a.ih=!1,a.sf=!1,a.vc=0,a.b.trigger(xc.prototype.k.Ap,a.c),a.dn())})};g.Ee=function(){this.Zk=!0;this.Xg=!1};g.Ya=function(){var a={cs:this.Pa,cb:this.zd,ms:this.ee,acc:this.ea,dec:this.Za,av:this.bk,re:this.Ol,de:this.xk,im:this.sf,mfs:this.fj,ftmwm:this.ri,hp:this.ih,mn:this.vc,a:this.ad,lka:this.Kb,s:this.Xa,rx:this.Md,ry:this.Nd,ra:this.Oh,myhc:this.Cf,myvc:this.wg,path:this.Sa,en:this.enabled,fr:this.tq,obs:[],costs:[]};this.Ei?(a.dfp=!0,a.dpx=this.Yp,a.dpy=this.Zp):
(a.dfp=this.Xg,a.dpx=this.tk,a.dpy=this.uk);var b,c;b=0;for(c=this.type.jj.length;b<c;b++)a.obs.push(this.type.jj[b].aa);b=0;for(c=this.type.kf.length;b<c;b++)a.costs.push({sid:this.type.kf[b].la.aa,cost:this.type.kf[b].fq});return a};g.rb=function(a){this.Pa=a.cs;this.zd=a.cb;this.ee=a.ms;this.ea=a.acc;this.Za=a.dec;this.bk=a.av;this.Ol=a.re;this.xk=a.de;this.sf=a.im;this.fj=a.mfs;this.ri=a.ftmwm;this.ih=a.hp;this.vc=a.mn;this.ad=a.a;this.Kb=a.lka;this.Xa=a.s;this.Md=a.rx;this.Nd=a.ry;this.Oh=a.ra;
this.Cf=a.myhc;this.wg=a.myvc;this.Sa=a.path;this.enabled=a.en;this.tq=a.fr;this.Xg=a.dfp;this.tk=a.dpx;this.uk=a.dpy;O(this.type.jj);var b=a.obs,c,d,e;c=0;for(d=b.length;c<d;c++)(e=this.b.fh(b[c]))&&this.type.jj.push(e);O(this.type.kf);a=a.costs;c=0;for(d=a.length;c<d;c++)(e=this.b.fh(a[c].sid))&&this.type.kf.push({la:e,fq:a[c].cost});this.bg().Ge.setDiagonals(this.xk)};g.cd=function(){this.bg().xj=!0};g.za=function(){if(this.enabled&&this.sf){this.Ol&&this.c.j!==this.Kb&&(this.ad=this.c.j);var a=
this.b.we(this.c),b,c,d,e,g,f=this.c,h=Math.min(.4*this.ee,2*Math.abs(this.c.width)),l=Math.max(1.5*this.Xa,30);this.vc<this.Sa.length?(e=this.Sa[this.vc].x,g=this.Sa[this.vc].y,d=Ra(this.Md,this.Nd,e,g),d<3*l*a&&(this.vc++,this.Md=e,this.Nd=g,this.vc<this.Sa.length&&(e=this.Sa[this.vc].x,g=this.Sa[this.vc].y))):(e=this.Sa[this.Sa.length-1].x,g=this.Sa[this.Sa.length-1].y);this.Oh=Ma(this.Md,this.Nd,e,g);d=Ra(f.x,f.y,this.Md,this.Nd);d<h&&this.vc<this.Sa.length&&(this.ri?this.ri=!1:h=l*a,this.Md+=
Math.cos(this.Oh)*h,this.Nd+=Math.sin(this.Oh)*h);b=Ma(f.x,f.y,this.Md,this.Nd);c=Na(this.ad,b);h=Ra(f.x,f.y,this.Sa[this.Sa.length-1].x,this.Sa[this.Sa.length-1].y);l=this.ee*this.ee/(2*this.Za);1<d&&(this.ad=Oa(this.ad,b,this.bk*a),.5>=Ha(c)?c=this.ee:120<=Ha(c)||this.fj&&0===this.vc?(c=0,this.fj=!0):(b=c/this.bk,d=Ra(f.x,f.y,this.Md,this.Nd),d=d/(2*Math.sin(c)),c=d*c/b,0>c&&(c=0),c>this.ee&&(c=this.ee)),h<l&&(c=Math.min(c,h/l*this.ee+this.ee/40)),this.Xa+=this.ea*a,this.Xa>c&&(this.Xa=c));f.x+=
Math.cos(this.ad)*this.Xa*a;f.y+=Math.sin(this.ad)*this.Xa*a;this.Ol&&(this.Kb=f.j=this.ad);f.C();this.vc===this.Sa.length&&Ra(f.x,f.y,e,g)<Math.max(3*this.Xa*a,10)&&(this.ih=this.sf=!1,this.Xa=this.vc=0,this.b.trigger(xc.prototype.k.Kt,f))}};g.Kj=function(){this.enabled&&(this.Uv(),this.dn())};g.dn=function(){this.Xg&&!this.Zk&&(this.Xg=!1,this.lq(this.c.x,this.c.y,this.tk,this.uk))};g.bg=function(){var a=""+this.Pa+","+this.zd;p.hasOwnProperty(a)||(p[a]={Ge:new window.Pathfinder,cells:null,xj:!1,
Cg:[]});return p[a]};g.Uv=function(){var a=this.bg();if(!a.Ge.isReady()||a.xj||a.Cg.length){var b,c,d,e,g,f,h,l,p,n;if(!a.Ge.isReady()||a.xj){this.Cf=Math.ceil(this.b.ua.width/this.Pa);this.wg=Math.ceil(this.b.ua.height/this.Pa);b=[];e=b.length=this.Cf;g=this.wg;for(c=0;c<e;++c)for(b[c]=[],b[c].length=g,d=0;d<g;++d)b[c][d]=this.os(c,d);a.cells=b;a.Ge.init(this.Cf,this.wg,b,this.xk);a.xj=!1;O(a.Cg)}else if(a.Cg.length){f=0;for(h=a.Cg.length;f<h;++f){b=a.Cg[f];l=b[0];p=b[1];e=b[2];c=b[3];b=[];e=e-l;
g=c-p;b.length=e;for(c=0;c<e;++c)for(b[c]=[],b[c].length=g,d=0;d<g;++d)n=this.os(l+c,p+d),b[c][d]=n,a.cells[l+c][p+d]=n;a.Ge.updateRegion(l,p,e,g,b)}O(a.Cg)}}};g.cq=function(){var a,b;a=0;for(b=this.Sa.length;a<b;a++)window.freeResultNode(this.Sa[a]);O(this.Sa)};g.Au=function(){var a=this.bg().Ge.pathList;this.cq();var b,c,d,e;b=0;for(c=a.length;b<c;b++)d=a[b],e=window.allocResultNode(),e.x=(d.x+.5)*this.Pa,e.y=(d.y+.5)*this.Pa,this.Sa.push(e)};var q=[],c=new va;g.os=function(a,b){var g,d,e,k,f,h=
0;c.left=a*this.Pa-this.zd;c.top=b*this.Pa-this.zd;c.right=(a+1)*this.Pa+this.zd;c.bottom=(b+1)*this.Pa+this.zd;if(0===this.Xw){if(this.b.hy(c))return window.PF_OBSTACLE}else{this.b.Bn(this.c.A,this.type.jj,c,q);g=0;for(d=q.length;g<d;++g)if(this.b.fp(c,q[g]))return O(q),window.PF_OBSTACLE;q.length=0}g=0;for(d=this.type.kf.length;g<d;g++){e=this.type.kf[g].la;f=this.type.kf[g].fq;this.b.Nk(this.c.A,e,c,q);e=0;for(k=q.length;e<k;++e)this.b.fp(c,q[e])&&(h+=f);O(q)}return h};g.lq=function(a,b,c,d){var e=
this.bg().Ge;if(e.isReady()){this.Ei=!0;this.Yp=c;this.Zp=d;a=Math.floor(a/this.Pa);b=Math.floor(b/this.Pa);c=Math.floor(c/this.Pa);d=Math.floor(d/this.Pa);var g,f,h,l,p,n,q;if(e.at(c,d)===window.PF_OBSTACLE){g=1E6;for(l=h=f=0;l<this.Cf;l++)for(p=0;p<this.wg;p++)e.at(l,p)!==window.PF_OBSTACLE&&(n=c-l,q=d-p,n=n*n+q*q,n<g&&(g=n,f=l,h=p));c=f;d=h}e.findPath(a,b,c,d,this.nx,this.mx)}};b.prototype.Fp=function(){return!0};b.prototype.Ap=function(){return!0};b.prototype.Kt=function(){return!0};l.k=new b;
h.prototype.wt=function(a,b){this.enabled&&(this.Ei||!this.bg().Ge.isReady()?(this.Xg=!0,this.tk=a,this.uk=b):this.lq(this.c.x,this.c.y,a,b))};h.prototype.gu=function(){this.ih&&(this.sf&&(this.ri=!0),this.fj=!this.sf,this.sf=!0,this.Md=this.c.x,this.Nd=this.c.y,this.Oh=this.c.j)};h.prototype.Qg=function(a){this.enabled=0!==a};g.Km=function(a,b,c,d){var e=Math.min(a,c)-this.zd,g=Math.min(b,d)-this.zd;a=Math.max(a,c)+this.zd;b=Math.max(b,d)+this.zd;e=Math.max(Math.floor(e/this.Pa),0);g=Math.max(Math.floor(g/
this.Pa),0);a=Math.min(Math.ceil(a/this.Pa),this.Cf);b=Math.min(Math.ceil(b/this.Pa),this.wg);e>=a||g>=b||this.bg().Cg.push([e,g,a,b])};l.L=new h;l.Ra=new function(){}})();function yc(b){this.b=b}
(function(){function b(){}var h=yc.prototype;h.ma=function(b){this.behavior=b;this.b=b.b};h.ma.prototype.R=function(){};h.ba=function(b,g){this.type=b;this.behavior=b.behavior;this.c=g;this.b=b.b};var p=h.ba.prototype;p.R=function(){this.wb=null;this.Al=-1;this.mode=this.Kb=this.mm=this.Hh=this.Ie=this.rj=0;var b=this;this.xc||(this.gj=function(g){b.kj(g)});this.b.Yj(this.gj)};p.Ya=function(){return{uid:this.wb?this.wb.uid:-1,pa:this.rj,pd:this.Ie,msa:this.Hh,tsa:this.mm,lka:this.Kb,m:this.mode}};
p.rb=function(b){this.Al=b.uid;this.rj=b.pa;this.Ie=b.pd;this.Hh=b.msa;this.mm=b.tsa;this.Kb=b.lka;this.mode=b.m};p.cd=function(){-1===this.Al?this.wb=null:this.wb=this.b.dg(this.Al);this.Al=-1};p.kj=function(b){this.wb==b&&(this.wb=null)};p.Ee=function(){this.wb=null;this.b.qs(this.gj)};p.za=function(){};p.Kj=function(){if(this.wb){this.Kb!==this.c.j&&(this.Hh=X(this.Hh+(this.c.j-this.Kb)));var b=this.c.x,g=this.c.y;if(3===this.mode||4===this.mode){var h=Ra(this.c.x,this.c.y,this.wb.x,this.wb.y);
if(h>this.Ie||4===this.mode&&h<this.Ie)g=Ma(this.wb.x,this.wb.y,this.c.x,this.c.y),b=this.wb.x+Math.cos(g)*this.Ie,g=this.wb.y+Math.sin(g)*this.Ie}else b=this.wb.x+Math.cos(this.wb.j+this.rj)*this.Ie,g=this.wb.y+Math.sin(this.wb.j+this.rj)*this.Ie;this.Kb=h=X(this.Hh+(this.wb.j-this.mm));0!==this.mode&&1!==this.mode&&3!==this.mode&&4!==this.mode||this.c.x===b&&this.c.y===g||(this.c.x=b,this.c.y=g,this.c.C());0!==this.mode&&2!==this.mode||this.c.j===h||(this.c.j=h,this.c.C())}};h.k=new function(){};
b.prototype.Yt=function(b,g){if(b){var h=b.Aq(this.c);h&&(this.wb=h,this.rj=Ma(h.x,h.y,this.c.x,this.c.y)-h.j,this.Ie=Ra(h.x,h.y,this.c.x,this.c.y),this.Kb=this.Hh=this.c.j,this.mm=h.j,this.mode=g)}};h.L=new b;h.Ra=new function(){}})();function Ac(b){this.b=b}
(function(){function b(){}function h(){}var p=Ac.prototype;p.ma=function(b){this.behavior=b;this.b=b.b};p.ma.prototype.R=function(){};p.ba=function(b,h){this.type=b;this.behavior=b.behavior;this.c=h;this.b=b.b;this.Ej=this.Qe=this.Pe=this.ig=this.fi=this.mi=this.uh=this.vh=this.Pd=this.Gd=!1;this.Jb=null;this.lo=-1;this.vf=this.uf=0;this.si=!1;this.$g=this.vd=0;this.Hk=!0;this.u=this.q=0};var l=p.ba.prototype;l.bt=function(){this.$a=Math.cos(this.eh);this.ab=Math.sin(this.eh);this.Ef=Math.cos(this.eh-
Math.PI/2);this.Ff=Math.sin(this.eh-Math.PI/2);this.$a=hb(this.$a);this.ab=hb(this.ab);this.Ef=hb(this.Ef);this.Ff=hb(this.Ff);this.sn=this.Gb;0>this.Gb&&(this.$a*=-1,this.ab*=-1,this.Gb=Math.abs(this.Gb))};l.R=function(){this.ld=this.B[0];this.ea=this.B[1];this.Za=this.B[2];this.Oi=this.B[3];this.sn=this.Gb=this.B[4];this.ol=this.B[5];this.hn=0!==this.B[6];this.bo=this.B[7]/1E3;this.an=1===this.B[8];this.enabled=0!==this.B[9];this.$h=!1;this.ai=this.b.If(this.c);this.mo=-1;this.Hg=0;this.eh=V(90);
this.bt();var b=this;this.an&&!this.b.fb&&(jQuery(document).keydown(function(h){b.lj(h)}),jQuery(document).keyup(function(h){b.mj(h)}));this.xc||(this.gj=function(h){b.kj(h)});this.b.Yj(this.gj);this.c.H.isPlatformBehavior=!0};l.Ya=function(){return{ii:this.ig,lfx:this.uf,lfy:this.vf,lfo:this.Jb?this.Jb.uid:-1,am:this.vd,en:this.enabled,fall:this.$g,ft:this.Hk,dx:this.q,dy:this.u,ms:this.ld,acc:this.ea,dec:this.Za,js:this.Oi,g:this.Gb,g1:this.sn,mf:this.ol,wof:this.$h,woj:this.ai?this.ai.uid:-1,ga:this.eh,
edj:this.hn,cdj:this.fi,dj:this.mi,sus:this.bo}};l.rb=function(b){this.ig=b.ii;this.uf=b.lfx;this.vf=b.lfy;this.lo=b.lfo;this.vd=b.am;this.enabled=b.en;this.$g=b.fall;this.Hk=b.ft;this.q=b.dx;this.u=b.dy;this.ld=b.ms;this.ea=b.acc;this.Za=b.dec;this.Oi=b.js;this.Gb=b.g;this.sn=b.g1;this.ol=b.mf;this.$h=b.wof;this.mo=b.woj;this.eh=b.ga;this.hn=b.edj;this.fi=b.cdj;this.mi=b.dj;this.bo=b.sus;this.Ej=this.Qe=this.Pe=this.uh=this.vh=this.Pd=this.Gd=!1;this.Hg=0;this.bt()};l.cd=function(){-1===this.lo?
this.Jb=null:this.Jb=this.b.dg(this.lo);-1===this.mo?this.ai=null:this.ai=this.b.dg(this.mo)};l.kj=function(b){this.Jb==b&&(this.Jb=null)};l.Ee=function(){this.Jb=null;this.b.qs(this.gj)};l.lj=function(b){switch(b.which){case 38:b.preventDefault();this.vh=!0;break;case 37:b.preventDefault();this.Gd=!0;break;case 39:b.preventDefault(),this.Pd=!0}};l.mj=function(b){switch(b.which){case 38:b.preventDefault();this.uh=this.vh=!1;break;case 37:b.preventDefault();this.Gd=!1;break;case 39:b.preventDefault(),
this.Pd=!1}};l.Fe=function(){this.vh=this.Pd=this.Gd=!1};l.Km=function(){return 0>this.Gb?-1:1};l.Tq=function(){var b=null,h=null,c,a;c=this.c.x;a=this.c.y;this.c.x+=this.$a;this.c.y+=this.ab;this.c.C();if(this.Jb&&this.b.ic(this.c,this.Jb)&&(!this.b.lp(this.Jb.type,oc)||this.Jb.H.solidEnabled))return this.c.x=c,this.c.y=a,this.c.C(),this.Jb;(b=this.b.Va(this.c))||0!==this.$g||(h=this.b.If(this.c,!0));this.c.x=c;this.c.y=a;this.c.C();if(b){if(this.b.ic(this.c,b))return null;this.si=!1;return b}if(h&&
h.length){a=b=0;for(c=h.length;b<c;b++)h[a]=h[b],this.b.ic(this.c,h[b])||a++;if(1<=a)return this.si=!0,h[0]}return null};l.za=function(){};l.gs=function(){var b=this.b.we(this.c),h,c,a,l,p,d,e,k,f;this.vh||this.Ej||(this.uh=!1);var D=this.Gd||this.Pe;a=this.Pd||this.Qe;var F=(l=this.vh||this.Ej)&&!this.uh;this.Ej=this.Qe=this.Pe=!1;if(this.enabled){this.ig&&(F=l=a=D=!1);l||(this.Hg=0);k=this.Jb;f=!1;this.Hk&&((this.b.Va(this.c)||this.b.If(this.c))&&this.b.Nc(this.c,-this.$a,-this.ab,4,!0),this.Hk=
!1);!k||0!==this.u||k.y===this.vf&&k.x===this.uf||(h=k.x-this.uf,c=k.y-this.vf,this.c.x+=h,this.c.y+=c,this.c.C(),this.uf=k.x,this.vf=k.y,f=!0,this.b.Va(this.c)&&this.b.Nc(this.c,-h,-c,2.5*Math.sqrt(h*h+c*c)));var B=this.Tq();if(c=this.b.Va(this.c))if(p=Math.abs(this.c.width),d=Math.abs(this.c.height),this.c.H.inputPredicted)this.b.Nc(this.c,-this.$a,-this.ab,10,!1);else if(this.b.Go(this.c,-this.$a,-this.ab,d/8))this.b.Yc(this.c,c);else if(this.b.Go(this.c,this.Ef,this.Ff,p/2))this.b.Yc(this.c,c);
else if(this.b.Go(this.c,this.$a,this.ab,d/2))this.b.Yc(this.c,c);else if(this.b.Ho(this.c,Math.max(p,d)/2))this.b.Yc(this.c,c);else return;B?(this.fi=this.mi=!1,0<this.u&&(this.$h||(this.b.Kl(this.c,-this.$a,-this.ab,B),this.$h=!0),this.u=0),k!=B)?(this.Jb=B,this.uf=B.x,this.vf=B.y,this.b.Yc(this.c,B)):f&&(c=this.b.Va(this.c))&&(this.b.Yc(this.c,c),0!==h&&(0<h?this.b.Nc(this.c,-this.Ef,-this.Ff):this.b.Nc(this.c,this.Ef,this.Ff)),this.b.Nc(this.c,-this.$a,-this.ab)):l||(this.fi=!0);if(B&&F||!B&&
this.hn&&l&&this.fi&&!this.mi)k=this.c.x,f=this.c.y,this.c.x-=this.$a,this.c.y-=this.ab,this.c.C(),this.b.Va(this.c)?F=!1:(this.Hg=this.bo,this.b.trigger(Ac.prototype.k.Pt,this.c),this.vd=2,this.u=-this.Oi,F=!0,B?this.uh=!0:this.mi=!0),this.c.x=k,this.c.y=f,this.c.C();B||(l&&0<this.Hg?(this.u=-this.Oi,this.Hg-=b):(this.Jb=null,this.u+=this.Gb*b,this.u>this.ol&&(this.u=this.ol)),F&&(this.uh=!0));this.$h=!!B;D==a&&(0>this.q?(this.q+=this.Za*b,0<this.q&&(this.q=0)):0<this.q&&(this.q-=this.Za*b,0>this.q&&
(this.q=0)));D&&!a&&(this.q=0<this.q?this.q-(this.ea+this.Za)*b:this.q-this.ea*b);a&&!D&&(this.q=0>this.q?this.q+(this.ea+this.Za)*b:this.q+this.ea*b);this.q>this.ld?this.q=this.ld:this.q<-this.ld&&(this.q=-this.ld);D=!1;0!==this.q&&(k=this.c.x,f=this.c.y,h=this.q*b*this.Ef,c=this.q*b*this.Ff,this.c.x+=this.Ef*(1<this.q?1:-1)-this.$a,this.c.y+=this.Ff*(1<this.q?1:-1)-this.ab,this.c.C(),l=!1,p=this.b.Va(this.c),this.c.x=k+h,this.c.y=f+c,this.c.C(),a=this.b.Va(this.c),!a&&B&&(a=this.b.If(this.c))&&
(this.c.x=k,this.c.y=f,this.c.C(),this.b.ic(this.c,a)?(a=null,l=!1):l=!0,this.c.x=k+h,this.c.y=f+c,this.c.C()),a?(h=Math.abs(this.q*b)+2,p||!this.b.Nc(this.c,-this.$a,-this.ab,h,l,a))?(this.b.Yc(this.c,a),h=Math.max(Math.abs(this.q*b*2.5),30),this.b.Nc(this.c,this.Ef*(0>this.q?1:-1),this.Ff*(0>this.q?1:-1),h,!1)?!B||l||this.si||(k=this.c.x,f=this.c.y,this.c.x+=this.$a,this.c.y+=this.ab,this.b.Va(this.c)?this.b.Nc(this.c,-this.$a,-this.ab,3,!1)||(this.c.x=k,this.c.y=f,this.c.C()):(this.c.x=k,this.c.y=
f,this.c.C())):(this.c.x=k,this.c.y=f,this.c.C()),l||(this.q=0)):!p&&!F&&Math.abs(this.u)<Math.abs(this.Oi/4)&&(this.u=0,B||(D=!0)):(k=this.Tq(),B&&!k?(c=Math.ceil(Math.abs(this.q*b))+2,k=this.c.x,f=this.c.y,this.c.x+=this.$a*c,this.c.y+=this.ab*c,this.c.C(),this.b.Va(this.c)||this.b.If(this.c)?this.b.Nc(this.c,-this.$a,-this.ab,c+2,!0):(this.c.x=k,this.c.y=f,this.c.C())):k&&(!B&&this.si&&(this.Jb=k,this.uf=k.x,this.vf=k.y,this.u=0,D=!0),0===this.u&&this.b.Kl(this.c,-this.$a,-this.ab,k))));if(0!==
this.u){k=this.c.x;f=this.c.y;this.c.x+=this.u*b*this.$a;this.c.y+=this.u*b*this.ab;h=this.c.x;a=this.c.y;this.c.C();c=this.b.Va(this.c);l=!1;if(!c&&0<this.u&&!B){if((l=0<this.$g?null:this.b.If(this.c,!0))&&l.length){if(this.ai){this.c.x=k;this.c.y=f;this.c.C();e=p=0;for(d=l.length;p<d;p++)l[e]=l[p],this.b.ic(this.c,l[p])||e++;l.length=e;this.c.x=h;this.c.y=a;this.c.C()}1<=l.length&&(c=l[0])}l=!!c}c&&(this.b.Yc(this.c,c),this.Hg=0,h=l?Math.abs(this.u*b*2.5+10):Math.max(Math.abs(this.u*b*2.5+10),30),
this.b.Nc(this.c,this.$a*(0>this.u?1:-1),this.ab*(0>this.u?1:-1),h,l,c)?(this.Jb=c,this.uf=c.x,this.vf=c.y,(this.si=l)&&(D=!0),this.u=0):(this.c.x=k,this.c.y=f,this.c.C(),this.$h=!0,l||(this.u=0)))}3!==this.vd&&0<this.u&&!B&&(this.b.trigger(Ac.prototype.k.Ot,this.c),this.vd=3);(B||D)&&0<=this.u&&(3===this.vd||D||F&&0===this.u?(this.b.trigger(Ac.prototype.k.St,this.c),this.vd=0===this.q&&0===this.u?0:1):(0!==this.vd&&0===this.q&&0===this.u&&(this.b.trigger(Ac.prototype.k.Wt,this.c),this.vd=0),1===
this.vd||0===this.q&&0===this.u||F||(this.b.trigger(Ac.prototype.k.Vt,this.c),this.vd=1)));0<this.$g&&this.$g--;this.ai=this.b.If(this.c)}};b.prototype.Pt=function(){return!0};b.prototype.Ot=function(){return!0};b.prototype.Wt=function(){return!0};b.prototype.Vt=function(){return!0};b.prototype.St=function(){return!0};p.k=new b;h.prototype.Kp=function(b){switch(b){case 0:this.Pe=!0;break;case 1:this.Qe=!0;break;case 2:this.Ej=!0}};h.prototype.Qg=function(b){this.enabled!==(1===b)&&(this.enabled=1===
b,this.enabled||(this.Jb=null))};p.L=new h;p.Ra=new function(){}})();function Fc(b){this.b=b}
(function(){var b=Fc.prototype;b.ma=function(b){this.behavior=b;this.b=b.b};b.ma.prototype.R=function(){};b.ba=function(b,h){this.type=b;this.behavior=b.behavior;this.c=h;this.b=b.b};var h=b.ba.prototype;h.R=function(){this.speed=V(this.B[0]);this.ea=V(this.B[1])};h.Ya=function(){return{speed:this.speed,acc:this.ea}};h.rb=function(b){this.speed=b.speed;this.ea=b.acc};h.za=function(){var b=this.b.we(this.c);0!==b&&(0!==this.ea&&(this.speed+=this.ea*b),0!==this.speed&&(this.c.j=X(this.c.j+this.speed*
b),this.c.C()))};b.k=new function(){};b.L=new function(){};b.Ra=new function(){}})();function Gc(b){this.b=b}
(function(){var b=Gc.prototype;b.ma=function(b){this.behavior=b;this.b=b.b};b.ma.prototype.R=function(){};b.ba=function(b,c){this.type=b;this.behavior=b.behavior;this.c=c;this.b=b.b;this.mb=0};var h=b.ba.prototype,p=2*Math.PI,l=Math.PI/2,g=3*Math.PI/2;h.R=function(){this.Na=1===this.B[0];this.Fh=this.B[1];this.xp=this.B[2];this.He=this.B[3];this.He+=Math.random()*this.B[4];0===this.He?this.mb=0:(this.mb=this.B[5]/this.He*p,this.mb+=Math.random()*this.B[6]/this.He*p);this.uc=this.B[7];this.uc+=Math.random()*
this.B[8];this.vj=this.kg=this.ja=0;5===this.Fh&&(this.uc=V(this.uc));this.init()};h.Ya=function(){return{i:this.mb,a:this.Na,mv:this.Fh,w:this.xp,p:this.He,mag:this.uc,iv:this.ja,iv2:this.kg,r:this.vj,lkv:this.Kc,lkv2:this.Pi}};h.rb=function(b){this.mb=b.i;this.Na=b.a;this.Fh=b.mv;this.xp=b.w;this.He=b.p;this.uc=b.mag;this.ja=b.iv;this.kg=b.iv2||0;this.vj=b.r;this.Kc=b.lkv;this.Pi=b.lkv2||0};h.init=function(){switch(this.Fh){case 0:this.ja=this.c.x;break;case 1:this.ja=this.c.y;break;case 2:this.ja=
this.c.width;this.vj=this.c.height/this.c.width;break;case 3:this.ja=this.c.width;break;case 4:this.ja=this.c.height;break;case 5:this.ja=this.c.j;break;case 6:this.ja=this.c.opacity;break;case 7:this.ja=0;break;case 8:this.ja=this.c.x,this.kg=this.c.y}this.Kc=this.ja;this.Pi=this.kg};h.Ye=function(b){b=b%p;switch(this.xp){case 0:return Math.sin(b);case 1:return b<=l?b/l:b<=g?1-2*(b-l)/Math.PI:(b-g)/l-1;case 2:return 2*b/p-1;case 3:return-2*b/p+1;case 4:return b<Math.PI?-1:1}return 0};h.za=function(){var b=
this.b.we(this.c);this.Na&&0!==b&&(0===this.He?this.mb=0:(this.mb+=b/this.He*p,this.mb=this.mb%p),this.my())};h.my=function(){switch(this.Fh){case 0:this.c.x!==this.Kc&&(this.ja+=this.c.x-this.Kc);this.c.x=this.ja+this.Ye(this.mb)*this.uc;this.Kc=this.c.x;break;case 1:this.c.y!==this.Kc&&(this.ja+=this.c.y-this.Kc);this.c.y=this.ja+this.Ye(this.mb)*this.uc;this.Kc=this.c.y;break;case 2:this.c.width=this.ja+this.Ye(this.mb)*this.uc;this.c.height=this.c.width*this.vj;break;case 3:this.c.width=this.ja+
this.Ye(this.mb)*this.uc;break;case 4:this.c.height=this.ja+this.Ye(this.mb)*this.uc;break;case 5:this.c.j!==this.Kc&&(this.ja=X(this.ja+(this.c.j-this.Kc)));this.c.j=X(this.ja+this.Ye(this.mb)*this.uc);this.Kc=this.c.j;break;case 6:this.c.opacity=this.ja+this.Ye(this.mb)*this.uc/100;0>this.c.opacity?this.c.opacity=0:1<this.c.opacity&&(this.c.opacity=1);break;case 8:this.c.x!==this.Kc&&(this.ja+=this.c.x-this.Kc),this.c.y!==this.Pi&&(this.kg+=this.c.y-this.Pi),this.c.x=this.ja+Math.cos(this.c.j)*
this.Ye(this.mb)*this.uc,this.c.y=this.kg+Math.sin(this.c.j)*this.Ye(this.mb)*this.uc,this.Kc=this.c.x,this.Pi=this.c.y}this.c.C()};h.Rr=function(b,c){switch(this.Fh){case 2:this.ja*=c.width/b.width;this.vj=c.height/c.width;break;case 3:this.ja*=c.width/b.width;break;case 4:this.ja*=c.height/b.height}};b.k=new function(){};b.L=new function(){};b.Ra=new function(){}})();function Hc(b){this.b=b;this.Zo=this.Xl=this.Dj=this.Yo=0}
(function(){function b(){}var h=Hc.prototype;h.ma=function(b){this.behavior=b;this.b=b.b};h.ma.prototype.R=function(){};h.ba=function(b,g){this.type=b;this.behavior=b.behavior;this.c=g;this.b=b.b};var p=h.ba.prototype;p.R=function(){this.enabled=0!==this.B[0]};p.Ya=function(){return{smg:this.behavior.Yo,ss:this.behavior.Dj,se:this.behavior.Xl,smd:this.behavior.Zo}};p.rb=function(b){this.behavior.Yo=b.smg;this.behavior.Dj=b.ss;this.behavior.Xl=b.se;this.behavior.Zo=b.smd};p.za=function(){};p.Kj=function(){if(this.enabled){var b=
this.behavior.pl.Ve(),g=0,h=0,c,a,m,p=0;c=0;for(a=b.length;c<a;c++){a:{m=b[c];for(var d=void 0,e=void 0,k=void 0,d=0,e=m.P.length;d<e;++d)if(k=m.P[d],k.behavior instanceof Hc){m=k;break a}m=null}m&&m.enabled&&(g+=b[c].x,h+=b[c].y,++p)}b=this.c.A.qb;a=this.b.ob.da;m=c=0;a>=this.behavior.Dj&&a<this.behavior.Xl&&(c=this.behavior.Yo*Math.min(this.b.Jg,1),0===this.behavior.Zo&&(c*=1-(a-this.behavior.Dj)/(this.behavior.Xl-this.behavior.Dj)),a=Math.random()*Math.PI*2,m=Math.random()*c,c=Math.cos(a)*m,m*=
Math.sin(a));b.So(g/p+c);b.To(h/p+m)}};b.prototype.Qg=function(b){this.enabled=0!==b};h.L=new b})();function oc(b){this.b=b}(function(){function b(){}var h=oc.prototype;h.ma=function(b){this.behavior=b;this.b=b.b};h.ma.prototype.R=function(){};h.ba=function(b,g){this.type=b;this.behavior=b.behavior;this.c=g;this.b=b.b};var p=h.ba.prototype;p.R=function(){this.c.H.solidEnabled=0!==this.B[0]};p.za=function(){};h.k=new function(){};b.prototype.Qg=function(b){this.c.H.solidEnabled=!!b};h.L=new b})();
function nc(){return[pc,rc,qc,sc,tc,Z,uc,oc,wc,Hc,Ac,yc,vc,xc,Fc,Gc,Y.prototype.k.Bt,Y.prototype.k.Dp,Z.prototype.L.Jp,tc.prototype.L.Jp,oc.prototype.L.Qg,yc.prototype.L.Yt,pc.prototype.L.Play,Y.prototype.L.bu,Z.prototype.L.au,Z.prototype.k.Mt,Z.prototype.L.$t,Y.prototype.L.ju,Z.prototype.k.ot,Z.prototype.L.qt,Y.prototype.L.it,pc.prototype.L.hu,Y.prototype.k.pt,Z.prototype.L.fu,vc.prototype.L.Zt,Y.prototype.L.eu,Y.prototype.L.iu,Y.prototype.L.xt,qc.prototype.k.Ct,wc.prototype.L.Kp,Z.prototype.Ra.kt,
Z.prototype.L.cu,Y.prototype.k.ut,xc.prototype.L.wt,Z.prototype.Ra.Lp,Z.prototype.Ra.Mp,xc.prototype.k.Fp,xc.prototype.L.gu,xc.prototype.k.Ap,Z.prototype.k.Dt,rc.prototype.k.Dm,uc.prototype.L.du,uc.prototype.L.Ip,rc.prototype.k.Cm,uc.prototype.L.Play,Y.prototype.L.yt]};
