// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var da,ea,fa,ga,ha,ka,la,z,ma,na,oa,pa,ra,sa,ta,ua,va,wa,xa,ya,za,K,Ba,Da,Ea,Fa,Ga,Q,Ha,Ja,Ka,La,Ma,Na,Oa,Pa,Qa,Ra,Sa,Va,Wa,Xa,Ya,Za,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,mb,nb,ob,pb,qb,rb,sb,tb,ub,vb,wb,xb,yb,zb,Ab,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,Xb,Yb,Zb,$b,ac,bc,cc,dc,ec,fc={},gc={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(c){return c.__proto__}:function(c){return c.constructor.prototype});
(function(){function c(a,e,f,d){this.set(a,e,f,d)}function l(){this.yb=this.xb=this.Ab=this.zb=this.Ib=this.Hb=this.hb=this.gb=0}function h(a,e,f,d){a<e?f<d?(u=a<f?a:f,A=e>d?e:d):(u=a<d?a:d,A=e>f?e:f):f<d?(u=e<f?e:f,A=a>d?a:d):(u=e<d?e:d,A=a>f?a:f)}function p(){this.items=this.Hd=null;this.xh=0;N&&(this.Hd=new Set);this.Hg=[];this.we=!0}function t(a){x[M++]=a}function r(){this.F=this.yk=this.y=this.Vk=0}function b(a){this.cb=[];this.Ei=this.Gi=this.Hi=this.Fi=0;this.$h(a)}function a(a,e){this.Zk=
a;this.Yk=e;this.cells={}}function d(a,e){this.Zk=a;this.Yk=e;this.cells={}}function w(a,e,f){var d;return B.length?(d=B.pop(),d.Cl=a,d.x=e,d.y=f,d):new da(a,e,f)}function e(a,e,f){this.Cl=a;this.x=e;this.y=f;this.mb=new ea}function f(a,e,f){var d;return F.length?(d=F.pop(),d.Cl=a,d.x=e,d.y=f,d):new fa(a,e,f)}function m(a,e,f){this.Cl=a;this.x=e;this.y=f;this.mb=[];this.dg=!0;this.Dd=new ea;this.Lg=!1}function g(a,e){return a.nd-e.nd}ga=function(a){window.console&&window.console.log&&window.console.log(a)};
ha=function(a){window.console&&window.console.error&&window.console.error(a)};ka=function(a){return"undefined"===typeof a};la=function(a){return"number"===typeof a};z=function(a){return"string"===typeof a};ma=function(a){return 0<a&&0===(a-1&a)};na=function(a){--a;for(var e=1;32>e;e<<=1)a=a|a>>e;return a+1};oa=function(a){return 0>a?-a:a};pa=function(a,e){return a<e?a:e};ra=Math.PI;sa=function(a){return 0<=a?a|0:(a|0)-1};ta=function(a){var e=a|0;return e===a?e:e+1};ua=function(a,e,f,d,k,b,g,n){var y,
v,C,w;a<f?(v=a,y=f):(v=f,y=a);k<g?(w=k,C=g):(w=g,C=k);if(y<w||v>C)return!1;e<d?(v=e,y=d):(v=d,y=e);b<n?(w=b,C=n):(w=n,C=b);if(y<w||v>C)return!1;y=k-a+g-f;v=b-e+n-d;a=f-a;e=d-e;k=g-k;b=n-b;n=oa(e*k-b*a);return oa(k*v-b*y)>n?!1:oa(a*v-e*y)<=n};c.prototype.set=function(a,e,f,d){this.left=a;this.top=e;this.right=f;this.bottom=d};c.prototype.Of=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};c.prototype.width=function(){return this.right-this.left};c.prototype.height=
function(){return this.bottom-this.top};c.prototype.offset=function(a,e){this.left+=a;this.top+=e;this.right+=a;this.bottom+=e;return this};c.prototype.normalize=function(){var a=0;this.left>this.right&&(a=this.left,this.left=this.right,this.right=a);this.top>this.bottom&&(a=this.top,this.top=this.bottom,this.bottom=a)};c.prototype.Zu=function(a){return!(a.right<this.left||a.bottom<this.top||a.left>this.right||a.top>this.bottom)};c.prototype.$u=function(a,e,f){return!(a.right+e<this.left||a.bottom+
f<this.top||a.left+e>this.right||a.top+f>this.bottom)};c.prototype.Lb=function(a,e){return a>=this.left&&a<=this.right&&e>=this.top&&e<=this.bottom};c.prototype.Tg=function(a){return this.left===a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};va=c;l.prototype.Zh=function(a){this.gb=a.left;this.hb=a.top;this.Hb=a.right;this.Ib=a.top;this.zb=a.right;this.Ab=a.bottom;this.xb=a.left;this.yb=a.bottom};l.prototype.wq=function(a,e){if(0===e)this.Zh(a);else{var f=Math.sin(e),d=Math.cos(e),
k=a.left*f,b=a.top*f,g=a.right*f,f=a.bottom*f,n=a.left*d,y=a.top*d,v=a.right*d,d=a.bottom*d;this.gb=n-b;this.hb=y+k;this.Hb=v-b;this.Ib=y+g;this.zb=v-f;this.Ab=d+g;this.xb=n-f;this.yb=d+k}};l.prototype.offset=function(a,e){this.gb+=a;this.hb+=e;this.Hb+=a;this.Ib+=e;this.zb+=a;this.Ab+=e;this.xb+=a;this.yb+=e;return this};var u=0,A=0;l.prototype.Yn=function(a){h(this.gb,this.Hb,this.zb,this.xb);a.left=u;a.right=A;h(this.hb,this.Ib,this.Ab,this.yb);a.top=u;a.bottom=A};l.prototype.Lb=function(a,e){var f=
this.gb,d=this.hb,k=this.Hb-f,b=this.Ib-d,g=this.zb-f,n=this.Ab-d,y=a-f,v=e-d,C=k*k+b*b,w=k*g+b*n,b=k*y+b*v,m=g*g+n*n,c=g*y+n*v,q=1/(C*m-w*w),k=(m*b-w*c)*q,C=(C*c-w*b)*q;if(0<=k&&0<C&&1>k+C)return!0;k=this.xb-f;b=this.yb-d;C=k*k+b*b;w=k*g+b*n;b=k*y+b*v;q=1/(C*m-w*w);k=(m*b-w*c)*q;C=(C*c-w*b)*q;return 0<=k&&0<C&&1>k+C};l.prototype.ue=function(a,e){if(e)switch(a){case 0:return this.gb;case 1:return this.Hb;case 2:return this.zb;case 3:return this.xb;case 4:return this.gb;default:return this.gb}else switch(a){case 0:return this.hb;
case 1:return this.Ib;case 2:return this.Ab;case 3:return this.yb;case 4:return this.hb;default:return this.hb}};l.prototype.yp=function(){return(this.gb+this.Hb+this.zb+this.xb)/4};l.prototype.zp=function(){return(this.hb+this.Ib+this.Ab+this.yb)/4};l.prototype.Oo=function(a){var e=a.yp(),f=a.zp();if(this.Lb(e,f))return!0;e=this.yp();f=this.zp();if(a.Lb(e,f))return!0;var d,k,b,g,n,y,v,w;for(v=0;4>v;v++)for(w=0;4>w;w++)if(e=this.ue(v,!0),f=this.ue(v,!1),d=this.ue(v+1,!0),k=this.ue(v+1,!1),b=a.ue(w,
!0),g=a.ue(w,!1),n=a.ue(w+1,!0),y=a.ue(w+1,!1),ua(e,f,d,k,b,g,n,y))return!0;return!1};wa=l;xa=function(a,e){for(var f in e)e.hasOwnProperty(f)&&(a[f]=e[f]);return a};ya=function(a,e){var f,d;e=sa(e);if(!(0>e||e>=a.length)){f=e;for(d=a.length-1;f<d;f++)a[f]=a[f+1];za(a,d)}};za=function(a,e){a.length=e};K=function(a){za(a,0)};Ba=function(a,e){K(a);var f,d;f=0;for(d=e.length;f<d;++f)a[f]=e[f]};Da=function(a,e){a.push.apply(a,e)};Ea=function(a,e){var f,d;f=0;for(d=a.length;f<d;++f)if(a[f]===e)return f;
return-1};Fa=function(a,e){var f=Ea(a,e);-1!==f&&ya(a,f)};Ga=function(a,e,f){return a<e?e:a>f?f:a};Q=function(a){return a/(180/ra)};Ha=function(a){return 180/ra*a};Ja=function(a){a%=360;0>a&&(a+=360);return a};Ka=function(a){a%=2*ra;0>a&&(a+=2*ra);return a};La=function(a){return Ja(Ha(a))};Ma=function(a){return Ka(Q(a))};Na=function(a,e,f,d){return Math.atan2(d-e,f-a)};Oa=function(a,e){if(a===e)return 0;var f=Math.sin(a),d=Math.cos(a),k=Math.sin(e),b=Math.cos(e),f=f*k+d*b;return 1<=f?0:-1>=f?ra:Math.acos(f)};
Pa=function(a,e,f){var d=Math.sin(a),k=Math.cos(a),b=Math.sin(e),g=Math.cos(e);return Math.acos(d*b+k*g)>f?0<k*b-d*g?Ka(a+f):Ka(a-f):Ka(e)};Qa=function(a,e){var f=Math.sin(a),d=Math.cos(a),k=Math.sin(e),b=Math.cos(e);return 0>=d*k-f*b};Ra=function(a,e,f,d,k,b){if(0===f)return b?a:e;var g=Math.sin(f);f=Math.cos(f);a-=d;e-=k;var n=a*g;a=a*f-e*g;e=e*f+n;return b?a+d:e+k};Sa=function(a,e,f,d){a=f-a;e=d-e;return Math.sqrt(a*a+e*e)};Va=function(a,e){return!a!==!e};Wa=function(a){for(var e in a)if(a.hasOwnProperty(e))return!0;
return!1};Xa=function(a){for(var e in a)a.hasOwnProperty(e)&&delete a[e]};var q=+new Date;Ya=function(){if("undefined"!==typeof window.performance){var a=window.performance;if("undefined"!==typeof a.now)return a.now();if("undefined"!==typeof a.webkitNow)return a.webkitNow();if("undefined"!==typeof a.mozNow)return a.mozNow();if("undefined"!==typeof a.msNow)return a.msNow()}return Date.now()-q};var k=!1,n=k=!1,P=!1;"undefined"!==typeof window&&(k=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),
k=!k&&/safari/i.test(navigator.userAgent),n=/(iphone|ipod|ipad)/i.test(navigator.userAgent),P=window.c2ejecta);var N=!k&&!P&&!n&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;p.prototype.contains=function(a){return this.Xd()?!1:N?this.Hd.has(a):this.items&&this.items.hasOwnProperty(a)};p.prototype.add=function(a){if(N)this.Hd.has(a)||(this.Hd.add(a),this.we=!1);else{var e=a.toString(),f=this.items;f?f.hasOwnProperty(e)||(f[e]=a,this.xh++,this.we=!1):(this.items={},this.items[e]=
a,this.xh=1,this.we=!1)}};p.prototype.remove=function(a){if(!this.Xd())if(N)this.Hd.has(a)&&(this.Hd["delete"](a),this.we=!1);else if(this.items){a=a.toString();var e=this.items;e.hasOwnProperty(a)&&(delete e[a],this.xh--,this.we=!1)}};p.prototype.clear=function(){this.Xd()||(N?this.Hd.clear():(this.items=null,this.xh=0),K(this.Hg),this.we=!0)};p.prototype.Xd=function(){return 0===this.count()};p.prototype.count=function(){return N?this.Hd.size:this.xh};var x=null,M=0;p.prototype.Iw=function(){if(!this.we){if(N)K(this.Hg),
x=this.Hg,M=0,this.Hd.forEach(t),x=null,M=0;else{var a=this.Hg;K(a);var e,f=0,d=this.items;if(d)for(e in d)d.hasOwnProperty(e)&&(a[f++]=d[e])}this.we=!0}};p.prototype.Ue=function(){this.Iw();return this.Hg};ea=p;new ea;Za=function(a,e){N?$a(a,e.Hd):ab(a,e.Ue())};$a=function(a,e){var f,d,k,b;d=f=0;for(k=a.length;f<k;++f)b=a[f],e.has(b)||(a[d++]=b);za(a,d)};ab=function(a,e){var f,d,k,b;d=f=0;for(k=a.length;f<k;++f)b=a[f],-1===Ea(e,b)&&(a[d++]=b);za(a,d)};r.prototype.add=function(a){this.y=a-this.Vk;
this.yk=this.F+this.y;this.Vk=this.yk-this.F-this.y;this.F=this.yk};r.prototype.reset=function(){this.F=this.yk=this.y=this.Vk=0};bb=r;cb=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};b.prototype.$h=function(a){this.gq=a;this.fd=a.length/2;this.cb.length=a.length;this.Ji=this.Ki=-1;this.ao=0};b.prototype.$f=function(){return!this.gq.length};b.prototype.ka=function(){for(var a=this.cb,e=a[0],f=e,d=a[1],k=d,b,g,n=1,y=this.fd;n<y;++n)g=2*n,b=a[g],g=a[g+1],b<e&&(e=b),b>f&&(f=b),g<d&&
(d=g),g>k&&(k=g);this.Fi=e;this.Gi=f;this.Hi=d;this.Ei=k};b.prototype.Zh=function(a,e,f){this.cb.length=8;this.fd=4;var d=this.cb;d[0]=a.left-e;d[1]=a.top-f;d[2]=a.right-e;d[3]=a.top-f;d[4]=a.right-e;d[5]=a.bottom-f;d[6]=a.left-e;d[7]=a.bottom-f;this.Ki=a.right-a.left;this.Ji=a.bottom-a.top;this.ka()};b.prototype.zg=function(a,e,f,d,k){this.cb.length=8;this.fd=4;var b=this.cb;b[0]=a.gb-e;b[1]=a.hb-f;b[2]=a.Hb-e;b[3]=a.Ib-f;b[4]=a.zb-e;b[5]=a.Ab-f;b[6]=a.xb-e;b[7]=a.yb-f;this.Ki=d;this.Ji=k;this.ka()};
b.prototype.vq=function(a){this.fd=a.fd;Ba(this.cb,a.cb);this.Fi=a.Fi;this.Hi-a.Hi;this.Gi=a.Gi;this.Ei=a.Ei};b.prototype.Nf=function(a,e,f){if(this.Ki!==a||this.Ji!==e||this.ao!==f){this.Ki=a;this.Ji=e;this.ao=f;var d,b,k,g,n,y=0,v=1,w=this.gq,m=this.cb;0!==f&&(y=Math.sin(f),v=Math.cos(f));f=0;for(k=this.fd;f<k;f++)d=2*f,b=d+1,g=w[d]*a,n=w[b]*e,m[d]=g*v-n*y,m[b]=n*v+g*y;this.ka()}};b.prototype.Lb=function(a,e){var f=this.cb;if(a===f[0]&&e===f[1])return!0;var d,b,k,g=this.fd,n=this.Fi-110,y=this.Hi-
101,v=this.Gi+131,w=this.Ei+120,m,c,q=0,x=0;for(d=0;d<g;d++)b=2*d,k=(d+1)%g*2,m=f[b],b=f[b+1],c=f[k],k=f[k+1],ua(n,y,a,e,m,b,c,k)&&q++,ua(v,w,a,e,m,b,c,k)&&x++;return 1===q%2||1===x%2};b.prototype.kh=function(a,e,f){var d=a.cb,b=this.cb;if(this.Lb(d[0]+e,d[1]+f)||a.Lb(b[0]-e,b[1]-f))return!0;var k,g,n,y,v,w,m,c,q,x,u,l;k=0;for(y=this.fd;k<y;k++)for(g=2*k,n=(k+1)%y*2,c=b[g],g=b[g+1],q=b[n],x=b[n+1],n=0,m=a.fd;n<m;n++)if(v=2*n,w=(n+1)%m*2,u=d[v]+e,v=d[v+1]+f,l=d[w]+e,w=d[w+1]+f,ua(c,g,q,x,u,v,l,w))return!0;
return!1};db=b;a.prototype.De=function(a,e,f){var d;d=this.cells[a];return d?(d=d[e])?d:f?(d=w(this,a,e),this.cells[a][e]=d):null:f?(d=w(this,a,e),this.cells[a]={},this.cells[a][e]=d):null};a.prototype.Qb=function(a){return sa(a/this.Zk)};a.prototype.Rb=function(a){return sa(a/this.Yk)};a.prototype.update=function(a,e,f){var d,b,k,g,n;if(e)for(d=e.left,b=e.right;d<=b;++d)for(k=e.top,g=e.bottom;k<=g;++k)if(!f||!f.Lb(d,k))if(n=this.De(d,k,!1))n.remove(a),n.Xd()&&(n.mb.clear(),1E3>B.length&&B.push(n),
this.cells[d][k]=null);if(f)for(d=f.left,b=f.right;d<=b;++d)for(k=f.top,g=f.bottom;k<=g;++k)e&&e.Lb(d,k)||this.De(d,k,!0).Kl(a)};a.prototype.jk=function(a,e){var f,d,k,b,g,n;f=this.Qb(a.left);k=this.Rb(a.top);d=this.Qb(a.right);for(g=this.Rb(a.bottom);f<=d;++f)for(b=k;b<=g;++b)(n=this.De(f,b,!1))&&n.dump(e)};eb=a;d.prototype.De=function(a,e,d){var b;b=this.cells[a];return b?(b=b[e])?b:d?(b=f(this,a,e),this.cells[a][e]=b):null:d?(b=f(this,a,e),this.cells[a]={},this.cells[a][e]=b):null};d.prototype.Qb=
function(a){return sa(a/this.Zk)};d.prototype.Rb=function(a){return sa(a/this.Yk)};d.prototype.update=function(a,e,f){var d,b,k,g,n;if(e)for(d=e.left,b=e.right;d<=b;++d)for(k=e.top,g=e.bottom;k<=g;++k)if(!f||!f.Lb(d,k))if(n=this.De(d,k,!1))n.remove(a),n.Xd()&&(n.reset(),1E3>F.length&&F.push(n),this.cells[d][k]=null);if(f)for(d=f.left,b=f.right;d<=b;++d)for(k=f.top,g=f.bottom;k<=g;++k)e&&e.Lb(d,k)||this.De(d,k,!0).Kl(a)};d.prototype.jk=function(a,e,f,d,b){var k,g;a=this.Qb(a);e=this.Rb(e);f=this.Qb(f);
for(k=this.Rb(d);a<=f;++a)for(d=e;d<=k;++d)(g=this.De(a,d,!1))&&g.dump(b)};d.prototype.sv=function(a){var e,f,d,b,k;e=a.left;d=a.top;f=a.right;for(b=a.bottom;e<=f;++e)for(a=d;a<=b;++a)if(k=this.De(e,a,!1))k.dg=!1};fb=d;var B=[];e.prototype.Xd=function(){return this.mb.Xd()};e.prototype.Kl=function(a){this.mb.add(a)};e.prototype.remove=function(a){this.mb.remove(a)};e.prototype.dump=function(a){Da(a,this.mb.Ue())};da=e;var F=[];m.prototype.Xd=function(){if(!this.mb.length)return!0;if(this.mb.length>
this.Dd.count())return!1;this.ol();return!0};m.prototype.Kl=function(a){this.Dd.contains(a)?(this.Dd.remove(a),this.Dd.Xd()&&(this.Lg=!1)):this.mb.length?(this.mb[this.mb.length-1].wd()>a.wd()&&(this.dg=!1),this.mb.push(a)):(this.mb.push(a),this.dg=!0)};m.prototype.remove=function(a){this.Dd.add(a);this.Lg=!0;30<=this.Dd.count()&&this.ol()};m.prototype.ol=function(){this.Lg&&(this.Dd.count()===this.mb.length?this.reset():(Za(this.mb,this.Dd),this.Dd.clear(),this.Lg=!1))};m.prototype.Ht=function(){this.dg||
(this.mb.sort(g),this.dg=!0)};m.prototype.reset=function(){K(this.mb);this.dg=!0;this.Dd.clear();this.Lg=!1};m.prototype.dump=function(a){this.ol();this.Ht();this.mb.length&&a.push(this.mb)};fa=m;var Y="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");gb=function(a){return 0>=a||11<=a?"source-over":Y[a-1]};hb=function(a,e,f){if(f)switch(a.Gb=f.ONE,a.Bb=f.ONE_MINUS_SRC_ALPHA,e){case 1:a.Gb=f.ONE;a.Bb=f.ONE;break;case 3:a.Gb=
f.ONE;a.Bb=f.ZERO;break;case 4:a.Gb=f.ONE_MINUS_DST_ALPHA;a.Bb=f.ONE;break;case 5:a.Gb=f.DST_ALPHA;a.Bb=f.ZERO;break;case 6:a.Gb=f.ZERO;a.Bb=f.SRC_ALPHA;break;case 7:a.Gb=f.ONE_MINUS_DST_ALPHA;a.Bb=f.ZERO;break;case 8:a.Gb=f.ZERO;a.Bb=f.ONE_MINUS_SRC_ALPHA;break;case 9:a.Gb=f.DST_ALPHA;a.Bb=f.ONE_MINUS_SRC_ALPHA;break;case 10:a.Gb=f.ONE_MINUS_DST_ALPHA,a.Bb=f.SRC_ALPHA}};ib=function(a){return Math.round(1E6*a)/1E6};jb=function(a,e){return"string"!==typeof a||"string"!==typeof e||a.length!==e.length?
!1:a===e?!0:a.toLowerCase()===e.toLowerCase()};mb=function(a){a=a.target;return!a||a===document||a===window||document&&document.body&&a===document.body||jb(a.tagName,"canvas")?!0:!1}})();var hc="undefined"!==typeof Float32Array?Float32Array:Array;function ic(c){var l=new hc(3);c&&(l[0]=c[0],l[1]=c[1],l[2]=c[2]);return l}
function jc(c){var l=new hc(16);c&&(l[0]=c[0],l[1]=c[1],l[2]=c[2],l[3]=c[3],l[4]=c[4],l[5]=c[5],l[6]=c[6],l[7]=c[7],l[8]=c[8],l[9]=c[9],l[10]=c[10],l[11]=c[11],l[12]=c[12],l[13]=c[13],l[14]=c[14],l[15]=c[15]);return l}function kc(c,l){l[0]=c[0];l[1]=c[1];l[2]=c[2];l[3]=c[3];l[4]=c[4];l[5]=c[5];l[6]=c[6];l[7]=c[7];l[8]=c[8];l[9]=c[9];l[10]=c[10];l[11]=c[11];l[12]=c[12];l[13]=c[13];l[14]=c[14];l[15]=c[15]}
function lc(c,l){var h=l[0],p=l[1];l=l[2];c[0]*=h;c[1]*=h;c[2]*=h;c[3]*=h;c[4]*=p;c[5]*=p;c[6]*=p;c[7]*=p;c[8]*=l;c[9]*=l;c[10]*=l;c[11]*=l}
function mc(c,l,h,p){p||(p=jc());var t,r,b,a,d,w,e,f,m=c[0],g=c[1];c=c[2];r=h[0];b=h[1];t=h[2];h=l[1];w=l[2];m===l[0]&&g===h&&c===w?(c=p,c[0]=1,c[1]=0,c[2]=0,c[3]=0,c[4]=0,c[5]=1,c[6]=0,c[7]=0,c[8]=0,c[9]=0,c[10]=1,c[11]=0,c[12]=0,c[13]=0,c[14]=0,c[15]=1):(h=m-l[0],w=g-l[1],e=c-l[2],f=1/Math.sqrt(h*h+w*w+e*e),h*=f,w*=f,e*=f,l=b*e-t*w,t=t*h-r*e,r=r*w-b*h,(f=Math.sqrt(l*l+t*t+r*r))?(f=1/f,l*=f,t*=f,r*=f):r=t=l=0,b=w*r-e*t,a=e*l-h*r,d=h*t-w*l,(f=Math.sqrt(b*b+a*a+d*d))?(f=1/f,b*=f,a*=f,d*=f):d=a=b=0,
p[0]=l,p[1]=b,p[2]=h,p[3]=0,p[4]=t,p[5]=a,p[6]=w,p[7]=0,p[8]=r,p[9]=d,p[10]=e,p[11]=0,p[12]=-(l*m+t*g+r*c),p[13]=-(b*m+a*g+d*c),p[14]=-(h*m+w*g+e*c),p[15]=1)}
(function(){function c(a,d,b){this.Yd=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.wa=!!b;this.uj=this.mh=!1;this.dl=0;this.Nk=1;this.qn=1E3;this.Pw=(this.qn-this.Nk)/32768;this.Wk=ic([0,0,100]);this.fp=ic([0,0,0]);this.Vq=ic([0,1,0]);this.qi=ic([1,1,1]);this.qo=!0;this.Qj=jc();this.zc=jc();this.Vl=jc();this.cl=jc();this.q=a;this.version=0===this.q.getParameter(this.q.VERSION).indexOf("WebGL 2")?2:1;this.Ko()}function l(a,d,b){this.q=a;this.ai=
d;this.name=b;this.Ic=a.getAttribLocation(d,"aPos");this.Me=a.getAttribLocation(d,"aTex");this.dp=a.getUniformLocation(d,"matP");this.Mj=a.getUniformLocation(d,"matMV");this.kg=a.getUniformLocation(d,"opacity");this.am=a.getUniformLocation(d,"colorFill");this.ep=a.getUniformLocation(d,"samplerFront");this.Fh=a.getUniformLocation(d,"samplerBack");this.rf=a.getUniformLocation(d,"destStart");this.qf=a.getUniformLocation(d,"destEnd");this.Hh=a.getUniformLocation(d,"seconds");this.dm=a.getUniformLocation(d,
"pixelWidth");this.cm=a.getUniformLocation(d,"pixelHeight");this.Eh=a.getUniformLocation(d,"layerScale");this.Dh=a.getUniformLocation(d,"layerAngle");this.Ih=a.getUniformLocation(d,"viewOrigin");this.Gh=a.getUniformLocation(d,"scrollPos");this.Uu=!!(this.dm||this.cm||this.Hh||this.Fh||this.rf||this.qf||this.Eh||this.Dh||this.Ih||this.Gh);this.np=this.op=-999;this.Pj=1;this.jp=this.ip=0;this.lp=this.hp=this.gp=1;this.sp=this.rp=this.qp=this.up=this.tp=this.kp=0;this.Ul=[];this.mp=jc();this.kg&&a.uniform1f(this.kg,
1);this.am&&a.uniform4f(this.am,1,1,1,1);this.ep&&a.uniform1i(this.ep,0);this.Fh&&a.uniform1i(this.Fh,1);this.rf&&a.uniform2f(this.rf,0,0);this.qf&&a.uniform2f(this.qf,1,1);this.Eh&&a.uniform1f(this.Eh,1);this.Dh&&a.uniform1f(this.Dh,0);this.Ih&&a.uniform2f(this.Ih,0,0);this.Gh&&a.uniform2f(this.Gh,0,0);this.Hh&&a.uniform1f(this.Hh,0);this.jf=!1}function h(a,d){return a[0]===d[0]&&a[1]===d[1]&&a[2]===d[2]&&a[3]===d[3]&&a[4]===d[4]&&a[5]===d[5]&&a[6]===d[6]&&a[7]===d[7]&&a[8]===d[8]&&a[9]===d[9]&&
a[10]===d[10]&&a[11]===d[11]&&a[12]===d[12]&&a[13]===d[13]&&a[14]===d[14]&&a[15]===d[15]}function p(a,d){this.type=a;this.p=d;this.q=d.q;this.xd=this.Pb=this.Sp=0;this.N=this.Oc=null;this.xq=[]}var t=jc();c.prototype.Ko=function(){var a=this.q,d;this.Yo=1;this.nf=this.Ie=null;this.Si=1;a.clearColor(0,0,0,0);a.clear(a.COLOR_BUFFER_BIT);a.enable(a.BLEND);a.blendFunc(a.ONE,a.ONE_MINUS_SRC_ALPHA);a.disable(a.CULL_FACE);a.disable(a.STENCIL_TEST);a.disable(a.DITHER);this.wa?(a.enable(a.DEPTH_TEST),a.depthFunc(a.LEQUAL)):
a.disable(a.DEPTH_TEST);this.Zo=a.ONE;this.Xo=a.ONE_MINUS_SRC_ALPHA;this.Lk=new Float32Array(8E3*(this.wa?3:2));this.zk=new Float32Array(16E3);this.cq=new Float32Array(32E3);this.ym=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.ym);a.bufferData(a.ARRAY_BUFFER,this.cq.byteLength,a.DYNAMIC_DRAW);this.oi=Array(4);this.hi=Array(4);for(d=0;4>d;d++)this.oi[d]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.oi[d]),a.bufferData(a.ARRAY_BUFFER,this.Lk.byteLength,a.DYNAMIC_DRAW),this.hi[d]=a.createBuffer(),
a.bindBuffer(a.ARRAY_BUFFER,this.hi[d]),a.bufferData(a.ARRAY_BUFFER,this.zk.byteLength,a.DYNAMIC_DRAW);this.Pd=0;this.Xu=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.Xu);for(var b=new Uint16Array(12E3),e=d=0;12E3>d;)b[d++]=e,b[d++]=e+1,b[d++]=e+2,b[d++]=e,b[d++]=e+2,b[d++]=e+3,e+=4;a.bufferData(a.ELEMENT_ARRAY_BUFFER,b,a.STATIC_DRAW);this.zm=this.Cg=this.me=0;this.Ka=[];d=this.wa?"attribute highp vec3 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, aPos.z, 1.0);\n\tvTex = aTex;\n}":
"attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}";b=this.Qg({src:"varying mediump vec2 vTex;\nuniform lowp float opacity;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, vTex);\n\tgl_FragColor *= opacity;\n}"},d,"<default>");this.Ka.push(b);b=this.Qg({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.Ka.push(b);b=this.Qg({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},d,"<earlyz>");this.Ka.push(b);b=this.Qg({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"},
d,"<fill>");this.Ka.push(b);for(var f in nc)nc.hasOwnProperty(f)&&this.Ka.push(this.Qg(nc[f],d,f));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,null);this.ve=[];this.Nd=0;this.Cb=!1;this.ko=this.zh=-1;this.Qf=null;this.ml=a.createFramebuffer();this.Wi=this.kk=null;this.Wn=!1;this.wa&&(this.Wi=a.createRenderbuffer());this.Te=ic([0,0,0]);this.vp=a.getParameter(a.ALIASED_POINT_SIZE_RANGE)[1];2048<this.vp&&(this.vp=2048);this.cc(0)};l.prototype.jn=function(a){h(this.mp,a)||(kc(a,this.mp),this.q.uniformMatrix4fv(this.Mj,
!1,a))};c.prototype.Qg=function(a,d,b){var e=this.q,f=e.createShader(e.FRAGMENT_SHADER);e.shaderSource(f,a.src);e.compileShader(f);if(!e.getShaderParameter(f,e.COMPILE_STATUS))throw a=e.getShaderInfoLog(f),e.deleteShader(f),Error("error compiling fragment shader: "+a);var m=e.createShader(e.VERTEX_SHADER);e.shaderSource(m,d);e.compileShader(m);if(!e.getShaderParameter(m,e.COMPILE_STATUS))throw a=e.getShaderInfoLog(m),e.deleteShader(f),e.deleteShader(m),Error("error compiling vertex shader: "+a);d=
e.createProgram();e.attachShader(d,f);e.attachShader(d,m);e.linkProgram(d);if(!e.getProgramParameter(d,e.LINK_STATUS))throw a=e.getProgramInfoLog(d),e.deleteShader(f),e.deleteShader(m),e.deleteProgram(d),Error("error linking shader program: "+a);e.useProgram(d);e.deleteShader(f);e.deleteShader(m);f=new l(e,d,b);f.kl=a.kl||0;f.ll=a.ll||0;f.jo=!!a.jo;f.dd=!!a.dd;f.Un=!!a.Un;f.O=a.O||[];a=0;for(m=f.O.length;a<m;a++)f.O[a][1]=e.getUniformLocation(d,f.O[a][0]),f.Ul.push(0),e.uniform1f(f.O[a][1],0);return f};
c.prototype.Al=function(a){var d,b;d=0;for(b=this.Ka.length;d<b;d++)if(this.Ka[d].name===a)return d;return-1};c.prototype.fq=function(a,d,b){var e=this.zc,f=this.Qj,m=[0,0,0,0,0,0,0,0];m[0]=e[0]*a+e[4]*d+e[12];m[1]=e[1]*a+e[5]*d+e[13];m[2]=e[2]*a+e[6]*d+e[14];m[3]=e[3]*a+e[7]*d+e[15];m[4]=f[0]*m[0]+f[4]*m[1]+f[8]*m[2]+f[12]*m[3];m[5]=f[1]*m[0]+f[5]*m[1]+f[9]*m[2]+f[13]*m[3];m[6]=f[2]*m[0]+f[6]*m[1]+f[10]*m[2]+f[14]*m[3];m[7]=-m[2];0!==m[7]&&(m[7]=1/m[7],m[4]*=m[7],m[5]*=m[7],m[6]*=m[7],b[0]=(.5*m[4]+
.5)*this.width,b[1]=(.5*m[5]+.5)*this.height)};c.prototype.Bf=function(a,d,b){if(this.width!==a||this.height!==d||b){this.Be();b=this.q;this.width=a;this.height=d;b.viewport(0,0,a,d);mc(this.Wk,this.fp,this.Vq,this.zc);if(this.wa){var e=-a/2;a=a/2;var f=d/2;d=-d/2;var m=this.Nk,g=this.qn,c=this.Qj;c||(c=jc());var l=a-e,q=d-f,k=g-m;c[0]=2/l;c[1]=0;c[2]=0;c[3]=0;c[4]=0;c[5]=2/q;c[6]=0;c[7]=0;c[8]=0;c[9]=0;c[10]=-2/k;c[11]=0;c[12]=-(e+a)/l;c[13]=-(d+f)/q;c[14]=-(g+m)/k;c[15]=1;this.qi[0]=1;this.qi[1]=
1}else d=a/d,e=this.Nk,a=this.qn,c=this.Qj,g=e*Math.tan(45*Math.PI/360),d*=g,f=-d,m=-g,c||(c=jc()),l=d-f,q=g-m,k=a-e,c[0]=2*e/l,c[1]=0,c[2]=0,c[3]=0,c[4]=0,c[5]=2*e/q,c[6]=0,c[7]=0,c[8]=(d+f)/l,c[9]=(g+m)/q,c[10]=-(a+e)/k,c[11]=-1,c[12]=0,c[13]=0,c[14]=-(a*e*2)/k,c[15]=0,e=[0,0],a=[0,0],this.fq(0,0,e),this.fq(1,1,a),this.qi[0]=1/(a[0]-e[0]),this.qi[1]=-1/(a[1]-e[1]);e=0;for(a=this.Ka.length;e<a;e++)f=this.Ka[e],f.jf=!1,f.dp&&(b.useProgram(f.ai),b.uniformMatrix4fv(f.dp,!1,this.Qj));b.useProgram(this.Ka[this.zh].ai);
b.bindTexture(b.TEXTURE_2D,null);b.activeTexture(b.TEXTURE1);b.bindTexture(b.TEXTURE_2D,null);b.activeTexture(b.TEXTURE0);this.nf=this.Ie=null;this.Wi&&(b.bindFramebuffer(b.FRAMEBUFFER,this.ml),b.bindRenderbuffer(b.RENDERBUFFER,this.Wi),b.renderbufferStorage(b.RENDERBUFFER,b.DEPTH_COMPONENT16,this.width,this.height),this.Wn||(b.framebufferRenderbuffer(b.FRAMEBUFFER,b.DEPTH_ATTACHMENT,b.RENDERBUFFER,this.Wi),this.Wn=!0),b.bindRenderbuffer(b.RENDERBUFFER,null),b.bindFramebuffer(b.FRAMEBUFFER,null),
this.kk=null)}};c.prototype.Kc=function(){mc(this.Wk,this.fp,this.Vq,this.zc);lc(this.zc,this.qi)};c.prototype.translate=function(a,d){if(0!==a||0!==d){this.Te[0]=a;this.Te[1]=d;this.Te[2]=0;var b=this.zc,e=this.Te,f=e[0],c=e[1],e=e[2];b[12]=b[0]*f+b[4]*c+b[8]*e+b[12];b[13]=b[1]*f+b[5]*c+b[9]*e+b[13];b[14]=b[2]*f+b[6]*c+b[10]*e+b[14];b[15]=b[3]*f+b[7]*c+b[11]*e+b[15]}};c.prototype.scale=function(a,d){if(1!==a||1!==d)this.Te[0]=a,this.Te[1]=d,this.Te[2]=1,lc(this.zc,this.Te)};c.prototype.mk=function(a){if(0!==
a){var d=this.zc,b,e=Math.sin(a);a=Math.cos(a);var f=d[0],c=d[1],g=d[2],l=d[3],A=d[4],q=d[5],k=d[6],n=d[7];b?d!==b&&(b[8]=d[8],b[9]=d[9],b[10]=d[10],b[11]=d[11],b[12]=d[12],b[13]=d[13],b[14]=d[14],b[15]=d[15]):b=d;b[0]=f*a+A*e;b[1]=c*a+q*e;b[2]=g*a+k*e;b[3]=l*a+n*e;b[4]=f*-e+A*a;b[5]=c*-e+q*a;b[6]=g*-e+k*a;b[7]=l*-e+n*a}};c.prototype.Cc=function(){if(!h(this.Vl,this.zc)){var a=this.pc();a.type=5;a.N?kc(this.zc,a.N):a.N=jc(this.zc);kc(this.zc,this.Vl);this.Cb=!1}};c.prototype.sk=function(a){this.wa&&
(32760<a&&(a=32760),this.dl=this.Wk[2]-this.Nk-a*this.Pw)};p.prototype.nt=function(){var a=this.q,d=this.p;0!==this.Pb?(a.depthMask(!0),a.colorMask(!1,!1,!1,!1),a.disable(a.BLEND),a.bindFramebuffer(a.FRAMEBUFFER,d.ml),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.clear(a.DEPTH_BUFFER_BIT),a.bindFramebuffer(a.FRAMEBUFFER,null),d.uj=!0):(a.depthMask(!1),a.colorMask(!0,!0,!0,!0),a.enable(a.BLEND),d.uj=!1)};p.prototype.tt=function(){this.q.bindTexture(this.q.TEXTURE_2D,
this.Oc)};p.prototype.ut=function(){var a=this.q;a.activeTexture(a.TEXTURE1);a.bindTexture(a.TEXTURE_2D,this.Oc);a.activeTexture(a.TEXTURE0)};p.prototype.ot=function(){var a=this.Sp,d=this.p;d.Si=a;d=d.Qf;d.kg&&d.Pj!==a&&(d.Pj=a,this.q.uniform1f(d.kg,a))};p.prototype.ht=function(){this.q.drawElements(this.q.TRIANGLES,this.xd,this.q.UNSIGNED_SHORT,this.Pb)};p.prototype.jt=function(){this.q.blendFunc(this.Pb,this.xd)};p.prototype.xt=function(){var a,d,b,e=this.p.Ka,f=this.p.ko;a=0;for(d=e.length;a<
d;a++)b=e[a],a===f&&b.Mj?(b.jn(this.N),b.jf=!0):b.jf=!1;kc(this.N,this.p.cl)};p.prototype.it=function(){var a=this.q,d=this.p;this.Oc?(d.nf===this.Oc&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,null),d.nf=null,a.activeTexture(a.TEXTURE0)),a.bindFramebuffer(a.FRAMEBUFFER,d.ml),d.uj||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,this.Oc,0)):(d.wa||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.bindFramebuffer(a.FRAMEBUFFER,null))};
p.prototype.et=function(){var a=this.q,d=this.Pb;0===d?(a.clearColor(this.N[0],this.N[1],this.N[2],this.N[3]),a.clear(a.COLOR_BUFFER_BIT)):1===d?(a.enable(a.SCISSOR_TEST),a.scissor(this.N[0],this.N[1],this.N[2],this.N[3]),a.clearColor(0,0,0,0),a.clear(a.COLOR_BUFFER_BIT),a.disable(a.SCISSOR_TEST)):a.clear(a.DEPTH_BUFFER_BIT)};p.prototype.mt=function(){var a=this.q;0!==this.Pb?a.enable(a.DEPTH_TEST):a.disable(a.DEPTH_TEST)};p.prototype.gt=function(){var a=this.q,d=this.p;d.wa&&a.disable(a.DEPTH_TEST);
var b=d.Ka[1];a.useProgram(b.ai);!b.jf&&b.Mj&&(b.jn(d.cl),b.jf=!0);a.enableVertexAttribArray(b.Ic);a.bindBuffer(a.ARRAY_BUFFER,d.ym);a.vertexAttribPointer(b.Ic,4,a.FLOAT,!1,0,0);a.drawArrays(a.POINTS,this.Pb/4,this.xd);b=d.Qf;a.useProgram(b.ai);0<=b.Ic&&(a.enableVertexAttribArray(b.Ic),a.bindBuffer(a.ARRAY_BUFFER,d.oi[d.Pd]),a.vertexAttribPointer(b.Ic,d.wa?3:2,a.FLOAT,!1,0,0));0<=b.Me&&(a.enableVertexAttribArray(b.Me),a.bindBuffer(a.ARRAY_BUFFER,d.hi[d.Pd]),a.vertexAttribPointer(b.Me,2,a.FLOAT,!1,
0,0));d.wa&&a.enable(a.DEPTH_TEST)};p.prototype.pt=function(){var a=this.q,b=this.p,c=b.Ka[this.Pb];b.ko=this.Pb;b.Qf=c;a.useProgram(c.ai);!c.jf&&c.Mj&&(c.jn(b.cl),c.jf=!0);c.kg&&c.Pj!==b.Si&&(c.Pj=b.Si,a.uniform1f(c.kg,b.Si));0<=c.Ic&&(a.enableVertexAttribArray(c.Ic),a.bindBuffer(a.ARRAY_BUFFER,b.oi[b.Pd]),a.vertexAttribPointer(c.Ic,b.wa?3:2,a.FLOAT,!1,0,0));0<=c.Me&&(a.enableVertexAttribArray(c.Me),a.bindBuffer(a.ARRAY_BUFFER,b.hi[b.Pd]),a.vertexAttribPointer(c.Me,2,a.FLOAT,!1,0,0))};p.prototype.kt=
function(){var a=this.N;this.q.uniform4f(this.p.Qf.am,a[0],a[1],a[2],a[3])};p.prototype.qt=function(){var a,b,c=this.p.Qf,e=this.q;a=this.N;c.Fh&&this.p.nf!==this.Oc&&(e.activeTexture(e.TEXTURE1),e.bindTexture(e.TEXTURE_2D,this.Oc),this.p.nf=this.Oc,e.activeTexture(e.TEXTURE0));var f=a[0];c.dm&&f!==c.op&&(c.op=f,e.uniform1f(c.dm,f));f=a[1];c.cm&&f!==c.np&&(c.np=f,e.uniform1f(c.cm,f));f=a[2];b=a[3];!c.rf||f===c.ip&&b===c.jp||(c.ip=f,c.jp=b,e.uniform2f(c.rf,f,b));f=a[4];b=a[5];!c.qf||f===c.gp&&b===
c.hp||(c.gp=f,c.hp=b,e.uniform2f(c.qf,f,b));f=a[6];c.Eh&&f!==c.lp&&(c.lp=f,e.uniform1f(c.Eh,f));f=a[7];c.Dh&&f!==c.kp&&(c.kp=f,e.uniform1f(c.Dh,f));f=a[8];b=a[9];!c.Ih||f===c.tp&&b===c.up||(c.tp=f,c.up=b,e.uniform2f(c.Ih,f,b));f=a[10];b=a[11];!c.Gh||f===c.qp&&b===c.rp||(c.qp=f,c.rp=b,e.uniform2f(c.Gh,f,b));f=a[12];c.Hh&&f!==c.sp&&(c.sp=f,e.uniform1f(c.Hh,f));if(c.O.length)for(a=0,b=c.O.length;a<b;a++)f=this.xq[a],f!==c.Ul[a]&&(c.Ul[a]=f,e.uniform1f(c.O[a][1],f))};c.prototype.pc=function(){this.Nd===
this.ve.length&&this.ve.push(new p(0,this));return this.ve[this.Nd++]};c.prototype.Be=function(){if(0!==this.Nd&&!this.q.isContextLost()){var a=this.q;0<this.zm&&(a.bindBuffer(a.ARRAY_BUFFER,this.ym),a.bufferSubData(a.ARRAY_BUFFER,0,this.cq.subarray(0,this.zm)),b&&0<=b.Ic&&"<point>"===b.name&&a.vertexAttribPointer(b.Ic,4,a.FLOAT,!1,0,0));if(0<this.me){var b=this.Qf;a.bindBuffer(a.ARRAY_BUFFER,this.oi[this.Pd]);a.bufferSubData(a.ARRAY_BUFFER,0,this.Lk.subarray(0,this.me));b&&0<=b.Ic&&"<point>"!==b.name&&
a.vertexAttribPointer(b.Ic,this.wa?3:2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.hi[this.Pd]);a.bufferSubData(a.ARRAY_BUFFER,0,this.zk.subarray(0,this.Cg));b&&0<=b.Me&&"<point>"!==b.name&&a.vertexAttribPointer(b.Me,2,a.FLOAT,!1,0,0)}for(var c,a=0,b=this.Nd;a<b;a++)switch(c=this.ve[a],c.type){case 1:c.ht();break;case 2:c.tt();break;case 3:c.ot();break;case 4:c.jt();break;case 5:c.xt();break;case 6:c.it();break;case 7:c.et();break;case 8:c.gt();break;case 9:c.pt();break;case 10:c.qt();break;
case 11:c.ut();break;case 12:c.kt();break;case 13:c.mt();break;case 14:c.nt()}this.zm=this.Cg=this.me=this.Nd=0;this.uj=this.Cb=!1;this.Pd++;4<=this.Pd&&(this.Pd=0)}};c.prototype.Af=function(a){if(a!==this.Yo&&!this.mh){var b=this.pc();b.type=3;this.Yo=b.Sp=a;this.Cb=!1}};c.prototype.qc=function(a){if(a!==this.Ie){var b=this.pc();b.type=2;this.Ie=b.Oc=a;this.Cb=!1}};c.prototype.Re=function(a,b){if((a!==this.Zo||b!==this.Xo)&&!this.mh){var c=this.pc();c.type=4;c.Pb=a;c.xd=b;this.Zo=a;this.Xo=b;this.Cb=
!1}};c.prototype.oq=function(){this.Re(this.q.ONE,this.q.ONE_MINUS_SRC_ALPHA)};c.prototype.Vh=function(a,b,c,e,f,m,g,l){15992<=this.me&&this.Be();var A=this.me,q=this.Cg,k=this.Lk,n=this.zk,h=this.dl;if(this.Cb)this.ve[this.Nd-1].xd+=6;else{var p=this.pc();p.type=1;p.Pb=this.wa?A:A/2*3;p.xd=6;this.Cb=!0}this.wa?(k[A++]=a,k[A++]=b,k[A++]=h,k[A++]=c,k[A++]=e,k[A++]=h,k[A++]=f,k[A++]=m,k[A++]=h,k[A++]=g,k[A++]=l,k[A++]=h):(k[A++]=a,k[A++]=b,k[A++]=c,k[A++]=e,k[A++]=f,k[A++]=m,k[A++]=g,k[A++]=l);n[q++]=
0;n[q++]=0;n[q++]=1;n[q++]=0;n[q++]=1;n[q++]=1;n[q++]=0;n[q++]=1;this.me=A;this.Cg=q};c.prototype.Fd=function(a,b,c,e,f,m,g,l,A){15992<=this.me&&this.Be();var q=this.me,k=this.Cg,n=this.Lk,h=this.zk,p=this.dl;if(this.Cb)this.ve[this.Nd-1].xd+=6;else{var x=this.pc();x.type=1;x.Pb=this.wa?q:q/2*3;x.xd=6;this.Cb=!0}var x=A.left,M=A.top,B=A.right;A=A.bottom;this.wa?(n[q++]=a,n[q++]=b,n[q++]=p,n[q++]=c,n[q++]=e,n[q++]=p,n[q++]=f,n[q++]=m,n[q++]=p,n[q++]=g,n[q++]=l,n[q++]=p):(n[q++]=a,n[q++]=b,n[q++]=c,
n[q++]=e,n[q++]=f,n[q++]=m,n[q++]=g,n[q++]=l);h[k++]=x;h[k++]=M;h[k++]=B;h[k++]=M;h[k++]=B;h[k++]=A;h[k++]=x;h[k++]=A;this.me=q;this.Cg=k};c.prototype.cc=function(a){if(this.zh!==a){if(!this.Ka[a]){if(0===this.zh)return;a=0}var b=this.pc();b.type=9;this.zh=b.Pb=a;this.Cb=!1}};c.prototype.Sh=function(a){a=this.Ka[a];return!(!a.rf&&!a.qf)};c.prototype.Dm=function(a){a=this.Ka[a];return!!(a.rf||a.qf||a.jo)};c.prototype.Cm=function(a){return this.Ka[a].dd};c.prototype.Rv=function(a){a=this.Ka[a];return 0!==
a.kl||0!==a.ll};c.prototype.Au=function(a){return this.Ka[a].kl};c.prototype.Bu=function(a){return this.Ka[a].ll};c.prototype.Cu=function(a,b){return this.Ka[a].O[b][2]};c.prototype.gk=function(a){return this.Ka[a].Un};c.prototype.yg=function(a,b,c,e,f,m,g,l,h,q,k,n,P,p,x){var M=this.Ka[this.zh],B,r;if(M.Uu||x.length){B=this.pc();B.type=10;B.N?kc(this.zc,B.N):B.N=jc();r=B.N;r[0]=b;r[1]=c;r[2]=e;r[3]=f;r[4]=m;r[5]=g;r[6]=l;r[7]=h;r[8]=q;r[9]=k;r[10]=n;r[11]=P;r[12]=p;M.Fh?B.Oc=a:B.Oc=null;if(x.length)for(c=
B.xq,c.length=x.length,a=0,b=x.length;a<b;a++)c[a]=x[a];this.Cb=!1}};c.prototype.clear=function(a,b,c,e){var f=this.pc();f.type=7;f.Pb=0;f.N||(f.N=jc());f.N[0]=a;f.N[1]=b;f.N[2]=c;f.N[3]=e;this.Cb=!1};c.prototype.clearRect=function(a,b,c,e){if(!(0>c||0>e)){var f=this.pc();f.type=7;f.Pb=1;f.N||(f.N=jc());f.N[0]=a;f.N[1]=b;f.N[2]=c;f.N[3]=e;this.Cb=!1}};c.prototype.rq=function(a){if(this.wa&&(a=!!a,this.mh!==a)){var b=this.pc();b.type=14;b.Pb=a?1:0;this.Cb=!1;this.mh=a;this.kk=null;this.mh?this.cc(2):
this.cc(0)}};c.prototype.qq=function(a){if(this.wa){var b=this.pc();b.type=13;b.Pb=a?1:0;this.Cb=!1}};c.prototype.yo=function(){kc(this.Vl,t);this.Kc();this.Cc();var a=this.width/2,b=this.height/2;this.Vh(-a,b,a,b,a,-b,-a,-b);kc(t,this.zc);this.Cc()};c.prototype.pq=function(a,b,c){this.cc(3);var e=this.pc();e.type=12;e.N||(e.N=jc());e.N[0]=a;e.N[1]=b;e.N[2]=c;e.N[3]=1;this.Cb=!1};c.prototype.uw=function(){this.cc(0)};c.prototype.bw=function(){this.cc(2)};c.prototype.Qv=function(){this.Be();this.q.flush()};
var r=[],b={};c.prototype.Xs=function(){K(r);b={}};c.prototype.Jj=function(a,d,c,e){d=!!d;c=!!c;var f=a.src+","+d+","+c+(d?",undefined":""),m=null;if("undefined"!==typeof a.src&&b.hasOwnProperty(f))return m=b[f],m.Ii++,m;this.Be();var g=this.q,l=ma(a.width)&&ma(a.height),m=g.createTexture();g.bindTexture(g.TEXTURE_2D,m);g.pixelStorei(g.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var h=g.RGBA,q=g.RGBA,k=g.UNSIGNED_BYTE;if(e&&!this.Yd)switch(e){case 1:q=h=g.RGB;break;case 2:k=g.UNSIGNED_SHORT_4_4_4_4;break;
case 3:k=g.UNSIGNED_SHORT_5_5_5_1;break;case 4:q=h=g.RGB,k=g.UNSIGNED_SHORT_5_6_5}if(1===this.version&&!l&&d){e=document.createElement("canvas");e.width=na(a.width);e.height=na(a.height);var n=e.getContext("2d");"undefined"!==typeof n.imageSmoothingEnabled?n.imageSmoothingEnabled=c:(n.webkitImageSmoothingEnabled=c,n.mozImageSmoothingEnabled=c,n.msImageSmoothingEnabled=c);n.drawImage(a,0,0,a.width,a.height,0,0,e.width,e.height);g.texImage2D(g.TEXTURE_2D,0,h,q,k,e)}else g.texImage2D(g.TEXTURE_2D,0,
h,q,k,a);d?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_S,g.REPEAT),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,g.REPEAT)):(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));c?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,g.LINEAR),(l||2<=this.version)&&this.qo?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,g.LINEAR_MIPMAP_LINEAR),g.generateMipmap(g.TEXTURE_2D)):g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,
g.LINEAR)):(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,g.NEAREST),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,g.NEAREST));g.bindTexture(g.TEXTURE_2D,null);this.Ie=null;m.Ye=a.width;m.Xe=a.height;m.Ii=1;m.$n=f;r.push(m);return b[f]=m};c.prototype.tc=function(a,b,c,e){this.Be();var f=this.q;this.Yd&&(e=!1);var m=f.createTexture();f.bindTexture(f.TEXTURE_2D,m);f.texImage2D(f.TEXTURE_2D,0,f.RGBA,a,b,0,f.RGBA,e?f.UNSIGNED_SHORT_4_4_4_4:f.UNSIGNED_BYTE,null);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_S,
f.CLAMP_TO_EDGE);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_T,f.CLAMP_TO_EDGE);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MAG_FILTER,c?f.LINEAR:f.NEAREST);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,c?f.LINEAR:f.NEAREST);f.bindTexture(f.TEXTURE_2D,null);this.Ie=null;m.Ye=a;m.Xe=b;r.push(m);return m};c.prototype.Nw=function(a,b,c){this.Be();var e=this.q;this.Yd&&(c=!1);e.bindTexture(e.TEXTURE_2D,b);e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);try{e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,
c?e.UNSIGNED_SHORT_4_4_4_4:e.UNSIGNED_BYTE,a)}catch(f){console&&console.error&&console.error("Error updating WebGL texture: ",f)}e.bindTexture(e.TEXTURE_2D,null);this.Ie=null};c.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.Ii&&1<a.Ii?a.Ii--:(this.Be(),a===this.Ie&&(this.q.bindTexture(this.q.TEXTURE_2D,null),this.Ie=null),a===this.nf&&(this.q.activeTexture(this.q.TEXTURE1),this.q.bindTexture(this.q.TEXTURE_2D,null),this.q.activeTexture(this.q.TEXTURE0),this.nf=null),Fa(r,a),"undefined"!==
typeof a.$n&&delete b[a.$n],this.q.deleteTexture(a)))};c.prototype.Lc=function(a){if(a!==this.kk){var b=this.pc();b.type=6;this.kk=b.Oc=a;this.Cb=!1}};nb=c})();
(function(){function c(a){if(a&&(a.getContext||a.dc)&&!a.c2runtime){a.c2runtime=this;var e=this;this.yc=(this.vj=/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.Db=!!a.dc;this.Qo="undefined"!==typeof window.AppMobi||
this.Db;this.Hc=!!window.c2cocoonjs;this.Zc=!!window.c2ejecta;this.Hc&&(CocoonJS.App.onSuspended.addEventListener(function(){e.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){e.setSuspended(!1)}));this.Zc&&(document.addEventListener("pagehide",function(){e.setSuspended(!0)}),document.addEventListener("pageshow",function(){e.setSuspended(!1)}),document.addEventListener("resize",function(){e.setSize(window.innerWidth,window.innerHeight)}));this.Ia=this.Db||this.Hc||this.Zc;this.oh=
/edge\//i.test(navigator.userAgent);this.Yd=(/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent))&&!this.oh;this.So=/tizen/i.test(navigator.userAgent);this.lh=/android/i.test(navigator.userAgent)&&!this.So&&!this.Yd&&!this.oh;this.Wo=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&!this.Yd&&!this.oh;this.ov=/ipad/i.test(navigator.userAgent);this.fg=this.Wo||this.ov||this.Zc;this.Ml=(/chrome/i.test(navigator.userAgent)||
/chromium/i.test(navigator.userAgent))&&!this.Yd&&!this.oh;this.Po=/amazonwebappplatform/i.test(navigator.userAgent);this.gv=/firefox/i.test(navigator.userAgent);this.jv=/safari/i.test(navigator.userAgent)&&!this.Ml&&!this.Yd&&!this.oh;this.lv=/windows/i.test(navigator.userAgent);this.Pl="undefined"!==typeof window.c2nodewebkit||"undefined"!==typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.Uo=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);
this.nv=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.sh=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.Sl=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.yj=!!window.cr_windows10;this.To=this.Uo||this.nv||this.Sl||this.yj;this.bv=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.tj=this.lh&&!this.Ml&&!this.vj&&!this.gv&&!this.Po&&!this.Ia;this.devicePixelRatio=
1;this.Zd=this.yc||this.vj||this.Qo||this.Hc||this.lh||this.fg||this.sh||this.Sl||this.bv||this.So||this.Zc;this.Zd||(this.Zd=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));this.xj=!!(this.fg&&this.yc&&window.webkit);"undefined"===typeof cr_is_preview||this.Pl||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||(this.Pl=!0);this.canvas=a;this.bo=document.getElementById("c2canvasdiv");
this.p=this.q=null;this.Bl="(unavailable)";this.wa=!1;this.ef=0;this.Ca=null;this.ej=!1;this.Lp=this.Mp=0;this.canvas.oncontextmenu=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.onselectstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.ontouchstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.Db&&(window.c2runtime=this);this.Pl&&(window.ondragover=function(a){a.preventDefault();return!1},window.ondrop=function(a){a.preventDefault();
return!1},window.nwgui&&window.nwgui.App.clearCache&&window.nwgui.App.clearCache());this.tj&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=a.width;this.height=a.height;this.B=this.width;this.A=this.height;this.Qi=this.width;this.Sg=this.height;this.ig=window.innerWidth;this.hg=window.innerHeight;this.P=!0;this.qh=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.n=[];this.Ga=[];this.Yl={};this.ad=[];this.jl={};
this.Td=[];this.Jg=[];this.Fk=[];this.Ns=[];this.Os=[];this.Eq=null;this.$e={};this.Ol=this.Ee=!1;this.$c=0;this.Nl=this.Rl=!1;this.Wc=[];this.nh=!1;this.Hj=this.Om="";this.$a=null;this.$d="";this.di=this.Aq=!1;this.dj=[];this.df=this.cf=0;this.Ap=30;this.bl=this.Jh=0;this.Eg=1;this.kb=new bb;this.ne=new bb;this.Sj=this.hj=this.Vg=this.jd=this.pf=this.pl=this.Cj=0;this.Og=null;this.Xi=[];this.il=[];this.Zi=-1;this.em=[[]];this.bn=this.Nj=0;this.ik(null);this.Xg=this.Gp=this.Mh=0;this.ei=[];this.Zm=
this.Fm=-1;this.wh=!0;this.Lj=0;this.wj=!1;this.zw=0;this.Lf=null;this.Na=this.oj=!1;this.Kp=new ea;this.lm=new ea;this.mm=new ea;this.zf=[];this.hd=new db([]);this.Vm=new db([]);this.Kf=[];this.nj={};this.xe={};this.se={};this.Ig={};this.Xn={};this.cp=this.Gj=this.Oa=this.Za=this.bp=this.Fj=this.ja=null;this.Gg=this.Tl=!1;this.ql=[null,null];this.Vf=0;this.nl="";this.de={};this.bi=this.Ke=null;this.Cq="";this.Rj=[];this.aw()}}function l(a,e){return 128>=e?a[3]:256>=e?a[2]:512>=e?a[1]:a[0]}function h(){try{return!!window.indexedDB}catch(a){return!1}}
function p(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function t(a,e,b,f){try{var d=indexedDB.open("_C2SaveStates");d.onupgradeneeded=p;d.onerror=f;d.onsuccess=function(d){d=d.target.result;d.onerror=f;d.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,data:e}).onsuccess=b}}catch(k){f(k)}}function r(a,e,b){try{var f=indexedDB.open("_C2SaveStates");f.onupgradeneeded=p;f.onerror=b;f.onsuccess=function(f){f=f.target.result;f.onerror=b;var d=f.transaction(["saves"]).objectStore("saves").get(a);
d.onsuccess=function(){d.result?e(d.result.data):e(null)}}}catch(d){b(d)}}function b(){ga("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?window.location.reload(!0):window.location=window.location+"?continuous"}function a(a){var e,b={};for(e in a)!a.hasOwnProperty(e)||a[e]instanceof ea||a[e]&&"undefined"!==typeof a[e].Qx||"spriteCreatedDestroyCallback"!==e&&(b[e]=a[e]);return b}var d=window.requestAnimationFrame||window.mozRequestAnimationFrame||
window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;c.prototype.aw=function(){var a=this;if(this.xj)this.lu(function(e){a.Ch(JSON.parse(e))},function(){alert("Error fetching data.js")});else{var e;this.sh?e=new ActiveXObject("Microsoft.XMLHTTP"):e=new XMLHttpRequest;var b="data.js";if(this.Uo||this.sh||this.Sl||this.yj)b="data.json";e.open("GET",b,!0);var f=!1;if(!this.Ia&&"response"in e&&"responseType"in e)try{e.responseType="json",f="json"===e.responseType}catch(d){f=
!1}if(!f&&"responseType"in e)try{e.responseType="text"}catch(k){}if("overrideMimeType"in e)try{e.overrideMimeType("application/json; charset=utf-8")}catch(c){}this.sh?e.onreadystatechange=function(){4===e.readyState&&a.Ch(JSON.parse(e.responseText))}:(e.onload=function(){if(f)a.Ch(e.response);else if(a.Zc){var b=e.responseText,b=b.substr(b.indexOf("{"));a.Ch(JSON.parse(b))}else a.Ch(JSON.parse(e.responseText))},e.onerror=function(a){ha("Error requesting "+b+":");ha(a)});e.send()}};c.prototype.Yu=
function(){var a=this,e,b,f,d,k,c,g,n,m;this.mf=(!this.Ia||this.Zc||this.yc)&&this.Kw&&!this.tj;0===this.Nb&&this.fg&&(this.mf=!1);this.devicePixelRatio=this.mf?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.ub();0<this.Nb&&this.setSize(window.innerWidth,window.innerHeight,!0);this.canvas.addEventListener("webglcontextlost",function(e){e.preventDefault();a.wv();ga("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},
!1);this.canvas.addEventListener("webglcontextrestored",function(){a.p.Ko();a.p.Bf(a.p.width,a.p.height,!0);a.Za=null;a.Oa=null;a.ql[0]=null;a.ql[1]=null;a.xv();a.P=!0;ga("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);try{this.Ft&&(this.Hc||this.Zc||!this.Ia)&&(e={alpha:!0,depth:!1,antialias:!1,powerPreference:"high-performance",failIfMajorPerformanceCaveat:!0},this.lh||(this.q=this.canvas.getContext("webgl2",e)),this.q||(this.q=this.canvas.getContext("webgl",e)||this.canvas.getContext("experimental-webgl",
e)))}catch(q){}if(this.q){if(e=this.q.getExtension("WEBGL_debug_renderer_info"))this.Bl=this.q.getParameter(e.UNMASKED_RENDERER_WEBGL)+" ["+this.q.getParameter(e.UNMASKED_VENDOR_WEBGL)+"]";this.wa&&(this.Bl+=" [front-to-back enabled]");this.Ia||(this.sb=document.createElement("canvas"),jQuery(this.sb).appendTo(this.canvas.parentNode),this.sb.oncontextmenu=function(){return!1},this.sb.onselectstart=function(){return!1},this.sb.width=Math.round(this.Qi*this.devicePixelRatio),this.sb.height=Math.round(this.Sg*
this.devicePixelRatio),jQuery(this.sb).css({width:this.Qi+"px",height:this.Sg+"px"}),this.dq(),this.xm=this.sb.getContext("2d"));this.p=new nb(this.q,this.Zd,this.wa);this.p.Bf(this.canvas.width,this.canvas.height);this.p.qo=0!==this.yt;this.Ca=null;e=0;for(b=this.n.length;e<b;e++)for(k=this.n[e],f=0,d=k.I.length;f<d;f++)g=k.I[f],g.Sa=this.p.Al(g.id),g.dd=this.p.Cm(g.Sa),this.Gg=this.Gg||this.p.Sh(g.Sa);e=0;for(b=this.ad.length;e<b;e++){n=this.ad[e];f=0;for(d=n.I.length;f<d;f++)g=n.I[f],g.Sa=this.p.Al(g.id),
g.dd=this.p.Cm(g.Sa);n.md();f=0;for(d=n.K.length;f<d;f++){m=n.K[f];k=0;for(c=m.I.length;k<c;k++)g=m.I[k],g.Sa=this.p.Al(g.id),g.dd=this.p.Cm(g.Sa),this.Gg=this.Gg||this.p.Sh(g.Sa);m.md()}}}else{if(0<this.Nb&&this.Db){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.Ca=AppMobi.canvas.getContext("2d");try{this.Ca.samplingMode=this.Fa?"smooth":"sharp",this.Ca.globalScale=1,this.Ca.HTML5CompatibilityMode=!0,this.Ca.imageSmoothingEnabled=this.Fa}catch(x){}0!==
this.width&&0!==this.height&&(this.Ca.width=this.width,this.Ca.height=this.height)}this.Ca||(this.Hc?(e={antialias:!!this.Fa,alpha:!0},this.Ca=this.canvas.getContext("2d",e)):(e={alpha:!0},this.Ca=this.canvas.getContext("2d",e)),this.qk(this.Ca,this.Fa));this.xm=this.sb=null}this.Nq=function(e){a.fb(!1,e)};window==window.top||this.Ia||this.To||this.sh||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==
typeof cr_is_preview&&(this.Hc&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(ga("Reloading for continuous preview"),this.Hj="__c2_continuouspreview",this.di=!0),this.Iv&&!this.Zd&&(jQuery(window).focus(function(){a.setSuspended(!1)}),jQuery(window).blur(function(){var e=window.parent;e&&e.document.hasFocus()||a.setSuspended(!0)})));window.addEventListener("blur",function(){a.xf()});this.Ia||(e=function(a){if(mb(a)&&document.activeElement&&
document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(e){}},"undefined"!==typeof PointerEvent?document.addEventListener("pointerdown",e):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",e):document.addEventListener("touchstart",e),document.addEventListener("mousedown",e));0===this.Nb&&this.mf&&1<this.devicePixelRatio&&this.setSize(this.bb,this.ab,!0);this.Sq();this.Ru();this.go();this.J={}};
c.prototype.setSize=function(a,e,b){var f=0,d=0,k=0,c=0,c=0;if(this.ig!==a||this.hg!==e||b){this.ig=a;this.hg=e;var g=this.Nb;if((k=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.wj)&&!this.yc)||0!==this.Nb||b)k&&(g=this.Vf),b=this.devicePixelRatio,4<=g?(k=this.bb/this.ab,a/e>k?(k*=e,5===g?(c=k*b/this.bb,1<c?c=Math.floor(c):1>c&&(c=1/Math.ceil(1/c)),k=this.bb*c/b,c=this.ab*c/b,f=(a-k)/2,d=(e-c)/2,a=k,e=c):(f=(a-k)/2,a=k)):(c=a/k,5===
g?(c=c*b/this.ab,1<c?c=Math.floor(c):1>c&&(c=1/Math.ceil(1/c)),k=this.bb*c/b,c=this.ab*c/b,f=(a-k)/2,d=(e-c)/2,a=k):d=(e-c)/2,e=c)):k&&0===g&&(f=Math.floor((a-this.bb)/2),d=Math.floor((e-this.ab)/2),a=this.bb,e=this.ab),2>g&&(this.Ng=b),this.Qi=Math.round(a),this.Sg=Math.round(e),this.width=Math.round(a*b),this.height=Math.round(e*b),this.P=!0,this.dr?(this.B=this.width,this.A=this.height,this.uc=!0):this.width<this.bb&&this.height<this.ab||1===g?(this.B=this.width,this.A=this.height,this.uc=!0):
(this.B=this.bb,this.A=this.ab,this.uc=!1,2===g?(k=this.bb/this.ab,g=this.ig/this.hg,g<k?this.B=this.A*g:g>k&&(this.A=this.B/g)):3===g&&(k=this.bb/this.ab,g=this.ig/this.hg,g>k?this.B=this.A*g:g<k&&(this.A=this.B/g))),this.bo&&!this.Ia&&(jQuery(this.bo).css({width:Math.round(a)+"px",height:Math.round(e)+"px","margin-left":Math.floor(f)+"px","margin-top":Math.floor(d)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(a)+"px",height:Math.round(e)+"px"})),this.canvas&&
(this.canvas.width=Math.round(a*b),this.canvas.height=Math.round(e*b),this.Zc?(this.canvas.style.left=Math.floor(f)+"px",this.canvas.style.top=Math.floor(d)+"px",this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(e)+"px"):this.mf&&!this.Ia&&(this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(e)+"px")),this.sb&&(this.sb.width=Math.round(a*b),this.sb.height=Math.round(e*b),this.sb.style.width=this.Qi+"px",this.sb.style.height=this.Sg+"px"),this.p&&
this.p.Bf(Math.round(a*b),Math.round(e*b)),this.Db&&this.Ca&&(this.Ca.width=Math.round(a),this.Ca.height=Math.round(e)),this.Ca&&this.qk(this.Ca,this.Fa),this.Sq(),this.Wo&&!this.yc&&window.scrollTo(0,0)}};c.prototype.Sq=function(){if(this.Qs&&0!==this.wm){var a="portrait";2===this.wm&&(a="landscape");try{screen.orientation&&screen.orientation.lock?screen.orientation.lock(a).catch(function(){}):screen.lockOrientation?screen.lockOrientation(a):screen.webkitLockOrientation?screen.webkitLockOrientation(a):
screen.mozLockOrientation?screen.mozLockOrientation(a):screen.msLockOrientation&&screen.msLockOrientation(a)}catch(e){console&&console.warn&&console.warn("Failed to lock orientation: ",e)}}};c.prototype.wv=function(){this.p.Xs();this.Tl=!0;var a,e,b;a=0;for(e=this.n.length;a<e;a++)b=this.n[a],b.Uj&&b.Uj()};c.prototype.xv=function(){this.Tl=!1;var a,e,b;a=0;for(e=this.n.length;a<e;a++)b=this.n[a],b.tm&&b.tm()};c.prototype.dq=function(){if(!this.Ia){var a=(document.mozFullScreen||document.webkitIsFullScreen||
document.fullScreen||document.msFullscreenElement||this.wj)&&!this.yc?jQuery(this.canvas).offset():jQuery(this.canvas).position();a.position="absolute";jQuery(this.sb).css(a)}};var w=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;c.prototype.setSuspended=function(a){var e;if(a&&!this.qh)for(ga("[Construct 2] Suspending"),this.qh=!0,-1!==this.Fm&&w&&w(this.Fm),-1!==this.Zm&&clearTimeout(this.Zm),
a=0,e=this.ei.length;a<e;a++)this.ei[a](!0);else if(!a&&this.qh){ga("[Construct 2] Resuming");this.qh=!1;this.Cj=Ya();this.pf=Ya();a=this.Jh=this.hj=0;for(e=this.ei.length;a<e;a++)this.ei[a](!1);this.fb(!1)}};c.prototype.Sn=function(a){this.ei.push(a)};c.prototype.qe=function(a){return this.Rj[a]};c.prototype.Ch=function(a){a&&a.project||ha("Project model unavailable");a=a.project;this.name=a[0];this.xo=a[1];this.Nb=a[12];this.bb=a[10];this.ab=a[11];this.Zp=this.bb/2;this.$p=this.ab/2;this.Ia&&!this.Zc&&
(4<=a[12]||0===a[12])&&(ga("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.Nb=3);this.ln=a[18];this.Le=a[19];if(0===this.Le){var e=new Image;e.crossOrigin="anonymous";this.sq(e,"loading-logo.png");this.Ke={Oj:e}}else if(4===this.Le){e=new Image;e.src="";var b=new Image;b.src="";var f=new Image;f.src="";var d=new Image;d.src="";var k=new Image;k.src="";var c=new Image;c.src="";var g=new Image;g.src="";var n=new Image;n.src="";
var m=new Image;m.src="";var q=new Image;q.src="";var x=new Image;x.src="";var l=new Image;l.src="";this.Ke={Oj:[e,b,f,d],Nv:[k,c,g,n],Ow:[m,q,x,l]}}this.Mh=a[21];this.Rj=oc();this.Jd=new S(this);e=0;for(b=a[2].length;e<b;e++)g=a[2][e],f=this.qe(g[0]),ob(g,f.prototype),n=new f(this),n.uk=g[1],n.He=g[2],n.Xx=g[5],n.Cp=g[9],n.U&&n.U(),this.plugins.push(n);this.Rj=oc();e=0;for(b=a[3].length;e<b;e++){g=a[3][e];k=this.qe(g[1]);n=null;f=0;for(d=this.plugins.length;f<d;f++)if(this.plugins[f]instanceof k){n=
this.plugins[f];break}m=new n.Aa(n);m.name=g[0];m.C=g[2];m.Ll=g[3].slice(0);m.Mw=g[3].length;m.Rs=g[4];m.pu=g[5];m.V=g[11];m.C?(m.uf=[],m.Ud=this.Xg++,m.Da=null):(m.uf=null,m.Ud=-1,m.Da=[]);m.bj=null;m.Tf=null;m.ro=null;m.Ub=!1;m.hc=null;g[6]?(m.Wm=g[6][0],m.Xm=g[6][1],m.Ym=g[6][2]):(m.Wm=null,m.Xm=0,m.Ym=0);g[7]?m.gc=g[7]:m.gc=null;m.index=e;m.d=[];m.Ui=[];m.je=[new pb(m)];m.qd=0;m.Fc=null;m.bt=0;m.Bg=!0;m.Gk=qb;m.Do=rb;m.yu=sb;m.W=tb;m.Uh=ub;m.hk=vb;m.yf=wb;m.jj=xb;m.rl=yb;m.ul=zb;m.Tc=Ab;m.xl=
Eb;m.Ni=new eb(this.bb,this.ab);m.Bi=!0;m.Ci=!1;m.J={};m.toString=Fb;m.Ga=[];f=0;for(d=g[8].length;f<d;f++){q=g[8][f];x=this.qe(q[1]);l=null;k=0;for(c=this.Ga.length;k<c;k++)if(this.Ga[k]instanceof x){l=this.Ga[k];break}l||(l=new x(this),l.jm=[],l.im=new ea,l.U&&l.U(),this.Ga.push(l),gc.yw&&l instanceof gc.yw&&(this.Eq=l));-1===l.jm.indexOf(m)&&l.jm.push(m);k=new l.Aa(l,m);k.name=q[0];k.V=q[2];k.U();m.Ga.push(k)}m.global=g[9];m.Ql=g[10];m.I=[];f=0;for(d=g[12].length;f<d;f++)m.I.push({id:g[12][f][0],
name:g[12][f][1],Sa:-1,dd:!1,rc:!0,index:f});m.ly=g[13];this.ln&&!m.C&&!m.Ql&&n.He||m.U();m.name&&(this.types[m.name]=m);this.n.push(m);n.uk&&(f=new n.ga(m),f.uid=this.Mh++,f.hq=this.Gp++,f.lf=0,f.eh=Gb,f.toString=Hb,f.M=g[14],f.U(),m.d.push(f),this.de[f.uid.toString()]=f)}e=0;for(b=a[4].length;e<b;e++)for(k=a[4][e],c=this.n[k[0]],f=1,d=k.length;f<d;f++)g=this.n[k[f]],g.Da.push(c),c.uf.push(g);e=0;for(b=a[28].length;e<b;e++){k=a[28][e];c=[];f=0;for(d=k.length;f<d;f++)c.push(this.n[k[f]]);f=0;for(d=
c.length;f<d;f++)c[f].Ub=!0,c[f].hc=c}if(0<this.Xg)for(e=0,b=this.n.length;e<b;e++)if(g=this.n[e],!g.C&&g.Da.length){g.bj=Array(this.Xg);g.Tf=Array(this.Xg);g.ro=Array(this.Xg);m=[];f=l=x=q=0;for(d=g.Da.length;f<d;f++)for(n=g.Da[f],g.bj[n.Ud]=q,q+=n.Mw,g.Tf[n.Ud]=x,x+=n.Rs,g.ro[n.Ud]=l,l+=n.pu,k=0,c=n.I.length;k<c;k++)m.push(xa({},n.I[k]));g.I=m.concat(g.I);f=0;for(d=g.I.length;f<d;f++)g.I[f].index=f}e=0;for(b=a[5].length;e<b;e++)g=a[5][e],f=new Ib(this,g),this.Yl[f.name]=f,this.ad.push(f);e=0;for(b=
a[6].length;e<b;e++)g=a[6][e],f=new Jb(this,g),this.jl[f.name]=f,this.Td.push(f);e=0;for(b=this.Td.length;e<b;e++)this.Td[e].La();e=0;for(b=this.Td.length;e<b;e++)this.Td[e].hn();e=0;for(b=this.Fk.length;e<b;e++)this.Fk[e].La();K(this.Fk);this.Ps=a[7];this.nl=a[8];this.cd=a[9];this.Ng=1;this.Ft=a[13];this.Fa=a[14];this.eo=a[15];this.Kw=a[17];this.wm=a[20];this.Qs=0<this.wm;this.Iv=a[22];this.uc=this.dr=a[23];this.yt=a[24];this.Ov=a[25];this.wa=a[27]&&!this.Yd;this.vk=Date.now();K(this.Rj);this.Yu()};
var e=!1,f=0,m=[];c.prototype.Vv=function(a,e){function b(){f--;d.wp()}var d=this;a.addEventListener("load",b);a.addEventListener("error",b);m.push([a,e]);this.wp()};c.prototype.wp=function(){for(var a;m.length&&100>f;)f++,a=m.shift(),this.sq(a[0],a[1])};c.prototype.cr=function(a,f){a.cocoonLazyLoad=!0;a.onerror=function(f){e=a.Zn=!0;console&&console.error&&console.error("Error loading image '"+a.src+"': ",f)};this.Zc?a.src=f:a.src||("undefined"!==typeof XAPKReader?XAPKReader.get(f,function(e){a.src=
e},function(b){e=a.Zn=!0;console&&console.error&&console.error("Error extracting image '"+f+"' from expansion file: ",b)}):(a.crossOrigin="anonymous",this.Vv(a,f)));this.Jg.push(a)};c.prototype.nu=function(a){var e,f;e=0;for(f=this.Jg.length;e<f;e++)if(this.Jg[e].Ys===a)return this.Jg[e];return null};var g=0,u=!1;c.prototype.Ru=function(){this.Lf&&(g=this.Lf.qw(this.Ps))};c.prototype.Vn=function(){var a=g,e=0,f=0,b=!0,d,k,f=0;for(d=this.Jg.length;f<d;f++){k=this.Jg[f];var c=k.ho;if(!c||0>=c)c=5E4;
a+=c;k.src&&(k.complete||k.loaded)&&!k.Zn?e+=c:b=!1}b&&this.Ov&&this.Lf&&(u||(this.Lf.Aw(),u=!0),f=this.Lf.zu(),e+=f,f<g&&(b=!1));this.ed=0==a?1:e/a;return b};var A=!1;c.prototype.go=function(){if(this.Ca||this.p){var a=this.Ca||this.xm;this.sb&&this.dq();var f=window.innerWidth,b=window.innerHeight;this.ig===f&&this.hg===b||this.setSize(f,b);this.ed=0;this.$o=-1;var k=this;if(this.Vn()&&(4!==this.Le||A))this.Su();else{b=Date.now()-this.vk;if(a){var g=this.width,c=this.height,f=this.devicePixelRatio;
if(3>this.Le&&(this.Hc||500<=b&&this.$o!=this.ed)){a.clearRect(0,0,g,c);var b=g/2,c=c/2,g=0===this.Le&&this.Ke.Oj.complete,n=40*f,m=0,q=80*f,x;if(g){var l=this.Ke.Oj,q=l.width*f;x=l.height*f;n=q/2;m=x/2;a.drawImage(l,sa(b-n),sa(c-m),q,x)}1>=this.Le?(b=sa(b-n)+.5,c=sa(c+(m+(g?12*f:0)))+.5,a.fillStyle=e?"red":"DodgerBlue",a.fillRect(b,c,Math.floor(q*this.ed),6*f),a.strokeStyle="black",a.strokeRect(b,c,q,6*f),a.strokeStyle="white",a.strokeRect(b-1*f,c-1*f,q+2*f,8*f)):2===this.Le&&(a.font=this.Zc?"12pt ArialMT":
"12pt Arial",a.fillStyle=e?"#f00":"#999",a.ky="middle",f=Math.round(100*this.ed)+"%",g=a.measureText?a.measureText(f):null,a.fillText(f,b-(g?g.width:0)/2,c));this.$o=this.ed}else if(4===this.Le){this.Dt(a);d?d(function(){k.go()}):setTimeout(function(){k.go()},16);return}}setTimeout(function(){k.go()},this.Hc?10:100)}}};var q=-1,k="undefined"===typeof cr_is_preview?200:0,n=!0,P=!1,N=0,x=0,M="undefined"===typeof cr_is_preview?3E3:0,B=null,F=null,Y=0;c.prototype.Dt=function(a){if(!A){for(var f=Math.ceil(this.width),
b=Math.ceil(this.height),d=this.Ke.Oj,g=this.Ke.Nv,c=this.Ke.Ow,m=0;4>m;++m)if(!d[m].complete||!g[m].complete||!c[m].complete)return;0===Y&&(q=Date.now());var m=Date.now(),h=!1,u=a,w,p;n||P?(a.clearRect(0,0,f,b),B&&B.width===f&&B.height===b||(B=document.createElement("canvas"),B.width=f,B.height=b,F=B.getContext("2d")),u=F,h=!0,n&&1===Y&&(q=Date.now())):a.globalAlpha=1;u.fillStyle="#333333";u.fillRect(0,0,f,b);256<this.Sg?(w=Ga(.22*b,105,.6*f),p=.25*w,u.drawImage(l(g,w),.5*f-w/2,.2*b-p/2,w,p),p=w=
Math.min(.395*b,.95*f),u.drawImage(l(d,w),.5*f-w/2,.485*b-p/2,w,p),w=Ga(.22*b,105,.6*f),p=.25*w,u.drawImage(l(c,w),.5*f-w/2,.868*b-p/2,w,p),u.fillStyle="#3C3C3C",w=f,p=Math.max(.005*b,2),u.fillRect(0,.8*b-p/2,w,p),u.fillStyle=e?"red":"#E0FF65",w=f*this.ed,u.fillRect(.5*f-w/2,.8*b-p/2,w,p)):(p=w=.55*b,u.drawImage(l(d,w),.5*f-w/2,.45*b-p/2,w,p),u.fillStyle="#3C3C3C",w=f,p=Math.max(.005*b,2),u.fillRect(0,.85*b-p/2,w,p),u.fillStyle=e?"red":"#E0FF65",w=f*this.ed,u.fillRect(.5*f-w/2,.85*b-p/2,w,p));h&&
(n?a.globalAlpha=0===Y?0:Math.min((m-q)/300,1):P&&(a.globalAlpha=Math.max(1-(m-x)/300,0)),a.drawImage(B,0,0,f,b));n&&300<=m-q&&2<=Y&&(n=!1,N=m);!n&&m-N>=M&&!P&&1<=this.ed&&(P=!0,x=m);if(P&&m-x>=300+k||"undefined"!==typeof cr_is_preview&&1<=this.ed&&500>Date.now()-q)A=!0,P=n=!1,this.Ke=F=B=null;++Y}};c.prototype.Su=function(){this.sb&&(this.canvas.parentNode.removeChild(this.sb),this.sb=this.xm=null);this.vk=Date.now();this.pf=Ya();var a,e,f;if(this.ln)for(a=0,e=this.n.length;a<e;a++)f=this.n[a],f.C||
f.Ql||!f.la.He||f.U();else this.wh=!1;a=0;for(e=this.ad.length;a<e;a++)this.ad[a].Zs();2<=this.Nb&&(a=this.bb/this.ab,e=this.width/this.height,this.Ng=2!==this.Nb&&e>a||2===this.Nb&&e<a?this.height/this.ab:this.width/this.bb);this.xo?this.Yl[this.xo].Tm():this.ad[0].Tm();this.ln||(this.Lj=1,this.trigger(S.prototype.e.zn,null),window.C2_RegisterSW&&window.C2_RegisterSW());navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();a=0;for(e=this.n.length;a<e;a++)f=this.n[a],
f.Np&&f.Np();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.fb(!1);this.Db&&AppMobi.webview.execute("onGameReady();")};c.prototype.fb=function(a,e,f){if(this.ja){var b=Ya();if(f||!this.qh||a){a||(d?this.Fm=d(this.Nq):this.Zm=setTimeout(this.Nq,this.Zd?1:16));e=e||b;var k=this.Nb;((f=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.yc)||this.wj)&&0<this.Vf&&(k=this.Vf);if(0<
k){var k=window.innerWidth,g=window.innerHeight;this.ig===k&&this.hg===g||this.setSize(k,g)}this.Ia||(f?this.ej||(this.ej=!0):this.ej?(this.ej=!1,0===this.Nb&&this.setSize(Math.round(this.Mp/this.devicePixelRatio),Math.round(this.Lp/this.devicePixelRatio),!0)):(this.Mp=this.width,this.Lp=this.height));this.wh&&(f=this.Vn(),this.Lj=this.ed,f&&(this.wh=!1,this.ed=1,this.trigger(S.prototype.e.zn,null),window.C2_RegisterSW&&window.C2_RegisterSW()));this.rv(e);!this.P&&!this.Hc||this.Tl||this.di||a||(this.P=
!1,this.p?this.ic():this.sd(),this.bi&&(this.canvas&&this.canvas.toDataURL&&(this.Cq=this.canvas.toDataURL(this.bi[0],this.bi[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.Cq),this.trigger(S.prototype.e.Nr,null)),this.bi=null));this.Wx||(this.jd++,this.Vg++,this.hj++);this.Jh+=Ya()-b}}};c.prototype.rv=function(a){var e,f,b,d,k,g,c,n;1E3<=a-this.pf&&(this.pf+=1E3,1E3<=a-this.pf&&(this.pf=a),this.pl=this.hj,this.hj=0,this.bl=this.Jh,this.Jh=0);e=0;0!==this.Cj&&(e=a-this.Cj,0>e&&(e=0),this.df=
e/=1E3,.5<this.df?this.df=0:this.df>1/this.Ap&&(this.df=1/this.Ap));this.Cj=a;this.cf=this.df*this.Eg;this.kb.add(this.cf);this.ne.add(e);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.wj)&&!this.yc;2<=this.Nb||a&&0<this.Vf?(e=this.bb/this.ab,f=this.width/this.height,b=this.Nb,a&&0<this.Vf&&(b=this.Vf),this.Ng=2!==b&&f>e||2===b&&f<e?this.height/this.ab:this.width/this.bb,this.ja&&(this.ja.mq(this.ja.scrollX),this.ja.nq(this.ja.scrollY))):
this.Ng=this.mf?this.devicePixelRatio:1;this.ub();this.$c++;this.Jd.fw();this.$c--;this.ub();this.$c++;f=this.Kp.Ue();a=0;for(e=f.length;a<e;a++)f[a].ey();a=0;for(e=this.n.length;a<e;a++)if(g=this.n[a],!g.C&&(g.Ga.length||g.Da.length))for(f=0,b=g.d.length;f<b;f++)for(c=g.d[f],d=0,k=c.H.length;d<k;d++)c.H[d].fb();a=0;for(e=this.n.length;a<e;a++)if(g=this.n[a],!g.C&&(g.Ga.length||g.Da.length))for(f=0,b=g.d.length;f<b;f++)for(c=g.d[f],d=0,k=c.H.length;d<k;d++)n=c.H[d],n.Mv&&n.Mv();f=this.lm.Ue();a=0;
for(e=f.length;a<e;a++)f[a].fb();this.$c--;this.Tu();for(a=0;this.Og&&10>a++;)this.po(this.Og);a=0;for(e=this.Td.length;a<e;a++)this.Td[a].Fl=!1;this.ja.ff&&this.ja.ff.Ra();K(this.zf);this.$c++;a=0;for(e=this.n.length;a<e;a++)if(g=this.n[a],!g.C&&(g.Ga.length||g.Da.length))for(f=0,b=g.d.length;f<b;f++)for(c=g.d[f],d=0,k=c.H.length;d<k;d++)n=c.H[d],n.ii&&n.ii();f=this.mm.Ue();a=0;for(e=f.length;a<e;a++)f[a].ii();this.$c--};c.prototype.xf=function(){var a,e,f,b,d,k,g,c,n;a=0;for(e=this.n.length;a<e;a++)if(g=
this.n[a],!g.C)for(f=0,b=g.d.length;f<b;f++)if(c=g.d[f],c.xf&&c.xf(),c.H)for(d=0,k=c.H.length;d<k;d++)n=c.H[d],n.xf&&n.xf()};c.prototype.po=function(a){var e=this.ja;this.ja.Bw();var f,b,d;if(this.p)for(f=0,b=this.n.length;f<b;f++)d=this.n[f],d.C||!d.gn||d.global&&0!==d.d.length||-1!==a.jh.indexOf(d)||d.gn();e==a&&K(this.Jd.ec);K(this.zf);this.kq(!0);a.Tm();this.kq(!1);this.P=!0;this.ub()};c.prototype.kq=function(a){var e,f,b,d,k,g,c,n,m;e=0;for(f=this.Ga.length;e<f;e++)b=this.Ga[e],a?b.Nh&&b.Nh():
b.Oh&&b.Oh();e=0;for(f=this.n.length;e<f;e++)if(b=this.n[e],b.global||b.la.uk)for(d=0,k=b.d.length;d<k;d++)if(g=b.d[d],a?g.Nh&&g.Nh():g.Oh&&g.Oh(),g.H)for(c=0,n=g.H.length;c<n;c++)m=g.H[c],a?m.Nh&&m.Nh():m.Oh&&m.Oh()};c.prototype.ji=function(a){this.lm.add(a)};c.prototype.Dw=function(a){this.mm.add(a)};c.prototype.Zg=function(a){return a&&-1!==a.Lh?this.df*a.Lh:this.cf};c.prototype.sd=function(){this.ja.sd(this.Ca);this.Db&&this.Ca.present()};c.prototype.ic=function(){this.wa&&(this.ef=1,this.ja.bf(this.p));
this.ja.ic(this.p);this.p.Qv()};c.prototype.Qk=function(a){a&&this.Xi.push(a)};c.prototype.$v=function(a){Fa(this.Xi,a)};c.prototype.ah=function(a){a=a.toString();return this.de.hasOwnProperty(a)?this.de[a]:null};var I=[];c.prototype.pe=function(a){var e,f;e=a.type.name;var b=null;if(this.$e.hasOwnProperty(e)){if(b=this.$e[e],b.contains(a))return}else b=I.length?I.pop():new ea,this.$e[e]=b;b.add(a);this.Ee=!0;if(a.Ub)for(e=0,f=a.siblings.length;e<f;e++)this.pe(a.siblings[e]);this.Ol&&b.Hg.push(a);
this.Nl||(this.$c++,this.trigger(Object.getPrototypeOf(a.type.la).e.Pr,a),this.$c--)};c.prototype.ub=function(){if(this.Ee){var a,e,f,b,d,k;this.Ol=!0;f=0;for(d=this.Wc.length;f<d;++f)for(a=this.Wc[f],e=a.type,e.d.push(a),b=0,k=e.Da.length;b<k;++b)e.Da[b].d.push(a),e.Da[b].Bg=!0;K(this.Wc);this.Hr();Xa(this.$e);this.Ee=this.Ol=!1}};c.prototype.Hr=function(){for(var a in this.$e)this.$e.hasOwnProperty(a)&&this.jr(this.$e[a])};c.prototype.jr=function(a){var e=a.Ue(),f=e[0].type,b,d,k,g,c,n;Za(f.d,a);
f.Bg=!0;0===f.d.length&&(f.Ci=!1);b=0;for(d=f.Da.length;b<d;++b)n=f.Da[b],Za(n.d,a),n.Bg=!0;b=0;for(d=this.Jd.ec.length;b<d;++b)if(c=this.Jd.ec[b],c.Ob.hasOwnProperty(f.index)&&Za(c.Ob[f.index].Wd,a),!f.C)for(k=0,g=f.Da.length;k<g;++k)n=f.Da[k],c.Ob.hasOwnProperty(n.index)&&Za(c.Ob[n.index].Wd,a);if(c=e[0].g){if(c.Dc)for(k=c.d,b=0,d=k.length;b<d;++b)g=k[b],a.contains(g)&&(g.ka(),c.tb.update(g,g.Yb,null),g.Yb.set(0,0,-1,-1));Za(c.d,a);c.Yh(0)}for(b=0;b<e.length;++b)this.ir(e[b],f);a.clear();I.push(a);
this.P=!0};c.prototype.ir=function(a,e){var f,b,d;f=0;for(b=this.Xi.length;f<b;++f)this.Xi[f](a);a.ye&&e.Ni.update(a,a.ye,null);(f=a.g)&&f.wg(a,!0);if(a.H)for(f=0,b=a.H.length;f<b;++f)d=a.H[f],d.tg&&d.tg(),d.behavior.im.remove(a);this.Kp.remove(a);this.lm.remove(a);this.mm.remove(a);a.tg&&a.tg();this.de.hasOwnProperty(a.uid.toString())&&delete this.de[a.uid.toString()];this.Sj--;100>e.Ui.length&&e.Ui.push(a)};c.prototype.io=function(a,e,f,b){if(a.C){var d=sa(Math.random()*a.uf.length);return this.io(a.uf[d],
e,f,b)}return a.Fc?this.ze(a.Fc,e,!1,f,b,!1):null};var V=[];c.prototype.ze=function(a,e,f,b,d,k){var g,c,n,m;if(!a)return null;var q=this.n[a[1]],x=q.la.He;if(this.wh&&x&&!q.Ql||x&&!this.p&&11===a[0][11])return null;var l=e;x||(e=null);var u;q.Ui.length?(u=q.Ui.pop(),u.Eb=!0,q.la.ga.call(u,q)):(u=new q.la.ga(q),u.Eb=!1);!f||k||this.de.hasOwnProperty(a[2].toString())?u.uid=this.Mh++:u.uid=a[2];this.de[u.uid.toString()]=u;u.hq=this.Gp++;u.lf=q.d.length;g=0;for(c=this.Wc.length;g<c;++g)this.Wc[g].type===
q&&u.lf++;u.eh=Gb;u.toString=Hb;n=a[3];if(u.Eb)Xa(u.J);else{u.J={};if("undefined"!==typeof cr_is_preview)for(u.No=[],u.No.length=n.length,g=0,c=n.length;g<c;g++)u.No[g]=n[g][1];u.Ya=[];u.Ya.length=n.length}g=0;for(c=n.length;g<c;g++)u.Ya[g]=n[g][0];if(x){var h=a[0];u.x=ka(b)?h[0]:b;u.y=ka(d)?h[1]:d;u.z=h[2];u.width=h[3];u.height=h[4];u.depth=h[5];u.j=h[6];u.opacity=h[7];u.Sb=h[8];u.Tb=h[9];u.wb=h[10];g=h[11];!this.p&&q.I.length&&(u.wb=g);u.Pg=gb(u.wb);this.q&&hb(u,u.wb,this.q);if(u.Eb){g=0;for(c=
h[12].length;g<c;g++)for(n=0,m=h[12][g].length;n<m;n++)u.Ha[g][n]=h[12][g][n];u.Ba.set(0,0,0,0);u.ye.set(0,0,-1,-1);u.Yb.set(0,0,-1,-1);u.Kb.Zh(u.Ba);K(u.Uk)}else{u.Ha=h[12].slice(0);g=0;for(c=u.Ha.length;g<c;g++)u.Ha[g]=h[12][g].slice(0);u.aa=[];u.re=[];u.re.length=q.I.length;u.Ba=new va(0,0,0,0);u.ye=new va(0,0,-1,-1);u.Yb=new va(0,0,-1,-1);u.Kb=new wa;u.Uk=[];u.na=Kb;u.Px=Lb;u.Lb=Mb;u.ka=Nb;u.Jw=Ob;u.Zq=Pb;u.wd=Qb}u.Dg=!1;u.Gw=0;u.Fw=0;u.Ew=null;14===h.length&&(u.Dg=!0,u.Gw=h[13][0],u.Fw=h[13][1],
u.Ew=h[13][2]);g=0;for(c=q.I.length;g<c;g++)u.re[g]=!0;u.he=!0;u.md=Rb;u.md();u.$q=!!u.aa.length;u.Tk=!0;u.Xk=!0;q.Bi=!0;u.visible=!0;u.Lh=-1;u.g=e;u.nd=e.d.length;u.ef=0;"undefined"===typeof u.ba&&(u.ba=null);this.P=u.Od=!0}var w;K(V);g=0;for(c=q.Da.length;g<c;g++)V.push.apply(V,q.Da[g].Ga);V.push.apply(V,q.Ga);if(u.Eb)for(g=0,c=V.length;g<c;g++){var B=V[g];w=u.H[g];w.Eb=!0;B.behavior.ga.call(w,B,u);h=a[4][g];n=0;for(m=h.length;n<m;n++)w.M[n]=h[n];w.U();B.behavior.im.add(u)}else for(u.H=[],g=0,c=
V.length;g<c;g++)B=V[g],w=new B.behavior.ga(B,u),w.Eb=!1,w.M=a[4][g].slice(0),w.U(),u.H.push(w),B.behavior.im.add(u);h=a[5];if(u.Eb)for(g=0,c=h.length;g<c;g++)u.M[g]=h[g];else u.M=h.slice(0);this.Wc.push(u);this.Ee=!0;e&&(e.Mg(u,!0),1!==e.Wb||1!==e.Xb)&&(q.Ci=!0);this.Sj++;if(q.Ub){if(u.Ub=!0,u.Eb?K(u.siblings):u.siblings=[],!f&&!k){g=0;for(c=q.hc.length;g<c;g++)if(q.hc[g]!==q){if(!q.hc[g].Fc)return null;u.siblings.push(this.ze(q.hc[g].Fc,l,!1,x?u.x:b,x?u.y:d,!0))}g=0;for(c=u.siblings.length;g<c;g++)for(u.siblings[g].siblings.push(u),
n=0;n<c;n++)g!==n&&u.siblings[g].siblings.push(u.siblings[n])}}else u.Ub=!1,u.siblings=null;u.U();g=0;for(c=u.H.length;g<c;g++)u.H[g].Lv&&u.H[g].Lv();return u};c.prototype.$g=function(a){var e,f;e=0;for(f=this.ja.K.length;e<f;e++){var b=this.ja.K[e];if(jb(b.name,a))return b}return null};c.prototype.Vd=function(a){a=sa(a);0>a&&(a=0);a>=this.ja.K.length&&(a=this.ja.K.length-1);return this.ja.K[a]};c.prototype.$k=function(a){var e,f;e=0;for(f=a.length;e<f;e++)a[e].W().da=!0};c.prototype.Uh=function(a){var e,
f;e=0;for(f=a.length;e<f;e++)a[e].Uh()};c.prototype.hk=function(a){var e,f;e=0;for(f=a.length;e<f;e++)a[e].hk()};c.prototype.yf=function(a){var e,f;e=0;for(f=a.length;e<f;e++)a[e].yf()};c.prototype.Xq=function(a){if(a.Bi){var e,f,b=a.d;e=0;for(f=b.length;e<f;++e)b[e].Zq();b=this.Wc;e=0;for(f=b.length;e<f;++e)b[e].type===a&&b[e].Zq();a.Bi=!1}};c.prototype.sl=function(a,e,f,b){var g,d,k=a?1!==a.Wb||1!==a.Xb:!1;if(e.C)for(a=0,g=e.uf.length;a<g;++a)d=e.uf[a],k||d.Ci?Da(b,d.d):(this.Xq(d),d.Ni.jk(f,b));
else k||e.Ci?Da(b,e.d):(this.Xq(e),e.Ni.jk(f,b))};c.prototype.Eu=function(a,e,f,b){var g,d;g=0;for(d=e.length;g<d;++g)this.sl(a,e[g],f,b)};c.prototype.Du=function(a,e,f){var b=this.Eq;b&&this.Eu(a,b.jm,e,f)};c.prototype.fi=function(a,e,f){var b=a.W(),g,d,k,c,n=this.Xa().Mb.Ac,m,q,u;if(b.da)for(b.da=!1,K(b.d),g=0,c=a.d.length;g<c;g++)k=a.d[g],k.ka(),m=k.g.Ta(e,f,!0),q=k.g.Ta(e,f,!1),k.Lb(m,q)?b.d.push(k):n&&b.R.push(k);else{d=0;u=n?b.R:b.d;g=0;for(c=u.length;g<c;g++)k=u[g],k.ka(),m=k.g.Ta(e,f,!0),
q=k.g.Ta(e,f,!1),k.Lb(m,q)&&(n?b.d.push(k):(b.d[d]=b.d[g],d++));u.length=d}a.Tc();return b.El()};c.prototype.gi=function(a,e){if(!(a&&e&&a!==e&&a.Od&&e.Od))return!1;a.ka();e.ka();var f=a.g,b=e.g,g,d,k,c,n,m,q,u;if(f===b||f.Wb===b.Wb&&b.Xb===b.Xb&&f.scale===b.scale&&f.j===b.j&&f.Jb===b.Jb){if(!a.Ba.Zu(e.Ba)||!a.Kb.Oo(e.Kb)||a.Dg&&e.Dg)return!1;if(a.Dg)return this.Jq(a,e);if(e.Dg)return this.Jq(e,a);q=a.ba&&!a.ba.$f();g=e.ba&&!e.ba.$f();if(!q&&!g)return!0;q?(a.ba.Nf(a.width,a.height,a.j),q=a.ba):(this.hd.zg(a.Kb,
a.x,a.y,a.width,a.height),q=this.hd);g?(e.ba.Nf(e.width,e.height,e.j),u=e.ba):(this.hd.zg(e.Kb,e.x,e.y,e.width,e.height),u=this.hd);return q.kh(u,e.x-a.x,e.y-a.y)}q=a.ba&&!a.ba.$f();g=e.ba&&!e.ba.$f();q?(a.ba.Nf(a.width,a.height,a.j),this.hd.vq(a.ba)):this.hd.zg(a.Kb,a.x,a.y,a.width,a.height);q=this.hd;g?(e.ba.Nf(e.width,e.height,e.j),this.Vm.vq(e.ba)):this.Vm.zg(e.Kb,e.x,e.y,e.width,e.height);u=this.Vm;g=0;for(d=q.fd;g<d;g++)k=2*g,c=k+1,n=q.cb[k],m=q.cb[c],q.cb[k]=f.Ea(n+a.x,m+a.y,!0),q.cb[c]=f.Ea(n+
a.x,m+a.y,!1);q.ka();g=0;for(d=u.fd;g<d;g++)k=2*g,c=k+1,n=u.cb[k],m=u.cb[c],u.cb[k]=b.Ea(n+e.x,m+e.y,!0),u.cb[c]=b.Ea(n+e.x,m+e.y,!1);u.ka();return q.kh(u,0,0)};var X=new wa;new va(0,0,0,0);var R=[];c.prototype.Jq=function(a,e){var f,b,g,d,k=e.Ba,c=a.x,n=a.y;a.Ux(k,R);var m=e.ba&&!e.ba.$f();f=0;for(b=R.length;f<b;++f)if(g=R[f],d=g.hy,k.$u(d,c,n)&&(X.Zh(d),X.offset(c,n),X.Oo(e.Kb)))if(m)if(e.ba.Nf(e.width,e.height,e.j),g.Am){if(g.Am.kh(e.ba,e.x-(c+d.left),e.y-(n+d.top)))return K(R),!0}else{if(this.hd.zg(X,
0,0,d.right-d.left,d.bottom-d.top),this.hd.kh(e.ba,e.x,e.y))return K(R),!0}else if(g.Am){if(this.hd.zg(e.Kb,0,0,e.width,e.height),g.Am.kh(this.hd,-(c+d.left),-(n+d.top)))return K(R),!0}else return K(R),!0;K(R);return!1};c.prototype.Tq=function(a,e){if(!e)return!1;var f,b,g,d,k;f=0;for(b=a.Ga.length;f<b;f++)if(a.Ga[f].behavior instanceof e)return!0;if(!a.C)for(f=0,b=a.Da.length;f<b;f++)for(k=a.Da[f],g=0,d=k.Ga.length;g<d;g++)if(k.Ga[g].behavior instanceof e)return!0;return!1};c.prototype.cn=function(a){return this.Tq(a,
gc.mx)};c.prototype.dn=function(a){return this.Tq(a,gc.nx)};var D=[];c.prototype.Iq=function(a){var e,f,b;a.ka();this.Du(a.g,a.Ba,D);e=0;for(f=D.length;e<f;++e)if(b=D[e],b.J.solidEnabled&&this.gi(a,b))return K(D),b;K(D);return null};c.prototype.Uv=function(a,e,f,b){b=b||50;var g=a.x,d=a.y,k,c=null,n=null;for(k=0;k<b;k++)if(a.x=g+e*k,a.y=d+f*k,a.na(),!this.gi(a,c)&&((c=this.Iq(a))&&(n=c),!c&&!c)){n&&this.Sv(a,e,f,n);return}a.x=g;a.y=d;a.na()};c.prototype.Sv=function(a,e,f,b){var g=2,d,k=!1;d=!1;for(var c=
a.x,n=a.y;16>=g;)d=1/g,g*=2,a.x+=e*d*(k?1:-1),a.y+=f*d*(k?1:-1),a.na(),this.gi(a,b)?d=k=!0:(d=k=!1,c=a.x,n=a.y);d&&(a.x=c,a.y=n,a.na())};c.prototype.Xv=function(a,e){a.Od&&e.Od&&this.zf.push([a,e])};c.prototype.Ms=function(a,e,f){var b,g,d;b=0;for(g=this.zf.length;b<g;++b){d=this.zf[b];if(d[0]===a)d=d[1];else if(d[1]===a)d=d[0];else continue;if(e.C){if(-1===e.uf.indexOf(e))continue}else if(d.type!==e)continue;-1===f.indexOf(d)&&f.push(d)}};c.prototype.Vs=function(a,e){var f,b,g;f=0;for(b=this.zf.length;f<
b;f++)if(g=this.zf[f],g[0]===a&&g[1]===e||g[0]===e&&g[1]===a)return!0;return!1};var L=-1;c.prototype.trigger=function(a,e,f){if(!this.ja)return!1;var b=this.ja.ff;if(!b)return!1;var g=!1,d,k,c;L++;var n=b.fl;k=0;for(c=n.length;k<c;++k)d=this.Qq(a,e,n[k],f),g=g||d;d=this.Qq(a,e,b,f);L--;return g||d};c.prototype.Qq=function(a,e,f,b){var g=!1,d,k,c,n;if(e)for(c=this.an(a,e,e.type.name,f,b),g=g||c,n=e.type.Da,d=0,k=n.length;d<k;++d)c=this.an(a,e,n[d].name,f,b),g=g||c;else c=this.an(a,e,"system",f,b),
g=g||c;return g};c.prototype.an=function(a,e,f,b,g){var d,k=!1,c=!1,c="undefined"!==typeof g,n=(c?b.to:b.Rq)[f];if(!n)return k;var m=null;b=0;for(d=n.length;b<d;++b)if(n[b].method==a){m=n[b].Ug;break}if(!m)return k;var q;c?q=m[g]:q=m;if(!q)return null;b=0;for(d=q.length;b<d;b++)a=q[b][0],g=q[b][1],c=this.ku(e,f,a,g),k=k||c;return k};c.prototype.ku=function(a,e,f,b){var g,d,k=!1;this.bn++;var c=this.Xa().Mb;c&&this.Uh(c.Se);var n=1<this.bn;this.Uh(f.Se);n&&this.Tv();var m=this.ik(f);m.Mb=f;a&&(g=this.types[e].W(),
g.da=!1,K(g.d),g.d[0]=a,this.types[e].Tc());a=!0;if(f.parent){e=m.Hq;for(g=f.parent;g;)e.push(g),g=g.parent;e.reverse();g=0;for(d=e.length;g<d;g++)if(!e[g].hw()){a=!1;break}}a&&(this.Vg++,f.Ac?f.gw(b):f.Ra(),k=k||m.of);this.dk();n&&this.Kv();this.yf(f.Se);c&&this.yf(c.Se);this.Ee&&0===this.$c&&0===L&&!this.Rl&&this.ub();this.bn--;return k};c.prototype.kj=function(){var a=this.Xa();return a.Mb.ib[a.Ua]};c.prototype.dv=function(){return 0===this.Xa().Ua};c.prototype.Tv=function(){this.Nj++;this.Nj>=
this.em.length&&this.em.push([])};c.prototype.Kv=function(){this.Nj--};c.prototype.Bo=function(){return this.em[this.Nj]};c.prototype.ik=function(a){this.Zi++;this.Zi>=this.il.length&&this.il.push(new Sb);var e=this.Xa();e.reset(a);return e};c.prototype.dk=function(){this.Zi--};c.prototype.Xa=function(){return this.il[this.Zi]};c.prototype.Co=function(a,e){for(var f,b,g,d,k,c;e;){f=0;for(b=e.Nc.length;f<b;f++)if(c=e.Nc[f],c instanceof Tb&&jb(a,c.name))return c;e=e.parent}f=0;for(b=this.Td.length;f<
b;f++)for(k=this.Td[f],g=0,d=k.Ce.length;g<d;g++)if(c=k.Ce[g],c instanceof Tb&&jb(a,c.name))return c;return null};c.prototype.Eo=function(a){var e,f;e=0;for(f=this.ad.length;e<f;e++)if(this.ad[e].V===a)return this.ad[e];return null};c.prototype.mj=function(a){var e,f;e=0;for(f=this.n.length;e<f;e++)if(this.n[e].V===a)return this.n[e];return null};c.prototype.tu=function(a){var e,f;e=0;for(f=this.Kf.length;e<f;e++)if(this.Kf[e].V===a)return this.Kf[e];return null};c.prototype.dt=function(a,e){this.bi=
[a,e];this.P=!0};c.prototype.Tu=function(){var a=this,e=this.Om,f=this.$d,g=this.Hj,d=!1;this.Aq&&(d=!0,e="__c2_continuouspreview",this.Aq=!1);if(e.length){this.ub();f=this.lw();if(h()&&!this.Hc)t(e,f,function(){ga("Saved state to IndexedDB storage ("+f.length+" bytes)");a.$d=f;a.trigger(S.prototype.e.Ok,null);a.$d="";d&&b()},function(g){try{localStorage.setItem("__c2save_"+e,f),ga("Saved state to WebStorage ("+f.length+" bytes)"),a.$d=f,a.trigger(S.prototype.e.Ok,null),a.$d="",d&&b()}catch(k){ga("Failed to save game state: "+
g+"; "+k),a.trigger(S.prototype.e.Fn,null)}});else try{localStorage.setItem("__c2save_"+e,f),ga("Saved state to WebStorage ("+f.length+" bytes)"),a.$d=f,this.trigger(S.prototype.e.Ok,null),a.$d="",d&&b()}catch(k){ga("Error saving to WebStorage: "+k),a.trigger(S.prototype.e.Fn,null)}this.Hj=this.Om="";this.$a=null}if(g.length){if(h()&&!this.Hc)r(g,function(e){e?(a.$a=e,ga("Loaded state from IndexedDB storage ("+a.$a.length+" bytes)")):(a.$a=localStorage.getItem("__c2save_"+g)||"",ga("Loaded state from WebStorage ("+
a.$a.length+" bytes)"));a.di=!1;a.$a||(a.$a=null,a.trigger(S.prototype.e.vi,null))},function(){a.$a=localStorage.getItem("__c2save_"+g)||"";ga("Loaded state from WebStorage ("+a.$a.length+" bytes)");a.di=!1;a.$a||(a.$a=null,a.trigger(S.prototype.e.vi,null))});else{try{this.$a=localStorage.getItem("__c2save_"+g)||"",ga("Loaded state from WebStorage ("+this.$a.length+" bytes)")}catch(c){this.$a=null}this.di=!1;a.$a||(a.$a=null,a.trigger(S.prototype.e.vi,null))}this.Om=this.Hj=""}null!==this.$a&&(this.ub(),
this.qv(this.$a)?(this.$d=this.$a,this.trigger(S.prototype.e.$r,null),this.$d=""):a.trigger(S.prototype.e.vi,null),this.$a=null)};c.prototype.lw=function(){var e,f,b,g,d,k,c,n={c2save:!0,version:1,rt:{time:this.kb.F,walltime:this.ne.F,timescale:this.Eg,tickcount:this.jd,execcount:this.Vg,next_uid:this.Mh,running_layout:this.ja.V,start_time_offset:Date.now()-this.vk},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};e=0;for(f=this.n.length;e<f;e++)if(d=this.n[e],!d.C&&!this.cn(d)){k=
{instances:[]};Wa(d.J)&&(k.ex=a(d.J));b=0;for(g=d.d.length;b<g;b++)k.instances.push(this.Nm(d.d[b]));n.types[d.V.toString()]=k}e=0;for(f=this.ad.length;e<f;e++)b=this.ad[e],n.layouts[b.V.toString()]=b.Fb();g=n.events.groups;e=0;for(f=this.Kf.length;e<f;e++)b=this.Kf[e],g[b.V.toString()]=this.nj[b.gh].fh;f=n.events.cnds;for(c in this.xe)this.xe.hasOwnProperty(c)&&(e=this.xe[c],Wa(e.J)&&(f[c]={ex:a(e.J)}));f=n.events.acts;for(c in this.se)this.se.hasOwnProperty(c)&&(e=this.se[c],Wa(e.J)&&(f[c]={ex:a(e.J)}));
f=n.events.vars;for(c in this.Ig)this.Ig.hasOwnProperty(c)&&(e=this.Ig[c],e.zj||e.parent&&!e.vh||(f[c]=e.data));n.system=this.Jd.Fb();return JSON.stringify(n)};c.prototype.iq=function(){var a,e,f,b,g,d;this.de={};a=0;for(e=this.n.length;a<e;a++)if(f=this.n[a],!f.C)for(b=0,g=f.d.length;b<g;b++)d=f.d[b],this.de[d.uid.toString()]=d};c.prototype.qv=function(a){var e;try{e=JSON.parse(a)}catch(f){return!1}if(!e.c2save||1<e.version)return!1;this.nh=!0;a=e.rt;this.kb.reset();this.kb.F=a.time;this.ne.reset();
this.ne.F=a.walltime||0;this.Eg=a.timescale;this.jd=a.tickcount;this.Vg=a.execcount;this.vk=Date.now()-a.start_time_offset;var b=a.running_layout;if(b!==this.ja.V)if(b=this.Eo(b))this.po(b);else return;var g,d,k,c,n,m,q;m=e.types;for(d in m)if(m.hasOwnProperty(d)&&(c=this.mj(parseInt(d,10)))&&!c.C&&!this.cn(c)){m[d].ex?c.J=m[d].ex:Xa(c.J);n=c.d;k=m[d].instances;b=0;for(g=pa(n.length,k.length);b<g;b++)this.Ij(n[b],k[b]);b=k.length;for(g=n.length;b<g;b++)this.pe(n[b]);b=n.length;for(g=k.length;b<g;b++){n=
null;if(c.la.He&&(n=this.ja.lj(k[b].w.l),!n))continue;n=this.ze(c.Fc,n,!1,0,0,!0);this.Ij(n,k[b])}c.Bg=!0}this.ub();this.iq();g=e.layouts;for(d in g)g.hasOwnProperty(d)&&(b=this.Eo(parseInt(d,10)))&&b.Vb(g[d]);g=e.events.groups;for(d in g)g.hasOwnProperty(d)&&(b=this.tu(parseInt(d,10)))&&this.nj[b.gh]&&this.nj[b.gh].ow(g[d]);b=e.events.cnds;for(d in this.xe)this.xe.hasOwnProperty(d)&&(b.hasOwnProperty(d)?this.xe[d].J=b[d].ex:this.xe[d].J={});b=e.events.acts;for(d in this.se)this.se.hasOwnProperty(d)&&
(b.hasOwnProperty(d)?this.se[d].J=b[d].ex:this.se[d].J={});b=e.events.vars;for(d in b)b.hasOwnProperty(d)&&this.Ig.hasOwnProperty(d)&&(this.Ig[d].data=b[d]);this.Mh=a.next_uid;this.nh=!1;b=0;for(g=this.dj.length;b<g;++b)n=this.dj[b],this.trigger(Object.getPrototypeOf(n.type.la).e.si,n);K(this.dj);this.Jd.Vb(e.system);b=0;for(g=this.n.length;b<g;b++)if(c=this.n[b],!c.C&&!this.cn(c))for(e=0,d=c.d.length;e<d;e++){n=c.d[e];if(c.Ub)for(m=n.eh(),K(n.siblings),a=0,k=c.hc.length;a<k;a++)q=c.hc[a],c!==q&&
n.siblings.push(q.d[m]);n.od&&n.od();if(n.H)for(a=0,k=n.H.length;a<k;a++)m=n.H[a],m.od&&m.od()}return this.P=!0};c.prototype.Nm=function(e,f){var b,g,d,k,c;k=e.type;d=k.la;var n={};f?n.c2=!0:n.uid=e.uid;Wa(e.J)&&(n.ex=a(e.J));if(e.Ya&&e.Ya.length)for(n.ivs={},b=0,g=e.Ya.length;b<g;b++)n.ivs[e.type.Ll[b].toString()]=e.Ya[b];if(d.He){d={x:e.x,y:e.y,w:e.width,h:e.height,l:e.g.V,zi:e.wd()};0!==e.j&&(d.a=e.j);1!==e.opacity&&(d.o=e.opacity);.5!==e.Sb&&(d.hX=e.Sb);.5!==e.Tb&&(d.hY=e.Tb);0!==e.wb&&(d.bm=
e.wb);e.visible||(d.v=e.visible);e.Od||(d.ce=e.Od);-1!==e.Lh&&(d.mts=e.Lh);if(k.I.length)for(d.fx=[],b=0,g=k.I.length;b<g;b++)c=k.I[b],d.fx.push({name:c.name,active:e.re[c.index],params:e.Ha[c.index]});n.w=d}if(e.H&&e.H.length)for(n.behs={},b=0,g=e.H.length;b<g;b++)k=e.H[b],k.Fb&&(n.behs[k.type.V.toString()]=k.Fb());e.Fb&&(n.data=e.Fb());return n};c.prototype.vu=function(a,e){var f,b;f=0;for(b=a.Ll.length;f<b;f++)if(a.Ll[f]===e)return f;return-1};c.prototype.su=function(a,e){var f,b;f=0;for(b=a.H.length;f<
b;f++)if(a.H[f].type.V===e)return f;return-1};c.prototype.Ij=function(a,e,f){var b,g,d,k,c;c=a.type;var n=c.la;if(f){if(!e.c2)return}else a.uid=e.uid;e.ex?a.J=e.ex:Xa(a.J);if(g=e.ivs)for(b in g)g.hasOwnProperty(b)&&(d=this.vu(c,parseInt(b,10)),0>d||d>=a.Ya.length||(k=g[b],null===k&&(k=NaN),a.Ya[d]=k));if(n.He){d=e.w;a.g.V!==d.l&&(g=a.g,a.g=this.ja.lj(d.l),a.g?(g.wg(a,!0),a.g.Mg(a,!0),a.na(),a.g.Yh(0)):(a.g=g,f||this.pe(a)));a.x=d.x;a.y=d.y;a.width=d.w;a.height=d.h;a.nd=d.zi;a.j=d.hasOwnProperty("a")?
d.a:0;a.opacity=d.hasOwnProperty("o")?d.o:1;a.Sb=d.hasOwnProperty("hX")?d.hX:.5;a.Tb=d.hasOwnProperty("hY")?d.hY:.5;a.visible=d.hasOwnProperty("v")?d.v:!0;a.Od=d.hasOwnProperty("ce")?d.ce:!0;a.Lh=d.hasOwnProperty("mts")?d.mts:-1;a.wb=d.hasOwnProperty("bm")?d.bm:0;a.Pg=gb(a.wb);this.q&&hb(a,a.wb,this.q);a.na();if(d.hasOwnProperty("fx"))for(f=0,g=d.fx.length;f<g;f++)k=c.ul(d.fx[f].name),0>k||(a.re[k]=d.fx[f].active,a.Ha[k]=d.fx[f].params);a.md()}if(c=e.behs)for(b in c)c.hasOwnProperty(b)&&(f=this.su(a,
parseInt(b,10)),0>f||a.H[f].Vb(c[b]));e.data&&a.Vb(e.data)};c.prototype.uo=function(a,e,f){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+"www/"+a,function(a){a.file(e,f)},f)};c.prototype.lu=function(a,e){this.uo("data.js",function(f){var b=new FileReader;b.onload=function(e){a(e.target.result)};b.onerror=e;b.readAsText(f)},e)};var ia=[],aa=0;c.prototype.gm=function(){if(ia.length&&!(8<=aa)){aa++;var a=ia.shift();this.ft(a.filename,a.Cw,a.It)}};c.prototype.vo=function(a,e,f){var b=
this;ia.push({filename:a,Cw:function(a){aa--;b.gm();e(a)},It:function(a){aa--;b.gm();f(a)}});this.gm()};c.prototype.ft=function(a,e,f){this.uo(a,function(a){var f=new FileReader;f.onload=function(a){e(a.target.result)};f.readAsArrayBuffer(a)},f)};c.prototype.mu=function(a,e,f){var b="",d=a.toLowerCase(),g=d.substr(d.length-4),d=d.substr(d.length-5);".mp4"===g?b="video/mp4":".webm"===d?b="video/webm":".m4a"===g?b="audio/mp4":".mp3"===g&&(b="audio/mpeg");this.vo(a,function(a){a=URL.createObjectURL(new Blob([a],
{type:b}));e(a)},f)};c.prototype.av=function(a){return/^(?:[a-z]+:)?\/\//.test(a)||"data:"===a.substr(0,5)||"blob:"===a.substr(0,5)};c.prototype.sq=function(a,e){this.xj&&!this.av(e)?this.mu(e,function(e){a.src=e},function(a){alert("Failed to load image: "+a)}):a.src=e};c.prototype.qk=function(a,e){"undefined"!==typeof a.imageSmoothingEnabled?a.imageSmoothingEnabled=e:(a.webkitImageSmoothingEnabled=e,a.mozImageSmoothingEnabled=e,a.msImageSmoothingEnabled=e)};Ub=function(a){return new c(document.getElementById(a))};
Vb=function(a,e){return new c({dc:!0,width:a,height:e})};window.cr_createRuntime=Ub;window.cr_createDCRuntime=Vb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.Di=!0;document.body.appendChild(a);a=new c(a);window.c2runtime=a;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);
return a};window.createEjectaRuntime=function(){var a=new c(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();window.cr_getC2Runtime=function(){var c=document.getElementById("c2canvas");return c?c.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(c,l){var h=window.cr_getC2Runtime();h&&h.dt(c,l)};
window.cr_sizeCanvas=function(c,l){if(0!==c&&0!==l){var h=window.cr_getC2Runtime();h&&h.setSize(c,l)}};window.cr_setSuspended=function(c){var l=window.cr_getC2Runtime();l&&l.setSuspended(c)};
(function(){function c(a,f){this.b=a;this.ff=null;this.scrollX=this.b.bb/2;this.scrollY=this.b.ab/2;this.scale=1;this.j=0;this.Uf=!0;this.name=f[0];this.Gv=f[1];this.Fv=f[2];this.width=f[1];this.height=f[2];this.Uq=f[3];this.yq=f[4];this.V=f[5];var b=f[6],d,c;this.K=[];this.jh=[];d=0;for(c=b.length;d<c;d++){var l=new Wb(this,b[d]);l.Ip=d;this.K.push(l)}b=f[7];this.Fe=[];d=0;for(c=b.length;d<c;d++){var l=b[d],q=this.b.n[l[1]];q.Fc||(q.Fc=l);this.Fe.push(l);-1===this.jh.indexOf(q)&&this.jh.push(q)}this.I=
[];this.aa=[];this.he=!0;this.Ha=[];d=0;for(c=f[8].length;d<c;d++)this.I.push({id:f[8][d][0],name:f[8][d][1],Sa:-1,dd:!1,rc:!0,index:d}),this.Ha.push(f[8][d][2].slice(0));this.md();this.Qe=new va(0,0,1,1);this.Gm=new va(0,0,1,1);this.Pe={}}function l(a,f){return a.nd-f.nd}function h(a,f){this.lb=a;this.b=a.b;this.d=[];this.scale=1;this.j=0;this.Sd=!1;this.ke=new va(0,0,0,0);this.Oq=new wa;this.ra=this.fa=this.ta=this.ea=0;this.Gf=!1;this.oe=-1;this.al=0;this.name=f[0];this.index=f[1];this.V=f[2];
this.visible=f[3];this.Uc=f[4];this.ld=f[5];this.Wb=f[6];this.Xb=f[7];this.opacity=f[8];this.gj=f[9];this.Dc=f[10];this.Jb=f[11];this.wb=f[12];this.Et=f[13];this.Pg="source-over";this.Bb=this.Gb=0;this.tb=null;this.ae=p();this.gd=!0;this.jg=new va(0,0,-1,-1);this.pb=new va(0,0,-1,-1);this.Dc&&(this.tb=new fb(this.b.bb,this.b.ab));this.Gd=!1;var b=f[14],d,c;this.Fq=[];this.xc=[];this.Rg=[];d=0;for(c=b.length;d<c;d++){var l=b[d],q=this.b.n[l[1]];q.Fc||(q.Fc=l,q.bt=this.index);this.xc.push(l);-1===this.lb.jh.indexOf(q)&&
this.lb.jh.push(q)}Ba(this.Fq,this.xc);this.I=[];this.aa=[];this.he=!0;this.Ha=[];d=0;for(c=f[15].length;d<c;d++)this.I.push({id:f[15][d][0],name:f[15][d][1],Sa:-1,dd:!1,rc:!0,index:d}),this.Ha.push(f[15][d][2].slice(0));this.md();this.Qe=new va(0,0,1,1);this.Gm=new va(0,0,1,1)}function p(){return a.length?a.pop():[]}function t(e){K(e);a.push(e)}c.prototype.kw=function(a){var f=a.type.V.toString();this.Pe.hasOwnProperty(f)||(this.Pe[f]=[]);this.Pe[f].push(this.b.Nm(a))};c.prototype.Go=function(){var a=
this.K[0];return!a.ld&&1===a.opacity&&!a.gj&&a.visible};c.prototype.md=function(){K(this.aa);this.he=!0;var a,f,b;a=0;for(f=this.I.length;a<f;a++)b=this.I[a],b.rc&&(this.aa.push(b),b.dd||(this.he=!1))};c.prototype.tl=function(a){var f,b,d;f=0;for(b=this.I.length;f<b;f++)if(d=this.I[f],d.name===a)return d;return null};var r=[],b=!0;c.prototype.Tm=function(){this.yq&&(this.ff=this.b.jl[this.yq],this.ff.hn());this.b.ja=this;this.width=this.Gv;this.height=this.Fv;this.scrollX=this.b.bb/2;this.scrollY=
this.b.ab/2;var a,f,d,g,c,h,q;a=0;for(d=this.b.n.length;a<d;a++)if(f=this.b.n[a],!f.C)for(c=f.d,f=0,g=c.length;f<g;f++)if(h=c[f],h.g){var k=h.g.Ip;k>=this.K.length&&(k=this.K.length-1);h.g=this.K[k];-1===h.g.d.indexOf(h)&&h.g.d.push(h);h.g.Gf=!0}if(!b)for(a=0,d=this.K.length;a<d;++a)this.K[a].d.sort(l);K(r);this.Ss();a=0;for(d=this.K.length;a<d;a++)h=this.K[a],h.$s(),h.Ik();c=!1;if(!this.Uf){for(q in this.Pe)if(this.Pe.hasOwnProperty(q)&&(f=this.b.mj(parseInt(q,10)))&&!f.C&&this.b.dn(f)){g=this.Pe[q];
a=0;for(d=g.length;a<d;a++){h=null;if(f.la.He&&(h=this.lj(g[a].w.l),!h))continue;h=this.b.ze(f.Fc,h,!1,0,0,!0);this.b.Ij(h,g[a]);c=!0;r.push(h)}K(g)}a=0;for(d=this.K.length;a<d;a++)this.K[a].d.sort(l),this.K[a].Gf=!0}c&&(this.b.ub(),this.b.iq());for(a=0;a<r.length;a++)if(h=r[a],h.type.Ub)for(d=h.eh(),f=0,g=h.type.hc.length;f<g;f++)q=h.type.hc[f],h.type!==q&&(q.d.length>d?h.siblings.push(q.d[d]):q.Fc&&(c=this.b.ze(q.Fc,h.g,!0,h.x,h.y,!0),this.b.ub(),q.Gk(),h.siblings.push(c),r.push(c)));a=0;for(d=
this.Fe.length;a<d;a++)h=this.Fe[a],f=this.b.n[h[1]],f.Ub||this.b.ze(this.Fe[a],null,!0);this.b.Og=null;this.b.ub();if(this.b.Ca&&!this.b.Ia)for(a=0,d=this.b.n.length;a<d;a++)q=this.b.n[a],!q.C&&q.d.length&&q.Bm&&q.Bm(this.b.Ca);if(this.b.nh)Ba(this.b.dj,r);else for(a=0,d=r.length;a<d;a++)h=r[a],this.b.trigger(Object.getPrototypeOf(h.type.la).e.si,h);K(r);this.b.nh||this.b.trigger(S.prototype.e.yn,null);this.Uf=!1};c.prototype.Zs=function(){var a,b,d,g,c;b=a=0;for(d=this.Fe.length;a<d;a++)g=this.Fe[a],
c=this.b.n[g[1]],c.global?c.Ub||this.b.ze(g,null,!0):(this.Fe[b]=g,b++);za(this.Fe,b)};c.prototype.Bw=function(){this.b.nh||this.b.trigger(S.prototype.e.Zr,null);this.b.Nl=!0;K(this.b.Jd.ec);var a,f,d,g,c,l;if(!this.Uf)for(a=0,f=this.K.length;a<f;a++)for(this.K[a].kn(),c=this.K[a].d,d=0,g=c.length;d<g;d++)l=c[d],l.type.global||this.b.dn(l.type)&&this.kw(l);a=0;for(f=this.K.length;a<f;a++){c=this.K[a].d;d=0;for(g=c.length;d<g;d++)l=c[d],l.type.global||this.b.pe(l);this.b.ub();K(c);this.K[a].Gf=!0}a=
0;for(f=this.b.n.length;a<f;a++)if(c=this.b.n[a],!(c.global||c.la.He||c.la.uk||c.C)){d=0;for(g=c.d.length;d<g;d++)this.b.pe(c.d[d]);this.b.ub()}b=!1;this.b.Nl=!1};new va(0,0,0,0);c.prototype.sd=function(a){var b,d=a,g=!1,c=!this.b.uc;c&&(this.b.Gj||(this.b.Gj=document.createElement("canvas"),b=this.b.Gj,b.width=this.b.B,b.height=this.b.A,this.b.cp=b.getContext("2d"),g=!0),b=this.b.Gj,d=this.b.cp,b.width!==this.b.B&&(b.width=this.b.B,g=!0),b.height!==this.b.A&&(b.height=this.b.A,g=!0),g&&this.b.qk(d,
this.b.Fa));d.globalAlpha=1;d.globalCompositeOperation="source-over";this.b.eo&&!this.Go()&&d.clearRect(0,0,this.b.B,this.b.A);var l,q,g=0;for(l=this.K.length;g<l;g++)q=this.K[g],q.visible&&0<q.opacity&&11!==q.wb&&(q.d.length||!q.ld)?q.sd(d):q.Ik();c&&a.drawImage(b,0,0,this.b.width,this.b.height)};c.prototype.bf=function(a){a.rq(!0);this.b.Oa||(this.b.Oa=a.tc(this.b.B,this.b.A,this.b.Fa));if(this.b.Oa.Ye!==this.b.B||this.b.Oa.Xe!==this.b.A)a.deleteTexture(this.b.Oa),this.b.Oa=a.tc(this.b.B,this.b.A,
this.b.Fa);a.Lc(this.b.Oa);this.b.uc||a.Bf(this.b.B,this.b.A);var b,d;for(b=this.K.length-1;0<=b;--b)d=this.K[b],d.visible&&1===d.opacity&&d.he&&0===d.wb&&(d.d.length||!d.ld)?d.bf(a):d.Ik();a.rq(!1)};c.prototype.ic=function(a){var b=0<this.aa.length||this.b.Gg||!this.b.uc||this.b.wa;if(b){this.b.Oa||(this.b.Oa=a.tc(this.b.B,this.b.A,this.b.Fa));if(this.b.Oa.Ye!==this.b.B||this.b.Oa.Xe!==this.b.A)a.deleteTexture(this.b.Oa),this.b.Oa=a.tc(this.b.B,this.b.A,this.b.Fa);a.Lc(this.b.Oa);this.b.uc||a.Bf(this.b.B,
this.b.A)}else this.b.Oa&&(a.Lc(null),a.deleteTexture(this.b.Oa),this.b.Oa=null);this.b.eo&&!this.Go()&&a.clear(0,0,0,0);var d,g,c;d=0;for(g=this.K.length;d<g;d++)c=this.K[d],c.visible&&0<c.opacity&&(c.d.length||!c.ld)?c.ic(a):c.Ik();b&&(0===this.aa.length||1===this.aa.length&&this.b.uc?(1===this.aa.length?(b=this.aa[0].index,a.cc(this.aa[0].Sa),a.yg(null,1/this.b.B,1/this.b.A,0,0,1,1,this.scale,this.j,0,0,this.b.B/2,this.b.A/2,this.b.kb.F,this.Ha[b]),a.gk(this.aa[0].Sa)&&(this.b.P=!0)):a.cc(0),this.b.uc||
a.Bf(this.b.width,this.b.height),a.Lc(null),a.qq(!1),a.Af(1),a.qc(this.b.Oa),a.oq(),a.Kc(),a.Cc(),b=this.b.width/2,d=this.b.height/2,a.Vh(-b,d,b,d,b,-d,-b,-d),a.qc(null),a.qq(!0)):this.Im(a,null,null,null))};c.prototype.bh=function(){return 0<this.aa.length||this.b.Gg||!this.b.uc||this.b.wa?this.b.Oa:null};c.prototype.Fo=function(){var a=this.K[0].jc(),b,d,g;b=1;for(d=this.K.length;b<d;b++)g=this.K[b],(0!==g.Wb||0!==g.Xb)&&g.jc()<a&&(a=g.jc());return a};c.prototype.mq=function(a){if(!this.Uq){var b=
1/this.Fo()*this.b.B/2;a>this.width-b&&(a=this.width-b);a<b&&(a=b)}this.scrollX!==a&&(this.scrollX=a,this.b.P=!0)};c.prototype.nq=function(a){if(!this.Uq){var b=1/this.Fo()*this.b.A/2;a>this.height-b&&(a=this.height-b);a<b&&(a=b)}this.scrollY!==a&&(this.scrollY=a,this.b.P=!0)};c.prototype.Ss=function(){this.mq(this.scrollX);this.nq(this.scrollY)};c.prototype.Im=function(a,b,d,g){var c=d?d.aa:b?b.aa:this.aa,l=1,q=0,k=0,n=0,h=this.b.B,w=this.b.A;d?(l=d.g.jc(),q=d.g.Wa(),k=d.g.ea,n=d.g.fa,h=d.g.ta,w=
d.g.ra):b&&(l=b.jc(),q=b.Wa(),k=b.ea,n=b.fa,h=b.ta,w=b.ra);var x=this.b.ql,p,B,r,t,I=0,V=1,X,R,D=this.b.B,L=this.b.A,ia=D/2,aa=L/2,y=b?b.Qe:this.Qe,v=b?b.Gm:this.Gm,C=0,E=0,H=0,G=0,O=D,ba=D,J=L,ja=L,ca=r=0;t=d?d.g.Wa():0;if(d){p=0;for(B=c.length;p<B;p++)r+=a.Au(c[p].Sa),ca+=a.Bu(c[p].Sa);G=d.Ba;C=b.Ea(G.left,G.top,!0,!0);H=b.Ea(G.left,G.top,!1,!0);O=b.Ea(G.right,G.bottom,!0,!0);J=b.Ea(G.right,G.bottom,!1,!0);0!==t&&(p=b.Ea(G.right,G.top,!0,!0),B=b.Ea(G.right,G.top,!1,!0),E=b.Ea(G.left,G.bottom,!0,
!0),G=b.Ea(G.left,G.bottom,!1,!0),t=Math.min(C,O,p,E),O=Math.max(C,O,p,E),C=t,t=Math.min(H,J,B,G),J=Math.max(H,J,B,G),H=t);C-=r;H-=ca;O+=r;J+=ca;v.left=C/D;v.top=1-H/L;v.right=O/D;v.bottom=1-J/L;E=C=sa(C);G=H=sa(H);ba=O=ta(O);ja=J=ta(J);E-=r;G-=ca;ba+=r;ja+=ca;0>C&&(C=0);0>H&&(H=0);O>D&&(O=D);J>L&&(J=L);0>E&&(E=0);0>G&&(G=0);ba>D&&(ba=D);ja>L&&(ja=L);y.left=C/D;y.top=1-H/L;y.right=O/D;y.bottom=1-J/L}else y.left=v.left=0,y.top=v.top=0,y.right=v.right=1,y.bottom=v.bottom=1;ca=d&&(a.Sh(c[0].Sa)||0!==
r||0!==ca||1!==d.opacity||d.type.la.Cp)||b&&!d&&1!==b.opacity;a.oq();if(ca){x[I]||(x[I]=a.tc(D,L,this.b.Fa));if(x[I].Ye!==D||x[I].Xe!==L)a.deleteTexture(x[I]),x[I]=a.tc(D,L,this.b.Fa);a.cc(0);a.Lc(x[I]);R=ja-G;a.clearRect(E,L-G-R,ba-E,R);d?d.ic(a):(a.qc(this.b.Za),a.Af(b.opacity),a.Kc(),a.translate(-ia,-aa),a.Cc(),a.Fd(C,J,O,J,O,H,C,H,y));v.left=v.top=0;v.right=v.bottom=1;d&&(t=y.top,y.top=y.bottom,y.bottom=t);I=1;V=0}a.Af(1);r=c.length-1;var Aa=a.Dm(c[r].Sa)||!b&&!d&&!this.b.uc;p=t=0;for(B=c.length;p<
B;p++){x[I]||(x[I]=a.tc(D,L,this.b.Fa));if(x[I].Ye!==D||x[I].Xe!==L)a.deleteTexture(x[I]),x[I]=a.tc(D,L,this.b.Fa);a.cc(c[p].Sa);t=c[p].index;a.gk(c[p].Sa)&&(this.b.P=!0);0!=p||ca?(a.yg(g,1/D,1/L,v.left,v.top,v.right,v.bottom,l,q,k,n,(k+h)/2,(n+w)/2,this.b.kb.F,d?d.Ha[t]:b?b.Ha[t]:this.Ha[t]),a.qc(null),p!==r||Aa?(a.Lc(x[I]),R=ja-G,X=L-G-R,a.clearRect(E,X,ba-E,R)):(d?a.Re(d.Gb,d.Bb):b&&a.Re(b.Gb,b.Bb),a.Lc(g)),a.qc(x[V]),a.Kc(),a.translate(-ia,-aa),a.Cc(),a.Fd(C,J,O,J,O,H,C,H,y),p!==r||Aa||a.qc(null)):
(a.Lc(x[I]),R=ja-G,X=L-G-R,a.clearRect(E,X,ba-E,R),d?(d.ob&&d.ob.T?(X=d.ob.T,V=1/X.width,X=1/X.height):(V=1/d.width,X=1/d.height),a.yg(g,V,X,v.left,v.top,v.right,v.bottom,l,q,k,n,(k+h)/2,(n+w)/2,this.b.kb.F,d.Ha[t]),d.ic(a)):(a.yg(g,1/D,1/L,0,0,1,1,l,q,k,n,(k+h)/2,(n+w)/2,this.b.kb.F,b?b.Ha[t]:this.Ha[t]),a.qc(b?this.b.Za:this.b.Oa),a.Kc(),a.translate(-ia,-aa),a.Cc(),a.Fd(C,J,O,J,O,H,C,H,y)),v.left=v.top=0,v.right=v.bottom=1,d&&!Aa&&(t=J,J=H,H=t));I=0===I?1:0;V=0===I?1:0}Aa&&(a.cc(0),d?a.Re(d.Gb,
d.Bb):b?a.Re(b.Gb,b.Bb):this.b.uc||(a.Bf(this.b.width,this.b.height),ia=this.b.width/2,aa=this.b.height/2,H=C=0,O=this.b.width,J=this.b.height),a.Lc(g),a.qc(x[V]),a.Kc(),a.translate(-ia,-aa),a.Cc(),d&&1===c.length&&!ca?a.Fd(C,H,O,H,O,J,C,J,y):a.Fd(C,J,O,J,O,H,C,H,y),a.qc(null))};c.prototype.lj=function(a){var b,d;b=0;for(d=this.K.length;b<d;b++)if(this.K[b].V===a)return this.K[b];return null};c.prototype.Fb=function(){var a,b,d,g={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.j,w:this.width,
h:this.height,fv:this.Uf,persist:this.Pe,fx:[],layers:{}};a=0;for(b=this.I.length;a<b;a++)d=this.I[a],g.fx.push({name:d.name,active:d.rc,params:this.Ha[d.index]});a=0;for(b=this.K.length;a<b;a++)d=this.K[a],g.layers[d.V.toString()]=d.Fb();return g};c.prototype.Vb=function(a){var b,d,g,c;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.Pe=a.persist;"undefined"!==typeof a.fv&&(this.Uf=a.fv);var l=a.fx;b=0;for(d=l.length;b<d;b++)if(g=this.tl(l[b].name))g.rc=
l[b].active,this.Ha[g.index]=l[b].params;this.md();b=a.layers;for(c in b)b.hasOwnProperty(c)&&(a=this.lj(parseInt(c,10)))&&a.Vb(b[c])};Ib=c;h.prototype.md=function(){K(this.aa);this.he=!0;var a,b,d;a=0;for(b=this.I.length;a<b;a++)d=this.I[a],d.rc&&(this.aa.push(d),d.dd||(this.he=!1))};h.prototype.tl=function(a){var b,d,g;b=0;for(d=this.I.length;b<d;b++)if(g=this.I[b],g.name===a)return g;return null};h.prototype.$s=function(){var a,b,d,g,c,l;b=a=0;for(d=this.xc.length;a<d;a++){g=this.xc[a];c=this.b.n[g[1]];
l=this.b.dn(c);c=!0;if(!l||this.lb.Uf){g=this.b.ze(g,this,!0);if(!g)continue;r.push(g);g.type.global&&(c=!1,this.Rg.push(g.uid))}c&&(this.xc[b]=this.xc[a],b++)}this.xc.length=b;this.b.ub();!this.b.p&&this.I.length&&(this.wb=this.Et);this.Pg=gb(this.wb);this.b.q&&hb(this,this.wb,this.b.q);this.gd=!0};h.prototype.wg=function(a,b){var d=Ea(this.d,a);0>d||(b&&this.Dc&&a.Yb&&a.Yb.right>=a.Yb.left&&(a.ka(),this.tb.update(a,a.Yb,null),a.Yb.set(0,0,-1,-1)),d===this.d.length-1?this.d.pop():(ya(this.d,d),this.Yh(d)),
this.gd=!0)};h.prototype.Mg=function(a,b){a.nd=this.d.length;this.d.push(a);b&&this.Dc&&a.Yb&&a.na();this.gd=!0};h.prototype.Pv=function(a){this.d.unshift(a);this.Yh(0)};h.prototype.vv=function(a,b,d){var g=a.wd();b=b.wd();ya(this.d,g);g<b&&b--;d&&b++;b===this.d.length?this.d.push(a):this.d.splice(b,0,a);this.Yh(g<b?g:b)};h.prototype.Yh=function(a){-1===this.oe?this.oe=a:a<this.oe&&(this.oe=a);this.gd=this.Gf=!0};h.prototype.kn=function(){if(this.Gf){-1===this.oe&&(this.oe=0);var a,b,d;if(this.Dc)for(a=
this.oe,b=this.d.length;a<b;++a)d=this.d[a],d.nd=a,this.tb.sv(d.Yb);else for(a=this.oe,b=this.d.length;a<b;++a)this.d[a].nd=a;this.Gf=!1;this.oe=-1}};h.prototype.jc=function(a){return this.xu()*(this.b.uc||a?this.b.Ng:1)};h.prototype.xu=function(){return(this.scale*this.lb.scale-1)*this.Jb+1};h.prototype.Wa=function(){return this.Sd?0:Ka(this.lb.j+this.j)};var a=[],d=[],w=[];h.prototype.zl=function(){this.kn();this.tb.jk(this.ea,this.fa,this.ta,this.ra,w);if(!w.length)return p();if(1===w.length){var a=
p();Ba(a,w[0]);K(w);return a}for(var b=!0;1<w.length;){for(var a=w,c=void 0,g=void 0,l=void 0,h=void 0,q=void 0,c=0,g=a.length;c<g-1;c+=2){var l=a[c],h=a[c+1],q=p(),k=l,n=h,r=q,N=0,x=0,M=0,B=k.length,F=n.length,Y=void 0,I=void 0;for(r.length=B+F;N<B&&x<F;++M)Y=k[N],I=n[x],Y.nd<I.nd?(r[M]=Y,++N):(r[M]=I,++x);for(;N<B;++N,++M)r[M]=k[N];for(;x<F;++x,++M)r[M]=n[x];b||(t(l),t(h));d.push(q)}1===g%2&&(b?(l=p(),Ba(l,a[g-1]),d.push(l)):d.push(a[g-1]));Ba(a,d);K(d);b=!1}a=w[0];K(w);return a};h.prototype.sd=
function(a){this.Gd=this.gj||1!==this.opacity||0!==this.wb;var b=this.b.canvas,d=a,c=!1;this.Gd&&(this.b.Fj||(this.b.Fj=document.createElement("canvas"),b=this.b.Fj,b.width=this.b.B,b.height=this.b.A,this.b.bp=b.getContext("2d"),c=!0),b=this.b.Fj,d=this.b.bp,b.width!==this.b.B&&(b.width=this.b.B,c=!0),b.height!==this.b.A&&(b.height=this.b.A,c=!0),c&&this.b.qk(d,this.b.Fa),this.ld&&d.clearRect(0,0,this.b.B,this.b.A));d.globalAlpha=1;d.globalCompositeOperation="source-over";this.ld||(d.fillStyle="rgb("+
this.Uc[0]+","+this.Uc[1]+","+this.Uc[2]+")",d.fillRect(0,0,this.b.B,this.b.A));d.save();this.Sd=!0;var c=this.Ta(0,0,!0,!0),l=this.Ta(0,0,!1,!0);this.Sd=!1;this.b.cd&&(c=Math.round(c),l=Math.round(l));this.lk(c,l,d);var h=this.jc();d.scale(h,h);d.translate(-c,-l);this.Dc?(this.pb.left=this.tb.Qb(this.ea),this.pb.top=this.tb.Rb(this.fa),this.pb.right=this.tb.Qb(this.ta),this.pb.bottom=this.tb.Rb(this.ra),this.gd||!this.pb.Tg(this.jg)?(t(this.ae),c=this.zl(),this.gd=!1,this.jg.Of(this.pb)):c=this.ae):
c=this.d;for(var q,k=null,l=0,h=c.length;l<h;++l)q=c[l],q!==k&&(this.zt(q,d),k=q);this.Dc&&(this.ae=c);d.restore();this.Gd&&(a.globalCompositeOperation=this.Pg,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};h.prototype.zt=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.ka();var d=a.Ba;d.right<this.ea||d.bottom<this.fa||d.left>this.ta||d.top>this.ra||(b.globalCompositeOperation=a.Pg,a.sd(b))}};h.prototype.Ik=function(){this.Sd=!0;var a=this.Ta(0,0,!0,!0),b=this.Ta(0,0,!1,!0);this.Sd=!1;this.b.cd&&
(a=Math.round(a),b=Math.round(b));this.lk(a,b,null)};h.prototype.lk=function(a,b,d){var c=this.jc();this.ea=a;this.fa=b;this.ta=a+1/c*this.b.B;this.ra=b+1/c*this.b.A;this.ea>this.ta&&(a=this.ea,this.ea=this.ta,this.ta=a);this.fa>this.ra&&(a=this.fa,this.fa=this.ra,this.ra=a);a=this.Wa();0!==a&&(d&&(d.translate(this.b.B/2,this.b.A/2),d.rotate(-a),d.translate(this.b.B/-2,this.b.A/-2)),this.ke.set(this.ea,this.fa,this.ta,this.ra),this.ke.offset((this.ea+this.ta)/-2,(this.fa+this.ra)/-2),this.Oq.wq(this.ke,
a),this.Oq.Yn(this.ke),this.ke.offset((this.ea+this.ta)/2,(this.fa+this.ra)/2),this.ea=this.ke.left,this.fa=this.ke.top,this.ta=this.ke.right,this.ra=this.ke.bottom)};h.prototype.bf=function(a){if(this.Gd=this.gj){this.b.Za||(this.b.Za=a.tc(this.b.B,this.b.A,this.b.Fa));if(this.b.Za.Ye!==this.b.B||this.b.Za.Xe!==this.b.A)a.deleteTexture(this.b.Za),this.b.Za=a.tc(this.b.B,this.b.A,this.b.Fa);a.Lc(this.b.Za)}this.Sd=!0;var b=this.Ta(0,0,!0,!0),d=this.Ta(0,0,!1,!0);this.Sd=!1;this.b.cd&&(b=Math.round(b),
d=Math.round(d));this.lk(b,d,null);b=this.jc();a.Kc();a.scale(b,b);a.mk(-this.Wa());a.translate((this.ea+this.ta)/-2,(this.fa+this.ra)/-2);a.Cc();this.Dc?(this.pb.left=this.tb.Qb(this.ea),this.pb.top=this.tb.Rb(this.fa),this.pb.right=this.tb.Qb(this.ta),this.pb.bottom=this.tb.Rb(this.ra),this.gd||!this.pb.Tg(this.jg)?(t(this.ae),b=this.zl(),this.gd=!1,this.jg.Of(this.pb)):b=this.ae):b=this.d;for(var c,l=null,d=b.length-1;0<=d;--d)c=b[d],c!==l&&(this.Bt(b[d],a),l=c);this.Dc&&(this.ae=b);this.ld||(this.al=
this.b.ef++,a.sk(this.al),a.pq(1,1,1),a.yo(),a.bw())};h.prototype.ic=function(a){var b=0,d=0;if(this.Gd=this.gj||1!==this.opacity||0<this.aa.length||0!==this.wb){this.b.Za||(this.b.Za=a.tc(this.b.B,this.b.A,this.b.Fa));if(this.b.Za.Ye!==this.b.B||this.b.Za.Xe!==this.b.A)a.deleteTexture(this.b.Za),this.b.Za=a.tc(this.b.B,this.b.A,this.b.Fa);a.Lc(this.b.Za);this.ld&&a.clear(0,0,0,0)}this.ld||(this.b.wa?(a.sk(this.al),a.pq(this.Uc[0]/255,this.Uc[1]/255,this.Uc[2]/255),a.yo(),a.uw()):a.clear(this.Uc[0]/
255,this.Uc[1]/255,this.Uc[2]/255,1));this.Sd=!0;var c=this.Ta(0,0,!0,!0),b=this.Ta(0,0,!1,!0);this.Sd=!1;this.b.cd&&(c=Math.round(c),b=Math.round(b));this.lk(c,b,null);c=this.jc();a.Kc();a.scale(c,c);a.mk(-this.Wa());a.translate((this.ea+this.ta)/-2,(this.fa+this.ra)/-2);a.Cc();this.Dc?(this.pb.left=this.tb.Qb(this.ea),this.pb.top=this.tb.Rb(this.fa),this.pb.right=this.tb.Qb(this.ta),this.pb.bottom=this.tb.Rb(this.ra),this.gd||!this.pb.Tg(this.jg)?(t(this.ae),b=this.zl(),this.gd=!1,this.jg.Of(this.pb)):
b=this.ae):b=this.d;var l,h,q=null,d=0;for(l=b.length;d<l;++d)h=b[d],h!==q&&(this.At(b[d],a),q=h);this.Dc&&(this.ae=b);this.Gd&&(b=this.aa.length?this.aa[0].Sa:0,d=this.aa.length?this.aa[0].index:0,0===this.aa.length||1===this.aa.length&&!a.Dm(b)&&1===this.opacity?(1===this.aa.length?(a.cc(b),a.yg(this.lb.bh(),1/this.b.B,1/this.b.A,0,0,1,1,c,this.Wa(),this.ea,this.fa,(this.ea+this.ta)/2,(this.fa+this.ra)/2,this.b.kb.F,this.Ha[d]),a.gk(b)&&(this.b.P=!0)):a.cc(0),a.Lc(this.lb.bh()),a.Af(this.opacity),
a.qc(this.b.Za),a.Re(this.Gb,this.Bb),a.Kc(),a.Cc(),c=this.b.B/2,b=this.b.A/2,a.Vh(-c,b,c,b,c,-b,-c,-b),a.qc(null)):this.lb.Im(a,this,null,this.lb.bh()))};h.prototype.At=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.ka();var d=a.Ba;d.right<this.ea||d.bottom<this.fa||d.left>this.ta||d.top>this.ra||(b.sk(a.ef),a.$q?this.Ct(a,b):(b.cc(0),b.Re(a.Gb,a.Bb),a.ic(b)))}};h.prototype.Bt=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.ka();var d=a.Ba;d.right<this.ea||d.bottom<this.fa||d.left>
this.ta||d.top>this.ra||(a.ef=this.b.ef++,0===a.wb&&1===a.opacity&&a.he&&a.bf&&(b.sk(a.ef),a.bf(b)))}};h.prototype.Ct=function(a,b){var d=a.aa[0].Sa,c=a.aa[0].index,l=this.jc();if(1!==a.aa.length||b.Dm(d)||b.Rv(d)||(a.j||a.g.Wa())&&b.Sh(d)||1!==a.opacity||a.type.la.Cp)this.lb.Im(b,this,a,this.Gd?this.b.Za:this.lb.bh()),b.Kc(),b.scale(l,l),b.mk(-this.Wa()),b.translate((this.ea+this.ta)/-2,(this.fa+this.ra)/-2),b.Cc();else{b.cc(d);b.Re(a.Gb,a.Bb);b.gk(d)&&(this.b.P=!0);var h=0,q=0,k=0,n=0;b.Sh(d)&&
(n=a.Ba,h=this.Ea(n.left,n.top,!0,!0),q=this.Ea(n.left,n.top,!1,!0),k=this.Ea(n.right,n.bottom,!0,!0),n=this.Ea(n.right,n.bottom,!1,!0),h=h/windowWidth,q=1-q/windowHeight,k=k/windowWidth,n=1-n/windowHeight);var w;a.ob&&a.ob.T?(w=a.ob.T,d=1/w.width,w=1/w.height):(d=1/a.width,w=1/a.height);b.yg(this.Gd?this.b.Za:this.lb.bh(),d,w,h,q,k,n,l,this.Wa(),this.ea,this.fa,(this.ea+this.ta)/2,(this.fa+this.ra)/2,this.b.kb.F,a.Ha[c]);a.ic(b)}};h.prototype.Ta=function(a,b,d,c){var l=this.b.devicePixelRatio;this.b.mf&&
(a*=l,b*=l);var l=this.b.Zp,h=this.b.$p,l=(this.lb.scrollX-l)*this.Wb+l,h=(this.lb.scrollY-h)*this.Xb+h,q=l,k=h,n=1/this.jc(!c);c?(q-=this.b.B*n/2,k-=this.b.A*n/2):(q-=this.b.width*n/2,k-=this.b.height*n/2);q+=a*n;k+=b*n;b=this.Wa();0!==b&&(q-=l,k-=h,a=Math.cos(b),b=Math.sin(b),c=q*a-k*b,k=k*a+q*b,q=c+l,k+=h);return d?q:k};h.prototype.Ea=function(a,b,d,c){var l=this.b.Zp,h=this.b.$p,q=(this.lb.scrollX-l)*this.Wb+l,k=(this.lb.scrollY-h)*this.Xb+h,h=q,l=k,n=this.Wa();if(0!==n){a-=q;b-=k;var w=Math.cos(-n),
n=Math.sin(-n),p=a*w-b*n;b=b*w+a*n;a=p+q;b+=k}q=1/this.jc(!c);c?(h-=this.b.B*q/2,l-=this.b.A*q/2):(h-=this.b.width*q/2,l-=this.b.height*q/2);h=(a-h)/q;l=(b-l)/q;a=this.b.devicePixelRatio;this.b.mf&&!c&&(h/=a,l/=a);return d?h:l};h.prototype.Fb=function(){var a,b,d,c={s:this.scale,a:this.j,vl:this.ea,vt:this.fa,vr:this.ta,vb:this.ra,v:this.visible,bc:this.Uc,t:this.ld,px:this.Wb,py:this.Xb,o:this.opacity,zr:this.Jb,fx:[],cg:this.Rg,instances:[]};a=0;for(b=this.I.length;a<b;a++)d=this.I[a],c.fx.push({name:d.name,
active:d.rc,params:this.Ha[d.index]});return c};h.prototype.Vb=function(a){var b,d,c;this.scale=a.s;this.j=a.a;this.ea=a.vl;this.fa=a.vt;this.ta=a.vr;this.ra=a.vb;this.visible=a.v;this.Uc=a.bc;this.ld=a.t;this.Wb=a.px;this.Xb=a.py;this.opacity=a.o;this.Jb=a.zr;this.Rg=a.cg||[];Ba(this.xc,this.Fq);var h=new ea;b=0;for(c=this.Rg.length;b<c;++b)h.add(this.Rg[b]);d=b=0;for(c=this.xc.length;b<c;++b)h.contains(this.xc[b][2])||(this.xc[d]=this.xc[b],++d);za(this.xc,d);d=a.fx;b=0;for(c=d.length;b<c;b++)if(a=
this.tl(d[b].name))a.rc=d[b].active,this.Ha[a.index]=d[b].params;this.md();this.d.sort(l);this.Gf=!0};Wb=h})();
(function(){function c(a,b){var d,e=a.length;switch(e){case 0:return!0;case 1:return a[0]===b[0];case 2:return a[0]===b[0]&&a[1]===b[1];default:for(d=0;d<e;d++)if(a[d]!==b[d])return!1;return!0}}function l(a,b){return a.index-b.index}function h(a){var b,d,e,f;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(l);a.length>=u.length&&(u.length=a.length+1);u[a.length]||(u[a.length]=[]);f=u[a.length];b=0;for(d=f.length;b<d;b++)if(e=f[b],c(a,e))return e;f.push(a);return a}
function p(a,b){this.b=a;this.Rq={};this.to={};this.Fl=!1;this.Jo=new ea;this.fl=[];this.Rk=[];this.name=b[0];var d=b[1];this.Ce=[];var e,f;e=0;for(f=d.length;e<f;e++)this.Lo(d[e],null,this.Ce)}function t(a){this.type=a;this.d=[];this.R=[];this.da=!0}function r(a,b,d){this.sheet=a;this.parent=b;this.b=a.b;this.qa=[];this.Se=[];this.Ho=this.Ck=this.$m=this.Jl=this.group=this.Dq=!1;this.ib=[];this.Qc=[];this.Nc=[];this.gh="";this.fh=this.Jl=this.group=!1;this.Oi=null;d[1]&&(this.gh=d[1][1].toLowerCase(),
this.group=!0,this.Jl=!!d[1][0],this.Oi=[],this.fh=this.Jl,this.b.Kf.push(this),this.b.nj[this.gh]=this);this.Ac=d[2];this.V=d[4];this.group||(this.b.Xn[this.V.toString()]=this);var e=d[5];a=0;for(b=e.length;a<b;a++){var f=new Xb(this,e[a]);f.index=a;this.ib.push(f);this.Rn(f.type)}e=d[6];a=0;for(b=e.length;a<b;a++)f=new Yb(this,e[a]),f.index=a,this.Qc.push(f);if(8===d.length)for(d=d[7],a=0,b=d.length;a<b;a++)this.sheet.Lo(d[a],this,this.Nc);this.Aj=!1;this.ib.length&&(this.Aj=null==this.ib[0].type&&
this.ib[0].qb==S.prototype.e.rn)}function b(a,b){var d,e,f;if(a&&(-1===b.indexOf(a)&&b.push(a),a.Ub))for(d=0,e=a.hc.length;d<e;d++)f=a.hc[d],a!==f&&-1===b.indexOf(f)&&b.push(f)}function a(a,b){this.sc=a;this.sheet=a.sheet;this.b=a.b;this.O=[];this.Ja=[];this.J={};this.index=-1;this.Kg=!1;this.qb=this.b.qe(b[1]);this.trigger=0<b[3];this.so=2===b[3];this.zd=b[4];this.sj=b[5];this.pv=b[6];this.V=b[7];this.b.xe[this.V.toString()]=this;-1===b[0]?(this.type=null,this.Ra=this.Mm,this.We=null,this.Vc=-1):
(this.type=this.b.n[b[0]],this.Ra=this.pv?this.iw:this.Lm,b[2]?(this.We=this.type.jj(b[2]),this.Vc=this.type.rl(b[2])):(this.We=null,this.Vc=-1),this.sc.parent&&this.sc.parent.tk());this.so&&(this.Ra=this.jw);if(10===b.length){var d,e,f=b[9];d=0;for(e=f.length;d<e;d++){var c=new Zb(this,f[d]);this.O.push(c)}this.Ja.length=f.length}}function d(a,b){this.sc=a;this.sheet=a.sheet;this.b=a.b;this.O=[];this.Ja=[];this.J={};this.index=-1;this.Kg=!1;this.qb=this.b.qe(b[1]);-1===b[0]?(this.type=null,this.Ra=
this.Mm,this.We=null,this.Vc=-1):(this.type=this.b.n[b[0]],this.Ra=this.Lm,b[2]?(this.We=this.type.jj(b[2]),this.Vc=this.type.rl(b[2])):(this.We=null,this.Vc=-1));this.V=b[3];this.b.se[this.V.toString()]=this;if(6===b.length){var d,e,f=b[5];d=0;for(e=f.length;d<e;d++){var c=new Zb(this,f[d]);this.O.push(c)}this.Ja.length=f.length}}function w(){q++;A.length===q&&A.push(new $b);return A[q]}function e(a,b){this.Jc=a;this.sc=a.sc;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.td=null;this.ie=0;this.get=
null;this.fo=0;this.lb=null;this.key=0;this.object=null;this.index=0;this.mi=this.Df=this.mi=this.Df=this.wo=this.gf=this.ni=null;this.Pc=!1;var d,e,f;switch(b[0]){case 0:case 7:this.td=new ac(this,b[1]);this.ie=0;this.get=this.Iu;break;case 1:this.td=new ac(this,b[1]);this.ie=0;this.get=this.Ju;break;case 5:this.td=new ac(this,b[1]);this.ie=0;this.get=this.Nu;break;case 3:case 8:this.fo=b[1];this.get=this.Gu;break;case 6:this.lb=this.b.Yl[b[1]];this.get=this.Ou;break;case 9:this.key=b[1];this.get=
this.Mu;break;case 4:this.object=this.b.n[b[1]];this.get=this.Pu;this.sc.Rn(this.object);this.Jc instanceof Yb?this.sc.tk():this.sc.parent&&this.sc.parent.tk();break;case 10:this.index=b[1];a.type&&a.type.C?(this.get=this.Ku,this.Pc=!0):this.get=this.Lu;break;case 11:this.ni=b[1];this.gf=null;this.get=this.Hu;break;case 2:case 12:this.wo=b[1];this.get=this.Fu;break;case 13:for(this.get=this.Qu,this.Df=[],this.mi=[],d=1,e=b.length;d<e;d++)f=new Zb(this.Jc,b[d]),this.Df.push(f),this.mi.push(0)}}function f(a,
b,d){this.sheet=a;this.parent=b;this.b=a.b;this.qa=[];this.name=d[1];this.Kk=d[2];this.Il=d[3];this.vh=!!d[4];this.zj=!!d[5];this.V=d[6];this.b.Ig[this.V.toString()]=this;this.data=this.Il;this.parent?(this.sf=this.vh||this.zj?-1:this.b.zw++,this.b.Os.push(this)):(this.sf=-1,this.b.Ns.push(this))}function m(a,b,d){this.sheet=a;this.parent=b;this.b=a.b;this.qa=[];this.ih=null;this.Wu=d[1];this.rc=!0}function g(){this.Hq=[];this.reset(null)}var u=[];p.prototype.toString=function(){return this.name};
p.prototype.Lo=function(a,b,d){switch(a[0]){case 0:a=new bc(this,b,a);if(a.Ac)for(d.push(a),d=0,b=a.ib.length;d<b;d++)a.ib[d].trigger&&this.Mo(a,d);else a.Vo()?this.Mo(a,0):d.push(a);break;case 1:a=new Tb(this,b,a);d.push(a);break;case 2:a=new cc(this,b,a),d.push(a)}};p.prototype.La=function(){var a,b;a=0;for(b=this.Ce.length;a<b;a++)this.Ce[a].La(a<b-1&&this.Ce[a+1].Aj)};p.prototype.hn=function(){K(this.fl);K(this.Rk);this.Qn(this);K(this.Rk)};p.prototype.Qn=function(a){var b,d,e,f,c=a.fl,g=a.Rk,
q=this.Jo.Ue();b=0;for(d=q.length;b<d;++b)e=q[b],f=e.ih,!e.rc||a===f||-1<g.indexOf(f)||(g.push(f),f.Qn(a),c.push(f))};p.prototype.Ra=function(a){this.b.iy||(this.Fl=!0,a||(this.b.Rl=!0));var b,d;b=0;for(d=this.Ce.length;b<d;b++){var e=this.Ce[b];e.Ra();this.b.$k(e.qa);this.b.Ee&&this.b.ub()}a||(this.b.Rl=!1)};p.prototype.Mo=function(a,b){a.Ac||this.b.Fk.push(a);var d,e,f=a.ib[b],c;f.type?c=f.type.name:c="system";var g=(d=f.so)?this.to:this.Rq;g[c]||(g[c]=[]);c=g[c];g=f.qb;if(d){if(f.O.length&&(f=
f.O[0],1===f.type&&2===f.td.type)){f=f.td.value.toLowerCase();d=0;for(e=c.length;d<e;d++)if(c[d].method==g){d=c[d].Ug;d[f]?d[f].push([a,b]):d[f]=[[a,b]];return}d={};d[f]=[[a,b]];c.push({method:g,Ug:d})}}else{d=0;for(e=c.length;d<e;d++)if(c[d].method==g){c[d].Ug.push([a,b]);return}T&&g===T.prototype.e.Jf?c.unshift({method:g,Ug:[[a,b]]}):c.push({method:g,Ug:[[a,b]]})}};Jb=p;t.prototype.El=function(){return this.da?this.type.d.length:this.d.length};t.prototype.wc=function(){return this.da?this.type.d:
this.d};t.prototype.Qh=function(a){a&&(a.b.Xa().Mb.Ac?(this.da&&(K(this.d),Ba(this.R,a.type.d),this.da=!1),a=this.R.indexOf(a),-1!==a&&(this.d.push(this.R[a]),this.R.splice(a,1))):(this.da=!1,K(this.d),this.d[0]=a))};pb=t;window._c2hh_="189BF63191E29A43747095FF656474172E7DF1B8";r.prototype.La=function(a){var b,d=this.parent;if(this.group)for(this.Ck=!0;d;){if(!d.group){this.Ck=!1;break}d=d.parent}this.$m=!this.Vo()&&(!this.parent||this.parent.group&&this.parent.Ck);this.Ho=!!a;this.Se=this.qa.slice(0);
for(d=this.parent;d;){a=0;for(b=d.qa.length;a<b;a++)this.Ls(d.qa[a]);d=d.parent}this.qa=h(this.qa);this.Se=h(this.Se);a=0;for(b=this.ib.length;a<b;a++)this.ib[a].La();a=0;for(b=this.Qc.length;a<b;a++)this.Qc[a].La();a=0;for(b=this.Nc.length;a<b;a++)this.Nc[a].La(a<b-1&&this.Nc[a+1].Aj)};r.prototype.ow=function(a){if(this.fh!==!!a){this.fh=!!a;var b;a=0;for(b=this.Oi.length;a<b;++a)this.Oi[a].Wq();0<b&&this.b.ja.ff&&this.b.ja.ff.hn()}};r.prototype.Rn=function(a){b(a,this.qa)};r.prototype.Ls=function(a){b(a,
this.Se)};r.prototype.tk=function(){this.Dq=!0;this.parent&&this.parent.tk()};r.prototype.Vo=function(){return this.ib.length?this.ib[0].trigger:!1};r.prototype.Ra=function(){var a,b,d=!1,e=this.b,f=this.b.Xa();f.Mb=this;var c=this.ib;this.Aj||(f.hl=!1);if(this.Ac){0===c.length&&(d=!0);f.Ua=0;for(a=c.length;f.Ua<a;f.Ua++)b=c[f.Ua],b.trigger||(b=b.Ra())&&(d=!0);(f.of=d)&&this.nk()}else{f.Ua=0;for(a=c.length;f.Ua<a;f.Ua++)if(b=c[f.Ua].Ra(),!b){f.of=!1;this.$m&&e.Ee&&e.ub();return}f.of=!0;this.nk()}this.Gt(f)};
r.prototype.Gt=function(a){a.of&&this.Ho&&(a.hl=!0);this.$m&&this.b.Ee&&this.b.ub()};r.prototype.gw=function(a){this.b.Xa().Mb=this;this.ib[a].Ra()&&(this.nk(),this.b.Xa().of=!0)};r.prototype.nk=function(){var a=this.b.Xa(),b;a.fc=0;for(b=this.Qc.length;a.fc<b;a.fc++)if(this.Qc[a.fc].Ra())return;this.lq()};r.prototype.dw=function(){var a=this.b.Xa(),b;for(b=this.Qc.length;a.fc<b;a.fc++)if(this.Qc[a.fc].Ra())return;this.lq()};r.prototype.lq=function(){if(this.Nc.length){var a,b,d,e,f=this.Nc.length-
1;this.b.ik(this);if(this.Dq)for(a=0,b=this.Nc.length;a<b;a++)d=this.Nc[a],(e=!this.Ck||!this.group&&a<f)&&this.b.hk(d.qa),d.Ra(),e?this.b.yf(d.qa):this.b.$k(d.qa);else for(a=0,b=this.Nc.length;a<b;a++)this.Nc[a].Ra();this.b.dk()}};r.prototype.hw=function(){var a=this.b.Xa();a.Mb=this;var b=!1,d;a.Ua=0;for(d=this.ib.length;a.Ua<d;a.Ua++)if(this.ib[a.Ua].Ra())b=!0;else if(!this.Ac)return!1;return this.Ac?b:!0};r.prototype.ew=function(){this.b.Vg++;var a=this.b.Xa().Ua,b=this.b.ik(this);if(!this.Ac)for(b.Ua=
a+1,a=this.ib.length;b.Ua<a;b.Ua++)if(!this.ib[b.Ua].Ra()){this.b.dk();return}this.nk();this.b.dk()};r.prototype.hv=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.ib[b].type===a.type)return!1;return!0};bc=r;a.prototype.La=function(){var a,b,d;a=0;for(b=this.O.length;a<b;a++)d=this.O[a],d.La(),d.Pc&&(this.Kg=!0)};a.prototype.jw=function(){return!0};a.prototype.Mm=function(){var a,b;a=0;for(b=this.O.length;a<b;a++)this.Ja[a]=this.O[a].get();return Va(this.qb.apply(this.b.Jd,this.Ja),
this.sj)};a.prototype.iw=function(){var a,b;a=0;for(b=this.O.length;a<b;a++)this.Ja[a]=this.O[a].get();a=this.qb.apply(this.We?this.We:this.type,this.Ja);this.type.Tc();return a};a.prototype.Lm=function(){var a,b,d,e,f,c,g,q,l=this.type,h=l.W(),m=this.sc.Ac&&!this.trigger;b=0;var w=l.Ub,u=l.C,p=l.Ud,r=this.Vc,t=-1<r,A=this.Kg,y=this.O,v=this.Ja,C=this.sj,E=this.qb,H;if(A)for(b=0,f=y.length;b<f;++b)c=y[b],c.Pc||(v[b]=c.get(0));else for(b=0,f=y.length;b<f;++b)v[b]=y[b].get(0);if(h.da){K(h.d);K(h.R);
H=l.d;a=0;for(e=H.length;a<e;++a){q=H[a];if(A)for(b=0,f=y.length;b<f;++b)c=y[b],c.Pc&&(v[b]=c.get(a));t?(b=0,u&&(b=q.type.Tf[p]),b=E.apply(q.H[r+b],v)):b=E.apply(q,v);(g=Va(b,C))?h.d.push(q):m&&h.R.push(q)}l.finish&&l.finish(!0);h.da=!1;l.Tc();return h.El()}d=0;H=(g=m&&!this.sc.hv(this))?h.R:h.d;var G=!1;a=0;for(e=H.length;a<e;++a){q=H[a];if(A)for(b=0,f=y.length;b<f;++b)c=y[b],c.Pc&&(v[b]=c.get(a));t?(b=0,u&&(b=q.type.Tf[p]),b=E.apply(q.H[r+b],v)):b=E.apply(q,v);if(Va(b,C))if(G=!0,g){if(h.d.push(q),
w)for(b=0,f=q.siblings.length;b<f;b++)c=q.siblings[b],c.type.W().d.push(c)}else{H[d]=q;if(w)for(b=0,f=q.siblings.length;b<f;b++)c=q.siblings[b],c.type.W().d[d]=c;d++}else if(g){H[d]=q;if(w)for(b=0,f=q.siblings.length;b<f;b++)c=q.siblings[b],c.type.W().R[d]=c;d++}else if(m&&(h.R.push(q),w))for(b=0,f=q.siblings.length;b<f;b++)c=q.siblings[b],c.type.W().R.push(c)}za(H,d);if(w)for(u=l.hc,a=0,e=u.length;a<e;a++)q=u[a].W(),g?za(q.R,d):za(q.d,d);d=G;if(g&&!G)for(a=0,e=h.d.length;a<e;a++){q=h.d[a];if(A)for(b=
0,f=y.length;b<f;b++)c=y[b],c.Pc&&(v[b]=c.get(a));b=t?E.apply(q.H[r],v):E.apply(q,v);if(Va(b,C)){G=!0;break}}l.finish&&l.finish(d||m);return m?G:h.El()};Xb=a;d.prototype.La=function(){var a,b,d;a=0;for(b=this.O.length;a<b;a++)d=this.O[a],d.La(),d.Pc&&(this.Kg=!0)};d.prototype.Mm=function(){var a=this.b,b,d,e=this.O,f=this.Ja;b=0;for(d=e.length;b<d;++b)f[b]=e[b].get();return this.qb.apply(a.Jd,f)};d.prototype.Lm=function(){var a=this.type,b=this.Vc,d=a.Ud,e=this.Kg,f=this.O,c=this.Ja,g=this.qb,q=a.W().wc(),
a=a.C,l=-1<b,h,m,w,u,p,r;if(e)for(m=0,u=f.length;m<u;++m)p=f[m],p.Pc||(c[m]=p.get(0));else for(m=0,u=f.length;m<u;++m)c[m]=f[m].get(0);h=0;for(w=q.length;h<w;++h){r=q[h];if(e)for(m=0,u=f.length;m<u;++m)p=f[m],p.Pc&&(c[m]=p.get(h));l?(m=0,a&&(m=r.type.Tf[d]),g.apply(r.H[b+m],c)):g.apply(r,c)}return!1};Yb=d;var A=[],q=-1;e.prototype.La=function(){var a,b;if(11===this.type)this.gf=this.b.Co(this.ni,this.sc.parent);else if(13===this.type)for(a=0,b=this.Df.length;a<b;a++)this.Df[a].La();this.td&&this.td.La()};
e.prototype.uv=function(a){this.Pc||!a||a.la.uk||(this.Pc=!0)};e.prototype.uq=function(){this.Pc=!0};e.prototype.Iu=function(a){this.ie=a||0;a=w();this.td.get(a);q--;return a.data};e.prototype.Ju=function(a){this.ie=a||0;a=w();this.td.get(a);q--;return z(a.data)?a.data:""};e.prototype.Pu=function(){return this.object};e.prototype.Gu=function(){return this.fo};e.prototype.Nu=function(a){this.ie=a||0;a=w();this.td.get(a);q--;return a.jb()?this.b.Vd(a.data):this.b.$g(a.data)};e.prototype.Ou=function(){return this.lb};
e.prototype.Mu=function(){return this.key};e.prototype.Lu=function(){return this.index};e.prototype.Ku=function(a){a=a||0;var b=this.Jc.type,d=null,d=b.W(),e=d.wc();if(e.length)d=e[a%e.length].type;else if(d.R.length)d=d.R[a%d.R.length].type;else if(b.d.length)d=b.d[a%b.d.length].type;else return 0;return this.index+d.bj[b.Ud]};e.prototype.Hu=function(){return this.gf};e.prototype.Fu=function(){return this.wo};e.prototype.Qu=function(){var a,b;a=0;for(b=this.Df.length;a<b;a++)this.mi[a]=this.Df[a].get();
return this.mi};Zb=e;f.prototype.La=function(){this.qa=h(this.qa)};f.prototype.Cf=function(a){var b=this.b.Bo();this.parent&&!this.vh&&b?(this.sf>=b.length&&(b.length=this.sf+1),b[this.sf]=a):this.data=a};f.prototype.dh=function(){var a=this.b.Bo();return!this.parent||this.vh||!a||this.zj?this.data:this.sf>=a.length||"undefined"===typeof a[this.sf]?this.Il:a[this.sf]};f.prototype.Ra=function(){!this.parent||this.vh||this.zj||this.Cf(this.Il)};Tb=f;m.prototype.toString=function(){return"include:"+
this.ih.toString()};m.prototype.La=function(){this.ih=this.b.jl[this.Wu];this.sheet.Jo.add(this);this.qa=h(this.qa);for(var a=this.parent;a;)a.group&&a.Oi.push(this),a=a.parent;this.Wq()};m.prototype.Ra=function(){this.parent&&this.b.Uh(this.b.n);this.ih.Fl||this.ih.Ra(!0);this.parent&&this.b.yf(this.b.n)};m.prototype.Wq=function(){for(var a=this.parent;a;){if(a.group&&!a.fh){this.rc=!1;return}a=a.parent}this.rc=!0};cc=m;g.prototype.reset=function(a){this.Mb=a;this.fc=this.Ua=0;K(this.Hq);this.hl=
this.of=!1};Sb=g})();
(function(){function c(b,a){this.Jc=b;this.b=b.b;this.type=a[0];this.get=[this.Yt,this.Ut,this.gu,this.ju,this.Jt,this.hu,this.bu,this.Rt,this.au,this.fu,this.Kt,this.eu,this.St,this.cu,this.Zt,this.$t,this.Vt,this.Wt,this.Qt,this.iu,this.du,this.Xt,this.Pt,this.Tt][this.type];var d=null;this.be=this.O=this.Ja=this.qb=this.Bk=this.second=this.first=this.value=null;this.Vc=-1;this.Yc=null;this.br=-1;this.gf=this.ni=null;this.xg=!1;switch(this.type){case 0:case 1:case 2:this.value=a[1];break;case 3:this.first=
new ac(b,a[1]);break;case 18:this.first=new ac(b,a[1]);this.second=new ac(b,a[2]);this.Bk=new ac(b,a[3]);break;case 19:this.qb=this.b.qe(a[1]);this.qb!==S.prototype.xa.random&&this.qb!==S.prototype.xa.Ws||this.Jc.uq();this.Ja=[];this.O=[];3===a.length?(d=a[2],this.Ja.length=d.length+1):this.Ja.length=1;break;case 20:this.be=this.b.n[a[1]];this.Vc=-1;this.qb=this.b.qe(a[2]);this.xg=a[3];fc.Function&&this.qb===fc.Function.prototype.xa.Ww&&this.Jc.uq();a[4]?this.Yc=new ac(b,a[4]):this.Yc=null;this.Ja=
[];this.O=[];6===a.length?(d=a[5],this.Ja.length=d.length+1):this.Ja.length=1;break;case 21:this.be=this.b.n[a[1]];this.xg=a[2];a[3]?this.Yc=new ac(b,a[3]):this.Yc=null;this.br=a[4];break;case 22:this.be=this.b.n[a[1]];this.be.jj(a[2]);this.Vc=this.be.rl(a[2]);this.qb=this.b.qe(a[3]);this.xg=a[4];a[5]?this.Yc=new ac(b,a[5]):this.Yc=null;this.Ja=[];this.O=[];7===a.length?(d=a[6],this.Ja.length=d.length+1):this.Ja.length=1;break;case 23:this.ni=a[1],this.gf=null}this.Jc.uv(this.be);4<=this.type&&17>=
this.type&&(this.first=new ac(b,a[1]),this.second=new ac(b,a[2]));if(d){var c,e;c=0;for(e=d.length;c<e;c++)this.O.push(new ac(b,d[c]))}}function l(){++r;t.length===r&&t.push(new $b);return t[r]}function h(b,a,d){var c,e;c=0;for(e=b.length;c<e;++c)b[c].get(d),a[c+1]=d.data}function p(b,a){this.type=b||dc.If;this.data=a||0;this.wf=null;this.type==dc.If&&(this.data=Math.floor(this.data))}c.prototype.La=function(){23===this.type&&(this.gf=this.Jc.b.Co(this.ni,this.Jc.sc.parent));this.first&&this.first.La();
this.second&&this.second.La();this.Bk&&this.Bk.La();this.Yc&&this.Yc.La();if(this.O){var b,a;b=0;for(a=this.O.length;b<a;b++)this.O[b].La()}};var t=[],r=-1;c.prototype.iu=function(b){var a=this.O,d=this.Ja;d[0]=b;b=l();h(a,d,b);--r;this.qb.apply(this.b.Jd,d)};c.prototype.du=function(b){var a=this.be,d=this.Ja,c=this.O,e=this.Yc,f=this.qb,m=this.Jc.ie,g=a.W(),u=g.wc();if(!u.length)if(g.R.length)u=g.R;else{this.xg?b.$b(""):b.ya(0);return}d[0]=b;b.wf=a;b=l();h(c,d,b);e&&(e.get(b),b.jb()&&(m=b.data,u=
a.d));--r;a=u.length;if(m>=a||m<=-a)m%=a;0>m&&(m+=a);f.apply(u[m],d)};c.prototype.Pt=function(b){var a=this.be,d=this.Ja,c=this.O,e=this.Yc,f=this.Vc,m=this.qb,g=this.Jc.ie,u=a.W(),p=u.wc();if(!p.length)if(u.R.length)p=u.R;else{this.xg?b.$b(""):b.ya(0);return}d[0]=b;b.wf=a;b=l();h(c,d,b);e&&(e.get(b),b.jb()&&(g=b.data,p=a.d));--r;c=p.length;if(g>=c||g<=-c)g%=c;0>g&&(g+=c);g=p[g];p=0;a.C&&(p=g.type.Tf[a.Ud]);m.apply(g.H[f+p],d)};c.prototype.Xt=function(b){var a=this.Yc,d=this.be,c=this.br,e=this.Jc.ie,
f=d.W(),h=f.wc();if(!h.length)if(f.R.length)h=f.R;else{this.xg?b.$b(""):b.ya(0);return}if(a){f=l();a.get(f);if(f.jb()){e=f.data;h=d.d;0!==h.length&&(e%=h.length,0>e&&(e+=h.length));e=d.xl(e);d=e.Ya[c];z(d)?b.$b(d):b.r(d);--r;return}--r}a=h.length;if(e>=a||e<=-a)e%=a;0>e&&(e+=a);e=h[e];h=0;d.C&&(h=e.type.bj[d.Ud]);d=e.Ya[c+h];z(d)?b.$b(d):b.r(d)};c.prototype.Yt=function(b){b.type=dc.If;b.data=this.value};c.prototype.Ut=function(b){b.type=dc.Hf;b.data=this.value};c.prototype.gu=function(b){b.type=dc.String;
b.data=this.value};c.prototype.ju=function(b){this.first.get(b);b.jb()&&(b.data=-b.data)};c.prototype.Jt=function(b){this.first.get(b);var a=l();this.second.get(a);b.jb()&&a.jb()&&(b.data+=a.data,a.ag()&&b.lg());--r};c.prototype.hu=function(b){this.first.get(b);var a=l();this.second.get(a);b.jb()&&a.jb()&&(b.data-=a.data,a.ag()&&b.lg());--r};c.prototype.bu=function(b){this.first.get(b);var a=l();this.second.get(a);b.jb()&&a.jb()&&(b.data*=a.data,a.ag()&&b.lg());--r};c.prototype.Rt=function(b){this.first.get(b);
var a=l();this.second.get(a);b.jb()&&a.jb()&&(b.data/=a.data,b.lg());--r};c.prototype.au=function(b){this.first.get(b);var a=l();this.second.get(a);b.jb()&&a.jb()&&(b.data%=a.data,a.ag()&&b.lg());--r};c.prototype.fu=function(b){this.first.get(b);var a=l();this.second.get(a);b.jb()&&a.jb()&&(b.data=Math.pow(b.data,a.data),a.ag()&&b.lg());--r};c.prototype.Kt=function(b){this.first.get(b);var a=l();this.second.get(a);a.eg()||b.eg()?this.Mt(b,a):this.Lt(b,a);--r};c.prototype.Mt=function(b,a){b.eg()&&
a.eg()?this.Ot(b,a):this.Nt(b,a)};c.prototype.Ot=function(b,a){b.data+=a.data};c.prototype.Nt=function(b,a){b.eg()?b.data+=(Math.round(1E10*a.data)/1E10).toString():b.$b(b.data.toString()+a.data)};c.prototype.Lt=function(b,a){b.ya(b.data&&a.data?1:0)};c.prototype.eu=function(b){this.first.get(b);var a=l();this.second.get(a);b.jb()&&a.jb()&&(b.data||a.data?b.ya(1):b.ya(0));--r};c.prototype.Qt=function(b){this.first.get(b);b.data?this.second.get(b):this.Bk.get(b)};c.prototype.St=function(b){this.first.get(b);
var a=l();this.second.get(a);b.ya(b.data===a.data?1:0);--r};c.prototype.cu=function(b){this.first.get(b);var a=l();this.second.get(a);b.ya(b.data!==a.data?1:0);--r};c.prototype.Zt=function(b){this.first.get(b);var a=l();this.second.get(a);b.ya(b.data<a.data?1:0);--r};c.prototype.$t=function(b){this.first.get(b);var a=l();this.second.get(a);b.ya(b.data<=a.data?1:0);--r};c.prototype.Vt=function(b){this.first.get(b);var a=l();this.second.get(a);b.ya(b.data>a.data?1:0);--r};c.prototype.Wt=function(b){this.first.get(b);
var a=l();this.second.get(a);b.ya(b.data>=a.data?1:0);--r};c.prototype.Tt=function(b){var a=this.gf.dh();la(a)?b.r(a):b.$b(a)};ac=c;p.prototype.ag=function(){return this.type===dc.Hf};p.prototype.jb=function(){return this.type===dc.If||this.type===dc.Hf};p.prototype.eg=function(){return this.type===dc.String};p.prototype.lg=function(){this.ag()||(this.eg()&&(this.data=parseFloat(this.data)),this.type=dc.Hf)};p.prototype.ya=function(b){this.type=dc.If;this.data=Math.floor(b)};p.prototype.r=function(b){this.type=
dc.Hf;this.data=b};p.prototype.$b=function(b){this.type=dc.String;this.data=b};p.prototype.vw=function(b){la(b)?(this.type=dc.Hf,this.data=b):z(b)?(this.type=dc.String,this.data=b.toString()):(this.type=dc.If,this.data=0)};$b=p;dc={If:0,Hf:1,String:2}})();function S(c){this.b=c;this.ec=[]}
S.prototype.Fb=function(){var c={},l,h,p,t,r,b,a,d;c.waits=[];var w=c.waits,e;l=0;for(h=this.ec.length;l<h;l++){b=this.ec[l];e={t:b.time,st:b.Bq,s:b.Sm,ev:b.Rf.V,sm:[],sols:{}};b.Rf.Qc[b.fc]&&(e.act=b.Rf.Qc[b.fc].V);p=0;for(t=b.qa.length;p<t;p++)e.sm.push(b.qa[p].V);for(r in b.Ob)if(b.Ob.hasOwnProperty(r)){a=this.b.n[parseInt(r,10)];d={sa:b.Ob[r].ok,insts:[]};p=0;for(t=b.Ob[r].Wd.length;p<t;p++)d.insts.push(b.Ob[r].Wd[p].uid);e.sols[a.V.toString()]=d}w.push(e)}return c};
S.prototype.Vb=function(c){c=c.waits;var l,h,p,t,r,b,a,d,w,e,f;K(this.ec);l=0;for(h=c.length;l<h;l++)if(b=c[l],d=this.b.Xn[b.ev.toString()]){w=-1;p=0;for(t=d.Qc.length;p<t;p++)if(d.Qc[p].V===b.act){w=p;break}if(-1!==w){a={Ob:{},qa:[],gl:!1};a.time=b.t;a.Bq=b.st||"";a.Sm=!!b.s;a.Rf=d;a.fc=w;p=0;for(t=b.sm.length;p<t;p++)(d=this.b.mj(b.sm[p]))&&a.qa.push(d);for(r in b.sols)if(b.sols.hasOwnProperty(r)&&(d=this.b.mj(parseInt(r,10)))){w=b.sols[r];e={ok:w.sa,Wd:[]};p=0;for(t=w.insts.length;p<t;p++)(f=this.b.ah(w.insts[p]))&&
e.Wd.push(f);a.Ob[d.index.toString()]=e}this.ec.push(a)}}};
(function(){function c(){}function l(){}function h(){}var p=S.prototype;c.prototype.sr=function(){return!0};c.prototype.yn=function(){return!0};c.prototype.Zr=function(){return!0};c.prototype.kr=function(b,a,d){return ec(b,a,d)};c.prototype.rr=function(b){var a=this.b.kj(),d=a.J.Every_lastTime||0,c=this.b.kb.F;"undefined"===typeof a.J.Every_seconds&&(a.J.Every_seconds=b);var e=a.J.Every_seconds;if(c>=d+e)return a.J.Every_lastTime=d+e,c>=a.J.Every_lastTime+.04&&(a.J.Every_lastTime=c),a.J.Every_seconds=
b,!0;c<d-.1&&(a.J.Every_lastTime=c);return!1};c.prototype.lr=function(b,a,d){return ec(b.dh(),a,d)};c.prototype.rn=function(){var b=this.b.Xa();return b.hl?!1:!b.of};c.prototype.zn=function(){return!0};c.prototype.Nr=function(){return!0};c.prototype.Ok=function(){return!0};c.prototype.Fn=function(){return!0};c.prototype.$r=function(){return!0};c.prototype.vi=function(){return!0};c.prototype.fr=function(b,a,d){return Oa(Q(b),Q(d))<=Q(a)};c.prototype.Br=function(b,a){return Qa(Q(b),Q(a))};c.prototype.Ar=
function(b,a,d){b=Ma(b);a=Ma(a);d=Ma(d);return Qa(d,a)?Qa(b,a)&&!Qa(b,d):!(!Qa(b,a)&&Qa(b,d))};p.e=new c;l.prototype.xr=function(b){this.b.wh||this.b.Og||(this.b.Og=b)};l.prototype.pr=function(b,a,d,c){if(a&&b&&(a=this.b.io(b,a,d,c))){this.b.$c++;var e;this.b.trigger(Object.getPrototypeOf(b.la).e.si,a);if(a.Ub)for(d=0,c=a.siblings.length;d<c;d++)e=a.siblings[d],this.b.trigger(Object.getPrototypeOf(e.type.la).e.si,e);this.b.$c--;b=b.W();b.da=!1;K(b.d);b.d[0]=a;if(a.Ub)for(d=0,c=a.siblings.length;d<
c;d++)e=a.siblings[d],b=e.type.W(),b.da=!1,K(b.d),b.d[0]=e}};l.prototype.xs=function(b,a){0===b.Kk?la(a)?b.Cf(a):b.Cf(parseFloat(a)):1===b.Kk&&b.Cf(a.toString())};l.prototype.er=function(b,a){0===b.Kk?la(a)?b.Cf(b.dh()+a):b.Cf(b.dh()+parseFloat(a)):1===b.Kk&&b.Cf(b.dh()+a.toString())};var t=[],r=[];l.prototype.Ds=function(b){if(!(0>b)){var a,d,c,e=this.b.Xa(),f;t.length?f=t.pop():f={Ob:{},qa:[]};f.gl=!1;f.time=this.b.kb.F+b;f.Bq="";f.Sm=!1;f.Rf=e.Mb;f.fc=e.fc+1;b=0;for(a=this.b.n.length;b<a;b++)c=
this.b.n[b],d=c.W(),d.da&&-1===e.Mb.qa.indexOf(c)||(f.qa.push(c),c=void 0,r.length?c=r.pop():c={Wd:[]},c.ok=!1,c.ok=d.da,Ba(c.Wd,d.d),f.Ob[b.toString()]=c);this.ec.push(f);return!0}};p.L=new l;h.prototype["int"]=function(b,a){z(a)?(b.ya(parseInt(a,10)),isNaN(b.data)&&(b.data=0)):b.ya(a)};h.prototype["float"]=function(b,a){z(a)?(b.r(parseFloat(a)),isNaN(b.data)&&(b.data=0)):b.r(a)};h.prototype.random=function(b,a,d){void 0===d?b.r(Math.random()*a):b.r(Math.random()*(d-a)+a)};h.prototype.sqrt=function(b,
a){b.r(Math.sqrt(a))};h.prototype.abs=function(b,a){b.r(Math.abs(a))};h.prototype.round=function(b,a){b.ya(Math.round(a))};h.prototype.floor=function(b,a){b.ya(Math.floor(a))};h.prototype.ceil=function(b,a){b.ya(Math.ceil(a))};h.prototype.sin=function(b,a){b.r(Math.sin(Q(a)))};h.prototype.cos=function(b,a){b.r(Math.cos(Q(a)))};h.prototype.tan=function(b,a){b.r(Math.tan(Q(a)))};h.prototype.asin=function(b,a){b.r(Ha(Math.asin(a)))};h.prototype.acos=function(b,a){b.r(Ha(Math.acos(a)))};h.prototype.atan=
function(b,a){b.r(Ha(Math.atan(a)))};h.prototype.exp=function(b,a){b.r(Math.exp(a))};h.prototype.log10=function(b,a){b.r(Math.log(a)/Math.LN10)};h.prototype.max=function(b){var a=arguments[1];"number"!==typeof a&&(a=0);var d,c,e;d=2;for(c=arguments.length;d<c;d++)e=arguments[d],"number"===typeof e&&a<e&&(a=e);b.r(a)};h.prototype.min=function(b){var a=arguments[1];"number"!==typeof a&&(a=0);var d,c,e;d=2;for(c=arguments.length;d<c;d++)e=arguments[d],"number"===typeof e&&a>e&&(a=e);b.r(a)};h.prototype.cf=
function(b){b.r(this.b.cf)};h.prototype.Eg=function(b){b.r(this.b.Eg)};h.prototype.time=function(b){b.r(this.b.kb.F)};h.prototype.jd=function(b){b.ya(this.b.jd)};h.prototype.Sj=function(b){b.ya(this.b.Sj)};h.prototype.pl=function(b){b.ya(this.b.pl)};h.prototype.j=function(b,a,d,c,e){b.r(Ha(Na(a,d,c,e)))};h.prototype.left=function(b,a,d){b.$b(z(a)?a.substr(0,d):"")};h.prototype.right=function(b,a,d){b.$b(z(a)?a.substr(a.length-d):"")};h.prototype.replace=function(b,a,d,c){z(a)&&z(d)&&z(c)?b.$b(a.replace(new RegExp(cb(d),
"gi"),c)):b.$b(z(a)?a:"")};h.prototype.trim=function(b,a){b.$b(z(a)?a.trim():"")};h.prototype.Ws=function(b){var a=sa(Math.random()*(arguments.length-1));b.vw(arguments[a+1])};h.prototype.bl=function(b){b.r(this.b.bl/1E3)};h.prototype.Lj=function(b){b.r(this.b.Lj)};p.xa=new h;p.fw=function(){var b,a,d,c,e,f,l=this.b.Xa();b=0;for(d=this.ec.length;b<d;b++){c=this.ec[b];if(-1===c.time){if(!c.Sm)continue}else if(c.time>this.b.kb.F)continue;l.Mb=c.Rf;l.fc=c.fc;l.Ua=0;for(a in c.Ob)c.Ob.hasOwnProperty(a)&&
(e=this.b.n[parseInt(a,10)].W(),f=c.Ob[a],e.da=f.ok,Ba(e.d,f.Wd),e=f,K(e.Wd),r.push(e));c.Rf.dw();this.b.$k(c.qa);c.gl=!0}a=b=0;for(d=this.ec.length;b<d;b++)c=this.ec[b],this.ec[a]=c,c.gl?(Xa(c.Ob),K(c.qa),t.push(c)):a++;za(this.ec,a)}})();
(function(){ob=function(c,h){var p=c[1],t=c[3],r=c[4],b=c[5],a=c[6],d=c[7],w=c[8];h.e||(h.e={});h.L||(h.L={});h.xa||(h.xa={});var e=h.e,f=h.L,m=h.xa;t&&(e.nr=function(a,b){return ec(this.x,a,b)},e.or=function(a,b){return ec(this.y,a,b)},e.dx=function(){var a=this.g;this.ka();var b=this.Ba;return!(b.right<a.ea||b.bottom<a.fa||b.left>a.ta||b.top>a.ra)},e.Er=function(){this.ka();var a=this.Ba,b=this.b.ja;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},e.qx=function(a,b,d){var e=this.W(),
c=e.wc();if(!c.length)return!1;var f=c[0],l=f,h=Sa(f.x,f.y,b,d),m,p,r;m=1;for(p=c.length;m<p;m++)if(f=c[m],r=Sa(f.x,f.y,b,d),0===a&&r<h||1===a&&r>h)h=r,l=f;e.Qh(l);return!0},f.Ix=function(a){this.x!==a&&(this.x=a,this.na())},f.Jx=function(a){this.y!==a&&(this.y=a,this.na())},f.ts=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.na()},f.Gx=function(a,b){var d=a.yu(this);if(d){var e;d.wl?(e=d.wl(b,!0),d=d.wl(b,!1)):(e=d.x,d=d.y);if(this.x!==e||this.y!==d)this.x=e,this.y=d,this.na()}},
f.jx=function(a){0!==a&&(this.x+=Math.cos(this.j)*a,this.y+=Math.sin(this.j)*a,this.na())},f.ix=function(a,b){0!==b&&(this.x+=Math.cos(Q(a))*b,this.y+=Math.sin(Q(a))*b,this.na())},m.wi=function(a){a.r(this.x)},m.xi=function(a){a.r(this.y)},m.cf=function(a){a.r(this.b.Zg(this))});r&&(e.mr=function(a,b){return ec(this.width,a,b)},e.Xw=function(a,b){return ec(this.height,a,b)},f.ys=function(a){this.width!==a&&(this.width=a,this.na())},f.Dx=function(a){this.height!==a&&(this.height=a,this.na())},f.us=
function(a,b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.na()},m.Es=function(a){a.r(this.width)},m.yr=function(a){a.r(this.height)},m.Tw=function(a){this.ka();a.r(this.Ba.left)},m.Vw=function(a){this.ka();a.r(this.Ba.top)},m.Uw=function(a){this.ka();a.r(this.Ba.right)},m.Sw=function(a){this.ka();a.r(this.Ba.bottom)});b&&(e.fr=function(a,b){return Oa(this.j,Q(b))<=Q(a)},e.Br=function(a){return Qa(this.j,Q(a))},e.Ar=function(a,b){var d=Ma(a),e=Ma(b),c=Ka(this.j);return Qa(e,
d)?Qa(c,d)&&!Qa(c,e):!(!Qa(c,d)&&Qa(c,e))},f.zx=function(a){a=Q(Ja(a));isNaN(a)||this.j===a||(this.j=a,this.na())},f.vx=function(a){0===a||isNaN(a)||(this.j+=Q(a),this.j=Ka(this.j),this.na())},f.wx=function(a){0===a||isNaN(a)||(this.j-=Q(a),this.j=Ka(this.j),this.na())},f.xx=function(a,b){var d=Pa(this.j,Q(b),Q(a));isNaN(d)||this.j===d||(this.j=d,this.na())},f.yx=function(a,b,d){a=Pa(this.j,Math.atan2(d-this.y,b-this.x),Q(a));isNaN(a)||this.j===a||(this.j=a,this.na())},f.Hx=function(a,b){var d=Math.atan2(b-
this.y,a-this.x);isNaN(d)||this.j===d||(this.j=d,this.na())},m.Rw=function(a){a.r(La(this.j))});p||(e.Yw=function(a,b,d){return ec(this.Ya[a],b,d)},e.bx=function(a){return this.Ya[a]},e.rx=function(a,b){var d=this.W(),e=d.wc();if(!e.length)return!1;var c=e[0],f=c,l=c.Ya[b],h,m,p;h=1;for(m=e.length;h<m;h++)if(c=e[h],p=c.Ya[b],0===a&&p<l||1===a&&p>l)l=p,f=c;d.Qh(f);return!0},e.ox=function(a){var b,d,e,c,f;if(this.b.kj().sj){f=this.W();if(f.da)for(f.da=!1,K(f.d),K(f.R),e=this.d,b=0,d=e.length;b<d;b++)c=
e[b],c.uid===a?f.R.push(c):f.d.push(c);else{e=b=0;for(d=f.d.length;b<d;b++)c=f.d[b],f.d[e]=c,c.uid===a?f.R.push(c):e++;za(f.d,e)}this.Tc();return!!f.d.length}c=this.b.ah(a);if(!c)return!1;f=this.W();if(!f.da&&-1===f.d.indexOf(c))return!1;if(this.C)for(a=c.type.Da,b=0,d=a.length;b<d;b++){if(a[b]===this)return f.Qh(c),this.Tc(),!0}else if(c.type===this)return f.Qh(c),this.Tc(),!0;return!1},e.si=function(){return!0},e.Pr=function(){return!0},f.Ex=function(a,b){var d=this.Ya;la(d[a])?d[a]=la(b)?b:parseFloat(b):
z(d[a])&&(d[a]=z(b)?b:b.toString())},f.Qw=function(a,b){var d=this.Ya;la(d[a])?d[a]=la(b)?d[a]+b:d[a]+parseFloat(b):z(d[a])&&(d[a]=z(b)?d[a]+b:d[a]+b.toString())},f.Kx=function(a,b){var d=this.Ya;la(d[a])&&(d[a]=la(b)?d[a]-b:d[a]-parseFloat(b))},f.Ax=function(a,b){this.Ya[a]=b?1:0},f.Lx=function(a){this.Ya[a]=1-this.Ya[a]},f.qr=function(){this.b.pe(this)},f.Ir||(f.Ir=function(a){var b,d;try{b=JSON.parse(a)}catch(e){return}this.b.Ij(this,b,!0);this.od&&this.od();if(this.H)for(a=0,b=this.H.length;a<
b;++a)d=this.H[a],d.od&&d.od()}),m.$w=function(a){var b=a.wf.d.length,d,e,c;d=0;for(e=this.b.Wc.length;d<e;d++)c=this.b.Wc[d],a.wf.C?0<=c.type.Da.indexOf(a.wf)&&b++:c.type===a.wf&&b++;a.ya(b)},m.ux=function(a){a.ya(a.wf.W().wc().length)},m.Mx=function(a){a.ya(this.uid)},m.ax=function(a){a.ya(this.eh())},m.hr||(m.hr=function(a){a.$b(JSON.stringify(this.b.Nm(this,!0)))}));a&&(e.Gr=function(){return this.visible},f.Kn=function(a){!a!==!this.visible&&(this.visible=!!a,this.b.P=!0)},e.Zw=function(a,b){return ec(ib(100*
this.opacity),a,b)},f.Fx=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.P=!0)},m.Opacity=function(a){a.r(ib(100*this.opacity))});d&&(e.cx=function(a){return a?this.g===a:!1},e.tx=function(a){var b=this.W(),d=b.wc();if(!d.length)return!1;var e=d[0],c=e,f,l;f=1;for(l=d.length;f<l;f++)if(e=d[f],0===a){if(e.g.index>c.g.index||e.g.index===c.g.index&&e.wd()>c.wd())c=e}else if(e.g.index<c.g.index||e.g.index===c.g.index&&e.wd()<c.wd())c=e;b.Qh(c);return!0},f.Jr=function(){var a=
this.g,b=a.d;b.length&&b[b.length-1]===this||(a.wg(this,!1),a.Mg(this,!1),this.b.P=!0)},f.kx=function(){var a=this.g,b=a.d;b.length&&b[0]===this||(a.wg(this,!1),a.Pv(this),this.b.P=!0)},f.lx=function(a){a&&a!=this.g&&(this.g.wg(this,!0),this.g=a,a.Mg(this,!0),this.b.P=!0)},f.Ox=function(a,b){var d=0===a;if(b){var e=b.Do(this);e&&e.uid!==this.uid&&(this.g.index!==e.g.index&&(this.g.wg(this,!0),this.g=e.g,e.g.Mg(this,!0)),this.g.vv(this,e,d),this.b.P=!0)}},m.hx=function(a){a.ya(this.g.Ip)},m.gx=function(a){a.$b(this.g.name)},
m.Nx=function(a){a.ya(this.wd())});w&&(f.Bx=function(a,b){if(this.b.p){var d=this.type.ul(b);if(!(0>d)){var e=1===a;this.re[d]!==e&&(this.re[d]=e,this.md(),this.b.P=!0)}}},f.Cx=function(a,b,d){if(this.b.p){var e=this.type.ul(a);0>e||(a=this.type.I[e],e=this.Ha[e],b=Math.floor(b),0>b||b>=e.length||(1===this.b.p.Cu(a.Sa,b)&&(d/=100),e[b]!==d&&(e[b]=d,a.rc&&(this.b.P=!0))))}})};Kb=function(){this.Xk=this.Tk=!0;this.type.Bi=!0;this.b.P=!0;var c,h,p=this.Uk;c=0;for(h=p.length;c<h;++c)p[c](this);this.g.Dc&&
this.ka()};Lb=function(c){c&&this.Uk.push(c)};Nb=function(){if(this.Tk){var c=this.Ba,h=this.Kb;c.set(this.x,this.y,this.x+this.width,this.y+this.height);c.offset(-this.Sb*this.width,-this.Tb*this.height);this.j?(c.offset(-this.x,-this.y),h.wq(c,this.j),h.offset(this.x,this.y),h.Yn(c)):h.Zh(c);c.normalize();this.Tk=!1;this.Jw()}};var c=new va(0,0,0,0);Ob=function(){if(this.g.Dc){var l=this.g.tb,h=this.Ba;c.set(l.Qb(h.left),l.Rb(h.top),l.Qb(h.right),l.Rb(h.bottom));this.Yb.Tg(c)||(this.Yb.right<this.Yb.left?
l.update(this,null,c):l.update(this,this.Yb,c),this.Yb.Of(c),this.g.gd=!0)}};Pb=function(){if(this.Xk&&this.Od){this.ka();var l=this.type.Ni,h=this.Ba;c.set(l.Qb(h.left),l.Rb(h.top),l.Qb(h.right),l.Rb(h.bottom));this.ye.Tg(c)||(this.ye.right<this.ye.left?l.update(this,null,c):l.update(this,this.ye,c),this.ye.Of(c),this.Xk=!1)}};Mb=function(c,h){return this.Ba.Lb(c,h)&&this.Kb.Lb(c,h)?this.Dg?this.jy(c,h):this.ba&&!this.ba.$f()?(this.ba.Nf(this.width,this.height,this.j),this.ba.Lb(c-this.x,h-this.y)):
!0:!1};Gb=function(){this.type.Gk();return this.lf};Qb=function(){this.g.kn();return this.nd};Rb=function(){K(this.aa);var c,h,p,t=!0;c=0;for(h=this.re.length;c<h;c++)this.re[c]&&(p=this.type.I[c],this.aa.push(p),p.dd||(t=!1));this.$q=!!this.aa.length;this.he=t};Hb=function(){return"Inst"+this.hq};rb=function(c){if(c&&c.Ub&&c.type!=this){var h,p,t;h=0;for(p=c.siblings.length;h<p;h++)if(t=c.siblings[h],t.type==this)return t}c=this.W().wc();return c.length?c[0]:null};sb=function(c){var h=this.W().wc();
return h.length?h[c.eh()%h.length]:null};qb=function(){if(this.Bg&&!this.C){var c,h;c=0;for(h=this.d.length;c<h;c++)this.d[c].lf=c;var p=c,t=this.b.Wc;c=0;for(h=t.length;c<h;++c)t[c].type===this&&(t[c].lf=p++);this.Bg=!1}};Eb=function(c){if(c<this.d.length)return this.d[c];c-=this.d.length;var h=this.b.Wc,p,t;p=0;for(t=h.length;p<t;++p)if(h[p].type===this){if(0===c)return h[p];--c}return null};tb=function(){return this.je[this.qd]};ub=function(){this.qd++;this.qd===this.je.length?this.je.push(new pb(this)):
(this.je[this.qd].da=!0,K(this.je[this.qd].R))};vb=function(){this.qd++;this.qd===this.je.length&&this.je.push(new pb(this));var c=this.je[this.qd],h=this.je[this.qd-1];h.da?c.da=!0:(c.da=!1,Ba(c.d,h.d));K(c.R)};wb=function(){this.qd--};xb=function(c){var h,p,t,r,b,a=0;if(!this.C)for(h=0,p=this.Da.length;h<p;h++)for(b=this.Da[h],t=0,r=b.Ga.length;t<r;t++){if(c===b.Ga[t].name)return this.J.lastBehIndex=a,b.Ga[t];a++}h=0;for(p=this.Ga.length;h<p;h++){if(c===this.Ga[h].name)return this.J.lastBehIndex=
a,this.Ga[h];a++}return null};yb=function(c){return this.jj(c)?this.J.lastBehIndex:-1};zb=function(c){var h,p;h=0;for(p=this.I.length;h<p;h++)if(this.I[h].name===c)return h;return-1};Ab=function(){if(this.Ub&&!this.C){var c,h,p,t,r,b,a;this.Gk();b=this.W();var d=b.da,w=(c=this.b.Xa())&&c.Mb&&c.Mb.Ac;c=0;for(h=this.hc.length;c<h;c++)if(r=this.hc[c],r!==this&&(r.Gk(),a=r.W(),a.da=d,!d)){K(a.d);p=0;for(t=b.d.length;p<t;++p)a.d[p]=r.xl(b.d[p].lf);if(w)for(K(a.R),p=0,t=b.R.length;p<t;++p)a.R[p]=r.xl(b.R[p].lf)}}};
Fb=function(){return"Type"+this.V};ec=function(c,h,p){if("undefined"===typeof c||"undefined"===typeof p)return!1;switch(h){case 0:return c===p;case 1:return c!==p;case 2:return c<p;case 3:return c<=p;case 4:return c>p;case 5:return c>=p;default:return!1}}})();var nc={};function pc(c){this.b=c}
(function(){function c(a){-1===kb.indexOf(a)&&kb.push(a)}function l(a){var b=a.i,d;try{d=b.play()}catch(e){c(a);return}d?d.catch(function(){c(a)}):Ac&&!D.Na&&c(a)}function h(){var a,b,d,e;Bc||Aa||!v||(p(),"running"===v.state&&(Bc=!0));var f=kb.slice(0);K(kb);if(!ba)for(a=0,b=f.length;a<b;++a)d=f[a],d.ac||d.kc||(e=d.i.play())&&e.catch(function(){c(d)})}function p(){"suspended"===v.state&&v.resume&&v.resume();if(v.createBuffer){var a=v.createBuffer(1,220,22050),b=v.createBufferSource();b.buffer=a;b.connect(v.destination);
d(b)}}function t(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function r(a){a=a.toLowerCase();return U.hasOwnProperty(a)&&U[a].length?U[a][0].vc():v.destination}function b(){return v.createGain?v.createGain():v.createGainNode()}function a(a){return v.createDelay?v.createDelay(a):v.createDelayNode(a)}function d(a,b){a.start?a.start(b||0):a.noteOn(b||0)}function w(a,b,d,e){a.start?a.start(e||0,b):a.noteGrainOn(e||0,b,d-b)}function e(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}function f(a,
d,e,c,f,g){this.type="filter";this.bd=[a,d,e,c,f,g];this.X=b();this.G=b();this.G.gain.value=g;this.D=b();this.D.gain.value=1-g;this.Ma=v.createBiquadFilter();this.Ma.type="number"===typeof this.Ma.type?a:Dc[a];this.Ma.frequency.value=d;this.Ma.detune&&(this.Ma.detune.value=e);this.Ma.Q.value=c;this.Ma.gain.value=f;this.X.connect(this.Ma);this.X.connect(this.D);this.Ma.connect(this.G)}function m(d,e,c){this.type="delay";this.bd=[d,e,c];this.X=b();this.G=b();this.G.gain.value=c;this.D=b();this.D.gain.value=
1-c;this.Kh=b();this.Gc=a(d);this.Gc.delayTime.value=d;this.Vi=b();this.Vi.gain.value=e;this.X.connect(this.Kh);this.X.connect(this.D);this.Kh.connect(this.G);this.Kh.connect(this.Gc);this.Gc.connect(this.Vi);this.Vi.connect(this.Kh)}function g(a,d,e,c){this.type="convolve";this.bd=[d,e,c];this.X=b();this.G=b();this.G.gain.value=e;this.D=b();this.D.gain.value=1-e;this.Ze=v.createConvolver();a&&(this.Ze.normalize=d,this.Ze.buffer=a);this.X.connect(this.Ze);this.X.connect(this.D);this.Ze.connect(this.G)}
function u(e,c,f,g,k){this.type="flanger";this.bd=[e,c,f,g,k];this.X=b();this.D=b();this.D.gain.value=1-k/2;this.G=b();this.G.gain.value=k/2;this.cj=b();this.cj.gain.value=g;this.Gc=a(e+c);this.Gc.delayTime.value=e;this.nb=v.createOscillator();this.nb.frequency.value=f;this.oc=b();this.oc.gain.value=c;this.X.connect(this.Gc);this.X.connect(this.D);this.Gc.connect(this.G);this.Gc.connect(this.cj);this.cj.connect(this.Gc);this.nb.connect(this.oc);this.oc.connect(this.Gc.delayTime);d(this.nb)}function A(a,
e,c,f,g,k){this.type="phaser";this.bd=[a,e,c,f,g,k];this.X=b();this.D=b();this.D.gain.value=1-k/2;this.G=b();this.G.gain.value=k/2;this.Ma=v.createBiquadFilter();this.Ma.type="number"===typeof this.Ma.type?7:"allpass";this.Ma.frequency.value=a;this.Ma.detune&&(this.Ma.detune.value=e);this.Ma.Q.value=c;this.nb=v.createOscillator();this.nb.frequency.value=g;this.oc=b();this.oc.gain.value=f;this.X.connect(this.Ma);this.X.connect(this.D);this.Ma.connect(this.G);this.nb.connect(this.oc);this.oc.connect(this.Ma.frequency);
d(this.nb)}function q(a){this.type="gain";this.bd=[a];this.Z=b();this.Z.gain.value=a}function k(a,e){this.type="tremolo";this.bd=[a,e];this.Z=b();this.Z.gain.value=1-e/2;this.nb=v.createOscillator();this.nb.frequency.value=a;this.oc=b();this.oc.gain.value=e/2;this.nb.connect(this.oc);this.oc.connect(this.Z.gain);d(this.nb)}function n(a,e){this.type="ringmod";this.bd=[a,e];this.X=b();this.G=b();this.G.gain.value=e;this.D=b();this.D.gain.value=1-e;this.Wh=b();this.Wh.gain.value=0;this.nb=v.createOscillator();
this.nb.frequency.value=a;this.nb.connect(this.Wh.gain);d(this.nb);this.X.connect(this.Wh);this.X.connect(this.D);this.Wh.connect(this.G)}function P(a,d,e,c,f){this.type="distortion";this.bd=[a,d,e,c,f];this.X=b();this.fk=b();this.ek=b();this.mw(e,Math.pow(10,c/20));this.G=b();this.G.gain.value=f;this.D=b();this.D.gain.value=1-f;this.Mk=v.createWaveShaper();this.Ti=new Float32Array(65536);this.qu(a,d);this.Mk.Ti=this.Ti;this.X.connect(this.fk);this.X.connect(this.D);this.fk.connect(this.Mk);this.Mk.connect(this.ek);
this.ek.connect(this.G)}function N(a,b,d,e,c){this.type="compressor";this.bd=[a,b,d,e,c];this.Z=v.createDynamicsCompressor();try{this.Z.threshold.value=a,this.Z.knee.value=b,this.Z.ratio.value=d,this.Z.attack.value=e,this.Z.release.value=c}catch(f){}}function x(a,b){this.type="analyser";this.bd=[a,b];this.Z=v.createAnalyser();this.Z.fftSize=a;this.Z.smoothingTimeConstant=b;this.ou=new Float32Array(this.Z.frequencyBinCount);this.zq=new Uint8Array(a);this.Ph=0}function M(){this.ca=null;this.Kj=0}function B(a,
d){this.src=a;this.S=y;this.yd=d;this.Ai=!1;var e=this;this.mg=this.ug=null;this.vg=[];this.pk=0;this.nn=this.aj=this.Gq=this.$j=!1;1===y&&d&&!lb&&(this.S=0,this.ug=b());this.Md=this.Y=null;var c;switch(this.S){case 0:this.Y=new Audio;this.Y.crossOrigin="anonymous";this.Y.addEventListener("canplaythrough",function(){e.nn=!0});1===y&&v.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.Gq=!0,this.Y.addEventListener("canplay",function(){!e.mg&&e.Y&&(e.mg=v.createMediaElementSource(e.Y),
e.mg.connect(e.ug))}));this.Y.autoplay=!1;this.Y.dy="auto";this.Y.src=a;break;case 1:D.xj?D.vo(a,function(a){e.Md=a;e.lo()},function(){e.aj=!0}):(c=new XMLHttpRequest,c.open("GET",a,!0),c.responseType="arraybuffer",c.onload=function(){e.Md=c.response;e.lo()},c.onerror=function(){e.aj=!0},c.send());break;case 2:this.Y=!0;break;case 3:this.Y=!0}}function F(a,d){var e=this;this.tag=d;this.ac=this.vd=!0;this.src=a.src;this.buffer=a;this.S=y;this.yd=a.yd;this.playbackRate=1;this.Xf=!0;this.kc=this.Bc=
!1;this.Zb=0;this.uh=this.bg=this.zd=!1;this.volume=1;this.vm=function(a){if(!e.kc&&!e.Bc){var b=this;b||(b=a.target);b===e.yi&&(e.Xf=!0,e.ac=!0,ia=e.tag,D.trigger(pc.prototype.e.ti,L))}};this.yi=null;this.Zf=1===O&&!this.yd||2===O;this.pg=1;this.startTime=this.Zf?D.kb.F:D.ne.F;this.Pa=this.Va=null;this.Cd=!1;this.rb=null;this.Wp=this.Vp=this.Up=this.Tp=this.Yp=this.Xp=0;this.i=null;var c=!1;1!==this.S||0!==this.buffer.S||this.buffer.Gq||(this.S=0);switch(this.S){case 0:this.yd?(this.i=a.Y,c=!a.Ai,
a.Ai=!0):(this.i=new Audio,this.i.crossOrigin="anonymous",this.i.autoplay=!1,this.i.src=a.Y.src,c=!0);c&&this.i.addEventListener("ended",function(){ia=e.tag;e.ac=!0;D.trigger(pc.prototype.e.ti,L)});break;case 1:this.Va=b();this.Va.connect(r(d));1===this.buffer.S?a.Y&&(this.i=v.createBufferSource(),this.i.buffer=a.Y,this.i.connect(this.Va)):(this.i=this.buffer.Y,this.buffer.ug.connect(this.Va),this.buffer.Ai||(this.buffer.Ai=!0,this.buffer.Y.addEventListener("ended",function(){ia=e.tag;e.ac=!0;D.trigger(pc.prototype.e.ti,
L)})));break;case 2:this.i=new window.Media(aa+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(e.Xf=!0,e.ac=!0,ia=e.tag,D.trigger(pc.prototype.e.ti,L))});break;case 3:this.i=!0}}function Y(a){K(Ca);if(a.length){var b,d,e;b=0;for(d=E.length;b<d;b++)e=E[b],jb(a,e.tag)&&Ca.push(e)}else H&&!H.kf()&&(K(Ca),Ca[0]=H)}function I(a,b){U.hasOwnProperty(a)?U[a].push(b):U[a]=[b];var d,e,c,f,g=v.destination;if(U.hasOwnProperty(a)&&(c=U[a],c.length))for(g=c[0].vc(),d=0,e=c.length;d<e;d++)f=c[d],
d+1===e?f.Ec(v.destination):f.Ec(c[d+1].vc());Y(a);d=0;for(e=Ca.length;d<e;d++)Ca[d].Wv(g);Ia&&Db===a&&(Ia.disconnect(),Ia.connect(g))}function V(){}function X(){}var R=pc.prototype;R.Aa=function(a){this.la=a;this.b=a.b};R.Aa.prototype.U=function(){};var D=null,L=null,ia="",aa="",y=0,v=null,C=[],E=[],H=null,G=!1,O=0,ba=!1,J=1,ja=0,ca=0,Aa=!1,Bb=1,Cb=1,xc=10,yc=1E4,zc=1,Ia=null,Db="",Ac=!1,kb=[],lb=!1,Bc=!1;document.addEventListener("pointerup",h,!0);document.addEventListener("touchend",h,!0);document.addEventListener("click",
h,!0);document.addEventListener("keydown",h,!0);document.addEventListener("gamepadconnected",h,!0);var U={},Dc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");f.prototype.Ec=function(a){this.G.disconnect();this.G.connect(a);this.D.disconnect();this.D.connect(a)};f.prototype.remove=function(){this.X.disconnect();this.Ma.disconnect();this.G.disconnect();this.D.disconnect()};f.prototype.vc=function(){return this.X};m.prototype.Ec=function(a){this.G.disconnect();this.G.connect(a);
this.D.disconnect();this.D.connect(a)};m.prototype.remove=function(){this.X.disconnect();this.Kh.disconnect();this.Gc.disconnect();this.Vi.disconnect();this.G.disconnect();this.D.disconnect()};m.prototype.vc=function(){return this.X};g.prototype.Ec=function(a){this.G.disconnect();this.G.connect(a);this.D.disconnect();this.D.connect(a)};g.prototype.remove=function(){this.X.disconnect();this.Ze.disconnect();this.G.disconnect();this.D.disconnect()};g.prototype.vc=function(){return this.X};u.prototype.Ec=
function(a){this.D.disconnect();this.D.connect(a);this.G.disconnect();this.G.connect(a)};u.prototype.remove=function(){this.X.disconnect();this.Gc.disconnect();this.nb.disconnect();this.oc.disconnect();this.D.disconnect();this.G.disconnect();this.cj.disconnect()};u.prototype.vc=function(){return this.X};A.prototype.Ec=function(a){this.D.disconnect();this.D.connect(a);this.G.disconnect();this.G.connect(a)};A.prototype.remove=function(){this.X.disconnect();this.Ma.disconnect();this.nb.disconnect();
this.oc.disconnect();this.D.disconnect();this.G.disconnect()};A.prototype.vc=function(){return this.X};q.prototype.Ec=function(a){this.Z.disconnect();this.Z.connect(a)};q.prototype.remove=function(){this.Z.disconnect()};q.prototype.vc=function(){return this.Z};k.prototype.Ec=function(a){this.Z.disconnect();this.Z.connect(a)};k.prototype.remove=function(){this.nb.disconnect();this.oc.disconnect();this.Z.disconnect()};k.prototype.vc=function(){return this.Z};n.prototype.Ec=function(a){this.G.disconnect();
this.G.connect(a);this.D.disconnect();this.D.connect(a)};n.prototype.remove=function(){this.nb.disconnect();this.Wh.disconnect();this.X.disconnect();this.G.disconnect();this.D.disconnect()};n.prototype.vc=function(){return this.X};P.prototype.mw=function(a,b){.01>a&&(a=.01);this.fk.gain.value=a;this.ek.gain.value=Math.pow(1/a,.6)*b};P.prototype.shape=function(a,b,d){var e=1.05*d*b-b;d=0>a?-1:1;a=0>a?-a:a;b=a<b?a:b+e*(1-Math.exp(-(1/e)*(a-b)));return b*d};P.prototype.qu=function(a,b){for(var d=Math.pow(10,
a/20),e=Math.pow(10,b/20),c=0,f=0;32768>f;++f)c=f/32768,c=this.shape(c,d,e),this.Ti[32768+f]=c,this.Ti[32768-f-1]=-c};P.prototype.Ec=function(a){this.G.disconnect();this.G.connect(a);this.D.disconnect();this.D.connect(a)};P.prototype.remove=function(){this.X.disconnect();this.fk.disconnect();this.Mk.disconnect();this.ek.disconnect();this.G.disconnect();this.D.disconnect()};P.prototype.vc=function(){return this.X};N.prototype.Ec=function(a){this.Z.disconnect();this.Z.connect(a)};N.prototype.remove=
function(){this.Z.disconnect()};N.prototype.vc=function(){return this.Z};x.prototype.fb=function(){this.Z.getFloatFrequencyData(this.ou);this.Z.getByteTimeDomainData(this.zq);for(var a=this.Z.fftSize,b=0,d=this.Ph=0,e=0;b<a;b++)e=(this.zq[b]-128)/128,0>e&&(e=-e),this.Ph<e&&(this.Ph=e),d+=e*e;this.Ph=t(this.Ph);t(Math.sqrt(d/a))};x.prototype.Ec=function(a){this.Z.disconnect();this.Z.connect(a)};x.prototype.remove=function(){this.Z.disconnect()};x.prototype.vc=function(){return this.Z};M.prototype.Xh=
function(a){this.ca=a};M.prototype.qj=function(){return!!this.ca};M.prototype.fb=function(){};B.prototype.Yv=function(){var a,b,d,e;d=a=0;for(b=E.length;a<b;++a)e=E[a],E[d]=e,e.buffer===this?e.stop():++d;E.length=d;this.mg&&(this.mg.disconnect(),this.mg=null);this.ug&&(this.ug.disconnect(),this.ug=null);this.Md=this.Y=null};B.prototype.lo=function(){if(!this.Y&&this.Md){var a=this;if(v.decodeAudioData)v.decodeAudioData(this.Md,function(b){a.Y=b;a.Md=null;var d,e,c;if(ka(a.bk)||ba)ka(a.Pi)||(d=a.Pi.Ze,
d.normalize=a.Hp,d.buffer=b);else if(a.vg.length){d=0;for(e=a.vg.length;d<e;d++){b=a.vg[d];c=new F(a,b.Mq);c.Qm(!0);if("undefined"!==typeof b.Jp&&(b.ca=D.ah(b.Jp),!b.ca))continue;if(b.ca){var f=Ra(b.ca.x,b.ca.y,-b.ca.g.Wa(),ja,ca,!0),g=Ra(b.ca.x,b.ca.y,-b.ca.g.Wa(),ja,ca,!1);c.Pm(f,g,Ha(b.ca.j-b.ca.g.Wa()),b.Gl,b.km,b.nm);c.Xh(b.ca)}else c.Pm(b.x,b.y,b.Hs,b.Gl,b.km,b.nm);c.play(a.fm,a.mn,a.pk);a.$j&&c.pause();E.push(c)}K(a.vg)}else c=new F(a,a.bk||""),c.play(a.fm,a.mn,a.pk),a.$j&&c.pause(),E.push(c)},
function(){a.aj=!0});else if(this.Y=v.createBuffer(this.Md,!1),this.Md=null,ka(this.bk)||ba)ka(this.Pi)||(b=this.Pi.Ze,b.normalize=this.Hp,b.buffer=this.Y);else{var b=new F(this,this.bk);b.play(this.fm,this.mn,this.pk);this.$j&&b.pause();E.push(b)}}};B.prototype.Ro=function(){switch(this.S){case 0:var a=4<=this.Y.readyState;a&&(this.nn=!0);return a||this.nn;case 1:return!!this.Md||!!this.Y;case 2:return!0;case 3:return!0}return!1};B.prototype.iv=function(){switch(this.S){case 0:return this.Ro();case 1:return!!this.Y;
case 2:return!0;case 3:return!0}return!1};B.prototype.Vu=function(){switch(this.S){case 0:return!!this.Y.error;case 1:return this.aj}return!1};F.prototype.kf=function(){switch(this.S){case 0:return this.i.ended;case 1:return 1===this.buffer.S?!this.vd&&!this.ac&&this.i.loop||this.kc?!1:this.Xf:this.i.ended;case 2:return this.Xf;case 3:!0}return!0};F.prototype.Us=function(){return this.vd||this.ac?!0:this.kf()};F.prototype.Qm=function(a){1===y&&(!this.Cd&&a?this.Va&&(this.Pa||(this.Pa=v.createPanner(),
this.Pa.panningModel="number"===typeof this.Pa.panningModel?Bb:["equalpower","HRTF","soundfield"][Bb],this.Pa.distanceModel="number"===typeof this.Pa.distanceModel?Cb:["linear","inverse","exponential"][Cb],this.Pa.refDistance=xc,this.Pa.maxDistance=yc,this.Pa.rolloffFactor=zc),this.Va.disconnect(),this.Va.connect(this.Pa),this.Pa.connect(r(this.tag)),this.Cd=!0):this.Cd&&!a&&this.Va&&(this.Pa.disconnect(),this.Va.disconnect(),this.Va.connect(r(this.tag)),this.Cd=!1))};F.prototype.Pm=function(a,b,
d,e,c,f){this.Cd&&1===y&&(this.Pa.setPosition(a,b,0),this.Pa.setOrientation(Math.cos(Q(d)),Math.sin(Q(d)),0),this.Pa.coneInnerAngle=e,this.Pa.coneOuterAngle=c,this.Pa.coneOuterGain=f,this.Xp=a,this.Yp=b,this.Tp=d,this.Up=e,this.Vp=c,this.Wp=f)};F.prototype.Xh=function(a){this.Cd&&1===y&&(this.rb||(this.rb=new M),this.rb.Xh(a))};F.prototype.fb=function(a){if(this.Cd&&1===y&&this.rb&&this.rb.qj()&&this.ph()){this.rb.fb(a);a=this.rb.ca;var b=Ra(a.x,a.y,-a.g.Wa(),ja,ca,!0),d=Ra(a.x,a.y,-a.g.Wa(),ja,ca,
!1);this.Pa.setPosition(b,d,0);b=0;"undefined"!==typeof this.rb.ca.j&&(b=a.j-a.g.Wa(),this.Pa.setOrientation(Math.cos(b),Math.sin(b),0))}};F.prototype.play=function(a,b,e,c){var f=this.i;this.zd=a;this.volume=b;e=e||0;c=c||0;switch(this.S){case 0:1!==f.playbackRate&&(f.playbackRate=1);f.volume!==b*J&&(f.volume=b*J);f.loop!==a&&(f.loop=a);f.muted&&(f.muted=!1);if(f.currentTime!==e)try{f.currentTime=e}catch(g){}l(this);break;case 1:this.muted=!1;this.pg=1;if(1===this.buffer.S)this.Va.gain.value=b*J,
this.vd||(this.i=v.createBufferSource(),this.i.buffer=this.buffer.Y,this.i.connect(this.Va)),this.i.onended=this.vm,this.yi=this.i,this.i.loop=a,this.Xf=!1,0===e?d(this.i,c):w(this.i,e,this.hf(),c);else{1!==f.playbackRate&&(f.playbackRate=1);f.loop!==a&&(f.loop=a);f.volume=b*J;if(f.currentTime!==e)try{f.currentTime=e}catch(k){}l(this)}break;case 2:(!this.vd&&this.ac||0!==e)&&f.seekTo(e);f.play();this.Xf=!1;break;case 3:D.Db?AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=
1;this.startTime=(this.Zf?D.kb.F:D.ne.F)-e;this.kc=this.ac=this.vd=!1};F.prototype.stop=function(){switch(this.S){case 0:this.i.paused||this.i.pause();break;case 1:1===this.buffer.S?e(this.i):this.i.paused||this.i.pause();break;case 2:this.i.stop();break;case 3:D.Db&&AppMobi.context.stopSound(this.src)}this.ac=!0;this.kc=!1};F.prototype.pause=function(){if(!(this.vd||this.ac||this.kf()||this.kc)){switch(this.S){case 0:this.i.paused||this.i.pause();break;case 1:1===this.buffer.S?(this.Zb=this.yl(!0),
this.zd&&(this.Zb=this.Zb%this.hf()),this.kc=!0,e(this.i)):this.i.paused||this.i.pause();break;case 2:this.i.pause();break;case 3:D.Db&&AppMobi.context.stopSound(this.src)}this.kc=!0}};F.prototype.cw=function(){if(!(this.vd||this.ac||this.kf())&&this.kc){switch(this.S){case 0:l(this);break;case 1:1===this.buffer.S?(this.i=v.createBufferSource(),this.i.buffer=this.buffer.Y,this.i.connect(this.Va),this.i.onended=this.vm,this.yi=this.i,this.i.loop=this.zd,this.Va.gain.value=J*this.volume*this.pg,this.Hk(),
this.startTime=(this.Zf?D.kb.F:D.ne.F)-this.Zb/(this.playbackRate||.001),w(this.i,this.Zb,this.hf())):l(this);break;case 2:this.i.play();break;case 3:D.Db&&AppMobi.context.resumeSound(this.src)}this.kc=!1}};F.prototype.seek=function(a){if(!(this.vd||this.ac||this.kf()))switch(this.S){case 0:try{this.i.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.S)this.kc?this.Zb=a:(this.pause(),this.Zb=a,this.cw());else try{this.i.currentTime=a}catch(d){}break;case 3:D.Db&&AppMobi.context.seekSound(this.src,
a)}};F.prototype.Wv=function(a){1===this.S&&(this.Cd?(this.Pa.disconnect(),this.Pa.connect(a)):(this.Va.disconnect(),this.Va.connect(a)))};F.prototype.hf=function(){var a=0;switch(this.S){case 0:"undefined"!==typeof this.i.duration&&(a=this.i.duration);break;case 1:a=this.buffer.Y.duration;break;case 2:a=this.i.getDuration();break;case 3:D.Db&&(a=AppMobi.context.getDurationSound(this.src))}return a};F.prototype.yl=function(a){var b=this.hf(),d=0;switch(this.S){case 0:"undefined"!==typeof this.i.currentTime&&
(d=this.i.currentTime);break;case 1:if(1===this.buffer.S){if(this.kc)return this.Zb;d=(this.Zf?D.kb.F:D.ne.F)-this.startTime}else"undefined"!==typeof this.i.currentTime&&(d=this.i.currentTime);break;case 3:D.Db&&(d=AppMobi.context.getPlaybackTimeSound(this.src))}a&&(d*=this.playbackRate);!this.zd&&d>b&&(d=b);return d};F.prototype.ph=function(){return!this.kc&&!this.vd&&!this.ac&&!this.kf()};F.prototype.ww=function(){return!this.vd&&!this.ac&&!this.kf()};F.prototype.Hw=function(){var a=this.volume*
J;isFinite(a)||(a=0);switch(this.S){case 0:"undefined"!==typeof this.i.volume&&this.i.volume!==a&&(this.i.volume=a);break;case 1:1===this.buffer.S?this.Va.gain.value=a*this.pg:"undefined"!==typeof this.i.volume&&this.i.volume!==a&&(this.i.volume=a)}};F.prototype.Yi=function(a){switch(this.S){case 0:this.i.muted!==!!a&&(this.i.muted=!!a);break;case 1:1===this.buffer.S?(this.pg=a?0:1,this.Va.gain.value=J*this.volume*this.pg):this.i.muted!==!!a&&(this.i.muted=!!a)}};F.prototype.pw=function(){this.bg=
!0;this.Yi(this.bg||this.uh)};F.prototype.tq=function(a){this.uh=!!a;this.Yi(this.bg||this.uh)};F.prototype.Hk=function(){var a=this.playbackRate;this.Zf&&(a*=D.Eg);switch(this.S){case 0:this.i.playbackRate!==a&&(this.i.playbackRate=a);break;case 1:1===this.buffer.S?this.i.playbackRate.value!==a&&(this.i.playbackRate.value=a):this.i.playbackRate!==a&&(this.i.playbackRate=a)}};F.prototype.rw=function(a){switch(this.S){case 0:a?this.ph()?(this.Bc=!0,this.i.pause()):this.Bc=!1:this.Bc&&(this.i.play(),
this.Bc=!1);break;case 1:a?this.ph()?(this.Bc=!0,1===this.buffer.S?(this.Zb=this.yl(!0),this.zd&&(this.Zb=this.Zb%this.hf()),e(this.i)):this.i.pause()):this.Bc=!1:this.Bc&&(1===this.buffer.S?(this.i=v.createBufferSource(),this.i.buffer=this.buffer.Y,this.i.connect(this.Va),this.i.onended=this.vm,this.yi=this.i,this.i.loop=this.zd,this.Va.gain.value=J*this.volume*this.pg,this.Hk(),this.startTime=(this.Zf?D.kb.F:D.ne.F)-this.Zb/(this.playbackRate||.001),w(this.i,this.Zb,this.hf())):this.i.play(),this.Bc=
!1);break;case 2:a?this.ph()?(this.i.pause(),this.Bc=!0):this.Bc=!1:this.Bc&&(this.Bc=!1,this.i.play())}};R.ga=function(a){this.type=a;D=this.b=a.b;L=this;this.lc=null;this.Bh=-600;this.b.xj&&(lb=!0);!(this.b.fg||this.b.lh&&(this.b.Ml||this.b.tj))||this.b.vj||this.b.Ia||this.b.Po||lb||(Ac=!0);v=null;"undefined"!==typeof AudioContext?(y=1,v=new AudioContext):"undefined"!==typeof webkitAudioContext&&(y=1,v=new webkitAudioContext);this.b.fg&&v&&(v.close&&v.close(),"undefined"!==typeof AudioContext?v=
new AudioContext:"undefined"!==typeof webkitAudioContext&&(v=new webkitAudioContext));1!==y&&(this.b.yc&&"undefined"!==typeof window.Media?y=2:this.b.Qo&&(y=3));2===y&&(aa=location.href,a=aa.lastIndexOf("/"),-1<a&&(aa=aa.substr(0,a+1)),aa=aa.replace("file://",""));if(this.b.jv&&this.b.lv&&"undefined"===typeof Audio)alert("It looks like you're using Safari for Windows without Quicktime.  Audio cannot be played until Quicktime is installed."),this.b.pe(this);else{if(this.b.Db)G=this.b.lh;else try{G=
!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')&&!this.b.yj}catch(b){G=!1}this.b.ji(this)}};var qa=R.ga.prototype;qa.U=function(){this.b.Lf=this;O=this.M[0];this.ge=this.M[1];this.Jv=0!==this.M[2];this.Fp=0;Bb=this.M[3];Cb=this.M[4];this.Bh=-this.M[5];xc=this.M[6];yc=this.M[7];zc=this.M[8];this.lc=new M;var a=this.b.B||this.b.width,b=this.b.A||this.b.height;1===y&&(v.listener.setPosition(a/2,b/2,this.Bh),v.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,b){Ia&&Ia.disconnect();
Db=b.toLowerCase();Ia=v.createMediaStreamSource(a);Ia.connect(r(Db))});this.b.Sn(function(a){L.Dv(a)});var d=this;this.b.Qk(function(a){d.om(a)})};qa.om=function(a){var b,d,e;b=0;for(d=E.length;b<d;b++)e=E[b],e.rb&&e.rb.ca===a&&(e.rb.ca=null,e.Cd&&e.ph()&&e.zd&&e.stop());this.lc.ca===a&&(this.lc.ca=null)};qa.Fb=function(){var a={silent:ba,masterVolume:J,listenerZ:this.Bh,listenerUid:this.lc.qj()?this.lc.ca.uid:-1,playing:[],effects:{}},b=a.playing,d,e,c,f,g,k;d=0;for(e=E.length;d<e;d++)c=E[d],!c.ww()||
3===this.ge||c.yd&&1===this.ge||!c.yd&&2===this.ge||(f=c.yl(),c.zd&&(f=f%c.hf()),f={tag:c.tag,buffersrc:c.buffer.src,is_music:c.yd,playbackTime:f,volume:c.volume,looping:c.zd,muted:c.bg,playbackRate:c.playbackRate,paused:c.kc,resume_position:c.Zb},c.Cd&&(f.pan={},k=f.pan,c.rb&&c.rb.qj()?k.objUid=c.rb.ca.uid:(k.x=c.Xp,k.y=c.Yp,k.a=c.Tp),k.ia=c.Up,k.oa=c.Vp,k.og=c.Wp),b.push(f));b=a.effects;for(g in U)if(U.hasOwnProperty(g)){c=[];d=0;for(e=U[g].length;d<e;d++)c.push({type:U[g][d].type,params:U[g][d].bd});
b[g]=c}return a};var Ta=[];qa.Vb=function(a){var b=a.silent;J=a.masterVolume;this.Bh=a.listenerZ;this.lc.Xh(null);var d=a.listenerUid;-1!==d&&(this.lc.Kj=d,Ta.push(this.lc));var d=a.playing,e,c,h,l,p,r,B,w,t,v,F;if(3!==this.ge)for(e=0,c=E.length;e<c;e++)t=E[e],t.yd&&1===this.ge||(t.yd||2!==this.ge)&&t.stop();for(p in U)if(U.hasOwnProperty(p))for(e=0,c=U[p].length;e<c;e++)U[p][e].remove();Xa(U);for(p in a.effects)if(a.effects.hasOwnProperty(p))for(r=a.effects[p],e=0,c=r.length;e<c;e++)switch(h=r[e].type,
v=r[e].params,h){case "filter":I(p,new f(v[0],v[1],v[2],v[3],v[4],v[5]));break;case "delay":I(p,new m(v[0],v[1],v[2]));break;case "convolve":h=v[2];t=this.ij(h,!1);t.Y?h=new g(t.Y,v[0],v[1],h):(h=new g(null,v[0],v[1],h),t.Hp=v[0],t.Pi=h);I(p,h);break;case "flanger":I(p,new u(v[0],v[1],v[2],v[3],v[4]));break;case "phaser":I(p,new A(v[0],v[1],v[2],v[3],v[4],v[5]));break;case "gain":I(p,new q(v[0]));break;case "tremolo":I(p,new k(v[0],v[1]));break;case "ringmod":I(p,new n(v[0],v[1]));break;case "distortion":I(p,
new P(v[0],v[1],v[2],v[3],v[4]));break;case "compressor":I(p,new N(v[0],v[1],v[2],v[3],v[4]));break;case "analyser":I(p,new x(v[0],v[1]))}e=0;for(c=d.length;e<c;e++)3===this.ge||(a=d[e],h=a.buffersrc,l=a.is_music,p=a.tag,r=a.playbackTime,B=a.looping,w=a.volume,F=(v=a.pan)&&v.hasOwnProperty("objUid")?v.objUid:-1,l&&1===this.ge)||!l&&2===this.ge||((t=this.Ao(h,p,l,B,w))?(t.Zb=a.resume_position,t.Qm(!!v),t.play(B,w,r),t.Hk(),t.Hw(),t.Yi(t.bg||t.uh),a.paused&&t.pause(),a.muted&&t.pw(),t.Yi(t.bg||t.uh),
v&&(-1!==F?(t.rb=t.rb||new M,t.rb.Kj=F,Ta.push(t.rb)):t.Pm(v.x,v.y,v.a,v.ia,v.oa,v.og))):(t=this.ij(h,l),t.pk=r,t.$j=a.paused,v&&(-1!==F?t.vg.push({Jp:F,Gl:v.ia,km:v.oa,nm:v.og,Mq:p}):t.vg.push({x:v.x,y:v.y,Hs:v.a,Gl:v.ia,km:v.oa,nm:v.og,Mq:p}))));if(b&&!ba){e=0;for(c=E.length;e<c;e++)E[e].tq(!0);ba=!0}else if(!b&&ba){e=0;for(c=E.length;e<c;e++)E[e].tq(!1);ba=!1}};qa.od=function(){var a,b,d,e;a=0;for(b=Ta.length;a<b;a++)d=Ta[a],e=this.b.ah(d.Kj),d.Xh(e),d.Kj=-1,e&&(ja=e.x,ca=e.y);K(Ta)};qa.Dv=function(a){if(!this.Jv){!a&&
v&&v.resume&&(v.resume(),Aa=!1);var b,d;b=0;for(d=E.length;b<d;b++)E[b].rw(a);a&&v&&v.suspend&&(v.suspend(),Aa=!0)}};qa.fb=function(){var a=this.b.cf,b,d,e;b=0;for(d=E.length;b<d;b++)e=E[b],e.fb(a),0!==O&&e.Hk();var c,f;for(c in U)if(U.hasOwnProperty(c))for(e=U[c],b=0,d=e.length;b<d;b++)f=e[b],f.fb&&f.fb();1===y&&this.lc.qj()&&(this.lc.fb(a),ja=this.lc.ca.x,ca=this.lc.ca.y,v.listener.setPosition(this.lc.ca.x,this.lc.ca.y,this.Bh))};var Ua=[];qa.qw=function(a){var b,d,e,c,f,g=0;b=0;for(d=a.length;b<
d;++b)if(e=a[b],c=e[0],e=2*e[1],(f=4<c.length&&".ogg"===c.substr(c.length-4))&&G||!f&&!G)Ua.push({filename:c,size:e,ca:null}),g+=e;return g};qa.Aw=function(){var a,b,d,e;a=0;for(b=Ua.length;a<b;++a)d=Ua[a],e=this.b.nl+d.filename,d.ca=this.ij(e,!1)};qa.zu=function(){var a=0,b,d,e;b=0;for(d=Ua.length;b<d;++b)e=Ua[b],e.ca.iv()||e.ca.Vu()||this.b.Ia||this.b.tj?a+=e.size:e.ca.Ro()&&(a+=Math.floor(e.size/2));return a};qa.Zv=function(){var a,b,d,e;d=a=0;for(b=C.length;a<b;++a)e=C[a],C[d]=e,e.yd?e.Yv():++d;
C.length=d};qa.ij=function(a,b){var d,e,c,f=null;d=0;for(e=C.length;d<e;d++)if(c=C[d],c.src===a){f=c;break}f||(lb&&b&&this.Zv(),f=new B(a,b),C.push(f));return f};qa.Ao=function(a,b,d,e,c){var f,g,k;f=0;for(g=E.length;f<g;f++)if(k=E[f],k.src===a&&(k.Us()||d))return k.tag=b,k;a=this.ij(a,d);if(!a.Y)return"<preload>"!==b&&(a.bk=b,a.fm=e,a.mn=c),null;k=new F(a,b);E.push(k);return k};var Ca=[];V.prototype.ti=function(a){return jb(ia,a)};R.e=new V;X.prototype.Play=function(a,b,d,e){!ba&&(d=Math.pow(10,
d/20),isFinite(d)||(d=0),0>d&&(d=0),1<d&&(d=1),H=this.Ao(this.b.nl+a[0]+(G?".ogg":".m4a"),e,a[1],0!==b,d))&&(H.Qm(!1),H.play(0!==b,d,0,this.Fp),this.Fp=0)};X.prototype.Ln=function(a){Y(a);var b;a=0;for(b=Ca.length;a<b;a++)Ca[a].stop()};R.L=new X;R.xa=new function(){}})();function W(c){this.b=c}
(function(){function c(){r&&b&&window.OfflineClientInfo&&window.OfflineClientInfo.SetMessageCallback(function(b){a.Bv(b)})}function l(){}function h(){}var p=W.prototype;p.Aa=function(a){this.la=a;this.b=a.b};var t=p.Aa.prototype;t.U=function(){};var r=!1,b=!1;document.addEventListener("DOMContentLoaded",function(){if(window.C2_RegisterSW&&navigator.serviceWorker){var a=document.createElement("script");a.onload=function(){r=!0;c()};a.src="offlineClient.js";document.head.appendChild(a)}});var a=null;
t.Np=function(){b=!0;c()};p.ga=function(a){this.type=a;this.b=a.b};t=p.ga.prototype;t.U=function(){var b=this;window.addEventListener("resize",function(){b.b.trigger(W.prototype.e.gs,b)});a=this;"undefined"!==typeof navigator.onLine&&(window.addEventListener("online",function(){b.b.trigger(W.prototype.e.cs,b)}),window.addEventListener("offline",function(){b.b.trigger(W.prototype.e.as,b)}));this.b.Db||(document.addEventListener("appMobi.device.update.available",function(){b.b.trigger(W.prototype.e.Pk,
b)}),document.addEventListener("backbutton",function(){b.b.trigger(W.prototype.e.ri,b)}),document.addEventListener("menubutton",function(){b.b.trigger(W.prototype.e.An,b)}),document.addEventListener("searchbutton",function(){b.b.trigger(W.prototype.e.hs,b)}),document.addEventListener("tizenhwkey",function(a){var e;switch(a.keyName){case "back":e=b.b.trigger(W.prototype.e.ri,b);!e&&window.tizen&&window.tizen.application.getCurrentApplication().exit();break;case "menu":(e=b.b.trigger(W.prototype.e.An,
b))||a.preventDefault()}}));this.b.yj&&"undefined"!==typeof Windows?Windows.UI.Core.SystemNavigationManager.getForCurrentView().addEventListener("backrequested",function(a){b.b.trigger(W.prototype.e.ri,b)&&(a.handled=!0)}):this.b.To&&WinJS.Application&&(WinJS.Application.onbackclick=function(){return!!b.b.trigger(W.prototype.e.ri,b)});this.b.Sn(function(a){a?b.b.trigger(W.prototype.e.ds,b):b.b.trigger(W.prototype.e.es,b)})};t.Bv=function(a){a=a.data.type;"downloading-update"===a?this.b.trigger(W.prototype.e.ls,
this):"update-ready"===a||"update-pending"===a?this.b.trigger(W.prototype.e.Pk,this):"offline-ready"===a&&this.b.trigger(W.prototype.e.bs,this)};l.prototype.cs=function(){return!0};l.prototype.as=function(){return!0};l.prototype.Pk=function(){return!0};l.prototype.es=function(){return!0};l.prototype.ds=function(){return!0};l.prototype.gs=function(){return!0};l.prototype.ri=function(){return!0};l.prototype.An=function(){return!0};l.prototype.hs=function(){return!0};l.prototype.ls=function(){return!0};
l.prototype.Pk=function(){return!0};l.prototype.bs=function(){return!0};p.e=new l;h.prototype.tr=function(a){try{eval&&eval(a)}catch(b){console&&console.error&&console.error("Error executing Javascript: ",b)}};p.L=new h;p.xa=new function(){}})();function qc(c){this.b=c}
(function(){function c(){}var l=qc.prototype;l.Aa=function(c){this.la=c;this.b=c.b};l.Aa.prototype.U=function(){};l.ga=function(c){this.type=c;this.b=c.b;this.yh=Array(256);this.li=Array(256);this.le=0};var h=l.ga.prototype;h.U=function(){var c=this;this.b.Ia||(jQuery(document).keydown(function(h){c.zv(h)}),jQuery(document).keyup(function(h){c.Av(h)}))};var p=[32,33,34,35,36,37,38,39,40,44];h.zv=function(c){var h=!1;window!=window.top&&-1<p.indexOf(c.which)&&(c.preventDefault(),h=!0,c.stopPropagation());
if(this.yh[c.which])this.li[c.which]&&!h&&c.preventDefault();else{this.yh[c.which]=!0;this.le=c.which;this.b.Na=!0;this.b.trigger(qc.prototype.e.Mr,this);var b=this.b.trigger(qc.prototype.e.Xr,this),a=this.b.trigger(qc.prototype.e.Yr,this);this.b.Na=!1;if(b||a)this.li[c.which]=!0,h||c.preventDefault()}};h.Av=function(c){this.yh[c.which]=!1;this.le=c.which;this.b.Na=!0;this.b.trigger(qc.prototype.e.tn,this);var h=this.b.trigger(qc.prototype.e.xn,this),b=this.b.trigger(qc.prototype.e.wn,this);this.b.Na=
!1;if(h||b||this.li[c.which])this.li[c.which]=!0,c.preventDefault()};h.xf=function(){var c;for(c=0;256>c;++c)if(this.yh[c]){this.yh[c]=!1;this.le=c;this.b.trigger(qc.prototype.e.tn,this);var h=this.b.trigger(qc.prototype.e.xn,this),b=this.b.trigger(qc.prototype.e.wn,this);if(h||b)this.li[c]=!0}};h.Fb=function(){return{triggerKey:this.le}};h.Vb=function(c){this.le=c.triggerKey};c.prototype.Xr=function(c){return c===this.le};c.prototype.Mr=function(){return!0};c.prototype.tn=function(){return!0};c.prototype.xn=
function(c){return c===this.le};c.prototype.Yr=function(c){return c===this.le};c.prototype.wn=function(c){return c===this.le};l.e=new c;l.L=new function(){};l.xa=new function(){}})();function rc(c){this.b=c}
(function(){function c(){}function l(){}var h=rc.prototype;h.Aa=function(c){this.la=c;this.b=c.b};h.Aa.prototype.U=function(){};h.ga=function(c){this.type=c;this.b=c.b;this.Mf=Array(4);this.Pq=this.Dk=this.Ff=this.Oe=this.Ne=0;this.Dl=!1};var p=h.ga.prototype;p.U=function(){var c=this;if(!this.b.Ia){jQuery(document).mousemove(function(a){c.qm(a)});jQuery(document).mousedown(function(a){c.pm(a)});jQuery(document).mouseup(function(a){c.rm(a)});jQuery(document).dblclick(function(a){c.yv(a)});var b=function(a){c.Ev(a)};
document.addEventListener("mousewheel",b,!1);document.addEventListener("DOMMouseScroll",b,!1)}};var t={left:0,top:0};p.qm=function(c){var b=this.b.Ia?t:jQuery(this.b.canvas).offset();this.Ne=c.pageX-b.left;this.Oe=c.pageY-b.top};p.Bp=function(){return 0<this.b.Nb?!0:0<=this.Ne&&0<=this.Oe&&this.Ne<this.b.width&&this.Oe<this.b.height};p.pm=function(c){this.Bp()&&(this.Mf[c.which]=!0,this.b.Na=!0,this.b.trigger(rc.prototype.e.Lr,this),this.Ff=c.which-1,this.Dk=0,this.b.trigger(rc.prototype.e.un,this),
this.b.trigger(rc.prototype.e.Dn,this),this.b.Na=!1)};p.rm=function(c){this.Mf[c.which]&&(this.b.oj&&!this.b.Zd&&c.preventDefault(),this.b.oj=!0,this.Mf[c.which]=!1,this.b.Na=!0,this.Ff=c.which-1,this.b.trigger(rc.prototype.e.En,this),this.b.Na=!1)};p.yv=function(c){this.Bp()&&(c.preventDefault(),this.b.Na=!0,this.Ff=c.which-1,this.Dk=1,this.b.trigger(rc.prototype.e.un,this),this.b.trigger(rc.prototype.e.Dn,this),this.b.Na=!1)};p.Ev=function(c){this.Pq=0>(c.wheelDelta?c.wheelDelta:c.detail?-c.detail:
0)?0:1;this.Dl=!1;this.b.Na=!0;this.b.trigger(rc.prototype.e.os,this);this.b.Na=!1;this.Dl&&mb(c)&&c.preventDefault()};p.xf=function(){var c,b;c=0;for(b=this.Mf.length;c<b;++c)this.Mf[c]&&(this.Mf[c]=!1,this.Ff=c-1,this.b.trigger(rc.prototype.e.En,this))};c.prototype.un=function(c,b){return c===this.Ff&&b===this.Dk};c.prototype.Lr=function(){return!0};c.prototype.En=function(c){return c===this.Ff};c.prototype.Dn=function(c,b,a){return c!==this.Ff||b!==this.Dk?!1:this.b.fi(a,this.Ne,this.Oe)};c.prototype.os=
function(c){this.Dl=!0;return c===this.Pq};h.e=new c;h.L=new function(){};l.prototype.wi=function(c,b){var a,d,h,e,f;ka(b)?(a=this.b.Vd(0),d=a.scale,h=a.Jb,e=a.Wb,f=a.j,a.scale=1,a.Jb=1,a.Wb=1,a.j=0,c.r(a.Ta(this.Ne,this.Oe,!0)),a.scale=d,a.Jb=h,a.Wb=e,a.j=f):(a=la(b)?this.b.Vd(b):this.b.$g(b))?c.r(a.Ta(this.Ne,this.Oe,!0)):c.r(0)};l.prototype.xi=function(c,b){var a,d,h,e,f;ka(b)?(a=this.b.Vd(0),d=a.scale,h=a.Jb,e=a.Xb,f=a.j,a.scale=1,a.Jb=1,a.Xb=1,a.j=0,c.r(a.Ta(this.Ne,this.Oe,!1)),a.scale=d,a.Jb=
h,a.Xb=e,a.j=f):(a=la(b)?this.b.Vd(b):this.b.$g(b))?c.r(a.Ta(this.Ne,this.Oe,!1)):c.r(0)};h.xa=new l})();function T(c){this.b=c}
(function(){function c(){if(0===this.el.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.Ag?b.drawImage(this.T,this.rg,this.sg,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.T,0,0,this.width,this.height);this.el=a.toDataURL("image/png")}return this.el}function l(){}function h(a){a[0]=0;a[1]=0;a[2]=0;g.push(a)}function p(a,b){return a<b?""+a+","+b:""+b+","+a}function t(a,b,d,e){b=b.uid;d=d.uid;var c=p(b,d);if(a.hasOwnProperty(c))a[c][2]=
e;else{var f=g.length?g.pop():[0,0,0];f[0]=b;f[1]=d;f[2]=e;a[c]=f}}function r(a,b,d){b=p(b.uid,d.uid);a.hasOwnProperty(b)&&(h(a[b]),delete a[b])}function b(a,b,d){b=p(b.uid,d.uid);if(a.hasOwnProperty(b))return u=a[b][2],!0;u=-2;return!1}function a(){}function d(){}var w=T.prototype;w.Aa=function(a){this.la=a;this.b=a.b};var e=w.Aa.prototype;e.U=function(){if(!this.C){var a,b,d,e,f,g,k,h,q;this.Rc=[];this.hh=!1;a=0;for(b=this.gc.length;a<b;a++){f=this.gc[a];k={};k.name=f[0];k.speed=f[1];k.loop=f[2];
k.Jm=f[3];k.Km=f[4];k.aq=f[5];k.V=f[6];k.frames=[];d=0;for(e=f[7].length;d<e;d++)g=f[7][d],h={},h.Wm=g[0],h.Xm=g[1],h.rg=g[2],h.sg=g[3],h.width=g[4],h.height=g[5],h.duration=g[6],h.Sb=g[7],h.Tb=g[8],h.Hl=g[9],h.ck=g[10],h.bq=g[11],h.Ag=0!==h.width,h.el="",h.Vx=c,q={left:0,top:0,right:1,bottom:1},h.Rm=q,h.za=null,(q=this.b.nu(g[0]))?h.T=q:(h.T=new Image,h.T.Ys=g[0],h.T.ho=g[1],h.T.Ts=null,this.b.cr(h.T,g[0])),k.frames.push(h),this.Rc.push(h);this.gc[a]=k}}};e.Yq=function(){var a,b,d;a=0;for(b=this.d.length;a<
b;a++)d=this.d[a],d.Ri=d.ob.za};e.Uj=function(){if(!this.C){var a,b,d;a=0;for(b=this.Rc.length;a<b;++a)d=this.Rc[a],d.T.Ts=null,d.za=null;this.hh=!1;this.Yq()}};e.tm=function(){if(!this.C&&this.d.length){var a,b,d;a=0;for(b=this.Rc.length;a<b;++a)d=this.Rc[a],d.za=this.b.p.Jj(d.T,!1,this.b.Fa,d.bq);this.Yq()}};e.$l=function(){if(!this.C&&!this.hh&&this.b.p){var a,b,d;a=0;for(b=this.Rc.length;a<b;++a)d=this.Rc[a],d.za=this.b.p.Jj(d.T,!1,this.b.Fa,d.bq);this.hh=!0}};e.gn=function(){if(!this.C&&!this.d.length&&
this.hh){var a,b,d;a=0;for(b=this.Rc.length;a<b;++a)d=this.Rc[a],this.b.p.deleteTexture(d.za),d.za=null;this.hh=!1}};var f=[];e.Bm=function(a){var b,d,e;K(f);b=0;for(d=this.Rc.length;b<d;++b)e=this.Rc[b].T,-1===f.indexOf(e)&&(a.drawImage(e,0,0),f.push(e))};w.ga=function(a){this.type=a;this.b=a.b;a=this.type.gc[0].frames[0].ck;this.Eb?this.ba.$h(a):this.ba=new db(a)};var m=w.ga.prototype;m.U=function(){this.visible=0===this.M[0];this.rj=this.rh=!1;this.Od=0!==this.M[3];this.ua=this.zo(this.M[1])||
this.type.gc[0];this.u=this.M[2];0>this.u&&(this.u=0);this.u>=this.ua.frames.length&&(this.u=this.ua.frames.length-1);var a=this.ua.frames[this.u];this.ba.$h(a.ck);this.Sb=a.Sb;this.Tb=a.Tb;this.Pf=this.ua.speed;this.Ae=this.ua.Km;1===this.type.gc.length&&1===this.type.gc[0].frames.length||0===this.Pf||(this.b.ji(this),this.rh=!0);this.Eb?this.Sc.reset():this.Sc=new bb;this.ud=this.Sc.F;this.te=!0;this.Ld=0;this.Ve=!0;this.Mi=this.Tn="";this.co=0;this.Li=-1;this.type.$l();var b,d,e,c,f,g,k,a=0;for(b=
this.type.gc.length;a<b;a++)for(c=this.type.gc[a],d=0,e=c.frames.length;d<e;d++)f=c.frames[d],0===f.width&&(f.width=f.T.width,f.height=f.T.height),f.Ag&&(k=f.T,g=f.Rm,g.left=f.rg/k.width,g.top=f.sg/k.height,g.right=(f.rg+f.width)/k.width,g.bottom=(f.sg+f.height)/k.height,0===f.rg&&0===f.sg&&f.width===k.width&&f.height===k.height&&(f.Ag=!1));this.ob=this.ua.frames[this.u];this.Ri=this.ob.za};m.Fb=function(){var a={a:this.ua.V,f:this.u,cas:this.Pf,fs:this.ud,ar:this.Ld,at:this.Sc.F,rt:this.Ae};this.te||
(a.ap=this.te);this.Ve||(a.af=this.Ve);return a};m.Vb=function(a){var b=this.ru(a.a);b&&(this.ua=b);this.u=a.f;0>this.u&&(this.u=0);this.u>=this.ua.frames.length&&(this.u=this.ua.frames.length-1);this.Pf=a.cas;this.ud=a.fs;this.Ld=a.ar;this.Sc.reset();this.Sc.F=a.at;this.te=a.hasOwnProperty("ap")?a.ap:!0;this.Ve=a.hasOwnProperty("af")?a.af:!0;a.hasOwnProperty("rt")?this.Ae=a.rt:this.Ae=this.ua.Km;this.ob=this.ua.frames[this.u];this.Ri=this.ob.za;this.ba.$h(this.ob.ck);this.Sb=this.ob.Sb;this.Tb=this.ob.Tb};
m.Sk=function(a){this.u=a?0:this.ua.frames.length-1;this.te=!1;this.Tn=this.ua.name;this.rj=!0;this.b.trigger(T.prototype.e.Kr,this);this.b.trigger(T.prototype.e.sn,this);this.rj=!1;this.Ld=0};m.Di=function(){return this.Sc.F};m.fb=function(){this.Sc.add(this.b.Zg(this));this.Mi.length&&this.no();0<=this.Li&&this.oo();var a=this.Sc.F,b=this.ua,d=b.frames[this.u],e=d.duration/this.Pf;this.te&&a>=this.ud+e&&(this.Ve?this.u++:this.u--,this.ud+=e,this.u>=b.frames.length&&(b.aq?(this.Ve=!1,this.u=b.frames.length-
2):b.loop?this.u=this.Ae:(this.Ld++,this.Ld>=b.Jm?this.Sk(!1):this.u=this.Ae)),0>this.u&&(b.aq?(this.u=1,this.Ve=!0,b.loop||(this.Ld++,this.Ld>=b.Jm&&this.Sk(!0))):b.loop?this.u=this.Ae:(this.Ld++,this.Ld>=b.Jm?this.Sk(!0):this.u=this.Ae)),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.Pf&&(this.ud=a),a=b.frames[this.u],this.Jf(d,a),this.b.P=!0)};m.zo=function(a){var b,d,e;b=0;for(d=this.type.gc.length;b<d;b++)if(e=this.type.gc[b],jb(e.name,
a))return e;return null};m.ru=function(a){var b,d,e;b=0;for(d=this.type.gc.length;b<d;b++)if(e=this.type.gc[b],e.V===a)return e;return null};m.no=function(){var a=this.ua.frames[this.u],b=this.zo(this.Mi);this.Mi="";!b||jb(b.name,this.ua.name)&&this.te||(this.ua=b,this.Pf=b.speed,this.Ae=b.Km,0>this.u&&(this.u=0),this.u>=this.ua.frames.length&&(this.u=this.ua.frames.length-1),1===this.co&&(this.u=0),this.te=!0,this.ud=this.Sc.F,this.Ve=!0,this.Jf(a,this.ua.frames[this.u]),this.b.P=!0)};m.oo=function(){var a=
this.ua.frames[this.u],b=this.u;this.u=sa(this.Li);0>this.u&&(this.u=0);this.u>=this.ua.frames.length&&(this.u=this.ua.frames.length-1);b!==this.u&&(this.Jf(a,this.ua.frames[this.u]),this.ud=this.Sc.F,this.b.P=!0);this.Li=-1};m.Jf=function(a,b){var d=a.width,e=a.height,c=b.width,f=b.height;d!=c&&(this.width*=c/d);e!=f&&(this.height*=f/e);this.Sb=b.Sb;this.Tb=b.Tb;this.ba.$h(b.ck);this.na();this.ob=b;this.Ri=b.za;d=0;for(e=this.H.length;d<e;d++)c=this.H[d],c.Cv&&c.Cv(a,b);this.b.trigger(T.prototype.e.Jf,
this)};m.sd=function(a){a.globalAlpha=this.opacity;var b=this.ob,d=b.Ag,e=b.T,c=this.x,f=this.y,g=this.width,k=this.height;if(0===this.j&&0<=g&&0<=k)c-=this.Sb*g,f-=this.Tb*k,this.b.cd&&(c=Math.round(c),f=Math.round(f)),d?a.drawImage(e,b.rg,b.sg,b.width,b.height,c,f,g,k):a.drawImage(e,c,f,g,k);else{this.b.cd&&(c=Math.round(c),f=Math.round(f));a.save();var h=0<g?1:-1,q=0<k?1:-1;a.translate(c,f);1===h&&1===q||a.scale(h,q);a.rotate(this.j*h*q);c=0-this.Sb*oa(g);f=0-this.Tb*oa(k);d?a.drawImage(e,b.rg,
b.sg,b.width,b.height,c,f,oa(g),oa(k)):a.drawImage(e,c,f,oa(g),oa(k));a.restore()}};m.bf=function(a){this.ic(a)};m.ic=function(a){a.qc(this.Ri);a.Af(this.opacity);var b=this.ob,d=this.Kb;if(this.b.cd){var e=Math.round(this.x)-this.x,c=Math.round(this.y)-this.y;b.Ag?a.Fd(d.gb+e,d.hb+c,d.Hb+e,d.Ib+c,d.zb+e,d.Ab+c,d.xb+e,d.yb+c,b.Rm):a.Vh(d.gb+e,d.hb+c,d.Hb+e,d.Ib+c,d.zb+e,d.Ab+c,d.xb+e,d.yb+c)}else b.Ag?a.Fd(d.gb,d.hb,d.Hb,d.Ib,d.zb,d.Ab,d.xb,d.yb,b.Rm):a.Vh(d.gb,d.hb,d.Hb,d.Ib,d.zb,d.Ab,d.xb,d.yb)};
m.uu=function(a){var b=this.ob,d,e;d=0;for(e=b.Hl.length;d<e;d++)if(jb(a,b.Hl[d][0]))return d;return-1};m.wl=function(a,b){var d=this.ob,e=d.Hl,c;z(a)?c=this.uu(a):c=a-1;c=sa(c);if(0>c||c>=e.length)return b?this.x:this.y;var f=(e[c][1]-d.Sb)*this.width,e=e[c][2],e=(e-d.Tb)*this.height,d=Math.cos(this.j);c=Math.sin(this.j);var g=f*d-e*c,e=e*d+f*c,f=g+this.x,e=e+this.y;return b?f:e};var g=[],u=-2,A=[];l.prototype.Or=function(a){if(!a)return!1;var d=this.b,e=d.kj(),c=e.type,f=null;e.J.collmemory?f=e.J.collmemory:
(f={},e.J.collmemory=f);e.J.spriteCreatedDestroyCallback||(e.J.spriteCreatedDestroyCallback=!0,d.Qk(function(a){var b=e.J.collmemory;a=a.uid;var d,c;for(d in b)b.hasOwnProperty(d)&&(c=b[d],c[0]===a||c[1]===a)&&(h(b[d]),delete b[d])}));var g=c.W(),k=a.W(),g=g.wc(),q,n,l,m,p,w,P,v=this.b.jd,N=v-1,E=d.Xa().Mb;for(n=0;n<g.length;n++){l=g[n];k.da?(l.ka(),this.b.sl(l.g,a,l.Ba,A),q=A,this.b.Ms(l,a,q)):q=k.wc();for(m=0;m<q.length;m++)p=q[m],d.gi(l,p)||d.Vs(l,p)?(w=b(f,l,p),w=!w||u<N,t(f,l,p,v),w&&(d.hk(E.qa),
w=c.W(),P=a.W(),w.da=!1,P.da=!1,c===a?(w.d.length=2,w.d[0]=l,w.d[1]=p,c.Tc()):(w.d.length=1,P.d.length=1,w.d[0]=l,P.d[0]=p,c.Tc(),a.Tc()),E.ew(),d.yf(E.qa))):r(f,l,p);K(A)}return!1};var q=null,k=new ea,n=!1,P=[],N=new va(0,0,0,0);e.finish=function(a){if(n){if(a){var b=this.b.Xa().Mb.Ac;a=q.W();var d=k.Ue(),e,c;if(a.da){a.da=!1;K(a.d);e=0;for(c=d.length;e<c;++e)a.d[e]=d[e];if(b)for(K(a.R),e=0,c=q.d.length;e<c;++e)d=q.d[e],k.contains(d)||a.R.push(d)}else if(b)for(b=a.d.length,e=0,c=d.length;e<c;++e)a.d[b+
e]=d[e],Fa(a.R,d[e]);else Ba(a.d,d);q.Tc()}k.clear();n=!1}};l.prototype.Fr=function(a){if(a){var b=!1,d,e,c,f=this.b.kj(),g=f.type,f=f.sj;d=a.W();e=this.b.Xa().Mb.Ac;var h;d.da?(this.ka(),N.Of(this.Ba),N.offset(0,0),this.b.sl(this.g,a,N,P),h=P):h=e?this.b.dv()&&!d.R.length&&d.d.length?d.d:d.R:d.d;q=a;n=g!==a&&!f;d=0;for(e=h.length;d<e;d++)if(c=h[d],this.b.gi(this,c)){b=!0;if(f)break;g!==a&&k.add(c)}K(P);a=b}else a=!1;return a};l.prototype.sn=function(a){return jb(this.Tn,a)};l.prototype.Kr=function(){return!0};
l.prototype.Jf=function(){return!0};w.e=new l;a.prototype.zs=function(a){this.te=!0;this.ud=this.Sc.F;1===a&&0!==this.u&&(this.Li=0,this.rj||this.oo());this.rh||(this.b.ji(this),this.rh=!0)};a.prototype.rs=function(a,b){this.Mi=a;this.co=b;this.rh||(this.b.ji(this),this.rh=!0);this.rj||this.no()};w.L=new a;d.prototype.gr=function(a){a.$b(this.ua.name)};w.xa=new d})();function sc(c){this.b=c}
(function(){function c(){return a.length?a.pop():{}}function l(b){var c,e;c=0;for(e=b.length;c<e;c++)a.push(b[c]);K(b)}function h(a){return a.length&&" "===a.charAt(a.length-1)?a.substring(0,a.length-1):a}function p(){}var t=sc.prototype;t.U=function(){t.L.ys=function(a){this.width!==a&&(this.width=a,this.Ef=!0,this.na())}};t.Aa=function(a){this.la=a;this.b=a.b};var r=t.Aa.prototype;r.U=function(){};r.Uj=function(){if(!this.C){var a,b,e;a=0;for(b=this.d.length;a<b;a++)e=this.d[a],e.Bd=null,e.vf=null,
e.nc=null}};t.ga=function(a){this.type=a;this.b=a.b;this.Eb?K(this.Je):this.Je=[];this.Ef=!0};r=t.ga.prototype;r.U=function(){this.text=this.M[0];this.visible=0===this.M[1];this.font=this.M[2];this.color=this.M[3];this.pj=this.M[4];this.Jk=this.M[5];this.pn=0===this.M[7];this.Xl=this.Ej=this.width;this.Dj=this.height;this.Zl=this.M[8];this.fj=this.Sf="";this.Kq=this.Lq=this.Th=0;this.Hv();this.nc=this.vf=this.Bd=null;this.Ep=!1;this.Ah=this.b.jd;this.Eb?this.Qe.set(0,0,1,1):this.Qe=new va(0,0,1,1);
this.b.p&&this.b.ji(this)};r.Hv=function(){var a=this.font.split(" "),b;for(b=0;b<a.length;b++)if("pt"===a[b].substr(a[b].length-2,2)){this.Th=parseInt(a[b].substr(0,a[b].length-2));this.Em=Math.ceil(this.Th/72*96)+4;0<b&&(this.fj=a[b-1]);this.Sf=a[b+1];for(b+=2;b<a.length;b++)this.Sf+=" "+a[b];break}};r.Fb=function(){return{t:this.text,f:this.font,c:this.color,ha:this.pj,va:this.Jk,wr:this.pn,lho:this.Zl,fn:this.Sf,fs:this.fj,ps:this.Th,pxh:this.Em,tw:this.Lq,th:this.Kq,lrt:this.Ah}};r.Vb=function(a){this.text=
a.t;this.font=a.f;this.color=a.c;this.pj=a.ha;this.Jk=a.va;this.pn=a.wr;this.Zl=a.lho;this.Sf=a.fn;this.fj=a.fs;this.Th=a.ps;this.Em=a.pxh;this.Lq=a.tw;this.Kq=a.th;this.Ah=a.lrt;this.Ef=!0;this.Xl=this.Ej=this.width;this.Dj=this.height};r.fb=function(){if(this.b.p&&this.nc&&300<=this.b.jd-this.Ah){var a=this.g;this.ka();var b=this.Ba;if(b.right<a.ea||b.bottom<a.fa||b.left>a.ta||b.top>a.ra)this.b.p.deleteTexture(this.nc),this.Bd=this.vf=this.nc=null}};r.tg=function(){this.Bd=this.vf=null;this.b.p&&
this.nc&&this.b.p.deleteTexture(this.nc);this.nc=null};r.Di=function(){this.font=this.fj+" "+this.Th.toString()+"pt "+this.Sf;this.Ef=!0;this.b.P=!0};r.sd=function(a,b){a.font=this.font;a.textBaseline="top";a.fillStyle=this.color;a.globalAlpha=b?1:this.opacity;var e=1;b&&(e=Math.abs(this.g.jc()),a.save(),a.scale(e,e));if(this.Ef||this.width!==this.Xl)this.type.la.Fs(this.text,this.Je,a,this.width,this.pn),this.Ef=!1,this.Xl=this.width;this.ka();var e=b?0:this.Kb.gb,c=b?0:this.Kb.hb;this.b.cd&&(e=
e+.5|0,c=c+.5|0);0===this.j||b||(a.save(),a.translate(e,c),a.rotate(this.j),c=e=0);var h=c+this.height,g=this.Em,g=g+this.Zl,l,p;1===this.Jk?c+=Math.max(this.height/2-this.Je.length*g/2,0):2===this.Jk&&(c+=Math.max(this.height-this.Je.length*g-2,0));for(p=0;p<this.Je.length&&!(l=e,1===this.pj?l=e+(this.width-this.Je[p].width)/2:2===this.pj&&(l=e+(this.width-this.Je[p].width)),a.fillText(this.Je[p].text,l,c),c+=g,c>=h-g);p++);(0!==this.j||b)&&a.restore();this.Ah=this.b.jd};r.ic=function(a){if(!(1>
this.width||1>this.height)){var b=this.Ef||this.Ep;this.Ep=!1;var e=this.g.jc(),c=this.g.Wa(),h=this.Qe,g=e*this.width,l=e*this.height,p=Math.ceil(g),q=Math.ceil(l),k=Math.abs(p),n=Math.abs(q),t=this.b.B/2,r=this.b.A/2;this.vf||(this.Bd=document.createElement("canvas"),this.Bd.width=k,this.Bd.height=n,this.Ej=k,this.Dj=n,b=!0,this.vf=this.Bd.getContext("2d"));if(k!==this.Ej||n!==this.Dj)this.Bd.width=k,this.Bd.height=n,this.nc&&(a.deleteTexture(this.nc),this.nc=null),b=!0;b&&(this.vf.clearRect(0,
0,k,n),this.sd(this.vf,!0),this.nc||(this.nc=a.tc(k,n,this.b.Fa,this.b.Zd)),a.Nw(this.Bd,this.nc,this.b.Zd));this.Ej=k;this.Dj=n;a.qc(this.nc);a.Af(this.opacity);a.Kc();a.translate(-t,-r);a.Cc();var x=this.Kb,b=this.g.Ea(x.gb,x.hb,!0,!0),k=this.g.Ea(x.gb,x.hb,!1,!0),n=this.g.Ea(x.Hb,x.Ib,!0,!0),t=this.g.Ea(x.Hb,x.Ib,!1,!0),r=this.g.Ea(x.zb,x.Ab,!0,!0),M=this.g.Ea(x.zb,x.Ab,!1,!0),B=this.g.Ea(x.xb,x.yb,!0,!0),x=this.g.Ea(x.xb,x.yb,!1,!0);if(this.b.cd||0===this.j&&0===c)var F=(b+.5|0)-b,Y=(k+.5|0)-
k,b=b+F,k=k+Y,n=n+F,t=t+Y,r=r+F,M=M+Y,B=B+F,x=x+Y;0===this.j&&0===c?(n=b+p,t=k,r=n,M=k+q,B=b,x=M,h.right=1,h.bottom=1):(h.right=g/p,h.bottom=l/q);a.Fd(b,k,n,t,r,M,B,x,h);a.Kc();a.scale(e,e);a.mk(-this.g.Wa());a.translate((this.g.ea+this.g.ta)/-2,(this.g.fa+this.g.ra)/-2);a.Cc();this.Ah=this.b.jd}};var b=[];t.Bs=function(a){K(b);for(var c="",e,f=0;f<a.length;)if(e=a.charAt(f),"\n"===e)c.length&&(b.push(c),c=""),b.push("\n"),++f;else if(" "===e||"\t"===e||"-"===e){do c+=a.charAt(f),f++;while(f<a.length&&
(" "===a.charAt(f)||"\t"===a.charAt(f)));b.push(c);c=""}else f<a.length&&(c+=e,f++);c.length&&b.push(c)};var a=[];t.Fs=function(a,b,e,f,h){if(a&&a.length)if(2>=f)l(b);else{if(100>=a.length&&-1===a.indexOf("\n")){var g=e.measureText(a).width;if(g<=f){l(b);b.push(c());b[0].text=a;b[0].width=g;return}}this.Gs(a,b,e,f,h)}else l(b)};t.Gs=function(d,l,e,f,p){p&&(this.Bs(d),d=b);var g="",t,r,q,k=0;for(q=0;q<d.length;q++)"\n"===d[q]?(k>=l.length&&l.push(c()),g=h(g),r=l[k],r.text=g,r.width=e.measureText(g).width,
k++,g=""):(t=g,g+=d[q],r=e.measureText(g).width,r>=f&&(k>=l.length&&l.push(c()),t=h(t),r=l[k],r.text=t,r.width=e.measureText(t).width,k++,g=d[q],p||" "!==g||(g="")));g.length&&(k>=l.length&&l.push(c()),g=h(g),r=l[k],r.text=g,r.width=e.measureText(g).width,k++);for(q=k;q<l.length;q++)a.push(l[q]);l.length=k};t.e=new function(){};p.prototype.ws=function(a){la(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.Ef=!0,this.b.P=!0)};t.L=new p;t.xa=new function(){}})();
function tc(c){this.b=c}
(function(){var c=tc.prototype;c.Aa=function(c){this.la=c;this.b=c.b};var l=c.Aa.prototype;l.U=function(){this.C||(this.T=new Image,this.T.ho=this.Xm,this.b.cr(this.T,this.Wm),this.za=this.pattern=null)};l.Uj=function(){this.C||(this.za=null)};l.tm=function(){if(!this.C&&this.d.length){this.za||(this.za=this.b.p.Jj(this.T,!0,this.b.Fa,this.Ym));var c,l;c=0;for(l=this.d.length;c<l;c++)this.d[c].za=this.za}};l.$l=function(){this.C||this.za||!this.b.p||(this.za=this.b.p.Jj(this.T,!0,this.b.Fa,this.Ym))};
l.gn=function(){this.C||this.d.length||!this.za||(this.b.p.deleteTexture(this.za),this.za=null)};l.Bm=function(c){c.drawImage(this.T,0,0)};c.ga=function(c){this.type=c;this.b=c.b};l=c.ga.prototype;l.U=function(){this.visible=0===this.M[0];this.Qe=new va(0,0,0,0);this.Io=!1;this.T=this.type.T;this.b.p?(this.type.$l(),this.za=this.type.za):(this.type.pattern||(this.type.pattern=this.b.Ca.createPattern(this.type.T,"repeat")),this.pattern=this.type.pattern)};l.od=function(){this.Io=!1;this.T=this.type.T};
l.tg=function(){this.b.p&&this.Io&&this.za&&(this.b.p.deleteTexture(this.za),this.za=null)};l.sd=function(c){c.globalAlpha=this.opacity;c.save();c.fillStyle=this.pattern;var l=this.x,t=this.y;this.b.cd&&(l=Math.round(l),t=Math.round(t));var r=-(this.Sb*this.width),b=-(this.Tb*this.height),a=r%this.T.width,d=b%this.T.height;0>a&&(a+=this.T.width);0>d&&(d+=this.T.height);c.translate(l,t);c.rotate(this.j);c.translate(a,d);c.fillRect(r-a,b-d,this.width,this.height);c.restore()};l.bf=function(c){this.ic(c)};
l.ic=function(c){c.qc(this.za);c.Af(this.opacity);var l=this.Qe;l.right=this.width/this.T.width;l.bottom=this.height/this.T.height;var t=this.Kb;if(this.b.cd){var r=Math.round(this.x)-this.x,b=Math.round(this.y)-this.y;c.Fd(t.gb+r,t.hb+b,t.Hb+r,t.Ib+b,t.zb+r,t.Ab+b,t.xb+r,t.yb+b,l)}else c.Fd(t.gb,t.hb,t.Hb,t.Ib,t.zb,t.Ab,t.xb,t.yb,l)};c.e=new function(){};c.L=new function(){};c.xa=new function(){}})();function Z(c){this.b=c}
(function(){function c(a){w=a.x;e=a.y;f=a.z}function l(a,b,c,d){var e;e=m.length?m.pop():new h;e.init(a,b,c,d);return e}function h(){this.ci=this.id=this.y=this.x=this.xk=this.wk=this.Wl=this.time=this.Um=0;this.ki=this.Ek=!1}function p(a){return a.sourceCapabilities&&a.sourceCapabilities.firesTouchEvents||a.originalEvent&&a.originalEvent.sourceCapabilities&&a.originalEvent.sourceCapabilities.firesTouchEvents}function t(){}function r(){}var b=Z.prototype;b.Aa=function(a){this.la=a;this.b=a.b};b.Aa.prototype.U=
function(){};b.ga=function(a){this.type=a;this.b=a.b;this.touches=[];this.hm=!1};var a=b.ga.prototype,d={left:0,top:0};a.Yg=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 w=0,e=0,f=0,m=[];h.prototype.init=function(a,b,c,d){var e=Ya();this.Um=this.Wl=this.time=e;this.wk=a;this.xk=b;this.x=a;this.y=b;this.pressure=this.height=this.width=0;this.id=c;this.ci=d;this.ki=this.Ek=!1};h.prototype.update=function(a,b,c,d,e,f){this.Wl=this.time;this.time=
a;this.x=b;this.y=c;this.width=d;this.height=e;this.pressure=f;!this.ki&&15<=Sa(this.wk,this.xk,this.x,this.y)&&(this.ki=!0)};h.prototype.tv=function(a,b){!this.Ek&&500<=Ya()-this.Um&&!this.ki&&15>Sa(this.wk,this.xk,this.x,this.y)&&(this.Ek=!0,a.Kd=this.ci,a.Fg=this.id,a.Wf=b,a.b.trigger(Z.prototype.e.Vr,a),a.Qd=this.x,a.Rd=this.y,a.b.trigger(Z.prototype.e.Wr,a),a.Wf=0)};var g=-1E3,u=-1E3,A=-1E4;h.prototype.xp=function(a,b){if(!this.Ek){var c=Ya();333>=c-this.Um&&!this.ki&&15>Sa(this.wk,this.xk,this.x,
this.y)&&(a.Kd=this.ci,a.Fg=this.id,a.Wf=b,666>=c-A&&25>Sa(g,u,this.x,this.y)?(a.b.trigger(Z.prototype.e.vn,a),a.Qd=this.x,a.Rd=this.y,a.b.trigger(Z.prototype.e.Qr,a),u=g=-1E3,A=-1E4):(a.b.trigger(Z.prototype.e.ks,a),a.Qd=this.x,a.Rd=this.y,a.b.trigger(Z.prototype.e.Gn,a),g=this.x,u=this.y,A=c),a.Wf=0)}};a.U=function(){this.mv=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.Wf=this.Fg=this.Kd=this.Rd=this.Qd=this.On=this.Nn=this.Mn=this.Ks=this.Js=this.Is=this.Zj=this.Yj=this.Xj=
0;this.Lw=0!==this.M[0];var a=0<this.b.Nb?document:this.b.canvas,b=document;this.b.Db?b=a=window.Canvas:this.b.Hc&&(b=a=window);var d=this;"undefined"!==typeof PointerEvent?(a.addEventListener("pointerdown",function(a){d.Pp(a)},!1),a.addEventListener("pointermove",function(a){d.Op(a)},!1),b.addEventListener("pointerup",function(a){d.Vj(a,!1)},!1),b.addEventListener("pointercancel",function(a){d.Vj(a,!0)},!1),this.b.canvas&&(this.b.canvas.addEventListener("MSGestureHold",function(a){a.preventDefault()},
!1),document.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),this.b.canvas.addEventListener("gesturehold",function(a){a.preventDefault()},!1),document.addEventListener("gesturehold",function(a){a.preventDefault()},!1))):window.navigator.msPointerEnabled?(a.addEventListener("MSPointerDown",function(a){d.Pp(a)},!1),a.addEventListener("MSPointerMove",function(a){d.Op(a)},!1),b.addEventListener("MSPointerUp",function(a){d.Vj(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){d.Vj(a,
!0)},!1),this.b.canvas&&(this.b.canvas.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),document.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1))):(a.addEventListener("touchstart",function(a){d.Rp(a)},!1),a.addEventListener("touchmove",function(a){d.Qp(a)},!1),b.addEventListener("touchend",function(a){d.um(a,!1)},!1),b.addEventListener("touchcancel",function(a){d.um(a,!0)},!1));if(this.mv){var e=function(a){a=a.reading;d.Mn=a.accelerationX;d.Nn=a.accelerationY;
d.On=a.accelerationZ},f=function(a){a=a.reading;d.Xj=a.yawDegrees;d.Yj=a.pitchDegrees;d.Zj=a.rollDegrees},g=Windows.Devices.Sensors.Accelerometer.getDefault();g&&(g.reportInterval=Math.max(g.minimumReportInterval,16),g.addEventListener("readingchanged",e));var h=Windows.Devices.Sensors.Inclinometer.getDefault();h&&(h.reportInterval=Math.max(h.minimumReportInterval,16),h.addEventListener("readingchanged",f));document.addEventListener("visibilitychange",function(){document.hidden||document.msHidden?
(g&&g.removeEventListener("readingchanged",e),h&&h.removeEventListener("readingchanged",f)):(g&&g.addEventListener("readingchanged",e),h&&h.addEventListener("readingchanged",f))},!1)}else window.addEventListener("deviceorientation",function(a){d.Xj=a.alpha||0;d.Yj=a.beta||0;d.Zj=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(d.Is=a.accelerationIncludingGravity.x||0,d.Js=a.accelerationIncludingGravity.y||0,d.Ks=a.accelerationIncludingGravity.z||
0);a.acceleration&&(d.Mn=a.acceleration.x||0,d.Nn=a.acceleration.y||0,d.On=a.acceleration.z||0)},!1);this.Lw&&!this.b.Ia&&(jQuery(document).mousemove(function(a){d.qm(a)}),jQuery(document).mousedown(function(a){d.pm(a)}),jQuery(document).mouseup(function(a){d.rm(a)}));!this.b.fg&&this.b.yc&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(c,null,{frequency:40});this.b.Dw(this)};a.Op=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&
"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var b=this.Yg(a.pointerId),c=Ya();if(0<=b){var e=this.b.Ia?d:jQuery(this.b.canvas).offset(),b=this.touches[b];2>c-b.time||b.update(c,a.pageX-e.left,a.pageY-e.top,a.width||0,a.height||0,a.pressure||0)}}};a.Pp=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&mb(a)&&a.preventDefault();var b=this.b.Ia?d:jQuery(this.b.canvas).offset(),c=a.pageX-b.left,b=a.pageY-b.top;Ya();this.Kd=this.touches.length;
this.Fg=a.pointerId;this.touches.push(l(c,b,a.pointerId,this.Kd));this.b.Na=!0;this.b.trigger(Z.prototype.e.Cn,this);this.b.trigger(Z.prototype.e.Jn,this);this.Qd=c;this.Rd=b;this.b.trigger(Z.prototype.e.In,this);this.b.Na=!1}};a.Vj=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&mb(a)&&a.preventDefault();var d=this.Yg(a.pointerId);this.Kd=0<=d?this.touches[d].ci:-1;this.Fg=0<=d?this.touches[d].id:-1;this.b.Na=!0;this.b.trigger(Z.prototype.e.Bn,
this);this.b.trigger(Z.prototype.e.Hn,this);0<=d&&(b||this.touches[d].xp(this,d),100>m.length&&m.push(this.touches[d]),this.touches.splice(d,1));this.b.Na=!1}};a.Qp=function(a){a.preventDefault&&a.preventDefault();var b=Ya(),c,e,f,g;c=0;for(e=a.changedTouches.length;c<e;c++)if(f=a.changedTouches[c],g=this.Yg(f.identifier),0<=g){var h=this.b.Ia?d:jQuery(this.b.canvas).offset();g=this.touches[g];2>b-g.time||g.update(b,f.pageX-h.left,f.pageY-h.top,2*(f.fy||f.ny||f.Zx||f.by||0),2*(f.gy||f.oy||f.$x||f.cy||
0),f.Tx||f.my||f.Yx||f.ay||0)}};a.Rp=function(a){a.preventDefault&&mb(a)&&a.preventDefault();var b=this.b.Ia?d:jQuery(this.b.canvas).offset();Ya();this.b.Na=!0;var c,e,f,g;c=0;for(e=a.changedTouches.length;c<e;c++)if(f=a.changedTouches[c],g=this.Yg(f.identifier),-1===g){g=f.pageX-b.left;var h=f.pageY-b.top;this.Kd=this.touches.length;this.Fg=f.identifier;this.touches.push(l(g,h,f.identifier,this.Kd));this.b.trigger(Z.prototype.e.Cn,this);this.b.trigger(Z.prototype.e.Jn,this);this.Qd=g;this.Rd=h;this.b.trigger(Z.prototype.e.In,
this)}this.b.Na=!1};a.um=function(a,b){a.preventDefault&&mb(a)&&a.preventDefault();this.b.Na=!0;var d,c,e;d=0;for(c=a.changedTouches.length;d<c;d++)e=a.changedTouches[d],e=this.Yg(e.identifier),0<=e&&(this.Kd=this.touches[e].ci,this.Fg=this.touches[e].id,this.b.trigger(Z.prototype.e.Bn,this),this.b.trigger(Z.prototype.e.Hn,this),b||this.touches[e].xp(this,e),100>m.length&&m.push(this.touches[e]),this.touches.splice(e,1));this.b.Na=!1};a.Di=function(){return this.b.yc&&0===this.Xj&&0!==f?90*f:this.Xj};
a.Rx=function(){return this.b.yc&&0===this.Yj&&0!==e?90*e:this.Yj};a.Sx=function(){return this.b.yc&&0===this.Zj&&0!==w?90*w:this.Zj};a.pm=function(a){p(a)||(this.Rp({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]}),this.hm=!0)};a.qm=function(a){this.hm&&!p(a)&&this.Qp({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};a.rm=function(a){a.preventDefault&&this.b.oj&&!this.b.Zd&&a.preventDefault();this.b.oj=!0;p(a)||(this.um({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]}),
this.hm=!1)};a.ii=function(){var a,b,d,c=Ya();a=0;for(b=this.touches.length;a<b;++a)d=this.touches[a],d.time<=c-50&&(d.Wl=c),d.tv(this,a)};t.prototype.Jn=function(){return!0};t.prototype.Hn=function(){return!0};t.prototype.Cr=function(){return this.touches.length};t.prototype.In=function(a){return a?this.b.fi(a,this.Qd,this.Rd):!1};t.prototype.Cn=function(a){a=Math.floor(a);return a===this.Kd};t.prototype.Bn=function(a){a=Math.floor(a);return a===this.Kd};t.prototype.Vr=function(){return!0};t.prototype.ks=
function(){return!0};t.prototype.vn=function(){return!0};t.prototype.Wr=function(a){return a?this.b.fi(a,this.Qd,this.Rd):!1};t.prototype.Gn=function(a){return a?this.b.fi(a,this.Qd,this.Rd):!1};t.prototype.Qr=function(a){return a?this.b.fi(a,this.Qd,this.Rd):!1};b.e=new t;r.prototype.wi=function(a,b){var d=this.Wf;if(0>d||d>=this.touches.length)a.r(0);else{var c,e,f,g,h;ka(b)?(c=this.b.Vd(0),e=c.scale,f=c.Jb,g=c.Wb,h=c.j,c.scale=1,c.Jb=1,c.Wb=1,c.j=0,a.r(c.Ta(this.touches[d].x,this.touches[d].y,
!0)),c.scale=e,c.Jb=f,c.Wb=g,c.j=h):(c=la(b)?this.b.Vd(b):this.b.$g(b))?a.r(c.Ta(this.touches[d].x,this.touches[d].y,!0)):a.r(0)}};r.prototype.xi=function(a,b){var d=this.Wf;if(0>d||d>=this.touches.length)a.r(0);else{var c,e,f,g,h;ka(b)?(c=this.b.Vd(0),e=c.scale,f=c.Jb,g=c.Xb,h=c.j,c.scale=1,c.Jb=1,c.Xb=1,c.j=0,a.r(c.Ta(this.touches[d].x,this.touches[d].y,!1)),c.scale=e,c.Jb=f,c.Xb=g,c.j=h):(c=la(b)?this.b.Vd(b):this.b.$g(b))?a.r(c.Ta(this.touches[d].x,this.touches[d].y,!1)):a.r(0)}};b.xa=new r})();
function uc(c){this.b=c}
(function(){function c(){}var l=uc.prototype;l.Aa=function(c){this.behavior=c;this.b=c.b};l.Aa.prototype.U=function(){};l.ga=function(c,h){this.type=c;this.behavior=c.behavior;this.k=h;this.b=c.b};var h=l.ga.prototype;h.U=function(){this.Pn=1===this.M[0];this.Wg=this.M[1];this.pi=this.M[2];this.$i=this.M[3];this.ct=this.M[4];this.eb=this.Pn?0:3;this.Eb?this.Mc.reset():this.Mc=new bb;this.tf=this.k.opacity?this.k.opacity:1;this.Pn&&(0===this.Wg?(this.eb=1,0===this.pi&&(this.eb=2)):(this.k.opacity=
0,this.b.P=!0))};h.Fb=function(){return{fit:this.Wg,wt:this.pi,fot:this.$i,s:this.eb,st:this.Mc.F,mo:this.tf}};h.Vb=function(c){this.Wg=c.fit;this.pi=c.wt;this.$i=c.fot;this.eb=c.s;this.Mc.reset();this.Mc.F=c.st;this.tf=c.mo};h.fb=function(){this.Mc.add(this.b.Zg(this.k));0===this.eb&&(this.k.opacity=this.Mc.F/this.Wg*this.tf,this.b.P=!0,this.k.opacity>=this.tf&&(this.k.opacity=this.tf,this.eb=1,this.Mc.reset(),this.b.trigger(uc.prototype.e.Rr,this.k)));1===this.eb&&this.Mc.F>=this.pi&&(this.eb=2,
this.Mc.reset(),this.b.trigger(uc.prototype.e.ns,this.k));2===this.eb&&0!==this.$i&&(this.k.opacity=this.tf-this.Mc.F/this.$i*this.tf,this.b.P=!0,0>this.k.opacity&&(this.k.opacity=0,this.eb=3,this.Mc.reset(),this.b.trigger(uc.prototype.e.Sr,this.k),1===this.ct&&this.b.pe(this.k)))};h.Di=function(){this.eb=0;this.Mc.reset();0===this.Wg?(this.eb=1,0===this.pi&&(this.eb=2)):(this.k.opacity=0,this.b.P=!0)};c.prototype.Sr=function(){return!0};c.prototype.Rr=function(){return!0};c.prototype.ns=function(){return!0};
l.e=new c;l.L=new function(){};l.xa=new function(){}})();function vc(c){this.b=c}
(function(){function c(){}function l(){}var h=vc.prototype;h.Aa=function(c){this.behavior=c;this.b=c.b};h.Aa.prototype.U=function(){};h.ga=function(c,h){this.type=c;this.behavior=c.behavior;this.k=h;this.b=c.b};var p=h.ga.prototype;p.U=function(){this.kd=this.Id=this.eb=this.Tj=this.Wj=0};p.Fb=function(){return{ontime:this.Wj,offtime:this.Tj,stage:this.eb,stagetimeleft:this.Id,timeleft:this.kd}};p.Vb=function(c){this.Wj=c.ontime;this.Tj=c.offtime;this.eb=c.stage;this.Id=c.stagetimeleft;this.kd=c.timeleft;
null===this.kd&&(this.kd=Infinity)};p.fb=function(){if(!(0>=this.kd)){var c=this.b.Zg(this.k);this.kd-=c;0>=this.kd?(this.kd=0,this.k.visible=!0,this.b.P=!0,this.b.trigger(vc.prototype.e.Tr,this.k)):(this.Id-=c,0>=this.Id&&(0===this.eb?(this.k.visible=!1,this.eb=1,this.Id+=this.Tj):(this.k.visible=!0,this.eb=0,this.Id+=this.Wj),this.b.P=!0))}};c.prototype.Tr=function(){return!0};h.e=new c;l.prototype.ur=function(c,h,b){this.Wj=c;this.Tj=h;this.eb=1;this.Id=h;this.kd=b;this.k.visible=!1;this.b.P=!0};
l.prototype.As=function(){this.kd=0;this.k.visible=!0;this.b.P=!0};h.L=new l;h.xa=new function(){}})();function wc(c){this.b=c}
(function(){function c(){}var l=wc.prototype;l.Aa=function(c){this.behavior=c;this.b=c.b};l.Aa.prototype.U=function(){};l.ga=function(c,h){this.type=c;this.behavior=c.behavior;this.k=h;this.b=c.b};var h=l.ga.prototype;h.U=function(){this.Qa=null;this.ak=-1;this.mode=this.gg=this.Ak=this.qg=this.ee=this.Rh=0;var c=this;this.Eb||(this.Dp=function(h){c.om(h)});this.b.Qk(this.Dp)};h.Fb=function(){return{uid:this.Qa?this.Qa.uid:-1,pa:this.Rh,pd:this.ee,msa:this.qg,tsa:this.Ak,lka:this.gg,m:this.mode}};
h.Vb=function(c){this.ak=c.uid;this.Rh=c.pa;this.ee=c.pd;this.qg=c.msa;this.Ak=c.tsa;this.gg=c.lka;this.mode=c.m};h.od=function(){-1===this.ak?this.Qa=null:this.Qa=this.b.ah(this.ak);this.ak=-1};h.om=function(c){this.Qa==c&&(this.Qa=null)};h.tg=function(){this.Qa=null;this.b.$v(this.Dp)};h.fb=function(){};h.ii=function(){if(this.Qa){this.gg!==this.k.j&&(this.qg=Ka(this.qg+(this.k.j-this.gg)));var c=this.k.x,h=this.k.y;if(3===this.mode||4===this.mode){var l=Sa(this.k.x,this.k.y,this.Qa.x,this.Qa.y);
if(l>this.ee||4===this.mode&&l<this.ee)h=Na(this.Qa.x,this.Qa.y,this.k.x,this.k.y),c=this.Qa.x+Math.cos(h)*this.ee,h=this.Qa.y+Math.sin(h)*this.ee}else c=this.Qa.x+Math.cos(this.Qa.j+this.Rh)*this.ee,h=this.Qa.y+Math.sin(this.Qa.j+this.Rh)*this.ee;this.gg=l=Ka(this.qg+(this.Qa.j-this.Ak));0!==this.mode&&1!==this.mode&&3!==this.mode&&4!==this.mode||this.k.x===c&&this.k.y===h||(this.k.x=c,this.k.y=h,this.k.na());0!==this.mode&&2!==this.mode||this.k.j===l||(this.k.j=l,this.k.na())}};l.e=new function(){};
c.prototype.qs=function(c,h){if(c){var l=c.Do(this.k);l&&(this.Qa=l,this.Rh=Na(l.x,l.y,this.k.x,this.k.y)-l.j,this.ee=Sa(l.x,l.y,this.k.x,this.k.y),this.gg=this.qg=this.k.j,this.Ak=l.j,this.mode=h)}};c.prototype.Cs=function(){this.Qa=null};l.L=new c;l.xa=new function(){}})();function Cc(c){this.b=c}
(function(){function c(b){null==b&&(b={});b.x=0;b.y=0;b.a=-1;return b}function l(b){if(null==b||"object"!=typeof b)return b;var a=b.constructor(),c;for(c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);return a}function h(){}function p(){}var t=Cc.prototype;t.Aa=function(b){this.behavior=b;this.b=b.b};t.Aa.prototype.U=function(){};t.ga=function(b,a){this.type=b;this.behavior=b.behavior;this.k=a;this.b=b.b};var r=t.ga.prototype;r.U=function(){this.enabled=1===this.M[0];this.Eb||(this.mc={});this.mc.max=this.M[1];
this.mc.acc=this.M[2];this.mc.dec=this.M[3];this.xw=1===this.M[4];this.cv=1===this.M[5];this.Eb||(this.target={x:0,y:0,a:0});this.Ge=!1;this.Hm=this.fe=this.Xc=0;this.Eb||(this.Ed={x:0,y:0});this.Ed.x=0;this.Ed.y=0;this.Ad=c(this.Ad);this.ng=c(this.ng);this.Bj=null;this.Yf=!1};r.fb=function(){this.Hm=0;this.enabled&&this.Ge&&this.move(this.b.Zg(this.k))};r.move=function(b){if(0!=b){this.Ed.x===this.k.x&&this.Ed.y===this.k.y||this.jq();var a=!1;0!=this.mc.dec&&(a=this.Xc*this.Xc/(2*this.mc.dec)>=this.fe);
a=a?-this.mc.dec:this.mc.acc;0!=a&&this.rk(this.Xc+a*b);b=this.Xc*b;this.fe-=b;var a=!1,c=this.target.a,h=Math.cos(c),c=Math.sin(c);0>=this.fe||0>=this.Xc?(a=!0,this.k.x=this.target.x,this.k.y=this.target.y,0<this.Xc&&(this.Hm=-this.fe/this.Xc),this.wu(),this.rk(0),this.fe=0):(this.k.x+=b*h,this.k.y+=b*c);this.k.na();var e=!1;if(this.xw){var f=this.b.Iq(this.k);f&&(this.b.Xv(this.k,f),this.b.Uv(this.k,-h,-c,Math.max(b,50)),e=!0)}this.Ed.x=this.k.x;this.Ed.y=this.k.y;e?(this.Ge=!1,this.Yf=!0,this.b.trigger(Cc.prototype.e.js,
this.k),this.Yf=!1):a&&(this.Ge=!1,this.Yf=!0,this.b.trigger(Cc.prototype.e.Ur,this.k),this.Yf=!1)}};r.ii=function(){this.Ad.x=this.k.x;this.Ad.y=this.k.y};r.rk=function(b){null!=b?this.Xc=b>this.mc.max?this.mc.max:b:0==this.mc.acc&&(this.Xc=this.mc.max)};r.jq=function(){var b=this.target.x-this.k.x,a=this.target.y-this.k.y;this.target.a=Math.atan2(a,b);this.fe=Math.sqrt(b*b+a*a);this.Ed.x=this.k.x;this.Ed.y=this.k.y};r.sw=function(b,a){this.target.x=b;this.target.y=a;this.rk(null);this.jq();this.Ad.x=
this.k.x;this.Ad.y=this.k.y;this.Ge=!0;this.ng.x=this.k.x;this.ng.y=this.k.y;this.ng.a=La(Na(this.k.x,this.k.y,b,a));this.cv&&this.move(this.Hm)};r.kv=function(){var b=this.b.jd,a=this.Bj!=b;this.Bj=b;return a};r.wu=function(){if(this.kv()){var b=this.k.x-this.Ad.x,a=this.k.y-this.Ad.y;if(0!=b||0!=a)this.Ad.a=La(Math.atan2(a,b))}};r.Fb=function(){return{en:this.enabled,v:l(this.mc),t:l(this.target),is_m:this.Ge,c_spd:this.Xc,rd:this.fe,pp:l(this.Ed),ma:l(this.Ad),ms:l(this.ng),lt:this.Bj}};r.Vb=function(b){this.enabled=
b.en;this.mc=b.v;this.target=b.t;this.Ge=b.is_m;this.Xc=b.c_spd;this.fe=b.rd;this.Ed=b.pp;this.Ad=b.ma;this.ng=b.ms;this.Bj=b.lt};t.e=new h;h.prototype.Ur=function(){return this.Yf};h.prototype.Dr=function(){return this.enabled&&this.Ge};h.prototype.js=function(){return this.Yf};t.L=new p;p.prototype.ss=function(b){this.mc.max=b;this.rk(null)};p.prototype.vs=function(b,a){this.sw(b,a)};p.prototype.Ln=function(){this.Ge=!1};t.xa=new function(){}})();
function oc(){return[W,pc,qc,rc,tc,Z,sc,T,Cc,uc,wc,vc,S.prototype.e.yn,pc.prototype.L.Ln,pc.prototype.L.Play,S.prototype.L.xs,T.prototype.L.qr,vc.prototype.L.As,Z.prototype.e.Cr,wc.prototype.L.Cs,Cc.prototype.L.vs,Z.prototype.xa.wi,Z.prototype.xa.xi,Z.prototype.e.vn,S.prototype.L.pr,T.prototype.L.us,Cc.prototype.e.Dr,S.prototype.e.sr,T.prototype.e.mr,T.prototype.xa.Es,T.prototype.xa.yr,S.prototype.e.rr,S.prototype.xa.random,T.prototype.e.Fr,vc.prototype.L.ur,S.prototype.L.er,S.prototype.e.lr,S.prototype.L.Ds,
Cc.prototype.L.ss,T.prototype.e.nr,T.prototype.e.or,wc.prototype.L.qs,T.prototype.e.Or,T.prototype.xa.wi,T.prototype.xa.xi,sc.prototype.L.ws,S.prototype.e.rn,T.prototype.e.sn,T.prototype.L.zs,T.prototype.e.Er,S.prototype.L.xr,T.prototype.L.ts,T.prototype.L.Jr,W.prototype.L.tr,sc.prototype.L.Kn,Z.prototype.e.Gn,S.prototype.e.kr,T.prototype.xa.gr,T.prototype.L.rs,T.prototype.e.Gr,T.prototype.L.Kn]};
