// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa,ba,ca,da,ea,fa,ga,ia,A,ja,ka,la,ma,oa,pa,R,ra,ta,ua,va,wa,xa,ya,W,za,Aa,Da,Ea,Fa,Y,Ga,Ha,Ja,Ka,La,Ma,Na,Oa,Ua,Va,Wa,Xa,Ya,Za,$a,ab,bb,cb,db,eb,fb,gb,hb,jb,kb,lb,mb,nb,ob,pb,qb,rb,sb,tb,ub,vb,wb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,Xb,Yb,Zb,$b,ac,bc,cc,dc,ec={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(c){return c.__proto__}:function(c){return c.constructor.prototype});
(function(){function c(b,a,f,g){this.set(b,a,f,g)}function n(){this.sb=this.rb=this.ub=this.tb=this.Hb=this.Gb=this.Za=this.Ya=0}function k(b,a,f,g){b<a?f<g?(t=b<f?b:f,v=a>g?a:g):(t=b<g?b:g,v=a>f?a:f):f<g?(t=a<f?a:f,v=b>g?b:g):(t=a<g?a:g,v=b>f?b:f)}function q(){this.items=this.Id=null;this.Ch=0;C&&(this.Id=new Set);this.Pg=[];this.te=!0}function r(b){F[N++]=b}function p(){this.X=this.yk=this.y=this.bl=0}function l(b){this.kb=[];this.Di=this.Fi=this.Gi=this.Ei=0;this.hi(b)}function a(b,a){this.fl=
b;this.el=a;this.cells={}}function d(b,a){this.fl=b;this.el=a;this.cells={}}function e(b,a,f){var g;return T.length?(g=T.pop(),g.Ol=b,g.x=a,g.y=f,g):new ba(b,a,f)}function b(b,a,f){this.Ol=b;this.x=a;this.y=f;this.ob=new ca}function f(b,a,f){var g;return D.length?(g=D.pop(),g.Ol=b,g.x=a,g.y=f,g):new da(b,a,f)}function h(b,a,f){this.Ol=b;this.x=a;this.y=f;this.ob=[];this.dg=!0;this.Fd=new ca;this.Tg=!1}function g(b,a){return b.td-a.td}ea=function(b){window.console&&window.console.log&&window.console.log(b)};
fa=function(b){window.console&&window.console.error&&window.console.error(b)};aa=function(b){return b};ga=function(b){return"undefined"===typeof b};ia=function(b){return"number"===typeof b};A=function(b){return"string"===typeof b};ja=function(b){return 0<b&&0===(b-1&b)};ka=function(b){--b;for(var a=1;32>a;a<<=1)b=b|b>>a;return b+1};la=function(b){return 0>b?-b:b};ma=function(b,a){return b>a?b:a};oa=function(b,a){return b<a?b:a};pa=Math.PI;R=function(b){return 0<=b?b|0:(b|0)-1};ra=function(b){var a=
b|0;return a===b?a:a+1};ta=function(b,a,f,g,d,e,h,x){var z,m,t,u;b<f?(m=b,z=f):(m=f,z=b);d<h?(u=d,t=h):(u=h,t=d);if(z<u||m>t)return!1;a<g?(m=a,z=g):(m=g,z=a);e<x?(u=e,t=x):(u=x,t=e);if(z<u||m>t)return!1;z=d-b+h-f;m=e-a+x-g;b=f-b;a=g-a;d=h-d;e=x-e;x=la(a*d-e*b);return la(d*m-e*z)>x?!1:la(b*m-a*z)<=x};c.prototype.set=function(b,a,f,g){this.left=b;this.top=a;this.right=f;this.bottom=g};c.prototype.Of=function(b){this.left=b.left;this.top=b.top;this.right=b.right;this.bottom=b.bottom};c.prototype.width=
function(){return this.right-this.left};c.prototype.height=function(){return this.bottom-this.top};c.prototype.offset=function(b,a){this.left+=b;this.top+=a;this.right+=b;this.bottom+=a;return this};c.prototype.normalize=function(){var b=0;this.left>this.right&&(b=this.left,this.left=this.right,this.right=b);this.top>this.bottom&&(b=this.top,this.top=this.bottom,this.bottom=b)};c.prototype.xu=function(b){return!(b.right<this.left||b.bottom<this.top||b.left>this.right||b.top>this.bottom)};c.prototype.yu=
function(b,a,f){return!(b.right+a<this.left||b.bottom+f<this.top||b.left+a>this.right||b.top+f>this.bottom)};c.prototype.Lb=function(b,a){return b>=this.left&&b<=this.right&&a>=this.top&&a<=this.bottom};c.prototype.ah=function(b){return this.left===b.left&&this.top===b.top&&this.right===b.right&&this.bottom===b.bottom};ua=c;n.prototype.Fg=function(b){this.Ya=b.left;this.Za=b.top;this.Gb=b.right;this.Hb=b.top;this.tb=b.right;this.ub=b.bottom;this.rb=b.left;this.sb=b.bottom};n.prototype.Cq=function(b,
a){if(0===a)this.Fg(b);else{var f=Math.sin(a),g=Math.cos(a),d=b.left*f,e=b.top*f,h=b.right*f,f=b.bottom*f,x=b.left*g,z=b.top*g,m=b.right*g,g=b.bottom*g;this.Ya=x-e;this.Za=z+d;this.Gb=m-e;this.Hb=z+h;this.tb=m-f;this.ub=g+h;this.rb=x-f;this.sb=g+d}};n.prototype.offset=function(b,a){this.Ya+=b;this.Za+=a;this.Gb+=b;this.Hb+=a;this.tb+=b;this.ub+=a;this.rb+=b;this.sb+=a;return this};var t=0,v=0;n.prototype.Zn=function(b){k(this.Ya,this.Gb,this.tb,this.rb);b.left=t;b.right=v;k(this.Za,this.Hb,this.ub,
this.sb);b.top=t;b.bottom=v};n.prototype.Lb=function(b,a){var f=this.Ya,g=this.Za,d=this.Gb-f,e=this.Hb-g,h=this.tb-f,x=this.ub-g,z=b-f,m=a-g,t=d*d+e*e,u=d*h+e*x,e=d*z+e*m,c=h*h+x*x,v=h*z+x*m,l=1/(t*c-u*u),d=(c*e-u*v)*l,t=(t*v-u*e)*l;if(0<=d&&0<t&&1>d+t)return!0;d=this.rb-f;e=this.sb-g;t=d*d+e*e;u=d*h+e*x;e=d*z+e*m;l=1/(t*c-u*u);d=(c*e-u*v)*l;t=(t*v-u*e)*l;return 0<=d&&0<t&&1>d+t};n.prototype.xd=function(b,a){if(a)switch(b){case 0:return this.Ya;case 1:return this.Gb;case 2:return this.tb;case 3:return this.rb;
case 4:return this.Ya;default:return this.Ya}else switch(b){case 0:return this.Za;case 1:return this.Hb;case 2:return this.ub;case 3:return this.sb;case 4:return this.Za;default:return this.Za}};n.prototype.Bp=function(){return(this.Ya+this.Gb+this.tb+this.rb)/4};n.prototype.Cp=function(){return(this.Za+this.Hb+this.ub+this.sb)/4};n.prototype.Uo=function(b){var a=b.Bp(),f=b.Cp();if(this.Lb(a,f))return!0;a=this.Bp();f=this.Cp();if(b.Lb(a,f))return!0;var g,d,e,h,x,z,m,t;for(m=0;4>m;m++)for(t=0;4>t;t++)if(a=
this.xd(m,!0),f=this.xd(m,!1),g=this.xd(m+1,!0),d=this.xd(m+1,!1),e=b.xd(t,!0),h=b.xd(t,!1),x=b.xd(t+1,!0),z=b.xd(t+1,!1),ta(a,f,g,d,e,h,x,z))return!0;return!1};va=n;wa=function(b,a){for(var f in a)a.hasOwnProperty(f)&&(b[f]=a[f]);return b};xa=function(b,a){var f,g;a=R(a);if(!(0>a||a>=b.length)){f=a;for(g=b.length-1;f<g;f++)b[f]=b[f+1];ya(b,g)}};ya=function(b,a){b.length=a};W=function(b){ya(b,0)};za=function(b,a){W(b);var f,g;f=0;for(g=a.length;f<g;++f)b[f]=a[f]};Aa=function(b,a){b.push.apply(b,a)};
Da=function(b,a){var f,g;f=0;for(g=b.length;f<g;++f)if(b[f]===a)return f;return-1};Ea=function(b,a){var f=Da(b,a);-1!==f&&xa(b,f)};Fa=function(b,a,f){return b<a?a:b>f?f:b};Y=function(b){return b/(180/pa)};Ga=function(b){return 180/pa*b};Ha=function(b){b%=360;0>b&&(b+=360);return b};Ja=function(b){b%=2*pa;0>b&&(b+=2*pa);return b};Ka=function(b){return Ha(Ga(b))};La=function(b){return Ja(Y(b))};Ma=function(b,a,f,g){return Math.atan2(g-a,f-b)};Na=function(b,a){if(b===a)return 0;var f=Math.sin(b),g=Math.cos(b),
d=Math.sin(a),e=Math.cos(a),f=f*d+g*e;return 1<=f?0:-1>=f?pa:Math.acos(f)};Oa=function(b,a,f){var g=Math.sin(b),d=Math.cos(b),e=Math.sin(a),h=Math.cos(a);return Math.acos(g*e+d*h)>f?0<d*e-g*h?Ja(b+f):Ja(b-f):Ja(a)};Ua=function(b,a){var f=Math.sin(b),g=Math.cos(b),d=Math.sin(a),e=Math.cos(a);return 0>=g*d-f*e};Va=function(b,a,f,g,d,e){if(0===f)return e?b:a;var h=Math.sin(f);f=Math.cos(f);b-=g;a-=d;var x=b*h;b=b*f-a*h;a=a*f+x;return e?b+g:a+d};Wa=function(b,a,f,g){b=f-b;a=g-a;return Math.sqrt(b*b+a*
a)};Xa=function(b,a){return!b!==!a};Ya=function(b){for(var a in b)if(b.hasOwnProperty(a))return!0;return!1};Za=function(b){for(var a in b)b.hasOwnProperty(a)&&delete b[a]};var S=+new Date;$a=function(){if("undefined"!==typeof window.performance){var b=window.performance;if("undefined"!==typeof b.now)return b.now();if("undefined"!==typeof b.webkitNow)return b.webkitNow();if("undefined"!==typeof b.mozNow)return b.mozNow();if("undefined"!==typeof b.msNow)return b.msNow()}return Date.now()-S};var m=!1,
u=m=!1,E=!1;"undefined"!==typeof window&&(m=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),m=!m&&/safari/i.test(navigator.userAgent),u=/(iphone|ipod|ipad)/i.test(navigator.userAgent),E=window.c2ejecta);var C=!m&&!E&&!u&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;q.prototype.contains=function(b){return this.Wd()?!1:C?this.Id.has(b):this.items&&this.items.hasOwnProperty(b)};q.prototype.add=function(b){if(C)this.Id.has(b)||(this.Id.add(b),this.te=
!1);else{var a=b.toString(),f=this.items;f?f.hasOwnProperty(a)||(f[a]=b,this.Ch++,this.te=!1):(this.items={},this.items[a]=b,this.Ch=1,this.te=!1)}};q.prototype.remove=function(b){if(!this.Wd())if(C)this.Id.has(b)&&(this.Id["delete"](b),this.te=!1);else if(this.items){b=b.toString();var a=this.items;a.hasOwnProperty(b)&&(delete a[b],this.Ch--,this.te=!1)}};q.prototype.clear=function(){this.Wd()||(C?this.Id.clear():(this.items=null,this.Ch=0),W(this.Pg),this.te=!0)};q.prototype.Wd=function(){return 0===
this.count()};q.prototype.count=function(){return C?this.Id.size:this.Ch};var F=null,N=0;q.prototype.ew=function(){if(!this.te){if(C)W(this.Pg),F=this.Pg,N=0,this.Id.forEach(r),F=null,N=0;else{var b=this.Pg;W(b);var a,f=0,g=this.items;if(g)for(a in g)g.hasOwnProperty(a)&&(b[f++]=g[a])}this.te=!0}};q.prototype.sd=function(){this.ew();return this.Pg};ca=q;new ca;ab=function(b,a){C?bb(b,a.Id):cb(b,a.sd())};bb=function(b,a){var f,g,d,e;g=f=0;for(d=b.length;f<d;++f)e=b[f],a.has(e)||(b[g++]=e);ya(b,g)};
cb=function(b,a){var f,g,d,e;g=f=0;for(d=b.length;f<d;++f)e=b[f],-1===Da(a,e)&&(b[g++]=e);ya(b,g)};p.prototype.add=function(b){this.y=b-this.bl;this.yk=this.X+this.y;this.bl=this.yk-this.X-this.y;this.X=this.yk};p.prototype.reset=function(){this.X=this.yk=this.y=this.bl=0};db=p;eb=function(b){return b.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};l.prototype.hi=function(b){this.jq=b;this.ld=b.length/2;this.kb.length=b.length;this.Ji=this.Ki=-1;this.bo=0};l.prototype.$f=function(){return!this.jq.length};
l.prototype.za=function(){for(var b=this.kb,a=b[0],f=a,g=b[1],d=g,e,h,x=1,z=this.ld;x<z;++x)h=2*x,e=b[h],h=b[h+1],e<a&&(a=e),e>f&&(f=e),h<g&&(g=h),h>d&&(d=h);this.Ei=a;this.Fi=f;this.Gi=g;this.Di=d};l.prototype.Fg=function(b,a,f){this.kb.length=8;this.ld=4;var g=this.kb;g[0]=b.left-a;g[1]=b.top-f;g[2]=b.right-a;g[3]=b.top-f;g[4]=b.right-a;g[5]=b.bottom-f;g[6]=b.left-a;g[7]=b.bottom-f;this.Ki=b.right-b.left;this.Ji=b.bottom-b.top;this.za()};l.prototype.Eg=function(b,a,f,g,d){this.kb.length=8;this.ld=
4;var e=this.kb;e[0]=b.Ya-a;e[1]=b.Za-f;e[2]=b.Gb-a;e[3]=b.Hb-f;e[4]=b.tb-a;e[5]=b.ub-f;e[6]=b.rb-a;e[7]=b.sb-f;this.Ki=g;this.Ji=d;this.za()};l.prototype.Bq=function(b){this.ld=b.ld;za(this.kb,b.kb);this.Ei=b.Ei;this.Gi-b.Gi;this.Fi=b.Fi;this.Di=b.Di};l.prototype.Mf=function(b,a,f){if(this.Ki!==b||this.Ji!==a||this.bo!==f){this.Ki=b;this.Ji=a;this.bo=f;var g,d,e,h,x,z=0,m=1,t=this.jq,u=this.kb;0!==f&&(z=Math.sin(f),m=Math.cos(f));f=0;for(e=this.ld;f<e;f++)g=2*f,d=g+1,h=t[g]*b,x=t[d]*a,u[g]=h*m-x*
z,u[d]=x*m+h*z;this.za()}};l.prototype.Lb=function(b,a){var f=this.kb;if(b===f[0]&&a===f[1])return!0;var g,d,e,h=this.ld,x=this.Ei-110,z=this.Gi-101,m=this.Fi+131,t=this.Di+120,u,c,v=0,l=0;for(g=0;g<h;g++)d=2*g,e=(g+1)%h*2,u=f[d],d=f[d+1],c=f[e],e=f[e+1],ta(x,z,b,a,u,d,c,e)&&v++,ta(m,t,b,a,u,d,c,e)&&l++;return 1===v%2||1===l%2};l.prototype.ph=function(b,a,f){var g=b.kb,d=this.kb;if(this.Lb(g[0]+a,g[1]+f)||b.Lb(d[0]-a,d[1]-f))return!0;var e,h,x,z,m,t,u,c,v,l,p,S;e=0;for(z=this.ld;e<z;e++)for(h=2*e,
x=(e+1)%z*2,c=d[h],h=d[h+1],v=d[x],l=d[x+1],x=0,u=b.ld;x<u;x++)if(m=2*x,t=(x+1)%u*2,p=g[m]+a,m=g[m+1]+f,S=g[t]+a,t=g[t+1]+f,ta(c,h,v,l,p,m,S,t))return!0;return!1};fb=l;a.prototype.De=function(b,a,f){var g;g=this.cells[b];return g?(g=g[a])?g:f?(g=e(this,b,a),this.cells[b][a]=g):null:f?(g=e(this,b,a),this.cells[b]={},this.cells[b][a]=g):null};a.prototype.Xb=function(b){return R(b/this.fl)};a.prototype.Yb=function(b){return R(b/this.el)};a.prototype.update=function(b,a,f){var g,d,e,h,x;if(a)for(g=a.left,
d=a.right;g<=d;++g)for(e=a.top,h=a.bottom;e<=h;++e)if(!f||!f.Lb(g,e))if(x=this.De(g,e,!1))x.remove(b),x.Wd()&&(x.ob.clear(),1E3>T.length&&T.push(x),this.cells[g][e]=null);if(f)for(g=f.left,d=f.right;g<=d;++g)for(e=f.top,h=f.bottom;e<=h;++e)a&&a.Lb(g,e)||this.De(g,e,!0).Zl(b)};a.prototype.jk=function(b,a){var f,g,d,e,h,x;f=this.Xb(b.left);d=this.Yb(b.top);g=this.Xb(b.right);for(h=this.Yb(b.bottom);f<=g;++f)for(e=d;e<=h;++e)(x=this.De(f,e,!1))&&x.dump(a)};gb=a;d.prototype.De=function(b,a,g){var d;d=
this.cells[b];return d?(d=d[a])?d:g?(d=f(this,b,a),this.cells[b][a]=d):null:g?(d=f(this,b,a),this.cells[b]={},this.cells[b][a]=d):null};d.prototype.Xb=function(b){return R(b/this.fl)};d.prototype.Yb=function(b){return R(b/this.el)};d.prototype.update=function(b,a,f){var g,d,e,h,x;if(a)for(g=a.left,d=a.right;g<=d;++g)for(e=a.top,h=a.bottom;e<=h;++e)if(!f||!f.Lb(g,e))if(x=this.De(g,e,!1))x.remove(b),x.Wd()&&(x.reset(),1E3>D.length&&D.push(x),this.cells[g][e]=null);if(f)for(g=f.left,d=f.right;g<=d;++g)for(e=
f.top,h=f.bottom;e<=h;++e)a&&a.Lb(g,e)||this.De(g,e,!0).Zl(b)};d.prototype.jk=function(b,a,f,g,d){var e,h;b=this.Xb(b);a=this.Yb(a);f=this.Xb(f);for(e=this.Yb(g);b<=f;++b)for(g=a;g<=e;++g)(h=this.De(b,g,!1))&&h.dump(d)};d.prototype.Pu=function(b){var a,f,g,d,e;a=b.left;g=b.top;f=b.right;for(d=b.bottom;a<=f;++a)for(b=g;b<=d;++b)if(e=this.De(a,b,!1))e.dg=!1};hb=d;var T=[];b.prototype.Wd=function(){return this.ob.Wd()};b.prototype.Zl=function(b){this.ob.add(b)};b.prototype.remove=function(b){this.ob.remove(b)};
b.prototype.dump=function(b){Aa(b,this.ob.sd())};ba=b;var D=[];h.prototype.Wd=function(){if(!this.ob.length)return!0;if(this.ob.length>this.Fd.count())return!1;this.yl();return!0};h.prototype.Zl=function(b){this.Fd.contains(b)?(this.Fd.remove(b),this.Fd.Wd()&&(this.Tg=!1)):this.ob.length?(this.ob[this.ob.length-1].Mc()>b.Mc()&&(this.dg=!1),this.ob.push(b)):(this.ob.push(b),this.dg=!0)};h.prototype.remove=function(b){this.Fd.add(b);this.Tg=!0;30<=this.Fd.count()&&this.yl()};h.prototype.yl=function(){this.Tg&&
(this.Fd.count()===this.ob.length?this.reset():(ab(this.ob,this.Fd),this.Fd.clear(),this.Tg=!1))};h.prototype.$s=function(){this.dg||(this.ob.sort(g),this.dg=!0)};h.prototype.reset=function(){W(this.ob);this.dg=!0;this.Fd.clear();this.Tg=!1};h.prototype.dump=function(b){this.yl();this.$s();this.ob.length&&b.push(this.ob)};da=h;var w="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");jb=function(b){return 0>=b||11<=b?"source-over":
w[b-1]};kb=function(b,a,f){if(f)switch(b.Qb=f.ONE,b.Mb=f.ONE_MINUS_SRC_ALPHA,a){case 1:b.Qb=f.ONE;b.Mb=f.ONE;break;case 3:b.Qb=f.ONE;b.Mb=f.ZERO;break;case 4:b.Qb=f.ONE_MINUS_DST_ALPHA;b.Mb=f.ONE;break;case 5:b.Qb=f.DST_ALPHA;b.Mb=f.ZERO;break;case 6:b.Qb=f.ZERO;b.Mb=f.SRC_ALPHA;break;case 7:b.Qb=f.ONE_MINUS_DST_ALPHA;b.Mb=f.ZERO;break;case 8:b.Qb=f.ZERO;b.Mb=f.ONE_MINUS_SRC_ALPHA;break;case 9:b.Qb=f.DST_ALPHA;b.Mb=f.ONE_MINUS_SRC_ALPHA;break;case 10:b.Qb=f.ONE_MINUS_DST_ALPHA,b.Mb=f.SRC_ALPHA}};
lb=function(b){return Math.round(1E6*b)/1E6};mb=function(b,a){return"string"!==typeof b||"string"!==typeof a||b.length!==a.length?!1:b===a?!0:b.toLowerCase()===a.toLowerCase()};nb=function(b){b=b.target;return!b||b===document||b===window||document&&document.body&&b===document.body||mb(b.tagName,"canvas")?!0:!1}})();var fc="undefined"!==typeof Float32Array?Float32Array:Array;function gc(c){var n=new fc(3);c&&(n[0]=c[0],n[1]=c[1],n[2]=c[2]);return n}
function hc(c){var n=new fc(16);c&&(n[0]=c[0],n[1]=c[1],n[2]=c[2],n[3]=c[3],n[4]=c[4],n[5]=c[5],n[6]=c[6],n[7]=c[7],n[8]=c[8],n[9]=c[9],n[10]=c[10],n[11]=c[11],n[12]=c[12],n[13]=c[13],n[14]=c[14],n[15]=c[15]);return n}function ic(c,n){n[0]=c[0];n[1]=c[1];n[2]=c[2];n[3]=c[3];n[4]=c[4];n[5]=c[5];n[6]=c[6];n[7]=c[7];n[8]=c[8];n[9]=c[9];n[10]=c[10];n[11]=c[11];n[12]=c[12];n[13]=c[13];n[14]=c[14];n[15]=c[15]}
function jc(c,n){var k=n[0],q=n[1];n=n[2];c[0]*=k;c[1]*=k;c[2]*=k;c[3]*=k;c[4]*=q;c[5]*=q;c[6]*=q;c[7]*=q;c[8]*=n;c[9]*=n;c[10]*=n;c[11]*=n}
function kc(c,n,k,q){q||(q=hc());var r,p,l,a,d,e,b,f,h=c[0],g=c[1];c=c[2];p=k[0];l=k[1];r=k[2];k=n[1];e=n[2];h===n[0]&&g===k&&c===e?(c=q,c[0]=1,c[1]=0,c[2]=0,c[3]=0,c[4]=0,c[5]=1,c[6]=0,c[7]=0,c[8]=0,c[9]=0,c[10]=1,c[11]=0,c[12]=0,c[13]=0,c[14]=0,c[15]=1):(k=h-n[0],e=g-n[1],b=c-n[2],f=1/Math.sqrt(k*k+e*e+b*b),k*=f,e*=f,b*=f,n=l*b-r*e,r=r*k-p*b,p=p*e-l*k,(f=Math.sqrt(n*n+r*r+p*p))?(f=1/f,n*=f,r*=f,p*=f):p=r=n=0,l=e*p-b*r,a=b*n-k*p,d=k*r-e*n,(f=Math.sqrt(l*l+a*a+d*d))?(f=1/f,l*=f,a*=f,d*=f):d=a=l=0,
q[0]=n,q[1]=l,q[2]=k,q[3]=0,q[4]=r,q[5]=a,q[6]=e,q[7]=0,q[8]=p,q[9]=d,q[10]=b,q[11]=0,q[12]=-(n*h+r*g+p*c),q[13]=-(l*h+a*g+d*c),q[14]=-(k*h+e*g+b*c),q[15]=1)}
(function(){function c(a,d,e){this.Ge=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.ua=!!e;this.xj=this.qh=!1;this.ll=0;this.Qk=1;this.Fn=1E3;this.jw=(this.Fn-this.Qk)/32768;this.cl=gc([0,0,100]);this.lp=gc([0,0,0]);this.Vq=gc([0,1,0]);this.si=gc([1,1,1]);this.ro=!0;this.Pj=hc();this.Cc=hc();this.lm=hc();this.kl=hc();this.A=a;this.version=0===this.A.getParameter(this.A.VERSION).indexOf("WebGL 2")?2:1;this.Qo()}function n(a,d,e){this.A=a;this.ii=
d;this.name=e;this.Qc=a.getAttribLocation(d,"aPos");this.Ke=a.getAttribLocation(d,"aTex");this.jp=a.getUniformLocation(d,"matP");this.Kj=a.getUniformLocation(d,"matMV");this.jg=a.getUniformLocation(d,"opacity");this.qm=a.getUniformLocation(d,"colorFill");this.kp=a.getUniformLocation(d,"samplerFront");this.Nh=a.getUniformLocation(d,"samplerBack");this.xf=a.getUniformLocation(d,"destStart");this.wf=a.getUniformLocation(d,"destEnd");this.Ph=a.getUniformLocation(d,"seconds");this.tm=a.getUniformLocation(d,
"pixelWidth");this.rm=a.getUniformLocation(d,"pixelHeight");this.Mh=a.getUniformLocation(d,"layerScale");this.Lh=a.getUniformLocation(d,"layerAngle");this.Qh=a.getUniformLocation(d,"viewOrigin");this.Oh=a.getUniformLocation(d,"scrollPos");this.su=!!(this.tm||this.rm||this.Ph||this.Nh||this.xf||this.wf||this.Mh||this.Lh||this.Qh||this.Oh);this.tp=this.up=-999;this.Oj=1;this.pp=this.op=0;this.rp=this.np=this.mp=1;this.xp=this.wp=this.vp=this.zp=this.yp=this.qp=0;this.km=[];this.sp=hc();this.jg&&a.uniform1f(this.jg,
1);this.qm&&a.uniform4f(this.qm,1,1,1,1);this.kp&&a.uniform1i(this.kp,0);this.Nh&&a.uniform1i(this.Nh,1);this.xf&&a.uniform2f(this.xf,0,0);this.wf&&a.uniform2f(this.wf,1,1);this.Mh&&a.uniform1f(this.Mh,1);this.Lh&&a.uniform1f(this.Lh,0);this.Qh&&a.uniform2f(this.Qh,0,0);this.Oh&&a.uniform2f(this.Oh,0,0);this.Ph&&a.uniform1f(this.Ph,0);this.mf=!1}function k(a,d){return a[0]===d[0]&&a[1]===d[1]&&a[2]===d[2]&&a[3]===d[3]&&a[4]===d[4]&&a[5]===d[5]&&a[6]===d[6]&&a[7]===d[7]&&a[8]===d[8]&&a[9]===d[9]&&
a[10]===d[10]&&a[11]===d[11]&&a[12]===d[12]&&a[13]===d[13]&&a[14]===d[14]&&a[15]===d[15]}function q(a,d){this.type=a;this.u=d;this.A=d.A;this.Nc=this.Rb=this.Vp=0;this.O=this.Vc=null;this.Dq=[]}var r=hc();c.prototype.Qo=function(){var a=this.A,d;this.ep=1;this.sf=this.rf=null;this.Ui=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.STENCIL_TEST);a.disable(a.DITHER);this.ua?(a.enable(a.DEPTH_TEST),a.depthFunc(a.LEQUAL)):
a.disable(a.DEPTH_TEST);this.fp=a.ONE;this.dp=a.ONE_MINUS_SRC_ALPHA;this.Mk=new Float32Array(8E3*(this.ua?3:2));this.zk=new Float32Array(16E3);this.Om=new Float32Array(32E3);this.Nm=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.Nm);a.bufferData(a.ARRAY_BUFFER,this.Om.byteLength,a.DYNAMIC_DRAW);this.ri=Array(4);this.ni=Array(4);for(d=0;4>d;d++)this.ri[d]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.ri[d]),a.bufferData(a.ARRAY_BUFFER,this.Mk.byteLength,a.DYNAMIC_DRAW),this.ni[d]=a.createBuffer(),
a.bindBuffer(a.ARRAY_BUFFER,this.ni[d]),a.bufferData(a.ARRAY_BUFFER,this.zk.byteLength,a.DYNAMIC_DRAW);this.Pd=0;this.vu=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.vu);for(var e=new Uint16Array(12E3),b=d=0;12E3>d;)e[d++]=b,e[d++]=b+1,e[d++]=b+2,e[d++]=b,e[d++]=b+2,e[d++]=b+3,b+=4;a.bufferData(a.ELEMENT_ARRAY_BUFFER,e,a.STATIC_DRAW);this.xg=this.Jg=this.je=0;this.La=[];d=this.ua?"attribute highp vec3 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, aPos.z, 1.0);\n\tvTex = aTex;\n}":
"attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}";e=this.Yg({src:"varying mediump vec2 vTex;\nuniform lowp float opacity;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, vTex);\n\tgl_FragColor *= opacity;\n}"},d,"<default>");this.La.push(e);e=this.Yg({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.La.push(e);e=this.Yg({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},d,"<earlyz>");this.La.push(e);e=this.Yg({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"},
d,"<fill>");this.La.push(e);for(var f in lc)lc.hasOwnProperty(f)&&this.La.push(this.Yg(lc[f],d,f));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,null);this.Od=[];this.yd=0;this.Nb=this.Ab=!1;this.lo=this.Fh=-1;this.Qf=null;this.wl=a.createFramebuffer();this.Yi=this.lk=null;this.Xn=!1;this.ua&&(this.Yi=a.createRenderbuffer());this.Se=gc([0,0,0]);a=a.getParameter(a.ALIASED_POINT_SIZE_RANGE);this.Ru=a[0];this.xm=a[1];2048<this.xm&&(this.xm=2048);this.kc(0)};n.prototype.wn=function(a){k(this.sp,
a)||(ic(a,this.sp),this.A.uniformMatrix4fv(this.Kj,!1,a))};c.prototype.Yg=function(a,d,e){var b=this.A,f=b.createShader(b.FRAGMENT_SHADER);b.shaderSource(f,a.src);b.compileShader(f);if(!b.getShaderParameter(f,b.COMPILE_STATUS))throw a=b.getShaderInfoLog(f),b.deleteShader(f),Error("error compiling fragment shader: "+a);var h=b.createShader(b.VERTEX_SHADER);b.shaderSource(h,d);b.compileShader(h);if(!b.getShaderParameter(h,b.COMPILE_STATUS))throw a=b.getShaderInfoLog(h),b.deleteShader(f),b.deleteShader(h),
Error("error compiling vertex shader: "+a);d=b.createProgram();b.attachShader(d,f);b.attachShader(d,h);b.linkProgram(d);if(!b.getProgramParameter(d,b.LINK_STATUS))throw a=b.getProgramInfoLog(d),b.deleteShader(f),b.deleteShader(h),b.deleteProgram(d),Error("error linking shader program: "+a);b.useProgram(d);b.deleteShader(f);b.deleteShader(h);f=new n(b,d,e);f.tl=a.tl||0;f.ul=a.ul||0;f.ko=!!a.ko;f.jd=!!a.jd;f.Vn=!!a.Vn;f.P=a.P||[];a=0;for(h=f.P.length;a<h;a++)f.P[a][1]=b.getUniformLocation(d,f.P[a][0]),
f.km.push(0),b.uniform1f(f.P[a][1],0);return f};c.prototype.Ml=function(a){var d,e;d=0;for(e=this.La.length;d<e;d++)if(this.La[d].name===a)return d;return-1};c.prototype.iq=function(a,d,e){var b=this.Cc,f=this.Pj,h=[0,0,0,0,0,0,0,0];h[0]=b[0]*a+b[4]*d+b[12];h[1]=b[1]*a+b[5]*d+b[13];h[2]=b[2]*a+b[6]*d+b[14];h[3]=b[3]*a+b[7]*d+b[15];h[4]=f[0]*h[0]+f[4]*h[1]+f[8]*h[2]+f[12]*h[3];h[5]=f[1]*h[0]+f[5]*h[1]+f[9]*h[2]+f[13]*h[3];h[6]=f[2]*h[0]+f[6]*h[1]+f[10]*h[2]+f[14]*h[3];h[7]=-h[2];0!==h[7]&&(h[7]=1/
h[7],h[4]*=h[7],h[5]*=h[7],h[6]*=h[7],e[0]=(.5*h[4]+.5)*this.width,e[1]=(.5*h[5]+.5)*this.height)};c.prototype.ee=function(a,d,e){if(this.width!==a||this.height!==d||e){this.Be();e=this.A;this.width=a;this.height=d;e.viewport(0,0,a,d);kc(this.cl,this.lp,this.Vq,this.Cc);if(this.ua){var b=-a/2;a=a/2;var f=d/2;d=-d/2;var h=this.Qk,g=this.Fn,t=this.Pj;t||(t=hc());var c=a-b,l=d-f,m=g-h;t[0]=2/c;t[1]=0;t[2]=0;t[3]=0;t[4]=0;t[5]=2/l;t[6]=0;t[7]=0;t[8]=0;t[9]=0;t[10]=-2/m;t[11]=0;t[12]=-(b+a)/c;t[13]=-(d+
f)/l;t[14]=-(g+h)/m;t[15]=1;this.si[0]=1;this.si[1]=1}else d=a/d,b=this.Qk,a=this.Fn,t=this.Pj,g=b*Math.tan(45*Math.PI/360),d*=g,f=-d,h=-g,t||(t=hc()),c=d-f,l=g-h,m=a-b,t[0]=2*b/c,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*b/l,t[6]=0,t[7]=0,t[8]=(d+f)/c,t[9]=(g+h)/l,t[10]=-(a+b)/m,t[11]=-1,t[12]=0,t[13]=0,t[14]=-(a*b*2)/m,t[15]=0,b=[0,0],a=[0,0],this.iq(0,0,b),this.iq(1,1,a),this.si[0]=1/(a[0]-b[0]),this.si[1]=-1/(a[1]-b[1]);b=0;for(a=this.La.length;b<a;b++)f=this.La[b],f.mf=!1,f.jp&&(e.useProgram(f.ii),
e.uniformMatrix4fv(f.jp,!1,this.Pj));e.useProgram(this.La[this.Fh].ii);e.bindTexture(e.TEXTURE_2D,null);e.activeTexture(e.TEXTURE1);e.bindTexture(e.TEXTURE_2D,null);e.activeTexture(e.TEXTURE0);this.sf=this.rf=null;this.Yi&&(e.bindFramebuffer(e.FRAMEBUFFER,this.wl),e.bindRenderbuffer(e.RENDERBUFFER,this.Yi),e.renderbufferStorage(e.RENDERBUFFER,e.DEPTH_COMPONENT16,this.width,this.height),this.Xn||(e.framebufferRenderbuffer(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.RENDERBUFFER,this.Yi),this.Xn=!0),e.bindRenderbuffer(e.RENDERBUFFER,
null),e.bindFramebuffer(e.FRAMEBUFFER,null),this.lk=null)}};c.prototype.Hd=function(){kc(this.cl,this.lp,this.Vq,this.Cc);jc(this.Cc,this.si)};c.prototype.translate=function(a,d){if(0!==a||0!==d){this.Se[0]=a;this.Se[1]=d;this.Se[2]=0;var e=this.Cc,b=this.Se,f=b[0],h=b[1],b=b[2];e[12]=e[0]*f+e[4]*h+e[8]*b+e[12];e[13]=e[1]*f+e[5]*h+e[9]*b+e[13];e[14]=e[2]*f+e[6]*h+e[10]*b+e[14];e[15]=e[3]*f+e[7]*h+e[11]*b+e[15]}};c.prototype.scale=function(a,d){if(1!==a||1!==d)this.Se[0]=a,this.Se[1]=d,this.Se[2]=
1,jc(this.Cc,this.Se)};c.prototype.Ym=function(a){if(0!==a){var d=this.Cc,e,b=Math.sin(a);a=Math.cos(a);var f=d[0],h=d[1],g=d[2],t=d[3],c=d[4],l=d[5],m=d[6],u=d[7];e?d!==e&&(e[8]=d[8],e[9]=d[9],e[10]=d[10],e[11]=d[11],e[12]=d[12],e[13]=d[13],e[14]=d[14],e[15]=d[15]):e=d;e[0]=f*a+c*b;e[1]=h*a+l*b;e[2]=g*a+m*b;e[3]=t*a+u*b;e[4]=f*-b+c*a;e[5]=h*-b+l*a;e[6]=g*-b+m*a;e[7]=t*-b+u*a}};c.prototype.rd=function(){if(!k(this.lm,this.Cc)){var a=this.gc();a.type=5;a.O?ic(this.Cc,a.O):a.O=hc(this.Cc);ic(this.Cc,
this.lm);this.Nb=this.Ab=!1}};c.prototype.qk=function(a){this.ua&&(32760<a&&(a=32760),this.ll=this.cl[2]-this.Qk-a*this.jw)};q.prototype.Ks=function(){var a=this.A,d=this.u;0!==this.Rb?(a.depthMask(!0),a.colorMask(!1,!1,!1,!1),a.disable(a.BLEND),a.bindFramebuffer(a.FRAMEBUFFER,d.wl),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.clear(a.DEPTH_BUFFER_BIT),a.bindFramebuffer(a.FRAMEBUFFER,null),d.xj=!0):(a.depthMask(!1),a.colorMask(!0,!0,!0,!0),a.enable(a.BLEND),d.xj=
!1)};q.prototype.Os=function(){this.A.bindTexture(this.A.TEXTURE_2D,this.Vc)};q.prototype.Ps=function(){var a=this.A;a.activeTexture(a.TEXTURE1);a.bindTexture(a.TEXTURE_2D,this.Vc);a.activeTexture(a.TEXTURE0)};q.prototype.Ls=function(){var a=this.Vp,d=this.u;d.Ui=a;d=d.Qf;d.jg&&d.Oj!==a&&(d.Oj=a,this.A.uniform1f(d.jg,a))};q.prototype.Fs=function(){this.A.drawElements(this.A.TRIANGLES,this.Nc,this.A.UNSIGNED_SHORT,this.Rb)};q.prototype.Hs=function(){this.A.blendFunc(this.Rb,this.Nc)};q.prototype.Qs=
function(){var a,d,e,b=this.u.La,f=this.u.lo;a=0;for(d=b.length;a<d;a++)e=b[a],a===f&&e.Kj?(e.wn(this.O),e.mf=!0):e.mf=!1;ic(this.O,this.u.kl)};q.prototype.Gs=function(){var a=this.A,d=this.u;this.Vc?(d.sf===this.Vc&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,null),d.sf=null,a.activeTexture(a.TEXTURE0)),a.bindFramebuffer(a.FRAMEBUFFER,d.wl),d.xj||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,this.Vc,0)):(d.ua||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,
a.TEXTURE_2D,null,0),a.bindFramebuffer(a.FRAMEBUFFER,null))};q.prototype.Cs=function(){var a=this.A,d=this.Rb;0===d?(a.clearColor(this.O[0],this.O[1],this.O[2],this.O[3]),a.clear(a.COLOR_BUFFER_BIT)):1===d?(a.enable(a.SCISSOR_TEST),a.scissor(this.O[0],this.O[1],this.O[2],this.O[3]),a.clearColor(0,0,0,0),a.clear(a.COLOR_BUFFER_BIT),a.disable(a.SCISSOR_TEST)):a.clear(a.DEPTH_BUFFER_BIT)};q.prototype.Js=function(){var a=this.A;0!==this.Rb?a.enable(a.DEPTH_TEST):a.disable(a.DEPTH_TEST)};q.prototype.Es=
function(){var a=this.A,d=this.u;d.ua&&a.disable(a.DEPTH_TEST);var e=d.La[1];a.useProgram(e.ii);!e.mf&&e.Kj&&(e.wn(d.kl),e.mf=!0);a.enableVertexAttribArray(e.Qc);a.bindBuffer(a.ARRAY_BUFFER,d.Nm);a.vertexAttribPointer(e.Qc,4,a.FLOAT,!1,0,0);a.drawArrays(a.POINTS,this.Rb/4,this.Nc);e=d.Qf;a.useProgram(e.ii);0<=e.Qc&&(a.enableVertexAttribArray(e.Qc),a.bindBuffer(a.ARRAY_BUFFER,d.ri[d.Pd]),a.vertexAttribPointer(e.Qc,d.ua?3:2,a.FLOAT,!1,0,0));0<=e.Ke&&(a.enableVertexAttribArray(e.Ke),a.bindBuffer(a.ARRAY_BUFFER,
d.ni[d.Pd]),a.vertexAttribPointer(e.Ke,2,a.FLOAT,!1,0,0));d.ua&&a.enable(a.DEPTH_TEST)};q.prototype.Ms=function(){var a=this.A,d=this.u,e=d.La[this.Rb];d.lo=this.Rb;d.Qf=e;a.useProgram(e.ii);!e.mf&&e.Kj&&(e.wn(d.kl),e.mf=!0);e.jg&&e.Oj!==d.Ui&&(e.Oj=d.Ui,a.uniform1f(e.jg,d.Ui));0<=e.Qc&&(a.enableVertexAttribArray(e.Qc),a.bindBuffer(a.ARRAY_BUFFER,d.ri[d.Pd]),a.vertexAttribPointer(e.Qc,d.ua?3:2,a.FLOAT,!1,0,0));0<=e.Ke&&(a.enableVertexAttribArray(e.Ke),a.bindBuffer(a.ARRAY_BUFFER,d.ni[d.Pd]),a.vertexAttribPointer(e.Ke,
2,a.FLOAT,!1,0,0))};q.prototype.Is=function(){var a=this.O;this.A.uniform4f(this.u.Qf.qm,a[0],a[1],a[2],a[3])};q.prototype.Ns=function(){var a,d,e=this.u.Qf,b=this.A;a=this.O;e.Nh&&this.u.sf!==this.Vc&&(b.activeTexture(b.TEXTURE1),b.bindTexture(b.TEXTURE_2D,this.Vc),this.u.sf=this.Vc,b.activeTexture(b.TEXTURE0));var f=a[0];e.tm&&f!==e.up&&(e.up=f,b.uniform1f(e.tm,f));f=a[1];e.rm&&f!==e.tp&&(e.tp=f,b.uniform1f(e.rm,f));f=a[2];d=a[3];!e.xf||f===e.op&&d===e.pp||(e.op=f,e.pp=d,b.uniform2f(e.xf,f,d));
f=a[4];d=a[5];!e.wf||f===e.mp&&d===e.np||(e.mp=f,e.np=d,b.uniform2f(e.wf,f,d));f=a[6];e.Mh&&f!==e.rp&&(e.rp=f,b.uniform1f(e.Mh,f));f=a[7];e.Lh&&f!==e.qp&&(e.qp=f,b.uniform1f(e.Lh,f));f=a[8];d=a[9];!e.Qh||f===e.yp&&d===e.zp||(e.yp=f,e.zp=d,b.uniform2f(e.Qh,f,d));f=a[10];d=a[11];!e.Oh||f===e.vp&&d===e.wp||(e.vp=f,e.wp=d,b.uniform2f(e.Oh,f,d));f=a[12];e.Ph&&f!==e.xp&&(e.xp=f,b.uniform1f(e.Ph,f));if(e.P.length)for(a=0,d=e.P.length;a<d;a++)f=this.Dq[a],f!==e.km[a]&&(e.km[a]=f,b.uniform1f(e.P[a][1],f))};
c.prototype.gc=function(){this.yd===this.Od.length&&this.Od.push(new q(0,this));return this.Od[this.yd++]};c.prototype.Be=function(){if(0!==this.yd&&!this.A.isContextLost()){var a=this.A;0<this.xg&&(a.bindBuffer(a.ARRAY_BUFFER,this.Nm),a.bufferSubData(a.ARRAY_BUFFER,0,this.Om.subarray(0,this.xg)),d&&0<=d.Qc&&"<point>"===d.name&&a.vertexAttribPointer(d.Qc,4,a.FLOAT,!1,0,0));if(0<this.je){var d=this.Qf;a.bindBuffer(a.ARRAY_BUFFER,this.ri[this.Pd]);a.bufferSubData(a.ARRAY_BUFFER,0,this.Mk.subarray(0,
this.je));d&&0<=d.Qc&&"<point>"!==d.name&&a.vertexAttribPointer(d.Qc,this.ua?3:2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.ni[this.Pd]);a.bufferSubData(a.ARRAY_BUFFER,0,this.zk.subarray(0,this.Jg));d&&0<=d.Ke&&"<point>"!==d.name&&a.vertexAttribPointer(d.Ke,2,a.FLOAT,!1,0,0)}for(var e,a=0,d=this.yd;a<d;a++)switch(e=this.Od[a],e.type){case 1:e.Fs();break;case 2:e.Os();break;case 3:e.Ls();break;case 4:e.Hs();break;case 5:e.Qs();break;case 6:e.Gs();break;case 7:e.Cs();break;case 8:e.Es();break;
case 9:e.Ms();break;case 10:e.Ns();break;case 11:e.Ps();break;case 12:e.Is();break;case 13:e.Js();break;case 14:e.Ks()}this.xg=this.Jg=this.je=this.yd=0;this.xj=this.Nb=this.Ab=!1;this.Pd++;4<=this.Pd&&(this.Pd=0)}};c.prototype.Cf=function(a){if(a!==this.ep&&!this.qh){var d=this.gc();d.type=3;this.ep=d.Vp=a;this.Nb=this.Ab=!1}};c.prototype.vc=function(a){if(a!==this.rf){var d=this.gc();d.type=2;this.rf=d.Vc=a;this.Nb=this.Ab=!1}};c.prototype.Qe=function(a,d){if((a!==this.fp||d!==this.dp)&&!this.qh){var e=
this.gc();e.type=4;e.Rb=a;e.Nc=d;this.fp=a;this.dp=d;this.Nb=this.Ab=!1}};c.prototype.sq=function(){this.Qe(this.A.ONE,this.A.ONE_MINUS_SRC_ALPHA)};c.prototype.zg=function(a,d,e,b,f,h,g,t){15992<=this.je&&this.Be();var c=this.je,l=this.Jg,m=this.Mk,u=this.zk,p=this.ll;if(this.Ab)this.Od[this.yd-1].Nc+=6;else{var n=this.gc();n.type=1;n.Rb=this.ua?c:c/2*3;n.Nc=6;this.Ab=!0;this.Nb=!1}this.ua?(m[c++]=a,m[c++]=d,m[c++]=p,m[c++]=e,m[c++]=b,m[c++]=p,m[c++]=f,m[c++]=h,m[c++]=p,m[c++]=g,m[c++]=t,m[c++]=p):
(m[c++]=a,m[c++]=d,m[c++]=e,m[c++]=b,m[c++]=f,m[c++]=h,m[c++]=g,m[c++]=t);u[l++]=0;u[l++]=0;u[l++]=1;u[l++]=0;u[l++]=1;u[l++]=1;u[l++]=0;u[l++]=1;this.je=c;this.Jg=l};c.prototype.Pe=function(a,d,e,b,f,h,g,t,c){15992<=this.je&&this.Be();var l=this.je,m=this.Jg,u=this.Mk,p=this.zk,n=this.ll;if(this.Ab)this.Od[this.yd-1].Nc+=6;else{var k=this.gc();k.type=1;k.Rb=this.ua?l:l/2*3;k.Nc=6;this.Ab=!0;this.Nb=!1}var k=c.left,r=c.top,q=c.right;c=c.bottom;this.ua?(u[l++]=a,u[l++]=d,u[l++]=n,u[l++]=e,u[l++]=b,
u[l++]=n,u[l++]=f,u[l++]=h,u[l++]=n,u[l++]=g,u[l++]=t,u[l++]=n):(u[l++]=a,u[l++]=d,u[l++]=e,u[l++]=b,u[l++]=f,u[l++]=h,u[l++]=g,u[l++]=t);p[m++]=k;p[m++]=r;p[m++]=q;p[m++]=r;p[m++]=q;p[m++]=c;p[m++]=k;p[m++]=c;this.je=l;this.Jg=m};c.prototype.kv=function(a,d,e,b){7996<=this.xg&&this.Be();var f=this.xg,h=this.Om;if(this.Nb)this.Od[this.yd-1].Nc++;else{var g=this.gc();g.type=8;g.Rb=f;g.Nc=1;this.Nb=!0;this.Ab=!1}h[f++]=a;h[f++]=d;h[f++]=e;h[f++]=b;this.xg=f};c.prototype.kc=function(a){if(this.Fh!==
a){if(!this.La[a]){if(0===this.Fh)return;a=0}var d=this.gc();d.type=9;this.Fh=d.Rb=a;this.Nb=this.Ab=!1}};c.prototype.Zh=function(a){a=this.La[a];return!(!a.xf&&!a.wf)};c.prototype.Rm=function(a){a=this.La[a];return!!(a.xf||a.wf||a.ko)};c.prototype.Qm=function(a){return this.La[a].jd};c.prototype.uv=function(a){a=this.La[a];return 0!==a.tl||0!==a.ul};c.prototype.au=function(a){return this.La[a].tl};c.prototype.bu=function(a){return this.La[a].ul};c.prototype.cu=function(a,d){return this.La[a].P[d][2]};
c.prototype.hk=function(a){return this.La[a].Vn};c.prototype.Cg=function(a,d,e,b,f,h,g,t,c,l,m,u,p,n,k){var r=this.La[this.Fh],q,D;if(r.su||k.length){q=this.gc();q.type=10;q.O?ic(this.Cc,q.O):q.O=hc();D=q.O;D[0]=d;D[1]=e;D[2]=b;D[3]=f;D[4]=h;D[5]=g;D[6]=t;D[7]=c;D[8]=l;D[9]=m;D[10]=u;D[11]=p;D[12]=n;r.Nh?q.Vc=a:q.Vc=null;if(k.length)for(e=q.Dq,e.length=k.length,a=0,d=k.length;a<d;a++)e[a]=k[a];this.Nb=this.Ab=!1}};c.prototype.clear=function(a,d,e,b){var f=this.gc();f.type=7;f.Rb=0;f.O||(f.O=hc());
f.O[0]=a;f.O[1]=d;f.O[2]=e;f.O[3]=b;this.Nb=this.Ab=!1};c.prototype.clearRect=function(a,d,e,b){if(!(0>e||0>b)){var f=this.gc();f.type=7;f.Rb=1;f.O||(f.O=hc());f.O[0]=a;f.O[1]=d;f.O[2]=e;f.O[3]=b;this.Nb=this.Ab=!1}};c.prototype.vq=function(a){if(this.ua&&(a=!!a,this.qh!==a)){var d=this.gc();d.type=14;d.Rb=a?1:0;this.Nb=this.Ab=!1;this.qh=a;this.lk=null;this.qh?this.kc(2):this.kc(0)}};c.prototype.uq=function(a){if(this.ua){var d=this.gc();d.type=13;d.Rb=a?1:0;this.Nb=this.Ab=!1}};c.prototype.Do=function(){ic(this.lm,
r);this.Hd();this.rd();var a=this.width/2,d=this.height/2;this.zg(-a,d,a,d,a,-d,-a,-d);ic(r,this.Cc);this.rd()};c.prototype.tq=function(a,d,e){this.kc(3);var b=this.gc();b.type=12;b.O||(b.O=hc());b.O[0]=a;b.O[1]=d;b.O[2]=e;b.O[3]=1;this.Nb=this.Ab=!1};c.prototype.Rv=function(){this.kc(0)};c.prototype.Dv=function(){this.kc(2)};c.prototype.tv=function(){this.Be();this.A.flush()};var p=[],l={};c.prototype.vs=function(){W(p);l={}};c.prototype.ig=function(a,d,e,b){d=!!d;e=!!e;var f=a.src+","+d+","+e+(d?
",undefined":""),h=null;if("undefined"!==typeof a.src&&l.hasOwnProperty(f))return h=l[f],h.Ii++,h;this.Be();var g=this.A,t=ja(a.width)&&ja(a.height),h=g.createTexture();g.bindTexture(g.TEXTURE_2D,h);g.pixelStorei(g.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var c=g.RGBA,n=g.RGBA,m=g.UNSIGNED_BYTE;if(b&&!this.Ge)switch(b){case 1:n=c=g.RGB;break;case 2:m=g.UNSIGNED_SHORT_4_4_4_4;break;case 3:m=g.UNSIGNED_SHORT_5_5_5_1;break;case 4:n=c=g.RGB,m=g.UNSIGNED_SHORT_5_6_5}if(1===this.version&&!t&&d){b=document.createElement("canvas");
b.width=ka(a.width);b.height=ka(a.height);var u=b.getContext("2d");"undefined"!==typeof u.imageSmoothingEnabled?u.imageSmoothingEnabled=e:(u.webkitImageSmoothingEnabled=e,u.mozImageSmoothingEnabled=e,u.msImageSmoothingEnabled=e);u.drawImage(a,0,0,a.width,a.height,0,0,b.width,b.height);g.texImage2D(g.TEXTURE_2D,0,c,n,m,b)}else g.texImage2D(g.TEXTURE_2D,0,c,n,m,a);d?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_S,g.REPEAT),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,g.REPEAT)):(g.texParameteri(g.TEXTURE_2D,
g.TEXTURE_WRAP_S,g.CLAMP_TO_EDGE),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,g.CLAMP_TO_EDGE));e?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,g.LINEAR),(t||2<=this.version)&&this.ro?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,g.LINEAR_MIPMAP_LINEAR),g.generateMipmap(g.TEXTURE_2D)):g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,g.LINEAR)):(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,g.NEAREST),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,g.NEAREST));g.bindTexture(g.TEXTURE_2D,
null);this.rf=null;h.Xe=a.width;h.We=a.height;h.Ii=1;h.ao=f;p.push(h);return l[f]=h};c.prototype.Hc=function(a,d,e){var b;this.Be();var f=this.A;this.Ge&&(b=!1);var h=f.createTexture();f.bindTexture(f.TEXTURE_2D,h);f.texImage2D(f.TEXTURE_2D,0,f.RGBA,a,d,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,e?f.LINEAR:f.NEAREST);
f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,e?f.LINEAR:f.NEAREST);f.bindTexture(f.TEXTURE_2D,null);this.rf=null;h.Xe=a;h.We=d;p.push(h);return h};c.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.Ii&&1<a.Ii?a.Ii--:(this.Be(),a===this.rf&&(this.A.bindTexture(this.A.TEXTURE_2D,null),this.rf=null),a===this.sf&&(this.A.activeTexture(this.A.TEXTURE1),this.A.bindTexture(this.A.TEXTURE_2D,null),this.A.activeTexture(this.A.TEXTURE0),this.sf=null),Ea(p,a),"undefined"!==typeof a.ao&&delete l[a.ao],
this.A.deleteTexture(a)))};c.prototype.Tc=function(a){if(a!==this.lk){var d=this.gc();d.type=6;this.lk=d.Vc=a;this.Nb=this.Ab=!1}};ob=c})();
(function(){function c(b){if(b&&(b.getContext||b.dc)&&!b.c2runtime){b.c2runtime=this;var a=this;this.Vd=(this.yj=/crosswalk/i.test(navigator.userAgent)||/xwalk/i.test(navigator.userAgent)||!("undefined"===typeof window.c2isCrosswalk||!window.c2isCrosswalk))||"undefined"!==typeof window.device&&("undefined"!==typeof window.device.cordova||"undefined"!==typeof window.device.phonegap)||"undefined"!==typeof window.c2iscordova&&window.c2iscordova;this.Ub=!!b.dc;this.Wo="undefined"!==typeof window.AppMobi||
this.Ub;this.Oc=!!window.c2cocoonjs;this.ed=!!window.c2ejecta;this.Oc&&(CocoonJS.App.onSuspended.addEventListener(function(){a.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){a.setSuspended(!1)}));this.ed&&(document.addEventListener("pagehide",function(){a.setSuspended(!0)}),document.addEventListener("pageshow",function(){a.setSuspended(!1)}),document.addEventListener("resize",function(){a.setSize(window.innerWidth,window.innerHeight)}));this.fb=this.Ub||this.Oc||this.ed;this.sh=
/edge\//i.test(navigator.userAgent);this.Ge=(/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent))&&!this.sh;this.Yo=/tizen/i.test(navigator.userAgent);this.vj=/android/i.test(navigator.userAgent)&&!this.Yo&&!this.Ge&&!this.sh;this.cp=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&!this.Ge&&!this.sh;this.Ku=/ipad/i.test(navigator.userAgent);this.Ah=this.cp||this.Ku||this.ed;this.am=(/chrome/i.test(navigator.userAgent)||
/chromium/i.test(navigator.userAgent))&&!this.Ge&&!this.sh;this.Vo=/amazonwebappplatform/i.test(navigator.userAgent);this.Cu=/firefox/i.test(navigator.userAgent);this.Gu=/safari/i.test(navigator.userAgent)&&!this.am&&!this.Ge&&!this.sh;this.Iu=/windows/i.test(navigator.userAgent);this.zj="undefined"!==typeof window.c2nodewebkit||"undefined"!==typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.$o=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);
this.Ju=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.xh=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.im=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.Zo=!!window.cr_windows10;this.Hu=this.$o||this.Ju||this.im||this.Zo;this.Au=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.wj=this.vj&&!this.am&&!this.yj&&!this.Cu&&!this.Vo&&!this.fb;this.devicePixelRatio=
1;this.Yf=this.Vd||this.yj||this.Wo||this.Oc||this.vj||this.Ah||this.xh||this.im||this.Au||this.Yo||this.ed;this.Yf||(this.Yf=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));this.Aj=!!(this.Ah&&this.Vd&&window.webkit);"undefined"===typeof cr_is_preview||this.zj||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||(this.zj=!0);this.canvas=b;this.co=document.getElementById("c2canvasdiv");
this.u=this.A=null;this.Nl="(unavailable)";this.ua=!1;this.ef=0;this.Ia=null;this.fj=!1;this.Pp=this.Qp=0;this.canvas.oncontextmenu=function(b){b.preventDefault&&b.preventDefault();return!1};this.canvas.onselectstart=function(b){b.preventDefault&&b.preventDefault();return!1};this.Ub&&(window.c2runtime=this);this.zj&&(window.ondragover=function(b){b.preventDefault();return!1},window.ondrop=function(b){b.preventDefault();return!1},window.nwgui&&window.nwgui.App.clearCache&&window.nwgui.App.clearCache());
this.wj&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=b.width;this.height=b.height;this.G=this.width;this.F=this.height;this.Si=this.width;this.$g=this.height;this.gg=window.innerWidth;this.fg=window.innerHeight;this.na=!0;this.wh=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.q=[];this.Ha=[];this.om={};this.gd=[];this.sl={};this.Rd=[];this.Rg=[];this.Gk=[];this.Vk=[];this.ms=[];this.$e={};this.em=this.Ee=!1;
this.fd=0;this.cm=this.gm=!1;this.ad=[];this.rh=!1;this.Gj=this.bn="";this.hb=null;this.Xd="";this.li=this.Gq=!1;this.ej=[];this.df=this.cf=0;this.Dp=30;this.jl=this.Rh=0;this.Ng=1;this.Bb=new db;this.ke=new db;this.Rj=this.ij=this.dh=this.Lg=this.uf=this.zl=this.Dj=0;this.Wg=null;this.Zi=[];this.rl=[];this.aj=-1;this.um=[[]];this.sn=this.Lj=0;this.ik(null);this.wm=[];this.Nj=-1;this.Jp=this.Vh=0;this.nm=!0;this.eh=0;this.mi=[];this.pn=this.Sm=-1;this.Bh=!0;this.Jj=0;this.uh=!1;this.Tv=0;this.Kf=
null;this.oc=this.Mo=!1;this.Np=new ca;this.Bm=new ca;this.Op=new ca;this.nq=[];this.nd=new fb([]);this.kn=new fb([]);this.se=[];this.kh={};this.xe={};this.qe={};this.Qg={};this.Yn={};this.ip=this.Fj=this.Sa=this.gb=this.hp=this.Ej=this.la=null;this.Og=this.jm=!1;this.Al=[null,null];this.jf=0;this.xl="";this.$d={};this.ki=this.Ie=null;this.Hq="";this.Qj=[];this.Cv()}}function n(b,a){return 128>=a?b[3]:256>=a?b[2]:512>=a?b[1]:b[0]}function k(){try{return!!window.indexedDB}catch(b){return!1}}function q(b){b.target.result.createObjectStore("saves",
{keyPath:"slot"})}function r(b,a,f,g){try{var d=indexedDB.open("_C2SaveStates");d.onupgradeneeded=q;d.onerror=g;d.onsuccess=function(d){d=d.target.result;d.onerror=g;d.transaction(["saves"],"readwrite").objectStore("saves").put({slot:b,data:a}).onsuccess=f}}catch(e){g(e)}}function p(b,a,f){try{var g=indexedDB.open("_C2SaveStates");g.onupgradeneeded=q;g.onerror=f;g.onsuccess=function(g){g=g.target.result;g.onerror=f;var d=g.transaction(["saves"]).objectStore("saves").get(b);d.onsuccess=function(){d.result?
a(d.result.data):a(null)}}}catch(d){f(d)}}function l(){ea("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?window.location.reload(!0):window.location=window.location+"?continuous"}function a(b){var a,f={};for(a in b)!b.hasOwnProperty(a)||b[a]instanceof ca||b[a]&&"undefined"!==typeof b[a].jx||"spriteCreatedDestroyCallback"!==a&&(f[a]=b[a]);return f}var d=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||
window.msRequestAnimationFrame||window.oRequestAnimationFrame;c.prototype.Cv=function(){var b=this;if(this.Aj)this.Jt(function(a){b.Kh(JSON.parse(a))},function(){alert("Error fetching data.js")});else{var a;this.xh?a=new ActiveXObject("Microsoft.XMLHTTP"):a=new XMLHttpRequest;var f="data.js";if(this.$o||this.xh||this.im||this.Zo)f="data.json";a.open("GET",f,!0);var g=!1;if(!this.fb&&"response"in a&&"responseType"in a)try{a.responseType="json",g="json"===a.responseType}catch(d){g=!1}if(!g&&"responseType"in
a)try{a.responseType="text"}catch(e){}if("overrideMimeType"in a)try{a.overrideMimeType("application/json; charset=utf-8")}catch(h){}this.xh?a.onreadystatechange=function(){4===a.readyState&&b.Kh(JSON.parse(a.responseText))}:(a.onload=function(){if(g)b.Kh(a.response);else if(b.ed){var f=a.responseText,f=f.substr(f.indexOf("{"));b.Kh(JSON.parse(f))}else b.Kh(JSON.parse(a.responseText))},a.onerror=function(b){fa("Error requesting "+f+":");fa(b)});a.send()}};c.prototype.wu=function(){var b=this,a,f,g,
d,e,h,m,t,c;this.qf=(!this.fb||this.ed||this.Vd)&&this.fw&&!this.wj;0===this.Tb&&this.Ah&&(this.qf=!1);this.devicePixelRatio=this.qf?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.Jb();0<this.Tb&&this.setSize(window.innerWidth,window.innerHeight,!0);this.canvas.addEventListener("webglcontextlost",function(a){a.preventDefault();b.Uu();ea("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",
function(){b.u.Qo();b.u.ee(b.u.width,b.u.height,!0);b.gb=null;b.Sa=null;b.Al[0]=null;b.Al[1]=null;b.Vu();b.na=!0;ea("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);try{this.Ys&&(this.Oc||this.ed||!this.fb)&&(a={alpha:!0,depth:!1,antialias:!1,powerPreference:"high-performance",failIfMajorPerformanceCaveat:!0},this.A=this.canvas.getContext("webgl2",a)||this.canvas.getContext("webgl",a)||this.canvas.getContext("experimental-webgl",a))}catch(u){}if(this.A){if(a=this.A.getExtension("WEBGL_debug_renderer_info"))this.Nl=
this.A.getParameter(a.UNMASKED_RENDERER_WEBGL)+" ["+this.A.getParameter(a.UNMASKED_VENDOR_WEBGL)+"]";this.ua&&(this.Nl+=" [front-to-back enabled]");this.fb||(this.Db=document.createElement("canvas"),jQuery(this.Db).appendTo(this.canvas.parentNode),this.Db.oncontextmenu=function(){return!1},this.Db.onselectstart=function(){return!1},this.Db.width=Math.round(this.Si*this.devicePixelRatio),this.Db.height=Math.round(this.$g*this.devicePixelRatio),jQuery(this.Db).css({width:this.Si+"px",height:this.$g+
"px"}),this.hq(),this.Mm=this.Db.getContext("2d"));this.u=new ob(this.A,this.Yf,this.ua);this.u.ee(this.canvas.width,this.canvas.height);this.u.ro=0!==this.Rs;this.Ia=null;a=0;for(f=this.q.length;a<f;a++)for(e=this.q[a],g=0,d=e.L.length;g<d;g++)m=e.L[g],m.Va=this.u.Ml(m.id),m.jd=this.u.Qm(m.Va),this.Og=this.Og||this.u.Zh(m.Va);a=0;for(f=this.gd.length;a<f;a++){t=this.gd[a];g=0;for(d=t.L.length;g<d;g++)m=t.L[g],m.Va=this.u.Ml(m.id),m.jd=this.u.Qm(m.Va);t.qd();g=0;for(d=t.M.length;g<d;g++){c=t.M[g];
e=0;for(h=c.L.length;e<h;e++)m=c.L[e],m.Va=this.u.Ml(m.id),m.jd=this.u.Qm(m.Va),this.Og=this.Og||this.u.Zh(m.Va);c.qd()}}}else{if(0<this.Tb&&this.Ub){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.Ia=AppMobi.canvas.getContext("2d");try{this.Ia.samplingMode=this.Da?"smooth":"sharp",this.Ia.globalScale=1,this.Ia.HTML5CompatibilityMode=!0,this.Ia.imageSmoothingEnabled=this.Da}catch(l){}0!==this.width&&0!==this.height&&(this.Ia.width=this.width,
this.Ia.height=this.height)}this.Ia||(this.Oc?(a={antialias:!!this.Da,alpha:!0},this.Ia=this.canvas.getContext("2d",a)):(a={alpha:!0},this.Ia=this.canvas.getContext("2d",a)),this.pk(this.Ia,this.Da));this.Mm=this.Db=null}this.Nq=function(a){b.Xa(!1,a)};window==window.top||this.fb||this.Hu||this.xh||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.Oc&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),
-1<window.location.search.indexOf("continuous")&&(ea("Reloading for continuous preview"),this.Gj="__c2_continuouspreview",this.li=!0),this.hv&&!this.Yf&&(jQuery(window).focus(function(){b.setSuspended(!1)}),jQuery(window).blur(function(){var a=window.parent;a&&a.document.hasFocus()||b.setSuspended(!0)})));window.addEventListener("blur",function(){b.tg()});this.fb||(a=function(b){if(nb(b)&&document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(a){}},
"undefined"!==typeof PointerEvent?document.addEventListener("pointerdown",a):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",a):document.addEventListener("touchstart",a),document.addEventListener("mousedown",a));0===this.Tb&&this.qf&&1<this.devicePixelRatio&&this.setSize(this.jb,this.ib,!0);this.Sq();this.pu();this.go();this.Ca={}};c.prototype.setSize=function(b,a,f){var g=0,d=0,e=0,h=0,h=0;if(this.gg!==b||this.fg!==a||f){this.gg=b;this.fg=a;var m=this.Tb;if((e=(document.mozFullScreen||
document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.uh)&&!this.Vd)||0!==this.Tb||f)e&&0<this.jf&&(m=this.jf),f=this.devicePixelRatio,4<=m?(e=this.jb/this.ib,b/a>e?(e*=a,5===m?(h=e*f/this.jb,1<h?h=Math.floor(h):1>h&&(h=1/Math.ceil(1/h)),e=this.jb*h/f,h=this.ib*h/f,g=(b-e)/2,d=(a-h)/2,b=e,a=h):(g=(b-e)/2,b=e)):(h=b/e,5===m?(h=h*f/this.ib,1<h?h=Math.floor(h):1>h&&(h=1/Math.ceil(1/h)),e=this.jb*h/f,h=this.ib*h/f,g=(b-e)/2,d=(a-h)/2,b=e):d=(a-h)/2,a=h)):this.zj&&this.uh&&
0===this.Eo&&(g=Math.floor((b-this.jb)/2),d=Math.floor((a-this.ib)/2),b=this.jb,a=this.ib),2>m&&(this.Vg=f),this.Si=Math.round(b),this.$g=Math.round(a),this.width=Math.round(b*f),this.height=Math.round(a*f),this.na=!0,this.dr?(this.G=this.width,this.F=this.height,this.yc=!0):this.width<this.jb&&this.height<this.ib||1===m?(this.G=this.width,this.F=this.height,this.yc=!0):(this.G=this.jb,this.F=this.ib,this.yc=!1,2===m?(e=this.jb/this.ib,m=this.gg/this.fg,m<e?this.G=this.F*m:m>e&&(this.F=this.G/m)):
3===m&&(e=this.jb/this.ib,m=this.gg/this.fg,m>e?this.G=this.F*m:m<e&&(this.F=this.G/m))),this.co&&!this.fb&&(jQuery(this.co).css({width:Math.round(b)+"px",height:Math.round(a)+"px","margin-left":Math.floor(g)+"px","margin-top":Math.floor(d)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(b)+"px",height:Math.round(a)+"px"})),this.canvas&&(this.canvas.width=Math.round(b*f),this.canvas.height=Math.round(a*f),this.ed?(this.canvas.style.left=Math.floor(g)+"px",this.canvas.style.top=
Math.floor(d)+"px",this.canvas.style.width=Math.round(b)+"px",this.canvas.style.height=Math.round(a)+"px"):this.qf&&!this.fb&&(this.canvas.style.width=Math.round(b)+"px",this.canvas.style.height=Math.round(a)+"px")),this.Db&&(this.Db.width=Math.round(b*f),this.Db.height=Math.round(a*f),this.Db.style.width=this.Si+"px",this.Db.style.height=this.$g+"px"),this.u&&this.u.ee(Math.round(b*f),Math.round(a*f)),this.Ub&&this.Ia&&(this.Ia.width=Math.round(b),this.Ia.height=Math.round(a)),this.Ia&&this.pk(this.Ia,
this.Da),this.Sq(),this.cp&&!this.Vd&&window.scrollTo(0,0)}};c.prototype.Sq=function(){if(this.os&&0!==this.Lm){var b="portrait";2===this.Lm&&(b="landscape");try{screen.orientation&&screen.orientation.lock?screen.orientation.lock(b).catch(function(){}):screen.lockOrientation?screen.lockOrientation(b):screen.webkitLockOrientation?screen.webkitLockOrientation(b):screen.mozLockOrientation?screen.mozLockOrientation(b):screen.msLockOrientation&&screen.msLockOrientation(b)}catch(a){console&&console.warn&&
console.warn("Failed to lock orientation: ",a)}}};c.prototype.Uu=function(){this.u.vs();this.jm=!0;var b,a,f;b=0;for(a=this.q.length;b<a;b++)f=this.q[b],f.Sj&&f.Sj()};c.prototype.Vu=function(){this.jm=!1;var b,a,f;b=0;for(a=this.q.length;b<a;b++)f=this.q[b],f.Uj&&f.Uj()};c.prototype.hq=function(){if(!this.fb){var b=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.uh)&&!this.Vd?jQuery(this.canvas).offset():jQuery(this.canvas).position();
b.position="absolute";jQuery(this.Db).css(b)}};var e=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;c.prototype.setSuspended=function(b){var a;if(b&&!this.wh)for(ea("[Construct 2] Suspending"),this.wh=!0,-1!==this.Sm&&e&&e(this.Sm),-1!==this.pn&&clearTimeout(this.pn),b=0,a=this.mi.length;b<a;b++)this.mi[b](!0);else if(!b&&this.wh){ea("[Construct 2] Resuming");this.wh=!1;this.Dj=$a();this.uf=
$a();b=this.Rh=this.ij=0;for(a=this.mi.length;b<a;b++)this.mi[b](!1);this.Xa(!1)}};c.prototype.ks=function(b){this.mi.push(b)};c.prototype.oe=function(b){return this.Qj[b]};c.prototype.Kh=function(b){b&&b.project||fa("Project model unavailable");b=b.project;this.name=b[0];this.zo=b[1];this.Tb=b[12];this.Eo=b[12];this.jb=b[10];this.ib=b[11];this.bq=this.jb/2;this.cq=this.ib/2;this.fb&&!this.ed&&(4<=b[12]||0===b[12])&&(ea("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),
this.Eo=this.Tb=3);this.zn=b[18];this.Je=b[19];if(0===this.Je){var a=new Image;a.crossOrigin="anonymous";this.xq(a,"loading-logo.png");this.Ie={Mj:a}}else if(4===this.Je){a=new Image;a.src="";var f=new Image;f.src="";var g=new Image;g.src="";var d=new Image;d.src="";var e=new Image;e.src="";var h=new Image;h.src="";var m=new Image;m.src="";var t=new Image;t.src="";var c=new Image;c.src="";var u=new Image;u.src="";var l=new Image;l.src="";var p=new Image;p.src="";this.Ie={Mj:[a,f,g,d],qv:[e,h,m,t],
hw:[c,u,l,p]}}this.Vh=b[21];this.Qj=mc();this.Jd=new Z(this);a=0;for(f=b[2].length;a<f;a++)m=b[2][a],g=this.oe(m[0]),pb(m,g.prototype),t=new g(this),t.tk=m[1],t.He=m[2],t.qx=m[5],t.Fp=m[9],t.ga&&t.ga(),this.plugins.push(t);this.Qj=mc();a=0;for(f=b[3].length;a<f;a++){m=b[3][a];e=this.oe(m[1]);t=null;g=0;for(d=this.plugins.length;g<d;g++)if(this.plugins[g]instanceof e){t=this.plugins[g];break}c=new t.Na(t);c.name=m[0];c.C=m[2];c.$l=m[3].slice(0);c.gw=m[3].length;c.ps=m[4];c.Nt=m[5];c.T=m[11];c.C?(c.mg=
[],c.Sd=this.eh++,c.Ea=null):(c.mg=null,c.Sd=-1,c.Ea=[]);c.cj=null;c.Tf=null;c.so=null;c.cc=!1;c.nc=null;m[6]?(c.Bk=m[6][0],c.ln=m[6][1],c.oi=m[6][2]):(c.Bk=null,c.ln=0,c.oi=0);m[7]?c.lc=m[7]:c.lc=null;c.index=a;c.c=[];c.Wi=[];c.he=[new qb(c)];c.zd=0;c.Jc=null;c.zs=0;c.Ig=!0;c.Ik=rb;c.Ut=sb;c.Zt=tb;c.ca=ub;c.$h=vb;c.yg=wb;c.be=yb;c.kj=zb;c.Cl=Ab;c.Gl=Bb;c.Md=Cb;c.Il=Db;c.Pi=new gb(this.jb,this.ib);c.Bi=!0;c.Ci=!1;c.Ca={};c.toString=Eb;c.Ha=[];g=0;for(d=m[8].length;g<d;g++){u=m[8][g];l=this.oe(u[1]);
p=null;e=0;for(h=this.Ha.length;e<h;e++)if(this.Ha[e]instanceof l){p=this.Ha[e];break}p||(p=new l(this),p.Hp=[],p.qg=new ca,p.ga&&p.ga(),this.Ha.push(p));-1===p.Hp.indexOf(c)&&p.Hp.push(c);e=new p.Na(p,c);e.name=u[0];e.T=u[2];e.ga();c.Ha.push(e)}c.global=m[9];c.fm=m[10];c.L=[];g=0;for(d=m[12].length;g<d;g++)c.L.push({id:m[12][g][0],name:m[12][g][1],Va:-1,jd:!1,Fa:!0,index:g});c.zx=m[13];this.zn&&!c.C&&!c.fm&&t.He||c.ga();c.name&&(this.types[c.name]=c);this.q.push(c);t.tk&&(g=new t.Aa(c),g.uid=this.Vh++,
g.kq=this.Jp++,g.of=0,g.ih=Fb,g.toString=Gb,g.H=m[14],g.ga(),c.c.push(g),this.$d[g.uid.toString()]=g)}a=0;for(f=b[4].length;a<f;a++)for(e=b[4][a],h=this.q[e[0]],g=1,d=e.length;g<d;g++)m=this.q[e[g]],m.Ea.push(h),h.mg.push(m);a=0;for(f=b[28].length;a<f;a++){e=b[28][a];h=[];g=0;for(d=e.length;g<d;g++)h.push(this.q[e[g]]);g=0;for(d=h.length;g<d;g++)h[g].cc=!0,h[g].nc=h}if(0<this.eh)for(a=0,f=this.q.length;a<f;a++)if(m=this.q[a],!m.C&&m.Ea.length){m.cj=Array(this.eh);m.Tf=Array(this.eh);m.so=Array(this.eh);
c=[];g=p=l=u=0;for(d=m.Ea.length;g<d;g++)for(t=m.Ea[g],m.cj[t.Sd]=u,u+=t.gw,m.Tf[t.Sd]=l,l+=t.ps,m.so[t.Sd]=p,p+=t.Nt,e=0,h=t.L.length;e<h;e++)c.push(wa({},t.L[e]));m.L=c.concat(m.L);g=0;for(d=m.L.length;g<d;g++)m.L[g].index=g}a=0;for(f=b[5].length;a<f;a++)m=b[5][a],g=new Hb(this,m),this.om[g.name]=g,this.gd.push(g);a=0;for(f=b[6].length;a<f;a++)m=b[6][a],g=new Ib(this,m),this.sl[g.name]=g,this.Rd.push(g);a=0;for(f=this.Rd.length;a<f;a++)this.Rd[a].Ma();a=0;for(f=this.Rd.length;a<f;a++)this.Rd[a].vn();
a=0;for(f=this.Gk.length;a<f;a++)this.Gk[a].Ma();W(this.Gk);this.ns=b[7];this.xl=b[8];this.hd=b[9];this.Vg=1;this.Ys=b[13];this.Da=b[14];this.eo=b[15];this.fw=b[17];this.Lm=b[20];this.os=0<this.Lm;this.hv=b[22];this.yc=this.dr=b[23];this.Rs=b[24];this.rv=b[25];this.ua=b[27]&&!this.Ge;this.xk=Date.now();W(this.Qj);this.wu()};var b=!1,f=0,h=[];c.prototype.xv=function(b,a){function g(){f--;d.Ap()}var d=this;b.addEventListener("load",g);b.addEventListener("error",g);h.push([b,a]);this.Ap()};c.prototype.Ap=
function(){for(var b;h.length&&100>f;)f++,b=h.shift(),this.xq(b[0],b[1])};c.prototype.Cn=function(a,f){a.cocoonLazyLoad=!0;a.onerror=function(f){b=a.$n=!0;console&&console.error&&console.error("Error loading image '"+a.src+"': ",f)};this.ed?a.src=f:a.src||("undefined"!==typeof XAPKReader?XAPKReader.get(f,function(b){a.src=b},function(g){b=a.$n=!0;console&&console.error&&console.error("Error extracting image '"+f+"' from expansion file: ",g)}):(a.crossOrigin="anonymous",this.xv(a,f)));this.Rg.push(a)};
c.prototype.Lt=function(b){var a,f;a=0;for(f=this.Rg.length;a<f;a++)if(this.Rg[a].ws===b)return this.Rg[a];return null};var g=0,t=!1;c.prototype.pu=function(){this.Kf&&(g=this.Kf.Pv(this.ns))};c.prototype.Wn=function(){var b=g,a=0,f=0,d=!0,e,m,f=0;for(e=this.Rg.length;f<e;f++){m=this.Rg[f];var h=m.ho;if(!h||0>=h)h=5E4;b+=h;m.src&&(m.complete||m.loaded)&&!m.$n?a+=h:d=!1}d&&this.rv&&this.Kf&&(t||(this.Kf.Uv(),t=!0),f=this.Kf.$t(),a+=f,f<g&&(d=!1));this.kd=0==b?1:a/b;return d};var v=!1;c.prototype.go=
function(){if(this.Ia||this.u){var a=this.Ia||this.Mm;this.Db&&this.hq();var f=window.innerWidth,g=window.innerHeight;this.gg===f&&this.fg===g||this.setSize(f,g);this.kd=0;this.gp=-1;var e=this;if(this.Wn()&&(4!==this.Je||v))this.qu();else{g=Date.now()-this.xk;if(a){var m=this.width,h=this.height,f=this.devicePixelRatio;if(3>this.Je&&(this.Oc||500<=g&&this.gp!=this.kd)){a.clearRect(0,0,m,h);var g=m/2,h=h/2,m=0===this.Je&&this.Ie.Mj.complete,c=40*f,t=0,u=80*f,l;if(m){var p=this.Ie.Mj,u=p.width*f;l=
p.height*f;c=u/2;t=l/2;a.drawImage(p,R(g-c),R(h-t),u,l)}1>=this.Je?(g=R(g-c)+.5,h=R(h+(t+(m?12*f:0)))+.5,a.fillStyle=b?"red":"DodgerBlue",a.fillRect(g,h,Math.floor(u*this.kd),6*f),a.strokeStyle="black",a.strokeRect(g,h,u,6*f),a.strokeStyle="white",a.strokeRect(g-1*f,h-1*f,u+2*f,8*f)):2===this.Je&&(a.font=this.ed?"12pt ArialMT":"12pt Arial",a.fillStyle=b?"#f00":"#999",a.yx="middle",f=Math.round(100*this.kd)+"%",m=a.measureText?a.measureText(f):null,a.fillText(f,g-(m?m.width:0)/2,h));this.gp=this.kd}else if(4===
this.Je){this.Ws(a);d?d(function(){e.go()}):setTimeout(function(){e.go()},16);return}}setTimeout(function(){e.go()},this.Oc?10:100)}}};var S=-1,m="undefined"===typeof cr_is_preview?200:0,u=!0,E=!1,C=0,F=0,N="undefined"===typeof cr_is_preview?3E3:0,T=null,D=null,w=0;c.prototype.Ws=function(a){if(!v){for(var f=Math.ceil(this.width),g=Math.ceil(this.height),d=this.Ie.Mj,e=this.Ie.qv,h=this.Ie.hw,c=0;4>c;++c)if(!d[c].complete||!e[c].complete||!h[c].complete)return;0===w&&(S=Date.now());var c=Date.now(),
t=!1,l=a,p,k;u||E?(a.clearRect(0,0,f,g),T&&T.width===f&&T.height===g||(T=document.createElement("canvas"),T.width=f,T.height=g,D=T.getContext("2d")),l=D,t=!0,u&&1===w&&(S=Date.now())):a.globalAlpha=1;l.fillStyle="#333333";l.fillRect(0,0,f,g);256<this.$g?(p=Fa(.22*g,105,.6*f),k=.25*p,l.drawImage(n(e,p),.5*f-p/2,.2*g-k/2,p,k),k=p=Math.min(.395*g,.95*f),l.drawImage(n(d,p),.5*f-p/2,.485*g-k/2,p,k),p=Fa(.22*g,105,.6*f),k=.25*p,l.drawImage(n(h,p),.5*f-p/2,.868*g-k/2,p,k),l.fillStyle="#3C3C3C",p=f,k=Math.max(.005*
g,2),l.fillRect(0,.8*g-k/2,p,k),l.fillStyle=b?"red":"#E0FF65",p=f*this.kd,l.fillRect(.5*f-p/2,.8*g-k/2,p,k)):(k=p=.55*g,l.drawImage(n(d,p),.5*f-p/2,.45*g-k/2,p,k),l.fillStyle="#3C3C3C",p=f,k=Math.max(.005*g,2),l.fillRect(0,.85*g-k/2,p,k),l.fillStyle=b?"red":"#E0FF65",p=f*this.kd,l.fillRect(.5*f-p/2,.85*g-k/2,p,k));t&&(u?a.globalAlpha=0===w?0:Math.min((c-S)/300,1):E&&(a.globalAlpha=Math.max(1-(c-F)/300,0)),a.drawImage(T,0,0,f,g));u&&300<=c-S&&2<=w&&(u=!1,C=c);!u&&c-C>=N&&!E&&1<=this.kd&&(E=!0,F=c);
if(E&&c-F>=300+m||"undefined"!==typeof cr_is_preview&&1<=this.kd&&500>Date.now()-S)v=!0,E=u=!1,this.Ie=D=T=null;++w}};c.prototype.qu=function(){this.Db&&(this.canvas.parentNode.removeChild(this.Db),this.Db=this.Mm=null);this.xk=Date.now();this.uf=$a();var b,a,f;if(this.zn)for(b=0,a=this.q.length;b<a;b++)f=this.q[b],f.C||f.fm||!f.xa.He||f.ga();else this.Bh=!1;b=0;for(a=this.gd.length;b<a;b++)this.gd[b].xs();2<=this.Tb&&(b=this.jb/this.ib,a=this.width/this.height,this.Vg=2!==this.Tb&&a>b||2===this.Tb&&
a<b?this.height/this.ib:this.width/this.jb);this.zo?this.om[this.zo].jn():this.gd[0].jn();this.zn||(this.Jj=1,this.trigger(Z.prototype.n.Ln,null),window.C2_RegisterSW&&window.C2_RegisterSW());navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();b=0;for(a=this.q.length;b<a;b++)f=this.q[b],f.Tu&&f.Tu();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.Xa(!1);this.Ub&&AppMobi.webview.execute("onGameReady();")};
c.prototype.Xa=function(b,a,f){if(this.la){var g=$a();if(f||!this.wh||b){b||(d?this.Sm=d(this.Nq):this.pn=setTimeout(this.Nq,this.Yf?1:16));a=a||g;var e=this.Tb;((f=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.Vd)||this.uh)&&0<this.jf&&(e=this.jf);if(0<e){var e=window.innerWidth,h=window.innerHeight;this.gg===e&&this.fg===h||this.setSize(e,h)}this.fb||(f?this.fj||(this.fj=!0):this.fj?(this.fj=!1,0===this.Tb&&this.setSize(Math.round(this.Qp/
this.devicePixelRatio),Math.round(this.Pp/this.devicePixelRatio),!0)):(this.Qp=this.width,this.Pp=this.height));this.Bh&&(f=this.Wn(),this.Jj=this.kd,f&&(this.Bh=!1,this.kd=1,this.trigger(Z.prototype.n.Ln,null),window.C2_RegisterSW&&window.C2_RegisterSW()));this.Ou(a);!this.na&&!this.Oc||this.jm||this.li||b||(this.na=!1,this.u?this.Zb():this.cd(),this.ki&&(this.canvas&&this.canvas.toDataURL&&(this.Hq=this.canvas.toDataURL(this.ki[0],this.ki[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.Hq),
this.trigger(Z.prototype.n.Kr,null)),this.ki=null));this.ox||(this.Lg++,this.dh++,this.ij++);this.Rh+=$a()-g}}};c.prototype.Ou=function(b){var a,f,g,d,e,h,m,c;1E3<=b-this.uf&&(this.uf+=1E3,1E3<=b-this.uf&&(this.uf=b),this.zl=this.ij,this.ij=0,this.jl=this.Rh,this.Rh=0);a=0;0!==this.Dj&&(a=b-this.Dj,0>a&&(a=0),this.df=a/=1E3,.5<this.df?this.df=0:this.df>1/this.Dp&&(this.df=1/this.Dp));this.Dj=b;this.cf=this.df*this.Ng;this.Bb.add(this.cf);this.ke.add(a);b=(document.mozFullScreen||document.webkitIsFullScreen||
document.fullScreen||!!document.msFullscreenElement||this.uh)&&!this.Vd;2<=this.Tb||b&&0<this.jf?(a=this.jb/this.ib,f=this.width/this.height,g=this.Tb,b&&0<this.jf&&(g=this.jf),this.Vg=2!==g&&f>a||2===g&&f<a?this.height/this.ib:this.width/this.jb,this.la&&(this.la.qq(this.la.scrollX),this.la.rq(this.la.scrollY))):this.Vg=this.qf?this.devicePixelRatio:1;this.Jb();this.fd++;this.Jd.Gv();this.fd--;this.Jb();this.fd++;f=this.Np.sd();b=0;for(a=f.length;b<a;b++)f[b].ux();b=0;for(a=this.q.length;b<a;b++)if(h=
this.q[b],!h.C&&(h.Ha.length||h.Ea.length))for(f=0,g=h.c.length;f<g;f++)for(m=h.c[f],d=0,e=m.D.length;d<e;d++)m.D[d].Xa();b=0;for(a=this.q.length;b<a;b++)if(h=this.q[b],!h.C&&(h.Ha.length||h.Ea.length))for(f=0,g=h.c.length;f<g;f++)for(m=h.c[f],d=0,e=m.D.length;d<e;d++)c=m.D[d],c.pv&&c.pv();f=this.Bm.sd();b=0;for(a=f.length;b<a;b++)f[b].Xa();this.fd--;this.ru();for(b=0;this.Wg&&10>b++;)this.oo(this.Wg);b=0;for(a=this.Rd.length;b<a;b++)this.Rd[b].Sl=!1;this.la.gf&&this.la.gf.Ua();W(this.nq);this.nm=
!1;this.fd++;b=0;for(a=this.q.length;b<a;b++)if(h=this.q[b],!h.C&&(h.Ha.length||h.Ea.length))for(f=0,g=h.c.length;f<g;f++)for(m=h.c[f],d=0,e=m.D.length;d<e;d++)c=m.D[d],c.nn&&c.nn();f=this.Op.sd();b=0;for(a=f.length;b<a;b++)f[b].nn();this.fd--};c.prototype.tg=function(){var b,a,f,g,d,e,h,m,c;b=0;for(a=this.q.length;b<a;b++)if(h=this.q[b],!h.C)for(f=0,g=h.c.length;f<g;f++)if(m=h.c[f],m.tg&&m.tg(),m.D)for(d=0,e=m.D.length;d<e;d++)c=m.D[d],c.tg&&c.tg()};c.prototype.oo=function(b){var a=this.la;this.la.Vv();
var f,g,d;if(this.u)for(f=0,g=this.q.length;f<g;f++)d=this.q[f],d.C||!d.Hk||d.global&&0!==d.c.length||-1!==b.oh.indexOf(d)||d.Hk();a==b&&W(this.Jd.Ib);W(this.nq);this.oq(!0);b.jn();this.oq(!1);this.nm=this.na=!0;this.Jb()};c.prototype.oq=function(b){var a,f,g,d,e,h,m,c,t;a=0;for(f=this.Ha.length;a<f;a++)g=this.Ha[a],b?g.Wh&&g.Wh():g.Xh&&g.Xh();a=0;for(f=this.q.length;a<f;a++)if(g=this.q[a],g.global||g.xa.tk)for(d=0,e=g.c.length;d<e;d++)if(h=g.c[d],b?h.Wh&&h.Wh():h.Xh&&h.Xh(),h.D)for(m=0,c=h.D.length;m<
c;m++)t=h.D[m],b?t.Wh&&t.Wh():t.Xh&&t.Xh()};c.prototype.Dk=function(b){this.Bm.add(b)};c.prototype.lj=function(b){return b&&-1!==b.Uh?this.df*b.Uh:this.cf};c.prototype.cd=function(){this.la.cd(this.Ia);this.Ub&&this.Ia.present()};c.prototype.Zb=function(){this.ua&&(this.ef=1,this.la.Sf(this.u));this.la.Zb(this.u);this.u.tv()};c.prototype.Sn=function(b){b&&this.Zi.push(b)};c.prototype.Bv=function(b){Ea(this.Zi,b)};c.prototype.gh=function(b){b=b.toString();return this.$d.hasOwnProperty(b)?this.$d[b]:
null};var P=[];c.prototype.ne=function(b){var a,f;a=b.type.name;var g=null;if(this.$e.hasOwnProperty(a)){if(g=this.$e[a],g.contains(b))return}else g=P.length?P.pop():new ca,this.$e[a]=g;g.add(b);this.Ee=!0;if(b.cc)for(a=0,f=b.siblings.length;a<f;a++)this.ne(b.siblings[a]);this.em&&g.Pg.push(b);this.cm||(this.fd++,this.trigger(Object.getPrototypeOf(b.type.xa).n.Lr,b),this.fd--)};c.prototype.Jb=function(){if(this.Ee){var b,a,f,g,d,e;this.em=!0;f=0;for(d=this.ad.length;f<d;++f)for(b=this.ad[f],a=b.type,
a.c.push(b),g=0,e=a.Ea.length;g<e;++g)a.Ea[g].c.push(b),a.Ea[g].Ig=!0;W(this.ad);this.Fr();Za(this.$e);this.Ee=this.em=!1}};c.prototype.Fr=function(){for(var b in this.$e)this.$e.hasOwnProperty(b)&&this.lr(this.$e[b])};c.prototype.lr=function(b){var a=b.sd(),f=a[0].type,g,d,e,h,m,c;ab(f.c,b);f.Ig=!0;0===f.c.length&&(f.Ci=!1);g=0;for(d=f.Ea.length;g<d;++g)c=f.Ea[g],ab(c.c,b),c.Ig=!0;g=0;for(d=this.Jd.Ib.length;g<d;++g)if(m=this.Jd.Ib[g],m.Pb.hasOwnProperty(f.index)&&ab(m.Pb[f.index].Cd,b),!f.C)for(e=
0,h=f.Ea.length;e<h;++e)c=f.Ea[e],m.Pb.hasOwnProperty(c.index)&&ab(m.Pb[c.index].Cd,b);if(m=a[0].j){if(m.Fc)for(e=m.c,g=0,d=e.length;g<d;++g)h=e[g],b.contains(h)&&(h.za(),m.Fb.update(h,h.hc,null),h.hc.set(0,0,-1,-1));ab(m.c,b);m.gi(0)}for(g=0;g<a.length;++g)this.kr(a[g],f);b.clear();P.push(b);this.na=!0};c.prototype.kr=function(b,a){var f,g,d;f=0;for(g=this.Zi.length;f<g;++f)this.Zi[f](b);b.ye&&a.Pi.update(b,b.ye,null);(f=b.j)&&f.Ag(b,!0);if(b.D)for(f=0,g=b.D.length;f<g;++f)d=b.D[f],d.Af&&d.Af(),
d.behavior.qg.remove(b);this.Np.remove(b);this.Bm.remove(b);this.Op.remove(b);b.Af&&b.Af();this.$d.hasOwnProperty(b.uid.toString())&&delete this.$d[b.uid.toString()];this.Rj--;100>a.Wi.length&&a.Wi.push(b)};c.prototype.jo=function(b,a,f,g){if(b.C){var d=R(Math.random()*b.mg.length);return this.jo(b.mg[d],a,f,g)}return b.Jc?this.ze(b.Jc,a,!1,f,g,!1):null};var M=[];c.prototype.ze=function(b,a,f,g,d,e){var h,m,c,t;if(!b)return null;var u=this.q[b[1]],l=u.xa.He;if(this.Bh&&l&&!u.fm||l&&!this.u&&11===
b[0][11])return null;var p=a;l||(a=null);var v;u.Wi.length?(v=u.Wi.pop(),v.uc=!0,u.xa.Aa.call(v,u)):(v=new u.xa.Aa(u),v.uc=!1);!f||e||this.$d.hasOwnProperty(b[2].toString())?v.uid=this.Vh++:v.uid=b[2];this.$d[v.uid.toString()]=v;v.kq=this.Jp++;v.of=u.c.length;h=0;for(m=this.ad.length;h<m;++h)this.ad[h].type===u&&v.of++;v.ih=Fb;v.toString=Gb;c=b[3];if(v.uc)Za(v.Ca);else{v.Ca={};if("undefined"!==typeof cr_is_preview)for(v.To=[],v.To.length=c.length,h=0,m=c.length;h<m;h++)v.To[h]=c[h][1];v.eb=[];v.eb.length=
c.length}h=0;for(m=c.length;h<m;h++)v.eb[h]=c[h][0];if(l){var k=b[0];v.x=ga(g)?k[0]:g;v.y=ga(d)?k[1]:d;v.z=k[2];v.width=k[3];v.height=k[4];v.depth=k[5];v.d=k[6];v.opacity=k[7];v.$b=k[8];v.ac=k[9];v.Kb=k[10];h=k[11];!this.u&&u.L.length&&(v.Kb=h);v.Xg=jb(v.Kb);this.A&&kb(v,v.Kb,this.A);if(v.uc){h=0;for(m=k[12].length;h<m;h++)for(c=0,t=k[12][h].length;c<t;c++)v.Ja[h][c]=k[12][h][c];v.Ga.set(0,0,0,0);v.ye.set(0,0,-1,-1);v.hc.set(0,0,-1,-1);v.mc.Fg(v.Ga);W(v.al)}else{v.Ja=k[12].slice(0);h=0;for(m=v.Ja.length;h<
m;h++)v.Ja[h]=k[12][h].slice(0);v.ba=[];v.pe=[];v.pe.length=u.L.length;v.Ga=new ua(0,0,0,0);v.ye=new ua(0,0,-1,-1);v.hc=new ua(0,0,-1,-1);v.mc=new va;v.al=[];v.ya=Jb;v.ls=Kb;v.Lb=Lb;v.za=Mb;v.Zq=Nb;v.yn=Ob;v.Mc=Pb}v.Mg=!1;v.aw=0;v.$v=0;v.Zv=null;14===k.length&&(v.Mg=!0,v.aw=k[13][0],v.$v=k[13][1],v.Zv=k[13][2]);h=0;for(m=u.L.length;h<m;h++)v.pe[h]=!0;v.fe=!0;v.qd=Qb;v.qd();v.$q=!!v.ba.length;v.Hi=!0;v.dl=!0;u.Bi=!0;v.visible=!0;v.Uh=-1;v.j=a;v.td=a.c.length;v.ef=0;"undefined"===typeof v.ea&&(v.ea=
null);this.na=v.Ye=!0}var n;W(M);h=0;for(m=u.Ea.length;h<m;h++)M.push.apply(M,u.Ea[h].Ha);M.push.apply(M,u.Ha);if(v.uc)for(h=0,m=M.length;h<m;h++){var r=M[h];n=v.D[h];n.uc=!0;r.behavior.Aa.call(n,r,v);k=b[4][h];c=0;for(t=k.length;c<t;c++)n.H[c]=k[c];n.ga();r.behavior.qg.add(v)}else for(v.D=[],h=0,m=M.length;h<m;h++)r=M[h],n=new r.behavior.Aa(r,v),n.uc=!1,n.H=b[4][h].slice(0),n.ga(),v.D.push(n),r.behavior.qg.add(v);k=b[5];if(v.uc)for(h=0,m=k.length;h<m;h++)v.H[h]=k[h];else v.H=k.slice(0);this.ad.push(v);
this.Ee=!0;a&&(a.Ug(v,!0),1!==a.Rc||1!==a.Sc)&&(u.Ci=!0);this.Rj++;if(u.cc){if(v.cc=!0,v.uc?W(v.siblings):v.siblings=[],!f&&!e){h=0;for(m=u.nc.length;h<m;h++)if(u.nc[h]!==u){if(!u.nc[h].Jc)return null;v.siblings.push(this.ze(u.nc[h].Jc,p,!1,l?v.x:g,l?v.y:d,!0))}h=0;for(m=v.siblings.length;h<m;h++)for(v.siblings[h].siblings.push(v),c=0;c<m;c++)h!==c&&v.siblings[h].siblings.push(v.siblings[c])}}else v.cc=!1,v.siblings=null;v.ga();h=0;for(m=v.D.length;h<m;h++)v.D[h].ov&&v.D[h].ov();return v};c.prototype.Jl=
function(b){var a,f;a=0;for(f=this.la.M.length;a<f;a++){var g=this.la.M[a];if(mb(g.name,b))return g}return null};c.prototype.fh=function(b){b=R(b);0>b&&(b=0);b>=this.la.M.length&&(b=this.la.M.length-1);return this.la.M[b]};c.prototype.hl=function(b){var a,f;a=0;for(f=b.length;a<f;a++)b[a].ca().ma=!0};c.prototype.$h=function(b){var a,f;a=0;for(f=b.length;a<f;a++)b[a].$h()};c.prototype.yg=function(b){var a,f;a=0;for(f=b.length;a<f;a++)b[a].yg()};c.prototype.be=function(b){var a,f;a=0;for(f=b.length;a<
f;a++)b[a].be()};c.prototype.Xq=function(b){if(b.Bi){var a,f,g=b.c;a=0;for(f=g.length;a<f;++a)g[a].yn();g=this.ad;a=0;for(f=g.length;a<f;++a)g[a].type===b&&g[a].yn();b.Bi=!1}};c.prototype.St=function(b,a,f,g){var d,e,h=b?1!==b.Rc||1!==b.Sc:!1;if(a.C)for(b=0,d=a.mg.length;b<d;++b)e=a.mg[b],h||e.Ci?Aa(g,e.c):(this.Xq(e),e.Pi.jk(f,g));else h||a.Ci?Aa(g,a.c):(this.Xq(a),a.Pi.jk(f,g))};c.prototype.Xv=function(b,a,f){var g=b.ca(),d,e,h,m,c=this.Ra().Pa.Dc,t,u,v;if(g.ma)for(g.ma=!1,W(g.c),d=0,m=b.c.length;d<
m;d++)h=b.c[d],h.za(),t=h.j.$a(a,f,!0),u=h.j.$a(a,f,!1),h.Lb(t,u)?g.c.push(h):c&&g.N.push(h);else{e=0;v=c?g.N:g.c;d=0;for(m=v.length;d<m;d++)h=v[d],h.za(),t=h.j.$a(a,f,!0),u=h.j.$a(a,f,!1),h.Lb(t,u)&&(c?g.c.push(h):(g.c[e]=g.c[d],e++));v.length=e}b.Md();return g.Rl()};c.prototype.Yv=function(b,a){if(!(b&&a&&b!==a&&b.Ye&&a.Ye))return!1;b.za();a.za();var f=b.j,g=a.j,d,h,e,m,c,t,u,v;if(f===g||f.Rc===g.Rc&&g.Sc===g.Sc&&f.scale===g.scale&&f.d===g.d&&f.ud===g.ud){if(!b.Ga.xu(a.Ga)||!b.mc.Uo(a.mc)||b.Mg&&
a.Mg)return!1;if(b.Mg)return this.Lq(b,a);if(a.Mg)return this.Lq(a,b);u=b.ea&&!b.ea.$f();d=a.ea&&!a.ea.$f();if(!u&&!d)return!0;u?(b.ea.Mf(b.width,b.height,b.d),u=b.ea):(this.nd.Eg(b.mc,b.x,b.y,b.width,b.height),u=this.nd);d?(a.ea.Mf(a.width,a.height,a.d),v=a.ea):(this.nd.Eg(a.mc,a.x,a.y,a.width,a.height),v=this.nd);return u.ph(v,a.x-b.x,a.y-b.y)}u=b.ea&&!b.ea.$f();d=a.ea&&!a.ea.$f();u?(b.ea.Mf(b.width,b.height,b.d),this.nd.Bq(b.ea)):this.nd.Eg(b.mc,b.x,b.y,b.width,b.height);u=this.nd;d?(a.ea.Mf(a.width,
a.height,a.d),this.kn.Bq(a.ea)):this.kn.Eg(a.mc,a.x,a.y,a.width,a.height);v=this.kn;d=0;for(h=u.ld;d<h;d++)e=2*d,m=e+1,c=u.kb[e],t=u.kb[m],u.kb[e]=f.Vb(c+b.x,t+b.y,!0),u.kb[m]=f.Vb(c+b.x,t+b.y,!1);u.za();d=0;for(h=v.ld;d<h;d++)e=2*d,m=e+1,c=v.kb[e],t=v.kb[m],v.kb[e]=g.Vb(c+a.x,t+a.y,!0),v.kb[m]=g.Vb(c+a.x,t+a.y,!1);v.za();return u.ph(v,0,0)};var Q=new va;new ua(0,0,0,0);var J=[];c.prototype.Lq=function(b,a){var f,g,d,e,h=a.Ga,m=b.x,c=b.y;b.mx(h,J);var t=a.ea&&!a.ea.$f();f=0;for(g=J.length;f<g;++f)if(d=
J[f],e=d.vx,h.yu(e,m,c)&&(Q.Fg(e),Q.offset(m,c),Q.Uo(a.mc)))if(t)if(a.ea.Mf(a.width,a.height,a.d),d.Pm){if(d.Pm.ph(a.ea,a.x-(m+e.left),a.y-(c+e.top)))return W(J),!0}else{if(this.nd.Eg(Q,0,0,e.right-e.left,e.bottom-e.top),this.nd.ph(a.ea,a.x,a.y))return W(J),!0}else if(d.Pm){if(this.nd.Eg(a.mc,0,0,a.width,a.height),d.Pm.ph(this.nd,-(m+e.left),-(c+e.top)))return W(J),!0}else return W(J),!0;W(J);return!1};c.prototype.Tq=function(b,a){if(!a)return!1;var f,g,d,e,h;f=0;for(g=b.Ha.length;f<g;f++)if(b.Ha[f].behavior instanceof
a)return!0;if(!b.C)for(f=0,g=b.Ea.length;f<g;f++)for(h=b.Ea[f],d=0,e=h.Ha.length;d<e;d++)if(h.Ha[d].behavior instanceof a)return!0;return!1};c.prototype.tn=function(b){return this.Tq(b,ec.Hw)};c.prototype.un=function(b){return this.Tq(b,ec.Iw)};var y=-1;c.prototype.trigger=function(b,a,f){if(!this.la)return!1;var g=this.la.gf;if(!g)return!1;var d=!1,e,h,m;y++;var c=g.nl;h=0;for(m=c.length;h<m;++h)e=this.Qq(b,a,c[h],f),d=d||e;e=this.Qq(b,a,g,f);y--;return d||e};c.prototype.Qq=function(b,a,f,g){var d=
!1,e,h,m,c;if(a)for(m=this.rn(b,a,a.type.name,f,g),d=d||m,c=a.type.Ea,e=0,h=c.length;e<h;++e)m=this.rn(b,a,c[e].name,f,g),d=d||m;else m=this.rn(b,a,"system",f,g),d=d||m;return d};c.prototype.rn=function(b,a,f,g,d){var e,h=!1,m=!1,m="undefined"!==typeof d,c=(m?g.vo:g.Rq)[f];if(!c)return h;var t=null;g=0;for(e=c.length;g<e;++g)if(c[g].method==b){t=c[g].bh;break}if(!t)return h;var u;m?u=t[d]:u=t;if(!u)return null;g=0;for(e=u.length;g<e;g++)b=u[g][0],d=u[g][1],m=this.It(a,f,b,d),h=h||m;return h};c.prototype.It=
function(b,a,f,g){var d,e,h=!1;this.sn++;var m=this.Ra().Pa;m&&this.$h(m.Re);var c=1<this.sn;this.$h(f.Re);c&&this.vv();var t=this.ik(f);t.Pa=f;b&&(d=this.types[a].ca(),d.ma=!1,W(d.c),d.c[0]=b,this.types[a].Md());b=!0;if(f.parent){a=t.Kq;for(d=f.parent;d;)a.push(d),d=d.parent;a.reverse();d=0;for(e=a.length;d<e;d++)if(!a[d].Iv()){b=!1;break}}b&&(this.dh++,f.Dc?f.Hv(g):f.Ua(),h=h||t.tf);this.dk();c&&this.lv();this.be(f.Re);m&&this.be(m.Re);this.Ee&&0===this.fd&&0===y&&!this.gm&&this.Jb();this.sn--;
return h};c.prototype.El=function(){var b=this.Ra();return b.Pa.ab[b.Oa]};c.prototype.Bu=function(){return 0===this.Ra().Oa};c.prototype.vv=function(){this.Lj++;this.Lj>=this.um.length&&this.um.push([])};c.prototype.lv=function(){this.Lj--};c.prototype.Ho=function(){return this.um[this.Lj]};c.prototype.ik=function(b){this.aj++;this.aj>=this.rl.length&&this.rl.push(new Rb);var a=this.Ra();a.reset(b);return a};c.prototype.dk=function(){this.aj--};c.prototype.Ra=function(){return this.rl[this.aj]};c.prototype.wv=
function(b){this.Nj++;this.Nj>=this.wm.length&&this.wm.push(aa({name:b,index:0,Wa:!1}));var a=this.Tt();a.name=b;a.index=0;a.Wa=!1;return a};c.prototype.nv=function(){this.Nj--};c.prototype.Tt=function(){return this.wm[this.Nj]};c.prototype.Io=function(b,a){for(var f,g,d,e,h,m;a;){f=0;for(g=a.Uc.length;f<g;f++)if(m=a.Uc[f],m instanceof Sb&&mb(b,m.name))return m;a=a.parent}f=0;for(g=this.Rd.length;f<g;f++)for(h=this.Rd[f],d=0,e=h.Ce.length;d<e;d++)if(m=h.Ce[d],m instanceof Sb&&mb(b,m.name))return m;
return null};c.prototype.Jo=function(b){var a,f;a=0;for(f=this.gd.length;a<f;a++)if(this.gd[a].T===b)return this.gd[a];return null};c.prototype.nj=function(b){var a,f;a=0;for(f=this.q.length;a<f;a++)if(this.q[a].T===b)return this.q[a];return null};c.prototype.Vt=function(b){var a,f;a=0;for(f=this.se.length;a<f;a++)if(this.se[a].T===b)return this.se[a];return null};c.prototype.As=function(b,a){this.ki=[b,a];this.na=!0};c.prototype.ru=function(){var b=this,a=this.bn,f=this.Xd,g=this.Gj,d=!1;this.Gq&&
(d=!0,a="__c2_continuouspreview",this.Gq=!1);if(a.length){this.Jb();f=this.Mv();if(k()&&!this.Oc)r(a,f,function(){ea("Saved state to IndexedDB storage ("+f.length+" bytes)");b.Xd=f;b.trigger(Z.prototype.n.Tk,null);b.Xd="";d&&l()},function(g){try{localStorage.setItem("__c2save_"+a,f),ea("Saved state to WebStorage ("+f.length+" bytes)"),b.Xd=f,b.trigger(Z.prototype.n.Tk,null),b.Xd="",d&&l()}catch(e){ea("Failed to save game state: "+g+"; "+e),b.trigger(Z.prototype.n.Nn,null)}});else try{localStorage.setItem("__c2save_"+
a,f),ea("Saved state to WebStorage ("+f.length+" bytes)"),b.Xd=f,this.trigger(Z.prototype.n.Tk,null),b.Xd="",d&&l()}catch(e){ea("Error saving to WebStorage: "+e),b.trigger(Z.prototype.n.Nn,null)}this.Gj=this.bn="";this.hb=null}if(g.length){if(k()&&!this.Oc)p(g,function(a){a?(b.hb=a,ea("Loaded state from IndexedDB storage ("+b.hb.length+" bytes)")):(b.hb=localStorage.getItem("__c2save_"+g)||"",ea("Loaded state from WebStorage ("+b.hb.length+" bytes)"));b.li=!1;b.hb||(b.hb=null,b.trigger(Z.prototype.n.xi,
null))},function(){b.hb=localStorage.getItem("__c2save_"+g)||"";ea("Loaded state from WebStorage ("+b.hb.length+" bytes)");b.li=!1;b.hb||(b.hb=null,b.trigger(Z.prototype.n.xi,null))});else{try{this.hb=localStorage.getItem("__c2save_"+g)||"",ea("Loaded state from WebStorage ("+this.hb.length+" bytes)")}catch(h){this.hb=null}this.li=!1;b.hb||(b.hb=null,b.trigger(Z.prototype.n.xi,null))}this.bn=this.Gj=""}null!==this.hb&&(this.Jb(),this.Nu(this.hb)?(this.Xd=this.hb,this.trigger(Z.prototype.n.Or,null),
this.Xd=""):b.trigger(Z.prototype.n.xi,null),this.hb=null)};c.prototype.Mv=function(){var b,f,g,d,e,h,m,c={c2save:!0,version:1,rt:{time:this.Bb.X,walltime:this.ke.X,timescale:this.Ng,tickcount:this.Lg,execcount:this.dh,next_uid:this.Vh,running_layout:this.la.T,start_time_offset:Date.now()-this.xk},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};b=0;for(f=this.q.length;b<f;b++)if(e=this.q[b],!e.C&&!this.tn(e)){h={instances:[]};Ya(e.Ca)&&(h.ex=a(e.Ca));g=0;for(d=e.c.length;g<d;g++)h.instances.push(this.an(e.c[g]));
c.types[e.T.toString()]=h}b=0;for(f=this.gd.length;b<f;b++)g=this.gd[b],c.layouts[g.T.toString()]=g.Ob();d=c.events.groups;b=0;for(f=this.se.length;b<f;b++)g=this.se[b],d[g.T.toString()]=this.kh[g.jh].Vf;f=c.events.cnds;for(m in this.xe)this.xe.hasOwnProperty(m)&&(b=this.xe[m],Ya(b.Ca)&&(f[m]={ex:a(b.Ca)}));f=c.events.acts;for(m in this.qe)this.qe.hasOwnProperty(m)&&(b=this.qe[m],Ya(b.Ca)&&(f[m]={ex:a(b.Ca)}));f=c.events.vars;for(m in this.Qg)this.Qg.hasOwnProperty(m)&&(b=this.Qg[m],b.Bj||b.parent&&
!b.zh||(f[m]=b.data));c.system=this.Jd.Ob();return JSON.stringify(c)};c.prototype.mq=function(){var b,a,f,g,d,e;this.$d={};b=0;for(a=this.q.length;b<a;b++)if(f=this.q[b],!f.C)for(g=0,d=f.c.length;g<d;g++)e=f.c[g],this.$d[e.uid.toString()]=e};c.prototype.Nu=function(b){var a;try{a=JSON.parse(b)}catch(f){return!1}if(!a.c2save||1<a.version)return!1;this.rh=!0;b=a.rt;this.Bb.reset();this.Bb.X=b.time;this.ke.reset();this.ke.X=b.walltime||0;this.Ng=b.timescale;this.Lg=b.tickcount;this.dh=b.execcount;this.xk=
Date.now()-b.start_time_offset;var g=b.running_layout;if(g!==this.la.T)if(g=this.Jo(g))this.oo(g);else return;var d,e,h,m,c,t,u;t=a.types;for(e in t)if(t.hasOwnProperty(e)&&(m=this.nj(parseInt(e,10)))&&!m.C&&!this.tn(m)){t[e].ex?m.Ca=t[e].ex:Za(m.Ca);c=m.c;h=t[e].instances;g=0;for(d=oa(c.length,h.length);g<d;g++)this.Hj(c[g],h[g]);g=h.length;for(d=c.length;g<d;g++)this.ne(c[g]);g=c.length;for(d=h.length;g<d;g++){c=null;if(m.xa.He&&(c=this.la.mj(h[g].w.l),!c))continue;c=this.ze(m.Jc,c,!1,0,0,!0);this.Hj(c,
h[g])}m.Ig=!0}this.Jb();this.mq();d=a.layouts;for(e in d)d.hasOwnProperty(e)&&(g=this.Jo(parseInt(e,10)))&&g.ec(d[e]);d=a.events.groups;for(e in d)d.hasOwnProperty(e)&&(g=this.Vt(parseInt(e,10)))&&this.kh[g.jh]&&this.kh[g.jh].wq(d[e]);g=a.events.cnds;for(e in this.xe)this.xe.hasOwnProperty(e)&&(g.hasOwnProperty(e)?this.xe[e].Ca=g[e].ex:this.xe[e].Ca={});g=a.events.acts;for(e in this.qe)this.qe.hasOwnProperty(e)&&(g.hasOwnProperty(e)?this.qe[e].Ca=g[e].ex:this.qe[e].Ca={});g=a.events.vars;for(e in g)g.hasOwnProperty(e)&&
this.Qg.hasOwnProperty(e)&&(this.Qg[e].data=g[e]);this.Vh=b.next_uid;this.rh=!1;g=0;for(d=this.ej.length;g<d;++g)c=this.ej[g],this.trigger(Object.getPrototypeOf(c.type.xa).n.ti,c);W(this.ej);this.Jd.ec(a.system);g=0;for(d=this.q.length;g<d;g++)if(m=this.q[g],!m.C&&!this.tn(m))for(a=0,e=m.c.length;a<e;a++){c=m.c[a];if(m.cc)for(t=c.ih(),W(c.siblings),b=0,h=m.nc.length;b<h;b++)u=m.nc[b],m!==u&&c.siblings.push(u.c[t]);c.Kd&&c.Kd();if(c.D)for(b=0,h=c.D.length;b<h;b++)t=c.D[b],t.Kd&&t.Kd()}return this.na=
!0};c.prototype.an=function(b,f){var g,d,e,h,m;h=b.type;e=h.xa;var c={};f?c.c2=!0:c.uid=b.uid;Ya(b.Ca)&&(c.ex=a(b.Ca));if(b.eb&&b.eb.length)for(c.ivs={},g=0,d=b.eb.length;g<d;g++)c.ivs[b.type.$l[g].toString()]=b.eb[g];if(e.He){e={x:b.x,y:b.y,w:b.width,h:b.height,l:b.j.T,zi:b.Mc()};0!==b.d&&(e.a=b.d);1!==b.opacity&&(e.o=b.opacity);.5!==b.$b&&(e.hX=b.$b);.5!==b.ac&&(e.hY=b.ac);0!==b.Kb&&(e.bm=b.Kb);b.visible||(e.v=b.visible);b.Ye||(e.ce=b.Ye);-1!==b.Uh&&(e.mts=b.Uh);if(h.L.length)for(e.fx=[],g=0,d=
h.L.length;g<d;g++)m=h.L[g],e.fx.push({name:m.name,active:b.pe[m.index],params:b.Ja[m.index]});c.w=e}if(b.D&&b.D.length)for(c.behs={},g=0,d=b.D.length;g<d;g++)h=b.D[g],h.Ob&&(c.behs[h.type.T.toString()]=h.Ob());b.Ob&&(c.data=b.Ob());return c};c.prototype.Xt=function(b,a){var f,g;f=0;for(g=b.$l.length;f<g;f++)if(b.$l[f]===a)return f;return-1};c.prototype.Rt=function(b,a){var f,g;f=0;for(g=b.D.length;f<g;f++)if(b.D[f].type.T===a)return f;return-1};c.prototype.Hj=function(b,a,f){var g,d,e,h,m;m=b.type;
var c=m.xa;if(f){if(!a.c2)return}else b.uid=a.uid;a.ex?b.Ca=a.ex:Za(b.Ca);if(d=a.ivs)for(g in d)d.hasOwnProperty(g)&&(e=this.Xt(m,parseInt(g,10)),0>e||e>=b.eb.length||(h=d[g],null===h&&(h=NaN),b.eb[e]=h));if(c.He){e=a.w;b.j.T!==e.l&&(d=b.j,b.j=this.la.mj(e.l),b.j?(d.Ag(b,!0),b.j.Ug(b,!0),b.ya(),b.j.gi(0)):(b.j=d,f||this.ne(b)));b.x=e.x;b.y=e.y;b.width=e.w;b.height=e.h;b.td=e.zi;b.d=e.hasOwnProperty("a")?e.a:0;b.opacity=e.hasOwnProperty("o")?e.o:1;b.$b=e.hasOwnProperty("hX")?e.hX:.5;b.ac=e.hasOwnProperty("hY")?
e.hY:.5;b.visible=e.hasOwnProperty("v")?e.v:!0;b.Ye=e.hasOwnProperty("ce")?e.ce:!0;b.Uh=e.hasOwnProperty("mts")?e.mts:-1;b.Kb=e.hasOwnProperty("bm")?e.bm:0;b.Xg=jb(b.Kb);this.A&&kb(b,b.Kb,this.A);b.ya();if(e.hasOwnProperty("fx"))for(f=0,d=e.fx.length;f<d;f++)h=m.Gl(e.fx[f].name),0>h||(b.pe[h]=e.fx[f].active,b.Ja[h]=e.fx[f].params);b.qd()}if(m=a.behs)for(g in m)m.hasOwnProperty(g)&&(f=this.Rt(b,parseInt(g,10)),0>f||b.D[f].ec(m[g]));a.data&&b.ec(a.data)};c.prototype.wo=function(b,a,f){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+
"www/"+b,function(b){b.file(a,f)},f)};c.prototype.Jt=function(b,a){this.wo("data.js",function(f){var g=new FileReader;g.onload=function(a){b(a.target.result)};g.onerror=a;g.readAsText(f)},a)};var G=[],B=0;c.prototype.ym=function(){if(G.length&&!(8<=B)){B++;var b=G.shift();this.Ds(b.filename,b.Wv,b.bt)}};c.prototype.xo=function(b,a,f){var g=this;G.push({filename:b,Wv:function(b){B--;g.ym();a(b)},bt:function(b){B--;g.ym();f(b)}});this.ym()};c.prototype.Ds=function(b,a,f){this.wo(b,function(b){var f=
new FileReader;f.onload=function(b){a(b.target.result)};f.readAsArrayBuffer(b)},f)};c.prototype.Kt=function(b,a,f){var g="",d=b.toLowerCase(),e=d.substr(d.length-4),d=d.substr(d.length-5);".mp4"===e?g="video/mp4":".webm"===d?g="video/webm":".m4a"===e?g="audio/mp4":".mp3"===e&&(g="audio/mpeg");this.xo(b,function(b){b=URL.createObjectURL(new Blob([b],{type:g}));a(b)},f)};c.prototype.zu=function(b){return/^(?:[a-z]+:)?\/\//.test(b)||"data:"===b.substr(0,5)||"blob:"===b.substr(0,5)};c.prototype.xq=function(b,
a){this.Aj&&!this.zu(a)?this.Kt(a,function(a){b.src=a},function(b){alert("Failed to load image: "+b)}):b.src=a};c.prototype.pk=function(b,a){"undefined"!==typeof b.imageSmoothingEnabled?b.imageSmoothingEnabled=a:(b.webkitImageSmoothingEnabled=a,b.mozImageSmoothingEnabled=a,b.msImageSmoothingEnabled=a)};Tb=function(b){return new c(document.getElementById(b))};Ub=function(b,a){return new c({dc:!0,width:b,height:a})};window.cr_createRuntime=Tb;window.cr_createDCRuntime=Ub;window.createCocoonJSRuntime=
function(){window.c2cocoonjs=!0;var b=document.createElement("screencanvas")||document.createElement("canvas");b.$k=!0;document.body.appendChild(b);b=new c(b);window.c2runtime=b;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);return b};window.createEjectaRuntime=function(){var b=new c(document.getElementById("canvas"));window.c2runtime=b;window.c2runtime.setSize(window.innerWidth,
window.innerHeight);return b}})();window.cr_getC2Runtime=function(){var c=document.getElementById("c2canvas");return c?c.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(c,n){var k=window.cr_getC2Runtime();k&&k.As(c,n)};window.cr_sizeCanvas=function(c,n){if(0!==c&&0!==n){var k=window.cr_getC2Runtime();k&&k.setSize(c,n)}};window.cr_setSuspended=function(c){var n=window.cr_getC2Runtime();n&&n.setSuspended(c)};
(function(){function c(b,a){this.b=b;this.gf=null;this.scrollX=this.b.jb/2;this.scrollY=this.b.ib/2;this.scale=1;this.d=0;this.Uf=!0;this.name=a[0];this.gv=a[1];this.dv=a[2];this.width=a[1];this.height=a[2];this.Uq=a[3];this.Eq=a[4];this.T=a[5];var d=a[6],g,e;this.M=[];this.oh=[];g=0;for(e=d.length;g<e;g++){var c=new Vb(this,d[g]);c.Lp=g;this.M.push(c)}d=a[7];this.Fe=[];g=0;for(e=d.length;g<e;g++){var c=d[g],l=this.b.q[c[1]];l.Jc||(l.Jc=c);this.Fe.push(c);-1===this.oh.indexOf(l)&&this.oh.push(l)}this.L=
[];this.ba=[];this.fe=!0;this.Ja=[];g=0;for(e=a[8].length;g<e;g++)this.L.push({id:a[8][g][0],name:a[8][g][1],Va:-1,jd:!1,Fa:!0,index:g}),this.Ja.push(a[8][g][2].slice(0));this.qd();this.Tm=new ua(0,0,1,1);this.Um=new ua(0,0,1,1);this.Ne={}}function n(b,a){return b.td-a.td}function k(b,a){this.nb=b;this.b=b.b;this.c=[];this.scale=1;this.d=0;this.Qd=!1;this.ie=new ua(0,0,0,0);this.Oq=new va;this.ra=this.ka=this.ta=this.ja=0;this.Gf=!1;this.me=-1;this.il=0;this.name=a[0];this.index=a[1];this.T=a[2];
this.visible=a[3];this.Zc=a[4];this.od=a[5];this.Rc=a[6];this.Sc=a[7];this.opacity=a[8];this.hj=a[9];this.Fc=a[10];this.ud=a[11];this.Kb=a[12];this.Xs=a[13];this.Xg="source-over";this.Mb=this.Qb=0;this.Fb=null;this.Yd=q();this.md=!0;this.hg=new ua(0,0,-1,-1);this.xb=new ua(0,0,-1,-1);this.Fc&&(this.Fb=new hb(this.b.jb,this.b.ib));this.Gd=!1;var d=a[14],g,e;this.Iq=[];this.Bc=[];this.Zg=[];g=0;for(e=d.length;g<e;g++){var c=d[g],l=this.b.q[c[1]];l.Jc||(l.Jc=c,l.zs=this.index);this.Bc.push(c);-1===this.nb.oh.indexOf(l)&&
this.nb.oh.push(l)}za(this.Iq,this.Bc);this.L=[];this.ba=[];this.fe=!0;this.Ja=[];g=0;for(e=a[15].length;g<e;g++)this.L.push({id:a[15][g][0],name:a[15][g][1],Va:-1,jd:!1,Fa:!0,index:g}),this.Ja.push(a[15][g][2].slice(0));this.qd();this.Tm=new ua(0,0,1,1);this.Um=new ua(0,0,1,1)}function q(){return a.length?a.pop():[]}function r(b){W(b);a.push(b)}c.prototype.Lv=function(b){var a=b.type.T.toString();this.Ne.hasOwnProperty(a)||(this.Ne[a]=[]);this.Ne[a].push(this.b.an(b))};c.prototype.No=function(){var b=
this.M[0];return!b.od&&1===b.opacity&&!b.hj&&b.visible};c.prototype.qd=function(){W(this.ba);this.fe=!0;var b,a,d;b=0;for(a=this.L.length;b<a;b++)d=this.L[b],d.Fa&&(this.ba.push(d),d.jd||(this.fe=!1))};c.prototype.Fl=function(b){var a,d,g;a=0;for(d=this.L.length;a<d;a++)if(g=this.L[a],g.name===b)return g;return null};var p=[],l=!0;c.prototype.jn=function(){this.Eq&&(this.gf=this.b.sl[this.Eq],this.gf.vn());this.b.la=this;this.width=this.gv;this.height=this.dv;this.scrollX=this.b.jb/2;this.scrollY=
this.b.ib/2;var b,a,d,g,e,c,k;b=0;for(d=this.b.q.length;b<d;b++)if(a=this.b.q[b],!a.C)for(e=a.c,a=0,g=e.length;a<g;a++)if(c=e[a],c.j){var m=c.j.Lp;m>=this.M.length&&(m=this.M.length-1);c.j=this.M[m];-1===c.j.c.indexOf(c)&&c.j.c.push(c);c.j.Gf=!0}if(!l)for(b=0,d=this.M.length;b<d;++b)this.M[b].c.sort(n);W(p);this.qs();b=0;for(d=this.M.length;b<d;b++)c=this.M[b],c.ys(),c.Kk();e=!1;if(!this.Uf){for(k in this.Ne)if(this.Ne.hasOwnProperty(k)&&(a=this.b.nj(parseInt(k,10)))&&!a.C&&this.b.un(a)){g=this.Ne[k];
b=0;for(d=g.length;b<d;b++){c=null;if(a.xa.He&&(c=this.mj(g[b].w.l),!c))continue;c=this.b.ze(a.Jc,c,!1,0,0,!0);this.b.Hj(c,g[b]);e=!0;p.push(c)}W(g)}b=0;for(d=this.M.length;b<d;b++)this.M[b].c.sort(n),this.M[b].Gf=!0}e&&(this.b.Jb(),this.b.mq());for(b=0;b<p.length;b++)if(c=p[b],c.type.cc)for(d=c.ih(),a=0,g=c.type.nc.length;a<g;a++)k=c.type.nc[a],c.type!==k&&(k.c.length>d?c.siblings.push(k.c[d]):k.Jc&&(e=this.b.ze(k.Jc,c.j,!0,c.x,c.y,!0),this.b.Jb(),k.Ik(),c.siblings.push(e),p.push(e)));b=0;for(d=
this.Fe.length;b<d;b++)c=this.Fe[b],a=this.b.q[c[1]],a.cc||this.b.ze(this.Fe[b],null,!0);this.b.Wg=null;this.b.Jb();if(this.b.Ia&&!this.b.fb)for(b=0,d=this.b.q.length;b<d;b++)k=this.b.q[b],!k.C&&k.c.length&&k.gk&&k.gk(this.b.Ia);if(this.b.rh)za(this.b.ej,p);else for(b=0,d=p.length;b<d;b++)c=p[b],this.b.trigger(Object.getPrototypeOf(c.type.xa).n.ti,c);W(p);this.b.rh||this.b.trigger(Z.prototype.n.Kn,null);this.Uf=!1};c.prototype.xs=function(){var b,a,d,g,e;a=b=0;for(d=this.Fe.length;b<d;b++)g=this.Fe[b],
e=this.b.q[g[1]],e.global?e.cc||this.b.ze(g,null,!0):(this.Fe[a]=g,a++);ya(this.Fe,a)};c.prototype.Vv=function(){this.b.rh||this.b.trigger(Z.prototype.n.Nr,null);this.b.cm=!0;W(this.b.Jd.Ib);var b,a,d,g,e,c;if(!this.Uf)for(b=0,a=this.M.length;b<a;b++)for(this.M[b].xn(),e=this.M[b].c,d=0,g=e.length;d<g;d++)c=e[d],c.type.global||this.b.un(c.type)&&this.Lv(c);b=0;for(a=this.M.length;b<a;b++){e=this.M[b].c;d=0;for(g=e.length;d<g;d++)c=e[d],c.type.global||this.b.ne(c);this.b.Jb();W(e);this.M[b].Gf=!0}b=
0;for(a=this.b.q.length;b<a;b++)if(e=this.b.q[b],!(e.global||e.xa.He||e.xa.tk||e.C)){d=0;for(g=e.c.length;d<g;d++)this.b.ne(e.c[d]);this.b.Jb()}l=!1;this.b.cm=!1};new ua(0,0,0,0);c.prototype.cd=function(b){var a,d=b,g=!1,e=!this.b.yc;e&&(this.b.Fj||(this.b.Fj=document.createElement("canvas"),a=this.b.Fj,a.width=this.b.G,a.height=this.b.F,this.b.ip=a.getContext("2d"),g=!0),a=this.b.Fj,d=this.b.ip,a.width!==this.b.G&&(a.width=this.b.G,g=!0),a.height!==this.b.F&&(a.height=this.b.F,g=!0),g&&this.b.pk(d,
this.b.Da));d.globalAlpha=1;d.globalCompositeOperation="source-over";this.b.eo&&!this.No()&&d.clearRect(0,0,this.b.G,this.b.F);var c,l,g=0;for(c=this.M.length;g<c;g++)l=this.M[g],l.visible&&0<l.opacity&&11!==l.Kb&&(l.c.length||!l.od)?l.cd(d):l.Kk();e&&b.drawImage(a,0,0,this.b.width,this.b.height)};c.prototype.Sf=function(b){b.vq(!0);this.b.Sa||(this.b.Sa=b.Hc(this.b.G,this.b.F,this.b.Da));if(this.b.Sa.Xe!==this.b.G||this.b.Sa.We!==this.b.F)b.deleteTexture(this.b.Sa),this.b.Sa=b.Hc(this.b.G,this.b.F,
this.b.Da);b.Tc(this.b.Sa);this.b.yc||b.ee(this.b.G,this.b.F);var a,d;for(a=this.M.length-1;0<=a;--a)d=this.M[a],d.visible&&1===d.opacity&&d.fe&&0===d.Kb&&(d.c.length||!d.od)?d.Sf(b):d.Kk();b.vq(!1)};c.prototype.Zb=function(b){var a=0<this.ba.length||this.b.Og||!this.b.yc||this.b.ua;if(a){this.b.Sa||(this.b.Sa=b.Hc(this.b.G,this.b.F,this.b.Da));if(this.b.Sa.Xe!==this.b.G||this.b.Sa.We!==this.b.F)b.deleteTexture(this.b.Sa),this.b.Sa=b.Hc(this.b.G,this.b.F,this.b.Da);b.Tc(this.b.Sa);this.b.yc||b.ee(this.b.G,
this.b.F)}else this.b.Sa&&(b.Tc(null),b.deleteTexture(this.b.Sa),this.b.Sa=null);this.b.eo&&!this.No()&&b.clear(0,0,0,0);var d,g,e;d=0;for(g=this.M.length;d<g;d++)e=this.M[d],e.visible&&0<e.opacity&&(e.c.length||!e.od)?e.Zb(b):e.Kk();a&&(0===this.ba.length||1===this.ba.length&&this.b.yc?(1===this.ba.length?(a=this.ba[0].index,b.kc(this.ba[0].Va),b.Cg(null,1/this.b.G,1/this.b.F,0,0,1,1,this.scale,this.d,0,0,this.b.G/2,this.b.F/2,this.b.Bb.X,this.Ja[a]),b.hk(this.ba[0].Va)&&(this.b.na=!0)):b.kc(0),
this.b.yc||b.ee(this.b.width,this.b.height),b.Tc(null),b.uq(!1),b.Cf(1),b.vc(this.b.Sa),b.sq(),b.Hd(),b.rd(),a=this.b.width/2,d=this.b.height/2,b.zg(-a,d,a,d,a,-d,-a,-d),b.vc(null),b.uq(!0)):this.Vm(b,null,null,null))};c.prototype.hh=function(){return 0<this.ba.length||this.b.Og||!this.b.yc||this.b.ua?this.b.Sa:null};c.prototype.Ko=function(){var b=this.M[0].Ac(),a,d,g;a=1;for(d=this.M.length;a<d;a++)g=this.M[a],(0!==g.Rc||0!==g.Sc)&&g.Ac()<b&&(b=g.Ac());return b};c.prototype.qq=function(b){if(!this.Uq){var a=
1/this.Ko()*this.b.G/2;b>this.width-a&&(b=this.width-a);b<a&&(b=a)}this.scrollX!==b&&(this.scrollX=b,this.b.na=!0)};c.prototype.rq=function(b){if(!this.Uq){var a=1/this.Ko()*this.b.F/2;b>this.height-a&&(b=this.height-a);b<a&&(b=a)}this.scrollY!==b&&(this.scrollY=b,this.b.na=!0)};c.prototype.qs=function(){this.qq(this.scrollX);this.rq(this.scrollY)};c.prototype.Vm=function(b,a,d,g){var e=d?d.ba:a?a.ba:this.ba,c=1,l=0,m=0,u=0,p=this.b.G,k=this.b.F;d?(c=d.j.Ac(),l=d.j.zb(),m=d.j.ja,u=d.j.ka,p=d.j.ta,
k=d.j.ra):a&&(c=a.Ac(),l=a.zb(),m=a.ja,u=a.ka,p=a.ta,k=a.ra);var n=this.b.Al,r,q,D,w,P=0,M=1,Q,J,y=this.b.G,G=this.b.F,B=y/2,x=G/2,z=a?a.Tm:this.Tm,I=a?a.Um:this.Um,H=0,K=0,O=0,L=0,V=y,qa=y,U=G,sa=G,ha=D=0;w=d?d.j.zb():0;if(d){r=0;for(q=e.length;r<q;r++)D+=b.au(e[r].Va),ha+=b.bu(e[r].Va);L=d.Ga;H=a.Vb(L.left,L.top,!0,!0);O=a.Vb(L.left,L.top,!1,!0);V=a.Vb(L.right,L.bottom,!0,!0);U=a.Vb(L.right,L.bottom,!1,!0);0!==w&&(r=a.Vb(L.right,L.top,!0,!0),q=a.Vb(L.right,L.top,!1,!0),K=a.Vb(L.left,L.bottom,!0,
!0),L=a.Vb(L.left,L.bottom,!1,!0),w=Math.min(H,V,r,K),V=Math.max(H,V,r,K),H=w,w=Math.min(O,U,q,L),U=Math.max(O,U,q,L),O=w);H-=D;O-=ha;V+=D;U+=ha;I.left=H/y;I.top=1-O/G;I.right=V/y;I.bottom=1-U/G;K=H=R(H);L=O=R(O);qa=V=ra(V);sa=U=ra(U);K-=D;L-=ha;qa+=D;sa+=ha;0>H&&(H=0);0>O&&(O=0);V>y&&(V=y);U>G&&(U=G);0>K&&(K=0);0>L&&(L=0);qa>y&&(qa=y);sa>G&&(sa=G);z.left=H/y;z.top=1-O/G;z.right=V/y;z.bottom=1-U/G}else z.left=I.left=0,z.top=I.top=0,z.right=I.right=1,z.bottom=I.bottom=1;ha=d&&(b.Zh(e[0].Va)||0!==D||
0!==ha||1!==d.opacity||d.type.xa.Fp)||a&&!d&&1!==a.opacity;b.sq();if(ha){n[P]||(n[P]=b.Hc(y,G,this.b.Da));if(n[P].Xe!==y||n[P].We!==G)b.deleteTexture(n[P]),n[P]=b.Hc(y,G,this.b.Da);b.kc(0);b.Tc(n[P]);J=sa-L;b.clearRect(K,G-L-J,qa-K,J);d?d.Zb(b):(b.vc(this.b.gb),b.Cf(a.opacity),b.Hd(),b.translate(-B,-x),b.rd(),b.Pe(H,U,V,U,V,O,H,O,z));I.left=I.top=0;I.right=I.bottom=1;d&&(w=z.top,z.top=z.bottom,z.bottom=w);P=1;M=0}b.Cf(1);D=e.length-1;var Ba=b.Rm(e[D].Va)||!a&&!d&&!this.b.yc;r=w=0;for(q=e.length;r<
q;r++){n[P]||(n[P]=b.Hc(y,G,this.b.Da));if(n[P].Xe!==y||n[P].We!==G)b.deleteTexture(n[P]),n[P]=b.Hc(y,G,this.b.Da);b.kc(e[r].Va);w=e[r].index;b.hk(e[r].Va)&&(this.b.na=!0);0!=r||ha?(b.Cg(g,1/y,1/G,I.left,I.top,I.right,I.bottom,c,l,m,u,(m+p)/2,(u+k)/2,this.b.Bb.X,d?d.Ja[w]:a?a.Ja[w]:this.Ja[w]),b.vc(null),r!==D||Ba?(b.Tc(n[P]),J=sa-L,Q=G-L-J,b.clearRect(K,Q,qa-K,J)):(d?b.Qe(d.Qb,d.Mb):a&&b.Qe(a.Qb,a.Mb),b.Tc(g)),b.vc(n[M]),b.Hd(),b.translate(-B,-x),b.rd(),b.Pe(H,U,V,U,V,O,H,O,z),r!==D||Ba||b.vc(null)):
(b.Tc(n[P]),J=sa-L,Q=G-L-J,b.clearRect(K,Q,qa-K,J),d?(d.wb&&d.wb.S?(Q=d.wb.S,M=1/Q.width,Q=1/Q.height):(M=1/d.width,Q=1/d.height),b.Cg(g,M,Q,I.left,I.top,I.right,I.bottom,c,l,m,u,(m+p)/2,(u+k)/2,this.b.Bb.X,d.Ja[w]),d.Zb(b)):(b.Cg(g,1/y,1/G,0,0,1,1,c,l,m,u,(m+p)/2,(u+k)/2,this.b.Bb.X,a?a.Ja[w]:this.Ja[w]),b.vc(a?this.b.gb:this.b.Sa),b.Hd(),b.translate(-B,-x),b.rd(),b.Pe(H,U,V,U,V,O,H,O,z)),I.left=I.top=0,I.right=I.bottom=1,d&&!Ba&&(w=U,U=O,O=w));P=0===P?1:0;M=0===P?1:0}Ba&&(b.kc(0),d?b.Qe(d.Qb,d.Mb):
a?b.Qe(a.Qb,a.Mb):this.b.yc||(b.ee(this.b.width,this.b.height),B=this.b.width/2,x=this.b.height/2,O=H=0,V=this.b.width,U=this.b.height),b.Tc(g),b.vc(n[M]),b.Hd(),b.translate(-B,-x),b.rd(),d&&1===e.length&&!ha?b.Pe(H,O,V,O,V,U,H,U,z):b.Pe(H,U,V,U,V,O,H,O,z),b.vc(null))};c.prototype.mj=function(b){var a,d;a=0;for(d=this.M.length;a<d;a++)if(this.M[a].T===b)return this.M[a];return null};c.prototype.Ob=function(){var b,a,d,g={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.d,w:this.width,h:this.height,
fv:this.Uf,persist:this.Ne,fx:[],layers:{}};b=0;for(a=this.L.length;b<a;b++)d=this.L[b],g.fx.push({name:d.name,active:d.Fa,params:this.Ja[d.index]});b=0;for(a=this.M.length;b<a;b++)d=this.M[b],g.layers[d.T.toString()]=d.Ob();return g};c.prototype.ec=function(b){var a,d,g,e;this.scrollX=b.sx;this.scrollY=b.sy;this.scale=b.s;this.d=b.a;this.width=b.w;this.height=b.h;this.Ne=b.persist;"undefined"!==typeof b.fv&&(this.Uf=b.fv);var c=b.fx;a=0;for(d=c.length;a<d;a++)if(g=this.Fl(c[a].name))g.Fa=c[a].active,
this.Ja[g.index]=c[a].params;this.qd();a=b.layers;for(e in a)a.hasOwnProperty(e)&&(b=this.mj(parseInt(e,10)))&&b.ec(a[e])};Hb=c;k.prototype.qd=function(){W(this.ba);this.fe=!0;var b,a,d;b=0;for(a=this.L.length;b<a;b++)d=this.L[b],d.Fa&&(this.ba.push(d),d.jd||(this.fe=!1))};k.prototype.Fl=function(b){var a,d,g;a=0;for(d=this.L.length;a<d;a++)if(g=this.L[a],g.name===b)return g;return null};k.prototype.ys=function(){var b,a,d,g,e,c;a=b=0;for(d=this.Bc.length;b<d;b++){g=this.Bc[b];e=this.b.q[g[1]];c=
this.b.un(e);e=!0;if(!c||this.nb.Uf){g=this.b.ze(g,this,!0);if(!g)continue;p.push(g);g.type.global&&(e=!1,this.Zg.push(g.uid))}e&&(this.Bc[a]=this.Bc[b],a++)}this.Bc.length=a;this.b.Jb();!this.b.u&&this.L.length&&(this.Kb=this.Xs);this.Xg=jb(this.Kb);this.b.A&&kb(this,this.Kb,this.b.A);this.md=!0};k.prototype.Ag=function(b,a){var d=Da(this.c,b);0>d||(a&&this.Fc&&b.hc&&b.hc.right>=b.hc.left&&(b.za(),this.Fb.update(b,b.hc,null),b.hc.set(0,0,-1,-1)),d===this.c.length-1?this.c.pop():(xa(this.c,d),this.gi(d)),
this.md=!0)};k.prototype.Ug=function(b,a){b.td=this.c.length;this.c.push(b);a&&this.Fc&&b.hc&&b.ya();this.md=!0};k.prototype.sv=function(b){this.c.unshift(b);this.gi(0)};k.prototype.Su=function(b,a,d){var g=b.Mc();a=a.Mc();xa(this.c,g);g<a&&a--;d&&a++;a===this.c.length?this.c.push(b):this.c.splice(a,0,b);this.gi(g<a?g:a)};k.prototype.gi=function(b){-1===this.me?this.me=b:b<this.me&&(this.me=b);this.md=this.Gf=!0};k.prototype.xn=function(){if(this.Gf){-1===this.me&&(this.me=0);var b,a,d;if(this.Fc)for(b=
this.me,a=this.c.length;b<a;++b)d=this.c[b],d.td=b,this.Fb.Pu(d.hc);else for(b=this.me,a=this.c.length;b<a;++b)this.c[b].td=b;this.Gf=!1;this.me=-1}};k.prototype.Ac=function(b){return this.Yt()*(this.b.yc||b?this.b.Vg:1)};k.prototype.Yt=function(){return(this.scale*this.nb.scale-1)*this.ud+1};k.prototype.zb=function(){return this.Qd?0:Ja(this.nb.d+this.d)};var a=[],d=[],e=[];k.prototype.Ll=function(){this.xn();this.Fb.jk(this.ja,this.ka,this.ta,this.ra,e);if(!e.length)return q();if(1===e.length){var b=
q();za(b,e[0]);W(e);return b}for(var a=!0;1<e.length;){for(var b=e,c=void 0,g=void 0,t=void 0,l=void 0,p=void 0,c=0,g=b.length;c<g-1;c+=2){var t=b[c],l=b[c+1],p=q(),m=t,u=l,k=p,n=0,F=0,N=0,T=m.length,D=u.length,w=void 0,P=void 0;for(k.length=T+D;n<T&&F<D;++N)w=m[n],P=u[F],w.td<P.td?(k[N]=w,++n):(k[N]=P,++F);for(;n<T;++n,++N)k[N]=m[n];for(;F<D;++F,++N)k[N]=u[F];a||(r(t),r(l));d.push(p)}1===g%2&&(a?(t=q(),za(t,b[g-1]),d.push(t)):d.push(b[g-1]));za(b,d);W(d);a=!1}b=e[0];W(e);return b};k.prototype.cd=
function(b){this.Gd=this.hj||1!==this.opacity||0!==this.Kb;var a=this.b.canvas,d=b,g=!1;this.Gd&&(this.b.Ej||(this.b.Ej=document.createElement("canvas"),a=this.b.Ej,a.width=this.b.G,a.height=this.b.F,this.b.hp=a.getContext("2d"),g=!0),a=this.b.Ej,d=this.b.hp,a.width!==this.b.G&&(a.width=this.b.G,g=!0),a.height!==this.b.F&&(a.height=this.b.F,g=!0),g&&this.b.pk(d,this.b.Da),this.od&&d.clearRect(0,0,this.b.G,this.b.F));d.globalAlpha=1;d.globalCompositeOperation="source-over";this.od||(d.fillStyle="rgb("+
this.Zc[0]+","+this.Zc[1]+","+this.Zc[2]+")",d.fillRect(0,0,this.b.G,this.b.F));d.save();this.Qd=!0;var g=this.$a(0,0,!0,!0),e=this.$a(0,0,!1,!0);this.Qd=!1;this.b.hd&&(g=Math.round(g),e=Math.round(e));this.mk(g,e,d);var c=this.Ac();d.scale(c,c);d.translate(-g,-e);this.Fc?(this.xb.left=this.Fb.Xb(this.ja),this.xb.top=this.Fb.Yb(this.ka),this.xb.right=this.Fb.Xb(this.ta),this.xb.bottom=this.Fb.Yb(this.ra),this.md||!this.xb.ah(this.hg)?(r(this.Yd),g=this.Ll(),this.md=!1,this.hg.Of(this.xb)):g=this.Yd):
g=this.c;for(var l,m=null,e=0,c=g.length;e<c;++e)l=g[e],l!==m&&(this.Ss(l,d),m=l);this.Fc&&(this.Yd=g);d.restore();this.Gd&&(b.globalCompositeOperation=this.Xg,b.globalAlpha=this.opacity,b.drawImage(a,0,0))};k.prototype.Ss=function(b,a){if(b.visible&&0!==b.width&&0!==b.height){b.za();var d=b.Ga;d.right<this.ja||d.bottom<this.ka||d.left>this.ta||d.top>this.ra||(a.globalCompositeOperation=b.Xg,b.cd(a))}};k.prototype.Kk=function(){this.Qd=!0;var b=this.$a(0,0,!0,!0),a=this.$a(0,0,!1,!0);this.Qd=!1;this.b.hd&&
(b=Math.round(b),a=Math.round(a));this.mk(b,a,null)};k.prototype.mk=function(b,a,d){var g=this.Ac();this.ja=b;this.ka=a;this.ta=b+1/g*this.b.G;this.ra=a+1/g*this.b.F;this.ja>this.ta&&(b=this.ja,this.ja=this.ta,this.ta=b);this.ka>this.ra&&(b=this.ka,this.ka=this.ra,this.ra=b);b=this.zb();0!==b&&(d&&(d.translate(this.b.G/2,this.b.F/2),d.rotate(-b),d.translate(this.b.G/-2,this.b.F/-2)),this.ie.set(this.ja,this.ka,this.ta,this.ra),this.ie.offset((this.ja+this.ta)/-2,(this.ka+this.ra)/-2),this.Oq.Cq(this.ie,
b),this.Oq.Zn(this.ie),this.ie.offset((this.ja+this.ta)/2,(this.ka+this.ra)/2),this.ja=this.ie.left,this.ka=this.ie.top,this.ta=this.ie.right,this.ra=this.ie.bottom)};k.prototype.Sf=function(b){if(this.Gd=this.hj){this.b.gb||(this.b.gb=b.Hc(this.b.G,this.b.F,this.b.Da));if(this.b.gb.Xe!==this.b.G||this.b.gb.We!==this.b.F)b.deleteTexture(this.b.gb),this.b.gb=b.Hc(this.b.G,this.b.F,this.b.Da);b.Tc(this.b.gb)}this.Qd=!0;var a=this.$a(0,0,!0,!0),d=this.$a(0,0,!1,!0);this.Qd=!1;this.b.hd&&(a=Math.round(a),
d=Math.round(d));this.mk(a,d,null);a=this.Ac();b.Hd();b.scale(a,a);b.Ym(-this.zb());b.translate((this.ja+this.ta)/-2,(this.ka+this.ra)/-2);b.rd();this.Fc?(this.xb.left=this.Fb.Xb(this.ja),this.xb.top=this.Fb.Yb(this.ka),this.xb.right=this.Fb.Xb(this.ta),this.xb.bottom=this.Fb.Yb(this.ra),this.md||!this.xb.ah(this.hg)?(r(this.Yd),a=this.Ll(),this.md=!1,this.hg.Of(this.xb)):a=this.Yd):a=this.c;for(var g,e=null,d=a.length-1;0<=d;--d)g=a[d],g!==e&&(this.Us(a[d],b),e=g);this.Fc&&(this.Yd=a);this.od||(this.il=
this.b.ef++,b.qk(this.il),b.tq(1,1,1),b.Do(),b.Dv())};k.prototype.Zb=function(b){var a=0,d=0;if(this.Gd=this.hj||1!==this.opacity||0<this.ba.length||0!==this.Kb){this.b.gb||(this.b.gb=b.Hc(this.b.G,this.b.F,this.b.Da));if(this.b.gb.Xe!==this.b.G||this.b.gb.We!==this.b.F)b.deleteTexture(this.b.gb),this.b.gb=b.Hc(this.b.G,this.b.F,this.b.Da);b.Tc(this.b.gb);this.od&&b.clear(0,0,0,0)}this.od||(this.b.ua?(b.qk(this.il),b.tq(this.Zc[0]/255,this.Zc[1]/255,this.Zc[2]/255),b.Do(),b.Rv()):b.clear(this.Zc[0]/
255,this.Zc[1]/255,this.Zc[2]/255,1));this.Qd=!0;var g=this.$a(0,0,!0,!0),a=this.$a(0,0,!1,!0);this.Qd=!1;this.b.hd&&(g=Math.round(g),a=Math.round(a));this.mk(g,a,null);g=this.Ac();b.Hd();b.scale(g,g);b.Ym(-this.zb());b.translate((this.ja+this.ta)/-2,(this.ka+this.ra)/-2);b.rd();this.Fc?(this.xb.left=this.Fb.Xb(this.ja),this.xb.top=this.Fb.Yb(this.ka),this.xb.right=this.Fb.Xb(this.ta),this.xb.bottom=this.Fb.Yb(this.ra),this.md||!this.xb.ah(this.hg)?(r(this.Yd),a=this.Ll(),this.md=!1,this.hg.Of(this.xb)):
a=this.Yd):a=this.c;var e,c,l=null,d=0;for(e=a.length;d<e;++d)c=a[d],c!==l&&(this.Ts(a[d],b),l=c);this.Fc&&(this.Yd=a);this.Gd&&(a=this.ba.length?this.ba[0].Va:0,d=this.ba.length?this.ba[0].index:0,0===this.ba.length||1===this.ba.length&&!b.Rm(a)&&1===this.opacity?(1===this.ba.length?(b.kc(a),b.Cg(this.nb.hh(),1/this.b.G,1/this.b.F,0,0,1,1,g,this.zb(),this.ja,this.ka,(this.ja+this.ta)/2,(this.ka+this.ra)/2,this.b.Bb.X,this.Ja[d]),b.hk(a)&&(this.b.na=!0)):b.kc(0),b.Tc(this.nb.hh()),b.Cf(this.opacity),
b.vc(this.b.gb),b.Qe(this.Qb,this.Mb),b.Hd(),b.rd(),g=this.b.G/2,a=this.b.F/2,b.zg(-g,a,g,a,g,-a,-g,-a),b.vc(null)):this.nb.Vm(b,this,null,this.nb.hh()))};k.prototype.Ts=function(b,a){if(b.visible&&0!==b.width&&0!==b.height){b.za();var d=b.Ga;d.right<this.ja||d.bottom<this.ka||d.left>this.ta||d.top>this.ra||(a.qk(b.ef),b.$q?this.Vs(b,a):(a.kc(0),a.Qe(b.Qb,b.Mb),b.Zb(a)))}};k.prototype.Us=function(b,a){if(b.visible&&0!==b.width&&0!==b.height){b.za();var d=b.Ga;d.right<this.ja||d.bottom<this.ka||d.left>
this.ta||d.top>this.ra||(b.ef=this.b.ef++,0===b.Kb&&1===b.opacity&&b.fe&&b.Sf&&(a.qk(b.ef),b.Sf(a)))}};k.prototype.Vs=function(b,a){var d=b.ba[0].Va,g=b.ba[0].index,e=this.Ac();if(1!==b.ba.length||a.Rm(d)||a.uv(d)||(b.d||b.j.zb())&&a.Zh(d)||1!==b.opacity||b.type.xa.Fp)this.nb.Vm(a,this,b,this.Gd?this.b.gb:this.nb.hh()),a.Hd(),a.scale(e,e),a.Ym(-this.zb()),a.translate((this.ja+this.ta)/-2,(this.ka+this.ra)/-2),a.rd();else{a.kc(d);a.Qe(b.Qb,b.Mb);a.hk(d)&&(this.b.na=!0);var c=0,l=0,m=0,u=0;a.Zh(d)&&
(u=b.Ga,c=this.Vb(u.left,u.top,!0,!0),l=this.Vb(u.left,u.top,!1,!0),m=this.Vb(u.right,u.bottom,!0,!0),u=this.Vb(u.right,u.bottom,!1,!0),c=c/windowWidth,l=1-l/windowHeight,m=m/windowWidth,u=1-u/windowHeight);var p;b.wb&&b.wb.S?(p=b.wb.S,d=1/p.width,p=1/p.height):(d=1/b.width,p=1/b.height);a.Cg(this.Gd?this.b.gb:this.nb.hh(),d,p,c,l,m,u,e,this.zb(),this.ja,this.ka,(this.ja+this.ta)/2,(this.ka+this.ra)/2,this.b.Bb.X,b.Ja[g]);b.Zb(a)}};k.prototype.$a=function(b,a,d,g){var e=this.b.devicePixelRatio;this.b.qf&&
(b*=e,a*=e);var e=this.b.bq,c=this.b.cq,e=(this.nb.scrollX-e)*this.Rc+e,c=(this.nb.scrollY-c)*this.Sc+c,l=e,m=c,u=1/this.Ac(!g);g?(l-=this.b.G*u/2,m-=this.b.F*u/2):(l-=this.b.width*u/2,m-=this.b.height*u/2);l+=b*u;m+=a*u;a=this.zb();0!==a&&(l-=e,m-=c,b=Math.cos(a),a=Math.sin(a),g=l*b-m*a,m=m*b+l*a,l=g+e,m+=c);return d?l:m};k.prototype.Vb=function(b,a,d,g){var e=this.b.bq,c=this.b.cq,l=(this.nb.scrollX-e)*this.Rc+e,m=(this.nb.scrollY-c)*this.Sc+c,c=l,e=m,u=this.zb();if(0!==u){b-=l;a-=m;var p=Math.cos(-u),
u=Math.sin(-u),k=b*p-a*u;a=a*p+b*u;b=k+l;a+=m}l=1/this.Ac(!g);g?(c-=this.b.G*l/2,e-=this.b.F*l/2):(c-=this.b.width*l/2,e-=this.b.height*l/2);c=(b-c)/l;e=(a-e)/l;b=this.b.devicePixelRatio;this.b.qf&&!g&&(c/=b,e/=b);return d?c:e};k.prototype.Ob=function(){var b,a,d,g={s:this.scale,a:this.d,vl:this.ja,vt:this.ka,vr:this.ta,vb:this.ra,v:this.visible,bc:this.Zc,t:this.od,px:this.Rc,py:this.Sc,o:this.opacity,zr:this.ud,fx:[],cg:this.Zg,instances:[]};b=0;for(a=this.L.length;b<a;b++)d=this.L[b],g.fx.push({name:d.name,
active:d.Fa,params:this.Ja[d.index]});return g};k.prototype.ec=function(b){var a,d,g;this.scale=b.s;this.d=b.a;this.ja=b.vl;this.ka=b.vt;this.ta=b.vr;this.ra=b.vb;this.visible=b.v;this.Zc=b.bc;this.od=b.t;this.Rc=b.px;this.Sc=b.py;this.opacity=b.o;this.ud=b.zr;this.Zg=b.cg||[];za(this.Bc,this.Iq);var e=new ca;a=0;for(g=this.Zg.length;a<g;++a)e.add(this.Zg[a]);d=a=0;for(g=this.Bc.length;a<g;++a)e.contains(this.Bc[a][2])||(this.Bc[d]=this.Bc[a],++d);ya(this.Bc,d);d=b.fx;a=0;for(g=d.length;a<g;a++)if(b=
this.Fl(d[a].name))b.Fa=d[a].active,this.Ja[b.index]=d[a].params;this.qd();this.c.sort(n);this.Gf=!0};Vb=k})();
(function(){function c(b,a){var d,g=b.length;switch(g){case 0:return!0;case 1:return b[0]===a[0];case 2:return b[0]===a[0]&&b[1]===a[1];default:for(d=0;d<g;d++)if(b[d]!==a[d])return!1;return!0}}function n(b,a){return b.index-a.index}function k(b){var a,d,g,e;2===b.length?b[0].index>b[1].index&&(a=b[0],b[0]=b[1],b[1]=a):2<b.length&&b.sort(n);b.length>=t.length&&(t.length=b.length+1);t[b.length]||(t[b.length]=[]);e=t[b.length];a=0;for(d=e.length;a<d;a++)if(g=e[a],c(b,g))return g;e.push(b);return b}
function q(b,a){this.b=b;this.Rq={};this.vo={};this.Sl=!1;this.Po=new ca;this.nl=[];this.Xk=[];this.name=a[0];var d=a[1];this.Ce=[];var g,e;g=0;for(e=d.length;g<e;g++)this.Ro(d[g],null,this.Ce)}function r(b){this.type=b;this.c=[];this.N=[];this.ma=!0}function p(b,a,d){this.sheet=b;this.parent=a;this.b=b.b;this.W=[];this.Re=[];this.Oo=this.Ek=this.qn=this.tj=this.group=this.gn=!1;this.ab=[];this.Xc=[];this.Uc=[];this.jh="";this.Vf=this.tj=this.group=!1;this.Qi=null;d[1]&&(this.jh=d[1][1].toLowerCase(),
this.group=!0,this.tj=!!d[1][0],this.Qi=[],this.Vf=this.tj,this.b.se.push(this),this.b.kh[this.jh]=this);this.Dc=d[2];this.T=d[4];this.group||(this.b.Yn[this.T.toString()]=this);var g=d[5];b=0;for(a=g.length;b<a;b++){var e=new Wb(this,g[b]);e.index=b;this.ab.push(e);this.Tn(e.type)}g=d[6];b=0;for(a=g.length;b<a;b++)e=new Xb(this,g[b]),e.index=b,this.Xc.push(e);if(8===d.length)for(d=d[7],b=0,a=d.length;b<a;b++)this.sheet.Ro(d[b],this,this.Uc);this.Cj=!1;this.ab.length&&(this.Cj=null==this.ab[0].type&&
this.ab[0].yb==Z.prototype.n.Hn)}function l(b,a){var d,g,e;if(b&&(-1===a.indexOf(b)&&a.push(b),b.cc))for(d=0,g=b.nc.length;d<g;d++)e=b.nc[d],b!==e&&-1===a.indexOf(e)&&a.push(e)}function a(b,a){this.wc=b;this.sheet=b.sheet;this.b=b.b;this.P=[];this.Ka=[];this.Ca={};this.index=-1;this.Sg=!1;this.yb=this.b.oe(a[1]);this.trigger=0<a[3];this.uo=2===a[3];this.Dd=a[4];this.uj=a[5];this.Lu=a[6];this.T=a[7];this.b.xe[this.T.toString()]=this;-1===a[0]?(this.type=null,this.Ua=this.$m,this.Ve=null,this.$c=-1):
(this.type=this.b.q[a[0]],this.Ua=this.Lu?this.Jv:this.Zm,a[2]?(this.Ve=this.type.kj(a[2]),this.$c=this.type.Cl(a[2])):(this.Ve=null,this.$c=-1),this.wc.parent&&this.wc.parent.rk());this.uo&&(this.Ua=this.Kv);if(10===a.length){var d,g,e=a[9];d=0;for(g=e.length;d<g;d++){var f=new Yb(this,e[d]);this.P.push(f)}this.Ka.length=e.length}}function d(b,a){this.wc=b;this.sheet=b.sheet;this.b=b.b;this.P=[];this.Ka=[];this.Ca={};this.index=-1;this.Sg=!1;this.yb=this.b.oe(a[1]);-1===a[0]?(this.type=null,this.Ua=
this.$m,this.Ve=null,this.$c=-1):(this.type=this.b.q[a[0]],this.Ua=this.Zm,a[2]?(this.Ve=this.type.kj(a[2]),this.$c=this.type.Cl(a[2])):(this.Ve=null,this.$c=-1));this.T=a[3];this.b.qe[this.T.toString()]=this;if(6===a.length){var d,g,e=a[5];d=0;for(g=e.length;d<g;d++){var f=new Yb(this,e[d]);this.P.push(f)}this.Ka.length=e.length}}function e(){S++;v.length===S&&v.push(new Zb);return v[S]}function b(b,a){this.wa=b;this.wc=b.wc;this.sheet=b.sheet;this.b=b.b;this.type=a[0];this.Ad=null;this.ge=0;this.get=
null;this.fo=0;this.nb=null;this.key=0;this.object=null;this.index=0;this.pi=this.Df=this.pi=this.Df=this.yo=this.hf=this.qi=null;this.Wc=!1;var d,g,e;switch(a[0]){case 0:case 7:this.Ad=new $b(this,a[1]);this.ge=0;this.get=this.gu;break;case 1:this.Ad=new $b(this,a[1]);this.ge=0;this.get=this.hu;break;case 5:this.Ad=new $b(this,a[1]);this.ge=0;this.get=this.lu;break;case 3:case 8:this.fo=a[1];this.get=this.eu;break;case 6:this.nb=this.b.om[a[1]];this.get=this.mu;break;case 9:this.key=a[1];this.get=
this.ku;break;case 4:this.object=this.b.q[a[1]];this.get=this.nu;this.wc.Tn(this.object);this.wa instanceof Xb?this.wc.rk():this.wc.parent&&this.wc.parent.rk();break;case 10:this.index=a[1];b.type&&b.type.C?(this.get=this.iu,this.Wc=!0):this.get=this.ju;break;case 11:this.qi=a[1];this.hf=null;this.get=this.fu;break;case 2:case 12:this.yo=a[1];this.get=this.du;break;case 13:for(this.get=this.ou,this.Df=[],this.pi=[],d=1,g=a.length;d<g;d++)e=new Yb(this.wa,a[d]),this.Df.push(e),this.pi.push(0)}}function f(b,
a,d){this.sheet=b;this.parent=a;this.b=b.b;this.W=[];this.name=d[1];this.An=d[2];this.sj=d[3];this.zh=!!d[4];this.Bj=!!d[5];this.T=d[6];this.b.Qg[this.T.toString()]=this;this.data=this.sj;this.parent?(this.yf=this.zh||this.Bj?-1:this.b.Tv++,this.b.ms.push(this)):(this.yf=-1,this.b.Vk.push(this))}function h(b,a,d){this.sheet=b;this.parent=a;this.b=b.b;this.W=[];this.nh=null;this.uu=d[1];this.Fa=!0}function g(){this.Kq=[];this.reset(null)}var t=[];q.prototype.toString=function(){return this.name};q.prototype.Ro=
function(b,a,d){switch(b[0]){case 0:b=new ac(this,a,b);if(b.Dc)for(d.push(b),d=0,a=b.ab.length;d<a;d++)b.ab[d].trigger&&this.So(b,d);else b.bp()?this.So(b,0):d.push(b);break;case 1:b=new Sb(this,a,b);d.push(b);break;case 2:b=new bc(this,a,b),d.push(b)}};q.prototype.Ma=function(){var b,a;b=0;for(a=this.Ce.length;b<a;b++)this.Ce[b].Ma(b<a-1&&this.Ce[b+1].Cj)};q.prototype.vn=function(){W(this.nl);W(this.Xk);this.Rn(this);W(this.Xk)};q.prototype.Rn=function(b){var a,d,g,e,f=b.nl,c=b.Xk,h=this.Po.sd();
a=0;for(d=h.length;a<d;++a)g=h[a],e=g.nh,!g.Fa||b===e||-1<c.indexOf(e)||(c.push(e),e.Rn(b),f.push(e))};q.prototype.Ua=function(b){this.b.wx||(this.Sl=!0,b||(this.b.gm=!0));var a,d;a=0;for(d=this.Ce.length;a<d;a++){var g=this.Ce[a];g.Ua();this.b.hl(g.W);this.b.Ee&&this.b.Jb()}b||(this.b.gm=!1)};q.prototype.So=function(b,a){b.Dc||this.b.Gk.push(b);var d,g,e=b.ab[a],f;e.type?f=e.type.name:f="system";var c=(d=e.uo)?this.vo:this.Rq;c[f]||(c[f]=[]);f=c[f];c=e.yb;if(d){if(e.P.length&&(e=e.P[0],1===e.type&&
2===e.Ad.type)){e=e.Ad.value.toLowerCase();d=0;for(g=f.length;d<g;d++)if(f[d].method==c){d=f[d].bh;d[e]?d[e].push([b,a]):d[e]=[[b,a]];return}d={};d[e]=[[b,a]];f.push({method:c,bh:d})}}else{d=0;for(g=f.length;d<g;d++)if(f[d].method==c){f[d].bh.push([b,a]);return}nc&&c===nc.prototype.n.Jf?f.unshift({method:c,bh:[[b,a]]}):f.push({method:c,bh:[[b,a]]})}};Ib=q;r.prototype.Rl=function(){return this.ma?this.type.c.length:this.c.length};r.prototype.Lc=function(){return this.ma?this.type.c:this.c};r.prototype.wg=
function(b){b&&(b.b.Ra().Pa.Dc?(this.ma&&(W(this.c),za(this.N,b.type.c),this.ma=!1),b=this.N.indexOf(b),-1!==b&&(this.c.push(this.N[b]),this.N.splice(b,1))):(this.ma=!1,W(this.c),this.c[0]=b))};qb=r;window._c2hh_="37C83F976C140139885F3C396BA11413E974CC56";p.prototype.Ma=function(b){var a,d=this.parent;if(this.group)for(this.Ek=!0;d;){if(!d.group){this.Ek=!1;break}d=d.parent}this.qn=!this.bp()&&(!this.parent||this.parent.group&&this.parent.Ek);this.Oo=!!b;this.Re=this.W.slice(0);for(d=this.parent;d;){b=
0;for(a=d.W.length;b<a;b++)this.js(d.W[b]);d=d.parent}this.W=k(this.W);this.Re=k(this.Re);b=0;for(a=this.ab.length;b<a;b++)this.ab[b].Ma();b=0;for(a=this.Xc.length;b<a;b++)this.Xc[b].Ma();b=0;for(a=this.Uc.length;b<a;b++)this.Uc[b].Ma(b<a-1&&this.Uc[b+1].Cj)};p.prototype.wq=function(b){if(this.Vf!==!!b){this.Vf=!!b;var a;b=0;for(a=this.Qi.length;b<a;++b)this.Qi[b].Wq();0<a&&this.b.la.gf&&this.b.la.gf.vn()}};p.prototype.Tn=function(b){l(b,this.W)};p.prototype.js=function(b){l(b,this.Re)};p.prototype.rk=
function(){this.gn=!0;this.parent&&this.parent.rk()};p.prototype.bp=function(){return this.ab.length?this.ab[0].trigger:!1};p.prototype.Ua=function(){var b,a,d=!1,g=this.b,e=this.b.Ra();e.Pa=this;var f=this.ab;this.Cj||(e.ql=!1);if(this.Dc){0===f.length&&(d=!0);e.Oa=0;for(b=f.length;e.Oa<b;e.Oa++)a=f[e.Oa],a.trigger||(a=a.Ua())&&(d=!0);(e.tf=d)&&this.nk()}else{e.Oa=0;for(b=f.length;e.Oa<b;e.Oa++)if(a=f[e.Oa].Ua(),!a){e.tf=!1;this.qn&&g.Ee&&g.Jb();return}e.tf=!0;this.nk()}this.Zs(e)};p.prototype.Zs=
function(b){b.tf&&this.Oo&&(b.ql=!0);this.qn&&this.b.Ee&&this.b.Jb()};p.prototype.Hv=function(b){this.b.Ra().Pa=this;this.ab[b].Ua()&&(this.nk(),this.b.Ra().tf=!0)};p.prototype.nk=function(){var b=this.b.Ra(),a;b.Sb=0;for(a=this.Xc.length;b.Sb<a;b.Sb++)if(this.Xc[b.Sb].Ua())return;this.pq()};p.prototype.Fv=function(){var b=this.b.Ra(),a;for(a=this.Xc.length;b.Sb<a;b.Sb++)if(this.Xc[b.Sb].Ua())return;this.pq()};p.prototype.pq=function(){if(this.Uc.length){var b,a,d,g,e=this.Uc.length-1;this.b.ik(this);
if(this.gn)for(b=0,a=this.Uc.length;b<a;b++)d=this.Uc[b],(g=!this.Ek||!this.group&&b<e)&&this.b.yg(d.W),d.Ua(),g?this.b.be(d.W):this.b.hl(d.W);else for(b=0,a=this.Uc.length;b<a;b++)this.Uc[b].Ua();this.b.dk()}};p.prototype.Iv=function(){var b=this.b.Ra();b.Pa=this;var a=!1,d;b.Oa=0;for(d=this.ab.length;b.Oa<d;b.Oa++)if(this.ab[b.Oa].Ua())a=!0;else if(!this.Dc)return!1;return this.Dc?a:!0};p.prototype.ci=function(){this.b.dh++;var b=this.b.Ra().Oa,a=this.b.ik(this);if(!this.Dc)for(a.Oa=b+1,b=this.ab.length;a.Oa<
b;a.Oa++)if(!this.ab[a.Oa].Ua()){this.b.dk();return}this.nk();this.b.dk()};p.prototype.Du=function(b){var a=b.index;if(0===a)return!0;for(--a;0<=a;--a)if(this.ab[a].type===b.type)return!1;return!0};ac=p;a.prototype.Ma=function(){var b,a,d;b=0;for(a=this.P.length;b<a;b++)d=this.P[b],d.Ma(),d.Wc&&(this.Sg=!0)};a.prototype.Kv=function(){return!0};a.prototype.$m=function(){var b,a;b=0;for(a=this.P.length;b<a;b++)this.Ka[b]=this.P[b].get();return Xa(this.yb.apply(this.b.Jd,this.Ka),this.uj)};a.prototype.Jv=
function(){var b,a;b=0;for(a=this.P.length;b<a;b++)this.Ka[b]=this.P[b].get();b=this.yb.apply(this.Ve?this.Ve:this.type,this.Ka);this.type.Md();return b};a.prototype.Zm=function(){var b,a,d,g,e,f,c,h,l=this.type,t=l.ca(),p=this.wc.Dc&&!this.trigger;a=0;var v=l.cc,k=l.C,n=l.Sd,r=this.$c,q=-1<r,S=this.Sg,z=this.P,I=this.Ka,H=this.uj,K=this.yb,O;if(S)for(a=0,e=z.length;a<e;++a)f=z[a],f.Wc||(I[a]=f.get(0));else for(a=0,e=z.length;a<e;++a)I[a]=z[a].get(0);if(t.ma){W(t.c);W(t.N);O=l.c;b=0;for(g=O.length;b<
g;++b){h=O[b];if(S)for(a=0,e=z.length;a<e;++a)f=z[a],f.Wc&&(I[a]=f.get(b));q?(a=0,k&&(a=h.type.Tf[n]),a=K.apply(h.D[r+a],I)):a=K.apply(h,I);(c=Xa(a,H))?t.c.push(h):p&&t.N.push(h)}l.finish&&l.finish(!0);t.ma=!1;l.Md();return t.Rl()}d=0;O=(c=p&&!this.wc.Du(this))?t.N:t.c;var L=!1;b=0;for(g=O.length;b<g;++b){h=O[b];if(S)for(a=0,e=z.length;a<e;++a)f=z[a],f.Wc&&(I[a]=f.get(b));q?(a=0,k&&(a=h.type.Tf[n]),a=K.apply(h.D[r+a],I)):a=K.apply(h,I);if(Xa(a,H))if(L=!0,c){if(t.c.push(h),v)for(a=0,e=h.siblings.length;a<
e;a++)f=h.siblings[a],f.type.ca().c.push(f)}else{O[d]=h;if(v)for(a=0,e=h.siblings.length;a<e;a++)f=h.siblings[a],f.type.ca().c[d]=f;d++}else if(c){O[d]=h;if(v)for(a=0,e=h.siblings.length;a<e;a++)f=h.siblings[a],f.type.ca().N[d]=f;d++}else if(p&&(t.N.push(h),v))for(a=0,e=h.siblings.length;a<e;a++)f=h.siblings[a],f.type.ca().N.push(f)}ya(O,d);if(v)for(k=l.nc,b=0,g=k.length;b<g;b++)h=k[b].ca(),c?ya(h.N,d):ya(h.c,d);d=L;if(c&&!L)for(b=0,g=t.c.length;b<g;b++){h=t.c[b];if(S)for(a=0,e=z.length;a<e;a++)f=
z[a],f.Wc&&(I[a]=f.get(b));a=q?K.apply(h.D[r],I):K.apply(h,I);if(Xa(a,H)){L=!0;break}}l.finish&&l.finish(d||p);return p?L:t.Rl()};Wb=a;d.prototype.Ma=function(){var b,a,d;b=0;for(a=this.P.length;b<a;b++)d=this.P[b],d.Ma(),d.Wc&&(this.Sg=!0)};d.prototype.$m=function(){var b=this.b,a,d,g=this.P,e=this.Ka;a=0;for(d=g.length;a<d;++a)e[a]=g[a].get();return this.yb.apply(b.Jd,e)};d.prototype.Zm=function(){var b=this.type,a=this.$c,d=b.Sd,g=this.Sg,e=this.P,f=this.Ka,c=this.yb,h=b.ca().Lc(),b=b.C,l=-1<a,
t,p,v,k,n,r;if(g)for(p=0,k=e.length;p<k;++p)n=e[p],n.Wc||(f[p]=n.get(0));else for(p=0,k=e.length;p<k;++p)f[p]=e[p].get(0);t=0;for(v=h.length;t<v;++t){r=h[t];if(g)for(p=0,k=e.length;p<k;++p)n=e[p],n.Wc&&(f[p]=n.get(t));l?(p=0,b&&(p=r.type.Tf[d]),c.apply(r.D[a+p],f)):c.apply(r,f)}return!1};Xb=d;var v=[],S=-1;b.prototype.Ma=function(){var b,a;if(11===this.type)this.hf=this.b.Io(this.qi,this.wc.parent);else if(13===this.type)for(b=0,a=this.Df.length;b<a;b++)this.Df[b].Ma();this.Ad&&this.Ad.Ma()};b.prototype.Qu=
function(b){this.Wc||!b||b.xa.tk||(this.Wc=!0)};b.prototype.zq=function(){this.Wc=!0};b.prototype.gu=function(b){this.ge=b||0;b=e();this.Ad.get(b);S--;return b.data};b.prototype.hu=function(b){this.ge=b||0;b=e();this.Ad.get(b);S--;return A(b.data)?b.data:""};b.prototype.nu=function(){return this.object};b.prototype.eu=function(){return this.fo};b.prototype.lu=function(b){this.ge=b||0;b=e();this.Ad.get(b);S--;return b.mb()?this.b.fh(b.data):this.b.Jl(b.data)};b.prototype.mu=function(){return this.nb};
b.prototype.ku=function(){return this.key};b.prototype.ju=function(){return this.index};b.prototype.iu=function(b){b=b||0;var a=this.wa.type,d=null,d=a.ca(),g=d.Lc();if(g.length)d=g[b%g.length].type;else if(d.N.length)d=d.N[b%d.N.length].type;else if(a.c.length)d=a.c[b%a.c.length].type;else return 0;return this.index+d.cj[a.Sd]};b.prototype.fu=function(){return this.hf};b.prototype.du=function(){return this.yo};b.prototype.ou=function(){var b,a;b=0;for(a=this.Df.length;b<a;b++)this.pi[b]=this.Df[b].get();
return this.pi};Yb=b;f.prototype.Ma=function(){this.W=k(this.W)};f.prototype.Dg=function(b){var a=this.b.Ho();this.parent&&!this.zh&&a?(this.yf>=a.length&&(a.length=this.yf+1),a[this.yf]=b):this.data=b};f.prototype.lf=function(){var b=this.b.Ho();return!this.parent||this.zh||!b||this.Bj?this.data:this.yf>=b.length||"undefined"===typeof b[this.yf]?this.sj:b[this.yf]};f.prototype.Ua=function(){!this.parent||this.zh||this.Bj||this.Dg(this.sj)};Sb=f;h.prototype.toString=function(){return"include:"+this.nh.toString()};
h.prototype.Ma=function(){this.nh=this.b.sl[this.uu];this.sheet.Po.add(this);this.W=k(this.W);for(var b=this.parent;b;)b.group&&b.Qi.push(this),b=b.parent;this.Wq()};h.prototype.Ua=function(){this.parent&&this.b.$h(this.b.q);this.nh.Sl||this.nh.Ua(!0);this.parent&&this.b.be(this.b.q)};h.prototype.Wq=function(){for(var b=this.parent;b;){if(b.group&&!b.Vf){this.Fa=!1;return}b=b.parent}this.Fa=!0};bc=h;g.prototype.reset=function(b){this.Pa=b;this.Sb=this.Oa=0;W(this.Kq);this.ql=this.tf=!1};g.prototype.Fu=
function(){return this.Pa.gn?!0:this.Oa<this.Pa.ab.length-1?!!this.Pa.W.length:!1};Rb=g})();
(function(){function c(c,a){this.wa=c;this.b=c.b;this.type=a[0];this.get=[this.ut,this.ot,this.Et,this.Ht,this.ct,this.Ft,this.zt,this.lt,this.yt,this.Dt,this.dt,this.Ct,this.mt,this.At,this.wt,this.xt,this.pt,this.qt,this.kt,this.Gt,this.Bt,this.tt,this.jt,this.nt][this.type];var d=null;this.Zd=this.P=this.Ka=this.yb=this.Ck=this.second=this.first=this.value=null;this.$c=-1;this.dd=null;this.br=-1;this.hf=this.qi=null;this.Bg=!1;switch(this.type){case 0:case 1:case 2:this.value=a[1];break;case 3:this.first=
new $b(c,a[1]);break;case 18:this.first=new $b(c,a[1]);this.second=new $b(c,a[2]);this.Ck=new $b(c,a[3]);break;case 19:this.yb=this.b.oe(a[1]);this.yb!==Z.prototype.lb.random&&this.yb!==Z.prototype.lb.us||this.wa.zq();this.Ka=[];this.P=[];3===a.length?(d=a[2],this.Ka.length=d.length+1):this.Ka.length=1;break;case 20:this.Zd=this.b.q[a[1]];this.$c=-1;this.yb=this.b.oe(a[2]);this.Bg=a[3];oc&&this.yb===oc.prototype.lb.ir&&this.wa.zq();a[4]?this.dd=new $b(c,a[4]):this.dd=null;this.Ka=[];this.P=[];6===
a.length?(d=a[5],this.Ka.length=d.length+1):this.Ka.length=1;break;case 21:this.Zd=this.b.q[a[1]];this.Bg=a[2];a[3]?this.dd=new $b(c,a[3]):this.dd=null;this.br=a[4];break;case 22:this.Zd=this.b.q[a[1]];this.Zd.kj(a[2]);this.$c=this.Zd.Cl(a[2]);this.yb=this.b.oe(a[3]);this.Bg=a[4];a[5]?this.dd=new $b(c,a[5]):this.dd=null;this.Ka=[];this.P=[];7===a.length?(d=a[6],this.Ka.length=d.length+1):this.Ka.length=1;break;case 23:this.qi=a[1],this.hf=null}this.wa.Qu(this.Zd);4<=this.type&&17>=this.type&&(this.first=
new $b(c,a[1]),this.second=new $b(c,a[2]));if(d){var e,b;e=0;for(b=d.length;e<b;e++)this.P.push(new $b(c,d[e]))}}function n(){++p;r.length===p&&r.push(new Zb);return r[p]}function k(c,a,d){var e,b;e=0;for(b=c.length;e<b;++e)c[e].get(d),a[e+1]=d.data}function q(c,a){this.type=c||cc.If;this.data=a||0;this.zf=null;this.type==cc.If&&(this.data=Math.floor(this.data))}c.prototype.Ma=function(){23===this.type&&(this.hf=this.wa.b.Io(this.qi,this.wa.wc.parent));this.first&&this.first.Ma();this.second&&this.second.Ma();
this.Ck&&this.Ck.Ma();this.dd&&this.dd.Ma();if(this.P){var c,a;c=0;for(a=this.P.length;c<a;c++)this.P[c].Ma()}};var r=[],p=-1;c.prototype.Gt=function(c){var a=this.P,d=this.Ka;d[0]=c;c=n();k(a,d,c);--p;this.yb.apply(this.b.Jd,d)};c.prototype.Bt=function(c){var a=this.Zd,d=this.Ka,e=this.P,b=this.dd,f=this.yb,h=this.wa.ge,g=a.ca(),t=g.Lc();if(!t.length)if(g.N.length)t=g.N;else{this.Bg?c.jc(""):c.qa(0);return}d[0]=c;c.zf=a;c=n();k(e,d,c);b&&(b.get(c),c.mb()&&(h=c.data,t=a.c));--p;a=t.length;if(h>=a||
h<=-a)h%=a;0>h&&(h+=a);f.apply(t[h],d)};c.prototype.jt=function(c){var a=this.Zd,d=this.Ka,e=this.P,b=this.dd,f=this.$c,h=this.yb,g=this.wa.ge,t=a.ca(),v=t.Lc();if(!v.length)if(t.N.length)v=t.N;else{this.Bg?c.jc(""):c.qa(0);return}d[0]=c;c.zf=a;c=n();k(e,d,c);b&&(b.get(c),c.mb()&&(g=c.data,v=a.c));--p;e=v.length;if(g>=e||g<=-e)g%=e;0>g&&(g+=e);g=v[g];v=0;a.C&&(v=g.type.Tf[a.Sd]);h.apply(g.D[f+v],d)};c.prototype.tt=function(c){var a=this.dd,d=this.Zd,e=this.br,b=this.wa.ge,f=d.ca(),h=f.Lc();if(!h.length)if(f.N.length)h=
f.N;else{this.Bg?c.jc(""):c.qa(0);return}if(a){f=n();a.get(f);if(f.mb()){b=f.data;h=d.c;0!==h.length&&(b%=h.length,0>b&&(b+=h.length));b=d.Il(b);d=b.eb[e];A(d)?c.jc(d):c.I(d);--p;return}--p}a=h.length;if(b>=a||b<=-a)b%=a;0>b&&(b+=a);b=h[b];h=0;d.C&&(h=b.type.cj[d.Sd]);d=b.eb[e+h];A(d)?c.jc(d):c.I(d)};c.prototype.ut=function(c){c.type=cc.If;c.data=this.value};c.prototype.ot=function(c){c.type=cc.Hf;c.data=this.value};c.prototype.Et=function(c){c.type=cc.String;c.data=this.value};c.prototype.Ht=function(c){this.first.get(c);
c.mb()&&(c.data=-c.data)};c.prototype.ct=function(c){this.first.get(c);var a=n();this.second.get(a);c.mb()&&a.mb()&&(c.data+=a.data,a.ag()&&c.kg());--p};c.prototype.Ft=function(c){this.first.get(c);var a=n();this.second.get(a);c.mb()&&a.mb()&&(c.data-=a.data,a.ag()&&c.kg());--p};c.prototype.zt=function(c){this.first.get(c);var a=n();this.second.get(a);c.mb()&&a.mb()&&(c.data*=a.data,a.ag()&&c.kg());--p};c.prototype.lt=function(c){this.first.get(c);var a=n();this.second.get(a);c.mb()&&a.mb()&&(c.data/=
a.data,c.kg());--p};c.prototype.yt=function(c){this.first.get(c);var a=n();this.second.get(a);c.mb()&&a.mb()&&(c.data%=a.data,a.ag()&&c.kg());--p};c.prototype.Dt=function(c){this.first.get(c);var a=n();this.second.get(a);c.mb()&&a.mb()&&(c.data=Math.pow(c.data,a.data),a.ag()&&c.kg());--p};c.prototype.dt=function(c){this.first.get(c);var a=n();this.second.get(a);a.eg()||c.eg()?this.gt(c,a):this.et(c,a);--p};c.prototype.gt=function(c,a){c.eg()&&a.eg()?this.it(c,a):this.ht(c,a)};c.prototype.it=function(c,
a){c.data+=a.data};c.prototype.ht=function(c,a){c.eg()?c.data+=(Math.round(1E10*a.data)/1E10).toString():c.jc(c.data.toString()+a.data)};c.prototype.et=function(c,a){c.qa(c.data&&a.data?1:0)};c.prototype.Ct=function(c){this.first.get(c);var a=n();this.second.get(a);c.mb()&&a.mb()&&(c.data||a.data?c.qa(1):c.qa(0));--p};c.prototype.kt=function(c){this.first.get(c);c.data?this.second.get(c):this.Ck.get(c)};c.prototype.mt=function(c){this.first.get(c);var a=n();this.second.get(a);c.qa(c.data===a.data?
1:0);--p};c.prototype.At=function(c){this.first.get(c);var a=n();this.second.get(a);c.qa(c.data!==a.data?1:0);--p};c.prototype.wt=function(c){this.first.get(c);var a=n();this.second.get(a);c.qa(c.data<a.data?1:0);--p};c.prototype.xt=function(c){this.first.get(c);var a=n();this.second.get(a);c.qa(c.data<=a.data?1:0);--p};c.prototype.pt=function(c){this.first.get(c);var a=n();this.second.get(a);c.qa(c.data>a.data?1:0);--p};c.prototype.qt=function(c){this.first.get(c);var a=n();this.second.get(a);c.qa(c.data>=
a.data?1:0);--p};c.prototype.nt=function(c){var a=this.hf.lf();ia(a)?c.I(a):c.jc(a)};$b=c;q.prototype.ag=function(){return this.type===cc.Hf};q.prototype.mb=function(){return this.type===cc.If||this.type===cc.Hf};q.prototype.eg=function(){return this.type===cc.String};q.prototype.kg=function(){this.ag()||(this.eg()&&(this.data=parseFloat(this.data)),this.type=cc.Hf)};q.prototype.qa=function(c){this.type=cc.If;this.data=Math.floor(c)};q.prototype.I=function(c){this.type=cc.Hf;this.data=c};q.prototype.jc=
function(c){this.type=cc.String;this.data=c};q.prototype.Aq=function(c){ia(c)?(this.type=cc.Hf,this.data=c):A(c)?(this.type=cc.String,this.data=c.toString()):(this.type=cc.If,this.data=0)};Zb=q;cc={If:0,Hf:1,String:2}})();function Z(c){this.b=c;this.Ib=[]}
Z.prototype.Ob=function(){var c={},n,k,q,r,p,l,a,d;c.waits=[];var e=c.waits,b;n=0;for(k=this.Ib.length;n<k;n++){l=this.Ib[n];b={t:l.time,st:l.sk,s:l.ji,ev:l.ff.T,sm:[],sols:{}};l.ff.Xc[l.Sb]&&(b.act=l.ff.Xc[l.Sb].T);q=0;for(r=l.W.length;q<r;q++)b.sm.push(l.W[q].T);for(p in l.Pb)if(l.Pb.hasOwnProperty(p)){a=this.b.q[parseInt(p,10)];d={sa:l.Pb[p].ei,insts:[]};q=0;for(r=l.Pb[p].Cd.length;q<r;q++)d.insts.push(l.Pb[p].Cd[q].uid);b.sols[a.T.toString()]=d}e.push(b)}return c};
Z.prototype.ec=function(c){c=c.waits;var n,k,q,r,p,l,a,d,e,b,f;W(this.Ib);n=0;for(k=c.length;n<k;n++)if(l=c[n],d=this.b.Yn[l.ev.toString()]){e=-1;q=0;for(r=d.Xc.length;q<r;q++)if(d.Xc[q].T===l.act){e=q;break}if(-1!==e){a={Pb:{},W:[],ol:!1};a.time=l.t;a.sk=l.st||"";a.ji=!!l.s;a.ff=d;a.Sb=e;q=0;for(r=l.sm.length;q<r;q++)(d=this.b.nj(l.sm[q]))&&a.W.push(d);for(p in l.sols)if(l.sols.hasOwnProperty(p)&&(d=this.b.nj(parseInt(p,10)))){e=l.sols[p];b={ei:e.sa,Cd:[]};q=0;for(r=e.insts.length;q<r;q++)(f=this.b.gh(e.insts[q]))&&
b.Cd.push(f);a.Pb[d.index.toString()]=b}this.Ib.push(a)}}};
(function(){function c(){}function n(){}function k(){var a;l.length?a=l.pop():a={Pb:{},W:[]};a.ol=!1;return a}function q(){var d;a.length?d=a.pop():d={Cd:[]};d.ei=!1;return d}function r(){}var p=Z.prototype;c.prototype.Kn=function(){return!0};c.prototype.Nr=function(){return!0};c.prototype.mr=function(a,e,b){return dc(a,e,b)};c.prototype.rr=function(a,e,b){var f=this.b.Ra(),c=f.Pa,f=f.Fu();a=this.b.wv(a);if(b<e)if(f)for(;e>=b&&!a.Wa;--e)this.b.yg(c.W),a.index=e,c.ci(),this.b.be(c.W);else for(;e>=
b&&!a.Wa;--e)a.index=e,c.ci();else if(f)for(;e<=b&&!a.Wa;++e)this.b.yg(c.W),a.index=e,c.ci(),this.b.be(c.W);else for(;e<=b&&!a.Wa;++e)a.index=e,c.ci();this.b.nv();return!1};c.prototype.as=function(){var a=this.b.El().Ca;"undefined"===typeof a.TriggerOnce_lastTick&&(a.TriggerOnce_lastTick=-1);var e=a.TriggerOnce_lastTick,b=this.b.Lg;a.TriggerOnce_lastTick=b;return this.b.nm||e!==b-1};c.prototype.Qr=function(a,e){if(!a)return!1;var b=a.ca(),f=b.Lc();e=R(e);if(0>e||e>=f.length)return!1;b.wg(f[e]);a.Md();
return!0};c.prototype.or=function(a,e,b){return dc(a.lf(),e,b)};c.prototype.Ar=function(a){return(a=this.b.kh[a.toLowerCase()])&&a.Vf};c.prototype.nr=function(a,e,b){return a>=e&&a<=b};c.prototype.Hn=function(){var a=this.b.Ra();return a.ql?!1:!a.tf};c.prototype.Ln=function(){return!0};c.prototype.Kr=function(){return!0};c.prototype.Tk=function(){return!0};c.prototype.Nn=function(){return!0};c.prototype.Or=function(){return!0};c.prototype.xi=function(){return!0};c.prototype.fr=function(a,e,b){return Na(Y(a),
Y(b))<=Y(e)};c.prototype.wr=function(a,e){return Ua(Y(a),Y(e))};c.prototype.tr=function(a,e,b){a=La(a);e=La(e);b=La(b);return Ua(b,e)?Ua(a,e)&&!Ua(a,b):!(!Ua(a,e)&&Ua(a,b))};p.n=new c;n.prototype.qr=function(a,e,b,f){if(e&&a&&(e=this.b.jo(a,e,b,f))){this.b.fd++;var c;this.b.trigger(Object.getPrototypeOf(a.xa).n.ti,e);if(e.cc)for(b=0,f=e.siblings.length;b<f;b++)c=e.siblings[b],this.b.trigger(Object.getPrototypeOf(c.type.xa).n.ti,c);this.b.fd--;a=a.ca();a.ma=!1;W(a.c);a.c[0]=e;if(e.cc)for(b=0,f=e.siblings.length;b<
f;b++)c=e.siblings[b],a=c.type.ca(),a.ma=!1,W(a.c),a.c[0]=c}};n.prototype.er=function(a,e){0===a.An?ia(e)?a.Dg(a.lf()+e):a.Dg(a.lf()+parseFloat(e)):1===a.An&&a.Dg(a.lf()+e.toString())};n.prototype.Zr=function(a,e){0===a.An&&(ia(e)?a.Dg(a.lf()-e):a.Dg(a.lf()-parseFloat(e)))};var l=[],a=[];n.prototype.bs=function(a){if(!(0>a)){var e,b,f,c=this.b.Ra(),g=k();g.time=this.b.Bb.X+a;g.sk="";g.ji=!1;g.ff=c.Pa;g.Sb=c.Sb+1;a=0;for(e=this.b.q.length;a<e;a++)f=this.b.q[a],b=f.ca(),b.ma&&-1===c.Pa.W.indexOf(f)||
(g.W.push(f),f=q(),f.ei=b.ma,za(f.Cd,b.c),g.Pb[a.toString()]=f);this.Ib.push(g);return!0}};n.prototype.cs=function(a){var e,b,f,c=this.b.Ra(),g=k();g.time=-1;g.sk=a.toLowerCase();g.ji=!1;g.ff=c.Pa;g.Sb=c.Sb+1;a=0;for(e=this.b.q.length;a<e;a++)f=this.b.q[a],b=f.ca(),b.ma&&-1===c.Pa.W.indexOf(f)||(g.W.push(f),f=q(),f.ei=b.ma,za(f.Cd,b.c),g.Pb[a.toString()]=f);this.Ib.push(g);return!0};n.prototype.Xr=function(a){a=a.toLowerCase();var e,b,f;e=0;for(b=this.Ib.length;e<b;++e)f=this.Ib[e],-1===f.time&&f.sk===
a&&(f.ji=!0)};n.prototype.Rr=function(){var a,e,b;a=0;for(e=this.b.Vk.length;a<e;a++)b=this.b.Vk[a],b.data=b.sj};n.prototype.Sr=function(){if(!this.b.Bh&&!this.b.Wg&&this.b.la){this.b.Wg=this.b.la;var a,e,b;a=0;for(e=this.b.se.length;a<e;a++)b=this.b.se[a],b.wq(b.tj)}};p.da=new n;r.prototype["int"]=function(a,e){A(e)?(a.qa(parseInt(e,10)),isNaN(a.data)&&(a.data=0)):a.qa(e)};r.prototype["float"]=function(a,e){A(e)?(a.I(parseFloat(e)),isNaN(a.data)&&(a.data=0)):a.I(e)};r.prototype.random=function(a,
e,b){void 0===b?a.I(Math.random()*e):a.I(Math.random()*(b-e)+e)};r.prototype.sqrt=function(a,e){a.I(Math.sqrt(e))};r.prototype.abs=function(a,e){a.I(Math.abs(e))};r.prototype.round=function(a,e){a.qa(Math.round(e))};r.prototype.floor=function(a,e){a.qa(Math.floor(e))};r.prototype.ceil=function(a,e){a.qa(Math.ceil(e))};r.prototype.sin=function(a,e){a.I(Math.sin(Y(e)))};r.prototype.cos=function(a,e){a.I(Math.cos(Y(e)))};r.prototype.tan=function(a,e){a.I(Math.tan(Y(e)))};r.prototype.asin=function(a,
e){a.I(Ga(Math.asin(e)))};r.prototype.acos=function(a,e){a.I(Ga(Math.acos(e)))};r.prototype.atan=function(a,e){a.I(Ga(Math.atan(e)))};r.prototype.exp=function(a,e){a.I(Math.exp(e))};r.prototype.log10=function(a,e){a.I(Math.log(e)/Math.LN10)};r.prototype.max=function(a){var e=arguments[1];"number"!==typeof e&&(e=0);var b,f,c;b=2;for(f=arguments.length;b<f;b++)c=arguments[b],"number"===typeof c&&e<c&&(e=c);a.I(e)};r.prototype.min=function(a){var e=arguments[1];"number"!==typeof e&&(e=0);var b,f,c;b=
2;for(f=arguments.length;b<f;b++)c=arguments[b],"number"===typeof c&&e>c&&(e=c);a.I(e)};r.prototype.cf=function(a){a.I(this.b.cf)};r.prototype.Ng=function(a){a.I(this.b.Ng)};r.prototype.time=function(a){a.I(this.b.Bb.X)};r.prototype.Lg=function(a){a.qa(this.b.Lg)};r.prototype.Rj=function(a){a.qa(this.b.Rj)};r.prototype.zl=function(a){a.qa(this.b.zl)};r.prototype.d=function(a,e,b,f,c){a.I(Ga(Ma(e,b,f,c)))};r.prototype.left=function(a,e,b){a.jc(A(e)?e.substr(0,b):"")};r.prototype.right=function(a,e,
b){a.jc(A(e)?e.substr(e.length-b):"")};r.prototype.replace=function(a,e,b,f){A(e)&&A(b)&&A(f)?a.jc(e.replace(new RegExp(eb(b),"gi"),f)):a.jc(A(e)?e:"")};r.prototype.trim=function(a,e){a.jc(A(e)?e.trim():"")};r.prototype.us=function(a){var e=R(Math.random()*(arguments.length-1));a.Aq(arguments[e+1])};r.prototype.jl=function(a){a.I(this.b.jl/1E3)};r.prototype.Jj=function(a){a.I(this.b.Jj)};p.lb=new r;p.Gv=function(){var d,e,b,f,c,g,t=this.b.Ra();d=0;for(b=this.Ib.length;d<b;d++){f=this.Ib[d];if(-1===
f.time){if(!f.ji)continue}else if(f.time>this.b.Bb.X)continue;t.Pa=f.ff;t.Sb=f.Sb;t.Oa=0;for(e in f.Pb)f.Pb.hasOwnProperty(e)&&(c=this.b.q[parseInt(e,10)].ca(),g=f.Pb[e],c.ma=g.ei,za(c.c,g.Cd),c=g,W(c.Cd),a.push(c));f.ff.Fv();this.b.hl(f.W);f.ol=!0}e=d=0;for(b=this.Ib.length;d<b;d++)f=this.Ib[d],this.Ib[e]=f,f.ol?(Za(f.Pb),W(f.W),l.push(f)):e++;ya(this.Ib,e)}})();
(function(){pb=function(c,k){var q=c[1],r=c[3],p=c[4],l=c[5],a=c[6],d=c[7],e=c[8];k.n||(k.n={});k.da||(k.da={});k.lb||(k.lb={});var b=k.n,f=k.da,h=k.lb;r&&(b.pr=function(a,b){return dc(this.x,a,b)},b.ww=function(a,b){return dc(this.y,a,b)},b.Br=function(){var a=this.j;this.za();var b=this.Ga;return!(b.right<a.ja||b.bottom<a.ka||b.left>a.ta||b.top>a.ra)},b.Cr=function(){this.za();var a=this.Ga,b=this.b.la;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},b.Kw=function(a,b,d){var e=this.ca(),
f=e.Lc();if(!f.length)return!1;var c=f[0],h=c,p=Wa(c.x,c.y,b,d),k,l,n;k=1;for(l=f.length;k<l;k++)if(c=f[k],n=Wa(c.x,c.y,b,d),0===a&&n<p||1===a&&n>p)p=n,h=c;e.wg(h);return!0},f.Wr=function(a){this.x!==a&&(this.x=a,this.ya())},f.bx=function(a){this.y!==a&&(this.y=a,this.ya())},f.On=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.ya()},f.Zw=function(a,b){var d=a.Zt(this);if(d){var e;d.Hl?(e=d.Hl(b,!0),d=d.Hl(b,!1)):(e=d.x,d=d.y);if(this.x!==e||this.y!==d)this.x=e,this.y=d,this.ya()}},
f.Dw=function(a){0!==a&&(this.x+=Math.cos(this.d)*a,this.y+=Math.sin(this.d)*a,this.ya())},f.Cw=function(a,b){0!==b&&(this.x+=Math.cos(Y(a))*b,this.y+=Math.sin(Y(a))*b,this.ya())},h.Pn=function(a){a.I(this.x)},h.Qn=function(a){a.I(this.y)},h.cf=function(a){a.I(this.b.lj(this))});p&&(b.vw=function(a,b){return dc(this.width,a,b)},b.rw=function(a,b){return dc(this.height,a,b)},f.ax=function(a){this.width!==a&&(this.width=a,this.ya())},f.Ww=function(a){this.height!==a&&(this.height=a,this.ya())},f.Ur=
function(a,b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.ya()},h.ds=function(a){a.I(this.width)},h.sr=function(a){a.I(this.height)},h.ow=function(a){this.za();a.I(this.Ga.left)},h.qw=function(a){this.za();a.I(this.Ga.top)},h.pw=function(a){this.za();a.I(this.Ga.right)},h.mw=function(a){this.za();a.I(this.Ga.bottom)});l&&(b.fr=function(a,b){return Na(this.d,Y(b))<=Y(a)},b.wr=function(a){return Ua(this.d,Y(a))},b.tr=function(a,b){var d=La(a),e=La(b),f=Ja(this.d);return Ua(e,
d)?Ua(f,d)&&!Ua(f,e):!(!Ua(f,d)&&Ua(f,e))},f.Sw=function(a){a=Y(Ha(a));isNaN(a)||this.d===a||(this.d=a,this.ya())},f.Ow=function(a){0===a||isNaN(a)||(this.d+=Y(a),this.d=Ja(this.d),this.ya())},f.Pw=function(a){0===a||isNaN(a)||(this.d-=Y(a),this.d=Ja(this.d),this.ya())},f.Qw=function(a,b){var d=Oa(this.d,Y(b),Y(a));isNaN(d)||this.d===d||(this.d=d,this.ya())},f.Rw=function(a,b,d){a=Oa(this.d,Math.atan2(d-this.y,b-this.x),Y(a));isNaN(a)||this.d===a||(this.d=a,this.ya())},f.$w=function(a,b){var d=Math.atan2(b-
this.y,a-this.x);isNaN(d)||this.d===d||(this.d=d,this.ya())},h.lw=function(a){a.I(Ka(this.d))});q||(b.sw=function(a,b,d){return dc(this.eb[a],b,d)},b.ur=function(a){return this.eb[a]},b.Lw=function(a,b){var d=this.ca(),e=d.Lc();if(!e.length)return!1;var f=e[0],c=f,h=f.eb[b],p,k,l;p=1;for(k=e.length;p<k;p++)if(f=e[p],l=f.eb[b],0===a&&l<h||1===a&&l>h)h=l,c=f;d.wg(c);return!0},b.Jw=function(a){var b,d,e,f,c;if(this.b.El().uj){c=this.ca();if(c.ma)for(c.ma=!1,W(c.c),W(c.N),e=this.c,b=0,d=e.length;b<d;b++)f=
e[b],f.uid===a?c.N.push(f):c.c.push(f);else{e=b=0;for(d=c.c.length;b<d;b++)f=c.c[b],c.c[e]=f,f.uid===a?c.N.push(f):e++;ya(c.c,e)}this.Md();return!!c.c.length}f=this.b.gh(a);if(!f)return!1;c=this.ca();if(!c.ma&&-1===c.c.indexOf(f))return!1;if(this.C)for(a=f.type.Ea,b=0,d=a.length;b<d;b++){if(a[b]===this)return c.wg(f),this.Md(),!0}else if(f.type===this)return c.wg(f),this.Md(),!0;return!1},b.ti=function(){return!0},b.Lr=function(){return!0},f.Xw=function(a,b){var d=this.eb;ia(d[a])?d[a]=ia(b)?b:parseFloat(b):
A(d[a])&&(d[a]=A(b)?b:b.toString())},f.kw=function(a,b){var d=this.eb;ia(d[a])?d[a]=ia(b)?d[a]+b:d[a]+parseFloat(b):A(d[a])&&(d[a]=A(b)?d[a]+b:d[a]+b.toString())},f.cx=function(a,b){var d=this.eb;ia(d[a])&&(d[a]=ia(b)?d[a]-b:d[a]-parseFloat(b))},f.Tw=function(a,b){this.eb[a]=b?1:0},f.dx=function(a){this.eb[a]=1-this.eb[a]},f.Rk=function(){this.b.ne(this)},f.Gr||(f.Gr=function(a){var b,d;try{b=JSON.parse(a)}catch(e){return}this.b.Hj(this,b,!0);this.Kd&&this.Kd();if(this.D)for(a=0,b=this.D.length;a<
b;++a)d=this.D[a],d.Kd&&d.Kd()}),h.xw=function(a){var b=a.zf.c.length,d,e,f;d=0;for(e=this.b.ad.length;d<e;d++)f=this.b.ad[d],a.zf.C?0<=f.type.Ea.indexOf(a.zf)&&b++:f.type===a.zf&&b++;a.qa(b)},h.Nw=function(a){a.qa(a.zf.ca().Lc().length)},h.gx=function(a){a.qa(this.uid)},h.yw=function(a){a.qa(this.ih())},h.Gn||(h.Gn=function(a){a.jc(JSON.stringify(this.b.an(this,!0)))}));a&&(b.Er=function(){return this.visible},f.Vr=function(a){!a!==!this.visible&&(this.visible=!!a,this.b.na=!0)},b.uw=function(a,
b){return dc(lb(100*this.opacity),a,b)},f.Yw=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.na=!0)},h.Opacity=function(a){a.I(lb(100*this.opacity))});d&&(b.zw=function(a){return a?this.j===a:!1},b.Mw=function(a){var b=this.ca(),d=b.Lc();if(!d.length)return!1;var e=d[0],f=e,c,h;c=1;for(h=d.length;c<h;c++)if(e=d[c],0===a){if(e.j.index>f.j.index||e.j.index===f.j.index&&e.Mc()>f.Mc())f=e}else if(e.j.index<f.j.index||e.j.index===f.j.index&&e.Mc()<f.Mc())f=e;b.wg(f);return!0},
f.Gw=function(){var a=this.j,b=a.c;b.length&&b[b.length-1]===this||(a.Ag(this,!1),a.Ug(this,!1),this.b.na=!0)},f.Ew=function(){var a=this.j,b=a.c;b.length&&b[0]===this||(a.Ag(this,!1),a.sv(this),this.b.na=!0)},f.Fw=function(a){a&&a!=this.j&&(this.j.Ag(this,!0),this.j=a,a.Ug(this,!0),this.b.na=!0)},f.ix=function(a,b){var d=0===a;if(b){var e=b.Ut(this);e&&e.uid!==this.uid&&(this.j.index!==e.j.index&&(this.j.Ag(this,!0),this.j=e.j,e.j.Ug(this,!0)),this.j.Su(this,e,d),this.b.na=!0)}},h.Bw=function(a){a.qa(this.j.Lp)},
h.Aw=function(a){a.jc(this.j.name)},h.hx=function(a){a.qa(this.Mc())});e&&(f.Uw=function(a,b){if(this.b.u){var d=this.type.Gl(b);if(!(0>d)){var e=1===a;this.pe[d]!==e&&(this.pe[d]=e,this.qd(),this.b.na=!0)}}},f.Vw=function(a,b,d){if(this.b.u){var e=this.type.Gl(a);0>e||(a=this.type.L[e],e=this.Ja[e],b=Math.floor(b),0>b||b>=e.length||(1===this.b.u.cu(a.Va,b)&&(d/=100),e[b]!==d&&(e[b]=d,a.Fa&&(this.b.na=!0))))}})};Jb=function(){this.dl=this.Hi=!0;this.type.Bi=!0;this.b.na=!0;var c,k,q=this.al;c=0;for(k=
q.length;c<k;++c)q[c](this);this.j.Fc&&this.za()};Kb=function(c){c&&this.al.push(c)};Mb=function(){if(this.Hi){var c=this.Ga,k=this.mc;c.set(this.x,this.y,this.x+this.width,this.y+this.height);c.offset(-this.$b*this.width,-this.ac*this.height);this.d?(c.offset(-this.x,-this.y),k.Cq(c,this.d),k.offset(this.x,this.y),k.Zn(c)):k.Fg(c);c.normalize();this.Hi=!1;this.Zq()}};var c=new ua(0,0,0,0);Nb=function(){if(this.j.Fc){var n=this.j.Fb,k=this.Ga;c.set(n.Xb(k.left),n.Yb(k.top),n.Xb(k.right),n.Yb(k.bottom));
this.hc.ah(c)||(this.hc.right<this.hc.left?n.update(this,null,c):n.update(this,this.hc,c),this.hc.Of(c),this.j.md=!0)}};Ob=function(){if(this.dl&&this.Ye){this.za();var n=this.type.Pi,k=this.Ga;c.set(n.Xb(k.left),n.Yb(k.top),n.Xb(k.right),n.Yb(k.bottom));this.ye.ah(c)||(this.ye.right<this.ye.left?n.update(this,null,c):n.update(this,this.ye,c),this.ye.Of(c),this.dl=!1)}};Lb=function(c,k){return this.Ga.Lb(c,k)&&this.mc.Lb(c,k)?this.Mg?this.xx(c,k):this.ea&&!this.ea.$f()?(this.ea.Mf(this.width,this.height,
this.d),this.ea.Lb(c-this.x,k-this.y)):!0:!1};Fb=function(){this.type.Ik();return this.of};Pb=function(){this.j.xn();return this.td};Qb=function(){W(this.ba);var c,k,q,r=!0;c=0;for(k=this.pe.length;c<k;c++)this.pe[c]&&(q=this.type.L[c],this.ba.push(q),q.jd||(r=!1));this.$q=!!this.ba.length;this.fe=r};Gb=function(){return"Inst"+this.kq};sb=function(c){if(c&&c.cc&&c.type!=this){var k,q,r;k=0;for(q=c.siblings.length;k<q;k++)if(r=c.siblings[k],r.type==this)return r}c=this.ca().Lc();return c.length?c[0]:
null};tb=function(c){var k=this.ca().Lc();return k.length?k[c.ih()%k.length]:null};rb=function(){if(this.Ig&&!this.C){var c,k;c=0;for(k=this.c.length;c<k;c++)this.c[c].of=c;var q=c,r=this.b.ad;c=0;for(k=r.length;c<k;++c)r[c].type===this&&(r[c].of=q++);this.Ig=!1}};Db=function(c){if(c<this.c.length)return this.c[c];c-=this.c.length;var k=this.b.ad,q,r;q=0;for(r=k.length;q<r;++q)if(k[q].type===this){if(0===c)return k[q];--c}return null};ub=function(){return this.he[this.zd]};vb=function(){this.zd++;
this.zd===this.he.length?this.he.push(new qb(this)):(this.he[this.zd].ma=!0,W(this.he[this.zd].N))};wb=function(){this.zd++;this.zd===this.he.length&&this.he.push(new qb(this));var c=this.he[this.zd],k=this.he[this.zd-1];k.ma?(c.ma=!0,W(c.N)):(c.ma=!1,za(c.c,k.c),za(c.N,k.N))};yb=function(){this.zd--};zb=function(c){var k,q,r,p,l,a=0;if(!this.C)for(k=0,q=this.Ea.length;k<q;k++)for(l=this.Ea[k],r=0,p=l.Ha.length;r<p;r++){if(c===l.Ha[r].name)return this.Ca.lastBehIndex=a,l.Ha[r];a++}k=0;for(q=this.Ha.length;k<
q;k++){if(c===this.Ha[k].name)return this.Ca.lastBehIndex=a,this.Ha[k];a++}return null};Ab=function(c){return this.kj(c)?this.Ca.lastBehIndex:-1};Bb=function(c){var k,q;k=0;for(q=this.L.length;k<q;k++)if(this.L[k].name===c)return k;return-1};Cb=function(){if(this.cc&&!this.C){var c,k,q,r,p,l,a;this.Ik();l=this.ca();var d=l.ma,e=(c=this.b.Ra())&&c.Pa&&c.Pa.Dc;c=0;for(k=this.nc.length;c<k;c++)if(p=this.nc[c],p!==this&&(p.Ik(),a=p.ca(),a.ma=d,!d)){W(a.c);q=0;for(r=l.c.length;q<r;++q)a.c[q]=p.Il(l.c[q].of);
if(e)for(W(a.N),q=0,r=l.N.length;q<r;++q)a.N[q]=p.Il(l.N[q].of)}}};Eb=function(){return"Type"+this.T};dc=function(c,k,q){if("undefined"===typeof c||"undefined"===typeof q)return!1;switch(k){case 0:return c===q;case 1:return c!==q;case 2:return c<q;case 3:return c<=q;case 4:return c>q;case 5:return c>=q;default:return!1}}})();var lc={};function pc(c){this.b=c}
(function(){function c(){return a.length?a.pop():[]}function n(d){var e,b;e=0;for(b=d.length;e<b;e++)Array.isArray(d[e])&&n(d[e]);W(d);a.push(d)}function k(){}function q(){}function r(){}var p=pc.prototype;p.Na=function(a){this.xa=a;this.b=a.b};p.Na.prototype.ga=function(){};p.Aa=function(a){this.type=a;this.b=a.b};var l=p.Aa.prototype,a=[];Array.isArray||(Array.isArray=function(a){return"[object Array]"===Object.prototype.toString.call(a)});l.ga=function(){this.xc=this.H[0];this.Ic=this.H[1];this.bd=
this.H[2];this.uc||(this.wd=c());var a=this.wd;a.length=this.xc;var e,b,f;for(e=0;e<this.xc;e++)for(a[e]||(a[e]=c()),a[e].length=this.Ic,b=0;b<this.Ic;b++)for(a[e][b]||(a[e][b]=c()),a[e][b].length=this.bd,f=0;f<this.bd;f++)a[e][b][f]=0;this.Ao=[];this.Bo=[];this.Co=[];this.Td=-1};l.Af=function(){var a;for(a=0;a<this.xc;a++)n(this.wd[a]);W(this.wd)};l.xd=function(a,e,b){a=Math.floor(a);e=Math.floor(e);b=Math.floor(b);return isNaN(a)||0>a||a>this.xc-1||isNaN(e)||0>e||e>this.Ic-1||isNaN(b)||0>b||b>this.bd-
1?0:this.wd[a][e][b]};l.set=function(a,e,b,c){a=Math.floor(a);e=Math.floor(e);b=Math.floor(b);isNaN(a)||0>a||a>this.xc-1||isNaN(e)||0>e||e>this.Ic-1||isNaN(b)||0>b||b>this.bd-1||(this.wd[a][e][b]=c)};l.Qt=function(){return JSON.stringify({c2array:!0,size:[this.xc,this.Ic,this.bd],data:this.wd})};l.Ob=function(){return{size:[this.xc,this.Ic,this.bd],data:this.wd}};l.ec=function(a){var e=a.size;this.xc=e[0];this.Ic=e[1];this.bd=e[2];this.wd=a.data};l.ee=function(a,e,b){0>a&&(a=0);0>e&&(e=0);0>b&&(b=
0);if(this.xc!==a||this.Ic!==e||this.bd!==b){this.xc=a;this.Ic=e;this.bd=b;var f,h,g=this.wd;g.length=a;for(a=0;a<this.xc;a++)for(ga(g[a])&&(g[a]=c()),g[a].length=e,f=0;f<this.Ic;f++)for(ga(g[a][f])&&(g[a][f]=c()),g[a][f].length=b,h=0;h<this.bd;h++)ga(g[a][f][h])&&(g[a][f][h]=0)}};l.kx=function(){return 0<=this.Td&&this.Td<this.Ao.length?this.Ao[this.Td]:0};l.lx=function(){return 0<=this.Td&&this.Td<this.Bo.length?this.Bo[this.Td]:0};l.rx=function(){return 0<=this.Td&&this.Td<this.Co.length?this.Co[this.Td]:
0};k.prototype.pr=function(a,e,b){return dc(this.xd(a,0,0),e,b)};l.$k=function(a){this.b.yg(a.W);a.ci();this.b.be(a.W)};p.n=new k;q.prototype.jr=function(){var a,e,b;for(a=0;a<this.xc;a++)for(e=0;e<this.Ic;e++)for(b=0;b<this.bd;b++)this.wd[a][e][b]=0};q.prototype.Ur=function(a,e,b){this.ee(a,e,b)};q.prototype.Wr=function(a,e){this.set(a,0,0,e)};p.da=new q;r.prototype.ds=function(a){a.qa(this.xc)};r.prototype.sr=function(a){a.qa(this.Ic)};r.prototype.Gn=function(a){a.jc(this.Qt())};p.lb=new r})();
function qc(c){this.b=c}
(function(){function c(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function n(a){a=a.toLowerCase();return X.hasOwnProperty(a)&&X[a].length?X[a][0].zc():y.destination}function k(){return y.createGain?y.createGain():y.createGainNode()}function q(a){return y.createDelay?y.createDelay(a):y.createDelayNode(a)}function r(a,b){a.start?a.start(b||0):a.noteOn(b||0)}function p(a,b,d,e){a.start?a.start(e||0,b):a.noteGrainOn(e||0,b,d-b)}function l(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}
function a(a,b,d,e,c,g){this.type="filter";this.Eb=[a,b,d,e,c,g];this.V=k();this.K=k();this.K.gain.value=g;this.J=k();this.J.gain.value=1-g;this.Qa=y.createBiquadFilter();this.Qa.type="number"===typeof this.Qa.type?a:xc[a];this.Qa.frequency.value=b;this.Qa.detune&&(this.Qa.detune.value=d);this.Qa.Q.value=e;this.Qa.gain.value=c;this.V.connect(this.Qa);this.V.connect(this.J);this.Qa.connect(this.K)}function d(a,b,d){this.type="delay";this.Eb=[a,b,d];this.V=k();this.K=k();this.K.gain.value=d;this.J=
k();this.J.gain.value=1-d;this.Sh=k();this.Kc=q(a);this.Kc.delayTime.value=a;this.Xi=k();this.Xi.gain.value=b;this.V.connect(this.Sh);this.V.connect(this.J);this.Sh.connect(this.K);this.Sh.connect(this.Kc);this.Kc.connect(this.Xi);this.Xi.connect(this.Sh)}function e(a,b,d,e){this.type="convolve";this.Eb=[b,d,e];this.V=k();this.K=k();this.K.gain.value=d;this.J=k();this.J.gain.value=1-d;this.Ze=y.createConvolver();a&&(this.Ze.normalize=b,this.Ze.buffer=a);this.V.connect(this.Ze);this.V.connect(this.J);
this.Ze.connect(this.K)}function b(a,b,d,e,c){this.type="flanger";this.Eb=[a,b,d,e,c];this.V=k();this.J=k();this.J.gain.value=1-c/2;this.K=k();this.K.gain.value=c/2;this.dj=k();this.dj.gain.value=e;this.Kc=q(a+b);this.Kc.delayTime.value=a;this.pb=y.createOscillator();this.pb.frequency.value=d;this.tc=k();this.tc.gain.value=b;this.V.connect(this.Kc);this.V.connect(this.J);this.Kc.connect(this.K);this.Kc.connect(this.dj);this.dj.connect(this.Kc);this.pb.connect(this.tc);this.tc.connect(this.Kc.delayTime);
r(this.pb)}function f(a,b,d,e,c,g){this.type="phaser";this.Eb=[a,b,d,e,c,g];this.V=k();this.J=k();this.J.gain.value=1-g/2;this.K=k();this.K.gain.value=g/2;this.Qa=y.createBiquadFilter();this.Qa.type="number"===typeof this.Qa.type?7:"allpass";this.Qa.frequency.value=a;this.Qa.detune&&(this.Qa.detune.value=b);this.Qa.Q.value=d;this.pb=y.createOscillator();this.pb.frequency.value=c;this.tc=k();this.tc.gain.value=e;this.V.connect(this.Qa);this.V.connect(this.J);this.Qa.connect(this.K);this.pb.connect(this.tc);
this.tc.connect(this.Qa.frequency);r(this.pb)}function h(a){this.type="gain";this.Eb=[a];this.Z=k();this.Z.gain.value=a}function g(a,b){this.type="tremolo";this.Eb=[a,b];this.Z=k();this.Z.gain.value=1-b/2;this.pb=y.createOscillator();this.pb.frequency.value=a;this.tc=k();this.tc.gain.value=b/2;this.pb.connect(this.tc);this.tc.connect(this.Z.gain);r(this.pb)}function t(a,b){this.type="ringmod";this.Eb=[a,b];this.V=k();this.K=k();this.K.gain.value=b;this.J=k();this.J.gain.value=1-b;this.di=k();this.di.gain.value=
0;this.pb=y.createOscillator();this.pb.frequency.value=a;this.pb.connect(this.di.gain);r(this.pb);this.V.connect(this.di);this.V.connect(this.J);this.di.connect(this.K)}function v(a,b,d,e,c){this.type="distortion";this.Eb=[a,b,d,e,c];this.V=k();this.fk=k();this.ek=k();this.Nv(d,Math.pow(10,e/20));this.K=k();this.K.gain.value=c;this.J=k();this.J.gain.value=1-c;this.Nk=y.createWaveShaper();this.Vi=new Float32Array(65536);this.Ot(a,b);this.Nk.Vi=this.Vi;this.V.connect(this.fk);this.V.connect(this.J);
this.fk.connect(this.Nk);this.Nk.connect(this.ek);this.ek.connect(this.K)}function S(a,b,d,e,c){this.type="compressor";this.Eb=[a,b,d,e,c];this.Z=y.createDynamicsCompressor();try{this.Z.threshold.value=a,this.Z.knee.value=b,this.Z.ratio.value=d,this.Z.attack.value=e,this.Z.release.value=c}catch(g){}}function m(a,b){this.type="analyser";this.Eb=[a,b];this.Z=y.createAnalyser();this.Z.fftSize=a;this.Z.smoothingTimeConstant=b;this.Mt=new Float32Array(this.Z.frequencyBinCount);this.Fq=new Uint8Array(a);
this.Yh=0}function u(){this.fa=null;this.Ij=0}function E(a,b){this.src=a;this.R=J;this.Pc=b;this.Ai=!1;var d=this;this.lg=this.ug=null;this.vg=[];this.ok=0;this.Dn=this.bj=this.Jq=this.Zj=!1;1===J&&b&&!Ra&&(this.R=0,this.ug=k());this.Nd=this.Y=null;var e;switch(this.R){case 0:this.Y=new Audio;this.Y.crossOrigin="anonymous";this.Y.addEventListener("canplaythrough",function(){d.Dn=!0});1===J&&y.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.Jq=!0,this.Y.addEventListener("canplay",
function(){!d.lg&&d.Y&&(d.lg=y.createMediaElementSource(d.Y),d.lg.connect(d.ug))}));this.Y.autoplay=!1;this.Y.tx="auto";this.Y.src=a;break;case 1:w.Aj?w.xo(a,function(a){d.Nd=a;d.mo()},function(){d.bj=!0}):(e=new XMLHttpRequest,e.open("GET",a,!0),e.responseType="arraybuffer",e.onload=function(){d.Nd=e.response;d.mo()},e.onerror=function(){d.bj=!0},e.send());break;case 2:this.Y=!0;break;case 3:this.Y=!0}}function C(a,b){var d=this;this.tag=b;this.Wa=this.Bd=!0;this.src=a.src;this.buffer=a;this.R=J;
this.Pc=a.Pc;this.playbackRate=1;this.Xf=!0;this.pc=this.Ec=!1;this.ic=0;this.yh=this.bg=this.Dd=!1;this.volume=1;this.Km=function(a){if(!d.pc&&!d.Ec){var b=this;b||(b=a.target);b===d.yi&&(d.Xf=!0,d.Wa=!0,M=d.tag,w.trigger(qc.prototype.n.vi,P))}};this.yi=null;this.Zf=1===I&&!this.Pc||2===I;this.pg=1;this.startTime=this.Zf?w.Bb.X:w.ke.X;this.Ta=this.bb=null;this.Ed=!1;this.Cb=null;this.Zp=this.Yp=this.Xp=this.Wp=this.aq=this.$p=0;this.e=null;var e=!1;1!==this.R||0!==this.buffer.R||this.buffer.Jq||
(this.R=0);switch(this.R){case 0:this.Pc?(this.e=a.Y,e=!a.Ai,a.Ai=!0):(this.e=new Audio,this.e.crossOrigin="anonymous",this.e.autoplay=!1,this.e.src=a.Y.src,e=!0);e&&this.e.addEventListener("ended",function(){M=d.tag;d.Wa=!0;w.trigger(qc.prototype.n.vi,P)});break;case 1:this.bb=k();this.bb.connect(n(b));1===this.buffer.R?a.Y&&(this.e=y.createBufferSource(),this.e.buffer=a.Y,this.e.connect(this.bb)):(this.e=this.buffer.Y,this.buffer.ug.connect(this.bb),this.buffer.Ai||(this.buffer.Ai=!0,this.buffer.Y.addEventListener("ended",
function(){M=d.tag;d.Wa=!0;w.trigger(qc.prototype.n.vi,P)})));break;case 2:this.e=new window.Media(Q+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(d.Xf=!0,d.Wa=!0,M=d.tag,w.trigger(qc.prototype.n.vi,P))});break;case 3:this.e=!0}}function F(a,b){X.hasOwnProperty(a)?X[a].push(b):X[a]=[b];var d,e,c,g,f=y.destination;if(X.hasOwnProperty(a)&&(c=X[a],c.length))for(f=c[0].zc(),d=0,e=c.length;d<e;d++)g=c[d],d+1===e?g.Gc(y.destination):g.Gc(c[d+1].zc());W(Ia);if(a.length)for(d=0,e=B.length;d<
e;d++)c=B[d],mb(a,c.tag)&&Ia.push(c);else x&&!x.nf()&&(W(Ia),Ia[0]=x);d=0;for(e=Ia.length;d<e;d++)Ia[d].yv(f);Ca&&xb===a&&(Ca.disconnect(),Ca.connect(f))}function N(){}function T(){}var D=qc.prototype;D.Na=function(a){this.xa=a;this.b=a.b};D.Na.prototype.ga=function(){};var w=null,P=null,M="",Q="",J=0,y=null,G=[],B=[],x=null,z=!1,I=0,H=!1,K=1,O=0,L=0,V=!1,qa=1,U=1,sa=10,ha=1E4,Ba=1,Ca=null,xb="",Pa=!1,Qa=[],Ra=!1,X={},xc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");
a.prototype.Gc=function(a){this.K.disconnect();this.K.connect(a);this.J.disconnect();this.J.connect(a)};a.prototype.remove=function(){this.V.disconnect();this.Qa.disconnect();this.K.disconnect();this.J.disconnect()};a.prototype.zc=function(){return this.V};d.prototype.Gc=function(a){this.K.disconnect();this.K.connect(a);this.J.disconnect();this.J.connect(a)};d.prototype.remove=function(){this.V.disconnect();this.Sh.disconnect();this.Kc.disconnect();this.Xi.disconnect();this.K.disconnect();this.J.disconnect()};
d.prototype.zc=function(){return this.V};e.prototype.Gc=function(a){this.K.disconnect();this.K.connect(a);this.J.disconnect();this.J.connect(a)};e.prototype.remove=function(){this.V.disconnect();this.Ze.disconnect();this.K.disconnect();this.J.disconnect()};e.prototype.zc=function(){return this.V};b.prototype.Gc=function(a){this.J.disconnect();this.J.connect(a);this.K.disconnect();this.K.connect(a)};b.prototype.remove=function(){this.V.disconnect();this.Kc.disconnect();this.pb.disconnect();this.tc.disconnect();
this.J.disconnect();this.K.disconnect();this.dj.disconnect()};b.prototype.zc=function(){return this.V};f.prototype.Gc=function(a){this.J.disconnect();this.J.connect(a);this.K.disconnect();this.K.connect(a)};f.prototype.remove=function(){this.V.disconnect();this.Qa.disconnect();this.pb.disconnect();this.tc.disconnect();this.J.disconnect();this.K.disconnect()};f.prototype.zc=function(){return this.V};h.prototype.Gc=function(a){this.Z.disconnect();this.Z.connect(a)};h.prototype.remove=function(){this.Z.disconnect()};
h.prototype.zc=function(){return this.Z};g.prototype.Gc=function(a){this.Z.disconnect();this.Z.connect(a)};g.prototype.remove=function(){this.pb.disconnect();this.tc.disconnect();this.Z.disconnect()};g.prototype.zc=function(){return this.Z};t.prototype.Gc=function(a){this.K.disconnect();this.K.connect(a);this.J.disconnect();this.J.connect(a)};t.prototype.remove=function(){this.pb.disconnect();this.di.disconnect();this.V.disconnect();this.K.disconnect();this.J.disconnect()};t.prototype.zc=function(){return this.V};
v.prototype.Nv=function(a,b){.01>a&&(a=.01);this.fk.gain.value=a;this.ek.gain.value=Math.pow(1/a,.6)*b};v.prototype.shape=function(a,b,d){var e=1.05*d*b-b;d=0>a?-1:1;a=0>a?-a:a;b=a<b?a:b+e*(1-Math.exp(-(1/e)*(a-b)));return b*d};v.prototype.Ot=function(a,b){for(var d=Math.pow(10,a/20),e=Math.pow(10,b/20),c=0,g=0;32768>g;++g)c=g/32768,c=this.shape(c,d,e),this.Vi[32768+g]=c,this.Vi[32768-g-1]=-c};v.prototype.Gc=function(a){this.K.disconnect();this.K.connect(a);this.J.disconnect();this.J.connect(a)};
v.prototype.remove=function(){this.V.disconnect();this.fk.disconnect();this.Nk.disconnect();this.ek.disconnect();this.K.disconnect();this.J.disconnect()};v.prototype.zc=function(){return this.V};S.prototype.Gc=function(a){this.Z.disconnect();this.Z.connect(a)};S.prototype.remove=function(){this.Z.disconnect()};S.prototype.zc=function(){return this.Z};m.prototype.Xa=function(){this.Z.getFloatFrequencyData(this.Mt);this.Z.getByteTimeDomainData(this.Fq);for(var a=this.Z.fftSize,b=0,d=this.Yh=0,e=0;b<
a;b++)e=(this.Fq[b]-128)/128,0>e&&(e=-e),this.Yh<e&&(this.Yh=e),d+=e*e;this.Yh=c(this.Yh);c(Math.sqrt(d/a))};m.prototype.Gc=function(a){this.Z.disconnect();this.Z.connect(a)};m.prototype.remove=function(){this.Z.disconnect()};m.prototype.zc=function(){return this.Z};u.prototype.fi=function(a){this.fa=a};u.prototype.rj=function(){return!!this.fa};u.prototype.Xa=function(){};var ib=!1;E.prototype.zv=function(){var a,b,d,e;d=a=0;for(b=B.length;a<b;++a)e=B[a],B[d]=e,e.buffer===this?e.stop():++d;B.length=
d;this.lg&&(this.lg.disconnect(),this.lg=null);this.ug&&(this.ug.disconnect(),this.ug=null);this.Nd=this.Y=null};E.prototype.mo=function(){if(!this.Y&&this.Nd){var a=this;if(y.decodeAudioData)y.decodeAudioData(this.Nd,function(b){a.Y=b;a.Nd=null;var d,e,c;if(ga(a.bk)||H)ga(a.Ri)||(d=a.Ri.Ze,d.normalize=a.Kp,d.buffer=b);else if(a.vg.length){d=0;for(e=a.vg.length;d<e;d++){b=a.vg[d];c=new C(a,b.Mq);c.dn(!0);if("undefined"!==typeof b.Mp&&(b.fa=w.gh(b.Mp),!b.fa))continue;if(b.fa){var g=Va(b.fa.x,b.fa.y,
-b.fa.j.zb(),O,L,!0),f=Va(b.fa.x,b.fa.y,-b.fa.j.zb(),O,L,!1);c.cn(g,f,Ga(b.fa.d-b.fa.j.zb()),b.Tl,b.Am,b.Cm);c.fi(b.fa)}else c.cn(b.x,b.y,b.hs,b.Tl,b.Am,b.Cm);c.play(a.vm,a.Bn,a.ok);a.Zj&&c.pause();B.push(c)}W(a.vg)}else c=new C(a,a.bk||""),c.play(a.vm,a.Bn,a.ok),a.Zj&&c.pause(),B.push(c)},function(){a.bj=!0});else if(this.Y=y.createBuffer(this.Nd,!1),this.Nd=null,ga(this.bk)||H)ga(this.Ri)||(b=this.Ri.Ze,b.normalize=this.Kp,b.buffer=this.Y);else{var b=new C(this,this.bk);b.play(this.vm,this.Bn,this.ok);
this.Zj&&b.pause();B.push(b)}}};E.prototype.Xo=function(){switch(this.R){case 0:var a=4<=this.Y.readyState;a&&(this.Dn=!0);return a||this.Dn;case 1:return!!this.Nd||!!this.Y;case 2:return!0;case 3:return!0}return!1};E.prototype.Eu=function(){switch(this.R){case 0:return this.Xo();case 1:return!!this.Y;case 2:return!0;case 3:return!0}return!1};E.prototype.tu=function(){switch(this.R){case 0:return!!this.Y.error;case 1:return this.bj}return!1};C.prototype.nf=function(){switch(this.R){case 0:return this.e.ended;
case 1:return 1===this.buffer.R?!this.Bd&&!this.Wa&&this.e.loop||this.pc?!1:this.Xf:this.e.ended;case 2:return this.Xf;case 3:!0}return!0};C.prototype.ss=function(){return this.Bd||this.Wa?!0:this.nf()};C.prototype.dn=function(a){1===J&&(!this.Ed&&a?this.bb&&(this.Ta||(this.Ta=y.createPanner(),this.Ta.panningModel="number"===typeof this.Ta.panningModel?qa:["equalpower","HRTF","soundfield"][qa],this.Ta.distanceModel="number"===typeof this.Ta.distanceModel?U:["linear","inverse","exponential"][U],this.Ta.refDistance=
sa,this.Ta.maxDistance=ha,this.Ta.rolloffFactor=Ba),this.bb.disconnect(),this.bb.connect(this.Ta),this.Ta.connect(n(this.tag)),this.Ed=!0):this.Ed&&!a&&this.bb&&(this.Ta.disconnect(),this.bb.disconnect(),this.bb.connect(n(this.tag)),this.Ed=!1))};C.prototype.cn=function(a,b,d,e,c,g){this.Ed&&1===J&&(this.Ta.setPosition(a,b,0),this.Ta.setOrientation(Math.cos(Y(d)),Math.sin(Y(d)),0),this.Ta.coneInnerAngle=e,this.Ta.coneOuterAngle=c,this.Ta.coneOuterGain=g,this.$p=a,this.aq=b,this.Wp=d,this.Xp=e,this.Yp=
c,this.Zp=g)};C.prototype.fi=function(a){this.Ed&&1===J&&(this.Cb||(this.Cb=new u),this.Cb.fi(a))};C.prototype.Xa=function(a){if(this.Ed&&1===J&&this.Cb&&this.Cb.rj()&&this.vh()){this.Cb.Xa(a);a=this.Cb.fa;var b=Va(a.x,a.y,-a.j.zb(),O,L,!0),d=Va(a.x,a.y,-a.j.zb(),O,L,!1);this.Ta.setPosition(b,d,0);b=0;"undefined"!==typeof this.Cb.fa.d&&(b=a.d-a.j.zb(),this.Ta.setOrientation(Math.cos(b),Math.sin(b),0))}};C.prototype.play=function(a,b,d,e){var c=this.e;this.Dd=a;this.volume=b;d=d||0;e=e||0;switch(this.R){case 0:1!==
c.playbackRate&&(c.playbackRate=1);c.volume!==b*K&&(c.volume=b*K);c.loop!==a&&(c.loop=a);c.muted&&(c.muted=!1);if(c.currentTime!==d)try{c.currentTime=d}catch(g){}if(this.Pc&&Pa&&!w.oc)Qa.push(this);else try{this.e.play()}catch(f){console&&console.log&&console.log("[C2] WARNING: exception trying to play audio '"+this.buffer.src+"': ",f)}break;case 1:this.muted=!1;this.pg=1;if(1===this.buffer.R)this.bb.gain.value=b*K,this.Bd||(this.e=y.createBufferSource(),this.e.buffer=this.buffer.Y,this.e.connect(this.bb)),
this.e.onended=this.Km,this.yi=this.e,this.e.loop=a,this.Xf=!1,0===d?r(this.e,e):p(this.e,d,this.kf(),e);else{1!==c.playbackRate&&(c.playbackRate=1);c.loop!==a&&(c.loop=a);c.volume=b*K;if(c.currentTime!==d)try{c.currentTime=d}catch(h){}this.Pc&&Pa&&!w.oc?Qa.push(this):c.play()}break;case 2:(!this.Bd&&this.Wa||0!==d)&&c.seekTo(d);c.play();this.Xf=!1;break;case 3:w.Ub?AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=1;this.startTime=(this.Zf?w.Bb.X:w.ke.X)-
d;this.pc=this.Wa=this.Bd=!1};C.prototype.stop=function(){switch(this.R){case 0:this.e.paused||this.e.pause();break;case 1:1===this.buffer.R?l(this.e):this.e.paused||this.e.pause();break;case 2:this.e.stop();break;case 3:w.Ub&&AppMobi.context.stopSound(this.src)}this.Wa=!0;this.pc=!1};C.prototype.pause=function(){if(!(this.Bd||this.Wa||this.nf()||this.pc)){switch(this.R){case 0:this.e.paused||this.e.pause();break;case 1:1===this.buffer.R?(this.ic=this.Kl(!0),this.Dd&&(this.ic=this.ic%this.kf()),this.pc=
!0,l(this.e)):this.e.paused||this.e.pause();break;case 2:this.e.pause();break;case 3:w.Ub&&AppMobi.context.stopSound(this.src)}this.pc=!0}};C.prototype.Ev=function(){if(!(this.Bd||this.Wa||this.nf())&&this.pc){switch(this.R){case 0:this.e.play();break;case 1:1===this.buffer.R?(this.e=y.createBufferSource(),this.e.buffer=this.buffer.Y,this.e.connect(this.bb),this.e.onended=this.Km,this.yi=this.e,this.e.loop=this.Dd,this.bb.gain.value=K*this.volume*this.pg,this.Jk(),this.startTime=(this.Zf?w.Bb.X:w.ke.X)-
this.ic/(this.playbackRate||.001),p(this.e,this.ic,this.kf())):this.e.play();break;case 2:this.e.play();break;case 3:w.Ub&&AppMobi.context.resumeSound(this.src)}this.pc=!1}};C.prototype.seek=function(a){if(!(this.Bd||this.Wa||this.nf()))switch(this.R){case 0:try{this.e.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.R)this.pc?this.ic=a:(this.pause(),this.ic=a,this.Ev());else try{this.e.currentTime=a}catch(d){}break;case 3:w.Ub&&AppMobi.context.seekSound(this.src,a)}};C.prototype.yv=function(a){1===
this.R&&(this.Ed?(this.Ta.disconnect(),this.Ta.connect(a)):(this.bb.disconnect(),this.bb.connect(a)))};C.prototype.kf=function(){var a=0;switch(this.R){case 0:"undefined"!==typeof this.e.duration&&(a=this.e.duration);break;case 1:a=this.buffer.Y.duration;break;case 2:a=this.e.getDuration();break;case 3:w.Ub&&(a=AppMobi.context.getDurationSound(this.src))}return a};C.prototype.Kl=function(a){var b=this.kf(),d=0;switch(this.R){case 0:"undefined"!==typeof this.e.currentTime&&(d=this.e.currentTime);break;
case 1:if(1===this.buffer.R){if(this.pc)return this.ic;d=(this.Zf?w.Bb.X:w.ke.X)-this.startTime}else"undefined"!==typeof this.e.currentTime&&(d=this.e.currentTime);break;case 3:w.Ub&&(d=AppMobi.context.getPlaybackTimeSound(this.src))}a&&(d*=this.playbackRate);!this.Dd&&d>b&&(d=b);return d};C.prototype.vh=function(){return!this.pc&&!this.Bd&&!this.Wa&&!this.nf()};C.prototype.Sv=function(){return!this.Bd&&!this.Wa&&!this.nf()};C.prototype.dw=function(){var a=this.volume*K;isFinite(a)||(a=0);switch(this.R){case 0:"undefined"!==
typeof this.e.volume&&this.e.volume!==a&&(this.e.volume=a);break;case 1:1===this.buffer.R?this.bb.gain.value=a*this.pg:"undefined"!==typeof this.e.volume&&this.e.volume!==a&&(this.e.volume=a)}};C.prototype.$i=function(a){switch(this.R){case 0:this.e.muted!==!!a&&(this.e.muted=!!a);break;case 1:1===this.buffer.R?(this.pg=a?0:1,this.bb.gain.value=K*this.volume*this.pg):this.e.muted!==!!a&&(this.e.muted=!!a)}};C.prototype.Ov=function(){this.bg=!0;this.$i(this.bg||this.yh)};C.prototype.yq=function(a){this.yh=
!!a;this.$i(this.bg||this.yh)};C.prototype.Jk=function(){var a=this.playbackRate;this.Zf&&(a*=w.Ng);switch(this.R){case 0:this.e.playbackRate!==a&&(this.e.playbackRate=a);break;case 1:1===this.buffer.R?this.e.playbackRate.value!==a&&(this.e.playbackRate.value=a):this.e.playbackRate!==a&&(this.e.playbackRate=a)}};C.prototype.Qv=function(a){switch(this.R){case 0:a?this.vh()?(this.Ec=!0,this.e.pause()):this.Ec=!1:this.Ec&&(this.e.play(),this.Ec=!1);break;case 1:a?this.vh()?(this.Ec=!0,1===this.buffer.R?
(this.ic=this.Kl(!0),this.Dd&&(this.ic=this.ic%this.kf()),l(this.e)):this.e.pause()):this.Ec=!1:this.Ec&&(1===this.buffer.R?(this.e=y.createBufferSource(),this.e.buffer=this.buffer.Y,this.e.connect(this.bb),this.e.onended=this.Km,this.yi=this.e,this.e.loop=this.Dd,this.bb.gain.value=K*this.volume*this.pg,this.Jk(),this.startTime=(this.Zf?w.Bb.X:w.ke.X)-this.ic/(this.playbackRate||.001),p(this.e,this.ic,this.kf())):this.e.play(),this.Ec=!1);break;case 2:a?this.vh()?(this.e.pause(),this.Ec=!0):this.Ec=
!1:this.Ec&&(this.Ec=!1,this.e.play())}};D.Aa=function(a){function b(){"suspended"===y.state&&y.resume&&y.resume();if(!V&&y.createBuffer){var a=y.createBuffer(1,220,22050),d=y.createBufferSource();d.buffer=a;d.connect(y.destination);r(d)}}this.type=a;w=this.b=a.b;P=this;this.rc=null;this.Jh=-600;this.b.Aj&&(Ra=!0);!(this.b.Ah||this.b.vj&&(this.b.am||this.b.wj))||this.b.yj||this.b.fb||this.b.Vo||Ra||(Pa=!0);y=null;"undefined"!==typeof AudioContext?(J=1,y=new AudioContext):"undefined"!==typeof webkitAudioContext&&
(J=1,y=new webkitAudioContext);this.b.Ah&&y&&(y.close&&y.close(),"undefined"!==typeof AudioContext?y=new AudioContext:"undefined"!==typeof webkitAudioContext&&(y=new webkitAudioContext));Pa?document.addEventListener("touchend",function(){!ib&&y&&(b(),ib=!0);var a,d,e;if(Pa){if(!H)for(a=0,d=Qa.length;a<d;++a)e=Qa[a],e.Wa||e.pc||e.e.play();W(Qa)}},!0):Ra&&document.addEventListener("touchend",function(){!ib&&y&&(b(),ib=!0)},!0);1!==J&&(this.b.Vd&&"undefined"!==typeof window.Media?J=2:this.b.Wo&&(J=3));
2===J&&(Q=location.href,a=Q.lastIndexOf("/"),-1<a&&(Q=Q.substr(0,a+1)),Q=Q.replace("file://",""));if(this.b.Gu&&this.b.Iu&&"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.ne(this);else{if(this.b.Ub)z=this.b.vj;else try{z=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(d){z=!1}this.b.Dk(this)}};var na=D.Aa.prototype;na.ga=function(){this.b.Kf=this;I=this.H[0];this.de=this.H[1];
this.jv=0!==this.H[2];this.Ip=0;qa=this.H[3];U=this.H[4];this.Jh=-this.H[5];sa=this.H[6];ha=this.H[7];Ba=this.H[8];this.rc=new u;var a=this.b.G||this.b.width,b=this.b.F||this.b.height;1===J&&(y.listener.setPosition(a/2,b/2,this.Jh),y.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,b){Ca&&Ca.disconnect();xb=b.toLowerCase();Ca=y.createMediaStreamSource(a);Ca.connect(n(xb))});this.b.ks(function(a){P.Zu(a)});var d=this;this.b.Sn(function(a){d.Gm(a)})};na.Gm=function(a){var b,
d,e;b=0;for(d=B.length;b<d;b++)e=B[b],e.Cb&&e.Cb.fa===a&&(e.Cb.fa=null,e.Ed&&e.vh()&&e.Dd&&e.stop());this.rc.fa===a&&(this.rc.fa=null)};na.Ob=function(){var a={silent:H,masterVolume:K,listenerZ:this.Jh,listenerUid:this.rc.rj()?this.rc.fa.uid:-1,playing:[],effects:{}},b=a.playing,d,e,c,g,f,h;d=0;for(e=B.length;d<e;d++)c=B[d],!c.Sv()||3===this.de||c.Pc&&1===this.de||!c.Pc&&2===this.de||(g=c.Kl(),c.Dd&&(g=g%c.kf()),g={tag:c.tag,buffersrc:c.buffer.src,is_music:c.Pc,playbackTime:g,volume:c.volume,looping:c.Dd,
muted:c.bg,playbackRate:c.playbackRate,paused:c.pc,resume_position:c.ic},c.Ed&&(g.pan={},h=g.pan,c.Cb&&c.Cb.rj()?h.objUid=c.Cb.fa.uid:(h.x=c.$p,h.y=c.aq,h.a=c.Wp),h.ia=c.Xp,h.oa=c.Yp,h.og=c.Zp),b.push(g));b=a.effects;for(f in X)if(X.hasOwnProperty(f)){c=[];d=0;for(e=X[f].length;d<e;d++)c.push({type:X[f][d].type,params:X[f][d].Eb});b[f]=c}return a};var Sa=[];na.ec=function(c){var p=c.silent;K=c.masterVolume;this.Jh=c.listenerZ;this.rc.fi(null);var k=c.listenerUid;-1!==k&&(this.rc.Ij=k,Sa.push(this.rc));
var k=c.playing,l,r,n,q,C,x,y,z,E,w,D;if(3!==this.de)for(l=0,r=B.length;l<r;l++)E=B[l],E.Pc&&1===this.de||(E.Pc||2!==this.de)&&E.stop();for(C in X)if(X.hasOwnProperty(C))for(l=0,r=X[C].length;l<r;l++)X[C][l].remove();Za(X);for(C in c.effects)if(c.effects.hasOwnProperty(C))for(x=c.effects[C],l=0,r=x.length;l<r;l++)switch(n=x[l].type,w=x[l].params,n){case "filter":F(C,new a(w[0],w[1],w[2],w[3],w[4],w[5]));break;case "delay":F(C,new d(w[0],w[1],w[2]));break;case "convolve":n=w[2];E=this.jj(n,!1);E.Y?
n=new e(E.Y,w[0],w[1],n):(n=new e(null,w[0],w[1],n),E.Kp=w[0],E.Ri=n);F(C,n);break;case "flanger":F(C,new b(w[0],w[1],w[2],w[3],w[4]));break;case "phaser":F(C,new f(w[0],w[1],w[2],w[3],w[4],w[5]));break;case "gain":F(C,new h(w[0]));break;case "tremolo":F(C,new g(w[0],w[1]));break;case "ringmod":F(C,new t(w[0],w[1]));break;case "distortion":F(C,new v(w[0],w[1],w[2],w[3],w[4]));break;case "compressor":F(C,new S(w[0],w[1],w[2],w[3],w[4]));break;case "analyser":F(C,new m(w[0],w[1]))}l=0;for(r=k.length;l<
r;l++)3===this.de||(c=k[l],n=c.buffersrc,q=c.is_music,C=c.tag,x=c.playbackTime,y=c.looping,z=c.volume,D=(w=c.pan)&&w.hasOwnProperty("objUid")?w.objUid:-1,q&&1===this.de)||!q&&2===this.de||((E=this.Go(n,C,q,y,z))?(E.ic=c.resume_position,E.dn(!!w),E.play(y,z,x),E.Jk(),E.dw(),E.$i(E.bg||E.yh),c.paused&&E.pause(),c.muted&&E.Ov(),E.$i(E.bg||E.yh),w&&(-1!==D?(E.Cb=E.Cb||new u,E.Cb.Ij=D,Sa.push(E.Cb)):E.cn(w.x,w.y,w.a,w.ia,w.oa,w.og))):(E=this.jj(n,q),E.ok=x,E.Zj=c.paused,w&&(-1!==D?E.vg.push({Mp:D,Tl:w.ia,
Am:w.oa,Cm:w.og,Mq:C}):E.vg.push({x:w.x,y:w.y,hs:w.a,Tl:w.ia,Am:w.oa,Cm:w.og,Mq:C}))));if(p&&!H){l=0;for(r=B.length;l<r;l++)B[l].yq(!0);H=!0}else if(!p&&H){l=0;for(r=B.length;l<r;l++)B[l].yq(!1);H=!1}};na.Kd=function(){var a,b,d,c;a=0;for(b=Sa.length;a<b;a++)d=Sa[a],c=this.b.gh(d.Ij),d.fi(c),d.Ij=-1,c&&(O=c.x,L=c.y);W(Sa)};na.Zu=function(a){if(!this.jv){!a&&y&&y.resume&&(y.resume(),V=!1);var b,d;b=0;for(d=B.length;b<d;b++)B[b].Qv(a);a&&y&&y.suspend&&(y.suspend(),V=!0)}};na.Xa=function(){var a=this.b.cf,
b,d,c;b=0;for(d=B.length;b<d;b++)c=B[b],c.Xa(a),0!==I&&c.Jk();var e,g;for(e in X)if(X.hasOwnProperty(e))for(c=X[e],b=0,d=c.length;b<d;b++)g=c[b],g.Xa&&g.Xa();1===J&&this.rc.rj()&&(this.rc.Xa(a),O=this.rc.fa.x,L=this.rc.fa.y,y.listener.setPosition(this.rc.fa.x,this.rc.fa.y,this.Jh))};var Ta=[];na.Pv=function(a){var b,d,c,e,g,f=0;b=0;for(d=a.length;b<d;++b)if(c=a[b],e=c[0],c=2*c[1],(g=4<e.length&&".ogg"===e.substr(e.length-4))&&z||!g&&!z)Ta.push({filename:e,size:c,fa:null}),f+=c;return f};na.Uv=function(){var a,
b,d,c;a=0;for(b=Ta.length;a<b;++a)d=Ta[a],c=this.b.xl+d.filename,d.fa=this.jj(c,!1)};na.$t=function(){var a=0,b,d,c;b=0;for(d=Ta.length;b<d;++b)c=Ta[b],c.fa.Eu()||c.fa.tu()||this.b.fb||this.b.wj?a+=c.size:c.fa.Xo()&&(a+=Math.floor(c.size/2));return a};na.Av=function(){var a,b,d,c;d=a=0;for(b=G.length;a<b;++a)c=G[a],G[d]=c,c.Pc?c.zv():++d;G.length=d};na.jj=function(a,b){var d,c,e,g=null;d=0;for(c=G.length;d<c;d++)if(e=G[d],e.src===a){g=e;break}g||(Ra&&b&&this.Av(),g=new E(a,b),G.push(g));return g};
na.Go=function(a,b,d,c,e){var g,f,h;g=0;for(f=B.length;g<f;g++)if(h=B[g],h.src===a&&(h.ss()||d))return h.tag=b,h;a=this.jj(a,d);if(!a.Y)return"<preload>"!==b&&(a.bk=b,a.vm=c,a.Bn=e),null;h=new C(a,b);B.push(h);return h};var Ia=[];N.prototype.vi=function(a){return mb(M,a)};D.n=new N;T.prototype.Play=function(a,b,d,c){!H&&(d=Math.pow(10,d/20),isFinite(d)||(d=0),0>d&&(d=0),1<d&&(d=1),x=this.Go(this.b.xl+a[0]+(z?".ogg":".m4a"),c,a[1],0!==b,d))&&(x.dn(!1),x.play(0!==b,d,0,this.Ip),this.Ip=0)};D.da=new T;
D.lb=new function(){}})();function oc(c){this.b=c}
(function(){function c(){this.name="";this.bi=0;this.Eb=[]}function n(){a++;a===l.length&&l.push(new c);return l[a]}function k(){}function q(){}function r(){}var p=oc.prototype;p.Na=function(a){this.xa=a;this.b=a.b};p.Na.prototype.ga=function(){};p.Aa=function(a){this.type=a;this.b=a.b};var l=[],a=-1;p.Aa.prototype.ga=function(){var d=this;window.c2_callFunction=function(c,b){var f,h,g,p=n();p.name=c.toLowerCase();p.bi=0;if(b)for(p.Eb.length=b.length,f=0,h=b.length;f<h;++f)g=b[f],p.Eb[f]="number"===
typeof g||"string"===typeof g?g:"boolean"===typeof g?g?1:0:0;else W(p.Eb);d.b.trigger(oc.prototype.n.wi,d,p.name);a--;return p.bi}};k.prototype.wi=function(d){var c=0>a?null:l[a];return c?mb(d,c.name):!1};p.n=new k;q.prototype.CallFunction=function(d,c){var b=n();b.name=d.toLowerCase();b.bi=0;za(b.Eb,c);this.b.trigger(oc.prototype.n.wi,this,b.name);a--};p.da=new q;r.prototype.ir=function(d,c){var b=n();b.name=c.toLowerCase();b.bi=0;W(b.Eb);var f,h;f=2;for(h=arguments.length;f<h;f++)b.Eb.push(arguments[f]);
this.b.trigger(oc.prototype.n.wi,this,b.name);a--;d.Aq(b.bi)};p.lb=new r})();function rc(c){this.b=c}
(function(){function c(){}function n(){}var k=rc.prototype;k.Na=function(c){this.xa=c;this.b=c.b};k.Na.prototype.ga=function(){};k.Aa=function(c){this.type=c;this.b=c.b;this.Lf=Array(4);this.Pq=this.Fk=this.Ff=this.Me=this.Le=0;this.Ql=!1};var q=k.Aa.prototype;q.ga=function(){var c=this;if(!this.b.fb){jQuery(document).mousemove(function(a){c.Im(a)});jQuery(document).mousedown(function(a){c.Hm(a)});jQuery(document).mouseup(function(a){c.Jm(a)});jQuery(document).dblclick(function(a){c.Wu(a)});var k=
function(a){c.cv(a)};document.addEventListener("mousewheel",k,!1);document.addEventListener("DOMMouseScroll",k,!1)}};var r={left:0,top:0};q.Im=function(c){var k=this.b.fb?r:jQuery(this.b.canvas).offset();this.Le=c.pageX-k.left;this.Me=c.pageY-k.top};q.Ep=function(){return 0<this.b.Tb?!0:0<=this.Le&&0<=this.Me&&this.Le<this.b.width&&this.Me<this.b.height};q.Hm=function(c){this.Ep()&&(this.Lf[c.which]=!0,this.b.oc=!0,this.b.trigger(rc.prototype.n.Jr,this),this.Ff=c.which-1,this.Fk=0,this.b.trigger(rc.prototype.n.In,
this),this.b.trigger(rc.prototype.n.Sk,this),this.b.oc=!1)};q.Jm=function(c){this.Lf[c.which]&&(this.b.Mo&&!this.b.Yf&&c.preventDefault(),this.b.Mo=!0,this.Lf[c.which]=!1,this.b.oc=!0,this.Ff=c.which-1,this.b.trigger(rc.prototype.n.Mn,this),this.b.oc=!1)};q.Wu=function(c){this.Ep()&&(c.preventDefault(),this.b.oc=!0,this.Ff=c.which-1,this.Fk=1,this.b.trigger(rc.prototype.n.In,this),this.b.trigger(rc.prototype.n.Sk,this),this.b.oc=!1)};q.cv=function(c){this.Pq=0>(c.wheelDelta?c.wheelDelta:c.detail?
-c.detail:0)?0:1;this.Ql=!1;this.b.oc=!0;this.b.trigger(rc.prototype.n.Pr,this);this.b.oc=!1;this.Ql&&nb(c)&&c.preventDefault()};q.tg=function(){var c,k;c=0;for(k=this.Lf.length;c<k;++c)this.Lf[c]&&(this.Lf[c]=!1,this.Ff=c-1,this.b.trigger(rc.prototype.n.Mn,this))};c.prototype.In=function(c,k){return c===this.Ff&&k===this.Fk};c.prototype.Jr=function(){return!0};c.prototype.Mn=function(c){return c===this.Ff};c.prototype.Sk=function(c,k,a){return c!==this.Ff||k!==this.Fk?!1:this.b.Xv(a,this.Le,this.Me)};
c.prototype.Pr=function(c){this.Ql=!0;return c===this.Pq};k.n=new c;k.da=new function(){};n.prototype.Pn=function(c,k){var a,d,e,b,f;ga(k)?(a=this.b.fh(0),d=a.scale,e=a.ud,b=a.Rc,f=a.d,a.scale=1,a.ud=1,a.Rc=1,a.d=0,c.I(a.$a(this.Le,this.Me,!0)),a.scale=d,a.ud=e,a.Rc=b,a.d=f):(a=ia(k)?this.b.fh(k):this.b.Jl(k))?c.I(a.$a(this.Le,this.Me,!0)):c.I(0)};n.prototype.Qn=function(c,k){var a,d,e,b,f;ga(k)?(a=this.b.fh(0),d=a.scale,e=a.ud,b=a.Sc,f=a.d,a.scale=1,a.ud=1,a.Sc=1,a.d=0,c.I(a.$a(this.Le,this.Me,!1)),
a.scale=d,a.ud=e,a.Sc=b,a.d=f):(a=ia(k)?this.b.fh(k):this.b.Jl(k))?c.I(a.$a(this.Le,this.Me,!1)):c.I(0)};k.lb=new n})();function sc(c){this.b=c}
(function(){function c(c){this.wa=c;this.Fa=!1;this.d=this.speed=this.y=this.x=0;this.opacity=1;this.re=this.Wf=this.size=this.oj=0}var n=sc.prototype;n.Na=function(c){this.xa=c;this.b=c.b};var k=n.Na.prototype;k.ga=function(){this.C||(this.S=new Image,this.S.ho=this.ln,this.aa=null,this.b.Cn(this.S,this.Bk))};k.Sj=function(){this.C||(this.aa=null)};k.Uj=function(){this.C||!this.c.length||this.aa||(this.aa=this.b.u.ig(this.S,!0,this.b.Da,this.oi))};k.pm=function(){this.C||this.aa||!this.b.u||(this.aa=
this.b.u.ig(this.S,!0,this.b.Da,this.oi))};k.Hk=function(){this.C||this.c.length||!this.aa||(this.b.u.deleteTexture(this.aa),this.aa=null)};k.gk=function(c){c.drawImage(this.S,0,0)};c.prototype.init=function(){var c=this.wa;this.x=c.x-c.Ok/2+Math.random()*c.Ok;this.y=c.y-c.Pk/2+Math.random()*c.Pk;this.speed=c.Yl-c.vk/2+Math.random()*c.vk;this.d=c.d-c.wk/2+Math.random()*c.wk;this.opacity=c.Wl;this.size=c.Xl-c.uk/2+Math.random()*c.uk;this.oj=c.Pl-c.pj/2+Math.random()*c.pj;this.re=this.Wf=0};c.prototype.Xa=
function(c){var k=this.wa;this.x+=Math.cos(this.d)*this.speed*c;this.y+=Math.sin(this.d)*this.speed*c;this.y+=this.Wf*c;this.speed+=k.Uk*c;this.size+=this.oj*c;this.Wf+=k.Bl*c;this.re+=c;1>this.size?this.Fa=!1:(0!==k.Gh&&(this.d+=Math.random()*k.Gh*c-k.Gh*c/2),0!==k.Ih&&(this.speed+=Math.random()*k.Ih*c-k.Ih*c/2),0!==k.Hh&&(this.opacity+=Math.random()*k.Hh*c-k.Hh*c/2,0>this.opacity?this.opacity=0:1<this.opacity&&(this.opacity=1)),1>=k.Rf&&this.re>=k.timeout&&(this.Fa=!1),2===k.Rf&&0>=this.speed&&
(this.Fa=!1))};c.prototype.cd=function(c){var k=this.wa.opacity*this.opacity;if(0!==k){0===this.wa.Rf&&(k*=1-this.re/this.wa.timeout);c.globalAlpha=k;var k=this.x-this.size/2,l=this.y-this.size/2;this.wa.b.hd&&(k=k+.5|0,l=l+.5|0);c.drawImage(this.wa.type.S,k,l,this.size,this.size)}};c.prototype.Zb=function(c){var k=this.wa.opacity*this.opacity;0===this.wa.Rf&&(k*=1-this.re/this.wa.timeout);var l=this.size,a=l*this.wa.dq,d=this.x-l/2,e=this.y-l/2;this.wa.b.hd&&(d=d+.5|0,e=e+.5|0);1>a||0===k||(a<c.Ru||
a>c.xm?(c.Cf(k),c.zg(d,e,d+l,e,d+l,e+l,d,e+l)):c.kv(this.x,this.y,a,k))};c.prototype.left=function(){return this.x-this.size/2};c.prototype.right=function(){return this.x+this.size/2};c.prototype.top=function(){return this.y-this.size/2};c.prototype.bottom=function(){return this.y+this.size/2};n.Aa=function(c){this.type=c;this.b=c.b};var k=n.Aa.prototype,q=[];k.ga=function(){var c=this.H;this.kk=c[0];this.wk=Y(c[1]);this.Gg=c[2];this.hn=!0;this.Yl=c[3];this.Xl=c[4];this.Wl=c[5]/100;this.Pl=c[6];this.Ok=
c[7];this.Pk=c[8];this.vk=c[9];this.uk=c[10];this.pj=c[11];this.Uk=c[12];this.Bl=c[13];this.Gh=c[14];this.Ih=c[15];this.Hh=c[16];this.Rf=c[17];this.timeout=c[18];this.Bf=0;this.dq=1;this.Wj=this.x;this.Yj=this.y;this.Xj=this.x;this.Vj=this.y;this.ls(function(c){c.Ga.set(c.Wj,c.Yj,c.Xj,c.Vj);c.mc.Fg(c.Ga);c.Hi=!1;c.yn();c.Zq()});this.uc||(this.Wb=[]);this.b.Dk(this);this.type.pm();if(1===this.Gg)for(c=0;c<this.kk;c++)this.Wk().opacity=0;this.gj=!0};k.Ob=function(){var c={r:this.kk,sc:this.wk,st:this.Gg,
s:this.hn,isp:this.Yl,isz:this.Xl,io:this.Wl,gr:this.Pl,xr:this.Ok,yr:this.Pk,spr:this.vk,szr:this.uk,grnd:this.pj,acc:this.Uk,g:this.Bl,lar:this.Gh,lsr:this.Ih,lor:this.Hh,dm:this.Rf,to:this.timeout,pcc:this.Bf,ft:this.gj,p:[]},k,l,a,d=c.p;k=0;for(l=this.Wb.length;k<l;k++)a=this.Wb[k],d.push([a.x,a.y,a.speed,a.d,a.opacity,a.oj,a.size,a.Wf,a.re]);return c};k.ec=function(c){this.kk=c.r;this.wk=c.sc;this.Gg=c.st;this.hn=c.s;this.Yl=c.isp;this.Xl=c.isz;this.Wl=c.io;this.Pl=c.gr;this.Ok=c.xr;this.Pk=
c.yr;this.vk=c.spr;this.uk=c.szr;this.pj=c.grnd;this.Uk=c.acc;this.Bl=c.g;this.Gh=c.lar;this.Ih=c.lsr;this.Hh=c.lor;this.Rf=c.dm;this.timeout=c.to;this.Bf=c.pcc;this.gj=c.ft;q.push.apply(q,this.Wb);W(this.Wb);var k,l,a,d=c.p;c=0;for(k=d.length;c<k;c++)l=this.Wk(),a=d[c],l.x=a[0],l.y=a[1],l.speed=a[2],l.d=a[3],l.opacity=a[4],l.oj=a[5],l.size=a[6],l.Wf=a[7],l.re=a[8]};k.Af=function(){q.push.apply(q,this.Wb);W(this.Wb)};k.Wk=function(){var k;q.length?(k=q.pop(),k.wa=this):k=new c(this);this.Wb.push(k);
k.Fa=!0;return k};k.Xa=function(){var c=this.b.lj(this),k,l,a,d;if(0===this.Gg&&this.hn)for(this.Bf+=c*this.kk,l=R(this.Bf),this.Bf-=l,k=0;k<l;k++)a=this.Wk(),a.init();this.Wj=this.x;this.Yj=this.y;this.Xj=this.x;this.Vj=this.y;d=k=0;for(l=this.Wb.length;k<l;k++)a=this.Wb[k],this.Wb[d]=a,this.b.na=!0,1===this.Gg&&this.gj&&a.init(),a.Xa(c),a.Fa?(a.left()<this.Wj&&(this.Wj=a.left()),a.right()>this.Xj&&(this.Xj=a.right()),a.top()<this.Yj&&(this.Yj=a.top()),a.bottom()>this.Vj&&(this.Vj=a.bottom()),d++):
q.push(a);ya(this.Wb,d);this.ya();this.gj=!1;1===this.Gg&&0===this.Wb.length&&this.b.ne(this)};k.cd=function(c){var k,l,a,d=this.j;k=0;for(l=this.Wb.length;k<l;k++)a=this.Wb[k],a.right()>=d.ja&&a.bottom()>=d.ka&&a.left()<=d.ta&&a.top()<=d.ra&&a.cd(c)};k.Zb=function(c){this.dq=this.j.Ac();c.vc(this.type.aa);var k,l,a,d=this.j;k=0;for(l=this.Wb.length;k<l;k++)a=this.Wb[k],a.right()>=d.ja&&a.bottom()>=d.ka&&a.left()<=d.ta&&a.top()<=d.ra&&a.Zb(c)};n.n=new function(){};n.da=new function(){};n.lb=new function(){}})();
function nc(c){this.b=c}
(function(){function c(){if(0===this.ml.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.Hg?b.drawImage(this.S,this.rg,this.sg,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.S,0,0,this.width,this.height);this.ml=a.toDataURL("image/png")}return this.ml}function n(){}function k(){}function q(){}var r=nc.prototype;r.Na=function(a){this.xa=a;this.b=a.b};var p=r.Na.prototype;p.ga=function(){if(!this.C){var a,b,d,e,
f,h,k,l,p;this.Yc=[];this.mh=!1;a=0;for(b=this.lc.length;a<b;a++){f=this.lc[a];k={};k.name=f[0];k.speed=f[1];k.loop=f[2];k.Wm=f[3];k.Xm=f[4];k.fq=f[5];k.T=f[6];k.frames=[];d=0;for(e=f[7].length;d<e;d++)h=f[7][d],l={},l.Bk=h[0],l.ln=h[1],l.rg=h[2],l.sg=h[3],l.width=h[4],l.height=h[5],l.duration=h[6],l.$b=h[7],l.ac=h[8],l.Ul=h[9],l.ck=h[10],l.gq=h[11],l.Hg=0!==l.width,l.ml="",l.nx=c,p={left:0,top:0,right:1,bottom:1},l.en=p,l.aa=null,(p=this.b.Lt(h[0]))?l.S=p:(l.S=new Image,l.S.ws=h[0],l.S.ho=h[1],l.S.rs=
null,this.b.Cn(l.S,h[0])),k.frames.push(l),this.Yc.push(l);this.lc[a]=k}}};p.Yq=function(){var a,b,c;a=0;for(b=this.c.length;a<b;a++)c=this.c[a],c.Ti=c.wb.aa};p.Sj=function(){if(!this.C){var a,b,c;a=0;for(b=this.Yc.length;a<b;++a)c=this.Yc[a],c.S.rs=null,c.aa=null;this.mh=!1;this.Yq()}};p.Uj=function(){if(!this.C&&this.c.length){var a,b,c;a=0;for(b=this.Yc.length;a<b;++a)c=this.Yc[a],c.aa=this.b.u.ig(c.S,!1,this.b.Da,c.gq);this.Yq()}};p.pm=function(){if(!this.C&&!this.mh&&this.b.u){var a,b,c;a=0;
for(b=this.Yc.length;a<b;++a)c=this.Yc[a],c.aa=this.b.u.ig(c.S,!1,this.b.Da,c.gq);this.mh=!0}};p.Hk=function(){if(!this.C&&!this.c.length&&this.mh){var a,b,c;a=0;for(b=this.Yc.length;a<b;++a)c=this.Yc[a],this.b.u.deleteTexture(c.aa),c.aa=null;this.mh=!1}};var l=[];p.gk=function(a){var b,c,d;W(l);b=0;for(c=this.Yc.length;b<c;++b)d=this.Yc[b].S,-1===l.indexOf(d)&&(a.drawImage(d,0,0),l.push(d))};r.Aa=function(a){this.type=a;this.b=a.b;a=this.type.lc[0].frames[0].ck;this.uc?this.ea.hi(a):this.ea=new fb(a)};
var a=r.Aa.prototype;a.ga=function(){this.visible=0===this.H[0];this.Vl=this.hm=!1;this.Ye=0!==this.H[3];this.Ba=this.Fo(this.H[1])||this.type.lc[0];this.B=this.H[2];0>this.B&&(this.B=0);this.B>=this.Ba.frames.length&&(this.B=this.Ba.frames.length-1);var a=this.Ba.frames[this.B];this.ea.hi(a.ck);this.$b=a.$b;this.ac=a.ac;this.Pf=this.Ba.speed;this.Ae=this.Ba.Xm;1===this.type.lc.length&&1===this.type.lc[0].frames.length||0===this.Pf||(this.b.Dk(this),this.hm=!0);this.uc?this.vd.reset():this.vd=new db;
this.Ud=this.vd.X;this.Ue=!0;this.Ld=0;this.Te=!0;this.gl=this.Un="";this.ts=0;this.Li=-1;this.type.pm();var b,c,d,e,f,h,k,a=0;for(b=this.type.lc.length;a<b;a++)for(e=this.type.lc[a],c=0,d=e.frames.length;c<d;c++)f=e.frames[c],0===f.width&&(f.width=f.S.width,f.height=f.S.height),f.Hg&&(k=f.S,h=f.en,h.left=f.rg/k.width,h.top=f.sg/k.height,h.right=(f.rg+f.width)/k.width,h.bottom=(f.sg+f.height)/k.height,0===f.rg&&0===f.sg&&f.width===k.width&&f.height===k.height&&(f.Hg=!1));this.wb=this.Ba.frames[this.B];
this.Ti=this.wb.aa};a.Ob=function(){var a={a:this.Ba.T,f:this.B,cas:this.Pf,fs:this.Ud,ar:this.Ld,at:this.vd.X,rt:this.Ae};this.Ue||(a.ap=this.Ue);this.Te||(a.af=this.Te);return a};a.ec=function(a){var b=this.Pt(a.a);b&&(this.Ba=b);this.B=a.f;0>this.B&&(this.B=0);this.B>=this.Ba.frames.length&&(this.B=this.Ba.frames.length-1);this.Pf=a.cas;this.Ud=a.fs;this.Ld=a.ar;this.vd.reset();this.vd.X=a.at;this.Ue=a.hasOwnProperty("ap")?a.ap:!0;this.Te=a.hasOwnProperty("af")?a.af:!0;a.hasOwnProperty("rt")?this.Ae=
a.rt:this.Ae=this.Ba.Xm;this.wb=this.Ba.frames[this.B];this.Ti=this.wb.aa;this.ea.hi(this.wb.ck);this.$b=this.wb.$b;this.ac=this.wb.ac};a.Yk=function(a){this.B=a?0:this.Ba.frames.length-1;this.Ue=!1;this.Un=this.Ba.name;this.Vl=!0;this.b.trigger(nc.prototype.n.Ir,this);this.b.trigger(nc.prototype.n.Hr,this);this.Vl=!1;this.Ld=0};a.$k=function(){return this.vd.X};a.Xa=function(){this.vd.add(this.b.lj(this));this.gl.length&&this.Bs();0<=this.Li&&this.no();var a=this.vd.X,b=this.Ba,c=b.frames[this.B],
d=c.duration/this.Pf;this.Ue&&a>=this.Ud+d&&(this.Te?this.B++:this.B--,this.Ud+=d,this.B>=b.frames.length&&(b.fq?(this.Te=!1,this.B=b.frames.length-2):b.loop?this.B=this.Ae:(this.Ld++,this.Ld>=b.Wm?this.Yk(!1):this.B=this.Ae)),0>this.B&&(b.fq?(this.B=1,this.Te=!0,b.loop||(this.Ld++,this.Ld>=b.Wm&&this.Yk(!0))):b.loop?this.B=this.Ae:(this.Ld++,this.Ld>=b.Wm?this.Yk(!0):this.B=this.Ae)),0>this.B?this.B=0:this.B>=b.frames.length&&(this.B=b.frames.length-1),a>this.Ud+b.frames[this.B].duration/this.Pf&&
(this.Ud=a),a=b.frames[this.B],this.Jf(c,a),this.b.na=!0)};a.Fo=function(a){var b,c,d;b=0;for(c=this.type.lc.length;b<c;b++)if(d=this.type.lc[b],mb(d.name,a))return d;return null};a.Pt=function(a){var b,c,d;b=0;for(c=this.type.lc.length;b<c;b++)if(d=this.type.lc[b],d.T===a)return d;return null};a.Bs=function(){var a=this.Ba.frames[this.B],b=this.Fo(this.gl);this.gl="";!b||mb(b.name,this.Ba.name)&&this.Ue||(this.Ba=b,this.Pf=b.speed,this.Ae=b.Xm,0>this.B&&(this.B=0),this.B>=this.Ba.frames.length&&
(this.B=this.Ba.frames.length-1),1===this.ts&&(this.B=0),this.Ue=!0,this.Ud=this.vd.X,this.Te=!0,this.Jf(a,this.Ba.frames[this.B]),this.b.na=!0)};a.no=function(){var a=this.Ba.frames[this.B],b=this.B;this.B=R(this.Li);0>this.B&&(this.B=0);this.B>=this.Ba.frames.length&&(this.B=this.Ba.frames.length-1);b!==this.B&&(this.Jf(a,this.Ba.frames[this.B]),this.Ud=this.vd.X,this.b.na=!0);this.Li=-1};a.Jf=function(a,b){var c=a.width,d=a.height,e=b.width,f=b.height;c!=e&&(this.width*=e/c);d!=f&&(this.height*=
f/d);this.$b=b.$b;this.ac=b.ac;this.ea.hi(b.ck);this.ya();this.wb=b;this.Ti=b.aa;c=0;for(d=this.D.length;c<d;c++)e=this.D[c],e.Tp&&e.Tp(a,b);this.b.trigger(nc.prototype.n.Jf,this)};a.cd=function(a){a.globalAlpha=this.opacity;var b=this.wb,c=b.Hg,d=b.S,e=this.x,f=this.y,h=this.width,k=this.height;if(0===this.d&&0<=h&&0<=k)e-=this.$b*h,f-=this.ac*k,this.b.hd&&(e=Math.round(e),f=Math.round(f)),c?a.drawImage(d,b.rg,b.sg,b.width,b.height,e,f,h,k):a.drawImage(d,e,f,h,k);else{this.b.hd&&(e=Math.round(e),
f=Math.round(f));a.save();var l=0<h?1:-1,p=0<k?1:-1;a.translate(e,f);1===l&&1===p||a.scale(l,p);a.rotate(this.d*l*p);e=0-this.$b*la(h);f=0-this.ac*la(k);c?a.drawImage(d,b.rg,b.sg,b.width,b.height,e,f,la(h),la(k)):a.drawImage(d,e,f,la(h),la(k));a.restore()}};a.Sf=function(a){this.Zb(a)};a.Zb=function(a){a.vc(this.Ti);a.Cf(this.opacity);var b=this.wb,c=this.mc;if(this.b.hd){var d=Math.round(this.x)-this.x,e=Math.round(this.y)-this.y;b.Hg?a.Pe(c.Ya+d,c.Za+e,c.Gb+d,c.Hb+e,c.tb+d,c.ub+e,c.rb+d,c.sb+e,
b.en):a.zg(c.Ya+d,c.Za+e,c.Gb+d,c.Hb+e,c.tb+d,c.ub+e,c.rb+d,c.sb+e)}else b.Hg?a.Pe(c.Ya,c.Za,c.Gb,c.Hb,c.tb,c.ub,c.rb,c.sb,b.en):a.zg(c.Ya,c.Za,c.Gb,c.Hb,c.tb,c.ub,c.rb,c.sb)};a.Wt=function(a){var b=this.wb,c,d;c=0;for(d=b.Ul.length;c<d;c++)if(mb(a,b.Ul[c][0]))return c;return-1};a.Hl=function(a,b){var c=this.wb,d=c.Ul,e;A(a)?e=this.Wt(a):e=a-1;e=R(e);if(0>e||e>=d.length)return b?this.x:this.y;var f=(d[e][1]-c.$b)*this.width,d=d[e][2],d=(d-c.ac)*this.height,c=Math.cos(this.d);e=Math.sin(this.d);var h=
f*c-d*e,d=d*c+f*e,f=h+this.x,d=d+this.y;return b?f:d};var d=null,e=new ca,b=!1,f=[],h=new ua(0,0,0,0);p.finish=function(a){if(b){if(a){var c=this.b.Ra().Pa.Dc;a=d.ca();var f=e.sd(),h,k;if(a.ma){a.ma=!1;W(a.c);h=0;for(k=f.length;h<k;++h)a.c[h]=f[h];if(c)for(W(a.N),h=0,k=d.c.length;h<k;++h)f=d.c[h],e.contains(f)||a.N.push(f)}else if(c)for(c=a.c.length,h=0,k=f.length;h<k;++h)a.c[c+h]=f[h],Ea(a.N,f[h]);else za(a.c,f);d.Md()}e.clear();b=!1}};n.prototype.Dr=function(a){if(a){var c=!1,k,l,m,p=this.b.El(),
n=p.type,p=p.uj;k=a.ca();l=this.b.Ra().Pa.Dc;var q;k.ma?(this.za(),h.Of(this.Ga),h.offset(0,0),this.b.St(this.j,a,h,f),q=f):q=l?this.b.Bu()&&!k.N.length&&k.c.length?k.c:k.N:k.c;d=a;b=n!==a&&!p;k=0;for(l=q.length;k<l;k++)if(m=q[k],this.b.Yv(this,m)){c=!0;if(p)break;n!==a&&e.add(m)}W(f);a=c}else a=!1;return a};n.prototype.Hr=function(a){return mb(this.Un,a)};n.prototype.Ir=function(){return!0};n.prototype.Jf=function(){return!0};r.n=new n;k.prototype.Tr=function(a){this.Li=a;this.hm||(this.b.Dk(this),
this.hm=!0);this.Vl||this.no()};r.da=new k;q.prototype.hr=function(a){a.qa(this.B)};r.lb=new q})();function tc(c){this.b=c}
(function(){function c(a,b){return a.length?a.pop():new b}function n(a,b,c){if(c){var d;c=0;for(d=b.length;c<d;c++)a.length<p&&a.push(b[c]);W(b)}else for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&(a.length<p&&a.push(b[d]),delete b[d])}function k(a,b,d){var e=a.vf;d=d.replace(/\s\s*$/,"");b>=e.length&&e.push(c(l,Object));b=e[b];b.text=d;b.width=a.zm(d);a.Kg=ma(a.Kg,b.width)}var q=tc.prototype;q.ga=function(){};q.Na=function(a){this.xa=a;this.b=a.b};var r=q.Na.prototype;r.ga=function(){this.C||
(this.S=new Image,this.b.Cn(this.S,this.Bk),this.aa=null)};r.Sj=function(){this.C||(this.aa=null)};r.Uj=function(){if(!this.C&&this.c.length){this.aa||(this.aa=this.b.u.ig(this.S,!1,this.b.Da,this.oi));var a,b;a=0;for(b=this.c.length;a<b;a++)this.c[a].aa=this.aa}};r.Hk=function(){this.C||this.c.length||!this.aa||(this.b.u.deleteTexture(this.aa),this.aa=null)};r.gk=function(a){a.drawImage(this.S,0,0)};q.Aa=function(a){this.type=a;this.b=a.b};r=q.Aa.prototype;r.Af=function(){n(l,this.vf,!0);n(a,this.Ni,
!1);n(d,this.Oi,!1);Za(this.we)};r.ga=function(){this.S=this.type.S;this.Mi=this.H[0];this.ue=this.H[1];this.characterSet=this.H[2];this.text=this.H[3];this.ve=this.H[4];this.visible=0===this.H[5];this.qj=this.H[6]/2;this.Lk=this.H[7]/2;this.iw=0===this.H[9];this.Nf=this.H[10];this.lineHeight=this.H[11];this.Ef=this.Kg=0;this.uc?(W(this.vf),Za(this.Ni),Za(this.Oi),Za(this.we)):(this.vf=[],this.Ni={},this.Oi={},this.we={});this.Ak=!0;this.mm=this.width;this.b.u&&(this.type.aa||(this.type.aa=this.b.u.ig(this.type.S,
!1,this.b.Da,this.type.oi)),this.aa=this.type.aa);this.Yr()};r.Ob=function(){var a={t:this.text,csc:this.ve,csp:this.Nf,lh:this.lineHeight,tw:this.Kg,th:this.Ef,lrt:this.Mu,ha:this.qj,va:this.Lk,cw:{}},b;for(b in this.we)a.cw[b]=this.we[b];return a};r.ec=function(a){this.text=a.t;this.ve=a.csc;this.Nf=a.csp;this.lineHeight=a.lh;this.Kg=a.tw;this.Ef=a.th;this.Mu=a.lrt;a.hasOwnProperty("ha")&&(this.qj=a.ha);a.hasOwnProperty("va")&&(this.Lk=a.va);for(var b in a.cw)this.we[b]=a.cw[b];this.Ak=!0;this.mm=
this.width};var p=1E3,l=[],a=[],d=[];r.Yr=function(){for(var b=this.S,e=b.width,g=b.height,b=this.Mi,k=this.ue,l=b/e,p=k/g,m=this.characterSet,e=Math.floor(e/b),g=Math.floor(g/k),n=0;n<m.length&&!(n>=e*g);n++){var q=n%e,r=Math.floor(n/e),F=m.charAt(n);if(this.b.u){var N=this.Oi,T=q*l,D=r*p,q=(q+1)*l,r=(r+1)*p;void 0===N[F]&&(N[F]=c(d,ua));N[F].left=T;N[F].top=D;N[F].right=q;N[F].bottom=r}else N=this.Ni,q=q*b,r=r*k,T=b,D=k,void 0===N[F]&&(N[F]=c(a,Object)),N[F].x=q,N[F].y=r,N[F].cr=T,N[F].Lo=D}};var e=
[];q.$r=function(a){W(e);for(var b="",c,d=0;d<a.length;)if(c=a.charAt(d),"\n"===c)b.length&&(e.push(b),b=""),e.push("\n"),++d;else if(" "===c||"\t"===c||"-"===c){do b+=a.charAt(d),d++;while(d<a.length&&(" "===a.charAt(d)||"\t"===a.charAt(d)));e.push(b);b=""}else d<a.length&&(b+=c,d++);b.length&&e.push(b)};q.es=function(a){var b=a.text,d=a.vf;if(b&&b.length){var e=a.width;if(2>=e)n(l,d,!0);else{var k=a.ve,p=a.Nf;if(b.length*(a.Mi*k+p)-p<=e&&-1===b.indexOf("\n")&&(p=a.zm(b),p<=e)){n(l,d,!0);d.push(c(l,
Object));d[0].text=b;d[0].width=p;a.Kg=p;a.Ef=a.ue*k+a.lineHeight;return}this.gs(a);a.Ef=d.length*(a.ue*k+a.lineHeight)}}else n(l,d,!0)};q.gs=function(a){var b=a.iw,c=a.text,d=a.vf,n=a.width;b&&(this.$r(c),c=e);var q="",m,r,E,C=0,F=!1;for(E=0;E<c.length;E++)"\n"===c[E]?(!0===F?F=!1:(k(a,C,q),C++),q=""):(F=!1,m=q,q+=c[E],r=a.zm(q.replace(/\s\s*$/,"")),r>n&&(""===m?(k(a,C,q),q="",F=!0):(k(a,C,m),q=c[E]),C++,b||" "!==q||(q="")));q.replace(/\s\s*$/,"").length&&(k(a,C,q),C++);for(E=C;E<d.length;E++)l.length<
p&&l.push(d[E]);d.length=C};r.zm=function(a){for(var b=this.Nf,c=a.length,d=0,e=0;e<c;e++)d+=this.Dl(a.charAt(e))*this.ve+b;return d-(0<d?b:0)};r.Dl=function(a){var b=this.we;return void 0!==b[a]?b[a]:this.Mi};r.lq=function(){if(this.Ak||this.width!==this.mm)this.Ef=this.Kg=0,this.type.xa.es(this),this.Ak=!1,this.mm=this.width};r.cd=function(a){var b=this.S;if(""!==this.text&&null!=b&&(this.lq(),!(this.height<this.ue*this.ve+this.lineHeight))){a.globalAlpha=this.opacity;var b=this.x,c=this.y;this.b.hd&&
(b=Math.round(b),c=Math.round(c));var d=this.j.ja,e=this.j.ka,k=this.j.ta,l=this.j.ra;a.save();a.translate(b,c);a.rotate(this.d);for(var p=this.d,n=this.qj,q=this.ve,r=this.ue*q,N=this.lineHeight,T=this.Nf,D=this.vf,w,P=-(this.$b*this.width),M=-(this.ac*this.height),M=M+this.Lk*ma(0,this.height-this.Ef),Q,J,y,G=0;G<D.length;G++){var B=D[G].text;w=n*ma(0,this.width-D[G].width);Q=P+w;M+=N;if(0===p&&c+M+r<e)M+=r;else{for(var x=0;x<B.length;x++){J=B.charAt(x);w=this.Dl(J);var z=this.Ni[J];if(0===p&&b+
Q+w*q+T<d)Q+=w*q+T;else{if(Q+w*q>this.width+1E-5)break;void 0!==z&&(J=Q,y=M,0===p&&1===q&&(J=Math.round(J),y=Math.round(y)),a.drawImage(this.S,z.x,z.y,z.cr,z.Lo,J,y,z.cr*q,z.Lo*q));Q+=w*q+T;if(0===p&&b+Q>k)break}}M+=r;if(0===p&&(M+r+N>this.height||c+M>l))break}}a.restore()}};var b=new va;r.Zb=function(a){a.vc(this.aa);a.Cf(this.opacity);if(this.text&&(this.lq(),!(this.height<this.ue*this.ve+this.lineHeight))){this.za();var c=this.mc,d=0,e=0;this.b.hd&&(d=Math.round(this.x)-this.x,e=Math.round(this.y)-
this.y);var k=this.j.ja,l=this.j.ka,p=this.j.ta,n=this.j.ra,q=this.d,r=this.qj,F=this.Lk,N=this.ve,T=this.ue*N,D=this.lineHeight,w=this.Nf,P=this.vf,M=this.Ef,Q,J,y;0!==q&&(J=Math.cos(q),y=Math.sin(q));for(var d=c.Ya+d,c=c.Za+e,G,F=F*ma(0,this.height-M),B,x,M=0;M<P.length;M++)if(e=P[M].text,G=Q=r*ma(0,this.width-P[M].width),F+=D,0===q&&c+F+T<l)F+=T;else{for(var z=0;z<e.length;z++){var I=e.charAt(z);Q=this.Dl(I);I=this.Oi[I];if(0===q&&d+G+Q*N+w<k)G+=Q*N+w;else{if(G+Q*N>this.width+1E-5)break;if(void 0!==
I){var H=this.Mi*N,K=this.ue*N;B=G;x=F;0===q&&1===N&&(B=Math.round(B),x=Math.round(x));b.Ya=B;b.Za=x;b.Gb=B+H;b.Hb=x;b.rb=B;b.sb=x+K;b.tb=B+H;b.ub=x+K;0!==q&&(B=b,x=J,H=y,K=void 0,K=B.Ya*x-B.Za*H,B.Za=B.Za*x+B.Ya*H,B.Ya=K,K=B.Gb*x-B.Hb*H,B.Hb=B.Hb*x+B.Gb*H,B.Gb=K,K=B.rb*x-B.sb*H,B.sb=B.sb*x+B.rb*H,B.rb=K,K=B.tb*x-B.ub*H,B.ub=B.ub*x+B.tb*H,B.tb=K);b.offset(d,c);a.Pe(b.Ya,b.Za,b.Gb,b.Hb,b.tb,b.ub,b.rb,b.sb,I)}G+=Q*N+w;if(0===q&&d+G>p)break}}F+=T;if(0===q&&(F+T+D>this.height||c+F>n))break}}};q.n=new function(){};
r.$k=function(a,b){var c=parseInt(b,10);this.we[a]!==c&&(this.we[a]=c,this.Ak=!0,this.b.na=!0)};q.da=new function(){};q.lb=new function(){}})();
function uc(c){this.b=c;var n=this;this.b.fb||(jQuery(document).mousemove(function(c){n.Im(c)}),jQuery(document).mousedown(function(c){n.Hm(c)}),jQuery(document).mouseup(function(c){n.Jm(c)}));c=0<this.b.Tb?document:this.b.canvas;this.b.Ub?c=window.Canvas:this.b.Oc&&(c=window);"undefined"!==typeof PointerEvent?(c.addEventListener("pointerdown",function(c){n.Sp(c)},!1),c.addEventListener("pointermove",function(c){n.Rp(c)},!1),c.addEventListener("pointerup",function(c){n.Tj(c)},!1),c.addEventListener("pointercancel",
function(c){n.Tj(c)},!1)):window.navigator.msPointerEnabled?(c.addEventListener("MSPointerDown",function(c){n.Sp(c)},!1),c.addEventListener("MSPointerMove",function(c){n.Rp(c)},!1),c.addEventListener("MSPointerUp",function(c){n.Tj(c)},!1),c.addEventListener("MSPointerCancel",function(c){n.Tj(c)},!1)):(c.addEventListener("touchstart",function(c){n.av(c)},!1),c.addEventListener("touchmove",function(c){n.$u(c)},!1),c.addEventListener("touchend",function(c){n.Up(c)},!1),c.addEventListener("touchcancel",
function(c){n.Up(c)},!1))}
(function(){function c(c){var l,a;l=0;for(a=c.D.length;l<a;l++)if(c.D[l]instanceof k.Aa)return c.D[l];return null}function n(){}var k=uc.prototype,q={left:0,top:0};k.Hm=function(c){1===c.which&&this.Dm("leftmouse",c.pageX,c.pageY)};k.Im=function(c){1===c.which&&this.Em("leftmouse",c.pageX,c.pageY)};k.Jm=function(c){1===c.which&&this.Fm("leftmouse")};k.av=function(c){c.preventDefault&&nb(c)&&c.preventDefault();var k,a,d,e;k=0;for(a=c.changedTouches.length;k<a;k++)d=c.changedTouches[k],e=d.identifier,
this.Dm(e?e.toString():"<none>",d.pageX,d.pageY)};k.$u=function(c){c.preventDefault&&c.preventDefault();var k,a,d,e;k=0;for(a=c.changedTouches.length;k<a;k++)d=c.changedTouches[k],e=d.identifier,this.Em(e?e.toString():"<none>",d.pageX,d.pageY)};k.Up=function(c){c.preventDefault&&nb(c)&&c.preventDefault();var k,a,d;k=0;for(a=c.changedTouches.length;k<a;k++)d=c.changedTouches[k],d=d.identifier,this.Fm(d?d.toString():"<none>")};k.Sp=function(c){c.pointerType!==c.MSPOINTER_TYPE_MOUSE&&"mouse"!==c.pointerType&&
(c.preventDefault&&nb(c)&&c.preventDefault(),this.Dm(c.pointerId.toString(),c.pageX,c.pageY))};k.Rp=function(c){c.pointerType!==c.MSPOINTER_TYPE_MOUSE&&"mouse"!==c.pointerType&&(c.preventDefault&&c.preventDefault(),this.Em(c.pointerId.toString(),c.pageX,c.pageY))};k.Tj=function(c){c.pointerType!==c.MSPOINTER_TYPE_MOUSE&&"mouse"!==c.pointerType&&(c.preventDefault&&nb(c)&&c.preventDefault(),this.Fm(c.pointerId.toString()))};k.Dm=function(k,l,a){var d=this.b.fb?q:jQuery(this.b.canvas).offset();l=l-d.left;
a=a-d.top;var e,b,f,h,d=this.qg.sd(),g,n,r,S=null;g=0;for(n=d.length;g<n;g++)if(r=d[g],e=c(r),e.enabled&&!e.bf&&(e=r.j.$a(l,a,!0),b=r.j.$a(l,a,!1),r.za(),r.Lb(e,b)))S?r.j.index>S.j.index?(S=r,f=e,h=b):r.j.index===S.j.index&&r.Mc()>S.Mc()&&(S=r,f=e,h=b):(S=r,f=e,h=b);S&&c(S).Xu(k,f,h)};k.Em=function(k,l,a){var d=this.b.fb?q:jQuery(this.b.canvas).offset();l=l-d.left;a=a-d.top;var e,b=this.qg.sd(),f,h,g;f=0;for(h=b.length;f<h;f++)e=b[f],g=c(e),!g.enabled||!g.bf||g.bf&&g.pl!==k||(d=e.j.$a(l,a,!0),e=e.j.$a(l,
a,!1),g.Yu(d,e))};k.Fm=function(k){var l=this.qg.sd(),a,d,e;a=0;for(d=l.length;a<d;a++)e=l[a],e=c(e),e.bf&&e.pl===k&&e.bv()};k.Na=function(c){this.behavior=c;this.b=c.b};k.Na.prototype.ga=function(){};k.Aa=function(c,k){this.type=c;this.behavior=c.behavior;this.k=k;this.b=c.b};var r=k.Aa.prototype;r.ga=function(){this.bf=!1;this.qo=this.po=0;this.pl="<none>";this.Zk=this.H[0];this.enabled=0!==this.H[1]};r.Ob=function(){return{enabled:this.enabled}};r.ec=function(c){this.enabled=c.enabled;this.bf=
!1};r.Xu=function(c,k,a){this.po=k-this.k.x;this.qo=a-this.k.y;this.bf=!0;this.pl=c;this.b.oc=!0;this.b.trigger(uc.prototype.n.Mr,this.k);this.b.oc=!1};r.Yu=function(c,k){var a=c-this.po,d=k-this.qo;if(0===this.Zk){if(this.k.x!==a||this.k.y!==d)this.k.x=a,this.k.y=d,this.k.ya()}else 1===this.Zk?this.k.x!==a&&(this.k.x=a,this.k.ya()):2===this.Zk&&this.k.y!==d&&(this.k.y=d,this.k.ya())};r.bv=function(){this.bf=!1;this.b.oc=!0;this.b.trigger(uc.prototype.n.Jn,this.k);this.b.oc=!1};r.Xa=function(){};
n.prototype.Mr=function(){return!0};n.prototype.Jn=function(){return!0};k.n=new n;k.da=new function(){};k.lb=new function(){}})();function vc(c){this.b=c}
(function(){var c=vc.prototype;c.Na=function(c){this.behavior=c;this.b=c.b};c.Na.prototype.ga=function(){};c.Aa=function(c,n){this.type=c;this.behavior=c.behavior;this.k=n;this.b=c.b};var n=c.Aa.prototype;n.ga=function(){this.qb=null;this.ak=-1;this.mode=this.Dh=this.mn=this.Th=this.Oe=this.$j=0;var c=this;this.uc||(this.Gp=function(n){c.Gm(n)});this.b.Sn(this.Gp)};n.Ob=function(){return{uid:this.qb?this.qb.uid:-1,pa:this.$j,pd:this.Oe,msa:this.Th,tsa:this.mn,lka:this.Dh,m:this.mode}};n.ec=function(c){this.ak=
c.uid;this.$j=c.pa;this.Oe=c.pd;this.Th=c.msa;this.mn=c.tsa;this.Dh=c.lka;this.mode=c.m};n.Kd=function(){-1===this.ak?this.qb=null:this.qb=this.b.gh(this.ak);this.ak=-1};n.Gm=function(c){this.qb==c&&(this.qb=null)};n.Af=function(){this.qb=null;this.b.Bv(this.Gp)};n.Xa=function(){};n.nn=function(){if(this.qb){this.Dh!==this.k.d&&(this.Th=Ja(this.Th+(this.k.d-this.Dh)));var c=this.k.x,n=this.k.y;if(3===this.mode||4===this.mode){var r=Wa(this.k.x,this.k.y,this.qb.x,this.qb.y);if(r>this.Oe||4===this.mode&&
r<this.Oe)n=Ma(this.qb.x,this.qb.y,this.k.x,this.k.y),c=this.qb.x+Math.cos(n)*this.Oe,n=this.qb.y+Math.sin(n)*this.Oe}else c=this.qb.x+Math.cos(this.qb.d+this.$j)*this.Oe,n=this.qb.y+Math.sin(this.qb.d+this.$j)*this.Oe;this.Dh=r=Ja(this.Th+(this.qb.d-this.mn));0!==this.mode&&1!==this.mode&&3!==this.mode&&4!==this.mode||this.k.x===c&&this.k.y===n||(this.k.x=c,this.k.y=n,this.k.ya());0!==this.mode&&2!==this.mode||this.k.d===r||(this.k.d=r,this.k.ya())}};c.n=new function(){};c.da=new function(){};c.lb=
new function(){}})();function wc(c){this.b=c}
(function(){var c=wc.prototype;c.Na=function(c){this.behavior=c;this.b=c.b};c.Na.prototype.ga=function(){};c.Aa=function(c,k){this.type=c;this.behavior=c.behavior;this.k=k;this.b=c.b;this.cb=0};var n=c.Aa.prototype,k=2*Math.PI,q=Math.PI/2,r=3*Math.PI/2;n.ga=function(){this.Fa=1===this.H[0];this.ng=this.H[1];this.En=this.H[2];this.ae=this.H[3];this.ae+=Math.random()*this.H[4];0===this.ae?this.cb=0:(this.cb=this.H[5]/this.ae*k,this.cb+=Math.random()*this.H[6]/this.ae*k);this.fc=this.H[7];this.fc+=Math.random()*
this.H[8];this.ai=this.pf=this.U=0;5===this.ng&&(this.fc=Y(this.fc));this.init()};n.Ob=function(){return{i:this.cb,a:this.Fa,mv:this.ng,w:this.En,p:this.ae,mag:this.fc,iv:this.U,iv2:this.pf,r:this.ai,lkv:this.qc,lkv2:this.Eh}};n.ec=function(c){this.cb=c.i;this.Fa=c.a;this.ng=c.mv;this.En=c.w;this.ae=c.p;this.fc=c.mag;this.U=c.iv;this.pf=c.iv2||0;this.ai=c.r;this.qc=c.lkv;this.Eh=c.lkv2||0};n.init=function(){switch(this.ng){case 0:this.U=this.k.x;break;case 1:this.U=this.k.y;break;case 2:this.U=this.k.width;
this.ai=this.k.height/this.k.width;break;case 3:this.U=this.k.width;break;case 4:this.U=this.k.height;break;case 5:this.U=this.k.d;break;case 6:this.U=this.k.opacity;break;case 7:this.U=0;break;case 8:this.U=this.k.x,this.pf=this.k.y}this.qc=this.U;this.Eh=this.pf};n.le=function(c){c=c%k;switch(this.En){case 0:return Math.sin(c);case 1:return c<=q?c/q:c<=r?1-2*(c-q)/Math.PI:(c-r)/q-1;case 2:return 2*c/k-1;case 3:return-2*c/k+1;case 4:return c<Math.PI?-1:1}return 0};n.Xa=function(){var c=this.b.lj(this.k);
this.Fa&&0!==c&&(0===this.ae?this.cb=0:(this.cb+=c/this.ae*k,this.cb=this.cb%k),this.bw())};n.bw=function(){switch(this.ng){case 0:this.k.x!==this.qc&&(this.U+=this.k.x-this.qc);this.k.x=this.U+this.le(this.cb)*this.fc;this.qc=this.k.x;break;case 1:this.k.y!==this.qc&&(this.U+=this.k.y-this.qc);this.k.y=this.U+this.le(this.cb)*this.fc;this.qc=this.k.y;break;case 2:this.k.width=this.U+this.le(this.cb)*this.fc;this.k.height=this.k.width*this.ai;break;case 3:this.k.width=this.U+this.le(this.cb)*this.fc;
break;case 4:this.k.height=this.U+this.le(this.cb)*this.fc;break;case 5:this.k.d!==this.qc&&(this.U=Ja(this.U+(this.k.d-this.qc)));this.k.d=Ja(this.U+this.le(this.cb)*this.fc);this.qc=this.k.d;break;case 6:this.k.opacity=this.U+this.le(this.cb)*this.fc/100;0>this.k.opacity?this.k.opacity=0:1<this.k.opacity&&(this.k.opacity=1);break;case 8:this.k.x!==this.qc&&(this.U+=this.k.x-this.qc),this.k.y!==this.Eh&&(this.pf+=this.k.y-this.Eh),this.k.x=this.U+Math.cos(this.k.d)*this.le(this.cb)*this.fc,this.k.y=
this.pf+Math.sin(this.k.d)*this.le(this.cb)*this.fc,this.qc=this.k.x,this.Eh=this.k.y}this.k.ya()};n.Tp=function(c,k){switch(this.ng){case 2:this.U*=k.width/c.width;this.ai=k.height/k.width;break;case 3:this.U*=k.width/c.width;break;case 4:this.U*=k.height/c.height}};c.n=new function(){};c.da=new function(){};c.lb=new function(){}})();
function mc(){return[oc,sc,rc,nc,tc,pc,qc,uc,wc,vc,Z.prototype.n.Ar,Z.prototype.n.Kn,nc.prototype.da.Rk,pc.prototype.da.jr,tc.prototype.da.Rk,sc.prototype.da.Rk,oc.prototype.da.CallFunction,nc.prototype.da.Tr,oc.prototype.n.wi,Z.prototype.n.rr,Z.prototype.da.qr,Z.prototype.da.er,Z.prototype.n.or,Z.prototype.n.as,nc.prototype.da.Vr,Z.prototype.da.cs,Z.prototype.da.Rr,Z.prototype.da.Sr,Z.prototype.n.mr,qc.prototype.da.Play,rc.prototype.n.Sk,nc.prototype.n.Er,Z.prototype.da.bs,Z.prototype.da.Xr,uc.prototype.n.Jn,
nc.prototype.n.Dr,Z.prototype.n.nr,nc.prototype.lb.hr,nc.prototype.lb.Pn,nc.prototype.lb.Qn,Z.prototype.da.Zr,Z.prototype.n.Hn,tc.prototype.n.ur,tc.prototype.da.On,Z.prototype.n.Qr,nc.prototype.n.Cr,nc.prototype.n.Br,nc.prototype.da.On]};
