395 lines
189 KiB
JavaScript
395 lines
189 KiB
JavaScript
// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
|
|
'use strict';function z(){return function(){}}function B(b){return function(){return this[b]}}function G(b){return function(){return b}}var aa,ba,L,ca,fa,P,ga,ha,ia,ja,ka,la,ma,T,na,oa,pa,qa,ra,sa,ta,xa,ya,U,za,Aa,Ba,Ca,Da,Ea,Ga,Ha,Ia,Ma,Na,Oa,Pa,Qa,Ua,Va,Wa,Xa,Ya,Za,$a,ab,bb,cb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,ub,vb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb={};
|
|
"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(b){return b.__proto__}:function(b){return b.constructor.prototype});
|
|
(function(){function b(n,c,k,m){this.set(n,c,k,m)}function l(){this.qb=this.pb=this.sb=this.rb=this.xb=this.wb=this.Ha=this.Ga=0}function a(n,c,k,m){n<c?k<m?(t=n<k?n:k,p=c>m?c:m):(t=n<m?n:m,p=c>k?c:k):k<m?(t=c<k?c:k,p=n>m?n:m):(t=c<m?c:m,p=n>k?n:k)}function q(){this.ed=this.ld=null;this.Dg=0;s?this.ld=new Set:this.ed={};this.cf=[];this.xe=!0}function e(n){u[c++]=n}function d(){this.Sa=this.hj=this.y=this.Mj=0}function f(n){this.Wa=[];this.Bh=this.Dh=this.Eh=this.Ch=0;this.jh(n)}function r(n,c){this.Fq=
|
|
n;this.Eq=c;this.cells={}}function h(n,c,m){var d;return k.length?(d=k.pop(),d.os=n,d.x=c,d.y=m,d):new aa(n,c,m)}function g(n,c,k){this.os=n;this.x=c;this.y=k;this.Wg=new ba}L=function(n){window.console&&window.console.log&&window.console.log(n)};ca=function(n){return"undefined"===typeof n};fa=function(n){return"number"===typeof n};P=function(n){return"string"===typeof n};ga=function(n){return 0<n&&0===(n-1&n)};ha=function(n){--n;for(var c=1;32>c;c<<=1)n|=n>>c;return n+1};ia=function(n){return 0>
|
|
n?-n:n};ja=function(n,c){return n>c?n:c};ka=function(n,c){return n<c?n:c};la=Math.PI;ma=function(n){return n+0.5|0};T=function(n){return 0<=n?n|0:(n|0)-1};na=function(n){var c=n|0;return c===n?c:c+1};oa=function(n,c,k,m,d,f,e,a){var r,h,g,b;n<k?(h=n,r=k):(h=k,r=n);d<e?(b=d,g=e):(b=e,g=d);if(r<b||h>g)return!1;c<m?(h=c,r=m):(h=m,r=c);f<a?(b=f,g=a):(b=a,g=f);if(r<b||h>g)return!1;r=d-n+e-k;h=f-c+a-m;n=k-n;c=m-c;d=e-d;f=a-f;a=ia(c*d-f*n);return ia(d*h-f*r)>a?!1:ia(n*h-c*r)<=a};b.prototype.set=function(n,
|
|
c,k,m){this.left=n;this.top=c;this.right=k;this.bottom=m};b.prototype.copy=function(n){this.left=n.left;this.top=n.top;this.right=n.right;this.bottom=n.bottom};b.prototype.width=function(){return this.right-this.left};b.prototype.height=function(){return this.bottom-this.top};b.prototype.offset=function(n,c){this.left+=n;this.top+=c;this.right+=n;this.bottom+=c;return this};b.prototype.normalize=function(){var n=0;this.left>this.right&&(n=this.left,this.left=this.right,this.right=n);this.top>this.bottom&&
|
|
(n=this.top,this.top=this.bottom,this.bottom=n)};b.prototype.ws=function(n){return!(n.right<this.left||n.bottom<this.top||n.left>this.right||n.top>this.bottom)};b.prototype.xs=function(n,c,k){return!(n.right+c<this.left||n.bottom+k<this.top||n.left+c>this.right||n.top+k>this.bottom)};b.prototype.Ob=function(n,c){return n>=this.left&&n<=this.right&&c>=this.top&&c<=this.bottom};b.prototype.fr=function(n){return this.left===n.left&&this.top===n.top&&this.right===n.right&&this.bottom===n.bottom};pa=b;
|
|
l.prototype.ih=function(n){this.Ga=n.left;this.Ha=n.top;this.wb=n.right;this.xb=n.top;this.rb=n.right;this.sb=n.bottom;this.pb=n.left;this.qb=n.bottom};l.prototype.Ko=function(n,c){if(0===c)this.ih(n);else{var k=Math.sin(c),m=Math.cos(c),d=n.left*k,f=n.top*k,e=n.right*k,k=n.bottom*k,a=n.left*m,r=n.top*m,h=n.right*m,m=n.bottom*m;this.Ga=a-f;this.Ha=r+d;this.wb=h-f;this.xb=r+e;this.rb=h-k;this.sb=m+e;this.pb=a-k;this.qb=m+d}};l.prototype.offset=function(n,c){this.Ga+=n;this.Ha+=c;this.wb+=n;this.xb+=
|
|
c;this.rb+=n;this.sb+=c;this.pb+=n;this.qb+=c;return this};var t=0,p=0;l.prototype.Am=function(n){a(this.Ga,this.wb,this.rb,this.pb);n.left=t;n.right=p;a(this.Ha,this.xb,this.sb,this.qb);n.top=t;n.bottom=p};l.prototype.Ob=function(n,c){var k=this.wb-this.Ga,m=this.xb-this.Ha,d=this.rb-this.Ga,f=this.sb-this.Ha,e=n-this.Ga,a=c-this.Ha,r=k*k+m*m,h=k*d+m*f,m=k*e+m*a,g=d*d+f*f,b=d*e+f*a,p=1/(r*g-h*h),k=(g*m-h*b)*p,r=(r*b-h*m)*p;if(0<=k&&0<r&&1>k+r)return!0;k=this.pb-this.Ga;m=this.qb-this.Ha;r=k*k+m*
|
|
m;h=k*d+m*f;m=k*e+m*a;p=1/(r*g-h*h);k=(g*m-h*b)*p;r=(r*b-h*m)*p;return 0<=k&&0<r&&1>k+r};l.prototype.Pd=function(n,c){if(c)switch(n){case 0:return this.Ga;case 1:return this.wb;case 2:return this.rb;case 3:return this.pb;case 4:return this.Ga;default:return this.Ga}else switch(n){case 0:return this.Ha;case 1:return this.xb;case 2:return this.sb;case 3:return this.qb;case 4:return this.Ha;default:return this.Ha}};l.prototype.Sn=function(){return(this.Ga+this.wb+this.rb+this.pb)/4};l.prototype.Tn=function(){return(this.Ha+
|
|
this.xb+this.sb+this.qb)/4};l.prototype.on=function(n){var c=n.Sn(),k=n.Tn();if(this.Ob(c,k))return!0;c=this.Sn();k=this.Tn();if(n.Ob(c,k))return!0;var m,d,f,e,a,r,h,g;for(h=0;4>h;h++)for(g=0;4>g;g++)if(c=this.Pd(h,!0),k=this.Pd(h,!1),m=this.Pd(h+1,!0),d=this.Pd(h+1,!1),f=n.Pd(g,!0),e=n.Pd(g,!1),a=n.Pd(g+1,!0),r=n.Pd(g+1,!1),oa(c,k,m,d,f,e,a,r))return!0;return!1};qa=l;ra=function(n,c){for(var k in c)c.hasOwnProperty(k)&&(n[k]=c[k]);return n};sa=function(n,c){var k,m;c=T(c);if(!(0>c||c>=n.length))if(0===
|
|
c)n.shift();else if(c===n.length-1)n.pop();else{k=c;for(m=n.length-1;k<m;k++)n[k]=n[k+1];n.length=m}};ta=function(n,c){n.length=c.length;var k,m;k=0;for(m=c.length;k<m;k++)n[k]=c[k]};xa=function(n,c){n.push.apply(n,c)};ya=function(n,c){var k=n.indexOf(c);-1!==k&&sa(n,k)};U=function(n){return n/(180/la)};za=function(n){return n*(180/la)};Aa=function(n){n%=360;0>n&&(n+=360);return n};Ba=function(n){n%=2*la;0>n&&(n+=2*la);return n};Ca=function(n){return Aa(za(n))};Da=function(n){return Ba(U(n))};Ea=
|
|
function(n,c,k,m){return Math.atan2(m-c,k-n)};Ga=function(n,c){if(n===c)return 0;var k=Math.sin(n),m=Math.cos(n),d=Math.sin(c),f=Math.cos(c),k=k*d+m*f;return 1<=k?0:-1>=k?la:Math.acos(k)};Ha=function(n,c,k){var m=Math.sin(n),d=Math.cos(n),f=Math.sin(c),e=Math.cos(c);return Math.acos(m*f+d*e)>k?0<d*f-m*e?Ba(n+k):Ba(n-k):Ba(c)};Ia=function(n,c){var k=Math.sin(n),m=Math.cos(n),d=Math.sin(c),f=Math.cos(c);return 0>=m*d-k*f};Ma=function(n,c,k,m,d,f){if(0===k)return f?n:c;var e=Math.sin(k);k=Math.cos(k);
|
|
n-=m;c-=d;var a=n*e;n=n*k-c*e;c=c*k+a;return f?n+m:c+d};Na=function(n,c,k,m){n=k-n;c=m-c;return Math.sqrt(n*n+c*c)};Oa=function(n,c){return!n!==!c};Pa=function(n){for(var c in n)if(n.hasOwnProperty(c))return!0;return!1};Qa=function(n){for(var c in n)n.hasOwnProperty(c)&&delete n[c]};var v=+new Date;Ua=function(){if("undefined"!==typeof window.performance){var c=window.performance;if("undefined"!==typeof c.now)return c.now();if("undefined"!==typeof c.webkitNow)return c.webkitNow();if("undefined"!==
|
|
typeof c.mozNow)return c.mozNow();if("undefined"!==typeof c.msNow)return c.msNow()}return Date.now()-v};var s="undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;q.prototype.contains=function(c){return s?this.ld.has(c):this.ed.hasOwnProperty(c.toString())};q.prototype.add=function(c){if(s)this.ld.has(c)||(this.ld.add(c),this.xe=!1);else{var k=c.toString();this.ed.hasOwnProperty(k)||(this.ed[k]=c,this.Dg++,this.xe=!1)}return this};q.prototype.remove=function(c){s?this.ld.has(c)&&(this.ld["delete"](c),
|
|
this.xe=!1):(c=c.toString(),this.ed.hasOwnProperty(c)&&(delete this.ed[c],this.Dg--,this.xe=!1));return this};q.prototype.clear=function(){s?this.ld.clear():(this.ed={},this.Dg=0);this.cf.length=0;this.xe=!0;return this};q.prototype.Xd=function(){return s?0===this.ld.size:0===this.Dg};var u=null,c=0;q.prototype.Mt=function(){if(!this.xe){if(s)this.cf.length=this.ld.size,u=this.cf,c=0,this.ld.forEach(e),u=null,c=0;else{this.cf.length=this.Dg;var n,k=0;for(n in this.ed)this.ed.hasOwnProperty(n)&&(this.cf[k++]=
|
|
this.ed[n])}this.xe=!0}};q.prototype.Vf=function(){this.Mt();return this.cf};ba=q;d.prototype.add=function(c){this.y=c-this.Mj;this.hj=this.Sa+this.y;this.Mj=this.hj-this.Sa-this.y;this.Sa=this.hj};d.prototype.reset=function(){this.Sa=this.hj=this.y=this.Mj=0};Va=d;Wa=function(c){return c.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};f.prototype.jh=function(c){this.xo=c;this.Sc=c.length/2;this.Wa.length=c.length;this.Gh=this.Hh=-1;this.Cm=0};f.prototype.vf=function(){return!this.xo.length};f.prototype.Ca=
|
|
function(){for(var c=this.Wa,k=c[0],m=k,d=c[1],f=d,e,a,r=1,h=this.Sc;r<h;++r)a=2*r,e=c[a],a=c[a+1],e<k&&(k=e),e>m&&(m=e),a<d&&(d=a),a>f&&(f=a);this.Ch=k;this.Dh=m;this.Eh=d;this.Bh=f};f.prototype.ih=function(c,k,m){this.Wa.length=8;this.Sc=4;var d=this.Wa;d[0]=c.left-k;d[1]=c.top-m;d[2]=c.right-k;d[3]=c.top-m;d[4]=c.right-k;d[5]=c.bottom-m;d[6]=c.left-k;d[7]=c.bottom-m;this.Hh=c.right-c.left;this.Gh=c.bottom-c.top;this.Ca()};f.prototype.Of=function(c,k,m,d,f){this.Wa.length=8;this.Sc=4;var e=this.Wa;
|
|
e[0]=c.Ga-k;e[1]=c.Ha-m;e[2]=c.wb-k;e[3]=c.xb-m;e[4]=c.rb-k;e[5]=c.sb-m;e[6]=c.pb-k;e[7]=c.qb-m;this.Hh=d;this.Gh=f;this.Ca()};f.prototype.Jo=function(c){this.Sc=c.Sc;ta(this.Wa,c.Wa);this.Ch=c.Ch;this.Eh-c.Eh;this.Dh=c.Dh;this.Bh=c.Bh};f.prototype.jf=function(c,k,m){if(this.Hh!==c||this.Gh!==k||this.Cm!==m){this.Hh=c;this.Gh=k;this.Cm=m;var d,f,e,a,r,h=0,g=1,b=this.xo,p=this.Wa;0!==m&&(h=Math.sin(m),g=Math.cos(m));m=0;for(e=this.Sc;m<e;m++)d=2*m,f=d+1,a=b[d]*c,r=b[f]*k,p[d]=a*g-r*h,p[f]=r*g+a*h;
|
|
this.Ca()}};f.prototype.Ob=function(c,k){var m=this.Wa;if(c===m[0]&&k===m[1])return!0;var d,f,e,a=this.Sc,r=this.Ch-110,h=this.Eh-101,g=this.Dh+131,b=this.Bh+120,p,q,s=0,t=0;for(d=0;d<a;d++)f=2*d,e=2*((d+1)%a),p=m[f],f=m[f+1],q=m[e],e=m[e+1],oa(r,h,c,k,p,f,q,e)&&s++,oa(g,b,c,k,p,f,q,e)&&t++;return 1===s%2||1===t%2};f.prototype.vg=function(c,k,m){var d=c.Wa,f=this.Wa;if(this.Ob(d[0]+k,d[1]+m)||c.Ob(f[0]-k,f[1]-m))return!0;var e,a,r,h,g,b,p,q,s,t,l,v;e=0;for(h=this.Sc;e<h;e++)for(a=2*e,r=2*((e+1)%h),
|
|
q=f[a],a=f[a+1],s=f[r],t=f[r+1],r=0,p=c.Sc;r<p;r++)if(g=2*r,b=2*((r+1)%p),l=d[g]+k,g=d[g+1]+m,v=d[b]+k,b=d[b+1]+m,oa(q,a,s,t,l,g,v,b))return!0;return!1};Xa=f;r.prototype.jk=function(c,k,m){var d;d=this.cells[c];return d?(d=d[k])?d:m?(d=h(this,c,k),this.cells[c][k]=d):null:m?(d=h(this,c,k),this.cells[c]={},this.cells[c][k]=d):null};r.prototype.wh=function(c){return T(c/this.Fq)};r.prototype.xh=function(c){return T(c/this.Eq)};r.prototype.update=function(c,m,d){var f,e,a,r,h;if(m)for(f=m.left,e=m.right;f<=
|
|
e;++f)for(a=m.top,r=m.bottom;a<=r;++a)if(!d||!d.Ob(f,a))if(h=this.jk(f,a,!1))h.remove(c),h.Xd()&&(h.Wg.clear(),1E3>k.length&&k.push(h),this.cells[f][a]=null);if(d)for(f=d.left,e=d.right;f<=e;++f)for(a=d.top,r=d.bottom;a<=r;++a)m&&m.Ob(f,a)||this.jk(f,a,!0).vs(c)};r.prototype.Ao=function(c,k){var m,d,f,e,a,r;m=this.wh(c.left);f=this.xh(c.top);d=this.wh(c.right);for(a=this.xh(c.bottom);m<=d;++m)for(e=f;e<=a;++e)(r=this.jk(m,e,!1))&&r.br(k)};Ya=r;var k=[];g.prototype.Xd=function(){return this.Wg.Xd()};
|
|
g.prototype.vs=function(c){this.Wg.add(c)};g.prototype.remove=function(c){this.Wg.remove(c)};g.prototype.br=function(c){xa(c,this.Wg.Vf())};aa=g;var m="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");Za=function(c){return 0>=c||11<=c?"source-over":m[c-1]};$a=function(c,k,m){if(m)switch(c.ub=m.ONE,c.tb=m.ONE_MINUS_SRC_ALPHA,k){case 1:c.ub=m.ONE;c.tb=m.ONE;break;case 3:c.ub=m.ONE;c.tb=m.ZERO;break;case 4:c.ub=m.ONE_MINUS_DST_ALPHA;
|
|
c.tb=m.ONE;break;case 5:c.ub=m.DST_ALPHA;c.tb=m.ZERO;break;case 6:c.ub=m.ZERO;c.tb=m.SRC_ALPHA;break;case 7:c.ub=m.ONE_MINUS_DST_ALPHA;c.tb=m.ZERO;break;case 8:c.ub=m.ZERO;c.tb=m.ONE_MINUS_SRC_ALPHA;break;case 9:c.ub=m.DST_ALPHA;c.tb=m.ONE_MINUS_SRC_ALPHA;break;case 10:c.ub=m.ONE_MINUS_DST_ALPHA,c.tb=m.SRC_ALPHA}};ab=function(c){return ma(1E6*c)/1E6};bb=function(c,k){return"string"!==typeof c||"string"!==typeof k||c.length!==k.length?!1:c===k?!0:c.toLowerCase()===k.toLowerCase()}})();
|
|
var Xb="undefined"!==typeof Float32Array?Float32Array:Array;function Yb(b){var l=new Xb(3);b&&(l[0]=b[0],l[1]=b[1],l[2]=b[2]);return l}function Zb(b){var l=new Xb(16);b&&(l[0]=b[0],l[1]=b[1],l[2]=b[2],l[3]=b[3],l[4]=b[4],l[5]=b[5],l[6]=b[6],l[7]=b[7],l[8]=b[8],l[9]=b[9],l[10]=b[10],l[11]=b[11],l[12]=b[12],l[13]=b[13],l[14]=b[14],l[15]=b[15]);return l}
|
|
function $b(b,l){l[0]=b[0];l[1]=b[1];l[2]=b[2];l[3]=b[3];l[4]=b[4];l[5]=b[5];l[6]=b[6];l[7]=b[7];l[8]=b[8];l[9]=b[9];l[10]=b[10];l[11]=b[11];l[12]=b[12];l[13]=b[13];l[14]=b[14];l[15]=b[15]}function ac(b,l){var a=l[0],q=l[1];l=l[2];b[0]*=a;b[1]*=a;b[2]*=a;b[3]*=a;b[4]*=q;b[5]*=q;b[6]*=q;b[7]*=q;b[8]*=l;b[9]*=l;b[10]*=l;b[11]*=l}
|
|
function bc(b,l,a,q){q||(q=Zb());var e,d,f,r,h,g,t,p,v=b[0],s=b[1];b=b[2];d=a[0];f=a[1];e=a[2];a=l[1];g=l[2];v===l[0]&&s===a&&b===g?(b=q,b[0]=1,b[1]=0,b[2]=0,b[3]=0,b[4]=0,b[5]=1,b[6]=0,b[7]=0,b[8]=0,b[9]=0,b[10]=1,b[11]=0,b[12]=0,b[13]=0,b[14]=0,b[15]=1):(a=v-l[0],g=s-l[1],t=b-l[2],p=1/Math.sqrt(a*a+g*g+t*t),a*=p,g*=p,t*=p,l=f*t-e*g,e=e*a-d*t,d=d*g-f*a,(p=Math.sqrt(l*l+e*e+d*d))?(p=1/p,l*=p,e*=p,d*=p):d=e=l=0,f=g*d-t*e,r=t*l-a*d,h=a*e-g*l,(p=Math.sqrt(f*f+r*r+h*h))?(p=1/p,f*=p,r*=p,h*=p):h=r=f=0,
|
|
q[0]=l,q[1]=f,q[2]=a,q[3]=0,q[4]=e,q[5]=r,q[6]=g,q[7]=0,q[8]=d,q[9]=h,q[10]=t,q[11]=0,q[12]=-(l*v+e*s+d*b),q[13]=-(f*v+r*s+h*b),q[14]=-(a*v+g*s+t*b),q[15]=1)}
|
|
(function(){function b(d){this.pi=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.Dm=Yb([0,0,100]);this.Qn=Yb([0,0,0]);this.ep=Yb([0,1,0]);this.$l=Yb([1,1,1]);this.Uk=Zb();this.Ac=Zb();this.En=Zb();this.Wj=Zb();this.q=d;this.kn()}function l(d,f,e){this.q=d;this.kh=f;this.name=e;this.zc=d.getAttribLocation(f,"aPos");this.fe=d.getAttribLocation(f,"aTex");this.On=d.getUniformLocation(f,"matP");this.Cf=d.getUniformLocation(f,"matMV");this.Df=d.getUniformLocation(f,
|
|
"opacity");this.Pn=d.getUniformLocation(f,"samplerFront");this.Pg=d.getUniformLocation(f,"samplerBack");this.Qe=d.getUniformLocation(f,"destStart");this.Pe=d.getUniformLocation(f,"destEnd");this.Rk=d.getUniformLocation(f,"seconds");this.Qk=d.getUniformLocation(f,"pixelWidth");this.Pk=d.getUniformLocation(f,"pixelHeight");this.Og=d.getUniformLocation(f,"layerScale");this.Ng=d.getUniformLocation(f,"layerAngle");this.Qg=d.getUniformLocation(f,"viewOrigin");this.ss=!!(this.Qk||this.Pk||this.Rk||this.Pg||
|
|
this.Qe||this.Pe||this.Og||this.Ng||this.Qg);this.Df&&d.uniform1f(this.Df,1);this.Pn&&d.uniform1i(this.Pn,0);this.Pg&&d.uniform1i(this.Pg,1);this.Qe&&d.uniform2f(this.Qe,0,0);this.Pe&&d.uniform2f(this.Pe,1,1);this.Og&&d.uniform1f(this.Og,1);this.Ng&&d.uniform1f(this.Ng,0);this.Qg&&d.uniform2f(this.Qg,0,0);this.Fe=!1}function a(d,f){this.type=d;this.B=f;this.q=f.q;this.dd=this.Ec=this.jo=0;this.fa=this.Xc=null;this.Lo=[]}b.prototype.kn=function(){var d=this.q,f;this.Fn=1;this.Ne=this.ae=null;this.Im=
|
|
1;d.clearColor(0,0,0,0);d.clear(d.COLOR_BUFFER_BIT);d.enable(d.BLEND);d.blendFunc(d.ONE,d.ONE_MINUS_SRC_ALPHA);d.disable(d.CULL_FACE);d.disable(d.DEPTH_TEST);this.Hn=d.ONE;this.Cn=d.ONE_MINUS_SRC_ALPHA;this.kl=d.createBuffer();d.bindBuffer(d.ARRAY_BUFFER,this.kl);this.qh=Array(4);this.nh=Array(4);for(f=0;4>f;f++)this.qh[f]=d.createBuffer(),d.bindBuffer(d.ARRAY_BUFFER,this.qh[f]),this.nh[f]=d.createBuffer(),d.bindBuffer(d.ARRAY_BUFFER,this.nh[f]);this.yd=0;this.us=d.createBuffer();d.bindBuffer(d.ELEMENT_ARRAY_BUFFER,
|
|
this.us);this.Yl=new Float32Array(16E3);this.Ml=new Float32Array(16E3);this.bt=new Float32Array(32E3);for(var e=new Uint16Array(12E3),a=f=0;12E3>f;)e[f++]=a,e[f++]=a+1,e[f++]=a+2,e[f++]=a,e[f++]=a+2,e[f++]=a+3,a+=4;d.bufferData(d.ELEMENT_ARRAY_BUFFER,e,d.STATIC_DRAW);this.ll=this.sd=0;this.Ya=[];f=this.Tj({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.Ya.push(f);f=this.Tj({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.Ya.push(f);for(var g in cc)cc.hasOwnProperty(g)&&this.Ya.push(this.Tj(cc[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));d.activeTexture(d.TEXTURE0);d.bindTexture(d.TEXTURE_2D,null);this.Rd=[];this.vd=0;this.Rb=!1;this.Jm=this.Gg=-1;this.hg=null;this.Gr=d.createFramebuffer();this.Co=
|
|
null;this.re=Yb([0,0,0]);this.od(0)};b.prototype.Tj=function(d,f,e){var a=this.q,g=a.createShader(a.FRAGMENT_SHADER);a.shaderSource(g,d.src);a.compileShader(g);if(!a.getShaderParameter(g,a.COMPILE_STATUS))return a.deleteShader(g),null;var b=a.createShader(a.VERTEX_SHADER);a.shaderSource(b,f);a.compileShader(b);if(!a.getShaderParameter(b,a.COMPILE_STATUS))return a.deleteShader(g),a.deleteShader(b),null;f=a.createProgram();a.attachShader(f,g);a.attachShader(f,b);a.linkProgram(f);if(!a.getProgramParameter(f,
|
|
a.LINK_STATUS))return a.deleteShader(g),a.deleteShader(b),a.deleteProgram(f),null;a.useProgram(f);a.deleteShader(g);a.deleteShader(b);e=new l(a,f,e);e.ak=d.ak||0;e.bk=d.bk||0;e.Hm=!!d.Hm;e.xm=!!d.xm;e.G=d.G||[];d=0;for(g=e.G.length;d<g;d++)e.G[d][1]=a.getUniformLocation(f,e.G[d][0]),a.uniform1f(e.G[d][1],0);return e};b.prototype.qk=function(d){var e,a;e=0;for(a=this.Ya.length;e<a;e++)if(this.Ya[e].name===d)return e;return-1};b.prototype.wo=function(d,e,a){var h=this.Ac,g=this.Uk,b=[0,0,0,0,0,0,0,
|
|
0];b[0]=h[0]*d+h[4]*e+h[12];b[1]=h[1]*d+h[5]*e+h[13];b[2]=h[2]*d+h[6]*e+h[14];b[3]=h[3]*d+h[7]*e+h[15];b[4]=g[0]*b[0]+g[4]*b[1]+g[8]*b[2]+g[12]*b[3];b[5]=g[1]*b[0]+g[5]*b[1]+g[9]*b[2]+g[13]*b[3];b[6]=g[2]*b[0]+g[6]*b[1]+g[10]*b[2]+g[14]*b[3];b[7]=-b[2];0!==b[7]&&(b[7]=1/b[7],b[4]*=b[7],b[5]*=b[7],b[6]*=b[7],a[0]=(0.5*b[4]+0.5)*this.width,a[1]=(0.5*b[5]+0.5)*this.height)};b.prototype.Nf=function(d,e,a){if(this.width!==d||this.height!==e||a){this.Ud();this.width=d;this.height=e;this.q.viewport(0,0,
|
|
d,e);e=d/e;var h=this.Uk,g;g=1*Math.tan(45*Math.PI/360);e*=g;d=-e;a=-g;h||(h=Zb());var b=e-d,p=g-a;h[0]=2/b;h[1]=0;h[2]=0;h[3]=0;h[4]=0;h[5]=2/p;h[6]=0;h[7]=0;h[8]=(e+d)/b;h[9]=(g+a)/p;h[10]=-1001/999;h[11]=-1;h[12]=0;h[13]=0;h[14]=-2E3/999;h[15]=0;bc(this.Dm,this.Qn,this.ep,this.Ac);d=[0,0];e=[0,0];this.wo(0,0,d);this.wo(1,1,e);this.$l[0]=1/(e[0]-d[0]);this.$l[1]=-1/(e[1]-d[1]);d=0;for(e=this.Ya.length;d<e;d++)a=this.Ya[d],a.Fe=!1,a.On&&(this.q.useProgram(a.kh),this.q.uniformMatrix4fv(a.On,!1,this.Uk));
|
|
this.q.useProgram(this.Ya[this.Gg].kh);this.q.bindTexture(this.q.TEXTURE_2D,null);this.q.activeTexture(this.q.TEXTURE1);this.q.bindTexture(this.q.TEXTURE_2D,null);this.q.activeTexture(this.q.TEXTURE0);this.Ne=this.ae=null}};b.prototype.kd=function(){bc(this.Dm,this.Qn,this.ep,this.Ac);ac(this.Ac,this.$l)};b.prototype.translate=function(d,e){if(0!==d||0!==e){this.re[0]=d;this.re[1]=e;this.re[2]=0;var a=this.Ac,h=this.re,g=h[0],b=h[1],h=h[2];a[12]=a[0]*g+a[4]*b+a[8]*h+a[12];a[13]=a[1]*g+a[5]*b+a[9]*
|
|
h+a[13];a[14]=a[2]*g+a[6]*b+a[10]*h+a[14];a[15]=a[3]*g+a[7]*b+a[11]*h+a[15]}};b.prototype.scale=function(d,e){if(1!==d||1!==e)this.re[0]=d,this.re[1]=e,this.re[2]=1,ac(this.Ac,this.re)};b.prototype.xl=function(d){if(0!==d){var e=this.Ac,a,h=Math.sin(d);d=Math.cos(d);var g=e[0],b=e[1],p=e[2],q=e[3],s=e[4],l=e[5],c=e[6],k=e[7];a?e!==a&&(a[8]=e[8],a[9]=e[9],a[10]=e[10],a[11]=e[11],a[12]=e[12],a[13]=e[13],a[14]=e[14],a[15]=e[15]):a=e;a[0]=g*d+s*h;a[1]=b*d+l*h;a[2]=p*d+c*h;a[3]=q*d+k*h;a[4]=g*-h+s*d;a[5]=
|
|
b*-h+l*d;a[6]=p*-h+c*d;a[7]=q*-h+k*d}};b.prototype.rd=function(){for(var d=!1,e=0;16>e;e++)if(this.En[e]!==this.Ac[e]){d=!0;break}d&&(d=this.Tc(),d.type=5,d.fa?$b(this.Ac,d.fa):d.fa=Zb(this.Ac),$b(this.Ac,this.En),this.Rb=!1)};a.prototype.Yq=function(){this.q.bindTexture(this.q.TEXTURE_2D,this.Xc)};a.prototype.Zq=function(){var d=this.q;d.activeTexture(d.TEXTURE1);d.bindTexture(d.TEXTURE_2D,this.Xc);d.activeTexture(d.TEXTURE0)};a.prototype.Vq=function(){var d=this.jo,e=this.B;e.Im=d;e=e.hg;e.Df&&
|
|
this.q.uniform1f(e.Df,d)};a.prototype.Sq=function(){this.q.drawElements(this.q.TRIANGLES,this.dd,this.q.UNSIGNED_SHORT,2*this.Ec)};a.prototype.Uq=function(){this.q.blendFunc(this.Ec,this.dd)};a.prototype.$q=function(){var d,e,a,h=this.B.Ya,g=this.B.Jm;d=0;for(e=h.length;d<e;d++)a=h[d],d===g&&a.Cf?(this.q.uniformMatrix4fv(a.Cf,!1,this.fa),a.Fe=!0):a.Fe=!1;$b(this.fa,this.B.Wj)};a.prototype.Tq=function(){var d=this.q,e=this.B;this.Xc?(e.Ne===this.Xc&&(d.activeTexture(d.TEXTURE1),d.bindTexture(d.TEXTURE_2D,
|
|
null),e.Ne=null,d.activeTexture(d.TEXTURE0)),d.bindFramebuffer(d.FRAMEBUFFER,e.Gr),d.framebufferTexture2D(d.FRAMEBUFFER,d.COLOR_ATTACHMENT0,d.TEXTURE_2D,this.Xc,0)):(d.framebufferTexture2D(d.FRAMEBUFFER,d.COLOR_ATTACHMENT0,d.TEXTURE_2D,null,0),d.bindFramebuffer(d.FRAMEBUFFER,null))};a.prototype.Qq=function(){var d=this.q;0===this.Ec?(d.clearColor(this.fa[0],this.fa[1],this.fa[2],this.fa[3]),d.clear(d.COLOR_BUFFER_BIT)):(d.enable(d.SCISSOR_TEST),d.scissor(this.fa[0],this.fa[1],this.fa[2],this.fa[3]),
|
|
d.clearColor(0,0,0,0),d.clear(this.q.COLOR_BUFFER_BIT),d.disable(d.SCISSOR_TEST))};a.prototype.Rq=function(){var d=this.q,e=this.B,a=e.Ya[1];d.useProgram(a.kh);!a.Fe&&a.Cf&&(d.uniformMatrix4fv(a.Cf,!1,e.Wj),a.Fe=!0);d.enableVertexAttribArray(a.zc);d.bindBuffer(d.ARRAY_BUFFER,e.kl);d.vertexAttribPointer(a.zc,4,d.FLOAT,!1,0,0);d.drawArrays(d.POINTS,this.Ec/4,this.dd);a=e.hg;d.useProgram(a.kh);0<=a.zc&&(d.enableVertexAttribArray(a.zc),d.bindBuffer(d.ARRAY_BUFFER,e.qh[e.yd]),d.vertexAttribPointer(a.zc,
|
|
2,d.FLOAT,!1,0,0));0<=a.fe&&(d.enableVertexAttribArray(a.fe),d.bindBuffer(d.ARRAY_BUFFER,e.nh[e.yd]),d.vertexAttribPointer(a.fe,2,d.FLOAT,!1,0,0))};a.prototype.Wq=function(){var d=this.q,e=this.B,a=e.Ya[this.Ec];e.Jm=this.Ec;e.hg=a;d.useProgram(a.kh);!a.Fe&&a.Cf&&(d.uniformMatrix4fv(a.Cf,!1,e.Wj),a.Fe=!0);a.Df&&d.uniform1f(a.Df,e.Im);0<=a.zc&&(d.enableVertexAttribArray(a.zc),d.bindBuffer(d.ARRAY_BUFFER,e.qh[e.yd]),d.vertexAttribPointer(a.zc,2,d.FLOAT,!1,0,0));0<=a.fe&&(d.enableVertexAttribArray(a.fe),
|
|
d.bindBuffer(d.ARRAY_BUFFER,e.nh[e.yd]),d.vertexAttribPointer(a.fe,2,d.FLOAT,!1,0,0))};a.prototype.Xq=function(){var d,e,a=this.B.hg,h=this.q;d=this.fa;a.Pg&&this.B.Ne!==this.Xc&&(h.activeTexture(h.TEXTURE1),h.bindTexture(h.TEXTURE_2D,this.Xc),this.B.Ne=this.Xc,h.activeTexture(h.TEXTURE0));a.Qk&&h.uniform1f(a.Qk,d[0]);a.Pk&&h.uniform1f(a.Pk,d[1]);a.Qe&&h.uniform2f(a.Qe,d[2],d[3]);a.Pe&&h.uniform2f(a.Pe,d[4],d[5]);a.Og&&h.uniform1f(a.Og,d[6]);a.Ng&&h.uniform1f(a.Ng,d[7]);a.Qg&&h.uniform2f(a.Qg,d[8],
|
|
d[9]);a.Rk&&h.uniform1f(a.Rk,Ua()/1E3);if(a.G.length)for(d=0,e=a.G.length;d<e;d++)h.uniform1f(a.G[d][1],this.Lo[d])};b.prototype.Tc=function(){this.vd===this.Rd.length&&this.Rd.push(new a(0,this));return this.Rd[this.vd++]};b.prototype.Ud=function(){if(0!==this.vd&&!this.q.isContextLost()){var d=this.q;0<this.ll&&(d.bindBuffer(d.ARRAY_BUFFER,this.kl),d.bufferData(d.ARRAY_BUFFER,this.bt.subarray(0,this.ll),d.STREAM_DRAW),e&&0<=e.zc&&"<point>"===e.name&&d.vertexAttribPointer(e.zc,4,d.FLOAT,!1,0,0));
|
|
if(0<this.sd){var e=this.hg;d.bindBuffer(d.ARRAY_BUFFER,this.qh[this.yd]);d.bufferData(d.ARRAY_BUFFER,this.Yl.subarray(0,this.sd),d.STREAM_DRAW);e&&0<=e.zc&&"<point>"!==e.name&&d.vertexAttribPointer(e.zc,2,d.FLOAT,!1,0,0);d.bindBuffer(d.ARRAY_BUFFER,this.nh[this.yd]);d.bufferData(d.ARRAY_BUFFER,this.Ml.subarray(0,this.sd),d.STREAM_DRAW);e&&0<=e.fe&&"<point>"!==e.name&&d.vertexAttribPointer(e.fe,2,d.FLOAT,!1,0,0)}for(var a,d=0,e=this.vd;d<e;d++)switch(a=this.Rd[d],a.type){case 1:a.Sq();break;case 2:a.Yq();
|
|
break;case 3:a.Vq();break;case 4:a.Uq();break;case 5:a.$q();break;case 6:a.Tq();break;case 7:a.Qq();break;case 8:a.Rq();break;case 9:a.Wq();break;case 10:a.Xq();break;case 11:a.Zq()}this.ll=this.sd=this.vd=0;this.Rb=!1;this.yd++;4<=this.yd&&(this.yd=0)}};b.prototype.Ze=function(d){if(d!==this.Fn){var e=this.Tc();e.type=3;this.Fn=e.jo=d;this.Rb=!1}};b.prototype.Wb=function(d){if(d!==this.ae){var e=this.Tc();e.type=2;this.ae=e.Xc=d;this.Rb=!1}};b.prototype.je=function(e,a){if(e!==this.Hn||a!==this.Cn){var b=
|
|
this.Tc();b.type=4;b.Ec=e;b.dd=a;this.Hn=e;this.Cn=a;this.Rb=!1}};b.prototype.Ho=function(){this.je(this.q.ONE,this.q.ONE_MINUS_SRC_ALPHA)};b.prototype.Xi=function(e,a,b,h,g,q,p,l){15992<=this.sd&&this.Ud();var s=this.sd,u=this.Yl,c=this.Ml;if(this.Rb)this.Rd[this.vd-1].dd+=6;else{var k=this.Tc();k.type=1;k.Ec=3*(s/4);k.dd=6;this.Rb=!0}u[s]=e;c[s++]=0;u[s]=a;c[s++]=0;u[s]=b;c[s++]=1;u[s]=h;c[s++]=0;u[s]=g;c[s++]=1;u[s]=q;c[s++]=1;u[s]=p;c[s++]=0;u[s]=l;c[s++]=1;this.sd=s};b.prototype.jd=function(e,
|
|
a,b,h,g,q,p,l,s){15992<=this.sd&&this.Ud();var u=this.sd,c=this.Yl,k=this.Ml;if(this.Rb)this.Rd[this.vd-1].dd+=6;else{var m=this.Tc();m.type=1;m.Ec=3*(u/4);m.dd=6;this.Rb=!0}var m=s.left,n=s.top,E=s.right;s=s.bottom;c[u]=e;k[u++]=m;c[u]=a;k[u++]=n;c[u]=b;k[u++]=E;c[u]=h;k[u++]=n;c[u]=g;k[u++]=E;c[u]=q;k[u++]=s;c[u]=p;k[u++]=m;c[u]=l;k[u++]=s;this.sd=u};b.prototype.od=function(e){if(this.Gg!==e){if(!this.Ya[e]){if(0===this.Gg)return;e=0}var a=this.Tc();a.type=9;this.Gg=a.Ec=e;this.Rb=!1}};b.prototype.bh=
|
|
function(e){e=this.Ya[e];return!(!e.Qe&&!e.Pe)};b.prototype.ol=function(e){e=this.Ya[e];return!!(e.Qe||e.Pe||e.Hm)};b.prototype.gt=function(e){e=this.Ya[e];return 0!==e.ak||0!==e.bk};b.prototype.Ur=function(e){return this.Ya[e].ak};b.prototype.Vr=function(e){return this.Ya[e].bk};b.prototype.Wr=function(e,a){return this.Ya[e].G[a][2]};b.prototype.Ui=function(e){return this.Ya[e].xm};b.prototype.Mf=function(e,a,b,h,g,q,p,l,s,u,c,k){var m=this.Ya[this.Gg],n,E;if(m.ss||k.length){n=this.Tc();n.type=10;
|
|
n.fa?$b(this.Ac,n.fa):n.fa=Zb();E=n.fa;E[0]=a;E[1]=b;E[2]=h;E[3]=g;E[4]=q;E[5]=p;E[6]=l;E[7]=s;E[8]=u;E[9]=c;n.Xc=m.Pg?e:null;if(k.length)for(b=n.Lo,b.length=k.length,e=0,a=k.length;e<a;e++)b[e]=k[e];this.Rb=!1}};b.prototype.clear=function(e,a,b,h){var g=this.Tc();g.type=7;g.Ec=0;g.fa||(g.fa=Zb());g.fa[0]=e;g.fa[1]=a;g.fa[2]=b;g.fa[3]=h;this.Rb=!1};b.prototype.clearRect=function(e,a,b,h){var g=this.Tc();g.type=7;g.Ec=1;g.fa||(g.fa=Zb());g.fa[0]=e;g.fa[1]=a;g.fa[2]=b;g.fa[3]=h;this.Rb=!1};b.prototype.et=
|
|
function(){this.Ud();this.q.flush()};var q=[],e={};b.prototype.Gi=function(a,f,b,h){f=!!f;b=!!b;var g=a.src+","+f+","+b+(f?",undefined":""),l=null;if("undefined"!==typeof a.src&&e.hasOwnProperty(g))return l=e[g],l.Fh++,l;this.Ud();var p=this.q,v=ga(a.width)&&ga(a.height),l=p.createTexture();p.bindTexture(p.TEXTURE_2D,l);p.pixelStorei(p.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var s=p.RGBA,u=p.RGBA,c=p.UNSIGNED_BYTE;if(h&&!this.pi)switch(h){case 1:u=s=p.RGB;break;case 2:c=p.UNSIGNED_SHORT_4_4_4_4;break;
|
|
case 3:c=p.UNSIGNED_SHORT_5_5_5_1;break;case 4:u=s=p.RGB,c=p.UNSIGNED_SHORT_5_6_5}!v&&f?(h=document.createElement("canvas"),h.width=ha(a.width),h.height=ha(a.height),h.getContext("2d").drawImage(a,0,0,a.width,a.height,0,0,h.width,h.height),p.texImage2D(p.TEXTURE_2D,0,s,u,c,h)):p.texImage2D(p.TEXTURE_2D,0,s,u,c,a);f?(p.texParameteri(p.TEXTURE_2D,p.TEXTURE_WRAP_S,p.REPEAT),p.texParameteri(p.TEXTURE_2D,p.TEXTURE_WRAP_T,p.REPEAT)):(p.texParameteri(p.TEXTURE_2D,p.TEXTURE_WRAP_S,p.CLAMP_TO_EDGE),p.texParameteri(p.TEXTURE_2D,
|
|
p.TEXTURE_WRAP_T,p.CLAMP_TO_EDGE));b?(p.texParameteri(p.TEXTURE_2D,p.TEXTURE_MAG_FILTER,p.LINEAR),v?(p.texParameteri(p.TEXTURE_2D,p.TEXTURE_MIN_FILTER,p.LINEAR_MIPMAP_LINEAR),p.generateMipmap(p.TEXTURE_2D)):p.texParameteri(p.TEXTURE_2D,p.TEXTURE_MIN_FILTER,p.LINEAR)):(p.texParameteri(p.TEXTURE_2D,p.TEXTURE_MAG_FILTER,p.NEAREST),p.texParameteri(p.TEXTURE_2D,p.TEXTURE_MIN_FILTER,p.NEAREST));p.bindTexture(p.TEXTURE_2D,null);this.ae=null;l.dg=a.width;l.cg=a.height;l.Fh=1;l.Bm=g;q.push(l);return e[g]=
|
|
l};b.prototype.xd=function(e,a,b,h){this.Ud();var g=this.q;this.pi&&(h=!1);var l=g.createTexture();g.bindTexture(g.TEXTURE_2D,l);g.texImage2D(g.TEXTURE_2D,0,g.RGBA,e,a,0,g.RGBA,h?g.UNSIGNED_SHORT_4_4_4_4:g.UNSIGNED_BYTE,null);g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_S,g.CLAMP_TO_EDGE);g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,g.CLAMP_TO_EDGE);g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,b?g.LINEAR:g.NEAREST);g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,b?g.LINEAR:g.NEAREST);g.bindTexture(g.TEXTURE_2D,
|
|
null);this.ae=null;l.dg=e;l.cg=a;q.push(l);return l};b.prototype.Qt=function(e,a,b){this.Ud();var h=this.q;this.pi&&(b=!1);h.bindTexture(h.TEXTURE_2D,a);h.pixelStorei(h.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);h.texImage2D(h.TEXTURE_2D,0,h.RGBA,h.RGBA,b?h.UNSIGNED_SHORT_4_4_4_4:h.UNSIGNED_BYTE,e);h.bindTexture(h.TEXTURE_2D,null);this.ae=null};b.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.Fh&&1<a.Fh?a.Fh--:(this.Ud(),a===this.ae&&(this.q.bindTexture(this.q.TEXTURE_2D,null),this.ae=null),
|
|
a===this.Ne&&(this.q.activeTexture(this.q.TEXTURE1),this.q.bindTexture(this.q.TEXTURE_2D,null),this.q.activeTexture(this.q.TEXTURE0),this.Ne=null),ya(q,a),"undefined"!==typeof a.Bm&&delete e[a.Bm],this.q.deleteTexture(a)))};b.prototype.md=function(e){if(e!==this.Co){var a=this.Tc();a.type=6;this.Co=a.Xc=e;this.Rb=!1}};cb=b})();
|
|
(function(){function b(c){if(c&&(c.getContext||c.dc)&&!c.c2runtime){c.c2runtime=this;var k=this;this.Bk=/crosswalk/i.test(navigator.userAgent)||/xwalk/i.test(navigator.userAgent)||!("undefined"===typeof window.c2isCrosswalk||!window.c2isCrosswalk);this.Je=!this.Bk&&"undefined"!==typeof window.device&&("undefined"!==typeof window.device.cordova||"undefined"!==typeof window.device.phonegap);this.Ab=!!c.dc;this.sf="undefined"!==typeof window.AppMobi||this.Ab;if(this.wc=!!window.c2cocoonjs)CocoonJS.App.onSuspended.addEventListener(function(){k.setSuspended(!0)}),
|
|
CocoonJS.App.onActivated.addEventListener(function(){k.setSuspended(!1)});this.Aa=this.Ab||this.wc;this.un=/tizen/i.test(navigator.userAgent);this.oi=/android/i.test(navigator.userAgent)&&!this.un;this.pi=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.Hk=/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent);this.yn=/ipad/i.test(navigator.userAgent);this.Gk=this.Hk||this.yn;this.Gs=this.Hk&&/os\s6/i.test(navigator.userAgent);this.xg=/chrome/i.test(navigator.userAgent)||
|
|
/chromium/i.test(navigator.userAgent);this.zs=/amazonwebappplatform/i.test(navigator.userAgent);this.qn=/firefox/i.test(navigator.userAgent);this.sn=!this.xg&&/safari/i.test(navigator.userAgent);this.Es=/windows/i.test(navigator.userAgent);this.Zd="undefined"!==typeof window.c2nodewebkit||/nodewebkit/i.test(navigator.userAgent);this.vn=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.wn=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.As=!("undefined"===
|
|
typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.pn=this.oi&&!this.xg&&!this.qn&&!this.zs&&!this.Aa;this.devicePixelRatio=1;this.Yd=this.Je||this.Bk||this.sf||this.wc||this.oi||this.Gk||this.wn||this.As||this.un;this.Yd||(this.Yd=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet)/i.test(navigator.userAgent));"undefined"===typeof cr_is_preview||this.Zd||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)||(this.Zd=!0);this.Bs="undefined"!==
|
|
typeof cr_is_preview&&-1<window.location.search.indexOf("debug");this.canvas=c;this.Ih=document.getElementById("c2canvasdiv");this.ka=this.B=this.q=null;this.ek="";this.$h=!1;this.ao=this.bo=0;this.canvas.oncontextmenu=function(c){c.preventDefault&&c.preventDefault();return!1};this.canvas.onselectstart=function(c){c.preventDefault&&c.preventDefault();return!1};this.Ab&&(window.c2runtime=this);this.Zd&&(window.av=function(c){c.preventDefault();return!1},window.bv=function(c){c.preventDefault();return!1},
|
|
require("nw.gui").App.clearCache());this.width=c.width;this.height=c.height;this.S=this.width;this.R=this.height;this.Nh=this.width;this.Mh=this.height;this.Ig=window.innerWidth;this.Hg=window.innerHeight;this.ja=!0;this.zg=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.u=[];this.Ma=[];this.Lk={};this.Pc=[];this.$j={};this.Ce=[];this.Ld=[];this.oj=[];this.uq=[];this.vq=[];this.zn=this.Qo=null;this.ad=new ba;this.Ck=!1;this.Nc=0;this.Ek=!1;this.Hb=[];this.Fd=
|
|
this.Cb=this.Ei=this.Bl="";this.lh=this.Oo=!1;this.Sj=this.Rg=this.Td=this.Ae=0;this.Sf=1;this.yc=new Va;this.wi=0;this.Rn=!0;this.Li=this.di=this.Xh=this.qd=this.Jg=this.dk=0;this.eg=null;this.Sh=[];this.Zj=[];this.Vh=-1;this.Sk=[[]];this.Tl=this.Ii=0;this.Wi(null);this.jg=this.Xn=this.Vg=0;this.mh=[];this.lj=this.Yi=0;this.Cg=!0;this.Bf=0;this.yg=!1;this.zt=0;this.qs=!1;this.Jk=0;this.xc=this.ki=this.rl=!1;this.$k=new ba;this.al=new ba;this.Zi=[];this.Wc=new Xa([]);this.Ll=new Xa([]);this.hf=[];
|
|
this.ff={};this.kf={};this.gf={};this.Wf={};this.zm={};this.Nn=this.Ci=this.Sb=this.kc=this.Mn=this.Bi=this.ma=null;this.Uf=this.Fk=!1;this.fk=[null,null];this.Ee=0;this.Rm="";this.Te={};this.fj=this.Af=null;this.load();this.devicePixelRatio=(this.Ke=!this.Aa&&this.Nt&&!this.pn)?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.ob();var m,n=this.Ij&&!(this.Zd||this.vn||this.wn);0<this.Pb&&this.setSize(window.innerWidth,window.innerHeight,
|
|
!0);try{!this.dr||!this.wc&&this.Aa||(m={alpha:n,depth:!1,antialias:!1,failIfMajorPerformanceCaveat:!0},this.q=c.getContext("webgl",m)||c.getContext("experimental-webgl",m))}catch(e){}if(this.q){this.Aa||(this.jb=document.createElement("canvas"),jQuery(this.jb).appendTo(this.canvas.parentNode),this.jb.oncontextmenu=G(!1),this.jb.onselectstart=G(!1),this.jb.width=this.Nh,this.jb.height=this.Mh,jQuery(this.jb).css({width:this.Nh+"px",height:this.Mh+"px"}),this.uo(),this.il=this.jb.getContext("2d"));
|
|
this.B=new cb(this.q,this.Yd);this.B.Nf(c.width,c.height);this.ka=null;this.canvas.addEventListener("webglcontextlost",function(c){c.preventDefault();k.Ns();console.log("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){k.B.kn();k.B.Nf(k.B.width,k.B.height,!0);k.kc=null;k.Sb=null;k.fk[0]=null;k.fk[1]=null;k.Os();k.ja=!0;console.log("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);var a,d,f,h,b,g;
|
|
c=0;for(m=this.u.length;c<m;c++)for(d=this.u[c],n=0,a=d.M.length;n<a;n++)h=d.M[n],h.kb=this.B.qk(h.id),this.Uf=this.Uf||this.B.bh(h.kb);c=0;for(m=this.Pc.length;c<m;c++){b=this.Pc[c];n=0;for(a=b.M.length;n<a;n++)h=b.M[n],h.kb=this.B.qk(h.id);n=0;for(a=b.X.length;n<a;n++)for(g=b.X[n],d=0,f=g.M.length;d<f;d++)h=g.M[d],h.kb=this.B.qk(h.id),this.Uf=this.Uf||this.B.bh(h.kb)}}else{if(0<this.Pb&&this.Ab){this.canvas=null;document.oncontextmenu=G(!1);document.onselectstart=G(!1);this.ka=AppMobi.canvas.getContext("2d");
|
|
try{this.ka.samplingMode=this.aa?"smooth":"sharp",this.ka.globalScale=1,this.ka.HTML5CompatibilityMode=!0,this.ka.imageSmoothingEnabled=this.aa}catch(p){}0!==this.width&&0!==this.height&&(this.ka.width=this.width,this.ka.height=this.height)}this.ka||(m=this.wc?{antialias:!!this.aa,alpha:n}:{alpha:n},this.ka=c.getContext("2d",m),this.ka.webkitImageSmoothingEnabled=this.aa,this.ka.mozImageSmoothingEnabled=this.aa,this.ka.msImageSmoothingEnabled=this.aa,this.ka.imageSmoothingEnabled=this.aa);this.il=
|
|
this.jb=null}this.jj=function(){k.Za()};window==window.top||this.Aa||this.vn||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.wc&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(L("Reloading for continuous preview"),this.Ei="__c2_continuouspreview",this.lh=!0),this.$s&&!this.Yd&&(jQuery(window).focus(function(){k.setSuspended(!1)}),
|
|
jQuery(window).blur(function(){k.setSuspended(!0)})));0===this.Pb&&this.Ke&&1<this.devicePixelRatio&&this.setSize(this.cb,this.bb,!0);this.$o();this.go();this.P={}}}function l(c){c.target.result.createObjectStore("saves",{keyPath:"slot"})}function a(c,k,m,n){var e=indexedDB.open("_C2SaveStates");e.onupgradeneeded=l;e.onerror=n;e.onsuccess=function(e){e=e.target.result;e.onerror=n;e.transaction(["saves"],"readwrite").objectStore("saves").put({slot:c,data:k}).onsuccess=m}}function q(c,k,m){var n=indexedDB.open("_C2SaveStates");
|
|
n.onupgradeneeded=l;n.onerror=m;n.onsuccess=function(n){n=n.target.result;n.onerror=m;var e=n.transaction(["saves"]).objectStore("saves").get(c);e.onsuccess=function(){e.result?k(e.result.data):k(null)}}}function e(){L("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?window.location.reload(!0):window.location+="?continuous"}function d(c){var k,m={};for(k in c)!c.hasOwnProperty(k)||c[k]instanceof ba||c[k]&&"undefined"!==typeof c[k].Ru||
|
|
(m[k]=c[k]);return m}b.prototype.setSize=function(c,k,m){var n=0,e=0,a=0,d=0,d=0,f=this.Gs&&this.sn&&!navigator.standalone&&!this.Aa&&!this.Je;f&&(k+=60);if(this.Ig!==c||this.Hg!==k||m){this.Ig=c;this.Hg=k;var h=this.Pb,b=document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.yg;if(b||0!==this.Pb||m)b&&0<this.Ee&&(h=this.Ee),4<=h?(m=this.cb/this.bb,c/k>m?(a=k*m,5===h?(d=a/this.cb,1<d?d=Math.floor(d):1>d&&(d=1/Math.ceil(1/d)),a=this.cb*d,d*=this.bb,
|
|
n=(c-a)/2,e=(k-d)/2,c=a,k=d):(n=(c-a)/2,c=a)):(d=c/m,5===h?(d/=this.bb,1<d?d=Math.floor(d):1>d&&(d=1/Math.ceil(1/d)),a=this.cb*d,d*=this.bb,n=(c-a)/2,e=(k-d)/2,c=a):e=(k-d)/2,k=d),b&&!this.Zd&&(e=n=0),n=Math.floor(n),e=Math.floor(e),c=Math.floor(c),k=Math.floor(k)):this.Zd&&this.yg&&0===this.Tm&&(n=Math.floor((c-this.cb)/2),e=Math.floor((k-this.bb)/2),c=this.cb,k=this.bb),2>h&&(this.bg=this.devicePixelRatio),this.Ke&&this.yn&&1<this.devicePixelRatio&&(1024<=c&&(c=1023),1024<=k&&(k=1023)),b=this.devicePixelRatio,
|
|
this.Nh=c,this.Mh=k,this.width=Math.round(c*b),this.height=Math.round(k*b),this.ja=!0,this.mp?(this.S=this.width,this.R=this.height,this.tc=!0):this.width<this.cb&&this.height<this.bb||1===h?(this.S=this.width,this.R=this.height,this.tc=!0):(this.S=this.cb,this.R=this.bb,this.tc=!1,2===h?(m=this.cb/this.bb,h=this.Ig/this.Hg,h<m?this.S=this.R*h:h>m&&(this.R=this.S/h)):3===h&&(m=this.cb/this.bb,h=this.Ig/this.Hg,h>m?this.S=this.R*h:h<m&&(this.R=this.S/h))),this.Ih&&!this.Aa&&(jQuery(this.Ih).css({width:c+
|
|
"px",height:k+"px","margin-left":n,"margin-top":e}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:c+"px",height:k+"px"})),this.canvas&&(this.canvas.width=Math.round(c*b),this.canvas.height=Math.round(k*b),this.Ke&&jQuery(this.canvas).css({width:c+"px",height:k+"px"})),this.jb&&(this.jb.width=c,this.jb.height=k,jQuery(this.jb).css({width:c+"px",height:k+"px"})),this.B&&this.B.Nf(Math.round(c*b),Math.round(k*b)),this.Ab&&this.ka&&(this.ka.width=c,this.ka.height=k),this.ka&&(this.ka.webkitImageSmoothingEnabled=
|
|
this.aa,this.ka.mozImageSmoothingEnabled=this.aa,this.ka.msImageSmoothingEnabled=this.aa,this.ka.imageSmoothingEnabled=this.aa),this.$o(),f&&window.setTimeout(function(){window.scrollTo(0,1)},100)}};b.prototype.$o=function(){if(this.xq&&0!==this.gl){var c="portrait";2===this.gl&&(c="landscape");screen.lockOrientation?screen.lockOrientation(c):screen.webkitLockOrientation?screen.webkitLockOrientation(c):screen.mozLockOrientation?screen.mozLockOrientation(c):screen.msLockOrientation&&screen.msLockOrientation(c)}};
|
|
b.prototype.Ns=function(){this.Fk=!0;var c,k,m;c=0;for(k=this.u.length;c<k;c++)m=this.u[c],m.Mi&&m.Mi()};b.prototype.Os=function(){this.Fk=!1;var c,k,m;c=0;for(k=this.u.length;c<k;c++)m=this.u[c],m.el&&m.el()};b.prototype.uo=function(){if(!this.Aa){var c=document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.yg?jQuery(this.canvas).offset():jQuery(this.canvas).position();c.position="absolute";jQuery(this.jb).css(c)}};var f=window.cancelAnimationFrame||
|
|
window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;b.prototype.setSuspended=function(c){var k;if(c&&!this.zg)for(L("[Construct 2] Suspending"),this.zg=!0,0!==this.Yi&&f&&f(this.Yi),0!==this.lj&&clearTimeout(this.lj),c=0,k=this.mh.length;c<k;c++)this.mh[c](!0);else if(!c&&this.zg){L("[Construct 2] Resuming");this.zg=!1;this.wi=Ua();this.Jg=Ua();c=this.Rg=this.di=0;for(k=this.mh.length;c<k;c++)this.mh[c](!1);this.Za()}};b.prototype.um=
|
|
function(c){this.mh.push(c)};b.prototype.load=function(){var c=dc();this.name=c[0];this.Sm=c[1];this.Pb=c[11];this.Tm=c[11];this.cb=c[9];this.bb=c[10];this.qo=this.cb/2;this.ro=this.bb/2;this.Aa&&(4<=c[11]||0===c[11])&&(L("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.Tm=this.Pb=3);this.Wl=c[17];this.Mg=c[18];0===this.Mg&&(this.Af=new Image,this.Af.src="loading-logo.png");this.Vg=c[20];this.pd=new V(this);var k,m,n,e,a,d,f,
|
|
h,b;k=0;for(m=c[2].length;k<m;k++)f=c[2][k],fb(f),b=new f[0](this),b.Il=f[1],b.$d=f[2],b.Un=f[9],b.Z&&b.Z(),this.plugins.push(b);c=dc();k=0;for(m=c[3].length;k<m;k++){f=c[3][k];a=f[1];b=null;n=0;for(e=this.plugins.length;n<e;n++)if(this.plugins[n]instanceof a){b=this.plugins[n];break}var g=new b.Da(b);g.name=f[0];g.I=f[2];g.Ak=f[3].slice(0);g.Pt=f[3].length;g.yq=f[4];g.Jr=f[5];g.V=f[11];g.I?(g.Gf=[],g.cd=this.jg++,g.ta=null):(g.Gf=null,g.cd=-1,g.ta=[]);g.Yh=null;g.of=null;g.Nm=null;g.ic=!1;g.Gb=null;
|
|
f[6]?(g.Nl=f[6][0],g.Ol=f[6][1],g.Pl=f[6][2]):(g.Nl=null,g.Ol=0,g.Pl=0);g.Mb=f[7]?f[7]:null;g.index=k;g.i=[];g.Qh=[];g.me=[new gb(g)];g.zd=0;g.rc=null;g.Nq=0;g.Qf=!0;g.pj=hb;g.Nr=ib;g.Tr=jb;g.ca=kb;g.eh=lb;g.Vi=mb;g.Ve=nb;g.ei=ob;g.ik=pb;g.mk=qb;g.Lc=ub;g.Zm=vb;g.Kh=new Ya(this.cb,this.bb);g.yh=!0;g.zh=!1;g.P={};g.toString=wb;g.Ma=[];n=0;for(e=f[8].length;n<e;n++){h=f[8][n];var p=h[1],r=null;a=0;for(d=this.Ma.length;a<d;a++)if(this.Ma[a]instanceof p){r=this.Ma[a];break}r||(r=new p(this),r.Ki=[],r.Yk=
|
|
new ba,r.Z&&r.Z(),this.Ma.push(r),ec&&r instanceof ec&&(this.Qo=r),Wb.Is&&r instanceof Wb.Is&&(this.zn=r));-1===r.Ki.indexOf(g)&&r.Ki.push(g);a=new r.Da(r,g);a.name=h[0];a.V=h[2];a.Z();g.Ma.push(a)}g.global=f[9];g.Dk=f[10];g.M=[];n=0;for(e=f[12].length;n<e;n++)g.M.push({id:f[12][n][0],name:f[12][n][1],kb:-1,td:!0,index:n});g.jv=f[13];this.Wl&&!g.I&&!g.Dk&&b.$d||g.Z();g.name&&(this.types[g.name]=g);this.u.push(g);b.Il&&(n=new b.ra(g),n.uid=this.Vg++,n.yo=this.Xn++,n.Ge=0,n.qg=xb,n.toString=yb,n.A=
|
|
f[14],n.Z(),g.i.push(n),this.Te[n.uid.toString()]=n)}k=0;for(m=c[4].length;k<m;k++)for(a=c[4][k],d=this.u[a[0]],n=1,e=a.length;n<e;n++)f=this.u[a[n]],f.ta.push(d),d.Gf.push(f);k=0;for(m=c[23].length;k<m;k++){a=c[23][k];d=[];n=0;for(e=a.length;n<e;n++)d.push(this.u[a[n]]);n=0;for(e=d.length;n<e;n++)d[n].ic=!0,d[n].Gb=d}if(0<this.jg)for(k=0,m=this.u.length;k<m;k++)if(f=this.u[k],!f.I&&f.ta.length){f.Yh=Array(this.jg);f.of=Array(this.jg);f.Nm=Array(this.jg);g=[];n=r=p=h=0;for(e=f.ta.length;n<e;n++)for(b=
|
|
f.ta[n],f.Yh[b.cd]=h,h+=b.Pt,f.of[b.cd]=p,p+=b.yq,f.Nm[b.cd]=r,r+=b.Jr,a=0,d=b.M.length;a<d;a++)g.push(ra({},b.M[a]));f.M=g.concat(f.M);n=0;for(e=f.M.length;n<e;n++)f.M[n].index=n}k=0;for(m=c[5].length;k<m;k++)f=c[5][k],n=new zb(this,f),this.Lk[n.name]=n,this.Pc.push(n);k=0;for(m=c[6].length;k<m;k++)f=c[6][k],n=new Ab(this,f),this.$j[n.name]=n,this.Ce.push(n);k=0;for(m=this.Ce.length;k<m;k++)this.Ce[k].La();k=0;for(m=this.oj.length;k<m;k++)this.oj[k].La();this.oj.length=0;this.Rm=c[7];this.hd=c[8];
|
|
this.bg=1;this.dr=c[12];this.aa=c[13];this.Ij=c[14];this.Nt=c[16];this.gl=c[19];this.xq=0<this.gl;this.$s=c[21];this.tc=this.mp=c[22];this.gj=Date.now()};b.prototype.Hr=function(c){var k,m;k=0;for(m=this.Ld.length;k<m;k++)if(this.Ld[k].Iq===c)return this.Ld[k];return null};b.prototype.ym=function(){var c=0,k=0,m=!0,e,a;e=0;for(a=this.Ld.length;e<a;e++){var d=this.Ld[e].Fm;if(!d||0>=d)d=5E4;c+=d;this.Ld[e].complete||this.Ld[e].loaded?k+=d:m=!1}this.We=0==c?0:k/c;return m};b.prototype.go=function(){if(this.ka||
|
|
this.B){var c=this.ka||this.il;this.jb&&this.uo();this.We=0;this.Ln=-1;if(this.ym())this.ns();else{var k=Date.now()-this.gj;if(c){var m=this.width,e=this.height,a=this.devicePixelRatio;this.jb&&(m=this.Nh,e=this.Mh,a=1);if(3!==this.Mg&&500<=k&&this.Ln!=this.We){c.clearRect(0,0,m,e);var k=m/2,e=e/2,m=0===this.Mg&&this.Af.complete,d=40*a,f=0,g=80*a,h;m&&(g=this.Af.width*a,h=this.Af.height*a,d=g/2,f=h/2,c.drawImage(this.Af,T(k-d),T(e-f),g,h));1>=this.Mg?(k=T(k-d)+0.5,e=T(e+(f+(m?12*a:0)))+0.5,c.fillStyle=
|
|
"DodgerBlue",c.fillRect(k,e,Math.floor(g*this.We),6*a),c.strokeStyle="black",c.strokeRect(k,e,g,6*a),c.strokeStyle="white",c.strokeRect(k-1*a,e-1*a,g+2*a,8*a)):2===this.Mg&&(c.font="12pt Arial",c.fillStyle="#999",c.iv="middle",a=Math.round(100*this.We)+"%",m=c.measureText?c.measureText(a):null,c.fillText(a,k-(m?m.width:0)/2,e))}this.Ln=this.We}setTimeout(function(c){return function(){c.go()}}(this),100)}}};b.prototype.ns=function(){this.jb&&(this.canvas.parentNode.removeChild(this.jb),this.jb=this.il=
|
|
null);this.gj=Date.now();this.Jg=Ua();var c,k,m;if(this.Wl)for(c=0,k=this.u.length;c<k;c++)m=this.u[c],m.I||m.Dk||!m.wa.$d||m.Z();else this.Cg=!1;c=0;for(k=this.Pc.length;c<k;c++)this.Pc[c].Jq();2<=this.Pb&&(c=this.cb/this.bb,k=this.width/this.height,this.bg=2!==this.Pb&&k>c||2===this.Pb&&k<c?this.height/this.bb:this.width/this.cb);this.Sm?this.Lk[this.Sm].Jl():this.Pc[0].Jl();this.Wl||(this.Bf=1,this.trigger(V.prototype.j.gm,null));navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();
|
|
c=0;for(k=this.u.length;c<k;c++)m=this.u[c],m.Ls&&m.Ls();this.Za();this.Ab&&AppMobi.webview.execute("onGameReady();")};var r=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;b.prototype.Za=function(){if(this.ma){var c=Ua();if(this.qs&&this.rl&&29>c-this.Jk)this.rl=!1,this.Jk=c,r?this.Yi=r(this.jj,this.canvas):this.lj=setTimeout(this.jj,this.Yd?1:16);else{this.rl=!0;this.Jk=c;var k=this.Pb,
|
|
m=document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement;(m||this.yg)&&0<this.Ee&&(k=this.Ee);if(0<k&&(!this.Hk||window.self!==window.top)){var k=window.innerWidth,e=window.innerHeight;this.Ig===k&&this.Hg===e||this.setSize(k,e)}this.Aa||(m?(this.$h||(this.ek=jQuery(this.canvas).css("margin")||"0",this.$h=!0),this.xg||this.Zd||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.$h?(this.xg||this.Zd||jQuery(this.canvas).css("margin",this.ek),this.ek="",this.$h=!1,0===this.Pb&&this.setSize(Math.round(this.bo/this.devicePixelRatio),Math.round(this.ao/this.devicePixelRatio),!0)):(this.bo=this.width,this.ao=this.height));this.Cg&&(m=this.ym(),this.Bf=this.We,m&&(this.Cg=!1,this.We=1,this.trigger(V.prototype.j.gm,null)));this.Ks();!this.ja&&!this.wc||this.Fk||this.lh||(this.ja=!1,this.B?this.fc():this.Mc(),
|
|
this.fj&&(this.canvas&&this.canvas.toDataURL&&(this.canvas.toDataURL(this.fj[0],this.fj[1]),this.trigger(V.prototype.j.Bp,null)),this.fj=null));this.Zu||(this.qd++,this.Xh++,this.di++);this.Rg+=Ua()-c;this.zg||(r?this.Yi=r(this.jj,this.canvas):this.lj=setTimeout(this.jj,this.Yd?1:16))}}};b.prototype.Ks=function(){var c,k,m,e,a,d,f,g,h;c=Ua();1E3<=c-this.Jg&&(this.Jg+=1E3,this.dk=this.di,this.di=0,this.Sj=this.Rg,this.Rg=0);this.Rn&&(0!==this.wi&&(k=c-this.wi,0!==k||this.Bs?(this.Td=k/1E3,0.5<this.Td?
|
|
this.Td=0:0.1<this.Td&&(this.Td=0.1)):(10<=this.kv&&(this.Rn=!1),this.Td=1/60)),this.wi=c);this.Ae=this.Td*this.Sf;this.yc.add(this.Ae);c=document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.yg;2<=this.Pb||c&&0<this.Ee?(k=this.cb/this.bb,m=this.width/this.height,e=this.Pb,c&&0<this.Ee&&(e=this.Ee),this.bg=2!==e&&m>k||2===e&&m<k?this.height/this.bb:this.width/this.cb,this.ma&&(this.ma.Fo(this.ma.scrollX),this.ma.Go(this.ma.scrollY))):this.bg=
|
|
this.Ke?this.devicePixelRatio:1;this.ob();this.Nc++;this.pd.mt();this.Nc--;this.ob();this.Nc++;c=0;for(k=this.u.length;c<k;c++)if(f=this.u[c],!f.I&&(f.Ma.length||f.ta.length))for(m=0,e=f.i.length;m<e;m++)for(g=f.i[m],a=0,d=g.O.length;a<d;a++)g.O[a].Za();c=0;for(k=this.u.length;c<k;c++)if(f=this.u[c],!f.I&&(f.Ma.length||f.ta.length))for(m=0,e=f.i.length;m<e;m++)for(g=f.i[m],a=0,d=g.O.length;a<d;a++)h=g.O[a],h.vo&&h.vo();m=this.$k.Vf();c=0;for(k=m.length;c<k;c++)m[c].Za();this.Nc--;this.rs();for(c=
|
|
0;this.eg&&10>c++;)this.Lm(this.eg);c=0;for(k=this.Ce.length;c<k;c++)this.Ce[c].uk=!1;this.ma.Uh&&this.ma.Uh.Ra();this.Zi.length=0;this.Nc++;c=0;for(k=this.u.length;c<k;c++)if(f=this.u[c],!f.I&&(f.Ma.length||f.ta.length))for(m=0,e=f.i.length;m<e;m++)for(g=f.i[m],a=0,d=g.O.length;a<d;a++)h=g.O[a],h.Ql&&h.Ql();m=this.al.Vf();c=0;for(k=m.length;c<k;c++)m[c].Ql();this.Nc--};b.prototype.Lm=function(c){var k=this.ma;this.ma.At();var m,e,a,d,f,g,h;if(this.B)for(m=0,e=this.u.length;m<e;m++)f=this.u[m],f.I||
|
|
!f.Vl||f.global&&0!==f.i.length||-1!==c.ug.indexOf(f)||f.Vl();k==c&&(this.pd.ac.length=0);c.Jl();m=0;for(e=this.u.length;m<e;m++)if(f=this.u[m],f.global||f.wa.Il)for(c=0,k=f.i.length;c<k;c++)if(g=f.i[c],g.dl&&g.dl(),g.O)for(a=0,d=g.O.length;a<d;a++)h=g.O[a],h.dl&&h.dl();this.ja=!0;this.ob()};b.prototype.kj=function(c){this.$k.add(c)};b.prototype.Ft=function(c){this.al.add(c)};b.prototype.fi=function(c){return c&&-1!==c.Ug?this.Td*c.Ug:this.Ae};b.prototype.Mc=function(){this.ma.Mc(this.ka);this.Ab&&
|
|
this.ka.present()};b.prototype.fc=function(){this.ma.fc(this.B);this.B.et()};b.prototype.Hj=function(c){c&&this.Sh.push(c)};b.prototype.jt=function(c){ya(this.Sh,c)};b.prototype.ng=function(c){return this.Te[c.toString()]};b.prototype.te=function(c){var k,m;if(!this.ad.contains(c)){this.ad.add(c);if(c.ic)for(k=0,m=c.siblings.length;k<m;k++)this.te(c.siblings[k]);this.Ck&&this.ad.cf.push(c);this.Nc++;this.trigger(Object.getPrototypeOf(c.type.wa).j.Cp,c);this.Nc--}};b.prototype.ob=function(){var c,
|
|
k,m,e,a,d,f,g,h,b;this.Ck=!0;e=0;for(d=this.Hb.length;e<d;e++)for(c=this.Hb[e],k=c.type,k.i.push(c),a=0,f=k.ta.length;a<f;a++)k.ta[a].i.push(c),k.ta[a].Qf=!0;this.Hb.length=0;d=this.ad.Vf();for(e=0;e<d.length;e++){c=d[e];k=c.type;m=k.i;a=0;for(f=this.Sh.length;a<f;a++)this.Sh[a](c);ya(m,c);0===m.length&&(k.zh=!1);c.Jh&&k.Kh.update(c,c.Jh,null);c.k&&(sa(c.k.i,c.hc()),c.k.cc=!0);a=0;for(f=k.ta.length;a<f;a++)ya(k.ta[a].i,c),k.ta[a].Qf=!0;if(c.O)for(a=0,f=c.O.length;a<f;a++)m=c.O[a],m.Ue&&m.Ue(),m.Eb.Yk.remove(c);
|
|
this.$k.remove(c);this.al.remove(c);a=0;for(f=this.pd.ac.length;a<f;a++)if(h=this.pd.ac[a],h.Xb.hasOwnProperty(k.index)&&ya(h.Xb[k.index].Ie,c),!k.I)for(m=0,g=k.ta.length;m<g;m++)b=k.ta[m],h.Xb.hasOwnProperty(b.index)&&ya(h.Xb[b.index].Ie,c);c.Ue&&c.Ue();this.Te.hasOwnProperty(c.uid.toString())&&delete this.Te[c.uid.toString()];this.Li--;64>k.Qh.length&&k.Qh.push(c);k.Qf=!0}this.ad.Xd()||(this.ja=!0);this.ad.clear();this.Ck=!1};b.prototype.Gm=function(c,k,m,e){if(c.I){var a=T(Math.random()*c.Gf.length);
|
|
return this.Gm(c.Gf[a],k,m,e)}return c.rc?this.Sd(c.rc,k,!1,m,e,!1):null};var h=[];b.prototype.Sd=function(c,k,m,e,a,d){var f,g,b,r;if(!c)return null;var p=this.u[c[1]],q=p.wa.$d;if(this.Cg&&q&&!p.Dk||q&&!this.B&&11===c[0][11])return null;var s=k;q||(k=null);var l;p.Qh.length?(l=p.Qh.pop(),l.mc=!0,p.wa.ra.call(l,p)):(l=new p.wa.ra(p),l.mc=!1);l.uid=m&&!d?c[2]:this.Vg++;this.Te[l.uid.toString()]=l;l.yo=this.Xn++;l.Ge=p.i.length;f=0;for(g=this.Hb.length;f<g;++f)this.Hb[f].type===p&&l.Ge++;l.qg=xb;b=
|
|
c[3];if(l.mc)Qa(l.P);else{l.P={};if("undefined"!==typeof cr_is_preview)for(l.nn=[],l.nn.length=b.length,f=0,g=b.length;f<g;f++)l.nn[f]=b[f][1];l.Va=[];l.Va.length=b.length}f=0;for(g=b.length;f<g;f++)l.Va[f]=b[f][0];if(q){var v=c[0];l.x=ca(e)?v[0]:e;l.y=ca(a)?v[1]:a;l.z=v[2];l.width=v[3];l.height=v[4];l.depth=v[5];l.m=v[6];l.opacity=v[7];l.Jb=v[8];l.Kb=v[9];l.Fb=v[10];f=v[11];!this.B&&p.M.length&&(l.Fb=f);l.fg=Za(l.Fb);this.q&&$a(l,l.Fb,this.q);if(l.mc){f=0;for(g=v[12].length;f<g;f++)for(b=0,r=v[12][f].length;b<
|
|
r;b++)l.Fa[f][b]=v[12][f][b];l.Ia.set(0,0,0,0);l.Jh.set(0,0,-1,-1);l.yb.ih(l.Ia);l.Lj.length=0}else{l.Fa=v[12].slice(0);f=0;for(g=l.Fa.length;f<g;f++)l.Fa[f]=v[12][f].slice(0);l.$=[];l.Nd=[];l.Nd.length=p.M.length;l.Ia=new pa(0,0,0,0);l.Jh=new pa(0,0,-1,-1);l.yb=new qa;l.Lj=[];l.D=Bb;l.Qu=Cb;l.Ob=Db;l.Ca=Eb;l.kp=Fb;l.hc=Gb}l.oh=!1;l.It=0;l.Ht=0;l.Gt=null;14===v.length&&(l.oh=!0,l.It=v[13][0],l.Ht=v[13][1],l.Gt=v[13][2]);f=0;for(g=p.M.length;f<g;f++)l.Nd[f]=!0;l.Kd=Hb;l.Kd();l.lp=!!l.$.length;l.Kj=
|
|
!0;l.Nj=!0;p.yh=!0;l.visible=!0;l.Ug=-1;l.k=k;l.df=k.i.length;"undefined"===typeof l.ba&&(l.ba=null);this.ja=l.wd=!0}l.toString=yb;var t;f=h.length=0;for(g=p.ta.length;f<g;f++)h.push.apply(h,p.ta[f].Ma);h.push.apply(h,p.Ma);if(l.mc)for(f=0,g=h.length;f<g;f++){var u=h[f];t=l.O[f];t.mc=!0;u.Eb.ra.call(t,u,l);v=c[4][f];b=0;for(r=v.length;b<r;b++)t.A[b]=v[b];t.Z();u.Eb.Yk.add(l)}else for(l.O=[],f=0,g=h.length;f<g;f++)u=h[f],t=new u.Eb.ra(u,l),t.mc=!1,t.A=c[4][f].slice(0),t.Z(),l.O.push(t),u.Eb.Yk.add(l);
|
|
v=c[5];if(l.mc)for(f=0,g=v.length;f<g;f++)l.A[f]=v[f];else l.A=v.slice(0);this.Hb.push(l);k&&(k.i.push(l),1!==k.Bc||1!==k.Cc)&&(p.zh=!0);this.Li++;if(p.ic){if(l.ic=!0,l.mc?l.siblings.length=0:l.siblings=[],!m&&!d){f=0;for(g=p.Gb.length;f<g;f++)if(p.Gb[f]!==p){if(!p.Gb[f].rc)return null;l.siblings.push(this.Sd(p.Gb[f].rc,s,!1,q?l.x:e,q?l.y:a,!0))}f=0;for(g=l.siblings.length;f<g;f++)for(l.siblings[f].siblings.push(l),b=0;b<g;b++)f!==b&&l.siblings[f].siblings.push(l.siblings[b])}}else l.ic=!1,l.siblings=
|
|
null;l.Z();f=0;for(g=l.O.length;f<g;f++)l.O[f].dt&&l.O[f].dt();return l};b.prototype.ok=function(c){var k,m;k=0;for(m=this.ma.X.length;k<m;k++){var e=this.ma.X[k];if(bb(e.name,c))return e}return null};b.prototype.mg=function(c){c=T(c);0>c&&(c=0);c>=this.ma.X.length&&(c=this.ma.X.length-1);return this.ma.X[c]};b.prototype.Qj=function(c){var k,m;k=0;for(m=c.length;k<m;k++)c[k].ca().pa=!0};b.prototype.eh=function(c){var k,m;k=0;for(m=c.length;k<m;k++)c[k].eh()};b.prototype.Vi=function(c){var k,m;k=0;
|
|
for(m=c.length;k<m;k++)c[k].Vi()};b.prototype.Ve=function(c){var k,m;k=0;for(m=c.length;k<m;k++)c[k].Ve()};b.prototype.fp=function(c){if(c.yh){var k,m,e=c.i;k=0;for(m=e.length;k<m;++k)e[k].kp();e=this.Hb;k=0;for(m=e.length;k<m;++k)e[k].type===c&&e[k].kp();c.yh=!1}};b.prototype.Wm=function(c,k,m,e){var a,d,f=c?1!==c.Bc||1!==c.Cc:!1;if(k.I)for(c=0,a=k.Gf.length;c<a;++c)d=k.Gf[c],f||d.zh?xa(e,d.i):(this.fp(d),d.Kh.Ao(m,e));else f||k.zh?xa(e,k.i):(this.fp(k),k.Kh.Ao(m,e))};b.prototype.cn=function(c,k,
|
|
e,a){var d,f;d=0;for(f=k.length;d<f;++d)this.Wm(c,k[d],e,a)};b.prototype.Xr=function(c,k,e){var a=this.Qo;a&&this.cn(c,a.Ki,k,e)};b.prototype.Rr=function(c,k,e){var a=this.zn;a&&this.cn(c,a.Ki,k,e)};b.prototype.Et=function(c,k,e){var a=c.ca(),d,f,g,b,h,p;if(a.pa)for(a.pa=!1,d=a.i.length=0,b=c.i.length;d<b;d++)g=c.i[d],g.Ca(),h=g.k.Nb(k,e,!0),p=g.k.Nb(k,e,!1),g.Ob(h,p)&&a.i.push(g);else{d=f=0;for(b=a.i.length;d<b;d++)g=a.i[d],g.Ca(),h=g.k.Nb(k,e,!0),p=g.k.Nb(k,e,!1),g.Ob(h,p)&&(a.i[f]=a.i[d],f++);
|
|
a.i.length=f}c.Lc();return a.tk()};b.prototype.Yb=function(c,k){if(!(c&&k&&c!==k&&c.wd&&k.wd))return!1;c.Ca();k.Ca();var e=c.k,a=k.k,d,f,g,b,h,p,r,l;if(e===a||e.Bc===a.Bc&&a.Cc===a.Cc&&e.scale===a.scale&&e.m===a.m&&e.Yc===a.Yc){if(!c.Ia.ws(k.Ia)||!c.yb.on(k.yb)||c.oh&&k.oh)return!1;if(c.oh)return this.To(c,k);if(k.oh)return this.To(k,c);r=c.ba&&!c.ba.vf();d=k.ba&&!k.ba.vf();if(!r&&!d)return!0;r?(c.ba.jf(c.width,c.height,c.m),r=c.ba):(this.Wc.Of(c.yb,c.x,c.y,c.width,c.height),r=this.Wc);d?(k.ba.jf(k.width,
|
|
k.height,k.m),l=k.ba):(this.Wc.Of(k.yb,k.x,k.y,k.width,k.height),l=this.Wc);return r.vg(l,k.x-c.x,k.y-c.y)}r=c.ba&&!c.ba.vf();d=k.ba&&!k.ba.vf();r?(c.ba.jf(c.width,c.height,c.m),this.Wc.Jo(c.ba)):this.Wc.Of(c.yb,c.x,c.y,c.width,c.height);r=this.Wc;d?(k.ba.jf(k.width,k.height,k.m),this.Ll.Jo(k.ba)):this.Ll.Of(k.yb,k.x,k.y,k.width,k.height);l=this.Ll;d=0;for(f=r.Sc;d<f;d++)g=2*d,b=g+1,h=r.Wa[g],p=r.Wa[b],r.Wa[g]=e.na(h+c.x,p+c.y,!0),r.Wa[b]=e.na(h+c.x,p+c.y,!1);r.Ca();d=0;for(f=l.Sc;d<f;d++)g=2*d,b=
|
|
g+1,h=l.Wa[g],p=l.Wa[b],l.Wa[g]=a.na(h+k.x,p+k.y,!0),l.Wa[b]=a.na(h+k.x,p+k.y,!1);l.Ca();return r.vg(l,0,0)};var g=new qa;new pa(0,0,0,0);var t=[];b.prototype.To=function(c,k){var e,a,d,f,b=k.Ia,h=c.x,p=c.y;c.Uu(b,t);var r=k.ba&&!k.ba.vf();e=0;for(a=t.length;e<a;++e)if(d=t[e],f=d.dv,b.xs(f,h,p)&&(g.ih(f),g.offset(h,p),g.on(k.yb)))if(r)if(k.ba.jf(k.width,k.height,k.m),d.ml){if(d.ml.vg(k.ba,k.x-(h+f.left),k.y-(p+f.top)))return t.length=0,!0}else{if(this.Wc.Of(g,0,0,f.right-f.left,f.bottom-f.top),this.Wc.vg(k.ba,
|
|
k.x,k.y))return t.length=0,!0}else if(d.ml){if(this.Wc.Of(k.yb,0,0,k.width,k.height),d.ml.vg(this.Wc,-(h+f.left),-(p+f.top)))return t.length=0,!0}else return t.length=0,!0;t.length=0;return!1};b.prototype.bp=function(c,k){if(!k)return!1;var e,a,d,f,g;e=0;for(a=c.Ma.length;e<a;e++)if(c.Ma[e].Eb instanceof k)return!0;if(!c.I)for(e=0,a=c.ta.length;e<a;e++)for(g=c.ta[e],d=0,f=g.Ma.length;d<f;d++)if(g.Ma[d].Eb instanceof k)return!0;return!1};b.prototype.cp=function(c){return this.bp(c,Wb.qu)};b.prototype.Ul=
|
|
function(c){return this.bp(c,Wb.ru)};var p=[];b.prototype.lb=function(c){var k,e,a;c.Ca();this.Xr(c.k,c.Ia,p);k=0;for(e=p.length;k<e;++k)if(a=p[k],a.P.yt&&this.Yb(c,a))return p.length=0,a;p.length=0;return null};var v=[];b.prototype.pe=function(c,k){var e=null;k&&(e=v,e.length=0);c.Ca();this.Rr(c.k,c.Ia,p);var a,d,f;a=0;for(d=p.length;a<d;++a)if(f=p[a],f.P.$u&&this.Yb(c,f))if(k)e.push(f);else return p.length=0,f;p.length=0;return e};b.prototype.Uc=function(c,k,e,a,d,f){a=a||50;var g=c.x,b=c.y,h,p=
|
|
null,r=null;for(h=0;h<a;h++)if(c.x=g+k*h,c.y=b+e*h,c.D(),!this.Yb(c,p)&&((p=this.lb(c))&&(r=p),!p&&(d&&(p=f?this.Yb(c,f)?f:null:this.pe(c))&&(r=p),!p)))return r&&this.pl(c,k,e,r),!0;c.x=g;c.y=b;c.D();return!1};b.prototype.pl=function(c,k,e,a){var d=2,f,g=!1;f=!1;for(var h=c.x,b=c.y;16>=d;)f=1/d,d*=2,c.x+=k*f*(g?1:-1),c.y+=e*f*(g?1:-1),c.D(),this.Yb(c,a)?f=g=!0:(f=g=!1,h=c.x,b=c.y);f&&(c.x=h,c.y=b,c.D())};b.prototype.zo=function(c,k){var e=ca(k)?100:k,a=0,d=c.x,f=c.y,g=0,h=0,b=0,p=this.lb(c);if(!p)return!0;
|
|
for(;a<=e;){switch(g){case 0:h=0;b=-1;a++;break;case 1:h=1;b=-1;break;case 2:h=1;b=0;break;case 3:b=h=1;break;case 4:h=0;b=1;break;case 5:h=-1;b=1;break;case 6:h=-1;b=0;break;case 7:b=h=-1}g=(g+1)%8;c.x=T(d+h*a);c.y=T(f+b*a);c.D();if(!this.Yb(c,p)&&(p=this.lb(c),!p))return!0}c.x=d;c.y=f;c.D();return!1};b.prototype.Lf=function(c,k){c.wd&&k.wd&&this.Zi.push([c,k])};b.prototype.Hq=function(c,k){var e,a,d;e=0;for(a=this.Zi.length;e<a;e++)if(d=this.Zi[e],d[0]==c&&d[1]==k||d[0]==k&&d[1]==c)return!0;return!1};
|
|
b.prototype.Cq=function(c,k,e){var a=c.x,d=c.y,f=ja(10,Na(k,e,a,d)),g=Ea(k,e,a,d),h=this.lb(c);if(!h)return Ba(g+la);var b=h,p,r,l,q,s=U(5);for(p=1;36>p;p++)if(r=g-p*s,c.x=k+Math.cos(r)*f,c.y=e+Math.sin(r)*f,c.D(),!this.Yb(c,b)&&(b=this.lb(c),!b)){l=r;break}36===p&&(l=Ba(g+la));b=h;for(p=1;36>p;p++)if(r=g+p*s,c.x=k+Math.cos(r)*f,c.y=e+Math.sin(r)*f,c.D(),!this.Yb(c,b)&&(b=this.lb(c),!b)){q=r;break}36===p&&(q=Ba(g+la));c.x=a;c.y=d;c.D();if(q===l)return q;c=Ga(q,l)/2;c=Ia(q,l)?Ba(l+c+la):Ba(q+c);l=
|
|
Math.cos(g);g=Math.sin(g);q=Math.cos(c);c=Math.sin(c);k=l*q+g*c;return Ea(0,0,l-2*k*q,g-2*k*c)};var s=[],u=-1;b.prototype.trigger=function(c,k,e){if(!this.ma)return!1;var a=this.ma.Uh;if(!a)return!1;u++;u===s.length?s.push(new ba):s[u].clear();c=this.Yo(c,k,a,e);u--;return c};b.prototype.Yo=function(c,k,e,a){var d=s[u];if(d.contains(e))return!1;d.add(e);var d=e.jn.Vf(),f=!1,g,b,h;g=0;for(b=d.length;g<b;g++)d[g].ys()&&(h=this.Yo(c,k,d[g].tg,a),f=f||h);if(k)for(h=this.Sl(c,k,k.type.name,e,a),f=f||h,
|
|
g=0,b=k.type.ta.length;g<b;g++)h=this.Sl(c,k,k.type.ta[g].name,e,a),f=f||h;else h=this.Sl(c,k,"system",e,a),f=f||h;return f};b.prototype.Sl=function(c,e,a,d,f){var g,h=!1,b=!1,b="undefined"!==typeof f,p=(b?d.Pm:d.Zo)[a];if(!p)return h;var r=null;d=0;for(g=p.length;d<g;d++)if(p[d].method==c){r=p[d].Wh;break}if(!r)return h;c=b?r[f]:r;if(!c)return null;d=0;for(g=c.length;d<g;d++)f=c[d][0],b=c[d][1],b=this.Fr(e,a,f,b),h=h||b;return h};b.prototype.Fr=function(c,e,a,d){var f,g,b=!1;this.Tl++;var h=this.zb().qc;
|
|
h&&this.eh(h.ke);var p=1<this.Tl;this.eh(a.ke);p&&this.ht();var r=this.Wi(a);r.qc=a;c&&(f=this.types[e].ca(),f.pa=!1,f.i.length=1,f.i[0]=c,this.types[e].Lc());c=!0;if(a.parent){e=r.So;for(f=a.parent;f;)e.push(f),f=f.parent;e.reverse();f=0;for(g=e.length;f<g;f++)if(!e[f].ot()){c=!1;break}}c&&(this.Xh++,a.Qc?a.nt(d):a.Ra(),b=b||r.Oe);this.Ri();p&&this.ct();this.Ve(a.ke);h&&this.Ve(h.ke);0!==this.Nc||0!==u||this.Ek||this.ad.Xd()&&!this.Hb.length||this.ob();this.Tl--;return b};b.prototype.kk=function(){var c=
|
|
this.zb();return c.qc.za[c.Ta]};b.prototype.ht=function(){this.Ii++;this.Ii>=this.Sk.length&&this.Sk.push([])};b.prototype.ct=function(){this.Ii--};b.prototype.Xm=function(){return this.Sk[this.Ii]};b.prototype.Wi=function(c){this.Vh++;this.Vh>=this.Zj.length&&this.Zj.push(new Ib);var e=this.zb();e.reset(c);return e};b.prototype.Ri=function(){this.Vh--};b.prototype.zb=function(){return this.Zj[this.Vh]};b.prototype.Ym=function(c,e){for(var a,d,f,g,h,b;e;){a=0;for(d=e.Gc.length;a<d;a++)if(b=e.Gc[a],
|
|
b instanceof Jb&&bb(c,b.name))return b;e=e.parent}a=0;for(d=this.Ce.length;a<d;a++)for(h=this.Ce[a],f=0,g=h.Vd.length;f<g;f++)if(b=h.Vd[f],b instanceof Jb&&bb(c,b.name))return b;return null};b.prototype.$m=function(c){var e,a;e=0;for(a=this.Pc.length;e<a;e++)if(this.Pc[e].V===c)return this.Pc[e];return null};b.prototype.hi=function(c){var e,a;e=0;for(a=this.u.length;e<a;e++)if(this.u[e].V===c)return this.u[e];return null};b.prototype.Or=function(c){var e,a;e=0;for(a=this.hf.length;e<a;e++)if(this.hf[e].V===
|
|
c)return this.hf[e];return null};b.prototype.rs=function(){var c=this,k=this.Bl,d=this.Fd,f=this.Ei,g=!1;this.Oo&&(g=!0,k="__c2_continuouspreview",this.Oo=!1);if(k.length){this.ob();d=this.tt();if(window.indexedDB&&!this.wc)a(k,d,function(){L("Saved state to IndexedDB storage ("+d.length+" bytes)");c.Fd=d;c.trigger(V.prototype.j.Cj,null);c.Fd="";g&&e()},function(a){try{localStorage.setItem("__c2save_"+k,d),L("Saved state to WebStorage ("+d.length+" bytes)"),c.Fd=d,c.trigger(V.prototype.j.Cj,null),
|
|
c.Fd="",g&&e()}catch(f){L("Failed to save game state: "+a+"; "+f)}});else try{localStorage.setItem("__c2save_"+k,d),L("Saved state to WebStorage ("+d.length+" bytes)"),c.Fd=d,this.trigger(V.prototype.j.Cj,null),c.Fd="",g&&e()}catch(b){L("Error saving to WebStorage: "+b)}this.Cb=this.Ei=this.Bl=""}f.length&&(window.indexedDB&&!this.wc?q(f,function(e){e?(c.Cb=e,L("Loaded state from IndexedDB storage ("+c.Cb.length+" bytes)")):(c.Cb=localStorage.getItem("__c2save_"+f)||"",L("Loaded state from WebStorage ("+
|
|
c.Cb.length+" bytes)"));c.lh=!1;c.Cb.length||c.trigger(V.prototype.j.Bj,null)},function(){c.Cb=localStorage.getItem("__c2save_"+f)||"";L("Loaded state from WebStorage ("+c.Cb.length+" bytes)");c.lh=!1;c.Cb.length||c.trigger(V.prototype.j.Bj,null)}):(this.Cb=localStorage.getItem("__c2save_"+f)||"",L("Loaded state from WebStorage ("+this.Cb.length+" bytes)"),this.lh=!1,c.Cb.length||c.trigger(V.prototype.j.Bj,null)),this.Bl=this.Ei="");this.Cb.length&&(this.ob(),this.Js(this.Cb),this.Fd=this.Cb,this.trigger(V.prototype.j.Up,
|
|
null),this.Cb=this.Fd="")};b.prototype.tt=function(){var c,e,a,f,g,b,h,p={c2save:!0,version:1,rt:{time:this.yc.Sa,timescale:this.Sf,tickcount:this.qd,execcount:this.Xh,next_uid:this.Vg,running_layout:this.ma.V,start_time_offset:Date.now()-this.gj},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};c=0;for(e=this.u.length;c<e;c++)if(g=this.u[c],!g.I&&!this.cp(g)){b={instances:[]};Pa(g.P)&&(b.ex=d(g.P));a=0;for(f=g.i.length;a<f;a++)b.instances.push(this.Al(g.i[a]));p.types[g.V.toString()]=
|
|
b}c=0;for(e=this.Pc.length;c<e;c++)a=this.Pc[c],p.layouts[a.V.toString()]=a.Lb();f=p.events.groups;c=0;for(e=this.hf.length;c<e;c++)a=this.hf[c],f[a.V.toString()]=!!this.ff[a.rg];e=p.events.cnds;for(h in this.kf)this.kf.hasOwnProperty(h)&&(c=this.kf[h],Pa(c.P)&&(e[h]={ex:d(c.P)}));e=p.events.acts;for(h in this.gf)this.gf.hasOwnProperty(h)&&(c=this.gf[h],Pa(c.P)&&(e[h]={ex:c.P}));e=p.events.vars;for(h in this.Wf)this.Wf.hasOwnProperty(h)&&(c=this.Wf[h],c.qi||c.parent&&!c.Bg||(e[h]=c.data));p.system=
|
|
this.pd.Lb();return JSON.stringify(p)};b.prototype.Bo=function(){var c,e,a,d,f,g;this.Te={};c=0;for(e=this.u.length;c<e;c++)if(a=this.u[c],!a.I)for(d=0,f=a.i.length;d<f;d++)g=a.i[d],this.Te[g.uid.toString()]=g};b.prototype.Js=function(c){c=JSON.parse(c);if(c.c2save&&!(1<c.version)){var e=c.rt;this.yc.reset();this.yc.Sa=e.time;this.Sf=e.timescale;this.qd=e.tickcount;this.gj=Date.now()-e.start_time_offset;var a=e.running_layout;if(a!==this.ma.V)if(a=this.$m(a))this.Lm(a);else return;var d,f,g,h,b,p,
|
|
r;p=c.types;for(f in p)if(p.hasOwnProperty(f)&&(h=this.hi(parseInt(f,10)))&&!h.I&&!this.cp(h)){p[f].ex?h.P=p[f].ex:Qa(h.P);b=h.i;g=p[f].instances;a=0;for(d=ka(b.length,g.length);a<d;a++)this.Fi(b[a],g[a]);a=g.length;for(d=b.length;a<d;a++)this.te(b[a]);a=b.length;for(d=g.length;a<d;a++){b=null;if(h.wa.$d&&(b=this.ma.gi(g[a].w.l),!b))continue;b=this.Sd(h.rc,b,!1,0,0,!0);this.Fi(b,g[a])}h.Qf=!0}this.ob();this.Bo();d=c.layouts;for(f in d)d.hasOwnProperty(f)&&(a=this.$m(parseInt(f,10)))&&a.lc(d[f]);d=
|
|
c.events.groups;for(f in d)d.hasOwnProperty(f)&&(a=this.Or(parseInt(f,10)))&&(this.ff[a.rg]=d[f]);a=c.events.cnds;for(f in a)a.hasOwnProperty(f)&&this.kf.hasOwnProperty(f)&&(this.kf[f].P=a[f].ex);a=c.events.acts;for(f in a)a.hasOwnProperty(f)&&this.gf.hasOwnProperty(f)&&(this.gf[f].P=a[f].ex);a=c.events.vars;for(f in a)a.hasOwnProperty(f)&&this.Wf.hasOwnProperty(f)&&(this.Wf[f].data=a[f]);this.Vg=e.next_uid;this.pd.lc(c.system);a=0;for(d=this.u.length;a<d;a++)if(h=this.u[a],!h.I)for(f=0,c=h.i.length;f<
|
|
c;f++){b=h.i[f];if(h.ic)for(p=b.qg(),e=b.siblings.length=0,g=h.Gb.length;e<g;e++)r=h.Gb[e],h!==r&&b.siblings.push(r.i[p]);b.Zc&&b.Zc();if(b.O)for(e=0,g=b.O.length;e<g;e++)p=b.O[e],p.Zc&&p.Zc()}this.ja=!0}};b.prototype.Al=function(c,e){var a,f,g,b,h;b=c.type;g=b.wa;var p={};e?p.c2=!0:p.uid=c.uid;Pa(c.P)&&(p.ex=d(c.P));if(c.Va&&c.Va.length)for(p.ivs={},a=0,f=c.Va.length;a<f;a++)p.ivs[c.type.Ak[a].toString()]=c.Va[a];if(g.$d){g={x:c.x,y:c.y,w:c.width,h:c.height,l:c.k.V,zi:c.hc()};0!==c.m&&(g.a=c.m);
|
|
1!==c.opacity&&(g.o=c.opacity);0.5!==c.Jb&&(g.hX=c.Jb);0.5!==c.Kb&&(g.hY=c.Kb);0!==c.Fb&&(g.bm=c.Fb);c.visible||(g.v=c.visible);c.wd||(g.ce=c.wd);-1!==c.Ug&&(g.mts=c.Ug);if(b.M.length)for(g.fx=[],a=0,f=b.M.length;a<f;a++)h=b.M[a],g.fx.push({name:h.name,active:c.Nd[h.index],params:c.Fa[h.index]});p.w=g}if(c.O&&c.O.length)for(p.behs={},a=0,f=c.O.length;a<f;a++)b=c.O[a],b.Lb&&(p.behs[b.type.V.toString()]=b.Lb());c.Lb&&(p.data=c.Lb());return p};b.prototype.Qr=function(c,a){var e,d;e=0;for(d=c.Ak.length;e<
|
|
d;e++)if(c.Ak[e]===a)return e;return-1};b.prototype.Mr=function(c,e){var a,d;a=0;for(d=c.O.length;a<d;a++)if(c.O[a].type.V===e)return a;return-1};b.prototype.Fi=function(c,a,e){var d,f,g,b,h;h=c.type;g=h.wa;if(e){if(!a.c2)return}else c.uid=a.uid;a.ex?c.P=a.ex:Qa(c.P);if(f=a.ivs)for(d in f)f.hasOwnProperty(d)&&(e=this.Qr(h,parseInt(d,10)),0>e||e>=c.Va.length||(c.Va[e]=f[d]));if(g.$d){g=a.w;c.k.V!==g.l&&(e=c.k,c.k=this.ma.gi(g.l),c.k?(c.k.i.push(c),c.k.cc=!0,ya(e.i,c),e.cc=!0):(c.k=e,this.te(c)));c.x=
|
|
g.x;c.y=g.y;c.width=g.w;c.height=g.h;c.df=g.zi;c.m=g.hasOwnProperty("a")?g.a:0;c.opacity=g.hasOwnProperty("o")?g.o:1;c.Jb=g.hasOwnProperty("hX")?g.hX:0.5;c.Kb=g.hasOwnProperty("hY")?g.hY:0.5;c.visible=g.hasOwnProperty("v")?g.v:!0;c.wd=g.hasOwnProperty("ce")?g.ce:!0;c.Ug=g.hasOwnProperty("mts")?g.mts:-1;c.Fb=g.hasOwnProperty("bm")?g.bm:0;c.fg=Za(c.Fb);this.q&&$a(c,c.Fb,this.q);c.D();if(g.hasOwnProperty("fx"))for(e=0,f=g.fx.length;e<f;e++)b=h.mk(g.fx[e].name),0>b||(c.Nd[b]=g.fx[e].active,c.Fa[b]=g.fx[e].params);
|
|
c.Kd()}if(h=a.behs)for(d in h)h.hasOwnProperty(d)&&(g=this.Mr(c,parseInt(d,10)),0>g||c.O[g].lc(h[d]));a.data&&c.lc(a.data)};Kb=function(c){return new b(document.getElementById(c))};Lb=function(c,e){return new b({dc:!0,width:c,height:e})};window.cr_createRuntime=Kb;window.cr_createDCRuntime=Lb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var c=document.createElement("screencanvas")||document.createElement("canvas");c.hv=!0;document.body.appendChild(c);c=new b(c);window.c2runtime=c;
|
|
window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);return c}})();window.cr_getC2Runtime=function(){var b=document.getElementById("c2canvas");return b?b.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_sizeCanvas=function(b,l){if(0!==b&&0!==l){var a=window.cr_getC2Runtime();a&&a.setSize(b,l)}};
|
|
window.cr_setSuspended=function(b){var l=window.cr_getC2Runtime();l&&l.setSuspended(b)};
|
|
(function(){function b(e,a){this.b=e;this.Uh=null;this.scrollX=this.b.cb/2;this.scrollY=this.b.bb/2;this.scale=1;this.m=0;this.lg=!0;this.name=a[0];this.width=a[1];this.height=a[2];this.dp=a[3];this.Mo=a[4];this.V=a[5];var f=a[6],b,h;this.X=[];this.ug=[];b=0;for(h=f.length;b<h;b++){var g=new Mb(this,f[b]);g.Zn=b;this.X.push(g)}f=a[7];this.He=[];b=0;for(h=f.length;b<h;b++){var g=f[b],l=this.b.u[g[1]];l.rc||(l.rc=g);this.He.push(g);-1===this.ug.indexOf(l)&&this.ug.push(l)}this.M=[];this.$=[];this.Fa=
|
|
[];b=0;for(h=a[8].length;b<h;b++)this.M.push({id:a[8][b][0],name:a[8][b][1],kb:-1,td:!0,index:b}),this.Fa.push(a[8][b][2].slice(0));this.Kd();this.he=new pa(0,0,1,1);this.sl=new pa(0,0,1,1);this.ge={}}function l(a,d){this.qa=a;this.b=a.b;this.i=[];this.scale=1;this.m=0;this.ze=!1;this.Jd=new pa(0,0,0,0);this.Xo=new qa;this.Zb=this.nb=this.$b=this.mb=0;this.cc=!1;this.name=d[0];this.index=d[1];this.V=d[2];this.visible=d[3];this.Qd=d[4];this.bf=d[5];this.Bc=d[6];this.Cc=d[7];this.opacity=d[8];this.ck=
|
|
d[9];this.Yc=d[10];this.Fb=d[11];this.cr=d[12];this.fg="source-over";this.tb=this.ub=0;this.ie=!1;var f=d[13],b,h;this.rf=[];b=0;for(h=f.length;b<h;b++){var g=f[b],l=this.b.u[g[1]];l.rc||(l.rc=g,l.Nq=this.index);this.rf.push(g);-1===this.qa.ug.indexOf(l)&&this.qa.ug.push(l)}this.M=[];this.$=[];this.Fa=[];b=0;for(h=d[14].length;b<h;b++)this.M.push({id:d[14][b][0],name:d[14][b][1],kb:-1,td:!0,index:b}),this.Fa.push(d[14][b][2].slice(0));this.Kd();this.he=new pa(0,0,1,1);this.sl=new pa(0,0,1,1)}function a(a,
|
|
d){return a.df-d.df}b.prototype.st=function(a){var d=a.type.V.toString();this.ge.hasOwnProperty(d)||(this.ge[d]=[]);this.ge[d].push(this.b.Al(a))};b.prototype.dn=function(){var a=this.X[0];return!a.bf&&1===a.opacity&&!a.ck&&a.visible};b.prototype.Kd=function(){this.$.length=0;var a,d,f;a=0;for(d=this.M.length;a<d;a++)f=this.M[a],f.td&&this.$.push(f)};b.prototype.lk=function(a){var d,f,b;d=0;for(f=this.M.length;d<f;d++)if(b=this.M[d],b.name===a)return b;return null};var q=[];b.prototype.Jl=function(){this.Mo&&
|
|
(this.Uh=this.b.$j[this.Mo]);this.b.ma=this;this.scrollX=this.b.cb/2;this.scrollY=this.b.bb/2;var e,d,f,b,h,g,l;e=0;for(f=this.b.u.length;e<f;e++)if(d=this.b.u[e],!d.I)for(h=d.i,d=0,b=h.length;d<b;d++)if(g=h[d],g.k){var p=g.k.Zn;p>=this.X.length&&(p=this.X.length-1);g.k=this.X[p];g.k.i.push(g);g.k.cc=!0}q.length=0;this.Aq();e=0;for(f=this.X.length;e<f;e++)g=this.X[e],g.Kq(),g.ze=!0,d=g.Nb(0,0,!0,!0),b=g.Nb(0,0,!1,!0),g.ze=!1,this.b.hd&&(d=d+0.5|0,b=b+0.5|0),g.wl(d,b,null);h=!1;if(!this.lg){for(l in this.ge)if(this.ge.hasOwnProperty(l)&&
|
|
(d=this.b.hi(parseInt(l,10)))&&!d.I&&this.b.Ul(d)){b=this.ge[l];e=0;for(f=b.length;e<f;e++){g=null;if(d.wa.$d&&(g=this.gi(b[e].w.l),!g))continue;g=this.b.Sd(d.rc,g,!1,0,0,!0);this.b.Fi(g,b[e]);h=!0;q.push(g)}b.length=0}e=0;for(f=this.X.length;e<f;e++)this.X[e].i.sort(a),this.X[e].cc=!0}h&&(this.b.ob(),this.b.Bo());for(e=0;e<q.length;e++)if(g=q[e],g.type.ic)for(f=g.qg(),d=0,b=g.type.Gb.length;d<b;d++)l=g.type.Gb[d],g.type!==l&&(l.i.length>f?g.siblings.push(l.i[f]):l.rc&&(h=this.b.Sd(l.rc,g.k,!0,g.x,
|
|
g.y,!0),this.b.ob(),l.pj(),g.siblings.push(h),q.push(h)));e=0;for(f=this.He.length;e<f;e++)this.b.Sd(this.He[e],null,!0);this.b.eg=null;this.b.ob();if(this.b.ka&&!this.b.Aa)for(e=0,f=this.b.u.length;e<f;e++)l=this.b.u[e],!l.I&&l.i.length&&l.nl&&l.nl(this.b.ka);e=0;for(f=q.length;e<f;e++)g=q[e],this.b.trigger(Object.getPrototypeOf(g.type.wa).j.zj,g);q.length=0;this.b.trigger(V.prototype.j.fm,null);this.lg=!1};b.prototype.Jq=function(){var a,d,f,b,h;d=a=0;for(f=this.He.length;a<f;a++)b=this.He[a],h=
|
|
this.b.u[b[1]],h.global?this.b.Sd(b,null,!0):(this.He[d]=b,d++);this.He.length=d};b.prototype.At=function(){this.b.trigger(V.prototype.j.Tp,null);this.b.pd.ac.length=0;var a,d,f,b,h,g;a=0;for(d=this.X.length;a<d;a++){h=this.X[a].i;f=0;for(b=h.length;f<b;f++)g=h[f],g.type.global||(this.b.Ul(g.type)&&this.st(g),this.b.te(g));this.b.ob();h.length=0;this.X[a].cc=!0}a=0;for(d=this.b.u.length;a<d;a++)if(h=this.b.u[a],!(h.global||h.wa.$d||h.wa.Il||h.I)){f=0;for(b=h.i.length;f<b;f++)this.b.te(h.i[f]);this.b.ob()}};
|
|
b.prototype.Mc=function(a){var d,f=a,b=!1,h=!this.b.tc;h&&(this.b.Ci||(this.b.Ci=document.createElement("canvas"),d=this.b.Ci,d.width=this.b.S,d.height=this.b.R,this.b.Nn=d.getContext("2d"),b=!0),d=this.b.Ci,f=this.b.Nn,d.width!==this.b.S&&(d.width=this.b.S,b=!0),d.height!==this.b.R&&(d.height=this.b.R,b=!0),b&&(f.webkitImageSmoothingEnabled=this.b.aa,f.mozImageSmoothingEnabled=this.b.aa,f.msImageSmoothingEnabled=this.b.aa,f.imageSmoothingEnabled=this.b.aa));f.globalAlpha=1;f.globalCompositeOperation=
|
|
"source-over";this.b.Ij&&!this.dn()&&f.clearRect(0,0,this.b.S,this.b.R);var g,l,b=0;for(g=this.X.length;b<g;b++)l=this.X[b],l.visible&&0<l.opacity&&11!==l.Fb&&l.Mc(f);h&&a.drawImage(d,0,0,this.b.width,this.b.height)};b.prototype.fc=function(a){var d=0<this.$.length||this.b.Uf||!this.b.tc;if(d){this.b.Sb||(this.b.Sb=a.xd(this.b.S,this.b.R,this.b.aa));if(this.b.Sb.dg!==this.b.S||this.b.Sb.cg!==this.b.R)a.deleteTexture(this.b.Sb),this.b.Sb=a.xd(this.b.S,this.b.R,this.b.aa);a.md(this.b.Sb);this.b.tc||
|
|
a.Nf(this.b.S,this.b.R)}else this.b.Sb&&(a.md(null),a.deleteTexture(this.b.Sb),this.b.Sb=null);this.b.Ij&&!this.dn()&&a.clear(0,0,0,0);var f,b;f=0;for(b=this.X.length;f<b;f++)this.X[f].visible&&0<this.X[f].opacity&&this.X[f].fc(a);d&&(0===this.$.length||1===this.$.length&&this.b.tc?(1===this.$.length?(d=this.$[0].index,a.od(this.$[0].kb),a.Mf(null,1/this.b.S,1/this.b.R,0,0,1,1,this.scale,this.m,0,0,this.Fa[d]),a.Ui(this.$[0].kb)&&(this.b.ja=!0)):a.od(0),this.b.tc||a.Nf(this.b.width,this.b.height),
|
|
a.md(null),a.Ze(1),a.Wb(this.b.Sb),a.Ho(),a.kd(),a.rd(),d=this.b.width/2,f=this.b.height/2,a.Xi(-d,f,d,f,d,-f,-d,-f),a.Wb(null)):this.tl(a,null,null,null))};b.prototype.pg=function(){return 0<this.$.length||this.b.Uf||!this.b.tc?this.b.Sb:null};b.prototype.an=function(){var a=this.X[0].Ib(),d,f,b;d=1;for(f=this.X.length;d<f;d++)b=this.X[d],(0!==b.Bc||0!==b.Cc)&&b.Ib()<a&&(a=b.Ib());return a};b.prototype.Fo=function(a){if(!this.dp){var d=this.b.S*(1/this.an())/2;a>this.width-d&&(a=this.width-d);a<
|
|
d&&(a=d)}this.scrollX!==a&&(this.scrollX=a,this.b.ja=!0)};b.prototype.Go=function(a){if(!this.dp){var d=this.b.R*(1/this.an())/2;a>this.height-d&&(a=this.height-d);a<d&&(a=d)}this.scrollY!==a&&(this.scrollY=a,this.b.ja=!0)};b.prototype.Aq=function(){this.Fo(this.scrollX);this.Go(this.scrollY)};b.prototype.tl=function(a,d,f,b){var h=f?f.$:d?d.$:this.$,g=1,l=0,p=0,q=0;f?(g=f.k.Ib(),l=f.k.Pa(),p=f.k.mb,q=f.k.nb):d&&(g=d.Ib(),l=d.Pa(),p=d.mb,q=d.nb);var s=this.b.fk,u,c,k,m,n=0,E=1,C,H=this.b.S,J=this.b.R,
|
|
da=H/2,R=J/2,w=d?d.he:this.he,M=d?d.sl:this.sl,O=0,K=0,D=0,A=0,I=H,Q=H,F=J,y=J,Y=k=0,N=f?f.k.Pa():0;if(f){u=0;for(c=h.length;u<c;u++)k+=a.Ur(h[u].kb),Y+=a.Vr(h[u].kb);m=f.Ia;O=d.na(m.left,m.top,!0,!0);D=d.na(m.left,m.top,!1,!0);I=d.na(m.right,m.bottom,!0,!0);F=d.na(m.right,m.bottom,!1,!0);0!==N&&(u=d.na(m.right,m.top,!0,!0),c=d.na(m.right,m.top,!1,!0),K=d.na(m.left,m.bottom,!0,!0),A=d.na(m.left,m.bottom,!1,!0),m=Math.min(O,I,u,K),I=Math.max(O,I,u,K),O=m,m=Math.min(D,F,c,A),F=Math.max(D,F,c,A),D=m);
|
|
O-=k;D-=Y;I+=k;F+=Y;M.left=O/H;M.top=1-D/J;M.right=I/H;M.bottom=1-F/J;K=O=T(O);A=D=T(D);Q=I=na(I);y=F=na(F);K-=k;A-=Y;Q+=k;y+=Y;0>O&&(O=0);0>D&&(D=0);I>H&&(I=H);F>J&&(F=J);0>K&&(K=0);0>A&&(A=0);Q>H&&(Q=H);y>J&&(y=J);w.left=O/H;w.top=1-D/J;w.right=I/H;w.bottom=1-F/J}else w.left=M.left=0,w.top=M.top=0,w.right=M.right=1,w.bottom=M.bottom=1;Y=f&&((f.m||N)&&a.bh(h[0].kb)||0!==k||0!==Y||1!==f.opacity||f.type.wa.Un)||d&&!f&&1!==d.opacity;a.Ho();if(Y){s[n]||(s[n]=a.xd(H,J,this.b.aa));if(s[n].dg!==H||s[n].cg!==
|
|
J)a.deleteTexture(s[n]),s[n]=a.xd(H,J,this.b.aa);a.od(0);a.md(s[n]);C=y-A;a.clearRect(K,J-A-C,Q-K,C);f?f.fc(a):(a.Wb(this.b.kc),a.Ze(d.opacity),a.kd(),a.translate(-da,-R),a.rd(),a.jd(O,F,I,F,I,D,O,D,w));M.left=M.top=0;M.right=M.bottom=1;f&&(m=w.top,w.top=w.bottom,w.bottom=m);n=1;E=0}a.Ze(1);k=h.length-1;var N=a.ol(h[k].kb)||!d&&!f&&!this.b.tc,ea=0;u=0;for(c=h.length;u<c;u++){s[n]||(s[n]=a.xd(H,J,this.b.aa));if(s[n].dg!==H||s[n].cg!==J)a.deleteTexture(s[n]),s[n]=a.xd(H,J,this.b.aa);a.od(h[u].kb);ea=
|
|
h[u].index;a.Ui(h[u].kb)&&(this.b.ja=!0);0!=u||Y?(a.Mf(b,1/H,1/J,M.left,M.top,M.right,M.bottom,g,l,p,q,f?f.Fa[ea]:d?d.Fa[ea]:this.Fa[ea]),a.Wb(null),u!==k||N?(a.md(s[n]),C=y-A,m=J-A-C,a.clearRect(K,m,Q-K,C)):(f?a.je(f.ub,f.tb):d&&a.je(d.ub,d.tb),a.md(b)),a.Wb(s[E]),a.kd(),a.translate(-da,-R),a.rd(),a.jd(O,F,I,F,I,D,O,D,w),u!==k||N||a.Wb(null)):(a.md(s[n]),C=y-A,m=J-A-C,a.clearRect(K,m,Q-K,C),f?(a.Mf(b,1/f.width,1/f.height,M.left,M.top,M.right,M.bottom,g,l,p,q,f.Fa[ea]),f.fc(a)):(a.Mf(b,1/H,1/J,0,
|
|
0,1,1,g,l,p,q,d?d.Fa[ea]:this.Fa[ea]),a.Wb(d?this.b.kc:this.b.Sb),a.kd(),a.translate(-da,-R),a.rd(),a.jd(O,F,I,F,I,D,O,D,w)),M.left=M.top=0,M.right=M.bottom=1,f&&!N&&(m=F,F=D,D=m));n=0===n?1:0;E=0===n?1:0}N&&(a.od(0),f?a.je(f.ub,f.tb):d?a.je(d.ub,d.tb):this.b.tc||(a.Nf(this.b.width,this.b.height),da=this.b.width/2,R=this.b.height/2,D=O=0,I=this.b.width,F=this.b.height),a.md(b),a.Wb(s[E]),a.kd(),a.translate(-da,-R),a.rd(),f&&1===h.length&&!Y?a.jd(O,D,I,D,I,F,O,F,w):a.jd(O,F,I,F,I,D,O,D,w),a.Wb(null))};
|
|
b.prototype.gi=function(a){var d,f;d=0;for(f=this.X.length;d<f;d++)if(this.X[d].V===a)return this.X[d];return null};b.prototype.Lb=function(){var a,d,f,b={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.m,w:this.width,h:this.height,fv:this.lg,persist:this.ge,fx:[],layers:{}};a=0;for(d=this.M.length;a<d;a++)f=this.M[a],b.fx.push({name:f.name,active:f.td,params:this.Fa[f.index]});a=0;for(d=this.X.length;a<d;a++)f=this.X[a],b.layers[f.V.toString()]=f.Lb();return b};b.prototype.lc=function(a){var d,
|
|
f,b,h;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.m=a.a;this.width=a.w;this.height=a.h;this.ge=a.persist;"undefined"!==typeof a.fv&&(this.lg=a.fv);var g=a.fx;d=0;for(f=g.length;d<f;d++)if(b=this.lk(g[d].name))b.td=g[d].active,this.Fa[b.index]=g[d].params;this.Kd();d=a.layers;for(h in d)d.hasOwnProperty(h)&&(a=this.gi(parseInt(h,10)))&&a.lc(d[h])};zb=b;l.prototype.Kd=function(){this.$.length=0;var a,d,f;a=0;for(d=this.M.length;a<d;a++)f=this.M[a],f.td&&this.$.push(f)};l.prototype.lk=function(a){var d,
|
|
f,b;d=0;for(f=this.M.length;d<f;d++)if(b=this.M[d],b.name===a)return b;return null};l.prototype.Kq=function(){var a,d,f,b,h,g;d=a=0;for(f=this.rf.length;a<f;a++){b=this.rf[a];h=this.b.u[b[1]];g=this.b.Ul(h);h=!0;if(!g||this.qa.lg)b=this.b.Sd(b,this,!0),q.push(b),b.type.global&&(h=!1);h&&(this.rf[d]=this.rf[a],d++)}this.rf.length=d;this.b.ob();!this.b.B&&this.M.length&&(this.Fb=this.cr);this.fg=Za(this.Fb);this.b.q&&$a(this,this.Fb,this.b.q)};l.prototype.Lt=function(){if(this.cc){var a,d;a=0;for(d=
|
|
this.i.length;a<d;a++)this.i[a].df=a;this.cc=!1}};l.prototype.Ib=function(a){return this.Sr()*(this.b.tc||a?this.b.bg:1)};l.prototype.Sr=function(){return(this.scale*this.qa.scale-1)*this.Yc+1};l.prototype.Pa=function(){return this.ze?0:Ba(this.qa.m+this.m)};l.prototype.Mc=function(a){this.ie=this.ck||1!==this.opacity||0!==this.Fb;var d=this.b.canvas,f=a,b=!1;a.globalAlpha=1;a.globalCompositeOperation="source-over";this.ie&&(this.b.Bi||(this.b.Bi=document.createElement("canvas"),d=this.b.Bi,d.width=
|
|
this.b.S,d.height=this.b.R,this.b.Mn=d.getContext("2d"),b=!0),d=this.b.Bi,f=this.b.Mn,d.width!==this.b.S&&(d.width=this.b.S,b=!0),d.height!==this.b.R&&(d.height=this.b.R,b=!0),b&&(f.webkitImageSmoothingEnabled=this.b.aa,f.mozImageSmoothingEnabled=this.b.aa,f.msImageSmoothingEnabled=this.b.aa,f.imageSmoothingEnabled=this.b.aa),this.bf&&f.clearRect(0,0,this.b.S,this.b.R));this.bf||(f.fillStyle="rgb("+this.Qd[0]+","+this.Qd[1]+","+this.Qd[2]+")",f.fillRect(0,0,this.b.S,this.b.R));f.save();this.ze=!0;
|
|
var b=this.Nb(0,0,!0,!0),h=this.Nb(0,0,!1,!0);this.ze=!1;this.b.hd&&(b=b+0.5|0,h=h+0.5|0);this.wl(b,h,f);var g=this.Ib();f.scale(g,g);f.translate(-b,-h);for(var l,b=0,h=this.i.length;b<h;b++)g=this.i[b],g.visible&&0!==g.width&&0!==g.height&&(g.Ca(),l=g.Ia,l.right<this.mb||l.bottom<this.nb||l.left>this.$b||l.top>this.Zb||(f.globalCompositeOperation=g.fg,g.Mc(f)));f.restore();this.ie&&(a.globalCompositeOperation=this.fg,a.globalAlpha=this.opacity,a.drawImage(d,0,0))};l.prototype.wl=function(a,d,f){var b=
|
|
this.Ib();this.mb=a;this.nb=d;this.$b=a+this.b.S*(1/b);this.Zb=d+this.b.R*(1/b);a=this.Pa();0!==a&&(f&&(f.translate(this.b.S/2,this.b.R/2),f.rotate(-a),f.translate(this.b.S/-2,this.b.R/-2)),this.Jd.set(this.mb,this.nb,this.$b,this.Zb),this.Jd.offset((this.mb+this.$b)/-2,(this.nb+this.Zb)/-2),this.Xo.Ko(this.Jd,a),this.Xo.Am(this.Jd),this.Jd.offset((this.mb+this.$b)/2,(this.nb+this.Zb)/2),this.mb=this.Jd.left,this.nb=this.Jd.top,this.$b=this.Jd.right,this.Zb=this.Jd.bottom)};l.prototype.fc=function(a){var d=
|
|
this.b.S,f=this.b.R,b=0,h=0;if(this.ie=this.ck||1!==this.opacity||0<this.$.length||0!==this.Fb){this.b.kc||(this.b.kc=a.xd(this.b.S,this.b.R,this.b.aa));if(this.b.kc.dg!==this.b.S||this.b.kc.cg!==this.b.R)a.deleteTexture(this.b.kc),this.b.kc=a.xd(this.b.S,this.b.R,this.b.aa);a.md(this.b.kc);this.bf&&a.clear(0,0,0,0)}this.bf||a.clear(this.Qd[0]/255,this.Qd[1]/255,this.Qd[2]/255,1);this.ze=!0;var h=this.Nb(0,0,!0,!0),g=this.Nb(0,0,!1,!0);this.ze=!1;this.b.hd&&(h=h+0.5|0,g=g+0.5|0);this.wl(h,g,null);
|
|
g=this.Ib();a.kd();a.scale(g,g);a.xl(-this.Pa());a.translate((this.mb+this.$b)/-2,(this.nb+this.Zb)/-2);a.rd();var l,p,q;l=0;for(p=this.i.length;l<p;l++)if(q=this.i[l],q.visible&&0!==q.width&&0!==q.height&&(q.Ca(),b=q.Ia,!(b.right<this.mb||b.bottom<this.nb||b.left>this.$b||b.top>this.Zb)))if(q.lp)if(b=q.$[0].kb,h=q.$[0].index,1!==q.$.length||a.ol(b)||a.gt(b)||(q.m||q.k.Pa())&&a.bh(b)||1!==q.opacity||q.type.wa.Un)this.qa.tl(a,this,q,this.ie?this.b.kc:this.qa.pg()),a.kd(),a.scale(g,g),a.xl(-this.Pa()),
|
|
a.translate((this.mb+this.$b)/-2,(this.nb+this.Zb)/-2),a.rd();else{a.od(b);a.je(q.ub,q.tb);a.Ui(b)&&(this.b.ja=!0);var s=0,u=0,c=0,k=0;a.bh(b)&&(b=q.Ia,s=this.na(b.left,b.top,!0,!0),u=this.na(b.left,b.top,!1,!0),c=this.na(b.right,b.bottom,!0,!0),b=this.na(b.right,b.bottom,!1,!0),s/=d,u=1-u/f,c/=d,k=1-b/f);a.Mf(this.ie?this.b.kc:this.qa.pg(),1/q.width,1/q.height,s,u,c,k,this.Ib(),this.Pa(),this.mb,this.nb,q.Fa[h]);q.fc(a)}else a.od(0),a.je(q.ub,q.tb),q.fc(a);this.ie&&(b=this.$.length?this.$[0].kb:
|
|
0,h=this.$.length?this.$[0].index:0,0===this.$.length||1===this.$.length&&!a.ol(b)&&1===this.opacity?(1===this.$.length?(a.od(b),a.Mf(this.qa.pg(),1/this.b.S,1/this.b.R,0,0,1,1,this.Ib(),this.Pa(),this.mb,this.nb,this.Fa[h]),a.Ui(b)&&(this.b.ja=!0)):a.od(0),a.md(this.qa.pg()),a.Ze(this.opacity),a.Wb(this.b.kc),a.je(this.ub,this.tb),a.kd(),a.rd(),d=this.b.S/2,f=this.b.R/2,a.Xi(-d,f,d,f,d,-f,-d,-f),a.Wb(null)):this.qa.tl(a,this,null,this.qa.pg()))};l.prototype.Nb=function(a,d,f,b){var h=this.b.devicePixelRatio;
|
|
this.b.Ke&&(a*=h,d*=h);var h=this.b.qo,g=this.b.ro,h=(this.qa.scrollX-h)*this.Bc+h,g=(this.qa.scrollY-g)*this.Cc+g,l=1/this.Ib(!b);b?(h-=this.b.S*l/2,g-=this.b.R*l/2):(h-=this.b.width*l/2,g-=this.b.height*l/2);h+=a*l;g+=d*l;d=this.Pa();0!==d&&(h-=this.qa.scrollX,g-=this.qa.scrollY,a=Math.cos(d),d=Math.sin(d),b=h*a-g*d,g=g*a+h*d,h=b+this.qa.scrollX,g+=this.qa.scrollY);return f?h:g};l.prototype.na=function(a,d,f,b){var h=this.Pa();if(0!==h){a-=this.qa.scrollX;d-=this.qa.scrollY;var g=Math.cos(-h),h=
|
|
Math.sin(-h),l=a*g-d*h;d=d*g+a*h;a=l+this.qa.scrollX;d+=this.qa.scrollY}g=this.b.qo;h=this.b.ro;g=(this.qa.scrollX-g)*this.Bc+g;h=(this.qa.scrollY-h)*this.Cc+h;l=1/this.Ib(!b);b?(g-=this.b.S*l/2,h-=this.b.R*l/2):(g-=this.b.width*l/2,h-=this.b.height*l/2);g=(a-g)/l;h=(d-h)/l;a=this.b.devicePixelRatio;this.b.Ke&&(g/=a,h/=a);return f?g:h};l.prototype.Lb=function(){var a,d,f,b={s:this.scale,a:this.m,vl:this.mb,vt:this.nb,vr:this.$b,vb:this.Zb,v:this.visible,bc:this.Qd,t:this.bf,px:this.Bc,py:this.Cc,
|
|
o:this.opacity,zr:this.Yc,fx:[],instances:[]};a=0;for(d=this.M.length;a<d;a++)f=this.M[a],b.fx.push({name:f.name,active:f.td,params:this.Fa[f.index]});return b};l.prototype.lc=function(e){var d,f;this.scale=e.s;this.m=e.a;this.mb=e.vl;this.nb=e.vt;this.$b=e.vr;this.Zb=e.vb;this.visible=e.v;this.Qd=e.bc;this.bf=e.t;this.Bc=e.px;this.Cc=e.py;this.opacity=e.o;this.Yc=e.zr;var b=e.fx;e=0;for(d=b.length;e<d;e++)if(f=this.lk(b[e].name))f.td=b[e].active,this.Fa[f.index]=b[e].params;this.Kd();this.i.sort(a);
|
|
this.cc=!0};Mb=l})();
|
|
(function(){function b(a,c){var d,f=a.length;switch(f){case 0:return!0;case 1:return a[0]===c[0];case 2:return a[0]===c[0]&&a[1]===c[1];default:for(d=0;d<f;d++)if(a[d]!==c[d])return!1;return!0}}function l(a,c){return a.index-c.index}function a(a){var c,d,f,e;2===a.length?a[0].index>a[1].index&&(c=a[0],a[0]=a[1],a[1]=c):2<a.length&&a.sort(l);a.length>=s.length&&(s.length=a.length+1);s[a.length]||(s[a.length]=[]);e=s[a.length];c=0;for(d=e.length;c<d;c++)if(f=e[c],b(a,f))return f;e.push(a);return a}
|
|
function q(a,c){this.b=a;this.Zo={};this.Pm={};this.uk=!1;this.jn=new ba;this.name=c[0];var d=c[1];this.Vd=[];var f,e;f=0;for(e=d.length;f<e;f++)this.ln(d[f],null,this.Vd)}function e(a){this.type=a;this.i=[];this.ea=[];this.pa=!0}function d(a,c,d){this.sheet=a;this.parent=c;this.b=a.b;this.Ba=[];this.ke=[];this.gn=this.mj=this.Rl=this.zk=this.group=this.Po=!1;this.za=[];this.Ic=[];this.Gc=[];d[1]?(this.rg=d[1][1].toLowerCase(),this.group=!0,this.zk=!!d[1][0],this.b.hf.push(this),this.b.ff[this.rg.toLowerCase()]=
|
|
this.zk):(this.rg="",this.zk=this.group=!1);this.Qc=d[2];this.V=d[4];this.group||(this.b.zm[this.V.toString()]=this);var f=d[5];a=0;for(c=f.length;a<c;a++){var e=new Nb(this,f[a]);e.index=a;this.za.push(e);this.tm(e.type)}f=d[6];a=0;for(c=f.length;a<c;a++)e=new Ob(this,f[a]),e.index=a,this.Ic.push(e);if(8===d.length)for(d=d[7],a=0,c=d.length;a<c;a++)this.sheet.ln(d[a],this,this.Gc);this.ri=!1;this.za.length&&(this.ri=null==this.za[0].type&&this.za[0].Oa==V.prototype.j.pp)}function f(a,c){var d,f,
|
|
e;if(a&&(-1===c.indexOf(a)&&c.push(a),a.ic))for(d=0,f=a.Gb.length;d<f;d++)e=a.Gb[d],a!==e&&-1===c.indexOf(e)&&c.push(e)}function r(a,c){this.ec=a;this.sheet=a.sheet;this.b=a.b;this.G=[];this.N=[];this.P={};this.index=-1;this.Oa=c[1];this.trigger=0<c[3];this.Om=2===c[3];this.Gd=c[4];this.wg=c[5];this.Hs=c[6];this.V=c[7];this.b.kf[this.V.toString()]=this;-1===c[0]?(this.type=null,this.Ra=this.zl,this.we=null,this.gb=-1):(this.type=this.b.u[c[0]],this.Ra=this.Hs?this.pt:this.yl,c[2]?(this.we=this.type.ei(c[2]),
|
|
this.gb=this.type.ik(c[2])):(this.we=null,this.gb=-1),this.ec.parent&&this.ec.parent.dj());this.Om&&(this.Ra=this.qt);if(10===c.length){var d,f,e=c[9];d=0;for(f=e.length;d<f;d++){var b=new Pb(this,e[d]);this.G.push(b)}this.N.length=e.length}}function h(a,c){this.ec=a;this.sheet=a.sheet;this.b=a.b;this.G=[];this.N=[];this.P={};this.index=-1;this.Oa=c[1];-1===c[0]?(this.type=null,this.Ra=this.zl,this.we=null,this.gb=-1):(this.type=this.b.u[c[0]],this.Ra=this.yl,c[2]?(this.we=this.type.ei(c[2]),this.gb=
|
|
this.type.ik(c[2])):(this.we=null,this.gb=-1));this.V=c[3];this.b.gf[this.V.toString()]=this;if(6===c.length){var d,f,e=c[5];d=0;for(f=e.length;d<f;d++){var b=new Pb(this,e[d]);this.G.push(b)}this.N.length=e.length}}function g(a,c){this.H=a;this.ec=a.ec;this.sheet=a.sheet;this.b=a.b;this.type=c[0];this.bd=null;this.Em=this.le=0;this.qa=null;this.key=0;this.object=null;this.index=0;this.rj=this.Rf=this.Qm=this.De=this.ph=null;var d,f,e;switch(c[0]){case 0:case 7:this.bd=new Qb(this,c[1]);this.le=0;
|
|
this.get=this.as;break;case 1:this.bd=new Qb(this,c[1]);this.le=0;this.get=this.bs;break;case 5:this.bd=new Qb(this,c[1]);this.le=0;this.get=this.gs;break;case 3:case 8:this.Em=c[1];this.get=this.Zr;break;case 6:this.qa=this.b.Lk[c[1]];this.get=this.hs;break;case 9:this.key=c[1];this.get=this.es;break;case 4:this.object=this.b.u[c[1]];this.get=this.ks;this.ec.tm(this.object);this.H instanceof Ob?this.ec.dj():this.ec.parent&&this.ec.parent.dj();break;case 10:this.index=c[1];this.get=a.type.I?this.cs:
|
|
this.ds;break;case 11:this.ph=c[1];this.De=null;this.get=this.$r;break;case 2:case 12:this.Qm=c[1];this.get=this.Yr;break;case 13:for(this.get=this.ls,this.Rf=[],this.rj=[],d=1,f=c.length;d<f;d++)e=new Pb(this.H,c[d]),this.Rf.push(e),this.rj.push(0)}}function t(a,c,d){this.sheet=a;this.parent=c;this.b=a.b;this.Ba=[];this.name=d[1];this.sj=d[2];this.yk=d[3];this.Bg=!!d[4];this.qi=!!d[5];this.V=d[6];this.b.Wf[this.V.toString()]=this;this.data=this.yk;this.parent?(this.Re=this.Bg||this.qi?-1:this.b.zt++,
|
|
this.b.vq.push(this)):(this.Re=-1,this.b.uq.push(this))}function p(a,c,d){this.sheet=a;this.parent=c;this.b=a.b;this.Ba=[];this.tg=null;this.ts=d[1]}function v(){this.So=[];this.reset(null)}var s=[];q.prototype.toString=B("name");q.prototype.ln=function(a,c,d){switch(a[0]){case 0:a=new Rb(this,c,a);if(a.Qc)for(d.push(a),d=0,c=a.za.length;d<c;d++)a.za[d].trigger&&this.mn(a,d);else a.xn()?this.mn(a,0):d.push(a);break;case 1:a=new Jb(this,c,a);d.push(a);break;case 2:a=new Sb(this,c,a),d.push(a)}};q.prototype.La=
|
|
function(){var a,c;a=0;for(c=this.Vd.length;a<c;a++)this.Vd[a].La(a<c-1&&this.Vd[a+1].ri)};q.prototype.Ra=function(a){this.b.gv||(this.uk=!0,a||(this.b.Ek=!0));var c,d;c=0;for(d=this.Vd.length;c<d;c++){var f=this.Vd[c];f.Ra();this.b.Qj(f.Ba);this.b.ad.Xd()&&!this.b.Hb.length||this.b.ob()}a||(this.b.Ek=!1)};q.prototype.mn=function(a,c){a.Qc||this.b.oj.push(a);var d,f,e=a.za[c],b;b=e.type?e.type.name:"system";var g=(d=e.Om)?this.Pm:this.Zo;g[b]||(g[b]=[]);b=g[b];g=e.Oa;if(d){if(e.G.length&&(e=e.G[0],
|
|
1===e.type&&2===e.bd.type)){e=e.bd.value.toLowerCase();d=0;for(f=b.length;d<f;d++)if(b[d].method==g){d=b[d].Wh;d[e]?d[e].push([a,c]):d[e]=[[a,c]];return}d={};d[e]=[[a,c]];b.push({method:g,Wh:d})}}else{d=0;for(f=b.length;d<f;d++)if(b[d].method==g){b[d].Wh.push([a,c]);return}b.push({method:g,Wh:[[a,c]]})}};Ab=q;e.prototype.tk=function(){return this.pa?this.type.i.length:this.i.length};e.prototype.uc=function(){return this.pa?this.type.i:this.i};e.prototype.ah=function(a){a&&(a.b.zb().qc.Qc?(this.pa&&
|
|
(this.i.length=0,ta(this.ea,a.type.i),this.pa=!1),a=this.ea.indexOf(a),-1!==a&&(this.i.push(this.ea[a]),this.ea.splice(a,1))):(this.pa=!1,this.i.length=1,this.i[0]=a))};gb=e;window._c2hh_="011E04C67A289408B66A713263B279839702858B";d.prototype.La=function(c){var d,e=this.parent;if(this.group)for(this.mj=!0;e;){if(!e.group){this.mj=!1;break}e=e.parent}this.Rl=!this.xn()&&(!this.parent||this.parent.group&&this.parent.mj);this.gn=!!c;this.ke=this.Ba.slice(0);for(e=this.parent;e;){c=0;for(d=e.Ba.length;c<
|
|
d;c++)this.tq(e.Ba[c]);e=e.parent}this.Ba=a(this.Ba);this.ke=a(this.ke);c=0;for(d=this.za.length;c<d;c++)this.za[c].La();c=0;for(d=this.Ic.length;c<d;c++)this.Ic[c].La();c=0;for(d=this.Gc.length;c<d;c++)this.Gc[c].La(c<d-1&&this.Gc[c+1].ri)};d.prototype.tm=function(a){f(a,this.Ba)};d.prototype.tq=function(a){f(a,this.ke)};d.prototype.dj=function(){this.Po=!0;this.parent&&this.parent.dj()};d.prototype.xn=function(){return this.za.length?this.za[0].trigger:!1};d.prototype.Ra=function(){var a,c=!1,d,
|
|
e=this.b.zb();e.qc=this;this.ri||(e.Yj=!1);if(this.Qc){0===this.za.length&&(c=!0);e.Ta=0;for(a=this.za.length;e.Ta<a;e.Ta++)this.za[e.Ta].trigger||(d=this.za[e.Ta].Ra())&&(c=!0);(e.Oe=c)&&this.bj()}else{e.Ta=0;for(a=this.za.length;e.Ta<a;e.Ta++)if(d=this.za[e.Ta].Ra(),!d){e.Oe=!1;!this.Rl||this.b.ad.Xd()&&!this.b.Hb.length||this.b.ob();return}e.Oe=!0;this.bj()}this.er(e)};d.prototype.er=function(a){a.Oe&&this.gn&&(a.Yj=!0);!this.Rl||this.b.ad.Xd()&&!this.b.Hb.length||this.b.ob()};d.prototype.nt=function(a){this.b.zb().qc=
|
|
this;this.za[a].Ra()&&(this.bj(),this.b.zb().Oe=!0)};d.prototype.bj=function(){var a=this.b.zb(),c;a.nc=0;for(c=this.Ic.length;a.nc<c;a.nc++)if(this.Ic[a.nc].Ra())return;this.Do()};d.prototype.kt=function(){var a=this.b.zb(),c;for(c=this.Ic.length;a.nc<c;a.nc++)if(this.Ic[a.nc].Ra())return;this.Do()};d.prototype.Do=function(){if(this.Gc.length){var a,c,d,e,f=this.Gc.length-1;this.b.Wi(this);if(this.Po)for(a=0,c=this.Gc.length;a<c;a++)d=this.Gc[a],(e=!this.mj||!this.group&&a<f)&&this.b.Vi(d.Ba),d.Ra(),
|
|
e?this.b.Ve(d.Ba):this.b.Qj(d.Ba);else for(a=0,c=this.Gc.length;a<c;a++)this.Gc[a].Ra();this.b.Ri()}};d.prototype.ot=function(){var a=this.b.zb();a.qc=this;var c=!1,d;a.Ta=0;for(d=this.za.length;a.Ta<d;a.Ta++)if(this.za[a.Ta].Ra())c=!0;else if(!this.Qc)return!1;return this.Qc?c:!0};d.prototype.lt=function(){this.b.Xh++;var a=this.b.zb().Ta,c=this.b.Wi(this);if(!this.Qc)for(c.Ta=a+1,a=this.za.length;c.Ta<a;c.Ta++)if(!this.za[c.Ta].Ra()){this.b.Ri();return}this.bj();this.b.Ri()};d.prototype.Cs=function(a){var c=
|
|
a.index;if(0===c)return!0;for(--c;0<=c;--c)if(this.za[c].type===a.type)return!1;return!0};Rb=d;r.prototype.La=function(){var a,c;a=0;for(c=this.G.length;a<c;a++)this.G[a].La()};r.prototype.qt=G(!0);r.prototype.zl=function(){var a,c;a=0;for(c=this.G.length;a<c;a++)this.N[a]=this.G[a].get();return Oa(this.Oa.apply(this.b.pd,this.N),this.wg)};r.prototype.pt=function(){var a,c;a=0;for(c=this.G.length;a<c;a++)this.N[a]=this.G[a].get(a);a=this.Oa.apply(this.we?this.we:this.type,this.N);this.type.Lc();return a};
|
|
r.prototype.yl=function(){var a,c,d,e,f,b,g,h=this.type.ca(),p=this.ec.Qc&&!this.trigger,l=0,q=this.type.ic;if(h.pa){h.i.length=0;a=h.ea.length=0;for(d=this.type.i.length;a<d;a++){b=this.type.i[a];c=0;for(e=this.G.length;c<e;c++)this.N[c]=this.G[c].get(a);-1<this.gb?(this.type.I&&(l=b.type.of[this.type.cd]),c=this.Oa.apply(b.O[this.gb+l],this.N)):c=this.Oa.apply(b,this.N);(f=Oa(c,this.wg))?h.i.push(b):p&&h.ea.push(b)}this.type.finish&&this.type.finish(!0);h.pa=!1;this.type.Lc();return h.tk()}var s=
|
|
0,r=(f=p&&!this.ec.Cs(this))?h.ea:h.i,u=!1;a=0;for(d=r.length;a<d;a++){b=r[a];c=0;for(e=this.G.length;c<e;c++)this.N[c]=this.G[c].get(a);-1<this.gb?(this.type.I&&(l=b.type.of[this.type.cd]),c=this.Oa.apply(b.O[this.gb+l],this.N)):c=this.Oa.apply(b,this.N);if(Oa(c,this.wg))if(u=!0,f){if(h.i.push(b),q)for(c=0,e=b.siblings.length;c<e;c++)g=b.siblings[c],g.type.ca().i.push(g)}else{r[s]=b;if(q)for(c=0,e=b.siblings.length;c<e;c++)g=b.siblings[c],g.type.ca().i[s]=g;s++}else if(f){r[s]=b;if(q)for(c=0,e=b.siblings.length;c<
|
|
e;c++)g=b.siblings[c],g.type.ca().ea[s]=g;s++}else if(p&&(h.ea.push(b),q))for(c=0,e=b.siblings.length;c<e;c++)g=b.siblings[c],g.type.ca().ea.push(g)}r.length=s;if(q)for(a=0,d=this.type.Gb.length;a<d;a++)b=this.type.Gb[a].ca(),f?b.ea.length=s:b.i.length=s;l=u;if(f&&!u)for(a=0,d=h.i.length;a<d;a++){b=h.i[a];c=0;for(e=this.G.length;c<e;c++)this.N[c]=this.G[c].get(a);c=-1<this.gb?this.Oa.apply(b.O[this.gb],this.N):this.Oa.apply(b,this.N);if(Oa(c,this.wg)){u=!0;break}}this.type.finish&&this.type.finish(l||
|
|
p);return p?u:h.tk()};Nb=r;h.prototype.La=function(){var a,c;a=0;for(c=this.G.length;a<c;a++)this.G[a].La()};h.prototype.zl=function(){var a,c;a=0;for(c=this.G.length;a<c;a++)this.N[a]=this.G[a].get();return this.Oa.apply(this.b.pd,this.N)};h.prototype.yl=function(){var a=this.type.ca().uc(),c,d,e,f,b;c=0;for(e=a.length;c<e;c++){b=a[c];d=0;for(f=this.G.length;d<f;d++)this.N[d]=this.G[d].get(c);-1<this.gb?(d=0,this.type.I&&(d=b.type.of[this.type.cd]),this.Oa.apply(b.O[this.gb+d],this.N)):this.Oa.apply(b,
|
|
this.N)}return!1};Ob=h;var u=[],c=-1;g.prototype.La=function(){var a,c;if(11===this.type)this.De=this.b.Ym(this.ph,this.ec.parent);else if(13===this.type)for(a=0,c=this.Rf.length;a<c;a++)this.Rf[a].La();this.bd&&this.bd.La()};g.prototype.Xa=function(){c++;u.length===c&&u.push(new Tb);return u[c]};g.prototype.Qa=function(){c--};g.prototype.as=function(a){this.le=a||0;a=this.Xa();this.bd.get(a);this.Qa();return a.data};g.prototype.bs=function(a){this.le=a||0;a=this.Xa();this.bd.get(a);this.Qa();return P(a.data)?
|
|
a.data:""};g.prototype.ks=B("object");g.prototype.Zr=B("Em");g.prototype.gs=function(a){this.le=a||0;a=this.Xa();this.bd.get(a);this.Qa();return a.ab()?this.b.mg(a.data):this.b.ok(a.data)};g.prototype.hs=B("qa");g.prototype.es=B("key");g.prototype.ds=B("index");g.prototype.cs=function(a){var c=this.H.type,d=null,d=c.ca(),e=d.uc(),d=e.length?e[a%e.length].type:d.ea[a%d.ea.length].type;return this.index+d.Yh[c.cd]};g.prototype.$r=B("De");g.prototype.Yr=B("Qm");g.prototype.ls=function(){var a,c;a=0;
|
|
for(c=this.Rf.length;a<c;a++)this.rj[a]=this.Rf[a].get();return this.rj};Pb=g;t.prototype.La=function(){this.Ba=a(this.Ba)};t.prototype.$e=function(a){var c=this.b.Xm();this.parent&&!this.Bg&&c?(this.Re>=c.length&&(c.length=this.Re+1),c[this.Re]=a):this.data=a};t.prototype.ji=function(){var a=this.b.Xm();return!this.parent||this.Bg||!a||this.qi?this.data:this.Re>=a.length||"undefined"===typeof a[this.Re]?this.yk:a[this.Re]};t.prototype.Ra=function(){!this.parent||this.Bg||this.qi||this.$e(this.yk)};
|
|
Jb=t;p.prototype.toString=function(){return"include:"+this.tg.toString()};p.prototype.La=function(){this.tg=this.b.$j[this.ts];this.sheet.jn.add(this);this.Ba=a(this.Ba)};p.prototype.Ra=function(){this.parent&&this.b.eh(this.b.u);this.tg.uk||this.tg.Ra(!0);this.parent&&this.b.Ve(this.b.u)};p.prototype.ys=function(){for(var a=this.parent;a;){if(a.group&&!this.b.ff[a.rg.toLowerCase()])return!1;a=a.parent}return!0};Sb=p;v.prototype.reset=function(a){this.qc=a;this.nc=this.Ta=0;this.So.length=0;this.Yj=
|
|
this.Oe=!1};Ib=v})();
|
|
(function(){function b(a,b){this.H=a;this.b=a.b;this.type=b[0];this.get=[this.qr,this.mr,this.Br,this.Er,this.gr,this.Cr,this.ur,this.jr,this.tr,this.Ar,this.hr,this.yr,this.kr,this.xr,this.rr,this.sr,this.nr,this.or,this.ir,this.Dr,this.Mm,this.pr,this.Mm,this.lr][this.type];var e=null;this.Ub=this.G=this.N=this.Oa=this.ij=this.fb=this.first=this.value=null;this.gb=-1;this.Dd=null;this.Xl=-1;this.De=this.ph=null;this.fh=!1;switch(this.type){case 0:case 1:case 2:this.value=b[1];break;case 3:this.first=
|
|
new Qb(a,b[1]);break;case 18:this.first=new Qb(a,b[1]);this.fb=new Qb(a,b[2]);this.ij=new Qb(a,b[3]);break;case 19:this.Oa=b[1];this.N=[];this.G=[];3===b.length?(e=b[2],this.N.length=e.length+1):this.N.length=1;break;case 20:this.Ub=this.b.u[b[1]];this.gb=-1;this.Oa=b[2];this.fh=b[3];this.Dd=b[4]?new Qb(a,b[4]):null;this.N=[];this.G=[];6===b.length?(e=b[5],this.N.length=e.length+1):this.N.length=1;break;case 21:this.Ub=this.b.u[b[1]];this.fh=b[2];this.Dd=b[3]?new Qb(a,b[3]):null;this.Xl=b[4];break;
|
|
case 22:this.Ub=this.b.u[b[1]];this.Ub.ei(b[2]);this.gb=this.Ub.ik(b[2]);this.Oa=b[3];this.fh=b[4];this.Dd=b[5]?new Qb(a,b[5]):null;this.N=[];this.G=[];7===b.length?(e=b[6],this.N.length=e.length+1):this.N.length=1;break;case 23:this.ph=b[1],this.De=null}4<=this.type&&17>=this.type&&(this.first=new Qb(a,b[1]),this.fb=new Qb(a,b[2]));if(e){var d,f;d=0;for(f=e.length;d<f;d++)this.G.push(new Qb(a,e[d]))}}function l(a,b){this.type=a||Ub.$f;this.data=b||0;this.Hf=null;this.type==Ub.$f&&(this.data=Math.floor(this.data))}
|
|
b.prototype.La=function(){23===this.type&&(this.De=this.H.b.Ym(this.ph,this.H.ec.parent));this.first&&this.first.La();this.fb&&this.fb.La();this.ij&&this.ij.La();this.Dd&&this.Dd.La();if(this.G){var a,b;a=0;for(b=this.G.length;a<b;a++)this.G[a].La()}};b.prototype.Dr=function(a){this.N[0]=a;a=this.H.Xa();var b,e;b=0;for(e=this.G.length;b<e;b++)this.G[b].get(a),this.N[b+1]=a.data;this.H.Qa();this.Oa.apply(this.b.pd,this.N)};b.prototype.Mm=function(a){var b=this.Ub.ca(),e=b.uc();if(!e.length)if(b.ea.length)e=
|
|
b.ea;else{this.fh?a.Dc(""):a.ua(0);return}this.N[0]=a;a.Hf=this.Ub;a=this.H.Xa();var d,b=0;for(d=this.G.length;b<d;b++)this.G[b].get(a),this.N[b+1]=a.data;b=this.H.le;this.Dd&&(this.Dd.get(a),a.ab()&&(b=a.data,e=this.Ub.i));this.H.Qa();b%=e.length;0>b&&(b+=e.length);e=e[b];-1<this.gb?(a=0,this.Ub.I&&(a=e.type.of[this.Ub.cd]),this.Oa.apply(e.O[this.gb+a],this.N)):this.Oa.apply(e,this.N)};b.prototype.pr=function(a){var b=this.Ub.ca(),e=b.uc();if(!e.length)if(b.ea.length)e=b.ea;else{this.fh?a.Dc(""):
|
|
a.ua(0);return}b=this.H.le;if(this.Dd){var d=this.H.Xa();this.Dd.get(d);if(d.ab()){b=d.data;e=this.Ub.i;b%=e.length;0>b&&(b+=e.length);e=e[b].Va[this.Xl];P(e)?a.Dc(e):a.K(e);this.H.Qa();return}this.H.Qa()}b%=e.length;0>b&&(b+=e.length);e=e[b];b=0;this.Ub.I&&(b=e.type.Yh[this.Ub.cd]);e=e.Va[this.Xl+b];P(e)?a.Dc(e):a.K(e)};b.prototype.qr=function(a){a.type=Ub.$f;a.data=this.value};b.prototype.mr=function(a){a.type=Ub.Zf;a.data=this.value};b.prototype.Br=function(a){a.type=Ub.Gj;a.data=this.value};b.prototype.Er=
|
|
function(a){this.first.get(a);a.ab()&&(a.data=-a.data)};b.prototype.gr=function(a){this.first.get(a);var b=this.H.Xa();this.fb.get(b);a.ab()&&b.ab()&&(a.data+=b.data,b.wf()&&a.Ef());this.H.Qa()};b.prototype.Cr=function(a){this.first.get(a);var b=this.H.Xa();this.fb.get(b);a.ab()&&b.ab()&&(a.data-=b.data,b.wf()&&a.Ef());this.H.Qa()};b.prototype.ur=function(a){this.first.get(a);var b=this.H.Xa();this.fb.get(b);a.ab()&&b.ab()&&(a.data*=b.data,b.wf()&&a.Ef());this.H.Qa()};b.prototype.jr=function(a){this.first.get(a);
|
|
var b=this.H.Xa();this.fb.get(b);a.ab()&&b.ab()&&(a.data/=b.data,a.Ef());this.H.Qa()};b.prototype.tr=function(a){this.first.get(a);var b=this.H.Xa();this.fb.get(b);a.ab()&&b.ab()&&(a.data%=b.data,b.wf()&&a.Ef());this.H.Qa()};b.prototype.Ar=function(a){this.first.get(a);var b=this.H.Xa();this.fb.get(b);a.ab()&&b.ab()&&(a.data=Math.pow(a.data,b.data),b.wf()&&a.Ef());this.H.Qa()};b.prototype.hr=function(a){this.first.get(a);var b=this.H.Xa();this.fb.get(b);a.ab()?b.si()?a.Dc(a.data.toString()+b.data):
|
|
a.data&&b.data?a.ua(1):a.ua(0):a.si()&&(a.data=b.si()?a.data+b.data:a.data+(Math.round(1E10*b.data)/1E10).toString());this.H.Qa()};b.prototype.yr=function(a){this.first.get(a);var b=this.H.Xa();this.fb.get(b);a.ab()&&b.ab()&&(a.data||b.data?a.ua(1):a.ua(0));this.H.Qa()};b.prototype.ir=function(a){this.first.get(a);a.data?this.fb.get(a):this.ij.get(a)};b.prototype.kr=function(a){this.first.get(a);var b=this.H.Xa();this.fb.get(b);a.ua(a.data===b.data?1:0);this.H.Qa()};b.prototype.xr=function(a){this.first.get(a);
|
|
var b=this.H.Xa();this.fb.get(b);a.ua(a.data!==b.data?1:0);this.H.Qa()};b.prototype.rr=function(a){this.first.get(a);var b=this.H.Xa();this.fb.get(b);a.ua(a.data<b.data?1:0);this.H.Qa()};b.prototype.sr=function(a){this.first.get(a);var b=this.H.Xa();this.fb.get(b);a.ua(a.data<=b.data?1:0);this.H.Qa()};b.prototype.nr=function(a){this.first.get(a);var b=this.H.Xa();this.fb.get(b);a.ua(a.data>b.data?1:0);this.H.Qa()};b.prototype.or=function(a){this.first.get(a);var b=this.H.Xa();this.fb.get(b);a.ua(a.data>=
|
|
b.data?1:0);this.H.Qa()};b.prototype.lr=function(a){var b=this.De.ji();fa(b)?a.K(b):a.Dc(b)};Qb=b;l.prototype.wf=function(){return this.type===Ub.Zf};l.prototype.ab=function(){return this.type===Ub.$f||this.type===Ub.Zf};l.prototype.si=function(){return this.type===Ub.Gj};l.prototype.Ef=function(){this.wf()||(this.si()&&(this.data=parseFloat(this.data)),this.type=Ub.Zf)};l.prototype.ua=function(a){this.type=Ub.$f;this.data=Math.floor(a)};l.prototype.K=function(a){this.type=Ub.Zf;this.data=a};l.prototype.Dc=
|
|
function(a){this.type=Ub.Gj;this.data=a};Tb=l;Ub={$f:0,Zf:1,Gj:2}})();function V(b){this.b=b;this.ac=[]}
|
|
V.prototype.Lb=function(){var b={},l,a,q,e,d,f,r,h;b.waits=[];var g=b.waits,t;l=0;for(a=this.ac.length;l<a;l++){f=this.ac[l];t={t:f.time,ev:f.ig.V,sm:[],sols:{}};f.ig.Ic[f.nc]&&(t.act=f.ig.Ic[f.nc].V);q=0;for(e=f.Ba.length;q<e;q++)t.sm.push(f.Ba[q].V);for(d in f.Xb)if(f.Xb.hasOwnProperty(d)){r=this.b.u[parseInt(d,10)];h={sa:f.Xb[d].Eo,insts:[]};q=0;for(e=f.Xb[d].Ie.length;q<e;q++)h.insts.push(f.Xb[d].Ie[q].uid);t.sols[r.V.toString()]=h}g.push(t)}return b};
|
|
V.prototype.lc=function(b){b=b.waits;var l,a,q,e,d,f,r,h,g,t,p;l=this.ac.length=0;for(a=b.length;l<a;l++)if(f=b[l],h=this.b.zm[f.ev.toString()]){g=-1;q=0;for(e=h.Ic.length;q<e;q++)if(h.Ic[q].V===f.act){g=q;break}if(-1!==g){r={Xb:{},Ba:[],Km:!1};r.time=f.t;r.ig=h;r.nc=g;q=0;for(e=f.sm.length;q<e;q++)(h=this.b.hi(f.sm[q]))&&r.Ba.push(h);for(d in f.sols)if(f.sols.hasOwnProperty(d)&&(h=this.b.hi(parseInt(d,10)))){g=f.sols[d];t={Eo:g.sa,Ie:[]};q=0;for(e=g.insts.length;q<e;q++)(p=this.b.ng(g.insts[q]))&&
|
|
t.Ie.push(p);r.Xb[h.index.toString()]=t}this.ac.push(r)}}};
|
|
(function(){function b(){}function l(){}function a(){}var q=V.prototype;b.prototype.rp=G(!0);b.prototype.fm=G(!0);b.prototype.Tp=G(!0);b.prototype.qp=function(a){var d=this.b.kk(),b=d.P.vj||0,e=this.b.yc.Sa;"undefined"===typeof d.P.wj&&(d.P.wj=a);var l=d.P.wj;return e>=b+l?(d.P.vj=b+l,e>=d.P.vj+0.04&&(d.P.vj=e),d.P.wj=a,!0):!1};b.prototype.ue=function(a){return this.b.ff[a.toLowerCase()]};b.prototype.pp=function(){var a=this.b.zb();return a.Yj?!1:!a.Oe};b.prototype.gm=G(!0);b.prototype.Bp=G(!0);b.prototype.Cj=
|
|
G(!0);b.prototype.Up=G(!0);b.prototype.Bj=G(!0);q.j=new b;l.prototype.xj=function(a){this.b.Cg||this.b.eg||(this.b.eg=a)};l.prototype.dm=function(a,d,b,e){if(d&&a&&(d=this.b.Gm(a,d,b,e))){this.b.Nc++;var l;this.b.trigger(Object.getPrototypeOf(a.wa).j.zj,d);if(d.ic)for(b=0,e=d.siblings.length;b<e;b++)l=d.siblings[b],this.b.trigger(Object.getPrototypeOf(l.type.wa).j.zj,l);this.b.Nc--;a=a.ca();a.pa=!1;a.i.length=1;a.i[0]=d;if(d.ic)for(b=0,e=d.siblings.length;b<e;b++)l=d.siblings[b],a=l.type.ca(),a.pa=
|
|
!1,a.i.length=1,a.i[0]=l}};l.prototype.vh=function(a,d){a&&a.visible!==d&&(a.visible=d,this.b.ja=!0)};l.prototype.hq=function(a,d){0===a.sj?fa(d)?a.$e(d):a.$e(parseFloat(d)):1===a.sj&&a.$e(d.toString())};l.prototype.np=function(a,d){0===a.sj?fa(d)?a.$e(a.ji()+d):a.$e(a.ji()+parseFloat(d)):1===a.sj&&a.$e(a.ji()+d.toString())};l.prototype.Db=function(a,d){var b=this.b.ff,e=a.toLowerCase();switch(d){case 0:b[e]=!1;break;case 1:b[e]=!0;break;case 2:b[e]=!b[e]}};var e=[],d=[];q.n=new l;a.prototype["int"]=
|
|
function(a,d){P(d)?(a.ua(parseInt(d,10)),isNaN(a.data)&&(a.data=0)):a.ua(d)};a.prototype["float"]=function(a,d){P(d)?(a.K(parseFloat(d)),isNaN(a.data)&&(a.data=0)):a.K(d)};a.prototype.random=function(a,d,b){void 0===b?a.K(Math.random()*d):a.K(Math.random()*(b-d)+d)};a.prototype.sqrt=function(a,d){a.K(Math.sqrt(d))};a.prototype.abs=function(a,d){a.K(Math.abs(d))};a.prototype.round=function(a,d){a.ua(Math.round(d))};a.prototype.floor=function(a,d){a.ua(Math.floor(d))};a.prototype.ceil=function(a,d){a.ua(Math.ceil(d))};
|
|
a.prototype.sin=function(a,d){a.K(Math.sin(U(d)))};a.prototype.cos=function(a,d){a.K(Math.cos(U(d)))};a.prototype.tan=function(a,d){a.K(Math.tan(U(d)))};a.prototype.acos=function(a,d){a.K(za(Math.acos(d)))};a.prototype.exp=function(a,d){a.K(Math.exp(d))};a.prototype.max=function(a){var d=arguments[1],b,e;b=2;for(e=arguments.length;b<e;b++)d<arguments[b]&&(d=arguments[b]);a.K(d)};a.prototype.min=function(a){var d=arguments[1],b,e;b=2;for(e=arguments.length;b<e;b++)d>arguments[b]&&(d=arguments[b]);
|
|
a.K(d)};a.prototype.Ae=function(a){a.K(this.b.Ae)};a.prototype.Sf=function(a){a.K(this.b.Sf)};a.prototype.time=function(a){a.K(this.b.yc.Sa)};a.prototype.qd=function(a){a.ua(this.b.qd)};a.prototype.Li=function(a){a.ua(this.b.Li)};a.prototype.dk=function(a){a.ua(this.b.dk)};a.prototype.m=function(a,d,b,e,l){a.K(za(Ea(d,b,e,l)))};a.prototype.left=function(a,d,b){a.Dc(P(d)?d.substr(0,b):"")};a.prototype.right=function(a,d,b){a.Dc(P(d)?d.substr(d.length-b):"")};a.prototype.replace=function(a,d,b,e){P(d)&&
|
|
P(b)&&P(e)?a.Dc(d.replace(RegExp(Wa(b),"gi"),e)):a.Dc(P(d)?d:"")};a.prototype.Sj=function(a){a.K(this.b.Sj/1E3)};a.prototype.Bf=function(a){a.K(this.b.Bf)};q.Ua=new a;q.mt=function(){var a,b,h,g,l,p,q=this.b.zb();a=0;for(h=this.ac.length;a<h;a++)if(g=this.ac[a],!(g.time>this.b.yc.Sa)){q.qc=g.ig;q.nc=g.nc;q.Ta=0;for(b in g.Xb)g.Xb.hasOwnProperty(b)&&(l=this.b.u[parseInt(b,10)].ca(),p=g.Xb[b],l.pa=p.Eo,ta(l.i,p.Ie),l=p,l.Ie.length=0,d.push(l));g.ig.kt();this.b.Qj(g.Ba);g.Km=!0}b=a=0;for(h=this.ac.length;a<
|
|
h;a++)g=this.ac[a],this.ac[b]=g,g.Km?(Qa(g.Xb),g.Ba.length=0,e.push(g)):b++;this.ac.length=b}})();
|
|
(function(){fb=function(b){var a=b[0].prototype,q=b[1],e=b[3],d=b[4],f=b[5],r=b[6],h=b[7];b=b[8];a.j||(a.j={});a.n||(a.n={});a.Ua||(a.Ua={});var g=a.j,t=a.n,a=a.Ua;e&&(g.Yf=function(a,d){return Vb(this.x,a,d)},g.bu=function(a,d){return Vb(this.y,a,d)},g.iu=function(){var a=this.k;this.Ca();var d=this.Ia;return!(d.right<a.mb||d.bottom<a.nb||d.left>a.$b||d.top>a.Zb)},g.vp=function(){this.Ca();var a=this.Ia,d=this.b.ma;return 0>a.right||0>a.bottom||a.left>d.width||a.top>d.height},g.tu=function(a,d,b){var e=
|
|
this.ca(),c=e.uc();if(!c.length)return!1;var f=c[0],g=f,h=Na(f.x,f.y,d,b),l,q,r;l=1;for(q=c.length;l<q;l++)if(f=c[l],r=Na(f.x,f.y,d,b),0===a&&r<h||1===a&&r>h)h=r,g=f;e.ah(g);return!0},t.Md=function(a){this.x!==a&&(this.x=a,this.D())},t.Ju=function(a){this.y!==a&&(this.y=a,this.D())},t.Fu=function(a,d){if(this.x!==a||this.y!==d)this.x=a,this.y=d,this.D()},t.Gu=function(a,d){var b=a.Tr(this);if(b){var e;b.nk?(e=b.nk(d,!0),b=b.nk(d,!1)):(e=b.x,b=b.y);if(this.x!==e||this.y!==b)this.x=e,this.y=b,this.D()}},
|
|
t.nu=function(a){0!==a&&(this.x+=Math.cos(this.m)*a,this.y+=Math.sin(this.m)*a,this.D())},t.mu=function(a,d){0!==d&&(this.x+=Math.cos(U(a))*d,this.y+=Math.sin(U(a))*d,this.D())},a.ef=function(a){a.K(this.x)},a.om=function(a){a.K(this.y)},a.Ae=function(a){a.K(this.b.fi(this))});d&&(g.au=function(a,d){return Vb(this.width,a,d)},g.Yt=function(a,d){return Vb(this.height,a,d)},t.lq=function(a){this.width!==a&&(this.width=a,this.D())},t.Cu=function(a){this.height!==a&&(this.height=a,this.D())},t.Hu=function(a,
|
|
d){if(this.width!==a||this.height!==d)this.width=a,this.height=d,this.D()},a.Nu=function(a){a.K(this.width)},a.du=function(a){a.K(this.height)},a.Vt=function(a){this.Ca();a.K(this.Ia.left)},a.Xt=function(a){this.Ca();a.K(this.Ia.top)},a.Wt=function(a){this.Ca();a.K(this.Ia.right)},a.Ut=function(a){this.Ca();a.K(this.Ia.bottom)});f&&(g.Tt=function(a,d){return Ga(this.m,U(d))<=U(a)},g.gu=function(a){return Ia(this.m,U(a))},g.fu=function(a,d){var b=Da(a),e=Da(d),c=Ba(this.m);return Ia(e,b)?Ia(c,b)&&
|
|
!Ia(c,e):!(!Ia(c,b)&&Ia(c,e))},t.gq=function(a){a=U(Aa(a));isNaN(a)||this.m===a||(this.m=a,this.D())},t.xu=function(a){0===a||isNaN(a)||(this.m+=U(a),this.m=Ba(this.m),this.D())},t.yu=function(a){0===a||isNaN(a)||(this.m-=U(a),this.m=Ba(this.m),this.D())},t.uh=function(a,d){var b=Ha(this.m,U(d),U(a));isNaN(b)||this.m===b||(this.m=b,this.D())},t.zu=function(a,d,b){a=Ha(this.m,Math.atan2(b-this.y,d-this.x),U(a));isNaN(a)||this.m===a||(this.m=a,this.D())},t.Iu=function(a,d){var b=Math.atan2(d-this.y,
|
|
a-this.x);isNaN(b)||this.m===b||(this.m=b,this.D())},a.St=function(a){a.K(Ca(this.m))});q||(g.Zt=function(a,d,b){return Vb(this.Va[a],d,b)},g.sp=function(a){return this.Va[a]},g.uu=function(a,d){var b=this.ca(),e=b.uc();if(!e.length)return!1;var c=e[0],f=c,g=c.Va[d],h,l,q;h=1;for(l=e.length;h<l;h++)if(c=e[h],q=c.Va[d],0===a&&q<g||1===a&&q>g)g=q,f=c;b.ah(f);return!0},g.su=function(a){var d,b,e,c,f;if(this.b.kk().wg){f=this.ca();if(f.pa)for(f.pa=!1,f.i.length=0,f.ea.length=0,e=this.i,d=0,b=e.length;d<
|
|
b;d++)c=e[d],c.uid===a?f.ea.push(c):f.i.push(c);else{e=d=0;for(b=f.i.length;d<b;d++)c=f.i[d],f.i[e]=c,c.uid===a?f.ea.push(c):e++;f.i.length=e}this.Lc();return!!f.i.length}c=this.b.ng(a);if(!c)return!1;f=this.ca();if(!f.pa&&-1===f.i.indexOf(c))return!1;if(this.I)for(a=c.type.ta,d=0,b=a.length;d<b;d++){if(a[d]===this)return f.ah(c),this.Lc(),!0}else if(c.type===this)return f.ah(c),this.Lc(),!0;return!1},g.zj=G(!0),g.Cp=G(!0),t.Du=function(a,d){var b=this.Va;fa(b[a])?b[a]=fa(d)?d:parseFloat(d):P(b[a])&&
|
|
(b[a]=P(d)?d:d.toString())},t.Rt=function(a,d){var b=this.Va;fa(b[a])?b[a]=fa(d)?b[a]+d:b[a]+parseFloat(d):P(b[a])&&(b[a]=P(d)?b[a]+d:b[a]+d.toString())},t.Ku=function(a,d){var b=this.Va;fa(b[a])&&(b[a]=fa(d)?b[a]-d:b[a]-parseFloat(d))},t.nm=function(a,d){this.Va[a]=d?1:0},t.Lu=function(a){this.Va[a]=1-this.Va[a]},t.rh=function(){this.b.te(this)},t.wp||(t.wp=function(a){var d,b;try{d=JSON.parse(a)}catch(e){return}this.b.Fi(this,d,!0);this.Zc&&this.Zc();if(this.O)for(a=0,d=this.O.length;a<d;++a)b=
|
|
this.O[a],b.Zc&&b.Zc()}),a.cu=function(a){var d=a.Hf.i.length,b,e,c;b=0;for(e=this.b.Hb.length;b<e;b++)c=this.b.Hb[b],a.Hf.I?0<=c.type.ta.indexOf(a.Hf)&&d++:c.type===a.Hf&&d++;a.ua(d)},a.wu=function(a){a.ua(a.Hf.ca().uc().length)},a.Mu=function(a){a.ua(this.uid)},a.eu=function(a){a.ua(this.qg())},a.op||(a.op=function(a){a.Dc(JSON.stringify(this.b.Al(this,!0)))}));r&&(g.ju=B("visible"),t.jq=function(a){!a!==!this.visible&&(this.visible=a,this.b.ja=!0)},g.$t=function(a,d){return Vb(ab(100*this.opacity),
|
|
a,d)},t.Eu=function(a){a/=100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.ja=!0)},a.Opacity=function(a){a.K(ab(100*this.opacity))});h&&(g.hu=function(a){return a?this.k===a:!1},g.vu=function(a){var d=this.ca(),b=d.uc();if(!b.length)return!1;var e=b[0],c=e,f,g;f=1;for(g=b.length;f<g;f++)if(e=b[f],0===a){if(e.k.index>c.k.index||e.k.index===c.k.index&&e.hc()>c.hc())c=e}else if(e.k.index<c.k.index||e.k.index===c.k.index&&e.hc()<c.hc())c=e;d.ah(c);return!0},t.xp=function(){var a=this.hc();
|
|
a!==this.k.i.length-1&&(sa(this.k.i,a),this.k.i.push(this),this.b.ja=!0,this.k.cc=!0)},t.ou=function(){var a=this.hc();0!==a&&(sa(this.k.i,a),this.k.i.unshift(this),this.b.ja=!0,this.k.cc=!0)},t.pu=function(a){a&&a!=this.k&&(sa(this.k.i,this.hc()),this.k.cc=!0,this.k=a,this.df=a.i.length,a.i.push(this),this.b.ja=!0)},t.Pu=function(a,d){var b=0===a;if(d){var e=d.Nr(this);if(e&&e.uid!==this.uid){this.k.index!==e.k.index&&(sa(this.k.i,this.hc()),this.k.cc=!0,this.k=e.k,this.df=e.k.i.length,e.k.i.push(this));
|
|
var c=this.hc(),e=e.hc();sa(this.k.i,c);c<e&&e--;b&&e++;e===this.k.i.length?this.k.i.push(this):this.k.i.splice(e,0,this);this.k.cc=!0;this.b.ja=!0}}},a.lu=function(a){a.ua(this.k.Zn)},a.ku=function(a){a.Dc(this.k.name)},a.Ou=function(a){a.ua(this.hc())});b&&(t.Au=function(a,d){if(this.b.B){var b=this.type.mk(d);if(!(0>b)){var e=1===a;this.Nd[b]!==e&&(this.Nd[b]=e,this.Kd(),this.b.ja=!0)}}},t.Bu=function(a,d,b){if(this.b.B){var e=this.type.mk(a);0>e||(a=this.type.M[e],e=this.Fa[e],d=Math.floor(d),
|
|
0>d||d>=e.length||(1===this.b.B.Wr(a.kb,d)&&(b/=100),e[d]!==b&&(e[d]=b,a.td&&(this.b.ja=!0))))}})};Bb=function(){this.Nj=this.Kj=!0;this.type.yh=!0;this.b.ja=!0;var b,a,q=this.Lj;b=0;for(a=q.length;b<a;++b)q[b](this)};Cb=function(b){b&&this.Lj.push(b)};Eb=function(){if(this.Kj){var b=this.Ia,a=this.yb;b.set(this.x,this.y,this.x+this.width,this.y+this.height);b.offset(-this.Jb*this.width,-this.Kb*this.height);this.m?(b.offset(-this.x,-this.y),a.Ko(b,this.m),a.offset(this.x,this.y),a.Am(b)):a.ih(b);
|
|
b.normalize();this.Kj=!1}};var b=new pa(0,0,0,0);Fb=function(){if(this.Nj&&this.wd){this.Ca();var l=this.type.Kh,a=this.Jh,q=this.Ia;b.set(l.wh(q.left),l.xh(q.top),l.wh(q.right),l.xh(q.bottom));a.fr(b)||(a.right<a.left?l.update(this,null,b):l.update(this,a,b),a.copy(b),this.Nj=!1)}};Db=function(b,a){return this.Ia.Ob(b,a)&&this.yb.Ob(b,a)?this.ba&&!this.ba.vf()?(this.ba.jf(this.width,this.height,this.m),this.ba.Ob(b-this.x,a-this.y)):!0:!1};xb=function(){this.type.pj();return this.Ge};Gb=function(){this.k.Lt();
|
|
return this.df};Hb=function(){this.$.length=0;var b,a;b=0;for(a=this.Nd.length;b<a;b++)this.Nd[b]&&this.$.push(this.type.M[b]);this.lp=!!this.$.length};yb=function(){return"Inst"+this.yo};ib=function(b){if(b&&b.ic&&b.type!=this){var a,q,e;a=0;for(q=b.siblings.length;a<q;a++)if(e=b.siblings[a],e.type==this)return e}b=this.ca().uc();return b.length?b[0]:null};jb=function(b){var a=this.ca().uc();return a.length?a[b.qg()%a.length]:null};hb=function(){if(this.Qf&&!this.I){var b,a;b=0;for(a=this.i.length;b<
|
|
a;b++)this.i[b].Ge=b;var q=b,e=this.b.Hb;b=0;for(a=e.length;b<a;++b)e[b].type===this&&(e[b].Ge=q++);this.Qf=!1}};vb=function(b){if(b<this.i.length)return this.i[b];b-=this.i.length;var a=this.b.Hb,q,e;q=0;for(e=a.length;q<e;++q)if(a[q].type===this){if(0===b)return a[q];--b}return null};kb=function(){return this.me[this.zd]};lb=function(){this.zd++;this.zd===this.me.length?this.me.push(new gb(this)):this.me[this.zd].pa=!0};mb=function(){this.zd++;this.zd===this.me.length&&this.me.push(new gb(this));
|
|
var b=this.me[this.zd],a=this.me[this.zd-1];a.pa?b.pa=!0:(b.pa=!1,ta(b.i,a.i),ta(b.ea,a.ea))};nb=function(){this.zd--};ob=function(b){var a,q,e,d,f,r=0;if(!this.I)for(a=0,q=this.ta.length;a<q;a++)for(f=this.ta[a],e=0,d=f.Ma.length;e<d;e++){if(b===f.Ma[e].name)return this.P.An=r,f.Ma[e];r++}a=0;for(q=this.Ma.length;a<q;a++){if(b===this.Ma[a].name)return this.P.An=r,this.Ma[a];r++}return null};pb=function(b){return this.ei(b)?this.P.An:-1};qb=function(b){var a,q;a=0;for(q=this.M.length;a<q;a++)if(this.M[a].name===
|
|
b)return a;return-1};ub=function(){if(this.ic&&!this.I){var b,a,q,e,d,f,r;this.pj();f=this.ca();var h=f.pa,g=(b=this.b.zb())&&b.qc&&b.qc.Qc;b=0;for(a=this.Gb.length;b<a;b++)if(d=this.Gb[b],d!==this&&(d.pj(),r=d.ca(),r.pa=h,!h)){r.i.length=f.i.length;q=0;for(e=f.i.length;q<e;q++)r.i[q]=d.Zm(f.i[q].Ge);if(g)for(r.ea.length=f.ea.length,q=0,e=f.ea.length;q<e;q++)r.ea[q]=d.Zm(f.ea[q].Ge)}}};wb=function(){return"Type"+this.V};Vb=function(b,a,q){if("undefined"===typeof b||"undefined"===typeof q)return!1;
|
|
switch(a){case 0:return b===q;case 1:return b!==q;case 2:return b<q;case 3:return b<=q;case 4:return b>q;case 5:return b>=q;default:return!1}}})();var cc={};function fc(b){this.b=b}
|
|
(function(){function b(a){0>a&&(a=0);1<a&&(a=1);return 20*(Math.log(a)/Math.log(10))}function l(a){a=a.toLowerCase();return S.hasOwnProperty(a)&&S[a].length?S[a][0].gc():y.destination}function a(){return y.createGain?y.createGain():y.createGainNode()}function q(a){return y.createDelay?y.createDelay(a):y.createDelayNode(a)}function e(a){a.start?a.start(0):a.noteOn(0)}function d(a,c,b){a.start?a.start(0,c):a.noteGrainOn(0,c,b-c)}function f(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(c){}}function r(c,
|
|
b,d,e,f,g){this.type="filter";this.Rc=[c,b,d,e,f,g];this.W=a();this.L=a();this.L.gain.value=g;this.J=a();this.J.gain.value=1-g;this.Na=y.createBiquadFilter();this.Na.type="number"===typeof this.Na.type?c:qc[c];this.Na.frequency.value=b;this.Na.detune&&(this.Na.detune.value=d);this.Na.Q.value=e;this.Na.gain.value=f;this.W.connect(this.Na);this.W.connect(this.J);this.Na.connect(this.L)}function h(c,b,d){this.type="delay";this.Rc=[c,b,d];this.W=a();this.L=a();this.L.gain.value=d;this.J=a();this.J.gain.value=
|
|
1-d;this.Sg=a();this.sc=q(c);this.sc.delayTime.value=c;this.Rh=a();this.Rh.gain.value=b;this.W.connect(this.Sg);this.W.connect(this.J);this.Sg.connect(this.L);this.Sg.connect(this.sc);this.sc.connect(this.Rh);this.Rh.connect(this.Sg)}function g(c,b,d,e){this.type="convolve";this.Rc=[b,d,e];this.W=a();this.L=a();this.L.gain.value=d;this.J=a();this.J.gain.value=1-d;this.ye=y.createConvolver();c&&(this.ye.normalize=b,this.ye.buffer=c);this.W.connect(this.ye);this.W.connect(this.J);this.ye.connect(this.L)}
|
|
function t(c,b,d,f,g){this.type="flanger";this.Rc=[c,b,d,f,g];this.W=a();this.J=a();this.J.gain.value=1-g/2;this.L=a();this.L.gain.value=g/2;this.Zh=a();this.Zh.gain.value=f;this.sc=q(c+b);this.sc.delayTime.value=c;this.eb=y.createOscillator();this.eb.frequency.value=d;this.Vb=a();this.Vb.gain.value=b;this.W.connect(this.sc);this.W.connect(this.J);this.sc.connect(this.L);this.sc.connect(this.Zh);this.Zh.connect(this.sc);this.eb.connect(this.Vb);this.Vb.connect(this.sc.delayTime);e(this.eb)}function p(c,
|
|
b,d,f,g,h){this.type="phaser";this.Rc=[c,b,d,f,g,h];this.W=a();this.J=a();this.J.gain.value=1-h/2;this.L=a();this.L.gain.value=h/2;this.Na=y.createBiquadFilter();this.Na.type="number"===typeof this.Na.type?7:"allpass";this.Na.frequency.value=c;this.Na.detune&&(this.Na.detune.value=b);this.Na.Q.value=d;this.eb=y.createOscillator();this.eb.frequency.value=g;this.Vb=a();this.Vb.gain.value=f;this.W.connect(this.Na);this.W.connect(this.J);this.Na.connect(this.L);this.eb.connect(this.Vb);this.Vb.connect(this.Na.frequency);
|
|
e(this.eb)}function v(c){this.type="gain";this.Rc=[c];this.Y=a();this.Y.gain.value=c}function s(c,b){this.type="tremolo";this.Rc=[c,b];this.Y=a();this.Y.gain.value=1-b/2;this.eb=y.createOscillator();this.eb.frequency.value=c;this.Vb=a();this.Vb.gain.value=b/2;this.eb.connect(this.Vb);this.Vb.connect(this.Y.gain);e(this.eb)}function u(c,b){this.type="ringmod";this.Rc=[c,b];this.W=a();this.L=a();this.L.gain.value=b;this.J=a();this.J.gain.value=1-b;this.gh=a();this.gh.gain.value=0;this.eb=y.createOscillator();
|
|
this.eb.frequency.value=c;this.eb.connect(this.gh.gain);e(this.eb);this.W.connect(this.gh);this.W.connect(this.J);this.gh.connect(this.L)}function c(c,b,d,e,f){this.type="distortion";this.Rc=[c,b,d,e,f];this.W=a();this.Ti=a();this.Si=a();this.ut(d,Math.pow(10,e/20));this.L=a();this.L.gain.value=f;this.J=a();this.J.gain.value=1-f;this.uj=y.createWaveShaper();this.Ph=new Float32Array(65536);this.Kr(c,b);this.uj.Ph=this.Ph;this.W.connect(this.Ti);this.W.connect(this.J);this.Ti.connect(this.uj);this.uj.connect(this.Si);
|
|
this.Si.connect(this.L)}function k(a,c,b,d,e){this.type="compressor";this.Rc=[a,c,b,d,e];this.Y=y.createDynamicsCompressor();try{this.Y.threshold.value=a,this.Y.knee.value=c,this.Y.ratio.value=b,this.Y.attack.value=d,this.Y.release.value=e}catch(f){}}function m(a,c){this.type="analyser";this.Rc=[a,c];this.Y=y.createAnalyser();this.Y.fftSize=a;this.Y.smoothingTimeConstant=c;this.Ir=new Float32Array(this.Y.frequencyBinCount);this.No=new Uint8Array(a);this.$g=0}function n(){this.T=null;this.Hi=0;this.ne=
|
|
[];this.Xk=this.vi=this.ti=0}function E(c,b){this.src=c;this.la=F;this.Oc=b;this.vm=!1;var d=this;this.Vk=this.hl=null;this.Kf=[];this.cj=0;this.Ro=this.Oi=!1;F===A&&b&&(this.la=D,this.hl=a());this.Ah=this.ya=null;var e;switch(this.la){case D:this.ya=new Audio;F===A&&y.createMediaElementSource&&!w.qn&&(this.Ro=!0,this.ya.addEventListener("canplay",function(){d.Vk||(d.Vk=y.createMediaElementSource(d.ya),d.Vk.connect(d.hl))}));this.ya.autoplay=!1;this.ya.cv="auto";this.ya.src=c;break;case A:e=new XMLHttpRequest;
|
|
e.open("GET",c,!0);e.responseType="arraybuffer";e.onload=function(){d.Ah=e.response;d.Lq()};e.send();break;case I:this.ya=!0;break;case Q:this.ya=!0}}function C(c,b){var d=this;this.oe=b;this.Fc=this.Wd=!0;this.src=c.src;this.buffer=c;this.la=F;this.Oc=c.Oc;this.playbackRate=1;this.jl=!0;this.Ed=this.Hd=!1;this.Vc=0;this.Ag=this.xf=this.Gd=!1;this.Tg=this.volume=1;this.startTime=w.yc.Sa;this.Ka=this.$a=null;this.gd=!1;this.Ja=null;this.no=this.mo=this.lo=this.ko=this.po=this.oo=0;this.p=null;var e=
|
|
!1;this.la!==A||this.buffer.la!==D||this.buffer.Ro||(this.la=D);switch(this.la){case D:this.Oc?(this.p=c.ya,e=!c.vm,c.vm=!0):(this.p=new Audio,this.p.autoplay=!1,this.p.src=c.ya.src,e=!0);e&&this.p.addEventListener("ended",function(){O=d.oe;d.Fc=!0;w.trigger(fc.prototype.j.Aj,M)});break;case A:this.$a=a();this.$a.connect(l(b));this.buffer.la===A?c.ya&&(this.p=y.createBufferSource(),this.p.buffer=c.ya,this.p.connect(this.$a)):(this.p=this.buffer.ya,this.buffer.hl.connect(this.$a));break;case I:this.p=
|
|
new window.Media(K+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(d.jl=!0,d.Fc=!0,O=d.oe,w.trigger(fc.prototype.j.Aj,M))});break;case Q:this.p=!0}}function H(a,c){S.hasOwnProperty(a)?S[a].push(c):S[a]=[c];var b,d,e,f,g=y.destination;if(S.hasOwnProperty(a)&&(e=S[a],e.length))for(g=e[0].gc(),b=0,d=e.length;b<d;b++)f=e[b],b+1===d?f.oc(y.destination):f.oc(e[b+1].gc());Ja.length=0;if(a.length)for(b=0,d=N.length;b<d;b++)e=N[b],bb(a,e.oe)&&Ja.push(e);else ea&&!ea.sg()&&(Ja.length=1,Ja[0]=
|
|
ea);b=0;for(d=Ja.length;b<d;b++)Ja[b].it(g);Fa&&rb===a&&(Fa.disconnect(),Fa.connect(g))}function J(){}function da(){}var R=fc.prototype;R.Da=function(a){this.wa=a;this.b=a.b};R.Da.prototype.Z=z();var w=null,M=null,O="",K="",D=0,A=1,I=2,Q=3,F=D,y=null,Y=[],N=[],ea=null,db=!1,eb=0,ua=!1,va=1,Ka=0,La=0,sb=1,tb=1,lc=10,mc=1E4,nc=1,Fa=null,rb="",Ra=!1,Sa=[],S={},qc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");r.prototype.oc=function(a){this.L.disconnect();this.L.connect(a);
|
|
this.J.disconnect();this.J.connect(a)};r.prototype.remove=function(){this.W.disconnect();this.Na.disconnect();this.L.disconnect();this.J.disconnect()};r.prototype.gc=B("W");h.prototype.oc=function(a){this.L.disconnect();this.L.connect(a);this.J.disconnect();this.J.connect(a)};h.prototype.remove=function(){this.W.disconnect();this.Sg.disconnect();this.sc.disconnect();this.Rh.disconnect();this.L.disconnect();this.J.disconnect()};h.prototype.gc=B("W");g.prototype.oc=function(a){this.L.disconnect();this.L.connect(a);
|
|
this.J.disconnect();this.J.connect(a)};g.prototype.remove=function(){this.W.disconnect();this.ye.disconnect();this.L.disconnect();this.J.disconnect()};g.prototype.gc=B("W");t.prototype.oc=function(a){this.J.disconnect();this.J.connect(a);this.L.disconnect();this.L.connect(a)};t.prototype.remove=function(){this.W.disconnect();this.sc.disconnect();this.eb.disconnect();this.Vb.disconnect();this.J.disconnect();this.L.disconnect();this.Zh.disconnect()};t.prototype.gc=B("W");p.prototype.oc=function(a){this.J.disconnect();
|
|
this.J.connect(a);this.L.disconnect();this.L.connect(a)};p.prototype.remove=function(){this.W.disconnect();this.Na.disconnect();this.eb.disconnect();this.Vb.disconnect();this.J.disconnect();this.L.disconnect()};p.prototype.gc=B("W");v.prototype.oc=function(a){this.Y.disconnect();this.Y.connect(a)};v.prototype.remove=function(){this.Y.disconnect()};v.prototype.gc=B("Y");s.prototype.oc=function(a){this.Y.disconnect();this.Y.connect(a)};s.prototype.remove=function(){this.eb.disconnect();this.Vb.disconnect();
|
|
this.Y.disconnect()};s.prototype.gc=B("Y");u.prototype.oc=function(a){this.L.disconnect();this.L.connect(a);this.J.disconnect();this.J.connect(a)};u.prototype.remove=function(){this.eb.disconnect();this.gh.disconnect();this.W.disconnect();this.L.disconnect();this.J.disconnect()};u.prototype.gc=B("W");c.prototype.ut=function(a,c){0.01>a&&(a=0.01);this.Ti.gain.value=a;this.Si.gain.value=Math.pow(1/a,0.6)*c};c.prototype.shape=function(a,c,b){var d=1.05*b*c-c;b=0>a?-1:1;a=0>a?-a:a;c=a<c?a:c+d*(1-Math.exp(-(1/
|
|
d)*(a-c)));return c*b};c.prototype.Kr=function(a,c){for(var b=Math.pow(10,a/20),d=Math.pow(10,c/20),e=0,f=0;32768>f;++f)e=f/32768,e=this.shape(e,b,d),this.Ph[32768+f]=e,this.Ph[32768-f-1]=-e};c.prototype.oc=function(a){this.L.disconnect();this.L.connect(a);this.J.disconnect();this.J.connect(a)};c.prototype.remove=function(){this.W.disconnect();this.Ti.disconnect();this.uj.disconnect();this.Si.disconnect();this.L.disconnect();this.J.disconnect()};c.prototype.gc=B("W");k.prototype.oc=function(a){this.Y.disconnect();
|
|
this.Y.connect(a)};k.prototype.remove=function(){this.Y.disconnect()};k.prototype.gc=B("Y");m.prototype.Za=function(){this.Y.getFloatFrequencyData(this.Ir);this.Y.getByteTimeDomainData(this.No);for(var a=this.Y.fftSize,c=0,d=this.$g=0,e=0;c<a;c++)e=(this.No[c]-128)/128,0>e&&(e=-e),this.$g<e&&(this.$g=e),d+=e*e;this.$g=b(this.$g);b(Math.sqrt(d/a))};m.prototype.oc=function(a){this.Y.disconnect();this.Y.connect(a)};m.prototype.remove=function(){this.Y.disconnect()};m.prototype.gc=B("Y");n.prototype.hh=
|
|
function(a){if(this.T=a)this.ti=this.T.x,this.vi=this.T.y;this.ne.length=0};n.prototype.mi=function(){return!!this.T};n.prototype.Za=function(a){this.T&&0!==a&&(this.Xk=Ea(this.ti,this.vi,this.T.x,this.T.y),a=Na(this.ti,this.vi,this.T.x,this.T.y)/a,4>this.ne.length||this.ne.shift(),this.ne.push(a),this.ti=this.T.x,this.vi=this.T.y)};n.prototype.bn=function(){if(!this.ne.length)return 0;var a,c,b=0;a=0;for(c=this.ne.length;a<c;a++)b+=this.ne[a];return b/this.ne.length};n.prototype.rk=function(){return Math.cos(this.Xk)*
|
|
this.bn()};n.prototype.sk=function(){return Math.sin(this.Xk)*this.bn()};var oc=!1;E.prototype.Lq=function(){if(!this.ya&&this.Ah){var a=this;if(y.decodeAudioData)y.decodeAudioData(this.Ah,function(c){a.ya=c;var b,d,e;if(ca(a.Pi)||ua)ca(a.Lh)||(b=a.Lh.ye,b.normalize=a.Yn,b.buffer=c);else if(a.Kf.length){b=0;for(d=a.Kf.length;b<d;b++){c=a.Kf[b];e=new C(a,c.Wo);e.El(!0);if("undefined"!==typeof c.$n&&(c.T=w.ng(c.$n),!c.T))continue;if(c.T){var f=Ma(c.T.x,c.T.y,-c.T.k.Pa(),Ka,La,!0),g=Ma(c.T.x,c.T.y,-c.T.k.Pa(),
|
|
Ka,La,!1);e.Dl(f,g,za(c.T.m-c.T.k.Pa()),c.vk,c.Zk,c.bl);e.hh(c.T)}else e.Dl(c.x,c.y,c.pq,c.vk,c.Zk,c.bl);e.play(a.Tk,a.Zl,a.cj);a.Oi&&e.pause();N.push(e)}a.Kf.length=0}else e=new C(a,a.Pi),e.play(a.Tk,a.Zl,a.cj),a.Oi&&e.pause(),N.push(e)});else if(this.ya=y.createBuffer(this.Ah,!1),ca(this.Pi)||ua)ca(this.Lh)||(c=this.Lh.ye,c.normalize=this.Yn,c.buffer=this.ya);else{var c=new C(this,this.Pi);c.play(this.Tk,this.Zl,this.cj);this.Oi&&c.pause();N.push(c)}}};C.prototype.sg=function(){switch(this.la){case D:return this.p.ended;
|
|
case A:return this.buffer.la===A?!this.Wd&&!this.Fc&&this.p.loop||this.Ed?!1:w.yc.Sa-this.startTime>this.buffer.ya.duration:this.p.ended;case I:return this.jl;case Q:!0}return!0};C.prototype.Dq=function(){return this.Wd||this.Fc?!0:this.sg()};C.prototype.El=function(a){F===A&&(!this.gd&&a?this.$a&&(this.Ka||(this.Ka=y.createPanner(),this.Ka.panningModel="number"===typeof this.Ka.panningModel?sb:["equalpower","HRTF","soundfield"][sb],this.Ka.distanceModel="number"===typeof this.Ka.distanceModel?tb:
|
|
["linear","inverse","exponential"][tb],this.Ka.refDistance=lc,this.Ka.maxDistance=mc,this.Ka.rolloffFactor=nc),this.$a.disconnect(),this.$a.connect(this.Ka),this.Ka.connect(l(this.oe)),this.gd=!0):this.gd&&!a&&this.$a&&(this.Ka.disconnect(),this.$a.disconnect(),this.$a.connect(l(this.oe)),this.gd=!1))};C.prototype.Dl=function(a,c,b,d,e,f){this.gd&&F===A&&(this.Ka.setPosition(a,c,0),this.Ka.setOrientation(Math.cos(U(b)),Math.sin(U(b)),0),this.Ka.coneInnerAngle=d,this.Ka.coneOuterAngle=e,this.Ka.coneOuterGain=
|
|
f,this.oo=a,this.po=c,this.ko=b,this.lo=d,this.mo=e,this.no=f)};C.prototype.hh=function(a){this.gd&&F===A&&(this.Ja||(this.Ja=new n),this.Ja.hh(a))};C.prototype.Za=function(a){if(this.gd&&F===A&&this.Ja&&this.Ja.mi()&&this.uf()){this.Ja.Za(a);a=this.Ja.T;var c=Ma(a.x,a.y,-a.k.Pa(),Ka,La,!0),b=Ma(a.x,a.y,-a.k.Pa(),Ka,La,!1);this.Ka.setPosition(c,b,0);c=0;"undefined"!==typeof this.Ja.T.m&&(c=a.m-a.k.Pa(),this.Ka.setOrientation(Math.cos(c),Math.sin(c),0));c=Ma(this.Ja.rk(),this.Ja.sk(),-a.k.Pa(),0,0,
|
|
!0);b=Ma(this.Ja.rk(),this.Ja.sk(),-a.k.Pa(),0,0,!1);this.Ka.setVelocity(c,b,0)}};C.prototype.play=function(a,c,b){var f=this.p;this.Gd=a;this.volume=c;b=b||0;switch(this.la){case D:1!==f.playbackRate&&(f.playbackRate=1);f.volume!==c*va&&(f.volume=c*va);f.loop!==a&&(f.loop=a);f.muted&&(f.muted=!1);if(f.currentTime!==b)try{f.currentTime=b}catch(g){}this.Oc&&Ra&&!w.xc?Sa.push(this):this.p.play();break;case A:this.muted=!1;this.Tg=1;if(this.buffer.la===A)this.Wd||(this.p=y.createBufferSource(),this.p.buffer=
|
|
this.buffer.ya,this.p.connect(this.$a)),this.p.loop=a,this.$a.gain.value=c*va,0===b?e(this.p):d(this.p,b,this.qf());else{1!==f.playbackRate&&(f.playbackRate=1);f.loop!==a&&(f.loop=a);this.$a.gain.value=c*va;if(f.currentTime!==b)try{f.currentTime=b}catch(h){}this.Oc&&Ra&&!w.xc?Sa.push(this):f.play()}break;case I:(!this.Wd&&this.Fc||0!==b)&&f.seekTo(b);f.play();this.jl=!1;break;case Q:w.Ab?AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=1;this.startTime=
|
|
w.yc.Sa-b;this.Ed=this.Fc=this.Wd=!1};C.prototype.stop=function(){switch(this.la){case D:this.p.paused||this.p.pause();break;case A:this.buffer.la===A?f(this.p):this.p.paused||this.p.pause();break;case I:this.p.stop();break;case Q:w.Ab&&AppMobi.context.stopSound(this.src)}this.Fc=!0;this.Ed=!1};C.prototype.pause=function(){if(!(this.Wd||this.Fc||this.sg()||this.Ed)){switch(this.la){case D:this.p.paused||this.p.pause();break;case A:this.buffer.la===A?(this.Vc=this.pk(),this.Gd&&(this.Vc%=this.qf()),
|
|
f(this.p)):this.p.paused||this.p.pause();break;case I:this.p.pause();break;case Q:w.Ab&&AppMobi.context.stopSound(this.src)}this.Ed=!0}};C.prototype.it=function(a){this.la===A&&(this.gd?(this.Ka.disconnect(),this.Ka.connect(a)):(this.$a.disconnect(),this.$a.connect(a)))};C.prototype.qf=function(){switch(this.la){case D:if("undefined"!==typeof this.p.duration)return this.p.duration;break;case A:return this.buffer.ya.duration;case I:return this.p.getDuration();case Q:if(w.Ab)return AppMobi.context.getDurationSound(this.src)}return 0};
|
|
C.prototype.pk=function(){var a=this.qf(),c=0;switch(this.la){case D:"undefined"!==typeof this.p.currentTime&&(c=this.p.currentTime);break;case A:if(this.buffer.la===A){if(this.Ed)return this.Vc;c=w.yc.Sa-this.startTime}else"undefined"!==typeof this.p.currentTime&&(c=this.p.currentTime);break;case Q:w.Ab&&(c=AppMobi.context.getPlaybackTimeSound(this.src))}!this.Gd&&c>a&&(c=a);return c};C.prototype.uf=function(){return!this.Ed&&!this.Wd&&!this.Fc&&!this.sg()};C.prototype.Kt=function(){var a=this.volume*
|
|
va;switch(this.la){case D:this.p.volume&&this.p.volume!==a&&(this.p.volume=a);break;case A:this.$a.gain.value=a*this.Tg}};C.prototype.Th=function(a){switch(this.la){case D:this.p.muted!==!!a&&(this.p.muted=!!a);break;case A:this.Tg=a?0:1,this.$a.gain.value=va*this.volume*this.Tg}};C.prototype.wt=function(){this.xf=!0;this.Th(this.xf||this.Ag)};C.prototype.Io=function(a){this.Ag=!!a;this.Th(this.xf||this.Ag)};C.prototype.ip=function(){var a=this.playbackRate;if(1===eb&&!this.Oc||2===eb)a*=w.Sf;switch(this.la){case D:this.p.playbackRate!==
|
|
a&&(this.p.playbackRate=a);break;case A:this.buffer.la===A?this.p.playbackRate.value!==a&&(this.p.playbackRate.value=a):this.p.playbackRate!==a&&(this.p.playbackRate=a)}};C.prototype.xt=function(a){switch(this.la){case D:a?this.uf()?(this.p.pause(),this.Hd=!0):this.Hd=!1:this.Hd&&this.p.play();break;case A:a?this.uf()?(this.buffer.la===A?(this.Vc=this.pk(),this.Gd&&(this.Vc%=this.qf()),f(this.p)):this.p.pause(),this.Hd=!0):this.Hd=!1:this.Hd&&(this.buffer.la===A?(this.p=y.createBufferSource(),this.p.buffer=
|
|
this.buffer.ya,this.p.connect(this.$a),this.p.loop=this.Gd,this.$a.gain.value=va*this.volume*this.Tg,this.startTime=w.yc.Sa-this.Vc,d(this.p,this.Vc,this.qf())):this.p.play());break;case I:a?this.uf()?(this.p.pause(),this.Hd=!0):this.Hd=!1:this.Hd&&this.p.play()}};R.ra=function(a){this.type=a;w=this.b=a.b;M=this;this.Bb=null;this.Lg=-600;!(this.b.Gk||this.b.oi&&(this.b.xg||this.b.pn))||this.b.Bk||this.b.Aa||(Ra=!0);y=null;"undefined"!==typeof AudioContext?(F=A,y=new AudioContext):"undefined"!==typeof webkitAudioContext&&
|
|
(F=A,y=new webkitAudioContext);(this.b.Gk&&F===A||Ra)&&document.addEventListener("touchstart",function(){var a,c,b;!oc&&y&&(a=y.createBuffer(1,1,22050),c=y.createBufferSource(),c.buffer=a,c.connect(y.destination),e(c),oc=!0);if(Ra){if(!ua)for(a=0,c=Sa.length;a<c;++a)b=Sa[a],b.Fc||b.Ed||b.p.play();Sa.length=0}},!0);F!==A&&(this.b.Je?F=I:this.b.sf&&(F=Q));F===I&&(K=location.href,a=K.lastIndexOf("/"),-1<a&&(K=K.substr(0,a+1)),K=K.replace("file://",""));if(this.b.sn&&this.b.Es&&"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.te(this);else{if(this.b.Ab)db=this.b.oi;else try{db=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(c){db=!1}this.b.kj(this)}};var wa=R.ra.prototype;wa.Z=function(){eb=this.A[0];this.Id=this.A[1];sb=this.A[2];tb=this.A[3];this.Lg=-this.A[4];lc=this.A[5];mc=this.A[6];nc=this.A[7];this.Bb=new n;F===A&&(y.listener.speedOfSound=this.A[8],y.listener.dopplerFactor=this.A[9],y.listener.setPosition(this.b.S/2,this.b.R/2,this.Lg),y.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=
|
|
function(a,c){Fa&&Fa.disconnect();rb=c.toLowerCase();Fa=y.createMediaStreamSource(a);Fa.connect(l(rb))});this.b.um(function(a){M.Ys(a)});var a=this;this.b.Hj(function(c){a.cl(c)})};wa.cl=function(a){var c,b,d;c=0;for(b=N.length;c<b;c++)d=N[c],d.Ja&&d.Ja.T===a&&(d.Ja.T=null,d.gd&&d.uf()&&d.Gd&&d.stop());this.Bb.T===a&&(this.Bb.T=null)};wa.Lb=function(){var a={silent:ua,masterVolume:va,listenerZ:this.Lg,listenerUid:this.Bb.mi()?this.Bb.T.uid:-1,playing:[],effects:{}},c=a.playing,b,d,e,f,g,h;b=0;for(d=
|
|
N.length;b<d;b++)e=N[b],!e.uf()||3===this.Id||e.Oc&&1===this.Id||!e.Oc&&2===this.Id||(f=e.pk(),e.Gd&&(f%=e.qf()),f={tag:e.oe,buffersrc:e.buffer.src,is_music:e.Oc,playbackTime:f,volume:e.volume,looping:e.Gd,muted:e.xf,playbackRate:e.playbackRate,paused:e.Ed,resume_position:e.Vc},e.gd&&(f.pan={},h=f.pan,e.Ja&&e.Ja.mi()?h.objUid=e.Ja.T.uid:(h.x=e.oo,h.y=e.po,h.a=e.ko),h.ia=e.lo,h.oa=e.mo,h.og=e.no),c.push(f));c=a.effects;for(g in S)if(S.hasOwnProperty(g)){e=[];b=0;for(d=S[g].length;b<d;b++)e.push({type:S[g][b].type,
|
|
params:S[g][b].Rc});c[g]=e}return a};var Ta=[];wa.lc=function(a){var b=a.silent;va=a.masterVolume;this.Lg=a.listenerZ;this.Bb.hh(null);var d=a.listenerUid;-1!==d&&(this.Bb.Hi=d,Ta.push(this.Bb));var d=a.playing,e,f,l,q,E,C,J,R,w,x,y;if(3!==this.Id)for(e=0,f=N.length;e<f;e++)w=N[e],w.Oc&&1===this.Id||(w.Oc||2!==this.Id)&&w.stop();for(E in S)if(S.hasOwnProperty(E))for(e=0,f=S[E].length;e<f;e++)S[E][e].remove();Qa(S);for(E in a.effects)if(a.effects.hasOwnProperty(E))for(C=a.effects[E],e=0,f=C.length;e<
|
|
f;e++)switch(l=C[e].type,x=C[e].params,l){case "filter":H(E,new r(x[0],x[1],x[2],x[3],x[4],x[5]));break;case "delay":H(E,new h(x[0],x[1],x[2]));break;case "convolve":l=x[2];w=this.hk(l,!1);w.ya?l=new g(w.ya,x[0],x[1],l):(l=new g(null,x[0],x[1],l),w.Yn=x[0],w.Lh=l);H(E,l);break;case "flanger":H(E,new t(x[0],x[1],x[2],x[3],x[4]));break;case "phaser":H(E,new p(x[0],x[1],x[2],x[3],x[4],x[5]));break;case "gain":H(E,new v(x[0]));break;case "tremolo":H(E,new s(x[0],x[1]));break;case "ringmod":H(E,new u(x[0],
|
|
x[1]));break;case "distortion":H(E,new c(x[0],x[1],x[2],x[3],x[4]));break;case "compressor":H(E,new k(x[0],x[1],x[2],x[3],x[4]));break;case "analyser":H(E,new m(x[0],x[1]))}e=0;for(f=d.length;e<f;e++)3===this.Id||(a=d[e],l=a.buffersrc,q=a.is_music,E=a.tag,C=a.playbackTime,J=a.looping,R=a.volume,y=(x=a.pan)&&x.hasOwnProperty("objUid")?x.objUid:-1,q&&1===this.Id)||!q&&2===this.Id||((w=this.Vm(l,E,q,J,R))?(w.Vc=a.resume_position,w.El(!!x),w.play(J,R,C),w.ip(),w.Kt(),w.Th(w.xf||w.Ag),a.paused&&w.pause(),
|
|
a.muted&&w.wt(),w.Th(w.xf||w.Ag),x&&(-1!==y?(w.Ja=w.Ja||new n,w.Ja.Hi=y,Ta.push(w.Ja)):w.Dl(x.x,x.y,x.a,x.ia,x.oa,x.og))):(w=this.hk(l,q),w.cj=C,w.Oi=a.paused,x&&(-1!==y?w.Kf.push({$n:y,vk:x.ia,Zk:x.oa,bl:x.og,Wo:E}):w.Kf.push({x:x.x,y:x.y,pq:x.a,vk:x.ia,Zk:x.oa,bl:x.og,Wo:E}))));if(b&&!ua){e=0;for(f=N.length;e<f;e++)N[e].Io(!0);ua=!0}else if(!b&&ua){e=0;for(f=N.length;e<f;e++)N[e].Io(!1);ua=!1}};wa.Zc=function(){var a,c,b,d;a=0;for(c=Ta.length;a<c;a++)b=Ta[a],d=this.b.ng(b.Hi),b.hh(d),b.Hi=-1,d&&
|
|
(Ka=d.x,La=d.y);Ta.length=0};wa.Ys=function(a){var c,b;c=0;for(b=N.length;c<b;c++)N[c].xt(a)};wa.Za=function(){var a=this.b.Ae,c,b,d;c=0;for(b=N.length;c<b;c++)d=N[c],d.Za(a),d.la===D||d.la===Q||d.Wd||d.Fc||!d.sg()||(d.Fc=!0,O=d.oe,w.trigger(fc.prototype.j.Aj,M)),0!==eb&&d.ip();var e,f;for(e in S)if(S.hasOwnProperty(e))for(d=S[e],c=0,b=d.length;c<b;c++)f=d[c],f.Za&&f.Za();F===A&&this.Bb.mi()&&(this.Bb.Za(a),Ka=this.Bb.T.x,La=this.Bb.T.y,y.listener.setPosition(this.Bb.T.x,this.Bb.T.y,this.Lg),y.listener.setVelocity(this.Bb.rk(),
|
|
this.Bb.sk(),0))};wa.hk=function(a,c){var b,d,e,f=null;b=0;for(d=Y.length;b<d;b++)if(e=Y[b],e.src===a){f=e;break}f||(f=new E(a,c),Y.push(f));return f};wa.Vm=function(a,c,b,d,e){var f,g,h;f=0;for(g=N.length;f<g;f++)if(h=N[f],h.src===a&&(h.Dq()||b))return h.oe=c,h;a=this.hk(a,b);if(!a.ya)return"<preload>"!==c&&(a.Pi=c,a.Tk=d,a.Zl=e),null;h=new C(a,c);N.push(h);return h};var Ja=[];J.prototype.Aj=function(a){return bb(O,a)};R.j=new J;da.prototype.Play=function(a,c,b,d){!ua&&(b=Math.pow(10,b/20),0>b&&
|
|
(b=0),1<b&&(b=1),ea=this.Vm(this.b.Rm+a[0]+(db?".ogg":".m4a"),d,a[1],0!==c,b))&&(ea.El(!1),ea.play(0!==c,b))};R.n=new da;R.Ua=new (z())})();function W(b){this.b=b}
|
|
(function(){function b(){}var l=W.prototype;l.Da=function(a){this.wa=a;this.b=a.b};l.Da.prototype.Z=z();l.ra=function(a){this.type=a;this.b=a.b};l.ra.prototype.Z=function(){var a=this;window.addEventListener("resize",function(){a.b.trigger(W.prototype.j.cq,a)});"undefined"!==typeof navigator.onLine&&(window.addEventListener("online",function(){a.b.trigger(W.prototype.j.Xp,a)}),window.addEventListener("offline",function(){a.b.trigger(W.prototype.j.Wp,a)}));"undefined"!==typeof window.applicationCache&&
|
|
(window.applicationCache.addEventListener("updateready",function(){a.b.Bf=1;a.b.trigger(W.prototype.j.mm,a)}),window.applicationCache.addEventListener("progress",function(b){a.b.Bf=b.loaded/b.total}));this.b.Ab||(document.addEventListener("appMobi.device.update.available",function(){a.b.trigger(W.prototype.j.mm,a)}),document.addEventListener("backbutton",function(){a.b.trigger(W.prototype.j.em,a)}),document.addEventListener("menubutton",function(){a.b.trigger(W.prototype.j.hm,a)}),document.addEventListener("searchbutton",
|
|
function(){a.b.trigger(W.prototype.j.dq,a)}),document.addEventListener("tizenhwkey",function(b){var e;switch(b.keyName){case "back":e=a.b.trigger(W.prototype.j.em,a);!e&&window.tizen&&window.tizen.application.getCurrentApplication().exit();break;case "menu":(e=a.b.trigger(W.prototype.j.hm,a))||b.preventDefault()}}));this.b.um(function(b){b?a.b.trigger(W.prototype.j.Yp,a):a.b.trigger(W.prototype.j.Zp,a)})};b.prototype.Xp=G(!0);b.prototype.Wp=G(!0);b.prototype.mm=G(!0);b.prototype.Zp=G(!0);b.prototype.Yp=
|
|
G(!0);b.prototype.cq=G(!0);b.prototype.em=G(!0);b.prototype.hm=G(!0);b.prototype.dq=G(!0);l.j=new b;l.n=new (z());l.Ua=new (z())})();function gc(b){this.b=b}
|
|
(function(){function b(){}function l(){}var a=gc.prototype;a.Da=function(a){this.wa=a;this.b=a.b};a.Da.prototype.Z=z();a.ra=function(a){this.type=a;this.b=a.b};var q=a.ra.prototype;q.Z=function(){this.b.Aa?L("[Construct 2] Button plugin not supported on this platform - the object will not be created"):(this.tf=1===this.A[0],this.vc=document.createElement("input"),this.da=this.tf?document.createElement("label"):this.vc,this.Fg=null,this.vc.type=this.tf?"checkbox":"button",this.vc.id=this.A[6],jQuery(this.da).appendTo(this.b.Ih?
|
|
this.b.Ih:"body"),this.tf?(jQuery(this.vc).appendTo(this.da),this.Fg=document.createTextNode(this.A[1]),jQuery(this.da).append(this.Fg),this.vc.checked=0!==this.A[7],jQuery(this.da).css("font-family","sans-serif"),jQuery(this.da).css("display","inline-block"),jQuery(this.da).css("color","black")):this.vc.value=this.A[1],this.da.title=this.A[2],this.vc.disabled=0===this.A[4],this.wq=0!==this.A[5],this.Be=!1,0===this.A[3]&&(jQuery(this.da).hide(),this.visible=!1,this.Be=!0),this.vc.onclick=function(a){return function(b){b.stopPropagation();
|
|
a.b.xc=!0;a.b.trigger(gc.prototype.j.sh,a);a.b.xc=!1}}(this),this.da.addEventListener("touchstart",function(a){a.stopPropagation()},!1),this.da.addEventListener("touchmove",function(a){a.stopPropagation()},!1),this.da.addEventListener("touchend",function(a){a.stopPropagation()},!1),jQuery(this.da).mousedown(function(a){a.stopPropagation()}),jQuery(this.da).mouseup(function(a){a.stopPropagation()}),jQuery(this.da).keydown(function(a){a.stopPropagation()}),jQuery(this.da).keyup(function(a){a.stopPropagation()}),
|
|
this.Jn=this.Kn=this.Bn=this.Gn=this.In=this.Dn=0,this.jp(!0),this.b.kj(this))};q.Lb=function(){var a={tooltip:this.da.title,disabled:!!this.vc.disabled};this.tf?(a.checked=!!this.vc.checked,a.text=this.Fg.nodeValue):a.text=this.da.value;return a};q.lc=function(a){this.da.title=a.tooltip;this.vc.disabled=a.disabled;this.tf?(this.vc.checked=a.checked,this.Fg.nodeValue=a.text):this.da.value=a.text};q.Ue=function(){this.b.Aa||(jQuery(this.da).remove(),this.da=null)};q.Za=function(){this.jp()};q.jp=function(a){if(!this.b.Aa){var b=
|
|
this.k.na(this.x,this.y,!0),f=this.k.na(this.x,this.y,!1),l=this.k.na(this.x+this.width,this.y+this.height,!0),h=this.k.na(this.x+this.width,this.y+this.height,!1);if(!this.visible||!this.k.visible||0>=l||0>=h||b>=this.b.width||f>=this.b.height)this.Be||jQuery(this.da).hide(),this.Be=!0;else{1>b&&(b=1);1>f&&(f=1);l>=this.b.width&&(l=this.b.width-1);h>=this.b.height&&(h=this.b.height-1);var g=window.innerWidth,q=window.innerHeight;a||this.Dn!==b||this.In!==f||this.Gn!==l||this.Bn!==h||this.Kn!==g||
|
|
this.Jn!==q?(this.Dn=b,this.In=f,this.Gn=l,this.Bn=h,this.Kn=g,this.Jn=q,this.Be&&(jQuery(this.da).show(),this.Be=!1),a=Math.round(b)+jQuery(this.b.canvas).offset().left,g=Math.round(f)+jQuery(this.b.canvas).offset().top,jQuery(this.da).css("position","absolute"),jQuery(this.da).offset({left:a,top:g}),jQuery(this.da).width(Math.round(l-b)),jQuery(this.da).height(Math.round(h-f)),this.wq&&jQuery(this.da).css("font-size",this.k.Ib()/this.b.devicePixelRatio-0.2+"em")):this.Be&&(jQuery(this.da).show(),
|
|
this.Be=!1)}}};q.Mc=z();q.fc=z();b.prototype.sh=G(!0);a.j=new b;l.prototype.Ej=function(a){this.b.Aa||(this.tf?this.Fg.nodeValue=a:this.da.value=a)};l.prototype.jq=function(a){this.b.Aa||(this.visible=0!==a)};a.n=new l;a.Ua=new (z())})();function X(b){this.b=b}
|
|
(function(){function b(){}var l=X.prototype;l.Da=function(a){this.wa=a;this.b=a.b};l.Da.prototype.Z=z();l.ra=function(a){this.type=a;this.b=a.b};l.ra.prototype.Z=function(){this.tn=this.Ds=!1;this.Tf="";this.nd=null;this.Dt=this.b.wc&&"undefined"!==typeof CocoonJS.Store.nativeExtensionObjectAvailable;this.Bt=1!==this.A[0];this.Ct=0!==this.A[1];this.co="";var a=this;this.b.wc&&(CocoonJS.App.onTextDialogFinished.addEventListener(function(){a.b.trigger(X.prototype.j.Rp,a)}),CocoonJS.App.onTextDialogCancelled.addEventListener(function(){a.b.trigger(X.prototype.j.Qp,
|
|
a)}),CocoonJS.Ad.onBannerShown.addEventListener(function(){a.Ds=!0;a.b.trigger(X.prototype.j.Ap,a)}),CocoonJS.Ad.onBannerReady.addEventListener(function(){CocoonJS.Ad.setBannerLayout(0);CocoonJS.Ad.showBanner()}),CocoonJS.Ad.onFullScreenShown.addEventListener(function(){a.tn=!0;a.b.trigger(X.prototype.j.Fp,a)}),CocoonJS.Ad.onFullScreenHidden.addEventListener(function(){a.tn=!1;a.b.trigger(X.prototype.j.Ep,a)}),CocoonJS.Ad.onFullScreenReady.addEventListener(function(){preloadFullScreen||CocoonJS.Ad.showFullScreen()}),
|
|
this.Dt&&(CocoonJS.Store.onProductPurchaseCompleted.addEventListener(function(b){a.Tf=b.productId;a.b.trigger(X.prototype.j.$p,a);CocoonJS.Store.addPurchase(b);CocoonJS.Store.consumePurchase(b.transactionId,b.productId);CocoonJS.Store.finishPurchase(b.transactionId)}),CocoonJS.Store.onConsumePurchaseFailed.addEventListener(function(){a.b.trigger(X.prototype.j.Ms,a)}),CocoonJS.Store.onConsumePurchaseCompleted.addEventListener(function(b){this.co=b;a.b.trigger(X.prototype.j.co,a)}),CocoonJS.Store.onProductPurchaseFailed.addEventListener(function(b){a.Tf=
|
|
b;a.b.trigger(X.prototype.j.aq,a)}),CocoonJS.Store.onProductPurchaseStarted.addEventListener(function(b){a.Tf=b.productId;a.b.trigger(X.prototype.j.bq,a)}),CocoonJS.Store.onProductsFetchStarted.addEventListener(function(){a.b.trigger(X.prototype.j.Ws,a)}),CocoonJS.Store.onProductsFetchFailed.addEventListener(function(){a.b.trigger(X.prototype.j.Vs,a)}),CocoonJS.Store.onProductsFetchCompleted.addEventListener(function(){a.b.trigger(X.prototype.j.Us,a)}),CocoonJS.Store.requestInitialization({managed:this.Bt,
|
|
sandbox:this.Ct}),CocoonJS.Store.start()),this.nd=CocoonJS.SocialGaming.GameCenter,this.nd.onRequestLoginSucceed.addEventListener(function(){a.b.trigger(X.prototype.j.Jp,a)}),this.nd.onRequestLoginFailed.addEventListener(function(){a.b.trigger(X.prototype.j.Ip,a)}),this.nd.onLogout.addEventListener(function(){a.b.trigger(X.prototype.j.Kp,a)}),this.nd.onRequestUserScoreSucceed.addEventListener(function(){a.b.trigger(X.prototype.j.Lp,a)}),this.nd.onRequestUserScoreFailed.addEventListener(function(){a.b.trigger(X.prototype.j.Op,
|
|
a)}),this.nd.onSubmitUserScoreSucceed.addEventListener(function(){a.b.trigger(X.prototype.j.Np,a)}),this.nd.onSubmitUserScoreFailed.addEventListener(function(){a.b.trigger(X.prototype.j.Mp,a)}),this.nd.onLeaderboardViewSucceed.addEventListener(function(){a.b.trigger(X.prototype.j.Hp,a)}),this.nd.onLeaderboardViewClosed.addEventListener(function(){a.b.trigger(X.prototype.j.Gp,a)}))};b.prototype.Ap=G(!0);b.prototype.Fp=G(!0);b.prototype.Ep=G(!0);b.prototype.bq=function(a){return this.Tf===a};b.prototype.$p=
|
|
function(a){return this.Tf===a};b.prototype.aq=function(a){return this.Tf===a};b.prototype.Ws=G(!0);b.prototype.Ms=G(!0);b.prototype.Us=G(!0);b.prototype.Vs=G(!0);b.prototype.Qp=G(!0);b.prototype.Rp=G(!0);b.prototype.Jp=G(!0);b.prototype.Ip=G(!0);b.prototype.Kp=G(!0);b.prototype.Lp=G(!0);b.prototype.Op=G(!0);b.prototype.Np=G(!0);b.prototype.Mp=G(!0);b.prototype.Hp=G(!0);b.prototype.Gp=G(!0);l.j=new b;l.n=new (z());l.Ua=new (z())})();function Z(b){this.b=b}
|
|
(function(){function b(){if(0===this.Xj.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var c=a.getContext("2d");this.Pf?c.drawImage(this.U,this.If,this.Jf,this.width,this.height,0,0,this.width,this.height):c.drawImage(this.U,0,0,this.width,this.height);this.Xj=a.toDataURL("image/png")}return this.Xj}function l(){}function a(a){a[0]=0;a[1]=0;a[2]=0;v.push(a)}function q(a,c){return a<c?""+a+","+c:""+c+","+a}function e(a,c,b,d){c=c.uid;b=b.uid;var e=q(c,b);if(a.hasOwnProperty(e))a[e][2]=
|
|
d;else{var f=v.length?v.pop():[0,0,0];f[0]=c;f[1]=b;f[2]=d;a[e]=f}}function d(c,b,d){b=q(b.uid,d.uid);c.hasOwnProperty(b)&&(a(c[b]),delete c[b])}function f(a,c,b){c=q(c.uid,b.uid);if(a.hasOwnProperty(c))return s=a[c][2],!0;s=-2;return!1}function r(){}var h=Z.prototype;h.Da=function(a){this.wa=a;this.b=a.b};var g=h.Da.prototype;g.Z=function(){if(!this.I){var a,c,d,e,f,g,h,k,l;this.Jc=[];this.ni=!1;a=0;for(c=this.Mb.length;a<c;a++){f=this.Mb[a];h={};h.name=f[0];h.speed=f[1];h.loop=f[2];h.ul=f[3];h.$i=
|
|
f[4];h.so=f[5];h.V=f[6];h.frames=[];d=0;for(e=f[7].length;d<e;d++)g=f[7][d],k={},k.Nl=g[0],k.Ol=g[1],k.If=g[2],k.Jf=g[3],k.width=g[4],k.height=g[5],k.duration=g[6],k.Jb=g[7],k.Kb=g[8],k.xk=g[9],k.Qi=g[10],k.to=g[11],k.Pf=0!==k.width,k.Xj="",k.Vu=b,l={left:0,top:0,right:1,bottom:1},k.Fl=l,k.xa=null,(l=this.b.Hr(g[0]))?k.U=l:(k.U=new Image,k.U.idtkLoadDisposed=!0,k.U.src=g[0],k.U.Iq=g[0],k.U.Fm=g[1],k.U.Bq=null,this.b.Ld.push(k.U)),h.frames.push(k),this.Jc.push(k);this.Mb[a]=h}}};g.Jt=function(){var a,
|
|
c,b;a=0;for(c=this.i.length;a<c;a++)b=this.i[a],b.Oh=b.pc.xa};g.Mi=function(){if(!this.I){var a,c,b;a=0;for(c=this.Jc.length;a<c;++a)b=this.Jc[a],b.U.Bq=null,b.xa=null}};g.el=function(){if(!this.I&&this.i.length){var a,c,b;a=0;for(c=this.Jc.length;a<c;++a)b=this.Jc[a],b.xa=this.b.B.Gi(b.U,!1,this.b.aa,b.to);this.Jt()}};g.Ok=function(){if(!this.I&&!this.ni&&this.b.B){var a,c,b;a=0;for(c=this.Jc.length;a<c;++a)b=this.Jc[a],b.xa=this.b.B.Gi(b.U,!1,this.b.aa,b.to);this.ni=!0}};g.Vl=function(){if(!this.I&&
|
|
!this.i.length&&this.ni){var a,c,b;a=0;for(c=this.Jc.length;a<c;++a)b=this.Jc[a],this.b.B.deleteTexture(b.xa);this.ni=!1}};var t=[];g.nl=function(a){var c,b,d;c=t.length=0;for(b=this.Jc.length;c<b;++c)d=this.Jc[c].U,-1===t.indexOf(d)&&(a.drawImage(d,0,0),t.push(d))};h.ra=function(a){this.type=a;this.b=a.b;a=this.type.Mb[0].frames[0].Qi;this.mc?this.ba.jh(a):this.ba=new Xa(a)};var p=h.ra.prototype;p.Z=function(){this.visible=0===this.A[0];this.wd=0!==this.A[3];1===this.type.Mb.length&&1===this.type.Mb[0].frames.length||
|
|
0===this.type.Mb[0].speed||this.b.kj(this);this.Ea=this.Um(this.A[1])||this.type.Mb[0];this.F=this.A[2];0>this.F&&(this.F=0);this.F>=this.Ea.frames.length&&(this.F=this.Ea.frames.length-1);var a=this.Ea.frames[this.F];this.ba.jh(a.Qi);this.Jb=a.Jb;this.Kb=a.Kb;this.gg=this.Ea.speed;this.mc?this.$c.reset():this.$c=new Va;this.Cd=this.$c.Sa;this.Od=!0;this.ud=0;this.ve=!0;this.Pj=this.wm="";this.Gq=0;this.Oj=-1;this.type.Ok();var c,b,d,e,f,g,h,a=0;for(c=this.type.Mb.length;a<c;a++)for(e=this.type.Mb[a],
|
|
b=0,d=e.frames.length;b<d;b++)f=e.frames[b],0===f.width&&(f.width=f.U.width,f.height=f.U.height),f.Pf&&(h=f.U,g=f.Fl,g.left=f.If/h.width,g.top=f.Jf/h.height,g.right=(f.If+f.width)/h.width,g.bottom=(f.Jf+f.height)/h.height,0===f.If&&0===f.Jf&&f.width===h.width&&f.height===h.height&&(f.Pf=!1));this.pc=this.Ea.frames[this.F];this.Oh=this.pc.xa};p.Lb=function(){var a={a:this.Ea.V,f:this.F,cas:this.gg,fs:this.Cd,ar:this.ud,at:this.$c.Sa};this.Od||(a.ap=this.Od);this.ve||(a.af=this.ve);return a};p.lc=function(a){var c=
|
|
this.Lr(a.a);c&&(this.Ea=c);this.F=a.f;0>this.F&&(this.F=0);this.F>=this.Ea.frames.length&&(this.F=this.Ea.frames.length-1);this.gg=a.cas;this.Cd=a.fs;this.ud=a.ar;this.$c.reset();this.$c.Sa=a.at;this.Od=a.hasOwnProperty("ap")?a.ap:!0;this.ve=a.hasOwnProperty("af")?a.af:!0;this.pc=this.Ea.frames[this.F];this.Oh=this.pc.xa;this.ba.jh(this.pc.Qi);this.Jb=this.pc.Jb;this.Kb=this.pc.Kb};p.Jj=function(a){this.F=a?0:this.Ea.frames.length-1;this.Od=!1;this.wm=this.Ea.name;this.b.trigger(Z.prototype.j.zp,
|
|
this);this.b.trigger(Z.prototype.j.yp,this);this.ud=0};p.Yu=function(){return this.$c.Sa};p.Za=function(){this.$c.add(this.b.fi(this));this.Pj.length&&this.Oq();0<=this.Oj&&this.Pq();var a=this.$c.Sa,c=this.Ea,b=c.frames[this.F],d=b.duration/this.gg;this.Od&&a>=this.Cd+d&&(this.ve?this.F++:this.F--,this.Cd+=d,this.F>=c.frames.length&&(c.so?(this.ve=!1,this.F=c.frames.length-2):c.loop?this.F=c.$i:(this.ud++,this.ud>=c.ul?this.Jj(!1):this.F=c.$i)),0>this.F&&(c.so?(this.F=1,this.ve=!0,c.loop||(this.ud++,
|
|
this.ud>=c.ul&&this.Jj(!0))):c.loop?this.F=c.$i:(this.ud++,this.ud>=c.ul?this.Jj(!0):this.F=c.$i)),0>this.F?this.F=0:this.F>=c.frames.length&&(this.F=c.frames.length-1),a>this.Cd+c.frames[this.F].duration/this.gg&&(this.Cd=a),a=c.frames[this.F],this.ag(b,a),this.b.ja=!0)};p.Um=function(a){var c,b,d;c=0;for(b=this.type.Mb.length;c<b;c++)if(d=this.type.Mb[c],bb(d.name,a))return d;return null};p.Lr=function(a){var c,b,d;c=0;for(b=this.type.Mb.length;c<b;c++)if(d=this.type.Mb[c],d.V===a)return d;return null};
|
|
p.Oq=function(){var a=this.Ea.frames[this.F],c=this.Um(this.Pj);this.Pj="";!c||bb(c.name,this.Ea.name)&&this.Od||(this.Ea=c,this.gg=c.speed,0>this.F&&(this.F=0),this.F>=this.Ea.frames.length&&(this.F=this.Ea.frames.length-1),1===this.Gq&&(this.F=0),this.Od=!0,this.Cd=this.$c.Sa,this.ve=!0,this.ag(a,this.Ea.frames[this.F]),this.b.ja=!0)};p.Pq=function(){var a=this.Ea.frames[this.F],c=this.F;this.F=T(this.Oj);0>this.F&&(this.F=0);this.F>=this.Ea.frames.length&&(this.F=this.Ea.frames.length-1);c!==this.F&&
|
|
(this.ag(a,this.Ea.frames[this.F]),this.Cd=this.$c.Sa,this.b.ja=!0);this.Oj=-1};p.ag=function(a,c){var b=a.width,d=a.height,e=c.width,f=c.height;b!=e&&(this.width*=e/b);d!=f&&(this.height*=f/d);this.Jb=c.Jb;this.Kb=c.Kb;this.ba.jh(c.Qi);this.D();this.pc=c;this.Oh=c.xa;b=0;for(d=this.O.length;b<d;b++)e=this.O[b],e.Xs&&e.Xs(a,c);this.b.trigger(Z.prototype.j.ag,this)};p.Mc=function(a){a.globalAlpha=this.opacity;var c=this.pc,b=c.Pf,d=c.U,e=this.x,f=this.y,g=this.width,h=this.height;if(0===this.m&&0<=
|
|
g&&0<=h)e-=this.Jb*g,f-=this.Kb*h,this.b.hd&&(e=e+0.5|0,f=f+0.5|0),b?a.drawImage(d,c.If,c.Jf,c.width,c.height,e,f,g,h):a.drawImage(d,e,f,g,h);else{this.b.hd&&(e=e+0.5|0,f=f+0.5|0);a.save();var k=0<g?1:-1,l=0<h?1:-1;a.translate(e,f);1===k&&1===l||a.scale(k,l);a.rotate(this.m*k*l);e=0-this.Jb*ia(g);f=0-this.Kb*ia(h);b?a.drawImage(d,c.If,c.Jf,c.width,c.height,e,f,ia(g),ia(h)):a.drawImage(d,e,f,ia(g),ia(h));a.restore()}};p.fc=function(a){a.Wb(this.Oh);a.Ze(this.opacity);var c=this.pc,b=this.yb;if(this.b.hd){var d=
|
|
(this.x+0.5|0)-this.x,e=(this.y+0.5|0)-this.y;c.Pf?a.jd(b.Ga+d,b.Ha+e,b.wb+d,b.xb+e,b.rb+d,b.sb+e,b.pb+d,b.qb+e,c.Fl):a.Xi(b.Ga+d,b.Ha+e,b.wb+d,b.xb+e,b.rb+d,b.sb+e,b.pb+d,b.qb+e)}else c.Pf?a.jd(b.Ga,b.Ha,b.wb,b.xb,b.rb,b.sb,b.pb,b.qb,c.Fl):a.Xi(b.Ga,b.Ha,b.wb,b.xb,b.rb,b.sb,b.pb,b.qb)};p.Pr=function(a){var c=this.pc,b,d;b=0;for(d=c.xk.length;b<d;b++)if(bb(a,c.xk[b][0]))return b;return-1};p.nk=function(a,c){var b=this.pc,d=b.xk,e;e=P(a)?this.Pr(a):a-1;e=T(e);if(0>e||e>=d.length)return c?this.x:this.y;
|
|
var f=(d[e][1]-b.Jb)*this.width,d=d[e][2],d=(d-b.Kb)*this.height,b=Math.cos(this.m);e=Math.sin(this.m);var g=f*b-d*e,d=d*b+f*e,f=g+this.x,d=d+this.y;return c?f:d};var v=[],s=-2,u=[];l.prototype.yj=function(c){if(!c)return!1;var b=this.b,g=b.kk(),h=g.type;g.P.Rj||(g.P.Rj={},b.Hj(function(c){return function(b){b=b.uid;var d,e;for(d in c)c.hasOwnProperty(d)&&(e=c[d],e[0]===b||e[1]===b)&&(a(c[d]),delete c[d])}}(g.P.Rj)));var g=g.P.Rj,k=h.ca(),l=c.ca(),k=k.uc(),p,q,r,t,v,K,D,A=this.b.qd,I=A-1,Q=b.zb().qc;
|
|
for(q=0;q<k.length;q++){r=k[q];l.pa?(r.Ca(),this.b.Wm(r.k,c,r.Ia,u),p=u):p=l.uc();for(t=0;t<p.length;t++)v=p[t],b.Yb(r,v)||b.Hq(r,v)?(K=f(g,r,v),K=!K||s<I,e(g,r,v,A),K&&(b.Vi(Q.Ba),K=h.ca(),D=c.ca(),K.pa=!1,D.pa=!1,h===c?(K.i.length=2,K.i[0]=r,K.i[1]=v,h.Lc()):(K.i.length=1,D.i.length=1,K.i[0]=r,D.i[0]=v,h.Lc(),c.Lc()),Q.lt(),b.Ve(Q.Ba))):d(g,r,v);u.length=0}return!1};var c=new ba,k=!1;g.finish=function(a){if(k){if(a){var b=this.b.zb().qc.Qc;a=null.ca();var d=c.Vf(),e,f;if(a.pa){a.pa=!1;a.i.length=
|
|
d.length;e=0;for(f=d.length;e<f;e++)a.i[e]=d[e];if(b)for(e=a.ea.length=0,f=null.i.length;e<f;e++)d=null.i[e],c.contains(d)||a.ea.push(d)}else if(b)for(b=a.i.length,a.i.length=b+d.length,e=0,f=d.length;e<f;e++)a.i[b+e]=d[e],ya(a.ea,d[e]);else ta(a.i,d);null.Lc()}c.clear();k=!1}};l.prototype.yp=function(a){return bb(this.wm,a)};l.prototype.zp=G(!0);l.prototype.ag=G(!0);h.j=new l;r.prototype.Fj=function(){this.Od=!1};h.n=new r;h.Ua=new (z())})();function hc(b){this.b=b}
|
|
(function(){function b(){return r.length?r.pop():{}}function l(a){var b,d;b=0;for(d=a.length;b<d;b++)r.push(a[b]);a.length=0}function a(){}var q=hc.prototype;q.Z=function(){q.n.lq=function(a){this.width!==a&&(this.width=a,this.qe=!0,this.D())}};q.Da=function(a){this.wa=a;this.b=a.b};var e=q.Da.prototype;e.Z=z();e.Mi=function(){if(!this.I){var a,b,d;a=0;for(b=this.i.length;a<b;a++)d=this.i[a],d.fd=null,d.Se=null,d.Tb=null}};q.ra=function(a){this.type=a;this.b=a.b;this.mc?this.ee.length=0:this.ee=[];
|
|
this.qe=!0};var e=q.ra.prototype,d={};e.Z=function(){this.text=this.A[0];this.visible=0===this.A[1];this.font=this.A[2];this.color=this.A[3];this.li=this.A[4];this.qj=this.A[5];this.cm=0===this.A[7];this.Kk=this.Ai=this.width;this.xi=this.height;this.Mk=this.A[8];this.ci=this.Bd="";this.Uo=this.Vo=this.dh=0;this.Zs();this.Tb=this.Se=this.fd=null;this.Wn=!1;this.Kg=this.b.qd;this.mc?this.he.set(0,0,1,1):this.he=new pa(0,0,1,1);this.b.B&&this.b.kj(this)};e.Zs=function(){var a=this.font.split(" "),b;
|
|
for(b=0;b<a.length;b++)if("pt"===a[b].substr(a[b].length-2,2)){this.dh=parseInt(a[b].substr(0,a[b].length-2));this.ql=Math.ceil(96*(this.dh/72))+4;0<b&&(this.ci=a[b-1]);this.Bd=a[b+1];for(b+=2;b<a.length;b++)this.Bd+=" "+a[b];break}};e.Lb=function(){return{t:this.text,f:this.font,c:this.color,ha:this.li,va:this.qj,wr:this.cm,lho:this.Mk,fn:this.Bd,fs:this.ci,ps:this.dh,pxh:this.ql,tw:this.Vo,th:this.Uo,lrt:this.Kg}};e.lc=function(a){this.text=a.t;this.font=a.f;this.color=a.c;this.li=a.ha;this.qj=
|
|
a.va;this.cm=a.wr;this.Mk=a.lho;this.Bd=a.fn;this.ci=a.fs;this.dh=a.ps;this.ql=a.pxh;this.Vo=a.tw;this.Uo=a.th;this.Kg=a.lrt;this.qe=!0;this.Kk=this.Ai=this.width;this.xi=this.height};e.Za=function(){if(this.b.B&&this.Tb&&300<=this.b.qd-this.Kg){var a=this.k;this.Ca();var b=this.Ia;if(b.right<a.mb||b.bottom<a.nb||b.left>a.$b||b.top>a.Zb)this.b.B.deleteTexture(this.Tb),this.fd=this.Se=this.Tb=null}};e.Ue=function(){this.fd=this.Se=null;this.b.B&&this.Tb&&this.b.B.deleteTexture(this.Tb);this.Tb=null};
|
|
e.gp=function(){this.font=this.ci+" "+this.dh.toString()+"pt "+this.Bd;this.qe=!0;this.b.ja=!0};e.Mc=function(a,b){a.font=this.font;a.textBaseline="top";a.fillStyle=this.color;a.globalAlpha=b?1:this.opacity;var d=1;b&&(d=this.k.Ib(),a.save(),a.scale(d,d));if(this.qe||this.width!==this.Kk)this.type.wa.nq(this.text,this.ee,a,this.width,this.cm),this.qe=!1,this.Kk=this.width;this.Ca();var d=b?0:this.yb.Ga,e=b?0:this.yb.Ha;this.b.hd&&(d=d+0.5|0,e=e+0.5|0);0===this.m||b||(a.save(),a.translate(d,e),a.rotate(this.m),
|
|
e=d=0);var f=e+this.height,l=this.ql,l=l+this.Mk,q,c;1===this.qj?e+=Math.max(this.height/2-this.ee.length*l/2,0):2===this.qj&&(e+=Math.max(this.height-this.ee.length*l-2,0));for(c=0;c<this.ee.length&&!(q=d,1===this.li?q=d+(this.width-this.ee[c].width)/2:2===this.li&&(q=d+(this.width-this.ee[c].width)),a.fillText(this.ee[c].text,q,e),e+=l,e>=f-l);c++);(0!==this.m||b)&&a.restore();this.Kg=this.b.qd};e.fc=function(a){if(!(1>this.width||1>this.height)){var b=this.qe||this.Wn;this.Wn=!1;var d=this.k.Ib(),
|
|
e=this.k.Pa(),f=this.he,l=d*this.width,q=d*this.height,c=Math.ceil(l),k=Math.ceil(q),m=this.b.S/2,n=this.b.R/2;this.Se||(this.fd=document.createElement("canvas"),this.fd.width=c,this.fd.height=k,this.Ai=c,this.xi=k,b=!0,this.Se=this.fd.getContext("2d"));if(c!==this.Ai||k!==this.xi)this.fd.width=c,this.fd.height=k,this.Tb&&(a.deleteTexture(this.Tb),this.Tb=null),b=!0;b&&(this.Se.clearRect(0,0,c,k),this.Mc(this.Se,!0),this.Tb||(this.Tb=a.xd(c,k,this.b.aa,this.b.Yd)),a.Qt(this.fd,this.Tb,this.b.Yd));
|
|
this.Ai=c;this.xi=k;a.Wb(this.Tb);a.Ze(this.opacity);a.kd();a.translate(-m,-n);a.rd();var r=this.yb,C=this.b.devicePixelRatio;this.b.devicePixelRatio=1;var b=this.k.na(r.Ga,r.Ha,!0,!0),m=this.k.na(r.Ga,r.Ha,!1,!0),n=this.k.na(r.wb,r.xb,!0,!0),H=this.k.na(r.wb,r.xb,!1,!0),J=this.k.na(r.rb,r.sb,!0,!0),da=this.k.na(r.rb,r.sb,!1,!0),R=this.k.na(r.pb,r.qb,!0,!0),r=this.k.na(r.pb,r.qb,!1,!0);this.b.devicePixelRatio=C;if(this.b.hd||0===this.m&&0===e)var C=(b+0.5|0)-b,w=(m+0.5|0)-m,b=b+C,m=m+w,n=n+C,H=H+
|
|
w,J=J+C,da=da+w,R=R+C,r=r+w;0===this.m&&0===e?(n=b+c,H=m,J=n,da=m+k,R=b,r=da,f.right=1,f.bottom=1):(f.right=l/c,f.bottom=q/k);a.jd(b,m,n,H,J,da,R,r,f);a.kd();a.scale(d,d);a.xl(-this.k.Pa());a.translate((this.k.mb+this.k.$b)/-2,(this.k.nb+this.k.Zb)/-2);a.rd();this.Kg=this.b.qd}};var f=[];q.mq=function(a){f.length=0;for(var b="",d,e=0;e<a.length;)if(d=a.charAt(e),"\n"===d)b.length&&(f.push(b),b=""),f.push("\n"),++e;else if(" "===d||"\t"===d||"-"===d){do b+=a.charAt(e),e++;while(e<a.length&&(" "===
|
|
a.charAt(e)||"\t"===a.charAt(e)));f.push(b);b=""}else e<a.length&&(b+=d,e++);b.length&&f.push(b)};var r=[];q.nq=function(a,d,e,f,q){if(a&&a.length)if(2>=f)l(d);else{if(100>=a.length&&-1===a.indexOf("\n")){var r=e.measureText(a).width;if(r<=f){l(d);d.push(b());d[0].text=a;d[0].width=r;return}}this.oq(a,d,e,f,q)}else l(d)};q.oq=function(a,d,e,l,q){q&&(this.mq(a),a=f);var s="",u,c,k,m=0;for(k=0;k<a.length;k++)"\n"===a[k]?(m>=d.length&&d.push(b()),c=d[m],c.text=s,c.width=e.measureText(s).width,m++,s=
|
|
""):(u=s,s+=a[k],c=e.measureText(s).width,c>=l&&(m>=d.length&&d.push(b()),c=d[m],c.text=u,c.width=e.measureText(u).width,m++,s=a[k],q||" "!==s||(s="")));s.length&&(m>=d.length&&d.push(b()),c=d[m],c.text=s,c.width=e.measureText(s).width,m++);for(k=m;k<d.length;k++)r.push(d[k]);d.length=m};q.j=new (z());a.prototype.Ej=function(a){fa(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.qe=!0,this.b.ja=!0)};a.prototype.kq=function(a,b){if(this.b.Aa)L("[Construct 2] Text plugin: 'Set web font' not supported on this platform - the action has been ignored");
|
|
else{var e=this,f=function(){e.b.ja=!0;e.qe=!0};if(d.hasOwnProperty(b)){var l="'"+a+"'";if(this.Bd!==l)for(this.Bd=l,this.gp(),l=1;10>l;l++)setTimeout(f,100*l),setTimeout(f,1E3*l)}else for(l=document.createElement("link"),l.href=b,l.rel="stylesheet",l.type="text/css",l.onload=f,document.getElementsByTagName("head")[0].appendChild(l),d[b]=!0,this.Bd="'"+a+"'",this.gp(),l=1;10>l;l++)setTimeout(f,100*l),setTimeout(f,1E3*l)}};q.n=new a;q.Ua=new (z())})();function ic(b){this.b=b}
|
|
(function(){var b=ic.prototype;b.Da=function(a){this.wa=a;this.b=a.b};var l=b.Da.prototype;l.Z=function(){this.I||(this.U=new Image,this.U.idtkLoadDisposed=!0,this.U.src=this.Nl,this.U.Fm=this.Ol,this.b.Ld.push(this.U),this.xa=this.pattern=null)};l.Mi=function(){this.I||(this.xa=null)};l.el=function(){if(!this.I&&this.i.length){this.xa||(this.xa=this.b.B.Gi(this.U,!0,this.b.aa,this.Pl));var a,b;a=0;for(b=this.i.length;a<b;a++)this.i[a].xa=this.xa}};l.Ok=function(){this.I||this.xa||!this.b.B||(this.xa=
|
|
this.b.B.Gi(this.U,!0,this.b.aa,this.Pl))};l.Vl=function(){this.I||this.i.length||!this.xa||(this.b.B.deleteTexture(this.xa),this.xa=null)};l.nl=function(a){a.drawImage(this.U,0,0)};b.ra=function(a){this.type=a;this.b=a.b};l=b.ra.prototype;l.Z=function(){this.visible=0===this.A[0];this.he=new pa(0,0,0,0);this.hn=!1;this.U=this.type.U;this.b.B?(this.type.Ok(),this.xa=this.type.xa):(this.type.pattern||(this.type.pattern=this.b.ka.createPattern(this.type.U,"repeat")),this.pattern=this.type.pattern)};
|
|
l.Zc=function(){this.hn=!1;this.U=this.type.U};l.Ue=function(){this.b.B&&this.hn&&this.xa&&(this.b.B.deleteTexture(this.xa),this.xa=null)};l.Mc=function(a){a.globalAlpha=this.opacity;a.save();a.fillStyle=this.pattern;var b=this.x,e=this.y;this.b.hd&&(b=b+0.5|0,e=e+0.5|0);var d=-(this.Jb*this.width),f=-(this.Kb*this.height),l=d%this.U.width,h=f%this.U.height;0>l&&(l+=this.U.width);0>h&&(h+=this.U.height);a.translate(b,e);a.rotate(this.m);a.translate(l,h);a.fillRect(d-l,f-h,this.width,this.height);
|
|
a.restore()};l.fc=function(a){a.Wb(this.xa);a.Ze(this.opacity);var b=this.he;b.right=this.width/this.U.width;b.bottom=this.height/this.U.height;var e=this.yb;if(this.b.hd){var d=(this.x+0.5|0)-this.x,f=(this.y+0.5|0)-this.y;a.jd(e.Ga+d,e.Ha+f,e.wb+d,e.xb+f,e.rb+d,e.sb+f,e.pb+d,e.qb+f,b)}else a.jd(e.Ga,e.Ha,e.wb,e.xb,e.rb,e.sb,e.pb,e.qb,b)};b.j=new (z());b.n=new (z());b.Ua=new (z())})();function jc(b){this.b=b}
|
|
(function(){function b(a){r=a.x;h=a.y;g=a.z}function l(a){t=a.x;p=a.y;v=a.z}function a(){}function q(){}var e=jc.prototype;e.Da=function(a){this.wa=a;this.b=a.b};e.Da.prototype.Z=z();e.ra=function(a){this.type=a;this.b=a.b;this.touches=[];this.Wk=!1};var d=e.ra.prototype,f={left:0,top:0};d.kg=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 r=0,h=0,g=0,t=0,p=0,v=0;d.Z=function(){this.Fs=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);
|
|
this.se=this.Vj=this.Uj=this.rm=this.qm=this.pm=this.sq=this.rq=this.qq=this.Zg=this.Yg=this.Xg=0;this.Ot=0!==this.A[0];var a=0<this.b.Pb?document:this.b.canvas,d=document;this.b.Ab?d=a=window.Canvas:this.b.wc&&(d=a=window);var c=this;window.navigator.pointerEnabled?(a.addEventListener("pointerdown",function(a){c.fo(a)},!1),a.addEventListener("pointermove",function(a){c.eo(a)},!1),d.addEventListener("pointerup",function(a){c.Ni(a)},!1),d.addEventListener("pointercancel",function(a){c.Ni(a)},!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.fo(a)},!1),a.addEventListener("MSPointerMove",function(a){c.eo(a)},!1),d.addEventListener("MSPointerUp",
|
|
function(a){c.Ni(a)},!1),d.addEventListener("MSPointerCancel",function(a){c.Ni(a)},!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.io(a)},!1),a.addEventListener("touchmove",function(a){c.ho(a)},!1),d.addEventListener("touchend",function(a){c.fl(a)},!1),d.addEventListener("touchcancel",function(a){c.fl(a)},!1));if(this.Fs){var e=
|
|
function(a){a=a.reading;c.pm=a.accelerationX;c.qm=a.accelerationY;c.rm=a.accelerationZ},f=function(a){a=a.reading;c.Xg=a.yawDegrees;c.Yg=a.pitchDegrees;c.Zg=a.rollDegrees},g=Windows.Devices.Sensors.Accelerometer.getDefault();g&&(g.reportInterval=Math.max(g.minimumReportInterval,16),g.addEventListener("readingchanged",e));var h=Windows.Devices.Sensors.Inclinometer.getDefault();h&&(h.reportInterval=Math.max(h.minimumReportInterval,16),h.addEventListener("readingchanged",f));document.addEventListener("visibilitychange",
|
|
function(){document.hidden||document.msHidden?(g&&g.removeEventListener("readingchanged",e),h&&h.removeEventListener("readingchanged",f)):(g&&g.addEventListener("readingchanged",e),h&&h.addEventListener("readingchanged",f))},!1)}else window.addEventListener("deviceorientation",function(a){c.Xg=a.alpha||0;c.Yg=a.beta||0;c.Zg=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.qq=a.accelerationIncludingGravity.x||0,c.rq=a.accelerationIncludingGravity.y||
|
|
0,c.sq=a.accelerationIncludingGravity.z||0);a.acceleration&&(c.pm=a.acceleration.x||0,c.qm=a.acceleration.y||0,c.rm=a.acceleration.z||0)},!1);this.Ot&&!this.b.Aa&&(jQuery(document).mousemove(function(a){c.Ss(a)}),jQuery(document).mousedown(function(a){c.Rs(a)}),jQuery(document).mouseup(function(a){c.Ts(a)}));this.b.sf&&!this.b.Ab&&AppMobi.accelerometer.watchAcceleration(b,{frequency:40,adjustForRotation:!0});this.b.Je&&navigator.accelerometer.watchAcceleration(l,null,{frequency:40});this.b.Ft(this)};
|
|
d.eo=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var b=this.kg(a.pointerId),c=Ua();if(0<=b){var d=this.b.Aa?f:jQuery(this.b.canvas).offset(),b=this.touches[b];2>c-b.time||(b.yi=b.time,b.be=b.x,b.de=b.y,b.time=c,b.x=a.pageX-d.left,b.y=a.pageY-d.top)}}};d.fo=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var b=this.b.Aa?f:jQuery(this.b.canvas).offset(),c=a.pageX-
|
|
b.left,b=a.pageY-b.top,d=Ua();this.se=this.touches.length;this.touches.push({time:d,x:c,y:b,yi:d,be:c,de:b,id:a.pointerId,Kl:this.se});this.b.xc=!0;this.b.trigger(jc.prototype.j.jm,this);this.b.trigger(jc.prototype.j.Dj,this);this.Uj=c;this.Vj=b;this.b.trigger(jc.prototype.j.lm,this);this.b.xc=!1}};d.Ni=function(a){a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType&&(a.preventDefault&&a.preventDefault(),a=this.kg(a.pointerId),this.se=0<=a?this.touches[a].Kl:-1,this.b.xc=!0,this.b.trigger(jc.prototype.j.im,
|
|
this),this.b.trigger(jc.prototype.j.km,this),this.b.xc=!1,0<=a&&this.touches.splice(a,1))};d.ho=function(a){a.preventDefault&&a.preventDefault();var b=Ua(),c,d,e,g;c=0;for(d=a.changedTouches.length;c<d;c++)if(e=a.changedTouches[c],g=this.kg(e.identifier),0<=g){var h=this.b.Aa?f:jQuery(this.b.canvas).offset();g=this.touches[g];2>b-g.time||(g.yi=g.time,g.be=g.x,g.de=g.y,g.time=b,g.x=e.pageX-h.left,g.y=e.pageY-h.top)}};d.io=function(a){a.preventDefault&&a.preventDefault();var b=this.b.Aa?f:jQuery(this.b.canvas).offset(),
|
|
c=Ua();this.b.xc=!0;var d,e,g,h;d=0;for(e=a.changedTouches.length;d<e;d++)if(g=a.changedTouches[d],h=this.kg(g.identifier),-1===h){h=g.pageX-b.left;var l=g.pageY-b.top;this.se=this.touches.length;this.touches.push({time:c,x:h,y:l,yi:c,be:h,de:l,id:g.identifier,Kl:this.se});this.b.trigger(jc.prototype.j.jm,this);this.b.trigger(jc.prototype.j.Dj,this);this.Uj=h;this.Vj=l;this.b.trigger(jc.prototype.j.lm,this)}this.b.xc=!1};d.fl=function(a){a.preventDefault&&a.preventDefault();this.b.xc=!0;var b,c,d;
|
|
b=0;for(c=a.changedTouches.length;b<c;b++)d=a.changedTouches[b],d=this.kg(d.identifier),0<=d&&(this.se=this.touches[d].Kl,this.b.trigger(jc.prototype.j.im,this),this.b.trigger(jc.prototype.j.km,this),this.touches.splice(d,1));this.b.xc=!1};d.Su=function(){return this.b.sf&&0===this.Xg&&0!==g?90*g:this.b.Je&&0===this.Xg&&0!==v?90*v:this.Xg};d.Tu=function(){return this.b.sf&&0===this.Yg&&0!==h?-90*h:this.b.Je&&0===this.Yg&&0!==p?-90*p:this.Yg};d.Xu=function(){return this.b.sf&&0===this.Zg&&0!==r?90*
|
|
r:this.b.Je&&0===this.Zg&&0!==t?90*t:this.Zg};d.Rs=function(a){a.preventDefault&&this.b.ki&&a.preventDefault();this.io({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.Wk=!0};d.Ss=function(a){a.preventDefault&&this.b.ki&&a.preventDefault();this.Wk&&this.ho({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};d.Ts=function(a){a.preventDefault&&this.b.ki&&a.preventDefault();this.b.ki=!0;this.fl({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.Wk=!1};
|
|
d.Ql=function(){var a,b,c,d=Ua();a=0;for(b=this.touches.length;a<b;a++)c=this.touches[a],c.time<=d-50&&(c.yi=d)};a.prototype.Dj=G(!0);a.prototype.km=G(!0);a.prototype.lm=function(a){return a?this.b.Et(a,this.Uj,this.Vj):!1};a.prototype.jm=function(a){a=Math.floor(a);return a===this.se};a.prototype.im=function(a){a=Math.floor(a);return a===this.se};e.j=new a;q.prototype.ef=function(a,b){if(this.touches.length){var c,d,e,f,g;ca(b)?(c=this.b.mg(0),d=c.scale,e=c.Yc,f=c.Bc,g=c.m,c.scale=this.b.ma.scale,
|
|
c.Yc=1,c.Bc=1,c.m=this.b.ma.m,a.K(c.Nb(this.touches[0].x,this.touches[0].y,!0)),c.scale=d,c.Yc=e,c.Bc=f,c.m=g):(c=fa(b)?this.b.mg(b):this.b.ok(b))?a.K(c.Nb(this.touches[0].x,this.touches[0].y,!0)):a.K(0)}else a.K(0)};q.prototype.om=function(a,b){if(this.touches.length){var c,d,e,f,g;ca(b)?(c=this.b.mg(0),d=c.scale,e=c.Yc,f=c.Cc,g=c.m,c.scale=this.b.ma.scale,c.Yc=1,c.Cc=1,c.m=this.b.ma.m,a.K(c.Nb(this.touches[0].x,this.touches[0].y,!1)),c.scale=d,c.Yc=e,c.Cc=f,c.m=g):(c=fa(b)?this.b.mg(b):this.b.ok(b))?
|
|
a.K(c.Nb(this.touches[0].x,this.touches[0].y,!1)):a.K(0)}else a.K(0)};e.Ua=new q})();function kc(b){this.b=b}
|
|
(function(){var b=kc.prototype;b.Da=function(a){this.Eb=a;this.b=a.b};b.Da.prototype.Z=z();b.ra=function(a,b){this.type=a;this.Eb=a.Eb;this.d=b;this.b=a.b};var l=b.ra.prototype;l.Z=function(){var a=this.A[0];this.Hc=this.A[1];this.Qb=this.A[2];this.zq=0!==this.A[3];this.Cl=0!==this.A[4];this.r=Math.cos(this.d.m)*a;this.C=Math.sin(this.d.m)*a;this.be=this.d.x;this.de=this.d.y;this.zf=this.d.m;this.nj=0;this.enabled=0!==this.A[5]};l.Lb=function(){return{acc:this.Hc,g:this.Qb,dx:this.r,dy:this.C,lx:this.be,
|
|
ly:this.de,lka:this.zf,t:this.nj,e:this.enabled}};l.lc=function(a){this.Hc=a.acc;this.Qb=a.g;this.r=a.dx;this.C=a.dy;this.be=a.lx;this.de=a.ly;this.zf=a.lka;this.nj=a.t;this.enabled=a.e};l.Za=function(){if(this.enabled){var a=this.b.fi(this.d),b,e;this.d.m!==this.zf&&(this.Cl&&(b=Na(0,0,this.r,this.C),this.r=Math.cos(this.d.m)*b,this.C=Math.sin(this.d.m)*b),this.zf=this.d.m);0!==this.Hc&&(b=Na(0,0,this.r,this.C),e=0===this.r&&0===this.C?this.d.m:Ea(0,0,this.r,this.C),b+=this.Hc*a,0>b&&(b=0),this.r=
|
|
Math.cos(e)*b,this.C=Math.sin(e)*b);0!==this.Qb&&(this.C+=this.Qb*a);this.be=this.d.x;this.de=this.d.y;if(0!==this.r||0!==this.C)if(this.d.x+=this.r*a,this.d.y+=this.C*a,this.nj+=Na(0,0,this.r*a,this.C*a),this.Cl&&(this.d.m=Ea(0,0,this.r,this.C),this.d.D(),this.zf=this.d.m),this.d.D(),this.zq&&(b=this.b.lb(this.d)))this.b.Lf(this.d,b),b=Na(0,0,this.r,this.C),e=this.b.Cq(this.d,this.be,this.de),this.r=Math.cos(e)*b,this.C=Math.sin(e)*b,this.d.x+=this.r*a,this.d.y+=this.C*a,this.d.D(),this.Cl&&(this.zf=
|
|
this.d.m=e,this.d.D()),this.b.Uc(this.d,this.r/b,this.C/b,Math.max(2.5*b*a,30))||this.b.zo(this.d,100)}};b.j=new (z());b.n=new (z());b.Ua=new (z())})();function pc(b){this.b=b}
|
|
(function(){function b(){}function l(){}var a=pc.prototype;a.Da=function(a){this.Eb=a;this.b=a.b};a.Da.prototype.Z=z();a.ra=function(a,b){this.type=a;this.Eb=a.Eb;this.d=b;this.b=a.b;this.ej=this.Hl=this.Gl=this.wk=this.yf=this.Eg=this.aj=this.Di=!1;this.jc=null;this.Nk=-1;this.Me=this.Le=0;this.bi=!1;this.nf=this.Kc=0;this.ai=!0;this.C=this.r=0};var q=a.ra.prototype;q.hp=function(){this.hb=Math.cos(this.pf);this.ib=Math.sin(this.pf);this.Xe=Math.cos(this.pf-Math.PI/2);this.Ye=Math.sin(this.pf-Math.PI/
|
|
2);this.hb=ab(this.hb);this.ib=ab(this.ib);this.Xe=ab(this.Xe);this.Ye=ab(this.Ye);this.gk=this.Qb;0>this.Qb&&(this.hb*=-1,this.ib*=-1,this.Qb=Math.abs(this.Qb))};q.Z=function(){this.Ff=this.A[0];this.Hc=this.A[1];this.lf=this.A[2];this.Ik=this.A[3];this.gk=this.Qb=this.A[4];this.Ji=this.A[5];this.Mq=1===this.A[6];this.enabled=0!==this.A[7];this.Xf=!1;this.tj=this.b.pe(this.d);this.pf=U(90);this.hp();var a=this;this.Mq&&!this.b.Aa&&(jQuery(document).keydown(function(b){a.Ps(b)}),jQuery(document).keyup(function(b){a.Qs(b)}));
|
|
this.mc||(this.Vn=function(b){a.cl(b)});this.b.Hj(this.Vn)};q.Lb=function(){return{ii:this.wk,lfx:this.Le,lfy:this.Me,lfo:this.jc?this.jc.uid:-1,am:this.Kc,en:this.enabled,fall:this.nf,ft:this.ai,dx:this.r,dy:this.C,ms:this.Ff,acc:this.Hc,dec:this.lf,js:this.Ik,g:this.Qb,g1:this.gk,mf:this.Ji,wof:this.Xf,woj:this.tj,ga:this.pf}};q.lc=function(a){this.wk=a.ii;this.Le=a.lfx;this.Me=a.lfy;this.Nk=a.lfo;this.Kc=a.am;this.enabled=a.en;this.nf=a.fall;this.ai=a.ft;this.r=a.dx;this.C=a.dy;this.Ff=a.ms;this.Hc=
|
|
a.acc;this.lf=a.dec;this.Ik=a.js;this.Qb=a.g;this.gk=a.g1;this.Ji=a.mf;this.Xf=a.wof;this.tj=a.woj;this.pf=a.ga;this.ej=this.Hl=this.Gl=this.yf=this.Eg=this.aj=this.Di=!1;this.hp()};q.Zc=function(){this.jc=-1===this.Nk?null:this.b.ng(this.Nk)};q.cl=function(a){this.jc==a&&(this.jc=null)};q.Ue=function(){this.jc=null;this.b.jt(this.Vn)};q.Ps=function(a){switch(a.which){case 38:a.preventDefault();this.Eg=!0;break;case 37:a.preventDefault();this.Di=!0;break;case 39:a.preventDefault(),this.aj=!0}};q.Qs=
|
|
function(a){switch(a.which){case 38:a.preventDefault();this.yf=this.Eg=!1;break;case 37:a.preventDefault();this.Di=!1;break;case 39:a.preventDefault(),this.aj=!1}};q.Wu=function(){return 0>this.Qb?-1:1};q.rn=function(){var a=null,b=null,f,l;f=this.d.x;l=this.d.y;this.d.x+=this.hb;this.d.y+=this.ib;this.d.D();if(this.jc&&this.b.Yb(this.d,this.jc))return this.d.x=f,this.d.y=l,this.d.D(),this.jc;(a=this.b.lb(this.d))||0!==this.nf||(b=this.b.pe(this.d,!0));this.d.x=f;this.d.y=l;this.d.D();if(a){if(this.b.Yb(this.d,
|
|
a))return null;this.bi=!1;return a}if(b&&b.length){l=a=0;for(f=b.length;a<f;a++)b[l]=b[a],this.b.Yb(this.d,b[a])||l++;if(1<=l)return this.bi=!0,b[0]}return null};q.Za=z();q.vo=function(){var a=this.b.fi(this.d),b,f,l,h,g,q,p,v,s;this.Eg||this.ej||(this.yf=!1);var u=this.Di||this.Gl;l=this.aj||this.Hl;var c=(this.Eg||this.ej)&&!this.yf;this.ej=this.Hl=this.Gl=!1;if(this.enabled){this.wk&&(c=l=u=!1);v=this.jc;s=!1;this.ai&&((this.b.lb(this.d)||this.b.pe(this.d))&&this.b.Uc(this.d,-this.hb,-this.ib,
|
|
4,!0),this.ai=!1);!v||0!==this.C||v.y===this.Me&&v.x===this.Le||(b=v.x-this.Le,f=v.y-this.Me,this.d.x+=b,this.d.y+=f,this.d.D(),this.Le=v.x,this.Me=v.y,s=!0,this.b.lb(this.d)&&this.b.Uc(this.d,-b,-f,2.5*Math.sqrt(b*b+f*f)));var k=this.rn();if(f=this.b.lb(this.d))if(this.b.zo(this.d,Math.max(this.d.width,this.d.height)/2))this.b.Lf(this.d,f);else return;k?(0<this.C&&(this.Xf||(this.b.pl(this.d,-this.hb,-this.ib,k),this.Xf=!0),this.C=0),v!=k?(this.jc=k,this.Le=k.x,this.Me=k.y,this.b.Lf(this.d,k)):s&&
|
|
(f=this.b.lb(this.d))&&(this.b.Lf(this.d,f),0!==b&&(0<b?this.b.Uc(this.d,-this.Xe,-this.Ye):this.b.Uc(this.d,this.Xe,this.Ye)),this.b.Uc(this.d,-this.hb,-this.ib)),c&&(v=this.d.x,s=this.d.y,this.d.x-=this.hb,this.d.y-=this.ib,this.d.D(),this.b.lb(this.d)?c=!1:(this.b.trigger(pc.prototype.j.Pp,this.d),this.Kc=2,this.C=-this.Ik,this.yf=!0),this.d.x=v,this.d.y=s,this.d.D())):(this.jc=null,this.C+=this.Qb*a,this.C>this.Ji&&(this.C=this.Ji),c&&(this.yf=!0));this.Xf=!!k;u==l&&(0>this.r?(this.r+=this.lf*
|
|
a,0<this.r&&(this.r=0)):0<this.r&&(this.r-=this.lf*a,0>this.r&&(this.r=0)));u&&!l&&(this.r=0<this.r?this.r-(this.Hc+this.lf)*a:this.r-this.Hc*a);l&&!u&&(this.r=0>this.r?this.r+(this.Hc+this.lf)*a:this.r+this.Hc*a);this.r>this.Ff?this.r=this.Ff:this.r<-this.Ff&&(this.r=-this.Ff);u=!1;0!==this.r&&(v=this.d.x,s=this.d.y,b=this.r*a*this.Xe,f=this.r*a*this.Ye,this.d.x+=this.Xe*(1<this.r?1:-1)-this.hb,this.d.y+=this.Ye*(1<this.r?1:-1)-this.ib,this.d.D(),h=!1,g=this.b.lb(this.d),this.d.x=v+b,this.d.y=s+
|
|
f,this.d.D(),l=this.b.lb(this.d),!l&&k&&(l=this.b.pe(this.d))&&(this.d.x=v,this.d.y=s,this.d.D(),this.b.Yb(this.d,l)?(l=null,h=!1):h=!0,this.d.x=v+b,this.d.y=s+f,this.d.D()),l?(b=Math.abs(this.r*a)+2,g||!this.b.Uc(this.d,-this.hb,-this.ib,b,h,l))?(this.b.Lf(this.d,l),b=Math.max(Math.abs(2.5*this.r*a),30),this.b.Uc(this.d,this.Xe*(0>this.r?1:-1),this.Ye*(0>this.r?1:-1),b,!1)?!k||h||this.bi||(v=this.d.x,s=this.d.y,this.d.x+=this.hb,this.d.y+=this.ib,this.b.lb(this.d)?this.b.Uc(this.d,-this.hb,-this.ib,
|
|
3,!1)||(this.d.x=v,this.d.y=s,this.d.D()):(this.d.x=v,this.d.y=s,this.d.D())):(this.d.x=v,this.d.y=s,this.d.D()),h||(this.r=0)):!g&&15>Math.abs(this.C)&&(this.C=0,k||(u=!0)):(v=this.rn(),k&&!v?(f=Math.ceil(Math.abs(this.r*a))+2,v=this.d.x,s=this.d.y,this.d.x+=this.hb*f,this.d.y+=this.ib*f,this.d.D(),this.b.lb(this.d)||this.b.pe(this.d)?this.b.Uc(this.d,-this.hb,-this.ib,f+2,!0):(this.d.x=v,this.d.y=s,this.d.D())):v&&0===this.C&&this.b.pl(this.d,-this.hb,-this.ib,v)));if(0!==this.C){v=this.d.x;s=this.d.y;
|
|
this.d.x+=this.C*a*this.hb;this.d.y+=this.C*a*this.ib;b=this.d.x;l=this.d.y;this.d.D();f=this.b.lb(this.d);h=!1;if(!f&&0<this.C&&!k){if((h=0<this.nf?null:this.b.pe(this.d,!0))&&h.length){if(this.tj){this.d.x=v;this.d.y=s;this.d.D();p=g=0;for(q=h.length;g<q;g++)h[p]=h[g],this.b.Yb(this.d,h[g])||p++;h.length=p;this.d.x=b;this.d.y=l;this.d.D()}1<=h.length&&(f=h[0])}h=!!f}f&&(this.b.Lf(this.d,f),b=h?Math.abs(2.5*this.C*a+10):Math.max(Math.abs(2.5*this.C*a+10),30),this.b.Uc(this.d,this.hb*(0>this.C?1:
|
|
-1),this.ib*(0>this.C?1:-1),b,h,f)?(this.jc=f,this.Le=f.x,this.Me=f.y,(this.bi=h)&&(u=!0),this.C=0):(this.d.x=v,this.d.y=s,this.d.D(),this.Xf=!0,h||(this.C=0)))}3!==this.Kc&&0<this.C&&!k&&(this.b.trigger(pc.prototype.j.Dp,this.d),this.Kc=3);if(k||u)3===this.Kc||u||c&&0===this.C?(this.b.trigger(pc.prototype.j.Sp,this.d),this.Kc=0===this.r&&0===this.C?0:1):(0!==this.Kc&&0===this.r&&0===this.C&&(this.b.trigger(pc.prototype.j.fq,this.d),this.Kc=0),1===this.Kc||0===this.r&&0===this.C||c||(this.b.trigger(pc.prototype.j.Vp,
|
|
this.d),this.Kc=1));0<this.nf&&this.nf--;this.tj=this.b.pe(this.d)}};b.prototype.up=function(){return 0!==this.r||0!==this.C};b.prototype.tp=function(){return 0>this.C};b.prototype.Pp=G(!0);b.prototype.Dp=G(!0);b.prototype.fq=G(!0);b.prototype.Vp=G(!0);b.prototype.Sp=G(!0);a.j=new b;l.prototype.iq=function(a){this.C=a};a.n=new l;a.Ua=new (z())})();function ec(b){this.b=b}
|
|
(function(){var b=ec.prototype;b.Da=function(a){this.Eb=a;this.b=a.b};b.Da.prototype.Z=z();b.ra=function(a,b){this.type=a;this.Eb=a.Eb;this.d=b;this.b=a.b};var l=b.ra.prototype;l.Z=function(){this.d.P.yt=0!==this.A[0]};l.Za=z();b.j=new (z());b.n=new (z())})();
|
|
function dc(){return[null,null,[[Z,!1,!0,!0,!0,!0,!0,!0,!0,!1],[hc,!1,!0,!0,!0,!0,!0,!0,!0,!1],[ic,!1,!0,!0,!0,!0,!0,!0,!0,!0],[jc,!0,!1,!1,!1,!1,!1,!1,!1,!1],[W,!0,!1,!1,!1,!1,!1,!1,!1,!1],[fc,!0,!1,!1,!1,!1,!1,!1,!1,!1],[gc,!1,!0,!0,!0,!1,!1,!1,!1,!1],[X,!0,!1,!1,!1,!1,!1,!1,!1,!1]],[["t0",Z,!1,[],2,0,null,[["Default",12,!0,1,0,!1,0x9cf3de55b74d,[["images/bird-sheet0.png",297,0,0,60,42,1,0.5,0.5,[],[-0.300000011920929,-0.2142859995365143,0,-0.4285714030265808,0.300000011920929,-0.2142859995365143,
|
|
0.449999988079071,0,0.3500000238418579,0.2857139706611633,0,0.4285709857940674,-0.3499999940395355,0.2857139706611633,-0.449999988079071,0],0],["images/bird-sheet1.png",296,0,0,60,42,1,0.5,0.5,[],[-0.300000011920929,-0.2142859995365143,0,-0.4285714030265808,0.300000011920929,-0.2142859995365143,0.449999988079071,0,0.3500000238418579,0.2857139706611633,0,0.4285709857940674,-0.3499999940395355,0.2857139706611633,-0.449999988079071,0],0],["images/bird-sheet2.png",292,0,0,60,42,1,0.5,0.5,[],[-0.3499999940395355,
|
|
-0.2857140004634857,0,-0.4285714030265808,0.300000011920929,-0.2142859995365143,0.449999988079071,0,0.3500000238418579,0.2857139706611633,0,0.4285709857940674,-0.3499999940395355,0.2857139706611633,-0.449999988079071,0],0]]]],[["Platform",pc,5178987554423825],["Bullet",kc,5915136554423096]],!1,!1,7655953109634694,[],null],["t1",gc,!1,[],0,0,null,null,[],!1,!1,0x978a934282253,[],null],["t2",ic,!1,[],0,0,["images/tiledbackground.png",110,2],null,[],!1,!1,7074001819537027,[],null],["t3",ic,!1,[],1,0,
|
|
["images/tiledbackground2.png",244,1],null,[["Solid",ec,7647064555855058]],!1,!1,0x911491cebc40b,[],null],["t4",Z,!1,[],0,0,null,[["Default",5,!1,1,0,!1,5403016070098888,[["images/background-sheet0.png",1091,0,0,360,640,1,0.5,0.5,[],[],1]]]],[],!1,!1,953656317085853,[],null],["t5",Z,!1,[594544762936064],1,0,null,[["Default",5,!1,1,0,!1,7052596752156929,[["images/bottompipe-sheet0.png",326,0,0,72,405,1,0.5,0.5012345910072327,[],[],1]]]],[["Solid",ec,6722651798794236]],!1,!1,9618256118790168,[],null],
|
|
["t6",Z,!1,[],1,0,null,[["Default",5,!1,1,0,!1,290853698256507,[["images/toppipe-sheet0.png",330,0,0,72,405,1,0.5,0.5012345910072327,[],[],1]]]],[["Solid",ec,6282154193180226]],!1,!1,0xa8aa3754ecd2a,[],null],["t7",hc,!1,[],0,0,null,null,[],!1,!1,8463788785676717,[],null],["t8",Z,!1,[],0,0,null,[["Default",5,!1,1,0,!1,8147977195382181,[["images/background-sheet0.png",1091,0,0,360,640,1,0.5,0.5,[],[],1]]]],[],!1,!1,0xc449578cad692,[],null],["t9",gc,!1,[],0,0,null,null,[],!1,!1,9906374471482008,[],null],
|
|
["t10",W,!1,[],0,0,null,null,[],!1,!1,669069303560179,[],null,[]],["t11",jc,!1,[],0,0,null,null,[],!1,!1,486488503983799,[],null,[1]],["t12",fc,!1,[],0,0,null,null,[],!1,!1,4927060136278973,[],null,[0,0,1,1,600,600,1E4,1,5E3,1]],["t13",gc,!1,[],0,0,null,null,[],!1,!1,9879998339594612,[],null],["t14",X,!1,[],0,0,null,null,[],!1,!1,318978452288943,[],null,[0,1]]],[],[["Start",400,600,!1,"Start events",5642885501120438,[["Layer 0",0,0x59e1be0fcd8a5,!0,[255,255,255],!1,1,1,1,!1,1,0,0,[[[199,267,0,403,
|
|
664,0,0,1,0.5,0.5,0,0,[]],8,8,[],[],[0,"Default",0,1]],[[163,236,0,72,24,0,0,1,0,0,0,0,[]],1,1,[],[],[0,"Play!","",1,1,1,"",0]],[[503,447,0,128,24,0,0,1,0,0,0,0,[]],9,10,[],[],[0,"View tutorial!","",1,1,1,"",0]]],[]]],[],[]],["Game",400,600,!1,"Game events",6198708927320934,[["Layer 0",0,355627206710923,!0,[255,255,255],!1,1,1,1,!1,1,0,0,[[[447,-117,0,72,405,0,0,1,0.5,0.5012345910072327,0,0,[]],6,7,[],[[1]],[0,"Default",0,1]],[[450,630,0,72,405,0,0,1,0.5,0.5012345910072327,0,0,[]],5,6,[[0]],[[1]],
|
|
[0,"Default",0,1]],[[200,246,0,397.9865112304688,707.5315551757812,0,0,1,0.5,0.5,0,0,[]],4,5,[],[],[0,"Default",0,1]],[[75,205,0,60,42,0,-0.003806045977398753,1,0.5,0.5,0,0,[]],0,0,[],[[0,300,1500,0,1800,2500,1,1],[0,0,0,1,1,1]],[0,"Default",0,1]],[[-76,627,0,1118,28,0,0,1,0,0,0,0,[]],2,3,[],[],[0,0]],[[181,50,0,169,114,0,0,1,0,0,0,0,[]],7,9,[],[],["0",0,"26pt Arial","rgb(255,255,255)",0,0,0,0,0]]],[]],["Pipes",1,6282195705710062,!0,[255,255,255],!0,1,1,1,!1,1,0,0,[[[0,474,0,1007,130,0,0,1,0,0,0,
|
|
0,[]],3,4,[],[[1]],[0,0]]],[]],["Restart",3,8827971525510233,!1,[255,255,255],!0,1,1,1,!1,1,0,0,[[[158,243,0,72,24,0,0,1,0,0,0,0,[]],13,13,[],[],[0,"Restart","",1,1,1,"",0]]],[]]],[],[]]],[["Game events",[[1,"SECONDSPEROBSTACLE",0,1,!1,!0,0x5bf010b64db3c,!1],[1,"JUMPSTRENGTH",0,550,!1,!0,6706328064360653,!1],[1,"SCROLLSPEED",0,300,!1,!0,0xc6a8ff77fc51,!1],[1,"Score",0,0,!1,!1,0x5c248b788c4f5,!1],[0,[!0,"Start"],!1,null,0x79b2493328c60,[[-1,V.prototype.j.ue,null,0,!1,!1,!1,0x79b2493328c60,!1,[[1,[2,
|
|
"Start"]]]]],[],[[0,null,!1,null,0x7fb9c20c1c4f4,[[-1,V.prototype.j.fm,null,1,!1,!1,!1,7552674298305292,!1]],[[7,hc.prototype.n.Ej,null,7981695657209981,!1,[[7,[0,0]]]],[7,hc.prototype.n.kq,null,8858143142522444,!1,[[1,[2,"Press Start 2P"]],[1,[2,"http://fonts.googleapis.com/css?family=Press+Start+2P"]]]],[3,ic.prototype.n.Md,null,8531867926373433,!1,[[0,[0,0]]]],[2,ic.prototype.n.Md,null,7883271464586618,!1,[[0,[0,0]]]],[-1,V.prototype.n.hq,null,5362289503657037,!1,[[11,"Score"],[7,[0,0]]]],[6,Z.prototype.n.rh,
|
|
null,5327330446513932,!1],[5,Z.prototype.n.rh,null,0x9036ad38b539f,!1],[0,Z.prototype.n.gq,null,0xe22a4311bdaf7,!1,[[0,[0,320]]]],[-1,V.prototype.n.Db,null,9201979701102372,!1,[[1,[2,"Movement"]],[3,1]]],[-1,V.prototype.n.Db,null,6267526365805088,!1,[[1,[2,"Background"]],[3,1]]],[-1,V.prototype.n.Db,null,6363178502281003,!1,[[1,[2,"Obstacle"]],[3,1]]],[-1,V.prototype.n.vh,null,7674229181990306,!1,[[5,[0,2]],[3,0]]],[-1,V.prototype.n.Db,null,0xa1db8f09e258a,!1,[[1,[2,"Collisions"]],[3,1]]]]]]],[0,
|
|
[!0,"Movement"],!1,null,0x4fa414ac0c414,[[-1,V.prototype.j.ue,null,0,!1,!1,!1,0x4fa414ac0c414,!1,[[1,[2,"Movement"]]]]],[],[[0,null,!1,null,9923654974799748,[[11,jc.prototype.j.Dj,null,1,!1,!1,!1,8630474439530806,!1]],[[0,pc.prototype.n.iq,"Platform",8776672419371477,!1,[[0,[3,[23,"JUMPSTRENGTH"]]]]]]],[0,null,!1,null,0xb5e14d8b40f2,[[0,pc.prototype.j.up,"Platform",0,!1,!1,!1,7423593987601416,!1]],[[0,Z.prototype.n.uh,null,5698124432107209,!1,[[0,[0,2]],[0,[0,90]]]]]],[0,null,!1,null,0xb651ab18f194,
|
|
[[0,pc.prototype.j.tp,"Platform",0,!1,!1,!1,0x6d1b94a801b48,!1]],[[0,Z.prototype.n.uh,null,0x4d69f084f2723,!1,[[0,[0,9]],[0,[0,-25]]]]]]]],[0,[!0,"Collisions"],!1,null,9558025647412416,[[-1,V.prototype.j.ue,null,0,!1,!1,!1,9558025647412416,!1,[[1,[2,"Collisions"]]]]],[],[[0,null,!1,null,0x9b4a6aa23552,[[0,Z.prototype.j.yj,null,0,!1,!1,!0,6202042408238202,!1,[[4,3]]]],[[-1,V.prototype.n.Db,null,650488141588384,!1,[[1,[2,"Movement"]],[3,0]]],[0,Z.prototype.n.Fj,null,9640112226732188,!1],[-1,V.prototype.n.Db,
|
|
null,9001322535240395,!1,[[1,[2,"Background"]],[3,0]]],[-1,V.prototype.n.Db,null,5328022455235355,!1,[[1,[2,"Obstacle"]],[3,0]]],[-1,V.prototype.n.vh,null,5576810530230529,!1,[[5,[0,2]],[3,1]]]]],[0,null,!1,null,0xb1f259f4e4c41,[[0,Z.prototype.j.yj,null,0,!1,!1,!0,7033929425378829,!1,[[4,6]]]],[[-1,V.prototype.n.Db,null,9710898490746992,!1,[[1,[2,"Movement"]],[3,0]]],[0,Z.prototype.n.Fj,null,0x8ec9a2780e9eb,!1],[0,Z.prototype.n.uh,null,0xd7c039cfd925b,!1,[[0,[0,20]],[0,[0,90]]]],[-1,V.prototype.n.Db,
|
|
null,0x405bed6588248,!1,[[1,[2,"Background"]],[3,0]]],[-1,V.prototype.n.Db,null,0x991dc2b3e3eca,!1,[[1,[2,"Obstacle"]],[3,0]]],[-1,V.prototype.n.vh,null,6311384745069453,!1,[[5,[0,2]],[3,1]]],[12,fc.prototype.n.Play,null,0xd6a2727cfedd2,!1,[[2,["nabrak",!1]],[3,0],[0,[0,0]],[1,[2,""]]]],[-1,V.prototype.n.Db,null,0xb785784a3a3e8,!1,[[1,[2,"Collisions"]],[3,0]]]]],[0,null,!1,null,6661993072735907,[[0,Z.prototype.j.yj,null,0,!1,!1,!0,0xc2dec64614c99,!1,[[4,5]]]],[[-1,V.prototype.n.Db,null,9831981707608296,
|
|
!1,[[1,[2,"Movement"]],[3,0]]],[0,Z.prototype.n.Fj,null,6699772369267079,!1],[0,Z.prototype.n.uh,null,0xe07711ad5bfc6,!1,[[0,[0,20]],[0,[0,90]]]],[-1,V.prototype.n.Db,null,0x6c48eba096648,!1,[[1,[2,"Background"]],[3,0]]],[-1,V.prototype.n.Db,null,4555980905622123,!1,[[1,[2,"Obstacle"]],[3,0]]],[-1,V.prototype.n.vh,null,4975109804000668,!1,[[5,[0,2]],[3,1]]],[12,fc.prototype.n.Play,null,88902804884405,!1,[[2,["nabrak",!1]],[3,0],[0,[0,0]],[1,[2,""]]]],[-1,V.prototype.n.Db,null,0xf54f38f6ed393,!1,[[1,
|
|
[2,"Collisions"]],[3,0]]]]],[0,null,!1,null,9569398275688900,[[0,Z.prototype.j.vp,null,0,!1,!1,!1,0xd2a15c96ebb43,!1]],[[-1,V.prototype.n.xj,null,8628296172319708,!1,[[6,"Start"]]]]]]],[0,[!0,"Scoring"],!1,null,0xf2791f34175d,[[-1,V.prototype.j.ue,null,0,!1,!1,!1,0xf2791f34175d,!1,[[1,[2,"Scoring"]]]]],[],[[0,null,!1,null,0xa10b4746e5408,[[5,Z.prototype.j.Yf,null,0,!1,!1,!1,7198601104534188,!1,[[8,3],[0,[20,0,Z.prototype.Ua.ef,!1,null]]]],[5,Z.prototype.j.sp,null,0,!1,!0,!1,9504905685329224,!1,[[10,
|
|
0]]]],[[-1,V.prototype.n.np,null,0xd77c4ecfee059,!1,[[11,"Score"],[7,[0,1]]]],[7,hc.prototype.n.Ej,null,0x777f548914531,!1,[[7,[23,"Score"]]]],[5,Z.prototype.n.nm,null,0x5b14e2f44299b,!1,[[10,0],[3,1]]],[12,fc.prototype.n.Play,null,6520842869629358,!1,[[2,["lewatpipa2",!1]],[3,0],[0,[0,0]],[1,[2,""]]]]]]]],[0,[!0,"Background"],!1,null,0x7e0fe3c8497b1,[[-1,V.prototype.j.ue,null,0,!1,!1,!1,0x7e0fe3c8497b1,!1,[[1,[2,"Background"]]]]],[],[[0,null,!1,null,0x7519a4ef02af6,[[2,ic.prototype.j.Yf,null,0,!1,
|
|
!1,!1,6540219589020234,!1,[[8,3],[0,[0,-560]]]]],[[2,ic.prototype.n.Md,null,9755675412106924,!1,[[0,[0,0]]]]]],[0,null,!1,null,30454140128404,[[3,ic.prototype.j.Yf,null,0,!1,!1,!1,0x446d5cd3f1cb7,!1,[[8,3],[0,[0,-410]]]]],[[3,ic.prototype.n.Md,null,0x4065c9db3bcc0,!1,[[0,[0,0]]]]]],[0,null,!1,null,0x4ec47142457bc,[[-1,V.prototype.j.rp,null,0,!1,!1,!1,0x41d2c7ea9c5ed,!1]],[[5,Z.prototype.n.Md,null,7511133595224626,!1,[[0,[5,[20,5,Z.prototype.Ua.ef,!1,null],[1,3.5]]]]],[6,Z.prototype.n.Md,null,8323998578270259,
|
|
!1,[[0,[5,[20,6,Z.prototype.Ua.ef,!1,null],[1,3.5]]]]],[3,ic.prototype.n.Md,null,0x7cd9cc810ba65,!1,[[0,[5,[20,3,ic.prototype.Ua.ef,!1,null],[1,3.5]]]]],[2,ic.prototype.n.Md,null,9315588896493164,!1,[[0,[5,[20,2,ic.prototype.Ua.ef,!1,null],[1,3.5]]]]]]],[0,null,!1,null,6231531170117115,[[6,Z.prototype.j.Yf,null,0,!1,!1,!1,0x63245c7a81a0,!1,[[8,2],[0,[0,-50]]]]],[[6,Z.prototype.n.rh,null,0xc247696ca04de,!1]]],[0,null,!1,null,7423873857133321,[[5,Z.prototype.j.Yf,null,0,!1,!1,!1,0xf3e91a606514c,!1,
|
|
[[8,2],[0,[0,-50]]]]],[[5,Z.prototype.n.rh,null,0x68ad1304ed94d,!1]]]]],[0,[!0,"Obstacle"],!1,null,9794049253184592,[[-1,V.prototype.j.ue,null,0,!1,!1,!1,9794049253184592,!1,[[1,[2,"Obstacle"]]]]],[],[[0,null,!1,null,6640649658259165,[[-1,V.prototype.j.qp,null,0,!1,!1,!1,4811019573960773,!1,[[0,[1,1.2]]]]],[[-1,V.prototype.n.dm,null,0x62e328b22527a,!1,[[4,6],[5,[0,0]],[0,[0,440]],[0,[19,V.prototype.Ua.random,[[0,50],[0,-250]]]]]],[-1,V.prototype.n.dm,null,0x8fa93e5db4a1f,!1,[[4,5],[5,[0,0]],[0,[0,
|
|
440]],[0,[4,[20,6,Z.prototype.Ua.om,!1,null],[0,550]]]]],[7,hc.prototype.n.xp,null,0xab94651d81946,!1],[5,Z.prototype.n.nm,null,0xb87d687994a6e,!1,[[10,0],[3,0]]]]]]],[0,[!0,"Restart"],!1,null,5247221245270953,[[-1,V.prototype.j.ue,null,0,!1,!1,!1,5247221245270953,!1,[[1,[2,"Restart"]]]]],[]],[0,null,!1,null,8181246724427678,[[13,gc.prototype.j.sh,null,1,!1,!1,!1,290332944059829,!1]],[[-1,V.prototype.n.xj,null,5086158505023414,!1,[[6,"Game"]]]]]]],["Start events",[[0,null,!1,null,8450924142424696,
|
|
[[1,gc.prototype.j.sh,null,1,!1,!1,!1,8769507891639029,!1]],[[-1,V.prototype.n.xj,null,0x4b1acbd660d14,!1,[[6,"Game"]]]]],[0,null,!1,null,8396635392973638,[[9,gc.prototype.j.sh,null,1,!1,!1,!1,8649054085373641,!1]],[]]]]],"media/",!1,400,600,4,!0,!0,!0,"1.0.0.0",!0,!1,0,0,15,!1,!0,[]]};
|