// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa,ba,ca,da,ea,fa,ga,ha,z,la,ma,na,oa,pa,qa,ra,sa,ta,wa,xa,ya,za,Q,Ca,Da,Fa,Ga,Ha,S,Ia,Ja,Ka,Na,Oa,Pa,Qa,Ra,Sa,Ta,Xa,Ya,Za,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,rb,sb,tb,ub,vb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,Xb,Yb,Zb,$b,ac,bc,cc,dc,ec={},fc={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(g){return g.__proto__}:function(g){return g.constructor.prototype});
(function(){function g(a,e,u,b){this.set(a,e,u,b)}function n(){this.qc=this.pc=this.sc=this.rc=this.Ic=this.Hc=this.Yb=this.Xb=0}function l(a,e,u,b){a<e?u<b?(x=a<u?a:u,p=e>b?e:b):(x=a<b?a:b,p=e>u?e:u):u<b?(x=e<u?e:u,p=a>b?a:b):(x=e<b?e:b,p=a>u?a:u)}function q(){this.items=this.wd=null;this.dh=0;J&&(this.wd=new Set);this.kg=[];this.ke=!0}function t(a){V[O++]=a}function r(){this.W=this.Aj=this.y=this.Yj=0}function h(a){this.Td=[];this.mn=this.pn=this.qn=this.nn=0;this.Gh(a)}function b(a,b){this.ek=
a;this.dk=b;this.cells={}}function c(a,b){this.ek=a;this.dk=b;this.cells={}}function d(a,b,u){var e;return D.length?(e=D.pop(),e.Pk=a,e.x=b,e.y=u,e):new ba(a,b,u)}function a(a,b,u){this.Pk=a;this.x=b;this.y=u;this.Za=new ca}function e(a,b,u){var e;return H.length?(e=H.pop(),e.Pk=a,e.x=b,e.y=u,e):new da(a,b,u)}function k(a,b,u){this.Pk=a;this.x=b;this.y=u;this.Za=[];this.Kf=!0;this.td=new ca;this.qg=!1}function f(a,b){return a.hd-b.hd}ea=function(a){window.console&&window.console.log&&window.console.log(a)};
fa=function(a){window.console&&window.console.error&&window.console.error(a)};aa=function(a){return a};ga=function(a){return"undefined"===typeof a};ha=function(a){return"number"===typeof a};z=function(a){return"string"===typeof a};la=function(a){return 0<a&&0===(a-1&a)};ma=function(a){--a;for(var b=1;32>b;b<<=1)a=a|a>>b;return a+1};na=function(a){return 0>a?-a:a};oa=function(a,b){return a<b?a:b};pa=Math.PI;qa=function(a){return 0<=a?a|0:(a|0)-1};ra=function(a){var b=a|0;return b===a?b:b+1};sa=function(a,
b,u,e,w,f,k,m){var c,d,p,h;a<u?(d=a,c=u):(d=u,c=a);w<k?(h=w,p=k):(h=k,p=w);if(c<h||d>p)return!1;b<e?(d=b,c=e):(d=e,c=b);f<m?(h=f,p=m):(h=m,p=f);if(c<h||d>p)return!1;c=w-a+k-u;d=f-b+m-e;a=u-a;b=e-b;w=k-w;f=m-f;m=na(b*w-f*a);return na(w*d-f*c)>m?!1:na(a*d-b*c)<=m};g.prototype.set=function(a,b,u,e){this.left=a;this.top=b;this.right=u;this.bottom=e};g.prototype.wg=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};g.prototype.width=function(){return this.right-this.left};
g.prototype.height=function(){return this.bottom-this.top};g.prototype.offset=function(a,b){this.left+=a;this.top+=b;this.right+=a;this.bottom+=b;return this};g.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)};g.prototype.ac=function(a,b){return a>=this.left&&a<=this.right&&b>=this.top&&b<=this.bottom};g.prototype.Bg=function(a){return this.left===a.left&&this.top===a.top&&
this.right===a.right&&this.bottom===a.bottom};ta=g;n.prototype.dg=function(a){this.Xb=a.left;this.Yb=a.top;this.Hc=a.right;this.Ic=a.top;this.rc=a.right;this.sc=a.bottom;this.pc=a.left;this.qc=a.bottom};n.prototype.Jp=function(a,b){if(0===b)this.dg(a);else{var u=Math.sin(b),e=Math.cos(b),w=a.left*u,f=a.top*u,c=a.right*u,u=a.bottom*u,m=a.left*e,k=a.top*e,d=a.right*e,e=a.bottom*e;this.Xb=m-f;this.Yb=k+w;this.Hc=d-f;this.Ic=k+c;this.rc=d-u;this.sc=e+c;this.pc=m-u;this.qc=e+w}};n.prototype.offset=function(a,
b){this.Xb+=a;this.Yb+=b;this.Hc+=a;this.Ic+=b;this.rc+=a;this.sc+=b;this.pc+=a;this.qc+=b;return this};var x=0,p=0;n.prototype.sn=function(a){l(this.Xb,this.Hc,this.rc,this.pc);a.left=x;a.right=p;l(this.Yb,this.Ic,this.sc,this.qc);a.top=x;a.bottom=p};n.prototype.ac=function(a,b){var u=this.Xb,e=this.Yb,w=this.Hc-u,f=this.Ic-e,c=this.rc-u,m=this.sc-e,k=a-u,d=b-e,p=w*w+f*f,h=w*c+f*m,f=w*k+f*d,v=c*c+m*m,x=c*k+m*d,l=1/(p*v-h*h),w=(v*f-h*x)*l,p=(p*x-h*f)*l;if(0<=w&&0<p&&1>w+p)return!0;w=this.pc-u;f=this.qc-
e;p=w*w+f*f;h=w*c+f*m;f=w*k+f*d;l=1/(p*v-h*h);w=(v*f-h*x)*l;p=(p*x-h*f)*l;return 0<=w&&0<p&&1>w+p};n.prototype.kn=function(a,b){if(b)switch(a){case 0:return this.Xb;case 1:return this.Hc;case 2:return this.rc;case 3:return this.pc;case 4:return this.Xb;default:return this.Xb}else switch(a){case 0:return this.Yb;case 1:return this.Ic;case 2:return this.sc;case 3:return this.qc;case 4:return this.Yb;default:return this.Yb}};wa=n;xa=function(a,b){for(var u in b)b.hasOwnProperty(u)&&(a[u]=b[u]);return a};
ya=function(a,b){var u,e;b=qa(b);if(!(0>b||b>=a.length)){u=b;for(e=a.length-1;u<e;u++)a[u]=a[u+1];za(a,e)}};za=function(a,b){a.length=b};Q=function(a){za(a,0)};Ca=function(a,b){Q(a);var u,e;u=0;for(e=b.length;u<e;++u)a[u]=b[u]};Da=function(a,b){a.push.apply(a,b)};Fa=function(a,b){var u,e;u=0;for(e=a.length;u<e;++u)if(a[u]===b)return u;return-1};Ga=function(a,b){var u=Fa(a,b);-1!==u&&ya(a,u)};Ha=function(a,b,u){return a<b?b:a>u?u:a};S=function(a){return a/(180/pa)};Ia=function(a){return 180/pa*a};
Ja=function(a){a%=360;0>a&&(a+=360);return a};Ka=function(a){a%=2*pa;0>a&&(a+=2*pa);return a};Na=function(a){return Ja(Ia(a))};Oa=function(a){return Ka(S(a))};Pa=function(a,b,u,e){return Math.atan2(e-b,u-a)};Qa=function(a,b){if(a===b)return 0;var u=Math.sin(a),e=Math.cos(a),w=Math.sin(b),f=Math.cos(b),u=u*w+e*f;return 1<=u?0:-1>=u?pa:Math.acos(u)};Ra=function(a,b,u){var e=Math.sin(a),w=Math.cos(a),f=Math.sin(b),c=Math.cos(b);return Math.acos(e*f+w*c)>u?0<w*f-e*c?Ka(a+u):Ka(a-u):Ka(b)};Sa=function(a,
b){var u=Math.sin(a),e=Math.cos(a),w=Math.sin(b),f=Math.cos(b);return 0>=e*w-u*f};Ta=function(a,b,u,e,w,f){if(0===u)return f?a:b;var c=Math.sin(u);u=Math.cos(u);a-=e;b-=w;var m=a*c;a=a*u-b*c;b=b*u+m;return f?a+e:b+w};Xa=function(a,b,u,e){a=u-a;b=e-b;return Math.sqrt(a*a+b*b)};Ya=function(a,b){return!a!==!b};Za=function(a){for(var b in a)if(a.hasOwnProperty(b))return!0;return!1};$a=function(a){for(var b in a)a.hasOwnProperty(b)&&delete a[b]};var L=+new Date;ab=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()-L};var m=!1,v=m=!1,B=!1;"undefined"!==typeof window&&(m=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),m=!m&&/safari/i.test(navigator.userAgent),v=/(iphone|ipod|ipad)/i.test(navigator.userAgent),B=window.c2ejecta);var J=!m&&!B&&!v&&"undefined"!==
typeof Set&&"undefined"!==typeof Set.prototype.forEach;q.prototype.contains=function(a){return this.Kd()?!1:J?this.wd.has(a):this.items&&this.items.hasOwnProperty(a)};q.prototype.add=function(a){if(J)this.wd.has(a)||(this.wd.add(a),this.ke=!1);else{var b=a.toString(),u=this.items;u?u.hasOwnProperty(b)||(u[b]=a,this.dh++,this.ke=!1):(this.items={},this.items[b]=a,this.dh=1,this.ke=!1)}};q.prototype.remove=function(a){if(!this.Kd())if(J)this.wd.has(a)&&(this.wd["delete"](a),this.ke=!1);else if(this.items){a=
a.toString();var b=this.items;b.hasOwnProperty(a)&&(delete b[a],this.dh--,this.ke=!1)}};q.prototype.clear=function(){this.Kd()||(J?this.wd.clear():(this.items=null,this.dh=0),Q(this.kg),this.ke=!0)};q.prototype.Kd=function(){return 0===this.count()};q.prototype.count=function(){return J?this.wd.size:this.dh};var V=null,O=0;q.prototype.nv=function(){if(!this.ke){if(J)Q(this.kg),V=this.kg,O=0,this.wd.forEach(t),V=null,O=0;else{var a=this.kg;Q(a);var b,u=0,e=this.items;if(e)for(b in e)e.hasOwnProperty(b)&&
(a[u++]=e[b])}this.ke=!0}};q.prototype.Jc=function(){this.nv();return this.kg};ca=q;var T=new ca;bb=function(a){var b,u;b=0;for(u=a.length;b<u;++b)T.add(a[b]);Ca(a,T.Jc());T.clear()};cb=function(a,b){J?db(a,b.wd):eb(a,b.Jc())};db=function(a,b){var u,e,w,f;e=u=0;for(w=a.length;u<w;++u)f=a[u],b.has(f)||(a[e++]=f);za(a,e)};eb=function(a,b){var u,e,f,c;e=u=0;for(f=a.length;u<f;++u)c=a[u],-1===Fa(b,c)&&(a[e++]=c);za(a,e)};r.prototype.add=function(a){this.y=a-this.Yj;this.Aj=this.W+this.y;this.Yj=this.Aj-
this.W-this.y;this.W=this.Aj};r.prototype.reset=function(){this.W=this.Aj=this.y=this.Yj=0};fb=r;gb=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};h.prototype.Gh=function(a){this.tp=a;this.Yf=a.length/2;this.Td.length=a.length;this.ai=this.bi=-1;this.vn=0};h.prototype.gl=function(){return!this.tp.length};h.prototype.Da=function(){for(var a=this.Td,b=a[0],u=b,e=a[1],f=e,c,m,k=1,d=this.Yf;k<d;++k)m=2*k,c=a[m],m=a[m+1],c<b&&(b=c),c>u&&(u=c),m<e&&(e=m),m>f&&(f=m);this.nn=b;this.pn=u;
this.qn=e;this.mn=f};h.prototype.dg=function(a,b,u){this.Td.length=8;this.Yf=4;var e=this.Td;e[0]=a.left-b;e[1]=a.top-u;e[2]=a.right-b;e[3]=a.top-u;e[4]=a.right-b;e[5]=a.bottom-u;e[6]=a.left-b;e[7]=a.bottom-u;this.bi=a.right-a.left;this.ai=a.bottom-a.top;this.Da()};h.prototype.Ip=function(a,b,u,e,f){this.Td.length=8;this.Yf=4;var c=this.Td;c[0]=a.Xb-b;c[1]=a.Yb-u;c[2]=a.Hc-b;c[3]=a.Ic-u;c[4]=a.rc-b;c[5]=a.sc-u;c[6]=a.pc-b;c[7]=a.qc-u;this.bi=e;this.ai=f;this.Da()};h.prototype.Zj=function(a,b,e){if(this.bi!==
a||this.ai!==b||this.vn!==e){this.bi=a;this.ai=b;this.vn=e;var f,c,m,k,d,p=0,h=1,v=this.tp,x=this.Td;0!==e&&(p=Math.sin(e),h=Math.cos(e));e=0;for(m=this.Yf;e<m;e++)f=2*e,c=f+1,k=v[f]*a,d=v[c]*b,x[f]=k*h-d*p,x[c]=d*h+k*p;this.Da()}};h.prototype.ac=function(a,b){var e=this.Td;if(a===e[0]&&b===e[1])return!0;var f,c,m,k=this.Yf,d=this.nn-110,p=this.qn-101,h=this.pn+131,v=this.mn+120,x,l,g=0,L=0;for(f=0;f<k;f++)c=2*f,m=(f+1)%k*2,x=e[c],c=e[c+1],l=e[m],m=e[m+1],sa(d,p,a,b,x,c,l,m)&&g++,sa(h,v,a,b,x,c,l,
m)&&L++;return 1===g%2||1===L%2};hb=h;b.prototype.te=function(a,b,e){var f;f=this.cells[a];return f?(f=f[b])?f:e?(f=d(this,a,b),this.cells[a][b]=f):null:e?(f=d(this,a,b),this.cells[a]={},this.cells[a][b]=f):null};b.prototype.yb=function(a){return qa(a/this.ek)};b.prototype.zb=function(a){return qa(a/this.dk)};b.prototype.update=function(a,b,e){var f,c,m,k,d;if(b)for(f=b.left,c=b.right;f<=c;++f)for(m=b.top,k=b.bottom;m<=k;++m)if(!e||!e.ac(f,m))if(d=this.te(f,m,!1))d.remove(a),d.Kd()&&(d.Za.clear(),
1E3>D.length&&D.push(d),this.cells[f][m]=null);if(e)for(f=e.left,c=e.right;f<=c;++f)for(m=e.top,k=e.bottom;m<=k;++m)b&&b.ac(f,m)||this.te(f,m,!0).Wk(a)};b.prototype.pj=function(a,b){var e,f,c,m,k,d;e=this.yb(a.left);c=this.zb(a.top);f=this.yb(a.right);for(k=this.zb(a.bottom);e<=f;++e)for(m=c;m<=k;++m)(d=this.te(e,m,!1))&&d.dump(b)};ib=b;c.prototype.te=function(a,b,u){var f;f=this.cells[a];return f?(f=f[b])?f:u?(f=e(this,a,b),this.cells[a][b]=f):null:u?(f=e(this,a,b),this.cells[a]={},this.cells[a][b]=
f):null};c.prototype.yb=function(a){return qa(a/this.ek)};c.prototype.zb=function(a){return qa(a/this.dk)};c.prototype.update=function(a,b,e){var f,c,m,k,d;if(b)for(f=b.left,c=b.right;f<=c;++f)for(m=b.top,k=b.bottom;m<=k;++m)if(!e||!e.ac(f,m))if(d=this.te(f,m,!1))d.remove(a),d.Kd()&&(d.reset(),1E3>H.length&&H.push(d),this.cells[f][m]=null);if(e)for(f=e.left,c=e.right;f<=c;++f)for(m=e.top,k=e.bottom;m<=k;++m)b&&b.ac(f,m)||this.te(f,m,!0).Wk(a)};c.prototype.pj=function(a,b,e,f,m){var c,k;a=this.yb(a);
b=this.zb(b);e=this.yb(e);for(c=this.zb(f);a<=e;++a)for(f=b;f<=c;++f)(k=this.te(a,f,!1))&&k.dump(m)};c.prototype.hu=function(a){var b,e,f,c,m;b=a.left;f=a.top;e=a.right;for(c=a.bottom;b<=e;++b)for(a=f;a<=c;++a)if(m=this.te(b,a,!1))m.Kf=!1};jb=c;var D=[];a.prototype.Kd=function(){return this.Za.Kd()};a.prototype.Wk=function(a){this.Za.add(a)};a.prototype.remove=function(a){this.Za.remove(a)};a.prototype.dump=function(a){Da(a,this.Za.Jc())};ba=a;var H=[];k.prototype.Kd=function(){if(!this.Za.length)return!0;
if(this.Za.length>this.td.count())return!1;this.yk();return!0};k.prototype.Wk=function(a){this.td.contains(a)?(this.td.remove(a),this.td.Kd()&&(this.qg=!1)):this.Za.length?(this.Za[this.Za.length-1].Ac()>a.Ac()&&(this.Kf=!1),this.Za.push(a)):(this.Za.push(a),this.Kf=!0)};k.prototype.remove=function(a){this.td.add(a);this.qg=!0;30<=this.td.count()&&this.yk()};k.prototype.yk=function(){this.qg&&(this.td.count()===this.Za.length?this.reset():(cb(this.Za,this.td),this.td.clear(),this.qg=!1))};k.prototype.us=
function(){this.Kf||(this.Za.sort(f),this.Kf=!0)};k.prototype.reset=function(){Q(this.Za);this.Kf=!0;this.td.clear();this.qg=!1};k.prototype.dump=function(a){this.yk();this.us();this.Za.length&&a.push(this.Za)};da=k;var C="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");kb=function(a){return 0>=a||11<=a?"source-over":C[a-1]};lb=function(a,b,e){if(e)switch(a.rb=e.ONE,a.ob=e.ONE_MINUS_SRC_ALPHA,b){case 1:a.rb=e.ONE;a.ob=
e.ONE;break;case 3:a.rb=e.ONE;a.ob=e.ZERO;break;case 4:a.rb=e.ONE_MINUS_DST_ALPHA;a.ob=e.ONE;break;case 5:a.rb=e.DST_ALPHA;a.ob=e.ZERO;break;case 6:a.rb=e.ZERO;a.ob=e.SRC_ALPHA;break;case 7:a.rb=e.ONE_MINUS_DST_ALPHA;a.ob=e.ZERO;break;case 8:a.rb=e.ZERO;a.ob=e.ONE_MINUS_SRC_ALPHA;break;case 9:a.rb=e.DST_ALPHA;a.ob=e.ONE_MINUS_SRC_ALPHA;break;case 10:a.rb=e.ONE_MINUS_DST_ALPHA,a.ob=e.SRC_ALPHA}};mb=function(a){return Math.round(1E6*a)/1E6};nb=function(a,b){return"string"!==typeof a||"string"!==typeof b||
a.length!==b.length?!1:a===b?!0:a.toLowerCase()===b.toLowerCase()};ob=function(a){a=a.target;return!a||a===document||a===window||document&&document.body&&a===document.body||nb(a.tagName,"canvas")?!0:!1}})();var gc="undefined"!==typeof Float32Array?Float32Array:Array;function hc(g){var n=new gc(3);g&&(n[0]=g[0],n[1]=g[1],n[2]=g[2]);return n}
function ic(g){var n=new gc(16);g&&(n[0]=g[0],n[1]=g[1],n[2]=g[2],n[3]=g[3],n[4]=g[4],n[5]=g[5],n[6]=g[6],n[7]=g[7],n[8]=g[8],n[9]=g[9],n[10]=g[10],n[11]=g[11],n[12]=g[12],n[13]=g[13],n[14]=g[14],n[15]=g[15]);return n}function jc(g,n){n[0]=g[0];n[1]=g[1];n[2]=g[2];n[3]=g[3];n[4]=g[4];n[5]=g[5];n[6]=g[6];n[7]=g[7];n[8]=g[8];n[9]=g[9];n[10]=g[10];n[11]=g[11];n[12]=g[12];n[13]=g[13];n[14]=g[14];n[15]=g[15]}
function kc(g,n){var l=n[0],q=n[1];n=n[2];g[0]*=l;g[1]*=l;g[2]*=l;g[3]*=l;g[4]*=q;g[5]*=q;g[6]*=q;g[7]*=q;g[8]*=n;g[9]*=n;g[10]*=n;g[11]*=n}
function lc(g,n,l,q){q||(q=ic());var t,r,h,b,c,d,a,e,k=g[0],f=g[1];g=g[2];r=l[0];h=l[1];t=l[2];l=n[1];d=n[2];k===n[0]&&f===l&&g===d?(g=q,g[0]=1,g[1]=0,g[2]=0,g[3]=0,g[4]=0,g[5]=1,g[6]=0,g[7]=0,g[8]=0,g[9]=0,g[10]=1,g[11]=0,g[12]=0,g[13]=0,g[14]=0,g[15]=1):(l=k-n[0],d=f-n[1],a=g-n[2],e=1/Math.sqrt(l*l+d*d+a*a),l*=e,d*=e,a*=e,n=h*a-t*d,t=t*l-r*a,r=r*d-h*l,(e=Math.sqrt(n*n+t*t+r*r))?(e=1/e,n*=e,t*=e,r*=e):r=t=n=0,h=d*r-a*t,b=a*n-l*r,c=l*t-d*n,(e=Math.sqrt(h*h+b*b+c*c))?(e=1/e,h*=e,b*=e,c*=e):c=b=h=0,
q[0]=n,q[1]=h,q[2]=l,q[3]=0,q[4]=t,q[5]=b,q[6]=d,q[7]=0,q[8]=r,q[9]=c,q[10]=a,q[11]=0,q[12]=-(n*k+t*f+r*g),q[13]=-(h*k+b*f+c*g),q[14]=-(l*k+d*f+a*g),q[15]=1)}
(function(){function g(b,c,d){this.Ld=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.ga=!!d;this.Ii=this.Ug=!1;this.ji=0;this.Nj=1;this.Fm=1E3;this.tv=(this.Fm-this.Nj)/32768;this.ak=hc([0,0,100]);this.Co=hc([0,0,0]);this.fq=hc([0,1,0]);this.Uh=hc([1,1,1]);this.Hn=!0;this.$i=ic();this.kc=ic();this.jl=ic();this.kk=ic();this.q=b;this.co()}function n(b,c,d){this.q=b;this.Hh=c;this.name=d;this.Cc=b.getAttribLocation(c,"aPos");this.Be=b.getAttribLocation(c,
"aTex");this.Ao=b.getUniformLocation(c,"matP");this.Vi=b.getUniformLocation(c,"matMV");this.Pf=b.getUniformLocation(c,"opacity");this.pl=b.getUniformLocation(c,"colorFill");this.Bo=b.getUniformLocation(c,"samplerFront");this.lh=b.getUniformLocation(c,"samplerBack");this.kf=b.getUniformLocation(c,"destStart");this.jf=b.getUniformLocation(c,"destEnd");this.nh=b.getUniformLocation(c,"seconds");this.rl=b.getUniformLocation(c,"pixelWidth");this.ql=b.getUniformLocation(c,"pixelHeight");this.kh=b.getUniformLocation(c,
"layerScale");this.jh=b.getUniformLocation(c,"layerAngle");this.oh=b.getUniformLocation(c,"viewOrigin");this.mh=b.getUniformLocation(c,"scrollPos");this.Ot=!!(this.rl||this.ql||this.nh||this.lh||this.kf||this.jf||this.kh||this.jh||this.oh||this.mh);this.Ko=this.Lo=-999;this.Zi=1;this.Go=this.Fo=0;this.Io=this.Eo=this.Do=1;this.Oo=this.No=this.Mo=this.Qo=this.Po=this.Ho=0;this.il=[];this.Jo=ic();this.Pf&&b.uniform1f(this.Pf,1);this.pl&&b.uniform4f(this.pl,1,1,1,1);this.Bo&&b.uniform1i(this.Bo,0);this.lh&&
b.uniform1i(this.lh,1);this.kf&&b.uniform2f(this.kf,0,0);this.jf&&b.uniform2f(this.jf,1,1);this.kh&&b.uniform1f(this.kh,1);this.jh&&b.uniform1f(this.jh,0);this.oh&&b.uniform2f(this.oh,0,0);this.mh&&b.uniform2f(this.mh,0,0);this.nh&&b.uniform1f(this.nh,0);this.Xe=!1}function l(b,c){return b[0]===c[0]&&b[1]===c[1]&&b[2]===c[2]&&b[3]===c[3]&&b[4]===c[4]&&b[5]===c[5]&&b[6]===c[6]&&b[7]===c[7]&&b[8]===c[8]&&b[9]===c[9]&&b[10]===c[10]&&b[11]===c[11]&&b[12]===c[12]&&b[13]===c[13]&&b[14]===c[14]&&b[15]===
c[15]}function q(b,c){this.type=b;this.m=c;this.q=c.q;this.gc=this.sb=this.ep=0;this.N=this.Gc=null;this.Kp=[]}var t=ic();g.prototype.co=function(){var b=this.q,c;this.to=1;this.ff=this.we=null;this.ii=1;b.clearColor(0,0,0,0);b.clear(b.COLOR_BUFFER_BIT);b.enable(b.BLEND);b.blendFunc(b.ONE,b.ONE_MINUS_SRC_ALPHA);b.disable(b.CULL_FACE);b.disable(b.STENCIL_TEST);b.disable(b.DITHER);this.ga?(b.enable(b.DEPTH_TEST),b.depthFunc(b.LEQUAL)):b.disable(b.DEPTH_TEST);this.uo=b.ONE;this.qo=b.ONE_MINUS_SRC_ALPHA;
this.Th=new Float32Array(8E3*(this.ga?3:2));this.Nh=new Float32Array(16E3);this.pp=new Float32Array(32E3);this.Rl=b.createBuffer();b.bindBuffer(b.ARRAY_BUFFER,this.Rl);b.bufferData(b.ARRAY_BUFFER,this.pp.byteLength,b.DYNAMIC_DRAW);this.Sh=Array(4);this.Mh=Array(4);for(c=0;4>c;c++)this.Sh[c]=b.createBuffer(),b.bindBuffer(b.ARRAY_BUFFER,this.Sh[c]),b.bufferData(b.ARRAY_BUFFER,this.Th.byteLength,b.DYNAMIC_DRAW),this.Mh[c]=b.createBuffer(),b.bindBuffer(b.ARRAY_BUFFER,this.Mh[c]),b.bufferData(b.ARRAY_BUFFER,
this.Nh.byteLength,b.DYNAMIC_DRAW);this.Bd=0;this.Rt=b.createBuffer();b.bindBuffer(b.ELEMENT_ARRAY_BUFFER,this.Rt);for(var d=new Uint16Array(12E3),a=c=0;12E3>c;)d[c++]=a,d[c++]=a+1,d[c++]=a+2,d[c++]=a,d[c++]=a+2,d[c++]=a+3,a+=4;b.bufferData(b.ELEMENT_ARRAY_BUFFER,d,b.STATIC_DRAW);this.Sl=this.He=this.Lc=0;this.za=[];c=this.ga?"attribute highp vec3 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, aPos.z, 1.0);\n\tvTex = aTex;\n}":
"attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}";d=this.xg({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}"},c,"<default>");this.za.push(d);d=this.xg({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.za.push(d);d=this.xg({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},c,"<earlyz>");this.za.push(d);d=this.xg({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"},
c,"<fill>");this.za.push(d);for(var e in mc)mc.hasOwnProperty(e)&&this.za.push(this.xg(mc[e],c,e));b.activeTexture(b.TEXTURE0);b.bindTexture(b.TEXTURE_2D,null);this.jd=[];this.Qc=0;this.Wa=!1;this.En=this.fh=-1;this.zf=null;this.wk=b.createFramebuffer();this.ni=this.qj=null;this.ln=!1;this.ga&&(this.ni=b.createRenderbuffer());this.Ie=hc([0,0,0]);this.Ro=b.getParameter(b.ALIASED_POINT_SIZE_RANGE)[1];2048<this.Ro&&(this.Ro=2048);this.Kb(0)};n.prototype.zm=function(b){l(this.Jo,b)||(jc(b,this.Jo),this.q.uniformMatrix4fv(this.Vi,
!1,b))};g.prototype.xg=function(b,c,d){var a=this.q,e=a.createShader(a.FRAGMENT_SHADER);a.shaderSource(e,b.src);a.compileShader(e);if(!a.getShaderParameter(e,a.COMPILE_STATUS))return a.deleteShader(e),null;var k=a.createShader(a.VERTEX_SHADER);a.shaderSource(k,c);a.compileShader(k);if(!a.getShaderParameter(k,a.COMPILE_STATUS))return a.deleteShader(e),a.deleteShader(k),null;c=a.createProgram();a.attachShader(c,e);a.attachShader(c,k);a.linkProgram(c);if(!a.getProgramParameter(c,a.LINK_STATUS))return a.deleteShader(e),
a.deleteShader(k),a.deleteProgram(c),null;a.useProgram(c);a.deleteShader(e);a.deleteShader(k);d=new n(a,c,d);d.tk=b.tk||0;d.uk=b.uk||0;d.Dn=!!b.Dn;d.ad=!!b.ad;d.hn=!!b.hn;d.O=b.O||[];b=0;for(e=d.O.length;b<e;b++)d.O[b][1]=a.getUniformLocation(c,d.O[b][0]),d.il.push(0),a.uniform1f(d.O[b][1],0);return d};g.prototype.Kk=function(b){var c,d;c=0;for(d=this.za.length;c<d;c++)if(this.za[c].name===b)return c;return-1};g.prototype.sp=function(b,c,d){var a=this.kc,e=this.$i,k=[0,0,0,0,0,0,0,0];k[0]=a[0]*b+
a[4]*c+a[12];k[1]=a[1]*b+a[5]*c+a[13];k[2]=a[2]*b+a[6]*c+a[14];k[3]=a[3]*b+a[7]*c+a[15];k[4]=e[0]*k[0]+e[4]*k[1]+e[8]*k[2]+e[12]*k[3];k[5]=e[1]*k[0]+e[5]*k[1]+e[9]*k[2]+e[13]*k[3];k[6]=e[2]*k[0]+e[6]*k[1]+e[10]*k[2]+e[14]*k[3];k[7]=-k[2];0!==k[7]&&(k[7]=1/k[7],k[4]*=k[7],k[5]*=k[7],k[6]*=k[7],d[0]=(.5*k[4]+.5)*this.width,d[1]=(.5*k[5]+.5)*this.height)};g.prototype.Vd=function(b,c,d){if(this.width!==b||this.height!==c||d){this.Fd();d=this.q;this.width=b;this.height=c;d.viewport(0,0,b,c);lc(this.ak,
this.Co,this.fq,this.kc);if(this.ga){var a=-b/2;b=b/2;var e=c/2;c=-c/2;var k=this.Nj,f=this.Fm,h=this.$i;h||(h=ic());var p=b-a,l=c-e,m=f-k;h[0]=2/p;h[1]=0;h[2]=0;h[3]=0;h[4]=0;h[5]=2/l;h[6]=0;h[7]=0;h[8]=0;h[9]=0;h[10]=-2/m;h[11]=0;h[12]=-(a+b)/p;h[13]=-(c+e)/l;h[14]=-(f+k)/m;h[15]=1;this.Uh[0]=1;this.Uh[1]=1}else c=b/c,a=this.Nj,b=this.Fm,h=this.$i,f=a*Math.tan(45*Math.PI/360),c*=f,e=-c,k=-f,h||(h=ic()),p=c-e,l=f-k,m=b-a,h[0]=2*a/p,h[1]=0,h[2]=0,h[3]=0,h[4]=0,h[5]=2*a/l,h[6]=0,h[7]=0,h[8]=(c+e)/
p,h[9]=(f+k)/l,h[10]=-(b+a)/m,h[11]=-1,h[12]=0,h[13]=0,h[14]=-(b*a*2)/m,h[15]=0,a=[0,0],b=[0,0],this.sp(0,0,a),this.sp(1,1,b),this.Uh[0]=1/(b[0]-a[0]),this.Uh[1]=-1/(b[1]-a[1]);a=0;for(b=this.za.length;a<b;a++)e=this.za[a],e.Xe=!1,e.Ao&&(d.useProgram(e.Hh),d.uniformMatrix4fv(e.Ao,!1,this.$i));d.useProgram(this.za[this.fh].Hh);d.bindTexture(d.TEXTURE_2D,null);d.activeTexture(d.TEXTURE1);d.bindTexture(d.TEXTURE_2D,null);d.activeTexture(d.TEXTURE0);this.ff=this.we=null;this.ni&&(d.bindFramebuffer(d.FRAMEBUFFER,
this.wk),d.bindRenderbuffer(d.RENDERBUFFER,this.ni),d.renderbufferStorage(d.RENDERBUFFER,d.DEPTH_COMPONENT16,this.width,this.height),this.ln||(d.framebufferRenderbuffer(d.FRAMEBUFFER,d.DEPTH_ATTACHMENT,d.RENDERBUFFER,this.ni),this.ln=!0),d.bindRenderbuffer(d.RENDERBUFFER,null),d.bindFramebuffer(d.FRAMEBUFFER,null),this.qj=null)}};g.prototype.vd=function(){lc(this.ak,this.Co,this.fq,this.kc);kc(this.kc,this.Uh)};g.prototype.translate=function(b,c){if(0!==b||0!==c){this.Ie[0]=b;this.Ie[1]=c;this.Ie[2]=
0;var d=this.kc,a=this.Ie,e=a[0],k=a[1],a=a[2];d[12]=d[0]*e+d[4]*k+d[8]*a+d[12];d[13]=d[1]*e+d[5]*k+d[9]*a+d[13];d[14]=d[2]*e+d[6]*k+d[10]*a+d[14];d[15]=d[3]*e+d[7]*k+d[11]*a+d[15]}};g.prototype.scale=function(b,c){if(1!==b||1!==c)this.Ie[0]=b,this.Ie[1]=c,this.Ie[2]=1,kc(this.kc,this.Ie)};g.prototype.em=function(b){if(0!==b){var c=this.kc,d,a=Math.sin(b);b=Math.cos(b);var e=c[0],k=c[1],f=c[2],h=c[3],p=c[4],l=c[5],m=c[6],v=c[7];d?c!==d&&(d[8]=c[8],d[9]=c[9],d[10]=c[10],d[11]=c[11],d[12]=c[12],d[13]=
c[13],d[14]=c[14],d[15]=c[15]):d=c;d[0]=e*b+p*a;d[1]=k*b+l*a;d[2]=f*b+m*a;d[3]=h*b+v*a;d[4]=e*-a+p*b;d[5]=k*-a+l*b;d[6]=f*-a+m*b;d[7]=h*-a+v*b}};g.prototype.gd=function(){if(!l(this.jl,this.kc)){var b=this.Gb();b.type=5;b.N?jc(this.kc,b.N):b.N=ic(this.kc);jc(this.kc,this.jl);this.Wa=!1}};g.prototype.uj=function(b){this.ga&&(32760<b&&(b=32760),this.ji=this.ak[2]-this.Nj-b*this.tv)};q.prototype.bs=function(){var b=this.q,c=this.m;0!==this.sb?(b.depthMask(!0),b.colorMask(!1,!1,!1,!1),b.disable(b.BLEND),
b.bindFramebuffer(b.FRAMEBUFFER,c.wk),b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,null,0),b.clear(b.DEPTH_BUFFER_BIT),b.bindFramebuffer(b.FRAMEBUFFER,null),c.Ii=!0):(b.depthMask(!1),b.colorMask(!0,!0,!0,!0),b.enable(b.BLEND),c.Ii=!1)};q.prototype.gs=function(){this.q.bindTexture(this.q.TEXTURE_2D,this.Gc)};q.prototype.hs=function(){var b=this.q;b.activeTexture(b.TEXTURE1);b.bindTexture(b.TEXTURE_2D,this.Gc);b.activeTexture(b.TEXTURE0)};q.prototype.cs=function(){var b=this.ep,
c=this.m;c.ii=b;c=c.zf;c.Pf&&c.Zi!==b&&(c.Zi=b,this.q.uniform1f(c.Pf,b))};q.prototype.Xr=function(){this.q.drawElements(this.q.TRIANGLES,this.gc,this.q.UNSIGNED_SHORT,this.sb)};q.prototype.Zr=function(){this.q.blendFunc(this.sb,this.gc)};q.prototype.js=function(){var b,c,d,a=this.m.za,e=this.m.En;b=0;for(c=a.length;b<c;b++)d=a[b],b===e&&d.Vi?(d.zm(this.N),d.Xe=!0):d.Xe=!1;jc(this.N,this.m.kk)};q.prototype.Yr=function(){var b=this.q,c=this.m;this.Gc?(c.ff===this.Gc&&(b.activeTexture(b.TEXTURE1),b.bindTexture(b.TEXTURE_2D,
null),c.ff=null,b.activeTexture(b.TEXTURE0)),b.bindFramebuffer(b.FRAMEBUFFER,c.wk),c.Ii||b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,this.Gc,0)):(c.ga||b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,null,0),b.bindFramebuffer(b.FRAMEBUFFER,null))};q.prototype.Vr=function(){var b=this.q,c=this.sb;0===c?(b.clearColor(this.N[0],this.N[1],this.N[2],this.N[3]),b.clear(b.COLOR_BUFFER_BIT)):1===c?(b.enable(b.SCISSOR_TEST),b.scissor(this.N[0],this.N[1],this.N[2],
this.N[3]),b.clearColor(0,0,0,0),b.clear(b.COLOR_BUFFER_BIT),b.disable(b.SCISSOR_TEST)):b.clear(b.DEPTH_BUFFER_BIT)};q.prototype.as=function(){var b=this.q;0!==this.sb?b.enable(b.DEPTH_TEST):b.disable(b.DEPTH_TEST)};q.prototype.Wr=function(){var b=this.q,c=this.m;c.ga&&b.disable(b.DEPTH_TEST);var d=c.za[1];b.useProgram(d.Hh);!d.Xe&&d.Vi&&(d.zm(c.kk),d.Xe=!0);b.enableVertexAttribArray(d.Cc);b.bindBuffer(b.ARRAY_BUFFER,c.Rl);b.vertexAttribPointer(d.Cc,4,b.FLOAT,!1,0,0);b.drawArrays(b.POINTS,this.sb/
4,this.gc);d=c.zf;b.useProgram(d.Hh);0<=d.Cc&&(b.enableVertexAttribArray(d.Cc),b.bindBuffer(b.ARRAY_BUFFER,c.Sh[c.Bd]),b.vertexAttribPointer(d.Cc,c.ga?3:2,b.FLOAT,!1,0,0));0<=d.Be&&(b.enableVertexAttribArray(d.Be),b.bindBuffer(b.ARRAY_BUFFER,c.Mh[c.Bd]),b.vertexAttribPointer(d.Be,2,b.FLOAT,!1,0,0));c.ga&&b.enable(b.DEPTH_TEST)};q.prototype.ds=function(){var b=this.q,c=this.m,d=c.za[this.sb];c.En=this.sb;c.zf=d;b.useProgram(d.Hh);!d.Xe&&d.Vi&&(d.zm(c.kk),d.Xe=!0);d.Pf&&d.Zi!==c.ii&&(d.Zi=c.ii,b.uniform1f(d.Pf,
c.ii));0<=d.Cc&&(b.enableVertexAttribArray(d.Cc),b.bindBuffer(b.ARRAY_BUFFER,c.Sh[c.Bd]),b.vertexAttribPointer(d.Cc,c.ga?3:2,b.FLOAT,!1,0,0));0<=d.Be&&(b.enableVertexAttribArray(d.Be),b.bindBuffer(b.ARRAY_BUFFER,c.Mh[c.Bd]),b.vertexAttribPointer(d.Be,2,b.FLOAT,!1,0,0))};q.prototype.$r=function(){var b=this.N;this.q.uniform4f(this.m.zf.pl,b[0],b[1],b[2],b[3])};q.prototype.es=function(){var b,c,d=this.m.zf,a=this.q;b=this.N;d.lh&&this.m.ff!==this.Gc&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,
this.Gc),this.m.ff=this.Gc,a.activeTexture(a.TEXTURE0));var e=b[0];d.rl&&e!==d.Lo&&(d.Lo=e,a.uniform1f(d.rl,e));e=b[1];d.ql&&e!==d.Ko&&(d.Ko=e,a.uniform1f(d.ql,e));e=b[2];c=b[3];!d.kf||e===d.Fo&&c===d.Go||(d.Fo=e,d.Go=c,a.uniform2f(d.kf,e,c));e=b[4];c=b[5];!d.jf||e===d.Do&&c===d.Eo||(d.Do=e,d.Eo=c,a.uniform2f(d.jf,e,c));e=b[6];d.kh&&e!==d.Io&&(d.Io=e,a.uniform1f(d.kh,e));e=b[7];d.jh&&e!==d.Ho&&(d.Ho=e,a.uniform1f(d.jh,e));e=b[8];c=b[9];!d.oh||e===d.Po&&c===d.Qo||(d.Po=e,d.Qo=c,a.uniform2f(d.oh,e,
c));e=b[10];c=b[11];!d.mh||e===d.Mo&&c===d.No||(d.Mo=e,d.No=c,a.uniform2f(d.mh,e,c));e=b[12];d.nh&&e!==d.Oo&&(d.Oo=e,a.uniform1f(d.nh,e));if(d.O.length)for(b=0,c=d.O.length;b<c;b++)e=this.Kp[b],e!==d.il[b]&&(d.il[b]=e,a.uniform1f(d.O[b][1],e))};g.prototype.Gb=function(){this.Qc===this.jd.length&&this.jd.push(new q(0,this));return this.jd[this.Qc++]};g.prototype.Fd=function(){if(0!==this.Qc&&!this.q.isContextLost()){var b=this.q;0<this.Sl&&(b.bindBuffer(b.ARRAY_BUFFER,this.Rl),b.bufferSubData(b.ARRAY_BUFFER,
0,this.pp.subarray(0,this.Sl)),c&&0<=c.Cc&&"<point>"===c.name&&b.vertexAttribPointer(c.Cc,4,b.FLOAT,!1,0,0));if(0<this.Lc){var c=this.zf;b.bindBuffer(b.ARRAY_BUFFER,this.Sh[this.Bd]);b.bufferSubData(b.ARRAY_BUFFER,0,this.Th.subarray(0,this.Lc));c&&0<=c.Cc&&"<point>"!==c.name&&b.vertexAttribPointer(c.Cc,this.ga?3:2,b.FLOAT,!1,0,0);b.bindBuffer(b.ARRAY_BUFFER,this.Mh[this.Bd]);b.bufferSubData(b.ARRAY_BUFFER,0,this.Nh.subarray(0,this.He));c&&0<=c.Be&&"<point>"!==c.name&&b.vertexAttribPointer(c.Be,2,
b.FLOAT,!1,0,0)}for(var d,b=0,c=this.Qc;b<c;b++)switch(d=this.jd[b],d.type){case 1:d.Xr();break;case 2:d.gs();break;case 3:d.cs();break;case 4:d.Zr();break;case 5:d.js();break;case 6:d.Yr();break;case 7:d.Vr();break;case 8:d.Wr();break;case 9:d.ds();break;case 10:d.es();break;case 11:d.hs();break;case 12:d.$r();break;case 13:d.as();break;case 14:d.bs()}this.Sl=this.He=this.Lc=this.Qc=0;this.Ii=this.Wa=!1;this.Bd++;4<=this.Bd&&(this.Bd=0)}};g.prototype.ag=function(b){if(b!==this.to&&!this.Ug){var c=
this.Gb();c.type=3;this.to=c.ep=b;this.Wa=!1}};g.prototype.lb=function(b){if(b!==this.we){var c=this.Gb();c.type=2;this.we=c.Gc=b;this.Wa=!1}};g.prototype.Ee=function(b,c){if((b!==this.uo||c!==this.qo)&&!this.Ug){var d=this.Gb();d.type=4;d.sb=b;d.gc=c;this.uo=b;this.qo=c;this.Wa=!1}};g.prototype.Cp=function(){this.Ee(this.q.ONE,this.q.ONE_MINUS_SRC_ALPHA)};g.prototype.of=function(b,c,d,a,e,k,f,h){15992<=this.Lc&&this.Fd();var p=this.Lc,l=this.He,m=this.Th,v=this.Nh,g=this.ji;if(this.Wa)this.jd[this.Qc-
1].gc+=6;else{var n=this.Gb();n.type=1;n.sb=this.ga?p:p/2*3;n.gc=6;this.Wa=!0}this.ga?(m[p++]=b,m[p++]=c,m[p++]=g,m[p++]=d,m[p++]=a,m[p++]=g,m[p++]=e,m[p++]=k,m[p++]=g,m[p++]=f,m[p++]=h,m[p++]=g):(m[p++]=b,m[p++]=c,m[p++]=d,m[p++]=a,m[p++]=e,m[p++]=k,m[p++]=f,m[p++]=h);v[l++]=0;v[l++]=0;v[l++]=1;v[l++]=0;v[l++]=1;v[l++]=1;v[l++]=0;v[l++]=1;this.Lc=p;this.He=l};g.prototype.pf=function(b,c,d,a,e,k,f,h,p){15992<=this.Lc&&this.Fd();var l=this.Lc,m=this.He,v=this.Th,g=this.Nh,n=this.ji;if(this.Wa)this.jd[this.Qc-
1].gc+=6;else{var r=this.Gb();r.type=1;r.sb=this.ga?l:l/2*3;r.gc=6;this.Wa=!0}var r=p.left,q=p.top,t=p.right;p=p.bottom;this.ga?(v[l++]=b,v[l++]=c,v[l++]=n,v[l++]=d,v[l++]=a,v[l++]=n,v[l++]=e,v[l++]=k,v[l++]=n,v[l++]=f,v[l++]=h,v[l++]=n):(v[l++]=b,v[l++]=c,v[l++]=d,v[l++]=a,v[l++]=e,v[l++]=k,v[l++]=f,v[l++]=h);g[m++]=r;g[m++]=q;g[m++]=t;g[m++]=q;g[m++]=t;g[m++]=p;g[m++]=r;g[m++]=p;this.Lc=l;this.He=m};g.prototype.vp=function(b,c,d,a,e,k,f,h,p,l,m,v,g){15992<=this.Lc&&this.Fd();var n=this.Lc,r=this.He,
q=this.Th,t=this.Nh,D=this.ji;if(this.Wa)this.jd[this.Qc-1].gc+=6;else{var H=this.Gb();H.type=1;H.sb=this.ga?n:n/2*3;H.gc=6;this.Wa=!0}this.ga?(q[n++]=b,q[n++]=c,q[n++]=D,q[n++]=d,q[n++]=a,q[n++]=D,q[n++]=e,q[n++]=k,q[n++]=D,q[n++]=f,q[n++]=h,q[n++]=D):(q[n++]=b,q[n++]=c,q[n++]=d,q[n++]=a,q[n++]=e,q[n++]=k,q[n++]=f,q[n++]=h);t[r++]=p;t[r++]=l;t[r++]=m;t[r++]=0;t[r++]=v;t[r++]=0;t[r++]=g;t[r++]=0;this.Lc=n;this.He=r};g.prototype.zn=function(b){var c=b.length/2-2,d=c-1,a=b[0],e=b[1],k,f,h,p,l,m,v;for(k=
0;k<c;k+=2)f=2*k,h=b[f+2],p=b[f+3],l=b[f+4],m=b[f+5],k===d?this.of(a,e,h,p,l,m,l,m):(v=b[f+6],f=b[f+7],this.of(a,e,h,p,l,m,v,f))};g.prototype.Kb=function(b){if(this.fh!==b){if(!this.za[b]){if(0===this.fh)return;b=0}var c=this.Gb();c.type=9;this.fh=c.sb=b;this.Wa=!1}};g.prototype.zh=function(b){b=this.za[b];return!(!b.kf&&!b.jf)};g.prototype.Vl=function(b){b=this.za[b];return!!(b.kf||b.jf||b.Dn)};g.prototype.Ul=function(b){return this.za[b].ad};g.prototype.Du=function(b){b=this.za[b];return 0!==b.tk||
0!==b.uk};g.prototype.ut=function(b){return this.za[b].tk};g.prototype.wt=function(b){return this.za[b].uk};g.prototype.xt=function(b,c){return this.za[b].O[c][2]};g.prototype.nj=function(b){return this.za[b].hn};g.prototype.bg=function(b,c,d,a,e,k,f,h,p,l,m,v,g,n,r){var q=this.za[this.fh],t,D;if(q.Ot||r.length){t=this.Gb();t.type=10;t.N?jc(this.kc,t.N):t.N=ic();D=t.N;D[0]=c;D[1]=d;D[2]=a;D[3]=e;D[4]=k;D[5]=f;D[6]=h;D[7]=p;D[8]=l;D[9]=m;D[10]=v;D[11]=g;D[12]=n;q.lh?t.Gc=b:t.Gc=null;if(r.length)for(d=
t.Kp,d.length=r.length,b=0,c=r.length;b<c;b++)d[b]=r[b];this.Wa=!1}};g.prototype.clear=function(b,c,d,a){var e=this.Gb();e.type=7;e.sb=0;e.N||(e.N=ic());e.N[0]=b;e.N[1]=c;e.N[2]=d;e.N[3]=a;this.Wa=!1};g.prototype.clearRect=function(b,c,d,a){if(!(0>d||0>a)){var e=this.Gb();e.type=7;e.sb=1;e.N||(e.N=ic());e.N[0]=b;e.N[1]=c;e.N[2]=d;e.N[3]=a;this.Wa=!1}};g.prototype.Fp=function(b){if(this.ga&&(b=!!b,this.Ug!==b)){var c=this.Gb();c.type=14;c.sb=b?1:0;this.Wa=!1;this.Ug=b;this.qj=null;this.Ug?this.Kb(2):
this.Kb(0)}};g.prototype.Ep=function(b){if(this.ga){var c=this.Gb();c.type=13;c.sb=b?1:0;this.Wa=!1}};g.prototype.Qn=function(){jc(this.jl,t);this.vd();this.gd();var b=this.width/2,c=this.height/2;this.of(-b,c,b,c,b,-c,-b,-c);jc(t,this.kc);this.gd()};g.prototype.Dp=function(b,c,d){this.Kb(3);var a=this.Gb();a.type=12;a.N||(a.N=ic());a.N[0]=b;a.N[1]=c;a.N[2]=d;a.N[3]=1;this.Wa=!1};g.prototype.Yu=function(){this.Kb(0)};g.prototype.Ju=function(){this.Kb(2)};g.prototype.Cu=function(){this.Fd();this.q.flush()};
var r=[],h={};g.prototype.Kr=function(){Q(r);h={}};g.prototype.zo=function(b,c,d){var a;a=!1;c=!!c;var e=b.src+","+a+","+c+(a?",undefined":""),k=null;if("undefined"!==typeof b.src&&h.hasOwnProperty(e))return k=h[e],k.$h++,k;this.Fd();var f=this.q,l=la(b.width)&&la(b.height),k=f.createTexture();f.bindTexture(f.TEXTURE_2D,k);f.pixelStorei(f.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var p=f.RGBA,g=f.RGBA,m=f.UNSIGNED_BYTE;if(d&&!this.Ld)switch(d){case 1:g=p=f.RGB;break;case 2:m=f.UNSIGNED_SHORT_4_4_4_4;break;
case 3:m=f.UNSIGNED_SHORT_5_5_5_1;break;case 4:g=p=f.RGB,m=f.UNSIGNED_SHORT_5_6_5}if(!l&&a){d=document.createElement("canvas");d.width=ma(b.width);d.height=ma(b.height);var v=d.getContext("2d");v.webkitImageSmoothingEnabled=c;v.mozImageSmoothingEnabled=c;v.msImageSmoothingEnabled=c;v.imageSmoothingEnabled=c;v.drawImage(b,0,0,b.width,b.height,0,0,d.width,d.height);f.texImage2D(f.TEXTURE_2D,0,p,g,m,d)}else f.texImage2D(f.TEXTURE_2D,0,p,g,m,b);a?(f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_S,f.REPEAT),
f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_T,f.REPEAT)):(f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_S,f.CLAMP_TO_EDGE),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_T,f.CLAMP_TO_EDGE));c?(f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MAG_FILTER,f.LINEAR),l&&this.Hn?(f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,f.LINEAR_MIPMAP_LINEAR),f.generateMipmap(f.TEXTURE_2D)):f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,f.LINEAR)):(f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MAG_FILTER,f.NEAREST),f.texParameteri(f.TEXTURE_2D,
f.TEXTURE_MIN_FILTER,f.NEAREST));f.bindTexture(f.TEXTURE_2D,null);this.we=null;k.Oe=b.width;k.Ne=b.height;k.$h=1;k.un=e;r.push(k);return h[e]=k};g.prototype.Nb=function(b,c,d,a,e){this.Fd();var k=this.q;this.Ld&&(a=!1);var f=k.createTexture();k.bindTexture(k.TEXTURE_2D,f);k.texImage2D(k.TEXTURE_2D,0,k.RGBA,b,c,0,k.RGBA,a?k.UNSIGNED_SHORT_4_4_4_4:k.UNSIGNED_BYTE,null);e?(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_S,k.REPEAT),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_T,k.REPEAT)):(k.texParameteri(k.TEXTURE_2D,
k.TEXTURE_WRAP_S,k.CLAMP_TO_EDGE),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_T,k.CLAMP_TO_EDGE));k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MAG_FILTER,d?k.LINEAR:k.NEAREST);k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MIN_FILTER,d?k.LINEAR:k.NEAREST);k.bindTexture(k.TEXTURE_2D,null);this.we=null;f.Oe=b;f.Ne=c;r.push(f);return f};g.prototype.mq=function(b,c){var d;this.Fd();var a=this.q;this.Ld&&(d=!1);a.bindTexture(a.TEXTURE_2D,c);a.pixelStorei(a.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);try{a.texImage2D(a.TEXTURE_2D,
0,a.RGBA,a.RGBA,d?a.UNSIGNED_SHORT_4_4_4_4:a.UNSIGNED_BYTE,b)}catch(e){console&&console.error&&console.error("Error updating WebGL texture: ",e)}a.bindTexture(a.TEXTURE_2D,null);this.we=null};g.prototype.deleteTexture=function(b){b&&("undefined"!==typeof b.$h&&1<b.$h?b.$h--:(this.Fd(),b===this.we&&(this.q.bindTexture(this.q.TEXTURE_2D,null),this.we=null),b===this.ff&&(this.q.activeTexture(this.q.TEXTURE1),this.q.bindTexture(this.q.TEXTURE_2D,null),this.q.activeTexture(this.q.TEXTURE0),this.ff=null),
Ga(r,b),"undefined"!==typeof b.un&&delete h[b.un],this.q.deleteTexture(b)))};g.prototype.Ec=function(b){if(b!==this.qj){var c=this.Gb();c.type=6;this.qj=c.Gc=b;this.Wa=!1}};pb=g})();
(function(){function g(){return"undefined"!==typeof jQuery?jQuery(window).width():window.innerWidth}function n(){return"undefined"!==typeof jQuery?jQuery(window).height():window.innerHeight}function l(a){if(a&&(a.getContext||a.dc)&&!a.c2runtime){a.c2runtime=this;var b=this;this.jc=(this.Tg=/crosswalk/i.test(navigator.userAgent)||/xwalk/i.test(navigator.userAgent)||!("undefined"===typeof window.c2isCrosswalk||!window.c2isCrosswalk))||"undefined"!==typeof window.device&&("undefined"!==typeof window.device.cordova||
"undefined"!==typeof window.device.phonegap)||"undefined"!==typeof window.c2iscordova&&window.c2iscordova;this.ib=!!a.dc;this.io="undefined"!==typeof window.AppMobi||this.ib;this.ic=!!window.c2cocoonjs;this.Vc=!!window.c2ejecta;this.ic&&(CocoonJS.App.onSuspended.addEventListener(function(){b.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){b.setSuspended(!1)}));this.Vc&&(document.addEventListener("pagehide",function(){b.setSuspended(!0)}),document.addEventListener("pageshow",
function(){b.setSuspended(!1)}),document.addEventListener("resize",function(){b.setSize(window.innerWidth,window.innerHeight)}));this.qa=this.ib||this.ic||this.Vc;this.Wg=/edge\//i.test(navigator.userAgent);this.Ld=(/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent))&&!this.Wg;this.lo=/tizen/i.test(navigator.userAgent);this.Rg=/android/i.test(navigator.userAgent)&&!this.lo&&!this.Ld&&!this.Wg;this.hl=(/iphone/i.test(navigator.userAgent)||
/ipod/i.test(navigator.userAgent))&&!this.Ld&&!this.Wg;this.po=/ipad/i.test(navigator.userAgent);this.bh=this.hl||this.po||this.Vc;this.cu=this.hl&&/os\s6/i.test(navigator.userAgent);this.Sg=(/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent))&&!this.Ld&&!this.Wg;this.Zk=/amazonwebappplatform/i.test(navigator.userAgent);this.Vt=/firefox/i.test(navigator.userAgent);this.ko=/safari/i.test(navigator.userAgent)&&!this.Sg&&!this.Ld&&!this.Wg;this.$t=/windows/i.test(navigator.userAgent);
this.Zt=this.Md="undefined"!==typeof window.c2nodewebkit||"undefined"!==typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.no=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.bu=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.Hf=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.el=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);
this.mo=!!window.cr_windows10;this.dl=this.no||this.bu||this.el||this.mo;this.Tt=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.Hi=this.Rg&&!this.Sg&&!this.Tg&&!this.Vt&&!this.Zk&&!this.qa;this.devicePixelRatio=1;this.Ff=this.jc||this.Tg||this.io||this.ic||this.Rg||this.bh||this.Hf||this.el||this.Tt||this.lo||this.Vc;this.Ff||(this.Ff=/(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)&&!/nwjs/i.test(navigator.userAgent)||(this.Md=!0);this.Ut="undefined"!==typeof cr_is_preview&&-1<window.location.search.indexOf("debug");this.canvas=a;this.bk=document.getElementById("c2canvasdiv");this.m=this.q=null;this.Ok="(unavailable)";this.ga=!1;this.Te=0;this.ca=null;this.Ak="";this.vi=!1;this.bp=this.cp=0;this.canvas.oncontextmenu=function(a){a.preventDefault&&a.preventDefault();return!1};
this.canvas.onselectstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.ib&&(window.c2runtime=this);this.Md&&(window.ondragover=function(a){a.preventDefault();return!1},window.ondrop=function(a){a.preventDefault();return!1},window.nwgui&&window.nwgui.App.clearCache&&window.nwgui.App.clearCache());this.Hi&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=a.width;this.height=a.height;this.C=this.width;this.B=this.height;this.gi=this.width;
this.zg=this.height;this.hh=window.innerWidth;this.gh=window.innerHeight;this.Zs=!1;this.ha=!0;this.Yg=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.n=[];this.Ga=[];this.ll={};this.Yc=[];this.sk={};this.Gd=[];this.mg=[];this.Hj=[];this.wr=[];this.xr=[];this.lm=null;this.Re={};this.al=this.ue=!1;this.Wc=0;this.$k=this.cl=!1;this.Sc=[];this.Vg=!1;this.Nd=this.qb=this.Ri=this.im="";this.Kh=this.Op=!1;this.ti=[];this.re=this.Se=0;this.To=30;this.jk=this.ph=0;this.hg=
1;this.pb=new fb;this.$d=new fb;this.bj=this.xi=this.Eg=this.Oh=this.hf=this.zk=this.Oi=0;this.gk=null;this.nk=[];this.rk=[];this.qi=-1;this.sl=[[]];this.vm=this.Wi=0;this.oj(null);this.ul=[];this.Yi=-1;this.Fg=this.Wo=this.th=0;this.Lh=[];this.rm=this.Xl=-1;this.Li=!0;this.Of=0;this.df=!1;this.bv=0;this.xf=null;this.Qb=this.Zn=!1;this.$o=new ca;this.Bl=new ca;this.Cl=new ca;this.xp=[];new hb([]);new hb([]);this.wf=[];this.Ei={};this.le={};this.ge={};this.lg={};this.rn={};this.xo=this.Qi=this.Ja=
this.Ta=this.wo=this.Pi=this.ja=null;this.jg=this.fl=!1;this.Bk=[null,null];this.Jd=0;this.xk="";this.Qd={};this.Ih=this.ze=null;this.Pp="";this.aj=[];this.Iu()}}function q(a,b){return 128>=b?a[3]:256>=b?a[2]:512>=b?a[1]:a[0]}function t(){try{return!!window.indexedDB}catch(a){return!1}}function r(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function h(a,b,e,f){try{var c=indexedDB.open("_C2SaveStates");c.onupgradeneeded=r;c.onerror=f;c.onsuccess=function(c){c=c.target.result;c.onerror=
f;c.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,data:b}).onsuccess=e}}catch(m){f(m)}}function b(a,b,e){try{var f=indexedDB.open("_C2SaveStates");f.onupgradeneeded=r;f.onerror=e;f.onsuccess=function(f){f=f.target.result;f.onerror=e;var c=f.transaction(["saves"]).objectStore("saves").get(a);c.onsuccess=function(){c.result?b(c.result.data):b(null)}}}catch(c){e(c)}}function c(){ea("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?
window.location.reload(!0):window.location=window.location+"?continuous"}function d(a){var b,e={};for(b in a)!a.hasOwnProperty(b)||a[b]instanceof ca||a[b]&&"undefined"!==typeof a[b].rw||"spriteCreatedDestroyCallback"!==b&&(e[b]=a[b]);return e}var a=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;l.prototype.Iu=function(){var a=this,b;this.Hf?b=new ActiveXObject("Microsoft.XMLHTTP"):b=new XMLHttpRequest;
var e="data.js";if(this.no||this.Hf||this.el||this.mo)e="data.json";b.open("GET",e,!0);var f=!1;if(!this.qa&&"response"in b&&"responseType"in b)try{b.responseType="json",f="json"===b.responseType}catch(c){f=!1}if(!f&&"responseType"in b)try{b.responseType="text"}catch(m){}if("overrideMimeType"in b)try{b.overrideMimeType("application/json; charset=utf-8")}catch(k){}this.Hf?b.onreadystatechange=function(){4===b.readyState&&a.Ti(JSON.parse(b.responseText))}:(b.onload=function(){if(f)a.Ti(b.response);
else if(a.Vc){var e=b.responseText,e=e.substr(e.indexOf("{"));a.Ti(JSON.parse(e))}else a.Ti(JSON.parse(b.responseText))},b.onerror=function(a){fa("Error requesting "+e+":");fa(a)});b.send()};l.prototype.St=function(){var a=this,b,e,f,c,m,k,d,h,p;this.ef=(!this.qa||this.Vc||this.jc)&&this.pv&&!this.Hi;0===this.tb&&this.bh&&(this.ef=!1);this.devicePixelRatio=this.ef?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.mb();e=!(!this.Zs&&
(!this.Rj||this.Md||this.dl||this.Hf||this.Tg||this.jc||this.Zk));0<this.tb&&this.setSize(g(),n(),!0);try{this.ss&&(this.ic||this.Vc||!this.qa)&&(b={alpha:e,depth:!1,antialias:!1,failIfMajorPerformanceCaveat:!0},this.q=this.canvas.getContext("webgl",b)||this.canvas.getContext("experimental-webgl",b))}catch(v){}if(this.q){if(b=this.q.getExtension("WEBGL_debug_renderer_info"))this.Ok=this.q.getParameter(b.UNMASKED_RENDERER_WEBGL)+" ["+this.q.getParameter(b.UNMASKED_VENDOR_WEBGL)+"]";this.ga&&(this.Ok+=
" [front-to-back enabled]");this.qa||(this.jb=document.createElement("canvas"),jQuery(this.jb).appendTo(this.canvas.parentNode),this.jb.oncontextmenu=function(){return!1},this.jb.onselectstart=function(){return!1},this.jb.width=Math.round(this.gi*this.devicePixelRatio),this.jb.height=Math.round(this.zg*this.devicePixelRatio),jQuery(this.jb).css({width:this.gi+"px",height:this.zg+"px"}),this.qp(),this.Ql=this.jb.getContext("2d"));this.m=new pb(this.q,this.Ff,this.ga);this.m.Vd(this.canvas.width,this.canvas.height);
this.m.Hn=0!==this.ks;this.ca=null;this.canvas.addEventListener("webglcontextlost",function(b){b.preventDefault();a.mu();ea("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){a.m.co();a.m.Vd(a.m.width,a.m.height,!0);a.Ta=null;a.Ja=null;a.Bk[0]=null;a.Bk[1]=null;a.nu();a.ha=!0;ea("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);b=0;for(e=this.n.length;b<e;b++)for(m=this.n[b],f=0,c=m.J.length;f<c;f++)d=
m.J[f],d.La=this.m.Kk(d.id),d.ad=this.m.Ul(d.La),this.jg=this.jg||this.m.zh(d.La);b=0;for(e=this.Yc.length;b<e;b++){h=this.Yc[b];f=0;for(c=h.J.length;f<c;f++)d=h.J[f],d.La=this.m.Kk(d.id),d.ad=this.m.Ul(d.La);h.fd();f=0;for(c=h.K.length;f<c;f++){p=h.K[f];m=0;for(k=p.J.length;m<k;m++)d=p.J[m],d.La=this.m.Kk(d.id),d.ad=this.m.Ul(d.La),this.jg=this.jg||this.m.zh(d.La);p.fd()}}}else{if(0<this.tb&&this.ib){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};
this.ca=AppMobi.canvas.getContext("2d");try{this.ca.samplingMode=this.V?"smooth":"sharp",this.ca.globalScale=1,this.ca.HTML5CompatibilityMode=!0,this.ca.imageSmoothingEnabled=this.V}catch(l){}0!==this.width&&0!==this.height&&(this.ca.width=this.width,this.ca.height=this.height)}this.ca||(this.ic?(b={antialias:!!this.V,alpha:e},this.ca=this.canvas.getContext("2d",b)):(b={alpha:e},this.ca=this.canvas.getContext("2d",b)),this.ca.webkitImageSmoothingEnabled=this.V,this.ca.mozImageSmoothingEnabled=this.V,
this.ca.msImageSmoothingEnabled=this.V,this.ca.imageSmoothingEnabled=this.V);this.Ql=this.jb=null}this.Xp=function(b){a.bb(!1,b)};window==window.top||this.qa||this.dl||this.Hf||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.ic&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(ea("Reloading for continuous preview"),
this.Ri="__c2_continuouspreview",this.Kh=!0),this.tu&&!this.Ff&&(jQuery(window).focus(function(){a.setSuspended(!1)}),jQuery(window).blur(function(){a.setSuspended(!0)})));window.addEventListener("blur",function(){});this.qa||(b=function(a){if(ob(a)&&document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(b){}},window.navigator.pointerEnabled?document.addEventListener("pointerdown",b):window.navigator.msPointerEnabled?
document.addEventListener("MSPointerDown",b):document.addEventListener("touchstart",b),document.addEventListener("mousedown",b));0===this.tb&&this.ef&&1<this.devicePixelRatio&&this.setSize(this.Va,this.Ua,!0);this.aq();this.Lt();this.go();this.M={}};l.prototype.setSize=function(a,b,e){var f=0,c=0,m=0,k=0,k=0,d=this.cu&&this.ko&&!navigator.standalone&&!this.qa&&!this.jc;d&&(b+=60);if(this.hh!==a||this.gh!==b||e){this.hh=a;this.gh=b;var h=this.tb,p=(document.mozFullScreen||document.webkitIsFullScreen||
!!document.msFullscreenElement||document.fullScreen||this.df)&&!this.jc;if(p||0!==this.tb||e)p&&0<this.Jd&&(h=this.Jd),e=this.devicePixelRatio,4<=h?(m=this.Va/this.Ua,a/b>m?(m*=b,5===h?(k=m*e/this.Va,1<k?k=Math.floor(k):1>k&&(k=1/Math.ceil(1/k)),m=this.Va*k/e,k=this.Ua*k/e,f=(a-m)/2,c=(b-k)/2,a=m,b=k):(f=(a-m)/2,a=m)):(k=a/m,5===h?(k=k*e/this.Ua,1<k?k=Math.floor(k):1>k&&(k=1/Math.ceil(1/k)),m=this.Va*k/e,k=this.Ua*k/e,f=(a-m)/2,c=(b-k)/2,a=m):c=(b-k)/2,b=k),p&&!this.Md&&(c=f=0)):this.Md&&this.df&&
0===this.Rn&&(f=Math.floor((a-this.Va)/2),c=Math.floor((b-this.Ua)/2),a=this.Va,b=this.Ua),2>h&&(this.sg=e),this.ef&&this.po&&1<e&&(1024<=a&&(a=1023),1024<=b&&(b=1023)),this.gi=Math.round(a),this.zg=Math.round(b),this.width=Math.round(a*e),this.height=Math.round(b*e),this.ha=!0,this.oq?(this.C=this.width,this.B=this.height,this.ec=!0):this.width<this.Va&&this.height<this.Ua||1===h?(this.C=this.width,this.B=this.height,this.ec=!0):(this.C=this.Va,this.B=this.Ua,this.ec=!1,2===h?(m=this.Va/this.Ua,
h=this.hh/this.gh,h<m?this.C=this.B*h:h>m&&(this.B=this.C/h)):3===h&&(m=this.Va/this.Ua,h=this.hh/this.gh,h>m?this.C=this.B*h:h<m&&(this.B=this.C/h))),this.bk&&!this.qa&&(jQuery(this.bk).css({width:Math.round(a)+"px",height:Math.round(b)+"px","margin-left":Math.floor(f)+"px","margin-top":Math.floor(c)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(a)+"px",height:Math.round(b)+"px"})),this.canvas&&(this.canvas.width=Math.round(a*e),this.canvas.height=Math.round(b*
e),this.Vc?(this.canvas.style.left=Math.floor(f)+"px",this.canvas.style.top=Math.floor(c)+"px",this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(b)+"px"):this.ef&&!this.qa&&(this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(b)+"px")),this.jb&&(this.jb.width=Math.round(a*e),this.jb.height=Math.round(b*e),this.jb.style.width=this.gi+"px",this.jb.style.height=this.zg+"px"),this.m&&this.m.Vd(Math.round(a*e),Math.round(b*e)),this.ib&&this.ca&&(this.ca.width=
Math.round(a),this.ca.height=Math.round(b)),this.ca&&(this.ca.webkitImageSmoothingEnabled=this.V,this.ca.mozImageSmoothingEnabled=this.V,this.ca.msImageSmoothingEnabled=this.V,this.ca.imageSmoothingEnabled=this.V),this.aq(),this.qa||!d&&!this.hl||window.setTimeout(function(){window.scrollTo(0,1)},100)}};l.prototype.aq=function(){if(this.Ar&&0!==this.Ol){var a="portrait";2===this.Ol&&(a="landscape");try{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)}catch(b){console&&console.warn&&console.warn("Failed to lock orientation: ",b)}}};l.prototype.mu=function(){this.m.Kr();this.fl=!0;var a,b,e;a=0;for(b=this.n.length;a<b;a++)e=this.n[a],e.Il&&e.Il()};l.prototype.nu=function(){this.fl=!1;var a,b,e;a=0;for(b=this.n.length;a<b;a++)e=this.n[a],e.Ml&&e.Ml()};l.prototype.qp=function(){if(!this.qa){var a=
(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.df)&&!this.jc?jQuery(this.canvas).offset():jQuery(this.canvas).position();a.position="absolute";jQuery(this.jb).css(a)}};var e=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;l.prototype.setSuspended=function(a){var b;if(a&&!this.Yg)for(ea("[Construct 2] Suspending"),this.Yg=!0,-1!==
this.Xl&&e&&e(this.Xl),-1!==this.rm&&clearTimeout(this.rm),a=0,b=this.Lh.length;a<b;a++)this.Lh[a](!0);else if(!a&&this.Yg){ea("[Construct 2] Resuming");this.Yg=!1;this.Oi=ab();this.hf=ab();a=this.ph=this.xi=0;for(b=this.Lh.length;a<b;a++)this.Lh[a](!1);this.bb(!1)}};l.prototype.en=function(a){this.Lh.push(a)};l.prototype.ee=function(a){return this.aj[a]};l.prototype.Ti=function(a){a&&a.project||fa("Project model unavailable");a=a.project;this.name=a[0];this.Mn=a[1];this.tb=a[12];this.Rn=a[12];this.Va=
a[10];this.Ua=a[11];this.lp=this.Va/2;this.mp=this.Ua/2;this.qa&&!this.Vc&&(4<=a[12]||0===a[12])&&(ea("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.Rn=this.tb=3);this.Bm=a[18];this.Ae=a[19];if(0===this.Ae){var b=new Image;b.crossOrigin="anonymous";b.src="loading-logo.png";this.ze={Xi:b}}else if(4===this.Ae){b=new Image;b.src="";var e=new Image;e.src="";var f=new Image;f.src="";var m=new Image;m.src="";var c=new Image;c.src=
"";var k=new Image;k.src="";var d=new Image;d.src="";var h=new Image;h.src="";var p=new Image;p.src="";var v=new Image;v.src="";var l=new Image;l.src="";var x=new Image;x.src="";this.ze={Xi:[b,e,f,m],zu:[c,k,d,h],sv:[p,v,l,x]}}this.th=a[21];this.aj=nc();this.xd=new X(this);b=0;for(e=a[2].length;b<e;b++)d=a[2][b],f=this.ee(d[0]),qb(d,f.prototype),h=new f(this),h.wj=d[1],h.ve=d[2],h.Uo=d[9],h.ba&&h.ba(),this.plugins.push(h);this.aj=nc();b=0;for(e=a[3].length;b<e;b++){d=a[3][b];c=this.ee(d[1]);h=null;
f=0;for(m=this.plugins.length;f<m;f++)if(this.plugins[f]instanceof c){h=this.plugins[f];break}p=new h.Fa(h);p.name=d[0];p.L=d[2];p.Xk=d[3].slice(0);p.rv=d[3].length;p.Br=d[4];p.bt=d[5];p.R=d[11];p.L?(p.Rf=[],p.Hd=this.Fg++,p.va=null):(p.Rf=null,p.Hd=-1,p.va=[]);p.ri=null;p.Bf=null;p.In=null;p.Eb=!1;p.Mb=null;d[6]?(p.Tp=d[6][0],p.Up=d[6][1],p.gv=d[6][2]):(p.Tp=null,p.Up=0,p.gv=0);d[7]?p.Ab=d[7]:p.Ab=null;p.index=b;p.c=[];p.li=[];p.Yd=[new rb(p)];p.kd=0;p.vc=null;p.Sr=0;p.fg=!0;p.Ij=sb;p.kt=tb;p.pt=
ub;p.Z=vb;p.Ah=wb;p.Bh=xb;p.De=yb;p.Ai=zb;p.Ck=Ab;p.Ek=Bb;p.je=Cb;p.Gk=Db;p.di=new ib(this.Va,this.Ua);p.Yh=!0;p.Zh=!1;p.M={};p.toString=Eb;p.Ga=[];f=0;for(m=d[8].length;f<m;f++){v=d[8][f];l=this.ee(v[1]);x=null;c=0;for(k=this.Ga.length;c<k;c++)if(this.Ga[c]instanceof l){x=this.Ga[c];break}x||(x=new l(this),x.Vo=[],x.Tf=new ca,x.ba&&x.ba(),this.Ga.push(x),oc&&x instanceof oc&&(this.lm=x));-1===x.Vo.indexOf(p)&&x.Vo.push(p);c=new x.Fa(x,p);c.name=v[0];c.R=v[2];c.ba();p.Ga.push(c)}p.global=d[9];p.bl=
d[10];p.J=[];f=0;for(m=d[12].length;f<m;f++)p.J.push({id:d[12][f][0],name:d[12][f][1],La:-1,ad:!1,cb:!0,index:f});p.Iw=d[13];this.Bm&&!p.L&&!p.bl&&h.ve||p.ba();p.name&&(this.types[p.name]=p);this.n.push(p);h.wj&&(f=new h.ra(p),f.uid=this.th++,f.up=this.Wo++,f.Ze=0,f.Lg=Fb,f.toString=Gb,f.D=d[14],f.ba(),p.c.push(f),this.Qd[f.uid.toString()]=f)}b=0;for(e=a[4].length;b<e;b++)for(c=a[4][b],k=this.n[c[0]],f=1,m=c.length;f<m;f++)d=this.n[c[f]],d.va.push(k),k.Rf.push(d);b=0;for(e=a[28].length;b<e;b++){c=
a[28][b];k=[];f=0;for(m=c.length;f<m;f++)k.push(this.n[c[f]]);f=0;for(m=k.length;f<m;f++)k[f].Eb=!0,k[f].Mb=k}if(0<this.Fg)for(b=0,e=this.n.length;b<e;b++)if(d=this.n[b],!d.L&&d.va.length){d.ri=Array(this.Fg);d.Bf=Array(this.Fg);d.In=Array(this.Fg);p=[];f=x=l=v=0;for(m=d.va.length;f<m;f++)for(h=d.va[f],d.ri[h.Hd]=v,v+=h.rv,d.Bf[h.Hd]=l,l+=h.Br,d.In[h.Hd]=x,x+=h.bt,c=0,k=h.J.length;c<k;c++)p.push(xa({},h.J[c]));d.J=p.concat(d.J);f=0;for(m=d.J.length;f<m;f++)d.J[f].index=f}b=0;for(e=a[5].length;b<e;b++)d=
a[5][b],f=new Hb(this,d),this.ll[f.name]=f,this.Yc.push(f);b=0;for(e=a[6].length;b<e;b++)d=a[6][b],f=new Ib(this,d),this.sk[f.name]=f,this.Gd.push(f);b=0;for(e=this.Gd.length;b<e;b++)this.Gd[b].Ca();b=0;for(e=this.Gd.length;b<e;b++)this.Gd[b].ym();b=0;for(e=this.Hj.length;b<e;b++)this.Hj[b].Ca();Q(this.Hj);this.yr=a[7];this.xk=a[8];this.nf=a[9];this.sg=1;this.ss=a[13];this.V=a[14];this.Rj=a[15];this.pv=a[17];this.Ol=a[20];this.Ar=0<this.Ol;this.tu=a[22];this.ec=this.oq=a[23];this.ks=a[24];this.Au=
a[25];this.ga=a[27]&&!this.Ld;this.xj=Date.now();Q(this.aj);this.St()};var k=!1;l.prototype.nq=function(a,b){a.cocoonLazyLoad=!0;a.onerror=function(b){k=a.tn=!0;console&&console.error&&console.error("Error loading image '"+a.src+"': ",b)};this.Vc?a.src=b:a.src||("undefined"!==typeof XAPKReader?XAPKReader.get(b,function(b){a.src=b},function(e){k=a.tn=!0;console&&console.error&&console.error("Error extracting image '"+b+"' from expansion file: ",e)}):(a.crossOrigin="anonymous",a.src=b));this.mg.push(a)};
l.prototype.Ys=function(a){var b,e;b=0;for(e=this.mg.length;b<e;b++)if(this.mg[b].Lr===a)return this.mg[b];return null};var f=0,x=!1;l.prototype.Lt=function(){this.xf&&(f=this.xf.Wu(this.yr))};l.prototype.jn=function(){var a=f,b=0,e=0,c=!0,m,k,e=0;for(m=this.mg.length;e<m;e++){k=this.mg[e];var d=k.An;if(!d||0>=d)d=5E4;a+=d;k.src&&(k.complete||k.loaded)&&!k.tn?b+=d:c=!1}c&&this.Au&&this.xf&&(x||(this.xf.cv(),x=!0),e=this.xf.tt(),b+=e,e<f&&(c=!1));this.bd=0==a?1:b/a;return c};var p=!1;l.prototype.go=
function(){if(this.ca||this.m){var b=this.ca||this.Ql;this.jb&&this.qp();this.bd=0;this.vo=-1;var e=this;if(this.jn()&&(4!==this.Ae||p))this.Mt();else{var f=Date.now()-this.xj;if(b){var c=this.width,m=this.height,d=this.devicePixelRatio;if(3>this.Ae&&(this.ic||500<=f&&this.vo!=this.bd)){b.clearRect(0,0,c,m);var f=c/2,m=m/2,c=0===this.Ae&&this.ze.Xi.complete,h=40*d,v=0,l=80*d,x;if(c){var g=this.ze.Xi,l=g.width*d;x=g.height*d;h=l/2;v=x/2;b.drawImage(g,qa(f-h),qa(m-v),l,x)}1>=this.Ae?(f=qa(f-h)+.5,m=
qa(m+(v+(c?12*d:0)))+.5,b.fillStyle=k?"red":"DodgerBlue",b.fillRect(f,m,Math.floor(l*this.bd),6*d),b.strokeStyle="black",b.strokeRect(f,m,l,6*d),b.strokeStyle="white",b.strokeRect(f-1*d,m-1*d,l+2*d,8*d)):2===this.Ae&&(b.font=this.Vc?"12pt ArialMT":"12pt Arial",b.fillStyle=k?"#f00":"#999",b.Hw="middle",d=Math.round(100*this.bd)+"%",c=b.measureText?b.measureText(d):null,b.fillText(d,f-(c?c.width:0)/2,m));this.vo=this.bd}else if(4===this.Ae){this.ps(b);a?a(function(){e.go()}):setTimeout(function(){e.go()},
16);return}}setTimeout(function(){e.go()},this.ic?10:100)}}};var L=-1,m="undefined"===typeof cr_is_preview?200:0,v=!0,B=!1,J=0,V=0,O="undefined"===typeof cr_is_preview?3E3:0,T=null,D=null,H=0;l.prototype.ps=function(a){if(!p){for(var b=Math.ceil(this.width),e=Math.ceil(this.height),f=this.ze.Xi,c=this.ze.zu,d=this.ze.sv,h=0;4>h;++h)if(!f[h].complete||!c[h].complete||!d[h].complete)return;0===H&&(L=Date.now());var h=Date.now(),l=!1,x=a,g,n;v||B?(a.clearRect(0,0,b,e),T&&T.width===b&&T.height===e||(T=
document.createElement("canvas"),T.width=b,T.height=e,D=T.getContext("2d")),x=D,l=!0,v&&1===H&&(L=Date.now())):a.globalAlpha=1;x.fillStyle="#333333";x.fillRect(0,0,b,e);256<this.zg?(g=Ha(.22*e,105,.6*b),n=.25*g,x.drawImage(q(c,g),.5*b-g/2,.2*e-n/2,g,n),n=g=Math.min(.395*e,.95*b),x.drawImage(q(f,g),.5*b-g/2,.485*e-n/2,g,n),g=Ha(.22*e,105,.6*b),n=.25*g,x.drawImage(q(d,g),.5*b-g/2,.868*e-n/2,g,n),x.fillStyle="#3C3C3C",g=b,n=Math.max(.005*e,2),x.fillRect(0,.8*e-n/2,g,n),x.fillStyle=k?"red":"#E0FF65",
g=b*this.bd,x.fillRect(.5*b-g/2,.8*e-n/2,g,n)):(n=g=.55*e,x.drawImage(q(f,g),.5*b-g/2,.45*e-n/2,g,n),x.fillStyle="#3C3C3C",g=b,n=Math.max(.005*e,2),x.fillRect(0,.85*e-n/2,g,n),x.fillStyle=k?"red":"#E0FF65",g=b*this.bd,x.fillRect(.5*b-g/2,.85*e-n/2,g,n));l&&(v?a.globalAlpha=0===H?0:Math.min((h-L)/300,1):B&&(a.globalAlpha=Math.max(1-(h-V)/300,0)),a.drawImage(T,0,0,b,e));v&&300<=h-L&&2<=H&&(v=!1,J=h);!v&&h-J>=O&&!B&&1<=this.bd&&(B=!0,V=h);if(B&&h-V>=300+m||"undefined"!==typeof cr_is_preview&&1<=this.bd&&
500>Date.now()-L)p=!0,B=v=!1,this.ze=D=T=null;++H}};l.prototype.Mt=function(){this.jb&&(this.canvas.parentNode.removeChild(this.jb),this.jb=this.Ql=null);this.xj=Date.now();this.hf=ab();var a,b,e;if(this.Bm)for(a=0,b=this.n.length;a<b;a++)e=this.n[a],e.L||e.bl||!e.wa.ve||e.ba();else this.Li=!1;a=0;for(b=this.Yc.length;a<b;a++)this.Yc[a].Nr();2<=this.tb&&(a=this.Va/this.Ua,b=this.width/this.height,this.sg=2!==this.tb&&b>a||2===this.tb&&b<a?this.height/this.Ua:this.width/this.Va);this.Mn?this.ll[this.Mn].om():
this.Yc[0].om();this.Bm||(this.Of=1,this.trigger(X.prototype.d.Pm,null));navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();a=0;for(b=this.n.length;a<b;a++)e=this.n[a],e.lu&&e.lu();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.bb(!1);this.ib&&AppMobi.webview.execute("onGameReady();")};l.prototype.bb=function(b,e,f){if(this.ja){var c=ab();if(f||!this.Yg||b){b||(a?this.Xl=a(this.Xp):this.rm=setTimeout(this.Xp,
this.Ff?1:16));e=e||c;var m=this.tb;((f=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.jc)||this.df)&&0<this.Jd&&(m=this.Jd);0<m&&(!this.bh||window.self!==window.top)&&(m=window.innerHeight,this.hh===window.innerWidth&&this.gh===m||this.setSize(g(),n()));this.qa||(f?(this.vi||(this.Ak=jQuery(this.canvas).css("margin")||"0",this.vi=!0),this.Sg||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.vi?(this.Sg||this.Md||jQuery(this.canvas).css("margin",this.Ak),this.Ak="",this.vi=!1,0===this.tb&&this.setSize(Math.round(this.cp/this.devicePixelRatio),Math.round(this.bp/this.devicePixelRatio),!0)):(this.cp=this.width,this.bp=this.height));this.Li&&(f=this.jn(),this.Of=this.bd,f&&(this.Li=!1,this.bd=1,this.trigger(X.prototype.d.Pm,null)));this.gu(e);!this.ha&&!this.ic||this.fl||this.Kh||b||(this.ha=
!1,this.m?this.xc():this.qe(),this.Ih&&(this.canvas&&this.canvas.toDataURL&&(this.Pp=this.canvas.toDataURL(this.Ih[0],this.Ih[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.Pp),this.trigger(X.prototype.d.Nq,null)),this.Ih=null));this.vw||(this.Oh++,this.Eg++,this.xi++);this.ph+=ab()-c}}};l.prototype.gu=function(a){var b,e,f,c,m,k,d,p;1E3<=a-this.hf&&(this.hf+=1E3,1E3<=a-this.hf&&(this.hf=a),this.zk=this.xi,this.xi=0,this.jk=this.ph,this.ph=0);0!==this.Oi&&(b=a-this.Oi,0>b&&(b=0),this.re=b/1E3,
.5<this.re?this.re=0:this.re>1/this.To&&(this.re=1/this.To));this.Oi=a;this.Se=this.re*this.hg;this.pb.add(this.Se);this.$d.add(this.re);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.df)&&!this.jc;2<=this.tb||a&&0<this.Jd?(b=this.Va/this.Ua,e=this.width/this.height,f=this.tb,a&&0<this.Jd&&(f=this.Jd),this.sg=2!==f&&e>b||2===f&&e<b?this.height/this.Ua:this.width/this.Va,this.ja&&(this.ja.Ap(this.ja.scrollX),this.ja.Bp(this.ja.scrollY))):
this.sg=this.ef?this.devicePixelRatio:1;this.mb();this.Wc++;this.xd.Mu();this.Wc--;this.mb();this.Wc++;e=this.$o.Jc();a=0;for(b=e.length;a<b;a++)e[a].Dw();a=0;for(b=this.n.length;a<b;a++)if(k=this.n[a],!k.L&&(k.Ga.length||k.va.length))for(e=0,f=k.c.length;e<f;e++)for(d=k.c[e],c=0,m=d.I.length;c<m;c++)d.I[c].bb();a=0;for(b=this.n.length;a<b;a++)if(k=this.n[a],!k.L&&(k.Ga.length||k.va.length))for(e=0,f=k.c.length;e<f;e++)for(d=k.c[e],c=0,m=d.I.length;c<m;c++)p=d.I[c],p.yu&&p.yu();e=this.Bl.Jc();a=0;
for(b=e.length;a<b;a++)e[a].bb();this.Wc--;this.Nt();for(a=0;this.gk&&10>a++;)this.Gn(this.gk);a=0;for(b=this.Gd.length;a<b;a++)this.Gd[a].Rk=!1;this.ja.Ue&&this.ja.Ue.Ka();Q(this.xp);this.Wc++;a=0;for(b=this.n.length;a<b;a++)if(k=this.n[a],!k.L&&(k.Ga.length||k.va.length))for(e=0,f=k.c.length;e<f;e++)for(d=k.c[e],c=0,m=d.I.length;c<m;c++)p=d.I[c],p.Dj&&p.Dj();e=this.Cl.Jc();a=0;for(b=e.length;a<b;a++)e[a].Dj();this.Wc--};l.prototype.Gn=function(a){var b=this.ja;this.ja.dv();var e,f,c,m,k,d,p;if(this.m)for(e=
0,f=this.n.length;e<f;e++)k=this.n[e],k.L||!k.dq||k.global&&0!==k.c.length||-1!==a.Qg.indexOf(k)||k.dq();b==a&&Q(this.xd.Zb);Q(this.xp);a.om();e=0;for(f=this.n.length;e<f;e++)if(k=this.n[e],k.global||k.wa.wj)for(a=0,b=k.c.length;a<b;a++)if(d=k.c[a],d.Hl&&d.Hl(),d.I)for(c=0,m=d.I.length;c<m;c++)p=d.I[c],p.Hl&&p.Hl();this.ha=!0;this.mb()};l.prototype.Ej=function(a){this.Bl.add(a)};l.prototype.Wp=function(a){this.Cl.add(a)};l.prototype.Hg=function(a){return a&&-1!==a.sh?this.re*a.sh:this.Se};l.prototype.qe=
function(){this.ja.qe(this.ca);this.ib&&this.ca.present()};l.prototype.xc=function(){this.ga&&(this.Te=1,this.ja.Af(this.m));this.ja.xc(this.m);this.m.Cu()};l.prototype.tr=function(a){a&&this.nk.push(a)};l.prototype.Ci=function(a){a=a.toString();return this.Qd.hasOwnProperty(a)?this.Qd[a]:null};var C=[];l.prototype.Je=function(a){var b,e;b=a.type.name;var f=null;if(this.Re.hasOwnProperty(b)){if(f=this.Re[b],f.contains(a))return}else f=C.length?C.pop():new ca,this.Re[b]=f;f.add(a);this.ue=!0;if(a.Eb)for(b=
0,e=a.siblings.length;b<e;b++)this.Je(a.siblings[b]);this.al&&f.kg.push(a);this.$k||(this.Wc++,this.trigger(Object.getPrototypeOf(a.type.wa).d.Oq,a),this.Wc--)};l.prototype.mb=function(){if(this.ue){var a,b,e,f,c,m;this.al=!0;e=0;for(c=this.Sc.length;e<c;++e)for(a=this.Sc[e],b=a.type,b.c.push(a),f=0,m=b.va.length;f<m;++f)b.va[f].c.push(a),b.va[f].fg=!0;Q(this.Sc);this.Hq();$a(this.Re);this.ue=this.al=!1}};l.prototype.Hq=function(){for(var a in this.Re)this.Re.hasOwnProperty(a)&&this.uq(this.Re[a])};
l.prototype.uq=function(a){var b=a.Jc(),e=b[0].type,f,c,m,k,d,p;cb(e.c,a);e.fg=!0;0===e.c.length&&(e.Zh=!1);f=0;for(c=e.va.length;f<c;++f)p=e.va[f],cb(p.c,a),p.fg=!0;f=0;for(c=this.xd.Zb.length;f<c;++f)if(d=this.xd.Zb[f],d.Wb.hasOwnProperty(e.index)&&cb(d.Wb[e.index].cf,a),!e.L)for(m=0,k=e.va.length;m<k;++m)p=e.va[m],d.Wb.hasOwnProperty(p.index)&&cb(d.Wb[p.index].cf,a);if(d=b[0].j){if(d.nc)for(m=d.c,f=0,c=m.length;f<c;++f)k=m[f],a.contains(k)&&(k.Da(),d.kb.update(k,k.Hb,null),k.Hb.set(0,0,-1,-1));
cb(d.c,a);d.Fh(0)}for(f=0;f<b.length;++f)this.tq(b[f],e);a.clear();C.push(a);this.ha=!0};l.prototype.tq=function(a,b){var e,f,c;e=0;for(f=this.nk.length;e<f;++e)this.nk[e](a);a.me&&b.di.update(a,a.me,null);(e=a.j)&&e.Zf(a,!0);if(a.I)for(e=0,f=a.I.length;e<f;++e)c=a.I[e],c.uh&&c.uh(),c.behavior.Tf.remove(a);this.$o.remove(a);this.Bl.remove(a);this.Cl.remove(a);a.uh&&a.uh();this.Qd.hasOwnProperty(a.uid.toString())&&delete this.Qd[a.uid.toString()];this.bj--;100>b.li.length&&b.li.push(a)};l.prototype.Bn=
function(a,b,e,f){if(a.L){var c=qa(Math.random()*a.Rf.length);return this.Bn(a.Rf[c],b,e,f)}return a.vc?this.ne(a.vc,b,!1,e,f,!1):null};var R=[];l.prototype.ne=function(a,b,e,f,c,m){var k,d,p,h;if(!a)return null;var l=this.n[a[1]],v=l.wa.ve;if(this.Li&&v&&!l.bl||v&&!this.m&&11===a[0][11])return null;var x=b;v||(b=null);var g;l.li.length?(g=l.li.pop(),g.cd=!0,l.wa.ra.call(g,l)):(g=new l.wa.ra(l),g.cd=!1);!e||m||this.Qd.hasOwnProperty(a[2].toString())?g.uid=this.th++:g.uid=a[2];this.Qd[g.uid.toString()]=
g;g.up=this.Wo++;g.Ze=l.c.length;k=0;for(d=this.Sc.length;k<d;++k)this.Sc[k].type===l&&g.Ze++;g.Lg=Fb;g.toString=Gb;p=a[3];if(g.cd)$a(g.M);else{g.M={};if("undefined"!==typeof cr_is_preview)for(g.ho=[],g.ho.length=p.length,k=0,d=p.length;k<d;k++)g.ho[k]=p[k][1];g.Sa=[];g.Sa.length=p.length}k=0;for(d=p.length;k<d;k++)g.Sa[k]=p[k][0];if(v){var n=a[0];g.x=ga(f)?n[0]:f;g.y=ga(c)?n[1]:c;g.z=n[2];g.width=n[3];g.height=n[4];g.depth=n[5];g.k=n[6];g.opacity=n[7];g.Ob=n[8];g.Pb=n[9];g.nb=n[10];k=n[11];!this.m&&
l.J.length&&(g.nb=k);g.vg=kb(g.nb);this.q&&lb(g,g.nb,this.q);if(g.cd){k=0;for(d=n[12].length;k<d;k++)for(p=0,h=n[12][k].length;p<h;p++)g.xa[k][p]=n[12][k][p];g.Ma.set(0,0,0,0);g.me.set(0,0,-1,-1);g.Hb.set(0,0,-1,-1);g.yf.dg(g.Ma);Q(g.Xj)}else{g.xa=n[12].slice(0);k=0;for(d=g.xa.length;k<d;k++)g.xa[k]=n[12][k].slice(0);g.Y=[];g.fe=[];g.fe.length=l.J.length;g.Ma=new ta(0,0,0,0);g.me=new ta(0,0,-1,-1);g.Hb=new ta(0,0,-1,-1);g.yf=new wa;g.Xj=[];g.ka=Jb;g.qw=Kb;g.ac=Lb;g.Da=Mb;g.ov=Nb;g.jq=Ob;g.Ac=Pb}g.qm=
!1;g.kv=0;g.jv=0;g.hv=null;14===n.length&&(g.qm=!0,g.kv=n[13][0],g.jv=n[13][1],g.hv=n[13][2]);k=0;for(d=l.J.length;k<d;k++)g.fe[k]=!0;g.Wd=!0;g.fd=Qb;g.fd();g.kq=!!g.Y.length;g.Wj=!0;g.ck=!0;l.Yh=!0;g.visible=!0;g.sh=-1;g.j=b;g.hd=b.c.length;g.Te=0;"undefined"===typeof g.eb&&(g.eb=null);this.ha=g.ug=!0}var r;Q(R);k=0;for(d=l.va.length;k<d;k++)R.push.apply(R,l.va[k].Ga);R.push.apply(R,l.Ga);if(g.cd)for(k=0,d=R.length;k<d;k++){var B=R[k];r=g.I[k];r.cd=!0;B.behavior.ra.call(r,B,g);n=a[4][k];p=0;for(h=
n.length;p<h;p++)r.D[p]=n[p];r.ba();B.behavior.Tf.add(g)}else for(g.I=[],k=0,d=R.length;k<d;k++)B=R[k],r=new B.behavior.ra(B,g),r.cd=!1,r.D=a[4][k].slice(0),r.ba(),g.I.push(r),B.behavior.Tf.add(g);n=a[5];if(g.cd)for(k=0,d=n.length;k<d;k++)g.D[k]=n[k];else g.D=n.slice(0);this.Sc.push(g);this.ue=!0;b&&(b.rg(g,!0),1!==b.rd||1!==b.sd)&&(l.Zh=!0);this.bj++;if(l.Eb){if(g.Eb=!0,g.cd?Q(g.siblings):g.siblings=[],!e&&!m){k=0;for(d=l.Mb.length;k<d;k++)if(l.Mb[k]!==l){if(!l.Mb[k].vc)return null;g.siblings.push(this.ne(l.Mb[k].vc,
x,!1,v?g.x:f,v?g.y:c,!0))}k=0;for(d=g.siblings.length;k<d;k++)for(g.siblings[k].siblings.push(g),p=0;p<d;p++)k!==p&&g.siblings[k].siblings.push(g.siblings[p])}}else g.Eb=!1,g.siblings=null;g.ba();k=0;for(d=g.I.length;k<d;k++)g.I[k].xu&&g.I[k].xu();return g};l.prototype.Hk=function(a){var b,e;b=0;for(e=this.ja.K.length;b<e;b++){var f=this.ja.K[b];if(nb(f.name,a))return f}return null};l.prototype.Ig=function(a){a=qa(a);0>a&&(a=0);a>=this.ja.K.length&&(a=this.ja.K.length-1);return this.ja.K[a]};l.prototype.hk=
function(a){var b,e;b=0;for(e=a.length;b<e;b++)a[b].Z().da=!0};l.prototype.Ah=function(a){var b,e;b=0;for(e=a.length;b<e;b++)a[b].Ah()};l.prototype.Bh=function(a){var b,e;b=0;for(e=a.length;b<e;b++)a[b].Bh()};l.prototype.De=function(a){var b,e;b=0;for(e=a.length;b<e;b++)a[b].De()};l.prototype.hq=function(a){if(a.Yh){var b,e,f=a.c;b=0;for(e=f.length;b<e;++b)f[b].jq();f=this.Sc;b=0;for(e=f.length;b<e;++b)f[b].type===a&&f[b].jq();a.Yh=!1}};l.prototype.gt=function(a,b,e,f){var k,c,m=a?1!==a.rd||1!==a.sd:
!1;if(b.L)for(a=0,k=b.Rf.length;a<k;++a)c=b.Rf[a],m||c.Zh?Da(f,c.c):(this.hq(c),c.di.pj(e,f));else m||b.Zh?Da(f,b.c):(this.hq(b),b.di.pj(e,f))};l.prototype.yt=function(a,b,e,f){var k,c;k=0;for(c=b.length;k<c;++k)this.gt(a,b[k],e,f)};l.prototype.Bj=function(a,b,e){var f=a.Z(),k,c,m,d,p,h;if(f.da)for(f.da=!1,Q(f.c),k=0,d=a.c.length;k<d;k++)m=a.c[k],m.Da(),p=m.j.Na(b,e,!0),h=m.j.Na(b,e,!1),m.ac(p,h)&&f.c.push(m);else{k=c=0;for(d=f.c.length;k<d;k++)m=f.c[k],m.Da(),p=m.j.Na(b,e,!0),h=m.j.Na(b,e,!1),m.ac(p,
h)&&(f.c[c]=f.c[k],c++);f.c.length=c}a.je();return f.Qk()};new wa;new ta(0,0,0,0);l.prototype.bq=function(a,b){if(!b)return!1;var e,f,k,c,m;e=0;for(f=a.Ga.length;e<f;e++)if(a.Ga[e].behavior instanceof b)return!0;if(!a.L)for(e=0,f=a.va.length;e<f;e++)for(m=a.va[e],k=0,c=m.Ga.length;k<c;k++)if(m.Ga[k].behavior instanceof b)return!0;return!1};l.prototype.wm=function(a){return this.bq(a,fc.Qv)};l.prototype.xm=function(a){return this.bq(a,fc.Rv)};var M=-1;l.prototype.trigger=function(a,b,e){if(!this.ja)return!1;
var f=this.ja.Ue;if(!f)return!1;var k=!1,c,m,d;M++;var p=f.mk;m=0;for(d=p.length;m<d;++m)c=this.Zp(a,b,p[m],e),k=k||c;c=this.Zp(a,b,f,e);M--;return k||c};l.prototype.Zp=function(a,b,e,f){var k=!1,c,m,d,p;if(b)for(d=this.um(a,b,b.type.name,e,f),k=k||d,p=b.type.va,c=0,m=p.length;c<m;++c)d=this.um(a,b,p[c].name,e,f),k=k||d;else d=this.um(a,b,"system",e,f),k=k||d;return k};l.prototype.um=function(a,b,e,f,k){var c,m=!1,d=!1,d="undefined"!==typeof k,p=(d?f.Kn:f.$p)[e];if(!p)return m;var h=null;f=0;for(c=
p.length;f<c;++f)if(p[f].method==a){h=p[f].Dg;break}if(!h)return m;var g;d?g=h[k]:g=h;if(!g)return null;f=0;for(c=g.length;f<c;f++)a=g[f][0],k=g[f][1],d=this.Xs(b,e,a,k),m=m||d;return m};l.prototype.Xs=function(a,b,e,f){var k,c,m=!1;this.vm++;var d=this.ub().Bb;d&&this.Ah(d.Fe);var p=1<this.vm;this.Ah(e.Fe);p&&this.Eu();var h=this.oj(e);h.Bb=e;a&&(k=this.types[b].Z(),k.da=!1,Q(k.c),k.c[0]=a,this.types[b].je());a=!0;if(e.parent){b=h.Sp;for(k=e.parent;k;)b.push(k),k=k.parent;b.reverse();k=0;for(c=b.length;k<
c;k++)if(!b[k].Ou()){a=!1;break}}a&&(this.Eg++,e.Zc?e.Nu(f):e.Ka(),m=m||h.gf);this.kj();p&&this.vu();this.De(e.Fe);d&&this.De(d.Fe);this.ue&&0===this.Wc&&0===M&&!this.cl&&this.mb();this.vm--;return m};l.prototype.it=function(){var a=this.ub();return a.Bb.Pa[a.Oa]};l.prototype.Eu=function(){this.Wi++;this.Wi>=this.sl.length&&this.sl.push([])};l.prototype.vu=function(){this.Wi--};l.prototype.Un=function(){return this.sl[this.Wi]};l.prototype.oj=function(a){this.qi++;this.qi>=this.rk.length&&this.rk.push(new Rb);
var b=this.ub();b.reset(a);return b};l.prototype.kj=function(){this.qi--};l.prototype.ub=function(){return this.rk[this.qi]};l.prototype.Fu=function(){this.Yi++;this.Yi>=this.ul.length&&this.ul.push(aa({name:void 0,index:0,ab:!1}));var a=this.jt();a.name=void 0;a.index=0;a.ab=!1;return a};l.prototype.wu=function(){this.Yi--};l.prototype.jt=function(){return this.ul[this.Yi]};l.prototype.Vn=function(a,b){for(var e,f,k,c,m,d;b;){e=0;for(f=b.Fc.length;e<f;e++)if(d=b.Fc[e],d instanceof Sb&&nb(a,d.name))return d;
b=b.parent}e=0;for(f=this.Gd.length;e<f;e++)for(m=this.Gd[e],k=0,c=m.se.length;k<c;k++)if(d=m.se[k],d instanceof Sb&&nb(a,d.name))return d;return null};l.prototype.Wn=function(a){var b,e;b=0;for(e=this.Yc.length;b<e;b++)if(this.Yc[b].R===a)return this.Yc[b];return null};l.prototype.Di=function(a){var b,e;b=0;for(e=this.n.length;b<e;b++)if(this.n[b].R===a)return this.n[b];return null};l.prototype.lt=function(a){var b,e;b=0;for(e=this.wf.length;b<e;b++)if(this.wf[b].R===a)return this.wf[b];return null};
l.prototype.Tr=function(a,b){this.Ih=[a,b];this.ha=!0};l.prototype.Nt=function(){var a=this,e=this.im,f=this.Nd,k=this.Ri,m=!1;this.Op&&(m=!0,e="__c2_continuouspreview",this.Op=!1);if(e.length){this.mb();f=this.Su();if(t()&&!this.ic)h(e,f,function(){ea("Saved state to IndexedDB storage ("+f.length+" bytes)");a.Nd=f;a.trigger(X.prototype.d.Qj,null);a.Nd="";m&&c()},function(b){try{localStorage.setItem("__c2save_"+e,f),ea("Saved state to WebStorage ("+f.length+" bytes)"),a.Nd=f,a.trigger(X.prototype.d.Qj,
null),a.Nd="",m&&c()}catch(k){ea("Failed to save game state: "+b+"; "+k)}});else try{localStorage.setItem("__c2save_"+e,f),ea("Saved state to WebStorage ("+f.length+" bytes)"),a.Nd=f,this.trigger(X.prototype.d.Qj,null),a.Nd="",m&&c()}catch(d){ea("Error saving to WebStorage: "+d)}this.qb=this.Ri=this.im=""}if(k.length){if(t()&&!this.ic)b(k,function(b){b?(a.qb=b,ea("Loaded state from IndexedDB storage ("+a.qb.length+" bytes)")):(a.qb=localStorage.getItem("__c2save_"+k)||"",ea("Loaded state from WebStorage ("+
a.qb.length+" bytes)"));a.Kh=!1;a.qb.length||a.trigger(X.prototype.d.Pj,null)},function(){a.qb=localStorage.getItem("__c2save_"+k)||"";ea("Loaded state from WebStorage ("+a.qb.length+" bytes)");a.Kh=!1;a.qb.length||a.trigger(X.prototype.d.Pj,null)});else{try{this.qb=localStorage.getItem("__c2save_"+k)||"",ea("Loaded state from WebStorage ("+this.qb.length+" bytes)")}catch(p){this.qb=""}this.Kh=!1;a.qb.length||a.trigger(X.prototype.d.Pj,null)}this.im=this.Ri=""}this.qb.length&&(this.mb(),this.eu(this.qb),
this.Nd=this.qb,this.trigger(X.prototype.d.Uq,null),this.qb=this.Nd="")};l.prototype.Su=function(){var a,b,e,f,k,c,m,p={c2save:!0,version:1,rt:{time:this.pb.W,walltime:this.$d.W,timescale:this.hg,tickcount:this.Oh,execcount:this.Eg,next_uid:this.th,running_layout:this.ja.R,start_time_offset:Date.now()-this.xj},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};a=0;for(b=this.n.length;a<b;a++)if(k=this.n[a],!k.L&&!this.wm(k)){c={instances:[]};Za(k.M)&&(c.ex=d(k.M));e=0;for(f=k.c.length;e<
f;e++)c.instances.push(this.hm(k.c[e]));p.types[k.R.toString()]=c}a=0;for(b=this.Yc.length;a<b;a++)e=this.Yc[a],p.layouts[e.R.toString()]=e.xb();f=p.events.groups;a=0;for(b=this.wf.length;a<b;a++)e=this.wf[a],f[e.R.toString()]=this.Ei[e.Ng].Mg;b=p.events.cnds;for(m in this.le)this.le.hasOwnProperty(m)&&(a=this.le[m],Za(a.M)&&(b[m]={ex:d(a.M)}));b=p.events.acts;for(m in this.ge)this.ge.hasOwnProperty(m)&&(a=this.ge[m],Za(a.M)&&(b[m]={ex:d(a.M)}));b=p.events.vars;for(m in this.lg)this.lg.hasOwnProperty(m)&&
(a=this.lg[m],a.Ji||a.parent&&!a.ah||(b[m]=a.data));p.system=this.xd.xb();return JSON.stringify(p)};l.prototype.wp=function(){var a,b,e,f,k,c;this.Qd={};a=0;for(b=this.n.length;a<b;a++)if(e=this.n[a],!e.L)for(f=0,k=e.c.length;f<k;f++)c=e.c[f],this.Qd[c.uid.toString()]=c};l.prototype.eu=function(a){a=JSON.parse(a);if(a.c2save&&!(1<a.version)){this.Vg=!0;var b=a.rt;this.pb.reset();this.pb.W=b.time;this.$d.reset();this.$d.W=b.walltime||0;this.hg=b.timescale;this.Oh=b.tickcount;this.Eg=b.execcount;this.xj=
Date.now()-b.start_time_offset;var e=b.running_layout;if(e!==this.ja.R)if(e=this.Wn(e))this.Gn(e);else return;var f,k,c,m,d,p,h;p=a.types;for(k in p)if(p.hasOwnProperty(k)&&(m=this.Di(parseInt(k,10)))&&!m.L&&!this.wm(m)){p[k].ex?m.M=p[k].ex:$a(m.M);d=m.c;c=p[k].instances;e=0;for(f=oa(d.length,c.length);e<f;e++)this.Si(d[e],c[e]);e=c.length;for(f=d.length;e<f;e++)this.Je(d[e]);e=d.length;for(f=c.length;e<f;e++){d=null;if(m.wa.ve&&(d=this.ja.Bi(c[e].w.l),!d))continue;d=this.ne(m.vc,d,!1,0,0,!0);this.Si(d,
c[e])}m.fg=!0}this.mb();this.wp();f=a.layouts;for(k in f)f.hasOwnProperty(k)&&(e=this.Wn(parseInt(k,10)))&&e.Tb(f[k]);f=a.events.groups;for(k in f)f.hasOwnProperty(k)&&(e=this.lt(parseInt(k,10)))&&this.Ei[e.Ng]&&this.Ei[e.Ng].Uu(f[k]);e=a.events.cnds;for(k in this.le)this.le.hasOwnProperty(k)&&(e.hasOwnProperty(k)?this.le[k].M=e[k].ex:this.le[k].M={});e=a.events.acts;for(k in this.ge)this.ge.hasOwnProperty(k)&&(e.hasOwnProperty(k)?this.ge[k].M=e[k].ex:this.ge[k].M={});e=a.events.vars;for(k in e)e.hasOwnProperty(k)&&
this.lg.hasOwnProperty(k)&&(this.lg[k].data=e[k]);this.th=b.next_uid;this.Vg=!1;e=0;for(f=this.ti.length;e<f;++e)d=this.ti[e],this.trigger(Object.getPrototypeOf(d.type.wa).d.Vh,d);Q(this.ti);this.xd.Tb(a.system);e=0;for(f=this.n.length;e<f;e++)if(m=this.n[e],!m.L&&!this.wm(m))for(k=0,a=m.c.length;k<a;k++){d=m.c[k];if(m.Eb)for(p=d.Lg(),Q(d.siblings),b=0,c=m.Mb.length;b<c;b++)h=m.Mb[b],m!==h&&d.siblings.push(h.c[p]);d.he&&d.he();if(d.I)for(b=0,c=d.I.length;b<c;b++)p=d.I[b],p.he&&p.he()}this.ha=!0}};
l.prototype.hm=function(a,b){var e,f,k,c,m;c=a.type;k=c.wa;var p={};b?p.c2=!0:p.uid=a.uid;Za(a.M)&&(p.ex=d(a.M));if(a.Sa&&a.Sa.length)for(p.ivs={},e=0,f=a.Sa.length;e<f;e++)p.ivs[a.type.Xk[e].toString()]=a.Sa[e];if(k.ve){k={x:a.x,y:a.y,w:a.width,h:a.height,l:a.j.R,zi:a.Ac()};0!==a.k&&(k.a=a.k);1!==a.opacity&&(k.o=a.opacity);.5!==a.Ob&&(k.hX=a.Ob);.5!==a.Pb&&(k.hY=a.Pb);0!==a.nb&&(k.bm=a.nb);a.visible||(k.v=a.visible);a.ug||(k.ce=a.ug);-1!==a.sh&&(k.mts=a.sh);if(c.J.length)for(k.fx=[],e=0,f=c.J.length;e<
f;e++)m=c.J[e],k.fx.push({name:m.name,active:a.fe[m.index],params:a.xa[m.index]});p.w=k}if(a.I&&a.I.length)for(p.behs={},e=0,f=a.I.length;e<f;e++)c=a.I[e],c.xb&&(p.behs[c.type.R.toString()]=c.xb());a.xb&&(p.data=a.xb());return p};l.prototype.nt=function(a,b){var e,f;e=0;for(f=a.Xk.length;e<f;e++)if(a.Xk[e]===b)return e;return-1};l.prototype.ft=function(a,b){var e,f;e=0;for(f=a.I.length;e<f;e++)if(a.I[e].type.R===b)return e;return-1};l.prototype.Si=function(a,b,e){var f,k,c,m,d;d=a.type;m=d.wa;if(e){if(!b.c2)return}else a.uid=
b.uid;b.ex?a.M=b.ex:$a(a.M);if(k=b.ivs)for(f in k)k.hasOwnProperty(f)&&(c=this.nt(d,parseInt(f,10)),0>c||c>=a.Sa.length||(a.Sa[c]=k[f]));if(m.ve){c=b.w;a.j.R!==c.l&&(k=a.j,a.j=this.ja.Bi(c.l),a.j?(k.Zf(a,!0),a.j.rg(a,!0),a.ka(),a.j.Fh(0)):(a.j=k,e||this.Je(a)));a.x=c.x;a.y=c.y;a.width=c.w;a.height=c.h;a.hd=c.zi;a.k=c.hasOwnProperty("a")?c.a:0;a.opacity=c.hasOwnProperty("o")?c.o:1;a.Ob=c.hasOwnProperty("hX")?c.hX:.5;a.Pb=c.hasOwnProperty("hY")?c.hY:.5;a.visible=c.hasOwnProperty("v")?c.v:!0;a.ug=c.hasOwnProperty("ce")?
c.ce:!0;a.sh=c.hasOwnProperty("mts")?c.mts:-1;a.nb=c.hasOwnProperty("bm")?c.bm:0;a.vg=kb(a.nb);this.q&&lb(a,a.nb,this.q);a.ka();if(c.hasOwnProperty("fx"))for(e=0,k=c.fx.length;e<k;e++)m=d.Ek(c.fx[e].name),0>m||(a.fe[m]=c.fx[e].active,a.xa[m]=c.fx[e].params);a.fd()}if(d=b.behs)for(f in d)d.hasOwnProperty(f)&&(e=this.ft(a,parseInt(f,10)),0>e||a.I[e].Tb(d[f]));b.data&&a.Tb(b.data)};Tb=function(a){return new l(document.getElementById(a))};Ub=function(a,b){return new l({dc:!0,width:a,height:b})};window.cr_createRuntime=
Tb;window.cr_createDCRuntime=Ub;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.Vj=!0;document.body.appendChild(a);a=new l(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 l(document.getElementById("canvas"));
window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();window.cr_getC2Runtime=function(){var g=document.getElementById("c2canvas");return g?g.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(g,n){var l=window.cr_getC2Runtime();l&&l.Tr(g,n)};window.cr_sizeCanvas=function(g,n){if(0!==g&&0!==n){var l=window.cr_getC2Runtime();l&&l.setSize(g,n)}};window.cr_setSuspended=function(g){var n=window.cr_getC2Runtime();n&&n.setSuspended(g)};
(function(){function g(a,b){this.b=a;this.Ue=null;this.scrollX=this.b.Va/2;this.scrollY=this.b.Ua/2;this.scale=1;this.k=0;this.Cf=!0;this.name=b[0];this.width=b[1];this.height=b[2];this.cq=b[3];this.Lp=b[4];this.R=b[5];var k=b[6],f,c;this.K=[];this.Qg=[];f=0;for(c=k.length;f<c;f++){var d=new Vb(this,k[f]);d.Yo=f;this.K.push(d)}k=b[7];this.bf=[];f=0;for(c=k.length;f<c;f++){var d=k[f],h=this.b.n[d[1]];h.vc||(h.vc=d);this.bf.push(d);-1===this.Qg.indexOf(h)&&this.Qg.push(h)}this.J=[];this.Y=[];this.Wd=
!0;this.xa=[];f=0;for(c=b[8].length;f<c;f++)this.J.push({id:b[8][f][0],name:b[8][f][1],La:-1,ad:!1,cb:!0,index:f}),this.xa.push(b[8][f][2].slice(0));this.fd();this.Yl=new ta(0,0,1,1);this.Zl=new ta(0,0,1,1);this.Ce={}}function n(a,b){return a.hd-b.hd}function l(a,b){this.Ya=a;this.b=a.b;this.c=[];this.scale=1;this.k=0;this.Ed=!1;this.Zd=new ta(0,0,0,0);this.Yp=new wa;this.ta=this.na=this.ua=this.ma=0;this.sf=!1;this.be=-1;this.ik=0;this.name=b[0];this.index=b[1];this.R=b[2];this.visible=b[3];this.Pc=
b[4];this.ed=b[5];this.rd=b[6];this.sd=b[7];this.opacity=b[8];this.wi=b[9];this.nc=b[10];this.de=b[11];this.nb=b[12];this.rs=b[13];this.vg="source-over";this.ob=this.rb=0;this.kb=null;this.Od=q();this.dd=!0;this.Mf=new ta(0,0,-1,-1);this.fb=new ta(0,0,-1,-1);this.nc&&(this.kb=new jb(this.b.Va,this.b.Ua));this.ud=!1;var k=b[14],f,c;this.Qp=[];this.hc=[];this.yg=[];f=0;for(c=k.length;f<c;f++){var d=k[f],h=this.b.n[d[1]];h.vc||(h.vc=d,h.Sr=this.index);this.hc.push(d);-1===this.Ya.Qg.indexOf(h)&&this.Ya.Qg.push(h)}Ca(this.Qp,
this.hc);this.J=[];this.Y=[];this.Wd=!0;this.xa=[];f=0;for(c=b[15].length;f<c;f++)this.J.push({id:b[15][f][0],name:b[15][f][1],La:-1,ad:!1,cb:!0,index:f}),this.xa.push(b[15][f][2].slice(0));this.fd();this.Yl=new ta(0,0,1,1);this.Zl=new ta(0,0,1,1)}function q(){return b.length?b.pop():[]}function t(a){Q(a);b.push(a)}g.prototype.Ru=function(a){var b=a.type.R.toString();this.Ce.hasOwnProperty(b)||(this.Ce[b]=[]);this.Ce[b].push(this.b.hm(a))};g.prototype.$n=function(){var a=this.K[0];return!a.ed&&1===
a.opacity&&!a.wi&&a.visible};g.prototype.fd=function(){Q(this.Y);this.Wd=!0;var a,b,k;a=0;for(b=this.J.length;a<b;a++)k=this.J[a],k.cb&&(this.Y.push(k),k.ad||(this.Wd=!1))};g.prototype.Dk=function(a){var b,k,f;b=0;for(k=this.J.length;b<k;b++)if(f=this.J[b],f.name===a)return f;return null};var r=[],h=!0;g.prototype.om=function(){this.Lp&&(this.Ue=this.b.sk[this.Lp],this.Ue.ym());this.b.ja=this;this.scrollX=this.b.Va/2;this.scrollY=this.b.Ua/2;var a,b,k,f,c,d,g;a=0;for(k=this.b.n.length;a<k;a++)if(b=
this.b.n[a],!b.L)for(c=b.c,b=0,f=c.length;b<f;b++)if(d=c[b],d.j){var m=d.j.Yo;m>=this.K.length&&(m=this.K.length-1);d.j=this.K[m];-1===d.j.c.indexOf(d)&&d.j.c.push(d);d.j.sf=!0}if(!h)for(a=0,k=this.K.length;a<k;++a)this.K[a].c.sort(n);Q(r);this.Cr();a=0;for(k=this.K.length;a<k;a++)d=this.K[a],d.Or(),d.Kj();c=!1;if(!this.Cf){for(g in this.Ce)if(this.Ce.hasOwnProperty(g)&&(b=this.b.Di(parseInt(g,10)))&&!b.L&&this.b.xm(b)){f=this.Ce[g];a=0;for(k=f.length;a<k;a++){d=null;if(b.wa.ve&&(d=this.Bi(f[a].w.l),
!d))continue;d=this.b.ne(b.vc,d,!1,0,0,!0);this.b.Si(d,f[a]);c=!0;r.push(d)}Q(f)}a=0;for(k=this.K.length;a<k;a++)this.K[a].c.sort(n),this.K[a].sf=!0}c&&(this.b.mb(),this.b.wp());for(a=0;a<r.length;a++)if(d=r[a],d.type.Eb)for(k=d.Lg(),b=0,f=d.type.Mb.length;b<f;b++)g=d.type.Mb[b],d.type!==g&&(g.c.length>k?d.siblings.push(g.c[k]):g.vc&&(c=this.b.ne(g.vc,d.j,!0,d.x,d.y,!0),this.b.mb(),g.Ij(),d.siblings.push(c),r.push(c)));a=0;for(k=this.bf.length;a<k;a++)this.b.ne(this.bf[a],null,!0);this.b.gk=null;
this.b.mb();if(this.b.ca&&!this.b.qa)for(a=0,k=this.b.n.length;a<k;a++)g=this.b.n[a],!g.L&&g.c.length&&g.rp&&g.rp(this.b.ca);if(this.b.Vg)Ca(this.b.ti,r);else for(a=0,k=r.length;a<k;a++)d=r[a],this.b.trigger(Object.getPrototypeOf(d.type.wa).d.Vh,d);Q(r);this.b.Vg||this.b.trigger(X.prototype.d.Om,null);this.Cf=!1};g.prototype.Nr=function(){var a,b,k,f,c;b=a=0;for(k=this.bf.length;a<k;a++)f=this.bf[a],c=this.b.n[f[1]],c.global?c.Eb||this.b.ne(f,null,!0):(this.bf[b]=f,b++);za(this.bf,b)};g.prototype.dv=
function(){this.b.Vg||this.b.trigger(X.prototype.d.Tq,null);this.b.$k=!0;Q(this.b.xd.Zb);var a,b,k,f,c,d;if(!this.Cf)for(a=0,b=this.K.length;a<b;a++)for(this.K[a].Am(),c=this.K[a].c,k=0,f=c.length;k<f;k++)d=c[k],d.type.global||this.b.xm(d.type)&&this.Ru(d);a=0;for(b=this.K.length;a<b;a++){c=this.K[a].c;k=0;for(f=c.length;k<f;k++)d=c[k],d.type.global||this.b.Je(d);this.b.mb();Q(c);this.K[a].sf=!0}a=0;for(b=this.b.n.length;a<b;a++)if(c=this.b.n[a],!(c.global||c.wa.ve||c.wa.wj||c.L)){k=0;for(f=c.c.length;k<
f;k++)this.b.Je(c.c[k]);this.b.mb()}h=!1;this.b.$k=!1};new ta(0,0,0,0);g.prototype.qe=function(a){var b,k=a,f=!1,c=!this.b.ec;c&&(this.b.Qi||(this.b.Qi=document.createElement("canvas"),b=this.b.Qi,b.width=this.b.C,b.height=this.b.B,this.b.xo=b.getContext("2d"),f=!0),b=this.b.Qi,k=this.b.xo,b.width!==this.b.C&&(b.width=this.b.C,f=!0),b.height!==this.b.B&&(b.height=this.b.B,f=!0),f&&(k.webkitImageSmoothingEnabled=this.b.V,k.mozImageSmoothingEnabled=this.b.V,k.msImageSmoothingEnabled=this.b.V,k.imageSmoothingEnabled=
this.b.V));k.globalAlpha=1;k.globalCompositeOperation="source-over";this.b.Rj&&!this.$n()&&k.clearRect(0,0,this.b.C,this.b.B);var d,h,f=0;for(d=this.K.length;f<d;f++)h=this.K[f],h.visible&&0<h.opacity&&11!==h.nb&&(h.c.length||!h.ed)?h.qe(k):h.Kj();c&&a.drawImage(b,0,0,this.b.width,this.b.height)};g.prototype.Af=function(a){a.Fp(!0);this.b.Ja||(this.b.Ja=a.Nb(this.b.C,this.b.B,this.b.V));if(this.b.Ja.Oe!==this.b.C||this.b.Ja.Ne!==this.b.B)a.deleteTexture(this.b.Ja),this.b.Ja=a.Nb(this.b.C,this.b.B,
this.b.V);a.Ec(this.b.Ja);this.b.ec||a.Vd(this.b.C,this.b.B);var b,k;for(b=this.K.length-1;0<=b;--b)k=this.K[b],k.visible&&1===k.opacity&&k.Wd&&0===k.nb&&(k.c.length||!k.ed)?k.Af(a):k.Kj();a.Fp(!1)};g.prototype.xc=function(a){var b=0<this.Y.length||this.b.jg||!this.b.ec||this.b.ga;if(b){this.b.Ja||(this.b.Ja=a.Nb(this.b.C,this.b.B,this.b.V));if(this.b.Ja.Oe!==this.b.C||this.b.Ja.Ne!==this.b.B)a.deleteTexture(this.b.Ja),this.b.Ja=a.Nb(this.b.C,this.b.B,this.b.V);a.Ec(this.b.Ja);this.b.ec||a.Vd(this.b.C,
this.b.B)}else this.b.Ja&&(a.Ec(null),a.deleteTexture(this.b.Ja),this.b.Ja=null);this.b.Rj&&!this.$n()&&a.clear(0,0,0,0);var k,f,c;k=0;for(f=this.K.length;k<f;k++)c=this.K[k],c.visible&&0<c.opacity&&(c.c.length||!c.ed)?c.xc(a):c.Kj();b&&(0===this.Y.length||1===this.Y.length&&this.b.ec?(1===this.Y.length?(b=this.Y[0].index,a.Kb(this.Y[0].La),a.bg(null,1/this.b.C,1/this.b.B,0,0,1,1,this.scale,this.k,0,0,this.b.C/2,this.b.B/2,this.b.pb.W,this.xa[b]),a.nj(this.Y[0].La)&&(this.b.ha=!0)):a.Kb(0),this.b.ec||
a.Vd(this.b.width,this.b.height),a.Ec(null),a.Ep(!1),a.ag(1),a.lb(this.b.Ja),a.Cp(),a.vd(),a.gd(),b=this.b.width/2,k=this.b.height/2,a.of(-b,k,b,k,b,-k,-b,-k),a.lb(null),a.Ep(!0)):this.$l(a,null,null,null))};g.prototype.Jg=function(){return 0<this.Y.length||this.b.jg||!this.b.ec||this.b.ga?this.b.Ja:null};g.prototype.Xn=function(){var a=this.K[0].zc(),b,k,f;b=1;for(k=this.K.length;b<k;b++)f=this.K[b],(0!==f.rd||0!==f.sd)&&f.zc()<a&&(a=f.zc());return a};g.prototype.Ap=function(a){if(!this.cq){var b=
1/this.Xn()*this.b.C/2;a>this.width-b&&(a=this.width-b);a<b&&(a=b)}this.scrollX!==a&&(this.scrollX=a,this.b.ha=!0)};g.prototype.Bp=function(a){if(!this.cq){var b=1/this.Xn()*this.b.B/2;a>this.height-b&&(a=this.height-b);a<b&&(a=b)}this.scrollY!==a&&(this.scrollY=a,this.b.ha=!0)};g.prototype.Cr=function(){this.Ap(this.scrollX);this.Bp(this.scrollY)};g.prototype.$l=function(a,b,k,f){var c=k?k.Y:b?b.Y:this.Y,d=1,h=0,m=0,g=0,l=this.b.C,n=this.b.B;k?(d=k.j.zc(),h=k.j.Ia(),m=k.j.ma,g=k.j.na,l=k.j.ua,n=
k.j.ta):b&&(d=b.zc(),h=b.Ia(),m=b.ma,g=b.na,l=b.ua,n=b.ta);var r=this.b.Bk,q,t,D,H,C=0,R=1,M,u=this.b.C,F=this.b.B,w=u/2,ia=F/2,K=b?b.Yl:this.Yl,G=b?b.Zl:this.Zl,A=0,y=0,I=0,E=0,N=u,ja=u,P=F,ua=F,ka=D=0;H=k?k.j.Ia():0;if(k){q=0;for(t=c.length;q<t;q++)D+=a.ut(c[q].La),ka+=a.wt(c[q].La);E=k.Ma;A=b.Bc(E.left,E.top,!0);I=b.Bc(E.left,E.top,!1);N=b.Bc(E.right,E.bottom,!0);P=b.Bc(E.right,E.bottom,!1);0!==H&&(q=b.Bc(E.right,E.top,!0),t=b.Bc(E.right,E.top,!1),y=b.Bc(E.left,E.bottom,!0),E=b.Bc(E.left,E.bottom,
!1),H=Math.min(A,N,q,y),N=Math.max(A,N,q,y),A=H,H=Math.min(I,P,t,E),P=Math.max(I,P,t,E),I=H);A-=D;I-=ka;N+=D;P+=ka;G.left=A/u;G.top=1-I/F;G.right=N/u;G.bottom=1-P/F;y=A=qa(A);E=I=qa(I);ja=N=ra(N);ua=P=ra(P);y-=D;E-=ka;ja+=D;ua+=ka;0>A&&(A=0);0>I&&(I=0);N>u&&(N=u);P>F&&(P=F);0>y&&(y=0);0>E&&(E=0);ja>u&&(ja=u);ua>F&&(ua=F);K.left=A/u;K.top=1-I/F;K.right=N/u;K.bottom=1-P/F}else K.left=G.left=0,K.top=G.top=0,K.right=G.right=1,K.bottom=G.bottom=1;ka=k&&(a.zh(c[0].La)||0!==D||0!==ka||1!==k.opacity||k.type.wa.Uo)||
b&&!k&&1!==b.opacity;a.Cp();if(ka){r[C]||(r[C]=a.Nb(u,F,this.b.V));if(r[C].Oe!==u||r[C].Ne!==F)a.deleteTexture(r[C]),r[C]=a.Nb(u,F,this.b.V);a.Kb(0);a.Ec(r[C]);M=ua-E;a.clearRect(y,F-E-M,ja-y,M);k?k.xc(a):(a.lb(this.b.Ta),a.ag(b.opacity),a.vd(),a.translate(-w,-ia),a.gd(),a.pf(A,P,N,P,N,I,A,I,K));G.left=G.top=0;G.right=G.bottom=1;k&&(H=K.top,K.top=K.bottom,K.bottom=H);C=1;R=0}a.ag(1);D=c.length-1;var La=a.Vl(c[D].La)||!b&&!k&&!this.b.ec,Aa=0;q=0;for(t=c.length;q<t;q++){r[C]||(r[C]=a.Nb(u,F,this.b.V));
if(r[C].Oe!==u||r[C].Ne!==F)a.deleteTexture(r[C]),r[C]=a.Nb(u,F,this.b.V);a.Kb(c[q].La);Aa=c[q].index;a.nj(c[q].La)&&(this.b.ha=!0);0!=q||ka?(a.bg(f,1/u,1/F,G.left,G.top,G.right,G.bottom,d,h,m,g,(m+l)/2,(g+n)/2,this.b.pb.W,k?k.xa[Aa]:b?b.xa[Aa]:this.xa[Aa]),a.lb(null),q!==D||La?(a.Ec(r[C]),M=ua-E,H=F-E-M,a.clearRect(y,H,ja-y,M)):(k?a.Ee(k.rb,k.ob):b&&a.Ee(b.rb,b.ob),a.Ec(f)),a.lb(r[R]),a.vd(),a.translate(-w,-ia),a.gd(),a.pf(A,P,N,P,N,I,A,I,K),q!==D||La||a.lb(null)):(a.Ec(r[C]),M=ua-E,H=F-E-M,a.clearRect(y,
H,ja-y,M),k?(a.bg(f,1/k.width,1/k.height,G.left,G.top,G.right,G.bottom,d,h,m,g,(m+l)/2,(g+n)/2,this.b.pb.W,k.xa[Aa]),k.xc(a)):(a.bg(f,1/u,1/F,0,0,1,1,d,h,m,g,(m+l)/2,(g+n)/2,this.b.pb.W,b?b.xa[Aa]:this.xa[Aa]),a.lb(b?this.b.Ta:this.b.Ja),a.vd(),a.translate(-w,-ia),a.gd(),a.pf(A,P,N,P,N,I,A,I,K)),G.left=G.top=0,G.right=G.bottom=1,k&&!La&&(H=P,P=I,I=H));C=0===C?1:0;R=0===C?1:0}La&&(a.Kb(0),k?a.Ee(k.rb,k.ob):b?a.Ee(b.rb,b.ob):this.b.ec||(a.Vd(this.b.width,this.b.height),w=this.b.width/2,ia=this.b.height/
2,I=A=0,N=this.b.width,P=this.b.height),a.Ec(f),a.lb(r[R]),a.vd(),a.translate(-w,-ia),a.gd(),k&&1===c.length&&!ka?a.pf(A,I,N,I,N,P,A,P,K):a.pf(A,P,N,P,N,I,A,I,K),a.lb(null))};g.prototype.Bi=function(a){var b,c;b=0;for(c=this.K.length;b<c;b++)if(this.K[b].R===a)return this.K[b];return null};g.prototype.xb=function(){var a,b,c,f={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.k,w:this.width,h:this.height,fv:this.Cf,persist:this.Ce,fx:[],layers:{}};a=0;for(b=this.J.length;a<b;a++)c=this.J[a],f.fx.push({name:c.name,
active:c.cb,params:this.xa[c.index]});a=0;for(b=this.K.length;a<b;a++)c=this.K[a],f.layers[c.R.toString()]=c.xb();return f};g.prototype.Tb=function(a){var b,c,f,d;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.k=a.a;this.width=a.w;this.height=a.h;this.Ce=a.persist;"undefined"!==typeof a.fv&&(this.Cf=a.fv);var h=a.fx;b=0;for(c=h.length;b<c;b++)if(f=this.Dk(h[b].name))f.cb=h[b].active,this.xa[f.index]=h[b].params;this.fd();b=a.layers;for(d in b)b.hasOwnProperty(d)&&(a=this.Bi(parseInt(d,10)))&&
a.Tb(b[d])};Hb=g;l.prototype.fd=function(){Q(this.Y);this.Wd=!0;var a,b,c;a=0;for(b=this.J.length;a<b;a++)c=this.J[a],c.cb&&(this.Y.push(c),c.ad||(this.Wd=!1))};l.prototype.Dk=function(a){var b,c,f;b=0;for(c=this.J.length;b<c;b++)if(f=this.J[b],f.name===a)return f;return null};l.prototype.Or=function(){var a,b,c,f,d,h;b=a=0;for(c=this.hc.length;a<c;a++){f=this.hc[a];d=this.b.n[f[1]];h=this.b.xm(d);d=!0;if(!h||this.Ya.Cf)f=this.b.ne(f,this,!0),r.push(f),f.type.global&&(d=!1,this.yg.push(f.uid));d&&
(this.hc[b]=this.hc[a],b++)}this.hc.length=b;this.b.mb();!this.b.m&&this.J.length&&(this.nb=this.rs);this.vg=kb(this.nb);this.b.q&&lb(this,this.nb,this.b.q);this.dd=!0};l.prototype.Zf=function(a,b){var c=Fa(this.c,a);0>c||(b&&this.nc&&a.Hb&&a.Hb.right>=a.Hb.left&&(a.Da(),this.kb.update(a,a.Hb,null),a.Hb.set(0,0,-1,-1)),c===this.c.length-1?this.c.pop():(ya(this.c,c),this.Fh(c)),this.dd=!0)};l.prototype.rg=function(a,b){a.hd=this.c.length;this.c.push(a);b&&this.nc&&a.Hb&&a.ka();this.dd=!0};l.prototype.Bu=
function(a){this.c.unshift(a);this.Fh(0)};l.prototype.ku=function(a,b,c){var f=a.Ac();b=b.Ac();ya(this.c,f);f<b&&b--;c&&b++;b===this.c.length?this.c.push(a):this.c.splice(b,0,a);this.Fh(f<b?f:b)};l.prototype.Fh=function(a){-1===this.be?this.be=a:a<this.be&&(this.be=a);this.dd=this.sf=!0};l.prototype.Am=function(){if(this.sf){-1===this.be&&(this.be=0);var a,b,c;if(this.nc)for(a=this.be,b=this.c.length;a<b;++a)c=this.c[a],c.hd=a,this.kb.hu(c.Hb);else for(a=this.be,b=this.c.length;a<b;++a)this.c[a].hd=
a;this.sf=!1;this.be=-1}};l.prototype.zc=function(a){return this.ot()*(this.b.ec||a?this.b.sg:1)};l.prototype.ot=function(){return(this.scale*this.Ya.scale-1)*this.de+1};l.prototype.Ia=function(){return this.Ed?0:Ka(this.Ya.k+this.k)};var b=[],c=[],d=[];l.prototype.Jk=function(){this.Am();this.kb.pj(this.ma,this.na,this.ua,this.ta,d);if(!d.length)return q();if(1===d.length){var a=q();Ca(a,d[0]);Q(d);return a}for(var b=!0;1<d.length;){for(var a=d,k=void 0,f=void 0,h=void 0,p=void 0,g=void 0,k=0,f=
a.length;k<f-1;k+=2){var h=a[k],p=a[k+1],g=q(),m=h,l=p,n=g,r=0,V=0,O=0,T=m.length,D=l.length,H=void 0,C=void 0;for(n.length=T+D;r<T&&V<D;++O)H=m[r],C=l[V],H.hd<C.hd?(n[O]=H,++r):(n[O]=C,++V);for(;r<T;++r,++O)n[O]=m[r];for(;V<D;++V,++O)n[O]=l[V];b||(t(h),t(p));c.push(g)}1===f%2&&(b?(h=q(),Ca(h,a[f-1]),c.push(h)):c.push(a[f-1]));Ca(a,c);Q(c);b=!1}a=d[0];Q(d);return a};l.prototype.qe=function(a){this.ud=this.wi||1!==this.opacity||0!==this.nb;var b=this.b.canvas,c=a,f=!1;this.ud&&(this.b.Pi||(this.b.Pi=
document.createElement("canvas"),b=this.b.Pi,b.width=this.b.C,b.height=this.b.B,this.b.wo=b.getContext("2d"),f=!0),b=this.b.Pi,c=this.b.wo,b.width!==this.b.C&&(b.width=this.b.C,f=!0),b.height!==this.b.B&&(b.height=this.b.B,f=!0),f&&(c.webkitImageSmoothingEnabled=this.b.V,c.mozImageSmoothingEnabled=this.b.V,c.msImageSmoothingEnabled=this.b.V,c.imageSmoothingEnabled=this.b.V),this.ed&&c.clearRect(0,0,this.b.C,this.b.B));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.ed||(c.fillStyle=
"rgb("+this.Pc[0]+","+this.Pc[1]+","+this.Pc[2]+")",c.fillRect(0,0,this.b.C,this.b.B));c.save();this.Ed=!0;var f=this.Na(0,0,!0,!0),d=this.Na(0,0,!1,!0);this.Ed=!1;this.b.nf&&(f=Math.round(f),d=Math.round(d));this.rj(f,d,c);var h=this.zc();c.scale(h,h);c.translate(-f,-d);this.nc?(this.fb.left=this.kb.yb(this.ma),this.fb.top=this.kb.zb(this.na),this.fb.right=this.kb.yb(this.ua),this.fb.bottom=this.kb.zb(this.ta),this.dd||!this.fb.Bg(this.Mf)?(t(this.Od),f=this.Jk(),this.dd=!1,this.Mf.wg(this.fb)):
f=this.Od):f=this.c;for(var g,m=null,d=0,h=f.length;d<h;++d)g=f[d],g!==m&&(this.ls(g,c),m=g);this.nc&&(this.Od=f);c.restore();this.ud&&(a.globalCompositeOperation=this.vg,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};l.prototype.ls=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Da();var c=a.Ma;c.right<this.ma||c.bottom<this.na||c.left>this.ua||c.top>this.ta||(b.globalCompositeOperation=a.vg,a.qe(b))}};l.prototype.Kj=function(){this.Ed=!0;var a=this.Na(0,0,!0,!0),b=this.Na(0,0,!1,!0);this.Ed=
!1;this.b.nf&&(a=Math.round(a),b=Math.round(b));this.rj(a,b,null)};l.prototype.rj=function(a,b,c){var f=this.zc();this.ma=a;this.na=b;this.ua=a+1/f*this.b.C;this.ta=b+1/f*this.b.B;a=this.Ia();0!==a&&(c&&(c.translate(this.b.C/2,this.b.B/2),c.rotate(-a),c.translate(this.b.C/-2,this.b.B/-2)),this.Zd.set(this.ma,this.na,this.ua,this.ta),this.Zd.offset((this.ma+this.ua)/-2,(this.na+this.ta)/-2),this.Yp.Jp(this.Zd,a),this.Yp.sn(this.Zd),this.Zd.offset((this.ma+this.ua)/2,(this.na+this.ta)/2),this.ma=this.Zd.left,
this.na=this.Zd.top,this.ua=this.Zd.right,this.ta=this.Zd.bottom)};l.prototype.Af=function(a){if(this.ud=this.wi){this.b.Ta||(this.b.Ta=a.Nb(this.b.C,this.b.B,this.b.V));if(this.b.Ta.Oe!==this.b.C||this.b.Ta.Ne!==this.b.B)a.deleteTexture(this.b.Ta),this.b.Ta=a.Nb(this.b.C,this.b.B,this.b.V);a.Ec(this.b.Ta)}this.Ed=!0;var b=this.Na(0,0,!0,!0),c=this.Na(0,0,!1,!0);this.Ed=!1;this.b.nf&&(b=Math.round(b),c=Math.round(c));this.rj(b,c,null);b=this.zc();a.vd();a.scale(b,b);a.em(-this.Ia());a.translate((this.ma+
this.ua)/-2,(this.na+this.ta)/-2);a.gd();this.nc?(this.fb.left=this.kb.yb(this.ma),this.fb.top=this.kb.zb(this.na),this.fb.right=this.kb.yb(this.ua),this.fb.bottom=this.kb.zb(this.ta),this.dd||!this.fb.Bg(this.Mf)?(t(this.Od),b=this.Jk(),this.dd=!1,this.Mf.wg(this.fb)):b=this.Od):b=this.c;for(var f,d=null,c=b.length-1;0<=c;--c)f=b[c],f!==d&&(this.ns(b[c],a),d=f);this.nc&&(this.Od=b);this.ed||(this.ik=this.b.Te++,a.uj(this.ik),a.Dp(1,1,1),a.Qn(),a.Ju())};l.prototype.xc=function(a){var b=0,c=0;if(this.ud=
this.wi||1!==this.opacity||0<this.Y.length||0!==this.nb){this.b.Ta||(this.b.Ta=a.Nb(this.b.C,this.b.B,this.b.V));if(this.b.Ta.Oe!==this.b.C||this.b.Ta.Ne!==this.b.B)a.deleteTexture(this.b.Ta),this.b.Ta=a.Nb(this.b.C,this.b.B,this.b.V);a.Ec(this.b.Ta);this.ed&&a.clear(0,0,0,0)}this.ed||(this.b.ga?(a.uj(this.ik),a.Dp(this.Pc[0]/255,this.Pc[1]/255,this.Pc[2]/255),a.Qn(),a.Yu()):a.clear(this.Pc[0]/255,this.Pc[1]/255,this.Pc[2]/255,1));this.Ed=!0;var f=this.Na(0,0,!0,!0),b=this.Na(0,0,!1,!0);this.Ed=!1;
this.b.nf&&(f=Math.round(f),b=Math.round(b));this.rj(f,b,null);f=this.zc();a.vd();a.scale(f,f);a.em(-this.Ia());a.translate((this.ma+this.ua)/-2,(this.na+this.ta)/-2);a.gd();this.nc?(this.fb.left=this.kb.yb(this.ma),this.fb.top=this.kb.zb(this.na),this.fb.right=this.kb.yb(this.ua),this.fb.bottom=this.kb.zb(this.ta),this.dd||!this.fb.Bg(this.Mf)?(t(this.Od),b=this.Jk(),this.dd=!1,this.Mf.wg(this.fb)):b=this.Od):b=this.c;var d,h,g=null,c=0;for(d=b.length;c<d;++c)h=b[c],h!==g&&(this.ms(b[c],a),g=h);
this.nc&&(this.Od=b);this.ud&&(b=this.Y.length?this.Y[0].La:0,c=this.Y.length?this.Y[0].index:0,0===this.Y.length||1===this.Y.length&&!a.Vl(b)&&1===this.opacity?(1===this.Y.length?(a.Kb(b),a.bg(this.Ya.Jg(),1/this.b.C,1/this.b.B,0,0,1,1,f,this.Ia(),this.ma,this.na,(this.ma+this.ua)/2,(this.na+this.ta)/2,this.b.pb.W,this.xa[c]),a.nj(b)&&(this.b.ha=!0)):a.Kb(0),a.Ec(this.Ya.Jg()),a.ag(this.opacity),a.lb(this.b.Ta),a.Ee(this.rb,this.ob),a.vd(),a.gd(),f=this.b.C/2,b=this.b.B/2,a.of(-f,b,f,b,f,-b,-f,-b),
a.lb(null)):this.Ya.$l(a,this,null,this.Ya.Jg()))};l.prototype.ms=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Da();var c=a.Ma;c.right<this.ma||c.bottom<this.na||c.left>this.ua||c.top>this.ta||(b.uj(a.Te),a.kq?this.os(a,b):(b.Kb(0),b.Ee(a.rb,a.ob),a.xc(b)))}};l.prototype.ns=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Da();var c=a.Ma;c.right<this.ma||c.bottom<this.na||c.left>this.ua||c.top>this.ta||(a.Te=this.b.Te++,0===a.nb&&1===a.opacity&&a.Wd&&a.Af&&(b.uj(a.Te),a.Af(b)))}};
l.prototype.os=function(a,b){var c=a.Y[0].La,f=a.Y[0].index,d=this.zc();if(1!==a.Y.length||b.Vl(c)||b.Du(c)||(a.k||a.j.Ia())&&b.zh(c)||1!==a.opacity||a.type.wa.Uo)this.Ya.$l(b,this,a,this.ud?this.b.Ta:this.Ya.Jg()),b.vd(),b.scale(d,d),b.em(-this.Ia()),b.translate((this.ma+this.ua)/-2,(this.na+this.ta)/-2),b.gd();else{b.Kb(c);b.Ee(a.rb,a.ob);b.nj(c)&&(this.b.ha=!0);var h=0,g=0,m=0,l=0;b.zh(c)&&(c=a.Ma,h=this.Bc(c.left,c.top,!0),g=this.Bc(c.left,c.top,!1),m=this.Bc(c.right,c.bottom,!0),c=this.Bc(c.right,
c.bottom,!1),h=h/windowWidth,g=1-g/windowHeight,m=m/windowWidth,l=1-c/windowHeight);b.bg(this.ud?this.b.Ta:this.Ya.Jg(),1/a.width,1/a.height,h,g,m,l,d,this.Ia(),this.ma,this.na,(this.ma+this.ua)/2,(this.na+this.ta)/2,this.b.pb.W,a.xa[f]);a.xc(b)}};l.prototype.Na=function(a,b,c,f){var d=this.b.devicePixelRatio;this.b.ef&&(a*=d,b*=d);var d=this.b.lp,h=this.b.mp,d=(this.Ya.scrollX-d)*this.rd+d,h=(this.Ya.scrollY-h)*this.sd+h,g=d,m=h,l=1/this.zc(!f);f?(g-=this.b.C*l/2,m-=this.b.B*l/2):(g-=this.b.width*
l/2,m-=this.b.height*l/2);g+=a*l;m+=b*l;b=this.Ia();0!==b&&(g-=d,m-=h,a=Math.cos(b),b=Math.sin(b),f=g*a-m*b,m=m*a+g*b,g=f+d,m+=h);return c?g:m};l.prototype.Bc=function(a,b,c){var f=this.b.lp,d=this.b.mp,f=(this.Ya.scrollX-f)*this.rd+f,h=(this.Ya.scrollY-d)*this.sd+d,d=f,g=h,m=this.Ia();if(0!==m){a-=f;b-=h;var l=Math.cos(-m),m=Math.sin(-m),n=a*l-b*m;b=b*l+a*m;a=n+f;b+=h}f=1/this.zc(!1);d-=this.b.C*f/2;g-=this.b.B*f/2;d=(a-d)/f;return c?d:(b-g)/f};l.prototype.xb=function(){var a,b,c,f={s:this.scale,
a:this.k,vl:this.ma,vt:this.na,vr:this.ua,vb:this.ta,v:this.visible,bc:this.Pc,t:this.ed,px:this.rd,py:this.sd,o:this.opacity,zr:this.de,fx:[],cg:this.yg,instances:[]};a=0;for(b=this.J.length;a<b;a++)c=this.J[a],f.fx.push({name:c.name,active:c.cb,params:this.xa[c.index]});return f};l.prototype.Tb=function(a){var b,c,f;this.scale=a.s;this.k=a.a;this.ma=a.vl;this.na=a.vt;this.ua=a.vr;this.ta=a.vb;this.visible=a.v;this.Pc=a.bc;this.ed=a.t;this.rd=a.px;this.sd=a.py;this.opacity=a.o;this.de=a.zr;this.yg=
a.cg||[];Ca(this.hc,this.Qp);var d=new ca;b=0;for(f=this.yg.length;b<f;++b)d.add(this.yg[b]);c=b=0;for(f=this.hc.length;b<f;++b)d.contains(this.hc[b][2])||(this.hc[c]=this.hc[b],++c);za(this.hc,c);c=a.fx;b=0;for(f=c.length;b<f;b++)if(a=this.Dk(c[b].name))a.cb=c[b].active,this.xa[a.index]=c[b].params;this.fd();this.c.sort(n);this.sf=!0};Vb=l})();
(function(){function g(a,b){var c,f=a.length;switch(f){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<f;c++)if(a[c]!==b[c])return!1;return!0}}function n(a,b){return a.index-b.index}function l(a){var b,c,f,e;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(n);a.length>=x.length&&(x.length=a.length+1);x[a.length]||(x[a.length]=[]);e=x[a.length];b=0;for(c=e.length;b<c;b++)if(f=e[b],g(a,f))return f;e.push(a);return a}
function q(a,b){this.b=a;this.$p={};this.Kn={};this.Rk=!1;this.bo=new ca;this.mk=[];this.Sj=[];this.name=b[0];var c=b[1];this.se=[];var f,e;f=0;for(e=c.length;f<e;f++)this.eo(c[f],null,this.se)}function t(a){this.type=a;this.c=[];this.S=[];this.da=!0}function r(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.la=[];this.Fe=[];this.ao=this.Fj=this.tm=this.Vk=this.group=this.nm=!1;this.Pa=[];this.Mc=[];this.Fc=[];this.Ng="";this.Mg=this.Vk=this.group=!1;this.ei=null;c[1]&&(this.Ng=c[1][1].toLowerCase(),
this.group=!0,this.Vk=!!c[1][0],this.ei=[],this.Mg=this.Vk,this.b.wf.push(this),this.b.Ei[this.Ng]=this);this.Zc=c[2];this.R=c[4];this.group||(this.b.rn[this.R.toString()]=this);var f=c[5];a=0;for(b=f.length;a<b;a++){var e=new Wb(this,f[a]);e.index=a;this.Pa.push(e);this.dn(e.type)}f=c[6];a=0;for(b=f.length;a<b;a++)e=new Xb(this,f[a]),e.index=a,this.Mc.push(e);if(8===c.length)for(c=c[7],a=0,b=c.length;a<b;a++)this.sheet.eo(c[a],this,this.Fc);this.Ki=!1;this.Pa.length&&(this.Ki=null==this.Pa[0].type&&
this.Pa[0].hb==X.prototype.d.Im)}function h(a,b){var c,f,e;if(a&&(-1===b.indexOf(a)&&b.push(a),a.Eb))for(c=0,f=a.Mb.length;c<f;c++)e=a.Mb[c],a!==e&&-1===b.indexOf(e)&&b.push(e)}function b(a,b){this.$b=a;this.sheet=a.sheet;this.b=a.b;this.O=[];this.ya=[];this.M={};this.index=-1;this.pg=!1;this.hb=this.b.ee(b[1]);this.trigger=0<b[3];this.Jn=2===b[3];this.pd=b[4];this.Yk=b[5];this.du=b[6];this.R=b[7];this.b.le[this.R.toString()]=this;-1===b[0]?(this.type=null,this.Ka=this.gm,this.Me=null,this.Rc=-1):
(this.type=this.b.n[b[0]],this.Ka=this.du?this.Pu:this.fm,b[2]?(this.Me=this.type.Ai(b[2]),this.Rc=this.type.Ck(b[2])):(this.Me=null,this.Rc=-1),this.$b.parent&&this.$b.parent.vj());this.Jn&&(this.Ka=this.Qu);if(10===b.length){var c,f,e=b[9];c=0;for(f=e.length;c<f;c++){var d=new Yb(this,e[c]);this.O.push(d)}this.ya.length=e.length}}function c(a,b){this.$b=a;this.sheet=a.sheet;this.b=a.b;this.O=[];this.ya=[];this.M={};this.index=-1;this.pg=!1;this.hb=this.b.ee(b[1]);-1===b[0]?(this.type=null,this.Ka=
this.gm,this.Me=null,this.Rc=-1):(this.type=this.b.n[b[0]],this.Ka=this.fm,b[2]?(this.Me=this.type.Ai(b[2]),this.Rc=this.type.Ck(b[2])):(this.Me=null,this.Rc=-1));this.R=b[3];this.b.ge[this.R.toString()]=this;if(6===b.length){var c,f,e=b[5];c=0;for(f=e.length;c<f;c++){var d=new Yb(this,e[c]);this.O.push(d)}this.ya.length=e.length}}function d(){L++;p.length===L&&p.push(new Zb);return p[L]}function a(a,b){this.Dc=a;this.$b=a.$b;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.md=null;this.Xd=0;this.get=
null;this.yn=0;this.Ya=null;this.key=0;this.object=null;this.index=0;this.Qh=this.rf=this.Qh=this.rf=this.Ln=this.Ve=this.Rh=null;this.Kc=!1;var c,f,e;switch(b[0]){case 0:case 7:this.md=new $b(this,b[1]);this.Xd=0;this.get=this.Ct;break;case 1:this.md=new $b(this,b[1]);this.Xd=0;this.get=this.Dt;break;case 5:this.md=new $b(this,b[1]);this.Xd=0;this.get=this.Ht;break;case 3:case 8:this.yn=b[1];this.get=this.At;break;case 6:this.Ya=this.b.ll[b[1]];this.get=this.It;break;case 9:this.key=b[1];this.get=
this.Gt;break;case 4:this.object=this.b.n[b[1]];this.get=this.Jt;this.$b.dn(this.object);this.Dc instanceof Xb?this.$b.vj():this.$b.parent&&this.$b.parent.vj();break;case 10:this.index=b[1];a.type.L?(this.get=this.Et,this.Kc=!0):this.get=this.Ft;break;case 11:this.Rh=b[1];this.Ve=null;this.get=this.Bt;break;case 2:case 12:this.Ln=b[1];this.get=this.zt;break;case 13:for(this.get=this.Kt,this.rf=[],this.Qh=[],c=1,f=b.length;c<f;c++)e=new Yb(this.Dc,b[c]),this.rf.push(e),this.Qh.push(0)}}function e(a,
b,c){this.sheet=a;this.parent=b;this.b=a.b;this.la=[];this.name=c[1];this.Lj=c[2];this.Uk=c[3];this.ah=!!c[4];this.Ji=!!c[5];this.R=c[6];this.b.lg[this.R.toString()]=this;this.data=this.Uk;this.parent?(this.lf=this.ah||this.Ji?-1:this.b.bv++,this.b.xr.push(this)):(this.lf=-1,this.b.wr.push(this))}function k(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.la=[];this.Pg=null;this.Qt=c[1];this.cb=!0}function f(){this.Sp=[];this.reset(null)}var x=[];q.prototype.toString=function(){return this.name};
q.prototype.eo=function(a,b,c){switch(a[0]){case 0:a=new ac(this,b,a);if(a.Zc)for(c.push(a),c=0,b=a.Pa.length;c<b;c++)a.Pa[c].trigger&&this.fo(a,c);else a.oo()?this.fo(a,0):c.push(a);break;case 1:a=new Sb(this,b,a);c.push(a);break;case 2:a=new bc(this,b,a),c.push(a)}};q.prototype.Ca=function(){var a,b;a=0;for(b=this.se.length;a<b;a++)this.se[a].Ca(a<b-1&&this.se[a+1].Ki)};q.prototype.ym=function(){Q(this.mk);Q(this.Sj);this.cn(this);Q(this.Sj)};q.prototype.cn=function(a){var b,c,f,e,d=a.mk,k=a.Sj,
h=this.bo.Jc();b=0;for(c=h.length;b<c;++b)f=h[b],e=f.Pg,!f.cb||a===e||-1<k.indexOf(e)||(k.push(e),e.cn(a),d.push(e))};q.prototype.Ka=function(a){this.b.Gw||(this.Rk=!0,a||(this.b.cl=!0));var b,c;b=0;for(c=this.se.length;b<c;b++){var f=this.se[b];f.Ka();this.b.hk(f.la);this.b.ue&&this.b.mb()}a||(this.b.cl=!1)};q.prototype.fo=function(a,b){a.Zc||this.b.Hj.push(a);var c,f,e=a.Pa[b],d;e.type?d=e.type.name:d="system";var k=(c=e.Jn)?this.Kn:this.$p;k[d]||(k[d]=[]);d=k[d];k=e.hb;if(c){if(e.O.length&&(e=
e.O[0],1===e.type&&2===e.md.type)){e=e.md.value.toLowerCase();c=0;for(f=d.length;c<f;c++)if(d[c].method==k){c=d[c].Dg;c[e]?c[e].push([a,b]):c[e]=[[a,b]];return}c={};c[e]=[[a,b]];d.push({method:k,Dg:c})}}else{c=0;for(f=d.length;c<f;c++)if(d[c].method==k){d[c].Dg.push([a,b]);return}Y&&k===Y.prototype.d.vf?d.unshift({method:k,Dg:[[a,b]]}):d.push({method:k,Dg:[[a,b]]})}};Ib=q;t.prototype.Qk=function(){return this.da?this.type.c.length:this.c.length};t.prototype.yc=function(){return this.da?this.type.c:
this.c};t.prototype.yh=function(a){a&&(a.b.ub().Bb.Zc?(this.da&&(Q(this.c),Ca(this.S,a.type.c),this.da=!1),a=this.S.indexOf(a),-1!==a&&(this.c.push(this.S[a]),this.S.splice(a,1))):(this.da=!1,Q(this.c),this.c[0]=a))};rb=t;window._c2hh_="2D31BB1362E49A5B5CCEEBD3A21ECA601B074892";r.prototype.Ca=function(a){var b,c=this.parent;if(this.group)for(this.Fj=!0;c;){if(!c.group){this.Fj=!1;break}c=c.parent}this.tm=!this.oo()&&(!this.parent||this.parent.group&&this.parent.Fj);this.ao=!!a;this.Fe=this.la.slice(0);
for(c=this.parent;c;){a=0;for(b=c.la.length;a<b;a++)this.ur(c.la[a]);c=c.parent}this.la=l(this.la);this.Fe=l(this.Fe);a=0;for(b=this.Pa.length;a<b;a++)this.Pa[a].Ca();a=0;for(b=this.Mc.length;a<b;a++)this.Mc[a].Ca();a=0;for(b=this.Fc.length;a<b;a++)this.Fc[a].Ca(a<b-1&&this.Fc[a+1].Ki)};r.prototype.Uu=function(a){if(this.Mg!==!!a){this.Mg=!!a;var b;a=0;for(b=this.ei.length;a<b;++a)this.ei[a].gq();0<b&&this.b.ja.Ue&&this.b.ja.Ue.ym()}};r.prototype.dn=function(a){h(a,this.la)};r.prototype.ur=function(a){h(a,
this.Fe)};r.prototype.vj=function(){this.nm=!0;this.parent&&this.parent.vj()};r.prototype.oo=function(){return this.Pa.length?this.Pa[0].trigger:!1};r.prototype.Ka=function(){var a,b,c=!1,f=this.b,e=this.b.ub();e.Bb=this;var d=this.Pa;this.Ki||(e.qk=!1);if(this.Zc){0===d.length&&(c=!0);e.Oa=0;for(a=d.length;e.Oa<a;e.Oa++)b=d[e.Oa],b.trigger||(b=b.Ka())&&(c=!0);(e.gf=c)&&this.sj()}else{e.Oa=0;for(a=d.length;e.Oa<a;e.Oa++)if(b=d[e.Oa].Ka(),!b){e.gf=!1;this.tm&&f.ue&&f.mb();return}e.gf=!0;this.sj()}this.ts(e)};
r.prototype.ts=function(a){a.gf&&this.ao&&(a.qk=!0);this.tm&&this.b.ue&&this.b.mb()};r.prototype.Nu=function(a){this.b.ub().Bb=this;this.Pa[a].Ka()&&(this.sj(),this.b.ub().gf=!0)};r.prototype.sj=function(){var a=this.b.ub(),b;a.oc=0;for(b=this.Mc.length;a.oc<b;a.oc++)if(this.Mc[a.oc].Ka())return;this.yp()};r.prototype.Lu=function(){var a=this.b.ub(),b;for(b=this.Mc.length;a.oc<b;a.oc++)if(this.Mc[a.oc].Ka())return;this.yp()};r.prototype.yp=function(){if(this.Fc.length){var a,b,c,f,e=this.Fc.length-
1;this.b.oj(this);if(this.nm)for(a=0,b=this.Fc.length;a<b;a++)c=this.Fc[a],(f=!this.Fj||!this.group&&a<e)&&this.b.Bh(c.la),c.Ka(),f?this.b.De(c.la):this.b.hk(c.la);else for(a=0,b=this.Fc.length;a<b;a++)this.Fc[a].Ka();this.b.kj()}};r.prototype.Ou=function(){var a=this.b.ub();a.Bb=this;var b=!1,c;a.Oa=0;for(c=this.Pa.length;a.Oa<c;a.Oa++)if(this.Pa[a.Oa].Ka())b=!0;else if(!this.Zc)return!1;return this.Zc?b:!0};r.prototype.dm=function(){this.b.Eg++;var a=this.b.ub().Oa,b=this.b.oj(this);if(!this.Zc)for(b.Oa=
a+1,a=this.Pa.length;b.Oa<a;b.Oa++)if(!this.Pa[b.Oa].Ka()){this.b.kj();return}this.sj();this.b.kj()};r.prototype.Wt=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.Pa[b].type===a.type)return!1;return!0};ac=r;b.prototype.Ca=function(){var a,b,c;a=0;for(b=this.O.length;a<b;a++)c=this.O[a],c.Ca(),c.Kc&&(this.pg=!0)};b.prototype.Qu=function(){return!0};b.prototype.gm=function(){var a,b;a=0;for(b=this.O.length;a<b;a++)this.ya[a]=this.O[a].get();return Ya(this.hb.apply(this.b.xd,this.ya),
this.Yk)};b.prototype.Pu=function(){var a,b;a=0;for(b=this.O.length;a<b;a++)this.ya[a]=this.O[a].get();a=this.hb.apply(this.Me?this.Me:this.type,this.ya);this.type.je();return a};b.prototype.fm=function(){var a,b,c,f,e,d,k,h,p=this.type,g=p.Z(),l=this.$b.Zc&&!this.trigger;b=0;var n=p.Eb,r=p.L,x=p.Hd,q=this.Rc,L=-1<q,t=this.pg,G=this.O,A=this.ya,y=this.Yk,I=this.hb,E;if(t)for(b=0,e=G.length;b<e;++b)d=G[b],d.Kc||(A[b]=d.get(0));else for(b=0,e=G.length;b<e;++b)A[b]=G[b].get(0);if(g.da){Q(g.c);Q(g.S);
E=p.c;a=0;for(f=E.length;a<f;++a){h=E[a];if(t)for(b=0,e=G.length;b<e;++b)d=G[b],d.Kc&&(A[b]=d.get(a));L?(b=0,r&&(b=h.type.Bf[x]),b=I.apply(h.I[q+b],A)):b=I.apply(h,A);(k=Ya(b,y))?g.c.push(h):l&&g.S.push(h)}p.finish&&p.finish(!0);g.da=!1;p.je();return g.Qk()}c=0;E=(k=l&&!this.$b.Wt(this))?g.S:g.c;var N=!1;a=0;for(f=E.length;a<f;++a){h=E[a];if(t)for(b=0,e=G.length;b<e;++b)d=G[b],d.Kc&&(A[b]=d.get(a));L?(b=0,r&&(b=h.type.Bf[x]),b=I.apply(h.I[q+b],A)):b=I.apply(h,A);if(Ya(b,y))if(N=!0,k){if(g.c.push(h),
n)for(b=0,e=h.siblings.length;b<e;b++)d=h.siblings[b],d.type.Z().c.push(d)}else{E[c]=h;if(n)for(b=0,e=h.siblings.length;b<e;b++)d=h.siblings[b],d.type.Z().c[c]=d;c++}else if(k){E[c]=h;if(n)for(b=0,e=h.siblings.length;b<e;b++)d=h.siblings[b],d.type.Z().S[c]=d;c++}else if(l&&(g.S.push(h),n))for(b=0,e=h.siblings.length;b<e;b++)d=h.siblings[b],d.type.Z().S.push(d)}za(E,c);if(n)for(r=p.Mb,a=0,f=r.length;a<f;a++)h=r[a].Z(),k?za(h.S,c):za(h.c,c);c=N;if(k&&!N)for(a=0,f=g.c.length;a<f;a++){h=g.c[a];if(t)for(b=
0,e=G.length;b<e;b++)d=G[b],d.Kc&&(A[b]=d.get(a));b=L?I.apply(h.I[q],A):I.apply(h,A);if(Ya(b,y)){N=!0;break}}p.finish&&p.finish(c||l);return l?N:g.Qk()};Wb=b;c.prototype.Ca=function(){var a,b,c;a=0;for(b=this.O.length;a<b;a++)c=this.O[a],c.Ca(),c.Kc&&(this.pg=!0)};c.prototype.gm=function(){var a=this.b,b,c,f=this.O,e=this.ya;b=0;for(c=f.length;b<c;++b)e[b]=f[b].get();return this.hb.apply(a.xd,e)};c.prototype.fm=function(){var a=this.type,b=this.Rc,c=a.Hd,f=this.pg,e=this.O,d=this.ya,k=this.hb,h=a.Z().yc(),
a=a.L,p=-1<b,g,l,n,r,x,q;if(f)for(l=0,r=e.length;l<r;++l)x=e[l],x.Kc||(d[l]=x.get(0));else for(l=0,r=e.length;l<r;++l)d[l]=e[l].get(0);g=0;for(n=h.length;g<n;++g){q=h[g];if(f)for(l=0,r=e.length;l<r;++l)x=e[l],x.Kc&&(d[l]=x.get(g));p?(l=0,a&&(l=q.type.Bf[c]),k.apply(q.I[b+l],d)):k.apply(q,d)}return!1};Xb=c;var p=[],L=-1;a.prototype.Ca=function(){var a,b;if(11===this.type)this.Ve=this.b.Vn(this.Rh,this.$b.parent);else if(13===this.type)for(a=0,b=this.rf.length;a<b;a++)this.rf[a].Ca();this.md&&this.md.Ca()};
a.prototype.ju=function(a){this.Kc||!a||a.wa.wj||(this.Kc=!0)};a.prototype.Hp=function(){this.Kc=!0};a.prototype.Ct=function(a){this.Xd=a||0;a=d();this.md.get(a);L--;return a.data};a.prototype.Dt=function(a){this.Xd=a||0;a=d();this.md.get(a);L--;return z(a.data)?a.data:""};a.prototype.Jt=function(){return this.object};a.prototype.At=function(){return this.yn};a.prototype.Ht=function(a){this.Xd=a||0;a=d();this.md.get(a);L--;return a.Xa()?this.b.Ig(a.data):this.b.Hk(a.data)};a.prototype.It=function(){return this.Ya};
a.prototype.Gt=function(){return this.key};a.prototype.Ft=function(){return this.index};a.prototype.Et=function(a){a=a||0;var b=this.Dc.type,c=null,c=b.Z(),f=c.yc();if(f.length)c=f[a%f.length].type;else if(c.S.length)c=c.S[a%c.S.length].type;else if(b.c.length)c=b.c[a%b.c.length].type;else return 0;return this.index+c.ri[b.Hd]};a.prototype.Bt=function(){return this.Ve};a.prototype.zt=function(){return this.Ln};a.prototype.Kt=function(){var a,b;a=0;for(b=this.rf.length;a<b;a++)this.Qh[a]=this.rf[a].get();
return this.Qh};Yb=a;e.prototype.Ca=function(){this.la=l(this.la)};e.prototype.qf=function(a){var b=this.b.Un();this.parent&&!this.ah&&b?(this.lf>=b.length&&(b.length=this.lf+1),b[this.lf]=a):this.data=a};e.prototype.Kg=function(){var a=this.b.Un();return!this.parent||this.ah||!a||this.Ji?this.data:this.lf>=a.length||"undefined"===typeof a[this.lf]?this.Uk:a[this.lf]};e.prototype.Ka=function(){!this.parent||this.ah||this.Ji||this.qf(this.Uk)};Sb=e;k.prototype.toString=function(){return"include:"+
this.Pg.toString()};k.prototype.Ca=function(){this.Pg=this.b.sk[this.Qt];this.sheet.bo.add(this);this.la=l(this.la);for(var a=this.parent;a;)a.group&&a.ei.push(this),a=a.parent;this.gq()};k.prototype.Ka=function(){this.parent&&this.b.Ah(this.b.n);this.Pg.Rk||this.Pg.Ka(!0);this.parent&&this.b.De(this.b.n)};k.prototype.gq=function(){for(var a=this.parent;a;){if(a.group&&!a.Mg){this.cb=!1;return}a=a.parent}this.cb=!0};bc=k;f.prototype.reset=function(a){this.Bb=a;this.oc=this.Oa=0;Q(this.Sp);this.qk=
this.gf=!1};f.prototype.Yt=function(){return this.Bb.nm?!0:this.Oa<this.Bb.Pa.length-1?!!this.Bb.la.length:!1};Rb=f})();
(function(){function g(h,b){this.Dc=h;this.b=h.b;this.type=b[0];this.get=[this.Ks,this.Gs,this.Ts,this.Ws,this.vs,this.Us,this.Os,this.Ds,this.Ns,this.Ss,this.ws,this.Rs,this.Es,this.Ps,this.Ls,this.Ms,this.Hs,this.Is,this.Cs,this.Vs,this.Qs,this.Js,this.Bs,this.Fs][this.type];var c=null;this.Pd=this.O=this.ya=this.hb=this.Cj=this.second=this.first=this.value=null;this.Rc=-1;this.Uc=null;this.lq=-1;this.Ve=this.Rh=null;this.$f=!1;switch(this.type){case 0:case 1:case 2:this.value=b[1];break;case 3:this.first=
new $b(h,b[1]);break;case 18:this.first=new $b(h,b[1]);this.second=new $b(h,b[2]);this.Cj=new $b(h,b[3]);break;case 19:this.hb=this.b.ee(b[1]);this.hb!==X.prototype.gb.random&&this.hb!==X.prototype.gb.Jr||this.Dc.Hp();this.ya=[];this.O=[];3===b.length?(c=b[2],this.ya.length=c.length+1):this.ya.length=1;break;case 20:this.Pd=this.b.n[b[1]];this.Rc=-1;this.hb=this.b.ee(b[2]);this.$f=b[3];ec.Function&&this.hb===ec.Function.prototype.gb.Av&&this.Dc.Hp();b[4]?this.Uc=new $b(h,b[4]):this.Uc=null;this.ya=
[];this.O=[];6===b.length?(c=b[5],this.ya.length=c.length+1):this.ya.length=1;break;case 21:this.Pd=this.b.n[b[1]];this.$f=b[2];b[3]?this.Uc=new $b(h,b[3]):this.Uc=null;this.lq=b[4];break;case 22:this.Pd=this.b.n[b[1]];this.Pd.Ai(b[2]);this.Rc=this.Pd.Ck(b[2]);this.hb=this.b.ee(b[3]);this.$f=b[4];b[5]?this.Uc=new $b(h,b[5]):this.Uc=null;this.ya=[];this.O=[];7===b.length?(c=b[6],this.ya.length=c.length+1):this.ya.length=1;break;case 23:this.Rh=b[1],this.Ve=null}this.Dc.ju(this.Pd);4<=this.type&&17>=
this.type&&(this.first=new $b(h,b[1]),this.second=new $b(h,b[2]));if(c){var d,a;d=0;for(a=c.length;d<a;d++)this.O.push(new $b(h,c[d]))}}function n(){++r;t.length===r&&t.push(new Zb);return t[r]}function l(h,b,c){var d,a;d=0;for(a=h.length;d<a;++d)h[d].get(c),b[d+1]=c.data}function q(h,b){this.type=h||cc.uf;this.data=b||0;this.mf=null;this.type==cc.uf&&(this.data=Math.floor(this.data))}g.prototype.Ca=function(){23===this.type&&(this.Ve=this.Dc.b.Vn(this.Rh,this.Dc.$b.parent));this.first&&this.first.Ca();
this.second&&this.second.Ca();this.Cj&&this.Cj.Ca();this.Uc&&this.Uc.Ca();if(this.O){var h,b;h=0;for(b=this.O.length;h<b;h++)this.O[h].Ca()}};var t=[],r=-1;g.prototype.Vs=function(h){var b=this.O,c=this.ya;c[0]=h;h=n();l(b,c,h);--r;this.hb.apply(this.b.xd,c)};g.prototype.Qs=function(h){var b=this.Pd,c=this.ya,d=this.O,a=this.Uc,e=this.hb,k=this.Dc.Xd,f=b.Z(),g=f.yc();if(!g.length)if(f.S.length)g=f.S;else{this.$f?h.Jb(""):h.ea(0);return}c[0]=h;h.mf=b;h=n();l(d,c,h);a&&(a.get(h),h.Xa()&&(k=h.data,g=
b.c));--r;b=g.length;if(k>=b||k<=-b)k%=b;0>k&&(k+=b);e.apply(g[k],c)};g.prototype.Bs=function(h){var b=this.Pd,c=this.ya,d=this.O,a=this.Uc,e=this.Rc,k=this.hb,f=this.Dc.Xd,g=b.Z(),p=g.yc();if(!p.length)if(g.S.length)p=g.S;else{this.$f?h.Jb(""):h.ea(0);return}c[0]=h;h.mf=b;h=n();l(d,c,h);a&&(a.get(h),h.Xa()&&(f=h.data,p=b.c));--r;d=p.length;if(f>=d||f<=-d)f%=d;0>f&&(f+=d);f=p[f];p=0;b.L&&(p=f.type.Bf[b.Hd]);k.apply(f.I[e+p],c)};g.prototype.Js=function(h){var b=this.Uc,c=this.Pd,d=this.lq,a=this.Dc.Xd,
e=c.Z(),k=e.yc();if(!k.length)if(e.S.length)k=e.S;else{this.$f?h.Jb(""):h.ea(0);return}if(b){e=n();b.get(e);if(e.Xa()){a=e.data;k=c.c;0!==k.length&&(a%=k.length,0>a&&(a+=k.length));a=c.Gk(a);c=a.Sa[d];z(c)?h.Jb(c):h.A(c);--r;return}--r}b=k.length;if(a>=b||a<=-b)a%=b;0>a&&(a+=b);a=k[a];k=0;c.L&&(k=a.type.ri[c.Hd]);c=a.Sa[d+k];z(c)?h.Jb(c):h.A(c)};g.prototype.Ks=function(h){h.type=cc.uf;h.data=this.value};g.prototype.Gs=function(h){h.type=cc.tf;h.data=this.value};g.prototype.Ts=function(h){h.type=cc.String;
h.data=this.value};g.prototype.Ws=function(h){this.first.get(h);h.Xa()&&(h.data=-h.data)};g.prototype.vs=function(h){this.first.get(h);var b=n();this.second.get(b);h.Xa()&&b.Xa()&&(h.data+=b.data,b.If()&&h.Qf());--r};g.prototype.Us=function(h){this.first.get(h);var b=n();this.second.get(b);h.Xa()&&b.Xa()&&(h.data-=b.data,b.If()&&h.Qf());--r};g.prototype.Os=function(h){this.first.get(h);var b=n();this.second.get(b);h.Xa()&&b.Xa()&&(h.data*=b.data,b.If()&&h.Qf());--r};g.prototype.Ds=function(h){this.first.get(h);
var b=n();this.second.get(b);h.Xa()&&b.Xa()&&(h.data/=b.data,h.Qf());--r};g.prototype.Ns=function(h){this.first.get(h);var b=n();this.second.get(b);h.Xa()&&b.Xa()&&(h.data%=b.data,b.If()&&h.Qf());--r};g.prototype.Ss=function(h){this.first.get(h);var b=n();this.second.get(b);h.Xa()&&b.Xa()&&(h.data=Math.pow(h.data,b.data),b.If()&&h.Qf());--r};g.prototype.ws=function(h){this.first.get(h);var b=n();this.second.get(b);b.Lf()||h.Lf()?this.ys(h,b):this.xs(h,b);--r};g.prototype.ys=function(h,b){h.Lf()&&
b.Lf()?this.As(h,b):this.zs(h,b)};g.prototype.As=function(h,b){h.data+=b.data};g.prototype.zs=function(h,b){h.Lf()?h.data+=(Math.round(1E10*b.data)/1E10).toString():h.Jb(h.data.toString()+b.data)};g.prototype.xs=function(h,b){h.ea(h.data&&b.data?1:0)};g.prototype.Rs=function(h){this.first.get(h);var b=n();this.second.get(b);h.Xa()&&b.Xa()&&(h.data||b.data?h.ea(1):h.ea(0));--r};g.prototype.Cs=function(h){this.first.get(h);h.data?this.second.get(h):this.Cj.get(h)};g.prototype.Es=function(h){this.first.get(h);
var b=n();this.second.get(b);h.ea(h.data===b.data?1:0);--r};g.prototype.Ps=function(h){this.first.get(h);var b=n();this.second.get(b);h.ea(h.data!==b.data?1:0);--r};g.prototype.Ls=function(h){this.first.get(h);var b=n();this.second.get(b);h.ea(h.data<b.data?1:0);--r};g.prototype.Ms=function(h){this.first.get(h);var b=n();this.second.get(b);h.ea(h.data<=b.data?1:0);--r};g.prototype.Hs=function(h){this.first.get(h);var b=n();this.second.get(b);h.ea(h.data>b.data?1:0);--r};g.prototype.Is=function(h){this.first.get(h);
var b=n();this.second.get(b);h.ea(h.data>=b.data?1:0);--r};g.prototype.Fs=function(h){var b=this.Ve.Kg();ha(b)?h.A(b):h.Jb(b)};$b=g;q.prototype.If=function(){return this.type===cc.tf};q.prototype.Xa=function(){return this.type===cc.uf||this.type===cc.tf};q.prototype.Lf=function(){return this.type===cc.String};q.prototype.Qf=function(){this.If()||(this.Lf()&&(this.data=parseFloat(this.data)),this.type=cc.tf)};q.prototype.ea=function(h){this.type=cc.uf;this.data=Math.floor(h)};q.prototype.A=function(h){this.type=
cc.tf;this.data=h};q.prototype.Jb=function(h){this.type=cc.String;this.data=h};q.prototype.Zu=function(h){ha(h)?(this.type=cc.tf,this.data=h):z(h)?(this.type=cc.String,this.data=h.toString()):(this.type=cc.uf,this.data=0)};Zb=q;cc={uf:0,tf:1,String:2}})();function X(g){this.b=g;this.Zb=[]}
X.prototype.xb=function(){var g={},n,l,q,t,r,h,b,c;g.waits=[];var d=g.waits,a;n=0;for(l=this.Zb.length;n<l;n++){h=this.Zb[n];a={t:h.time,st:h.av,s:h.Np,ev:h.Cg.R,sm:[],sols:{}};h.Cg.Mc[h.oc]&&(a.act=h.Cg.Mc[h.oc].R);q=0;for(t=h.la.length;q<t;q++)a.sm.push(h.la[q].R);for(r in h.Wb)if(h.Wb.hasOwnProperty(r)){b=this.b.n[parseInt(r,10)];c={sa:h.Wb[r].zp,insts:[]};q=0;for(t=h.Wb[r].cf.length;q<t;q++)c.insts.push(h.Wb[r].cf[q].uid);a.sols[b.R.toString()]=c}d.push(a)}return g};
X.prototype.Tb=function(g){g=g.waits;var n,l,q,t,r,h,b,c,d,a,e;Q(this.Zb);n=0;for(l=g.length;n<l;n++)if(h=g[n],c=this.b.rn[h.ev.toString()]){d=-1;q=0;for(t=c.Mc.length;q<t;q++)if(c.Mc[q].R===h.act){d=q;break}if(-1!==d){b={Wb:{},la:[],Fn:!1};b.time=h.t;b.av=h.st||"";b.Np=!!h.s;b.Cg=c;b.oc=d;q=0;for(t=h.sm.length;q<t;q++)(c=this.b.Di(h.sm[q]))&&b.la.push(c);for(r in h.sols)if(h.sols.hasOwnProperty(r)&&(c=this.b.Di(parseInt(r,10)))){d=h.sols[r];a={zp:d.sa,cf:[]};q=0;for(t=d.insts.length;q<t;q++)(e=this.b.Ci(d.insts[q]))&&
a.cf.push(e);b.Wb[c.index.toString()]=a}this.Zb.push(b)}}};
(function(){function g(){}function n(){}function l(){}var q=X.prototype;g.prototype.Bq=function(){return!0};g.prototype.Om=function(){return!0};g.prototype.Tq=function(){return!0};var t=[],r=-1;g.prototype.Cq=function(b){var d=b.Z();r++;t.length===r&&t.push([]);var a=t[r];Ca(a,d.yc());var e=this.b.ub(),k=e.Bb,f=e.Yt(),e=this.b.Fu(),h,p,g,m,l,n,q=b.Eb;if(f)for(f=0,h=a.length;f<h&&!e.ab;f++){this.b.Bh(k.la);m=a[f];d=b.Z();d.da=!1;Q(d.c);d.c[0]=m;if(q)for(p=0,g=m.siblings.length;p<g;p++)l=m.siblings[p],
n=l.type.Z(),n.da=!1,Q(n.c),n.c[0]=l;e.index=f;k.dm();this.b.De(k.la)}else for(d.da=!1,Q(d.c),f=0,h=a.length;f<h&&!e.ab;f++){m=a[f];d.c[0]=m;if(q)for(p=0,g=m.siblings.length;p<g;p++)l=m.siblings[p],n=l.type.Z(),n.da=!1,Q(n.c),n.c[0]=l;e.index=f;k.dm()}Q(a);this.b.wu();r--;return!1};g.prototype.xq=function(b,d,a){return dc(b.Kg(),d,a)};g.prototype.Im=function(){var b=this.b.ub();return b.qk?!1:!b.gf};g.prototype.Pm=function(){return!0};g.prototype.Nq=function(){return!0};g.prototype.Qj=function(){return!0};
g.prototype.Uq=function(){return!0};g.prototype.Pj=function(){return!0};g.prototype.rq=function(b,d,a){return Qa(S(b),S(a))<=S(d)};g.prototype.Eq=function(b,d){return Sa(S(b),S(d))};g.prototype.Dq=function(b,d,a){b=Oa(b);d=Oa(d);a=Oa(a);return Sa(a,d)?Sa(b,d)&&!Sa(b,a):!(!Sa(b,d)&&Sa(b,a))};q.d=new g;n.prototype.zq=function(b,d,a,e){if(d&&b&&(d=this.b.Bn(b,d,a,e))){this.b.Wc++;var k;this.b.trigger(Object.getPrototypeOf(b.wa).d.Vh,d);if(d.Eb)for(a=0,e=d.siblings.length;a<e;a++)k=d.siblings[a],this.b.trigger(Object.getPrototypeOf(k.type.wa).d.Vh,
k);this.b.Wc--;b=b.Z();b.da=!1;Q(b.c);b.c[0]=d;if(d.Eb)for(a=0,e=d.siblings.length;a<e;a++)k=d.siblings[a],b=k.type.Z(),b.da=!1,Q(b.c),b.c[0]=k}};n.prototype.ir=function(b,d){0===b.Lj?ha(d)?b.qf(d):b.qf(parseFloat(d)):1===b.Lj&&b.qf(d.toString())};n.prototype.qq=function(b,d){0===b.Lj?ha(d)?b.qf(b.Kg()+d):b.qf(b.Kg()+parseFloat(d)):1===b.Lj&&b.qf(b.Kg()+d.toString())};var h=[],b=[];q.fa=new n;l.prototype["int"]=function(b,d){z(d)?(b.ea(parseInt(d,10)),isNaN(b.data)&&(b.data=0)):b.ea(d)};l.prototype["float"]=
function(b,d){z(d)?(b.A(parseFloat(d)),isNaN(b.data)&&(b.data=0)):b.A(d)};l.prototype.random=function(b,d,a){void 0===a?b.A(Math.random()*d):b.A(Math.random()*(a-d)+d)};l.prototype.sqrt=function(b,d){b.A(Math.sqrt(d))};l.prototype.abs=function(b,d){b.A(Math.abs(d))};l.prototype.round=function(b,d){b.ea(Math.round(d))};l.prototype.floor=function(b,d){b.ea(Math.floor(d))};l.prototype.ceil=function(b,d){b.ea(Math.ceil(d))};l.prototype.sin=function(b,d){b.A(Math.sin(S(d)))};l.prototype.cos=function(b,
d){b.A(Math.cos(S(d)))};l.prototype.tan=function(b,d){b.A(Math.tan(S(d)))};l.prototype.asin=function(b,d){b.A(Ia(Math.asin(d)))};l.prototype.acos=function(b,d){b.A(Ia(Math.acos(d)))};l.prototype.atan=function(b,d){b.A(Ia(Math.atan(d)))};l.prototype.exp=function(b,d){b.A(Math.exp(d))};l.prototype.log10=function(b,d){b.A(Math.log(d)/Math.LN10)};l.prototype.max=function(b){var d=arguments[1];"number"!==typeof d&&(d=0);var a,e,k;a=2;for(e=arguments.length;a<e;a++)k=arguments[a],"number"===typeof k&&d<
k&&(d=k);b.A(d)};l.prototype.min=function(b){var d=arguments[1];"number"!==typeof d&&(d=0);var a,e,k;a=2;for(e=arguments.length;a<e;a++)k=arguments[a],"number"===typeof k&&d>k&&(d=k);b.A(d)};l.prototype.Se=function(b){b.A(this.b.Se)};l.prototype.hg=function(b){b.A(this.b.hg)};l.prototype.time=function(b){b.A(this.b.pb.W)};l.prototype.Oh=function(b){b.ea(this.b.Oh)};l.prototype.bj=function(b){b.ea(this.b.bj)};l.prototype.zk=function(b){b.ea(this.b.zk)};l.prototype.k=function(b,d,a,e,k){b.A(Ia(Pa(d,
a,e,k)))};l.prototype.left=function(b,d,a){b.Jb(z(d)?d.substr(0,a):"")};l.prototype.right=function(b,d,a){b.Jb(z(d)?d.substr(d.length-a):"")};l.prototype.replace=function(b,d,a,e){z(d)&&z(a)&&z(e)?b.Jb(d.replace(new RegExp(gb(a),"gi"),e)):b.Jb(z(d)?d:"")};l.prototype.trim=function(b,d){b.Jb(z(d)?d.trim():"")};l.prototype.Jr=function(b){var d=qa(Math.random()*(arguments.length-1));b.Zu(arguments[d+1])};l.prototype.jk=function(b){b.A(this.b.jk/1E3)};l.prototype.Of=function(b){b.A(this.b.Of)};q.gb=new l;
q.Mu=function(){var c,d,a,e,k,f,g=this.b.ub();c=0;for(a=this.Zb.length;c<a;c++){e=this.Zb[c];if(-1===e.time){if(!e.Np)continue}else if(e.time>this.b.pb.W)continue;g.Bb=e.Cg;g.oc=e.oc;g.Oa=0;for(d in e.Wb)e.Wb.hasOwnProperty(d)&&(k=this.b.n[parseInt(d,10)].Z(),f=e.Wb[d],k.da=f.zp,Ca(k.c,f.cf),k=f,Q(k.cf),b.push(k));e.Cg.Lu();this.b.hk(e.la);e.Fn=!0}d=c=0;for(a=this.Zb.length;c<a;c++)e=this.Zb[c],this.Zb[d]=e,e.Fn?($a(e.Wb),Q(e.la),h.push(e)):d++;za(this.Zb,d)}})();
(function(){qb=function(g,l){var q=g[1],t=g[3],r=g[4],h=g[5],b=g[6],c=g[7],d=g[8];l.d||(l.d={});l.fa||(l.fa={});l.gb||(l.gb={});var a=l.d,e=l.fa,k=l.gb;t&&(a.Hm=function(a,b){return dc(this.x,a,b)},a.yq=function(a,b){return dc(this.y,a,b)},a.Gq=function(){var a=this.j;this.Da();var b=this.Ma;return!(b.right<a.ma||b.bottom<a.na||b.left>a.ua||b.top>a.ta)},a.Iv=function(){this.Da();var a=this.Ma,b=this.b.ja;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},a.Tv=function(a,b,c){var e=this.Z(),
d=e.yc();if(!d.length)return!1;var k=d[0],h=k,g=Xa(k.x,k.y,b,c),l,n,r;l=1;for(n=d.length;l<n;l++)if(k=d[l],r=Xa(k.x,k.y,b,c),0===a&&r<g||1===a&&r>g)g=r,h=k;e.yh(h);return!0},e.kr=function(a){this.x!==a&&(this.x=a,this.ka())},e.jw=function(a){this.y!==a&&(this.y=a,this.ka())},e.Ym=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.ka()},e.gw=function(a,b){var c=a.pt(this);if(c){var e;c.Fk?(e=c.Fk(b,!0),c=c.Fk(b,!1)):(e=c.x,c=c.y);if(this.x!==e||this.y!==c)this.x=e,this.y=c,this.ka()}},
e.Nv=function(a){0!==a&&(this.x+=Math.cos(this.k)*a,this.y+=Math.sin(this.k)*a,this.ka())},e.Mv=function(a,b){0!==b&&(this.x+=Math.cos(S(a))*b,this.y+=Math.sin(S(a))*b,this.ka())},k.nr=function(a){a.A(this.x)},k.or=function(a){a.A(this.y)},k.Se=function(a){a.A(this.b.Hg(this))});r&&(a.Dv=function(a,b){return dc(this.width,a,b)},a.wq=function(a,b){return dc(this.height,a,b)},e.iw=function(a){this.width!==a&&(this.width=a,this.ka())},e.fr=function(a){this.height!==a&&(this.height=a,this.ka())},e.hr=
function(a,b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.ka()},k.mr=function(a){a.A(this.width)},k.Jm=function(a){a.A(this.height)},k.xv=function(a){this.Da();a.A(this.Ma.left)},k.zv=function(a){this.Da();a.A(this.Ma.top)},k.yv=function(a){this.Da();a.A(this.Ma.right)},k.wv=function(a){this.Da();a.A(this.Ma.bottom)});h&&(a.rq=function(a,b){return Qa(this.k,S(b))<=S(a)},a.Eq=function(a){return Sa(this.k,S(a))},a.Dq=function(a,b){var c=Oa(a),e=Oa(b),d=Ka(this.k);return Sa(e,
c)?Sa(d,c)&&!Sa(d,e):!(!Sa(d,c)&&Sa(d,e))},e.aw=function(a){a=S(Ja(a));isNaN(a)||this.k===a||(this.k=a,this.ka())},e.Xv=function(a){0===a||isNaN(a)||(this.k+=S(a),this.k=Ka(this.k),this.ka())},e.Yv=function(a){0===a||isNaN(a)||(this.k-=S(a),this.k=Ka(this.k),this.ka())},e.Zv=function(a,b){var c=Ra(this.k,S(b),S(a));isNaN(c)||this.k===c||(this.k=c,this.ka())},e.$v=function(a,b,c){a=Ra(this.k,Math.atan2(c-this.y,b-this.x),S(a));isNaN(a)||this.k===a||(this.k=a,this.ka())},e.hw=function(a,b){var c=Math.atan2(b-
this.y,a-this.x);isNaN(c)||this.k===c||(this.k=c,this.ka())},k.vv=function(a){a.A(Na(this.k))});q||(a.Bv=function(a,b,c){return dc(this.Sa[a],b,c)},a.Gv=function(a){return this.Sa[a]},a.Uv=function(a,b){var c=this.Z(),e=c.yc();if(!e.length)return!1;var d=e[0],k=d,h=d.Sa[b],g,l,n;g=1;for(l=e.length;g<l;g++)if(d=e[g],n=d.Sa[b],0===a&&n<h||1===a&&n>h)h=n,k=d;c.yh(k);return!0},a.Sv=function(a){var b,c,e,d,k;if(this.b.it().Yk){k=this.Z();if(k.da)for(k.da=!1,Q(k.c),Q(k.S),e=this.c,b=0,c=e.length;b<c;b++)d=
e[b],d.uid===a?k.S.push(d):k.c.push(d);else{e=b=0;for(c=k.c.length;b<c;b++)d=k.c[b],k.c[e]=d,d.uid===a?k.S.push(d):e++;za(k.c,e)}this.je();return!!k.c.length}d=this.b.Ci(a);if(!d)return!1;k=this.Z();if(!k.da&&-1===k.c.indexOf(d))return!1;if(this.L)for(a=d.type.va,b=0,c=a.length;b<c;b++){if(a[b]===this)return k.yh(d),this.je(),!0}else if(d.type===this)return k.yh(d),this.je(),!0;return!1},a.Vh=function(){return!0},a.Oq=function(){return!0},e.ew=function(a,b){var c=this.Sa;ha(c[a])?c[a]=ha(b)?b:parseFloat(b):
z(c[a])&&(c[a]=z(b)?b:b.toString())},e.uv=function(a,b){var c=this.Sa;ha(c[a])?c[a]=ha(b)?c[a]+b:c[a]+parseFloat(b):z(c[a])&&(c[a]=z(b)?c[a]+b:c[a]+b.toString())},e.kw=function(a,b){var c=this.Sa;ha(c[a])&&(c[a]=ha(b)?c[a]-b:c[a]-parseFloat(b))},e.bw=function(a,b){this.Sa[a]=b?1:0},e.lw=function(a){this.Sa[a]=1-this.Sa[a]},e.Aq=function(){this.b.Je(this)},e.Iq||(e.Iq=function(a){var b,c;try{b=JSON.parse(a)}catch(e){return}this.b.Si(this,b,!0);this.he&&this.he();if(this.I)for(a=0,b=this.I.length;a<
b;++a)c=this.I[a],c.he&&c.he()}),k.Ev=function(a){var b=a.mf.c.length,c,e,d;c=0;for(e=this.b.Sc.length;c<e;c++)d=this.b.Sc[c],a.mf.L?0<=d.type.va.indexOf(a.mf)&&b++:d.type===a.mf&&b++;a.ea(b)},k.Wv=function(a){a.ea(a.mf.Z().yc().length)},k.mw=function(a){a.ea(this.uid)},k.Fv=function(a){a.ea(this.Lg())},k.Gm||(k.Gm=function(a){a.Jb(JSON.stringify(this.b.hm(this,!0)))}));b&&(a.Jv=function(){return this.visible},e.jr=function(a){!a!==!this.visible&&(this.visible=!!a,this.b.ha=!0)},a.Cv=function(a,b){return dc(mb(100*
this.opacity),a,b)},e.fw=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.ha=!0)},k.Opacity=function(a){a.A(mb(100*this.opacity))});c&&(a.Hv=function(a){return a?this.j===a:!1},a.Vv=function(a){var b=this.Z(),c=b.yc();if(!c.length)return!1;var e=c[0],d=e,k,h;k=1;for(h=c.length;k<h;k++)if(e=c[k],0===a){if(e.j.index>d.j.index||e.j.index===d.j.index&&e.Ac()>d.Ac())d=e}else if(e.j.index<d.j.index||e.j.index===d.j.index&&e.Ac()<d.Ac())d=e;b.yh(d);return!0},e.Jq=function(){var a=
this.j,b=a.c;b.length&&b[b.length-1]===this||(a.Zf(this,!1),a.rg(this,!1),this.b.ha=!0)},e.Ov=function(){var a=this.j,b=a.c;b.length&&b[0]===this||(a.Zf(this,!1),a.Bu(this),this.b.ha=!0)},e.Pv=function(a){a&&a!=this.j&&(this.j.Zf(this,!0),this.j=a,a.rg(this,!0),this.b.ha=!0)},e.pw=function(a,b){var c=0===a;if(b){var e=b.kt(this);e&&e.uid!==this.uid&&(this.j.index!==e.j.index&&(this.j.Zf(this,!0),this.j=e.j,e.j.rg(this,!0)),this.j.ku(this,e,c),this.b.ha=!0)}},k.Lv=function(a){a.ea(this.j.Yo)},k.Kv=
function(a){a.Jb(this.j.name)},k.ow=function(a){a.ea(this.Ac())});d&&(e.cw=function(a,b){if(this.b.m){var c=this.type.Ek(b);if(!(0>c)){var e=1===a;this.fe[c]!==e&&(this.fe[c]=e,this.fd(),this.b.ha=!0)}}},e.dw=function(a,b,c){if(this.b.m){var e=this.type.Ek(a);0>e||(a=this.type.J[e],e=this.xa[e],b=Math.floor(b),0>b||b>=e.length||(1===this.b.m.xt(a.La,b)&&(c/=100),e[b]!==c&&(e[b]=c,a.cb&&(this.b.ha=!0))))}})};Jb=function(){this.ck=this.Wj=!0;this.type.Yh=!0;this.b.ha=!0;var g,l,q=this.Xj;g=0;for(l=
q.length;g<l;++g)q[g](this);this.j.nc&&this.Da()};Kb=function(g){g&&this.Xj.push(g)};Mb=function(){if(this.Wj){var g=this.Ma,l=this.yf;g.set(this.x,this.y,this.x+this.width,this.y+this.height);g.offset(-this.Ob*this.width,-this.Pb*this.height);this.k?(g.offset(-this.x,-this.y),l.Jp(g,this.k),l.offset(this.x,this.y),l.sn(g)):l.dg(g);g.normalize();this.Wj=!1;this.ov()}};var g=new ta(0,0,0,0);Nb=function(){if(this.j.nc){var n=this.j.kb,l=this.Ma;g.set(n.yb(l.left),n.zb(l.top),n.yb(l.right),n.zb(l.bottom));
this.Hb.Bg(g)||(this.Hb.right<this.Hb.left?n.update(this,null,g):n.update(this,this.Hb,g),this.Hb.wg(g),this.j.dd=!0)}};Ob=function(){if(this.ck&&this.ug){this.Da();var n=this.type.di,l=this.Ma;g.set(n.yb(l.left),n.zb(l.top),n.yb(l.right),n.zb(l.bottom));this.me.Bg(g)||(this.me.right<this.me.left?n.update(this,null,g):n.update(this,this.me,g),this.me.wg(g),this.ck=!1)}};Lb=function(g,l){return this.Ma.ac(g,l)&&this.yf.ac(g,l)?this.eb&&!this.eb.gl()?(this.eb.Zj(this.width,this.height,this.k),this.eb.ac(g-
this.x,l-this.y)):!0:!1};Fb=function(){this.type.Ij();return this.Ze};Pb=function(){this.j.Am();return this.hd};Qb=function(){Q(this.Y);var g,l,q,t=!0;g=0;for(l=this.fe.length;g<l;g++)this.fe[g]&&(q=this.type.J[g],this.Y.push(q),q.ad||(t=!1));this.kq=!!this.Y.length;this.Wd=t};Gb=function(){return"Inst"+this.up};tb=function(g){if(g&&g.Eb&&g.type!=this){var l,q,t;l=0;for(q=g.siblings.length;l<q;l++)if(t=g.siblings[l],t.type==this)return t}g=this.Z().yc();return g.length?g[0]:null};ub=function(g){var l=
this.Z().yc();return l.length?l[g.Lg()%l.length]:null};sb=function(){if(this.fg&&!this.L){var g,l;g=0;for(l=this.c.length;g<l;g++)this.c[g].Ze=g;var q=g,t=this.b.Sc;g=0;for(l=t.length;g<l;++g)t[g].type===this&&(t[g].Ze=q++);this.fg=!1}};Db=function(g){if(g<this.c.length)return this.c[g];g-=this.c.length;var l=this.b.Sc,q,t;q=0;for(t=l.length;q<t;++q)if(l[q].type===this){if(0===g)return l[q];--g}return null};vb=function(){return this.Yd[this.kd]};wb=function(){this.kd++;this.kd===this.Yd.length?this.Yd.push(new rb(this)):
(this.Yd[this.kd].da=!0,Q(this.Yd[this.kd].S))};xb=function(){this.kd++;this.kd===this.Yd.length&&this.Yd.push(new rb(this));var g=this.Yd[this.kd],l=this.Yd[this.kd-1];l.da?(g.da=!0,Q(g.S)):(g.da=!1,Ca(g.c,l.c),Ca(g.S,l.S))};yb=function(){this.kd--};zb=function(g){var l,q,t,r,h,b=0;if(!this.L)for(l=0,q=this.va.length;l<q;l++)for(h=this.va[l],t=0,r=h.Ga.length;t<r;t++){if(g===h.Ga[t].name)return this.M.lastBehIndex=b,h.Ga[t];b++}l=0;for(q=this.Ga.length;l<q;l++){if(g===this.Ga[l].name)return this.M.lastBehIndex=
b,this.Ga[l];b++}return null};Ab=function(g){return this.Ai(g)?this.M.lastBehIndex:-1};Bb=function(g){var l,q;l=0;for(q=this.J.length;l<q;l++)if(this.J[l].name===g)return l;return-1};Cb=function(){if(this.Eb&&!this.L){var g,l,q,t,r,h,b;this.Ij();h=this.Z();var c=h.da,d=(g=this.b.ub())&&g.Bb&&g.Bb.Zc;g=0;for(l=this.Mb.length;g<l;g++)if(r=this.Mb[g],r!==this&&(r.Ij(),b=r.Z(),b.da=c,!c)){Q(b.c);q=0;for(t=h.c.length;q<t;++q)b.c[q]=r.Gk(h.c[q].Ze);if(d)for(Q(b.S),q=0,t=h.S.length;q<t;++q)b.S[q]=r.Gk(h.S[q].Ze)}}};
Eb=function(){return"Type"+this.R};dc=function(g,l,q){if("undefined"===typeof g||"undefined"===typeof q)return!1;switch(l){case 0:return g===q;case 1:return g!==q;case 2:return g<q;case 3:return g<=q;case 4:return g>q;case 5:return g>=q;default:return!1}}})();var mc={};function pc(g){this.b=g}
(function(){function g(){return b.length?b.pop():[]}function n(c){var d,a;d=0;for(a=c.length;d<a;d++)Array.isArray(c[d])&&n(c[d]);Q(c);b.push(c)}function l(){}function q(){}function t(){}var r=pc.prototype;r.Fa=function(b){this.wa=b;this.b=b.b};r.Fa.prototype.ba=function(){};r.ra=function(b){this.type=b;this.b=b.b};var h=r.ra.prototype,b=[];Array.isArray||(Array.isArray=function(b){return"[object Array]"===Object.prototype.toString.call(b)});h.ba=function(){this.uc=this.D[0];this.Tc=this.D[1];this.ld=
this.D[2];this.cd||(this.Ad=g());var b=this.Ad;b.length=this.uc;var d,a,e;for(d=0;d<this.uc;d++)for(b[d]||(b[d]=g()),b[d].length=this.Tc,a=0;a<this.Tc;a++)for(b[d][a]||(b[d][a]=g()),b[d][a].length=this.ld,e=0;e<this.ld;e++)b[d][a][e]=0;this.Nn=[];this.On=[];this.Pn=[];this.Id=-1};h.uh=function(){var b;for(b=0;b<this.uc;b++)n(this.Ad[b]);Q(this.Ad)};h.kn=function(b,d,a){b=Math.floor(b);d=Math.floor(d);a=Math.floor(a);return isNaN(b)||0>b||b>this.uc-1||isNaN(d)||0>d||d>this.Tc-1||isNaN(a)||0>a||a>this.ld-
1?0:this.Ad[b][d][a]};h.set=function(b,d,a,e){b=Math.floor(b);d=Math.floor(d);a=Math.floor(a);isNaN(b)||0>b||b>this.uc-1||isNaN(d)||0>d||d>this.Tc-1||isNaN(a)||0>a||a>this.ld-1||(this.Ad[b][d][a]=e)};h.et=function(){return JSON.stringify({c2array:!0,size:[this.uc,this.Tc,this.ld],data:this.Ad})};h.xb=function(){return{size:[this.uc,this.Tc,this.ld],data:this.Ad}};h.Tb=function(b){var d=b.size;this.uc=d[0];this.Tc=d[1];this.ld=d[2];this.Ad=b.data};h.Vd=function(b,d,a){0>b&&(b=0);0>d&&(d=0);0>a&&(a=
0);if(this.uc!==b||this.Tc!==d||this.ld!==a){this.uc=b;this.Tc=d;this.ld=a;var e,k,f=this.Ad;f.length=b;for(b=0;b<this.uc;b++)for(ga(f[b])&&(f[b]=g()),f[b].length=d,e=0;e<this.Tc;e++)for(ga(f[b][e])&&(f[b][e]=g()),f[b][e].length=a,k=0;k<this.ld;k++)ga(f[b][e][k])&&(f[b][e][k]=0)}};h.Qr=function(){return 0<=this.Id&&this.Id<this.Nn.length?this.Nn[this.Id]:0};h.qs=function(){return 0<=this.Id&&this.Id<this.On.length?this.On[this.Id]:0};h.tw=function(){return 0<=this.Id&&this.Id<this.Pn.length?this.Pn[this.Id]:
0};l.prototype.Hm=function(b,d,a){return dc(this.kn(b,0,0),d,a)};h.Vj=function(b){this.b.Bh(b.la);b.dm();this.b.De(b.la)};r.d=new l;q.prototype.hr=function(b,d,a){this.Vd(b,d,a)};q.prototype.kr=function(b,d){this.set(b,0,0,d)};r.fa=new q;t.prototype.mr=function(b){b.ea(this.uc)};t.prototype.Jm=function(b){b.ea(this.Tc)};t.prototype.Gm=function(b){b.Jb(this.et())};r.gb=new t})();function qc(g){this.b=g}
(function(){function g(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function n(a){a=a.toLowerCase();return U.hasOwnProperty(a)&&U[a].length?U[a][0].fc():w.destination}function l(){return w.createGain?w.createGain():w.createGainNode()}function q(a){return w.createDelay?w.createDelay(a):w.createDelayNode(a)}function t(a){a.start?a.start(0):a.noteOn(0)}function r(a,b,c){a.start?a.start(0,b):a.noteGrainOn(0,b,c-b)}function h(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}function b(a,
b,c,e,d,f){this.type="filter";this.$c=[a,b,c,e,d,f];this.U=l();this.H=l();this.H.gain.value=f;this.F=l();this.F.gain.value=1-f;this.Ha=w.createBiquadFilter();this.Ha.type="number"===typeof this.Ha.type?a:yc[a];this.Ha.frequency.value=b;this.Ha.detune&&(this.Ha.detune.value=c);this.Ha.Q.value=e;this.Ha.gain.value=d;this.U.connect(this.Ha);this.U.connect(this.F);this.Ha.connect(this.H)}function c(a,b,c){this.type="delay";this.$c=[a,b,c];this.U=l();this.H=l();this.H.gain.value=c;this.F=l();this.F.gain.value=
1-c;this.qh=l();this.wc=q(a);this.wc.delayTime.value=a;this.mi=l();this.mi.gain.value=b;this.U.connect(this.qh);this.U.connect(this.F);this.qh.connect(this.H);this.qh.connect(this.wc);this.wc.connect(this.mi);this.mi.connect(this.qh)}function d(a,b,c,e){this.type="convolve";this.$c=[b,c,e];this.U=l();this.H=l();this.H.gain.value=c;this.F=l();this.F.gain.value=1-c;this.Qe=w.createConvolver();a&&(this.Qe.normalize=b,this.Qe.buffer=a);this.U.connect(this.Qe);this.U.connect(this.F);this.Qe.connect(this.H)}
function a(a,b,c,e,d){this.type="flanger";this.$c=[a,b,c,e,d];this.U=l();this.F=l();this.F.gain.value=1-d/2;this.H=l();this.H.gain.value=d/2;this.si=l();this.si.gain.value=e;this.wc=q(a+b);this.wc.delayTime.value=a;this.$a=w.createOscillator();this.$a.frequency.value=c;this.Ub=l();this.Ub.gain.value=b;this.U.connect(this.wc);this.U.connect(this.F);this.wc.connect(this.H);this.wc.connect(this.si);this.si.connect(this.wc);this.$a.connect(this.Ub);this.Ub.connect(this.wc.delayTime);t(this.$a)}function e(a,
b,c,e,d,f){this.type="phaser";this.$c=[a,b,c,e,d,f];this.U=l();this.F=l();this.F.gain.value=1-f/2;this.H=l();this.H.gain.value=f/2;this.Ha=w.createBiquadFilter();this.Ha.type="number"===typeof this.Ha.type?7:"allpass";this.Ha.frequency.value=a;this.Ha.detune&&(this.Ha.detune.value=b);this.Ha.Q.value=c;this.$a=w.createOscillator();this.$a.frequency.value=d;this.Ub=l();this.Ub.gain.value=e;this.U.connect(this.Ha);this.U.connect(this.F);this.Ha.connect(this.H);this.$a.connect(this.Ub);this.Ub.connect(this.Ha.frequency);
t(this.$a)}function k(a){this.type="gain";this.$c=[a];this.X=l();this.X.gain.value=a}function f(a,b){this.type="tremolo";this.$c=[a,b];this.X=l();this.X.gain.value=1-b/2;this.$a=w.createOscillator();this.$a.frequency.value=a;this.Ub=l();this.Ub.gain.value=b/2;this.$a.connect(this.Ub);this.Ub.connect(this.X.gain);t(this.$a)}function x(a,b){this.type="ringmod";this.$c=[a,b];this.U=l();this.H=l();this.H.gain.value=b;this.F=l();this.F.gain.value=1-b;this.Dh=l();this.Dh.gain.value=0;this.$a=w.createOscillator();
this.$a.frequency.value=a;this.$a.connect(this.Dh.gain);t(this.$a);this.U.connect(this.Dh);this.U.connect(this.F);this.Dh.connect(this.H)}function p(a,b,c,e,d){this.type="distortion";this.$c=[a,b,c,e,d];this.U=l();this.mj=l();this.lj=l();this.Tu(c,Math.pow(10,e/20));this.H=l();this.H.gain.value=d;this.F=l();this.F.gain.value=1-d;this.Mj=w.createWaveShaper();this.ki=new Float32Array(65536);this.ct(a,b);this.Mj.ki=this.ki;this.U.connect(this.mj);this.U.connect(this.F);this.mj.connect(this.Mj);this.Mj.connect(this.lj);
this.lj.connect(this.H)}function L(a,b,c,e,d){this.type="compressor";this.$c=[a,b,c,e,d];this.X=w.createDynamicsCompressor();try{this.X.threshold.value=a,this.X.knee.value=b,this.X.ratio.value=c,this.X.attack.value=e,this.X.release.value=d}catch(f){}}function m(a,b){this.type="analyser";this.$c=[a,b];this.X=w.createAnalyser();this.X.fftSize=a;this.X.smoothingTimeConstant=b;this.$s=new Float32Array(this.X.frequencyBinCount);this.Mp=new Uint8Array(a);this.xh=0}function v(){this.G=null;this.Ui=0;this.Ge=
[];this.yl=this.Ni=this.Mi=0}function B(a,b){this.src=a;this.P=F;this.Xc=b;this.Xh=!1;var c=this;this.wl=this.Pl=null;this.Xf=[];this.tj=0;this.Dm=this.vk=this.Rp=this.hj=!1;1===F&&b&&(this.P=0,this.Pl=l());this.Le=this.aa=null;var e;switch(this.P){case 0:this.aa=new Audio;this.aa.crossOrigin="anonymous";this.aa.addEventListener("canplaythrough",function(){c.Dm=!0});1===F&&w.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.Rp=!0,this.aa.addEventListener("canplay",function(){c.wl||
(c.wl=w.createMediaElementSource(c.aa),c.wl.connect(c.Pl))}));this.aa.autoplay=!1;this.aa.Cw="auto";this.aa.src=a;break;case 1:e=new XMLHttpRequest;e.open("GET",a,!0);e.responseType="arraybuffer";e.onload=function(){c.Le=e.response;c.Rr()};e.onerror=function(){c.vk=!0};e.send();break;case 2:this.aa=!0;break;case 3:this.aa=!0}}function J(a,b){var c=this;this.tag=b;this.ab=this.od=!0;this.src=a.src;this.buffer=a;this.P=F;this.Xc=a.Xc;this.playbackRate=1;this.Ef=!0;this.Rb=this.mc=!1;this.Ib=0;this.$g=
this.Jf=this.pd=!1;this.volume=1;this.Nl=function(a){if(!c.Rb&&!c.mc){var b=this;b||(b=a.target);b===c.Wh&&(c.Ef=!0,c.ab=!0,M=c.tag,C.trigger(qc.prototype.d.ng,R))}};this.Wh=null;this.Gf=1===y&&!this.Xc||2===y;this.Sf=1;this.startTime=this.Gf?C.pb.W:C.$d.W;this.Ba=this.Qa=null;this.qd=!1;this.Aa=null;this.ip=this.hp=this.gp=this.fp=this.kp=this.jp=0;this.g=null;var e=!1;1!==this.P||0!==this.buffer.P||this.buffer.Rp||(this.P=0);switch(this.P){case 0:this.Xc?(this.g=a.aa,e=!a.Xh,a.Xh=!0):(this.g=new Audio,
this.g.crossOrigin="anonymous",this.g.autoplay=!1,this.g.src=a.aa.src,e=!0);e&&this.g.addEventListener("ended",function(){M=c.tag;c.ab=!0;C.trigger(qc.prototype.d.ng,R)});break;case 1:this.Qa=l();this.Qa.connect(n(b));1===this.buffer.P?a.aa&&(this.g=w.createBufferSource(),this.g.buffer=a.aa,this.g.connect(this.Qa)):(this.g=this.buffer.aa,this.buffer.Pl.connect(this.Qa),this.buffer.Xh||(this.buffer.Xh=!0,this.buffer.aa.addEventListener("ended",function(){M=c.tag;c.ab=!0;C.trigger(qc.prototype.d.ng,
R)})));break;case 2:this.g=new window.Media(u+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(c.Ef=!0,c.ab=!0,M=c.tag,C.trigger(qc.prototype.d.ng,R))});break;case 3:this.g=!0}}function V(a){Q(Ea);if(a.length){var b,c,e;b=0;for(c=K.length;b<c;b++)e=K[b],nb(a,e.tag)&&Ea.push(e)}else G&&!G.Ye()&&(Q(Ea),Ea[0]=G)}function O(a,b){U.hasOwnProperty(a)?U[a].push(b):U[a]=[b];var c,e,d,f,k=w.destination;if(U.hasOwnProperty(a)&&(d=U[a],d.length))for(k=d[0].fc(),c=0,e=d.length;c<e;c++)f=d[c],c+
1===e?f.tc(w.destination):f.tc(d[c+1].fc());V(a);c=0;for(e=Ea.length;c<e;c++)Ea[c].Hu(k);W&&Ma===a&&(W.disconnect(),W.connect(k))}function T(){}function D(){}var H=qc.prototype;H.Fa=function(a){this.wa=a;this.b=a.b};H.Fa.prototype.ba=function(){};var C=null,R=null,M="",u="",F=0,w=null,ia=[],K=[],G=null,A=!1,y=0,I=!1,E=1,N=0,ja=0,P=!1,ua=1,ka=1,La=10,Aa=1E4,wc=1,W=null,Ma="",Ba=!1,Ua=[],U={},yc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");b.prototype.tc=function(a){this.H.disconnect();
this.H.connect(a);this.F.disconnect();this.F.connect(a)};b.prototype.remove=function(){this.U.disconnect();this.Ha.disconnect();this.H.disconnect();this.F.disconnect()};b.prototype.fc=function(){return this.U};c.prototype.tc=function(a){this.H.disconnect();this.H.connect(a);this.F.disconnect();this.F.connect(a)};c.prototype.remove=function(){this.U.disconnect();this.qh.disconnect();this.wc.disconnect();this.mi.disconnect();this.H.disconnect();this.F.disconnect()};c.prototype.fc=function(){return this.U};
d.prototype.tc=function(a){this.H.disconnect();this.H.connect(a);this.F.disconnect();this.F.connect(a)};d.prototype.remove=function(){this.U.disconnect();this.Qe.disconnect();this.H.disconnect();this.F.disconnect()};d.prototype.fc=function(){return this.U};a.prototype.tc=function(a){this.F.disconnect();this.F.connect(a);this.H.disconnect();this.H.connect(a)};a.prototype.remove=function(){this.U.disconnect();this.wc.disconnect();this.$a.disconnect();this.Ub.disconnect();this.F.disconnect();this.H.disconnect();
this.si.disconnect()};a.prototype.fc=function(){return this.U};e.prototype.tc=function(a){this.F.disconnect();this.F.connect(a);this.H.disconnect();this.H.connect(a)};e.prototype.remove=function(){this.U.disconnect();this.Ha.disconnect();this.$a.disconnect();this.Ub.disconnect();this.F.disconnect();this.H.disconnect()};e.prototype.fc=function(){return this.U};k.prototype.tc=function(a){this.X.disconnect();this.X.connect(a)};k.prototype.remove=function(){this.X.disconnect()};k.prototype.fc=function(){return this.X};
f.prototype.tc=function(a){this.X.disconnect();this.X.connect(a)};f.prototype.remove=function(){this.$a.disconnect();this.Ub.disconnect();this.X.disconnect()};f.prototype.fc=function(){return this.X};x.prototype.tc=function(a){this.H.disconnect();this.H.connect(a);this.F.disconnect();this.F.connect(a)};x.prototype.remove=function(){this.$a.disconnect();this.Dh.disconnect();this.U.disconnect();this.H.disconnect();this.F.disconnect()};x.prototype.fc=function(){return this.U};p.prototype.Tu=function(a,
b){.01>a&&(a=.01);this.mj.gain.value=a;this.lj.gain.value=Math.pow(1/a,.6)*b};p.prototype.shape=function(a,b,c){var e=1.05*c*b-b;c=0>a?-1:1;a=0>a?-a:a;b=a<b?a:b+e*(1-Math.exp(-(1/e)*(a-b)));return b*c};p.prototype.ct=function(a,b){for(var c=Math.pow(10,a/20),e=Math.pow(10,b/20),d=0,f=0;32768>f;++f)d=f/32768,d=this.shape(d,c,e),this.ki[32768+f]=d,this.ki[32768-f-1]=-d};p.prototype.tc=function(a){this.H.disconnect();this.H.connect(a);this.F.disconnect();this.F.connect(a)};p.prototype.remove=function(){this.U.disconnect();
this.mj.disconnect();this.Mj.disconnect();this.lj.disconnect();this.H.disconnect();this.F.disconnect()};p.prototype.fc=function(){return this.U};L.prototype.tc=function(a){this.X.disconnect();this.X.connect(a)};L.prototype.remove=function(){this.X.disconnect()};L.prototype.fc=function(){return this.X};m.prototype.bb=function(){this.X.getFloatFrequencyData(this.$s);this.X.getByteTimeDomainData(this.Mp);for(var a=this.X.fftSize,b=0,c=this.xh=0,e=0;b<a;b++)e=(this.Mp[b]-128)/128,0>e&&(e=-e),this.xh<
e&&(this.xh=e),c+=e*e;this.xh=g(this.xh);g(Math.sqrt(c/a))};m.prototype.tc=function(a){this.X.disconnect();this.X.connect(a)};m.prototype.remove=function(){this.X.disconnect()};m.prototype.fc=function(){return this.X};v.prototype.Eh=function(a){if(this.G=a)this.Mi=this.G.x,this.Ni=this.G.y;Q(this.Ge)};v.prototype.Fi=function(){return!!this.G};v.prototype.bb=function(a){this.G&&0!==a&&(this.yl=Pa(this.Mi,this.Ni,this.G.x,this.G.y),a=Xa(this.Mi,this.Ni,this.G.x,this.G.y)/a,4>this.Ge.length||this.Ge.shift(),
this.Ge.push(a),this.Mi=this.G.x,this.Ni=this.G.y)};v.prototype.Lk=function(){if(!this.Ge.length)return 0;var a,b,c=0;a=0;for(b=this.Ge.length;a<b;a++)c+=this.Ge[a];return c/this.Ge.length};v.prototype.Mk=function(){return Math.cos(this.yl)*this.Lk()};v.prototype.Nk=function(){return Math.sin(this.yl)*this.Lk()};var xc=!1;B.prototype.Rr=function(){if(!this.aa&&this.Le){var a=this;if(w.decodeAudioData)w.decodeAudioData(this.Le,function(b){a.aa=b;a.Le=null;var c,e,d;if(ga(a.ij)||I)ga(a.fi)||(c=a.fi.Qe,
c.normalize=a.Xo,c.buffer=b);else if(a.Xf.length){c=0;for(e=a.Xf.length;c<e;c++){b=a.Xf[c];d=new J(a,b.Vp);d.km(!0);if("undefined"!==typeof b.Zo&&(b.G=C.Ci(b.Zo),!b.G))continue;if(b.G){var f=Ta(b.G.x,b.G.y,-b.G.j.Ia(),N,ja,!0),k=Ta(b.G.x,b.G.y,-b.G.j.Ia(),N,ja,!1);d.jm(f,k,Ia(b.G.k-b.G.j.Ia()),b.Sk,b.Al,b.Dl);d.Eh(b.G)}else d.jm(b.x,b.y,b.pr,b.Sk,b.Al,b.Dl);d.play(a.tl,a.Cm,a.tj);a.hj&&d.pause();K.push(d)}Q(a.Xf)}else d=new J(a,a.ij||""),d.play(a.tl,a.Cm,a.tj),a.hj&&d.pause(),K.push(d)},function(){a.vk=
!0});else if(this.aa=w.createBuffer(this.Le,!1),this.Le=null,ga(this.ij)||I)ga(this.fi)||(b=this.fi.Qe,b.normalize=this.Xo,b.buffer=this.aa);else{var b=new J(this,this.ij);b.play(this.tl,this.Cm,this.tj);this.hj&&b.pause();K.push(b)}}};B.prototype.jo=function(){switch(this.P){case 0:var a=4<=this.aa.readyState;a&&(this.Dm=!0);return a||this.Dm;case 1:return!!this.Le||!!this.aa;case 2:return!0;case 3:return!0}return!1};B.prototype.Xt=function(){switch(this.P){case 0:return this.jo();case 1:return!!this.aa;
case 2:return!0;case 3:return!0}return!1};B.prototype.Pt=function(){switch(this.P){case 0:return!!this.aa.error;case 1:return this.vk}return!1};J.prototype.Ye=function(){switch(this.P){case 0:return this.g.ended;case 1:return 1===this.buffer.P?!this.od&&!this.ab&&this.g.loop||this.Rb?!1:this.Ef:this.g.ended;case 2:return this.Ef;case 3:!0}return!0};J.prototype.Hr=function(){return this.od||this.ab?!0:this.Ye()};J.prototype.km=function(a){1===F&&(!this.qd&&a?this.Qa&&(this.Ba||(this.Ba=w.createPanner(),
this.Ba.panningModel="number"===typeof this.Ba.panningModel?ua:["equalpower","HRTF","soundfield"][ua],this.Ba.distanceModel="number"===typeof this.Ba.distanceModel?ka:["linear","inverse","exponential"][ka],this.Ba.refDistance=La,this.Ba.maxDistance=Aa,this.Ba.rolloffFactor=wc),this.Qa.disconnect(),this.Qa.connect(this.Ba),this.Ba.connect(n(this.tag)),this.qd=!0):this.qd&&!a&&this.Qa&&(this.Ba.disconnect(),this.Qa.disconnect(),this.Qa.connect(n(this.tag)),this.qd=!1))};J.prototype.jm=function(a,b,
c,e,d,f){this.qd&&1===F&&(this.Ba.setPosition(a,b,0),this.Ba.setOrientation(Math.cos(S(c)),Math.sin(S(c)),0),this.Ba.coneInnerAngle=e,this.Ba.coneOuterAngle=d,this.Ba.coneOuterGain=f,this.jp=a,this.kp=b,this.fp=c,this.gp=e,this.hp=d,this.ip=f)};J.prototype.Eh=function(a){this.qd&&1===F&&(this.Aa||(this.Aa=new v),this.Aa.Eh(a))};J.prototype.bb=function(a){if(this.qd&&1===F&&this.Aa&&this.Aa.Fi()&&this.Xg()){this.Aa.bb(a);a=this.Aa.G;var b=Ta(a.x,a.y,-a.j.Ia(),N,ja,!0),c=Ta(a.x,a.y,-a.j.Ia(),N,ja,!1);
this.Ba.setPosition(b,c,0);b=0;"undefined"!==typeof this.Aa.G.k&&(b=a.k-a.j.Ia(),this.Ba.setOrientation(Math.cos(b),Math.sin(b),0));b=Ta(this.Aa.Mk(),this.Aa.Nk(),-a.j.Ia(),0,0,!0);c=Ta(this.Aa.Mk(),this.Aa.Nk(),-a.j.Ia(),0,0,!1);this.Ba.setVelocity(b,c,0)}};J.prototype.play=function(a,b,c){var e=this.g;this.pd=a;this.volume=b;c=c||0;switch(this.P){case 0:1!==e.playbackRate&&(e.playbackRate=1);e.volume!==b*E&&(e.volume=b*E);e.loop!==a&&(e.loop=a);e.muted&&(e.muted=!1);if(e.currentTime!==c)try{e.currentTime=
c}catch(d){}if(this.Xc&&Ba&&!C.Qb)Ua.push(this);else try{this.g.play()}catch(f){console&&console.log&&console.log("[C2] WARNING: exception trying to play audio '"+this.buffer.src+"': ",f)}break;case 1:this.muted=!1;this.Sf=1;if(1===this.buffer.P)this.Qa.gain.value=b*E,this.od||(this.g=w.createBufferSource(),this.g.buffer=this.buffer.aa,this.g.connect(this.Qa)),this.g.onended=this.Nl,this.Wh=this.g,this.g.loop=a,this.Ef=!1,0===c?t(this.g):r(this.g,c,this.We());else{1!==e.playbackRate&&(e.playbackRate=
1);e.loop!==a&&(e.loop=a);e.volume=b*E;if(e.currentTime!==c)try{e.currentTime=c}catch(k){}this.Xc&&Ba&&!C.Qb?Ua.push(this):e.play()}break;case 2:(!this.od&&this.ab||0!==c)&&e.seekTo(c);e.play();this.Ef=!1;break;case 3:C.ib?AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=1;this.startTime=(this.Gf?C.pb.W:C.$d.W)-c;this.Rb=this.ab=this.od=!1};J.prototype.stop=function(){switch(this.P){case 0:this.g.paused||this.g.pause();break;case 1:1===this.buffer.P?h(this.g):
this.g.paused||this.g.pause();break;case 2:this.g.stop();break;case 3:C.ib&&AppMobi.context.stopSound(this.src)}this.ab=!0;this.Rb=!1};J.prototype.pause=function(){if(!(this.od||this.ab||this.Ye()||this.Rb)){switch(this.P){case 0:this.g.paused||this.g.pause();break;case 1:1===this.buffer.P?(this.Ib=this.Ik(!0),this.pd&&(this.Ib=this.Ib%this.We()),this.Rb=!0,h(this.g)):this.g.paused||this.g.pause();break;case 2:this.g.pause();break;case 3:C.ib&&AppMobi.context.stopSound(this.src)}this.Rb=!0}};J.prototype.Ku=
function(){if(!(this.od||this.ab||this.Ye())&&this.Rb){switch(this.P){case 0:this.g.play();break;case 1:1===this.buffer.P?(this.g=w.createBufferSource(),this.g.buffer=this.buffer.aa,this.g.connect(this.Qa),this.g.onended=this.Nl,this.Wh=this.g,this.g.loop=this.pd,this.Qa.gain.value=E*this.volume*this.Sf,this.Jj(),this.startTime=(this.Gf?C.pb.W:C.$d.W)-this.Ib/(this.playbackRate||.001),r(this.g,this.Ib,this.We())):this.g.play();break;case 2:this.g.play();break;case 3:C.ib&&AppMobi.context.resumeSound(this.src)}this.Rb=
!1}};J.prototype.seek=function(a){if(!(this.od||this.ab||this.Ye()))switch(this.P){case 0:try{this.g.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.P)this.Rb?this.Ib=a:(this.pause(),this.Ib=a,this.Ku());else try{this.g.currentTime=a}catch(c){}break;case 3:C.ib&&AppMobi.context.seekSound(this.src,a)}};J.prototype.Hu=function(a){1===this.P&&(this.qd?(this.Ba.disconnect(),this.Ba.connect(a)):(this.Qa.disconnect(),this.Qa.connect(a)))};J.prototype.We=function(){var a=0;switch(this.P){case 0:"undefined"!==
typeof this.g.duration&&(a=this.g.duration);break;case 1:a=this.buffer.aa.duration;break;case 2:a=this.g.getDuration();break;case 3:C.ib&&(a=AppMobi.context.getDurationSound(this.src))}return a};J.prototype.Ik=function(a){var b=this.We(),c=0;switch(this.P){case 0:"undefined"!==typeof this.g.currentTime&&(c=this.g.currentTime);break;case 1:if(1===this.buffer.P){if(this.Rb)return this.Ib;c=(this.Gf?C.pb.W:C.$d.W)-this.startTime}else"undefined"!==typeof this.g.currentTime&&(c=this.g.currentTime);break;
case 3:C.ib&&(c=AppMobi.context.getPlaybackTimeSound(this.src))}a&&(c*=this.playbackRate);!this.pd&&c>b&&(c=b);return c};J.prototype.Xg=function(){return!this.Rb&&!this.od&&!this.ab&&!this.Ye()};J.prototype.$u=function(){return!this.od&&!this.ab&&!this.Ye()};J.prototype.lv=function(){var a=this.volume*E;isFinite(a)||(a=0);switch(this.P){case 0:"undefined"!==typeof this.g.volume&&this.g.volume!==a&&(this.g.volume=a);break;case 1:1===this.buffer.P?this.Qa.gain.value=a*this.Sf:"undefined"!==typeof this.g.volume&&
this.g.volume!==a&&(this.g.volume=a)}};J.prototype.oi=function(a){switch(this.P){case 0:this.g.muted!==!!a&&(this.g.muted=!!a);break;case 1:1===this.buffer.P?(this.Sf=a?0:1,this.Qa.gain.value=E*this.volume*this.Sf):this.g.muted!==!!a&&(this.g.muted=!!a)}};J.prototype.Vu=function(){this.Jf=!0;this.oi(this.Jf||this.$g)};J.prototype.Gp=function(a){this.$g=!!a;this.oi(this.Jf||this.$g)};J.prototype.Jj=function(){var a=this.playbackRate;this.Gf&&(a*=C.hg);switch(this.P){case 0:this.g.playbackRate!==a&&
(this.g.playbackRate=a);break;case 1:1===this.buffer.P?this.g.playbackRate.value!==a&&(this.g.playbackRate.value=a):this.g.playbackRate!==a&&(this.g.playbackRate=a)}};J.prototype.Xu=function(a){switch(this.P){case 0:a?this.Xg()?(this.mc=!0,this.g.pause()):this.mc=!1:this.mc&&(this.g.play(),this.mc=!1);break;case 1:a?this.Xg()?(this.mc=!0,1===this.buffer.P?(this.Ib=this.Ik(!0),this.pd&&(this.Ib=this.Ib%this.We()),h(this.g)):this.g.pause()):this.mc=!1:this.mc&&(1===this.buffer.P?(this.g=w.createBufferSource(),
this.g.buffer=this.buffer.aa,this.g.connect(this.Qa),this.g.onended=this.Nl,this.Wh=this.g,this.g.loop=this.pd,this.Qa.gain.value=E*this.volume*this.Sf,this.Jj(),this.startTime=(this.Gf?C.pb.W:C.$d.W)-this.Ib/(this.playbackRate||.001),r(this.g,this.Ib,this.We())):this.g.play(),this.mc=!1);break;case 2:a?this.Xg()?(this.g.pause(),this.mc=!0):this.mc=!1:this.mc&&(this.mc=!1,this.g.play())}};H.ra=function(a){function b(){if(!P){var a=w.createBuffer(1,220,22050);if(a.getChannelData&&c)for(var e=a.getChannelData(0),
d=0,f=e.length;d<f;++d)e[d]=.1;e=w.createBufferSource();e.buffer=a;e.connect(w.destination);t(e)}}this.type=a;C=this.b=a.b;R=this;this.wb=null;this.ih=-600;!(this.b.bh||this.b.Rg&&(this.b.Sg||this.b.Hi))||this.b.Tg||this.b.qa||this.b.Zk||(Ba=!0);w=null;"undefined"!==typeof AudioContext?(F=1,w=new AudioContext):"undefined"!==typeof webkitAudioContext&&(F=1,w=new webkitAudioContext);var c=this.b.Rg;c&&window.setInterval(b,25E3);Ba&&document.addEventListener("touchend",function(){!xc&&w&&(b(),xc=!0);
var a,c,e;if(Ba){if(!I)for(a=0,c=Ua.length;a<c;++a)e=Ua[a],e.ab||e.Rb||e.g.play();Q(Ua)}},!0);1!==F&&(this.b.jc&&"undefined"!==typeof window.Media?F=2:this.b.io&&(F=3));2===F&&(u=location.href,a=u.lastIndexOf("/"),-1<a&&(u=u.substr(0,a+1)),u=u.replace("file://",""));if(this.b.ko&&this.b.$t&&"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.Je(this);else{if(this.b.ib)A=this.b.Rg;else try{A=
!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(e){A=!1}this.b.Ej(this)}};var va=H.ra.prototype;va.ba=function(){this.b.xf=this;y=this.D[0];this.Ud=this.D[1];this.uu=0!==this.D[2];ua=this.D[3];ka=this.D[4];this.ih=-this.D[5];La=this.D[6];Aa=this.D[7];wc=this.D[8];this.wb=new v;var a=this.b.C||this.b.width,b=this.b.B||this.b.height;1===F&&("undefined"!==typeof w.listener.dopplerFactor&&(w.listener.dopplerFactor=0),w.listener.setPosition(a/2,b/2,this.ih),w.listener.setOrientation(0,0,
1,0,-1,0),window.c2OnAudioMicStream=function(a,b){W&&W.disconnect();Ma=b.toLowerCase();W=w.createMediaStreamSource(a);W.connect(n(Ma))});this.b.en(function(a){R.ru(a)});var c=this;this.b.tr(function(a){c.pu(a)})};va.pu=function(a){var b,c,e;b=0;for(c=K.length;b<c;b++)e=K[b],e.Aa&&e.Aa.G===a&&(e.Aa.G=null,e.qd&&e.Xg()&&e.pd&&e.stop());this.wb.G===a&&(this.wb.G=null)};va.xb=function(){var a={silent:I,masterVolume:E,listenerZ:this.ih,listenerUid:this.wb.Fi()?this.wb.G.uid:-1,playing:[],effects:{}},b=
a.playing,c,e,d,f,k,h;c=0;for(e=K.length;c<e;c++)d=K[c],!d.$u()||3===this.Ud||d.Xc&&1===this.Ud||!d.Xc&&2===this.Ud||(f=d.Ik(),d.pd&&(f=f%d.We()),f={tag:d.tag,buffersrc:d.buffer.src,is_music:d.Xc,playbackTime:f,volume:d.volume,looping:d.pd,muted:d.Jf,playbackRate:d.playbackRate,paused:d.Rb,resume_position:d.Ib},d.qd&&(f.pan={},h=f.pan,d.Aa&&d.Aa.Fi()?h.objUid=d.Aa.G.uid:(h.x=d.jp,h.y=d.kp,h.a=d.fp),h.ia=d.gp,h.oa=d.hp,h.og=d.ip),b.push(f));b=a.effects;for(k in U)if(U.hasOwnProperty(k)){d=[];c=0;for(e=
U[k].length;c<e;c++)d.push({type:U[k][c].type,params:U[k][c].$c});b[k]=d}return a};var Va=[];va.Tb=function(h){var g=h.silent;E=h.masterVolume;this.ih=h.listenerZ;this.wb.Eh(null);var l=h.listenerUid;-1!==l&&(this.wb.Ui=l,Va.push(this.wb));var l=h.playing,r,n,q,w,t,u,G,B,A,y,ia;if(3!==this.Ud)for(r=0,n=K.length;r<n;r++)A=K[r],A.Xc&&1===this.Ud||(A.Xc||2!==this.Ud)&&A.stop();for(t in U)if(U.hasOwnProperty(t))for(r=0,n=U[t].length;r<n;r++)U[t][r].remove();$a(U);for(t in h.effects)if(h.effects.hasOwnProperty(t))for(u=
h.effects[t],r=0,n=u.length;r<n;r++)switch(q=u[r].type,y=u[r].params,q){case "filter":O(t,new b(y[0],y[1],y[2],y[3],y[4],y[5]));break;case "delay":O(t,new c(y[0],y[1],y[2]));break;case "convolve":q=y[2];A=this.yi(q,!1);A.aa?q=new d(A.aa,y[0],y[1],q):(q=new d(null,y[0],y[1],q),A.Xo=y[0],A.fi=q);O(t,q);break;case "flanger":O(t,new a(y[0],y[1],y[2],y[3],y[4]));break;case "phaser":O(t,new e(y[0],y[1],y[2],y[3],y[4],y[5]));break;case "gain":O(t,new k(y[0]));break;case "tremolo":O(t,new f(y[0],y[1]));break;
case "ringmod":O(t,new x(y[0],y[1]));break;case "distortion":O(t,new p(y[0],y[1],y[2],y[3],y[4]));break;case "compressor":O(t,new L(y[0],y[1],y[2],y[3],y[4]));break;case "analyser":O(t,new m(y[0],y[1]))}r=0;for(n=l.length;r<n;r++)3===this.Ud||(h=l[r],q=h.buffersrc,w=h.is_music,t=h.tag,u=h.playbackTime,G=h.looping,B=h.volume,ia=(y=h.pan)&&y.hasOwnProperty("objUid")?y.objUid:-1,w&&1===this.Ud)||!w&&2===this.Ud||((A=this.Tn(q,t,w,G,B))?(A.Ib=h.resume_position,A.km(!!y),A.play(G,B,u),A.Jj(),A.lv(),A.oi(A.Jf||
A.$g),h.paused&&A.pause(),h.muted&&A.Vu(),A.oi(A.Jf||A.$g),y&&(-1!==ia?(A.Aa=A.Aa||new v,A.Aa.Ui=ia,Va.push(A.Aa)):A.jm(y.x,y.y,y.a,y.ia,y.oa,y.og))):(A=this.yi(q,w),A.tj=u,A.hj=h.paused,y&&(-1!==ia?A.Xf.push({Zo:ia,Sk:y.ia,Al:y.oa,Dl:y.og,Vp:t}):A.Xf.push({x:y.x,y:y.y,pr:y.a,Sk:y.ia,Al:y.oa,Dl:y.og,Vp:t}))));if(g&&!I){r=0;for(n=K.length;r<n;r++)K[r].Gp(!0);I=!0}else if(!g&&I){r=0;for(n=K.length;r<n;r++)K[r].Gp(!1);I=!1}};va.he=function(){var a,b,c,e;a=0;for(b=Va.length;a<b;a++)c=Va[a],e=this.b.Ci(c.Ui),
c.Eh(e),c.Ui=-1,e&&(N=e.x,ja=e.y);Q(Va)};va.ru=function(a){if(!this.uu){!a&&w&&w.resume&&(w.resume(),P=!1);var b,c;b=0;for(c=K.length;b<c;b++)K[b].Xu(a);a&&w&&w.suspend&&(w.suspend(),P=!0)}};va.bb=function(){var a=this.b.Se,b,c,e;b=0;for(c=K.length;b<c;b++)e=K[b],e.bb(a),0!==y&&e.Jj();var d,f;for(d in U)if(U.hasOwnProperty(d))for(e=U[d],b=0,c=e.length;b<c;b++)f=e[b],f.bb&&f.bb();1===F&&this.wb.Fi()&&(this.wb.bb(a),N=this.wb.G.x,ja=this.wb.G.y,w.listener.setPosition(this.wb.G.x,this.wb.G.y,this.ih),
w.listener.setVelocity(this.wb.Mk(),this.wb.Nk(),0))};var Wa=[];va.Wu=function(a){var b,c,e,d,f,k=0;b=0;for(c=a.length;b<c;++b)if(e=a[b],d=e[0],e=2*e[1],(f=4<d.length&&".ogg"===d.substr(d.length-4))&&A||!f&&!A)Wa.push({filename:d,size:e,G:null}),k+=e;return k};va.cv=function(){var a,b,c,e;a=0;for(b=Wa.length;a<b;++a)c=Wa[a],e=this.b.xk+c.filename,c.G=this.yi(e,!1)};va.tt=function(){var a=0,b,c,e;b=0;for(c=Wa.length;b<c;++b)e=Wa[b],e.G.Xt()||e.G.Pt()||this.b.qa||this.b.Hi?a+=e.size:e.G.jo()&&(a+=Math.floor(e.size/
2));return a};va.yi=function(a,b){var c,e,d,f=null;c=0;for(e=ia.length;c<e;c++)if(d=ia[c],d.src===a){f=d;break}f||(f=new B(a,b),ia.push(f));return f};va.Tn=function(a,b,c,e,d){var f,k,h;f=0;for(k=K.length;f<k;f++)if(h=K[f],h.src===a&&(h.Hr()||c))return h.tag=b,h;a=this.yi(a,c);if(!a.aa)return"<preload>"!==b&&(a.ij=b,a.tl=e,a.Cm=d),null;h=new J(a,b);K.push(h);return h};var Ea=[];T.prototype.ng=function(a){return nb(M,a)};H.d=new T;D.prototype.Play=function(a,b,c,e){!I&&(c=Math.pow(10,c/20),isFinite(c)||
(c=0),0>c&&(c=0),1<c&&(c=1),G=this.Tn(this.b.xk+a[0]+(A?".ogg":".m4a"),e,a[1],0!==b,c))&&(G.km(!1),G.play(0!==b,c))};D.prototype.Zm=function(a){V(a);var b;a=0;for(b=Ea.length;a<b;a++)Ea[a].stop()};H.fa=new D;H.gb=new function(){}})();function rc(g){this.b=g}
(function(){function g(){}function n(){}function l(h){console&&console.warn&&console.warn("Fullscreen request failed: ",h);r.setSize(window.innerWidth,window.innerHeight)}var q=rc.prototype;q.Fa=function(h){this.wa=h;this.b=h.b};q.Fa.prototype.ba=function(){};q.ra=function(h){this.type=h;this.b=h.b};q.ra.prototype.ba=function(){var h=this;window.addEventListener("resize",function(){h.b.trigger(rc.prototype.d.Zq,h)});"undefined"!==typeof navigator.onLine&&(window.addEventListener("online",function(){h.b.trigger(rc.prototype.d.Wq,
h)}),window.addEventListener("offline",function(){h.b.trigger(rc.prototype.d.Vq,h)}));"undefined"!==typeof window.applicationCache&&(window.applicationCache.addEventListener("updateready",function(){h.b.Of=1;h.b.trigger(rc.prototype.d.Xm,h)}),window.applicationCache.addEventListener("progress",function(b){h.b.Of=b.loaded/b.total}));this.b.ib||(document.addEventListener("appMobi.device.update.available",function(){h.b.trigger(rc.prototype.d.Xm,h)}),document.addEventListener("backbutton",function(){h.b.trigger(rc.prototype.d.Oj,
h)}),document.addEventListener("menubutton",function(){h.b.trigger(rc.prototype.d.Qm,h)}),document.addEventListener("searchbutton",function(){h.b.trigger(rc.prototype.d.$q,h)}),document.addEventListener("tizenhwkey",function(b){var c;switch(b.keyName){case "back":c=h.b.trigger(rc.prototype.d.Oj,h);!c&&window.tizen&&window.tizen.application.getCurrentApplication().exit();break;case "menu":(c=h.b.trigger(rc.prototype.d.Qm,h))||b.preventDefault()}}));this.b.dl&&WinJS.Application&&(WinJS.Application.onbackclick=
function(){return!!h.b.trigger(rc.prototype.d.Oj,h)});this.b.en(function(b){b?h.b.trigger(rc.prototype.d.Xq,h):h.b.trigger(rc.prototype.d.Yq,h)})};g.prototype.Wq=function(){return!0};g.prototype.Vq=function(){return!0};g.prototype.Xm=function(){return!0};g.prototype.Yq=function(){return!0};g.prototype.Xq=function(){return!0};g.prototype.Zq=function(){return!0};g.prototype.Oj=function(){return!0};g.prototype.Qm=function(){return!0};g.prototype.$q=function(){return!0};q.d=new g;var t=!0,r=null;n.prototype.cr=
function(h){this.b.qa?ea("[Construct 2] Requesting fullscreen is not supported on this platform - the request has been ignored"):(2<=h&&(h+=1),6===h&&(h=2),this.b.Zt?this.b.Ut?debuggerFullscreen(!0):!this.b.df&&window.nwgui&&(window.nwgui.Window.get().enterFullscreen(),this.b.df=!0,this.b.Jd=2<=h?h:0):document.mozFullScreen||document.webkitIsFullScreen||document.msFullscreenElement||document.fullScreen||document.fullScreenElement||(this.b.Jd=2<=h?h:0,h=this.b.bk||this.b.canvas,t&&(t=!1,r=this.b,h.addEventListener("mozfullscreenerror",
l),h.addEventListener("webkitfullscreenerror",l),h.addEventListener("MSFullscreenError",l),h.addEventListener("fullscreenerror",l)),h.requestFullscreen?h.requestFullscreen():h.mozRequestFullScreen?h.mozRequestFullScreen():h.msRequestFullscreen?h.msRequestFullscreen():h.webkitRequestFullScreen&&("undefined"!==typeof Element&&"undefined"!==typeof Element.ALLOW_KEYBOARD_INPUT?h.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT):h.webkitRequestFullScreen())))};q.fa=new n;q.gb=new function(){}})();
function Y(g){this.b=g}
(function(){function g(){if(0===this.lk.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.eg?b.drawImage(this.Lb,this.Uf,this.Vf,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.Lb,0,0,this.width,this.height);this.lk=a.toDataURL("image/png")}return this.lk}function n(){}function l(){}function q(){}var t=Y.prototype;t.Fa=function(a){this.wa=a;this.b=a.b};var r=t.Fa.prototype;r.ba=function(){if(!this.L){var a,b,c,
d,h,l,r,m,n;this.Nc=[];this.Og=!1;a=0;for(b=this.Ab.length;a<b;a++){h=this.Ab[a];r={};r.name=h[0];r.speed=h[1];r.loop=h[2];r.am=h[3];r.cm=h[4];r.np=h[5];r.R=h[6];r.frames=[];c=0;for(d=h[7].length;c<d;c++)l=h[7][c],m={},m.Tp=l[0],m.Up=l[1],m.Uf=l[2],m.Vf=l[3],m.width=l[4],m.height=l[5],m.duration=l[6],m.Ob=l[7],m.Pb=l[8],m.Tk=l[9],m.jj=l[10],m.op=l[11],m.eg=0!==m.width,m.lk="",m.uw=g,n={left:0,top:0,right:1,bottom:1},m.mm=n,m.Ea=null,(n=this.b.Ys(l[0]))?m.Lb=n:(m.Lb=new Image,m.Lb.Lr=l[0],m.Lb.An=
l[1],m.Lb.Dr=null,this.b.nq(m.Lb,l[0])),r.frames.push(m),this.Nc.push(m);this.Ab[a]=r}}};r.iq=function(){var a,b,c;a=0;for(b=this.c.length;a<b;a++)c=this.c[a],c.hi=c.cc.Ea};r.Il=function(){if(!this.L){var a,b,c;a=0;for(b=this.Nc.length;a<b;++a)c=this.Nc[a],c.Lb.Dr=null,c.Ea=null;this.Og=!1;this.iq()}};r.Ml=function(){if(!this.L&&this.c.length){var a,b,c;a=0;for(b=this.Nc.length;a<b;++a)c=this.Nc[a],c.Ea=this.b.m.zo(c.Lb,this.b.V,c.op);this.iq()}};r.fu=function(){if(!this.L&&!this.Og&&this.b.m){var a,
b,c;a=0;for(b=this.Nc.length;a<b;++a)c=this.Nc[a],c.Ea=this.b.m.zo(c.Lb,this.b.V,c.op);this.Og=!0}};r.dq=function(){if(!this.L&&!this.c.length&&this.Og){var a,b,c;a=0;for(b=this.Nc.length;a<b;++a)c=this.Nc[a],this.b.m.deleteTexture(c.Ea),c.Ea=null;this.Og=!1}};var h=[];r.rp=function(a){var b,c,d;Q(h);b=0;for(c=this.Nc.length;b<c;++b)d=this.Nc[b].Lb,-1===h.indexOf(d)&&(a.drawImage(d,0,0),h.push(d))};t.ra=function(a){this.type=a;this.b=a.b;a=this.type.Ab[0].frames[0].jj;this.cd?this.eb.Gh(a):this.eb=
new hb(a)};var b=t.ra.prototype;b.ba=function(){this.visible=0===this.D[0];this.Gi=this.Zg=!1;this.ug=0!==this.D[3];1===this.type.Ab.length&&1===this.type.Ab[0].frames.length||0===this.type.Ab[0].speed||(this.b.Ej(this),this.Zg=!0);this.pa=this.Sn(this.D[1])||this.type.Ab[0];this.u=this.D[2];0>this.u&&(this.u=0);this.u>=this.pa.frames.length&&(this.u=this.pa.frames.length-1);var a=this.pa.frames[this.u];this.eb.Gh(a.jj);this.Ob=a.Ob;this.Pb=a.Pb;this.Ag=this.pa.speed;this.oe=this.pa.cm;this.cd?this.Oc.reset():
this.Oc=new fb;this.nd=this.Oc.W;this.ie=!0;this.zd=0;this.Ke=!0;this.fk=this.gn="";this.Ir=0;this.tg=-1;this.type.fu();var b,c,d,h,g,l,m,a=0;for(b=this.type.Ab.length;a<b;a++)for(h=this.type.Ab[a],c=0,d=h.frames.length;c<d;c++)g=h.frames[c],0===g.width&&(g.width=g.Lb.width,g.height=g.Lb.height),g.eg&&(m=g.Lb,l=g.mm,l.left=g.Uf/m.width,l.top=g.Vf/m.height,l.right=(g.Uf+g.width)/m.width,l.bottom=(g.Vf+g.height)/m.height,0===g.Uf&&0===g.Vf&&g.width===m.width&&g.height===m.height&&(g.eg=!1));this.cc=
this.pa.frames[this.u];this.hi=this.cc.Ea};b.xb=function(){var a={a:this.pa.R,f:this.u,cas:this.Ag,fs:this.nd,ar:this.zd,at:this.Oc.W,rt:this.oe};this.ie||(a.ap=this.ie);this.Ke||(a.af=this.Ke);return a};b.Tb=function(a){var b=this.dt(a.a);b&&(this.pa=b);this.u=a.f;0>this.u&&(this.u=0);this.u>=this.pa.frames.length&&(this.u=this.pa.frames.length-1);this.Ag=a.cas;this.nd=a.fs;this.zd=a.ar;this.Oc.reset();this.Oc.W=a.at;this.ie=a.hasOwnProperty("ap")?a.ap:!0;this.Ke=a.hasOwnProperty("af")?a.af:!0;a.hasOwnProperty("rt")?
this.oe=a.rt:this.oe=this.pa.cm;this.cc=this.pa.frames[this.u];this.hi=this.cc.Ea;this.eb.Gh(this.cc.jj);this.Ob=this.cc.Ob;this.Pb=this.cc.Pb};b.Tj=function(a){this.u=a?0:this.pa.frames.length-1;this.ie=!1;this.gn=this.pa.name;this.Gi=!0;this.b.trigger(Y.prototype.d.Lq,this);this.b.trigger(Y.prototype.d.Kq,this);this.Gi=!1;this.zd=0};b.Vj=function(){return this.Oc.W};b.bb=function(){this.Oc.add(this.b.Hg(this));this.fk.length&&this.Ur();0<=this.tg&&this.ok();var a=this.Oc.W,b=this.pa,c=b.frames[this.u],
d=c.duration/this.Ag;this.ie&&a>=this.nd+d&&(this.Ke?this.u++:this.u--,this.nd+=d,this.u>=b.frames.length&&(b.np?(this.Ke=!1,this.u=b.frames.length-2):b.loop?this.u=this.oe:(this.zd++,this.zd>=b.am?this.Tj(!1):this.u=this.oe)),0>this.u&&(b.np?(this.u=1,this.Ke=!0,b.loop||(this.zd++,this.zd>=b.am&&this.Tj(!0))):b.loop?this.u=this.oe:(this.zd++,this.zd>=b.am?this.Tj(!0):this.u=this.oe)),0>this.u?this.u=0:this.u>=b.frames.length&&(this.u=b.frames.length-1),a>this.nd+b.frames[this.u].duration/this.Ag&&
(this.nd=a),a=b.frames[this.u],this.vf(c,a),this.b.ha=!0)};b.Sn=function(a){var b,c,d;b=0;for(c=this.type.Ab.length;b<c;b++)if(d=this.type.Ab[b],nb(d.name,a))return d;return null};b.dt=function(a){var b,c,d;b=0;for(c=this.type.Ab.length;b<c;b++)if(d=this.type.Ab[b],d.R===a)return d;return null};b.Ur=function(){var a=this.pa.frames[this.u],b=this.Sn(this.fk);this.fk="";!b||nb(b.name,this.pa.name)&&this.ie||(this.pa=b,this.Ag=b.speed,this.oe=b.cm,0>this.u&&(this.u=0),this.u>=this.pa.frames.length&&
(this.u=this.pa.frames.length-1),1===this.Ir&&(this.u=0),this.ie=!0,this.nd=this.Oc.W,this.Ke=!0,this.vf(a,this.pa.frames[this.u]),this.b.ha=!0)};b.ok=function(){var a=this.pa.frames[this.u],b=this.u;this.u=qa(this.tg);0>this.u&&(this.u=0);this.u>=this.pa.frames.length&&(this.u=this.pa.frames.length-1);b!==this.u&&(this.vf(a,this.pa.frames[this.u]),this.nd=this.Oc.W,this.b.ha=!0);this.tg=-1};b.vf=function(a,b){var c=a.width,d=a.height,h=b.width,g=b.height;c!=h&&(this.width*=h/c);d!=g&&(this.height*=
g/d);this.Ob=b.Ob;this.Pb=b.Pb;this.eb.Gh(b.jj);this.ka();this.cc=b;this.hi=b.Ea;c=0;for(d=this.I.length;c<d;c++)h=this.I[c],h.dp&&h.dp(a,b);this.b.trigger(Y.prototype.d.vf,this)};b.qe=function(a){a.globalAlpha=this.opacity;var b=this.cc,c=b.eg,d=b.Lb,h=this.x,g=this.y,l=this.width,m=this.height;if(0===this.k&&0<=l&&0<=m)h-=this.Ob*l,g-=this.Pb*m,this.b.nf&&(h=Math.round(h),g=Math.round(g)),c?a.drawImage(d,b.Uf,b.Vf,b.width,b.height,h,g,l,m):a.drawImage(d,h,g,l,m);else{this.b.nf&&(h=Math.round(h),
g=Math.round(g));a.save();var r=0<l?1:-1,n=0<m?1:-1;a.translate(h,g);1===r&&1===n||a.scale(r,n);a.rotate(this.k*r*n);h=0-this.Ob*na(l);g=0-this.Pb*na(m);c?a.drawImage(d,b.Uf,b.Vf,b.width,b.height,h,g,na(l),na(m)):a.drawImage(d,h,g,na(l),na(m));a.restore()}};b.Af=function(a){this.xc(a)};b.xc=function(a){a.lb(this.hi);a.ag(this.opacity);var b=this.cc,c=this.yf;if(this.b.nf){var d=Math.round(this.x)-this.x,h=Math.round(this.y)-this.y;b.eg?a.pf(c.Xb+d,c.Yb+h,c.Hc+d,c.Ic+h,c.rc+d,c.sc+h,c.pc+d,c.qc+h,
b.mm):a.of(c.Xb+d,c.Yb+h,c.Hc+d,c.Ic+h,c.rc+d,c.sc+h,c.pc+d,c.qc+h)}else b.eg?a.pf(c.Xb,c.Yb,c.Hc,c.Ic,c.rc,c.sc,c.pc,c.qc,b.mm):a.of(c.Xb,c.Yb,c.Hc,c.Ic,c.rc,c.sc,c.pc,c.qc)};b.mt=function(a){var b=this.cc,c,d;c=0;for(d=b.Tk.length;c<d;c++)if(nb(a,b.Tk[c][0]))return c;return-1};b.Fk=function(a,b){var c=this.cc,d=c.Tk,h;z(a)?h=this.mt(a):h=a-1;h=qa(h);if(0>h||h>=d.length)return b?this.x:this.y;var g=(d[h][1]-c.Ob)*this.width,d=d[h][2],d=(d-c.Pb)*this.height,c=Math.cos(this.k);h=Math.sin(this.k);var l=
g*c-d*h,d=d*c+g*h,g=l+this.x,d=d+this.y;return b?g:d};var c=new ca,d=!1;new ta(0,0,0,0);r.finish=function(a){if(d){if(a){var b=this.b.ub().Bb.Zc;a=null.Z();var h=c.Jc(),f,g;if(a.da){a.da=!1;Q(a.c);f=0;for(g=h.length;f<g;++f)a.c[f]=h[f];if(b)for(Q(a.S),f=0,g=null.c.length;f<g;++f)h=null.c[f],c.contains(h)||a.S.push(h)}else if(b)for(b=a.c.length,f=0,g=h.length;f<g;++f)a.c[b+f]=h[f],Ga(a.S,h[f]);else Ca(a.c,h);null.je()}c.clear();d=!1}};n.prototype.vq=function(a,b){return dc(this.u,a,b)};n.prototype.Kq=
function(a){return nb(this.gn,a)};n.prototype.Lq=function(){return!0};n.prototype.vf=function(){return!0};t.d=new n;l.prototype.lr=function(a){this.ie=!0;this.nd=this.Oc.W;1===a&&0!==this.u&&(this.tg=0,this.Gi||this.ok());this.Zg||(this.b.Ej(this),this.Zg=!0)};l.prototype.er=function(a){this.tg=a;this.Zg||(this.b.Ej(this),this.Zg=!0);this.Gi||this.ok()};l.prototype.gr=function(a){var b=this.cc,c=b.width*a*(0>this.width?-1:1);a=b.height*a*(0>this.height?-1:1);if(this.width!==c||this.height!==a)this.width=
c,this.height=a,this.ka()};t.fa=new l;q.prototype.sq=function(a){a.ea(this.pa.frames.length)};t.gb=new q})();function Z(g){this.b=g}
(function(){function g(b){c=b.x;d=b.y;a=b.z}function n(a,b,c,d){var f;f=e.length?e.pop():new l;f.init(a,b,c,d);return f}function l(){this.Jh=this.id=this.y=this.x=this.zj=this.yj=this.kl=this.time=this.pm=0;this.Ph=this.Gj=!1}function q(){}function t(){}var r=Z.prototype;r.Fa=function(a){this.wa=a;this.b=a.b};r.Fa.prototype.ba=function(){};r.ra=function(a){this.type=a;this.b=a.b;this.touches=[];this.xl=!1};var h=r.ra.prototype,b={left:0,top:0};h.Gg=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 c=0,d=0,a=0,e=[];l.prototype.init=function(a,b,c,d){var e=ab();this.pm=this.kl=this.time=e;this.yj=a;this.zj=b;this.x=a;this.y=b;this.pressure=this.height=this.width=0;this.id=c;this.Jh=d;this.Ph=this.Gj=!1};l.prototype.update=function(a,b,c,d,e,f){this.kl=this.time;this.time=a;this.x=b;this.y=c;this.width=d;this.height=e;this.pressure=f;!this.Ph&&15<=Xa(this.yj,this.zj,this.x,this.y)&&(this.Ph=!0)};l.prototype.iu=function(a,b){!this.Gj&&500<=
ab()-this.pm&&!this.Ph&&15>Xa(this.yj,this.zj,this.x,this.y)&&(this.Gj=!0,a.yd=this.Jh,a.ig=this.id,a.Df=b,a.b.trigger(Z.prototype.d.Sq,a),a.Cd=this.x,a.Dd=this.y,a.b.trigger(Z.prototype.d.Nm,a),a.Df=0)};var k=-1E3,f=-1E3,x=-1E4;l.prototype.So=function(a,b){if(!this.Gj){var c=ab();333>=c-this.pm&&!this.Ph&&15>Xa(this.yj,this.zj,this.x,this.y)&&(a.yd=this.Jh,a.ig=this.id,a.Df=b,666>=c-x&&25>Xa(k,f,this.x,this.y)?(a.b.trigger(Z.prototype.d.Pq,a),a.Cd=this.x,a.Dd=this.y,a.b.trigger(Z.prototype.d.Qq,
a),f=k=-1E3,x=-1E4):(a.b.trigger(Z.prototype.d.br,a),a.Cd=this.x,a.Dd=this.y,a.b.trigger(Z.prototype.d.Tm,a),k=this.x,f=this.y,x=c),a.Df=0)}};h.ba=function(){this.au=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.Df=this.ig=this.yd=this.Dd=this.Cd=this.bn=this.an=this.$m=this.sr=this.rr=this.qr=this.gj=this.fj=this.ej=0;this.qv=0!==this.D[0];var a=0<this.b.tb?document:this.b.canvas,b=document;this.b.ib?b=a=window.Canvas:this.b.ic&&(b=a=window);var c=this;window.navigator.pointerEnabled?
(a.addEventListener("pointerdown",function(a){c.wh(a)},!1),a.addEventListener("pointermove",function(a){c.vh(a)},!1),b.addEventListener("pointerup",function(a){c.Rd(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.Rd(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.wh(a)},!1),a.addEventListener("MSPointerMove",function(a){c.vh(a)},!1),b.addEventListener("MSPointerUp",function(a){c.Rd(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.Rd(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.dj(a)},!1),a.addEventListener("touchmove",function(a){c.cj(a)},!1),b.addEventListener("touchend",function(a){c.Wf(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.Wf(a,!0)},!1));if(this.au){var d=function(a){a=a.reading;c.$m=a.accelerationX;c.an=a.accelerationY;c.bn=a.accelerationZ},e=function(a){a=a.reading;c.ej=a.yawDegrees;c.fj=a.pitchDegrees;c.gj=a.rollDegrees},f=Windows.Devices.Sensors.Accelerometer.getDefault();f&&(f.reportInterval=Math.max(f.minimumReportInterval,16),
f.addEventListener("readingchanged",d));var h=Windows.Devices.Sensors.Inclinometer.getDefault();h&&(h.reportInterval=Math.max(h.minimumReportInterval,16),h.addEventListener("readingchanged",e));document.addEventListener("visibilitychange",function(){document.hidden||document.msHidden?(f&&f.removeEventListener("readingchanged",d),h&&h.removeEventListener("readingchanged",e)):(f&&f.addEventListener("readingchanged",d),h&&h.addEventListener("readingchanged",e))},!1)}else window.addEventListener("deviceorientation",
function(a){c.ej=a.alpha||0;c.fj=a.beta||0;c.gj=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.qr=a.accelerationIncludingGravity.x||0,c.rr=a.accelerationIncludingGravity.y||0,c.sr=a.accelerationIncludingGravity.z||0);a.acceleration&&(c.$m=a.acceleration.x||0,c.an=a.acceleration.y||0,c.bn=a.acceleration.z||0)},!1);this.qv&&!this.b.qa&&(jQuery(document).mousemove(function(a){c.Kl(a)}),jQuery(document).mousedown(function(a){c.Jl(a)}),jQuery(document).mouseup(function(a){c.Ll(a)}));
!this.b.bh&&this.b.jc&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(g,null,{frequency:40});this.b.Wp(this)};h.vh=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var c=this.Gg(a.pointerId),d=ab();if(0<=c){var e=this.b.qa?b:jQuery(this.b.canvas).offset(),c=this.touches[c];2>d-c.time||c.update(d,a.pageX-e.left,a.pageY-e.top,a.width||0,a.height||0,a.pressure||0)}}};h.wh=
function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&ob(a)&&a.preventDefault();var c=this.b.qa?b:jQuery(this.b.canvas).offset(),d=a.pageX-c.left,c=a.pageY-c.top;ab();this.yd=this.touches.length;this.ig=a.pointerId;this.touches.push(n(d,c,a.pointerId,this.yd));this.b.Qb=!0;this.b.trigger(Z.prototype.d.Sm,this);this.b.trigger(Z.prototype.d.Wm,this);this.Cd=d;this.Dd=c;this.b.trigger(Z.prototype.d.Vm,this);this.b.Qb=!1}};h.Rd=function(a,b){if(a.pointerType!==
a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&ob(a)&&a.preventDefault();var c=this.Gg(a.pointerId);this.yd=0<=c?this.touches[c].Jh:-1;this.ig=0<=c?this.touches[c].id:-1;this.b.Qb=!0;this.b.trigger(Z.prototype.d.Rm,this);this.b.trigger(Z.prototype.d.Um,this);0<=c&&(b||this.touches[c].So(this,c),100>e.length&&e.push(this.touches[c]),this.touches.splice(c,1));this.b.Qb=!1}};h.cj=function(a){a.preventDefault&&a.preventDefault();var c=ab(),d,e,f,h;d=0;for(e=a.changedTouches.length;d<
e;d++)if(f=a.changedTouches[d],h=this.Gg(f.identifier),0<=h){var k=this.b.qa?b:jQuery(this.b.canvas).offset();h=this.touches[h];2>c-h.time||h.update(c,f.pageX-k.left,f.pageY-k.top,2*(f.Ew||f.Kw||f.xw||f.Aw||0),2*(f.Fw||f.Lw||f.yw||f.Bw||0),f.sw||f.Jw||f.ww||f.zw||0)}};h.dj=function(a){a.preventDefault&&ob(a)&&a.preventDefault();var c=this.b.qa?b:jQuery(this.b.canvas).offset();ab();this.b.Qb=!0;var d,e,f,h;d=0;for(e=a.changedTouches.length;d<e;d++)if(f=a.changedTouches[d],h=this.Gg(f.identifier),-1===
h){h=f.pageX-c.left;var k=f.pageY-c.top;this.yd=this.touches.length;this.ig=f.identifier;this.touches.push(n(h,k,f.identifier,this.yd));this.b.trigger(Z.prototype.d.Sm,this);this.b.trigger(Z.prototype.d.Wm,this);this.Cd=h;this.Dd=k;this.b.trigger(Z.prototype.d.Vm,this)}this.b.Qb=!1};h.Wf=function(a,b){a.preventDefault&&ob(a)&&a.preventDefault();this.b.Qb=!0;var c,d,f;c=0;for(d=a.changedTouches.length;c<d;c++)f=a.changedTouches[c],f=this.Gg(f.identifier),0<=f&&(this.yd=this.touches[f].Jh,this.ig=this.touches[f].id,
this.b.trigger(Z.prototype.d.Rm,this),this.b.trigger(Z.prototype.d.Um,this),b||this.touches[f].So(this,f),100>e.length&&e.push(this.touches[f]),this.touches.splice(f,1));this.b.Qb=!1};h.Vj=function(){return this.b.jc&&0===this.ej&&0!==a?90*a:this.ej};h.Qr=function(){return this.b.jc&&0===this.fj&&0!==d?90*d:this.fj};h.qs=function(){return this.b.jc&&0===this.gj&&0!==c?90*c:this.gj};h.Jl=function(a){this.dj({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.xl=!0};h.Kl=function(a){this.xl&&
this.cj({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};h.Ll=function(a){a.preventDefault&&this.b.Zn&&!this.b.Ff&&a.preventDefault();this.b.Zn=!0;this.Wf({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.xl=!1};h.Dj=function(){var a,b,c,d=ab();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=d-50&&(c.kl=d),c.iu(this,a)};q.prototype.Wm=function(){return!0};q.prototype.Um=function(){return!0};q.prototype.Vm=function(a){return a?this.b.Bj(a,this.Cd,this.Dd):
!1};q.prototype.Sm=function(a){a=Math.floor(a);return a===this.yd};q.prototype.Rm=function(a){a=Math.floor(a);return a===this.yd};q.prototype.Sq=function(){return!0};q.prototype.br=function(){return!0};q.prototype.Pq=function(){return!0};q.prototype.Nm=function(a){return a?this.b.Bj(a,this.Cd,this.Dd):!1};q.prototype.Tm=function(a){return a?this.b.Bj(a,this.Cd,this.Dd):!1};q.prototype.Qq=function(a){return a?this.b.Bj(a,this.Cd,this.Dd):!1};r.d=new q;t.prototype.nr=function(a,b){var c=this.Df;if(0>
c||c>=this.touches.length)a.A(0);else{var d,e,f,h,k;ga(b)?(d=this.b.Ig(0),e=d.scale,f=d.de,h=d.rd,k=d.k,d.scale=1,d.de=1,d.rd=1,d.k=0,a.A(d.Na(this.touches[c].x,this.touches[c].y,!0)),d.scale=e,d.de=f,d.rd=h,d.k=k):(d=ha(b)?this.b.Ig(b):this.b.Hk(b))?a.A(d.Na(this.touches[c].x,this.touches[c].y,!0)):a.A(0)}};t.prototype.or=function(a,b){var c=this.Df;if(0>c||c>=this.touches.length)a.A(0);else{var d,e,f,h,k;ga(b)?(d=this.b.Ig(0),e=d.scale,f=d.de,h=d.sd,k=d.k,d.scale=1,d.de=1,d.sd=1,d.k=0,a.A(d.Na(this.touches[c].x,
this.touches[c].y,!1)),d.scale=e,d.de=f,d.sd=h,d.k=k):(d=ha(b)?this.b.Ig(b):this.b.Hk(b))?a.A(d.Na(this.touches[c].x,this.touches[c].y,!1)):a.A(0)}};r.gb=new t})();function sc(g){this.b=g}
(function(){function g(a){a%=e.length;0>a&&(a+=e.length);return a}function n(){var a,b,c,d;a=0;for(b=e.length;a<b;++a)c=e[a],(d=e[g(a-1)])&&!c&&(f=a),!d&&c&&(p=a)}var l=sc.prototype;l.Fa=function(a){this.wa=a;this.b=a.b};var q=l.Fa.prototype,t=!1,r=null,h=null;q.ba=function(){this.L||t||(t=!0,r=new Image,r.An=15E3,this.b.nq(r,"penumbra.png"))};q.Il=function(){if(!this.L){this.Vb=this.Ea=null;var a,b,c;a=0;for(b=this.c.length;a<b;++a)c=this.c[a],c.Ea=null,c.Vb=null}};q.Ml=function(){if(!this.L){var a,
b;a=0;for(b=this.c.length;a<b;++a)this.c[a].Cn()}};l.ra=function(a){this.type=a;this.b=a.b};q=l.ra.prototype;q.ba=function(){if(!h){var a=r.width,b=r.height,c=document.createElement("canvas");c.width=a;c.height=b;c=c.getContext("2d");c.clearRect(0,0,a,b);c.drawImage(r,0,0,a,b);h=c.getImageData(0,0,a,b).data}this.xe=this.x;this.ye=this.y;this.yo=this.D[0];this.lc=1E3;this.Nf=this.D[1];this.wn=this.D[2];this.tag=this.D[3];this.ml=this.nl=this.ol=0;this.ro=this.x;this.so=this.y;this.Vb=this.Ea=null;
this.b.m?this.Cn():this.Nf=0;this.b.Wp(this)};q.xn=function(a){return 1===this.wn?nb(this.tag,a):2===this.wn?!nb(this.tag,a):!0};q.Dj=function(){if(this.ro!==this.x||this.so!==this.y)this.xe=this.x,this.ye=this.y;var a=this.j,b=(a.ma+a.ua)/2,c=(a.na+a.ta)/2,d=a.ua-a.ma,e=a.ta-a.na;if(b!==this.x||c!==this.y||d!==this.width||e!==this.height)this.x=b,this.y=c,this.width=d,this.height=e,this.ka();this.ro=this.x;this.so=this.y;this.lc=1.5*Xa(a.ma,a.na,a.ua,a.ta)};q.uh=function(){this.b.m&&(this.Ea&&(this.b.m.deleteTexture(this.Ea),
this.Ea=null),this.Vb&&(this.b.m.deleteTexture(this.Vb),this.Vb=null))};q.xb=function(){return{}};q.Tb=function(){};var b=[],c=[];q.Yn=function(){this.b.lm&&(this.b.yt(this.j,this.b.lm.zl,this.Ma,b),bb(b))};var d=[],a=0,e=[],k=[],f=-1,x=-1,p=-1,L=-1,m=0,v=0,B=[],J=0,V=0,O=0,T=0,D=0,H=0,C=0,R=0,M=new hb([]);q.qe=function(a){this.Yn();a.save();a.fillStyle="rgba("+this.ol+","+this.nl+","+this.ml+","+this.opacity+")";var d,f,h,k,g,l,m,r,n,p;d=0;for(f=b.length;d<f;++d)if(h=b[d],h.M.shadowcasterEnabled&&
this.xn(h.M.shadowcasterTag))if(h.Da(),m=h.M.shadowcasterHeight,h.qm){h.ht(this.Ma,c);r=h.x;n=h.y;h=0;for(k=c.length;h<k;++h){g=c[h];p=g.Gu;g.Tl?(g=g.Tl,l=p.left,p=p.top):(M.dg(p,0,0),g=M,p=l=0);this.ci(g,r+l,n+p,m,!1);a.beginPath();a.moveTo(B[0],B[1]);g=2;for(l=B.length;g<l;g+=2)a.lineTo(B[g],B[g+1]);a.closePath();a.fill();Q(e);Q(B)}Q(c)}else{h.eb&&!h.eb.gl()?(h.eb.Zj(h.width,h.height,h.k),g=h.eb):(M.Ip(h.yf,h.x,h.y,h.width,h.height),g=M);this.ci(g,h.x,h.y,m,Ya(0>h.width,0>h.height));a.beginPath();
a.moveTo(B[0],B[1]);h=2;for(k=B.length;h<k;h+=2)a.lineTo(B[h],B[h+1]);a.closePath();a.fill();Q(e);Q(B)}a.restore();Q(b)};q.qt=function(b,c,e,f){a=b.Yf;Q(d);var h,k=b.Td;v=m=0;var g;for(g=0;g<a;++g)h=2*g,b=k[h]+c,h=k[h+1]+e,f?(d.unshift(h),d.unshift(b)):(d.push(b),d.push(h)),m+=b,v+=h;m/=a;v/=a};q.ci=function(b,c,h,g,l){this.qt(b,c,h,l);var m;Q(e);Q(k);Q(B);L=x=p=f=-1;h=this.xe;l=this.ye;if(0<this.Nf)this.$j(-this.Nf),n(),Ca(k,e),x=f,L=p,Q(e),p=f=-1,this.$j(this.Nf),n(),-1!==f&&-1!==p&&-1!==x&&-1!==
L&&this.Fr();else for(this.$j(0),n(),b=0;b<a;++b)m=2*b,c=d[m],m=d[m+1],this.Er(b,h,l,c,m,g)};q.Er=function(a,b,c,d,h,k){var l;l=e[g(a-1)];var m=a===f,r=a===p;e[a]||l?(a=Pa(b,c,d,h),l=Xa(b,c,d,h),k=this.Gr(b,c,d,h,k),b+=Math.cos(a)*(l+k),c+=Math.sin(a)*(l+k)):(b=d,c=h);r&&(B.push(d),B.push(h));B.push(b);B.push(c);m&&(B.push(d),B.push(h))};q.$j=function(b){var c=this.xe,f=this.ye,h=c,k=f,g,l,r,n,p;for(g=0;g<a;++g)l=2*g,r=g+1,r=r===a?0:2*r,n=d[l],l=d[l+1],p=d[r],r=d[r+1],0!==b&&(k=Pa(c,f,m,v)-Math.PI/
2,h=c+Math.cos(k)*b,k=f+Math.sin(k)*b),e.push(Qa(Pa(n,l,h,k),Pa(n,l,p,r)-Math.PI/2)>=Math.PI/2)};var u=0,F=0;q.Fr=function(){for(var b=x,c,e,f;b=b%a,c=2*b,e=d[c],f=d[c+1],B.push(e),B.push(f),b!==p;++b);var h=this.Nf,k=Pa(this.xe,this.ye,m,v),b=this.xe+Math.cos(k-Math.PI/2)*h,g=this.ye+Math.sin(k-Math.PI/2)*h,k=Pa(b,g,e,f),l=Xa(b,g,e,f),b=b+Math.cos(k)*(l+this.lc),g=g+Math.sin(k)*(l+this.lc);c=2*x;var r=d[c];c=d[c+1];var k=Pa(this.xe,this.ye,m,v),n=this.xe+Math.cos(k+Math.PI/2)*h,q=this.ye+Math.sin(k+
Math.PI/2)*h,k=Pa(n,q,r,c),l=Xa(n,q,r,c),h=n+Math.cos(k)*(l+this.lc),k=q+Math.sin(k)*(l+this.lc);D=e;H=f;J=r;V=c;var t,L,M,l=b-e,n=g-f;t=h-r;L=k-c;M=-t*n+l*L;0===M?e=!1:(q=(-n*(e-r)+l*(f-c))/M,M=-t*n+l*L,0===M?e=!1:(r=(t*(f-c)-L*(e-r))/M,0<=q&&1>=q&&0<=r&&1>=r?(u=e+r*l,F=f+r*n,e=!0):e=!1));e?(B.push(u),B.push(F),C=u,R=F,O=u,T=F):(B.push(b),B.push(g),B.push(h),B.push(k),C=b,R=g,O=h,T=k)};q.Gr=function(a,b,c,d,e){if(e>=this.yo)return this.lc;if(0>=e)return 0;a=Xa(a,b,c,d);a=Math.atan(a/(this.yo-e));
e=e*Math.tan(a);e>=this.lc&&(e=this.lc);0>e&&(e=0);return e};q.xc=function(a){a.ag(this.opacity);this.Yn();var d,h,k,g,l,m,r,n,q,t;d=0;for(h=b.length;d<h;++d)if(k=b[d],k.M.shadowcasterEnabled&&this.xn(k.M.shadowcasterTag))if(k.Da(),l=k.M.shadowcasterHeight,k.qm){k.ht(this.Ma,c);r=k.x;n=k.y;k=0;for(g=c.length;k<g;++k)m=c[k],q=m.Gu,m.Tl?(m=m.Tl,t=q.left,q=q.top):(M.dg(q,0,0),m=M,q=t=0),this.ci(m,r+t,n+q,l,!1),6>B.length||(a.lb(this.Ea),a.zn(B),-1<f&&-1<x&&(a.lb(this.Vb),this.pi(a,!0)),-1<p&&-1<L&&(a.lb(this.Vb),
this.pi(a,!1)),Q(e),Q(B));Q(c)}else k.eb&&!k.eb.gl()?(k.eb.Zj(k.width,k.height,k.k),m=k.eb):(M.Ip(k.yf,k.x,k.y,k.width,k.height),m=M),this.ci(m,k.x,k.y,l,Ya(0>k.width,0>k.height)),6>B.length||(a.lb(this.Ea),a.zn(B),-1<f&&-1<x&&(a.lb(this.Vb),this.pi(a,!0)),-1<p&&-1<L&&(a.lb(this.Vb),this.pi(a,!1)),Q(e),Q(B));Q(b)};q.pi=function(a,b){var c=this.xe,e=this.ye,h,k,g,l,r,n;b?(g=J,l=V,r=O,n=T):(g=D,l=H,r=C,n=R);var q=this.Nf,t=Pa(c,e,m,v),u=Math.PI/2;b&&(u=-u);c+=Math.cos(t+u)*q;e+=Math.sin(t+u)*q;q=!1;
if(b){if(q=f!==x)h=d[2*f],k=d[2*f+1]}else if(q=p!==L)h=d[2*L],k=d[2*L+1];var t=q?Pa(h,k,g,l):Pa(c,e,g,l),u=g+Math.cos(t)*this.lc,B=l+Math.sin(t)*this.lc,F,M,W,Ma=W=0,Ba=1;q&&(W=Pa(c,e,h,k),F=h+Math.cos(W)*this.lc,M=k+Math.sin(W)*this.lc,c=Pa(g,l,r,n),W=Qa(t,W)/Qa(c,W),t=Xa(h,k,g,l),t=t/(t+this.lc),c=Pa(0,1,W,0),e=Xa(0,1,W,0),Ma+=Math.cos(c)*t*e,Ba+=Math.sin(c)*t*e);a.vp(g,l,r,n,u,B,u,B,Ma,Ba,1,W,W);q&&a.vp(h,k,u,B,F,M,F,M,0,1,W,0,0)};q.Cn=function(){this.b.m&&(this.Ea&&(this.b.m.deleteTexture(this.Ea),
this.Ea=null),this.Vb&&(this.b.m.deleteTexture(this.Vb),this.Vb=null),this.Mr(),this.Pr())};q.Mr=function(){var a=document.createElement("canvas");a.width=16;a.height=16;var b=a.getContext("2d");b.fillStyle="rgb("+this.ol+","+this.nl+","+this.ml+")";b.fillRect(0,0,16,16);this.Ea=this.b.m.Nb(16,16,!1,!1,!0);this.b.m.mq(a,this.Ea)};q.Pr=function(){var a=r.width,b=r.height,c=this.ol,d=this.nl,e=this.ml,f=h,k=document.createElement("canvas");k.width=a;k.height=b;var g=k.getContext("2d"),l=g.createImageData(a,
b),m=l.data,n,p;n=0;for(p=m.length;n<p;n+=4)m[n]=c,m[n+1]=d,m[n+2]=e,m[n+3]=f[n+3];g.putImageData(l,0,0);this.Vb=this.b.m.Nb(a,b,this.b.V,!1,!1);this.b.m.mq(k,this.Vb)};l.d=new function(){};l.fa=new function(){};l.gb=new function(){}})();
function tc(g){this.b=g;var n=this;this.b.qa||(jQuery(document).mousemove(function(g){n.Kl(g)}),jQuery(document).mousedown(function(g){n.Jl(g)}),jQuery(document).mouseup(function(g){n.Ll(g)}));g=0<this.b.tb?document:this.b.canvas;this.b.ib?g=window.Canvas:this.b.ic&&(g=window);window.navigator.pointerEnabled?(g.addEventListener("pointerdown",function(g){n.wh(g)},!1),g.addEventListener("pointermove",function(g){n.vh(g)},!1),g.addEventListener("pointerup",function(g){n.Rd(g)},!1),g.addEventListener("pointercancel",
function(g){n.Rd(g)},!1)):window.navigator.msPointerEnabled?(g.addEventListener("MSPointerDown",function(g){n.wh(g)},!1),g.addEventListener("MSPointerMove",function(g){n.vh(g)},!1),g.addEventListener("MSPointerUp",function(g){n.Rd(g)},!1),g.addEventListener("MSPointerCancel",function(g){n.Rd(g)},!1)):(g.addEventListener("touchstart",function(g){n.dj(g)},!1),g.addEventListener("touchmove",function(g){n.cj(g)},!1),g.addEventListener("touchend",function(g){n.Wf(g)},!1),g.addEventListener("touchcancel",
function(g){n.Wf(g)},!1))}
(function(){function g(g){var h,b;h=0;for(b=g.I.length;h<b;h++)if(g.I[h]instanceof l.ra)return g.I[h];return null}function n(){}var l=tc.prototype,q={left:0,top:0};l.Jl=function(g){1===g.which&&this.El("leftmouse",g.pageX,g.pageY)};l.Kl=function(g){1===g.which&&this.Fl("leftmouse",g.pageX,g.pageY)};l.Ll=function(g){1===g.which&&this.Gl("leftmouse")};l.dj=function(g){g.preventDefault&&ob(g)&&g.preventDefault();var h,b,c,d;h=0;for(b=g.changedTouches.length;h<b;h++)c=g.changedTouches[h],d=c.identifier,
this.El(d?d.toString():"<none>",c.pageX,c.pageY)};l.cj=function(g){g.preventDefault&&g.preventDefault();var h,b,c,d;h=0;for(b=g.changedTouches.length;h<b;h++)c=g.changedTouches[h],d=c.identifier,this.Fl(d?d.toString():"<none>",c.pageX,c.pageY)};l.Wf=function(g){g.preventDefault&&ob(g)&&g.preventDefault();var h,b,c;h=0;for(b=g.changedTouches.length;h<b;h++)c=g.changedTouches[h],c=c.identifier,this.Gl(c?c.toString():"<none>")};l.wh=function(g){g.pointerType!==g.MSPOINTER_TYPE_MOUSE&&"mouse"!==g.pointerType&&
(g.preventDefault&&ob(g)&&g.preventDefault(),this.El(g.pointerId.toString(),g.pageX,g.pageY))};l.vh=function(g){g.pointerType!==g.MSPOINTER_TYPE_MOUSE&&"mouse"!==g.pointerType&&(g.preventDefault&&g.preventDefault(),this.Fl(g.pointerId.toString(),g.pageX,g.pageY))};l.Rd=function(g){g.pointerType!==g.MSPOINTER_TYPE_MOUSE&&"mouse"!==g.pointerType&&(g.preventDefault&&ob(g)&&g.preventDefault(),this.Gl(g.pointerId.toString()))};l.El=function(l,h,b){var c=this.b.qa?q:jQuery(this.b.canvas).offset();h=h-c.left;
b=b-c.top;var d,a,e,k,c=this.Tf.Jc(),f,n,p,t=null;f=0;for(n=c.length;f<n;f++)if(p=c[f],d=g(p),d.enabled&&!d.pe&&(d=p.j.Na(h,b,!0),a=p.j.Na(h,b,!1),p.Da(),p.ac(d,a)))t?p.j.index>t.j.index?(t=p,e=d,k=a):p.j.index===t.j.index&&p.Ac()>t.Ac()&&(t=p,e=d,k=a):(t=p,e=d,k=a);t&&g(t).ou(l,e,k)};l.Fl=function(l,h,b){var c=this.b.qa?q:jQuery(this.b.canvas).offset();h=h-c.left;b=b-c.top;var d,a=this.Tf.Jc(),e,k,f;e=0;for(k=a.length;e<k;e++)d=a[e],f=g(d),!f.enabled||!f.pe||f.pe&&f.pk!==l||(c=d.j.Na(h,b,!0),d=d.j.Na(h,
b,!1),f.qu(c,d))};l.Gl=function(l){var h=this.Tf.Jc(),b,c,d;b=0;for(c=h.length;b<c;b++)d=h[b],d=g(d),d.pe&&d.pk===l&&d.su()};l.Fa=function(g){this.behavior=g;this.b=g.b};l.Fa.prototype.ba=function(){};l.ra=function(g,h){this.type=g;this.behavior=g.behavior;this.e=h;this.b=g.b};var t=l.ra.prototype;t.ba=function(){this.pe=!1;this.Db=this.Cb=0;this.pk="<none>";this.Uj=this.D[0];this.enabled=0!==this.D[1]};t.xb=function(){return{enabled:this.enabled}};t.Tb=function(g){this.enabled=g.enabled;this.pe=
!1};t.ou=function(g,h,b){this.Cb=h-this.e.x;this.Db=b-this.e.y;this.pe=!0;this.pk=g;this.b.Qb=!0;this.b.trigger(tc.prototype.d.Rq,this.e);this.b.Qb=!1};t.qu=function(g,h){var b=g-this.Cb,c=h-this.Db;if(0===this.Uj){if(this.e.x!==b||this.e.y!==c)this.e.x=b,this.e.y=c,this.e.ka()}else 1===this.Uj?this.e.x!==b&&(this.e.x=b,this.e.ka()):2===this.Uj&&this.e.y!==c&&(this.e.y=c,this.e.ka())};t.su=function(){this.pe=!1;this.b.Qb=!0;this.b.trigger(tc.prototype.d.Mm,this.e);this.b.Qb=!1};t.bb=function(){};
n.prototype.Fq=function(){return this.pe};n.prototype.Rq=function(){return!0};n.prototype.Mm=function(){return!0};l.d=new n;l.fa=new function(){};l.gb=new function(){}})();function uc(g){this.b=g}
(function(){function g(){}var n=uc.prototype;n.Fa=function(h){this.behavior=h;this.b=h.b};n.Fa.prototype.ba=function(){};n.ra=function(h,b){this.type=h;this.behavior=h.behavior;this.e=b;this.b=h.b;this.Ra=0};var l=n.ra.prototype,q=2*Math.PI,t=Math.PI/2,r=3*Math.PI/2;l.ba=function(){this.cb=1===this.D[0];this.rh=this.D[1];this.Em=this.D[2];this.Sd=this.D[3];this.Sd+=Math.random()*this.D[4];0===this.Sd?this.Ra=0:(this.Ra=this.D[5]/this.Sd*q,this.Ra+=Math.random()*this.D[6]/this.Sd*q);this.Fb=this.D[7];
this.Fb+=Math.random()*this.D[8];this.Ch=this.$e=this.T=0;this.init()};l.xb=function(){return{i:this.Ra,a:this.cb,mv:this.rh,w:this.Em,p:this.Sd,mag:this.Fb,iv:this.T,iv2:this.$e,r:this.Ch,lkv:this.Sb,lkv2:this.eh}};l.Tb=function(h){this.Ra=h.i;this.cb=h.a;this.rh=h.mv;this.Em=h.w;this.Sd=h.p;this.Fb=h.mag;this.T=h.iv;this.$e=h.iv2||0;this.Ch=h.r;this.Sb=h.lkv;this.eh=h.lkv2||0};l.init=function(){switch(this.rh){case 0:this.T=this.e.x;break;case 1:this.T=this.e.y;break;case 2:this.T=this.e.width;
this.Ch=this.e.height/this.e.width;break;case 3:this.T=this.e.width;break;case 4:this.T=this.e.height;break;case 5:this.T=this.e.k;this.Fb=S(this.Fb);break;case 6:this.T=this.e.opacity;break;case 7:this.T=0;break;case 8:this.T=this.e.x,this.$e=this.e.y}this.Sb=this.T;this.eh=this.$e};l.ae=function(h){h=h%q;switch(this.Em){case 0:return Math.sin(h);case 1:return h<=t?h/t:h<=r?1-2*(h-t)/Math.PI:(h-r)/t-1;case 2:return 2*h/q-1;case 3:return-2*h/q+1;case 4:return h<Math.PI?-1:1}return 0};l.bb=function(){var h=
this.b.Hg(this.e);if(this.cb&&0!==h){0===this.Sd?this.Ra=0:(this.Ra+=h/this.Sd*q,this.Ra=this.Ra%q);switch(this.rh){case 0:this.e.x!==this.Sb&&(this.T+=this.e.x-this.Sb);this.e.x=this.T+this.ae(this.Ra)*this.Fb;this.Sb=this.e.x;break;case 1:this.e.y!==this.Sb&&(this.T+=this.e.y-this.Sb);this.e.y=this.T+this.ae(this.Ra)*this.Fb;this.Sb=this.e.y;break;case 2:this.e.width=this.T+this.ae(this.Ra)*this.Fb;this.e.height=this.e.width*this.Ch;break;case 3:this.e.width=this.T+this.ae(this.Ra)*this.Fb;break;
case 4:this.e.height=this.T+this.ae(this.Ra)*this.Fb;break;case 5:this.e.k!==this.Sb&&(this.T=Ka(this.T+(this.e.k-this.Sb)));this.e.k=Ka(this.T+this.ae(this.Ra)*this.Fb);this.Sb=this.e.k;break;case 6:this.e.opacity=this.T+this.ae(this.Ra)*this.Fb/100;0>this.e.opacity?this.e.opacity=0:1<this.e.opacity&&(this.e.opacity=1);break;case 8:this.e.x!==this.Sb&&(this.T+=this.e.x-this.Sb),this.e.y!==this.eh&&(this.$e+=this.e.y-this.eh),this.e.x=this.T+Math.cos(this.e.k)*this.ae(this.Ra)*this.Fb,this.e.y=this.$e+
Math.sin(this.e.k)*this.ae(this.Ra)*this.Fb,this.Sb=this.e.x,this.eh=this.e.y}this.e.ka()}};l.dp=function(h,b){switch(this.rh){case 2:this.T*=b.width/h.width;this.Ch=b.height/b.width;break;case 3:this.T*=b.width/h.width;break;case 4:this.T*=b.height/h.height}};n.d=new function(){};g.prototype.dr=function(h){this.cb=1===h};n.fa=new g;n.gb=new function(){}})();function vc(g){this.b=g}
(function(){function g(){}function n(){}function l(){}var q=vc.prototype;q.Fa=function(g){this.behavior=g;this.b=g.b};q.Fa.prototype.ba=function(){};q.ra=function(g,h){this.type=g;this.behavior=g.behavior;this.e=h;this.b=g.b;this.Pe=this.Db=this.Cb=0};var t=q.ra.prototype;t.ba=function(){this.gg=this.D[0];this.Wl=this.D[1];this.enabled=0!==this.D[2]};t.xb=function(){return{dx:this.Cb,dy:this.Db,cancelStep:this.Pe,enabled:this.enabled,stepMode:this.gg,pxPerStep:this.Wl}};t.Tb=function(g){this.Cb=g.dx;
this.Db=g.dy;this.Pe=g.cancelStep;this.enabled=g.enabled;this.gg=g.stepMode;this.Wl=g.pxPerStep};t.Lk=function(){return Math.sqrt(this.Cb*this.Cb+this.Db*this.Db)};t.Ia=function(){return Math.atan2(this.Db,this.Cb)};t.step=function(g,h,b){if(0!==g||0!==h){var c=this.e.x,d=this.e.y,a,e=Math.round(Math.sqrt(g*g+h*h)/this.Wl);0===e&&(e=1);var k;for(k=1;k<=e;k++)if(a=k/e,this.e.x=c+g*a,this.e.y=d+h*a,this.e.ka(),this.b.trigger(b,this.e),1===this.Pe){k--;a=k/e;this.e.x=c+g*a;this.e.y=d+h*a;this.e.ka();
break}else if(2===this.Pe)break}};t.bb=function(){var g=this.b.Hg(this.e),h=this.Cb*g,g=this.Db*g;0===this.Cb&&0===this.Db||!this.enabled||(this.Pe=0,0===this.gg?(this.e.x+=h,this.e.y+=g):1===this.gg?this.step(h,g,vc.prototype.d.Mq):2===this.gg?(this.step(h,0,vc.prototype.d.Km),this.Pe=0,this.step(0,g,vc.prototype.d.Lm)):3===this.gg&&(this.step(0,g,vc.prototype.d.Lm),this.Pe=0,this.step(h,0,vc.prototype.d.Km)),this.e.ka())};g.prototype.Mq=function(){return!0};g.prototype.Km=function(){return!0};g.prototype.Lm=
function(){return!0};q.d=new g;n.prototype.Zm=function(){this.Db=this.Cb=0};n.prototype.pq=function(g,h,b){g=g*this.b.Hg(this.e);h=Math.atan2(b-this.e.y,h-this.e.x);this.Cb+=Math.cos(h)*g;this.Db+=Math.sin(h)*g};q.fa=new n;l.prototype.Cb=function(g){g.A(this.Cb)};l.prototype.Db=function(g){g.A(this.Db)};q.gb=new l})();function oc(g){this.b=g;this.zl=[]}
(function(){function g(){}function n(){}function l(){}var q=oc.prototype;q.Fa=function(g,h){this.behavior=g;this.b=g.b;-1===this.behavior.zl.indexOf(h)&&this.behavior.zl.push(h)};q.Fa.prototype.ba=function(){};q.ra=function(g,h){this.type=g;this.behavior=g.behavior;this.e=h;this.b=g.b};var t=q.ra.prototype;t.ba=function(){this.e.M.shadowcasterEnabled=0!==this.D[0];this.e.M.shadowcasterHeight=this.D[1];this.e.M.shadowcasterTag=this.D[2]};t.bb=function(){};g.prototype.wq=function(g,h){return dc(this.e.M.shadowcasterHeight,
g,h)};q.d=new g;n.prototype.fr=function(g){this.e.M.shadowcasterHeight!==g&&(this.e.M.shadowcasterHeight=g,this.b.ha=!0)};q.fa=new n;l.prototype.Jm=function(g){g.A(this.e.M.shadowcasterHeight)};q.gb=new l})();
function nc(){return[pc,qc,rc,sc,Y,Z,oc,tc,vc,uc,X.prototype.d.Om,rc.prototype.fa.cr,X.prototype.fa.ir,X.prototype.gb.random,Y.prototype.gb.sq,X.prototype.d.xq,X.prototype.d.Cq,Y.prototype.d.vq,X.prototype.d.Bq,tc.prototype.d.Fq,Y.prototype.d.Gq,Y.prototype.d.yq,vc.prototype.fa.pq,Y.prototype.fa.gr,Y.prototype.d.Hm,Y.prototype.fa.Ym,Z.prototype.d.Nm,Y.prototype.fa.er,Y.prototype.fa.Jq,X.prototype.d.Im,Z.prototype.d.Tm,X.prototype.fa.zq,X.prototype.fa.qq,qc.prototype.fa.Play,tc.prototype.d.Mm,Y.prototype.fa.Aq,
vc.prototype.fa.Zm,Y.prototype.fa.jr,Y.prototype.fa.lr,qc.prototype.d.ng,uc.prototype.fa.dr,sc.prototype.fa.Ym]};
