// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa,ba,I,ea,fa,K,M,ga,ha,ja,la,ma,O,na,oa,pa,qa,ra,sa,ta,ua,va,wa,Q,xa,za,Aa,Ba,Ca,Da,Fa,Ga,Ha,Ia,Ja,Ka,La,Qa,R,Ra,Sa,Ta,Ua,Va,Wa,Xa,Ya,Za,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,pb,qb,rb,sb,tb,ub,vb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,S,Nb,Ob,Pb,U,Qb,Rb={},Sb={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(e){return e.__proto__}:function(e){return e.constructor.prototype});
(function(){function e(a,c,p,d){this.set(a,c,p,d)}function k(){this.Ab=this.zb=this.Cb=this.Bb=this.Ob=this.Nb=this.Ua=this.Ta=0}function b(a,c,p,d){a<c?p<d?(g=a<p?a:p,r=c>d?c:d):(g=a<d?a:d,r=c>p?c:p):p<d?(g=c<p?c:p,r=a>d?a:d):(g=c<d?c:d,r=a>p?a:p)}function h(){this.items=this.Pc=null;this.uf=0;l&&(this.Pc=new Set);this.Wf=[];this.Sd=!0}function q(a){w[A++]=a}function a(){this.V=this.wj=this.y=this.$j=0}function c(a){this.Pa=[];this.Fh=this.Hh=this.Ih=this.Gh=0;this.oh(a)}function d(a,c){this.dr=
a;this.cr=c;this.cells={}}function m(a,c,p){var d;return s.length?(d=s.pop(),d.Ts=a,d.x=c,d.y=p,d):new aa(a,c,p)}function f(a,c,p){this.Ts=a;this.x=c;this.y=p;this.Vg=new ba}I=function(a){window.console&&window.console.log&&window.console.log(a)};ea=function(a){window.console&&window.console.error&&window.console.error(a)};fa=function(a){return"undefined"===typeof a};K=function(a){return"number"===typeof a};M=function(a){return"string"===typeof a};ga=function(a){return 0<a&&0===(a-1&a)};ha=function(a){--a;
for(var c=1;32>c;c<<=1)a|=a>>c;return a+1};ja=function(a){return 0>a?-a:a};la=function(a,c){return a<c?a:c};ma=Math.PI;O=function(a){return 0<=a?a|0:(a|0)-1};na=function(a){var c=a|0;return c===a?c:c+1};oa=function(a,c,p,d,s,b,m,f){var l,g,h,n;a<p?(g=a,l=p):(g=p,l=a);s<m?(n=s,h=m):(n=m,h=s);if(l<n||g>h)return!1;c<d?(g=c,l=d):(g=d,l=c);b<f?(n=b,h=f):(n=f,h=b);if(l<n||g>h)return!1;l=s-a+m-p;g=b-c+f-d;a=p-a;c=d-c;s=m-s;b=f-b;f=ja(c*s-b*a);return ja(s*g-b*l)>f?!1:ja(a*g-c*l)<=f};e.prototype.set=function(a,
c,p,d){this.left=a;this.top=c;this.right=p;this.bottom=d};e.prototype.ir=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};e.prototype.width=function(){return this.right-this.left};e.prototype.height=function(){return this.bottom-this.top};e.prototype.offset=function(a,c){this.left+=a;this.top+=c;this.right+=a;this.bottom+=c;return this};e.prototype.normalize=function(){var a=0;this.left>this.right&&(a=this.left,this.left=this.right,this.right=a);this.top>this.bottom&&
(a=this.top,this.top=this.bottom,this.bottom=a)};e.prototype.ct=function(a){return!(a.right<this.left||a.bottom<this.top||a.left>this.right||a.top>this.bottom)};e.prototype.dt=function(a,c,p){return!(a.right+c<this.left||a.bottom+p<this.top||a.left+c>this.right||a.top+p>this.bottom)};e.prototype.pb=function(a,c){return a>=this.left&&a<=this.right&&c>=this.top&&c<=this.bottom};e.prototype.Lr=function(a){return this.left===a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};pa=e;
k.prototype.Lf=function(a){this.Ta=a.left;this.Ua=a.top;this.Nb=a.right;this.Ob=a.top;this.Bb=a.right;this.Cb=a.bottom;this.zb=a.left;this.Ab=a.bottom};k.prototype.lp=function(a,c){if(0===c)this.Lf(a);else{var p=Math.sin(c),d=Math.cos(c),s=a.left*p,b=a.top*p,m=a.right*p,p=a.bottom*p,f=a.left*d,l=a.top*d,g=a.right*d,d=a.bottom*d;this.Ta=f-b;this.Ua=l+s;this.Nb=g-b;this.Ob=l+m;this.Bb=g-p;this.Cb=d+m;this.zb=f-p;this.Ab=d+s}};k.prototype.offset=function(a,c){this.Ta+=a;this.Ua+=c;this.Nb+=a;this.Ob+=
c;this.Bb+=a;this.Cb+=c;this.zb+=a;this.Ab+=c;return this};var g=0,r=0;k.prototype.$m=function(a){b(this.Ta,this.Nb,this.Bb,this.zb);a.left=g;a.right=r;b(this.Ua,this.Ob,this.Cb,this.Ab);a.top=g;a.bottom=r};k.prototype.pb=function(a,c){var p=this.Nb-this.Ta,d=this.Ob-this.Ua,s=this.Bb-this.Ta,b=this.Cb-this.Ua,m=a-this.Ta,f=c-this.Ua,l=p*p+d*d,g=p*s+d*b,d=p*m+d*f,h=s*s+b*b,n=s*m+b*f,q=1/(l*h-g*g),p=(h*d-g*n)*q,l=(l*n-g*d)*q;if(0<=p&&0<l&&1>p+l)return!0;p=this.zb-this.Ta;d=this.Ab-this.Ua;l=p*p+d*
d;g=p*s+d*b;d=p*m+d*f;q=1/(l*h-g*g);p=(h*d-g*n)*q;l=(l*n-g*d)*q;return 0<=p&&0<l&&1>p+l};k.prototype.Qd=function(a,c){if(c)switch(a){case 0:return this.Ta;case 1:return this.Nb;case 2:return this.Bb;case 3:return this.zb;case 4:return this.Ta;default:return this.Ta}else switch(a){case 0:return this.Ua;case 1:return this.Ob;case 2:return this.Cb;case 3:return this.Ab;case 4:return this.Ua;default:return this.Ua}};k.prototype.wo=function(){return(this.Ta+this.Nb+this.Bb+this.zb)/4};k.prototype.xo=function(){return(this.Ua+
this.Ob+this.Cb+this.Ab)/4};k.prototype.Kn=function(a){var c=a.wo(),p=a.xo();if(this.pb(c,p))return!0;c=this.wo();p=this.xo();if(a.pb(c,p))return!0;var d,s,b,m,f,l,g,h;for(g=0;4>g;g++)for(h=0;4>h;h++)if(c=this.Qd(g,!0),p=this.Qd(g,!1),d=this.Qd(g+1,!0),s=this.Qd(g+1,!1),b=a.Qd(h,!0),m=a.Qd(h,!1),f=a.Qd(h+1,!0),l=a.Qd(h+1,!1),oa(c,p,d,s,b,m,f,l))return!0;return!1};qa=k;ra=function(a,c){for(var p in c)c.hasOwnProperty(p)&&(a[p]=c[p]);return a};sa=function(a,c){var p,d;c=O(c);if(!(0>c||c>=a.length)){p=
c;for(d=a.length-1;p<d;p++)a[p]=a[p+1];a.length=d}};ta=function(a,c){a.length=c.length;var p,d;p=0;for(d=c.length;p<d;p++)a[p]=c[p]};ua=function(a,c){a.push.apply(a,c)};va=function(a,c){var p,d;p=0;for(d=a.length;p<d;++p)if(a[p]===c)return p;return-1};wa=function(a,c){var p=va(a,c);-1!==p&&sa(a,p)};Q=function(a){return a/(180/ma)};xa=function(a){return 180/ma*a};za=function(a){a%=360;0>a&&(a+=360);return a};Aa=function(a){a%=2*ma;0>a&&(a+=2*ma);return a};Ba=function(a){return za(xa(a))};Ca=function(a){return Aa(Q(a))};
Da=function(a,c,p,d){return Math.atan2(d-c,p-a)};Fa=function(a,c){if(a===c)return 0;var p=Math.sin(a),d=Math.cos(a),s=Math.sin(c),b=Math.cos(c),p=p*s+d*b;return 1<=p?0:-1>=p?ma:Math.acos(p)};Ga=function(a,c,p){var d=Math.sin(a),s=Math.cos(a),b=Math.sin(c),m=Math.cos(c);return Math.acos(d*b+s*m)>p?0<s*b-d*m?Aa(a+p):Aa(a-p):Aa(c)};Ha=function(a,c){var p=Math.sin(a),d=Math.cos(a),s=Math.sin(c),b=Math.cos(c);return 0>=d*s-p*b};Ia=function(a,c,p,d,s,b){if(0===p)return b?a:c;var m=Math.sin(p);p=Math.cos(p);
a-=d;c-=s;var f=a*m;a=a*p-c*m;c=c*p+f;return b?a+d:c+s};Ja=function(a,c,p,d){a=p-a;c=d-c;return Math.sqrt(a*a+c*c)};Ka=function(a,c){return!a!==!c};La=function(a){for(var c in a)if(a.hasOwnProperty(c))return!0;return!1};Qa=function(a){for(var c in a)a.hasOwnProperty(c)&&delete a[c]};var y=+new Date;R=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()-y};var n=!1,C=n=!1,u=!1;"undefined"!==typeof window&&(n=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),n=!n&&/safari/i.test(navigator.userAgent),C=/(iphone|ipod|ipad)/i.test(navigator.userAgent),u=window.c2ejecta);var l=!n&&!u&&!C&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;h.prototype.contains=function(a){return this.nf()?!1:l?this.Pc.has(a):this.items&&
this.items.hasOwnProperty(a)};h.prototype.add=function(a){if(l)this.Pc.has(a)||(this.Pc.add(a),this.Sd=!1);else{var c=a.toString(),p=this.items;p?p.hasOwnProperty(c)||(p[c]=a,this.uf++,this.Sd=!1):(this.items={},this.items[c]=a,this.uf=1,this.Sd=!1)}};h.prototype.remove=function(a){if(!this.nf())if(l)this.Pc.has(a)&&(this.Pc["delete"](a),this.Sd=!1);else if(this.items){a=a.toString();var c=this.items;c.hasOwnProperty(a)&&(delete c[a],this.uf--,this.Sd=!1)}};h.prototype.clear=function(){this.nf()||
(l?this.Pc.clear():(this.items=null,this.uf=0),this.Wf.length=0,this.Sd=!0)};h.prototype.nf=function(){return 0===this.count()};h.prototype.count=function(){return l?this.Pc.size:this.uf};var w=null,A=0;h.prototype.uu=function(){if(!this.Sd){if(l)this.Wf.length=this.Pc.size,w=this.Wf,A=0,this.Pc.forEach(q),w=null,A=0;else{var a=this.Wf;a.length=this.uf;var c,p=0,d=this.items;if(d)for(c in d)d.hasOwnProperty(c)&&(a[p++]=d[c])}this.Sd=!0}};h.prototype.Sc=function(){this.uu();return this.Wf};ba=h;new ba;
Ta=function(a,c){l?Ra(a,c.Pc):Sa(a,c.Sc())};Ra=function(a,c){var p,d,s,b;d=p=0;for(s=a.length;p<s;++p)b=a[p],c.has(b)||(a[d++]=b);a.length=d};Sa=function(a,c){var p,d,s,b;d=p=0;for(s=a.length;p<s;++p)b=a[p],-1===va(c,b)&&(a[d++]=b);a.length=d};a.prototype.add=function(a){this.y=a-this.$j;this.wj=this.V+this.y;this.$j=this.wj-this.V-this.y;this.V=this.wj};a.prototype.reset=function(){this.V=this.wj=this.y=this.$j=0};Ua=a;Va=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};c.prototype.oh=
function(a){this.Xo=a;this.Oc=a.length/2;this.Pa.length=a.length;this.Mh=this.Nh=-1;this.cn=0};c.prototype.qf=function(){return!this.Xo.length};c.prototype.Ha=function(){for(var a=this.Pa,c=a[0],p=c,d=a[1],s=d,b,m,f=1,l=this.Oc;f<l;++f)m=2*f,b=a[m],m=a[m+1],b<c&&(c=b),b>p&&(p=b),m<d&&(d=m),m>s&&(s=m);this.Gh=c;this.Hh=p;this.Ih=d;this.Fh=s};c.prototype.Lf=function(a,c,p){this.Pa.length=8;this.Oc=4;var d=this.Pa;d[0]=a.left-c;d[1]=a.top-p;d[2]=a.right-c;d[3]=a.top-p;d[4]=a.right-c;d[5]=a.bottom-p;
d[6]=a.left-c;d[7]=a.bottom-p;this.Nh=a.right-a.left;this.Mh=a.bottom-a.top;this.Ha()};c.prototype.Kf=function(a,c,p,d,s){this.Pa.length=8;this.Oc=4;var b=this.Pa;b[0]=a.Ta-c;b[1]=a.Ua-p;b[2]=a.Nb-c;b[3]=a.Ob-p;b[4]=a.Bb-c;b[5]=a.Cb-p;b[6]=a.zb-c;b[7]=a.Ab-p;this.Nh=d;this.Mh=s;this.Ha()};c.prototype.kp=function(a){this.Oc=a.Oc;ta(this.Pa,a.Pa);this.Gh=a.Gh;this.Ih-a.Ih;this.Hh=a.Hh;this.Fh=a.Fh};c.prototype.$e=function(a,c,p){if(this.Nh!==a||this.Mh!==c||this.cn!==p){this.Nh=a;this.Mh=c;this.cn=
p;var d,s,b,m,f,l=0,g=1,h=this.Xo,n=this.Pa;0!==p&&(l=Math.sin(p),g=Math.cos(p));p=0;for(b=this.Oc;p<b;p++)d=2*p,s=d+1,m=h[d]*a,f=h[s]*c,n[d]=m*g-f*l,n[s]=f*g+m*l;this.Ha()}};c.prototype.pb=function(a,c){var p=this.Pa;if(a===p[0]&&c===p[1])return!0;var d,s,b,m=this.Oc,f=this.Gh-110,l=this.Ih-101,g=this.Hh+131,h=this.Fh+120,n,q,e=0,w=0;for(d=0;d<m;d++)s=2*d,b=(d+1)%m*2,n=p[s],s=p[s+1],q=p[b],b=p[b+1],oa(f,l,a,c,n,s,q,b)&&e++,oa(g,h,a,c,n,s,q,b)&&w++;return 1===e%2||1===w%2};c.prototype.sg=function(a,
c,p){var d=a.Pa,s=this.Pa;if(this.pb(d[0]+c,d[1]+p)||a.pb(s[0]-c,s[1]-p))return!0;var b,m,f,l,g,h,n,q,e,w,r,k;b=0;for(l=this.Oc;b<l;b++)for(m=2*b,f=(b+1)%l*2,q=s[m],m=s[m+1],e=s[f],w=s[f+1],f=0,n=a.Oc;f<n;f++)if(g=2*f,h=(f+1)%n*2,r=d[g]+c,g=d[g+1]+p,k=d[h]+c,h=d[h+1]+p,oa(q,m,e,w,r,g,k,h))return!0;return!1};Wa=c;d.prototype.Ck=function(a,c,p){var d;d=this.cells[a];return d?(d=d[c])?d:p?(d=m(this,a,c),this.cells[a][c]=d):null:p?(d=m(this,a,c),this.cells[a]={},this.cells[a][c]=d):null};d.prototype.Bh=
function(a){return O(a/this.dr)};d.prototype.Ch=function(a){return O(a/this.cr)};d.prototype.update=function(a,c,p){var d,b,m,f,l;if(c)for(d=c.left,b=c.right;d<=b;++d)for(m=c.top,f=c.bottom;m<=f;++m)if(!p||!p.pb(d,m))if(l=this.Ck(d,m,!1))l.remove(a),l.nf()&&(l.Vg.clear(),1E3>s.length&&s.push(l),this.cells[d][m]=null);if(p)for(d=p.left,b=p.right;d<=b;++d)for(m=p.top,f=p.bottom;m<=f;++m)c&&c.pb(d,m)||this.Ck(d,m,!0).bt(a)};d.prototype.Zo=function(a,c){var p,d,s,b,m,f;p=this.Bh(a.left);s=this.Ch(a.top);
d=this.Bh(a.right);for(m=this.Ch(a.bottom);p<=d;++p)for(b=s;b<=m;++b)(f=this.Ck(p,b,!1))&&f.dump(c)};Xa=d;var s=[];f.prototype.nf=function(){return this.Vg.nf()};f.prototype.bt=function(a){this.Vg.add(a)};f.prototype.remove=function(a){this.Vg.remove(a)};f.prototype.dump=function(a){ua(a,this.Vg.Sc())};aa=f;var p="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");Ya=function(a){return 0>=a||11<=a?"source-over":p[a-1]};Za=
function(a,c,p){if(p)switch(a.nb=p.ONE,a.lb=p.ONE_MINUS_SRC_ALPHA,c){case 1:a.nb=p.ONE;a.lb=p.ONE;break;case 3:a.nb=p.ONE;a.lb=p.ZERO;break;case 4:a.nb=p.ONE_MINUS_DST_ALPHA;a.lb=p.ONE;break;case 5:a.nb=p.DST_ALPHA;a.lb=p.ZERO;break;case 6:a.nb=p.ZERO;a.lb=p.SRC_ALPHA;break;case 7:a.nb=p.ONE_MINUS_DST_ALPHA;a.lb=p.ZERO;break;case 8:a.nb=p.ZERO;a.lb=p.ONE_MINUS_SRC_ALPHA;break;case 9:a.nb=p.DST_ALPHA;a.lb=p.ONE_MINUS_SRC_ALPHA;break;case 10:a.nb=p.ONE_MINUS_DST_ALPHA,a.lb=p.SRC_ALPHA}};$a=function(a){return Math.round(1E6*
a)/1E6};ab=function(a,c){return"string"!==typeof a||"string"!==typeof c||a.length!==c.length?!1:a===c?!0:a.toLowerCase()===c.toLowerCase()};bb=function(a){a=a.target;return!a||a===document||a===window||document&&document.body&&a===document.body||ab(a.tagName,"canvas")?!0:!1}})();var Tb="undefined"!==typeof Float32Array?Float32Array:Array;function Ub(e){var k=new Tb(3);e&&(k[0]=e[0],k[1]=e[1],k[2]=e[2]);return k}
function Vb(e){var k=new Tb(16);e&&(k[0]=e[0],k[1]=e[1],k[2]=e[2],k[3]=e[3],k[4]=e[4],k[5]=e[5],k[6]=e[6],k[7]=e[7],k[8]=e[8],k[9]=e[9],k[10]=e[10],k[11]=e[11],k[12]=e[12],k[13]=e[13],k[14]=e[14],k[15]=e[15]);return k}function Wb(e,k){k[0]=e[0];k[1]=e[1];k[2]=e[2];k[3]=e[3];k[4]=e[4];k[5]=e[5];k[6]=e[6];k[7]=e[7];k[8]=e[8];k[9]=e[9];k[10]=e[10];k[11]=e[11];k[12]=e[12];k[13]=e[13];k[14]=e[14];k[15]=e[15]}
function Xb(e,k){var b=k[0],h=k[1];k=k[2];e[0]*=b;e[1]*=b;e[2]*=b;e[3]*=b;e[4]*=h;e[5]*=h;e[6]*=h;e[7]*=h;e[8]*=k;e[9]*=k;e[10]*=k;e[11]*=k}
function Yb(e,k,b,h){h||(h=Vb());var q,a,c,d,m,f,g,r,y=e[0],n=e[1];e=e[2];a=b[0];c=b[1];q=b[2];b=k[1];f=k[2];y===k[0]&&n===b&&e===f?(e=h,e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1):(b=y-k[0],f=n-k[1],g=e-k[2],r=1/Math.sqrt(b*b+f*f+g*g),b*=r,f*=r,g*=r,k=c*g-q*f,q=q*b-a*g,a=a*f-c*b,(r=Math.sqrt(k*k+q*q+a*a))?(r=1/r,k*=r,q*=r,a*=r):a=q=k=0,c=f*a-g*q,d=g*k-b*a,m=b*q-f*k,(r=Math.sqrt(c*c+d*d+m*m))?(r=1/r,c*=r,d*=r,m*=r):m=d=c=0,
h[0]=k,h[1]=c,h[2]=b,h[3]=0,h[4]=q,h[5]=d,h[6]=f,h[7]=0,h[8]=a,h[9]=m,h[10]=g,h[11]=0,h[12]=-(k*y+q*n+a*e),h[13]=-(c*y+d*n+m*e),h[14]=-(b*y+f*n+g*e),h[15]=1)}
(function(){function e(a){this.of=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.dn=Ub([0,0,100]);this.bo=Ub([0,0,0]);this.Gp=Ub([0,1,0]);this.Em=Ub([1,1,1]);this.ln=!0;this.pl=Vb();this.zc=Vb();this.Un=Vb();this.hk=Vb();this.n=a;this.Gn()}function k(a,c,d){this.n=a;this.ph=c;this.name=d;this.yc=a.getAttribLocation(c,"aPos");this.Zd=a.getAttribLocation(c,"aTex");this.$n=a.getUniformLocation(c,"matP");this.Ki=a.getUniformLocation(c,"matMV");this.xf=
a.getUniformLocation(c,"opacity");this.ao=a.getUniformLocation(c,"samplerFront");this.Ng=a.getUniformLocation(c,"samplerBack");this.Me=a.getUniformLocation(c,"destStart");this.Le=a.getUniformLocation(c,"destEnd");this.ml=a.getUniformLocation(c,"seconds");this.ll=a.getUniformLocation(c,"pixelWidth");this.kl=a.getUniformLocation(c,"pixelHeight");this.Mg=a.getUniformLocation(c,"layerScale");this.Lg=a.getUniformLocation(c,"layerAngle");this.Pg=a.getUniformLocation(c,"viewOrigin");this.Og=a.getUniformLocation(c,
"scrollPos");this.Ws=!!(this.ll||this.kl||this.ml||this.Ng||this.Me||this.Le||this.Mg||this.Lg||this.Pg||this.Og);this.no=this.oo=-999;this.Mi=1;this.ho=this.fo=0;this.ko=this.eo=this.co=1;this.qo=this.po=this.so=this.ro=this.jo=0;this.bl=[];this.lo=Vb();this.xf&&a.uniform1f(this.xf,1);this.ao&&a.uniform1i(this.ao,0);this.Ng&&a.uniform1i(this.Ng,1);this.Me&&a.uniform2f(this.Me,0,0);this.Le&&a.uniform2f(this.Le,1,1);this.Mg&&a.uniform1f(this.Mg,1);this.Lg&&a.uniform1f(this.Lg,0);this.Pg&&a.uniform2f(this.Pg,
0,0);this.Og&&a.uniform2f(this.Og,0,0);this.Ce=!1}function b(a,c){this.type=a;this.u=c;this.n=c.n;this.vc=this.oc=this.Ho=0;this.ga=this.Rc=null;this.mp=[]}e.prototype.Gn=function(){var a=this.n,c;this.Vn=1;this.Je=this.Ie=null;this.Vh=1;a.clearColor(0,0,0,0);a.clear(a.COLOR_BUFFER_BIT);a.enable(a.BLEND);a.blendFunc(a.ONE,a.ONE_MINUS_SRC_ALPHA);a.disable(a.CULL_FACE);a.disable(a.DEPTH_TEST);this.Wn=a.ONE;this.Tn=a.ONE_MINUS_SRC_ALPHA;this.Kl=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.Kl);this.zh=
Array(4);this.th=Array(4);for(c=0;4>c;c++)this.zh[c]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.zh[c]),this.th[c]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.th[c]);this.qd=0;this.Zs=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.Zs);this.Am=new Float32Array(16E3);this.mm=new Float32Array(16E3);this.To=new Float32Array(32E3);for(var d=new Uint16Array(12E3),b=c=0;12E3>c;)d[c++]=b,d[c++]=b+1,d[c++]=b+2,d[c++]=b,d[c++]=b+2,d[c++]=b+3,b+=4;a.bufferData(a.ELEMENT_ARRAY_BUFFER,d,
a.STATIC_DRAW);this.Gf=this.hd=0;this.Sa=[];c=this.gk({src:"varying mediump vec2 vTex;\nuniform lowp float opacity;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, vTex);\n\tgl_FragColor *= opacity;\n}"},"attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}","<default>");
this.Sa.push(c);c=this.gk({src:"uniform mediump sampler2D samplerFront;\nvarying lowp float opacity;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, gl_PointCoord);\n\tgl_FragColor *= opacity;\n}"},"attribute vec4 aPos;\nvarying float opacity;\nuniform mat4 matP;\nuniform mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tgl_PointSize = aPos.z;\n\topacity = aPos.w;\n}","<point>");this.Sa.push(c);for(var f in Zb)Zb.hasOwnProperty(f)&&this.Sa.push(this.gk(Zb[f],
"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}",f));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,null);this.od=[];this.Uc=0;this.Xb=this.Fb=!1;this.jn=this.Ag=-1;this.eg=null;this.ks=a.createFramebuffer();this.cp=null;this.je=Ub([0,0,0]);a=a.getParameter(a.ALIASED_POINT_SIZE_RANGE);this.yt=a[0];this.ql=
a[1];2048<this.ql&&(this.ql=2048);this.ed(0)};k.prototype.vm=function(a){var c=this.lo;if(c[0]!==a[0]||c[1]!==a[1]||c[2]!==a[2]||c[3]!==a[3]||c[4]!==a[4]||c[5]!==a[5]||c[6]!==a[6]||c[7]!==a[7]||c[8]!==a[8]||c[9]!==a[9]||c[10]!==a[10]||c[11]!==a[11]||c[12]!==a[12]||c[13]!==a[13]||c[14]!==a[14]||c[15]!==a[15])Wb(a,this.lo),this.n.uniformMatrix4fv(this.Ki,!1,a)};e.prototype.gk=function(a,c,d){var b=this.n,f=b.createShader(b.FRAGMENT_SHADER);b.shaderSource(f,a.src);b.compileShader(f);if(!b.getShaderParameter(f,
b.COMPILE_STATUS))return b.deleteShader(f),null;var g=b.createShader(b.VERTEX_SHADER);b.shaderSource(g,c);b.compileShader(g);if(!b.getShaderParameter(g,b.COMPILE_STATUS))return b.deleteShader(f),b.deleteShader(g),null;c=b.createProgram();b.attachShader(c,f);b.attachShader(c,g);b.linkProgram(c);if(!b.getProgramParameter(c,b.LINK_STATUS))return b.deleteShader(f),b.deleteShader(g),b.deleteProgram(c),null;b.useProgram(c);b.deleteShader(f);b.deleteShader(g);d=new k(b,c,d);d.sk=a.sk||0;d.tk=a.tk||0;d.hn=
!!a.hn;d.Xm=!!a.Xm;d.L=a.L||[];a=0;for(f=d.L.length;a<f;a++)d.L[a][1]=b.getUniformLocation(c,d.L[a][0]),d.bl.push(0),b.uniform1f(d.L[a][1],0);return d};e.prototype.Hk=function(a){var c,d;c=0;for(d=this.Sa.length;c<d;c++)if(this.Sa[c].name===a)return c;return-1};e.prototype.Wo=function(a,c,d){var b=this.zc,f=this.pl,g=[0,0,0,0,0,0,0,0];g[0]=b[0]*a+b[4]*c+b[12];g[1]=b[1]*a+b[5]*c+b[13];g[2]=b[2]*a+b[6]*c+b[14];g[3]=b[3]*a+b[7]*c+b[15];g[4]=f[0]*g[0]+f[4]*g[1]+f[8]*g[2]+f[12]*g[3];g[5]=f[1]*g[0]+f[5]*
g[1]+f[9]*g[2]+f[13]*g[3];g[6]=f[2]*g[0]+f[6]*g[1]+f[10]*g[2]+f[14]*g[3];g[7]=-g[2];0!==g[7]&&(g[7]=1/g[7],g[4]*=g[7],g[5]*=g[7],g[6]*=g[7],d[0]=(.5*g[4]+.5)*this.width,d[1]=(.5*g[5]+.5)*this.height)};e.prototype.Jf=function(a,c,d){if(this.width!==a||this.height!==c||d){this.Ud();this.width=a;this.height=c;this.n.viewport(0,0,a,c);c=a/c;var b=this.pl,f;f=1*Math.tan(45*Math.PI/360);c*=f;a=-c;d=-f;b||(b=Vb());var g=c-a,h=f-d;b[0]=2/g;b[1]=0;b[2]=0;b[3]=0;b[4]=0;b[5]=2/h;b[6]=0;b[7]=0;b[8]=(c+a)/g;b[9]=
(f+d)/h;b[10]=-1001/999;b[11]=-1;b[12]=0;b[13]=0;b[14]=-2E3/999;b[15]=0;Yb(this.dn,this.bo,this.Gp,this.zc);a=[0,0];c=[0,0];this.Wo(0,0,a);this.Wo(1,1,c);this.Em[0]=1/(c[0]-a[0]);this.Em[1]=-1/(c[1]-a[1]);a=0;for(c=this.Sa.length;a<c;a++)d=this.Sa[a],d.Ce=!1,d.$n&&(this.n.useProgram(d.ph),this.n.uniformMatrix4fv(d.$n,!1,this.pl));this.n.useProgram(this.Sa[this.Ag].ph);this.n.bindTexture(this.n.TEXTURE_2D,null);this.n.activeTexture(this.n.TEXTURE1);this.n.bindTexture(this.n.TEXTURE_2D,null);this.n.activeTexture(this.n.TEXTURE0);
this.Je=this.Ie=null}};e.prototype.de=function(){Yb(this.dn,this.bo,this.Gp,this.zc);Xb(this.zc,this.Em)};e.prototype.translate=function(a,c){if(0!==a||0!==c){this.je[0]=a;this.je[1]=c;this.je[2]=0;var d=this.zc,b=this.je,f=b[0],g=b[1],b=b[2];d[12]=d[0]*f+d[4]*g+d[8]*b+d[12];d[13]=d[1]*f+d[5]*g+d[9]*b+d[13];d[14]=d[2]*f+d[6]*g+d[10]*b+d[14];d[15]=d[3]*f+d[7]*g+d[11]*b+d[15]}};e.prototype.scale=function(a,c){if(1!==a||1!==c)this.je[0]=a,this.je[1]=c,this.je[2]=1,Xb(this.zc,this.je)};e.prototype.dp=
function(a){if(0!==a){var c=this.zc,d,b=Math.sin(a);a=Math.cos(a);var f=c[0],g=c[1],h=c[2],q=c[3],n=c[4],e=c[5],k=c[6],l=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]=f*a+n*b;d[1]=g*a+e*b;d[2]=h*a+k*b;d[3]=q*a+l*b;d[4]=f*-b+n*a;d[5]=g*-b+e*a;d[6]=h*-b+k*a;d[7]=q*-b+l*a}};e.prototype.le=function(){for(var a=!1,c=0;16>c;c++)if(this.Un[c]!==this.zc[c]){a=!0;break}a&&(a=this.Ac(),a.type=5,a.ga?Wb(this.zc,a.ga):a.ga=Vb(this.zc),Wb(this.zc,
this.Un),this.Xb=this.Fb=!1)};b.prototype.Er=function(){this.n.bindTexture(this.n.TEXTURE_2D,this.Rc)};b.prototype.Fr=function(){var a=this.n;a.activeTexture(a.TEXTURE1);a.bindTexture(a.TEXTURE_2D,this.Rc);a.activeTexture(a.TEXTURE0)};b.prototype.Br=function(){var a=this.Ho,c=this.u;c.Vh=a;c=c.eg;c.xf&&c.Mi!==a&&(c.Mi=a,this.n.uniform1f(c.xf,a))};b.prototype.ur=function(){this.n.drawElements(this.n.TRIANGLES,this.vc,this.n.UNSIGNED_SHORT,2*this.oc)};b.prototype.Ar=function(){this.n.blendFunc(this.oc,
this.vc)};b.prototype.Gr=function(){var a,c,d,b=this.u.Sa,f=this.u.jn;a=0;for(c=b.length;a<c;a++)d=b[a],a===f&&d.Ki?(d.vm(this.ga),d.Ce=!0):d.Ce=!1;Wb(this.ga,this.u.hk)};b.prototype.wr=function(){var a=this.n,c=this.u;this.Rc?(c.Je===this.Rc&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,null),c.Je=null,a.activeTexture(a.TEXTURE0)),a.bindFramebuffer(a.FRAMEBUFFER,c.ks),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,this.Rc,0)):(a.framebufferTexture2D(a.FRAMEBUFFER,
a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.bindFramebuffer(a.FRAMEBUFFER,null))};b.prototype.sr=function(){var a=this.n;0===this.oc?(a.clearColor(this.ga[0],this.ga[1],this.ga[2],this.ga[3]),a.clear(a.COLOR_BUFFER_BIT)):(a.enable(a.SCISSOR_TEST),a.scissor(this.ga[0],this.ga[1],this.ga[2],this.ga[3]),a.clearColor(0,0,0,0),a.clear(this.n.COLOR_BUFFER_BIT),a.disable(a.SCISSOR_TEST))};b.prototype.tr=function(){var a=this.n,c=this.u,d=c.Sa[1];a.useProgram(d.ph);!d.Ce&&d.Ki&&(d.vm(c.hk),d.Ce=!0);a.enableVertexAttribArray(d.yc);
a.bindBuffer(a.ARRAY_BUFFER,c.Kl);a.vertexAttribPointer(d.yc,4,a.FLOAT,!1,0,0);a.drawArrays(a.POINTS,this.oc/4,this.vc);d=c.eg;a.useProgram(d.ph);0<=d.yc&&(a.enableVertexAttribArray(d.yc),a.bindBuffer(a.ARRAY_BUFFER,c.zh[c.qd]),a.vertexAttribPointer(d.yc,2,a.FLOAT,!1,0,0));0<=d.Zd&&(a.enableVertexAttribArray(d.Zd),a.bindBuffer(a.ARRAY_BUFFER,c.th[c.qd]),a.vertexAttribPointer(d.Zd,2,a.FLOAT,!1,0,0))};b.prototype.Cr=function(){var a=this.n,c=this.u,d=c.Sa[this.oc];c.jn=this.oc;c.eg=d;a.useProgram(d.ph);
!d.Ce&&d.Ki&&(d.vm(c.hk),d.Ce=!0);d.xf&&d.Mi!==c.Vh&&(d.Mi=c.Vh,a.uniform1f(d.xf,c.Vh));0<=d.yc&&(a.enableVertexAttribArray(d.yc),a.bindBuffer(a.ARRAY_BUFFER,c.zh[c.qd]),a.vertexAttribPointer(d.yc,2,a.FLOAT,!1,0,0));0<=d.Zd&&(a.enableVertexAttribArray(d.Zd),a.bindBuffer(a.ARRAY_BUFFER,c.th[c.qd]),a.vertexAttribPointer(d.Zd,2,a.FLOAT,!1,0,0))};b.prototype.Dr=function(){var a,c,d=this.u.eg,b=this.n;a=this.ga;d.Ng&&this.u.Je!==this.Rc&&(b.activeTexture(b.TEXTURE1),b.bindTexture(b.TEXTURE_2D,this.Rc),
this.u.Je=this.Rc,b.activeTexture(b.TEXTURE0));var f=a[0];d.ll&&f!==d.oo&&(d.oo=f,b.uniform1f(d.ll,f));f=a[1];d.kl&&f!==d.no&&(d.no=f,b.uniform1f(d.kl,f));f=a[2];c=a[3];!d.Me||f===d.fo&&c===d.ho||(d.fo=f,d.ho=c,b.uniform2f(d.Me,f,c));f=a[4];c=a[5];!d.Le||f===d.co&&c===d.eo||(d.co=f,d.eo=f,b.uniform2f(d.Le,f,c));f=a[6];d.Mg&&f!==d.ko&&(d.ko=f,b.uniform1f(d.Mg,f));f=a[7];d.Lg&&f!==d.jo&&(d.jo=f,b.uniform1f(d.Lg,f));f=a[8];c=a[9];!d.Pg||f===d.ro&&c===d.so||(d.ro=f,d.so=c,b.uniform2f(d.Pg,f,c));f=a[10];
c=a[11];!d.Og||f===d.po&&c===d.qo||(d.po=f,d.qo=c,b.uniform2f(d.Og,f,c));d.ml&&b.uniform1f(d.ml,R()/1E3);if(d.L.length)for(a=0,c=d.L.length;a<c;a++)f=this.mp[a],f!==d.bl[a]&&(d.bl[a]=f,b.uniform1f(d.L[a][1],f))};e.prototype.Ac=function(){this.Uc===this.od.length&&this.od.push(new b(0,this));return this.od[this.Uc++]};e.prototype.Ud=function(){if(0!==this.Uc&&!this.n.isContextLost()){var a=this.n;0<this.Gf&&(a.bindBuffer(a.ARRAY_BUFFER,this.Kl),a.bufferData(a.ARRAY_BUFFER,this.To.subarray(0,this.Gf),
a.STREAM_DRAW),c&&0<=c.yc&&"<point>"===c.name&&a.vertexAttribPointer(c.yc,4,a.FLOAT,!1,0,0));if(0<this.hd){var c=this.eg;a.bindBuffer(a.ARRAY_BUFFER,this.zh[this.qd]);a.bufferData(a.ARRAY_BUFFER,this.Am.subarray(0,this.hd),a.STREAM_DRAW);c&&0<=c.yc&&"<point>"!==c.name&&a.vertexAttribPointer(c.yc,2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.th[this.qd]);a.bufferData(a.ARRAY_BUFFER,this.mm.subarray(0,this.hd),a.STREAM_DRAW);c&&0<=c.Zd&&"<point>"!==c.name&&a.vertexAttribPointer(c.Zd,2,a.FLOAT,
!1,0,0)}for(var d,a=0,c=this.Uc;a<c;a++)switch(d=this.od[a],d.type){case 1:d.ur();break;case 2:d.Er();break;case 3:d.Br();break;case 4:d.Ar();break;case 5:d.Gr();break;case 6:d.wr();break;case 7:d.sr();break;case 8:d.tr();break;case 9:d.Cr();break;case 10:d.Dr();break;case 11:d.Fr()}this.Gf=this.hd=this.Uc=0;this.Xb=this.Fb=!1;this.qd++;4<=this.qd&&(this.qd=0)}};e.prototype.Re=function(a){if(a!==this.Vn){var c=this.Ac();c.type=3;this.Vn=c.Ho=a;this.Xb=this.Fb=!1}};e.prototype.ac=function(a){if(a!==
this.Ie){var c=this.Ac();c.type=2;this.Ie=c.Rc=a;this.Xb=this.Fb=!1}};e.prototype.ee=function(a,c){if(a!==this.Wn||c!==this.Tn){var d=this.Ac();d.type=4;d.oc=a;d.vc=c;this.Wn=a;this.Tn=c;this.Xb=this.Fb=!1}};e.prototype.hp=function(){this.ee(this.n.ONE,this.n.ONE_MINUS_SRC_ALPHA)};e.prototype.jh=function(a,c,d,b,f,g,h,q){15992<=this.hd&&this.Ud();var n=this.hd,e=this.Am,k=this.mm;if(this.Fb)this.od[this.Uc-1].vc+=6;else{var l=this.Ac();l.type=1;l.oc=n/4*3;l.vc=6;this.Fb=!0;this.Xb=!1}e[n]=a;k[n++]=
0;e[n]=c;k[n++]=0;e[n]=d;k[n++]=1;e[n]=b;k[n++]=0;e[n]=f;k[n++]=1;e[n]=g;k[n++]=1;e[n]=h;k[n++]=0;e[n]=q;k[n++]=1;this.hd=n};e.prototype.Gd=function(a,c,d,b,f,g,h,q,n){15992<=this.hd&&this.Ud();var e=this.hd,k=this.Am,l=this.mm;if(this.Fb)this.od[this.Uc-1].vc+=6;else{var w=this.Ac();w.type=1;w.oc=e/4*3;w.vc=6;this.Fb=!0;this.Xb=!1}var w=n.left,A=n.top,s=n.right;n=n.bottom;k[e]=a;l[e++]=w;k[e]=c;l[e++]=A;k[e]=d;l[e++]=s;k[e]=b;l[e++]=A;k[e]=f;l[e++]=s;k[e]=g;l[e++]=n;k[e]=h;l[e++]=w;k[e]=q;l[e++]=
n;this.hd=e};e.prototype.Mt=function(a,c,d,b){7996<=this.Gf&&this.Ud();var f=this.Gf,g=this.To;if(this.Xb)this.od[this.Uc-1].vc++;else{var h=this.Ac();h.type=8;h.oc=f;h.vc=1;this.Xb=!0;this.Fb=!1}g[f++]=a;g[f++]=c;g[f++]=d;g[f++]=b;this.Gf=f};e.prototype.ed=function(a){if(this.Ag!==a){if(!this.Sa[a]){if(0===this.Ag)return;a=0}var c=this.Ac();c.type=9;this.Ag=c.oc=a;this.Xb=this.Fb=!1}};e.prototype.hh=function(a){a=this.Sa[a];return!(!a.Me&&!a.Le)};e.prototype.Ml=function(a){a=this.Sa[a];return!!(a.Me||
a.Le||a.hn)};e.prototype.St=function(a){a=this.Sa[a];return 0!==a.sk||0!==a.tk};e.prototype.As=function(a){return this.Sa[a].sk};e.prototype.Bs=function(a){return this.Sa[a].tk};e.prototype.Cs=function(a,c){return this.Sa[a].L[c][2]};e.prototype.dj=function(a){return this.Sa[a].Xm};e.prototype.If=function(a,c,d,b,f,g,h,q,n,e,k,l,w,A){var s=this.Sa[this.Ag],p,B;if(s.Ws||A.length){p=this.Ac();p.type=10;p.ga?Wb(this.zc,p.ga):p.ga=Vb();B=p.ga;B[0]=c;B[1]=d;B[2]=b;B[3]=f;B[4]=g;B[5]=h;B[6]=q;B[7]=n;B[8]=
e;B[9]=k;B[10]=l;B[11]=w;p.Rc=s.Ng?a:null;if(A.length)for(d=p.mp,d.length=A.length,a=0,c=A.length;a<c;a++)d[a]=A[a];this.Xb=this.Fb=!1}};e.prototype.clear=function(a,c,d,b){var f=this.Ac();f.type=7;f.oc=0;f.ga||(f.ga=Vb());f.ga[0]=a;f.ga[1]=c;f.ga[2]=d;f.ga[3]=b;this.Xb=this.Fb=!1};e.prototype.clearRect=function(a,c,d,b){if(!(0>d||0>b)){var f=this.Ac();f.type=7;f.oc=1;f.ga||(f.ga=Vb());f.ga[0]=a;f.ga[1]=c;f.ga[2]=d;f.ga[3]=b;this.Xb=this.Fb=!1}};e.prototype.Rt=function(){this.Ud();this.n.flush()};
var h=[],q={};e.prototype.hr=function(){h.length=0;q={}};e.prototype.vf=function(a,c,d,b){c=!!c;d=!!d;var f=a.src+","+c+","+d+(c?",undefined":""),g=null;if("undefined"!==typeof a.src&&q.hasOwnProperty(f))return g=q[f],g.Lh++,g;this.Ud();var e=this.n,k=ga(a.width)&&ga(a.height),g=e.createTexture();e.bindTexture(e.TEXTURE_2D,g);e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var n=e.RGBA,C=e.RGBA,u=e.UNSIGNED_BYTE;if(b&&!this.of)switch(b){case 1:C=n=e.RGB;break;case 2:u=e.UNSIGNED_SHORT_4_4_4_4;
break;case 3:u=e.UNSIGNED_SHORT_5_5_5_1;break;case 4:C=n=e.RGB,u=e.UNSIGNED_SHORT_5_6_5}if(!k&&c){b=document.createElement("canvas");b.width=ha(a.width);b.height=ha(a.height);var l=b.getContext("2d");l.webkitImageSmoothingEnabled=d;l.mozImageSmoothingEnabled=d;l.msImageSmoothingEnabled=d;l.imageSmoothingEnabled=d;l.drawImage(a,0,0,a.width,a.height,0,0,b.width,b.height);e.texImage2D(e.TEXTURE_2D,0,n,C,u,b)}else e.texImage2D(e.TEXTURE_2D,0,n,C,u,a);c?(e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.REPEAT),
e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.REPEAT)):(e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE));d?(e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),k&&this.ln?(e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR_MIPMAP_LINEAR),e.generateMipmap(e.TEXTURE_2D)):e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR)):(e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,
e.TEXTURE_MIN_FILTER,e.NEAREST));e.bindTexture(e.TEXTURE_2D,null);this.Ie=null;g.bg=a.width;g.ag=a.height;g.Lh=1;g.bn=f;h.push(g);return q[f]=g};e.prototype.Td=function(a,c,d){var b;this.Ud();var f=this.n;this.of&&(b=!1);var g=f.createTexture();f.bindTexture(f.TEXTURE_2D,g);f.texImage2D(f.TEXTURE_2D,0,f.RGBA,a,c,0,f.RGBA,b?f.UNSIGNED_SHORT_4_4_4_4:f.UNSIGNED_BYTE,null);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_S,f.CLAMP_TO_EDGE);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_T,f.CLAMP_TO_EDGE);f.texParameteri(f.TEXTURE_2D,
f.TEXTURE_MAG_FILTER,d?f.LINEAR:f.NEAREST);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,d?f.LINEAR:f.NEAREST);f.bindTexture(f.TEXTURE_2D,null);this.Ie=null;g.bg=a;g.ag=c;h.push(g);return g};e.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.Lh&&1<a.Lh?a.Lh--:(this.Ud(),a===this.Ie&&(this.n.bindTexture(this.n.TEXTURE_2D,null),this.Ie=null),a===this.Je&&(this.n.activeTexture(this.n.TEXTURE1),this.n.bindTexture(this.n.TEXTURE_2D,null),this.n.activeTexture(this.n.TEXTURE0),this.Je=
null),wa(h,a),"undefined"!==typeof a.bn&&delete q[a.bn],this.n.deleteTexture(a)))};e.prototype.dd=function(a){if(a!==this.cp){var c=this.Ac();c.type=6;this.cp=c.Rc=a;this.Xb=this.Fb=!1}};cb=e})();
(function(){function e(){return"undefined"!==typeof jQuery?jQuery(window).width():window.innerWidth}function k(){return"undefined"!==typeof jQuery?jQuery(window).height():window.innerHeight}function b(a){if(a&&(a.getContext||a.dc)&&!a.c2runtime){a.c2runtime=this;var c=this;this.wc=(this.vg=/crosswalk/i.test(navigator.userAgent)||/xwalk/i.test(navigator.userAgent)||!("undefined"===typeof window.c2isCrosswalk||!window.c2isCrosswalk))||"undefined"!==typeof window.device&&("undefined"!==typeof window.device.cordova||
"undefined"!==typeof window.device.phonegap)||"undefined"!==typeof window.c2isphonegap&&window.c2isphonegap;this.eb=!!a.dc;this.mf="undefined"!==typeof window.AppMobi||this.eb;this.jc=!!window.c2cocoonjs;this.Kc=!!window.c2ejecta;this.jc&&(CocoonJS.App.onSuspended.addEventListener(function(){c.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){c.setSuspended(!1)}));this.Kc&&(document.addEventListener("pagehide",function(){c.setSuspended(!0)}),document.addEventListener("pageshow",
function(){c.setSuspended(!1)}),document.addEventListener("resize",function(){c.setSize(window.innerWidth,window.innerHeight)}));this.ka=this.eb||this.jc||this.Kc;this.of=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent);this.On=/tizen/i.test(navigator.userAgent);this.si=/android/i.test(navigator.userAgent)&&!this.On&&!this.of;this.$k=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&!this.of;this.Sn=/ipad/i.test(navigator.userAgent);
this.Ai=this.$k||this.Sn||this.Kc;this.ot=this.$k&&/os\s6/i.test(navigator.userAgent);this.ug=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent);this.Ln=/amazonwebappplatform/i.test(navigator.userAgent);this.ht=/firefox/i.test(navigator.userAgent);this.Nn=/safari/i.test(navigator.userAgent)&&!this.ug&&!this.of;this.kt=/windows/i.test(navigator.userAgent);this.Xd="undefined"!==typeof window.c2nodewebkit||/nodewebkit/i.test(navigator.userAgent);this.mt=!("undefined"===typeof window.c2isWindows8||
!window.c2isWindows8);this.nt=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.vi=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.Qn=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.Pn=this.mt||this.nt||this.Qn;this.et=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.ti=this.si&&!this.ug&&!this.vg&&!this.ht&&!this.Ln&&!this.ka;this.devicePixelRatio=1;this.Zc=this.wc||
this.vg||this.mf||this.jc||this.si||this.Ai||this.vi||this.Qn||this.et||this.On||this.Kc;this.Zc||(this.Zc=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));"undefined"===typeof cr_is_preview||this.Xd||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)||(this.Xd=!0);this.gt="undefined"!==typeof cr_is_preview&&-1<window.location.search.indexOf("debug");this.canvas=a;this.en=document.getElementById("c2canvasdiv");
this.ja=this.u=this.n=null;this.yk="";this.ei=!1;this.Fo=this.Go=0;this.canvas.oncontextmenu=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.onselectstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.eb&&(window.c2runtime=this);this.Xd&&(window.ondragover=function(a){a.preventDefault();return!1},window.ondrop=function(a){a.preventDefault();return!1},require("nw.gui").App.clearCache());this.ti&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow",
"visible");this.width=a.width;this.height=a.height;this.P=this.width;this.O=this.height;this.Th=this.width;this.Sh=this.height;this.Cg=window.innerWidth;this.Bg=window.innerHeight;this.ms=!1;this.ea=!0;this.xg=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.q=[];this.Ja=[];this.il={};this.Zb=[];this.qk={};this.vd=[];this.Yf=[];this.Fj=[];this.Sj=[];this.Vq=[];this.sp=null;this.ue={};this.Wk=this.Wd=!1;this.Bd=0;this.Yk=!1;this.Hc=[];this.Cd=this.ub=this.Ig=this.kj=
"";this.rh=this.pp=!1;this.ek=this.Qg=this.ud=this.xe=0;this.Sf=1;this.kc=new Ua;this.jd=new Ua;this.Di=0;this.vo=!0;this.Pi=this.gi=this.rk=this.Te=this.Dg=this.xk=0;this.re=null;this.lk=[];this.pk=[];this.ai=-1;this.nl=[[]];this.rm=this.Li=0;this.Ol(null);this.hg=this.Ao=this.Ug=0;this.sh=[];this.Bj=this.ej=-1;this.tf=!0;this.Ji=0;this.wg=!1;this.mu=0;this.Ze=null;this.Us=!1;this.cl=0;this.ra=this.kf=this.Ql=!1;this.Eo=new ba;this.xl=new ba;this.yl=new ba;this.bp=[];this.Qc=new Wa([]);this.lm=new Wa([]);
this.Pd=[];this.mi={};this.bf={};this.Ye={};this.Xf={};this.Zm={};this.Zn=this.Fi=this.Yb=this.lc=this.Yn=this.Ei=this.ha=null;this.Vf=this.Zk=!1;this.zk=[null,null];this.Ae=0;this.vk="";this.$d={};this.qj=this.wf=null;this.Oi=[];this.Wt()}}function h(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function q(a,c,d,b){var f=indexedDB.open("_C2SaveStates");f.onupgradeneeded=h;f.onerror=b;f.onsuccess=function(f){f=f.target.result;f.onerror=b;f.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,
data:c}).onsuccess=d}}function a(a,c,d){var b=indexedDB.open("_C2SaveStates");b.onupgradeneeded=h;b.onerror=d;b.onsuccess=function(b){b=b.target.result;b.onerror=d;var f=b.transaction(["saves"]).objectStore("saves").get(a);f.onsuccess=function(){f.result?c(f.result.data):c(null)}}}function c(){I("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?window.location.reload(!0):window.location+="?continuous"}function d(a){var c,d=
{};for(c in a)!a.hasOwnProperty(c)||a[c]instanceof ba||a[c]&&"undefined"!==typeof a[c].Ev||(d[c]=a[c]);return d}b.prototype.Wt=function(){var a=this,c;c=this.vi?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest;c.open("GET","data.js",!0);var d=!1;if(!this.ka&&"response"in c&&"responseType"in c)try{c.responseType="json",d="json"===c.responseType}catch(b){d=!1}if(!d&&"responseType"in c)try{c.responseType="text"}catch(f){}if("overrideMimeType"in c)try{c.overrideMimeType("application/json; charset=utf-8")}catch(m){}c.onload=
function(){if(d)a.jl(c.response);else if(a.Kc){var b=c.responseText,b=b.substr(b.indexOf("{"));a.jl(JSON.parse(b))}else a.jl(JSON.parse(c.responseText))};c.onerror=function(a){ea("Error requesting data.js:");ea(a)};c.send()};b.prototype.$s=function(){var a=this,c,d,b,f,m,l,g,h,n;this.devicePixelRatio=(this.Ge=(!this.ka||this.Kc)&&this.vu&&!this.ti)?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.jb();d=!(!this.ms&&(!this.Uj||
this.Xd||this.Pn||this.vi||this.vg||this.wc||this.Ln));0<this.rb&&this.setSize(e(),k(),!0);try{this.Jr&&(this.jc||this.Kc||!this.ka)&&(c={alpha:d,depth:!1,antialias:!1,failIfMajorPerformanceCaveat:!0},this.n=this.canvas.getContext("webgl",c)||this.canvas.getContext("experimental-webgl",c))}catch(q){}if(this.n){this.ka||(this.fb=document.createElement("canvas"),jQuery(this.fb).appendTo(this.canvas.parentNode),this.fb.oncontextmenu=function(){return!1},this.fb.onselectstart=function(){return!1},this.fb.width=
this.Th,this.fb.height=this.Sh,jQuery(this.fb).css({width:this.Th+"px",height:this.Sh+"px"}),this.Vo(),this.Il=this.fb.getContext("2d"));this.u=new cb(this.n,this.Zc);this.u.Jf(this.canvas.width,this.canvas.height);this.u.ln=0!==this.Hr;this.ja=null;this.canvas.addEventListener("webglcontextlost",function(c){c.preventDefault();a.At();I("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){a.u.Gn();a.u.Jf(a.u.width,a.u.height,
!0);a.lc=null;a.Yb=null;a.zk[0]=null;a.zk[1]=null;a.Bt();a.ea=!0;I("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);c=0;for(d=this.q.length;c<d;c++)for(m=this.q[c],b=0,f=m.K.length;b<f;b++)g=m.K[b],g.gb=this.u.Hk(g.id),this.Vf=this.Vf||this.u.hh(g.gb);c=0;for(d=this.Zb.length;c<d;c++){h=this.Zb[c];b=0;for(f=h.K.length;b<f;b++)g=h.K[b],g.gb=this.u.Hk(g.id);b=0;for(f=h.R.length;b<f;b++)for(n=h.R[b],m=0,l=n.K.length;m<l;m++)g=n.K[m],g.gb=this.u.Hk(g.id),this.Vf=this.Vf||this.u.hh(g.gb)}}else{if(0<
this.rb&&this.eb){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.ja=AppMobi.canvas.getContext("2d");try{this.ja.samplingMode=this.X?"smooth":"sharp",this.ja.globalScale=1,this.ja.HTML5CompatibilityMode=!0,this.ja.imageSmoothingEnabled=this.X}catch(w){}0!==this.width&&0!==this.height&&(this.ja.width=this.width,this.ja.height=this.height)}this.ja||(c=this.jc?{antialias:!!this.X,alpha:d}:{alpha:d},this.ja=this.canvas.getContext("2d",c),this.ja.webkitImageSmoothingEnabled=
this.X,this.ja.mozImageSmoothingEnabled=this.X,this.ja.msImageSmoothingEnabled=this.X,this.ja.imageSmoothingEnabled=this.X);this.Il=this.fb=null}this.Aj=function(){a.Ga(!1)};window==window.top||this.ka||this.Pn||this.vi||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.jc&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&
(I("Reloading for continuous preview"),this.Ig="__c2_continuouspreview",this.rh=!0),this.Kt&&!this.Zc&&(jQuery(window).focus(function(){a.setSuspended(!1)}),jQuery(window).blur(function(){a.setSuspended(!0)})));this.ka||(c=function(a){bb(a)&&document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur&&document.activeElement.blur()},window.navigator.pointerEnabled?document.addEventListener("pointerdown",c):window.navigator.msPointerEnabled?
document.addEventListener("MSPointerDown",c):document.addEventListener("touchstart",c),document.addEventListener("mousedown",c));0===this.rb&&this.Ge&&1<this.devicePixelRatio&&this.setSize(this.$a,this.Za,!0);this.Cp();this.Rs();this.go();this.Ba={}};b.prototype.setSize=function(a,c,d){var b=0,f=0,m=0,l=0,l=0,g=this.ot&&this.Nn&&!navigator.standalone&&!this.ka&&!this.wc;g&&(c+=60);if(this.Cg!==a||this.Bg!==c||d){this.Cg=a;this.Bg=c;var h=this.rb,e=(document.mozFullScreen||document.webkitIsFullScreen||
!!document.msFullscreenElement||document.fullScreen||this.wg)&&!this.wc;if(e||0!==this.rb||d)e&&0<this.Ae&&(h=this.Ae),d=this.devicePixelRatio,4<=h?(m=this.$a/this.Za,a/c>m?(m*=c,5===h?(l=m*d/this.$a,1<l?l=Math.floor(l):1>l&&(l=1/Math.ceil(1/l)),m=this.$a*l/d,l=this.Za*l/d,b=(a-m)/2,f=(c-l)/2,a=m,c=l):(b=(a-m)/2,a=m)):(l=a/m,5===h?(l=l*d/this.Za,1<l?l=Math.floor(l):1>l&&(l=1/Math.ceil(1/l)),m=this.$a*l/d,l=this.Za*l/d,b=(a-m)/2,f=(c-l)/2,a=m):f=(c-l)/2,c=l),e&&!this.Xd&&(f=b=0)):this.Xd&&this.wg&&
0===this.sn&&(b=Math.floor((a-this.$a)/2),f=Math.floor((c-this.Za)/2),a=this.$a,c=this.Za),2>h&&(this.$f=d),this.Ge&&this.Sn&&1<d&&(1024<=a&&(a=1023),1024<=c&&(c=1023)),this.Th=Math.round(a),this.Sh=Math.round(c),this.width=Math.round(a*d),this.height=Math.round(c*d),this.ea=!0,this.Op?(this.P=this.width,this.O=this.height,this.uc=!0):this.width<this.$a&&this.height<this.Za||1===h?(this.P=this.width,this.O=this.height,this.uc=!0):(this.P=this.$a,this.O=this.Za,this.uc=!1,2===h?(m=this.$a/this.Za,
h=this.Cg/this.Bg,h<m?this.P=this.O*h:h>m&&(this.O=this.P/h)):3===h&&(m=this.$a/this.Za,h=this.Cg/this.Bg,h>m?this.P=this.O*h:h<m&&(this.O=this.P/h))),this.en&&!this.ka&&(jQuery(this.en).css({width:Math.round(a)+"px",height:Math.round(c)+"px","margin-left":Math.floor(b)+"px","margin-top":Math.floor(f)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(a)+"px",height:Math.round(c)+"px"})),this.canvas&&(this.canvas.width=Math.round(a*d),this.canvas.height=Math.round(c*
d),this.Kc?(this.canvas.style.left=Math.floor(b)+"px",this.canvas.style.top=Math.floor(f)+"px",this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(c)+"px"):this.Ge&&!this.ka&&jQuery(this.canvas).css({width:Math.round(a)+"px",height:Math.round(c)+"px"})),this.fb&&(this.fb.width=Math.round(a),this.fb.height=Math.round(c),jQuery(this.fb).css({width:Math.round(a)+"px",height:Math.round(c)+"px"})),this.u&&this.u.Jf(Math.round(a*d),Math.round(c*d)),this.eb&&this.ja&&(this.ja.width=
Math.round(a),this.ja.height=Math.round(c)),this.ja&&(this.ja.webkitImageSmoothingEnabled=this.X,this.ja.mozImageSmoothingEnabled=this.X,this.ja.msImageSmoothingEnabled=this.X,this.ja.imageSmoothingEnabled=this.X),this.Cp(),this.ka||!g&&!this.$k||window.setTimeout(function(){window.scrollTo(0,1)},100)}};b.prototype.Cp=function(){if(this.Xq&&0!==this.Gl){var a="portrait";2===this.Gl&&(a="landscape");screen.orientation&&screen.orientation.lock?screen.orientation.lock(a):screen.lockOrientation?screen.lockOrientation(a):
screen.webkitLockOrientation?screen.webkitLockOrientation(a):screen.mozLockOrientation?screen.mozLockOrientation(a):screen.msLockOrientation&&screen.msLockOrientation(a)}};b.prototype.At=function(){this.u.hr();this.Zk=!0;var a,c,d;a=0;for(c=this.q.length;a<c;a++)d=this.q[a],d.Qi&&d.Qi()};b.prototype.Bt=function(){this.Zk=!1;var a,c,d;a=0;for(c=this.q.length;a<c;a++)d=this.q[a],d.Ri&&d.Ri()};b.prototype.Vo=function(){if(!this.ka){var a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||
document.msFullscreenElement||this.wg)&&!this.wc?jQuery(this.canvas).offset():jQuery(this.canvas).position();a.position="absolute";jQuery(this.fb).css(a)}};var m=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;b.prototype.setSuspended=function(a){var c;if(a&&!this.xg)for(I("[Construct 2] Suspending"),this.xg=!0,-1!==this.ej&&m&&m(this.ej),-1!==this.Bj&&clearTimeout(this.Bj),a=0,c=this.sh.length;a<
c;a++)this.sh[a](!0);else if(!a&&this.xg){I("[Construct 2] Resuming");this.xg=!1;this.Di=R();this.Dg=R();a=this.Qg=this.gi=0;for(c=this.sh.length;a<c;a++)this.sh[a](!1);this.Ga(!1)}};b.prototype.Tq=function(a){this.sh.push(a)};b.prototype.Md=function(a){return this.Oi[a]};b.prototype.jl=function(a){a&&a.project||ea("Project model unavailable");a=a.project;this.name=a[0];this.rn=a[1];this.rb=a[12];this.sn=a[12];this.$a=a[10];this.Za=a[11];this.Oo=this.$a/2;this.Po=this.Za/2;this.ka&&!this.Kc&&(4<=
a[12]||0===a[12])&&(I("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.sn=this.rb=3);this.ym=a[18];this.Kg=a[19];0===this.Kg&&(this.wf=new Image,this.wf.src="loading-logo.png");this.Ug=a[21];this.Oi=$b();this.fd=new W(this);var c,d,b,f,m,l,g,h,e;c=0;for(d=a[2].length;c<d;c++)g=a[2][c],b=this.Md(g[0]),db(g,b.prototype),e=new b(this),e.oj=g[1],e.Yd=g[2],e.zo=g[9],e.aa&&e.aa(),this.plugins.push(e);this.Oi=$b();c=0;for(d=a[3].length;c<
d;c++){g=a[3][c];m=this.Md(g[1]);e=null;b=0;for(f=this.plugins.length;b<f;b++)if(this.plugins[b]instanceof m){e=this.plugins[b];break}var n=new e.ya(e);n.name=g[0];n.C=g[2];n.Vk=g[3].slice(0);n.xu=g[3].length;n.Yq=g[4];n.os=g[5];n.U=g[11];n.C?(n.Ni=[],n.wd=this.hg++,n.xa=null):(n.Ni=null,n.wd=-1,n.xa=[]);n.ci=null;n.ef=null;n.nn=null;n.Lc=!1;n.Ub=null;g[6]?(n.xj=g[6][0],n.yj=g[6][1],n.uh=g[6][2]):(n.xj=null,n.yj=0,n.uh=0);n.Sb=g[7]?g[7]:null;n.index=c;n.c=[];n.Xh=[];n.he=[new eb(n)];n.td=0;n.Wc=null;
n.or=0;n.Of=!0;n.Hj=fb;n.ts=gb;n.ys=hb;n.pa=ib;n.ih=jb;n.Nl=kb;n.Hf=lb;n.ii=mb;n.Bk=pb;n.Ek=qb;n.nd=rb;n.yn=sb;n.Ph=new Xa(this.$a,this.Za);n.Dh=!0;n.Eh=!1;n.Ba={};n.toString=tb;n.Ja=[];b=0;for(f=g[8].length;b<f;b++){h=g[8][b];var q=this.Md(h[1]),w=null;m=0;for(l=this.Ja.length;m<l;m++)if(this.Ja[m]instanceof q){w=this.Ja[m];break}w||(w=new q(this),w.ul=[],w.Af=new ba,w.aa&&w.aa(),this.Ja.push(w),Sb.lu&&w instanceof Sb.lu&&(this.sp=w));-1===w.ul.indexOf(n)&&w.ul.push(n);m=new w.ya(w,n);m.name=h[0];
m.U=h[2];m.aa();n.Ja.push(m)}n.global=g[9];n.Xk=g[10];n.K=[];b=0;for(f=g[12].length;b<f;b++)n.K.push({id:g[12][b][0],name:g[12][b][1],gb:-1,Xa:!0,index:b});n.Tv=g[13];this.ym&&!n.C&&!n.Xk&&e.Yd||n.aa();n.name&&(this.types[n.name]=n);this.q.push(n);e.oj&&(b=new e.na(n),b.uid=this.Ug++,b.Yo=this.Ao++,b.Ee=0,b.mg=ub,b.toString=vb,b.M=g[14],b.aa(),n.c.push(b),this.$d[b.uid.toString()]=b)}c=0;for(d=a[4].length;c<d;c++)for(m=a[4][c],l=this.q[m[0]],b=1,f=m.length;b<f;b++)g=this.q[m[b]],g.xa.push(l),l.Ni.push(g);
c=0;for(d=a[27].length;c<d;c++){m=a[27][c];l=[];b=0;for(f=m.length;b<f;b++)l.push(this.q[m[b]]);b=0;for(f=l.length;b<f;b++)l[b].Lc=!0,l[b].Ub=l}if(0<this.hg)for(c=0,d=this.q.length;c<d;c++)if(g=this.q[c],!g.C&&g.xa.length){g.ci=Array(this.hg);g.ef=Array(this.hg);g.nn=Array(this.hg);n=[];b=w=q=h=0;for(f=g.xa.length;b<f;b++)for(e=g.xa[b],g.ci[e.wd]=h,h+=e.xu,g.ef[e.wd]=q,q+=e.Yq,g.nn[e.wd]=w,w+=e.os,m=0,l=e.K.length;m<l;m++)n.push(ra({},e.K[m]));g.K=n.concat(g.K);b=0;for(f=g.K.length;b<f;b++)g.K[b].index=
b}c=0;for(d=a[5].length;c<d;c++)g=a[5][c],b=new wb(this,g),this.il[b.name]=b,this.Zb.push(b);c=0;for(d=a[6].length;c<d;c++)g=a[6][c],b=new xb(this,g),this.qk[b.name]=b,this.vd.push(b);c=0;for(d=this.vd.length;c<d;c++)this.vd[c].Fa();c=0;for(d=this.vd.length;c<d;c++)this.vd[c].um();c=0;for(d=this.Fj.length;c<d;c++)this.Fj[c].Fa();this.Fj.length=0;this.Wq=a[7];this.vk=a[8];this.cd=a[9];this.$f=1;this.Jr=a[13];this.X=a[14];this.Uj=a[15];this.vu=a[17];this.Gl=a[20];this.Xq=0<this.Gl;this.Kt=a[22];this.uc=
this.Op=a[23];this.Hr=a[24];this.Qt=a[25];this.tj=Date.now();this.Oi.length=0;this.$s()};var f=!1;b.prototype.Cm=function(a,c){a.cocoonLazyLoad=!0;a.onerror=function(c){f=a.an=!0;console&&console.error&&console.error("Error loading image '"+a.src+"': ",c)};this.Kc?a.src=c:a.src||("undefined"!==typeof XAPKReader?XAPKReader.get(c,function(c){a.src=c},function(d){f=a.an=!0;console&&console.error&&console.error("Error extracting image '"+c+"' from expansion file: ",d)}):a.src=c);this.Yf.push(a)};b.prototype.ls=
function(a){var c,d;c=0;for(d=this.Yf.length;c<d;c++)if(this.Yf[c].jr===a)return this.Yf[c];return null};var g=0,r=!1;b.prototype.Rs=function(){this.Ze&&(g=this.Ze.iu(this.Wq))};b.prototype.Ym=function(){var a=g,c=0,d=0,b=!0,f,m,d=0;for(f=this.Yf.length;d<f;d++){m=this.Yf[d];var l=m.fk;if(!l||0>=l)l=5E4;a+=l;m.src&&(m.complete||m.loaded)&&!m.an?c+=l:b=!1}b&&this.Qt&&this.Ze&&(r||(this.Ze.nu(),r=!0),d=this.Ze.zs(),c+=d,d<g&&(b=!1));this.Qe=0==a?0:c/a;return b};b.prototype.go=function(){if(this.ja||
this.u){var a=this.ja||this.Il;this.fb&&this.Vo();this.Qe=0;this.Xn=-1;if(this.Ym())this.Ss();else{var c=Date.now()-this.tj;if(a){var d=this.width,b=this.height,m=this.devicePixelRatio;this.fb&&(d=this.Th,b=this.Sh,m=1);if(3!==this.Kg&&(this.jc||500<=c&&this.Xn!=this.Qe)){a.clearRect(0,0,d,b);var c=d/2,b=b/2,d=0===this.Kg&&this.wf.complete,l=40*m,g=0,n=80*m,h;d&&(n=this.wf.width*m,h=this.wf.height*m,l=n/2,g=h/2,a.drawImage(this.wf,O(c-l),O(b-g),n,h));1>=this.Kg?(c=O(c-l)+.5,b=O(b+(g+(d?12*m:0)))+
.5,a.fillStyle=f?"red":"DodgerBlue",a.fillRect(c,b,Math.floor(n*this.Qe),6*m),a.strokeStyle="black",a.strokeRect(c,b,n,6*m),a.strokeStyle="white",a.strokeRect(c-1*m,b-1*m,n+2*m,8*m)):2===this.Kg&&(a.font=this.Kc?"12pt ArialMT":"12pt Arial",a.fillStyle=f?"#f00":"#999",a.Sv="middle",m=Math.round(100*this.Qe)+"%",d=a.measureText?a.measureText(m):null,a.fillText(m,c-(d?d.width:0)/2,b))}this.Xn=this.Qe}setTimeout(function(a){return function(){a.go()}}(this),this.jc?10:100)}}};b.prototype.Ss=function(){this.fb&&
(this.canvas.parentNode.removeChild(this.fb),this.fb=this.Il=null);this.tj=Date.now();this.Dg=R();var a,c,d;if(this.ym)for(a=0,c=this.q.length;a<c;a++)d=this.q[a],d.C||d.Xk||!d.Ea.Yd||d.aa();else this.tf=!1;a=0;for(c=this.Zb.length;a<c;a++)this.Zb[a].kr();2<=this.rb&&(a=this.$a/this.Za,c=this.width/this.height,this.$f=2!==this.rb&&c>a||2===this.rb&&c<a?this.height/this.Za:this.width/this.$a);this.rn?this.il[this.rn].jm():this.Zb[0].jm();this.ym||(this.Ji=1,this.trigger(W.prototype.i.Jm,null));navigator.splashscreen&&
navigator.splashscreen.hide&&navigator.splashscreen.hide();a=0;for(c=this.q.length;a<c;a++)d=this.q[a],d.zt&&d.zt();this.Ga(!1);this.eb&&AppMobi.webview.execute("onGameReady();")};var y=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;b.prototype.Ga=function(a){if(this.ha){var c=R();if(this.Us&&this.Ql&&29>c-this.cl)this.Ql=!1,this.cl=c,y?this.ej=y(this.Aj,this.canvas):this.Bj=setTimeout(this.Aj,
this.Zc?1:16);else{this.Ql=!0;this.cl=c;var d=this.rb,b=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.wc;(b||this.wg)&&0<this.Ae&&(d=this.Ae);0<d&&(!this.Ai||window.self!==window.top)&&(d=window.innerHeight,this.Cg===window.innerWidth&&this.Bg===d||this.setSize(e(),k()));this.ka||(b?(this.ei||(this.yk=jQuery(this.canvas).css("margin")||"0",this.ei=!0),this.ug||this.Xd||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.ei?(this.ug||this.Xd||jQuery(this.canvas).css("margin",this.yk),this.yk="",this.ei=!1,0===this.rb&&this.setSize(Math.round(this.Go/this.devicePixelRatio),Math.round(this.Fo/this.devicePixelRatio),!0)):(this.Go=this.width,this.Fo=this.height));this.tf&&(b=this.Ym(),this.Ji=this.Qe,b&&(this.tf=!1,this.Qe=1,this.trigger(W.prototype.i.Jm,null)));this.tt();!this.ea&&!this.jc||
this.Zk||this.rh||a||(this.ea=!1,this.u?this.Vb():this.Ic(),this.qj&&(this.canvas&&this.canvas.toDataURL&&(this.canvas.toDataURL(this.qj[0],this.qj[1]),this.trigger(W.prototype.i.mq,null)),this.qj=null));this.Mv||(this.Te++,this.rk++,this.gi++);this.Qg+=R()-c;this.xg||a||(y?this.ej=y(this.Aj,this.canvas):this.Bj=setTimeout(this.Aj,this.Zc?1:16))}}};b.prototype.tt=function(){var a,c,d,b,f,m,l,g,n;a=R();1E3<=a-this.Dg&&(this.Dg+=1E3,this.xk=this.gi,this.gi=0,this.ek=this.Qg,this.Qg=0);this.vo&&(0!==
this.Di&&(c=a-this.Di,0!==c||this.gt?(this.ud=c/1E3,.5<this.ud?this.ud=0:.1<this.ud&&(this.ud=.1)):(10<=this.Uv&&(this.vo=!1),this.ud=1/60)),this.Di=a);this.xe=this.ud*this.Sf;this.kc.add(this.xe);this.jd.add(this.ud);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.wg)&&!this.wc;2<=this.rb||a&&0<this.Ae?(c=this.$a/this.Za,d=this.width/this.height,b=this.rb,a&&0<this.Ae&&(b=this.Ae),this.$f=2!==b&&d>c||2===b&&d<c?this.height/this.Za:
this.width/this.$a,this.ha&&(this.ha.fp(this.ha.scrollX),this.ha.gp(this.ha.scrollY))):this.$f=this.Ge?this.devicePixelRatio:1;this.jb();this.Bd++;this.fd.Zt();this.Bd--;this.jb();this.Bd++;d=this.Eo.Sc();a=0;for(c=d.length;a<c;a++)d[a].Ov();a=0;for(c=this.q.length;a<c;a++)if(l=this.q[a],!l.C&&(l.Ja.length||l.xa.length))for(d=0,b=l.c.length;d<b;d++)for(g=l.c[d],f=0,m=g.J.length;f<m;f++)g.J[f].Ga();a=0;for(c=this.q.length;a<c;a++)if(l=this.q[a],!l.C&&(l.Ja.length||l.xa.length))for(d=0,b=l.c.length;d<
b;d++)for(g=l.c[d],f=0,m=g.J.length;f<m;f++)n=g.J[f],n.Pt&&n.Pt();d=this.xl.Sc();a=0;for(c=d.length;a<c;a++)d[a].Ga();this.Bd--;this.Vs();for(a=0;this.re&&10>a++;)this.kn(this.re);a=0;for(c=this.vd.length;a<c;a++)this.vd[a].Ok=!1;this.ha.ye&&this.ha.ye.Ra();this.bp.length=0;this.Bd++;a=0;for(c=this.q.length;a<c;a++)if(l=this.q[a],!l.C&&(l.Ja.length||l.xa.length))for(d=0,b=l.c.length;d<b;d++)for(g=l.c[d],f=0,m=g.J.length;f<m;f++)n=g.J[f],n.nm&&n.nm();d=this.yl.Sc();a=0;for(c=d.length;a<c;a++)d[a].nm();
this.Bd--};b.prototype.kn=function(a){var c=this.ha;this.ha.ou();var d,b,f,m,l,g,n;if(this.u)for(d=0,b=this.q.length;d<b;d++)l=this.q[d],l.C||!l.Gj||l.global&&0!==l.c.length||-1!==a.rg.indexOf(l)||l.Gj();c==a&&(this.fd.Pb.length=0);a.jm();d=0;for(b=this.q.length;d<b;d++)if(l=this.q[d],l.global||l.Ea.oj)for(a=0,c=l.c.length;a<c;a++)if(g=l.c[a],g.Fl&&g.Fl(),g.J)for(f=0,m=g.J.length;f<m;f++)n=g.J[f],n.Fl&&n.Fl();this.ea=!0;this.jb()};b.prototype.om=function(a){this.xl.add(a)};b.prototype.pu=function(a){this.yl.add(a)};
b.prototype.ff=function(a){return a&&-1!==a.Tg?this.ud*a.Tg:this.xe};b.prototype.Ic=function(){this.ha.Ic(this.ja);this.eb&&this.ja.present()};b.prototype.Vb=function(){this.ha.Vb(this.u);this.u.Rt()};b.prototype.Rq=function(a){a&&this.lk.push(a)};b.prototype.ki=function(a){a=a.toString();return this.$d.hasOwnProperty(a)?this.$d[a]:null};var n=[];b.prototype.kd=function(a){var c,d;c=a.type.name;var b=null;if(this.ue.hasOwnProperty(c)){if(b=this.ue[c],b.contains(a))return}else b=n.length?n.pop():new ba,
this.ue[c]=b;b.add(a);this.Wd=!0;if(a.Lc)for(c=0,d=a.siblings.length;c<d;c++)this.kd(a.siblings[c]);this.Wk&&b.Wf.push(a);this.Bd++;this.trigger(Object.getPrototypeOf(a.type.Ea).i.oq,a);this.Bd--};b.prototype.jb=function(){if(this.Wd){var a,c,d,b,f,m;this.Wk=!0;d=0;for(f=this.Hc.length;d<f;++d)for(a=this.Hc[d],c=a.type,c.c.push(a),b=0,m=c.xa.length;b<m;++b)c.xa[b].c.push(a),c.xa[b].Of=!0;this.Hc.length=0;this.bq();Qa(this.ue);this.Wd=this.Wk=!1}};b.prototype.bq=function(){for(var a in this.ue)this.ue.hasOwnProperty(a)&&
this.Sp(this.ue[a])};b.prototype.Sp=function(a){var c=a.Sc(),d=c[0].type,b,f,m,l,g,h;Ta(d.c,a);d.Of=!0;0===d.c.length&&(d.Eh=!1);b=0;for(f=d.xa.length;b<f;++b)h=d.xa[b],Ta(h.c,a),h.Of=!0;b=0;for(f=this.fd.Pb.length;b<f;++b)if(g=this.fd.Pb[b],g.xb.hasOwnProperty(d.index)&&Ta(g.xb[d.index].Ad,a),!d.C)for(m=0,l=d.xa.length;m<l;++m)h=d.xa[m],g.xb.hasOwnProperty(h.index)&&Ta(g.xb[h.index].Ad,a);(b=c[0].d)&&Ta(b.c,a);for(b=0;b<c.length;++b)this.Rp(c[b],d);a.clear();n.push(a);this.ea=!0};b.prototype.Rp=
function(a,c){var d,b,f;d=0;for(b=this.lk.length;d<b;++d)this.lk[d](a);a.Oh&&c.Ph.update(a,a.Oh,null);if(d=a.d)wa(d.c,a),d.ec=!0;if(a.J)for(d=0,b=a.J.length;d<b;++d)f=a.J[d],f.Wg&&f.Wg(),f.behavior.Af.remove(a);this.Eo.remove(a);this.xl.remove(a);this.yl.remove(a);a.Wg&&a.Wg();this.$d.hasOwnProperty(a.uid.toString())&&delete this.$d[a.uid.toString()];this.Pi--;100>c.Xh.length&&c.Xh.push(a)};var C=[];b.prototype.te=function(a,c,d,b,f,m){var l,g,n,h;if(!a)return null;var e=this.q[a[1]],q=e.Ea.Yd;if(this.tf&&
q&&!e.Xk||q&&!this.u&&11===a[0][11])return null;var w=c;q||(c=null);var k;e.Xh.length?(k=e.Xh.pop(),k.Bc=!0,e.Ea.na.call(k,e)):(k=new e.Ea.na(e),k.Bc=!1);k.uid=d&&!m?a[2]:this.Ug++;this.$d[k.uid.toString()]=k;k.Yo=this.Ao++;k.Ee=e.c.length;l=0;for(g=this.Hc.length;l<g;++l)this.Hc[l].type===e&&k.Ee++;k.mg=ub;n=a[3];if(k.Bc)Qa(k.Ba);else{k.Ba={};if("undefined"!==typeof cr_is_preview)for(k.Jn=[],k.Jn.length=n.length,l=0,g=n.length;l<g;l++)k.Jn[l]=n[l][1];k.Oa=[];k.Oa.length=n.length}l=0;for(g=n.length;l<
g;l++)k.Oa[l]=n[l][0];if(q){var r=a[0];k.x=fa(b)?r[0]:b;k.y=fa(f)?r[1]:f;k.z=r[2];k.width=r[3];k.height=r[4];k.depth=r[5];k.e=r[6];k.opacity=r[7];k.Gb=r[8];k.Hb=r[9];k.yb=r[10];l=r[11];!this.u&&e.K.length&&(k.yb=l);k.cg=Ya(k.yb);this.n&&Za(k,k.yb,this.n);if(k.Bc){l=0;for(g=r[12].length;l<g;l++)for(n=0,h=r[12][l].length;n<h;n++)k.Aa[l][n]=r[12][l][n];k.Ia.set(0,0,0,0);k.Oh.set(0,0,-1,-1);k.Tb.Lf(k.Ia);k.Zj.length=0}else{k.Aa=r[12].slice(0);l=0;for(g=k.Aa.length;l<g;l++)k.Aa[l]=r[12][l].slice(0);k.Z=
[];k.Nd=[];k.Nd.length=e.K.length;k.Ia=new pa(0,0,0,0);k.Oh=new pa(0,0,-1,-1);k.Tb=new qa;k.Zj=[];k.ba=yb;k.Uq=zb;k.pb=Ab;k.Ha=Bb;k.xm=Cb;k.Wb=Db}k.vh=!1;k.su=0;k.ru=0;k.qu=null;14===r.length&&(k.vh=!0,k.su=r[13][0],k.ru=r[13][1],k.qu=r[13][2]);l=0;for(g=e.K.length;l<g;l++)k.Nd[l]=!0;k.Ld=Eb;k.Ld();k.Mp=!!k.Z.length;k.Jh=!0;k.ak=!0;e.Dh=!0;k.visible=!0;k.Tg=-1;k.d=c;k.Ue=c.c.length;"undefined"===typeof k.ca&&(k.ca=null);this.ea=k.pd=!0}k.toString=vb;var A;l=C.length=0;for(g=e.xa.length;l<g;l++)C.push.apply(C,
e.xa[l].Ja);C.push.apply(C,e.Ja);if(k.Bc)for(l=0,g=C.length;l<g;l++){var u=C[l];A=k.J[l];A.Bc=!0;u.behavior.na.call(A,u,k);r=a[4][l];n=0;for(h=r.length;n<h;n++)A.M[n]=r[n];A.aa();u.behavior.Af.add(k)}else for(k.J=[],l=0,g=C.length;l<g;l++)u=C[l],A=new u.behavior.na(u,k),A.Bc=!1,A.M=a[4][l].slice(0),A.aa(),k.J.push(A),u.behavior.Af.add(k);r=a[5];if(k.Bc)for(l=0,g=r.length;l<g;l++)k.M[l]=r[l];else k.M=r.slice(0);this.Hc.push(k);this.Wd=!0;c&&(c.c.push(k),1!==c.Kb||1!==c.Lb)&&(e.Eh=!0);this.Pi++;if(e.Lc){if(k.Lc=
!0,k.Bc?k.siblings.length=0:k.siblings=[],!d&&!m){l=0;for(g=e.Ub.length;l<g;l++)if(e.Ub[l]!==e){if(!e.Ub[l].Wc)return null;k.siblings.push(this.te(e.Ub[l].Wc,w,!1,q?k.x:b,q?k.y:f,!0))}l=0;for(g=k.siblings.length;l<g;l++)for(k.siblings[l].siblings.push(k),n=0;n<g;n++)l!==n&&k.siblings[l].siblings.push(k.siblings[n])}}else k.Lc=!1,k.siblings=null;k.aa();l=0;for(g=k.J.length;l<g;l++)k.J[l].Ot&&k.J[l].Ot();return k};b.prototype.kg=function(a){var c,d;c=0;for(d=this.ha.R.length;c<d;c++){var b=this.ha.R[c];
if(ab(b.name,a))return b}return null};b.prototype.yd=function(a){a=O(a);0>a&&(a=0);a>=this.ha.R.length&&(a=this.ha.R.length-1);return this.ha.R[a]};b.prototype.dk=function(a){var c,d;c=0;for(d=a.length;c<d;c++)a[c].pa().ta=!0};b.prototype.ih=function(a){var c,d;c=0;for(d=a.length;c<d;c++)a[c].ih()};b.prototype.Nl=function(a){var c,d;c=0;for(d=a.length;c<d;c++)a[c].Nl()};b.prototype.Hf=function(a){var c,d;c=0;for(d=a.length;c<d;c++)a[c].Hf()};b.prototype.Ip=function(a){if(a.Dh){var c,d,b=a.c;c=0;for(d=
b.length;c<d;++c)b[c].xm();b=this.Hc;c=0;for(d=b.length;c<d;++c)b[c].type===a&&b[c].xm();a.Dh=!1}};b.prototype.ss=function(a,c,d,b){var f,l,m=a?1!==a.Kb||1!==a.Lb:!1;if(c.C)for(a=0,f=c.Ni.length;a<f;++a)l=c.Ni[a],m||l.Eh?ua(b,l.c):(this.Ip(l),l.Ph.Zo(d,b));else m||c.Eh?ua(b,c.c):(this.Ip(c),c.Ph.Zo(d,b))};b.prototype.Es=function(a,c,d,b){var l,f;l=0;for(f=c.length;l<f;++l)this.ss(a,c[l],d,b)};b.prototype.Ds=function(a,c,d){var b=this.sp;b&&this.Es(a,b.ul,c,d)};b.prototype.Qf=function(a,c,d,b){var l=
a.pa(),f,m,g,n,e,h;if(l.ta)for(b||(l.ta=!1,l.c.length=0),f=0,n=a.c.length;f<n;f++){if(g=a.c[f],g.Ha(),e=g.d.wa(c,d,!0),h=g.d.wa(c,d,!1),g.pb(e,h)){if(b)return!1;l.c.push(g)}}else{f=m=0;for(n=l.c.length;f<n;f++)if(g=l.c[f],g.Ha(),e=g.d.wa(c,d,!0),h=g.d.wa(c,d,!1),g.pb(e,h)){if(b)return!1;l.c[m]=l.c[f];m++}b||(l.c.length=m)}a.nd();return b?!0:l.Nk()};b.prototype.vp=function(a,c){if(!(a&&c&&a!==c&&a.pd&&c.pd))return!1;a.Ha();c.Ha();var d=a.d,b=c.d,l,f,m,g,n,e,h,k;if(d===b||d.Kb===b.Kb&&b.Lb===b.Lb&&
d.scale===b.scale&&d.e===b.e&&d.ob===b.ob){if(!a.Ia.ct(c.Ia)||!a.Tb.Kn(c.Tb)||a.vh&&c.vh)return!1;if(a.vh)return this.wp(a,c);if(c.vh)return this.wp(c,a);h=a.ca&&!a.ca.qf();l=c.ca&&!c.ca.qf();if(!h&&!l)return!0;h?(a.ca.$e(a.width,a.height,a.e),h=a.ca):(this.Qc.Kf(a.Tb,a.x,a.y,a.width,a.height),h=this.Qc);l?(c.ca.$e(c.width,c.height,c.e),k=c.ca):(this.Qc.Kf(c.Tb,c.x,c.y,c.width,c.height),k=this.Qc);return h.sg(k,c.x-a.x,c.y-a.y)}h=a.ca&&!a.ca.qf();l=c.ca&&!c.ca.qf();h?(a.ca.$e(a.width,a.height,a.e),
this.Qc.kp(a.ca)):this.Qc.Kf(a.Tb,a.x,a.y,a.width,a.height);h=this.Qc;l?(c.ca.$e(c.width,c.height,c.e),this.lm.kp(c.ca)):this.lm.Kf(c.Tb,c.x,c.y,c.width,c.height);k=this.lm;l=0;for(f=h.Oc;l<f;l++)m=2*l,g=m+1,n=h.Pa[m],e=h.Pa[g],h.Pa[m]=d.sb(n+a.x,e+a.y,!0),h.Pa[g]=d.sb(n+a.x,e+a.y,!1);h.Ha();l=0;for(f=k.Oc;l<f;l++)m=2*l,g=m+1,n=k.Pa[m],e=k.Pa[g],k.Pa[m]=b.sb(n+c.x,e+c.y,!0),k.Pa[g]=b.sb(n+c.x,e+c.y,!1);k.Ha();return h.sg(k,0,0)};var u=new qa;new pa(0,0,0,0);var l=[];b.prototype.wp=function(a,c){var d,
b,f,m,g=c.Ia,n=a.x,h=a.y;a.Iv(g,l);var e=c.ca&&!c.ca.qf();d=0;for(b=l.length;d<b;++d)if(f=l[d],m=f.Pv,g.dt(m,n,h)&&(u.Lf(m),u.offset(n,h),u.Kn(c.Tb)))if(e)if(c.ca.$e(c.width,c.height,c.e),f.Ll){if(f.Ll.sg(c.ca,c.x-(n+m.left),c.y-(h+m.top)))return l.length=0,!0}else{if(this.Qc.Kf(u,0,0,m.right-m.left,m.bottom-m.top),this.Qc.sg(c.ca,c.x,c.y))return l.length=0,!0}else if(f.Ll){if(this.Qc.Kf(c.Tb,0,0,c.width,c.height),f.Ll.sg(this.Qc,-(n+m.left),-(h+m.top)))return l.length=0,!0}else return l.length=0,
!0;l.length=0;return!1};b.prototype.Dp=function(a,c){if(!c)return!1;var d,b,l,f,m;d=0;for(b=a.Ja.length;d<b;d++)if(a.Ja[d].behavior instanceof c)return!0;if(!a.C)for(d=0,b=a.xa.length;d<b;d++)for(m=a.xa[d],l=0,f=m.Ja.length;l<f;l++)if(m.Ja[l].behavior instanceof c)return!0;return!1};b.prototype.Ep=function(a){return this.Dp(a,Sb.Zu)};b.prototype.tm=function(a){return this.Dp(a,Sb.$u)};var w=[];b.prototype.Rf=function(a){var c,d,b;a.Ha();this.Ds(a.d,a.Ia,w);c=0;for(d=w.length;c<d;++c)if(b=w[c],b.Ba.solidEnabled&&
this.vp(a,b))return w.length=0,b;w.length=0;return null};b.prototype.Ut=function(a){var c=fa(void 0)?100:void 0,d=0,b=a.x,l=a.y,f=0,m=0,g=0,n=this.Rf(a);if(!n)return!0;for(;d<=c;){switch(f){case 0:m=0;g=-1;d++;break;case 1:m=1;g=-1;break;case 2:m=1;g=0;break;case 3:g=m=1;break;case 4:m=0;g=1;break;case 5:m=-1;g=1;break;case 6:m=-1;g=0;break;case 7:g=m=-1}f=(f+1)%8;a.x=O(b+m*d);a.y=O(l+g*d);a.ba();if(!this.vp(a,n)&&(n=this.Rf(a),!n))return!0}a.x=b;a.y=l;a.ba();return!1};b.prototype.gj=function(a,c){a.pd&&
c.pd&&this.bp.push([a,c])};var A=-1;b.prototype.trigger=function(a,c,d){if(!this.ha)return!1;var b=this.ha.ye;if(!b)return!1;var l=!1,f,m,g;A++;var n=b.jk;m=0;for(g=n.length;m<g;++m)f=this.Ap(a,c,n[m],d),l=l||f;f=this.Ap(a,c,b,d);A--;return l||f};b.prototype.Ap=function(a,c,d,b){var l=!1,f,m,g,n;if(c)for(g=this.qm(a,c,c.type.name,d,b),l=l||g,n=c.type.xa,f=0,m=n.length;f<m;++f)g=this.qm(a,c,n[f].name,d,b),l=l||g;else g=this.qm(a,c,"system",d,b),l=l||g;return l};b.prototype.qm=function(a,c,d,b,l){var f,
m=!1,g=!1,g="undefined"!==typeof l,n=(g?b.pn:b.Bp)[d];if(!n)return m;var h=null;b=0;for(f=n.length;b<f;++b)if(n[b].method==a){h=n[b].fg;break}if(!h)return m;a=g?h[l]:h;if(!a)return null;b=0;for(f=a.length;b<f;b++)l=a[b][0],g=a[b][1],g=this.js(c,d,l,g),m=m||g;return m};b.prototype.js=function(a,c,d,b){var l,f,m=!1;this.rm++;var g=this.Eb().gc;g&&this.ih(g.fe);var n=1<this.rm;this.ih(d.fe);n&&this.Tt();var h=this.Ol(d);h.gc=d;a&&(l=this.types[c].pa(),l.ta=!1,l.c.length=1,l.c[0]=a,this.types[c].nd());
a=!0;if(d.parent){c=h.up;for(l=d.parent;l;)c.push(l),l=l.parent;c.reverse();l=0;for(f=c.length;l<f;l++)if(!c[l].au()){a=!1;break}}a&&(this.rk++,d.ad?d.$t(b):d.Ra(),m=m||h.Ke);this.Uo();n&&this.Nt();this.Hf(d.fe);g&&this.Hf(g.fe);this.Wd&&0===this.Bd&&0===A&&!this.Yk&&this.jb();this.rm--;return m};b.prototype.vn=function(){var a=this.Eb();return a.gc.kb[a.Db]};b.prototype.Tt=function(){this.Li++;this.Li>=this.nl.length&&this.nl.push([])};b.prototype.Nt=function(){this.Li--};b.prototype.wn=function(){return this.nl[this.Li]};
b.prototype.Ol=function(a){this.ai++;this.ai>=this.pk.length&&this.pk.push(new Fb);var c=this.Eb();c.reset(a);return c};b.prototype.Uo=function(){this.ai--};b.prototype.Eb=function(){return this.pk[this.ai]};b.prototype.xn=function(a,c){for(var d,b,l,f,m,g;c;){d=0;for(b=c.Dc.length;d<b;d++)if(g=c.Dc[d],g instanceof Gb&&ab(a,g.name))return g;c=c.parent}d=0;for(b=this.vd.length;d<b;d++)for(m=this.vd[d],l=0,f=m.Vd.length;l<f;l++)if(g=m.Vd[l],g instanceof Gb&&ab(a,g.name))return g;return null};b.prototype.zn=
function(a){var c,d;c=0;for(d=this.Zb.length;c<d;c++)if(this.Zb[c].U===a)return this.Zb[c];return null};b.prototype.li=function(a){var c,d;c=0;for(d=this.q.length;c<d;c++)if(this.q[c].U===a)return this.q[c];return null};b.prototype.us=function(a){var c,d;c=0;for(d=this.Pd.length;c<d;c++)if(this.Pd[c].U===a)return this.Pd[c];return null};b.prototype.Vs=function(){var d=this,b=this.kj,l=this.Cd,f=this.Ig,m=!1;this.pp&&(m=!0,b="__c2_continuouspreview",this.pp=!1);if(b.length){this.jb();l=this.eu();if(window.indexedDB&&
!this.jc)q(b,l,function(){I("Saved state to IndexedDB storage ("+l.length+" bytes)");d.Cd=l;d.trigger(W.prototype.i.Qj,null);d.Cd="";m&&c()},function(a){try{localStorage.setItem("__c2save_"+b,l),I("Saved state to WebStorage ("+l.length+" bytes)"),d.Cd=l,d.trigger(W.prototype.i.Qj,null),d.Cd="",m&&c()}catch(f){I("Failed to save game state: "+a+"; "+f)}});else try{localStorage.setItem("__c2save_"+b,l),I("Saved state to WebStorage ("+l.length+" bytes)"),d.Cd=l,this.trigger(W.prototype.i.Qj,null),d.Cd=
"",m&&c()}catch(g){I("Error saving to WebStorage: "+g)}this.ub=this.Ig=this.kj=""}f.length&&(window.indexedDB&&!this.jc?a(f,function(a){a?(d.ub=a,I("Loaded state from IndexedDB storage ("+d.ub.length+" bytes)")):(d.ub=localStorage.getItem("__c2save_"+f)||"",I("Loaded state from WebStorage ("+d.ub.length+" bytes)"));d.rh=!1;d.ub.length||d.trigger(W.prototype.i.Oj,null)},function(){d.ub=localStorage.getItem("__c2save_"+f)||"";I("Loaded state from WebStorage ("+d.ub.length+" bytes)");d.rh=!1;d.ub.length||
d.trigger(W.prototype.i.Oj,null)}):(this.ub=localStorage.getItem("__c2save_"+f)||"",I("Loaded state from WebStorage ("+this.ub.length+" bytes)"),this.rh=!1,d.ub.length||d.trigger(W.prototype.i.Oj,null)),this.kj=this.Ig="");this.ub.length&&(this.jb(),this.qt(this.ub),this.Cd=this.ub,this.trigger(W.prototype.i.Bq,null),this.ub=this.Cd="")};b.prototype.eu=function(){var a,c,b,l,f,m,g,n={c2save:!0,version:1,rt:{time:this.kc.V,walltime:this.jd.V,timescale:this.Sf,tickcount:this.Te,execcount:this.rk,next_uid:this.Ug,
running_layout:this.ha.U,start_time_offset:Date.now()-this.tj},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};a=0;for(c=this.q.length;a<c;a++)if(f=this.q[a],!f.C&&!this.Ep(f)){m={instances:[]};La(f.Ba)&&(m.ex=d(f.Ba));b=0;for(l=f.c.length;b<l;b++)m.instances.push(this.Yl(f.c[b]));n.types[f.U.toString()]=m}a=0;for(c=this.Zb.length;a<c;a++)b=this.Zb[a],n.layouts[b.U.toString()]=b.mb();l=n.events.groups;a=0;for(c=this.Pd.length;a<c;a++)b=this.Pd[a],l[b.U.toString()]=this.mi[b.ng].hf;
c=n.events.cnds;for(g in this.bf)this.bf.hasOwnProperty(g)&&(a=this.bf[g],La(a.Ba)&&(c[g]={ex:d(a.Ba)}));c=n.events.acts;for(g in this.Ye)this.Ye.hasOwnProperty(g)&&(a=this.Ye[g],La(a.Ba)&&(c[g]={ex:a.Ba}));c=n.events.vars;for(g in this.Xf)this.Xf.hasOwnProperty(g)&&(a=this.Xf[g],a.wi||a.parent&&!a.zg||(c[g]=a.data));n.system=this.fd.mb();return JSON.stringify(n)};b.prototype.$o=function(){var a,c,d,b,l,f;this.$d={};a=0;for(c=this.q.length;a<c;a++)if(d=this.q[a],!d.C)for(b=0,l=d.c.length;b<l;b++)f=
d.c[b],this.$d[f.uid.toString()]=f};b.prototype.qt=function(a){a=JSON.parse(a);if(a.c2save&&!(1<a.version)){var c=a.rt;this.kc.reset();this.kc.V=c.time;this.jd.reset();this.jd.V=c.walltime||0;this.Sf=c.timescale;this.Te=c.tickcount;this.tj=Date.now()-c.start_time_offset;var d=c.running_layout;if(d!==this.ha.U)if(d=this.zn(d))this.kn(d);else return;var b,l,f,m,g,n,h;n=a.types;for(l in n)if(n.hasOwnProperty(l)&&(m=this.li(parseInt(l,10)))&&!m.C&&!this.Ep(m)){n[l].ex?m.Ba=n[l].ex:Qa(m.Ba);g=m.c;f=n[l].instances;
d=0;for(b=la(g.length,f.length);d<b;d++)this.Hi(g[d],f[d]);d=f.length;for(b=g.length;d<b;d++)this.kd(g[d]);d=g.length;for(b=f.length;d<b;d++){g=null;if(m.Ea.Yd&&(g=this.ha.ji(f[d].w.l),!g))continue;g=this.te(m.Wc,g,!1,0,0,!0);this.Hi(g,f[d])}m.Of=!0}this.jb();this.$o();b=a.layouts;for(l in b)b.hasOwnProperty(l)&&(d=this.zn(parseInt(l,10)))&&d.Ib(b[l]);b=a.events.groups;for(l in b)b.hasOwnProperty(l)&&(d=this.us(parseInt(l,10)))&&this.mi[d.ng]&&(this.mi[d.ng].hf=b[l]);d=a.events.cnds;for(l in d)d.hasOwnProperty(l)&&
this.bf.hasOwnProperty(l)&&(this.bf[l].Ba=d[l].ex);d=a.events.acts;for(l in d)d.hasOwnProperty(l)&&this.Ye.hasOwnProperty(l)&&(this.Ye[l].Ba=d[l].ex);d=a.events.vars;for(l in d)d.hasOwnProperty(l)&&this.Xf.hasOwnProperty(l)&&(this.Xf[l].data=d[l]);this.Ug=c.next_uid;this.fd.Ib(a.system);d=0;for(b=this.q.length;d<b;d++)if(m=this.q[d],!m.C)for(l=0,a=m.c.length;l<a;l++){g=m.c[l];if(m.Lc)for(n=g.mg(),c=g.siblings.length=0,f=m.Ub.length;c<f;c++)h=m.Ub[c],m!==h&&g.siblings.push(h.c[n]);g.ld&&g.ld();if(g.J)for(c=
0,f=g.J.length;c<f;c++)n=g.J[c],n.ld&&n.ld()}this.ea=!0}};b.prototype.Yl=function(a,c){var b,l,f,m,g;m=a.type;f=m.Ea;var n={};c?n.c2=!0:n.uid=a.uid;La(a.Ba)&&(n.ex=d(a.Ba));if(a.Oa&&a.Oa.length)for(n.ivs={},b=0,l=a.Oa.length;b<l;b++)n.ivs[a.type.Vk[b].toString()]=a.Oa[b];if(f.Yd){f={x:a.x,y:a.y,w:a.width,h:a.height,l:a.d.U,zi:a.Wb()};0!==a.e&&(f.a=a.e);1!==a.opacity&&(f.o=a.opacity);.5!==a.Gb&&(f.hX=a.Gb);.5!==a.Hb&&(f.hY=a.Hb);0!==a.yb&&(f.bm=a.yb);a.visible||(f.v=a.visible);a.pd||(f.ce=a.pd);-1!==
a.Tg&&(f.mts=a.Tg);if(m.K.length)for(f.fx=[],b=0,l=m.K.length;b<l;b++)g=m.K[b],f.fx.push({name:g.name,active:a.Nd[g.index],params:a.Aa[g.index]});n.w=f}if(a.J&&a.J.length)for(n.behs={},b=0,l=a.J.length;b<l;b++)m=a.J[b],m.mb&&(n.behs[m.type.U.toString()]=m.mb());a.mb&&(n.data=a.mb());return n};b.prototype.ws=function(a,c){var d,b;d=0;for(b=a.Vk.length;d<b;d++)if(a.Vk[d]===c)return d;return-1};b.prototype.rs=function(a,c){var d,b;d=0;for(b=a.J.length;d<b;d++)if(a.J[d].type.U===c)return d;return-1};
b.prototype.Hi=function(a,c,d){var b,l,f,m,g;g=a.type;f=g.Ea;if(d){if(!c.c2)return}else a.uid=c.uid;c.ex?a.Ba=c.ex:Qa(a.Ba);if(l=c.ivs)for(b in l)l.hasOwnProperty(b)&&(d=this.ws(g,parseInt(b,10)),0>d||d>=a.Oa.length||(a.Oa[d]=l[b]));if(f.Yd){f=c.w;a.d.U!==f.l&&(d=a.d,a.d=this.ha.ji(f.l),a.d?(a.d.c.push(a),a.d.ec=!0,wa(d.c,a),d.ec=!0):(a.d=d,this.kd(a)));a.x=f.x;a.y=f.y;a.width=f.w;a.height=f.h;a.Ue=f.zi;a.e=f.hasOwnProperty("a")?f.a:0;a.opacity=f.hasOwnProperty("o")?f.o:1;a.Gb=f.hasOwnProperty("hX")?
f.hX:.5;a.Hb=f.hasOwnProperty("hY")?f.hY:.5;a.visible=f.hasOwnProperty("v")?f.v:!0;a.pd=f.hasOwnProperty("ce")?f.ce:!0;a.Tg=f.hasOwnProperty("mts")?f.mts:-1;a.yb=f.hasOwnProperty("bm")?f.bm:0;a.cg=Ya(a.yb);this.n&&Za(a,a.yb,this.n);a.ba();if(f.hasOwnProperty("fx"))for(d=0,l=f.fx.length;d<l;d++)m=g.Ek(f.fx[d].name),0>m||(a.Nd[m]=f.fx[d].active,a.Aa[m]=f.fx[d].params);a.Ld()}if(g=c.behs)for(b in g)g.hasOwnProperty(b)&&(f=this.rs(a,parseInt(b,10)),0>f||a.J[f].Ib(g[b]));c.data&&a.Ib(c.data)};Hb=function(a){return new b(document.getElementById(a))};
Ib=function(a,c){return new b({dc:!0,width:a,height:c})};window.cr_createRuntime=Hb;window.cr_createDCRuntime=Ib;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.Rv=!0;document.body.appendChild(a);a=new b(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 b(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();window.cr_getC2Runtime=function(){var e=document.getElementById("c2canvas");return e?e.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_sizeCanvas=function(e,k){if(0!==e&&0!==k){var b=window.cr_getC2Runtime();b&&b.setSize(e,k)}};window.cr_setSuspended=function(e){var k=window.cr_getC2Runtime();k&&k.setSuspended(e)};
(function(){function e(a,c){this.b=a;this.ye=null;this.scrollX=this.b.$a/2;this.scrollY=this.b.Za/2;this.scale=1;this.e=0;this.jg=!0;this.name=c[0];this.width=c[1];this.height=c[2];this.Fp=c[3];this.np=c[4];this.U=c[5];var d=c[6],b,f;this.R=[];this.rg=[];b=0;for(f=d.length;b<f;b++){var g=new Jb(this,d[b]);g.Co=b;this.R.push(g)}d=c[7];this.Fe=[];b=0;for(f=d.length;b<f;b++){var g=d[b],h=this.b.q[g[1]];h.Wc||(h.Wc=g);this.Fe.push(g);-1===this.rg.indexOf(h)&&this.rg.push(h)}this.K=[];this.Z=[];this.Aa=
[];b=0;for(f=c[8].length;b<f;b++)this.K.push({id:c[8][b][0],name:c[8][b][1],gb:-1,Xa:!0,index:b}),this.Aa.push(c[8][b][2].slice(0));this.Ld();this.kh=new pa(0,0,1,1);this.Rl=new pa(0,0,1,1);this.ae={}}function k(a,c){return a.Ue-c.Ue}function b(a,c){this.qa=a;this.b=a.b;this.c=[];this.scale=1;this.e=0;this.ve=!1;this.Jd=new pa(0,0,0,0);this.yp=new qa;this.hb=this.Wa=this.ib=this.Va=0;this.ec=!1;this.name=c[0];this.index=c[1];this.U=c[2];this.visible=c[3];this.Rd=c[4];this.Kd=c[5];this.Kb=c[6];this.Lb=
c[7];this.opacity=c[8];this.wk=c[9];this.ob=c[10];this.yb=c[11];this.Ir=c[12];this.cg="source-over";this.lb=this.nb=0;this.be=!1;var d=c[13],b,f;this.lf=[];b=0;for(f=d.length;b<f;b++){var g=d[b],h=this.b.q[g[1]];h.Wc||(h.Wc=g,h.or=this.index);this.lf.push(g);-1===this.qa.rg.indexOf(h)&&this.qa.rg.push(h)}this.K=[];this.Z=[];this.Aa=[];b=0;for(f=c[14].length;b<f;b++)this.K.push({id:c[14][b][0],name:c[14][b][1],gb:-1,Xa:!0,index:b}),this.Aa.push(c[14][b][2].slice(0));this.Ld();this.kh=new pa(0,0,1,
1);this.Rl=new pa(0,0,1,1)}e.prototype.du=function(a){var c=a.type.U.toString();this.ae.hasOwnProperty(c)||(this.ae[c]=[]);this.ae[c].push(this.b.Yl(a))};e.prototype.Cn=function(){var a=this.R[0];return!a.Kd&&1===a.opacity&&!a.wk&&a.visible};e.prototype.Ld=function(){this.Z.length=0;var a,c,d;a=0;for(c=this.K.length;a<c;a++)d=this.K[a],d.Xa&&this.Z.push(d)};e.prototype.Dk=function(a){var c,d,b;c=0;for(d=this.K.length;c<d;c++)if(b=this.K[c],b.name===a)return b;return null};var h=[],q=!0;e.prototype.jm=
function(){this.np&&(this.ye=this.b.qk[this.np],this.ye.um());this.b.ha=this;this.scrollX=this.b.$a/2;this.scrollY=this.b.Za/2;var a,c,d,b,f,g,e;a=0;for(d=this.b.q.length;a<d;a++)if(c=this.b.q[a],!c.C)for(f=c.c,c=0,b=f.length;c<b;c++)if(g=f[c],g.d){var y=g.d.Co;y>=this.R.length&&(y=this.R.length-1);g.d=this.R[y];-1===g.d.c.indexOf(g)&&g.d.c.push(g);g.d.ec=!0}if(!q)for(a=0,d=this.R.length;a<d;++a)this.R[a].c.sort(k);h.length=0;this.Zq();a=0;for(d=this.R.length;a<d;a++)g=this.R[a],g.lr(),g.wm();f=!1;
if(!this.jg){for(e in this.ae)if(this.ae.hasOwnProperty(e)&&(c=this.b.li(parseInt(e,10)))&&!c.C&&this.b.tm(c)){b=this.ae[e];a=0;for(d=b.length;a<d;a++){g=null;if(c.Ea.Yd&&(g=this.ji(b[a].w.l),!g))continue;g=this.b.te(c.Wc,g,!1,0,0,!0);this.b.Hi(g,b[a]);f=!0;h.push(g)}b.length=0}a=0;for(d=this.R.length;a<d;a++)this.R[a].c.sort(k),this.R[a].ec=!0}f&&(this.b.jb(),this.b.$o());for(a=0;a<h.length;a++)if(g=h[a],g.type.Lc)for(d=g.mg(),c=0,b=g.type.Ub.length;c<b;c++)e=g.type.Ub[c],g.type!==e&&(e.c.length>
d?g.siblings.push(e.c[d]):e.Wc&&(f=this.b.te(e.Wc,g.d,!0,g.x,g.y,!0),this.b.jb(),e.Hj(),g.siblings.push(f),h.push(f)));a=0;for(d=this.Fe.length;a<d;a++)this.b.te(this.Fe[a],null,!0);this.b.re=null;this.b.jb();if(this.b.ja&&!this.b.ka)for(a=0,d=this.b.q.length;a<d;a++)e=this.b.q[a],!e.C&&e.c.length&&e.cj&&e.cj(this.b.ja);a=0;for(d=h.length;a<d;a++)g=h[a],this.b.trigger(Object.getPrototypeOf(g.type.Ea).i.nq,g);h.length=0;this.b.trigger(W.prototype.i.Im,null);this.jg=!1};e.prototype.kr=function(){var a,
c,d,b,f;c=a=0;for(d=this.Fe.length;a<d;a++)b=this.Fe[a],f=this.b.q[b[1]],f.global?this.b.te(b,null,!0):(this.Fe[c]=b,c++);this.Fe.length=c};e.prototype.ou=function(){this.b.trigger(W.prototype.i.Aq,null);this.b.fd.Pb.length=0;var a,c,d,b,f,g;a=0;for(c=this.R.length;a<c;a++)for(this.R[a].Lp(),f=this.R[a].c,d=0,b=f.length;d<b;d++)g=f[d],g.type.global||this.b.tm(g.type)&&this.du(g);a=0;for(c=this.R.length;a<c;a++){f=this.R[a].c;d=0;for(b=f.length;d<b;d++)g=f[d],g.type.global||this.b.kd(g);this.b.jb();
f.length=0;this.R[a].ec=!0}a=0;for(c=this.b.q.length;a<c;a++)if(f=this.b.q[a],!(f.global||f.Ea.Yd||f.Ea.oj||f.C)){d=0;for(b=f.c.length;d<b;d++)this.b.kd(f.c[d]);this.b.jb()}q=!1};e.prototype.Ic=function(a){var c,d=a,b=!1,f=!this.b.uc;f&&(this.b.Fi||(this.b.Fi=document.createElement("canvas"),c=this.b.Fi,c.width=this.b.P,c.height=this.b.O,this.b.Zn=c.getContext("2d"),b=!0),c=this.b.Fi,d=this.b.Zn,c.width!==this.b.P&&(c.width=this.b.P,b=!0),c.height!==this.b.O&&(c.height=this.b.O,b=!0),b&&(d.webkitImageSmoothingEnabled=
this.b.X,d.mozImageSmoothingEnabled=this.b.X,d.msImageSmoothingEnabled=this.b.X,d.imageSmoothingEnabled=this.b.X));d.globalAlpha=1;d.globalCompositeOperation="source-over";this.b.Uj&&!this.Cn()&&d.clearRect(0,0,this.b.P,this.b.O);var g,h,b=0;for(g=this.R.length;b<g;b++)h=this.R[b],h.visible&&0<h.opacity&&11!==h.yb&&(h.c.length||!h.Kd)?h.Ic(d):h.wm();f&&a.drawImage(c,0,0,this.b.width,this.b.height)};e.prototype.Vb=function(a){var c=0<this.Z.length||this.b.Vf||!this.b.uc;if(c){this.b.Yb||(this.b.Yb=
a.Td(this.b.P,this.b.O,this.b.X));if(this.b.Yb.bg!==this.b.P||this.b.Yb.ag!==this.b.O)a.deleteTexture(this.b.Yb),this.b.Yb=a.Td(this.b.P,this.b.O,this.b.X);a.dd(this.b.Yb);this.b.uc||a.Jf(this.b.P,this.b.O)}else this.b.Yb&&(a.dd(null),a.deleteTexture(this.b.Yb),this.b.Yb=null);this.b.Uj&&!this.Cn()&&a.clear(0,0,0,0);var d,b,f;d=0;for(b=this.R.length;d<b;d++)f=this.R[d],f.visible&&0<f.opacity&&(f.c.length||!f.Kd)?f.Vb(a):f.wm();c&&(0===this.Z.length||1===this.Z.length&&this.b.uc?(1===this.Z.length?
(c=this.Z[0].index,a.ed(this.Z[0].gb),a.If(null,1/this.b.P,1/this.b.O,0,0,1,1,this.scale,this.e,0,0,this.b.P/2,this.b.O/2,this.Aa[c]),a.dj(this.Z[0].gb)&&(this.b.ea=!0)):a.ed(0),this.b.uc||a.Jf(this.b.width,this.b.height),a.dd(null),a.Re(1),a.ac(this.b.Yb),a.hp(),a.de(),a.le(),c=this.b.width/2,d=this.b.height/2,a.jh(-c,d,c,d,c,-d,-c,-d),a.ac(null)):this.Sl(a,null,null,null))};e.prototype.lg=function(){return 0<this.Z.length||this.b.Vf||!this.b.uc?this.b.Yb:null};e.prototype.An=function(){var a=this.R[0].ic(),
c,d,b;c=1;for(d=this.R.length;c<d;c++)b=this.R[c],(0!==b.Kb||0!==b.Lb)&&b.ic()<a&&(a=b.ic());return a};e.prototype.fp=function(a){if(!this.Fp){var c=1/this.An()*this.b.P/2;a>this.width-c&&(a=this.width-c);a<c&&(a=c)}this.scrollX!==a&&(this.scrollX=a,this.b.ea=!0)};e.prototype.gp=function(a){if(!this.Fp){var c=1/this.An()*this.b.O/2;a>this.height-c&&(a=this.height-c);a<c&&(a=c)}this.scrollY!==a&&(this.scrollY=a,this.b.ea=!0)};e.prototype.Zq=function(){this.fp(this.scrollX);this.gp(this.scrollY)};e.prototype.Sl=
function(a,c,d,b){var f=d?d.Z:c?c.Z:this.Z,g=1,h=0,e=0,n=0,k=this.b.P,q=this.b.O;d?(g=d.d.ic(),h=d.d.Na(),e=d.d.Va,n=d.d.Wa,k=d.d.ib,q=d.d.hb):c&&(g=c.ic(),h=c.Na(),e=c.Va,n=c.Wa,k=c.ib,q=c.hb);var l=this.b.zk,w,A,s,p,B=0,V=1,ca,t=this.b.P,v=this.b.O,ia=t/2,Y=v/2,J=c?c.kh:this.kh,D=c?c.Rl:this.Rl,x=0,P=0,z=0,G=0,E=t,T=t,F=v,H=v,L=s=0,Z=d?d.d.Na():0;if(d){w=0;for(A=f.length;w<A;w++)s+=a.As(f[w].gb),L+=a.Bs(f[w].gb);p=d.Ia;x=c.sb(p.left,p.top,!0,!0);z=c.sb(p.left,p.top,!1,!0);E=c.sb(p.right,p.bottom,
!0,!0);F=c.sb(p.right,p.bottom,!1,!0);0!==Z&&(w=c.sb(p.right,p.top,!0,!0),A=c.sb(p.right,p.top,!1,!0),P=c.sb(p.left,p.bottom,!0,!0),G=c.sb(p.left,p.bottom,!1,!0),p=Math.min(x,E,w,P),E=Math.max(x,E,w,P),x=p,p=Math.min(z,F,A,G),F=Math.max(z,F,A,G),z=p);x-=s;z-=L;E+=s;F+=L;D.left=x/t;D.top=1-z/v;D.right=E/t;D.bottom=1-F/v;P=x=O(x);G=z=O(z);T=E=na(E);H=F=na(F);P-=s;G-=L;T+=s;H+=L;0>x&&(x=0);0>z&&(z=0);E>t&&(E=t);F>v&&(F=v);0>P&&(P=0);0>G&&(G=0);T>t&&(T=t);H>v&&(H=v);J.left=x/t;J.top=1-z/v;J.right=E/t;
J.bottom=1-F/v}else J.left=D.left=0,J.top=D.top=0,J.right=D.right=1,J.bottom=D.bottom=1;L=d&&((d.e||Z)&&a.hh(f[0].gb)||0!==s||0!==L||1!==d.opacity||d.type.Ea.zo)||c&&!d&&1!==c.opacity;a.hp();if(L){l[B]||(l[B]=a.Td(t,v,this.b.X));if(l[B].bg!==t||l[B].ag!==v)a.deleteTexture(l[B]),l[B]=a.Td(t,v,this.b.X);a.ed(0);a.dd(l[B]);ca=H-G;a.clearRect(P,v-G-ca,T-P,ca);d?d.Vb(a):(a.ac(this.b.lc),a.Re(c.opacity),a.de(),a.translate(-ia,-Y),a.le(),a.Gd(x,F,E,F,E,z,x,z,J));D.left=D.top=0;D.right=D.bottom=1;d&&(p=J.top,
J.top=J.bottom,J.bottom=p);B=1;V=0}a.Re(1);s=f.length-1;var Z=a.Ml(f[s].gb)||!c&&!d&&!this.b.uc,ka=0;w=0;for(A=f.length;w<A;w++){l[B]||(l[B]=a.Td(t,v,this.b.X));if(l[B].bg!==t||l[B].ag!==v)a.deleteTexture(l[B]),l[B]=a.Td(t,v,this.b.X);a.ed(f[w].gb);ka=f[w].index;a.dj(f[w].gb)&&(this.b.ea=!0);0!=w||L?(a.If(b,1/t,1/v,D.left,D.top,D.right,D.bottom,g,h,e,n,(e+k)/2,(n+q)/2,d?d.Aa[ka]:c?c.Aa[ka]:this.Aa[ka]),a.ac(null),w!==s||Z?(a.dd(l[B]),ca=H-G,p=v-G-ca,a.clearRect(P,p,T-P,ca)):(d?a.ee(d.nb,d.lb):c&&
a.ee(c.nb,c.lb),a.dd(b)),a.ac(l[V]),a.de(),a.translate(-ia,-Y),a.le(),a.Gd(x,F,E,F,E,z,x,z,J),w!==s||Z||a.ac(null)):(a.dd(l[B]),ca=H-G,p=v-G-ca,a.clearRect(P,p,T-P,ca),d?(a.If(b,1/d.width,1/d.height,D.left,D.top,D.right,D.bottom,g,h,e,n,(e+k)/2,(n+q)/2,d.Aa[ka]),d.Vb(a)):(a.If(b,1/t,1/v,0,0,1,1,g,h,e,n,(e+k)/2,(n+q)/2,c?c.Aa[ka]:this.Aa[ka]),a.ac(c?this.b.lc:this.b.Yb),a.de(),a.translate(-ia,-Y),a.le(),a.Gd(x,F,E,F,E,z,x,z,J)),D.left=D.top=0,D.right=D.bottom=1,d&&!Z&&(p=F,F=z,z=p));B=0===B?1:0;V=
0===B?1:0}Z&&(a.ed(0),d?a.ee(d.nb,d.lb):c?a.ee(c.nb,c.lb):this.b.uc||(a.Jf(this.b.width,this.b.height),ia=this.b.width/2,Y=this.b.height/2,z=x=0,E=this.b.width,F=this.b.height),a.dd(b),a.ac(l[V]),a.de(),a.translate(-ia,-Y),a.le(),d&&1===f.length&&!L?a.Gd(x,z,E,z,E,F,x,F,J):a.Gd(x,F,E,F,E,z,x,z,J),a.ac(null))};e.prototype.ji=function(a){var c,d;c=0;for(d=this.R.length;c<d;c++)if(this.R[c].U===a)return this.R[c];return null};e.prototype.mb=function(){var a,c,d,b={sx:this.scrollX,sy:this.scrollY,s:this.scale,
a:this.e,w:this.width,h:this.height,fv:this.jg,persist:this.ae,fx:[],layers:{}};a=0;for(c=this.K.length;a<c;a++)d=this.K[a],b.fx.push({name:d.name,active:d.Xa,params:this.Aa[d.index]});a=0;for(c=this.R.length;a<c;a++)d=this.R[a],b.layers[d.U.toString()]=d.mb();return b};e.prototype.Ib=function(a){var c,d,b,f;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.e=a.a;this.width=a.w;this.height=a.h;this.ae=a.persist;"undefined"!==typeof a.fv&&(this.jg=a.fv);var g=a.fx;c=0;for(d=g.length;c<d;c++)if(b=
this.Dk(g[c].name))b.Xa=g[c].active,this.Aa[b.index]=g[c].params;this.Ld();c=a.layers;for(f in c)c.hasOwnProperty(f)&&(a=this.ji(parseInt(f,10)))&&a.Ib(c[f])};wb=e;b.prototype.Ld=function(){this.Z.length=0;var a,c,d;a=0;for(c=this.K.length;a<c;a++)d=this.K[a],d.Xa&&this.Z.push(d)};b.prototype.Dk=function(a){var c,d,b;c=0;for(d=this.K.length;c<d;c++)if(b=this.K[c],b.name===a)return b;return null};b.prototype.lr=function(){var a,c,d,b,f,g;c=a=0;for(d=this.lf.length;a<d;a++){b=this.lf[a];f=this.b.q[b[1]];
g=this.b.tm(f);f=!0;if(!g||this.qa.jg)b=this.b.te(b,this,!0),h.push(b),b.type.global&&(f=!1);f&&(this.lf[c]=this.lf[a],c++)}this.lf.length=c;this.b.jb();!this.b.u&&this.K.length&&(this.yb=this.Ir);this.cg=Ya(this.yb);this.b.n&&Za(this,this.yb,this.b.n)};b.prototype.Lp=function(){if(this.ec){var a,c;a=0;for(c=this.c.length;a<c;a++)this.c[a].Ue=a;this.ec=!1}};b.prototype.ic=function(a){return this.xs()*(this.b.uc||a?this.b.$f:1)};b.prototype.xs=function(){return(this.scale*this.qa.scale-1)*this.ob+
1};b.prototype.Na=function(){return this.ve?0:Aa(this.qa.e+this.e)};b.prototype.Ic=function(a){this.be=this.wk||1!==this.opacity||0!==this.yb;var c=this.b.canvas,d=a,b=!1;this.be&&(this.b.Ei||(this.b.Ei=document.createElement("canvas"),c=this.b.Ei,c.width=this.b.P,c.height=this.b.O,this.b.Yn=c.getContext("2d"),b=!0),c=this.b.Ei,d=this.b.Yn,c.width!==this.b.P&&(c.width=this.b.P,b=!0),c.height!==this.b.O&&(c.height=this.b.O,b=!0),b&&(d.webkitImageSmoothingEnabled=this.b.X,d.mozImageSmoothingEnabled=
this.b.X,d.msImageSmoothingEnabled=this.b.X,d.imageSmoothingEnabled=this.b.X),this.Kd&&d.clearRect(0,0,this.b.P,this.b.O));d.globalAlpha=1;d.globalCompositeOperation="source-over";this.Kd||(d.fillStyle="rgb("+this.Rd[0]+","+this.Rd[1]+","+this.Rd[2]+")",d.fillRect(0,0,this.b.P,this.b.O));d.save();this.ve=!0;var b=this.wa(0,0,!0,!0),f=this.wa(0,0,!1,!0);this.ve=!1;this.b.cd&&(b=Math.round(b),f=Math.round(f));this.Ul(b,f,d);var g=this.ic();d.scale(g,g);d.translate(-b,-f);for(var h,b=0,f=this.c.length;b<
f;b++)g=this.c[b],g.visible&&0!==g.width&&0!==g.height&&(g.Ha(),h=g.Ia,h.right<this.Va||h.bottom<this.Wa||h.left>this.ib||h.top>this.hb||(d.globalCompositeOperation=g.cg,g.Ic(d)));d.restore();this.be&&(a.globalCompositeOperation=this.cg,a.globalAlpha=this.opacity,a.drawImage(c,0,0))};b.prototype.wm=function(){this.ve=!0;var a=this.wa(0,0,!0,!0),c=this.wa(0,0,!1,!0);this.ve=!1;this.b.cd&&(a=Math.round(a),c=Math.round(c));this.Ul(a,c,null)};b.prototype.Ul=function(a,c,b){var m=this.ic();this.Va=a;this.Wa=
c;this.ib=a+1/m*this.b.P;this.hb=c+1/m*this.b.O;a=this.Na();0!==a&&(b&&(b.translate(this.b.P/2,this.b.O/2),b.rotate(-a),b.translate(this.b.P/-2,this.b.O/-2)),this.Jd.set(this.Va,this.Wa,this.ib,this.hb),this.Jd.offset((this.Va+this.ib)/-2,(this.Wa+this.hb)/-2),this.yp.lp(this.Jd,a),this.yp.$m(this.Jd),this.Jd.offset((this.Va+this.ib)/2,(this.Wa+this.hb)/2),this.Va=this.Jd.left,this.Wa=this.Jd.top,this.ib=this.Jd.right,this.hb=this.Jd.bottom)};b.prototype.Vb=function(a){var c=this.b.P,b=this.b.O,m=
0,f=0;if(this.be=this.wk||1!==this.opacity||0<this.Z.length||0!==this.yb){this.b.lc||(this.b.lc=a.Td(this.b.P,this.b.O,this.b.X));if(this.b.lc.bg!==this.b.P||this.b.lc.ag!==this.b.O)a.deleteTexture(this.b.lc),this.b.lc=a.Td(this.b.P,this.b.O,this.b.X);a.dd(this.b.lc);this.Kd&&a.clear(0,0,0,0)}this.Kd||a.clear(this.Rd[0]/255,this.Rd[1]/255,this.Rd[2]/255,1);this.ve=!0;var f=this.wa(0,0,!0,!0),g=this.wa(0,0,!1,!0);this.ve=!1;this.b.cd&&(f=Math.round(f),g=Math.round(g));this.Ul(f,g,null);g=this.ic();
a.de();a.scale(g,g);a.dp(-this.Na());a.translate((this.Va+this.ib)/-2,(this.Wa+this.hb)/-2);a.le();var h,e,n;h=0;for(e=this.c.length;h<e;h++)if(n=this.c[h],n.visible&&0!==n.width&&0!==n.height&&(n.Ha(),m=n.Ia,!(m.right<this.Va||m.bottom<this.Wa||m.left>this.ib||m.top>this.hb)))if(n.Mp)if(m=n.Z[0].gb,f=n.Z[0].index,1!==n.Z.length||a.Ml(m)||a.St(m)||(n.e||n.d.Na())&&a.hh(m)||1!==n.opacity||n.type.Ea.zo)this.qa.Sl(a,this,n,this.be?this.b.lc:this.qa.lg()),a.de(),a.scale(g,g),a.dp(-this.Na()),a.translate((this.Va+
this.ib)/-2,(this.Wa+this.hb)/-2),a.le();else{a.ed(m);a.ee(n.nb,n.lb);a.dj(m)&&(this.b.ea=!0);var k=0,q=0,l=0,w=0;a.hh(m)&&(m=n.Ia,k=this.sb(m.left,m.top,!0,!0),q=this.sb(m.left,m.top,!1,!0),l=this.sb(m.right,m.bottom,!0,!0),m=this.sb(m.right,m.bottom,!1,!0),k/=c,q=1-q/b,l/=c,w=1-m/b);a.If(this.be?this.b.lc:this.qa.lg(),1/n.width,1/n.height,k,q,l,w,this.ic(),this.Na(),this.Va,this.Wa,(this.Va+this.ib)/2,(this.Wa+this.hb)/2,n.Aa[f]);n.Vb(a)}else a.ed(0),a.ee(n.nb,n.lb),n.Vb(a);this.be&&(m=this.Z.length?
this.Z[0].gb:0,f=this.Z.length?this.Z[0].index:0,0===this.Z.length||1===this.Z.length&&!a.Ml(m)&&1===this.opacity?(1===this.Z.length?(a.ed(m),a.If(this.qa.lg(),1/this.b.P,1/this.b.O,0,0,1,1,this.ic(),this.Na(),this.Va,this.Wa,(this.Va+this.ib)/2,(this.Wa+this.hb)/2,this.Aa[f]),a.dj(m)&&(this.b.ea=!0)):a.ed(0),a.dd(this.qa.lg()),a.Re(this.opacity),a.ac(this.b.lc),a.ee(this.nb,this.lb),a.de(),a.le(),c=this.b.P/2,b=this.b.O/2,a.jh(-c,b,c,b,c,-b,-c,-b),a.ac(null)):this.qa.Sl(a,this,null,this.qa.lg()))};
b.prototype.wa=function(a,c,b,m){var f=this.b.devicePixelRatio;this.b.Ge&&(a*=f,c*=f);var f=this.b.Oo,g=this.b.Po,f=(this.qa.scrollX-f)*this.Kb+f,g=(this.qa.scrollY-g)*this.Lb+g,h=1/this.ic(!m);m?(f-=this.b.P*h/2,g-=this.b.O*h/2):(f-=this.b.width*h/2,g-=this.b.height*h/2);f+=a*h;g+=c*h;c=this.Na();0!==c&&(f-=this.qa.scrollX,g-=this.qa.scrollY,a=Math.cos(c),c=Math.sin(c),m=f*a-g*c,g=g*a+f*c,f=m+this.qa.scrollX,g+=this.qa.scrollY);return b?f:g};b.prototype.sb=function(a,c,b,m){var f=this.Na();if(0!==
f){a-=this.qa.scrollX;c-=this.qa.scrollY;var g=Math.cos(-f),f=Math.sin(-f),h=a*g-c*f;c=c*g+a*f;a=h+this.qa.scrollX;c+=this.qa.scrollY}g=this.b.Oo;f=this.b.Po;g=(this.qa.scrollX-g)*this.Kb+g;f=(this.qa.scrollY-f)*this.Lb+f;h=1/this.ic(!m);m?(g-=this.b.P*h/2,f-=this.b.O*h/2):(g-=this.b.width*h/2,f-=this.b.height*h/2);g=(a-g)/h;f=(c-f)/h;a=this.b.devicePixelRatio;this.b.Ge&&!m&&(g/=a,f/=a);return b?g:f};b.prototype.mb=function(){var a,c,b,m={s:this.scale,a:this.e,vl:this.Va,vt:this.Wa,vr:this.ib,vb:this.hb,
v:this.visible,bc:this.Rd,t:this.Kd,px:this.Kb,py:this.Lb,o:this.opacity,zr:this.ob,fx:[],instances:[]};a=0;for(c=this.K.length;a<c;a++)b=this.K[a],m.fx.push({name:b.name,active:b.Xa,params:this.Aa[b.index]});return m};b.prototype.Ib=function(a){var c,b;this.scale=a.s;this.e=a.a;this.Va=a.vl;this.Wa=a.vt;this.ib=a.vr;this.hb=a.vb;this.visible=a.v;this.Rd=a.bc;this.Kd=a.t;this.Kb=a.px;this.Lb=a.py;this.opacity=a.o;this.ob=a.zr;var m=a.fx;a=0;for(c=m.length;a<c;a++)if(b=this.Dk(m[a].name))b.Xa=m[a].active,
this.Aa[b.index]=m[a].params;this.Ld();this.c.sort(k);this.ec=!0};Jb=b})();
(function(){function e(a,c){var b,d=a.length;switch(d){case 0:return!0;case 1:return a[0]===c[0];case 2:return a[0]===c[0]&&a[1]===c[1];default:for(b=0;b<d;b++)if(a[b]!==c[b])return!1;return!0}}function k(a,c){return a.index-c.index}function b(a){var c,b,d,f;2===a.length?a[0].index>a[1].index&&(c=a[0],a[0]=a[1],a[1]=c):2<a.length&&a.sort(k);a.length>=n.length&&(n.length=a.length+1);n[a.length]||(n[a.length]=[]);f=n[a.length];c=0;for(b=f.length;c<b;c++)if(d=f[c],e(a,d))return d;f.push(a);return a}
function h(a,c){this.b=a;this.Bp={};this.pn={};this.Ok=!1;this.Fn=new ba;this.jk=[];this.Vj=[];this.name=c[0];var b=c[1];this.Vd=[];var d,f;d=0;for(f=b.length;d<f;d++)this.Hn(b[d],null,this.Vd)}function q(a){this.type=a;this.c=[];this.da=[];this.ta=!0}function a(a,c,b){this.sheet=a;this.parent=c;this.b=a.b;this.ua=[];this.fe=[];this.Dn=this.Cj=this.pm=this.ri=this.group=this.rp=!1;this.kb=[];this.Fc=[];this.Dc=[];this.ng="";this.hf=this.ri=this.group=!1;this.Qh=null;b[1]&&(this.ng=b[1][1].toLowerCase(),
this.group=!0,this.ri=!!b[1][0],this.Qh=[],this.hf=this.ri,this.b.Pd.push(this),this.b.mi[this.ng]=this);this.ad=b[2];this.U=b[4];this.group||(this.b.Zm[this.U.toString()]=this);var d=b[5];a=0;for(c=d.length;a<c;a++){var f=new Kb(this,d[a]);f.index=a;this.kb.push(f);this.Um(f.type)}d=b[6];a=0;for(c=d.length;a<c;a++)f=new Lb(this,d[a]),f.index=a,this.Fc.push(f);if(8===b.length)for(b=b[7],a=0,c=b.length;a<c;a++)this.sheet.Hn(b[a],this,this.Dc);this.xi=!1;this.kb.length&&(this.xi=null==this.kb[0].type&&
this.kb[0].cb==W.prototype.i.Vp)}function c(a,c){var b,d,f;if(a&&(-1===c.indexOf(a)&&c.push(a),a.Lc))for(b=0,d=a.Ub.length;b<d;b++)f=a.Ub[b],a!==f&&-1===c.indexOf(f)&&c.push(f)}function d(a,c){this.fc=a;this.sheet=a.sheet;this.b=a.b;this.L=[];this.la=[];this.Ba={};this.index=-1;this.Zf=!1;this.cb=this.b.Md(c[1]);this.trigger=0<c[3];this.on=2===c[3];this.$c=c[4];this.tg=c[5];this.pt=c[6];this.U=c[7];this.b.bf[this.U.toString()]=this;-1===c[0]?(this.type=null,this.Ra=this.Xl,this.pe=null,this.pc=-1):
(this.type=this.b.q[c[0]],this.Ra=this.pt?this.bu:this.Wl,c[2]?(this.pe=this.type.ii(c[2]),this.pc=this.type.Bk(c[2])):(this.pe=null,this.pc=-1),this.fc.parent&&this.fc.parent.mj());this.on&&(this.Ra=this.cu);if(10===c.length){var b,d,f=c[9];b=0;for(d=f.length;b<d;b++){var g=new Mb(this,f[b]);this.L.push(g)}this.la.length=f.length}}function m(a,c){this.fc=a;this.sheet=a.sheet;this.b=a.b;this.L=[];this.la=[];this.Ba={};this.index=-1;this.Zf=!1;this.cb=this.b.Md(c[1]);-1===c[0]?(this.type=null,this.Ra=
this.Xl,this.pe=null,this.pc=-1):(this.type=this.b.q[c[0]],this.Ra=this.Wl,c[2]?(this.pe=this.type.ii(c[2]),this.pc=this.type.Bk(c[2])):(this.pe=null,this.pc=-1));this.U=c[3];this.b.Ye[this.U.toString()]=this;if(6===c.length){var b,d,f=c[5];b=0;for(d=f.length;b<d;b++){var g=new Mb(this,f[b]);this.L.push(g)}this.la.length=f.length}}function f(a,c){this.m=a;this.fc=a.fc;this.sheet=a.sheet;this.b=a.b;this.type=c[0];this.Xc=null;this.ge=0;this.get=null;this.gn=0;this.qa=null;this.key=0;this.object=null;
this.index=0;this.xh=this.Se=this.xh=this.Se=this.qn=this.ze=this.yh=null;this.Ec=!1;var b,d,f;switch(c[0]){case 0:case 7:this.Xc=new S(this,c[1]);this.ge=0;this.get=this.Is;break;case 1:this.Xc=new S(this,c[1]);this.ge=0;this.get=this.Js;break;case 5:this.Xc=new S(this,c[1]);this.ge=0;this.get=this.Ns;break;case 3:case 8:this.gn=c[1];this.get=this.Gs;break;case 6:this.qa=this.b.il[c[1]];this.get=this.Os;break;case 9:this.key=c[1];this.get=this.Ms;break;case 4:this.object=this.b.q[c[1]];this.get=
this.Ps;this.fc.Um(this.object);this.m instanceof Lb?this.fc.mj():this.fc.parent&&this.fc.parent.mj();break;case 10:this.index=c[1];a.type.C?(this.get=this.Ks,this.Ec=!0):this.get=this.Ls;break;case 11:this.yh=c[1];this.ze=null;this.get=this.Hs;break;case 2:case 12:this.qn=c[1];this.get=this.Fs;break;case 13:for(this.get=this.Qs,this.Se=[],this.xh=[],b=1,d=c.length;b<d;b++)f=new Mb(this.m,c[b]),this.Se.push(f),this.xh.push(0)}}function g(a,c,b){this.sheet=a;this.parent=c;this.b=a.b;this.ua=[];this.name=
b[1];this.Np=b[2];this.qi=b[3];this.zg=!!b[4];this.wi=!!b[5];this.U=b[6];this.b.Xf[this.U.toString()]=this;this.data=this.qi;this.parent?(this.Ne=this.zg||this.wi?-1:this.b.mu++,this.b.Vq.push(this)):(this.Ne=-1,this.b.Sj.push(this))}function r(a,c,b){this.sheet=a;this.parent=c;this.b=a.b;this.ua=[];this.qg=null;this.Ys=b[1];this.Xa=!0}function y(){this.up=[];this.reset(null)}var n=[];h.prototype.toString=function(){return this.name};h.prototype.Hn=function(a,c,b){switch(a[0]){case 0:a=new Nb(this,
c,a);if(a.ad)for(b.push(a),b=0,c=a.kb.length;b<c;b++)a.kb[b].trigger&&this.In(a,b);else a.Rn()?this.In(a,0):b.push(a);break;case 1:a=new Gb(this,c,a);b.push(a);break;case 2:a=new Ob(this,c,a),b.push(a)}};h.prototype.Fa=function(){var a,c;a=0;for(c=this.Vd.length;a<c;a++)this.Vd[a].Fa(a<c-1&&this.Vd[a+1].xi)};h.prototype.um=function(){this.jk.length=0;this.Vj.length=0;this.Tm(this);this.Vj.length=0};h.prototype.Tm=function(a){var c,b,d,f,g=a.jk,m=a.Vj,n=this.Fn.Sc();c=0;for(b=n.length;c<b;++c)d=n[c],
f=d.qg,!d.Xa||a===f||-1<m.indexOf(f)||(m.push(f),f.Tm(a),g.push(f))};h.prototype.Ra=function(a){this.b.Qv||(this.Ok=!0,a||(this.b.Yk=!0));var c,b;c=0;for(b=this.Vd.length;c<b;c++){var d=this.Vd[c];d.Ra();this.b.dk(d.ua);this.b.Wd&&this.b.jb()}a||(this.b.Yk=!1)};h.prototype.In=function(a,c){a.ad||this.b.Fj.push(a);var b,d,f=a.kb[c],g;g=f.type?f.type.name:"system";var m=(b=f.on)?this.pn:this.Bp;m[g]||(m[g]=[]);g=m[g];m=f.cb;if(b){if(f.L.length&&(f=f.L[0],1===f.type&&2===f.Xc.type)){f=f.Xc.value.toLowerCase();
b=0;for(d=g.length;b<d;b++)if(g[b].method==m){b=g[b].fg;b[f]?b[f].push([a,c]):b[f]=[[a,c]];return}b={};b[f]=[[a,c]];g.push({method:m,fg:b})}}else{b=0;for(d=g.length;b<d;b++)if(g[b].method==m){g[b].fg.push([a,c]);return}ac&&m===ac.prototype.i.Xe?g.unshift({method:m,fg:[[a,c]]}):g.push({method:m,fg:[[a,c]]})}};xb=h;q.prototype.Nk=function(){return this.ta?this.type.c.length:this.c.length};q.prototype.Jc=function(){return this.ta?this.type.c:this.c};q.prototype.gh=function(a){a&&(a.b.Eb().gc.ad?(this.ta&&
(this.c.length=0,ta(this.da,a.type.c),this.ta=!1),a=this.da.indexOf(a),-1!==a&&(this.c.push(this.da[a]),this.da.splice(a,1))):(this.ta=!1,this.c.length=1,this.c[0]=a))};eb=q;window._c2hh_="028182FC3C1790C453899C06084DBCA3F631EAD1";a.prototype.Fa=function(a){var c,d=this.parent;if(this.group)for(this.Cj=!0;d;){if(!d.group){this.Cj=!1;break}d=d.parent}this.pm=!this.Rn()&&(!this.parent||this.parent.group&&this.parent.Cj);this.Dn=!!a;this.fe=this.ua.slice(0);for(d=this.parent;d;){a=0;for(c=d.ua.length;a<
c;a++)this.Sq(d.ua[a]);d=d.parent}this.ua=b(this.ua);this.fe=b(this.fe);a=0;for(c=this.kb.length;a<c;a++)this.kb[a].Fa();a=0;for(c=this.Fc.length;a<c;a++)this.Fc[a].Fa();a=0;for(c=this.Dc.length;a<c;a++)this.Dc[a].Fa(a<c-1&&this.Dc[a+1].xi)};a.prototype.gu=function(a){if(this.hf!==!!a){this.hf=!!a;var c;a=0;for(c=this.Qh.length;a<c;++a)this.Qh[a].Hp();0<c&&this.b.ha.ye&&this.b.ha.ye.um()}};a.prototype.Um=function(a){c(a,this.ua)};a.prototype.Sq=function(a){c(a,this.fe)};a.prototype.mj=function(){this.rp=
!0;this.parent&&this.parent.mj()};a.prototype.Rn=function(){return this.kb.length?this.kb[0].trigger:!1};a.prototype.Ra=function(){var a,c=!1,b,d=this.b,f=this.b.Eb();f.gc=this;var g=this.kb;this.xi||(f.ok=!1);if(this.ad){0===g.length&&(c=!0);f.Db=0;for(a=g.length;f.Db<a;f.Db++)g[f.Db].trigger||(b=g[f.Db].Ra())&&(c=!0);(f.Ke=c)&&this.Vl()}else{f.Db=0;for(a=g.length;f.Db<a;f.Db++)if(b=g[f.Db].Ra(),!b){f.Ke=!1;this.pm&&d.Wd&&d.jb();return}f.Ke=!0;this.Vl()}this.Kr(f)};a.prototype.Kr=function(a){a.Ke&&
this.Dn&&(a.ok=!0);this.pm&&this.b.Wd&&this.b.jb()};a.prototype.$t=function(a){this.b.Eb().gc=this;this.kb[a].Ra()&&(this.Vl(),this.b.Eb().Ke=!0)};a.prototype.Vl=function(){var a=this.b.Eb(),c;a.Rb=0;for(c=this.Fc.length;a.Rb<c;a.Rb++)if(this.Fc[a.Rb].Ra())return;this.ep()};a.prototype.Yt=function(){var a=this.b.Eb(),c;for(c=this.Fc.length;a.Rb<c;a.Rb++)if(this.Fc[a.Rb].Ra())return;this.ep()};a.prototype.ep=function(){if(this.Dc.length){var a,c,b,d,f=this.Dc.length-1;this.b.Ol(this);if(this.rp)for(a=
0,c=this.Dc.length;a<c;a++)b=this.Dc[a],(d=!this.Cj||!this.group&&a<f)&&this.b.Nl(b.ua),b.Ra(),d?this.b.Hf(b.ua):this.b.dk(b.ua);else for(a=0,c=this.Dc.length;a<c;a++)this.Dc[a].Ra();this.b.Uo()}};a.prototype.au=function(){var a=this.b.Eb();a.gc=this;var c=!1,b;a.Db=0;for(b=this.kb.length;a.Db<b;a.Db++)if(this.kb[a.Db].Ra())c=!0;else if(!this.ad)return!1;return this.ad?c:!0};a.prototype.it=function(a){var c=a.index;if(0===c)return!0;for(--c;0<=c;--c)if(this.kb[c].type===a.type)return!1;return!0};
Nb=a;d.prototype.Fa=function(){var a,c,b;a=0;for(c=this.L.length;a<c;a++)b=this.L[a],b.Fa(),b.Ec&&(this.Zf=!0)};d.prototype.cu=function(){return!0};d.prototype.Xl=function(){var a,c;a=0;for(c=this.L.length;a<c;a++)this.la[a]=this.L[a].get();return Ka(this.cb.apply(this.b.fd,this.la),this.tg)};d.prototype.bu=function(){var a,c;a=0;for(c=this.L.length;a<c;a++)this.la[a]=this.L[a].get();a=this.cb.apply(this.pe?this.pe:this.type,this.la);this.type.nd();return a};d.prototype.Wl=function(){var a,c,b,d,
f,g,m,n,h=this.type,e=h.pa(),k=this.fc.ad&&!this.trigger;c=0;var q=h.Lc,r=h.C,u=h.wd,C=this.pc,y=-1<C,z=this.Zf,G=this.L,E=this.la,T=this.tg,F=this.cb,H;if(z)for(c=0,f=G.length;c<f;++c)g=G[c],g.Ec||(E[c]=g.get(0));else for(c=0,f=G.length;c<f;++c)E[c]=G[c].get(0);if(e.ta){e.c.length=0;e.da.length=0;H=h.c;a=0;for(d=H.length;a<d;++a){n=H[a];if(z)for(c=0,f=G.length;c<f;++c)g=G[c],g.Ec&&(E[c]=g.get(a));y?(c=0,r&&(c=n.type.ef[u]),c=F.apply(n.J[C+c],E)):c=F.apply(n,E);(m=Ka(c,T))?e.c.push(n):k&&e.da.push(n)}h.finish&&
h.finish(!0);e.ta=!1;h.nd();return e.Nk()}b=0;H=(m=k&&!this.fc.it(this))?e.da:e.c;var L=!1;a=0;for(d=H.length;a<d;++a){n=H[a];if(z)for(c=0,f=G.length;c<f;++c)g=G[c],g.Ec&&(E[c]=g.get(a));y?(c=0,r&&(c=n.type.ef[u]),c=F.apply(n.J[C+c],E)):c=F.apply(n,E);if(Ka(c,T))if(L=!0,m){if(e.c.push(n),q)for(c=0,f=n.siblings.length;c<f;c++)g=n.siblings[c],g.type.pa().c.push(g)}else{H[b]=n;if(q)for(c=0,f=n.siblings.length;c<f;c++)g=n.siblings[c],g.type.pa().c[b]=g;b++}else if(m){H[b]=n;if(q)for(c=0,f=n.siblings.length;c<
f;c++)g=n.siblings[c],g.type.pa().da[b]=g;b++}else if(k&&(e.da.push(n),q))for(c=0,f=n.siblings.length;c<f;c++)g=n.siblings[c],g.type.pa().da.push(g)}H.length=b;if(q)for(r=h.Ub,a=0,d=r.length;a<d;a++)n=r[a].pa(),m?n.da.length=b:n.c.length=b;b=L;if(m&&!L)for(a=0,d=e.c.length;a<d;a++){n=e.c[a];if(z)for(c=0,f=G.length;c<f;c++)g=G[c],g.Ec&&(E[c]=g.get(a));c=y?F.apply(n.J[C],E):F.apply(n,E);if(Ka(c,T)){L=!0;break}}h.finish&&h.finish(b||k);return k?L:e.Nk()};Kb=d;m.prototype.Fa=function(){var a,c,b;a=0;
for(c=this.L.length;a<c;a++)b=this.L[a],b.Fa(),b.Ec&&(this.Zf=!0)};m.prototype.Xl=function(){var a,c;a=0;for(c=this.L.length;a<c;a++)this.la[a]=this.L[a].get();return this.cb.apply(this.b.fd,this.la)};m.prototype.Wl=function(){var a=this.type.pa().Jc(),c=this.type.C,b=this.type.wd,d=this.pc,f=-1<d,g=this.Zf,m=this.L,n=this.la,h=this.cb,e,k,q,r,u,C;if(g)for(k=0,r=m.length;k<r;++k)u=m[k],u.Ec||(n[k]=u.get(0));else for(k=0,r=m.length;k<r;++k)n[k]=m[k].get(0);e=0;for(q=a.length;e<q;++e){C=a[e];if(g)for(k=
0,r=m.length;k<r;++k)u=m[k],u.Ec&&(n[k]=u.get(e));f?(k=0,c&&(k=C.type.ef[b]),h.apply(C.J[d+k],n)):h.apply(C,n)}return!1};Lb=m;var C=[],u=-1;f.prototype.Fa=function(){var a,c;if(11===this.type)this.ze=this.b.xn(this.yh,this.fc.parent);else if(13===this.type)for(a=0,c=this.Se.length;a<c;a++)this.Se[a].Fa();this.Xc&&this.Xc.Fa()};f.prototype.xt=function(a){this.Ec||!a||a.Ea.oj||(this.Ec=!0)};f.prototype.jp=function(){this.Ec=!0};f.prototype.Qa=function(){u++;C.length===u&&C.push(new Pb);return C[u]};
f.prototype.Ma=function(){u--};f.prototype.Is=function(a){this.ge=a||0;a=this.Qa();this.Xc.get(a);this.Ma();return a.data};f.prototype.Js=function(a){this.ge=a||0;a=this.Qa();this.Xc.get(a);this.Ma();return M(a.data)?a.data:""};f.prototype.Ps=function(){return this.object};f.prototype.Gs=function(){return this.gn};f.prototype.Ns=function(a){this.ge=a||0;a=this.Qa();this.Xc.get(a);this.Ma();return a.Ya()?this.b.yd(a.data):this.b.kg(a.data)};f.prototype.Os=function(){return this.qa};f.prototype.Ms=
function(){return this.key};f.prototype.Ls=function(){return this.index};f.prototype.Ks=function(a){a=a||0;var c=this.m.type,b=null,b=c.pa(),d=b.Jc();if(d.length)b=d[a%d.length].type;else if(b.da.length)b=b.da[a%b.da.length].type;else if(c.c.length)b=c.c[a%c.c.length].type;else return 0;return this.index+b.ci[c.wd]};f.prototype.Hs=function(){return this.ze};f.prototype.Fs=function(){return this.qn};f.prototype.Qs=function(){var a,c;a=0;for(c=this.Se.length;a<c;a++)this.xh[a]=this.Se[a].get();return this.xh};
Mb=f;g.prototype.Fa=function(){this.ua=b(this.ua)};g.prototype.nj=function(a){var c=this.b.wn();this.parent&&!this.zg&&c?(this.Ne>=c.length&&(c.length=this.Ne+1),c[this.Ne]=a):this.data=a};g.prototype.Bn=function(){var a=this.b.wn();return!this.parent||this.zg||!a||this.wi?this.data:this.Ne>=a.length||"undefined"===typeof a[this.Ne]?this.qi:a[this.Ne]};g.prototype.Ra=function(){!this.parent||this.zg||this.wi||this.nj(this.qi)};Gb=g;r.prototype.toString=function(){return"include:"+this.qg.toString()};
r.prototype.Fa=function(){this.qg=this.b.qk[this.Ys];this.sheet.Fn.add(this);this.ua=b(this.ua);for(var a=this.parent;a;)a.group&&a.Qh.push(this),a=a.parent;this.Hp()};r.prototype.Ra=function(){this.parent&&this.b.ih(this.b.q);this.qg.Ok||this.qg.Ra(!0);this.parent&&this.b.Hf(this.b.q)};r.prototype.Hp=function(){for(var a=this.parent;a;){if(a.group&&!a.hf){this.Xa=!1;return}a=a.parent}this.Xa=!0};Ob=r;y.prototype.reset=function(a){this.gc=a;this.Rb=this.Db=0;this.up.length=0;this.ok=this.Ke=!1};Fb=
y})();
(function(){function e(b,h){this.m=b;this.b=b.b;this.type=h[0];this.get=[this.Wr,this.Sr,this.ds,this.hs,this.Mr,this.es,this.$r,this.Pr,this.Zr,this.cs,this.Nr,this.bs,this.Qr,this.as,this.Xr,this.Yr,this.Tr,this.Ur,this.Or,this.gs,this.mn,this.Vr,this.mn,this.Rr][this.type];var e=null;this.Jb=this.L=this.la=this.cb=this.zj=this.bb=this.first=this.value=null;this.pc=-1;this.zd=null;this.zm=-1;this.ze=this.yh=null;this.lh=!1;switch(this.type){case 0:case 1:case 2:this.value=h[1];break;case 3:this.first=new S(b,
h[1]);break;case 18:this.first=new S(b,h[1]);this.bb=new S(b,h[2]);this.zj=new S(b,h[3]);break;case 19:this.cb=this.b.Md(h[1]);this.cb!==W.prototype.qb.random&&this.cb!==W.prototype.qb.fr||this.m.jp();this.la=[];this.L=[];3===h.length?(e=h[2],this.la.length=e.length+1):this.la.length=1;break;case 20:this.Jb=this.b.q[h[1]];this.pc=-1;this.cb=this.b.Md(h[2]);this.lh=h[3];Rb.Function&&this.cb===Rb.Function.prototype.qb.Eu&&this.m.jp();this.zd=h[4]?new S(b,h[4]):null;this.la=[];this.L=[];6===h.length?
(e=h[5],this.la.length=e.length+1):this.la.length=1;break;case 21:this.Jb=this.b.q[h[1]];this.lh=h[2];this.zd=h[3]?new S(b,h[3]):null;this.zm=h[4];break;case 22:this.Jb=this.b.q[h[1]];this.Jb.ii(h[2]);this.pc=this.Jb.Bk(h[2]);this.cb=this.b.Md(h[3]);this.lh=h[4];this.zd=h[5]?new S(b,h[5]):null;this.la=[];this.L=[];7===h.length?(e=h[6],this.la.length=e.length+1):this.la.length=1;break;case 23:this.yh=h[1],this.ze=null}this.m.xt(this.Jb);4<=this.type&&17>=this.type&&(this.first=new S(b,h[1]),this.bb=
new S(b,h[2]));if(e){var a,c;a=0;for(c=e.length;a<c;a++)this.L.push(new S(b,e[a]))}}function k(b,h){this.type=b||U.We;this.data=h||0;this.Bf=null;this.type==U.We&&(this.data=Math.floor(this.data))}e.prototype.Fa=function(){23===this.type&&(this.ze=this.m.b.xn(this.yh,this.m.fc.parent));this.first&&this.first.Fa();this.bb&&this.bb.Fa();this.zj&&this.zj.Fa();this.zd&&this.zd.Fa();if(this.L){var b,h;b=0;for(h=this.L.length;b<h;b++)this.L[b].Fa()}};e.prototype.gs=function(b){this.la[0]=b;b=this.m.Qa();
var h,e;h=0;for(e=this.L.length;h<e;h++)this.L[h].get(b),this.la[h+1]=b.data;this.m.Ma();this.cb.apply(this.b.fd,this.la)};e.prototype.mn=function(b){var h=this.Jb.pa(),e=h.Jc();if(!e.length)if(h.da.length)e=h.da;else{this.lh?b.mc(""):b.ma(0);return}this.la[0]=b;b.Bf=this.Jb;b=this.m.Qa();var a,h=0;for(a=this.L.length;h<a;h++)this.L[h].get(b),this.la[h+1]=b.data;h=this.m.ge;this.zd&&(this.zd.get(b),b.Ya()&&(h=b.data,e=this.Jb.c));this.m.Ma();h%=e.length;0>h&&(h+=e.length);e=e[h];-1<this.pc?(b=0,this.Jb.C&&
(b=e.type.ef[this.Jb.wd]),this.cb.apply(e.J[this.pc+b],this.la)):this.cb.apply(e,this.la)};e.prototype.Vr=function(b){var h=this.Jb.pa(),e=h.Jc();if(!e.length)if(h.da.length)e=h.da;else{this.lh?b.mc(""):b.ma(0);return}h=this.m.ge;if(this.zd){var a=this.m.Qa();this.zd.get(a);if(a.Ya()){h=a.data;e=this.Jb.c;h%=e.length;0>h&&(h+=e.length);e=e[h].Oa[this.zm];M(e)?b.mc(e):b.A(e);this.m.Ma();return}this.m.Ma()}h%=e.length;0>h&&(h+=e.length);e=e[h];h=0;this.Jb.C&&(h=e.type.ci[this.Jb.wd]);e=e.Oa[this.zm+
h];M(e)?b.mc(e):b.A(e)};e.prototype.Wr=function(b){b.type=U.We;b.data=this.value};e.prototype.Sr=function(b){b.type=U.Ve;b.data=this.value};e.prototype.ds=function(b){b.type=U.String;b.data=this.value};e.prototype.hs=function(b){this.first.get(b);b.Ya()&&(b.data=-b.data)};e.prototype.Mr=function(b){this.first.get(b);var e=this.m.Qa();this.bb.get(e);b.Ya()&&e.Ya()&&(b.data+=e.data,e.rf()&&b.yf());this.m.Ma()};e.prototype.es=function(b){this.first.get(b);var e=this.m.Qa();this.bb.get(e);b.Ya()&&e.Ya()&&
(b.data-=e.data,e.rf()&&b.yf());this.m.Ma()};e.prototype.$r=function(b){this.first.get(b);var e=this.m.Qa();this.bb.get(e);b.Ya()&&e.Ya()&&(b.data*=e.data,e.rf()&&b.yf());this.m.Ma()};e.prototype.Pr=function(b){this.first.get(b);var e=this.m.Qa();this.bb.get(e);b.Ya()&&e.Ya()&&(b.data/=e.data,b.yf());this.m.Ma()};e.prototype.Zr=function(b){this.first.get(b);var e=this.m.Qa();this.bb.get(e);b.Ya()&&e.Ya()&&(b.data%=e.data,e.rf()&&b.yf());this.m.Ma()};e.prototype.cs=function(b){this.first.get(b);var e=
this.m.Qa();this.bb.get(e);b.Ya()&&e.Ya()&&(b.data=Math.pow(b.data,e.data),e.rf()&&b.yf());this.m.Ma()};e.prototype.Nr=function(b){this.first.get(b);var e=this.m.Qa();this.bb.get(e);b.Ya()?e.yi()?b.mc(b.data.toString()+e.data):b.data&&e.data?b.ma(1):b.ma(0):b.yi()&&(b.data=e.yi()?b.data+e.data:b.data+(Math.round(1E10*e.data)/1E10).toString());this.m.Ma()};e.prototype.bs=function(b){this.first.get(b);var e=this.m.Qa();this.bb.get(e);b.Ya()&&e.Ya()&&(b.data||e.data?b.ma(1):b.ma(0));this.m.Ma()};e.prototype.Or=
function(b){this.first.get(b);b.data?this.bb.get(b):this.zj.get(b)};e.prototype.Qr=function(b){this.first.get(b);var e=this.m.Qa();this.bb.get(e);b.ma(b.data===e.data?1:0);this.m.Ma()};e.prototype.as=function(b){this.first.get(b);var e=this.m.Qa();this.bb.get(e);b.ma(b.data!==e.data?1:0);this.m.Ma()};e.prototype.Xr=function(b){this.first.get(b);var e=this.m.Qa();this.bb.get(e);b.ma(b.data<e.data?1:0);this.m.Ma()};e.prototype.Yr=function(b){this.first.get(b);var e=this.m.Qa();this.bb.get(e);b.ma(b.data<=
e.data?1:0);this.m.Ma()};e.prototype.Tr=function(b){this.first.get(b);var e=this.m.Qa();this.bb.get(e);b.ma(b.data>e.data?1:0);this.m.Ma()};e.prototype.Ur=function(b){this.first.get(b);var e=this.m.Qa();this.bb.get(e);b.ma(b.data>=e.data?1:0);this.m.Ma()};e.prototype.Rr=function(b){var e=this.ze.Bn();K(e)?b.A(e):b.mc(e)};S=e;k.prototype.rf=function(){return this.type===U.Ve};k.prototype.Ya=function(){return this.type===U.We||this.type===U.Ve};k.prototype.yi=function(){return this.type===U.String};
k.prototype.yf=function(){this.rf()||(this.yi()&&(this.data=parseFloat(this.data)),this.type=U.Ve)};k.prototype.ma=function(b){this.type=U.We;this.data=Math.floor(b)};k.prototype.A=function(b){this.type=U.Ve;this.data=b};k.prototype.mc=function(b){this.type=U.String;this.data=b};k.prototype.ku=function(b){K(b)?(this.type=U.Ve,this.data=b):M(b)?(this.type=U.String,this.data=b.toString()):(this.type=U.We,this.data=0)};Pb=k;U={We:0,Ve:1,String:2}})();function W(e){this.b=e;this.Pb=[]}
W.prototype.mb=function(){var e={},k,b,h,q,a,c,d,m;e.waits=[];var f=e.waits,g;k=0;for(b=this.Pb.length;k<b;k++){c=this.Pb[k];g={t:c.time,st:c.qp,s:c.cm,ev:c.df.U,sm:[],sols:{}};c.df.Fc[c.Rb]&&(g.act=c.df.Fc[c.Rb].U);h=0;for(q=c.ua.length;h<q;h++)g.sm.push(c.ua[h].U);for(a in c.xb)if(c.xb.hasOwnProperty(a)){d=this.b.q[parseInt(a,10)];m={sa:c.xb[a].jj,insts:[]};h=0;for(q=c.xb[a].Ad.length;h<q;h++)m.insts.push(c.xb[a].Ad[h].uid);g.sols[d.U.toString()]=m}f.push(g)}return e};
W.prototype.Ib=function(e){e=e.waits;var k,b,h,q,a,c,d,m,f,g,r;k=this.Pb.length=0;for(b=e.length;k<b;k++)if(c=e[k],m=this.b.Zm[c.ev.toString()]){f=-1;h=0;for(q=m.Fc.length;h<q;h++)if(m.Fc[h].U===c.act){f=h;break}if(-1!==f){d={xb:{},ua:[],kk:!1};d.time=c.t;d.qp=c.st||"";d.cm=!!c.s;d.df=m;d.Rb=f;h=0;for(q=c.sm.length;h<q;h++)(m=this.b.li(c.sm[h]))&&d.ua.push(m);for(a in c.sols)if(c.sols.hasOwnProperty(a)&&(m=this.b.li(parseInt(a,10)))){f=c.sols[a];g={jj:f.sa,Ad:[]};h=0;for(q=f.insts.length;h<q;h++)(r=
this.b.ki(f.insts[h]))&&g.Ad.push(r);d.xb[m.index.toString()]=g}this.Pb.push(d)}}};
(function(){function e(){}function k(){}function b(){}var h=W.prototype;e.prototype.Im=function(){return!0};e.prototype.Aq=function(){return!0};e.prototype.Tp=function(a,b,e){return Qb(a.Bn(),b,e)};e.prototype.Vp=function(){var a=this.b.Eb();return a.ok?!1:!a.Ke};e.prototype.Jm=function(){return!0};e.prototype.mq=function(){return!0};e.prototype.Qj=function(){return!0};e.prototype.Bq=function(){return!0};e.prototype.Oj=function(){return!0};e.prototype.Pp=function(a,b,e){return Fa(Q(a),Q(e))<=Q(b)};
e.prototype.Yp=function(a,b){return Ha(Q(a),Q(b))};e.prototype.Wp=function(a,b,e){a=Ca(a);b=Ca(b);e=Ca(e);return Ha(e,b)?Ha(a,b)&&!Ha(a,e):!(!Ha(a,b)&&Ha(a,e))};h.i=new e;k.prototype.fq=function(a){if(!this.b.tf&&!this.b.re){var b=this.b.Zb.indexOf(this.b.ha);if(!a||0!==b)if(a||b!==this.b.Zb.length-1)this.b.re=this.b.Zb[b+(a?-1:1)]}};k.prototype.Kq=function(a,b){0===a.Np?K(b)?a.nj(b):a.nj(parseFloat(b)):1===a.Np&&a.nj(b.toString())};var q=[],a=[];k.prototype.Mq=function(c){if(!(0>c)){var b,e,f,g=
this.b.Eb(),h;h=q.length?q.pop():{xb:{},ua:[]};h.kk=!1;h.time=this.b.kc.V+c;h.qp="";h.cm=!1;h.df=g.gc;h.Rb=g.Rb+1;c=0;for(b=this.b.q.length;c<b;c++)f=this.b.q[c],e=f.pa(),e.ta&&-1===g.gc.ua.indexOf(f)||(h.ua.push(f),f=void 0,f=a.length?a.pop():{Ad:[]},f.jj=!1,f.jj=e.ta,ta(f.Ad,e.c),h.xb[c.toString()]=f);this.Pb.push(h);return!0}};k.prototype.Gq=function(){var a,b,e;a=0;for(b=this.b.Sj.length;a<b;a++)e=this.b.Sj[a],e.data=e.qi};k.prototype.Hq=function(){if(!this.b.tf&&!this.b.re&&this.b.ha){this.b.re=
this.b.ha;var a,b,e;a=0;for(b=this.b.Pd.length;a<b;a++)e=this.b.Pd[a],e.gu(e.ri)}};k.prototype.Iq=function(a){this.b.kj=a};k.prototype.dq=function(a){this.b.Ig=a};h.va=new k;b.prototype["int"]=function(a,b){M(b)?(a.ma(parseInt(b,10)),isNaN(a.data)&&(a.data=0)):a.ma(b)};b.prototype["float"]=function(a,b){M(b)?(a.A(parseFloat(b)),isNaN(a.data)&&(a.data=0)):a.A(b)};b.prototype.random=function(a,b,e){void 0===e?a.A(Math.random()*b):a.A(Math.random()*(e-b)+b)};b.prototype.sqrt=function(a,b){a.A(Math.sqrt(b))};
b.prototype.abs=function(a,b){a.A(Math.abs(b))};b.prototype.round=function(a,b){a.ma(Math.round(b))};b.prototype.floor=function(a,b){a.ma(Math.floor(b))};b.prototype.ceil=function(a,b){a.ma(Math.ceil(b))};b.prototype.sin=function(a,b){a.A(Math.sin(Q(b)))};b.prototype.cos=function(a,b){a.A(Math.cos(Q(b)))};b.prototype.tan=function(a,b){a.A(Math.tan(Q(b)))};b.prototype.asin=function(a,b){a.A(xa(Math.asin(b)))};b.prototype.acos=function(a,b){a.A(xa(Math.acos(b)))};b.prototype.atan=function(a,b){a.A(xa(Math.atan(b)))};
b.prototype.exp=function(a,b){a.A(Math.exp(b))};b.prototype.log10=function(a,b){a.A(Math.log(b)/Math.LN10)};b.prototype.max=function(a){var b=arguments[1];"number"!==typeof b&&(b=0);var e,f,g;e=2;for(f=arguments.length;e<f;e++)g=arguments[e],"number"===typeof g&&b<g&&(b=g);a.A(b)};b.prototype.min=function(a){var b=arguments[1];"number"!==typeof b&&(b=0);var e,f,g;e=2;for(f=arguments.length;e<f;e++)g=arguments[e],"number"===typeof g&&b>g&&(b=g);a.A(b)};b.prototype.xe=function(a){a.A(this.b.xe)};b.prototype.Sf=
function(a){a.A(this.b.Sf)};b.prototype.time=function(a){a.A(this.b.kc.V)};b.prototype.Te=function(a){a.ma(this.b.Te)};b.prototype.Pi=function(a){a.ma(this.b.Pi)};b.prototype.xk=function(a){a.ma(this.b.xk)};b.prototype.e=function(a,b,e,f,g){a.A(xa(Da(b,e,f,g)))};b.prototype.find=function(a,b,e){M(b)&&M(e)?a.ma(b.search(new RegExp(Va(e),"i"))):a.ma(-1)};b.prototype.left=function(a,b,e){a.mc(M(b)?b.substr(0,e):"")};b.prototype.right=function(a,b,e){a.mc(M(b)?b.substr(b.length-e):"")};b.prototype.replace=
function(a,b,e,f){M(b)&&M(e)&&M(f)?a.mc(b.replace(new RegExp(Va(e),"gi"),f)):a.mc(M(b)?b:"")};b.prototype.trim=function(a,b){a.mc(M(b)?b.trim():"")};b.prototype.fr=function(a){var b=O(Math.random()*(arguments.length-1));a.ku(arguments[b+1])};b.prototype.ek=function(a){a.A(this.b.ek/1E3)};b.prototype.Ji=function(a){a.A(this.b.Ji)};h.qb=new b;h.Zt=function(){var c,b,e,f,g,h,k=this.b.Eb();c=0;for(e=this.Pb.length;c<e;c++){f=this.Pb[c];if(-1===f.time){if(!f.cm)continue}else if(f.time>this.b.kc.V)continue;
k.gc=f.df;k.Rb=f.Rb;k.Db=0;for(b in f.xb)f.xb.hasOwnProperty(b)&&(g=this.b.q[parseInt(b,10)].pa(),h=f.xb[b],g.ta=h.jj,ta(g.c,h.Ad),g=h,g.Ad.length=0,a.push(g));f.df.Yt();this.b.dk(f.ua);f.kk=!0}b=c=0;for(e=this.Pb.length;c<e;c++)f=this.Pb[c],this.Pb[b]=f,f.kk?(Qa(f.xb),f.ua.length=0,q.push(f)):b++;this.Pb.length=b}})();
(function(){db=function(e,b){var h=e[1],q=e[3],a=e[4],c=e[5],d=e[6],m=e[7],f=e[8];b.i||(b.i={});b.va||(b.va={});b.qb||(b.qb={});var g=b.i,r=b.va,y=b.qb;q&&(g.Ju=function(a,c){return Qb(this.x,a,c)},g.Ku=function(a,c){return Qb(this.y,a,c)},g.Qu=function(){var a=this.d;this.Ha();var c=this.Ia;return!(c.right<a.Va||c.bottom<a.Wa||c.left>a.ib||c.top>a.hb)},g.Ru=function(){this.Ha();var a=this.Ia,c=this.b.ha;return 0>a.right||0>a.bottom||a.left>c.width||a.top>c.height},g.bv=function(a,c,b){var d=this.pa(),
f=d.Jc();if(!f.length)return!1;var g=f[0],e=g,m=Ja(g.x,g.y,c,b),h,k,q;h=1;for(k=f.length;h<k;h++)if(g=f[h],q=Ja(g.x,g.y,c,b),0===a&&q<m||1===a&&q>m)m=q,e=g;d.gh(e);return!0},r.wv=function(a){this.x!==a&&(this.x=a,this.ba())},r.xv=function(a){this.y!==a&&(this.y=a,this.ba())},r.rv=function(a,c){if(this.x!==a||this.y!==c)this.x=a,this.y=c,this.ba()},r.sv=function(a,c){var b=a.ys(this);if(b){var d;b.Fk?(d=b.Fk(c,!0),b=b.Fk(c,!1)):(d=b.x,b=b.y);if(this.x!==d||this.y!==b)this.x=d,this.y=b,this.ba()}},
r.Vu=function(a){0!==a&&(this.x+=Math.cos(this.e)*a,this.y+=Math.sin(this.e)*a,this.ba())},r.Uu=function(a,c){0!==c&&(this.x+=Math.cos(Q(a))*c,this.y+=Math.sin(Q(a))*c,this.ba())},y.Om=function(a){a.A(this.x)},y.Pm=function(a){a.A(this.y)},y.xe=function(a){a.A(this.b.ff(this))});a&&(g.Iu=function(a,c){return Qb(this.width,a,c)},g.Fu=function(a,c){return Qb(this.height,a,c)},r.vv=function(a){this.width!==a&&(this.width=a,this.ba())},r.pv=function(a){this.height!==a&&(this.height=a,this.ba())},r.tv=
function(a,c){if(this.width!==a||this.height!==c)this.width=a,this.height=c,this.ba()},y.Bv=function(a){a.A(this.width)},y.Mu=function(a){a.A(this.height)},y.Bu=function(a){this.Ha();a.A(this.Ia.left)},y.Du=function(a){this.Ha();a.A(this.Ia.top)},y.Cu=function(a){this.Ha();a.A(this.Ia.right)},y.Au=function(a){this.Ha();a.A(this.Ia.bottom)});c&&(g.Pp=function(a,c){return Fa(this.e,Q(c))<=Q(a)},g.Yp=function(a){return Ha(this.e,Q(a))},g.Wp=function(a,c){var b=Ca(a),d=Ca(c),f=Aa(this.e);return Ha(d,
b)?Ha(f,b)&&!Ha(f,d):!(!Ha(f,b)&&Ha(f,d))},r.lv=function(a){a=Q(za(a));isNaN(a)||this.e===a||(this.e=a,this.ba())},r.hv=function(a){0===a||isNaN(a)||(this.e+=Q(a),this.e=Aa(this.e),this.ba())},r.iv=function(a){0===a||isNaN(a)||(this.e-=Q(a),this.e=Aa(this.e),this.ba())},r.jv=function(a,c){var b=Ga(this.e,Q(c),Q(a));isNaN(b)||this.e===b||(this.e=b,this.ba())},r.kv=function(a,c,b){a=Ga(this.e,Math.atan2(b-this.y,c-this.x),Q(a));isNaN(a)||this.e===a||(this.e=a,this.ba())},r.uv=function(a,c){var b=Math.atan2(c-
this.y,a-this.x);isNaN(b)||this.e===b||(this.e=b,this.ba())},y.zu=function(a){a.A(Ba(this.e))});h||(g.Gu=function(a,c,b){return Qb(this.Oa[a],c,b)},g.Ou=function(a){return this.Oa[a]},g.cv=function(a,c){var b=this.pa(),d=b.Jc();if(!d.length)return!1;var f=d[0],g=f,e=f.Oa[c],m,h,k;m=1;for(h=d.length;m<h;m++)if(f=d[m],k=f.Oa[c],0===a&&k<e||1===a&&k>e)e=k,g=f;b.gh(g);return!0},g.av=function(a){var c,b,d,f,g;if(this.b.vn().tg){g=this.pa();if(g.ta)for(g.ta=!1,g.c.length=0,g.da.length=0,d=this.c,c=0,b=
d.length;c<b;c++)f=d[c],f.uid===a?g.da.push(f):g.c.push(f);else{d=c=0;for(b=g.c.length;c<b;c++)f=g.c[c],g.c[d]=f,f.uid===a?g.da.push(f):d++;g.c.length=d}this.nd();return!!g.c.length}f=this.b.ki(a);if(!f)return!1;g=this.pa();if(!g.ta&&-1===g.c.indexOf(f))return!1;if(this.C)for(a=f.type.xa,c=0,b=a.length;c<b;c++){if(a[c]===this)return g.gh(f),this.nd(),!0}else if(f.type===this)return g.gh(f),this.nd(),!0;return!1},g.nq=function(){return!0},g.oq=function(){return!0},r.qv=function(a,c){var b=this.Oa;
K(b[a])?b[a]=K(c)?c:parseFloat(c):M(b[a])&&(b[a]=M(c)?c:c.toString())},r.yu=function(a,c){var b=this.Oa;K(b[a])?b[a]=K(c)?b[a]+c:b[a]+parseFloat(c):M(b[a])&&(b[a]=M(c)?b[a]+c:b[a]+c.toString())},r.yv=function(a,c){var b=this.Oa;K(b[a])&&(b[a]=K(c)?b[a]-c:b[a]-parseFloat(c))},r.mv=function(a,c){this.Oa[a]=c?1:0},r.zv=function(a){this.Oa[a]=1-this.Oa[a]},r.Up=function(){this.b.kd(this)},r.cq||(r.cq=function(a){var c,b;try{c=JSON.parse(a)}catch(d){return}this.b.Hi(this,c,!0);this.ld&&this.ld();if(this.J)for(a=
0,c=this.J.length;a<c;++a)b=this.J[a],b.ld&&b.ld()}),y.Lu=function(a){var c=a.Bf.c.length,b,d,f;b=0;for(d=this.b.Hc.length;b<d;b++)f=this.b.Hc[b],a.Bf.C?0<=f.type.xa.indexOf(a.Bf)&&c++:f.type===a.Bf&&c++;a.ma(c)},y.gv=function(a){a.ma(a.Bf.pa().Jc().length)},y.Av=function(a){a.ma(this.uid)},y.Nu=function(a){a.ma(this.mg())},y.Qp||(y.Qp=function(a){a.mc(JSON.stringify(this.b.Yl(this,!0)))}));d&&(g.aq=function(){return this.visible},r.Lq=function(a){!a!==!this.visible&&(this.visible=a,this.b.ea=!0)},
g.Hu=function(a,c){return Qb($a(100*this.opacity),a,c)},r.Jq=function(a){a/=100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.ea=!0)},y.Opacity=function(a){a.A($a(100*this.opacity))});m&&(g.Pu=function(a){return a?this.d===a:!1},g.dv=function(a){var c=this.pa(),b=c.Jc();if(!b.length)return!1;var d=b[0],f=d,g,e;g=1;for(e=b.length;g<e;g++)if(d=b[g],0===a){if(d.d.index>f.d.index||d.d.index===f.d.index&&d.Wb()>f.Wb())f=d}else if(d.d.index<f.d.index||d.d.index===f.d.index&&d.Wb()<f.Wb())f=
d;c.gh(f);return!0},r.Yu=function(){var a=this.Wb();a!==this.d.c.length-1&&(sa(this.d.c,a),this.d.c.push(this),this.b.ea=!0,this.d.ec=!0)},r.Wu=function(){var a=this.Wb();0!==a&&(sa(this.d.c,a),this.d.c.unshift(this),this.b.ea=!0,this.d.ec=!0)},r.Xu=function(a){a&&a!=this.d&&(sa(this.d.c,this.Wb()),this.d.ec=!0,this.d=a,this.Ue=a.c.length,a.c.push(this),this.b.ea=!0)},r.Dv=function(a,c){var b=0===a;if(c){var d=c.ts(this);if(d&&d.uid!==this.uid){this.d.index!==d.d.index&&(sa(this.d.c,this.Wb()),this.d.ec=
!0,this.d=d.d,this.Ue=d.d.c.length,d.d.c.push(this));var f=this.Wb(),d=d.Wb();sa(this.d.c,f);f<d&&d--;b&&d++;d===this.d.c.length?this.d.c.push(this):this.d.c.splice(d,0,this);this.d.ec=!0;this.b.ea=!0}}},y.Tu=function(a){a.ma(this.d.Co)},y.Su=function(a){a.mc(this.d.name)},y.Cv=function(a){a.ma(this.Wb())});f&&(r.nv=function(a,c){if(this.b.u){var b=this.type.Ek(c);if(!(0>b)){var d=1===a;this.Nd[b]!==d&&(this.Nd[b]=d,this.Ld(),this.b.ea=!0)}}},r.ov=function(a,c,b){if(this.b.u){var d=this.type.Ek(a);
0>d||(a=this.type.K[d],d=this.Aa[d],c=Math.floor(c),0>c||c>=d.length||(1===this.b.u.Cs(a.gb,c)&&(b/=100),d[c]!==b&&(d[c]=b,a.Xa&&(this.b.ea=!0))))}})};yb=function(){this.ak=this.Jh=!0;this.type.Dh=!0;this.b.ea=!0;var e,b,h=this.Zj;e=0;for(b=h.length;e<b;++e)h[e](this)};zb=function(e){e&&this.Zj.push(e)};Bb=function(){if(this.Jh){var e=this.Ia,b=this.Tb;e.set(this.x,this.y,this.x+this.width,this.y+this.height);e.offset(-this.Gb*this.width,-this.Hb*this.height);this.e?(e.offset(-this.x,-this.y),b.lp(e,
this.e),b.offset(this.x,this.y),b.$m(e)):b.Lf(e);e.normalize();this.Jh=!1}};var e=new pa(0,0,0,0);Cb=function(){if(this.ak&&this.pd){this.Ha();var k=this.type.Ph,b=this.Oh,h=this.Ia;e.set(k.Bh(h.left),k.Ch(h.top),k.Bh(h.right),k.Ch(h.bottom));b.Lr(e)||(b.right<b.left?k.update(this,null,e):k.update(this,b,e),b.ir(e),this.ak=!1)}};Ab=function(e,b){return this.Ia.pb(e,b)&&this.Tb.pb(e,b)?this.ca&&!this.ca.qf()?(this.ca.$e(this.width,this.height,this.e),this.ca.pb(e-this.x,b-this.y)):!0:!1};ub=function(){this.type.Hj();
return this.Ee};Db=function(){this.d.Lp();return this.Ue};Eb=function(){this.Z.length=0;var e,b;e=0;for(b=this.Nd.length;e<b;e++)this.Nd[e]&&this.Z.push(this.type.K[e]);this.Mp=!!this.Z.length};vb=function(){return"Inst"+this.Yo};gb=function(e){if(e&&e.Lc&&e.type!=this){var b,h,q;b=0;for(h=e.siblings.length;b<h;b++)if(q=e.siblings[b],q.type==this)return q}e=this.pa().Jc();return e.length?e[0]:null};hb=function(e){var b=this.pa().Jc();return b.length?b[e.mg()%b.length]:null};fb=function(){if(this.Of&&
!this.C){var e,b;e=0;for(b=this.c.length;e<b;e++)this.c[e].Ee=e;var h=e,q=this.b.Hc;e=0;for(b=q.length;e<b;++e)q[e].type===this&&(q[e].Ee=h++);this.Of=!1}};sb=function(e){if(e<this.c.length)return this.c[e];e-=this.c.length;var b=this.b.Hc,h,q;h=0;for(q=b.length;h<q;++h)if(b[h].type===this){if(0===e)return b[h];--e}return null};ib=function(){return this.he[this.td]};jb=function(){this.td++;this.td===this.he.length?this.he.push(new eb(this)):this.he[this.td].ta=!0};kb=function(){this.td++;this.td===
this.he.length&&this.he.push(new eb(this));var e=this.he[this.td],b=this.he[this.td-1];b.ta?e.ta=!0:(e.ta=!1,ta(e.c,b.c),ta(e.da,b.da))};lb=function(){this.td--};mb=function(e){var b,h,q,a,c,d=0;if(!this.C)for(b=0,h=this.xa.length;b<h;b++)for(c=this.xa[b],q=0,a=c.Ja.length;q<a;q++){if(e===c.Ja[q].name)return this.Ba.lastBehIndex=d,c.Ja[q];d++}b=0;for(h=this.Ja.length;b<h;b++){if(e===this.Ja[b].name)return this.Ba.lastBehIndex=d,this.Ja[b];d++}return null};pb=function(e){return this.ii(e)?this.Ba.lastBehIndex:
-1};qb=function(e){var b,h;b=0;for(h=this.K.length;b<h;b++)if(this.K[b].name===e)return b;return-1};rb=function(){if(this.Lc&&!this.C){var e,b,h,q,a,c,d;this.Hj();c=this.pa();var m=c.ta,f=(e=this.b.Eb())&&e.gc&&e.gc.ad;e=0;for(b=this.Ub.length;e<b;e++)if(a=this.Ub[e],a!==this&&(a.Hj(),d=a.pa(),d.ta=m,!m)){d.c.length=c.c.length;h=0;for(q=c.c.length;h<q;h++)d.c[h]=a.yn(c.c[h].Ee);if(f)for(d.da.length=c.da.length,h=0,q=c.da.length;h<q;h++)d.da[h]=a.yn(c.da[h].Ee)}}};tb=function(){return"Type"+this.U};
Qb=function(e,b,h){if("undefined"===typeof e||"undefined"===typeof h)return!1;switch(b){case 0:return e===h;case 1:return e!==h;case 2:return e<h;case 3:return e<=h;case 4:return e>h;case 5:return e>=h;default:return!1}}})();var Zb={};function bc(e){this.b=e}
(function(){function e(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function k(a){a=a.toLowerCase();return N.hasOwnProperty(a)&&N[a].length?N[a][0].hc():x.destination}function b(){return x.createGain?x.createGain():x.createGainNode()}function h(a){return x.createDelay?x.createDelay(a):x.createDelayNode(a)}function q(a){a.start?a.start(0):a.noteOn(0)}function a(a,c,b){a.start?a.start(0,c):a.noteGrainOn(0,c,b-c)}function c(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(c){}}function d(a,
c,d,f,e,g){this.type="filter";this.Nc=[a,c,d,f,e,g];this.W=b();this.I=b();this.I.gain.value=g;this.D=b();this.D.gain.value=1-g;this.Ka=x.createBiquadFilter();this.Ka.type="number"===typeof this.Ka.type?a:oc[a];this.Ka.frequency.value=c;this.Ka.detune&&(this.Ka.detune.value=d);this.Ka.Q.value=f;this.Ka.gain.value=e;this.W.connect(this.Ka);this.W.connect(this.D);this.Ka.connect(this.I)}function m(a,c,d){this.type="delay";this.Nc=[a,c,d];this.W=b();this.I=b();this.I.gain.value=d;this.D=b();this.D.gain.value=
1-d;this.Rg=b();this.tc=h(a);this.tc.delayTime.value=a;this.Yh=b();this.Yh.gain.value=c;this.W.connect(this.Rg);this.W.connect(this.D);this.Rg.connect(this.I);this.Rg.connect(this.tc);this.tc.connect(this.Yh);this.Yh.connect(this.Rg)}function f(a,c,d,f){this.type="convolve";this.Nc=[c,d,f];this.W=b();this.I=b();this.I.gain.value=d;this.D=b();this.D.gain.value=1-d;this.se=x.createConvolver();a&&(this.se.normalize=c,this.se.buffer=a);this.W.connect(this.se);this.W.connect(this.D);this.se.connect(this.I)}
function g(a,c,d,f,e){this.type="flanger";this.Nc=[a,c,d,f,e];this.W=b();this.D=b();this.D.gain.value=1-e/2;this.I=b();this.I.gain.value=e/2;this.di=b();this.di.gain.value=f;this.tc=h(a+c);this.tc.delayTime.value=a;this.ab=x.createOscillator();this.ab.frequency.value=d;this.$b=b();this.$b.gain.value=c;this.W.connect(this.tc);this.W.connect(this.D);this.tc.connect(this.I);this.tc.connect(this.di);this.di.connect(this.tc);this.ab.connect(this.$b);this.$b.connect(this.tc.delayTime);q(this.ab)}function r(a,
c,d,f,e,g){this.type="phaser";this.Nc=[a,c,d,f,e,g];this.W=b();this.D=b();this.D.gain.value=1-g/2;this.I=b();this.I.gain.value=g/2;this.Ka=x.createBiquadFilter();this.Ka.type="number"===typeof this.Ka.type?7:"allpass";this.Ka.frequency.value=a;this.Ka.detune&&(this.Ka.detune.value=c);this.Ka.Q.value=d;this.ab=x.createOscillator();this.ab.frequency.value=e;this.$b=b();this.$b.gain.value=f;this.W.connect(this.Ka);this.W.connect(this.D);this.Ka.connect(this.I);this.ab.connect(this.$b);this.$b.connect(this.Ka.frequency);
q(this.ab)}function y(a){this.type="gain";this.Nc=[a];this.Y=b();this.Y.gain.value=a}function n(a,c){this.type="tremolo";this.Nc=[a,c];this.Y=b();this.Y.gain.value=1-c/2;this.ab=x.createOscillator();this.ab.frequency.value=a;this.$b=b();this.$b.gain.value=c/2;this.ab.connect(this.$b);this.$b.connect(this.Y.gain);q(this.ab)}function C(a,c){this.type="ringmod";this.Nc=[a,c];this.W=b();this.I=b();this.I.gain.value=c;this.D=b();this.D.gain.value=1-c;this.mh=b();this.mh.gain.value=0;this.ab=x.createOscillator();
this.ab.frequency.value=a;this.ab.connect(this.mh.gain);q(this.ab);this.W.connect(this.mh);this.W.connect(this.D);this.mh.connect(this.I)}function u(a,c,d,f,e){this.type="distortion";this.Nc=[a,c,d,f,e];this.W=b();this.bj=b();this.aj=b();this.fu(d,Math.pow(10,f/20));this.I=b();this.I.gain.value=e;this.D=b();this.D.gain.value=1-e;this.Kj=x.createWaveShaper();this.Wh=new Float32Array(65536);this.ps(a,c);this.Kj.Wh=this.Wh;this.W.connect(this.bj);this.W.connect(this.D);this.bj.connect(this.Kj);this.Kj.connect(this.aj);
this.aj.connect(this.I)}function l(a,c,b,d,f){this.type="compressor";this.Nc=[a,c,b,d,f];this.Y=x.createDynamicsCompressor();try{this.Y.threshold.value=a,this.Y.knee.value=c,this.Y.ratio.value=b,this.Y.attack.value=d,this.Y.release.value=f}catch(e){}}function w(a,c){this.type="analyser";this.Nc=[a,c];this.Y=x.createAnalyser();this.Y.fftSize=a;this.Y.smoothingTimeConstant=c;this.ns=new Float32Array(this.Y.frequencyBinCount);this.op=new Uint8Array(a);this.fh=0}function A(){this.H=null;this.Ii=0;this.ie=
[];this.tl=this.Ci=this.Bi=0}function s(a,c){this.src=a;this.S=D;this.Mc=c;this.Vm=!1;var d=this;this.rl=this.Hl=null;this.Ff=[];this.lj=0;this.Dm=this.uk=this.tp=this.Yi=!1;1===D&&c&&(this.S=0,this.Hl=b());this.oe=this.fa=null;var f;switch(this.S){case 0:this.fa=new Audio;this.fa.addEventListener("canplaythrough",function(){d.Dm=!0});1===D&&x.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.tp=!0,this.fa.addEventListener("canplay",function(){d.rl||(d.rl=x.createMediaElementSource(d.fa),
d.rl.connect(d.Hl))}));this.fa.autoplay=!1;this.fa.Nv="auto";this.fa.src=a;break;case 1:f=new XMLHttpRequest;f.open("GET",a,!0);f.responseType="arraybuffer";f.onload=function(){d.oe=f.response;d.mr()};f.onerror=function(){d.uk=!0};f.send();break;case 2:this.fa=!0;break;case 3:this.fa=!0}}function p(a,c){var d=this;this.tag=c;this.cc=this.Yc=!0;this.src=a.src;this.buffer=a;this.S=D;this.Mc=a.Mc;this.playbackRate=1;this.Jl=!0;this.xc=this.Hd=!1;this.Mb=0;this.yg=this.sf=this.$c=!1;this.volume=1;this.He=
1===T&&!this.Mc||2===T;this.zf=1;this.startTime=this.He?v.kc.V:v.jd.V;this.Da=this.La=null;this.bd=!1;this.Ca=null;this.Lo=this.Ko=this.Jo=this.Io=this.No=this.Mo=0;this.k=null;var f=!1;1!==this.S||0!==this.buffer.S||this.buffer.tp||(this.S=0);switch(this.S){case 0:this.Mc?(this.k=a.fa,f=!a.Vm,a.Vm=!0):(this.k=new Audio,this.k.autoplay=!1,this.k.src=a.fa.src,f=!0);f&&this.k.addEventListener("ended",function(){Y=d.tag;d.cc=!0;v.trigger(bc.prototype.i.Nj,ia)});break;case 1:this.La=b();this.La.connect(k(c));
1===this.buffer.S?a.fa&&(this.k=x.createBufferSource(),this.k.buffer=a.fa,this.k.connect(this.La)):(this.k=this.buffer.fa,this.buffer.Hl.connect(this.La));break;case 2:this.k=new window.Media(J+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(d.Jl=!0,d.cc=!0,Y=d.tag,v.trigger(bc.prototype.i.Nj,ia))});break;case 3:this.k=!0}}function B(a,c){N.hasOwnProperty(a)?N[a].push(c):N[a]=[c];var b,d,f,e,g=x.destination;if(N.hasOwnProperty(a)&&(f=N[a],f.length))for(g=f[0].hc(),b=0,d=f.length;b<
d;b++)e=f[b],b+1===d?e.qc(x.destination):e.qc(f[b+1].hc());Ea.length=0;if(a.length)for(b=0,d=z.length;b<d;b++)f=z[b],ab(a,f.tag)&&Ea.push(f);else G&&!G.De()&&(Ea.length=1,Ea[0]=G);b=0;for(d=Ea.length;b<d;b++)Ea[b].Vt(g);ya&&nb===a&&(ya.disconnect(),ya.connect(g))}function V(){}function ca(){}var t=bc.prototype;t.ya=function(a){this.Ea=a;this.b=a.b};t.ya.prototype.aa=function(){};var v=null,ia=null,Y="",J="",D=0,x=null,P=[],z=[],G=null,E=!1,T=0,F=!1,H=1,L=0,Z=0,ka=1,ob=1,hc=10,ic=1E4,jc=1,ya=null,
nb="",Ma=!1,Na=[],N={},oc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");d.prototype.qc=function(a){this.I.disconnect();this.I.connect(a);this.D.disconnect();this.D.connect(a)};d.prototype.remove=function(){this.W.disconnect();this.Ka.disconnect();this.I.disconnect();this.D.disconnect()};d.prototype.hc=function(){return this.W};m.prototype.qc=function(a){this.I.disconnect();this.I.connect(a);this.D.disconnect();this.D.connect(a)};m.prototype.remove=function(){this.W.disconnect();
this.Rg.disconnect();this.tc.disconnect();this.Yh.disconnect();this.I.disconnect();this.D.disconnect()};m.prototype.hc=function(){return this.W};f.prototype.qc=function(a){this.I.disconnect();this.I.connect(a);this.D.disconnect();this.D.connect(a)};f.prototype.remove=function(){this.W.disconnect();this.se.disconnect();this.I.disconnect();this.D.disconnect()};f.prototype.hc=function(){return this.W};g.prototype.qc=function(a){this.D.disconnect();this.D.connect(a);this.I.disconnect();this.I.connect(a)};
g.prototype.remove=function(){this.W.disconnect();this.tc.disconnect();this.ab.disconnect();this.$b.disconnect();this.D.disconnect();this.I.disconnect();this.di.disconnect()};g.prototype.hc=function(){return this.W};r.prototype.qc=function(a){this.D.disconnect();this.D.connect(a);this.I.disconnect();this.I.connect(a)};r.prototype.remove=function(){this.W.disconnect();this.Ka.disconnect();this.ab.disconnect();this.$b.disconnect();this.D.disconnect();this.I.disconnect()};r.prototype.hc=function(){return this.W};
y.prototype.qc=function(a){this.Y.disconnect();this.Y.connect(a)};y.prototype.remove=function(){this.Y.disconnect()};y.prototype.hc=function(){return this.Y};n.prototype.qc=function(a){this.Y.disconnect();this.Y.connect(a)};n.prototype.remove=function(){this.ab.disconnect();this.$b.disconnect();this.Y.disconnect()};n.prototype.hc=function(){return this.Y};C.prototype.qc=function(a){this.I.disconnect();this.I.connect(a);this.D.disconnect();this.D.connect(a)};C.prototype.remove=function(){this.ab.disconnect();
this.mh.disconnect();this.W.disconnect();this.I.disconnect();this.D.disconnect()};C.prototype.hc=function(){return this.W};u.prototype.fu=function(a,c){.01>a&&(a=.01);this.bj.gain.value=a;this.aj.gain.value=Math.pow(1/a,.6)*c};u.prototype.shape=function(a,c,b){var d=1.05*b*c-c;b=0>a?-1:1;a=0>a?-a:a;c=a<c?a:c+d*(1-Math.exp(-(1/d)*(a-c)));return c*b};u.prototype.ps=function(a,c){for(var b=Math.pow(10,a/20),d=Math.pow(10,c/20),f=0,e=0;32768>e;++e)f=e/32768,f=this.shape(f,b,d),this.Wh[32768+e]=f,this.Wh[32768-
e-1]=-f};u.prototype.qc=function(a){this.I.disconnect();this.I.connect(a);this.D.disconnect();this.D.connect(a)};u.prototype.remove=function(){this.W.disconnect();this.bj.disconnect();this.Kj.disconnect();this.aj.disconnect();this.I.disconnect();this.D.disconnect()};u.prototype.hc=function(){return this.W};l.prototype.qc=function(a){this.Y.disconnect();this.Y.connect(a)};l.prototype.remove=function(){this.Y.disconnect()};l.prototype.hc=function(){return this.Y};w.prototype.Ga=function(){this.Y.getFloatFrequencyData(this.ns);
this.Y.getByteTimeDomainData(this.op);for(var a=this.Y.fftSize,c=0,b=this.fh=0,d=0;c<a;c++)d=(this.op[c]-128)/128,0>d&&(d=-d),this.fh<d&&(this.fh=d),b+=d*d;this.fh=e(this.fh);e(Math.sqrt(b/a))};w.prototype.qc=function(a){this.Y.disconnect();this.Y.connect(a)};w.prototype.remove=function(){this.Y.disconnect()};w.prototype.hc=function(){return this.Y};A.prototype.nh=function(a){if(this.H=a)this.Bi=this.H.x,this.Ci=this.H.y;this.ie.length=0};A.prototype.pi=function(){return!!this.H};A.prototype.Ga=function(a){this.H&&
0!==a&&(this.tl=Da(this.Bi,this.Ci,this.H.x,this.H.y),a=Ja(this.Bi,this.Ci,this.H.x,this.H.y)/a,4>this.ie.length||this.ie.shift(),this.ie.push(a),this.Bi=this.H.x,this.Ci=this.H.y)};A.prototype.Ik=function(){if(!this.ie.length)return 0;var a,c,b=0;a=0;for(c=this.ie.length;a<c;a++)b+=this.ie[a];return b/this.ie.length};A.prototype.Jk=function(){return Math.cos(this.tl)*this.Ik()};A.prototype.Kk=function(){return Math.sin(this.tl)*this.Ik()};var kc=!1;s.prototype.mr=function(){if(!this.fa&&this.oe){var a=
this;if(x.decodeAudioData)x.decodeAudioData(this.oe,function(c){a.fa=c;a.oe=null;var b,d,f;if(fa(a.Zi)||F)fa(a.Rh)||(b=a.Rh.se,b.normalize=a.Bo,b.buffer=c);else if(a.Ff.length){b=0;for(d=a.Ff.length;b<d;b++){c=a.Ff[b];f=new p(a,c.xp);f.$l(!0);if("undefined"!==typeof c.Do&&(c.H=v.ki(c.Do),!c.H))continue;if(c.H){var e=Ia(c.H.x,c.H.y,-c.H.d.Na(),L,Z,!0),g=Ia(c.H.x,c.H.y,-c.H.d.Na(),L,Z,!1);f.Zl(e,g,xa(c.H.e-c.H.d.Na()),c.Pk,c.wl,c.zl);f.nh(c.H)}else f.Zl(c.x,c.y,c.Nq,c.Pk,c.wl,c.zl);f.play(a.ol,a.Bm,
a.lj);a.Yi&&f.pause();z.push(f)}a.Ff.length=0}else f=new p(a,a.Zi),f.play(a.ol,a.Bm,a.lj),a.Yi&&f.pause(),z.push(f)},function(){a.uk=!0});else if(this.fa=x.createBuffer(this.oe,!1),this.oe=null,fa(this.Zi)||F)fa(this.Rh)||(c=this.Rh.se,c.normalize=this.Bo,c.buffer=this.fa);else{var c=new p(this,this.Zi);c.play(this.ol,this.Bm,this.lj);this.Yi&&c.pause();z.push(c)}}};s.prototype.Mn=function(){switch(this.S){case 0:var a=4<=this.fa.readyState;a&&(this.Dm=!0);return a||this.Dm;case 1:return!!this.oe||
!!this.fa;case 2:return!0;case 3:return!0}return!1};s.prototype.jt=function(){switch(this.S){case 0:return this.Mn();case 1:return!!this.fa;case 2:return!0;case 3:return!0}return!1};s.prototype.Xs=function(){switch(this.S){case 0:return!!this.fa.error;case 1:return this.uk}return!1};p.prototype.De=function(){var a;switch(this.S){case 0:return this.k.ended;case 1:if(1===this.buffer.S){if(!this.Yc&&!this.cc&&this.k.loop||this.xc)return!1;a=this.He?v.kc.V:v.jd.V;return a-this.startTime>this.buffer.fa.duration}return this.k.ended;
case 2:return this.Jl;case 3:!0}return!0};p.prototype.br=function(){return this.Yc||this.cc?!0:this.De()};p.prototype.$l=function(a){1===D&&(!this.bd&&a?this.La&&(this.Da||(this.Da=x.createPanner(),this.Da.panningModel="number"===typeof this.Da.panningModel?ka:["equalpower","HRTF","soundfield"][ka],this.Da.distanceModel="number"===typeof this.Da.distanceModel?ob:["linear","inverse","exponential"][ob],this.Da.refDistance=hc,this.Da.maxDistance=ic,this.Da.rolloffFactor=jc),this.La.disconnect(),this.La.connect(this.Da),
this.Da.connect(k(this.tag)),this.bd=!0):this.bd&&!a&&this.La&&(this.Da.disconnect(),this.La.disconnect(),this.La.connect(k(this.tag)),this.bd=!1))};p.prototype.Zl=function(a,c,b,d,f,e){this.bd&&1===D&&(this.Da.setPosition(a,c,0),this.Da.setOrientation(Math.cos(Q(b)),Math.sin(Q(b)),0),this.Da.coneInnerAngle=d,this.Da.coneOuterAngle=f,this.Da.coneOuterGain=e,this.Mo=a,this.No=c,this.Io=b,this.Jo=d,this.Ko=f,this.Lo=e)};p.prototype.nh=function(a){this.bd&&1===D&&(this.Ca||(this.Ca=new A),this.Ca.nh(a))};
p.prototype.Ga=function(a){if(this.bd&&1===D&&this.Ca&&this.Ca.pi()&&this.pf()){this.Ca.Ga(a);a=this.Ca.H;var c=Ia(a.x,a.y,-a.d.Na(),L,Z,!0),b=Ia(a.x,a.y,-a.d.Na(),L,Z,!1);this.Da.setPosition(c,b,0);c=0;"undefined"!==typeof this.Ca.H.e&&(c=a.e-a.d.Na(),this.Da.setOrientation(Math.cos(c),Math.sin(c),0));c=Ia(this.Ca.Jk(),this.Ca.Kk(),-a.d.Na(),0,0,!0);b=Ia(this.Ca.Jk(),this.Ca.Kk(),-a.d.Na(),0,0,!1);this.Da.setVelocity(c,b,0)}};p.prototype.play=function(c,b,d){var f=this.k;this.$c=c;this.volume=b;
d=d||0;switch(this.S){case 0:1!==f.playbackRate&&(f.playbackRate=1);f.volume!==b*H&&(f.volume=b*H);f.loop!==c&&(f.loop=c);f.muted&&(f.muted=!1);if(f.currentTime!==d)try{f.currentTime=d}catch(e){}if(this.Mc&&Ma&&!v.ra)Na.push(this);else try{this.k.play()}catch(g){console&&console.log&&console.log("[C2] WARNING: exception trying to play audio '"+this.buffer.src+"': ",g)}break;case 1:this.muted=!1;this.zf=1;if(1===this.buffer.S)this.Yc||(this.k=x.createBufferSource(),this.k.buffer=this.buffer.fa,this.k.connect(this.La)),
this.k.loop=c,this.La.gain.value=b*H,0===d?q(this.k):a(this.k,d,this.Be());else{1!==f.playbackRate&&(f.playbackRate=1);f.loop!==c&&(f.loop=c);this.La.gain.value=b*H;if(f.currentTime!==d)try{f.currentTime=d}catch(m){}this.Mc&&Ma&&!v.ra?Na.push(this):f.play()}break;case 2:(!this.Yc&&this.cc||0!==d)&&f.seekTo(d);f.play();this.Jl=!1;break;case 3:v.eb?AppMobi.context.playSound(this.src,c):AppMobi.player.playSound(this.src,c)}this.playbackRate=1;this.startTime=(this.He?v.kc.V:v.jd.V)-d;this.xc=this.cc=
this.Yc=!1};p.prototype.stop=function(){switch(this.S){case 0:this.k.paused||this.k.pause();break;case 1:1===this.buffer.S?c(this.k):this.k.paused||this.k.pause();break;case 2:this.k.stop();break;case 3:v.eb&&AppMobi.context.stopSound(this.src)}this.cc=!0;this.xc=!1};p.prototype.pause=function(){if(!(this.Yc||this.cc||this.De()||this.xc)){switch(this.S){case 0:this.k.paused||this.k.pause();break;case 1:1===this.buffer.S?(this.Mb=this.Gk(),this.$c&&(this.Mb%=this.Be()),c(this.k)):this.k.paused||this.k.pause();
break;case 2:this.k.pause();break;case 3:v.eb&&AppMobi.context.stopSound(this.src)}this.xc=!0}};p.prototype.Xt=function(){if(!(this.Yc||this.cc||this.De())&&this.xc){switch(this.S){case 0:this.k.play();break;case 1:1===this.buffer.S?(this.k=x.createBufferSource(),this.k.buffer=this.buffer.fa,this.k.connect(this.La),this.k.loop=this.$c,this.La.gain.value=H*this.volume*this.zf,this.startTime=(this.He?v.kc.V:v.jd.V)-this.Mb,a(this.k,this.Mb,this.Be())):this.k.play();break;case 2:this.k.play();break;
case 3:v.eb&&AppMobi.context.resumeSound(this.src)}this.xc=!1}};p.prototype.seek=function(a){if(!(this.Yc||this.cc||this.De()))switch(this.S){case 0:try{this.k.currentTime=a}catch(c){}break;case 1:if(1===this.buffer.S)this.xc?this.Mb=a:(this.pause(),this.Mb=a,this.Xt());else try{this.k.currentTime=a}catch(b){}break;case 3:v.eb&&AppMobi.context.seekSound(this.src,a)}};p.prototype.Vt=function(a){1===this.S&&(this.bd?(this.Da.disconnect(),this.Da.connect(a)):(this.La.disconnect(),this.La.connect(a)))};
p.prototype.Be=function(){switch(this.S){case 0:if("undefined"!==typeof this.k.duration)return this.k.duration;break;case 1:return this.buffer.fa.duration;case 2:return this.k.getDuration();case 3:if(v.eb)return AppMobi.context.getDurationSound(this.src)}return 0};p.prototype.Gk=function(){var a=this.Be(),c=0;switch(this.S){case 0:"undefined"!==typeof this.k.currentTime&&(c=this.k.currentTime);break;case 1:if(1===this.buffer.S){if(this.xc)return this.Mb;c=(this.He?v.kc.V:v.jd.V)-this.startTime}else"undefined"!==
typeof this.k.currentTime&&(c=this.k.currentTime);break;case 3:v.eb&&(c=AppMobi.context.getPlaybackTimeSound(this.src))}!this.$c&&c>a&&(c=a);return c};p.prototype.pf=function(){return!this.xc&&!this.Yc&&!this.cc&&!this.De()};p.prototype.tu=function(){var a=this.volume*H;switch(this.S){case 0:this.k.volume&&this.k.volume!==a&&(this.k.volume=a);break;case 1:this.La.gain.value=a*this.zf}};p.prototype.Zh=function(a){switch(this.S){case 0:this.k.muted!==!!a&&(this.k.muted=!!a);break;case 1:this.zf=a?0:
1,this.La.gain.value=H*this.volume*this.zf}};p.prototype.hu=function(){this.sf=!0;this.Zh(this.sf||this.yg)};p.prototype.ip=function(a){this.yg=!!a;this.Zh(this.sf||this.yg)};p.prototype.Kp=function(){var a=this.playbackRate;this.He&&(a*=v.Sf);switch(this.S){case 0:this.k.playbackRate!==a&&(this.k.playbackRate=a);break;case 1:1===this.buffer.S?this.k.playbackRate.value!==a&&(this.k.playbackRate.value=a):this.k.playbackRate!==a&&(this.k.playbackRate=a)}};p.prototype.ju=function(b){switch(this.S){case 0:b?
this.pf()?(this.k.pause(),this.Hd=!0):this.Hd=!1:this.Hd&&this.k.play();break;case 1:b?this.pf()?(1===this.buffer.S?(this.Mb=this.Gk(),this.$c&&(this.Mb%=this.Be()),c(this.k)):this.k.pause(),this.Hd=!0):this.Hd=!1:this.Hd&&(1===this.buffer.S?(this.k=x.createBufferSource(),this.k.buffer=this.buffer.fa,this.k.connect(this.La),this.k.loop=this.$c,this.La.gain.value=H*this.volume*this.zf,this.startTime=(this.He?v.kc.V:v.jd.V)-this.Mb,a(this.k,this.Mb,this.Be())):this.k.play());break;case 2:b?this.pf()?
(this.k.pause(),this.Hd=!0):this.Hd=!1:this.Hd&&this.k.play()}};t.na=function(a){this.type=a;v=this.b=a.b;ia=this;this.tb=null;this.Hg=-600;!(this.b.Ai||this.b.si&&(this.b.ug||this.b.ti))||this.b.vg||this.b.ka||(Ma=!0);x=null;"undefined"!==typeof AudioContext?(D=1,x=new AudioContext):"undefined"!==typeof webkitAudioContext&&(D=1,x=new webkitAudioContext);(this.b.Ai&&1===D||Ma)&&document.addEventListener("touchstart",function(){var a,c,b;!kc&&x&&(a=x.createBuffer(1,1,22050),c=x.createBufferSource(),
c.buffer=a,c.connect(x.destination),q(c),kc=!0);if(Ma){if(!F)for(a=0,c=Na.length;a<c;++a)b=Na[a],b.cc||b.xc||b.k.play();Na.length=0}},!0);1!==D&&(this.b.wc&&"undefined"!==typeof window.Media?D=2:this.b.mf&&(D=3));2===D&&(J=location.href,a=J.lastIndexOf("/"),-1<a&&(J=J.substr(0,a+1)),J=J.replace("file://",""));if(this.b.Nn&&this.b.kt&&"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.kd(this);
else{if(this.b.eb)E=this.b.si;else try{E=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(c){E=!1}this.b.om(this)}};var da=t.na.prototype;da.aa=function(){this.b.Ze=this;T=this.M[0];this.Id=this.M[1];this.Lt=0!==this.M[2];ka=this.M[3];ob=this.M[4];this.Hg=-this.M[5];hc=this.M[6];ic=this.M[7];jc=this.M[8];this.tb=new A;var a=this.b.P||this.b.width,c=this.b.O||this.b.height;1===D&&(x.listener.speedOfSound=this.M[9],x.listener.dopplerFactor=this.M[10],x.listener.setPosition(a/2,c/2,this.Hg),
x.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,c){ya&&ya.disconnect();nb=c.toLowerCase();ya=x.createMediaStreamSource(a);ya.connect(k(nb))});this.b.Tq(function(a){ia.Ht(a)});var b=this;this.b.Rq(function(a){b.Et(a)})};da.Et=function(a){var c,b,d;c=0;for(b=z.length;c<b;c++)d=z[c],d.Ca&&d.Ca.H===a&&(d.Ca.H=null,d.bd&&d.pf()&&d.$c&&d.stop());this.tb.H===a&&(this.tb.H=null)};da.mb=function(){var a={silent:F,masterVolume:H,listenerZ:this.Hg,listenerUid:this.tb.pi()?this.tb.H.uid:
-1,playing:[],effects:{}},c=a.playing,b,d,f,e,g,m;b=0;for(d=z.length;b<d;b++)f=z[b],!f.pf()||3===this.Id||f.Mc&&1===this.Id||!f.Mc&&2===this.Id||(e=f.Gk(),f.$c&&(e%=f.Be()),e={tag:f.tag,buffersrc:f.buffer.src,is_music:f.Mc,playbackTime:e,volume:f.volume,looping:f.$c,muted:f.sf,playbackRate:f.playbackRate,paused:f.xc,resume_position:f.Mb},f.bd&&(e.pan={},m=e.pan,f.Ca&&f.Ca.pi()?m.objUid=f.Ca.H.uid:(m.x=f.Mo,m.y=f.No,m.a=f.Io),m.ia=f.Jo,m.oa=f.Ko,m.og=f.Lo),c.push(e));c=a.effects;for(g in N)if(N.hasOwnProperty(g)){f=
[];b=0;for(d=N[g].length;b<d;b++)f.push({type:N[g][b].type,params:N[g][b].Nc});c[g]=f}return a};var Oa=[];da.Ib=function(a){var c=a.silent;H=a.masterVolume;this.Hg=a.listenerZ;this.tb.nh(null);var b=a.listenerUid;-1!==b&&(this.tb.Ii=b,Oa.push(this.tb));var b=a.playing,e,h,p,k,q,V,s,Y,v,t,x;if(3!==this.Id)for(e=0,h=z.length;e<h;e++)v=z[e],v.Mc&&1===this.Id||(v.Mc||2!==this.Id)&&v.stop();for(q in N)if(N.hasOwnProperty(q))for(e=0,h=N[q].length;e<h;e++)N[q][e].remove();Qa(N);for(q in a.effects)if(a.effects.hasOwnProperty(q))for(V=
a.effects[q],e=0,h=V.length;e<h;e++)switch(p=V[e].type,t=V[e].params,p){case "filter":B(q,new d(t[0],t[1],t[2],t[3],t[4],t[5]));break;case "delay":B(q,new m(t[0],t[1],t[2]));break;case "convolve":p=t[2];v=this.hi(p,!1);v.fa?p=new f(v.fa,t[0],t[1],p):(p=new f(null,t[0],t[1],p),v.Bo=t[0],v.Rh=p);B(q,p);break;case "flanger":B(q,new g(t[0],t[1],t[2],t[3],t[4]));break;case "phaser":B(q,new r(t[0],t[1],t[2],t[3],t[4],t[5]));break;case "gain":B(q,new y(t[0]));break;case "tremolo":B(q,new n(t[0],t[1]));break;
case "ringmod":B(q,new C(t[0],t[1]));break;case "distortion":B(q,new u(t[0],t[1],t[2],t[3],t[4]));break;case "compressor":B(q,new l(t[0],t[1],t[2],t[3],t[4]));break;case "analyser":B(q,new w(t[0],t[1]))}e=0;for(h=b.length;e<h;e++)3===this.Id||(a=b[e],p=a.buffersrc,k=a.is_music,q=a.tag,V=a.playbackTime,s=a.looping,Y=a.volume,x=(t=a.pan)&&t.hasOwnProperty("objUid")?t.objUid:-1,k&&1===this.Id)||!k&&2===this.Id||((v=this.un(p,q,k,s,Y))?(v.Mb=a.resume_position,v.$l(!!t),v.play(s,Y,V),v.Kp(),v.tu(),v.Zh(v.sf||
v.yg),a.paused&&v.pause(),a.muted&&v.hu(),v.Zh(v.sf||v.yg),t&&(-1!==x?(v.Ca=v.Ca||new A,v.Ca.Ii=x,Oa.push(v.Ca)):v.Zl(t.x,t.y,t.a,t.ia,t.oa,t.og))):(v=this.hi(p,k),v.lj=V,v.Yi=a.paused,t&&(-1!==x?v.Ff.push({Do:x,Pk:t.ia,wl:t.oa,zl:t.og,xp:q}):v.Ff.push({x:t.x,y:t.y,Nq:t.a,Pk:t.ia,wl:t.oa,zl:t.og,xp:q}))));if(c&&!F){e=0;for(h=z.length;e<h;e++)z[e].ip(!0);F=!0}else if(!c&&F){e=0;for(h=z.length;e<h;e++)z[e].ip(!1);F=!1}};da.ld=function(){var a,c,b,d;a=0;for(c=Oa.length;a<c;a++)b=Oa[a],d=this.b.ki(b.Ii),
b.nh(d),b.Ii=-1,d&&(L=d.x,Z=d.y);Oa.length=0};da.Ht=function(a){if(!this.Lt){!a&&x&&x.resume&&x.resume();var c,b;c=0;for(b=z.length;c<b;c++)z[c].ju(a);a&&x&&x.suspend&&x.suspend()}};da.Ga=function(){var a=this.b.xe,c,b,d;c=0;for(b=z.length;c<b;c++)d=z[c],d.Ga(a),0===d.S||3===d.S||d.Yc||d.cc||!d.De()||(d.cc=!0,Y=d.tag,v.trigger(bc.prototype.i.Nj,ia)),0!==T&&d.Kp();var f,e;for(f in N)if(N.hasOwnProperty(f))for(d=N[f],c=0,b=d.length;c<b;c++)e=d[c],e.Ga&&e.Ga();1===D&&this.tb.pi()&&(this.tb.Ga(a),L=this.tb.H.x,
Z=this.tb.H.y,x.listener.setPosition(this.tb.H.x,this.tb.H.y,this.Hg),x.listener.setVelocity(this.tb.Jk(),this.tb.Kk(),0))};var Pa=[];da.iu=function(a){var c,b,d,f,e,g=0;c=0;for(b=a.length;c<b;++c)if(d=a[c],f=d[0],d=2*d[1],(e=4<f.length&&".ogg"===f.substr(f.length-4))&&E||!e&&!E)Pa.push({filename:f,size:d,H:null}),g+=d;return g};da.nu=function(){var a,c,b,d;a=0;for(c=Pa.length;a<c;++a)b=Pa[a],d=this.b.vk+b.filename,b.H=this.hi(d,!1)};da.zs=function(){var a=0,c,b,d;c=0;for(b=Pa.length;c<b;++c)d=Pa[c],
d.H.jt()||d.H.Xs()||this.b.ka||this.b.ti?a+=d.size:d.H.Mn()&&(a+=Math.floor(d.size/2));return a};da.hi=function(a,c){var b,d,f,e=null;b=0;for(d=P.length;b<d;b++)if(f=P[b],f.src===a){e=f;break}e||(e=new s(a,c),P.push(e));return e};da.un=function(a,c,b,d,f){var e,g,m;e=0;for(g=z.length;e<g;e++)if(m=z[e],m.src===a&&(m.br()||b))return m.tag=c,m;a=this.hi(a,b);if(!a.fa)return"<preload>"!==c&&(a.Zi=c,a.ol=d,a.Bm=f),null;m=new p(a,c);z.push(m);return m};var Ea=[];V.prototype.Nj=function(a){return ab(Y,a)};
t.i=new V;ca.prototype.Play=function(a,c,b,d){!F&&(b=Math.pow(10,b/20),0>b&&(b=0),1<b&&(b=1),G=this.un(this.b.vk+a[0]+(E?".ogg":".m4a"),d,a[1],0!==c,b))&&(G.$l(!1),G.play(0!==c,b))};t.va=new ca;t.qb=new function(){}})();function cc(e){this.b=e}
(function(){function e(){}var k=cc.prototype;k.ya=function(b){this.Ea=b;this.b=b.b};k.ya.prototype.aa=function(){};k.na=function(b){this.type=b;this.b=b.b;this.al=Array(256);this.Jj=Array(256);this.ke=0};var b=k.na.prototype;b.aa=function(){var b=this;this.b.ka||(jQuery(document).keydown(function(a){b.Dl(a)}),jQuery(document).keyup(function(a){b.El(a)}))};var h=[32,33,34,35,36,37,38,39,40,44];b.Dl=function(b){var a=!1;window!=window.top&&-1<h.indexOf(b.which)&&(b.preventDefault(),a=!0,b.stopPropagation());
if(this.al[b.which])this.Jj[b.which]&&!a&&b.preventDefault();else{this.al[b.which]=!0;this.ke=b.which;this.b.ra=!0;this.b.trigger(cc.prototype.i.jq,this);var c=this.b.trigger(cc.prototype.i.wq,this),d=this.b.trigger(cc.prototype.i.xq,this);this.b.ra=!1;if(c||d)this.Jj[b.which]=!0,a||b.preventDefault()}};b.El=function(b){this.al[b.which]=!1;this.ke=b.which;this.b.ra=!0;this.b.trigger(cc.prototype.i.kq,this);var a=this.b.trigger(cc.prototype.i.zq,this),c=this.b.trigger(cc.prototype.i.yq,this);this.b.ra=
!1;if(a||c||this.Jj[b.which])this.Jj[b.which]=!0,b.preventDefault()};b.mb=function(){return{triggerKey:this.ke}};b.Ib=function(b){this.ke=b.triggerKey};e.prototype.wq=function(b){return b===this.ke};e.prototype.jq=function(){return!0};e.prototype.kq=function(){return!0};e.prototype.zq=function(b){return b===this.ke};e.prototype.xq=function(b){return b===this.ke};e.prototype.yq=function(b){return b===this.ke};k.i=new e;k.va=new function(){};k.qb=new function(){}})();function dc(e){this.b=e}
(function(){function e(){}function k(){}var b=dc.prototype;b.ya=function(a){this.Ea=a;this.b=a.b};b.ya.prototype.aa=function(){};b.na=function(a){this.type=a;this.b=a.b;this.Kh=Array(4);this.zp=this.Dj=this.Tf=this.Ed=this.Dd=0;this.Mk=!1};var h=b.na.prototype;h.aa=function(){var a=this;if(!this.b.ka){jQuery(document).mousemove(function(c){a.Yg(c)});jQuery(document).mousedown(function(c){a.Xg(c)});jQuery(document).mouseup(function(c){a.Zg(c)});jQuery(document).dblclick(function(c){a.Ct(c)});var c=
function(c){a.Jt(c)};document.addEventListener("mousewheel",c,!1);document.addEventListener("DOMMouseScroll",c,!1)}};var q={left:0,top:0};h.Yg=function(a){var c=this.b.ka?q:jQuery(this.b.canvas).offset();this.Dd=a.pageX-c.left;this.Ed=a.pageY-c.top};h.yo=function(){return 0<this.b.rb?!0:0<=this.Dd&&0<=this.Ed&&this.Dd<this.b.width&&this.Ed<this.b.height};h.Xg=function(a){this.yo()&&(this.b.kf&&!this.b.Zc&&a.preventDefault(),this.Kh[a.which]=!0,this.b.ra=!0,this.b.trigger(dc.prototype.i.iq,this),this.Tf=
a.which-1,this.Dj=0,this.b.trigger(dc.prototype.i.Hm,this),this.b.trigger(dc.prototype.i.Pj,this),this.b.ra=!1)};h.Zg=function(a){this.Kh[a.which]&&(this.b.kf&&!this.b.Zc&&a.preventDefault(),this.b.kf=!0,this.Kh[a.which]=!1,this.b.ra=!0,this.Tf=a.which-1,this.b.trigger(dc.prototype.i.Cq,this),this.b.ra=!1)};h.Ct=function(a){this.yo()&&(a.preventDefault(),this.b.ra=!0,this.Tf=a.which-1,this.Dj=1,this.b.trigger(dc.prototype.i.Hm,this),this.b.trigger(dc.prototype.i.Pj,this),this.b.ra=!1)};h.Jt=function(a){this.zp=
0>(a.wheelDelta?a.wheelDelta:a.detail?-a.detail:0)?0:1;this.Mk=!1;this.b.ra=!0;this.b.trigger(dc.prototype.i.Fq,this);this.b.ra=!1;this.Mk&&a.preventDefault()};e.prototype.Hm=function(a,c){return a===this.Tf&&c===this.Dj};e.prototype.iq=function(){return!0};e.prototype.Xp=function(a){return this.Kh[a+1]};e.prototype.Cq=function(a){return a===this.Tf};e.prototype.Zp=function(a){var c=this.b.vn();return Ka(this.b.Qf(a,this.Dd,this.Ed,c.tg),c.tg)};e.prototype.Pj=function(a,c,b){return a!==this.Tf||c!==
this.Dj?!1:this.b.Qf(b,this.Dd,this.Ed,!1)};e.prototype.Fq=function(a){this.Mk=!0;return a===this.zp};b.i=new e;b.va=new function(){};k.prototype.Om=function(a,c){var b,e,f,g,h;fa(c)?(b=this.b.yd(0),e=b.scale,f=b.ob,g=b.Kb,h=b.e,b.scale=1,b.ob=1,b.Kb=1,b.e=0,a.A(b.wa(this.Dd,this.Ed,!0)),b.scale=e,b.ob=f,b.Kb=g,b.e=h):(b=K(c)?this.b.yd(c):this.b.kg(c))?a.A(b.wa(this.Dd,this.Ed,!0)):a.A(0)};k.prototype.Pm=function(a,c){var b,e,f,g,h;fa(c)?(b=this.b.yd(0),e=b.scale,f=b.ob,g=b.Lb,h=b.e,b.scale=1,b.ob=
1,b.Lb=1,b.e=0,a.A(b.wa(this.Dd,this.Ed,!1)),b.scale=e,b.ob=f,b.Lb=g,b.e=h):(b=K(c)?this.b.yd(c):this.b.kg(c))?a.A(b.wa(this.Dd,this.Ed,!1)):a.A(0)};b.qb=new k})();function ec(e){this.b=e}
(function(){function e(b){this.m=b;this.Xa=!1;this.e=this.speed=this.y=this.x=0;this.opacity=1;this.Od=this.jf=this.size=this.ni=0}var k=ec.prototype;k.ya=function(b){this.Ea=b;this.b=b.b};var b=k.ya.prototype;b.aa=function(){this.C||(this.N=new Image,this.N.fk=this.yj,this.T=null,this.b.Cm(this.N,this.xj))};b.Qi=function(){this.C||(this.T=null)};b.Ri=function(){this.C||!this.c.length||this.T||(this.T=this.b.u.vf(this.N,!0,this.b.X,this.uh))};b.Jg=function(){this.C||this.T||!this.b.u||(this.T=this.b.u.vf(this.N,
!0,this.b.X,this.uh))};b.Gj=function(){this.C||this.c.length||!this.T||(this.b.u.deleteTexture(this.T),this.T=null)};b.cj=function(b){b.drawImage(this.N,0,0)};e.prototype.init=function(){var b=this.m;this.x=b.x-b.Lj/2+Math.random()*b.Lj;this.y=b.y-b.Mj/2+Math.random()*b.Mj;this.speed=b.Uk-b.rj/2+Math.random()*b.rj;this.e=b.e-b.sj/2+Math.random()*b.sj;this.opacity=b.Sk;this.size=b.Tk-b.pj/2+Math.random()*b.pj;this.ni=b.Lk-b.oi/2+Math.random()*b.oi;this.Od=this.jf=0};e.prototype.Ga=function(b){var a=
this.m;this.x+=Math.cos(this.e)*this.speed*b;this.y+=Math.sin(this.e)*this.speed*b;this.y+=this.jf*b;this.speed+=a.Qb*b;this.size+=this.ni*b;this.jf+=a.Ak*b;this.Od+=b;1>this.size?this.Xa=!1:(0!==a.Eg&&(this.e+=Math.random()*a.Eg*b-a.Eg*b/2),0!==a.Gg&&(this.speed+=Math.random()*a.Gg*b-a.Gg*b/2),0!==a.Fg&&(this.opacity+=Math.random()*a.Fg*b-a.Fg*b/2,0>this.opacity?this.opacity=0:1<this.opacity&&(this.opacity=1)),1>=a.cf&&this.Od>=a.timeout&&(this.Xa=!1),2===a.cf&&0>=this.speed&&(this.Xa=!1))};e.prototype.Ic=
function(b){var a=this.m.opacity*this.opacity;if(0!==a){0===this.m.cf&&(a*=1-this.Od/this.m.timeout);b.globalAlpha=a;var a=this.x-this.size/2,c=this.y-this.size/2;this.m.b.cd&&(a=a+.5|0,c=c+.5|0);b.drawImage(this.m.type.N,a,c,this.size,this.size)}};e.prototype.Vb=function(b){var a=this.m.opacity*this.opacity;0===this.m.cf&&(a*=1-this.Od/this.m.timeout);var c=this.size,d=c*this.m.Qo,e=this.x-c/2,f=this.y-c/2;this.m.b.cd&&(e=e+.5|0,f=f+.5|0);1>d||0===a||(d<b.yt||d>b.ql?(b.Re(a),b.jh(e,f,e+c,f,e+c,f+
c,e,f+c)):b.Mt(this.x,this.y,d,a))};e.prototype.left=function(){return this.x-this.size/2};e.prototype.right=function(){return this.x+this.size/2};e.prototype.top=function(){return this.y-this.size/2};e.prototype.bottom=function(){return this.y+this.size/2};k.na=function(b){this.type=b;this.b=b.b};var b=k.na.prototype,h=[];b.aa=function(){var b=this.M;this.fj=b[0];this.sj=Q(b[1]);this.Mf=b[2];this.im=!0;this.Uk=b[3];this.Tk=b[4];this.Sk=b[5]/100;this.Lk=b[6];this.Lj=b[7];this.Mj=b[8];this.rj=b[9];
this.pj=b[10];this.oi=b[11];this.Qb=b[12];this.Ak=b[13];this.Eg=b[14];this.Gg=b[15];this.Fg=b[16];this.cf=b[17];this.timeout=b[18];this.Pe=0;this.Qo=1;this.Vi=this.x;this.Xi=this.y;this.Wi=this.x;this.Ui=this.y;this.Uq(function(a){a.Ia.set(a.Vi,a.Xi,a.Wi,a.Ui);a.Tb.Lf(a.Ia);a.Jh=!1;a.xm()});this.Bc||(this.wb=[]);this.b.om(this);this.type.Jg();if(1===this.Mf)for(b=0;b<this.fj;b++)this.Tj().opacity=0;this.fi=!0};b.mb=function(){var b={r:this.fj,sc:this.sj,st:this.Mf,s:this.im,isp:this.Uk,isz:this.Tk,
io:this.Sk,gr:this.Lk,xr:this.Lj,yr:this.Mj,spr:this.rj,szr:this.pj,grnd:this.oi,acc:this.Qb,g:this.Ak,lar:this.Eg,lsr:this.Gg,lor:this.Fg,dm:this.cf,to:this.timeout,pcc:this.Pe,ft:this.fi,p:[]},a,c,d,e=b.p;a=0;for(c=this.wb.length;a<c;a++)d=this.wb[a],e.push([d.x,d.y,d.speed,d.e,d.opacity,d.ni,d.size,d.jf,d.Od]);return b};b.Ib=function(b){this.fj=b.r;this.sj=b.sc;this.Mf=b.st;this.im=b.s;this.Uk=b.isp;this.Tk=b.isz;this.Sk=b.io;this.Lk=b.gr;this.Lj=b.xr;this.Mj=b.yr;this.rj=b.spr;this.pj=b.szr;this.oi=
b.grnd;this.Qb=b.acc;this.Ak=b.g;this.Eg=b.lar;this.Gg=b.lsr;this.Fg=b.lor;this.cf=b.dm;this.timeout=b.to;this.Pe=b.pcc;this.fi=b.ft;h.push.apply(h,this.wb);this.wb.length=0;var a,c,d,e=b.p;b=0;for(a=e.length;b<a;b++)c=this.Tj(),d=e[b],c.x=d[0],c.y=d[1],c.speed=d[2],c.e=d[3],c.opacity=d[4],c.ni=d[5],c.size=d[6],c.jf=d[7],c.Od=d[8]};b.Wg=function(){h.push.apply(h,this.wb);this.wb.length=0};b.Tj=function(){var b;h.length?(b=h.pop(),b.m=this):b=new e(this);this.wb.push(b);b.Xa=!0;return b};b.Ga=function(){var b=
this.b.ff(this),a,c,d,e;if(0===this.Mf&&this.im)for(this.Pe+=b*this.fj,c=O(this.Pe),this.Pe-=c,a=0;a<c;a++)d=this.Tj(),d.init();this.Vi=this.x;this.Xi=this.y;this.Wi=this.x;this.Ui=this.y;e=a=0;for(c=this.wb.length;a<c;a++)d=this.wb[a],this.wb[e]=d,this.b.ea=!0,1===this.Mf&&this.fi&&d.init(),d.Ga(b),d.Xa?(d.left()<this.Vi&&(this.Vi=d.left()),d.right()>this.Wi&&(this.Wi=d.right()),d.top()<this.Xi&&(this.Xi=d.top()),d.bottom()>this.Ui&&(this.Ui=d.bottom()),e++):h.push(d);this.wb.length=e;this.ba();
this.fi=!1;1===this.Mf&&0===this.wb.length&&this.b.kd(this)};b.Ic=function(b){var a,c,d,e=this.d;a=0;for(c=this.wb.length;a<c;a++)d=this.wb[a],d.right()>=e.Va&&d.bottom()>=e.Wa&&d.left()<=e.ib&&d.top()<=e.hb&&d.Ic(b)};b.Vb=function(b){this.Qo=this.d.ic();b.ac(this.type.T);var a,c,d,e=this.d;a=0;for(c=this.wb.length;a<c;a++)d=this.wb[a],d.right()>=e.Va&&d.bottom()>=e.Wa&&d.left()<=e.ib&&d.top()<=e.hb&&d.Vb(b)};k.i=new function(){};k.va=new function(){};k.qb=new function(){}})();
function ac(e){this.b=e}
(function(){function e(){if(0===this.ik.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.Nf?b.drawImage(this.N,this.Cf,this.Df,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.N,0,0,this.width,this.height);this.ik=a.toDataURL("image/png")}return this.ik}function k(){}var b=ac.prototype;b.ya=function(a){this.Ea=a;this.b=a.b};var h=b.ya.prototype;h.aa=function(){if(!this.C){var a,b,c,d,h,k,q,u,l;this.Gc=[];this.pg=
!1;a=0;for(b=this.Sb.length;a<b;a++){h=this.Sb[a];q={};q.name=h[0];q.speed=h[1];q.loop=h[2];q.Tl=h[3];q.hj=h[4];q.Ro=h[5];q.U=h[6];q.frames=[];c=0;for(d=h[7].length;c<d;c++)k=h[7][c],u={},u.xj=k[0],u.yj=k[1],u.Cf=k[2],u.Df=k[3],u.width=k[4],u.height=k[5],u.duration=k[6],u.Gb=k[7],u.Hb=k[8],u.Rk=k[9],u.$i=k[10],u.So=k[11],u.Nf=0!==u.width,u.ik="",u.Jv=e,l={left:0,top:0,right:1,bottom:1},u.am=l,u.T=null,(l=this.b.ls(k[0]))?u.N=l:(u.N=new Image,u.N.jr=k[0],u.N.fk=k[1],u.N.$q=null,this.b.Cm(u.N,k[0])),
q.frames.push(u),this.Gc.push(u);this.Sb[a]=q}}};h.Jp=function(){var a,b,c;a=0;for(b=this.c.length;a<b;a++)c=this.c[a],c.Uh=c.rc.T};h.Qi=function(){if(!this.C){var a,b,c;a=0;for(b=this.Gc.length;a<b;++a)c=this.Gc[a],c.N.$q=null,c.T=null;this.pg=!1;this.Jp()}};h.Ri=function(){if(!this.C&&this.c.length){var a,b,c;a=0;for(b=this.Gc.length;a<b;++a)c=this.Gc[a],c.T=this.b.u.vf(c.N,!1,this.b.X,c.So);this.Jp()}};h.Jg=function(){if(!this.C&&!this.pg&&this.b.u){var a,b,c;a=0;for(b=this.Gc.length;a<b;++a)c=
this.Gc[a],c.T=this.b.u.vf(c.N,!1,this.b.X,c.So);this.pg=!0}};h.Gj=function(){if(!this.C&&!this.c.length&&this.pg){var a,b,c;a=0;for(b=this.Gc.length;a<b;++a)c=this.Gc[a],this.b.u.deleteTexture(c.T),c.T=null;this.pg=!1}};var q=[];h.cj=function(a){var b,c,d;b=q.length=0;for(c=this.Gc.length;b<c;++b)d=this.Gc[b].N,-1===q.indexOf(d)&&(a.drawImage(d,0,0),q.push(d))};b.na=function(a){this.type=a;this.b=a.b;a=this.type.Sb[0].frames[0].$i;this.Bc?this.ca.oh(a):this.ca=new Wa(a)};var a=b.na.prototype;a.aa=
function(){this.visible=0===this.M[0];this.pd=0!==this.M[3];1===this.type.Sb.length&&1===this.type.Sb[0].frames.length||0===this.type.Sb[0].speed||this.b.om(this);this.za=this.tn(this.M[1])||this.type.Sb[0];this.B=this.M[2];0>this.B&&(this.B=0);this.B>=this.za.frames.length&&(this.B=this.za.frames.length-1);var a=this.za.frames[this.B];this.ca.oh(a.$i);this.Gb=a.Gb;this.Hb=a.Hb;this.dg=this.za.speed;this.Bc?this.Tc.reset():this.Tc=new Ua;this.xd=this.Tc.V;this.ne=!0;this.md=0;this.me=!0;this.ck=this.Wm=
"";this.er=0;this.bk=-1;this.type.Jg();var b,c,d,e,h,k,q,a=0;for(b=this.type.Sb.length;a<b;a++)for(e=this.type.Sb[a],c=0,d=e.frames.length;c<d;c++)h=e.frames[c],0===h.width&&(h.width=h.N.width,h.height=h.N.height),h.Nf&&(q=h.N,k=h.am,k.left=h.Cf/q.width,k.top=h.Df/q.height,k.right=(h.Cf+h.width)/q.width,k.bottom=(h.Df+h.height)/q.height,0===h.Cf&&0===h.Df&&h.width===q.width&&h.height===q.height&&(h.Nf=!1));this.rc=this.za.frames[this.B];this.Uh=this.rc.T};a.mb=function(){var a={a:this.za.U,f:this.B,
cas:this.dg,fs:this.xd,ar:this.md,at:this.Tc.V};this.ne||(a.ap=this.ne);this.me||(a.af=this.me);return a};a.Ib=function(a){var b=this.qs(a.a);b&&(this.za=b);this.B=a.f;0>this.B&&(this.B=0);this.B>=this.za.frames.length&&(this.B=this.za.frames.length-1);this.dg=a.cas;this.xd=a.fs;this.md=a.ar;this.Tc.reset();this.Tc.V=a.at;this.ne=a.hasOwnProperty("ap")?a.ap:!0;this.me=a.hasOwnProperty("af")?a.af:!0;this.rc=this.za.frames[this.B];this.Uh=this.rc.T;this.ca.oh(this.rc.$i);this.Gb=this.rc.Gb;this.Hb=
this.rc.Hb};a.Xj=function(a){this.B=a?0:this.za.frames.length-1;this.ne=!1;this.Wm=this.za.name;this.b.trigger(ac.prototype.i.hq,this);this.b.trigger(ac.prototype.i.gq,this);this.md=0};a.Lv=function(){return this.Tc.V};a.Ga=function(){this.Tc.add(this.b.ff(this));this.ck.length&&this.qr();0<=this.bk&&this.rr();var a=this.Tc.V,b=this.za,c=b.frames[this.B],d=c.duration/this.dg;this.ne&&a>=this.xd+d&&(this.me?this.B++:this.B--,this.xd+=d,this.B>=b.frames.length&&(b.Ro?(this.me=!1,this.B=b.frames.length-
2):b.loop?this.B=b.hj:(this.md++,this.md>=b.Tl?this.Xj(!1):this.B=b.hj)),0>this.B&&(b.Ro?(this.B=1,this.me=!0,b.loop||(this.md++,this.md>=b.Tl&&this.Xj(!0))):b.loop?this.B=b.hj:(this.md++,this.md>=b.Tl?this.Xj(!0):this.B=b.hj)),0>this.B?this.B=0:this.B>=b.frames.length&&(this.B=b.frames.length-1),a>this.xd+b.frames[this.B].duration/this.dg&&(this.xd=a),a=b.frames[this.B],this.Xe(c,a),this.b.ea=!0)};a.tn=function(a){var b,c,d;b=0;for(c=this.type.Sb.length;b<c;b++)if(d=this.type.Sb[b],ab(d.name,a))return d;
return null};a.qs=function(a){var b,c,d;b=0;for(c=this.type.Sb.length;b<c;b++)if(d=this.type.Sb[b],d.U===a)return d;return null};a.qr=function(){var a=this.za.frames[this.B],b=this.tn(this.ck);this.ck="";!b||ab(b.name,this.za.name)&&this.ne||(this.za=b,this.dg=b.speed,0>this.B&&(this.B=0),this.B>=this.za.frames.length&&(this.B=this.za.frames.length-1),1===this.er&&(this.B=0),this.ne=!0,this.xd=this.Tc.V,this.me=!0,this.Xe(a,this.za.frames[this.B]),this.b.ea=!0)};a.rr=function(){var a=this.za.frames[this.B],
b=this.B;this.B=O(this.bk);0>this.B&&(this.B=0);this.B>=this.za.frames.length&&(this.B=this.za.frames.length-1);b!==this.B&&(this.Xe(a,this.za.frames[this.B]),this.xd=this.Tc.V,this.b.ea=!0);this.bk=-1};a.Xe=function(a,b){var c=a.width,d=a.height,e=b.width,h=b.height;c!=e&&(this.width*=e/c);d!=h&&(this.height*=h/d);this.Gb=b.Gb;this.Hb=b.Hb;this.ca.oh(b.$i);this.ba();this.rc=b;this.Uh=b.T;c=0;for(d=this.J.length;c<d;c++)e=this.J[c],e.Gt&&e.Gt(a,b);this.b.trigger(ac.prototype.i.Xe,this)};a.Ic=function(a){a.globalAlpha=
this.opacity;var b=this.rc,c=b.Nf,d=b.N,e=this.x,h=this.y,k=this.width,q=this.height;if(0===this.e&&0<=k&&0<=q)e-=this.Gb*k,h-=this.Hb*q,this.b.cd&&(e=Math.round(e),h=Math.round(h)),c?a.drawImage(d,b.Cf,b.Df,b.width,b.height,e,h,k,q):a.drawImage(d,e,h,k,q);else{this.b.cd&&(e=Math.round(e),h=Math.round(h));a.save();var l=0<k?1:-1,w=0<q?1:-1;a.translate(e,h);1===l&&1===w||a.scale(l,w);a.rotate(this.e*l*w);e=0-this.Gb*ja(k);h=0-this.Hb*ja(q);c?a.drawImage(d,b.Cf,b.Df,b.width,b.height,e,h,ja(k),ja(q)):
a.drawImage(d,e,h,ja(k),ja(q));a.restore()}};a.Vb=function(a){a.ac(this.Uh);a.Re(this.opacity);var b=this.rc,c=this.Tb;if(this.b.cd){var d=Math.round(this.x)-this.x,e=Math.round(this.y)-this.y;b.Nf?a.Gd(c.Ta+d,c.Ua+e,c.Nb+d,c.Ob+e,c.Bb+d,c.Cb+e,c.zb+d,c.Ab+e,b.am):a.jh(c.Ta+d,c.Ua+e,c.Nb+d,c.Ob+e,c.Bb+d,c.Cb+e,c.zb+d,c.Ab+e)}else b.Nf?a.Gd(c.Ta,c.Ua,c.Nb,c.Ob,c.Bb,c.Cb,c.zb,c.Ab,b.am):a.jh(c.Ta,c.Ua,c.Nb,c.Ob,c.Bb,c.Cb,c.zb,c.Ab)};a.vs=function(a){var b=this.rc,c,d;c=0;for(d=b.Rk.length;c<d;c++)if(ab(a,
b.Rk[c][0]))return c;return-1};a.Fk=function(a,b){var c=this.rc,d=c.Rk,e;e=M(a)?this.vs(a):a-1;e=O(e);if(0>e||e>=d.length)return b?this.x:this.y;var h=(d[e][1]-c.Gb)*this.width,d=d[e][2],d=(d-c.Hb)*this.height,c=Math.cos(this.e);e=Math.sin(this.e);var k=h*c-d*e,d=d*c+h*e,h=k+this.x,d=d+this.y;return b?h:d};var c=new ba,d=!1;h.finish=function(a){if(d){if(a){var b=this.b.Eb().gc.ad;a=null.pa();var e=c.Sc(),h,k;if(a.ta){a.ta=!1;a.c.length=e.length;h=0;for(k=e.length;h<k;h++)a.c[h]=e[h];if(b)for(h=a.da.length=
0,k=null.c.length;h<k;h++)e=null.c[h],c.contains(e)||a.da.push(e)}else if(b)for(b=a.c.length,a.c.length=b+e.length,h=0,k=e.length;h<k;h++)a.c[b+h]=e[h],wa(a.da,e[h]);else ta(a.c,e);null.nd()}c.clear();d=!1}};k.prototype.gq=function(a){return ab(this.Wm,a)};k.prototype.hq=function(){return!0};k.prototype.Xe=function(){return!0};b.i=new k;b.va=new function(){};b.qb=new function(){}})();function fc(e){this.b=e}
(function(){var e=fc.prototype;e.ya=function(b){this.Ea=b;this.b=b.b};var k=e.ya.prototype;k.aa=function(){this.C||(this.N=new Image,this.N.fk=this.yj,this.b.Cm(this.N,this.xj),this.T=this.pattern=null)};k.Qi=function(){this.C||(this.T=null)};k.Ri=function(){if(!this.C&&this.c.length){this.T||(this.T=this.b.u.vf(this.N,!0,this.b.X,this.uh));var b,e;b=0;for(e=this.c.length;b<e;b++)this.c[b].T=this.T}};k.Jg=function(){this.C||this.T||!this.b.u||(this.T=this.b.u.vf(this.N,!0,this.b.X,this.uh))};k.Gj=
function(){this.C||this.c.length||!this.T||(this.b.u.deleteTexture(this.T),this.T=null)};k.cj=function(b){b.drawImage(this.N,0,0)};e.na=function(b){this.type=b;this.b=b.b};k=e.na.prototype;k.aa=function(){this.visible=0===this.M[0];this.kh=new pa(0,0,0,0);this.En=!1;this.N=this.type.N;this.b.u?(this.type.Jg(),this.T=this.type.T):(this.type.pattern||(this.type.pattern=this.b.ja.createPattern(this.type.N,"repeat")),this.pattern=this.type.pattern)};k.ld=function(){this.En=!1;this.N=this.type.N};k.Wg=
function(){this.b.u&&this.En&&this.T&&(this.b.u.deleteTexture(this.T),this.T=null)};k.Ic=function(b){b.globalAlpha=this.opacity;b.save();b.fillStyle=this.pattern;var e=this.x,k=this.y;this.b.cd&&(e=Math.round(e),k=Math.round(k));var a=-(this.Gb*this.width),c=-(this.Hb*this.height),d=a%this.N.width,m=c%this.N.height;0>d&&(d+=this.N.width);0>m&&(m+=this.N.height);b.translate(e,k);b.rotate(this.e);b.translate(d,m);b.fillRect(a-d,c-m,this.width,this.height);b.restore()};k.Vb=function(b){b.ac(this.T);
b.Re(this.opacity);var e=this.kh;e.right=this.width/this.N.width;e.bottom=this.height/this.N.height;var k=this.Tb;if(this.b.cd){var a=Math.round(this.x)-this.x,c=Math.round(this.y)-this.y;b.Gd(k.Ta+a,k.Ua+c,k.Nb+a,k.Ob+c,k.Bb+a,k.Cb+c,k.zb+a,k.Ab+c,e)}else b.Gd(k.Ta,k.Ua,k.Nb,k.Ob,k.Bb,k.Cb,k.zb,k.Ab,e)};e.i=new function(){};e.va=new function(){};e.qb=new function(){}})();function X(e){this.b=e}
(function(){function e(a){f=a.x;g=a.y;r=a.z}function k(a){y=a.x;n=a.y;C=a.z}function b(a,b,c,d){var e;e=u.length?u.pop():new h;e.init(a,b,c,d);return e}function h(){this.qh=this.id=this.y=this.x=this.vj=this.uj=this.gl=this.time=this.km=0;this.wh=this.Ej=!1}function q(){}function a(){}var c=X.prototype;c.ya=function(a){this.Ea=a;this.b=a.b};c.ya.prototype.aa=function(){};c.na=function(a){this.type=a;this.b=a.b;this.touches=[];this.sl=!1};var d=c.na.prototype,m={left:0,top:0};d.ig=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 f=0,g=0,r=0,y=0,n=0,C=0,u=[];h.prototype.init=function(a,b,c,d){var e=R();this.km=this.gl=this.time=e;this.uj=a;this.vj=b;this.x=a;this.y=b;this.id=c;this.qh=d;this.wh=this.Ej=!1};h.prototype.update=function(a,b,c){this.gl=this.time;this.time=a;this.x=b;this.y=c;!this.wh&&15<=Ja(this.uj,this.vj,this.x,this.y)&&(this.wh=!0)};h.prototype.ut=function(a,b){!this.Ej&&500<=R()-this.km&&!this.wh&&15>Ja(this.uj,this.vj,
this.x,this.y)&&(this.Ej=!0,a.gd=this.qh,a.Uf=this.id,a.gf=b,a.b.trigger(X.prototype.i.uq,a),a.rd=this.x,a.sd=this.y,a.b.trigger(X.prototype.i.vq,a),a.gf=0)};var l=-1E3,w=-1E3,A=-1E4;h.prototype.uo=function(a,b){if(!this.Ej){var c=R();333>=c-this.km&&!this.wh&&15>Ja(this.uj,this.vj,this.x,this.y)&&(a.gd=this.qh,a.Uf=this.id,a.gf=b,666>=c-A&&25>Ja(l,w,this.x,this.y)?(a.b.trigger(X.prototype.i.pq,a),a.rd=this.x,a.sd=this.y,a.b.trigger(X.prototype.i.qq,a),w=l=-1E3,A=-1E4):(a.b.trigger(X.prototype.i.Dq,
a),a.rd=this.x,a.sd=this.y,a.b.trigger(X.prototype.i.Eq,a),l=this.x,w=this.y,A=c),a.gf=0)}};d.aa=function(){this.lt=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.gf=this.Uf=this.gd=this.sd=this.rd=this.Sm=this.Rm=this.Qm=this.Qq=this.Pq=this.Oq=this.eh=this.dh=this.bh=0;this.wu=0!==this.M[0];var a=0<this.b.rb?document:this.b.canvas,b=document;this.b.eb?b=a=window.Canvas:this.b.jc&&(b=a=window);var c=this;window.navigator.pointerEnabled?(a.addEventListener("pointerdown",function(a){c.ah(a)},
!1),a.addEventListener("pointermove",function(a){c.$g(a)},!1),b.addEventListener("pointerup",function(a){c.Fd(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.Fd(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.ah(a)},!1),a.addEventListener("MSPointerMove",function(a){c.$g(a)},!1),b.addEventListener("MSPointerUp",function(a){c.Fd(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.Fd(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.Ti(a)},
!1),a.addEventListener("touchmove",function(a){c.Si(a)},!1),b.addEventListener("touchend",function(a){c.Ef(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.Ef(a,!0)},!1));if(this.lt){var d=function(a){a=a.reading;c.Qm=a.accelerationX;c.Rm=a.accelerationY;c.Sm=a.accelerationZ},f=function(a){a=a.reading;c.bh=a.yawDegrees;c.dh=a.pitchDegrees;c.eh=a.rollDegrees},g=Windows.Devices.Sensors.Accelerometer.getDefault();g&&(g.reportInterval=Math.max(g.minimumReportInterval,16),g.addEventListener("readingchanged",
d));var h=Windows.Devices.Sensors.Inclinometer.getDefault();h&&(h.reportInterval=Math.max(h.minimumReportInterval,16),h.addEventListener("readingchanged",f));document.addEventListener("visibilitychange",function(){document.hidden||document.msHidden?(g&&g.removeEventListener("readingchanged",d),h&&h.removeEventListener("readingchanged",f)):(g&&g.addEventListener("readingchanged",d),h&&h.addEventListener("readingchanged",f))},!1)}else window.addEventListener("deviceorientation",function(a){c.bh=a.alpha||
0;c.dh=a.beta||0;c.eh=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.Oq=a.accelerationIncludingGravity.x||0,c.Pq=a.accelerationIncludingGravity.y||0,c.Qq=a.accelerationIncludingGravity.z||0);a.acceleration&&(c.Qm=a.acceleration.x||0,c.Rm=a.acceleration.y||0,c.Sm=a.acceleration.z||0)},!1);this.wu&&!this.b.ka&&(jQuery(document).mousemove(function(a){c.Yg(a)}),jQuery(document).mousedown(function(a){c.Xg(a)}),jQuery(document).mouseup(function(a){c.Zg(a)}));
this.b.mf&&!this.b.eb&&AppMobi.accelerometer.watchAcceleration(e,{frequency:40,adjustForRotation:!0});this.b.wc&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(k,null,{frequency:40});this.b.pu(this)};d.$g=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var b=this.ig(a.pointerId),c=R();if(0<=b){var d=this.b.ka?m:jQuery(this.b.canvas).offset(),b=this.touches[b];2>c-b.time||
b.update(c,a.pageX-d.left,a.pageY-d.top)}}};d.ah=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&bb(a)&&a.preventDefault();var c=this.b.ka?m:jQuery(this.b.canvas).offset(),d=a.pageX-c.left,c=a.pageY-c.top;R();this.gd=this.touches.length;this.Uf=a.pointerId;this.touches.push(b(d,c,a.pointerId,this.gd));this.b.ra=!0;this.b.trigger(X.prototype.i.Lm,this);this.b.trigger(X.prototype.i.Nm,this);this.rd=d;this.sd=c;this.b.trigger(X.prototype.i.Rj,this);this.b.ra=
!1}};d.Fd=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&bb(a)&&a.preventDefault();var c=this.ig(a.pointerId);this.gd=0<=c?this.touches[c].qh:-1;this.Uf=0<=c?this.touches[c].id:-1;this.b.ra=!0;this.b.trigger(X.prototype.i.Km,this);this.b.trigger(X.prototype.i.Mm,this);0<=c&&(b||this.touches[c].uo(this,c),100>u.length&&u.push(this.touches[c]),this.touches.splice(c,1));this.b.ra=!1}};d.Si=function(a){a.preventDefault&&a.preventDefault();var b=R(),
c,d,e,f;c=0;for(d=a.changedTouches.length;c<d;c++)if(e=a.changedTouches[c],f=this.ig(e.identifier),0<=f){var g=this.b.ka?m:jQuery(this.b.canvas).offset();f=this.touches[f];2>b-f.time||f.update(b,e.pageX-g.left,e.pageY-g.top)}};d.Ti=function(a){a.preventDefault&&bb(a)&&a.preventDefault();var c=this.b.ka?m:jQuery(this.b.canvas).offset();R();this.b.ra=!0;var d,e,f,g;d=0;for(e=a.changedTouches.length;d<e;d++)if(f=a.changedTouches[d],g=this.ig(f.identifier),-1===g){g=f.pageX-c.left;var h=f.pageY-c.top;
this.gd=this.touches.length;this.Uf=f.identifier;this.touches.push(b(g,h,f.identifier,this.gd));this.b.trigger(X.prototype.i.Lm,this);this.b.trigger(X.prototype.i.Nm,this);this.rd=g;this.sd=h;this.b.trigger(X.prototype.i.Rj,this)}this.b.ra=!1};d.Ef=function(a,b){a.preventDefault&&bb(a)&&a.preventDefault();this.b.ra=!0;var c,d,e;c=0;for(d=a.changedTouches.length;c<d;c++)e=a.changedTouches[c],e=this.ig(e.identifier),0<=e&&(this.gd=this.touches[e].qh,this.Uf=this.touches[e].id,this.b.trigger(X.prototype.i.Km,
this),this.b.trigger(X.prototype.i.Mm,this),b||this.touches[e].uo(this,e),100>u.length&&u.push(this.touches[e]),this.touches.splice(e,1));this.b.ra=!1};d.Gv=function(){return this.b.mf&&0===this.bh&&0!==r?90*r:this.b.wc&&0===this.bh&&0!==C?90*C:this.bh};d.Hv=function(){return this.b.mf&&0===this.dh&&0!==g?-90*g:this.b.wc&&0===this.dh&&0!==n?-90*n:this.dh};d.Kv=function(){return this.b.mf&&0===this.eh&&0!==f?90*f:this.b.wc&&0===this.eh&&0!==y?90*y:this.eh};d.Xg=function(a){a.preventDefault&&this.b.kf&&
!this.b.Zc&&a.preventDefault();this.Ti({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.sl=!0};d.Yg=function(a){this.sl&&this.Si({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};d.Zg=function(a){a.preventDefault&&this.b.kf&&!this.b.Zc&&a.preventDefault();this.b.kf=!0;this.Ef({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.sl=!1};d.nm=function(){var a,b,c,d=R();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=d-50&&(c.gl=d),c.ut(this,
a)};q.prototype.Nm=function(){return!0};q.prototype.Mm=function(){return!0};q.prototype.Rj=function(a){return a?this.b.Qf(a,this.rd,this.sd,!1):!1};var s=[];q.prototype.$p=function(a){if(!a)return!1;var b=a.pa(),c=b.Jc(),d,e,f,g,h,k;f=0;for(g=c.length;f<g;f++){var m=c[f];m.Ha();h=0;for(k=this.touches.length;h<k;h++)if(e=this.touches[h],d=m.d.wa(e.x,e.y,!0),e=m.d.wa(e.x,e.y,!1),m.pb(d,e)){s.push(m);break}}return s.length?(b.ta=!1,ta(b.c,s),a.nd(),s.length=0,!0):!1};q.prototype.Lm=function(a){a=Math.floor(a);
return a===this.gd};q.prototype.Km=function(a){a=Math.floor(a);return a===this.gd};q.prototype.uq=function(){return!0};q.prototype.Dq=function(){return!0};q.prototype.pq=function(){return!0};q.prototype.vq=function(a){return a?this.b.Qf(a,this.rd,this.sd,!1):!1};q.prototype.Eq=function(a){return a?this.b.Qf(a,this.rd,this.sd,!1):!1};q.prototype.qq=function(a){return a?this.b.Qf(a,this.rd,this.sd,!1):!1};c.i=new q;a.prototype.Om=function(a,b){var c=this.gf;if(0>c||c>=this.touches.length)a.A(0);else{var d,
e,f,g,h;fa(b)?(d=this.b.yd(0),e=d.scale,f=d.ob,g=d.Kb,h=d.e,d.scale=1,d.ob=1,d.Kb=1,d.e=0,a.A(d.wa(this.touches[c].x,this.touches[c].y,!0)),d.scale=e,d.ob=f,d.Kb=g,d.e=h):(d=K(b)?this.b.yd(b):this.b.kg(b))?a.A(d.wa(this.touches[c].x,this.touches[c].y,!0)):a.A(0)}};a.prototype.Pm=function(a,b){var c=this.gf;if(0>c||c>=this.touches.length)a.A(0);else{var d,e,f,g,h;fa(b)?(d=this.b.yd(0),e=d.scale,f=d.ob,g=d.Lb,h=d.e,d.scale=1,d.ob=1,d.Lb=1,d.e=0,a.A(d.wa(this.touches[c].x,this.touches[c].y,!1)),d.scale=
e,d.ob=f,d.Lb=g,d.e=h):(d=K(b)?this.b.yd(b):this.b.kg(b))?a.A(d.wa(this.touches[c].x,this.touches[c].y,!1)):a.A(0)}};c.qb=new a})();
function gc(e){this.b=e;var k=this;this.b.ka||(jQuery(document).mousemove(function(b){k.Yg(b)}),jQuery(document).mousedown(function(b){k.Xg(b)}),jQuery(document).mouseup(function(b){k.Zg(b)}));e=0<this.b.rb?document:this.b.canvas;this.b.eb?e=window.Canvas:this.b.jc&&(e=window);window.navigator.pointerEnabled?(e.addEventListener("pointerdown",function(b){k.ah(b)},!1),e.addEventListener("pointermove",function(b){k.$g(b)},!1),e.addEventListener("pointerup",function(b){k.Fd(b)},!1),e.addEventListener("pointercancel",
function(b){k.Fd(b)},!1)):window.navigator.msPointerEnabled?(e.addEventListener("MSPointerDown",function(b){k.ah(b)},!1),e.addEventListener("MSPointerMove",function(b){k.$g(b)},!1),e.addEventListener("MSPointerUp",function(b){k.Fd(b)},!1),e.addEventListener("MSPointerCancel",function(b){k.Fd(b)},!1)):(e.addEventListener("touchstart",function(b){k.Ti(b)},!1),e.addEventListener("touchmove",function(b){k.Si(b)},!1),e.addEventListener("touchend",function(b){k.Ef(b)},!1),e.addEventListener("touchcancel",
function(b){k.Ef(b)},!1))}
(function(){function e(a){var c,d;c=0;for(d=a.J.length;c<d;c++)if(a.J[c]instanceof b.na)return a.J[c];return null}function k(){}var b=gc.prototype,h={left:0,top:0};b.Xg=function(a){1===a.which&&this.Al("leftmouse",a.pageX,a.pageY)};b.Yg=function(a){1===a.which&&this.Bl("leftmouse",a.pageX,a.pageY)};b.Zg=function(a){1===a.which&&this.Cl("leftmouse")};b.Ti=function(a){a.preventDefault&&bb(a)&&a.preventDefault();var b,d,e,f;b=0;for(d=a.changedTouches.length;b<d;b++)e=a.changedTouches[b],f=e.identifier,
this.Al(f?f.toString():"<none>",e.pageX,e.pageY)};b.Si=function(a){a.preventDefault&&a.preventDefault();var b,d,e,f;b=0;for(d=a.changedTouches.length;b<d;b++)e=a.changedTouches[b],f=e.identifier,this.Bl(f?f.toString():"<none>",e.pageX,e.pageY)};b.Ef=function(a){a.preventDefault&&bb(a)&&a.preventDefault();var b,d,e;b=0;for(d=a.changedTouches.length;b<d;b++)e=a.changedTouches[b],e=e.identifier,this.Cl(e?e.toString():"<none>")};b.ah=function(a){a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType&&
(a.preventDefault&&bb(a)&&a.preventDefault(),this.Al(a.pointerId.toString(),a.pageX,a.pageY))};b.$g=function(a){a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType&&(a.preventDefault&&a.preventDefault(),this.Bl(a.pointerId.toString(),a.pageX,a.pageY))};b.Fd=function(a){a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType&&(a.preventDefault&&bb(a)&&a.preventDefault(),this.Cl(a.pointerId.toString()))};b.Al=function(a,b,d){var k=this.b.ka?h:jQuery(this.b.canvas).offset();b-=k.left;
d-=k.top;var f,g,q,y,k=this.Af.Sc(),n,C,u,l=null;n=0;for(C=k.length;n<C;n++)if(u=k[n],f=e(u),f.enabled&&!f.we&&(f=u.d.wa(b,d,!0),g=u.d.wa(b,d,!1),u.Ha(),u.pb(f,g)))l?u.d.index>l.d.index?(l=u,q=f,y=g):u.d.index===l.d.index&&u.Wb()>l.Wb()&&(l=u,q=f,y=g):(l=u,q=f,y=g);l&&e(l).Dt(a,q,y)};b.Bl=function(a,b,d){var k=this.b.ka?h:jQuery(this.b.canvas).offset();b-=k.left;d-=k.top;var f,g=this.Af.Sc(),q,y,n;q=0;for(y=g.length;q<y;q++)f=g[q],n=e(f),!n.enabled||!n.we||n.we&&n.nk!==a||(k=f.d.wa(b,d,!0),f=f.d.wa(b,
d,!1),n.Ft(k,f))};b.Cl=function(a){var b=this.Af.Sc(),d,h,f;d=0;for(h=b.length;d<h;d++)f=b[d],f=e(f),f.we&&f.nk===a&&f.It()};b.ya=function(a){this.behavior=a;this.b=a.b};b.ya.prototype.aa=function(){};b.na=function(a,b){this.type=a;this.behavior=a.behavior;this.j=b;this.b=a.b};var q=b.na.prototype;q.aa=function(){this.we=!1;this.G=this.F=0;this.nk="<none>";this.Yj=this.M[0];this.enabled=0!==this.M[1]};q.mb=function(){return{enabled:this.enabled}};q.Ib=function(a){this.enabled=a.enabled;this.we=!1};
q.Dt=function(a,b,d){this.F=b-this.j.x;this.G=d-this.j.y;this.we=!0;this.nk=a;this.b.ra=!0;this.b.trigger(gc.prototype.i.rq,this.j);this.b.ra=!1};q.Ft=function(a,b){var d=a-this.F,e=b-this.G;if(0===this.Yj){if(this.j.x!==d||this.j.y!==e)this.j.x=d,this.j.y=e,this.j.ba()}else 1===this.Yj?this.j.x!==d&&(this.j.x=d,this.j.ba()):2===this.Yj&&this.j.y!==e&&(this.j.y=e,this.j.ba())};q.It=function(){this.we=!1;this.b.ra=!0;this.b.trigger(gc.prototype.i.sq,this.j);this.b.ra=!1};q.Ga=function(){};k.prototype.rq=
function(){return!0};k.prototype.sq=function(){return!0};b.i=new k;b.va=new function(){};b.qb=new function(){}})();function lc(e){this.b=e}
(function(){var e=lc.prototype;e.ya=function(b){this.behavior=b;this.b=b.b};e.ya.prototype.aa=function(){};e.na=function(b,e){this.type=b;this.behavior=b.behavior;this.j=e;this.b=b.b;this.gm=this.fm=this.em=this.hm=this.Qk=this.ij=this.Gi=this.$h=this.Ij=!1;this.fl=this.el=this.dl=this.hl=-1;this.G=this.F=0};var k=e.na.prototype;k.aa=function(){this.Sg=this.M[0];this.Qb=this.M[1];this.Vc=this.M[2];this.mk=this.M[3];this.Wj=this.M[4];this.nr=1===this.M[5];this.enabled=0!==this.M[6];this.nr&&!this.b.ka&&
(jQuery(document).keydown(function(b){return function(e){b.Dl(e)}}(this)),jQuery(document).keyup(function(b){return function(e){b.El(e)}}(this)))};k.mb=function(){return{dx:this.F,dy:this.G,enabled:this.enabled,maxspeed:this.Sg,acc:this.Qb,dec:this.Vc,ignoreInput:this.Qk}};k.Ib=function(b){this.F=b.dx;this.G=b.dy;this.enabled=b.enabled;this.Sg=b.maxspeed;this.Qb=b.acc;this.Vc=b.dec;this.Qk=b.ignoreInput;this.gm=this.fm=this.em=this.hm=this.ij=this.Gi=this.$h=this.Ij=!1;this.fl=this.el=this.dl=this.hl=
-1};k.Dl=function(b){var e=this.b.Te;switch(b.which){case 37:b.preventDefault();this.el<e&&(this.Gi=!0);break;case 38:b.preventDefault();this.hl<e&&(this.Ij=!0);break;case 39:b.preventDefault();this.fl<e&&(this.ij=!0);break;case 40:b.preventDefault(),this.dl<e&&(this.$h=!0)}};k.El=function(b){var e=this.b.Te;switch(b.which){case 37:b.preventDefault();this.Gi=!1;this.el=e;break;case 38:b.preventDefault();this.Ij=!1;this.hl=e;break;case 39:b.preventDefault();this.ij=!1;this.fl=e;break;case 40:b.preventDefault(),
this.$h=!1,this.dl=e}};k.Ga=function(){var b=this.b.ff(this.j),e=this.Gi||this.fm,k=this.ij||this.gm,a=this.Ij||this.hm,c=this.$h||this.em;this.em=this.hm=this.gm=this.fm=!1;if(this.enabled){var d=this.b.Rf(this.j);if(d&&(this.b.gj(this.j,d),!this.b.Ut(this.j)))return;this.Qk&&(c=a=k=e=!1);0===this.mk?k=e=!1:1===this.mk&&(c=a=!1);2===this.mk&&(a||c)&&(k=e=!1);e==k&&(0>this.F?(this.F+=this.Vc*b,0<this.F&&(this.F=0)):0<this.F&&(this.F-=this.Vc*b,0>this.F&&(this.F=0)));a==c&&(0>this.G?(this.G+=this.Vc*
b,0<this.G&&(this.G=0)):0<this.G&&(this.G-=this.Vc*b,0>this.G&&(this.G=0)));e&&!k&&(this.F=0<this.F?this.F-(this.Qb+this.Vc)*b:this.F-this.Qb*b);k&&!e&&(this.F=0>this.F?this.F+(this.Qb+this.Vc)*b:this.F+this.Qb*b);a&&!c&&(this.G=0<this.G?this.G-(this.Qb+this.Vc)*b:this.G-this.Qb*b);c&&!a&&(this.G=0>this.G?this.G+(this.Qb+this.Vc)*b:this.G+this.Qb*b);if(0!==this.F||0!==this.G){Math.sqrt(this.F*this.F+this.G*this.G)>this.Sg&&(d=Math.atan2(this.G,this.F),this.F=this.Sg*Math.cos(d),this.G=this.Sg*Math.sin(d));
k=this.j.x;a=this.j.y;e=this.j.e;this.j.x+=this.F*b;this.j.ba();if(d=this.b.Rf(this.j))this.j.x=k,this.F=0,this.j.ba(),this.b.gj(this.j,d);this.j.y+=this.G*b;this.j.ba();if(d=this.b.Rf(this.j))this.j.y=a,this.G=0,this.j.ba(),this.b.gj(this.j,d);b=$a(this.F);d=$a(this.G);if(0!==b||0!==d)1===this.Wj?this.j.e=Ca(90*Math.round(xa(Math.atan2(d,b))/90)):2===this.Wj?this.j.e=Ca(45*Math.round(xa(Math.atan2(d,b))/45)):3===this.Wj&&(this.j.e=Math.atan2(d,b));this.j.ba();this.j.e!=e&&(d=this.b.Rf(this.j))&&
(this.j.e=e,this.j.ba(),this.b.gj(this.j,d))}}};e.i=new function(){};e.va=new function(){};e.qb=new function(){}})();function mc(e){this.b=e}
(function(){function e(){}var k=mc.prototype;k.ya=function(b){this.behavior=b;this.b=b.b};k.ya.prototype.aa=function(){};k.na=function(b,e){this.type=b;this.behavior=b.behavior;this.j=e;this.b=b.b};var b=k.na.prototype;b.aa=function(){var b=1===this.M[0];this.gg=this.M[1];this.Ah=this.M[2];this.bi=this.M[3];this.pr=this.M[4];this.nc=b?0:3;this.Bc?this.Cc.reset():this.Cc=new Ua;this.Oe=this.j.opacity?this.j.opacity:1;b&&(0===this.gg?(this.nc=1,0===this.Ah&&(this.nc=2)):(this.j.opacity=0,this.b.ea=
!0))};b.mb=function(){return{fit:this.gg,wt:this.Ah,fot:this.bi,s:this.nc,st:this.Cc.V,mo:this.Oe}};b.Ib=function(b){this.gg=b.fit;this.Ah=b.wt;this.bi=b.fot;this.nc=b.s;this.Cc.reset();this.Cc.V=b.st;this.Oe=b.mo};b.Ga=function(){this.Cc.add(this.b.ff(this.j));0===this.nc&&(this.j.opacity=this.Cc.V/this.gg*this.Oe,this.b.ea=!0,this.j.opacity>=this.Oe&&(this.j.opacity=this.Oe,this.nc=1,this.Cc.reset()));1===this.nc&&this.Cc.V>=this.Ah&&(this.nc=2,this.Cc.reset());2===this.nc&&0!==this.bi&&(this.j.opacity=
this.Oe-this.Cc.V/this.bi*this.Oe,this.b.ea=!0,0>this.j.opacity&&(this.j.opacity=0,this.nc=3,this.Cc.reset(),this.b.trigger(mc.prototype.i.tq,this.j),1===this.pr&&this.b.kd(this.j)))};b.Fv=function(){this.nc=0;this.Cc.reset();0===this.gg?(this.nc=1,0===this.Ah&&(this.nc=2)):(this.j.opacity=0,this.b.ea=!0)};e.prototype.tq=function(){return!0};k.i=new e;k.va=new function(){}})();function nc(e){this.b=e}
(function(){function e(){}function k(){}var b=nc.prototype;b.ya=function(b){this.behavior=b;this.b=b.b};b.ya.prototype.aa=function(){};b.na=function(b,a){this.type=b;this.behavior=b.behavior;this.j=a;this.b=b.b;this.qe=this.G=this.F=0};var h=b.na.prototype;h.aa=function(){this.Pf=this.M[0];this.Pl=this.M[1];this.enabled=0!==this.M[2]};h.mb=function(){return{dx:this.F,dy:this.G,cancelStep:this.qe,enabled:this.enabled,stepMode:this.Pf,pxPerStep:this.Pl}};h.Ib=function(b){this.F=b.dx;this.G=b.dy;this.qe=
b.cancelStep;this.enabled=b.enabled;this.Pf=b.stepMode;this.Pl=b.pxPerStep};h.Ik=function(){return Math.sqrt(this.F*this.F+this.G*this.G)};h.Na=function(){return Math.atan2(this.G,this.F)};h.step=function(b,a,c){if(0!==b||0!==a){var d=this.j.x,e=this.j.y,f,g=Math.round(Math.sqrt(b*b+a*a)/this.Pl);0===g&&(g=1);var h;for(h=1;h<=g;h++)if(f=h/g,this.j.x=d+b*f,this.j.y=e+a*f,this.j.ba(),this.b.trigger(c,this.j),1===this.qe){h--;f=h/g;this.j.x=d+b*f;this.j.y=e+a*f;this.j.ba();break}else if(2===this.qe)break}};
h.Ga=function(){var b=this.b.ff(this.j),a=this.F*b,b=this.G*b;0===this.F&&0===this.G||!this.enabled||(this.qe=0,0===this.Pf?(this.j.x+=a,this.j.y+=b):1===this.Pf?this.step(a,b,nc.prototype.i.lq):2===this.Pf?(this.step(a,0,nc.prototype.i.Fm),this.qe=0,this.step(0,b,nc.prototype.i.Gm)):3===this.Pf&&(this.step(0,b,nc.prototype.i.Gm),this.qe=0,this.step(a,0,nc.prototype.i.Fm)),this.j.ba())};e.prototype.lq=function(){return!0};e.prototype.Fm=function(){return!0};e.prototype.Gm=function(){return!0};b.i=
new e;b.va=new function(){};k.prototype.F=function(b){b.A(this.F)};k.prototype.G=function(b){b.A(this.G)};b.qb=new k})();
function $b(){return[bc,cc,dc,ec,ac,fc,X,gc,mc,nc,lc,dc.prototype.i.Zp,ac.prototype.va.Jq,dc.prototype.i.Pj,X.prototype.i.$p,W.prototype.va.Kq,dc.prototype.i.Xp,W.prototype.i.Tp,W.prototype.va.Iq,W.prototype.va.fq,X.prototype.i.Rj,ac.prototype.va.Up,bc.prototype.va.Play,W.prototype.va.Mq,ac.prototype.va.Lq,ac.prototype.i.aq,W.prototype.va.Gq,W.prototype.va.Hq,W.prototype.va.dq,W.prototype.i.Im]};
