// 
'use strict';function aa(){return function(){}}function L(e){return function(){return this[e]}}function N(e){return function(){return e}}var ba,ca,da,ea,ga,P,ha,ia,ja,ka,la,ma,pa,qa,ra,sa,ta,ua,va,xa,ya,R,za,Aa,Ea,Fa,Ga,Ha,Ia,Na,Oa,Pa,Qa,Ra,Sa,Ta,S,Ua,Wa,Xa,Ya,Za,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,mb,nb,ob,pb,qb,rb,sb,tb,ub,vb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,T,Tb,Ub={},Vb={};
"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(e){return e.__proto__}:function(e){return e.constructor.prototype});
(function(){function e(a,l,p,b){this.set(a,l,p,b)}function m(){this.Sb=this.Rb=this.Ub=this.Tb=this.mc=this.lc=this.gb=this.fb=0}function d(a,l,p,b){a<l?p<b?(h=a<p?a:p,g=l>b?l:b):(h=a<b?a:b,g=l>p?l:p):p<b?(h=l<p?l:p,g=a>b?a:b):(h=l<b?l:b,g=a>p?a:p)}function n(){this.pd=this.Rc=null;this.Ye=0;l&&(this.Rc=new Set);this.tf=[];this.Id=!0}function q(a){u[t++]=a}function a(){this.da=this.fi=this.y=this.Bi=0}function c(a){this.hf=[];this.il=this.kl=this.ll=this.jl=0;this.Cg(a)}function b(a,l){this.Wo=a;
this.Vo=l;this.cells={}}function f(a,l,p){var b;return v.length?(b=v.pop(),b.Aq=a,b.x=l,b.y=p,b):new ba(a,l,p)}function k(a,l,p){this.Aq=a;this.x=l;this.y=p;this.Lh=new ca}da=function(a){window.console&&window.console.log&&window.console.log(a)};ea=function(a){return"undefined"===typeof a};ga=function(a){return"number"===typeof a};P=function(a){return"string"===typeof a};ha=function(a){return 0<a&&0===(a-1&a)};ia=function(a){--a;for(var l=1;32>l;l<<=1)a|=a>>l;return a+1};ja=function(a){return 0>a?
-a:a};ka=function(a,l){return a<l?a:l};la=Math.PI;ma=function(a){return 0<=a?a|0:(a|0)-1};pa=function(a){var l=a|0;return l===a?l:l+1};qa=function(a,l,p,b,c,u,f,k){var v,t,d,g;a<p?(t=a,v=p):(t=p,v=a);c<f?(g=c,d=f):(g=f,d=c);if(v<g||t>d)return!1;l<b?(t=l,v=b):(t=b,v=l);u<k?(g=u,d=k):(g=k,d=u);if(v<g||t>d)return!1;v=c-a+f-p;t=u-l+k-b;a=p-a;l=b-l;c=f-c;u=k-u;k=ja(l*c-u*a);return ja(c*t-u*v)>k?!1:ja(a*t-l*v)<=k};e.prototype.set=function(a,l,p,b){this.left=a;this.top=l;this.right=p;this.bottom=b};e.prototype.copy=
function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};e.prototype.width=function(){return this.right-this.left};e.prototype.height=function(){return this.bottom-this.top};e.prototype.offset=function(a,l){this.left+=a;this.top+=l;this.right+=a;this.bottom+=l;return this};e.prototype.normalize=function(){var a=0;this.left>this.right&&(a=this.left,this.left=this.right,this.right=a);this.top>this.bottom&&(a=this.top,this.top=this.bottom,this.bottom=a)};e.prototype.Ec=function(a,
l){return a>=this.left&&a<=this.right&&l>=this.top&&l<=this.bottom};e.prototype.xp=function(a){return this.left===a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};ra=e;m.prototype.$h=function(a){this.fb=a.left;this.gb=a.top;this.lc=a.right;this.mc=a.top;this.Tb=a.right;this.Ub=a.bottom;this.Rb=a.left;this.Sb=a.bottom};m.prototype.xn=function(a,l){if(0===l)this.$h(a);else{var p=Math.sin(l),b=Math.cos(l),c=a.left*p,u=a.top*p,f=a.right*p,p=a.bottom*p,k=a.left*b,v=a.top*b,t=a.right*
b,b=a.bottom*b;this.fb=k-u;this.gb=v+c;this.lc=t-u;this.mc=v+f;this.Tb=t-p;this.Ub=b+f;this.Rb=k-p;this.Sb=b+c}};m.prototype.offset=function(a,l){this.fb+=a;this.gb+=l;this.lc+=a;this.mc+=l;this.Tb+=a;this.Ub+=l;this.Rb+=a;this.Sb+=l;return this};var h=0,g=0;m.prototype.nl=function(a){d(this.fb,this.lc,this.Tb,this.Rb);a.left=h;a.right=g;d(this.gb,this.mc,this.Ub,this.Sb);a.top=h;a.bottom=g};m.prototype.Ec=function(a,l){var p=this.lc-this.fb,b=this.mc-this.gb,c=this.Tb-this.fb,u=this.Ub-this.gb,f=
a-this.fb,k=l-this.gb,v=p*p+b*b,t=p*c+b*u,b=p*f+b*k,d=c*c+u*u,g=c*f+u*k,h=1/(v*d-t*t),p=(d*b-t*g)*h,v=(v*g-t*b)*h;if(0<=p&&0<v&&1>p+v)return!0;p=this.Rb-this.fb;b=this.Sb-this.gb;v=p*p+b*b;t=p*c+b*u;b=p*f+b*k;h=1/(v*d-t*t);p=(d*b-t*g)*h;v=(v*g-t*b)*h;return 0<=p&&0<v&&1>p+v};sa=m;ta=function(a,l){for(var p in l)l.hasOwnProperty(p)&&(a[p]=l[p]);return a};ua=function(a,l){var p,b;l=ma(l);if(!(0>l||l>=a.length)){p=l;for(b=a.length-1;p<b;p++)a[p]=a[p+1];a.length=b}};va=function(a,l){a.length=l.length;
var p,b;p=0;for(b=l.length;p<b;p++)a[p]=l[p]};xa=function(a,l){var p,b;p=0;for(b=a.length;p<b;++p)if(a[p]===l)return p;return-1};ya=function(a,l){var p=xa(a,l);-1!==p&&ua(a,p)};R=function(a){return a/(180/la)};za=function(a){return a*(180/la)};Aa=function(a){a%=360;0>a&&(a+=360);return a};Ea=function(a){a%=2*la;0>a&&(a+=2*la);return a};Fa=function(a){return Aa(za(a))};Ga=function(a){return Ea(R(a))};Ha=function(a,l,p,b){return Math.atan2(b-l,p-a)};Ia=function(a,l){if(a===l)return 0;var p=Math.sin(a),
b=Math.cos(a),c=Math.sin(l),u=Math.cos(l),p=p*c+b*u;return 1<=p?0:-1>=p?la:Math.acos(p)};Na=function(a,l,p){var b=Math.sin(a),c=Math.cos(a),u=Math.sin(l),f=Math.cos(l);return Math.acos(b*u+c*f)>p?0<c*u-b*f?Ea(a+p):Ea(a-p):Ea(l)};Oa=function(a,l){var p=Math.sin(a),b=Math.cos(a),c=Math.sin(l),u=Math.cos(l);return 0>=b*c-p*u};Pa=function(a,l,p,b,c,u){if(0===p)return u?a:l;var f=Math.sin(p);p=Math.cos(p);a-=b;l-=c;var k=a*f;a=a*p-l*f;l=l*p+k;return u?a+b:l+c};Qa=function(a,l,p,b){a=p-a;l=b-l;return Math.sqrt(a*
a+l*l)};Ra=function(a,l){return!a!==!l};Sa=function(a){for(var l in a)if(a.hasOwnProperty(l))return!0;return!1};Ta=function(a){for(var l in a)a.hasOwnProperty(l)&&delete a[l]};var x=+new Date;S=function(){if("undefined"!==typeof window.performance){var a=window.performance;if("undefined"!==typeof a.now)return a.now();if("undefined"!==typeof a.webkitNow)return a.webkitNow();if("undefined"!==typeof a.mozNow)return a.mozNow();if("undefined"!==typeof a.msNow)return a.msNow()}return Date.now()-x};var z=
!1,H=z=!1,p=!1;"undefined"!==typeof window&&(z=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),z=!z&&/safari/i.test(navigator.userAgent),H=/(iphone|ipod|ipad)/i.test(navigator.userAgent),p=window.c2ejecta);var l=!z&&!p&&!H&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;n.prototype.contains=function(a){return this.tc()?!1:l?this.Rc.has(a):this.pd&&this.pd.hasOwnProperty(a)};n.prototype.add=function(a){if(l)this.Rc.has(a)||(this.Rc.add(a),this.Id=!1);
else{var p=a.toString(),b=this.pd;b?b.hasOwnProperty(p)||(b[p]=a,this.Ye++,this.Id=!1):(this.pd={},this.pd[p]=a,this.Ye=1,this.Id=!1)}};n.prototype.remove=function(a){if(!this.tc())if(l)this.Rc.has(a)&&(this.Rc["delete"](a),this.Id=!1);else if(this.pd){a=a.toString();var p=this.pd;p.hasOwnProperty(a)&&(delete p[a],this.Ye--,this.Id=!1)}};n.prototype.clear=function(){this.tc()||(l?this.Rc.clear():(this.pd=null,this.Ye=0),this.tf.length=0,this.Id=!0)};n.prototype.tc=function(){return 0===this.count()};
n.prototype.count=function(){return l?this.Rc.size:this.Ye};var u=null,t=0;n.prototype.Xr=function(){if(!this.Id){if(l)this.tf.length=this.Rc.size,u=this.tf,t=0,this.Rc.forEach(q),u=null,t=0;else{var a=this.tf;a.length=this.Ye;var p,b=0,c=this.pd;if(c)for(p in c)c.hasOwnProperty(p)&&(a[b++]=c[p])}this.Id=!0}};n.prototype.sf=function(){this.Xr();return this.tf};ca=n;new ca;a.prototype.add=function(a){this.y=a-this.Bi;this.fi=this.da+this.y;this.Bi=this.fi-this.da-this.y;this.da=this.fi};a.prototype.reset=
function(){this.da=this.fi=this.y=this.Bi=0};Ua=a;Wa=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};c.prototype.Cg=function(a){this.mn=a;this.Uh=a.length/2;this.hf.length=a.length;this.Ci=this.Di=-1;this.ql=0};c.prototype.Sq=function(){return!this.mn.length};c.prototype.hb=function(){for(var a=this.hf,l=a[0],p=l,b=a[1],c=b,u,f,k=1,v=this.Uh;k<v;++k)f=2*k,u=a[f],f=a[f+1],u<l&&(l=u),u>p&&(p=u),f<b&&(b=f),f>c&&(c=f);this.jl=l;this.kl=p;this.ll=b;this.il=c};c.prototype.$h=function(a,
l,p){this.hf.length=8;this.Uh=4;var b=this.hf;b[0]=a.left-l;b[1]=a.top-p;b[2]=a.right-l;b[3]=a.top-p;b[4]=a.right-l;b[5]=a.bottom-p;b[6]=a.left-l;b[7]=a.bottom-p;this.Di=a.right-a.left;this.Ci=a.bottom-a.top;this.hb()};c.prototype.To=function(a,l,p){if(this.Di!==a||this.Ci!==l||this.ql!==p){this.Di=a;this.Ci=l;this.ql=p;var b,c,u,f,k,v=0,t=1,d=this.mn,g=this.hf;0!==p&&(v=Math.sin(p),t=Math.cos(p));p=0;for(u=this.Uh;p<u;p++)b=2*p,c=b+1,f=d[b]*a,k=d[c]*l,g[b]=f*t-k*v,g[c]=k*t+f*v;this.hb()}};c.prototype.Ec=
function(a,l){var p=this.hf;if(a===p[0]&&l===p[1])return!0;var b,c,u,f=this.Uh,k=this.jl-110,v=this.ll-101,t=this.kl+131,d=this.il+120,g,h,A=0,n=0;for(b=0;b<f;b++)c=2*b,u=2*((b+1)%f),g=p[c],c=p[c+1],h=p[u],u=p[u+1],qa(k,v,a,l,g,c,h,u)&&A++,qa(t,d,a,l,g,c,h,u)&&n++;return 1===A%2||1===n%2};Xa=c;b.prototype.Ll=function(a,l,p){var b;b=this.cells[a];return b?(b=b[l])?b:p?(b=f(this,a,l),this.cells[a][l]=b):null:p?(b=f(this,a,l),this.cells[a]={},this.cells[a][l]=b):null};b.prototype.Wk=function(a){return ma(a/
this.Wo)};b.prototype.Xk=function(a){return ma(a/this.Vo)};b.prototype.update=function(a,l,p){var b,c,u,f,k;if(l)for(b=l.left,c=l.right;b<=c;++b)for(u=l.top,f=l.bottom;u<=f;++u)if(!p||!p.Ec(b,u))if(k=this.Ll(b,u,!1))k.remove(a),k.tc()&&(k.Lh.clear(),1E3>v.length&&v.push(k),this.cells[b][u]=null);if(p)for(b=p.left,c=p.right;b<=c;++b)for(u=p.top,f=p.bottom;u<=f;++u)l&&l.Ec(b,u)||this.Ll(b,u,!0).Hq(a)};Ya=b;var v=[];k.prototype.tc=function(){return this.Lh.tc()};k.prototype.Hq=function(a){this.Lh.add(a)};
k.prototype.remove=function(a){this.Lh.remove(a)};ba=k;var A="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");Za=function(a){return 0>=a||11<=a?"source-over":A[a-1]};$a=function(a,l,p){if(p)switch(a.$a=p.ONE,a.Ya=p.ONE_MINUS_SRC_ALPHA,l){case 1:a.$a=p.ONE;a.Ya=p.ONE;break;case 3:a.$a=p.ONE;a.Ya=p.ZERO;break;case 4:a.$a=p.ONE_MINUS_DST_ALPHA;a.Ya=p.ONE;break;case 5:a.$a=p.DST_ALPHA;a.Ya=p.ZERO;break;case 6:a.$a=p.ZERO;a.Ya=
p.SRC_ALPHA;break;case 7:a.$a=p.ONE_MINUS_DST_ALPHA;a.Ya=p.ZERO;break;case 8:a.$a=p.ZERO;a.Ya=p.ONE_MINUS_SRC_ALPHA;break;case 9:a.$a=p.DST_ALPHA;a.Ya=p.ONE_MINUS_SRC_ALPHA;break;case 10:a.$a=p.ONE_MINUS_DST_ALPHA,a.Ya=p.SRC_ALPHA}};ab=function(a){return Math.round(1E6*a)/1E6};bb=function(a,l){return"string"!==typeof a||"string"!==typeof l||a.length!==l.length?!1:a===l?!0:a.toLowerCase()===l.toLowerCase()};cb=function(a){a=a.target;return!a||a===document||a===window||document&&document.body&&a===
document.body||bb(a.tagName,"canvas")?!0:!1}})();var Wb="undefined"!==typeof Float32Array?Float32Array:Array;function Xb(e){var m=new Wb(3);e&&(m[0]=e[0],m[1]=e[1],m[2]=e[2]);return m}function Yb(e){var m=new Wb(16);e&&(m[0]=e[0],m[1]=e[1],m[2]=e[2],m[3]=e[3],m[4]=e[4],m[5]=e[5],m[6]=e[6],m[7]=e[7],m[8]=e[8],m[9]=e[9],m[10]=e[10],m[11]=e[11],m[12]=e[12],m[13]=e[13],m[14]=e[14],m[15]=e[15]);return m}
function Zb(e,m){m[0]=e[0];m[1]=e[1];m[2]=e[2];m[3]=e[3];m[4]=e[4];m[5]=e[5];m[6]=e[6];m[7]=e[7];m[8]=e[8];m[9]=e[9];m[10]=e[10];m[11]=e[11];m[12]=e[12];m[13]=e[13];m[14]=e[14];m[15]=e[15]}function $b(e,m){var d=m[0],n=m[1];m=m[2];e[0]*=d;e[1]*=d;e[2]*=d;e[3]*=d;e[4]*=n;e[5]*=n;e[6]*=n;e[7]*=n;e[8]*=m;e[9]*=m;e[10]*=m;e[11]*=m}
function ac(e,m,d,n){n||(n=Yb());var q,a,c,b,f,k,h,g,x=e[0],z=e[1];e=e[2];a=d[0];c=d[1];q=d[2];d=m[1];k=m[2];x===m[0]&&z===d&&e===k?(e=n,e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1):(d=x-m[0],k=z-m[1],h=e-m[2],g=1/Math.sqrt(d*d+k*k+h*h),d*=g,k*=g,h*=g,m=c*h-q*k,q=q*d-a*h,a=a*k-c*d,(g=Math.sqrt(m*m+q*q+a*a))?(g=1/g,m*=g,q*=g,a*=g):a=q=m=0,c=k*a-h*q,b=h*m-d*a,f=d*q-k*m,(g=Math.sqrt(c*c+b*b+f*f))?(g=1/g,c*=g,b*=g,f*=g):f=b=c=0,
n[0]=m,n[1]=c,n[2]=d,n[3]=0,n[4]=q,n[5]=b,n[6]=k,n[7]=0,n[8]=a,n[9]=f,n[10]=h,n[11]=0,n[12]=-(m*x+q*z+a*e),n[13]=-(c*x+b*z+f*e),n[14]=-(d*x+k*z+h*e),n[15]=1)}
(function(){function e(a){this.ue=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.rl=Xb([0,0,100]);this.qm=Xb([0,0,0]);this.Tn=Xb([0,1,0]);this.Mk=Xb([1,1,1]);this.Bl=!0;this.Mj=Yb();this.fc=Yb();this.hm=Yb();this.Li=Yb();this.k=a;this.Vl()}function m(a,c,b){this.k=a;this.Dg=c;this.name=b;this.ec=a.getAttribLocation(c,"aPos");this.Qd=a.getAttribLocation(c,"aTex");this.om=a.getUniformLocation(c,"matP");this.Hh=a.getUniformLocation(c,"matMV");this.$e=
a.getUniformLocation(c,"opacity");this.pm=a.getUniformLocation(c,"samplerFront");this.hg=a.getUniformLocation(c,"samplerBack");this.ye=a.getUniformLocation(c,"destStart");this.xe=a.getUniformLocation(c,"destEnd");this.Jj=a.getUniformLocation(c,"seconds");this.Ij=a.getUniformLocation(c,"pixelWidth");this.Hj=a.getUniformLocation(c,"pixelHeight");this.gg=a.getUniformLocation(c,"layerScale");this.fg=a.getUniformLocation(c,"layerAngle");this.ig=a.getUniformLocation(c,"viewOrigin");this.Dq=!!(this.Ij||
this.Hj||this.Jj||this.hg||this.ye||this.xe||this.gg||this.fg||this.ig);this.ym=this.zm=-999;this.Jh=1;this.vm=this.um=0;this.xm=this.tm=this.rm=1;this.Bm=this.Am=this.wm=0;this.Aj=[];this.Za=Yb();this.$e&&a.uniform1f(this.$e,1);this.pm&&a.uniform1i(this.pm,0);this.hg&&a.uniform1i(this.hg,1);this.ye&&a.uniform2f(this.ye,0,0);this.xe&&a.uniform2f(this.xe,1,1);this.gg&&a.uniform1f(this.gg,1);this.fg&&a.uniform1f(this.fg,0);this.ig&&a.uniform2f(this.ig,0,0);this.pe=!1}function d(a,c){this.type=a;this.u=
c;this.k=c.k;this.Jc=this.ic=this.Wm=0;this.Z=this.Bc=null;this.yn=[]}e.prototype.Vl=function(){var a=this.k,c;this.im=1;this.ve=this.Od=null;this.Tg=1;a.clearColor(0,0,0,0);a.clear(a.COLOR_BUFFER_BIT);a.enable(a.BLEND);a.blendFunc(a.ONE,a.ONE_MINUS_SRC_ALPHA);a.disable(a.CULL_FACE);a.disable(a.DEPTH_TEST);this.jm=a.ONE;this.gm=a.ONE_MINUS_SRC_ALPHA;this.bk=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.bk);this.Lg=Array(4);this.Hg=Array(4);for(c=0;4>c;c++)this.Lg[c]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,
this.Lg[c]),this.Hg[c]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.Hg[c]);this.cd=0;this.Gq=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.Gq);this.Ik=new Float32Array(16E3);this.yk=new Float32Array(16E3);this.lr=new Float32Array(32E3);for(var b=new Uint16Array(12E3),f=c=0;12E3>c;)b[c++]=f,b[c++]=f+1,b[c++]=f+2,b[c++]=f,b[c++]=f+2,b[c++]=f+3,f+=4;a.bufferData(a.ELEMENT_ARRAY_BUFFER,b,a.STATIC_DRAW);this.ck=this.Yc=0;this.Ha=[];c=this.Ki({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.Ha.push(c);c=this.Ki({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.Ha.push(c);for(var k in bc)bc.hasOwnProperty(k)&&this.Ha.push(this.Ki(bc[k],"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}",k));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,null);this.Hd=[];this.$c=0;this.xb=!1;this.yl=this.Zf=-1;this.Df=null;this.Vp=a.createFramebuffer();this.pn=
null;this.be=Xb([0,0,0]);this.Cm=a.getParameter(a.ALIASED_POINT_SIZE_RANGE)[1];2048<this.Cm&&(this.Cm=2048);this.Tc(0)};m.prototype.Fk=function(a){if(this.Za[0]!==a[0]||this.Za[1]!==a[1]||this.Za[2]!==a[2]||this.Za[3]!==a[3]||this.Za[4]!==a[4]||this.Za[5]!==a[5]||this.Za[6]!==a[6]||this.Za[7]!==a[7]||this.Za[8]!==a[8]||this.Za[9]!==a[9]||this.Za[10]!==a[10]||this.Za[11]!==a[11]||this.Za[12]!==a[12]||this.Za[13]!==a[13]||this.Za[14]!==a[14]||this.Za[15]!==a[15])Zb(a,this.Za),this.k.uniformMatrix4fv(this.Hh,
!1,a)};e.prototype.Ki=function(a,c,b){var f=this.k,k=f.createShader(f.FRAGMENT_SHADER);f.shaderSource(k,a.src);f.compileShader(k);if(!f.getShaderParameter(k,f.COMPILE_STATUS))return f.deleteShader(k),null;var d=f.createShader(f.VERTEX_SHADER);f.shaderSource(d,c);f.compileShader(d);if(!f.getShaderParameter(d,f.COMPILE_STATUS))return f.deleteShader(k),f.deleteShader(d),null;c=f.createProgram();f.attachShader(c,k);f.attachShader(c,d);f.linkProgram(c);if(!f.getProgramParameter(c,f.LINK_STATUS))return f.deleteShader(k),
f.deleteShader(d),f.deleteProgram(c),null;f.useProgram(c);f.deleteShader(k);f.deleteShader(d);b=new m(f,c,b);b.Ti=a.Ti||0;b.Ui=a.Ui||0;b.xl=!!a.xl;b.el=!!a.el;b.J=a.J||[];a=0;for(k=b.J.length;a<k;a++)b.J[a][1]=f.getUniformLocation(c,b.J[a][0]),b.Aj.push(0),f.uniform1f(b.J[a][1],0);return b};e.prototype.ij=function(a){var c,b;c=0;for(b=this.Ha.length;c<b;c++)if(this.Ha[c].name===a)return c;return-1};e.prototype.ln=function(a,c,b){var f=this.fc,k=this.Mj,d=[0,0,0,0,0,0,0,0];d[0]=f[0]*a+f[4]*c+f[12];
d[1]=f[1]*a+f[5]*c+f[13];d[2]=f[2]*a+f[6]*c+f[14];d[3]=f[3]*a+f[7]*c+f[15];d[4]=k[0]*d[0]+k[4]*d[1]+k[8]*d[2]+k[12]*d[3];d[5]=k[1]*d[0]+k[5]*d[1]+k[9]*d[2]+k[13]*d[3];d[6]=k[2]*d[0]+k[6]*d[1]+k[10]*d[2]+k[14]*d[3];d[7]=-d[2];0!==d[7]&&(d[7]=1/d[7],d[4]*=d[7],d[5]*=d[7],d[6]*=d[7],b[0]=(0.5*d[4]+0.5)*this.width,b[1]=(0.5*d[5]+0.5)*this.height)};e.prototype.mf=function(a,c,b){if(this.width!==a||this.height!==c||b){this.Jd();this.width=a;this.height=c;this.k.viewport(0,0,a,c);c=a/c;var f=this.Mj,k;k=
1*Math.tan(45*Math.PI/360);c*=k;a=-c;b=-k;f||(f=Yb());var d=c-a,g=k-b;f[0]=2/d;f[1]=0;f[2]=0;f[3]=0;f[4]=0;f[5]=2/g;f[6]=0;f[7]=0;f[8]=(c+a)/d;f[9]=(k+b)/g;f[10]=-1001/999;f[11]=-1;f[12]=0;f[13]=0;f[14]=-2E3/999;f[15]=0;ac(this.rl,this.qm,this.Tn,this.fc);a=[0,0];c=[0,0];this.ln(0,0,a);this.ln(1,1,c);this.Mk[0]=1/(c[0]-a[0]);this.Mk[1]=-1/(c[1]-a[1]);a=0;for(c=this.Ha.length;a<c;a++)b=this.Ha[a],b.pe=!1,b.om&&(this.k.useProgram(b.Dg),this.k.uniformMatrix4fv(b.om,!1,this.Mj));this.k.useProgram(this.Ha[this.Zf].Dg);
this.k.bindTexture(this.k.TEXTURE_2D,null);this.k.activeTexture(this.k.TEXTURE1);this.k.bindTexture(this.k.TEXTURE_2D,null);this.k.activeTexture(this.k.TEXTURE0);this.ve=this.Od=null}};e.prototype.Qc=function(){ac(this.rl,this.qm,this.Tn,this.fc);$b(this.fc,this.Mk)};e.prototype.translate=function(a,c){if(0!==a||0!==c){this.be[0]=a;this.be[1]=c;this.be[2]=0;var b=this.fc,f=this.be,k=f[0],d=f[1],f=f[2];b[12]=b[0]*k+b[4]*d+b[8]*f+b[12];b[13]=b[1]*k+b[5]*d+b[9]*f+b[13];b[14]=b[2]*k+b[6]*d+b[10]*f+b[14];
b[15]=b[3]*k+b[7]*d+b[11]*f+b[15]}};e.prototype.scale=function(a,c){if(1!==a||1!==c)this.be[0]=a,this.be[1]=c,this.be[2]=1,$b(this.fc,this.be)};e.prototype.mk=function(a){if(0!==a){var c=this.fc,b,f=Math.sin(a);a=Math.cos(a);var k=c[0],d=c[1],g=c[2],n=c[3],e=c[4],m=c[5],p=c[6],l=c[7];b?c!==b&&(b[8]=c[8],b[9]=c[9],b[10]=c[10],b[11]=c[11],b[12]=c[12],b[13]=c[13],b[14]=c[14],b[15]=c[15]):b=c;b[0]=k*a+e*f;b[1]=d*a+m*f;b[2]=g*a+p*f;b[3]=n*a+l*f;b[4]=k*-f+e*a;b[5]=d*-f+m*a;b[6]=g*-f+p*a;b[7]=n*-f+l*a}};
e.prototype.Xc=function(){for(var a=!1,c=0;16>c;c++)if(this.hm[c]!==this.fc[c]){a=!0;break}a&&(a=this.zc(),a.type=5,a.Z?Zb(this.fc,a.Z):a.Z=Yb(this.fc),Zb(this.fc,this.hm),this.xb=!1)};d.prototype.qp=function(){this.k.bindTexture(this.k.TEXTURE_2D,this.Bc)};d.prototype.rp=function(){var a=this.k;a.activeTexture(a.TEXTURE1);a.bindTexture(a.TEXTURE_2D,this.Bc);a.activeTexture(a.TEXTURE0)};d.prototype.np=function(){var a=this.Wm,c=this.u;c.Tg=a;c=c.Df;c.$e&&c.Jh!==a&&(c.Jh=a,this.k.uniform1f(c.$e,a))};
d.prototype.kp=function(){this.k.drawElements(this.k.TRIANGLES,this.Jc,this.k.UNSIGNED_SHORT,2*this.ic)};d.prototype.mp=function(){this.k.blendFunc(this.ic,this.Jc)};d.prototype.sp=function(){var a,c,b,f=this.u.Ha,k=this.u.yl;a=0;for(c=f.length;a<c;a++)b=f[a],a===k&&b.Hh?(b.Fk(this.Z),b.pe=!0):b.pe=!1;Zb(this.Z,this.u.Li)};d.prototype.lp=function(){var a=this.k,c=this.u;this.Bc?(c.ve===this.Bc&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,null),c.ve=null,a.activeTexture(a.TEXTURE0)),a.bindFramebuffer(a.FRAMEBUFFER,
c.Vp),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,this.Bc,0)):(a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.bindFramebuffer(a.FRAMEBUFFER,null))};d.prototype.ip=function(){var a=this.k;0===this.ic?(a.clearColor(this.Z[0],this.Z[1],this.Z[2],this.Z[3]),a.clear(a.COLOR_BUFFER_BIT)):(a.enable(a.SCISSOR_TEST),a.scissor(this.Z[0],this.Z[1],this.Z[2],this.Z[3]),a.clearColor(0,0,0,0),a.clear(this.k.COLOR_BUFFER_BIT),a.disable(a.SCISSOR_TEST))};
d.prototype.jp=function(){var a=this.k,c=this.u,b=c.Ha[1];a.useProgram(b.Dg);!b.pe&&b.Hh&&(b.Fk(c.Li),b.pe=!0);a.enableVertexAttribArray(b.ec);a.bindBuffer(a.ARRAY_BUFFER,c.bk);a.vertexAttribPointer(b.ec,4,a.FLOAT,!1,0,0);a.drawArrays(a.POINTS,this.ic/4,this.Jc);b=c.Df;a.useProgram(b.Dg);0<=b.ec&&(a.enableVertexAttribArray(b.ec),a.bindBuffer(a.ARRAY_BUFFER,c.Lg[c.cd]),a.vertexAttribPointer(b.ec,2,a.FLOAT,!1,0,0));0<=b.Qd&&(a.enableVertexAttribArray(b.Qd),a.bindBuffer(a.ARRAY_BUFFER,c.Hg[c.cd]),a.vertexAttribPointer(b.Qd,
2,a.FLOAT,!1,0,0))};d.prototype.op=function(){var a=this.k,c=this.u,b=c.Ha[this.ic];c.yl=this.ic;c.Df=b;a.useProgram(b.Dg);!b.pe&&b.Hh&&(b.Fk(c.Li),b.pe=!0);b.$e&&b.Jh!==c.Tg&&(b.Jh=c.Tg,a.uniform1f(b.$e,c.Tg));0<=b.ec&&(a.enableVertexAttribArray(b.ec),a.bindBuffer(a.ARRAY_BUFFER,c.Lg[c.cd]),a.vertexAttribPointer(b.ec,2,a.FLOAT,!1,0,0));0<=b.Qd&&(a.enableVertexAttribArray(b.Qd),a.bindBuffer(a.ARRAY_BUFFER,c.Hg[c.cd]),a.vertexAttribPointer(b.Qd,2,a.FLOAT,!1,0,0))};d.prototype.pp=function(){var a,c,
b=this.u.Df,f=this.k;a=this.Z;b.hg&&this.u.ve!==this.Bc&&(f.activeTexture(f.TEXTURE1),f.bindTexture(f.TEXTURE_2D,this.Bc),this.u.ve=this.Bc,f.activeTexture(f.TEXTURE0));var k=a[0];b.Ij&&k!==b.zm&&(b.zm=k,f.uniform1f(b.Ij,k));k=a[1];b.Hj&&k!==b.ym&&(b.ym=k,f.uniform1f(b.Hj,k));k=a[2];c=a[3];!b.ye||k===b.um&&c===b.vm||(b.um=k,b.vm=c,f.uniform2f(b.ye,k,c));k=a[4];c=a[5];!b.xe||k===b.rm&&c===b.tm||(b.rm=k,b.tm=k,f.uniform2f(b.xe,k,c));k=a[6];b.gg&&k!==b.xm&&(b.xm=k,f.uniform1f(b.gg,k));k=a[7];b.fg&&k!==
b.wm&&(b.wm=k,f.uniform1f(b.fg,k));k=a[8];c=a[9];!b.ig||k===b.Am&&k===b.Bm||(b.Am=k,b.Bm=c,f.uniform2f(b.ig,k,c));b.Jj&&f.uniform1f(b.Jj,S()/1E3);if(b.J.length)for(a=0,c=b.J.length;a<c;a++)k=this.yn[a],k!==b.Aj[a]&&(b.Aj[a]=k,f.uniform1f(b.J[a][1],k))};e.prototype.zc=function(){this.$c===this.Hd.length&&this.Hd.push(new d(0,this));return this.Hd[this.$c++]};e.prototype.Jd=function(){if(0!==this.$c&&!this.k.isContextLost()){var a=this.k;0<this.ck&&(a.bindBuffer(a.ARRAY_BUFFER,this.bk),a.bufferData(a.ARRAY_BUFFER,
this.lr.subarray(0,this.ck),a.STREAM_DRAW),c&&0<=c.ec&&"<point>"===c.name&&a.vertexAttribPointer(c.ec,4,a.FLOAT,!1,0,0));if(0<this.Yc){var c=this.Df;a.bindBuffer(a.ARRAY_BUFFER,this.Lg[this.cd]);a.bufferData(a.ARRAY_BUFFER,this.Ik.subarray(0,this.Yc),a.STREAM_DRAW);c&&0<=c.ec&&"<point>"!==c.name&&a.vertexAttribPointer(c.ec,2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.Hg[this.cd]);a.bufferData(a.ARRAY_BUFFER,this.yk.subarray(0,this.Yc),a.STREAM_DRAW);c&&0<=c.Qd&&"<point>"!==c.name&&a.vertexAttribPointer(c.Qd,
2,a.FLOAT,!1,0,0)}for(var b,a=0,c=this.$c;a<c;a++)switch(b=this.Hd[a],b.type){case 1:b.kp();break;case 2:b.qp();break;case 3:b.np();break;case 4:b.mp();break;case 5:b.sp();break;case 6:b.lp();break;case 7:b.ip();break;case 8:b.jp();break;case 9:b.op();break;case 10:b.pp();break;case 11:b.rp()}this.ck=this.Yc=this.$c=0;this.xb=!1;this.cd++;4<=this.cd&&(this.cd=0)}};e.prototype.kf=function(a){if(a!==this.im){var c=this.zc();c.type=3;this.im=c.Wm=a;this.xb=!1}};e.prototype.Ob=function(a){if(a!==this.Od){var c=
this.zc();c.type=2;this.Od=c.Bc=a;this.xb=!1}};e.prototype.Wd=function(a,c){if(a!==this.jm||c!==this.gm){var b=this.zc();b.type=4;b.ic=a;b.Jc=c;this.jm=a;this.gm=c;this.xb=!1}};e.prototype.un=function(){this.Wd(this.k.ONE,this.k.ONE_MINUS_SRC_ALPHA)};e.prototype.Vh=function(a,c,b,f,k,d,g,n){15992<=this.Yc&&this.Jd();var e=this.Yc,m=this.Ik,p=this.yk;if(this.xb)this.Hd[this.$c-1].Jc+=6;else{var l=this.zc();l.type=1;l.ic=3*(e/4);l.Jc=6;this.xb=!0}m[e]=a;p[e++]=0;m[e]=c;p[e++]=0;m[e]=b;p[e++]=1;m[e]=
f;p[e++]=0;m[e]=k;p[e++]=1;m[e]=d;p[e++]=1;m[e]=g;p[e++]=0;m[e]=n;p[e++]=1;this.Yc=e};e.prototype.Ud=function(a,c,b,f,k,d,g,n,e){15992<=this.Yc&&this.Jd();var m=this.Yc,p=this.Ik,l=this.yk;if(this.xb)this.Hd[this.$c-1].Jc+=6;else{var u=this.zc();u.type=1;u.ic=3*(m/4);u.Jc=6;this.xb=!0}var u=e.left,t=e.top,v=e.right;e=e.bottom;p[m]=a;l[m++]=u;p[m]=c;l[m++]=t;p[m]=b;l[m++]=v;p[m]=f;l[m++]=t;p[m]=k;l[m++]=v;p[m]=d;l[m++]=e;p[m]=g;l[m++]=u;p[m]=n;l[m++]=e;this.Yc=m};e.prototype.Tc=function(a){if(this.Zf!==
a){if(!this.Ha[a]){if(0===this.Zf)return;a=0}var c=this.zc();c.type=9;this.Zf=c.ic=a;this.xb=!1}};e.prototype.vg=function(a){a=this.Ha[a];return!(!a.ye&&!a.xe)};e.prototype.dk=function(a){a=this.Ha[a];return!!(a.ye||a.xe||a.xl)};e.prototype.rr=function(a){a=this.Ha[a];return 0!==a.Ti||0!==a.Ui};e.prototype.jq=function(a){return this.Ha[a].Ti};e.prototype.kq=function(a){return this.Ha[a].Ui};e.prototype.lq=function(a,c){return this.Ha[a].J[c][2]};e.prototype.Th=function(a){return this.Ha[a].el};e.prototype.lf=
function(a,c,b,f,k,d,g,n,e,m,p,l){var u=this.Ha[this.Zf],t,v;if(u.Dq||l.length){t=this.zc();t.type=10;t.Z?Zb(this.fc,t.Z):t.Z=Yb();v=t.Z;v[0]=c;v[1]=b;v[2]=f;v[3]=k;v[4]=d;v[5]=g;v[6]=n;v[7]=e;v[8]=m;v[9]=p;t.Bc=u.hg?a:null;if(l.length)for(b=t.yn,b.length=l.length,a=0,c=l.length;a<c;a++)b[a]=l[a];this.xb=!1}};e.prototype.clear=function(a,c,b,f){var k=this.zc();k.type=7;k.ic=0;k.Z||(k.Z=Yb());k.Z[0]=a;k.Z[1]=c;k.Z[2]=b;k.Z[3]=f;this.xb=!1};e.prototype.clearRect=function(a,c,b,f){if(!(0>b||0>f)){var k=
this.zc();k.type=7;k.ic=1;k.Z||(k.Z=Yb());k.Z[0]=a;k.Z[1]=c;k.Z[2]=b;k.Z[3]=f;this.xb=!1}};e.prototype.qr=function(){this.Jd();this.k.flush()};var n=[],q={};e.prototype.Zo=function(){n.length=0;q={}};e.prototype.nm=function(a,c,b){var f;f=!1;c=!!c;var k=a.src+","+f+","+c+(f?",undefined":""),d=null;if("undefined"!==typeof a.src&&q.hasOwnProperty(k))return d=q[k],d.Ng++,d;this.Jd();var g=this.k,e=ha(a.width)&&ha(a.height),d=g.createTexture();g.bindTexture(g.TEXTURE_2D,d);g.pixelStorei(g.UNPACK_PREMULTIPLY_ALPHA_WEBGL,
!0);var m=g.RGBA,H=g.RGBA,p=g.UNSIGNED_BYTE;if(b&&!this.ue)switch(b){case 1:H=m=g.RGB;break;case 2:p=g.UNSIGNED_SHORT_4_4_4_4;break;case 3:p=g.UNSIGNED_SHORT_5_5_5_1;break;case 4:H=m=g.RGB,p=g.UNSIGNED_SHORT_5_6_5}if(!e&&f){b=document.createElement("canvas");b.width=ia(a.width);b.height=ia(a.height);var l=b.getContext("2d");l.webkitImageSmoothingEnabled=c;l.mozImageSmoothingEnabled=c;l.msImageSmoothingEnabled=c;l.imageSmoothingEnabled=c;l.drawImage(a,0,0,a.width,a.height,0,0,b.width,b.height);g.texImage2D(g.TEXTURE_2D,
0,m,H,p,b)}else g.texImage2D(g.TEXTURE_2D,0,m,H,p,a);f?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_S,g.REPEAT),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,g.REPEAT)):(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_S,g.CLAMP_TO_EDGE),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,g.CLAMP_TO_EDGE));c?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,g.LINEAR),e&&this.Bl?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,g.LINEAR_MIPMAP_LINEAR),g.generateMipmap(g.TEXTURE_2D)):g.texParameteri(g.TEXTURE_2D,
g.TEXTURE_MIN_FILTER,g.LINEAR)):(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,g.NEAREST),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,g.NEAREST));g.bindTexture(g.TEXTURE_2D,null);this.Od=null;d.zf=a.width;d.yf=a.height;d.Ng=1;d.pl=k;n.push(d);return q[k]=d};e.prototype.bd=function(a,c,b,f){this.Jd();var d=this.k;this.ue&&(f=!1);var h=d.createTexture();d.bindTexture(d.TEXTURE_2D,h);d.texImage2D(d.TEXTURE_2D,0,d.RGBA,a,c,0,d.RGBA,f?d.UNSIGNED_SHORT_4_4_4_4:d.UNSIGNED_BYTE,null);d.texParameteri(d.TEXTURE_2D,
d.TEXTURE_WRAP_S,d.CLAMP_TO_EDGE);d.texParameteri(d.TEXTURE_2D,d.TEXTURE_WRAP_T,d.CLAMP_TO_EDGE);d.texParameteri(d.TEXTURE_2D,d.TEXTURE_MAG_FILTER,b?d.LINEAR:d.NEAREST);d.texParameteri(d.TEXTURE_2D,d.TEXTURE_MIN_FILTER,b?d.LINEAR:d.NEAREST);d.bindTexture(d.TEXTURE_2D,null);this.Od=null;h.zf=a;h.yf=c;n.push(h);return h};e.prototype.bs=function(a,c,b){this.Jd();var f=this.k;this.ue&&(b=!1);f.bindTexture(f.TEXTURE_2D,c);f.pixelStorei(f.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);try{f.texImage2D(f.TEXTURE_2D,
0,f.RGBA,f.RGBA,b?f.UNSIGNED_SHORT_4_4_4_4:f.UNSIGNED_BYTE,a)}catch(d){console&&console.error&&console.error("Error updating WebGL texture: ",d)}f.bindTexture(f.TEXTURE_2D,null);this.Od=null};e.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.Ng&&1<a.Ng?a.Ng--:(this.Jd(),a===this.Od&&(this.k.bindTexture(this.k.TEXTURE_2D,null),this.Od=null),a===this.ve&&(this.k.activeTexture(this.k.TEXTURE1),this.k.bindTexture(this.k.TEXTURE_2D,null),this.k.activeTexture(this.k.TEXTURE0),this.ve=null),
ya(n,a),"undefined"!==typeof a.pl&&delete q[a.pl],this.k.deleteTexture(a)))};e.prototype.Sc=function(a){if(a!==this.pn){var c=this.zc();c.type=6;this.pn=c.Bc=a;this.xb=!1}};db=e})();
(function(){function e(){return"undefined"!==typeof jQuery?jQuery(window).width():window.innerWidth}function m(){return"undefined"!==typeof jQuery?jQuery(window).height():window.innerHeight}function d(a){if(a&&(a.getContext||a.dc)&&!a.c2runtime){a.c2runtime=this;var l=this;this.ac=(this.Tf=/crosswalk/i.test(navigator.userAgent)||/xwalk/i.test(navigator.userAgent)||!("undefined"===typeof window.c2isCrosswalk||!window.c2isCrosswalk))||"undefined"!==typeof window.device&&("undefined"!==typeof window.device.cordova||
"undefined"!==typeof window.device.phonegap)||"undefined"!==typeof window.c2isphonegap&&window.c2isphonegap;this.kb=!!a.dc;this.Se="undefined"!==typeof window.AppMobi||this.kb;this.$b=!!window.c2cocoonjs;this.Kc=!!window.c2ejecta;this.$b&&(CocoonJS.App.onSuspended.addEventListener(function(){l.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){l.setSuspended(!1)}));this.Kc&&(document.addEventListener("pagehide",function(){l.setSuspended(!0)}),document.addEventListener("pageshow",
function(){l.setSuspended(!1)}),document.addEventListener("resize",function(){l.setSize(window.innerWidth,window.innerHeight)}));this.Ca=this.kb||this.$b||this.Kc;this.ue=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent);this.am=/tizen/i.test(navigator.userAgent);this.oh=/android/i.test(navigator.userAgent)&&!this.am&&!this.ue;this.zj=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&!this.ue;this.fm=/ipad/i.test(navigator.userAgent);
this.uh=this.zj||this.fm||this.Kc;this.Tq=this.zj&&/os\s6/i.test(navigator.userAgent);this.Sf=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent);this.Iq=/amazonwebappplatform/i.test(navigator.userAgent);this.Lq=/firefox/i.test(navigator.userAgent);this.$l=/safari/i.test(navigator.userAgent)&&!this.Sf&&!this.ue;this.Oq=/windows/i.test(navigator.userAgent);this.Md="undefined"!==typeof window.c2nodewebkit||/nodewebkit/i.test(navigator.userAgent);this.Qq=!("undefined"===typeof window.c2isWindows8||
!window.c2isWindows8);this.Rq=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.xj=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.dm=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.cm=this.Qq||this.Rq||this.dm;this.Jq=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.ph=this.oh&&!this.Sf&&!this.Tf&&!this.Lq&&!this.Iq&&!this.Ca;this.devicePixelRatio=1;this.Mc=this.ac||
this.Tf||this.Se||this.$b||this.oh||this.uh||this.xj||this.dm||this.Jq||this.am||this.Kc;this.Mc||(this.Mc=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));"undefined"===typeof cr_is_preview||this.Md||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)||(this.Md=!0);this.Kq="undefined"!==typeof cr_is_preview&&-1<window.location.search.indexOf("debug");this.canvas=a;this.sl=document.getElementById("c2canvasdiv");
this.aa=this.u=this.k=null;this.Zi="";this.ah=!1;this.Om=this.Pm=0;this.canvas.oncontextmenu=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.onselectstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.kb&&(window.c2runtime=this);this.Md&&(window.ondragover=function(a){a.preventDefault();return!1},window.ondrop=function(a){a.preventDefault();return!1},require("nw.gui").App.clearCache());this.ph&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow",
"visible");this.width=a.width;this.height=a.height;this.N=this.width;this.M=this.height;this.Rg=this.width;this.Qg=this.height;this.ag=window.innerWidth;this.$f=window.innerHeight;this.ba=!0;this.Vf=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.m=[];this.ua=[];this.Fj={};this.wc=[];this.Ri={};this.jd=[];this.vf=[];this.mi=[];this.Mo=[];this.No=[];this.Fc=new ca;this.uj=!1;this.nd=0;this.wj=!1;this.sb=[];this.qd=this.eb=this.Dh=this.rk="";this.Fg=this.Cn=!1;
this.Ji=this.jg=this.hd=this.me=0;this.pf=1;this.cc=new Ua;this.zd=new Ua;this.yh=0;this.Em=!0;this.Kh=this.dh=this.Si=this.Vc=this.bg=this.Yi=0;this.Hi=null;this.Oi=[];this.Qi=[];this.Yg=-1;this.Kj=[[]];this.Dk=this.Ih=0;this.fk(null);this.Jm=this.pg=0;this.Ej=!0;this.Hf=0;this.Gg=[];this.ji=this.Wh=-1;this.vh=!0;this.Gh=0;this.Uf=!1;this.Mr=0;this.Le=null;this.Bq=!1;this.Bj=0;this.Lc=this.lj=this.hk=!1;this.Nm=new ca;this.Sj=new ca;this.Tj=new ca;this.ur=[];new Xa([]);new Xa([]);this.Ke=[];this.lh=
{};this.Me={};this.Je={};this.uf={};this.ml={};this.mm=this.Ch=this.Bb=this.Mb=this.lm=this.Bh=this.ka=null;this.rf=this.yj=!1;this.$i=[null,null];this.oe=0;this.Wi="";this.Rd={};this.bi=this.Ze=null;this.load();this.devicePixelRatio=(this.Ue=(!this.Ca||this.Kc)&&this.Yr&&!this.ph)?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.Ua();var b,c=this.vi&&!(this.Md||this.cm||this.xj||this.Tf||this.ac);0<this.tb&&this.setSize(e(),m(),
!0);try{this.vp&&(this.$b||this.Kc||!this.Ca)&&(b={alpha:c,depth:!1,antialias:!1,failIfMajorPerformanceCaveat:!0},this.k=a.getContext("webgl",b)||a.getContext("experimental-webgl",b))}catch(f){}if(this.k){this.Ca||(this.Qa=document.createElement("canvas"),jQuery(this.Qa).appendTo(this.canvas.parentNode),this.Qa.oncontextmenu=N(!1),this.Qa.onselectstart=N(!1),this.Qa.width=this.Rg,this.Qa.height=this.Qg,jQuery(this.Qa).css({width:this.Rg+"px",height:this.Qg+"px"}),this.jn(),this.$j=this.Qa.getContext("2d"));
this.u=new db(this.k,this.Mc);this.u.mf(a.width,a.height);this.u.Bl=0!==this.tp;this.aa=null;this.canvas.addEventListener("webglcontextlost",function(a){a.preventDefault();l.br();console.log("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){l.u.Vl();l.u.mf(l.u.width,l.u.height,!0);l.Mb=null;l.Bb=null;l.$i[0]=null;l.$i[1]=null;l.cr();l.ba=!0;console.log("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},
!1);var d,k,g,h,n,x;a=0;for(b=this.m.length;a<b;a++)for(k=this.m[a],c=0,d=k.G.length;c<d;c++)h=k.G[c],h.Ra=this.u.ij(h.id),this.rf=this.rf||this.u.vg(h.Ra);a=0;for(b=this.wc.length;a<b;a++){n=this.wc[a];c=0;for(d=n.G.length;c<d;c++)h=n.G[c],h.Ra=this.u.ij(h.id);c=0;for(d=n.I.length;c<d;c++)for(x=n.I[c],k=0,g=x.G.length;k<g;k++)h=x.G[k],h.Ra=this.u.ij(h.id),this.rf=this.rf||this.u.vg(h.Ra)}}else{if(0<this.tb&&this.kb){this.canvas=null;document.oncontextmenu=N(!1);document.onselectstart=N(!1);this.aa=
AppMobi.canvas.getContext("2d");try{this.aa.samplingMode=this.Y?"smooth":"sharp",this.aa.globalScale=1,this.aa.HTML5CompatibilityMode=!0,this.aa.imageSmoothingEnabled=this.Y}catch(z){}0!==this.width&&0!==this.height&&(this.aa.width=this.width,this.aa.height=this.height)}this.aa||(b=this.$b?{antialias:!!this.Y,alpha:c}:{alpha:c},this.aa=a.getContext("2d",b),this.aa.webkitImageSmoothingEnabled=this.Y,this.aa.mozImageSmoothingEnabled=this.Y,this.aa.msImageSmoothingEnabled=this.Y,this.aa.imageSmoothingEnabled=
this.Y);this.$j=this.Qa=null}this.ii=function(){l.ab(!1)};window==window.top||this.Ca||this.cm||this.xj||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.$b&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(da("Reloading for continuous preview"),this.Dh="__c2_continuouspreview",this.Fg=!0),this.jr&&
!this.Mc&&(jQuery(window).focus(function(){l.setSuspended(!1)}),jQuery(window).blur(function(){l.setSuspended(!0)})));a=function(a){cb(a)&&document.activeElement&&document.activeElement.blur&&document.activeElement.blur()};window.navigator.pointerEnabled?document.addEventListener("pointerdown",a):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",a):document.addEventListener("touchstart",a);document.addEventListener("mousedown",a);0===this.tb&&this.Ue&&1<this.devicePixelRatio&&
this.setSize(this.La,this.Ka,!0);this.On();this.yq();this.go();this.V={}}}function n(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function q(a,l,b,c){var f=indexedDB.open("_C2SaveStates");f.onupgradeneeded=n;f.onerror=c;f.onsuccess=function(f){f=f.target.result;f.onerror=c;f.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,data:l}).onsuccess=b}}function a(a,l,b){var c=indexedDB.open("_C2SaveStates");c.onupgradeneeded=n;c.onerror=b;c.onsuccess=function(c){c=c.target.result;
c.onerror=b;var f=c.transaction(["saves"]).objectStore("saves").get(a);f.onsuccess=function(){f.result?l(f.result.data):l(null)}}}function c(){da("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?window.location.reload(!0):window.location+="?continuous"}function b(a){var l,b={};for(l in a)!a.hasOwnProperty(l)||a[l]instanceof ca||a[l]&&"undefined"!==typeof a[l].ot||(b[l]=a[l]);return b}d.prototype.setSize=function(a,l,b){var c=
0,f=0,d=0,k=0,k=0,g=this.Tq&&this.$l&&!navigator.standalone&&!this.Ca&&!this.ac;g&&(l+=60);if(this.ag!==a||this.$f!==l||b){this.ag=a;this.$f=l;var h=this.tb,n=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.Uf)&&!this.ac;if(n||0!==this.tb||b)n&&0<this.oe&&(h=this.oe),b=this.devicePixelRatio,4<=h?(d=this.La/this.Ka,a/l>d?(d*=l,5===h?(k=d*b/this.La,1<k?k=Math.floor(k):1>k&&(k=1/Math.ceil(1/k)),d=this.La*k/b,k=this.Ka*k/b,c=(a-d)/2,f=(l-
k)/2,a=d,l=k):(c=(a-d)/2,a=d)):(k=a/d,5===h?(k=k*b/this.Ka,1<k?k=Math.floor(k):1>k&&(k=1/Math.ceil(1/k)),d=this.La*k/b,k=this.Ka*k/b,c=(a-d)/2,f=(l-k)/2,a=d):f=(l-k)/2,l=k),n&&!this.Md&&(f=c=0)):this.Md&&this.Uf&&0===this.Il&&(c=Math.floor((a-this.La)/2),f=Math.floor((l-this.Ka)/2),a=this.La,l=this.Ka),2>h&&(this.xf=b),this.Ue&&this.fm&&1<b&&(1024<=a&&(a=1023),1024<=l&&(l=1023)),this.Rg=Math.round(a),this.Qg=Math.round(l),this.width=Math.round(a*b),this.height=Math.round(l*b),this.ba=!0,this.Zn?(this.N=
this.width,this.M=this.height,this.Zb=!0):this.width<this.La&&this.height<this.Ka||1===h?(this.N=this.width,this.M=this.height,this.Zb=!0):(this.N=this.La,this.M=this.Ka,this.Zb=!1,2===h?(d=this.La/this.Ka,h=this.ag/this.$f,h<d?this.N=this.M*h:h>d&&(this.M=this.N/h)):3===h&&(d=this.La/this.Ka,h=this.ag/this.$f,h>d?this.N=this.M*h:h<d&&(this.M=this.N/h))),this.sl&&!this.Ca&&(jQuery(this.sl).css({width:Math.round(a)+"px",height:Math.round(l)+"px","margin-left":Math.floor(c)+"px","margin-top":Math.floor(f)+
"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(a)+"px",height:Math.round(l)+"px"})),this.canvas&&(this.canvas.width=Math.round(a*b),this.canvas.height=Math.round(l*b),this.Kc?(this.canvas.style.left=Math.floor(c)+"px",this.canvas.style.top=Math.floor(f)+"px",this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(l)+"px"):this.Ue&&!this.Ca&&jQuery(this.canvas).css({width:Math.round(a)+"px",height:Math.round(l)+"px"})),this.Qa&&(this.Qa.width=
Math.round(a),this.Qa.height=Math.round(l),jQuery(this.Qa).css({width:Math.round(a)+"px",height:Math.round(l)+"px"})),this.u&&this.u.mf(Math.round(a*b),Math.round(l*b)),this.kb&&this.aa&&(this.aa.width=Math.round(a),this.aa.height=Math.round(l)),this.aa&&(this.aa.webkitImageSmoothingEnabled=this.Y,this.aa.mozImageSmoothingEnabled=this.Y,this.aa.msImageSmoothingEnabled=this.Y,this.aa.imageSmoothingEnabled=this.Y),this.On(),this.Ca||!g&&!this.zj||window.setTimeout(function(){window.scrollTo(0,1)},100)}};
d.prototype.On=function(){if(this.Po&&0!==this.Yj){var a="portrait";2===this.Yj&&(a="landscape");screen.orientation&&screen.orientation.lock?screen.orientation.lock(a):screen.lockOrientation?screen.lockOrientation(a):screen.webkitLockOrientation?screen.webkitLockOrientation(a):screen.mozLockOrientation?screen.mozLockOrientation(a):screen.msLockOrientation&&screen.msLockOrientation(a)}};d.prototype.br=function(){this.u.Zo();this.yj=!0;var a,l,b;a=0;for(l=this.m.length;a<l;a++)b=this.m[a],b.Wj&&b.Wj()};
d.prototype.cr=function(){this.yj=!1;var a,l,b;a=0;for(l=this.m.length;a<l;a++)b=this.m[a],b.Sm&&b.Sm()};d.prototype.jn=function(){if(!this.Ca){var a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.Uf)&&!this.ac?jQuery(this.canvas).offset():jQuery(this.canvas).position();a.position="absolute";jQuery(this.Qa).css(a)}};var f=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||
window.oCancelAnimationFrame;d.prototype.setSuspended=function(a){var l;if(a&&!this.Vf)for(da("[Construct 2] Suspending"),this.Vf=!0,-1!==this.Wh&&f&&f(this.Wh),-1!==this.ji&&clearTimeout(this.ji),a=0,l=this.Gg.length;a<l;a++)this.Gg[a](!0);else if(!a&&this.Vf){da("[Construct 2] Resuming");this.Vf=!1;this.yh=S();this.bg=S();a=this.jg=this.dh=0;for(l=this.Gg.length;a<l;a++)this.Gg[a](!1);this.ab(!1)}};d.prototype.Lo=function(a){this.Gg.push(a)};d.prototype.load=function(){var a=cc();this.name=a[0];
this.Hl=a[1];this.tb=a[12];this.Il=a[12];this.La=a[10];this.Ka=a[11];this.cn=this.La/2;this.dn=this.Ka/2;this.Ca&&!this.Kc&&(4<=a[12]||0===a[12])&&(da("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.Il=this.tb=3);this.Gk=a[18];this.eg=a[19];0===this.eg&&(this.Ze=new Image,this.Ze.src="loading-logo.png");this.pg=a[21];this.Uc=new V(this);var l,b,c,f,d,k,g,h,n;l=0;for(b=a[2].length;l<b;l++)g=a[2][l],eb(g),n=new g[0](this),n.ai=
g[1],n.Nd=g[2],n.Gm=g[9],n.ya&&n.ya(),this.plugins.push(n);a=cc();l=0;for(b=a[3].length;l<b;l++){g=a[3][l];d=g[1];n=null;c=0;for(f=this.plugins.length;c<f;c++)if(this.plugins[c]instanceof d){n=this.plugins[c];break}var e=new n.oc(n);e.name=g[0];e.S=g[2];e.sj=g[3].slice(0);e.$r=g[3].length;e.Qo=g[4];e.Yp=g[5];e.O=g[11];e.S?(e.Fm=[],e.kd=this.Hf++,e.ga=null):(e.Fm=null,e.kd=-1,e.ga=[]);e.Zg=null;e.Oe=null;e.Dl=null;e.uc=!1;e.rb=null;g[6]?(e.In=g[6][0],e.Jn=g[6][1],e.Pr=g[6][2]):(e.In=null,e.Jn=0,e.Pr=
0);e.pb=g[7]?g[7]:null;e.index=l;e.d=[];e.Vg=[];e.Zd=[new fb(e)];e.fd=0;e.Gc=null;e.fp=0;e.of=!0;e.ni=gb;e.bq=hb;e.hq=ib;e.ja=mb;e.xg=nb;e.ek=ob;e.gf=pb;e.fh=qb;e.aj=rb;e.ej=sb;e.Fd=tb;e.Ol=ub;e.tl=new Ya(this.La,this.Ka);e.fl=!0;e.gl=!1;e.V={};e.toString=vb;e.ua=[];c=0;for(f=g[8].length;c<f;c++){h=g[8][c];var m=h[1],x=null;d=0;for(k=this.ua.length;d<k;d++)if(this.ua[d]instanceof m){x=this.ua[d];break}x||(x=new m(this),x.Hm=[],x.Qj=new ca,x.ya&&x.ya(),this.ua.push(x));-1===x.Hm.indexOf(e)&&x.Hm.push(e);
d=new x.oc(x,e);d.name=h[0];d.O=h[2];d.ya();e.ua.push(d)}e.global=g[9];e.vj=g[10];e.G=[];c=0;for(f=g[12].length;c<f;c++)e.G.push({id:g[12][c][0],name:g[12][c][1],Ra:-1,Va:!0,index:c});e.Dt=g[13];this.Gk&&!e.S&&!e.vj&&n.Nd||e.ya();e.name&&(this.types[e.name]=e);this.m.push(e);n.ai&&(c=new n.ob(e),c.uid=this.pg++,c.nn=this.Jm++,c.qe=0,c.Mf=wb,c.toString=xb,c.L=g[14],c.ya(),e.d.push(c),this.Rd[c.uid.toString()]=c)}l=0;for(b=a[4].length;l<b;l++)for(d=a[4][l],k=this.m[d[0]],c=1,f=d.length;c<f;c++)g=this.m[d[c]],
g.ga.push(k),k.Fm.push(g);l=0;for(b=a[27].length;l<b;l++){d=a[27][l];k=[];c=0;for(f=d.length;c<f;c++)k.push(this.m[d[c]]);c=0;for(f=k.length;c<f;c++)k[c].uc=!0,k[c].rb=k}if(0<this.Hf)for(l=0,b=this.m.length;l<b;l++)if(g=this.m[l],!g.S&&g.ga.length){g.Zg=Array(this.Hf);g.Oe=Array(this.Hf);g.Dl=Array(this.Hf);e=[];c=x=m=h=0;for(f=g.ga.length;c<f;c++)for(n=g.ga[c],g.Zg[n.kd]=h,h+=n.$r,g.Oe[n.kd]=m,m+=n.Qo,g.Dl[n.kd]=x,x+=n.Yp,d=0,k=n.G.length;d<k;d++)e.push(ta({},n.G[d]));g.G=e.concat(g.G);c=0;for(f=
g.G.length;c<f;c++)g.G[c].index=c}l=0;for(b=a[5].length;l<b;l++)g=a[5][l],c=new yb(this,g),this.Fj[c.name]=c,this.wc.push(c);l=0;for(b=a[6].length;l<b;l++)g=a[6][l],c=new zb(this,g),this.Ri[c.name]=c,this.jd.push(c);l=0;for(b=this.jd.length;l<b;l++)this.jd[l].ra();l=0;for(b=this.jd.length;l<b;l++)this.jd[l].Vn();l=0;for(b=this.mi.length;l<b;l++)this.mi[l].ra();this.mi.length=0;this.Oo=a[7];this.Wi=a[8];this.Td=a[9];this.xf=1;this.vp=a[13];this.Y=a[14];this.vi=a[15];this.Yr=a[17];this.Yj=a[20];this.Po=
0<this.Yj;this.jr=a[22];this.Zb=this.Zn=a[23];this.tp=a[24];this.pr=a[25];this.ci=Date.now()};var k=!1;d.prototype.cs=function(a,l){a.cocoonLazyLoad=!0;a.onerror=function(l){k=a.ol=!0;console&&console.error&&console.error("Error loading image '"+a.src+"': ",l)};this.Kc?a.src=l:a.src||("undefined"!==typeof XAPKReader?XAPKReader.get(l,function(l){a.src=l},function(b){k=a.ol=!0;console&&console.error&&console.error("Error extracting image '"+l+"' from expansion file: ",b)}):a.src=l);this.vf.push(a)};
d.prototype.Wp=function(a){var l,b;l=0;for(b=this.vf.length;l<b;l++)if(this.vf[l].bp===a)return this.vf[l];return null};var h=0,g=!1;d.prototype.yq=function(){this.Le&&(h=this.Le.Ir(this.Oo))};d.prototype.hl=function(){var a=h,l=0,b=0,c=!0,f,d,b=0;for(f=this.vf.length;b<f;b++){d=this.vf[b];var k=d.$o;if(!k||0>=k)k=5E4;a+=k;d.src&&(d.complete||d.loaded)&&!d.ol?l+=k:c=!1}c&&this.pr&&this.Le&&(g||(this.Le.Nr(),g=!0),b=this.Le.iq(),l+=b,b<h&&(c=!1));this.Be=0==a?0:l/a;return c};d.prototype.go=function(){if(this.aa||
this.u){var a=this.aa||this.$j;this.Qa&&this.jn();this.Be=0;this.km=-1;if(this.hl())this.zq();else{var l=Date.now()-this.ci;if(a){var b=this.width,c=this.height,f=this.devicePixelRatio;this.Qa&&(b=this.Rg,c=this.Qg,f=1);if(3!==this.eg&&(this.$b||500<=l&&this.km!=this.Be)){a.clearRect(0,0,b,c);var l=b/2,c=c/2,b=0===this.eg&&this.Ze.complete,d=40*f,g=0,h=80*f,e;b&&(h=this.Ze.width*f,e=this.Ze.height*f,d=h/2,g=e/2,a.drawImage(this.Ze,ma(l-d),ma(c-g),h,e));1>=this.eg?(l=ma(l-d)+0.5,c=ma(c+(g+(b?12*f:
0)))+0.5,a.fillStyle=k?"red":"DodgerBlue",a.fillRect(l,c,Math.floor(h*this.Be),6*f),a.strokeStyle="black",a.strokeRect(l,c,h,6*f),a.strokeStyle="white",a.strokeRect(l-1*f,c-1*f,h+2*f,8*f)):2===this.eg&&(a.font=this.Kc?"12pt ArialMT":"12pt Arial",a.fillStyle=k?"#f00":"#999",a.Ct="middle",f=Math.round(100*this.Be)+"%",b=a.measureText?a.measureText(f):null,a.fillText(f,l-(b?b.width:0)/2,c))}this.km=this.Be}setTimeout(function(a){return function(){a.go()}}(this),this.$b?10:100)}}};d.prototype.zq=function(){this.Qa&&
(this.canvas.parentNode.removeChild(this.Qa),this.Qa=this.$j=null);this.ci=Date.now();this.bg=S();var a,l,b;if(this.Gk)for(a=0,l=this.m.length;a<l;a++)b=this.m[a],b.S||b.vj||!b.Ea.Nd||b.ya();else this.vh=!1;a=0;for(l=this.wc.length;a<l;a++)this.wc[a].cp();2<=this.tb&&(a=this.La/this.Ka,l=this.width/this.height,this.xf=2!==this.tb&&l>a||2===this.tb&&l<a?this.height/this.Ka:this.width/this.La);this.Hl?this.Fj[this.Hl].wk():this.wc[0].wk();this.Gk||(this.Gh=1,this.trigger(V.prototype.n.Pk,null));navigator.splashscreen&&
navigator.splashscreen.hide&&navigator.splashscreen.hide();a=0;for(l=this.m.length;a<l;a++)b=this.m[a],b.$q&&b.$q();this.ab(!1);this.kb&&AppMobi.webview.execute("onGameReady();")};var x=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;d.prototype.ab=function(a){if(this.ka){var l=S();if(this.Bq&&this.hk&&29>l-this.Bj)this.hk=!1,this.Bj=l,x?this.Wh=x(this.ii,this.canvas):this.ji=setTimeout(this.ii,
this.Mc?1:16);else{this.hk=!0;this.Bj=l;var b=this.tb,c=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.ac;(c||this.Uf)&&0<this.oe&&(b=this.oe);0<b&&(!this.uh||window.self!==window.top)&&(b=window.innerHeight,this.ag===window.innerWidth&&this.$f===b||this.setSize(e(),m()));this.Ca||(c?(this.ah||(this.Zi=jQuery(this.canvas).css("margin")||"0",this.ah=!0),this.Sf||this.Md||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.ah?(this.Sf||this.Md||jQuery(this.canvas).css("margin",this.Zi),this.Zi="",this.ah=!1,0===this.tb&&this.setSize(Math.round(this.Pm/this.devicePixelRatio),Math.round(this.Om/this.devicePixelRatio),!0)):(this.Pm=this.width,this.Om=this.height));this.vh&&(c=this.hl(),this.Gh=this.Be,c&&(this.vh=!1,this.Be=1,this.trigger(V.prototype.n.Pk,null)));this.Xq();!this.ba&&!this.$b||
this.yj||this.Fg||a||(this.ba=!1,this.u?this.sc():this.gd(),this.bi&&(this.canvas&&this.canvas.toDataURL&&(this.canvas.toDataURL(this.bi[0],this.bi[1]),this.trigger(V.prototype.n.ko,null)),this.bi=null));this.xt||(this.Vc++,this.Si++,this.dh++);this.jg+=S()-l;this.Vf||a||(x?this.Wh=x(this.ii,this.canvas):this.ji=setTimeout(this.ii,this.Mc?1:16))}}};d.prototype.Xq=function(){var a,l,b,c,f,d,k,g,h;a=S();1E3<=a-this.bg&&(this.bg+=1E3,this.Yi=this.dh,this.dh=0,this.Ji=this.jg,this.jg=0);this.Em&&(0!==
this.yh&&(l=a-this.yh,0!==l||this.Kq?(this.hd=l/1E3,0.5<this.hd?this.hd=0:0.1<this.hd&&(this.hd=0.1)):(10<=this.Gt&&(this.Em=!1),this.hd=1/60)),this.yh=a);this.me=this.hd*this.pf;this.cc.add(this.me);this.zd.add(this.hd);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.Uf)&&!this.ac;2<=this.tb||a&&0<this.oe?(l=this.La/this.Ka,b=this.width/this.height,c=this.tb,a&&0<this.oe&&(c=this.oe),this.xf=2!==c&&b>l||2===c&&b<l?this.height/this.Ka:
this.width/this.La,this.ka&&(this.ka.sn(this.ka.scrollX),this.ka.tn(this.ka.scrollY))):this.xf=this.Ue?this.devicePixelRatio:1;this.Ua();this.nd++;this.Uc.yr();this.nd--;this.Ua();this.nd++;b=this.Nm.sf();a=0;for(l=b.length;a<l;a++)b[a].zt();a=0;for(l=this.m.length;a<l;a++)if(k=this.m[a],!k.S&&(k.ua.length||k.ga.length))for(b=0,c=k.d.length;b<c;b++)for(g=k.d[b],f=0,d=g.K.length;f<d;f++)g.K[f].ab();a=0;for(l=this.m.length;a<l;a++)if(k=this.m[a],!k.S&&(k.ua.length||k.ga.length))for(b=0,c=k.d.length;b<
c;b++)for(g=k.d[b],f=0,d=g.K.length;f<d;f++)h=g.K[f],h.or&&h.or();b=this.Sj.sf();a=0;for(l=b.length;a<l;a++)b[a].ab();this.nd--;this.Cq();for(a=0;this.Hi&&10>a++;)this.Al(this.Hi);a=0;for(l=this.jd.length;a<l;a++)this.jd[a].nj=!1;this.ka.Ff&&this.ka.Ff.Ga();this.ur.length=0;this.Ej=!1;this.nd++;a=0;for(l=this.m.length;a<l;a++)if(k=this.m[a],!k.S&&(k.ua.length||k.ga.length))for(b=0,c=k.d.length;b<c;b++)for(g=k.d[b],f=0,d=g.K.length;f<d;f++)h=g.K[f],h.zk&&h.zk();b=this.Tj.sf();a=0;for(l=b.length;a<
l;a++)b[a].zk();this.nd--};d.prototype.Al=function(a){var l=this.ka;this.ka.Or();var b,c,f,d,k,g,h;if(this.u)for(b=0,c=this.m.length;b<c;b++)k=this.m[b],k.S||!k.Sn||k.global&&0!==k.d.length||-1!==a.Rf.indexOf(k)||k.Sn();l==a&&(this.Uc.Hb.length=0);a.wk();b=0;for(c=this.m.length;b<c;b++)if(k=this.m[b],k.global||k.Ea.ai)for(a=0,l=k.d.length;a<l;a++)if(g=k.d[a],g.Vj&&g.Vj(),g.K)for(f=0,d=g.K.length;f<d;f++)h=g.K[f],h.Vj&&h.Vj();this.Ej=this.ba=!0;this.Ua()};d.prototype.Ak=function(a){this.Sj.add(a)};
d.prototype.Qr=function(a){this.Tj.add(a)};d.prototype.cj=function(a){return a&&-1!==a.ng?this.hd*a.ng:this.me};d.prototype.gd=function(){this.ka.gd(this.aa);this.kb&&this.aa.present()};d.prototype.sc=function(){this.ka.sc(this.u);this.u.qr()};d.prototype.Jo=function(a){a&&this.Oi.push(a)};d.prototype.hh=function(a){a=a.toString();return this.Rd.hasOwnProperty(a)?this.Rd[a]:null};d.prototype.de=function(a){var l,b;if(!this.Fc.contains(a)){this.Fc.add(a);if(a.uc)for(l=0,b=a.siblings.length;l<b;l++)this.de(a.siblings[l]);
this.uj&&this.Fc.tf.push(a);this.nd++;this.trigger(Object.getPrototypeOf(a.type.Ea).n.mo,a);this.nd--}};d.prototype.Ua=function(){var a,l,b,c,f,d,k,g,h,e;this.uj=!0;c=0;for(d=this.sb.length;c<d;c++)for(a=this.sb[c],l=a.type,l.d.push(a),f=0,k=l.ga.length;f<k;f++)l.ga[f].d.push(a),l.ga[f].of=!0;this.sb.length=0;d=this.Fc.sf();for(c=0;c<d.length;c++){a=d[c];l=a.type;b=l.d;f=0;for(k=this.Oi.length;f<k;f++)this.Oi[f](a);ya(b,a);0===b.length&&(l.gl=!1);a.Og&&l.tl.update(a,a.Og,null);a.e&&(ua(a.e.d,a.Lb()),
a.e.Ib=!0);f=0;for(k=l.ga.length;f<k;f++)ya(l.ga[f].d,a),l.ga[f].of=!0;if(a.K)for(f=0,k=a.K.length;f<k;f++)b=a.K[f],b.Mh&&b.Mh(),b.ad.Qj.remove(a);this.Nm.remove(a);this.Sj.remove(a);this.Tj.remove(a);f=0;for(k=this.Uc.Hb.length;f<k;f++)if(h=this.Uc.Hb[f],h.Eb.hasOwnProperty(l.index)&&ya(h.Eb[l.index].te,a),!l.S)for(b=0,g=l.ga.length;b<g;b++)e=l.ga[b],h.Eb.hasOwnProperty(e.index)&&ya(h.Eb[e.index].te,a);a.Mh&&a.Mh();this.Rd.hasOwnProperty(a.uid.toString())&&delete this.Rd[a.uid.toString()];this.Kh--;
64>l.Vg.length&&l.Vg.push(a);l.of=!0}this.Fc.tc()||(this.ba=!0);this.Fc.clear();this.uj=!1};var z=[];d.prototype.ke=function(a,b,c,f,d,k){var g,h,e,n;if(!a)return null;var m=this.m[a[1]],x=m.Ea.Nd;if(this.vh&&x&&!m.vj||x&&!this.u&&11===a[0][11])return null;var H=b;x||(b=null);var r;m.Vg.length?(r=m.Vg.pop(),r.gc=!0,m.Ea.ob.call(r,m)):(r=new m.Ea.ob(m),r.gc=!1);r.uid=c&&!k?a[2]:this.pg++;this.Rd[r.uid.toString()]=r;r.nn=this.Jm++;r.qe=m.d.length;g=0;for(h=this.sb.length;g<h;++g)this.sb[g].type===m&&
r.qe++;r.Mf=wb;e=a[3];if(r.gc)Ta(r.V);else{r.V={};if("undefined"!==typeof cr_is_preview)for(r.Yl=[],r.Yl.length=e.length,g=0,h=e.length;g<h;g++)r.Yl[g]=e[g][1];r.Ba=[];r.Ba.length=e.length}g=0;for(h=e.length;g<h;g++)r.Ba[g]=e[g][0];if(x){var q=a[0];r.x=ea(f)?q[0]:f;r.y=ea(d)?q[1]:d;r.z=q[2];r.width=q[3];r.height=q[4];r.depth=q[5];r.g=q[6];r.opacity=q[7];r.yb=q[8];r.zb=q[9];r.ib=q[10];g=q[11];!this.u&&m.G.length&&(r.ib=g);r.Bf=Za(r.ib);this.k&&$a(r,r.ib,this.k);if(r.gc){g=0;for(h=q[12].length;g<h;g++)for(e=
0,n=q[12][g].length;e<n;e++)r.ma[g][e]=q[12][g][e];r.bb.set(0,0,0,0);r.Og.set(0,0,-1,-1);r.ie.$h(r.bb);r.Ai.length=0}else{r.ma=q[12].slice(0);g=0;for(h=r.ma.length;g<h;g++)r.ma[g]=q[12][g].slice(0);r.U=[];r.Dd=[];r.Dd.length=m.G.length;r.bb=new ra(0,0,0,0);r.Og=new ra(0,0,-1,-1);r.ie=new sa;r.Ai=[];r.Oa=Ab;r.nt=Bb;r.Ec=Cb;r.hb=Db;r.Ft=Eb;r.Lb=Fb}r.Sr=!1;r.Ur=0;r.Tr=0;r.Rr=null;14===q.length&&(r.Sr=!0,r.Ur=q[13][0],r.Tr=q[13][1],r.Rr=q[13][2]);g=0;for(h=m.G.length;g<h;g++)r.Dd[g]=!0;r.yd=Gb;r.yd();
r.Yn=!!r.U.length;r.yi=!0;r.Ei=!0;m.fl=!0;r.visible=!0;r.ng=-1;r.e=b;r.Fe=b.d.length;"undefined"===typeof r.Dc&&(r.Dc=null);this.ba=r.Af=!0}r.toString=xb;var w;g=z.length=0;for(h=m.ga.length;g<h;g++)z.push.apply(z,m.ga[g].ua);z.push.apply(z,m.ua);if(r.gc)for(g=0,h=z.length;g<h;g++){var F=z[g];w=r.K[g];w.gc=!0;F.ad.ob.call(w,F,r);q=a[4][g];e=0;for(n=q.length;e<n;e++)w.L[e]=q[e];w.ya();F.ad.Qj.add(r)}else for(r.K=[],g=0,h=z.length;g<h;g++)F=z[g],w=new F.ad.ob(F,r),w.gc=!1,w.L=a[4][g].slice(0),w.ya(),
r.K.push(w),F.ad.Qj.add(r);q=a[5];if(r.gc)for(g=0,h=q.length;g<h;g++)r.L[g]=q[g];else r.L=q.slice(0);this.sb.push(r);b&&(b.d.push(r),1!==b.sd||1!==b.td)&&(m.gl=!0);this.Kh++;if(m.uc){if(r.uc=!0,r.gc?r.siblings.length=0:r.siblings=[],!c&&!k){g=0;for(h=m.rb.length;g<h;g++)if(m.rb[g]!==m){if(!m.rb[g].Gc)return null;r.siblings.push(this.ke(m.rb[g].Gc,H,!1,x?r.x:f,x?r.y:d,!0))}g=0;for(h=r.siblings.length;g<h;g++)for(r.siblings[g].siblings.push(r),e=0;e<h;e++)g!==e&&r.siblings[g].siblings.push(r.siblings[e])}}else r.uc=
!1,r.siblings=null;r.ya();g=0;for(h=r.K.length;g<h;g++)r.K[g].nr&&r.K[g].nr();return r};d.prototype.gj=function(a){var b,c;b=0;for(c=this.ka.I.length;b<c;b++){var f=this.ka.I[b];if(bb(f.name,a))return f}return null};d.prototype.Kf=function(a){a=ma(a);0>a&&(a=0);a>=this.ka.I.length&&(a=this.ka.I.length-1);return this.ka.I[a]};d.prototype.Ii=function(a){var b,c;b=0;for(c=a.length;b<c;b++)a[b].ja().na=!0};d.prototype.xg=function(a){var b,c;b=0;for(c=a.length;b<c;b++)a[b].xg()};d.prototype.ek=function(a){var b,
c;b=0;for(c=a.length;b<c;b++)a[b].ek()};d.prototype.gf=function(a){var b,c;b=0;for(c=a.length;b<c;b++)a[b].gf()};d.prototype.gi=function(a,b,c){var f=a.ja(),d,g,k,h,e,n;if(f.na)for(f.na=!1,d=f.d.length=0,h=a.d.length;d<h;d++)k=a.d[d],k.hb(),e=k.e.qb(b,c,!0),n=k.e.qb(b,c,!1),k.Ec(e,n)&&f.d.push(k);else{d=g=0;for(h=f.d.length;d<h;d++)k=f.d[d],k.hb(),e=k.e.qb(b,c,!0),n=k.e.qb(b,c,!1),k.Ec(e,n)&&(f.d[g]=f.d[d],g++);f.d.length=g}a.Fd();return f.mj()};new sa;new ra(0,0,0,0);d.prototype.Pn=function(a,b){if(!b)return!1;
var c,f,d,g,k;c=0;for(f=a.ua.length;c<f;c++)if(a.ua[c].ad instanceof b)return!0;if(!a.S)for(c=0,f=a.ga.length;c<f;c++)for(k=a.ga[c],d=0,g=k.ua.length;d<g;d++)if(k.ua[d].ad instanceof b)return!0;return!1};d.prototype.Qn=function(a){return this.Pn(a,Vb.Ls)};d.prototype.Ek=function(a){return this.Pn(a,Vb.Ms)};var H=-1;d.prototype.trigger=function(a,b,c){if(!this.ka)return!1;var f=this.ka.Ff;if(!f)return!1;var d=!1,g,k,h;H++;var e=f.Ni;k=0;for(h=e.length;k<h;++k)g=this.Mn(a,b,e[k],c),d=d||g;g=this.Mn(a,
b,f,c);H--;return d||g};d.prototype.Mn=function(a,b,c,f){var d=!1,g,k,h,e;if(b)for(h=this.Ck(a,b,b.type.name,c,f),d=d||h,e=b.type.ga,g=0,k=e.length;g<k;++g)h=this.Ck(a,b,e[g].name,c,f),d=d||h;else h=this.Ck(a,b,"system",c,f),d=d||h;return d};d.prototype.Ck=function(a,b,c,f,d){var g,k=!1,h=!1,h="undefined"!==typeof d,e=(h?f.Fl:f.Nn)[c];if(!e)return k;var n=null;f=0;for(g=e.length;f<g;++f)if(e[f].method==a){n=e[f].Gf;break}if(!n)return k;a=h?n[d]:n;if(!a)return null;f=0;for(g=a.length;f<g;f++)d=a[f][0],
h=a[f][1],h=this.Up(b,c,d,h),k=k||h;return k};d.prototype.Up=function(a,b,c,f){var d,g,k=!1;this.Dk++;var h=this.ub().rc;h&&this.xg(h.Xd);var e=1<this.Dk;this.xg(c.Xd);e&&this.sr();var n=this.fk(c);n.rc=c;a&&(d=this.types[b].ja(),d.na=!1,d.d.length=1,d.d[0]=a,this.types[b].Fd());a=!0;if(c.parent){b=n.Fn;for(d=c.parent;d;)b.push(d),d=d.parent;b.reverse();d=0;for(g=b.length;d<g;d++)if(!b[d].Br()){a=!1;break}}a&&(this.Si++,c.Oc?c.Ar(f):c.Ga(),k=k||n.we);this.hn();e&&this.mr();this.gf(c.Xd);h&&this.gf(h.Xd);
0!==this.nd||0!==H||this.wj||this.Fc.tc()&&!this.sb.length||this.Ua();this.Dk--;return k};d.prototype.bj=function(){var a=this.ub();return a.rc.Xa[a.jb]};d.prototype.sr=function(){this.Ih++;this.Ih>=this.Kj.length&&this.Kj.push([])};d.prototype.mr=function(){this.Ih--};d.prototype.Ml=function(){return this.Kj[this.Ih]};d.prototype.fk=function(a){this.Yg++;this.Yg>=this.Qi.length&&this.Qi.push(new Hb);var b=this.ub();b.reset(a);return b};d.prototype.hn=function(){this.Yg--};d.prototype.ub=function(){return this.Qi[this.Yg]};
d.prototype.Nl=function(a,b){for(var c,f,d,g,k,h;b;){c=0;for(f=b.kc.length;c<f;c++)if(h=b.kc[c],h instanceof Ib&&bb(a,h.name))return h;b=b.parent}c=0;for(f=this.jd.length;c<f;c++)for(k=this.jd[c],d=0,g=k.Kd.length;d<g;d++)if(h=k.Kd[d],h instanceof Ib&&bb(a,h.name))return h;return null};d.prototype.Pl=function(a){var b,c;b=0;for(c=this.wc.length;b<c;b++)if(this.wc[b].O===a)return this.wc[b];return null};d.prototype.ih=function(a){var b,c;b=0;for(c=this.m.length;b<c;b++)if(this.m[b].O===a)return this.m[b];
return null};d.prototype.cq=function(a){var b,c;b=0;for(c=this.Ke.length;b<c;b++)if(this.Ke[b].O===a)return this.Ke[b];return null};d.prototype.Cq=function(){var b=this,l=this.rk,f=this.qd,d=this.Dh,g=!1;this.Cn&&(g=!0,l="__c2_continuouspreview",this.Cn=!1);if(l.length){this.Ua();f=this.Fr();if(window.indexedDB&&!this.$b)q(l,f,function(){da("Saved state to IndexedDB storage ("+f.length+" bytes)");b.qd=f;b.trigger(V.prototype.n.si,null);b.qd="";g&&c()},function(a){try{localStorage.setItem("__c2save_"+
l,f),da("Saved state to WebStorage ("+f.length+" bytes)"),b.qd=f,b.trigger(V.prototype.n.si,null),b.qd="",g&&c()}catch(d){da("Failed to save game state: "+a+"; "+d)}});else try{localStorage.setItem("__c2save_"+l,f),da("Saved state to WebStorage ("+f.length+" bytes)"),b.qd=f,this.trigger(V.prototype.n.si,null),b.qd="",g&&c()}catch(k){da("Error saving to WebStorage: "+k)}this.eb=this.Dh=this.rk=""}d.length&&(window.indexedDB&&!this.$b?a(d,function(a){a?(b.eb=a,da("Loaded state from IndexedDB storage ("+
b.eb.length+" bytes)")):(b.eb=localStorage.getItem("__c2save_"+d)||"",da("Loaded state from WebStorage ("+b.eb.length+" bytes)"));b.Fg=!1;b.eb.length||b.trigger(V.prototype.n.ri,null)},function(){b.eb=localStorage.getItem("__c2save_"+d)||"";da("Loaded state from WebStorage ("+b.eb.length+" bytes)");b.Fg=!1;b.eb.length||b.trigger(V.prototype.n.ri,null)}):(this.eb=localStorage.getItem("__c2save_"+d)||"",da("Loaded state from WebStorage ("+this.eb.length+" bytes)"),this.Fg=!1,b.eb.length||b.trigger(V.prototype.n.ri,
null)),this.rk=this.Dh="");this.eb.length&&(this.Ua(),this.Vq(this.eb),this.qd=this.eb,this.trigger(V.prototype.n.so,null),this.eb=this.qd="")};d.prototype.Fr=function(){var a,c,f,d,g,k,h,e={c2save:!0,version:1,rt:{time:this.cc.da,walltime:this.zd.da,timescale:this.pf,tickcount:this.Vc,execcount:this.Si,next_uid:this.pg,running_layout:this.ka.O,start_time_offset:Date.now()-this.ci},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};a=0;for(c=this.m.length;a<c;a++)if(g=this.m[a],!g.S&&
!this.Qn(g)){k={instances:[]};Sa(g.V)&&(k.ex=b(g.V));f=0;for(d=g.d.length;f<d;f++)k.instances.push(this.qk(g.d[f]));e.types[g.O.toString()]=k}a=0;for(c=this.wc.length;a<c;a++)f=this.wc[a],e.layouts[f.O.toString()]=f.Nb();d=e.events.groups;a=0;for(c=this.Ke.length;a<c;a++)f=this.Ke[a],d[f.O.toString()]=this.lh[f.Nf].kh;c=e.events.cnds;for(h in this.Me)this.Me.hasOwnProperty(h)&&(a=this.Me[h],Sa(a.V)&&(c[h]={ex:b(a.V)}));c=e.events.acts;for(h in this.Je)this.Je.hasOwnProperty(h)&&(a=this.Je[h],Sa(a.V)&&
(c[h]={ex:a.V}));c=e.events.vars;for(h in this.uf)this.uf.hasOwnProperty(h)&&(a=this.uf[h],a.qh||a.parent&&!a.Xf||(c[h]=a.data));e.system=this.Uc.Nb();return JSON.stringify(e)};d.prototype.on=function(){var a,b,c,f,d,g;this.Rd={};a=0;for(b=this.m.length;a<b;a++)if(c=this.m[a],!c.S)for(f=0,d=c.d.length;f<d;f++)g=c.d[f],this.Rd[g.uid.toString()]=g};d.prototype.Vq=function(a){a=JSON.parse(a);if(a.c2save&&!(1<a.version)){var b=a.rt;this.cc.reset();this.cc.da=b.time;this.zd.reset();this.zd.da=b.walltime||
0;this.pf=b.timescale;this.Vc=b.tickcount;this.ci=Date.now()-b.start_time_offset;var c=b.running_layout;if(c!==this.ka.O)if(c=this.Pl(c))this.Al(c);else return;var f,d,g,k,h,e,n;e=a.types;for(d in e)if(e.hasOwnProperty(d)&&(k=this.ih(parseInt(d,10)))&&!k.S&&!this.Qn(k)){e[d].ex?k.V=e[d].ex:Ta(k.V);h=k.d;g=e[d].instances;c=0;for(f=ka(h.length,g.length);c<f;c++)this.Eh(h[c],g[c]);c=g.length;for(f=h.length;c<f;c++)this.de(h[c]);c=h.length;for(f=g.length;c<f;c++){h=null;if(k.Ea.Nd&&(h=this.ka.gh(g[c].w.l),
!h))continue;h=this.ke(k.Gc,h,!1,0,0,!0);this.Eh(h,g[c])}k.of=!0}this.Ua();this.on();f=a.layouts;for(d in f)f.hasOwnProperty(d)&&(c=this.Pl(parseInt(d,10)))&&c.xc(f[d]);f=a.events.groups;for(d in f)f.hasOwnProperty(d)&&(c=this.cq(parseInt(d,10)))&&this.lh[c.Nf]&&(this.lh[c.Nf].kh=f[d]);c=a.events.cnds;for(d in c)c.hasOwnProperty(d)&&this.Me.hasOwnProperty(d)&&(this.Me[d].V=c[d].ex);c=a.events.acts;for(d in c)c.hasOwnProperty(d)&&this.Je.hasOwnProperty(d)&&(this.Je[d].V=c[d].ex);c=a.events.vars;for(d in c)c.hasOwnProperty(d)&&
this.uf.hasOwnProperty(d)&&(this.uf[d].data=c[d]);this.pg=b.next_uid;this.Uc.xc(a.system);c=0;for(f=this.m.length;c<f;c++)if(k=this.m[c],!k.S)for(d=0,a=k.d.length;d<a;d++){h=k.d[d];if(k.uc)for(e=h.Mf(),b=h.siblings.length=0,g=k.rb.length;b<g;b++)n=k.rb[b],k!==n&&h.siblings.push(n.d[e]);h.Ed&&h.Ed();if(h.K)for(b=0,g=h.K.length;b<g;b++)e=h.K[b],e.Ed&&e.Ed()}this.ba=!0}};d.prototype.qk=function(a,c){var f,d,g,k,h;k=a.type;g=k.Ea;var e={};c?e.c2=!0:e.uid=a.uid;Sa(a.V)&&(e.ex=b(a.V));if(a.Ba&&a.Ba.length)for(e.ivs=
{},f=0,d=a.Ba.length;f<d;f++)e.ivs[a.type.sj[f].toString()]=a.Ba[f];if(g.Nd){g={x:a.x,y:a.y,w:a.width,h:a.height,l:a.e.O,zi:a.Lb()};0!==a.g&&(g.a=a.g);1!==a.opacity&&(g.o=a.opacity);0.5!==a.yb&&(g.hX=a.yb);0.5!==a.zb&&(g.hY=a.zb);0!==a.ib&&(g.bm=a.ib);a.visible||(g.v=a.visible);a.Af||(g.ce=a.Af);-1!==a.ng&&(g.mts=a.ng);if(k.G.length)for(g.fx=[],f=0,d=k.G.length;f<d;f++)h=k.G[f],g.fx.push({name:h.name,active:a.Dd[h.index],params:a.ma[h.index]});e.w=g}if(a.K&&a.K.length)for(e.behs={},f=0,d=a.K.length;f<
d;f++)k=a.K[f],k.Nb&&(e.behs[k.type.O.toString()]=k.Nb());a.Nb&&(e.data=a.Nb());return e};d.prototype.fq=function(a,b){var c,f;c=0;for(f=a.sj.length;c<f;c++)if(a.sj[c]===b)return c;return-1};d.prototype.aq=function(a,b){var c,f;c=0;for(f=a.K.length;c<f;c++)if(a.K[c].type.O===b)return c;return-1};d.prototype.Eh=function(a,b,c){var f,d,g,k,h;h=a.type;g=h.Ea;if(c){if(!b.c2)return}else a.uid=b.uid;b.ex?a.V=b.ex:Ta(a.V);if(d=b.ivs)for(f in d)d.hasOwnProperty(f)&&(c=this.fq(h,parseInt(f,10)),0>c||c>=a.Ba.length||
(a.Ba[c]=d[f]));if(g.Nd){g=b.w;a.e.O!==g.l&&(c=a.e,a.e=this.ka.gh(g.l),a.e?(a.e.d.push(a),a.e.Ib=!0,ya(c.d,a),c.Ib=!0):(a.e=c,this.de(a)));a.x=g.x;a.y=g.y;a.width=g.w;a.height=g.h;a.Fe=g.zi;a.g=g.hasOwnProperty("a")?g.a:0;a.opacity=g.hasOwnProperty("o")?g.o:1;a.yb=g.hasOwnProperty("hX")?g.hX:0.5;a.zb=g.hasOwnProperty("hY")?g.hY:0.5;a.visible=g.hasOwnProperty("v")?g.v:!0;a.Af=g.hasOwnProperty("ce")?g.ce:!0;a.ng=g.hasOwnProperty("mts")?g.mts:-1;a.ib=g.hasOwnProperty("bm")?g.bm:0;a.Bf=Za(a.ib);this.k&&
$a(a,a.ib,this.k);a.Oa();if(g.hasOwnProperty("fx"))for(c=0,d=g.fx.length;c<d;c++)k=h.ej(g.fx[c].name),0>k||(a.Dd[k]=g.fx[c].active,a.ma[k]=g.fx[c].params);a.yd()}if(h=b.behs)for(f in h)h.hasOwnProperty(f)&&(g=this.aq(a,parseInt(f,10)),0>g||a.K[g].xc(h[f]));b.data&&a.xc(b.data)};Jb=function(a){return new d(document.getElementById(a))};Kb=function(a,b){return new d({dc:!0,width:a,height:b})};window.cr_createRuntime=Jb;window.cr_createDCRuntime=Kb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=
!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.Bt=!0;document.body.appendChild(a);a=new d(a);window.c2runtime=a;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a};window.createEjectaRuntime=function(){var a=new d(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);
return a}})();window.cr_getC2Runtime=function(){var e=document.getElementById("c2canvas");return e?e.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_sizeCanvas=function(e,m){if(0!==e&&0!==m){var d=window.cr_getC2Runtime();d&&d.setSize(e,m)}};window.cr_setSuspended=function(e){var m=window.cr_getC2Runtime();m&&m.setSuspended(e)};
(function(){function e(a,c){this.b=a;this.Ff=null;this.scrollX=this.b.La/2;this.scrollY=this.b.Ka/2;this.scale=1;this.g=0;this.Jf=!0;this.name=c[0];this.width=c[1];this.height=c[2];this.Rn=c[3];this.zn=c[4];this.O=c[5];var b=c[6],f,d;this.I=[];this.Rf=[];f=0;for(d=b.length;f<d;f++){var h=new Lb(this,b[f]);h.Lm=f;this.I.push(h)}b=c[7];this.se=[];f=0;for(d=b.length;f<d;f++){var h=b[f],g=this.b.m[h[1]];g.Gc||(g.Gc=h);this.se.push(h);-1===this.Rf.indexOf(g)&&this.Rf.push(g)}this.G=[];this.U=[];this.ma=
[];f=0;for(d=c[8].length;f<d;f++)this.G.push({id:c[8][f][0],name:c[8][f][1],Ra:-1,Va:!0,index:f}),this.ma.push(c[8][f][2].slice(0));this.yd();this.jf=new ra(0,0,1,1);this.ik=new ra(0,0,1,1);this.Sd={}}function m(a,c){return a.Fe-c.Fe}function d(a,c){this.ea=a;this.b=a.b;this.d=[];this.scale=1;this.g=0;this.le=!1;this.xd=new ra(0,0,0,0);this.Ln=new sa;this.Fb=this.Ta=this.Gb=this.Sa=0;this.Ib=!1;this.name=c[0];this.index=c[1];this.O=c[2];this.visible=c[3];this.Gd=c[4];this.Ee=c[5];this.sd=c[6];this.td=
c[7];this.opacity=c[8];this.Xi=c[9];this.Cd=c[10];this.ib=c[11];this.up=c[12];this.Bf="source-over";this.Ya=this.$a=0;this.Vd=!1;var b=c[13],f,d;this.Re=[];f=0;for(d=b.length;f<d;f++){var h=b[f],g=this.b.m[h[1]];g.Gc||(g.Gc=h,g.fp=this.index);this.Re.push(h);-1===this.ea.Rf.indexOf(g)&&this.ea.Rf.push(g)}this.G=[];this.U=[];this.ma=[];f=0;for(d=c[14].length;f<d;f++)this.G.push({id:c[14][f][0],name:c[14][f][1],Ra:-1,Va:!0,index:f}),this.ma.push(c[14][f][2].slice(0));this.yd();this.jf=new ra(0,0,1,
1);this.ik=new ra(0,0,1,1)}e.prototype.Er=function(a){var c=a.type.O.toString();this.Sd.hasOwnProperty(c)||(this.Sd[c]=[]);this.Sd[c].push(this.b.qk(a))};e.prototype.Sl=function(){var a=this.I[0];return!a.Ee&&1===a.opacity&&!a.Xi&&a.visible};e.prototype.yd=function(){this.U.length=0;var a,c,b;a=0;for(c=this.G.length;a<c;a++)b=this.G[a],b.Va&&this.U.push(b)};e.prototype.dj=function(a){var c,b,f;c=0;for(b=this.G.length;c<b;c++)if(f=this.G[c],f.name===a)return f;return null};var n=[],q=!0;e.prototype.wk=
function(){this.zn&&(this.Ff=this.b.Ri[this.zn],this.Ff.Vn());this.b.ka=this;this.scrollX=this.b.La/2;this.scrollY=this.b.Ka/2;var a,c,b,f,d,h,g;a=0;for(b=this.b.m.length;a<b;a++)if(c=this.b.m[a],!c.S)for(d=c.d,c=0,f=d.length;c<f;c++)if(h=d[c],h.e){var e=h.e.Lm;e>=this.I.length&&(e=this.I.length-1);h.e=this.I[e];-1===h.e.d.indexOf(h)&&h.e.d.push(h);h.e.Ib=!0}if(!q)for(a=0,b=this.I.length;a<b;++a)this.I[a].d.sort(m);n.length=0;this.Ro();a=0;for(b=this.I.length;a<b;a++)h=this.I[a],h.dp(),h.le=!0,c=
h.qb(0,0,!0,!0),f=h.qb(0,0,!1,!0),h.le=!1,this.b.Td&&(c=Math.round(c),f=Math.round(f)),h.lk(c,f,null);d=!1;if(!this.Jf){for(g in this.Sd)if(this.Sd.hasOwnProperty(g)&&(c=this.b.ih(parseInt(g,10)))&&!c.S&&this.b.Ek(c)){f=this.Sd[g];a=0;for(b=f.length;a<b;a++){h=null;if(c.Ea.Nd&&(h=this.gh(f[a].w.l),!h))continue;h=this.b.ke(c.Gc,h,!1,0,0,!0);this.b.Eh(h,f[a]);d=!0;n.push(h)}f.length=0}a=0;for(b=this.I.length;a<b;a++)this.I[a].d.sort(m),this.I[a].Ib=!0}d&&(this.b.Ua(),this.b.on());for(a=0;a<n.length;a++)if(h=
n[a],h.type.uc)for(b=h.Mf(),c=0,f=h.type.rb.length;c<f;c++)g=h.type.rb[c],h.type!==g&&(g.d.length>b?h.siblings.push(g.d[b]):g.Gc&&(d=this.b.ke(g.Gc,h.e,!0,h.x,h.y,!0),this.b.Ua(),g.ni(),h.siblings.push(d),n.push(d)));a=0;for(b=this.se.length;a<b;a++)this.b.ke(this.se[a],null,!0);this.b.Hi=null;this.b.Ua();if(this.b.aa&&!this.b.Ca)for(a=0,b=this.b.m.length;a<b;a++)g=this.b.m[a],!g.S&&g.d.length&&g.kn&&g.kn(this.b.aa);a=0;for(b=n.length;a<b;a++)h=n[a],this.b.trigger(Object.getPrototypeOf(h.type.Ea).n.lo,
h);n.length=0;this.b.trigger(V.prototype.n.Ok,null);this.Jf=!1};e.prototype.cp=function(){var a,c,b,f,d;c=a=0;for(b=this.se.length;a<b;a++)f=this.se[a],d=this.b.m[f[1]],d.global?this.b.ke(f,null,!0):(this.se[c]=f,c++);this.se.length=c};e.prototype.Or=function(){this.b.trigger(V.prototype.n.ro,null);this.b.Uc.Hb.length=0;var a,c,b,f,d,h;a=0;for(c=this.I.length;a<c;a++)for(this.I[a].Xn(),d=this.I[a].d,b=0,f=d.length;b<f;b++)h=d[b],h.type.global||this.b.Ek(h.type)&&this.Er(h);a=0;for(c=this.I.length;a<
c;a++){d=this.I[a].d;b=0;for(f=d.length;b<f;b++)h=d[b],h.type.global||this.b.de(h);this.b.Ua();d.length=0;this.I[a].Ib=!0}a=0;for(c=this.b.m.length;a<c;a++)if(d=this.b.m[a],!(d.global||d.Ea.Nd||d.Ea.ai||d.S)){b=0;for(f=d.d.length;b<f;b++)this.b.de(d.d[b]);this.b.Ua()}q=!1};e.prototype.gd=function(a){var c,b=a,f=!1,d=!this.b.Zb;d&&(this.b.Ch||(this.b.Ch=document.createElement("canvas"),c=this.b.Ch,c.width=this.b.N,c.height=this.b.M,this.b.mm=c.getContext("2d"),f=!0),c=this.b.Ch,b=this.b.mm,c.width!==
this.b.N&&(c.width=this.b.N,f=!0),c.height!==this.b.M&&(c.height=this.b.M,f=!0),f&&(b.webkitImageSmoothingEnabled=this.b.Y,b.mozImageSmoothingEnabled=this.b.Y,b.msImageSmoothingEnabled=this.b.Y,b.imageSmoothingEnabled=this.b.Y));b.globalAlpha=1;b.globalCompositeOperation="source-over";this.b.vi&&!this.Sl()&&b.clearRect(0,0,this.b.N,this.b.M);var h,g,f=0;for(h=this.I.length;f<h;f++)g=this.I[f],g.visible&&0<g.opacity&&11!==g.ib&&g.gd(b);d&&a.drawImage(c,0,0,this.b.width,this.b.height)};e.prototype.sc=
function(a){var c=0<this.U.length||this.b.rf||!this.b.Zb;if(c){this.b.Bb||(this.b.Bb=a.bd(this.b.N,this.b.M,this.b.Y));if(this.b.Bb.zf!==this.b.N||this.b.Bb.yf!==this.b.M)a.deleteTexture(this.b.Bb),this.b.Bb=a.bd(this.b.N,this.b.M,this.b.Y);a.Sc(this.b.Bb);this.b.Zb||a.mf(this.b.N,this.b.M)}else this.b.Bb&&(a.Sc(null),a.deleteTexture(this.b.Bb),this.b.Bb=null);this.b.vi&&!this.Sl()&&a.clear(0,0,0,0);var b,f;b=0;for(f=this.I.length;b<f;b++)this.I[b].visible&&0<this.I[b].opacity&&this.I[b].sc(a);c&&
(0===this.U.length||1===this.U.length&&this.b.Zb?(1===this.U.length?(c=this.U[0].index,a.Tc(this.U[0].Ra),a.lf(null,1/this.b.N,1/this.b.M,0,0,1,1,this.scale,this.g,0,0,this.ma[c]),a.Th(this.U[0].Ra)&&(this.b.ba=!0)):a.Tc(0),this.b.Zb||a.mf(this.b.width,this.b.height),a.Sc(null),a.kf(1),a.Ob(this.b.Bb),a.un(),a.Qc(),a.Xc(),c=this.b.width/2,b=this.b.height/2,a.Vh(-c,b,c,b,c,-b,-c,-b),a.Ob(null)):this.jk(a,null,null,null))};e.prototype.Lf=function(){return 0<this.U.length||this.b.rf||!this.b.Zb?this.b.Bb:
null};e.prototype.Ql=function(){var a=this.I[0].wb(),c,b,f;c=1;for(b=this.I.length;c<b;c++)f=this.I[c],(0!==f.sd||0!==f.td)&&f.wb()<a&&(a=f.wb());return a};e.prototype.sn=function(a){if(!this.Rn){var c=this.b.N*(1/this.Ql())/2;a>this.width-c&&(a=this.width-c);a<c&&(a=c)}this.scrollX!==a&&(this.scrollX=a,this.b.ba=!0)};e.prototype.tn=function(a){if(!this.Rn){var c=this.b.M*(1/this.Ql())/2;a>this.height-c&&(a=this.height-c);a<c&&(a=c)}this.scrollY!==a&&(this.scrollY=a,this.b.ba=!0)};e.prototype.Ro=
function(){this.sn(this.scrollX);this.tn(this.scrollY)};e.prototype.jk=function(a,c,b,f){var d=b?b.U:c?c.U:this.U,h=1,g=0,e=0,n=0;b?(h=b.e.wb(),g=b.e.xa(),e=b.e.Sa,n=b.e.Ta):c&&(h=c.wb(),g=c.xa(),e=c.Sa,n=c.Ta);var m=this.b.$i,p,l,u,t,v=0,A=1,q,y=this.b.N,G=this.b.M,U=y/2,I=G/2,K=c?c.jf:this.jf,J=c?c.ik:this.ik,r=0,E=0,w=0,F=0,B=y,D=y,s=G,Z=G,C=u=0,M=b?b.e.xa():0;if(b){p=0;for(l=d.length;p<l;p++)u+=a.jq(d[p].Ra),C+=a.kq(d[p].Ra);t=b.bb;r=c.Da(t.left,t.top,!0);w=c.Da(t.left,t.top,!1);B=c.Da(t.right,
t.bottom,!0);s=c.Da(t.right,t.bottom,!1);0!==M&&(p=c.Da(t.right,t.top,!0),l=c.Da(t.right,t.top,!1),E=c.Da(t.left,t.bottom,!0),F=c.Da(t.left,t.bottom,!1),t=Math.min(r,B,p,E),B=Math.max(r,B,p,E),r=t,t=Math.min(w,s,l,F),s=Math.max(w,s,l,F),w=t);r-=u;w-=C;B+=u;s+=C;J.left=r/y;J.top=1-w/G;J.right=B/y;J.bottom=1-s/G;E=r=ma(r);F=w=ma(w);D=B=pa(B);Z=s=pa(s);E-=u;F-=C;D+=u;Z+=C;0>r&&(r=0);0>w&&(w=0);B>y&&(B=y);s>G&&(s=G);0>E&&(E=0);0>F&&(F=0);D>y&&(D=y);Z>G&&(Z=G);K.left=r/y;K.top=1-w/G;K.right=B/y;K.bottom=
1-s/G}else K.left=J.left=0,K.top=J.top=0,K.right=J.right=1,K.bottom=J.bottom=1;C=b&&((b.g||M)&&a.vg(d[0].Ra)||0!==u||0!==C||1!==b.opacity||b.type.Ea.Gm)||c&&!b&&1!==c.opacity;a.un();if(C){m[v]||(m[v]=a.bd(y,G,this.b.Y));if(m[v].zf!==y||m[v].yf!==G)a.deleteTexture(m[v]),m[v]=a.bd(y,G,this.b.Y);a.Tc(0);a.Sc(m[v]);q=Z-F;a.clearRect(E,G-F-q,D-E,q);b?b.sc(a):(a.Ob(this.b.Mb),a.kf(c.opacity),a.Qc(),a.translate(-U,-I),a.Xc(),a.Ud(r,s,B,s,B,w,r,w,K));J.left=J.top=0;J.right=J.bottom=1;b&&(t=K.top,K.top=K.bottom,
K.bottom=t);v=1;A=0}a.kf(1);u=d.length-1;var M=a.dk(d[u].Ra)||!c&&!b&&!this.b.Zb,Q=0;p=0;for(l=d.length;p<l;p++){m[v]||(m[v]=a.bd(y,G,this.b.Y));if(m[v].zf!==y||m[v].yf!==G)a.deleteTexture(m[v]),m[v]=a.bd(y,G,this.b.Y);a.Tc(d[p].Ra);Q=d[p].index;a.Th(d[p].Ra)&&(this.b.ba=!0);0!=p||C?(a.lf(f,1/y,1/G,J.left,J.top,J.right,J.bottom,h,g,e,n,b?b.ma[Q]:c?c.ma[Q]:this.ma[Q]),a.Ob(null),p!==u||M?(a.Sc(m[v]),q=Z-F,t=G-F-q,a.clearRect(E,t,D-E,q)):(b?a.Wd(b.$a,b.Ya):c&&a.Wd(c.$a,c.Ya),a.Sc(f)),a.Ob(m[A]),a.Qc(),
a.translate(-U,-I),a.Xc(),a.Ud(r,s,B,s,B,w,r,w,K),p!==u||M||a.Ob(null)):(a.Sc(m[v]),q=Z-F,t=G-F-q,a.clearRect(E,t,D-E,q),b?(a.lf(f,1/b.width,1/b.height,J.left,J.top,J.right,J.bottom,h,g,e,n,b.ma[Q]),b.sc(a)):(a.lf(f,1/y,1/G,0,0,1,1,h,g,e,n,c?c.ma[Q]:this.ma[Q]),a.Ob(c?this.b.Mb:this.b.Bb),a.Qc(),a.translate(-U,-I),a.Xc(),a.Ud(r,s,B,s,B,w,r,w,K)),J.left=J.top=0,J.right=J.bottom=1,b&&!M&&(t=s,s=w,w=t));v=0===v?1:0;A=0===v?1:0}M&&(a.Tc(0),b?a.Wd(b.$a,b.Ya):c?a.Wd(c.$a,c.Ya):this.b.Zb||(a.mf(this.b.width,
this.b.height),U=this.b.width/2,I=this.b.height/2,w=r=0,B=this.b.width,s=this.b.height),a.Sc(f),a.Ob(m[A]),a.Qc(),a.translate(-U,-I),a.Xc(),b&&1===d.length&&!C?a.Ud(r,w,B,w,B,s,r,s,K):a.Ud(r,s,B,s,B,w,r,w,K),a.Ob(null))};e.prototype.gh=function(a){var c,b;c=0;for(b=this.I.length;c<b;c++)if(this.I[c].O===a)return this.I[c];return null};e.prototype.Nb=function(){var a,c,b,f={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.g,w:this.width,h:this.height,fv:this.Jf,persist:this.Sd,fx:[],layers:{}};
a=0;for(c=this.G.length;a<c;a++)b=this.G[a],f.fx.push({name:b.name,active:b.Va,params:this.ma[b.index]});a=0;for(c=this.I.length;a<c;a++)b=this.I[a],f.layers[b.O.toString()]=b.Nb();return f};e.prototype.xc=function(a){var c,b,f,d;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.g=a.a;this.width=a.w;this.height=a.h;this.Sd=a.persist;"undefined"!==typeof a.fv&&(this.Jf=a.fv);var h=a.fx;c=0;for(b=h.length;c<b;c++)if(f=this.dj(h[c].name))f.Va=h[c].active,this.ma[f.index]=h[c].params;this.yd();
c=a.layers;for(d in c)c.hasOwnProperty(d)&&(a=this.gh(parseInt(d,10)))&&a.xc(c[d])};yb=e;d.prototype.yd=function(){this.U.length=0;var a,c,b;a=0;for(c=this.G.length;a<c;a++)b=this.G[a],b.Va&&this.U.push(b)};d.prototype.dj=function(a){var c,b,f;c=0;for(b=this.G.length;c<b;c++)if(f=this.G[c],f.name===a)return f;return null};d.prototype.dp=function(){var a,c,b,f,d,h;c=a=0;for(b=this.Re.length;a<b;a++){f=this.Re[a];d=this.b.m[f[1]];h=this.b.Ek(d);d=!0;if(!h||this.ea.Jf)f=this.b.ke(f,this,!0),n.push(f),
f.type.global&&(d=!1);d&&(this.Re[c]=this.Re[a],c++)}this.Re.length=c;this.b.Ua();!this.b.u&&this.G.length&&(this.ib=this.up);this.Bf=Za(this.ib);this.b.k&&$a(this,this.ib,this.b.k)};d.prototype.Xn=function(){if(this.Ib){var a,c;a=0;for(c=this.d.length;a<c;a++)this.d[a].Fe=a;this.Ib=!1}};d.prototype.wb=function(a){return this.gq()*(this.b.Zb||a?this.b.xf:1)};d.prototype.gq=function(){return(this.scale*this.ea.scale-1)*this.Cd+1};d.prototype.xa=function(){return this.le?0:Ea(this.ea.g+this.g)};d.prototype.gd=
function(a){this.Vd=this.Xi||1!==this.opacity||0!==this.ib;var c=this.b.canvas,b=a,f=!1;this.Vd&&(this.b.Bh||(this.b.Bh=document.createElement("canvas"),c=this.b.Bh,c.width=this.b.N,c.height=this.b.M,this.b.lm=c.getContext("2d"),f=!0),c=this.b.Bh,b=this.b.lm,c.width!==this.b.N&&(c.width=this.b.N,f=!0),c.height!==this.b.M&&(c.height=this.b.M,f=!0),f&&(b.webkitImageSmoothingEnabled=this.b.Y,b.mozImageSmoothingEnabled=this.b.Y,b.msImageSmoothingEnabled=this.b.Y,b.imageSmoothingEnabled=this.b.Y),this.Ee&&
b.clearRect(0,0,this.b.N,this.b.M));b.globalAlpha=1;b.globalCompositeOperation="source-over";this.Ee||(b.fillStyle="rgb("+this.Gd[0]+","+this.Gd[1]+","+this.Gd[2]+")",b.fillRect(0,0,this.b.N,this.b.M));b.save();this.le=!0;var f=this.qb(0,0,!0,!0),d=this.qb(0,0,!1,!0);this.le=!1;this.b.Td&&(f=Math.round(f),d=Math.round(d));this.lk(f,d,b);var h=this.wb();b.scale(h,h);b.translate(-f,-d);for(var g,f=0,d=this.d.length;f<d;f++)h=this.d[f],h.visible&&0!==h.width&&0!==h.height&&(h.hb(),g=h.bb,g.right<this.Sa||
g.bottom<this.Ta||g.left>this.Gb||g.top>this.Fb||(b.globalCompositeOperation=h.Bf,h.gd(b)));b.restore();this.Vd&&(a.globalCompositeOperation=this.Bf,a.globalAlpha=this.opacity,a.drawImage(c,0,0))};d.prototype.lk=function(a,c,b){var f=this.wb();this.Sa=a;this.Ta=c;this.Gb=a+this.b.N*(1/f);this.Fb=c+this.b.M*(1/f);a=this.xa();0!==a&&(b&&(b.translate(this.b.N/2,this.b.M/2),b.rotate(-a),b.translate(this.b.N/-2,this.b.M/-2)),this.xd.set(this.Sa,this.Ta,this.Gb,this.Fb),this.xd.offset((this.Sa+this.Gb)/
-2,(this.Ta+this.Fb)/-2),this.Ln.xn(this.xd,a),this.Ln.nl(this.xd),this.xd.offset((this.Sa+this.Gb)/2,(this.Ta+this.Fb)/2),this.Sa=this.xd.left,this.Ta=this.xd.top,this.Gb=this.xd.right,this.Fb=this.xd.bottom)};d.prototype.sc=function(a){var c=this.b.N,b=this.b.M,f=0,d=0;if(this.Vd=this.Xi||1!==this.opacity||0<this.U.length||0!==this.ib){this.b.Mb||(this.b.Mb=a.bd(this.b.N,this.b.M,this.b.Y));if(this.b.Mb.zf!==this.b.N||this.b.Mb.yf!==this.b.M)a.deleteTexture(this.b.Mb),this.b.Mb=a.bd(this.b.N,this.b.M,
this.b.Y);a.Sc(this.b.Mb);this.Ee&&a.clear(0,0,0,0)}this.Ee||a.clear(this.Gd[0]/255,this.Gd[1]/255,this.Gd[2]/255,1);this.le=!0;var d=this.qb(0,0,!0,!0),h=this.qb(0,0,!1,!0);this.le=!1;this.b.Td&&(d=Math.round(d),h=Math.round(h));this.lk(d,h,null);h=this.wb();a.Qc();a.scale(h,h);a.mk(-this.xa());a.translate((this.Sa+this.Gb)/-2,(this.Ta+this.Fb)/-2);a.Xc();var g,e,n;g=0;for(e=this.d.length;g<e;g++)if(n=this.d[g],n.visible&&0!==n.width&&0!==n.height&&(n.hb(),f=n.bb,!(f.right<this.Sa||f.bottom<this.Ta||
f.left>this.Gb||f.top>this.Fb)))if(n.Yn)if(f=n.U[0].Ra,d=n.U[0].index,1!==n.U.length||a.dk(f)||a.rr(f)||(n.g||n.e.xa())&&a.vg(f)||1!==n.opacity||n.type.Ea.Gm)this.ea.jk(a,this,n,this.Vd?this.b.Mb:this.ea.Lf()),a.Qc(),a.scale(h,h),a.mk(-this.xa()),a.translate((this.Sa+this.Gb)/-2,(this.Ta+this.Fb)/-2),a.Xc();else{a.Tc(f);a.Wd(n.$a,n.Ya);a.Th(f)&&(this.b.ba=!0);var m=0,p=0,l=0,u=0;a.vg(f)&&(f=n.bb,m=this.Da(f.left,f.top,!0),p=this.Da(f.left,f.top,!1),l=this.Da(f.right,f.bottom,!0),f=this.Da(f.right,
f.bottom,!1),m/=c,p=1-p/b,l/=c,u=1-f/b);a.lf(this.Vd?this.b.Mb:this.ea.Lf(),1/n.width,1/n.height,m,p,l,u,this.wb(),this.xa(),this.Sa,this.Ta,n.ma[d]);n.sc(a)}else a.Tc(0),a.Wd(n.$a,n.Ya),n.sc(a);this.Vd&&(f=this.U.length?this.U[0].Ra:0,d=this.U.length?this.U[0].index:0,0===this.U.length||1===this.U.length&&!a.dk(f)&&1===this.opacity?(1===this.U.length?(a.Tc(f),a.lf(this.ea.Lf(),1/this.b.N,1/this.b.M,0,0,1,1,this.wb(),this.xa(),this.Sa,this.Ta,this.ma[d]),a.Th(f)&&(this.b.ba=!0)):a.Tc(0),a.Sc(this.ea.Lf()),
a.kf(this.opacity),a.Ob(this.b.Mb),a.Wd(this.$a,this.Ya),a.Qc(),a.Xc(),c=this.b.N/2,b=this.b.M/2,a.Vh(-c,b,c,b,c,-b,-c,-b),a.Ob(null)):this.ea.jk(a,this,null,this.ea.Lf()))};d.prototype.qb=function(a,c,b,f){var d=this.b.devicePixelRatio;this.b.Ue&&(a*=d,c*=d);var d=this.b.cn,h=this.b.dn,d=(this.ea.scrollX-d)*this.sd+d,h=(this.ea.scrollY-h)*this.td+h,g=1/this.wb(!f);f?(d-=this.b.N*g/2,h-=this.b.M*g/2):(d-=this.b.width*g/2,h-=this.b.height*g/2);d+=a*g;h+=c*g;c=this.xa();0!==c&&(d-=this.ea.scrollX,h-=
this.ea.scrollY,a=Math.cos(c),c=Math.sin(c),f=d*a-h*c,h=h*a+d*c,d=f+this.ea.scrollX,h+=this.ea.scrollY);return b?d:h};d.prototype.Da=function(a,c,b){var d=this.xa();if(0!==d){a-=this.ea.scrollX;c-=this.ea.scrollY;var k=Math.cos(-d),d=Math.sin(-d),h=a*k-c*d;c=c*k+a*d;a=h+this.ea.scrollX;c+=this.ea.scrollY}k=this.b.cn;d=this.b.dn;k=(this.ea.scrollX-k)*this.sd+k;d=(this.ea.scrollY-d)*this.td+d;h=1/this.wb(!1);k-=this.b.N*h/2;d-=this.b.M*h/2;k=(a-k)/h;return b?k:(c-d)/h};d.prototype.Nb=function(){var a,
c,b,d={s:this.scale,a:this.g,vl:this.Sa,vt:this.Ta,vr:this.Gb,vb:this.Fb,v:this.visible,bc:this.Gd,t:this.Ee,px:this.sd,py:this.td,o:this.opacity,zr:this.Cd,fx:[],instances:[]};a=0;for(c=this.G.length;a<c;a++)b=this.G[a],d.fx.push({name:b.name,active:b.Va,params:this.ma[b.index]});return d};d.prototype.xc=function(a){var c,b;this.scale=a.s;this.g=a.a;this.Sa=a.vl;this.Ta=a.vt;this.Gb=a.vr;this.Fb=a.vb;this.visible=a.v;this.Gd=a.bc;this.Ee=a.t;this.sd=a.px;this.td=a.py;this.opacity=a.o;this.Cd=a.zr;
var d=a.fx;a=0;for(c=d.length;a<c;a++)if(b=this.dj(d[a].name))b.Va=d[a].active,this.ma[b.index]=d[a].params;this.yd();this.d.sort(m);this.Ib=!0};Lb=d})();
(function(){function e(a,b){var c,d=a.length;switch(d){case 0:return!0;case 1:return a[0]===b[0];case 2:return a[0]===b[0]&&a[1]===b[1];default:for(c=0;c<d;c++)if(a[c]!==b[c])return!1;return!0}}function m(a,b){return a.index-b.index}function d(a){var b,c,d,f;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(m);a.length>=z.length&&(z.length=a.length+1);z[a.length]||(z[a.length]=[]);f=z[a.length];b=0;for(c=f.length;b<c;b++)if(d=f[b],e(a,d))return d;f.push(a);return a}
function n(a,b){this.b=a;this.Nn={};this.Fl={};this.nj=!1;this.Ul=new ca;this.Ni=[];this.wi=[];this.name=b[0];var c=b[1];this.Kd=[];var d,f;d=0;for(f=c.length;d<f;d++)this.Wl(c[d],null,this.Kd)}function q(a){this.type=a;this.d=[];this.X=[];this.na=!0}function a(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.ta=[];this.Xd=[];this.Tl=this.ki=this.Bk=this.rj=this.group=this.Dn=!1;this.Xa=[];this.pc=[];this.kc=[];this.Nf="";this.kh=this.rj=this.group=!1;this.wl=null;c[1]&&(this.Nf=c[1][1].toLowerCase(),
this.group=!0,this.rj=!!c[1][0],this.wl=[],this.kh=this.rj,this.b.Ke.push(this),this.b.lh[this.Nf]=this);this.Oc=c[2];this.O=c[4];this.group||(this.b.ml[this.O.toString()]=this);var d=c[5];a=0;for(b=d.length;a<b;a++){var f=new Mb(this,d[a]);f.index=a;this.Xa.push(f);this.bl(f.type)}d=c[6];a=0;for(b=d.length;a<b;a++)f=new Nb(this,d[a]),f.index=a,this.pc.push(f);if(8===c.length)for(c=c[7],a=0,b=c.length;a<b;a++)this.sheet.Wl(c[a],this,this.kc);this.rh=!1;this.Xa.length&&(this.rh=null==this.Xa[0].type&&
this.Xa[0].Pa==V.prototype.n.bo)}function c(a,b){var c,d,f;if(a&&(-1===b.indexOf(a)&&b.push(a),a.uc))for(c=0,d=a.rb.length;c<d;c++)f=a.rb[c],a!==f&&-1===b.indexOf(f)&&b.push(f)}function b(a,b){this.Jb=a;this.sheet=a.sheet;this.b=a.b;this.J=[];this.ca=[];this.V={};this.index=-1;this.wf=!1;this.Pa=b[1];this.trigger=0<b[3];this.El=2===b[3];this.rd=b[4];this.tj=b[5];this.Uq=b[6];this.O=b[7];this.b.Me[this.O.toString()]=this;-1===b[0]?(this.type=null,this.Ga=this.pk,this.he=null,this.Qb=-1):(this.type=
this.b.m[b[0]],this.Ga=this.Uq?this.Cr:this.ok,b[2]?(this.he=this.type.fh(b[2]),this.Qb=this.type.aj(b[2])):(this.he=null,this.Qb=-1),this.Jb.parent&&this.Jb.parent.Zh());this.El&&(this.Ga=this.Dr);if(10===b.length){var c,d,f=b[9];c=0;for(d=f.length;c<d;c++){var g=new Ob(this,f[c]);this.J.push(g)}this.ca.length=f.length}}function f(a,b){this.Jb=a;this.sheet=a.sheet;this.b=a.b;this.J=[];this.ca=[];this.V={};this.index=-1;this.wf=!1;this.Pa=b[1];-1===b[0]?(this.type=null,this.Ga=this.pk,this.he=null,
this.Qb=-1):(this.type=this.b.m[b[0]],this.Ga=this.ok,b[2]?(this.he=this.type.fh(b[2]),this.Qb=this.type.aj(b[2])):(this.he=null,this.Qb=-1));this.O=b[3];this.b.Je[this.O.toString()]=this;if(6===b.length){var c,d,f=b[5];c=0;for(d=f.length;c<d;c++){var g=new Ob(this,f[c]);this.J.push(g)}this.ca.length=f.length}}function k(a,b){this.A=a;this.Jb=a.Jb;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.Hc=null;this.Yd=0;this.get=null;this.ul=0;this.ea=null;this.key=0;this.object=null;this.index=0;this.Jg=
this.Ce=this.Jg=this.Ce=this.Gl=this.ne=this.Kg=null;this.nc=!1;var c,d,f;switch(b[0]){case 0:case 7:this.Hc=new Pb(this,b[1]);this.Yd=0;this.get=this.pq;break;case 1:this.Hc=new Pb(this,b[1]);this.Yd=0;this.get=this.qq;break;case 5:this.Hc=new Pb(this,b[1]);this.Yd=0;this.get=this.uq;break;case 3:case 8:this.ul=b[1];this.get=this.nq;break;case 6:this.ea=this.b.Fj[b[1]];this.get=this.vq;break;case 9:this.key=b[1];this.get=this.tq;break;case 4:this.object=this.b.m[b[1]];this.get=this.wq;this.Jb.bl(this.object);
this.A instanceof Nb?this.Jb.Zh():this.Jb.parent&&this.Jb.parent.Zh();break;case 10:this.index=b[1];a.type.S?(this.get=this.rq,this.nc=!0):this.get=this.sq;break;case 11:this.Kg=b[1];this.ne=null;this.get=this.oq;break;case 2:case 12:this.Gl=b[1];this.get=this.mq;break;case 13:for(this.get=this.xq,this.Ce=[],this.Jg=[],c=1,d=b.length;c<d;c++)f=new Ob(this.A,b[c]),this.Ce.push(f),this.Jg.push(0)}}function h(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.ta=[];this.name=c[1];this.as=c[2];this.qj=
c[3];this.Xf=!!c[4];this.qh=!!c[5];this.O=c[6];this.b.uf[this.O.toString()]=this;this.data=this.qj;this.parent?(this.ze=this.Xf||this.qh?-1:this.b.Mr++,this.b.No.push(this)):(this.ze=-1,this.b.Mo.push(this))}function g(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.ta=[];this.Qf=null;this.Fq=c[1];this.Va=!0}function x(){this.Fn=[];this.reset(null)}var z=[];n.prototype.toString=L("name");n.prototype.Wl=function(a,b,c){switch(a[0]){case 0:a=new Qb(this,b,a);if(a.Oc)for(c.push(a),c=0,b=a.Xa.length;c<
b;c++)a.Xa[c].trigger&&this.Xl(a,c);else a.em()?this.Xl(a,0):c.push(a);break;case 1:a=new Ib(this,b,a);c.push(a);break;case 2:a=new Rb(this,b,a),c.push(a)}};n.prototype.ra=function(){var a,b;a=0;for(b=this.Kd.length;a<b;a++)this.Kd[a].ra(a<b-1&&this.Kd[a+1].rh)};n.prototype.Vn=function(){this.Ni.length=0;this.wi.length=0;this.al(this);this.wi.length=0};n.prototype.al=function(a){var b,c,d,f,g=a.Ni,k=a.wi,h=this.Ul.sf();b=0;for(c=h.length;b<c;++b)d=h[b],f=d.Qf,!d.Va||a===f||-1<k.indexOf(f)||(k.push(f),
f.al(a),g.push(f))};n.prototype.Ga=function(a){this.b.At||(this.nj=!0,a||(this.b.wj=!0));var b,c;b=0;for(c=this.Kd.length;b<c;b++){var d=this.Kd[b];d.Ga();this.b.Ii(d.ta);this.b.Fc.tc()&&!this.b.sb.length||this.b.Ua()}a||(this.b.wj=!1)};n.prototype.Xl=function(a,b){a.Oc||this.b.mi.push(a);var c,d,f=a.Xa[b],g;g=f.type?f.type.name:"system";var k=(c=f.El)?this.Fl:this.Nn;k[g]||(k[g]=[]);g=k[g];k=f.Pa;if(c){if(f.J.length&&(f=f.J[0],1===f.type&&2===f.Hc.type)){f=f.Hc.value.toLowerCase();c=0;for(d=g.length;c<
d;c++)if(g[c].method==k){c=g[c].Gf;c[f]?c[f].push([a,b]):c[f]=[[a,b]];return}c={};c[f]=[[a,b]];g.push({method:k,Gf:c})}}else{c=0;for(d=g.length;c<d;c++)if(g[c].method==k){g[c].Gf.push([a,b]);return}X&&k===X.prototype.n.Ie?g.unshift({method:k,Gf:[[a,b]]}):g.push({method:k,Gf:[[a,b]]})}};zb=n;q.prototype.mj=function(){return this.na?this.type.d.length:this.d.length};q.prototype.Ic=function(){return this.na?this.type.d:this.d};q.prototype.ug=function(a){a&&(a.b.ub().rc.Oc?(this.na&&(this.d.length=0,
va(this.X,a.type.d),this.na=!1),a=this.X.indexOf(a),-1!==a&&(this.d.push(this.X[a]),this.X.splice(a,1))):(this.na=!1,this.d.length=1,this.d[0]=a))};fb=q;window._c2hh_="55C89284FEE745E1AB400C15AA4FFF2F21B8A82E";a.prototype.ra=function(a){var b,c=this.parent;if(this.group)for(this.ki=!0;c;){if(!c.group){this.ki=!1;break}c=c.parent}this.Bk=!this.em()&&(!this.parent||this.parent.group&&this.parent.ki);this.Tl=!!a;this.Xd=this.ta.slice(0);for(c=this.parent;c;){a=0;for(b=c.ta.length;a<b;a++)this.Ko(c.ta[a]);
c=c.parent}this.ta=d(this.ta);this.Xd=d(this.Xd);a=0;for(b=this.Xa.length;a<b;a++)this.Xa[a].ra();a=0;for(b=this.pc.length;a<b;a++)this.pc[a].ra();a=0;for(b=this.kc.length;a<b;a++)this.kc[a].ra(a<b-1&&this.kc[a+1].rh)};a.prototype.bl=function(a){c(a,this.ta)};a.prototype.Ko=function(a){c(a,this.Xd)};a.prototype.Zh=function(){this.Dn=!0;this.parent&&this.parent.Zh()};a.prototype.em=function(){return this.Xa.length?this.Xa[0].trigger:!1};a.prototype.Ga=function(){var a,b=!1,c,d=this.b,f=this.b.ub();
f.rc=this;var g=this.Xa;this.rh||(f.Pi=!1);if(this.Oc){0===g.length&&(b=!0);f.jb=0;for(a=g.length;f.jb<a;f.jb++)g[f.jb].trigger||(c=g[f.jb].Ga())&&(b=!0);(f.we=b)&&this.nk()}else{f.jb=0;for(a=g.length;f.jb<a;f.jb++)if(c=g[f.jb].Ga(),!c){f.we=!1;!this.Bk||d.Fc.tc()&&!d.sb.length||d.Ua();return}f.we=!0;this.nk()}this.wp(f)};a.prototype.wp=function(a){a.we&&this.Tl&&(a.Pi=!0);!this.Bk||this.b.Fc.tc()&&!this.b.sb.length||this.b.Ua()};a.prototype.Ar=function(a){this.b.ub().rc=this;this.Xa[a].Ga()&&(this.nk(),
this.b.ub().we=!0)};a.prototype.nk=function(){var a=this.b.ub(),b;a.Pb=0;for(b=this.pc.length;a.Pb<b;a.Pb++)if(this.pc[a.Pb].Ga())return;this.qn()};a.prototype.xr=function(){var a=this.b.ub(),b;for(b=this.pc.length;a.Pb<b;a.Pb++)if(this.pc[a.Pb].Ga())return;this.qn()};a.prototype.qn=function(){if(this.kc.length){var a,b,c,d,f=this.kc.length-1;this.b.fk(this);if(this.Dn)for(a=0,b=this.kc.length;a<b;a++)c=this.kc[a],(d=!this.ki||!this.group&&a<f)&&this.b.ek(c.ta),c.Ga(),d?this.b.gf(c.ta):this.b.Ii(c.ta);
else for(a=0,b=this.kc.length;a<b;a++)this.kc[a].Ga();this.b.hn()}};a.prototype.Br=function(){var a=this.b.ub();a.rc=this;var b=!1,c;a.jb=0;for(c=this.Xa.length;a.jb<c;a.jb++)if(this.Xa[a.jb].Ga())b=!0;else if(!this.Oc)return!1;return this.Oc?b:!0};a.prototype.Mq=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.Xa[b].type===a.type)return!1;return!0};Qb=a;b.prototype.ra=function(){var a,b,c;a=0;for(b=this.J.length;a<b;a++)c=this.J[a],c.ra(),c.nc&&(this.wf=!0)};b.prototype.Dr=N(!0);
b.prototype.pk=function(){var a,b;a=0;for(b=this.J.length;a<b;a++)this.ca[a]=this.J[a].get();return Ra(this.Pa.apply(this.b.Uc,this.ca),this.tj)};b.prototype.Cr=function(){var a,b;a=0;for(b=this.J.length;a<b;a++)this.ca[a]=this.J[a].get();a=this.Pa.apply(this.he?this.he:this.type,this.ca);this.type.Fd();return a};b.prototype.ok=function(){var a,b,c,d,f,g,k,h,e=this.type,n=e.ja(),p=this.Jb.Oc&&!this.trigger;b=0;var m=e.uc,x=e.S,q=e.kd,z=this.Qb,H=-1<z,B=this.wf,D=this.J,s=this.ca,Z=this.tj,C=this.Pa,
M;if(B)for(b=0,f=D.length;b<f;++b)g=D[b],g.nc||(s[b]=g.get(0));else for(b=0,f=D.length;b<f;++b)s[b]=D[b].get(0);if(n.na){n.d.length=0;n.X.length=0;M=e.d;a=0;for(d=M.length;a<d;++a){h=M[a];if(B)for(b=0,f=D.length;b<f;++b)g=D[b],g.nc&&(s[b]=g.get(a));H?(b=0,x&&(b=h.type.Oe[q]),b=C.apply(h.K[z+b],s)):b=C.apply(h,s);(k=Ra(b,Z))?n.d.push(h):p&&n.X.push(h)}e.finish&&e.finish(!0);n.na=!1;e.Fd();return n.mj()}c=0;M=(k=p&&!this.Jb.Mq(this))?n.X:n.d;var Q=!1;a=0;for(d=M.length;a<d;++a){h=M[a];if(B)for(b=0,
f=D.length;b<f;++b)g=D[b],g.nc&&(s[b]=g.get(a));H?(b=0,x&&(b=h.type.Oe[q]),b=C.apply(h.K[z+b],s)):b=C.apply(h,s);if(Ra(b,Z))if(Q=!0,k){if(n.d.push(h),m)for(b=0,f=h.siblings.length;b<f;b++)g=h.siblings[b],g.type.ja().d.push(g)}else{M[c]=h;if(m)for(b=0,f=h.siblings.length;b<f;b++)g=h.siblings[b],g.type.ja().d[c]=g;c++}else if(k){M[c]=h;if(m)for(b=0,f=h.siblings.length;b<f;b++)g=h.siblings[b],g.type.ja().X[c]=g;c++}else if(p&&(n.X.push(h),m))for(b=0,f=h.siblings.length;b<f;b++)g=h.siblings[b],g.type.ja().X.push(g)}M.length=
c;if(m)for(x=e.rb,a=0,d=x.length;a<d;a++)h=x[a].ja(),k?h.X.length=c:h.d.length=c;c=Q;if(k&&!Q)for(a=0,d=n.d.length;a<d;a++){h=n.d[a];if(B)for(b=0,f=D.length;b<f;b++)g=D[b],g.nc&&(s[b]=g.get(a));b=H?C.apply(h.K[z],s):C.apply(h,s);if(Ra(b,Z)){Q=!0;break}}e.finish&&e.finish(c||p);return p?Q:n.mj()};Mb=b;f.prototype.ra=function(){var a,b,c;a=0;for(b=this.J.length;a<b;a++)c=this.J[a],c.ra(),c.nc&&(this.wf=!0)};f.prototype.pk=function(){var a,b;a=0;for(b=this.J.length;a<b;a++)this.ca[a]=this.J[a].get();
return this.Pa.apply(this.b.Uc,this.ca)};f.prototype.ok=function(){var a=this.type.ja().Ic(),b=this.type.S,c=this.type.kd,d=this.Qb,f=-1<d,g=this.wf,k=this.J,h=this.ca,e=this.Pa,n,p,m,x,z,q;if(g)for(p=0,x=k.length;p<x;++p)z=k[p],z.nc||(h[p]=z.get(0));else for(p=0,x=k.length;p<x;++p)h[p]=k[p].get(0);n=0;for(m=a.length;n<m;++n){q=a[n];if(g)for(p=0,x=k.length;p<x;++p)z=k[p],z.nc&&(h[p]=z.get(n));f?(p=0,b&&(p=q.type.Oe[c]),e.apply(q.K[d+p],h)):e.apply(q,h)}return!1};Nb=f;var H=[],p=-1;k.prototype.ra=
function(){var a,b;if(11===this.type)this.ne=this.b.Nl(this.Kg,this.Jb.parent);else if(13===this.type)for(a=0,b=this.Ce.length;a<b;a++)this.Ce[a].ra();this.Hc&&this.Hc.ra()};k.prototype.Zq=function(a){this.nc||!a||a.Ea.ai||(this.nc=!0)};k.prototype.wn=function(){this.nc=!0};k.prototype.Fa=function(){p++;H.length===p&&H.push(new Sb);return H[p]};k.prototype.za=function(){p--};k.prototype.pq=function(a){this.Yd=a||0;a=this.Fa();this.Hc.get(a);this.za();return a.data};k.prototype.qq=function(a){this.Yd=
a||0;a=this.Fa();this.Hc.get(a);this.za();return P(a.data)?a.data:""};k.prototype.wq=L("object");k.prototype.nq=L("ul");k.prototype.uq=function(a){this.Yd=a||0;a=this.Fa();this.Hc.get(a);this.za();return a.Ja()?this.b.Kf(a.data):this.b.gj(a.data)};k.prototype.vq=L("ea");k.prototype.tq=L("key");k.prototype.sq=L("index");k.prototype.rq=function(a){a=a||0;var b=this.A.type,c=null,c=b.ja(),d=c.Ic();if(d.length)c=d[a%d.length].type;else if(c.X.length)c=c.X[a%c.X.length].type;else if(b.d.length)c=b.d[a%
b.d.length].type;else return 0;return this.index+c.Zg[b.kd]};k.prototype.oq=L("ne");k.prototype.mq=L("Gl");k.prototype.xq=function(){var a,b;a=0;for(b=this.Ce.length;a<b;a++)this.Jg[a]=this.Ce[a].get();return this.Jg};Ob=k;h.prototype.ra=function(){this.ta=d(this.ta)};h.prototype.uk=function(a){var b=this.b.Ml();this.parent&&!this.Xf&&b?(this.ze>=b.length&&(b.length=this.ze+1),b[this.ze]=a):this.data=a};h.prototype.jh=function(){var a=this.b.Ml();return!this.parent||this.Xf||!a||this.qh?this.data:
this.ze>=a.length||"undefined"===typeof a[this.ze]?this.qj:a[this.ze]};h.prototype.Ga=function(){!this.parent||this.Xf||this.qh||this.uk(this.qj)};Ib=h;g.prototype.toString=function(){return"include:"+this.Qf.toString()};g.prototype.ra=function(){this.Qf=this.b.Ri[this.Fq];this.sheet.Ul.add(this);this.ta=d(this.ta);for(var a=this.parent;a;)a.group&&a.wl.push(this),a=a.parent;this.Vr()};g.prototype.Ga=function(){this.parent&&this.b.xg(this.b.m);this.Qf.nj||this.Qf.Ga(!0);this.parent&&this.b.gf(this.b.m)};
g.prototype.Vr=function(){for(var a=this.parent;a;){if(a.group&&!a.kh){this.Va=!1;return}a=a.parent}this.Va=!0};Rb=g;x.prototype.reset=function(a){this.rc=a;this.Pb=this.jb=0;this.Fn.length=0;this.Pi=this.we=!1};Hb=x})();
(function(){function e(d,e){this.A=d;this.b=d.b;this.type=e[0];this.get=[this.Ip,this.Ep,this.Qp,this.Tp,this.yp,this.Rp,this.Mp,this.Bp,this.Lp,this.Pp,this.zp,this.Op,this.Cp,this.Np,this.Jp,this.Kp,this.Fp,this.Gp,this.Ap,this.Sp,this.Cl,this.Hp,this.Cl,this.Dp][this.type];var m=null;this.mb=this.J=this.ca=this.Pa=this.hi=this.Na=this.first=this.value=null;this.Qb=-1;this.md=null;this.Hk=-1;this.ne=this.Kg=null;this.zg=!1;switch(this.type){case 0:case 1:case 2:this.value=e[1];break;case 3:this.first=
new Pb(d,e[1]);break;case 18:this.first=new Pb(d,e[1]);this.Na=new Pb(d,e[2]);this.hi=new Pb(d,e[3]);break;case 19:this.Pa=e[1];this.Pa!==V.prototype.Yb.random&&this.Pa!==V.prototype.Yb.Yo||this.A.wn();this.ca=[];this.J=[];3===e.length?(m=e[2],this.ca.length=m.length+1):this.ca.length=1;break;case 20:this.mb=this.b.m[e[1]];this.Qb=-1;this.Pa=e[2];this.zg=e[3];Ub.eo&&this.Pa===Ub.eo.prototype.Yb.ms&&this.A.wn();this.md=e[4]?new Pb(d,e[4]):null;this.ca=[];this.J=[];6===e.length?(m=e[5],this.ca.length=
m.length+1):this.ca.length=1;break;case 21:this.mb=this.b.m[e[1]];this.zg=e[2];this.md=e[3]?new Pb(d,e[3]):null;this.Hk=e[4];break;case 22:this.mb=this.b.m[e[1]];this.mb.fh(e[2]);this.Qb=this.mb.aj(e[2]);this.Pa=e[3];this.zg=e[4];this.md=e[5]?new Pb(d,e[5]):null;this.ca=[];this.J=[];7===e.length?(m=e[6],this.ca.length=m.length+1):this.ca.length=1;break;case 23:this.Kg=e[1],this.ne=null}this.A.Zq(this.mb);4<=this.type&&17>=this.type&&(this.first=new Pb(d,e[1]),this.Na=new Pb(d,e[2]));if(m){var a,c;
a=0;for(c=m.length;a<c;a++)this.J.push(new Pb(d,m[a]))}}function m(d,e){this.type=d||T.He;this.data=e||0;this.cf=null;this.type==T.He&&(this.data=Math.floor(this.data))}e.prototype.ra=function(){23===this.type&&(this.ne=this.A.b.Nl(this.Kg,this.A.Jb.parent));this.first&&this.first.ra();this.Na&&this.Na.ra();this.hi&&this.hi.ra();this.md&&this.md.ra();if(this.J){var d,e;d=0;for(e=this.J.length;d<e;d++)this.J[d].ra()}};e.prototype.Sp=function(d){this.ca[0]=d;d=this.A.Fa();var e,m;e=0;for(m=this.J.length;e<
m;e++)this.J[e].get(d),this.ca[e+1]=d.data;this.A.za();this.Pa.apply(this.b.Uc,this.ca)};e.prototype.Cl=function(d){var e=this.mb.ja(),m=e.Ic();if(!m.length)if(e.X.length)m=e.X;else{this.zg?d.hc(""):d.fa(0);return}this.ca[0]=d;d.cf=this.mb;d=this.A.Fa();var a,e=0;for(a=this.J.length;e<a;e++)this.J[e].get(d),this.ca[e+1]=d.data;e=this.A.Yd;this.md&&(this.md.get(d),d.Ja()&&(e=d.data,m=this.mb.d));this.A.za();e%=m.length;0>e&&(e+=m.length);m=m[e];-1<this.Qb?(d=0,this.mb.S&&(d=m.type.Oe[this.mb.kd]),
this.Pa.apply(m.K[this.Qb+d],this.ca)):this.Pa.apply(m,this.ca)};e.prototype.Hp=function(d){var e=this.mb.ja(),m=e.Ic();if(!m.length)if(e.X.length)m=e.X;else{this.zg?d.hc(""):d.fa(0);return}e=this.A.Yd;if(this.md){var a=this.A.Fa();this.md.get(a);if(a.Ja()){e=a.data;m=this.mb.d;e%=m.length;0>e&&(e+=m.length);m=m[e].Ba[this.Hk];P(m)?d.hc(m):d.H(m);this.A.za();return}this.A.za()}e%=m.length;0>e&&(e+=m.length);m=m[e];e=0;this.mb.S&&(e=m.type.Zg[this.mb.kd]);m=m.Ba[this.Hk+e];P(m)?d.hc(m):d.H(m)};e.prototype.Ip=
function(d){d.type=T.He;d.data=this.value};e.prototype.Ep=function(d){d.type=T.Ge;d.data=this.value};e.prototype.Qp=function(d){d.type=T.Mg;d.data=this.value};e.prototype.Tp=function(d){this.first.get(d);d.Ja()&&(d.data=-d.data)};e.prototype.yp=function(d){this.first.get(d);var e=this.A.Fa();this.Na.get(e);d.Ja()&&e.Ja()&&(d.data+=e.data,e.We()&&d.bf());this.A.za()};e.prototype.Rp=function(d){this.first.get(d);var e=this.A.Fa();this.Na.get(e);d.Ja()&&e.Ja()&&(d.data-=e.data,e.We()&&d.bf());this.A.za()};
e.prototype.Mp=function(d){this.first.get(d);var e=this.A.Fa();this.Na.get(e);d.Ja()&&e.Ja()&&(d.data*=e.data,e.We()&&d.bf());this.A.za()};e.prototype.Bp=function(d){this.first.get(d);var e=this.A.Fa();this.Na.get(e);d.Ja()&&e.Ja()&&(d.data/=e.data,d.bf());this.A.za()};e.prototype.Lp=function(d){this.first.get(d);var e=this.A.Fa();this.Na.get(e);d.Ja()&&e.Ja()&&(d.data%=e.data,e.We()&&d.bf());this.A.za()};e.prototype.Pp=function(d){this.first.get(d);var e=this.A.Fa();this.Na.get(e);d.Ja()&&e.Ja()&&
(d.data=Math.pow(d.data,e.data),e.We()&&d.bf());this.A.za()};e.prototype.zp=function(d){this.first.get(d);var e=this.A.Fa();this.Na.get(e);d.Ja()?e.sh()?d.hc(d.data.toString()+e.data):d.data&&e.data?d.fa(1):d.fa(0):d.sh()&&(d.data=e.sh()?d.data+e.data:d.data+(Math.round(1E10*e.data)/1E10).toString());this.A.za()};e.prototype.Op=function(d){this.first.get(d);var e=this.A.Fa();this.Na.get(e);d.Ja()&&e.Ja()&&(d.data||e.data?d.fa(1):d.fa(0));this.A.za()};e.prototype.Ap=function(d){this.first.get(d);d.data?
this.Na.get(d):this.hi.get(d)};e.prototype.Cp=function(d){this.first.get(d);var e=this.A.Fa();this.Na.get(e);d.fa(d.data===e.data?1:0);this.A.za()};e.prototype.Np=function(d){this.first.get(d);var e=this.A.Fa();this.Na.get(e);d.fa(d.data!==e.data?1:0);this.A.za()};e.prototype.Jp=function(d){this.first.get(d);var e=this.A.Fa();this.Na.get(e);d.fa(d.data<e.data?1:0);this.A.za()};e.prototype.Kp=function(d){this.first.get(d);var e=this.A.Fa();this.Na.get(e);d.fa(d.data<=e.data?1:0);this.A.za()};e.prototype.Fp=
function(d){this.first.get(d);var e=this.A.Fa();this.Na.get(e);d.fa(d.data>e.data?1:0);this.A.za()};e.prototype.Gp=function(d){this.first.get(d);var e=this.A.Fa();this.Na.get(e);d.fa(d.data>=e.data?1:0);this.A.za()};e.prototype.Dp=function(d){var e=this.ne.jh();ga(e)?d.H(e):d.hc(e)};Pb=e;m.prototype.We=function(){return this.type===T.Ge};m.prototype.Ja=function(){return this.type===T.He||this.type===T.Ge};m.prototype.sh=function(){return this.type===T.Mg};m.prototype.bf=function(){this.We()||(this.sh()&&
(this.data=parseFloat(this.data)),this.type=T.Ge)};m.prototype.fa=function(d){this.type=T.He;this.data=Math.floor(d)};m.prototype.H=function(d){this.type=T.Ge;this.data=d};m.prototype.hc=function(d){this.type=T.Mg;this.data=d};m.prototype.Kr=function(d){ga(d)?(this.type=T.Ge,this.data=d):P(d)?(this.type=T.Mg,this.data=d.toString()):(this.type=T.He,this.data=0)};Sb=m;T={He:0,Ge:1,Mg:2}})();function V(e){this.b=e;this.Hb=[]}
V.prototype.Nb=function(){var e={},m,d,n,q,a,c,b,f;e.waits=[];var k=e.waits,h;m=0;for(d=this.Hb.length;m<d;m++){c=this.Hb[m];h={t:c.time,st:c.Lr,s:c.Bn,ev:c.Ef.O,sm:[],sols:{}};c.Ef.pc[c.Pb]&&(h.act=c.Ef.pc[c.Pb].O);n=0;for(q=c.ta.length;n<q;n++)h.sm.push(c.ta[n].O);for(a in c.Eb)if(c.Eb.hasOwnProperty(a)){b=this.b.m[parseInt(a,10)];f={sa:c.Eb[a].rn,insts:[]};n=0;for(q=c.Eb[a].te.length;n<q;n++)f.insts.push(c.Eb[a].te[n].uid);h.sols[b.O.toString()]=f}k.push(h)}return e};
V.prototype.xc=function(e){e=e.waits;var m,d,n,q,a,c,b,f,k,h,g;m=this.Hb.length=0;for(d=e.length;m<d;m++)if(c=e[m],f=this.b.ml[c.ev.toString()]){k=-1;n=0;for(q=f.pc.length;n<q;n++)if(f.pc[n].O===c.act){k=n;break}if(-1!==k){b={Eb:{},ta:[],zl:!1};b.time=c.t;b.Lr=c.st||"";b.Bn=!!c.s;b.Ef=f;b.Pb=k;n=0;for(q=c.sm.length;n<q;n++)(f=this.b.ih(c.sm[n]))&&b.ta.push(f);for(a in c.sols)if(c.sols.hasOwnProperty(a)&&(f=this.b.ih(parseInt(a,10)))){k=c.sols[a];h={rn:k.sa,te:[]};n=0;for(q=k.insts.length;n<q;n++)(g=
this.b.hh(k.insts[n]))&&h.te.push(g);b.Eb[f.index.toString()]=h}this.Hb.push(b)}}};
(function(){function e(){}function m(){}function d(){}var n=V.prototype;e.prototype.Ok=N(!0);e.prototype.ro=N(!0);e.prototype.Ao=function(){var a=this.b.bj().V;"undefined"===typeof a.TriggerOnce_lastTick&&(a.TriggerOnce_lastTick=-1);var b=a.TriggerOnce_lastTick,d=this.b.Vc;a.TriggerOnce_lastTick=d;return this.b.Ej||b!==d-1};e.prototype.co=function(a){var b=this.b.bj(),d=b.V.Every_lastTime||0,e=this.b.cc.da;"undefined"===typeof b.V.Every_seconds&&(b.V.Every_seconds=a);var h=b.V.Every_seconds;if(e>=
d+h)return b.V.Every_lastTime=d+h,e>=b.V.Every_lastTime+0.04&&(b.V.Every_lastTime=e),b.V.Every_seconds=a,!0;e<d-0.1&&(b.V.Every_lastTime=e);return!1};e.prototype.ao=function(a,b,d){return Tb(a.jh(),b,d)};e.prototype.bo=function(){var a=this.b.ub();return a.Pi?!1:!a.we};e.prototype.Pk=N(!0);e.prototype.ko=N(!0);e.prototype.si=N(!0);e.prototype.so=N(!0);e.prototype.ri=N(!0);n.n=new e;m.prototype.yo=function(a,b){0===a.as&&(ga(b)?a.uk(a.jh()-b):a.uk(a.jh()-parseFloat(b)))};var q=[],a=[];n.Wa=new m;d.prototype["int"]=
function(a,b){P(b)?(a.fa(parseInt(b,10)),isNaN(a.data)&&(a.data=0)):a.fa(b)};d.prototype["float"]=function(a,b){P(b)?(a.H(parseFloat(b)),isNaN(a.data)&&(a.data=0)):a.H(b)};d.prototype.random=function(a,b,d){void 0===d?a.H(Math.random()*b):a.H(Math.random()*(d-b)+b)};d.prototype.sqrt=function(a,b){a.H(Math.sqrt(b))};d.prototype.round=function(a,b){a.fa(Math.round(b))};d.prototype.floor=function(a,b){a.fa(Math.floor(b))};d.prototype.ceil=function(a,b){a.fa(Math.ceil(b))};d.prototype.sin=function(a,
b){a.H(Math.sin(R(b)))};d.prototype.cos=function(a,b){a.H(Math.cos(R(b)))};d.prototype.tan=function(a,b){a.H(Math.tan(R(b)))};d.prototype.acos=function(a,b){a.H(za(Math.acos(b)))};d.prototype.exp=function(a,b){a.H(Math.exp(b))};d.prototype.max=function(a){var b=arguments[1];"number"!==typeof b&&(b=0);var d,e,h;d=2;for(e=arguments.length;d<e;d++)h=arguments[d],"number"===typeof h&&b<h&&(b=h);a.H(b)};d.prototype.min=function(a){var b=arguments[1];"number"!==typeof b&&(b=0);var d,e,h;d=2;for(e=arguments.length;d<
e;d++)h=arguments[d],"number"===typeof h&&b>h&&(b=h);a.H(b)};d.prototype.me=function(a){a.H(this.b.me)};d.prototype.pf=function(a){a.H(this.b.pf)};d.prototype.time=function(a){a.H(this.b.cc.da)};d.prototype.Vc=function(a){a.fa(this.b.Vc)};d.prototype.Kh=function(a){a.fa(this.b.Kh)};d.prototype.Yi=function(a){a.fa(this.b.Yi)};d.prototype.g=function(a,b,d,e,h){a.H(za(Ha(b,d,e,h)))};d.prototype.left=function(a,b,d){a.hc(P(b)?b.substr(0,d):"")};d.prototype.right=function(a,b,d){a.hc(P(b)?b.substr(b.length-
d):"")};d.prototype.replace=function(a,b,d,e){P(b)&&P(d)&&P(e)?a.hc(b.replace(RegExp(Wa(d),"gi"),e)):a.hc(P(b)?b:"")};d.prototype.Yo=function(a){var b=ma(Math.random()*(arguments.length-1));a.Kr(arguments[b+1])};d.prototype.Ji=function(a){a.H(this.b.Ji/1E3)};d.prototype.Gh=function(a){a.H(this.b.Gh)};n.Yb=new d;n.yr=function(){var c,b,d,e,h,g,m=this.b.ub();c=0;for(d=this.Hb.length;c<d;c++){e=this.Hb[c];if(-1===e.time){if(!e.Bn)continue}else if(e.time>this.b.cc.da)continue;m.rc=e.Ef;m.Pb=e.Pb;m.jb=
0;for(b in e.Eb)e.Eb.hasOwnProperty(b)&&(h=this.b.m[parseInt(b,10)].ja(),g=e.Eb[b],h.na=g.rn,va(h.d,g.te),h=g,h.te.length=0,a.push(h));e.Ef.xr();this.b.Ii(e.ta);e.zl=!0}b=c=0;for(d=this.Hb.length;c<d;c++)e=this.Hb[c],this.Hb[b]=e,e.zl?(Ta(e.Eb),e.ta.length=0,q.push(e)):b++;this.Hb.length=b}})();
(function(){eb=function(e){var d=e[0].prototype,n=e[1],q=e[3],a=e[4],c=e[5],b=e[6],f=e[7];e=e[8];d.n||(d.n={});d.Wa||(d.Wa={});d.Yb||(d.Yb={});var k=d.n,h=d.Wa,d=d.Yb;q&&(k.ss=function(a,b){return Tb(this.x,a,b)},k.ts=function(a,b){return Tb(this.y,a,b)},k.Cs=function(){var a=this.e;this.hb();var b=this.bb;return!(b.right<a.Sa||b.bottom<a.Ta||b.left>a.Gb||b.top>a.Fb)},k.Ds=function(){this.hb();var a=this.bb,b=this.b.ka;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},k.Os=function(a,
b,c){var d=this.ja(),f=d.Ic();if(!f.length)return!1;var e=f[0],h=e,k=Qa(e.x,e.y,b,c),m,n,q;m=1;for(n=f.length;m<n;m++)if(e=f[m],q=Qa(e.x,e.y,b,c),0===a&&q<k||1===a&&q>k)k=q,h=e;d.ug(h);return!0},h.ft=function(a){this.x!==a&&(this.x=a,this.Oa())},h.gt=function(a){this.y!==a&&(this.y=a,this.Oa())},h.bt=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.Oa()},h.ct=function(a,b){var c=a.hq(this);if(c){var d;c.fj?(d=c.fj(b,!0),c=c.fj(b,!1)):(d=c.x,c=c.y);if(this.x!==d||this.y!==c)this.x=d,
this.y=c,this.Oa()}},h.Hs=function(a){0!==a&&(this.x+=Math.cos(this.g)*a,this.y+=Math.sin(this.g)*a,this.Oa())},h.Gs=function(a,b){0!==b&&(this.x+=Math.cos(R(a))*b,this.y+=Math.sin(R(a))*b,this.Oa())},d.Do=function(a){a.H(this.x)},d.Eo=function(a){a.H(this.y)},d.me=function(a){a.H(this.b.cj(this))});a&&(k.rs=function(a,b){return Tb(this.width,a,b)},k.ns=function(a,b){return Tb(this.height,a,b)},h.xo=function(a){this.width!==a&&(this.width=a,this.Oa())},h.Zs=function(a){this.height!==a&&(this.height=
a,this.Oa())},h.dt=function(a,b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.Oa()},d.kt=function(a){a.H(this.width)},d.ws=function(a){a.H(this.height)},d.js=function(a){this.hb();a.H(this.bb.left)},d.ls=function(a){this.hb();a.H(this.bb.top)},d.ks=function(a){this.hb();a.H(this.bb.right)},d.hs=function(a){this.hb();a.H(this.bb.bottom)});c&&(k.gs=function(a,b){return Ia(this.g,R(b))<=R(a)},k.As=function(a){return Oa(this.g,R(a))},k.ys=function(a,b){var c=Ga(a),d=Ga(b),f=Ea(this.g);
return Oa(d,c)?Oa(f,c)&&!Oa(f,d):!(!Oa(f,c)&&Oa(f,d))},h.Vs=function(a){a=R(Aa(a));isNaN(a)||this.g===a||(this.g=a,this.Oa())},h.vo=function(a){0===a||isNaN(a)||(this.g+=R(a),this.g=Ea(this.g),this.Oa())},h.Ss=function(a){0===a||isNaN(a)||(this.g-=R(a),this.g=Ea(this.g),this.Oa())},h.Ts=function(a,b){var c=Na(this.g,R(b),R(a));isNaN(c)||this.g===c||(this.g=c,this.Oa())},h.Us=function(a,b,c){a=Na(this.g,Math.atan2(c-this.y,b-this.x),R(a));isNaN(a)||this.g===a||(this.g=a,this.Oa())},h.et=function(a,
b){var c=Math.atan2(b-this.y,a-this.x);isNaN(c)||this.g===c||(this.g=c,this.Oa())},d.es=function(a){a.H(Fa(this.g))});n||(k.os=function(a,b,c){return Tb(this.Ba[a],b,c)},k.zs=function(a){return this.Ba[a]},k.Ps=function(a,b){var c=this.ja(),d=c.Ic();if(!d.length)return!1;var f=d[0],e=f,h=f.Ba[b],k,m,n;k=1;for(m=d.length;k<m;k++)if(f=d[k],n=f.Ba[b],0===a&&n<h||1===a&&n>h)h=n,e=f;c.ug(e);return!0},k.Ns=function(a){var b,c,d,f,e;if(this.b.bj().tj){e=this.ja();if(e.na)for(e.na=!1,e.d.length=0,e.X.length=
0,d=this.d,b=0,c=d.length;b<c;b++)f=d[b],f.uid===a?e.X.push(f):e.d.push(f);else{d=b=0;for(c=e.d.length;b<c;b++)f=e.d[b],e.d[d]=f,f.uid===a?e.X.push(f):d++;e.d.length=d}this.Fd();return!!e.d.length}f=this.b.hh(a);if(!f)return!1;e=this.ja();if(!e.na&&-1===e.d.indexOf(f))return!1;if(this.S)for(a=f.type.ga,b=0,c=a.length;b<c;b++){if(a[b]===this)return e.ug(f),this.Fd(),!0}else if(f.type===this)return e.ug(f),this.Fd(),!0;return!1},k.lo=N(!0),k.mo=N(!0),h.$s=function(a,b){var c=this.Ba;ga(c[a])?c[a]=ga(b)?
b:parseFloat(b):P(c[a])&&(c[a]=P(b)?b:b.toString())},h.ds=function(a,b){var c=this.Ba;ga(c[a])?c[a]=ga(b)?c[a]+b:c[a]+parseFloat(b):P(c[a])&&(c[a]=P(b)?c[a]+b:c[a]+b.toString())},h.ht=function(a,b){var c=this.Ba;ga(c[a])&&(c[a]=ga(b)?c[a]-b:c[a]-parseFloat(b))},h.Ws=function(a,b){this.Ba[a]=b?1:0},h.it=function(a){this.Ba[a]=1-this.Ba[a]},h.vs=function(){this.b.de(this)},h.ho||(h.ho=function(a){var b,c;try{b=JSON.parse(a)}catch(d){return}this.b.Eh(this,b,!0);this.Ed&&this.Ed();if(this.K)for(a=0,b=
this.K.length;a<b;++a)c=this.K[a],c.Ed&&c.Ed()}),d.us=function(a){var b=a.cf.d.length,c,d,f;c=0;for(d=this.b.sb.length;c<d;c++)f=this.b.sb[c],a.cf.S?0<=f.type.ga.indexOf(a.cf)&&b++:f.type===a.cf&&b++;a.fa(b)},d.Rs=function(a){a.fa(a.cf.ja().Ic().length)},d.jt=function(a){a.fa(this.uid)},d.xs=function(a){a.fa(this.Mf())},d.$n||(d.$n=function(a){a.hc(JSON.stringify(this.b.qk(this,!0)))}));b&&(k.fo=L("visible"),h.Vk=function(a){!a!==!this.visible&&(this.visible=a,this.b.ba=!0)},k.qs=function(a,b){return Tb(ab(100*
this.opacity),a,b)},h.Uk=function(a){a/=100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.ba=!0)},d.Opacity=function(a){a.H(ab(100*this.opacity))});f&&(k.Bs=function(a){return a?this.e===a:!1},k.Qs=function(a){var b=this.ja(),c=b.Ic();if(!c.length)return!1;var d=c[0],f=d,e,h;e=1;for(h=c.length;e<h;e++)if(d=c[e],0===a){if(d.e.index>f.e.index||d.e.index===f.e.index&&d.Lb()>f.Lb())f=d}else if(d.e.index<f.e.index||d.e.index===f.e.index&&d.Lb()<f.Lb())f=d;b.ug(f);return!0},h.Ks=function(){var a=
this.Lb();a!==this.e.d.length-1&&(ua(this.e.d,a),this.e.d.push(this),this.b.ba=!0,this.e.Ib=!0)},h.Is=function(){var a=this.Lb();0!==a&&(ua(this.e.d,a),this.e.d.unshift(this),this.b.ba=!0,this.e.Ib=!0)},h.Js=function(a){a&&a!=this.e&&(ua(this.e.d,this.Lb()),this.e.Ib=!0,this.e=a,this.Fe=a.d.length,a.d.push(this),this.b.ba=!0)},h.mt=function(a,b){var c=0===a;if(b){var d=b.bq(this);if(d&&d.uid!==this.uid){this.e.index!==d.e.index&&(ua(this.e.d,this.Lb()),this.e.Ib=!0,this.e=d.e,this.Fe=d.e.d.length,
d.e.d.push(this));var f=this.Lb(),d=d.Lb();ua(this.e.d,f);f<d&&d--;c&&d++;d===this.e.d.length?this.e.d.push(this):this.e.d.splice(d,0,this);this.e.Ib=!0;this.b.ba=!0}}},d.Fs=function(a){a.fa(this.e.Lm)},d.Es=function(a){a.hc(this.e.name)},d.lt=function(a){a.fa(this.Lb())});e&&(h.Xs=function(a,b){if(this.b.u){var c=this.type.ej(b);if(!(0>c)){var d=1===a;this.Dd[c]!==d&&(this.Dd[c]=d,this.yd(),this.b.ba=!0)}}},h.Ys=function(a,b,c){if(this.b.u){var d=this.type.ej(a);0>d||(a=this.type.G[d],d=this.ma[d],
b=Math.floor(b),0>b||b>=d.length||(1===this.b.u.lq(a.Ra,b)&&(c/=100),d[b]!==c&&(d[b]=c,a.Va&&(this.b.ba=!0))))}})};Ab=function(){this.Ei=this.yi=!0;this.type.fl=!0;this.b.ba=!0;var e,d,n=this.Ai;e=0;for(d=n.length;e<d;++e)n[e](this)};Bb=function(e){e&&this.Ai.push(e)};Db=function(){if(this.yi){var e=this.bb,d=this.ie;e.set(this.x,this.y,this.x+this.width,this.y+this.height);e.offset(-this.yb*this.width,-this.zb*this.height);this.g?(e.offset(-this.x,-this.y),d.xn(e,this.g),d.offset(this.x,this.y),
d.nl(e)):d.$h(e);e.normalize();this.yi=!1}};var e=new ra(0,0,0,0);Eb=function(){if(this.Ei&&this.Af){this.hb();var m=this.type.tl,d=this.Og,n=this.bb;e.set(m.Wk(n.left),m.Xk(n.top),m.Wk(n.right),m.Xk(n.bottom));d.xp(e)||(d.right<d.left?m.update(this,null,e):m.update(this,d,e),d.copy(e),this.Ei=!1)}};Cb=function(e,d){return this.bb.Ec(e,d)&&this.ie.Ec(e,d)?this.Dc&&!this.Dc.Sq()?(this.Dc.To(this.width,this.height,this.g),this.Dc.Ec(e-this.x,d-this.y)):!0:!1};wb=function(){this.type.ni();return this.qe};
Fb=function(){this.e.Xn();return this.Fe};Gb=function(){this.U.length=0;var e,d;e=0;for(d=this.Dd.length;e<d;e++)this.Dd[e]&&this.U.push(this.type.G[e]);this.Yn=!!this.U.length};xb=function(){return"Inst"+this.nn};hb=function(e){if(e&&e.uc&&e.type!=this){var d,n,q;d=0;for(n=e.siblings.length;d<n;d++)if(q=e.siblings[d],q.type==this)return q}e=this.ja().Ic();return e.length?e[0]:null};ib=function(e){var d=this.ja().Ic();return d.length?d[e.Mf()%d.length]:null};gb=function(){if(this.of&&!this.S){var e,
d;e=0;for(d=this.d.length;e<d;e++)this.d[e].qe=e;var n=e,q=this.b.sb;e=0;for(d=q.length;e<d;++e)q[e].type===this&&(q[e].qe=n++);this.of=!1}};ub=function(e){if(e<this.d.length)return this.d[e];e-=this.d.length;var d=this.b.sb,n,q;n=0;for(q=d.length;n<q;++n)if(d[n].type===this){if(0===e)return d[n];--e}return null};mb=function(){return this.Zd[this.fd]};nb=function(){this.fd++;this.fd===this.Zd.length?this.Zd.push(new fb(this)):this.Zd[this.fd].na=!0};ob=function(){this.fd++;this.fd===this.Zd.length&&
this.Zd.push(new fb(this));var e=this.Zd[this.fd],d=this.Zd[this.fd-1];d.na?e.na=!0:(e.na=!1,va(e.d,d.d),va(e.X,d.X))};pb=function(){this.fd--};qb=function(e){var d,n,q,a,c,b=0;if(!this.S)for(d=0,n=this.ga.length;d<n;d++)for(c=this.ga[d],q=0,a=c.ua.length;q<a;q++){if(e===c.ua[q].name)return this.V.lastBehIndex=b,c.ua[q];b++}d=0;for(n=this.ua.length;d<n;d++){if(e===this.ua[d].name)return this.V.lastBehIndex=b,this.ua[d];b++}return null};rb=function(e){return this.fh(e)?this.V.lastBehIndex:-1};sb=function(e){var d,
n;d=0;for(n=this.G.length;d<n;d++)if(this.G[d].name===e)return d;return-1};tb=function(){if(this.uc&&!this.S){var e,d,n,q,a,c,b;this.ni();c=this.ja();var f=c.na,k=(e=this.b.ub())&&e.rc&&e.rc.Oc;e=0;for(d=this.rb.length;e<d;e++)if(a=this.rb[e],a!==this&&(a.ni(),b=a.ja(),b.na=f,!f)){b.d.length=c.d.length;n=0;for(q=c.d.length;n<q;n++)b.d[n]=a.Ol(c.d[n].qe);if(k)for(b.X.length=c.X.length,n=0,q=c.X.length;n<q;n++)b.X[n]=a.Ol(c.X[n].qe)}}};vb=function(){return"Type"+this.O};Tb=function(e,d,n){if("undefined"===
typeof e||"undefined"===typeof n)return!1;switch(d){case 0:return e===n;case 1:return e!==n;case 2:return e<n;case 3:return e<=n;case 4:return e>n;case 5:return e>=n;default:return!1}}})();var bc={};function dc(e){this.b=e}
(function(){function e(a){0>a&&(a=0);1<a&&(a=1);return 20*(Math.log(a)/Math.log(10))}function m(a){a=a.toLowerCase();return O.hasOwnProperty(a)&&O[a].length?O[a][0].Kb():s.destination}function d(){return s.createGain?s.createGain():s.createGainNode()}function n(a){return s.createDelay?s.createDelay(a):s.createDelayNode(a)}function q(a){a.start?a.start(0):a.noteOn(0)}function a(a,b,c){a.start?a.start(0,b):a.noteGrainOn(0,b,c-b)}function c(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}function b(a,
b,c,f,e,h){this.type="filter";this.yc=[a,b,c,f,e,h];this.R=d();this.F=d();this.F.gain.value=h;this.C=d();this.C.gain.value=1-h;this.wa=s.createBiquadFilter();this.wa.type="number"===typeof this.wa.type?a:kc[a];this.wa.frequency.value=b;this.wa.detune&&(this.wa.detune.value=c);this.wa.Q.value=f;this.wa.gain.value=e;this.R.connect(this.wa);this.R.connect(this.C);this.wa.connect(this.F)}function f(a,b,c){this.type="delay";this.yc=[a,b,c];this.R=d();this.F=d();this.F.gain.value=c;this.C=d();this.C.gain.value=
1-c;this.kg=d();this.Xb=n(a);this.Xb.delayTime.value=a;this.Wg=d();this.Wg.gain.value=b;this.R.connect(this.kg);this.R.connect(this.C);this.kg.connect(this.F);this.kg.connect(this.Xb);this.Xb.connect(this.Wg);this.Wg.connect(this.kg)}function k(a,b,c,f){this.type="convolve";this.yc=[b,c,f];this.R=d();this.F=d();this.F.gain.value=c;this.C=d();this.C.gain.value=1-c;this.je=s.createConvolver();a&&(this.je.normalize=b,this.je.buffer=a);this.R.connect(this.je);this.R.connect(this.C);this.je.connect(this.F)}
function h(a,b,c,f,e){this.type="flanger";this.yc=[a,b,c,f,e];this.R=d();this.C=d();this.C.gain.value=1-e/2;this.F=d();this.F.gain.value=e/2;this.$g=d();this.$g.gain.value=f;this.Xb=n(a+b);this.Xb.delayTime.value=a;this.Ma=s.createOscillator();this.Ma.frequency.value=c;this.Db=d();this.Db.gain.value=b;this.R.connect(this.Xb);this.R.connect(this.C);this.Xb.connect(this.F);this.Xb.connect(this.$g);this.$g.connect(this.Xb);this.Ma.connect(this.Db);this.Db.connect(this.Xb.delayTime);q(this.Ma)}function g(a,
b,c,f,e,h){this.type="phaser";this.yc=[a,b,c,f,e,h];this.R=d();this.C=d();this.C.gain.value=1-h/2;this.F=d();this.F.gain.value=h/2;this.wa=s.createBiquadFilter();this.wa.type="number"===typeof this.wa.type?7:"allpass";this.wa.frequency.value=a;this.wa.detune&&(this.wa.detune.value=b);this.wa.Q.value=c;this.Ma=s.createOscillator();this.Ma.frequency.value=e;this.Db=d();this.Db.gain.value=f;this.R.connect(this.wa);this.R.connect(this.C);this.wa.connect(this.F);this.Ma.connect(this.Db);this.Db.connect(this.wa.frequency);
q(this.Ma)}function x(a){this.type="gain";this.yc=[a];this.T=d();this.T.gain.value=a}function z(a,b){this.type="tremolo";this.yc=[a,b];this.T=d();this.T.gain.value=1-b/2;this.Ma=s.createOscillator();this.Ma.frequency.value=a;this.Db=d();this.Db.gain.value=b/2;this.Ma.connect(this.Db);this.Db.connect(this.T.gain);q(this.Ma)}function H(a,b){this.type="ringmod";this.yc=[a,b];this.R=d();this.F=d();this.F.gain.value=b;this.C=d();this.C.gain.value=1-b;this.Ag=d();this.Ag.gain.value=0;this.Ma=s.createOscillator();
this.Ma.frequency.value=a;this.Ma.connect(this.Ag.gain);q(this.Ma);this.R.connect(this.Ag);this.R.connect(this.C);this.Ag.connect(this.F)}function p(a,b,c,f,e){this.type="distortion";this.yc=[a,b,c,f,e];this.R=d();this.Sh=d();this.Rh=d();this.Gr(c,Math.pow(10,f/20));this.F=d();this.F.gain.value=e;this.C=d();this.C.gain.value=1-e;this.pi=s.createWaveShaper();this.Ug=new Float32Array(65536);this.Zp(a,b);this.pi.Ug=this.Ug;this.R.connect(this.Sh);this.R.connect(this.C);this.Sh.connect(this.pi);this.pi.connect(this.Rh);
this.Rh.connect(this.F)}function l(a,b,c,d,f){this.type="compressor";this.yc=[a,b,c,d,f];this.T=s.createDynamicsCompressor();try{this.T.threshold.value=a,this.T.knee.value=b,this.T.ratio.value=c,this.T.attack.value=d,this.T.release.value=f}catch(e){}}function u(a,b){this.type="analyser";this.yc=[a,b];this.T=s.createAnalyser();this.T.fftSize=a;this.T.smoothingTimeConstant=b;this.Xp=new Float32Array(this.T.frequencyBinCount);this.An=new Uint8Array(a);this.tg=0}function t(){this.D=null;this.Fh=0;this.$d=
[];this.Pj=this.xh=this.wh=0}function v(a,b){this.src=a;this.W=D;this.vc=b;this.cl=!1;var c=this;this.Nj=this.Zj=null;this.ff=[];this.Yh=0;this.Kk=this.Vi=this.En=this.Oh=!1;D===w&&b&&(this.W=E,this.Zj=d());this.ge=this.$=null;var f;switch(this.W){case E:this.$=new Audio;this.$.addEventListener("canplaythrough",function(){c.Kk=!0});D===w&&s.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.En=!0,this.$.addEventListener("canplay",function(){c.Nj||(c.Nj=s.createMediaElementSource(c.$),
c.Nj.connect(c.Zj))}));this.$.autoplay=!1;this.$.yt="auto";this.$.src=a;break;case w:f=new XMLHttpRequest;f.open("GET",a,!0);f.responseType="arraybuffer";f.onload=function(){c.ge=f.response;c.ep()};f.onerror=function(){c.Vi=!0};f.send();break;case F:this.$=!0;break;case B:this.$=!0}}function A(a,b){var c=this;this.ae=b;this.jc=this.Ld=!0;this.src=a.src;this.buffer=a;this.W=D;this.vc=a.vc;this.playbackRate=1;this.ak=!0;this.od=this.vd=!1;this.Ac=0;this.Wf=this.Xe=this.rd=!1;this.volume=1;this.Ve=1===
Va&&!this.vc||2===Va;this.mg=1;this.startTime=this.Ve?I.cc.da:I.zd.da;this.qa=this.Ia=null;this.Pc=!1;this.pa=null;this.$m=this.Zm=this.Ym=this.Xm=this.bn=this.an=0;this.j=null;var f=!1;this.W!==w||this.buffer.W!==E||this.buffer.En||(this.W=E);switch(this.W){case E:this.vc?(this.j=a.$,f=!a.cl,a.cl=!0):(this.j=new Audio,this.j.autoplay=!1,this.j.src=a.$.src,f=!0);f&&this.j.addEventListener("ended",function(){J=c.ae;c.jc=!0;I.trigger(dc.prototype.n.qi,K)});break;case w:this.Ia=d();this.Ia.connect(m(b));
this.buffer.W===w?a.$&&(this.j=s.createBufferSource(),this.j.buffer=a.$,this.j.connect(this.Ia)):(this.j=this.buffer.$,this.buffer.Zj.connect(this.Ia));break;case F:this.j=new window.Media(r+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(c.ak=!0,c.jc=!0,J=c.ae,I.trigger(dc.prototype.n.qi,K))});break;case B:this.j=!0}}function W(a,b){O.hasOwnProperty(a)?O[a].push(b):O[a]=[b];var c,d,f,e,h=s.destination;if(O.hasOwnProperty(a)&&(f=O[a],f.length))for(h=f[0].Kb(),c=0,d=f.length;c<d;c++)e=
f[c],c+1===d?e.Vb(s.destination):e.Vb(f[c+1].Kb());Ba.length=0;if(a.length)for(c=0,d=C.length;c<d;c++)f=C[c],bb(a,f.ae)&&Ba.push(f);else M&&!M.Of()&&(Ba.length=1,Ba[0]=M);c=0;for(d=Ba.length;c<d;c++)Ba[c].tr(h);wa&&jb===a&&(wa.disconnect(),wa.connect(h))}function y(){}function G(){}var U=dc.prototype;U.oc=function(a){this.Ea=a;this.b=a.b};U.oc.prototype.ya=aa();var I=null,K=null,J="",r="",E=0,w=1,F=2,B=3,D=E,s=null,Z=[],C=[],M=null,Q=!1,Va=0,na=!1,oa=1,Ca=0,Da=0,kb=1,lb=1,fc=10,gc=1E4,hc=1,wa=null,
jb="",Ja=!1,Ka=[],O={},kc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");b.prototype.Vb=function(a){this.F.disconnect();this.F.connect(a);this.C.disconnect();this.C.connect(a)};b.prototype.remove=function(){this.R.disconnect();this.wa.disconnect();this.F.disconnect();this.C.disconnect()};b.prototype.Kb=L("R");f.prototype.Vb=function(a){this.F.disconnect();this.F.connect(a);this.C.disconnect();this.C.connect(a)};f.prototype.remove=function(){this.R.disconnect();this.kg.disconnect();
this.Xb.disconnect();this.Wg.disconnect();this.F.disconnect();this.C.disconnect()};f.prototype.Kb=L("R");k.prototype.Vb=function(a){this.F.disconnect();this.F.connect(a);this.C.disconnect();this.C.connect(a)};k.prototype.remove=function(){this.R.disconnect();this.je.disconnect();this.F.disconnect();this.C.disconnect()};k.prototype.Kb=L("R");h.prototype.Vb=function(a){this.C.disconnect();this.C.connect(a);this.F.disconnect();this.F.connect(a)};h.prototype.remove=function(){this.R.disconnect();this.Xb.disconnect();
this.Ma.disconnect();this.Db.disconnect();this.C.disconnect();this.F.disconnect();this.$g.disconnect()};h.prototype.Kb=L("R");g.prototype.Vb=function(a){this.C.disconnect();this.C.connect(a);this.F.disconnect();this.F.connect(a)};g.prototype.remove=function(){this.R.disconnect();this.wa.disconnect();this.Ma.disconnect();this.Db.disconnect();this.C.disconnect();this.F.disconnect()};g.prototype.Kb=L("R");x.prototype.Vb=function(a){this.T.disconnect();this.T.connect(a)};x.prototype.remove=function(){this.T.disconnect()};
x.prototype.Kb=L("T");z.prototype.Vb=function(a){this.T.disconnect();this.T.connect(a)};z.prototype.remove=function(){this.Ma.disconnect();this.Db.disconnect();this.T.disconnect()};z.prototype.Kb=L("T");H.prototype.Vb=function(a){this.F.disconnect();this.F.connect(a);this.C.disconnect();this.C.connect(a)};H.prototype.remove=function(){this.Ma.disconnect();this.Ag.disconnect();this.R.disconnect();this.F.disconnect();this.C.disconnect()};H.prototype.Kb=L("R");p.prototype.Gr=function(a,b){0.01>a&&(a=
0.01);this.Sh.gain.value=a;this.Rh.gain.value=Math.pow(1/a,0.6)*b};p.prototype.shape=function(a,b,c){var d=1.05*c*b-b;c=0>a?-1:1;a=0>a?-a:a;b=a<b?a:b+d*(1-Math.exp(-(1/d)*(a-b)));return b*c};p.prototype.Zp=function(a,b){for(var c=Math.pow(10,a/20),d=Math.pow(10,b/20),f=0,e=0;32768>e;++e)f=e/32768,f=this.shape(f,c,d),this.Ug[32768+e]=f,this.Ug[32768-e-1]=-f};p.prototype.Vb=function(a){this.F.disconnect();this.F.connect(a);this.C.disconnect();this.C.connect(a)};p.prototype.remove=function(){this.R.disconnect();
this.Sh.disconnect();this.pi.disconnect();this.Rh.disconnect();this.F.disconnect();this.C.disconnect()};p.prototype.Kb=L("R");l.prototype.Vb=function(a){this.T.disconnect();this.T.connect(a)};l.prototype.remove=function(){this.T.disconnect()};l.prototype.Kb=L("T");u.prototype.ab=function(){this.T.getFloatFrequencyData(this.Xp);this.T.getByteTimeDomainData(this.An);for(var a=this.T.fftSize,b=0,c=this.tg=0,d=0;b<a;b++)d=(this.An[b]-128)/128,0>d&&(d=-d),this.tg<d&&(this.tg=d),c+=d*d;this.tg=e(this.tg);
e(Math.sqrt(c/a))};u.prototype.Vb=function(a){this.T.disconnect();this.T.connect(a)};u.prototype.remove=function(){this.T.disconnect()};u.prototype.Kb=L("T");t.prototype.Bg=function(a){if(this.D=a)this.wh=this.D.x,this.xh=this.D.y;this.$d.length=0};t.prototype.nh=function(){return!!this.D};t.prototype.ab=function(a){this.D&&0!==a&&(this.Pj=Ha(this.wh,this.xh,this.D.x,this.D.y),a=Qa(this.wh,this.xh,this.D.x,this.D.y)/a,4>this.$d.length||this.$d.shift(),this.$d.push(a),this.wh=this.D.x,this.xh=this.D.y)};
t.prototype.Rl=function(){if(!this.$d.length)return 0;var a,b,c=0;a=0;for(b=this.$d.length;a<b;a++)c+=this.$d[a];return c/this.$d.length};t.prototype.jj=function(){return Math.cos(this.Pj)*this.Rl()};t.prototype.kj=function(){return Math.sin(this.Pj)*this.Rl()};var ic=!1;v.prototype.ep=function(){if(!this.$&&this.ge){var a=this;if(s.decodeAudioData)s.decodeAudioData(this.ge,function(b){a.$=b;a.ge=null;var c,d,f;if(ea(a.Ph)||na)ea(a.Pg)||(c=a.Pg.je,c.normalize=a.Km,c.buffer=b);else if(a.ff.length){c=
0;for(d=a.ff.length;c<d;c++){b=a.ff[c];f=new A(a,b.Kn);f.tk(!0);if("undefined"!==typeof b.Mm&&(b.D=I.hh(b.Mm),!b.D))continue;if(b.D){var e=Pa(b.D.x,b.D.y,-b.D.e.xa(),Ca,Da,!0),h=Pa(b.D.x,b.D.y,-b.D.e.xa(),Ca,Da,!1);f.sk(e,h,za(b.D.g-b.D.e.xa()),b.oj,b.Rj,b.Uj);f.Bg(b.D)}else f.sk(b.x,b.y,b.Fo,b.oj,b.Rj,b.Uj);f.play(a.Lj,a.Jk,a.Yh);a.Oh&&f.pause();C.push(f)}a.ff.length=0}else f=new A(a,a.Ph),f.play(a.Lj,a.Jk,a.Yh),a.Oh&&f.pause(),C.push(f)},function(){a.Vi=!0});else if(this.$=s.createBuffer(this.ge,
!1),this.ge=null,ea(this.Ph)||na)ea(this.Pg)||(b=this.Pg.je,b.normalize=this.Km,b.buffer=this.$);else{var b=new A(this,this.Ph);b.play(this.Lj,this.Jk,this.Yh);this.Oh&&b.pause();C.push(b)}}};v.prototype.Zl=function(){switch(this.W){case E:var a=4<=this.$.readyState;a&&(this.Kk=!0);return a||this.Kk;case w:return!!this.ge||!!this.$;case F:return!0;case B:return!0}return!1};v.prototype.Nq=function(){switch(this.W){case E:return this.Zl();case w:return!!this.$;case F:return!0;case B:return!0}return!1};
v.prototype.Eq=function(){switch(this.W){case E:return!!this.$.error;case w:return this.Vi}return!1};A.prototype.Of=function(){var a;switch(this.W){case E:return this.j.ended;case w:if(this.buffer.W===w){if(!this.Ld&&!this.jc&&this.j.loop||this.od)return!1;a=this.Ve?I.cc.da:I.zd.da;return a-this.startTime>this.buffer.$.duration}return this.j.ended;case F:return this.ak;case B:!0}return!0};A.prototype.Uo=function(){return this.Ld||this.jc?!0:this.Of()};A.prototype.tk=function(a){D===w&&(!this.Pc&&
a?this.Ia&&(this.qa||(this.qa=s.createPanner(),this.qa.panningModel="number"===typeof this.qa.panningModel?kb:["equalpower","HRTF","soundfield"][kb],this.qa.distanceModel="number"===typeof this.qa.distanceModel?lb:["linear","inverse","exponential"][lb],this.qa.refDistance=fc,this.qa.maxDistance=gc,this.qa.rolloffFactor=hc),this.Ia.disconnect(),this.Ia.connect(this.qa),this.qa.connect(m(this.ae)),this.Pc=!0):this.Pc&&!a&&this.Ia&&(this.qa.disconnect(),this.Ia.disconnect(),this.Ia.connect(m(this.ae)),
this.Pc=!1))};A.prototype.sk=function(a,b,c,d,f,e){this.Pc&&D===w&&(this.qa.setPosition(a,b,0),this.qa.setOrientation(Math.cos(R(c)),Math.sin(R(c)),0),this.qa.coneInnerAngle=d,this.qa.coneOuterAngle=f,this.qa.coneOuterGain=e,this.an=a,this.bn=b,this.Xm=c,this.Ym=d,this.Zm=f,this.$m=e)};A.prototype.Bg=function(a){this.Pc&&D===w&&(this.pa||(this.pa=new t),this.pa.Bg(a))};A.prototype.ab=function(a){if(this.Pc&&D===w&&this.pa&&this.pa.nh()&&this.Te()){this.pa.ab(a);a=this.pa.D;var b=Pa(a.x,a.y,-a.e.xa(),
Ca,Da,!0),c=Pa(a.x,a.y,-a.e.xa(),Ca,Da,!1);this.qa.setPosition(b,c,0);b=0;"undefined"!==typeof this.pa.D.g&&(b=a.g-a.e.xa(),this.qa.setOrientation(Math.cos(b),Math.sin(b),0));b=Pa(this.pa.jj(),this.pa.kj(),-a.e.xa(),0,0,!0);c=Pa(this.pa.jj(),this.pa.kj(),-a.e.xa(),0,0,!1);this.qa.setVelocity(b,c,0)}};A.prototype.play=function(b,c,d){var f=this.j;this.rd=b;this.volume=c;d=d||0;switch(this.W){case E:1!==f.playbackRate&&(f.playbackRate=1);f.volume!==c*oa&&(f.volume=c*oa);f.loop!==b&&(f.loop=b);f.muted&&
(f.muted=!1);if(f.currentTime!==d)try{f.currentTime=d}catch(e){}if(this.vc&&Ja&&!I.Lc)Ka.push(this);else try{this.j.play()}catch(h){console&&console.log&&console.log("[C2] WARNING: exception trying to play audio '"+this.buffer.src+"': ",h)}break;case w:this.muted=!1;this.mg=1;if(this.buffer.W===w)this.Ld||(this.j=s.createBufferSource(),this.j.buffer=this.buffer.$,this.j.connect(this.Ia)),this.j.loop=b,this.Ia.gain.value=c*oa,0===d?q(this.j):a(this.j,d,this.Pe());else{1!==f.playbackRate&&(f.playbackRate=
1);f.loop!==b&&(f.loop=b);this.Ia.gain.value=c*oa;if(f.currentTime!==d)try{f.currentTime=d}catch(k){}this.vc&&Ja&&!I.Lc?Ka.push(this):f.play()}break;case F:(!this.Ld&&this.jc||0!==d)&&f.seekTo(d);f.play();this.ak=!1;break;case B:I.kb?AppMobi.context.playSound(this.src,b):AppMobi.player.playSound(this.src,b)}this.playbackRate=1;this.startTime=(this.Ve?I.cc.da:I.zd.da)-d;this.od=this.jc=this.Ld=!1};A.prototype.stop=function(){switch(this.W){case E:this.j.paused||this.j.pause();break;case w:this.buffer.W===
w?c(this.j):this.j.paused||this.j.pause();break;case F:this.j.stop();break;case B:I.kb&&AppMobi.context.stopSound(this.src)}this.jc=!0;this.od=!1};A.prototype.pause=function(){if(!(this.Ld||this.jc||this.Of()||this.od)){switch(this.W){case E:this.j.paused||this.j.pause();break;case w:this.buffer.W===w?(this.Ac=this.hj(),this.rd&&(this.Ac%=this.Pe()),c(this.j)):this.j.paused||this.j.pause();break;case F:this.j.pause();break;case B:I.kb&&AppMobi.context.stopSound(this.src)}this.od=!0}};A.prototype.tr=
function(a){this.W===w&&(this.Pc?(this.qa.disconnect(),this.qa.connect(a)):(this.Ia.disconnect(),this.Ia.connect(a)))};A.prototype.Pe=function(){switch(this.W){case E:if("undefined"!==typeof this.j.duration)return this.j.duration;break;case w:return this.buffer.$.duration;case F:return this.j.getDuration();case B:if(I.kb)return AppMobi.context.getDurationSound(this.src)}return 0};A.prototype.hj=function(){var a=this.Pe(),b=0;switch(this.W){case E:"undefined"!==typeof this.j.currentTime&&(b=this.j.currentTime);
break;case w:if(this.buffer.W===w){if(this.od)return this.Ac;b=(this.Ve?I.cc.da:I.zd.da)-this.startTime}else"undefined"!==typeof this.j.currentTime&&(b=this.j.currentTime);break;case B:I.kb&&(b=AppMobi.context.getPlaybackTimeSound(this.src))}!this.rd&&b>a&&(b=a);return b};A.prototype.Te=function(){return!this.od&&!this.Ld&&!this.jc&&!this.Of()};A.prototype.Wr=function(){var a=this.volume*oa;switch(this.W){case E:this.j.volume&&this.j.volume!==a&&(this.j.volume=a);break;case w:this.Ia.gain.value=a*
this.mg}};A.prototype.Xg=function(a){switch(this.W){case E:this.j.muted!==!!a&&(this.j.muted=!!a);break;case w:this.mg=a?0:1,this.Ia.gain.value=oa*this.volume*this.mg}};A.prototype.Hr=function(){this.Xe=!0;this.Xg(this.Xe||this.Wf)};A.prototype.vn=function(a){this.Wf=!!a;this.Xg(this.Xe||this.Wf)};A.prototype.Wn=function(){var a=this.playbackRate;this.Ve&&(a*=I.pf);switch(this.W){case E:this.j.playbackRate!==a&&(this.j.playbackRate=a);break;case w:this.buffer.W===w?this.j.playbackRate.value!==a&&
(this.j.playbackRate.value=a):this.j.playbackRate!==a&&(this.j.playbackRate=a)}};A.prototype.Jr=function(b){switch(this.W){case E:b?this.Te()?(this.j.pause(),this.vd=!0):this.vd=!1:this.vd&&this.j.play();break;case w:b?this.Te()?(this.buffer.W===w?(this.Ac=this.hj(),this.rd&&(this.Ac%=this.Pe()),c(this.j)):this.j.pause(),this.vd=!0):this.vd=!1:this.vd&&(this.buffer.W===w?(this.j=s.createBufferSource(),this.j.buffer=this.buffer.$,this.j.connect(this.Ia),this.j.loop=this.rd,this.Ia.gain.value=oa*this.volume*
this.mg,this.startTime=(this.Ve?I.cc.da:I.zd.da)-this.Ac,a(this.j,this.Ac,this.Pe())):this.j.play());break;case F:b?this.Te()?(this.j.pause(),this.vd=!0):this.vd=!1:this.vd&&this.j.play()}};U.ob=function(a){this.type=a;I=this.b=a.b;K=this;this.cb=null;this.dg=-600;!(this.b.uh||this.b.oh&&(this.b.Sf||this.b.ph))||this.b.Tf||this.b.Ca||(Ja=!0);s=null;"undefined"!==typeof AudioContext?(D=w,s=new AudioContext):"undefined"!==typeof webkitAudioContext&&(D=w,s=new webkitAudioContext);(this.b.uh&&D===w||
Ja)&&document.addEventListener("touchstart",function(){var a,b,c;!ic&&s&&(a=s.createBuffer(1,1,22050),b=s.createBufferSource(),b.buffer=a,b.connect(s.destination),q(b),ic=!0);if(Ja){if(!na)for(a=0,b=Ka.length;a<b;++a)c=Ka[a],c.jc||c.od||c.j.play();Ka.length=0}},!0);D!==w&&(this.b.ac&&"undefined"!==typeof window.Media?D=F:this.b.Se&&(D=B));D===F&&(r=location.href,a=r.lastIndexOf("/"),-1<a&&(r=r.substr(0,a+1)),r=r.replace("file://",""));if(this.b.$l&&this.b.Oq&&"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.de(this);else{if(this.b.kb)Q=this.b.oh;else try{Q=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(b){Q=!1}this.b.Ak(this)}};var fa=U.ob.prototype;fa.ya=function(){this.b.Le=this;Va=this.L[0];this.wd=this.L[1];this.kr=0!==this.L[2];kb=this.L[3];lb=this.L[4];this.dg=-this.L[5];fc=this.L[6];gc=this.L[7];hc=this.L[8];this.cb=new t;D===w&&(s.listener.speedOfSound=this.L[9],s.listener.dopplerFactor=this.L[10],s.listener.setPosition(this.b.N/2,this.b.M/2,this.dg),s.listener.setOrientation(0,
0,1,0,-1,0),window.c2OnAudioMicStream=function(a,b){wa&&wa.disconnect();jb=b.toLowerCase();wa=s.createMediaStreamSource(a);wa.connect(m(jb))});this.b.Lo(function(a){K.hr(a)});var a=this;this.b.Jo(function(b){a.dr(b)})};fa.dr=function(a){var b,c,d;b=0;for(c=C.length;b<c;b++)d=C[b],d.pa&&d.pa.D===a&&(d.pa.D=null,d.Pc&&d.Te()&&d.rd&&d.stop());this.cb.D===a&&(this.cb.D=null)};fa.Nb=function(){var a={silent:na,masterVolume:oa,listenerZ:this.dg,listenerUid:this.cb.nh()?this.cb.D.uid:-1,playing:[],effects:{}},
b=a.playing,c,d,f,e,h,k;c=0;for(d=C.length;c<d;c++)f=C[c],!f.Te()||3===this.wd||f.vc&&1===this.wd||!f.vc&&2===this.wd||(e=f.hj(),f.rd&&(e%=f.Pe()),e={tag:f.ae,buffersrc:f.buffer.src,is_music:f.vc,playbackTime:e,volume:f.volume,looping:f.rd,muted:f.Xe,playbackRate:f.playbackRate,paused:f.od,resume_position:f.Ac},f.Pc&&(e.pan={},k=e.pan,f.pa&&f.pa.nh()?k.objUid=f.pa.D.uid:(k.x=f.an,k.y=f.bn,k.a=f.Xm),k.ia=f.Ym,k.oa=f.Zm,k.og=f.$m),b.push(e));b=a.effects;for(h in O)if(O.hasOwnProperty(h)){f=[];c=0;for(d=
O[h].length;c<d;c++)f.push({type:O[h][c].type,params:O[h][c].yc});b[h]=f}return a};var La=[];fa.xc=function(a){var c=a.silent;oa=a.masterVolume;this.dg=a.listenerZ;this.cb.Bg(null);var d=a.listenerUid;-1!==d&&(this.cb.Fh=d,La.push(this.cb));var d=a.playing,e,m,n,v,q,r,A,K,y,s,w;if(3!==this.wd)for(e=0,m=C.length;e<m;e++)y=C[e],y.vc&&1===this.wd||(y.vc||2!==this.wd)&&y.stop();for(q in O)if(O.hasOwnProperty(q))for(e=0,m=O[q].length;e<m;e++)O[q][e].remove();Ta(O);for(q in a.effects)if(a.effects.hasOwnProperty(q))for(r=
a.effects[q],e=0,m=r.length;e<m;e++)switch(n=r[e].type,s=r[e].params,n){case "filter":W(q,new b(s[0],s[1],s[2],s[3],s[4],s[5]));break;case "delay":W(q,new f(s[0],s[1],s[2]));break;case "convolve":n=s[2];y=this.eh(n,!1);y.$?n=new k(y.$,s[0],s[1],n):(n=new k(null,s[0],s[1],n),y.Km=s[0],y.Pg=n);W(q,n);break;case "flanger":W(q,new h(s[0],s[1],s[2],s[3],s[4]));break;case "phaser":W(q,new g(s[0],s[1],s[2],s[3],s[4],s[5]));break;case "gain":W(q,new x(s[0]));break;case "tremolo":W(q,new z(s[0],s[1]));break;
case "ringmod":W(q,new H(s[0],s[1]));break;case "distortion":W(q,new p(s[0],s[1],s[2],s[3],s[4]));break;case "compressor":W(q,new l(s[0],s[1],s[2],s[3],s[4]));break;case "analyser":W(q,new u(s[0],s[1]))}e=0;for(m=d.length;e<m;e++)3===this.wd||(a=d[e],n=a.buffersrc,v=a.is_music,q=a.tag,r=a.playbackTime,A=a.looping,K=a.volume,w=(s=a.pan)&&s.hasOwnProperty("objUid")?s.objUid:-1,v&&1===this.wd)||!v&&2===this.wd||((y=this.Kl(n,q,v,A,K))?(y.Ac=a.resume_position,y.tk(!!s),y.play(A,K,r),y.Wn(),y.Wr(),y.Xg(y.Xe||
y.Wf),a.paused&&y.pause(),a.muted&&y.Hr(),y.Xg(y.Xe||y.Wf),s&&(-1!==w?(y.pa=y.pa||new t,y.pa.Fh=w,La.push(y.pa)):y.sk(s.x,s.y,s.a,s.ia,s.oa,s.og))):(y=this.eh(n,v),y.Yh=r,y.Oh=a.paused,s&&(-1!==w?y.ff.push({Mm:w,oj:s.ia,Rj:s.oa,Uj:s.og,Kn:q}):y.ff.push({x:s.x,y:s.y,Fo:s.a,oj:s.ia,Rj:s.oa,Uj:s.og,Kn:q}))));if(c&&!na){e=0;for(m=C.length;e<m;e++)C[e].vn(!0);na=!0}else if(!c&&na){e=0;for(m=C.length;e<m;e++)C[e].vn(!1);na=!1}};fa.Ed=function(){var a,b,c,d;a=0;for(b=La.length;a<b;a++)c=La[a],d=this.b.hh(c.Fh),
c.Bg(d),c.Fh=-1,d&&(Ca=d.x,Da=d.y);La.length=0};fa.hr=function(a){if(!this.kr){!a&&s.resume&&s.resume();var b,c;b=0;for(c=C.length;b<c;b++)C[b].Jr(a);a&&s.suspend&&s.suspend()}};fa.ab=function(){var a=this.b.me,b,c,d;b=0;for(c=C.length;b<c;b++)d=C[b],d.ab(a),d.W===E||d.W===B||d.Ld||d.jc||!d.Of()||(d.jc=!0,J=d.ae,I.trigger(dc.prototype.n.qi,K)),0!==Va&&d.Wn();var f,e;for(f in O)if(O.hasOwnProperty(f))for(d=O[f],b=0,c=d.length;b<c;b++)e=d[b],e.ab&&e.ab();D===w&&this.cb.nh()&&(this.cb.ab(a),Ca=this.cb.D.x,
Da=this.cb.D.y,s.listener.setPosition(this.cb.D.x,this.cb.D.y,this.dg),s.listener.setVelocity(this.cb.jj(),this.cb.kj(),0))};var Ma=[];fa.Ir=function(a){var b,c,d,f,e,h=0;b=0;for(c=a.length;b<c;++b)if(d=a[b],f=d[0],d=2*d[1],(e=4<f.length&&".ogg"===f.substr(f.length-4))&&Q||!e&&!Q)Ma.push({filename:f,size:d,D:null}),h+=d;return h};fa.Nr=function(){var a,b,c,d;a=0;for(b=Ma.length;a<b;++a)c=Ma[a],d=this.b.Wi+c.filename,c.D=this.eh(d,!1)};fa.iq=function(){var a=0,b,c,d;b=0;for(c=Ma.length;b<c;++b)d=Ma[b],
d.D.Nq()||d.D.Eq()||this.b.Ca||this.b.ph?a+=d.size:d.D.Zl()&&(a+=Math.floor(d.size/2));return a};fa.eh=function(a,b){var c,d,f,e=null;c=0;for(d=Z.length;c<d;c++)if(f=Z[c],f.src===a){e=f;break}e||(e=new v(a,b),Z.push(e));return e};fa.Kl=function(a,b,c,d,f){var e,h,k;e=0;for(h=C.length;e<h;e++)if(k=C[e],k.src===a&&(k.Uo()||c))return k.ae=b,k;a=this.eh(a,c);if(!a.$)return"<preload>"!==b&&(a.Ph=b,a.Lj=d,a.Jk=f),null;k=new A(a,b);C.push(k);return k};var Ba=[];y.prototype.qi=function(a){return bb(J,a)};
U.n=new y;G.prototype.Play=function(a,b,c,d){!na&&(c=Math.pow(10,c/20),0>c&&(c=0),1<c&&(c=1),M=this.Kl(this.b.Wi+a[0]+(Q?".ogg":".m4a"),d,a[1],0!==b,c))&&(M.tk(!1),M.play(0!==b,c))};U.Wa=new G;U.Yb=new (aa())})();function X(e){this.b=e}
(function(){function e(){if(0===this.Mi.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.nf?b.drawImage(this.nb,this.df,this.ef,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.nb,0,0,this.width,this.height);this.Mi=a.toDataURL("image/png")}return this.Mi}function m(){}var d=X.prototype;d.oc=function(a){this.Ea=a;this.b=a.b};var n=d.oc.prototype;n.ya=function(){if(!this.S){var a,b,c,d,n,m,q,p,l;this.qc=[];this.Pf=
!1;a=0;for(b=this.pb.length;a<b;a++){n=this.pb[a];q={};q.name=n[0];q.speed=n[1];q.loop=n[2];q.kk=n[3];q.Xh=n[4];q.en=n[5];q.O=n[6];q.frames=[];c=0;for(d=n[7].length;c<d;c++)m=n[7][c],p={},p.In=m[0],p.Jn=m[1],p.df=m[2],p.ef=m[3],p.width=m[4],p.height=m[5],p.duration=m[6],p.yb=m[7],p.zb=m[8],p.pj=m[9],p.Qh=m[10],p.gn=m[11],p.nf=0!==p.width,p.Mi="",p.tt=e,l={left:0,top:0,right:1,bottom:1},p.vk=l,p.Bd=null,(l=this.b.Wp(m[0]))?p.nb=l:(p.nb=new Image,p.nb.bp=m[0],p.nb.$o=m[1],p.nb.So=null,this.b.cs(p.nb,
m[0])),q.frames.push(p),this.qc.push(p);this.pb[a]=q}}};n.Un=function(){var a,b,c;a=0;for(b=this.d.length;a<b;a++)c=this.d[a],c.Sg=c.Wb.Bd};n.Wj=function(){if(!this.S){var a,b,c;a=0;for(b=this.qc.length;a<b;++a)c=this.qc[a],c.nb.So=null,c.Bd=null;this.Pf=!1;this.Un()}};n.Sm=function(){if(!this.S&&this.d.length){var a,b,c;a=0;for(b=this.qc.length;a<b;++a)c=this.qc[a],c.Bd=this.b.u.nm(c.nb,this.b.Y,c.gn);this.Un()}};n.Wq=function(){if(!this.S&&!this.Pf&&this.b.u){var a,b,c;a=0;for(b=this.qc.length;a<
b;++a)c=this.qc[a],c.Bd=this.b.u.nm(c.nb,this.b.Y,c.gn);this.Pf=!0}};n.Sn=function(){if(!this.S&&!this.d.length&&this.Pf){var a,b,c;a=0;for(b=this.qc.length;a<b;++a)c=this.qc[a],this.b.u.deleteTexture(c.Bd),c.Bd=null;this.Pf=!1}};var q=[];n.kn=function(a){var b,c,d;b=q.length=0;for(c=this.qc.length;b<c;++b)d=this.qc[b].nb,-1===q.indexOf(d)&&(a.drawImage(d,0,0),q.push(d))};d.ob=function(a){this.type=a;this.b=a.b;a=this.type.pb[0].frames[0].Qh;this.gc?this.Dc.Cg(a):this.Dc=new Xa(a)};var a=d.ob.prototype;
a.ya=function(){this.visible=0===this.L[0];this.Af=0!==this.L[3];1===this.type.pb.length&&1===this.type.pb[0].frames.length||0===this.type.pb[0].speed||this.b.Ak(this);this.la=this.Jl(this.L[1])||this.type.pb[0];this.q=this.L[2];0>this.q&&(this.q=0);this.q>=this.la.frames.length&&(this.q=this.la.frames.length-1);var a=this.la.frames[this.q];this.Dc.Cg(a.Qh);this.yb=a.yb;this.zb=a.zb;this.Cf=this.la.speed;this.gc?this.Cc.reset():this.Cc=new Ua;this.ld=this.Cc.da;this.fe=!0;this.Zc=0;this.ee=!0;this.Gi=
this.dl="";this.Xo=0;this.Fi=-1;this.type.Wq();var b,c,d,e,m,n,p,a=0;for(b=this.type.pb.length;a<b;a++)for(e=this.type.pb[a],c=0,d=e.frames.length;c<d;c++)m=e.frames[c],0===m.width&&(m.width=m.nb.width,m.height=m.nb.height),m.nf&&(p=m.nb,n=m.vk,n.left=m.df/p.width,n.top=m.ef/p.height,n.right=(m.df+m.width)/p.width,n.bottom=(m.ef+m.height)/p.height,0===m.df&&0===m.ef&&m.width===p.width&&m.height===p.height&&(m.nf=!1));this.Wb=this.la.frames[this.q];this.Sg=this.Wb.Bd};a.Nb=function(){var a={a:this.la.O,
f:this.q,cas:this.Cf,fs:this.ld,ar:this.Zc,at:this.Cc.da};this.fe||(a.ap=this.fe);this.ee||(a.af=this.ee);return a};a.xc=function(a){var b=this.$p(a.a);b&&(this.la=b);this.q=a.f;0>this.q&&(this.q=0);this.q>=this.la.frames.length&&(this.q=this.la.frames.length-1);this.Cf=a.cas;this.ld=a.fs;this.Zc=a.ar;this.Cc.reset();this.Cc.da=a.at;this.fe=a.hasOwnProperty("ap")?a.ap:!0;this.ee=a.hasOwnProperty("af")?a.af:!0;this.Wb=this.la.frames[this.q];this.Sg=this.Wb.Bd;this.Dc.Cg(this.Wb.Qh);this.yb=this.Wb.yb;
this.zb=this.Wb.zb};a.xi=function(a){this.q=a?0:this.la.frames.length-1;this.fe=!1;this.dl=this.la.name;this.b.trigger(X.prototype.n.jo,this);this.b.trigger(X.prototype.n.io,this);this.Zc=0};a.wt=function(){return this.Cc.da};a.ab=function(){this.Cc.add(this.b.cj(this));this.Gi.length&&this.gp();0<=this.Fi&&this.hp();var a=this.Cc.da,b=this.la,c=b.frames[this.q],d=c.duration/this.Cf;this.fe&&a>=this.ld+d&&(this.ee?this.q++:this.q--,this.ld+=d,this.q>=b.frames.length&&(b.en?(this.ee=!1,this.q=b.frames.length-
2):b.loop?this.q=b.Xh:(this.Zc++,this.Zc>=b.kk?this.xi(!1):this.q=b.Xh)),0>this.q&&(b.en?(this.q=1,this.ee=!0,b.loop||(this.Zc++,this.Zc>=b.kk&&this.xi(!0))):b.loop?this.q=b.Xh:(this.Zc++,this.Zc>=b.kk?this.xi(!0):this.q=b.Xh)),0>this.q?this.q=0:this.q>=b.frames.length&&(this.q=b.frames.length-1),a>this.ld+b.frames[this.q].duration/this.Cf&&(this.ld=a),a=b.frames[this.q],this.Ie(c,a),this.b.ba=!0)};a.Jl=function(a){var b,c,d;b=0;for(c=this.type.pb.length;b<c;b++)if(d=this.type.pb[b],bb(d.name,a))return d;
return null};a.$p=function(a){var b,c,d;b=0;for(c=this.type.pb.length;b<c;b++)if(d=this.type.pb[b],d.O===a)return d;return null};a.gp=function(){var a=this.la.frames[this.q],b=this.Jl(this.Gi);this.Gi="";!b||bb(b.name,this.la.name)&&this.fe||(this.la=b,this.Cf=b.speed,0>this.q&&(this.q=0),this.q>=this.la.frames.length&&(this.q=this.la.frames.length-1),1===this.Xo&&(this.q=0),this.fe=!0,this.ld=this.Cc.da,this.ee=!0,this.Ie(a,this.la.frames[this.q]),this.b.ba=!0)};a.hp=function(){var a=this.la.frames[this.q],
b=this.q;this.q=ma(this.Fi);0>this.q&&(this.q=0);this.q>=this.la.frames.length&&(this.q=this.la.frames.length-1);b!==this.q&&(this.Ie(a,this.la.frames[this.q]),this.ld=this.Cc.da,this.b.ba=!0);this.Fi=-1};a.Ie=function(a,b){var c=a.width,d=a.height,e=b.width,m=b.height;c!=e&&(this.width*=e/c);d!=m&&(this.height*=m/d);this.yb=b.yb;this.zb=b.zb;this.Dc.Cg(b.Qh);this.Oa();this.Wb=b;this.Sg=b.Bd;c=0;for(d=this.K.length;c<d;c++)e=this.K[c],e.Tm&&e.Tm(a,b);this.b.trigger(X.prototype.n.Ie,this)};a.gd=function(a){a.globalAlpha=
this.opacity;var b=this.Wb,c=b.nf,d=b.nb,e=this.x,m=this.y,n=this.width,p=this.height;if(0===this.g&&0<=n&&0<=p)e-=this.yb*n,m-=this.zb*p,this.b.Td&&(e=Math.round(e),m=Math.round(m)),c?a.drawImage(d,b.df,b.ef,b.width,b.height,e,m,n,p):a.drawImage(d,e,m,n,p);else{this.b.Td&&(e=Math.round(e),m=Math.round(m));a.save();var l=0<n?1:-1,q=0<p?1:-1;a.translate(e,m);1===l&&1===q||a.scale(l,q);a.rotate(this.g*l*q);e=0-this.yb*ja(n);m=0-this.zb*ja(p);c?a.drawImage(d,b.df,b.ef,b.width,b.height,e,m,ja(n),ja(p)):
a.drawImage(d,e,m,ja(n),ja(p));a.restore()}};a.sc=function(a){a.Ob(this.Sg);a.kf(this.opacity);var b=this.Wb,c=this.ie;if(this.b.Td){var d=Math.round(this.x)-this.x,e=Math.round(this.y)-this.y;b.nf?a.Ud(c.fb+d,c.gb+e,c.lc+d,c.mc+e,c.Tb+d,c.Ub+e,c.Rb+d,c.Sb+e,b.vk):a.Vh(c.fb+d,c.gb+e,c.lc+d,c.mc+e,c.Tb+d,c.Ub+e,c.Rb+d,c.Sb+e)}else b.nf?a.Ud(c.fb,c.gb,c.lc,c.mc,c.Tb,c.Ub,c.Rb,c.Sb,b.vk):a.Vh(c.fb,c.gb,c.lc,c.mc,c.Tb,c.Ub,c.Rb,c.Sb)};a.dq=function(a){var b=this.Wb,c,d;c=0;for(d=b.pj.length;c<d;c++)if(bb(a,
b.pj[c][0]))return c;return-1};a.fj=function(a,b){var c=this.Wb,d=c.pj,e;e=P(a)?this.dq(a):a-1;e=ma(e);if(0>e||e>=d.length)return b?this.x:this.y;var m=(d[e][1]-c.yb)*this.width,d=d[e][2],d=(d-c.zb)*this.height,c=Math.cos(this.g);e=Math.sin(this.g);var n=m*c-d*e,d=d*c+m*e,m=n+this.x,d=d+this.y;return b?m:d};var c=new ca,b=!1;n.finish=function(a){if(b){if(a){var d=this.b.ub().rc.Oc;a=null.ja();var e=c.sf(),g,m;if(a.na){a.na=!1;a.d.length=e.length;g=0;for(m=e.length;g<m;g++)a.d[g]=e[g];if(d)for(g=a.X.length=
0,m=null.d.length;g<m;g++)e=null.d[g],c.contains(e)||a.X.push(e)}else if(d)for(d=a.d.length,a.d.length=d+e.length,g=0,m=e.length;g<m;g++)a.d[d+g]=e[g],ya(a.X,e[g]);else va(a.d,e);null.Fd()}c.clear();b=!1}};m.prototype.io=function(a){return bb(this.dl,a)};m.prototype.jo=N(!0);m.prototype.Ie=N(!0);d.n=new m;d.Wa=new (aa());d.Yb=new (aa())})();function ec(e){this.b=e}
(function(){function e(){return c.length?c.pop():{}}function m(a){var d,e;d=0;for(e=a.length;d<e;d++)c.push(a[d]);a.length=0}function d(){}var n=ec.prototype;n.ya=function(){n.Wa.xo=function(a){this.width!==a&&(this.width=a,this.De=!0,this.Oa())}};n.oc=function(a){this.Ea=a;this.b=a.b};var q=n.oc.prototype;q.ya=aa();q.Wj=function(){if(!this.S){var a,c,d;a=0;for(c=this.d.length;a<c;a++)d=this.d[a],d.Nc=null,d.Ae=null,d.Cb=null}};n.ob=function(a){this.type=a;this.b=a.b;this.gc?this.Pd.length=0:this.Pd=
[];this.De=!0};q=n.ob.prototype;q.ya=function(){this.text=this.L[0];this.visible=0===this.L[1];this.font=this.L[2];this.color=this.L[3];this.mh=this.L[4];this.oi=this.L[5];this.Nk=0===this.L[7];this.Dj=this.Ah=this.width;this.zh=this.height;this.Gj=this.L[8];this.bh=this.Ne="";this.Gn=this.Hn=this.wg=0;this.ir();this.Cb=this.Ae=this.Nc=null;this.Im=!1;this.cg=this.b.Vc;this.gc?this.jf.set(0,0,1,1):this.jf=new ra(0,0,1,1);this.b.u&&this.b.Ak(this)};q.ir=function(){var a=this.font.split(" "),c;for(c=
0;c<a.length;c++)if("pt"===a[c].substr(a[c].length-2,2)){this.wg=parseInt(a[c].substr(0,a[c].length-2));this.gk=Math.ceil(96*(this.wg/72))+4;0<c&&(this.bh=a[c-1]);this.Ne=a[c+1];for(c+=2;c<a.length;c++)this.Ne+=" "+a[c];break}};q.Nb=function(){return{t:this.text,f:this.font,c:this.color,ha:this.mh,va:this.oi,wr:this.Nk,lho:this.Gj,fn:this.Ne,fs:this.bh,ps:this.wg,pxh:this.gk,tw:this.Hn,th:this.Gn,lrt:this.cg}};q.xc=function(a){this.text=a.t;this.font=a.f;this.color=a.c;this.mh=a.ha;this.oi=a.va;this.Nk=
a.wr;this.Gj=a.lho;this.Ne=a.fn;this.bh=a.fs;this.wg=a.ps;this.gk=a.pxh;this.Hn=a.tw;this.Gn=a.th;this.cg=a.lrt;this.De=!0;this.Dj=this.Ah=this.width;this.zh=this.height};q.ab=function(){if(this.b.u&&this.Cb&&300<=this.b.Vc-this.cg){var a=this.e;this.hb();var c=this.bb;if(c.right<a.Sa||c.bottom<a.Ta||c.left>a.Gb||c.top>a.Fb)this.b.u.deleteTexture(this.Cb),this.Nc=this.Ae=this.Cb=null}};q.Mh=function(){this.Nc=this.Ae=null;this.b.u&&this.Cb&&this.b.u.deleteTexture(this.Cb);this.Cb=null};q.Et=function(){this.font=
this.bh+" "+this.wg.toString()+"pt "+this.Ne;this.De=!0;this.b.ba=!0};q.gd=function(a,c){a.font=this.font;a.textBaseline="top";a.fillStyle=this.color;a.globalAlpha=c?1:this.opacity;var d=1;c&&(d=this.e.wb(),a.save(),a.scale(d,d));if(this.De||this.width!==this.Dj)this.type.Ea.Bo(this.text,this.Pd,a,this.width,this.Nk),this.De=!1,this.Dj=this.width;this.hb();var d=c?0:this.ie.fb,e=c?0:this.ie.gb;this.b.Td&&(d=d+0.5|0,e=e+0.5|0);0===this.g||c||(a.save(),a.translate(d,e),a.rotate(this.g),e=d=0);var g=
e+this.height,m=this.gk,m=m+this.Gj,n,q;1===this.oi?e+=Math.max(this.height/2-this.Pd.length*m/2,0):2===this.oi&&(e+=Math.max(this.height-this.Pd.length*m-2,0));for(q=0;q<this.Pd.length&&!(n=d,1===this.mh?n=d+(this.width-this.Pd[q].width)/2:2===this.mh&&(n=d+(this.width-this.Pd[q].width)),a.fillText(this.Pd[q].text,n,e),e+=m,e>=g-m);q++);(0!==this.g||c)&&a.restore();this.cg=this.b.Vc};q.sc=function(a){if(!(1>this.width||1>this.height)){var c=this.De||this.Im;this.Im=!1;var d=this.e.wb(),e=this.e.xa(),
g=this.jf,m=d*this.width,n=d*this.height,q=Math.ceil(m),p=Math.ceil(n),l=this.b.N/2,u=this.b.M/2;this.Ae||(this.Nc=document.createElement("canvas"),this.Nc.width=q,this.Nc.height=p,this.Ah=q,this.zh=p,c=!0,this.Ae=this.Nc.getContext("2d"));if(q!==this.Ah||p!==this.zh)this.Nc.width=q,this.Nc.height=p,this.Cb&&(a.deleteTexture(this.Cb),this.Cb=null),c=!0;c&&(this.Ae.clearRect(0,0,q,p),this.gd(this.Ae,!0),this.Cb||(this.Cb=a.bd(q,p,this.b.Y,this.b.Mc)),a.bs(this.Nc,this.Cb,this.b.Mc));this.Ah=q;this.zh=
p;a.Ob(this.Cb);a.kf(this.opacity);a.Qc();a.translate(-l,-u);a.Xc();var t=this.ie,c=this.e.Da(t.fb,t.gb,!0),l=this.e.Da(t.fb,t.gb,!1),u=this.e.Da(t.lc,t.mc,!0),v=this.e.Da(t.lc,t.mc,!1),A=this.e.Da(t.Tb,t.Ub,!0),W=this.e.Da(t.Tb,t.Ub,!1),y=this.e.Da(t.Rb,t.Sb,!0),t=this.e.Da(t.Rb,t.Sb,!1);if(this.b.Td||0===this.g&&0===e)var G=(c+0.5|0)-c,U=(l+0.5|0)-l,c=c+G,l=l+U,u=u+G,v=v+U,A=A+G,W=W+U,y=y+G,t=t+U;0===this.g&&0===e?(u=c+q,v=l,A=u,W=l+p,y=c,t=W,g.right=1,g.bottom=1):(g.right=m/q,g.bottom=n/p);a.Ud(c,
l,u,v,A,W,y,t,g);a.Qc();a.scale(d,d);a.mk(-this.e.xa());a.translate((this.e.Sa+this.e.Gb)/-2,(this.e.Ta+this.e.Fb)/-2);a.Xc();this.cg=this.b.Vc}};var a=[];n.zo=function(b){a.length=0;for(var c="",d,e=0;e<b.length;)if(d=b.charAt(e),"\n"===d)c.length&&(a.push(c),c=""),a.push("\n"),++e;else if(" "===d||"\t"===d||"-"===d){do c+=b.charAt(e),e++;while(e<b.length&&(" "===b.charAt(e)||"\t"===b.charAt(e)));a.push(c);c=""}else e<b.length&&(c+=d,e++);c.length&&a.push(c)};var c=[];n.Bo=function(a,c,d,h,g){if(a&&
a.length)if(2>=h)m(c);else{if(100>=a.length&&-1===a.indexOf("\n")){var n=d.measureText(a).width;if(n<=h){m(c);c.push(e());c[0].text=a;c[0].width=n;return}}this.Co(a,c,d,h,g)}else m(c)};n.Co=function(b,d,k,h,g){g&&(this.zo(b),b=a);var m="",n,q,p,l=0;for(p=0;p<b.length;p++)"\n"===b[p]?(l>=d.length&&d.push(e()),q=d[l],q.text=m,q.width=k.measureText(m).width,l++,m=""):(n=m,m+=b[p],q=k.measureText(m).width,q>=h&&(l>=d.length&&d.push(e()),q=d[l],q.text=n,q.width=k.measureText(n).width,l++,m=b[p],g||" "!==
m||(m="")));m.length&&(l>=d.length&&d.push(e()),q=d[l],q.text=m,q.width=k.measureText(m).width,l++);for(p=l;p<d.length;p++)c.push(d[p]);d.length=l};n.n=new (aa());d.prototype.wo=function(a){ga(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.De=!0,this.b.ba=!0)};n.Wa=new d;n.Yb=new (aa())})();function Y(e){this.b=e}
(function(){function e(a){k=a.x;h=a.y;g=a.z}function m(a){x=a.x;z=a.y;H=a.z}function d(a,b,c,d){var e;e=p.length?p.pop():new n;e.init(a,b,c,d);return e}function n(){this.Eg=this.id=this.y=this.x=this.ei=this.di=this.Cj=this.time=this.xk=0;this.Ig=this.li=!1}function q(){}function a(){}var c=Y.prototype;c.oc=function(a){this.Ea=a;this.b=a.b};c.oc.prototype.ya=aa();c.ob=function(a){this.type=a;this.b=a.b;this.touches=[];this.Oj=!1};var b=c.ob.prototype,f={left:0,top:0};b.If=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 k=0,h=0,g=0,x=0,z=0,H=0,p=[];n.prototype.init=function(a,b,c,d){var e=S();this.xk=this.Cj=this.time=e;this.di=a;this.ei=b;this.x=a;this.y=b;this.id=c;this.Eg=d;this.Ig=this.li=!1};n.prototype.update=function(a,b,c){this.Cj=this.time;this.time=a;this.x=b;this.y=c;!this.Ig&&15<=Qa(this.di,this.ei,this.x,this.y)&&(this.Ig=!0)};n.prototype.Yq=function(a,b){!this.li&&500<=S()-this.xk&&!this.Ig&&15>Qa(this.di,this.ei,this.x,
this.y)&&(this.li=!0,a.Wc=this.Eg,a.qf=this.id,a.Qe=b,a.b.trigger(Y.prototype.n.po,a),a.dd=this.x,a.ed=this.y,a.b.trigger(Y.prototype.n.qo,a),a.Qe=0)};var l=-1E3,u=-1E3,t=-1E4;n.prototype.Dm=function(a,b){if(!this.li){var c=S();333>=c-this.xk&&!this.Ig&&15>Qa(this.di,this.ei,this.x,this.y)&&(a.Wc=this.Eg,a.qf=this.id,a.Qe=b,666>=c-t&&25>Qa(l,u,this.x,this.y)?(a.b.trigger(Y.prototype.n.no,a),a.dd=this.x,a.ed=this.y,a.b.trigger(Y.prototype.n.oo,a),u=l=-1E3,t=-1E4):(a.b.trigger(Y.prototype.n.to,a),a.dd=
this.x,a.ed=this.y,a.b.trigger(Y.prototype.n.uo,a),l=this.x,u=this.y,t=c),a.Qe=0)}};b.ya=function(){this.Pq=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.Qe=this.qf=this.Wc=this.ed=this.dd=this.$k=this.Zk=this.Yk=this.Io=this.Ho=this.Go=this.sg=this.rg=this.qg=0;this.Zr=0!==this.L[0];var a=0<this.b.tb?document:this.b.canvas,b=document;this.b.kb?b=a=window.Canvas:this.b.$b&&(b=a=window);var c=this;window.navigator.pointerEnabled?(a.addEventListener("pointerdown",function(a){c.Rm(a)},
!1),a.addEventListener("pointermove",function(a){c.Qm(a)},!1),b.addEventListener("pointerup",function(a){c.Nh(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.Nh(a,!0)},!1),this.b.canvas&&(this.b.canvas.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),document.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),this.b.canvas.addEventListener("gesturehold",function(a){a.preventDefault()},!1),document.addEventListener("gesturehold",function(a){a.preventDefault()},
!1))):window.navigator.msPointerEnabled?(a.addEventListener("MSPointerDown",function(a){c.Rm(a)},!1),a.addEventListener("MSPointerMove",function(a){c.Qm(a)},!1),b.addEventListener("MSPointerUp",function(a){c.Nh(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.Nh(a,!0)},!1),this.b.canvas&&(this.b.canvas.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),document.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1))):(a.addEventListener("touchstart",function(a){c.Vm(a)},
!1),a.addEventListener("touchmove",function(a){c.Um(a)},!1),b.addEventListener("touchend",function(a){c.Xj(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.Xj(a,!0)},!1));if(this.Pq){var d=function(a){a=a.reading;c.Yk=a.accelerationX;c.Zk=a.accelerationY;c.$k=a.accelerationZ},f=function(a){a=a.reading;c.qg=a.yawDegrees;c.rg=a.pitchDegrees;c.sg=a.rollDegrees},g=Windows.Devices.Sensors.Accelerometer.getDefault();g&&(g.reportInterval=Math.max(g.minimumReportInterval,16),g.addEventListener("readingchanged",
d));var h=Windows.Devices.Sensors.Inclinometer.getDefault();h&&(h.reportInterval=Math.max(h.minimumReportInterval,16),h.addEventListener("readingchanged",f));document.addEventListener("visibilitychange",function(){document.hidden||document.msHidden?(g&&g.removeEventListener("readingchanged",d),h&&h.removeEventListener("readingchanged",f)):(g&&g.addEventListener("readingchanged",d),h&&h.addEventListener("readingchanged",f))},!1)}else window.addEventListener("deviceorientation",function(a){c.qg=a.alpha||
0;c.rg=a.beta||0;c.sg=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.Go=a.accelerationIncludingGravity.x||0,c.Ho=a.accelerationIncludingGravity.y||0,c.Io=a.accelerationIncludingGravity.z||0);a.acceleration&&(c.Yk=a.acceleration.x||0,c.Zk=a.acceleration.y||0,c.$k=a.acceleration.z||0)},!1);this.Zr&&!this.b.Ca&&(jQuery(document).mousemove(function(a){c.fr(a)}),jQuery(document).mousedown(function(a){c.er(a)}),jQuery(document).mouseup(function(a){c.gr(a)}));
this.b.Se&&!this.b.kb&&AppMobi.accelerometer.watchAcceleration(e,{frequency:40,adjustForRotation:!0});this.b.ac&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(m,null,{frequency:40});this.b.Qr(this)};b.Qm=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var b=this.If(a.pointerId),c=S();if(0<=b){var d=this.b.Ca?f:jQuery(this.b.canvas).offset(),b=this.touches[b];2>c-b.time||
b.update(c,a.pageX-d.left,a.pageY-d.top)}}};b.Rm=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&cb(a)&&a.preventDefault();var b=this.b.Ca?f:jQuery(this.b.canvas).offset(),c=a.pageX-b.left,b=a.pageY-b.top;S();this.Wc=this.touches.length;this.qf=a.pointerId;this.touches.push(d(c,b,a.pointerId,this.Wc));this.b.Lc=!0;this.b.trigger(Y.prototype.n.Rk,this);this.b.trigger(Y.prototype.n.Tk,this);this.dd=c;this.ed=b;this.b.trigger(Y.prototype.n.ti,this);this.b.Lc=
!1}};b.Nh=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&cb(a)&&a.preventDefault();var c=this.If(a.pointerId);this.Wc=0<=c?this.touches[c].Eg:-1;this.qf=0<=c?this.touches[c].id:-1;this.b.Lc=!0;this.b.trigger(Y.prototype.n.Qk,this);this.b.trigger(Y.prototype.n.Sk,this);0<=c&&(b||this.touches[c].Dm(this,c),100>p.length&&p.push(this.touches[c]),this.touches.splice(c,1));this.b.Lc=!1}};b.Um=function(a){a.preventDefault&&a.preventDefault();var b=S(),
c,d,e,g;c=0;for(d=a.changedTouches.length;c<d;c++)if(e=a.changedTouches[c],g=this.If(e.identifier),0<=g){var h=this.b.Ca?f:jQuery(this.b.canvas).offset();g=this.touches[g];2>b-g.time||g.update(b,e.pageX-h.left,e.pageY-h.top)}};b.Vm=function(a){a.preventDefault&&cb(a)&&a.preventDefault();var b=this.b.Ca?f:jQuery(this.b.canvas).offset();S();this.b.Lc=!0;var c,e,g,h;c=0;for(e=a.changedTouches.length;c<e;c++)if(g=a.changedTouches[c],h=this.If(g.identifier),-1===h){h=g.pageX-b.left;var k=g.pageY-b.top;
this.Wc=this.touches.length;this.qf=g.identifier;this.touches.push(d(h,k,g.identifier,this.Wc));this.b.trigger(Y.prototype.n.Rk,this);this.b.trigger(Y.prototype.n.Tk,this);this.dd=h;this.ed=k;this.b.trigger(Y.prototype.n.ti,this)}this.b.Lc=!1};b.Xj=function(a,b){a.preventDefault&&cb(a)&&a.preventDefault();this.b.Lc=!0;var c,d,e;c=0;for(d=a.changedTouches.length;c<d;c++)e=a.changedTouches[c],e=this.If(e.identifier),0<=e&&(this.Wc=this.touches[e].Eg,this.qf=this.touches[e].id,this.b.trigger(Y.prototype.n.Qk,
this),this.b.trigger(Y.prototype.n.Sk,this),b||this.touches[e].Dm(this,e),100>p.length&&p.push(this.touches[e]),this.touches.splice(e,1));this.b.Lc=!1};b.pt=function(){return this.b.Se&&0===this.qg&&0!==g?90*g:this.b.ac&&0===this.qg&&0!==H?90*H:this.qg};b.qt=function(){return this.b.Se&&0===this.rg&&0!==h?-90*h:this.b.ac&&0===this.rg&&0!==z?-90*z:this.rg};b.ut=function(){return this.b.Se&&0===this.sg&&0!==k?90*k:this.b.ac&&0===this.sg&&0!==x?90*x:this.sg};b.er=function(a){a.preventDefault&&this.b.lj&&
!this.b.Mc&&a.preventDefault();this.Vm({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.Oj=!0};b.fr=function(a){this.Oj&&this.Um({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};b.gr=function(a){a.preventDefault&&this.b.lj&&!this.b.Mc&&a.preventDefault();this.b.lj=!0;this.Xj({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.Oj=!1};b.zk=function(){var a,b,c,d=S();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=d-50&&(c.Cj=d),c.Yq(this,
a)};q.prototype.Tk=N(!0);q.prototype.Sk=N(!0);q.prototype.ti=function(a){return a?this.b.gi(a,this.dd,this.ed):!1};q.prototype.Rk=function(a){a=Math.floor(a);return a===this.Wc};q.prototype.Qk=function(a){a=Math.floor(a);return a===this.Wc};q.prototype.po=N(!0);q.prototype.to=N(!0);q.prototype.no=N(!0);q.prototype.qo=function(a){return a?this.b.gi(a,this.dd,this.ed):!1};q.prototype.uo=function(a){return a?this.b.gi(a,this.dd,this.ed):!1};q.prototype.oo=function(a){return a?this.b.gi(a,this.dd,this.ed):
!1};c.n=new q;a.prototype.Do=function(a,b){var c=this.Qe;if(0>c||c>=this.touches.length)a.H(0);else{var d,e,f,g,h;ea(b)?(d=this.b.Kf(0),e=d.scale,f=d.Cd,g=d.sd,h=d.g,d.scale=1,d.Cd=1,d.sd=1,d.g=0,a.H(d.qb(this.touches[c].x,this.touches[c].y,!0)),d.scale=e,d.Cd=f,d.sd=g,d.g=h):(d=ga(b)?this.b.Kf(b):this.b.gj(b))?a.H(d.qb(this.touches[c].x,this.touches[c].y,!0)):a.H(0)}};a.prototype.Eo=function(a,b){var c=this.Qe;if(0>c||c>=this.touches.length)a.H(0);else{var d,e,f,g,h;ea(b)?(d=this.b.Kf(0),e=d.scale,
f=d.Cd,g=d.td,h=d.g,d.scale=1,d.Cd=1,d.td=1,d.g=0,a.H(d.qb(this.touches[c].x,this.touches[c].y,!1)),d.scale=e,d.Cd=f,d.td=g,d.g=h):(d=ga(b)?this.b.Kf(b):this.b.gj(b))?a.H(d.qb(this.touches[c].x,this.touches[c].y,!1)):a.H(0)}};c.Yb=new a})();function jc(e){this.b=e}
(function(){var e=jc.prototype;e.oc=function(a){this.ad=a;this.b=a.b};e.oc.prototype.ya=aa();e.ob=function(a,c){this.type=a;this.ad=a.ad;this.B=c;this.b=a.b;this.Aa=0};var m=e.ob.prototype,d=2*Math.PI,n=Math.PI/2,q=3*Math.PI/2;m.ya=function(){this.Va=1===this.L[0];this.lg=this.L[1];this.Lk=this.L[2];this.ud=this.L[3];this.ud+=Math.random()*this.L[4];0===this.ud?this.Aa=0:(this.Aa=this.L[5]/this.ud*d,this.Aa+=Math.random()*this.L[6]/this.ud*d);this.lb=this.L[7];this.lb+=Math.random()*this.L[8];this.yg=
this.re=this.P=0;this.init()};m.Nb=function(){return{i:this.Aa,a:this.Va,mv:this.lg,w:this.Lk,p:this.ud,mag:this.lb,iv:this.P,iv2:this.re,r:this.yg,lkv:this.Ab,lkv2:this.Yf}};m.xc=function(a){this.Aa=a.i;this.Va=a.a;this.lg=a.mv;this.Lk=a.w;this.ud=a.p;this.lb=a.mag;this.P=a.iv;this.re=a.iv2||0;this.yg=a.r;this.Ab=a.lkv;this.Yf=a.lkv2||0};m.init=function(){switch(this.lg){case 0:this.P=this.B.x;break;case 1:this.P=this.B.y;break;case 2:this.P=this.B.width;this.yg=this.B.height/this.B.width;break;
case 3:this.P=this.B.width;break;case 4:this.P=this.B.height;break;case 5:this.P=this.B.g;this.lb=R(this.lb);break;case 6:this.P=this.B.opacity;break;case 7:this.P=0;break;case 8:this.P=this.B.x,this.re=this.B.y}this.Ab=this.P;this.Yf=this.re};m.Ad=function(a){a%=d;switch(this.Lk){case 0:return Math.sin(a);case 1:return a<=n?a/n:a<=q?1-2*(a-n)/Math.PI:(a-q)/n-1;case 2:return 2*a/d-1;case 3:return-2*a/d+1;case 4:return a<Math.PI?-1:1}return 0};m.ab=function(){var a=this.b.cj(this.B);if(this.Va&&0!==
a){0===this.ud?this.Aa=0:(this.Aa+=a/this.ud*d,this.Aa%=d);switch(this.lg){case 0:this.B.x!==this.Ab&&(this.P+=this.B.x-this.Ab);this.B.x=this.P+this.Ad(this.Aa)*this.lb;this.Ab=this.B.x;break;case 1:this.B.y!==this.Ab&&(this.P+=this.B.y-this.Ab);this.B.y=this.P+this.Ad(this.Aa)*this.lb;this.Ab=this.B.y;break;case 2:this.B.width=this.P+this.Ad(this.Aa)*this.lb;this.B.height=this.B.width*this.yg;break;case 3:this.B.width=this.P+this.Ad(this.Aa)*this.lb;break;case 4:this.B.height=this.P+this.Ad(this.Aa)*
this.lb;break;case 5:this.B.g!==this.Ab&&(this.P=Ea(this.P+(this.B.g-this.Ab)));this.B.g=Ea(this.P+this.Ad(this.Aa)*this.lb);this.Ab=this.B.g;break;case 6:this.B.opacity=this.P+this.Ad(this.Aa)*this.lb/100;0>this.B.opacity?this.B.opacity=0:1<this.B.opacity&&(this.B.opacity=1);break;case 8:this.B.x!==this.Ab&&(this.P+=this.B.x-this.Ab),this.B.y!==this.Yf&&(this.re+=this.B.y-this.Yf),this.B.x=this.P+Math.cos(this.B.g)*this.Ad(this.Aa)*this.lb,this.B.y=this.re+Math.sin(this.B.g)*this.Ad(this.Aa)*this.lb,
this.Ab=this.B.x,this.Yf=this.B.y}this.B.Oa()}};m.Tm=function(a,c){switch(this.lg){case 2:this.P*=c.width/a.width;this.yg=c.height/c.width;break;case 3:this.P*=c.width/a.width;break;case 4:this.P*=c.height/a.height}};e.n=new (aa());e.Wa=new (aa());e.Yb=new (aa())})();
function cc(){return[null,null,[[dc,!0,!1,!1,!1,!1,!1,!1,!1,!1],[X,!1,!0,!0,!0,!0,!0,!0,!0,!1],[ec,!1,!0,!0,!0,!0,!0,!0,!0,!1],[Y,!0,!1,!1,!1,!1,!1,!1,!1,!1]],[["t0",X,!1,[],0,0,null,[["Default",5,!1,1,0,!1,6079137405340619,[["images/zrzutekranu-sheet0.png",341979,0,0,859,947,1,0.5005820989608765,0.5005279779434204,[],[],0]]]],[],!1,!1,5706450964101368,[],null],["t1",X,!1,[],1,0,null,[["Default",5,!1,1,0,!1,8462298105099445,[["images/particle4u-sheet0.png",8620,0,0,104,105,1,0.4807692170143127,0.5333333611488342,
[],[-0.2187512218952179,-0.2416663467884064,0.1117787957191467,-0.3154763579368591,0.2968747615814209,-0.02023833990097046,0.07091379165649414,0.2333336472511292,-0.245192214846611,0.1166666150093079],0]]]],[["Sine",jc,8471993293262745]],!1,!1,9612069941231460,[],null],["t2",Y,!1,[],0,0,null,null,[],!1,!1,5870431859489993,[],null,[1]],["t3",dc,!1,[],0,0,null,null,[],!1,!1,8676399824630323,[],null,[0,0,0,1,1,600,600,1E4,1,5E3,1]],["t4",ec,!1,[],0,0,null,null,[],!1,!1,6272605807308985,[],null],["t5",
X,!1,[],0,0,null,[["Default",5,!1,1,0,!1,410479198926021,[["images/cooltext-sheet0.png",82310,0,0,523,138,1,0.5009559988975525,0.5,[],[-0.4964001774787903,-0.4772726893424988,-0.002095013856887817,-0.1704550087451935,0.4420959949493408,-0.2159090042114258,0.494488000869751,0,0.4739869832992554,0.375,-0.002095013856887817,0.4886360168457031,-0.4941222965717316,0.4659090042114258,-0.478177011013031,0],0]]]],[],!1,!1,5712905293685126,[],null]],[],[["Layout 1",859,947,!1,"Event sheet 1",8873350371196689,
[["Layer 0",0,8722530541249526,!0,[255,255,255],!1,1,1,1,!1,1,0,0,[[[431,475,0,859,947,0,0,1,0.5005820989608765,0.5005279779434204,0,0,[]],0,0,[],[],[0,"Default",0,1]],[[825,526,0,104,105,0,0,1,0.4807692170143127,0.5333333611488342,0,0,[]],1,1,[],[[1,2,0,4,0,0,0,33,0]],[0,"Default",0,1]],[[771,684,0,104,105,0,0,1,0.4807692170143127,0.5333333611488342,0,0,[]],1,2,[],[[1,2,0,4,0,0,0,33,0]],[0,"Default",0,1]],[[803,92,0,104,105,0,0,1,0.4807692170143127,0.5333333611488342,0,0,[]],1,3,[],[[1,2,0,4,0,0,
0,33,0]],[0,"Default",0,1]],[[805,894,0,104,105,0,0,1,0.4807692170143127,0.5333333611488342,0,0,[]],1,4,[],[[1,2,0,4,0,0,0,33,0]],[0,"Default",0,1]],[[734,280,0,104,105,0,0,1,0.4807692170143127,0.5333333611488342,0,0,[]],1,5,[],[[1,2,0,4,0,0,0,33,0]],[0,"Default",0,1]],[[563,176,0,104,105,0,0,1,0.4807692170143127,0.5333333611488342,0,0,[]],1,6,[],[[1,2,0,4,0,0,0,33,0]],[0,"Default",0,1]],[[488,187,0,104,105,0,0,1,0.4807692170143127,0.5333333611488342,0,0,[]],1,7,[],[[1,2,0,4,0,0,0,33,0]],[0,"Default",
0,1]],[[773,550,0,104,105,0,0,1,0.4807692170143127,0.5333333611488342,0,0,[]],1,8,[],[[1,2,0,4,0,0,0,33,0]],[0,"Default",0,1]],[[620,675,0,104,105,0,0,1,0.4807692170143127,0.5333333611488342,0,0,[]],1,11,[],[[1,2,0,4,0,0,0,33,0]],[0,"Default",0,1]],[[413,-16,0,244,186,0,0,1,0,0,0,0,[]],4,12,[],[],["8",0,"99pt Arial","rgb(0,0,0)",0,0,0,0,0]],[[6,4,0,967,30,0,0,1,0,0,0,0,[]],4,13,[],[],["",0,"12pt Arial","rgb(0,0,0)",0,0,0,0,0]],[[0,960,0,591,50,0,0,1,0,0,0,0,[]],4,14,[],[],["Kopiowanie i rozpowszechnianie gry bez zgody Jonasz Osmenda zabronione!",
0,"12pt Arial","rgb(0,0,255)",0,0,0,0,0]],[[450,478,0,523,138,0,0,1,0.5009559988975525,0.5,0,0,[]],5,15,[],[],[0,"Default",0,1]]],[]]],[],[]]],[["Event sheet 1",[[1,"Variable1",0,9,!1,!1,0x8c47e636c1c86,!1],[0,null,!1,null,0x69653db7a4fc7,[[-1,V.prototype.n.Ok,null,1,!1,!1,!1,0x6dd543db483f7,!1]],[[1,X.prototype.Wa.Vk,null,0xf4164eadcbe51,!1,[[3,0]]],[5,X.prototype.Wa.Uk,null,7518158839569467,!1,[[0,[0,0]]]]]],[0,null,!1,null,0x5dd57cb8e4453,[[2,Y.prototype.n.ti,null,1,!1,!1,!1,0xc16f2f06fae5c,!1,
[[4,1]]],[1,X.prototype.n.fo,null,0,!1,!0,!1,6494797995482253,!1]],[[1,X.prototype.Wa.Vk,null,9083163542861552,!1,[[3,1]]],[3,dc.prototype.Wa.Play,null,8259743736827778,!1,[[2,["powerup5",!1]],[3,0],[0,[0,0]],[1,[2,""]]]],[-1,V.prototype.Wa.yo,null,5528461859810733,!1,[[11,"Variable1"],[7,[0,1]]]]]],[0,null,!1,null,5216967045795408,[[-1,V.prototype.n.co,null,0,!1,!1,!1,456522837199849,!1,[[0,[1,0.01]]]]],[[1,X.prototype.Wa.vo,null,0xe78bb68caebdf,!1,[[0,[0,1]]]]]],[0,null,!1,null,781981210042037,
[],[[4,ec.prototype.Wa.wo,null,7494609580290199,!1,[[7,[23,"Variable1"]]]]]],[0,null,!1,null,7988757484561765,[[-1,V.prototype.n.ao,null,0,!1,!1,!1,0x9ee24b2797f72,!1,[[11,"Variable1"],[8,0],[7,[0,0]]]]],[[5,X.prototype.Wa.Uk,null,669318688717366,!1,[[0,[4,[20,5,X.prototype.Yb.Opacity,!1,null],[0,1]]]]]],[[0,null,!1,null,331327619128352,[[-1,V.prototype.n.Ao,null,0,!1,!1,!1,9765800824784972,!1]],[[3,dc.prototype.Wa.Play,null,9982780459960288,!1,[[2,["241132__xtrgamr__shortapplause-01",!1]],[3,0],
[0,[0,0]],[1,[2,""]]]]]]]]]]],[["powerup5.m4a",4789],["powerup5.ogg",7560],["241132__xtrgamr__shortapplause-01.m4a",23931],["241132__xtrgamr__shortapplause-01.ogg",32213]],"media/",!0,859,947,4,!0,!0,!0,"1.0.0.0",!0,!1,2,1,16,!1,!0,1,!0,"Znajdz roznice",[]]};
