// Generated by Construct 2, the HTML5 game and app creator :: https://www.construct.net 'use strict';var aa,ba,ca,da,fa,ga,ha,ja,z,la,ma,na,pa,qa,sa,ta,ua,va,wa,xa,ya,za,Ba,A,Da,Fa,Ha,Ia,Ja,G,Ka,La,Ma,Na,Oa,Pa,Ra,Sa,Ta,Ua,Va,Wa,Xa,Ya,Za,$a,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,pb,qb,rb,sb,tb,ub,vb,wb,xb,yb,zb,Ab,Bb,Cb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,Xb,Yb,Zb,$b,ac,bc,cc,dc,ec,fc,gc,hc,ic,jc={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(h){return h.__proto__}:function(h){return h.constructor.prototype}); (function(){function h(a,c,e,b){this.set(a,c,e,b)}function r(){this.ab=this.$a=this.cb=this.bb=this.ob=this.nb=this.Ga=this.Fa=0}function p(a,c,b,k){ak?c:k):(e=ab?c:b):bk?a:k):(e=cb?a:b)}function t(){this.items=this.Fd=null;this.Nh=0;E&&(this.Fd=new Set);this.Ug=[];this.ue=!0}function v(a){Ea[oa++]=a}function n(){this.Z=this.Vk=this.y=this.Il=0}function g(a){this.lb=[];this.gj=this.ij=this.jj=this.hj=0;this.oi(a)}function b(a,c){this.Ml= a;this.Ll=c;this.cells={}}function d(a,c){this.Ml=a;this.Ll=c;this.cells={}}function l(a,c,e){var b;return K.length?(b=K.pop(),b.rm=a,b.x=c,b.y=e,b):new ba(a,c,e)}function c(a,c,e){this.rm=a;this.x=c;this.y=e;this.sb=new ca}function f(a,c,e){var b;return L.length?(b=L.pop(),b.rm=a,b.x=c,b.y=e,b):new da(a,c,e)}function a(a,c,e){this.rm=a;this.x=c;this.y=e;this.sb=[];this.mg=!0;this.Cd=new ca;this.eh=!1}function k(a,c){return a.pd-c.pd}fa=function(a){window.console&&window.console.log&&window.console.log(a)}; ga=function(a){window.console&&window.console.error&&window.console.error(a)};aa=function(a){return a};ha=function(a){return"undefined"===typeof a};ja=function(a){return"number"===typeof a};z=function(a){return"string"===typeof a};la=function(a){return 0c;c<<=1)a=a|a>>c;return a+1};na=function(a){return 0>a?-a:a};pa=function(a,c){return a>c?a:c};qa=function(a,c){return ad)return!1;cd)return!1;B=k-a+q-e;u=f-c+x-b;a=e-a;c=b-c;k=q-k;f=x-f;x=na(c*k-f*a);return na(k*u-f*B)>x?!1:na(a*u-c*B)<=x};h.prototype.set=function(a,c,e,b){this.left=a;this.top=c;this.right=e;this.bottom=b};h.prototype.Vf=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};h.prototype.width= function(){return this.right-this.left};h.prototype.height=function(){return this.bottom-this.top};h.prototype.offset=function(a,c){this.left+=a;this.top+=c;this.right+=a;this.bottom+=c;return this};h.prototype.normalize=function(){var a=0;this.left>this.right&&(a=this.left,this.left=this.right,this.right=a);this.top>this.bottom&&(a=this.top,this.top=this.bottom,this.bottom=a)};h.prototype.Ww=function(a){return!(a.rightthis.right||a.top>this.bottom)};h.prototype.Xw= function(a,c,e){return!(a.right+cthis.right||a.top+e>this.bottom)};h.prototype.Ib=function(a,c){return a>=this.left&&a<=this.right&&c>=this.top&&c<=this.bottom};h.prototype.oh=function(a){return this.left===a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};wa=h;r.prototype.ni=function(a){this.Fa=a.left;this.Ga=a.top;this.nb=a.right;this.ob=a.top;this.bb=a.right;this.cb=a.bottom;this.$a=a.left;this.ab=a.bottom};r.prototype.Br=function(a, c){if(0===c)this.ni(a);else{var e=Math.sin(c),b=Math.cos(c),k=a.left*e,f=a.top*e,q=a.right*e,e=a.bottom*e,x=a.left*b,B=a.top*b,u=a.right*b,b=a.bottom*b;this.Fa=x-f;this.Ga=B+k;this.nb=u-f;this.ob=B+q;this.bb=u-e;this.cb=b+q;this.$a=x-e;this.ab=b+k}};r.prototype.offset=function(a,c){this.Fa+=a;this.Ga+=c;this.nb+=a;this.ob+=c;this.bb+=a;this.cb+=c;this.$a+=a;this.ab+=c;return this};var e=0,u=0;r.prototype.To=function(a){p(this.Fa,this.nb,this.bb,this.$a);a.left=e;a.right=u;p(this.Ga,this.ob,this.cb, this.ab);a.top=e;a.bottom=u};r.prototype.Ib=function(a,c){var e=this.Fa,b=this.Ga,k=this.nb-e,f=this.ob-b,q=this.bb-e,x=this.cb-b,B=a-e,u=c-b,d=k*k+f*f,m=k*q+f*x,f=k*B+f*u,w=q*q+x*x,l=q*B+x*u,h=1/(d*w-m*m),k=(w*f-m*l)*h,d=(d*l-m*f)*h;if(0<=k&&0k+d)return!0;k=this.$a-e;f=this.ab-b;d=k*k+f*f;m=k*q+f*x;f=k*B+f*u;h=1/(d*w-m*m);k=(w*f-m*l)*h;d=(d*l-m*f)*h;return 0<=k&&0k+d};r.prototype.pc=function(a,c){if(c)switch(a){case 0:return this.Fa;case 1:return this.nb;case 2:return this.bb;case 3:return this.$a; case 4:return this.Fa;default:return this.Fa}else switch(a){case 0:return this.Ga;case 1:return this.ob;case 2:return this.cb;case 3:return this.ab;case 4:return this.Ga;default:return this.Ga}};r.prototype.Cq=function(){return(this.Fa+this.nb+this.bb+this.$a)/4};r.prototype.Dq=function(){return(this.Ga+this.ob+this.cb+this.ab)/4};r.prototype.Kp=function(a){var c=a.Cq(),e=a.Dq();if(this.Ib(c,e))return!0;c=this.Cq();e=this.Dq();if(a.Ib(c,e))return!0;var b,k,f,q,x,B,d,u;for(d=0;4>d;d++)for(u=0;4>u;u++)if(c= this.pc(d,!0),e=this.pc(d,!1),b=this.pc(d+1,!0),k=this.pc(d+1,!1),f=a.pc(u,!0),q=a.pc(u,!1),x=a.pc(u+1,!0),B=a.pc(u+1,!1),va(c,e,b,k,f,q,x,B))return!0;return!1};xa=r;ya=function(a,c){for(var e in c)c.hasOwnProperty(e)&&(a[e]=c[e]);return a};za=function(a,c){var e,b;c=ta(c);if(!(0>c||c>=a.length)){e=c;for(b=a.length-1;ee?e:a};G=function(a){return a/(180/sa)};Ka=function(a){return 180/sa*a};La=function(a){a%=360;0>a&&(a+=360);return a};Ma=function(a){a%=2*sa;0>a&&(a+=2*sa);return a};Na=function(a){return La(Ka(a))};Oa=function(a){return Ma(G(a))};Pa=function(a,c,e,b){return Math.atan2(b-c,e-a)};Ra=function(a,c){if(a===c)return 0;var e=Math.sin(a), b=Math.cos(a),k=Math.sin(c),f=Math.cos(c),e=e*k+b*f;return 1<=e?0:-1>=e?sa:Math.acos(e)};Sa=function(a,c,e){var b=Math.sin(a),k=Math.cos(a),f=Math.sin(c),q=Math.cos(c);return Math.acos(b*f+k*q)>e?0=b*k-e*f};Ua=function(a,c,e,b,k,f){if(0===e)return f?a:c;var q=Math.sin(e);e=Math.cos(e);a-=b;c-=k;var x=a*q;a=a*e-c*q;c=c*e+x;return f?a+b:c+k};Va=function(a,c,e,b){a=e-a;c=b-c;return Math.sqrt(a* a+c*c)};Wa=function(a,c){return!a!==!c};Xa=function(a){for(var c in a)if(a.hasOwnProperty(c))return!0;return!1};Ya=function(a){for(var c in a)a.hasOwnProperty(c)&&delete a[c]};var m=+new Date;Za=function(){if("undefined"!==typeof window.performance){var a=window.performance;if("undefined"!==typeof a.now)return a.now();if("undefined"!==typeof a.webkitNow)return a.webkitNow();if("undefined"!==typeof a.mozNow)return a.mozNow();if("undefined"!==typeof a.msNow)return a.msNow()}return Date.now()-m};var q= !1,w=q=!1,U=!1;"undefined"!==typeof window&&(q=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),q=!q&&/safari/i.test(navigator.userAgent),w=/(iphone|ipod|ipad)/i.test(navigator.userAgent),U=window.c2ejecta);var E=!q&&!U&&!w&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;t.prototype.contains=function(a){return this.Yd()?!1:E?this.Fd.has(a):this.items&&this.items.hasOwnProperty(a)};t.prototype.add=function(a){if(E)this.Fd.has(a)||(this.Fd.add(a),this.ue= !1);else{var c=a.toString(),e=this.items;e?e.hasOwnProperty(c)||(e[c]=a,this.Nh++,this.ue=!1):(this.items={},this.items[c]=a,this.Nh=1,this.ue=!1)}};t.prototype.remove=function(a){if(!this.Yd())if(E)this.Fd.has(a)&&(this.Fd["delete"](a),this.ue=!1);else if(this.items){a=a.toString();var c=this.items;c.hasOwnProperty(a)&&(delete c[a],this.Nh--,this.ue=!1)}};t.prototype.clear=function(){this.Yd()||(E?this.Fd.clear():(this.items=null,this.Nh=0),A(this.Ug),this.ue=!0)};t.prototype.Yd=function(){return 0=== this.count()};t.prototype.count=function(){return E?this.Fd.size:this.Nh};var Ea=null,oa=0;t.prototype.My=function(){if(!this.ue){if(E)A(this.Ug),Ea=this.Ug,oa=0,this.Fd.forEach(v),Ea=null,oa=0;else{var a=this.Ug;A(a);var c,e=0,b=this.items;if(b)for(c in b)b.hasOwnProperty(c)&&(a[e++]=b[c])}this.ue=!0}};t.prototype.We=function(){this.My();return this.Ug};ca=t;new ca;$a=function(a,c){E?cb(a,c.Fd):db(a,c.We())};cb=function(a,c){var e,b,k,f;b=e=0;for(k=a.length;ee&&(e=f),qk&&(k=q);this.hj=c;this.ij=e;this.jj=b;this.gj=k};g.prototype.ni=function(a,c,e){this.lb.length=8;this.kd=4;var b=this.lb;b[0]=a.left-c;b[1]=a.top-e;b[2]=a.right-c;b[3]=a.top-e;b[4]=a.right-c;b[5]=a.bottom-e;b[6]=a.left-c;b[7]=a.bottom-e;this.mj=a.right-a.left;this.lj=a.bottom-a.top;this.Aa()};g.prototype.Lg=function(a,c,e,b,k){this.lb.length=8;this.kd= 4;var f=this.lb;f[0]=a.Fa-c;f[1]=a.Ga-e;f[2]=a.nb-c;f[3]=a.ob-e;f[4]=a.bb-c;f[5]=a.cb-e;f[6]=a.$a-c;f[7]=a.ab-e;this.mj=b;this.lj=k;this.Aa()};g.prototype.Ar=function(a){this.kd=a.kd;Da(this.lb,a.lb);this.hj=a.hj;this.jj-a.jj;this.ij=a.ij;this.gj=a.gj};g.prototype.Sf=function(a,c,e){if(this.mj!==a||this.lj!==c||this.Wo!==e){this.mj=a;this.lj=c;this.Wo=e;var b,k,f,q,x,d=0,u=1,m=this.hr,w=this.lb;0!==e&&(d=Math.sin(e),u=Math.cos(e));e=0;for(f=this.kd;eK.length&&K.push(x),this.cells[b][f]=null);if(e)for(b=e.left,k=e.right;b<=k;++b)for(f=e.top,q=e.bottom;f<=q;++f)c&&c.Ib(b,f)||this.Ge(b,f,!0).zm(a)};b.prototype.Fk=function(a,c){var e,b,k,f,q,x;e=this.Ub(a.left);k=this.Vb(a.top);b=this.Ub(a.right);for(q=this.Vb(a.bottom);e<=b;++e)for(f=k;f<=q;++f)(x=this.Ge(e,f,!1))&&x.dump(c)};hb=b;d.prototype.Ge=function(a,c,e){var b; b=this.cells[a];return b?(b=b[c])?b:e?(b=f(this,a,c),this.cells[a][c]=b):null:e?(b=f(this,a,c),this.cells[a]={},this.cells[a][c]=b):null};d.prototype.Ub=function(a){return ta(a/this.Ml)};d.prototype.Vb=function(a){return ta(a/this.Ll)};d.prototype.update=function(a,c,e){var b,k,f,q,x;if(c)for(b=c.left,k=c.right;b<=k;++b)for(f=c.top,q=c.bottom;f<=q;++f)if(!e||!e.Ib(b,f))if(x=this.Ge(b,f,!1))x.remove(a),x.Yd()&&(x.reset(),1E3>L.length&&L.push(x),this.cells[b][f]=null);if(e)for(b=e.left,k=e.right;b<= k;++b)for(f=e.top,q=e.bottom;f<=q;++f)c&&c.Ib(b,f)||this.Ge(b,f,!0).zm(a)};d.prototype.Fk=function(a,c,e,b,k){var f,q;a=this.Ub(a);c=this.Vb(c);e=this.Ub(e);for(f=this.Vb(b);a<=e;++a)for(b=c;b<=f;++b)(q=this.Ge(a,b,!1))&&q.dump(k)};d.prototype.vx=function(a){var c,e,b,k,f;c=a.left;b=a.top;e=a.right;for(k=a.bottom;c<=e;++c)for(a=b;a<=k;++a)if(f=this.Ge(c,a,!1))f.mg=!1};ib=d;var K=[];c.prototype.Yd=function(){return this.sb.Yd()};c.prototype.zm=function(a){this.sb.add(a)};c.prototype.remove=function(a){this.sb.remove(a)}; c.prototype.dump=function(a){Fa(a,this.sb.We())};ba=c;var L=[];a.prototype.Yd=function(){if(!this.sb.length)return!0;if(this.sb.length>this.Cd.count())return!1;this.fm();return!0};a.prototype.zm=function(a){this.Cd.contains(a)?(this.Cd.remove(a),this.Cd.Yd()&&(this.eh=!1)):this.sb.length?(this.sb[this.sb.length-1].wd()>a.wd()&&(this.mg=!1),this.sb.push(a)):(this.sb.push(a),this.mg=!0)};a.prototype.remove=function(a){this.Cd.add(a);this.eh=!0;30<=this.Cd.count()&&this.fm()};a.prototype.fm=function(){this.eh&& (this.Cd.count()===this.sb.length?this.reset():($a(this.sb,this.Cd),this.Cd.clear(),this.eh=!1))};a.prototype.Av=function(){this.mg||(this.sb.sort(k),this.mg=!0)};a.prototype.reset=function(){A(this.sb);this.mg=!0;this.Cd.clear();this.eh=!1};a.prototype.dump=function(a){this.fm();this.Av();this.sb.length&&a.push(this.sb)};da=a;var H="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");jb=function(a){return 0>=a||11<=a?"source-over": H[a-1]};kb=function(a,c,e){if(e)switch(a.Pb=e.ONE,a.Jb=e.ONE_MINUS_SRC_ALPHA,c){case 1:a.Pb=e.ONE;a.Jb=e.ONE;break;case 3:a.Pb=e.ONE;a.Jb=e.ZERO;break;case 4:a.Pb=e.ONE_MINUS_DST_ALPHA;a.Jb=e.ONE;break;case 5:a.Pb=e.DST_ALPHA;a.Jb=e.ZERO;break;case 6:a.Pb=e.ZERO;a.Jb=e.SRC_ALPHA;break;case 7:a.Pb=e.ONE_MINUS_DST_ALPHA;a.Jb=e.ZERO;break;case 8:a.Pb=e.ZERO;a.Jb=e.ONE_MINUS_SRC_ALPHA;break;case 9:a.Pb=e.DST_ALPHA;a.Jb=e.ONE_MINUS_SRC_ALPHA;break;case 10:a.Pb=e.ONE_MINUS_DST_ALPHA,a.Jb=e.SRC_ALPHA}}; lb=function(a){return Math.round(1E6*a)/1E6};mb=function(a,c){return"string"!==typeof a||"string"!==typeof c||a.length!==c.length?!1:a===c?!0:a.toLowerCase()===c.toLowerCase()};pb=function(a){a=a.target;return!a||a===document||a===window||document&&document.body&&a===document.body||mb(a.tagName,"canvas")?!0:!1}})();var kc="undefined"!==typeof Float32Array?Float32Array:Array;function lc(h){var r=new kc(3);h&&(r[0]=h[0],r[1]=h[1],r[2]=h[2]);return r} function mc(h){var r=new kc(16);h&&(r[0]=h[0],r[1]=h[1],r[2]=h[2],r[3]=h[3],r[4]=h[4],r[5]=h[5],r[6]=h[6],r[7]=h[7],r[8]=h[8],r[9]=h[9],r[10]=h[10],r[11]=h[11],r[12]=h[12],r[13]=h[13],r[14]=h[14],r[15]=h[15]);return r}function nc(h,r){r[0]=h[0];r[1]=h[1];r[2]=h[2];r[3]=h[3];r[4]=h[4];r[5]=h[5];r[6]=h[6];r[7]=h[7];r[8]=h[8];r[9]=h[9];r[10]=h[10];r[11]=h[11];r[12]=h[12];r[13]=h[13];r[14]=h[14];r[15]=h[15]} function oc(h,r){var p=r[0],t=r[1];r=r[2];h[0]*=p;h[1]*=p;h[2]*=p;h[3]*=p;h[4]*=t;h[5]*=t;h[6]*=t;h[7]*=t;h[8]*=r;h[9]*=r;h[10]*=r;h[11]*=r} function pc(h,r,p,t){t||(t=mc());var v,n,g,b,d,l,c,f,a=h[0],k=h[1];h=h[2];n=p[0];g=p[1];v=p[2];p=r[1];l=r[2];a===r[0]&&k===p&&h===l?(h=t,h[0]=1,h[1]=0,h[2]=0,h[3]=0,h[4]=0,h[5]=1,h[6]=0,h[7]=0,h[8]=0,h[9]=0,h[10]=1,h[11]=0,h[12]=0,h[13]=0,h[14]=0,h[15]=1):(p=a-r[0],l=k-r[1],c=h-r[2],f=1/Math.sqrt(p*p+l*l+c*c),p*=f,l*=f,c*=f,r=g*c-v*l,v=v*p-n*c,n=n*l-g*p,(f=Math.sqrt(r*r+v*v+n*n))?(f=1/f,r*=f,v*=f,n*=f):n=v=r=0,g=l*n-c*v,b=c*r-p*n,d=p*v-l*r,(f=Math.sqrt(g*g+b*b+d*d))?(f=1/f,g*=f,b*=f,d*=f):d=b=g=0, t[0]=r,t[1]=g,t[2]=p,t[3]=0,t[4]=v,t[5]=b,t[6]=l,t[7]=0,t[8]=n,t[9]=d,t[10]=c,t[11]=0,t[12]=-(r*a+v*k+n*h),t[13]=-(g*a+b*k+d*h),t[14]=-(p*a+l*k+c*h),t[15]=1)} (function(){function h(b,d,l){this.Je=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.ya=!!l;this.Yj=this.Eh=!1;this.Ul=0;this.il=1;this.Xn=1E3;this.Uy=(this.Xn-this.il)/32768;this.Jl=lc([0,0,100]);this.kq=lc([0,0,0]);this.Vr=lc([0,1,0]);this.Li=lc([1,1,1]);this.fp=!0;this.ok=mc();this.zc=mc();this.Km=mc();this.Tl=mc();this.u=b;this.version=0===this.u.getParameter(this.u.VERSION).indexOf("WebGL 2")?2:1;this.Gp()}function r(b,d,l){this.u=b;this.pi= d;this.name=l;this.Nc=b.getAttribLocation(d,"aPos");this.Oe=b.getAttribLocation(d,"aTex");this.iq=b.getUniformLocation(d,"matP");this.kk=b.getUniformLocation(d,"matMV");this.vg=b.getUniformLocation(d,"opacity");this.Qm=b.getUniformLocation(d,"colorFill");this.jq=b.getUniformLocation(d,"samplerFront");this.Th=b.getUniformLocation(d,"samplerBack");this.Bf=b.getUniformLocation(d,"destStart");this.Af=b.getUniformLocation(d,"destEnd");this.Vh=b.getUniformLocation(d,"seconds");this.Sm=b.getUniformLocation(d, "pixelWidth");this.Rm=b.getUniformLocation(d,"pixelHeight");this.Sh=b.getUniformLocation(d,"layerScale");this.Rh=b.getUniformLocation(d,"layerAngle");this.Wh=b.getUniformLocation(d,"viewOrigin");this.Uh=b.getUniformLocation(d,"scrollPos");this.Qw=!!(this.Sm||this.Rm||this.Vh||this.Th||this.Bf||this.Af||this.Sh||this.Rh||this.Wh||this.Uh);this.sq=this.tq=-999;this.nk=1;this.oq=this.nq=0;this.qq=this.mq=this.lq=1;this.wq=this.vq=this.uq=this.yq=this.xq=this.pq=0;this.Jm=[];this.rq=mc();this.vg&&b.uniform1f(this.vg, 1);this.Qm&&b.uniform4f(this.Qm,1,1,1,1);this.jq&&b.uniform1i(this.jq,0);this.Th&&b.uniform1i(this.Th,1);this.Bf&&b.uniform2f(this.Bf,0,0);this.Af&&b.uniform2f(this.Af,1,1);this.Sh&&b.uniform1f(this.Sh,1);this.Rh&&b.uniform1f(this.Rh,0);this.Wh&&b.uniform2f(this.Wh,0,0);this.Uh&&b.uniform2f(this.Uh,0,0);this.Vh&&b.uniform1f(this.Vh,0);this.pf=!1}function p(b,d){return b[0]===d[0]&&b[1]===d[1]&&b[2]===d[2]&&b[3]===d[3]&&b[4]===d[4]&&b[5]===d[5]&&b[6]===d[6]&&b[7]===d[7]&&b[8]===d[8]&&b[9]===d[9]&& b[10]===d[10]&&b[11]===d[11]&&b[12]===d[12]&&b[13]===d[13]&&b[14]===d[14]&&b[15]===d[15]}function t(b,d){this.type=b;this.k=d;this.u=d.u;this.xd=this.Tb=this.Tq=0;this.T=this.Vc=null;this.Cr=[]}var v=mc();h.prototype.Gp=function(){var b=this.u,d;this.Yp=1;this.wf=this.vf=null;this.wj=1;b.clearColor(0,0,0,0);b.clear(b.COLOR_BUFFER_BIT);b.enable(b.BLEND);b.blendFunc(b.ONE,b.ONE_MINUS_SRC_ALPHA);b.disable(b.CULL_FACE);b.disable(b.STENCIL_TEST);b.disable(b.DITHER);this.ya?(b.enable(b.DEPTH_TEST),b.depthFunc(b.LEQUAL)): b.disable(b.DEPTH_TEST);this.$p=b.ONE;this.Wp=b.ONE_MINUS_SRC_ALPHA;this.fl=new Float32Array(8E3*(this.ya?3:2));this.Xk=new Float32Array(16E3);this.er=new Float32Array(32E3);this.hn=b.createBuffer();b.bindBuffer(b.ARRAY_BUFFER,this.hn);b.bufferData(b.ARRAY_BUFFER,this.er.byteLength,b.DYNAMIC_DRAW);this.Gi=Array(4);this.vi=Array(4);for(d=0;4>d;d++)this.Gi[d]=b.createBuffer(),b.bindBuffer(b.ARRAY_BUFFER,this.Gi[d]),b.bufferData(b.ARRAY_BUFFER,this.fl.byteLength,b.DYNAMIC_DRAW),this.vi[d]=b.createBuffer(), b.bindBuffer(b.ARRAY_BUFFER,this.vi[d]),b.bufferData(b.ARRAY_BUFFER,this.Xk.byteLength,b.DYNAMIC_DRAW);this.Pd=0;this.Tw=b.createBuffer();b.bindBuffer(b.ELEMENT_ARRAY_BUFFER,this.Tw);for(var l=new Uint16Array(12E3),c=d=0;12E3>d;)l[d++]=c,l[d++]=c+1,l[d++]=c+2,l[d++]=c,l[d++]=c+2,l[d++]=c+3,c+=4;b.bufferData(b.ELEMENT_ARRAY_BUFFER,l,b.STATIC_DRAW);this.jn=this.Pg=this.ne=0;this.La=[];d=this.ya?"attribute highp vec3 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, aPos.z, 1.0);\n\tvTex = aTex;\n}": "attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}";l=this.kh({src:"varying mediump vec2 vTex;\nuniform lowp float opacity;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, vTex);\n\tgl_FragColor *= opacity;\n}"},d,"");this.La.push(l);l=this.kh({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}","");this.La.push(l);l=this.kh({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},d,"");this.La.push(l);l=this.kh({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"}, d,"");this.La.push(l);for(var f in qc)qc.hasOwnProperty(f)&&this.La.push(this.kh(qc[f],d,f));b.activeTexture(b.TEXTURE0);b.bindTexture(b.TEXTURE_2D,null);this.te=[];this.Od=0;this.Mb=!1;this.bp=this.Oh=-1;this.Xf=null;this.dm=b.createFramebuffer();this.Aj=this.Gk=null;this.Qo=!1;this.ya&&(this.Aj=b.createRenderbuffer());this.Ve=lc([0,0,0]);this.zq=b.getParameter(b.ALIASED_POINT_SIZE_RANGE)[1];2048"===d.name&&b.vertexAttribPointer(d.Nc,4,b.FLOAT,!1,0,0));if(0"!==d.name&& b.vertexAttribPointer(d.Nc,this.ya?3:2,b.FLOAT,!1,0,0);b.bindBuffer(b.ARRAY_BUFFER,this.vi[this.Pd]);b.bufferSubData(b.ARRAY_BUFFER,0,this.Xk.subarray(0,this.Pg));d&&0<=d.Oe&&""!==d.name&&b.vertexAttribPointer(d.Oe,2,b.FLOAT,!1,0,0)}for(var l,b=0,d=this.Od;bl||0>c)){var f=this.mc();f.type=7;f.Tb=1;f.T||(f.T=mc());f.T[0]=b;f.T[1]=d;f.T[2]=l;f.T[3]=c;this.Mb=!1}};h.prototype.ur=function(b){if(this.ya&&(b=!!b,this.Eh!==b)){var d=this.mc();d.type=14;d.Tb=b?1:0;this.Mb=!1;this.Eh=b;this.Gk=null;this.Eh?this.ec(2): this.ec(0)}};h.prototype.tr=function(b){if(this.ya){var d=this.mc();d.type=13;d.Tb=b?1:0;this.Mb=!1}};h.prototype.rp=function(){nc(this.Km,v);this.Ed();this.od();var b=this.width/2,d=this.height/2;this.ji(-b,d,b,d,b,-d,-b,-d);nc(v,this.zc);this.od()};h.prototype.sr=function(b,d,l){this.ec(3);var c=this.mc();c.type=12;c.T||(c.T=mc());c.T[0]=b;c.T[1]=d;c.T[2]=l;c.T[3]=1;this.Mb=!1};h.prototype.yy=function(){this.ec(0)};h.prototype.hy=function(){this.ec(2)};h.prototype.Zx=function(){this.gf();this.u.flush()}; var n=[],g={};h.prototype.Pu=function(){A(n);g={}};h.prototype.yc=function(b,d,l,c,f){d=!!d;l=!!l;var a=b.src+","+d+","+l+(d?","+f:""),k=null;if("undefined"!==typeof b.src&&g.hasOwnProperty(a))return k=g[a],k.kj++,k;this.gf();var e=this.u,u=la(b.width)&&la(b.height),k=e.createTexture();e.bindTexture(e.TEXTURE_2D,k);e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var m=e.RGBA,q=e.RGBA,w=e.UNSIGNED_BYTE;if(c&&!this.Je)switch(c){case 1:q=m=e.RGB;break;case 2:w=e.UNSIGNED_SHORT_4_4_4_4;break;case 3:w= e.UNSIGNED_SHORT_5_5_5_1;break;case 4:q=m=e.RGB,w=e.UNSIGNED_SHORT_5_6_5}if(1===this.version&&!u&&d){c=document.createElement("canvas");c.width=ma(b.width);c.height=ma(b.height);var h=c.getContext("2d");"undefined"!==typeof h.imageSmoothingEnabled?h.imageSmoothingEnabled=l:(h.webkitImageSmoothingEnabled=l,h.mozImageSmoothingEnabled=l,h.msImageSmoothingEnabled=l);h.drawImage(b,0,0,b.width,b.height,0,0,c.width,c.height);e.texImage2D(e.TEXTURE_2D,0,m,q,w,c)}else e.texImage2D(e.TEXTURE_2D,0,m,q,w,b); d?"repeat-x"===f?(e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE)):("repeat-y"===f?e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE):e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.REPEAT)):(e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE));l?(e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER, e.LINEAR),(u||2<=this.version)&&this.fp?(e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR_MIPMAP_LINEAR),e.generateMipmap(e.TEXTURE_2D)):e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR)):(e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.NEAREST));e.bindTexture(e.TEXTURE_2D,null);this.vf=null;k.bd=b.width;k.ad=b.height;k.kj=1;k.Vo=a;n.push(k);return g[a]=k};h.prototype.Ic=function(b,d,l){var c;this.gf();var f=this.u; this.Je&&(c=!1);var a=f.createTexture();f.bindTexture(f.TEXTURE_2D,a);f.texImage2D(f.TEXTURE_2D,0,f.RGBA,b,d,0,f.RGBA,c?f.UNSIGNED_SHORT_4_4_4_4:f.UNSIGNED_BYTE,null);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_S,f.CLAMP_TO_EDGE);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_T,f.CLAMP_TO_EDGE);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MAG_FILTER,l?f.LINEAR:f.NEAREST);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,l?f.LINEAR:f.NEAREST);f.bindTexture(f.TEXTURE_2D,null);this.vf=null;a.bd=b;a.ad=d;n.push(a); return a};h.prototype.deleteTexture=function(b){b&&("undefined"!==typeof b.kj&&1=c?a[3]:256>=c?a[2]:512>=c?a[1]:a[0]}function p(){try{return!!window.indexedDB}catch(a){return!1}}function t(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function v(a,c,e,b){try{var k=indexedDB.open("_C2SaveStates");k.onupgradeneeded=t;k.onerror=b;k.onsuccess=function(k){k=k.target.result;k.onerror=b;k.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,data:c}).onsuccess=e}}catch(f){b(f)}}function n(a, c,e){try{var b=indexedDB.open("_C2SaveStates");b.onupgradeneeded=t;b.onerror=e;b.onsuccess=function(b){b=b.target.result;b.onerror=e;var k=b.transaction(["saves"]).objectStore("saves").get(a);k.onsuccess=function(){k.result?c(k.result.data):c(null)}}}catch(k){e(k)}}function g(){fa("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1f?(f*=c,5===d?(q=f*e/this.Wa,1q&&(q=1/Math.ceil(1/q)),f=this.Wa*q/e,q=this.Va*q/e,b=(a-f)/2,k=(c-q)/2,a=f,c=q):(b=(a-f)/2,a=f)):(q=a/f,5===d?(q=q*e/this.Va,1q&&(q=1/Math.ceil(1/q)),f=this.Wa*q/e,q=this.Va*q/e,b=(a-f)/2,k=(c-q)/2,a=f):k=(c-q)/2,c=q)):f&&0===d&&(b=Math.floor((a-this.Wa)/2),k=Math.floor((c-this.Va)/ 2),a=this.Wa,c=this.Va),2>d&&(this.gh=e),this.uj=Math.round(a),this.nh=Math.round(c),this.width=Math.round(a*e),this.height=Math.round(c*e),this.fa=!0,this.ds?(this.G=this.width,this.F=this.height,this.sc=!0):this.widthf&&(this.F=this.G/d)):3===d&&(f=this.Wa/this.Va,d=this.tg/this.sg,d>f?this.G=this.F*d:d< f&&(this.F=this.G/d))),this.nj&&!this.pa&&(jQuery(this.nj).css({width:Math.round(a)+"px",height:Math.round(c)+"px","margin-left":Math.floor(b)+"px","margin-top":Math.floor(k)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(a)+"px",height:Math.round(c)+"px"})),this.canvas&&(this.canvas.width=Math.round(a*e),this.canvas.height=Math.round(c*e),this.gd?(this.canvas.style.left=Math.floor(b)+"px",this.canvas.style.top=Math.floor(k)+"px",this.canvas.style.width=Math.round(a)+ "px",this.canvas.style.height=Math.round(c)+"px"):this.tf&&!this.pa&&(this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(c)+"px")),this.Db&&(this.Db.width=Math.round(a*e),this.Db.height=Math.round(c*e),this.Db.style.width=this.uj+"px",this.Db.style.height=this.nh+"px"),this.k&&this.k.ge(Math.round(a*e),Math.round(c*e)),this.pb&&this.Ba&&(this.Ba.width=Math.round(a),this.Ba.height=Math.round(c)),this.Ba&&this.Nk(this.Ba,this.qa),this.Sr(),this.Up&&!this.vc&&window.scrollTo(0, 0)}};h.prototype.Sr=function(){if(this.Iu&&0!==this.en){var a="portrait";2===this.en&&(a="landscape");try{screen.orientation&&screen.orientation.lock?screen.orientation.lock(a).catch(function(){}):screen.lockOrientation?screen.lockOrientation(a):screen.webkitLockOrientation?screen.webkitLockOrientation(a):screen.mozLockOrientation?screen.mozLockOrientation(a):screen.msLockOrientation&&screen.msLockOrientation(a)}catch(c){console&&console.warn&&console.warn("Failed to lock orientation: ",c)}}};h.prototype.Bx= function(){this.k.Pu();this.Im=!0;var a,c,e;a=0;for(c=this.p.length;af;)f++,c=a.shift(),this.wr(c[0],c[1])};h.prototype.gl= function(a,e){a.cocoonLazyLoad=!0;a.onerror=function(e){c=a.Uo=!0;console&&console.error&&console.error("Error loading image '"+a.src+"': ",e)};this.gd?a.src=e:a.src||("undefined"!==typeof XAPKReader?XAPKReader.get(e,function(c){a.src=c},function(b){c=a.Uo=!0;console&&console.error&&console.error("Error extracting image '"+e+"' from expansion file: ",b)}):(a.crossOrigin="anonymous",this.by(a,e)));this.Wg.push(a)};h.prototype.gw=function(a){var c,e;c=0;for(e=this.Wg.length;c=m)m=5E4;a+=m;d.src&&(d.complete||d.loaded)&&!d.Uo?c+=m:f=!1}f&&this.Xx&&this.Rf&&(e||(this.Rf.By(),e=!0),b=this.Rf.xw(),c+=b,bthis.Ne&&(this.Mc||500<=b&&this.dq!=this.$b)){a.clearRect(0,0,f,q);var b=f/2,q=q/2,f=0===this.Ne&&this.Me.mk.complete,m=40*e,w=0,l=80*e,h;if(f){var g=this.Me.mk,l=g.width*e;h=g.height*e;m=l/2;w=h/2;a.drawImage(g,ta(b-m),ta(q-w),l,h)}1>=this.Ne?(b=ta(b-m)+.5,q=ta(q+(w+(f? 12*e:0)))+.5,a.fillStyle=c?"red":"DodgerBlue",a.fillRect(b,q,Math.floor(l*this.$b),6*e),a.strokeStyle="black",a.strokeRect(b,q,l,6*e),a.strokeStyle="white",a.strokeRect(b-1*e,q-1*e,l+2*e,8*e)):2===this.Ne&&(a.font=this.gd?"12pt ArialMT":"12pt Arial",a.fillStyle=c?"#f00":"#999",a.Kz="middle",e=Math.round(100*this.$b)+"%",f=a.measureText?a.measureText(e):null,a.fillText(e,b-(f?f.width:0)/2,q));this.dq=this.$b}else if(4===this.Ne){this.vv(a);d?d(function(){k.go()}):setTimeout(function(){k.go()},16); return}}setTimeout(function(){k.go()},this.Mc?10:100)}}};var m=-1,q="undefined"===typeof cr_is_preview?200:0,w=!0,U=!1,E=0,Ea=0,oa="undefined"===typeof cr_is_preview?3E3:0,K=null,L=null,H=0;h.prototype.vv=function(a){if(!u){for(var e=Math.ceil(this.width),b=Math.ceil(this.height),k=this.Me.mk,f=this.Me.Wx,d=this.Me.Sy,l=0;4>l;++l)if(!k[l].complete||!f[l].complete||!d[l].complete)return;0===H&&(m=Date.now());var l=Date.now(),h=!1,g=a,n,t;w||U?(a.clearRect(0,0,e,b),K&&K.width===e&&K.height===b||(K= document.createElement("canvas"),K.width=e,K.height=b,L=K.getContext("2d")),g=L,h=!0,w&&1===H&&(m=Date.now())):a.globalAlpha=1;g.fillStyle="#333333";g.fillRect(0,0,e,b);256=oa&&!U&&1<=this.$b&&(U=!0,Ea=l);if(U&&l-Ea>=300+q||"undefined"!==typeof cr_is_preview&&1<= this.$b&&500>Date.now()-m)u=!0,U=w=!1,this.Me=L=K=null;++H}};h.prototype.Ow=function(){this.Db&&(this.canvas.parentNode.removeChild(this.Db),this.Db=this.gn=null);this.Sk=Date.now();this.yf=Za();var a,c,e;if(this.Un)for(a=0,c=this.p.length;aa||2===this.Yb&&cc&&(c=0),this.df=c/=1E3,.51/this.Eq&&(this.df=1/this.Eq));this.dk=a;this.De=this.df*this.Jf;this.Bb.add(this.De);this.oe.add(c);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.gg)&& !this.vc;2<=this.Yb||a&&0c||2===b&&ea++;)this.ep(this.ih);a=0;for(c=this.Ud.length;ac.yj.length&&c.yj.push(a)};h.prototype.Rl=function(a,c,e,b){if(a.B){var k=ta(Math.random()*a.yg.length);return this.Rl(a.yg[k],c,e,b)}return a.Jc?this.Ae(a.Jc,c,!1,e,b,!1):null};var Q=[];h.prototype.Ae=function(a,c,e,b,k,f){var q,d,m,u;if(!a)return null;var w=this.p[a[1]],l=w.X.Le;if(this.Mh&&l&&!w.Fm||l&&!this.k&&11===a[0][11])return null;var h=c;l||(c=null);var g;w.yj.length?(g=w.yj.pop(),g.Bc=!0,w.X.S.call(g,w)):(g=new w.X.S(w),g.Bc=!1);!e||f||this.be.hasOwnProperty(a[2].toString())? g.uid=this.bi++:g.uid=a[2];this.be[g.uid.toString()]=g;g.ir=this.Hq++;g.rf=w.d.length;q=0;for(d=this.cd.length;qa&&(a=0);a>=this.ba.P.length&& (a=this.ba.P.length-1);return this.ba.P[a]};h.prototype.wp=function(a){return ja(a)?this.ag(a):this.Sj(a.toString())};h.prototype.Nl=function(a){var c,e;c=0;for(e=a.length;c=this.Tm.length&&this.Tm.push([])};h.prototype.Tx=function(){this.lk--};h.prototype.tp=function(){return this.Tm[this.lk]};h.prototype.Ek=function(a){this.Dj++;this.Dj>=this.am.length&&this.am.push(new Wb);var c=this.Ea();c.reset(a);return c};h.prototype.zk=function(){this.Dj--};h.prototype.Ea=function(){return this.am[this.Dj]};h.prototype.pn=function(a){this.Zh++; this.Zh>=this.Yh.length&&this.Yh.push(aa({name:a,index:0,ta:!1}));var c=this.up();c.name=a;c.index=0;c.ta=!1;return c};h.prototype.ln=function(){this.Zh--};h.prototype.up=function(){return this.Yh[this.Zh]};h.prototype.vp=function(a,c){for(var e,b,k,f,q,d;c;){e=0;for(b=c.Uc.length;ef||f>=a.hb.length||(q=k[b],null===q&&(q=NaN),a.hb[f]=q));if(m.Le){f=c.w;a.j.Y!==f.l&&(k=a.j,a.j=this.ba.Tj(f.l),a.j?(k.Gg(a,!0),a.j.fh(a,!0),a.za(),a.j.mi(0)):(a.j=k,e||this.Xe(a)));a.x=f.x;a.y=f.y;a.width=f.w;a.height=f.h;a.pd=f.zi;a.m=f.hasOwnProperty("a")?f.a:0;a.opacity=f.hasOwnProperty("o")?f.o:1;a.Nb=f.hasOwnProperty("hX")?f.hX:.5;a.Ob=f.hasOwnProperty("hY")? f.hY:.5;a.visible=f.hasOwnProperty("v")?f.v:!0;a.$e=f.hasOwnProperty("ce")?f.ce:!0;a.ai=f.hasOwnProperty("mts")?f.mts:-1;a.Hb=f.hasOwnProperty("bm")?f.bm:0;a.jh=jb(a.Hb);this.u&&kb(a,a.Hb,this.u);a.za();if(f.hasOwnProperty("fx"))for(e=0,k=f.fx.length;eq||(a.re[q]=f.fx[e].active,a.Ja[q]=f.fx[e].params);a.nd()}if(d=c.behs)for(b in d)d.hasOwnProperty(b)&&(e=this.mw(a,parseInt(b,10)),0>e||a.L[e].Qb(d[b]));c.data&&a.Qb(c.data)};h.prototype.jp=function(a,c,e){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+ "www/"+a,function(a){a.file(c,e)},e)};h.prototype.lp=function(a,c,e){this.jp(a,function(a){var b=new FileReader;b.onload=function(a){c(a.target.result)};b.onerror=e;b.readAsText(a)},e)};var F=[],R=0;h.prototype.Vm=function(){if(F.length&&!(8<=R)){R++;var a=F.shift();this.$u(a.filename,a.Dy,a.Bv)}};h.prototype.kp=function(a,c,e){var b=this;F.push({filename:a,Dy:function(a){R--;b.Vm();c(a)},Bv:function(a){R--;b.Vm();e(a)}});this.Vm()};h.prototype.$u=function(a,c,e){this.jp(a,function(a){var e=new FileReader; e.onload=function(a){c(a.target.result)};e.readAsArrayBuffer(a)},e)};h.prototype.fw=function(a,c,e){var b="",k=a.toLowerCase(),f=k.substr(k.length-4),k=k.substr(k.length-5);".mp4"===f?b="video/mp4":".webm"===k?b="video/webm":".m4a"===f?b="audio/mp4":".mp3"===f&&(b="audio/mpeg");this.kp(a,function(a){a=URL.createObjectURL(new Blob([a],{type:b}));c(a)},e)};h.prototype.Lp=function(a){return/^(?:[a-z]+:)?\/\//.test(a)||"data:"===a.substr(0,5)||"blob:"===a.substr(0,5)};h.prototype.wr=function(a,c){this.Jh&& !this.Lp(c)?this.fw(c,function(c){a.src=c},function(a){alert("Failed to load image: "+a)}):a.src=c};h.prototype.Nk=function(a,c){"undefined"!==typeof a.imageSmoothingEnabled?a.imageSmoothingEnabled=c:(a.webkitImageSmoothingEnabled=c,a.mozImageSmoothingEnabled=c,a.msImageSmoothingEnabled=c)};Yb=function(a){return new h(document.getElementById(a))};Zb=function(a,c){return new h({dc:!0,width:a,height:c})};window.cr_createRuntime=Yb;window.cr_createDCRuntime=Zb;window.createCocoonJSRuntime=function(){window.c2cocoonjs= !0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.El=!0;document.body.appendChild(a);a=new h(a);window.c2runtime=a;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a};window.createEjectaRuntime=function(){var a=new h(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight); return a}})();window.cr_getC2Runtime=function(){var h=document.getElementById("c2canvas");return h?h.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(h,r){var p=window.cr_getC2Runtime();p&&p.Yu(h,r)};window.cr_sizeCanvas=function(h,r){if(0!==h&&0!==r){var p=window.cr_getC2Runtime();p&&p.setSize(h,r)}};window.cr_setSuspended=function(h){var r=window.cr_getC2Runtime();r&&r.setSuspended(h)}; (function(){function h(c,b){this.b=c;this.hf=null;this.scrollX=this.b.Wa/2;this.scrollY=this.b.Va/2;this.scale=1;this.m=0;this.$f=!0;this.name=b[0];this.Nx=b[1];this.Mx=b[2];this.width=b[1];this.height=b[2];this.Ur=b[3];this.Dr=b[4];this.Y=b[5];var a=b[6],k,e;this.P=[];this.Bh=[];k=0;for(e=a.length;k=this.P.length&&(q=this.P.length-1);d.j=this.P[q];-1===d.j.d.indexOf(d)&&d.j.d.push(d);d.j.Lf=!0}if(!g)for(c=0,a=this.P.length;ca?d.siblings.push(m.d[a]):m.Jc&&(e=this.b.Ae(m.Jc,d.j,!0,d.x,d.y,!0),this.b.Gb(),m.cl(),d.siblings.push(e),n.push(e)));c=0;for(a=this.Ie.length;c< a;c++)d=this.Ie[c],b=this.b.p[d[1]],b.Ab||this.b.Ae(this.Ie[c],null,!0);this.b.ih=null;this.b.Gb();if(this.b.Ba&&!this.b.pa)for(c=0,a=this.b.p.length;cthis.width-b&&(c=this.width-b);cthis.height-b&&(c=this.height-b);cy&&(y=0);0>C&&(C=0);S>M&&(S=M);P>F&&(P=F);0>N&&(N=0);0>I&&(I=0);Aa>M&&(Aa=M);ia>F&&(ia=F);B.left=y/M;B.top=1-C/F;B.right=S/M;B.bottom=1-P/F}else B.left=D.left=0,B.top=D.top=0,B.right=D.right=1,B.bottom=D.bottom=1;ka=a&&(c.hi(e[0].Za)||0!==r||0!==ka||1!==a.opacity|| a.type.X.Fq)||b&&!a&&1!==b.opacity;c.rr();if(ka){h[v]||(h[v]=c.Ic(M,F,this.b.qa));if(h[v].bd!==M||h[v].ad!==F)c.deleteTexture(h[v]),h[v]=c.Ic(M,F,this.b.qa);c.ec(0);c.Tc(h[v]);J=ia-I;c.clearRect(N,F-I-J,Aa-N,J);a?a.Kb(c):(c.Rb(this.b.jb),c.Se(b.opacity),c.Ed(),c.translate(-R,-x),c.od(),c.Sc(y,P,S,P,S,C,y,C,B));D.left=D.top=0;D.right=D.bottom=1;a&&(p=B.top,B.top=B.bottom,B.bottom=p);v=1;Q=0}c.Se(1);r=e.length-1;var Ga=c.nn(e[r].Za)||!b&&!a&&!this.b.sc;n=p=0;for(t=e.length;na||(b&&this.Ec&&c.ac&&c.ac.right>=c.ac.left&&(c.Aa(),this.Eb.update(c,c.ac,null),c.ac.set(0,0,-1,-1)),a===this.d.length-1?this.d.pop():(za(this.d,a),this.mi(a)),this.ld=!0)};p.prototype.fh=function(c, b){c.pd=this.d.length;this.d.push(c);b&&this.Ec&&c.ac&&c.za();this.ld=!0};p.prototype.Yx=function(c){this.d.unshift(c);this.mi(0)};p.prototype.zx=function(c,b,a){var k=c.wd();b=b.wd();za(this.d,k);kthis.wa||a.top>this.ua||(b.globalCompositeOperation=c.jh,c.ed(b))}};p.prototype.dl=function(){this.Sd=!0;var c=this.ub(0,0,!0,!0),b=this.ub(0,0,!1,!0);this.Sd=!1;this.b.Ac&&(c=Math.round(c),b=Math.round(b)); this.Hk(c,b,null)};p.prototype.Hk=function(c,b,a){var k=this.Lc();this.ma=c;this.na=b;this.wa=c+1/k*this.b.G;this.ua=b+1/k*this.b.F;this.ma>this.wa&&(c=this.ma,this.ma=this.wa,this.wa=c);this.na>this.ua&&(c=this.na,this.na=this.ua,this.ua=c);c=this.gb();0!==c&&(a&&(a.translate(this.b.G/2,this.b.F/2),a.rotate(-c),a.translate(this.b.G/-2,this.b.F/-2)),this.le.set(this.ma,this.na,this.wa,this.ua),this.le.offset((this.ma+this.wa)/-2,(this.na+this.ua)/-2),this.Or.Br(this.le,c),this.Or.To(this.le),this.le.offset((this.ma+ this.wa)/2,(this.na+this.ua)/2),this.ma=this.le.left,this.na=this.le.top,this.wa=this.le.right,this.ua=this.le.bottom)};p.prototype.Ce=function(c){if(this.Dd=this.Lj){this.b.jb||(this.b.jb=c.Ic(this.b.G,this.b.F,this.b.qa));if(this.b.jb.bd!==this.b.G||this.b.jb.ad!==this.b.F)c.deleteTexture(this.b.jb),this.b.jb=c.Ic(this.b.G,this.b.F,this.b.qa);c.Tc(this.b.jb)}this.Sd=!0;var b=this.ub(0,0,!0,!0),a=this.ub(0,0,!1,!0);this.Sd=!1;this.b.Ac&&(b=Math.round(b),a=Math.round(a));this.Hk(b,a,null);b=this.Lc(); c.Ed();c.scale(b,b);c.xn(-this.gb());c.translate((this.ma+this.wa)/-2,(this.na+this.ua)/-2);c.od();this.Ec?(this.wb.left=this.Eb.Ub(this.ma),this.wb.top=this.Eb.Vb(this.na),this.wb.right=this.Eb.Ub(this.wa),this.wb.bottom=this.Eb.Vb(this.ua),this.ld||!this.wb.oh(this.ug)?(v(this.$d),b=this.om(),this.ld=!1,this.ug.Vf(this.wb)):b=this.$d):b=this.d;for(var k,e=null,a=b.length-1;0<=a;--a)k=b[a],k!==e&&(this.tv(b[a],c),e=k);this.Ec&&(this.$d=b);this.Dc||(this.Ol=this.b.ef++,c.Ok(this.Ol),c.sr(1,1,1),c.rp(), c.hy())};p.prototype.Kb=function(b){var d=0,a=0;if(this.Dd=this.Lj||1!==this.opacity||0this.wa||a.top>this.ua||(d.Ok(b.ef),b.as?this.uv(b,d):(d.ec(0),d.Re(b.Pb,b.Jb),b.Kb(d)))}};p.prototype.tv=function(b,d){if(b.visible&&0!==b.width&&0!==b.height){b.Aa();var a=b.Qa;a.rightthis.wa||a.top>this.ua||(b.ef=this.b.ef++, 0===b.Hb&&1===b.opacity&&b.ie&&b.Ce&&(d.Ok(b.ef),b.Ce(d)))}};p.prototype.uv=function(b,d){var a=b.ea[0].Za,k=b.ea[0].index,e=this.Lc();if(1!==b.ea.length||d.nn(a)||d.$x(a)||(b.m||b.j.gb())&&d.hi(a)||1!==b.opacity||b.type.X.Fq)this.rb.tn(d,this,b,this.Dd?this.b.jb:this.rb.sh()),d.Ed(),d.scale(e,e),d.xn(-this.gb()),d.translate((this.ma+this.wa)/-2,(this.na+this.ua)/-2),d.od();else{d.ec(a);d.Re(b.Pb,b.Jb);d.Dk(a)&&(this.b.fa=!0);var g=0,m=0,q=0,w=0;d.hi(a)&&(w=b.Qa,g=this.ib(w.left,w.top,!0,!0),m=this.ib(w.left, w.top,!1,!0),q=this.ib(w.right,w.bottom,!0,!0),w=this.ib(w.right,w.bottom,!1,!0),g=g/windowWidth,m=1-m/windowHeight,q=q/windowWidth,w=1-w/windowHeight);var l;b.Sa&&b.Sa.q?(l=b.Sa.q,a=1/l.width,l=1/l.height):(a=1/b.width,l=1/b.height);d.Jg(this.Dd?this.b.jb:this.rb.sh(),a,l,g,m,q,w,e,this.gb(),this.ma,this.na,(this.ma+this.wa)/2,(this.na+this.ua)/2,this.b.Bb.Z,b.Ja[k]);b.Kb(d)}};p.prototype.ub=function(b,d,a,k){var e=this.b.devicePixelRatio;this.b.tf&&(b*=e,d*=e);var e=this.b.$q,g=this.b.br,e=(this.rb.scrollX- e)*this.Pc+e,g=(this.rb.scrollY-g)*this.Qc+g,m=e,q=g,w=1/this.Lc(!k);k?(m-=this.b.G*w/2,q-=this.b.F*w/2):(m-=this.b.width*w/2,q-=this.b.height*w/2);m+=b*w;q+=d*w;d=this.gb();0!==d&&(m-=e,q-=g,b=Math.cos(d),d=Math.sin(d),k=m*b-q*d,q=q*b+m*d,m=k+e,q+=g);return a?m:q};p.prototype.ib=function(b,d,a,k){var e=this.b.$q,g=this.b.br,m=(this.rb.scrollX-e)*this.Pc+e,q=(this.rb.scrollY-g)*this.Qc+g,g=m,e=q,w=this.gb();if(0!==w){b-=m;d-=q;var l=Math.cos(-w),w=Math.sin(-w),h=b*l-d*w;d=d*l+b*w;b=h+m;d+=q}m=1/this.Lc(!k); k?(g-=this.b.G*m/2,e-=this.b.F*m/2):(g-=this.b.width*m/2,e-=this.b.height*m/2);g=(b-g)/m;e=(d-e)/m;b=this.b.devicePixelRatio;this.b.tf&&!k&&(g/=b,e/=b);return a?g:e};p.prototype.Fb=function(){var b,d,a,k={s:this.scale,a:this.m,vl:this.ma,vt:this.na,vr:this.wa,vb:this.ua,v:this.visible,bc:this.Zc,t:this.Dc,px:this.Pc,py:this.Qc,o:this.opacity,zr:this.qd,fx:[],cg:this.mh,instances:[]};b=0;for(d=this.M.length;ba[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2=e.length&&(e.length=a.length+1);e[a.length]||(e[a.length]=[]);d=e[a.length];b=0;for(c=d.length;b=b.length&&(b.length=this.Cf+1),b[this.Cf]=a):this.data=a};f.prototype.of=function(){var a=this.b.tp();return!this.parent||this.Lh||!a||this.ak?this.data:this.Cf>=a.length||"undefined"===typeof a[this.Cf]?this.xm:a[this.Cf]};f.prototype.Ya=function(){!this.parent||this.Lh||this.ak||this.he(this.xm)};Xb=f;a.prototype.toString=function(){return"include:"+this.Ah.toString()}; a.prototype.Pa=function(){this.Ah=this.b.cm[this.Sw];this.sheet.Fp.add(this);this.V=p(this.V);for(var a=this.parent;a;)a.group&&a.sj.push(this),a=a.parent;this.Wr()};a.prototype.Ya=function(){this.parent&&this.b.ii(this.b.p);this.Ah.um||this.Ah.Ya(!0);this.parent&&this.b.jd(this.b.p)};a.prototype.Wr=function(){for(var a=this.parent;a;){if(a.group&&!a.dg){this.nc=!1;return}a=a.parent}this.nc=!0};gc=a;k.prototype.reset=function(a){this.Ia=a;this.Wb=this.Ra=0;A(this.Kr);this.$l=this.xf=!1};k.prototype.Em= function(){return this.Ia.Fn?!0:this.Ra=this.type&&(this.first=new ec(g, b[1]),this.second=new ec(g,b[2]));if(d){var l,c;l=0;for(c=d.length;l=b|| a<=-b)a%=b;0>a&&(a+=b);f.apply(e[a],d)};h.prototype.Iv=function(g){var b=this.ae,d=this.Ka,l=this.O,c=this.fd,f=this.$c,a=this.zb,k=this.Oc.je,e=b.N(),u=e.Zb();if(!u.length)if(e.I.length)u=e.I;else{this.Ig?g.la(""):g.H(0);return}d[0]=g;g.Df=b;g=r();p(l,d,g);c&&(c.get(g),g.qb()&&(k=g.data,u=b.d));--n;l=u.length;if(k>=l||k<=-l)k%=l;0>k&&(k+=l);k=u[k];u=0;b.B&&(u=k.type.Zf[b.Vd]);a.apply(k.L[f+u],d)};h.prototype.Qv=function(g){var b=this.fd,d=this.ae,l=this.bs,c=this.Oc.je,f=d.N(),a=f.Zb();if(!a.length)if(f.I.length)a= f.I;else{this.Ig?g.la(""):g.H(0);return}if(b){f=r();b.get(f);if(f.qb()){c=f.data;a=d.d;0!==a.length&&(c%=a.length,0>c&&(c+=a.length));c=d.mm(c);d=c.hb[l];z(d)?g.la(d):g.n(d);--n;return}--n}b=a.length;if(c>=b||c<=-b)c%=b;0>c&&(c+=b);c=a[c];a=0;d.B&&(a=c.type.Hj[d.Vd]);d=c.hb[l+a];z(d)?g.la(d):g.n(d)};h.prototype.Rv=function(g){g.type=hc.Nf;g.data=this.value};h.prototype.Nv=function(g){g.type=hc.Mf;g.data=this.value};h.prototype.$v=function(g){g.type=hc.String;g.data=this.value};h.prototype.dw=function(g){this.first.get(g); g.qb()&&(g.data=-g.data)};h.prototype.Cv=function(g){this.first.get(g);var b=r();this.second.get(b);g.qb()&&b.qb()&&(g.data+=b.data,b.kg()&&g.wg());--n};h.prototype.aw=function(g){this.first.get(g);var b=r();this.second.get(b);g.qb()&&b.qb()&&(g.data-=b.data,b.kg()&&g.wg());--n};h.prototype.Vv=function(g){this.first.get(g);var b=r();this.second.get(b);g.qb()&&b.qb()&&(g.data*=b.data,b.kg()&&g.wg());--n};h.prototype.Kv=function(g){this.first.get(g);var b=r();this.second.get(b);g.qb()&&b.qb()&&(g.data/= b.data,g.wg());--n};h.prototype.Uv=function(g){this.first.get(g);var b=r();this.second.get(b);g.qb()&&b.qb()&&(g.data%=b.data,b.kg()&&g.wg());--n};h.prototype.Zv=function(g){this.first.get(g);var b=r();this.second.get(b);g.qb()&&b.qb()&&(g.data=Math.pow(g.data,b.data),b.kg()&&g.wg());--n};h.prototype.Dv=function(g){this.first.get(g);var b=r();this.second.get(b);b.ng()||g.ng()?this.Fv(g,b):this.Ev(g,b);--n};h.prototype.Fv=function(g,b){g.ng()&&b.ng()?this.Hv(g,b):this.Gv(g,b)};h.prototype.Hv=function(g, b){g.data+=b.data};h.prototype.Gv=function(g,b){g.ng()?g.data+=(Math.round(1E10*b.data)/1E10).toString():g.la(g.data.toString()+b.data)};h.prototype.Ev=function(g,b){g.H(g.data&&b.data?1:0)};h.prototype.Yv=function(g){this.first.get(g);var b=r();this.second.get(b);g.qb()&&b.qb()&&(g.data||b.data?g.H(1):g.H(0));--n};h.prototype.Jv=function(g){this.first.get(g);g.data?this.second.get(g):this.Zk.get(g)};h.prototype.Lv=function(g){this.first.get(g);var b=r();this.second.get(b);g.H(g.data===b.data?1:0); --n};h.prototype.Wv=function(g){this.first.get(g);var b=r();this.second.get(b);g.H(g.data!==b.data?1:0);--n};h.prototype.Sv=function(g){this.first.get(g);var b=r();this.second.get(b);g.H(g.datab.data?1:0);--n};h.prototype.Pv=function(g){this.first.get(g);var b=r();this.second.get(b);g.H(g.data>= b.data?1:0);--n};h.prototype.Mv=function(g){var b=this.jf.of();ja(b)?g.n(b):g.la(b)};ec=h;t.prototype.kg=function(){return this.type===hc.Mf};t.prototype.qb=function(){return this.type===hc.Nf||this.type===hc.Mf};t.prototype.ng=function(){return this.type===hc.String};t.prototype.wg=function(){this.kg()||(this.ng()&&(this.data=parseFloat(this.data)),this.type=hc.Mf)};t.prototype.H=function(g){this.type=hc.Nf;this.data=Math.floor(g)};t.prototype.n=function(g){this.type=hc.Mf;this.data=g};t.prototype.la= function(g){this.type=hc.String;this.data=g};t.prototype.Kg=function(g){ja(g)?(this.type=hc.Mf,this.data=g):z(g)?(this.type=hc.String,this.data=g.toString()):(this.type=hc.Nf,this.data=0)};dc=t;hc={Nf:0,Mf:1,String:2}})();function T(h){this.b=h;this.fc=[]} T.prototype.Fb=function(){var h={},r,p,t,v,n,g,b,d;h.waits=[];var l=h.waits,c;r=0;for(p=this.fc.length;r=c&&!a.ta;--b)this.b.Qe(m.V),a.index=b,m.ee(),this.b.jd(m.V);else for(;b>=c&&!a.ta;--b)a.index=b,m.ee();else if(d)for(;b<=c&&!a.ta;++b)this.b.Qe(m.V),a.index=b,m.ee(),this.b.jd(m.V);else for(;b<=c&&!a.ta;++b)a.index=b,m.ee();this.b.ln();return!1};var v=[],n=-1;h.prototype.Gs=function(a){var b=a.N();n++;v.length===n&&v.push([]);var c=v[n];Da(c,b.Zb());var d=this.b.Ea(),m=d.Ia,f=d.Em(),d=this.b.pn(),g,l,h,t,r,p,L=a.Ab;if(f)for(f=0,g=c.length;fb||b>=d.length)return!1;c.Fg(d[b]);a.Gc();return!0};h.prototype.ws=function(a,b,c){return ic(a.of(),b,c)};h.prototype.Qs=function(a){return(a=this.b.wh[a.toLowerCase()])&&a.dg};h.prototype.Ws=function(){return"undefined"!==typeof cr_is_preview};h.prototype.Gt= function(a){if(!a||!a.d.length)return!1;a.N().R=!0;a.Gc();return!0};h.prototype.Ss=function(){return this.b.sf};h.prototype.ho=function(){var a=this.b.Ea();return a.$l?!1:!a.xf};h.prototype.uo=function(){return!0};h.prototype.jt=function(){return!0};h.prototype.Cs=function(){return!!this.b.k};h.prototype.ql=function(){return!0};h.prototype.zo=function(){return!0};h.prototype.ut=function(){return!0};h.prototype.Vi=function(){return!0};var g=null,b="",d="";h.prototype.Qt=function(a,c,e){g&&c===b&&e=== d||(g=new RegExp(c,e),b=c,d=e);g.lastIndex=0;return g.test(a)};var l=[];h.prototype.Jt=function(a,b,c){if(!a)return!1;var d=a.N(),m=d.Zb(),f=this.b.Ea().Ia.kc,g=this.b.Qj(),h,n;d.R?(Da(l,m),A(d.I),d.R=!1,A(d.d)):f?(Da(l,d.I),A(d.I)):(Da(l,m),A(d.d));m=0;for(f=l.length;ma&&(a=0);this.b.Jf=a};var c=[],f=[];r.prototype.vu=function(a){if(!(0>a)){var b,e,d,m=this.b.Ea(),g;c.length?g=c.pop():g={Sb:{},V:[]};g.Xl=!1;g.time=this.b.Bb.Z+a;g.Gr="";g.En=!1;g.Yf=m.Ia;g.Wb=m.Wb+1;a=0;for(b=this.b.p.length;am&&(b=m);a.n(b)};p.prototype.De=function(a){a.n(this.b.De)};p.prototype.Jf=function(a){a.n(this.b.Jf)};p.prototype.time=function(a){a.n(this.b.Bb.Z)};p.prototype.Rg= function(a){a.H(this.b.Rg)};p.prototype.rk=function(a){a.H(this.b.rk)};p.prototype.gm=function(a){a.H(this.b.gm)};p.prototype.ux=function(a,b){var c,d;if(this.b.Yh.length)if(b){for(d=this.b.Zh;0<=d;--d)if(c=this.b.Yh[d],c.name===b){a.H(c.index);return}a.H(0)}else c=this.b.up(),a.H(c?c.index:-1);else a.H(0)};p.prototype.Xu=function(a,b,c,d,m){a.n(Va(b,c,d,m))};p.prototype.m=function(a,b,c,d,m){a.n(Ka(Pa(b,c,d,m)))};p.prototype.Ax=function(a){a.la("\n")};p.prototype.Oy=function(a,b){a.la(z(b)?b.toUpperCase(): "")};p.prototype.ox=function(a){a.H(this.b.ba.width)};p.prototype.nx=function(a){a.H(this.b.ba.height)};p.prototype.left=function(a,b,c){a.la(z(b)?b.substr(0,c):"")};p.prototype.right=function(a,b,c){a.la(z(b)?b.substr(b.length-c):"")};p.prototype.yx=function(a,b,c,d){a.la(z(b)?b.substr(c,d):"")};p.prototype.Jy=function(a,b,c,d){z(b)&&z(d)?(b=b.split(d),c=ta(c),0>c||c>=b.length?a.la(""):a.la(b[c])):a.la("")};p.prototype.Ky=function(a,b,c){z(b)&&b.length?a.H(b.split(c).length):a.H(0)};p.prototype.replace= function(a,b,c,d){z(b)&&z(c)&&z(d)?a.la(b.replace(new RegExp(fb(c),"gi"),d)):a.la(z(b)?b:"")};p.prototype.trim=function(a,b){a.la(z(b)?b.trim():"")};p.prototype.Rx=function(a){a.n(sa)};p.prototype.Yo=function(a){var b=ta(Math.random()*(arguments.length-1));a.Kg(arguments[b+1])};p.prototype.Vy=function(a,b,c){var d=0>b?"-":"";0>b&&(b=-b);c=c-b.toString().length;for(var m=0;mthis.b.Bb.Z)continue;l.Ia=d.Yf;l.Wb=d.Wb;l.Ra=0;for(b in d.Sb)d.Sb.hasOwnProperty(b)&& (m=this.b.p[parseInt(b,10)].N(),g=d.Sb[b],m.R=g.Jk,Da(m.d,g.Xd),m=g,A(m.Xd),f.push(m));d.Yf.iy();this.b.Nl(d.V);d.Xl=!0}b=a=0;for(e=this.fc.length;aa.wa||b.top>a.ua)},c.ko=function(){this.Aa();var a=this.Qa,b=this.b.ba;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},c.ez=function(a,b,c){var d=this.N(),f= d.Zb();if(!f.length)return!1;var g=f[0],l=g,h=Va(g.x,g.y,b,c),n,t,r;n=1;for(t=f.length;nh)h=r,l=g;d.Fg(l);return!0},f.Pf=function(a){this.x!==a&&(this.x=a,this.za())},f.$i=function(a){this.y!==a&&(this.y=a,this.za())},f.fu=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.za()},f.Eo=function(a,b){var c=a.ww(this);if(c){var d;c.nf?(d=c.nf(b,!0),c=c.nf(b,!1)):(d=c.x,c=c.y);if(this.x!==d||this.y!==c)this.x=d,this.y=c,this.za()}},f.bz= function(a){0!==a&&(this.x+=Math.cos(this.m)*a,this.y+=Math.sin(this.m)*a,this.za())},f.az=function(a,b){0!==b&&(this.x+=Math.cos(G(a))*b,this.y+=Math.sin(G(a))*b,this.za())},a.aj=function(a){a.n(this.x)},a.Al=function(a){a.n(this.y)},a.De=function(a){a.n(this.b.Rj(this))});n&&(c.Wy=function(a,b){return ic(this.width,a,b)},c.ss=function(a,b){return ic(this.height,a,b)},f.Zi=function(a){this.width!==a&&(this.width=a,this.za())},f.Xi=function(a){this.height!==a&&(this.height=a,this.za())},f.$g=function(a, b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.za()},a.bh=function(a){a.n(this.width)},a.Oi=function(a){a.n(this.height)},a.Zn=function(a){this.Aa();a.n(this.Qa.left)},a.ao=function(a){this.Aa();a.n(this.Qa.top)},a.$n=function(a){this.Aa();a.n(this.Qa.right)},a.Yn=function(a){this.Aa();a.n(this.Qa.bottom)});g&&(c.kl=function(a,b){return Ra(this.m,G(b))<=G(a)},c.Ps=function(a){return Ta(this.m,G(a))},c.Ns=function(a,b){var c=Oa(a),d=Oa(b),f=Ma(this.m);return Ta(d,c)?Ta(f,c)&& !Ta(f,d):!(!Ta(f,c)&&Ta(f,d))},f.Co=function(a){a=G(La(a));isNaN(a)||this.m===a||(this.m=a,this.za())},f.hz=function(a){0===a||isNaN(a)||(this.m+=G(a),this.m=Ma(this.m),this.za())},f.iz=function(a){0===a||isNaN(a)||(this.m-=G(a),this.m=Ma(this.m),this.za())},f.jz=function(a,b){var c=Sa(this.m,G(b),G(a));isNaN(c)||this.m===c||(this.m=c,this.za())},f.kz=function(a,b,c){a=Sa(this.m,Math.atan2(c-this.y,b-this.x),G(a));isNaN(a)||this.m===a||(this.m=a,this.za())},f.lz=function(a,b){var c=Math.atan2(b-this.y, a-this.x);isNaN(c)||this.m===c||(this.m=c,this.za())},a.ls=function(a){a.n(Na(this.m))});t||(c.Mi=function(a,b,c){return ic(this.hb[a],b,c)},c.ml=function(a){return this.hb[a]},c.fz=function(a,b){var c=this.N(),d=c.Zb();if(!d.length)return!1;var f=d[0],g=f,l=f.hb[b],h,n,t;h=1;for(n=d.length;hl)l=t,g=f;c.Fg(g);return!0},c.Bo=function(a){var b,c,d,f,g;if(this.b.Qj().fg){g=this.N();if(g.R)for(g.R=!1,A(g.d),A(g.I),d=this.d,b=0,c=d.length;ba?a=0:1f.j.index||d.j.index===f.j.index&&d.wd()>f.wd())f=d}else if(d.j.indexc)){var d=1===a;this.re[c]!==d&&(this.re[c]=d,this.nd(),this.b.fa=!0)}}},f.wl=function(a,b,c){if(this.b.k){var d=this.type.lm(a);0>d||(a=this.type.M[d],d=this.Ja[d],b=Math.floor(b),0>b||b>=d.length||(1===this.b.k.Aw(a.Za,b)&&(c/=100),d[b]!==c&&(d[b]=c,a.nc&&(this.b.fa=!0))))}})};Ob=function(){this.Kl=this.Fl=!0;this.type.ej=!0;this.b.fa=!0;var h,p,t=this.Gl;h=0;for(p=t.length;h< p;++h)t[h](this);this.j.Ec&&this.Aa()};Pb=function(h){h&&this.Gl.push(h)};Rb=function(){if(this.Fl){var h=this.Qa,p=this.Xb;h.set(this.x,this.y,this.x+this.width,this.y+this.height);h.offset(-this.Nb*this.width,-this.Ob*this.height);this.m?(h.offset(-this.x,-this.y),p.Br(h,this.m),p.offset(this.x,this.y),p.To(h)):p.ni(h);h.normalize();this.Fl=!1;this.Ny()}};var h=new wa(0,0,0,0);Sb=function(){if(this.j.Ec){var r=this.j.Eb,p=this.Qa;h.set(r.Ub(p.left),r.Vb(p.top),r.Ub(p.right),r.Vb(p.bottom));this.ac.oh(h)|| (this.ac.rightt;case 5:return h>=t;default:return!1}}})(); var qc={tint:{src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nuniform lowp float red;\nuniform lowp float green;\nuniform lowp float blue;\nvoid main(void)\n{\nlowp vec4 front = texture2D(samplerFront, vTex);\ngl_FragColor = front * vec4(red, green, blue, 1.0);\n}",Ej:0,Fj:0,Sl:!1,Rc:!0,Cl:!1,O:[["red",0,1],["green",0,1],["blue",0,1]]}};function X(h){this.b=h} (function(){function h(){}function r(){}function p(){}var t=!1,v=null,n=null,g="",b=X.prototype;b.W=function(a){this.X=a;this.b=a.b};b.W.prototype.D=function(){};b.S=function(a){this.type=a;this.b=a.b;this.rc=this.zd="";this.$b=0;this.timeout=-1;if(t=this.b.Hh)v=require("path"),n=require("fs"),g=v.dirname((window.process||nw.process).execPath)+"\\"};var d=b.S.prototype,l=null;window.C2_AJAX_DCSide=function(a,b,c){l&&("success"===a?(l.rc=b,l.zd=c,l.b.trigger(X.prototype.c.Pi,l),l.b.trigger(X.prototype.c.Zg, l)):"error"===a?(l.rc=b,l.b.trigger(X.prototype.c.Qi,l),l.b.trigger(X.prototype.c.Ti,l)):"progress"===a&&(l.$b=c,l.rc=b,l.b.trigger(X.prototype.c.yo,l)))};d.D=function(){l=this};d.Fb=function(){return{lastData:this.zd}};d.Qb=function(a){this.zd=a.lastData;this.rc="";this.$b=0};var c={},f="";d.dv=function(a,b){if(this.b.pb)AppMobi.webview.execute('C2_AJAX_WebSide("'+a+'", "'+b+'", "GET", null);');else{var e=this,d=null,m=function(){e.rc=a;e.b.trigger(X.prototype.c.Qi,e);e.b.trigger(X.prototype.c.Ti, e)},h=function(){if(t){var c=g+b;n.existsSync(c)?n.readFile(c,{encoding:"utf8"},function(b,c){b?m():(e.rc=a,e.zd=c.replace(/\r\n/g,"\n"),e.b.trigger(X.prototype.c.Pi,e),e.b.trigger(X.prototype.c.Zg,e))}):m()}else m()},l=function(b){b.lengthComputable&&(e.$b=b.loaded/b.total,e.rc=a,e.b.trigger(X.prototype.c.yo,e))};try{this.b.Ke?d=new ActiveXObject("Microsoft.XMLHTTP"):d=new XMLHttpRequest;d.onreadystatechange=function(){4===d.readyState&&(e.rc=a,d.responseText?e.zd=d.responseText.replace(/\r\n/g, "\n"):e.zd="",400<=d.status?(e.b.trigger(X.prototype.c.Qi,e),e.b.trigger(X.prototype.c.Ti,e)):t&&!e.zd.length||!t&&0===d.status&&!e.zd.length||(e.b.trigger(X.prototype.c.Pi,e),e.b.trigger(X.prototype.c.Zg,e)))};this.b.Ke||(d.onerror=h,d.ontimeout=h,d.onabort=h,d.onprogress=l);d.open("GET",b);!this.b.Ke&&0<=this.timeout&&"undefined"!==typeof d.timeout&&(d.timeout=this.timeout);try{d.responseType="text"}catch(p){}if(d.setRequestHeader){for(var v in c)if(c.hasOwnProperty(v))try{d.setRequestHeader(v, c[v])}catch(r){}c={}}if(f&&d.overrideMimeType){try{d.overrideMimeType(f)}catch(oa){}f=""}d.send()}catch(K){h()}}};h.prototype.Zg=function(a){return mb(a,this.rc)};h.prototype.Pi=function(){return!0};h.prototype.Ti=function(a){return mb(a,this.rc)};h.prototype.Qi=function(){return!0};h.prototype.yo=function(a){return mb(a,this.rc)};b.c=new h;r.prototype.Rt=function(a,b){var c=this;this.b.Jh&&!this.b.Lp(b)?this.b.lp(b,function(b){c.rc=a;c.zd=b.replace(/\r\n/g,"\n");c.b.trigger(X.prototype.c.Pi,c);c.b.trigger(X.prototype.c.Zg, c)},function(){c.rc=a;c.b.trigger(X.prototype.c.Qi,c);c.b.trigger(X.prototype.c.Ti,c)}):this.dv(a,b)};b.e=new r;p.prototype.$s=function(a){a.la(this.zd)};b.g=new p})();function tc(h){this.b=h} (function(){function h(){return b.length?b.pop():[]}function r(d){var g,c;g=0;for(c=d.length;gb||b>this.ra-1||isNaN(g)||0>g||g>this.Ca-1||isNaN(c)||0>c||c>this.Ma-1?0: this.oc[b][g][c]};g.set=function(b,g,c,f){b=Math.floor(b);g=Math.floor(g);c=Math.floor(c);isNaN(b)||0>b||b>this.ra-1||isNaN(g)||0>g||g>this.Ca-1||isNaN(c)||0>c||c>this.Ma-1||(this.oc[b][g][c]=f)};g.lw=function(){return JSON.stringify({c2array:!0,size:[this.ra,this.Ca,this.Ma],data:this.oc})};g.Fb=function(){return{size:[this.ra,this.Ca,this.Ma],data:this.oc}};g.Qb=function(b){var g=b.size;this.ra=g[0];this.Ca=g[1];this.Ma=g[2];this.oc=b.data};g.ge=function(b,g,c){0>b&&(b=0);0>g&&(g=0);0>c&&(c=0); if(this.ra!==b||this.Ca!==g||this.Ma!==c){this.ra=b;this.Ca=g;this.Ma=c;var f,a,k=this.oc;k.length=b;for(b=0;bb))switch(g){case 0:if(b>=this.ra)break;r(a[b]);a.splice(b,1);this.ra--;break;case 1:if(b>=this.Ca)break;for(;c=this.Ma)break;for(;ca&&(a=0);1a&&(a=0);1a&&(a=.01);this.Bk.gain.value=a; this.Ak.gain.value=Math.pow(1/a,.6)*b};E.prototype.shape=function(a,b,c){var e=1.05*c*b-b;c=0>a?-1:1;a=0>a?-a:a;b=af;++f)d=f/32768,d=this.shape(d,c,e),this.xj[32768+f]=d,this.xj[32768-f-1]=-d};E.prototype.Hc=function(a){this.K.disconnect();this.K.connect(a);this.J.disconnect();this.J.connect(a)};E.prototype.remove=function(){this.aa.disconnect();this.Bk.disconnect(); this.hl.disconnect();this.Ak.disconnect();this.K.disconnect();this.J.disconnect()};E.prototype.tc=function(){return this.aa};Ea.prototype.Hc=function(a){this.da.disconnect();this.da.connect(a)};Ea.prototype.remove=function(){this.da.disconnect()};Ea.prototype.tc=function(){return this.da};oa.prototype.mb=function(){this.da.getFloatFrequencyData(this.hw);this.da.getByteTimeDomainData(this.Er);for(var a=this.da.fftSize,b=0,c=this.gi=0,e=0;be&&(e=-e),this.gib&&(c=b);return c}; H.prototype.hg=function(){return!this.ic&&!this.vd&&!this.ta&&!this.qf()};H.prototype.zy=function(){return!this.vd&&!this.ta&&!this.qf()};H.prototype.Ly=function(){var a=this.volume*ia;isFinite(a)||(a=0);switch(this.U){case 0:"undefined"!==typeof this.i.volume&&this.i.volume!==a&&(this.i.volume=a);break;case 1:1===this.buffer.U?this.fb.gain.value=a*this.zg:"undefined"!==typeof this.i.volume&&this.i.volume!==a&&(this.i.volume=a)}};H.prototype.Bj=function(a){switch(this.U){case 0:this.i.muted!==!!a&& (this.i.muted=!!a);break;case 1:1===this.buffer.U?(this.zg=a?0:1,this.fb.gain.value=ia*this.volume*this.zg):this.i.muted!==!!a&&(this.i.muted=!!a)}};H.prototype.uy=function(){this.lg=!0;this.Bj(this.lg||this.Kh)};H.prototype.xr=function(a){this.Kh=!!a;this.Bj(this.lg||this.Kh)};H.prototype.vy=function(a){this.playbackRate=a;this.Bi()};H.prototype.Bi=function(){var a=this.playbackRate;this.ig&&(a*=F.Jf);switch(this.U){case 0:this.i.playbackRate!==a&&(this.i.playbackRate=a);break;case 1:1===this.buffer.U? this.i.playbackRate.value!==a&&(this.i.playbackRate.value=a):this.i.playbackRate!==a&&(this.i.playbackRate=a)}};H.prototype.xy=function(a){switch(this.U){case 0:a?this.hg()?(this.Cc=!0,this.i.pause()):this.Cc=!1:this.Cc&&(this.i.play(),this.Cc=!1);break;case 1:a?this.hg()?(this.Cc=!0,1===this.buffer.U?(this.cc=this.nm(!0),this.Ad&&(this.cc=this.cc%this.mf()),f(this.i)):this.i.pause()):this.Cc=!1:this.Cc&&(1===this.buffer.U?(this.i=y.createBufferSource(),this.i.buffer=this.buffer.ca,this.i.connect(this.fb), this.i.onended=this.dn,this.cj=this.i,this.i.loop=this.Ad,this.fb.gain.value=ia*this.volume*this.zg,this.Bi(),this.startTime=(this.ig?F.Bb.Z:F.oe.Z)-this.cc/(this.playbackRate||.001),c(this.i,this.cc,this.mf())):this.i.play(),this.Cc=!1);break;case 2:a?this.hg()?(this.i.pause(),this.Cc=!0):this.Cc=!1:this.Cc&&(this.Cc=!1,this.i.play())}};M.S=function(a){this.type=a;F=this.b=a.b;R=this;this.jc=null;this.Ph=-600;this.b.Jh&&(ob=!0);!(this.b.pg||this.b.Dh&&(this.b.Bm||this.b.Xj))||this.b.Zj||this.b.pa|| this.b.Mp||ob||(Ec=!0);y=null;"undefined"!==typeof AudioContext?(D=1,y=new AudioContext):"undefined"!==typeof webkitAudioContext&&(D=1,y=new webkitAudioContext);this.b.pg&&y&&(y.close&&y.close(),"undefined"!==typeof AudioContext?y=new AudioContext:"undefined"!==typeof webkitAudioContext&&(y=new webkitAudioContext));1!==D&&(this.b.vc&&"undefined"!==typeof window.Media?D=2:this.b.Np&&(D=3));2===D&&(B=location.href,a=B.lastIndexOf("/"),-1"!==b&&(a.xk=b,a.Um=e,a.Vn=d),null;g=new H(a,b);C.push(g);return g};var ra=[];O.prototype.Si=function(a){return mb(x,a)};O.prototype.Xs=function(a){W(a);var b;a=0;for(b=ra.length;a",b,!1)}};J.prototype.eu=function(a,b){W(a);0>b&&(b=0);var c,e;c=0;for(e=ra.length;cd?null:b[d]}function t(){}function v(){}function n(){}var g=sc.prototype;g.W=function(b){this.X=b;this.b=b.b};g.W.prototype.D=function(){};g.S=function(b){this.type=b;this.b=b.b};var b=[],d=-1;g.S.prototype.D=function(){var b=this;window.c2_callFunction=function(c,f){var a,g,e,h=r();h.name=c.toLowerCase();h.Hg=0;if(f)for(h.Oa.length=f.length,a=0,g=f.length;ab||b>=a.Oa.length?!1:ic(a.Oa[b],c,d)};g.c=new t;v.prototype.CallFunction=function(b,c){var f=r();f.name=b.toLowerCase();f.Hg=0;Da(f.Oa,c);this.b.trigger(sc.prototype.c.Ui,this,f.name);d--};v.prototype.gu=function(b){var c= p();c&&(c.Hg=b)};g.e=new v;n.prototype.Ft=function(b,c){c=ta(c);var d=p();d?0<=c&&ch;++h)if(this.qg[h]){this.qg[h]=!1;this.me=h;this.b.trigger(xc.prototype.c.no,this);var n=this.b.trigger(xc.prototype.c.ro,this),g=this.b.trigger(xc.prototype.c.qo,this);if(n||g)this.Ci[h]=!0}};p.Fb=function(){return{triggerKey:this.me}};p.Qb=function(h){this.me=h.triggerKey};h.prototype.Rs=function(h){return this.qg[h]};h.prototype.qt=function(h){return h===this.me};h.prototype.ht=function(){return!0}; h.prototype.no=function(){return!0};h.prototype.ro=function(h){return h===this.me};h.prototype.tt=function(h){return h===this.me};h.prototype.qo=function(h){return h===this.me};r.c=new h;r.e=new function(){};r.g=new function(){}})();function Y(h){this.b=h} (function(){function h(h,p,n,g,b,d,l,c,f,a){h.save();h.fillStyle=p;p=b%n;var k=d%g;0>p&&(p+=n);0>k&&(k+=g);h.translate(p+f,k+a);h.fillRect(b-p-f,d-k-a,l,c);h.restore()}var r=Y.prototype;r.W=function(h){this.X=h;this.b=h.b};var p=r.W.prototype;p.D=function(){this.B||(this.q=new Image,this.q.Ql=this.Yk,this.b.gl(this.q,this.wi),this.Hi=this.Ki=this.Ji=this.Ii=this.Xg=this.r=this.So=this.Pr=this.nr=this.hq=this.em=null)};p.ei=function(){this.B||(this.Hi=this.Ki=this.Ji=this.Ii=this.Xg=this.r=null)}; p.fi=function(){this.B||!this.d.length||this.r||(this.r=this.b.k.yc(this.q,!0,this.b.qa,this.Ue))};p.Ai=function(){this.B||this.d.length||!this.b.k||(this.b.k.deleteTexture(this.r),this.b.k.deleteTexture(this.Xg),this.b.k.deleteTexture(this.Ii),this.b.k.deleteTexture(this.Ji),this.b.k.deleteTexture(this.Ki),this.b.k.deleteTexture(this.Hi),this.Hi=this.Ki=this.Ji=this.Ii=this.Xg=this.r=null)};p.Gd=function(h,p,n,g){var b=document.createElement("canvas");n=n-h;g=g-p;b.width=n;b.height=g;b.getContext("2d").drawImage(this.q, h,p,n,g,0,0,n,g);return b};p.Tu=function(h,p,n,g){var b=this.q.width,d=this.q.height,l=b-p,c=d-g;if(this.b.k){if(!this.Xg){var f=this.b.k,a=this.b.qa,k=this.Ue;l>h&&c>n&&(this.Xg=f.yc(this.Gd(h,n,l,c),!0,a,k));0n&&(this.Ii=f.yc(this.Gd(0,n,h,c),!0,a,k,"repeat-y"));0n&&(this.Ji=f.yc(this.Gd(l,n,b,c),!0,a,k,"repeat-y"));0h&&(this.Ki=f.yc(this.Gd(h,0,l,n),!0,a,k,"repeat-x"));0h&&(this.Hi=f.yc(this.Gd(h,c,l,d),!0,a,k,"repeat-x"))}}else this.em||(f=this.b.Ba,l>h&&c>n&&(this.em= f.createPattern(this.Gd(h,n,l,c),"repeat")),0n&&(this.hq=f.createPattern(this.Gd(0,n,h,c),"repeat")),0n&&(this.nr=f.createPattern(this.Gd(l,n,b,c),"repeat")),0h&&(this.Pr=f.createPattern(this.Gd(h,0,l,n),"repeat")),0h&&(this.So=f.createPattern(this.Gd(h,c,l,d),"repeat")))};r.S=function(h){this.type=h;this.b=h.b};p=r.S.prototype;p.D=function(){this.Om=this.A[0];this.wn=this.A[1];this.Ln=this.A[2];this.Hl=this.A[3];this.Cj=this.A[4];this.fill=this.A[5];this.visible=0===this.A[6]; this.qr=0!==this.A[8];this.Bc?this.de.set(0,0,0,0):this.de=new wa(0,0,0,0);this.b.k&&!this.type.r&&(this.type.r=this.b.k.yc(this.type.q,!1,this.b.qa,this.type.Ue));this.type.Tu(this.Om,this.wn,this.Ln,this.Hl)};p.ed=function(t){var p=this.type.q,n=this.Om,g=this.wn,b=this.Ln,d=this.Hl,l=p.width,c=p.height,f=l-g,a=c-d;t.globalAlpha=this.opacity;t.save();var k=this.x,e=this.y,u=this.width,m=this.height;this.b.Ac&&(k=Math.round(k),e=Math.round(e));var q=-(this.Nb*this.width),w=-(this.Ob*this.height), r=q%l,E=w%c;0>r&&(r+=l);0>E&&(E+=c);t.translate(k+r,e+E);l=q-r;w-=E;E=this.qr?1:0;0b&&h(t,this.type.hq,n,a-b,l,w+b,n+E,m-b-d,0,0),0b&&h(t,this.type.nr,g,a-b,l+u-g-E,w+b,g+E,m-b-d,E,0),0n&&h(t,this.type.Pr,f-n,b,l+n,w,u-n-g, b+E,0,0),0n&&h(t,this.type.So,f-n,d,l+n,w+m-d-E,u-n-g,d+E,0,E)):1===this.Cj&&(0b&&0b&&0n&&0n&&0b&&f>n&&(0===this.fill?h(t,this.type.em,f-n,a-b,l+n,w+b,u-n-g,m-b-d,0,0):1===this.fill&&0g&&this.xi(h,this.type.Ii,f,c+g,p+e,k-g-b,0,0),0g&&this.xi(h,this.type.Ji,f+a-n-e,c+g,n+e,k-g-b,e,0),0p&&this.xi(h,this.type.Ki, f+p,c,a-p-n,g+e,0,0),0p&&this.xi(h,this.type.Hi,f+p,c+k-b-e,a-p-n,b+e,0,e)):1===this.Cj&&(0g&&this.Td(h,this.type.r,0,g,p,l-g,f,c+g,p,k-g-b),0g&&this.Td(h,this.type.r,d,g,n,l-g,f+a-n,c+g,n,k-g-b),0p&&this.Td(h,this.type.r,p,0,d-p,g,f+p,c,a-p-n,g),0p&&this.Td(h,this.type.r,p,l,d-p,b,f+p,c+k-b,a-p-n,b));l>g&&d>p&&(0===this.fill?this.xi(h,this.type.Xg,f+p,c+g,a-p-n,k-g-b,0,0):1===this.fill&&this.Td(h,this.type.r,p,g,d-p,l-g,f+p,c+g,a-p-n,k-g-b))};r.c=new function(){};r.e= new function(){};r.g=new function(){}})();function V(h){this.b=h} (function(){function h(){if(0===this.Vl.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.Mg?b.drawImage(this.q,this.Ag,this.Bg,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.q,0,0,this.width,this.height);this.Vl=a.toDataURL("image/png")}return this.Vl}function r(){}function p(b,d,g){if(!b)return!1;var h=0!==d||0!==g,n,p,t=!1,r,v=this.b.Qj(),K=v.type,v=v.fg,L=b.N();r=this.b.Ea().Ia.kc;L.R?(this.Aa(),k.Vf(this.Qa), k.offset(d,g),this.b.ow(this.j,b,k,a),L=a):L=r?this.b.Zw()&&!L.I.length&&L.d.length?L.d:L.I:L.d;l=b;f=K!==b&&!v;h&&(n=this.x,p=this.y,this.x+=d,this.y+=g,this.za());d=0;for(g=L.length;dthis.C&&(this.C=0);this.C>=this.xa.frames.length&&(this.C=this.xa.frames.length-1);var a=this.xa.frames[this.C];this.ga.oi(a.yk);this.Nb=a.Nb;this.Ob=a.Ob;this.Wf=this.xa.speed;this.Be=this.xa.vn;1===this.type.gc.length&&1===this.type.gc[0].frames.length||0===this.Wf||(this.b.If(this),this.uf=!0);this.Bc?this.Yc.reset():this.Yc=new eb;this.ud=this.Yc.Z;this.Ld=!0;this.Md=0;this.Ye=!0;this.Tf=this.Oo= "";this.Xo=0;this.hh=-1;this.type.Pm();var b,c,d,f,g,k,h,a=0;for(b=this.type.gc.length;athis.C&&(this.C=0);this.C>=this.xa.frames.length&&(this.C=this.xa.frames.length-1);this.Wf=a.cas;this.ud=a.fs;this.Md=a.ar;this.Yc.reset();this.Yc.Z=a.at;this.Ld=a.hasOwnProperty("ap")?a.ap:!0;this.Ye=a.hasOwnProperty("af")?a.af:!0;a.hasOwnProperty("rt")?this.Be=a.rt:this.Be=this.xa.vn;this.Sa=this.xa.frames[this.C];this.vj= this.Sa.r;this.ga.oi(this.Sa.yk);this.Nb=this.Sa.Nb;this.Ob=this.Sa.Ob};d.Dl=function(a){this.C=a?0:this.xa.frames.length-1;this.Ld=!1;this.Oo=this.xa.name;this.zh=!0;this.b.trigger(V.prototype.c.gt,this);this.b.trigger(V.prototype.c.mo,this);this.zh=!1;this.Md=0};d.El=function(){return this.Yc.Z};d.mb=function(){this.Yc.add(this.b.Rj(this));this.Tf.length&&this.dp();0<=this.hh&&this.Zl();var a=this.Yc.Z,b=this.xa,c=b.frames[this.C],d=c.duration/this.Wf;this.Ld&&a>=this.ud+d&&(this.Ye?this.C++:this.C--, this.ud+=d,this.C>=b.frames.length&&(b.cr?(this.Ye=!1,this.C=b.frames.length-2):b.loop?this.C=this.Be:(this.Md++,this.Md>=b.un?this.Dl(!1):this.C=this.Be)),0>this.C&&(b.cr?(this.C=1,this.Ye=!0,b.loop||(this.Md++,this.Md>=b.un&&this.Dl(!0))):b.loop?this.C=this.Be:(this.Md++,this.Md>=b.un?this.Dl(!0):this.C=this.Be)),0>this.C?this.C=0:this.C>=b.frames.length&&(this.C=b.frames.length-1),a>this.ud+b.frames[this.C].duration/this.Wf&&(this.ud=a),a=b.frames[this.C],this.Of(c,a),this.b.fa=!0)};d.sp=function(a){var b, c,d;b=0;for(c=this.type.gc.length;bthis.C&&(this.C=0),this.C>=this.xa.frames.length&&(this.C=this.xa.frames.length-1),1===this.Xo&&(this.C=0),this.Ld=!0,this.ud=this.Yc.Z, this.Ye=!0,this.Of(a,this.xa.frames[this.C]),this.b.fa=!0)};d.Zl=function(){var a=this.xa.frames[this.C],b=this.C;this.C=ta(this.hh);0>this.C&&(this.C=0);this.C>=this.xa.frames.length&&(this.C=this.xa.frames.length-1);b!==this.C&&(this.Of(a,this.xa.frames[this.C]),this.ud=this.Yc.Z,this.b.fa=!0);this.hh=-1};d.Of=function(a,b){var c=a.width,d=a.height,f=b.width,g=b.height;c!=f&&(this.width*=f/c);d!=g&&(this.height*=g/d);this.Nb=b.Nb;this.Ob=b.Ob;this.ga.oi(b.yk);this.za();this.Sa=b;this.vj=b.r;c=0; for(d=this.L.length;cf||f>=d.length)return b?this.x:this.y;var g=(d[f][1]-c.Nb)*this.width,d=d[f][2],d=(d-c.Ob)*this.height,c=Math.cos(this.m);f=Math.sin(this.m);var k=g*c-d*f,d=d*c+g*f,g=k+this.x,d=d+this.y;return b?g:d};var l=null,c=new ca,f=!1,a=[],k=new wa(0, 0,0,0);g.finish=function(a){if(f){if(a){var b=this.b.Ea().Ia.kc;a=l.N();var d=c.We(),g,k;if(a.R){a.R=!1;A(a.d);g=0;for(k=d.length;gthis.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.za()};n.e=new t;v.prototype.Ks=function(a,b){a.n(this.nf(b,!0))};v.prototype.Ls=function(a,b){a.n(this.nf(b,!1))};v.prototype.jo=function(a){a.n(this.Sa.width)};v.prototype.io= function(a){a.n(this.Sa.height)};n.g=new v})();function yc(h){this.b=h} (function(){function h(a,b){return a.length?a.pop():new b}function r(a,b,c){if(c){var d;c=0;for(d=b.length;c=f.length&&f.push(h(b,Object));c=f[c];c.text=d;c.width=a.Wm(d);a.Qg=pa(a.Qg,c.width)}function t(){}var v=yc.prototype;v.D=function(){};v.W=function(a){this.X=a;this.b=a.b};var n=v.W.prototype;n.D=function(){this.B|| (this.q=new Image,this.b.gl(this.q,this.wi),this.r=null)};n.ei=function(){this.B||(this.r=null)};n.fi=function(){if(!this.B&&this.d.length){this.r||(this.r=this.b.k.yc(this.q,!1,this.b.qa,this.Ue));var a,b;a=0;for(b=this.d.length;a=b*c);p++){var t=p%b,r=Math.floor(p/b),v=n.charAt(p);if(this.b.k){var K=this.qj,L=t*g,H=r*q,t=(t+1)*g,r=(r+1)*q;void 0===K[v]&&(K[v]=h(l,wa));K[v].left=L;K[v].top=H;K[v].right=t;K[v].bottom=r}else K=this.pj,t=t*a,r=r*f,L=a,H=f,void 0===K[v]&&(K[v]=h(d,Object)),K[v].x=t,K[v].y=r,K[v].cs=L,K[v].Ap=H}};var c= [];v.tu=function(a){A(c);for(var b="",d,f=0;f=f)r(b,d,!0);else{var g=a.rd,l=a.Uf;if(c.length*(a.oj*g+l)-l<=f&&-1===c.indexOf("\n")&&(l=a.Wm(c),l<=f)){r(b,d,!0);d.push(h(b, Object));d[0].text=c;d[0].width=l;a.Qg=l;a.Gf=a.we*g+a.lineHeight;return}this.yu(a);a.Gf=d.length*(a.we*g+a.lineHeight)}}else r(b,d,!0)};v.yu=function(a){var d=a.Ty,e=a.text,f=a.zf,h=a.width;d&&(this.tu(e),e=c);var l="",n,t,r,v=0,oa=!1;for(r=0;rh&&(""===n?(p(a,v,l),l="",oa=!0):(p(a,v,n),l=e[r]),v++,d||" "!==l||(l="")));l.replace(/\s\s*$/,"").length&&(p(a,v,l),v++);for(r=v;rthis.width+1E-5)break;void 0!==D&&(M=J,F=O,0===l&&1===p&&(M=Math.round(M),F=Math.round(F)),a.drawImage(this.q,D.x,D.y,D.cs,D.Ap,M,F,D.cs*p,D.Ap*p));J+=W*p+v;if(0===l&&b+J>g)break}}O+=t;if(0===l&&(O+t+r>this.height||c+O>h))break}}a.restore()}};var f=new xa;n.Kb=function(a){a.Rb(this.r);a.Se(this.opacity);if(this.text&&(this.jr(),!(this.heightthis.width+1E-5)break;if(void 0!== y){var N=this.oj*v,C=this.we*v;x=R;B=r;0===p&&1===v&&(x=Math.round(x),B=Math.round(B));f.Fa=x;f.Ga=B;f.nb=x+N;f.ob=B;f.$a=x;f.ab=B+C;f.bb=x+N;f.cb=B+C;0!==p&&(x=f,B=M,N=F,C=void 0,C=x.Fa*B-x.Ga*N,x.Ga=x.Ga*B+x.Fa*N,x.Fa=C,C=x.nb*B-x.ob*N,x.ob=x.ob*B+x.nb*N,x.nb=C,C=x.$a*B-x.ab*N,x.ab=x.ab*B+x.$a*N,x.$a=C,C=x.bb*B-x.cb*N,x.cb=x.cb*B+x.bb*N,x.bb=C);f.offset(c,b);a.Sc(f.Fa,f.Ga,f.nb,f.ob,f.bb,f.cb,f.$a,f.ab,y)}R+=J*v+W;if(0===p&&c+R>l)break}}r+=L;if(0===p&&(r+L+H>this.height||b+r>n))break}}};v.c=new function(){}; t.prototype.iu=function(a){ja(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.Hf=!0,this.b.fa=!0)};t.prototype.yl=function(a){a!==this.rd&&(this.rd=a,this.Hf=!0,this.b.fa=!0)};n.Zt=function(a,b){var c=parseInt(b,10);this.xe[a]!==c&&(this.xe[a]=c,this.Hf=!0,this.b.fa=!0)};t.prototype.$t=function(a,b){if(""!==a)for(var c=0;cd&&(d+=this.q.width);0>l&&(l+=this.q.height);h.translate(p,n);h.rotate(this.m);h.translate(d,l);h.fillRect(g-d,b-l,this.width,this.height);h.restore()};p.Ce=function(h){this.Kb(h)};p.Kb= function(h){h.Rb(this.r);h.Se(this.opacity);var p=this.de;p.right=this.width/this.q.width;p.bottom=this.height/this.q.height;var n=this.Xb;if(this.b.Ac){var g=Math.round(this.x)-this.x,b=Math.round(this.y)-this.y;h.Sc(n.Fa+g,n.Ga+b,n.nb+g,n.ob+b,n.bb+g,n.cb+b,n.$a+g,n.ab+b,p)}else h.Sc(n.Fa,n.Ga,n.nb,n.ob,n.bb,n.cb,n.$a,n.ab,p)};r.c=new function(){};r.e=new function(){};h.prototype.jo=function(h){h.n(this.q.width)};h.prototype.io=function(h){h.n(this.q.height)};r.g=new h})(); function Z(h){this.b=h} (function(){function h(a){l=a.x;c=a.y;f=a.z}function r(b,c,d,e){var f;f=a.length?a.pop():new p;f.init(b,c,d,e);return f}function p(){this.ri=this.id=this.y=this.x=this.Uk=this.Tk=this.Lm=this.time=this.Hn=0;this.yi=this.al=!1}function t(a){return a.sourceCapabilities&&a.sourceCapabilities.firesTouchEvents||a.originalEvent&&a.originalEvent.sourceCapabilities&&a.originalEvent.sourceCapabilities.firesTouchEvents}function v(){}function n(){}var g=Z.prototype;g.W=function(a){this.X=a;this.b=a.b};g.W.prototype.D= function(){};g.S=function(a){this.type=a;this.b=a.b;this.touches=[];this.Xm=!1};var b=g.S.prototype,d={left:0,top:0};b.lf=function(a){var b,c;b=0;for(c=this.touches.length;bVa(this.Tk,this.Uk,this.x,this.y)&&(this.al=!0,a.Id=this.ri,a.Kf=this.id,a.bg=b,a.b.trigger(Z.prototype.c.ot,a),a.Qd=this.x,a.Rd=this.y,a.b.trigger(Z.prototype.c.pt,a),a.bg=0)};var k=-1E3,e=-1E3,u=-1E4;p.prototype.Bq=function(a,b){if(!this.al){var c=Za();333>=c-this.Hn&&!this.yi&&15>Va(this.Tk,this.Uk,this.x, this.y)&&(a.Id=this.ri,a.Kf=this.id,a.bg=b,666>=c-u&&25>Va(k,e,this.x,this.y)?(a.b.trigger(Z.prototype.c.kt,a),a.Qd=this.x,a.Rd=this.y,a.b.trigger(Z.prototype.c.lt,a),e=k=-1E3,u=-1E4):(a.b.trigger(Z.prototype.c.Dt,a),a.Qd=this.x,a.Rd=this.y,a.b.trigger(Z.prototype.c.Et,a),k=this.x,e=this.y,u=c),a.bg=0)}};b.D=function(){this.jx=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.bg=this.Kf=this.Id=this.Rd=this.Qd=this.Ko=this.Jo=this.Io=this.Cu=this.Bu=this.Au=this.vk=this.uk=this.tk= 0;this.Qy=0!==this.A[0];var a=0c-b.time||b.update(c,a.pageX-e.left,a.pageY-e.top,a.width||0,a.height||0,a.pressure||0)}}};b.Qq=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&pb(a)&&a.preventDefault();var b=this.b.pa?d:jQuery(this.b.canvas).offset(),c=a.pageX-b.left,b=a.pageY-b.top;Za();this.Id=this.touches.length; this.Kf=a.pointerId;this.touches.push(r(c,b,a.pointerId,this.Id));this.b.xc=!0;this.b.trigger(Z.prototype.c.xo,this);this.b.trigger(Z.prototype.c.tl,this);this.Qd=c;this.Rd=b;this.b.trigger(Z.prototype.c.sl,this);this.b.xc=!1}};b.sk=function(b,c){if(b.pointerType!==b.MSPOINTER_TYPE_MOUSE&&"mouse"!==b.pointerType){b.preventDefault&&pb(b)&&b.preventDefault();var d=this.lf(b.pointerId);this.Id=0<=d?this.touches[d].ri:-1;this.Kf=0<=d?this.touches[d].id:-1;this.b.xc=!0;this.b.trigger(Z.prototype.c.wo, this);this.b.trigger(Z.prototype.c.rl,this);0<=d&&(c||this.touches[d].Bq(this,d),100>a.length&&a.push(this.touches[d]),this.touches.splice(d,1));this.b.xc=!1}};b.Rq=function(a){a.preventDefault&&a.preventDefault();var b=Za(),c,e,f,g;c=0;for(e=a.changedTouches.length;cb-g.time||g.update(b,f.pageX-h.left,f.pageY-h.top,2*(f.Fz||f.Nz||f.yz||f.Bz||0),2*(f.Gz||f.Oz||f.zz||f.Cz|| 0),f.qz||f.Mz||f.xz||f.Az||0)}};b.Sq=function(a){a.preventDefault&&pb(a)&&a.preventDefault();var b=this.b.pa?d:jQuery(this.b.canvas).offset();Za();this.b.xc=!0;var c,e,f,g;c=0;for(e=a.changedTouches.length;ca.length&&a.push(this.touches[f]),this.touches.splice(f,1));this.b.xc=!1};b.El=function(){return this.b.vc&&0===this.tk&&0!==f?90*f:this.tk}; b.Uu=function(){return this.b.vc&&0===this.uk&&0!==c?90*c:this.uk};b.wv=function(){return this.b.vc&&0===this.vk&&0!==l?90*l:this.vk};b.Gx=function(a){t(a)||(this.Sq({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]}),this.Xm=!0)};b.Hx=function(a){this.Xm&&!t(a)&&this.Rq({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};b.Ix=function(a){a.preventDefault&&this.b.Bp&&!this.b.sf&&a.preventDefault();this.b.Bp=!0;t(a)||(this.cn({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]}), this.Xm=!1)};b.Jn=function(){var a,b,c,d=Za();a=0;for(b=this.touches.length;ac||c>=this.touches.length)a.n(0);else{var d,e,f,g,h;ha(b)?(d=this.b.ag(0),e=d.scale,f=d.qd,g=d.Pc,h=d.m,d.scale=1,d.qd=1,d.Pc=1,d.m=0,a.n(d.ub(this.touches[c].x,this.touches[c].y,!0)),d.scale=e,d.qd=f,d.Pc=g,d.m=h): (d=ja(b)?this.b.ag(b):this.b.Sj(b))?a.n(d.ub(this.touches[c].x,this.touches[c].y,!0)):a.n(0)}};n.prototype.Al=function(a,b){var c=this.bg;if(0>c||c>=this.touches.length)a.n(0);else{var d,e,f,g,h;ha(b)?(d=this.b.ag(0),e=d.scale,f=d.qd,g=d.Qc,h=d.m,d.scale=1,d.qd=1,d.Qc=1,d.m=0,a.n(d.ub(this.touches[c].x,this.touches[c].y,!1)),d.scale=e,d.qd=f,d.Qc=g,d.m=h):(d=ja(b)?this.b.ag(b):this.b.Sj(b))?a.n(d.ub(this.touches[c].x,this.touches[c].y,!1)):a.n(0)}};n.prototype.es=function(a,b){var c=this.lf(b);0> c?a.n(0):a.n(this.touches[c].x)};n.prototype.gs=function(a,b){var c=this.lf(b);0>c?a.n(0):a.n(this.touches[c].y)};n.prototype.uu=function(a){a.n(this.Kf)};g.g=new n})();function Ac(h){this.b=h} (function(){function h(){}function r(){}function p(){}var t=Ac.prototype;t.W=function(g){this.X=g;this.b=g.b};t.W.prototype.D=function(){};t.S=function(g){this.type=g;this.b=g.b};var v=t.S.prototype,n=window.URL||window.webkitURL||window.mozURL||window.msURL;v.D=function(){if(this.b.pa)fa("[Construct 2] File Chooser plugin not supported on this platform - the object will not be created");else{this.Lb=document.createElement("input");this.Lb.type="file";this.Lb.setAttribute("accept",this.A[0]);0!== this.A[1]&&this.Lb.setAttribute("multiple","");this.Lb.id=this.A[3];jQuery(this.Lb).appendTo(this.b.nj?this.b.nj:"body");this.ff=!1;0===this.A[2]&&(jQuery(this.Lb).hide(),this.visible=!1,this.ff=!0);var g=this;this.Lb.onchange=function(){g.b.trigger(Ac.prototype.c.oo,g)};this.bq=this.cq=this.Vp=this.Zp=this.aq=this.Xp=0;this.Zr(!0);this.b.If(this)}};v.Ef=function(){this.b.pa||(jQuery(this.Lb).remove(),this.Lb=null)};v.mb=function(){this.Zr()};v.Zr=function(g){if(!this.b.pa){var b=this.j.ib(this.x, this.y,!0),d=this.j.ib(this.x,this.y,!1),h=this.j.ib(this.x+this.width,this.y+this.height,!0),c=this.j.ib(this.x+this.width,this.y+this.height,!1),f=this.b.width/this.b.devicePixelRatio,a=this.b.height/this.b.devicePixelRatio;!this.visible||!this.j.visible||0>=h||0>=c||b>=f||d>=a?(this.ff||jQuery(this.Lb).hide(),this.ff=!0):(1>b&&(b=1),1>d&&(d=1),h>=f&&(h=f-1),c>=a&&(c=a-1),f=window.innerWidth,a=window.innerHeight,g||this.Xp!==b||this.aq!==d||this.Zp!==h||this.Vp!==c||this.cq!==f||this.bq!==a?(this.Xp= b,this.aq=d,this.Zp=h,this.Vp=c,this.cq=f,this.bq=a,this.ff&&(jQuery(this.Lb).show(),this.ff=!1),g=Math.round(b)+jQuery(this.b.canvas).offset().left,f=Math.round(d)+jQuery(this.b.canvas).offset().top,jQuery(this.Lb).css("position","absolute"),jQuery(this.Lb).offset({left:g,top:f}),jQuery(this.Lb).width(Math.round(h-b)),jQuery(this.Lb).height(Math.round(c-d))):this.ff&&(jQuery(this.Lb).show(),this.ff=!1))}};v.ed=function(){};v.Kb=function(){};h.prototype.oo=function(){return!0};t.c=new h;r.prototype.ah= function(g){this.b.pa||(this.visible=0!==g)};t.e=new r;p.prototype.Es=function(g,b){var d;if(this.b.pa)d=null;else{d=this.Lb.files;var h=b;d?(h=Math.floor(h),d=0>h||h>=d.length?null:d[h]):d=null}d?d.c2url?g.la(d.c2url):n&&n.createObjectURL?(d.c2url=n.createObjectURL(d),g.la(d.c2url)):g.la(""):g.la("")};t.g=new p})();function Bc(h){this.b=h} (function(){function h(a){var b;if(!c[a])for(c[a]=Array(20),b=0;20>b;++b)c[a][b]=0;return c[a]}function r(a){var b;if(!f[a])for(f[a]=Array(20),b=0;20>b;++b)f[a][b]=0;return f[a]}function p(a,b){return b?4<=a?-1:a+16:16<=a?-1:a}function t(a){l[a.gamepad.index]=a.gamepad;b.trigger(Bc.prototype.c.mt,d)}function v(a){b.trigger(Bc.prototype.c.nt,d);l[a.gamepad.index]=null}function n(){}var g=Bc.prototype;g.W=function(a){this.X=a;this.b=a.b};g.W.prototype.D=function(){};var b=null,d=null,l=Array(16),c= Array(16),f=Array(16),a="",k="",e=null,u={windows:{}};u.windows.firefox={};var m=[0,1,2,3,4,5,8,9,10,11],q=[0,1,[7,6],2,3,[14,15],[12,13]];u.windows.firefox.xbox360=function(a,b){return b?a>=q.length?-1:ja(q[a])?q[a]+16:q[a]:a>=m.length?-1:m[a]};var w=[2,0,1,3,4,6,5,7,8,9],U=[0,1,2,3,[14,15],[12,13]];u.windows.firefox.logitechdualaction=function(a,b){return b?a>=U.length?-1:ja(U[a])?U[a]+16:U[a]:a>=w.length?-1:w[a]};g.S=function(a){this.type=a;b=this.b=a.b;d=this};var E=g.S.prototype;E.D=function(){this.Vu= this.A[0];this.ck=0;var b=navigator.userAgent;a="windows";/mac/i.test(b)&&(a="mac");e=u[a];k="chrome";/firefox/i.test(b)&&(k="firefox");e&&(e=e[k]);window.addEventListener("webkitgamepadconnected",t,!1);window.addEventListener("webkitgamepaddisconnected",v,!1);window.addEventListener("MozGamepadConnected",t,!1);window.addEventListener("MozGamepadDisconnected",v,!1);window.addEventListener("gamepadconnected",t,!1);window.addEventListener("gamepaddisconnected",v,!1);this.b.If(this);this.bj=[]};E.mb= function(){this.bj.length=0;var a=null,b=!1;navigator.getGamepads?a=navigator.getGamepads():navigator.webkitGetGamepads?a=navigator.webkitGetGamepads():navigator.mozGetGamepads?a=navigator.mozGetGamepads():navigator.msGetGamepads?a=navigator.msGetGamepads():this.b.Sp&&window.cr_getGamepads?(a=window.cr_getGamepads(),b=!0):a=navigator.gamepads||navigator.webkitGamepads||navigator.MozGamepads||l;if(a){var d,g,k,n,m,q,t;d=0;for(g=a.length;dm;++m)n[m]=k[m];b?k=p:e?(k="",n=u.id.toLowerCase(),-1q&&(v[q]=100*t,50<=v[q]&&50>w[q]&&(this.ck=q));k=0;for(n=u.axes.length;kq&&(v[q]=100*t):(v[q[0]]=0,v[q[1]]=0,0>=t?v[q[0]]=Math.abs(100* t):v[q[1]]=Math.abs(100*t));this.bj.push(u)}else u=d,c[u]=null,f[u]=null}for(;20>d;++d)a=d,c[a]=null,f[a]=null}};E.Fb=function(){return{lastButton:this.ck}};E.Qb=function(a){this.ck=a.lastButton};n.prototype.mt=function(){return!0};n.prototype.nt=function(){return!0};n.prototype.Os=function(a,b){a=Math.floor(a);if(0>a||a>=this.bj.length)return!1;var c=h(a);if(!c)return!1;if(c=50<=c[b])this.ck=b;return c};n.prototype.rs=function(a,b,c,d){a=Math.floor(a);b=Math.floor(b);if(0>a||a>=this.bj.length)return!1; if(a=h(a)){var e=a[b+16],f=0,f=0===b%2?a[b+16+1]:a[b+16-1];Math.sqrt(e*e+f*f)<=this.Vu&&(e=0);return ic(e,c,d)}};g.c=new n;g.e=new function(){};g.g=new function(){}})();function Cc(h){this.b=h} (function(){function h(){}function r(){}function p(){}var t=Cc.prototype;t.W=function(h){this.behavior=h;this.b=h.b};t.W.prototype.D=function(){};t.S=function(h,g){this.type=h;this.behavior=h.behavior;this.Na=g;this.b=h.b;this.ve=this.yb=this.xb=0};var v=t.S.prototype;v.D=function(){this.Og=this.A[0];this.qn=this.A[1];this.enabled=0!==this.A[2]};v.Fb=function(){return{dx:this.xb,dy:this.yb,cancelStep:this.ve,enabled:this.enabled,stepMode:this.Og,pxPerStep:this.qn}};v.Qb=function(h){this.xb=h.dx;this.yb= h.dy;this.ve=h.cancelStep;this.enabled=h.enabled;this.Og=h.stepMode;this.qn=h.pxPerStep};v.zp=function(){return Math.sqrt(this.xb*this.xb+this.yb*this.yb)};v.gb=function(){return Math.atan2(this.yb,this.xb)};v.step=function(h,g,b){if(0!==h||0!==g){var d=this.Na.x,l=this.Na.y,c,f=Math.round(Math.sqrt(h*h+g*g)/this.qn);0===f&&(f=1);var a;for(a=1;a<=f;a++)if(c=a/f,this.Na.x=d+h*c,this.Na.y=l+g*c,this.Na.za(),this.b.trigger(b,this.Na),1===this.ve){a--;c=a/f;this.Na.x=d+h*c;this.Na.y=l+g*c;this.Na.za(); break}else if(2===this.ve)break}};v.mb=function(){var h=this.b.Rj(this.Na),g=this.xb*h,h=this.yb*h;0===this.xb&&0===this.yb||!this.enabled||(this.ve=0,0===this.Og?(this.Na.x+=g,this.Na.y+=h):1===this.Og?this.step(g,h,Cc.prototype.c.it):2===this.Og?(this.step(g,0,Cc.prototype.c.ol),this.ve=0,this.step(0,h,Cc.prototype.c.pl)):3===this.Og&&(this.step(0,h,Cc.prototype.c.pl),this.ve=0,this.step(g,0,Cc.prototype.c.ol)),this.Na.za())};h.prototype.Ts=function(){return 0!=this.xb||0!=this.yb};h.prototype.vs= function(h,g,b){var d;switch(h){case 0:d=this.zp();break;case 1:d=this.xb;break;case 2:d=this.yb}return ic(d,g,b)};h.prototype.it=function(){return!0};h.prototype.ol=function(){return!0};h.prototype.pl=function(){return!0};t.c=new h;r.prototype.Fo=function(){this.yb=this.xb=0};r.prototype.hu=function(h,g){var b;switch(h){case 0:b=this.gb();this.xb=Math.cos(b)*g;this.yb=Math.sin(b)*g;break;case 1:this.xb=g;break;case 2:this.yb=g}};r.prototype.hs=function(h,g){var b=h*this.b.Rj(this.Na),d=G(g);this.xb+= Math.cos(d)*b;this.yb+=Math.sin(d)*b};r.prototype.Wt=function(h){h=G(h);var g=this.zp();this.xb=Math.cos(h)*g;this.yb=Math.sin(h)*g};r.prototype.ru=function(h){this.ve=h+1};r.prototype.xl=function(h){this.enabled=1===h};t.e=new r;p.prototype.xb=function(h){h.n(this.xb)};p.prototype.yb=function(h){h.n(this.yb)};t.g=new p})();function Ic(h){this.b=h} (function(){function h(){}var r=Ic.prototype;r.W=function(h){this.behavior=h;this.b=h.b};r.W.prototype.D=function(){};r.S=function(h,p){this.type=h;this.behavior=h.behavior;this.Na=p;this.b=h.b};var p=r.S.prototype;p.D=function(){this.Na.ja.jumpthruEnabled=0!==this.A[0]};p.mb=function(){};r.c=new function(){};h.prototype.xl=function(h){this.Na.ja.jumpthruEnabled=!!h};r.e=new h})();function Jc(h){this.b=h} (function(){function h(){}var r=Jc.prototype;r.W=function(h){this.behavior=h;this.b=h.b};r.W.prototype.D=function(){};r.S=function(h,p){this.type=h;this.behavior=h.behavior;this.Na=p;this.b=h.b};var p=r.S.prototype;p.D=function(){this.Na.ja.solidEnabled=0!==this.A[0]};p.mb=function(){};r.c=new function(){};h.prototype.xl=function(h){this.Na.ja.solidEnabled=!!h};r.e=new h})(); function rc(){return[Y,X,wc,tc,uc,Ac,sc,vc,xc,Bc,V,Z,yc,zc,Jc,Ic,Cc,T.prototype.c.to,tc.prototype.e.$g,tc.prototype.e.Ot,sc.prototype.e.CallFunction,T.prototype.e.ku,T.prototype.e.cu,V.prototype.e.Xt,yc.prototype.c.Mi,yc.prototype.e.iu,T.prototype.g.Oy,T.prototype.c.ws,uc.prototype.e.Nt,uc.prototype.e.Play,V.prototype.e.Yi,T.prototype.e.As,yc.prototype.e.Yi,yc.prototype.e.Zi,yc.prototype.e.Xi,sc.prototype.c.Ui,yc.prototype.e.Yg,T.prototype.c.Ds,sc.prototype.g.Ft,T.prototype.c.qs,wc.prototype.g.Zs, tc.prototype.g.bh,T.prototype.c.Cs,T.prototype.c.ho,V.prototype.c.Mi,T.prototype.e.vu,V.prototype.e.Yg,V.prototype.e.Pf,wc.prototype.g.Hs,Cc.prototype.e.xl,Cc.prototype.e.hu,V.prototype.g.zs,V.prototype.e.jl,T.prototype.g.Yo,uc.prototype.e.du,uc.prototype.e.Fo,Y.prototype.e.Yg,V.prototype.e.ah,Y.prototype.e.Yi,uc.prototype.c.Xs,Y.prototype.g.Zn,Y.prototype.g.ao,Y.prototype.g.$n,Y.prototype.g.Yn,uc.prototype.e.pu,T.prototype.e.Is,uc.prototype.e.Lt,sc.prototype.c.ts,uc.prototype.e.eu,T.prototype.g["float"], T.prototype.g["int"],Y.prototype.e.ah,T.prototype.c.Qs,yc.prototype.e.$g,yc.prototype.e.yl,T.prototype.c.Gs,V.prototype.g.aj,V.prototype.g.Al,V.prototype.e.ul,tc.prototype.c.Ni,V.prototype.e.ft,T.prototype.g.floor,T.prototype.g.random,V.prototype.e.qu,T.prototype.g.cos,T.prototype.g.De,V.prototype.c.Ni,yc.prototype.e.wl,V.prototype.e.ou,V.prototype.e.yl,V.prototype.e.$i,V.prototype.e.Zi,V.prototype.g.bh,V.prototype.e.Do,V.prototype.g.Opacity,V.prototype.c.eo,V.prototype.c.mo,yc.prototype.e.ul,tc.prototype.c.us, T.prototype.c.Fs,T.prototype.g.min,T.prototype.g.ux,tc.prototype.g.ms,tc.prototype.c.xs,T.prototype.e.ks,T.prototype.g.Ax,tc.prototype.e.Bs,tc.prototype.g.ns,T.prototype.c.Gt,V.prototype.e.Eo,Y.prototype.e.Pf,Y.prototype.e.$i,Y.prototype.e.Zi,Y.prototype.e.ul,Cc.prototype.e.Wt,Y.prototype.e.dt,Y.prototype.g.bh,Y.prototype.e.Ho,T.prototype.g.sin,Y.prototype.g.aj,Y.prototype.g.Al,Y.prototype.c.ml,Y.prototype.c.Mi,T.prototype.c.Ht,V.prototype.e.Co,V.prototype.e.wl,V.prototype.g.ls,sc.prototype.e.gu, V.prototype.c.Vs,V.prototype.c.kl,Y.prototype.c.fo,Cc.prototype.g.yb,V.prototype.g.Yn,sc.prototype.g.bo,Cc.prototype.g.xb,Cc.prototype.c.ol,V.prototype.c.ml,T.prototype.g.abs,T.prototype.e.su,Cc.prototype.c.vs,Cc.prototype.e.ru,Cc.prototype.c.pl,Y.prototype.e.Xi,T.prototype.g.Rx,Y.prototype.c.Ni,T.prototype.g.ox,T.prototype.g.nx,Y.prototype.g.Oi,Y.prototype.e.$g,Y.prototype.g.Go,Y.prototype.c.Bo,Y.prototype.e.zl,T.prototype.c.kl,T.prototype.g.m,Y.prototype.c.ko,zc.prototype.e.Ho,zc.prototype.e.Yi, V.prototype.c.fo,V.prototype.g.jo,V.prototype.e.Xi,V.prototype.g.io,V.prototype.e.zl,zc.prototype.e.ah,V.prototype.c.ss,V.prototype.c.ko,zc.prototype.c.lo,zc.prototype.e.jl,zc.prototype.c.Mi,V.prototype.g.Oi,zc.prototype.e.Do,zc.prototype.c.eo,zc.prototype.e.Xi,zc.prototype.e.Pf,zc.prototype.e.$i,zc.prototype.e.Co,zc.prototype.e.Zi,zc.prototype.g.Opacity,V.prototype.g.$n,V.prototype.g.Zn,V.prototype.c.Us,V.prototype.g.ao,T.prototype.c.It,zc.prototype.e.fu,zc.prototype.e.$g,V.prototype.c.Ms,V.prototype.e.Yt, V.prototype.g.Ks,V.prototype.g.Ls,V.prototype.c.lo,V.prototype.g.bt,T.prototype.g.time,Y.prototype.c.Jd,Y.prototype.e.au,Y.prototype.e.wl,V.prototype.c.Bo,V.prototype.g.Go,V.prototype.g.Kt,Cc.prototype.c.Ts,V.prototype.e.et,zc.prototype.e.Yg,V.prototype.e.mu,Cc.prototype.e.hs,zc.prototype.e.Eo,zc.prototype.g.Oi,zc.prototype.g.bh,T.prototype.g.ceil,zc.prototype.g.aj,T.prototype.g.Vy,T.prototype.g.Px,T.prototype.g.Ox,T.prototype.e.Tt,T.prototype.e.Ut,T.prototype.e.Vt,T.prototype.c.so,T.prototype.c.Ws, Bc.prototype.c.rs,Bc.prototype.c.Os,xc.prototype.c.Rs,T.prototype.c.Ss,Z.prototype.c.tl,vc.prototype.e.St,Z.prototype.g.es,Z.prototype.g.uu,Z.prototype.g.gs,T.prototype.g.Nu,T.prototype.g.Ou,T.prototype.c.Jt,Z.prototype.c.sl,Z.prototype.c.rl,wc.prototype.e.co,wc.prototype.e.js,T.prototype.g.Ky,T.prototype.g.Jy,T.prototype.g.left,T.prototype.g.yx,T.prototype.c.wu,T.prototype.c.Qt,wc.prototype.c.Js,T.prototype.e.ju,yc.prototype.c.Jd,yc.prototype.e.$t,yc.prototype.e.jl,T.prototype.g.qx,yc.prototype.e.zl, yc.prototype.c.ml,yc.prototype.c.po,yc.prototype.e.Pf,yc.prototype.e.$i,V.prototype.c.Jd,tc.prototype.c.nl,tc.prototype.e.lu,wc.prototype.c.nl,X.prototype.e.Rt,X.prototype.c.Zg,X.prototype.g.$s,yc.prototype.e.ah,vc.prototype.c.Ao,vc.prototype.e.ys,vc.prototype.c.Wi,yc.prototype.e.bu,Ac.prototype.e.Yg,Ac.prototype.c.oo,Ac.prototype.g.Es,vc.prototype.g.Pt,tc.prototype.e.Pf,T.prototype.g.Uw,T.prototype.g.Xu,T.prototype.g.Rg,tc.prototype.e.Mt]};