Файловый менеджер - Редактировать - /home/jogoso94/public_html/jogos/pixel_zombies/c2runtime.js
�азад
// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com 'use strict';var aa,ba,ca,da,E,ea,ia,L,Q,ja,ka,la,ma,qa,ra,T,sa,ta,ua,va,za,Aa,Ba,Ca,Da,Ea,V,Ga,Ha,Ia,Ja,Ka,La,Ma,Na,Oa,Pa,Qa,Ra,Sa,Ta,Ua,Za,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,rb,sb,tb,ub,vb,wb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,Xb,Yb,Zb,$b,ac,bc,cc={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(e){return e.__proto__}:function(e){return e.constructor.prototype}); (function(){function e(d,q,a,n){this.set(d,q,a,n)}function r(){this.Qa=this.Pa=this.Sa=this.Ra=this.eb=this.cb=this.wa=this.va=0}function m(d,q,a,n){d<q?a<n?(s=d<a?d:a,y=q>n?q:n):(s=d<n?d:n,y=q>a?q:a):a<n?(s=q<a?q:a,y=d>n?d:n):(s=q<n?q:n,y=d>a?d:a)}function p(){this.items=this.Xc=null;this.Wf=0;n&&(this.Xc=new Set);this.wg=[];this.je=!0}function v(d){u[F++]=d}function c(){this.X=this.Wj=this.y=this.zk=0}function b(d){this.$a=[];this.li=this.ni=this.oi=this.mi=0;this.Th(d)}function h(d,q){this.Ck= d;this.Bk=q;this.cells={}}function t(d,q){this.Ck=d;this.Bk=q;this.cells={}}function g(d,q,a){var n;return S.length?(n=S.pop(),n.el=d,n.x=q,n.y=a,n):new ba(d,q,a)}function a(d,q,a){this.el=d;this.x=q;this.y=a;this.kb=new ca}function l(d,q,a){var n;return C.length?(n=C.pop(),n.el=d,n.x=q,n.y=a,n):new da(d,q,a)}function w(d,q,a){this.el=d;this.x=q;this.y=a;this.kb=[];this.Vf=!0;this.od=new ca;this.Ag=!1}function f(d,q){return d.ad-q.ad}E=function(d){window.console&&window.console.log&&window.console.log(d)}; ea=function(d){window.console&&window.console.error&&window.console.error(d)};aa=function(d){return d};ia=function(d){return"undefined"===typeof d};L=function(d){return"number"===typeof d};Q=function(d){return"string"===typeof d};ja=function(d){return 0<d&&0===(d-1&d)};ka=function(d){--d;for(var q=1;32>q;q<<=1)d|=d>>q;return d+1};la=function(d){return 0>d?-d:d};ma=function(d,q){return d>q?d:q};qa=function(d,q){return d<q?d:q};ra=Math.PI;T=function(d){return 0<=d?d|0:(d|0)-1};sa=function(d){var q= d|0;return q===d?q:q+1};ta=function(d,q,a,n,u,k,f,l){var c,b,F,g;d<a?(b=d,c=a):(b=a,c=d);u<f?(g=u,F=f):(g=f,F=u);if(c<g||b>F)return!1;q<n?(b=q,c=n):(b=n,c=q);k<l?(g=k,F=l):(g=l,F=k);if(c<g||b>F)return!1;c=u-d+f-a;b=k-q+l-n;d=a-d;q=n-q;u=f-u;k=l-k;l=la(q*u-k*d);return la(u*b-k*c)>l?!1:la(d*b-q*c)<=l};e.prototype.set=function(d,q,a,n){this.left=d;this.top=q;this.right=a;this.bottom=n};e.prototype.Bi=function(d){this.left=d.left;this.top=d.top;this.right=d.right;this.bottom=d.bottom};e.prototype.width= function(){return this.right-this.left};e.prototype.height=function(){return this.bottom-this.top};e.prototype.offset=function(d,q){this.left+=d;this.top+=q;this.right+=d;this.bottom+=q;return this};e.prototype.normalize=function(){var d=0;this.left>this.right&&(d=this.left,this.left=this.right,this.right=d);this.top>this.bottom&&(d=this.top,this.top=this.bottom,this.bottom=d)};e.prototype.lu=function(d){return!(d.right<this.left||d.bottom<this.top||d.left>this.right||d.top>this.bottom)};e.prototype.mu= function(d,q,a){return!(d.right+q<this.left||d.bottom+a<this.top||d.left+q>this.right||d.top+a>this.bottom)};e.prototype.yb=function(d,q){return d>=this.left&&d<=this.right&&q>=this.top&&q<=this.bottom};e.prototype.Li=function(d){return this.left===d.left&&this.top===d.top&&this.right===d.right&&this.bottom===d.bottom};ua=e;r.prototype.Sh=function(d){this.va=d.left;this.wa=d.top;this.cb=d.right;this.eb=d.top;this.Ra=d.right;this.Sa=d.bottom;this.Pa=d.left;this.Qa=d.bottom};r.prototype.Mp=function(d, q){if(0===q)this.Sh(d);else{var a=Math.sin(q),n=Math.cos(q),u=d.left*a,k=d.top*a,f=d.right*a,a=d.bottom*a,l=d.left*n,c=d.top*n,b=d.right*n,n=d.bottom*n;this.va=l-k;this.wa=c+u;this.cb=b-k;this.eb=c+f;this.Ra=b-a;this.Sa=n+f;this.Pa=l-a;this.Qa=n+u}};r.prototype.offset=function(d,q){this.va+=d;this.wa+=q;this.cb+=d;this.eb+=q;this.Ra+=d;this.Sa+=q;this.Pa+=d;this.Qa+=q;return this};var s=0,y=0;r.prototype.qn=function(d){m(this.va,this.cb,this.Ra,this.Pa);d.left=s;d.right=y;m(this.wa,this.eb,this.Sa, this.Qa);d.top=s;d.bottom=y};r.prototype.yb=function(d,q){var a=this.cb-this.va,n=this.eb-this.wa,u=this.Ra-this.va,k=this.Sa-this.wa,f=d-this.va,l=q-this.wa,c=a*a+n*n,b=a*u+n*k,n=a*f+n*l,F=u*u+k*k,g=u*f+k*l,h=1/(c*F-b*b),a=(F*n-b*g)*h,c=(c*g-b*n)*h;if(0<=a&&0<c&&1>a+c)return!0;a=this.Pa-this.va;n=this.Qa-this.wa;c=a*a+n*n;b=a*u+n*k;n=a*f+n*l;h=1/(c*F-b*b);a=(F*n-b*g)*h;c=(c*g-b*n)*h;return 0<=a&&0<c&&1>a+c};r.prototype.Lc=function(d,q){if(q)switch(d){case 0:return this.va;case 1:return this.cb;case 2:return this.Ra; case 3:return this.Pa;case 4:return this.va;default:return this.va}else switch(d){case 0:return this.wa;case 1:return this.eb;case 2:return this.Sa;case 3:return this.Qa;case 4:return this.wa;default:return this.wa}};r.prototype.To=function(){return(this.va+this.cb+this.Ra+this.Pa)/4};r.prototype.Uo=function(){return(this.wa+this.eb+this.Sa+this.Qa)/4};r.prototype.ko=function(d){var q=d.To(),a=d.Uo();if(this.yb(q,a))return!0;q=this.To();a=this.Uo();if(d.yb(q,a))return!0;var n,u,k,f,l,c,b,F;for(b= 0;4>b;b++)for(F=0;4>F;F++)if(q=this.Lc(b,!0),a=this.Lc(b,!1),n=this.Lc(b+1,!0),u=this.Lc(b+1,!1),k=d.Lc(F,!0),f=d.Lc(F,!1),l=d.Lc(F+1,!0),c=d.Lc(F+1,!1),ta(q,a,n,u,k,f,l,c))return!0;return!1};va=r;za=function(d,q){for(var a in q)q.hasOwnProperty(a)&&(d[a]=q[a]);return d};Aa=function(d,q){var a,n;q=T(q);if(!(0>q||q>=d.length)){a=q;for(n=d.length-1;a<n;a++)d[a]=d[a+1];d.length=n}};Ba=function(d,q){d.length=q.length;var a,n;a=0;for(n=q.length;a<n;a++)d[a]=q[a]};Ca=function(d,q){d.push.apply(d,q)};Da= function(d,q){var a,n;a=0;for(n=d.length;a<n;++a)if(d[a]===q)return a;return-1};Ea=function(d,q){var a=Da(d,q);-1!==a&&Aa(d,a)};V=function(d){return d/(180/ra)};Ga=function(d){return 180/ra*d};Ha=function(d){d%=360;0>d&&(d+=360);return d};Ia=function(d){d%=2*ra;0>d&&(d+=2*ra);return d};Ja=function(d){return Ha(Ga(d))};Ka=function(d){return Ia(V(d))};La=function(d,q,a,n){return Math.atan2(n-q,a-d)};Ma=function(d,q){if(d===q)return 0;var a=Math.sin(d),n=Math.cos(d),u=Math.sin(q),k=Math.cos(q),a=a*u+ n*k;return 1<=a?0:-1>=a?ra:Math.acos(a)};Na=function(d,q,a){var n=Math.sin(d),u=Math.cos(d),k=Math.sin(q),f=Math.cos(q);return Math.acos(n*k+u*f)>a?0<u*k-n*f?Ia(d+a):Ia(d-a):Ia(q)};Oa=function(d,q){var a=Math.sin(d),n=Math.cos(d),u=Math.sin(q),k=Math.cos(q);return 0>=n*u-a*k};Pa=function(d,q,a,n,u,k){if(0===a)return k?d:q;var f=Math.sin(a);a=Math.cos(a);d-=n;q-=u;var l=d*f;d=d*a-q*f;q=q*a+l;return k?d+n:q+u};Qa=function(d,q,a,n){d=a-d;q=n-q;return Math.sqrt(d*d+q*q)};Ra=function(d,q){return!d!==!q}; Sa=function(d,q,a){return d+(q-d)*a};Ta=function(d){for(var q in d)if(d.hasOwnProperty(q))return!0;return!1};Ua=function(d){for(var q in d)d.hasOwnProperty(q)&&delete d[q]};var D=+new Date;Za=function(){if("undefined"!==typeof window.performance){var d=window.performance;if("undefined"!==typeof d.now)return d.now();if("undefined"!==typeof d.webkitNow)return d.webkitNow();if("undefined"!==typeof d.mozNow)return d.mozNow();if("undefined"!==typeof d.msNow)return d.msNow()}return Date.now()-D};var k= !1,d=k=!1,q=!1;"undefined"!==typeof window&&(k=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),k=!k&&/safari/i.test(navigator.userAgent),d=/(iphone|ipod|ipad)/i.test(navigator.userAgent),q=window.c2ejecta);var n=!k&&!q&&!d&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;p.prototype.contains=function(d){return this.Md()?!1:n?this.Xc.has(d):this.items&&this.items.hasOwnProperty(d)};p.prototype.add=function(d){if(n)this.Xc.has(d)||(this.Xc.add(d),this.je= !1);else{var q=d.toString(),a=this.items;a?a.hasOwnProperty(q)||(a[q]=d,this.Wf++,this.je=!1):(this.items={},this.items[q]=d,this.Wf=1,this.je=!1)}};p.prototype.remove=function(d){if(!this.Md())if(n)this.Xc.has(d)&&(this.Xc["delete"](d),this.je=!1);else if(this.items){d=d.toString();var q=this.items;q.hasOwnProperty(d)&&(delete q[d],this.Wf--,this.je=!1)}};p.prototype.clear=function(){this.Md()||(n?this.Xc.clear():(this.items=null,this.Wf=0),this.wg.length=0,this.je=!0)};p.prototype.Md=function(){return 0=== this.count()};p.prototype.count=function(){return n?this.Xc.size:this.Wf};var u=null,F=0;p.prototype.Bv=function(){if(!this.je){if(n)this.wg.length=this.Xc.size,u=this.wg,F=0,this.Xc.forEach(v),u=null,F=0;else{var d=this.wg;d.length=this.Wf;var q,a=0,k=this.items;if(k)for(q in k)k.hasOwnProperty(q)&&(d[a++]=k[q])}this.je=!0}};p.prototype.He=function(){this.Bv();return this.wg};ca=p;new ca;$a=function(d,q){n?ab(d,q.Xc):bb(d,q.He())};ab=function(d,q){var a,n,k,u;n=a=0;for(k=d.length;a<k;++a)u=d[a], q.has(u)||(d[n++]=u);d.length=n};bb=function(d,q){var a,n,k,u;n=a=0;for(k=d.length;a<k;++a)u=d[a],-1===Da(q,u)&&(d[n++]=u);d.length=n};c.prototype.add=function(d){this.y=d-this.zk;this.Wj=this.X+this.y;this.zk=this.Wj-this.X-this.y;this.X=this.Wj};c.prototype.reset=function(){this.X=this.Wj=this.y=this.zk=0};cb=c;db=function(d){return d.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};b.prototype.Th=function(d){this.yp=d;this.Vc=d.length/2;this.$a.length=d.length;this.qi=this.ri=-1;this.tn=0};b.prototype.Sf= function(){return!this.yp.length};b.prototype.xa=function(){for(var d=this.$a,q=d[0],a=q,n=d[1],k=n,u,f,l=1,c=this.Vc;l<c;++l)f=2*l,u=d[f],f=d[f+1],u<q&&(q=u),u>a&&(a=u),f<n&&(n=f),f>k&&(k=f);this.mi=q;this.ni=a;this.oi=n;this.li=k};b.prototype.Sh=function(d,q,a){this.$a.length=8;this.Vc=4;var n=this.$a;n[0]=d.left-q;n[1]=d.top-a;n[2]=d.right-q;n[3]=d.top-a;n[4]=d.right-q;n[5]=d.bottom-a;n[6]=d.left-q;n[7]=d.bottom-a;this.ri=d.right-d.left;this.qi=d.bottom-d.top;this.xa()};b.prototype.pg=function(d, q,a,n,u){this.$a.length=8;this.Vc=4;var k=this.$a;k[0]=d.va-q;k[1]=d.wa-a;k[2]=d.cb-q;k[3]=d.eb-a;k[4]=d.Ra-q;k[5]=d.Sa-a;k[6]=d.Pa-q;k[7]=d.Qa-a;this.ri=n;this.qi=u;this.xa()};b.prototype.Lp=function(d){this.Vc=d.Vc;Ba(this.$a,d.$a);this.mi=d.mi;this.oi-d.oi;this.ni=d.ni;this.li=d.li};b.prototype.If=function(d,q,a){if(this.ri!==d||this.qi!==q||this.tn!==a){this.ri=d;this.qi=q;this.tn=a;var n,k,u,f,l,c=0,b=1,F=this.yp,g=this.$a;0!==a&&(c=Math.sin(a),b=Math.cos(a));a=0;for(u=this.Vc;a<u;a++)n=2*a, k=n+1,f=F[n]*d,l=F[k]*q,g[n]=f*b-l*c,g[k]=l*b+f*c;this.xa()}};b.prototype.yb=function(d,q){var a=this.$a;if(d===a[0]&&q===a[1])return!0;var n,k,u,f=this.Vc,l=this.mi-110,c=this.oi-101,b=this.ni+131,F=this.li+120,g,h,C=0,s=0;for(n=0;n<f;n++)k=2*n,u=(n+1)%f*2,g=a[k],k=a[k+1],h=a[u],u=a[u+1],ta(l,c,d,q,g,k,h,u)&&C++,ta(b,F,d,q,g,k,h,u)&&s++;return 1===C%2||1===s%2};b.prototype.ah=function(d,q,a){var n=d.$a,k=this.$a;if(this.yb(n[0]+q,n[1]+a)||d.yb(k[0]-q,k[1]-a))return!0;var u,f,l,c,b,F,g,h,C,s,w,S; u=0;for(c=this.Vc;u<c;u++)for(f=2*u,l=(u+1)%c*2,h=k[f],f=k[f+1],C=k[l],s=k[l+1],l=0,g=d.Vc;l<g;l++)if(b=2*l,F=(l+1)%g*2,w=n[b]+q,b=n[b+1]+a,S=n[F]+q,F=n[F+1]+a,ta(h,f,C,s,w,b,S,F))return!0;return!1};eb=b;h.prototype.re=function(d,q,a){var n;n=this.cells[d];return n?(n=n[q])?n:a?(n=g(this,d,q),this.cells[d][q]=n):null:a?(n=g(this,d,q),this.cells[d]={},this.cells[d][q]=n):null};h.prototype.gc=function(d){return T(d/this.Ck)};h.prototype.hc=function(d){return T(d/this.Bk)};h.prototype.update=function(d, q,a){var n,k,u,f,l;if(q)for(n=q.left,k=q.right;n<=k;++n)for(u=q.top,f=q.bottom;u<=f;++u)if(!a||!a.yb(n,u))if(l=this.re(n,u,!1))l.remove(d),l.Md()&&(l.kb.clear(),1E3>S.length&&S.push(l),this.cells[n][u]=null);if(a)for(n=a.left,k=a.right;n<=k;++n)for(u=a.top,f=a.bottom;u<=f;++u)q&&q.yb(n,u)||this.re(n,u,!0).ll(d)};h.prototype.Jj=function(d,q){var a,n,k,u,f,l;a=this.gc(d.left);k=this.hc(d.top);n=this.gc(d.right);for(f=this.hc(d.bottom);a<=n;++a)for(u=k;u<=f;++u)(l=this.re(a,u,!1))&&l.dump(q)};fb=h;t.prototype.re= function(d,q,a){var n;n=this.cells[d];return n?(n=n[q])?n:a?(n=l(this,d,q),this.cells[d][q]=n):null:a?(n=l(this,d,q),this.cells[d]={},this.cells[d][q]=n):null};t.prototype.gc=function(d){return T(d/this.Ck)};t.prototype.hc=function(d){return T(d/this.Bk)};t.prototype.update=function(d,q,a){var n,u,k,f,l;if(q)for(n=q.left,u=q.right;n<=u;++n)for(k=q.top,f=q.bottom;k<=f;++k)if(!a||!a.yb(n,k))if(l=this.re(n,k,!1))l.remove(d),l.Md()&&(l.reset(),1E3>C.length&&C.push(l),this.cells[n][k]=null);if(a)for(n= a.left,u=a.right;n<=u;++n)for(k=a.top,f=a.bottom;k<=f;++k)q&&q.yb(n,k)||this.re(n,k,!0).ll(d)};t.prototype.Jj=function(d,q,a,n,k){var u,f;d=this.gc(d);q=this.hc(q);a=this.gc(a);for(u=this.hc(n);d<=a;++d)for(n=q;n<=u;++n)(f=this.re(d,n,!1))&&f.dump(k)};t.prototype.Du=function(d){var q,a,n,k,u;q=d.left;n=d.top;a=d.right;for(k=d.bottom;q<=a;++q)for(d=n;d<=k;++d)if(u=this.re(q,d,!1))u.Vf=!1};gb=t;var S=[];a.prototype.Md=function(){return this.kb.Md()};a.prototype.ll=function(d){this.kb.add(d)};a.prototype.remove= function(d){this.kb.remove(d)};a.prototype.dump=function(d){Ca(d,this.kb.He())};ba=a;var C=[];w.prototype.Md=function(){if(!this.kb.length)return!0;if(this.kb.length>this.od.count())return!1;this.Rk();return!0};w.prototype.ll=function(d){this.od.contains(d)?(this.od.remove(d),this.od.Md()&&(this.Ag=!1)):this.kb.length?(this.kb[this.kb.length-1].jd()>d.jd()&&(this.Vf=!1),this.kb.push(d)):(this.kb.push(d),this.Vf=!0)};w.prototype.remove=function(d){this.od.add(d);this.Ag=!0;30<=this.od.count()&&this.Rk()}; w.prototype.Rk=function(){this.Ag&&(this.od.count()===this.kb.length?this.reset():($a(this.kb,this.od),this.od.clear(),this.Ag=!1))};w.prototype.Us=function(){this.Vf||(this.kb.sort(f),this.Vf=!0)};w.prototype.reset=function(){this.kb.length=0;this.Vf=!0;this.od.clear();this.Ag=!1};w.prototype.dump=function(d){this.Rk();this.Us();this.kb.length&&d.push(this.kb)};da=w;var oa="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" "); hb=function(d){return 0>=d||11<=d?"source-over":oa[d-1]};ib=function(d,q,a){if(a)switch(d.Ab=a.ONE,d.zb=a.ONE_MINUS_SRC_ALPHA,q){case 1:d.Ab=a.ONE;d.zb=a.ONE;break;case 3:d.Ab=a.ONE;d.zb=a.ZERO;break;case 4:d.Ab=a.ONE_MINUS_DST_ALPHA;d.zb=a.ONE;break;case 5:d.Ab=a.DST_ALPHA;d.zb=a.ZERO;break;case 6:d.Ab=a.ZERO;d.zb=a.SRC_ALPHA;break;case 7:d.Ab=a.ONE_MINUS_DST_ALPHA;d.zb=a.ZERO;break;case 8:d.Ab=a.ZERO;d.zb=a.ONE_MINUS_SRC_ALPHA;break;case 9:d.Ab=a.DST_ALPHA;d.zb=a.ONE_MINUS_SRC_ALPHA;break;case 10:d.Ab= a.ONE_MINUS_DST_ALPHA,d.zb=a.SRC_ALPHA}};jb=function(d){return Math.round(1E6*d)/1E6};kb=function(d,q){return"string"!==typeof d||"string"!==typeof q||d.length!==q.length?!1:d===q?!0:d.toLowerCase()===q.toLowerCase()};lb=function(d){d=d.target;return!d||d===document||d===window||document&&document.body&&d===document.body||kb(d.tagName,"canvas")?!0:!1}})();var dc="undefined"!==typeof Float32Array?Float32Array:Array;function ec(e){var r=new dc(3);e&&(r[0]=e[0],r[1]=e[1],r[2]=e[2]);return r} function fc(e){var r=new dc(16);e&&(r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r[8]=e[8],r[9]=e[9],r[10]=e[10],r[11]=e[11],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15]);return r}function gc(e,r){r[0]=e[0];r[1]=e[1];r[2]=e[2];r[3]=e[3];r[4]=e[4];r[5]=e[5];r[6]=e[6];r[7]=e[7];r[8]=e[8];r[9]=e[9];r[10]=e[10];r[11]=e[11];r[12]=e[12];r[13]=e[13];r[14]=e[14];r[15]=e[15]} function hc(e,r){var m=r[0],p=r[1];r=r[2];e[0]*=m;e[1]*=m;e[2]*=m;e[3]*=m;e[4]*=p;e[5]*=p;e[6]*=p;e[7]*=p;e[8]*=r;e[9]*=r;e[10]*=r;e[11]*=r} function ic(e,r,m,p){p||(p=fc());var v,c,b,h,t,g,a,l,w=e[0],f=e[1];e=e[2];c=m[0];b=m[1];v=m[2];m=r[1];g=r[2];w===r[0]&&f===m&&e===g?(e=p,e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1):(m=w-r[0],g=f-r[1],a=e-r[2],l=1/Math.sqrt(m*m+g*g+a*a),m*=l,g*=l,a*=l,r=b*a-v*g,v=v*m-c*a,c=c*g-b*m,(l=Math.sqrt(r*r+v*v+c*c))?(l=1/l,r*=l,v*=l,c*=l):c=v=r=0,b=g*c-a*v,h=a*r-m*c,t=m*v-g*r,(l=Math.sqrt(b*b+h*h+t*t))?(l=1/l,b*=l,h*=l,t*=l):t=h=b=0, p[0]=r,p[1]=b,p[2]=m,p[3]=0,p[4]=v,p[5]=h,p[6]=g,p[7]=0,p[8]=c,p[9]=t,p[10]=a,p[11]=0,p[12]=-(r*w+v*f+c*e),p[13]=-(b*w+h*f+t*e),p[14]=-(m*w+g*f+a*e),p[15]=1)} (function(){function e(c){this.$e=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.un=ec([0,0,100]);this.Do=ec([0,0,0]);this.gq=ec([0,1,0]);this.Km=ec([1,1,1]);this.Gn=!0;this.Hl=fc();this.Bc=fc();this.vo=fc();this.Hk=fc();this.n=c;this.fo()}function r(c,b,h){this.n=c;this.Uh=b;this.name=h;this.Ac=c.getAttribLocation(b,"aPos");this.we=c.getAttribLocation(b,"aTex");this.Bo=c.getUniformLocation(b,"matP");this.pj=c.getUniformLocation(b,"matMV");this.bg= c.getUniformLocation(b,"opacity");this.Co=c.getUniformLocation(b,"samplerFront");this.wh=c.getUniformLocation(b,"samplerBack");this.pf=c.getUniformLocation(b,"destStart");this.of=c.getUniformLocation(b,"destEnd");this.Dl=c.getUniformLocation(b,"seconds");this.Cl=c.getUniformLocation(b,"pixelWidth");this.Bl=c.getUniformLocation(b,"pixelHeight");this.vh=c.getUniformLocation(b,"layerScale");this.uh=c.getUniformLocation(b,"layerAngle");this.yh=c.getUniformLocation(b,"viewOrigin");this.xh=c.getUniformLocation(b, "scrollPos");this.gu=!!(this.Cl||this.Bl||this.Dl||this.wh||this.pf||this.of||this.vh||this.uh||this.yh||this.xh);this.Lo=this.Mo=-999;this.sj=1;this.Ho=this.Go=0;this.Jo=this.Fo=this.Eo=1;this.Oo=this.No=this.Qo=this.Po=this.Io=0;this.wl=[];this.Ko=fc();this.bg&&c.uniform1f(this.bg,1);this.Co&&c.uniform1i(this.Co,0);this.wh&&c.uniform1i(this.wh,1);this.pf&&c.uniform2f(this.pf,0,0);this.of&&c.uniform2f(this.of,1,1);this.vh&&c.uniform1f(this.vh,1);this.uh&&c.uniform1f(this.uh,0);this.yh&&c.uniform2f(this.yh, 0,0);this.xh&&c.uniform2f(this.xh,0,0);this.Ve=!1}function m(c,b){this.type=c;this.B=b;this.n=b.n;this.kd=this.Gc=this.kp=0;this.na=this.Zc=null;this.Np=[]}e.prototype.fo=function(){var c=this.n,b;this.wo=1;this.jf=this.hf=null;this.Fi=1;c.clearColor(0,0,0,0);c.clear(c.COLOR_BUFFER_BIT);c.enable(c.BLEND);c.blendFunc(c.ONE,c.ONE_MINUS_SRC_ALPHA);c.disable(c.CULL_FACE);c.disable(c.DEPTH_TEST);this.xo=c.ONE;this.uo=c.ONE_MINUS_SRC_ALPHA;this.Xl=c.createBuffer();c.bindBuffer(c.ARRAY_BUFFER,this.Xl);this.ei= Array(4);this.Yh=Array(4);for(b=0;4>b;b++)this.ei[b]=c.createBuffer(),c.bindBuffer(c.ARRAY_BUFFER,this.ei[b]),this.Yh[b]=c.createBuffer(),c.bindBuffer(c.ARRAY_BUFFER,this.Yh[b]);this.Cd=0;this.ju=c.createBuffer();c.bindBuffer(c.ELEMENT_ARRAY_BUFFER,this.ju);this.Gm=new Float32Array(16E3);this.um=new Float32Array(16E3);this.Qu=new Float32Array(32E3);for(var h=new Uint16Array(12E3),t=b=0;12E3>b;)h[b++]=t,h[b++]=t+1,h[b++]=t+2,h[b++]=t,h[b++]=t+2,h[b++]=t+3,t+=4;c.bufferData(c.ELEMENT_ARRAY_BUFFER,h, c.STATIC_DRAW);this.Yl=this.xd=0;this.ab=[];b=this.Gk({src:"varying mediump vec2 vTex;\nuniform lowp float opacity;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, vTex);\n\tgl_FragColor *= opacity;\n}"},"attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}","<default>"); this.ab.push(b);b=this.Gk({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.ab.push(b);for(var g in jc)jc.hasOwnProperty(g)&&this.ab.push(this.Gk(jc[g], "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}",g));c.activeTexture(c.TEXTURE0);c.bindTexture(c.TEXTURE_2D,null);this.ie=[];this.Ad=0;this.Vb=!1;this.Cn=this.oh=-1;this.Jg=null;this.yt=c.createFramebuffer();this.Dp=null;this.Fe=ec([0,0,0]);this.Ro=c.getParameter(c.ALIASED_POINT_SIZE_RANGE)[1];2048<this.Ro&& (this.Ro=2048);this.ud(0)};r.prototype.Cm=function(c){var b=this.Ko;if(b[0]!==c[0]||b[1]!==c[1]||b[2]!==c[2]||b[3]!==c[3]||b[4]!==c[4]||b[5]!==c[5]||b[6]!==c[6]||b[7]!==c[7]||b[8]!==c[8]||b[9]!==c[9]||b[10]!==c[10]||b[11]!==c[11]||b[12]!==c[12]||b[13]!==c[13]||b[14]!==c[14]||b[15]!==c[15])gc(c,this.Ko),this.n.uniformMatrix4fv(this.pj,!1,c)};e.prototype.Gk=function(c,b,h){var t=this.n,g=t.createShader(t.FRAGMENT_SHADER);t.shaderSource(g,c.src);t.compileShader(g);if(!t.getShaderParameter(g,t.COMPILE_STATUS))return t.deleteShader(g), null;var a=t.createShader(t.VERTEX_SHADER);t.shaderSource(a,b);t.compileShader(a);if(!t.getShaderParameter(a,t.COMPILE_STATUS))return t.deleteShader(g),t.deleteShader(a),null;b=t.createProgram();t.attachShader(b,g);t.attachShader(b,a);t.linkProgram(b);if(!t.getProgramParameter(b,t.LINK_STATUS))return t.deleteShader(g),t.deleteShader(a),t.deleteProgram(b),null;t.useProgram(b);t.deleteShader(g);t.deleteShader(a);h=new r(t,b,h);h.Ok=c.Ok||0;h.Pk=c.Pk||0;h.Bn=!!c.Bn;h.mn=!!c.mn;h.R=c.R||[];c=0;for(g= h.R.length;c<g;c++)h.R[c][1]=t.getUniformLocation(b,h.R[c][0]),h.wl.push(0),t.uniform1f(h.R[c][1],0);return h};e.prototype.bl=function(c){var b,h;b=0;for(h=this.ab.length;b<h;b++)if(this.ab[b].name===c)return b;return-1};e.prototype.xp=function(c,b,h){var t=this.Bc,g=this.Hl,a=[0,0,0,0,0,0,0,0];a[0]=t[0]*c+t[4]*b+t[12];a[1]=t[1]*c+t[5]*b+t[13];a[2]=t[2]*c+t[6]*b+t[14];a[3]=t[3]*c+t[7]*b+t[15];a[4]=g[0]*a[0]+g[4]*a[1]+g[8]*a[2]+g[12]*a[3];a[5]=g[1]*a[0]+g[5]*a[1]+g[9]*a[2]+g[13]*a[3];a[6]=g[2]*a[0]+ g[6]*a[1]+g[10]*a[2]+g[14]*a[3];a[7]=-a[2];0!==a[7]&&(a[7]=1/a[7],a[4]*=a[7],a[5]*=a[7],a[6]*=a[7],h[0]=(.5*a[4]+.5)*this.width,h[1]=(.5*a[5]+.5)*this.height)};e.prototype.Be=function(c,b,h){if(this.width!==c||this.height!==b||h){this.Pe();this.width=c;this.height=b;this.n.viewport(0,0,c,b);b=c/b;var t=this.Hl,g;g=1*Math.tan(45*Math.PI/360);b*=g;c=-b;h=-g;t||(t=fc());var a=b-c,l=g-h;t[0]=2/a;t[1]=0;t[2]=0;t[3]=0;t[4]=0;t[5]=2/l;t[6]=0;t[7]=0;t[8]=(b+c)/a;t[9]=(g+h)/l;t[10]=-1001/999;t[11]=-1;t[12]= 0;t[13]=0;t[14]=-2E3/999;t[15]=0;ic(this.un,this.Do,this.gq,this.Bc);c=[0,0];b=[0,0];this.xp(0,0,c);this.xp(1,1,b);this.Km[0]=1/(b[0]-c[0]);this.Km[1]=-1/(b[1]-c[1]);c=0;for(b=this.ab.length;c<b;c++)h=this.ab[c],h.Ve=!1,h.Bo&&(this.n.useProgram(h.Uh),this.n.uniformMatrix4fv(h.Bo,!1,this.Hl));this.n.useProgram(this.ab[this.oh].Uh);this.n.bindTexture(this.n.TEXTURE_2D,null);this.n.activeTexture(this.n.TEXTURE1);this.n.bindTexture(this.n.TEXTURE_2D,null);this.n.activeTexture(this.n.TEXTURE0);this.jf= this.hf=null}};e.prototype.ze=function(){ic(this.un,this.Do,this.gq,this.Bc);hc(this.Bc,this.Km)};e.prototype.translate=function(c,b){if(0!==c||0!==b){this.Fe[0]=c;this.Fe[1]=b;this.Fe[2]=0;var h=this.Bc,t=this.Fe,g=t[0],a=t[1],t=t[2];h[12]=h[0]*g+h[4]*a+h[8]*t+h[12];h[13]=h[1]*g+h[5]*a+h[9]*t+h[13];h[14]=h[2]*g+h[6]*a+h[10]*t+h[14];h[15]=h[3]*g+h[7]*a+h[11]*t+h[15]}};e.prototype.scale=function(c,b){if(1!==c||1!==b)this.Fe[0]=c,this.Fe[1]=b,this.Fe[2]=1,hc(this.Bc,this.Fe)};e.prototype.Ep=function(c){if(0!== c){var b=this.Bc,h,t=Math.sin(c);c=Math.cos(c);var g=b[0],a=b[1],l=b[2],w=b[3],f=b[4],s=b[5],y=b[6],m=b[7];h?b!==h&&(h[8]=b[8],h[9]=b[9],h[10]=b[10],h[11]=b[11],h[12]=b[12],h[13]=b[13],h[14]=b[14],h[15]=b[15]):h=b;h[0]=g*c+f*t;h[1]=a*c+s*t;h[2]=l*c+y*t;h[3]=w*c+m*t;h[4]=g*-t+f*c;h[5]=a*-t+s*c;h[6]=l*-t+y*c;h[7]=w*-t+m*c}};e.prototype.Ge=function(){for(var c=!1,b=0;16>b;b++)if(this.vo[b]!==this.Bc[b]){c=!0;break}c&&(c=this.Wc(),c.type=5,c.na?gc(this.Bc,c.na):c.na=fc(this.Bc),gc(this.Bc,this.vo),this.Vb= !1)};m.prototype.Js=function(){this.n.bindTexture(this.n.TEXTURE_2D,this.Zc)};m.prototype.Ks=function(){var c=this.n;c.activeTexture(c.TEXTURE1);c.bindTexture(c.TEXTURE_2D,this.Zc);c.activeTexture(c.TEXTURE0)};m.prototype.Gs=function(){var c=this.kp,b=this.B;b.Fi=c;b=b.Jg;b.bg&&b.sj!==c&&(b.sj=c,this.n.uniform1f(b.bg,c))};m.prototype.Ds=function(){this.n.drawElements(this.n.TRIANGLES,this.kd,this.n.UNSIGNED_SHORT,2*this.Gc)};m.prototype.Fs=function(){this.n.blendFunc(this.Gc,this.kd)};m.prototype.Ms= function(){var c,b,h,t=this.B.ab,g=this.B.Cn;c=0;for(b=t.length;c<b;c++)h=t[c],c===g&&h.pj?(h.Cm(this.na),h.Ve=!0):h.Ve=!1;gc(this.na,this.B.Hk)};m.prototype.Es=function(){var c=this.n,b=this.B;this.Zc?(b.jf===this.Zc&&(c.activeTexture(c.TEXTURE1),c.bindTexture(c.TEXTURE_2D,null),b.jf=null,c.activeTexture(c.TEXTURE0)),c.bindFramebuffer(c.FRAMEBUFFER,b.yt),c.framebufferTexture2D(c.FRAMEBUFFER,c.COLOR_ATTACHMENT0,c.TEXTURE_2D,this.Zc,0)):(c.framebufferTexture2D(c.FRAMEBUFFER,c.COLOR_ATTACHMENT0,c.TEXTURE_2D, null,0),c.bindFramebuffer(c.FRAMEBUFFER,null))};m.prototype.Bs=function(){var c=this.n;0===this.Gc?(c.clearColor(this.na[0],this.na[1],this.na[2],this.na[3]),c.clear(c.COLOR_BUFFER_BIT)):(c.enable(c.SCISSOR_TEST),c.scissor(this.na[0],this.na[1],this.na[2],this.na[3]),c.clearColor(0,0,0,0),c.clear(this.n.COLOR_BUFFER_BIT),c.disable(c.SCISSOR_TEST))};m.prototype.Cs=function(){var c=this.n,b=this.B,h=b.ab[1];c.useProgram(h.Uh);!h.Ve&&h.pj&&(h.Cm(b.Hk),h.Ve=!0);c.enableVertexAttribArray(h.Ac);c.bindBuffer(c.ARRAY_BUFFER, b.Xl);c.vertexAttribPointer(h.Ac,4,c.FLOAT,!1,0,0);c.drawArrays(c.POINTS,this.Gc/4,this.kd);h=b.Jg;c.useProgram(h.Uh);0<=h.Ac&&(c.enableVertexAttribArray(h.Ac),c.bindBuffer(c.ARRAY_BUFFER,b.ei[b.Cd]),c.vertexAttribPointer(h.Ac,2,c.FLOAT,!1,0,0));0<=h.we&&(c.enableVertexAttribArray(h.we),c.bindBuffer(c.ARRAY_BUFFER,b.Yh[b.Cd]),c.vertexAttribPointer(h.we,2,c.FLOAT,!1,0,0))};m.prototype.Hs=function(){var c=this.n,b=this.B,h=b.ab[this.Gc];b.Cn=this.Gc;b.Jg=h;c.useProgram(h.Uh);!h.Ve&&h.pj&&(h.Cm(b.Hk), h.Ve=!0);h.bg&&h.sj!==b.Fi&&(h.sj=b.Fi,c.uniform1f(h.bg,b.Fi));0<=h.Ac&&(c.enableVertexAttribArray(h.Ac),c.bindBuffer(c.ARRAY_BUFFER,b.ei[b.Cd]),c.vertexAttribPointer(h.Ac,2,c.FLOAT,!1,0,0));0<=h.we&&(c.enableVertexAttribArray(h.we),c.bindBuffer(c.ARRAY_BUFFER,b.Yh[b.Cd]),c.vertexAttribPointer(h.we,2,c.FLOAT,!1,0,0))};m.prototype.Is=function(){var c,b,h=this.B.Jg,t=this.n;c=this.na;h.wh&&this.B.jf!==this.Zc&&(t.activeTexture(t.TEXTURE1),t.bindTexture(t.TEXTURE_2D,this.Zc),this.B.jf=this.Zc,t.activeTexture(t.TEXTURE0)); var g=c[0];h.Cl&&g!==h.Mo&&(h.Mo=g,t.uniform1f(h.Cl,g));g=c[1];h.Bl&&g!==h.Lo&&(h.Lo=g,t.uniform1f(h.Bl,g));g=c[2];b=c[3];!h.pf||g===h.Go&&b===h.Ho||(h.Go=g,h.Ho=b,t.uniform2f(h.pf,g,b));g=c[4];b=c[5];!h.of||g===h.Eo&&b===h.Fo||(h.Eo=g,h.Fo=g,t.uniform2f(h.of,g,b));g=c[6];h.vh&&g!==h.Jo&&(h.Jo=g,t.uniform1f(h.vh,g));g=c[7];h.uh&&g!==h.Io&&(h.Io=g,t.uniform1f(h.uh,g));g=c[8];b=c[9];!h.yh||g===h.Po&&b===h.Qo||(h.Po=g,h.Qo=b,t.uniform2f(h.yh,g,b));g=c[10];b=c[11];!h.xh||g===h.No&&b===h.Oo||(h.No=g,h.Oo= b,t.uniform2f(h.xh,g,b));h.Dl&&t.uniform1f(h.Dl,Za()/1E3);if(h.R.length)for(c=0,b=h.R.length;c<b;c++)g=this.Np[c],g!==h.wl[c]&&(h.wl[c]=g,t.uniform1f(h.R[c][1],g))};e.prototype.Wc=function(){this.Ad===this.ie.length&&this.ie.push(new m(0,this));return this.ie[this.Ad++]};e.prototype.Pe=function(){if(0!==this.Ad&&!this.n.isContextLost()){var c=this.n;0<this.Yl&&(c.bindBuffer(c.ARRAY_BUFFER,this.Xl),c.bufferData(c.ARRAY_BUFFER,this.Qu.subarray(0,this.Yl),c.STREAM_DRAW),b&&0<=b.Ac&&"<point>"===b.name&& c.vertexAttribPointer(b.Ac,4,c.FLOAT,!1,0,0));if(0<this.xd){var b=this.Jg;c.bindBuffer(c.ARRAY_BUFFER,this.ei[this.Cd]);c.bufferData(c.ARRAY_BUFFER,this.Gm.subarray(0,this.xd),c.STREAM_DRAW);b&&0<=b.Ac&&"<point>"!==b.name&&c.vertexAttribPointer(b.Ac,2,c.FLOAT,!1,0,0);c.bindBuffer(c.ARRAY_BUFFER,this.Yh[this.Cd]);c.bufferData(c.ARRAY_BUFFER,this.um.subarray(0,this.xd),c.STREAM_DRAW);b&&0<=b.we&&"<point>"!==b.name&&c.vertexAttribPointer(b.we,2,c.FLOAT,!1,0,0)}for(var h,c=0,b=this.Ad;c<b;c++)switch(h= this.ie[c],h.type){case 1:h.Ds();break;case 2:h.Js();break;case 3:h.Gs();break;case 4:h.Fs();break;case 5:h.Ms();break;case 6:h.Es();break;case 7:h.Bs();break;case 8:h.Cs();break;case 9:h.Hs();break;case 10:h.Is();break;case 11:h.Ks()}this.Yl=this.xd=this.Ad=0;this.Vb=!1;this.Cd++;4<=this.Cd&&(this.Cd=0)}};e.prototype.wf=function(c){if(c!==this.wo){var b=this.Wc();b.type=3;this.wo=b.kp=c;this.Vb=!1}};e.prototype.ec=function(c){if(c!==this.hf){var b=this.Wc();b.type=2;this.hf=b.Zc=c;this.Vb=!1}};e.prototype.Ae= function(c,b){if(c!==this.xo||b!==this.uo){var h=this.Wc();h.type=4;h.Gc=c;h.kd=b;this.xo=c;this.uo=b;this.Vb=!1}};e.prototype.Ip=function(){this.Ae(this.n.ONE,this.n.ONE_MINUS_SRC_ALPHA)};e.prototype.Ij=function(c,b,h,t,g,a,l,w){15992<=this.xd&&this.Pe();var f=this.xd,s=this.Gm,y=this.um;if(this.Vb)this.ie[this.Ad-1].kd+=6;else{var m=this.Wc();m.type=1;m.Gc=f/4*3;m.kd=6;this.Vb=!0}s[f]=c;y[f++]=0;s[f]=b;y[f++]=0;s[f]=h;y[f++]=1;s[f]=t;y[f++]=0;s[f]=g;y[f++]=1;s[f]=a;y[f++]=1;s[f]=l;y[f++]=0;s[f]= w;y[f++]=1;this.xd=f};e.prototype.sd=function(c,b,h,t,g,a,l,w,f){15992<=this.xd&&this.Pe();var s=this.xd,m=this.Gm,e=this.um;if(this.Vb)this.ie[this.Ad-1].kd+=6;else{var k=this.Wc();k.type=1;k.Gc=s/4*3;k.kd=6;this.Vb=!0}var k=f.left,d=f.top,q=f.right;f=f.bottom;m[s]=c;e[s++]=k;m[s]=b;e[s++]=d;m[s]=h;e[s++]=q;m[s]=t;e[s++]=d;m[s]=g;e[s++]=q;m[s]=a;e[s++]=f;m[s]=l;e[s++]=k;m[s]=w;e[s++]=f;this.xd=s};e.prototype.ud=function(c){if(this.oh!==c){if(!this.ab[c]){if(0===this.oh)return;c=0}var b=this.Wc(); b.type=9;this.oh=b.Gc=c;this.Vb=!1}};e.prototype.Kh=function(c){c=this.ab[c];return!(!c.pf&&!c.of)};e.prototype.$l=function(c){c=this.ab[c];return!!(c.pf||c.of||c.Bn)};e.prototype.Xu=function(c){c=this.ab[c];return 0!==c.Ok||0!==c.Pk};e.prototype.Pt=function(c){return this.ab[c].Ok};e.prototype.Qt=function(c){return this.ab[c].Pk};e.prototype.Rt=function(c,b){return this.ab[c].R[b][2]};e.prototype.Gj=function(c){return this.ab[c].mn};e.prototype.ng=function(c,b,h,t,g,a,l,w,f,s,m,e,k,d){var q=this.ab[this.oh], n,u;if(q.gu||d.length){n=this.Wc();n.type=10;n.na?gc(this.Bc,n.na):n.na=fc();u=n.na;u[0]=b;u[1]=h;u[2]=t;u[3]=g;u[4]=a;u[5]=l;u[6]=w;u[7]=f;u[8]=s;u[9]=m;u[10]=e;u[11]=k;n.Zc=q.wh?c:null;if(d.length)for(h=n.Np,h.length=d.length,c=0,b=d.length;c<b;c++)h[c]=d[c];this.Vb=!1}};e.prototype.clear=function(c,b,h,t){var g=this.Wc();g.type=7;g.Gc=0;g.na||(g.na=fc());g.na[0]=c;g.na[1]=b;g.na[2]=h;g.na[3]=t;this.Vb=!1};e.prototype.clearRect=function(c,b,h,t){if(!(0>h||0>t)){var g=this.Wc();g.type=7;g.Gc=1;g.na|| (g.na=fc());g.na[0]=c;g.na[1]=b;g.na[2]=h;g.na[3]=t;this.Vb=!1}};e.prototype.Wu=function(){this.Pe();this.n.flush()};var p=[],v={};e.prototype.us=function(){p.length=0;v={}};e.prototype.$f=function(c,b,h,t){b=!!b;h=!!h;var g=c.src+","+b+","+h+(b?",undefined":""),a=null;if("undefined"!==typeof c.src&&v.hasOwnProperty(g))return a=v[g],a.pi++,a;this.Pe();var l=this.n,w=ja(c.width)&&ja(c.height),a=l.createTexture();l.bindTexture(l.TEXTURE_2D,a);l.pixelStorei(l.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var f= l.RGBA,s=l.RGBA,m=l.UNSIGNED_BYTE;if(t&&!this.$e)switch(t){case 1:s=f=l.RGB;break;case 2:m=l.UNSIGNED_SHORT_4_4_4_4;break;case 3:m=l.UNSIGNED_SHORT_5_5_5_1;break;case 4:s=f=l.RGB,m=l.UNSIGNED_SHORT_5_6_5}if(!w&&b){t=document.createElement("canvas");t.width=ka(c.width);t.height=ka(c.height);var e=t.getContext("2d");e.webkitImageSmoothingEnabled=h;e.mozImageSmoothingEnabled=h;e.msImageSmoothingEnabled=h;e.imageSmoothingEnabled=h;e.drawImage(c,0,0,c.width,c.height,0,0,t.width,t.height);l.texImage2D(l.TEXTURE_2D, 0,f,s,m,t)}else l.texImage2D(l.TEXTURE_2D,0,f,s,m,c);b?(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_S,l.REPEAT),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_T,l.REPEAT)):(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_S,l.CLAMP_TO_EDGE),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_T,l.CLAMP_TO_EDGE));h?(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MAG_FILTER,l.LINEAR),w&&this.Gn?(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MIN_FILTER,l.LINEAR_MIPMAP_LINEAR),l.generateMipmap(l.TEXTURE_2D)):l.texParameteri(l.TEXTURE_2D, l.TEXTURE_MIN_FILTER,l.LINEAR)):(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MAG_FILTER,l.NEAREST),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MIN_FILTER,l.NEAREST));l.bindTexture(l.TEXTURE_2D,null);this.hf=null;a.Eg=c.width;a.Dg=c.height;a.pi=1;a.sn=g;p.push(a);return v[g]=a};e.prototype.me=function(c,b,h){var m;this.Pe();var g=this.n;this.$e&&(m=!1);var a=g.createTexture();g.bindTexture(g.TEXTURE_2D,a);g.texImage2D(g.TEXTURE_2D,0,g.RGBA,c,b,0,g.RGBA,m?g.UNSIGNED_SHORT_4_4_4_4:g.UNSIGNED_BYTE,null);g.texParameteri(g.TEXTURE_2D, g.TEXTURE_WRAP_S,g.CLAMP_TO_EDGE);g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,g.CLAMP_TO_EDGE);g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,h?g.LINEAR:g.NEAREST);g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,h?g.LINEAR:g.NEAREST);g.bindTexture(g.TEXTURE_2D,null);this.hf=null;a.Eg=c;a.Dg=b;p.push(a);return a};e.prototype.deleteTexture=function(c){c&&("undefined"!==typeof c.pi&&1<c.pi?c.pi--:(this.Pe(),c===this.hf&&(this.n.bindTexture(this.n.TEXTURE_2D,null),this.hf=null),c===this.jf&&(this.n.activeTexture(this.n.TEXTURE1), this.n.bindTexture(this.n.TEXTURE_2D,null),this.n.activeTexture(this.n.TEXTURE0),this.jf=null),Ea(p,c),"undefined"!==typeof c.sn&&delete v[c.sn],this.n.deleteTexture(c)))};e.prototype.td=function(c){if(c!==this.Dp){var b=this.Wc();b.type=6;this.Dp=b.Zc=c;this.Vb=!1}};mb=e})(); (function(){function e(){return"undefined"!==typeof jQuery?jQuery(window).width():window.innerWidth}function r(){return"undefined"!==typeof jQuery?jQuery(window).height():window.innerHeight}function m(d){if(d&&(d.getContext||d.dc)&&!d.c2runtime){d.c2runtime=this;var q=this;this.oc=(this.eh=/crosswalk/i.test(navigator.userAgent)||/xwalk/i.test(navigator.userAgent)||!("undefined"===typeof window.c2isCrosswalk||!window.c2isCrosswalk))||"undefined"!==typeof window.device&&("undefined"!==typeof window.device.cordova|| "undefined"!==typeof window.device.phonegap)||"undefined"!==typeof window.c2iscordova&&window.c2iscordova;this.ib=!!d.dc;this.Rf="undefined"!==typeof window.AppMobi||this.ib;this.nc=!!window.c2cocoonjs;this.yc=!!window.c2ejecta;this.nc&&(CocoonJS.App.onSuspended.addEventListener(function(){q.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){q.setSuspended(!1)}));this.yc&&(document.addEventListener("pagehide",function(){q.setSuspended(!0)}),document.addEventListener("pageshow", function(){q.setSuspended(!1)}),document.addEventListener("resize",function(){q.setSize(window.innerWidth,window.innerHeight)}));this.Aa=this.ib||this.nc||this.yc;this.$e=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent)||/edge\//i.test(navigator.userAgent);this.qo=/tizen/i.test(navigator.userAgent);this.bh=/android/i.test(navigator.userAgent)&&!this.qo&&!this.$e;this.ul=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&& !this.$e;this.to=/ipad/i.test(navigator.userAgent);this.mh=this.ul||this.to||this.yc;this.xu=this.ul&&/os\s6/i.test(navigator.userAgent);this.dh=(/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent))&&!this.$e;this.ol=/amazonwebappplatform/i.test(navigator.userAgent);this.qu=/firefox/i.test(navigator.userAgent);this.oo=/safari/i.test(navigator.userAgent)&&!this.dh&&!this.$e;this.tu=/windows/i.test(navigator.userAgent);this.ue="undefined"!==typeof window.c2nodewebkit||"undefined"!== typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.ro=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.vu=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.ff=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.ih=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.sl=this.ro||this.vu||this.ih;this.pu=!("undefined"===typeof window.c2isBlackberry10|| !window.c2isBlackberry10);this.bj=this.bh&&!this.dh&&!this.eh&&!this.qu&&!this.ol&&!this.Aa;this.devicePixelRatio=1;this.bf=this.oc||this.eh||this.Rf||this.nc||this.bh||this.mh||this.ff||this.ih||this.pu||this.qo||this.yc;this.bf||(this.bf=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));"undefined"===typeof cr_is_preview||this.ue||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)|| (this.ue=!0);this.canvas=d;this.vn=document.getElementById("c2canvasdiv");this.qa=this.B=this.n=null;this.Uk="";this.Qi=!1;this.dp=this.ep=0;this.canvas.oncontextmenu=function(d){d.preventDefault&&d.preventDefault();return!1};this.canvas.onselectstart=function(d){d.preventDefault&&d.preventDefault();return!1};this.ib&&(window.c2runtime=this);this.ue&&(window.ondragover=function(d){d.preventDefault();return!1},window.ondrop=function(d){d.preventDefault();return!1},require("nw.gui").App.clearCache()); this.bj&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=d.width;this.height=d.height;this.W=this.width;this.V=this.height;this.Di=this.width;this.Ci=this.height;this.qh=window.innerWidth;this.ph=window.innerHeight;this.At=!1;this.ga=!0;this.gh=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.q=[];this.Ha=[];this.Zf={};this.Tc=[];this.Nk={};this.Hd=[];this.Bf=[];this.ek=[];this.js=[];this.ks=[];this.Ne={};this.pl= this.se=!1;this.Rc=0;this.rl=!1;this.Oc=[];this.Nd=this.Hb=this.lj=this.km="";this.Wh=this.Qp=!1;this.Fk=this.zh=this.pe=this.oe=0;this.Af=1;this.Wb=new cb;this.yd=new cb;this.uj=this.Ri=this.Lg=this.zf=this.lf=this.Tk=this.ij=0;this.Bd=null;this.Ji=[];this.Mk=[];this.Mi=-1;this.El=[[]];this.zm=this.qj=0;this.Hj(null);this.Gl=[];this.rj=-1;this.Yo=this.Dh=0;this.zl=!0;this.Ng=0;this.Xh=[];this.wm=this.am=-1;this.gf=!0;this.nf=0;this.fh=!1;this.sv=0;this.Hf=null;this.ld=this.fl=!1;this.cp=new ca;this.Ol= new ca;this.Pl=new ca;this.dm=[];this.Yc=new eb([]);this.tm=new eb([]);this.fe=[];this.Xg={};this.Lf={};this.Gf={};this.xg={};this.pn={};this.Ao=this.kj=this.Yb=this.pc=this.zo=this.jj=this.ra=null;this.vg=this.tl=!1;this.Vk=[null,null];this.Se=0;this.Og="";this.Pd={};this.Sj=this.ag=null;this.tj=[];this.av()}}function p(d){d.target.result.createObjectStore("saves",{keyPath:"slot"})}function v(d,q,a,k){var f=indexedDB.open("_C2SaveStates");f.onupgradeneeded=p;f.onerror=k;f.onsuccess=function(f){f= f.target.result;f.onerror=k;f.transaction(["saves"],"readwrite").objectStore("saves").put({slot:d,data:q}).onsuccess=a}}function c(d,q,a){var k=indexedDB.open("_C2SaveStates");k.onupgradeneeded=p;k.onerror=a;k.onsuccess=function(k){k=k.target.result;k.onerror=a;var u=k.transaction(["saves"]).objectStore("saves").get(d);u.onsuccess=function(){u.result?q(u.result.data):q(null)}}}function b(){E("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")? window.location.reload(!0):window.location+="?continuous"}function h(d){var q,a={};for(q in d)!d.hasOwnProperty(q)||d[q]instanceof ca||d[q]&&"undefined"!==typeof d[q].Cw||(a[q]=d[q]);return a}m.prototype.av=function(){var d=this,q;q=this.ff?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest;var a="data.js";if(this.ro||this.ff||this.ih)a="data.json";q.open("GET",a,!0);var k=!1;if(!this.Aa&&"response"in q&&"responseType"in q)try{q.responseType="json",k="json"===q.responseType}catch(f){k=!1}if(!k&& "responseType"in q)try{q.responseType="text"}catch(l){}if("overrideMimeType"in q)try{q.overrideMimeType("application/json; charset=utf-8")}catch(c){}this.ff?q.onreadystatechange=function(){4===q.readyState&&d.nj(JSON.parse(q.responseText))}:(q.onload=function(){if(k)d.nj(q.response);else if(d.yc){var a=q.responseText,a=a.substr(a.indexOf("{"));d.nj(JSON.parse(a))}else d.nj(JSON.parse(q.responseText))},q.onerror=function(d){ea("Error requesting "+a+":");ea(d)});q.send()};m.prototype.ku=function(){var d= this,q,a,k,f,l,c,b,g,h;this.devicePixelRatio=(this.df=(!this.Aa||this.yc)&&this.Dv&&!this.bj)?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.wb();a=!(!this.At&&(!this.uk||this.ue||this.sl||this.ff||this.eh||this.oc||this.ol));0<this.Ub&&this.setSize(e(),r(),!0);try{this.Ss&&(this.nc||this.yc||!this.Aa)&&(q={alpha:a,depth:!1,antialias:!1,failIfMajorPerformanceCaveat:!0},this.n=this.canvas.getContext("webgl",q)||this.canvas.getContext("experimental-webgl", q))}catch(s){}if(this.n){this.Aa||(this.rb=document.createElement("canvas"),jQuery(this.rb).appendTo(this.canvas.parentNode),this.rb.oncontextmenu=function(){return!1},this.rb.onselectstart=function(){return!1},this.rb.width=this.Di,this.rb.height=this.Ci,jQuery(this.rb).css({width:this.Di+"px",height:this.Ci+"px"}),this.wp(),this.Wl=this.rb.getContext("2d"));this.B=new mb(this.n,this.bf);this.B.Be(this.canvas.width,this.canvas.height);this.B.Gn=0!==this.Ns;this.qa=null;this.canvas.addEventListener("webglcontextlost", function(a){a.preventDefault();d.Iu();E("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){d.B.fo();d.B.Be(d.B.width,d.B.height,!0);d.pc=null;d.Yb=null;d.Vk[0]=null;d.Vk[1]=null;d.Ju();d.ga=!0;E("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);q=0;for(a=this.q.length;q<a;q++)for(l=this.q[q],k=0,f=l.L.length;k<f;k++)b=l.L[k],b.tb=this.B.bl(b.id),this.vg=this.vg||this.B.Kh(b.tb);q=0;for(a=this.Tc.length;q< a;q++){g=this.Tc[q];k=0;for(f=g.L.length;k<f;k++)b=g.L[k],b.tb=this.B.bl(b.id);k=0;for(f=g.T.length;k<f;k++)for(h=g.T[k],l=0,c=h.L.length;l<c;l++)b=h.L[l],b.tb=this.B.bl(b.id),this.vg=this.vg||this.B.Kh(b.tb)}}else{if(0<this.Ub&&this.ib){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.qa=AppMobi.canvas.getContext("2d");try{this.qa.samplingMode=this.ea?"smooth":"sharp",this.qa.globalScale=1,this.qa.HTML5CompatibilityMode=!0,this.qa.imageSmoothingEnabled= this.ea}catch(w){}0!==this.width&&0!==this.height&&(this.qa.width=this.width,this.qa.height=this.height)}this.qa||(q=this.nc?{antialias:!!this.ea,alpha:a}:{alpha:a},this.qa=this.canvas.getContext("2d",q),this.qa.webkitImageSmoothingEnabled=this.ea,this.qa.mozImageSmoothingEnabled=this.ea,this.qa.msImageSmoothingEnabled=this.ea,this.qa.imageSmoothingEnabled=this.ea);this.Wl=this.rb=null}this.Yp=function(a){d.ub(!1,a)};window==window.top||this.Aa||this.sl||this.ff||(document.addEventListener("mousedown", function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.nc&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(E("Reloading for continuous preview"),this.lj="__c2_continuouspreview",this.Wh=!0),this.Ou&&!this.bf&&(jQuery(window).focus(function(){d.setSuspended(!1)}),jQuery(window).blur(function(){d.setSuspended(!0)})));this.Aa||(q=function(d){if(lb(d)&& document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(a){}},window.navigator.pointerEnabled?document.addEventListener("pointerdown",q):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",q):document.addEventListener("touchstart",q),document.addEventListener("mousedown",q));0===this.Ub&&this.df&&1<this.devicePixelRatio&&this.setSize(this.Za,this.Ya,!0);this.bq();this.du(); this.go();this.N={}};m.prototype.setSize=function(d,a,n){var k=0,f=0,l=0,c=0,c=0,b=this.xu&&this.oo&&!navigator.standalone&&!this.Aa&&!this.oc;b&&(a+=60);if(this.qh!==d||this.ph!==a||n){this.qh=d;this.ph=a;var g=this.Ub,h=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.fh)&&!this.oc;if(h||0!==this.Ub||n)h&&0<this.Se&&(g=this.Se),n=this.devicePixelRatio,4<=g?(l=this.Za/this.Ya,d/a>l?(l*=a,5===g?(c=l*n/this.Za,1<c?c=Math.floor(c):1>c&& (c=1/Math.ceil(1/c)),l=this.Za*c/n,c=this.Ya*c/n,k=(d-l)/2,f=(a-c)/2,d=l,a=c):(k=(d-l)/2,d=l)):(c=d/l,5===g?(c=c*n/this.Ya,1<c?c=Math.floor(c):1>c&&(c=1/Math.ceil(1/c)),l=this.Za*c/n,c=this.Ya*c/n,k=(d-l)/2,f=(a-c)/2,d=l):f=(a-c)/2,a=c),h&&!this.ue&&(f=k=0)):this.ue&&this.fh&&0===this.Pn&&(k=Math.floor((d-this.Za)/2),f=Math.floor((a-this.Ya)/2),d=this.Za,a=this.Ya),2>g&&(this.Cg=n),this.df&&this.to&&1<n&&(1024<=d&&(d=1023),1024<=a&&(a=1023)),this.Di=Math.round(d),this.Ci=Math.round(a),this.width= Math.round(d*n),this.height=Math.round(a*n),this.ga=!0,this.rq?(this.W=this.width,this.V=this.height,this.xc=!0):this.width<this.Za&&this.height<this.Ya||1===g?(this.W=this.width,this.V=this.height,this.xc=!0):(this.W=this.Za,this.V=this.Ya,this.xc=!1,2===g?(l=this.Za/this.Ya,g=this.qh/this.ph,g<l?this.W=this.V*g:g>l&&(this.V=this.W/g)):3===g&&(l=this.Za/this.Ya,g=this.qh/this.ph,g>l?this.W=this.V*g:g<l&&(this.V=this.W/g))),this.vn&&!this.Aa&&(jQuery(this.vn).css({width:Math.round(d)+"px",height:Math.round(a)+ "px","margin-left":Math.floor(k)+"px","margin-top":Math.floor(f)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(d)+"px",height:Math.round(a)+"px"})),this.canvas&&(this.canvas.width=Math.round(d*n),this.canvas.height=Math.round(a*n),this.yc?(this.canvas.style.left=Math.floor(k)+"px",this.canvas.style.top=Math.floor(f)+"px",this.canvas.style.width=Math.round(d)+"px",this.canvas.style.height=Math.round(a)+"px"):this.df&&!this.Aa&&jQuery(this.canvas).css({width:Math.round(d)+ "px",height:Math.round(a)+"px"})),this.rb&&(this.rb.width=Math.round(d),this.rb.height=Math.round(a),jQuery(this.rb).css({width:Math.round(d)+"px",height:Math.round(a)+"px"})),this.B&&this.B.Be(Math.round(d*n),Math.round(a*n)),this.ib&&this.qa&&(this.qa.width=Math.round(d),this.qa.height=Math.round(a)),this.qa&&(this.qa.webkitImageSmoothingEnabled=this.ea,this.qa.mozImageSmoothingEnabled=this.ea,this.qa.msImageSmoothingEnabled=this.ea,this.qa.imageSmoothingEnabled=this.ea),this.bq(),this.Aa||!b&& !this.ul||window.setTimeout(function(){window.scrollTo(0,1)},100)}};m.prototype.bq=function(){if(this.os&&0!==this.Ul){var d="portrait";2===this.Ul&&(d="landscape");screen.orientation&&screen.orientation.lock?screen.orientation.lock(d):screen.lockOrientation?screen.lockOrientation(d):screen.webkitLockOrientation?screen.webkitLockOrientation(d):screen.mozLockOrientation?screen.mozLockOrientation(d):screen.msLockOrientation&&screen.msLockOrientation(d)}};m.prototype.Iu=function(){this.B.us();this.tl= !0;var d,a,n;d=0;for(a=this.q.length;d<a;d++)n=this.q[d],n.vj&&n.vj()};m.prototype.Ju=function(){this.tl=!1;var d,a,n;d=0;for(a=this.q.length;d<a;d++)n=this.q[d],n.xj&&n.xj()};m.prototype.wp=function(){if(!this.Aa){var d=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.fh)&&!this.oc?jQuery(this.canvas).offset():jQuery(this.canvas).position();d.position="absolute";jQuery(this.rb).css(d)}};var t=window.cancelAnimationFrame||window.mozCancelAnimationFrame|| window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;m.prototype.setSuspended=function(d){var a;if(d&&!this.gh)for(E("[Construct 2] Suspending"),this.gh=!0,-1!==this.am&&t&&t(this.am),-1!==this.wm&&clearTimeout(this.wm),d=0,a=this.Xh.length;d<a;d++)this.Xh[d](!0);else if(!d&&this.gh){E("[Construct 2] Resuming");this.gh=!1;this.ij=Za();this.lf=Za();d=this.zh=this.Ri=0;for(a=this.Xh.length;d<a;d++)this.Xh[d](!1);this.ub(!1)}};m.prototype.jn=function(d){this.Xh.push(d)}; m.prototype.de=function(d){return this.tj[d]};m.prototype.nj=function(d){d&&d.project||ea("Project model unavailable");d=d.project;this.name=d[0];this.Ln=d[1];this.Ub=d[12];this.Pn=d[12];this.Za=d[10];this.Ya=d[11];this.rp=this.Za/2;this.sp=this.Ya/2;this.Aa&&!this.yc&&(4<=d[12]||0===d[12])&&(E("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.Pn=this.Ub=3);this.Fm=d[18];this.sh=d[19];0===this.sh&&(this.ag=new Image,this.ag.src= "loading-logo.png");this.Dh=d[21];this.tj=kc();this.vd=new W(this);var a,n,k,f,l,c,b,g,h;a=0;for(n=d[2].length;a<n;a++)b=d[2][a],k=this.de(b[0]),nb(b,k.prototype),h=new k(this),h.Rj=b[1],h.ve=b[2],h.Vo=b[9],h.U&&h.U(),this.plugins.push(h);this.tj=kc();a=0;for(n=d[3].length;a<n;a++){b=d[3][a];l=this.de(b[1]);h=null;k=0;for(f=this.plugins.length;k<f;k++)if(this.plugins[k]instanceof l){h=this.plugins[k];break}var s=new h.ua(h);s.name=b[0];s.F=b[2];s.ml=b[3].slice(0);s.Fv=b[3].length;s.ps=b[4];s.Ct=b[5]; s.Z=b[11];s.F?(s.eg=[],s.Id=this.Ng++,s.za=null):(s.eg=null,s.Id=-1,s.za=[]);s.Oi=null;s.Nf=null;s.Hn=null;s.Lb=!1;s.Tb=null;b[6]?(s.Yj=b[6][0],s.vm=b[6][1],s.Zh=b[6][2]):(s.Yj=null,s.vm=0,s.Zh=0);s.Rb=b[7]?b[7]:null;s.index=a;s.c=[];s.Hi=[];s.De=[new ob(s)];s.Fd=0;s.uc=null;s.zs=0;s.rg=!0;s.gk=pb;s.Tn=qb;s.Nt=rb;s.H=sb;s.Lh=tb;s.vf=ub;s.rd=vb;s.Ui=wb;s.Wk=yb;s.Yk=zb;s.qc=Ab;s.Un=Bb;s.xi=new fb(this.Za,this.Ya);s.ii=!0;s.ji=!1;s.N={};s.toString=Cb;s.Ha=[];k=0;for(f=b[8].length;k<f;k++){g=b[8][k]; var w=this.de(g[1]),m=null;l=0;for(c=this.Ha.length;l<c;l++)if(this.Ha[l]instanceof w){m=this.Ha[l];break}m||(m=new w(this),m.Xo=[],m.Ml=new ca,m.U&&m.U(),this.Ha.push(m));-1===m.Xo.indexOf(s)&&m.Xo.push(s);l=new m.ua(m,s);l.name=g[0];l.Z=g[2];l.U();s.Ha.push(l)}s.global=b[9];s.ql=b[10];s.L=[];k=0;for(f=b[12].length;k<f;k++)s.L.push({id:b[12][k][0],name:b[12][k][1],tb:-1,xb:!0,index:k});s.Uw=b[13];this.Fm&&!s.F&&!s.ql&&h.ve||s.U();s.name&&(this.types[s.name]=s);this.q.push(s);h.Rj&&(k=new h.la(s), k.uid=this.Dh++,k.zp=this.Yo++,k.Xe=0,k.Vg=Db,k.toString=Eb,k.A=b[14],k.U(),s.c.push(k),this.Pd[k.uid.toString()]=k)}a=0;for(n=d[4].length;a<n;a++)for(l=d[4][a],c=this.q[l[0]],k=1,f=l.length;k<f;k++)b=this.q[l[k]],b.za.push(c),c.eg.push(b);a=0;for(n=d[27].length;a<n;a++){l=d[27][a];c=[];k=0;for(f=l.length;k<f;k++)c.push(this.q[l[k]]);k=0;for(f=c.length;k<f;k++)c[k].Lb=!0,c[k].Tb=c}if(0<this.Ng)for(a=0,n=this.q.length;a<n;a++)if(b=this.q[a],!b.F&&b.za.length){b.Oi=Array(this.Ng);b.Nf=Array(this.Ng); b.Hn=Array(this.Ng);s=[];k=m=w=g=0;for(f=b.za.length;k<f;k++)for(h=b.za[k],b.Oi[h.Id]=g,g+=h.Fv,b.Nf[h.Id]=w,w+=h.ps,b.Hn[h.Id]=m,m+=h.Ct,l=0,c=h.L.length;l<c;l++)s.push(za({},h.L[l]));b.L=s.concat(b.L);k=0;for(f=b.L.length;k<f;k++)b.L[k].index=k}a=0;for(n=d[5].length;a<n;a++)b=d[5][a],k=new Fb(this,b),this.Zf[k.name]=k,this.Tc.push(k);a=0;for(n=d[6].length;a<n;a++)b=d[6][a],k=new Gb(this,b),this.Nk[k.name]=k,this.Hd.push(k);a=0;for(n=this.Hd.length;a<n;a++)this.Hd[a].Ga();a=0;for(n=this.Hd.length;a< n;a++)this.Hd[a].Bm();a=0;for(n=this.ek.length;a<n;a++)this.ek[a].Ga();this.ek.length=0;this.ns=d[7];this.Og=d[8];this.qd=d[9];this.Cg=1;this.Ss=d[13];this.ea=d[14];this.uk=d[15];this.Dv=d[17];this.Ul=d[20];this.os=0<this.Ul;this.Ou=d[22];this.xc=this.rq=d[23];this.Ns=d[24];this.Uu=d[25];this.Tj=Date.now();this.tj.length=0;this.ku()};var g=!1;m.prototype.qq=function(d,a){d.cocoonLazyLoad=!0;d.onerror=function(a){g=d.rn=!0;console&&console.error&&console.error("Error loading image '"+d.src+"': ",a)}; this.yc?d.src=a:d.src||("undefined"!==typeof XAPKReader?XAPKReader.get(a,function(a){d.src=a},function(n){g=d.rn=!0;console&&console.error&&console.error("Error extracting image '"+a+"' from expansion file: ",n)}):d.src=a);this.Bf.push(d)};m.prototype.zt=function(d){var a,n;a=0;for(n=this.Bf.length;a<n;a++)if(this.Bf[a].vs===d)return this.Bf[a];return null};var a=0,l=!1;m.prototype.du=function(){this.Hf&&(a=this.Hf.qv(this.ns))};m.prototype.nn=function(){var d=a,q=0,n=0,k=!0,f,c,n=0;for(f=this.Bf.length;n< f;n++){c=this.Bf[n];var b=c.zn;if(!b||0>=b)b=5E4;d+=b;c.src&&(c.complete||c.loaded)&&!c.rn?q+=b:k=!1}k&&this.Uu&&this.Hf&&(l||(this.Hf.tv(),l=!0),n=this.Hf.Ot(),q+=n,n<a&&(k=!1));this.uf=0==d?0:q/d;return k};m.prototype.go=function(){if(this.qa||this.B){var d=this.qa||this.Wl;this.rb&&this.wp();this.uf=0;this.yo=-1;if(this.nn())this.eu();else{var a=Date.now()-this.Tj;if(d){var n=this.width,k=this.height,f=this.devicePixelRatio;this.rb&&(n=this.Di,k=this.Ci,f=1);if(3!==this.sh&&(this.nc||500<=a&&this.yo!= this.uf)){d.clearRect(0,0,n,k);var a=n/2,k=k/2,n=0===this.sh&&this.ag.complete,l=40*f,c=0,b=80*f,s;n&&(b=this.ag.width*f,s=this.ag.height*f,l=b/2,c=s/2,d.drawImage(this.ag,T(a-l),T(k-c),b,s));1>=this.sh?(a=T(a-l)+.5,k=T(k+(c+(n?12*f:0)))+.5,d.fillStyle=g?"red":"DodgerBlue",d.fillRect(a,k,Math.floor(b*this.uf),6*f),d.strokeStyle="black",d.strokeRect(a,k,b,6*f),d.strokeStyle="white",d.strokeRect(a-1*f,k-1*f,b+2*f,8*f)):2===this.sh&&(d.font=this.yc?"12pt ArialMT":"12pt Arial",d.fillStyle=g?"#f00":"#999", d.Tw="middle",f=Math.round(100*this.uf)+"%",n=d.measureText?d.measureText(f):null,d.fillText(f,a-(n?n.width:0)/2,k))}this.yo=this.uf}setTimeout(function(d){return function(){d.go()}}(this),this.nc?10:100)}}};m.prototype.eu=function(){this.rb&&(this.canvas.parentNode.removeChild(this.rb),this.rb=this.Wl=null);this.Tj=Date.now();this.lf=Za();var d,a,n;if(this.Fm)for(d=0,a=this.q.length;d<a;d++)n=this.q[d],n.F||n.ql||!n.ta.ve||n.U();else this.gf=!1;d=0;for(a=this.Tc.length;d<a;d++)this.Tc[d].ws();2<= this.Ub&&(d=this.Za/this.Ya,a=this.width/this.height,this.Cg=2!==this.Ub&&a>d||2===this.Ub&&a<d?this.height/this.Ya:this.width/this.Za);this.Ln?this.Zf[this.Ln].qm():this.Tc[0].qm();this.Fm||(this.nf=1,this.trigger(W.prototype.d.nk,null));navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();d=0;for(a=this.q.length;d<a;d++)n=this.q[d],n.Hu&&n.Hu();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.ub(!1);this.ib&& AppMobi.webview.execute("onGameReady();")};var w=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;m.prototype.ub=function(d,a,n){if(this.ra){var k=Za();if(n||!this.gh||d){d||(w?this.am=w(this.Yp):this.wm=setTimeout(this.Yp,this.bf?1:16));a=a||k;var f=this.Ub;((n=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.oc)||this.fh)&& 0<this.Se&&(f=this.Se);0<f&&(!this.mh||window.self!==window.top)&&(f=window.innerHeight,this.qh===window.innerWidth&&this.ph===f||this.setSize(e(),r()));this.Aa||(n?(this.Qi||(this.Uk=jQuery(this.canvas).css("margin")||"0",this.Qi=!0),this.dh||this.ue||jQuery(this.canvas).css({"margin-left":""+Math.floor((screen.width-this.width/this.devicePixelRatio)/2)+"px","margin-top":""+Math.floor((screen.height-this.height/this.devicePixelRatio)/2)+"px"})):this.Qi?(this.dh||this.ue||jQuery(this.canvas).css("margin", this.Uk),this.Uk="",this.Qi=!1,0===this.Ub&&this.setSize(Math.round(this.ep/this.devicePixelRatio),Math.round(this.dp/this.devicePixelRatio),!0)):(this.ep=this.width,this.dp=this.height));this.gf&&(n=this.nn(),this.nf=this.uf,n&&(this.gf=!1,this.uf=1,this.trigger(W.prototype.d.nk,null)));this.Cu(a);!this.ga&&!this.nc||this.tl||this.Wh||d||(this.ga=!1,this.B?this.wc():this.Gd(),this.Sj&&(this.canvas&&this.canvas.toDataURL&&(this.canvas.toDataURL(this.Sj[0],this.Sj[1]),this.trigger(W.prototype.d.fr, null)),this.Sj=null));this.Nw||(this.zf++,this.Lg++,this.Ri++);this.zh+=Za()-k}}};m.prototype.Cu=function(d){var a,n,k,f,l,b,c,g;1E3<=d-this.lf&&(this.lf+=1E3,1E3<=d-this.lf&&(this.lf=d),this.Tk=this.Ri,this.Ri=0,this.Fk=this.zh,this.zh=0);0!==this.ij&&(a=d-this.ij,0>a&&(a=0),this.pe=a/1E3,.5<this.pe?this.pe=0:.1<this.pe&&(this.pe=.1));this.ij=d;this.oe=this.pe*this.Af;this.Wb.add(this.oe);this.yd.add(this.pe);d=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement|| this.fh)&&!this.oc;2<=this.Ub||d&&0<this.Se?(a=this.Za/this.Ya,n=this.width/this.height,k=this.Ub,d&&0<this.Se&&(k=this.Se),this.Cg=2!==k&&n>a||2===k&&n<a?this.height/this.Ya:this.width/this.Za,this.ra&&(this.ra.Gp(this.ra.scrollX),this.ra.Hp(this.ra.scrollY))):this.Cg=this.df?this.devicePixelRatio:1;this.wb();this.Rc++;this.vd.dv();this.Rc--;this.wb();this.Rc++;n=this.cp.He();d=0;for(a=n.length;d<a;d++)n[d].Pw();d=0;for(a=this.q.length;d<a;d++)if(b=this.q[d],!b.F&&(b.Ha.length||b.za.length))for(n= 0,k=b.c.length;n<k;n++)for(c=b.c[n],f=0,l=c.S.length;f<l;f++)c.S[f].ub();d=0;for(a=this.q.length;d<a;d++)if(b=this.q[d],!b.F&&(b.Ha.length||b.za.length))for(n=0,k=b.c.length;n<k;n++)for(c=b.c[n],f=0,l=c.S.length;f<l;f++)g=c.S[f],g.Tu&&g.Tu();n=this.Ol.He();d=0;for(a=n.length;d<a;d++)n[d].ub();this.Rc--;this.fu();for(d=0;this.Bd&&10>d++;)this.Fn(this.Bd);d=0;for(a=this.Hd.length;d<a;d++)this.Hd[d].hl=!1;this.ra.Qe&&this.ra.Qe.Ka();this.dm.length=0;this.zl=!1;this.Rc++;d=0;for(a=this.q.length;d<a;d++)if(b= this.q[d],!b.F&&(b.Ha.length||b.za.length))for(n=0,k=b.c.length;n<k;n++)for(c=b.c[n],f=0,l=c.S.length;f<l;f++)g=c.S[f],g.ak&&g.ak();n=this.Pl.He();d=0;for(a=n.length;d<a;d++)n[d].ak();this.Rc--};m.prototype.Fn=function(d){var a=this.ra;this.ra.uv();var n,k,f,l,b,c,g;if(this.B)for(n=0,k=this.q.length;n<k;n++)b=this.q[n],b.F||!b.fk||b.global&&0!==b.c.length||-1!==d.$g.indexOf(b)||b.fk();a==d&&(this.vd.Pb.length=0);d.qm();n=0;for(k=this.q.length;n<k;n++)if(b=this.q[n],b.global||b.ta.Rj)for(d=0,a=b.c.length;d< a;d++)if(c=b.c[d],c.Sl&&c.Sl(),c.S)for(f=0,l=c.S.length;f<l;f++)g=c.S[f],g.Sl&&g.Sl();this.zl=this.ga=!0;this.wb()};m.prototype.bk=function(d){this.Ol.add(d)};m.prototype.wv=function(d){this.Pl.add(d)};m.prototype.Vi=function(d){return d&&-1!==d.Ch?this.pe*d.Ch:this.oe};m.prototype.Gd=function(){this.ra.Gd(this.qa);this.ib&&this.qa.present()};m.prototype.wc=function(){this.ra.wc(this.B);this.B.Wu()};m.prototype.tk=function(d){d&&this.Ji.push(d)};m.prototype.$u=function(d){Ea(this.Ji,d)};m.prototype.Tg= function(d){d=d.toString();return this.Pd.hasOwnProperty(d)?this.Pd[d]:null};var f=[];m.prototype.be=function(d){var a,n;a=d.type.name;var k=null;if(this.Ne.hasOwnProperty(a)){if(k=this.Ne[a],k.contains(d))return}else k=f.length?f.pop():new ca,this.Ne[a]=k;k.add(d);this.se=!0;if(d.Lb)for(a=0,n=d.siblings.length;a<n;a++)this.be(d.siblings[a]);this.pl&&k.wg.push(d);this.Rc++;this.trigger(Object.getPrototypeOf(d.type.ta).d.hr,d);this.Rc--};m.prototype.wb=function(){if(this.se){var d,a,n,k,f,l;this.pl= !0;n=0;for(f=this.Oc.length;n<f;++n)for(d=this.Oc[n],a=d.type,a.c.push(d),k=0,l=a.za.length;k<l;++k)a.za[k].c.push(d),a.za[k].rg=!0;this.Oc.length=0;this.Xq();Ua(this.Ne);this.se=this.pl=!1}};m.prototype.Xq=function(){for(var d in this.Ne)this.Ne.hasOwnProperty(d)&&this.yq(this.Ne[d])};m.prototype.yq=function(d){var a=d.He(),n=a[0].type,k,l,b,c,g,s;$a(n.c,d);n.rg=!0;0===n.c.length&&(n.ji=!1);k=0;for(l=n.za.length;k<l;++k)s=n.za[k],$a(s.c,d),s.rg=!0;k=0;for(l=this.vd.Pb.length;k<l;++k)if(g=this.vd.Pb[k], g.Jb.hasOwnProperty(n.index)&&$a(g.Jb[n.index].Ld,d),!n.F)for(b=0,c=n.za.length;b<c;++b)s=n.za[b],g.Jb.hasOwnProperty(s.index)&&$a(g.Jb[s.index].Ld,d);if(g=a[0].k){if(g.$c)for(b=g.c,k=0,l=b.length;k<l;++k)c=b[k],d.contains(c)&&(c.xa(),g.cc.update(c,c.Nb,null),c.Nb.set(0,0,-1,-1));$a(g.c,d);g.Rh(0)}for(k=0;k<a.length;++k)this.xq(a[k],n);d.clear();f.push(d);this.ga=!0};m.prototype.xq=function(d,a){var n,k,f;n=0;for(k=this.Ji.length;n<k;++n)this.Ji[n](d);d.le&&a.xi.update(d,d.le,null);(n=d.k)&&n.kg(d, !0);if(d.S)for(n=0,k=d.S.length;n<k;++n)f=d.S[n],f.tf&&f.tf(),f.behavior.Ml.remove(d);this.cp.remove(d);this.Ol.remove(d);this.Pl.remove(d);d.tf&&d.tf();this.Pd.hasOwnProperty(d.uid.toString())&&delete this.Pd[d.uid.toString()];this.uj--;100>a.Hi.length&&a.Hi.push(d)};m.prototype.An=function(d,a,n,k){if(d.F){var f=T(Math.random()*d.eg.length);return this.An(d.eg[f],a,n,k)}return d.uc?this.ne(d.uc,a,!1,n,k,!1):null};var s=[];m.prototype.ne=function(d,a,n,k,f,l){var b,c,g,h;if(!d)return null;var w= this.q[d[1]],m=w.ta.ve;if(this.gf&&m&&!w.ql||m&&!this.B&&11===d[0][11])return null;var t=a;m||(a=null);var e;w.Hi.length?(e=w.Hi.pop(),e.ac=!0,w.ta.la.call(e,w)):(e=new w.ta.la(w),e.ac=!1);e.uid=!n||l||this.Pd.hasOwnProperty(d[2].toString())?this.Dh++:d[2];this.Pd[e.uid.toString()]=e;e.zp=this.Yo++;e.Xe=w.c.length;b=0;for(c=this.Oc.length;b<c;++b)this.Oc[b].type===w&&e.Xe++;e.Vg=Db;e.toString=Eb;g=d[3];if(e.ac)Ua(e.N);else{e.N={};if("undefined"!==typeof cr_is_preview)for(e.jo=[],e.jo.length=g.length, b=0,c=g.length;b<c;b++)e.jo[b]=g[b][1];e.Wa=[];e.Wa.length=g.length}b=0;for(c=g.length;b<c;b++)e.Wa[b]=g[b][0];if(m){var y=d[0];e.x=ia(k)?y[0]:k;e.y=ia(f)?y[1]:f;e.z=y[2];e.width=y[3];e.height=y[4];e.depth=y[5];e.g=y[6];e.opacity=y[7];e.Db=y[8];e.Eb=y[9];e.Kb=y[10];b=y[11];!this.B&&w.L.length&&(e.Kb=b);e.Gg=hb(e.Kb);this.n&&ib(e,e.Kb,this.n);if(e.ac){b=0;for(c=y[12].length;b<c;b++)for(g=0,h=y[12][b].length;g<h;g++)e.Ba[b][g]=y[12][b][g];e.Oa.set(0,0,0,0);e.le.set(0,0,-1,-1);e.Nb.set(0,0,-1,-1);e.Sb.Sh(e.Oa); e.yk.length=0}else{e.Ba=y[12].slice(0);b=0;for(c=e.Ba.length;b<c;b++)e.Ba[b]=y[12][b].slice(0);e.ja=[];e.ee=[];e.ee.length=w.L.length;e.Oa=new ua(0,0,0,0);e.le=new ua(0,0,-1,-1);e.Nb=new ua(0,0,-1,-1);e.Sb=new va;e.yk=[];e.Da=Hb;e.Bw=Ib;e.yb=Jb;e.xa=Kb;e.Cv=Lb;e.lq=Mb;e.jd=Nb}e.$h=!1;e.zv=0;e.yv=0;e.xv=null;14===y.length&&(e.$h=!0,e.zv=y[13][0],e.yv=y[13][1],e.xv=y[13][2]);b=0;for(c=w.L.length;b<c;b++)e.ee[b]=!0;e.Zd=Ob;e.Zd();e.mq=!!e.ja.length;e.xk=!0;e.Ak=!0;w.ii=!0;e.visible=!0;e.Ch=-1;e.k=a; e.ad=a.c.length;"undefined"===typeof e.ka&&(e.ka=null);this.ga=e.Le=!0}var r;b=s.length=0;for(c=w.za.length;b<c;b++)s.push.apply(s,w.za[b].Ha);s.push.apply(s,w.Ha);if(e.ac)for(b=0,c=s.length;b<c;b++){var p=s[b];r=e.S[b];r.ac=!0;p.behavior.la.call(r,p,e);y=d[4][b];g=0;for(h=y.length;g<h;g++)r.A[g]=y[g];r.U();p.behavior.Ml.add(e)}else for(e.S=[],b=0,c=s.length;b<c;b++)p=s[b],r=new p.behavior.la(p,e),r.ac=!1,r.A=d[4][b].slice(0),r.U(),e.S.push(r),p.behavior.Ml.add(e);y=d[5];if(e.ac)for(b=0,c=y.length;b< c;b++)e.A[b]=y[b];else e.A=y.slice(0);this.Oc.push(e);this.se=!0;a&&(a.Bg(e,!0),1!==a.Dc||1!==a.Ec)&&(w.ji=!0);this.uj++;if(w.Lb){if(e.Lb=!0,e.ac?e.siblings.length=0:e.siblings=[],!n&&!l){b=0;for(c=w.Tb.length;b<c;b++)if(w.Tb[b]!==w){if(!w.Tb[b].uc)return null;e.siblings.push(this.ne(w.Tb[b].uc,t,!1,m?e.x:k,m?e.y:f,!0))}b=0;for(c=e.siblings.length;b<c;b++)for(e.siblings[b].siblings.push(e),g=0;g<c;g++)b!==g&&e.siblings[b].siblings.push(e.siblings[g])}}else e.Lb=!1,e.siblings=null;e.U();b=0;for(c= e.S.length;b<c;b++)e.S[b].Su&&e.S[b].Su();return e};m.prototype.$k=function(d){var a,n;a=0;for(n=this.ra.T.length;a<n;a++){var k=this.ra.T[a];if(kb(k.name,d))return k}return null};m.prototype.Sg=function(d){d=T(d);0>d&&(d=0);d>=this.ra.T.length&&(d=this.ra.T.length-1);return this.ra.T[d]};m.prototype.Dk=function(d){var a,n;a=0;for(n=d.length;a<n;a++)d[a].H().O=!0};m.prototype.Lh=function(d){var a,n;a=0;for(n=d.length;a<n;a++)d[a].Lh()};m.prototype.vf=function(d){var a,n;a=0;for(n=d.length;a<n;a++)d[a].vf()}; m.prototype.rd=function(d){var a,n;a=0;for(n=d.length;a<n;a++)d[a].rd()};m.prototype.iq=function(d){if(d.ii){var a,n,k=d.c;a=0;for(n=k.length;a<n;++a)k[a].lq();k=this.Oc;a=0;for(n=k.length;a<n;++a)k[a].type===d&&k[a].lq();d.ii=!1}};m.prototype.Ht=function(d,a,n,k){var f,b,l=d?1!==d.Dc||1!==d.Ec:!1;if(a.F)for(d=0,f=a.eg.length;d<f;++d)b=a.eg[d],l||b.ji?Ca(k,b.c):(this.iq(b),b.xi.Jj(n,k));else l||a.ji?Ca(k,a.c):(this.iq(a),a.xi.Jj(n,k))};m.prototype.Xj=function(d,a,k){var b=d.H(),f,l,c,g,s,h;if(b.O)for(b.O= !1,f=b.c.length=0,g=d.c.length;f<g;f++)c=d.c[f],c.xa(),s=c.k.Bb(a,k,!0),h=c.k.Bb(a,k,!1),c.yb(s,h)&&b.c.push(c);else{f=l=0;for(g=b.c.length;f<g;f++)c=b.c[f],c.xa(),s=c.k.Bb(a,k,!0),h=c.k.Bb(a,k,!1),c.yb(s,h)&&(b.c[l]=b.c[f],l++);b.c.length=l}d.qc();return b.gl()};m.prototype.vv=function(d,a){if(!(d&&a&&d!==a&&d.Le&&a.Le))return!1;d.xa();a.xa();var k=d.k,b=a.k,f,l,c,g,s,h,e,w;if(k===b||k.Dc===b.Dc&&b.Ec===b.Ec&&k.scale===b.scale&&k.g===b.g&&k.bd===b.bd){if(!d.Oa.lu(a.Oa)||!d.Sb.ko(a.Sb)||d.$h&&a.$h)return!1; if(d.$h)return this.Wp(d,a);if(a.$h)return this.Wp(a,d);e=d.ka&&!d.ka.Sf();f=a.ka&&!a.ka.Sf();if(!e&&!f)return!0;e?(d.ka.If(d.width,d.height,d.g),e=d.ka):(this.Yc.pg(d.Sb,d.x,d.y,d.width,d.height),e=this.Yc);f?(a.ka.If(a.width,a.height,a.g),w=a.ka):(this.Yc.pg(a.Sb,a.x,a.y,a.width,a.height),w=this.Yc);return e.ah(w,a.x-d.x,a.y-d.y)}e=d.ka&&!d.ka.Sf();f=a.ka&&!a.ka.Sf();e?(d.ka.If(d.width,d.height,d.g),this.Yc.Lp(d.ka)):this.Yc.pg(d.Sb,d.x,d.y,d.width,d.height);e=this.Yc;f?(a.ka.If(a.width,a.height, a.g),this.tm.Lp(a.ka)):this.tm.pg(a.Sb,a.x,a.y,a.width,a.height);w=this.tm;f=0;for(l=e.Vc;f<l;f++)c=2*f,g=c+1,s=e.$a[c],h=e.$a[g],e.$a[c]=k.Fb(s+d.x,h+d.y,!0),e.$a[g]=k.Fb(s+d.x,h+d.y,!1);e.xa();f=0;for(l=w.Vc;f<l;f++)c=2*f,g=c+1,s=w.$a[c],h=w.$a[g],w.$a[c]=b.Fb(s+a.x,h+a.y,!0),w.$a[g]=b.Fb(s+a.x,h+a.y,!1);w.xa();return e.ah(w,0,0)};var y=new va;new ua(0,0,0,0);var D=[];m.prototype.Wp=function(d,a){var k,f,b,l,c=a.Oa,g=d.x,s=d.y;d.Gw(c,D);var h=a.ka&&!a.ka.Sf();k=0;for(f=D.length;k<f;++k)if(b=D[k], l=b.Qw,c.mu(l,g,s)&&(y.Sh(l),y.offset(g,s),y.ko(a.Sb)))if(h)if(a.ka.If(a.width,a.height,a.g),b.Zl){if(b.Zl.ah(a.ka,a.x-(g+l.left),a.y-(s+l.top)))return D.length=0,!0}else{if(this.Yc.pg(y,0,0,l.right-l.left,l.bottom-l.top),this.Yc.ah(a.ka,a.x,a.y))return D.length=0,!0}else if(b.Zl){if(this.Yc.pg(a.Sb,0,0,a.width,a.height),b.Zl.ah(this.Yc,-(g+l.left),-(s+l.top)))return D.length=0,!0}else return D.length=0,!0;D.length=0;return!1};m.prototype.cq=function(d,a){if(!a)return!1;var k,b,f,l,c;k=0;for(b=d.Ha.length;k< b;k++)if(d.Ha[k].behavior instanceof a)return!0;if(!d.F)for(k=0,b=d.za.length;k<b;k++)for(c=d.za[k],f=0,l=c.Ha.length;f<l;f++)if(c.Ha[f].behavior instanceof a)return!0;return!1};m.prototype.dq=function(d){return this.cq(d,cc.aw)};m.prototype.Am=function(d){return this.cq(d,cc.bw)};m.prototype.ts=function(d,a){var k,b,f;k=0;for(b=this.dm.length;k<b;k++)if(f=this.dm[k],f[0]==d&&f[1]==a||f[0]==a&&f[1]==d)return!0;return!1};var k=-1;m.prototype.trigger=function(d,a,n){if(!this.ra)return!1;var b=this.ra.Qe; if(!b)return!1;var f=!1,l,c,g;k++;var s=b.Jk;c=0;for(g=s.length;c<g;++c)l=this.$p(d,a,s[c],n),f=f||l;l=this.$p(d,a,b,n);k--;return f||l};m.prototype.$p=function(d,a,k,b){var f=!1,l,c,g,s;if(a)for(g=this.ym(d,a,a.type.name,k,b),f=f||g,s=a.type.za,l=0,c=s.length;l<c;++l)g=this.ym(d,a,s[l].name,k,b),f=f||g;else g=this.ym(d,a,"system",k,b),f=f||g;return f};m.prototype.ym=function(d,a,k,f,b){var l,c=!1,g=!1,g="undefined"!==typeof b,s=(g?f.Jn:f.aq)[k];if(!s)return c;var h=null;f=0;for(l=s.length;f<l;++f)if(s[f].method== d){h=s[f].Kg;break}if(!h)return c;d=g?h[b]:h;if(!d)return null;f=0;for(l=d.length;f<l;f++)b=d[f][0],g=d[f][1],g=this.xt(a,k,b,g),c=c||g;return c};m.prototype.xt=function(d,a,n,f){var b,l,c=!1;this.zm++;var g=this.hb().fb;g&&this.Lh(g.Ce);var s=1<this.zm;this.Lh(n.Ce);s&&this.Yu();var h=this.Hj(n);h.fb=n;d&&(b=this.types[a].H(),b.O=!1,b.c.length=1,b.c[0]=d,this.types[a].qc());d=!0;if(n.parent){a=h.Vp;for(b=n.parent;b;)a.push(b),b=b.parent;a.reverse();b=0;for(l=a.length;b<l;b++)if(!a[b].hv()){d=!1; break}}d&&(this.Lg++,n.Uc?n.gv(f):n.Ka(),c=c||h.kf);this.Cj();s&&this.Ru();this.rd(n.Ce);g&&this.rd(g.Ce);this.se&&0===this.Rc&&0===k&&!this.rl&&this.wb();this.zm--;return c};m.prototype.Rg=function(){var d=this.hb();return d.fb.Ta[d.Ia]};m.prototype.Yu=function(){this.qj++;this.qj>=this.El.length&&this.El.push([])};m.prototype.Ru=function(){this.qj--};m.prototype.Rn=function(){return this.El[this.qj]};m.prototype.Hj=function(d){this.Mi++;this.Mi>=this.Mk.length&&this.Mk.push(new Pb);var a=this.hb(); a.reset(d);return a};m.prototype.Cj=function(){this.Mi--};m.prototype.hb=function(){return this.Mk[this.Mi]};m.prototype.Ap=function(){this.rj++;this.rj>=this.Gl.length&&this.Gl.push(aa({name:void 0,index:0,bb:!1}));var d=this.It();d.name=void 0;d.index=0;d.bb=!1;return d};m.prototype.vp=function(){this.rj--};m.prototype.It=function(){return this.Gl[this.rj]};m.prototype.Sn=function(d,a){for(var k,b,f,l,c,g;a;){k=0;for(b=a.Hc.length;k<b;k++)if(g=a.Hc[k],g instanceof Qb&&kb(d,g.name))return g;a=a.parent}k= 0;for(b=this.Hd.length;k<b;k++)for(c=this.Hd[k],f=0,l=c.qe.length;f<l;f++)if(g=c.qe[f],g instanceof Qb&&kb(d,g.name))return g;return null};m.prototype.Vn=function(d){var a,k;a=0;for(k=this.Tc.length;a<k;a++)if(this.Tc[a].Z===d)return this.Tc[a];return null};m.prototype.Xi=function(d){var a,k;a=0;for(k=this.q.length;a<k;a++)if(this.q[a].Z===d)return this.q[a];return null};m.prototype.Jt=function(d){var a,k;a=0;for(k=this.fe.length;a<k;a++)if(this.fe[a].Z===d)return this.fe[a];return null};m.prototype.fu= function(){var d=this,a=this.km,k=this.Nd,f=this.lj,l=!1;this.Qp&&(l=!0,a="__c2_continuouspreview",this.Qp=!1);if(a.length){this.wb();k=this.nv();if(window.indexedDB&&!this.nc)v(a,k,function(){E("Saved state to IndexedDB storage ("+k.length+" bytes)");d.Nd=k;d.trigger(W.prototype.d.ok,null);d.Nd="";l&&b()},function(f){try{localStorage.setItem("__c2save_"+a,k),E("Saved state to WebStorage ("+k.length+" bytes)"),d.Nd=k,d.trigger(W.prototype.d.ok,null),d.Nd="",l&&b()}catch(c){E("Failed to save game state: "+ f+"; "+c)}});else try{localStorage.setItem("__c2save_"+a,k),E("Saved state to WebStorage ("+k.length+" bytes)"),d.Nd=k,this.trigger(W.prototype.d.ok,null),d.Nd="",l&&b()}catch(g){E("Error saving to WebStorage: "+g)}this.Hb=this.lj=this.km=""}f.length&&(window.indexedDB&&!this.nc?c(f,function(a){a?(d.Hb=a,E("Loaded state from IndexedDB storage ("+d.Hb.length+" bytes)")):(d.Hb=localStorage.getItem("__c2save_"+f)||"",E("Loaded state from WebStorage ("+d.Hb.length+" bytes)"));d.Wh=!1;d.Hb.length||d.trigger(W.prototype.d.mk, null)},function(){d.Hb=localStorage.getItem("__c2save_"+f)||"";E("Loaded state from WebStorage ("+d.Hb.length+" bytes)");d.Wh=!1;d.Hb.length||d.trigger(W.prototype.d.mk,null)}):(this.Hb=localStorage.getItem("__c2save_"+f)||"",E("Loaded state from WebStorage ("+this.Hb.length+" bytes)"),this.Wh=!1,d.Hb.length||d.trigger(W.prototype.d.mk,null)),this.km=this.lj="");this.Hb.length&&(this.wb(),this.Bu(this.Hb),this.Nd=this.Hb,this.trigger(W.prototype.d.rr,null),this.Hb=this.Nd="")};m.prototype.nv=function(){var d, a,k,f,b,l,c,g={c2save:!0,version:1,rt:{time:this.Wb.X,walltime:this.yd.X,timescale:this.Af,tickcount:this.zf,execcount:this.Lg,next_uid:this.Dh,running_layout:this.ra.Z,start_time_offset:Date.now()-this.Tj},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};d=0;for(a=this.q.length;d<a;d++)if(b=this.q[d],!b.F&&!this.dq(b)){l={instances:[]};Ta(b.N)&&(l.ex=h(b.N));k=0;for(f=b.c.length;k<f;k++)l.instances.push(this.jm(b.c[k]));g.types[b.Z.toString()]=l}d=0;for(a=this.Tc.length;d<a;d++)k= this.Tc[d],g.layouts[k.Z.toString()]=k.Ib();f=g.events.groups;d=0;for(a=this.fe.length;d<a;d++)k=this.fe[d],f[k.Z.toString()]=this.Xg[k.Wg].Qf;a=g.events.cnds;for(c in this.Lf)this.Lf.hasOwnProperty(c)&&(d=this.Lf[c],Ta(d.N)&&(a[c]={ex:h(d.N)}));a=g.events.acts;for(c in this.Gf)this.Gf.hasOwnProperty(c)&&(d=this.Gf[c],Ta(d.N)&&(a[c]={ex:d.N}));a=g.events.vars;for(c in this.xg)this.xg.hasOwnProperty(c)&&(d=this.xg[c],d.cj||d.parent&&!d.kh||(a[c]=d.data));g.system=this.vd.Ib();return JSON.stringify(g)}; m.prototype.Cp=function(){var d,a,k,f,b,l;this.Pd={};d=0;for(a=this.q.length;d<a;d++)if(k=this.q[d],!k.F)for(f=0,b=k.c.length;f<b;f++)l=k.c[f],this.Pd[l.uid.toString()]=l};m.prototype.Bu=function(d){d=JSON.parse(d);if(d.c2save&&!(1<d.version)){var a=d.rt;this.Wb.reset();this.Wb.X=a.time;this.yd.reset();this.yd.X=a.walltime||0;this.Af=a.timescale;this.zf=a.tickcount;this.Lg=a.execcount;this.Tj=Date.now()-a.start_time_offset;var k=a.running_layout;if(k!==this.ra.Z)if(k=this.Vn(k))this.Fn(k);else return; var f,b,l,c,g,s,h;s=d.types;for(b in s)if(s.hasOwnProperty(b)&&(c=this.Xi(parseInt(b,10)))&&!c.F&&!this.dq(c)){s[b].ex?c.N=s[b].ex:Ua(c.N);g=c.c;l=s[b].instances;k=0;for(f=qa(g.length,l.length);k<f;k++)this.mj(g[k],l[k]);k=l.length;for(f=g.length;k<f;k++)this.be(g[k]);k=g.length;for(f=l.length;k<f;k++){g=null;if(c.ta.ve&&(g=this.ra.Wi(l[k].w.l),!g))continue;g=this.ne(c.uc,g,!1,0,0,!0);this.mj(g,l[k])}c.rg=!0}this.wb();this.Cp();f=d.layouts;for(b in f)f.hasOwnProperty(b)&&(k=this.Vn(parseInt(b,10)))&& k.Zb(f[b]);f=d.events.groups;for(b in f)f.hasOwnProperty(b)&&(k=this.Jt(parseInt(b,10)))&&this.Xg[k.Wg]&&this.Xg[k.Wg].Jp(f[b]);k=d.events.cnds;for(b in k)k.hasOwnProperty(b)&&this.Lf.hasOwnProperty(b)&&(this.Lf[b].N=k[b].ex);k=d.events.acts;for(b in k)k.hasOwnProperty(b)&&this.Gf.hasOwnProperty(b)&&(this.Gf[b].N=k[b].ex);k=d.events.vars;for(b in k)k.hasOwnProperty(b)&&this.xg.hasOwnProperty(b)&&(this.xg[b].data=k[b]);this.Dh=a.next_uid;this.vd.Zb(d.system);k=0;for(f=this.q.length;k<f;k++)if(c=this.q[k], !c.F)for(b=0,d=c.c.length;b<d;b++){g=c.c[b];if(c.Lb)for(s=g.Vg(),a=g.siblings.length=0,l=c.Tb.length;a<l;a++)h=c.Tb[a],c!==h&&g.siblings.push(h.c[s]);g.cd&&g.cd();if(g.S)for(a=0,l=g.S.length;a<l;a++)s=g.S[a],s.cd&&s.cd()}this.ga=!0}};m.prototype.jm=function(d,a){var k,b,f,l,c;l=d.type;f=l.ta;var g={};a?g.c2=!0:g.uid=d.uid;Ta(d.N)&&(g.ex=h(d.N));if(d.Wa&&d.Wa.length)for(g.ivs={},k=0,b=d.Wa.length;k<b;k++)g.ivs[d.type.ml[k].toString()]=d.Wa[k];if(f.ve){f={x:d.x,y:d.y,w:d.width,h:d.height,l:d.k.Z,zi:d.jd()}; 0!==d.g&&(f.a=d.g);1!==d.opacity&&(f.o=d.opacity);.5!==d.Db&&(f.hX=d.Db);.5!==d.Eb&&(f.hY=d.Eb);0!==d.Kb&&(f.bm=d.Kb);d.visible||(f.v=d.visible);d.Le||(f.ce=d.Le);-1!==d.Ch&&(f.mts=d.Ch);if(l.L.length)for(f.fx=[],k=0,b=l.L.length;k<b;k++)c=l.L[k],f.fx.push({name:c.name,active:d.ee[c.index],params:d.Ba[c.index]});g.w=f}if(d.S&&d.S.length)for(g.behs={},k=0,b=d.S.length;k<b;k++)l=d.S[k],l.Ib&&(g.behs[l.type.Z.toString()]=l.Ib());d.Ib&&(g.data=d.Ib());return g};m.prototype.Lt=function(d,a){var k,b;k= 0;for(b=d.ml.length;k<b;k++)if(d.ml[k]===a)return k;return-1};m.prototype.Gt=function(d,a){var k,b;k=0;for(b=d.S.length;k<b;k++)if(d.S[k].type.Z===a)return k;return-1};m.prototype.mj=function(d,a,k){var b,f,l,c,g;g=d.type;l=g.ta;if(k){if(!a.c2)return}else d.uid=a.uid;a.ex?d.N=a.ex:Ua(d.N);if(f=a.ivs)for(b in f)f.hasOwnProperty(b)&&(k=this.Lt(g,parseInt(b,10)),0>k||k>=d.Wa.length||(d.Wa[k]=f[b]));if(l.ve){l=a.w;d.k.Z!==l.l&&(k=d.k,d.k=this.ra.Wi(l.l),d.k?(k.kg(d,!0),d.k.Bg(d,!0),d.Da(),d.k.Rh(0)): (d.k=k,this.be(d)));d.x=l.x;d.y=l.y;d.width=l.w;d.height=l.h;d.ad=l.zi;d.g=l.hasOwnProperty("a")?l.a:0;d.opacity=l.hasOwnProperty("o")?l.o:1;d.Db=l.hasOwnProperty("hX")?l.hX:.5;d.Eb=l.hasOwnProperty("hY")?l.hY:.5;d.visible=l.hasOwnProperty("v")?l.v:!0;d.Le=l.hasOwnProperty("ce")?l.ce:!0;d.Ch=l.hasOwnProperty("mts")?l.mts:-1;d.Kb=l.hasOwnProperty("bm")?l.bm:0;d.Gg=hb(d.Kb);this.n&&ib(d,d.Kb,this.n);d.Da();if(l.hasOwnProperty("fx"))for(k=0,f=l.fx.length;k<f;k++)c=g.Yk(l.fx[k].name),0>c||(d.ee[c]=l.fx[k].active, d.Ba[c]=l.fx[k].params);d.Zd()}if(g=a.behs)for(b in g)g.hasOwnProperty(b)&&(l=this.Gt(d,parseInt(b,10)),0>l||d.S[l].Zb(g[b]));a.data&&d.Zb(a.data)};Rb=function(d){return new m(document.getElementById(d))};Sb=function(d,a){return new m({dc:!0,width:d,height:a})};window.cr_createRuntime=Rb;window.cr_createDCRuntime=Sb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var d=document.createElement("screencanvas")||document.createElement("canvas");d.Sw=!0;document.body.appendChild(d);d=new m(d); window.c2runtime=d;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);return d};window.createEjectaRuntime=function(){var d=new m(document.getElementById("canvas"));window.c2runtime=d;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return d}})(); window.cr_getC2Runtime=function(){var e=document.getElementById("c2canvas");return e?e.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_sizeCanvas=function(e,r){if(0!==e&&0!==r){var m=window.cr_getC2Runtime();m&&m.setSize(e,r)}};window.cr_setSuspended=function(e){var r=window.cr_getC2Runtime();r&&r.setSuspended(e)}; (function(){function e(a,b){this.b=a;this.Qe=null;this.scrollX=this.b.Za/2;this.scrollY=this.b.Ya/2;this.scale=1;this.g=0;this.Of=!0;this.name=b[0];this.width=b[1];this.height=b[2];this.fq=b[3];this.Op=b[4];this.Z=b[5];var c=b[6],f,g;this.T=[];this.$g=[];f=0;for(g=c.length;f<g;f++){var h=new Tb(this,c[f]);h.$o=f;this.T.push(h)}c=b[7];this.Ze=[];f=0;for(g=c.length;f<g;f++){var h=c[f],e=this.b.q[h[1]];e.uc||(e.uc=h);this.Ze.push(h);-1===this.$g.indexOf(e)&&this.$g.push(e)}this.L=[];this.ja=[];this.Ba= [];f=0;for(g=b[8].length;f<g;f++)this.L.push({id:b[8][f][0],name:b[8][f][1],tb:-1,xb:!0,index:f}),this.Ba.push(b[8][f][2].slice(0));this.Zd();this.Nh=new ua(0,0,1,1);this.cm=new ua(0,0,1,1);this.xe={}}function r(a,b){return a.ad-b.ad}function m(a,b){this.jb=a;this.b=a.b;this.c=[];this.scale=1;this.g=0;this.Oe=!1;this.Xd=new ua(0,0,0,0);this.Zp=new va;this.ob=this.Na=this.pb=this.Ma=0;this.Cf=!1;this.ae=-1;this.name=b[0];this.index=b[1];this.Z=b[2];this.visible=b[3];this.he=b[4];this.Yd=b[5];this.Dc= b[6];this.Ec=b[7];this.opacity=b[8];this.Sk=b[9];this.$c=b[10];this.bd=b[11];this.Kb=b[12];this.Rs=b[13];this.Gg="source-over";this.zb=this.Ab=0;this.cc=null;this.Yf=p();this.Sd=!0;this.hj=new ua(0,0,-1,-1);this.sc=new ua(0,0,-1,-1);this.$c&&(this.cc=new gb(this.b.Za,this.b.Ya));this.ye=!1;var c=b[14],f,g;this.Tp=[];this.mc=[];this.Hg=[];f=0;for(g=c.length;f<g;f++){var h=c[f],e=this.b.q[h[1]];e.uc||(e.uc=h,e.zs=this.index);this.mc.push(h);-1===this.jb.$g.indexOf(e)&&this.jb.$g.push(e)}Ba(this.Tp, this.mc);this.L=[];this.ja=[];this.Ba=[];f=0;for(g=b[15].length;f<g;f++)this.L.push({id:b[15][f][0],name:b[15][f][1],tb:-1,xb:!0,index:f}),this.Ba.push(b[15][f][2].slice(0));this.Zd();this.Nh=new ua(0,0,1,1);this.cm=new ua(0,0,1,1)}function p(){return h.length?h.pop():[]}function v(a){a.length=0;h.push(a)}e.prototype.lv=function(a){var b=a.type.Z.toString();this.xe.hasOwnProperty(b)||(this.xe[b]=[]);this.xe[b].push(this.b.jm(a))};e.prototype.ao=function(){var a=this.T[0];return!a.Yd&&1===a.opacity&& !a.Sk&&a.visible};e.prototype.Zd=function(){this.ja.length=0;var a,b,c;a=0;for(b=this.L.length;a<b;a++)c=this.L[a],c.xb&&this.ja.push(c)};e.prototype.Xk=function(a){var b,c,f;b=0;for(c=this.L.length;b<c;b++)if(f=this.L[b],f.name===a)return f;return null};var c=[],b=!0;e.prototype.qm=function(){this.Op&&(this.Qe=this.b.Nk[this.Op],this.Qe.Bm());this.b.ra=this;this.scrollX=this.b.Za/2;this.scrollY=this.b.Ya/2;var a,l,g,f,s,h,e;a=0;for(g=this.b.q.length;a<g;a++)if(l=this.b.q[a],!l.F)for(s=l.c,l=0,f= s.length;l<f;l++)if(h=s[l],h.k){var k=h.k.$o;k>=this.T.length&&(k=this.T.length-1);h.k=this.T[k];-1===h.k.c.indexOf(h)&&h.k.c.push(h);h.k.Cf=!0}if(!b)for(a=0,g=this.T.length;a<g;++a)this.T[a].c.sort(r);c.length=0;this.qs();a=0;for(g=this.T.length;a<g;a++)h=this.T[a],h.xs(),h.Dm();s=!1;if(!this.Of){for(e in this.xe)if(this.xe.hasOwnProperty(e)&&(l=this.b.Xi(parseInt(e,10)))&&!l.F&&this.b.Am(l)){f=this.xe[e];a=0;for(g=f.length;a<g;a++){h=null;if(l.ta.ve&&(h=this.Wi(f[a].w.l),!h))continue;h=this.b.ne(l.uc, h,!1,0,0,!0);this.b.mj(h,f[a]);s=!0;c.push(h)}f.length=0}a=0;for(g=this.T.length;a<g;a++)this.T[a].c.sort(r),this.T[a].Cf=!0}s&&(this.b.wb(),this.b.Cp());for(a=0;a<c.length;a++)if(h=c[a],h.type.Lb)for(g=h.Vg(),l=0,f=h.type.Tb.length;l<f;l++)e=h.type.Tb[l],h.type!==e&&(e.c.length>g?h.siblings.push(e.c[g]):e.uc&&(s=this.b.ne(e.uc,h.k,!0,h.x,h.y,!0),this.b.wb(),e.gk(),h.siblings.push(s),c.push(s)));a=0;for(g=this.Ze.length;a<g;a++)this.b.ne(this.Ze[a],null,!0);this.b.Bd=null;this.b.wb();if(this.b.qa&& !this.b.Aa)for(a=0,g=this.b.q.length;a<g;a++)e=this.b.q[a],!e.F&&e.c.length&&e.Fj&&e.Fj(this.b.qa);a=0;for(g=c.length;a<g;a++)h=c[a],this.b.trigger(Object.getPrototypeOf(h.type.ta).d.kk,h);c.length=0;this.b.trigger(W.prototype.d.Qm,null);this.Of=!1};e.prototype.ws=function(){var a,b,c,f,g;b=a=0;for(c=this.Ze.length;a<c;a++)f=this.Ze[a],g=this.b.q[f[1]],g.global?this.b.ne(f,null,!0):(this.Ze[b]=f,b++);this.Ze.length=b};e.prototype.uv=function(){this.b.trigger(W.prototype.d.Pm,null);this.b.vd.Pb.length= 0;var a,c,g,f,h,e;if(!this.Of)for(a=0,c=this.T.length;a<c;a++)for(this.T[a].Em(),h=this.T[a].c,g=0,f=h.length;g<f;g++)e=h[g],e.type.global||this.b.Am(e.type)&&this.lv(e);a=0;for(c=this.T.length;a<c;a++){h=this.T[a].c;g=0;for(f=h.length;g<f;g++)e=h[g],e.type.global||this.b.be(e);this.b.wb();h.length=0;this.T[a].Cf=!0}a=0;for(c=this.b.q.length;a<c;a++)if(h=this.b.q[a],!(h.global||h.ta.ve||h.ta.Rj||h.F)){g=0;for(f=h.c.length;g<f;g++)this.b.be(h.c[g]);this.b.wb()}b=!1};new ua(0,0,0,0);e.prototype.Gd= function(a){var b,c=a,f=!1,g=!this.b.xc;g&&(this.b.kj||(this.b.kj=document.createElement("canvas"),b=this.b.kj,b.width=this.b.W,b.height=this.b.V,this.b.Ao=b.getContext("2d"),f=!0),b=this.b.kj,c=this.b.Ao,b.width!==this.b.W&&(b.width=this.b.W,f=!0),b.height!==this.b.V&&(b.height=this.b.V,f=!0),f&&(c.webkitImageSmoothingEnabled=this.b.ea,c.mozImageSmoothingEnabled=this.b.ea,c.msImageSmoothingEnabled=this.b.ea,c.imageSmoothingEnabled=this.b.ea));c.globalAlpha=1;c.globalCompositeOperation="source-over"; this.b.uk&&!this.ao()&&c.clearRect(0,0,this.b.W,this.b.V);var h,e,f=0;for(h=this.T.length;f<h;f++)e=this.T[f],e.visible&&0<e.opacity&&11!==e.Kb&&(e.c.length||!e.Yd)?e.Gd(c):e.Dm();g&&a.drawImage(b,0,0,this.b.width,this.b.height)};e.prototype.wc=function(a){var b=0<this.ja.length||this.b.vg||!this.b.xc;if(b){this.b.Yb||(this.b.Yb=a.me(this.b.W,this.b.V,this.b.ea));if(this.b.Yb.Eg!==this.b.W||this.b.Yb.Dg!==this.b.V)a.deleteTexture(this.b.Yb),this.b.Yb=a.me(this.b.W,this.b.V,this.b.ea);a.td(this.b.Yb); this.b.xc||a.Be(this.b.W,this.b.V)}else this.b.Yb&&(a.td(null),a.deleteTexture(this.b.Yb),this.b.Yb=null);this.b.uk&&!this.ao()&&a.clear(0,0,0,0);var c,f,g;c=0;for(f=this.T.length;c<f;c++)g=this.T[c],g.visible&&0<g.opacity&&(g.c.length||!g.Yd)?g.wc(a):g.Dm();b&&(0===this.ja.length||1===this.ja.length&&this.b.xc?(1===this.ja.length?(b=this.ja[0].index,a.ud(this.ja[0].tb),a.ng(null,1/this.b.W,1/this.b.V,0,0,1,1,this.scale,this.g,0,0,this.b.W/2,this.b.V/2,this.Ba[b]),a.Gj(this.ja[0].tb)&&(this.b.ga= !0)):a.ud(0),this.b.xc||a.Be(this.b.width,this.b.height),a.td(null),a.wf(1),a.ec(this.b.Yb),a.Ip(),a.ze(),a.Ge(),b=this.b.width/2,c=this.b.height/2,a.Ij(-b,c,b,c,b,-c,-b,-c),a.ec(null)):this.em(a,null,null,null))};e.prototype.Ug=function(){return 0<this.ja.length||this.b.vg||!this.b.xc?this.b.Yb:null};e.prototype.Wn=function(){var a=this.T[0].Qc(),b,c,f;b=1;for(c=this.T.length;b<c;b++)f=this.T[b],(0!==f.Dc||0!==f.Ec)&&f.Qc()<a&&(a=f.Qc());return a};e.prototype.Gp=function(a){if(!this.fq){var b=1/ this.Wn()*this.b.W/2;a>this.width-b&&(a=this.width-b);a<b&&(a=b)}this.scrollX!==a&&(this.scrollX=a,this.b.ga=!0)};e.prototype.Hp=function(a){if(!this.fq){var b=1/this.Wn()*this.b.V/2;a>this.height-b&&(a=this.height-b);a<b&&(a=b)}this.scrollY!==a&&(this.scrollY=a,this.b.ga=!0)};e.prototype.qs=function(){this.Gp(this.scrollX);this.Hp(this.scrollY)};e.prototype.em=function(a,b,c,f){var g=c?c.ja:b?b.ja:this.ja,h=1,e=0,k=0,d=0,q=this.b.W,n=this.b.V;c?(h=c.k.Qc(),e=c.k.gb(),k=c.k.Ma,d=c.k.Na,q=c.k.pb,n= c.k.ob):b&&(h=b.Qc(),e=b.gb(),k=b.Ma,d=b.Na,q=b.pb,n=b.ob);var u=this.b.Vk,m,t,r,p,v=0,x=1,R,O=this.b.W,I=this.b.V,N=O/2,z=I/2,K=b?b.Nh:this.Nh,A=b?b.cm:this.cm,B=0,P=0,J=0,G=0,H=O,ga=O,M=I,na=I,ha=r=0,wa=c?c.k.gb():0;if(c){m=0;for(t=g.length;m<t;m++)r+=a.Pt(g[m].tb),ha+=a.Qt(g[m].tb);p=c.Oa;B=b.Fb(p.left,p.top,!0,!0);J=b.Fb(p.left,p.top,!1,!0);H=b.Fb(p.right,p.bottom,!0,!0);M=b.Fb(p.right,p.bottom,!1,!0);0!==wa&&(m=b.Fb(p.right,p.top,!0,!0),t=b.Fb(p.right,p.top,!1,!0),P=b.Fb(p.left,p.bottom,!0,!0), G=b.Fb(p.left,p.bottom,!1,!0),p=Math.min(B,H,m,P),H=Math.max(B,H,m,P),B=p,p=Math.min(J,M,t,G),M=Math.max(J,M,t,G),J=p);B-=r;J-=ha;H+=r;M+=ha;A.left=B/O;A.top=1-J/I;A.right=H/O;A.bottom=1-M/I;P=B=T(B);G=J=T(J);ga=H=sa(H);na=M=sa(M);P-=r;G-=ha;ga+=r;na+=ha;0>B&&(B=0);0>J&&(J=0);H>O&&(H=O);M>I&&(M=I);0>P&&(P=0);0>G&&(G=0);ga>O&&(ga=O);na>I&&(na=I);K.left=B/O;K.top=1-J/I;K.right=H/O;K.bottom=1-M/I}else K.left=A.left=0,K.top=A.top=0,K.right=A.right=1,K.bottom=A.bottom=1;ha=c&&((c.g||wa)&&a.Kh(g[0].tb)|| 0!==r||0!==ha||1!==c.opacity||c.type.ta.Vo)||b&&!c&&1!==b.opacity;a.Ip();if(ha){u[v]||(u[v]=a.me(O,I,this.b.ea));if(u[v].Eg!==O||u[v].Dg!==I)a.deleteTexture(u[v]),u[v]=a.me(O,I,this.b.ea);a.ud(0);a.td(u[v]);R=na-G;a.clearRect(P,I-G-R,ga-P,R);c?c.wc(a):(a.ec(this.b.pc),a.wf(b.opacity),a.ze(),a.translate(-N,-z),a.Ge(),a.sd(B,M,H,M,H,J,B,J,K));A.left=A.top=0;A.right=A.bottom=1;c&&(p=K.top,K.top=K.bottom,K.bottom=p);v=1;x=0}a.wf(1);r=g.length-1;var wa=a.$l(g[r].tb)||!b&&!c&&!this.b.xc,xa=0;m=0;for(t= g.length;m<t;m++){u[v]||(u[v]=a.me(O,I,this.b.ea));if(u[v].Eg!==O||u[v].Dg!==I)a.deleteTexture(u[v]),u[v]=a.me(O,I,this.b.ea);a.ud(g[m].tb);xa=g[m].index;a.Gj(g[m].tb)&&(this.b.ga=!0);0!=m||ha?(a.ng(f,1/O,1/I,A.left,A.top,A.right,A.bottom,h,e,k,d,(k+q)/2,(d+n)/2,c?c.Ba[xa]:b?b.Ba[xa]:this.Ba[xa]),a.ec(null),m!==r||wa?(a.td(u[v]),R=na-G,p=I-G-R,a.clearRect(P,p,ga-P,R)):(c?a.Ae(c.Ab,c.zb):b&&a.Ae(b.Ab,b.zb),a.td(f)),a.ec(u[x]),a.ze(),a.translate(-N,-z),a.Ge(),a.sd(B,M,H,M,H,J,B,J,K),m!==r||wa||a.ec(null)): (a.td(u[v]),R=na-G,p=I-G-R,a.clearRect(P,p,ga-P,R),c?(a.ng(f,1/c.width,1/c.height,A.left,A.top,A.right,A.bottom,h,e,k,d,(k+q)/2,(d+n)/2,c.Ba[xa]),c.wc(a)):(a.ng(f,1/O,1/I,0,0,1,1,h,e,k,d,(k+q)/2,(d+n)/2,b?b.Ba[xa]:this.Ba[xa]),a.ec(b?this.b.pc:this.b.Yb),a.ze(),a.translate(-N,-z),a.Ge(),a.sd(B,M,H,M,H,J,B,J,K)),A.left=A.top=0,A.right=A.bottom=1,c&&!wa&&(p=M,M=J,J=p));v=0===v?1:0;x=0===v?1:0}wa&&(a.ud(0),c?a.Ae(c.Ab,c.zb):b?a.Ae(b.Ab,b.zb):this.b.xc||(a.Be(this.b.width,this.b.height),N=this.b.width/ 2,z=this.b.height/2,J=B=0,H=this.b.width,M=this.b.height),a.td(f),a.ec(u[x]),a.ze(),a.translate(-N,-z),a.Ge(),c&&1===g.length&&!ha?a.sd(B,J,H,J,H,M,B,M,K):a.sd(B,M,H,M,H,J,B,J,K),a.ec(null))};e.prototype.Wi=function(a){var b,c;b=0;for(c=this.T.length;b<c;b++)if(this.T[b].Z===a)return this.T[b];return null};e.prototype.Ib=function(){var a,b,c,f={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.g,w:this.width,h:this.height,fv:this.Of,persist:this.xe,fx:[],layers:{}};a=0;for(b=this.L.length;a<b;a++)c= this.L[a],f.fx.push({name:c.name,active:c.xb,params:this.Ba[c.index]});a=0;for(b=this.T.length;a<b;a++)c=this.T[a],f.layers[c.Z.toString()]=c.Ib();return f};e.prototype.Zb=function(a){var b,c,f,g;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.g=a.a;this.width=a.w;this.height=a.h;this.xe=a.persist;"undefined"!==typeof a.fv&&(this.Of=a.fv);var h=a.fx;b=0;for(c=h.length;b<c;b++)if(f=this.Xk(h[b].name))f.xb=h[b].active,this.Ba[f.index]=h[b].params;this.Zd();b=a.layers;for(g in b)b.hasOwnProperty(g)&& (a=this.Wi(parseInt(g,10)))&&a.Zb(b[g])};Fb=e;m.prototype.Zd=function(){this.ja.length=0;var a,b,c;a=0;for(b=this.L.length;a<b;a++)c=this.L[a],c.xb&&this.ja.push(c)};m.prototype.Xk=function(a){var b,c,f;b=0;for(c=this.L.length;b<c;b++)if(f=this.L[b],f.name===a)return f;return null};m.prototype.xs=function(){var a,b,g,f,h,e;b=a=0;for(g=this.mc.length;a<g;a++){f=this.mc[a];h=this.b.q[f[1]];e=this.b.Am(h);h=!0;if(!e||this.jb.Of)f=this.b.ne(f,this,!0),c.push(f),f.type.global&&(h=!1,this.Hg.push(f.uid)); h&&(this.mc[b]=this.mc[a],b++)}this.mc.length=b;this.b.wb();!this.b.B&&this.L.length&&(this.Kb=this.Rs);this.Gg=hb(this.Kb);this.b.n&&ib(this,this.Kb,this.b.n);this.Sd=!0};m.prototype.kg=function(a,b){var c=Da(this.c,a);0>c||(b&&this.$c&&a.Nb&&a.Nb.right>=a.Nb.left&&(a.xa(),this.cc.update(a,a.Nb,null),a.Nb.set(0,0,-1,-1)),c===this.c.length-1?this.c.pop():(Aa(this.c,c),this.Rh(c)),this.Sd=!0)};m.prototype.Bg=function(a,b){a.ad=this.c.length;this.c.push(a);b&&this.$c&&a.Nb&&a.Da();this.Sd=!0};m.prototype.Vu= function(a){this.c.unshift(a);this.Rh(0)};m.prototype.Gu=function(a,b,c){var f=a.jd();b=b.jd();Aa(this.c,f);f<b&&b--;c&&b++;b===this.c.length?this.c.push(a):this.c.splice(b,0,a);this.Rh(f<b?f:b)};m.prototype.Rh=function(a){-1===this.ae?this.ae=a:a<this.ae&&(this.ae=a);this.Sd=this.Cf=!0};m.prototype.Em=function(){if(this.Cf){-1===this.ae&&(this.ae=0);var a,b,c;if(this.$c)for(a=this.ae,b=this.c.length;a<b;++a)c=this.c[a],c.ad=a,this.cc.Du(c.Nb);else for(a=this.ae,b=this.c.length;a<b;++a)this.c[a].ad= a;this.Cf=!1;this.ae=-1}};m.prototype.Qc=function(a){return this.Mt()*(this.b.xc||a?this.b.Cg:1)};m.prototype.Mt=function(){return(this.scale*this.jb.scale-1)*this.bd+1};m.prototype.gb=function(){return this.Oe?0:Ia(this.jb.g+this.g)};var h=[],t=[],g=[];m.prototype.Xn=function(){this.Em();this.cc.Jj(this.Ma,this.Na,this.pb,this.ob,g);if(!g.length)return p();if(1===g.length){var a=p();Ba(a,g[0]);g.length=0;return a}for(var b=!0;1<g.length;){for(var a=g,c=void 0,f=void 0,h=void 0,e=void 0,m=void 0, c=0,f=a.length;c<f-1;c+=2){var h=a[c],e=a[c+1],m=p(),k=h,d=e,q=m,n=0,u=0,r=0,S=k.length,C=d.length,oa=void 0,fa=void 0;for(q.length=S+C;n<S&&u<C;++r)oa=k[n],fa=d[u],oa.ad<fa.ad?(q[r]=oa,++n):(q[r]=fa,++u);for(;n<S;++n,++r)q[r]=k[n];for(;u<C;++u,++r)q[r]=d[u];b||(v(h),v(e));t.push(m)}1===f%2&&(b?(h=p(),Ba(h,a[f-1]),t.push(h)):t.push(a[f-1]));Ba(a,t);t.length=0;b=!1}a=g[0];g.length=0;return a};m.prototype.Gd=function(a){this.ye=this.Sk||1!==this.opacity||0!==this.Kb;var b=this.b.canvas,c=a,f=!1;this.ye&& (this.b.jj||(this.b.jj=document.createElement("canvas"),b=this.b.jj,b.width=this.b.W,b.height=this.b.V,this.b.zo=b.getContext("2d"),f=!0),b=this.b.jj,c=this.b.zo,b.width!==this.b.W&&(b.width=this.b.W,f=!0),b.height!==this.b.V&&(b.height=this.b.V,f=!0),f&&(c.webkitImageSmoothingEnabled=this.b.ea,c.mozImageSmoothingEnabled=this.b.ea,c.msImageSmoothingEnabled=this.b.ea,c.imageSmoothingEnabled=this.b.ea),this.Yd&&c.clearRect(0,0,this.b.W,this.b.V));c.globalAlpha=1;c.globalCompositeOperation="source-over"; this.Yd||(c.fillStyle="rgb("+this.he[0]+","+this.he[1]+","+this.he[2]+")",c.fillRect(0,0,this.b.W,this.b.V));c.save();this.Oe=!0;var f=this.Bb(0,0,!0,!0),g=this.Bb(0,0,!1,!0);this.Oe=!1;this.b.qd&&(f=Math.round(f),g=Math.round(g));this.gm(f,g,c);var h=this.Qc();c.scale(h,h);c.translate(-f,-g);this.$c?(this.sc.left=this.cc.gc(this.Ma),this.sc.top=this.cc.hc(this.Na),this.sc.right=this.cc.gc(this.pb),this.sc.bottom=this.cc.hc(this.ob),this.Sd||!this.sc.Li(this.hj)?(v(this.Yf),f=this.Xn(),this.Sd=!1, this.hj.Bi(this.sc)):f=this.Yf):f=this.c;for(var e,k=null,g=0,h=f.length;g<h;++g)e=f[g],e!==k&&(this.Os(e,c),k=e);this.$c&&(this.Yf=f);c.restore();this.ye&&(a.globalCompositeOperation=this.Gg,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};m.prototype.Os=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.xa();var c=a.Oa;c.right<this.Ma||c.bottom<this.Na||c.left>this.pb||c.top>this.ob||(b.globalCompositeOperation=a.Gg,a.Gd(b))}};m.prototype.Dm=function(){this.Oe=!0;var a=this.Bb(0,0,!0,!0),b= this.Bb(0,0,!1,!0);this.Oe=!1;this.b.qd&&(a=Math.round(a),b=Math.round(b));this.gm(a,b,null)};m.prototype.gm=function(a,b,c){var f=this.Qc();this.Ma=a;this.Na=b;this.pb=a+1/f*this.b.W;this.ob=b+1/f*this.b.V;a=this.gb();0!==a&&(c&&(c.translate(this.b.W/2,this.b.V/2),c.rotate(-a),c.translate(this.b.W/-2,this.b.V/-2)),this.Xd.set(this.Ma,this.Na,this.pb,this.ob),this.Xd.offset((this.Ma+this.pb)/-2,(this.Na+this.ob)/-2),this.Zp.Mp(this.Xd,a),this.Zp.qn(this.Xd),this.Xd.offset((this.Ma+this.pb)/2,(this.Na+ this.ob)/2),this.Ma=this.Xd.left,this.Na=this.Xd.top,this.pb=this.Xd.right,this.ob=this.Xd.bottom)};m.prototype.wc=function(a){var b=0,c=0;if(this.ye=this.Sk||1!==this.opacity||0<this.ja.length||0!==this.Kb){this.b.pc||(this.b.pc=a.me(this.b.W,this.b.V,this.b.ea));if(this.b.pc.Eg!==this.b.W||this.b.pc.Dg!==this.b.V)a.deleteTexture(this.b.pc),this.b.pc=a.me(this.b.W,this.b.V,this.b.ea);a.td(this.b.pc);this.Yd&&a.clear(0,0,0,0)}this.Yd||a.clear(this.he[0]/255,this.he[1]/255,this.he[2]/255,1);this.Oe= !0;var f=this.Bb(0,0,!0,!0),b=this.Bb(0,0,!1,!0);this.Oe=!1;this.b.qd&&(f=Math.round(f),b=Math.round(b));this.gm(f,b,null);f=this.Qc();a.ze();a.scale(f,f);a.Ep(-this.gb());a.translate((this.Ma+this.pb)/-2,(this.Na+this.ob)/-2);a.Ge();this.$c?(this.sc.left=this.cc.gc(this.Ma),this.sc.top=this.cc.hc(this.Na),this.sc.right=this.cc.gc(this.pb),this.sc.bottom=this.cc.hc(this.ob),this.Sd||!this.sc.Li(this.hj)?(v(this.Yf),b=this.Xn(),this.Sd=!1,this.hj.Bi(this.sc)):b=this.Yf):b=this.c;var g,h,e=null,c=0; for(g=b.length;c<g;++c)h=b[c],h!==e&&(this.Ps(b[c],a),e=h);this.$c&&(this.Yf=b);this.ye&&(b=this.ja.length?this.ja[0].tb:0,c=this.ja.length?this.ja[0].index:0,0===this.ja.length||1===this.ja.length&&!a.$l(b)&&1===this.opacity?(1===this.ja.length?(a.ud(b),a.ng(this.jb.Ug(),1/this.b.W,1/this.b.V,0,0,1,1,f,this.gb(),this.Ma,this.Na,(this.Ma+this.pb)/2,(this.Na+this.ob)/2,this.Ba[c]),a.Gj(b)&&(this.b.ga=!0)):a.ud(0),a.td(this.jb.Ug()),a.wf(this.opacity),a.ec(this.b.pc),a.Ae(this.Ab,this.zb),a.ze(),a.Ge(), f=this.b.W/2,b=this.b.V/2,a.Ij(-f,b,f,b,f,-b,-f,-b),a.ec(null)):this.jb.em(a,this,null,this.jb.Ug()))};m.prototype.Ps=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.xa();var c=a.Oa;c.right<this.Ma||c.bottom<this.Na||c.left>this.pb||c.top>this.ob||(a.mq?this.Qs(a,b):(b.ud(0),b.Ae(a.Ab,a.zb),a.wc(b)))}};m.prototype.Qs=function(a,b){var c=a.ja[0].tb,f=a.ja[0].index,g=this.Qc();if(1!==a.ja.length||b.$l(c)||b.Xu(c)||(a.g||a.k.gb())&&b.Kh(c)||1!==a.opacity||a.type.ta.Vo)this.jb.em(b,this,a,this.ye? this.b.pc:this.jb.Ug()),b.ze(),b.scale(g,g),b.Ep(-this.gb()),b.translate((this.Ma+this.pb)/-2,(this.Na+this.ob)/-2),b.Ge();else{b.ud(c);b.Ae(a.Ab,a.zb);b.Gj(c)&&(this.b.ga=!0);var h=0,e=0,k=0,d=0;b.Kh(c)&&(c=a.Oa,h=this.Fb(c.left,c.top,!0,!0),e=this.Fb(c.left,c.top,!1,!0),k=this.Fb(c.right,c.bottom,!0,!0),c=this.Fb(c.right,c.bottom,!1,!0),h/=windowWidth,e=1-e/windowHeight,k/=windowWidth,d=1-c/windowHeight);b.ng(this.ye?this.b.pc:this.jb.Ug(),1/a.width,1/a.height,h,e,k,d,g,this.gb(),this.Ma,this.Na, (this.Ma+this.pb)/2,(this.Na+this.ob)/2,a.Ba[f]);a.wc(b)}};m.prototype.Bb=function(a,b,c,f){var g=this.b.devicePixelRatio;this.b.df&&(a*=g,b*=g);var g=this.b.rp,h=this.b.sp,g=(this.jb.scrollX-g)*this.Dc+g,h=(this.jb.scrollY-h)*this.Ec+h,e=g,k=h,d=1/this.Qc(!f);f?(e-=this.b.W*d/2,k-=this.b.V*d/2):(e-=this.b.width*d/2,k-=this.b.height*d/2);e+=a*d;k+=b*d;b=this.gb();0!==b&&(e-=g,k-=h,a=Math.cos(b),b=Math.sin(b),f=e*a-k*b,k=k*a+e*b,e=f+g,k+=h);return c?e:k};m.prototype.Fb=function(a,b,c,f){var g=this.b.rp, h=this.b.sp,e=(this.jb.scrollX-g)*this.Dc+g,k=(this.jb.scrollY-h)*this.Ec+h,h=e,g=k,d=this.gb();if(0!==d){a-=e;b-=k;var q=Math.cos(-d),d=Math.sin(-d),n=a*q-b*d;b=b*q+a*d;a=n+e;b+=k}e=1/this.Qc(!f);f?(h-=this.b.W*e/2,g-=this.b.V*e/2):(h-=this.b.width*e/2,g-=this.b.height*e/2);h=(a-h)/e;g=(b-g)/e;a=this.b.devicePixelRatio;this.b.df&&!f&&(h/=a,g/=a);return c?h:g};m.prototype.Ib=function(){var a,b,c,f={s:this.scale,a:this.g,vl:this.Ma,vt:this.Na,vr:this.pb,vb:this.ob,v:this.visible,bc:this.he,t:this.Yd, px:this.Dc,py:this.Ec,o:this.opacity,zr:this.bd,fx:[],cg:this.Hg,instances:[]};a=0;for(b=this.L.length;a<b;a++)c=this.L[a],f.fx.push({name:c.name,active:c.xb,params:this.Ba[c.index]});return f};m.prototype.Zb=function(a){var b,c,f;this.scale=a.s;this.g=a.a;this.Ma=a.vl;this.Na=a.vt;this.pb=a.vr;this.ob=a.vb;this.visible=a.v;this.he=a.bc;this.Yd=a.t;this.Dc=a.px;this.Ec=a.py;this.opacity=a.o;this.bd=a.zr;this.Hg=a.cg||[];Ba(this.mc,this.Tp);var g=new ca;b=0;for(f=this.Hg.length;b<f;++b)g.add(this.Hg[b]); c=b=0;for(f=this.mc.length;b<f;++b)g.contains(this.mc[b][2])||(this.mc[c]=this.mc[b],++c);this.mc.length=c;c=a.fx;b=0;for(f=c.length;b<f;b++)if(a=this.Xk(c[b].name))a.xb=c[b].active,this.Ba[a.index]=c[b].params;this.Zd();this.c.sort(r);this.Cf=!0};Tb=m})(); (function(){function e(a,d){var b,c=a.length;switch(c){case 0:return!0;case 1:return a[0]===d[0];case 2:return a[0]===d[0]&&a[1]===d[1];default:for(b=0;b<c;b++)if(a[b]!==d[b])return!1;return!0}}function r(a,d){return a.index-d.index}function m(a){var d,b,c,f;2===a.length?a[0].index>a[1].index&&(d=a[0],a[0]=a[1],a[1]=d):2<a.length&&a.sort(r);a.length>=s.length&&(s.length=a.length+1);s[a.length]||(s[a.length]=[]);f=s[a.length];d=0;for(b=f.length;d<b;d++)if(c=f[d],e(a,c))return c;f.push(a);return a} function p(a,d){this.b=a;this.aq={};this.Jn={};this.hl=!1;this.eo=new ca;this.Jk=[];this.vk=[];this.name=d[0];var b=d[1];this.qe=[];var c,f;c=0;for(f=b.length;c<f;c++)this.ho(b[c],null,this.qe)}function v(a){this.type=a;this.c=[];this.da=[];this.O=!0}function c(a,d,b){this.sheet=a;this.parent=d;this.b=a.b;this.ca=[];this.Ce=[];this.bo=this.ck=this.xm=this.$i=this.group=this.pm=!1;this.Ta=[];this.Jc=[];this.Hc=[];this.Wg="";this.Qf=this.$i=this.group=!1;this.yi=null;b[1]&&(this.Wg=b[1][1].toLowerCase(), this.group=!0,this.$i=!!b[1][0],this.yi=[],this.Qf=this.$i,this.b.fe.push(this),this.b.Xg[this.Wg]=this);this.Uc=b[2];this.Z=b[4];this.group||(this.b.pn[this.Z.toString()]=this);var c=b[5];a=0;for(d=c.length;a<d;a++){var f=new Ub(this,c[a]);f.index=a;this.Ta.push(f);this.hn(f.type)}c=b[6];a=0;for(d=c.length;a<d;a++)f=new Vb(this,c[a]),f.index=a,this.Jc.push(f);if(8===b.length)for(b=b[7],a=0,d=b.length;a<d;a++)this.sheet.ho(b[a],this,this.Hc);this.dj=!1;this.Ta.length&&(this.dj=null==this.Ta[0].type&& this.Ta[0].qb==W.prototype.d.Jq)}function b(a,d){var b,c,f;if(a&&(-1===d.indexOf(a)&&d.push(a),a.Lb))for(b=0,c=a.Tb.length;b<c;b++)f=a.Tb[b],a!==f&&-1===d.indexOf(f)&&d.push(f)}function h(a,d){this.ic=a;this.sheet=a.sheet;this.b=a.b;this.R=[];this.Ca=[];this.N={};this.index=-1;this.zg=!1;this.qb=this.b.de(d[1]);this.trigger=0<d[3];this.In=2===d[3];this.md=d[4];this.nl=d[5];this.yu=d[6];this.Z=d[7];this.b.Lf[this.Z.toString()]=this;-1===d[0]?(this.type=null,this.Ka=this.im,this.Ke=null,this.Mc=-1): (this.type=this.b.q[d[0]],this.Ka=this.yu?this.jv:this.hm,d[2]?(this.Ke=this.type.Ui(d[2]),this.Mc=this.type.Wk(d[2])):(this.Ke=null,this.Mc=-1),this.ic.parent&&this.ic.parent.Qj());this.In&&(this.Ka=this.kv);if(10===d.length){var b,c,f=d[9];b=0;for(c=f.length;b<c;b++){var g=new Wb(this,f[b]);this.R.push(g)}this.Ca.length=f.length}}function t(a,d){this.ic=a;this.sheet=a.sheet;this.b=a.b;this.R=[];this.Ca=[];this.N={};this.index=-1;this.zg=!1;this.qb=this.b.de(d[1]);-1===d[0]?(this.type=null,this.Ka= this.im,this.Ke=null,this.Mc=-1):(this.type=this.b.q[d[0]],this.Ka=this.hm,d[2]?(this.Ke=this.type.Ui(d[2]),this.Mc=this.type.Wk(d[2])):(this.Ke=null,this.Mc=-1));this.Z=d[3];this.b.Gf[this.Z.toString()]=this;if(6===d.length){var b,c,f=d[5];b=0;for(c=f.length;b<c;b++){var g=new Wb(this,f[b]);this.R.push(g)}this.Ca.length=f.length}}function g(){D++;y.length===D&&y.push(new Xb);return y[D]}function a(a,d){this.Cc=a;this.ic=a.ic;this.sheet=a.sheet;this.b=a.b;this.type=d[0];this.gd=null;this.Wd=0;this.get= null;this.yn=0;this.jb=null;this.key=0;this.object=null;this.index=0;this.bi=this.xf=this.bi=this.xf=this.Kn=this.Re=this.ci=null;this.Ic=!1;var b,c,f;switch(d[0]){case 0:case 7:this.gd=new Yb(this,d[1]);this.Wd=0;this.get=this.Vt;break;case 1:this.gd=new Yb(this,d[1]);this.Wd=0;this.get=this.Wt;break;case 5:this.gd=new Yb(this,d[1]);this.Wd=0;this.get=this.$t;break;case 3:case 8:this.yn=d[1];this.get=this.Tt;break;case 6:this.jb=this.b.Zf[d[1]];this.get=this.au;break;case 9:this.key=d[1];this.get= this.Zt;break;case 4:this.object=this.b.q[d[1]];this.get=this.bu;this.ic.hn(this.object);this.Cc instanceof Vb?this.ic.Qj():this.ic.parent&&this.ic.parent.Qj();break;case 10:this.index=d[1];a.type.F?(this.get=this.Xt,this.Ic=!0):this.get=this.Yt;break;case 11:this.ci=d[1];this.Re=null;this.get=this.Ut;break;case 2:case 12:this.Kn=d[1];this.get=this.St;break;case 13:for(this.get=this.cu,this.xf=[],this.bi=[],b=1,c=d.length;b<c;b++)f=new Wb(this.Cc,d[b]),this.xf.push(f),this.bi.push(0)}}function l(a, d,b){this.sheet=a;this.parent=d;this.b=a.b;this.ca=[];this.name=b[1];this.di=b[2];this.kl=b[3];this.kh=!!b[4];this.cj=!!b[5];this.Z=b[6];this.b.xg[this.Z.toString()]=this;this.data=this.kl;this.parent?(this.qf=this.kh||this.cj?-1:this.b.sv++,this.b.ks.push(this)):(this.qf=-1,this.b.js.push(this))}function w(a,d,b){this.sheet=a;this.parent=d;this.b=a.b;this.ca=[];this.Zg=null;this.iu=b[1];this.xb=!0}function f(){this.Vp=[];this.reset(null)}var s=[];p.prototype.toString=function(){return this.name}; p.prototype.ho=function(a,d,b){switch(a[0]){case 0:a=new Zb(this,d,a);if(a.Uc)for(b.push(a),b=0,d=a.Ta.length;b<d;b++)a.Ta[b].trigger&&this.io(a,b);else a.so()?this.io(a,0):b.push(a);break;case 1:a=new Qb(this,d,a);b.push(a);break;case 2:a=new $b(this,d,a),b.push(a)}};p.prototype.Ga=function(){var a,d;a=0;for(d=this.qe.length;a<d;a++)this.qe[a].Ga(a<d-1&&this.qe[a+1].dj)};p.prototype.Bm=function(){this.Jk.length=0;this.vk.length=0;this.gn(this);this.vk.length=0};p.prototype.gn=function(a){var d,b, c,f,g=a.Jk,h=a.vk,e=this.eo.He();d=0;for(b=e.length;d<b;++d)c=e[d],f=c.Zg,!c.xb||a===f||-1<h.indexOf(f)||(h.push(f),f.gn(a),g.push(f))};p.prototype.Ka=function(a){this.b.Rw||(this.hl=!0,a||(this.b.rl=!0));var d,b;d=0;for(b=this.qe.length;d<b;d++){var c=this.qe[d];c.Ka();this.b.Dk(c.ca);this.b.se&&this.b.wb()}a||(this.b.rl=!1)};p.prototype.io=function(a,d){a.Uc||this.b.ek.push(a);var b,c,f=a.Ta[d],g;g=f.type?f.type.name:"system";var h=(b=f.In)?this.Jn:this.aq;h[g]||(h[g]=[]);g=h[g];h=f.qb;if(b){if(f.R.length&& (f=f.R[0],1===f.type&&2===f.gd.type)){f=f.gd.value.toLowerCase();b=0;for(c=g.length;b<c;b++)if(g[b].method==h){b=g[b].Kg;b[f]?b[f].push([a,d]):b[f]=[[a,d]];return}b={};b[f]=[[a,d]];g.push({method:h,Kg:b})}}else{b=0;for(c=g.length;b<c;b++)if(g[b].method==h){g[b].Kg.push([a,d]);return}X&&h===X.prototype.d.Ff?g.unshift({method:h,Kg:[[a,d]]}):g.push({method:h,Kg:[[a,d]]})}};Gb=p;v.prototype.gl=function(){return this.O?this.type.c.length:this.c.length};v.prototype.Cb=function(){return this.O?this.type.c: this.c};v.prototype.Ih=function(a){a&&(a.b.hb().fb.Uc?(this.O&&(this.c.length=0,Ba(this.da,a.type.c),this.O=!1),a=this.da.indexOf(a),-1!==a&&(this.c.push(this.da[a]),this.da.splice(a,1))):(this.O=!1,this.c.length=1,this.c[0]=a))};ob=v;window._c2hh_="CFF39BA4132C0EA6E8A7303A5381A8E04976E3E3";c.prototype.Ga=function(a){var d,b=this.parent;if(this.group)for(this.ck=!0;b;){if(!b.group){this.ck=!1;break}b=b.parent}this.xm=!this.so()&&(!this.parent||this.parent.group&&this.parent.ck);this.bo=!!a;this.Ce= this.ca.slice(0);for(b=this.parent;b;){a=0;for(d=b.ca.length;a<d;a++)this.hs(b.ca[a]);b=b.parent}this.ca=m(this.ca);this.Ce=m(this.Ce);a=0;for(d=this.Ta.length;a<d;a++)this.Ta[a].Ga();a=0;for(d=this.Jc.length;a<d;a++)this.Jc[a].Ga();a=0;for(d=this.Hc.length;a<d;a++)this.Hc[a].Ga(a<d-1&&this.Hc[a+1].dj)};c.prototype.Jp=function(a){if(this.Qf!==!!a){this.Qf=!!a;var d;a=0;for(d=this.yi.length;a<d;++a)this.yi[a].hq();0<d&&this.b.ra.Qe&&this.b.ra.Qe.Bm()}};c.prototype.hn=function(a){b(a,this.ca)};c.prototype.hs= function(a){b(a,this.Ce)};c.prototype.Qj=function(){this.pm=!0;this.parent&&this.parent.Qj()};c.prototype.so=function(){return this.Ta.length?this.Ta[0].trigger:!1};c.prototype.Ka=function(){var a,d=!1,b,c=this.b,f=this.b.hb();f.fb=this;var g=this.Ta;this.dj||(f.Lk=!1);if(this.Uc){0===g.length&&(d=!0);f.Ia=0;for(a=g.length;f.Ia<a;f.Ia++)g[f.Ia].trigger||(b=g[f.Ia].Ka())&&(d=!0);(f.kf=d)&&this.Lj()}else{f.Ia=0;for(a=g.length;f.Ia<a;f.Ia++)if(b=g[f.Ia].Ka(),!b){f.kf=!1;this.xm&&c.se&&c.wb();return}f.kf= !0;this.Lj()}this.Ts(f)};c.prototype.Ts=function(a){a.kf&&this.bo&&(a.Lk=!0);this.xm&&this.b.se&&this.b.wb()};c.prototype.gv=function(a){this.b.hb().fb=this;this.Ta[a].Ka()&&(this.Lj(),this.b.hb().kf=!0)};c.prototype.Lj=function(){var a=this.b.hb(),d;a.Qb=0;for(d=this.Jc.length;a.Qb<d;a.Qb++)if(this.Jc[a.Qb].Ka())return;this.Fp()};c.prototype.cv=function(){var a=this.b.hb(),d;for(d=this.Jc.length;a.Qb<d;a.Qb++)if(this.Jc[a.Qb].Ka())return;this.Fp()};c.prototype.Fp=function(){if(this.Hc.length){var a, d,b,c,f=this.Hc.length-1;this.b.Hj(this);if(this.pm)for(a=0,d=this.Hc.length;a<d;a++)b=this.Hc[a],(c=!this.ck||!this.group&&a<f)&&this.b.vf(b.ca),b.Ka(),c?this.b.rd(b.ca):this.b.Dk(b.ca);else for(a=0,d=this.Hc.length;a<d;a++)this.Hc[a].Ka();this.b.Cj()}};c.prototype.hv=function(){var a=this.b.hb();a.fb=this;var d=!1,b;a.Ia=0;for(b=this.Ta.length;a.Ia<b;a.Ia++)if(this.Ta[a.Ia].Ka())d=!0;else if(!this.Uc)return!1;return this.Uc?d:!0};c.prototype.lg=function(){this.b.Lg++;var a=this.b.hb().Ia,d=this.b.Hj(this); if(!this.Uc)for(d.Ia=a+1,a=this.Ta.length;d.Ia<a;d.Ia++)if(!this.Ta[d.Ia].Ka()){this.b.Cj();return}this.Lj();this.b.Cj()};c.prototype.ru=function(a){var d=a.index;if(0===d)return!0;for(--d;0<=d;--d)if(this.Ta[d].type===a.type)return!1;return!0};Zb=c;h.prototype.Ga=function(){var a,d,b;a=0;for(d=this.R.length;a<d;a++)b=this.R[a],b.Ga(),b.Ic&&(this.zg=!0)};h.prototype.kv=function(){return!0};h.prototype.im=function(){var a,d;a=0;for(d=this.R.length;a<d;a++)this.Ca[a]=this.R[a].get();return Ra(this.qb.apply(this.b.vd, this.Ca),this.nl)};h.prototype.jv=function(){var a,d;a=0;for(d=this.R.length;a<d;a++)this.Ca[a]=this.R[a].get();a=this.qb.apply(this.Ke?this.Ke:this.type,this.Ca);this.type.qc();return a};h.prototype.hm=function(){var a,d,b,c,f,g,h,e,l=this.type,s=l.H(),m=this.ic.Uc&&!this.trigger;d=0;var t=l.Lb,r=l.F,p=l.Id,y=this.Mc,w=-1<y,v=this.zg,D=this.R,B=this.Ca,P=this.nl,J=this.qb,G;if(v)for(d=0,f=D.length;d<f;++d)g=D[d],g.Ic||(B[d]=g.get(0));else for(d=0,f=D.length;d<f;++d)B[d]=D[d].get(0);if(s.O){s.c.length= 0;s.da.length=0;G=l.c;a=0;for(c=G.length;a<c;++a){e=G[a];if(v)for(d=0,f=D.length;d<f;++d)g=D[d],g.Ic&&(B[d]=g.get(a));w?(d=0,r&&(d=e.type.Nf[p]),d=J.apply(e.S[y+d],B)):d=J.apply(e,B);(h=Ra(d,P))?s.c.push(e):m&&s.da.push(e)}l.finish&&l.finish(!0);s.O=!1;l.qc();return s.gl()}b=0;G=(h=m&&!this.ic.ru(this))?s.da:s.c;var H=!1;a=0;for(c=G.length;a<c;++a){e=G[a];if(v)for(d=0,f=D.length;d<f;++d)g=D[d],g.Ic&&(B[d]=g.get(a));w?(d=0,r&&(d=e.type.Nf[p]),d=J.apply(e.S[y+d],B)):d=J.apply(e,B);if(Ra(d,P))if(H=!0, h){if(s.c.push(e),t)for(d=0,f=e.siblings.length;d<f;d++)g=e.siblings[d],g.type.H().c.push(g)}else{G[b]=e;if(t)for(d=0,f=e.siblings.length;d<f;d++)g=e.siblings[d],g.type.H().c[b]=g;b++}else if(h){G[b]=e;if(t)for(d=0,f=e.siblings.length;d<f;d++)g=e.siblings[d],g.type.H().da[b]=g;b++}else if(m&&(s.da.push(e),t))for(d=0,f=e.siblings.length;d<f;d++)g=e.siblings[d],g.type.H().da.push(g)}G.length=b;if(t)for(r=l.Tb,a=0,c=r.length;a<c;a++)e=r[a].H(),h?e.da.length=b:e.c.length=b;b=H;if(h&&!H)for(a=0,c=s.c.length;a< c;a++){e=s.c[a];if(v)for(d=0,f=D.length;d<f;d++)g=D[d],g.Ic&&(B[d]=g.get(a));d=w?J.apply(e.S[y],B):J.apply(e,B);if(Ra(d,P)){H=!0;break}}l.finish&&l.finish(b||m);return m?H:s.gl()};Ub=h;t.prototype.Ga=function(){var a,d,b;a=0;for(d=this.R.length;a<d;a++)b=this.R[a],b.Ga(),b.Ic&&(this.zg=!0)};t.prototype.im=function(){var a=this.b,d,b,c=this.R,f=this.Ca;d=0;for(b=c.length;d<b;++d)f[d]=c[d].get();return this.qb.apply(a.vd,f)};t.prototype.hm=function(){var a=this.type,d=this.Mc,b=a.Id,c=this.zg,f=this.R, g=this.Ca,h=this.qb,e=a.H().Cb(),a=a.F,l=-1<d,s,m,t,r,p,y;if(c)for(m=0,r=f.length;m<r;++m)p=f[m],p.Ic||(g[m]=p.get(0));else for(m=0,r=f.length;m<r;++m)g[m]=f[m].get(0);s=0;for(t=e.length;s<t;++s){y=e[s];if(c)for(m=0,r=f.length;m<r;++m)p=f[m],p.Ic&&(g[m]=p.get(s));l?(m=0,a&&(m=y.type.Nf[b]),h.apply(y.S[d+m],g)):h.apply(y,g)}return!1};Vb=t;var y=[],D=-1;a.prototype.Ga=function(){var a,d;if(11===this.type)this.Re=this.b.Sn(this.ci,this.ic.parent);else if(13===this.type)for(a=0,d=this.xf.length;a<d;a++)this.xf[a].Ga(); this.gd&&this.gd.Ga()};a.prototype.Fu=function(a){this.Ic||!a||a.ta.Rj||(this.Ic=!0)};a.prototype.Kp=function(){this.Ic=!0};a.prototype.Vt=function(a){this.Wd=a||0;a=g();this.gd.get(a);D--;return a.data};a.prototype.Wt=function(a){this.Wd=a||0;a=g();this.gd.get(a);D--;return Q(a.data)?a.data:""};a.prototype.bu=function(){return this.object};a.prototype.Tt=function(){return this.yn};a.prototype.$t=function(a){this.Wd=a||0;a=g();this.gd.get(a);D--;return a.Xa()?this.b.Sg(a.data):this.b.$k(a.data)}; a.prototype.au=function(){return this.jb};a.prototype.Zt=function(){return this.key};a.prototype.Yt=function(){return this.index};a.prototype.Xt=function(a){a=a||0;var d=this.Cc.type,b=null,b=d.H(),c=b.Cb();if(c.length)b=c[a%c.length].type;else if(b.da.length)b=b.da[a%b.da.length].type;else if(d.c.length)b=d.c[a%d.c.length].type;else return 0;return this.index+b.Oi[d.Id]};a.prototype.Ut=function(){return this.Re};a.prototype.St=function(){return this.Kn};a.prototype.cu=function(){var a,d;a=0;for(d= this.xf.length;a<d;a++)this.bi[a]=this.xf[a].get();return this.bi};Wb=a;l.prototype.Ga=function(){this.ca=m(this.ca)};l.prototype.Vd=function(a){var d=this.b.Rn();this.parent&&!this.kh&&d?(this.qf>=d.length&&(d.length=this.qf+1),d[this.qf]=a):this.data=a};l.prototype.Ue=function(){var a=this.b.Rn();return!this.parent||this.kh||!a||this.cj?this.data:this.qf>=a.length||"undefined"===typeof a[this.qf]?this.kl:a[this.qf]};l.prototype.Ka=function(){!this.parent||this.kh||this.cj||this.Vd(this.kl)};Qb= l;w.prototype.toString=function(){return"include:"+this.Zg.toString()};w.prototype.Ga=function(){this.Zg=this.b.Nk[this.iu];this.sheet.eo.add(this);this.ca=m(this.ca);for(var a=this.parent;a;)a.group&&a.yi.push(this),a=a.parent;this.hq()};w.prototype.Ka=function(){this.parent&&this.b.Lh(this.b.q);this.Zg.hl||this.Zg.Ka(!0);this.parent&&this.b.rd(this.b.q)};w.prototype.hq=function(){for(var a=this.parent;a;){if(a.group&&!a.Qf){this.xb=!1;return}a=a.parent}this.xb=!0};$b=w;f.prototype.reset=function(a){this.fb= a;this.Qb=this.Ia=0;this.Vp.length=0;this.Lk=this.kf=!1};f.prototype.no=function(){return this.fb.pm?!0:this.Ia<this.fb.Ta.length-1?!!this.fb.ca.length:!1};Pb=f})(); (function(){function e(b,c){this.Cc=b;this.b=b.b;this.type=c[0];this.get=[this.gt,this.ct,this.pt,this.ut,this.Vs,this.qt,this.kt,this.Zs,this.jt,this.ot,this.Ws,this.nt,this.$s,this.lt,this.ht,this.it,this.dt,this.et,this.Ys,this.tt,this.mt,this.ft,this.Xs,this.bt][this.type];var e=null;this.Od=this.R=this.Ca=this.qb=this.$j=this.nb=this.first=this.value=null;this.Mc=-1;this.te=null;this.oq=-1;this.Re=this.ci=null;this.mg=!1;switch(this.type){case 0:case 1:case 2:this.value=c[1];break;case 3:this.first= new Yb(b,c[1]);break;case 18:this.first=new Yb(b,c[1]);this.nb=new Yb(b,c[2]);this.$j=new Yb(b,c[3]);break;case 19:this.qb=this.b.de(c[1]);this.qb!==W.prototype.Y.random&&this.qb!==W.prototype.Y.xn||this.Cc.Kp();this.Ca=[];this.R=[];3===c.length?(e=c[2],this.Ca.length=e.length+1):this.Ca.length=1;break;case 20:this.Od=this.b.q[c[1]];this.Mc=-1;this.qb=this.b.de(c[2]);this.mg=c[3];lc&&this.qb===lc.prototype.Y.wq&&this.Cc.Kp();this.te=c[4]?new Yb(b,c[4]):null;this.Ca=[];this.R=[];6===c.length?(e=c[5], this.Ca.length=e.length+1):this.Ca.length=1;break;case 21:this.Od=this.b.q[c[1]];this.mg=c[2];this.te=c[3]?new Yb(b,c[3]):null;this.oq=c[4];break;case 22:this.Od=this.b.q[c[1]];this.Od.Ui(c[2]);this.Mc=this.Od.Wk(c[2]);this.qb=this.b.de(c[3]);this.mg=c[4];this.te=c[5]?new Yb(b,c[5]):null;this.Ca=[];this.R=[];7===c.length?(e=c[6],this.Ca.length=e.length+1):this.Ca.length=1;break;case 23:this.ci=c[1],this.Re=null}this.Cc.Fu(this.Od);4<=this.type&&17>=this.type&&(this.first=new Yb(b,c[1]),this.nb=new Yb(b, c[2]));if(e){var g,a;g=0;for(a=e.length;g<a;g++)this.R.push(new Yb(b,e[g]))}}function r(){++c;v.length===c&&v.push(new Xb);return v[c]}function m(b,c,e){var g,a;g=0;for(a=b.length;g<a;++g)b[g].get(e),c[g+1]=e.data}function p(b,c){this.type=b||ac.Ef;this.data=c||0;this.sf=null;this.type==ac.Ef&&(this.data=Math.floor(this.data))}e.prototype.Ga=function(){23===this.type&&(this.Re=this.Cc.b.Sn(this.ci,this.Cc.ic.parent));this.first&&this.first.Ga();this.nb&&this.nb.Ga();this.$j&&this.$j.Ga();this.te&& this.te.Ga();if(this.R){var b,c;b=0;for(c=this.R.length;b<c;b++)this.R[b].Ga()}};var v=[],c=-1;e.prototype.tt=function(b){var h=this.R,e=this.Ca;e[0]=b;b=r();m(h,e,b);--c;this.qb.apply(this.b.vd,e)};e.prototype.mt=function(b){var h=this.Od,e=this.Ca,g=this.R,a=this.te,l=this.qb,p=this.Cc.Wd,f=h.H(),s=f.Cb();if(!s.length)if(f.da.length)s=f.da;else{this.mg?b.La(""):b.ha(0);return}e[0]=b;b.sf=h;b=r();m(g,e,b);a&&(a.get(b),b.Xa()&&(p=b.data,s=h.c));--c;h=s.length;if(p>=h||p<=-h)p%=h;0>p&&(p+=h);l.apply(s[p], e)};e.prototype.Xs=function(b){var h=this.Od,e=this.Ca,g=this.R,a=this.te,l=this.Mc,p=this.qb,f=this.Cc.Wd,s=h.H(),y=s.Cb();if(!y.length)if(s.da.length)y=s.da;else{this.mg?b.La(""):b.ha(0);return}e[0]=b;b.sf=h;b=r();m(g,e,b);a&&(a.get(b),b.Xa()&&(f=b.data,y=h.c));--c;g=y.length;if(f>=g||f<=-g)f%=g;0>f&&(f+=g);f=y[f];y=0;h.F&&(y=f.type.Nf[h.Id]);p.apply(f.S[l+y],e)};e.prototype.ft=function(b){var h=this.te,e=this.Od,g=this.oq,a=this.Cc.Wd,l=e.H(),m=l.Cb();if(!m.length)if(l.da.length)m=l.da;else{this.mg? b.La(""):b.ha(0);return}if(h){l=r();h.get(l);if(l.Xa()){a=l.data;e=e.c;a%=e.length;0>a&&(a+=e.length);g=e[a].Wa[g];Q(g)?b.La(g):b.D(g);--c;return}--c}h=m.length;if(a>=h||a<=-h)a%=h;0>a&&(a+=h);a=m[a];m=0;e.F&&(m=a.type.Oi[e.Id]);g=a.Wa[g+m];Q(g)?b.La(g):b.D(g)};e.prototype.gt=function(b){b.type=ac.Ef;b.data=this.value};e.prototype.ct=function(b){b.type=ac.Df;b.data=this.value};e.prototype.pt=function(b){b.type=ac.String;b.data=this.value};e.prototype.ut=function(b){this.first.get(b);b.Xa()&&(b.data= -b.data)};e.prototype.Vs=function(b){this.first.get(b);var e=r();this.nb.get(e);b.Xa()&&e.Xa()&&(b.data+=e.data,e.Tf()&&b.dg());--c};e.prototype.qt=function(b){this.first.get(b);var e=r();this.nb.get(e);b.Xa()&&e.Xa()&&(b.data-=e.data,e.Tf()&&b.dg());--c};e.prototype.kt=function(b){this.first.get(b);var e=r();this.nb.get(e);b.Xa()&&e.Xa()&&(b.data*=e.data,e.Tf()&&b.dg());--c};e.prototype.Zs=function(b){this.first.get(b);var e=r();this.nb.get(e);b.Xa()&&e.Xa()&&(b.data/=e.data,b.dg());--c};e.prototype.jt= function(b){this.first.get(b);var e=r();this.nb.get(e);b.Xa()&&e.Xa()&&(b.data%=e.data,e.Tf()&&b.dg());--c};e.prototype.ot=function(b){this.first.get(b);var e=r();this.nb.get(e);b.Xa()&&e.Xa()&&(b.data=Math.pow(b.data,e.data),e.Tf()&&b.dg());--c};e.prototype.Ws=function(b){this.first.get(b);var e=r();this.nb.get(e);b.Xa()?e.ej()?b.La(b.data.toString()+e.data):b.data&&e.data?b.ha(1):b.ha(0):b.ej()&&(b.data=e.ej()?b.data+e.data:b.data+(Math.round(1E10*e.data)/1E10).toString());--c};e.prototype.nt=function(b){this.first.get(b); var e=r();this.nb.get(e);b.Xa()&&e.Xa()&&(b.data||e.data?b.ha(1):b.ha(0));--c};e.prototype.Ys=function(b){this.first.get(b);b.data?this.nb.get(b):this.$j.get(b)};e.prototype.$s=function(b){this.first.get(b);var e=r();this.nb.get(e);b.ha(b.data===e.data?1:0);--c};e.prototype.lt=function(b){this.first.get(b);var e=r();this.nb.get(e);b.ha(b.data!==e.data?1:0);--c};e.prototype.ht=function(b){this.first.get(b);var e=r();this.nb.get(e);b.ha(b.data<e.data?1:0);--c};e.prototype.it=function(b){this.first.get(b); var e=r();this.nb.get(e);b.ha(b.data<=e.data?1:0);--c};e.prototype.dt=function(b){this.first.get(b);var e=r();this.nb.get(e);b.ha(b.data>e.data?1:0);--c};e.prototype.et=function(b){this.first.get(b);var e=r();this.nb.get(e);b.ha(b.data>=e.data?1:0);--c};e.prototype.bt=function(b){var c=this.Re.Ue();L(c)?b.D(c):b.La(c)};Yb=e;p.prototype.Tf=function(){return this.type===ac.Df};p.prototype.Xa=function(){return this.type===ac.Ef||this.type===ac.Df};p.prototype.ej=function(){return this.type===ac.String}; p.prototype.dg=function(){this.Tf()||(this.ej()&&(this.data=parseFloat(this.data)),this.type=ac.Df)};p.prototype.ha=function(b){this.type=ac.Ef;this.data=Math.floor(b)};p.prototype.D=function(b){this.type=ac.Df;this.data=b};p.prototype.La=function(b){this.type=ac.String;this.data=b};p.prototype.mm=function(b){L(b)?(this.type=ac.Df,this.data=b):Q(b)?(this.type=ac.String,this.data=b.toString()):(this.type=ac.Ef,this.data=0)};Xb=p;ac={Ef:0,Df:1,String:2}})();function W(e){this.b=e;this.Pb=[]} W.prototype.Ib=function(){var e={},r,m,p,v,c,b,h,t;e.waits=[];var g=e.waits,a;r=0;for(m=this.Pb.length;r<m;r++){b=this.Pb[r];a={t:b.time,st:b.Rp,s:b.om,ev:b.Mf.Z,sm:[],sols:{}};b.Mf.Jc[b.Qb]&&(a.act=b.Mf.Jc[b.Qb].Z);p=0;for(v=b.ca.length;p<v;p++)a.sm.push(b.ca[p].Z);for(c in b.Jb)if(b.Jb.hasOwnProperty(c)){h=this.b.q[parseInt(c,10)];t={sa:b.Jb[c].Mj,insts:[]};p=0;for(v=b.Jb[c].Ld.length;p<v;p++)t.insts.push(b.Jb[c].Ld[p].uid);a.sols[h.Z.toString()]=t}g.push(a)}return e}; W.prototype.Zb=function(e){e=e.waits;var r,m,p,v,c,b,h,t,g,a,l;r=this.Pb.length=0;for(m=e.length;r<m;r++)if(b=e[r],t=this.b.pn[b.ev.toString()]){g=-1;p=0;for(v=t.Jc.length;p<v;p++)if(t.Jc[p].Z===b.act){g=p;break}if(-1!==g){h={Jb:{},ca:[],Kk:!1};h.time=b.t;h.Rp=b.st||"";h.om=!!b.s;h.Mf=t;h.Qb=g;p=0;for(v=b.sm.length;p<v;p++)(t=this.b.Xi(b.sm[p]))&&h.ca.push(t);for(c in b.sols)if(b.sols.hasOwnProperty(c)&&(t=this.b.Xi(parseInt(c,10)))){g=b.sols[c];a={Mj:g.sa,Ld:[]};p=0;for(v=g.insts.length;p<v;p++)(l= this.b.Tg(g.insts[p]))&&a.Ld.push(l);h.Jb[t.index.toString()]=a}this.Pb.push(h)}}}; (function(){function e(){}function r(b,a){var c=b.N.c2_feo_val,e=a.N.c2_feo_val;if(L(c)&&L(e))return c-e;c=""+c;e=""+e;return c<e?-1:c>e?1:0}function m(){}function p(){}var v=W.prototype;e.prototype.Lq=function(){return!0};e.prototype.Qm=function(){return!0};e.prototype.Pm=function(){return!0};e.prototype.Aq=function(b,a,c){return bc(b,a,c)};var c=[],b=-1;e.prototype.Mq=function(g){var a=g.H();b++;c.length===b&&c.push([]);var e=c[b];Ba(e,a.Cb());var h=this.b.hb(),f=h.fb,s=h.no(),h=this.b.Ap(),m,p, k,d,q,n,r=g.Lb;if(s)for(s=0,m=e.length;s<m&&!h.bb;s++){this.b.vf(f.ca);d=e[s];a=g.H();a.O=!1;a.c.length=1;a.c[0]=d;if(r)for(p=0,k=d.siblings.length;p<k;p++)q=d.siblings[p],n=q.type.H(),n.O=!1,n.c.length=1,n.c[0]=q;h.index=s;f.lg();this.b.rd(f.ca)}else for(a.O=!1,a.c.length=1,s=0,m=e.length;s<m&&!h.bb;s++){d=e[s];a.c[0]=d;if(r)for(p=0,k=d.siblings.length;p<k;p++)q=d.siblings[p],n=q.type.H(),n.O=!1,n.c.length=1,n.c[0]=q;h.index=s;f.lg()}e.length=0;this.b.vp();b--;return!1};e.prototype.Nq=function(g, a,e){a=g.H();b++;c.length===b&&c.push([]);var h=c[b];Ba(h,a.Cb());var f=this.b.hb(),s=f.fb,m=this.b.Rg(),p=f.no(),f=this.b.Ap(),k,d,q,n,t;k=0;for(d=h.length;k<d;k++)h[k].N.c2_feo_val=m.R[1].get(k);h.sort(r);1===e&&h.reverse();e=g.Lb;if(p)for(k=0,d=h.length;k<d&&!f.bb;k++){this.b.vf(s.ca);q=h[k];a=g.H();a.O=!1;a.c.length=1;a.c[0]=q;if(e)for(m=0,p=q.siblings.length;m<p;m++)n=q.siblings[m],t=n.type.H(),t.O=!1,t.c.length=1,t.c[0]=n;f.index=k;s.lg();this.b.rd(s.ca)}else for(a.O=!1,a.c.length=1,k=0,d=h.length;k< d&&!f.bb;k++){q=h[k];a.c[0]=q;if(e)for(m=0,p=q.siblings.length;m<p;m++)n=q.siblings[m],t=n.type.H(),t.O=!1,t.c.length=1,t.c[0]=n;f.index=k;s.lg()}h.length=0;this.b.vp();b--;return!1};e.prototype.Zr=function(){var b=this.b.Rg().N;"undefined"===typeof b.TriggerOnce_lastTick&&(b.TriggerOnce_lastTick=-1);var a=b.TriggerOnce_lastTick,c=this.b.zf;b.TriggerOnce_lastTick=c;return this.b.zl||a!==c-1};e.prototype.Kq=function(b){var a=this.b.Rg(),c=a.N.Every_lastTime||0,e=this.b.Wb.X;"undefined"===typeof a.N.Every_seconds&& (a.N.Every_seconds=b);var f=a.N.Every_seconds;if(e>=c+f)return a.N.Every_lastTime=c+f,e>=a.N.Every_lastTime+.04&&(a.N.Every_lastTime=e),a.N.Every_seconds=b,!0;e<c-.1&&(a.N.Every_lastTime=e);return!1};e.prototype.Eq=function(b,a,c){return bc(b.Ue(),a,c)};e.prototype.Uq=function(b){return(b=this.b.Xg[b.toLowerCase()])&&b.Qf};e.prototype.Bq=function(b,a,c){return b>=a&&b<=c};e.prototype.Jq=function(){var b=this.b.hb();return b.Lk?!1:!b.kf};e.prototype.nk=function(){return!0};e.prototype.fr=function(){return!0}; e.prototype.ok=function(){return!0};e.prototype.rr=function(){return!0};e.prototype.mk=function(){return!0};e.prototype.uq=function(b,a,c){return Ma(V(b),V(c))<=V(a)};e.prototype.Tq=function(b,a){return Oa(V(b),V(a))};e.prototype.Sq=function(b,a,c){b=Ka(b);a=Ka(a);c=Ka(c);return Oa(c,a)?Oa(b,a)&&!Oa(b,c):!(!Oa(b,a)&&Oa(b,c))};v.d=new e;m.prototype.Oq=function(b){this.b.gf||this.b.Bd||(this.b.Bd=b)};m.prototype.Iq=function(b,a,c,e){if(a&&b&&(a=this.b.An(b,a,c,e))){this.b.Rc++;var f;this.b.trigger(Object.getPrototypeOf(b.ta).d.kk, a);if(a.Lb)for(c=0,e=a.siblings.length;c<e;c++)f=a.siblings[c],this.b.trigger(Object.getPrototypeOf(f.type.ta).d.kk,f);this.b.Rc--;b=b.H();b.O=!1;b.c.length=1;b.c[0]=a;if(a.Lb)for(c=0,e=a.siblings.length;c<e;c++)f=a.siblings[c],b=f.type.H(),b.O=!1,b.c.length=1,b.c[0]=f}};m.prototype.Rr=function(b,a){0===b.di?L(a)?b.Vd(a):b.Vd(parseFloat(a)):1===b.di&&b.Vd(a.toString())};m.prototype.tq=function(b,a){0===b.di?L(a)?b.Vd(b.Ue()+a):b.Vd(b.Ue()+parseFloat(a)):1===b.di&&b.Vd(b.Ue()+a.toString())};m.prototype.Xr= function(b,a){0===b.di&&(L(a)?b.Vd(b.Ue()-a):b.Vd(b.Ue()-parseFloat(a)))};m.prototype.Qr=function(b){0>b&&(b=0);this.b.Af=b};var h=[],t=[];m.prototype.$r=function(b){if(!(0>b)){var a,c,e,f=this.b.hb(),s;s=h.length?h.pop():{Jb:{},ca:[]};s.Kk=!1;s.time=this.b.Wb.X+b;s.Rp="";s.om=!1;s.Mf=f.fb;s.Qb=f.Qb+1;b=0;for(a=this.b.q.length;b<a;b++)e=this.b.q[b],c=e.H(),c.O&&-1===f.fb.ca.indexOf(e)||(s.ca.push(e),e=void 0,e=t.length?t.pop():{Ld:[]},e.Mj=!1,e.Mj=c.O,Ba(e.Ld,c.c),s.Jb[b.toString()]=e);this.Pb.push(s); return!0}};m.prototype.Pq=function(b){if(!this.b.gf&&!this.b.Bd)for(var a in this.b.Zf)if(this.b.Zf.hasOwnProperty(a)&&kb(a,b)){this.b.Bd=this.b.Zf[a];break}};m.prototype.Hr=function(){if(!this.b.gf&&!this.b.Bd&&this.b.ra){this.b.Bd=this.b.ra;var b,a,c;b=0;for(a=this.b.fe.length;b<a;b++)c=this.b.fe[b],c.Jp(c.$i)}};v.u=new m;p.prototype["int"]=function(b,a){Q(a)?(b.ha(parseInt(a,10)),isNaN(b.data)&&(b.data=0)):b.ha(a)};p.prototype["float"]=function(b,a){Q(a)?(b.D(parseFloat(a)),isNaN(b.data)&&(b.data= 0)):b.D(a)};p.prototype.random=function(b,a,c){void 0===c?b.D(Math.random()*a):b.D(Math.random()*(c-a)+a)};p.prototype.sqrt=function(b,a){b.D(Math.sqrt(a))};p.prototype.abs=function(b,a){b.D(Math.abs(a))};p.prototype.round=function(b,a){b.ha(Math.round(a))};p.prototype.floor=function(b,a){b.ha(Math.floor(a))};p.prototype.ceil=function(b,a){b.ha(Math.ceil(a))};p.prototype.sin=function(b,a){b.D(Math.sin(V(a)))};p.prototype.cos=function(b,a){b.D(Math.cos(V(a)))};p.prototype.tan=function(b,a){b.D(Math.tan(V(a)))}; p.prototype.asin=function(b,a){b.D(Ga(Math.asin(a)))};p.prototype.acos=function(b,a){b.D(Ga(Math.acos(a)))};p.prototype.atan=function(b,a){b.D(Ga(Math.atan(a)))};p.prototype.exp=function(b,a){b.D(Math.exp(a))};p.prototype.log10=function(b,a){b.D(Math.log(a)/Math.LN10)};p.prototype.max=function(b){var a=arguments[1];"number"!==typeof a&&(a=0);var c,e,f;c=2;for(e=arguments.length;c<e;c++)f=arguments[c],"number"===typeof f&&a<f&&(a=f);b.D(a)};p.prototype.min=function(b){var a=arguments[1];"number"!== typeof a&&(a=0);var c,e,f;c=2;for(e=arguments.length;c<e;c++)f=arguments[c],"number"===typeof f&&a>f&&(a=f);b.D(a)};p.prototype.oe=function(b){b.D(this.b.oe)};p.prototype.Af=function(b){b.D(this.b.Af)};p.prototype.time=function(b){b.D(this.b.Wb.X)};p.prototype.zf=function(b){b.ha(this.b.zf)};p.prototype.uj=function(b){b.ha(this.b.uj)};p.prototype.Tk=function(b){b.ha(this.b.Tk)};p.prototype.g=function(b,a,c,e,f){b.D(Ga(La(a,c,e,f)))};p.prototype.Au=function(b,a,c,e){b.D(Sa(a,c,e))};p.prototype.find= function(b,a,c){Q(a)&&Q(c)?b.ha(a.search(new RegExp(db(c),"i"))):b.ha(-1)};p.prototype.left=function(b,a,c){b.La(Q(a)?a.substr(0,c):"")};p.prototype.right=function(b,a,c){b.La(Q(a)?a.substr(a.length-c):"")};p.prototype.replace=function(b,a,c,e){Q(a)&&Q(c)&&Q(e)?b.La(a.replace(new RegExp(db(c),"gi"),e)):b.La(Q(a)?a:"")};p.prototype.trim=function(b,a){b.La(Q(a)?a.trim():"")};p.prototype.xn=function(b){var a=T(Math.random()*(arguments.length-1));b.mm(arguments[a+1])};p.prototype.Fk=function(b){b.D(this.b.Fk/ 1E3)};p.prototype.nf=function(b){b.D(this.b.nf)};v.Y=new p;v.dv=function(){var b,a,c,e,f,s,m=this.b.hb();b=0;for(c=this.Pb.length;b<c;b++){e=this.Pb[b];if(-1===e.time){if(!e.om)continue}else if(e.time>this.b.Wb.X)continue;m.fb=e.Mf;m.Qb=e.Qb;m.Ia=0;for(a in e.Jb)e.Jb.hasOwnProperty(a)&&(f=this.b.q[parseInt(a,10)].H(),s=e.Jb[a],f.O=s.Mj,Ba(f.c,s.Ld),f=s,f.Ld.length=0,t.push(f));e.Mf.cv();this.b.Dk(e.ca);e.Kk=!0}a=b=0;for(c=this.Pb.length;b<c;b++)e=this.Pb[b],this.Pb[a]=e,e.Kk?(Ua(e.Jb),e.ca.length= 0,h.push(e)):a++;this.Pb.length=a}})(); (function(){nb=function(e,m){var p=e[1],v=e[3],c=e[4],b=e[5],h=e[6],t=e[7],g=e[8];m.d||(m.d={});m.u||(m.u={});m.Y||(m.Y={});var a=m.d,l=m.u,w=m.Y;v&&(a.ik=function(a,b){return bc(this.x,a,b)},a.Gq=function(a,b){return bc(this.y,a,b)},a.Tv=function(){var a=this.k;this.xa();var b=this.Oa;return!(b.right<a.Ma||b.bottom<a.Na||b.left>a.pb||b.top>a.ob)},a.Uv=function(){this.xa();var a=this.Oa,b=this.b.ra;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},a.ew=function(a,b,c){var e=this.H(),k= e.Cb();if(!k.length)return!1;var d=k[0],g=d,n=Qa(d.x,d.y,b,c),h,l,m;h=1;for(l=k.length;h<l;h++)if(d=k[h],m=Qa(d.x,d.y,b,c),0===a&&m<n||1===a&&m>n)n=m,g=d;e.Ih(g);return!0},l.sk=function(a){this.x!==a&&(this.x=a,this.Da())},l.Zm=function(a){this.y!==a&&(this.y=a,this.Da())},l.Nr=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.Da()},l.rw=function(a,b){var c=a.Nt(this);if(c){var e;c.Zk?(e=c.Zk(b,!0),c=c.Zk(b,!1)):(e=c.x,c=c.y);if(this.x!==e||this.y!==c)this.x=e,this.y=c,this.Da()}},l.Zv= function(a){0!==a&&(this.x+=Math.cos(this.g)*a,this.y+=Math.sin(this.g)*a,this.Da())},l.Yv=function(a,b){0!==b&&(this.x+=Math.cos(V(a))*b,this.y+=Math.sin(V(a))*b,this.Da())},w.an=function(a){a.D(this.x)},w.bn=function(a){a.D(this.y)},w.oe=function(a){a.D(this.b.Vi(this))});c&&(a.Fq=function(a,b){return bc(this.width,a,b)},a.Ov=function(a,b){return bc(this.height,a,b)},l.vw=function(a){this.width!==a&&(this.width=a,this.Da())},l.qw=function(a){this.height!==a&&(this.height=a,this.Da())},l.rk=function(a, b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.Da()},w.$m=function(a){a.D(this.width)},w.Mm=function(a){a.D(this.height)},w.Lv=function(a){this.xa();a.D(this.Oa.left)},w.Nv=function(a){this.xa();a.D(this.Oa.top)},w.Mv=function(a){this.xa();a.D(this.Oa.right)},w.Kv=function(a){this.xa();a.D(this.Oa.bottom)});b&&(a.uq=function(a,b){return Ma(this.g,V(b))<=V(a)},a.Tq=function(a){return Oa(this.g,V(a))},a.Sq=function(a,b){var c=Ka(a),e=Ka(b),k=Ia(this.g);return Oa(e,c)?Oa(k,c)&& !Oa(k,e):!(!Oa(k,c)&&Oa(k,e))},l.lw=function(a){a=V(Ha(a));isNaN(a)||this.g===a||(this.g=a,this.Da())},l.hw=function(a){0===a||isNaN(a)||(this.g+=V(a),this.g=Ia(this.g),this.Da())},l.iw=function(a){0===a||isNaN(a)||(this.g-=V(a),this.g=Ia(this.g),this.Da())},l.jw=function(a,b){var c=Na(this.g,V(b),V(a));isNaN(c)||this.g===c||(this.g=c,this.Da())},l.kw=function(a,b,c){a=Na(this.g,Math.atan2(c-this.y,b-this.x),V(a));isNaN(a)||this.g===a||(this.g=a,this.Da())},l.sw=function(a,b){var c=Math.atan2(b-this.y, a-this.x);isNaN(c)||this.g===c||(this.g=c,this.Da())},w.Jv=function(a){a.D(Ja(this.g))});p||(a.Dq=function(a,b,c){return bc(this.Wa[a],b,c)},a.Rv=function(a){return this.Wa[a]},a.fw=function(a,b){var c=this.H(),e=c.Cb();if(!e.length)return!1;var k=e[0],d=k,g=k.Wa[b],n,h,l;n=1;for(h=e.length;n<h;n++)if(k=e[n],l=k.Wa[b],0===a&&l<g||1===a&&l>g)g=l,d=k;c.Ih(d);return!0},a.dw=function(a){var b,c,e,k,d;if(this.b.Rg().nl){d=this.H();if(d.O)for(d.O=!1,d.c.length=0,d.da.length=0,e=this.c,b=0,c=e.length;b< c;b++)k=e[b],k.uid===a?d.da.push(k):d.c.push(k);else{e=b=0;for(c=d.c.length;b<c;b++)k=d.c[b],d.c[e]=k,k.uid===a?d.da.push(k):e++;d.c.length=e}this.qc();return!!d.c.length}k=this.b.Tg(a);if(!k)return!1;d=this.H();if(!d.O&&-1===d.c.indexOf(k))return!1;if(this.F)for(a=k.type.za,b=0,c=a.length;b<c;b++){if(a[b]===this)return d.Ih(k),this.qc(),!0}else if(k.type===this)return d.Ih(k),this.qc(),!0;return!1},a.kk=function(){return!0},a.hr=function(){return!0},l.Mr=function(a,b){var c=this.Wa;L(c[a])?c[a]= L(b)?b:parseFloat(b):Q(c[a])&&(c[a]=Q(b)?b:b.toString())},l.sq=function(a,b){var c=this.Wa;L(c[a])?c[a]=L(b)?c[a]+b:c[a]+parseFloat(b):Q(c[a])&&(c[a]=Q(b)?c[a]+b:c[a]+b.toString())},l.ww=function(a,b){var c=this.Wa;L(c[a])&&(c[a]=L(b)?c[a]-b:c[a]-parseFloat(b))},l.mw=function(a,b){this.Wa[a]=b?1:0},l.xw=function(a){this.Wa[a]=1-this.Wa[a]},l.Lm=function(){this.b.be(this)},l.Yq||(l.Yq=function(a){var b,c;try{b=JSON.parse(a)}catch(e){return}this.b.mj(this,b,!0);this.cd&&this.cd();if(this.S)for(a=0, b=this.S.length;a<b;++a)c=this.S[a],c.cd&&c.cd()}),w.Hq=function(a){var b=a.sf.c.length,c,e,k;c=0;for(e=this.b.Oc.length;c<e;c++)k=this.b.Oc[c],a.sf.F?0<=k.type.za.indexOf(a.sf)&&b++:k.type===a.sf&&b++;a.ha(b)},w.gw=function(a){a.ha(a.sf.H().Cb().length)},w.yw=function(a){a.ha(this.uid)},w.Qv=function(a){a.ha(this.Vg())},w.gi||(w.gi=function(a){a.La(JSON.stringify(this.b.jm(this,!0)))}));h&&(a.Vv=function(){return this.visible},l.uw=function(a){!a!==!this.visible&&(this.visible=a,this.b.ga=!0)},a.Pv= function(a,b){return bc(jb(100*this.opacity),a,b)},l.Xm=function(a){a/=100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.ga=!0)},w.Opacity=function(a){a.D(jb(100*this.opacity))});t&&(a.Sv=function(a){return a?this.k===a:!1},a.Dr=function(a){var b=this.H(),c=b.Cb();if(!c.length)return!1;var e=c[0],k=e,d,g;d=1;for(g=c.length;d<g;d++)if(e=c[d],0===a){if(e.k.index>k.k.index||e.k.index===k.k.index&&e.jd()>k.jd())k=e}else if(e.k.index<k.k.index||e.k.index===k.k.index&&e.jd()<k.jd())k=e;b.Ih(k); return!0},l.Om=function(){var a=this.k,b=a.c;b.length&&b[b.length-1]===this||(a.kg(this,!1),a.Bg(this,!1),this.b.ga=!0)},l.br=function(){var a=this.k,b=a.c;b.length&&b[0]===this||(a.kg(this,!1),a.Vu(this),this.b.ga=!0)},l.$v=function(a){a&&a!=this.k&&(this.k.kg(this,!0),this.k=a,a.Bg(this,!0),this.b.ga=!0)},l.Aw=function(a,b){var c=0===a;if(b){var e=b.Tn(this);e&&e.uid!==this.uid&&(this.k.index!==e.k.index&&(this.k.kg(this,!0),this.k=e.k,e.k.Bg(this,!0)),this.k.Gu(this,e,c),this.b.ga=!0)}},w.Xv=function(a){a.ha(this.k.$o)}, w.Wv=function(a){a.La(this.k.name)},w.zw=function(a){a.ha(this.jd())});g&&(l.ow=function(a,b){if(this.b.B){var c=this.type.Yk(b);if(!(0>c)){var e=1===a;this.ee[c]!==e&&(this.ee[c]=e,this.Zd(),this.b.ga=!0)}}},l.pw=function(a,b,c){if(this.b.B){var e=this.type.Yk(a);0>e||(a=this.type.L[e],e=this.Ba[e],b=Math.floor(b),0>b||b>=e.length||(1===this.b.B.Rt(a.tb,b)&&(c/=100),e[b]!==c&&(e[b]=c,a.xb&&(this.b.ga=!0))))}})};Hb=function(){this.Ak=this.xk=!0;this.type.ii=!0;this.b.ga=!0;var e,m,p=this.yk;e=0;for(m= p.length;e<m;++e)p[e](this);this.k.$c&&this.xa()};Ib=function(e){e&&this.yk.push(e)};Kb=function(){if(this.xk){var e=this.Oa,m=this.Sb;e.set(this.x,this.y,this.x+this.width,this.y+this.height);e.offset(-this.Db*this.width,-this.Eb*this.height);this.g?(e.offset(-this.x,-this.y),m.Mp(e,this.g),m.offset(this.x,this.y),m.qn(e)):m.Sh(e);e.normalize();this.xk=!1;this.Cv()}};var e=new ua(0,0,0,0);Lb=function(){if(this.k.$c){var r=this.k.cc,m=this.Oa;e.set(r.gc(m.left),r.hc(m.top),r.gc(m.right),r.hc(m.bottom)); this.Nb.Li(e)||(this.Nb.right<this.Nb.left?r.update(this,null,e):r.update(this,this.Nb,e),this.Nb.Bi(e),this.k.Sd=!0)}};Mb=function(){if(this.Ak&&this.Le){this.xa();var r=this.type.xi,m=this.Oa;e.set(r.gc(m.left),r.hc(m.top),r.gc(m.right),r.hc(m.bottom));this.le.Li(e)||(this.le.right<this.le.left?r.update(this,null,e):r.update(this,this.le,e),this.le.Bi(e),this.Ak=!1)}};Jb=function(e,m){return this.Oa.yb(e,m)&&this.Sb.yb(e,m)?this.ka&&!this.ka.Sf()?(this.ka.If(this.width,this.height,this.g),this.ka.yb(e- this.x,m-this.y)):!0:!1};Db=function(){this.type.gk();return this.Xe};Nb=function(){this.k.Em();return this.ad};Ob=function(){this.ja.length=0;var e,m;e=0;for(m=this.ee.length;e<m;e++)this.ee[e]&&this.ja.push(this.type.L[e]);this.mq=!!this.ja.length};Eb=function(){return"Inst"+this.zp};qb=function(e){if(e&&e.Lb&&e.type!=this){var m,p,v;m=0;for(p=e.siblings.length;m<p;m++)if(v=e.siblings[m],v.type==this)return v}e=this.H().Cb();return e.length?e[0]:null};rb=function(e){var m=this.H().Cb();return m.length? m[e.Vg()%m.length]:null};pb=function(){if(this.rg&&!this.F){var e,m;e=0;for(m=this.c.length;e<m;e++)this.c[e].Xe=e;var p=e,v=this.b.Oc;e=0;for(m=v.length;e<m;++e)v[e].type===this&&(v[e].Xe=p++);this.rg=!1}};Bb=function(e){if(e<this.c.length)return this.c[e];e-=this.c.length;var m=this.b.Oc,p,v;p=0;for(v=m.length;p<v;++p)if(m[p].type===this){if(0===e)return m[p];--e}return null};sb=function(){return this.De[this.Fd]};tb=function(){this.Fd++;this.Fd===this.De.length?this.De.push(new ob(this)):this.De[this.Fd].O= !0};ub=function(){this.Fd++;this.Fd===this.De.length&&this.De.push(new ob(this));var e=this.De[this.Fd],m=this.De[this.Fd-1];m.O?e.O=!0:(e.O=!1,Ba(e.c,m.c),Ba(e.da,m.da))};vb=function(){this.Fd--};wb=function(e){var m,p,v,c,b,h=0;if(!this.F)for(m=0,p=this.za.length;m<p;m++)for(b=this.za[m],v=0,c=b.Ha.length;v<c;v++){if(e===b.Ha[v].name)return this.N.lastBehIndex=h,b.Ha[v];h++}m=0;for(p=this.Ha.length;m<p;m++){if(e===this.Ha[m].name)return this.N.lastBehIndex=h,this.Ha[m];h++}return null};yb=function(e){return this.Ui(e)? this.N.lastBehIndex:-1};zb=function(e){var m,p;m=0;for(p=this.L.length;m<p;m++)if(this.L[m].name===e)return m;return-1};Ab=function(){if(this.Lb&&!this.F){var e,m,p,v,c,b,h;this.gk();b=this.H();var t=b.O,g=(e=this.b.hb())&&e.fb&&e.fb.Uc;e=0;for(m=this.Tb.length;e<m;e++)if(c=this.Tb[e],c!==this&&(c.gk(),h=c.H(),h.O=t,!t)){h.c.length=b.c.length;p=0;for(v=b.c.length;p<v;p++)h.c[p]=c.Un(b.c[p].Xe);if(g)for(h.da.length=b.da.length,p=0,v=b.da.length;p<v;p++)h.da[p]=c.Un(b.da[p].Xe)}}};Cb=function(){return"Type"+ this.Z};bc=function(e,m,p){if("undefined"===typeof e||"undefined"===typeof p)return!1;switch(m){case 0:return e===p;case 1:return e!==p;case 2:return e<p;case 3:return e<=p;case 4:return e>p;case 5:return e>=p;default:return!1}}})();var jc={};function mc(e){this.b=e} (function(){function e(){return h.length?h.pop():[]}function r(b){var c,a;c=0;for(a=b.length;c<a;c++)Array.isArray(b[c])&&r(b[c]);b.length=0;h.push(b)}function m(){}function p(){}function v(){}var c=mc.prototype;c.ua=function(b){this.ta=b;this.b=b.b};c.ua.prototype.U=function(){};c.la=function(b){this.type=b;this.b=b.b};var b=c.la.prototype,h=[];Array.isArray||(Array.isArray=function(b){return"[object Array]"===Object.prototype.toString.call(b)});b.U=function(){this.kc=this.A[0];this.tc=this.A[1]; this.Pc=this.A[2];this.ac||(this.ed=e());var b=this.ed;b.length=this.kc;var c,a,h;for(c=0;c<this.kc;c++)for(b[c]||(b[c]=e()),b[c].length=this.tc,a=0;a<this.tc;a++)for(b[c][a]||(b[c][a]=e()),b[c][a].length=this.Pc,h=0;h<this.Pc;h++)b[c][a][h]=0;this.Mn=[];this.Nn=[];this.On=[];this.Jd=-1};b.tf=function(){var b;for(b=0;b<this.kc;b++)r(this.ed[b]);this.ed.length=0};b.Lc=function(b,c,a){b=Math.floor(b);c=Math.floor(c);a=Math.floor(a);return isNaN(b)||0>b||b>this.kc-1||isNaN(c)||0>c||c>this.tc-1||isNaN(a)|| 0>a||a>this.Pc-1?0:this.ed[b][c][a]};b.set=function(b,c,a,e){b=Math.floor(b);c=Math.floor(c);a=Math.floor(a);isNaN(b)||0>b||b>this.kc-1||isNaN(c)||0>c||c>this.tc-1||isNaN(a)||0>a||a>this.Pc-1||(this.ed[b][c][a]=e)};b.Ft=function(){return JSON.stringify({c2array:!0,size:[this.kc,this.tc,this.Pc],data:this.ed})};b.Ib=function(){return{size:[this.kc,this.tc,this.Pc],data:this.ed}};b.Zb=function(b){var c=b.size;this.kc=c[0];this.tc=c[1];this.Pc=c[2];this.ed=b.data};b.Be=function(b,c,a){0>b&&(b=0);0>c&& (c=0);0>a&&(a=0);if(this.kc!==b||this.tc!==c||this.Pc!==a){this.kc=b;this.tc=c;this.Pc=a;var h,m,f=this.ed;f.length=b;for(b=0;b<this.kc;b++)for(ia(f[b])&&(f[b]=e()),f[b].length=c,h=0;h<this.tc;h++)for(ia(f[b][h])&&(f[b][h]=e()),f[b][h].length=a,m=0;m<this.Pc;m++)ia(f[b][h][m])&&(f[b][h][m]=0)}};b.Iw=function(){return 0<=this.Jd&&this.Jd<this.Mn.length?this.Mn[this.Jd]:0};b.Jw=function(){return 0<=this.Jd&&this.Jd<this.Nn.length?this.Nn[this.Jd]:0};b.Kw=function(){return 0<=this.Jd&&this.Jd<this.On.length? this.On[this.Jd]:0};m.prototype.ik=function(b,c,a){return bc(this.Lc(b,0,0),c,a)};b.Dw=function(b){this.b.vf(b.ca);b.lg();this.b.rd(b.ca)};c.d=new m;p.prototype.rk=function(b,c,a){this.Be(b,c,a)};p.prototype.sk=function(b,c){this.set(b,0,0,c)};p.prototype.Nm=function(b){var c;try{c=JSON.parse(b)}catch(a){return}c.c2array&&(b=c.size,this.kc=b[0],this.tc=b[1],this.Pc=b[2],this.ed=c.data)};c.u=new p;v.prototype.vq=function(b,c,a,e){b.mm(this.Lc(c,a||0,e||0))};v.prototype.$m=function(b){b.ha(this.kc)}; v.prototype.Mm=function(b){b.ha(this.tc)};v.prototype.gi=function(b){b.La(this.Ft())};c.Y=new v})();function nc(e){this.b=e} (function(){function e(a){a=Math.pow(10,a/20);0>a&&(a=0);1<a&&(a=1);return a}function r(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function m(a){a=a.toLowerCase();return U.hasOwnProperty(a)&&U[a].length?U[a][0].lc():z.destination}function p(){return z.createGain?z.createGain():z.createGainNode()}function v(a){return z.createDelay?z.createDelay(a):z.createDelayNode(a)}function c(a){a.start?a.start(0):a.noteOn(0)}function b(a,b,d){a.start?a.start(0,b):a.noteGrainOn(0,b,d-b)}function h(a){try{a.stop? a.stop(0):a.noteOff(0)}catch(b){}}function t(a,b,d,c,e,f){this.type="filter";this.sb=[a,b,d,c,e,f];this.ba=p();this.K=p();this.K.gain.value=f;this.I=p();this.I.gain.value=1-f;this.Ja=z.createBiquadFilter();this.Ja.type="number"===typeof this.Ja.type?a:xc[a];this.Ja.frequency.value=b;this.Ja.detune&&(this.Ja.detune.value=d);this.Ja.Q.value=c;this.Ja.gain.value=e;this.ba.connect(this.Ja);this.ba.connect(this.I);this.Ja.connect(this.K)}function g(a,b,d){this.type="delay";this.sb=[a,b,d];this.ba=p(); this.K=p();this.K.gain.value=d;this.I=p();this.I.gain.value=1-d;this.Ah=p();this.vc=v(a);this.vc.delayTime.value=a;this.Ii=p();this.Ii.gain.value=b;this.ba.connect(this.Ah);this.ba.connect(this.I);this.Ah.connect(this.K);this.Ah.connect(this.vc);this.vc.connect(this.Ii);this.Ii.connect(this.Ah)}function a(a,b,d,c){this.type="convolve";this.sb=[b,d,c];this.ba=p();this.K=p();this.K.gain.value=d;this.I=p();this.I.gain.value=1-d;this.Me=z.createConvolver();a&&(this.Me.normalize=b,this.Me.buffer=a);this.ba.connect(this.Me); this.ba.connect(this.I);this.Me.connect(this.K)}function l(a,b,d,e,f){this.type="flanger";this.sb=[a,b,d,e,f];this.ba=p();this.I=p();this.I.gain.value=1-f/2;this.K=p();this.K.gain.value=f/2;this.Pi=p();this.Pi.gain.value=e;this.vc=v(a+b);this.vc.delayTime.value=a;this.lb=z.createOscillator();this.lb.frequency.value=d;this.$b=p();this.$b.gain.value=b;this.ba.connect(this.vc);this.ba.connect(this.I);this.vc.connect(this.K);this.vc.connect(this.Pi);this.Pi.connect(this.vc);this.lb.connect(this.$b);this.$b.connect(this.vc.delayTime); c(this.lb)}function w(a,b,d,e,f,k){this.type="phaser";this.sb=[a,b,d,e,f,k];this.ba=p();this.I=p();this.I.gain.value=1-k/2;this.K=p();this.K.gain.value=k/2;this.Ja=z.createBiquadFilter();this.Ja.type="number"===typeof this.Ja.type?7:"allpass";this.Ja.frequency.value=a;this.Ja.detune&&(this.Ja.detune.value=b);this.Ja.Q.value=d;this.lb=z.createOscillator();this.lb.frequency.value=f;this.$b=p();this.$b.gain.value=e;this.ba.connect(this.Ja);this.ba.connect(this.I);this.Ja.connect(this.K);this.lb.connect(this.$b); this.$b.connect(this.Ja.frequency);c(this.lb)}function f(a){this.type="gain";this.sb=[a];this.fa=p();this.fa.gain.value=a}function s(a,b){this.type="tremolo";this.sb=[a,b];this.fa=p();this.fa.gain.value=1-b/2;this.lb=z.createOscillator();this.lb.frequency.value=a;this.$b=p();this.$b.gain.value=b/2;this.lb.connect(this.$b);this.$b.connect(this.fa.gain);c(this.lb)}function y(a,b){this.type="ringmod";this.sb=[a,b];this.ba=p();this.K=p();this.K.gain.value=b;this.I=p();this.I.gain.value=1-b;this.Ph=p(); this.Ph.gain.value=0;this.lb=z.createOscillator();this.lb.frequency.value=a;this.lb.connect(this.Ph.gain);c(this.lb);this.ba.connect(this.Ph);this.ba.connect(this.I);this.Ph.connect(this.K)}function D(a,b,d,c,e){this.type="distortion";this.sb=[a,b,d,c,e];this.ba=p();this.Ej=p();this.Dj=p();this.ov(d,Math.pow(10,c/20));this.K=p();this.K.gain.value=e;this.I=p();this.I.gain.value=1-e;this.hk=z.createWaveShaper();this.Gi=new Float32Array(65536);this.Dt(a,b);this.hk.Gi=this.Gi;this.ba.connect(this.Ej); this.ba.connect(this.I);this.Ej.connect(this.hk);this.hk.connect(this.Dj);this.Dj.connect(this.K)}function k(a,b,d,c,e){this.type="compressor";this.sb=[a,b,d,c,e];this.fa=z.createDynamicsCompressor();try{this.fa.threshold.value=a,this.fa.knee.value=b,this.fa.ratio.value=d,this.fa.attack.value=c,this.fa.release.value=e}catch(f){}}function d(a,b){this.type="analyser";this.sb=[a,b];this.fa=z.createAnalyser();this.fa.fftSize=a;this.fa.smoothingTimeConstant=b;this.Bt=new Float32Array(this.fa.frequencyBinCount); this.Pp=new Uint8Array(a);this.Hh=0}function q(){this.J=null;this.oj=0;this.Ee=[];this.Ll=this.gj=this.fj=0}function n(a,b){this.src=a;this.P=N;this.Sc=b;this.kn=!1;var d=this;this.Jl=this.Vl=null;this.jg=[];this.Nj=0;this.Im=this.Qk=this.Up=this.yj=!1;1===N&&b&&(this.P=0,this.Vl=p());this.Je=this.ma=null;var c;switch(this.P){case 0:this.ma=new Audio;this.ma.addEventListener("canplaythrough",function(){d.Im=!0});1===N&&z.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.Up=!0,this.ma.addEventListener("canplay", function(){d.Jl||(d.Jl=z.createMediaElementSource(d.ma),d.Jl.connect(d.Vl))}));this.ma.autoplay=!1;this.ma.Ow="auto";this.ma.src=a;break;case 1:c=new XMLHttpRequest;c.open("GET",a,!0);c.responseType="arraybuffer";c.onload=function(){d.Je=c.response;d.ys()};c.onerror=function(){d.Qk=!0};c.send();break;case 2:this.ma=!0;break;case 3:this.ma=!0}}function u(a,b){var d=this;this.tag=b;this.bb=this.hd=!0;this.src=a.src;this.buffer=a;this.P=N;this.Sc=a.Sc;this.playbackRate=1;this.Ek=!0;this.zc=this.Td=!1; this.Ob=0;this.jh=this.Uf=this.md=!1;this.volume=1;this.ef=1===J&&!this.Sc||2===J;this.fg=1;this.startTime=this.ef?x.Wb.X:x.yd.X;this.Fa=this.Ua=null;this.nd=!1;this.Ea=null;this.op=this.np=this.mp=this.lp=this.qp=this.pp=0;this.j=null;var c=!1;1!==this.P||0!==this.buffer.P||this.buffer.Up||(this.P=0);switch(this.P){case 0:this.Sc?(this.j=a.ma,c=!a.kn,a.kn=!0):(this.j=new Audio,this.j.autoplay=!1,this.j.src=a.ma.src,c=!0);c&&this.j.addEventListener("ended",function(){O=d.tag;d.bb=!0;x.trigger(nc.prototype.d.lk, R)});break;case 1:this.Ua=p();this.Ua.connect(m(b));1===this.buffer.P?a.ma&&(this.j=z.createBufferSource(),this.j.buffer=a.ma,this.j.connect(this.Ua)):(this.j=this.buffer.ma,this.buffer.Vl.connect(this.Ua));break;case 2:this.j=new window.Media(I+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(d.Ek=!0,d.bb=!0,O=d.tag,x.trigger(nc.prototype.d.lk,R))});break;case 3:this.j=!0}}function F(a){ya.length=0;if(a.length){var b,d,c;b=0;for(d=A.length;b<d;b++)c=A[b],kb(a,c.tag)&&ya.push(c)}else B&& !B.We()&&(ya.length=1,ya[0]=B)}function S(a,b){U.hasOwnProperty(a)?U[a].push(b):U[a]=[b];var d,c,e,f,k=z.destination;if(U.hasOwnProperty(a)&&(e=U[a],e.length))for(k=e[0].lc(),d=0,c=e.length;d<c;d++)f=e[d],d+1===c?f.rc(z.destination):f.rc(e[d+1].lc());F(a);d=0;for(c=ya.length;d<c;d++)ya[d].Zu(k);Fa&&xb===a&&(Fa.disconnect(),Fa.connect(k))}function C(){}function oa(){}var fa=nc.prototype;fa.ua=function(a){this.ta=a;this.b=a.b};fa.ua.prototype.U=function(){};var x=null,R=null,O="",I="",N=0,z=null,K= [],A=[],B=null,P=!1,J=0,G=!1,H=1,ga=0,M=0,na=1,ha=1,wa=10,xa=1E4,uc=1,Fa=null,xb="",Va=!1,Wa=[],U={},xc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");t.prototype.rc=function(a){this.K.disconnect();this.K.connect(a);this.I.disconnect();this.I.connect(a)};t.prototype.remove=function(){this.ba.disconnect();this.Ja.disconnect();this.K.disconnect();this.I.disconnect()};t.prototype.lc=function(){return this.ba};g.prototype.rc=function(a){this.K.disconnect();this.K.connect(a); this.I.disconnect();this.I.connect(a)};g.prototype.remove=function(){this.ba.disconnect();this.Ah.disconnect();this.vc.disconnect();this.Ii.disconnect();this.K.disconnect();this.I.disconnect()};g.prototype.lc=function(){return this.ba};a.prototype.rc=function(a){this.K.disconnect();this.K.connect(a);this.I.disconnect();this.I.connect(a)};a.prototype.remove=function(){this.ba.disconnect();this.Me.disconnect();this.K.disconnect();this.I.disconnect()};a.prototype.lc=function(){return this.ba};l.prototype.rc= function(a){this.I.disconnect();this.I.connect(a);this.K.disconnect();this.K.connect(a)};l.prototype.remove=function(){this.ba.disconnect();this.vc.disconnect();this.lb.disconnect();this.$b.disconnect();this.I.disconnect();this.K.disconnect();this.Pi.disconnect()};l.prototype.lc=function(){return this.ba};w.prototype.rc=function(a){this.I.disconnect();this.I.connect(a);this.K.disconnect();this.K.connect(a)};w.prototype.remove=function(){this.ba.disconnect();this.Ja.disconnect();this.lb.disconnect(); this.$b.disconnect();this.I.disconnect();this.K.disconnect()};w.prototype.lc=function(){return this.ba};f.prototype.rc=function(a){this.fa.disconnect();this.fa.connect(a)};f.prototype.remove=function(){this.fa.disconnect()};f.prototype.lc=function(){return this.fa};s.prototype.rc=function(a){this.fa.disconnect();this.fa.connect(a)};s.prototype.remove=function(){this.lb.disconnect();this.$b.disconnect();this.fa.disconnect()};s.prototype.lc=function(){return this.fa};y.prototype.rc=function(a){this.K.disconnect(); this.K.connect(a);this.I.disconnect();this.I.connect(a)};y.prototype.remove=function(){this.lb.disconnect();this.Ph.disconnect();this.ba.disconnect();this.K.disconnect();this.I.disconnect()};y.prototype.lc=function(){return this.ba};D.prototype.ov=function(a,b){.01>a&&(a=.01);this.Ej.gain.value=a;this.Dj.gain.value=Math.pow(1/a,.6)*b};D.prototype.shape=function(a,b,d){var c=1.05*d*b-b;d=0>a?-1:1;a=0>a?-a:a;b=a<b?a:b+c*(1-Math.exp(-(1/c)*(a-b)));return b*d};D.prototype.Dt=function(a,b){for(var d=Math.pow(10, a/20),c=Math.pow(10,b/20),e=0,f=0;32768>f;++f)e=f/32768,e=this.shape(e,d,c),this.Gi[32768+f]=e,this.Gi[32768-f-1]=-e};D.prototype.rc=function(a){this.K.disconnect();this.K.connect(a);this.I.disconnect();this.I.connect(a)};D.prototype.remove=function(){this.ba.disconnect();this.Ej.disconnect();this.hk.disconnect();this.Dj.disconnect();this.K.disconnect();this.I.disconnect()};D.prototype.lc=function(){return this.ba};k.prototype.rc=function(a){this.fa.disconnect();this.fa.connect(a)};k.prototype.remove= function(){this.fa.disconnect()};k.prototype.lc=function(){return this.fa};d.prototype.ub=function(){this.fa.getFloatFrequencyData(this.Bt);this.fa.getByteTimeDomainData(this.Pp);for(var a=this.fa.fftSize,b=0,d=this.Hh=0,c=0;b<a;b++)c=(this.Pp[b]-128)/128,0>c&&(c=-c),this.Hh<c&&(this.Hh=c),d+=c*c;this.Hh=r(this.Hh);r(Math.sqrt(d/a))};d.prototype.rc=function(a){this.fa.disconnect();this.fa.connect(a)};d.prototype.remove=function(){this.fa.disconnect()};d.prototype.lc=function(){return this.fa};q.prototype.Qh= function(a){if(this.J=a)this.fj=this.J.x,this.gj=this.J.y;this.Ee.length=0};q.prototype.Yi=function(){return!!this.J};q.prototype.ub=function(a){this.J&&0!==a&&(this.Ll=La(this.fj,this.gj,this.J.x,this.J.y),a=Qa(this.fj,this.gj,this.J.x,this.J.y)/a,4>this.Ee.length||this.Ee.shift(),this.Ee.push(a),this.fj=this.J.x,this.gj=this.J.y)};q.prototype.Yn=function(){if(!this.Ee.length)return 0;var a,b,d=0;a=0;for(b=this.Ee.length;a<b;a++)d+=this.Ee[a];return d/this.Ee.length};q.prototype.cl=function(){return Math.cos(this.Ll)* this.Yn()};q.prototype.dl=function(){return Math.sin(this.Ll)*this.Yn()};var vc=!1;n.prototype.ys=function(){if(!this.ma&&this.Je){var a=this;if(z.decodeAudioData)z.decodeAudioData(this.Je,function(b){a.ma=b;a.Je=null;var d,c,e;if(ia(a.Aj)||G)ia(a.Ai)||(d=a.Ai.Me,d.normalize=a.Zo,d.buffer=b);else if(a.jg.length){d=0;for(c=a.jg.length;d<c;d++){b=a.jg[d];e=new u(a,b.Xp);e.Oj(!0);if("undefined"!==typeof b.bp&&(b.J=x.Tg(b.bp),!b.J))continue;if(b.J){var f=Pa(b.J.x,b.J.y,-b.J.k.gb(),ga,M,!0),k=Pa(b.J.x, b.J.y,-b.J.k.gb(),ga,M,!1);e.lm(f,k,Ga(b.J.g-b.J.k.gb()),b.il,b.Nl,b.Ql);e.Qh(b.J)}else e.lm(b.x,b.y,b.cs,b.il,b.Nl,b.Ql);e.play(a.Fl,a.Hm,a.Nj);a.yj&&e.pause();A.push(e)}a.jg.length=0}else e=new u(a,a.Aj),e.play(a.Fl,a.Hm,a.Nj),a.yj&&e.pause(),A.push(e)},function(){a.Qk=!0});else if(this.ma=z.createBuffer(this.Je,!1),this.Je=null,ia(this.Aj)||G)ia(this.Ai)||(b=this.Ai.Me,b.normalize=this.Zo,b.buffer=this.ma);else{var b=new u(this,this.Aj);b.play(this.Fl,this.Hm,this.Nj);this.yj&&b.pause();A.push(b)}}}; n.prototype.lo=function(){switch(this.P){case 0:var a=4<=this.ma.readyState;a&&(this.Im=!0);return a||this.Im;case 1:return!!this.Je||!!this.ma;case 2:return!0;case 3:return!0}return!1};n.prototype.su=function(){switch(this.P){case 0:return this.lo();case 1:return!!this.ma;case 2:return!0;case 3:return!0}return!1};n.prototype.hu=function(){switch(this.P){case 0:return!!this.ma.error;case 1:return this.Qk}return!1};u.prototype.We=function(){var a;switch(this.P){case 0:return this.j.ended;case 1:if(1=== this.buffer.P){if(!this.hd&&!this.bb&&this.j.loop||this.zc)return!1;a=this.ef?x.Wb.X:x.yd.X;var b=this.playbackRate;0===b&&(b=1E-6);return a-this.startTime>this.buffer.ma.duration/b}return this.j.ended;case 2:return this.Ek;case 3:!0}return!0};u.prototype.ss=function(){return this.hd||this.bb?!0:this.We()};u.prototype.Oj=function(a){1===N&&(!this.nd&&a?this.Ua&&(this.Fa||(this.Fa=z.createPanner(),this.Fa.panningModel="number"===typeof this.Fa.panningModel?na:["equalpower","HRTF","soundfield"][na], this.Fa.distanceModel="number"===typeof this.Fa.distanceModel?ha:["linear","inverse","exponential"][ha],this.Fa.refDistance=wa,this.Fa.maxDistance=xa,this.Fa.rolloffFactor=uc),this.Ua.disconnect(),this.Ua.connect(this.Fa),this.Fa.connect(m(this.tag)),this.nd=!0):this.nd&&!a&&this.Ua&&(this.Fa.disconnect(),this.Ua.disconnect(),this.Ua.connect(m(this.tag)),this.nd=!1))};u.prototype.lm=function(a,b,d,c,e,f){this.nd&&1===N&&(this.Fa.setPosition(a,b,0),this.Fa.setOrientation(Math.cos(V(d)),Math.sin(V(d)), 0),this.Fa.coneInnerAngle=c,this.Fa.coneOuterAngle=e,this.Fa.coneOuterGain=f,this.pp=a,this.qp=b,this.lp=d,this.mp=c,this.np=e,this.op=f)};u.prototype.Qh=function(a){this.nd&&1===N&&(this.Ea||(this.Ea=new q),this.Ea.Qh(a))};u.prototype.ub=function(a){if(this.nd&&1===N&&this.Ea&&this.Ea.Yi()&&this.cf()){this.Ea.ub(a);a=this.Ea.J;var b=Pa(a.x,a.y,-a.k.gb(),ga,M,!0),d=Pa(a.x,a.y,-a.k.gb(),ga,M,!1);this.Fa.setPosition(b,d,0);b=0;"undefined"!==typeof this.Ea.J.g&&(b=a.g-a.k.gb(),this.Fa.setOrientation(Math.cos(b), Math.sin(b),0));b=Pa(this.Ea.cl(),this.Ea.dl(),-a.k.gb(),0,0,!0);d=Pa(this.Ea.cl(),this.Ea.dl(),-a.k.gb(),0,0,!1);this.Fa.setVelocity(b,d,0)}};u.prototype.play=function(a,d,e){var f=this.j;this.md=a;this.volume=d;e=e||0;switch(this.P){case 0:1!==f.playbackRate&&(f.playbackRate=1);f.volume!==d*H&&(f.volume=d*H);f.loop!==a&&(f.loop=a);f.muted&&(f.muted=!1);if(f.currentTime!==e)try{f.currentTime=e}catch(k){}if(this.Sc&&Va&&!x.ld)Wa.push(this);else try{this.j.play()}catch(n){console&&console.log&&console.log("[C2] WARNING: exception trying to play audio '"+ this.buffer.src+"': ",n)}break;case 1:this.muted=!1;this.fg=1;if(1===this.buffer.P)this.Ua.gain.value=d*H,this.hd||(this.j=z.createBufferSource(),this.j.buffer=this.buffer.ma,this.j.connect(this.Ua)),this.j.loop=a,0===e?c(this.j):b(this.j,e,this.Te());else{1!==f.playbackRate&&(f.playbackRate=1);f.loop!==a&&(f.loop=a);f.volume=d*H;if(f.currentTime!==e)try{f.currentTime=e}catch(g){}this.Sc&&Va&&!x.ld?Wa.push(this):f.play()}break;case 2:(!this.hd&&this.bb||0!==e)&&f.seekTo(e);f.play();this.Ek=!1;break; case 3:x.ib?AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=1;this.startTime=(this.ef?x.Wb.X:x.yd.X)-e;this.zc=this.bb=this.hd=!1};u.prototype.stop=function(){switch(this.P){case 0:this.j.paused||this.j.pause();break;case 1:1===this.buffer.P?h(this.j):this.j.paused||this.j.pause();break;case 2:this.j.stop();break;case 3:x.ib&&AppMobi.context.stopSound(this.src)}this.bb=!0;this.zc=!1};u.prototype.pause=function(){if(!(this.hd||this.bb||this.We()||this.zc)){switch(this.P){case 0:this.j.paused|| this.j.pause();break;case 1:1===this.buffer.P?(this.Ob=this.al(),this.md&&(this.Ob%=this.Te()),h(this.j)):this.j.paused||this.j.pause();break;case 2:this.j.pause();break;case 3:x.ib&&AppMobi.context.stopSound(this.src)}this.zc=!0}};u.prototype.bv=function(){if(!(this.hd||this.bb||this.We())&&this.zc){switch(this.P){case 0:this.j.play();break;case 1:1===this.buffer.P?(this.j=z.createBufferSource(),this.j.buffer=this.buffer.ma,this.j.connect(this.Ua),this.j.loop=this.md,this.Ua.gain.value=H*this.volume* this.fg,this.startTime=(this.ef?x.Wb.X:x.yd.X)-this.Ob,b(this.j,this.Ob,this.Te())):this.j.play();break;case 2:this.j.play();break;case 3:x.ib&&AppMobi.context.resumeSound(this.src)}this.zc=!1}};u.prototype.seek=function(a){if(!(this.hd||this.bb||this.We()))switch(this.P){case 0:try{this.j.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.P)this.zc?this.Ob=a:(this.pause(),this.Ob=a,this.bv());else try{this.j.currentTime=a}catch(d){}break;case 3:x.ib&&AppMobi.context.seekSound(this.src,a)}}; u.prototype.Zu=function(a){1===this.P&&(this.nd?(this.Fa.disconnect(),this.Fa.connect(a)):(this.Ua.disconnect(),this.Ua.connect(a)))};u.prototype.Te=function(){switch(this.P){case 0:if("undefined"!==typeof this.j.duration)return this.j.duration;break;case 1:return this.buffer.ma.duration;case 2:return this.j.getDuration();case 3:if(x.ib)return AppMobi.context.getDurationSound(this.src)}return 0};u.prototype.al=function(){var a=this.Te(),b=0;switch(this.P){case 0:"undefined"!==typeof this.j.currentTime&& (b=this.j.currentTime);break;case 1:if(1===this.buffer.P){if(this.zc)return this.Ob;b=(this.ef?x.Wb.X:x.yd.X)-this.startTime}else"undefined"!==typeof this.j.currentTime&&(b=this.j.currentTime);break;case 3:x.ib&&(b=AppMobi.context.getPlaybackTimeSound(this.src))}!this.md&&b>a&&(b=a);return b};u.prototype.cf=function(){return!this.zc&&!this.hd&&!this.bb&&!this.We()};u.prototype.Av=function(){var a=this.volume*H;switch(this.P){case 0:"undefined"!==typeof this.j.volume&&this.j.volume!==a&&(this.j.volume= a);break;case 1:1===this.buffer.P?this.Ua.gain.value=a*this.fg:"undefined"!==typeof this.j.volume&&this.j.volume!==a&&(this.j.volume=a)}};u.prototype.Ki=function(a){switch(this.P){case 0:this.j.muted!==!!a&&(this.j.muted=!!a);break;case 1:1===this.buffer.P?(this.fg=a?0:1,this.Ua.gain.value=H*this.volume*this.fg):this.j.muted!==!!a&&(this.j.muted=!!a)}};u.prototype.pv=function(){this.Uf=!0;this.Ki(this.Uf||this.jh)};u.prototype.Pj=function(a){this.jh=!!a;this.Ki(this.Uf||this.jh)};u.prototype.kq=function(){var a= this.playbackRate;this.ef&&(a*=x.Af);switch(this.P){case 0:this.j.playbackRate!==a&&(this.j.playbackRate=a);break;case 1:1===this.buffer.P?this.j.playbackRate.value!==a&&(this.j.playbackRate.value=a):this.j.playbackRate!==a&&(this.j.playbackRate=a)}};u.prototype.rv=function(a){switch(this.P){case 0:a?this.cf()?(this.j.pause(),this.Td=!0):this.Td=!1:this.Td&&this.j.play();break;case 1:a?this.cf()?(1===this.buffer.P?(this.Ob=this.al(),this.md&&(this.Ob%=this.Te()),h(this.j)):this.j.pause(),this.Td= !0):this.Td=!1:this.Td&&(1===this.buffer.P?(this.j=z.createBufferSource(),this.j.buffer=this.buffer.ma,this.j.connect(this.Ua),this.j.loop=this.md,this.Ua.gain.value=H*this.volume*this.fg,this.startTime=(this.ef?x.Wb.X:x.yd.X)-this.Ob,b(this.j,this.Ob,this.Te())):this.j.play());break;case 2:a?this.cf()?(this.j.pause(),this.Td=!0):this.Td=!1:this.Td&&this.j.play()}};fa.la=function(a){this.type=a;x=this.b=a.b;R=this;this.Gb=null;this.rh=-600;!(this.b.mh||this.b.bh&&(this.b.dh||this.b.bj))||this.b.eh|| this.b.Aa||this.b.ol||(Va=!0);z=null;"undefined"!==typeof AudioContext?(N=1,z=new AudioContext):"undefined"!==typeof webkitAudioContext&&(N=1,z=new webkitAudioContext);(this.b.mh&&1===N||Va)&&document.addEventListener("touchstart",function(){var a,b,d;!vc&&z&&(a=z.createBuffer(1,1,22050),b=z.createBufferSource(),b.buffer=a,b.connect(z.destination),c(b),vc=!0);if(Va){if(!G)for(a=0,b=Wa.length;a<b;++a)d=Wa[a],d.bb||d.zc||d.j.play();Wa.length=0}},!0);1!==N&&(this.b.oc&&"undefined"!==typeof window.Media? N=2:this.b.Rf&&(N=3));2===N&&(I=location.href,a=I.lastIndexOf("/"),-1<a&&(I=I.substr(0,a+1)),I=I.replace("file://",""));if(this.b.oo&&this.b.tu&&"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.be(this);else{if(this.b.ib)P=this.b.bh;else try{P=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(b){P=!1}this.b.bk(this)}};var pa=fa.la.prototype;pa.U=function(){this.b.Hf=this;J= this.A[0];this.Ud=this.A[1];this.Pu=0!==this.A[2];na=this.A[3];ha=this.A[4];this.rh=-this.A[5];wa=this.A[6];xa=this.A[7];uc=this.A[8];this.Gb=new q;var a=this.b.W||this.b.width,b=this.b.V||this.b.height;1===N&&("undefined"!==typeof z.listener.dopplerFactor&&(z.listener.dopplerFactor=0),z.listener.setPosition(a/2,b/2,this.rh),z.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,b){Fa&&Fa.disconnect();xb=b.toLowerCase();Fa=z.createMediaStreamSource(a);Fa.connect(m(xb))});this.b.jn(function(a){R.Nu(a)}); var d=this;this.b.tk(function(a){d.Rl(a)})};pa.Rl=function(a){var b,d,c;b=0;for(d=A.length;b<d;b++)c=A[b],c.Ea&&c.Ea.J===a&&(c.Ea.J=null,c.nd&&c.cf()&&c.md&&c.stop());this.Gb.J===a&&(this.Gb.J=null)};pa.Ib=function(){var a={silent:G,masterVolume:H,listenerZ:this.rh,listenerUid:this.Gb.Yi()?this.Gb.J.uid:-1,playing:[],effects:{}},b=a.playing,d,c,e,f,k,n;d=0;for(c=A.length;d<c;d++)e=A[d],!e.cf()||3===this.Ud||e.Sc&&1===this.Ud||!e.Sc&&2===this.Ud||(f=e.al(),e.md&&(f%=e.Te()),f={tag:e.tag,buffersrc:e.buffer.src, is_music:e.Sc,playbackTime:f,volume:e.volume,looping:e.md,muted:e.Uf,playbackRate:e.playbackRate,paused:e.zc,resume_position:e.Ob},e.nd&&(f.pan={},n=f.pan,e.Ea&&e.Ea.Yi()?n.objUid=e.Ea.J.uid:(n.x=e.pp,n.y=e.qp,n.a=e.lp),n.ia=e.mp,n.oa=e.np,n.og=e.op),b.push(f));b=a.effects;for(k in U)if(U.hasOwnProperty(k)){e=[];d=0;for(c=U[k].length;d<c;d++)e.push({type:U[k][d].type,params:U[k][d].sb});b[k]=e}return a};var Xa=[];pa.Zb=function(b){var c=b.silent;H=b.masterVolume;this.rh=b.listenerZ;this.Gb.Qh(null); var e=b.listenerUid;-1!==e&&(this.Gb.oj=e,Xa.push(this.Gb));var e=b.playing,n,h,m,p,u,r,v,F,C,x,z;if(3!==this.Ud)for(n=0,h=A.length;n<h;n++)C=A[n],C.Sc&&1===this.Ud||(C.Sc||2!==this.Ud)&&C.stop();for(u in U)if(U.hasOwnProperty(u))for(n=0,h=U[u].length;n<h;n++)U[u][n].remove();Ua(U);for(u in b.effects)if(b.effects.hasOwnProperty(u))for(r=b.effects[u],n=0,h=r.length;n<h;n++)switch(m=r[n].type,x=r[n].params,m){case "filter":S(u,new t(x[0],x[1],x[2],x[3],x[4],x[5]));break;case "delay":S(u,new g(x[0], x[1],x[2]));break;case "convolve":m=x[2];C=this.Si(m,!1);C.ma?m=new a(C.ma,x[0],x[1],m):(m=new a(null,x[0],x[1],m),C.Zo=x[0],C.Ai=m);S(u,m);break;case "flanger":S(u,new l(x[0],x[1],x[2],x[3],x[4]));break;case "phaser":S(u,new w(x[0],x[1],x[2],x[3],x[4],x[5]));break;case "gain":S(u,new f(x[0]));break;case "tremolo":S(u,new s(x[0],x[1]));break;case "ringmod":S(u,new y(x[0],x[1]));break;case "distortion":S(u,new D(x[0],x[1],x[2],x[3],x[4]));break;case "compressor":S(u,new k(x[0],x[1],x[2],x[3],x[4])); break;case "analyser":S(u,new d(x[0],x[1]))}n=0;for(h=e.length;n<h;n++)3===this.Ud||(b=e[n],m=b.buffersrc,p=b.is_music,u=b.tag,r=b.playbackTime,v=b.looping,F=b.volume,z=(x=b.pan)&&x.hasOwnProperty("objUid")?x.objUid:-1,p&&1===this.Ud)||!p&&2===this.Ud||((C=this.Ti(m,u,p,v,F))?(C.Ob=b.resume_position,C.Oj(!!x),C.play(v,F,r),C.kq(),C.Av(),C.Ki(C.Uf||C.jh),b.paused&&C.pause(),b.muted&&C.pv(),C.Ki(C.Uf||C.jh),x&&(-1!==z?(C.Ea=C.Ea||new q,C.Ea.oj=z,Xa.push(C.Ea)):C.lm(x.x,x.y,x.a,x.ia,x.oa,x.og))):(C= this.Si(m,p),C.Nj=r,C.yj=b.paused,x&&(-1!==z?C.jg.push({bp:z,il:x.ia,Nl:x.oa,Ql:x.og,Xp:u}):C.jg.push({x:x.x,y:x.y,cs:x.a,il:x.ia,Nl:x.oa,Ql:x.og,Xp:u}))));if(c&&!G){n=0;for(h=A.length;n<h;n++)A[n].Pj(!0);G=!0}else if(!c&&G){n=0;for(h=A.length;n<h;n++)A[n].Pj(!1);G=!1}};pa.cd=function(){var a,b,d,c;a=0;for(b=Xa.length;a<b;a++)d=Xa[a],c=this.b.Tg(d.oj),d.Qh(c),d.oj=-1,c&&(ga=c.x,M=c.y);Xa.length=0};pa.Nu=function(a){if(!this.Pu){!a&&z&&z.resume&&z.resume();var b,d;b=0;for(d=A.length;b<d;b++)A[b].rv(a); a&&z&&z.suspend&&z.suspend()}};pa.ub=function(){var a=this.b.oe,b,d,c;b=0;for(d=A.length;b<d;b++)c=A[b],c.ub(a),0===c.P||3===c.P||c.hd||c.bb||!c.We()||(c.bb=!0,O=c.tag,x.trigger(nc.prototype.d.lk,R)),0!==J&&c.kq();var e,f;for(e in U)if(U.hasOwnProperty(e))for(c=U[e],b=0,d=c.length;b<d;b++)f=c[b],f.ub&&f.ub();1===N&&this.Gb.Yi()&&(this.Gb.ub(a),ga=this.Gb.J.x,M=this.Gb.J.y,z.listener.setPosition(this.Gb.J.x,this.Gb.J.y,this.rh),z.listener.setVelocity(this.Gb.cl(),this.Gb.dl(),0))};var Ya=[];pa.qv= function(a){var b,d,c,e,f,k=0;b=0;for(d=a.length;b<d;++b)if(c=a[b],e=c[0],c=2*c[1],(f=4<e.length&&".ogg"===e.substr(e.length-4))&&P||!f&&!P)Ya.push({filename:e,size:c,J:null}),k+=c;return k};pa.tv=function(){var a,b,d,c;a=0;for(b=Ya.length;a<b;++a)d=Ya[a],c=this.b.Og+d.filename,d.J=this.Si(c,!1)};pa.Ot=function(){var a=0,b,d,c;b=0;for(d=Ya.length;b<d;++b)c=Ya[b],c.J.su()||c.J.hu()||this.b.Aa||this.b.bj?a+=c.size:c.J.lo()&&(a+=Math.floor(c.size/2));return a};pa.Si=function(a,b){var d,c,e,f=null;d= 0;for(c=K.length;d<c;d++)if(e=K[d],e.src===a){f=e;break}f||(f=new n(a,b),K.push(f));return f};pa.Ti=function(a,b,d,c,e){var f,k,n;f=0;for(k=A.length;f<k;f++)if(n=A[f],n.src===a&&(n.ss()||d))return n.tag=b,n;a=this.Si(a,d);if(!a.ma)return"<preload>"!==b&&(a.Aj=b,a.Fl=c,a.Hm=e),null;n=new u(a,b);A.push(n);return n};var ya=[];C.prototype.lk=function(a){return kb(O,a)};C.prototype.Vq=function(a){F(a);var b;a=0;for(b=ya.length;a<b;a++)if(ya[a].cf())return!0;return!1};fa.d=new C;oa.prototype.Play=function(a, b,d,c){!G&&(d=e(d),B=this.Ti(this.b.Og+a[0]+(P?".ogg":".m4a"),c,a[1],0!==b,d))&&(B.Oj(!1),B.play(0!==b,d))};oa.prototype.Fr=function(a,b,d,c,f){!G&&(c=e(c),B=this.Ti(this.b.Og+b.toLowerCase()+(P?".ogg":".m4a"),f,1===a,0!==d,c))&&(B.Oj(!1),B.play(0!==d,c))};oa.prototype.Gr=function(a){if(!G){var b=a[1];a=this.b.Og+a[0]+(P?".ogg":".m4a");3===N?this.b.ib?AppMobi.context.loadSound(a):AppMobi.player.loadSound(a):2!==N&&this.Ti(a,"<preload>",b,!1)}};oa.prototype.Ur=function(a){F(a);var b;a=0;for(b=ya.length;a< b;a++)ya[a].stop()};oa.prototype.Or=function(a){var b;2===a&&(a=G?1:0);if(0===a&&!G){a=0;for(b=A.length;a<b;a++)A[a].Pj(!0);G=!0}else if(1===a&&G){a=0;for(b=A.length;a<b;a++)A[a].Pj(!1);G=!1}};fa.u=new oa;fa.Y=new function(){}})();function Y(e){this.b=e} (function(){function e(){}function r(){}function m(){}var p=Y.prototype;p.ua=function(e){this.ta=e;this.b=e.b};p.ua.prototype.U=function(){};p.la=function(e){this.type=e;this.b=e.b};p.la.prototype.U=function(){var e=this;window.addEventListener("resize",function(){e.b.trigger(Y.prototype.d.xr,e)});"undefined"!==typeof navigator.onLine&&(window.addEventListener("online",function(){e.b.trigger(Y.prototype.d.tr,e)}),window.addEventListener("offline",function(){e.b.trigger(Y.prototype.d.sr,e)}));"undefined"!== typeof window.applicationCache&&(window.applicationCache.addEventListener("updateready",function(){e.b.nf=1;e.b.trigger(Y.prototype.d.Wm,e)}),window.applicationCache.addEventListener("progress",function(c){e.b.nf=c.loaded/c.total}));this.b.ib||(document.addEventListener("appMobi.device.update.available",function(){e.b.trigger(Y.prototype.d.Wm,e)}),document.addEventListener("backbutton",function(){e.b.trigger(Y.prototype.d.jk,e)}),document.addEventListener("menubutton",function(){e.b.trigger(Y.prototype.d.Rm, e)}),document.addEventListener("searchbutton",function(){e.b.trigger(Y.prototype.d.yr,e)}),document.addEventListener("tizenhwkey",function(c){var b;switch(c.keyName){case "back":b=e.b.trigger(Y.prototype.d.jk,e);!b&&window.tizen&&window.tizen.application.getCurrentApplication().exit();break;case "menu":(b=e.b.trigger(Y.prototype.d.Rm,e))||c.preventDefault()}}));this.b.ih&&(WinJS.Application.onbackclick=function(){return!!e.b.trigger(Y.prototype.d.jk,e)});this.b.jn(function(c){c?e.b.trigger(Y.prototype.d.ur, e):e.b.trigger(Y.prototype.d.wr,e)});this.wu="undefined"!==typeof window.is_scirra_arcade};e.prototype.tr=function(){return!0};e.prototype.sr=function(){return!0};e.prototype.Wm=function(){return!0};e.prototype.wr=function(){return!0};e.prototype.ur=function(){return!0};e.prototype.xr=function(){return!0};e.prototype.jk=function(){return!0};e.prototype.Rm=function(){return!0};e.prototype.yr=function(){return!0};p.d=new e;r.prototype.Qq=function(e,c){this.b.nc?CocoonJS.App.openURL(e):this.b.yc?ejecta.openURL(e): this.b.sl?Windows.System.Launcher.launchUriAsync(new Windows.Foundation.Uri(e)):navigator.app&&navigator.app.loadUrl?navigator.app.loadUrl(e,{openExternal:!0}):this.b.oc?window.open(e,"_system"):this.wu||this.b.Aa||window.open(e,c)};p.u=new r;m.prototype.URL=function(e){e.La(this.b.Aa?"":window.location.toString())};m.prototype.Jr=function(e){e.ha(screen.width)};m.prototype.Ir=function(e){e.ha(screen.height)};p.Y=new m})();function lc(e){this.b=e} (function(){function e(){this.name="";this.Oh=0;this.sb=[]}function r(){h++;h===b.length&&b.push(new e);return b[h]}function m(){}function p(){}function v(){}var c=lc.prototype;c.ua=function(b){this.ta=b;this.b=b.b};c.ua.prototype.U=function(){};c.la=function(b){this.type=b;this.b=b.b};var b=[],h=-1;c.la.prototype.U=function(){var b=this;window.c2_callFunction=function(c,a){var e,m,f,p=r();p.name=c.toLowerCase();p.Oh=0;if(a)for(p.sb.length=a.length,e=0,m=a.length;e<m;++e)f=a[e],p.sb[e]="number"=== typeof f||"string"===typeof f?f:"boolean"===typeof f?f?1:0:0;else p.sb.length=0;b.b.trigger(lc.prototype.d.hi,b,p.name);h--;return p.Oh}};m.prototype.hi=function(c){var e=0>h?null:b[h];return e?kb(c,e.name):!1};c.d=new m;p.prototype.CallFunction=function(b,c){var a=r();a.name=b.toLowerCase();a.Oh=0;Ba(a.sb,c);this.b.trigger(lc.prototype.d.hi,this,a.name);h--};c.u=new p;v.prototype.wq=function(b,c){var a=r();a.name=c.toLowerCase();a.Oh=0;a.sb.length=0;var e,m;e=2;for(m=arguments.length;e<m;e++)a.sb.push(arguments[e]); this.b.trigger(lc.prototype.d.hi,this,a.name);h--;b.mm(a.Oh)};c.Y=new v})();function X(e){this.b=e} (function(){function e(){if(0===this.Ik.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.qg?b.drawImage(this.G,this.hg,this.ig,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.G,0,0,this.width,this.height);this.Ik=a.toDataURL("image/png")}return this.Ik}function r(){}function m(a){a[0]=0;a[1]=0;a[2]=0;w.push(a)}function p(a,b){return a<b?""+a+","+b:""+b+","+a}function v(a,b,c,e){b=b.uid;c=c.uid;var f=p(b,c);if(a.hasOwnProperty(f))a[f][2]= e;else{var g=w.length?w.pop():[0,0,0];g[0]=b;g[1]=c;g[2]=e;a[f]=g}}function c(a,b,c){b=p(b.uid,c.uid);a.hasOwnProperty(b)&&(m(a[b]),delete a[b])}function b(a,b,c){b=p(b.uid,c.uid);if(a.hasOwnProperty(b))return f=a[b][2],!0;f=-2;return!1}function h(){}var t=X.prototype;t.ua=function(a){this.ta=a;this.b=a.b};var g=t.ua.prototype;g.U=function(){if(!this.F){var a,b,c,f,g,h,m,l,p;this.Kc=[];this.Yg=!1;a=0;for(b=this.Rb.length;a<b;a++){g=this.Rb[a];m={};m.name=g[0];m.speed=g[1];m.loop=g[2];m.fm=g[3];m.Kj= g[4];m.tp=g[5];m.Z=g[6];m.frames=[];c=0;for(f=g[7].length;c<f;c++)h=g[7][c],l={},l.Yj=h[0],l.vm=h[1],l.hg=h[2],l.ig=h[3],l.width=h[4],l.height=h[5],l.duration=h[6],l.Db=h[7],l.Eb=h[8],l.jl=h[9],l.Bj=h[10],l.up=h[11],l.qg=0!==l.width,l.Ik="",l.Hw=e,p={left:0,top:0,right:1,bottom:1},l.nm=p,l.M=null,(p=this.b.zt(h[0]))?l.G=p:(l.G=new Image,l.G.vs=h[0],l.G.zn=h[1],l.G.rs=null,this.b.qq(l.G,h[0])),m.frames.push(l),this.Kc.push(l);this.Rb[a]=m}}};g.jq=function(){var a,b,c;a=0;for(b=this.c.length;a<b;a++)c= this.c[a],c.Ei=c.jc.M};g.vj=function(){if(!this.F){var a,b,c;a=0;for(b=this.Kc.length;a<b;++a)c=this.Kc[a],c.G.rs=null,c.M=null;this.Yg=!1;this.jq()}};g.xj=function(){if(!this.F&&this.c.length){var a,b,c;a=0;for(b=this.Kc.length;a<b;++a)c=this.Kc[a],c.M=this.b.B.$f(c.G,!1,this.b.ea,c.up);this.jq()}};g.Al=function(){if(!this.F&&!this.Yg&&this.b.B){var a,b,c;a=0;for(b=this.Kc.length;a<b;++a)c=this.Kc[a],c.M=this.b.B.$f(c.G,!1,this.b.ea,c.up);this.Yg=!0}};g.fk=function(){if(!this.F&&!this.c.length&& this.Yg){var a,b,c;a=0;for(b=this.Kc.length;a<b;++a)c=this.Kc[a],this.b.B.deleteTexture(c.M),c.M=null;this.Yg=!1}};var a=[];g.Fj=function(b){var d,c,e;d=a.length=0;for(c=this.Kc.length;d<c;++d)e=this.Kc[d].G,-1===a.indexOf(e)&&(b.drawImage(e,0,0),a.push(e))};t.la=function(a){this.type=a;this.b=a.b;a=this.type.Rb[0].frames[0].Bj;this.ac?this.ka.Th(a):this.ka=new eb(a)};var l=t.la.prototype;l.U=function(){this.visible=0===this.A[0];this.Zi=this.hh=!1;this.Le=0!==this.A[3];1===this.type.Rb.length&&1=== this.type.Rb[0].frames.length||0===this.type.Rb[0].speed||(this.b.bk(this),this.hh=!0);this.ya=this.Qn(this.A[1])||this.type.Rb[0];this.C=this.A[2];0>this.C&&(this.C=0);this.C>=this.ya.frames.length&&(this.C=this.ya.frames.length-1);var a=this.ya.frames[this.C];this.ka.Th(a.Bj);this.Db=a.Db;this.Eb=a.Eb;this.Ig=this.ya.speed;this.ac?this.dd.reset():this.dd=new cb;this.Kd=this.dd.X;this.ge=!0;this.zd=0;this.Ie=!0;this.Jf=this.ln="";this.wn=0;this.si=-1;this.type.Al();var b,c,e,f,g,h,l,a=0;for(b=this.type.Rb.length;a< b;a++)for(f=this.type.Rb[a],c=0,e=f.frames.length;c<e;c++)g=f.frames[c],0===g.width&&(g.width=g.G.width,g.height=g.G.height),g.qg&&(l=g.G,h=g.nm,h.left=g.hg/l.width,h.top=g.ig/l.height,h.right=(g.hg+g.width)/l.width,h.bottom=(g.ig+g.height)/l.height,0===g.hg&&0===g.ig&&g.width===l.width&&g.height===l.height&&(g.qg=!1));this.jc=this.ya.frames[this.C];this.Ei=this.jc.M};l.Ib=function(){var a={a:this.ya.Z,f:this.C,cas:this.Ig,fs:this.Kd,ar:this.zd,at:this.dd.X};this.ge||(a.ap=this.ge);this.Ie||(a.af= this.Ie);return a};l.Zb=function(a){var b=this.Et(a.a);b&&(this.ya=b);this.C=a.f;0>this.C&&(this.C=0);this.C>=this.ya.frames.length&&(this.C=this.ya.frames.length-1);this.Ig=a.cas;this.Kd=a.fs;this.zd=a.ar;this.dd.reset();this.dd.X=a.at;this.ge=a.hasOwnProperty("ap")?a.ap:!0;this.Ie=a.hasOwnProperty("af")?a.af:!0;this.jc=this.ya.frames[this.C];this.Ei=this.jc.M;this.ka.Th(this.jc.Bj);this.Db=this.jc.Db;this.Eb=this.jc.Eb};l.wk=function(a){this.C=a?0:this.ya.frames.length-1;this.ge=!1;this.ln=this.ya.name; this.Zi=!0;this.b.trigger(X.prototype.d.dr,this);this.b.trigger(X.prototype.d.cr,this);this.Zi=!1;this.zd=0};l.Mw=function(){return this.dd.X};l.ub=function(){this.dd.add(this.b.Vi(this));this.Jf.length&&this.Dn();0<=this.si&&this.En();var a=this.dd.X,b=this.ya,c=b.frames[this.C],e=c.duration/this.Ig;this.ge&&a>=this.Kd+e&&(this.Ie?this.C++:this.C--,this.Kd+=e,this.C>=b.frames.length&&(b.tp?(this.Ie=!1,this.C=b.frames.length-2):b.loop?this.C=b.Kj:(this.zd++,this.zd>=b.fm?this.wk(!1):this.C=b.Kj)), 0>this.C&&(b.tp?(this.C=1,this.Ie=!0,b.loop||(this.zd++,this.zd>=b.fm&&this.wk(!0))):b.loop?this.C=b.Kj:(this.zd++,this.zd>=b.fm?this.wk(!0):this.C=b.Kj)),0>this.C?this.C=0:this.C>=b.frames.length&&(this.C=b.frames.length-1),a>this.Kd+b.frames[this.C].duration/this.Ig&&(this.Kd=a),a=b.frames[this.C],this.Ff(c,a),this.b.ga=!0)};l.Qn=function(a){var b,c,e;b=0;for(c=this.type.Rb.length;b<c;b++)if(e=this.type.Rb[b],kb(e.name,a))return e;return null};l.Et=function(a){var b,c,e;b=0;for(c=this.type.Rb.length;b< c;b++)if(e=this.type.Rb[b],e.Z===a)return e;return null};l.Dn=function(){var a=this.ya.frames[this.C],b=this.Qn(this.Jf);this.Jf="";!b||kb(b.name,this.ya.name)&&this.ge||(this.ya=b,this.Ig=b.speed,0>this.C&&(this.C=0),this.C>=this.ya.frames.length&&(this.C=this.ya.frames.length-1),1===this.wn&&(this.C=0),this.ge=!0,this.Kd=this.dd.X,this.Ie=!0,this.Ff(a,this.ya.frames[this.C]),this.b.ga=!0)};l.En=function(){var a=this.ya.frames[this.C],b=this.C;this.C=T(this.si);0>this.C&&(this.C=0);this.C>=this.ya.frames.length&& (this.C=this.ya.frames.length-1);b!==this.C&&(this.Ff(a,this.ya.frames[this.C]),this.Kd=this.dd.X,this.b.ga=!0);this.si=-1};l.Ff=function(a,b){var c=a.width,e=a.height,f=b.width,g=b.height;c!=f&&(this.width*=f/c);e!=g&&(this.height*=g/e);this.Db=b.Db;this.Eb=b.Eb;this.ka.Th(b.Bj);this.Da();this.jc=b;this.Ei=b.M;c=0;for(e=this.S.length;c<e;c++)f=this.S[c],f.hp&&f.hp(a,b);this.b.trigger(X.prototype.d.Ff,this)};l.Gd=function(a){a.globalAlpha=this.opacity;var b=this.jc,c=b.qg,e=b.G,f=this.x,g=this.y, h=this.width,l=this.height;if(0===this.g&&0<=h&&0<=l)f-=this.Db*h,g-=this.Eb*l,this.b.qd&&(f=Math.round(f),g=Math.round(g)),c?a.drawImage(e,b.hg,b.ig,b.width,b.height,f,g,h,l):a.drawImage(e,f,g,h,l);else{this.b.qd&&(f=Math.round(f),g=Math.round(g));a.save();var m=0<h?1:-1,p=0<l?1:-1;a.translate(f,g);1===m&&1===p||a.scale(m,p);a.rotate(this.g*m*p);f=0-this.Db*la(h);g=0-this.Eb*la(l);c?a.drawImage(e,b.hg,b.ig,b.width,b.height,f,g,la(h),la(l)):a.drawImage(e,f,g,la(h),la(l));a.restore()}};l.wc=function(a){a.ec(this.Ei); a.wf(this.opacity);var b=this.jc,c=this.Sb;if(this.b.qd){var e=Math.round(this.x)-this.x,f=Math.round(this.y)-this.y;b.qg?a.sd(c.va+e,c.wa+f,c.cb+e,c.eb+f,c.Ra+e,c.Sa+f,c.Pa+e,c.Qa+f,b.nm):a.Ij(c.va+e,c.wa+f,c.cb+e,c.eb+f,c.Ra+e,c.Sa+f,c.Pa+e,c.Qa+f)}else b.qg?a.sd(c.va,c.wa,c.cb,c.eb,c.Ra,c.Sa,c.Pa,c.Qa,b.nm):a.Ij(c.va,c.wa,c.cb,c.eb,c.Ra,c.Sa,c.Pa,c.Qa)};l.Kt=function(a){var b=this.jc,c,e;c=0;for(e=b.jl.length;c<e;c++)if(kb(a,b.jl[c][0]))return c;return-1};l.Zk=function(a,b){var c=this.jc,e=c.jl, f;f=Q(a)?this.Kt(a):a-1;f=T(f);if(0>f||f>=e.length)return b?this.x:this.y;var g=(e[f][1]-c.Db)*this.width,e=e[f][2],e=(e-c.Eb)*this.height,c=Math.cos(this.g);f=Math.sin(this.g);var h=g*c-e*f,e=e*c+g*f,g=h+this.x,e=e+this.y;return b?g:e};var w=[],f=-2,s=[];r.prototype.gr=function(a){if(!a)return!1;var d=this.b,e=d.Rg(),g=e.type;e.N.collmemory||(e.N.collmemory={},d.tk(function(a){return function(b){b=b.uid;var d,c;for(d in a)a.hasOwnProperty(d)&&(c=a[d],c[0]===b||c[1]===b)&&(m(a[d]),delete a[d])}}(e.N.collmemory))); var e=e.N.collmemory,h=g.H(),l=a.H(),h=h.Cb(),p,r,t,y,x,w,D,I=this.b.zf,N=I-1,z=d.hb().fb;for(r=0;r<h.length;r++){t=h[r];l.O?(t.xa(),this.b.Ht(t.k,a,t.Oa,s),p=s):p=l.Cb();for(y=0;y<p.length;y++)x=p[y],d.vv(t,x)||d.ts(t,x)?(w=b(e,t,x),w=!w||f<N,v(e,t,x,I),w&&(d.vf(z.ca),w=g.H(),D=a.H(),w.O=!1,D.O=!1,g===a?(w.c.length=2,w.c[0]=t,w.c[1]=x,g.qc()):(w.c.length=1,D.c.length=1,w.c[0]=t,D.c[0]=x,g.qc(),a.qc()),z.lg(),d.rd(z.ca))):c(e,t,x);s.length=0}return!1};var y=new ca,D=!1;new ua(0,0,0,0);g.finish=function(a){if(D){if(a){var b= this.b.hb().fb.Uc;a=null.H();var c=y.He(),e,f;if(a.O){a.O=!1;a.c.length=c.length;e=0;for(f=c.length;e<f;e++)a.c[e]=c[e];if(b)for(e=a.da.length=0,f=null.c.length;e<f;e++)c=null.c[e],y.contains(c)||a.da.push(c)}else if(b)for(b=a.c.length,a.c.length=b+c.length,e=0,f=c.length;e<f;e++)a.c[b+e]=c[e],Ea(a.da,c[e]);else Ba(a.c,c);null.qc()}y.clear();D=!1}};r.prototype.Rq=function(a){return this.Jf.length?kb(this.Jf,a):kb(this.ya.name,a)};r.prototype.Cq=function(a,b){return bc(this.C,a,b)};r.prototype.cr= function(a){return kb(this.ln,a)};r.prototype.dr=function(){return!0};r.prototype.Ff=function(){return!0};t.d=new r;h.prototype.Vr=function(){this.ge=!1};h.prototype.Kr=function(a,b){this.Jf=a;this.wn=b;this.hh||(this.b.bk(this),this.hh=!0);this.Zi||this.Dn()};h.prototype.Lr=function(a){this.si=a;this.hh||(this.b.bk(this),this.hh=!0);this.Zi||this.En()};h.prototype.Ym=function(a){var b=this.jc,c=b.width*a*(0>this.width?-1:1);a=b.height*a*(0>this.height?-1:1);if(this.width!==c||this.height!==a)this.width= c,this.height=a,this.Da()};t.u=new h;t.Y=new function(){}})();function oc(e){this.b=e} (function(){function e(a,b){return a.length?a.pop():new b}function r(a,b,c){if(c){var e;c=0;for(e=b.length;c<e;c++)a.length<h&&a.push(b[c]);b.length=0}else for(e in b)Object.prototype.hasOwnProperty.call(b,e)&&(a.length<h&&a.push(b[e]),delete b[e])}function m(a,b,c){var g=a.mf;c=c.replace(/\s\s*$/,"");b>=g.length&&g.push(e(t,Object));b=g[b];b.text=c;b.width=a.Il(c);a.sg=ma(a.sg,b.width)}function p(){}function v(){}var c=oc.prototype;c.U=function(){};c.ua=function(a){this.ta=a;this.b=a.b};var b=c.ua.prototype; b.U=function(){this.F||(this.G=new Image,this.G.idtkLoadDisposed=!0,this.G.src=this.Yj,this.b.Bf.push(this.G),this.M=null)};b.vj=function(){this.F||(this.M=null)};b.xj=function(){if(!this.F&&this.c.length){this.M||(this.M=this.b.B.$f(this.G,!1,this.b.ea,this.Zh));var a,b;a=0;for(b=this.c.length;a<b;a++)this.c[a].M=this.M}};b.fk=function(){this.F||this.c.length||!this.M||(this.b.B.deleteTexture(this.M),this.M=null)};b.Fj=function(a){a.drawImage(this.G,0,0)};c.la=function(a){this.type=a;this.b=a.b}; b=c.la.prototype;b.tf=function(){r(t,this.mf,!0);r(g,this.vi,!1);r(a,this.wi,!1);Ua(this.Nc)};b.U=function(){this.G=this.type.G;this.ti=this.A[0];this.ke=this.A[1];this.characterSet=this.A[2];this.text=this.A[3];this.fd=this.A[4];this.visible=0===this.A[5];this.$n=this.A[6]/2;this.nq=this.A[7]/2;this.Iv=0===this.A[9];this.Kf=this.A[10];this.lineHeight=this.A[11];this.yf=this.sg=0;this.Fg=this.A[12];this.Sp=this.A[13];console.log(this.Fg);this.ac?(this.mf.length=0,Ua(this.vi),Ua(this.wi),Ua(this.Nc)): (this.mf=[],this.vi={},this.wi={},this.Nc={});try{if(this.Fg)if(-1!==this.Fg.indexOf('""c2array""'))for(var a=jQuery.parseJSON(this.Fg.replace(/""/g,'"')),b=a.size[1],c=0;c<b;c++)for(var e=a.data[1][c][0],g=a.data[0][c][0],d=0;d<e.length;d++)this.Nc[e.charAt(d)]=g;else for(a=jQuery.parseJSON(this.Fg),b=a.length,c=0;c<b;c++)for(e=a[c][1],g=a[c][0],d=0;d<e.length;d++)this.Nc[e.charAt(d)]=g;-1!==this.Sp&&(this.Nc[" "]=this.Sp)}catch(h){window.console&&window.console.log&&window.console.log("SpriteFont+ Failure: "+ h)}this.tg=!0;this.yl=this.width;this.b.B&&(this.type.M||(this.type.M=this.b.B.$f(this.type.G,!1,this.b.ea,this.type.Zh)),this.M=this.type.M);this.Sr()};b.Ib=function(){var a={t:this.text,csc:this.fd,csp:this.Kf,lh:this.lineHeight,tw:this.sg,th:this.yf,lrt:this.zu,cw:{}},b;for(b in this.Nc)a.cw[b]=this.Nc[b];return a};b.Zb=function(a){this.text=a.t;this.fd=a.csc;this.Kf=a.csp;this.lineHeight=a.lh;this.sg=a.tw;this.yf=a.th;this.zu=a.lrt;for(var b in a.cw)this.Nc[b]=a.cw[b];this.tg=!0;this.yl=this.width}; var h=1E3,t=[],g=[],a=[];b.Sr=function(){for(var b=this.G,c=b.width,h=b.height,b=this.ti,l=this.ke,k=b/c,d=l/h,m=this.characterSet,c=Math.floor(c/b),h=Math.floor(h/l),n=0;n<m.length&&!(n>=c*h);n++){var p=n%c,r=Math.floor(n/c),t=m.charAt(n);if(this.b.B){var v=this.wi,w=p*k,fa=r*d,p=(p+1)*k,r=(r+1)*d;void 0===v[t]&&(v[t]=e(a,ua));v[t].left=w;v[t].top=fa;v[t].right=p;v[t].bottom=r}else v=this.vi,p*=b,r*=l,w=b,fa=l,void 0===v[t]&&(v[t]=e(g,Object)),v[t].x=p,v[t].y=r,v[t].pq=w,v[t].Zn=fa}};var l=[];c.Yr= function(a){l.length=0;for(var b="",c,e=0;e<a.length;)if(c=a.charAt(e),"\n"===c)b.length&&(l.push(b),b=""),l.push("\n"),++e;else if(" "===c||"\t"===c||"-"===c){do b+=a.charAt(e),e++;while(e<a.length&&(" "===a.charAt(e)||"\t"===a.charAt(e)));l.push(b);b=""}else e<a.length&&(b+=c,e++);b.length&&l.push(b)};c.as=function(a){var b=a.text,c=a.mf;if(b&&b.length){var g=a.width;if(2>=g)r(t,c,!0);else{var h=a.fd,d=a.Kf;if(b.length*(a.ti*h+d)-d<=g&&-1===b.indexOf("\n")&&(d=a.Il(b),d<=g)){r(t,c,!0);c.push(e(t, Object));c[0].text=b;c[0].width=d;a.sg=d;a.yf=a.ke*h+a.lineHeight;return}this.bs(a);a.yf=c.length*(a.ke*h+a.lineHeight)}}else r(t,c,!0)};c.bs=function(a){var b=a.Iv,c=a.text,e=a.mf,g=a.width;b&&(this.Yr(c),c=l);var d="",p,n,r,v=0,w=!1;for(r=0;r<c.length;r++)"\n"===c[r]?(!0===w?w=!1:(m(a,v,d),v++),d=""):(w=!1,p=d,d+=c[r],n=a.Il(d.replace(/\s\s*$/,"")),n>g&&(""===p?(m(a,v,d),d="",w=!0):(m(a,v,p),d=c[r]),v++,b||" "!==d||(d="")));d.replace(/\s\s*$/,"").length&&(m(a,v,d),v++);for(r=v;r<e.length;r++)t.length< h&&t.push(e[r]);e.length=v};b.Il=function(a){for(var b=this.Kf,c=a.length,e=0,g=0;g<c;g++)e+=this.Qg(a.charAt(g))*this.fd+b;return e-(0<e?b:0)};b.Qg=function(a){var b=this.Nc;return void 0!==b[a]?b[a]:this.ti};b.Bp=function(){if(this.tg||this.width!==this.yl)this.yf=this.sg=0,this.type.ta.as(this),this.tg=!1,this.yl=this.width};b.Gd=function(a){var b=this.G;if(""!==this.text&&null!=b&&(this.Bp(),!(this.height<this.ke*this.fd+this.lineHeight))){a.globalAlpha=this.opacity;var b=this.x,c=this.y;this.b.qd&& (b=b+.5|0,c=c+.5|0);a.save();a.translate(b,c);a.rotate(this.g);for(var b=this.$n,c=this.fd,e=this.ke*c,g=this.lineHeight,d=this.Kf,h=this.mf,n,l=-(this.Db*this.width),m=-(this.Eb*this.height),m=m+this.nq*ma(0,this.height-this.yf),p=0;p<h.length;p++){var r=h[p].text;n=b*ma(0,this.width-h[p].width);n=l+n;for(var m=m+g,t=0;t<r.length;t++){var v=r.charAt(t),x=this.vi[v];if(n+this.Qg(v)*c>this.width+1E-5)break;void 0!==x&&a.drawImage(this.G,x.x,x.y,x.pq,x.Zn,Math.round(n),Math.round(m),x.pq*c,x.Zn*c); n+=this.Qg(v)*c+d}m+=e;if(m+e+g>this.height)break}a.restore()}};var w=new va;b.wc=function(a){a.ec(this.M);a.wf(this.opacity);if(""!==this.text&&(this.Bp(),!(this.height<this.ke*this.fd+this.lineHeight))){this.xa();var b=this.Sb,c=0,e=0;this.b.qd&&(c=(this.x+.5|0)-this.x,e=(this.y+.5|0)-this.y);var g=this.g,d=this.$n,h=this.nq,n=this.fd,l=this.ke*n,m=this.lineHeight,p=this.Kf,r=this.mf,t=this.yf,v,x;0!==g&&(v=Math.cos(g),x=Math.sin(g));for(var R,c=b.va+c,b=b.wa+e,h=h*ma(0,this.height-t),t=0;t<r.length;t++){e= r[t].text;R=d*ma(0,this.width-r[t].width);for(var h=h+m,O=0;O<e.length;O++){var I=e.charAt(O),N=this.wi[I];if(R+this.Qg(I)*n>this.width+1E-5)break;if(void 0!==N){var z=this.ti*n,K=this.ke*n;w.va=R;w.wa=h;w.cb=R+z;w.eb=h;w.Pa=R;w.Qa=h+K;w.Ra=R+z;w.Sa=h+K;if(0!==g){var z=w,K=v,A=x,B=void 0,B=z.va*K-z.wa*A;z.wa=z.wa*K+z.va*A;z.va=B;B=z.cb*K-z.eb*A;z.eb=z.eb*K+z.cb*A;z.cb=B;B=z.Pa*K-z.Qa*A;z.Qa=z.Qa*K+z.Pa*A;z.Pa=B;B=z.Ra*K-z.Sa*A;z.Sa=z.Sa*K+z.Ra*A;z.Ra=B}w.offset(c,b);a.sd(w.va,w.wa,w.cb,w.eb,w.Ra, w.Sa,w.Pa,w.Qa,N)}R+=this.Qg(I)*n+p}h+=l;if(h+l+m>this.height)break}}};c.d=new function(){};p.prototype.Pr=function(a){L(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.tg=!0,this.b.ga=!0)};p.prototype.Ym=function(a){a!==this.fd&&(this.fd=a,this.tg=!0,this.b.ga=!0)};b.nw=function(a,b){var c=parseInt(b,10);this.Nc[a]!==c&&(this.Nc[a]=c,this.tg=!0,this.b.ga=!0)};c.u=new p;v.prototype.Text=function(a){a.La(this.text)};c.Y=new v})();function pc(e){this.b=e} (function(){var e=pc.prototype;e.ua=function(e){this.ta=e;this.b=e.b};var r=e.ua.prototype;r.U=function(){this.F||(this.G=new Image,this.G.zn=this.vm,this.b.qq(this.G,this.Yj),this.M=this.pattern=null)};r.vj=function(){this.F||(this.M=null)};r.xj=function(){if(!this.F&&this.c.length){this.M||(this.M=this.b.B.$f(this.G,!0,this.b.ea,this.Zh));var e,p;e=0;for(p=this.c.length;e<p;e++)this.c[e].M=this.M}};r.Al=function(){this.F||this.M||!this.b.B||(this.M=this.b.B.$f(this.G,!0,this.b.ea,this.Zh))};r.fk= function(){this.F||this.c.length||!this.M||(this.b.B.deleteTexture(this.M),this.M=null)};r.Fj=function(e){e.drawImage(this.G,0,0)};e.la=function(e){this.type=e;this.b=e.b};r=e.la.prototype;r.U=function(){this.visible=0===this.A[0];this.Nh=new ua(0,0,0,0);this.co=!1;this.G=this.type.G;this.b.B?(this.type.Al(),this.M=this.type.M):(this.type.pattern||(this.type.pattern=this.b.qa.createPattern(this.type.G,"repeat")),this.pattern=this.type.pattern)};r.cd=function(){this.co=!1;this.G=this.type.G};r.tf= function(){this.b.B&&this.co&&this.M&&(this.b.B.deleteTexture(this.M),this.M=null)};r.Gd=function(e){e.globalAlpha=this.opacity;e.save();e.fillStyle=this.pattern;var p=this.x,r=this.y;this.b.qd&&(p=Math.round(p),r=Math.round(r));var c=-(this.Db*this.width),b=-(this.Eb*this.height),h=c%this.G.width,t=b%this.G.height;0>h&&(h+=this.G.width);0>t&&(t+=this.G.height);e.translate(p,r);e.rotate(this.g);e.translate(h,t);e.fillRect(c-h,b-t,this.width,this.height);e.restore()};r.wc=function(e){e.ec(this.M); e.wf(this.opacity);var p=this.Nh;p.right=this.width/this.G.width;p.bottom=this.height/this.G.height;var r=this.Sb;if(this.b.qd){var c=Math.round(this.x)-this.x,b=Math.round(this.y)-this.y;e.sd(r.va+c,r.wa+b,r.cb+c,r.eb+b,r.Ra+c,r.Sa+b,r.Pa+c,r.Qa+b,p)}else e.sd(r.va,r.wa,r.cb,r.eb,r.Ra,r.Sa,r.Pa,r.Qa,p)};e.d=new function(){};e.u=new function(){};e.Y=new function(){}})();function Z(e){this.b=e} (function(){function e(b){g=b.x;a=b.y;l=b.z}function r(a){w=a.x;f=a.y;s=a.z}function m(a,b,c,d){var e;e=y.length?y.pop():new p;e.init(a,b,c,d);return e}function p(){this.Vh=this.id=this.y=this.x=this.Vj=this.Uj=this.xl=this.time=this.rm=0;this.ai=this.dk=!1}function v(){}function c(){}var b=Z.prototype;b.ua=function(a){this.ta=a;this.b=a.b};b.ua.prototype.U=function(){};b.la=function(a){this.type=a;this.b=a.b;this.touches=[];this.Kl=!1};var h=b.la.prototype,t={left:0,top:0};h.Pg=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 g=0,a=0,l=0,w=0,f=0,s=0,y=[];p.prototype.init=function(a,b,c,d){var e=Za();this.rm=this.xl=this.time=e;this.Uj=a;this.Vj=b;this.x=a;this.y=b;this.id=c;this.Vh=d;this.ai=this.dk=!1};p.prototype.update=function(a,b,c){this.xl=this.time;this.time=a;this.x=b;this.y=c;!this.ai&&15<=Qa(this.Uj,this.Vj,this.x,this.y)&&(this.ai=!0)};p.prototype.Eu=function(a,b){!this.dk&&500<=Za()-this.rm&&!this.ai&&15>Qa(this.Uj,this.Vj, this.x,this.y)&&(this.dk=!0,a.wd=this.Vh,a.ug=this.id,a.Pf=b,a.b.trigger(Z.prototype.d.mr,a),a.Dd=this.x,a.Ed=this.y,a.b.trigger(Z.prototype.d.nr,a),a.Pf=0)};var D=-1E3,k=-1E3,d=-1E4;p.prototype.So=function(a,b){if(!this.dk){var c=Za();333>=c-this.rm&&!this.ai&&15>Qa(this.Uj,this.Vj,this.x,this.y)&&(a.wd=this.Vh,a.ug=this.id,a.Pf=b,666>=c-d&&25>Qa(D,k,this.x,this.y)?(a.b.trigger(Z.prototype.d.ir,a),a.Dd=this.x,a.Ed=this.y,a.b.trigger(Z.prototype.d.jr,a),k=D=-1E3,d=-1E4):(a.b.trigger(Z.prototype.d.Ar, a),a.Dd=this.x,a.Ed=this.y,a.b.trigger(Z.prototype.d.Br,a),D=this.x,k=this.y,d=c),a.Pf=0)}};h.U=function(){this.uu=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.Pf=this.ug=this.wd=this.Ed=this.Dd=this.en=this.dn=this.cn=this.gs=this.es=this.ds=this.Gh=this.Fh=this.Eh=0;this.Ev=0!==this.A[0];var a=0<this.b.Ub?document:this.b.canvas,b=document;this.b.ib?b=a=window.Canvas:this.b.nc&&(b=a=window);var c=this;window.navigator.pointerEnabled?(a.addEventListener("pointerdown",function(a){c.gp(a)}, !1),a.addEventListener("pointermove",function(a){c.fp(a)},!1),b.addEventListener("pointerup",function(a){c.wj(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.wj(a,!0)},!1),this.b.canvas&&(this.b.canvas.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),document.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),this.b.canvas.addEventListener("gesturehold",function(a){a.preventDefault()},!1),document.addEventListener("gesturehold",function(a){a.preventDefault()}, !1))):window.navigator.msPointerEnabled?(a.addEventListener("MSPointerDown",function(a){c.gp(a)},!1),a.addEventListener("MSPointerMove",function(a){c.fp(a)},!1),b.addEventListener("MSPointerUp",function(a){c.wj(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.wj(a,!0)},!1),this.b.canvas&&(this.b.canvas.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),document.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1))):(a.addEventListener("touchstart",function(a){c.jp(a)}, !1),a.addEventListener("touchmove",function(a){c.ip(a)},!1),b.addEventListener("touchend",function(a){c.Tl(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.Tl(a,!0)},!1));if(this.uu){var d=function(a){a=a.reading;c.cn=a.accelerationX;c.dn=a.accelerationY;c.en=a.accelerationZ},f=function(a){a=a.reading;c.Eh=a.yawDegrees;c.Fh=a.pitchDegrees;c.Gh=a.rollDegrees},g=Windows.Devices.Sensors.Accelerometer.getDefault();g&&(g.reportInterval=Math.max(g.minimumReportInterval,16),g.addEventListener("readingchanged", d));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",d),h&&h.removeEventListener("readingchanged",f)):(g&&g.addEventListener("readingchanged",d),h&&h.addEventListener("readingchanged",f))},!1)}else window.addEventListener("deviceorientation",function(a){c.Eh=a.alpha|| 0;c.Fh=a.beta||0;c.Gh=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.ds=a.accelerationIncludingGravity.x||0,c.es=a.accelerationIncludingGravity.y||0,c.gs=a.accelerationIncludingGravity.z||0);a.acceleration&&(c.cn=a.acceleration.x||0,c.dn=a.acceleration.y||0,c.en=a.acceleration.z||0)},!1);this.Ev&&!this.b.Aa&&(jQuery(document).mousemove(function(a){c.Lu(a)}),jQuery(document).mousedown(function(a){c.Ku(a)}),jQuery(document).mouseup(function(a){c.Mu(a)})); this.b.Rf&&!this.b.ib&&AppMobi.accelerometer.watchAcceleration(e,{frequency:40,adjustForRotation:!0});this.b.oc&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(r,null,{frequency:40});this.b.wv(this)};h.fp=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var b=this.Pg(a.pointerId),c=Za();if(0<=b){var d=this.b.Aa?t:jQuery(this.b.canvas).offset(),b=this.touches[b];2>c-b.time|| b.update(c,a.pageX-d.left,a.pageY-d.top)}}};h.gp=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&lb(a)&&a.preventDefault();var b=this.b.Aa?t:jQuery(this.b.canvas).offset(),c=a.pageX-b.left,b=a.pageY-b.top;Za();this.wd=this.touches.length;this.ug=a.pointerId;this.touches.push(m(c,b,a.pointerId,this.wd));this.b.ld=!0;this.b.trigger(Z.prototype.d.Tm,this);this.b.trigger(Z.prototype.d.qk,this);this.Dd=c;this.Ed=b;this.b.trigger(Z.prototype.d.pk,this); this.b.ld=!1}};h.wj=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&lb(a)&&a.preventDefault();var c=this.Pg(a.pointerId);this.wd=0<=c?this.touches[c].Vh:-1;this.ug=0<=c?this.touches[c].id:-1;this.b.ld=!0;this.b.trigger(Z.prototype.d.Sm,this);this.b.trigger(Z.prototype.d.Vm,this);0<=c&&(b||this.touches[c].So(this,c),100>y.length&&y.push(this.touches[c]),this.touches.splice(c,1));this.b.ld=!1}};h.ip=function(a){a.preventDefault&&a.preventDefault(); var b=Za(),c,d,e,f;c=0;for(d=a.changedTouches.length;c<d;c++)if(e=a.changedTouches[c],f=this.Pg(e.identifier),0<=f){var g=this.b.Aa?t:jQuery(this.b.canvas).offset();f=this.touches[f];2>b-f.time||f.update(b,e.pageX-g.left,e.pageY-g.top)}};h.jp=function(a){a.preventDefault&&lb(a)&&a.preventDefault();var b=this.b.Aa?t:jQuery(this.b.canvas).offset();Za();this.b.ld=!0;var c,d,e,f;c=0;for(d=a.changedTouches.length;c<d;c++)if(e=a.changedTouches[c],f=this.Pg(e.identifier),-1===f){f=e.pageX-b.left;var g=e.pageY- b.top;this.wd=this.touches.length;this.ug=e.identifier;this.touches.push(m(f,g,e.identifier,this.wd));this.b.trigger(Z.prototype.d.Tm,this);this.b.trigger(Z.prototype.d.qk,this);this.Dd=f;this.Ed=g;this.b.trigger(Z.prototype.d.pk,this)}this.b.ld=!1};h.Tl=function(a,b){a.preventDefault&&lb(a)&&a.preventDefault();this.b.ld=!0;var c,d,e;c=0;for(d=a.changedTouches.length;c<d;c++)e=a.changedTouches[c],e=this.Pg(e.identifier),0<=e&&(this.wd=this.touches[e].Vh,this.ug=this.touches[e].id,this.b.trigger(Z.prototype.d.Sm, this),this.b.trigger(Z.prototype.d.Vm,this),b||this.touches[e].So(this,e),100>y.length&&y.push(this.touches[e]),this.touches.splice(e,1));this.b.ld=!1};h.Ew=function(){return this.b.Rf&&0===this.Eh&&0!==l?90*l:this.b.oc&&0===this.Eh&&0!==s?90*s:this.Eh};h.Fw=function(){return this.b.Rf&&0===this.Fh&&0!==a?-90*a:this.b.oc&&0===this.Fh&&0!==f?90*f:this.Fh};h.Lw=function(){return this.b.Rf&&0===this.Gh&&0!==g?90*g:this.b.oc&&0===this.Gh&&0!==w?90*w:this.Gh};h.Ku=function(a){a.preventDefault&&this.b.fl&& !this.b.bf&&a.preventDefault();this.jp({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.Kl=!0};h.Lu=function(a){this.Kl&&this.ip({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};h.Mu=function(a){a.preventDefault&&this.b.fl&&!this.b.bf&&a.preventDefault();this.b.fl=!0;this.Tl({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.Kl=!1};h.ak=function(){var a,b,c,d=Za();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=d-50&&(c.xl=d),c.Eu(this, a)};v.prototype.qk=function(){return!0};v.prototype.Vm=function(){return!0};v.prototype.pk=function(a){return a?this.b.Xj(a,this.Dd,this.Ed):!1};var q=[];v.prototype.Wq=function(a){if(!a)return!1;var b=a.H(),c=b.Cb(),d,e,f,g,h,k;f=0;for(g=c.length;f<g;f++){var l=c[f];l.xa();h=0;for(k=this.touches.length;h<k;h++)if(e=this.touches[h],d=l.k.Bb(e.x,e.y,!0),e=l.k.Bb(e.x,e.y,!1),l.yb(d,e)){q.push(l);break}}return q.length?(b.O=!1,Ba(b.c,q),a.qc(),q.length=0,!0):!1};v.prototype.Tm=function(a){a=Math.floor(a); return a===this.wd};v.prototype.Sm=function(a){a=Math.floor(a);return a===this.wd};v.prototype.mr=function(){return!0};v.prototype.Ar=function(){return!0};v.prototype.ir=function(){return!0};v.prototype.nr=function(a){return a?this.b.Xj(a,this.Dd,this.Ed):!1};v.prototype.Br=function(a){return a?this.b.Xj(a,this.Dd,this.Ed):!1};v.prototype.jr=function(a){return a?this.b.Xj(a,this.Dd,this.Ed):!1};b.d=new v;c.prototype.an=function(a,b){var c=this.Pf;if(0>c||c>=this.touches.length)a.D(0);else{var d,e, f,g,h;ia(b)?(d=this.b.Sg(0),e=d.scale,f=d.bd,g=d.Dc,h=d.g,d.scale=1,d.bd=1,d.Dc=1,d.g=0,a.D(d.Bb(this.touches[c].x,this.touches[c].y,!0)),d.scale=e,d.bd=f,d.Dc=g,d.g=h):(d=L(b)?this.b.Sg(b):this.b.$k(b))?a.D(d.Bb(this.touches[c].x,this.touches[c].y,!0)):a.D(0)}};c.prototype.bn=function(a,b){var c=this.Pf;if(0>c||c>=this.touches.length)a.D(0);else{var d,e,f,g,h;ia(b)?(d=this.b.Sg(0),e=d.scale,f=d.bd,g=d.Ec,h=d.g,d.scale=1,d.bd=1,d.Ec=1,d.g=0,a.D(d.Bb(this.touches[c].x,this.touches[c].y,!1)),d.scale= e,d.bd=f,d.Ec=g,d.g=h):(d=L(b)?this.b.Sg(b):this.b.$k(b))?a.D(d.Bb(this.touches[c].x,this.touches[c].y,!1)):a.D(0)}};b.Y=new c})();function qc(e){this.b=e} (function(){function e(){}function r(){}function m(){}var p=qc.prototype;p.ua=function(b){this.ta=b;this.b=b.b};p.ua.prototype.U=function(){};p.la=function(b){this.type=b;this.b=b.b};var v=p.la.prototype,c="",b="undefined"!==typeof window.is_scirra_arcade;b&&(c="arcade"+window.scirra_arcade_id);v.U=function(){"undefined"===typeof localStorage&&E("[Construct 2] Webstorage plugin: local storage is not supported on this platform.");"undefined"===typeof sessionStorage&&E("[Construct 2] Webstorage plugin: session storage is not supported on this platform.")}; e.prototype.Zq=function(b){return"undefined"===typeof localStorage?!1:null!=localStorage.getItem(c+b)};e.prototype.Um=function(){return!0};p.d=new e;r.prototype.Wr=function(b,e){if("undefined"!==typeof localStorage)try{localStorage.setItem(c+b,e)}catch(g){this.b.trigger(qc.prototype.d.Um,this)}};r.prototype.zq=function(){"undefined"!==typeof localStorage&&(b||localStorage.clear())};r.prototype.Nm=function(e,m){if("undefined"!==typeof localStorage){var g;try{g=JSON.parse(e)}catch(a){return}if(g.c2dictionary){g= g.data;0!==m||b||localStorage.clear();for(var l in g)if(g.hasOwnProperty(l))try{localStorage.setItem(c+l,g[l])}catch(p){this.b.trigger(qc.prototype.d.Um,this);break}}}};p.u=new r;m.prototype.$q=function(b,e){"undefined"===typeof localStorage?b.La(""):b.La(localStorage.getItem(c+e)||"")};m.prototype.gi=function(e){if("undefined"===typeof localStorage)e.La("");else{var m={},g,a,l;g=0;for(a=localStorage.length;g<a;g++)l=localStorage.key(g),b?l.substr(0,c.length)===c&&(m[l.substr(c.length)]=localStorage.getItem(l)): m[l]=localStorage.getItem(l);e.La(JSON.stringify({c2dictionary:!0,data:m}))}};p.Y=new m})();function rc(e){this.b=e} (function(){function e(){}var r=rc.prototype;r.ua=function(e){this.ta=e;this.b=e.b};r.ua.prototype.U=function(){};r.la=function(e){this.type=e;this.b=e.b};r.la.prototype.U=function(){if(window.admob){this.yg=window.admob;var e=0!==this.A[0],p=0!==this.A[1];this.ls=this.A[2];this.ms=this.A[3];this.nu=this.A[4];this.ou=this.A[5];this.Gv=this.A[6];this.Hv=this.A[7];this.b.bh?(this.ki=this.ls,this.aj=this.ms):this.b.mh?(this.ki=this.nu,this.aj=this.ou):this.b.ff||this.b.ih?(this.ki=this.Gv,this.aj=this.Hv): this.aj=this.ki="";this.po=!1;this.yg.setUp(this.ki,this.aj,e,p);var r=this;this.yg.onFullScreenAdLoaded=function(){r.b.trigger(rc.prototype.d.qr,r)};this.yg.onFullScreenAdShown=function(){r.po=!0;r.b.trigger(rc.prototype.d.pr,r)};this.yg.onFullScreenAdClosed=function(){r.po=!1;r.b.trigger(rc.prototype.d.or,r)};this.yg.onBannerAdPreloaded=function(){r.b.trigger(rc.prototype.d.er,r)}}else E("[Construct 2] com.cranberrygame.phonegap.plugin.ad.admob plugin is required to show Admob ads with Cordova; other platforms are not supported")}; e.prototype.qr=function(){return!0};e.prototype.pr=function(){return!0};e.prototype.or=function(){return!0};e.prototype.er=function(){return!0};r.d=new e;r.u=new function(){};r.Y=new function(){}})();function sc(e){this.b=e} (function(){function e(){}function r(){}var m=sc.prototype;m.ua=function(e){this.behavior=e;this.b=e.b};m.ua.prototype.U=function(){};m.la=function(e,c){this.type=e;this.behavior=e.behavior;this.e=c;this.b=e.b};var p=m.la.prototype;p.U=function(){var e=1===this.A[0];this.Mg=this.A[1];this.fi=this.A[2];this.Ni=this.A[3];this.As=this.A[4];this.fc=e?0:3;this.ac?this.Fc.reset():this.Fc=new cb;this.rf=this.e.opacity?this.e.opacity:1;e&&(0===this.Mg?(this.fc=1,0===this.fi&&(this.fc=2)):(this.e.opacity= 0,this.b.ga=!0))};p.Ib=function(){return{fit:this.Mg,wt:this.fi,fot:this.Ni,s:this.fc,st:this.Fc.X,mo:this.rf}};p.Zb=function(e){this.Mg=e.fit;this.fi=e.wt;this.Ni=e.fot;this.fc=e.s;this.Fc.reset();this.Fc.X=e.st;this.rf=e.mo};p.ub=function(){this.Fc.add(this.b.Vi(this.e));0===this.fc&&(this.e.opacity=this.Fc.X/this.Mg*this.rf,this.b.ga=!0,this.e.opacity>=this.rf&&(this.e.opacity=this.rf,this.fc=1,this.Fc.reset(),this.b.trigger(sc.prototype.d.kr,this.e)));1===this.fc&&this.Fc.X>=this.fi&&(this.fc= 2,this.Fc.reset(),this.b.trigger(sc.prototype.d.Cr,this.e));2===this.fc&&0!==this.Ni&&(this.e.opacity=this.rf-this.Fc.X/this.Ni*this.rf,this.b.ga=!0,0>this.e.opacity&&(this.e.opacity=0,this.fc=3,this.Fc.reset(),this.b.trigger(sc.prototype.d.lr,this.e),1===this.As&&this.b.be(this.e)))};p.Ls=function(){this.fc=0;this.Fc.reset();0===this.Mg?(this.fc=1,0===this.fi&&(this.fc=2)):(this.e.opacity=0,this.b.ga=!0)};e.prototype.lr=function(){return!0};e.prototype.kr=function(){return!0};e.prototype.Cr=function(){return!0}; m.d=new e;r.prototype.Tr=function(){3===this.fc&&this.Ls()};m.u=new r;m.Y=new function(){}})();function tc(e){this.b=e} (function(){function e(){}var r=tc.prototype;r.ua=function(e){this.behavior=e;this.b=e.b};r.ua.prototype.U=function(){};r.la=function(e,m){this.type=e;this.behavior=e.behavior;this.e=m;this.b=e.b};var m=r.la.prototype;m.U=function(){this.mb=null;this.zj=-1;this.mode=this.Xf=this.Zj=this.gg=this.Rd=this.Jh=0;var e=this;this.ac||(this.Wo=function(m){e.Rl(m)});this.b.tk(this.Wo)};m.Ib=function(){return{uid:this.mb?this.mb.uid:-1,pa:this.Jh,pd:this.Rd,msa:this.gg,tsa:this.Zj,lka:this.Xf,m:this.mode}}; m.Zb=function(e){this.zj=e.uid;this.Jh=e.pa;this.Rd=e.pd;this.gg=e.msa;this.Zj=e.tsa;this.Xf=e.lka;this.mode=e.m};m.cd=function(){this.mb=-1===this.zj?null:this.b.Tg(this.zj);this.zj=-1};m.Rl=function(e){this.mb==e&&(this.mb=null)};m.tf=function(){this.mb=null;this.b.$u(this.Wo)};m.ub=function(){};m.ak=function(){if(this.mb){this.Xf!==this.e.g&&(this.gg=Ia(this.gg+(this.e.g-this.Xf)));var e=this.e.x,m=this.e.y;if(3===this.mode||4===this.mode){var c=Qa(this.e.x,this.e.y,this.mb.x,this.mb.y);if(c>this.Rd|| 4===this.mode&&c<this.Rd)m=La(this.mb.x,this.mb.y,this.e.x,this.e.y),e=this.mb.x+Math.cos(m)*this.Rd,m=this.mb.y+Math.sin(m)*this.Rd}else e=this.mb.x+Math.cos(this.mb.g+this.Jh)*this.Rd,m=this.mb.y+Math.sin(this.mb.g+this.Jh)*this.Rd;this.Xf=c=Ia(this.gg+(this.mb.g-this.Zj));0!==this.mode&&1!==this.mode&&3!==this.mode&&4!==this.mode||this.e.x===e&&this.e.y===m||(this.e.x=e,this.e.y=m,this.e.Da());0!==this.mode&&2!==this.mode||this.e.g===c||(this.e.g=c,this.e.Da())}};r.d=new function(){};e.prototype.Er= function(e,m){if(e){var c=e.Tn(this.e);c&&(this.mb=c,this.Jh=La(c.x,c.y,this.e.x,this.e.y)-c.g,this.Rd=Qa(c.x,c.y,this.e.x,this.e.y),this.Xf=this.gg=this.e.g,this.Zj=c.g,this.mode=m)}};r.u=new e;r.Y=new function(){}})();function wc(e){this.b=e} (function(){var e=wc.prototype;e.ua=function(c){this.behavior=c;this.b=c.b};e.ua.prototype.U=function(){};e.la=function(c,b){this.type=c;this.behavior=c.behavior;this.e=b;this.b=c.b;this.Va=0};var r=e.la.prototype,m=2*Math.PI,p=Math.PI/2,v=3*Math.PI/2;r.U=function(){this.xb=1===this.A[0];this.Bh=this.A[1];this.Jm=this.A[2];this.Qd=this.A[3];this.Qd+=Math.random()*this.A[4];0===this.Qd?this.Va=0:(this.Va=this.A[5]/this.Qd*m,this.Va+=Math.random()*this.A[6]/this.Qd*m);this.Mb=this.A[7];this.Mb+=Math.random()* this.A[8];this.Mh=this.Ye=this.aa=0;this.init()};r.Ib=function(){return{i:this.Va,a:this.xb,mv:this.Bh,w:this.Jm,p:this.Qd,mag:this.Mb,iv:this.aa,iv2:this.Ye,r:this.Mh,lkv:this.Xb,lkv2:this.nh}};r.Zb=function(c){this.Va=c.i;this.xb=c.a;this.Bh=c.mv;this.Jm=c.w;this.Qd=c.p;this.Mb=c.mag;this.aa=c.iv;this.Ye=c.iv2||0;this.Mh=c.r;this.Xb=c.lkv;this.nh=c.lkv2||0};r.init=function(){switch(this.Bh){case 0:this.aa=this.e.x;break;case 1:this.aa=this.e.y;break;case 2:this.aa=this.e.width;this.Mh=this.e.height/ this.e.width;break;case 3:this.aa=this.e.width;break;case 4:this.aa=this.e.height;break;case 5:this.aa=this.e.g;this.Mb=V(this.Mb);break;case 6:this.aa=this.e.opacity;break;case 7:this.aa=0;break;case 8:this.aa=this.e.x,this.Ye=this.e.y}this.Xb=this.aa;this.nh=this.Ye};r.$d=function(c){c%=m;switch(this.Jm){case 0:return Math.sin(c);case 1:return c<=p?c/p:c<=v?1-2*(c-p)/Math.PI:(c-v)/p-1;case 2:return 2*c/m-1;case 3:return-2*c/m+1;case 4:return c<Math.PI?-1:1}return 0};r.ub=function(){var c=this.b.Vi(this.e); if(this.xb&&0!==c){0===this.Qd?this.Va=0:(this.Va+=c/this.Qd*m,this.Va%=m);switch(this.Bh){case 0:this.e.x!==this.Xb&&(this.aa+=this.e.x-this.Xb);this.e.x=this.aa+this.$d(this.Va)*this.Mb;this.Xb=this.e.x;break;case 1:this.e.y!==this.Xb&&(this.aa+=this.e.y-this.Xb);this.e.y=this.aa+this.$d(this.Va)*this.Mb;this.Xb=this.e.y;break;case 2:this.e.width=this.aa+this.$d(this.Va)*this.Mb;this.e.height=this.e.width*this.Mh;break;case 3:this.e.width=this.aa+this.$d(this.Va)*this.Mb;break;case 4:this.e.height= this.aa+this.$d(this.Va)*this.Mb;break;case 5:this.e.g!==this.Xb&&(this.aa=Ia(this.aa+(this.e.g-this.Xb)));this.e.g=Ia(this.aa+this.$d(this.Va)*this.Mb);this.Xb=this.e.g;break;case 6:this.e.opacity=this.aa+this.$d(this.Va)*this.Mb/100;0>this.e.opacity?this.e.opacity=0:1<this.e.opacity&&(this.e.opacity=1);break;case 8:this.e.x!==this.Xb&&(this.aa+=this.e.x-this.Xb),this.e.y!==this.nh&&(this.Ye+=this.e.y-this.nh),this.e.x=this.aa+Math.cos(this.e.g)*this.$d(this.Va)*this.Mb,this.e.y=this.Ye+Math.sin(this.e.g)* this.$d(this.Va)*this.Mb,this.Xb=this.e.x,this.nh=this.e.y}this.e.Da()}};r.hp=function(c,b){switch(this.Bh){case 2:this.aa*=b.width/c.width;this.Mh=b.height/b.width;break;case 3:this.aa*=b.width/c.width;break;case 4:this.aa*=b.height/c.height}};e.d=new function(){};e.u=new function(){};e.Y=new function(){}})(); function kc(){return[rc,nc,mc,Y,lc,X,oc,pc,qc,Z,tc,wc,sc,W.prototype.d.Uq,Z.prototype.d.pk,W.prototype.u.tq,nc.prototype.u.Play,W.prototype.d.Eq,W.prototype.d.Zr,nc.prototype.u.Or,X.prototype.u.Lr,W.prototype.u.Rr,X.prototype.d.Dq,X.prototype.u.Mr,W.prototype.u.$r,W.prototype.u.Oq,Y.prototype.u.Qq,W.prototype.d.Qm,pc.prototype.u.rk,Y.prototype.Y.Jr,Y.prototype.Y.Ir,tc.prototype.u.Er,X.prototype.u.Zm,W.prototype.Y.Au,X.prototype.Y.bn,W.prototype.Y.oe,X.prototype.u.sk,X.prototype.Y.an,X.prototype.d.Gq, qc.prototype.d.Zq,mc.prototype.u.Nm,qc.prototype.Y.$q,qc.prototype.u.zq,W.prototype.u.Hr,nc.prototype.d.Vq,nc.prototype.u.Ur,pc.prototype.u.Om,pc.prototype.u.Nr,mc.prototype.d.ik,mc.prototype.u.sk,W.prototype.d.Mq,X.prototype.d.Cq,W.prototype.u.Pq,W.prototype.u.Iq,X.prototype.u.Lm,W.prototype.d.Lq,oc.prototype.u.Pr,W.prototype.d.Aq,X.prototype.d.gr,W.prototype.u.Xr,X.prototype.u.Ym,lc.prototype.u.CallFunction,W.prototype.Y.xn,W.prototype.Y.max,mc.prototype.Y.vq,X.prototype.d.Dr,Z.prototype.d.Wq,X.prototype.d.Rq, nc.prototype.u.Fr,X.prototype.u.Kr,X.prototype.u.br,sc.prototype.u.Tr,Z.prototype.d.qk,X.prototype.Y.Hq,W.prototype.u.Qr,pc.prototype.u.Lm,pc.prototype.u.Xm,lc.prototype.d.hi,X.prototype.u.Vr,oc.prototype.u.Zm,X.prototype.u.rk,X.prototype.Y.$m,X.prototype.Y.Mm,X.prototype.d.Fq,X.prototype.u.sq,W.prototype.d.Nq,X.prototype.u.Om,X.prototype.d.ik,W.prototype.d.Kq,W.prototype.d.Bq,X.prototype.u.Xm,W.prototype.d.Pm,qc.prototype.u.Wr,mc.prototype.Y.gi,nc.prototype.u.Gr,W.prototype.d.nk,W.prototype.Y.floor, W.prototype.Y.nf]};
| ver. 1.4 |
Github
|
.
| PHP 8.2.29 | Генераци� �траницы: 0 |
proxy
|
phpinfo
|
�а�тройка