// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa,ba,ca,H,ea,fa,ha,N,ia,ja,ma,na,oa,Q,pa,ra,ta,ua,wa,xa,ya,za,Aa,Ba,S,Ca,Da,Ea,Fa,Ha,Ia,Ja,Ka,La,Qa,Ra,Sa,Ta,Ua,Va,Wa,Xa,Ya,Za,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,rb,sb,tb,ub,vb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,U,Xb,Yb={},Zb={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(g){return g.__proto__}:function(g){return g.constructor.prototype});
(function(){function g(e,a,b,q){this.set(e,a,b,q)}function m(){this.ub=this.tb=this.xb=this.wb=this.Jb=this.Ib=this.Sa=this.Ra=0}function d(e,a,b,q){e<a?b<q?(n=e<b?e:b,w=a>q?a:q):(n=e<q?e:q,w=a>b?a:b):b<q?(n=a<b?a:b,w=e>q?e:q):(n=a<q?a:q,w=e>b?e:b)}function s(){this.items=this.Oc=null;this.Af=0;u&&(this.Oc=new Set);this.eg=[];this.Wd=!0}function l(e){y[O++]=e}function c(){this.Z=this.yj=this.y=this.$j=0}function a(e){this.Oa=[];this.Kh=this.Mh=this.Nh=this.Lh=0;this.wh(e)}function b(e,a){this.ck=
e;this.bk=a;this.cells={}}function x(e,a){this.ck=e;this.bk=a;this.cells={}}function t(e,a,b){var q;return Z.length?(q=Z.pop(),q.Mk=e,q.x=a,q.y=b,q):new aa(e,a,b)}function f(e,a,b){this.Mk=e;this.x=a;this.y=b;this.Wa=new ba}function h(e,a,b){var q;return T.length?(q=T.pop(),q.Mk=e,q.x=a,q.y=b,q):new ca(e,a,b)}function r(e,a,b){this.Mk=e;this.x=a;this.y=b;this.Wa=[];this.zf=!0;this.ad=new ba;this.ig=!1}function k(e,a){return e.Tc-a.Tc}H=function(e){window.console&&window.console.log&&window.console.log(e)};
ea=function(e){window.console&&window.console.error&&window.console.error(e)};fa=function(e){return"undefined"===typeof e};ha=function(e){return"number"===typeof e};N=function(e){return"string"===typeof e};ia=function(e){return 0<e&&0===(e-1&e)};ja=function(e){--e;for(var a=1;32>a;a<<=1)e|=e>>a;return e+1};ma=function(e){return 0>e?-e:e};na=function(e,a){return e<a?e:a};oa=Math.PI;Q=function(e){return 0<=e?e|0:(e|0)-1};pa=function(e){var a=e|0;return a===e?a:a+1};ra=function(e,a,b,q,u,f,c,k){var y,
p,h,r;e<b?(p=e,y=b):(p=b,y=e);u<c?(r=u,h=c):(r=c,h=u);if(y<r||p>h)return!1;a<q?(p=a,y=q):(p=q,y=a);f<k?(r=f,h=k):(r=k,h=f);if(y<r||p>h)return!1;y=u-e+c-b;p=f-a+k-q;e=b-e;a=q-a;u=c-u;f=k-f;k=ma(a*u-f*e);return ma(u*p-f*y)>k?!1:ma(e*p-a*y)<=k};g.prototype.set=function(e,a,b,q){this.left=e;this.top=a;this.right=b;this.bottom=q};g.prototype.pg=function(e){this.left=e.left;this.top=e.top;this.right=e.right;this.bottom=e.bottom};g.prototype.width=function(){return this.right-this.left};g.prototype.height=
function(){return this.bottom-this.top};g.prototype.offset=function(e,a){this.left+=e;this.top+=a;this.right+=e;this.bottom+=a;return this};g.prototype.normalize=function(){var e=0;this.left>this.right&&(e=this.left,this.left=this.right,this.right=e);this.top>this.bottom&&(e=this.top,this.top=this.bottom,this.bottom=e)};g.prototype.Ts=function(e){return!(e.right<this.left||e.bottom<this.top||e.left>this.right||e.top>this.bottom)};g.prototype.Us=function(e,a,b){return!(e.right+a<this.left||e.bottom+
b<this.top||e.left+a>this.right||e.top+b>this.bottom)};g.prototype.$a=function(e,a){return e>=this.left&&e<=this.right&&a>=this.top&&a<=this.bottom};g.prototype.di=function(e){return this.left===e.left&&this.top===e.top&&this.right===e.right&&this.bottom===e.bottom};ta=g;m.prototype.Uf=function(e){this.Ra=e.left;this.Sa=e.top;this.Ib=e.right;this.Jb=e.top;this.wb=e.right;this.xb=e.bottom;this.tb=e.left;this.ub=e.bottom};m.prototype.dp=function(e,a){if(0===a)this.Uf(e);else{var b=Math.sin(a),q=Math.cos(a),
u=e.left*b,f=e.top*b,c=e.right*b,b=e.bottom*b,k=e.left*q,y=e.top*q,p=e.right*q,q=e.bottom*q;this.Ra=k-f;this.Sa=y+u;this.Ib=p-f;this.Jb=y+c;this.wb=p-b;this.xb=q+c;this.tb=k-b;this.ub=q+u}};m.prototype.offset=function(e,a){this.Ra+=e;this.Sa+=a;this.Ib+=e;this.Jb+=a;this.wb+=e;this.xb+=a;this.tb+=e;this.ub+=a;return this};var n=0,w=0;m.prototype.Tm=function(e){d(this.Ra,this.Ib,this.wb,this.tb);e.left=n;e.right=w;d(this.Sa,this.Jb,this.xb,this.ub);e.top=n;e.bottom=w};m.prototype.$a=function(e,a){var b=
this.Ib-this.Ra,q=this.Jb-this.Sa,u=this.wb-this.Ra,f=this.xb-this.Sa,c=e-this.Ra,k=a-this.Sa,y=b*b+q*q,p=b*u+q*f,q=b*c+q*k,h=u*u+f*f,r=u*c+f*k,n=1/(y*h-p*p),b=(h*q-p*r)*n,y=(y*r-p*q)*n;if(0<=b&&0<y&&1>b+y)return!0;b=this.tb-this.Ra;q=this.ub-this.Sa;y=b*b+q*q;p=b*u+q*f;q=b*c+q*k;n=1/(y*h-p*p);b=(h*q-p*r)*n;y=(y*r-p*q)*n;return 0<=b&&0<y&&1>b+y};m.prototype.Ud=function(e,a){if(a)switch(e){case 0:return this.Ra;case 1:return this.Ib;case 2:return this.wb;case 3:return this.tb;case 4:return this.Ra;
default:return this.Ra}else switch(e){case 0:return this.Sa;case 1:return this.Jb;case 2:return this.xb;case 3:return this.ub;case 4:return this.Sa;default:return this.Sa}};m.prototype.no=function(){return(this.Ra+this.Ib+this.wb+this.tb)/4};m.prototype.oo=function(){return(this.Sa+this.Jb+this.xb+this.ub)/4};m.prototype.Fn=function(e){var a=e.no(),b=e.oo();if(this.$a(a,b))return!0;a=this.no();b=this.oo();if(e.$a(a,b))return!0;var q,u,f,c,k,y,p,h;for(p=0;4>p;p++)for(h=0;4>h;h++)if(a=this.Ud(p,!0),
b=this.Ud(p,!1),q=this.Ud(p+1,!0),u=this.Ud(p+1,!1),f=e.Ud(h,!0),c=e.Ud(h,!1),k=e.Ud(h+1,!0),y=e.Ud(h+1,!1),ra(a,b,q,u,f,c,k,y))return!0;return!1};ua=m;wa=function(e,a){for(var b in a)a.hasOwnProperty(b)&&(e[b]=a[b]);return e};xa=function(e,a){var b,q;a=Q(a);if(!(0>a||a>=e.length)){b=a;for(q=e.length-1;b<q;b++)e[b]=e[b+1];e.length=q}};ya=function(e,a){e.length=a.length;var b,q;b=0;for(q=a.length;b<q;b++)e[b]=a[b]};za=function(e,a){e.push.apply(e,a)};Aa=function(e,a){var b,q;b=0;for(q=e.length;b<q;++b)if(e[b]===
a)return b;return-1};Ba=function(e,a){var b=Aa(e,a);-1!==b&&xa(e,b)};S=function(e){return e/(180/oa)};Ca=function(e){return 180/oa*e};Da=function(e){e%=360;0>e&&(e+=360);return e};Ea=function(e){e%=2*oa;0>e&&(e+=2*oa);return e};Fa=function(e){return Da(Ca(e))};Ha=function(e){return Ea(S(e))};Ia=function(e,a,b,q){return Math.atan2(q-a,b-e)};Ja=function(e,a){if(e===a)return 0;var b=Math.sin(e),q=Math.cos(e),u=Math.sin(a),f=Math.cos(a),b=b*u+q*f;return 1<=b?0:-1>=b?oa:Math.acos(b)};Ka=function(e,a,b){var q=
Math.sin(e),u=Math.cos(e),f=Math.sin(a),c=Math.cos(a);return Math.acos(q*f+u*c)>b?0<u*f-q*c?Ea(e+b):Ea(e-b):Ea(a)};La=function(e,a){var b=Math.sin(e),q=Math.cos(e),u=Math.sin(a),f=Math.cos(a);return 0>=q*u-b*f};Qa=function(e,a,b,q,u,f){if(0===b)return f?e:a;var c=Math.sin(b);b=Math.cos(b);e-=q;a-=u;var k=e*c;e=e*b-a*c;a=a*b+k;return f?e+q:a+u};Ra=function(e,a,b,q){e=b-e;a=q-a;return Math.sqrt(e*e+a*a)};Sa=function(e,a){return!e!==!a};Ta=function(e){for(var a in e)if(e.hasOwnProperty(a))return!0;return!1};
Ua=function(e){for(var a in e)e.hasOwnProperty(a)&&delete e[a]};var A=+new Date;Va=function(){if("undefined"!==typeof window.performance){var e=window.performance;if("undefined"!==typeof e.now)return e.now();if("undefined"!==typeof e.webkitNow)return e.webkitNow();if("undefined"!==typeof e.mozNow)return e.mozNow();if("undefined"!==typeof e.msNow)return e.msNow()}return Date.now()-A};var p=!1,e=p=!1,q=!1;"undefined"!==typeof window&&(p=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),
p=!p&&/safari/i.test(navigator.userAgent),e=/(iphone|ipod|ipad)/i.test(navigator.userAgent),q=window.c2ejecta);var u=!p&&!q&&!e&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;s.prototype.contains=function(e){return this.xd()?!1:u?this.Oc.has(e):this.items&&this.items.hasOwnProperty(e)};s.prototype.add=function(e){if(u)this.Oc.has(e)||(this.Oc.add(e),this.Wd=!1);else{var a=e.toString(),b=this.items;b?b.hasOwnProperty(a)||(b[a]=e,this.Af++,this.Wd=!1):(this.items={},this.items[a]=
e,this.Af=1,this.Wd=!1)}};s.prototype.remove=function(e){if(!this.xd())if(u)this.Oc.has(e)&&(this.Oc["delete"](e),this.Wd=!1);else if(this.items){e=e.toString();var a=this.items;a.hasOwnProperty(e)&&(delete a[e],this.Af--,this.Wd=!1)}};s.prototype.clear=function(){this.xd()||(u?this.Oc.clear():(this.items=null,this.Af=0),this.eg.length=0,this.Wd=!0)};s.prototype.xd=function(){return 0===this.count()};s.prototype.count=function(){return u?this.Oc.size:this.Af};var y=null,O=0;s.prototype.mu=function(){if(!this.Wd){if(u)this.eg.length=
this.Oc.size,y=this.eg,O=0,this.Oc.forEach(l),y=null,O=0;else{var e=this.eg;e.length=this.Af;var a,b=0,q=this.items;if(q)for(a in q)q.hasOwnProperty(a)&&(e[b++]=q[a])}this.Wd=!0}};s.prototype.Sc=function(){this.mu();return this.eg};ba=s;new ba;Wa=function(e,a){u?Xa(e,a.Oc):Ya(e,a.Sc())};Xa=function(e,a){var b,q,u,f;q=b=0;for(u=e.length;b<u;++b)f=e[b],a.has(f)||(e[q++]=f);e.length=q};Ya=function(e,a){var b,q,u,f;q=b=0;for(u=e.length;b<u;++b)f=e[b],-1===Aa(a,f)&&(e[q++]=f);e.length=q};c.prototype.add=
function(e){this.y=e-this.$j;this.yj=this.Z+this.y;this.$j=this.yj-this.Z-this.y;this.Z=this.yj};c.prototype.reset=function(){this.Z=this.yj=this.y=this.$j=0};Za=c;$a=function(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};a.prototype.wh=function(e){this.Qo=e;this.Mc=e.length/2;this.Oa.length=e.length;this.Rh=this.Sh=-1;this.Wm=0};a.prototype.wf=function(){return!this.Qo.length};a.prototype.ma=function(){for(var e=this.Oa,a=e[0],b=a,q=e[1],u=q,f,c,k=1,y=this.Mc;k<y;++k)c=2*k,f=e[c],c=e[c+
1],f<a&&(a=f),f>b&&(b=f),c<q&&(q=c),c>u&&(u=c);this.Lh=a;this.Mh=b;this.Nh=q;this.Kh=u};a.prototype.Uf=function(e,a,b){this.Oa.length=8;this.Mc=4;var q=this.Oa;q[0]=e.left-a;q[1]=e.top-b;q[2]=e.right-a;q[3]=e.top-b;q[4]=e.right-a;q[5]=e.bottom-b;q[6]=e.left-a;q[7]=e.bottom-b;this.Sh=e.right-e.left;this.Rh=e.bottom-e.top;this.ma()};a.prototype.Tf=function(e,a,b,q,u){this.Oa.length=8;this.Mc=4;var f=this.Oa;f[0]=e.Ra-a;f[1]=e.Sa-b;f[2]=e.Ib-a;f[3]=e.Jb-b;f[4]=e.wb-a;f[5]=e.xb-b;f[6]=e.tb-a;f[7]=e.ub-
b;this.Sh=q;this.Rh=u;this.ma()};a.prototype.cp=function(e){this.Mc=e.Mc;ya(this.Oa,e.Oa);this.Lh=e.Lh;this.Nh-e.Nh;this.Mh=e.Mh;this.Kh=e.Kh};a.prototype.jf=function(e,a,b){if(this.Sh!==e||this.Rh!==a||this.Wm!==b){this.Sh=e;this.Rh=a;this.Wm=b;var q,u,f,c,k,y=0,p=1,h=this.Qo,r=this.Oa;0!==b&&(y=Math.sin(b),p=Math.cos(b));b=0;for(f=this.Mc;b<f;b++)q=2*b,u=q+1,c=h[q]*e,k=h[u]*a,r[q]=c*p-k*y,r[u]=k*p+c*y;this.ma()}};a.prototype.$a=function(e,a){var b=this.Oa;if(e===b[0]&&a===b[1])return!0;var q,u,
f,c=this.Mc,k=this.Lh-110,y=this.Nh-101,p=this.Mh+131,h=this.Kh+120,r,n,O=0,d=0;for(q=0;q<c;q++)u=2*q,f=(q+1)%c*2,r=b[u],u=b[u+1],n=b[f],f=b[f+1],ra(k,y,e,a,r,u,n,f)&&O++,ra(p,h,e,a,r,u,n,f)&&d++;return 1===O%2||1===d%2};a.prototype.Fg=function(e,a,b){var q=e.Oa,u=this.Oa;if(this.$a(q[0]+a,q[1]+b)||e.$a(u[0]-a,u[1]-b))return!0;var f,c,k,y,p,h,r,n,O,d,T,x;f=0;for(y=this.Mc;f<y;f++)for(c=2*f,k=(f+1)%y*2,n=u[c],c=u[c+1],O=u[k],d=u[k+1],k=0,r=e.Mc;k<r;k++)if(p=2*k,h=(k+1)%r*2,T=q[p]+a,p=q[p+1]+b,x=q[h]+
a,h=q[h+1]+b,ra(n,c,O,d,T,p,x,h))return!0;return!1};ab=a;b.prototype.de=function(e,a,b){var q;q=this.cells[e];return q?(q=q[a])?q:b?(q=t(this,e,a),this.cells[e][a]=q):null:b?(q=t(this,e,a),this.cells[e]={},this.cells[e][a]=q):null};b.prototype.$b=function(e){return Q(e/this.ck)};b.prototype.ac=function(e){return Q(e/this.bk)};b.prototype.update=function(e,a,b){var q,u,f,c,k;if(a)for(q=a.left,u=a.right;q<=u;++q)for(f=a.top,c=a.bottom;f<=c;++f)if(!b||!b.$a(q,f))if(k=this.de(q,f,!1))k.remove(e),k.xd()&&
(k.Wa.clear(),1E3>Z.length&&Z.push(k),this.cells[q][f]=null);if(b)for(q=b.left,u=b.right;q<=u;++q)for(f=b.top,c=b.bottom;f<=c;++f)a&&a.$a(q,f)||this.de(q,f,!0).Wk(e)};b.prototype.kj=function(e,a){var b,q,u,f,c,k;b=this.$b(e.left);u=this.ac(e.top);q=this.$b(e.right);for(c=this.ac(e.bottom);b<=q;++b)for(f=u;f<=c;++f)(k=this.de(b,f,!1))&&k.dump(a)};bb=b;x.prototype.de=function(e,a,b){var q;q=this.cells[e];return q?(q=q[a])?q:b?(q=h(this,e,a),this.cells[e][a]=q):null:b?(q=h(this,e,a),this.cells[e]={},
this.cells[e][a]=q):null};x.prototype.$b=function(e){return Q(e/this.ck)};x.prototype.ac=function(e){return Q(e/this.bk)};x.prototype.update=function(e,a,b){var q,u,f,c,k;if(a)for(q=a.left,u=a.right;q<=u;++q)for(f=a.top,c=a.bottom;f<=c;++f)if(!b||!b.$a(q,f))if(k=this.de(q,f,!1))k.remove(e),k.xd()&&(k.reset(),1E3>T.length&&T.push(k),this.cells[q][f]=null);if(b)for(q=b.left,u=b.right;q<=u;++q)for(f=b.top,c=b.bottom;f<=c;++f)a&&a.$a(q,f)||this.de(q,f,!0).Wk(e)};x.prototype.kj=function(e,a,b,q,u){var f,
c;e=this.$b(e);a=this.ac(a);b=this.$b(b);for(f=this.ac(q);e<=b;++e)for(q=a;q<=f;++q)(c=this.de(e,q,!1))&&c.dump(u)};x.prototype.ht=function(e){var a,b,q,u,f;a=e.left;q=e.top;b=e.right;for(u=e.bottom;a<=b;++a)for(e=q;e<=u;++e)if(f=this.de(a,e,!1))f.zf=!1};cb=x;var Z=[];f.prototype.xd=function(){return this.Wa.xd()};f.prototype.Wk=function(e){this.Wa.add(e)};f.prototype.remove=function(e){this.Wa.remove(e)};f.prototype.dump=function(e){za(e,this.Wa.Sc())};aa=f;var T=[];r.prototype.xd=function(){if(!this.Wa.length)return!0;
if(this.Wa.length>this.ad.count())return!1;this.xk();return!0};r.prototype.Wk=function(e){this.ad.contains(e)?(this.ad.remove(e),this.ad.xd()&&(this.ig=!1)):this.Wa.length?(this.Wa[this.Wa.length-1].rc()>e.rc()&&(this.zf=!1),this.Wa.push(e)):(this.Wa.push(e),this.zf=!0)};r.prototype.remove=function(e){this.ad.add(e);this.ig=!0;30<=this.ad.count()&&this.xk()};r.prototype.xk=function(){this.ig&&(this.ad.count()===this.Wa.length?this.reset():(Wa(this.Wa,this.ad),this.ad.clear(),this.ig=!1))};r.prototype.Fr=
function(){this.zf||(this.Wa.sort(k),this.zf=!0)};r.prototype.reset=function(){this.Wa.length=0;this.zf=!0;this.ad.clear();this.ig=!1};r.prototype.dump=function(e){this.xk();this.Fr();this.Wa.length&&e.push(this.Wa)};ca=r;var z="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");db=function(e){return 0>=e||11<=e?"source-over":z[e-1]};eb=function(e,a,b){if(b)switch(e.jb=b.ONE,e.ib=b.ONE_MINUS_SRC_ALPHA,a){case 1:e.jb=b.ONE;
e.ib=b.ONE;break;case 3:e.jb=b.ONE;e.ib=b.ZERO;break;case 4:e.jb=b.ONE_MINUS_DST_ALPHA;e.ib=b.ONE;break;case 5:e.jb=b.DST_ALPHA;e.ib=b.ZERO;break;case 6:e.jb=b.ZERO;e.ib=b.SRC_ALPHA;break;case 7:e.jb=b.ONE_MINUS_DST_ALPHA;e.ib=b.ZERO;break;case 8:e.jb=b.ZERO;e.ib=b.ONE_MINUS_SRC_ALPHA;break;case 9:e.jb=b.DST_ALPHA;e.ib=b.ONE_MINUS_SRC_ALPHA;break;case 10:e.jb=b.ONE_MINUS_DST_ALPHA,e.ib=b.SRC_ALPHA}};fb=function(e){return Math.round(1E6*e)/1E6};gb=function(e,a){return"string"!==typeof e||"string"!==
typeof a||e.length!==a.length?!1:e===a?!0:e.toLowerCase()===a.toLowerCase()};hb=function(e){e=e.target;return!e||e===document||e===window||document&&document.body&&e===document.body||gb(e.tagName,"canvas")?!0:!1}})();var $b="undefined"!==typeof Float32Array?Float32Array:Array;function ac(g){var m=new $b(3);g&&(m[0]=g[0],m[1]=g[1],m[2]=g[2]);return m}
function bc(g){var m=new $b(16);g&&(m[0]=g[0],m[1]=g[1],m[2]=g[2],m[3]=g[3],m[4]=g[4],m[5]=g[5],m[6]=g[6],m[7]=g[7],m[8]=g[8],m[9]=g[9],m[10]=g[10],m[11]=g[11],m[12]=g[12],m[13]=g[13],m[14]=g[14],m[15]=g[15]);return m}function cc(g,m){m[0]=g[0];m[1]=g[1];m[2]=g[2];m[3]=g[3];m[4]=g[4];m[5]=g[5];m[6]=g[6];m[7]=g[7];m[8]=g[8];m[9]=g[9];m[10]=g[10];m[11]=g[11];m[12]=g[12];m[13]=g[13];m[14]=g[14];m[15]=g[15]}
function dc(g,m){var d=m[0],s=m[1];m=m[2];g[0]*=d;g[1]*=d;g[2]*=d;g[3]*=d;g[4]*=s;g[5]*=s;g[6]*=s;g[7]*=s;g[8]*=m;g[9]*=m;g[10]*=m;g[11]*=m}
function ec(g,m,d,s){s||(s=bc());var l,c,a,b,x,t,f,h,r=g[0],k=g[1];g=g[2];c=d[0];a=d[1];l=d[2];d=m[1];t=m[2];r===m[0]&&k===d&&g===t?(g=s,g[0]=1,g[1]=0,g[2]=0,g[3]=0,g[4]=0,g[5]=1,g[6]=0,g[7]=0,g[8]=0,g[9]=0,g[10]=1,g[11]=0,g[12]=0,g[13]=0,g[14]=0,g[15]=1):(d=r-m[0],t=k-m[1],f=g-m[2],h=1/Math.sqrt(d*d+t*t+f*f),d*=h,t*=h,f*=h,m=a*f-l*t,l=l*d-c*f,c=c*t-a*d,(h=Math.sqrt(m*m+l*l+c*c))?(h=1/h,m*=h,l*=h,c*=h):c=l=m=0,a=t*c-f*l,b=f*m-d*c,x=d*l-t*m,(h=Math.sqrt(a*a+b*b+x*x))?(h=1/h,a*=h,b*=h,x*=h):x=b=a=0,
s[0]=m,s[1]=a,s[2]=d,s[3]=0,s[4]=l,s[5]=b,s[6]=t,s[7]=0,s[8]=c,s[9]=x,s[10]=f,s[11]=0,s[12]=-(m*r+l*k+c*g),s[13]=-(a*r+b*k+x*g),s[14]=-(d*r+t*k+f*g),s[15]=1)}
(function(){function g(c){this.Le=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.Xm=ac([0,0,100]);this.Wn=ac([0,0,0]);this.yp=ac([0,1,0]);this.vm=ac([1,1,1]);this.en=!0;this.nl=bc();this.yc=bc();this.On=bc();this.kk=bc();this.k=c;this.Bn()}function m(c,a,b){this.k=c;this.xh=a;this.name=b;this.xc=c.getAttribLocation(a,"aPos");this.ie=c.getAttribLocation(a,"aTex");this.Un=c.getUniformLocation(a,"matP");this.Qi=c.getUniformLocation(a,"matMV");this.Ff=
c.getUniformLocation(a,"opacity");this.Vn=c.getUniformLocation(a,"samplerFront");this.Xg=c.getUniformLocation(a,"samplerBack");this.Ue=c.getUniformLocation(a,"destStart");this.Te=c.getUniformLocation(a,"destEnd");this.kl=c.getUniformLocation(a,"seconds");this.jl=c.getUniformLocation(a,"pixelWidth");this.il=c.getUniformLocation(a,"pixelHeight");this.Wg=c.getUniformLocation(a,"layerScale");this.Vg=c.getUniformLocation(a,"layerAngle");this.Zg=c.getUniformLocation(a,"viewOrigin");this.Yg=c.getUniformLocation(a,
"scrollPos");this.Os=!!(this.jl||this.il||this.kl||this.Xg||this.Ue||this.Te||this.Wg||this.Vg||this.Zg||this.Yg);this.eo=this.fo=-999;this.Si=1;this.$n=this.Zn=0;this.bo=this.Yn=this.Xn=1;this.jo=this.ho=this.lo=this.ko=this.ao=0;this.fl=[];this.co=bc();this.Ff&&c.uniform1f(this.Ff,1);this.Vn&&c.uniform1i(this.Vn,0);this.Xg&&c.uniform1i(this.Xg,1);this.Ue&&c.uniform2f(this.Ue,0,0);this.Te&&c.uniform2f(this.Te,1,1);this.Wg&&c.uniform1f(this.Wg,1);this.Vg&&c.uniform1f(this.Vg,0);this.Zg&&c.uniform2f(this.Zg,
0,0);this.Yg&&c.uniform2f(this.Yg,0,0);this.He=!1}function d(c,a){this.type=c;this.n=a;this.k=a.k;this.tc=this.jc=this.Ao=0;this.X=this.Qc=null;this.ep=[]}g.prototype.Bn=function(){var c=this.k,a;this.Pn=1;this.Qe=this.Pe=null;this.Zh=1;c.clearColor(0,0,0,0);c.clear(c.COLOR_BUFFER_BIT);c.enable(c.BLEND);c.blendFunc(c.ONE,c.ONE_MINUS_SRC_ALPHA);c.disable(c.CULL_FACE);c.disable(c.DEPTH_TEST);this.Qn=c.ONE;this.Nn=c.ONE_MINUS_SRC_ALPHA;this.El=c.createBuffer();c.bindBuffer(c.ARRAY_BUFFER,this.El);this.Hh=
Array(4);this.Bh=Array(4);for(a=0;4>a;a++)this.Hh[a]=c.createBuffer(),c.bindBuffer(c.ARRAY_BUFFER,this.Hh[a]),this.Bh[a]=c.createBuffer(),c.bindBuffer(c.ARRAY_BUFFER,this.Bh[a]);this.od=0;this.Rs=c.createBuffer();c.bindBuffer(c.ELEMENT_ARRAY_BUFFER,this.Rs);this.qm=new Float32Array(16E3);this.am=new Float32Array(16E3);this.Mo=new Float32Array(32E3);for(var b=new Uint16Array(12E3),d=a=0;12E3>a;)b[a++]=d,b[a++]=d+1,b[a++]=d+2,b[a++]=d,b[a++]=d+2,b[a++]=d+3,d+=4;c.bufferData(c.ELEMENT_ARRAY_BUFFER,b,
c.STATIC_DRAW);this.Nf=this.gd=0;this.Qa=[];a=this.jk({src:"varying mediump vec2 vTex;\nuniform lowp float opacity;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, vTex);\n\tgl_FragColor *= opacity;\n}"},"attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}","<default>");
this.Qa.push(a);a=this.jk({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.Qa.push(a);for(var t in fc)fc.hasOwnProperty(t)&&this.Qa.push(this.jk(fc[t],
"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}",t));c.activeTexture(c.TEXTURE0);c.bindTexture(c.TEXTURE_2D,null);this.md=[];this.Vc=0;this.Rb=this.Ab=!1;this.an=this.Mg=-1;this.sg=null;this.es=c.createFramebuffer();this.To=null;this.qe=ac([0,0,0]);c=c.getParameter(c.ALIASED_POINT_SIZE_RANGE);this.kt=c[0];this.ol=
c[1];2048<this.ol&&(this.ol=2048);this.dd(0)};m.prototype.lm=function(c){var a=this.co;if(a[0]!==c[0]||a[1]!==c[1]||a[2]!==c[2]||a[3]!==c[3]||a[4]!==c[4]||a[5]!==c[5]||a[6]!==c[6]||a[7]!==c[7]||a[8]!==c[8]||a[9]!==c[9]||a[10]!==c[10]||a[11]!==c[11]||a[12]!==c[12]||a[13]!==c[13]||a[14]!==c[14]||a[15]!==c[15])cc(c,this.co),this.k.uniformMatrix4fv(this.Qi,!1,c)};g.prototype.jk=function(c,a,b){var d=this.k,t=d.createShader(d.FRAGMENT_SHADER);d.shaderSource(t,c.src);d.compileShader(t);if(!d.getShaderParameter(t,
d.COMPILE_STATUS))return d.deleteShader(t),null;var f=d.createShader(d.VERTEX_SHADER);d.shaderSource(f,a);d.compileShader(f);if(!d.getShaderParameter(f,d.COMPILE_STATUS))return d.deleteShader(t),d.deleteShader(f),null;a=d.createProgram();d.attachShader(a,t);d.attachShader(a,f);d.linkProgram(a);if(!d.getProgramParameter(a,d.LINK_STATUS))return d.deleteShader(t),d.deleteShader(f),d.deleteProgram(a),null;d.useProgram(a);d.deleteShader(t);d.deleteShader(f);b=new m(d,a,b);b.tk=c.tk||0;b.uk=c.uk||0;b.$m=
!!c.$m;b.Qm=!!c.Qm;b.K=c.K||[];c=0;for(t=b.K.length;c<t;c++)b.K[c][1]=d.getUniformLocation(a,b.K[c][0]),b.fl.push(0),d.uniform1f(b.K[c][1],0);return b};g.prototype.Jk=function(c){var a,b;a=0;for(b=this.Qa.length;a<b;a++)if(this.Qa[a].name===c)return a;return-1};g.prototype.Po=function(c,a,b){var d=this.yc,t=this.nl,f=[0,0,0,0,0,0,0,0];f[0]=d[0]*c+d[4]*a+d[12];f[1]=d[1]*c+d[5]*a+d[13];f[2]=d[2]*c+d[6]*a+d[14];f[3]=d[3]*c+d[7]*a+d[15];f[4]=t[0]*f[0]+t[4]*f[1]+t[8]*f[2]+t[12]*f[3];f[5]=t[1]*f[0]+t[5]*
f[1]+t[9]*f[2]+t[13]*f[3];f[6]=t[2]*f[0]+t[6]*f[1]+t[10]*f[2]+t[14]*f[3];f[7]=-f[2];0!==f[7]&&(f[7]=1/f[7],f[4]*=f[7],f[5]*=f[7],f[6]*=f[7],b[0]=(.5*f[4]+.5)*this.width,b[1]=(.5*f[5]+.5)*this.height)};g.prototype.Sf=function(c,a,b){if(this.width!==c||this.height!==a||b){this.ae();this.width=c;this.height=a;this.k.viewport(0,0,c,a);a=c/a;var d=this.nl,t;t=1*Math.tan(45*Math.PI/360);a*=t;c=-a;b=-t;d||(d=bc());var f=a-c,h=t-b;d[0]=2/f;d[1]=0;d[2]=0;d[3]=0;d[4]=0;d[5]=2/h;d[6]=0;d[7]=0;d[8]=(a+c)/f;d[9]=
(t+b)/h;d[10]=-1001/999;d[11]=-1;d[12]=0;d[13]=0;d[14]=-2E3/999;d[15]=0;ec(this.Xm,this.Wn,this.yp,this.yc);c=[0,0];a=[0,0];this.Po(0,0,c);this.Po(1,1,a);this.vm[0]=1/(a[0]-c[0]);this.vm[1]=-1/(a[1]-c[1]);c=0;for(a=this.Qa.length;c<a;c++)b=this.Qa[c],b.He=!1,b.Un&&(this.k.useProgram(b.xh),this.k.uniformMatrix4fv(b.Un,!1,this.nl));this.k.useProgram(this.Qa[this.Mg].xh);this.k.bindTexture(this.k.TEXTURE_2D,null);this.k.activeTexture(this.k.TEXTURE1);this.k.bindTexture(this.k.TEXTURE_2D,null);this.k.activeTexture(this.k.TEXTURE0);
this.Qe=this.Pe=null}};g.prototype.le=function(){ec(this.Xm,this.Wn,this.yp,this.yc);dc(this.yc,this.vm)};g.prototype.translate=function(c,a){if(0!==c||0!==a){this.qe[0]=c;this.qe[1]=a;this.qe[2]=0;var b=this.yc,d=this.qe,t=d[0],f=d[1],d=d[2];b[12]=b[0]*t+b[4]*f+b[8]*d+b[12];b[13]=b[1]*t+b[5]*f+b[9]*d+b[13];b[14]=b[2]*t+b[6]*f+b[10]*d+b[14];b[15]=b[3]*t+b[7]*f+b[11]*d+b[15]}};g.prototype.scale=function(c,a){if(1!==c||1!==a)this.qe[0]=c,this.qe[1]=a,this.qe[2]=1,dc(this.yc,this.qe)};g.prototype.Uo=
function(c){if(0!==c){var a=this.yc,b,d=Math.sin(c);c=Math.cos(c);var t=a[0],f=a[1],h=a[2],r=a[3],k=a[4],n=a[5],w=a[6],g=a[7];b?a!==b&&(b[8]=a[8],b[9]=a[9],b[10]=a[10],b[11]=a[11],b[12]=a[12],b[13]=a[13],b[14]=a[14],b[15]=a[15]):b=a;b[0]=t*c+k*d;b[1]=f*c+n*d;b[2]=h*c+w*d;b[3]=r*c+g*d;b[4]=t*-d+k*c;b[5]=f*-d+n*c;b[6]=h*-d+w*c;b[7]=r*-d+g*c}};g.prototype.se=function(){for(var c=!1,a=0;16>a;a++)if(this.On[a]!==this.yc[a]){c=!0;break}c&&(c=this.zc(),c.type=5,c.X?cc(this.yc,c.X):c.X=bc(this.yc),cc(this.yc,
this.On),this.Rb=this.Ab=!1)};d.prototype.rr=function(){this.k.bindTexture(this.k.TEXTURE_2D,this.Qc)};d.prototype.sr=function(){var c=this.k;c.activeTexture(c.TEXTURE1);c.bindTexture(c.TEXTURE_2D,this.Qc);c.activeTexture(c.TEXTURE0)};d.prototype.or=function(){var c=this.Ao,a=this.n;a.Zh=c;a=a.sg;a.Ff&&a.Si!==c&&(a.Si=c,this.k.uniform1f(a.Ff,c))};d.prototype.lr=function(){this.k.drawElements(this.k.TRIANGLES,this.tc,this.k.UNSIGNED_SHORT,2*this.jc)};d.prototype.nr=function(){this.k.blendFunc(this.jc,
this.tc)};d.prototype.tr=function(){var c,a,b,d=this.n.Qa,t=this.n.an;c=0;for(a=d.length;c<a;c++)b=d[c],c===t&&b.Qi?(b.lm(this.X),b.He=!0):b.He=!1;cc(this.X,this.n.kk)};d.prototype.mr=function(){var c=this.k,a=this.n;this.Qc?(a.Qe===this.Qc&&(c.activeTexture(c.TEXTURE1),c.bindTexture(c.TEXTURE_2D,null),a.Qe=null,c.activeTexture(c.TEXTURE0)),c.bindFramebuffer(c.FRAMEBUFFER,a.es),c.framebufferTexture2D(c.FRAMEBUFFER,c.COLOR_ATTACHMENT0,c.TEXTURE_2D,this.Qc,0)):(c.framebufferTexture2D(c.FRAMEBUFFER,
c.COLOR_ATTACHMENT0,c.TEXTURE_2D,null,0),c.bindFramebuffer(c.FRAMEBUFFER,null))};d.prototype.jr=function(){var c=this.k;0===this.jc?(c.clearColor(this.X[0],this.X[1],this.X[2],this.X[3]),c.clear(c.COLOR_BUFFER_BIT)):(c.enable(c.SCISSOR_TEST),c.scissor(this.X[0],this.X[1],this.X[2],this.X[3]),c.clearColor(0,0,0,0),c.clear(this.k.COLOR_BUFFER_BIT),c.disable(c.SCISSOR_TEST))};d.prototype.kr=function(){var c=this.k,a=this.n,b=a.Qa[1];c.useProgram(b.xh);!b.He&&b.Qi&&(b.lm(a.kk),b.He=!0);c.enableVertexAttribArray(b.xc);
c.bindBuffer(c.ARRAY_BUFFER,a.El);c.vertexAttribPointer(b.xc,4,c.FLOAT,!1,0,0);c.drawArrays(c.POINTS,this.jc/4,this.tc);b=a.sg;c.useProgram(b.xh);0<=b.xc&&(c.enableVertexAttribArray(b.xc),c.bindBuffer(c.ARRAY_BUFFER,a.Hh[a.od]),c.vertexAttribPointer(b.xc,2,c.FLOAT,!1,0,0));0<=b.ie&&(c.enableVertexAttribArray(b.ie),c.bindBuffer(c.ARRAY_BUFFER,a.Bh[a.od]),c.vertexAttribPointer(b.ie,2,c.FLOAT,!1,0,0))};d.prototype.pr=function(){var c=this.k,a=this.n,b=a.Qa[this.jc];a.an=this.jc;a.sg=b;c.useProgram(b.xh);
!b.He&&b.Qi&&(b.lm(a.kk),b.He=!0);b.Ff&&b.Si!==a.Zh&&(b.Si=a.Zh,c.uniform1f(b.Ff,a.Zh));0<=b.xc&&(c.enableVertexAttribArray(b.xc),c.bindBuffer(c.ARRAY_BUFFER,a.Hh[a.od]),c.vertexAttribPointer(b.xc,2,c.FLOAT,!1,0,0));0<=b.ie&&(c.enableVertexAttribArray(b.ie),c.bindBuffer(c.ARRAY_BUFFER,a.Bh[a.od]),c.vertexAttribPointer(b.ie,2,c.FLOAT,!1,0,0))};d.prototype.qr=function(){var c,a,b=this.n.sg,d=this.k;c=this.X;b.Xg&&this.n.Qe!==this.Qc&&(d.activeTexture(d.TEXTURE1),d.bindTexture(d.TEXTURE_2D,this.Qc),
this.n.Qe=this.Qc,d.activeTexture(d.TEXTURE0));var t=c[0];b.jl&&t!==b.fo&&(b.fo=t,d.uniform1f(b.jl,t));t=c[1];b.il&&t!==b.eo&&(b.eo=t,d.uniform1f(b.il,t));t=c[2];a=c[3];!b.Ue||t===b.Zn&&a===b.$n||(b.Zn=t,b.$n=a,d.uniform2f(b.Ue,t,a));t=c[4];a=c[5];!b.Te||t===b.Xn&&a===b.Yn||(b.Xn=t,b.Yn=t,d.uniform2f(b.Te,t,a));t=c[6];b.Wg&&t!==b.bo&&(b.bo=t,d.uniform1f(b.Wg,t));t=c[7];b.Vg&&t!==b.ao&&(b.ao=t,d.uniform1f(b.Vg,t));t=c[8];a=c[9];!b.Zg||t===b.ko&&a===b.lo||(b.ko=t,b.lo=a,d.uniform2f(b.Zg,t,a));t=c[10];
a=c[11];!b.Yg||t===b.ho&&a===b.jo||(b.ho=t,b.jo=a,d.uniform2f(b.Yg,t,a));b.kl&&d.uniform1f(b.kl,Va()/1E3);if(b.K.length)for(c=0,a=b.K.length;c<a;c++)t=this.ep[c],t!==b.fl[c]&&(b.fl[c]=t,d.uniform1f(b.K[c][1],t))};g.prototype.zc=function(){this.Vc===this.md.length&&this.md.push(new d(0,this));return this.md[this.Vc++]};g.prototype.ae=function(){if(0!==this.Vc&&!this.k.isContextLost()){var c=this.k;0<this.Nf&&(c.bindBuffer(c.ARRAY_BUFFER,this.El),c.bufferData(c.ARRAY_BUFFER,this.Mo.subarray(0,this.Nf),
c.STREAM_DRAW),a&&0<=a.xc&&"<point>"===a.name&&c.vertexAttribPointer(a.xc,4,c.FLOAT,!1,0,0));if(0<this.gd){var a=this.sg;c.bindBuffer(c.ARRAY_BUFFER,this.Hh[this.od]);c.bufferData(c.ARRAY_BUFFER,this.qm.subarray(0,this.gd),c.STREAM_DRAW);a&&0<=a.xc&&"<point>"!==a.name&&c.vertexAttribPointer(a.xc,2,c.FLOAT,!1,0,0);c.bindBuffer(c.ARRAY_BUFFER,this.Bh[this.od]);c.bufferData(c.ARRAY_BUFFER,this.am.subarray(0,this.gd),c.STREAM_DRAW);a&&0<=a.ie&&"<point>"!==a.name&&c.vertexAttribPointer(a.ie,2,c.FLOAT,
!1,0,0)}for(var b,c=0,a=this.Vc;c<a;c++)switch(b=this.md[c],b.type){case 1:b.lr();break;case 2:b.rr();break;case 3:b.or();break;case 4:b.nr();break;case 5:b.tr();break;case 6:b.mr();break;case 7:b.jr();break;case 8:b.kr();break;case 9:b.pr();break;case 10:b.qr();break;case 11:b.sr()}this.Nf=this.gd=this.Vc=0;this.Rb=this.Ab=!1;this.od++;4<=this.od&&(this.od=0)}};g.prototype.Ze=function(c){if(c!==this.Pn){var a=this.zc();a.type=3;this.Pn=a.Ao=c;this.Rb=this.Ab=!1}};g.prototype.Xb=function(c){if(c!==
this.Pe){var a=this.zc();a.type=2;this.Pe=a.Qc=c;this.Rb=this.Ab=!1}};g.prototype.me=function(c,a){if(c!==this.Qn||a!==this.Nn){var b=this.zc();b.type=4;b.jc=c;b.tc=a;this.Qn=c;this.Nn=a;this.Rb=this.Ab=!1}};g.prototype.Yo=function(){this.me(this.k.ONE,this.k.ONE_MINUS_SRC_ALPHA)};g.prototype.rh=function(c,a,b,d,t,f,h,r){15992<=this.gd&&this.ae();var k=this.gd,n=this.qm,w=this.am;if(this.Ab)this.md[this.Vc-1].tc+=6;else{var g=this.zc();g.type=1;g.jc=k/4*3;g.tc=6;this.Ab=!0;this.Rb=!1}n[k]=c;w[k++]=
0;n[k]=a;w[k++]=0;n[k]=b;w[k++]=1;n[k]=d;w[k++]=0;n[k]=t;w[k++]=1;n[k]=f;w[k++]=1;n[k]=h;w[k++]=0;n[k]=r;w[k++]=1;this.gd=k};g.prototype.Gd=function(c,a,b,d,t,f,h,r,k){15992<=this.gd&&this.ae();var n=this.gd,w=this.qm,g=this.am;if(this.Ab)this.md[this.Vc-1].tc+=6;else{var p=this.zc();p.type=1;p.jc=n/4*3;p.tc=6;this.Ab=!0;this.Rb=!1}var p=k.left,e=k.top,q=k.right;k=k.bottom;w[n]=c;g[n++]=p;w[n]=a;g[n++]=e;w[n]=b;g[n++]=q;w[n]=d;g[n++]=e;w[n]=t;g[n++]=q;w[n]=f;g[n++]=k;w[n]=h;g[n++]=p;w[n]=r;g[n++]=
k;this.gd=n};g.prototype.Et=function(c,a,b,d){7996<=this.Nf&&this.ae();var g=this.Nf,f=this.Mo;if(this.Rb)this.md[this.Vc-1].tc++;else{var h=this.zc();h.type=8;h.jc=g;h.tc=1;this.Rb=!0;this.Ab=!1}f[g++]=c;f[g++]=a;f[g++]=b;f[g++]=d;this.Nf=g};g.prototype.dd=function(c){if(this.Mg!==c){if(!this.Qa[c]){if(0===this.Mg)return;c=0}var a=this.zc();a.type=9;this.Mg=a.jc=c;this.Rb=this.Ab=!1}};g.prototype.ph=function(c){c=this.Qa[c];return!(!c.Ue&&!c.Te)};g.prototype.Gl=function(c){c=this.Qa[c];return!!(c.Ue||
c.Te||c.$m)};g.prototype.Lt=function(c){c=this.Qa[c];return 0!==c.tk||0!==c.uk};g.prototype.ws=function(c){return this.Qa[c].tk};g.prototype.xs=function(c){return this.Qa[c].uk};g.prototype.ys=function(c,a){return this.Qa[c].K[a][2]};g.prototype.jj=function(c){return this.Qa[c].Qm};g.prototype.Rf=function(c,a,b,d,g,f,h,r,k,n,w,m,p,e){var q=this.Qa[this.Mg],u,y;if(q.Os||e.length){u=this.zc();u.type=10;u.X?cc(this.yc,u.X):u.X=bc();y=u.X;y[0]=a;y[1]=b;y[2]=d;y[3]=g;y[4]=f;y[5]=h;y[6]=r;y[7]=k;y[8]=n;
y[9]=w;y[10]=m;y[11]=p;u.Qc=q.Xg?c:null;if(e.length)for(b=u.ep,b.length=e.length,c=0,a=e.length;c<a;c++)b[c]=e[c];this.Rb=this.Ab=!1}};g.prototype.clear=function(c,a,b,d){var g=this.zc();g.type=7;g.jc=0;g.X||(g.X=bc());g.X[0]=c;g.X[1]=a;g.X[2]=b;g.X[3]=d;this.Rb=this.Ab=!1};g.prototype.clearRect=function(c,a,b,d){if(!(0>b||0>d)){var g=this.zc();g.type=7;g.jc=1;g.X||(g.X=bc());g.X[0]=c;g.X[1]=a;g.X[2]=b;g.X[3]=d;this.Rb=this.Ab=!1}};g.prototype.Kt=function(){this.ae();this.k.flush()};var s=[],l={};
g.prototype.$q=function(){s.length=0;l={}};g.prototype.Df=function(c,a,b,d){a=!!a;b=!!b;var g=c.src+","+a+","+b+(a?",undefined":""),f=null;if("undefined"!==typeof c.src&&l.hasOwnProperty(g))return f=l[g],f.Qh++,f;this.ae();var h=this.k,r=ia(c.width)&&ia(c.height),f=h.createTexture();h.bindTexture(h.TEXTURE_2D,f);h.pixelStorei(h.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var k=h.RGBA,n=h.RGBA,w=h.UNSIGNED_BYTE;if(d&&!this.Le)switch(d){case 1:n=k=h.RGB;break;case 2:w=h.UNSIGNED_SHORT_4_4_4_4;break;case 3:w=
h.UNSIGNED_SHORT_5_5_5_1;break;case 4:n=k=h.RGB,w=h.UNSIGNED_SHORT_5_6_5}if(!r&&a){d=document.createElement("canvas");d.width=ja(c.width);d.height=ja(c.height);var m=d.getContext("2d");m.webkitImageSmoothingEnabled=b;m.mozImageSmoothingEnabled=b;m.msImageSmoothingEnabled=b;m.imageSmoothingEnabled=b;m.drawImage(c,0,0,c.width,c.height,0,0,d.width,d.height);h.texImage2D(h.TEXTURE_2D,0,k,n,w,d)}else h.texImage2D(h.TEXTURE_2D,0,k,n,w,c);a?(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_S,h.REPEAT),h.texParameteri(h.TEXTURE_2D,
h.TEXTURE_WRAP_T,h.REPEAT)):(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_S,h.CLAMP_TO_EDGE),h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_T,h.CLAMP_TO_EDGE));b?(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MAG_FILTER,h.LINEAR),r&&this.en?(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MIN_FILTER,h.LINEAR_MIPMAP_LINEAR),h.generateMipmap(h.TEXTURE_2D)):h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MIN_FILTER,h.LINEAR)):(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MAG_FILTER,h.NEAREST),h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MIN_FILTER,
h.NEAREST));h.bindTexture(h.TEXTURE_2D,null);this.Pe=null;f.mg=c.width;f.lg=c.height;f.Qh=1;f.Vm=g;s.push(f);return l[g]=f};g.prototype.Yd=function(c,a,b){var d;this.ae();var g=this.k;this.Le&&(d=!1);var f=g.createTexture();g.bindTexture(g.TEXTURE_2D,f);g.texImage2D(g.TEXTURE_2D,0,g.RGBA,c,a,0,g.RGBA,d?g.UNSIGNED_SHORT_4_4_4_4:g.UNSIGNED_BYTE,null);g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_S,g.CLAMP_TO_EDGE);g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,g.CLAMP_TO_EDGE);g.texParameteri(g.TEXTURE_2D,
g.TEXTURE_MAG_FILTER,b?g.LINEAR:g.NEAREST);g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,b?g.LINEAR:g.NEAREST);g.bindTexture(g.TEXTURE_2D,null);this.Pe=null;f.mg=c;f.lg=a;s.push(f);return f};g.prototype.deleteTexture=function(c){c&&("undefined"!==typeof c.Qh&&1<c.Qh?c.Qh--:(this.ae(),c===this.Pe&&(this.k.bindTexture(this.k.TEXTURE_2D,null),this.Pe=null),c===this.Qe&&(this.k.activeTexture(this.k.TEXTURE1),this.k.bindTexture(this.k.TEXTURE_2D,null),this.k.activeTexture(this.k.TEXTURE0),this.Qe=
null),Ba(s,c),"undefined"!==typeof c.Vm&&delete l[c.Vm],this.k.deleteTexture(c)))};g.prototype.cd=function(c){if(c!==this.To){var a=this.zc();a.type=6;this.To=a.Qc=c;this.Rb=this.Ab=!1}};ib=g})();
(function(){function g(){return"undefined"!==typeof jQuery?jQuery(window).width():window.innerWidth}function m(){return"undefined"!==typeof jQuery?jQuery(window).height():window.innerHeight}function d(e){if(e&&(e.getContext||e.dc)&&!e.c2runtime){e.c2runtime=this;var a=this;this.uc=(this.Hg=/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.bb=!!e.dc;this.tf="undefined"!==typeof window.AppMobi||this.bb;this.gc=!!window.c2cocoonjs;this.Hc=!!window.c2ejecta;this.gc&&(CocoonJS.App.onSuspended.addEventListener(function(){a.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){a.setSuspended(!1)}));this.Hc&&(document.addEventListener("pagehide",function(){a.setSuspended(!0)}),document.addEventListener("pageshow",
function(){a.setSuspended(!1)}),document.addEventListener("resize",function(){a.setSize(window.innerWidth,window.innerHeight)}));this.da=this.bb||this.gc||this.Hc;this.Le=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent)||/edge\//i.test(navigator.userAgent);this.In=/tizen/i.test(navigator.userAgent);this.yi=/android/i.test(navigator.userAgent)&&!this.In&&!this.Le;this.dl=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&
!this.Le;this.Mn=/ipad/i.test(navigator.userAgent);this.Ei=this.dl||this.Mn||this.Hc;this.ct=this.dl&&/os\s6/i.test(navigator.userAgent);this.Gg=(/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent))&&!this.Le;this.Yk=/amazonwebappplatform/i.test(navigator.userAgent);this.Ws=/firefox/i.test(navigator.userAgent);this.Hn=/safari/i.test(navigator.userAgent)&&!this.Gg&&!this.Le;this.Zs=/windows/i.test(navigator.userAgent);this.ge="undefined"!==typeof window.c2nodewebkit||"undefined"!==
typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.Kn=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.bt=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.vf=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.bl=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.Jn=this.Kn||this.bt||this.bl;this.Vs=!("undefined"===typeof window.c2isBlackberry10||
!window.c2isBlackberry10);this.Ai=this.yi&&!this.Gg&&!this.Hg&&!this.Ws&&!this.Yk&&!this.da;this.devicePixelRatio=1;this.zd=this.uc||this.Hg||this.tf||this.gc||this.yi||this.Ei||this.vf||this.bl||this.Vs||this.In||this.Hc;this.zd||(this.zd=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));"undefined"===typeof cr_is_preview||this.ge||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||
(this.ge=!0);this.canvas=e;this.Ym=document.getElementById("c2canvasdiv");this.aa=this.n=this.k=null;this.Ak="";this.ii=!1;this.yo=this.zo=0;this.canvas.oncontextmenu=function(e){e.preventDefault&&e.preventDefault();return!1};this.canvas.onselectstart=function(e){e.preventDefault&&e.preventDefault();return!1};this.bb&&(window.c2runtime=this);this.ge&&(window.ondragover=function(e){e.preventDefault();return!1},window.ondrop=function(e){e.preventDefault();return!1},require("nw.gui").App.clearCache());
this.Ai&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=e.width;this.height=e.height;this.M=this.width;this.L=this.height;this.Xh=this.width;this.Wh=this.height;this.Og=window.innerWidth;this.Ng=window.innerHeight;this.hs=!1;this.ea=!0;this.Jg=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.m=[];this.Fa=[];this.Cf={};this.Tb=[];this.sk={};this.sd=[];this.gg=[];this.Fj=[];this.Tj=[];this.Rq=[];this.Ae={};this.Zk=
this.ee=!1;this.yd=0;this.al=!1;this.Fc=[];this.Ad=this.pb=this.Li=this.Sl="";this.zh=this.hp=!1;this.hk=this.$g=this.$d=this.Ce=0;this.$f=1;this.hc=new Za;this.hd=new Za;this.Vi=this.ki=this.fi=this.Zf=this.Se=this.zk=this.Ii=0;this.nd=null;this.ok=[];this.rk=[];this.ei=-1;this.ll=[[]];this.im=this.Ri=0;this.Il(null);this.so=this.dh=0;this.hl=!0;this.ug=0;this.Ah=[];this.fm=this.Jl=-1;this.Oe=!0;this.Pi=0;this.Ig=!1;this.du=0;this.hf=null;this.ha=this.rf=!1;this.xo=new ba;this.tl=new ba;this.ul=
new ba;this.Ot=[];this.Pc=new ab([]);this.$l=new ab([]);this.Td=[];this.ri={};this.kf={};this.gf={};this.fg={};this.Sm={};this.Tn=this.Ki=this.Sb=this.ic=this.Sn=this.Ji=this.Y=null;this.dg=this.cl=!1;this.Bk=[null,null];this.Fe=0;this.wk="";this.Ed={};this.sj=this.Ef=null;this.Ui=[];this.Pt()}}function s(e){e.target.result.createObjectStore("saves",{keyPath:"slot"})}function l(e,a,b,f){var c=indexedDB.open("_C2SaveStates");c.onupgradeneeded=s;c.onerror=f;c.onsuccess=function(c){c=c.target.result;
c.onerror=f;c.transaction(["saves"],"readwrite").objectStore("saves").put({slot:e,data:a}).onsuccess=b}}function c(e,a,b){var f=indexedDB.open("_C2SaveStates");f.onupgradeneeded=s;f.onerror=b;f.onsuccess=function(f){f=f.target.result;f.onerror=b;var c=f.transaction(["saves"]).objectStore("saves").get(e);c.onsuccess=function(){c.result?a(c.result.data):a(null)}}}function a(){H("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?
window.location.reload(!0):window.location+="?continuous"}function b(e){var a,b={};for(a in e)!e.hasOwnProperty(a)||e[a]instanceof ba||e[a]&&"undefined"!==typeof e[a].sv||(b[a]=e[a]);return b}d.prototype.Pt=function(){var e=this,a;a=this.vf?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest;var b="data.js";if(this.Kn||this.vf||this.bl)b="data.json";a.open("GET",b,!0);var f=!1;if(!this.da&&"response"in a&&"responseType"in a)try{a.responseType="json",f="json"===a.responseType}catch(c){f=!1}if(!f&&
"responseType"in a)try{a.responseType="text"}catch(k){}if("overrideMimeType"in a)try{a.overrideMimeType("application/json; charset=utf-8")}catch(p){}this.vf?a.onreadystatechange=function(){4===a.readyState&&e.Ni(JSON.parse(a.responseText))}:(a.onload=function(){if(f)e.Ni(a.response);else if(e.Hc){var b=a.responseText,b=b.substr(b.indexOf("{"));e.Ni(JSON.parse(b))}else e.Ni(JSON.parse(a.responseText))},a.onerror=function(e){ea("Error requesting "+b+":");ea(e)});a.send()};d.prototype.Ss=function(){var e=
this,a,b,f,c,k,p,d,h,r;this.devicePixelRatio=(this.Me=(!this.da||this.Hc)&&this.ou&&!this.Ai)?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.fb();b=!(!this.hs&&(!this.Vj||this.ge||this.Jn||this.vf||this.Hg||this.uc||this.Yk));0<this.lb&&this.setSize(g(),m(),!0);try{this.Dr&&(this.gc||this.Hc||!this.da)&&(a={alpha:b,depth:!1,antialias:!1,failIfMajorPerformanceCaveat:!0},this.k=this.canvas.getContext("webgl",a)||this.canvas.getContext("experimental-webgl",
a))}catch(n){}if(this.k){this.da||(this.cb=document.createElement("canvas"),jQuery(this.cb).appendTo(this.canvas.parentNode),this.cb.oncontextmenu=function(){return!1},this.cb.onselectstart=function(){return!1},this.cb.width=this.Xh,this.cb.height=this.Wh,jQuery(this.cb).css({width:this.Xh+"px",height:this.Wh+"px"}),this.Oo(),this.Dl=this.cb.getContext("2d"));this.n=new ib(this.k,this.zd);this.n.Sf(this.canvas.width,this.canvas.height);this.n.en=0!==this.ur;this.aa=null;this.canvas.addEventListener("webglcontextlost",
function(a){a.preventDefault();e.nt();H("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){e.n.Bn();e.n.Sf(e.n.width,e.n.height,!0);e.ic=null;e.Sb=null;e.Bk[0]=null;e.Bk[1]=null;e.ot();e.ea=!0;H("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);a=0;for(b=this.m.length;a<b;a++)for(k=this.m[a],f=0,c=k.G.length;f<c;f++)d=k.G[f],d.eb=this.n.Jk(d.id),this.dg=this.dg||this.n.ph(d.eb);a=0;for(b=this.Tb.length;a<
b;a++){h=this.Tb[a];f=0;for(c=h.G.length;f<c;f++)d=h.G[f],d.eb=this.n.Jk(d.id);f=0;for(c=h.J.length;f<c;f++)for(r=h.J[f],k=0,p=r.G.length;k<p;k++)d=r.G[k],d.eb=this.n.Jk(d.id),this.dg=this.dg||this.n.ph(d.eb)}}else{if(0<this.lb&&this.bb){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.aa=AppMobi.canvas.getContext("2d");try{this.aa.samplingMode=this.S?"smooth":"sharp",this.aa.globalScale=1,this.aa.HTML5CompatibilityMode=!0,this.aa.imageSmoothingEnabled=
this.S}catch(w){}0!==this.width&&0!==this.height&&(this.aa.width=this.width,this.aa.height=this.height)}this.aa||(a=this.gc?{antialias:!!this.S,alpha:b}:{alpha:b},this.aa=this.canvas.getContext("2d",a),this.aa.webkitImageSmoothingEnabled=this.S,this.aa.mozImageSmoothingEnabled=this.S,this.aa.msImageSmoothingEnabled=this.S,this.aa.imageSmoothingEnabled=this.S);this.Dl=this.cb=null}this.pp=function(a){e.Za(!1,a)};window==window.top||this.da||this.Jn||this.vf||(document.addEventListener("mousedown",
function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.gc&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(H("Reloading for continuous preview"),this.Li="__c2_continuouspreview",this.zh=!0),this.Ct&&!this.zd&&(jQuery(window).focus(function(){e.setSuspended(!1)}),jQuery(window).blur(function(){e.setSuspended(!0)})));this.da||(a=function(e){if(hb(e)&&
document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(a){}},window.navigator.pointerEnabled?document.addEventListener("pointerdown",a):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",a):document.addEventListener("touchstart",a),document.addEventListener("mousedown",a));0===this.lb&&this.Me&&1<this.devicePixelRatio&&this.setSize(this.Na,this.Ma,!0);this.up();this.Ls();
this.go();this.ua={}};d.prototype.setSize=function(e,a,b){var f=0,c=0,k=0,d=0,d=0,p=this.ct&&this.Hn&&!navigator.standalone&&!this.da&&!this.uc;p&&(a+=60);if(this.Og!==e||this.Ng!==a||b){this.Og=e;this.Ng=a;var h=this.lb,r=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.Ig)&&!this.uc;if(r||0!==this.lb||b)r&&0<this.Fe&&(h=this.Fe),b=this.devicePixelRatio,4<=h?(k=this.Na/this.Ma,e/a>k?(k*=a,5===h?(d=k*b/this.Na,1<d?d=Math.floor(d):1>d&&
(d=1/Math.ceil(1/d)),k=this.Na*d/b,d=this.Ma*d/b,f=(e-k)/2,c=(a-d)/2,e=k,a=d):(f=(e-k)/2,e=k)):(d=e/k,5===h?(d=d*b/this.Ma,1<d?d=Math.floor(d):1>d&&(d=1/Math.ceil(1/d)),k=this.Na*d/b,d=this.Ma*d/b,f=(e-k)/2,c=(a-d)/2,e=k):c=(a-d)/2,a=d),r&&!this.ge&&(c=f=0)):this.ge&&this.Ig&&0===this.mn&&(f=Math.floor((e-this.Na)/2),c=Math.floor((a-this.Ma)/2),e=this.Na,a=this.Ma),2>h&&(this.kg=b),this.Me&&this.Mn&&1<b&&(1024<=e&&(e=1023),1024<=a&&(a=1023)),this.Xh=Math.round(e),this.Wh=Math.round(a),this.width=
Math.round(e*b),this.height=Math.round(a*b),this.ea=!0,this.Fp?(this.M=this.width,this.L=this.height,this.oc=!0):this.width<this.Na&&this.height<this.Ma||1===h?(this.M=this.width,this.L=this.height,this.oc=!0):(this.M=this.Na,this.L=this.Ma,this.oc=!1,2===h?(k=this.Na/this.Ma,h=this.Og/this.Ng,h<k?this.M=this.L*h:h>k&&(this.L=this.M/h)):3===h&&(k=this.Na/this.Ma,h=this.Og/this.Ng,h>k?this.M=this.L*h:h<k&&(this.L=this.M/h))),this.Ym&&!this.da&&(jQuery(this.Ym).css({width:Math.round(e)+"px",height:Math.round(a)+
"px","margin-left":Math.floor(f)+"px","margin-top":Math.floor(c)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(e)+"px",height:Math.round(a)+"px"})),this.canvas&&(this.canvas.width=Math.round(e*b),this.canvas.height=Math.round(a*b),this.Hc?(this.canvas.style.left=Math.floor(f)+"px",this.canvas.style.top=Math.floor(c)+"px",this.canvas.style.width=Math.round(e)+"px",this.canvas.style.height=Math.round(a)+"px"):this.Me&&!this.da&&jQuery(this.canvas).css({width:Math.round(e)+
"px",height:Math.round(a)+"px"})),this.cb&&(this.cb.width=Math.round(e),this.cb.height=Math.round(a),jQuery(this.cb).css({width:Math.round(e)+"px",height:Math.round(a)+"px"})),this.n&&this.n.Sf(Math.round(e*b),Math.round(a*b)),this.bb&&this.aa&&(this.aa.width=Math.round(e),this.aa.height=Math.round(a)),this.aa&&(this.aa.webkitImageSmoothingEnabled=this.S,this.aa.mozImageSmoothingEnabled=this.S,this.aa.msImageSmoothingEnabled=this.S,this.aa.imageSmoothingEnabled=this.S),this.up(),this.da||!p&&!this.dl||
window.setTimeout(function(){window.scrollTo(0,1)},100)}};d.prototype.up=function(){if(this.Tq&&0!==this.Bl){var e="portrait";2===this.Bl&&(e="landscape");screen.orientation&&screen.orientation.lock?screen.orientation.lock(e):screen.lockOrientation?screen.lockOrientation(e):screen.webkitLockOrientation?screen.webkitLockOrientation(e):screen.mozLockOrientation?screen.mozLockOrientation(e):screen.msLockOrientation&&screen.msLockOrientation(e)}};d.prototype.nt=function(){this.n.$q();this.cl=!0;var e,
a,b;e=0;for(a=this.m.length;e<a;e++)b=this.m[e],b.Wi&&b.Wi()};d.prototype.ot=function(){this.cl=!1;var e,a,b;e=0;for(a=this.m.length;e<a;e++)b=this.m[e],b.Xi&&b.Xi()};d.prototype.Oo=function(){if(!this.da){var e=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.Ig)&&!this.uc?jQuery(this.canvas).offset():jQuery(this.canvas).position();e.position="absolute";jQuery(this.cb).css(e)}};var x=window.cancelAnimationFrame||window.mozCancelAnimationFrame||
window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;d.prototype.setSuspended=function(e){var a;if(e&&!this.Jg)for(H("[Construct 2] Suspending"),this.Jg=!0,-1!==this.Jl&&x&&x(this.Jl),-1!==this.fm&&clearTimeout(this.fm),e=0,a=this.Ah.length;e<a;e++)this.Ah[e](!0);else if(!e&&this.Jg){H("[Construct 2] Resuming");this.Jg=!1;this.Ii=Va();this.Se=Va();e=this.$g=this.ki=0;for(a=this.Ah.length;e<a;e++)this.Ah[e](!1);this.Za(!1)}};d.prototype.Pq=function(e){this.Ah.push(e)};
d.prototype.Qd=function(e){return this.Ui[e]};d.prototype.Ni=function(e){e&&e.project||ea("Project model unavailable");e=e.project;this.name=e[0];this.ln=e[1];this.lb=e[12];this.mn=e[12];this.Na=e[10];this.Ma=e[11];this.Ho=this.Na/2;this.Io=this.Ma/2;this.da&&!this.Hc&&(4<=e[12]||0===e[12])&&(H("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.mn=this.lb=3);this.pm=e[18];this.Ug=e[19];0===this.Ug&&(this.Ef=new Image,this.Ef.src=
"loading-logo.png");this.dh=e[21];this.Ui=gc();this.ed=new V(this);var a,b,f,c,k,d,h,p,r;a=0;for(b=e[2].length;a<b;a++)h=e[2][a],f=this.Qd(h[0]),jb(h,f.prototype),r=new f(this),r.qj=h[1],r.he=h[2],r.qo=h[9],r.ja&&r.ja(),this.plugins.push(r);this.Ui=gc();a=0;for(b=e[3].length;a<b;a++){h=e[3][a];k=this.Qd(h[1]);r=null;f=0;for(c=this.plugins.length;f<c;f++)if(this.plugins[f]instanceof k){r=this.plugins[f];break}var n=new r.gb(r);n.name=h[0];n.A=h[2];n.Xk=h[3].slice(0);n.qu=h[3].length;n.Uq=h[4];n.ks=
h[5];n.O=h[11];n.A?(n.Ti=[],n.td=this.ug++,n.pa=null):(n.Ti=null,n.td=-1,n.pa=[]);n.gi=null;n.nf=null;n.gn=null;n.Ic=!1;n.Ob=null;h[6]?(n.zj=h[6][0],n.Aj=h[6][1],n.Ch=h[6][2]):(n.zj=null,n.Aj=0,n.Ch=0);n.Mb=h[7]?h[7]:null;n.index=a;n.c=[];n.ai=[];n.oe=[new kb(n)];n.rd=0;n.Wc=null;n.fr=0;n.Xf=!0;n.Hj=lb;n.ps=mb;n.us=nb;n.ba=ob;n.qh=pb;n.Hl=rb;n.Of=sb;n.mi=tb;n.Dk=ub;n.Gk=vb;n.ld=wb;n.sn=xb;n.Th=new bb(this.Na,this.Ma);n.Ih=!0;n.Jh=!1;n.ua={};n.toString=yb;n.Fa=[];f=0;for(c=h[8].length;f<c;f++){p=h[8][f];
var g=this.Qd(p[1]),w=null;k=0;for(d=this.Fa.length;k<d;k++)if(this.Fa[k]instanceof g){w=this.Fa[k];break}w||(w=new g(this),w.ro=[],w.If=new ba,w.ja&&w.ja(),this.Fa.push(w));-1===w.ro.indexOf(n)&&w.ro.push(n);k=new w.gb(w,n);k.name=p[0];k.O=p[2];k.ja();n.Fa.push(k)}n.global=h[9];n.$k=h[10];n.G=[];f=0;for(c=h[12].length;f<c;f++)n.G.push({id:h[12][f][0],name:h[12][f][1],eb:-1,Ta:!0,index:f});n.Gv=h[13];this.pm&&!n.A&&!n.$k&&r.he||n.ja();n.name&&(this.types[n.name]=n);this.m.push(n);r.qj&&(f=new r.Ea(n),
f.uid=this.dh++,f.Ro=this.so++,f.Je=0,f.zg=zb,f.toString=Ab,f.Da=h[14],f.ja(),n.c.push(f),this.Ed[f.uid.toString()]=f)}a=0;for(b=e[4].length;a<b;a++)for(k=e[4][a],d=this.m[k[0]],f=1,c=k.length;f<c;f++)h=this.m[k[f]],h.pa.push(d),d.Ti.push(h);a=0;for(b=e[27].length;a<b;a++){k=e[27][a];d=[];f=0;for(c=k.length;f<c;f++)d.push(this.m[k[f]]);f=0;for(c=d.length;f<c;f++)d[f].Ic=!0,d[f].Ob=d}if(0<this.ug)for(a=0,b=this.m.length;a<b;a++)if(h=this.m[a],!h.A&&h.pa.length){h.gi=Array(this.ug);h.nf=Array(this.ug);
h.gn=Array(this.ug);n=[];f=w=g=p=0;for(c=h.pa.length;f<c;f++)for(r=h.pa[f],h.gi[r.td]=p,p+=r.qu,h.nf[r.td]=g,g+=r.Uq,h.gn[r.td]=w,w+=r.ks,k=0,d=r.G.length;k<d;k++)n.push(wa({},r.G[k]));h.G=n.concat(h.G);f=0;for(c=h.G.length;f<c;f++)h.G[f].index=f}a=0;for(b=e[5].length;a<b;a++)h=e[5][a],f=new Bb(this,h),this.Cf[f.name]=f,this.Tb.push(f);a=0;for(b=e[6].length;a<b;a++)h=e[6][a],f=new Cb(this,h),this.sk[f.name]=f,this.sd.push(f);a=0;for(b=this.sd.length;a<b;a++)this.sd[a].Ca();a=0;for(b=this.sd.length;a<
b;a++)this.sd[a].km();a=0;for(b=this.Fj.length;a<b;a++)this.Fj[a].Ca();this.Fj.length=0;this.Sq=e[7];this.wk=e[8];this.bd=e[9];this.kg=1;this.Dr=e[13];this.S=e[14];this.Vj=e[15];this.ou=e[17];this.Bl=e[20];this.Tq=0<this.Bl;this.Ct=e[22];this.oc=this.Fp=e[23];this.ur=e[24];this.It=e[25];this.vj=Date.now();this.Ui.length=0;this.Ss()};var t=!1;d.prototype.tm=function(e,a){e.cocoonLazyLoad=!0;e.onerror=function(a){t=e.Um=!0;console&&console.error&&console.error("Error loading image '"+e.src+"': ",a)};
this.Hc?e.src=a:e.src||("undefined"!==typeof XAPKReader?XAPKReader.get(a,function(a){e.src=a},function(b){t=e.Um=!0;console&&console.error&&console.error("Error extracting image '"+a+"' from expansion file: ",b)}):e.src=a);this.gg.push(e)};d.prototype.gs=function(e){var a,b;a=0;for(b=this.gg.length;a<b;a++)if(this.gg[a].br===e)return this.gg[a];return null};var f=0,h=!1;d.prototype.Ls=function(){this.hf&&(f=this.hf.au(this.Sq))};d.prototype.Rm=function(){var e=f,a=0,b=0,c=!0,k,d,b=0;for(k=this.gg.length;b<
k;b++){d=this.gg[b];var p=d.ik;if(!p||0>=p)p=5E4;e+=p;d.src&&(d.complete||d.loaded)&&!d.Um?a+=p:c=!1}c&&this.It&&this.hf&&(h||(this.hf.eu(),h=!0),b=this.hf.vs(),a+=b,b<f&&(c=!1));this.Ye=0==e?0:a/e;return c};d.prototype.go=function(){if(this.aa||this.n){var e=this.aa||this.Dl;this.cb&&this.Oo();this.Ye=0;this.Rn=-1;if(this.Rm())this.Ms();else{var a=Date.now()-this.vj;if(e){var b=this.width,f=this.height,c=this.devicePixelRatio;this.cb&&(b=this.Xh,f=this.Wh,c=1);if(3!==this.Ug&&(this.gc||500<=a&&this.Rn!=
this.Ye)){e.clearRect(0,0,b,f);var a=b/2,f=f/2,b=0===this.Ug&&this.Ef.complete,k=40*c,h=0,d=80*c,p;b&&(d=this.Ef.width*c,p=this.Ef.height*c,k=d/2,h=p/2,e.drawImage(this.Ef,Q(a-k),Q(f-h),d,p));1>=this.Ug?(a=Q(a-k)+.5,f=Q(f+(h+(b?12*c:0)))+.5,e.fillStyle=t?"red":"DodgerBlue",e.fillRect(a,f,Math.floor(d*this.Ye),6*c),e.strokeStyle="black",e.strokeRect(a,f,d,6*c),e.strokeStyle="white",e.strokeRect(a-1*c,f-1*c,d+2*c,8*c)):2===this.Ug&&(e.font=this.Hc?"12pt ArialMT":"12pt Arial",e.fillStyle=t?"#f00":"#999",
e.Fv="middle",c=Math.round(100*this.Ye)+"%",b=e.measureText?e.measureText(c):null,e.fillText(c,a-(b?b.width:0)/2,f))}this.Rn=this.Ye}setTimeout(function(e){return function(){e.go()}}(this),this.gc?10:100)}}};d.prototype.Ms=function(){this.cb&&(this.canvas.parentNode.removeChild(this.cb),this.cb=this.Dl=null);this.vj=Date.now();this.Se=Va();var e,a,b;if(this.pm)for(e=0,a=this.m.length;e<a;e++)b=this.m[e],b.A||b.$k||!b.Ba.he||b.ja();else this.Oe=!1;e=0;for(a=this.Tb.length;e<a;e++)this.Tb[e].cr();2<=
this.lb&&(e=this.Na/this.Ma,a=this.width/this.height,this.kg=2!==this.lb&&a>e||2===this.lb&&a<e?this.height/this.Ma:this.width/this.Na);this.ln?this.Cf[this.ln].Yl():this.Tb[0].Yl();this.pm||(this.Pi=1,this.trigger(V.prototype.e.Cm,null));navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();e=0;for(a=this.m.length;e<a;e++)b=this.m[e],b.mt&&b.mt();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.Za(!1);this.bb&&
AppMobi.webview.execute("onGameReady();")};var r=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;d.prototype.Za=function(e,a,b){if(this.Y){var f=Va();if(b||!this.Jg||e){e||(r?this.Jl=r(this.pp):this.fm=setTimeout(this.pp,this.zd?1:16));a=a||f;var c=this.lb;((b=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.uc)||this.Ig)&&
0<this.Fe&&(c=this.Fe);0<c&&(!this.Ei||window.self!==window.top)&&(c=window.innerHeight,this.Og===window.innerWidth&&this.Ng===c||this.setSize(g(),m()));this.da||(b?(this.ii||(this.Ak=jQuery(this.canvas).css("margin")||"0",this.ii=!0),this.Gg||this.ge||jQuery(this.canvas).css({"margin-left":""+Math.floor((screen.width-this.width/this.devicePixelRatio)/2)+"px","margin-top":""+Math.floor((screen.height-this.height/this.devicePixelRatio)/2)+"px"})):this.ii?(this.Gg||this.ge||jQuery(this.canvas).css("margin",
this.Ak),this.Ak="",this.ii=!1,0===this.lb&&this.setSize(Math.round(this.zo/this.devicePixelRatio),Math.round(this.yo/this.devicePixelRatio),!0)):(this.zo=this.width,this.yo=this.height));this.Oe&&(b=this.Rm(),this.Pi=this.Ye,b&&(this.Oe=!1,this.Ye=1,this.trigger(V.prototype.e.Cm,null)));this.gt(a);!this.ea&&!this.gc||this.cl||this.zh||e||(this.ea=!1,this.n?this.Qb():this.Gc(),this.sj&&(this.canvas&&this.canvas.toDataURL&&(this.canvas.toDataURL(this.sj[0],this.sj[1]),this.trigger(V.prototype.e.dq,
null)),this.sj=null));this.zv||(this.Zf++,this.fi++,this.ki++);this.$g+=Va()-f}}};d.prototype.gt=function(e){var a,b,f,c,k,h,d,p;1E3<=e-this.Se&&(this.Se+=1E3,1E3<=e-this.Se&&(this.Se=e),this.zk=this.ki,this.ki=0,this.hk=this.$g,this.$g=0);0!==this.Ii&&(a=e-this.Ii,0>a&&(a=0),this.$d=a/1E3,.5<this.$d?this.$d=0:.1<this.$d&&(this.$d=.1));this.Ii=e;this.Ce=this.$d*this.$f;this.hc.add(this.Ce);this.hd.add(this.$d);e=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||
this.Ig)&&!this.uc;2<=this.lb||e&&0<this.Fe?(a=this.Na/this.Ma,b=this.width/this.height,f=this.lb,e&&0<this.Fe&&(f=this.Fe),this.kg=2!==f&&b>a||2===f&&b<a?this.height/this.Ma:this.width/this.Na,this.Y&&(this.Y.Wo(this.Y.scrollX),this.Y.Xo(this.Y.scrollY))):this.kg=this.Me?this.devicePixelRatio:1;this.fb();this.yd++;this.ed.St();this.yd--;this.fb();this.yd++;b=this.xo.Sc();e=0;for(a=b.length;e<a;e++)b[e].Bv();e=0;for(a=this.m.length;e<a;e++)if(h=this.m[e],!h.A&&(h.Fa.length||h.pa.length))for(b=0,f=
h.c.length;b<f;b++)for(d=h.c[b],c=0,k=d.F.length;c<k;c++)d.F[c].Za();e=0;for(a=this.m.length;e<a;e++)if(h=this.m[e],!h.A&&(h.Fa.length||h.pa.length))for(b=0,f=h.c.length;b<f;b++)for(d=h.c[b],c=0,k=d.F.length;c<k;c++)p=d.F[c],p.Ht&&p.Ht();b=this.tl.Sc();e=0;for(a=b.length;e<a;e++)b[e].Za();this.yd--;this.Ns();for(e=0;this.nd&&10>e++;)this.bn(this.nd);e=0;for(a=this.sd.length;e<a;e++)this.sd[e].Qk=!1;this.Y.De&&this.Y.De.Pa();this.Ot.length=0;this.hl=!1;this.yd++;e=0;for(a=this.m.length;e<a;e++)if(h=
this.m[e],!h.A&&(h.Fa.length||h.pa.length))for(b=0,f=h.c.length;b<f;b++)for(d=h.c[b],c=0,k=d.F.length;c<k;c++)p=d.F[c],p.cm&&p.cm();b=this.ul.Sc();e=0;for(a=b.length;e<a;e++)b[e].cm();this.yd--};d.prototype.bn=function(e){var a=this.Y;this.Y.fu();var b,f,c,k,h,d,p;if(this.n)for(b=0,f=this.m.length;b<f;b++)h=this.m[b],h.A||!h.Gj||h.global&&0!==h.c.length||-1!==e.Eg.indexOf(h)||h.Gj();a==e&&(this.ed.Kb.length=0);e.Yl();b=0;for(f=this.m.length;b<f;b++)if(h=this.m[b],h.global||h.Ba.qj)for(e=0,a=h.c.length;e<
a;e++)if(d=h.c[e],d.Al&&d.Al(),d.F)for(c=0,k=d.F.length;c<k;c++)p=d.F[c],p.Al&&p.Al();this.hl=this.ea=!0;this.fb()};d.prototype.em=function(e){this.tl.add(e)};d.prototype.hu=function(e){this.ul.add(e)};d.prototype.Ek=function(e){return e&&-1!==e.bh?this.$d*e.bh:this.Ce};d.prototype.Gc=function(){this.Y.Gc(this.aa);this.bb&&this.aa.present()};d.prototype.Qb=function(){this.Y.Qb(this.n);this.n.Kt()};d.prototype.Nq=function(e){e&&this.ok.push(e)};d.prototype.pi=function(e){e=e.toString();return this.Ed.hasOwnProperty(e)?
this.Ed[e]:null};var k=[];d.prototype.Pd=function(e){var a,b;a=e.type.name;var f=null;if(this.Ae.hasOwnProperty(a)){if(f=this.Ae[a],f.contains(e))return}else f=k.length?k.pop():new ba,this.Ae[a]=f;f.add(e);this.ee=!0;if(e.Ic)for(a=0,b=e.siblings.length;a<b;a++)this.Pd(e.siblings[a]);this.Zk&&f.eg.push(e);this.yd++;this.trigger(Object.getPrototypeOf(e.type.Ba).e.gq,e);this.yd--};d.prototype.fb=function(){if(this.ee){var e,a,b,f,c,k;this.Zk=!0;b=0;for(c=this.Fc.length;b<c;++b)for(e=this.Fc[b],a=e.type,
a.c.push(e),f=0,k=a.pa.length;f<k;++f)a.pa[f].c.push(e),a.pa[f].Xf=!0;this.Fc.length=0;this.Wp();Ua(this.Ae);this.ee=this.Zk=!1}};d.prototype.Wp=function(){for(var e in this.Ae)this.Ae.hasOwnProperty(e)&&this.Kp(this.Ae[e])};d.prototype.Kp=function(e){var a=e.Sc(),b=a[0].type,f,c,h,d,p,n;Wa(b.c,e);b.Xf=!0;0===b.c.length&&(b.Jh=!1);f=0;for(c=b.pa.length;f<c;++f)n=b.pa[f],Wa(n.c,e),n.Xf=!0;f=0;for(c=this.ed.Kb.length;f<c;++f)if(p=this.ed.Kb[f],p.rb.hasOwnProperty(b.index)&&Wa(p.rb[b.index].wd,e),!b.A)for(h=
0,d=b.pa.length;h<d;++h)n=b.pa[h],p.rb.hasOwnProperty(n.index)&&Wa(p.rb[n.index].wd,e);if(p=a[0].d){if(p.Rc)for(h=p.c,f=0,c=h.length;f<c;++f)d=h[f],e.contains(d)&&(d.ma(),p.Vb.update(d,d.Gb,null),d.Gb.set(0,0,-1,-1));Wa(p.c,e);p.vh(0)}for(f=0;f<a.length;++f)this.Jp(a[f],b);e.clear();k.push(e);this.ea=!0};d.prototype.Jp=function(e,a){var b,f,c;b=0;for(f=this.ok.length;b<f;++b)this.ok[b](e);e.Xd&&a.Th.update(e,e.Xd,null);(b=e.d)&&b.Pf(e,!0);if(e.F)for(b=0,f=e.F.length;b<f;++b)c=e.F[b],c.eh&&c.eh(),
c.behavior.If.remove(e);this.xo.remove(e);this.tl.remove(e);this.ul.remove(e);e.eh&&e.eh();this.Ed.hasOwnProperty(e.uid.toString())&&delete this.Ed[e.uid.toString()];this.Vi--;100>a.ai.length&&a.ai.push(e)};var n=[];d.prototype.ze=function(e,a,b,f,c,k){var h,d,p,r;if(!e)return null;var g=this.m[e[1]],w=g.Ba.he;if(this.Oe&&w&&!g.$k||w&&!this.n&&11===e[0][11])return null;var m=a;w||(a=null);var l;g.ai.length?(l=g.ai.pop(),l.Nc=!0,g.Ba.Ea.call(l,g)):(l=new g.Ba.Ea(g),l.Nc=!1);l.uid=!b||k||this.Ed.hasOwnProperty(e[2].toString())?
this.dh++:e[2];this.Ed[l.uid.toString()]=l;l.Ro=this.so++;l.Je=g.c.length;h=0;for(d=this.Fc.length;h<d;++h)this.Fc[h].type===g&&l.Je++;l.zg=zb;l.toString=Ab;p=e[3];if(l.Nc)Ua(l.ua);else{l.ua={};if("undefined"!==typeof cr_is_preview)for(l.En=[],l.En.length=p.length,h=0,d=p.length;h<d;h++)l.En[h]=p[h][1];l.Ka=[];l.Ka.length=p.length}h=0;for(d=p.length;h<d;h++)l.Ka[h]=p[h][0];if(w){var t=e[0];l.x=fa(f)?t[0]:f;l.y=fa(c)?t[1]:c;l.z=t[2];l.width=t[3];l.height=t[4];l.depth=t[5];l.j=t[6];l.opacity=t[7];l.Bb=
t[8];l.Cb=t[9];l.sb=t[10];h=t[11];!this.n&&g.G.length&&(l.sb=h);l.ng=db(l.sb);this.k&&eb(l,l.sb,this.k);if(l.Nc){h=0;for(d=t[12].length;h<d;h++)for(p=0,r=t[12][h].length;p<r;p++)l.ta[h][p]=t[12][h][p];l.ya.set(0,0,0,0);l.Xd.set(0,0,-1,-1);l.Gb.set(0,0,-1,-1);l.Nb.Uf(l.ya);l.Zj.length=0}else{l.ta=t[12].slice(0);h=0;for(d=l.ta.length;h<d;h++)l.ta[h]=t[12][h].slice(0);l.U=[];l.Rd=[];l.Rd.length=g.G.length;l.ya=new ta(0,0,0,0);l.Xd=new ta(0,0,-1,-1);l.Gb=new ta(0,0,-1,-1);l.Nb=new ua;l.Zj=[];l.qa=Db;
l.Qq=Eb;l.$a=Fb;l.ma=Gb;l.nu=Hb;l.om=Ib;l.rc=Jb}l.Dh=!1;l.ku=0;l.ju=0;l.iu=null;14===t.length&&(l.Dh=!0,l.ku=t[13][0],l.ju=t[13][1],l.iu=t[13][2]);h=0;for(d=g.G.length;h<d;h++)l.Rd[h]=!0;l.Nd=Kb;l.Nd();l.Dp=!!l.U.length;l.Oh=!0;l.ak=!0;g.Ih=!0;l.visible=!0;l.bh=-1;l.d=a;l.Tc=a.c.length;"undefined"===typeof l.V&&(l.V=null);this.ea=l.xe=!0}var A;h=n.length=0;for(d=g.pa.length;h<d;h++)n.push.apply(n,g.pa[h].Fa);n.push.apply(n,g.Fa);if(l.Nc)for(h=0,d=n.length;h<d;h++){var x=n[h];A=l.F[h];A.Nc=!0;x.behavior.Ea.call(A,
x,l);t=e[4][h];p=0;for(r=t.length;p<r;p++)A.Da[p]=t[p];A.ja();x.behavior.If.add(l)}else for(l.F=[],h=0,d=n.length;h<d;h++)x=n[h],A=new x.behavior.Ea(x,l),A.Nc=!1,A.Da=e[4][h].slice(0),A.ja(),l.F.push(A),x.behavior.If.add(l);t=e[5];if(l.Nc)for(h=0,d=t.length;h<d;h++)l.Da[h]=t[h];else l.Da=t.slice(0);this.Fc.push(l);this.ee=!0;a&&(a.jg(l,!0),1!==a.Eb||1!==a.Fb)&&(g.Jh=!0);this.Vi++;if(g.Ic){if(l.Ic=!0,l.Nc?l.siblings.length=0:l.siblings=[],!b&&!k){h=0;for(d=g.Ob.length;h<d;h++)if(g.Ob[h]!==g){if(!g.Ob[h].Wc)return null;
l.siblings.push(this.ze(g.Ob[h].Wc,m,!1,w?l.x:f,w?l.y:c,!0))}h=0;for(d=l.siblings.length;h<d;h++)for(l.siblings[h].siblings.push(l),p=0;p<d;p++)h!==p&&l.siblings[h].siblings.push(l.siblings[p])}}else l.Ic=!1,l.siblings=null;l.ja();h=0;for(d=l.F.length;h<d;h++)l.F[h].Gt&&l.F[h].Gt();return l};d.prototype.wg=function(e){var a,b;a=0;for(b=this.Y.J.length;a<b;a++){var f=this.Y.J[a];if(gb(f.name,e))return f}return null};d.prototype.vd=function(e){e=Q(e);0>e&&(e=0);e>=this.Y.J.length&&(e=this.Y.J.length-
1);return this.Y.J[e]};d.prototype.fk=function(e){var a,b;a=0;for(b=e.length;a<b;a++)e[a].ba().ga=!0};d.prototype.qh=function(e){var a,b;a=0;for(b=e.length;a<b;a++)e[a].qh()};d.prototype.Hl=function(e){var a,b;a=0;for(b=e.length;a<b;a++)e[a].Hl()};d.prototype.Of=function(e){var a,b;a=0;for(b=e.length;a<b;a++)e[a].Of()};d.prototype.Ap=function(e){if(e.Ih){var a,b,f=e.c;a=0;for(b=f.length;a<b;++a)f[a].om();f=this.Fc;a=0;for(b=f.length;a<b;++a)f[a].type===e&&f[a].om();e.Ih=!1}};d.prototype.os=function(e,
a,b,f){var c,h,k=e?1!==e.Eb||1!==e.Fb:!1;if(a.A)for(e=0,c=a.Ti.length;e<c;++e)h=a.Ti[e],k||h.Jh?za(f,h.c):(this.Ap(h),h.Th.kj(b,f));else k||a.Jh?za(f,a.c):(this.Ap(a),a.Th.kj(b,f))};d.prototype.Yf=function(e,a,b,f){var c=e.ba(),h,k,d,p,n,r;if(c.ga)for(f||(c.ga=!1,c.c.length=0),h=0,p=e.c.length;h<p;h++){if(d=e.c[h],d.ma(),n=d.d.na(a,b,!0),r=d.d.na(a,b,!1),d.$a(n,r)){if(f)return!1;c.c.push(d)}}else{h=k=0;for(p=c.c.length;h<p;h++)if(d=c.c[h],d.ma(),n=d.d.na(a,b,!0),r=d.d.na(a,b,!1),d.$a(n,r)){if(f)return!1;
c.c[k]=c.c[h];k++}f||(c.c.length=k)}e.ld();return f?!0:c.Pk()};d.prototype.gu=function(e,a){if(!(e&&a&&e!==a&&e.xe&&a.xe))return!1;e.ma();a.ma();var b=e.d,f=a.d,c,h,k,d,p,n,r,g;if(b===f||b.Eb===f.Eb&&f.Fb===f.Fb&&b.scale===f.scale&&b.j===f.j&&b.kb===f.kb){if(!e.ya.Ts(a.ya)||!e.Nb.Fn(a.Nb)||e.Dh&&a.Dh)return!1;if(e.Dh)return this.np(e,a);if(a.Dh)return this.np(a,e);r=e.V&&!e.V.wf();c=a.V&&!a.V.wf();if(!r&&!c)return!0;r?(e.V.jf(e.width,e.height,e.j),r=e.V):(this.Pc.Tf(e.Nb,e.x,e.y,e.width,e.height),
r=this.Pc);c?(a.V.jf(a.width,a.height,a.j),g=a.V):(this.Pc.Tf(a.Nb,a.x,a.y,a.width,a.height),g=this.Pc);return r.Fg(g,a.x-e.x,a.y-e.y)}r=e.V&&!e.V.wf();c=a.V&&!a.V.wf();r?(e.V.jf(e.width,e.height,e.j),this.Pc.cp(e.V)):this.Pc.Tf(e.Nb,e.x,e.y,e.width,e.height);r=this.Pc;c?(a.V.jf(a.width,a.height,a.j),this.$l.cp(a.V)):this.$l.Tf(a.Nb,a.x,a.y,a.width,a.height);g=this.$l;c=0;for(h=r.Mc;c<h;c++)k=2*c,d=k+1,p=r.Oa[k],n=r.Oa[d],r.Oa[k]=b.nb(p+e.x,n+e.y,!0),r.Oa[d]=b.nb(p+e.x,n+e.y,!1);r.ma();c=0;for(h=
g.Mc;c<h;c++)k=2*c,d=k+1,p=g.Oa[k],n=g.Oa[d],g.Oa[k]=f.nb(p+a.x,n+a.y,!0),g.Oa[d]=f.nb(p+a.x,n+a.y,!1);g.ma();return r.Fg(g,0,0)};var w=new ua;new ta(0,0,0,0);var A=[];d.prototype.np=function(e,a){var b,f,c,h,k=a.ya,d=e.x,p=e.y;e.vv(k,A);var r=a.V&&!a.V.wf();b=0;for(f=A.length;b<f;++b)if(c=A[b],h=c.Cv,k.Us(h,d,p)&&(w.Uf(h),w.offset(d,p),w.Fn(a.Nb)))if(r)if(a.V.jf(a.width,a.height,a.j),c.Fl){if(c.Fl.Fg(a.V,a.x-(d+h.left),a.y-(p+h.top)))return A.length=0,!0}else{if(this.Pc.Tf(w,0,0,h.right-h.left,h.bottom-
h.top),this.Pc.Fg(a.V,a.x,a.y))return A.length=0,!0}else if(c.Fl){if(this.Pc.Tf(a.Nb,0,0,a.width,a.height),c.Fl.Fg(this.Pc,-(d+h.left),-(p+h.top)))return A.length=0,!0}else return A.length=0,!0;A.length=0;return!1};d.prototype.vp=function(e,a){if(!a)return!1;var b,f,c,h,k;b=0;for(f=e.Fa.length;b<f;b++)if(e.Fa[b].behavior instanceof a)return!0;if(!e.A)for(b=0,f=e.pa.length;b<f;b++)for(k=e.pa[b],c=0,h=k.Fa.length;c<h;c++)if(k.Fa[c].behavior instanceof a)return!0;return!1};d.prototype.wp=function(e){return this.vp(e,
Zb.Ru)};d.prototype.jm=function(e){return this.vp(e,Zb.Su)};var p=-1;d.prototype.trigger=function(e,a,b){if(!this.Y)return!1;var f=this.Y.De;if(!f)return!1;var c=!1,h,k,d;p++;var r=f.mk;k=0;for(d=r.length;k<d;++k)h=this.sp(e,a,r[k],b),c=c||h;h=this.sp(e,a,f,b);p--;return c||h};d.prototype.sp=function(e,a,b,f){var c=!1,h,k,d,p;if(a)for(d=this.hm(e,a,a.type.name,b,f),c=c||d,p=a.type.pa,h=0,k=p.length;h<k;++h)d=this.hm(e,a,p[h].name,b,f),c=c||d;else d=this.hm(e,a,"system",b,f),c=c||d;return c};d.prototype.hm=
function(e,a,b,f,c){var h,k=!1,d=!1,d="undefined"!==typeof c,p=(d?f.jn:f.tp)[b];if(!p)return k;var r=null;f=0;for(h=p.length;f<h;++f)if(p[f].method==e){r=p[f].tg;break}if(!r)return k;e=d?r[c]:r;if(!e)return null;f=0;for(h=e.length;f<h;f++)c=e[f][0],d=e[f][1],d=this.ds(a,b,c,d),k=k||d;return k};d.prototype.ds=function(e,a,b,f){var c,h,k=!1;this.im++;var d=this.mb().Pb;d&&this.qh(d.ne);var r=1<this.im;this.qh(b.ne);r&&this.Mt();var n=this.Il(b);n.Pb=b;e&&(c=this.types[a].ba(),c.ga=!1,c.c.length=1,c.c[0]=
e,this.types[a].ld());e=!0;if(b.parent){a=n.mp;for(c=b.parent;c;)a.push(c),c=c.parent;a.reverse();c=0;for(h=a.length;c<h;c++)if(!a[c].Ut()){e=!1;break}}e&&(this.fi++,b.Kc?b.Tt(f):b.Pa(),k=k||n.Re);this.No();r&&this.Ft();this.Of(b.ne);d&&this.Of(d.ne);this.ee&&0===this.yd&&0===p&&!this.al&&this.fb();this.im--;return k};d.prototype.ni=function(){var e=this.mb();return e.Pb.hb[e.yb]};d.prototype.Mt=function(){this.Ri++;this.Ri>=this.ll.length&&this.ll.push([])};d.prototype.Ft=function(){this.Ri--};d.prototype.qn=
function(){return this.ll[this.Ri]};d.prototype.Il=function(e){this.ei++;this.ei>=this.rk.length&&this.rk.push(new Lb);var a=this.mb();a.reset(e);return a};d.prototype.No=function(){this.ei--};d.prototype.mb=function(){return this.rk[this.ei]};d.prototype.rn=function(e,a){for(var b,f,c,h,k,d;a;){b=0;for(f=a.Ac.length;b<f;b++)if(d=a.Ac[b],d instanceof Mb&&gb(e,d.name))return d;a=a.parent}b=0;for(f=this.sd.length;b<f;b++)for(k=this.sd[b],c=0,h=k.be.length;c<h;c++)if(d=k.be[c],d instanceof Mb&&gb(e,
d.name))return d;return null};d.prototype.tn=function(a){var b,f;b=0;for(f=this.Tb.length;b<f;b++)if(this.Tb[b].O===a)return this.Tb[b];return null};d.prototype.qi=function(a){var b,f;b=0;for(f=this.m.length;b<f;b++)if(this.m[b].O===a)return this.m[b];return null};d.prototype.qs=function(a){var b,f;b=0;for(f=this.Td.length;b<f;b++)if(this.Td[b].O===a)return this.Td[b];return null};d.prototype.Ns=function(){var e=this,b=this.Sl,f=this.Ad,h=this.Li,k=!1;this.hp&&(k=!0,b="__c2_continuouspreview",this.hp=
!1);if(b.length){this.fb();f=this.Yt();if(window.indexedDB&&!this.gc)l(b,f,function(){H("Saved state to IndexedDB storage ("+f.length+" bytes)");e.Ad=f;e.trigger(V.prototype.e.Qj,null);e.Ad="";k&&a()},function(c){try{localStorage.setItem("__c2save_"+b,f),H("Saved state to WebStorage ("+f.length+" bytes)"),e.Ad=f,e.trigger(V.prototype.e.Qj,null),e.Ad="",k&&a()}catch(h){H("Failed to save game state: "+c+"; "+h)}});else try{localStorage.setItem("__c2save_"+b,f),H("Saved state to WebStorage ("+f.length+
" bytes)"),e.Ad=f,this.trigger(V.prototype.e.Qj,null),e.Ad="",k&&a()}catch(d){H("Error saving to WebStorage: "+d)}this.pb=this.Li=this.Sl=""}h.length&&(window.indexedDB&&!this.gc?c(h,function(a){a?(e.pb=a,H("Loaded state from IndexedDB storage ("+e.pb.length+" bytes)")):(e.pb=localStorage.getItem("__c2save_"+h)||"",H("Loaded state from WebStorage ("+e.pb.length+" bytes)"));e.zh=!1;e.pb.length||e.trigger(V.prototype.e.Oj,null)},function(){e.pb=localStorage.getItem("__c2save_"+h)||"";H("Loaded state from WebStorage ("+
e.pb.length+" bytes)");e.zh=!1;e.pb.length||e.trigger(V.prototype.e.Oj,null)}):(this.pb=localStorage.getItem("__c2save_"+h)||"",H("Loaded state from WebStorage ("+this.pb.length+" bytes)"),this.zh=!1,e.pb.length||e.trigger(V.prototype.e.Oj,null)),this.Sl=this.Li="");this.pb.length&&(this.fb(),this.et(this.pb),this.Ad=this.pb,this.trigger(V.prototype.e.qq,null),this.pb=this.Ad="")};d.prototype.Yt=function(){var a,f,c,h,k,d,p,r={c2save:!0,version:1,rt:{time:this.hc.Z,walltime:this.hd.Z,timescale:this.$f,
tickcount:this.Zf,execcount:this.fi,next_uid:this.dh,running_layout:this.Y.O,start_time_offset:Date.now()-this.vj},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};a=0;for(f=this.m.length;a<f;a++)if(k=this.m[a],!k.A&&!this.wp(k)){d={instances:[]};Ta(k.ua)&&(d.ex=b(k.ua));c=0;for(h=k.c.length;c<h;c++)d.instances.push(this.Rl(k.c[c]));r.types[k.O.toString()]=d}a=0;for(f=this.Tb.length;a<f;a++)c=this.Tb[a],r.layouts[c.O.toString()]=c.Wb();h=r.events.groups;a=0;for(f=this.Td.length;a<f;a++)c=
this.Td[a],h[c.O.toString()]=this.ri[c.Bg].Ag;f=r.events.cnds;for(p in this.kf)this.kf.hasOwnProperty(p)&&(a=this.kf[p],Ta(a.ua)&&(f[p]={ex:b(a.ua)}));f=r.events.acts;for(p in this.gf)this.gf.hasOwnProperty(p)&&(a=this.gf[p],Ta(a.ua)&&(f[p]={ex:a.ua}));f=r.events.vars;for(p in this.fg)this.fg.hasOwnProperty(p)&&(a=this.fg[p],a.Bi||a.parent&&!a.Lg||(f[p]=a.data));r.system=this.ed.Wb();return JSON.stringify(r)};d.prototype.So=function(){var a,b,f,c,h,k;this.Ed={};a=0;for(b=this.m.length;a<b;a++)if(f=
this.m[a],!f.A)for(c=0,h=f.c.length;c<h;c++)k=f.c[c],this.Ed[k.uid.toString()]=k};d.prototype.et=function(a){a=JSON.parse(a);if(a.c2save&&!(1<a.version)){var b=a.rt;this.hc.reset();this.hc.Z=b.time;this.hd.reset();this.hd.Z=b.walltime||0;this.$f=b.timescale;this.Zf=b.tickcount;this.fi=b.execcount;this.vj=Date.now()-b.start_time_offset;var f=b.running_layout;if(f!==this.Y.O)if(f=this.tn(f))this.bn(f);else return;var c,h,k,d,p,r,n;r=a.types;for(h in r)if(r.hasOwnProperty(h)&&(d=this.qi(parseInt(h,10)))&&
!d.A&&!this.wp(d)){r[h].ex?d.ua=r[h].ex:Ua(d.ua);p=d.c;k=r[h].instances;f=0;for(c=na(p.length,k.length);f<c;f++)this.Mi(p[f],k[f]);f=k.length;for(c=p.length;f<c;f++)this.Pd(p[f]);f=p.length;for(c=k.length;f<c;f++){p=null;if(d.Ba.he&&(p=this.Y.oi(k[f].w.l),!p))continue;p=this.ze(d.Wc,p,!1,0,0,!0);this.Mi(p,k[f])}d.Xf=!0}this.fb();this.So();c=a.layouts;for(h in c)c.hasOwnProperty(h)&&(f=this.tn(parseInt(h,10)))&&f.wc(c[h]);c=a.events.groups;for(h in c)c.hasOwnProperty(h)&&(f=this.qs(parseInt(h,10)))&&
this.ri[f.Bg]&&this.ri[f.Bg].Zo(c[h]);f=a.events.cnds;for(h in f)f.hasOwnProperty(h)&&this.kf.hasOwnProperty(h)&&(this.kf[h].ua=f[h].ex);f=a.events.acts;for(h in f)f.hasOwnProperty(h)&&this.gf.hasOwnProperty(h)&&(this.gf[h].ua=f[h].ex);f=a.events.vars;for(h in f)f.hasOwnProperty(h)&&this.fg.hasOwnProperty(h)&&(this.fg[h].data=f[h]);this.dh=b.next_uid;this.ed.wc(a.system);f=0;for(c=this.m.length;f<c;f++)if(d=this.m[f],!d.A)for(h=0,a=d.c.length;h<a;h++){p=d.c[h];if(d.Ic)for(r=p.zg(),b=p.siblings.length=
0,k=d.Ob.length;b<k;b++)n=d.Ob[b],d!==n&&p.siblings.push(n.c[r]);p.jd&&p.jd();if(p.F)for(b=0,k=p.F.length;b<k;b++)r=p.F[b],r.jd&&r.jd()}this.ea=!0}};d.prototype.Rl=function(a,f){var c,h,k,d,p;d=a.type;k=d.Ba;var r={};f?r.c2=!0:r.uid=a.uid;Ta(a.ua)&&(r.ex=b(a.ua));if(a.Ka&&a.Ka.length)for(r.ivs={},c=0,h=a.Ka.length;c<h;c++)r.ivs[a.type.Xk[c].toString()]=a.Ka[c];if(k.he){k={x:a.x,y:a.y,w:a.width,h:a.height,l:a.d.O,zi:a.rc()};0!==a.j&&(k.a=a.j);1!==a.opacity&&(k.o=a.opacity);.5!==a.Bb&&(k.hX=a.Bb);.5!==
a.Cb&&(k.hY=a.Cb);0!==a.sb&&(k.bm=a.sb);a.visible||(k.v=a.visible);a.xe||(k.ce=a.xe);-1!==a.bh&&(k.mts=a.bh);if(d.G.length)for(k.fx=[],c=0,h=d.G.length;c<h;c++)p=d.G[c],k.fx.push({name:p.name,active:a.Rd[p.index],params:a.ta[p.index]});r.w=k}if(a.F&&a.F.length)for(r.behs={},c=0,h=a.F.length;c<h;c++)d=a.F[c],d.Wb&&(r.behs[d.type.O.toString()]=d.Wb());a.Wb&&(r.data=a.Wb());return r};d.prototype.ss=function(a,b){var f,c;f=0;for(c=a.Xk.length;f<c;f++)if(a.Xk[f]===b)return f;return-1};d.prototype.ns=function(a,
b){var f,c;f=0;for(c=a.F.length;f<c;f++)if(a.F[f].type.O===b)return f;return-1};d.prototype.Mi=function(a,b,f){var c,h,k,d,p;p=a.type;k=p.Ba;if(f){if(!b.c2)return}else a.uid=b.uid;b.ex?a.ua=b.ex:Ua(a.ua);if(h=b.ivs)for(c in h)h.hasOwnProperty(c)&&(f=this.ss(p,parseInt(c,10)),0>f||f>=a.Ka.length||(a.Ka[f]=h[c]));if(k.he){k=b.w;a.d.O!==k.l&&(f=a.d,a.d=this.Y.oi(k.l),a.d?(f.Pf(a,!0),a.d.jg(a,!0),a.qa(),a.d.vh(0)):(a.d=f,this.Pd(a)));a.x=k.x;a.y=k.y;a.width=k.w;a.height=k.h;a.Tc=k.zi;a.j=k.hasOwnProperty("a")?
k.a:0;a.opacity=k.hasOwnProperty("o")?k.o:1;a.Bb=k.hasOwnProperty("hX")?k.hX:.5;a.Cb=k.hasOwnProperty("hY")?k.hY:.5;a.visible=k.hasOwnProperty("v")?k.v:!0;a.xe=k.hasOwnProperty("ce")?k.ce:!0;a.bh=k.hasOwnProperty("mts")?k.mts:-1;a.sb=k.hasOwnProperty("bm")?k.bm:0;a.ng=db(a.sb);this.k&&eb(a,a.sb,this.k);a.qa();if(k.hasOwnProperty("fx"))for(f=0,h=k.fx.length;f<h;f++)d=p.Gk(k.fx[f].name),0>d||(a.Rd[d]=k.fx[f].active,a.ta[d]=k.fx[f].params);a.Nd()}if(p=b.behs)for(c in p)p.hasOwnProperty(c)&&(k=this.ns(a,
parseInt(c,10)),0>k||a.F[k].wc(p[c]));b.data&&a.wc(b.data)};Nb=function(a){return new d(document.getElementById(a))};Ob=function(a,b){return new d({dc:!0,width:a,height:b})};window.cr_createRuntime=Nb;window.cr_createDCRuntime=Ob;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.Ev=!0;document.body.appendChild(a);a=new d(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 d(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();window.cr_getC2Runtime=function(){var g=document.getElementById("c2canvas");return g?g.c2runtime:window.c2runtime?window.c2runtime:null};
window.cr_sizeCanvas=function(g,m){if(0!==g&&0!==m){var d=window.cr_getC2Runtime();d&&d.setSize(g,m)}};window.cr_setSuspended=function(g){var m=window.cr_getC2Runtime();m&&m.setSuspended(g)};
(function(){function g(a,b){this.b=a;this.De=null;this.scrollX=this.b.Na/2;this.scrollY=this.b.Ma/2;this.scale=1;this.j=0;this.of=!0;this.name=b[0];this.width=b[1];this.height=b[2];this.xp=b[3];this.fp=b[4];this.O=b[5];var c=b[6],k,d;this.J=[];this.Eg=[];k=0;for(d=c.length;k<d;k++){var g=new Pb(this,c[k]);g.vo=k;this.J.push(g)}c=b[7];this.Ke=[];k=0;for(d=c.length;k<d;k++){var g=c[k],l=this.b.m[g[1]];l.Wc||(l.Wc=g);this.Ke.push(g);-1===this.Eg.indexOf(l)&&this.Eg.push(l)}this.G=[];this.U=[];this.ta=
[];k=0;for(d=b[8].length;k<d;k++)this.G.push({id:b[8][k][0],name:b[8][k][1],eb:-1,Ta:!0,index:k}),this.ta.push(b[8][k][2].slice(0));this.Nd();this.sh=new ta(0,0,1,1);this.Kl=new ta(0,0,1,1);this.je={}}function m(a,b){return a.Tc-b.Tc}function d(a,b){this.Va=a;this.b=a.b;this.c=[];this.scale=1;this.j=0;this.Be=!1;this.Ld=new ta(0,0,0,0);this.qp=new ua;this.Ha=this.xa=this.Ia=this.wa=0;this.cf=!1;this.Od=-1;this.name=b[0];this.index=b[1];this.O=b[2];this.visible=b[3];this.Vd=b[4];this.Md=b[5];this.Eb=
b[6];this.Fb=b[7];this.opacity=b[8];this.yk=b[9];this.Rc=b[10];this.kb=b[11];this.sb=b[12];this.Cr=b[13];this.ng="source-over";this.ib=this.jb=0;this.Vb=null;this.Bf=s();this.Hd=!0;this.Hi=new ta(0,0,-1,-1);this.mc=new ta(0,0,-1,-1);this.Rc&&(this.Vb=new cb(this.b.Na,this.b.Ma));this.ke=!1;var c=b[14],k,d;this.kp=[];this.fc=[];this.qg=[];k=0;for(d=c.length;k<d;k++){var g=c[k],l=this.b.m[g[1]];l.Wc||(l.Wc=g,l.fr=this.index);this.fc.push(g);-1===this.Va.Eg.indexOf(l)&&this.Va.Eg.push(l)}ya(this.kp,
this.fc);this.G=[];this.U=[];this.ta=[];k=0;for(d=b[15].length;k<d;k++)this.G.push({id:b[15][k][0],name:b[15][k][1],eb:-1,Ta:!0,index:k}),this.ta.push(b[15][k][2].slice(0));this.Nd();this.sh=new ta(0,0,1,1);this.Kl=new ta(0,0,1,1)}function s(){return b.length?b.pop():[]}function l(a){a.length=0;b.push(a)}g.prototype.Xt=function(a){var b=a.type.O.toString();this.je.hasOwnProperty(b)||(this.je[b]=[]);this.je[b].push(this.b.Rl(a))};g.prototype.xn=function(){var a=this.J[0];return!a.Md&&1===a.opacity&&
!a.yk&&a.visible};g.prototype.Nd=function(){this.U.length=0;var a,b,c;a=0;for(b=this.G.length;a<b;a++)c=this.G[a],c.Ta&&this.U.push(c)};g.prototype.Fk=function(a){var b,c,k;b=0;for(c=this.G.length;b<c;b++)if(k=this.G[b],k.name===a)return k;return null};var c=[],a=!0;g.prototype.Yl=function(){this.fp&&(this.De=this.b.sk[this.fp],this.De.km());this.b.Y=this;this.scrollX=this.b.Na/2;this.scrollY=this.b.Ma/2;var b,h,d,k,n,g,l;b=0;for(d=this.b.m.length;b<d;b++)if(h=this.b.m[b],!h.A)for(n=h.c,h=0,k=n.length;h<
k;h++)if(g=n[h],g.d){var p=g.d.vo;p>=this.J.length&&(p=this.J.length-1);g.d=this.J[p];-1===g.d.c.indexOf(g)&&g.d.c.push(g);g.d.cf=!0}if(!a)for(b=0,d=this.J.length;b<d;++b)this.J[b].c.sort(m);c.length=0;this.Vq();b=0;for(d=this.J.length;b<d;b++)g=this.J[b],g.dr(),g.mm();n=!1;if(!this.of){for(l in this.je)if(this.je.hasOwnProperty(l)&&(h=this.b.qi(parseInt(l,10)))&&!h.A&&this.b.jm(h)){k=this.je[l];b=0;for(d=k.length;b<d;b++){g=null;if(h.Ba.he&&(g=this.oi(k[b].w.l),!g))continue;g=this.b.ze(h.Wc,g,!1,
0,0,!0);this.b.Mi(g,k[b]);n=!0;c.push(g)}k.length=0}b=0;for(d=this.J.length;b<d;b++)this.J[b].c.sort(m),this.J[b].cf=!0}n&&(this.b.fb(),this.b.So());for(b=0;b<c.length;b++)if(g=c[b],g.type.Ic)for(d=g.zg(),h=0,k=g.type.Ob.length;h<k;h++)l=g.type.Ob[h],g.type!==l&&(l.c.length>d?g.siblings.push(l.c[d]):l.Wc&&(n=this.b.ze(l.Wc,g.d,!0,g.x,g.y,!0),this.b.fb(),l.Hj(),g.siblings.push(n),c.push(n)));b=0;for(d=this.Ke.length;b<d;b++)this.b.ze(this.Ke[b],null,!0);this.b.nd=null;this.b.fb();if(this.b.aa&&!this.b.da)for(b=
0,d=this.b.m.length;b<d;b++)l=this.b.m[b],!l.A&&l.c.length&&l.ij&&l.ij(this.b.aa);b=0;for(d=c.length;b<d;b++)g=c[b],this.b.trigger(Object.getPrototypeOf(g.type.Ba).e.fq,g);c.length=0;this.b.trigger(V.prototype.e.Bm,null);this.of=!1};g.prototype.cr=function(){var a,b,c,k,d;b=a=0;for(c=this.Ke.length;a<c;a++)k=this.Ke[a],d=this.b.m[k[1]],d.global?this.b.ze(k,null,!0):(this.Ke[b]=k,b++);this.Ke.length=b};g.prototype.fu=function(){this.b.trigger(V.prototype.e.pq,null);this.b.ed.Kb.length=0;var b,c,d,
k,n,g;if(!this.of)for(b=0,c=this.J.length;b<c;b++)for(this.J[b].nm(),n=this.J[b].c,d=0,k=n.length;d<k;d++)g=n[d],g.type.global||this.b.jm(g.type)&&this.Xt(g);b=0;for(c=this.J.length;b<c;b++){n=this.J[b].c;d=0;for(k=n.length;d<k;d++)g=n[d],g.type.global||this.b.Pd(g);this.b.fb();n.length=0;this.J[b].cf=!0}b=0;for(c=this.b.m.length;b<c;b++)if(n=this.b.m[b],!(n.global||n.Ba.he||n.Ba.qj||n.A)){d=0;for(k=n.c.length;d<k;d++)this.b.Pd(n.c[d]);this.b.fb()}a=!1};new ta(0,0,0,0);g.prototype.Gc=function(a){var b,
c=a,k=!1,d=!this.b.oc;d&&(this.b.Ki||(this.b.Ki=document.createElement("canvas"),b=this.b.Ki,b.width=this.b.M,b.height=this.b.L,this.b.Tn=b.getContext("2d"),k=!0),b=this.b.Ki,c=this.b.Tn,b.width!==this.b.M&&(b.width=this.b.M,k=!0),b.height!==this.b.L&&(b.height=this.b.L,k=!0),k&&(c.webkitImageSmoothingEnabled=this.b.S,c.mozImageSmoothingEnabled=this.b.S,c.msImageSmoothingEnabled=this.b.S,c.imageSmoothingEnabled=this.b.S));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.b.Vj&&!this.xn()&&
c.clearRect(0,0,this.b.M,this.b.L);var g,l,k=0;for(g=this.J.length;k<g;k++)l=this.J[k],l.visible&&0<l.opacity&&11!==l.sb&&(l.c.length||!l.Md)?l.Gc(c):l.mm();d&&a.drawImage(b,0,0,this.b.width,this.b.height)};g.prototype.Qb=function(a){var b=0<this.U.length||this.b.dg||!this.b.oc;if(b){this.b.Sb||(this.b.Sb=a.Yd(this.b.M,this.b.L,this.b.S));if(this.b.Sb.mg!==this.b.M||this.b.Sb.lg!==this.b.L)a.deleteTexture(this.b.Sb),this.b.Sb=a.Yd(this.b.M,this.b.L,this.b.S);a.cd(this.b.Sb);this.b.oc||a.Sf(this.b.M,
this.b.L)}else this.b.Sb&&(a.cd(null),a.deleteTexture(this.b.Sb),this.b.Sb=null);this.b.Vj&&!this.xn()&&a.clear(0,0,0,0);var c,k,d;c=0;for(k=this.J.length;c<k;c++)d=this.J[c],d.visible&&0<d.opacity&&(d.c.length||!d.Md)?d.Qb(a):d.mm();b&&(0===this.U.length||1===this.U.length&&this.b.oc?(1===this.U.length?(b=this.U[0].index,a.dd(this.U[0].eb),a.Rf(null,1/this.b.M,1/this.b.L,0,0,1,1,this.scale,this.j,0,0,this.b.M/2,this.b.L/2,this.ta[b]),a.jj(this.U[0].eb)&&(this.b.ea=!0)):a.dd(0),this.b.oc||a.Sf(this.b.width,
this.b.height),a.cd(null),a.Ze(1),a.Xb(this.b.Sb),a.Yo(),a.le(),a.se(),b=this.b.width/2,c=this.b.height/2,a.rh(-b,c,b,c,b,-c,-b,-c),a.Xb(null)):this.Ll(a,null,null,null))};g.prototype.xg=function(){return 0<this.U.length||this.b.dg||!this.b.oc?this.b.Sb:null};g.prototype.un=function(){var a=this.J[0].qc(),b,c,k;b=1;for(c=this.J.length;b<c;b++)k=this.J[b],(0!==k.Eb||0!==k.Fb)&&k.qc()<a&&(a=k.qc());return a};g.prototype.Wo=function(a){if(!this.xp){var b=1/this.un()*this.b.M/2;a>this.width-b&&(a=this.width-
b);a<b&&(a=b)}this.scrollX!==a&&(this.scrollX=a,this.b.ea=!0)};g.prototype.Xo=function(a){if(!this.xp){var b=1/this.un()*this.b.L/2;a>this.height-b&&(a=this.height-b);a<b&&(a=b)}this.scrollY!==a&&(this.scrollY=a,this.b.ea=!0)};g.prototype.Vq=function(){this.Wo(this.scrollX);this.Xo(this.scrollY)};g.prototype.Ll=function(a,b,c,k){var d=c?c.U:b?b.U:this.U,g=1,l=0,p=0,e=0,q=this.b.M,u=this.b.L;c?(g=c.d.qc(),l=c.d.Ua(),p=c.d.wa,e=c.d.xa,q=c.d.Ia,u=c.d.Ha):b&&(g=b.qc(),l=b.Ua(),p=b.wa,e=b.xa,q=b.Ia,u=
b.Ha);var m=this.b.Bk,t,x,s,z,J=0,B=1,Y,F=this.b.M,v=this.b.L,va=F/2,L=v/2,P=b?b.sh:this.sh,D=b?b.Kl:this.Kl,E=0,M=0,C=0,I=0,G=F,ka=F,K=v,qa=v,ga=s=0,sa=c?c.d.Ua():0;if(c){t=0;for(x=d.length;t<x;t++)s+=a.ws(d[t].eb),ga+=a.xs(d[t].eb);z=c.ya;E=b.nb(z.left,z.top,!0,!0);C=b.nb(z.left,z.top,!1,!0);G=b.nb(z.right,z.bottom,!0,!0);K=b.nb(z.right,z.bottom,!1,!0);0!==sa&&(t=b.nb(z.right,z.top,!0,!0),x=b.nb(z.right,z.top,!1,!0),M=b.nb(z.left,z.bottom,!0,!0),I=b.nb(z.left,z.bottom,!1,!0),z=Math.min(E,G,t,M),
G=Math.max(E,G,t,M),E=z,z=Math.min(C,K,x,I),K=Math.max(C,K,x,I),C=z);E-=s;C-=ga;G+=s;K+=ga;D.left=E/F;D.top=1-C/v;D.right=G/F;D.bottom=1-K/v;M=E=Q(E);I=C=Q(C);ka=G=pa(G);qa=K=pa(K);M-=s;I-=ga;ka+=s;qa+=ga;0>E&&(E=0);0>C&&(C=0);G>F&&(G=F);K>v&&(K=v);0>M&&(M=0);0>I&&(I=0);ka>F&&(ka=F);qa>v&&(qa=v);P.left=E/F;P.top=1-C/v;P.right=G/F;P.bottom=1-K/v}else P.left=D.left=0,P.top=D.top=0,P.right=D.right=1,P.bottom=D.bottom=1;ga=c&&((c.j||sa)&&a.ph(d[0].eb)||0!==s||0!==ga||1!==c.opacity||c.type.Ba.qo)||b&&
!c&&1!==b.opacity;a.Yo();if(ga){m[J]||(m[J]=a.Yd(F,v,this.b.S));if(m[J].mg!==F||m[J].lg!==v)a.deleteTexture(m[J]),m[J]=a.Yd(F,v,this.b.S);a.dd(0);a.cd(m[J]);Y=qa-I;a.clearRect(M,v-I-Y,ka-M,Y);c?c.Qb(a):(a.Xb(this.b.ic),a.Ze(b.opacity),a.le(),a.translate(-va,-L),a.se(),a.Gd(E,K,G,K,G,C,E,C,P));D.left=D.top=0;D.right=D.bottom=1;c&&(z=P.top,P.top=P.bottom,P.bottom=z);J=1;B=0}a.Ze(1);s=d.length-1;var sa=a.Gl(d[s].eb)||!b&&!c&&!this.b.oc,da=0;t=0;for(x=d.length;t<x;t++){m[J]||(m[J]=a.Yd(F,v,this.b.S));
if(m[J].mg!==F||m[J].lg!==v)a.deleteTexture(m[J]),m[J]=a.Yd(F,v,this.b.S);a.dd(d[t].eb);da=d[t].index;a.jj(d[t].eb)&&(this.b.ea=!0);0!=t||ga?(a.Rf(k,1/F,1/v,D.left,D.top,D.right,D.bottom,g,l,p,e,(p+q)/2,(e+u)/2,c?c.ta[da]:b?b.ta[da]:this.ta[da]),a.Xb(null),t!==s||sa?(a.cd(m[J]),Y=qa-I,z=v-I-Y,a.clearRect(M,z,ka-M,Y)):(c?a.me(c.jb,c.ib):b&&a.me(b.jb,b.ib),a.cd(k)),a.Xb(m[B]),a.le(),a.translate(-va,-L),a.se(),a.Gd(E,K,G,K,G,C,E,C,P),t!==s||sa||a.Xb(null)):(a.cd(m[J]),Y=qa-I,z=v-I-Y,a.clearRect(M,z,
ka-M,Y),c?(a.Rf(k,1/c.width,1/c.height,D.left,D.top,D.right,D.bottom,g,l,p,e,(p+q)/2,(e+u)/2,c.ta[da]),c.Qb(a)):(a.Rf(k,1/F,1/v,0,0,1,1,g,l,p,e,(p+q)/2,(e+u)/2,b?b.ta[da]:this.ta[da]),a.Xb(b?this.b.ic:this.b.Sb),a.le(),a.translate(-va,-L),a.se(),a.Gd(E,K,G,K,G,C,E,C,P)),D.left=D.top=0,D.right=D.bottom=1,c&&!sa&&(z=K,K=C,C=z));J=0===J?1:0;B=0===J?1:0}sa&&(a.dd(0),c?a.me(c.jb,c.ib):b?a.me(b.jb,b.ib):this.b.oc||(a.Sf(this.b.width,this.b.height),va=this.b.width/2,L=this.b.height/2,C=E=0,G=this.b.width,
K=this.b.height),a.cd(k),a.Xb(m[B]),a.le(),a.translate(-va,-L),a.se(),c&&1===d.length&&!ga?a.Gd(E,C,G,C,G,K,E,K,P):a.Gd(E,K,G,K,G,C,E,C,P),a.Xb(null))};g.prototype.oi=function(a){var b,c;b=0;for(c=this.J.length;b<c;b++)if(this.J[b].O===a)return this.J[b];return null};g.prototype.Wb=function(){var a,b,c,d={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.j,w:this.width,h:this.height,fv:this.of,persist:this.je,fx:[],layers:{}};a=0;for(b=this.G.length;a<b;a++)c=this.G[a],d.fx.push({name:c.name,active:c.Ta,
params:this.ta[c.index]});a=0;for(b=this.J.length;a<b;a++)c=this.J[a],d.layers[c.O.toString()]=c.Wb();return d};g.prototype.wc=function(a){var b,c,d,n;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.j=a.a;this.width=a.w;this.height=a.h;this.je=a.persist;"undefined"!==typeof a.fv&&(this.of=a.fv);var g=a.fx;b=0;for(c=g.length;b<c;b++)if(d=this.Fk(g[b].name))d.Ta=g[b].active,this.ta[d.index]=g[b].params;this.Nd();b=a.layers;for(n in b)b.hasOwnProperty(n)&&(a=this.oi(parseInt(n,10)))&&a.wc(b[n])};
Bb=g;d.prototype.Nd=function(){this.U.length=0;var a,b,c;a=0;for(b=this.G.length;a<b;a++)c=this.G[a],c.Ta&&this.U.push(c)};d.prototype.Fk=function(a){var b,c,d;b=0;for(c=this.G.length;b<c;b++)if(d=this.G[b],d.name===a)return d;return null};d.prototype.dr=function(){var a,b,d,k,n,g;b=a=0;for(d=this.fc.length;a<d;a++){k=this.fc[a];n=this.b.m[k[1]];g=this.b.jm(n);n=!0;if(!g||this.Va.of)k=this.b.ze(k,this,!0),c.push(k),k.type.global&&(n=!1,this.qg.push(k.uid));n&&(this.fc[b]=this.fc[a],b++)}this.fc.length=
b;this.b.fb();!this.b.n&&this.G.length&&(this.sb=this.Cr);this.ng=db(this.sb);this.b.k&&eb(this,this.sb,this.b.k);this.Hd=!0};d.prototype.Pf=function(a,b){var c=Aa(this.c,a);0>c||(b&&this.Rc&&a.Gb&&a.Gb.right>=a.Gb.left&&(a.ma(),this.Vb.update(a,a.Gb,null),a.Gb.set(0,0,-1,-1)),c===this.c.length-1?this.c.pop():(xa(this.c,c),this.vh(c)),this.Hd=!0)};d.prototype.jg=function(a,b){a.Tc=this.c.length;this.c.push(a);b&&this.Rc&&a.Gb&&a.qa();this.Hd=!0};d.prototype.Jt=function(a){this.c.unshift(a);this.vh(0)};
d.prototype.lt=function(a,b,c){var d=a.rc();b=b.rc();xa(this.c,d);d<b&&b--;c&&b++;b===this.c.length?this.c.push(a):this.c.splice(b,0,a);this.vh(d<b?d:b)};d.prototype.vh=function(a){-1===this.Od?this.Od=a:a<this.Od&&(this.Od=a);this.Hd=this.cf=!0};d.prototype.nm=function(){if(this.cf){-1===this.Od&&(this.Od=0);var a,b,c;if(this.Rc)for(a=this.Od,b=this.c.length;a<b;++a)c=this.c[a],c.Tc=a,this.Vb.ht(c.Gb);else for(a=this.Od,b=this.c.length;a<b;++a)this.c[a].Tc=a;this.cf=!1;this.Od=-1}};d.prototype.qc=
function(a){return this.ts()*(this.b.oc||a?this.b.kg:1)};d.prototype.ts=function(){return(this.scale*this.Va.scale-1)*this.kb+1};d.prototype.Ua=function(){return this.Be?0:Ea(this.Va.j+this.j)};var b=[],x=[],t=[];d.prototype.vn=function(){this.nm();this.Vb.kj(this.wa,this.xa,this.Ia,this.Ha,t);if(!t.length)return s();if(1===t.length){var a=s();ya(a,t[0]);t.length=0;return a}for(var b=!0;1<t.length;){for(var a=t,c=void 0,d=void 0,n=void 0,g=void 0,m=void 0,c=0,d=a.length;c<d-1;c+=2){var n=a[c],g=a[c+
1],m=s(),p=n,e=g,q=m,u=0,y=0,O=0,Z=p.length,T=e.length,z=void 0,J=void 0;for(q.length=Z+T;u<Z&&y<T;++O)z=p[u],J=e[y],z.Tc<J.Tc?(q[O]=z,++u):(q[O]=J,++y);for(;u<Z;++u,++O)q[O]=p[u];for(;y<T;++y,++O)q[O]=e[y];b||(l(n),l(g));x.push(m)}1===d%2&&(b?(n=s(),ya(n,a[d-1]),x.push(n)):x.push(a[d-1]));ya(a,x);x.length=0;b=!1}a=t[0];t.length=0;return a};d.prototype.Gc=function(a){this.ke=this.yk||1!==this.opacity||0!==this.sb;var b=this.b.canvas,c=a,d=!1;this.ke&&(this.b.Ji||(this.b.Ji=document.createElement("canvas"),
b=this.b.Ji,b.width=this.b.M,b.height=this.b.L,this.b.Sn=b.getContext("2d"),d=!0),b=this.b.Ji,c=this.b.Sn,b.width!==this.b.M&&(b.width=this.b.M,d=!0),b.height!==this.b.L&&(b.height=this.b.L,d=!0),d&&(c.webkitImageSmoothingEnabled=this.b.S,c.mozImageSmoothingEnabled=this.b.S,c.msImageSmoothingEnabled=this.b.S,c.imageSmoothingEnabled=this.b.S),this.Md&&c.clearRect(0,0,this.b.M,this.b.L));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.Md||(c.fillStyle="rgb("+this.Vd[0]+","+this.Vd[1]+
","+this.Vd[2]+")",c.fillRect(0,0,this.b.M,this.b.L));c.save();this.Be=!0;var d=this.na(0,0,!0,!0),n=this.na(0,0,!1,!0);this.Be=!1;this.b.bd&&(d=Math.round(d),n=Math.round(n));this.Nl(d,n,c);var g=this.qc();c.scale(g,g);c.translate(-d,-n);this.Rc?(this.mc.left=this.Vb.$b(this.wa),this.mc.top=this.Vb.ac(this.xa),this.mc.right=this.Vb.$b(this.Ia),this.mc.bottom=this.Vb.ac(this.Ha),this.Hd||!this.mc.di(this.Hi)?(l(this.Bf),d=this.vn(),this.Hd=!1,this.Hi.pg(this.mc)):d=this.Bf):d=this.c;for(var m,p=null,
n=0,g=d.length;n<g;++n)m=d[n],m!==p&&(this.wr(m,c),p=m);this.Rc&&(this.Bf=d);c.restore();this.ke&&(a.globalCompositeOperation=this.ng,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};d.prototype.wr=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.ma();var c=a.ya;c.right<this.wa||c.bottom<this.xa||c.left>this.Ia||c.top>this.Ha||(b.globalCompositeOperation=a.ng,a.Gc(b))}};d.prototype.mm=function(){this.Be=!0;var a=this.na(0,0,!0,!0),b=this.na(0,0,!1,!0);this.Be=!1;this.b.bd&&(a=Math.round(a),
b=Math.round(b));this.Nl(a,b,null)};d.prototype.Nl=function(a,b,c){var d=this.qc();this.wa=a;this.xa=b;this.Ia=a+1/d*this.b.M;this.Ha=b+1/d*this.b.L;a=this.Ua();0!==a&&(c&&(c.translate(this.b.M/2,this.b.L/2),c.rotate(-a),c.translate(this.b.M/-2,this.b.L/-2)),this.Ld.set(this.wa,this.xa,this.Ia,this.Ha),this.Ld.offset((this.wa+this.Ia)/-2,(this.xa+this.Ha)/-2),this.qp.dp(this.Ld,a),this.qp.Tm(this.Ld),this.Ld.offset((this.wa+this.Ia)/2,(this.xa+this.Ha)/2),this.wa=this.Ld.left,this.xa=this.Ld.top,
this.Ia=this.Ld.right,this.Ha=this.Ld.bottom)};d.prototype.Qb=function(a){var b=0,c=0;if(this.ke=this.yk||1!==this.opacity||0<this.U.length||0!==this.sb){this.b.ic||(this.b.ic=a.Yd(this.b.M,this.b.L,this.b.S));if(this.b.ic.mg!==this.b.M||this.b.ic.lg!==this.b.L)a.deleteTexture(this.b.ic),this.b.ic=a.Yd(this.b.M,this.b.L,this.b.S);a.cd(this.b.ic);this.Md&&a.clear(0,0,0,0)}this.Md||a.clear(this.Vd[0]/255,this.Vd[1]/255,this.Vd[2]/255,1);this.Be=!0;var d=this.na(0,0,!0,!0),b=this.na(0,0,!1,!0);this.Be=
!1;this.b.bd&&(d=Math.round(d),b=Math.round(b));this.Nl(d,b,null);d=this.qc();a.le();a.scale(d,d);a.Uo(-this.Ua());a.translate((this.wa+this.Ia)/-2,(this.xa+this.Ha)/-2);a.se();this.Rc?(this.mc.left=this.Vb.$b(this.wa),this.mc.top=this.Vb.ac(this.xa),this.mc.right=this.Vb.$b(this.Ia),this.mc.bottom=this.Vb.ac(this.Ha),this.Hd||!this.mc.di(this.Hi)?(l(this.Bf),b=this.vn(),this.Hd=!1,this.Hi.pg(this.mc)):b=this.Bf):b=this.c;var n,g,m=null,c=0;for(n=b.length;c<n;++c)g=b[c],g!==m&&(this.Ar(b[c],a),m=
g);this.Rc&&(this.Bf=b);this.ke&&(b=this.U.length?this.U[0].eb:0,c=this.U.length?this.U[0].index:0,0===this.U.length||1===this.U.length&&!a.Gl(b)&&1===this.opacity?(1===this.U.length?(a.dd(b),a.Rf(this.Va.xg(),1/this.b.M,1/this.b.L,0,0,1,1,d,this.Ua(),this.wa,this.xa,(this.wa+this.Ia)/2,(this.xa+this.Ha)/2,this.ta[c]),a.jj(b)&&(this.b.ea=!0)):a.dd(0),a.cd(this.Va.xg()),a.Ze(this.opacity),a.Xb(this.b.ic),a.me(this.jb,this.ib),a.le(),a.se(),d=this.b.M/2,b=this.b.L/2,a.rh(-d,b,d,b,d,-b,-d,-b),a.Xb(null)):
this.Va.Ll(a,this,null,this.Va.xg()))};d.prototype.Ar=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.ma();var c=a.ya;c.right<this.wa||c.bottom<this.xa||c.left>this.Ia||c.top>this.Ha||(a.Dp?this.Br(a,b):(b.dd(0),b.me(a.jb,a.ib),a.Qb(b)))}};d.prototype.Br=function(a,b){var c=a.U[0].eb,d=a.U[0].index,n=this.qc();if(1!==a.U.length||b.Gl(c)||b.Lt(c)||(a.j||a.d.Ua())&&b.ph(c)||1!==a.opacity||a.type.Ba.qo)this.Va.Ll(b,this,a,this.ke?this.b.ic:this.Va.xg()),b.le(),b.scale(n,n),b.Uo(-this.Ua()),
b.translate((this.wa+this.Ia)/-2,(this.xa+this.Ha)/-2),b.se();else{b.dd(c);b.me(a.jb,a.ib);b.jj(c)&&(this.b.ea=!0);var g=0,l=0,p=0,e=0;b.ph(c)&&(c=a.ya,g=this.nb(c.left,c.top,!0,!0),l=this.nb(c.left,c.top,!1,!0),p=this.nb(c.right,c.bottom,!0,!0),c=this.nb(c.right,c.bottom,!1,!0),g/=windowWidth,l=1-l/windowHeight,p/=windowWidth,e=1-c/windowHeight);b.Rf(this.ke?this.b.ic:this.Va.xg(),1/a.width,1/a.height,g,l,p,e,n,this.Ua(),this.wa,this.xa,(this.wa+this.Ia)/2,(this.xa+this.Ha)/2,a.ta[d]);a.Qb(b)}};
d.prototype.na=function(a,b,c,d){var g=this.b.devicePixelRatio;this.b.Me&&(a*=g,b*=g);var g=this.b.Ho,l=this.b.Io,g=(this.Va.scrollX-g)*this.Eb+g,l=(this.Va.scrollY-l)*this.Fb+l,m=g,p=l,e=1/this.qc(!d);d?(m-=this.b.M*e/2,p-=this.b.L*e/2):(m-=this.b.width*e/2,p-=this.b.height*e/2);m+=a*e;p+=b*e;b=this.Ua();0!==b&&(m-=g,p-=l,a=Math.cos(b),b=Math.sin(b),d=m*a-p*b,p=p*a+m*b,m=d+g,p+=l);return c?m:p};d.prototype.nb=function(a,b,c,d){var g=this.b.Ho,l=this.b.Io,m=(this.Va.scrollX-g)*this.Eb+g,p=(this.Va.scrollY-
l)*this.Fb+l,l=m,g=p,e=this.Ua();if(0!==e){a-=m;b-=p;var q=Math.cos(-e),e=Math.sin(-e),u=a*q-b*e;b=b*q+a*e;a=u+m;b+=p}m=1/this.qc(!d);d?(l-=this.b.M*m/2,g-=this.b.L*m/2):(l-=this.b.width*m/2,g-=this.b.height*m/2);l=(a-l)/m;g=(b-g)/m;a=this.b.devicePixelRatio;this.b.Me&&!d&&(l/=a,g/=a);return c?l:g};d.prototype.Wb=function(){var a,b,c,d={s:this.scale,a:this.j,vl:this.wa,vt:this.xa,vr:this.Ia,vb:this.Ha,v:this.visible,bc:this.Vd,t:this.Md,px:this.Eb,py:this.Fb,o:this.opacity,zr:this.kb,fx:[],cg:this.qg,
instances:[]};a=0;for(b=this.G.length;a<b;a++)c=this.G[a],d.fx.push({name:c.name,active:c.Ta,params:this.ta[c.index]});return d};d.prototype.wc=function(a){var b,c,d;this.scale=a.s;this.j=a.a;this.wa=a.vl;this.xa=a.vt;this.Ia=a.vr;this.Ha=a.vb;this.visible=a.v;this.Vd=a.bc;this.Md=a.t;this.Eb=a.px;this.Fb=a.py;this.opacity=a.o;this.kb=a.zr;this.qg=a.cg||[];ya(this.fc,this.kp);var g=new ba;b=0;for(d=this.qg.length;b<d;++b)g.add(this.qg[b]);c=b=0;for(d=this.fc.length;b<d;++b)g.contains(this.fc[b][2])||
(this.fc[c]=this.fc[b],++c);this.fc.length=c;c=a.fx;b=0;for(d=c.length;b<d;b++)if(a=this.Fk(c[b].name))a.Ta=c[b].active,this.ta[a.index]=c[b].params;this.Nd();this.c.sort(m);this.cf=!0};Pb=d})();
(function(){function g(a,b){var c,d=a.length;switch(d){case 0:return!0;case 1:return a[0]===b[0];case 2:return a[0]===b[0]&&a[1]===b[1];default:for(c=0;c<d;c++)if(a[c]!==b[c])return!1;return!0}}function m(a,b){return a.index-b.index}function d(a){var b,c,d,k;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(m);a.length>=n.length&&(n.length=a.length+1);n[a.length]||(n[a.length]=[]);k=n[a.length];b=0;for(c=k.length;b<c;b++)if(d=k[b],g(a,d))return d;k.push(a);return a}
function s(a,b){this.b=a;this.tp={};this.jn={};this.Qk=!1;this.An=new ba;this.mk=[];this.Wj=[];this.name=b[0];var c=b[1];this.be=[];var d,k;d=0;for(k=c.length;d<k;d++)this.Cn(c[d],null,this.be)}function l(a){this.type=a;this.c=[];this.P=[];this.ga=!0}function c(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.la=[];this.ne=[];this.yn=this.Cj=this.gm=this.xi=this.group=this.jp=!1;this.hb=[];this.Cc=[];this.Ac=[];this.Bg="";this.Ag=this.xi=this.group=!1;this.Uh=null;c[1]&&(this.Bg=c[1][1].toLowerCase(),
this.group=!0,this.xi=!!c[1][0],this.Uh=[],this.Ag=this.xi,this.b.Td.push(this),this.b.ri[this.Bg]=this);this.Kc=c[2];this.O=c[4];this.group||(this.b.Sm[this.O.toString()]=this);var d=c[5];a=0;for(b=d.length;a<b;a++){var k=new Qb(this,d[a]);k.index=a;this.hb.push(k);this.Nm(k.type)}d=c[6];a=0;for(b=d.length;a<b;a++)k=new Rb(this,d[a]),k.index=a,this.Cc.push(k);if(8===c.length)for(c=c[7],a=0,b=c.length;a<b;a++)this.sheet.Cn(c[a],this,this.Ac);this.Ci=!1;this.hb.length&&(this.Ci=null==this.hb[0].type&&
this.hb[0].ab==V.prototype.e.xm)}function a(a,b){var c,d,k;if(a&&(-1===b.indexOf(a)&&b.push(a),a.Ic))for(c=0,d=a.Ob.length;c<d;c++)k=a.Ob[c],a!==k&&-1===b.indexOf(k)&&b.push(k)}function b(a,b){this.cc=a;this.sheet=a.sheet;this.b=a.b;this.K=[];this.va=[];this.ua={};this.index=-1;this.hg=!1;this.ab=this.b.Qd(b[1]);this.trigger=0<b[3];this.hn=2===b[3];this.Zc=b[4];this.sf=b[5];this.dt=b[6];this.O=b[7];this.b.kf[this.O.toString()]=this;-1===b[0]?(this.type=null,this.Pa=this.Ql,this.we=null,this.Ec=-1):
(this.type=this.b.m[b[0]],this.Pa=this.dt?this.Vt:this.Pl,b[2]?(this.we=this.type.mi(b[2]),this.Ec=this.type.Dk(b[2])):(this.we=null,this.Ec=-1),this.cc.parent&&this.cc.parent.pj());this.hn&&(this.Pa=this.Wt);if(10===b.length){var c,d,k=b[9];c=0;for(d=k.length;c<d;c++){var f=new Sb(this,k[c]);this.K.push(f)}this.va.length=k.length}}function x(a,b){this.cc=a;this.sheet=a.sheet;this.b=a.b;this.K=[];this.va=[];this.ua={};this.index=-1;this.hg=!1;this.ab=this.b.Qd(b[1]);-1===b[0]?(this.type=null,this.Pa=
this.Ql,this.we=null,this.Ec=-1):(this.type=this.b.m[b[0]],this.Pa=this.Pl,b[2]?(this.we=this.type.mi(b[2]),this.Ec=this.type.Dk(b[2])):(this.we=null,this.Ec=-1));this.O=b[3];this.b.gf[this.O.toString()]=this;if(6===b.length){var c,d,k=b[5];c=0;for(d=k.length;c<d;c++){var f=new Sb(this,k[c]);this.K.push(f)}this.va.length=k.length}}function t(){A++;w.length===A&&w.push(new Tb);return w[A]}function f(a,b){this.ka=a;this.cc=a.cc;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.Xc=null;this.Kd=0;this.get=
null;this.Zm=0;this.Va=null;this.key=0;this.object=null;this.index=0;this.Fh=this.bf=this.Fh=this.bf=this.kn=this.Ee=this.Gh=null;this.Bc=!1;var c,d,k;switch(b[0]){case 0:case 7:this.Xc=new Ub(this,b[1]);this.Kd=0;this.get=this.Cs;break;case 1:this.Xc=new Ub(this,b[1]);this.Kd=0;this.get=this.Ds;break;case 5:this.Xc=new Ub(this,b[1]);this.Kd=0;this.get=this.Hs;break;case 3:case 8:this.Zm=b[1];this.get=this.As;break;case 6:this.Va=this.b.Cf[b[1]];this.get=this.Is;break;case 9:this.key=b[1];this.get=
this.Gs;break;case 4:this.object=this.b.m[b[1]];this.get=this.Js;this.cc.Nm(this.object);this.ka instanceof Rb?this.cc.pj():this.cc.parent&&this.cc.parent.pj();break;case 10:this.index=b[1];a.type.A?(this.get=this.Es,this.Bc=!0):this.get=this.Fs;break;case 11:this.Gh=b[1];this.Ee=null;this.get=this.Bs;break;case 2:case 12:this.kn=b[1];this.get=this.zs;break;case 13:for(this.get=this.Ks,this.bf=[],this.Fh=[],c=1,d=b.length;c<d;c++)k=new Sb(this.ka,b[c]),this.bf.push(k),this.Fh.push(0)}}function h(a,
b,c){this.sheet=a;this.parent=b;this.b=a.b;this.la=[];this.name=c[1];this.Jj=c[2];this.wi=c[3];this.Lg=!!c[4];this.Bi=!!c[5];this.O=c[6];this.b.fg[this.O.toString()]=this;this.data=this.wi;this.parent?(this.Ve=this.Lg||this.Bi?-1:this.b.du++,this.b.Rq.push(this)):(this.Ve=-1,this.b.Tj.push(this))}function r(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.la=[];this.Dg=null;this.Qs=c[1];this.Ta=!0}function k(){this.mp=[];this.reset(null)}var n=[];s.prototype.toString=function(){return this.name};
s.prototype.Cn=function(a,b,c){switch(a[0]){case 0:a=new Vb(this,b,a);if(a.Kc)for(c.push(a),c=0,b=a.hb.length;c<b;c++)a.hb[c].trigger&&this.Dn(a,c);else a.Ln()?this.Dn(a,0):c.push(a);break;case 1:a=new Mb(this,b,a);c.push(a);break;case 2:a=new Wb(this,b,a),c.push(a)}};s.prototype.Ca=function(){var a,b;a=0;for(b=this.be.length;a<b;a++)this.be[a].Ca(a<b-1&&this.be[a+1].Ci)};s.prototype.km=function(){this.mk.length=0;this.Wj.length=0;this.Mm(this);this.Wj.length=0};s.prototype.Mm=function(a){var b,c,
d,k,f=a.mk,g=a.Wj,h=this.An.Sc();b=0;for(c=h.length;b<c;++b)d=h[b],k=d.Dg,!d.Ta||a===k||-1<g.indexOf(k)||(g.push(k),k.Mm(a),f.push(k))};s.prototype.Pa=function(a){this.b.Dv||(this.Qk=!0,a||(this.b.al=!0));var b,c;b=0;for(c=this.be.length;b<c;b++){var d=this.be[b];d.Pa();this.b.fk(d.la);this.b.ee&&this.b.fb()}a||(this.b.al=!1)};s.prototype.Dn=function(a,b){a.Kc||this.b.Fj.push(a);var c,d,k=a.hb[b],f;f=k.type?k.type.name:"system";var g=(c=k.hn)?this.jn:this.tp;g[f]||(g[f]=[]);f=g[f];g=k.ab;if(c){if(k.K.length&&
(k=k.K[0],1===k.type&&2===k.Xc.type)){k=k.Xc.value.toLowerCase();c=0;for(d=f.length;c<d;c++)if(f[c].method==g){c=f[c].tg;c[k]?c[k].push([a,b]):c[k]=[[a,b]];return}c={};c[k]=[[a,b]];f.push({method:g,tg:c})}}else{c=0;for(d=f.length;c<d;c++)if(f[c].method==g){f[c].tg.push([a,b]);return}W&&g===W.prototype.e.ff?f.unshift({method:g,tg:[[a,b]]}):f.push({method:g,tg:[[a,b]]})}};Cb=s;l.prototype.Pk=function(){return this.ga?this.type.c.length:this.c.length};l.prototype.pc=function(){return this.ga?this.type.c:
this.c};l.prototype.oh=function(a){a&&(a.b.mb().Pb.Kc?(this.ga&&(this.c.length=0,ya(this.P,a.type.c),this.ga=!1),a=this.P.indexOf(a),-1!==a&&(this.c.push(this.P[a]),this.P.splice(a,1))):(this.ga=!1,this.c.length=1,this.c[0]=a))};kb=l;window._c2hh_="028182FC3C1790C453899C06084DBCA3F631EAD1";c.prototype.Ca=function(a){var b,c=this.parent;if(this.group)for(this.Cj=!0;c;){if(!c.group){this.Cj=!1;break}c=c.parent}this.gm=!this.Ln()&&(!this.parent||this.parent.group&&this.parent.Cj);this.yn=!!a;this.ne=
this.la.slice(0);for(c=this.parent;c;){a=0;for(b=c.la.length;a<b;a++)this.Oq(c.la[a]);c=c.parent}this.la=d(this.la);this.ne=d(this.ne);a=0;for(b=this.hb.length;a<b;a++)this.hb[a].Ca();a=0;for(b=this.Cc.length;a<b;a++)this.Cc[a].Ca();a=0;for(b=this.Ac.length;a<b;a++)this.Ac[a].Ca(a<b-1&&this.Ac[a+1].Ci)};c.prototype.Zo=function(a){if(this.Ag!==!!a){this.Ag=!!a;var b;a=0;for(b=this.Uh.length;a<b;++a)this.Uh[a].zp();0<b&&this.b.Y.De&&this.b.Y.De.km()}};c.prototype.Nm=function(b){a(b,this.la)};c.prototype.Oq=
function(b){a(b,this.ne)};c.prototype.pj=function(){this.jp=!0;this.parent&&this.parent.pj()};c.prototype.Ln=function(){return this.hb.length?this.hb[0].trigger:!1};c.prototype.Pa=function(){var a,b=!1,c,d=this.b,k=this.b.mb();k.Pb=this;var f=this.hb;this.Ci||(k.qk=!1);if(this.Kc){0===f.length&&(b=!0);k.yb=0;for(a=f.length;k.yb<a;k.yb++)f[k.yb].trigger||(c=f[k.yb].Pa())&&(b=!0);(k.Re=b)&&this.Ol()}else{k.yb=0;for(a=f.length;k.yb<a;k.yb++)if(c=f[k.yb].Pa(),!c){k.Re=!1;this.gm&&d.ee&&d.fb();return}k.Re=
!0;this.Ol()}this.Er(k)};c.prototype.Er=function(a){a.Re&&this.yn&&(a.qk=!0);this.gm&&this.b.ee&&this.b.fb()};c.prototype.Tt=function(a){this.b.mb().Pb=this;this.hb[a].Pa()&&(this.Ol(),this.b.mb().Re=!0)};c.prototype.Ol=function(){var a=this.b.mb(),b;a.Lb=0;for(b=this.Cc.length;a.Lb<b;a.Lb++)if(this.Cc[a.Lb].Pa())return;this.Vo()};c.prototype.Rt=function(){var a=this.b.mb(),b;for(b=this.Cc.length;a.Lb<b;a.Lb++)if(this.Cc[a.Lb].Pa())return;this.Vo()};c.prototype.Vo=function(){if(this.Ac.length){var a,
b,c,d,k=this.Ac.length-1;this.b.Il(this);if(this.jp)for(a=0,b=this.Ac.length;a<b;a++)c=this.Ac[a],(d=!this.Cj||!this.group&&a<k)&&this.b.Hl(c.la),c.Pa(),d?this.b.Of(c.la):this.b.fk(c.la);else for(a=0,b=this.Ac.length;a<b;a++)this.Ac[a].Pa();this.b.No()}};c.prototype.Ut=function(){var a=this.b.mb();a.Pb=this;var b=!1,c;a.yb=0;for(c=this.hb.length;a.yb<c;a.yb++)if(this.hb[a.yb].Pa())b=!0;else if(!this.Kc)return!1;return this.Kc?b:!0};c.prototype.Xs=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=
b;--b)if(this.hb[b].type===a.type)return!1;return!0};Vb=c;b.prototype.Ca=function(){var a,b,c;a=0;for(b=this.K.length;a<b;a++)c=this.K[a],c.Ca(),c.Bc&&(this.hg=!0)};b.prototype.Wt=function(){return!0};b.prototype.Ql=function(){var a,b;a=0;for(b=this.K.length;a<b;a++)this.va[a]=this.K[a].get();return Sa(this.ab.apply(this.b.ed,this.va),this.sf)};b.prototype.Vt=function(){var a,b;a=0;for(b=this.K.length;a<b;a++)this.va[a]=this.K[a].get();a=this.ab.apply(this.we?this.we:this.type,this.va);this.type.ld();
return a};b.prototype.Pl=function(){var a,b,c,d,k,f,g,h,n=this.type,l=n.ba(),r=this.cc.Kc&&!this.trigger;b=0;var m=n.Ic,t=n.A,w=n.td,x=this.Ec,s=-1<x,A=this.hg,D=this.K,E=this.va,M=this.sf,C=this.ab,I;if(A)for(b=0,k=D.length;b<k;++b)f=D[b],f.Bc||(E[b]=f.get(0));else for(b=0,k=D.length;b<k;++b)E[b]=D[b].get(0);if(l.ga){l.c.length=0;l.P.length=0;I=n.c;a=0;for(d=I.length;a<d;++a){h=I[a];if(A)for(b=0,k=D.length;b<k;++b)f=D[b],f.Bc&&(E[b]=f.get(a));s?(b=0,t&&(b=h.type.nf[w]),b=C.apply(h.F[x+b],E)):b=C.apply(h,
E);(g=Sa(b,M))?l.c.push(h):r&&l.P.push(h)}n.finish&&n.finish(!0);l.ga=!1;n.ld();return l.Pk()}c=0;I=(g=r&&!this.cc.Xs(this))?l.P:l.c;var G=!1;a=0;for(d=I.length;a<d;++a){h=I[a];if(A)for(b=0,k=D.length;b<k;++b)f=D[b],f.Bc&&(E[b]=f.get(a));s?(b=0,t&&(b=h.type.nf[w]),b=C.apply(h.F[x+b],E)):b=C.apply(h,E);if(Sa(b,M))if(G=!0,g){if(l.c.push(h),m)for(b=0,k=h.siblings.length;b<k;b++)f=h.siblings[b],f.type.ba().c.push(f)}else{I[c]=h;if(m)for(b=0,k=h.siblings.length;b<k;b++)f=h.siblings[b],f.type.ba().c[c]=
f;c++}else if(g){I[c]=h;if(m)for(b=0,k=h.siblings.length;b<k;b++)f=h.siblings[b],f.type.ba().P[c]=f;c++}else if(r&&(l.P.push(h),m))for(b=0,k=h.siblings.length;b<k;b++)f=h.siblings[b],f.type.ba().P.push(f)}I.length=c;if(m)for(t=n.Ob,a=0,d=t.length;a<d;a++)h=t[a].ba(),g?h.P.length=c:h.c.length=c;c=G;if(g&&!G)for(a=0,d=l.c.length;a<d;a++){h=l.c[a];if(A)for(b=0,k=D.length;b<k;b++)f=D[b],f.Bc&&(E[b]=f.get(a));b=s?C.apply(h.F[x],E):C.apply(h,E);if(Sa(b,M)){G=!0;break}}n.finish&&n.finish(c||r);return r?
G:l.Pk()};Qb=b;x.prototype.Ca=function(){var a,b,c;a=0;for(b=this.K.length;a<b;a++)c=this.K[a],c.Ca(),c.Bc&&(this.hg=!0)};x.prototype.Ql=function(){var a=this.b,b,c,d=this.K,k=this.va;b=0;for(c=d.length;b<c;++b)k[b]=d[b].get();return this.ab.apply(a.ed,k)};x.prototype.Pl=function(){var a=this.type,b=this.Ec,c=a.td,d=this.hg,k=this.K,f=this.va,h=this.ab,g=a.ba().pc(),a=a.A,n=-1<b,l,r,m,t,w,x;if(d)for(r=0,t=k.length;r<t;++r)w=k[r],w.Bc||(f[r]=w.get(0));else for(r=0,t=k.length;r<t;++r)f[r]=k[r].get(0);
l=0;for(m=g.length;l<m;++l){x=g[l];if(d)for(r=0,t=k.length;r<t;++r)w=k[r],w.Bc&&(f[r]=w.get(l));n?(r=0,a&&(r=x.type.nf[c]),h.apply(x.F[b+r],f)):h.apply(x,f)}return!1};Rb=x;var w=[],A=-1;f.prototype.Ca=function(){var a,b;if(11===this.type)this.Ee=this.b.rn(this.Gh,this.cc.parent);else if(13===this.type)for(a=0,b=this.bf.length;a<b;a++)this.bf[a].Ca();this.Xc&&this.Xc.Ca()};f.prototype.jt=function(a){this.Bc||!a||a.Ba.qj||(this.Bc=!0)};f.prototype.bp=function(){this.Bc=!0};f.prototype.Cs=function(a){this.Kd=
a||0;a=t();this.Xc.get(a);A--;return a.data};f.prototype.Ds=function(a){this.Kd=a||0;a=t();this.Xc.get(a);A--;return N(a.data)?a.data:""};f.prototype.Js=function(){return this.object};f.prototype.As=function(){return this.Zm};f.prototype.Hs=function(a){this.Kd=a||0;a=t();this.Xc.get(a);A--;return a.La()?this.b.vd(a.data):this.b.wg(a.data)};f.prototype.Is=function(){return this.Va};f.prototype.Gs=function(){return this.key};f.prototype.Fs=function(){return this.index};f.prototype.Es=function(a){a=
a||0;var b=this.ka.type,c=null,c=b.ba(),d=c.pc();if(d.length)c=d[a%d.length].type;else if(c.P.length)c=c.P[a%c.P.length].type;else if(b.c.length)c=b.c[a%b.c.length].type;else return 0;return this.index+c.gi[b.td]};f.prototype.Bs=function(){return this.Ee};f.prototype.zs=function(){return this.kn};f.prototype.Ks=function(){var a,b;a=0;for(b=this.bf.length;a<b;a++)this.Fh[a]=this.bf[a].get();return this.Fh};Sb=f;h.prototype.Ca=function(){this.la=d(this.la)};h.prototype.$e=function(a){var b=this.b.qn();
this.parent&&!this.Lg&&b?(this.Ve>=b.length&&(b.length=this.Ve+1),b[this.Ve]=a):this.data=a};h.prototype.yg=function(){var a=this.b.qn();return!this.parent||this.Lg||!a||this.Bi?this.data:this.Ve>=a.length||"undefined"===typeof a[this.Ve]?this.wi:a[this.Ve]};h.prototype.Pa=function(){!this.parent||this.Lg||this.Bi||this.$e(this.wi)};Mb=h;r.prototype.toString=function(){return"include:"+this.Dg.toString()};r.prototype.Ca=function(){this.Dg=this.b.sk[this.Qs];this.sheet.An.add(this);this.la=d(this.la);
for(var a=this.parent;a;)a.group&&a.Uh.push(this),a=a.parent;this.zp()};r.prototype.Pa=function(){this.parent&&this.b.qh(this.b.m);this.Dg.Qk||this.Dg.Pa(!0);this.parent&&this.b.Of(this.b.m)};r.prototype.zp=function(){for(var a=this.parent;a;){if(a.group&&!a.Ag){this.Ta=!1;return}a=a.parent}this.Ta=!0};Wb=r;k.prototype.reset=function(a){this.Pb=a;this.Lb=this.yb=0;this.mp.length=0;this.qk=this.Re=!1};Lb=k})();
(function(){function g(a,b){this.ka=a;this.b=a.b;this.type=b[0];this.get=[this.Rr,this.Nr,this.$r,this.cs,this.Gr,this.as,this.Vr,this.Kr,this.Ur,this.Zr,this.Hr,this.Yr,this.Lr,this.Wr,this.Sr,this.Tr,this.Or,this.Pr,this.Jr,this.bs,this.Xr,this.Qr,this.Ir,this.Mr][this.type];var c=null;this.Dd=this.K=this.va=this.ab=this.Bj=this.Ya=this.first=this.value=null;this.Ec=-1;this.fe=null;this.Ep=-1;this.Ee=this.Gh=null;this.Qf=!1;switch(this.type){case 0:case 1:case 2:this.value=b[1];break;case 3:this.first=
new Ub(a,b[1]);break;case 18:this.first=new Ub(a,b[1]);this.Ya=new Ub(a,b[2]);this.Bj=new Ub(a,b[3]);break;case 19:this.ab=this.b.Qd(b[1]);this.ab!==V.prototype.zb.random&&this.ab!==V.prototype.zb.Zq||this.ka.bp();this.va=[];this.K=[];3===b.length?(c=b[2],this.va.length=c.length+1):this.va.length=1;break;case 20:this.Dd=this.b.m[b[1]];this.Ec=-1;this.ab=this.b.Qd(b[2]);this.Qf=b[3];Yb.Function&&this.ab===Yb.Function.prototype.zb.wu&&this.ka.bp();this.fe=b[4]?new Ub(a,b[4]):null;this.va=[];this.K=
[];6===b.length?(c=b[5],this.va.length=c.length+1):this.va.length=1;break;case 21:this.Dd=this.b.m[b[1]];this.Qf=b[2];this.fe=b[3]?new Ub(a,b[3]):null;this.Ep=b[4];break;case 22:this.Dd=this.b.m[b[1]];this.Dd.mi(b[2]);this.Ec=this.Dd.Dk(b[2]);this.ab=this.b.Qd(b[3]);this.Qf=b[4];this.fe=b[5]?new Ub(a,b[5]):null;this.va=[];this.K=[];7===b.length?(c=b[6],this.va.length=c.length+1):this.va.length=1;break;case 23:this.Gh=b[1],this.Ee=null}this.ka.jt(this.Dd);4<=this.type&&17>=this.type&&(this.first=new Ub(a,
b[1]),this.Ya=new Ub(a,b[2]));if(c){var d,f;d=0;for(f=c.length;d<f;d++)this.K.push(new Ub(a,c[d]))}}function m(){++c;l.length===c&&l.push(new Tb);return l[c]}function d(a,b,c){var d,f;d=0;for(f=a.length;d<f;++d)a[d].get(c),b[d+1]=c.data}function s(a,b){this.type=a||U.ef;this.data=b||0;this.We=null;this.type==U.ef&&(this.data=Math.floor(this.data))}g.prototype.Ca=function(){23===this.type&&(this.Ee=this.ka.b.rn(this.Gh,this.ka.cc.parent));this.first&&this.first.Ca();this.Ya&&this.Ya.Ca();this.Bj&&
this.Bj.Ca();this.fe&&this.fe.Ca();if(this.K){var a,b;a=0;for(b=this.K.length;a<b;a++)this.K[a].Ca()}};var l=[],c=-1;g.prototype.bs=function(a){var b=this.K,g=this.va;g[0]=a;a=m();d(b,g,a);--c;this.ab.apply(this.b.ed,g)};g.prototype.Xr=function(a){var b=this.Dd,g=this.va,l=this.K,f=this.fe,h=this.ab,r=this.ka.Kd,k=b.ba(),n=k.pc();if(!n.length)if(k.P.length)n=k.P;else{this.Qf?a.Yb(""):a.ca(0);return}g[0]=a;a.We=b;a=m();d(l,g,a);f&&(f.get(a),a.La()&&(r=a.data,n=b.c));--c;b=n.length;if(r>=b||r<=-b)r%=
b;0>r&&(r+=b);h.apply(n[r],g)};g.prototype.Ir=function(a){var b=this.Dd,g=this.va,l=this.K,f=this.fe,h=this.Ec,r=this.ab,k=this.ka.Kd,n=b.ba(),w=n.pc();if(!w.length)if(n.P.length)w=n.P;else{this.Qf?a.Yb(""):a.ca(0);return}g[0]=a;a.We=b;a=m();d(l,g,a);f&&(f.get(a),a.La()&&(k=a.data,w=b.c));--c;l=w.length;if(k>=l||k<=-l)k%=l;0>k&&(k+=l);k=w[k];w=0;b.A&&(w=k.type.nf[b.td]);r.apply(k.F[h+w],g)};g.prototype.Qr=function(a){var b=this.fe,d=this.Dd,g=this.Ep,f=this.ka.Kd,h=d.ba(),l=h.pc();if(!l.length)if(h.P.length)l=
h.P;else{this.Qf?a.Yb(""):a.ca(0);return}if(b){h=m();b.get(h);if(h.La()){f=h.data;d=d.c;f%=d.length;0>f&&(f+=d.length);g=d[f].Ka[g];N(g)?a.Yb(g):a.q(g);--c;return}--c}b=l.length;if(f>=b||f<=-b)f%=b;0>f&&(f+=b);f=l[f];l=0;d.A&&(l=f.type.gi[d.td]);g=f.Ka[g+l];N(g)?a.Yb(g):a.q(g)};g.prototype.Rr=function(a){a.type=U.ef;a.data=this.value};g.prototype.Nr=function(a){a.type=U.df;a.data=this.value};g.prototype.$r=function(a){a.type=U.String;a.data=this.value};g.prototype.cs=function(a){this.first.get(a);
a.La()&&(a.data=-a.data)};g.prototype.Gr=function(a){this.first.get(a);var b=m();this.Ya.get(b);a.La()&&b.La()&&(a.data+=b.data,b.xf()&&a.Gf());--c};g.prototype.as=function(a){this.first.get(a);var b=m();this.Ya.get(b);a.La()&&b.La()&&(a.data-=b.data,b.xf()&&a.Gf());--c};g.prototype.Vr=function(a){this.first.get(a);var b=m();this.Ya.get(b);a.La()&&b.La()&&(a.data*=b.data,b.xf()&&a.Gf());--c};g.prototype.Kr=function(a){this.first.get(a);var b=m();this.Ya.get(b);a.La()&&b.La()&&(a.data/=b.data,a.Gf());
--c};g.prototype.Ur=function(a){this.first.get(a);var b=m();this.Ya.get(b);a.La()&&b.La()&&(a.data%=b.data,b.xf()&&a.Gf());--c};g.prototype.Zr=function(a){this.first.get(a);var b=m();this.Ya.get(b);a.La()&&b.La()&&(a.data=Math.pow(a.data,b.data),b.xf()&&a.Gf());--c};g.prototype.Hr=function(a){this.first.get(a);var b=m();this.Ya.get(b);a.La()?b.Di()?a.Yb(a.data.toString()+b.data):a.data&&b.data?a.ca(1):a.ca(0):a.Di()&&(a.data=b.Di()?a.data+b.data:a.data+(Math.round(1E10*b.data)/1E10).toString());--c};
g.prototype.Yr=function(a){this.first.get(a);var b=m();this.Ya.get(b);a.La()&&b.La()&&(a.data||b.data?a.ca(1):a.ca(0));--c};g.prototype.Jr=function(a){this.first.get(a);a.data?this.Ya.get(a):this.Bj.get(a)};g.prototype.Lr=function(a){this.first.get(a);var b=m();this.Ya.get(b);a.ca(a.data===b.data?1:0);--c};g.prototype.Wr=function(a){this.first.get(a);var b=m();this.Ya.get(b);a.ca(a.data!==b.data?1:0);--c};g.prototype.Sr=function(a){this.first.get(a);var b=m();this.Ya.get(b);a.ca(a.data<b.data?1:0);
--c};g.prototype.Tr=function(a){this.first.get(a);var b=m();this.Ya.get(b);a.ca(a.data<=b.data?1:0);--c};g.prototype.Or=function(a){this.first.get(a);var b=m();this.Ya.get(b);a.ca(a.data>b.data?1:0);--c};g.prototype.Pr=function(a){this.first.get(a);var b=m();this.Ya.get(b);a.ca(a.data>=b.data?1:0);--c};g.prototype.Mr=function(a){var b=this.Ee.yg();ha(b)?a.q(b):a.Yb(b)};Ub=g;s.prototype.xf=function(){return this.type===U.df};s.prototype.La=function(){return this.type===U.ef||this.type===U.df};s.prototype.Di=
function(){return this.type===U.String};s.prototype.Gf=function(){this.xf()||(this.Di()&&(this.data=parseFloat(this.data)),this.type=U.df)};s.prototype.ca=function(a){this.type=U.ef;this.data=Math.floor(a)};s.prototype.q=function(a){this.type=U.df;this.data=a};s.prototype.Yb=function(a){this.type=U.String;this.data=a};s.prototype.cu=function(a){ha(a)?(this.type=U.df,this.data=a):N(a)?(this.type=U.String,this.data=a.toString()):(this.type=U.ef,this.data=0)};Tb=s;U={ef:0,df:1,String:2}})();
function V(g){this.b=g;this.Kb=[]}V.prototype.Wb=function(){var g={},m,d,s,l,c,a,b,x;g.waits=[];var t=g.waits,f;m=0;for(d=this.Kb.length;m<d;m++){a=this.Kb[m];f={t:a.time,st:a.ip,s:a.Wl,ev:a.mf.O,sm:[],sols:{}};a.mf.Cc[a.Lb]&&(f.act=a.mf.Cc[a.Lb].O);s=0;for(l=a.la.length;s<l;s++)f.sm.push(a.la[s].O);for(c in a.rb)if(a.rb.hasOwnProperty(c)){b=this.b.m[parseInt(c,10)];x={sa:a.rb[c].nj,insts:[]};s=0;for(l=a.rb[c].wd.length;s<l;s++)x.insts.push(a.rb[c].wd[s].uid);f.sols[b.O.toString()]=x}t.push(f)}return g};
V.prototype.wc=function(g){g=g.waits;var m,d,s,l,c,a,b,x,t,f,h;m=this.Kb.length=0;for(d=g.length;m<d;m++)if(a=g[m],x=this.b.Sm[a.ev.toString()]){t=-1;s=0;for(l=x.Cc.length;s<l;s++)if(x.Cc[s].O===a.act){t=s;break}if(-1!==t){b={rb:{},la:[],nk:!1};b.time=a.t;b.ip=a.st||"";b.Wl=!!a.s;b.mf=x;b.Lb=t;s=0;for(l=a.sm.length;s<l;s++)(x=this.b.qi(a.sm[s]))&&b.la.push(x);for(c in a.sols)if(a.sols.hasOwnProperty(c)&&(x=this.b.qi(parseInt(c,10)))){t=a.sols[c];f={nj:t.sa,wd:[]};s=0;for(l=t.insts.length;s<l;s++)(h=
this.b.pi(t.insts[s]))&&f.wd.push(h);b.rb[x.index.toString()]=f}this.Kb.push(b)}}};
(function(){function g(){}function m(){}function d(){}var s=V.prototype;g.prototype.Bm=function(){return!0};g.prototype.pq=function(){return!0};g.prototype.Lp=function(a,b,c){return Xb(a,b,c)};g.prototype.Hq=function(){var a=this.b.ni().ua;"undefined"===typeof a.TriggerOnce_lastTick&&(a.TriggerOnce_lastTick=-1);var b=a.TriggerOnce_lastTick,c=this.b.Zf;a.TriggerOnce_lastTick=c;return this.b.hl||b!==c-1};g.prototype.Mp=function(a,b,c){return Xb(a.yg(),b,c)};g.prototype.xm=function(){var a=this.b.mb();
return a.qk?!1:!a.Re};g.prototype.Cm=function(){return!0};g.prototype.dq=function(){return!0};g.prototype.Qj=function(){return!0};g.prototype.qq=function(){return!0};g.prototype.Oj=function(){return!0};g.prototype.wm=function(a,b,c){return Ja(S(a),S(c))<=S(b)};g.prototype.Rp=function(a,b){return La(S(a),S(b))};g.prototype.Op=function(a,b,c){a=Ha(a);b=Ha(b);c=Ha(c);return La(c,b)?La(a,b)&&!La(a,c):!(!La(a,b)&&La(a,c))};s.e=new g;m.prototype.Yp=function(a){if(!this.b.Oe&&!this.b.nd){var b=this.b.Tb.indexOf(this.b.Y);
if(!a||0!==b)if(a||b!==this.b.Tb.length-1)this.b.nd=this.b.Tb[b+(a?-1:1)]}};m.prototype.Aq=function(a,b){a&&a.visible!==b&&(a.visible=b,this.b.ea=!0)};m.prototype.Eq=function(a,b){0===a.Jj?ha(b)?a.$e(b):a.$e(parseFloat(b)):1===a.Jj&&a.$e(b.toString())};m.prototype.Gp=function(a,b){0===a.Jj?ha(b)?a.$e(a.yg()+b):a.$e(a.yg()+parseFloat(b)):1===a.Jj&&a.$e(a.yg()+b.toString())};var l=[],c=[];m.prototype.Iq=function(a){if(!(0>a)){var b,d,g,f=this.b.mb(),h;h=l.length?l.pop():{rb:{},la:[]};h.nk=!1;h.time=
this.b.hc.Z+a;h.ip="";h.Wl=!1;h.mf=f.Pb;h.Lb=f.Lb+1;a=0;for(b=this.b.m.length;a<b;a++)g=this.b.m[a],d=g.ba(),d.ga&&-1===f.Pb.la.indexOf(g)||(h.la.push(g),g=void 0,g=c.length?c.pop():{wd:[]},g.nj=!1,g.nj=d.ga,ya(g.wd,d.c),h.rb[a.toString()]=g);this.Kb.push(h);return!0}};m.prototype.vq=function(){var a,b,c;a=0;for(b=this.b.Tj.length;a<b;a++)c=this.b.Tj[a],c.data=c.wi};m.prototype.Np=function(a){if(!this.b.Oe&&!this.b.nd)for(var b in this.b.Cf)if(this.b.Cf.hasOwnProperty(b)&&gb(b,a)){this.b.nd=this.b.Cf[b];
break}};m.prototype.wq=function(){if(!this.b.Oe&&!this.b.nd&&this.b.Y){this.b.nd=this.b.Y;var a,b,c;a=0;for(b=this.b.Td.length;a<b;a++)c=this.b.Td[a],c.Zo(c.xi)}};s.fa=new m;d.prototype["int"]=function(a,b){N(b)?(a.ca(parseInt(b,10)),isNaN(a.data)&&(a.data=0)):a.ca(b)};d.prototype["float"]=function(a,b){N(b)?(a.q(parseFloat(b)),isNaN(a.data)&&(a.data=0)):a.q(b)};d.prototype.random=function(a,b,c){void 0===c?a.q(Math.random()*b):a.q(Math.random()*(c-b)+b)};d.prototype.sqrt=function(a,b){a.q(Math.sqrt(b))};
d.prototype.abs=function(a,b){a.q(Math.abs(b))};d.prototype.round=function(a,b){a.ca(Math.round(b))};d.prototype.floor=function(a,b){a.ca(Math.floor(b))};d.prototype.ceil=function(a,b){a.ca(Math.ceil(b))};d.prototype.sin=function(a,b){a.q(Math.sin(S(b)))};d.prototype.cos=function(a,b){a.q(Math.cos(S(b)))};d.prototype.tan=function(a,b){a.q(Math.tan(S(b)))};d.prototype.asin=function(a,b){a.q(Ca(Math.asin(b)))};d.prototype.acos=function(a,b){a.q(Ca(Math.acos(b)))};d.prototype.atan=function(a,b){a.q(Ca(Math.atan(b)))};
d.prototype.exp=function(a,b){a.q(Math.exp(b))};d.prototype.log10=function(a,b){a.q(Math.log(b)/Math.LN10)};d.prototype.max=function(a){var b=arguments[1];"number"!==typeof b&&(b=0);var c,d,f;c=2;for(d=arguments.length;c<d;c++)f=arguments[c],"number"===typeof f&&b<f&&(b=f);a.q(b)};d.prototype.min=function(a){var b=arguments[1];"number"!==typeof b&&(b=0);var c,d,f;c=2;for(d=arguments.length;c<d;c++)f=arguments[c],"number"===typeof f&&b>f&&(b=f);a.q(b)};d.prototype.Ce=function(a){a.q(this.b.Ce)};d.prototype.$f=
function(a){a.q(this.b.$f)};d.prototype.time=function(a){a.q(this.b.hc.Z)};d.prototype.Zf=function(a){a.ca(this.b.Zf)};d.prototype.Vi=function(a){a.ca(this.b.Vi)};d.prototype.zk=function(a){a.ca(this.b.zk)};d.prototype.j=function(a,b,c,d,f){a.q(Ca(Ia(b,c,d,f)))};d.prototype.find=function(a,b,c){N(b)&&N(c)?a.ca(b.search(new RegExp($a(c),"i"))):a.ca(-1)};d.prototype.left=function(a,b,c){a.Yb(N(b)?b.substr(0,c):"")};d.prototype.right=function(a,b,c){a.Yb(N(b)?b.substr(b.length-c):"")};d.prototype.replace=
function(a,b,c,d){N(b)&&N(c)&&N(d)?a.Yb(b.replace(new RegExp($a(c),"gi"),d)):a.Yb(N(b)?b:"")};d.prototype.trim=function(a,b){a.Yb(N(b)?b.trim():"")};d.prototype.Zq=function(a){var b=Q(Math.random()*(arguments.length-1));a.cu(arguments[b+1])};d.prototype.hk=function(a){a.q(this.b.hk/1E3)};d.prototype.Pi=function(a){a.q(this.b.Pi)};s.zb=new d;s.St=function(){var a,b,d,g,f,h,r=this.b.mb();a=0;for(d=this.Kb.length;a<d;a++){g=this.Kb[a];if(-1===g.time){if(!g.Wl)continue}else if(g.time>this.b.hc.Z)continue;
r.Pb=g.mf;r.Lb=g.Lb;r.yb=0;for(b in g.rb)g.rb.hasOwnProperty(b)&&(f=this.b.m[parseInt(b,10)].ba(),h=g.rb[b],f.ga=h.nj,ya(f.c,h.wd),f=h,f.wd.length=0,c.push(f));g.mf.Rt();this.b.fk(g.la);g.nk=!0}b=a=0;for(d=this.Kb.length;a<d;a++)g=this.Kb[a],this.Kb[b]=g,g.nk?(Ua(g.rb),g.la.length=0,l.push(g)):b++;this.Kb.length=b}})();
(function(){jb=function(g,d){var s=g[1],l=g[3],c=g[4],a=g[5],b=g[6],x=g[7],t=g[8];d.e||(d.e={});d.fa||(d.fa={});d.zb||(d.zb={});var f=d.e,h=d.fa,r=d.zb;l&&(f.Bu=function(a,b){return Xb(this.x,a,b)},f.Cu=function(a,b){return Xb(this.y,a,b)},f.Iu=function(){var a=this.d;this.ma();var b=this.ya;return!(b.right<a.wa||b.bottom<a.xa||b.left>a.Ia||b.top>a.Ha)},f.Ju=function(){this.ma();var a=this.ya,b=this.b.Y;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},f.Uu=function(a,b,c){var d=this.ba(),
f=d.pc();if(!f.length)return!1;var e=f[0],g=e,h=Ra(e.x,e.y,b,c),l,r,m;l=1;for(r=f.length;l<r;l++)if(e=f[l],m=Ra(e.x,e.y,b,c),0===a&&m<h||1===a&&m>h)h=m,g=e;d.oh(g);return!0},h.lv=function(a){this.x!==a&&(this.x=a,this.qa())},h.mv=function(a){this.y!==a&&(this.y=a,this.qa())},h.Dq=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.qa()},h.hv=function(a,b){var c=a.us(this);if(c){var d;c.Hk?(d=c.Hk(b,!0),c=c.Hk(b,!1)):(d=c.x,c=c.y);if(this.x!==d||this.y!==c)this.x=d,this.y=c,this.qa()}},
h.Nu=function(a){0!==a&&(this.x+=Math.cos(this.j)*a,this.y+=Math.sin(this.j)*a,this.qa())},h.Mu=function(a,b){0!==b&&(this.x+=Math.cos(S(a))*b,this.y+=Math.sin(S(a))*b,this.qa())},r.Hm=function(a){a.q(this.x)},r.Im=function(a){a.q(this.y)},r.Ce=function(a){a.q(this.b.Ek(this))});c&&(f.Au=function(a,b){return Xb(this.width,a,b)},f.xu=function(a,b){return Xb(this.height,a,b)},h.kv=function(a){this.width!==a&&(this.width=a,this.qa())},h.dv=function(a){this.height!==a&&(this.height=a,this.qa())},h.iv=
function(a,b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.qa()},r.pv=function(a){a.q(this.width)},r.Fu=function(a){a.q(this.height)},r.tu=function(a){this.ma();a.q(this.ya.left)},r.vu=function(a){this.ma();a.q(this.ya.top)},r.uu=function(a){this.ma();a.q(this.ya.right)},r.su=function(a){this.ma();a.q(this.ya.bottom)});a&&(f.wm=function(a,b){return Ja(this.j,S(b))<=S(a)},f.Rp=function(a){return La(this.j,S(a))},f.Op=function(a,b){var c=Ha(a),d=Ha(b),f=Ea(this.j);return La(d,
c)?La(f,c)&&!La(f,d):!(!La(f,c)&&La(f,d))},h.yq=function(a){a=S(Da(a));isNaN(a)||this.j===a||(this.j=a,this.qa())},h.xq=function(a){0===a||isNaN(a)||(this.j+=S(a),this.j=Ea(this.j),this.qa())},h.Yu=function(a){0===a||isNaN(a)||(this.j-=S(a),this.j=Ea(this.j),this.qa())},h.Zu=function(a,b){var c=Ka(this.j,S(b),S(a));isNaN(c)||this.j===c||(this.j=c,this.qa())},h.$u=function(a,b,c){a=Ka(this.j,Math.atan2(c-this.y,b-this.x),S(a));isNaN(a)||this.j===a||(this.j=a,this.qa())},h.jv=function(a,b){var c=Math.atan2(b-
this.y,a-this.x);isNaN(c)||this.j===c||(this.j=c,this.qa())},r.Hp=function(a){a.q(Fa(this.j))});s||(f.yu=function(a,b,c){return Xb(this.Ka[a],b,c)},f.Pp=function(a){return this.Ka[a]},f.Vu=function(a,b){var c=this.ba(),d=c.pc();if(!d.length)return!1;var f=d[0],e=f,g=f.Ka[b],h,l,r;h=1;for(l=d.length;h<l;h++)if(f=d[h],r=f.Ka[b],0===a&&r<g||1===a&&r>g)g=r,e=f;c.oh(e);return!0},f.Tu=function(a){var b,c,d,f,e;if(this.b.ni().sf){e=this.ba();if(e.ga)for(e.ga=!1,e.c.length=0,e.P.length=0,d=this.c,b=0,c=d.length;b<
c;b++)f=d[b],f.uid===a?e.P.push(f):e.c.push(f);else{d=b=0;for(c=e.c.length;b<c;b++)f=e.c[b],e.c[d]=f,f.uid===a?e.P.push(f):d++;e.c.length=d}this.ld();return!!e.c.length}f=this.b.pi(a);if(!f)return!1;e=this.ba();if(!e.ga&&-1===e.c.indexOf(f))return!1;if(this.A)for(a=f.type.pa,b=0,c=a.length;b<c;b++){if(a[b]===this)return e.oh(f),this.ld(),!0}else if(f.type===this)return e.oh(f),this.ld(),!0;return!1},f.fq=function(){return!0},f.gq=function(){return!0},h.gv=function(a,b){var c=this.Ka;ha(c[a])?c[a]=
ha(b)?b:parseFloat(b):N(c[a])&&(c[a]=N(b)?b:b.toString())},h.ru=function(a,b){var c=this.Ka;ha(c[a])?c[a]=ha(b)?c[a]+b:c[a]+parseFloat(b):N(c[a])&&(c[a]=N(b)?c[a]+b:c[a]+b.toString())},h.nv=function(a,b){var c=this.Ka;ha(c[a])&&(c[a]=ha(b)?c[a]-b:c[a]-parseFloat(b))},h.av=function(a,b){this.Ka[a]=b?1:0},h.Gq=function(a){this.Ka[a]=1-this.Ka[a]},h.Eu=function(){this.b.Pd(this)},h.Xp||(h.Xp=function(a){var b,c;try{b=JSON.parse(a)}catch(d){return}this.b.Mi(this,b,!0);this.jd&&this.jd();if(this.F)for(a=
0,b=this.F.length;a<b;++a)c=this.F[a],c.jd&&c.jd()}),r.Du=function(a){var b=a.We.c.length,c,d,f;c=0;for(d=this.b.Fc.length;c<d;c++)f=this.b.Fc[c],a.We.A?0<=f.type.pa.indexOf(a.We)&&b++:f.type===a.We&&b++;a.ca(b)},r.Xu=function(a){a.ca(a.We.ba().pc().length)},r.ov=function(a){a.ca(this.uid)},r.Gu=function(a){a.ca(this.zg())},r.Ip||(r.Ip=function(a){a.Yb(JSON.stringify(this.b.Rl(this,!0)))}));b&&(f.Vp=function(){return this.visible},h.Fq=function(a){!a!==!this.visible&&(this.visible=a,this.b.ea=!0)},
f.zu=function(a,b){return Xb(fb(100*this.opacity),a,b)},h.Cq=function(a){a/=100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.ea=!0)},r.Opacity=function(a){a.q(fb(100*this.opacity))});x&&(f.Hu=function(a){return a?this.d===a:!1},f.Wu=function(a){var b=this.ba(),c=b.pc();if(!c.length)return!1;var d=c[0],f=d,e,g;e=1;for(g=c.length;e<g;e++)if(d=c[e],0===a){if(d.d.index>f.d.index||d.d.index===f.d.index&&d.rc()>f.rc())f=d}else if(d.d.index<f.d.index||d.d.index===f.d.index&&d.rc()<f.rc())f=
d;b.oh(f);return!0},h.Qu=function(){var a=this.d,b=a.c;b.length&&b[b.length-1]===this||(a.Pf(this,!1),a.jg(this,!1),this.b.ea=!0)},h.Ou=function(){var a=this.d,b=a.c;b.length&&b[0]===this||(a.Pf(this,!1),a.Jt(this),this.b.ea=!0)},h.Pu=function(a){a&&a!=this.d&&(this.d.Pf(this,!0),this.d=a,a.jg(this,!0),this.b.ea=!0)},h.rv=function(a,b){var c=0===a;if(b){var d=b.ps(this);d&&d.uid!==this.uid&&(this.d.index!==d.d.index&&(this.d.Pf(this,!0),this.d=d.d,d.d.jg(this,!0)),this.d.lt(this,d,c),this.b.ea=!0)}},
r.Lu=function(a){a.ca(this.d.vo)},r.Ku=function(a){a.Yb(this.d.name)},r.qv=function(a){a.ca(this.rc())});t&&(h.bv=function(a,b){if(this.b.n){var c=this.type.Gk(b);if(!(0>c)){var d=1===a;this.Rd[c]!==d&&(this.Rd[c]=d,this.Nd(),this.b.ea=!0)}}},h.cv=function(a,b,c){if(this.b.n){var d=this.type.Gk(a);0>d||(a=this.type.G[d],d=this.ta[d],b=Math.floor(b),0>b||b>=d.length||(1===this.b.n.ys(a.eb,b)&&(c/=100),d[b]!==c&&(d[b]=c,a.Ta&&(this.b.ea=!0))))}})};Db=function(){this.ak=this.Oh=!0;this.type.Ih=!0;this.b.ea=
!0;var g,d,s=this.Zj;g=0;for(d=s.length;g<d;++g)s[g](this);this.d.Rc&&this.ma()};Eb=function(g){g&&this.Zj.push(g)};Gb=function(){if(this.Oh){var g=this.ya,d=this.Nb;g.set(this.x,this.y,this.x+this.width,this.y+this.height);g.offset(-this.Bb*this.width,-this.Cb*this.height);this.j?(g.offset(-this.x,-this.y),d.dp(g,this.j),d.offset(this.x,this.y),d.Tm(g)):d.Uf(g);g.normalize();this.Oh=!1;this.nu()}};var g=new ta(0,0,0,0);Hb=function(){if(this.d.Rc){var m=this.d.Vb,d=this.ya;g.set(m.$b(d.left),m.ac(d.top),
m.$b(d.right),m.ac(d.bottom));this.Gb.di(g)||(this.Gb.right<this.Gb.left?m.update(this,null,g):m.update(this,this.Gb,g),this.Gb.pg(g),this.d.Hd=!0)}};Ib=function(){if(this.ak&&this.xe){this.ma();var m=this.type.Th,d=this.ya;g.set(m.$b(d.left),m.ac(d.top),m.$b(d.right),m.ac(d.bottom));this.Xd.di(g)||(this.Xd.right<this.Xd.left?m.update(this,null,g):m.update(this,this.Xd,g),this.Xd.pg(g),this.ak=!1)}};Fb=function(g,d){return this.ya.$a(g,d)&&this.Nb.$a(g,d)?this.V&&!this.V.wf()?(this.V.jf(this.width,
this.height,this.j),this.V.$a(g-this.x,d-this.y)):!0:!1};zb=function(){this.type.Hj();return this.Je};Jb=function(){this.d.nm();return this.Tc};Kb=function(){this.U.length=0;var g,d;g=0;for(d=this.Rd.length;g<d;g++)this.Rd[g]&&this.U.push(this.type.G[g]);this.Dp=!!this.U.length};Ab=function(){return"Inst"+this.Ro};mb=function(g){if(g&&g.Ic&&g.type!=this){var d,s,l;d=0;for(s=g.siblings.length;d<s;d++)if(l=g.siblings[d],l.type==this)return l}g=this.ba().pc();return g.length?g[0]:null};nb=function(g){var d=
this.ba().pc();return d.length?d[g.zg()%d.length]:null};lb=function(){if(this.Xf&&!this.A){var g,d;g=0;for(d=this.c.length;g<d;g++)this.c[g].Je=g;var s=g,l=this.b.Fc;g=0;for(d=l.length;g<d;++g)l[g].type===this&&(l[g].Je=s++);this.Xf=!1}};xb=function(g){if(g<this.c.length)return this.c[g];g-=this.c.length;var d=this.b.Fc,s,l;s=0;for(l=d.length;s<l;++s)if(d[s].type===this){if(0===g)return d[s];--g}return null};ob=function(){return this.oe[this.rd]};pb=function(){this.rd++;this.rd===this.oe.length?this.oe.push(new kb(this)):
this.oe[this.rd].ga=!0};rb=function(){this.rd++;this.rd===this.oe.length&&this.oe.push(new kb(this));var g=this.oe[this.rd],d=this.oe[this.rd-1];d.ga?g.ga=!0:(g.ga=!1,ya(g.c,d.c),ya(g.P,d.P))};sb=function(){this.rd--};tb=function(g){var d,s,l,c,a,b=0;if(!this.A)for(d=0,s=this.pa.length;d<s;d++)for(a=this.pa[d],l=0,c=a.Fa.length;l<c;l++){if(g===a.Fa[l].name)return this.ua.lastBehIndex=b,a.Fa[l];b++}d=0;for(s=this.Fa.length;d<s;d++){if(g===this.Fa[d].name)return this.ua.lastBehIndex=b,this.Fa[d];b++}return null};
ub=function(g){return this.mi(g)?this.ua.lastBehIndex:-1};vb=function(g){var d,s;d=0;for(s=this.G.length;d<s;d++)if(this.G[d].name===g)return d;return-1};wb=function(){if(this.Ic&&!this.A){var g,d,s,l,c,a,b;this.Hj();a=this.ba();var x=a.ga,t=(g=this.b.mb())&&g.Pb&&g.Pb.Kc;g=0;for(d=this.Ob.length;g<d;g++)if(c=this.Ob[g],c!==this&&(c.Hj(),b=c.ba(),b.ga=x,!x)){b.c.length=a.c.length;s=0;for(l=a.c.length;s<l;s++)b.c[s]=c.sn(a.c[s].Je);if(t)for(b.P.length=a.P.length,s=0,l=a.P.length;s<l;s++)b.P[s]=c.sn(a.P[s].Je)}}};
yb=function(){return"Type"+this.O};Xb=function(g,d,s){if("undefined"===typeof g||"undefined"===typeof s)return!1;switch(d){case 0:return g===s;case 1:return g!==s;case 2:return g<s;case 3:return g<=s;case 4:return g>s;case 5:return g>=s;default:return!1}}})();var fc={};function hc(g){this.b=g}
(function(){function g(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function m(a){a=a.toLowerCase();return R.hasOwnProperty(a)&&R[a].length?R[a][0].ec():v.destination}function d(){return v.createGain?v.createGain():v.createGainNode()}function s(a){return v.createDelay?v.createDelay(a):v.createDelayNode(a)}function l(a){a.start?a.start(0):a.noteOn(0)}function c(a,b,c){a.start?a.start(0,b):a.noteGrainOn(0,b,c-b)}function a(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}function b(a,
b,c,e,f,g){this.type="filter";this.Lc=[a,b,c,e,f,g];this.R=d();this.D=d();this.D.gain.value=g;this.B=d();this.B.gain.value=1-g;this.Ga=v.createBiquadFilter();this.Ga.type="number"===typeof this.Ga.type?a:oc[a];this.Ga.frequency.value=b;this.Ga.detune&&(this.Ga.detune.value=c);this.Ga.Q.value=e;this.Ga.gain.value=f;this.R.connect(this.Ga);this.R.connect(this.B);this.Ga.connect(this.D)}function x(a,b,c){this.type="delay";this.Lc=[a,b,c];this.R=d();this.D=d();this.D.gain.value=c;this.B=d();this.B.gain.value=
1-c;this.ah=d();this.nc=s(a);this.nc.delayTime.value=a;this.bi=d();this.bi.gain.value=b;this.R.connect(this.ah);this.R.connect(this.B);this.ah.connect(this.D);this.ah.connect(this.nc);this.nc.connect(this.bi);this.bi.connect(this.ah)}function t(a,b,c,e){this.type="convolve";this.Lc=[b,c,e];this.R=d();this.D=d();this.D.gain.value=c;this.B=d();this.B.gain.value=1-c;this.ye=v.createConvolver();a&&(this.ye.normalize=b,this.ye.buffer=a);this.R.connect(this.ye);this.R.connect(this.B);this.ye.connect(this.D)}
function f(a,b,c,e,f){this.type="flanger";this.Lc=[a,b,c,e,f];this.R=d();this.B=d();this.B.gain.value=1-f/2;this.D=d();this.D.gain.value=f/2;this.hi=d();this.hi.gain.value=e;this.nc=s(a+b);this.nc.delayTime.value=a;this.Xa=v.createOscillator();this.Xa.frequency.value=c;this.Ub=d();this.Ub.gain.value=b;this.R.connect(this.nc);this.R.connect(this.B);this.nc.connect(this.D);this.nc.connect(this.hi);this.hi.connect(this.nc);this.Xa.connect(this.Ub);this.Ub.connect(this.nc.delayTime);l(this.Xa)}function h(a,
b,c,e,f,g){this.type="phaser";this.Lc=[a,b,c,e,f,g];this.R=d();this.B=d();this.B.gain.value=1-g/2;this.D=d();this.D.gain.value=g/2;this.Ga=v.createBiquadFilter();this.Ga.type="number"===typeof this.Ga.type?7:"allpass";this.Ga.frequency.value=a;this.Ga.detune&&(this.Ga.detune.value=b);this.Ga.Q.value=c;this.Xa=v.createOscillator();this.Xa.frequency.value=f;this.Ub=d();this.Ub.gain.value=e;this.R.connect(this.Ga);this.R.connect(this.B);this.Ga.connect(this.D);this.Xa.connect(this.Ub);this.Ub.connect(this.Ga.frequency);
l(this.Xa)}function r(a){this.type="gain";this.Lc=[a];this.T=d();this.T.gain.value=a}function k(a,b){this.type="tremolo";this.Lc=[a,b];this.T=d();this.T.gain.value=1-b/2;this.Xa=v.createOscillator();this.Xa.frequency.value=a;this.Ub=d();this.Ub.gain.value=b/2;this.Xa.connect(this.Ub);this.Ub.connect(this.T.gain);l(this.Xa)}function n(a,b){this.type="ringmod";this.Lc=[a,b];this.R=d();this.D=d();this.D.gain.value=b;this.B=d();this.B.gain.value=1-b;this.th=d();this.th.gain.value=0;this.Xa=v.createOscillator();
this.Xa.frequency.value=a;this.Xa.connect(this.th.gain);l(this.Xa);this.R.connect(this.th);this.R.connect(this.B);this.th.connect(this.D)}function w(a,b,c,e,f){this.type="distortion";this.Lc=[a,b,c,e,f];this.R=d();this.hj=d();this.gj=d();this.Zt(c,Math.pow(10,e/20));this.D=d();this.D.gain.value=f;this.B=d();this.B.gain.value=1-f;this.Kj=v.createWaveShaper();this.$h=new Float32Array(65536);this.ls(a,b);this.Kj.$h=this.$h;this.R.connect(this.hj);this.R.connect(this.B);this.hj.connect(this.Kj);this.Kj.connect(this.gj);
this.gj.connect(this.D)}function A(a,b,c,d,e){this.type="compressor";this.Lc=[a,b,c,d,e];this.T=v.createDynamicsCompressor();try{this.T.threshold.value=a,this.T.knee.value=b,this.T.ratio.value=c,this.T.attack.value=d,this.T.release.value=e}catch(f){}}function p(a,b){this.type="analyser";this.Lc=[a,b];this.T=v.createAnalyser();this.T.fftSize=a;this.T.smoothingTimeConstant=b;this.js=new Float32Array(this.T.frequencyBinCount);this.gp=new Uint8Array(a);this.nh=0}function e(){this.C=null;this.Oi=0;this.pe=
[];this.rl=this.Gi=this.Fi=0}function q(a,b){this.src=a;this.I=F;this.Jc=b;this.Om=!1;var c=this;this.pl=this.Cl=null;this.Mf=[];this.oj=0;this.um=this.vk=this.lp=this.dj=!1;1===F&&b&&(this.I=0,this.Cl=d());this.ve=this.W=null;var e;switch(this.I){case 0:this.W=new Audio;this.W.addEventListener("canplaythrough",function(){c.um=!0});1===F&&v.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.lp=!0,this.W.addEventListener("canplay",function(){c.pl||(c.pl=v.createMediaElementSource(c.W),
c.pl.connect(c.Cl))}));this.W.autoplay=!1;this.W.Av="auto";this.W.src=a;break;case 1:e=new XMLHttpRequest;e.open("GET",a,!0);e.responseType="arraybuffer";e.onload=function(){c.ve=e.response;c.er()};e.onerror=function(){c.vk=!0};e.send();break;case 2:this.W=!0;break;case 3:this.W=!0}}function u(a,b){var c=this;this.tag=b;this.Zb=this.Yc=!0;this.src=a.src;this.buffer=a;this.I=F;this.Jc=a.Jc;this.playbackRate=1;this.gk=!0;this.vc=this.Id=!1;this.Hb=0;this.Kg=this.yf=this.Zc=!1;this.volume=1;this.Ne=
1===E&&!this.Jc||2===E;this.Hf=1;this.startTime=this.Ne?z.hc.Z:z.hd.Z;this.Aa=this.Ja=null;this.$c=!1;this.za=null;this.Eo=this.Do=this.Co=this.Bo=this.Go=this.Fo=0;this.i=null;var e=!1;1!==this.I||0!==this.buffer.I||this.buffer.lp||(this.I=0);switch(this.I){case 0:this.Jc?(this.i=a.W,e=!a.Om,a.Om=!0):(this.i=new Audio,this.i.autoplay=!1,this.i.src=a.W.src,e=!0);e&&this.i.addEventListener("ended",function(){B=c.tag;c.Zb=!0;z.trigger(hc.prototype.e.Nj,J)});break;case 1:this.Ja=d();this.Ja.connect(m(b));
1===this.buffer.I?a.W&&(this.i=v.createBufferSource(),this.i.buffer=a.W,this.i.connect(this.Ja)):(this.i=this.buffer.W,this.buffer.Cl.connect(this.Ja));break;case 2:this.i=new window.Media(Y+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(c.gk=!0,c.Zb=!0,B=c.tag,z.trigger(hc.prototype.e.Nj,J))});break;case 3:this.i=!0}}function y(a,b){R.hasOwnProperty(a)?R[a].push(b):R[a]=[b];var c,d,e,f,g=v.destination;if(R.hasOwnProperty(a)&&(e=R[a],e.length))for(g=e[0].ec(),c=0,d=e.length;c<d;c++)f=
e[c],c+1===d?f.kc(v.destination):f.kc(e[c+1].ec());Ga.length=0;if(a.length)for(c=0,d=L.length;c<d;c++)e=L[c],gb(a,e.tag)&&Ga.push(e);else P&&!P.Ie()&&(Ga.length=1,Ga[0]=P);c=0;for(d=Ga.length;c<d;c++)Ga[c].Nt(g);da&&qb===a&&(da.disconnect(),da.connect(g))}function O(){}function Z(){}var T=hc.prototype;T.gb=function(a){this.Ba=a;this.b=a.b};T.gb.prototype.ja=function(){};var z=null,J=null,B="",Y="",F=0,v=null,va=[],L=[],P=null,D=!1,E=0,M=!1,C=1,I=0,G=0,ka=1,K=1,qa=10,ga=1E4,sa=1,da=null,qb="",Ma=!1,
Na=[],R={},oc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");b.prototype.kc=function(a){this.D.disconnect();this.D.connect(a);this.B.disconnect();this.B.connect(a)};b.prototype.remove=function(){this.R.disconnect();this.Ga.disconnect();this.D.disconnect();this.B.disconnect()};b.prototype.ec=function(){return this.R};x.prototype.kc=function(a){this.D.disconnect();this.D.connect(a);this.B.disconnect();this.B.connect(a)};x.prototype.remove=function(){this.R.disconnect();
this.ah.disconnect();this.nc.disconnect();this.bi.disconnect();this.D.disconnect();this.B.disconnect()};x.prototype.ec=function(){return this.R};t.prototype.kc=function(a){this.D.disconnect();this.D.connect(a);this.B.disconnect();this.B.connect(a)};t.prototype.remove=function(){this.R.disconnect();this.ye.disconnect();this.D.disconnect();this.B.disconnect()};t.prototype.ec=function(){return this.R};f.prototype.kc=function(a){this.B.disconnect();this.B.connect(a);this.D.disconnect();this.D.connect(a)};
f.prototype.remove=function(){this.R.disconnect();this.nc.disconnect();this.Xa.disconnect();this.Ub.disconnect();this.B.disconnect();this.D.disconnect();this.hi.disconnect()};f.prototype.ec=function(){return this.R};h.prototype.kc=function(a){this.B.disconnect();this.B.connect(a);this.D.disconnect();this.D.connect(a)};h.prototype.remove=function(){this.R.disconnect();this.Ga.disconnect();this.Xa.disconnect();this.Ub.disconnect();this.B.disconnect();this.D.disconnect()};h.prototype.ec=function(){return this.R};
r.prototype.kc=function(a){this.T.disconnect();this.T.connect(a)};r.prototype.remove=function(){this.T.disconnect()};r.prototype.ec=function(){return this.T};k.prototype.kc=function(a){this.T.disconnect();this.T.connect(a)};k.prototype.remove=function(){this.Xa.disconnect();this.Ub.disconnect();this.T.disconnect()};k.prototype.ec=function(){return this.T};n.prototype.kc=function(a){this.D.disconnect();this.D.connect(a);this.B.disconnect();this.B.connect(a)};n.prototype.remove=function(){this.Xa.disconnect();
this.th.disconnect();this.R.disconnect();this.D.disconnect();this.B.disconnect()};n.prototype.ec=function(){return this.R};w.prototype.Zt=function(a,b){.01>a&&(a=.01);this.hj.gain.value=a;this.gj.gain.value=Math.pow(1/a,.6)*b};w.prototype.shape=function(a,b,c){var d=1.05*c*b-b;c=0>a?-1:1;a=0>a?-a:a;b=a<b?a:b+d*(1-Math.exp(-(1/d)*(a-b)));return b*c};w.prototype.ls=function(a,b){for(var c=Math.pow(10,a/20),d=Math.pow(10,b/20),e=0,f=0;32768>f;++f)e=f/32768,e=this.shape(e,c,d),this.$h[32768+f]=e,this.$h[32768-
f-1]=-e};w.prototype.kc=function(a){this.D.disconnect();this.D.connect(a);this.B.disconnect();this.B.connect(a)};w.prototype.remove=function(){this.R.disconnect();this.hj.disconnect();this.Kj.disconnect();this.gj.disconnect();this.D.disconnect();this.B.disconnect()};w.prototype.ec=function(){return this.R};A.prototype.kc=function(a){this.T.disconnect();this.T.connect(a)};A.prototype.remove=function(){this.T.disconnect()};A.prototype.ec=function(){return this.T};p.prototype.Za=function(){this.T.getFloatFrequencyData(this.js);
this.T.getByteTimeDomainData(this.gp);for(var a=this.T.fftSize,b=0,c=this.nh=0,d=0;b<a;b++)d=(this.gp[b]-128)/128,0>d&&(d=-d),this.nh<d&&(this.nh=d),c+=d*d;this.nh=g(this.nh);g(Math.sqrt(c/a))};p.prototype.kc=function(a){this.T.disconnect();this.T.connect(a)};p.prototype.remove=function(){this.T.disconnect()};p.prototype.ec=function(){return this.T};e.prototype.uh=function(a){if(this.C=a)this.Fi=this.C.x,this.Gi=this.C.y;this.pe.length=0};e.prototype.vi=function(){return!!this.C};e.prototype.Za=function(a){this.C&&
0!==a&&(this.rl=Ia(this.Fi,this.Gi,this.C.x,this.C.y),a=Ra(this.Fi,this.Gi,this.C.x,this.C.y)/a,4>this.pe.length||this.pe.shift(),this.pe.push(a),this.Fi=this.C.x,this.Gi=this.C.y)};e.prototype.wn=function(){if(!this.pe.length)return 0;var a,b,c=0;a=0;for(b=this.pe.length;a<b;a++)c+=this.pe[a];return c/this.pe.length};e.prototype.Kk=function(){return Math.cos(this.rl)*this.wn()};e.prototype.Lk=function(){return Math.sin(this.rl)*this.wn()};var lc=!1;q.prototype.er=function(){if(!this.W&&this.ve){var a=
this;if(v.decodeAudioData)v.decodeAudioData(this.ve,function(b){a.W=b;a.ve=null;var c,d,e;if(fa(a.ej)||M)fa(a.Vh)||(c=a.Vh.ye,c.normalize=a.uo,c.buffer=b);else if(a.Mf.length){c=0;for(d=a.Mf.length;c<d;c++){b=a.Mf[c];e=new u(a,b.op);e.Ul(!0);if("undefined"!==typeof b.wo&&(b.C=z.pi(b.wo),!b.C))continue;if(b.C){var f=Qa(b.C.x,b.C.y,-b.C.d.Ua(),I,G,!0),g=Qa(b.C.x,b.C.y,-b.C.d.Ua(),I,G,!1);e.Tl(f,g,Ca(b.C.j-b.C.d.Ua()),b.Rk,b.sl,b.wl);e.uh(b.C)}else e.Tl(b.x,b.y,b.Jq,b.Rk,b.sl,b.wl);e.play(a.ml,a.rm,
a.oj);a.dj&&e.pause();L.push(e)}a.Mf.length=0}else e=new u(a,a.ej),e.play(a.ml,a.rm,a.oj),a.dj&&e.pause(),L.push(e)},function(){a.vk=!0});else if(this.W=v.createBuffer(this.ve,!1),this.ve=null,fa(this.ej)||M)fa(this.Vh)||(b=this.Vh.ye,b.normalize=this.uo,b.buffer=this.W);else{var b=new u(this,this.ej);b.play(this.ml,this.rm,this.oj);this.dj&&b.pause();L.push(b)}}};q.prototype.Gn=function(){switch(this.I){case 0:var a=4<=this.W.readyState;a&&(this.um=!0);return a||this.um;case 1:return!!this.ve||!!this.W;
case 2:return!0;case 3:return!0}return!1};q.prototype.Ys=function(){switch(this.I){case 0:return this.Gn();case 1:return!!this.W;case 2:return!0;case 3:return!0}return!1};q.prototype.Ps=function(){switch(this.I){case 0:return!!this.W.error;case 1:return this.vk}return!1};u.prototype.Ie=function(){var a;switch(this.I){case 0:return this.i.ended;case 1:if(1===this.buffer.I){if(!this.Yc&&!this.Zb&&this.i.loop||this.vc)return!1;a=this.Ne?z.hc.Z:z.hd.Z;var b=this.playbackRate;0===b&&(b=1E-6);return a-
this.startTime>this.buffer.W.duration/b}return this.i.ended;case 2:return this.gk;case 3:!0}return!0};u.prototype.Xq=function(){return this.Yc||this.Zb?!0:this.Ie()};u.prototype.Ul=function(a){1===F&&(!this.$c&&a?this.Ja&&(this.Aa||(this.Aa=v.createPanner(),this.Aa.panningModel="number"===typeof this.Aa.panningModel?ka:["equalpower","HRTF","soundfield"][ka],this.Aa.distanceModel="number"===typeof this.Aa.distanceModel?K:["linear","inverse","exponential"][K],this.Aa.refDistance=qa,this.Aa.maxDistance=
ga,this.Aa.rolloffFactor=sa),this.Ja.disconnect(),this.Ja.connect(this.Aa),this.Aa.connect(m(this.tag)),this.$c=!0):this.$c&&!a&&this.Ja&&(this.Aa.disconnect(),this.Ja.disconnect(),this.Ja.connect(m(this.tag)),this.$c=!1))};u.prototype.Tl=function(a,b,c,d,e,f){this.$c&&1===F&&(this.Aa.setPosition(a,b,0),this.Aa.setOrientation(Math.cos(S(c)),Math.sin(S(c)),0),this.Aa.coneInnerAngle=d,this.Aa.coneOuterAngle=e,this.Aa.coneOuterGain=f,this.Fo=a,this.Go=b,this.Bo=c,this.Co=d,this.Do=e,this.Eo=f)};u.prototype.uh=
function(a){this.$c&&1===F&&(this.za||(this.za=new e),this.za.uh(a))};u.prototype.Za=function(a){if(this.$c&&1===F&&this.za&&this.za.vi()&&this.uf()){this.za.Za(a);a=this.za.C;var b=Qa(a.x,a.y,-a.d.Ua(),I,G,!0),c=Qa(a.x,a.y,-a.d.Ua(),I,G,!1);this.Aa.setPosition(b,c,0);b=0;"undefined"!==typeof this.za.C.j&&(b=a.j-a.d.Ua(),this.Aa.setOrientation(Math.cos(b),Math.sin(b),0));b=Qa(this.za.Kk(),this.za.Lk(),-a.d.Ua(),0,0,!0);c=Qa(this.za.Kk(),this.za.Lk(),-a.d.Ua(),0,0,!1);this.Aa.setVelocity(b,c,0)}};
u.prototype.play=function(a,b,d){var e=this.i;this.Zc=a;this.volume=b;d=d||0;switch(this.I){case 0:1!==e.playbackRate&&(e.playbackRate=1);e.volume!==b*C&&(e.volume=b*C);e.loop!==a&&(e.loop=a);e.muted&&(e.muted=!1);if(e.currentTime!==d)try{e.currentTime=d}catch(f){}if(this.Jc&&Ma&&!z.ha)Na.push(this);else try{this.i.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.Hf=1;if(1===this.buffer.I)this.Ja.gain.value=
b*C,this.Yc||(this.i=v.createBufferSource(),this.i.buffer=this.buffer.W,this.i.connect(this.Ja)),this.i.loop=a,0===d?l(this.i):c(this.i,d,this.Ge());else{1!==e.playbackRate&&(e.playbackRate=1);e.loop!==a&&(e.loop=a);e.volume=b*C;if(e.currentTime!==d)try{e.currentTime=d}catch(k){}this.Jc&&Ma&&!z.ha?Na.push(this):e.play()}break;case 2:(!this.Yc&&this.Zb||0!==d)&&e.seekTo(d);e.play();this.gk=!1;break;case 3:z.bb?AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=
1;this.startTime=(this.Ne?z.hc.Z:z.hd.Z)-d;this.vc=this.Zb=this.Yc=!1};u.prototype.stop=function(){switch(this.I){case 0:this.i.paused||this.i.pause();break;case 1:1===this.buffer.I?a(this.i):this.i.paused||this.i.pause();break;case 2:this.i.stop();break;case 3:z.bb&&AppMobi.context.stopSound(this.src)}this.Zb=!0;this.vc=!1};u.prototype.pause=function(){if(!(this.Yc||this.Zb||this.Ie()||this.vc)){switch(this.I){case 0:this.i.paused||this.i.pause();break;case 1:1===this.buffer.I?(this.Hb=this.Ik(),
this.Zc&&(this.Hb%=this.Ge()),a(this.i)):this.i.paused||this.i.pause();break;case 2:this.i.pause();break;case 3:z.bb&&AppMobi.context.stopSound(this.src)}this.vc=!0}};u.prototype.Qt=function(){if(!(this.Yc||this.Zb||this.Ie())&&this.vc){switch(this.I){case 0:this.i.play();break;case 1:1===this.buffer.I?(this.i=v.createBufferSource(),this.i.buffer=this.buffer.W,this.i.connect(this.Ja),this.i.loop=this.Zc,this.Ja.gain.value=C*this.volume*this.Hf,this.startTime=(this.Ne?z.hc.Z:z.hd.Z)-this.Hb,c(this.i,
this.Hb,this.Ge())):this.i.play();break;case 2:this.i.play();break;case 3:z.bb&&AppMobi.context.resumeSound(this.src)}this.vc=!1}};u.prototype.seek=function(a){if(!(this.Yc||this.Zb||this.Ie()))switch(this.I){case 0:try{this.i.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.I)this.vc?this.Hb=a:(this.pause(),this.Hb=a,this.Qt());else try{this.i.currentTime=a}catch(c){}break;case 3:z.bb&&AppMobi.context.seekSound(this.src,a)}};u.prototype.Nt=function(a){1===this.I&&(this.$c?(this.Aa.disconnect(),
this.Aa.connect(a)):(this.Ja.disconnect(),this.Ja.connect(a)))};u.prototype.Ge=function(){switch(this.I){case 0:if("undefined"!==typeof this.i.duration)return this.i.duration;break;case 1:return this.buffer.W.duration;case 2:return this.i.getDuration();case 3:if(z.bb)return AppMobi.context.getDurationSound(this.src)}return 0};u.prototype.Ik=function(){var a=this.Ge(),b=0;switch(this.I){case 0:"undefined"!==typeof this.i.currentTime&&(b=this.i.currentTime);break;case 1:if(1===this.buffer.I){if(this.vc)return this.Hb;
b=(this.Ne?z.hc.Z:z.hd.Z)-this.startTime}else"undefined"!==typeof this.i.currentTime&&(b=this.i.currentTime);break;case 3:z.bb&&(b=AppMobi.context.getPlaybackTimeSound(this.src))}!this.Zc&&b>a&&(b=a);return b};u.prototype.uf=function(){return!this.vc&&!this.Yc&&!this.Zb&&!this.Ie()};u.prototype.lu=function(){var a=this.volume*C;switch(this.I){case 0:"undefined"!==typeof this.i.volume&&this.i.volume!==a&&(this.i.volume=a);break;case 1:1===this.buffer.I?this.Ja.gain.value=a*this.Hf:"undefined"!==typeof this.i.volume&&
this.i.volume!==a&&(this.i.volume=a)}};u.prototype.ci=function(a){switch(this.I){case 0:this.i.muted!==!!a&&(this.i.muted=!!a);break;case 1:1===this.buffer.I?(this.Hf=a?0:1,this.Ja.gain.value=C*this.volume*this.Hf):this.i.muted!==!!a&&(this.i.muted=!!a)}};u.prototype.$t=function(){this.yf=!0;this.ci(this.yf||this.Kg)};u.prototype.$o=function(a){this.Kg=!!a;this.ci(this.yf||this.Kg)};u.prototype.Cp=function(){var a=this.playbackRate;this.Ne&&(a*=z.$f);switch(this.I){case 0:this.i.playbackRate!==a&&
(this.i.playbackRate=a);break;case 1:1===this.buffer.I?this.i.playbackRate.value!==a&&(this.i.playbackRate.value=a):this.i.playbackRate!==a&&(this.i.playbackRate=a)}};u.prototype.bu=function(b){switch(this.I){case 0:b?this.uf()?(this.i.pause(),this.Id=!0):this.Id=!1:this.Id&&this.i.play();break;case 1:b?this.uf()?(1===this.buffer.I?(this.Hb=this.Ik(),this.Zc&&(this.Hb%=this.Ge()),a(this.i)):this.i.pause(),this.Id=!0):this.Id=!1:this.Id&&(1===this.buffer.I?(this.i=v.createBufferSource(),this.i.buffer=
this.buffer.W,this.i.connect(this.Ja),this.i.loop=this.Zc,this.Ja.gain.value=C*this.volume*this.Hf,this.startTime=(this.Ne?z.hc.Z:z.hd.Z)-this.Hb,c(this.i,this.Hb,this.Ge())):this.i.play());break;case 2:b?this.uf()?(this.i.pause(),this.Id=!0):this.Id=!1:this.Id&&this.i.play()}};T.Ea=function(a){this.type=a;z=this.b=a.b;J=this;this.ob=null;this.Sg=-600;!(this.b.Ei||this.b.yi&&(this.b.Gg||this.b.Ai))||this.b.Hg||this.b.da||this.b.Yk||(Ma=!0);v=null;"undefined"!==typeof AudioContext?(F=1,v=new AudioContext):
"undefined"!==typeof webkitAudioContext&&(F=1,v=new webkitAudioContext);(this.b.Ei&&1===F||Ma)&&document.addEventListener("touchstart",function(){var a,b,c;!lc&&v&&(a=v.createBuffer(1,1,22050),b=v.createBufferSource(),b.buffer=a,b.connect(v.destination),l(b),lc=!0);if(Ma){if(!M)for(a=0,b=Na.length;a<b;++a)c=Na[a],c.Zb||c.vc||c.i.play();Na.length=0}},!0);1!==F&&(this.b.uc&&"undefined"!==typeof window.Media?F=2:this.b.tf&&(F=3));2===F&&(Y=location.href,a=Y.lastIndexOf("/"),-1<a&&(Y=Y.substr(0,a+1)),
Y=Y.replace("file://",""));if(this.b.Hn&&this.b.Zs&&"undefined"===typeof Audio)alert("It looks like you're using Safari for Windows without Quicktime.  Audio cannot be played until Quicktime is installed."),this.b.Pd(this);else{if(this.b.bb)D=this.b.yi;else try{D=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(b){D=!1}this.b.em(this)}};var la=T.Ea.prototype;la.ja=function(){this.b.hf=this;E=this.Da[0];this.Jd=this.Da[1];this.Dt=0!==this.Da[2];ka=this.Da[3];K=this.Da[4];this.Sg=-this.Da[5];
qa=this.Da[6];ga=this.Da[7];sa=this.Da[8];this.ob=new e;var a=this.b.M||this.b.width,b=this.b.L||this.b.height;1===F&&("undefined"!==typeof v.listener.dopplerFactor&&(v.listener.dopplerFactor=0),v.listener.setPosition(a/2,b/2,this.Sg),v.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,b){da&&da.disconnect();qb=b.toLowerCase();da=v.createMediaStreamSource(a);da.connect(m(qb))});this.b.Pq(function(a){J.zt(a)});var c=this;this.b.Nq(function(a){c.tt(a)})};la.tt=function(a){var b,
c,d;b=0;for(c=L.length;b<c;b++)d=L[b],d.za&&d.za.C===a&&(d.za.C=null,d.$c&&d.uf()&&d.Zc&&d.stop());this.ob.C===a&&(this.ob.C=null)};la.Wb=function(){var a={silent:M,masterVolume:C,listenerZ:this.Sg,listenerUid:this.ob.vi()?this.ob.C.uid:-1,playing:[],effects:{}},b=a.playing,c,d,e,f,g,k;c=0;for(d=L.length;c<d;c++)e=L[c],!e.uf()||3===this.Jd||e.Jc&&1===this.Jd||!e.Jc&&2===this.Jd||(f=e.Ik(),e.Zc&&(f%=e.Ge()),f={tag:e.tag,buffersrc:e.buffer.src,is_music:e.Jc,playbackTime:f,volume:e.volume,looping:e.Zc,
muted:e.yf,playbackRate:e.playbackRate,paused:e.vc,resume_position:e.Hb},e.$c&&(f.pan={},k=f.pan,e.za&&e.za.vi()?k.objUid=e.za.C.uid:(k.x=e.Fo,k.y=e.Go,k.a=e.Bo),k.ia=e.Co,k.oa=e.Do,k.og=e.Eo),b.push(f));b=a.effects;for(g in R)if(R.hasOwnProperty(g)){e=[];c=0;for(d=R[g].length;c<d;c++)e.push({type:R[g][c].type,params:R[g][c].Lc});b[g]=e}return a};var Oa=[];la.wc=function(a){var c=a.silent;C=a.masterVolume;this.Sg=a.listenerZ;this.ob.uh(null);var d=a.listenerUid;-1!==d&&(this.ob.Oi=d,Oa.push(this.ob));
var d=a.playing,g,l,u,m,q,s,O,z,B,v,Z;if(3!==this.Jd)for(g=0,l=L.length;g<l;g++)B=L[g],B.Jc&&1===this.Jd||(B.Jc||2!==this.Jd)&&B.stop();for(q in R)if(R.hasOwnProperty(q))for(g=0,l=R[q].length;g<l;g++)R[q][g].remove();Ua(R);for(q in a.effects)if(a.effects.hasOwnProperty(q))for(s=a.effects[q],g=0,l=s.length;g<l;g++)switch(u=s[g].type,v=s[g].params,u){case "filter":y(q,new b(v[0],v[1],v[2],v[3],v[4],v[5]));break;case "delay":y(q,new x(v[0],v[1],v[2]));break;case "convolve":u=v[2];B=this.li(u,!1);B.W?
u=new t(B.W,v[0],v[1],u):(u=new t(null,v[0],v[1],u),B.uo=v[0],B.Vh=u);y(q,u);break;case "flanger":y(q,new f(v[0],v[1],v[2],v[3],v[4]));break;case "phaser":y(q,new h(v[0],v[1],v[2],v[3],v[4],v[5]));break;case "gain":y(q,new r(v[0]));break;case "tremolo":y(q,new k(v[0],v[1]));break;case "ringmod":y(q,new n(v[0],v[1]));break;case "distortion":y(q,new w(v[0],v[1],v[2],v[3],v[4]));break;case "compressor":y(q,new A(v[0],v[1],v[2],v[3],v[4]));break;case "analyser":y(q,new p(v[0],v[1]))}g=0;for(l=d.length;g<
l;g++)3===this.Jd||(a=d[g],u=a.buffersrc,m=a.is_music,q=a.tag,s=a.playbackTime,O=a.looping,z=a.volume,Z=(v=a.pan)&&v.hasOwnProperty("objUid")?v.objUid:-1,m&&1===this.Jd)||!m&&2===this.Jd||((B=this.pn(u,q,m,O,z))?(B.Hb=a.resume_position,B.Ul(!!v),B.play(O,z,s),B.Cp(),B.lu(),B.ci(B.yf||B.Kg),a.paused&&B.pause(),a.muted&&B.$t(),B.ci(B.yf||B.Kg),v&&(-1!==Z?(B.za=B.za||new e,B.za.Oi=Z,Oa.push(B.za)):B.Tl(v.x,v.y,v.a,v.ia,v.oa,v.og))):(B=this.li(u,m),B.oj=s,B.dj=a.paused,v&&(-1!==Z?B.Mf.push({wo:Z,Rk:v.ia,
sl:v.oa,wl:v.og,op:q}):B.Mf.push({x:v.x,y:v.y,Jq:v.a,Rk:v.ia,sl:v.oa,wl:v.og,op:q}))));if(c&&!M){g=0;for(l=L.length;g<l;g++)L[g].$o(!0);M=!0}else if(!c&&M){g=0;for(l=L.length;g<l;g++)L[g].$o(!1);M=!1}};la.jd=function(){var a,b,c,e;a=0;for(b=Oa.length;a<b;a++)c=Oa[a],e=this.b.pi(c.Oi),c.uh(e),c.Oi=-1,e&&(I=e.x,G=e.y);Oa.length=0};la.zt=function(a){if(!this.Dt){!a&&v&&v.resume&&v.resume();var b,c;b=0;for(c=L.length;b<c;b++)L[b].bu(a);a&&v&&v.suspend&&v.suspend()}};la.Za=function(){var a=this.b.Ce,b,
c,e;b=0;for(c=L.length;b<c;b++)e=L[b],e.Za(a),0===e.I||3===e.I||e.Yc||e.Zb||!e.Ie()||(e.Zb=!0,B=e.tag,z.trigger(hc.prototype.e.Nj,J)),0!==E&&e.Cp();var d,f;for(d in R)if(R.hasOwnProperty(d))for(e=R[d],b=0,c=e.length;b<c;b++)f=e[b],f.Za&&f.Za();1===F&&this.ob.vi()&&(this.ob.Za(a),I=this.ob.C.x,G=this.ob.C.y,v.listener.setPosition(this.ob.C.x,this.ob.C.y,this.Sg),v.listener.setVelocity(this.ob.Kk(),this.ob.Lk(),0))};var Pa=[];la.au=function(a){var b,c,e,d,f,g=0;b=0;for(c=a.length;b<c;++b)if(e=a[b],
d=e[0],e=2*e[1],(f=4<d.length&&".ogg"===d.substr(d.length-4))&&D||!f&&!D)Pa.push({filename:d,size:e,C:null}),g+=e;return g};la.eu=function(){var a,b,c,e;a=0;for(b=Pa.length;a<b;++a)c=Pa[a],e=this.b.wk+c.filename,c.C=this.li(e,!1)};la.vs=function(){var a=0,b,c,e;b=0;for(c=Pa.length;b<c;++b)e=Pa[b],e.C.Ys()||e.C.Ps()||this.b.da||this.b.Ai?a+=e.size:e.C.Gn()&&(a+=Math.floor(e.size/2));return a};la.li=function(a,b){var c,e,d,f=null;c=0;for(e=va.length;c<e;c++)if(d=va[c],d.src===a){f=d;break}f||(f=new q(a,
b),va.push(f));return f};la.pn=function(a,b,c,e,d){var f,g,k;f=0;for(g=L.length;f<g;f++)if(k=L[f],k.src===a&&(k.Xq()||c))return k.tag=b,k;a=this.li(a,c);if(!a.W)return"<preload>"!==b&&(a.ej=b,a.ml=e,a.rm=d),null;k=new u(a,b);L.push(k);return k};var Ga=[];O.prototype.Nj=function(a){return gb(B,a)};T.e=new O;Z.prototype.Play=function(a,b,c,e){!M&&(c=Math.pow(10,c/20),0>c&&(c=0),1<c&&(c=1),P=this.pn(this.b.wk+a[0]+(D?".ogg":".m4a"),e,a[1],0!==b,c))&&(P.Ul(!1),P.play(0!==b,c))};T.fa=new Z;T.zb=new function(){}})();
function ic(g){this.b=g}
(function(){function g(){}var m=ic.prototype;m.gb=function(d){this.Ba=d;this.b=d.b};m.gb.prototype.ja=function(){};m.Ea=function(d){this.type=d;this.b=d.b;this.el=Array(256);this.Ij=Array(256);this.re=0};var d=m.Ea.prototype;d.ja=function(){var d=this;this.b.da||(jQuery(document).keydown(function(c){d.ut(c)}),jQuery(document).keyup(function(c){d.wt(c)}))};var s=[32,33,34,35,36,37,38,39,40,44];d.ut=function(d){var c=!1;window!=window.top&&-1<s.indexOf(d.which)&&(d.preventDefault(),c=!0,d.stopPropagation());
if(this.el[d.which])this.Ij[d.which]&&!c&&d.preventDefault();else{this.el[d.which]=!0;this.re=d.which;this.b.ha=!0;this.b.trigger(ic.prototype.e.bq,this);var a=this.b.trigger(ic.prototype.e.lq,this),b=this.b.trigger(ic.prototype.e.mq,this);this.b.ha=!1;if(a||b)this.Ij[d.which]=!0,c||d.preventDefault()}};d.wt=function(d){this.el[d.which]=!1;this.re=d.which;this.b.ha=!0;this.b.trigger(ic.prototype.e.cq,this);var c=this.b.trigger(ic.prototype.e.oq,this),a=this.b.trigger(ic.prototype.e.nq,this);this.b.ha=
!1;if(c||a||this.Ij[d.which])this.Ij[d.which]=!0,d.preventDefault()};d.Wb=function(){return{triggerKey:this.re}};d.wc=function(d){this.re=d.triggerKey};g.prototype.lq=function(d){return d===this.re};g.prototype.bq=function(){return!0};g.prototype.cq=function(){return!0};g.prototype.oq=function(d){return d===this.re};g.prototype.mq=function(d){return d===this.re};g.prototype.nq=function(d){return d===this.re};m.e=new g;m.fa=new function(){};m.zb=new function(){}})();function jc(g){this.b=g}
(function(){function g(){}function m(){}var d=jc.prototype;d.gb=function(c){this.Ba=c;this.b=c.b};d.gb.prototype.ja=function(){};d.Ea=function(c){this.type=c;this.b=c.b;this.Ph=Array(4);this.rp=this.Dj=this.ag=this.Cd=this.Bd=0;this.Ok=!1};var s=d.Ea.prototype;s.ja=function(){var c=this;if(!this.b.da){jQuery(document).mousemove(function(a){c.gh(a)});jQuery(document).mousedown(function(a){c.fh(a)});jQuery(document).mouseup(function(a){c.hh(a)});jQuery(document).dblclick(function(a){c.pt(a)});var a=
function(a){c.Bt(a)};document.addEventListener("mousewheel",a,!1);document.addEventListener("DOMMouseScroll",a,!1)}};var l={left:0,top:0};s.gh=function(c){var a=this.b.da?l:jQuery(this.b.canvas).offset();this.Bd=c.pageX-a.left;this.Cd=c.pageY-a.top};s.po=function(){return 0<this.b.lb?!0:0<=this.Bd&&0<=this.Cd&&this.Bd<this.b.width&&this.Cd<this.b.height};s.fh=function(c){this.po()&&(this.b.rf&&!this.b.zd&&c.preventDefault(),this.Ph[c.which]=!0,this.b.ha=!0,this.b.trigger(jc.prototype.e.aq,this),this.ag=
c.which-1,this.Dj=0,this.b.trigger(jc.prototype.e.ym,this),this.b.trigger(jc.prototype.e.Pj,this),this.b.ha=!1)};s.hh=function(c){this.Ph[c.which]&&(this.b.rf&&!this.b.zd&&c.preventDefault(),this.b.rf=!0,this.Ph[c.which]=!1,this.b.ha=!0,this.ag=c.which-1,this.b.trigger(jc.prototype.e.rq,this),this.b.ha=!1)};s.pt=function(c){this.po()&&(c.preventDefault(),this.b.ha=!0,this.ag=c.which-1,this.Dj=1,this.b.trigger(jc.prototype.e.ym,this),this.b.trigger(jc.prototype.e.Pj,this),this.b.ha=!1)};s.Bt=function(c){this.rp=
0>(c.wheelDelta?c.wheelDelta:c.detail?-c.detail:0)?0:1;this.Ok=!1;this.b.ha=!0;this.b.trigger(jc.prototype.e.uq,this);this.b.ha=!1;this.Ok&&hb(c)&&c.preventDefault()};g.prototype.ym=function(c,a){return c===this.ag&&a===this.Dj};g.prototype.aq=function(){return!0};g.prototype.Qp=function(c){return this.Ph[c+1]};g.prototype.rq=function(c){return c===this.ag};g.prototype.Sp=function(c){var a=this.b.ni();return Sa(this.b.Yf(c,this.Bd,this.Cd,a.sf),a.sf)};g.prototype.Pj=function(c,a,b){return c!==this.ag||
a!==this.Dj?!1:this.b.Yf(b,this.Bd,this.Cd,!1)};g.prototype.uq=function(c){this.Ok=!0;return c===this.rp};d.e=new g;d.fa=new function(){};m.prototype.Hm=function(c,a){var b,d,g,f,h;fa(a)?(b=this.b.vd(0),d=b.scale,g=b.kb,f=b.Eb,h=b.j,b.scale=1,b.kb=1,b.Eb=1,b.j=0,c.q(b.na(this.Bd,this.Cd,!0)),b.scale=d,b.kb=g,b.Eb=f,b.j=h):(b=ha(a)?this.b.vd(a):this.b.wg(a))?c.q(b.na(this.Bd,this.Cd,!0)):c.q(0)};m.prototype.Im=function(c,a){var b,d,g,f,h;fa(a)?(b=this.b.vd(0),d=b.scale,g=b.kb,f=b.Fb,h=b.j,b.scale=
1,b.kb=1,b.Fb=1,b.j=0,c.q(b.na(this.Bd,this.Cd,!1)),b.scale=d,b.kb=g,b.Fb=f,b.j=h):(b=ha(a)?this.b.vd(a):this.b.wg(a))?c.q(b.na(this.Bd,this.Cd,!1)):c.q(0)};d.zb=new m})();function kc(g){this.b=g}
(function(){function g(d){this.ka=d;this.Ta=!1;this.j=this.speed=this.y=this.x=0;this.opacity=1;this.Sd=this.qf=this.size=this.si=0}var m=kc.prototype;m.gb=function(d){this.Ba=d;this.b=d.b};var d=m.gb.prototype;d.ja=function(){this.A||(this.H=new Image,this.H.ik=this.Aj,this.N=null,this.b.tm(this.H,this.zj))};d.Wi=function(){this.A||(this.N=null)};d.Xi=function(){this.A||!this.c.length||this.N||(this.N=this.b.n.Df(this.H,!0,this.b.S,this.Ch))};d.Tg=function(){this.A||this.N||!this.b.n||(this.N=this.b.n.Df(this.H,
!0,this.b.S,this.Ch))};d.Gj=function(){this.A||this.c.length||!this.N||(this.b.n.deleteTexture(this.N),this.N=null)};d.ij=function(d){d.drawImage(this.H,0,0)};g.prototype.init=function(){var d=this.ka;this.x=d.x-d.Lj/2+Math.random()*d.Lj;this.y=d.y-d.Mj/2+Math.random()*d.Mj;this.speed=d.Vk-d.tj/2+Math.random()*d.tj;this.j=d.j-d.uj/2+Math.random()*d.uj;this.opacity=d.Tk;this.size=d.Uk-d.rj/2+Math.random()*d.rj;this.si=d.Nk-d.ti/2+Math.random()*d.ti;this.Sd=this.qf=0};g.prototype.Za=function(d){var c=
this.ka;this.x+=Math.cos(this.j)*this.speed*d;this.y+=Math.sin(this.j)*this.speed*d;this.y+=this.qf*d;this.speed+=c.Sj*d;this.size+=this.si*d;this.qf+=c.Ck*d;this.Sd+=d;1>this.size?this.Ta=!1:(0!==c.Pg&&(this.j+=Math.random()*c.Pg*d-c.Pg*d/2),0!==c.Rg&&(this.speed+=Math.random()*c.Rg*d-c.Rg*d/2),0!==c.Qg&&(this.opacity+=Math.random()*c.Qg*d-c.Qg*d/2,0>this.opacity?this.opacity=0:1<this.opacity&&(this.opacity=1)),1>=c.lf&&this.Sd>=c.timeout&&(this.Ta=!1),2===c.lf&&0>=this.speed&&(this.Ta=!1))};g.prototype.Gc=
function(d){var c=this.ka.opacity*this.opacity;if(0!==c){0===this.ka.lf&&(c*=1-this.Sd/this.ka.timeout);d.globalAlpha=c;var c=this.x-this.size/2,a=this.y-this.size/2;this.ka.b.bd&&(c=c+.5|0,a=a+.5|0);d.drawImage(this.ka.type.H,c,a,this.size,this.size)}};g.prototype.Qb=function(d){var c=this.ka.opacity*this.opacity;0===this.ka.lf&&(c*=1-this.Sd/this.ka.timeout);var a=this.size,b=a*this.ka.Jo,g=this.x-a/2,m=this.y-a/2;this.ka.b.bd&&(g=g+.5|0,m=m+.5|0);1>b||0===c||(b<d.kt||b>d.ol?(d.Ze(c),d.rh(g,m,g+
a,m,g+a,m+a,g,m+a)):d.Et(this.x,this.y,b,c))};g.prototype.left=function(){return this.x-this.size/2};g.prototype.right=function(){return this.x+this.size/2};g.prototype.top=function(){return this.y-this.size/2};g.prototype.bottom=function(){return this.y+this.size/2};m.Ea=function(d){this.type=d;this.b=d.b};var d=m.Ea.prototype,s=[];d.ja=function(){var d=this.Da;this.lj=d[0];this.uj=S(d[1]);this.Vf=d[2];this.Xl=!0;this.Vk=d[3];this.Uk=d[4];this.Tk=d[5]/100;this.Nk=d[6];this.Lj=d[7];this.Mj=d[8];this.tj=
d[9];this.rj=d[10];this.ti=d[11];this.Sj=d[12];this.Ck=d[13];this.Pg=d[14];this.Rg=d[15];this.Qg=d[16];this.lf=d[17];this.timeout=d[18];this.Xe=0;this.Jo=1;this.aj=this.x;this.cj=this.y;this.bj=this.x;this.$i=this.y;this.Qq(function(c){c.ya.set(c.aj,c.cj,c.bj,c.$i);c.Nb.Uf(c.ya);c.Oh=!1;c.om()});this.Nc||(this.qb=[]);this.b.em(this);this.type.Tg();if(1===this.Vf)for(d=0;d<this.lj;d++)this.Uj().opacity=0;this.ji=!0};d.Wb=function(){var d={r:this.lj,sc:this.uj,st:this.Vf,s:this.Xl,isp:this.Vk,isz:this.Uk,
io:this.Tk,gr:this.Nk,xr:this.Lj,yr:this.Mj,spr:this.tj,szr:this.rj,grnd:this.ti,acc:this.Sj,g:this.Ck,lar:this.Pg,lsr:this.Rg,lor:this.Qg,dm:this.lf,to:this.timeout,pcc:this.Xe,ft:this.ji,p:[]},c,a,b,g=d.p;c=0;for(a=this.qb.length;c<a;c++)b=this.qb[c],g.push([b.x,b.y,b.speed,b.j,b.opacity,b.si,b.size,b.qf,b.Sd]);return d};d.wc=function(d){this.lj=d.r;this.uj=d.sc;this.Vf=d.st;this.Xl=d.s;this.Vk=d.isp;this.Uk=d.isz;this.Tk=d.io;this.Nk=d.gr;this.Lj=d.xr;this.Mj=d.yr;this.tj=d.spr;this.rj=d.szr;this.ti=
d.grnd;this.Sj=d.acc;this.Ck=d.g;this.Pg=d.lar;this.Rg=d.lsr;this.Qg=d.lor;this.lf=d.dm;this.timeout=d.to;this.Xe=d.pcc;this.ji=d.ft;s.push.apply(s,this.qb);this.qb.length=0;var c,a,b,g=d.p;d=0;for(c=g.length;d<c;d++)a=this.Uj(),b=g[d],a.x=b[0],a.y=b[1],a.speed=b[2],a.j=b[3],a.opacity=b[4],a.si=b[5],a.size=b[6],a.qf=b[7],a.Sd=b[8]};d.eh=function(){s.push.apply(s,this.qb);this.qb.length=0};d.Uj=function(){var d;s.length?(d=s.pop(),d.ka=this):d=new g(this);this.qb.push(d);d.Ta=!0;return d};d.Za=function(){var d=
this.b.Ek(this),c,a,b,g;if(0===this.Vf&&this.Xl)for(this.Xe+=d*this.lj,a=Q(this.Xe),this.Xe-=a,c=0;c<a;c++)b=this.Uj(),b.init();this.aj=this.x;this.cj=this.y;this.bj=this.x;this.$i=this.y;g=c=0;for(a=this.qb.length;c<a;c++)b=this.qb[c],this.qb[g]=b,this.b.ea=!0,1===this.Vf&&this.ji&&b.init(),b.Za(d),b.Ta?(b.left()<this.aj&&(this.aj=b.left()),b.right()>this.bj&&(this.bj=b.right()),b.top()<this.cj&&(this.cj=b.top()),b.bottom()>this.$i&&(this.$i=b.bottom()),g++):s.push(b);this.qb.length=g;this.qa();
this.ji=!1;1===this.Vf&&0===this.qb.length&&this.b.Pd(this)};d.Gc=function(d){var c,a,b,g=this.d;c=0;for(a=this.qb.length;c<a;c++)b=this.qb[c],b.right()>=g.wa&&b.bottom()>=g.xa&&b.left()<=g.Ia&&b.top()<=g.Ha&&b.Gc(d)};d.Qb=function(d){this.Jo=this.d.qc();d.Xb(this.type.N);var c,a,b,g=this.d;c=0;for(a=this.qb.length;c<a;c++)b=this.qb[c],b.right()>=g.wa&&b.bottom()>=g.xa&&b.left()<=g.Ia&&b.top()<=g.Ha&&b.Qb(d)};m.e=new function(){};m.fa=new function(){};m.zb=new function(){}})();
function W(g){this.b=g}
(function(){function g(){if(0===this.lk.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.Wf?b.drawImage(this.H,this.Jf,this.Kf,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.H,0,0,this.width,this.height);this.lk=a.toDataURL("image/png")}return this.lk}function m(){}function d(){}var s=W.prototype;s.gb=function(a){this.Ba=a;this.b=a.b};var l=s.gb.prototype;l.ja=function(){if(!this.A){var a,b,c,d,f,h,e,l,u;this.Dc=
[];this.Cg=!1;a=0;for(b=this.Mb.length;a<b;a++){f=this.Mb[a];e={};e.name=f[0];e.speed=f[1];e.loop=f[2];e.Ml=f[3];e.mj=f[4];e.Ko=f[5];e.O=f[6];e.frames=[];c=0;for(d=f[7].length;c<d;c++)h=f[7][c],l={},l.zj=h[0],l.Aj=h[1],l.Jf=h[2],l.Kf=h[3],l.width=h[4],l.height=h[5],l.duration=h[6],l.Bb=h[7],l.Cb=h[8],l.Sk=h[9],l.fj=h[10],l.Lo=h[11],l.Wf=0!==l.width,l.lk="",l.wv=g,u={left:0,top:0,right:1,bottom:1},l.Vl=u,l.N=null,(u=this.b.gs(h[0]))?l.H=u:(l.H=new Image,l.H.br=h[0],l.H.ik=h[1],l.H.Wq=null,this.b.tm(l.H,
h[0])),e.frames.push(l),this.Dc.push(l);this.Mb[a]=e}}};l.Bp=function(){var a,b,c;a=0;for(b=this.c.length;a<b;a++)c=this.c[a],c.Yh=c.lc.N};l.Wi=function(){if(!this.A){var a,b,c;a=0;for(b=this.Dc.length;a<b;++a)c=this.Dc[a],c.H.Wq=null,c.N=null;this.Cg=!1;this.Bp()}};l.Xi=function(){if(!this.A&&this.c.length){var a,b,c;a=0;for(b=this.Dc.length;a<b;++a)c=this.Dc[a],c.N=this.b.n.Df(c.H,!1,this.b.S,c.Lo);this.Bp()}};l.Tg=function(){if(!this.A&&!this.Cg&&this.b.n){var a,b,c;a=0;for(b=this.Dc.length;a<
b;++a)c=this.Dc[a],c.N=this.b.n.Df(c.H,!1,this.b.S,c.Lo);this.Cg=!0}};l.Gj=function(){if(!this.A&&!this.c.length&&this.Cg){var a,b,c;a=0;for(b=this.Dc.length;a<b;++a)c=this.Dc[a],this.b.n.deleteTexture(c.N),c.N=null;this.Cg=!1}};var c=[];l.ij=function(a){var b,d,f;b=c.length=0;for(d=this.Dc.length;b<d;++b)f=this.Dc[b].H,-1===c.indexOf(f)&&(a.drawImage(f,0,0),c.push(f))};s.Ea=function(a){this.type=a;this.b=a.b;a=this.type.Mb[0].frames[0].fj;this.Nc?this.V.wh(a):this.V=new ab(a)};var a=s.Ea.prototype;
a.ja=function(){this.visible=0===this.Da[0];this.xe=0!==this.Da[3];1===this.type.Mb.length&&1===this.type.Mb[0].frames.length||0===this.type.Mb[0].speed||this.b.em(this);this.ra=this.nn(this.Da[1])||this.type.Mb[0];this.u=this.Da[2];0>this.u&&(this.u=0);this.u>=this.ra.frames.length&&(this.u=this.ra.frames.length-1);var a=this.ra.frames[this.u];this.V.wh(a.fj);this.Bb=a.Bb;this.Cb=a.Cb;this.rg=this.ra.speed;this.Nc?this.Uc.reset():this.Uc=new Za;this.ud=this.Uc.Z;this.ue=!0;this.kd=0;this.te=!0;this.ek=
this.Pm="";this.Yq=0;this.dk=-1;this.type.Tg();var b,c,d,f,g,e,h,a=0;for(b=this.type.Mb.length;a<b;a++)for(f=this.type.Mb[a],c=0,d=f.frames.length;c<d;c++)g=f.frames[c],0===g.width&&(g.width=g.H.width,g.height=g.H.height),g.Wf&&(h=g.H,e=g.Vl,e.left=g.Jf/h.width,e.top=g.Kf/h.height,e.right=(g.Jf+g.width)/h.width,e.bottom=(g.Kf+g.height)/h.height,0===g.Jf&&0===g.Kf&&g.width===h.width&&g.height===h.height&&(g.Wf=!1));this.lc=this.ra.frames[this.u];this.Yh=this.lc.N};a.Wb=function(){var a={a:this.ra.O,
f:this.u,cas:this.rg,fs:this.ud,ar:this.kd,at:this.Uc.Z};this.ue||(a.ap=this.ue);this.te||(a.af=this.te);return a};a.wc=function(a){var b=this.ms(a.a);b&&(this.ra=b);this.u=a.f;0>this.u&&(this.u=0);this.u>=this.ra.frames.length&&(this.u=this.ra.frames.length-1);this.rg=a.cas;this.ud=a.fs;this.kd=a.ar;this.Uc.reset();this.Uc.Z=a.at;this.ue=a.hasOwnProperty("ap")?a.ap:!0;this.te=a.hasOwnProperty("af")?a.af:!0;this.lc=this.ra.frames[this.u];this.Yh=this.lc.N;this.V.wh(this.lc.fj);this.Bb=this.lc.Bb;
this.Cb=this.lc.Cb};a.Xj=function(a){this.u=a?0:this.ra.frames.length-1;this.ue=!1;this.Pm=this.ra.name;this.b.trigger(W.prototype.e.$p,this);this.b.trigger(W.prototype.e.Zp,this);this.kd=0};a.yv=function(){return this.Uc.Z};a.Za=function(){this.Uc.add(this.b.Ek(this));this.ek.length&&this.hr();0<=this.dk&&this.ir();var a=this.Uc.Z,b=this.ra,c=b.frames[this.u],d=c.duration/this.rg;this.ue&&a>=this.ud+d&&(this.te?this.u++:this.u--,this.ud+=d,this.u>=b.frames.length&&(b.Ko?(this.te=!1,this.u=b.frames.length-
2):b.loop?this.u=b.mj:(this.kd++,this.kd>=b.Ml?this.Xj(!1):this.u=b.mj)),0>this.u&&(b.Ko?(this.u=1,this.te=!0,b.loop||(this.kd++,this.kd>=b.Ml&&this.Xj(!0))):b.loop?this.u=b.mj:(this.kd++,this.kd>=b.Ml?this.Xj(!0):this.u=b.mj)),0>this.u?this.u=0:this.u>=b.frames.length&&(this.u=b.frames.length-1),a>this.ud+b.frames[this.u].duration/this.rg&&(this.ud=a),a=b.frames[this.u],this.ff(c,a),this.b.ea=!0)};a.nn=function(a){var b,c,d;b=0;for(c=this.type.Mb.length;b<c;b++)if(d=this.type.Mb[b],gb(d.name,a))return d;
return null};a.ms=function(a){var b,c,d;b=0;for(c=this.type.Mb.length;b<c;b++)if(d=this.type.Mb[b],d.O===a)return d;return null};a.hr=function(){var a=this.ra.frames[this.u],b=this.nn(this.ek);this.ek="";!b||gb(b.name,this.ra.name)&&this.ue||(this.ra=b,this.rg=b.speed,0>this.u&&(this.u=0),this.u>=this.ra.frames.length&&(this.u=this.ra.frames.length-1),1===this.Yq&&(this.u=0),this.ue=!0,this.ud=this.Uc.Z,this.te=!0,this.ff(a,this.ra.frames[this.u]),this.b.ea=!0)};a.ir=function(){var a=this.ra.frames[this.u],
b=this.u;this.u=Q(this.dk);0>this.u&&(this.u=0);this.u>=this.ra.frames.length&&(this.u=this.ra.frames.length-1);b!==this.u&&(this.ff(a,this.ra.frames[this.u]),this.ud=this.Uc.Z,this.b.ea=!0);this.dk=-1};a.ff=function(a,b){var c=a.width,d=a.height,f=b.width,g=b.height;c!=f&&(this.width*=f/c);d!=g&&(this.height*=g/d);this.Bb=b.Bb;this.Cb=b.Cb;this.V.wh(b.fj);this.qa();this.lc=b;this.Yh=b.N;c=0;for(d=this.F.length;c<d;c++)f=this.F[c],f.yt&&f.yt(a,b);this.b.trigger(W.prototype.e.ff,this)};a.Gc=function(a){a.globalAlpha=
this.opacity;var b=this.lc,c=b.Wf,d=b.H,f=this.x,g=this.y,e=this.width,h=this.height;if(0===this.j&&0<=e&&0<=h)f-=this.Bb*e,g-=this.Cb*h,this.b.bd&&(f=Math.round(f),g=Math.round(g)),c?a.drawImage(d,b.Jf,b.Kf,b.width,b.height,f,g,e,h):a.drawImage(d,f,g,e,h);else{this.b.bd&&(f=Math.round(f),g=Math.round(g));a.save();var l=0<e?1:-1,m=0<h?1:-1;a.translate(f,g);1===l&&1===m||a.scale(l,m);a.rotate(this.j*l*m);f=0-this.Bb*ma(e);g=0-this.Cb*ma(h);c?a.drawImage(d,b.Jf,b.Kf,b.width,b.height,f,g,ma(e),ma(h)):
a.drawImage(d,f,g,ma(e),ma(h));a.restore()}};a.Qb=function(a){a.Xb(this.Yh);a.Ze(this.opacity);var b=this.lc,c=this.Nb;if(this.b.bd){var d=Math.round(this.x)-this.x,f=Math.round(this.y)-this.y;b.Wf?a.Gd(c.Ra+d,c.Sa+f,c.Ib+d,c.Jb+f,c.wb+d,c.xb+f,c.tb+d,c.ub+f,b.Vl):a.rh(c.Ra+d,c.Sa+f,c.Ib+d,c.Jb+f,c.wb+d,c.xb+f,c.tb+d,c.ub+f)}else b.Wf?a.Gd(c.Ra,c.Sa,c.Ib,c.Jb,c.wb,c.xb,c.tb,c.ub,b.Vl):a.rh(c.Ra,c.Sa,c.Ib,c.Jb,c.wb,c.xb,c.tb,c.ub)};a.rs=function(a){var b=this.lc,c,d;c=0;for(d=b.Sk.length;c<d;c++)if(gb(a,
b.Sk[c][0]))return c;return-1};a.Hk=function(a,b){var c=this.lc,d=c.Sk,f;f=N(a)?this.rs(a):a-1;f=Q(f);if(0>f||f>=d.length)return b?this.x:this.y;var g=(d[f][1]-c.Bb)*this.width,d=d[f][2],d=(d-c.Cb)*this.height,c=Math.cos(this.j);f=Math.sin(this.j);var e=g*c-d*f,d=d*c+g*f,g=e+this.x,d=d+this.y;return b?g:d};var b=null,x=new ba,t=!1,f=[],h=new ta(0,0,0,0);l.finish=function(a){if(t){if(a){var c=this.b.mb().Pb.Kc;a=b.ba();var d=x.Sc(),f,g;if(a.ga){a.ga=!1;a.c.length=d.length;f=0;for(g=d.length;f<g;f++)a.c[f]=
d[f];if(c)for(f=a.P.length=0,g=b.c.length;f<g;f++)d=b.c[f],x.contains(d)||a.P.push(d)}else if(c)for(c=a.c.length,a.c.length=c+d.length,f=0,g=d.length;f<g;f++)a.c[c+f]=d[f],Ba(a.P,d[f]);else ya(a.c,d);b.ld()}x.clear();t=!1}};m.prototype.Tp=function(a){if(a){var c=!1,d,g,l,m=this.b.ni(),e=m.type,m=m.sf;d=a.ba();g=this.b.mb().Pb.Kc;var q;d.ga?(this.ma(),h.pg(this.ya),h.offset(0,0),this.b.os(this.d,a,h,f),q=f):q=g?d.P:d.c;b=a;t=e!==a&&!m;d=0;for(g=q.length;d<g;d++)if(l=q[d],this.b.gu(this,l)){c=!0;if(m)break;
e!==a&&x.add(l)}f.length=0;a=c}else a=!1;return a};m.prototype.Zp=function(a){return gb(this.Pm,a)};m.prototype.$p=function(){return!0};m.prototype.ff=function(){return!0};s.e=new m;d.prototype.Bq=function(a){a=ma(this.width)*(0===a?-1:1);this.width!==a&&(this.width=a,this.qa())};s.fa=new d;s.zb=new function(){}})();function mc(g){this.b=g}
(function(){var g=mc.prototype;g.gb=function(d){this.Ba=d;this.b=d.b};var m=g.gb.prototype;m.ja=function(){this.A||(this.H=new Image,this.H.ik=this.Aj,this.b.tm(this.H,this.zj),this.N=this.pattern=null)};m.Wi=function(){this.A||(this.N=null)};m.Xi=function(){if(!this.A&&this.c.length){this.N||(this.N=this.b.n.Df(this.H,!0,this.b.S,this.Ch));var d,g;d=0;for(g=this.c.length;d<g;d++)this.c[d].N=this.N}};m.Tg=function(){this.A||this.N||!this.b.n||(this.N=this.b.n.Df(this.H,!0,this.b.S,this.Ch))};m.Gj=
function(){this.A||this.c.length||!this.N||(this.b.n.deleteTexture(this.N),this.N=null)};m.ij=function(d){d.drawImage(this.H,0,0)};g.Ea=function(d){this.type=d;this.b=d.b};m=g.Ea.prototype;m.ja=function(){this.visible=0===this.Da[0];this.sh=new ta(0,0,0,0);this.zn=!1;this.H=this.type.H;this.b.n?(this.type.Tg(),this.N=this.type.N):(this.type.pattern||(this.type.pattern=this.b.aa.createPattern(this.type.H,"repeat")),this.pattern=this.type.pattern)};m.jd=function(){this.zn=!1;this.H=this.type.H};m.eh=
function(){this.b.n&&this.zn&&this.N&&(this.b.n.deleteTexture(this.N),this.N=null)};m.Gc=function(d){d.globalAlpha=this.opacity;d.save();d.fillStyle=this.pattern;var g=this.x,l=this.y;this.b.bd&&(g=Math.round(g),l=Math.round(l));var c=-(this.Bb*this.width),a=-(this.Cb*this.height),b=c%this.H.width,m=a%this.H.height;0>b&&(b+=this.H.width);0>m&&(m+=this.H.height);d.translate(g,l);d.rotate(this.j);d.translate(b,m);d.fillRect(c-b,a-m,this.width,this.height);d.restore()};m.Qb=function(d){d.Xb(this.N);
d.Ze(this.opacity);var g=this.sh;g.right=this.width/this.H.width;g.bottom=this.height/this.H.height;var l=this.Nb;if(this.b.bd){var c=Math.round(this.x)-this.x,a=Math.round(this.y)-this.y;d.Gd(l.Ra+c,l.Sa+a,l.Ib+c,l.Jb+a,l.wb+c,l.xb+a,l.tb+c,l.ub+a,g)}else d.Gd(l.Ra,l.Sa,l.Ib,l.Jb,l.wb,l.xb,l.tb,l.ub,g)};g.e=new function(){};g.fa=new function(){};g.zb=new function(){}})();function X(g){this.b=g}
(function(){function g(a){t=a.x;f=a.y;h=a.z}function m(a){r=a.x;k=a.y;n=a.z}function d(a,b,c,d){var e;e=w.length?w.pop():new s;e.init(a,b,c,d);return e}function s(){this.yh=this.id=this.y=this.x=this.xj=this.wj=this.gl=this.time=this.Zl=0;this.Eh=this.Ej=!1}function l(){}function c(){}var a=X.prototype;a.gb=function(a){this.Ba=a;this.b=a.b};a.gb.prototype.ja=function(){};a.Ea=function(a){this.type=a;this.b=a.b;this.touches=[];this.ql=!1};var b=a.Ea.prototype,x={left:0,top:0};b.vg=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 t=0,f=0,h=0,r=0,k=0,n=0,w=[];s.prototype.init=function(a,b,c,d){var e=Va();this.Zl=this.gl=this.time=e;this.wj=a;this.xj=b;this.x=a;this.y=b;this.id=c;this.yh=d;this.Eh=this.Ej=!1};s.prototype.update=function(a,b,c){this.gl=this.time;this.time=a;this.x=b;this.y=c;!this.Eh&&15<=Ra(this.wj,this.xj,this.x,this.y)&&(this.Eh=!0)};s.prototype.it=function(a,b){!this.Ej&&500<=Va()-this.Zl&&!this.Eh&&15>Ra(this.wj,this.xj,
this.x,this.y)&&(this.Ej=!0,a.fd=this.yh,a.bg=this.id,a.pf=b,a.b.trigger(X.prototype.e.jq,a),a.pd=this.x,a.qd=this.y,a.b.trigger(X.prototype.e.kq,a),a.pf=0)};var A=-1E3,p=-1E3,e=-1E4;s.prototype.mo=function(a,b){if(!this.Ej){var c=Va();333>=c-this.Zl&&!this.Eh&&15>Ra(this.wj,this.xj,this.x,this.y)&&(a.fd=this.yh,a.bg=this.id,a.pf=b,666>=c-e&&25>Ra(A,p,this.x,this.y)?(a.b.trigger(X.prototype.e.hq,a),a.pd=this.x,a.qd=this.y,a.b.trigger(X.prototype.e.zm,a),p=A=-1E3,e=-1E4):(a.b.trigger(X.prototype.e.sq,
a),a.pd=this.x,a.qd=this.y,a.b.trigger(X.prototype.e.tq,a),A=this.x,p=this.y,e=c),a.pf=0)}};b.ja=function(){this.$s=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.pf=this.bg=this.fd=this.qd=this.pd=this.Lm=this.Km=this.Jm=this.Mq=this.Lq=this.Kq=this.mh=this.lh=this.kh=0;this.pu=0!==this.Da[0];var a=0<this.b.lb?document:this.b.canvas,b=document;this.b.bb?b=a=window.Canvas:this.b.gc&&(b=a=window);var c=this;window.navigator.pointerEnabled?(a.addEventListener("pointerdown",function(a){c.jh(a)},
!1),a.addEventListener("pointermove",function(a){c.ih(a)},!1),b.addEventListener("pointerup",function(a){c.Fd(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.Fd(a,!0)},!1),this.b.canvas&&(this.b.canvas.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),document.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),this.b.canvas.addEventListener("gesturehold",function(a){a.preventDefault()},!1),document.addEventListener("gesturehold",function(a){a.preventDefault()},
!1))):window.navigator.msPointerEnabled?(a.addEventListener("MSPointerDown",function(a){c.jh(a)},!1),a.addEventListener("MSPointerMove",function(a){c.ih(a)},!1),b.addEventListener("MSPointerUp",function(a){c.Fd(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.Fd(a,!0)},!1),this.b.canvas&&(this.b.canvas.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),document.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1))):(a.addEventListener("touchstart",function(a){c.Zi(a)},
!1),a.addEventListener("touchmove",function(a){c.Yi(a)},!1),b.addEventListener("touchend",function(a){c.Lf(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.Lf(a,!0)},!1));if(this.$s){var d=function(a){a=a.reading;c.Jm=a.accelerationX;c.Km=a.accelerationY;c.Lm=a.accelerationZ},e=function(a){a=a.reading;c.kh=a.yawDegrees;c.lh=a.pitchDegrees;c.mh=a.rollDegrees},f=Windows.Devices.Sensors.Accelerometer.getDefault();f&&(f.reportInterval=Math.max(f.minimumReportInterval,16),f.addEventListener("readingchanged",
d));var h=Windows.Devices.Sensors.Inclinometer.getDefault();h&&(h.reportInterval=Math.max(h.minimumReportInterval,16),h.addEventListener("readingchanged",e));document.addEventListener("visibilitychange",function(){document.hidden||document.msHidden?(f&&f.removeEventListener("readingchanged",d),h&&h.removeEventListener("readingchanged",e)):(f&&f.addEventListener("readingchanged",d),h&&h.addEventListener("readingchanged",e))},!1)}else window.addEventListener("deviceorientation",function(a){c.kh=a.alpha||
0;c.lh=a.beta||0;c.mh=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.Kq=a.accelerationIncludingGravity.x||0,c.Lq=a.accelerationIncludingGravity.y||0,c.Mq=a.accelerationIncludingGravity.z||0);a.acceleration&&(c.Jm=a.acceleration.x||0,c.Km=a.acceleration.y||0,c.Lm=a.acceleration.z||0)},!1);this.pu&&!this.b.da&&(jQuery(document).mousemove(function(a){c.gh(a)}),jQuery(document).mousedown(function(a){c.fh(a)}),jQuery(document).mouseup(function(a){c.hh(a)}));
this.b.tf&&!this.b.bb&&AppMobi.accelerometer.watchAcceleration(g,{frequency:40,adjustForRotation:!0});this.b.uc&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(m,null,{frequency:40});this.b.hu(this)};b.ih=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var b=this.vg(a.pointerId),c=Va();if(0<=b){var d=this.b.da?x:jQuery(this.b.canvas).offset(),b=this.touches[b];2>c-b.time||
b.update(c,a.pageX-d.left,a.pageY-d.top)}}};b.jh=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&hb(a)&&a.preventDefault();var b=this.b.da?x:jQuery(this.b.canvas).offset(),c=a.pageX-b.left,b=a.pageY-b.top;Va();this.fd=this.touches.length;this.bg=a.pointerId;this.touches.push(d(c,b,a.pointerId,this.fd));this.b.ha=!0;this.b.trigger(X.prototype.e.Em,this);this.b.trigger(X.prototype.e.Gm,this);this.pd=c;this.qd=b;this.b.trigger(X.prototype.e.Fm,this);
this.b.ha=!1}};b.Fd=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&hb(a)&&a.preventDefault();var c=this.vg(a.pointerId);this.fd=0<=c?this.touches[c].yh:-1;this.bg=0<=c?this.touches[c].id:-1;this.b.ha=!0;this.b.trigger(X.prototype.e.Dm,this);this.b.trigger(X.prototype.e.Rj,this);0<=c&&(b||this.touches[c].mo(this,c),100>w.length&&w.push(this.touches[c]),this.touches.splice(c,1));this.b.ha=!1}};b.Yi=function(a){a.preventDefault&&a.preventDefault();
var b=Va(),c,d,e,f;c=0;for(d=a.changedTouches.length;c<d;c++)if(e=a.changedTouches[c],f=this.vg(e.identifier),0<=f){var g=this.b.da?x:jQuery(this.b.canvas).offset();f=this.touches[f];2>b-f.time||f.update(b,e.pageX-g.left,e.pageY-g.top)}};b.Zi=function(a){a.preventDefault&&hb(a)&&a.preventDefault();var b=this.b.da?x:jQuery(this.b.canvas).offset();Va();this.b.ha=!0;var c,e,f,g;c=0;for(e=a.changedTouches.length;c<e;c++)if(f=a.changedTouches[c],g=this.vg(f.identifier),-1===g){g=f.pageX-b.left;var h=f.pageY-
b.top;this.fd=this.touches.length;this.bg=f.identifier;this.touches.push(d(g,h,f.identifier,this.fd));this.b.trigger(X.prototype.e.Em,this);this.b.trigger(X.prototype.e.Gm,this);this.pd=g;this.qd=h;this.b.trigger(X.prototype.e.Fm,this)}this.b.ha=!1};b.Lf=function(a,b){a.preventDefault&&hb(a)&&a.preventDefault();this.b.ha=!0;var c,d,e;c=0;for(d=a.changedTouches.length;c<d;c++)e=a.changedTouches[c],e=this.vg(e.identifier),0<=e&&(this.fd=this.touches[e].yh,this.bg=this.touches[e].id,this.b.trigger(X.prototype.e.Dm,
this),this.b.trigger(X.prototype.e.Rj,this),b||this.touches[e].mo(this,e),100>w.length&&w.push(this.touches[e]),this.touches.splice(e,1));this.b.ha=!1};b.tv=function(){return this.b.tf&&0===this.kh&&0!==h?90*h:this.b.uc&&0===this.kh&&0!==n?90*n:this.kh};b.uv=function(){return this.b.tf&&0===this.lh&&0!==f?-90*f:this.b.uc&&0===this.lh&&0!==k?90*k:this.lh};b.xv=function(){return this.b.tf&&0===this.mh&&0!==t?90*t:this.b.uc&&0===this.mh&&0!==r?90*r:this.mh};b.fh=function(a){a.preventDefault&&this.b.rf&&
!this.b.zd&&a.preventDefault();this.Zi({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.ql=!0};b.gh=function(a){this.ql&&this.Yi({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};b.hh=function(a){a.preventDefault&&this.b.rf&&!this.b.zd&&a.preventDefault();this.b.rf=!0;this.Lf({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.ql=!1};b.cm=function(){var a,b,c,d=Va();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=d-50&&(c.gl=d),c.it(this,
a)};l.prototype.Gm=function(){return!0};l.prototype.Rj=function(){return!0};l.prototype.Fm=function(a){return a?this.b.Yf(a,this.pd,this.qd,!1):!1};var q=[];l.prototype.Up=function(a){if(!a)return!1;var b=a.ba(),c=b.pc(),d,e,f,g,h,k;f=0;for(g=c.length;f<g;f++){var l=c[f];l.ma();h=0;for(k=this.touches.length;h<k;h++)if(e=this.touches[h],d=l.d.na(e.x,e.y,!0),e=l.d.na(e.x,e.y,!1),l.$a(d,e)){q.push(l);break}}return q.length?(b.ga=!1,ya(b.c,q),a.ld(),q.length=0,!0):!1};l.prototype.Em=function(a){a=Math.floor(a);
return a===this.fd};l.prototype.Dm=function(a){a=Math.floor(a);return a===this.fd};l.prototype.jq=function(){return!0};l.prototype.sq=function(){return!0};l.prototype.hq=function(){return!0};l.prototype.kq=function(a){return a?this.b.Yf(a,this.pd,this.qd,!1):!1};l.prototype.tq=function(a){return a?this.b.Yf(a,this.pd,this.qd,!1):!1};l.prototype.zm=function(a){return a?this.b.Yf(a,this.pd,this.qd,!1):!1};a.e=new l;c.prototype.Hm=function(a,b){var c=this.pf;if(0>c||c>=this.touches.length)a.q(0);else{var d,
e,f,g,h;fa(b)?(d=this.b.vd(0),e=d.scale,f=d.kb,g=d.Eb,h=d.j,d.scale=1,d.kb=1,d.Eb=1,d.j=0,a.q(d.na(this.touches[c].x,this.touches[c].y,!0)),d.scale=e,d.kb=f,d.Eb=g,d.j=h):(d=ha(b)?this.b.vd(b):this.b.wg(b))?a.q(d.na(this.touches[c].x,this.touches[c].y,!0)):a.q(0)}};c.prototype.Im=function(a,b){var c=this.pf;if(0>c||c>=this.touches.length)a.q(0);else{var d,e,f,g,h;fa(b)?(d=this.b.vd(0),e=d.scale,f=d.kb,g=d.Fb,h=d.j,d.scale=1,d.kb=1,d.Fb=1,d.j=0,a.q(d.na(this.touches[c].x,this.touches[c].y,!1)),d.scale=
e,d.kb=f,d.Fb=g,d.j=h):(d=ha(b)?this.b.vd(b):this.b.wg(b))?a.q(d.na(this.touches[c].x,this.touches[c].y,!1)):a.q(0)}};a.zb=new c})();
function nc(g){this.b=g;var m=this;this.b.da||(jQuery(document).mousemove(function(d){m.gh(d)}),jQuery(document).mousedown(function(d){m.fh(d)}),jQuery(document).mouseup(function(d){m.hh(d)}));g=0<this.b.lb?document:this.b.canvas;this.b.bb?g=window.Canvas:this.b.gc&&(g=window);window.navigator.pointerEnabled?(g.addEventListener("pointerdown",function(d){m.jh(d)},!1),g.addEventListener("pointermove",function(d){m.ih(d)},!1),g.addEventListener("pointerup",function(d){m.Fd(d)},!1),g.addEventListener("pointercancel",
function(d){m.Fd(d)},!1)):window.navigator.msPointerEnabled?(g.addEventListener("MSPointerDown",function(d){m.jh(d)},!1),g.addEventListener("MSPointerMove",function(d){m.ih(d)},!1),g.addEventListener("MSPointerUp",function(d){m.Fd(d)},!1),g.addEventListener("MSPointerCancel",function(d){m.Fd(d)},!1)):(g.addEventListener("touchstart",function(d){m.Zi(d)},!1),g.addEventListener("touchmove",function(d){m.Yi(d)},!1),g.addEventListener("touchend",function(d){m.Lf(d)},!1),g.addEventListener("touchcancel",
function(d){m.Lf(d)},!1))}
(function(){function g(a){var b,c;b=0;for(c=a.F.length;b<c;b++)if(a.F[b]instanceof s.Ea)return a.F[b];return null}function m(){}function d(){}var s=nc.prototype,l={left:0,top:0};s.fh=function(a){1===a.which&&this.xl("leftmouse",a.pageX,a.pageY)};s.gh=function(a){1===a.which&&this.yl("leftmouse",a.pageX,a.pageY)};s.hh=function(a){1===a.which&&this.zl("leftmouse")};s.Zi=function(a){a.preventDefault&&hb(a)&&a.preventDefault();var b,c,d,f;b=0;for(c=a.changedTouches.length;b<c;b++)d=a.changedTouches[b],
f=d.identifier,this.xl(f?f.toString():"<none>",d.pageX,d.pageY)};s.Yi=function(a){a.preventDefault&&a.preventDefault();var b,c,d,f;b=0;for(c=a.changedTouches.length;b<c;b++)d=a.changedTouches[b],f=d.identifier,this.yl(f?f.toString():"<none>",d.pageX,d.pageY)};s.Lf=function(a){a.preventDefault&&hb(a)&&a.preventDefault();var b,c,d;b=0;for(c=a.changedTouches.length;b<c;b++)d=a.changedTouches[b],d=d.identifier,this.zl(d?d.toString():"<none>")};s.jh=function(a){a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&
"mouse"!==a.pointerType&&(a.preventDefault&&hb(a)&&a.preventDefault(),this.xl(a.pointerId.toString(),a.pageX,a.pageY))};s.ih=function(a){a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType&&(a.preventDefault&&a.preventDefault(),this.yl(a.pointerId.toString(),a.pageX,a.pageY))};s.Fd=function(a){a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType&&(a.preventDefault&&hb(a)&&a.preventDefault(),this.zl(a.pointerId.toString()))};s.xl=function(a,b,c){var d=this.b.da?l:jQuery(this.b.canvas).offset();
b-=d.left;c-=d.top;var f,h,m,k,d=this.If.Sc(),n,s,A,p=null;n=0;for(s=d.length;n<s;n++)if(A=d[n],f=g(A),f.enabled&&!f.Zd&&(f=A.d.na(b,c,!0),h=A.d.na(b,c,!1),A.ma(),A.$a(f,h)))p?A.d.index>p.d.index?(p=A,m=f,k=h):A.d.index===p.d.index&&A.rc()>p.rc()&&(p=A,m=f,k=h):(p=A,m=f,k=h);p&&g(p).qt(a,m,k)};s.yl=function(a,b,c){var d=this.b.da?l:jQuery(this.b.canvas).offset();b-=d.left;c-=d.top;var f,h=this.If.Sc(),m,k,n;m=0;for(k=h.length;m<k;m++)f=h[m],n=g(f),!n.enabled||!n.Zd||n.Zd&&n.pk!==a||(d=f.d.na(b,c,
!0),f=f.d.na(b,c,!1),n.xt(d,f))};s.zl=function(a){var b=this.If.Sc(),c,d,f;c=0;for(d=b.length;c<d;c++)f=b[c],f=g(f),f.Zd&&f.pk===a&&f.At()};s.gb=function(a){this.behavior=a;this.b=a.b};s.gb.prototype.ja=function(){};s.Ea=function(a,b){this.type=a;this.behavior=a.behavior;this.Db=b;this.b=a.b};var c=s.Ea.prototype;c.ja=function(){this.Zd=!1;this.dn=this.cn=0;this.pk="<none>";this.Yj=this.Da[0];this.enabled=0!==this.Da[1]};c.Wb=function(){return{enabled:this.enabled}};c.wc=function(a){this.enabled=
a.enabled;this.Zd=!1};c.qt=function(a,b,c){this.cn=b-this.Db.x;this.dn=c-this.Db.y;this.Zd=!0;this.pk=a;this.b.ha=!0;this.b.trigger(nc.prototype.e.iq,this.Db);this.b.ha=!1};c.xt=function(a,b){var c=a-this.cn,d=b-this.dn;if(0===this.Yj){if(this.Db.x!==c||this.Db.y!==d)this.Db.x=c,this.Db.y=d,this.Db.qa()}else 1===this.Yj?this.Db.x!==c&&(this.Db.x=c,this.Db.qa()):2===this.Yj&&this.Db.y!==d&&(this.Db.y=d,this.Db.qa())};c.At=function(){this.Zd=!1;this.b.ha=!0;this.b.trigger(nc.prototype.e.Am,this.Db);
this.b.ha=!1};c.Za=function(){};m.prototype.iq=function(){return!0};m.prototype.Am=function(){return!0};s.e=new m;d.prototype.zq=function(a){this.enabled=0!==a;this.enabled||(this.Zd=!1)};s.fa=new d;s.zb=new function(){}})();
function gc(){return[hc,ic,jc,kc,W,mc,X,nc,jc.prototype.e.Sp,W.prototype.fa.Cq,jc.prototype.e.Pj,X.prototype.e.Up,V.prototype.fa.Eq,V.prototype.fa.Yp,jc.prototype.e.Qp,V.prototype.e.Mp,V.prototype.fa.Np,W.prototype.e.Vp,W.prototype.fa.Fq,X.prototype.e.Rj,V.prototype.e.Hq,V.prototype.fa.Gp,hc.prototype.fa.Play,V.prototype.fa.Iq,V.prototype.e.Bm,V.prototype.fa.Aq,W.prototype.e.Tp,W.prototype.fa.xq,V.prototype.e.Lp,W.prototype.fa.Bq,W.prototype.zb.Hp,W.prototype.fa.Gq,X.prototype.e.zm,nc.prototype.e.Am,
W.prototype.fa.Dq,W.prototype.fa.yq,W.prototype.e.wm,nc.prototype.fa.zq,W.prototype.e.Pp,V.prototype.e.xm,V.prototype.fa.vq,V.prototype.fa.wq]};
