// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa,ca,da,ea,fa,ga,ha,ia,ja,ka,la,ma,na,oa,z,pa,qa,sa,ta,va,wa,za,O,Aa,Ba,Ca,Da,Ea,Q,Fa,Ga,Ha,Ia,Ja,Ka,La,Ma,Na,Oa,Pa,Sa,Ua,Va,Wa,Xa,Ya,Za,$a,ab,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,rb,sb,ub,vb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,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(c){return c.__proto__}:function(c){return c.constructor.prototype});
(function(){function c(a,e,f,d){this.set(a,e,f,d)}function p(){this.ib=this.hb=this.kb=this.jb=this.qb=this.pb=this.Ta=this.Sa=0}function n(a,e,f,d){a<e?f<d?(R=a<f?a:f,F=e>d?e:d):(R=a<d?a:d,F=e>f?e:f):f<d?(R=e<f?e:f,F=a>d?a:d):(R=e<d?e:d,F=a>f?a:f)}function g(){this.items=this.qe=null;this.hj=0;H&&(this.qe=new Set);this.ni=[];this.Cf=!0}function h(a){t[I++]=a}function l(){this.T=this.Tm=this.y=this.Jn=0}function b(a){this.yb=[];this.Dk=this.Fk=this.Gk=this.Ek=0;this.Zj(a)}function a(a,e){this.On=
a;this.Nn=e;this.cells={}}function d(a,e){this.On=a;this.Nn=e;this.cells={}}function r(a,e,f){var d;return D.length?(d=D.pop(),d.Do=a,d.x=e,d.y=f,d):new aa(a,e,f)}function e(a,e,f){this.Do=a;this.x=e;this.y=f;this.Pb=new ca}function f(a,e,f){var d;return E.length?(d=E.pop(),d.Do=a,d.x=e,d.y=f,d):new da(a,e,f)}function k(a,e,f){this.Do=a;this.x=e;this.y=f;this.Pb=[];this.Eh=!0;this.ne=new ca;this.ti=!1}function m(a,e){return a.de-e.de}ea=function(a){window.console&&window.console.log&&window.console.log(a)};
fa=function(a){window.console&&window.console.error&&window.console.error(a)};ga=function(a){return"undefined"===typeof a};ha=function(a){return"number"===typeof a};ia=function(a){return"string"===typeof a};ja=function(a){return 0<a&&0===(a-1&a)};ka=function(a){--a;for(var e=1;32>e;e<<=1)a=a|a>>e;return a+1};la=function(a){return 0>a?-a:a};ma=function(a,e){return a>e?a:e};na=function(a,e){return a<e?a:e};oa=Math.PI;z=function(a){return 0<=a?a|0:(a|0)-1};pa=function(a){var e=a|0;return e===a?e:e+1};
qa=function(a,e,f,d,m,b,k,r){var x,y,q,c;a<f?(y=a,x=f):(y=f,x=a);m<k?(c=m,q=k):(c=k,q=m);if(x<c||y>q)return!1;e<d?(y=e,x=d):(y=d,x=e);b<r?(c=b,q=r):(c=r,q=b);if(x<c||y>q)return!1;x=m-a+k-f;y=b-e+r-d;a=f-a;e=d-e;m=k-m;b=r-b;r=la(e*m-b*a);return la(m*y-b*x)>r?!1:la(a*y-e*x)<=r};c.prototype.set=function(a,e,f,d){this.left=a;this.top=e;this.right=f;this.bottom=d};c.prototype.nh=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};c.prototype.width=function(){return this.right-
this.left};c.prototype.height=function(){return this.bottom-this.top};c.prototype.offset=function(a,e){this.left+=a;this.top+=e;this.right+=a;this.bottom+=e;return this};c.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)};c.prototype.ts=function(a){return!(a.right<this.left||a.bottom<this.top||a.left>this.right||a.top>this.bottom)};c.prototype.us=function(a,e,f){return!(a.right+
e<this.left||a.bottom+f<this.top||a.left+e>this.right||a.top+f>this.bottom)};c.prototype.Cb=function(a,e){return a>=this.left&&a<=this.right&&e>=this.top&&e<=this.bottom};c.prototype.Gi=function(a){return this.left===a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};sa=c;p.prototype.Xg=function(a){this.Sa=a.left;this.Ta=a.top;this.pb=a.right;this.qb=a.top;this.jb=a.right;this.kb=a.bottom;this.hb=a.left;this.ib=a.bottom};p.prototype.fu=function(a,e){if(0===e)this.Xg(a);else{var f=
Math.sin(e),d=Math.cos(e),m=a.left*f,b=a.top*f,r=a.right*f,f=a.bottom*f,k=a.left*d,x=a.top*d,y=a.right*d,d=a.bottom*d;this.Sa=k-b;this.Ta=x+m;this.pb=y-b;this.qb=x+r;this.jb=y-f;this.kb=d+r;this.hb=k-f;this.ib=d+m}};p.prototype.offset=function(a,e){this.Sa+=a;this.Ta+=e;this.pb+=a;this.qb+=e;this.jb+=a;this.kb+=e;this.hb+=a;this.ib+=e;return this};var R=0,F=0;p.prototype.Ar=function(a){n(this.Sa,this.pb,this.jb,this.hb);a.left=R;a.right=F;n(this.Ta,this.qb,this.kb,this.ib);a.top=R;a.bottom=F};p.prototype.Cb=
function(a,e){var f=this.Sa,d=this.Ta,m=this.pb-f,b=this.qb-d,r=this.jb-f,k=this.kb-d,x=a-f,y=e-d,q=m*m+b*b,c=m*r+b*k,b=m*x+b*y,l=r*r+k*k,u=r*x+k*y,h=1/(q*l-c*c),m=(l*b-c*u)*h,q=(q*u-c*b)*h;if(0<=m&&0<q&&1>m+q)return!0;m=this.hb-f;b=this.ib-d;q=m*m+b*b;c=m*r+b*k;b=m*x+b*y;h=1/(q*l-c*c);m=(l*b-c*u)*h;q=(q*u-c*b)*h;return 0<=m&&0<q&&1>m+q};p.prototype.rd=function(a,e){if(e)switch(a){case 0:return this.Sa;case 1:return this.pb;case 2:return this.jb;case 3:return this.hb;case 4:return this.Sa;default:return this.Sa}else switch(a){case 0:return this.Ta;
case 1:return this.qb;case 2:return this.kb;case 3:return this.ib;case 4:return this.Ta;default:return this.Ta}};p.prototype.et=function(){return(this.Sa+this.pb+this.jb+this.hb)/4};p.prototype.gt=function(){return(this.Ta+this.qb+this.kb+this.ib)/4};p.prototype.Vi=function(a,e,f,d){if(this.Cb(a,e)||this.Cb(f,d))return!0;var m,b,r,k,x;for(x=0;4>x;x++)if(m=this.rd(x,!0),b=this.rd(x,!1),r=this.rd(x+1,!0),k=this.rd(x+1,!1),qa(a,e,f,d,m,b,r,k))return!0;return!1};p.prototype.rs=function(a){var e=a.et(),
f=a.gt();if(this.Cb(e,f))return!0;e=this.et();f=this.gt();if(a.Cb(e,f))return!0;var d,m,b,r,k,x,y,q;for(y=0;4>y;y++)for(q=0;4>q;q++)if(e=this.rd(y,!0),f=this.rd(y,!1),d=this.rd(y+1,!0),m=this.rd(y+1,!1),b=a.rd(q,!0),r=a.rd(q,!1),k=a.rd(q+1,!0),x=a.rd(q+1,!1),qa(e,f,d,m,b,r,k,x))return!0;return!1};ta=p;va=function(a,e){for(var f in e)e.hasOwnProperty(f)&&(a[f]=e[f]);return a};wa=function(a,e){var f,d;e=z(e);if(!(0>e||e>=a.length)){f=e;for(d=a.length-1;f<d;f++)a[f]=a[f+1];za(a,d)}};za=function(a,e){a.length=
e};O=function(a){za(a,0)};Aa=function(a,e){O(a);var f,d;f=0;for(d=e.length;f<d;++f)a[f]=e[f]};Ba=function(a,e){a.push.apply(a,e)};Ca=function(a,e){var f,d;f=0;for(d=a.length;f<d;++f)if(a[f]===e)return f;return-1};Da=function(a,e){var f=Ca(a,e);-1!==f&&wa(a,f)};Ea=function(a,e,f){return a<e?e:a>f?f:a};Q=function(a){return a/(180/oa)};Fa=function(a){return 180/oa*a};Ga=function(a){a%=360;0>a&&(a+=360);return a};Ha=function(a){a%=2*oa;0>a&&(a+=2*oa);return a};Ia=function(a){return Ga(Fa(a))};Ja=function(a){return Ha(Q(a))};
Ka=function(a,e,f,d){return Math.atan2(d-e,f-a)};La=function(a,e){if(a===e)return 0;var f=Math.sin(a),d=Math.cos(a),m=Math.sin(e),b=Math.cos(e),f=f*m+d*b;return 1<=f?0:-1>=f?oa:Math.acos(f)};Ma=function(a,e,f){var d=Math.sin(a),m=Math.cos(a),b=Math.sin(e),r=Math.cos(e);return Math.acos(d*b+m*r)>f?0<m*b-d*r?Ha(a+f):Ha(a-f):Ha(e)};Na=function(a,e){var f=Math.sin(a),d=Math.cos(a),m=Math.sin(e),b=Math.cos(e);return 0>=d*m-f*b};Oa=function(a,e,f,d,m,b){if(0===f)return b?a:e;var r=Math.sin(f);f=Math.cos(f);
a-=d;e-=m;var k=a*r;a=a*f-e*r;e=e*f+k;return b?a+d:e+m};Pa=function(a,e,f,d){a=f-a;e=d-e;return Math.sqrt(a*a+e*e)};Sa=function(a,e){return!a!==!e};Ua=function(a){for(var e in a)if(a.hasOwnProperty(e))return!0;return!1};Va=function(a){for(var e in a)a.hasOwnProperty(e)&&delete a[e]};var B=+new Date;Wa=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 q=!1,u=q=!1,S=!1;"undefined"!==typeof window&&(q=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),q=!q&&/safari/i.test(navigator.userAgent),u=/(iphone|ipod|ipad)/i.test(navigator.userAgent),S=window.c2ejecta);var H=!q&&!S&&!u&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;g.prototype.contains=function(a){return this.Ne()?!1:H?this.qe.has(a):this.items&&
this.items.hasOwnProperty(a)};g.prototype.add=function(a){if(H)this.qe.has(a)||(this.qe.add(a),this.Cf=!1);else{var e=a.toString(),f=this.items;f?f.hasOwnProperty(e)||(f[e]=a,this.hj++,this.Cf=!1):(this.items={},this.items[e]=a,this.hj=1,this.Cf=!1)}};g.prototype.remove=function(a){if(!this.Ne())if(H)this.qe.has(a)&&(this.qe["delete"](a),this.Cf=!1);else if(this.items){a=a.toString();var e=this.items;e.hasOwnProperty(a)&&(delete e[a],this.hj--,this.Cf=!1)}};g.prototype.clear=function(){this.Ne()||
(H?this.qe.clear():(this.items=null,this.hj=0),O(this.ni),this.Cf=!0)};g.prototype.Ne=function(){return 0===this.count()};g.prototype.count=function(){return H?this.qe.size:this.hj};var t=null,I=0;g.prototype.DA=function(){if(!this.Cf){if(H)O(this.ni),t=this.ni,I=0,this.qe.forEach(h),t=null,I=0;else{var a=this.ni;O(a);var e,f=0,d=this.items;if(d)for(e in d)d.hasOwnProperty(e)&&(a[f++]=d[e])}this.Cf=!0}};g.prototype.Hd=function(){this.DA();return this.ni};ca=g;new ca;Xa=function(a,e){H?Ya(a,e.qe):
Za(a,e.Hd())};Ya=function(a,e){var f,d,m,b;d=f=0;for(m=a.length;f<m;++f)b=a[f],e.has(b)||(a[d++]=b);za(a,d)};Za=function(a,e){var f,d,m,b;d=f=0;for(m=a.length;f<m;++f)b=a[f],-1===Ca(e,b)&&(a[d++]=b);za(a,d)};l.prototype.add=function(a){this.y=a-this.Jn;this.Tm=this.T+this.y;this.Jn=this.Tm-this.T-this.y;this.T=this.Tm};l.prototype.reset=function(){this.T=this.Tm=this.y=this.Jn=0};$a=l;ab=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};b.prototype.Zj=function(a){this.Rt=a;this.Bd=
a.length/2;this.yb.length=a.length;this.Kk=this.Lk=-1;this.Dr=0};b.prototype.Dg=function(){return!this.Rt.length};b.prototype.aa=function(){for(var a=this.yb,e=a[0],f=e,d=a[1],m=d,b,r,k=1,x=this.Bd;k<x;++k)r=2*k,b=a[r],r=a[r+1],b<e&&(e=b),b>f&&(f=b),r<d&&(d=r),r>m&&(m=r);this.Ek=e;this.Fk=f;this.Gk=d;this.Dk=m};b.prototype.Xg=function(a,e,f){this.yb.length=8;this.Bd=4;var d=this.yb;d[0]=a.left-e;d[1]=a.top-f;d[2]=a.right-e;d[3]=a.top-f;d[4]=a.right-e;d[5]=a.bottom-f;d[6]=a.left-e;d[7]=a.bottom-f;
this.Lk=a.right-a.left;this.Kk=a.bottom-a.top;this.aa()};b.prototype.ci=function(a,e,f,d,b){this.yb.length=8;this.Bd=4;var m=this.yb;m[0]=a.Sa-e;m[1]=a.Ta-f;m[2]=a.pb-e;m[3]=a.qb-f;m[4]=a.jb-e;m[5]=a.kb-f;m[6]=a.hb-e;m[7]=a.ib-f;this.Lk=d;this.Kk=b;this.aa()};b.prototype.eu=function(a){this.Bd=a.Bd;Aa(this.yb,a.yb);this.Ek=a.Ek;this.Gk-a.Gk;this.Fk=a.Fk;this.Dk=a.Dk};b.prototype.gg=function(a,e,f){if(this.Lk!==a||this.Kk!==e||this.Dr!==f){this.Lk=a;this.Kk=e;this.Dr=f;var d,m,b,r,k,x=0,y=1,q=this.Rt,
c=this.yb;0!==f&&(x=Math.sin(f),y=Math.cos(f));f=0;for(b=this.Bd;f<b;f++)d=2*f,m=d+1,r=q[d]*a,k=q[m]*e,c[d]=r*y-k*x,c[m]=k*y+r*x;this.aa()}};b.prototype.Cb=function(a,e){var f=this.yb;if(a===f[0]&&e===f[1])return!0;var d,m,b,r=this.Bd,k=this.Ek-110,x=this.Gk-101,y=this.Fk+131,q=this.Dk+120,c,l,u=0,h=0;for(d=0;d<r;d++)m=2*d,b=(d+1)%r*2,c=f[m],m=f[m+1],l=f[b],b=f[b+1],qa(k,x,a,e,c,m,l,b)&&u++,qa(y,q,a,e,c,m,l,b)&&h++;return 1===u%2||1===h%2};b.prototype.Ui=function(a,e,f){var d=a.yb,m=this.yb;if(this.Cb(d[0]+
e,d[1]+f)||a.Cb(m[0]-e,m[1]-f))return!0;var b,r,k,x,y,q,c,l,u,h,t,g;b=0;for(x=this.Bd;b<x;b++)for(r=2*b,k=(b+1)%x*2,l=m[r],r=m[r+1],u=m[k],h=m[k+1],k=0,c=a.Bd;k<c;k++)if(y=2*k,q=(k+1)%c*2,t=d[y]+e,y=d[y+1]+f,g=d[q]+e,q=d[q+1]+f,qa(l,r,u,h,t,y,g,q))return!0;return!1};b.prototype.Vi=function(a,e,f,d,m,b){var r=this.yb;if(this.Cb(f-a,d-e))return!0;var k,x,y,q,c,l;k=0;for(x=this.Bd;k<x;k++)if(y=2*k,q=(k+1)%x*2,c=r[y]+a,y=r[y+1]+e,l=r[q]+a,q=r[q+1]+e,qa(f,d,m,b,c,y,l,q))return!0;return!1};gb=b;a.prototype.Kf=
function(a,e,f){var d;d=this.cells[a];return d?(d=d[e])?d:f?(d=r(this,a,e),this.cells[a][e]=d):null:f?(d=r(this,a,e),this.cells[a]={},this.cells[a][e]=d):null};a.prototype.zc=function(a){return z(a/this.On)};a.prototype.Ac=function(a){return z(a/this.Nn)};a.prototype.update=function(a,e,f){var d,m,b,r,k;if(e)for(d=e.left,m=e.right;d<=m;++d)for(b=e.top,r=e.bottom;b<=r;++b)if(!f||!f.Cb(d,b))if(k=this.Kf(d,b,!1))k.remove(a),k.Ne()&&(k.Pb.clear(),1E3>D.length&&D.push(k),this.cells[d][b]=null);if(f)for(d=
f.left,m=f.right;d<=m;++d)for(b=f.top,r=f.bottom;b<=r;++b)e&&e.Cb(d,b)||this.Kf(d,b,!0).No(a)};a.prototype.wm=function(a,e){var f,d,m,b,r,k;f=this.zc(a.left);m=this.Ac(a.top);d=this.zc(a.right);for(r=this.Ac(a.bottom);f<=d;++f)for(b=m;b<=r;++b)(k=this.Kf(f,b,!1))&&k.dump(e)};hb=a;d.prototype.Kf=function(a,e,d){var b;b=this.cells[a];return b?(b=b[e])?b:d?(b=f(this,a,e),this.cells[a][e]=b):null:d?(b=f(this,a,e),this.cells[a]={},this.cells[a][e]=b):null};d.prototype.zc=function(a){return z(a/this.On)};
d.prototype.Ac=function(a){return z(a/this.Nn)};d.prototype.update=function(a,e,f){var d,b,m,r,k;if(e)for(d=e.left,b=e.right;d<=b;++d)for(m=e.top,r=e.bottom;m<=r;++m)if(!f||!f.Cb(d,m))if(k=this.Kf(d,m,!1))k.remove(a),k.Ne()&&(k.reset(),1E3>E.length&&E.push(k),this.cells[d][m]=null);if(f)for(d=f.left,b=f.right;d<=b;++d)for(m=f.top,r=f.bottom;m<=r;++m)e&&e.Cb(d,m)||this.Kf(d,m,!0).No(a)};d.prototype.wm=function(a,e,f,d,b){var m,r;a=this.zc(a);e=this.Ac(e);f=this.zc(f);for(m=this.Ac(d);a<=f;++a)for(d=
e;d<=m;++d)(r=this.Kf(a,d,!1))&&r.dump(b)};d.prototype.xz=function(a){var e,f,d,b,m;e=a.left;d=a.top;f=a.right;for(b=a.bottom;e<=f;++e)for(a=d;a<=b;++a)if(m=this.Kf(e,a,!1))m.Eh=!1};ib=d;var D=[];e.prototype.Ne=function(){return this.Pb.Ne()};e.prototype.No=function(a){this.Pb.add(a)};e.prototype.remove=function(a){this.Pb.remove(a)};e.prototype.dump=function(a){Ba(a,this.Pb.Hd())};aa=e;var E=[];k.prototype.Ne=function(){if(!this.Pb.length)return!0;if(this.Pb.length>this.ne.count())return!1;this.lo();
return!0};k.prototype.No=function(a){this.ne.contains(a)?(this.ne.remove(a),this.ne.Ne()&&(this.ti=!1)):this.Pb.length?(this.Pb[this.Pb.length-1].je()>a.je()&&(this.Eh=!1),this.Pb.push(a)):(this.Pb.push(a),this.Eh=!0)};k.prototype.remove=function(a){this.ne.add(a);this.ti=!0;30<=this.ne.count()&&this.lo()};k.prototype.lo=function(){this.ti&&(this.ne.count()===this.Pb.length?this.reset():(Xa(this.Pb,this.ne),this.ne.clear(),this.ti=!1))};k.prototype.Ix=function(){this.Eh||(this.Pb.sort(m),this.Eh=
!0)};k.prototype.reset=function(){O(this.Pb);this.Eh=!0;this.ne.clear();this.ti=!1};k.prototype.dump=function(a){this.lo();this.Ix();this.Pb.length&&a.push(this.Pb)};da=k;var v="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");jb=function(a){return 0>=a||11<=a?"source-over":v[a-1]};kb=function(a,e,f){if(f)switch(a.kc=f.ONE,a.fc=f.ONE_MINUS_SRC_ALPHA,e){case 1:a.kc=f.ONE;a.fc=f.ONE;break;case 3:a.kc=f.ONE;a.fc=f.ZERO;break;
case 4:a.kc=f.ONE_MINUS_DST_ALPHA;a.fc=f.ONE;break;case 5:a.kc=f.DST_ALPHA;a.fc=f.ZERO;break;case 6:a.kc=f.ZERO;a.fc=f.SRC_ALPHA;break;case 7:a.kc=f.ONE_MINUS_DST_ALPHA;a.fc=f.ZERO;break;case 8:a.kc=f.ZERO;a.fc=f.ONE_MINUS_SRC_ALPHA;break;case 9:a.kc=f.DST_ALPHA;a.fc=f.ONE_MINUS_SRC_ALPHA;break;case 10:a.kc=f.ONE_MINUS_DST_ALPHA,a.fc=f.SRC_ALPHA}};lb=function(a){return Math.round(1E6*a)/1E6};mb=function(a,e){return"string"!==typeof a||"string"!==typeof e||a.length!==e.length?!1:a===e?!0:a.toLowerCase()===
e.toLowerCase()};nb=function(a){a=a.target;return!a||a===document||a===window||document&&document.body&&a===document.body||mb(a.tagName,"canvas")?!0:!1}})();var gc="undefined"!==typeof Float32Array?Float32Array:Array;function hc(c){var p=new gc(3);c&&(p[0]=c[0],p[1]=c[1],p[2]=c[2]);return p}
function ic(c){var p=new gc(16);c&&(p[0]=c[0],p[1]=c[1],p[2]=c[2],p[3]=c[3],p[4]=c[4],p[5]=c[5],p[6]=c[6],p[7]=c[7],p[8]=c[8],p[9]=c[9],p[10]=c[10],p[11]=c[11],p[12]=c[12],p[13]=c[13],p[14]=c[14],p[15]=c[15]);return p}function jc(c,p){p[0]=c[0];p[1]=c[1];p[2]=c[2];p[3]=c[3];p[4]=c[4];p[5]=c[5];p[6]=c[6];p[7]=c[7];p[8]=c[8];p[9]=c[9];p[10]=c[10];p[11]=c[11];p[12]=c[12];p[13]=c[13];p[14]=c[14];p[15]=c[15]}
function kc(c,p){var n=p[0],g=p[1];p=p[2];c[0]*=n;c[1]*=n;c[2]*=n;c[3]*=n;c[4]*=g;c[5]*=g;c[6]*=g;c[7]*=g;c[8]*=p;c[9]*=p;c[10]*=p;c[11]*=p}
function lc(c,p,n,g){g||(g=ic());var h,l,b,a,d,r,e,f,k=c[0],m=c[1];c=c[2];l=n[0];b=n[1];h=n[2];n=p[1];r=p[2];k===p[0]&&m===n&&c===r?(c=g,c[0]=1,c[1]=0,c[2]=0,c[3]=0,c[4]=0,c[5]=1,c[6]=0,c[7]=0,c[8]=0,c[9]=0,c[10]=1,c[11]=0,c[12]=0,c[13]=0,c[14]=0,c[15]=1):(n=k-p[0],r=m-p[1],e=c-p[2],f=1/Math.sqrt(n*n+r*r+e*e),n*=f,r*=f,e*=f,p=b*e-h*r,h=h*n-l*e,l=l*r-b*n,(f=Math.sqrt(p*p+h*h+l*l))?(f=1/f,p*=f,h*=f,l*=f):l=h=p=0,b=r*l-e*h,a=e*p-n*l,d=n*h-r*p,(f=Math.sqrt(b*b+a*a+d*d))?(f=1/f,b*=f,a*=f,d*=f):d=a=b=0,
g[0]=p,g[1]=b,g[2]=n,g[3]=0,g[4]=h,g[5]=a,g[6]=r,g[7]=0,g[8]=l,g[9]=d,g[10]=e,g[11]=0,g[12]=-(p*k+h*m+l*c),g[13]=-(b*k+a*m+d*c),g[14]=-(n*k+r*m+e*c),g[15]=1)}
(function(){function c(a,d,b){this.Oe=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.Pa=!!b;this.Dl=this.Xi=!1;this.Wn=0;this.sn=1;this.Cq=1E3;this.JA=(this.Cq-this.sn)/32768;this.Kn=hc([0,0,100]);this.Os=hc([0,0,0]);this.Au=hc([0,1,0]);this.rk=hc([1,1,1]);this.Nr=!0;this.Tl=ic();this.fd=ic();this.$o=ic();this.Vn=ic();this.L=a;this.version=0===this.L.getParameter(this.L.VERSION).indexOf("WebGL 2")?2:1;this.ls()}function p(a,d,b){this.L=a;this.$j=
d;this.name=b;this.zd=a.getAttribLocation(d,"aPos");this.Uf=a.getAttribLocation(d,"aTex");this.Ms=a.getUniformLocation(d,"matP");this.Pl=a.getUniformLocation(d,"matMV");this.Ph=a.getUniformLocation(d,"opacity");this.kp=a.getUniformLocation(d,"colorFill");this.Ns=a.getUniformLocation(d,"samplerFront");this.tj=a.getUniformLocation(d,"samplerBack");this.Og=a.getUniformLocation(d,"destStart");this.Ng=a.getUniformLocation(d,"destEnd");this.vj=a.getUniformLocation(d,"seconds");this.mp=a.getUniformLocation(d,
"pixelWidth");this.lp=a.getUniformLocation(d,"pixelHeight");this.sj=a.getUniformLocation(d,"layerScale");this.rj=a.getUniformLocation(d,"layerAngle");this.wj=a.getUniformLocation(d,"viewOrigin");this.uj=a.getUniformLocation(d,"scrollPos");this.az=!!(this.mp||this.lp||this.vj||this.tj||this.Og||this.Ng||this.sj||this.rj||this.wj||this.uj);this.Ws=this.Xs=-999;this.Sl=1;this.Ss=this.Rs=0;this.Us=this.Qs=this.Ps=1;this.$s=this.Zs=this.Ys=this.ct=this.bt=this.Ts=0;this.Zo=[];this.Vs=ic();this.Ph&&a.uniform1f(this.Ph,
1);this.kp&&a.uniform4f(this.kp,1,1,1,1);this.Ns&&a.uniform1i(this.Ns,0);this.tj&&a.uniform1i(this.tj,1);this.Og&&a.uniform2f(this.Og,0,0);this.Ng&&a.uniform2f(this.Ng,1,1);this.sj&&a.uniform1f(this.sj,1);this.rj&&a.uniform1f(this.rj,0);this.wj&&a.uniform2f(this.wj,0,0);this.uj&&a.uniform2f(this.uj,0,0);this.vj&&a.uniform1f(this.vj,0);this.wg=!1}function n(a,d){return a[0]===d[0]&&a[1]===d[1]&&a[2]===d[2]&&a[3]===d[3]&&a[4]===d[4]&&a[5]===d[5]&&a[6]===d[6]&&a[7]===d[7]&&a[8]===d[8]&&a[9]===d[9]&&
a[10]===d[10]&&a[11]===d[11]&&a[12]===d[12]&&a[13]===d[13]&&a[14]===d[14]&&a[15]===d[15]}function g(a,d){this.type=a;this.H=d;this.L=d.L;this.wd=this.lc=this.Ct=0;this.la=this.Gd=null;this.gu=[]}var h=ic();c.prototype.ls=function(){var a=this.L,d;this.Hs=1;this.Gg=this.Qf=null;this.Uk=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.Pa?(a.enable(a.DEPTH_TEST),a.depthFunc(a.LEQUAL)):
a.disable(a.DEPTH_TEST);this.Is=a.ONE;this.Gs=a.ONE_MINUS_SRC_ALPHA;this.hn=new Float32Array(8E3*(this.Pa?3:2));this.Um=new Float32Array(16E3);this.Hp=new Float32Array(32E3);this.Gp=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.Gp);a.bufferData(a.ARRAY_BUFFER,this.Hp.byteLength,a.DYNAMIC_DRAW);this.pk=Array(4);this.gk=Array(4);for(d=0;4>d;d++)this.pk[d]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.pk[d]),a.bufferData(a.ARRAY_BUFFER,this.hn.byteLength,a.DYNAMIC_DRAW),this.gk[d]=a.createBuffer(),
a.bindBuffer(a.ARRAY_BUFFER,this.gk[d]),a.bufferData(a.ARRAY_BUFFER,this.Um.byteLength,a.DYNAMIC_DRAW);this.Ae=0;this.fz=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.fz);for(var b=new Uint16Array(12E3),e=d=0;12E3>d;)b[d++]=e,b[d++]=e+1,b[d++]=e+2,b[d++]=e,b[d++]=e+2,b[d++]=e+3,e+=4;a.bufferData(a.ELEMENT_ARRAY_BUFFER,b,a.STATIC_DRAW);this.Yh=this.hi=this.rf=0;this.gb=[];d=this.Pa?"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.Bi({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}"},d,"<default>");this.gb.push(b);b=this.Bi({src:"uniform mediump sampler2D samplerFront;\nvarying lowp float opacity;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, gl_PointCoord);\n\tgl_FragColor *= opacity;\n}"},
"attribute vec4 aPos;\nvarying float opacity;\nuniform mat4 matP;\nuniform mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tgl_PointSize = aPos.z;\n\topacity = aPos.w;\n}","<point>");this.gb.push(b);b=this.Bi({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},d,"<earlyz>");this.gb.push(b);b=this.Bi({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"},
d,"<fill>");this.gb.push(b);for(var f in mc)mc.hasOwnProperty(f)&&this.gb.push(this.Bi(mc[f],d,f));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,null);this.ze=[];this.fe=0;this.gc=this.Vb=!1;this.Ir=this.kj=-1;this.ph=null;this.ko=a.createFramebuffer();this.Yk=this.zm=null;this.tr=!1;this.Pa&&(this.Yk=a.createRenderbuffer());this.$f=hc([0,0,0]);a=a.getParameter(a.ALIASED_POINT_SIZE_RANGE);this.Az=a[0];this.pp=a[1];2048<this.pp&&(this.pp=2048);this.Lc(0)};p.prototype.vq=function(a){n(this.Vs,
a)||(jc(a,this.Vs),this.L.uniformMatrix4fv(this.Pl,!1,a))};c.prototype.Bi=function(a,d,b){var e=this.L,f=e.createShader(e.FRAGMENT_SHADER);e.shaderSource(f,a.src);e.compileShader(f);if(!e.getShaderParameter(f,e.COMPILE_STATUS))return e.deleteShader(f),null;var k=e.createShader(e.VERTEX_SHADER);e.shaderSource(k,d);e.compileShader(k);if(!e.getShaderParameter(k,e.COMPILE_STATUS))return e.deleteShader(f),e.deleteShader(k),null;d=e.createProgram();e.attachShader(d,f);e.attachShader(d,k);e.linkProgram(d);
if(!e.getProgramParameter(d,e.LINK_STATUS))return e.deleteShader(f),e.deleteShader(k),e.deleteProgram(d),null;e.useProgram(d);e.deleteShader(f);e.deleteShader(k);b=new p(e,d,b);b.ho=a.ho||0;b.jo=a.jo||0;b.Hr=!!a.Hr;b.Ud=!!a.Ud;b.rr=!!a.rr;b.ma=a.ma||[];a=0;for(f=b.ma.length;a<f;a++)b.ma[a][1]=e.getUniformLocation(d,b.ma[a][0]),b.Zo.push(0),e.uniform1f(b.ma[a][1],0);return b};c.prototype.Ao=function(a){var d,b;d=0;for(b=this.gb.length;d<b;d++)if(this.gb[d].name===a)return d;return-1};c.prototype.Qt=
function(a,d,b){var e=this.fd,f=this.Tl,k=[0,0,0,0,0,0,0,0];k[0]=e[0]*a+e[4]*d+e[12];k[1]=e[1]*a+e[5]*d+e[13];k[2]=e[2]*a+e[6]*d+e[14];k[3]=e[3]*a+e[7]*d+e[15];k[4]=f[0]*k[0]+f[4]*k[1]+f[8]*k[2]+f[12]*k[3];k[5]=f[1]*k[0]+f[5]*k[1]+f[9]*k[2]+f[13]*k[3];k[6]=f[2]*k[0]+f[6]*k[1]+f[10]*k[2]+f[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)};c.prototype.Wg=function(a,d,b){if(this.width!==a||this.height!==d||b){this.Ee();
b=this.L;this.width=a;this.height=d;b.viewport(0,0,a,d);lc(this.Kn,this.Os,this.Au,this.fd);if(this.Pa){var e=-a/2;a=a/2;var f=d/2;d=-d/2;var k=this.sn,m=this.Cq,c=this.Tl;c||(c=ic());var l=a-e,h=d-f,q=m-k;c[0]=2/l;c[1]=0;c[2]=0;c[3]=0;c[4]=0;c[5]=2/h;c[6]=0;c[7]=0;c[8]=0;c[9]=0;c[10]=-2/q;c[11]=0;c[12]=-(e+a)/l;c[13]=-(d+f)/h;c[14]=-(m+k)/q;c[15]=1;this.rk[0]=1;this.rk[1]=1}else d=a/d,e=this.sn,a=this.Cq,c=this.Tl,m=e*Math.tan(45*Math.PI/360),d*=m,f=-d,k=-m,c||(c=ic()),l=d-f,h=m-k,q=a-e,c[0]=2*e/
l,c[1]=0,c[2]=0,c[3]=0,c[4]=0,c[5]=2*e/h,c[6]=0,c[7]=0,c[8]=(d+f)/l,c[9]=(m+k)/h,c[10]=-(a+e)/q,c[11]=-1,c[12]=0,c[13]=0,c[14]=-(a*e*2)/q,c[15]=0,e=[0,0],a=[0,0],this.Qt(0,0,e),this.Qt(1,1,a),this.rk[0]=1/(a[0]-e[0]),this.rk[1]=-1/(a[1]-e[1]);e=0;for(a=this.gb.length;e<a;e++)f=this.gb[e],f.wg=!1,f.Ms&&(b.useProgram(f.$j),b.uniformMatrix4fv(f.Ms,!1,this.Tl));b.useProgram(this.gb[this.kj].$j);b.bindTexture(b.TEXTURE_2D,null);b.activeTexture(b.TEXTURE1);b.bindTexture(b.TEXTURE_2D,null);b.activeTexture(b.TEXTURE0);
this.Gg=this.Qf=null;this.Yk&&(b.bindFramebuffer(b.FRAMEBUFFER,this.ko),b.bindRenderbuffer(b.RENDERBUFFER,this.Yk),b.renderbufferStorage(b.RENDERBUFFER,b.DEPTH_COMPONENT16,this.width,this.height),this.tr||(b.framebufferRenderbuffer(b.FRAMEBUFFER,b.DEPTH_ATTACHMENT,b.RENDERBUFFER,this.Yk),this.tr=!0),b.bindRenderbuffer(b.RENDERBUFFER,null),b.bindFramebuffer(b.FRAMEBUFFER,null),this.zm=null)}};c.prototype.Cd=function(){lc(this.Kn,this.Os,this.Au,this.fd);kc(this.fd,this.rk)};c.prototype.translate=function(a,
d){if(0!==a||0!==d){this.$f[0]=a;this.$f[1]=d;this.$f[2]=0;var b=this.fd,e=this.$f,f=e[0],k=e[1],e=e[2];b[12]=b[0]*f+b[4]*k+b[8]*e+b[12];b[13]=b[1]*f+b[5]*k+b[9]*e+b[13];b[14]=b[2]*f+b[6]*k+b[10]*e+b[14];b[15]=b[3]*f+b[7]*k+b[11]*e+b[15]}};c.prototype.scale=function(a,d){if(1!==a||1!==d)this.$f[0]=a,this.$f[1]=d,this.$f[2]=1,kc(this.fd,this.$f)};c.prototype.Bm=function(a){if(0!==a){var d=this.fd,b,e=Math.sin(a);a=Math.cos(a);var f=d[0],k=d[1],m=d[2],c=d[3],l=d[4],h=d[5],q=d[6],u=d[7];b?d!==b&&(b[8]=
d[8],b[9]=d[9],b[10]=d[10],b[11]=d[11],b[12]=d[12],b[13]=d[13],b[14]=d[14],b[15]=d[15]):b=d;b[0]=f*a+l*e;b[1]=k*a+h*e;b[2]=m*a+q*e;b[3]=c*a+u*e;b[4]=f*-e+l*a;b[5]=k*-e+h*a;b[6]=m*-e+q*a;b[7]=c*-e+u*a}};c.prototype.md=function(){if(!n(this.$o,this.fd)){var a=this.Hc();a.type=5;a.la?jc(this.fd,a.la):a.la=ic(this.fd);jc(this.fd,this.$o);this.gc=this.Vb=!1}};c.prototype.Gm=function(a){this.Pa&&(32760<a&&(a=32760),this.Wn=this.Kn[2]-this.sn-a*this.JA)};g.prototype.qx=function(){var a=this.L,d=this.H;0!==
this.lc?(a.depthMask(!0),a.colorMask(!1,!1,!1,!1),a.disable(a.BLEND),a.bindFramebuffer(a.FRAMEBUFFER,d.ko),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.clear(a.DEPTH_BUFFER_BIT),a.bindFramebuffer(a.FRAMEBUFFER,null),d.Dl=!0):(a.depthMask(!1),a.colorMask(!0,!0,!0,!0),a.enable(a.BLEND),d.Dl=!1)};g.prototype.vx=function(){this.L.bindTexture(this.L.TEXTURE_2D,this.Gd)};g.prototype.wx=function(){var a=this.L;a.activeTexture(a.TEXTURE1);a.bindTexture(a.TEXTURE_2D,this.Gd);
a.activeTexture(a.TEXTURE0)};g.prototype.rx=function(){var a=this.Ct,d=this.H;d.Uk=a;d=d.ph;d.Ph&&d.Sl!==a&&(d.Sl=a,this.L.uniform1f(d.Ph,a))};g.prototype.jx=function(){this.L.drawElements(this.L.TRIANGLES,this.wd,this.L.UNSIGNED_SHORT,this.lc)};g.prototype.mx=function(){this.L.blendFunc(this.lc,this.wd)};g.prototype.yx=function(){var a,d,b,e=this.H.gb,f=this.H.Ir;a=0;for(d=e.length;a<d;a++)b=e[a],a===f&&b.Pl?(b.vq(this.la),b.wg=!0):b.wg=!1;jc(this.la,this.H.Vn)};g.prototype.kx=function(){var a=this.L,
d=this.H;this.Gd?(d.Gg===this.Gd&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,null),d.Gg=null,a.activeTexture(a.TEXTURE0)),a.bindFramebuffer(a.FRAMEBUFFER,d.ko),d.Dl||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,this.Gd,0)):(d.Pa||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.bindFramebuffer(a.FRAMEBUFFER,null))};g.prototype.gx=function(){var a=this.L,d=this.lc;0===d?(a.clearColor(this.la[0],this.la[1],this.la[2],this.la[3]),a.clear(a.COLOR_BUFFER_BIT)):
1===d?(a.enable(a.SCISSOR_TEST),a.scissor(this.la[0],this.la[1],this.la[2],this.la[3]),a.clearColor(0,0,0,0),a.clear(a.COLOR_BUFFER_BIT),a.disable(a.SCISSOR_TEST)):a.clear(a.DEPTH_BUFFER_BIT)};g.prototype.ox=function(){var a=this.L;0!==this.lc?a.enable(a.DEPTH_TEST):a.disable(a.DEPTH_TEST)};g.prototype.ix=function(){var a=this.L,d=this.H;d.Pa&&a.disable(a.DEPTH_TEST);var b=d.gb[1];a.useProgram(b.$j);!b.wg&&b.Pl&&(b.vq(d.Vn),b.wg=!0);a.enableVertexAttribArray(b.zd);a.bindBuffer(a.ARRAY_BUFFER,d.Gp);
a.vertexAttribPointer(b.zd,4,a.FLOAT,!1,0,0);a.drawArrays(a.POINTS,this.lc/4,this.wd);b=d.ph;a.useProgram(b.$j);0<=b.zd&&(a.enableVertexAttribArray(b.zd),a.bindBuffer(a.ARRAY_BUFFER,d.pk[d.Ae]),a.vertexAttribPointer(b.zd,d.Pa?3:2,a.FLOAT,!1,0,0));0<=b.Uf&&(a.enableVertexAttribArray(b.Uf),a.bindBuffer(a.ARRAY_BUFFER,d.gk[d.Ae]),a.vertexAttribPointer(b.Uf,2,a.FLOAT,!1,0,0));d.Pa&&a.enable(a.DEPTH_TEST)};g.prototype.tx=function(){var a=this.L,d=this.H,b=d.gb[this.lc];d.Ir=this.lc;d.ph=b;a.useProgram(b.$j);
!b.wg&&b.Pl&&(b.vq(d.Vn),b.wg=!0);b.Ph&&b.Sl!==d.Uk&&(b.Sl=d.Uk,a.uniform1f(b.Ph,d.Uk));0<=b.zd&&(a.enableVertexAttribArray(b.zd),a.bindBuffer(a.ARRAY_BUFFER,d.pk[d.Ae]),a.vertexAttribPointer(b.zd,d.Pa?3:2,a.FLOAT,!1,0,0));0<=b.Uf&&(a.enableVertexAttribArray(b.Uf),a.bindBuffer(a.ARRAY_BUFFER,d.gk[d.Ae]),a.vertexAttribPointer(b.Uf,2,a.FLOAT,!1,0,0))};g.prototype.nx=function(){var a=this.la;this.L.uniform4f(this.H.ph.kp,a[0],a[1],a[2],a[3])};g.prototype.ux=function(){var a,d,b=this.H.ph,e=this.L;a=
this.la;b.tj&&this.H.Gg!==this.Gd&&(e.activeTexture(e.TEXTURE1),e.bindTexture(e.TEXTURE_2D,this.Gd),this.H.Gg=this.Gd,e.activeTexture(e.TEXTURE0));var f=a[0];b.mp&&f!==b.Xs&&(b.Xs=f,e.uniform1f(b.mp,f));f=a[1];b.lp&&f!==b.Ws&&(b.Ws=f,e.uniform1f(b.lp,f));f=a[2];d=a[3];!b.Og||f===b.Rs&&d===b.Ss||(b.Rs=f,b.Ss=d,e.uniform2f(b.Og,f,d));f=a[4];d=a[5];!b.Ng||f===b.Ps&&d===b.Qs||(b.Ps=f,b.Qs=d,e.uniform2f(b.Ng,f,d));f=a[6];b.sj&&f!==b.Us&&(b.Us=f,e.uniform1f(b.sj,f));f=a[7];b.rj&&f!==b.Ts&&(b.Ts=f,e.uniform1f(b.rj,
f));f=a[8];d=a[9];!b.wj||f===b.bt&&d===b.ct||(b.bt=f,b.ct=d,e.uniform2f(b.wj,f,d));f=a[10];d=a[11];!b.uj||f===b.Ys&&d===b.Zs||(b.Ys=f,b.Zs=d,e.uniform2f(b.uj,f,d));f=a[12];b.vj&&f!==b.$s&&(b.$s=f,e.uniform1f(b.vj,f));if(b.ma.length)for(a=0,d=b.ma.length;a<d;a++)f=this.gu[a],f!==b.Zo[a]&&(b.Zo[a]=f,e.uniform1f(b.ma[a][1],f))};c.prototype.Hc=function(){this.fe===this.ze.length&&this.ze.push(new g(0,this));return this.ze[this.fe++]};c.prototype.Ee=function(){if(0!==this.fe&&!this.L.isContextLost()){var a=
this.L;0<this.Yh&&(a.bindBuffer(a.ARRAY_BUFFER,this.Gp),a.bufferSubData(a.ARRAY_BUFFER,0,this.Hp.subarray(0,this.Yh)),b&&0<=b.zd&&"<point>"===b.name&&a.vertexAttribPointer(b.zd,4,a.FLOAT,!1,0,0));if(0<this.rf){var b=this.ph;a.bindBuffer(a.ARRAY_BUFFER,this.pk[this.Ae]);a.bufferSubData(a.ARRAY_BUFFER,0,this.hn.subarray(0,this.rf));b&&0<=b.zd&&"<point>"!==b.name&&a.vertexAttribPointer(b.zd,this.Pa?3:2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.gk[this.Ae]);a.bufferSubData(a.ARRAY_BUFFER,0,this.Um.subarray(0,
this.hi));b&&0<=b.Uf&&"<point>"!==b.name&&a.vertexAttribPointer(b.Uf,2,a.FLOAT,!1,0,0)}for(var c,a=0,b=this.fe;a<b;a++)switch(c=this.ze[a],c.type){case 1:c.jx();break;case 2:c.vx();break;case 3:c.rx();break;case 4:c.mx();break;case 5:c.yx();break;case 6:c.kx();break;case 7:c.gx();break;case 8:c.ix();break;case 9:c.tx();break;case 10:c.ux();break;case 11:c.wx();break;case 12:c.nx();break;case 13:c.ox();break;case 14:c.qx()}this.Yh=this.hi=this.rf=this.fe=0;this.Dl=this.gc=this.Vb=!1;this.Ae++;4<=this.Ae&&
(this.Ae=0)}};c.prototype.df=function(a){if(a!==this.Hs&&!this.Xi){var b=this.Hc();b.type=3;this.Hs=b.Ct=a;this.gc=this.Vb=!1}};c.prototype.xc=function(a){if(a!==this.Qf){var b=this.Hc();b.type=2;this.Qf=b.Gd=a;this.gc=this.Vb=!1}};c.prototype.Xf=function(a,b){if((a!==this.Is||b!==this.Gs)&&!this.Xi){var c=this.Hc();c.type=4;c.lc=a;c.wd=b;this.Is=a;this.Gs=b;this.gc=this.Vb=!1}};c.prototype.Yt=function(){this.Xf(this.L.ONE,this.L.ONE_MINUS_SRC_ALPHA)};c.prototype.Zh=function(a,b,c,e,f,k,m,l){15992<=
this.rf&&this.Ee();var h=this.rf,g=this.hi,q=this.hn,u=this.Um,p=this.Wn;if(this.Vb)this.ze[this.fe-1].wd+=6;else{var n=this.Hc();n.type=1;n.lc=this.Pa?h:h/2*3;n.wd=6;this.Vb=!0;this.gc=!1}this.Pa?(q[h++]=a,q[h++]=b,q[h++]=p,q[h++]=c,q[h++]=e,q[h++]=p,q[h++]=f,q[h++]=k,q[h++]=p,q[h++]=m,q[h++]=l,q[h++]=p):(q[h++]=a,q[h++]=b,q[h++]=c,q[h++]=e,q[h++]=f,q[h++]=k,q[h++]=m,q[h++]=l);u[g++]=0;u[g++]=0;u[g++]=1;u[g++]=0;u[g++]=1;u[g++]=1;u[g++]=0;u[g++]=1;this.rf=h;this.hi=g};c.prototype.Wd=function(a,b,
c,e,f,k,m,l,h){15992<=this.rf&&this.Ee();var g=this.rf,q=this.hi,u=this.hn,p=this.Um,n=this.Wn;if(this.Vb)this.ze[this.fe-1].wd+=6;else{var t=this.Hc();t.type=1;t.lc=this.Pa?g:g/2*3;t.wd=6;this.Vb=!0;this.gc=!1}var t=h.left,I=h.top,D=h.right;h=h.bottom;this.Pa?(u[g++]=a,u[g++]=b,u[g++]=n,u[g++]=c,u[g++]=e,u[g++]=n,u[g++]=f,u[g++]=k,u[g++]=n,u[g++]=m,u[g++]=l,u[g++]=n):(u[g++]=a,u[g++]=b,u[g++]=c,u[g++]=e,u[g++]=f,u[g++]=k,u[g++]=m,u[g++]=l);p[q++]=t;p[q++]=I;p[q++]=D;p[q++]=I;p[q++]=D;p[q++]=h;p[q++]=
t;p[q++]=h;this.rf=g;this.hi=q};c.prototype.Oz=function(a,b,c,e){7996<=this.Yh&&this.Ee();var f=this.Yh,k=this.Hp;if(this.gc)this.ze[this.fe-1].wd++;else{var m=this.Hc();m.type=8;m.lc=f;m.wd=1;this.gc=!0;this.Vb=!1}k[f++]=a;k[f++]=b;k[f++]=c;k[f++]=e;this.Yh=f};c.prototype.Lc=function(a){if(this.kj!==a){if(!this.gb[a]){if(0===this.kj)return;a=0}var b=this.Hc();b.type=9;this.kj=b.lc=a;this.gc=this.Vb=!1}};c.prototype.Pj=function(a){a=this.gb[a];return!(!a.Og&&!a.Ng)};c.prototype.Jp=function(a){a=this.gb[a];
return!!(a.Og||a.Ng||a.Hr)};c.prototype.Ip=function(a){return this.gb[a].Ud};c.prototype.Vz=function(a){a=this.gb[a];return 0!==a.ho||0!==a.jo};c.prototype.Jy=function(a){return this.gb[a].ho};c.prototype.Ky=function(a){return this.gb[a].jo};c.prototype.Ly=function(a,b){return this.gb[a].ma[b][2]};c.prototype.tm=function(a){return this.gb[a].rr};c.prototype.bi=function(a,b,c,e,f,k,m,l,h,g,q,u,p,n,t){var I=this.gb[this.kj],D,E;if(I.az||t.length){D=this.Hc();D.type=10;D.la?jc(this.fd,D.la):D.la=ic();
E=D.la;E[0]=b;E[1]=c;E[2]=e;E[3]=f;E[4]=k;E[5]=m;E[6]=l;E[7]=h;E[8]=g;E[9]=q;E[10]=u;E[11]=p;E[12]=n;I.tj?D.Gd=a:D.Gd=null;if(t.length)for(c=D.gu,c.length=t.length,a=0,b=t.length;a<b;a++)c[a]=t[a];this.gc=this.Vb=!1}};c.prototype.clear=function(a,b,c,e){var f=this.Hc();f.type=7;f.lc=0;f.la||(f.la=ic());f.la[0]=a;f.la[1]=b;f.la[2]=c;f.la[3]=e;this.gc=this.Vb=!1};c.prototype.clearRect=function(a,b,c,e){if(!(0>c||0>e)){var f=this.Hc();f.type=7;f.lc=1;f.la||(f.la=ic());f.la[0]=a;f.la[1]=b;f.la[2]=c;f.la[3]=
e;this.gc=this.Vb=!1}};c.prototype.au=function(a){if(this.Pa&&(a=!!a,this.Xi!==a)){var b=this.Hc();b.type=14;b.lc=a?1:0;this.gc=this.Vb=!1;this.Xi=a;this.zm=null;this.Xi?this.Lc(2):this.Lc(0)}};c.prototype.$t=function(a){if(this.Pa){var b=this.Hc();b.type=13;b.lc=a?1:0;this.gc=this.Vb=!1}};c.prototype.Vr=function(){jc(this.$o,h);this.Cd();this.md();var a=this.width/2,b=this.height/2;this.Zh(-a,b,a,b,a,-b,-a,-b);jc(h,this.fd);this.md()};c.prototype.Zt=function(a,b,c){this.Lc(3);var e=this.Hc();e.type=
12;e.la||(e.la=ic());e.la[0]=a;e.la[1]=b;e.la[2]=c;e.la[3]=1;this.gc=this.Vb=!1};c.prototype.qA=function(){this.Lc(0)};c.prototype.bA=function(){this.Lc(2)};c.prototype.Uz=function(){this.Ee();this.L.flush()};var l=[],b={};c.prototype.Xw=function(){O(l);b={}};c.prototype.Rf=function(a,d,c,e){d=!!d;c=!!c;var f=a.src+","+d+","+c+(d?",undefined":""),k=null;if("undefined"!==typeof a.src&&b.hasOwnProperty(f))return k=b[f],k.Jk++,k;this.Ee();var m=this.L,h=ja(a.width)&&ja(a.height),k=m.createTexture();
m.bindTexture(m.TEXTURE_2D,k);m.pixelStorei(m.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var g=m.RGBA,p=m.RGBA,q=m.UNSIGNED_BYTE;if(e&&!this.Oe)switch(e){case 1:p=g=m.RGB;break;case 2:q=m.UNSIGNED_SHORT_4_4_4_4;break;case 3:q=m.UNSIGNED_SHORT_5_5_5_1;break;case 4:p=g=m.RGB,q=m.UNSIGNED_SHORT_5_6_5}if(1===this.version&&!h&&d){e=document.createElement("canvas");e.width=ka(a.width);e.height=ka(a.height);var u=e.getContext("2d");"undefined"!==typeof u.imageSmoothingEnabled?u.imageSmoothingEnabled=c:(u.webkitImageSmoothingEnabled=
c,u.mozImageSmoothingEnabled=c,u.msImageSmoothingEnabled=c);u.drawImage(a,0,0,a.width,a.height,0,0,e.width,e.height);m.texImage2D(m.TEXTURE_2D,0,g,p,q,e)}else m.texImage2D(m.TEXTURE_2D,0,g,p,q,a);d?(m.texParameteri(m.TEXTURE_2D,m.TEXTURE_WRAP_S,m.REPEAT),m.texParameteri(m.TEXTURE_2D,m.TEXTURE_WRAP_T,m.REPEAT)):(m.texParameteri(m.TEXTURE_2D,m.TEXTURE_WRAP_S,m.CLAMP_TO_EDGE),m.texParameteri(m.TEXTURE_2D,m.TEXTURE_WRAP_T,m.CLAMP_TO_EDGE));c?(m.texParameteri(m.TEXTURE_2D,m.TEXTURE_MAG_FILTER,m.LINEAR),
(h||2<=this.version)&&this.Nr?(m.texParameteri(m.TEXTURE_2D,m.TEXTURE_MIN_FILTER,m.LINEAR_MIPMAP_LINEAR),m.generateMipmap(m.TEXTURE_2D)):m.texParameteri(m.TEXTURE_2D,m.TEXTURE_MIN_FILTER,m.LINEAR)):(m.texParameteri(m.TEXTURE_2D,m.TEXTURE_MAG_FILTER,m.NEAREST),m.texParameteri(m.TEXTURE_2D,m.TEXTURE_MIN_FILTER,m.NEAREST));m.bindTexture(m.TEXTURE_2D,null);this.Qf=null;k.fg=a.width;k.eg=a.height;k.Jk=1;k.Cr=f;l.push(k);return b[f]=k};c.prototype.Zc=function(a,b,c,e){this.Ee();var f=this.L;this.Oe&&(e=
!1);var k=f.createTexture();f.bindTexture(f.TEXTURE_2D,k);f.texImage2D(f.TEXTURE_2D,0,f.RGBA,a,b,0,f.RGBA,e?f.UNSIGNED_SHORT_4_4_4_4:f.UNSIGNED_BYTE,null);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_S,f.CLAMP_TO_EDGE);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_T,f.CLAMP_TO_EDGE);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MAG_FILTER,c?f.LINEAR:f.NEAREST);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,c?f.LINEAR:f.NEAREST);f.bindTexture(f.TEXTURE_2D,null);this.Qf=null;k.fg=a;k.eg=b;l.push(k);return k};
c.prototype.HA=function(a,b,c){this.Ee();var e=this.L;this.Oe&&(c=!1);e.bindTexture(e.TEXTURE_2D,b);e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);try{e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,c?e.UNSIGNED_SHORT_4_4_4_4:e.UNSIGNED_BYTE,a)}catch(f){console&&console.error&&console.error("Error updating WebGL texture: ",f)}e.bindTexture(e.TEXTURE_2D,null);this.Qf=null};c.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.Jk&&1<a.Jk?a.Jk--:(this.Ee(),a===this.Qf&&(this.L.bindTexture(this.L.TEXTURE_2D,
null),this.Qf=null),a===this.Gg&&(this.L.activeTexture(this.L.TEXTURE1),this.L.bindTexture(this.L.TEXTURE_2D,null),this.L.activeTexture(this.L.TEXTURE0),this.Gg=null),Da(l,a),"undefined"!==typeof a.Cr&&delete b[a.Cr],this.L.deleteTexture(a)))};c.prototype.Dd=function(a){if(a!==this.zm){var b=this.Hc();b.type=6;this.zm=b.Gd=a;this.gc=this.Vb=!1}};ob=c})();
(function(){function c(a){if(a&&(a.getContext||a.dc)&&!a.c2runtime){a.c2runtime=this;var e=this;this.Qc=(this.El=/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.hc=!!a.dc;this.ws="undefined"!==typeof window.AppMobi||
this.hc;this.cd=!!window.c2cocoonjs;this.xd=!!window.c2ejecta;this.cd&&(CocoonJS.App.onSuspended.addEventListener(function(){e.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){e.setSuspended(!1)}));this.xd&&(document.addEventListener("pagehide",function(){e.setSuspended(!0)}),document.addEventListener("pageshow",function(){e.setSuspended(!1)}),document.addEventListener("resize",function(){e.setSize(window.innerWidth,window.innerHeight)}));this.Ja=this.hc||this.cd||this.xd;this.Zi=
/edge\//i.test(navigator.userAgent);this.Oe=(/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent))&&!this.Zi;this.Bs=/tizen/i.test(navigator.userAgent);this.Bl=/android/i.test(navigator.userAgent)&&!this.Bs&&!this.Oe&&!this.Zi;this.Es=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&!this.Oe&&!this.Zi;this.sz=/ipad/i.test(navigator.userAgent);this.Gh=this.Es||this.sz||this.xd;this.Wi=(/chrome/i.test(navigator.userAgent)||
/chromium/i.test(navigator.userAgent))&&!this.Oe&&!this.Zi;this.vs=/amazonwebappplatform/i.test(navigator.userAgent);this.kz=/firefox/i.test(navigator.userAgent);this.nz=/safari/i.test(navigator.userAgent)&&!this.Wi&&!this.Oe&&!this.Zi;this.oz=/windows/i.test(navigator.userAgent);this.zs=this.Nf="undefined"!==typeof window.c2nodewebkit||"undefined"!==typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.Cs=!("undefined"===typeof window.c2isWindows8||
!window.c2isWindows8);this.qz=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.ej=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.Vo=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.Uo=!!window.cr_windows10;this.To=this.Cs||this.qz||this.Vo||this.Uo;this.iz=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.Cl=this.Bl&&!this.Wi&&!this.El&&!this.kz&&!this.vs&&!this.Ja;
this.devicePixelRatio=1;this.Pe=this.Qc||this.El||this.ws||this.cd||this.Bl||this.Gh||this.ej||this.Vo||this.iz||this.Bs||this.xd;this.Pe||(this.Pe=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));this.cj=!!(this.Gh&&this.Qc&&window.webkit);this.Go=null;this.dz="";this.cj&&(this.Go=cordova&&cordova.plugins&&cordova.plugins.CorHttpd?cordova.plugins.CorHttpd:null);"undefined"===typeof cr_is_preview||this.Nf||"?nw"!==window.location.search&&
!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||(this.Nf=!0);this.xs="undefined"!==typeof cr_is_preview&&-1<window.location.search.indexOf("debug");this.canvas=a;this.Ln=document.getElementById("c2canvasdiv");this.H=this.L=null;this.Co="(unavailable)";this.Pa=!1;this.mg=0;this.Va=null;this.oo="";this.hl=!1;this.qt=this.tt=0;this.canvas.oncontextmenu=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.onselectstart=function(a){a.preventDefault&&a.preventDefault();
return!1};this.hc&&(window.c2runtime=this);this.Nf&&(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.Cl&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=a.width;this.height=a.height;this.X=this.width;this.W=this.height;this.Sk=this.width;this.Di=this.height;this.Lh=window.innerWidth;this.Kh=window.innerHeight;
this.ja=!0;this.aj=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.J=[];this.ab=[];this.Nh={};this.Tc=[];this.fo={};this.Fe=[];this.pi=[];this.bn=[];this.Jw=[];this.Kw=[];this.Fs=this.hq=null;this.ig={};this.Qo=this.Mf=!1;this.dd=0;this.Po=this.So=!1;this.Pd=[];this.Yi=!1;this.Ml=this.Xp="";this.Jb=null;this.Re="";this.ek=this.ju=!1;this.gl=[];this.lg=this.kg=0;this.ht=30;this.Sn=this.xj=0;this.Zf=1;this.Hb=new $a;this.sf=new $a;this.Yl=this.nl=this.qg=this.ld=
this.Ig=this.no=this.Hl=0;this.Od=null;this.Zk=[];this.eo=[];this.al=-1;this.np=[[]];this.pq=this.Ql=0;this.vm(null);this.lt=this.Dj=0;this.gp=!0;this.Ji=0;this.fk=[];this.mq=this.Np=-1;this.Pf=!0;this.Oh=0;this.Qe=!1;this.sA=0;this.hh=null;this.mb=this.ul=!1;this.pt=new ca;this.vp=new ca;this.wp=new ca;this.Tj=[];this.Zd=new gb([]);this.lq=new gb([]);this.Af=[];this.yh={};this.Gf={};this.yf={};this.oi={};this.ur={};this.Ls=this.Ll=this.wb=this.Ib=this.Ks=this.Kl=this.Ia=null;this.mi=this.Wo=!1;this.po=
[null,null];this.Ie=0;this.fl="";this.We={};this.ck=this.Sf=null;this.lu="";this.Xl=[];this.aA()}}function p(a,e){return 128>=e?a[3]:256>=e?a[2]:512>=e?a[1]:a[0]}function n(){try{return!!window.indexedDB}catch(a){return!1}}function g(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function h(a,e,b,f){try{var d=indexedDB.open("_C2SaveStates");d.onupgradeneeded=g;d.onerror=f;d.onsuccess=function(d){d=d.target.result;d.onerror=f;d.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,
data:e}).onsuccess=b}}catch(m){f(m)}}function l(a,e,b){try{var f=indexedDB.open("_C2SaveStates");f.onupgradeneeded=g;f.onerror=b;f.onsuccess=function(f){f=f.target.result;f.onerror=b;var d=f.transaction(["saves"]).objectStore("saves").get(a);d.onsuccess=function(){d.result?e(d.result.data):e(null)}}}catch(d){b(d)}}function b(){ea("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 e,b={};for(e in a)!a.hasOwnProperty(e)||a[e]instanceof ca||a[e]&&"undefined"!==typeof a[e].EB||"spriteCreatedDestroyCallback"!==e&&(b[e]=a[e]);return b}var d=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;c.prototype.aA=function(){var a=this;if(this.cj){var e=function(){a.oy(function(e){a.pj(JSON.parse(e))},function(){alert("Error fetching data.js")})};
this.Go?this.Go.startServer({port:0,localhost_only:!0},function(b){a.dz=b;e()},function(a){console.log("Error starting local server: "+a+". Video playback will not work.");e()}):(console.log("Local server unavailable. Video playback will not work."),e())}else{var b;this.ej?b=new ActiveXObject("Microsoft.XMLHTTP"):b=new XMLHttpRequest;var f="data.js";if(this.Cs||this.ej||this.Vo||this.Uo)f="data.json";b.open("GET",f,!0);var d=!1;if(!this.Ja&&"response"in b&&"responseType"in b)try{b.responseType="json",
d="json"===b.responseType}catch(m){d=!1}if(!d&&"responseType"in b)try{b.responseType="text"}catch(k){}if("overrideMimeType"in b)try{b.overrideMimeType("application/json; charset=utf-8")}catch(c){}this.ej?b.onreadystatechange=function(){4===b.readyState&&a.pj(JSON.parse(b.responseText))}:(b.onload=function(){if(d)a.pj(b.response);else if(a.xd){var e=b.responseText,e=e.substr(e.indexOf("{"));a.pj(JSON.parse(e))}else a.pj(JSON.parse(b.responseText))},b.onerror=function(a){fa("Error requesting "+f+":");
fa(a)});b.send()}};c.prototype.gz=function(){var a=this,e,b,f,d,m,k,c,q,h;this.Cg=(!this.Ja||this.xd||this.Qc)&&this.EA&&!this.Cl;0===this.pc&&this.Gh&&(this.Cg=!1);this.devicePixelRatio=this.Cg?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.$b();0<this.pc&&this.setSize(window.innerWidth,window.innerHeight,!0);this.canvas.addEventListener("webglcontextlost",function(e){e.preventDefault();a.Dz();ea("[Construct 2] WebGL context lost");
window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){a.H.ls();a.H.Wg(a.H.width,a.H.height,!0);a.Ib=null;a.wb=null;a.po[0]=null;a.po[1]=null;a.Ez();a.ja=!0;ea("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);try{this.Gx&&(this.cd||this.xd||!this.Ja)&&(e={alpha:!0,depth:!1,antialias:!1,powerPreference:"high-performance",failIfMajorPerformanceCaveat:!0},this.L=this.canvas.getContext("webgl2",e)||this.canvas.getContext("webgl",e)||this.canvas.getContext("experimental-webgl",
e))}catch(l){}if(this.L){if(e=this.L.getExtension("WEBGL_debug_renderer_info"))this.Co=this.L.getParameter(e.UNMASKED_RENDERER_WEBGL)+" ["+this.L.getParameter(e.UNMASKED_VENDOR_WEBGL)+"]";this.Pa&&(this.Co+=" [front-to-back enabled]");this.Ja||(this.Yb=document.createElement("canvas"),jQuery(this.Yb).appendTo(this.canvas.parentNode),this.Yb.oncontextmenu=function(){return!1},this.Yb.onselectstart=function(){return!1},this.Yb.width=Math.round(this.Sk*this.devicePixelRatio),this.Yb.height=Math.round(this.Di*
this.devicePixelRatio),jQuery(this.Yb).css({width:this.Sk+"px",height:this.Di+"px"}),this.Ot(),this.Fp=this.Yb.getContext("2d"));this.H=new ob(this.L,this.Pe,this.Pa);this.H.Wg(this.canvas.width,this.canvas.height);this.H.Nr=0!==this.zx;this.Va=null;e=0;for(b=this.J.length;e<b;e++)for(m=this.J[e],f=0,d=m.ca.length;f<d;f++)c=m.ca[f],c.Ab=this.H.Ao(c.id),c.Ud=this.H.Ip(c.Ab),this.mi=this.mi||this.H.Pj(c.Ab);e=0;for(b=this.Tc.length;e<b;e++){q=this.Tc[e];f=0;for(d=q.ca.length;f<d;f++)c=q.ca[f],c.Ab=
this.H.Ao(c.id),c.Ud=this.H.Ip(c.Ab);q.be();f=0;for(d=q.fa.length;f<d;f++){h=q.fa[f];m=0;for(k=h.ca.length;m<k;m++)c=h.ca[m],c.Ab=this.H.Ao(c.id),c.Ud=this.H.Ip(c.Ab),this.mi=this.mi||this.H.Pj(c.Ab);h.be()}}}else{if(0<this.pc&&this.hc){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.Va=AppMobi.canvas.getContext("2d");try{this.Va.samplingMode=this.Ka?"smooth":"sharp",this.Va.globalScale=1,this.Va.HTML5CompatibilityMode=!0,this.Va.imageSmoothingEnabled=
this.Ka}catch(u){}0!==this.width&&0!==this.height&&(this.Va.width=this.width,this.Va.height=this.height)}this.Va||(this.cd?(e={antialias:!!this.Ka,alpha:!0},this.Va=this.canvas.getContext("2d",e)):(e={alpha:!0},this.Va=this.canvas.getContext("2d",e)),this.Fm(this.Va,this.Ka));this.Fp=this.Yb=null}this.tu=function(e){a.ya(!1,e)};window==window.top||this.Ja||this.To||this.ej||(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")&&(ea("Reloading for continuous preview"),this.Ml="__c2_continuouspreview",this.ek=!0),this.Mz&&!this.Pe&&(jQuery(window).focus(function(){a.setSuspended(!1)}),jQuery(window).blur(function(){var e=window.parent;e&&e.document.hasFocus()||a.setSuspended(!0)})));window.addEventListener("blur",function(){a.Xe()});this.Ja||(e=function(a){if(nb(a)&&
document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(e){}},"undefined"!==typeof PointerEvent?document.addEventListener("pointerdown",e):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",e):document.addEventListener("touchstart",e),document.addEventListener("mousedown",e));0===this.pc&&this.Cg&&1<this.devicePixelRatio&&this.setSize(this.Za,this.Ya,!0);this.yu();this.Yy();
this.go();this.N={}};c.prototype.setSize=function(a,e,b){var f=0,d=0,m=0,k=0,k=0;if(this.Lh!==a||this.Kh!==e||b){this.Lh=a;this.Kh=e;var c=this.pc,q=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.Qe)&&!this.Qc;if(q||0!==this.pc||b)q&&0<this.Ie&&(c=this.Ie),b=this.devicePixelRatio,4<=c?(m=this.Za/this.Ya,a/e>m?(m*=e,5===c?(k=m*b/this.Za,1<k?k=Math.floor(k):1>k&&(k=1/Math.ceil(1/k)),m=this.Za*k/b,k=this.Ya*k/b,f=(a-m)/2,d=(e-k)/2,a=m,
e=k):(f=(a-m)/2,a=m)):(k=a/m,5===c?(k=k*b/this.Ya,1<k?k=Math.floor(k):1>k&&(k=1/Math.ceil(1/k)),m=this.Za*k/b,k=this.Ya*k/b,f=(a-m)/2,d=(e-k)/2,a=m):d=(e-k)/2,e=k),q&&!this.Nf&&(d=f=0)):this.Nf&&this.Qe&&0===this.Wr&&(f=Math.floor((a-this.Za)/2),d=Math.floor((e-this.Ya)/2),a=this.Za,e=this.Ya),2>c&&(this.wi=b),this.Sk=Math.round(a),this.Di=Math.round(e),this.width=Math.round(a*b),this.height=Math.round(e*b),this.ja=!0,this.Ju?(this.X=this.width,this.W=this.height,this.$c=!0):this.width<this.Za&&this.height<
this.Ya||1===c?(this.X=this.width,this.W=this.height,this.$c=!0):(this.X=this.Za,this.W=this.Ya,this.$c=!1,2===c?(m=this.Za/this.Ya,c=this.Lh/this.Kh,c<m?this.X=this.W*c:c>m&&(this.W=this.X/c)):3===c&&(m=this.Za/this.Ya,c=this.Lh/this.Kh,c>m?this.X=this.W*c:c<m&&(this.W=this.X/c))),this.Ln&&!this.Ja&&(jQuery(this.Ln).css({width:Math.round(a)+"px",height:Math.round(e)+"px","margin-left":Math.floor(f)+"px","margin-top":Math.floor(d)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(a)+
"px",height:Math.round(e)+"px"})),this.canvas&&(this.canvas.width=Math.round(a*b),this.canvas.height=Math.round(e*b),this.xd?(this.canvas.style.left=Math.floor(f)+"px",this.canvas.style.top=Math.floor(d)+"px",this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(e)+"px"):this.Cg&&!this.Ja&&(this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(e)+"px")),this.Yb&&(this.Yb.width=Math.round(a*b),this.Yb.height=Math.round(e*b),this.Yb.style.width=this.Sk+
"px",this.Yb.style.height=this.Di+"px"),this.H&&this.H.Wg(Math.round(a*b),Math.round(e*b)),this.hc&&this.Va&&(this.Va.width=Math.round(a),this.Va.height=Math.round(e)),this.Va&&this.Fm(this.Va,this.Ka),this.yu(),this.Es&&!this.Qc&&window.scrollTo(0,0)}};c.prototype.yu=function(){if(this.Ow&&0!==this.Dp){var a="portrait";2===this.Dp&&(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(e){console&&console.warn&&console.warn("Failed to lock orientation: ",e)}}};c.prototype.Dz=function(){this.H.Xw();this.Wo=!0;var a,e,b;a=0;for(e=this.J.length;a<e;a++)b=this.J[a],b.Wh&&b.Wh()};c.prototype.Ez=function(){this.Wo=!1;var a,e,b;a=0;for(e=this.J.length;a<e;a++)b=this.J[a],b.Jj&&b.Jj()};c.prototype.Ot=function(){if(!this.Ja){var a=(document.mozFullScreen||
document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.Qe)&&!this.Qc?jQuery(this.canvas).offset():jQuery(this.canvas).position();a.position="absolute";jQuery(this.Yb).css(a)}};var r=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;c.prototype.setSuspended=function(a){var e;if(a&&!this.aj)for(ea("[Construct 2] Suspending"),this.aj=!0,-1!==this.Np&&r&&r(this.Np),-1!==
this.mq&&clearTimeout(this.mq),a=0,e=this.fk.length;a<e;a++)this.fk[a](!0);else if(!a&&this.aj){ea("[Construct 2] Resuming");this.aj=!1;this.Hl=Wa();this.Ig=Wa();a=this.xj=this.nl=0;for(e=this.fk.length;a<e;a++)this.fk[a](!1);this.ya(!1)}};c.prototype.nr=function(a){this.fk.push(a)};c.prototype.vf=function(a){return this.Xl[a]};c.prototype.pj=function(a){a&&a.project||fa("Project model unavailable");a=a.project;this.name=a[0];this.Ur=a[1];this.pc=a[12];this.Wr=a[12];this.Za=a[10];this.Ya=a[11];this.Jt=
this.Za/2;this.Kt=this.Ya/2;this.Ja&&!this.xd&&(4<=a[12]||0===a[12])&&(ea("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.Wr=this.pc=3);this.yq=a[18];this.Tf=a[19];if(0===this.Tf){var e=new Image;e.crossOrigin="anonymous";this.bu(e,"loading-logo.png");this.Sf={Rl:e}}else if(4===this.Tf){e=new Image;e.src="";var b=new Image;b.src="";var f=new Image;f.src="";var d=new Image;d.src="";var m=new Image;m.src="";var k=new Image;k.src=
"";var c=new Image;c.src="";var q=new Image;q.src="";var h=new Image;h.src="";var l=new Image;l.src="";var u=new Image;u.src="";var g=new Image;g.src="";this.Sf={Rl:[e,b,f,d],Rz:[m,k,c,q],IA:[h,l,u,g]}}this.Dj=a[21];this.Xl=nc();this.te=new U(this);e=0;for(b=a[2].length;e<b;e++)c=a[2][e],f=this.vf(c[0]),pb(c,f.prototype),q=new f(this),q.Mm=c[1],q.Of=c[2],q.rz=c[5],q.jt=c[9],q.I&&q.I(),this.plugins.push(q);this.Xl=nc();e=0;for(b=a[3].length;e<b;e++){c=a[3][e];m=this.vf(c[1]);q=null;f=0;for(d=this.plugins.length;f<
d;f++)if(this.plugins[f]instanceof m){q=this.plugins[f];break}h=new q.M(q);h.name=c[0];h.P=c[2];h.Oo=c[3].slice(0);h.GA=c[3].length;h.Pw=c[4];h.vy=c[5];h.ra=c[11];h.P?(h.Rh=[],h.Ge=this.Ji++,h.Wa=null):(h.Rh=null,h.Ge=-1,h.Wa=[]);h.dl=null;h.uh=null;h.Or=null;h.uc=!1;h.Oc=null;c[6]?(h.hk=c[6][0],h.Vm=c[6][1],h.$g=c[6][2]):(h.hk=null,h.Vm=0,h.$g=0);c[7]?h.Nc=c[7]:h.Nc=null;h.index=e;h.k=[];h.Wk=[];h.kf=[new qb(h)];h.ge=0;h.ud=null;h.ax=0;h.fi=!0;h.cn=rb;h.$r=sb;h.Hy=ub;h.ea=vb;h.Rj=wb;h.um=xb;h.Vg=
yb;h.ql=zb;h.ro=Ab;h.wo=Bb;h.qd=Cb;h.xo=Db;h.yi=new hb(this.Za,this.Ya);h.Bk=!0;h.Ck=!1;h.N={};h.toString=Eb;h.ab=[];f=0;for(d=c[8].length;f<d;f++){l=c[8][f];u=this.vf(l[1]);g=null;m=0;for(k=this.ab.length;m<k;m++)if(this.ab[m]instanceof u){g=this.ab[m];break}g||(g=new u(this),g.Vl=[],g.Bj=new ca,g.I&&g.I(),this.ab.push(g),oc&&g instanceof oc&&(this.hq=g),pc&&g instanceof pc&&(this.Fs=g));-1===g.Vl.indexOf(h)&&g.Vl.push(h);m=new g.M(g,h);m.name=l[0];m.ra=l[2];m.I();h.ab.push(m)}h.global=c[9];h.Ro=
c[10];h.ca=[];f=0;for(d=c[12].length;f<d;f++)h.ca.push({id:c[12][f][0],name:c[12][f][1],Ab:-1,Ud:!1,$a:!0,index:f});h.XB=c[13];this.yq&&!h.P&&!h.Ro&&q.Of||h.I();h.name&&(this.types[h.name]=h);this.J.push(h);q.Mm&&(f=new q.K(h),f.uid=this.Dj++,f.St=this.lt++,f.yg=0,f.Pi=Fb,f.toString=Gb,f.A=c[14],f.I(),h.k.push(f),this.We[f.uid.toString()]=f)}e=0;for(b=a[4].length;e<b;e++)for(m=a[4][e],k=this.J[m[0]],f=1,d=m.length;f<d;f++)c=this.J[m[f]],c.Wa.push(k),k.Rh.push(c);e=0;for(b=a[28].length;e<b;e++){m=
a[28][e];k=[];f=0;for(d=m.length;f<d;f++)k.push(this.J[m[f]]);f=0;for(d=k.length;f<d;f++)k[f].uc=!0,k[f].Oc=k}if(0<this.Ji)for(e=0,b=this.J.length;e<b;e++)if(c=this.J[e],!c.P&&c.Wa.length){c.dl=Array(this.Ji);c.uh=Array(this.Ji);c.Or=Array(this.Ji);h=[];f=g=u=l=0;for(d=c.Wa.length;f<d;f++)for(q=c.Wa[f],c.dl[q.Ge]=l,l+=q.GA,c.uh[q.Ge]=u,u+=q.Pw,c.Or[q.Ge]=g,g+=q.vy,m=0,k=q.ca.length;m<k;m++)h.push(va({},q.ca[m]));c.ca=h.concat(c.ca);f=0;for(d=c.ca.length;f<d;f++)c.ca[f].index=f}e=0;for(b=a[5].length;e<
b;e++)c=a[5][e],f=new Hb(this,c),this.Nh[f.name]=f,this.Tc.push(f);e=0;for(b=a[6].length;e<b;e++)c=a[6][e],f=new Jb(this,c),this.fo[f.name]=f,this.Fe.push(f);e=0;for(b=this.Fe.length;e<b;e++)this.Fe[e].ob();e=0;for(b=this.Fe.length;e<b;e++)this.Fe[e].tq();e=0;for(b=this.bn.length;e<b;e++)this.bn[e].ob();O(this.bn);this.Nw=a[7];this.fl=a[8];this.Gc=a[9];this.wi=1;this.Gx=a[13];this.Ka=a[14];this.Fr=a[15];this.EA=a[17];this.Dp=a[20];this.Ow=0<this.Dp;this.Mz=a[22];this.$c=this.Ju=a[23];this.zx=a[24];
this.Sz=a[25];this.Pa=a[27]&&!this.Oe;this.Qm=Date.now();O(this.Xl);this.gz()};var e=!1;c.prototype.jn=function(a,b){a.cocoonLazyLoad=!0;a.onerror=function(b){e=a.Br=!0;console&&console.error&&console.error("Error loading image '"+a.src+"': ",b)};this.xd?a.src=b:a.src||("undefined"!==typeof XAPKReader?XAPKReader.get(b,function(e){a.src=e},function(f){e=a.Br=!0;console&&console.error&&console.error("Error extracting image '"+b+"' from expansion file: ",f)}):(a.crossOrigin="anonymous",this.bu(a,b)));
this.pi.push(a)};c.prototype.ty=function(a){var e,b;e=0;for(b=this.pi.length;e<b;e++)if(this.pi[e].Yw===a)return this.pi[e];return null};var f=0,k=!1;c.prototype.Yy=function(){this.hh&&(f=this.hh.oA(this.Nw))};c.prototype.sr=function(){var a=f,e=0,b=0,d=!0,m,c,b=0;for(m=this.pi.length;b<m;b++){c=this.pi[b];var q=c.Tn;if(!q||0>=q)q=5E4;a+=q;c.src&&(c.complete||c.loaded)&&!c.Br?e+=q:d=!1}d&&this.Sz&&this.hh&&(k||(this.hh.tA(),k=!0),b=this.hh.Iy(),e+=b,b<f&&(d=!1));this.Vd=0==a?1:e/a;return d};var m=
!1;c.prototype.go=function(){if(this.Va||this.H){var a=this.Va||this.Fp;this.Yb&&this.Ot();var b=window.innerWidth,f=window.innerHeight;this.Lh===b&&this.Kh===f||this.setSize(b,f);this.Vd=0;this.Js=-1;var c=this;if(this.sr()&&(4!==this.Tf||m))this.Zy();else{f=Date.now()-this.Qm;if(a){var k=this.width,q=this.height,b=this.devicePixelRatio;if(3>this.Tf&&(this.cd||500<=f&&this.Js!=this.Vd)){a.clearRect(0,0,k,q);var f=k/2,q=q/2,k=0===this.Tf&&this.Sf.Rl.complete,h=40*b,l=0,g=80*b,u;if(k){var t=this.Sf.Rl,
g=t.width*b;u=t.height*b;h=g/2;l=u/2;a.drawImage(t,z(f-h),z(q-l),g,u)}1>=this.Tf?(f=z(f-h)+.5,q=z(q+(l+(k?12*b:0)))+.5,a.fillStyle=e?"red":"DodgerBlue",a.fillRect(f,q,Math.floor(g*this.Vd),6*b),a.strokeStyle="black",a.strokeRect(f,q,g,6*b),a.strokeStyle="white",a.strokeRect(f-1*b,q-1*b,g+2*b,8*b)):2===this.Tf&&(a.font=this.xd?"12pt ArialMT":"12pt Arial",a.fillStyle=e?"#f00":"#999",a.WB="middle",b=Math.round(100*this.Vd)+"%",k=a.measureText?a.measureText(b):null,a.fillText(b,f-(k?k.width:0)/2,q));
this.Js=this.Vd}else if(4===this.Tf){this.Ex(a);d?d(function(){c.go()}):setTimeout(function(){c.go()},16);return}}setTimeout(function(){c.go()},this.cd?10:100)}}};var R=-1,F="undefined"===typeof cr_is_preview?200:0,B=!0,q=!1,u=0,S=0,H="undefined"===typeof cr_is_preview?3E3:0,t=null,I=null,D=0;c.prototype.Ex=function(a){if(!m){for(var b=Math.ceil(this.width),f=Math.ceil(this.height),d=this.Sf.Rl,c=this.Sf.Rz,k=this.Sf.IA,h=0;4>h;++h)if(!d[h].complete||!c[h].complete||!k[h].complete)return;0===D&&(R=
Date.now());var h=Date.now(),l=!1,g=a,r,n;B||q?(a.clearRect(0,0,b,f),t&&t.width===b&&t.height===f||(t=document.createElement("canvas"),t.width=b,t.height=f,I=t.getContext("2d")),g=I,l=!0,B&&1===D&&(R=Date.now())):a.globalAlpha=1;g.fillStyle="#333333";g.fillRect(0,0,b,f);256<this.Di?(r=Ea(.22*f,105,.6*b),n=.25*r,g.drawImage(p(c,r),.5*b-r/2,.2*f-n/2,r,n),n=r=Math.min(.395*f,.95*b),g.drawImage(p(d,r),.5*b-r/2,.485*f-n/2,r,n),r=Ea(.22*f,105,.6*b),n=.25*r,g.drawImage(p(k,r),.5*b-r/2,.868*f-n/2,r,n),g.fillStyle=
"#3C3C3C",r=b,n=Math.max(.005*f,2),g.fillRect(0,.8*f-n/2,r,n),g.fillStyle=e?"red":"#E0FF65",r=b*this.Vd,g.fillRect(.5*b-r/2,.8*f-n/2,r,n)):(n=r=.55*f,g.drawImage(p(d,r),.5*b-r/2,.45*f-n/2,r,n),g.fillStyle="#3C3C3C",r=b,n=Math.max(.005*f,2),g.fillRect(0,.85*f-n/2,r,n),g.fillStyle=e?"red":"#E0FF65",r=b*this.Vd,g.fillRect(.5*b-r/2,.85*f-n/2,r,n));l&&(B?a.globalAlpha=0===D?0:Math.min((h-R)/300,1):q&&(a.globalAlpha=Math.max(1-(h-S)/300,0)),a.drawImage(t,0,0,b,f));B&&300<=h-R&&2<=D&&(B=!1,u=h);!B&&h-u>=
H&&!q&&1<=this.Vd&&(q=!0,S=h);if(q&&h-S>=300+F||"undefined"!==typeof cr_is_preview&&1<=this.Vd&&500>Date.now()-R)m=!0,q=B=!1,this.Sf=I=t=null;++D}};c.prototype.Zy=function(){this.Yb&&(this.canvas.parentNode.removeChild(this.Yb),this.Yb=this.Fp=null);this.Qm=Date.now();this.Ig=Wa();var a,e,b;if(this.yq)for(a=0,e=this.J.length;a<e;a++)b=this.J[a],b.P||b.Ro||!b.xa.Of||b.I();else this.Pf=!1;a=0;for(e=this.Tc.length;a<e;a++)this.Tc[a].Zw();2<=this.pc&&(a=this.Za/this.Ya,e=this.width/this.height,this.wi=
2!==this.pc&&e>a||2===this.pc&&e<a?this.height/this.Ya:this.width/this.Za);this.Ur?this.Nh[this.Ur].jq():this.Tc[0].jq();this.yq||(this.Oh=1,this.trigger(U.prototype.n.Rq,null),window.C2_RegisterSW&&window.C2_RegisterSW());navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();a=0;for(e=this.J.length;a<e;a++)b=this.J[a],b.ut&&b.ut();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.ya(!1);this.hc&&AppMobi.webview.execute("onGameReady();")};
c.prototype.ya=function(a,e,b){if(this.Ia){var f=Wa();if(b||!this.aj||a){a||(d?this.Np=d(this.tu):this.mq=setTimeout(this.tu,this.Pe?1:16));e=e||f;var m=this.pc;((b=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.Qc)||this.Qe)&&0<this.Ie&&(m=this.Ie);if(0<m){var m=window.innerWidth,c=window.innerHeight;this.Lh===m&&this.Kh===c||this.setSize(m,c)}this.Ja||(b?(this.hl||(this.oo=jQuery(this.canvas).css("margin")||"0",this.hl=!0),this.Wi||
this.Nf||jQuery(this.canvas).css({"margin-left":""+Math.floor((screen.width-this.width/this.devicePixelRatio)/2)+"px","margin-top":""+Math.floor((screen.height-this.height/this.devicePixelRatio)/2)+"px"})):this.hl?(this.Wi||this.Nf||jQuery(this.canvas).css("margin",this.oo),this.oo="",this.hl=!1,0===this.pc&&this.setSize(Math.round(this.tt/this.devicePixelRatio),Math.round(this.qt/this.devicePixelRatio),!0)):(this.tt=this.width,this.qt=this.height));this.Pf&&(b=this.sr(),this.Oh=this.Vd,b&&(this.Pf=
!1,this.Vd=1,this.trigger(U.prototype.n.Rq,null),window.C2_RegisterSW&&window.C2_RegisterSW()));this.wz(e);!this.ja&&!this.cd||this.Wo||this.ek||a||(this.ja=!1,this.H?this.Tb():this.Pc(),this.ck&&(this.canvas&&this.canvas.toDataURL&&(this.lu=this.canvas.toDataURL(this.ck[0],this.ck[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.lu),this.trigger(U.prototype.n.Cv,null)),this.ck=null));this.IB||(this.ld++,this.qg++,this.nl++);this.xj+=Wa()-f}}};c.prototype.wz=function(a){var e,b,f,d,m,c,k,q;1E3<=
a-this.Ig&&(this.Ig+=1E3,1E3<=a-this.Ig&&(this.Ig=a),this.no=this.nl,this.nl=0,this.Sn=this.xj,this.xj=0);e=0;0!==this.Hl&&(e=a-this.Hl,0>e&&(e=0),this.lg=e/=1E3,.5<this.lg?this.lg=0:this.lg>1/this.ht&&(this.lg=1/this.ht));this.Hl=a;this.kg=this.lg*this.Zf;this.Hb.add(this.kg);this.sf.add(e);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.Qe)&&!this.Qc;2<=this.pc||a&&0<this.Ie?(e=this.Za/this.Ya,b=this.width/this.height,f=this.pc,a&&
0<this.Ie&&(f=this.Ie),this.wi=2!==f&&b>e||2===f&&b<e?this.height/this.Ya:this.width/this.Za,this.Ia&&(this.Ia.Yp(this.Ia.scrollX),this.Ia.Zp(this.Ia.scrollY))):this.wi=this.Cg?this.devicePixelRatio:1;this.$b();this.dd++;this.te.fA();this.dd--;this.$b();this.dd++;b=this.pt.Hd();a=0;for(e=b.length;a<e;a++)b[a].SB();a=0;for(e=this.J.length;a<e;a++)if(c=this.J[a],!c.P&&(c.ab.length||c.Wa.length))for(b=0,f=c.k.length;b<f;b++)for(k=c.k[b],d=0,m=k.V.length;d<m;d++)k.V[d].ya();a=0;for(e=this.J.length;a<
e;a++)if(c=this.J[a],!c.P&&(c.ab.length||c.Wa.length))for(b=0,f=c.k.length;b<f;b++)for(k=c.k[b],d=0,m=k.V.length;d<m;d++)q=k.V[d],q.Pt&&q.Pt();b=this.vp.Hd();a=0;for(e=b.length;a<e;a++)b[a].ya();this.dd--;this.$y();for(a=0;this.Od&&10>a++;)this.Mr(this.Od);a=0;for(e=this.Fe.length;a<e;a++)this.Fe[a].Fo=!1;this.Ia.ng&&this.Ia.ng.zb();O(this.Tj);this.gp=!1;this.dd++;a=0;for(e=this.J.length;a<e;a++)if(c=this.J[a],!c.P&&(c.ab.length||c.Wa.length))for(b=0,f=c.k.length;b<f;b++)for(k=c.k[b],d=0,m=k.V.length;d<
m;d++)q=k.V[d],q.ah&&q.ah();b=this.wp.Hd();a=0;for(e=b.length;a<e;a++)b[a].ah();this.dd--};c.prototype.Xe=function(){var a,e,b,f,d,m,c,k,q;a=0;for(e=this.J.length;a<e;a++)if(c=this.J[a],!c.P)for(b=0,f=c.k.length;b<f;b++)if(k=c.k[b],k.Xe&&k.Xe(),k.V)for(d=0,m=k.V.length;d<m;d++)q=k.V[d],q.Xe&&q.Xe()};c.prototype.Mr=function(a){var e=this.Ia;this.Ia.uA();var b,f,d;if(this.H)for(b=0,f=this.J.length;b<f;b++)d=this.J[b],d.P||!d.jk||d.global&&0!==d.k.length||-1!==a.Ti.indexOf(d)||d.jk();e==a&&O(this.te.Mc);
O(this.Tj);this.Wt(!0);a.jq();this.Wt(!1);this.gp=this.ja=!0;this.$b()};c.prototype.Wt=function(a){var e,b,f,d,m,c,k,q,h;e=0;for(b=this.ab.length;e<b;e++)f=this.ab[e],a?f.Ej&&f.Ej():f.Ij&&f.Ij();e=0;for(b=this.J.length;e<b;e++)if(f=this.J[e],f.global||f.xa.Mm)for(d=0,m=f.k.length;d<m;d++)if(c=f.k[d],a?c.Ej&&c.Ej():c.Ij&&c.Ij(),c.V)for(k=0,q=c.V.length;k<q;k++)h=c.V[k],a?h.Ej&&h.Ej():h.Ij&&h.Ij()};c.prototype.ji=function(a){this.vp.add(a)};c.prototype.xA=function(a){this.wp.add(a)};c.prototype.Qd=
function(a){return a&&-1!==a.Cj?this.lg*a.Cj:this.kg};c.prototype.Pc=function(){this.Ia.Pc(this.Va);this.hc&&this.Va.present()};c.prototype.Tb=function(){this.Pa&&(this.mg=1,this.Ia.jg(this.H));this.Ia.Tb(this.H);this.H.Uz()};c.prototype.zk=function(a){a&&this.Zk.push(a)};c.prototype.Vt=function(a){Da(this.Zk,a)};c.prototype.tg=function(a){a=a.toString();return this.We.hasOwnProperty(a)?this.We[a]:null};var E=[];c.prototype.we=function(a){var e,b;e=a.type.name;var f=null;if(this.ig.hasOwnProperty(e)){if(f=
this.ig[e],f.contains(a))return}else f=E.length?E.pop():new ca,this.ig[e]=f;f.add(a);this.Mf=!0;if(a.uc)for(e=0,b=a.siblings.length;e<b;e++)this.we(a.siblings[e]);this.Qo&&f.ni.push(a);this.Po||(this.dd++,this.trigger(Object.getPrototypeOf(a.type.xa).n.Iq,a),this.dd--)};c.prototype.$b=function(){if(this.Mf){var a,e,b,f,d,m;this.Qo=!0;b=0;for(d=this.Pd.length;b<d;++b)for(a=this.Pd[b],e=a.type,e.k.push(a),f=0,m=e.Wa.length;f<m;++f)e.Wa[f].k.push(a),e.Wa[f].fi=!0;O(this.Pd);this.vv();Va(this.ig);this.Mf=
this.Qo=!1}};c.prototype.vv=function(){for(var a in this.ig)this.ig.hasOwnProperty(a)&&this.Su(this.ig[a])};c.prototype.Su=function(a){var e=a.Hd(),b=e[0].type,f,d,m,c,k,q;Xa(b.k,a);b.fi=!0;0===b.k.length&&(b.Ck=!1);f=0;for(d=b.Wa.length;f<d;++f)q=b.Wa[f],Xa(q.k,a),q.fi=!0;f=0;for(d=this.te.Mc.length;f<d;++f)if(k=this.te.Mc[f],k.yc.hasOwnProperty(b.index)&&Xa(k.yc[b.index].Me,a),!b.P)for(m=0,c=b.Wa.length;m<c;++m)q=b.Wa[m],k.yc.hasOwnProperty(q.index)&&Xa(k.yc[q.index].Me,a);if(k=e[0].u){if(k.nd)for(m=
k.k,f=0,d=m.length;f<d;++f)c=m[f],a.contains(c)&&(c.aa(),k.Zb.update(c,c.Ic,null),c.Ic.set(0,0,-1,-1));Xa(k.k,a);k.Yj(0)}for(f=0;f<e.length;++f)this.Ru(e[f],b);a.clear();E.push(a);this.ja=!0};c.prototype.Ru=function(a,e){var b,f,d;b=0;for(f=this.Zk.length;b<f;++b)this.Zk[b](a);a.sd&&e.yi.update(a,a.sd,null);(b=a.u)&&b.$h(a,!0);if(a.V)for(b=0,f=a.V.length;b<f;++b)d=a.V[b],d.Td&&d.Td(),d.behavior.Bj.remove(a);this.pt.remove(a);this.vp.remove(a);this.wp.remove(a);a.Td&&a.Td();this.We.hasOwnProperty(a.uid.toString())&&
delete this.We[a.uid.toString()];this.Yl--;100>e.Wk.length&&e.Wk.push(a)};c.prototype.Un=function(a,e,b,f){if(a.P){var d=z(Math.random()*a.Rh.length);return this.Un(a.Rh[d],e,b,f)}return a.ud?this.Hf(a.ud,e,!1,b,f,!1):null};var v=[];c.prototype.Hf=function(a,e,b,f,d,m){var c,k,q,h;if(!a)return null;var l=this.J[a[1]],g=l.xa.Of;if(this.Pf&&g&&!l.Ro||g&&!this.H&&11===a[0][11])return null;var u=e;g||(e=null);var t;l.Wk.length?(t=l.Wk.pop(),t.ic=!0,l.xa.K.call(t,l)):(t=new l.xa.K(l),t.ic=!1);!b||m||this.We.hasOwnProperty(a[2].toString())?
t.uid=this.Dj++:t.uid=a[2];this.We[t.uid.toString()]=t;t.St=this.lt++;t.yg=l.k.length;c=0;for(k=this.Pd.length;c<k;++c)this.Pd[c].type===l&&t.yg++;t.Pi=Fb;t.toString=Gb;q=a[3];if(t.ic)Va(t.N);else{t.N={};if("undefined"!==typeof cr_is_preview)for(t.qs=[],t.qs.length=q.length,c=0,k=q.length;c<k;c++)t.qs[c]=q[c][1];t.Gb=[];t.Gb.length=q.length}c=0;for(k=q.length;c<k;c++)t.Gb[c]=q[c][0];if(g){var r=a[0];t.x=ga(f)?r[0]:f;t.y=ga(d)?r[1]:d;t.z=r[2];t.width=r[3];t.height=r[4];t.depth=r[5];t.q=r[6];t.opacity=
r[7];t.rc=r[8];t.tc=r[9];t.ac=r[10];c=r[11];!this.H&&l.ca.length&&(t.ac=c);t.Ai=jb(t.ac);this.L&&kb(t,t.ac,this.L);if(t.ic){c=0;for(k=r[12].length;c<k;c++)for(q=0,h=r[12][c].length;q<h;q++)t.eb[c][q]=r[12][c][q];t.Y.set(0,0,0,0);t.sd.set(0,0,-1,-1);t.Ic.set(0,0,-1,-1);t.Mb.Xg(t.Y);O(t.In)}else{t.eb=r[12].slice(0);c=0;for(k=t.eb.length;c<k;c++)t.eb[c]=r[12][c].slice(0);t.Ea=[];t.xf=[];t.xf.length=l.ca.length;t.Y=new sa(0,0,0,0);t.sd=new sa(0,0,-1,-1);t.Ic=new sa(0,0,-1,-1);t.Mb=new ta;t.In=[];t.F=
Kb;t.Iw=Lb;t.Cb=Mb;t.aa=Nb;t.Eu=Ob;t.xq=Pb;t.je=Qb}t.ki=!1;t.AA=0;t.zA=0;t.yA=null;14===r.length&&(t.ki=!0,t.AA=r[13][0],t.zA=r[13][1],t.yA=r[13][2]);c=0;for(k=l.ca.length;c<k;c++)t.xf[c]=!0;t.ff=!0;t.be=Rb;t.be();t.Gu=!!t.Ea.length;t.Hk=!0;t.Mn=!0;l.Bk=!0;t.visible=!0;t.Cj=-1;t.u=e;t.de=e.k.length;t.mg=0;"undefined"===typeof t.ta&&(t.ta=null);this.ja=t.Yc=!0}var p;O(v);c=0;for(k=l.Wa.length;c<k;c++)v.push.apply(v,l.Wa[c].ab);v.push.apply(v,l.ab);if(t.ic)for(c=0,k=v.length;c<k;c++){var n=v[c];p=t.V[c];
p.ic=!0;n.behavior.K.call(p,n,t);r=a[4][c];q=0;for(h=r.length;q<h;q++)p.A[q]=r[q];p.I();n.behavior.Bj.add(t)}else for(t.V=[],c=0,k=v.length;c<k;c++)n=v[c],p=new n.behavior.K(n,t),p.ic=!1,p.A=a[4][c].slice(0),p.I(),t.V.push(p),n.behavior.Bj.add(t);r=a[5];if(t.ic)for(c=0,k=r.length;c<k;c++)t.A[c]=r[c];else t.A=r.slice(0);this.Pd.push(t);this.Mf=!0;e&&(e.vi(t,!0),1!==e.Ec||1!==e.Fc)&&(l.Ck=!0);this.Yl++;if(l.uc){if(t.uc=!0,t.ic?O(t.siblings):t.siblings=[],!b&&!m){c=0;for(k=l.Oc.length;c<k;c++)if(l.Oc[c]!==
l){if(!l.Oc[c].ud)return null;t.siblings.push(this.Hf(l.Oc[c].ud,u,!1,g?t.x:f,g?t.y:d,!0))}c=0;for(k=t.siblings.length;c<k;c++)for(t.siblings[c].siblings.push(t),q=0;q<k;q++)c!==q&&t.siblings[c].siblings.push(t.siblings[q])}}else t.uc=!1,t.siblings=null;t.I();c=0;for(k=t.V.length;c<k;c++)t.V[c].Qz&&t.V[c].Qz();return t};c.prototype.Mi=function(a){var e,b;e=0;for(b=this.Ia.fa.length;e<b;e++){var f=this.Ia.fa[e];if(mb(f.name,a))return f}return null};c.prototype.Je=function(a){a=z(a);0>a&&(a=0);a>=this.Ia.fa.length&&
(a=this.Ia.fa.length-1);return this.Ia.fa[a]};c.prototype.Pn=function(a){var e,b;e=0;for(b=a.length;e<b;e++)a[e].ea().ka=!0};c.prototype.Rj=function(a){var e,b;e=0;for(b=a.length;e<b;e++)a[e].Rj()};c.prototype.um=function(a){var e,b;e=0;for(b=a.length;e<b;e++)a[e].um()};c.prototype.Vg=function(a){var e,b;e=0;for(b=a.length;e<b;e++)a[e].Vg()};c.prototype.Cu=function(a){if(a.Bk){var e,b,f=a.k;e=0;for(b=f.length;e<b;++e)f[e].xq();f=this.Pd;e=0;for(b=f.length;e<b;++e)f[e].type===a&&f[e].xq();a.Bk=!1}};
c.prototype.uo=function(a,e,b,f){var d,c,m=a?1!==a.Ec||1!==a.Fc:!1;if(e.P)for(a=0,d=e.Rh.length;a<d;++a)c=e.Rh[a],m||c.Ck?Ba(f,c.k):(this.Cu(c),c.yi.wm(b,f));else m||e.Ck?Ba(f,e.k):(this.Cu(e),e.yi.wm(b,f))};c.prototype.Bo=function(a,e,b,f){var d,c;d=0;for(c=e.length;d<c;++d)this.uo(a,e[d],b,f)};c.prototype.cs=function(a,e,b){var f=this.hq;f&&this.Bo(a,f.Vl,e,b)};c.prototype.Fy=function(a,e,b){var f=this.Fs;f&&this.Bo(a,f.Vl,e,b)};c.prototype.gi=function(a,e,b,f){var d=a.ea(),c,m,k,q,h=this.tb().cc.gd,
t,l,g;if(d.ka)for(f||(d.ka=!1,O(d.k)),c=0,q=a.k.length;c<q;c++)if(k=a.k[c],k.aa(),t=k.u.lb(e,b,!0),l=k.u.lb(e,b,!1),k.Cb(t,l)){if(f)return!1;d.k.push(k)}else h&&d.da.push(k);else{m=0;g=h?d.da:d.k;c=0;for(q=g.length;c<q;c++)if(k=g[c],k.aa(),t=k.u.lb(e,b,!0),l=k.u.lb(e,b,!1),k.Cb(t,l)){if(f)return!1;h?d.k.push(k):(d.k[m]=d.k[c],m++)}f||(g.length=m)}a.qd();return f?!0:d.yl()};c.prototype.mc=function(a,e){if(!(a&&e&&a!==e&&a.Yc&&e.Yc))return!1;a.aa();e.aa();var b=a.u,f=e.u,d,c,m,k,q,h,t,l;if(b===f||b.Ec===
f.Ec&&f.Fc===f.Fc&&b.scale===f.scale&&b.q===f.q&&b.oc===f.oc){if(!a.Y.ts(e.Y)||!a.Mb.rs(e.Mb)||a.ki&&e.ki)return!1;if(a.ki)return this.ru(a,e);if(e.ki)return this.ru(e,a);t=a.ta&&!a.ta.Dg();d=e.ta&&!e.ta.Dg();if(!t&&!d)return!0;t?(a.ta.gg(a.width,a.height,a.q),t=a.ta):(this.Zd.ci(a.Mb,a.x,a.y,a.width,a.height),t=this.Zd);d?(e.ta.gg(e.width,e.height,e.q),l=e.ta):(this.Zd.ci(e.Mb,e.x,e.y,e.width,e.height),l=this.Zd);return t.Ui(l,e.x-a.x,e.y-a.y)}t=a.ta&&!a.ta.Dg();d=e.ta&&!e.ta.Dg();t?(a.ta.gg(a.width,
a.height,a.q),this.Zd.eu(a.ta)):this.Zd.ci(a.Mb,a.x,a.y,a.width,a.height);t=this.Zd;d?(e.ta.gg(e.width,e.height,e.q),this.lq.eu(e.ta)):this.lq.ci(e.Mb,e.x,e.y,e.width,e.height);l=this.lq;d=0;for(c=t.Bd;d<c;d++)m=2*d,k=m+1,q=t.yb[m],h=t.yb[k],t.yb[m]=b.Xa(q+a.x,h+a.y,!0),t.yb[k]=b.Xa(q+a.x,h+a.y,!1);t.aa();d=0;for(c=l.Bd;d<c;d++)m=2*d,k=m+1,q=l.yb[m],h=l.yb[k],l.yb[m]=f.Xa(q+e.x,h+e.y,!0),l.yb[k]=f.Xa(q+e.x,h+e.y,!1);l.aa();return t.Ui(l,0,0)};var w=new ta,X=new sa(0,0,0,0),J=[];c.prototype.ru=function(a,
e){var b,f,d,c,m=e.Y,k=a.x,q=a.y;a.zy(m,J);var h=e.ta&&!e.ta.Dg();b=0;for(f=J.length;b<f;++b)if(d=J[b],c=d.Xz,m.us(c,k,q)&&(w.Xg(c),w.offset(k,q),w.rs(e.Mb)))if(h)if(e.ta.gg(e.width,e.height,e.q),d.Nj){if(d.Nj.Ui(e.ta,e.x-(k+c.left),e.y-(q+c.top)))return O(J),!0}else{if(this.Zd.ci(w,0,0,c.right-c.left,c.bottom-c.top),this.Zd.Ui(e.ta,e.x,e.y))return O(J),!0}else if(d.Nj){if(this.Zd.ci(e.Mb,0,0,e.width,e.height),d.Nj.Ui(this.Zd,-(k+c.left),-(q+c.top)))return O(J),!0}else return O(J),!0;O(J);return!1};
c.prototype.qu=function(a,e,b,f,d){if(!d||!d.Yc)return!1;d.aa();X.set(na(a,b),na(e,f),ma(a,b),ma(e,f));if(!d.Y.ts(X))return!1;if(d.ki){d.zy(X,J);var c,m,k,q=d.x,h=d.y;d=0;for(c=J.length;d<c;++d)if(m=J[d],k=m.Xz,X.us(k,q,h)&&(w.Xg(k),w.offset(q,h),w.Vi(a,e,b,f)))if(m.Nj){if(m.Nj.Vi(q+k.left,h+k.top,a,e,b,f))return O(J),!0}else return O(J),!0;O(J);return!1}if(!d.Mb.Vi(a,e,b,f))return!1;if(!d.ta||d.ta.Dg())return!0;d.ta.gg(d.width,d.height,d.q);return d.ta.Vi(d.x,d.y,a,e,b,f)};c.prototype.qq=function(a,
e){if(!e)return!1;var b,f,d,c,m;b=0;for(f=a.ab.length;b<f;b++)if(a.ab[b].behavior instanceof e)return!0;if(!a.P)for(b=0,f=a.Wa.length;b<f;b++)for(m=a.Wa[b],d=0,c=m.ab.length;d<c;d++)if(m.ab[d].behavior instanceof e)return!0;return!1};c.prototype.rq=function(a){return this.qq(a,fc.fB)};c.prototype.sq=function(a){return this.qq(a,fc.gB)};var M=[];c.prototype.Ra=function(a){var e,b,f;a.aa();this.cs(a.u,a.Y,M);e=0;for(b=M.length;e<b;++e)if(f=M[e],f.N.solidEnabled&&this.mc(a,f))return O(M),f;O(M);return null};
var K=[];c.prototype.lf=function(a,e){var b=null;e&&(b=K,O(b));a.aa();this.Fy(a.u,a.Y,M);var f,d,c;f=0;for(d=M.length;f<d;++f)if(c=M[f],c.N.jumpthruEnabled&&this.mc(a,c))if(e)b.push(c);else return O(M),c;O(M);return b};c.prototype.hd=function(a,e,b,f,d,c){f=f||50;var m=a.x,k=a.y,q,h=null,t=null;for(q=0;q<f;q++)if(a.x=m+e*q,a.y=k+b*q,a.F(),!this.mc(a,h)&&((h=this.Ra(a))&&(t=h),!h&&(d&&(c?h=this.mc(a,c)?c:null:h=this.lf(a),h&&(t=h)),!h)))return t&&this.Kp(a,e,b,t),!0;a.x=m;a.y=k;a.F();return!1};c.prototype.Kp=
function(a,e,b,f){var d=2,c,m=!1;c=!1;for(var k=a.x,q=a.y;16>=d;)c=1/d,d*=2,a.x+=e*c*(m?1:-1),a.y+=b*c*(m?1:-1),a.F(),this.mc(a,f)?c=m=!0:(c=m=!1,k=a.x,q=a.y);c&&(a.x=k,a.y=q,a.F())};c.prototype.Lp=function(a,e){var b=ga(e)?100:e,f=0,d=a.x,c=a.y,m=0,k=0,q=0,h=this.Ra(a);if(!h)return!0;for(;f<=b;){switch(m){case 0:k=0;q=-1;f++;break;case 1:k=1;q=-1;break;case 2:k=1;q=0;break;case 3:q=k=1;break;case 4:k=0;q=1;break;case 5:k=-1;q=1;break;case 6:k=-1;q=0;break;case 7:q=k=-1}m=(m+1)%8;a.x=z(d+k*f);a.y=
z(c+q*f);a.F();if(!this.mc(a,h)&&(h=this.Ra(a),!h))return!0}a.x=d;a.y=c;a.F();return!1};c.prototype.oe=function(a,e){a.Yc&&e.Yc&&this.Tj.push([a,e])};c.prototype.Vw=function(a,e){var b,f,d;b=0;for(f=this.Tj.length;b<f;b++)if(d=this.Tj[b],d[0]==a&&d[1]==e||d[0]==e&&d[1]==a)return!0;return!1};c.prototype.Tw=function(a,e,b){var f=a.x,d=a.y,c=ma(10,Pa(e,b,f,d)),m=Ka(e,b,f,d),k=this.Ra(a);if(!k)return Ha(m+oa);var q=k,h,t,l,g,u=Q(5);for(h=1;36>h;h++)if(t=m-h*u,a.x=e+Math.cos(t)*c,a.y=b+Math.sin(t)*c,a.F(),
!this.mc(a,q)&&(q=this.Ra(a),!q)){l=t;break}36===h&&(l=Ha(m+oa));q=k;for(h=1;36>h;h++)if(t=m+h*u,a.x=e+Math.cos(t)*c,a.y=b+Math.sin(t)*c,a.F(),!this.mc(a,q)&&(q=this.Ra(a),!q)){g=t;break}36===h&&(g=Ha(m+oa));a.x=f;a.y=d;a.F();if(g===l)return g;a=La(g,l)/2;a=Na(g,l)?Ha(l+a+oa):Ha(g+a);l=Math.cos(m);m=Math.sin(m);g=Math.cos(a);a=Math.sin(a);e=l*g+m*a;return Ka(0,0,l-2*e*g,m-2*e*a)};var A=-1;c.prototype.trigger=function(a,e,b){if(!this.Ia)return!1;var f=this.Ia.ng;if(!f)return!1;var d=!1,c,m,k;A++;var q=
f.Yn;m=0;for(k=q.length;m<k;++m)c=this.wu(a,e,q[m],b),d=d||c;c=this.wu(a,e,f,b);A--;return d||c};c.prototype.wu=function(a,e,b,f){var d=!1,c,m,k,q;if(e)for(k=this.oq(a,e,e.type.name,b,f),d=d||k,q=e.type.Wa,c=0,m=q.length;c<m;++c)k=this.oq(a,e,q[c].name,b,f),d=d||k;else k=this.oq(a,e,"system",b,f),d=d||k;return d};c.prototype.oq=function(a,e,b,f,d){var c,m=!1,k=!1,k="undefined"!==typeof d,q=(k?f.Qr:f.xu)[b];if(!q)return m;var h=null;f=0;for(c=q.length;f<c;++f)if(q[f].method==a){h=q[f].Hi;break}if(!h)return m;
var t;k?t=h[d]:t=h;if(!t)return null;f=0;for(c=t.length;f<c;f++)a=t[f][0],d=t[f][1],k=this.ny(e,b,a,d),m=m||k;return m};c.prototype.ny=function(a,e,b,f){var d,c,m=!1;this.pq++;var k=this.tb().cc;k&&this.Rj(k.Yf);var q=1<this.pq;this.Rj(b.Yf);q&&this.Wz();var h=this.vm(b);h.cc=b;a&&(d=this.types[e].ea(),d.ka=!1,O(d.k),d.k[0]=a,this.types[e].qd());a=!0;if(b.parent){e=h.pu;for(d=b.parent;d;)e.push(d),d=d.parent;e.reverse();d=0;for(c=e.length;d<c;d++)if(!e[d].hA()){a=!1;break}}a&&(this.qg++,b.gd?b.gA(f):
b.zb(),m=m||h.Hg);this.pm();q&&this.Pz();this.Vg(b.Yf);k&&this.Vg(k.Yf);this.Mf&&0===this.dd&&0===A&&!this.So&&this.$b();this.pq--;return m};c.prototype.Lf=function(){var a=this.tb();return a.cc.Nb[a.Bb]};c.prototype.By=function(){return this.Lf().type};c.prototype.jz=function(){return 0===this.tb().Bb};c.prototype.Ay=function(){var a=this.tb();return a.cc.od[a.Bc]};c.prototype.Wz=function(){this.Ql++;this.Ql>=this.np.length&&this.np.push([])};c.prototype.Pz=function(){this.Ql--};c.prototype.Yr=function(){return this.np[this.Ql]};
c.prototype.vm=function(a){this.al++;this.al>=this.eo.length&&this.eo.push(new Sb);var e=this.tb();e.reset(a);return e};c.prototype.pm=function(){this.al--};c.prototype.tb=function(){return this.eo[this.al]};c.prototype.Zr=function(a,e){for(var b,f,d,c,m,k;e;){b=0;for(f=e.Fd.length;b<f;b++)if(k=e.Fd[b],k instanceof Tb&&mb(a,k.name))return k;e=e.parent}b=0;for(f=this.Fe.length;b<f;b++)for(m=this.Fe[b],d=0,c=m.Jf.length;d<c;d++)if(k=m.Jf[d],k instanceof Tb&&mb(a,k.name))return k;return null};c.prototype.as=
function(a){var e,b;e=0;for(b=this.Tc.length;e<b;e++)if(this.Tc[e].ra===a)return this.Tc[e];return null};c.prototype.Ni=function(a){var e,b;e=0;for(b=this.J.length;e<b;e++)if(this.J[e].ra===a)return this.J[e];return null};c.prototype.Cy=function(a){var e,b;e=0;for(b=this.Af.length;e<b;e++)if(this.Af[e].ra===a)return this.Af[e];return null};c.prototype.cx=function(a,e){this.ck=[a,e];this.ja=!0};c.prototype.$y=function(){var a=this,e=this.Xp,f=this.Re,d=this.Ml,c=!1;this.ju&&(c=!0,e="__c2_continuouspreview",
this.ju=!1);if(e.length){this.$b();f=this.lA();if(n()&&!this.cd)h(e,f,function(){ea("Saved state to IndexedDB storage ("+f.length+" bytes)");a.Re=f;a.trigger(U.prototype.n.un,null);a.Re="";c&&b()},function(d){try{localStorage.setItem("__c2save_"+e,f),ea("Saved state to WebStorage ("+f.length+" bytes)"),a.Re=f,a.trigger(U.prototype.n.un,null),a.Re="",c&&b()}catch(m){ea("Failed to save game state: "+d+"; "+m),a.trigger(U.prototype.n.Yq,null)}});else try{localStorage.setItem("__c2save_"+e,f),ea("Saved state to WebStorage ("+
f.length+" bytes)"),a.Re=f,this.trigger(U.prototype.n.un,null),a.Re="",c&&b()}catch(m){ea("Error saving to WebStorage: "+m),a.trigger(U.prototype.n.Yq,null)}this.Ml=this.Xp="";this.Jb=null}if(d.length){if(n()&&!this.cd)l(d,function(e){e?(a.Jb=e,ea("Loaded state from IndexedDB storage ("+a.Jb.length+" bytes)")):(a.Jb=localStorage.getItem("__c2save_"+d)||"",ea("Loaded state from WebStorage ("+a.Jb.length+" bytes)"));a.ek=!1;a.Jb||(a.Jb=null,a.trigger(U.prototype.n.wk,null))},function(){a.Jb=localStorage.getItem("__c2save_"+
d)||"";ea("Loaded state from WebStorage ("+a.Jb.length+" bytes)");a.ek=!1;a.Jb||(a.Jb=null,a.trigger(U.prototype.n.wk,null))});else{try{this.Jb=localStorage.getItem("__c2save_"+d)||"",ea("Loaded state from WebStorage ("+this.Jb.length+" bytes)")}catch(k){this.Jb=null}this.ek=!1;a.Jb||(a.Jb=null,a.trigger(U.prototype.n.wk,null))}this.Xp=this.Ml=""}null!==this.Jb&&(this.$b(),this.vz(this.Jb)?(this.Re=this.Jb,this.trigger(U.prototype.n.Mv,null),this.Re=""):a.trigger(U.prototype.n.wk,null),this.Jb=null)};
c.prototype.lA=function(){var e,b,f,d,c,m,k,q={c2save:!0,version:1,rt:{time:this.Hb.T,walltime:this.sf.T,timescale:this.Zf,tickcount:this.ld,execcount:this.qg,next_uid:this.Dj,running_layout:this.Ia.ra,start_time_offset:Date.now()-this.Qm},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};e=0;for(b=this.J.length;e<b;e++)if(c=this.J[e],!c.P&&!this.rq(c)){m={instances:[]};Ua(c.N)&&(m.ex=a(c.N));f=0;for(d=c.k.length;f<d;f++)m.instances.push(this.Wp(c.k[f]));q.types[c.ra.toString()]=m}e=
0;for(b=this.Tc.length;e<b;e++)f=this.Tc[e],q.layouts[f.ra.toString()]=f.Na();d=q.events.groups;e=0;for(b=this.Af.length;e<b;e++)f=this.Af[e],d[f.ra.toString()]=this.yh[f.Qi].vg;b=q.events.cnds;for(k in this.Gf)this.Gf.hasOwnProperty(k)&&(e=this.Gf[k],Ua(e.N)&&(b[k]={ex:a(e.N)}));b=q.events.acts;for(k in this.yf)this.yf.hasOwnProperty(k)&&(e=this.yf[k],Ua(e.N)&&(b[k]={ex:a(e.N)}));b=q.events.vars;for(k in this.oi)this.oi.hasOwnProperty(k)&&(e=this.oi[k],e.Fl||e.parent&&!e.gj||(b[k]=e.data));q.system=
this.te.Na();return JSON.stringify(q)};c.prototype.Ut=function(){var a,e,b,f,d,c;this.We={};a=0;for(e=this.J.length;a<e;a++)if(b=this.J[a],!b.P)for(f=0,d=b.k.length;f<d;f++)c=b.k[f],this.We[c.uid.toString()]=c};c.prototype.vz=function(a){var e;try{e=JSON.parse(a)}catch(b){return!1}if(!e.c2save||1<e.version)return!1;this.Yi=!0;a=e.rt;this.Hb.reset();this.Hb.T=a.time;this.sf.reset();this.sf.T=a.walltime||0;this.Zf=a.timescale;this.ld=a.tickcount;this.qg=a.execcount;this.Qm=Date.now()-a.start_time_offset;
var f=a.running_layout;if(f!==this.Ia.ra)if(f=this.as(f))this.Mr(f);else return;var d,c,m,k,q,h,t;h=e.types;for(c in h)if(h.hasOwnProperty(c)&&(k=this.Ni(parseInt(c,10)))&&!k.P&&!this.rq(k)){h[c].ex?k.N=h[c].ex:Va(k.N);q=k.k;m=h[c].instances;f=0;for(d=na(q.length,m.length);f<d;f++)this.Nl(q[f],m[f]);f=m.length;for(d=q.length;f<d;f++)this.we(q[f]);f=q.length;for(d=m.length;f<d;f++){q=null;if(k.xa.Of&&(q=this.Ia.rl(m[f].w.l),!q))continue;q=this.Hf(k.ud,q,!1,0,0,!0);this.Nl(q,m[f])}k.fi=!0}this.$b();
this.Ut();d=e.layouts;for(c in d)d.hasOwnProperty(c)&&(f=this.as(parseInt(c,10)))&&f.Ua(d[c]);d=e.events.groups;for(c in d)d.hasOwnProperty(c)&&(f=this.Cy(parseInt(c,10)))&&this.yh[f.Qi]&&this.yh[f.Qi].Wj(d[c]);f=e.events.cnds;for(c in this.Gf)this.Gf.hasOwnProperty(c)&&(f.hasOwnProperty(c)?this.Gf[c].N=f[c].ex:this.Gf[c].N={});f=e.events.acts;for(c in this.yf)this.yf.hasOwnProperty(c)&&(f.hasOwnProperty(c)?this.yf[c].N=f[c].ex:this.yf[c].N={});f=e.events.vars;for(c in f)f.hasOwnProperty(c)&&this.oi.hasOwnProperty(c)&&
(this.oi[c].data=f[c]);this.Dj=a.next_uid;this.Yi=!1;f=0;for(d=this.gl.length;f<d;++f)q=this.gl[f],this.trigger(Object.getPrototypeOf(q.type.xa).n.ag,q);O(this.gl);this.te.Ua(e.system);f=0;for(d=this.J.length;f<d;f++)if(k=this.J[f],!k.P&&!this.rq(k))for(e=0,c=k.k.length;e<c;e++){q=k.k[e];if(k.uc)for(h=q.Pi(),O(q.siblings),a=0,m=k.Oc.length;a<m;a++)t=k.Oc[a],k!==t&&q.siblings.push(t.k[h]);q.Jd&&q.Jd();if(q.V)for(a=0,m=q.V.length;a<m;a++)h=q.V[a],h.Jd&&h.Jd()}return this.ja=!0};c.prototype.Wp=function(e,
b){var f,d,c,m,k;m=e.type;c=m.xa;var q={};b?q.c2=!0:q.uid=e.uid;Ua(e.N)&&(q.ex=a(e.N));if(e.Gb&&e.Gb.length)for(q.ivs={},f=0,d=e.Gb.length;f<d;f++)q.ivs[e.type.Oo[f].toString()]=e.Gb[f];if(c.Of){c={x:e.x,y:e.y,w:e.width,h:e.height,l:e.u.ra,zi:e.je()};0!==e.q&&(c.a=e.q);1!==e.opacity&&(c.o=e.opacity);.5!==e.rc&&(c.hX=e.rc);.5!==e.tc&&(c.hY=e.tc);0!==e.ac&&(c.bm=e.ac);e.visible||(c.v=e.visible);e.Yc||(c.ce=e.Yc);-1!==e.Cj&&(c.mts=e.Cj);if(m.ca.length)for(c.fx=[],f=0,d=m.ca.length;f<d;f++)k=m.ca[f],
c.fx.push({name:k.name,active:e.xf[k.index],params:e.eb[k.index]});q.w=c}if(e.V&&e.V.length)for(q.behs={},f=0,d=e.V.length;f<d;f++)m=e.V[f],m.Na&&(q.behs[m.type.ra.toString()]=m.Na());e.Na&&(q.data=e.Na());return q};c.prototype.Ey=function(a,e){var b,f;b=0;for(f=a.Oo.length;b<f;b++)if(a.Oo[b]===e)return b;return-1};c.prototype.yy=function(a,e){var b,f;b=0;for(f=a.V.length;b<f;b++)if(a.V[b].type.ra===e)return b;return-1};c.prototype.Nl=function(a,e,b){var f,d,c,m,k;k=a.type;m=k.xa;if(b){if(!e.c2)return}else a.uid=
e.uid;e.ex?a.N=e.ex:Va(a.N);if(d=e.ivs)for(f in d)d.hasOwnProperty(f)&&(c=this.Ey(k,parseInt(f,10)),0>c||c>=a.Gb.length||(a.Gb[c]=d[f]));if(m.Of){c=e.w;a.u.ra!==c.l&&(d=a.u,a.u=this.Ia.rl(c.l),a.u?(d.$h(a,!0),a.u.vi(a,!0),a.F(),a.u.Yj(0)):(a.u=d,b||this.we(a)));a.x=c.x;a.y=c.y;a.width=c.w;a.height=c.h;a.de=c.zi;a.q=c.hasOwnProperty("a")?c.a:0;a.opacity=c.hasOwnProperty("o")?c.o:1;a.rc=c.hasOwnProperty("hX")?c.hX:.5;a.tc=c.hasOwnProperty("hY")?c.hY:.5;a.visible=c.hasOwnProperty("v")?c.v:!0;a.Yc=c.hasOwnProperty("ce")?
c.ce:!0;a.Cj=c.hasOwnProperty("mts")?c.mts:-1;a.ac=c.hasOwnProperty("bm")?c.bm:0;a.Ai=jb(a.ac);this.L&&kb(a,a.ac,this.L);a.F();if(c.hasOwnProperty("fx"))for(b=0,d=c.fx.length;b<d;b++)m=k.wo(c.fx[b].name),0>m||(a.xf[m]=c.fx[b].active,a.eb[m]=c.fx[b].params);a.be()}if(k=e.behs)for(f in k)k.hasOwnProperty(f)&&(b=this.yy(a,parseInt(f,10)),0>b||a.V[b].Ua(k[f]));e.data&&a.Ua(e.data)};c.prototype.Rr=function(a,e,b){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+"www/"+a,function(a){a.file(e,
b)},b)};c.prototype.oy=function(a,e){this.Rr("data.js",function(b){var f=new FileReader;f.onload=function(e){a(e.target.result)};f.onerror=e;f.readAsText(b)},e)};var T=[],C=0;c.prototype.qp=function(){if(T.length&&!(8<=C)){C++;var a=T.shift();this.hx(a.filename,a.wA,a.Jx)}};c.prototype.Sr=function(a,e,b){var f=this;T.push({filename:a,wA:function(a){C--;f.qp();e(a)},Jx:function(a){C--;f.qp();b(a)}});this.qp()};c.prototype.hx=function(a,e,b){this.Rr(a,function(a){var b=new FileReader;b.onload=function(a){e(a.target.result)};
b.readAsArrayBuffer(a)},b)};c.prototype.qy=function(a,e,b){this.Sr(a,function(a){a=URL.createObjectURL(new Blob([a]));e(a)},b)};c.prototype.hz=function(a){return/^(?:[a-z]+:)?\/\//.test(a)||"data:"===a.substr(0,5)||"blob:"===a.substr(0,5)};c.prototype.bu=function(a,e){this.cj&&!this.hz(e)?this.qy(e,function(e){a.src=e},function(a){alert("Failed to load image: "+a)}):a.src=e};c.prototype.Fm=function(a,e){"undefined"!==typeof a.imageSmoothingEnabled?a.imageSmoothingEnabled=e:(a.webkitImageSmoothingEnabled=
e,a.mozImageSmoothingEnabled=e,a.msImageSmoothingEnabled=e)};Ub=function(a){return new c(document.getElementById(a))};Vb=function(a,e){return new c({dc:!0,width:a,height:e})};window.cr_createRuntime=Ub;window.cr_createDCRuntime=Vb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.ih=!0;document.body.appendChild(a);a=new c(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 c(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();window.cr_getC2Runtime=function(){var c=document.getElementById("c2canvas");return c?c.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(c,p){var n=window.cr_getC2Runtime();n&&n.cx(c,p)};
window.cr_sizeCanvas=function(c,p){if(0!==c&&0!==p){var n=window.cr_getC2Runtime();n&&n.setSize(c,p)}};window.cr_setSuspended=function(c){var p=window.cr_getC2Runtime();p&&p.setSuspended(c)};
(function(){function c(a,b){this.b=a;this.ng=null;this.scrollX=this.b.Za/2;this.scrollY=this.b.Ya/2;this.scale=1;this.q=0;this.vh=!0;this.name=b[0];this.Kz=b[1];this.Jz=b[2];this.width=b[1];this.height=b[2];this.zu=b[3];this.hu=b[4];this.ra=b[5];var d=b[6],c,h;this.fa=[];this.Ti=[];c=0;for(h=d.length;c<h;c++){var l=new Wb(this,d[c]);l.nt=c;this.fa.push(l)}d=b[7];this.Ag=[];c=0;for(h=d.length;c<h;c++){var l=d[c],g=this.b.J[l[1]];g.ud||(g.ud=l);this.Ag.push(l);-1===this.Ti.indexOf(g)&&this.Ti.push(g)}this.ca=
[];this.Ea=[];this.ff=!0;this.eb=[];c=0;for(h=b[8].length;c<h;c++)this.ca.push({id:b[8][c][0],name:b[8][c][1],Ab:-1,Ud:!1,$a:!0,index:c}),this.eb.push(b[8][c][2].slice(0));this.be();this.Wf=new sa(0,0,1,1);this.Pp=new sa(0,0,1,1);this.Vf={}}function p(a,b){return a.de-b.de}function n(a,b){this.ub=a;this.b=a.b;this.k=[];this.scale=1;this.q=0;this.De=!1;this.of=new sa(0,0,0,0);this.uu=new ta;this.Ca=this.Aa=this.Da=this.za=0;this.dh=!1;this.uf=-1;this.Qn=0;this.name=b[0];this.index=b[1];this.ra=b[2];
this.visible=b[3];this.Md=b[4];this.ae=b[5];this.Ec=b[6];this.Fc=b[7];this.opacity=b[8];this.ml=b[9];this.nd=b[10];this.oc=b[11];this.ac=b[12];this.Fx=b[13];this.Ai="source-over";this.fc=this.kc=0;this.Zb=null;this.Se=g();this.Xd=!0;this.Mh=new sa(0,0,-1,-1);this.Sb=new sa(0,0,-1,-1);this.nd&&(this.Zb=new ib(this.b.Za,this.b.Ya));this.pe=!1;var d=b[14],c,h;this.nu=[];this.bd=[];this.Ci=[];c=0;for(h=d.length;c<h;c++){var l=d[c],r=this.b.J[l[1]];r.ud||(r.ud=l,r.ax=this.index);this.bd.push(l);-1===this.ub.Ti.indexOf(r)&&
this.ub.Ti.push(r)}Aa(this.nu,this.bd);this.ca=[];this.Ea=[];this.ff=!0;this.eb=[];c=0;for(h=b[15].length;c<h;c++)this.ca.push({id:b[15][c][0],name:b[15][c][1],Ab:-1,Ud:!1,$a:!0,index:c}),this.eb.push(b[15][c][2].slice(0));this.be();this.Wf=new sa(0,0,1,1);this.Pp=new sa(0,0,1,1)}function g(){return a.length?a.pop():[]}function h(e){O(e);a.push(e)}c.prototype.kA=function(a){var b=a.type.ra.toString();this.Vf.hasOwnProperty(b)||(this.Vf[b]=[]);this.Vf[b].push(this.b.Wp(a))};c.prototype.es=function(){var a=
this.fa[0];return!a.ae&&1===a.opacity&&!a.ml&&a.visible};c.prototype.be=function(){O(this.Ea);this.ff=!0;var a,b,d;a=0;for(b=this.ca.length;a<b;a++)d=this.ca[a],d.$a&&(this.Ea.push(d),d.Ud||(this.ff=!1))};c.prototype.vo=function(a){var b,d,c;b=0;for(d=this.ca.length;b<d;b++)if(c=this.ca[b],c.name===a)return c;return null};var l=[],b=!0;c.prototype.jq=function(){this.hu&&(this.ng=this.b.fo[this.hu],this.ng.tq());this.b.Ia=this;this.width=this.Kz;this.height=this.Jz;this.scrollX=this.b.Za/2;this.scrollY=
this.b.Ya/2;var a,f,d,c,h,g,r;a=0;for(d=this.b.J.length;a<d;a++)if(f=this.b.J[a],!f.P)for(h=f.k,f=0,c=h.length;f<c;f++)if(g=h[f],g.u){var q=g.u.nt;q>=this.fa.length&&(q=this.fa.length-1);g.u=this.fa[q];-1===g.u.k.indexOf(g)&&g.u.k.push(g);g.u.dh=!0}if(!b)for(a=0,d=this.fa.length;a<d;++a)this.fa[a].k.sort(p);O(l);this.Rw();a=0;for(d=this.fa.length;a<d;a++)g=this.fa[a],g.$w(),g.gn();h=!1;if(!this.vh){for(r in this.Vf)if(this.Vf.hasOwnProperty(r)&&(f=this.b.Ni(parseInt(r,10)))&&!f.P&&this.b.sq(f)){c=
this.Vf[r];a=0;for(d=c.length;a<d;a++){g=null;if(f.xa.Of&&(g=this.rl(c[a].w.l),!g))continue;g=this.b.Hf(f.ud,g,!1,0,0,!0);this.b.Nl(g,c[a]);h=!0;l.push(g)}O(c)}a=0;for(d=this.fa.length;a<d;a++)this.fa[a].k.sort(p),this.fa[a].dh=!0}h&&(this.b.$b(),this.b.Ut());for(a=0;a<l.length;a++)if(g=l[a],g.type.uc)for(d=g.Pi(),f=0,c=g.type.Oc.length;f<c;f++)r=g.type.Oc[f],g.type!==r&&(r.k.length>d?g.siblings.push(r.k[d]):r.ud&&(h=this.b.Hf(r.ud,g.u,!0,g.x,g.y,!0),this.b.$b(),r.cn(),g.siblings.push(h),l.push(h)));
a=0;for(d=this.Ag.length;a<d;a++)this.b.Hf(this.Ag[a],null,!0);this.b.Od=null;this.b.$b();if(this.b.Va&&!this.b.Ja)for(a=0,d=this.b.J.length;a<d;a++)r=this.b.J[a],!r.P&&r.k.length&&r.Oj&&r.Oj(this.b.Va);if(this.b.Yi)Aa(this.b.gl,l);else for(a=0,d=l.length;a<d;a++)g=l[a],this.b.trigger(Object.getPrototypeOf(g.type.xa).n.ag,g);O(l);this.b.Yi||this.b.trigger(U.prototype.n.Qq,null);this.vh=!1};c.prototype.Zw=function(){var a,b,d,c,h;b=a=0;for(d=this.Ag.length;a<d;a++)c=this.Ag[a],h=this.b.J[c[1]],h.global?
h.uc||this.b.Hf(c,null,!0):(this.Ag[b]=c,b++);za(this.Ag,b)};c.prototype.uA=function(){this.b.Yi||this.b.trigger(U.prototype.n.Lv,null);this.b.Po=!0;O(this.b.te.Mc);var a,f,d,c,h,l;if(!this.vh)for(a=0,f=this.fa.length;a<f;a++)for(this.fa[a].wq(),h=this.fa[a].k,d=0,c=h.length;d<c;d++)l=h[d],l.type.global||this.b.sq(l.type)&&this.kA(l);a=0;for(f=this.fa.length;a<f;a++){h=this.fa[a].k;d=0;for(c=h.length;d<c;d++)l=h[d],l.type.global||this.b.we(l);this.b.$b();O(h);this.fa[a].dh=!0}a=0;for(f=this.b.J.length;a<
f;a++)if(h=this.b.J[a],!(h.global||h.xa.Of||h.xa.Mm||h.P)){d=0;for(c=h.k.length;d<c;d++)this.b.we(h.k[d]);this.b.$b()}b=!1;this.b.Po=!1};new sa(0,0,0,0);c.prototype.Pc=function(a){var b,d=a,c=!1,h=!this.b.$c;h&&(this.b.Ll||(this.b.Ll=document.createElement("canvas"),b=this.b.Ll,b.width=this.b.X,b.height=this.b.W,this.b.Ls=b.getContext("2d"),c=!0),b=this.b.Ll,d=this.b.Ls,b.width!==this.b.X&&(b.width=this.b.X,c=!0),b.height!==this.b.W&&(b.height=this.b.W,c=!0),c&&this.b.Fm(d,this.b.Ka));d.globalAlpha=
1;d.globalCompositeOperation="source-over";this.b.Fr&&!this.es()&&d.clearRect(0,0,this.b.X,this.b.W);var l,g,c=0;for(l=this.fa.length;c<l;c++)g=this.fa[c],g.visible&&0<g.opacity&&11!==g.ac&&(g.k.length||!g.ae)?g.Pc(d):g.gn();h&&a.drawImage(b,0,0,this.b.width,this.b.height)};c.prototype.jg=function(a){a.au(!0);this.b.wb||(this.b.wb=a.Zc(this.b.X,this.b.W,this.b.Ka));if(this.b.wb.fg!==this.b.X||this.b.wb.eg!==this.b.W)a.deleteTexture(this.b.wb),this.b.wb=a.Zc(this.b.X,this.b.W,this.b.Ka);a.Dd(this.b.wb);
this.b.$c||a.Wg(this.b.X,this.b.W);var b,d;for(b=this.fa.length-1;0<=b;--b)d=this.fa[b],d.visible&&1===d.opacity&&d.ff&&0===d.ac&&(d.k.length||!d.ae)?d.jg(a):d.gn();a.au(!1)};c.prototype.Tb=function(a){var b=0<this.Ea.length||this.b.mi||!this.b.$c||this.b.Pa;if(b){this.b.wb||(this.b.wb=a.Zc(this.b.X,this.b.W,this.b.Ka));if(this.b.wb.fg!==this.b.X||this.b.wb.eg!==this.b.W)a.deleteTexture(this.b.wb),this.b.wb=a.Zc(this.b.X,this.b.W,this.b.Ka);a.Dd(this.b.wb);this.b.$c||a.Wg(this.b.X,this.b.W)}else this.b.wb&&
(a.Dd(null),a.deleteTexture(this.b.wb),this.b.wb=null);this.b.Fr&&!this.es()&&a.clear(0,0,0,0);var d,c,h;d=0;for(c=this.fa.length;d<c;d++)h=this.fa[d],h.visible&&0<h.opacity&&(h.k.length||!h.ae)?h.Tb(a):h.gn();b&&(0===this.Ea.length||1===this.Ea.length&&this.b.$c?(1===this.Ea.length?(b=this.Ea[0].index,a.Lc(this.Ea[0].Ab),a.bi(null,1/this.b.X,1/this.b.W,0,0,1,1,this.scale,this.q,0,0,this.b.X/2,this.b.W/2,this.b.Hb.T,this.eb[b]),a.tm(this.Ea[0].Ab)&&(this.b.ja=!0)):a.Lc(0),this.b.$c||a.Wg(this.b.width,
this.b.height),a.Dd(null),a.$t(!1),a.df(1),a.xc(this.b.wb),a.Yt(),a.Cd(),a.md(),b=this.b.width/2,d=this.b.height/2,a.Zh(-b,d,b,d,b,-d,-b,-d),a.xc(null),a.$t(!0)):this.Rp(a,null,null,null))};c.prototype.Oi=function(){return 0<this.Ea.length||this.b.mi||!this.b.$c||this.b.Pa?this.b.wb:null};c.prototype.bs=function(){var a=this.fa[0].Cc(),b,d,c;b=1;for(d=this.fa.length;b<d;b++)c=this.fa[b],(0!==c.Ec||0!==c.Fc)&&c.Cc()<a&&(a=c.Cc());return a};c.prototype.Yp=function(a){if(!this.zu){var b=1/this.bs()*
this.b.X/2;a>this.width-b&&(a=this.width-b);a<b&&(a=b)}this.scrollX!==a&&(this.scrollX=a,this.b.ja=!0)};c.prototype.Zp=function(a){if(!this.zu){var b=1/this.bs()*this.b.W/2;a>this.height-b&&(a=this.height-b);a<b&&(a=b)}this.scrollY!==a&&(this.scrollY=a,this.b.ja=!0)};c.prototype.Rw=function(){this.Yp(this.scrollX);this.Zp(this.scrollY)};c.prototype.Rp=function(a,b,d,c){var h=d?d.Ea:b?b.Ea:this.Ea,l=1,g=0,q=0,u=0,r=this.b.X,p=this.b.W;d?(l=d.u.Cc(),g=d.u.Eb(),q=d.u.za,u=d.u.Aa,r=d.u.Da,p=d.u.Ca):b&&
(l=b.Cc(),g=b.Eb(),q=b.za,u=b.Aa,r=b.Da,p=b.Ca);var t=this.b.po,n,D,E,v,w=0,X=1,J,M,K=this.b.X,A=this.b.W,T=K/2,C=A/2,x=b?b.Wf:this.Wf,y=b?b.Pp:this.Pp,P=0,L=0,G=0,N=0,V=K,xa=K,W=A,ya=A,ra=E=0;v=d?d.u.Eb():0;if(d){n=0;for(D=h.length;n<D;n++)E+=a.Jy(h[n].Ab),ra+=a.Ky(h[n].Ab);N=d.Y;P=b.Xa(N.left,N.top,!0,!0);G=b.Xa(N.left,N.top,!1,!0);V=b.Xa(N.right,N.bottom,!0,!0);W=b.Xa(N.right,N.bottom,!1,!0);0!==v&&(n=b.Xa(N.right,N.top,!0,!0),D=b.Xa(N.right,N.top,!1,!0),L=b.Xa(N.left,N.bottom,!0,!0),N=b.Xa(N.left,
N.bottom,!1,!0),v=Math.min(P,V,n,L),V=Math.max(P,V,n,L),P=v,v=Math.min(G,W,D,N),W=Math.max(G,W,D,N),G=v);P-=E;G-=ra;V+=E;W+=ra;y.left=P/K;y.top=1-G/A;y.right=V/K;y.bottom=1-W/A;L=P=z(P);N=G=z(G);xa=V=pa(V);ya=W=pa(W);L-=E;N-=ra;xa+=E;ya+=ra;0>P&&(P=0);0>G&&(G=0);V>K&&(V=K);W>A&&(W=A);0>L&&(L=0);0>N&&(N=0);xa>K&&(xa=K);ya>A&&(ya=A);x.left=P/K;x.top=1-G/A;x.right=V/K;x.bottom=1-W/A}else x.left=y.left=0,x.top=y.top=0,x.right=y.right=1,x.bottom=y.bottom=1;ra=d&&(a.Pj(h[0].Ab)||0!==E||0!==ra||1!==d.opacity||
d.type.xa.jt)||b&&!d&&1!==b.opacity;a.Yt();if(ra){t[w]||(t[w]=a.Zc(K,A,this.b.Ka));if(t[w].fg!==K||t[w].eg!==A)a.deleteTexture(t[w]),t[w]=a.Zc(K,A,this.b.Ka);a.Lc(0);a.Dd(t[w]);M=ya-N;a.clearRect(L,A-N-M,xa-L,M);d?d.Tb(a):(a.xc(this.b.Ib),a.df(b.opacity),a.Cd(),a.translate(-T,-C),a.md(),a.Wd(P,W,V,W,V,G,P,G,x));y.left=y.top=0;y.right=y.bottom=1;d&&(v=x.top,x.top=x.bottom,x.bottom=v);w=1;X=0}a.df(1);E=h.length-1;var Qa=a.Jp(h[E].Ab)||!b&&!d&&!this.b.$c;n=v=0;for(D=h.length;n<D;n++){t[w]||(t[w]=a.Zc(K,
A,this.b.Ka));if(t[w].fg!==K||t[w].eg!==A)a.deleteTexture(t[w]),t[w]=a.Zc(K,A,this.b.Ka);a.Lc(h[n].Ab);v=h[n].index;a.tm(h[n].Ab)&&(this.b.ja=!0);0!=n||ra?(a.bi(c,1/K,1/A,y.left,y.top,y.right,y.bottom,l,g,q,u,(q+r)/2,(u+p)/2,this.b.Hb.T,d?d.eb[v]:b?b.eb[v]:this.eb[v]),a.xc(null),n!==E||Qa?(a.Dd(t[w]),M=ya-N,J=A-N-M,a.clearRect(L,J,xa-L,M)):(d?a.Xf(d.kc,d.fc):b&&a.Xf(b.kc,b.fc),a.Dd(c)),a.xc(t[X]),a.Cd(),a.translate(-T,-C),a.md(),a.Wd(P,W,V,W,V,G,P,G,x),n!==E||Qa||a.xc(null)):(a.Dd(t[w]),M=ya-N,J=
A-N-M,a.clearRect(L,J,xa-L,M),d?(d.Rb&&d.Rb.O?(J=d.Rb.O,X=1/J.width,J=1/J.height):(X=1/d.width,J=1/d.height),a.bi(c,X,J,y.left,y.top,y.right,y.bottom,l,g,q,u,(q+r)/2,(u+p)/2,this.b.Hb.T,d.eb[v]),d.Tb(a)):(a.bi(c,1/K,1/A,0,0,1,1,l,g,q,u,(q+r)/2,(u+p)/2,this.b.Hb.T,b?b.eb[v]:this.eb[v]),a.xc(b?this.b.Ib:this.b.wb),a.Cd(),a.translate(-T,-C),a.md(),a.Wd(P,W,V,W,V,G,P,G,x)),y.left=y.top=0,y.right=y.bottom=1,d&&!Qa&&(v=W,W=G,G=v));w=0===w?1:0;X=0===w?1:0}Qa&&(a.Lc(0),d?a.Xf(d.kc,d.fc):b?a.Xf(b.kc,b.fc):
this.b.$c||(a.Wg(this.b.width,this.b.height),T=this.b.width/2,C=this.b.height/2,G=P=0,V=this.b.width,W=this.b.height),a.Dd(c),a.xc(t[X]),a.Cd(),a.translate(-T,-C),a.md(),d&&1===h.length&&!ra?a.Wd(P,G,V,G,V,W,P,W,x):a.Wd(P,W,V,W,V,G,P,G,x),a.xc(null))};c.prototype.rl=function(a){var b,d;b=0;for(d=this.fa.length;b<d;b++)if(this.fa[b].ra===a)return this.fa[b];return null};c.prototype.Na=function(){var a,b,d,c={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.q,w:this.width,h:this.height,fv:this.vh,
persist:this.Vf,fx:[],layers:{}};a=0;for(b=this.ca.length;a<b;a++)d=this.ca[a],c.fx.push({name:d.name,active:d.$a,params:this.eb[d.index]});a=0;for(b=this.fa.length;a<b;a++)d=this.fa[a],c.layers[d.ra.toString()]=d.Na();return c};c.prototype.Ua=function(a){var b,d,c,h;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.q=a.a;this.width=a.w;this.height=a.h;this.Vf=a.persist;"undefined"!==typeof a.fv&&(this.vh=a.fv);var l=a.fx;b=0;for(d=l.length;b<d;b++)if(c=this.vo(l[b].name))c.$a=l[b].active,this.eb[c.index]=
l[b].params;this.be();b=a.layers;for(h in b)b.hasOwnProperty(h)&&(a=this.rl(parseInt(h,10)))&&a.Ua(b[h])};Hb=c;n.prototype.be=function(){O(this.Ea);this.ff=!0;var a,b,d;a=0;for(b=this.ca.length;a<b;a++)d=this.ca[a],d.$a&&(this.Ea.push(d),d.Ud||(this.ff=!1))};n.prototype.vo=function(a){var b,d,c;b=0;for(d=this.ca.length;b<d;b++)if(c=this.ca[b],c.name===a)return c;return null};n.prototype.$w=function(){var a,b,d,c,h,g;b=a=0;for(d=this.bd.length;a<d;a++){c=this.bd[a];h=this.b.J[c[1]];g=this.b.sq(h);
h=!0;if(!g||this.ub.vh){c=this.b.Hf(c,this,!0);if(!c)continue;l.push(c);c.type.global&&(h=!1,this.Ci.push(c.uid))}h&&(this.bd[b]=this.bd[a],b++)}this.bd.length=b;this.b.$b();!this.b.H&&this.ca.length&&(this.ac=this.Fx);this.Ai=jb(this.ac);this.b.L&&kb(this,this.ac,this.b.L);this.Xd=!0};n.prototype.$h=function(a,b){var d=Ca(this.k,a);0>d||(b&&this.nd&&a.Ic&&a.Ic.right>=a.Ic.left&&(a.aa(),this.Zb.update(a,a.Ic,null),a.Ic.set(0,0,-1,-1)),d===this.k.length-1?this.k.pop():(wa(this.k,d),this.Yj(d)),this.Xd=
!0)};n.prototype.vi=function(a,b){a.de=this.k.length;this.k.push(a);b&&this.nd&&a.Ic&&a.F();this.Xd=!0};n.prototype.Tz=function(a){this.k.unshift(a);this.Yj(0)};n.prototype.Bz=function(a,b,d){var c=a.je();b=b.je();wa(this.k,c);c<b&&b--;d&&b++;b===this.k.length?this.k.push(a):this.k.splice(b,0,a);this.Yj(c<b?c:b)};n.prototype.Yj=function(a){-1===this.uf?this.uf=a:a<this.uf&&(this.uf=a);this.Xd=this.dh=!0};n.prototype.wq=function(){if(this.dh){-1===this.uf&&(this.uf=0);var a,b,d;if(this.nd)for(a=this.uf,
b=this.k.length;a<b;++a)d=this.k[a],d.de=a,this.Zb.xz(d.Ic);else for(a=this.uf,b=this.k.length;a<b;++a)this.k[a].de=a;this.dh=!1;this.uf=-1}};n.prototype.Cc=function(a){return this.Gy()*(this.b.$c||a?this.b.wi:1)};n.prototype.Gy=function(){return(this.scale*this.ub.scale-1)*this.oc+1};n.prototype.Eb=function(){return this.De?0:Ha(this.ub.q+this.q)};var a=[],d=[],r=[];n.prototype.zo=function(){this.wq();this.Zb.wm(this.za,this.Aa,this.Da,this.Ca,r);if(!r.length)return g();if(1===r.length){var a=g();
Aa(a,r[0]);O(r);return a}for(var b=!0;1<r.length;){for(var a=r,c=void 0,m=void 0,l=void 0,p=void 0,n=void 0,c=0,m=a.length;c<m-1;c+=2){var l=a[c],p=a[c+1],n=g(),q=l,u=p,S=n,H=0,t=0,I=0,D=q.length,E=u.length,v=void 0,w=void 0;for(S.length=D+E;H<D&&t<E;++I)v=q[H],w=u[t],v.de<w.de?(S[I]=v,++H):(S[I]=w,++t);for(;H<D;++H,++I)S[I]=q[H];for(;t<E;++t,++I)S[I]=u[t];b||(h(l),h(p));d.push(n)}1===m%2&&(b?(l=g(),Aa(l,a[m-1]),d.push(l)):d.push(a[m-1]));Aa(a,d);O(d);b=!1}a=r[0];O(r);return a};n.prototype.Pc=function(a){this.pe=
this.ml||1!==this.opacity||0!==this.ac;var b=this.b.canvas,d=a,c=!1;this.pe&&(this.b.Kl||(this.b.Kl=document.createElement("canvas"),b=this.b.Kl,b.width=this.b.X,b.height=this.b.W,this.b.Ks=b.getContext("2d"),c=!0),b=this.b.Kl,d=this.b.Ks,b.width!==this.b.X&&(b.width=this.b.X,c=!0),b.height!==this.b.W&&(b.height=this.b.W,c=!0),c&&this.b.Fm(d,this.b.Ka),this.ae&&d.clearRect(0,0,this.b.X,this.b.W));d.globalAlpha=1;d.globalCompositeOperation="source-over";this.ae||(d.fillStyle="rgb("+this.Md[0]+","+
this.Md[1]+","+this.Md[2]+")",d.fillRect(0,0,this.b.X,this.b.W));d.save();this.De=!0;var c=this.lb(0,0,!0,!0),l=this.lb(0,0,!1,!0);this.De=!1;this.b.Gc&&(c=Math.round(c),l=Math.round(l));this.Am(c,l,d);var g=this.Cc();d.scale(g,g);d.translate(-c,-l);this.nd?(this.Sb.left=this.Zb.zc(this.za),this.Sb.top=this.Zb.Ac(this.Aa),this.Sb.right=this.Zb.zc(this.Da),this.Sb.bottom=this.Zb.Ac(this.Ca),this.Xd||!this.Sb.Gi(this.Mh)?(h(this.Se),c=this.zo(),this.Xd=!1,this.Mh.nh(this.Sb)):c=this.Se):c=this.k;for(var r,
q=null,l=0,g=c.length;l<g;++l)r=c[l],r!==q&&(this.Ax(r,d),q=r);this.nd&&(this.Se=c);d.restore();this.pe&&(a.globalCompositeOperation=this.Ai,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};n.prototype.Ax=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.aa();var d=a.Y;d.right<this.za||d.bottom<this.Aa||d.left>this.Da||d.top>this.Ca||(b.globalCompositeOperation=a.Ai,a.Pc(b))}};n.prototype.gn=function(){this.De=!0;var a=this.lb(0,0,!0,!0),b=this.lb(0,0,!1,!0);this.De=!1;this.b.Gc&&(a=Math.round(a),
b=Math.round(b));this.Am(a,b,null)};n.prototype.Am=function(a,b,d){var c=this.Cc();this.za=a;this.Aa=b;this.Da=a+1/c*this.b.X;this.Ca=b+1/c*this.b.W;this.za>this.Da&&(a=this.za,this.za=this.Da,this.Da=a);this.Aa>this.Ca&&(a=this.Aa,this.Aa=this.Ca,this.Ca=a);a=this.Eb();0!==a&&(d&&(d.translate(this.b.X/2,this.b.W/2),d.rotate(-a),d.translate(this.b.X/-2,this.b.W/-2)),this.of.set(this.za,this.Aa,this.Da,this.Ca),this.of.offset((this.za+this.Da)/-2,(this.Aa+this.Ca)/-2),this.uu.fu(this.of,a),this.uu.Ar(this.of),
this.of.offset((this.za+this.Da)/2,(this.Aa+this.Ca)/2),this.za=this.of.left,this.Aa=this.of.top,this.Da=this.of.right,this.Ca=this.of.bottom)};n.prototype.jg=function(a){if(this.pe=this.ml){this.b.Ib||(this.b.Ib=a.Zc(this.b.X,this.b.W,this.b.Ka));if(this.b.Ib.fg!==this.b.X||this.b.Ib.eg!==this.b.W)a.deleteTexture(this.b.Ib),this.b.Ib=a.Zc(this.b.X,this.b.W,this.b.Ka);a.Dd(this.b.Ib)}this.De=!0;var b=this.lb(0,0,!0,!0),d=this.lb(0,0,!1,!0);this.De=!1;this.b.Gc&&(b=Math.round(b),d=Math.round(d));this.Am(b,
d,null);b=this.Cc();a.Cd();a.scale(b,b);a.Bm(-this.Eb());a.translate((this.za+this.Da)/-2,(this.Aa+this.Ca)/-2);a.md();this.nd?(this.Sb.left=this.Zb.zc(this.za),this.Sb.top=this.Zb.Ac(this.Aa),this.Sb.right=this.Zb.zc(this.Da),this.Sb.bottom=this.Zb.Ac(this.Ca),this.Xd||!this.Sb.Gi(this.Mh)?(h(this.Se),b=this.zo(),this.Xd=!1,this.Mh.nh(this.Sb)):b=this.Se):b=this.k;for(var c,l=null,d=b.length-1;0<=d;--d)c=b[d],c!==l&&(this.Cx(b[d],a),l=c);this.nd&&(this.Se=b);this.ae||(this.Qn=this.b.mg++,a.Gm(this.Qn),
a.Zt(1,1,1),a.Vr(),a.bA())};n.prototype.Tb=function(a){var b=0,d=0;if(this.pe=this.ml||1!==this.opacity||0<this.Ea.length||0!==this.ac){this.b.Ib||(this.b.Ib=a.Zc(this.b.X,this.b.W,this.b.Ka));if(this.b.Ib.fg!==this.b.X||this.b.Ib.eg!==this.b.W)a.deleteTexture(this.b.Ib),this.b.Ib=a.Zc(this.b.X,this.b.W,this.b.Ka);a.Dd(this.b.Ib);this.ae&&a.clear(0,0,0,0)}this.ae||(this.b.Pa?(a.Gm(this.Qn),a.Zt(this.Md[0]/255,this.Md[1]/255,this.Md[2]/255),a.Vr(),a.qA()):a.clear(this.Md[0]/255,this.Md[1]/255,this.Md[2]/
255,1));this.De=!0;var c=this.lb(0,0,!0,!0),b=this.lb(0,0,!1,!0);this.De=!1;this.b.Gc&&(c=Math.round(c),b=Math.round(b));this.Am(c,b,null);c=this.Cc();a.Cd();a.scale(c,c);a.Bm(-this.Eb());a.translate((this.za+this.Da)/-2,(this.Aa+this.Ca)/-2);a.md();this.nd?(this.Sb.left=this.Zb.zc(this.za),this.Sb.top=this.Zb.Ac(this.Aa),this.Sb.right=this.Zb.zc(this.Da),this.Sb.bottom=this.Zb.Ac(this.Ca),this.Xd||!this.Sb.Gi(this.Mh)?(h(this.Se),b=this.zo(),this.Xd=!1,this.Mh.nh(this.Sb)):b=this.Se):b=this.k;var l,
g,r=null,d=0;for(l=b.length;d<l;++d)g=b[d],g!==r&&(this.Bx(b[d],a),r=g);this.nd&&(this.Se=b);this.pe&&(b=this.Ea.length?this.Ea[0].Ab:0,d=this.Ea.length?this.Ea[0].index:0,0===this.Ea.length||1===this.Ea.length&&!a.Jp(b)&&1===this.opacity?(1===this.Ea.length?(a.Lc(b),a.bi(this.ub.Oi(),1/this.b.X,1/this.b.W,0,0,1,1,c,this.Eb(),this.za,this.Aa,(this.za+this.Da)/2,(this.Aa+this.Ca)/2,this.b.Hb.T,this.eb[d]),a.tm(b)&&(this.b.ja=!0)):a.Lc(0),a.Dd(this.ub.Oi()),a.df(this.opacity),a.xc(this.b.Ib),a.Xf(this.kc,
this.fc),a.Cd(),a.md(),c=this.b.X/2,b=this.b.W/2,a.Zh(-c,b,c,b,c,-b,-c,-b),a.xc(null)):this.ub.Rp(a,this,null,this.ub.Oi()))};n.prototype.Bx=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.aa();var d=a.Y;d.right<this.za||d.bottom<this.Aa||d.left>this.Da||d.top>this.Ca||(b.Gm(a.mg),a.Gu?this.Dx(a,b):(b.Lc(0),b.Xf(a.kc,a.fc),a.Tb(b)))}};n.prototype.Cx=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.aa();var d=a.Y;d.right<this.za||d.bottom<this.Aa||d.left>this.Da||d.top>this.Ca||(a.mg=
this.b.mg++,0===a.ac&&1===a.opacity&&a.ff&&a.jg&&(b.Gm(a.mg),a.jg(b)))}};n.prototype.Dx=function(a,b){var d=a.Ea[0].Ab,c=a.Ea[0].index,h=this.Cc();if(1!==a.Ea.length||b.Jp(d)||b.Vz(d)||(a.q||a.u.Eb())&&b.Pj(d)||1!==a.opacity||a.type.xa.jt)this.ub.Rp(b,this,a,this.pe?this.b.Ib:this.ub.Oi()),b.Cd(),b.scale(h,h),b.Bm(-this.Eb()),b.translate((this.za+this.Da)/-2,(this.Aa+this.Ca)/-2),b.md();else{b.Lc(d);b.Xf(a.kc,a.fc);b.tm(d)&&(this.b.ja=!0);var l=0,g=0,q=0,r=0;b.Pj(d)&&(r=a.Y,l=this.Xa(r.left,r.top,
!0,!0),g=this.Xa(r.left,r.top,!1,!0),q=this.Xa(r.right,r.bottom,!0,!0),r=this.Xa(r.right,r.bottom,!1,!0),l=l/windowWidth,g=1-g/windowHeight,q=q/windowWidth,r=1-r/windowHeight);var p;a.Rb&&a.Rb.O?(p=a.Rb.O,d=1/p.width,p=1/p.height):(d=1/a.width,p=1/a.height);b.bi(this.pe?this.b.Ib:this.ub.Oi(),d,p,l,g,q,r,h,this.Eb(),this.za,this.Aa,(this.za+this.Da)/2,(this.Aa+this.Ca)/2,this.b.Hb.T,a.eb[c]);a.Tb(b)}};n.prototype.lb=function(a,b,d,c){var h=this.b.devicePixelRatio;this.b.Cg&&(a*=h,b*=h);var h=this.b.Jt,
l=this.b.Kt,h=(this.ub.scrollX-h)*this.Ec+h,l=(this.ub.scrollY-l)*this.Fc+l,g=h,q=l,r=1/this.Cc(!c);c?(g-=this.b.X*r/2,q-=this.b.W*r/2):(g-=this.b.width*r/2,q-=this.b.height*r/2);g+=a*r;q+=b*r;b=this.Eb();0!==b&&(g-=h,q-=l,a=Math.cos(b),b=Math.sin(b),c=g*a-q*b,q=q*a+g*b,g=c+h,q+=l);return d?g:q};n.prototype.Xa=function(a,b,d,c){var h=this.b.Jt,l=this.b.Kt,g=(this.ub.scrollX-h)*this.Ec+h,q=(this.ub.scrollY-l)*this.Fc+l,l=g,h=q,r=this.Eb();if(0!==r){a-=g;b-=q;var p=Math.cos(-r),r=Math.sin(-r),n=a*p-
b*r;b=b*p+a*r;a=n+g;b+=q}g=1/this.Cc(!c);c?(l-=this.b.X*g/2,h-=this.b.W*g/2):(l-=this.b.width*g/2,h-=this.b.height*g/2);l=(a-l)/g;h=(b-h)/g;a=this.b.devicePixelRatio;this.b.Cg&&!c&&(l/=a,h/=a);return d?l:h};n.prototype.Na=function(){var a,b,d,c={s:this.scale,a:this.q,vl:this.za,vt:this.Aa,vr:this.Da,vb:this.Ca,v:this.visible,bc:this.Md,t:this.ae,px:this.Ec,py:this.Fc,o:this.opacity,zr:this.oc,fx:[],cg:this.Ci,instances:[]};a=0;for(b=this.ca.length;a<b;a++)d=this.ca[a],c.fx.push({name:d.name,active:d.$a,
params:this.eb[d.index]});return c};n.prototype.Ua=function(a){var b,d,c;this.scale=a.s;this.q=a.a;this.za=a.vl;this.Aa=a.vt;this.Da=a.vr;this.Ca=a.vb;this.visible=a.v;this.Md=a.bc;this.ae=a.t;this.Ec=a.px;this.Fc=a.py;this.opacity=a.o;this.oc=a.zr;this.Ci=a.cg||[];Aa(this.bd,this.nu);var h=new ca;b=0;for(c=this.Ci.length;b<c;++b)h.add(this.Ci[b]);d=b=0;for(c=this.bd.length;b<c;++b)h.contains(this.bd[b][2])||(this.bd[d]=this.bd[b],++d);za(this.bd,d);d=a.fx;b=0;for(c=d.length;b<c;b++)if(a=this.vo(d[b].name))a.$a=
d[b].active,this.eb[a.index]=d[b].params;this.be();this.k.sort(p);this.dh=!0};Wb=n})();
(function(){function c(a,b){var d,e=a.length;switch(e){case 0:return!0;case 1:return a[0]===b[0];case 2:return a[0]===b[0]&&a[1]===b[1];default:for(d=0;d<e;d++)if(a[d]!==b[d])return!1;return!0}}function p(a,b){return a.index-b.index}function n(a){var b,d,e,f;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(p);a.length>=R.length&&(R.length=a.length+1);R[a.length]||(R[a.length]=[]);f=R[a.length];b=0;for(d=f.length;b<d;b++)if(e=f[b],c(a,e))return e;f.push(a);return a}
function g(a,b){this.b=a;this.xu={};this.Qr={};this.Fo=!1;this.ks=new ca;this.Yn=[];this.Fn=[];this.name=b[0];var d=b[1];this.Jf=[];var e,c;e=0;for(c=d.length;e<c;e++)this.ns(d[e],null,this.Jf)}function h(a){this.type=a;this.k=[];this.da=[];this.ka=!0}function l(a,b,d){this.sheet=a;this.parent=b;this.b=a.b;this.Oa=[];this.Yf=[];this.gs=this.Ym=this.nq=this.Al=this.group=this.mu=!1;this.Nb=[];this.od=[];this.Fd=[];this.Qi="";this.vg=this.Al=this.group=!1;this.Qk=null;d[1]&&(this.Qi=d[1][1].toLowerCase(),
this.group=!0,this.Al=!!d[1][0],this.Qk=[],this.vg=this.Al,this.b.Af.push(this),this.b.yh[this.Qi]=this);this.gd=d[2];this.ra=d[4];this.group||(this.b.ur[this.ra.toString()]=this);var e=d[5];a=0;for(b=e.length;a<b;a++){var c=new Xb(this,e[a]);c.index=a;this.Nb.push(c);this.mr(c.type)}e=d[6];a=0;for(b=e.length;a<b;a++)c=new Yb(this,e[a]),c.index=a,this.od.push(c);if(8===d.length)for(d=d[7],a=0,b=d.length;a<b;a++)this.sheet.ns(d[a],this,this.Fd);this.Gl=!1;this.Nb.length&&(this.Gl=null==this.Nb[0].type&&
this.Nb[0].Ub==U.prototype.n.Eq)}function b(a,b){var d,e,c;if(a&&(-1===b.indexOf(a)&&b.push(a),a.uc))for(d=0,e=a.Oc.length;d<e;d++)c=a.Oc[d],a!==c&&-1===b.indexOf(c)&&b.push(c)}function a(a,b){this.Xc=a;this.sheet=a.sheet;this.b=a.b;this.ma=[];this.fb=[];this.N={};this.index=-1;this.si=!1;this.Ub=this.b.vf(b[1]);this.trigger=0<b[3];this.Pr=2===b[3];this.ke=b[4];this.Bg=b[5];this.uz=b[6];this.ra=b[7];this.b.Gf[this.ra.toString()]=this;-1===b[0]?(this.type=null,this.zb=this.Vp,this.dg=null,this.Nd=
-1):(this.type=this.b.J[b[0]],this.zb=this.uz?this.iA:this.Up,b[2]?(this.dg=this.type.ql(b[2]),this.Nd=this.type.ro(b[2])):(this.dg=null,this.Nd=-1),this.Xc.parent&&this.Xc.parent.Im());this.Pr&&(this.zb=this.jA);if(10===b.length){var d,e,c=b[9];d=0;for(e=c.length;d<e;d++){var f=new Zb(this,c[d]);this.ma.push(f)}this.fb.length=c.length}}function d(a,b){this.Xc=a;this.sheet=a.sheet;this.b=a.b;this.ma=[];this.fb=[];this.N={};this.index=-1;this.si=!1;this.Ub=this.b.vf(b[1]);-1===b[0]?(this.type=null,
this.zb=this.Vp,this.dg=null,this.Nd=-1):(this.type=this.b.J[b[0]],this.zb=this.Up,b[2]?(this.dg=this.type.ql(b[2]),this.Nd=this.type.ro(b[2])):(this.dg=null,this.Nd=-1));this.ra=b[3];this.b.yf[this.ra.toString()]=this;if(6===b.length){var d,e,c=b[5];d=0;for(e=c.length;d<e;d++){var f=new Zb(this,c[d]);this.ma.push(f)}this.fb.length=c.length}}function r(){B++;F.length===B&&F.push(new $b);return F[B]}function e(a,b){this.Qa=a;this.Xc=a.Xc;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.he=null;this.jf=
0;this.get=null;this.Gr=0;this.ub=null;this.key=0;this.object=null;this.index=0;this.mk=this.Yg=this.mk=this.Yg=this.Tr=this.pg=this.nk=null;this.Id=!1;var d,e,c;switch(b[0]){case 0:case 7:this.he=new ac(this,b[1]);this.jf=0;this.get=this.Py;break;case 1:this.he=new ac(this,b[1]);this.jf=0;this.get=this.Qy;break;case 5:this.he=new ac(this,b[1]);this.jf=0;this.get=this.Uy;break;case 3:case 8:this.Gr=b[1];this.get=this.Ny;break;case 6:this.ub=this.b.Nh[b[1]];this.get=this.Vy;break;case 9:this.key=b[1];
this.get=this.Ty;break;case 4:this.object=this.b.J[b[1]];this.get=this.Wy;this.Xc.mr(this.object);this.Qa instanceof Yb?this.Xc.Im():this.Xc.parent&&this.Xc.parent.Im();break;case 10:this.index=b[1];a.type&&a.type.P?(this.get=this.Ry,this.Id=!0):this.get=this.Sy;break;case 11:this.nk=b[1];this.pg=null;this.get=this.Oy;break;case 2:case 12:this.Tr=b[1];this.get=this.My;break;case 13:for(this.get=this.Xy,this.Yg=[],this.mk=[],d=1,e=b.length;d<e;d++)c=new Zb(this.Qa,b[d]),this.Yg.push(c),this.mk.push(0)}}
function f(a,b,d){this.sheet=a;this.parent=b;this.b=a.b;this.Oa=[];this.name=d[1];this.ok=d[2];this.Jo=d[3];this.gj=!!d[4];this.Fl=!!d[5];this.ra=d[6];this.b.oi[this.ra.toString()]=this;this.data=this.Jo;this.parent?(this.Pg=this.gj||this.Fl?-1:this.b.sA++,this.b.Kw.push(this)):(this.Pg=-1,this.b.Jw.push(this))}function k(a,b,d){this.sheet=a;this.parent=b;this.b=a.b;this.Oa=[];this.Si=null;this.ez=d[1];this.$a=!0}function m(){this.pu=[];this.reset(null)}var R=[];g.prototype.toString=function(){return this.name};
g.prototype.ns=function(a,b,d){switch(a[0]){case 0:a=new bc(this,b,a);if(a.gd)for(d.push(a),d=0,b=a.Nb.length;d<b;d++)a.Nb[d].trigger&&this.os(a,d);else a.Ds()?this.os(a,0):d.push(a);break;case 1:a=new Tb(this,b,a);d.push(a);break;case 2:a=new cc(this,b,a),d.push(a)}};g.prototype.ob=function(){var a,b;a=0;for(b=this.Jf.length;a<b;a++)this.Jf[a].ob(a<b-1&&this.Jf[a+1].Gl)};g.prototype.tq=function(){O(this.Yn);O(this.Fn);this.lr(this);O(this.Fn)};g.prototype.lr=function(a){var b,d,e,c,f=a.Yn,h=a.Fn,
m=this.ks.Hd();b=0;for(d=m.length;b<d;++b)e=m[b],c=e.Si,!e.$a||a===c||-1<h.indexOf(c)||(h.push(c),c.lr(a),f.push(c))};g.prototype.zb=function(a){this.b.VB||(this.Fo=!0,a||(this.b.So=!0));var b,d;b=0;for(d=this.Jf.length;b<d;b++){var e=this.Jf[b];e.zb();this.b.Pn(e.Oa);this.b.Mf&&this.b.$b()}a||(this.b.So=!1)};g.prototype.os=function(a,b){a.gd||this.b.bn.push(a);var d,e,c=a.Nb[b],f;c.type?f=c.type.name:f="system";var h=(d=c.Pr)?this.Qr:this.xu;h[f]||(h[f]=[]);f=h[f];h=c.Ub;if(d){if(c.ma.length&&(c=
c.ma[0],1===c.type&&2===c.he.type)){c=c.he.value.toLowerCase();d=0;for(e=f.length;d<e;d++)if(f[d].method==h){d=f[d].Hi;d[c]?d[c].push([a,b]):d[c]=[[a,b]];return}d={};d[c]=[[a,b]];f.push({method:h,Hi:d})}}else{d=0;for(e=f.length;d<e;d++)if(f[d].method==h){f[d].Hi.push([a,b]);return}Y&&h===Y.prototype.n.gh?f.unshift({method:h,Hi:[[a,b]]}):f.push({method:h,Hi:[[a,b]]})}};Jb=g;h.prototype.yl=function(){return this.ka?this.type.k.length:this.k.length};h.prototype.qc=function(){return this.ka?this.type.k:
this.k};h.prototype.Lj=function(a){a&&(a.b.tb().cc.gd?(this.ka&&(O(this.k),Aa(this.da,a.type.k),this.ka=!1),a=this.da.indexOf(a),-1!==a&&(this.k.push(this.da[a]),this.da.splice(a,1))):(this.ka=!1,O(this.k),this.k[0]=a))};qb=h;window._c2hh_="BA3A48E476A0B2FD3D21F9D951F72AF7A7197E59";l.prototype.ob=function(a){var b,d=this.parent;if(this.group)for(this.Ym=!0;d;){if(!d.group){this.Ym=!1;break}d=d.parent}this.nq=!this.Ds()&&(!this.parent||this.parent.group&&this.parent.Ym);this.gs=!!a;this.Yf=this.Oa.slice(0);
for(d=this.parent;d;){a=0;for(b=d.Oa.length;a<b;a++)this.Hw(d.Oa[a]);d=d.parent}this.Oa=n(this.Oa);this.Yf=n(this.Yf);a=0;for(b=this.Nb.length;a<b;a++)this.Nb[a].ob();a=0;for(b=this.od.length;a<b;a++)this.od[a].ob();a=0;for(b=this.Fd.length;a<b;a++)this.Fd[a].ob(a<b-1&&this.Fd[a+1].Gl)};l.prototype.Wj=function(a){if(this.vg!==!!a){this.vg=!!a;var b;a=0;for(b=this.Qk.length;a<b;++a)this.Qk[a].Bu();0<b&&this.b.Ia.ng&&this.b.Ia.ng.tq()}};l.prototype.mr=function(a){b(a,this.Oa)};l.prototype.Hw=function(a){b(a,
this.Yf)};l.prototype.Im=function(){this.mu=!0;this.parent&&this.parent.Im()};l.prototype.Ds=function(){return this.Nb.length?this.Nb[0].trigger:!1};l.prototype.zb=function(){var a,b,d=!1,c=this.b,e=this.b.tb();e.cc=this;var f=this.Nb;this.Gl||(e.bo=!1);if(this.gd){0===f.length&&(d=!0);e.Bb=0;for(a=f.length;e.Bb<a;e.Bb++)b=f[e.Bb],b.trigger||(b=b.zb())&&(d=!0);(e.Hg=d)&&this.Cm()}else{e.Bb=0;for(a=f.length;e.Bb<a;e.Bb++)if(b=f[e.Bb].zb(),!b){e.Hg=!1;this.nq&&c.Mf&&c.$b();return}e.Hg=!0;this.Cm()}this.Hx(e)};
l.prototype.Hx=function(a){a.Hg&&this.gs&&(a.bo=!0);this.nq&&this.b.Mf&&this.b.$b()};l.prototype.gA=function(a){this.b.tb().cc=this;this.Nb[a].zb()&&(this.Cm(),this.b.tb().Hg=!0)};l.prototype.Cm=function(){var a=this.b.tb(),b;a.Bc=0;for(b=this.od.length;a.Bc<b;a.Bc++)if(this.od[a.Bc].zb())return;this.Xt()};l.prototype.dA=function(){var a=this.b.tb(),b;for(b=this.od.length;a.Bc<b;a.Bc++)if(this.od[a.Bc].zb())return;this.Xt()};l.prototype.Xt=function(){if(this.Fd.length){var a,b,d,e,c=this.Fd.length-
1;this.b.vm(this);if(this.mu)for(a=0,b=this.Fd.length;a<b;a++)d=this.Fd[a],(e=!this.Ym||!this.group&&a<c)&&this.b.um(d.Oa),d.zb(),e?this.b.Vg(d.Oa):this.b.Pn(d.Oa);else for(a=0,b=this.Fd.length;a<b;a++)this.Fd[a].zb();this.b.pm()}};l.prototype.hA=function(){var a=this.b.tb();a.cc=this;var b=!1,d;a.Bb=0;for(d=this.Nb.length;a.Bb<d;a.Bb++)if(this.Nb[a.Bb].zb())b=!0;else if(!this.gd)return!1;return this.gd?b:!0};l.prototype.eA=function(){this.b.qg++;var a=this.b.tb().Bb,b=this.b.vm(this);if(!this.gd)for(b.Bb=
a+1,a=this.Nb.length;b.Bb<a;b.Bb++)if(!this.Nb[b.Bb].zb()){this.b.pm();return}this.Cm();this.b.pm()};l.prototype.lz=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.Nb[b].type===a.type)return!1;return!0};bc=l;a.prototype.ob=function(){var a,b,d;a=0;for(b=this.ma.length;a<b;a++)d=this.ma[a],d.ob(),d.Id&&(this.si=!0)};a.prototype.jA=function(){return!0};a.prototype.Vp=function(){var a,b;a=0;for(b=this.ma.length;a<b;a++)this.fb[a]=this.ma[a].get();return Sa(this.Ub.apply(this.b.te,
this.fb),this.Bg)};a.prototype.iA=function(){var a,b;a=0;for(b=this.ma.length;a<b;a++)this.fb[a]=this.ma[a].get();a=this.Ub.apply(this.dg?this.dg:this.type,this.fb);this.type.qd();return a};a.prototype.Up=function(){var a,b,d,e,c,f,h,m,l=this.type,k=l.ea(),g=this.Xc.gd&&!this.trigger;b=0;var r=l.uc,p=l.P,n=l.Ge,B=this.Nd,R=-1<B,F=this.si,x=this.ma,y=this.fb,P=this.Bg,L=this.Ub,G;if(F)for(b=0,c=x.length;b<c;++b)f=x[b],f.Id||(y[b]=f.get(0));else for(b=0,c=x.length;b<c;++b)y[b]=x[b].get(0);if(k.ka){O(k.k);
O(k.da);G=l.k;a=0;for(e=G.length;a<e;++a){m=G[a];if(F)for(b=0,c=x.length;b<c;++b)f=x[b],f.Id&&(y[b]=f.get(a));R?(b=0,p&&(b=m.type.uh[n]),b=L.apply(m.V[B+b],y)):b=L.apply(m,y);(h=Sa(b,P))?k.k.push(m):g&&k.da.push(m)}l.finish&&l.finish(!0);k.ka=!1;l.qd();return k.yl()}d=0;G=(h=g&&!this.Xc.lz(this))?k.da:k.k;var N=!1;a=0;for(e=G.length;a<e;++a){m=G[a];if(F)for(b=0,c=x.length;b<c;++b)f=x[b],f.Id&&(y[b]=f.get(a));R?(b=0,p&&(b=m.type.uh[n]),b=L.apply(m.V[B+b],y)):b=L.apply(m,y);if(Sa(b,P))if(N=!0,h){if(k.k.push(m),
r)for(b=0,c=m.siblings.length;b<c;b++)f=m.siblings[b],f.type.ea().k.push(f)}else{G[d]=m;if(r)for(b=0,c=m.siblings.length;b<c;b++)f=m.siblings[b],f.type.ea().k[d]=f;d++}else if(h){G[d]=m;if(r)for(b=0,c=m.siblings.length;b<c;b++)f=m.siblings[b],f.type.ea().da[d]=f;d++}else if(g&&(k.da.push(m),r))for(b=0,c=m.siblings.length;b<c;b++)f=m.siblings[b],f.type.ea().da.push(f)}za(G,d);if(r)for(p=l.Oc,a=0,e=p.length;a<e;a++)m=p[a].ea(),h?za(m.da,d):za(m.k,d);d=N;if(h&&!N)for(a=0,e=k.k.length;a<e;a++){m=k.k[a];
if(F)for(b=0,c=x.length;b<c;b++)f=x[b],f.Id&&(y[b]=f.get(a));b=R?L.apply(m.V[B],y):L.apply(m,y);if(Sa(b,P)){N=!0;break}}l.finish&&l.finish(d||g);return g?N:k.yl()};Xb=a;d.prototype.ob=function(){var a,b,d;a=0;for(b=this.ma.length;a<b;a++)d=this.ma[a],d.ob(),d.Id&&(this.si=!0)};d.prototype.Vp=function(){var a=this.b,b,d,c=this.ma,e=this.fb;b=0;for(d=c.length;b<d;++b)e[b]=c[b].get();return this.Ub.apply(a.te,e)};d.prototype.Up=function(){var a=this.type,b=this.Nd,d=a.Ge,c=this.si,e=this.ma,f=this.fb,
h=this.Ub,m=a.ea().qc(),a=a.P,k=-1<b,l,g,r,p,n,B;if(c)for(g=0,p=e.length;g<p;++g)n=e[g],n.Id||(f[g]=n.get(0));else for(g=0,p=e.length;g<p;++g)f[g]=e[g].get(0);l=0;for(r=m.length;l<r;++l){B=m[l];if(c)for(g=0,p=e.length;g<p;++g)n=e[g],n.Id&&(f[g]=n.get(l));k?(g=0,a&&(g=B.type.uh[d]),h.apply(B.V[b+g],f)):h.apply(B,f)}return!1};Yb=d;var F=[],B=-1;e.prototype.ob=function(){var a,b;if(11===this.type)this.pg=this.b.Zr(this.nk,this.Xc.parent);else if(13===this.type)for(a=0,b=this.Yg.length;a<b;a++)this.Yg[a].ob();
this.he&&this.he.ob()};e.prototype.zz=function(a){this.Id||!a||a.xa.Mm||(this.Id=!0)};e.prototype.du=function(){this.Id=!0};e.prototype.Py=function(a){this.jf=a||0;a=r();this.he.get(a);B--;return a.data};e.prototype.Qy=function(a){this.jf=a||0;a=r();this.he.get(a);B--;return ia(a.data)?a.data:""};e.prototype.Wy=function(){return this.object};e.prototype.Ny=function(){return this.Gr};e.prototype.Uy=function(a){this.jf=a||0;a=r();this.he.get(a);B--;return a.Ob()?this.b.Je(a.data):this.b.Mi(a.data)};
e.prototype.Vy=function(){return this.ub};e.prototype.Ty=function(){return this.key};e.prototype.Sy=function(){return this.index};e.prototype.Ry=function(a){a=a||0;var b=this.Qa.type,d=null,d=b.ea(),e=d.qc();if(e.length)d=e[a%e.length].type;else if(d.da.length)d=d.da[a%d.da.length].type;else if(b.k.length)d=b.k[a%b.k.length].type;else return 0;return this.index+d.dl[b.Ge]};e.prototype.Oy=function(){return this.pg};e.prototype.My=function(){return this.Tr};e.prototype.Xy=function(){var a,b;a=0;for(b=
this.Yg.length;a<b;a++)this.mk[a]=this.Yg[a].get();return this.mk};Zb=e;f.prototype.ob=function(){this.Oa=n(this.Oa)};f.prototype.ef=function(a){var b=this.b.Yr();this.parent&&!this.gj&&b?(this.Pg>=b.length&&(b.length=this.Pg+1),b[this.Pg]=a):this.data=a};f.prototype.ug=function(){var a=this.b.Yr();return!this.parent||this.gj||!a||this.Fl?this.data:this.Pg>=a.length||"undefined"===typeof a[this.Pg]?this.Jo:a[this.Pg]};f.prototype.zb=function(){!this.parent||this.gj||this.Fl||this.ef(this.Jo)};Tb=
f;k.prototype.toString=function(){return"include:"+this.Si.toString()};k.prototype.ob=function(){this.Si=this.b.fo[this.ez];this.sheet.ks.add(this);this.Oa=n(this.Oa);for(var a=this.parent;a;)a.group&&a.Qk.push(this),a=a.parent;this.Bu()};k.prototype.zb=function(){this.parent&&this.b.Rj(this.b.J);this.Si.Fo||this.Si.zb(!0);this.parent&&this.b.Vg(this.b.J)};k.prototype.Bu=function(){for(var a=this.parent;a;){if(a.group&&!a.vg){this.$a=!1;return}a=a.parent}this.$a=!0};cc=k;m.prototype.reset=function(a){this.cc=
a;this.Bc=this.Bb=0;O(this.pu);this.bo=this.Hg=!1};Sb=m})();
(function(){function c(b,a){this.Qa=b;this.b=b.b;this.type=a[0];this.get=[this.Zx,this.Vx,this.iy,this.my,this.Kx,this.jy,this.cy,this.Sx,this.by,this.hy,this.Lx,this.gy,this.Tx,this.ey,this.$x,this.ay,this.Wx,this.Xx,this.Rx,this.ky,this.fy,this.Yx,this.Qx,this.Ux][this.type];var d=null;this.Ve=this.ma=this.fb=this.Ub=this.Xm=this.second=this.first=this.value=null;this.Nd=-1;this.Rd=null;this.Hu=-1;this.pg=this.nk=null;this.ai=!1;switch(this.type){case 0:case 1:case 2:this.value=a[1];break;case 3:this.first=
new ac(b,a[1]);break;case 18:this.first=new ac(b,a[1]);this.second=new ac(b,a[2]);this.Xm=new ac(b,a[3]);break;case 19:this.Ub=this.b.vf(a[1]);this.Ub!==U.prototype.na.random&&this.Ub!==U.prototype.na.Ww||this.Qa.du();this.fb=[];this.ma=[];3===a.length?(d=a[2],this.fb.length=d.length+1):this.fb.length=1;break;case 20:this.Ve=this.b.J[a[1]];this.Nd=-1;this.Ub=this.b.vf(a[2]);this.ai=a[3];qc&&this.Ub===qc.prototype.na.Pu&&this.Qa.du();a[4]?this.Rd=new ac(b,a[4]):this.Rd=null;this.fb=[];this.ma=[];6===
a.length?(d=a[5],this.fb.length=d.length+1):this.fb.length=1;break;case 21:this.Ve=this.b.J[a[1]];this.ai=a[2];a[3]?this.Rd=new ac(b,a[3]):this.Rd=null;this.Hu=a[4];break;case 22:this.Ve=this.b.J[a[1]];this.Ve.ql(a[2]);this.Nd=this.Ve.ro(a[2]);this.Ub=this.b.vf(a[3]);this.ai=a[4];a[5]?this.Rd=new ac(b,a[5]):this.Rd=null;this.fb=[];this.ma=[];7===a.length?(d=a[6],this.fb.length=d.length+1):this.fb.length=1;break;case 23:this.nk=a[1],this.pg=null}this.Qa.zz(this.Ve);4<=this.type&&17>=this.type&&(this.first=
new ac(b,a[1]),this.second=new ac(b,a[2]));if(d){var c,e;c=0;for(e=d.length;c<e;c++)this.ma.push(new ac(b,d[c]))}}function p(){++l;h.length===l&&h.push(new $b);return h[l]}function n(b,a,d){var c,e;c=0;for(e=b.length;c<e;++c)b[c].get(d),a[c+1]=d.data}function g(b,a){this.type=b||dc.fh;this.data=a||0;this.Sg=null;this.type==dc.fh&&(this.data=Math.floor(this.data))}c.prototype.ob=function(){23===this.type&&(this.pg=this.Qa.b.Zr(this.nk,this.Qa.Xc.parent));this.first&&this.first.ob();this.second&&this.second.ob();
this.Xm&&this.Xm.ob();this.Rd&&this.Rd.ob();if(this.ma){var b,a;b=0;for(a=this.ma.length;b<a;b++)this.ma[b].ob()}};var h=[],l=-1;c.prototype.ky=function(b){var a=this.ma,d=this.fb;d[0]=b;b=p();n(a,d,b);--l;this.Ub.apply(this.b.te,d)};c.prototype.fy=function(b){var a=this.Ve,d=this.fb,c=this.ma,e=this.Rd,f=this.Ub,h=this.Qa.jf,m=a.ea(),g=m.qc();if(!g.length)if(m.da.length)g=m.da;else{this.ai?b.jc(""):b.La(0);return}d[0]=b;b.Sg=a;b=p();n(c,d,b);e&&(e.get(b),b.Ob()&&(h=b.data,g=a.k));--l;a=g.length;
if(h>=a||h<=-a)h%=a;0>h&&(h+=a);f.apply(g[h],d)};c.prototype.Qx=function(b){var a=this.Ve,d=this.fb,c=this.ma,e=this.Rd,f=this.Nd,h=this.Ub,m=this.Qa.jf,g=a.ea(),F=g.qc();if(!F.length)if(g.da.length)F=g.da;else{this.ai?b.jc(""):b.La(0);return}d[0]=b;b.Sg=a;b=p();n(c,d,b);e&&(e.get(b),b.Ob()&&(m=b.data,F=a.k));--l;c=F.length;if(m>=c||m<=-c)m%=c;0>m&&(m+=c);m=F[m];F=0;a.P&&(F=m.type.uh[a.Ge]);h.apply(m.V[f+F],d)};c.prototype.Yx=function(b){var a=this.Rd,d=this.Ve,c=this.Hu,e=this.Qa.jf,f=d.ea(),h=f.qc();
if(!h.length)if(f.da.length)h=f.da;else{this.ai?b.jc(""):b.La(0);return}if(a){f=p();a.get(f);if(f.Ob()){e=f.data;h=d.k;0!==h.length&&(e%=h.length,0>e&&(e+=h.length));e=d.xo(e);d=e.Gb[c];ia(d)?b.jc(d):b.R(d);--l;return}--l}a=h.length;if(e>=a||e<=-a)e%=a;0>e&&(e+=a);e=h[e];h=0;d.P&&(h=e.type.dl[d.Ge]);d=e.Gb[c+h];ia(d)?b.jc(d):b.R(d)};c.prototype.Zx=function(b){b.type=dc.fh;b.data=this.value};c.prototype.Vx=function(b){b.type=dc.eh;b.data=this.value};c.prototype.iy=function(b){b.type=dc.String;b.data=
this.value};c.prototype.my=function(b){this.first.get(b);b.Ob()&&(b.data=-b.data)};c.prototype.Kx=function(b){this.first.get(b);var a=p();this.second.get(a);b.Ob()&&a.Ob()&&(b.data+=a.data,a.Ch()&&b.Qh());--l};c.prototype.jy=function(b){this.first.get(b);var a=p();this.second.get(a);b.Ob()&&a.Ob()&&(b.data-=a.data,a.Ch()&&b.Qh());--l};c.prototype.cy=function(b){this.first.get(b);var a=p();this.second.get(a);b.Ob()&&a.Ob()&&(b.data*=a.data,a.Ch()&&b.Qh());--l};c.prototype.Sx=function(b){this.first.get(b);
var a=p();this.second.get(a);b.Ob()&&a.Ob()&&(b.data/=a.data,b.Qh());--l};c.prototype.by=function(b){this.first.get(b);var a=p();this.second.get(a);b.Ob()&&a.Ob()&&(b.data%=a.data,a.Ch()&&b.Qh());--l};c.prototype.hy=function(b){this.first.get(b);var a=p();this.second.get(a);b.Ob()&&a.Ob()&&(b.data=Math.pow(b.data,a.data),a.Ch()&&b.Qh());--l};c.prototype.Lx=function(b){this.first.get(b);var a=p();this.second.get(a);a.Fh()||b.Fh()?this.Nx(b,a):this.Mx(b,a);--l};c.prototype.Nx=function(b,a){b.Fh()&&
a.Fh()?this.Px(b,a):this.Ox(b,a)};c.prototype.Px=function(b,a){b.data+=a.data};c.prototype.Ox=function(b,a){b.Fh()?b.data+=(Math.round(1E10*a.data)/1E10).toString():b.jc(b.data.toString()+a.data)};c.prototype.Mx=function(b,a){b.La(b.data&&a.data?1:0)};c.prototype.gy=function(b){this.first.get(b);var a=p();this.second.get(a);b.Ob()&&a.Ob()&&(b.data||a.data?b.La(1):b.La(0));--l};c.prototype.Rx=function(b){this.first.get(b);b.data?this.second.get(b):this.Xm.get(b)};c.prototype.Tx=function(b){this.first.get(b);
var a=p();this.second.get(a);b.La(b.data===a.data?1:0);--l};c.prototype.ey=function(b){this.first.get(b);var a=p();this.second.get(a);b.La(b.data!==a.data?1:0);--l};c.prototype.$x=function(b){this.first.get(b);var a=p();this.second.get(a);b.La(b.data<a.data?1:0);--l};c.prototype.ay=function(b){this.first.get(b);var a=p();this.second.get(a);b.La(b.data<=a.data?1:0);--l};c.prototype.Wx=function(b){this.first.get(b);var a=p();this.second.get(a);b.La(b.data>a.data?1:0);--l};c.prototype.Xx=function(b){this.first.get(b);
var a=p();this.second.get(a);b.La(b.data>=a.data?1:0);--l};c.prototype.Ux=function(b){var a=this.pg.ug();ha(a)?b.R(a):b.jc(a)};ac=c;g.prototype.Ch=function(){return this.type===dc.eh};g.prototype.Ob=function(){return this.type===dc.fh||this.type===dc.eh};g.prototype.Fh=function(){return this.type===dc.String};g.prototype.Qh=function(){this.Ch()||(this.Fh()&&(this.data=parseFloat(this.data)),this.type=dc.eh)};g.prototype.La=function(b){this.type=dc.fh;this.data=Math.floor(b)};g.prototype.R=function(b){this.type=
dc.eh;this.data=b};g.prototype.jc=function(b){this.type=dc.String;this.data=b};g.prototype.bq=function(b){ha(b)?(this.type=dc.eh,this.data=b):ia(b)?(this.type=dc.String,this.data=b.toString()):(this.type=dc.fh,this.data=0)};$b=g;dc={fh:0,eh:1,String:2}})();function U(c){this.b=c;this.Mc=[]}
U.prototype.Na=function(){var c={},p,n,g,h,l,b,a,d;c.waits=[];var r=c.waits,e;p=0;for(n=this.Mc.length;p<n;p++){b=this.Mc[p];e={t:b.time,st:b.ku,s:b.gq,ev:b.rh.ra,sm:[],sols:{}};b.rh.od[b.Bc]&&(e.act=b.rh.od[b.Bc].ra);g=0;for(h=b.Oa.length;g<h;g++)e.sm.push(b.Oa[g].ra);for(l in b.yc)if(b.yc.hasOwnProperty(l)){a=this.b.J[parseInt(l,10)];d={sa:b.yc[l].Dm,insts:[]};g=0;for(h=b.yc[l].Me.length;g<h;g++)d.insts.push(b.yc[l].Me[g].uid);e.sols[a.ra.toString()]=d}r.push(e)}return c};
U.prototype.Ua=function(c){c=c.waits;var p,n,g,h,l,b,a,d,r,e,f;O(this.Mc);p=0;for(n=c.length;p<n;p++)if(b=c[p],d=this.b.ur[b.ev.toString()]){r=-1;g=0;for(h=d.od.length;g<h;g++)if(d.od[g].ra===b.act){r=g;break}if(-1!==r){a={yc:{},Oa:[],$n:!1};a.time=b.t;a.ku=b.st||"";a.gq=!!b.s;a.rh=d;a.Bc=r;g=0;for(h=b.sm.length;g<h;g++)(d=this.b.Ni(b.sm[g]))&&a.Oa.push(d);for(l in b.sols)if(b.sols.hasOwnProperty(l)&&(d=this.b.Ni(parseInt(l,10)))){r=b.sols[l];e={Dm:r.sa,Me:[]};g=0;for(h=r.insts.length;g<h;g++)(f=
this.b.tg(r.insts[g]))&&e.Me.push(f);a.yc[d.index.toString()]=e}this.Mc.push(a)}}};
(function(){function c(){}function p(){}function n(){}var g=U.prototype;c.prototype.$u=function(){return!0};c.prototype.Qq=function(){return!0};c.prototype.Lv=function(){return!0};c.prototype.Bw=function(){var b=this.b.Lf().N;"undefined"===typeof b.TriggerOnce_lastTick&&(b.TriggerOnce_lastTick=-1);var a=b.TriggerOnce_lastTick,d=this.b.ld;b.TriggerOnce_lastTick=d;return this.b.gp||a!==d-1};c.prototype.Zu=function(b){var a=this.b.Lf(),d=a.N.Every_lastTime||0,c=this.b.Hb.T;"undefined"===typeof a.N.Every_seconds&&
(a.N.Every_seconds=b);var e=a.N.Every_seconds;if(c>=d+e)return a.N.Every_lastTime=d+e,c>=a.N.Every_lastTime+.04&&(a.N.Every_lastTime=c),a.N.Every_seconds=b,!0;c<d-.1&&(a.N.Every_lastTime=c);return!1};c.prototype.Wu=function(b,a,d){return ec(b.ug(),a,d)};c.prototype.ov=function(b){return(b=this.b.yh[b.toLowerCase()])&&b.vg};c.prototype.Eq=function(){var b=this.b.tb();return b.bo?!1:!b.Hg};c.prototype.Rq=function(){return!0};c.prototype.Cv=function(){return!0};c.prototype.un=function(){return!0};c.prototype.Yq=
function(){return!0};c.prototype.Mv=function(){return!0};c.prototype.wk=function(){return!0};c.prototype.Mu=function(b,a,d){return La(Q(b),Q(d))<=Q(a)};c.prototype.lv=function(b,a){return Na(Q(b),Q(a))};c.prototype.jv=function(b,a,d){b=Ja(b);a=Ja(a);d=Ja(d);return Na(d,a)?Na(b,a)&&!Na(b,d):!(!Na(b,a)&&Na(b,d))};g.n=new c;p.prototype.bv=function(b){this.b.Pf||this.b.Od||(this.b.Od=b)};p.prototype.yv=function(b){if(!this.b.Pf&&!this.b.Od){var a=this.b.Tc.indexOf(this.b.Ia);if(!b||0!==a)if(b||a!==this.b.Tc.length-
1)this.b.Od=this.b.Tc[a+(b?-1:1)]}};p.prototype.Yu=function(b,a,d,c){if(a&&b&&(a=this.b.Un(b,a,d,c))){this.b.dd++;var e;this.b.trigger(Object.getPrototypeOf(b.xa).n.ag,a);if(a.uc)for(d=0,c=a.siblings.length;d<c;d++)e=a.siblings[d],this.b.trigger(Object.getPrototypeOf(e.type.xa).n.ag,e);this.b.dd--;b=b.ea();b.ka=!1;O(b.k);b.k[0]=a;if(a.uc)for(d=0,c=a.siblings.length;d<c;d++)e=a.siblings[d],b=e.type.ea(),b.ka=!1,O(b.k),b.k[0]=e}};p.prototype.rw=function(b,a){0===b.ok?ha(a)?b.ef(a):b.ef(parseFloat(a)):
1===b.ok&&b.ef(a.toString())};p.prototype.Lu=function(b,a){0===b.ok?ha(a)?b.ef(b.ug()+a):b.ef(b.ug()+parseFloat(a)):1===b.ok&&b.ef(b.ug()+a.toString())};p.prototype.Aw=function(b,a){0===b.ok&&(ha(a)?b.ef(b.ug()-a):b.ef(b.ug()-parseFloat(a)))};p.prototype.kw=function(b,a){var d=this.b.yh[b.toLowerCase()];if(d)switch(a){case 0:d.Wj(!1);break;case 1:d.Wj(!0);break;case 2:d.Wj(!d.vg)}};p.prototype.qw=function(b){0>b&&(b=0);this.b.Zf=b};var h=[],l=[];p.prototype.Cw=function(b){if(!(0>b)){var a,d,c,e=this.b.tb(),
f;h.length?f=h.pop():f={yc:{},Oa:[]};f.$n=!1;f.time=this.b.Hb.T+b;f.ku="";f.gq=!1;f.rh=e.cc;f.Bc=e.Bc+1;b=0;for(a=this.b.J.length;b<a;b++)c=this.b.J[b],d=c.ea(),d.ka&&-1===e.cc.Oa.indexOf(c)||(f.Oa.push(c),c=void 0,l.length?c=l.pop():c={Me:[]},c.Dm=!1,c.Dm=d.ka,Aa(c.Me,d.k),f.yc[b.toString()]=c);this.Mc.push(f);return!0}};p.prototype.cv=function(b){if(!this.b.Pf&&!this.b.Od)for(var a in this.b.Nh)if(this.b.Nh.hasOwnProperty(a)&&mb(a,b)){this.b.Od=this.b.Nh[a];break}};p.prototype.ew=function(){if(!this.b.Pf&&
!this.b.Od&&this.b.Ia){this.b.Od=this.b.Ia;var b,a,d;b=0;for(a=this.b.Af.length;b<a;b++)d=this.b.Af[b],d.Wj(d.Al)}};g.G=new p;n.prototype["int"]=function(b,a){ia(a)?(b.La(parseInt(a,10)),isNaN(b.data)&&(b.data=0)):b.La(a)};n.prototype["float"]=function(b,a){ia(a)?(b.R(parseFloat(a)),isNaN(b.data)&&(b.data=0)):b.R(a)};n.prototype.vA=function(b,a){ia(a)?b.jc(a):b.jc(a.toString())};n.prototype.random=function(b,a,d){void 0===d?b.R(Math.random()*a):b.R(Math.random()*(d-a)+a)};n.prototype.sqrt=function(b,
a){b.R(Math.sqrt(a))};n.prototype.abs=function(b,a){b.R(Math.abs(a))};n.prototype.round=function(b,a){b.La(Math.round(a))};n.prototype.floor=function(b,a){b.La(Math.floor(a))};n.prototype.ceil=function(b,a){b.La(Math.ceil(a))};n.prototype.sin=function(b,a){b.R(Math.sin(Q(a)))};n.prototype.cos=function(b,a){b.R(Math.cos(Q(a)))};n.prototype.tan=function(b,a){b.R(Math.tan(Q(a)))};n.prototype.asin=function(b,a){b.R(Fa(Math.asin(a)))};n.prototype.acos=function(b,a){b.R(Fa(Math.acos(a)))};n.prototype.atan=
function(b,a){b.R(Fa(Math.atan(a)))};n.prototype.exp=function(b,a){b.R(Math.exp(a))};n.prototype.log10=function(b,a){b.R(Math.log(a)/Math.LN10)};n.prototype.max=function(b){var a=arguments[1];"number"!==typeof a&&(a=0);var d,c,e;d=2;for(c=arguments.length;d<c;d++)e=arguments[d],"number"===typeof e&&a<e&&(a=e);b.R(a)};n.prototype.min=function(b){var a=arguments[1];"number"!==typeof a&&(a=0);var d,c,e;d=2;for(c=arguments.length;d<c;d++)e=arguments[d],"number"===typeof e&&a>e&&(a=e);b.R(a)};n.prototype.kg=
function(b){b.R(this.b.kg)};n.prototype.Zf=function(b){b.R(this.b.Zf)};n.prototype.time=function(b){b.R(this.b.Hb.T)};n.prototype.ld=function(b){b.La(this.b.ld)};n.prototype.Yl=function(b){b.La(this.b.Yl)};n.prototype.no=function(b){b.La(this.b.no)};n.prototype.q=function(b,a,d,c,e){b.R(Fa(Ka(a,d,c,e)))};n.prototype.left=function(b,a,d){b.jc(ia(a)?a.substr(0,d):"")};n.prototype.right=function(b,a,d){b.jc(ia(a)?a.substr(a.length-d):"")};n.prototype.replace=function(b,a,d,c){ia(a)&&ia(d)&&ia(c)?b.jc(a.replace(new RegExp(ab(d),
"gi"),c)):b.jc(ia(a)?a:"")};n.prototype.trim=function(b,a){b.jc(ia(a)?a.trim():"")};n.prototype.Ww=function(b){var a=z(Math.random()*(arguments.length-1));b.bq(arguments[a+1])};n.prototype.Sn=function(b){b.R(this.b.Sn/1E3)};n.prototype.Oh=function(b){b.R(this.b.Oh)};g.na=new n;g.fA=function(){var b,a,d,c,e,f,g=this.b.tb();b=0;for(d=this.Mc.length;b<d;b++){c=this.Mc[b];if(-1===c.time){if(!c.gq)continue}else if(c.time>this.b.Hb.T)continue;g.cc=c.rh;g.Bc=c.Bc;g.Bb=0;for(a in c.yc)c.yc.hasOwnProperty(a)&&
(e=this.b.J[parseInt(a,10)].ea(),f=c.yc[a],e.ka=f.Dm,Aa(e.k,f.Me),e=f,O(e.Me),l.push(e));c.rh.dA();this.b.Pn(c.Oa);c.$n=!0}a=b=0;for(d=this.Mc.length;b<d;b++)c=this.Mc[b],this.Mc[a]=c,c.$n?(Va(c.yc),O(c.Oa),h.push(c)):a++;za(this.Mc,a)}})();
(function(){pb=function(c,n){var g=c[1],h=c[3],l=c[4],b=c[5],a=c[6],d=c[7],r=c[8];n.n||(n.n={});n.G||(n.G={});n.na||(n.na={});var e=n.n,f=n.G,k=n.na;h&&(e.Xu=function(a,b){return ec(this.x,a,b)},e.SA=function(a,b){return ec(this.y,a,b)},e.YA=function(){var a=this.u;this.aa();var b=this.Y;return!(b.right<a.za||b.bottom<a.Aa||b.left>a.Da||b.top>a.Ca)},e.rv=function(){this.aa();var a=this.Y,b=this.b.Ia;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},e.iB=function(a,b,d){var c=this.ea(),
e=c.qc();if(!e.length)return!1;var f=e[0],h=f,l=Pa(f.x,f.y,b,d),g,k,r;g=1;for(k=e.length;g<k;g++)if(f=e[g],r=Pa(f.x,f.y,b,d),0===a&&r<l||1===a&&r>l)l=r,h=f;c.Lj(h);return!0},f.sw=function(a){this.x!==a&&(this.x=a,this.F())},f.uw=function(a){this.y!==a&&(this.y=a,this.F())},f.ow=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.F()},f.vB=function(a,b){var d=a.Hy(this);if(d){var c;d.Li?(c=d.Li(b,!0),d=d.Li(b,!1)):(c=d.x,d=d.y);if(this.x!==c||this.y!==d)this.x=c,this.y=d,this.F()}},f.bB=
function(a){0!==a&&(this.x+=Math.cos(this.q)*a,this.y+=Math.sin(this.q)*a,this.F())},f.aB=function(a,b){0!==b&&(this.x+=Math.cos(Q(a))*b,this.y+=Math.sin(Q(a))*b,this.F())},k.Cn=function(a){a.R(this.x)},k.Dn=function(a){a.R(this.y)},k.kg=function(a){a.R(this.b.Qd(this))});l&&(e.RA=function(a,b){return ec(this.width,a,b)},e.PA=function(a,b){return ec(this.height,a,b)},f.fr=function(a){this.width!==a&&(this.width=a,this.F())},f.tB=function(a){this.height!==a&&(this.height=a,this.F())},f.pw=function(a,
b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.F()},k.BB=function(a){a.R(this.width)},k.UA=function(a){a.R(this.height)},k.MA=function(a){this.aa();a.R(this.Y.left)},k.OA=function(a){this.aa();a.R(this.Y.top)},k.NA=function(a){this.aa();a.R(this.Y.right)},k.LA=function(a){this.aa();a.R(this.Y.bottom)});b&&(e.Mu=function(a,b){return La(this.q,Q(b))<=Q(a)},e.lv=function(a){return Na(this.q,Q(a))},e.jv=function(a,b){var d=Ja(a),c=Ja(b),e=Ha(this.q);return Na(c,d)?Na(e,d)&&!Na(e,
c):!(!Na(e,d)&&Na(e,c))},f.fw=function(a){a=Q(Ga(a));isNaN(a)||this.q===a||(this.q=a,this.F())},f.mB=function(a){0===a||isNaN(a)||(this.q+=Q(a),this.q=Ha(this.q),this.F())},f.nB=function(a){0===a||isNaN(a)||(this.q-=Q(a),this.q=Ha(this.q),this.F())},f.oB=function(a,b){var d=Ma(this.q,Q(b),Q(a));isNaN(d)||this.q===d||(this.q=d,this.F())},f.pB=function(a,b,d){a=Ma(this.q,Math.atan2(d-this.y,b-this.x),Q(a));isNaN(a)||this.q===a||(this.q=a,this.F())},f.wB=function(a,b){var d=Math.atan2(b-this.y,a-this.x);
isNaN(d)||this.q===d||(this.q=d,this.F())},k.KA=function(a){a.R(Ia(this.q))});g||(e.Uu=function(a,b,d){return ec(this.Gb[a],b,d)},e.WA=function(a){return this.Gb[a]},e.jB=function(a,b){var d=this.ea(),c=d.qc();if(!c.length)return!1;var e=c[0],f=e,h=e.Gb[b],l,g,k;l=1;for(g=c.length;l<g;l++)if(e=c[l],k=e.Gb[b],0===a&&k<h||1===a&&k>h)h=k,f=e;d.Lj(f);return!0},e.hB=function(a){var b,d,c,e,f;if(this.b.Lf().Bg){f=this.ea();if(f.ka)for(f.ka=!1,O(f.k),O(f.da),c=this.k,b=0,d=c.length;b<d;b++)e=c[b],e.uid===
a?f.da.push(e):f.k.push(e);else{c=b=0;for(d=f.k.length;b<d;b++)e=f.k[b],f.k[c]=e,e.uid===a?f.da.push(e):c++;za(f.k,c)}this.qd();return!!f.k.length}e=this.b.tg(a);if(!e)return!1;f=this.ea();if(!f.ka&&-1===f.k.indexOf(e))return!1;if(this.P)for(a=e.type.Wa,b=0,d=a.length;b<d;b++){if(a[b]===this)return f.Lj(e),this.qd(),!0}else if(e.type===this)return f.Lj(e),this.qd(),!0;return!1},e.ag=function(){return!0},e.Iq=function(){return!0},f.lw=function(a,b){var d=this.Gb;ha(d[a])?d[a]=ha(b)?b:parseFloat(b):
ia(d[a])&&(d[a]=ia(b)?b:b.toString())},f.Ku=function(a,b){var d=this.Gb;ha(d[a])?d[a]=ha(b)?d[a]+b:d[a]+parseFloat(b):ia(d[a])&&(d[a]=ia(b)?d[a]+b:d[a]+b.toString())},f.yB=function(a,b){var d=this.Gb;ha(d[a])&&(d[a]=ha(b)?d[a]-b:d[a]-parseFloat(b))},f.qB=function(a,b){this.Gb[a]=b?1:0},f.zB=function(a){this.Gb[a]=1-this.Gb[a]},f.Dq=function(){this.b.we(this)},f.xv||(f.xv=function(a){var b,d;try{b=JSON.parse(a)}catch(c){return}this.b.Nl(this,b,!0);this.Jd&&this.Jd();if(this.V)for(a=0,b=this.V.length;a<
b;++a)d=this.V[a],d.Jd&&d.Jd()}),k.TA=function(a){var b=a.Sg.k.length,d,c,e;d=0;for(c=this.b.Pd.length;d<c;d++)e=this.b.Pd[d],a.Sg.P?0<=e.type.Wa.indexOf(a.Sg)&&b++:e.type===a.Sg&&b++;a.La(b)},k.lB=function(a){a.La(a.Sg.ea().qc().length)},k.AB=function(a){a.La(this.uid)},k.VA=function(a){a.La(this.Pi())},k.Ou||(k.Ou=function(a){a.jc(JSON.stringify(this.b.Wp(this,!0)))}));a&&(e.ZA=function(){return this.visible},f.xB=function(a){!a!==!this.visible&&(this.visible=!!a,this.b.ja=!0)},e.QA=function(a,
b){return ec(lb(100*this.opacity),a,b)},f.uB=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.ja=!0)},k.Opacity=function(a){a.R(lb(100*this.opacity))});d&&(e.XA=function(a){return a?this.u===a:!1},e.kB=function(a){var b=this.ea(),d=b.qc();if(!d.length)return!1;var c=d[0],e=c,f,h;f=1;for(h=d.length;f<h;f++)if(c=d[f],0===a){if(c.u.index>e.u.index||c.u.index===e.u.index&&c.je()>e.je())e=c}else if(c.u.index<e.u.index||c.u.index===e.u.index&&c.je()<e.je())e=c;b.Lj(e);return!0},
f.eB=function(){var a=this.u,b=a.k;b.length&&b[b.length-1]===this||(a.$h(this,!1),a.vi(this,!1),this.b.ja=!0)},f.cB=function(){var a=this.u,b=a.k;b.length&&b[0]===this||(a.$h(this,!1),a.Tz(this),this.b.ja=!0)},f.dB=function(a){a&&a!=this.u&&(this.u.$h(this,!0),this.u=a,a.vi(this,!0),this.b.ja=!0)},f.DB=function(a,b){var d=0===a;if(b){var c=b.$r(this);c&&c.uid!==this.uid&&(this.u.index!==c.u.index&&(this.u.$h(this,!0),this.u=c.u,c.u.vi(this,!0)),this.u.Bz(this,c,d),this.b.ja=!0)}},k.wv=function(a){a.La(this.u.nt)},
k.$A=function(a){a.jc(this.u.name)},k.CB=function(a){a.La(this.je())});r&&(f.rB=function(a,b){if(this.b.H){var d=this.type.wo(b);if(!(0>d)){var c=1===a;this.xf[d]!==c&&(this.xf[d]=c,this.be(),this.b.ja=!0)}}},f.sB=function(a,b,d){if(this.b.H){var c=this.type.wo(a);0>c||(a=this.type.ca[c],c=this.eb[c],b=Math.floor(b),0>b||b>=c.length||(1===this.b.H.Ly(a.Ab,b)&&(d/=100),c[b]!==d&&(c[b]=d,a.$a&&(this.b.ja=!0))))}})};Kb=function(){this.Mn=this.Hk=!0;this.type.Bk=!0;this.b.ja=!0;var c,n,g=this.In;c=0;
for(n=g.length;c<n;++c)g[c](this);this.u.nd&&this.aa()};Lb=function(c){c&&this.In.push(c)};Nb=function(){if(this.Hk){var c=this.Y,n=this.Mb;c.set(this.x,this.y,this.x+this.width,this.y+this.height);c.offset(-this.rc*this.width,-this.tc*this.height);this.q?(c.offset(-this.x,-this.y),n.fu(c,this.q),n.offset(this.x,this.y),n.Ar(c)):n.Xg(c);c.normalize();this.Hk=!1;this.Eu()}};var c=new sa(0,0,0,0);Ob=function(){if(this.u.nd){var p=this.u.Zb,n=this.Y;c.set(p.zc(n.left),p.Ac(n.top),p.zc(n.right),p.Ac(n.bottom));
this.Ic.Gi(c)||(this.Ic.right<this.Ic.left?p.update(this,null,c):p.update(this,this.Ic,c),this.Ic.nh(c),this.u.Xd=!0)}};Pb=function(){if(this.Mn&&this.Yc){this.aa();var p=this.type.yi,n=this.Y;c.set(p.zc(n.left),p.Ac(n.top),p.zc(n.right),p.Ac(n.bottom));this.sd.Gi(c)||(this.sd.right<this.sd.left?p.update(this,null,c):p.update(this,this.sd,c),this.sd.nh(c),this.Mn=!1)}};Mb=function(c,n){return this.Y.Cb(c,n)&&this.Mb.Cb(c,n)?this.ta&&!this.ta.Dg()?(this.ta.gg(this.width,this.height,this.q),this.ta.Cb(c-
this.x,n-this.y)):!0:!1};Fb=function(){this.type.cn();return this.yg};Qb=function(){this.u.wq();return this.de};Rb=function(){O(this.Ea);var c,n,g,h=!0;c=0;for(n=this.xf.length;c<n;c++)this.xf[c]&&(g=this.type.ca[c],this.Ea.push(g),g.Ud||(h=!1));this.Gu=!!this.Ea.length;this.ff=h};Gb=function(){return"Inst"+this.St};sb=function(c){if(c&&c.uc&&c.type!=this){var n,g,h;n=0;for(g=c.siblings.length;n<g;n++)if(h=c.siblings[n],h.type==this)return h}c=this.ea().qc();return c.length?c[0]:null};ub=function(c){var n=
this.ea().qc();return n.length?n[c.Pi()%n.length]:null};rb=function(){if(this.fi&&!this.P){var c,n;c=0;for(n=this.k.length;c<n;c++)this.k[c].yg=c;var g=c,h=this.b.Pd;c=0;for(n=h.length;c<n;++c)h[c].type===this&&(h[c].yg=g++);this.fi=!1}};Db=function(c){if(c<this.k.length)return this.k[c];c-=this.k.length;var n=this.b.Pd,g,h;g=0;for(h=n.length;g<h;++g)if(n[g].type===this){if(0===c)return n[g];--c}return null};vb=function(){return this.kf[this.ge]};wb=function(){this.ge++;this.ge===this.kf.length?this.kf.push(new qb(this)):
(this.kf[this.ge].ka=!0,O(this.kf[this.ge].da))};xb=function(){this.ge++;this.ge===this.kf.length&&this.kf.push(new qb(this));var c=this.kf[this.ge],n=this.kf[this.ge-1];n.ka?(c.ka=!0,O(c.da)):(c.ka=!1,Aa(c.k,n.k),Aa(c.da,n.da))};yb=function(){this.ge--};zb=function(c){var n,g,h,l,b,a=0;if(!this.P)for(n=0,g=this.Wa.length;n<g;n++)for(b=this.Wa[n],h=0,l=b.ab.length;h<l;h++){if(c===b.ab[h].name)return this.N.lastBehIndex=a,b.ab[h];a++}n=0;for(g=this.ab.length;n<g;n++){if(c===this.ab[n].name)return this.N.lastBehIndex=
a,this.ab[n];a++}return null};Ab=function(c){return this.ql(c)?this.N.lastBehIndex:-1};Bb=function(c){var n,g;n=0;for(g=this.ca.length;n<g;n++)if(this.ca[n].name===c)return n;return-1};Cb=function(){if(this.uc&&!this.P){var c,n,g,h,l,b,a;this.cn();b=this.ea();var d=b.ka,r=(c=this.b.tb())&&c.cc&&c.cc.gd;c=0;for(n=this.Oc.length;c<n;c++)if(l=this.Oc[c],l!==this&&(l.cn(),a=l.ea(),a.ka=d,!d)){O(a.k);g=0;for(h=b.k.length;g<h;++g)a.k[g]=l.xo(b.k[g].yg);if(r)for(O(a.da),g=0,h=b.da.length;g<h;++g)a.da[g]=
l.xo(b.da[g].yg)}}};Eb=function(){return"Type"+this.ra};ec=function(c,n,g){if("undefined"===typeof c||"undefined"===typeof g)return!1;switch(n){case 0:return c===g;case 1:return c!==g;case 2:return c<g;case 3:return c<=g;case 4:return c>g;case 5:return c>=g;default:return!1}}})();var mc={};function rc(c){this.b=c}
(function(){function c(a){a=Math.pow(10,a/20);isFinite(a)||(a=0);0>a&&(a=0);1<a&&(a=1);return a}function p(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function n(a){a=a.toLowerCase();return ba.hasOwnProperty(a)&&ba[a].length?ba[a][0].ad():A.destination}function g(){return A.createGain?A.createGain():A.createGainNode()}function h(a){return A.createDelay?A.createDelay(a):A.createDelayNode(a)}function l(a,b){a.start?a.start(b||0):a.noteOn(b||0)}function b(a,b,d,c){a.start?a.start(c||
0,b):a.noteGrainOn(c||0,b,d-b)}function a(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}function d(a,b,d,c,e,f){this.type="filter";this.nb=[a,b,d,c,e,f];this.wa=g();this.ba=g();this.ba.gain.value=f;this.Z=g();this.Z.gain.value=1-f;this.rb=A.createBiquadFilter();this.rb.type="number"===typeof this.rb.type?a:Nc[a];this.rb.frequency.value=b;this.rb.detune&&(this.rb.detune.value=d);this.rb.Q.value=c;this.rb.gain.value=e;this.wa.connect(this.rb);this.wa.connect(this.Z);this.rb.connect(this.ba)}function r(a,
b,d){this.type="delay";this.nb=[a,b,d];this.wa=g();this.ba=g();this.ba.gain.value=d;this.Z=g();this.Z.gain.value=1-d;this.yj=g();this.vd=h(a);this.vd.delayTime.value=a;this.Xk=g();this.Xk.gain.value=b;this.wa.connect(this.yj);this.wa.connect(this.Z);this.yj.connect(this.ba);this.yj.connect(this.vd);this.vd.connect(this.Xk);this.Xk.connect(this.yj)}function e(a,b,d,c){this.type="convolve";this.nb=[b,d,c];this.wa=g();this.ba=g();this.ba.gain.value=d;this.Z=g();this.Z.gain.value=1-d;this.hg=A.createConvolver();
a&&(this.hg.normalize=b,this.hg.buffer=a);this.wa.connect(this.hg);this.wa.connect(this.Z);this.hg.connect(this.ba)}function f(a,b,d,c,e){this.type="flanger";this.nb=[a,b,d,c,e];this.wa=g();this.Z=g();this.Z.gain.value=1-e/2;this.ba=g();this.ba.gain.value=e/2;this.el=g();this.el.gain.value=c;this.vd=h(a+b);this.vd.delayTime.value=a;this.Qb=A.createOscillator();this.Qb.frequency.value=d;this.Wc=g();this.Wc.gain.value=b;this.wa.connect(this.vd);this.wa.connect(this.Z);this.vd.connect(this.ba);this.vd.connect(this.el);
this.el.connect(this.vd);this.Qb.connect(this.Wc);this.Wc.connect(this.vd.delayTime);l(this.Qb)}function k(a,b,d,c,e,f){this.type="phaser";this.nb=[a,b,d,c,e,f];this.wa=g();this.Z=g();this.Z.gain.value=1-f/2;this.ba=g();this.ba.gain.value=f/2;this.rb=A.createBiquadFilter();this.rb.type="number"===typeof this.rb.type?7:"allpass";this.rb.frequency.value=a;this.rb.detune&&(this.rb.detune.value=b);this.rb.Q.value=d;this.Qb=A.createOscillator();this.Qb.frequency.value=e;this.Wc=g();this.Wc.gain.value=
c;this.wa.connect(this.rb);this.wa.connect(this.Z);this.rb.connect(this.ba);this.Qb.connect(this.Wc);this.Wc.connect(this.rb.frequency);l(this.Qb)}function m(a){this.type="gain";this.nb=[a];this.Ba=g();this.Ba.gain.value=a}function R(a,b){this.type="tremolo";this.nb=[a,b];this.Ba=g();this.Ba.gain.value=1-b/2;this.Qb=A.createOscillator();this.Qb.frequency.value=a;this.Wc=g();this.Wc.gain.value=b/2;this.Qb.connect(this.Wc);this.Wc.connect(this.Ba.gain);l(this.Qb)}function F(a,b){this.type="ringmod";
this.nb=[a,b];this.wa=g();this.ba=g();this.ba.gain.value=b;this.Z=g();this.Z.gain.value=1-b;this.Vj=g();this.Vj.gain.value=0;this.Qb=A.createOscillator();this.Qb.frequency.value=a;this.Qb.connect(this.Vj.gain);l(this.Qb);this.wa.connect(this.Vj);this.wa.connect(this.Z);this.Vj.connect(this.ba)}function B(a,b,d,c,e){this.type="distortion";this.nb=[a,b,d,c,e];this.wa=g();this.rm=g();this.qm=g();this.mA(d,Math.pow(10,c/20));this.ba=g();this.ba.gain.value=e;this.Z=g();this.Z.gain.value=1-e;this.kn=A.createWaveShaper();
this.Vk=new Float32Array(65536);this.wy(a,b);this.kn.Vk=this.Vk;this.wa.connect(this.rm);this.wa.connect(this.Z);this.rm.connect(this.kn);this.kn.connect(this.qm);this.qm.connect(this.ba)}function q(a,b,d,c,e){this.type="compressor";this.nb=[a,b,d,c,e];this.Ba=A.createDynamicsCompressor();try{this.Ba.threshold.value=a,this.Ba.knee.value=b,this.Ba.ratio.value=d,this.Ba.attack.value=c,this.Ba.release.value=e}catch(f){}}function u(a,b){this.type="analyser";this.nb=[a,b];this.Ba=A.createAnalyser();this.Ba.fftSize=
a;this.Ba.smoothingTimeConstant=b;this.uy=new Float32Array(this.Ba.frequencyBinCount);this.iu=new Uint8Array(a);this.Kj=0}function S(){this.Ha=null;this.Ol=0}function H(a,b){this.src=a;this.qa=K;this.yd=b;this.Ak=!1;var d=this;this.sp=this.Ep=null;this.Xh=[];this.Em=0;this.Aq=this.cl=this.ou=this.lm=!1;1===K&&b&&!db&&(this.qa=0,this.Ep=g());this.ye=this.Fa=null;var c;switch(this.qa){case 0:this.Fa=new Audio;this.Fa.crossOrigin="anonymous";this.Fa.addEventListener("canplaythrough",function(){d.Aq=
!0});1===K&&A.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.ou=!0,this.Fa.addEventListener("canplay",function(){d.sp||(d.sp=A.createMediaElementSource(d.Fa),d.sp.connect(d.Ep))}));this.Fa.autoplay=!1;this.Fa.RB="auto";this.Fa.src=a;break;case 1:w.cj?w.Sr(a,function(a){d.ye=a;d.Jr()},function(){d.cl=!0}):(c=new XMLHttpRequest,c.open("GET",a,!0),c.responseType="arraybuffer",c.onload=function(){d.ye=c.response;d.Jr()},c.onerror=function(){d.cl=!0},c.send());break;case 2:this.Fa=
!0;break;case 3:this.Fa=!0}}function t(a,b){var d=this;this.tag=b;this.Kc=this.ie=!0;this.src=a.src;this.buffer=a;this.qa=K;this.yd=a.yd;this.playbackRate=1;this.Ah=!0;this.Rc=this.jd=!1;this.Jc=0;this.fj=this.Dh=this.ke=!1;this.volume=1;this.Cp=function(a){if(!d.Rc&&!d.jd){var b=this;b||(b=a.target);b===d.yk&&(d.Ah=!0,d.Kc=!0,J=d.tag,w.trigger(rc.prototype.n.uk,X))}};this.yk=null;this.Bh=1===P&&!this.yd||2===P;this.Sh=1;this.startTime=this.Bh?w.Hb.T:w.sf.T;this.xb=this.Db=null;this.me=!1;this.Xb=
null;this.Gt=this.Ft=this.Et=this.Dt=this.It=this.Ht=0;this.B=null;var c=!1;1!==this.qa||0!==this.buffer.qa||this.buffer.ou||(this.qa=0);switch(this.qa){case 0:this.yd?(this.B=a.Fa,c=!a.Ak,a.Ak=!0):(this.B=new Audio,this.B.crossOrigin="anonymous",this.B.autoplay=!1,this.B.src=a.Fa.src,c=!0);c&&this.B.addEventListener("ended",function(){J=d.tag;d.Kc=!0;w.trigger(rc.prototype.n.uk,X)});break;case 1:this.Db=g();this.Db.connect(n(b));1===this.buffer.qa?a.Fa&&(this.B=A.createBufferSource(),this.B.buffer=
a.Fa,this.B.connect(this.Db)):(this.B=this.buffer.Fa,this.buffer.Ep.connect(this.Db),this.buffer.Ak||(this.buffer.Ak=!0,this.buffer.Fa.addEventListener("ended",function(){J=d.tag;d.Kc=!0;w.trigger(rc.prototype.n.uk,X)})));break;case 2:this.B=new window.Media(M+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(d.Ah=!0,d.Kc=!0,J=d.tag,w.trigger(rc.prototype.n.uk,X))});break;case 3:this.B=!0}}function I(a,b){ba.hasOwnProperty(a)?ba[a].push(b):ba[a]=[b];var d,c,e,f,h=A.destination;if(ba.hasOwnProperty(a)&&
(e=ba[a],e.length))for(h=e[0].ad(),d=0,c=e.length;d<c;d++)f=e[d],d+1===c?f.td(A.destination):f.td(e[d+1].ad());O(Ta);if(a.length)for(d=0,c=C.length;d<c;d++)e=C[d],mb(a,e.tag)&&Ta.push(e);else x&&!x.xg()&&(O(Ta),Ta[0]=x);d=0;for(c=Ta.length;d<c;d++)Ta[d].Yz(h);Ra&&Ib===a&&(Ra.disconnect(),Ra.connect(h))}function D(){}function E(){}var v=rc.prototype;v.M=function(a){this.xa=a;this.b=a.b};v.M.prototype.I=function(){};var w=null,X=null,J="",M="",K=0,A=null,T=[],C=[],x=null,y=!1,P=0,L=!1,G=1,N=0,V=0,xa=
!1,W=1,ya=1,ra=10,Qa=1E4,Dc=1,Ra=null,Ib="",bb=!1,cb=[],db=!1,ba={},Nc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");d.prototype.td=function(a){this.ba.disconnect();this.ba.connect(a);this.Z.disconnect();this.Z.connect(a)};d.prototype.remove=function(){this.wa.disconnect();this.rb.disconnect();this.ba.disconnect();this.Z.disconnect()};d.prototype.ad=function(){return this.wa};r.prototype.td=function(a){this.ba.disconnect();this.ba.connect(a);this.Z.disconnect();this.Z.connect(a)};
r.prototype.remove=function(){this.wa.disconnect();this.yj.disconnect();this.vd.disconnect();this.Xk.disconnect();this.ba.disconnect();this.Z.disconnect()};r.prototype.ad=function(){return this.wa};e.prototype.td=function(a){this.ba.disconnect();this.ba.connect(a);this.Z.disconnect();this.Z.connect(a)};e.prototype.remove=function(){this.wa.disconnect();this.hg.disconnect();this.ba.disconnect();this.Z.disconnect()};e.prototype.ad=function(){return this.wa};f.prototype.td=function(a){this.Z.disconnect();
this.Z.connect(a);this.ba.disconnect();this.ba.connect(a)};f.prototype.remove=function(){this.wa.disconnect();this.vd.disconnect();this.Qb.disconnect();this.Wc.disconnect();this.Z.disconnect();this.ba.disconnect();this.el.disconnect()};f.prototype.ad=function(){return this.wa};k.prototype.td=function(a){this.Z.disconnect();this.Z.connect(a);this.ba.disconnect();this.ba.connect(a)};k.prototype.remove=function(){this.wa.disconnect();this.rb.disconnect();this.Qb.disconnect();this.Wc.disconnect();this.Z.disconnect();
this.ba.disconnect()};k.prototype.ad=function(){return this.wa};m.prototype.td=function(a){this.Ba.disconnect();this.Ba.connect(a)};m.prototype.remove=function(){this.Ba.disconnect()};m.prototype.ad=function(){return this.Ba};R.prototype.td=function(a){this.Ba.disconnect();this.Ba.connect(a)};R.prototype.remove=function(){this.Qb.disconnect();this.Wc.disconnect();this.Ba.disconnect()};R.prototype.ad=function(){return this.Ba};F.prototype.td=function(a){this.ba.disconnect();this.ba.connect(a);this.Z.disconnect();
this.Z.connect(a)};F.prototype.remove=function(){this.Qb.disconnect();this.Vj.disconnect();this.wa.disconnect();this.ba.disconnect();this.Z.disconnect()};F.prototype.ad=function(){return this.wa};B.prototype.mA=function(a,b){.01>a&&(a=.01);this.rm.gain.value=a;this.qm.gain.value=Math.pow(1/a,.6)*b};B.prototype.shape=function(a,b,d){var c=1.05*d*b-b;d=0>a?-1:1;a=0>a?-a:a;b=a<b?a:b+c*(1-Math.exp(-(1/c)*(a-b)));return b*d};B.prototype.wy=function(a,b){for(var d=Math.pow(10,a/20),c=Math.pow(10,b/20),
e=0,f=0;32768>f;++f)e=f/32768,e=this.shape(e,d,c),this.Vk[32768+f]=e,this.Vk[32768-f-1]=-e};B.prototype.td=function(a){this.ba.disconnect();this.ba.connect(a);this.Z.disconnect();this.Z.connect(a)};B.prototype.remove=function(){this.wa.disconnect();this.rm.disconnect();this.kn.disconnect();this.qm.disconnect();this.ba.disconnect();this.Z.disconnect()};B.prototype.ad=function(){return this.wa};q.prototype.td=function(a){this.Ba.disconnect();this.Ba.connect(a)};q.prototype.remove=function(){this.Ba.disconnect()};
q.prototype.ad=function(){return this.Ba};u.prototype.ya=function(){this.Ba.getFloatFrequencyData(this.uy);this.Ba.getByteTimeDomainData(this.iu);for(var a=this.Ba.fftSize,b=0,d=this.Kj=0,c=0;b<a;b++)c=(this.iu[b]-128)/128,0>c&&(c=-c),this.Kj<c&&(this.Kj=c),d+=c*c;this.Kj=p(this.Kj);p(Math.sqrt(d/a))};u.prototype.td=function(a){this.Ba.disconnect();this.Ba.connect(a)};u.prototype.remove=function(){this.Ba.disconnect()};u.prototype.ad=function(){return this.Ba};S.prototype.Xj=function(a){this.Ha=a};
S.prototype.xl=function(){return!!this.Ha};S.prototype.ya=function(){};var tb=!1;H.prototype.Zz=function(){var a,b,d,c;d=a=0;for(b=C.length;a<b;++a)c=C[a],C[d]=c,c.buffer===this?c.stop():++d;C.length=d;this.ye=this.Fa=null};H.prototype.Jr=function(){if(!this.Fa&&this.ye){var a=this;if(A.decodeAudioData)A.decodeAudioData(this.ye,function(b){a.Fa=b;a.ye=null;var d,c,e;if(ga(a.nm)||L)ga(a.Rk)||(d=a.Rk.hg,d.normalize=a.mt,d.buffer=b);else if(a.Xh.length){d=0;for(c=a.Xh.length;d<c;d++){b=a.Xh[d];e=new t(a,
b.su);e.Hm(!0);if("undefined"!==typeof b.ot&&(b.Ha=w.tg(b.ot),!b.Ha))continue;if(b.Ha){var f=Oa(b.Ha.x,b.Ha.y,-b.Ha.u.Eb(),N,V,!0),h=Oa(b.Ha.x,b.Ha.y,-b.Ha.u.Eb(),N,V,!1);e.aq(f,h,Fa(b.Ha.q-b.Ha.u.Eb()),b.Ho,b.up,b.xp);e.Xj(b.Ha)}else e.aq(b.x,b.y,b.Dw,b.Ho,b.up,b.xp);e.play(a.op,a.zq,a.Em);a.lm&&e.pause();C.push(e)}O(a.Xh)}else e=new t(a,a.nm||""),e.play(a.op,a.zq,a.Em),a.lm&&e.pause(),C.push(e)},function(){a.cl=!0});else if(this.Fa=A.createBuffer(this.ye,!1),this.ye=null,ga(this.nm)||L)ga(this.Rk)||
(b=this.Rk.hg,b.normalize=this.mt,b.buffer=this.Fa);else{var b=new t(this,this.nm);b.play(this.op,this.zq,this.Em);this.lm&&b.pause();C.push(b)}}};H.prototype.ys=function(){switch(this.qa){case 0:var a=4<=this.Fa.readyState;a&&(this.Aq=!0);return a||this.Aq;case 1:return!!this.ye||!!this.Fa;case 2:return!0;case 3:return!0}return!1};H.prototype.mz=function(){switch(this.qa){case 0:return this.ys();case 1:return!!this.Fa;case 2:return!0;case 3:return!0}return!1};H.prototype.bz=function(){switch(this.qa){case 0:return!!this.Fa.error;
case 1:return this.cl}return!1};t.prototype.xg=function(){switch(this.qa){case 0:return this.B.ended;case 1:return 1===this.buffer.qa?!this.ie&&!this.Kc&&this.B.loop||this.Rc?!1:this.Ah:this.B.ended;case 2:return this.Ah;case 3:!0}return!0};t.prototype.Uw=function(){return this.ie||this.Kc?!0:this.xg()};t.prototype.Hm=function(a){1===K&&(!this.me&&a?this.Db&&(this.xb||(this.xb=A.createPanner(),this.xb.panningModel="number"===typeof this.xb.panningModel?W:["equalpower","HRTF","soundfield"][W],this.xb.distanceModel=
"number"===typeof this.xb.distanceModel?ya:["linear","inverse","exponential"][ya],this.xb.refDistance=ra,this.xb.maxDistance=Qa,this.xb.rolloffFactor=Dc),this.Db.disconnect(),this.Db.connect(this.xb),this.xb.connect(n(this.tag)),this.me=!0):this.me&&!a&&this.Db&&(this.xb.disconnect(),this.Db.disconnect(),this.Db.connect(n(this.tag)),this.me=!1))};t.prototype.aq=function(a,b,d,c,e,f){this.me&&1===K&&(this.xb.setPosition(a,b,0),this.xb.setOrientation(Math.cos(Q(d)),Math.sin(Q(d)),0),this.xb.coneInnerAngle=
c,this.xb.coneOuterAngle=e,this.xb.coneOuterGain=f,this.Ht=a,this.It=b,this.Dt=d,this.Et=c,this.Ft=e,this.Gt=f)};t.prototype.Xj=function(a){this.me&&1===K&&(this.Xb||(this.Xb=new S),this.Xb.Xj(a))};t.prototype.ya=function(a){if(this.me&&1===K&&this.Xb&&this.Xb.xl()&&this.$i()){this.Xb.ya(a);a=this.Xb.Ha;var b=Oa(a.x,a.y,-a.u.Eb(),N,V,!0),d=Oa(a.x,a.y,-a.u.Eb(),N,V,!1);this.xb.setPosition(b,d,0);b=0;"undefined"!==typeof this.Xb.Ha.q&&(b=a.q-a.u.Eb(),this.xb.setOrientation(Math.cos(b),Math.sin(b),0))}};
t.prototype.play=function(a,d,c,e){var f=this.B;this.ke=a;this.volume=d;c=c||0;e=e||0;switch(this.qa){case 0:1!==f.playbackRate&&(f.playbackRate=1);f.volume!==d*G&&(f.volume=d*G);f.loop!==a&&(f.loop=a);f.muted&&(f.muted=!1);if(f.currentTime!==c)try{f.currentTime=c}catch(h){}if(this.yd&&bb&&!w.mb)cb.push(this);else try{this.B.play()}catch(g){console&&console.log&&console.log("[C2] WARNING: exception trying to play audio '"+this.buffer.src+"': ",g)}break;case 1:this.muted=!1;this.Sh=1;if(1===this.buffer.qa)this.Db.gain.value=
d*G,this.ie||(this.B=A.createBufferSource(),this.B.buffer=this.buffer.Fa,this.B.connect(this.Db)),this.B.onended=this.Cp,this.yk=this.B,this.B.loop=a,this.Ah=!1,0===c?l(this.B,e):b(this.B,c,this.sg(),e);else{1!==f.playbackRate&&(f.playbackRate=1);f.loop!==a&&(f.loop=a);f.volume=d*G;if(f.currentTime!==c)try{f.currentTime=c}catch(k){}this.yd&&bb&&!w.mb?cb.push(this):f.play()}break;case 2:(!this.ie&&this.Kc||0!==c)&&f.seekTo(c);f.play();this.Ah=!1;break;case 3:w.hc?AppMobi.context.playSound(this.src,
a):AppMobi.player.playSound(this.src,a)}this.playbackRate=1;this.startTime=(this.Bh?w.Hb.T:w.sf.T)-c;this.Rc=this.Kc=this.ie=!1};t.prototype.stop=function(){switch(this.qa){case 0:this.B.paused||this.B.pause();break;case 1:1===this.buffer.qa?a(this.B):this.B.paused||this.B.pause();break;case 2:this.B.stop();break;case 3:w.hc&&AppMobi.context.stopSound(this.src)}this.Kc=!0;this.Rc=!1};t.prototype.pause=function(){if(!(this.ie||this.Kc||this.xg()||this.Rc)){switch(this.qa){case 0:this.B.paused||this.B.pause();
break;case 1:1===this.buffer.qa?(this.Jc=this.yo(!0),this.ke&&(this.Jc=this.Jc%this.sg()),this.Rc=!0,a(this.B)):this.B.paused||this.B.pause();break;case 2:this.B.pause();break;case 3:w.hc&&AppMobi.context.stopSound(this.src)}this.Rc=!0}};t.prototype.cA=function(){if(!(this.ie||this.Kc||this.xg())&&this.Rc){switch(this.qa){case 0:this.B.play();break;case 1:1===this.buffer.qa?(this.B=A.createBufferSource(),this.B.buffer=this.buffer.Fa,this.B.connect(this.Db),this.B.onended=this.Cp,this.yk=this.B,this.B.loop=
this.ke,this.Db.gain.value=G*this.volume*this.Sh,this.dn(),this.startTime=(this.Bh?w.Hb.T:w.sf.T)-this.Jc/(this.playbackRate||.001),b(this.B,this.Jc,this.sg())):this.B.play();break;case 2:this.B.play();break;case 3:w.hc&&AppMobi.context.resumeSound(this.src)}this.Rc=!1}};t.prototype.seek=function(a){if(!(this.ie||this.Kc||this.xg()))switch(this.qa){case 0:try{this.B.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.qa)this.Rc?this.Jc=a:(this.pause(),this.Jc=a,this.cA());else try{this.B.currentTime=
a}catch(d){}break;case 3:w.hc&&AppMobi.context.seekSound(this.src,a)}};t.prototype.Yz=function(a){1===this.qa&&(this.me?(this.xb.disconnect(),this.xb.connect(a)):(this.Db.disconnect(),this.Db.connect(a)))};t.prototype.sg=function(){var a=0;switch(this.qa){case 0:"undefined"!==typeof this.B.duration&&(a=this.B.duration);break;case 1:a=this.buffer.Fa.duration;break;case 2:a=this.B.getDuration();break;case 3:w.hc&&(a=AppMobi.context.getDurationSound(this.src))}return a};t.prototype.yo=function(a){var b=
this.sg(),d=0;switch(this.qa){case 0:"undefined"!==typeof this.B.currentTime&&(d=this.B.currentTime);break;case 1:if(1===this.buffer.qa){if(this.Rc)return this.Jc;d=(this.Bh?w.Hb.T:w.sf.T)-this.startTime}else"undefined"!==typeof this.B.currentTime&&(d=this.B.currentTime);break;case 3:w.hc&&(d=AppMobi.context.getPlaybackTimeSound(this.src))}a&&(d*=this.playbackRate);!this.ke&&d>b&&(d=b);return d};t.prototype.$i=function(){return!this.Rc&&!this.ie&&!this.Kc&&!this.xg()};t.prototype.rA=function(){return!this.ie&&
!this.Kc&&!this.xg()};t.prototype.CA=function(){var a=this.volume*G;isFinite(a)||(a=0);switch(this.qa){case 0:"undefined"!==typeof this.B.volume&&this.B.volume!==a&&(this.B.volume=a);break;case 1:1===this.buffer.qa?this.Db.gain.value=a*this.Sh:"undefined"!==typeof this.B.volume&&this.B.volume!==a&&(this.B.volume=a)}};t.prototype.$k=function(a){switch(this.qa){case 0:this.B.muted!==!!a&&(this.B.muted=!!a);break;case 1:1===this.buffer.qa?(this.Sh=a?0:1,this.Db.gain.value=G*this.volume*this.Sh):this.B.muted!==
!!a&&(this.B.muted=!!a)}};t.prototype.nA=function(){this.Dh=!0;this.$k(this.Dh||this.fj)};t.prototype.cu=function(a){this.fj=!!a;this.$k(this.Dh||this.fj)};t.prototype.dn=function(){var a=this.playbackRate;this.Bh&&(a*=w.Zf);switch(this.qa){case 0:this.B.playbackRate!==a&&(this.B.playbackRate=a);break;case 1:1===this.buffer.qa?this.B.playbackRate.value!==a&&(this.B.playbackRate.value=a):this.B.playbackRate!==a&&(this.B.playbackRate=a)}};t.prototype.pA=function(d){switch(this.qa){case 0:d?this.$i()?
(this.jd=!0,this.B.pause()):this.jd=!1:this.jd&&(this.B.play(),this.jd=!1);break;case 1:d?this.$i()?(this.jd=!0,1===this.buffer.qa?(this.Jc=this.yo(!0),this.ke&&(this.Jc=this.Jc%this.sg()),a(this.B)):this.B.pause()):this.jd=!1:this.jd&&(1===this.buffer.qa?(this.B=A.createBufferSource(),this.B.buffer=this.buffer.Fa,this.B.connect(this.Db),this.B.onended=this.Cp,this.yk=this.B,this.B.loop=this.ke,this.Db.gain.value=G*this.volume*this.Sh,this.dn(),this.startTime=(this.Bh?w.Hb.T:w.sf.T)-this.Jc/(this.playbackRate||
.001),b(this.B,this.Jc,this.sg())):this.B.play(),this.jd=!1);break;case 2:d?this.$i()?(this.B.pause(),this.jd=!0):this.jd=!1:this.jd&&(this.jd=!1,this.B.play())}};v.K=function(a){function b(){if(!xa&&A.createBuffer){var a=A.createBuffer(1,220,22050),d=A.createBufferSource();d.buffer=a;d.connect(A.destination);l(d)}}this.type=a;w=this.b=a.b;X=this;this.Uc=null;this.oj=-600;this.b.cj&&(db=!0);!(this.b.Gh||this.b.Bl&&(this.b.Wi||this.b.Cl))||this.b.El||this.b.Ja||this.b.vs||db||(bb=!0);A=null;"undefined"!==
typeof AudioContext?(K=1,A=new AudioContext):"undefined"!==typeof webkitAudioContext&&(K=1,A=new webkitAudioContext);this.b.Gh&&A&&(A.close&&A.close(),"undefined"!==typeof AudioContext?A=new AudioContext:"undefined"!==typeof webkitAudioContext&&(A=new webkitAudioContext));bb?document.addEventListener("touchend",function(){!tb&&A&&(b(),tb=!0);var a,d,c;if(bb){if(!L)for(a=0,d=cb.length;a<d;++a)c=cb[a],c.Kc||c.Rc||c.B.play();O(cb)}},!0):db&&document.addEventListener("touchend",function(){!tb&&A&&(b(),
tb=!0)},!0);1!==K&&(this.b.Qc&&"undefined"!==typeof window.Media?K=2:this.b.ws&&(K=3));2===K&&(M=location.href,a=M.lastIndexOf("/"),-1<a&&(M=M.substr(0,a+1)),M=M.replace("file://",""));if(this.b.nz&&this.b.oz&&"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.we(this);else{if(this.b.hc)y=this.b.Bl;else try{y=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(d){y=!1}this.b.ji(this)}};
var ua=v.K.prototype;ua.I=function(){this.b.hh=this;P=this.A[0];this.cf=this.A[1];this.Nz=0!==this.A[2];this.Wl=0;W=this.A[3];ya=this.A[4];this.oj=-this.A[5];ra=this.A[6];Qa=this.A[7];Dc=this.A[8];this.Uc=new S;var a=this.b.X||this.b.width,b=this.b.W||this.b.height;1===K&&(A.listener.setPosition(a/2,b/2,this.oj),A.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,b){Ra&&Ra.disconnect();Ib=b.toLowerCase();Ra=A.createMediaStreamSource(a);Ra.connect(n(Ib))});this.b.nr(function(a){X.Hz(a)});
var d=this;this.b.zk(function(a){d.Fj(a)})};ua.Fj=function(a){var b,d,c;b=0;for(d=C.length;b<d;b++)c=C[b],c.Xb&&c.Xb.Ha===a&&(c.Xb.Ha=null,c.me&&c.$i()&&c.ke&&c.stop());this.Uc.Ha===a&&(this.Uc.Ha=null)};ua.Na=function(){var a={silent:L,masterVolume:G,listenerZ:this.oj,listenerUid:this.Uc.xl()?this.Uc.Ha.uid:-1,playing:[],effects:{}},b=a.playing,d,c,e,f,h,l;d=0;for(c=C.length;d<c;d++)e=C[d],!e.rA()||3===this.cf||e.yd&&1===this.cf||!e.yd&&2===this.cf||(f=e.yo(),e.ke&&(f=f%e.sg()),f={tag:e.tag,buffersrc:e.buffer.src,
is_music:e.yd,playbackTime:f,volume:e.volume,looping:e.ke,muted:e.Dh,playbackRate:e.playbackRate,paused:e.Rc,resume_position:e.Jc},e.me&&(f.pan={},l=f.pan,e.Xb&&e.Xb.xl()?l.objUid=e.Xb.Ha.uid:(l.x=e.Ht,l.y=e.It,l.a=e.Dt),l.ia=e.Et,l.oa=e.Ft,l.og=e.Gt),b.push(f));b=a.effects;for(h in ba)if(ba.hasOwnProperty(h)){e=[];d=0;for(c=ba[h].length;d<c;d++)e.push({type:ba[h][d].type,params:ba[h][d].nb});b[h]=e}return a};var eb=[];ua.Ua=function(a){var b=a.silent;G=a.masterVolume;this.oj=a.listenerZ;this.Uc.Xj(null);
var c=a.listenerUid;-1!==c&&(this.Uc.Ol=c,eb.push(this.Uc));var c=a.playing,h,l,g,t,n,p,D,E,w,v,H;if(3!==this.cf)for(h=0,l=C.length;h<l;h++)w=C[h],w.yd&&1===this.cf||(w.yd||2!==this.cf)&&w.stop();for(n in ba)if(ba.hasOwnProperty(n))for(h=0,l=ba[n].length;h<l;h++)ba[n][h].remove();Va(ba);for(n in a.effects)if(a.effects.hasOwnProperty(n))for(p=a.effects[n],h=0,l=p.length;h<l;h++)switch(g=p[h].type,v=p[h].params,g){case "filter":I(n,new d(v[0],v[1],v[2],v[3],v[4],v[5]));break;case "delay":I(n,new r(v[0],
v[1],v[2]));break;case "convolve":g=v[2];w=this.pl(g,!1);w.Fa?g=new e(w.Fa,v[0],v[1],g):(g=new e(null,v[0],v[1],g),w.mt=v[0],w.Rk=g);I(n,g);break;case "flanger":I(n,new f(v[0],v[1],v[2],v[3],v[4]));break;case "phaser":I(n,new k(v[0],v[1],v[2],v[3],v[4],v[5]));break;case "gain":I(n,new m(v[0]));break;case "tremolo":I(n,new R(v[0],v[1]));break;case "ringmod":I(n,new F(v[0],v[1]));break;case "distortion":I(n,new B(v[0],v[1],v[2],v[3],v[4]));break;case "compressor":I(n,new q(v[0],v[1],v[2],v[3],v[4]));
break;case "analyser":I(n,new u(v[0],v[1]))}h=0;for(l=c.length;h<l;h++)3===this.cf||(a=c[h],g=a.buffersrc,t=a.is_music,n=a.tag,p=a.playbackTime,D=a.looping,E=a.volume,H=(v=a.pan)&&v.hasOwnProperty("objUid")?v.objUid:-1,t&&1===this.cf)||!t&&2===this.cf||((w=this.qo(g,n,t,D,E))?(w.Jc=a.resume_position,w.Hm(!!v),w.play(D,E,p),w.dn(),w.CA(),w.$k(w.Dh||w.fj),a.paused&&w.pause(),a.muted&&w.nA(),w.$k(w.Dh||w.fj),v&&(-1!==H?(w.Xb=w.Xb||new S,w.Xb.Ol=H,eb.push(w.Xb)):w.aq(v.x,v.y,v.a,v.ia,v.oa,v.og))):(w=
this.pl(g,t),w.Em=p,w.lm=a.paused,v&&(-1!==H?w.Xh.push({ot:H,Ho:v.ia,up:v.oa,xp:v.og,su:n}):w.Xh.push({x:v.x,y:v.y,Dw:v.a,Ho:v.ia,up:v.oa,xp:v.og,su:n}))));if(b&&!L){h=0;for(l=C.length;h<l;h++)C[h].cu(!0);L=!0}else if(!b&&L){h=0;for(l=C.length;h<l;h++)C[h].cu(!1);L=!1}};ua.Jd=function(){var a,b,d,c;a=0;for(b=eb.length;a<b;a++)d=eb[a],c=this.b.tg(d.Ol),d.Xj(c),d.Ol=-1,c&&(N=c.x,V=c.y);O(eb)};ua.Hz=function(a){if(!this.Nz){!a&&A&&A.resume&&(A.resume(),xa=!1);var b,d;b=0;for(d=C.length;b<d;b++)C[b].pA(a);
a&&A&&A.suspend&&(A.suspend(),xa=!0)}};ua.ya=function(){var a=this.b.kg,b,d,c;b=0;for(d=C.length;b<d;b++)c=C[b],c.ya(a),0!==P&&c.dn();var e,f;for(e in ba)if(ba.hasOwnProperty(e))for(c=ba[e],b=0,d=c.length;b<d;b++)f=c[b],f.ya&&f.ya();1===K&&this.Uc.xl()&&(this.Uc.ya(a),N=this.Uc.Ha.x,V=this.Uc.Ha.y,A.listener.setPosition(this.Uc.Ha.x,this.Uc.Ha.y,this.oj))};var fb=[];ua.oA=function(a){var b,d,c,e,f,h=0;b=0;for(d=a.length;b<d;++b)if(c=a[b],e=c[0],c=2*c[1],(f=4<e.length&&".ogg"===e.substr(e.length-4))&&
y||!f&&!y)fb.push({filename:e,size:c,Ha:null}),h+=c;return h};ua.tA=function(){var a,b,d,c;a=0;for(b=fb.length;a<b;++a)d=fb[a],c=this.b.fl+d.filename,d.Ha=this.pl(c,!1)};ua.Iy=function(){var a=0,b,d,c;b=0;for(d=fb.length;b<d;++b)c=fb[b],c.Ha.mz()||c.Ha.bz()||this.b.Ja||this.b.Cl?a+=c.size:c.Ha.ys()&&(a+=Math.floor(c.size/2));return a};ua.$z=function(){var a,b,d,c;d=a=0;for(b=T.length;a<b;++a)c=T[a],T[d]=c,c.yd?c.Zz():++d;T.length=d};ua.pl=function(a,b){var d,c,e,f=null;d=0;for(c=T.length;d<c;d++)if(e=
T[d],e.src===a){f=e;break}f||(db&&b&&this.$z(),f=new H(a,b),T.push(f));return f};ua.qo=function(a,b,d,c,e){var f,h,l;f=0;for(h=C.length;f<h;f++)if(l=C[f],l.src===a&&(l.Uw()||d))return l.tag=b,l;a=this.pl(a,d);if(!a.Fa)return"<preload>"!==b&&(a.nm=b,a.op=c,a.zq=e),null;l=new t(a,b);C.push(l);return l};var Ta=[];D.prototype.uk=function(a){return mb(J,a)};v.n=new D;E.prototype.Play=function(a,b,d,e){!L&&(d=c(d),x=this.qo(this.b.fl+a[0]+(y?".ogg":".m4a"),e,a[1],0!==b,d))&&(x.Hm(!1),x.play(0!==b,d,0,this.Wl),
this.Wl=0)};E.prototype.aw=function(a,b,d,e,f){!L&&(e=c(e),x=this.qo(this.b.fl+b.toLowerCase()+(y?".ogg":".m4a"),f,1===a,0!==d,e))&&(x.Hm(!1),x.play(0!==d,e,0,this.Wl),this.Wl=0)};E.prototype.yw=function(){var a,b;a=0;for(b=C.length;a<b;a++)C[a].stop()};v.G=new E;v.na=new function(){}})();function Z(c){this.b=c}
(function(){function c(){b&&a&&window.OfflineClientInfo&&window.OfflineClientInfo.SetMessageCallback(function(a){d.Gz(a)})}function p(){}function n(){}function g(a){console&&console.warn&&console.warn("Fullscreen request failed: ",a);e.setSize(window.innerWidth,window.innerHeight)}var h=Z.prototype;h.M=function(a){this.xa=a;this.b=a.b};var l=h.M.prototype;l.I=function(){};var b=!1,a=!1;document.addEventListener("DOMContentLoaded",function(){if(window.C2_RegisterSW&&navigator.ih){var a=document.createElement("script");
a.onload=function(){b=!0;c()};a.src="offlineClient.js";document.head.appendChild(a)}});var d=null;l.ut=function(){a=!0;c()};h.K=function(a){this.type=a;this.b=a.b};l=h.K.prototype;l.I=function(){var a=this;window.addEventListener("resize",function(){a.b.trigger(Z.prototype.n.Sv,a)});d=this;"undefined"!==typeof navigator.onLine&&(window.addEventListener("online",function(){a.b.trigger(Z.prototype.n.Pv,a)}),window.addEventListener("offline",function(){a.b.trigger(Z.prototype.n.Nv,a)}));"undefined"!==
typeof window.applicationCache&&(window.applicationCache.addEventListener("updateready",function(){a.b.Oh=1;a.b.trigger(Z.prototype.n.xk,a)}),window.applicationCache.addEventListener("progress",function(b){a.b.Oh=b.loaded/b.total||0}));this.b.hc||(document.addEventListener("appMobi.device.update.available",function(){a.b.trigger(Z.prototype.n.xk,a)}),document.addEventListener("backbutton",function(){a.b.trigger(Z.prototype.n.tk,a)}),document.addEventListener("menubutton",function(){a.b.trigger(Z.prototype.n.Sq,
a)}),document.addEventListener("searchbutton",function(){a.b.trigger(Z.prototype.n.Tv,a)}),document.addEventListener("tizenhwkey",function(b){var d;switch(b.keyName){case "back":d=a.b.trigger(Z.prototype.n.tk,a);!d&&window.tizen&&window.tizen.application.getCurrentApplication().exit();break;case "menu":(d=a.b.trigger(Z.prototype.n.Sq,a))||b.preventDefault()}}));this.b.Uo&&"undefined"!==typeof Windows?Windows.UI.Core.SystemNavigationManager.getForCurrentView().addEventListener("backrequested",function(b){a.b.trigger(Z.prototype.n.tk,
a)&&(b.wl=!0)}):this.b.To&&WinJS.Application&&(WinJS.Application.onbackclick=function(){return!!a.b.trigger(Z.prototype.n.tk,a)});this.b.nr(function(b){b?a.b.trigger(Z.prototype.n.Qv,a):a.b.trigger(Z.prototype.n.Rv,a)});this.Xo="undefined"!==typeof window.is_scirra_arcade};l.Gz=function(a){a=a.data.type;"downloading-update"===a?this.b.trigger(Z.prototype.n.Wv,this):"update-ready"===a||"update-pending"===a?this.b.trigger(Z.prototype.n.xk,this):"offline-ready"===a&&this.b.trigger(Z.prototype.n.Ov,this)};
p.prototype.Pv=function(){return!0};p.prototype.Nv=function(){return!0};p.prototype.xk=function(){return!0};p.prototype.Rv=function(){return!0};p.prototype.Qv=function(){return!0};p.prototype.Sv=function(){return!0};p.prototype.tk=function(){return!0};p.prototype.Sq=function(){return!0};p.prototype.Tv=function(){return!0};p.prototype.Wv=function(){return!0};p.prototype.xk=function(){return!0};p.prototype.Ov=function(){return!0};h.n=new p;n.prototype.dv=function(a,b){this.b.cd?CocoonJS.App.openURL(a):
this.b.xd?ejecta.openURL(a):this.b.To?Windows.System.Launcher.launchUriAsync(new Windows.Foundation.Uri(a)):navigator.app&&navigator.app.loadUrl?navigator.app.loadUrl(a,{openExternal:!0}):this.b.Qc?window.open(a,"_system"):this.Xo||this.b.Ja||(2!==b||this.Xo?1!==b||this.Xo?window.location=a:window.parent.location=a:window.top.location=a)};var r=!0,e=null;n.prototype.bw=function(a){this.b.Ja?ea("[Construct 2] Requesting fullscreen is not supported on this platform - the request has been ignored"):
(2<=a&&(a+=1),6===a&&(a=2),this.b.zs?this.b.xs?debuggerFullscreen(!0):!this.b.Qe&&window.nwgui&&(window.nwgui.Window.get().enterFullscreen(),this.b.Qe=!0,this.b.Ie=2<=a?a:0):document.mozFullScreen||document.webkitIsFullScreen||document.msFullscreenElement||document.fullScreen||document.fullScreenElement||(this.b.Ie=2<=a?a:0,a=this.b.Ln||this.b.canvas,r&&(r=!1,e=this.b,a.addEventListener("mozfullscreenerror",g),a.addEventListener("webkitfullscreenerror",g),a.addEventListener("MSFullscreenError",g),
a.addEventListener("fullscreenerror",g)),a.requestFullscreen?a.requestFullscreen():a.mozRequestFullScreen?a.mozRequestFullScreen():a.msRequestFullscreen?a.msRequestFullscreen():a.webkitRequestFullScreen&&("undefined"!==typeof Element&&"undefined"!==typeof Element.ALLOW_KEYBOARD_INPUT?a.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT):a.webkitRequestFullScreen())))};n.prototype.Qu=function(){this.b.Ja?ea("[Construct 2] Exiting fullscreen is not supported on this platform - the request has been ignored"):
this.b.zs?this.b.xs?debuggerFullscreen(!1):this.b.Qe&&window.nwgui&&(window.nwgui.Window.get().leaveFullscreen(),this.b.Qe=!1):document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen?document.msExitFullscreen():document.webkitCancelFullScreen&&document.webkitCancelFullScreen()};h.G=new n;h.na=new function(){}})();function qc(c){this.b=c}
(function(){function c(){this.name="";this.Uj=0;this.nb=[]}function p(){a++;a===b.length&&b.push(new c);return b[a]}function n(){}function g(){}function h(){}var l=qc.prototype;l.M=function(a){this.xa=a;this.b=a.b};l.M.prototype.I=function(){};l.K=function(a){this.type=a;this.b=a.b};var b=[],a=-1;l.K.prototype.I=function(){var b=this;window.c2_callFunction=function(c,e){var f,h,l,g=p();g.name=c.toLowerCase();g.Uj=0;if(e)for(g.nb.length=e.length,f=0,h=e.length;f<h;++f)l=e[f],g.nb[f]="number"===typeof l||
"string"===typeof l?l:"boolean"===typeof l?l?1:0:0;else O(g.nb);b.b.trigger(qc.prototype.n.vk,b,g.name);a--;return g.Uj}};n.prototype.vk=function(d){var c=0>a?null:b[a];return c?mb(d,c.name):!1};n.prototype.Vu=function(d,c,e){var f=0>a?null:b[a];if(!f)return!1;d=z(d);return 0>d||d>=f.nb.length?!1:ec(f.nb[d],c,e)};l.n=new n;g.prototype.CallFunction=function(b,c){var e=p();e.name=b.toLowerCase();e.Uj=0;Aa(e.nb,c);this.b.trigger(qc.prototype.n.vk,this,e.name);a--};l.G=new g;h.prototype.Zv=function(d,
c){c=z(c);var e=0>a?null:b[a];e?0<=c&&c<e.nb.length?d.bq(e.nb[c]):d.La(0):d.La(0)};h.prototype.Pu=function(b,c){var e=p();e.name=c.toLowerCase();e.Uj=0;O(e.nb);var f,h;f=2;for(h=arguments.length;f<h;f++)e.nb.push(arguments[f]);this.b.trigger(qc.prototype.n.vk,this,e.name);a--;b.bq(e.Uj)};l.na=new h})();function sc(c){this.b=c}
(function(){function c(){}var p=sc.prototype;p.M=function(c){this.xa=c;this.b=c.b};p.M.prototype.I=function(){};p.K=function(c){this.type=c;this.b=c.b;this.Jh=Array(256);this.lk=Array(256);this.pf=0};var n=p.K.prototype;n.I=function(){var c=this;this.b.Ja||(jQuery(document).keydown(function(l){c.Gj(l)}),jQuery(document).keyup(function(l){c.Hj(l)}))};var g=[32,33,34,35,36,37,38,39,40,44];n.Gj=function(c){var l=!1;window!=window.top&&-1<g.indexOf(c.which)&&(c.preventDefault(),l=!0,c.stopPropagation());
if(this.Jh[c.which])this.lk[c.which]&&!l&&c.preventDefault();else{this.Jh[c.which]=!0;this.pf=c.which;this.b.mb=!0;this.b.trigger(sc.prototype.n.Bv,this);var b=this.b.trigger(sc.prototype.n.Mq,this),a=this.b.trigger(sc.prototype.n.Kv,this);this.b.mb=!1;if(b||a)this.lk[c.which]=!0,l||c.preventDefault()}};n.Hj=function(c){this.Jh[c.which]=!1;this.pf=c.which;this.b.mb=!0;this.b.trigger(sc.prototype.n.Gq,this);var l=this.b.trigger(sc.prototype.n.Oq,this),b=this.b.trigger(sc.prototype.n.Nq,this);this.b.mb=
!1;if(l||b||this.lk[c.which])this.lk[c.which]=!0,c.preventDefault()};n.Xe=function(){var c;for(c=0;256>c;++c)if(this.Jh[c]){this.Jh[c]=!1;this.pf=c;this.b.trigger(sc.prototype.n.Gq,this);var l=this.b.trigger(sc.prototype.n.Oq,this),b=this.b.trigger(sc.prototype.n.Nq,this);if(l||b)this.lk[c]=!0}};n.Na=function(){return{triggerKey:this.pf}};n.Ua=function(c){this.pf=c.triggerKey};c.prototype.pv=function(c){return this.Jh[c]};c.prototype.Mq=function(c){return c===this.pf};c.prototype.Bv=function(){return!0};
c.prototype.Gq=function(){return!0};c.prototype.Oq=function(c){return c===this.pf};c.prototype.Kv=function(c){return c===this.pf};c.prototype.Nq=function(c){return c===this.pf};p.n=new c;p.G=new function(){};p.na=new function(){}})();function tc(c){this.b=c}
(function(){function c(){}function p(){}function n(){}var g=tc.prototype;g.M=function(a){this.xa=a;this.b=a.b};g.M.prototype.I=function(){};g.K=function(a){this.type=a;this.b=a.b;this.jh=Array(4);this.vu=this.$m=this.bh=this.Ue=this.Te=0;this.wl=!1};var h=g.K.prototype;h.I=function(){var a=this;if(!this.b.Ja){jQuery(document).mousemove(function(b){a.zp(b)});jQuery(document).mousedown(function(b){a.yp(b)});jQuery(document).mouseup(function(b){a.Ap(b)});jQuery(document).dblclick(function(b){a.Fz(b)});
var b=function(b){a.Iz(b)};document.addEventListener("mousewheel",b,!1);document.addEventListener("DOMMouseScroll",b,!1)}};var l={left:0,top:0};h.zp=function(a){var b=this.b.Ja?l:jQuery(this.b.canvas).offset();this.Te=a.pageX-b.left;this.Ue=a.pageY-b.top};h.it=function(){return 0<this.b.pc?!0:0<=this.Te&&0<=this.Ue&&this.Te<this.b.width&&this.Ue<this.b.height};h.yp=function(a){this.it()&&(this.jh[a.which]=!0,this.b.mb=!0,this.b.trigger(tc.prototype.n.Av,this),this.bh=a.which-1,this.$m=0,this.b.trigger(tc.prototype.n.Hq,
this),this.b.trigger(tc.prototype.n.Wq,this),this.b.mb=!1)};h.Ap=function(a){this.jh[a.which]&&(this.b.ul&&!this.b.Pe&&a.preventDefault(),this.b.ul=!0,this.jh[a.which]=!1,this.b.mb=!0,this.bh=a.which-1,this.b.trigger(tc.prototype.n.Xq,this),this.b.mb=!1)};h.Fz=function(a){this.it()&&(a.preventDefault(),this.b.mb=!0,this.bh=a.which-1,this.$m=1,this.b.trigger(tc.prototype.n.Hq,this),this.b.trigger(tc.prototype.n.Wq,this),this.b.mb=!1)};h.Iz=function(a){this.vu=0>(a.wheelDelta?a.wheelDelta:a.detail?
-a.detail:0)?0:1;this.wl=!1;this.b.mb=!0;this.b.trigger(tc.prototype.n.Yv,this);this.b.mb=!1;this.wl&&nb(a)&&a.preventDefault()};h.Xe=function(){var a,b;a=0;for(b=this.jh.length;a<b;++a)this.jh[a]&&(this.jh[a]=!1,this.bh=a-1,this.b.trigger(tc.prototype.n.Xq,this))};c.prototype.Hq=function(a,b){return a===this.bh&&b===this.$m};c.prototype.Av=function(){return!0};c.prototype.Xq=function(a){return a===this.bh};c.prototype.sv=function(a){var b=this.b.Lf();return Sa(this.b.gi(a,this.Te,this.Ue,b.Bg),b.Bg)};
c.prototype.Wq=function(a,b,c){return a!==this.bh||b!==this.$m?!1:this.b.gi(c,this.Te,this.Ue,!1)};c.prototype.Yv=function(a){this.wl=!0;return a===this.vu};g.n=new c;var b=null;p.prototype.jw=function(a){this.b.Ja||(a="auto pointer text crosshair move help wait none".split(" ")[a],b!==a&&(b=a,document.body.style.cursor=a))};g.G=new p;n.prototype.Cn=function(a,b){var c,e,f,h,l;ga(b)?(c=this.b.Je(0),e=c.scale,f=c.oc,h=c.Ec,l=c.q,c.scale=1,c.oc=1,c.Ec=1,c.q=0,a.R(c.lb(this.Te,this.Ue,!0)),c.scale=e,
c.oc=f,c.Ec=h,c.q=l):(c=ha(b)?this.b.Je(b):this.b.Mi(b))?a.R(c.lb(this.Te,this.Ue,!0)):a.R(0)};n.prototype.Dn=function(a,b){var c,e,f,h,l;ga(b)?(c=this.b.Je(0),e=c.scale,f=c.oc,h=c.Fc,l=c.q,c.scale=1,c.oc=1,c.Fc=1,c.q=0,a.R(c.lb(this.Te,this.Ue,!1)),c.scale=e,c.oc=f,c.Fc=h,c.q=l):(c=ha(b)?this.b.Je(b):this.b.Mi(b))?a.R(c.lb(this.Te,this.Ue,!1)):a.R(0)};g.na=new n})();function uc(c){this.b=c}
(function(){function c(c){this.Qa=c;this.$a=!1;this.q=this.speed=this.y=this.x=0;this.opacity=1;this.zf=this.zh=this.size=this.sl=0}function p(){}var n=uc.prototype;n.M=function(c){this.xa=c;this.b=c.b};var g=n.M.prototype;g.I=function(){this.P||(this.O=new Image,this.O.Tn=this.Vm,this.S=null,this.b.jn(this.O,this.hk))};g.Wh=function(){this.P||(this.S=null)};g.Jj=function(){this.P||!this.k.length||this.S||(this.S=this.b.H.Rf(this.O,!0,this.b.Ka,this.$g))};g.qj=function(){this.P||this.S||!this.b.H||
(this.S=this.b.H.Rf(this.O,!0,this.b.Ka,this.$g))};g.jk=function(){this.P||this.k.length||!this.S||(this.b.H.deleteTexture(this.S),this.S=null)};g.Oj=function(c){c.drawImage(this.O,0,0)};c.prototype.init=function(){var c=this.Qa;this.x=c.x-c.mn/2+Math.random()*c.mn;this.y=c.y-c.qn/2+Math.random()*c.qn;this.speed=c.Mo-c.Om/2+Math.random()*c.Om;this.q=c.q-c.Pm/2+Math.random()*c.Pm;this.opacity=c.Ko;this.size=c.Lo-c.Nm/2+Math.random()*c.Nm;this.sl=c.Eo-c.tl/2+Math.random()*c.tl;this.zf=this.zh=0};c.prototype.ya=
function(c){var b=this.Qa;this.x+=Math.cos(this.q)*this.speed*c;this.y+=Math.sin(this.q)*this.speed*c;this.y+=this.zh*c;this.speed+=b.Ga*c;this.size+=this.sl*c;this.zh+=b.sb*c;this.zf+=c;1>this.size?this.$a=!1:(0!==b.lj&&(this.q+=Math.random()*b.lj*c-b.lj*c/2),0!==b.nj&&(this.speed+=Math.random()*b.nj*c-b.nj*c/2),0!==b.mj&&(this.opacity+=Math.random()*b.mj*c-b.mj*c/2,0>this.opacity?this.opacity=0:1<this.opacity&&(this.opacity=1)),1>=b.qh&&this.zf>=b.timeout&&(this.$a=!1),2===b.qh&&0>=this.speed&&
(this.$a=!1))};c.prototype.Pc=function(c){var b=this.Qa.opacity*this.opacity;if(0!==b){0===this.Qa.qh&&(b*=1-this.zf/this.Qa.timeout);c.globalAlpha=b;var b=this.x-this.size/2,a=this.y-this.size/2;this.Qa.b.Gc&&(b=b+.5|0,a=a+.5|0);c.drawImage(this.Qa.type.O,b,a,this.size,this.size)}};c.prototype.Tb=function(c){var b=this.Qa.opacity*this.opacity;0===this.Qa.qh&&(b*=1-this.zf/this.Qa.timeout);var a=this.size,d=a*this.Qa.Lt,h=this.x-a/2,e=this.y-a/2;this.Qa.b.Gc&&(h=h+.5|0,e=e+.5|0);1>d||0===b||(d<c.Az||
d>c.pp?(c.df(b),c.Zh(h,e,h+a,e,h+a,e+a,h,e+a)):c.Oz(this.x,this.y,d,b))};c.prototype.left=function(){return this.x-this.size/2};c.prototype.right=function(){return this.x+this.size/2};c.prototype.top=function(){return this.y-this.size/2};c.prototype.bottom=function(){return this.y+this.size/2};n.K=function(c){this.type=c;this.b=c.b};var g=n.K.prototype,h=[];g.I=function(){var c=this.A;this.xm=c[0];this.Pm=Q(c[1]);this.di=c[2];this.iq=!0;this.Mo=c[3];this.Lo=c[4];this.Ko=c[5]/100;this.Eo=c[6];this.mn=
c[7];this.qn=c[8];this.Om=c[9];this.Nm=c[10];this.tl=c[11];this.Ga=c[12];this.sb=c[13];this.lj=c[14];this.nj=c[15];this.mj=c[16];this.qh=c[17];this.timeout=c[18];this.Ug=0;this.Lt=1;this.im=this.x;this.km=this.y;this.jm=this.x;this.hm=this.y;this.Iw(function(b){b.Y.set(b.im,b.km,b.jm,b.hm);b.Mb.Xg(b.Y);b.Hk=!1;b.xq();b.Eu()});this.ic||(this.wc=[]);this.b.ji(this);this.type.qj();if(1===this.di)for(c=0;c<this.xm;c++)this.En().opacity=0;this.jl=!0};g.Na=function(){var c={r:this.xm,sc:this.Pm,st:this.di,
s:this.iq,isp:this.Mo,isz:this.Lo,io:this.Ko,gr:this.Eo,xr:this.mn,yr:this.qn,spr:this.Om,szr:this.Nm,grnd:this.tl,acc:this.Ga,g:this.sb,lar:this.lj,lsr:this.nj,lor:this.mj,dm:this.qh,to:this.timeout,pcc:this.Ug,ft:this.jl,p:[]},b,a,d,h=c.p;b=0;for(a=this.wc.length;b<a;b++)d=this.wc[b],h.push([d.x,d.y,d.speed,d.q,d.opacity,d.sl,d.size,d.zh,d.zf]);return c};g.Ua=function(c){this.xm=c.r;this.Pm=c.sc;this.di=c.st;this.iq=c.s;this.Mo=c.isp;this.Lo=c.isz;this.Ko=c.io;this.Eo=c.gr;this.mn=c.xr;this.qn=
c.yr;this.Om=c.spr;this.Nm=c.szr;this.tl=c.grnd;this.Ga=c.acc;this.sb=c.g;this.lj=c.lar;this.nj=c.lsr;this.mj=c.lor;this.qh=c.dm;this.timeout=c.to;this.Ug=c.pcc;this.jl=c.ft;h.push.apply(h,this.wc);O(this.wc);var b,a,d,g=c.p;c=0;for(b=g.length;c<b;c++)a=this.En(),d=g[c],a.x=d[0],a.y=d[1],a.speed=d[2],a.q=d[3],a.opacity=d[4],a.sl=d[5],a.size=d[6],a.zh=d[7],a.zf=d[8]};g.Td=function(){h.push.apply(h,this.wc);O(this.wc)};g.En=function(){var g;h.length?(g=h.pop(),g.Qa=this):g=new c(this);this.wc.push(g);
g.$a=!0;return g};g.ya=function(){var c=this.b.Qd(this),b,a,d,g;if(0===this.di&&this.iq)for(this.Ug+=c*this.xm,a=z(this.Ug),this.Ug-=a,b=0;b<a;b++)d=this.En(),d.init();this.im=this.x;this.km=this.y;this.jm=this.x;this.hm=this.y;g=b=0;for(a=this.wc.length;b<a;b++)d=this.wc[b],this.wc[g]=d,this.b.ja=!0,1===this.di&&this.jl&&d.init(),d.ya(c),d.$a?(d.left()<this.im&&(this.im=d.left()),d.right()>this.jm&&(this.jm=d.right()),d.top()<this.km&&(this.km=d.top()),d.bottom()>this.hm&&(this.hm=d.bottom()),g++):
h.push(d);za(this.wc,g);this.F();this.jl=!1;1===this.di&&0===this.wc.length&&this.b.we(this)};g.Pc=function(c){var b,a,d,h=this.u;b=0;for(a=this.wc.length;b<a;b++)d=this.wc[b],d.right()>=h.za&&d.bottom()>=h.Aa&&d.left()<=h.Da&&d.top()<=h.Ca&&d.Pc(c)};g.Tb=function(c){this.Lt=this.u.Cc();c.xc(this.type.S);var b,a,d,h=this.u;b=0;for(a=this.wc.length;b<a;b++)d=this.wc[b],d.right()>=h.za&&d.bottom()>=h.Aa&&d.left()<=h.Da&&d.top()<=h.Ca&&d.Tb(c)};n.n=new function(){};p.prototype.wn=function(c){this.sb=
c};n.G=new p;n.na=new function(){}})();function Y(c){this.b=c}
(function(){function c(){if(0===this.Xn.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.ei?b.drawImage(this.O,this.Uh,this.Vh,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.O,0,0,this.width,this.height);this.Xn=a.toDataURL("image/png")}return this.Xn}function p(){}function n(a){a[0]=0;a[1]=0;a[2]=0;m.push(a)}function g(a,b){return a<b?""+a+","+b:""+b+","+a}function h(a,b,c,d){b=b.uid;c=c.uid;var e=g(b,c);if(a.hasOwnProperty(e))a[e][2]=
d;else{var f=m.length?m.pop():[0,0,0];f[0]=b;f[1]=c;f[2]=d;a[e]=f}}function l(a,b,c){b=g(b.uid,c.uid);a.hasOwnProperty(b)&&(n(a[b]),delete a[b])}function b(a,b,c){b=g(b.uid,c.uid);if(a.hasOwnProperty(b))return R=a[b][2],!0;R=-2;return!1}function a(){}function d(){}var r=Y.prototype;r.M=function(a){this.xa=a;this.b=a.b};var e=r.M.prototype;e.I=function(){if(!this.P){var a,b,d,e,f,h,g,k,l;this.Kd=[];this.Ri=!1;a=0;for(b=this.Nc.length;a<b;a++){f=this.Nc[a];g={};g.name=f[0];g.speed=f[1];g.loop=f[2];
g.Sp=f[3];g.Tp=f[4];g.Mt=f[5];g.ra=f[6];g.frames=[];d=0;for(e=f[7].length;d<e;d++)h=f[7][d],k={},k.hk=h[0],k.Vm=h[1],k.Uh=h[2],k.Vh=h[3],k.width=h[4],k.height=h[5],k.duration=h[6],k.rc=h[7],k.tc=h[8],k.Io=h[9],k.om=h[10],k.Nt=h[11],k.ei=0!==k.width,k.Xn="",k.HB=c,l={left:0,top:0,right:1,bottom:1},k.fq=l,k.S=null,(l=this.b.ty(h[0]))?k.O=l:(k.O=new Image,k.O.Yw=h[0],k.O.Tn=h[1],k.O.Sw=null,this.b.jn(k.O,h[0])),g.frames.push(k),this.Kd.push(k);this.Nc[a]=g}}};e.Du=function(){var a,b,c;a=0;for(b=this.k.length;a<
b;a++)c=this.k[a],c.Tk=c.Rb.S};e.Wh=function(){if(!this.P){var a,b,c;a=0;for(b=this.Kd.length;a<b;++a)c=this.Kd[a],c.O.Sw=null,c.S=null;this.Ri=!1;this.Du()}};e.Jj=function(){if(!this.P&&this.k.length){var a,b,c;a=0;for(b=this.Kd.length;a<b;++a)c=this.Kd[a],c.S=this.b.H.Rf(c.O,!1,this.b.Ka,c.Nt);this.Du()}};e.qj=function(){if(!this.P&&!this.Ri&&this.b.H){var a,b,c;a=0;for(b=this.Kd.length;a<b;++a)c=this.Kd[a],c.S=this.b.H.Rf(c.O,!1,this.b.Ka,c.Nt);this.Ri=!0}};e.jk=function(){if(!this.P&&!this.k.length&&
this.Ri){var a,b,c;a=0;for(b=this.Kd.length;a<b;++a)c=this.Kd[a],this.b.H.deleteTexture(c.S),c.S=null;this.Ri=!1}};var f=[];e.Oj=function(a){var b,c,d;O(f);b=0;for(c=this.Kd.length;b<c;++b)d=this.Kd[b].O,-1===f.indexOf(d)&&(a.drawImage(d,0,0),f.push(d))};r.K=function(a){this.type=a;this.b=a.b;a=this.type.Nc[0].frames[0].om;this.ic?this.ta.Zj(a):this.ta=new gb(a)};var k=r.K.prototype;k.I=function(){this.visible=0===this.A[0];this.zl=this.bj=!1;this.Yc=0!==this.A[3];this.Ma=this.Xr(this.A[1])||this.type.Nc[0];
this.U=this.A[2];0>this.U&&(this.U=0);this.U>=this.Ma.frames.length&&(this.U=this.Ma.frames.length-1);var a=this.Ma.frames[this.U];this.ta.Zj(a.om);this.rc=a.rc;this.tc=a.tc;this.oh=this.Ma.speed;this.If=this.Ma.Tp;1===this.type.Nc.length&&1===this.type.Nc[0].frames.length||0===this.oh||(this.b.ji(this),this.bj=!0);this.ic?this.ee.reset():this.ee=new $a;this.He=this.ee.T;this.Bf=!0;this.xe=0;this.bg=!0;this.kh=this.qr="";this.Er=0;this.Mk=-1;this.type.qj();var b,c,d,e,f,h,g,a=0;for(b=this.type.Nc.length;a<
b;a++)for(e=this.type.Nc[a],c=0,d=e.frames.length;c<d;c++)f=e.frames[c],0===f.width&&(f.width=f.O.width,f.height=f.O.height),f.ei&&(g=f.O,h=f.fq,h.left=f.Uh/g.width,h.top=f.Vh/g.height,h.right=(f.Uh+f.width)/g.width,h.bottom=(f.Vh+f.height)/g.height,0===f.Uh&&0===f.Vh&&f.width===g.width&&f.height===g.height&&(f.ei=!1));this.Rb=this.Ma.frames[this.U];this.Tk=this.Rb.S};k.Na=function(){var a={a:this.Ma.ra,f:this.U,cas:this.oh,fs:this.He,ar:this.xe,at:this.ee.T,rt:this.If};this.Bf||(a.ap=this.Bf);this.bg||
(a.af=this.bg);return a};k.Ua=function(a){var b=this.xy(a.a);b&&(this.Ma=b);this.U=a.f;0>this.U&&(this.U=0);this.U>=this.Ma.frames.length&&(this.U=this.Ma.frames.length-1);this.oh=a.cas;this.He=a.fs;this.xe=a.ar;this.ee.reset();this.ee.T=a.at;this.Bf=a.hasOwnProperty("ap")?a.ap:!0;this.bg=a.hasOwnProperty("af")?a.af:!0;a.hasOwnProperty("rt")?this.If=a.rt:this.If=this.Ma.Tp;this.Rb=this.Ma.frames[this.U];this.Tk=this.Rb.S;this.ta.Zj(this.Rb.om);this.rc=this.Rb.rc;this.tc=this.Rb.tc};k.Hn=function(a){this.U=
a?0:this.Ma.frames.length-1;this.Bf=!1;this.qr=this.Ma.name;this.zl=!0;this.b.trigger(Y.prototype.n.zv,this);this.b.trigger(Y.prototype.n.Fq,this);this.zl=!1;this.xe=0};k.ih=function(){return this.ee.T};k.ya=function(){this.ee.add(this.b.Qd(this));this.kh.length&&this.Kr();0<=this.Mk&&this.Lr();var a=this.ee.T,b=this.Ma,c=b.frames[this.U],d=c.duration/this.oh;this.Bf&&a>=this.He+d&&(this.bg?this.U++:this.U--,this.He+=d,this.U>=b.frames.length&&(b.Mt?(this.bg=!1,this.U=b.frames.length-2):b.loop?this.U=
this.If:(this.xe++,this.xe>=b.Sp?this.Hn(!1):this.U=this.If)),0>this.U&&(b.Mt?(this.U=1,this.bg=!0,b.loop||(this.xe++,this.xe>=b.Sp&&this.Hn(!0))):b.loop?this.U=this.If:(this.xe++,this.xe>=b.Sp?this.Hn(!0):this.U=this.If)),0>this.U?this.U=0:this.U>=b.frames.length&&(this.U=b.frames.length-1),a>this.He+b.frames[this.U].duration/this.oh&&(this.He=a),a=b.frames[this.U],this.gh(c,a),this.b.ja=!0)};k.Xr=function(a){var b,c,d;b=0;for(c=this.type.Nc.length;b<c;b++)if(d=this.type.Nc[b],mb(d.name,a))return d;
return null};k.xy=function(a){var b,c,d;b=0;for(c=this.type.Nc.length;b<c;b++)if(d=this.type.Nc[b],d.ra===a)return d;return null};k.Kr=function(){var a=this.Ma.frames[this.U],b=this.Xr(this.kh);this.kh="";!b||mb(b.name,this.Ma.name)&&this.Bf||(this.Ma=b,this.oh=b.speed,this.If=b.Tp,0>this.U&&(this.U=0),this.U>=this.Ma.frames.length&&(this.U=this.Ma.frames.length-1),1===this.Er&&(this.U=0),this.Bf=!0,this.He=this.ee.T,this.bg=!0,this.gh(a,this.Ma.frames[this.U]),this.b.ja=!0)};k.Lr=function(){var a=
this.Ma.frames[this.U],b=this.U;this.U=z(this.Mk);0>this.U&&(this.U=0);this.U>=this.Ma.frames.length&&(this.U=this.Ma.frames.length-1);b!==this.U&&(this.gh(a,this.Ma.frames[this.U]),this.He=this.ee.T,this.b.ja=!0);this.Mk=-1};k.gh=function(a,b){var c=a.width,d=a.height,e=b.width,f=b.height;c!=e&&(this.width*=e/c);d!=f&&(this.height*=f/d);this.rc=b.rc;this.tc=b.tc;this.ta.Zj(b.om);this.F();this.Rb=b;this.Tk=b.S;c=0;for(d=this.V.length;c<d;c++)e=this.V[c],e.zt&&e.zt(a,b);this.b.trigger(Y.prototype.n.gh,
this)};k.Pc=function(a){a.globalAlpha=this.opacity;var b=this.Rb,c=b.ei,d=b.O,e=this.x,f=this.y,h=this.width,g=this.height;if(0===this.q&&0<=h&&0<=g)e-=this.rc*h,f-=this.tc*g,this.b.Gc&&(e=Math.round(e),f=Math.round(f)),c?a.drawImage(d,b.Uh,b.Vh,b.width,b.height,e,f,h,g):a.drawImage(d,e,f,h,g);else{this.b.Gc&&(e=Math.round(e),f=Math.round(f));a.save();var k=0<h?1:-1,l=0<g?1:-1;a.translate(e,f);1===k&&1===l||a.scale(k,l);a.rotate(this.q*k*l);e=0-this.rc*la(h);f=0-this.tc*la(g);c?a.drawImage(d,b.Uh,
b.Vh,b.width,b.height,e,f,la(h),la(g)):a.drawImage(d,e,f,la(h),la(g));a.restore()}};k.jg=function(a){this.Tb(a)};k.Tb=function(a){a.xc(this.Tk);a.df(this.opacity);var b=this.Rb,c=this.Mb;if(this.b.Gc){var d=Math.round(this.x)-this.x,e=Math.round(this.y)-this.y;b.ei?a.Wd(c.Sa+d,c.Ta+e,c.pb+d,c.qb+e,c.jb+d,c.kb+e,c.hb+d,c.ib+e,b.fq):a.Zh(c.Sa+d,c.Ta+e,c.pb+d,c.qb+e,c.jb+d,c.kb+e,c.hb+d,c.ib+e)}else b.ei?a.Wd(c.Sa,c.Ta,c.pb,c.qb,c.jb,c.kb,c.hb,c.ib,b.fq):a.Zh(c.Sa,c.Ta,c.pb,c.qb,c.jb,c.kb,c.hb,c.ib)};
k.Dy=function(a){var b=this.Rb,c,d;c=0;for(d=b.Io.length;c<d;c++)if(mb(a,b.Io[c][0]))return c;return-1};k.Li=function(a,b){var c=this.Rb,d=c.Io,e;ia(a)?e=this.Dy(a):e=a-1;e=z(e);if(0>e||e>=d.length)return b?this.x:this.y;var f=(d[e][1]-c.rc)*this.width,d=d[e][2],d=(d-c.tc)*this.height,c=Math.cos(this.q);e=Math.sin(this.q);var h=f*c-d*e,d=d*c+f*e,f=h+this.x,d=d+this.y;return b?f:d};var m=[],R=-2,F=[];p.prototype.Dv=function(a){if(!a)return!1;var c=this.b,d=c.Lf(),e=d.type,f=null;d.N.collmemory?f=d.N.collmemory:
(f={},d.N.collmemory=f);d.N.spriteCreatedDestroyCallback||(d.N.spriteCreatedDestroyCallback=!0,c.zk(function(a){var b=d.N.collmemory;a=a.uid;var c,e;for(c in b)b.hasOwnProperty(c)&&(e=b[c],e[0]===a||e[1]===a)&&(n(b[c]),delete b[c])}));var g=e.ea(),k=a.ea(),g=g.qc(),m,q,r,p,B,u,H,S=this.b.ld,P=S-1,L=c.tb().cc;for(q=0;q<g.length;q++){r=g[q];k.ka?(r.aa(),this.b.uo(r.u,a,r.Y,F),m=F):m=k.qc();for(p=0;p<m.length;p++)B=m[p],c.mc(r,B)||c.Vw(r,B)?(u=b(f,r,B),u=!u||R<P,h(f,r,B,S),u&&(c.um(L.Oa),u=e.ea(),H=
a.ea(),u.ka=!1,H.ka=!1,e===a?(u.k.length=2,u.k[0]=r,u.k[1]=B,e.qd()):(u.k.length=1,H.k.length=1,u.k[0]=r,H.k[0]=B,e.qd(),a.qd()),L.eA(),c.Vg(L.Oa))):l(f,r,B);O(F)}return!1};var B=null,q=new ca,u=!1,S=[],H=new sa(0,0,0,0);e.finish=function(a){if(u){if(a){var b=this.b.tb().cc.gd;a=B.ea();var c=q.Hd(),d,e;if(a.ka){a.ka=!1;O(a.k);d=0;for(e=c.length;d<e;++d)a.k[d]=c[d];if(b)for(O(a.da),d=0,e=B.k.length;d<e;++d)c=B.k[d],q.contains(c)||a.da.push(c)}else if(b)for(b=a.k.length,d=0,e=c.length;d<e;++d)a.k[b+
d]=c[d],Da(a.da,c[d]);else Aa(a.k,c);B.qd()}q.clear();u=!1}};p.prototype.tv=function(a){if(a){var b=!1,c,d,e,f=this.b.Lf(),h=f.type,f=f.Bg;c=a.ea();d=this.b.tb().cc.gd;var g;c.ka?(this.aa(),H.nh(this.Y),H.offset(0,0),this.b.uo(this.u,a,H,S),g=S):g=d?this.b.jz()&&!c.da.length&&c.k.length?c.k:c.da:c.k;B=a;u=h!==a&&!f;c=0;for(d=g.length;c<d;c++)if(e=g[c],this.b.mc(this,e)){b=!0;if(f)break;h!==a&&q.add(e)}O(S);a=b}else a=!1;return a};p.prototype.hv=function(a){return this.kh.length?mb(this.kh,a):mb(this.Ma.name,
a)};p.prototype.Tu=function(a,b){return ec(this.U,a,b)};p.prototype.Fq=function(a){return mb(this.qr,a)};p.prototype.zv=function(){return!0};p.prototype.gh=function(){return!0};r.n=new p;a.prototype.vw=function(a,b,c){if(a&&b&&(b=this.b.Un(a,b,this.Li(c,!0),this.Li(c,!1)))){"undefined"!==typeof b.q&&(b.q=this.q,b.F());this.b.dd++;var d,e,f;this.b.trigger(Object.getPrototypeOf(a.xa).n.ag,b);if(b.uc)for(d=0,e=b.siblings.length;d<e;d++)f=b.siblings[d],this.b.trigger(Object.getPrototypeOf(f.type.xa).n.ag,
f);this.b.dd--;d=this.b.Ay();c=!1;if(ga(d.N.Spawn_LastExec)||d.N.Spawn_LastExec<this.b.qg)c=!0,d.N.Spawn_LastExec=this.b.qg;if(a!=this.type&&(a=a.ea(),a.ka=!1,c?(O(a.k),a.k[0]=b):a.k.push(b),b.uc))for(d=0,e=b.siblings.length;d<e;d++)f=b.siblings[d],a=f.type.ea(),a.ka=!1,c?(O(a.k),a.k[0]=f):a.k.push(f)}};a.prototype.zw=function(){this.Bf=!1};a.prototype.gw=function(a,b){this.kh=a;this.Er=b;this.bj||(this.b.ji(this),this.bj=!0);this.zl||this.Kr()};a.prototype.hw=function(a){this.Mk=a;this.bj||(this.b.ji(this),
this.bj=!0);this.zl||this.Lr()};a.prototype.mw=function(a){a=la(this.width)*(0===a?-1:1);this.width!==a&&(this.width=a,this.F())};a.prototype.iw=function(a){this.Yc!==(0!==a)&&((this.Yc=0!==a)?this.F():(this.sd.right>=this.sd.left&&this.type.yi.update(this,this.sd,null),this.sd.set(0,0,-1,-1)))};r.G=new a;d.prototype.Nu=function(a){a.jc(this.Ma.name)};r.na=new d})();function vc(c){this.b=c}
(function(){function c(a,b){return a.length?a.pop():new b}function p(a,c,d){if(d){var e;d=0;for(e=c.length;d<e;d++)a.length<b&&a.push(c[d]);O(c)}else for(e in c)Object.prototype.hasOwnProperty.call(c,e)&&(a.length<b&&a.push(c[e]),delete c[e])}function n(b,d,e){var f=b.vc;e=e.replace(/\s\s*$/,"");d>=f.length&&f.push(c(a,Object));d=f[d];d.text=e;d.width=b.rp(e);b.nf=ma(b.nf,d.width)}function g(){}var h=vc.prototype;h.I=function(){};h.M=function(a){this.xa=a;this.b=a.b};var l=h.M.prototype;l.I=function(){this.P||
(this.O=new Image,this.b.jn(this.O,this.hk),this.S=null)};l.Wh=function(){this.P||(this.S=null)};l.Jj=function(){if(!this.P&&this.k.length){this.S||(this.S=this.b.H.Rf(this.O,!1,this.b.Ka,this.$g));var a,b;a=0;for(b=this.k.length;a<b;a++)this.k[a].S=this.S}};l.jk=function(){this.P||this.k.length||!this.S||(this.b.H.deleteTexture(this.S),this.S=null)};l.Oj=function(a){a.drawImage(this.O,0,0)};h.K=function(a){this.type=a;this.b=a.b};l=h.K.prototype;l.Td=function(){p(a,this.vc,!0);p(d,this.Ok,!1);p(r,
this.Pk,!1);Va(this.Ff)};l.I=function(){this.O=this.type.O;this.Nk=this.A[0];this.Df=this.A[1];this.characterSet=this.A[2];this.text=this.A[3];this.Ef=this.A[4];this.visible=0===this.A[5];this.Ke=this.A[6]/2;this.qf=this.A[7]/2;this.sk=0===this.A[9];this.mh=this.A[10];this.lineHeight=this.A[11];this.ue=this.nf=0;this.ic?(O(this.vc),Va(this.Ok),Va(this.Pk),Va(this.Ff)):(this.vc=[],this.Ok={},this.Pk={},this.Ff={});this.kd=!0;this.Kg=this.width;this.b.H&&(this.type.S||(this.type.S=this.b.H.Rf(this.type.O,
!1,this.b.Ka,this.type.$g)),this.S=this.type.S);this.ww()};l.Na=function(){var a={t:this.text,csc:this.Ef,csp:this.mh,lh:this.lineHeight,tw:this.nf,th:this.ue,lrt:this.Jg,ha:this.Ke,va:this.qf,cw:{}},b;for(b in this.Ff)a.cw[b]=this.Ff[b];return a};l.Ua=function(a){this.text=a.t;this.Ef=a.csc;this.mh=a.csp;this.lineHeight=a.lh;this.nf=a.tw;this.ue=a.th;this.Jg=a.lrt;a.hasOwnProperty("ha")&&(this.Ke=a.ha);a.hasOwnProperty("va")&&(this.qf=a.va);for(var b in a.cw)this.Ff[b]=a.cw[b];this.kd=!0;this.Kg=
this.width};var b=1E3,a=[],d=[],r=[];l.ww=function(){for(var a=this.O,b=a.width,e=a.height,a=this.Nk,f=this.Df,h=a/b,g=f/e,l=this.characterSet,b=Math.floor(b/a),e=Math.floor(e/f),n=0;n<l.length&&!(n>=b*e);n++){var p=n%b,t=Math.floor(n/b),I=l.charAt(n);if(this.b.H){var D=this.Pk,E=p*h,v=t*g,p=(p+1)*h,t=(t+1)*g;void 0===D[I]&&(D[I]=c(r,sa));D[I].left=E;D[I].top=v;D[I].right=p;D[I].bottom=t}else D=this.Ok,p=p*a,t=t*f,E=a,v=f,void 0===D[I]&&(D[I]=c(d,Object)),D[I].x=p,D[I].y=t,D[I].Iu=E,D[I].ds=v}};var e=
[];h.zn=function(a){O(e);for(var b="",c,d=0;d<a.length;)if(c=a.charAt(d),"\n"===c)b.length&&(e.push(b),b=""),e.push("\n"),++d;else if(" "===c||"\t"===c||"-"===c){do b+=a.charAt(d),d++;while(d<a.length&&(" "===a.charAt(d)||"\t"===a.charAt(d)));e.push(b);b=""}else d<a.length&&(b+=c,d++);b.length&&e.push(b)};h.An=function(b){var d=b.text,e=b.vc;if(d&&d.length){var f=b.width;if(2>=f)p(a,e,!0);else{var h=b.Ef,g=b.mh;if(d.length*(b.Nk*h+g)-g<=f&&-1===d.indexOf("\n")&&(g=b.rp(d),g<=f)){p(a,e,!0);e.push(c(a,
Object));e[0].text=d;e[0].width=g;b.nf=g;b.ue=b.Df*h+b.lineHeight;return}this.Bn(b);b.ue=e.length*(b.Df*h+b.lineHeight)}}else p(a,e,!0)};h.Bn=function(c){var d=c.sk,f=c.text,h=c.vc,g=c.width;d&&(this.zn(f),f=e);var l="",r,p,H,t=0,I=!1;for(H=0;H<f.length;H++)"\n"===f[H]?(!0===I?I=!1:(n(c,t,l),t++),l=""):(I=!1,r=l,l+=f[H],p=c.rp(l.replace(/\s\s*$/,"")),p>g&&(""===r?(n(c,t,l),l="",I=!0):(n(c,t,r),l=f[H]),t++,d||" "!==l||(l="")));l.replace(/\s\s*$/,"").length&&(n(c,t,l),t++);for(H=t;H<h.length;H++)a.length<
b&&a.push(h[H]);h.length=t};l.rp=function(a){for(var b=this.mh,c=a.length,d=0,e=0;e<c;e++)d+=this.so(a.charAt(e))*this.Ef+b;return d-(0<d?b:0)};l.so=function(a){var b=this.Ff;return void 0!==b[a]?b[a]:this.Nk};l.Tt=function(){if(this.kd||this.width!==this.Kg)this.ue=this.nf=0,this.type.xa.An(this),this.kd=!1,this.Kg=this.width};l.Pc=function(a){var b=this.O;if(""!==this.text&&null!=b&&(this.Tt(),!(this.height<this.Df*this.Ef+this.lineHeight))){a.globalAlpha=this.opacity;var b=this.x,c=this.y;this.b.Gc&&
(b=Math.round(b),c=Math.round(c));var d=this.u.za,e=this.u.Aa,f=this.u.Da,h=this.u.Ca;a.save();a.translate(b,c);a.rotate(this.q);for(var g=this.q,l=this.Ke,n=this.Ef,r=this.Df*n,p=this.lineHeight,E=this.mh,v=this.vc,w,X=-(this.rc*this.width),J=-(this.tc*this.height),J=J+this.qf*ma(0,this.height-this.ue),M,K,A,T=0;T<v.length;T++){var C=v[T].text;w=l*ma(0,this.width-v[T].width);M=X+w;J+=p;if(0===g&&c+J+r<e)J+=r;else{for(var x=0;x<C.length;x++){K=C.charAt(x);w=this.so(K);var y=this.Ok[K];if(0===g&&b+
M+w*n+E<d)M+=w*n+E;else{if(M+w*n>this.width+1E-5)break;void 0!==y&&(K=M,A=J,0===g&&1===n&&(K=Math.round(K),A=Math.round(A)),a.drawImage(this.O,y.x,y.y,y.Iu,y.ds,K,A,y.Iu*n,y.ds*n));M+=w*n+E;if(0===g&&b+M>f)break}}J+=r;if(0===g&&(J+r+p>this.height||c+J>h))break}}a.restore()}};var f=new ta;l.Tb=function(a){a.xc(this.S);a.df(this.opacity);if(this.text&&(this.Tt(),!(this.height<this.Df*this.Ef+this.lineHeight))){this.aa();var b=this.Mb,c=0,d=0;this.b.Gc&&(c=Math.round(this.x)-this.x,d=Math.round(this.y)-
this.y);var e=this.u.za,h=this.u.Aa,g=this.u.Da,l=this.u.Ca,n=this.q,r=this.Ke,p=this.qf,D=this.Ef,E=this.Df*D,v=this.lineHeight,w=this.mh,X=this.vc,J=this.ue,M,K,A;0!==n&&(K=Math.cos(n),A=Math.sin(n));for(var c=b.Sa+c,b=b.Ta+d,T,p=p*ma(0,this.height-J),C,x,J=0;J<X.length;J++)if(d=X[J].text,T=M=r*ma(0,this.width-X[J].width),p+=v,0===n&&b+p+E<h)p+=E;else{for(var y=0;y<d.length;y++){var P=d.charAt(y);M=this.so(P);P=this.Pk[P];if(0===n&&c+T+M*D+w<e)T+=M*D+w;else{if(T+M*D>this.width+1E-5)break;if(void 0!==
P){var L=this.Nk*D,G=this.Df*D;C=T;x=p;0===n&&1===D&&(C=Math.round(C),x=Math.round(x));f.Sa=C;f.Ta=x;f.pb=C+L;f.qb=x;f.hb=C;f.ib=x+G;f.jb=C+L;f.kb=x+G;0!==n&&(C=f,x=K,L=A,G=void 0,G=C.Sa*x-C.Ta*L,C.Ta=C.Ta*x+C.Sa*L,C.Sa=G,G=C.pb*x-C.qb*L,C.qb=C.qb*x+C.pb*L,C.pb=G,G=C.hb*x-C.ib*L,C.ib=C.ib*x+C.hb*L,C.hb=G,G=C.jb*x-C.kb*L,C.kb=C.kb*x+C.jb*L,C.jb=G);f.offset(c,b);a.Wd(f.Sa,f.Ta,f.pb,f.qb,f.jb,f.kb,f.hb,f.ib,P)}T+=M*D+w;if(0===n&&c+T>g)break}}p+=E;if(0===n&&(p+E+v>this.height||b+p>l))break}}};h.n=new function(){};
g.prototype.er=function(a){ha(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.kd=!0,this.b.ja=!0)};l.ih=function(a,b){var c=parseInt(b,10);this.Ff[a]!==c&&(this.Ff[a]=c,this.kd=!0,this.b.ja=!0)};h.G=new g;h.na=new function(){}})();function wc(c){this.b=c}
(function(){function c(){return a.length?a.pop():{}}function p(b){var c,e;c=0;for(e=b.length;c<e;c++)a.push(b[c]);O(b)}function n(a){return a.length&&" "===a.charAt(a.length-1)?a.substring(0,a.length-1):a}function g(){}var h=wc.prototype;h.I=function(){h.G.fr=function(a){this.width!==a&&(this.width=a,this.kd=!0,this.F())}};h.M=function(a){this.xa=a;this.b=a.b};var l=h.M.prototype;l.I=function(){};l.Wh=function(){if(!this.P){var a,b,c;a=0;for(b=this.k.length;a<b;a++)c=this.k[a],c.le=null,c.Rg=null,
c.Vc=null}};h.K=function(a){this.type=a;this.b=a.b;this.ic?O(this.vc):this.vc=[];this.kd=!0};l=h.K.prototype;l.I=function(){this.text=this.A[0];this.visible=0===this.A[1];this.font=this.A[2];this.color=this.A[3];this.Ke=this.A[4];this.qf=this.A[5];this.sk=0===this.A[7];this.Kg=this.Jl=this.width;this.Il=this.height;this.hp=this.A[8];this.ll=this.sh="";this.ue=this.nf=this.Qj=0;this.Lz();this.Vc=this.Rg=this.le=null;this.kt=!1;this.Jg=this.b.ld;this.ic?this.Wf.set(0,0,1,1):this.Wf=new sa(0,0,1,1);
this.b.H&&this.b.ji(this)};l.Lz=function(){var a=this.font.split(" "),b;for(b=0;b<a.length;b++)if("pt"===a[b].substr(a[b].length-2,2)){this.Qj=parseInt(a[b].substr(0,a[b].length-2));this.Mp=Math.ceil(this.Qj/72*96)+4;0<b&&(this.ll=a[b-1]);this.sh=a[b+1];for(b+=2;b<a.length;b++)this.sh+=" "+a[b];break}};l.Na=function(){return{t:this.text,f:this.font,c:this.color,ha:this.Ke,va:this.qf,wr:this.sk,lho:this.hp,fn:this.sh,fs:this.ll,ps:this.Qj,pxh:this.Mp,tw:this.nf,th:this.ue,lrt:this.Jg}};l.Ua=function(a){this.text=
a.t;this.font=a.f;this.color=a.c;this.Ke=a.ha;this.qf=a.va;this.sk=a.wr;this.hp=a.lho;this.sh=a.fn;this.ll=a.fs;this.Qj=a.ps;this.Mp=a.pxh;this.nf=a.tw;this.ue=a.th;this.Jg=a.lrt;this.kd=!0;this.Kg=this.Jl=this.width;this.Il=this.height};l.ya=function(){if(this.b.H&&this.Vc&&300<=this.b.ld-this.Jg){var a=this.u;this.aa();var b=this.Y;if(b.right<a.za||b.bottom<a.Aa||b.left>a.Da||b.top>a.Ca)this.b.H.deleteTexture(this.Vc),this.le=this.Rg=this.Vc=null}};l.Td=function(){this.le=this.Rg=null;this.b.H&&
this.Vc&&this.b.H.deleteTexture(this.Vc);this.Vc=null};l.ih=function(){this.font=this.ll+" "+this.Qj.toString()+"pt "+this.sh;this.kd=!0;this.b.ja=!0};l.Pc=function(a,b){a.font=this.font;a.textBaseline="top";a.fillStyle=this.color;a.globalAlpha=b?1:this.opacity;var c=1;b&&(c=Math.abs(this.u.Cc()),a.save(),a.scale(c,c));if(this.kd||this.width!==this.Kg)this.type.xa.An(this.text,this.vc,a,this.width,this.sk),this.kd=!1,this.Kg=this.width;this.aa();var c=b?0:this.Mb.Sa,f=b?0:this.Mb.Ta;this.b.Gc&&(c=
c+.5|0,f=f+.5|0);0===this.q||b||(a.save(),a.translate(c,f),a.rotate(this.q),f=c=0);var h=f+this.height,g=this.Mp,g=g+this.hp,l,n;1===this.qf?f+=Math.max(this.height/2-this.vc.length*g/2,0):2===this.qf&&(f+=Math.max(this.height-this.vc.length*g-2,0));for(n=0;n<this.vc.length&&!(l=c,1===this.Ke?l=c+(this.width-this.vc[n].width)/2:2===this.Ke&&(l=c+(this.width-this.vc[n].width)),a.fillText(this.vc[n].text,l,f),f+=g,f>=h-g);n++);(0!==this.q||b)&&a.restore();this.Jg=this.b.ld};l.Tb=function(a){if(!(1>
this.width||1>this.height)){var b=this.kd||this.kt;this.kt=!1;var c=this.u.Cc(),f=this.u.Eb(),h=this.Wf,g=c*this.width,l=c*this.height,n=Math.ceil(g),p=Math.ceil(l),q=Math.abs(n),u=Math.abs(p),S=this.b.X/2,H=this.b.W/2;this.Rg||(this.le=document.createElement("canvas"),this.le.width=q,this.le.height=u,this.Jl=q,this.Il=u,b=!0,this.Rg=this.le.getContext("2d"));if(q!==this.Jl||u!==this.Il)this.le.width=q,this.le.height=u,this.Vc&&(a.deleteTexture(this.Vc),this.Vc=null),b=!0;b&&(this.Rg.clearRect(0,
0,q,u),this.Pc(this.Rg,!0),this.Vc||(this.Vc=a.Zc(q,u,this.b.Ka,this.b.Pe)),a.HA(this.le,this.Vc,this.b.Pe));this.Jl=q;this.Il=u;a.xc(this.Vc);a.df(this.opacity);a.Cd();a.translate(-S,-H);a.md();var t=this.Mb,b=this.u.Xa(t.Sa,t.Ta,!0,!0),q=this.u.Xa(t.Sa,t.Ta,!1,!0),u=this.u.Xa(t.pb,t.qb,!0,!0),S=this.u.Xa(t.pb,t.qb,!1,!0),H=this.u.Xa(t.jb,t.kb,!0,!0),I=this.u.Xa(t.jb,t.kb,!1,!0),D=this.u.Xa(t.hb,t.ib,!0,!0),t=this.u.Xa(t.hb,t.ib,!1,!0);if(this.b.Gc||0===this.q&&0===f)var E=(b+.5|0)-b,v=(q+.5|0)-
q,b=b+E,q=q+v,u=u+E,S=S+v,H=H+E,I=I+v,D=D+E,t=t+v;0===this.q&&0===f?(u=b+n,S=q,H=u,I=q+p,D=b,t=I,h.right=1,h.bottom=1):(h.right=g/n,h.bottom=l/p);a.Wd(b,q,u,S,H,I,D,t,h);a.Cd();a.scale(c,c);a.Bm(-this.u.Eb());a.translate((this.u.za+this.u.Da)/-2,(this.u.Aa+this.u.Ca)/-2);a.md();this.Jg=this.b.ld}};var b=[];h.zn=function(a){O(b);for(var c="",e,f=0;f<a.length;)if(e=a.charAt(f),"\n"===e)c.length&&(b.push(c),c=""),b.push("\n"),++f;else if(" "===e||"\t"===e||"-"===e){do c+=a.charAt(f),f++;while(f<a.length&&
(" "===a.charAt(f)||"\t"===a.charAt(f)));b.push(c);c=""}else f<a.length&&(c+=e,f++);c.length&&b.push(c)};var a=[];h.An=function(a,b,e,f,h){if(a&&a.length)if(2>=f)p(b);else{if(100>=a.length&&-1===a.indexOf("\n")){var g=e.measureText(a).width;if(g<=f){p(b);b.push(c());b[0].text=a;b[0].width=g;return}}this.Bn(a,b,e,f,h)}else p(b)};h.Bn=function(d,h,e,f,g){g&&(this.zn(d),d=b);var l="",p,F,B,q=0;for(B=0;B<d.length;B++)"\n"===d[B]?(q>=h.length&&h.push(c()),l=n(l),F=h[q],F.text=l,F.width=e.measureText(l).width,
q++,l=""):(p=l,l+=d[B],F=e.measureText(l).width,F>=f&&(q>=h.length&&h.push(c()),p=n(p),F=h[q],F.text=p,F.width=e.measureText(p).width,q++,l=d[B],g||" "!==l||(l="")));l.length&&(q>=h.length&&h.push(c()),l=n(l),F=h[q],F.text=l,F.width=e.measureText(l).width,q++);for(B=q;B<h.length;B++)a.push(h[B]);h.length=q};h.n=new function(){};g.prototype.er=function(a){ha(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.kd=!0,this.b.ja=!0)};h.G=new g;h.na=new function(){}})();
function xc(c){this.b=c}
(function(){var c=xc.prototype;c.M=function(c){this.xa=c;this.b=c.b};var p=c.M.prototype;p.I=function(){this.P||(this.O=new Image,this.O.Tn=this.Vm,this.b.jn(this.O,this.hk),this.S=this.pattern=null)};p.Wh=function(){this.P||(this.S=null)};p.Jj=function(){if(!this.P&&this.k.length){this.S||(this.S=this.b.H.Rf(this.O,!0,this.b.Ka,this.$g));var c,g;c=0;for(g=this.k.length;c<g;c++)this.k[c].S=this.S}};p.qj=function(){this.P||this.S||!this.b.H||(this.S=this.b.H.Rf(this.O,!0,this.b.Ka,this.$g))};p.jk=
function(){this.P||this.k.length||!this.S||(this.b.H.deleteTexture(this.S),this.S=null)};p.Oj=function(c){c.drawImage(this.O,0,0)};c.K=function(c){this.type=c;this.b=c.b};p=c.K.prototype;p.I=function(){this.visible=0===this.A[0];this.Wf=new sa(0,0,0,0);this.hs=!1;this.O=this.type.O;this.b.H?(this.type.qj(),this.S=this.type.S):(this.type.pattern||(this.type.pattern=this.b.Va.createPattern(this.type.O,"repeat")),this.pattern=this.type.pattern)};p.Jd=function(){this.hs=!1;this.O=this.type.O};p.Td=function(){this.b.H&&
this.hs&&this.S&&(this.b.H.deleteTexture(this.S),this.S=null)};p.Pc=function(c){c.globalAlpha=this.opacity;c.save();c.fillStyle=this.pattern;var g=this.x,h=this.y;this.b.Gc&&(g=Math.round(g),h=Math.round(h));var l=-(this.rc*this.width),b=-(this.tc*this.height),a=l%this.O.width,d=b%this.O.height;0>a&&(a+=this.O.width);0>d&&(d+=this.O.height);c.translate(g,h);c.rotate(this.q);c.translate(a,d);c.fillRect(l-a,b-d,this.width,this.height);c.restore()};p.jg=function(c){this.Tb(c)};p.Tb=function(c){c.xc(this.S);
c.df(this.opacity);var g=this.Wf;g.right=this.width/this.O.width;g.bottom=this.height/this.O.height;var h=this.Mb;if(this.b.Gc){var l=Math.round(this.x)-this.x,b=Math.round(this.y)-this.y;c.Wd(h.Sa+l,h.Ta+b,h.pb+l,h.qb+b,h.jb+l,h.kb+b,h.hb+l,h.ib+b,g)}else c.Wd(h.Sa,h.Ta,h.pb,h.qb,h.jb,h.kb,h.hb,h.ib,g)};c.n=new function(){};c.G=new function(){};c.na=new function(){}})();function yc(c){this.b=c}
(function(){function c(a){d=a.x;r=a.y;e=a.z}function p(a,b,c,d){var e;e=f.length?f.pop():new n;e.init(a,b,c,d);return e}function n(){this.dk=this.id=this.Mg=this.Lg=this.y=this.x=this.Sm=this.Rm=this.ep=this.time=this.kq=0;this.ik=this.an=!1}function g(){}function h(){}var l=yc.prototype;l.M=function(a){this.xa=a;this.b=a.b};l.M.prototype.I=function(){};l.K=function(a){this.type=a;this.b=a.b;this.touches=[];this.tp=!1};var b=l.K.prototype,a={left:0,top:0};b.Ki=function(a){var b,c;b=0;for(c=this.touches.length;b<
c;b++)if(this.touches[b].id===a)return b;return-1};var d=0,r=0,e=0,f=[];n.prototype.init=function(a,b,c,d){var e=Wa();this.kq=this.ep=this.time=e;this.Rm=a;this.Sm=b;this.x=a;this.y=b;this.Lg=a;this.Mg=b;this.pressure=this.height=this.width=0;this.id=c;this.dk=d;this.ik=this.an=!1};n.prototype.update=function(a,b,c,d,e,f){this.ep=this.time;this.time=a;this.Lg=this.x;this.Mg=this.y;this.x=b;this.y=c;this.width=d;this.height=e;this.pressure=f;!this.ik&&15<=Pa(this.Rm,this.Sm,this.x,this.y)&&(this.ik=
!0)};n.prototype.yz=function(a,b){!this.an&&500<=Wa()-this.kq&&!this.ik&&15>Pa(this.Rm,this.Sm,this.x,this.y)&&(this.an=!0,a.ve=this.dk,a.li=this.id,a.xh=b,a.b.trigger(yc.prototype.n.Iv,a),a.Be=this.x,a.Ce=this.y,a.b.trigger(yc.prototype.n.Jv,a),a.xh=0)};var k=-1E3,m=-1E3,R=-1E4;n.prototype.dt=function(a,b){if(!this.an){var c=Wa();333>=c-this.kq&&!this.ik&&15>Pa(this.Rm,this.Sm,this.x,this.y)&&(a.ve=this.dk,a.li=this.id,a.xh=b,666>=c-R&&25>Pa(k,m,this.x,this.y)?(a.b.trigger(yc.prototype.n.Ev,a),a.Be=
this.x,a.Ce=this.y,a.b.trigger(yc.prototype.n.Jq,a),m=k=-1E3,R=-1E4):(a.b.trigger(yc.prototype.n.Uv,a),a.Be=this.x,a.Ce=this.y,a.b.trigger(yc.prototype.n.$q,a),k=this.x,m=this.y,R=c),a.xh=0)}};b.I=function(){this.pz=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.xh=this.li=this.ve=this.Ce=this.Be=this.jr=this.ir=this.hr=this.Gw=this.Fw=this.Ew=this.gm=this.fm=this.em=0;this.FA=0!==this.A[0];var a=0<this.b.pc?document:this.b.canvas,b=document;this.b.hc?b=a=window.Canvas:this.b.cd&&
(b=a=window);var d=this;"undefined"!==typeof PointerEvent?(a.addEventListener("pointerdown",function(a){d.yt(a)},!1),a.addEventListener("pointermove",function(a){d.xt(a)},!1),b.addEventListener("pointerup",function(a){d.$l(a,!1)},!1),b.addEventListener("pointercancel",function(a){d.$l(a,!0)},!1),this.b.canvas&&(this.b.canvas.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),document.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),this.b.canvas.addEventListener("gesturehold",
function(a){a.preventDefault()},!1),document.addEventListener("gesturehold",function(a){a.preventDefault()},!1))):window.navigator.msPointerEnabled?(a.addEventListener("MSPointerDown",function(a){d.yt(a)},!1),a.addEventListener("MSPointerMove",function(a){d.xt(a)},!1),b.addEventListener("MSPointerUp",function(a){d.$l(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){d.$l(a,!0)},!1),this.b.canvas&&(this.b.canvas.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),document.addEventListener("MSGestureHold",
function(a){a.preventDefault()},!1))):(a.addEventListener("touchstart",function(a){d.Bt(a)},!1),a.addEventListener("touchmove",function(a){d.At(a)},!1),b.addEventListener("touchend",function(a){d.Bp(a,!1)},!1),b.addEventListener("touchcancel",function(a){d.Bp(a,!0)},!1));if(this.pz){var e=function(a){a=a.reading;d.hr=a.accelerationX;d.ir=a.accelerationY;d.jr=a.accelerationZ},f=function(a){a=a.reading;d.em=a.yawDegrees;d.fm=a.pitchDegrees;d.gm=a.rollDegrees},h=Windows.Devices.Sensors.Accelerometer.getDefault();
h&&(h.reportInterval=Math.max(h.minimumReportInterval,16),h.addEventListener("readingchanged",e));var g=Windows.Devices.Sensors.Inclinometer.getDefault();g&&(g.reportInterval=Math.max(g.minimumReportInterval,16),g.addEventListener("readingchanged",f));document.addEventListener("visibilitychange",function(){document.hidden||document.msHidden?(h&&h.removeEventListener("readingchanged",e),g&&g.removeEventListener("readingchanged",f)):(h&&h.addEventListener("readingchanged",e),g&&g.addEventListener("readingchanged",
f))},!1)}else window.addEventListener("deviceorientation",function(a){d.em=a.alpha||0;d.fm=a.beta||0;d.gm=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(d.Ew=a.accelerationIncludingGravity.x||0,d.Fw=a.accelerationIncludingGravity.y||0,d.Gw=a.accelerationIncludingGravity.z||0);a.acceleration&&(d.hr=a.acceleration.x||0,d.ir=a.acceleration.y||0,d.jr=a.acceleration.z||0)},!1);this.FA&&!this.b.Ja&&(jQuery(document).mousemove(function(a){d.zp(a)}),jQuery(document).mousedown(function(a){d.yp(a)}),
jQuery(document).mouseup(function(a){d.Ap(a)}));!this.b.Gh&&this.b.Qc&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(c,null,{frequency:40});this.b.xA(this)};b.xt=function(b){if(b.pointerType!==b.MSPOINTER_TYPE_MOUSE&&"mouse"!==b.pointerType){b.preventDefault&&b.preventDefault();var c=this.Ki(b.pointerId),d=Wa();if(0<=c){var e=this.b.Ja?a:jQuery(this.b.canvas).offset(),c=this.touches[c];2>d-c.time||c.update(d,b.pageX-e.left,b.pageY-e.top,
b.width||0,b.height||0,b.pressure||0)}}};b.yt=function(b){if(b.pointerType!==b.MSPOINTER_TYPE_MOUSE&&"mouse"!==b.pointerType){b.preventDefault&&nb(b)&&b.preventDefault();var c=this.b.Ja?a:jQuery(this.b.canvas).offset(),d=b.pageX-c.left,c=b.pageY-c.top;Wa();this.ve=this.touches.length;this.li=b.pointerId;this.touches.push(p(d,c,b.pointerId,this.ve));this.b.mb=!0;this.b.trigger(yc.prototype.n.Vq,this);this.b.trigger(yc.prototype.n.cr,this);this.Be=d;this.Ce=c;this.b.trigger(yc.prototype.n.vn,this);
this.b.mb=!1}};b.$l=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&nb(a)&&a.preventDefault();var c=this.Ki(a.pointerId);this.ve=0<=c?this.touches[c].dk:-1;this.li=0<=c?this.touches[c].id:-1;this.b.mb=!0;this.b.trigger(yc.prototype.n.Uq,this);this.b.trigger(yc.prototype.n.br,this);0<=c&&(b||this.touches[c].dt(this,c),100>f.length&&f.push(this.touches[c]),this.touches.splice(c,1));this.b.mb=!1}};b.At=function(b){b.preventDefault&&b.preventDefault();
var c=Wa(),d,e,f,h;d=0;for(e=b.changedTouches.length;d<e;d++)if(f=b.changedTouches[d],h=this.Ki(f.identifier),0<=h){var g=this.b.Ja?a:jQuery(this.b.canvas).offset();h=this.touches[h];2>c-h.time||h.update(c,f.pageX-g.left,f.pageY-g.top,2*(f.TB||f.ZB||f.MB||f.PB||0),2*(f.UB||f.$B||f.NB||f.QB||0),f.GB||f.YB||f.LB||f.OB||0)}};b.Bt=function(b){b.preventDefault&&nb(b)&&b.preventDefault();var c=this.b.Ja?a:jQuery(this.b.canvas).offset();Wa();this.b.mb=!0;var d,e,f,h;d=0;for(e=b.changedTouches.length;d<e;d++)if(f=
b.changedTouches[d],h=this.Ki(f.identifier),-1===h){h=f.pageX-c.left;var g=f.pageY-c.top;this.ve=this.touches.length;this.li=f.identifier;this.touches.push(p(h,g,f.identifier,this.ve));this.b.trigger(yc.prototype.n.Vq,this);this.b.trigger(yc.prototype.n.cr,this);this.Be=h;this.Ce=g;this.b.trigger(yc.prototype.n.vn,this)}this.b.mb=!1};b.Bp=function(a,b){a.preventDefault&&nb(a)&&a.preventDefault();this.b.mb=!0;var c,d,e;c=0;for(d=a.changedTouches.length;c<d;c++)e=a.changedTouches[c],e=this.Ki(e.identifier),
0<=e&&(this.ve=this.touches[e].dk,this.li=this.touches[e].id,this.b.trigger(yc.prototype.n.Uq,this),this.b.trigger(yc.prototype.n.br,this),b||this.touches[e].dt(this,e),100>f.length&&f.push(this.touches[e]),this.touches.splice(e,1));this.b.mb=!1};b.ih=function(){return this.b.Qc&&0===this.em&&0!==e?90*e:this.em};b.JB=function(){return this.b.Qc&&0===this.fm&&0!==r?90*r:this.fm};b.KB=function(){return this.b.Qc&&0===this.gm&&0!==d?90*d:this.gm};b.yp=function(a){this.Bt({changedTouches:[{pageX:a.pageX,
pageY:a.pageY,identifier:0}]});this.tp=!0};b.zp=function(a){this.tp&&this.At({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};b.Ap=function(a){a.preventDefault&&this.b.ul&&!this.b.Pe&&a.preventDefault();this.b.ul=!0;this.Bp({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.tp=!1};b.ah=function(){var a,b,c,d=Wa();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=d-50&&(c.ep=d),c.yz(this,a)};g.prototype.cr=function(){return!0};g.prototype.br=function(){return!0};
g.prototype.vn=function(a){return a?this.b.gi(a,this.Be,this.Ce,!1):!1};var F=[];g.prototype.uv=function(a){if(!a)return!1;var b=a.ea(),c=b.qc(),d,e,f,h,g,l;f=0;for(h=c.length;f<h;f++){var k=c[f];k.aa();g=0;for(l=this.touches.length;g<l;g++)if(e=this.touches[g],d=k.u.lb(e.x,e.y,!0),e=k.u.lb(e.x,e.y,!1),k.Cb(d,e)){F.push(k);break}}return F.length?(b.ka=!1,Aa(b.k,F),a.qd(),O(F),!0):!1};g.prototype.Vq=function(a){a=Math.floor(a);return a===this.ve};g.prototype.Uq=function(a){a=Math.floor(a);return a===
this.ve};g.prototype.Iv=function(){return!0};g.prototype.Uv=function(){return!0};g.prototype.Ev=function(){return!0};g.prototype.Jv=function(a){return a?this.b.gi(a,this.Be,this.Ce,!1):!1};g.prototype.$q=function(a){return a?this.b.gi(a,this.Be,this.Ce,!1):!1};g.prototype.Jq=function(a){return a?this.b.gi(a,this.Be,this.Ce,!1):!1};l.n=new g;h.prototype.Cn=function(a,b){var c=this.xh;if(0>c||c>=this.touches.length)a.R(0);else{var d,e,f,h,g;ga(b)?(d=this.b.Je(0),e=d.scale,f=d.oc,h=d.Ec,g=d.q,d.scale=
1,d.oc=1,d.Ec=1,d.q=0,a.R(d.lb(this.touches[c].x,this.touches[c].y,!0)),d.scale=e,d.oc=f,d.Ec=h,d.q=g):(d=ha(b)?this.b.Je(b):this.b.Mi(b))?a.R(d.lb(this.touches[c].x,this.touches[c].y,!0)):a.R(0)}};h.prototype.Dn=function(a,b){var c=this.xh;if(0>c||c>=this.touches.length)a.R(0);else{var d,e,f,h,g;ga(b)?(d=this.b.Je(0),e=d.scale,f=d.oc,h=d.Fc,g=d.q,d.scale=1,d.oc=1,d.Fc=1,d.q=0,a.R(d.lb(this.touches[c].x,this.touches[c].y,!1)),d.scale=e,d.oc=f,d.Fc=h,d.q=g):(d=ha(b)?this.b.Je(b):this.b.Mi(b))?a.R(d.lb(this.touches[c].x,
this.touches[c].y,!1)):a.R(0)}};l.na=new h})();function zc(c){this.b=c}
(function(){function c(){}var p=zc.prototype;p.M=function(c){this.behavior=c;this.b=c.b};p.M.prototype.I=function(){};p.K=function(c,h){this.type=c;this.behavior=c.behavior;this.j=h;this.b=c.b};var n=p.K.prototype;n.I=function(){this.or=this.A[0];this.pr=this.A[1];this.Mw=this.A[2];this.Lw=this.A[3];this.j.aa();this.ln=this.j.Y.left;this.rn=this.j.Y.top;this.nn=this.b.Za-this.j.Y.left;this.pn=this.b.Ya-this.j.Y.top;this.ym=this.b.Za-this.j.Y.right;this.Ik=this.b.Ya-this.j.Y.bottom;this.enabled=0!==
this.A[4]};n.Na=function(){return{xleft:this.ln,ytop:this.rn,xright:this.nn,ybottom:this.pn,rdiff:this.ym,bdiff:this.Ik,enabled:this.enabled}};n.Ua=function(c){this.ln=c.xleft;this.rn=c.ytop;this.nn=c.xright;this.pn=c.ybottom;this.ym=c.rdiff;this.Ik=c.bdiff;this.enabled=c.enabled};n.ya=function(){if(this.enabled){var c,h=this.j.u,l=this.j,b=this.j.Y;0===this.or?(l.aa(),c=h.za+this.ln-b.left,0!==c&&(l.x+=c,l.F())):1===this.or&&(l.aa(),c=h.Da-this.nn-b.left,0!==c&&(l.x+=c,l.F()));0===this.pr?(l.aa(),
c=h.Aa+this.rn-b.top,0!==c&&(l.y+=c,l.F())):1===this.pr&&(l.aa(),c=h.Ca-this.pn-b.top,0!==c&&(l.y+=c,l.F()));1===this.Mw&&(l.aa(),c=h.Da-this.ym-b.right,0!==c&&(l.width+=c,0>l.width&&(l.width=0),l.F()));1===this.Lw&&(l.aa(),c=h.Ca-this.Ik-b.bottom,0!==c&&(l.height+=c,0>l.height&&(l.height=0),l.F()))}};p.n=new function(){};c.prototype.wf=function(c){this.enabled&&0===c?this.enabled=!1:this.enabled||0===c||(this.j.aa(),this.ln=this.j.Y.left,this.rn=this.j.Y.top,this.nn=this.b.Za-this.j.Y.left,this.pn=
this.b.Ya-this.j.Y.top,this.ym=this.b.Za-this.j.Y.right,this.Ik=this.b.Ya-this.j.Y.bottom,this.enabled=!0)};p.G=new c;p.na=new function(){}})();function Ac(c){this.b=c}
(function(){function c(){}var p=Ac.prototype;p.M=function(c){this.behavior=c;this.b=c.b};p.M.prototype.I=function(){};p.K=function(c,h){this.type=c;this.behavior=c.behavior;this.j=h;this.b=c.b};var n=p.K.prototype;n.I=function(){var c=this.A[0];this.Ga=this.A[1];this.sb=this.A[2];this.Qw=0!==this.A[3];this.$p=0!==this.A[4];this.C=Math.cos(this.j.q)*c;this.D=Math.sin(this.j.q)*c;this.Lg=this.j.x;this.Mg=this.j.y;this.ed=this.j.q;this.Zm=0;this.enabled=0!==this.A[5]};n.Na=function(){return{acc:this.Ga,
g:this.sb,dx:this.C,dy:this.D,lx:this.Lg,ly:this.Mg,lka:this.ed,t:this.Zm,e:this.enabled}};n.Ua=function(c){this.Ga=c.acc;this.sb=c.g;this.C=c.dx;this.D=c.dy;this.Lg=c.lx;this.Mg=c.ly;this.ed=c.lka;this.Zm=c.t;this.enabled=c.e};n.ya=function(){if(this.enabled){var c=this.b.Qd(this.j),h,l;this.j.q!==this.ed&&(this.$p&&(h=Pa(0,0,this.C,this.D),this.C=Math.cos(this.j.q)*h,this.D=Math.sin(this.j.q)*h),this.ed=this.j.q);0!==this.Ga&&(h=Pa(0,0,this.C,this.D),l=0===this.C&&0===this.D?this.j.q:Ka(0,0,this.C,
this.D),h+=this.Ga*c,0>h&&(h=0),this.C=Math.cos(l)*h,this.D=Math.sin(l)*h);0!==this.sb&&(this.D+=this.sb*c);this.Lg=this.j.x;this.Mg=this.j.y;if(0!==this.C||0!==this.D)if(this.j.x+=this.C*c,this.j.y+=this.D*c,this.Zm+=Pa(0,0,this.C*c,this.D*c),this.$p&&(this.j.q=Ka(0,0,this.C,this.D),this.j.F(),this.ed=this.j.q),this.j.F(),this.Qw&&(h=this.b.Ra(this.j)))this.b.oe(this.j,h),h=Pa(0,0,this.C,this.D),l=this.b.Tw(this.j,this.Lg,this.Mg),this.C=Math.cos(l)*h,this.D=Math.sin(l)*h,this.j.x+=this.C*c,this.j.y+=
this.D*c,this.j.F(),this.$p&&(this.ed=this.j.q=l,this.j.F()),this.b.hd(this.j,this.C/h,this.D/h,Math.max(2.5*h*c,30))||this.b.Lp(this.j,100)}};p.n=new function(){};c.prototype.wn=function(c){this.sb=c};c.prototype.wf=function(c){this.enabled=1===c};p.G=new c;p.na=new function(){}})();function Bc(c){this.b=c}
(function(){function c(){}function p(){}var n=Bc.prototype;n.M=function(c){this.behavior=c;this.b=c.b};n.M.prototype.I=function(){};n.K=function(c,g){this.type=c;this.behavior=c.behavior;this.j=g;this.b=c.b;this.hf=this.gf=this.Km=this.Lm=this.Le=this.Yd=this.Sd=this.Fi=this.kk=!1;this.dp=this.cp=this.bp=this.fp=-1;this.D=this.C=0};var g=n.K.prototype;g.I=function(){this.Ad=this.A[0];this.Ga=this.A[1];this.ec=this.A[2];this.ao=this.A[3];this.Gn=this.A[4];this.Zn=1===this.A[5];this.enabled=0!==this.A[6];
this.Zn&&!this.b.Ja&&(jQuery(document).keydown(function(c){return function(g){c.Gj(g)}}(this)),jQuery(document).keyup(function(c){return function(g){c.Hj(g)}}(this)))};g.Na=function(){return{dx:this.C,dy:this.D,enabled:this.enabled,maxspeed:this.Ad,acc:this.Ga,dec:this.ec,ignoreInput:this.Le}};g.Ua=function(c){this.C=c.dx;this.D=c.dy;this.enabled=c.enabled;this.Ad=c.maxspeed;this.Ga=c.acc;this.ec=c.dec;this.Le=c.ignoreInput;this.hf=this.gf=this.Km=this.Lm=this.Yd=this.Sd=this.Fi=this.kk=!1;this.dp=
this.cp=this.bp=this.fp=-1};g.Gj=function(c){var g=this.b.ld;switch(c.which){case 37:c.preventDefault();this.cp<g&&(this.Sd=!0);break;case 38:c.preventDefault();this.fp<g&&(this.kk=!0);break;case 39:c.preventDefault();this.dp<g&&(this.Yd=!0);break;case 40:c.preventDefault(),this.bp<g&&(this.Fi=!0)}};g.Hj=function(c){var g=this.b.ld;switch(c.which){case 37:c.preventDefault();this.Sd=!1;this.cp=g;break;case 38:c.preventDefault();this.kk=!1;this.fp=g;break;case 39:c.preventDefault();this.Yd=!1;this.dp=
g;break;case 40:c.preventDefault(),this.Fi=!1,this.bp=g}};g.Xe=function(){this.Yd=this.Sd=this.Fi=this.kk=!1};g.ya=function(){var c=this.b.Qd(this.j),g=this.Sd||this.gf,b=this.Yd||this.hf,a=this.kk||this.Lm,d=this.Fi||this.Km;this.Km=this.Lm=this.hf=this.gf=!1;if(this.enabled){var n=this.b.Ra(this.j);if(n&&(this.b.oe(this.j,n),!this.b.Lp(this.j)))return;this.Le&&(d=a=b=g=!1);0===this.ao?b=g=!1:1===this.ao&&(d=a=!1);2===this.ao&&(a||d)&&(b=g=!1);g==b&&(0>this.C?(this.C+=this.ec*c,0<this.C&&(this.C=
0)):0<this.C&&(this.C-=this.ec*c,0>this.C&&(this.C=0)));a==d&&(0>this.D?(this.D+=this.ec*c,0<this.D&&(this.D=0)):0<this.D&&(this.D-=this.ec*c,0>this.D&&(this.D=0)));g&&!b&&(this.C=0<this.C?this.C-(this.Ga+this.ec)*c:this.C-this.Ga*c);b&&!g&&(this.C=0>this.C?this.C+(this.Ga+this.ec)*c:this.C+this.Ga*c);a&&!d&&(this.D=0<this.D?this.D-(this.Ga+this.ec)*c:this.D-this.Ga*c);d&&!a&&(this.D=0>this.D?this.D+(this.Ga+this.ec)*c:this.D+this.Ga*c);if(0!==this.C||0!==this.D){Math.sqrt(this.C*this.C+this.D*this.D)>
this.Ad&&(n=Math.atan2(this.D,this.C),this.C=this.Ad*Math.cos(n),this.D=this.Ad*Math.sin(n));b=this.j.x;a=this.j.y;g=this.j.q;this.j.x+=this.C*c;this.j.F();if(n=this.b.Ra(this.j))this.j.x=b,this.C=0,this.j.F(),this.b.oe(this.j,n);this.j.y+=this.D*c;this.j.F();if(n=this.b.Ra(this.j))this.j.y=a,this.D=0,this.j.F(),this.b.oe(this.j,n);c=lb(this.C);n=lb(this.D);0===c&&0===n||!this.j.type.xa.rz||(1===this.Gn?this.j.q=Ja(90*Math.round(Fa(Math.atan2(n,c))/90)):2===this.Gn?this.j.q=Ja(45*Math.round(Fa(Math.atan2(n,
c))/45)):3===this.Gn&&(this.j.q=Math.atan2(n,c)));this.j.F();this.j.q!=g&&(n=this.b.Ra(this.j))&&(this.j.q=g,this.j.F(),this.b.oe(this.j,n))}}};c.prototype.tn=function(){return 0!==this.C||0!==this.D};n.n=new c;p.prototype.dr=function(c){this.Le=c};p.prototype.yn=function(c){switch(c){case 0:this.gf=!0;break;case 1:this.hf=!0;break;case 2:this.Lm=!0;break;case 3:this.Km=!0}};p.prototype.wf=function(c){this.enabled=1===c};p.prototype.xn=function(c){this.D=c};n.G=new p;n.na=new function(){}})();
function Cc(c){this.b=c}
(function(){function c(){}function p(){}var n=Cc.prototype;n.M=function(c){this.behavior=c;this.b=c.b};n.M.prototype.I=function(){};n.K=function(c,g){this.type=c;this.behavior=c.behavior;this.j=g;this.b=c.b};var g=n.K.prototype;g.I=function(){this.kr=1===this.A[0];this.Ii=this.A[1];this.qk=this.A[2];this.bl=this.A[3];this.bx=this.A[4];this.Lb=this.kr?0:3;this.ic?this.Ed.reset():this.Ed=new $a;this.Qg=this.j.opacity?this.j.opacity:1;this.kr&&(0===this.Ii?(this.Lb=1,0===this.qk&&(this.Lb=2)):(this.j.opacity=
0,this.b.ja=!0))};g.Na=function(){return{fit:this.Ii,wt:this.qk,fot:this.bl,s:this.Lb,st:this.Ed.T,mo:this.Qg}};g.Ua=function(c){this.Ii=c.fit;this.qk=c.wt;this.bl=c.fot;this.Lb=c.s;this.Ed.reset();this.Ed.T=c.st;this.Qg=c.mo};g.ya=function(){this.Ed.add(this.b.Qd(this.j));0===this.Lb&&(this.j.opacity=this.Ed.T/this.Ii*this.Qg,this.b.ja=!0,this.j.opacity>=this.Qg&&(this.j.opacity=this.Qg,this.Lb=1,this.Ed.reset(),this.b.trigger(Cc.prototype.n.Fv,this.j)));1===this.Lb&&this.Ed.T>=this.qk&&(this.Lb=
2,this.Ed.reset(),this.b.trigger(Cc.prototype.n.Xv,this.j));2===this.Lb&&0!==this.bl&&(this.j.opacity=this.Qg-this.Ed.T/this.bl*this.Qg,this.b.ja=!0,0>this.j.opacity&&(this.j.opacity=0,this.Lb=3,this.Ed.reset(),this.b.trigger(Cc.prototype.n.Gv,this.j),1===this.bx&&this.b.we(this.j)))};g.xx=function(){this.Lb=0;this.Ed.reset();0===this.Ii?(this.Lb=1,0===this.qk&&(this.Lb=2)):(this.j.opacity=0,this.b.ja=!0)};c.prototype.Gv=function(){return!0};c.prototype.Fv=function(){return!0};c.prototype.Xv=function(){return!0};
n.n=new c;p.prototype.dw=function(){this.xx()};n.G=new p;n.na=new function(){}})();function Ec(c){this.b=c}
(function(){function c(){}function p(){}var n=Ec.prototype;n.M=function(c){this.behavior=c;this.b=c.b};n.M.prototype.I=function(){};n.K=function(c,g){this.type=c;this.behavior=c.behavior;this.j=g;this.b=c.b};var g=n.K.prototype;g.I=function(){this.$d=this.re=this.Lb=this.Zl=this.cm=0};g.Na=function(){return{ontime:this.cm,offtime:this.Zl,stage:this.Lb,stagetimeleft:this.re,timeleft:this.$d}};g.Ua=function(c){this.cm=c.ontime;this.Zl=c.offtime;this.Lb=c.stage;this.re=c.stagetimeleft;this.$d=c.timeleft;
null===this.$d&&(this.$d=Infinity)};g.ya=function(){if(!(0>=this.$d)){var c=this.b.Qd(this.j);this.$d-=c;0>=this.$d?(this.$d=0,this.j.visible=!0,this.b.ja=!0,this.b.trigger(Ec.prototype.n.Hv,this.j)):(this.re-=c,0>=this.re&&(0===this.Lb?(this.j.visible=!1,this.Lb=1,this.re+=this.Zl):(this.j.visible=!0,this.Lb=0,this.re+=this.cm),this.b.ja=!0))}};c.prototype.nv=function(){return 0<this.$d};c.prototype.Hv=function(){return!0};n.n=new c;p.prototype.av=function(c,g,b){this.cm=c;this.Zl=g;this.Lb=1;this.re=
g;this.$d=b;this.j.visible=!1;this.b.ja=!0};n.G=new p;n.na=new function(){}})();function Fc(c){this.b=c}
(function(){function c(){}var p=Fc.prototype;p.M=function(a){this.behavior=a;this.b=a.b};var n=p.M.prototype;n.I=function(){this.Tg=[]};n.ry=function(a){var b,c,e;b=0;for(c=a.V.length;b<c;++b)if(e=a.V[b],e instanceof Fc.prototype.K&&e.type===this)return e;return null};p.K=function(a,b){this.type=a;this.behavior=a.behavior;this.j=b;this.b=a.b};n=p.K.prototype;n.I=function(){this.Cz=this.A[0];this.Op=this.A[1];this.Rn=Q(this.A[2]);this.Fu=0!==this.A[3]};n.Td=function(){};n.Na=function(){var a={r:this.Op,
c:this.Rn,t:[]},b,c;b=0;for(c=this.type.Tg.length;b<c;b++)a.t.push(this.type.Tg[b].ra);return a};n.Ua=function(a){this.Op=a.r;this.Rn=a.c;O(this.type.Tg);var b,c,e;b=0;for(c=a.t.length;b<c;b++)(e=this.b.Ni(a.t[b]))&&this.type.Tg.push(e)};n.ya=function(){};var g=[],h=new sa(0,0,0,0);n.cz=function(a,b){var c=this.j.x,e=this.j.y,f=this.j.q;0>this.j.width&&(f+=Math.PI);if(Pa(c,e,a,b)>this.Op||La(f,Ka(c,e,a,b))>this.Rn/2)return!1;var l,m;h.set(c,e,a,b);h.normalize();if(0===this.Cz)for(this.Fu?this.b.cs(this.j.u,
h,g):(f=this.b.hq)&&Ba(g,f.Bj.Hd()),f=0,l=g.length;f<l;++f){if(m=g[f],m.N.solidEnabled&&m!==this.j&&this.b.qu(c,e,a,b,m))return O(g),!1}else{if(this.Fu)this.b.Bo(this.j.u,this.type.Tg,h,g);else for(f=0,l=this.type.Tg.length;f<l;++f)Ba(g,this.type.Tg[f].k);f=0;for(l=g.length;f<l;++f)if(m=g[f],m!==this.j&&this.b.qu(c,e,a,b,m))return O(g),!1}O(g);return!0};var l=new ca,b=new ca;c.prototype.gv=function(a){if(!a)return!1;var c,h,e,f,g,m,n,p,B=this.b.By().ea();a=a.ea();var q=B.qc(),u=a.qc();B.ka&&O(B.da);
a.ka&&O(a.da);var S=this.b.Lf().Bg;c=0;for(e=q.length;c<e;++c){g=q[c];p=!1;m=this.ry(g);h=0;for(f=u.length;h<f;++h)n=u[h],g!==n&&Sa(m.cz(n.x,n.y),S)&&(p=!0,b.add(n));p&&l.add(g)}c=l.Hd();h=b.Hd();B.ka=!1;a.ka=!1;Aa(B.k,c);Aa(a.k,h);l.clear();b.clear();return B.yl()};p.n=new c;p.G=new function(){};p.na=new function(){}})();function Gc(c){this.b=c}
(function(){function c(){}var p=Gc.prototype;p.M=function(c){this.behavior=c;this.b=c.b};p.M.prototype.I=function(){};p.K=function(c,h){this.type=c;this.behavior=c.behavior;this.j=h;this.b=c.b};var n=p.K.prototype;n.I=function(){this.Kb=null;this.mm=-1;this.mode=this.ed=this.Wm=this.Th=this.Ze=this.Mj=0;var c=this;this.ic||(this.Aj=function(h){c.Fj(h)});this.b.zk(this.Aj)};n.Na=function(){return{uid:this.Kb?this.Kb.uid:-1,pa:this.Mj,pd:this.Ze,msa:this.Th,tsa:this.Wm,lka:this.ed,m:this.mode}};n.Ua=
function(c){this.mm=c.uid;this.Mj=c.pa;this.Ze=c.pd;this.Th=c.msa;this.Wm=c.tsa;this.ed=c.lka;this.mode=c.m};n.Jd=function(){-1===this.mm?this.Kb=null:this.Kb=this.b.tg(this.mm);this.mm=-1};n.Fj=function(c){this.Kb==c&&(this.Kb=null)};n.Td=function(){this.Kb=null;this.b.Vt(this.Aj)};n.ya=function(){};n.ah=function(){if(this.Kb){this.ed!==this.j.q&&(this.Th=Ha(this.Th+(this.j.q-this.ed)));var c=this.j.x,h=this.j.y;if(3===this.mode||4===this.mode){var l=Pa(this.j.x,this.j.y,this.Kb.x,this.Kb.y);if(l>
this.Ze||4===this.mode&&l<this.Ze)h=Ka(this.Kb.x,this.Kb.y,this.j.x,this.j.y),c=this.Kb.x+Math.cos(h)*this.Ze,h=this.Kb.y+Math.sin(h)*this.Ze}else c=this.Kb.x+Math.cos(this.Kb.q+this.Mj)*this.Ze,h=this.Kb.y+Math.sin(this.Kb.q+this.Mj)*this.Ze;this.ed=l=Ha(this.Th+(this.Kb.q-this.Wm));0!==this.mode&&1!==this.mode&&3!==this.mode&&4!==this.mode||this.j.x===c&&this.j.y===h||(this.j.x=c,this.j.y=h,this.j.F());0!==this.mode&&2!==this.mode||this.j.q===l||(this.j.q=l,this.j.F())}};p.n=new function(){};c.prototype.$v=
function(c,h){if(c){var l=c.$r(this.j);l&&(this.Kb=l,this.Mj=Ka(l.x,l.y,this.j.x,this.j.y)-l.q,this.Ze=Pa(l.x,l.y,this.j.x,this.j.y),this.ed=this.Th=this.j.q,this.Wm=l.q,this.mode=h)}};p.G=new c;p.na=new function(){}})();function Hc(c){this.b=c}
(function(){function c(){}function p(){}var n=Hc.prototype;n.M=function(c){this.behavior=c;this.b=c.b};n.M.prototype.I=function(){};n.K=function(c,g){this.type=c;this.behavior=c.behavior;this.j=g;this.b=c.b;this.bk=this.hf=this.gf=this.Le=this.xi=this.Ei=this.Hh=this.Ih=this.Yd=this.Sd=!1;this.Wb=null;this.ip=-1;this.Fg=this.Eg=0;this.kl=!1;this.rg=this.Ld=0;this.il=!0;this.D=this.C=0};var g=n.K.prototype;g.uq=function(){this.bb=Math.cos(this.wh);this.cb=Math.sin(this.wh);this.$e=Math.cos(this.wh-
Math.PI/2);this.bf=Math.sin(this.wh-Math.PI/2);this.bb=lb(this.bb);this.cb=lb(this.cb);this.$e=lb(this.$e);this.bf=lb(this.bf);this.ol=this.sb;0>this.sb&&(this.bb*=-1,this.cb*=-1,this.sb=Math.abs(this.sb))};g.I=function(){this.Ad=this.A[0];this.Ga=this.A[1];this.ec=this.A[2];this.ij=this.A[3];this.ol=this.sb=this.A[4];this.Ul=this.A[5];this.co=0!==this.A[6];this.Yo=this.A[7]/1E3;this.Zn=1===this.A[8];this.enabled=0!==this.A[9];this.qi=!1;this.ri=this.b.lf(this.j);this.jp=-1;this.Zg=0;this.wh=Q(90);
this.uq();var c=this;this.Zn&&!this.b.Ja&&(jQuery(document).keydown(function(g){c.Gj(g)}),jQuery(document).keyup(function(g){c.Hj(g)}));this.ic||(this.Aj=function(g){c.Fj(g)});this.b.zk(this.Aj);this.j.N.isPlatformBehavior=!0};g.Na=function(){return{ii:this.Le,lfx:this.Eg,lfy:this.Fg,lfo:this.Wb?this.Wb.uid:-1,am:this.Ld,en:this.enabled,fall:this.rg,ft:this.il,dx:this.C,dy:this.D,ms:this.Ad,acc:this.Ga,dec:this.ec,js:this.ij,g:this.sb,g1:this.ol,mf:this.Ul,wof:this.qi,woj:this.ri?this.ri.uid:-1,ga:this.wh,
edj:this.co,cdj:this.xi,dj:this.Ei,sus:this.Yo}};g.Ua=function(c){this.Le=c.ii;this.Eg=c.lfx;this.Fg=c.lfy;this.ip=c.lfo;this.Ld=c.am;this.enabled=c.en;this.rg=c.fall;this.il=c.ft;this.C=c.dx;this.D=c.dy;this.Ad=c.ms;this.Ga=c.acc;this.ec=c.dec;this.ij=c.js;this.sb=c.g;this.ol=c.g1;this.Ul=c.mf;this.qi=c.wof;this.jp=c.woj;this.wh=c.ga;this.co=c.edj;this.xi=c.cdj;this.Ei=c.dj;this.Yo=c.sus;this.bk=this.hf=this.gf=this.Hh=this.Ih=this.Yd=this.Sd=!1;this.Zg=0;this.uq()};g.Jd=function(){-1===this.ip?
this.Wb=null:this.Wb=this.b.tg(this.ip);-1===this.jp?this.ri=null:this.ri=this.b.tg(this.jp)};g.Fj=function(c){this.Wb==c&&(this.Wb=null)};g.Td=function(){this.Wb=null;this.b.Vt(this.Aj)};g.Gj=function(c){switch(c.which){case 38:c.preventDefault();this.Ih=!0;break;case 37:c.preventDefault();this.Sd=!0;break;case 39:c.preventDefault(),this.Yd=!0}};g.Hj=function(c){switch(c.which){case 38:c.preventDefault();this.Hh=this.Ih=!1;break;case 37:c.preventDefault();this.Sd=!1;break;case 39:c.preventDefault(),
this.Yd=!1}};g.Xe=function(){this.Ih=this.Yd=this.Sd=!1};g.ih=function(){return 0>this.sb?-1:1};g.As=function(){var c=null,g=null,b,a;b=this.j.x;a=this.j.y;this.j.x+=this.bb;this.j.y+=this.cb;this.j.F();if(this.Wb&&this.b.mc(this.j,this.Wb)&&(!this.b.qq(this.Wb.type,oc)||this.Wb.N.solidEnabled))return this.j.x=b,this.j.y=a,this.j.F(),this.Wb;(c=this.b.Ra(this.j))||0!==this.rg||(g=this.b.lf(this.j,!0));this.j.x=b;this.j.y=a;this.j.F();if(c){if(this.b.mc(this.j,c))return null;this.kl=!1;return c}if(g&&
g.length){a=c=0;for(b=g.length;c<b;c++)g[a]=g[c],this.b.mc(this.j,g[c])||a++;if(1<=a)return this.kl=!0,g[0]}return null};g.ya=function(){};g.Pt=function(){var c=this.b.Qd(this.j),g,b,a,d,n,e,f,k,m;this.Ih||this.bk||(this.Hh=!1);var p=this.Sd||this.gf;a=this.Yd||this.hf;var F=(d=this.Ih||this.bk)&&!this.Hh;this.bk=this.hf=this.gf=!1;if(this.enabled){this.Le&&(F=d=a=p=!1);d||(this.Zg=0);k=this.Wb;m=!1;this.il&&((this.b.Ra(this.j)||this.b.lf(this.j))&&this.b.hd(this.j,-this.bb,-this.cb,4,!0),this.il=
!1);!k||0!==this.D||k.y===this.Fg&&k.x===this.Eg||(g=k.x-this.Eg,b=k.y-this.Fg,this.j.x+=g,this.j.y+=b,this.j.F(),this.Eg=k.x,this.Fg=k.y,m=!0,this.b.Ra(this.j)&&this.b.hd(this.j,-g,-b,2.5*Math.sqrt(g*g+b*b)));var B=this.As();if(b=this.b.Ra(this.j))if(this.j.N.inputPredicted)this.b.hd(this.j,-this.bb,-this.cb,10,!1);else if(this.b.Lp(this.j,Math.max(this.j.width,this.j.height)/2))this.b.oe(this.j,b);else return;B?(this.xi=this.Ei=!1,0<this.D&&(this.qi||(this.b.Kp(this.j,-this.bb,-this.cb,B),this.qi=
!0),this.D=0),k!=B)?(this.Wb=B,this.Eg=B.x,this.Fg=B.y,this.b.oe(this.j,B)):m&&(b=this.b.Ra(this.j))&&(this.b.oe(this.j,b),0!==g&&(0<g?this.b.hd(this.j,-this.$e,-this.bf):this.b.hd(this.j,this.$e,this.bf)),this.b.hd(this.j,-this.bb,-this.cb)):d||(this.xi=!0);if(B&&F||!B&&this.co&&d&&this.xi&&!this.Ei)k=this.j.x,m=this.j.y,this.j.x-=this.bb,this.j.y-=this.cb,this.j.F(),this.b.Ra(this.j)?F=!1:(this.Zg=this.Yo,this.b.trigger(Hc.prototype.n.Lq,this.j),this.Ld=2,this.D=-this.ij,F=!0,B?this.Hh=!0:this.Ei=
!0),this.j.x=k,this.j.y=m,this.j.F();B||(d&&0<this.Zg?(this.D=-this.ij,this.Zg-=c):(this.Wb=null,this.D+=this.sb*c,this.D>this.Ul&&(this.D=this.Ul)),F&&(this.Hh=!0));this.qi=!!B;p==a&&(0>this.C?(this.C+=this.ec*c,0<this.C&&(this.C=0)):0<this.C&&(this.C-=this.ec*c,0>this.C&&(this.C=0)));p&&!a&&(this.C=0<this.C?this.C-(this.Ga+this.ec)*c:this.C-this.Ga*c);a&&!p&&(this.C=0>this.C?this.C+(this.Ga+this.ec)*c:this.C+this.Ga*c);this.C>this.Ad?this.C=this.Ad:this.C<-this.Ad&&(this.C=-this.Ad);p=!1;0!==this.C&&
(k=this.j.x,m=this.j.y,g=this.C*c*this.$e,b=this.C*c*this.bf,this.j.x+=this.$e*(1<this.C?1:-1)-this.bb,this.j.y+=this.bf*(1<this.C?1:-1)-this.cb,this.j.F(),d=!1,n=this.b.Ra(this.j),this.j.x=k+g,this.j.y=m+b,this.j.F(),a=this.b.Ra(this.j),!a&&B&&(a=this.b.lf(this.j))&&(this.j.x=k,this.j.y=m,this.j.F(),this.b.mc(this.j,a)?(a=null,d=!1):d=!0,this.j.x=k+g,this.j.y=m+b,this.j.F()),a?(g=Math.abs(this.C*c)+2,n||!this.b.hd(this.j,-this.bb,-this.cb,g,d,a))?(this.b.oe(this.j,a),g=Math.max(Math.abs(this.C*c*
2.5),30),this.b.hd(this.j,this.$e*(0>this.C?1:-1),this.bf*(0>this.C?1:-1),g,!1)?!B||d||this.kl||(k=this.j.x,m=this.j.y,this.j.x+=this.bb,this.j.y+=this.cb,this.b.Ra(this.j)?this.b.hd(this.j,-this.bb,-this.cb,3,!1)||(this.j.x=k,this.j.y=m,this.j.F()):(this.j.x=k,this.j.y=m,this.j.F())):(this.j.x=k,this.j.y=m,this.j.F()),d||(this.C=0)):!n&&!F&&Math.abs(this.D)<Math.abs(this.ij/4)&&(this.D=0,B||(p=!0)):(k=this.As(),B&&!k?(b=Math.ceil(Math.abs(this.C*c))+2,k=this.j.x,m=this.j.y,this.j.x+=this.bb*b,this.j.y+=
this.cb*b,this.j.F(),this.b.Ra(this.j)||this.b.lf(this.j)?this.b.hd(this.j,-this.bb,-this.cb,b+2,!0):(this.j.x=k,this.j.y=m,this.j.F())):k&&0===this.D&&this.b.Kp(this.j,-this.bb,-this.cb,k)));if(0!==this.D){k=this.j.x;m=this.j.y;this.j.x+=this.D*c*this.bb;this.j.y+=this.D*c*this.cb;g=this.j.x;a=this.j.y;this.j.F();b=this.b.Ra(this.j);d=!1;if(!b&&0<this.D&&!B){if((d=0<this.rg?null:this.b.lf(this.j,!0))&&d.length){if(this.ri){this.j.x=k;this.j.y=m;this.j.F();f=n=0;for(e=d.length;n<e;n++)d[f]=d[n],this.b.mc(this.j,
d[n])||f++;d.length=f;this.j.x=g;this.j.y=a;this.j.F()}1<=d.length&&(b=d[0])}d=!!b}b&&(this.b.oe(this.j,b),this.Zg=0,g=d?Math.abs(this.D*c*2.5+10):Math.max(Math.abs(this.D*c*2.5+10),30),this.b.hd(this.j,this.bb*(0>this.D?1:-1),this.cb*(0>this.D?1:-1),g,d,b)?(this.Wb=b,this.Eg=b.x,this.Fg=b.y,(this.kl=d)&&(p=!0),this.D=0):(this.j.x=k,this.j.y=m,this.j.F(),this.qi=!0,d||(this.D=0)))}3!==this.Ld&&0<this.D&&!B&&(this.b.trigger(Hc.prototype.n.Kq,this.j),this.Ld=3);if(B||p)3===this.Ld||p||F&&0===this.D?
(this.b.trigger(Hc.prototype.n.Pq,this.j),this.Ld=0===this.C&&0===this.D?0:1):(0!==this.Ld&&0===this.C&&0===this.D&&(this.b.trigger(Hc.prototype.n.Zq,this.j),this.Ld=0),1===this.Ld||0===this.C&&0===this.D||F||(this.b.trigger(Hc.prototype.n.Tq,this.j),this.Ld=1));0<this.rg&&this.rg--;this.ri=this.b.lf(this.j)}};c.prototype.tn=function(){return 0!==this.C||0!==this.D};c.prototype.qv=function(){if(0!==this.D)return!1;var c=null,g=null,b,a;b=this.j.x;a=this.j.y;this.j.x+=this.bb;this.j.y+=this.cb;this.j.F();
(c=this.b.Ra(this.j))||0!==this.rg||(g=this.b.lf(this.j,!0));this.j.x=b;this.j.y=a;this.j.F();if(c)return!this.b.mc(this.j,c);if(g&&g.length){a=c=0;for(b=g.length;c<b;c++)g[a]=g[c],this.b.mc(this.j,g[c])||a++;if(1<=a)return!0}return!1};c.prototype.kv=function(c){var g=!1,b=this.j.x,a=this.j.y;this.j.x-=3*this.bb;this.j.y-=3*this.cb;this.j.F();if(this.b.Ra(this.j))return this.j.x=b,this.j.y=a,this.j.F(),!1;0===c?(this.j.x-=2*this.$e,this.j.y-=2*this.bf):(this.j.x+=2*this.$e,this.j.y+=2*this.bf);this.j.F();
g=this.b.Ra(this.j);this.j.x=b;this.j.y=a;this.j.F();return g};c.prototype.Lq=function(){return!0};c.prototype.Kq=function(){return!0};c.prototype.Zq=function(){return!0};c.prototype.Tq=function(){return!0};c.prototype.Pq=function(){return!0};n.n=new c;p.prototype.dr=function(c){this.Le=c};p.prototype.wn=function(c){this.ol!==c&&(this.sb=c,this.uq(),this.b.Ra(this.j)&&(this.b.hd(this.j,this.bb,this.cb,10),this.j.x+=2*this.bb,this.j.y+=2*this.cb,this.j.F()),this.Wb=null)};p.prototype.yn=function(c){switch(c){case 0:this.gf=
!0;break;case 1:this.hf=!0;break;case 2:this.bk=!0}};p.prototype.xn=function(c){this.D=c};p.prototype.wf=function(c){this.enabled!==(1===c)&&(this.enabled=1===c,this.enabled||(this.Wb=null))};n.G=new p;n.na=new function(){}})();function Ic(c){this.b=c}
(function(){var c=Ic.prototype;c.M=function(c){this.behavior=c;this.b=c.b};c.M.prototype.I=function(){};c.K=function(c,g){this.type=c;this.behavior=c.behavior;this.j=g;this.b=c.b};var p=c.K.prototype;p.I=function(){this.speed=Q(this.A[0]);this.Ga=Q(this.A[1])};p.Na=function(){return{speed:this.speed,acc:this.Ga}};p.Ua=function(c){this.speed=c.speed;this.Ga=c.acc};p.ya=function(){var c=this.b.Qd(this.j);0!==c&&(0!==this.Ga&&(this.speed+=this.Ga*c),0!==this.speed&&(this.j.q=Ha(this.j.q+this.speed*c),
this.j.F()))};c.n=new function(){};c.G=new function(){};c.na=new function(){}})();function Jc(c){this.b=c}
(function(){var c=Jc.prototype;c.M=function(c){this.behavior=c;this.b=c.b};c.M.prototype.I=function(){};c.K=function(c,b){this.type=c;this.behavior=c.behavior;this.j=b;this.b=c.b;this.Fb=0};var p=c.K.prototype,n=2*Math.PI,g=Math.PI/2,h=3*Math.PI/2;p.I=function(){this.$a=1===this.A[0];this.zj=this.A[1];this.Bq=this.A[2];this.Ye=this.A[3];this.Ye+=Math.random()*this.A[4];0===this.Ye?this.Fb=0:(this.Fb=this.A[5]/this.Ye*n,this.Fb+=Math.random()*this.A[6]/this.Ye*n);this.Dc=this.A[7];this.Dc+=Math.random()*
this.A[8];this.Sj=this.zg=this.ua=0;this.init()};p.Na=function(){return{i:this.Fb,a:this.$a,mv:this.zj,w:this.Bq,p:this.Ye,mag:this.Dc,iv:this.ua,iv2:this.zg,r:this.Sj,lkv:this.Sc,lkv2:this.jj}};p.Ua=function(c){this.Fb=c.i;this.$a=c.a;this.zj=c.mv;this.Bq=c.w;this.Ye=c.p;this.Dc=c.mag;this.ua=c.iv;this.zg=c.iv2||0;this.Sj=c.r;this.Sc=c.lkv;this.jj=c.lkv2||0};p.init=function(){switch(this.zj){case 0:this.ua=this.j.x;break;case 1:this.ua=this.j.y;break;case 2:this.ua=this.j.width;this.Sj=this.j.height/
this.j.width;break;case 3:this.ua=this.j.width;break;case 4:this.ua=this.j.height;break;case 5:this.ua=this.j.q;this.Dc=Q(this.Dc);break;case 6:this.ua=this.j.opacity;break;case 7:this.ua=0;break;case 8:this.ua=this.j.x,this.zg=this.j.y}this.Sc=this.ua;this.jj=this.zg};p.tf=function(c){c=c%n;switch(this.Bq){case 0:return Math.sin(c);case 1:return c<=g?c/g:c<=h?1-2*(c-g)/Math.PI:(c-h)/g-1;case 2:return 2*c/n-1;case 3:return-2*c/n+1;case 4:return c<Math.PI?-1:1}return 0};p.ya=function(){var c=this.b.Qd(this.j);
this.$a&&0!==c&&(0===this.Ye?this.Fb=0:(this.Fb+=c/this.Ye*n,this.Fb=this.Fb%n),this.BA())};p.BA=function(){switch(this.zj){case 0:this.j.x!==this.Sc&&(this.ua+=this.j.x-this.Sc);this.j.x=this.ua+this.tf(this.Fb)*this.Dc;this.Sc=this.j.x;break;case 1:this.j.y!==this.Sc&&(this.ua+=this.j.y-this.Sc);this.j.y=this.ua+this.tf(this.Fb)*this.Dc;this.Sc=this.j.y;break;case 2:this.j.width=this.ua+this.tf(this.Fb)*this.Dc;this.j.height=this.j.width*this.Sj;break;case 3:this.j.width=this.ua+this.tf(this.Fb)*
this.Dc;break;case 4:this.j.height=this.ua+this.tf(this.Fb)*this.Dc;break;case 5:this.j.q!==this.Sc&&(this.ua=Ha(this.ua+(this.j.q-this.Sc)));this.j.q=Ha(this.ua+this.tf(this.Fb)*this.Dc);this.Sc=this.j.q;break;case 6:this.j.opacity=this.ua+this.tf(this.Fb)*this.Dc/100;0>this.j.opacity?this.j.opacity=0:1<this.j.opacity&&(this.j.opacity=1);break;case 8:this.j.x!==this.Sc&&(this.ua+=this.j.x-this.Sc),this.j.y!==this.jj&&(this.zg+=this.j.y-this.jj),this.j.x=this.ua+Math.cos(this.j.q)*this.tf(this.Fb)*
this.Dc,this.j.y=this.zg+Math.sin(this.j.q)*this.tf(this.Fb)*this.Dc,this.Sc=this.j.x,this.jj=this.j.y}this.j.F()};p.zt=function(c,b){switch(this.zj){case 2:this.ua*=b.width/c.width;this.Sj=b.height/b.width;break;case 3:this.ua*=b.width/c.width;break;case 4:this.ua*=b.height/c.height}};c.n=new function(){};c.G=new function(){};c.na=new function(){}})();function Kc(c){this.b=c}
(function(){function c(){}function p(){}var n=Kc.prototype;n.M=function(c){this.behavior=c;this.b=c.b};n.M.prototype.I=function(){};n.K=function(c,g){this.type=c;this.behavior=c.behavior;this.j=g;this.b=c.b};var g=n.K.prototype;g.I=function(){this.nc={}};g.Td=function(){Va(this.nc)};g.Na=function(){var c={},g,b;for(g in this.nc)this.nc.hasOwnProperty(g)&&(b=this.nc[g],c[g]={c:b.current.T,t:b.total.T,d:b.duration,r:b.Qp});return c};g.Ua=function(c){this.nc={};for(var g in c)c.hasOwnProperty(g)&&(this.nc[g]=
{current:new $a,total:new $a,duration:c[g].d,Qp:c[g].r},this.nc[g].current.T=c[g].c,this.nc[g].total.T=c[g].t)};g.ya=function(){var c=this.b.Qd(this.j),g,b;for(g in this.nc)this.nc.hasOwnProperty(g)&&(b=this.nc[g],b.current.add(c),b.total.add(c))};g.ah=function(){var c,g;for(c in this.nc)this.nc.hasOwnProperty(c)&&(g=this.nc[c],g.current.T>=g.duration&&(g.Qp?g.current.T-=g.duration:delete this.nc[c]))};c.prototype.Vv=function(c){c=c.toLowerCase();return(c=this.nc[c])?c.current.T>=c.duration:!1};n.n=
new c;p.prototype.xw=function(c,g,b){this.nc[b.toLowerCase()]={current:new $a,total:new $a,duration:c,Qp:1===g}};n.G=new p;n.na=new function(){}})();function Lc(c){this.b=c}
(function(){var c=Lc.prototype;c.M=function(c){this.behavior=c;this.b=c.b};c.M.prototype.I=function(){};c.K=function(c,n){this.type=c;this.behavior=c.behavior;this.j=n;this.b=c.b;this.mode=0};c=c.K.prototype;c.I=function(){this.mode=this.A[0]};c.ya=function(){};c.ah=function(){this.j.aa();var c=this.j.Y,n=this.j.u.ub,g=!1;0===this.mode?(0>this.j.x&&(this.j.x=0,g=!0),0>this.j.y&&(this.j.y=0,g=!0),this.j.x>n.width&&(this.j.x=n.width,g=!0),this.j.y>n.height&&(this.j.y=n.height,g=!0)):(0>c.left&&(this.j.x-=
c.left,g=!0),0>c.top&&(this.j.y-=c.top,g=!0),c.right>n.width&&(this.j.x-=c.right-n.width,g=!0),c.bottom>n.height&&(this.j.y-=c.bottom-n.height,g=!0));g&&this.j.F()}})();function pc(c){this.b=c}
(function(){function c(){}var p=pc.prototype;p.M=function(c){this.behavior=c;this.b=c.b};p.M.prototype.I=function(){};p.K=function(c,h){this.type=c;this.behavior=c.behavior;this.j=h;this.b=c.b};var n=p.K.prototype;n.I=function(){this.j.N.jumpthruEnabled=0!==this.A[0]};n.ya=function(){};p.n=new function(){};c.prototype.wf=function(c){this.j.N.jumpthruEnabled=!!c};p.G=new c})();function Mc(c){this.b=c;this.dq=this.Jm=this.ak=this.cq=0}
(function(){function c(){}var p=Mc.prototype;p.M=function(c){this.behavior=c;this.b=c.b};p.M.prototype.I=function(){};p.K=function(c,h){this.type=c;this.behavior=c.behavior;this.j=h;this.b=c.b};var n=p.K.prototype;n.I=function(){this.enabled=0!==this.A[0]};n.Na=function(){return{smg:this.behavior.cq,ss:this.behavior.ak,se:this.behavior.Jm,smd:this.behavior.dq}};n.Ua=function(c){this.behavior.cq=c.smg;this.behavior.ak=c.ss;this.behavior.Jm=c.se;this.behavior.dq=c.smd};n.ya=function(){};n.ah=function(){if(this.enabled){var c=
this.behavior.Bj.Hd(),h=0,l=0,b,a,d,n=0;b=0;for(a=c.length;b<a;b++){a:{d=c[b];for(var e=void 0,f=void 0,k=void 0,e=0,f=d.V.length;e<f;++e)if(k=d.V[e],k.behavior instanceof Mc){d=k;break a}d=null}d&&d.enabled&&(h+=c[b].x,l+=c[b].y,++n)}c=this.j.u.ub;a=this.b.Hb.T;d=b=0;a>=this.behavior.ak&&a<this.behavior.Jm&&(b=this.behavior.cq*Math.min(this.b.Zf,1),0===this.behavior.dq&&(b*=1-(a-this.behavior.ak)/(this.behavior.Jm-this.behavior.ak)),a=Math.random()*Math.PI*2,d=Math.random()*b,b=Math.cos(a)*d,d*=
Math.sin(a));c.Yp(h/n+b);c.Zp(l/n+d)}};c.prototype.wf=function(c){this.enabled=0!==c};p.G=new c})();function oc(c){this.b=c}(function(){function c(){}var p=oc.prototype;p.M=function(c){this.behavior=c;this.b=c.b};p.M.prototype.I=function(){};p.K=function(c,h){this.type=c;this.behavior=c.behavior;this.j=h;this.b=c.b};var n=p.K.prototype;n.I=function(){this.j.N.solidEnabled=0!==this.A[0]};n.ya=function(){};p.n=new function(){};c.prototype.wf=function(c){this.j.N.solidEnabled=!!c};p.G=new c})();
function nc(){return[rc,Z,qc,sc,tc,uc,Y,wc,vc,xc,yc,Hc,Mc,Bc,Lc,Gc,Ac,Cc,zc,oc,Ic,Jc,Kc,pc,Ec,Fc,qc.prototype.n.vk,rc.prototype.G.aw,qc.prototype.na.Zv,qc.prototype.n.Vu,Y.prototype.n.hv,Hc.prototype.n.qv,Y.prototype.G.gw,qc.prototype.G.CallFunction,Hc.prototype.G.wf,U.prototype.G.Cw,Y.prototype.G.vw,Y.prototype.na.wv,Y.prototype.G.fw,Y.prototype.n.Uu,Y.prototype.G.Dq,Hc.prototype.G.yn,Hc.prototype.G.wn,U.prototype.G.kw,Bc.prototype.G.xn,Bc.prototype.G.wf,Ec.prototype.n.nv,U.prototype.G.Aw,Y.prototype.G.fr,
U.prototype.na["int"],Ec.prototype.G.av,U.prototype.n.Wu,U.prototype.G.rw,Hc.prototype.G.dr,U.prototype.G.Yu,U.prototype.n.Qq,rc.prototype.G.Play,Gc.prototype.G.$v,U.prototype.n.ov,Hc.prototype.n.Tq,Hc.prototype.n.Zq,Hc.prototype.n.Lq,Hc.prototype.n.Kq,Hc.prototype.n.Pq,Y.prototype.n.Fq,Hc.prototype.n.tn,yc.prototype.n.uv,sc.prototype.n.pv,Y.prototype.G.lw,Y.prototype.G.mw,yc.prototype.n.vn,sc.prototype.n.Mq,Y.prototype.n.tv,Y.prototype.na.Nu,Bc.prototype.n.tn,Y.prototype.G.zw,Bc.prototype.G.yn,yc.prototype.n.Jq,
Y.prototype.n.Dv,Y.prototype.G.iw,Y.prototype.G.Ku,Hc.prototype.G.xn,U.prototype.G.Lu,U.prototype.n.$u,vc.prototype.G.er,rc.prototype.G.yw,U.prototype.G.bv,Y.prototype.G.hw,U.prototype.n.Eq,Y.prototype.G.pw,U.prototype.G.ew,U.prototype.G.yv,U.prototype.G.qw,Y.prototype.n.rv,U.prototype.n.Bw,Y.prototype.n.ag,Y.prototype.G.ow,Y.prototype.na.Cn,Y.prototype.na.Dn,U.prototype.na.floor,Y.prototype.G.sw,tc.prototype.n.sv,tc.prototype.G.jw,yc.prototype.n.$q,Z.prototype.G.dv,Y.prototype.G.uw,Kc.prototype.G.xw,
Kc.prototype.n.Vv,Cc.prototype.G.dw,Y.prototype.n.Iq,Hc.prototype.n.kv,Fc.prototype.n.gv,Y.prototype.n.Xu,U.prototype.n.Zu,Y.prototype.n.Tu,U.prototype.G.cv,U.prototype.na.vA,Z.prototype.G.bw,Z.prototype.G.Qu,vc.prototype.G.Dq]};
