// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var ba,ca,da,ea,fa,ha,ia,ja,ka,ma,na,oa,pa,qa,ra,C,sa,ta,ua,va,xa,za,Aa,R,Ba,Ca,Da,Ea,Fa,U,Ga,Ha,Ia,Ja,Ka,La,Na,Oa,Pa,Ra,Sa,Ta,Ua,Va,Wa,Xa,Ya,Za,$a,ab,bb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,rb,sb,tb,ub,vb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,Xb,Yb,Zb,$b,ac,bc,cc,dc,ec,fc={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(d){return d.__proto__}:function(d){return d.constructor.prototype});
(function(){function d(a,b,c,h){this.set(a,b,c,h)}function l(){this.qb=this.pb=this.sb=this.rb=this.Ib=this.Hb=this.Xa=this.Wa=0}function q(a,b,c,h){a<b?c<h?(w=a<c?a:c,u=b>h?b:h):(w=a<h?a:h,u=b>c?b:c):c<h?(w=b<c?b:c,u=a>h?a:h):(w=b<h?b:h,u=a>c?a:c)}function m(){this.items=this.pe=null;this.Vi=0;V&&(this.pe=new Set);this.Zh=[];this.pf=!0}function n(a){x[W++]=a}function v(){this.Y=this.Fm=this.y=this.ni=0}function t(a){this.La=[];this.zk=this.Bk=this.Ck=this.Ak=0;this.Mj(a)}function b(a,b){this.tb=
a;this.Jb=b;this.cells={}}function c(a,b){this.tb=a;this.Jb=b;this.cells={}}function e(a,b,c){var h;return T.length?(h=T.pop(),h.Zn=a,h.x=b,h.y=c,h):new ca(a,b,c)}function a(a,b,c){this.Zn=a;this.x=b;this.y=c;this.Nb=new da}function g(a,b,c){var h;return B.length?(h=B.pop(),h.Zn=a,h.x=b,h.y=c,h):new ea(a,b,c)}function f(a,b,c){this.Zn=a;this.x=b;this.y=c;this.Nb=[];this.qh=!0;this.me=new da;this.ki=!1}function r(a,b){return a.Xd-b.Xd}fa=function(a){window.console&&window.console.log&&window.console.log(a)};
ha=function(a){window.console&&window.console.error&&window.console.error(a)};ba=function(a){return a};ia=function(a){return"undefined"===typeof a};ja=function(a){return"number"===typeof a};ka=function(a){return"string"===typeof a};ma=function(a){return 0<a&&0===(a-1&a)};na=function(a){--a;for(var b=1;32>b;b<<=1)a=a|a>>b;return a+1};oa=function(a){return 0>a?-a:a};pa=function(a,b){return a>b?a:b};qa=function(a,b){return a<b?a:b};ra=Math.PI;C=function(a){return 0<=a?a|0:(a|0)-1};sa=function(a){var b=
a|0;return b===a?b:b+1};ta=function(a,b,c,h,g,k,p,f){var r,z,e,x;a<c?(z=a,r=c):(z=c,r=a);g<p?(x=g,e=p):(x=p,e=g);if(r<x||z>e)return!1;b<h?(z=b,r=h):(z=h,r=b);k<f?(x=k,e=f):(x=f,e=k);if(r<x||z>e)return!1;r=g-a+p-c;z=k-b+f-h;a=c-a;b=h-b;g=p-g;k=f-k;f=oa(b*g-k*a);return oa(g*z-k*r)>f?!1:oa(a*z-b*r)<=f};d.prototype.set=function(a,b,c,h){this.left=a;this.top=b;this.right=c;this.bottom=h};d.prototype.Wg=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};d.prototype.width=
function(){return this.right-this.left};d.prototype.height=function(){return this.bottom-this.top};d.prototype.offset=function(a,b){this.left+=a;this.top+=b;this.right+=a;this.bottom+=b;return this};d.prototype.normalize=function(){var a=0;this.left>this.right&&(a=this.left,this.left=this.right,this.right=a);this.top>this.bottom&&(a=this.top,this.top=this.bottom,this.bottom=a)};d.prototype.ez=function(a){return!(a.right<this.left||a.bottom<this.top||a.left>this.right||a.top>this.bottom)};d.prototype.fz=
function(a,b,c){return!(a.right+b<this.left||a.bottom+c<this.top||a.left+b>this.right||a.top+c>this.bottom)};d.prototype.Sb=function(a,b){return a>=this.left&&a<=this.right&&b>=this.top&&b<=this.bottom};d.prototype.wi=function(a){return this.left===a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};ua=d;l.prototype.Lj=function(a){this.Wa=a.left;this.Xa=a.top;this.Hb=a.right;this.Ib=a.top;this.rb=a.right;this.sb=a.bottom;this.pb=a.left;this.qb=a.bottom};l.prototype.Dt=function(a,
b){if(0===b)this.Lj(a);else{var c=Math.sin(b),h=Math.cos(b),g=a.left*c,k=a.top*c,f=a.right*c,c=a.bottom*c,p=a.left*h,r=a.top*h,z=a.right*h,h=a.bottom*h;this.Wa=p-k;this.Xa=r+g;this.Hb=z-k;this.Ib=r+f;this.rb=z-c;this.sb=h+f;this.pb=p-c;this.qb=h+g}};l.prototype.offset=function(a,b){this.Wa+=a;this.Xa+=b;this.Hb+=a;this.Ib+=b;this.rb+=a;this.sb+=b;this.pb+=a;this.qb+=b;return this};var w=0,u=0;l.prototype.Oq=function(a){q(this.Wa,this.Hb,this.rb,this.pb);a.left=w;a.right=u;q(this.Xa,this.Ib,this.sb,
this.qb);a.top=w;a.bottom=u};l.prototype.Sb=function(a,b){var c=this.Wa,h=this.Xa,g=this.Hb-c,k=this.Ib-h,f=this.rb-c,p=this.sb-h,r=a-c,z=b-h,e=g*g+k*k,x=g*f+k*p,k=g*r+k*z,d=f*f+p*p,w=f*r+p*z,y=1/(e*d-x*x),g=(d*k-x*w)*y,e=(e*w-x*k)*y;if(0<=g&&0<e&&1>g+e)return!0;g=this.pb-c;k=this.qb-h;e=g*g+k*k;x=g*f+k*p;k=g*r+k*z;y=1/(e*d-x*x);g=(d*k-x*w)*y;e=(e*w-x*k)*y;return 0<=g&&0<e&&1>g+e};l.prototype.nf=function(a,b){if(b)switch(a){case 0:return this.Wa;case 1:return this.Hb;case 2:return this.rb;case 3:return this.pb;
case 4:return this.Wa;default:return this.Wa}else switch(a){case 0:return this.Xa;case 1:return this.Ib;case 2:return this.sb;case 3:return this.qb;case 4:return this.Xa;default:return this.Xa}};l.prototype.zs=function(){return(this.Wa+this.Hb+this.rb+this.pb)/4};l.prototype.As=function(){return(this.Xa+this.Ib+this.sb+this.qb)/4};l.prototype.Ir=function(a){var b=a.zs(),c=a.As();if(this.Sb(b,c))return!0;b=this.zs();c=this.As();if(a.Sb(b,c))return!0;var h,g,k,f,p,r,z,e;for(z=0;4>z;z++)for(e=0;4>e;e++)if(b=
this.nf(z,!0),c=this.nf(z,!1),h=this.nf(z+1,!0),g=this.nf(z+1,!1),k=a.nf(e,!0),f=a.nf(e,!1),p=a.nf(e+1,!0),r=a.nf(e+1,!1),ta(b,c,h,g,k,f,p,r))return!0;return!1};va=l;xa=function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);return a};za=function(a,b){var c,h;b=C(b);if(!(0>b||b>=a.length)){c=b;for(h=a.length-1;c<h;c++)a[c]=a[c+1];Aa(a,h)}};Aa=function(a,b){a.length=b};R=function(a){Aa(a,0)};Ba=function(a,b){R(a);var c,h;c=0;for(h=b.length;c<h;++c)a[c]=b[c]};Ca=function(a,b){a.push.apply(a,b)};
Da=function(a,b){var c,h;c=0;for(h=a.length;c<h;++c)if(a[c]===b)return c;return-1};Ea=function(a,b){var c=Da(a,b);-1!==c&&za(a,c)};Fa=function(a,b,c){return a<b?b:a>c?c:a};U=function(a){return a/(180/ra)};Ga=function(a){return 180/ra*a};Ha=function(a){a%=360;0>a&&(a+=360);return a};Ia=function(a){a%=2*ra;0>a&&(a+=2*ra);return a};Ja=function(a){return Ha(Ga(a))};Ka=function(a){return Ia(U(a))};La=function(a,b,c,h){return Math.atan2(h-b,c-a)};Na=function(a,b){if(a===b)return 0;var c=Math.sin(a),h=Math.cos(a),
g=Math.sin(b),k=Math.cos(b),c=c*g+h*k;return 1<=c?0:-1>=c?ra:Math.acos(c)};Oa=function(a,b,c){var h=Math.sin(a),g=Math.cos(a),k=Math.sin(b),f=Math.cos(b);return Math.acos(h*k+g*f)>c?0<g*k-h*f?Ia(a+c):Ia(a-c):Ia(b)};Pa=function(a,b){var c=Math.sin(a),h=Math.cos(a),g=Math.sin(b),k=Math.cos(b);return 0>=h*g-c*k};Ra=function(a,b,c,h,g,k){if(0===c)return k?a:b;var f=Math.sin(c);c=Math.cos(c);a-=h;b-=g;var p=a*f;a=a*c-b*f;b=b*c+p;return k?a+h:b+g};Sa=function(a,b,c,h){a=c-a;b=h-b;return Math.sqrt(a*a+b*
b)};Ta=function(a,b){return!a!==!b};Ua=function(a){for(var b in a)if(a.hasOwnProperty(b))return!0;return!1};Va=function(a){for(var b in a)a.hasOwnProperty(b)&&delete a[b]};var k=+new Date;Wa=function(){if("undefined"!==typeof window.performance){var a=window.performance;if("undefined"!==typeof a.now)return a.now();if("undefined"!==typeof a.webkitNow)return a.webkitNow();if("undefined"!==typeof a.mozNow)return a.mozNow();if("undefined"!==typeof a.msNow)return a.msNow()}return Date.now()-k};var h=!1,
p=h=!1,y=!1;"undefined"!==typeof window&&(h=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),h=!h&&/safari/i.test(navigator.userAgent),p=/(iphone|ipod|ipad)/i.test(navigator.userAgent),y=window.c2ejecta);var V=!h&&!y&&!p&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;m.prototype.contains=function(a){return this.Ie()?!1:V?this.pe.has(a):this.items&&this.items.hasOwnProperty(a)};m.prototype.add=function(a){if(V)this.pe.has(a)||(this.pe.add(a),this.pf=
!1);else{var b=a.toString(),c=this.items;c?c.hasOwnProperty(b)||(c[b]=a,this.Vi++,this.pf=!1):(this.items={},this.items[b]=a,this.Vi=1,this.pf=!1)}};m.prototype.remove=function(a){if(!this.Ie())if(V)this.pe.has(a)&&(this.pe["delete"](a),this.pf=!1);else if(this.items){a=a.toString();var b=this.items;b.hasOwnProperty(a)&&(delete b[a],this.Vi--,this.pf=!1)}};m.prototype.clear=function(){this.Ie()||(V?this.pe.clear():(this.items=null,this.Vi=0),R(this.Zh),this.pf=!0)};m.prototype.Ie=function(){return 0===
this.count()};m.prototype.count=function(){return V?this.pe.size:this.Vi};var x=null,W=0;m.prototype.FA=function(){if(!this.pf){if(V)R(this.Zh),x=this.Zh,W=0,this.pe.forEach(n),x=null,W=0;else{var a=this.Zh;R(a);var b,c=0,h=this.items;if(h)for(b in h)h.hasOwnProperty(b)&&(a[c++]=h[b])}this.pf=!0}};m.prototype.cf=function(){this.FA();return this.Zh};da=m;new da;Xa=function(a,b){V?Ya(a,b.pe):Za(a,b.cf())};Ya=function(a,b){var c,h,g,k;h=c=0;for(g=a.length;c<g;++c)k=a[c],b.has(k)||(a[h++]=k);Aa(a,h)};
Za=function(a,b){var c,h,g,k;h=c=0;for(g=a.length;c<g;++c)k=a[c],-1===Da(b,k)&&(a[h++]=k);Aa(a,h)};v.prototype.add=function(a){this.y=a-this.ni;this.Fm=this.Y+this.y;this.ni=this.Fm-this.Y-this.y;this.Y=this.Fm};v.prototype.reset=function(){this.Y=this.Fm=this.y=this.ni=0};$a=v;ab=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};t.prototype.Mj=function(a){this.ht=a;this.Qc=a.length/2;this.La.length=a.length;this.Ek=this.Fk=-1;this.Rq=0};t.prototype.nh=function(){return!this.ht.length};
t.prototype.Ha=function(){for(var a=this.La,b=a[0],c=b,h=a[1],g=h,k,f,p=1,r=this.Qc;p<r;++p)f=2*p,k=a[f],f=a[f+1],k<b&&(b=k),k>c&&(c=k),f<h&&(h=f),f>g&&(g=f);this.Ak=b;this.Bk=c;this.Ck=h;this.zk=g};t.prototype.Lj=function(a,b,c){this.La.length=8;this.Qc=4;var h=this.La;h[0]=a.left-b;h[1]=a.top-c;h[2]=a.right-b;h[3]=a.top-c;h[4]=a.right-b;h[5]=a.bottom-c;h[6]=a.left-b;h[7]=a.bottom-c;this.Fk=a.right-a.left;this.Ek=a.bottom-a.top;this.Ha()};t.prototype.Sh=function(a,b,c,h,g){this.La.length=8;this.Qc=
4;var k=this.La;k[0]=a.Wa-b;k[1]=a.Xa-c;k[2]=a.Hb-b;k[3]=a.Ib-c;k[4]=a.rb-b;k[5]=a.sb-c;k[6]=a.pb-b;k[7]=a.qb-c;this.Fk=h;this.Ek=g;this.Ha()};t.prototype.Ct=function(a){this.Qc=a.Qc;Ba(this.La,a.La);this.Ak=a.Ak;this.Ck-a.Ck;this.Bk=a.Bk;this.zk=a.zk};t.prototype.Vf=function(a,b,c){if(this.Fk!==a||this.Ek!==b||this.Rq!==c){this.Fk=a;this.Ek=b;this.Rq=c;var h,g,k,f,p,r=0,z=1,e=this.ht,x=this.La;0!==c&&(r=Math.sin(c),z=Math.cos(c));c=0;for(k=this.Qc;c<k;c++)h=2*c,g=h+1,f=e[h]*a,p=e[g]*b,x[h]=f*z-p*
r,x[g]=p*z+f*r;this.Ha()}};t.prototype.Sb=function(a,b){var c=this.La;if(a===c[0]&&b===c[1])return!0;var h,g,k,f=this.Qc,p=this.Ak-110,r=this.Ck-101,z=this.Bk+131,e=this.zk+120,x,d,w=0,y=0;for(h=0;h<f;h++)g=2*h,k=(h+1)%f*2,x=c[g],g=c[g+1],d=c[k],k=c[k+1],ta(p,r,a,b,x,g,d,k)&&w++,ta(z,e,a,b,x,g,d,k)&&y++;return 1===w%2||1===y%2};t.prototype.Li=function(a,b,c){var h=a.La,g=this.La;if(this.Sb(h[0]+b,h[1]+c)||a.Sb(g[0]-b,g[1]-c))return!0;var k,f,p,r,z,e,x,d,w,y,u,m;k=0;for(r=this.Qc;k<r;k++)for(f=2*k,
p=(k+1)%r*2,d=g[f],f=g[f+1],w=g[p],y=g[p+1],p=0,x=a.Qc;p<x;p++)if(z=2*p,e=(p+1)%x*2,u=h[z]+b,z=h[z+1]+c,m=h[e]+b,e=h[e+1]+c,ta(d,f,w,y,u,z,m,e))return!0;return!1};t.prototype.Cz=function(a){var b,c,h;b=0;for(c=this.Qc;b<c;++b)h=2*b,this.La[h]=2*a-this.La[h]};t.prototype.oy=function(a){var b,c,h;b=0;for(c=this.Qc;b<c;++b)h=2*b+1,this.La[h]=2*a-this.La[h]};t.prototype.Zw=function(){var a,b,c,h,g;a=0;for(b=this.Qc;a<b;++a)c=2*a,h=c+1,g=this.La[c],this.La[c]=this.La[h],this.La[h]=g};bb=t;b.prototype.yf=
function(a,b,c){var h;h=this.cells[a];return h?(h=h[b])?h:c?(h=e(this,a,b),this.cells[a][b]=h):null:c?(h=e(this,a,b),this.cells[a]={},this.cells[a][b]=h):null};b.prototype.sc=function(a){return C(a/this.tb)};b.prototype.tc=function(a){return C(a/this.Jb)};b.prototype.update=function(a,b,c){var h,g,k,f,p;if(b)for(h=b.left,g=b.right;h<=g;++h)for(k=b.top,f=b.bottom;k<=f;++k)if(!c||!c.Sb(h,k))if(p=this.yf(h,k,!1))p.remove(a),p.Ie()&&(p.Nb.clear(),1E3>T.length&&T.push(p),this.cells[h][k]=null);if(c)for(h=
c.left,g=c.right;h<=g;++h)for(k=c.top,f=c.bottom;k<=f;++k)b&&b.Sb(h,k)||this.yf(h,k,!0).jo(a)};b.prototype.mm=function(a,b){var c,h,g,k,f,p;c=this.sc(a.left);g=this.tc(a.top);h=this.sc(a.right);for(f=this.tc(a.bottom);c<=h;++c)for(k=g;k<=f;++k)(p=this.yf(c,k,!1))&&p.dump(b)};hb=b;c.prototype.yf=function(a,b,c){var h;h=this.cells[a];return h?(h=h[b])?h:c?(h=g(this,a,b),this.cells[a][b]=h):null:c?(h=g(this,a,b),this.cells[a]={},this.cells[a][b]=h):null};c.prototype.sc=function(a){return C(a/this.tb)};
c.prototype.tc=function(a){return C(a/this.Jb)};c.prototype.update=function(a,b,c){var h,g,k,f,p;if(b)for(h=b.left,g=b.right;h<=g;++h)for(k=b.top,f=b.bottom;k<=f;++k)if(!c||!c.Sb(h,k))if(p=this.yf(h,k,!1))p.remove(a),p.Ie()&&(p.reset(),1E3>B.length&&B.push(p),this.cells[h][k]=null);if(c)for(h=c.left,g=c.right;h<=g;++h)for(k=c.top,f=c.bottom;k<=f;++k)b&&b.Sb(h,k)||this.yf(h,k,!0).jo(a)};c.prototype.mm=function(a,b,c,h,g){var k,f;a=this.sc(a);b=this.tc(b);c=this.sc(c);for(k=this.tc(h);a<=c;++a)for(h=
b;h<=k;++h)(f=this.yf(a,h,!1))&&f.dump(g)};c.prototype.zz=function(a){var b,c,h,g,k;b=a.left;h=a.top;c=a.right;for(g=a.bottom;b<=c;++b)for(a=h;a<=g;++a)if(k=this.yf(b,a,!1))k.qh=!1};ib=c;var T=[];a.prototype.Ie=function(){return this.Nb.Ie()};a.prototype.jo=function(a){this.Nb.add(a)};a.prototype.remove=function(a){this.Nb.remove(a)};a.prototype.dump=function(a){Ca(a,this.Nb.cf())};ca=a;var B=[];f.prototype.Ie=function(){if(!this.Nb.length)return!0;if(this.Nb.length>this.me.count())return!1;this.In();
return!0};f.prototype.jo=function(a){this.me.contains(a)?(this.me.remove(a),this.me.Ie()&&(this.ki=!1)):this.Nb.length?(this.Nb[this.Nb.length-1].ie()>a.ie()&&(this.qh=!1),this.Nb.push(a)):(this.Nb.push(a),this.qh=!0)};f.prototype.remove=function(a){this.me.add(a);this.ki=!0;30<=this.me.count()&&this.In()};f.prototype.In=function(){this.ki&&(this.me.count()===this.Nb.length?this.reset():(Xa(this.Nb,this.me),this.me.clear(),this.ki=!1))};f.prototype.Fx=function(){this.qh||(this.Nb.sort(r),this.qh=
!0)};f.prototype.reset=function(){R(this.Nb);this.qh=!0;this.me.clear();this.ki=!1};f.prototype.dump=function(a){this.In();this.Fx();this.Nb.length&&a.push(this.Nb)};ea=f;var P="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");jb=function(a){return 0>=a||11<=a?"source-over":P[a-1]};kb=function(a,b,c){if(c)switch(a.ic=c.ONE,a.fc=c.ONE_MINUS_SRC_ALPHA,b){case 1:a.ic=c.ONE;a.fc=c.ONE;break;case 3:a.ic=c.ONE;a.fc=c.ZERO;break;
case 4:a.ic=c.ONE_MINUS_DST_ALPHA;a.fc=c.ONE;break;case 5:a.ic=c.DST_ALPHA;a.fc=c.ZERO;break;case 6:a.ic=c.ZERO;a.fc=c.SRC_ALPHA;break;case 7:a.ic=c.ONE_MINUS_DST_ALPHA;a.fc=c.ZERO;break;case 8:a.ic=c.ZERO;a.fc=c.ONE_MINUS_SRC_ALPHA;break;case 9:a.ic=c.DST_ALPHA;a.fc=c.ONE_MINUS_SRC_ALPHA;break;case 10:a.ic=c.ONE_MINUS_DST_ALPHA,a.fc=c.SRC_ALPHA}};lb=function(a){return Math.round(1E6*a)/1E6};mb=function(a,b){return"string"!==typeof a||"string"!==typeof b||a.length!==b.length?!1:a===b?!0:a.toLowerCase()===
b.toLowerCase()};nb=function(a){a=a.target;return!a||a===document||a===window||document&&document.body&&a===document.body||mb(a.tagName,"canvas")?!0:!1}})();var gc="undefined"!==typeof Float32Array?Float32Array:Array;function hc(d){var l=new gc(3);d&&(l[0]=d[0],l[1]=d[1],l[2]=d[2]);return l}
function ic(d){var l=new gc(16);d&&(l[0]=d[0],l[1]=d[1],l[2]=d[2],l[3]=d[3],l[4]=d[4],l[5]=d[5],l[6]=d[6],l[7]=d[7],l[8]=d[8],l[9]=d[9],l[10]=d[10],l[11]=d[11],l[12]=d[12],l[13]=d[13],l[14]=d[14],l[15]=d[15]);return l}function jc(d,l){l[0]=d[0];l[1]=d[1];l[2]=d[2];l[3]=d[3];l[4]=d[4];l[5]=d[5];l[6]=d[6];l[7]=d[7];l[8]=d[8];l[9]=d[9];l[10]=d[10];l[11]=d[11];l[12]=d[12];l[13]=d[13];l[14]=d[14];l[15]=d[15]}
function kc(d,l){var q=l[0],m=l[1];l=l[2];d[0]*=q;d[1]*=q;d[2]*=q;d[3]*=q;d[4]*=m;d[5]*=m;d[6]*=m;d[7]*=m;d[8]*=l;d[9]*=l;d[10]*=l;d[11]*=l}
function lc(d,l,q,m){m||(m=ic());var n,v,t,b,c,e,a,g,f=d[0],r=d[1];d=d[2];v=q[0];t=q[1];n=q[2];q=l[1];e=l[2];f===l[0]&&r===q&&d===e?(d=m,d[0]=1,d[1]=0,d[2]=0,d[3]=0,d[4]=0,d[5]=1,d[6]=0,d[7]=0,d[8]=0,d[9]=0,d[10]=1,d[11]=0,d[12]=0,d[13]=0,d[14]=0,d[15]=1):(q=f-l[0],e=r-l[1],a=d-l[2],g=1/Math.sqrt(q*q+e*e+a*a),q*=g,e*=g,a*=g,l=t*a-n*e,n=n*q-v*a,v=v*e-t*q,(g=Math.sqrt(l*l+n*n+v*v))?(g=1/g,l*=g,n*=g,v*=g):v=n=l=0,t=e*v-a*n,b=a*l-q*v,c=q*n-e*l,(g=Math.sqrt(t*t+b*b+c*c))?(g=1/g,t*=g,b*=g,c*=g):c=b=t=0,
m[0]=l,m[1]=t,m[2]=q,m[3]=0,m[4]=n,m[5]=b,m[6]=e,m[7]=0,m[8]=v,m[9]=c,m[10]=a,m[11]=0,m[12]=-(l*f+n*r+v*d),m[13]=-(t*f+b*r+c*d),m[14]=-(q*f+e*r+a*d),m[15]=1)}
(function(){function d(b,c,e){this.Je=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.Ka=!!e;this.wl=this.Mi=!1;this.Pk=0;this.Xm=1;this.Zp=1E3;this.PA=(this.Zp-this.Xm)/32768;this.ln=hc([0,0,100]);this.cs=hc([0,0,0]);this.$t=hc([0,1,0]);this.jk=hc([1,1,1]);this.dr=!0;this.Ql=ic();this.$c=ic();this.yo=ic();this.vn=ic();this.H=b;this.version=0===this.H.getParameter(this.H.VERSION).indexOf("WebGL 2")?2:1;this.Er()}function l(b,c,e){this.H=b;this.Nj=
c;this.name=e;this.qd=b.getAttribLocation(c,"aPos");this.Ff=b.getAttribLocation(c,"aTex");this.as=b.getUniformLocation(c,"matP");this.Ll=b.getUniformLocation(c,"matMV");this.Dh=b.getUniformLocation(c,"opacity");this.Eo=b.getUniformLocation(c,"colorFill");this.bs=b.getUniformLocation(c,"samplerFront");this.ej=b.getUniformLocation(c,"samplerBack");this.Bg=b.getUniformLocation(c,"destStart");this.Ag=b.getUniformLocation(c,"destEnd");this.gj=b.getUniformLocation(c,"seconds");this.Go=b.getUniformLocation(c,
"pixelWidth");this.Fo=b.getUniformLocation(c,"pixelHeight");this.cj=b.getUniformLocation(c,"layerScale");this.bj=b.getUniformLocation(c,"layerAngle");this.hj=b.getUniformLocation(c,"viewOrigin");this.fj=b.getUniformLocation(c,"scrollPos");this.$y=!!(this.Go||this.Fo||this.gj||this.ej||this.Bg||this.Ag||this.cj||this.bj||this.hj||this.fj);this.os=this.ps=-999;this.Pl=1;this.hs=this.gs=0;this.ls=this.es=this.ds=1;this.ts=this.rs=this.qs=this.vs=this.us=this.ks=0;this.xo=[];this.ns=ic();this.Dh&&b.uniform1f(this.Dh,
1);this.Eo&&b.uniform4f(this.Eo,1,1,1,1);this.bs&&b.uniform1i(this.bs,0);this.ej&&b.uniform1i(this.ej,1);this.Bg&&b.uniform2f(this.Bg,0,0);this.Ag&&b.uniform2f(this.Ag,1,1);this.cj&&b.uniform1f(this.cj,1);this.bj&&b.uniform1f(this.bj,0);this.hj&&b.uniform2f(this.hj,0,0);this.fj&&b.uniform2f(this.fj,0,0);this.gj&&b.uniform1f(this.gj,0);this.lg=!1}function q(b,c){return b[0]===c[0]&&b[1]===c[1]&&b[2]===c[2]&&b[3]===c[3]&&b[4]===c[4]&&b[5]===c[5]&&b[6]===c[6]&&b[7]===c[7]&&b[8]===c[8]&&b[9]===c[9]&&
b[10]===c[10]&&b[11]===c[11]&&b[12]===c[12]&&b[13]===c[13]&&b[14]===c[14]&&b[15]===c[15]}function m(b,c){this.type=b;this.C=c;this.H=c.H;this.Vc=this.jc=this.Rs=0;this.fa=this.zd=null;this.Et=[]}var n=ic();d.prototype.Er=function(){var b=this.H,c;this.Wr=1;this.ug=this.Cf=null;this.Ok=1;b.clearColor(0,0,0,0);b.clear(b.COLOR_BUFFER_BIT);b.enable(b.BLEND);b.blendFunc(b.ONE,b.ONE_MINUS_SRC_ALPHA);b.disable(b.CULL_FACE);b.disable(b.STENCIL_TEST);b.disable(b.DITHER);this.Ka?(b.enable(b.DEPTH_TEST),b.depthFunc(b.LEQUAL)):
b.disable(b.DEPTH_TEST);this.Xr=b.ONE;this.Vr=b.ONE_MINUS_SRC_ALPHA;this.hk=new Float32Array(8E3*(this.Ka?3:2));this.Vj=new Float32Array(16E3);this.ct=new Float32Array(32E3);this.cp=b.createBuffer();b.bindBuffer(b.ARRAY_BUFFER,this.cp);b.bufferData(b.ARRAY_BUFFER,this.ct.byteLength,b.DYNAMIC_DRAW);this.gk=Array(4);this.Uj=Array(4);for(c=0;4>c;c++)this.gk[c]=b.createBuffer(),b.bindBuffer(b.ARRAY_BUFFER,this.gk[c]),b.bufferData(b.ARRAY_BUFFER,this.hk.byteLength,b.DYNAMIC_DRAW),this.Uj[c]=b.createBuffer(),
b.bindBuffer(b.ARRAY_BUFFER,this.Uj[c]),b.bufferData(b.ARRAY_BUFFER,this.Vj.byteLength,b.DYNAMIC_DRAW);this.ze=0;this.cz=b.createBuffer();b.bindBuffer(b.ELEMENT_ARRAY_BUFFER,this.cz);for(var e=new Uint16Array(12E3),a=c=0;12E3>c;)e[c++]=a,e[c++]=a+1,e[c++]=a+2,e[c++]=a,e[c++]=a+2,e[c++]=a+3,a+=4;b.bufferData(b.ELEMENT_ARRAY_BUFFER,e,b.STATIC_DRAW);this.dp=this.Mf=this.Bd=0;this.Va=[];c=this.Ka?"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.ri({src:"varying mediump vec2 vTex;\nuniform lowp float opacity;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, vTex);\n\tgl_FragColor *= opacity;\n}"},c,"<default>");this.Va.push(e);e=this.ri({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.Va.push(e);e=this.ri({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},c,"<earlyz>");this.Va.push(e);e=this.ri({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"},
c,"<fill>");this.Va.push(e);for(var g in mc)mc.hasOwnProperty(g)&&this.Va.push(this.ri(mc[g],c,g));b.activeTexture(b.TEXTURE0);b.bindTexture(b.TEXTURE_2D,null);this.be=[];this.Hd=0;this.Kb=!1;this.Yq=this.Yi=-1;this.Yg=null;this.Gn=b.createFramebuffer();this.Tk=this.nm=null;this.Mq=!1;this.Ka&&(this.Tk=b.createRenderbuffer());this.Of=hc([0,0,0]);this.ws=b.getParameter(b.ALIASED_POINT_SIZE_RANGE)[1];2048<this.ws&&(this.ws=2048);this.Ec(0)};l.prototype.Tp=function(b){q(this.ns,b)||(jc(b,this.ns),this.H.uniformMatrix4fv(this.Ll,
!1,b))};d.prototype.ri=function(b,c,e){var a=this.H,g=a.createShader(a.FRAGMENT_SHADER);a.shaderSource(g,b.src);a.compileShader(g);if(!a.getShaderParameter(g,a.COMPILE_STATUS))throw b=a.getShaderInfoLog(g),a.deleteShader(g),Error("error compiling fragment shader: "+b);var f=a.createShader(a.VERTEX_SHADER);a.shaderSource(f,c);a.compileShader(f);if(!a.getShaderParameter(f,a.COMPILE_STATUS))throw b=a.getShaderInfoLog(f),a.deleteShader(g),a.deleteShader(f),Error("error compiling vertex shader: "+b);c=
a.createProgram();a.attachShader(c,g);a.attachShader(c,f);a.linkProgram(c);if(!a.getProgramParameter(c,a.LINK_STATUS))throw b=a.getProgramInfoLog(c),a.deleteShader(g),a.deleteShader(f),a.deleteProgram(c),Error("error linking shader program: "+b);a.useProgram(c);a.deleteShader(g);a.deleteShader(f);g=new l(a,c,e);g.En=b.En||0;g.Fn=b.Fn||0;g.Xq=!!b.Xq;g.Nd=!!b.Nd;g.Jq=!!b.Jq;g.ja=b.ja||[];b=0;for(f=g.ja.length;b<f;b++)g.ja[b][1]=a.getUniformLocation(c,g.ja[b][0]),g.xo.push(0),a.uniform1f(g.ja[b][1],
0);return g};d.prototype.Wn=function(b){var c,e;c=0;for(e=this.Va.length;c<e;c++)if(this.Va[c].name===b)return c;return-1};d.prototype.gt=function(b,c,e){var a=this.$c,g=this.Ql,f=[0,0,0,0,0,0,0,0];f[0]=a[0]*b+a[4]*c+a[12];f[1]=a[1]*b+a[5]*c+a[13];f[2]=a[2]*b+a[6]*c+a[14];f[3]=a[3]*b+a[7]*c+a[15];f[4]=g[0]*f[0]+g[4]*f[1]+g[8]*f[2]+g[12]*f[3];f[5]=g[1]*f[0]+g[5]*f[1]+g[9]*f[2]+g[13]*f[3];f[6]=g[2]*f[0]+g[6]*f[1]+g[10]*f[2]+g[14]*f[3];f[7]=-f[2];0!==f[7]&&(f[7]=1/f[7],f[4]*=f[7],f[5]*=f[7],f[6]*=f[7],
e[0]=(.5*f[4]+.5)*this.width,e[1]=(.5*f[5]+.5)*this.height)};d.prototype.Ig=function(b,c,e){if(this.width!==b||this.height!==c||e){this.De();e=this.H;this.width=b;this.height=c;e.viewport(0,0,b,c);lc(this.ln,this.cs,this.$t,this.$c);if(this.Ka){var a=-b/2;b=b/2;var g=c/2;c=-c/2;var f=this.Xm,r=this.Zp,d=this.Ql;d||(d=ic());var u=b-a,k=c-g,h=r-f;d[0]=2/u;d[1]=0;d[2]=0;d[3]=0;d[4]=0;d[5]=2/k;d[6]=0;d[7]=0;d[8]=0;d[9]=0;d[10]=-2/h;d[11]=0;d[12]=-(a+b)/u;d[13]=-(c+g)/k;d[14]=-(r+f)/h;d[15]=1;this.jk[0]=
1;this.jk[1]=1}else c=b/c,a=this.Xm,b=this.Zp,d=this.Ql,r=a*Math.tan(45*Math.PI/360),c*=r,g=-c,f=-r,d||(d=ic()),u=c-g,k=r-f,h=b-a,d[0]=2*a/u,d[1]=0,d[2]=0,d[3]=0,d[4]=0,d[5]=2*a/k,d[6]=0,d[7]=0,d[8]=(c+g)/u,d[9]=(r+f)/k,d[10]=-(b+a)/h,d[11]=-1,d[12]=0,d[13]=0,d[14]=-(b*a*2)/h,d[15]=0,a=[0,0],b=[0,0],this.gt(0,0,a),this.gt(1,1,b),this.jk[0]=1/(b[0]-a[0]),this.jk[1]=-1/(b[1]-a[1]);a=0;for(b=this.Va.length;a<b;a++)g=this.Va[a],g.lg=!1,g.as&&(e.useProgram(g.Nj),e.uniformMatrix4fv(g.as,!1,this.Ql));e.useProgram(this.Va[this.Yi].Nj);
e.bindTexture(e.TEXTURE_2D,null);e.activeTexture(e.TEXTURE1);e.bindTexture(e.TEXTURE_2D,null);e.activeTexture(e.TEXTURE0);this.ug=this.Cf=null;this.Tk&&(e.bindFramebuffer(e.FRAMEBUFFER,this.Gn),e.bindRenderbuffer(e.RENDERBUFFER,this.Tk),e.renderbufferStorage(e.RENDERBUFFER,e.DEPTH_COMPONENT16,this.width,this.height),this.Mq||(e.framebufferRenderbuffer(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.RENDERBUFFER,this.Tk),this.Mq=!0),e.bindRenderbuffer(e.RENDERBUFFER,null),e.bindFramebuffer(e.FRAMEBUFFER,null),
this.nm=null)}};d.prototype.oe=function(){lc(this.ln,this.cs,this.$t,this.$c);kc(this.$c,this.jk)};d.prototype.translate=function(b,c){if(0!==b||0!==c){this.Of[0]=b;this.Of[1]=c;this.Of[2]=0;var e=this.$c,a=this.Of,g=a[0],f=a[1],a=a[2];e[12]=e[0]*g+e[4]*f+e[8]*a+e[12];e[13]=e[1]*g+e[5]*f+e[9]*a+e[13];e[14]=e[2]*g+e[6]*f+e[10]*a+e[14];e[15]=e[3]*g+e[7]*f+e[11]*a+e[15]}};d.prototype.scale=function(b,c){if(1!==b||1!==c)this.Of[0]=b,this.Of[1]=c,this.Of[2]=1,kc(this.$c,this.Of)};d.prototype.np=function(b){if(0!==
b){var c=this.$c,e,a=Math.sin(b);b=Math.cos(b);var g=c[0],f=c[1],r=c[2],d=c[3],u=c[4],k=c[5],h=c[6],p=c[7];e?c!==e&&(e[8]=c[8],e[9]=c[9],e[10]=c[10],e[11]=c[11],e[12]=c[12],e[13]=c[13],e[14]=c[14],e[15]=c[15]):e=c;e[0]=g*b+u*a;e[1]=f*b+k*a;e[2]=r*b+h*a;e[3]=d*b+p*a;e[4]=g*-a+u*b;e[5]=f*-a+k*b;e[6]=r*-a+h*b;e[7]=d*-a+p*b}};d.prototype.Wd=function(){if(!q(this.yo,this.$c)){var b=this.yc();b.type=5;b.fa?jc(this.$c,b.fa):b.fa=ic(this.$c);jc(this.$c,this.yo);this.Kb=!1}};d.prototype.vm=function(b){this.Ka&&
(32760<b&&(b=32760),this.Pk=this.ln[2]-this.Xm-b*this.PA)};m.prototype.nx=function(){var b=this.H,c=this.C;0!==this.jc?(b.depthMask(!0),b.colorMask(!1,!1,!1,!1),b.disable(b.BLEND),b.bindFramebuffer(b.FRAMEBUFFER,c.Gn),b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,null,0),b.clear(b.DEPTH_BUFFER_BIT),b.bindFramebuffer(b.FRAMEBUFFER,null),c.wl=!0):(b.depthMask(!1),b.colorMask(!0,!0,!0,!0),b.enable(b.BLEND),c.wl=!1)};m.prototype.tx=function(){this.H.bindTexture(this.H.TEXTURE_2D,
this.zd)};m.prototype.ux=function(){var b=this.H;b.activeTexture(b.TEXTURE1);b.bindTexture(b.TEXTURE_2D,this.zd);b.activeTexture(b.TEXTURE0)};m.prototype.ox=function(){var b=this.Rs,c=this.C;c.Ok=b;c=c.Yg;c.Dh&&c.Pl!==b&&(c.Pl=b,this.H.uniform1f(c.Dh,b))};m.prototype.hx=function(){this.H.drawElements(this.H.TRIANGLES,this.Vc,this.H.UNSIGNED_SHORT,this.jc)};m.prototype.jx=function(){this.H.blendFunc(this.jc,this.Vc)};m.prototype.vx=function(){var b,c,e,a=this.C.Va,g=this.C.Yq;b=0;for(c=a.length;b<
c;b++)e=a[b],b===g&&e.Ll?(e.Tp(this.fa),e.lg=!0):e.lg=!1;jc(this.fa,this.C.vn)};m.prototype.ix=function(){var b=this.H,c=this.C;this.zd?(c.ug===this.zd&&(b.activeTexture(b.TEXTURE1),b.bindTexture(b.TEXTURE_2D,null),c.ug=null,b.activeTexture(b.TEXTURE0)),b.bindFramebuffer(b.FRAMEBUFFER,c.Gn),c.wl||b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,this.zd,0)):(c.Ka||b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,null,0),b.bindFramebuffer(b.FRAMEBUFFER,null))};
m.prototype.bx=function(){var b=this.H,c=this.jc;0===c?(b.clearColor(this.fa[0],this.fa[1],this.fa[2],this.fa[3]),b.clear(b.COLOR_BUFFER_BIT)):1===c?(b.enable(b.SCISSOR_TEST),b.scissor(this.fa[0],this.fa[1],this.fa[2],this.fa[3]),b.clearColor(0,0,0,0),b.clear(b.COLOR_BUFFER_BIT),b.disable(b.SCISSOR_TEST)):b.clear(b.DEPTH_BUFFER_BIT)};m.prototype.mx=function(){var b=this.H;0!==this.jc?b.enable(b.DEPTH_TEST):b.disable(b.DEPTH_TEST)};m.prototype.gx=function(){var b=this.H,c=this.C;c.Ka&&b.disable(b.DEPTH_TEST);
var e=c.Va[1];b.useProgram(e.Nj);!e.lg&&e.Ll&&(e.Tp(c.vn),e.lg=!0);b.enableVertexAttribArray(e.qd);b.bindBuffer(b.ARRAY_BUFFER,c.cp);b.vertexAttribPointer(e.qd,4,b.FLOAT,!1,0,0);b.drawArrays(b.POINTS,this.jc/4,this.Vc);e=c.Yg;b.useProgram(e.Nj);0<=e.qd&&(b.enableVertexAttribArray(e.qd),b.bindBuffer(b.ARRAY_BUFFER,c.gk[c.ze]),b.vertexAttribPointer(e.qd,c.Ka?3:2,b.FLOAT,!1,0,0));0<=e.Ff&&(b.enableVertexAttribArray(e.Ff),b.bindBuffer(b.ARRAY_BUFFER,c.Uj[c.ze]),b.vertexAttribPointer(e.Ff,2,b.FLOAT,!1,
0,0));c.Ka&&b.enable(b.DEPTH_TEST)};m.prototype.qx=function(){var b=this.H,c=this.C,e=c.Va[this.jc];c.Yq=this.jc;c.Yg=e;b.useProgram(e.Nj);!e.lg&&e.Ll&&(e.Tp(c.vn),e.lg=!0);e.Dh&&e.Pl!==c.Ok&&(e.Pl=c.Ok,b.uniform1f(e.Dh,c.Ok));0<=e.qd&&(b.enableVertexAttribArray(e.qd),b.bindBuffer(b.ARRAY_BUFFER,c.gk[c.ze]),b.vertexAttribPointer(e.qd,c.Ka?3:2,b.FLOAT,!1,0,0));0<=e.Ff&&(b.enableVertexAttribArray(e.Ff),b.bindBuffer(b.ARRAY_BUFFER,c.Uj[c.ze]),b.vertexAttribPointer(e.Ff,2,b.FLOAT,!1,0,0))};m.prototype.kx=
function(){var b=this.fa;this.H.uniform4f(this.C.Yg.Eo,b[0],b[1],b[2],b[3])};m.prototype.rx=function(){var b,c,e=this.C.Yg,a=this.H;b=this.fa;e.ej&&this.C.ug!==this.zd&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,this.zd),this.C.ug=this.zd,a.activeTexture(a.TEXTURE0));var g=b[0];e.Go&&g!==e.ps&&(e.ps=g,a.uniform1f(e.Go,g));g=b[1];e.Fo&&g!==e.os&&(e.os=g,a.uniform1f(e.Fo,g));g=b[2];c=b[3];!e.Bg||g===e.gs&&c===e.hs||(e.gs=g,e.hs=c,a.uniform2f(e.Bg,g,c));g=b[4];c=b[5];!e.Ag||g===e.ds&&c===
e.es||(e.ds=g,e.es=c,a.uniform2f(e.Ag,g,c));g=b[6];e.cj&&g!==e.ls&&(e.ls=g,a.uniform1f(e.cj,g));g=b[7];e.bj&&g!==e.ks&&(e.ks=g,a.uniform1f(e.bj,g));g=b[8];c=b[9];!e.hj||g===e.us&&c===e.vs||(e.us=g,e.vs=c,a.uniform2f(e.hj,g,c));g=b[10];c=b[11];!e.fj||g===e.qs&&c===e.rs||(e.qs=g,e.rs=c,a.uniform2f(e.fj,g,c));g=b[12];e.gj&&g!==e.ts&&(e.ts=g,a.uniform1f(e.gj,g));if(e.ja.length)for(b=0,c=e.ja.length;b<c;b++)g=this.Et[b],g!==e.xo[b]&&(e.xo[b]=g,a.uniform1f(e.ja[b][1],g))};d.prototype.yc=function(){this.Hd===
this.be.length&&this.be.push(new m(0,this));return this.be[this.Hd++]};d.prototype.De=function(){if(0!==this.Hd&&!this.H.isContextLost()){var b=this.H;0<this.dp&&(b.bindBuffer(b.ARRAY_BUFFER,this.cp),b.bufferSubData(b.ARRAY_BUFFER,0,this.ct.subarray(0,this.dp)),c&&0<=c.qd&&"<point>"===c.name&&b.vertexAttribPointer(c.qd,4,b.FLOAT,!1,0,0));if(0<this.Bd){var c=this.Yg;b.bindBuffer(b.ARRAY_BUFFER,this.gk[this.ze]);b.bufferSubData(b.ARRAY_BUFFER,0,this.hk.subarray(0,this.Bd));c&&0<=c.qd&&"<point>"!==c.name&&
b.vertexAttribPointer(c.qd,this.Ka?3:2,b.FLOAT,!1,0,0);b.bindBuffer(b.ARRAY_BUFFER,this.Uj[this.ze]);b.bufferSubData(b.ARRAY_BUFFER,0,this.Vj.subarray(0,this.Mf));c&&0<=c.Ff&&"<point>"!==c.name&&b.vertexAttribPointer(c.Ff,2,b.FLOAT,!1,0,0)}for(var e,b=0,c=this.Hd;b<c;b++)switch(e=this.be[b],e.type){case 1:e.hx();break;case 2:e.tx();break;case 3:e.ox();break;case 4:e.jx();break;case 5:e.vx();break;case 6:e.ix();break;case 7:e.bx();break;case 8:e.gx();break;case 9:e.qx();break;case 10:e.rx();break;
case 11:e.ux();break;case 12:e.kx();break;case 13:e.mx();break;case 14:e.nx()}this.dp=this.Mf=this.Bd=this.Hd=0;this.wl=this.Kb=!1;this.ze++;4<=this.ze&&(this.ze=0)}};d.prototype.Kf=function(b){if(b!==this.Wr&&!this.Mi){var c=this.yc();c.type=3;this.Wr=c.Rs=b;this.Kb=!1}};d.prototype.Cc=function(b){if(b!==this.Cf){var c=this.yc();c.type=2;this.Cf=c.zd=b;this.Kb=!1}};d.prototype.Jf=function(b,c){if((b!==this.Xr||c!==this.Vr)&&!this.Mi){var e=this.yc();e.type=4;e.jc=b;e.Vc=c;this.Xr=b;this.Vr=c;this.Kb=
!1}};d.prototype.pt=function(){this.Jf(this.H.ONE,this.H.ONE_MINUS_SRC_ALPHA)};d.prototype.Bj=function(b,c,e,a,g,f,r,d){15992<=this.Bd&&this.De();var u=this.Bd,k=this.Mf,h=this.hk,p=this.Vj,y=this.Pk;if(this.Kb)this.be[this.Hd-1].Vc+=6;else{var m=this.yc();m.type=1;m.jc=this.Ka?u:u/2*3;m.Vc=6;this.Kb=!0}this.Ka?(h[u++]=b,h[u++]=c,h[u++]=y,h[u++]=e,h[u++]=a,h[u++]=y,h[u++]=g,h[u++]=f,h[u++]=y,h[u++]=r,h[u++]=d,h[u++]=y):(h[u++]=b,h[u++]=c,h[u++]=e,h[u++]=a,h[u++]=g,h[u++]=f,h[u++]=r,h[u++]=d);p[k++]=
0;p[k++]=0;p[k++]=1;p[k++]=0;p[k++]=1;p[k++]=1;p[k++]=0;p[k++]=1;this.Bd=u;this.Mf=k};d.prototype.Pd=function(b,c,e,a,g,f,r,d,u){15992<=this.Bd&&this.De();var k=this.Bd,h=this.Mf,p=this.hk,y=this.Vj,m=this.Pk;if(this.Kb)this.be[this.Hd-1].Vc+=6;else{var x=this.yc();x.type=1;x.jc=this.Ka?k:k/2*3;x.Vc=6;this.Kb=!0}var x=u.left,W=u.top,t=u.right;u=u.bottom;this.Ka?(p[k++]=b,p[k++]=c,p[k++]=m,p[k++]=e,p[k++]=a,p[k++]=m,p[k++]=g,p[k++]=f,p[k++]=m,p[k++]=r,p[k++]=d,p[k++]=m):(p[k++]=b,p[k++]=c,p[k++]=e,
p[k++]=a,p[k++]=g,p[k++]=f,p[k++]=r,p[k++]=d);y[h++]=x;y[h++]=W;y[h++]=t;y[h++]=W;y[h++]=t;y[h++]=u;y[h++]=x;y[h++]=u;this.Bd=k;this.Mf=h};d.prototype.bA=function(b,c,e,a,g,f,r,d,u,k,h,p,y,m,x,W){15992<=this.Bd&&this.De();var t=this.Bd,n=this.Mf,l=this.hk,q=this.Vj,v=this.Pk;if(this.Kb)this.be[this.Hd-1].Vc+=6;else{var L=this.yc();L.type=1;L.jc=this.Ka?t:t/2*3;L.Vc=6;this.Kb=!0}this.Ka?(l[t++]=b,l[t++]=c,l[t++]=v,l[t++]=e,l[t++]=a,l[t++]=v,l[t++]=g,l[t++]=f,l[t++]=v,l[t++]=r,l[t++]=d,l[t++]=v):(l[t++]=
b,l[t++]=c,l[t++]=e,l[t++]=a,l[t++]=g,l[t++]=f,l[t++]=r,l[t++]=d);q[n++]=u;q[n++]=k;q[n++]=h;q[n++]=p;q[n++]=y;q[n++]=m;q[n++]=x;q[n++]=W;this.Bd=t;this.Mf=n};d.prototype.Ec=function(b){if(this.Yi!==b){if(!this.Va[b]){if(0===this.Yi)return;b=0}var c=this.yc();c.type=9;this.Yi=c.jc=b;this.Kb=!1}};d.prototype.yj=function(b){b=this.Va[b];return!(!b.Bg&&!b.Ag)};d.prototype.fp=function(b){b=this.Va[b];return!!(b.Bg||b.Ag||b.Xq)};d.prototype.ep=function(b){return this.Va[b].Nd};d.prototype.Zz=function(b){b=
this.Va[b];return 0!==b.En||0!==b.Fn};d.prototype.Gy=function(b){return this.Va[b].En};d.prototype.Hy=function(b){return this.Va[b].Fn};d.prototype.Iy=function(b,c){return this.Va[b].ja[c][2]};d.prototype.km=function(b){return this.Va[b].Jq};d.prototype.Rh=function(b,c,e,a,g,f,r,d,u,k,h,p,y,m,x){var t=this.Va[this.Yi],l,n;if(t.$y||x.length){l=this.yc();l.type=10;l.fa?jc(this.$c,l.fa):l.fa=ic();n=l.fa;n[0]=c;n[1]=e;n[2]=a;n[3]=g;n[4]=f;n[5]=r;n[6]=d;n[7]=u;n[8]=k;n[9]=h;n[10]=p;n[11]=y;n[12]=m;t.ej?
l.zd=b:l.zd=null;if(x.length)for(e=l.Et,e.length=x.length,b=0,c=x.length;b<c;b++)e[b]=x[b];this.Kb=!1}};d.prototype.clear=function(b,c,e,a){var g=this.yc();g.type=7;g.jc=0;g.fa||(g.fa=ic());g.fa[0]=b;g.fa[1]=c;g.fa[2]=e;g.fa[3]=a;this.Kb=!1};d.prototype.clearRect=function(b,c,e,a){if(!(0>e||0>a)){var g=this.yc();g.type=7;g.jc=1;g.fa||(g.fa=ic());g.fa[0]=b;g.fa[1]=c;g.fa[2]=e;g.fa[3]=a;this.Kb=!1}};d.prototype.xt=function(b){if(this.Ka&&(b=!!b,this.Mi!==b)){var c=this.yc();c.type=14;c.jc=b?1:0;this.Kb=
!1;this.Mi=b;this.nm=null;this.Mi?this.Ec(2):this.Ec(0)}};d.prototype.tt=function(b){if(this.Ka){var c=this.yc();c.type=13;c.jc=b?1:0;this.Kb=!1}};d.prototype.lr=function(){jc(this.yo,n);this.oe();this.Wd();var b=this.width/2,c=this.height/2;this.Bj(-b,c,b,c,b,-c,-b,-c);jc(n,this.$c);this.Wd()};d.prototype.qt=function(b,c,e){this.Ec(3);var a=this.yc();a.type=12;a.fa||(a.fa=ic());a.fa[0]=b;a.fa[1]=c;a.fa[2]=e;a.fa[3]=1;this.Kb=!1};d.prototype.wA=function(){this.Ec(0)};d.prototype.hA=function(){this.Ec(2)};
d.prototype.Yz=function(){this.De();this.H.flush()};var v=[],t={};d.prototype.Rw=function(){R(v);t={}};d.prototype.Bh=function(b,c,e,a){c=!!c;e=!!e;var g=b.src+","+c+","+e+(c?",undefined":""),f=null;if("undefined"!==typeof b.src&&t.hasOwnProperty(g))return f=t[g],f.Dk++,f;this.De();var r=this.H,d=ma(b.width)&&ma(b.height),f=r.createTexture();r.bindTexture(r.TEXTURE_2D,f);r.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var u=r.RGBA,k=r.RGBA,h=r.UNSIGNED_BYTE;if(a&&!this.Je)switch(a){case 1:k=u=
r.RGB;break;case 2:h=r.UNSIGNED_SHORT_4_4_4_4;break;case 3:h=r.UNSIGNED_SHORT_5_5_5_1;break;case 4:k=u=r.RGB,h=r.UNSIGNED_SHORT_5_6_5}if(1===this.version&&!d&&c){a=document.createElement("canvas");a.width=na(b.width);a.height=na(b.height);var p=a.getContext("2d");"undefined"!==typeof p.imageSmoothingEnabled?p.imageSmoothingEnabled=e:(p.webkitImageSmoothingEnabled=e,p.mozImageSmoothingEnabled=e,p.msImageSmoothingEnabled=e);p.drawImage(b,0,0,b.width,b.height,0,0,a.width,a.height);r.texImage2D(r.TEXTURE_2D,
0,u,k,h,a)}else r.texImage2D(r.TEXTURE_2D,0,u,k,h,b);c?(r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,r.REPEAT),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,r.REPEAT)):(r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,r.CLAMP_TO_EDGE));e?(r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,r.LINEAR),(d||2<=this.version)&&this.dr?(r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,r.LINEAR_MIPMAP_LINEAR),r.generateMipmap(r.TEXTURE_2D)):r.texParameteri(r.TEXTURE_2D,
r.TEXTURE_MIN_FILTER,r.LINEAR)):(r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,r.NEAREST),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,r.NEAREST));r.bindTexture(r.TEXTURE_2D,null);this.Cf=null;f.Uf=b.width;f.Tf=b.height;f.Dk=1;f.Qq=g;v.push(f);return t[g]=f};d.prototype.Sc=function(b,c,e,a,g){this.De();var f=this.H;this.Je&&(a=!1);var r=f.createTexture();f.bindTexture(f.TEXTURE_2D,r);f.texImage2D(f.TEXTURE_2D,0,f.RGBA,b,c,0,f.RGBA,a?f.UNSIGNED_SHORT_4_4_4_4:f.UNSIGNED_BYTE,null);g?(f.texParameteri(f.TEXTURE_2D,
f.TEXTURE_WRAP_S,f.REPEAT),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_T,f.REPEAT)):(f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_S,f.CLAMP_TO_EDGE),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_T,f.CLAMP_TO_EDGE));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.Cf=null;r.Uf=b;r.Tf=c;v.push(r);return r};d.prototype.KA=function(b,c){var e;this.De();var a=this.H;this.Je&&
(e=!1);a.bindTexture(a.TEXTURE_2D,c);a.pixelStorei(a.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);try{a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,e?a.UNSIGNED_SHORT_4_4_4_4:a.UNSIGNED_BYTE,b)}catch(g){console&&console.error&&console.error("Error updating WebGL texture: ",g)}a.bindTexture(a.TEXTURE_2D,null);this.Cf=null};d.prototype.deleteTexture=function(b){b&&("undefined"!==typeof b.Dk&&1<b.Dk?b.Dk--:(this.De(),b===this.Cf&&(this.H.bindTexture(this.H.TEXTURE_2D,null),this.Cf=null),b===this.ug&&(this.H.activeTexture(this.H.TEXTURE1),
this.H.bindTexture(this.H.TEXTURE_2D,null),this.H.activeTexture(this.H.TEXTURE0),this.ug=null),Ea(v,b),"undefined"!==typeof b.Qq&&delete t[b.Qq],this.H.deleteTexture(b)))};d.prototype.wd=function(b){if(b!==this.nm){var c=this.yc();c.type=6;this.nm=c.zd=b;this.Kb=!1}};ob=d})();
(function(){function d(a){if(a&&(a.getContext||a.dc)&&!a.c2runtime){a.c2runtime=this;var b=this;this.Xc=(this.xl=/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.gc=!!a.dc;this.Kr="undefined"!==typeof window.AppMobi||
this.gc;this.nd=!!window.c2cocoonjs;this.Ld=!!window.c2ejecta;this.nd&&(CocoonJS.App.onSuspended.addEventListener(function(){b.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){b.setSuspended(!1)}));this.Ld&&(document.addEventListener("pagehide",function(){b.setSuspended(!0)}),document.addEventListener("pageshow",function(){b.setSuspended(!1)}),document.addEventListener("resize",function(){b.setSize(window.innerWidth,window.innerHeight)}));this.Za=this.gc||this.nd||this.Ld;this.Oi=
/edge\//i.test(navigator.userAgent);this.Je=(/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent))&&!this.Oi;this.Nr=/tizen/i.test(navigator.userAgent);this.tl=/android/i.test(navigator.userAgent)&&!this.Nr&&!this.Je&&!this.Oi;this.Rr=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&!this.Je&&!this.Oi;this.rz=/ipad/i.test(navigator.userAgent);this.sh=this.Rr||this.rz||this.Ld;this.lo=(/chrome/i.test(navigator.userAgent)||
/chromium/i.test(navigator.userAgent))&&!this.Je&&!this.Oi;this.Jr=/amazonwebappplatform/i.test(navigator.userAgent);this.jz=/firefox/i.test(navigator.userAgent);this.nz=/safari/i.test(navigator.userAgent)&&!this.lo&&!this.Je&&!this.Oi;this.oz=/windows/i.test(navigator.userAgent);this.yl="undefined"!==typeof window.c2nodewebkit||"undefined"!==typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.Pr=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);
this.qz=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.Si=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.to=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.so=!!window.cr_windows10;this.Or=this.Pr||this.qz||this.to||this.so;this.hz=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.ul=this.tl&&!this.lo&&!this.xl&&!this.jz&&!this.Jr&&!this.Za;this.devicePixelRatio=
1;this.kh=this.Xc||this.xl||this.Kr||this.nd||this.tl||this.sh||this.Si||this.to||this.hz||this.Nr||this.Ld;this.kh||(this.kh=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));this.zl=!!(this.sh&&this.Xc&&window.webkit);"undefined"===typeof cr_is_preview||this.yl||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||(this.yl=!0);this.canvas=a;this.Sq=document.getElementById("c2canvasdiv");
this.C=this.H=null;this.Yn="(unavailable)";this.Ka=!1;this.ag=0;this.Ma=null;this.cl=!1;this.Js=this.Ks=0;this.canvas.oncontextmenu=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.onselectstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.gc&&(window.c2runtime=this);this.yl&&(window.ondragover=function(a){a.preventDefault();return!1},window.ondrop=function(a){a.preventDefault();return!1},window.nwgui&&window.nwgui.App.clearCache&&window.nwgui.App.clearCache());
this.ul&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=a.width;this.height=a.height;this.P=this.width;this.O=this.height;this.Mk=this.width;this.ti=this.height;this.yh=window.innerWidth;this.xh=window.innerHeight;this.da=!0;this.Ri=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.F=[];this.Sa=[];this.Ah={};this.Nc=[];this.Dn={};this.Ee=[];this.ai=[];this.Pm=[];this.Cw=[];this.Dw=[];this.Tr=this.Kt=null;this.Yf=
{};this.oo=this.zf=!1;this.Yc=0;this.no=this.qo=!1;this.Jd=[];this.Ni=!1;this.Hl=this.rp="";this.Bb=null;this.Ke="";this.Sj=this.Ht=!1;this.bl=[];this.$f=this.Zf=0;this.Bs=30;this.tn=this.ij=0;this.Nf=1;this.Mb=new $a;this.df=new $a;this.Vl=this.il=this.eg=this.Mg=this.wg=this.Jn=this.Cl=0;this.ye=null;this.Vk=[];this.Cn=[];this.Xk=-1;this.Ho=[[]];this.Op=this.Ml=0;this.lm(null);this.Jo=[];this.Ol=-1;this.Es=this.nj=0;this.Bo=!0;this.Ai=0;this.Tj=[];this.Lp=this.hp=-1;this.rg=!0;this.Ch=0;this.Pi=
!1;this.yA=0;this.Tg=null;this.Kc=this.yr=!1;this.Is=new da;this.Ro=new da;this.So=new da;this.Fj=[];this.Rd=new bb([]);this.Fp=new bb([]);this.Sg=[];this.ol={};this.tf={};this.lf={};this.$h={};this.Nq={};this.$r=this.Gl=this.ib=this.yb=this.Zr=this.Fl=this.Ba=null;this.Yh=this.uo=!1;this.Ln=[null,null];this.gg=0;this.Hn="";this.Ne={};this.Qj=this.Df=null;this.Jt="";this.Ul=[];this.gA()}}function l(a,b){return 128>=b?a[3]:256>=b?a[2]:512>=b?a[1]:a[0]}function q(){try{return!!window.indexedDB}catch(a){return!1}}
function m(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function n(a,b,c,h){try{var g=indexedDB.open("_C2SaveStates");g.onupgradeneeded=m;g.onerror=h;g.onsuccess=function(g){g=g.target.result;g.onerror=h;g.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,data:b}).onsuccess=c}}catch(k){h(k)}}function v(a,b,c){try{var h=indexedDB.open("_C2SaveStates");h.onupgradeneeded=m;h.onerror=c;h.onsuccess=function(h){h=h.target.result;h.onerror=c;var g=h.transaction(["saves"]).objectStore("saves").get(a);
g.onsuccess=function(){g.result?b(g.result.data):b(null)}}}catch(g){c(g)}}function t(){fa("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 b(a){var b,c={};for(b in a)!a.hasOwnProperty(b)||a[b]instanceof da||a[b]&&"undefined"!==typeof a[b].IB||"spriteCreatedDestroyCallback"!==b&&(c[b]=a[b]);return c}var c=window.requestAnimationFrame||window.mozRequestAnimationFrame||
window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;d.prototype.gA=function(){var a=this;if(this.zl)this.ky(function(b){a.aj(JSON.parse(b))},function(){alert("Error fetching data.js")});else{var b;this.Si?b=new ActiveXObject("Microsoft.XMLHTTP"):b=new XMLHttpRequest;var c="data.js";if(this.Pr||this.Si||this.to||this.so)c="data.json";b.open("GET",c,!0);var h=!1;if(!this.Za&&"response"in b&&"responseType"in b)try{b.responseType="json",h="json"===b.responseType}catch(g){h=
!1}if(!h&&"responseType"in b)try{b.responseType="text"}catch(k){}if("overrideMimeType"in b)try{b.overrideMimeType("application/json; charset=utf-8")}catch(f){}this.Si?b.onreadystatechange=function(){4===b.readyState&&a.aj(JSON.parse(b.responseText))}:(b.onload=function(){if(h)a.aj(b.response);else if(a.Ld){var c=b.responseText,c=c.substr(c.indexOf("{"));a.aj(JSON.parse(c))}else a.aj(JSON.parse(b.responseText))},b.onerror=function(a){ha("Error requesting "+c+":");ha(a)});b.send()}};d.prototype.dz=
function(){var a=this,b,c,h,g,k,f,p,r,e;this.qg=(!this.Za||this.Ld||this.Xc)&&this.HA&&!this.ul;0===this.vc&&this.sh&&(this.qg=!1);this.devicePixelRatio=this.qg?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.cc();0<this.vc&&this.setSize(window.innerWidth,window.innerHeight,!0);this.canvas.addEventListener("webglcontextlost",function(b){b.preventDefault();a.Gz();fa("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},
!1);this.canvas.addEventListener("webglcontextrestored",function(){a.C.Er();a.C.Ig(a.C.width,a.C.height,!0);a.yb=null;a.ib=null;a.Ln[0]=null;a.Ln[1]=null;a.Hz();a.da=!0;fa("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);try{this.Dx&&(this.nd||this.Ld||!this.Za)&&(b={alpha:!0,depth:!1,antialias:!1,powerPreference:"high-performance",failIfMajorPerformanceCaveat:!0},this.H=this.canvas.getContext("webgl2",b)||this.canvas.getContext("webgl",b)||this.canvas.getContext("experimental-webgl",
b))}catch(x){}if(this.H){if(b=this.H.getExtension("WEBGL_debug_renderer_info"))this.Yn=this.H.getParameter(b.UNMASKED_RENDERER_WEBGL)+" ["+this.H.getParameter(b.UNMASKED_VENDOR_WEBGL)+"]";this.Ka&&(this.Yn+=" [front-to-back enabled]");this.Za||(this.Zb=document.createElement("canvas"),jQuery(this.Zb).appendTo(this.canvas.parentNode),this.Zb.oncontextmenu=function(){return!1},this.Zb.onselectstart=function(){return!1},this.Zb.width=Math.round(this.Mk*this.devicePixelRatio),this.Zb.height=Math.round(this.ti*
this.devicePixelRatio),jQuery(this.Zb).css({width:this.Mk+"px",height:this.ti+"px"}),this.dt(),this.Zo=this.Zb.getContext("2d"));this.C=new ob(this.H,this.kh,this.Ka);this.C.Ig(this.canvas.width,this.canvas.height);this.C.dr=0!==this.wx;this.Ma=null;b=0;for(c=this.F.length;b<c;b++)for(k=this.F[b],h=0,g=k.X.length;h<g;h++)p=k.X[h],p.nb=this.C.Wn(p.id),p.Nd=this.C.ep(p.nb),this.Yh=this.Yh||this.C.yj(p.nb);b=0;for(c=this.Nc.length;b<c;b++){r=this.Nc[b];h=0;for(g=r.X.length;h<g;h++)p=r.X[h],p.nb=this.C.Wn(p.id),
p.Nd=this.C.ep(p.nb);r.Vd();h=0;for(g=r.ba.length;h<g;h++){e=r.ba[h];k=0;for(f=e.X.length;k<f;k++)p=e.X[k],p.nb=this.C.Wn(p.id),p.Nd=this.C.ep(p.nb),this.Yh=this.Yh||this.C.yj(p.nb);e.Vd()}}}else{if(0<this.vc&&this.gc){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.Ma=AppMobi.canvas.getContext("2d");try{this.Ma.samplingMode=this.Oa?"smooth":"sharp",this.Ma.globalScale=1,this.Ma.HTML5CompatibilityMode=!0,this.Ma.imageSmoothingEnabled=this.Oa}catch(d){}0!==
this.width&&0!==this.height&&(this.Ma.width=this.width,this.Ma.height=this.height)}this.Ma||(this.nd?(b={antialias:!!this.Oa,alpha:!0},this.Ma=this.canvas.getContext("2d",b)):(b={alpha:!0},this.Ma=this.canvas.getContext("2d",b)),this.um(this.Ma,this.Oa));this.Zo=this.Zb=null}this.Qt=function(b){a.Ra(!1,b)};window==window.top||this.Za||this.Or||this.Si||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==
typeof cr_is_preview&&(this.nd&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(fa("Reloading for continuous preview"),this.Hl="__c2_continuouspreview",this.Sj=!0),this.Pz&&!this.kh&&(jQuery(window).focus(function(){a.setSuspended(!1)}),jQuery(window).blur(function(){var b=window.parent;b&&b.document.hasFocus()||a.setSuspended(!0)})));window.addEventListener("blur",function(){a.Gg()});this.Za||(b=function(a){if(nb(a)&&document.activeElement&&
document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(b){}},"undefined"!==typeof PointerEvent?document.addEventListener("pointerdown",b):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",b):document.addEventListener("touchstart",b),document.addEventListener("mousedown",b));0===this.vc&&this.qg&&1<this.devicePixelRatio&&this.setSize(this.kb,this.jb,!0);this.Yt();this.Xy();this.go();this.R={}};
d.prototype.setSize=function(a,b,c){var h=0,g=0,k=0,p=0,p=0;if(this.yh!==a||this.xh!==b||c){this.yh=a;this.xh=b;var f=this.vc;if((k=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.Pi)&&!this.Xc)||0!==this.vc||c)k&&0<this.gg&&(f=this.gg),c=this.devicePixelRatio,4<=f?(k=this.kb/this.jb,a/b>k?(k*=b,5===f?(p=k*c/this.kb,1<p?p=Math.floor(p):1>p&&(p=1/Math.ceil(1/p)),k=this.kb*p/c,p=this.jb*p/c,h=(a-k)/2,g=(b-p)/2,a=k,b=p):(h=(a-k)/2,a=k)):
(p=a/k,5===f?(p=p*c/this.jb,1<p?p=Math.floor(p):1>p&&(p=1/Math.ceil(1/p)),k=this.kb*p/c,p=this.jb*p/c,h=(a-k)/2,g=(b-p)/2,a=k):g=(b-p)/2,b=p)):this.yl&&this.Pi&&0===this.mr&&(h=Math.floor((a-this.kb)/2),g=Math.floor((b-this.jb)/2),a=this.kb,b=this.jb),2>f&&(this.mi=c),this.Mk=Math.round(a),this.ti=Math.round(b),this.width=Math.round(a*c),this.height=Math.round(b*c),this.da=!0,this.iu?(this.P=this.width,this.O=this.height,this.Tc=!0):this.width<this.kb&&this.height<this.jb||1===f?(this.P=this.width,
this.O=this.height,this.Tc=!0):(this.P=this.kb,this.O=this.jb,this.Tc=!1,2===f?(k=this.kb/this.jb,f=this.yh/this.xh,f<k?this.P=this.O*f:f>k&&(this.O=this.P/f)):3===f&&(k=this.kb/this.jb,f=this.yh/this.xh,f>k?this.P=this.O*f:f<k&&(this.O=this.P/f))),this.Sq&&!this.Za&&(jQuery(this.Sq).css({width:Math.round(a)+"px",height:Math.round(b)+"px","margin-left":Math.floor(h)+"px","margin-top":Math.floor(g)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(a)+"px",height:Math.round(b)+
"px"})),this.canvas&&(this.canvas.width=Math.round(a*c),this.canvas.height=Math.round(b*c),this.Ld?(this.canvas.style.left=Math.floor(h)+"px",this.canvas.style.top=Math.floor(g)+"px",this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(b)+"px"):this.qg&&!this.Za&&(this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(b)+"px")),this.Zb&&(this.Zb.width=Math.round(a*c),this.Zb.height=Math.round(b*c),this.Zb.style.width=this.Mk+"px",this.Zb.style.height=
this.ti+"px"),this.C&&this.C.Ig(Math.round(a*c),Math.round(b*c)),this.gc&&this.Ma&&(this.Ma.width=Math.round(a),this.Ma.height=Math.round(b)),this.Ma&&this.um(this.Ma,this.Oa),this.Yt(),this.Rr&&!this.Xc&&window.scrollTo(0,0)}};d.prototype.Yt=function(){if(this.Gw&&0!==this.Yo){var a="portrait";2===this.Yo&&(a="landscape");try{screen.orientation&&screen.orientation.lock?screen.orientation.lock(a).catch(function(){}):screen.lockOrientation?screen.lockOrientation(a):screen.webkitLockOrientation?screen.webkitLockOrientation(a):
screen.mozLockOrientation?screen.mozLockOrientation(a):screen.msLockOrientation&&screen.msLockOrientation(a)}catch(b){console&&console.warn&&console.warn("Failed to lock orientation: ",b)}}};d.prototype.Gz=function(){this.C.Rw();this.uo=!0;var a,b,c;a=0;for(b=this.F.length;a<b;a++)c=this.F[a],c.rj&&c.rj()};d.prototype.Hz=function(){this.uo=!1;var a,b,c;a=0;for(b=this.F.length;a<b;a++)c=this.F[a],c.sj&&c.sj()};d.prototype.dt=function(){if(!this.Za){var a=(document.mozFullScreen||document.webkitIsFullScreen||
document.fullScreen||document.msFullscreenElement||this.Pi)&&!this.Xc?jQuery(this.canvas).offset():jQuery(this.canvas).position();a.position="absolute";jQuery(this.Zb).css(a)}};var e=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;d.prototype.setSuspended=function(a){var b;if(a&&!this.Ri)for(fa("[Construct 2] Suspending"),this.Ri=!0,-1!==this.hp&&e&&e(this.hp),-1!==this.Lp&&clearTimeout(this.Lp),
a=0,b=this.Tj.length;a<b;a++)this.Tj[a](!0);else if(!a&&this.Ri){fa("[Construct 2] Resuming");this.Ri=!1;this.Cl=Wa();this.wg=Wa();a=this.ij=this.il=0;for(b=this.Tj.length;a<b;a++)this.Tj[a](!1);this.Ra(!1)}};d.prototype.Hq=function(a){this.Tj.push(a)};d.prototype.hf=function(a){return this.Ul[a]};d.prototype.aj=function(a){a&&a.project||ha("Project model unavailable");a=a.project;this.name=a[0];this.kr=a[1];this.vc=a[12];this.mr=a[12];this.kb=a[10];this.jb=a[11];this.Ys=this.kb/2;this.Zs=this.jb/
2;this.Za&&!this.Ld&&(4<=a[12]||0===a[12])&&(fa("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.mr=this.vc=3);this.Vp=a[18];this.Ef=a[19];if(0===this.Ef){var b=new Image;b.crossOrigin="anonymous";this.yt(b,"loading-logo.png");this.Df={Nl:b}}else if(4===this.Ef){b=new Image;b.src="data:image/png;base64, ";
var c=new Image;c.src="data:image/png;base64, ";
var h=new Image;h.src="data:image/png;base64, ";
var g=new Image;g.src="data:image/png;base64, ";
var k=new Image;k.src="data:image/png;base64, ";
var p=new Image;p.src="data:image/png;base64, ";
var f=new Image;f.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAABACAMAAADCg1mMAAABmFBMVEUzMzOIjoM0NDSHjoKFjIFyeG89Pj1gZF5dYVs2NjY4ODhQU0+Ah3yBiH1XWlU5OjmEin86Ozp+hHpwdWx8gnh3fHNSVFCFjIB8gndNUEx6gHaEi4BcYFpFRkRkaGFjZ2Btcmpxd25qb2dTVlF5f3VVWFNISkc1NTVJS0hpbmZ9hHlAQkBUVlJAQT9na2Q8PDtGSEVQUk5xdm1KTElMTktMTkpobWU/QD51enFmamOCiX54fnRZXFdDREJ2fHI8PTxERUNWWVRrcGiAhntcX1leYls7PDpSVVE9Pjx/hntYXFZaXViDin5laWI7PDtvdGtPUU1obGRCREFCQ0FhZV9uc2tLTUqDin9PUk5eYlxscWk1NjVaXlhHSUZiZl9yeG50eXBlamJISUZXWlRRVE96gHVKTEg4ODdpbWZvdGx0enBERkN4fXN7gXdwdW0+Pz5bXllPUk1scGhrcGd9g3lISkZYW1UzNDNYW1ZjZ2E/QT+GjYJUVlFgZF03Nzc5OTlnbGRjaGBERUKIj4JGR0U3ODd2e3JjaGE5GY8RAAAGGUlEQVR4Xu2XVZMrNxCFdQbMzIzLzMzMzJeZmcIMfzvWaMjrWxunspO6qdV52G5199qaT9K0TL5gcXFxcXFxcXFxcXFxcXElc+6qsZDL+clVkh1dVeNmwMYB/CfiADgADoAD4AAE3ywhznJr8VZrzGmOD+Reytvf96jDTl9MT5V9euGgTytwNZbkvtGdZnWY9TUR0t9V7Gth456DsFzIDBND2a7x0Iszt/B5AN0OuS301LGkRNp9jaZ8v6+fXKKaAeFoFYrabujhlhdgkjuV8TcQ/WpqBRjQykI4Yc7sGBQlVCAO7DoLADBLR7Y+lhXz17SvHaVDEYjaPgcgFgBEAIFe5d9FfDBWZh6NlwzgOzGy9ottcmIecW09G0U8jw0H9ydCOL6rRBLoVXM+6DPuxLcuxdmElOtZsvVGIbWoAIYKSC3snLRXBvseNCwPB7MHEsICA1CC+PW+ILQvBkKPawFkMO4OEmf/bYhJGiqaSloguS4ZgDTHtrQ/ijbmPRRhZzN9dIgxG3Xy+hxuQfKwJLkHWbET8D5jyzMEj4sB8GBRrfKH0MWOxrMxLCjOfYhJlWFIrAUgtjZrH+f9sWLdONZP3SjOyCUDiGoHdzoAnxKLYFfPT6FAbT9C6uOIKRl3mV/AOjU2SWzSysdxygBglKi6gz5BdU8QoHyEBG5q2Z5aABjXZuSMIEPNGNxa1ovkZQNoMXWkKDUxjBm7bAag2/hamholaZ9Qpy9ssFgOJb18B20MQNyvRrYksV1PN6BcMTcgBfXQ21oAg/rAhwRj+FINDMDbfNkAjKYzCdBpP0GeGLoNBzWH+Epd9R4bImzx2MMKXjTp1U4JrxQAh1pkDTLRdYrHFbOIYp1tsBtYoS0DYrf28sgR6wAIAeVRNmBuNNfZbBvxhBpnelUgUexRP4NNhi0gGOUPMKgAaNUCBVw3sm8wpYRO6wRA5nHEPnWd8Q0gayEAMo4YIVuAvkGN07+CNO1hSfrQC8jQkMz6YS88DkNtWK4GkMJbIzuE95VQFI31AhhhpRNoIOy7XhArARRxj5B2/GqumEFAPb60ww3hIW1/zyvuD1JcaRqzqFZHNQAPqhRiPbVeAC+xRk1QwgzbThlLAfTBRwGI5opJpNWJ2ul59woUBqU2iLD6ohp3m/WqGoAXGXN2QAFwUi+AMANACsp7ySXBZimAEbp8rwAnMXQDHsU2YZz+GaL+In0j5nGP3ZogkypVA1hF0/lsFB31AritnpYkPM2ElCETSwGsYrASEjFJDHUgqlhhDEGSZ114DzLbBlRHWL0IwB+1V9dDOOoFEMIgi3owQHdoh6UAgmzwnK6vriHtSjOHGGkLsM2REP1bSLH4EtB5AYBNlM5nT7FdJ4CgPriJMxIU4y5LAXRot5ioUeA61u4ly3g8gzNt1ssxHOgHx34BgH52JzKrCfFH+uDPWgB7phlFVG8fkt+HOWIBAH25hQb2JNMS3HrBASIC84JiKIP7zM9iblc/227EjS3QfR6AkMJPRB9sKaEIFrTIkrcWwJzup4wbwxRmRzBoBYB0j75s8Wl1i47NqLFeEUljCg36L7G2+dRxswZORqpb6xne3XMAyENgQqscZb+aliGpX+p6iloAOp6fsaHvnlkk4BGsAJCIX6cb0pUDPqrzDCO9Rg+7/6Zo2t6LQFjz88CZseoRzMcoDtd6GuXzAMhroDRMnd9kNPyudrX0ur9SX34vhWsBtGL7g0DIXgG4b5zFOJAnVgCYLEKaejIiwdhu10aB+Eg4KkIy3WOzQKPRHFEmBgEZ2JDDUQmBZVIDgHQEgFS4OA/cCrKIcw6AxyPC07JeC8BpFyGtbgCSuYGUgBlLANg+uWUJkMJ3TfFsyQsgtDlsigl9I0GTv0VMSobTABL2afWRRxzmbLc9AiAQ3jFCA9teMTCVcZGjd9VtUnhXImSmKyJJkTtV3eUNHlBjTRcQpqdrjpd/5Z/1nKUV5wVZ58rSJ/KvlMdrqwD8LyR4xOkrDWAARXKlATxF75UGsIiIcGUBZCccUxBbyJUF4APgTRJrNDwskC9dto8Lsb9vyVxcXFxcXFxcXFxcXFxcfwEXKq8s5phFegAAAABJRU5ErkJggg==";
var r=new Image;r.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAAAgCAMAAADt/IAXAAACEFBMVEUzMzN9g3g0NDR7gXdzeG9CQ0E1NTWBh3w6OzpvdGx9g3k6OjlkaGFLTUqEi394fXRvdGt1enE2NjZ3fXM9Pj1iZl+AhntVWFNjZ2BWWVQ4OTh1e3FwdWxpbmZAQT83Nzc4ODdrcGhuc2tMTkpKTElNT0tRVE9aXVdPUU1PUk42NzZ6gHZLTUk7PDs5OjldYFp0eXB+hHlYW1Z0enBeYlx+hHp5f3WAh3w2NjVtcmpqb2dMTktISkd/hntHSUY4ODhmamNdYVtnbGRBQkA3ODdyd25yeG88PTs7OzpQUk5ERkNZXFdhZV5eYVuCiX03NzY1NjVOUU2Din5ERUM/QD9uc2pma2N+hXpUV1JFR0Q0NTRDREKIj4OCiH1XWlVGSEVfY1w9Pjw+Pz0/QD6Ein92fHI7PDpdYVp8gniFjIA8PTyAhnxgY11gZF5FRkRQU05YXFZna2NCREFSVVFAQkB/hXpXW1Vrb2dJSkc9PTxlamKFi4BISUZZXVeHjoJzeW9gZF1TVlFfYlxna2RVV1JcX1lbX1lNUEyDiX5tcmlzeXB8gndRVFBOUExpbWZSVFBNT0xhZF5laWJ4fXNwdW1RU09bXllDRUJqbmZfY12Ei4BUVlJbXlhKTEhTVVFcYFpeYltxdm1xd25obGU1NTSFjIFKS0iBiHxscWl9hHlscGhpbWVaXVhvc2ttcWk0NDPL7ZluAAAChElEQVR4Xu3SU6+kWRxG8fWibNvHtm3bdtu27bFtfsXJ6a5UMkklXdU5yZlMat09++Kf38Xmf1mmTJnmnwOAuN3FvpT1fhyw5OVdygBETYlekvStAEUfCKYDBXD+KTAWVQOxduDDMu13WcCx1dLCNpifFrZXRCBoXi4fyk4AggGnKqCmxOwFaDyaImBJ7td1TleK4KlubA1GfHXkdAOx658DnwzCbctAONb8AGTTewN2DOXZrYs+B/TVfhEadUkJgK9RqWszLWBxAfhXUgV8CYxpsyneUgBizx/orhTAqYYocOQsCqcXiEkgRwDluVVAPXGYow0AHyUARYBY089cJaA7pE4V4AV4pcejAeClCSwGxNk+VQiFAMccAKKxFzkfMNgA0ORge5bkDwy3ETZugidKWoC5KO5PAbB/Bl+7afETyWNQD/VP5N1+/Bh5HKhQvZ5HTqJaTAL4SgO/fwOP89MD3DKjrwKg9xBMFuK4S34AvwHM9xSvs74B5Na/mTpUp5MAzmigScvhkbr0AO0z5F4A4KIENF+S1ISaR1VWuFxFvNeAE2XEs2UnAZTOAMLVazOkDNgEsOUQnFADBIaADscNoH7YDBSVWwGUcUCJURGfN78HcCUAxwFMJ4DSO7aW1AHyBgtr0hi4LXaU96t1QJ6xAnjx0APwyF+M6Po2DqDi4CQ0FXrZUXl+EPMOJgC+FkLuGiWwbhRIHfBTpTDSvQGIudXan39ZBwj/age8WjuAcs0p1DbsQMQAwAtp1ll2HFDIxtqOpt/igJqpP5e3/ioGoKcqDYCXOivxukSSFv73e4HyLVeFqbQAe16Whf0EdI5rDaTc33ore9wBzTj/0TJlyvQPsTd0lRaZaakAAAAASUVORK5CYII=";
var e=new Image;e.src="data:image/png;base64, ";
var x=new Image;x.src="data:image/png;base64, ";
var d=new Image;d.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAABACAMAAADCg1mMAAABnlBMVEUzMzOIjoM0NDSHjoJyeG+FjIE2NjZISkeAhntNUEw4ODhVWFN1enFXWlWFjIA9Pj06Ozp4fnRxd26Ah3x6gHZtcmqEin98gnh5f3U8PTxobGWBiH1+hHo1NTVBQkBWWVQ9PjyEi4BMTkp9hHlna2Q5OjlDREJRVFBgZF6Din5laWJGSEU/QD5UVlJ7gXdscWlcX1lFRkRAQT9aXlhvdGtjZ2BCQ0FmamOCiX5wdm03Nzc7PDtHSEZJS0hTVlFpbmZYW1ZERkNuc2tdYVs3ODdCREF2fHJbXlliZl9QUk41NjVeYltZXFc/QD9YW1VQU09tcmlhZV9scGhKTEl3fHNeYlxERUNwdWw7PDpcYFpLTUpqb2d/hntpbWY+Pz5nbGR2e3JMTktWWlR9g3l0eXA8PDt8gndPUk44ODeDin9obGRaXViBiHxrcGhTVVFPUk1OUE1KTEhvdGx4fXNZXFZlamJyeG5RVE90enCGjYJkaGFgZF1rcGczNDNISkZISUZAQj9gY11fY11kaGBLTkpERUJVV1NGR0VUVlFwdW0dCiH/AAAHg0lEQVR4Xu3WVZPkOBYF4HOMycxYyMzMDM3MzMwwM8v4r3fKkpyZ1d3R2Rsxuw/j71HlSstH90rC/57H4/F4PB6Px+PxeDwe26/h98wmV/B71kaO4HftQ3UP/z8ej2cs3A1lKWxBagv3Yy4c3oB0JjwAqSv8ArDDi5AC4RNQguEo6gQGryWM9LnR+qHgcsL4+XgMUjgcAIB7h9OYOjVrrDhjc4htrxk3cMg6MT1rTPTY+JrrIyeNRMcJCzWrf54wZvv8ZUh2+O/AvYOTvw6ewaG5pWXDuFINwHGMeieEFvIWpBIfACX6IWW5A+ka+4Ag45C6+SmgpkM9hprwIwoJN5bbvXRE1jU4yD+J4zCLSzrJZ85YS9sMySQADCYpbI3hKKtPp8P3ElJ0lkL2bxA6OKKNmHQYMeCD/MGiiAP3uQshTHZAGHM+app9EDbJLCQf24A8eRHCSVIVUZBbqLlE/cZiPra6P8OreTg+U3+8mJ+3p3X+fCSA9rdMnjrx0nbGdk2zsOR/AWCHeuHMfKBSvcNkHo3mQny0vnox6p8lq3CMFul7shkb6N4i36oA1t9x1n8sak+avPvLOK+On49ODQ6xVSQ66X71e5pJTS4UDQB+Zt1viXAKjgojFoC4+mqrNcJhCKe5DteYrgqoJcs0Dg0yImNfyPB2YwCZyEQAApm8L5f7ASOv4AjE+QyNlpmVpfWWn7oAYD7JhPgVbZ30ywCGVDxt5F95QTzwMMdl0d0swdGppwz+EY40nwDYMCk7/w2neQmOFb4GgJ/kv+MWC2bGEi8tchSuESYg2aLP5ooMQlqir9wQAHN7kMjWAQhnOQKpn6ZKyB2YglTgsIgkZ0GapM8SAbAHUppMqQf8bHVmsNfKiuzlngPZ6VqvGEvI6KLcWuVZOCbE0i0wCcdjtk3IvWOVSQ2uPvZBeWr2Ox0ypEHSrvIPjQG0QanNWCv5xqAUuYB6VzgNpcLIHhDVaUOxfAyKAGY2IAXJl5AsXRb1GldkOv1RZmW27Th0wLRc9W3cYQsAlDOMOhnNsEusembvOcV+vc0CakYYQqOJ+g4ZZrghgBkNCnkeXzHk7tFqlWy4ipwCnjCOmnM0RAAdUM7Q3IPi46JM5bXo5asaznJTtHyf3AsfOdMyOIYdHhcrn1L5j4uZX0Gn+VQTBbOLhj3gpzLqJbkI11yn1RBACS5y4OsB+FGnQt2CK9CpAWv8C2pGGdGcAHqg2PTB1S6LroWte05L9AEjotMNlXWWC2J3APr5HgD2eUqdfgnRabvArFPOlinOQ6Wqs/3cqAbFIqOo12QA2pR/MPgrX2MAl9n+ZUS7qLHIgWYCQM5ZmAJfAWN8A2DOjFjq2DoHYInnDpvW2chCqu5iumkBuBPZAILccerLQIOFEMnetWAMjntk4McD2Cz0UmoM4ATjOCJJG3UyPN9UAD3sAbRiUXPCiAJtvOCmfBNAmuedMLqBgN5bhnCTl4EurjlhZJ3fGccRle3ZDGk+vggA+f8mgH2dpenqrUXbtkuNAXR/GcDTxm2yl6NNBWAzDtgsiApfASZ5G4IV0TthRdrFY2nAz9OQ1jkJ7HNJ9EwXEGcFX9L6P0foqwAIkPd+NIBtRoLa1/cAP4dwRIltqGOy0lQA2gxjmBTxbtIQZSBN8AH8nHQee9pq4TOXIK0yBcTFRfo41xHT2/F10ThzGoAIV38wgFiE/m9tgqPM4Ii7XEHNdfJhUwHgGbvRLi8z9/XOeaagVNmBgrweTdOPFOch/ZJk/rq87OQZxy778A1Rnf90miYIV0tX7PsBPGcc3wpgQ+cYXJUuC9hhGjVLHEJzATzntfMcVhvC826eghJlSSvK681lFlp4Fq4CBw8YVhtCtKPxmB5YvgFXjt3OwTwB1xr/8f0ARngSiqZOAeUjD+ovBccAm2YMLoM9TQYQ00uX+EEV1rPHtOFK8V/qwlWeSXZzH64HXE4wD8cTVrMRC3XmyUpd2H4Ax3R9ClJnhmPfD+A441DGeSSAQbZbENSFPsdpKLeoDzQZALaYMwNq2Jd6VIarh3FehnCNCY7CFfiUjdx0++29e3RoagEmNAi7cmVu8M1D+cwwJ5rYAzbpltWgTr5oeEE5xQ4V531RDYvkIIRKkZNoNoB9urPHJDmMGpt0Dz4/Gy77MMhxSHHKbiiHdDHY1crEKgA8HDflHAIppmznbwn68k0EgDRbgxagLaR5NsVqwwvQleHaAADtVpaGJnuG7+YB7AV7eXev6QBGySCkBXIJNeVeXoFkZVhAnXHyGKRL5HUcmqLaQ/tLpC/xessk+2RuFz+SpcS/s2R8AM0EEAiRrblcL5kOpPmu8QUYLZGpC4kieXoOQjVCPX7hboa8YqHpALQLRgySNmHMo86p0BkoPaE21KmETkMZCw2r4i6pMOdWQiZJ33I/FK3bMEnz42AZQijU4ixmKA3AHctDKR+P6+TM6UUgGLp25AXYGMnpZObkK7hadu6QnBm2IW2HqlC6QmtwDYf68ZvT5qOBo0P5fBk/worG8G1Wy0UcsdESw5c8Ho/H4/F4PB6Px+PxeDwej8fzH+ab6YZ24mCxAAAAAElFTkSuQmCC";
var y=new Image;y.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAAAgCAMAAADt/IAXAAABblBMVEUzMzM2NjY4ODheYlxAQkA/QD58gng0NDQ5Ojl6gHaCiX59hHlMTktZXFc9Pj15f3VkaGFdYVuEi39WWVQ8PTxgZF5FRkRtcmo1NTVlaWJscWl4fnSBiH1xdm5iZmBqb2c9Pjx2fHJcYFpYW1Y6Ozp9g3lHSEZcX1mAhnt+hXo3NzdSVFCHjoJGSEVAQT9CQ0FERUNZXFZobWVERkOAh3xUVlI8PDt1enF3fHNiZl9DREJ2e3I3ODdRVE+FjIE4ODdOUU2Din9KTElVWFNJS0hxdm1MTkpna2RbX1lQUk5XWlV7gXd8gndrcGhuc2tfY11tcml0eXBNUEyDin5yeG9ISkc1NjVmamOEi4BKTEhvdGx6gHVLTUp0enBwdWxNT0x4fXR4fXNVV1M+Pz5aXVhbXlhPUk5vdGs7PDs/QD9pbmZTVVGIj4NXWlRgZF1pbWY5OTlhZV9TVlFlamJzeXB/hntscWg0NDNeYluBiHw6JP9nAAAC8ElEQVR4Xu3R1YpsORhA4bVdyt3dXdvd3e2467jL2w+himloai7m6nCgvos/yWYTFoSv3tTUlFzky/pxhy+rGOQrZ0YM4NsCQEY7cAF80wEGMZTHwKz4gZkthNk7Sz8PA6xclOZmxBqA3stA4gkrb9ZzHviQKiUUibF2Rre8JiDlX+s7u0D4zN3XPUq0GDs6upOB4zKQcwCabbR0QG0qgOKlsgd839wGnq8DSKVK0Zyxu5B/FV4O587A54X+q3hLw5dI3ajsv25JWiTOSGc4YwZDR3WiF3FV3i0VwGldb8uDRCy3YmqRCJBWIGjNdyFwgpHUoJLxAEvPWKwBOxkvrD1aA9h+ChBKE7yaBT755VHAnAH4HBJQVQF51UTgRQHgNEDhuQG0/UGczTaw+Z0TKDaXYXMJDkMVBeINyARgXj3WkDck+F1FdmQd4EwhqLaGwFYEwZUdBbwD8MX4V7KNIK3+BHBzSe4DQqSAMwfwdtUA2NDgdsMkFVY9GMkiNCIELUIu1k+BvQKNGEtdvC4EAsPzgBsILTAyCnCNd8Lgh/jHj6ujADXJ2NVnxpHOOQC3H8EWn08P5BJYWngJMG3jUCF8QSwArD8h/ph3CpbKiOT82ZGRCIX+K8Bn/dJxu+1xwJAx/1uEyq8TArb2Gl5QXJU8wFw5NYBS8TgLLNtyLYrmCercu91RKGQQzOjDgOyGef8EyE0JQFrDs4nQ358QkHXEb2Dxt+sBQN6rA2mfByG10AcS4m7hfQ/g8A/UpAQYQ+1hQMsB4B4/AbkDgLTC2QmAaXcmBOBxGIClI3T9aaBshxBc/ksgbz+DbgPKwzK4PVvQj8vU7855GFBPBgzK848W+bOXhe1aGC6rWWTdFyV4HWNSQD59PyFRBoxEC6GtS4Aq5ntRvjtfdThcQDRU1asLEvQUWHgD0PsLIJy4SqYWXzip114Cu55aNdUBZk/+LtX2DdiMAAQthKdu/q/bOmNrTCZFJx+NZSaYmpqamvoHZD1hKSAldSkAAAAASUVORK5CYII=";
this.Df={Nl:[b,c,h,g],Vz:[k,p,f,r],LA:[e,x,d,y]}}this.nj=a[21];this.Ul=nc();this.re=new X(this);b=0;for(c=a[2].length;b<c;b++)f=a[2][b],h=this.hf(f[0]),pb(f,h.prototype),r=new h(this),r.Bm=f[1],r.Bf=f[2],r.NB=f[5],r.Cs=f[9],r.K&&r.K(),this.plugins.push(r);this.Ul=nc();b=0;for(c=a[3].length;b<c;b++){f=a[3][b];k=this.hf(f[1]);r=null;h=0;for(g=this.plugins.length;h<g;h++)if(this.plugins[h]instanceof k){r=this.plugins[h];break}e=new r.aa(r);e.name=f[0];e.L=f[2];e.ko=f[3].slice(0);e.JA=f[3].length;e.Hw=
f[4];e.ry=f[5];e.la=f[11];e.L?(e.Hh=[],e.Fe=this.Ai++,e.Qa=null):(e.Hh=null,e.Fe=-1,e.Qa=[]);e.$k=null;e.eh=null;e.er=null;e.Xb=!1;e.Ic=null;f[6]?(e.Xj=f[6][0],e.Hm=f[6][1],e.Yj=f[6][2]):(e.Xj=null,e.Hm=0,e.Yj=0);f[7]?e.Gc=f[7]:e.Gc=null;e.index=b;e.j=[];e.Rk=[];e.Ye=[new qb(e)];e.de=0;e.kd=null;e.Ww=0;e.Uh=!0;e.Qm=rb;e.sr=sb;e.Ey=tb;e.V=ub;e.zj=vb;e.Aj=xb;e.Hf=yb;e.kl=zb;e.Nn=Ab;e.Rn=Bb;e.fd=Cb;e.Sn=Db;e.pi=new hb(this.kb,this.jb);e.wk=!0;e.xk=!1;e.R={};e.toString=Eb;e.Sa=[];h=0;for(g=f[8].length;h<
g;h++){x=f[8][h];d=this.hf(x[1]);y=null;k=0;for(p=this.Sa.length;k<p;k++)if(this.Sa[k]instanceof d){y=this.Sa[k];break}y||(y=new d(this),y.Tl=[],y.Sl=new da,y.K&&y.K(),this.Sa.push(y),oc&&y instanceof oc&&(this.Kt=y),pc&&y instanceof pc&&(this.Tr=y));-1===y.Tl.indexOf(e)&&y.Tl.push(e);k=new y.aa(y,e);k.name=x[0];k.la=x[2];k.K();e.Sa.push(k)}e.global=f[9];e.po=f[10];e.X=[];h=0;for(g=f[12].length;h<g;h++)e.X.push({id:f[12][h][0],name:f[12][h][1],nb:-1,Nd:!1,Qb:!0,index:h});e.Km=f[13];this.Vp&&!e.L&&
!e.po&&r.Bf||e.K();e.name&&(this.types[e.name]=e);this.F.push(e);r.Bm&&(h=new r.S(e),h.uid=this.nj++,h.it=this.Es++,h.ng=0,h.Ei=Fb,h.toString=Gb,h.A=f[14],h.K(),e.j.push(h),this.Ne[h.uid.toString()]=h)}b=0;for(c=a[4].length;b<c;b++)for(k=a[4][b],p=this.F[k[0]],h=1,g=k.length;h<g;h++)f=this.F[k[h]],f.Qa.push(p),p.Hh.push(f);b=0;for(c=a[28].length;b<c;b++){k=a[28][b];p=[];h=0;for(g=k.length;h<g;h++)p.push(this.F[k[h]]);h=0;for(g=p.length;h<g;h++)p[h].Xb=!0,p[h].Ic=p}if(0<this.Ai)for(b=0,c=this.F.length;b<
c;b++)if(f=this.F[b],!f.L&&f.Qa.length){f.$k=Array(this.Ai);f.eh=Array(this.Ai);f.er=Array(this.Ai);e=[];h=y=d=x=0;for(g=f.Qa.length;h<g;h++)for(r=f.Qa[h],f.$k[r.Fe]=x,x+=r.JA,f.eh[r.Fe]=d,d+=r.Hw,f.er[r.Fe]=y,y+=r.ry,k=0,p=r.X.length;k<p;k++)e.push(xa({},r.X[k]));f.X=e.concat(f.X);h=0;for(g=f.X.length;h<g;h++)f.X[h].index=h}b=0;for(c=a[5].length;b<c;b++)f=a[5][b],h=new Hb(this,f),this.Ah[h.name]=h,this.Nc.push(h);b=0;for(c=a[6].length;b<c;b++)f=a[6][b],h=new Ib(this,f),this.Dn[h.name]=h,this.Ee.push(h);
b=0;for(c=this.Ee.length;b<c;b++)this.Ee[b].$a();b=0;for(c=this.Ee.length;b<c;b++)this.Ee[b].Sp();b=0;for(c=this.Pm.length;b<c;b++)this.Pm[b].$a();R(this.Pm);this.Fw=a[7];this.Hn=a[8];this.bd=a[9];this.mi=1;this.Dx=a[13];this.Oa=a[14];this.Uq=a[15];this.HA=a[17];this.Yo=a[20];this.Gw=0<this.Yo;this.Pz=a[22];this.Tc=this.iu=a[23];this.wx=a[24];this.Wz=a[25];this.Ka=a[27]&&!this.Je;this.Cm=Date.now();R(this.Ul);this.dz()};var a=!1,g=0,f=[];d.prototype.cA=function(a,b){function c(){g--;h.xs()}var h=
this;a.addEventListener("load",c);a.addEventListener("error",c);f.push([a,b]);this.xs()};d.prototype.xs=function(){for(var a;f.length&&100>g;)g++,a=f.shift(),this.yt(a[0],a[1])};d.prototype.Vm=function(b,c){b.cocoonLazyLoad=!0;b.onerror=function(c){a=b.Pq=!0;console&&console.error&&console.error("Error loading image '"+b.src+"': ",c)};this.Ld?b.src=c:b.src||("undefined"!==typeof XAPKReader?XAPKReader.get(c,function(a){b.src=a},function(h){a=b.Pq=!0;console&&console.error&&console.error("Error extracting image '"+
c+"' from expansion file: ",h)}):(b.crossOrigin="anonymous",this.cA(b,c)));this.ai.push(b)};d.prototype.ny=function(a){var b,c;b=0;for(c=this.ai.length;b<c;b++)if(this.ai[b].Sw===a)return this.ai[b];return null};var r=0,w=!1;d.prototype.Xy=function(){this.Tg&&(r=this.Tg.uA(this.Fw))};d.prototype.Lq=function(){var a=r,b=0,c=0,h=!0,g,k,c=0;for(g=this.ai.length;c<g;c++){k=this.ai[c];var f=k.un;if(!f||0>=f)f=5E4;a+=f;k.src&&(k.complete||k.loaded)&&!k.Pq?b+=f:h=!1}h&&this.Wz&&this.Tg&&(w||(this.Tg.zA(),
w=!0),c=this.Tg.Fy(),b+=c,c<r&&(h=!1));this.Od=0==a?1:b/a;return h};var u=!1;d.prototype.go=function(){if(this.Ma||this.C){var b=this.Ma||this.Zo;this.Zb&&this.dt();var h=window.innerWidth,k=window.innerHeight;this.yh===h&&this.xh===k||this.setSize(h,k);this.Od=0;this.Yr=-1;var g=this;if(this.Lq()&&(4!==this.Ef||u))this.Yy();else{k=Date.now()-this.Cm;if(b){var f=this.width,p=this.height,h=this.devicePixelRatio;if(3>this.Ef&&(this.nd||500<=k&&this.Yr!=this.Od)){b.clearRect(0,0,f,p);var k=f/2,p=p/2,
f=0===this.Ef&&this.Df.Nl.complete,e=40*h,r=0,x=80*h,d;if(f){var y=this.Df.Nl,x=y.width*h;d=y.height*h;e=x/2;r=d/2;b.drawImage(y,C(k-e),C(p-r),x,d)}1>=this.Ef?(k=C(k-e)+.5,p=C(p+(r+(f?12*h:0)))+.5,b.fillStyle=a?"red":"DodgerBlue",b.fillRect(k,p,Math.floor(x*this.Od),6*h),b.strokeStyle="black",b.strokeRect(k,p,x,6*h),b.strokeStyle="white",b.strokeRect(k-1*h,p-1*h,x+2*h,8*h)):2===this.Ef&&(b.font=this.Ld?"12pt ArialMT":"12pt Arial",b.fillStyle=a?"#f00":"#999",b.aC="middle",h=Math.round(100*this.Od)+
"%",f=b.measureText?b.measureText(h):null,b.fillText(h,k-(f?f.width:0)/2,p));this.Yr=this.Od}else if(4===this.Ef){this.Bx(b);c?c(function(){g.go()}):setTimeout(function(){g.go()},16);return}}setTimeout(function(){g.go()},this.nd?10:100)}}};var k=-1,h="undefined"===typeof cr_is_preview?200:0,p=!0,y=!1,V=0,x=0,W="undefined"===typeof cr_is_preview?3E3:0,T=null,B=null,P=0;d.prototype.Bx=function(b){if(!u){for(var c=Math.ceil(this.width),g=Math.ceil(this.height),f=this.Df.Nl,e=this.Df.Vz,r=this.Df.LA,
d=0;4>d;++d)if(!f[d].complete||!e[d].complete||!r[d].complete)return;0===P&&(k=Date.now());var d=Date.now(),m=!1,t=b,w,n;p||y?(b.clearRect(0,0,c,g),T&&T.width===c&&T.height===g||(T=document.createElement("canvas"),T.width=c,T.height=g,B=T.getContext("2d")),t=B,m=!0,p&&1===P&&(k=Date.now())):b.globalAlpha=1;t.fillStyle="#333333";t.fillRect(0,0,c,g);256<this.ti?(w=Fa(.22*g,105,.6*c),n=.25*w,t.drawImage(l(e,w),.5*c-w/2,.2*g-n/2,w,n),n=w=Math.min(.395*g,.95*c),t.drawImage(l(f,w),.5*c-w/2,.485*g-n/2,w,
n),w=Fa(.22*g,105,.6*c),n=.25*w,t.drawImage(l(r,w),.5*c-w/2,.868*g-n/2,w,n),t.fillStyle="#3C3C3C",w=c,n=Math.max(.005*g,2),t.fillRect(0,.8*g-n/2,w,n),t.fillStyle=a?"red":"#E0FF65",w=c*this.Od,t.fillRect(.5*c-w/2,.8*g-n/2,w,n)):(n=w=.55*g,t.drawImage(l(f,w),.5*c-w/2,.45*g-n/2,w,n),t.fillStyle="#3C3C3C",w=c,n=Math.max(.005*g,2),t.fillRect(0,.85*g-n/2,w,n),t.fillStyle=a?"red":"#E0FF65",w=c*this.Od,t.fillRect(.5*c-w/2,.85*g-n/2,w,n));m&&(p?b.globalAlpha=0===P?0:Math.min((d-k)/300,1):y&&(b.globalAlpha=
Math.max(1-(d-x)/300,0)),b.drawImage(T,0,0,c,g));p&&300<=d-k&&2<=P&&(p=!1,V=d);!p&&d-V>=W&&!y&&1<=this.Od&&(y=!0,x=d);if(y&&d-x>=300+h||"undefined"!==typeof cr_is_preview&&1<=this.Od&&500>Date.now()-k)u=!0,y=p=!1,this.Df=B=T=null;++P}};d.prototype.Yy=function(){this.Zb&&(this.canvas.parentNode.removeChild(this.Zb),this.Zb=this.Zo=null);this.Cm=Date.now();this.wg=Wa();var a,b,c;if(this.Vp)for(a=0,b=this.F.length;a<b;a++)c=this.F[a],c.L||c.po||!c.za.Bf||c.K();else this.rg=!1;a=0;for(b=this.Nc.length;a<
b;a++)this.Nc[a].Tw();2<=this.vc&&(a=this.kb/this.jb,b=this.width/this.height,this.mi=2!==this.vc&&b>a||2===this.vc&&b<a?this.height/this.jb:this.width/this.kb);this.kr?this.Ah[this.kr].Dp():this.Nc[0].Dp();this.Vp||(this.Ch=1,this.trigger(X.prototype.k.pq,null),window.C2_RegisterSW&&window.C2_RegisterSW());navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();a=0;for(b=this.F.length;a<b;a++)c=this.F[a],c.Ls&&c.Ls();document.hidden||document.webkitHidden||document.mozHidden||
document.msHidden?window.cr_setSuspended(!0):this.Ra(!1);this.gc&&AppMobi.webview.execute("onGameReady();")};d.prototype.Ra=function(a,b,h){if(this.Ba){var g=Wa();if(h||!this.Ri||a){a||(c?this.hp=c(this.Qt):this.Lp=setTimeout(this.Qt,this.kh?1:16));b=b||g;var k=this.vc;((h=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.Xc)||this.Pi)&&0<this.gg&&(k=this.gg);if(0<k){var k=window.innerWidth,f=window.innerHeight;this.yh===k&&this.xh===
f||this.setSize(k,f)}this.Za||(h?this.cl||(this.cl=!0):this.cl?(this.cl=!1,0===this.vc&&this.setSize(Math.round(this.Ks/this.devicePixelRatio),Math.round(this.Js/this.devicePixelRatio),!0)):(this.Ks=this.width,this.Js=this.height));this.rg&&(h=this.Lq(),this.Ch=this.Od,h&&(this.rg=!1,this.Od=1,this.trigger(X.prototype.k.pq,null),window.C2_RegisterSW&&window.C2_RegisterSW()));this.yz(b);!this.da&&!this.nd||this.uo||this.Sj||a||(this.da=!1,this.C?this.mc():this.ee(),this.Qj&&(this.canvas&&this.canvas.toDataURL&&
(this.Jt=this.canvas.toDataURL(this.Qj[0],this.Qj[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.Jt),this.trigger(X.prototype.k.lv,null)),this.Qj=null));this.LB||(this.Mg++,this.eg++,this.il++);this.ij+=Wa()-g}}};d.prototype.yz=function(a){var b,c,h,g,k,f,p,e;1E3<=a-this.wg&&(this.wg+=1E3,1E3<=a-this.wg&&(this.wg=a),this.Jn=this.il,this.il=0,this.tn=this.ij,this.ij=0);b=0;0!==this.Cl&&(b=a-this.Cl,0>b&&(b=0),this.$f=b/=1E3,.5<this.$f?this.$f=0:this.$f>1/this.Bs&&(this.$f=1/this.Bs));this.Cl=
a;this.Zf=this.$f*this.Nf;this.Mb.add(this.Zf);this.df.add(b);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.Pi)&&!this.Xc;2<=this.vc||a&&0<this.gg?(b=this.kb/this.jb,c=this.width/this.height,h=this.vc,a&&0<this.gg&&(h=this.gg),this.mi=2!==h&&c>b||2===h&&c<b?this.height/this.jb:this.width/this.kb,this.Ba&&(this.Ba.sp(this.Ba.scrollX),this.Ba.tp(this.Ba.scrollY))):this.mi=this.qg?this.devicePixelRatio:1;this.cc();this.Yc++;this.re.kA();
this.Yc--;this.cc();this.Yc++;c=this.Is.cf();a=0;for(b=c.length;a<b;a++)c[a].WB();a=0;for(b=this.F.length;a<b;a++)if(f=this.F[a],!f.L&&(f.Sa.length||f.Qa.length))for(c=0,h=f.j.length;c<h;c++)for(p=f.j[c],g=0,k=p.T.length;g<k;g++)p.T[g].Ra();a=0;for(b=this.F.length;a<b;a++)if(f=this.F[a],!f.L&&(f.Sa.length||f.Qa.length))for(c=0,h=f.j.length;c<h;c++)for(p=f.j[c],g=0,k=p.T.length;g<k;g++)e=p.T[g],e.et&&e.et();c=this.Ro.cf();a=0;for(b=c.length;a<b;a++)c[a].Ra();this.Yc--;this.Zy();for(a=0;this.ye&&10>
a++;)this.cr(this.ye);a=0;for(b=this.Ee.length;a<b;a++)this.Ee[a].ao=!1;this.Ba.bg&&this.Ba.bg.mb();R(this.Fj);this.Bo=!1;this.Yc++;a=0;for(b=this.F.length;a<b;a++)if(f=this.F[a],!f.L&&(f.Sa.length||f.Qa.length))for(c=0,h=f.j.length;c<h;c++)for(p=f.j[c],g=0,k=p.T.length;g<k;g++)e=p.T[g],e.Zj&&e.Zj();c=this.So.cf();a=0;for(b=c.length;a<b;a++)c[a].Zj();this.Yc--};d.prototype.Gg=function(){var a,b,c,h,g,k,f,p,e;a=0;for(b=this.F.length;a<b;a++)if(f=this.F[a],!f.L)for(c=0,h=f.j.length;c<h;c++)if(p=f.j[c],
p.Gg&&p.Gg(),p.T)for(g=0,k=p.T.length;g<k;g++)e=p.T[g],e.Gg&&e.Gg()};d.prototype.cr=function(a){var b=this.Ba;this.Ba.AA();var c,h,g;if(this.C)for(c=0,h=this.F.length;c<h;c++)g=this.F[c],g.L||!g.ak||g.global&&0!==g.j.length||-1!==a.Ki.indexOf(g)||g.ak();b==a&&R(this.re.Fc);R(this.Fj);this.nt(!0);a.Dp();this.nt(!1);this.Bo=this.da=!0;this.cc()};d.prototype.nt=function(a){var b,c,h,g,k,f,p,e,r;b=0;for(c=this.Sa.length;b<c;b++)h=this.Sa[b],a?h.oj&&h.oj():h.qj&&h.qj();b=0;for(c=this.F.length;b<c;b++)if(h=
this.F[b],h.global||h.za.Bm)for(g=0,k=h.j.length;g<k;g++)if(f=h.j[g],a?f.oj&&f.oj():f.qj&&f.qj(),f.T)for(p=0,e=f.T.length;p<e;p++)r=f.T[p],a?r.oj&&r.oj():r.qj&&r.qj()};d.prototype.Gp=function(a){this.Ro.add(a)};d.prototype.DA=function(a){this.So.add(a)};d.prototype.hg=function(a){return a&&-1!==a.mj?this.$f*a.mj:this.Zf};d.prototype.ee=function(){this.Ba.ee(this.Ma);this.gc&&this.Ma.present()};d.prototype.mc=function(){this.Ka&&(this.ag=1,this.Ba.wf(this.C));this.Ba.mc(this.C);this.C.Yz()};d.prototype.uk=
function(a){a&&this.Vk.push(a)};d.prototype.mt=function(a){Ea(this.Vk,a)};d.prototype.jg=function(a){a=a.toString();return this.Ne.hasOwnProperty(a)?this.Ne[a]:null};var E=[];d.prototype.gf=function(a){var b,c;b=a.type.name;var h=null;if(this.Yf.hasOwnProperty(b)){if(h=this.Yf[b],h.contains(a))return}else h=E.length?E.pop():new da,this.Yf[b]=h;h.add(a);this.zf=!0;if(a.Xb)for(b=0,c=a.siblings.length;b<c;b++)this.gf(a.siblings[b]);this.oo&&h.Zh.push(a);this.no||(this.Yc++,this.trigger(Object.getPrototypeOf(a.type.za).k.fq,
a),this.Yc--)};d.prototype.cc=function(){if(this.zf){var a,b,c,h,g,k;this.oo=!0;c=0;for(g=this.Jd.length;c<g;++c)for(a=this.Jd[c],b=a.type,b.j.push(a),h=0,k=b.Qa.length;h<k;++h)b.Qa[h].j.push(a),b.Qa[h].Uh=!0;R(this.Jd);this.Zu();Va(this.Yf);this.zf=this.oo=!1}};d.prototype.Zu=function(){for(var a in this.Yf)this.Yf.hasOwnProperty(a)&&this.su(this.Yf[a])};d.prototype.su=function(a){var b=a.cf(),c=b[0].type,h,g,k,f,p,e;Xa(c.j,a);c.Uh=!0;0===c.j.length&&(c.xk=!1);h=0;for(g=c.Qa.length;h<g;++h)e=c.Qa[h],
Xa(e.j,a),e.Uh=!0;h=0;for(g=this.re.Fc.length;h<g;++h)if(p=this.re.Fc[h],p.qc.hasOwnProperty(c.index)&&Xa(p.qc[c.index].He,a),!c.L)for(k=0,f=c.Qa.length;k<f;++k)e=c.Qa[k],p.qc.hasOwnProperty(e.index)&&Xa(p.qc[e.index].He,a);if(p=b[0].u){if(p.dd)for(k=p.j,h=0,g=k.length;h<g;++h)f=k[h],a.contains(f)&&(f.Ha(),p.ac.update(f,f.Ac,null),f.Ac.set(0,0,-1,-1));Xa(p.j,a);p.Kj(0)}for(h=0;h<b.length;++h)this.ru(b[h],c);a.clear();E.push(a);this.da=!0};d.prototype.ru=function(a,b){var c,h,g;c=0;for(h=this.Vk.length;c<
h;++c)this.Vk[c](a);a.gd&&b.pi.update(a,a.gd,null);(c=a.u)&&c.Ph(a,!0);if(a.T)for(c=0,h=a.T.length;c<h;++c)g=a.T[c],g.Oe&&g.Oe(),g.behavior.Sl.remove(a);this.Is.remove(a);this.Ro.remove(a);this.So.remove(a);a.Oe&&a.Oe();this.Ne.hasOwnProperty(a.uid.toString())&&delete this.Ne[a.uid.toString()];this.Vl--;100>b.Rk.length&&b.Rk.push(a)};d.prototype.Lk=function(a,b,c,h){if(a.L){var g=C(Math.random()*a.Hh.length);return this.Lk(a.Hh[g],b,c,h)}return a.kd?this.uf(a.kd,b,!1,c,h,!1):null};var F=[];d.prototype.uf=
function(a,b,c,h,g,k){var f,p,e,r;if(!a)return null;var x=this.F[a[1]],d=x.za.Bf;if(this.rg&&d&&!x.po||d&&!this.C&&11===a[0][11])return null;var y=b;d||(b=null);var w;x.Rk.length?(w=x.Rk.pop(),w.zc=!0,x.za.S.call(w,x)):(w=new x.za.S(x),w.zc=!1);!c||k||this.Ne.hasOwnProperty(a[2].toString())?w.uid=this.nj++:w.uid=a[2];this.Ne[w.uid.toString()]=w;w.it=this.Es++;w.ng=x.j.length;f=0;for(p=this.Jd.length;f<p;++f)this.Jd[f].type===x&&w.ng++;w.Ei=Fb;w.toString=Gb;e=a[3];if(w.zc)Va(w.R);else{w.R={};if("undefined"!==
typeof cr_is_preview)for(w.Hr=[],w.Hr.length=e.length,f=0,p=e.length;f<p;f++)w.Hr[f]=e[f][1];w.xb=[];w.xb.length=e.length}f=0;for(p=e.length;f<p;f++)w.xb[f]=e[f][0];if(d){var u=a[0];w.x=ia(h)?u[0]:h;w.y=ia(g)?u[1]:g;w.z=u[2];w.width=u[3];w.height=u[4];w.depth=u[5];w.n=u[6];w.opacity=u[7];w.nc=u[8];w.oc=u[9];w.ec=u[10];f=u[11];!this.C&&x.X.length&&(w.ec=f);w.qi=jb(w.ec);this.H&&kb(w,w.ec,this.H);if(w.zc){f=0;for(p=u[12].length;f<p;f++)for(e=0,r=u[12][f].length;e<r;e++)w.Ta[f][e]=u[12][f][e];w.Pa.set(0,
0,0,0);w.gd.set(0,0,-1,-1);w.Ac.set(0,0,-1,-1);w.Hc.Lj(w.Pa);R(w.kn)}else{w.Ta=u[12].slice(0);f=0;for(p=w.Ta.length;f<p;f++)w.Ta[f]=u[12][f].slice(0);w.ta=[];w.kf=[];w.kf.length=x.X.length;w.Pa=new ua(0,0,0,0);w.gd=new ua(0,0,-1,-1);w.Ac=new ua(0,0,-1,-1);w.Hc=new va;w.kn=[];w.D=Kb;w.EB=Lb;w.Sb=Mb;w.Ha=Nb;w.GA=Ob;w.fu=Pb;w.ie=Qb}w.Wh=!1;w.Ut=0;w.Tt=0;w.St=null;14===u.length&&(w.Wh=!0,w.Ut=u[13][0],w.Tt=u[13][1],w.St=u[13][2]);f=0;for(p=x.X.length;f<p;f++)w.kf[f]=!0;w.We=!0;w.Vd=Rb;w.Vd();w.gu=!!w.ta.length;
w.jn=!0;w.pn=!0;x.wk=!0;w.visible=!0;w.mj=-1;w.u=b;w.Xd=b.j.length;w.ag=0;"undefined"===typeof w.wa&&(w.wa=null);this.da=w.hd=!0}var t;R(F);f=0;for(p=x.Qa.length;f<p;f++)F.push.apply(F,x.Qa[f].Sa);F.push.apply(F,x.Sa);if(w.zc)for(f=0,p=F.length;f<p;f++){var n=F[f];t=w.T[f];t.zc=!0;n.behavior.S.call(t,n,w);u=a[4][f];e=0;for(r=u.length;e<r;e++)t.A[e]=u[e];t.K();n.behavior.Sl.add(w)}else for(w.T=[],f=0,p=F.length;f<p;f++)n=F[f],t=new n.behavior.S(n,w),t.zc=!1,t.A=a[4][f].slice(0),t.K(),w.T.push(t),n.behavior.Sl.add(w);
u=a[5];if(w.zc)for(f=0,p=u.length;f<p;f++)w.A[f]=u[f];else w.A=u.slice(0);this.Jd.push(w);this.zf=!0;b&&(b.li(w,!0),1!==b.td||1!==b.ud)&&(x.xk=!0);this.Vl++;if(x.Xb){if(w.Xb=!0,w.zc?R(w.siblings):w.siblings=[],!c&&!k){f=0;for(p=x.Ic.length;f<p;f++)if(x.Ic[f]!==x){if(!x.Ic[f].kd)return null;w.siblings.push(this.uf(x.Ic[f].kd,y,!1,d?w.x:h,d?w.y:g,!0))}f=0;for(p=w.siblings.length;f<p;f++)for(w.siblings[f].siblings.push(w),e=0;e<p;e++)f!==e&&w.siblings[f].siblings.push(w.siblings[e])}}else w.Xb=!1,w.siblings=
null;w.K();f=0;for(p=w.T.length;f<p;f++)w.T[f].Uz&&w.T[f].Uz();return w};d.prototype.Tn=function(a){var b,c;b=0;for(c=this.Ba.ba.length;b<c;b++){var h=this.Ba.ba[b];if(mb(h.name,a))return h}return null};d.prototype.Ci=function(a){a=C(a);0>a&&(a=0);a>=this.Ba.ba.length&&(a=this.Ba.ba.length-1);return this.Ba.ba[a]};d.prototype.rn=function(a){var b,c;b=0;for(c=a.length;b<c;b++)a[b].V().ea=!0};d.prototype.zj=function(a){var b,c;b=0;for(c=a.length;b<c;b++)a[b].zj()};d.prototype.Aj=function(a){var b,c;
b=0;for(c=a.length;b<c;b++)a[b].Aj()};d.prototype.Hf=function(a){var b,c;b=0;for(c=a.length;b<c;b++)a[b].Hf()};d.prototype.bu=function(a){if(a.wk){var b,c,h=a.j;b=0;for(c=h.length;b<c;++b)h[b].fu();h=this.Jd;b=0;for(c=h.length;b<c;++b)h[b].type===a&&h[b].fu();a.wk=!1}};d.prototype.Pn=function(a,b,c,h){var f,g,k=a?1!==a.td||1!==a.ud:!1;if(b.L)for(a=0,f=b.Hh.length;a<f;++a)g=b.Hh[a],k||g.xk?Ca(h,g.j):(this.bu(g),g.pi.mm(c,h));else k||b.xk?Ca(h,b.j):(this.bu(b),b.pi.mm(c,h))};d.prototype.xr=function(a,
b,c,h){var f,g;f=0;for(g=b.length;f<g;++f)this.Pn(a,b[f],c,h)};d.prototype.Jy=function(a,b,c){var h=this.Kt;h&&this.xr(a,h.Tl,b,c)};d.prototype.Cy=function(a,b,c){var h=this.Tr;h&&this.xr(a,h.Tl,b,c)};d.prototype.Gm=function(a,b,c){var h=a.V(),f,g,k,p,e=this.Ya().cb.ad,r,x,d;if(h.ea)for(h.ea=!1,R(h.j),f=0,p=a.j.length;f<p;f++)k=a.j[f],k.Ha(),r=k.u.Rb(b,c,!0),x=k.u.Rb(b,c,!1),k.Sb(r,x)?h.j.push(k):e&&h.ca.push(k);else{g=0;d=e?h.ca:h.j;f=0;for(p=d.length;f<p;f++)k=d[f],k.Ha(),r=k.u.Rb(b,c,!0),x=k.u.Rb(b,
c,!1),k.Sb(r,x)&&(e?h.j.push(k):(h.j[g]=h.j[f],g++));d.length=g}a.fd();return h.$n()};d.prototype.kc=function(a,b){if(!(a&&b&&a!==b&&a.hd&&b.hd))return!1;a.Ha();b.Ha();var c=a.u,h=b.u,f,g,k,p,e,r,x,d;if(c===h||c.td===h.td&&h.ud===h.ud&&c.scale===h.scale&&c.n===h.n&&c.Yd===h.Yd){if(!a.Pa.ez(b.Pa)||!a.Hc.Ir(b.Hc)||a.Wh&&b.Wh)return!1;if(a.Wh)return this.Ot(a,b);if(b.Wh)return this.Ot(b,a);x=a.wa&&!a.wa.nh();f=b.wa&&!b.wa.nh();if(!x&&!f)return!0;x?(a.wa.Vf(a.width,a.height,a.n),x=a.wa):(this.Rd.Sh(a.Hc,
a.x,a.y,a.width,a.height),x=this.Rd);f?(b.wa.Vf(b.width,b.height,b.n),d=b.wa):(this.Rd.Sh(b.Hc,b.x,b.y,b.width,b.height),d=this.Rd);return x.Li(d,b.x-a.x,b.y-a.y)}x=a.wa&&!a.wa.nh();f=b.wa&&!b.wa.nh();x?(a.wa.Vf(a.width,a.height,a.n),this.Rd.Ct(a.wa)):this.Rd.Sh(a.Hc,a.x,a.y,a.width,a.height);x=this.Rd;f?(b.wa.Vf(b.width,b.height,b.n),this.Fp.Ct(b.wa)):this.Fp.Sh(b.Hc,b.x,b.y,b.width,b.height);d=this.Fp;f=0;for(g=x.Qc;f<g;f++)k=2*f,p=k+1,e=x.La[k],r=x.La[p],x.La[k]=c.pc(e+a.x,r+a.y,!0),x.La[p]=c.pc(e+
a.x,r+a.y,!1);x.Ha();f=0;for(g=d.Qc;f<g;f++)k=2*f,p=k+1,e=d.La[k],r=d.La[p],d.La[k]=h.pc(e+b.x,r+b.y,!0),d.La[p]=h.pc(e+b.x,r+b.y,!1);d.Ha();return x.Li(d,0,0)};var L=new va;new ua(0,0,0,0);var O=[];d.prototype.Ot=function(a,b){var c,h,f,g,k=b.Pa,p=a.x,e=a.y;a.wy(k,O);var r=b.wa&&!b.wa.nh();c=0;for(h=O.length;c<h;++c)if(f=O[c],g=f.Aa,k.fz(g,p,e)&&(L.Lj(g),L.offset(p,e),L.Ir(b.Hc)))if(r)if(b.wa.Vf(b.width,b.height,b.n),f.Re){if(f.Re.Li(b.wa,b.x-(p+g.left),b.y-(e+g.top)))return R(O),!0}else{if(this.Rd.Sh(L,
0,0,g.right-g.left,g.bottom-g.top),this.Rd.Li(b.wa,b.x,b.y))return R(O),!0}else if(f.Re){if(this.Rd.Sh(b.Hc,0,0,b.width,b.height),f.Re.Li(this.Rd,-(p+g.left),-(e+g.top)))return R(O),!0}else return R(O),!0;R(O);return!1};d.prototype.Pp=function(a,b){if(!b)return!1;var c,h,f,g,k;c=0;for(h=a.Sa.length;c<h;c++)if(a.Sa[c].behavior instanceof b)return!0;if(!a.L)for(c=0,h=a.Qa.length;c<h;c++)for(k=a.Qa[c],f=0,g=k.Sa.length;f<g;f++)if(k.Sa[f].behavior instanceof b)return!0;return!1};d.prototype.Qp=function(a){return this.Pp(a,
fc.hB)};d.prototype.Rp=function(a){return this.Pp(a,fc.iB)};var J=[];d.prototype.ob=function(a){var b,c,h;a.Ha();this.Jy(a.u,a.Pa,J);b=0;for(c=J.length;b<c;++b)if(h=J[b],h.R.solidEnabled&&this.kc(a,h))return R(J),h;R(J);return null};var A=[];d.prototype.Ze=function(a,b){var c=null;b&&(c=A,R(c));a.Ha();this.Cy(a.u,a.Pa,J);var h,f,g;h=0;for(f=J.length;h<f;++h)if(g=J[h],g.R.jumpthruEnabled&&this.kc(a,g))if(b)c.push(g);else return R(J),g;R(J);return c};d.prototype.vd=function(a,b,c,h,f,g){h=h||50;var k=
a.x,p=a.y,e,r=null,x=null;for(e=0;e<h;e++)if(a.x=k+b*e,a.y=p+c*e,a.D(),!this.kc(a,r)&&((r=this.ob(a))&&(x=r),!r&&(f&&(g?r=this.kc(a,g)?g:null:r=this.Ze(a),r&&(x=r)),!r)))return x&&this.gp(a,b,c,x),!0;a.x=k;a.y=p;a.D();return!1};d.prototype.gp=function(a,b,c,h){var f=2,g,k=!1;g=!1;for(var p=a.x,e=a.y;16>=f;)g=1/f,f*=2,a.x+=b*g*(k?1:-1),a.y+=c*g*(k?1:-1),a.D(),this.kc(a,h)?g=k=!0:(g=k=!1,p=a.x,e=a.y);g&&(a.x=p,a.y=e,a.D())};d.prototype.jt=function(a,b){var c=ia(b)?100:b,h=0,f=a.x,g=a.y,k=0,p=0,e=0,
r=this.ob(a);if(!r)return!0;for(;h<=c;){switch(k){case 0:p=0;e=-1;h++;break;case 1:p=1;e=-1;break;case 2:p=1;e=0;break;case 3:e=p=1;break;case 4:p=0;e=1;break;case 5:p=-1;e=1;break;case 6:p=-1;e=0;break;case 7:e=p=-1}k=(k+1)%8;a.x=C(f+p*h);a.y=C(g+e*h);a.D();if(!this.kc(a,r)&&(r=this.ob(a),!r))return!0}a.x=f;a.y=g;a.D();return!1};d.prototype.Oh=function(a,b){a.hd&&b.hd&&this.Fj.push([a,b])};d.prototype.Ow=function(a,b){var c,h,f;c=0;for(h=this.Fj.length;c<h;c++)if(f=this.Fj[c],f[0]==a&&f[1]==b||f[0]==
b&&f[1]==a)return!0;return!1};d.prototype.Lw=function(a,b,c){var h=a.x,f=a.y,g=pa(10,Sa(b,c,h,f)),k=La(b,c,h,f),p=this.ob(a);if(!p)return Ia(k+ra);var e=p,r,x,d,w,y=U(5);for(r=1;36>r;r++)if(x=k-r*y,a.x=b+Math.cos(x)*g,a.y=c+Math.sin(x)*g,a.D(),!this.kc(a,e)&&(e=this.ob(a),!e)){d=x;break}36===r&&(d=Ia(k+ra));e=p;for(r=1;36>r;r++)if(x=k+r*y,a.x=b+Math.cos(x)*g,a.y=c+Math.sin(x)*g,a.D(),!this.kc(a,e)&&(e=this.ob(a),!e)){w=x;break}36===r&&(w=Ia(k+ra));a.x=h;a.y=f;a.D();if(w===d)return w;a=Na(w,d)/2;a=
Pa(w,d)?Ia(d+a+ra):Ia(w+a);d=Math.cos(k);k=Math.sin(k);w=Math.cos(a);a=Math.sin(a);b=d*w+k*a;return La(0,0,d-2*b*w,k-2*b*a)};var Q=-1;d.prototype.trigger=function(a,b,c){if(!this.Ba)return!1;var h=this.Ba.bg;if(!h)return!1;var f=!1,g,k,p;Q++;var e=h.yn;k=0;for(p=e.length;k<p;++k)g=this.Wt(a,b,e[k],c),f=f||g;g=this.Wt(a,b,h,c);Q--;return f||g};d.prototype.Wt=function(a,b,c,h){var f=!1,g,k,p,e;if(b)for(p=this.Np(a,b,b.type.name,c,h),f=f||p,e=b.type.Qa,g=0,k=e.length;g<k;++g)p=this.Np(a,b,e[g].name,
c,h),f=f||p;else p=this.Np(a,b,"system",c,h),f=f||p;return f};d.prototype.Np=function(a,b,c,h,f){var g,k=!1,p=!1,p="undefined"!==typeof f,e=(p?h.gr:h.Xt)[c];if(!e)return k;var r=null;h=0;for(g=e.length;h<g;++h)if(e[h].method==a){r=e[h].xi;break}if(!r)return k;var x;p?x=r[f]:x=r;if(!x)return null;h=0;for(g=x.length;h<g;h++)a=x[h][0],f=x[h][1],p=this.jy(b,c,a,f),k=k||p;return k};d.prototype.jy=function(a,b,c,h){var f,g,k=!1;this.Op++;var p=this.Ya().cb;p&&this.zj(p.Lf);var e=1<this.Op;this.zj(c.Lf);
e&&this.$z();var r=this.lm(c);r.cb=c;a&&(f=this.types[b].V(),f.ea=!1,R(f.j),f.j[0]=a,this.types[b].fd());a=!0;if(c.parent){b=r.Nt;for(f=c.parent;f;)b.push(f),f=f.parent;b.reverse();f=0;for(g=b.length;f<g;f++)if(!b[f].mA()){a=!1;break}}a&&(this.eg++,c.ad?c.lA(h):c.mb(),k=k||r.vg);this.hm();e&&this.Sz();this.Hf(c.Lf);p&&this.Hf(p.Lf);this.zf&&0===this.Yc&&0===Q&&!this.qo&&this.cc();this.Op--;return k};d.prototype.ll=function(){var a=this.Ya();return a.cb.ub[a.bb]};d.prototype.iz=function(){return 0===
this.Ya().bb};d.prototype.xy=function(){var a=this.Ya();return a.cb.ed[a.uc]};d.prototype.$z=function(){this.Ml++;this.Ml>=this.Ho.length&&this.Ho.push([])};d.prototype.Sz=function(){this.Ml--};d.prototype.pr=function(){return this.Ho[this.Ml]};d.prototype.lm=function(a){this.Xk++;this.Xk>=this.Cn.length&&this.Cn.push(new Sb);var b=this.Ya();b.reset(a);return b};d.prototype.hm=function(){this.Xk--};d.prototype.Ya=function(){return this.Cn[this.Xk]};d.prototype.aA=function(){this.Ol++;this.Ol>=this.Jo.length&&
this.Jo.push(ba({name:void 0,index:0,Pb:!1}));var a=this.yy();a.name=void 0;a.index=0;a.Pb=!1;return a};d.prototype.Tz=function(){this.Ol--};d.prototype.yy=function(){return this.Jo[this.Ol]};d.prototype.rr=function(a,b){for(var c,h,f,g,k,p;b;){c=0;for(h=b.yd.length;c<h;c++)if(p=b.yd[c],p instanceof Tb&&mb(a,p.name))return p;b=b.parent}c=0;for(h=this.Ee.length;c<h;c++)for(k=this.Ee[c],f=0,g=k.xf.length;f<g;f++)if(p=k.xf[f],p instanceof Tb&&mb(a,p.name))return p;return null};d.prototype.tr=function(a){var b,
c;b=0;for(c=this.Nc.length;b<c;b++)if(this.Nc[b].la===a)return this.Nc[b];return null};d.prototype.nl=function(a){var b,c;b=0;for(c=this.F.length;b<c;b++)if(this.F[b].la===a)return this.F[b];return null};d.prototype.zy=function(a){var b,c;b=0;for(c=this.Sg.length;b<c;b++)if(this.Sg[b].la===a)return this.Sg[b];return null};d.prototype.$w=function(a,b){this.Qj=[a,b];this.da=!0};d.prototype.Zy=function(){var a=this,b=this.rp,c=this.Ke,h=this.Hl,f=!1;this.Ht&&(f=!0,b="__c2_continuouspreview",this.Ht=
!1);if(b.length){this.cc();c=this.qA();if(q()&&!this.nd)n(b,c,function(){fa("Saved state to IndexedDB storage ("+c.length+" bytes)");a.Ke=c;a.trigger(X.prototype.k.Zm,null);a.Ke="";f&&t()},function(h){try{localStorage.setItem("__c2save_"+b,c),fa("Saved state to WebStorage ("+c.length+" bytes)"),a.Ke=c,a.trigger(X.prototype.k.Zm,null),a.Ke="",f&&t()}catch(g){fa("Failed to save game state: "+h+"; "+g),a.trigger(X.prototype.k.tq,null)}});else try{localStorage.setItem("__c2save_"+b,c),fa("Saved state to WebStorage ("+
c.length+" bytes)"),a.Ke=c,this.trigger(X.prototype.k.Zm,null),a.Ke="",f&&t()}catch(g){fa("Error saving to WebStorage: "+g),a.trigger(X.prototype.k.tq,null)}this.Hl=this.rp="";this.Bb=null}if(h.length){if(q()&&!this.nd)v(h,function(b){b?(a.Bb=b,fa("Loaded state from IndexedDB storage ("+a.Bb.length+" bytes)")):(a.Bb=localStorage.getItem("__c2save_"+h)||"",fa("Loaded state from WebStorage ("+a.Bb.length+" bytes)"));a.Sj=!1;a.Bb||(a.Bb=null,a.trigger(X.prototype.k.ok,null))},function(){a.Bb=localStorage.getItem("__c2save_"+
h)||"";fa("Loaded state from WebStorage ("+a.Bb.length+" bytes)");a.Sj=!1;a.Bb||(a.Bb=null,a.trigger(X.prototype.k.ok,null))});else{try{this.Bb=localStorage.getItem("__c2save_"+h)||"",fa("Loaded state from WebStorage ("+this.Bb.length+" bytes)")}catch(k){this.Bb=null}this.Sj=!1;a.Bb||(a.Bb=null,a.trigger(X.prototype.k.ok,null))}this.rp=this.Hl=""}null!==this.Bb&&(this.cc(),this.xz(this.Bb)?(this.Ke=this.Bb,this.trigger(X.prototype.k.zv,null),this.Ke=""):a.trigger(X.prototype.k.ok,null),this.Bb=null)};
d.prototype.qA=function(){var a,c,h,f,g,k,p,e={c2save:!0,version:1,rt:{time:this.Mb.Y,walltime:this.df.Y,timescale:this.Nf,tickcount:this.Mg,execcount:this.eg,next_uid:this.nj,running_layout:this.Ba.la,start_time_offset:Date.now()-this.Cm},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};a=0;for(c=this.F.length;a<c;a++)if(g=this.F[a],!g.L&&!this.Qp(g)){k={instances:[]};Ua(g.R)&&(k.ex=b(g.R));h=0;for(f=g.j.length;h<f;h++)k.instances.push(this.qp(g.j[h]));e.types[g.la.toString()]=k}a=
0;for(c=this.Nc.length;a<c;a++)h=this.Nc[a],e.layouts[h.la.toString()]=h.ab();f=e.events.groups;a=0;for(c=this.Sg.length;a<c;a++)h=this.Sg[a],f[h.la.toString()]=this.ol[h.Gi].Fi;c=e.events.cnds;for(p in this.tf)this.tf.hasOwnProperty(p)&&(a=this.tf[p],Ua(a.R)&&(c[p]={ex:b(a.R)}));c=e.events.acts;for(p in this.lf)this.lf.hasOwnProperty(p)&&(a=this.lf[p],Ua(a.R)&&(c[p]={ex:b(a.R)}));c=e.events.vars;for(p in this.$h)this.$h.hasOwnProperty(p)&&(a=this.$h[p],a.Al||a.parent&&!a.Ui||(c[p]=a.data));e.system=
this.re.ab();return JSON.stringify(e)};d.prototype.lt=function(){var a,b,c,h,f,g;this.Ne={};a=0;for(b=this.F.length;a<b;a++)if(c=this.F[a],!c.L)for(h=0,f=c.j.length;h<f;h++)g=c.j[h],this.Ne[g.uid.toString()]=g};d.prototype.xz=function(a){var b;try{b=JSON.parse(a)}catch(c){return!1}if(!b.c2save||1<b.version)return!1;this.Ni=!0;a=b.rt;this.Mb.reset();this.Mb.Y=a.time;this.df.reset();this.df.Y=a.walltime||0;this.Nf=a.timescale;this.Mg=a.tickcount;this.eg=a.execcount;this.Cm=Date.now()-a.start_time_offset;
var h=a.running_layout;if(h!==this.Ba.la)if(h=this.tr(h))this.cr(h);else return;var f,g,k,p,e,r,x;r=b.types;for(g in r)if(r.hasOwnProperty(g)&&(p=this.nl(parseInt(g,10)))&&!p.L&&!this.Qp(p)){r[g].ex?p.R=r[g].ex:Va(p.R);e=p.j;k=r[g].instances;h=0;for(f=qa(e.length,k.length);h<f;h++)this.Il(e[h],k[h]);h=k.length;for(f=e.length;h<f;h++)this.gf(e[h]);h=e.length;for(f=k.length;h<f;h++){e=null;if(p.za.Bf&&(e=this.Ba.ml(k[h].w.l),!e))continue;e=this.uf(p.kd,e,!1,0,0,!0);this.Il(e,k[h])}p.Uh=!0}this.cc();
this.lt();f=b.layouts;for(g in f)f.hasOwnProperty(g)&&(h=this.tr(parseInt(g,10)))&&h.Ab(f[g]);f=b.events.groups;for(g in f)f.hasOwnProperty(g)&&(h=this.zy(parseInt(g,10)))&&this.ol[h.Gi]&&this.ol[h.Gi].sA(f[g]);h=b.events.cnds;for(g in this.tf)this.tf.hasOwnProperty(g)&&(h.hasOwnProperty(g)?this.tf[g].R=h[g].ex:this.tf[g].R={});h=b.events.acts;for(g in this.lf)this.lf.hasOwnProperty(g)&&(h.hasOwnProperty(g)?this.lf[g].R=h[g].ex:this.lf[g].R={});h=b.events.vars;for(g in h)h.hasOwnProperty(g)&&this.$h.hasOwnProperty(g)&&
(this.$h[g].data=h[g]);this.nj=a.next_uid;this.Ni=!1;h=0;for(f=this.bl.length;h<f;++h)e=this.bl[h],this.trigger(Object.getPrototypeOf(e.type.za).k.Qg,e);R(this.bl);this.re.Ab(b.system);h=0;for(f=this.F.length;h<f;h++)if(p=this.F[h],!p.L&&!this.Qp(p))for(b=0,g=p.j.length;b<g;b++){e=p.j[b];if(p.Xb)for(r=e.Ei(),R(e.siblings),a=0,k=p.Ic.length;a<k;a++)x=p.Ic[a],p!==x&&e.siblings.push(x.j[r]);e.Dd&&e.Dd();if(e.T)for(a=0,k=e.T.length;a<k;a++)r=e.T[a],r.Dd&&r.Dd()}return this.da=!0};d.prototype.qp=function(a,
c){var h,f,g,k,p;k=a.type;g=k.za;var e={};c?e.c2=!0:e.uid=a.uid;Ua(a.R)&&(e.ex=b(a.R));if(a.xb&&a.xb.length)for(e.ivs={},h=0,f=a.xb.length;h<f;h++)e.ivs[a.type.ko[h].toString()]=a.xb[h];if(g.Bf){g={x:a.x,y:a.y,w:a.width,h:a.height,l:a.u.la,zi:a.ie()};0!==a.n&&(g.a=a.n);1!==a.opacity&&(g.o=a.opacity);.5!==a.nc&&(g.hX=a.nc);.5!==a.oc&&(g.hY=a.oc);0!==a.ec&&(g.bm=a.ec);a.visible||(g.v=a.visible);a.hd||(g.ce=a.hd);-1!==a.mj&&(g.mts=a.mj);if(k.X.length)for(g.fx=[],h=0,f=k.X.length;h<f;h++)p=k.X[h],g.fx.push({name:p.name,
active:a.kf[p.index],params:a.Ta[p.index]});e.w=g}if(a.T&&a.T.length)for(e.behs={},h=0,f=a.T.length;h<f;h++)k=a.T[h],k.ab&&(e.behs[k.type.la.toString()]=k.ab());a.ab&&(e.data=a.ab());return e};d.prototype.By=function(a,b){var c,h;c=0;for(h=a.ko.length;c<h;c++)if(a.ko[c]===b)return c;return-1};d.prototype.vy=function(a,b){var c,h;c=0;for(h=a.T.length;c<h;c++)if(a.T[c].type.la===b)return c;return-1};d.prototype.Il=function(a,b,c){var h,f,g,k,p;p=a.type;k=p.za;if(c){if(!b.c2)return}else a.uid=b.uid;
b.ex?a.R=b.ex:Va(a.R);if(f=b.ivs)for(h in f)f.hasOwnProperty(h)&&(g=this.By(p,parseInt(h,10)),0>g||g>=a.xb.length||(a.xb[g]=f[h]));if(k.Bf){g=b.w;a.u.la!==g.l&&(f=a.u,a.u=this.Ba.ml(g.l),a.u?(f.Ph(a,!0),a.u.li(a,!0),a.D(),a.u.Kj(0)):(a.u=f,c||this.gf(a)));a.x=g.x;a.y=g.y;a.width=g.w;a.height=g.h;a.Xd=g.zi;a.n=g.hasOwnProperty("a")?g.a:0;a.opacity=g.hasOwnProperty("o")?g.o:1;a.nc=g.hasOwnProperty("hX")?g.hX:.5;a.oc=g.hasOwnProperty("hY")?g.hY:.5;a.visible=g.hasOwnProperty("v")?g.v:!0;a.hd=g.hasOwnProperty("ce")?
g.ce:!0;a.mj=g.hasOwnProperty("mts")?g.mts:-1;a.ec=g.hasOwnProperty("bm")?g.bm:0;a.qi=jb(a.ec);this.H&&kb(a,a.ec,this.H);a.D();if(g.hasOwnProperty("fx"))for(c=0,f=g.fx.length;c<f;c++)k=p.Rn(g.fx[c].name),0>k||(a.kf[k]=g.fx[c].active,a.Ta[k]=g.fx[c].params);a.Vd()}if(p=b.behs)for(h in p)p.hasOwnProperty(h)&&(c=this.vy(a,parseInt(h,10)),0>c||a.T[c].Ab(p[h]));b.data&&a.Ab(b.data)};d.prototype.hr=function(a,b,c){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+"www/"+a,function(a){a.file(b,
c)},c)};d.prototype.ky=function(a,b){this.hr("data.js",function(c){var h=new FileReader;h.onload=function(b){a(b.target.result)};h.onerror=b;h.readAsText(c)},b)};var D=[],G=0;d.prototype.No=function(){if(D.length&&!(8<=G)){G++;var a=D.shift();this.cx(a.filename,a.BA,a.Gx)}};d.prototype.ir=function(a,b,c){var h=this;D.push({filename:a,BA:function(a){G--;h.No();b(a)},Gx:function(a){G--;h.No();c(a)}});this.No()};d.prototype.cx=function(a,b,c){this.hr(a,function(a){var c=new FileReader;c.onload=function(a){b(a.target.result)};
c.readAsArrayBuffer(a)},c)};d.prototype.my=function(a,b,c){var h="",g=a.toLowerCase(),f=g.substr(g.length-4),g=g.substr(g.length-5);".mp4"===f?h="video/mp4":".webm"===g?h="video/webm":".m4a"===f?h="audio/mp4":".mp3"===f&&(h="audio/mpeg");this.ir(a,function(a){a=URL.createObjectURL(new Blob([a],{type:h}));b(a)},c)};d.prototype.gz=function(a){return/^(?:[a-z]+:)?\/\//.test(a)||"data:"===a.substr(0,5)||"blob:"===a.substr(0,5)};d.prototype.yt=function(a,b){this.zl&&!this.gz(b)?this.my(b,function(b){a.src=
b},function(a){alert("Failed to load image: "+a)}):a.src=b};d.prototype.um=function(a,b){"undefined"!==typeof a.imageSmoothingEnabled?a.imageSmoothingEnabled=b:(a.webkitImageSmoothingEnabled=b,a.mozImageSmoothingEnabled=b,a.msImageSmoothingEnabled=b)};Ub=function(a){return new d(document.getElementById(a))};Vb=function(a,b){return new d({dc:!0,width:a,height:b})};window.cr_createRuntime=Ub;window.cr_createDCRuntime=Vb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||
document.createElement("canvas");a.ae=!0;document.body.appendChild(a);a=new d(a);window.c2runtime=a;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a};window.createEjectaRuntime=function(){var a=new d(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();
window.cr_getC2Runtime=function(){var d=document.getElementById("c2canvas");return d?d.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(d,l){var q=window.cr_getC2Runtime();q&&q.$w(d,l)};window.cr_sizeCanvas=function(d,l){if(0!==d&&0!==l){var q=window.cr_getC2Runtime();q&&q.setSize(d,l)}};window.cr_setSuspended=function(d){var l=window.cr_getC2Runtime();l&&l.setSuspended(d)};
(function(){function d(a,b){this.b=a;this.bg=null;this.scrollX=this.b.kb/2;this.scrollY=this.b.jb/2;this.scale=1;this.n=0;this.fh=!0;this.name=b[0];this.Oz=b[1];this.Nz=b[2];this.width=b[1];this.height=b[2];this.Zt=b[3];this.Ft=b[4];this.la=b[5];var c=b[6],e,d;this.ba=[];this.Ki=[];e=0;for(d=c.length;e<d;e++){var u=new Wb(this,c[e]);u.Gs=e;this.ba.push(u)}c=b[7];this.Af=[];e=0;for(d=c.length;e<d;e++){var u=c[e],k=this.b.F[u[1]];k.kd||(k.kd=u);this.Af.push(u);-1===this.Ki.indexOf(k)&&this.Ki.push(k)}this.X=
[];this.ta=[];this.We=!0;this.Ta=[];e=0;for(d=b[8].length;e<d;e++)this.X.push({id:b[8][e][0],name:b[8][e][1],nb:-1,Nd:!1,Qb:!0,index:e}),this.Ta.push(b[8][e][2].slice(0));this.Vd();this.Ej=new ua(0,0,1,1);this.ip=new ua(0,0,1,1);this.Gf={}}function l(a,b){return a.Xd-b.Xd}function q(a,b){this.zb=a;this.b=a.b;this.j=[];this.scale=1;this.n=0;this.Ce=!1;this.$e=new ua(0,0,0,0);this.Vt=new va;this.Ia=this.Ea=this.Ja=this.Da=0;this.Ng=!1;this.ff=-1;this.sn=0;this.name=b[0];this.index=b[1];this.la=b[2];
this.visible=b[3];this.Gd=b[4];this.Ud=b[5];this.td=b[6];this.ud=b[7];this.opacity=b[8];this.hl=b[9];this.dd=b[10];this.Yd=b[11];this.ec=b[12];this.Cx=b[13];this.qi="source-over";this.fc=this.ic=0;this.ac=null;this.Le=m();this.Qd=!0;this.zh=new ua(0,0,-1,-1);this.Ub=new ua(0,0,-1,-1);this.dd&&(this.ac=new ib(this.b.kb,this.b.jb));this.ne=!1;var c=b[14],e,d;this.Lt=[];this.Wc=[];this.si=[];e=0;for(d=c.length;e<d;e++){var u=c[e],k=this.b.F[u[1]];k.kd||(k.kd=u,k.Ww=this.index);this.Wc.push(u);-1===this.zb.Ki.indexOf(k)&&
this.zb.Ki.push(k)}Ba(this.Lt,this.Wc);this.X=[];this.ta=[];this.We=!0;this.Ta=[];e=0;for(d=b[15].length;e<d;e++)this.X.push({id:b[15][e][0],name:b[15][e][1],nb:-1,Nd:!1,Qb:!0,index:e}),this.Ta.push(b[15][e][2].slice(0));this.Vd();this.Ej=new ua(0,0,1,1);this.ip=new ua(0,0,1,1)}function m(){return b.length?b.pop():[]}function n(a){R(a);b.push(a)}d.prototype.pA=function(a){var b=a.type.la.toString();this.Gf.hasOwnProperty(b)||(this.Gf[b]=[]);this.Gf[b].push(this.b.qp(a))};d.prototype.Ar=function(){var a=
this.ba[0];return!a.Ud&&1===a.opacity&&!a.hl&&a.visible};d.prototype.Vd=function(){R(this.ta);this.We=!0;var a,b,c;a=0;for(b=this.X.length;a<b;a++)c=this.X[a],c.Qb&&(this.ta.push(c),c.Nd||(this.We=!1))};d.prototype.Qn=function(a){var b,c,e;b=0;for(c=this.X.length;b<c;b++)if(e=this.X[b],e.name===a)return e;return null};var v=[],t=!0;d.prototype.Dp=function(){this.Ft&&(this.bg=this.b.Dn[this.Ft],this.bg.Sp());this.b.Ba=this;this.width=this.Oz;this.height=this.Nz;this.scrollX=this.b.kb/2;this.scrollY=
this.b.jb/2;var a,b,c,e,d,u,k;a=0;for(c=this.b.F.length;a<c;a++)if(b=this.b.F[a],!b.L)for(d=b.j,b=0,e=d.length;b<e;b++)if(u=d[b],u.u){var h=u.u.Gs;h>=this.ba.length&&(h=this.ba.length-1);u.u=this.ba[h];-1===u.u.j.indexOf(u)&&u.u.j.push(u);u.u.Ng=!0}if(!t)for(a=0,c=this.ba.length;a<c;++a)this.ba[a].j.sort(l);R(v);this.Jw();a=0;for(c=this.ba.length;a<c;a++)u=this.ba[a],u.Uw(),u.Sm();d=!1;if(!this.fh){for(k in this.Gf)if(this.Gf.hasOwnProperty(k)&&(b=this.b.nl(parseInt(k,10)))&&!b.L&&this.b.Rp(b)){e=
this.Gf[k];a=0;for(c=e.length;a<c;a++){u=null;if(b.za.Bf&&(u=this.ml(e[a].w.l),!u))continue;u=this.b.uf(b.kd,u,!1,0,0,!0);this.b.Il(u,e[a]);d=!0;v.push(u)}R(e)}a=0;for(c=this.ba.length;a<c;a++)this.ba[a].j.sort(l),this.ba[a].Ng=!0}d&&(this.b.cc(),this.b.lt());for(a=0;a<v.length;a++)if(u=v[a],u.type.Xb)for(c=u.Ei(),b=0,e=u.type.Ic.length;b<e;b++)k=u.type.Ic[b],u.type!==k&&(k.j.length>c?u.siblings.push(k.j[c]):k.kd&&(d=this.b.uf(k.kd,u.u,!0,u.x,u.y,!0),this.b.cc(),k.Qm(),u.siblings.push(d),v.push(d)));
a=0;for(c=this.Af.length;a<c;a++)u=this.Af[a],b=this.b.F[u[1]],b.Xb||this.b.uf(this.Af[a],null,!0);this.b.ye=null;this.b.cc();if(this.b.Ma&&!this.b.Za)for(a=0,c=this.b.F.length;a<c;a++)k=this.b.F[a],!k.L&&k.j.length&&k.xj&&k.xj(this.b.Ma);if(this.b.Ni)Ba(this.b.bl,v);else for(a=0,c=v.length;a<c;a++)u=v[a],this.b.trigger(Object.getPrototypeOf(u.type.za).k.Qg,u);R(v);this.b.Ni||this.b.trigger(X.prototype.k.oq,null);this.fh=!1};d.prototype.Tw=function(){var a,b,c,e,d;b=a=0;for(c=this.Af.length;a<c;a++)e=
this.Af[a],d=this.b.F[e[1]],d.global?d.Xb||this.b.uf(e,null,!0):(this.Af[b]=e,b++);Aa(this.Af,b)};d.prototype.AA=function(){this.b.Ni||this.b.trigger(X.prototype.k.yv,null);this.b.no=!0;R(this.b.re.Fc);var a,b,c,e,d,u;if(!this.fh)for(a=0,b=this.ba.length;a<b;a++)for(this.ba[a].Up(),d=this.ba[a].j,c=0,e=d.length;c<e;c++)u=d[c],u.type.global||this.b.Rp(u.type)&&this.pA(u);a=0;for(b=this.ba.length;a<b;a++){d=this.ba[a].j;c=0;for(e=d.length;c<e;c++)u=d[c],u.type.global||this.b.gf(u);this.b.cc();R(d);
this.ba[a].Ng=!0}a=0;for(b=this.b.F.length;a<b;a++)if(d=this.b.F[a],!(d.global||d.za.Bf||d.za.Bm||d.L)){c=0;for(e=d.j.length;c<e;c++)this.b.gf(d.j[c]);this.b.cc()}t=!1;this.b.no=!1};new ua(0,0,0,0);d.prototype.ee=function(a){var b,c=a,e=!1,d=!this.b.Tc;d&&(this.b.Gl||(this.b.Gl=document.createElement("canvas"),b=this.b.Gl,b.width=this.b.P,b.height=this.b.O,this.b.$r=b.getContext("2d"),e=!0),b=this.b.Gl,c=this.b.$r,b.width!==this.b.P&&(b.width=this.b.P,e=!0),b.height!==this.b.O&&(b.height=this.b.O,
e=!0),e&&this.b.um(c,this.b.Oa));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.b.Uq&&!this.Ar()&&c.clearRect(0,0,this.b.P,this.b.O);var u,k,e=0;for(u=this.ba.length;e<u;e++)k=this.ba[e],k.visible&&0<k.opacity&&11!==k.ec&&(k.j.length||!k.Ud)?k.ee(c):k.Sm();d&&a.drawImage(b,0,0,this.b.width,this.b.height)};d.prototype.wf=function(a){a.xt(!0);this.b.ib||(this.b.ib=a.Sc(this.b.P,this.b.O,this.b.Oa));if(this.b.ib.Uf!==this.b.P||this.b.ib.Tf!==this.b.O)a.deleteTexture(this.b.ib),this.b.ib=
a.Sc(this.b.P,this.b.O,this.b.Oa);a.wd(this.b.ib);this.b.Tc||a.Ig(this.b.P,this.b.O);var b,c;for(b=this.ba.length-1;0<=b;--b)c=this.ba[b],c.visible&&1===c.opacity&&c.We&&0===c.ec&&(c.j.length||!c.Ud)?c.wf(a):c.Sm();a.xt(!1)};d.prototype.mc=function(a){var b=0<this.ta.length||this.b.Yh||!this.b.Tc||this.b.Ka;if(b){this.b.ib||(this.b.ib=a.Sc(this.b.P,this.b.O,this.b.Oa));if(this.b.ib.Uf!==this.b.P||this.b.ib.Tf!==this.b.O)a.deleteTexture(this.b.ib),this.b.ib=a.Sc(this.b.P,this.b.O,this.b.Oa);a.wd(this.b.ib);
this.b.Tc||a.Ig(this.b.P,this.b.O)}else this.b.ib&&(a.wd(null),a.deleteTexture(this.b.ib),this.b.ib=null);this.b.Uq&&!this.Ar()&&a.clear(0,0,0,0);var c,e,d;c=0;for(e=this.ba.length;c<e;c++)d=this.ba[c],d.visible&&0<d.opacity&&(d.j.length||!d.Ud)?d.mc(a):d.Sm();b&&(0===this.ta.length||1===this.ta.length&&this.b.Tc?(1===this.ta.length?(b=this.ta[0].index,a.Ec(this.ta[0].nb),a.Rh(null,1/this.b.P,1/this.b.O,0,0,1,1,this.scale,this.n,0,0,this.b.P/2,this.b.O/2,this.b.Mb.Y,this.Ta[b]),a.km(this.ta[0].nb)&&
(this.b.da=!0)):a.Ec(0),this.b.Tc||a.Ig(this.b.width,this.b.height),a.wd(null),a.tt(!1),a.Kf(1),a.Cc(this.b.ib),a.pt(),a.oe(),a.Wd(),b=this.b.width/2,c=this.b.height/2,a.Bj(-b,c,b,c,b,-c,-b,-c),a.Cc(null),a.tt(!0)):this.jp(a,null,null,null))};d.prototype.Di=function(){return 0<this.ta.length||this.b.Yh||!this.b.Tc||this.b.Ka?this.b.ib:null};d.prototype.ur=function(){var a=this.ba[0].md(),b,c,e;b=1;for(c=this.ba.length;b<c;b++)e=this.ba[b],(0!==e.td||0!==e.ud)&&e.md()<a&&(a=e.md());return a};d.prototype.sp=
function(a){if(!this.Zt){var b=1/this.ur()*this.b.P/2;a>this.width-b&&(a=this.width-b);a<b&&(a=b)}this.scrollX!==a&&(this.scrollX=a,this.b.da=!0)};d.prototype.tp=function(a){if(!this.Zt){var b=1/this.ur()*this.b.O/2;a>this.height-b&&(a=this.height-b);a<b&&(a=b)}this.scrollY!==a&&(this.scrollY=a,this.b.da=!0)};d.prototype.Jw=function(){this.sp(this.scrollX);this.tp(this.scrollY)};d.prototype.jp=function(a,b,c,e){var d=c?c.ta:b?b.ta:this.ta,u=1,k=0,h=0,p=0,y=this.b.P,t=this.b.O;c?(u=c.u.md(),k=c.u.Wb(),
h=c.u.Da,p=c.u.Ea,y=c.u.Ja,t=c.u.Ia):b&&(u=b.md(),k=b.Wb(),h=b.Da,p=b.Ea,y=b.Ja,t=b.Ia);var x=this.b.Ln,n,m,l,q,v=0,F=1,L,O,J=this.b.P,A=this.b.O,Q=J/2,D=A/2,G=b?b.Ej:this.Ej,z=b?b.ip:this.ip,K=0,I=0,H=0,M=0,S=J,Z=J,N=A,la=A,ga=l=0;q=c?c.u.Wb():0;if(c){n=0;for(m=d.length;n<m;n++)l+=a.Gy(d[n].nb),ga+=a.Hy(d[n].nb);M=c.Pa;K=b.pc(M.left,M.top,!0,!0);H=b.pc(M.left,M.top,!1,!0);S=b.pc(M.right,M.bottom,!0,!0);N=b.pc(M.right,M.bottom,!1,!0);0!==q&&(n=b.pc(M.right,M.top,!0,!0),m=b.pc(M.right,M.top,!1,!0),
I=b.pc(M.left,M.bottom,!0,!0),M=b.pc(M.left,M.bottom,!1,!0),q=Math.min(K,S,n,I),S=Math.max(K,S,n,I),K=q,q=Math.min(H,N,m,M),N=Math.max(H,N,m,M),H=q);K-=l;H-=ga;S+=l;N+=ga;z.left=K/J;z.top=1-H/A;z.right=S/J;z.bottom=1-N/A;I=K=C(K);M=H=C(H);Z=S=sa(S);la=N=sa(N);I-=l;M-=ga;Z+=l;la+=ga;0>K&&(K=0);0>H&&(H=0);S>J&&(S=J);N>A&&(N=A);0>I&&(I=0);0>M&&(M=0);Z>J&&(Z=J);la>A&&(la=A);G.left=K/J;G.top=1-H/A;G.right=S/J;G.bottom=1-N/A}else G.left=z.left=0,G.top=z.top=0,G.right=z.right=1,G.bottom=z.bottom=1;ga=c&&
(a.yj(d[0].nb)||0!==l||0!==ga||1!==c.opacity||c.type.za.Cs)||b&&!c&&1!==b.opacity;a.pt();if(ga){x[v]||(x[v]=a.Sc(J,A,this.b.Oa));if(x[v].Uf!==J||x[v].Tf!==A)a.deleteTexture(x[v]),x[v]=a.Sc(J,A,this.b.Oa);a.Ec(0);a.wd(x[v]);O=la-M;a.clearRect(I,A-M-O,Z-I,O);c?c.mc(a):(a.Cc(this.b.yb),a.Kf(b.opacity),a.oe(),a.translate(-Q,-D),a.Wd(),a.Pd(K,N,S,N,S,H,K,H,G));z.left=z.top=0;z.right=z.bottom=1;c&&(q=G.top,G.top=G.bottom,G.bottom=q);v=1;F=0}a.Kf(1);l=d.length-1;var ya=a.fp(d[l].nb)||!b&&!c&&!this.b.Tc;
n=q=0;for(m=d.length;n<m;n++){x[v]||(x[v]=a.Sc(J,A,this.b.Oa));if(x[v].Uf!==J||x[v].Tf!==A)a.deleteTexture(x[v]),x[v]=a.Sc(J,A,this.b.Oa);a.Ec(d[n].nb);q=d[n].index;a.km(d[n].nb)&&(this.b.da=!0);0!=n||ga?(a.Rh(e,1/J,1/A,z.left,z.top,z.right,z.bottom,u,k,h,p,(h+y)/2,(p+t)/2,this.b.Mb.Y,c?c.Ta[q]:b?b.Ta[q]:this.Ta[q]),a.Cc(null),n!==l||ya?(a.wd(x[v]),O=la-M,L=A-M-O,a.clearRect(I,L,Z-I,O)):(c?a.Jf(c.ic,c.fc):b&&a.Jf(b.ic,b.fc),a.wd(e)),a.Cc(x[F]),a.oe(),a.translate(-Q,-D),a.Wd(),a.Pd(K,N,S,N,S,H,K,H,
G),n!==l||ya||a.Cc(null)):(a.wd(x[v]),O=la-M,L=A-M-O,a.clearRect(I,L,Z-I,O),c?(c.Tb&&c.Tb.J?(L=c.Tb.J,F=1/L.width,L=1/L.height):(F=1/c.width,L=1/c.height),a.Rh(e,F,L,z.left,z.top,z.right,z.bottom,u,k,h,p,(h+y)/2,(p+t)/2,this.b.Mb.Y,c.Ta[q]),c.mc(a)):(a.Rh(e,1/J,1/A,0,0,1,1,u,k,h,p,(h+y)/2,(p+t)/2,this.b.Mb.Y,b?b.Ta[q]:this.Ta[q]),a.Cc(b?this.b.yb:this.b.ib),a.oe(),a.translate(-Q,-D),a.Wd(),a.Pd(K,N,S,N,S,H,K,H,G)),z.left=z.top=0,z.right=z.bottom=1,c&&!ya&&(q=N,N=H,H=q));v=0===v?1:0;F=0===v?1:0}ya&&
(a.Ec(0),c?a.Jf(c.ic,c.fc):b?a.Jf(b.ic,b.fc):this.b.Tc||(a.Ig(this.b.width,this.b.height),Q=this.b.width/2,D=this.b.height/2,H=K=0,S=this.b.width,N=this.b.height),a.wd(e),a.Cc(x[F]),a.oe(),a.translate(-Q,-D),a.Wd(),c&&1===d.length&&!ga?a.Pd(K,H,S,H,S,N,K,N,G):a.Pd(K,N,S,N,S,H,K,H,G),a.Cc(null))};d.prototype.ml=function(a){var b,c;b=0;for(c=this.ba.length;b<c;b++)if(this.ba[b].la===a)return this.ba[b];return null};d.prototype.ab=function(){var a,b,c,e={sx:this.scrollX,sy:this.scrollY,s:this.scale,
a:this.n,w:this.width,h:this.height,fv:this.fh,persist:this.Gf,fx:[],layers:{}};a=0;for(b=this.X.length;a<b;a++)c=this.X[a],e.fx.push({name:c.name,active:c.Qb,params:this.Ta[c.index]});a=0;for(b=this.ba.length;a<b;a++)c=this.ba[a],e.layers[c.la.toString()]=c.ab();return e};d.prototype.Ab=function(a){var b,c,e,d;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.n=a.a;this.width=a.w;this.height=a.h;this.Gf=a.persist;"undefined"!==typeof a.fv&&(this.fh=a.fv);var u=a.fx;b=0;for(c=u.length;b<c;b++)if(e=
this.Qn(u[b].name))e.Qb=u[b].active,this.Ta[e.index]=u[b].params;this.Vd();b=a.layers;for(d in b)b.hasOwnProperty(d)&&(a=this.ml(parseInt(d,10)))&&a.Ab(b[d])};Hb=d;q.prototype.Vd=function(){R(this.ta);this.We=!0;var a,b,c;a=0;for(b=this.X.length;a<b;a++)c=this.X[a],c.Qb&&(this.ta.push(c),c.Nd||(this.We=!1))};q.prototype.Qn=function(a){var b,c,e;b=0;for(c=this.X.length;b<c;b++)if(e=this.X[b],e.name===a)return e;return null};q.prototype.Uw=function(){var a,b,c,e,d,u;b=a=0;for(c=this.Wc.length;a<c;a++){e=
this.Wc[a];d=this.b.F[e[1]];u=this.b.Rp(d);d=!0;if(!u||this.zb.fh){e=this.b.uf(e,this,!0);if(!e)continue;v.push(e);e.type.global&&(d=!1,this.si.push(e.uid))}d&&(this.Wc[b]=this.Wc[a],b++)}this.Wc.length=b;this.b.cc();!this.b.C&&this.X.length&&(this.ec=this.Cx);this.qi=jb(this.ec);this.b.H&&kb(this,this.ec,this.b.H);this.Qd=!0};q.prototype.Ph=function(a,b){var c=Da(this.j,a);0>c||(b&&this.dd&&a.Ac&&a.Ac.right>=a.Ac.left&&(a.Ha(),this.ac.update(a,a.Ac,null),a.Ac.set(0,0,-1,-1)),c===this.j.length-1?
this.j.pop():(za(this.j,c),this.Kj(c)),this.Qd=!0)};q.prototype.li=function(a,b){a.Xd=this.j.length;this.j.push(a);b&&this.dd&&a.Ac&&a.D();this.Qd=!0};q.prototype.Xz=function(a){this.j.unshift(a);this.Kj(0)};q.prototype.Dz=function(a,b,c){var e=a.ie();b=b.ie();za(this.j,e);e<b&&b--;c&&b++;b===this.j.length?this.j.push(a):this.j.splice(b,0,a);this.Kj(e<b?e:b)};q.prototype.Kj=function(a){-1===this.ff?this.ff=a:a<this.ff&&(this.ff=a);this.Qd=this.Ng=!0};q.prototype.Up=function(){if(this.Ng){-1===this.ff&&
(this.ff=0);var a,b,c;if(this.dd)for(a=this.ff,b=this.j.length;a<b;++a)c=this.j[a],c.Xd=a,this.ac.zz(c.Ac);else for(a=this.ff,b=this.j.length;a<b;++a)this.j[a].Xd=a;this.Ng=!1;this.ff=-1}};q.prototype.md=function(a){return this.Dy()*(this.b.Tc||a?this.b.mi:1)};q.prototype.Dy=function(){return(this.scale*this.zb.scale-1)*this.Yd+1};q.prototype.Wb=function(){return this.Ce?0:Ia(this.zb.n+this.n)};var b=[],c=[],e=[];q.prototype.Vn=function(){this.Up();this.ac.mm(this.Da,this.Ea,this.Ja,this.Ia,e);if(!e.length)return m();
if(1===e.length){var a=m();Ba(a,e[0]);R(e);return a}for(var b=!0;1<e.length;){for(var a=e,f=void 0,r=void 0,d=void 0,u=void 0,k=void 0,f=0,r=a.length;f<r-1;f+=2){var d=a[f],u=a[f+1],k=m(),h=d,p=u,y=k,t=0,x=0,l=0,T=h.length,q=p.length,v=void 0,E=void 0;for(y.length=T+q;t<T&&x<q;++l)v=h[t],E=p[x],v.Xd<E.Xd?(y[l]=v,++t):(y[l]=E,++x);for(;t<T;++t,++l)y[l]=h[t];for(;x<q;++x,++l)y[l]=p[x];b||(n(d),n(u));c.push(k)}1===r%2&&(b?(d=m(),Ba(d,a[r-1]),c.push(d)):c.push(a[r-1]));Ba(a,c);R(c);b=!1}a=e[0];R(e);return a};
q.prototype.ee=function(a){this.ne=this.hl||1!==this.opacity||0!==this.ec;var b=this.b.canvas,c=a,e=!1;this.ne&&(this.b.Fl||(this.b.Fl=document.createElement("canvas"),b=this.b.Fl,b.width=this.b.P,b.height=this.b.O,this.b.Zr=b.getContext("2d"),e=!0),b=this.b.Fl,c=this.b.Zr,b.width!==this.b.P&&(b.width=this.b.P,e=!0),b.height!==this.b.O&&(b.height=this.b.O,e=!0),e&&this.b.um(c,this.b.Oa),this.Ud&&c.clearRect(0,0,this.b.P,this.b.O));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.Ud||
(c.fillStyle="rgb("+this.Gd[0]+","+this.Gd[1]+","+this.Gd[2]+")",c.fillRect(0,0,this.b.P,this.b.O));c.save();this.Ce=!0;var e=this.Rb(0,0,!0,!0),d=this.Rb(0,0,!1,!0);this.Ce=!1;this.b.bd&&(e=Math.round(e),d=Math.round(d));this.om(e,d,c);var u=this.md();c.scale(u,u);c.translate(-e,-d);this.dd?(this.Ub.left=this.ac.sc(this.Da),this.Ub.top=this.ac.tc(this.Ea),this.Ub.right=this.ac.sc(this.Ja),this.Ub.bottom=this.ac.tc(this.Ia),this.Qd||!this.Ub.wi(this.zh)?(n(this.Le),e=this.Vn(),this.Qd=!1,this.zh.Wg(this.Ub)):
e=this.Le):e=this.j;for(var k,h=null,d=0,u=e.length;d<u;++d)k=e[d],k!==h&&(this.xx(k,c),h=k);this.dd&&(this.Le=e);c.restore();this.ne&&(a.globalCompositeOperation=this.qi,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};q.prototype.xx=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Ha();var c=a.Pa;c.right<this.Da||c.bottom<this.Ea||c.left>this.Ja||c.top>this.Ia||(b.globalCompositeOperation=a.qi,a.ee(b))}};q.prototype.Sm=function(){this.Ce=!0;var a=this.Rb(0,0,!0,!0),b=this.Rb(0,0,!1,!0);this.Ce=
!1;this.b.bd&&(a=Math.round(a),b=Math.round(b));this.om(a,b,null)};q.prototype.om=function(a,b,c){var e=this.md();this.Da=a;this.Ea=b;this.Ja=a+1/e*this.b.P;this.Ia=b+1/e*this.b.O;this.Da>this.Ja&&(a=this.Da,this.Da=this.Ja,this.Ja=a);this.Ea>this.Ia&&(a=this.Ea,this.Ea=this.Ia,this.Ia=a);a=this.Wb();0!==a&&(c&&(c.translate(this.b.P/2,this.b.O/2),c.rotate(-a),c.translate(this.b.P/-2,this.b.O/-2)),this.$e.set(this.Da,this.Ea,this.Ja,this.Ia),this.$e.offset((this.Da+this.Ja)/-2,(this.Ea+this.Ia)/-2),
this.Vt.Dt(this.$e,a),this.Vt.Oq(this.$e),this.$e.offset((this.Da+this.Ja)/2,(this.Ea+this.Ia)/2),this.Da=this.$e.left,this.Ea=this.$e.top,this.Ja=this.$e.right,this.Ia=this.$e.bottom)};q.prototype.wf=function(a){if(this.ne=this.hl){this.b.yb||(this.b.yb=a.Sc(this.b.P,this.b.O,this.b.Oa));if(this.b.yb.Uf!==this.b.P||this.b.yb.Tf!==this.b.O)a.deleteTexture(this.b.yb),this.b.yb=a.Sc(this.b.P,this.b.O,this.b.Oa);a.wd(this.b.yb)}this.Ce=!0;var b=this.Rb(0,0,!0,!0),c=this.Rb(0,0,!1,!0);this.Ce=!1;this.b.bd&&
(b=Math.round(b),c=Math.round(c));this.om(b,c,null);b=this.md();a.oe();a.scale(b,b);a.np(-this.Wb());a.translate((this.Da+this.Ja)/-2,(this.Ea+this.Ia)/-2);a.Wd();this.dd?(this.Ub.left=this.ac.sc(this.Da),this.Ub.top=this.ac.tc(this.Ea),this.Ub.right=this.ac.sc(this.Ja),this.Ub.bottom=this.ac.tc(this.Ia),this.Qd||!this.Ub.wi(this.zh)?(n(this.Le),b=this.Vn(),this.Qd=!1,this.zh.Wg(this.Ub)):b=this.Le):b=this.j;for(var e,d=null,c=b.length-1;0<=c;--c)e=b[c],e!==d&&(this.zx(b[c],a),d=e);this.dd&&(this.Le=
b);this.Ud||(this.sn=this.b.ag++,a.vm(this.sn),a.qt(1,1,1),a.lr(),a.hA())};q.prototype.mc=function(a){var b=0,c=0;if(this.ne=this.hl||1!==this.opacity||0<this.ta.length||0!==this.ec){this.b.yb||(this.b.yb=a.Sc(this.b.P,this.b.O,this.b.Oa));if(this.b.yb.Uf!==this.b.P||this.b.yb.Tf!==this.b.O)a.deleteTexture(this.b.yb),this.b.yb=a.Sc(this.b.P,this.b.O,this.b.Oa);a.wd(this.b.yb);this.Ud&&a.clear(0,0,0,0)}this.Ud||(this.b.Ka?(a.vm(this.sn),a.qt(this.Gd[0]/255,this.Gd[1]/255,this.Gd[2]/255),a.lr(),a.wA()):
a.clear(this.Gd[0]/255,this.Gd[1]/255,this.Gd[2]/255,1));this.Ce=!0;var e=this.Rb(0,0,!0,!0),b=this.Rb(0,0,!1,!0);this.Ce=!1;this.b.bd&&(e=Math.round(e),b=Math.round(b));this.om(e,b,null);e=this.md();a.oe();a.scale(e,e);a.np(-this.Wb());a.translate((this.Da+this.Ja)/-2,(this.Ea+this.Ia)/-2);a.Wd();this.dd?(this.Ub.left=this.ac.sc(this.Da),this.Ub.top=this.ac.tc(this.Ea),this.Ub.right=this.ac.sc(this.Ja),this.Ub.bottom=this.ac.tc(this.Ia),this.Qd||!this.Ub.wi(this.zh)?(n(this.Le),b=this.Vn(),this.Qd=
!1,this.zh.Wg(this.Ub)):b=this.Le):b=this.j;var d,u,k=null,c=0;for(d=b.length;c<d;++c)u=b[c],u!==k&&(this.yx(b[c],a),k=u);this.dd&&(this.Le=b);this.ne&&(b=this.ta.length?this.ta[0].nb:0,c=this.ta.length?this.ta[0].index:0,0===this.ta.length||1===this.ta.length&&!a.fp(b)&&1===this.opacity?(1===this.ta.length?(a.Ec(b),a.Rh(this.zb.Di(),1/this.b.P,1/this.b.O,0,0,1,1,e,this.Wb(),this.Da,this.Ea,(this.Da+this.Ja)/2,(this.Ea+this.Ia)/2,this.b.Mb.Y,this.Ta[c]),a.km(b)&&(this.b.da=!0)):a.Ec(0),a.wd(this.zb.Di()),
a.Kf(this.opacity),a.Cc(this.b.yb),a.Jf(this.ic,this.fc),a.oe(),a.Wd(),e=this.b.P/2,b=this.b.O/2,a.Bj(-e,b,e,b,e,-b,-e,-b),a.Cc(null)):this.zb.jp(a,this,null,this.zb.Di()))};q.prototype.yx=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Ha();var c=a.Pa;c.right<this.Da||c.bottom<this.Ea||c.left>this.Ja||c.top>this.Ia||(b.vm(a.ag),a.gu?this.Ax(a,b):(b.Ec(0),b.Jf(a.ic,a.fc),a.mc(b)))}};q.prototype.zx=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Ha();var c=a.Pa;c.right<this.Da||c.bottom<
this.Ea||c.left>this.Ja||c.top>this.Ia||(a.ag=this.b.ag++,0===a.ec&&1===a.opacity&&a.We&&a.wf&&(b.vm(a.ag),a.wf(b)))}};q.prototype.Ax=function(a,b){var c=a.ta[0].nb,e=a.ta[0].index,d=this.md();if(1!==a.ta.length||b.fp(c)||b.Zz(c)||(a.n||a.u.Wb())&&b.yj(c)||1!==a.opacity||a.type.za.Cs)this.zb.jp(b,this,a,this.ne?this.b.yb:this.zb.Di()),b.oe(),b.scale(d,d),b.np(-this.Wb()),b.translate((this.Da+this.Ja)/-2,(this.Ea+this.Ia)/-2),b.Wd();else{b.Ec(c);b.Jf(a.ic,a.fc);b.km(c)&&(this.b.da=!0);var u=0,k=0,
h=0,p=0;b.yj(c)&&(p=a.Pa,u=this.pc(p.left,p.top,!0,!0),k=this.pc(p.left,p.top,!1,!0),h=this.pc(p.right,p.bottom,!0,!0),p=this.pc(p.right,p.bottom,!1,!0),u=u/windowWidth,k=1-k/windowHeight,h=h/windowWidth,p=1-p/windowHeight);var y;a.Tb&&a.Tb.J?(y=a.Tb.J,c=1/y.width,y=1/y.height):(c=1/a.width,y=1/a.height);b.Rh(this.ne?this.b.yb:this.zb.Di(),c,y,u,k,h,p,d,this.Wb(),this.Da,this.Ea,(this.Da+this.Ja)/2,(this.Ea+this.Ia)/2,this.b.Mb.Y,a.Ta[e]);a.mc(b)}};q.prototype.Rb=function(a,b,c,e){var d=this.b.devicePixelRatio;
this.b.qg&&(a*=d,b*=d);var d=this.b.Ys,u=this.b.Zs,d=(this.zb.scrollX-d)*this.td+d,u=(this.zb.scrollY-u)*this.ud+u,k=d,h=u,p=1/this.md(!e);e?(k-=this.b.P*p/2,h-=this.b.O*p/2):(k-=this.b.width*p/2,h-=this.b.height*p/2);k+=a*p;h+=b*p;b=this.Wb();0!==b&&(k-=d,h-=u,a=Math.cos(b),b=Math.sin(b),e=k*a-h*b,h=h*a+k*b,k=e+d,h+=u);return c?k:h};q.prototype.pc=function(a,b,c,e){var d=this.b.Ys,u=this.b.Zs,k=(this.zb.scrollX-d)*this.td+d,h=(this.zb.scrollY-u)*this.ud+u,u=k,d=h,p=this.Wb();if(0!==p){a-=k;b-=h;
var y=Math.cos(-p),p=Math.sin(-p),t=a*y-b*p;b=b*y+a*p;a=t+k;b+=h}k=1/this.md(!e);e?(u-=this.b.P*k/2,d-=this.b.O*k/2):(u-=this.b.width*k/2,d-=this.b.height*k/2);u=(a-u)/k;d=(b-d)/k;a=this.b.devicePixelRatio;this.b.qg&&!e&&(u/=a,d/=a);return c?u:d};q.prototype.ab=function(){var a,b,c,e={s:this.scale,a:this.n,vl:this.Da,vt:this.Ea,vr:this.Ja,vb:this.Ia,v:this.visible,bc:this.Gd,t:this.Ud,px:this.td,py:this.ud,o:this.opacity,zr:this.Yd,fx:[],cg:this.si,instances:[]};a=0;for(b=this.X.length;a<b;a++)c=
this.X[a],e.fx.push({name:c.name,active:c.Qb,params:this.Ta[c.index]});return e};q.prototype.Ab=function(a){var b,c,e;this.scale=a.s;this.n=a.a;this.Da=a.vl;this.Ea=a.vt;this.Ja=a.vr;this.Ia=a.vb;this.visible=a.v;this.Gd=a.bc;this.Ud=a.t;this.td=a.px;this.ud=a.py;this.opacity=a.o;this.Yd=a.zr;this.si=a.cg||[];Ba(this.Wc,this.Lt);var d=new da;b=0;for(e=this.si.length;b<e;++b)d.add(this.si[b]);c=b=0;for(e=this.Wc.length;b<e;++b)d.contains(this.Wc[b][2])||(this.Wc[c]=this.Wc[b],++c);Aa(this.Wc,c);c=
a.fx;b=0;for(e=c.length;b<e;b++)if(a=this.Qn(c[b].name))a.Qb=c[b].active,this.Ta[a.index]=c[b].params;this.Vd();this.j.sort(l);this.Ng=!0};Wb=q})();
(function(){function d(a,b){var c,e=a.length;switch(e){case 0:return!0;case 1:return a[0]===b[0];case 2:return a[0]===b[0]&&a[1]===b[1];default:for(c=0;c<e;c++)if(a[c]!==b[c])return!1;return!0}}function l(a,b){return a.index-b.index}function q(a){var b,c,e,k;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(l);a.length>=w.length&&(w.length=a.length+1);w[a.length]||(w[a.length]=[]);k=w[a.length];b=0;for(c=k.length;b<c;b++)if(e=k[b],d(a,e))return e;k.push(a);return a}
function m(a,b){this.b=a;this.Xt={};this.gr={};this.ao=!1;this.Dr=new da;this.yn=[];this.gn=[];this.name=b[0];var c=b[1];this.xf=[];var e,k;e=0;for(k=c.length;e<k;e++)this.Fr(c[e],null,this.xf)}function n(a){this.type=a;this.j=[];this.ca=[];this.ea=!0}function v(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.Ga=[];this.Lf=[];this.Br=this.Mm=this.Mp=this.io=this.group=this.Cp=!1;this.ub=[];this.ed=[];this.yd=[];this.Gi="";this.Fi=this.io=this.group=!1;this.Jk=null;c[1]&&(this.Gi=c[1][1].toLowerCase(),
this.group=!0,this.io=!!c[1][0],this.Jk=[],this.Fi=this.io,this.b.Sg.push(this),this.b.ol[this.Gi]=this);this.ad=c[2];this.la=c[4];this.group||(this.b.Nq[this.la.toString()]=this);var e=c[5];a=0;for(b=e.length;a<b;a++){var k=new Xb(this,e[a]);k.index=a;this.ub.push(k);this.Gq(k.type)}e=c[6];a=0;for(b=e.length;a<b;a++)k=new Yb(this,e[a]),k.index=a,this.ed.push(k);if(8===c.length)for(c=c[7],a=0,b=c.length;a<b;a++)this.sheet.Fr(c[a],this,this.yd);this.Bl=!1;this.ub.length&&(this.Bl=null==this.ub[0].type&&
this.ub[0].Vb==X.prototype.k.aq)}function t(a,b){var c,e,k;if(a&&(-1===b.indexOf(a)&&b.push(a),a.Xb))for(c=0,e=a.Ic.length;c<e;c++)k=a.Ic[c],a!==k&&-1===b.indexOf(k)&&b.push(k)}function b(a,b){this.Rc=a;this.sheet=a.sheet;this.b=a.b;this.ja=[];this.Ua=[];this.R={};this.index=-1;this.ji=!1;this.Vb=this.b.hf(b[1]);this.trigger=0<b[3];this.fr=2===b[3];this.ke=b[4];this.sl=b[5];this.sz=b[6];this.la=b[7];this.b.tf[this.la.toString()]=this;-1===b[0]?(this.type=null,this.mb=this.pp,this.Sf=null,this.Id=
-1):(this.type=this.b.F[b[0]],this.mb=this.sz?this.nA:this.op,b[2]?(this.Sf=this.type.kl(b[2]),this.Id=this.type.Nn(b[2])):(this.Sf=null,this.Id=-1),this.Rc.parent&&this.Rc.parent.wm());this.fr&&(this.mb=this.oA);if(10===b.length){var c,e,k=b[9];c=0;for(e=k.length;c<e;c++){var f=new Zb(this,k[c]);this.ja.push(f)}this.Ua.length=k.length}}function c(a,b){this.Rc=a;this.sheet=a.sheet;this.b=a.b;this.ja=[];this.Ua=[];this.R={};this.index=-1;this.ji=!1;this.Vb=this.b.hf(b[1]);-1===b[0]?(this.type=null,
this.mb=this.pp,this.Sf=null,this.Id=-1):(this.type=this.b.F[b[0]],this.mb=this.op,b[2]?(this.Sf=this.type.kl(b[2]),this.Id=this.type.Nn(b[2])):(this.Sf=null,this.Id=-1));this.la=b[3];this.b.lf[this.la.toString()]=this;if(6===b.length){var c,e,k=b[5];c=0;for(e=k.length;c<e;c++){var f=new Zb(this,k[c]);this.ja.push(f)}this.Ua.length=k.length}}function e(){k++;u.length===k&&u.push(new $b);return u[k]}function a(a,b){this.sd=a;this.Rc=a.Rc;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.ge=null;this.Xe=
0;this.get=null;this.Vq=0;this.zb=null;this.key=0;this.object=null;this.index=0;this.ck=this.Jg=this.ck=this.Jg=this.jr=this.dg=this.dk=null;this.Ad=!1;var c,e,k;switch(b[0]){case 0:case 7:this.ge=new ac(this,b[1]);this.Xe=0;this.get=this.Oy;break;case 1:this.ge=new ac(this,b[1]);this.Xe=0;this.get=this.Py;break;case 5:this.ge=new ac(this,b[1]);this.Xe=0;this.get=this.Ty;break;case 3:case 8:this.Vq=b[1];this.get=this.My;break;case 6:this.zb=this.b.Ah[b[1]];this.get=this.Uy;break;case 9:this.key=b[1];
this.get=this.Sy;break;case 4:this.object=this.b.F[b[1]];this.get=this.Vy;this.Rc.Gq(this.object);this.sd instanceof Yb?this.Rc.wm():this.Rc.parent&&this.Rc.parent.wm();break;case 10:this.index=b[1];a.type&&a.type.L?(this.get=this.Qy,this.Ad=!0):this.get=this.Ry;break;case 11:this.dk=b[1];this.dg=null;this.get=this.Ny;break;case 2:case 12:this.jr=b[1];this.get=this.Ly;break;case 13:for(this.get=this.Wy,this.Jg=[],this.ck=[],c=1,e=b.length;c<e;c++)k=new Zb(this.sd,b[c]),this.Jg.push(k),this.ck.push(0)}}
function g(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.Ga=[];this.name=c[1];this.ek=c[2];this.ho=c[3];this.Ui=!!c[4];this.Al=!!c[5];this.la=c[6];this.b.$h[this.la.toString()]=this;this.data=this.ho;this.parent?(this.Cg=this.Ui||this.Al?-1:this.b.yA++,this.b.Dw.push(this)):(this.Cg=-1,this.b.Cw.push(this))}function f(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.Ga=[];this.Ji=null;this.bz=c[1];this.Qb=!0}function r(){this.Nt=[];this.reset(null)}var w=[];m.prototype.toString=function(){return this.name};
m.prototype.Fr=function(a,b,c){switch(a[0]){case 0:a=new bc(this,b,a);if(a.ad)for(c.push(a),c=0,b=a.ub.length;c<b;c++)a.ub[c].trigger&&this.Gr(a,c);else a.Qr()?this.Gr(a,0):c.push(a);break;case 1:a=new Tb(this,b,a);c.push(a);break;case 2:a=new cc(this,b,a),c.push(a)}};m.prototype.$a=function(){var a,b;a=0;for(b=this.xf.length;a<b;a++)this.xf[a].$a(a<b-1&&this.xf[a+1].Bl)};m.prototype.Sp=function(){R(this.yn);R(this.gn);this.Fq(this);R(this.gn)};m.prototype.Fq=function(a){var b,c,e,k,f=a.yn,g=a.gn,
d=this.Dr.cf();b=0;for(c=d.length;b<c;++b)e=d[b],k=e.Ji,!e.Qb||a===k||-1<g.indexOf(k)||(g.push(k),k.Fq(a),f.push(k))};m.prototype.mb=function(a){this.b.ZB||(this.ao=!0,a||(this.b.qo=!0));var b,c;b=0;for(c=this.xf.length;b<c;b++){var e=this.xf[b];e.mb();this.b.rn(e.Ga);this.b.zf&&this.b.cc()}a||(this.b.qo=!1)};m.prototype.Gr=function(a,b){a.ad||this.b.Pm.push(a);var c,e,k=a.ub[b],f;k.type?f=k.type.name:f="system";var g=(c=k.fr)?this.gr:this.Xt;g[f]||(g[f]=[]);f=g[f];g=k.Vb;if(c){if(k.ja.length&&(k=
k.ja[0],1===k.type&&2===k.ge.type)){k=k.ge.value.toLowerCase();c=0;for(e=f.length;c<e;c++)if(f[c].method==g){c=f[c].xi;c[k]?c[k].push([a,b]):c[k]=[[a,b]];return}c={};c[k]=[[a,b]];f.push({method:g,xi:c})}}else{c=0;for(e=f.length;c<e;c++)if(f[c].method==g){f[c].xi.push([a,b]);return}Y&&g===Y.prototype.k.Rg?f.unshift({method:g,xi:[[a,b]]}):f.push({method:g,xi:[[a,b]]})}};Ib=m;n.prototype.$n=function(){return this.ea?this.type.j.length:this.j.length};n.prototype.wc=function(){return this.ea?this.type.j:
this.j};n.prototype.vj=function(a){a&&(a.b.Ya().cb.ad?(this.ea&&(R(this.j),Ba(this.ca,a.type.j),this.ea=!1),a=this.ca.indexOf(a),-1!==a&&(this.j.push(this.ca[a]),this.ca.splice(a,1))):(this.ea=!1,R(this.j),this.j[0]=a))};qb=n;window._c2hh_="";v.prototype.$a=function(a){var b,c=this.parent;if(this.group)for(this.Mm=!0;c;){if(!c.group){this.Mm=!1;break}c=c.parent}this.Mp=!this.Qr()&&(!this.parent||this.parent.group&&this.parent.Mm);this.Br=!!a;this.Lf=this.Ga.slice(0);for(c=this.parent;c;){a=0;for(b=
c.Ga.length;a<b;a++)this.Bw(c.Ga[a]);c=c.parent}this.Ga=q(this.Ga);this.Lf=q(this.Lf);a=0;for(b=this.ub.length;a<b;a++)this.ub[a].$a();a=0;for(b=this.ed.length;a<b;a++)this.ed[a].$a();a=0;for(b=this.yd.length;a<b;a++)this.yd[a].$a(a<b-1&&this.yd[a+1].Bl)};v.prototype.sA=function(a){if(this.Fi!==!!a){this.Fi=!!a;var b;a=0;for(b=this.Jk.length;a<b;++a)this.Jk[a].au();0<b&&this.b.Ba.bg&&this.b.Ba.bg.Sp()}};v.prototype.Gq=function(a){t(a,this.Ga)};v.prototype.Bw=function(a){t(a,this.Lf)};v.prototype.wm=
function(){this.Cp=!0;this.parent&&this.parent.wm()};v.prototype.Qr=function(){return this.ub.length?this.ub[0].trigger:!1};v.prototype.mb=function(){var a,b,c=!1,e=this.b,k=this.b.Ya();k.cb=this;var f=this.ub;this.Bl||(k.An=!1);if(this.ad){0===f.length&&(c=!0);k.bb=0;for(a=f.length;k.bb<a;k.bb++)b=f[k.bb],b.trigger||(b=b.mb())&&(c=!0);(k.vg=c)&&this.pm()}else{k.bb=0;for(a=f.length;k.bb<a;k.bb++)if(b=f[k.bb].mb(),!b){k.vg=!1;this.Mp&&e.zf&&e.cc();return}k.vg=!0;this.pm()}this.Ex(k)};v.prototype.Ex=
function(a){a.vg&&this.Br&&(a.An=!0);this.Mp&&this.b.zf&&this.b.cc()};v.prototype.lA=function(a){this.b.Ya().cb=this;this.ub[a].mb()&&(this.pm(),this.b.Ya().vg=!0)};v.prototype.pm=function(){var a=this.b.Ya(),b;a.uc=0;for(b=this.ed.length;a.uc<b;a.uc++)if(this.ed[a.uc].mb())return;this.ot()};v.prototype.jA=function(){var a=this.b.Ya(),b;for(b=this.ed.length;a.uc<b;a.uc++)if(this.ed[a.uc].mb())return;this.ot()};v.prototype.ot=function(){if(this.yd.length){var a,b,c,e,k=this.yd.length-1;this.b.lm(this);
if(this.Cp)for(a=0,b=this.yd.length;a<b;a++)c=this.yd[a],(e=!this.Mm||!this.group&&a<k)&&this.b.Aj(c.Ga),c.mb(),e?this.b.Hf(c.Ga):this.b.rn(c.Ga);else for(a=0,b=this.yd.length;a<b;a++)this.yd[a].mb();this.b.hm()}};v.prototype.mA=function(){var a=this.b.Ya();a.cb=this;var b=!1,c;a.bb=0;for(c=this.ub.length;a.bb<c;a.bb++)if(this.ub[a.bb].mb())b=!0;else if(!this.ad)return!1;return this.ad?b:!0};v.prototype.mp=function(){this.b.eg++;var a=this.b.Ya().bb,b=this.b.lm(this);if(!this.ad)for(b.bb=a+1,a=this.ub.length;b.bb<
a;b.bb++)if(!this.ub[b.bb].mb()){this.b.hm();return}this.pm();this.b.hm()};v.prototype.kz=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.ub[b].type===a.type)return!1;return!0};bc=v;b.prototype.$a=function(){var a,b,c;a=0;for(b=this.ja.length;a<b;a++)c=this.ja[a],c.$a(),c.Ad&&(this.ji=!0)};b.prototype.oA=function(){return!0};b.prototype.pp=function(){var a,b;a=0;for(b=this.ja.length;a<b;a++)this.Ua[a]=this.ja[a].get();return Ta(this.Vb.apply(this.b.re,this.Ua),this.sl)};b.prototype.nA=
function(){var a,b;a=0;for(b=this.ja.length;a<b;a++)this.Ua[a]=this.ja[a].get();a=this.Vb.apply(this.Sf?this.Sf:this.type,this.Ua);this.type.fd();return a};b.prototype.op=function(){var a,b,c,e,k,f,g,d,r=this.type,u=r.V(),t=this.Rc.ad&&!this.trigger;b=0;var w=r.Xb,n=r.L,m=r.Fe,l=this.Id,q=-1<l,v=this.ji,G=this.ja,z=this.Ua,K=this.sl,I=this.Vb,H;if(v)for(b=0,k=G.length;b<k;++b)f=G[b],f.Ad||(z[b]=f.get(0));else for(b=0,k=G.length;b<k;++b)z[b]=G[b].get(0);if(u.ea){R(u.j);R(u.ca);H=r.j;a=0;for(e=H.length;a<
e;++a){d=H[a];if(v)for(b=0,k=G.length;b<k;++b)f=G[b],f.Ad&&(z[b]=f.get(a));q?(b=0,n&&(b=d.type.eh[m]),b=I.apply(d.T[l+b],z)):b=I.apply(d,z);(g=Ta(b,K))?u.j.push(d):t&&u.ca.push(d)}r.finish&&r.finish(!0);u.ea=!1;r.fd();return u.$n()}c=0;H=(g=t&&!this.Rc.kz(this))?u.ca:u.j;var M=!1;a=0;for(e=H.length;a<e;++a){d=H[a];if(v)for(b=0,k=G.length;b<k;++b)f=G[b],f.Ad&&(z[b]=f.get(a));q?(b=0,n&&(b=d.type.eh[m]),b=I.apply(d.T[l+b],z)):b=I.apply(d,z);if(Ta(b,K))if(M=!0,g){if(u.j.push(d),w)for(b=0,k=d.siblings.length;b<
k;b++)f=d.siblings[b],f.type.V().j.push(f)}else{H[c]=d;if(w)for(b=0,k=d.siblings.length;b<k;b++)f=d.siblings[b],f.type.V().j[c]=f;c++}else if(g){H[c]=d;if(w)for(b=0,k=d.siblings.length;b<k;b++)f=d.siblings[b],f.type.V().ca[c]=f;c++}else if(t&&(u.ca.push(d),w))for(b=0,k=d.siblings.length;b<k;b++)f=d.siblings[b],f.type.V().ca.push(f)}Aa(H,c);if(w)for(n=r.Ic,a=0,e=n.length;a<e;a++)d=n[a].V(),g?Aa(d.ca,c):Aa(d.j,c);c=M;if(g&&!M)for(a=0,e=u.j.length;a<e;a++){d=u.j[a];if(v)for(b=0,k=G.length;b<k;b++)f=
G[b],f.Ad&&(z[b]=f.get(a));b=q?I.apply(d.T[l],z):I.apply(d,z);if(Ta(b,K)){M=!0;break}}r.finish&&r.finish(c||t);return t?M:u.$n()};Xb=b;c.prototype.$a=function(){var a,b,c;a=0;for(b=this.ja.length;a<b;a++)c=this.ja[a],c.$a(),c.Ad&&(this.ji=!0)};c.prototype.pp=function(){var a=this.b,b,c,e=this.ja,k=this.Ua;b=0;for(c=e.length;b<c;++b)k[b]=e[b].get();return this.Vb.apply(a.re,k)};c.prototype.op=function(){var a=this.type,b=this.Id,c=a.Fe,e=this.ji,k=this.ja,f=this.Ua,g=this.Vb,d=a.V().wc(),a=a.L,r=-1<
b,u,t,w,n,m,l;if(e)for(t=0,n=k.length;t<n;++t)m=k[t],m.Ad||(f[t]=m.get(0));else for(t=0,n=k.length;t<n;++t)f[t]=k[t].get(0);u=0;for(w=d.length;u<w;++u){l=d[u];if(e)for(t=0,n=k.length;t<n;++t)m=k[t],m.Ad&&(f[t]=m.get(u));r?(t=0,a&&(t=l.type.eh[c]),g.apply(l.T[b+t],f)):g.apply(l,f)}return!1};Yb=c;var u=[],k=-1;a.prototype.$a=function(){var a,b;if(11===this.type)this.dg=this.b.rr(this.dk,this.Rc.parent);else if(13===this.type)for(a=0,b=this.Jg.length;a<b;a++)this.Jg[a].$a();this.ge&&this.ge.$a()};a.prototype.Bz=
function(a){this.Ad||!a||a.za.Bm||(this.Ad=!0)};a.prototype.Bt=function(){this.Ad=!0};a.prototype.Oy=function(a){this.Xe=a||0;a=e();this.ge.get(a);k--;return a.data};a.prototype.Py=function(a){this.Xe=a||0;a=e();this.ge.get(a);k--;return ka(a.data)?a.data:""};a.prototype.Vy=function(){return this.object};a.prototype.My=function(){return this.Vq};a.prototype.Ty=function(a){this.Xe=a||0;a=e();this.ge.get(a);k--;return a.Lb()?this.b.Ci(a.data):this.b.Tn(a.data)};a.prototype.Uy=function(){return this.zb};
a.prototype.Sy=function(){return this.key};a.prototype.Ry=function(){return this.index};a.prototype.Qy=function(a){a=a||0;var b=this.sd.type,c=null,c=b.V(),e=c.wc();if(e.length)c=e[a%e.length].type;else if(c.ca.length)c=c.ca[a%c.ca.length].type;else if(b.j.length)c=b.j[a%b.j.length].type;else return 0;return this.index+c.$k[b.Fe]};a.prototype.Ny=function(){return this.dg};a.prototype.Ly=function(){return this.jr};a.prototype.Wy=function(){var a,b;a=0;for(b=this.Jg.length;a<b;a++)this.ck[a]=this.Jg[a].get();
return this.ck};Zb=a;g.prototype.$a=function(){this.Ga=q(this.Ga)};g.prototype.Ve=function(a){var b=this.b.pr();this.parent&&!this.Ui&&b?(this.Cg>=b.length&&(b.length=this.Cg+1),b[this.Cg]=a):this.data=a};g.prototype.kg=function(){var a=this.b.pr();return!this.parent||this.Ui||!a||this.Al?this.data:this.Cg>=a.length||"undefined"===typeof a[this.Cg]?this.ho:a[this.Cg]};g.prototype.mb=function(){!this.parent||this.Ui||this.Al||this.Ve(this.ho)};Tb=g;f.prototype.toString=function(){return"include:"+
this.Ji.toString()};f.prototype.$a=function(){this.Ji=this.b.Dn[this.bz];this.sheet.Dr.add(this);this.Ga=q(this.Ga);for(var a=this.parent;a;)a.group&&a.Jk.push(this),a=a.parent;this.au()};f.prototype.mb=function(){this.parent&&this.b.zj(this.b.F);this.Ji.ao||this.Ji.mb(!0);this.parent&&this.b.Hf(this.b.F)};f.prototype.au=function(){for(var a=this.parent;a;){if(a.group&&!a.Fi){this.Qb=!1;return}a=a.parent}this.Qb=!0};cc=f;r.prototype.reset=function(a){this.cb=a;this.uc=this.bb=0;R(this.Nt);this.An=
this.vg=!1};r.prototype.mz=function(){return this.cb.Cp?!0:this.bb<this.cb.ub.length-1?!!this.cb.Ga.length:!1};Sb=r})();
(function(){function d(d,b){this.sd=d;this.b=d.b;this.type=b[0];this.get=[this.Wx,this.Sx,this.fy,this.iy,this.Hx,this.gy,this.$x,this.Px,this.Zx,this.ey,this.Ix,this.cy,this.Qx,this.ay,this.Xx,this.Yx,this.Tx,this.Ux,this.Ox,this.hy,this.by,this.Vx,this.Nx,this.Rx][this.type];var c=null;this.Me=this.ja=this.Ua=this.Vb=this.Jm=this.second=this.first=this.value=null;this.Id=-1;this.Kd=null;this.hu=-1;this.dg=this.dk=null;this.Qh=!1;switch(this.type){case 0:case 1:case 2:this.value=b[1];break;case 3:this.first=
new ac(d,b[1]);break;case 18:this.first=new ac(d,b[1]);this.second=new ac(d,b[2]);this.Jm=new ac(d,b[3]);break;case 19:this.Vb=this.b.hf(b[1]);this.Vb!==X.prototype.xa.random&&this.Vb!==X.prototype.xa.Pw||this.sd.Bt();this.Ua=[];this.ja=[];3===b.length?(c=b[2],this.Ua.length=c.length+1):this.Ua.length=1;break;case 20:this.Me=this.b.F[b[1]];this.Id=-1;this.Vb=this.b.hf(b[2]);this.Qh=b[3];qc&&this.Vb===qc.prototype.xa.pu&&this.sd.Bt();b[4]?this.Kd=new ac(d,b[4]):this.Kd=null;this.Ua=[];this.ja=[];6===
b.length?(c=b[5],this.Ua.length=c.length+1):this.Ua.length=1;break;case 21:this.Me=this.b.F[b[1]];this.Qh=b[2];b[3]?this.Kd=new ac(d,b[3]):this.Kd=null;this.hu=b[4];break;case 22:this.Me=this.b.F[b[1]];this.Me.kl(b[2]);this.Id=this.Me.Nn(b[2]);this.Vb=this.b.hf(b[3]);this.Qh=b[4];b[5]?this.Kd=new ac(d,b[5]):this.Kd=null;this.Ua=[];this.ja=[];7===b.length?(c=b[6],this.Ua.length=c.length+1):this.Ua.length=1;break;case 23:this.dk=b[1],this.dg=null}this.sd.Bz(this.Me);4<=this.type&&17>=this.type&&(this.first=
new ac(d,b[1]),this.second=new ac(d,b[2]));if(c){var e,a;e=0;for(a=c.length;e<a;e++)this.ja.push(new ac(d,c[e]))}}function l(){++v;n.length===v&&n.push(new $b);return n[v]}function q(d,b,c){var e,a;e=0;for(a=d.length;e<a;++e)d[e].get(c),b[e+1]=c.data}function m(d,b){this.type=d||dc.Pg;this.data=b||0;this.Fg=null;this.type==dc.Pg&&(this.data=Math.floor(this.data))}d.prototype.$a=function(){23===this.type&&(this.dg=this.sd.b.rr(this.dk,this.sd.Rc.parent));this.first&&this.first.$a();this.second&&this.second.$a();
this.Jm&&this.Jm.$a();this.Kd&&this.Kd.$a();if(this.ja){var d,b;d=0;for(b=this.ja.length;d<b;d++)this.ja[d].$a()}};var n=[],v=-1;d.prototype.hy=function(d){var b=this.ja,c=this.Ua;c[0]=d;d=l();q(b,c,d);--v;this.Vb.apply(this.b.re,c)};d.prototype.by=function(d){var b=this.Me,c=this.Ua,e=this.ja,a=this.Kd,g=this.Vb,f=this.sd.Xe,r=b.V(),n=r.wc();if(!n.length)if(r.ca.length)n=r.ca;else{this.Qh?d.Dc(""):d.Fa(0);return}c[0]=d;d.Fg=b;d=l();q(e,c,d);a&&(a.get(d),d.Lb()&&(f=d.data,n=b.j));--v;b=n.length;if(f>=
b||f<=-b)f%=b;0>f&&(f+=b);g.apply(n[f],c)};d.prototype.Nx=function(d){var b=this.Me,c=this.Ua,e=this.ja,a=this.Kd,g=this.Id,f=this.Vb,r=this.sd.Xe,n=b.V(),u=n.wc();if(!u.length)if(n.ca.length)u=n.ca;else{this.Qh?d.Dc(""):d.Fa(0);return}c[0]=d;d.Fg=b;d=l();q(e,c,d);a&&(a.get(d),d.Lb()&&(r=d.data,u=b.j));--v;e=u.length;if(r>=e||r<=-e)r%=e;0>r&&(r+=e);r=u[r];u=0;b.L&&(u=r.type.eh[b.Fe]);f.apply(r.T[g+u],c)};d.prototype.Vx=function(d){var b=this.Kd,c=this.Me,e=this.hu,a=this.sd.Xe,g=c.V(),f=g.wc();if(!f.length)if(g.ca.length)f=
g.ca;else{this.Qh?d.Dc(""):d.Fa(0);return}if(b){g=l();b.get(g);if(g.Lb()){a=g.data;f=c.j;0!==f.length&&(a%=f.length,0>a&&(a+=f.length));a=c.Sn(a);c=a.xb[e];ka(c)?d.Dc(c):d.N(c);--v;return}--v}b=f.length;if(a>=b||a<=-b)a%=b;0>a&&(a+=b);a=f[a];f=0;c.L&&(f=a.type.$k[c.Fe]);c=a.xb[e+f];ka(c)?d.Dc(c):d.N(c)};d.prototype.Wx=function(d){d.type=dc.Pg;d.data=this.value};d.prototype.Sx=function(d){d.type=dc.Og;d.data=this.value};d.prototype.fy=function(d){d.type=dc.String;d.data=this.value};d.prototype.iy=
function(d){this.first.get(d);d.Lb()&&(d.data=-d.data)};d.prototype.Hx=function(d){this.first.get(d);var b=l();this.second.get(b);d.Lb()&&b.Lb()&&(d.data+=b.data,b.oh()&&d.Eh());--v};d.prototype.gy=function(d){this.first.get(d);var b=l();this.second.get(b);d.Lb()&&b.Lb()&&(d.data-=b.data,b.oh()&&d.Eh());--v};d.prototype.$x=function(d){this.first.get(d);var b=l();this.second.get(b);d.Lb()&&b.Lb()&&(d.data*=b.data,b.oh()&&d.Eh());--v};d.prototype.Px=function(d){this.first.get(d);var b=l();this.second.get(b);
d.Lb()&&b.Lb()&&(d.data/=b.data,d.Eh());--v};d.prototype.Zx=function(d){this.first.get(d);var b=l();this.second.get(b);d.Lb()&&b.Lb()&&(d.data%=b.data,b.oh()&&d.Eh());--v};d.prototype.ey=function(d){this.first.get(d);var b=l();this.second.get(b);d.Lb()&&b.Lb()&&(d.data=Math.pow(d.data,b.data),b.oh()&&d.Eh());--v};d.prototype.Ix=function(d){this.first.get(d);var b=l();this.second.get(b);b.rh()||d.rh()?this.Kx(d,b):this.Jx(d,b);--v};d.prototype.Kx=function(d,b){d.rh()&&b.rh()?this.Mx(d,b):this.Lx(d,
b)};d.prototype.Mx=function(d,b){d.data+=b.data};d.prototype.Lx=function(d,b){d.rh()?d.data+=(Math.round(1E10*b.data)/1E10).toString():d.Dc(d.data.toString()+b.data)};d.prototype.Jx=function(d,b){d.Fa(d.data&&b.data?1:0)};d.prototype.cy=function(d){this.first.get(d);var b=l();this.second.get(b);d.Lb()&&b.Lb()&&(d.data||b.data?d.Fa(1):d.Fa(0));--v};d.prototype.Ox=function(d){this.first.get(d);d.data?this.second.get(d):this.Jm.get(d)};d.prototype.Qx=function(d){this.first.get(d);var b=l();this.second.get(b);
d.Fa(d.data===b.data?1:0);--v};d.prototype.ay=function(d){this.first.get(d);var b=l();this.second.get(b);d.Fa(d.data!==b.data?1:0);--v};d.prototype.Xx=function(d){this.first.get(d);var b=l();this.second.get(b);d.Fa(d.data<b.data?1:0);--v};d.prototype.Yx=function(d){this.first.get(d);var b=l();this.second.get(b);d.Fa(d.data<=b.data?1:0);--v};d.prototype.Tx=function(d){this.first.get(d);var b=l();this.second.get(b);d.Fa(d.data>b.data?1:0);--v};d.prototype.Ux=function(d){this.first.get(d);var b=l();
this.second.get(b);d.Fa(d.data>=b.data?1:0);--v};d.prototype.Rx=function(d){var b=this.dg.kg();ja(b)?d.N(b):d.Dc(b)};ac=d;m.prototype.oh=function(){return this.type===dc.Og};m.prototype.Lb=function(){return this.type===dc.Pg||this.type===dc.Og};m.prototype.rh=function(){return this.type===dc.String};m.prototype.Eh=function(){this.oh()||(this.rh()&&(this.data=parseFloat(this.data)),this.type=dc.Og)};m.prototype.Fa=function(d){this.type=dc.Pg;this.data=Math.floor(d)};m.prototype.N=function(d){this.type=
dc.Og;this.data=d};m.prototype.Dc=function(d){this.type=dc.String;this.data=d};m.prototype.xm=function(d){ja(d)?(this.type=dc.Og,this.data=d):ka(d)?(this.type=dc.String,this.data=d.toString()):(this.type=dc.Pg,this.data=0)};$b=m;dc={Pg:0,Og:1,String:2}})();function X(d){this.b=d;this.Fc=[]}
X.prototype.ab=function(){var d={},l,q,m,n,v,t,b,c;d.waits=[];var e=d.waits,a;l=0;for(q=this.Fc.length;l<q;l++){t=this.Fc[l];a={t:t.time,st:t.It,s:t.Bp,ev:t.dh.la,sm:[],sols:{}};t.dh.ed[t.uc]&&(a.act=t.dh.ed[t.uc].la);m=0;for(n=t.Ga.length;m<n;m++)a.sm.push(t.Ga[m].la);for(v in t.qc)if(t.qc.hasOwnProperty(v)){b=this.b.F[parseInt(v,10)];c={sa:t.qc[v].qm,insts:[]};m=0;for(n=t.qc[v].He.length;m<n;m++)c.insts.push(t.qc[v].He[m].uid);a.sols[b.la.toString()]=c}e.push(a)}return d};
X.prototype.Ab=function(d){d=d.waits;var l,q,m,n,v,t,b,c,e,a,g;R(this.Fc);l=0;for(q=d.length;l<q;l++)if(t=d[l],c=this.b.Nq[t.ev.toString()]){e=-1;m=0;for(n=c.ed.length;m<n;m++)if(c.ed[m].la===t.act){e=m;break}if(-1!==e){b={qc:{},Ga:[],zn:!1};b.time=t.t;b.It=t.st||"";b.Bp=!!t.s;b.dh=c;b.uc=e;m=0;for(n=t.sm.length;m<n;m++)(c=this.b.nl(t.sm[m]))&&b.Ga.push(c);for(v in t.sols)if(t.sols.hasOwnProperty(v)&&(c=this.b.nl(parseInt(v,10)))){e=t.sols[v];a={qm:e.sa,He:[]};m=0;for(n=e.insts.length;m<n;m++)(g=
this.b.jg(e.insts[m]))&&a.He.push(g);b.qc[c.index.toString()]=a}this.Fc.push(b)}}};
(function(){function d(){}function l(){}function q(){}var m=X.prototype;d.prototype.oq=function(){return!0};d.prototype.yv=function(){return!0};d.prototype.tu=function(b,e,a){return ec(b,e,a)};var n=[],v=-1;d.prototype.Fu=function(b){var e=b.V();v++;n.length===v&&n.push([]);var a=n[v];Ba(a,e.wc());var d=this.b.Ya(),f=d.cb,r=d.mz(),d=this.b.aA(),w,u,k,h,p,m,l=b.Xb;if(r)for(r=0,w=a.length;r<w&&!d.Pb;r++){this.b.Aj(f.Ga);h=a[r];e=b.V();e.ea=!1;R(e.j);e.j[0]=h;if(l)for(u=0,k=h.siblings.length;u<k;u++)p=
h.siblings[u],m=p.type.V(),m.ea=!1,R(m.j),m.j[0]=p;d.index=r;f.mp();this.b.Hf(f.Ga)}else for(e.ea=!1,R(e.j),r=0,w=a.length;r<w&&!d.Pb;r++){h=a[r];e.j[0]=h;if(l)for(u=0,k=h.siblings.length;u<k;u++)p=h.siblings[u],m=p.type.V(),m.ea=!1,R(m.j),m.j[0]=p;d.index=r;f.mp()}R(a);this.b.Tz();v--;return!1};d.prototype.pw=function(){var b=this.b.ll().R;"undefined"===typeof b.TriggerOnce_lastTick&&(b.TriggerOnce_lastTick=-1);var e=b.TriggerOnce_lastTick,a=this.b.Mg;b.TriggerOnce_lastTick=a;return this.b.Bo||e!==
a-1};d.prototype.wu=function(b,e,a){return ec(b.kg(),e,a)};d.prototype.aq=function(){var b=this.b.Ya();return b.An?!1:!b.vg};d.prototype.pq=function(){return!0};d.prototype.lv=function(){return!0};d.prototype.Zm=function(){return!0};d.prototype.tq=function(){return!0};d.prototype.zv=function(){return!0};d.prototype.ok=function(){return!0};d.prototype.nu=function(b,e,a){return Na(U(b),U(a))<=U(e)};d.prototype.Ou=function(b,e){return Pa(U(b),U(e))};d.prototype.Lu=function(b,e,a){b=Ka(b);e=Ka(e);a=Ka(a);
return Pa(a,e)?Pa(b,e)&&!Pa(b,a):!(!Pa(b,e)&&Pa(b,a))};m.k=new d;l.prototype.Hu=function(b){this.b.rg||this.b.ye||(this.b.ye=b)};l.prototype.bv=function(b){if(!this.b.rg&&!this.b.ye){var e=this.b.Nc.indexOf(this.b.Ba);if(!b||0!==e)if(b||e!==this.b.Nc.length-1)this.b.ye=this.b.Nc[e+(b?-1:1)]}};l.prototype.Au=function(b,e,a,d){if(e&&b&&(e=this.b.Lk(b,e,a,d))){this.b.Yc++;var f;this.b.trigger(Object.getPrototypeOf(b.za).k.Qg,e);if(e.Xb)for(a=0,d=e.siblings.length;a<d;a++)f=e.siblings[a],this.b.trigger(Object.getPrototypeOf(f.type.za).k.Qg,
f);this.b.Yc--;b=b.V();b.ea=!1;R(b.j);b.j[0]=e;if(e.Xb)for(a=0,d=e.siblings.length;a<d;a++)f=e.siblings[a],b=f.type.V(),b.ea=!1,R(b.j),b.j[0]=f}};l.prototype.bw=function(b,e){0===b.ek?ja(e)?b.Ve(e):b.Ve(parseFloat(e)):1===b.ek&&b.Ve(e.toString())};l.prototype.mu=function(b,e){0===b.ek?ja(e)?b.Ve(b.kg()+e):b.Ve(b.kg()+parseFloat(e)):1===b.ek&&b.Ve(b.kg()+e.toString())};l.prototype.lw=function(b,e){0===b.ek&&(ja(e)?b.Ve(b.kg()-e):b.Ve(b.kg()-parseFloat(e)))};l.prototype.aw=function(b){0>b&&(b=0);this.b.Nf=
b};var t=[],b=[];l.prototype.qw=function(c){if(!(0>c)){var e,a,d,f=this.b.Ya(),r;t.length?r=t.pop():r={qc:{},Ga:[]};r.zn=!1;r.time=this.b.Mb.Y+c;r.It="";r.Bp=!1;r.dh=f.cb;r.uc=f.uc+1;c=0;for(e=this.b.F.length;c<e;c++)d=this.b.F[c],a=d.V(),a.ea&&-1===f.cb.Ga.indexOf(d)||(r.Ga.push(d),d=void 0,b.length?d=b.pop():d={He:[]},d.qm=!1,d.qm=a.ea,Ba(d.He,a.j),r.qc[c.toString()]=d);this.Fc.push(r);return!0}};l.prototype.Iu=function(b){if(!this.b.rg&&!this.b.ye)for(var e in this.b.Ah)if(this.b.Ah.hasOwnProperty(e)&&
mb(e,b)){this.b.ye=this.b.Ah[e];break}};m.B=new l;q.prototype["int"]=function(b,e){ka(e)?(b.Fa(parseInt(e,10)),isNaN(b.data)&&(b.data=0)):b.Fa(e)};q.prototype["float"]=function(b,e){ka(e)?(b.N(parseFloat(e)),isNaN(b.data)&&(b.data=0)):b.N(e)};q.prototype.random=function(b,e,a){void 0===a?b.N(Math.random()*e):b.N(Math.random()*(a-e)+e)};q.prototype.sqrt=function(b,e){b.N(Math.sqrt(e))};q.prototype.abs=function(b,e){b.N(Math.abs(e))};q.prototype.round=function(b,e){b.Fa(Math.round(e))};q.prototype.floor=
function(b,e){b.Fa(Math.floor(e))};q.prototype.ceil=function(b,e){b.Fa(Math.ceil(e))};q.prototype.sin=function(b,e){b.N(Math.sin(U(e)))};q.prototype.cos=function(b,e){b.N(Math.cos(U(e)))};q.prototype.tan=function(b,e){b.N(Math.tan(U(e)))};q.prototype.asin=function(b,e){b.N(Ga(Math.asin(e)))};q.prototype.acos=function(b,e){b.N(Ga(Math.acos(e)))};q.prototype.atan=function(b,e){b.N(Ga(Math.atan(e)))};q.prototype.exp=function(b,e){b.N(Math.exp(e))};q.prototype.log10=function(b,e){b.N(Math.log(e)/Math.LN10)};
q.prototype.max=function(b){var e=arguments[1];"number"!==typeof e&&(e=0);var a,d,f;a=2;for(d=arguments.length;a<d;a++)f=arguments[a],"number"===typeof f&&e<f&&(e=f);b.N(e)};q.prototype.min=function(b){var e=arguments[1];"number"!==typeof e&&(e=0);var a,d,f;a=2;for(d=arguments.length;a<d;a++)f=arguments[a],"number"===typeof f&&e>f&&(e=f);b.N(e)};q.prototype.Zf=function(b){b.N(this.b.Zf)};q.prototype.Nf=function(b){b.N(this.b.Nf)};q.prototype.time=function(b){b.N(this.b.Mb.Y)};q.prototype.Mg=function(b){b.Fa(this.b.Mg)};
q.prototype.Vl=function(b){b.Fa(this.b.Vl)};q.prototype.Jn=function(b){b.Fa(this.b.Jn)};q.prototype.n=function(b,e,a,d,f){b.N(Ga(La(e,a,d,f)))};q.prototype.Ez=function(b){b.Dc("\n")};q.prototype.wz=function(b){b.Fa(this.b.Ba.width)};q.prototype.vz=function(b){b.Fa(this.b.Ba.height)};q.prototype.left=function(b,e,a){b.Dc(ka(e)?e.substr(0,a):"")};q.prototype.right=function(b,e,a){b.Dc(ka(e)?e.substr(e.length-a):"")};q.prototype.replace=function(b,e,a,d){ka(e)&&ka(a)&&ka(d)?b.Dc(e.replace(new RegExp(ab(a),
"gi"),d)):b.Dc(ka(e)?e:"")};q.prototype.trim=function(b,e){b.Dc(ka(e)?e.trim():"")};q.prototype.Pw=function(b){var e=C(Math.random()*(arguments.length-1));b.xm(arguments[e+1])};q.prototype.tn=function(b){b.N(this.b.tn/1E3)};q.prototype.Ch=function(b){b.N(this.b.Ch)};m.xa=new q;m.kA=function(){var c,e,a,d,f,r,n=this.b.Ya();c=0;for(a=this.Fc.length;c<a;c++){d=this.Fc[c];if(-1===d.time){if(!d.Bp)continue}else if(d.time>this.b.Mb.Y)continue;n.cb=d.dh;n.uc=d.uc;n.bb=0;for(e in d.qc)d.qc.hasOwnProperty(e)&&
(f=this.b.F[parseInt(e,10)].V(),r=d.qc[e],f.ea=r.qm,Ba(f.j,r.He),f=r,R(f.He),b.push(f));d.dh.jA();this.b.rn(d.Ga);d.zn=!0}e=c=0;for(a=this.Fc.length;c<a;c++)d=this.Fc[c],this.Fc[e]=d,d.zn?(Va(d.qc),R(d.Ga),t.push(d)):e++;Aa(this.Fc,e)}})();
(function(){pb=function(d,q){var m=d[1],n=d[3],v=d[4],t=d[5],b=d[6],c=d[7],e=d[8];q.k||(q.k={});q.B||(q.B={});q.xa||(q.xa={});var a=q.k,g=q.B,f=q.xa;n&&(a.xu=function(a,b){return ec(this.x,a,b)},a.yu=function(a,b){return ec(this.y,a,b)},a.Uu=function(){var a=this.u;this.Ha();var b=this.Pa;return!(b.right<a.Da||b.bottom<a.Ea||b.left>a.Ja||b.top>a.Ia)},a.aB=function(){this.Ha();var a=this.Pa,b=this.b.Ba;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},a.jB=function(a,b,c){var e=this.V(),
h=e.wc();if(!h.length)return!1;var d=h[0],f=d,g=Sa(d.x,d.y,b,c),x,n,m;x=1;for(n=h.length;x<n;x++)if(d=h[x],m=Sa(d.x,d.y,b,c),0===a&&m<g||1===a&&m>g)g=m,f=d;e.vj(f);return!0},g.xB=function(a){this.x!==a&&(this.x=a,this.D())},g.yB=function(a){this.y!==a&&(this.y=a,this.D())},g.Yv=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.D()},g.Zv=function(a,b){var c=a.Ey(this);if(c){var e;c.hh?(e=c.hh(b,!0),c=c.hh(b,!1)):(e=c.x,c=c.y);if(this.x!==e||this.y!==c)this.x=e,this.y=c,this.D()}},g.eB=
function(a){0!==a&&(this.x+=Math.cos(this.n)*a,this.y+=Math.sin(this.n)*a,this.D())},g.dB=function(a,b){0!==b&&(this.x+=Math.cos(U(a))*b,this.y+=Math.sin(U(a))*b,this.D())},f.xq=function(a){a.N(this.x)},f.uw=function(a){a.N(this.y)},f.Zf=function(a){a.N(this.b.hg(this))});v&&(a.XA=function(a,b){return ec(this.width,a,b)},a.VA=function(a,b){return ec(this.height,a,b)},g.fw=function(a){this.width!==a&&(this.width=a,this.D())},g.uB=function(a){this.height!==a&&(this.height=a,this.D())},g.wq=function(a,
b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.D()},f.AB=function(a){a.N(this.width)},f.YA=function(a){a.N(this.height)},f.SA=function(a){this.Ha();a.N(this.Pa.left)},f.UA=function(a){this.Ha();a.N(this.Pa.top)},f.TA=function(a){this.Ha();a.N(this.Pa.right)},f.RA=function(a){this.Ha();a.N(this.Pa.bottom)});t&&(a.nu=function(a,b){return Na(this.n,U(b))<=U(a)},a.Ou=function(a){return Pa(this.n,U(a))},a.Lu=function(a,b){var c=Ka(a),e=Ka(b),h=Ia(this.n);return Pa(e,c)?Pa(h,c)&&
!Pa(h,e):!(!Pa(h,c)&&Pa(h,e))},g.rB=function(a){a=U(Ha(a));isNaN(a)||this.n===a||(this.n=a,this.D())},g.nB=function(a){0===a||isNaN(a)||(this.n+=U(a),this.n=Ia(this.n),this.D())},g.oB=function(a){0===a||isNaN(a)||(this.n-=U(a),this.n=Ia(this.n),this.D())},g.pB=function(a,b){var c=Oa(this.n,U(b),U(a));isNaN(c)||this.n===c||(this.n=c,this.D())},g.qB=function(a,b,c){a=Oa(this.n,Math.atan2(c-this.y,b-this.x),U(a));isNaN(a)||this.n===a||(this.n=a,this.D())},g.wB=function(a,b){var c=Math.atan2(b-this.y,
a-this.x);isNaN(c)||this.n===c||(this.n=c,this.D())},f.QA=function(a){a.N(Ja(this.n))});m||(a.uu=function(a,b,c){return ec(this.xb[a],b,c)},a.Mu=function(a){return this.xb[a]},a.kB=function(a,b){var c=this.V(),e=c.wc();if(!e.length)return!1;var h=e[0],d=h,f=h.xb[b],g,x,n;g=1;for(x=e.length;g<x;g++)if(h=e[g],n=h.xb[b],0===a&&n<f||1===a&&n>f)f=n,d=h;c.vj(d);return!0},a.Nv=function(a){var b,c,e,h,d;if(this.b.ll().sl){d=this.V();if(d.ea)for(d.ea=!1,R(d.j),R(d.ca),e=this.j,b=0,c=e.length;b<c;b++)h=e[b],
h.uid===a?d.ca.push(h):d.j.push(h);else{e=b=0;for(c=d.j.length;b<c;b++)h=d.j[b],d.j[e]=h,h.uid===a?d.ca.push(h):e++;Aa(d.j,e)}this.fd();return!!d.j.length}h=this.b.jg(a);if(!h)return!1;d=this.V();if(!d.ea&&-1===d.j.indexOf(h))return!1;if(this.L)for(a=h.type.Qa,b=0,c=a.length;b<c;b++){if(a[b]===this)return d.vj(h),this.fd(),!0}else if(h.type===this)return d.vj(h),this.fd(),!0;return!1},a.Qg=function(){return!0},a.fq=function(){return!0},g.Uv=function(a,b){var c=this.xb;ja(c[a])?c[a]=ja(b)?b:parseFloat(b):
ka(c[a])&&(c[a]=ka(b)?b:b.toString())},g.lu=function(a,b){var c=this.xb;ja(c[a])?c[a]=ja(b)?c[a]+b:c[a]+parseFloat(b):ka(c[a])&&(c[a]=ka(b)?c[a]+b:c[a]+b.toString())},g.kw=function(a,b){var c=this.xb;ja(c[a])&&(c[a]=ja(b)?c[a]-b:c[a]-parseFloat(b))},g.Sv=function(a,b){this.xb[a]=b?1:0},g.mw=function(a){this.xb[a]=1-this.xb[a]},g.$p=function(){this.b.gf(this)},g.$u||(g.$u=function(a){var b,c;try{b=JSON.parse(a)}catch(e){return}this.b.Il(this,b,!0);this.Dd&&this.Dd();if(this.T)for(a=0,b=this.T.length;a<
b;++a)c=this.T[a],c.Dd&&c.Dd()}),f.zu=function(a){var b=a.Fg.j.length,c,e,h;c=0;for(e=this.b.Jd.length;c<e;c++)h=this.b.Jd[c],a.Fg.L?0<=h.type.Qa.indexOf(a.Fg)&&b++:h.type===a.Fg&&b++;a.Fa(b)},f.mB=function(a){a.Fa(a.Fg.V().wc().length)},f.zB=function(a){a.Fa(this.uid)},f.ZA=function(a){a.Fa(this.Ei())},f.ou||(f.ou=function(a){a.Dc(JSON.stringify(this.b.qp(this,!0)))}));b&&(a.Xu=function(){return this.visible},g.ew=function(a){!a!==!this.visible&&(this.visible=!!a,this.b.da=!0)},a.WA=function(a,b){return ec(lb(100*
this.opacity),a,b)},g.vB=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.da=!0)},f.Opacity=function(a){a.N(lb(100*this.opacity))});c&&(a.$A=function(a){return a?this.u===a:!1},a.lB=function(a){var b=this.V(),c=b.wc();if(!c.length)return!1;var e=c[0],h=e,d,f;d=1;for(f=c.length;d<f;d++)if(e=c[d],0===a){if(e.u.index>h.u.index||e.u.index===h.u.index&&e.ie()>h.ie())h=e}else if(e.u.index<h.u.index||e.u.index===h.u.index&&e.ie()<h.ie())h=e;b.vj(h);return!0},g.av=function(){var a=
this.u,b=a.j;b.length&&b[b.length-1]===this||(a.Ph(this,!1),a.li(this,!1),this.b.da=!0)},g.fB=function(){var a=this.u,b=a.j;b.length&&b[0]===this||(a.Ph(this,!1),a.Xz(this),this.b.da=!0)},g.gB=function(a){a&&a!=this.u&&(this.u.Ph(this,!0),this.u=a,a.li(this,!0),this.b.da=!0)},g.CB=function(a,b){var c=0===a;if(b){var e=b.sr(this);e&&e.uid!==this.uid&&(this.u.index!==e.u.index&&(this.u.Ph(this,!0),this.u=e.u,e.u.li(this,!0)),this.u.Dz(this,e,c),this.b.da=!0)}},f.cB=function(a){a.Fa(this.u.Gs)},f.bB=
function(a){a.Dc(this.u.name)},f.BB=function(a){a.Fa(this.ie())});e&&(g.sB=function(a,b){if(this.b.C){var c=this.type.Rn(b);if(!(0>c)){var e=1===a;this.kf[c]!==e&&(this.kf[c]=e,this.Vd(),this.b.da=!0)}}},g.tB=function(a,b,c){if(this.b.C){var e=this.type.Rn(a);0>e||(a=this.type.X[e],e=this.Ta[e],b=Math.floor(b),0>b||b>=e.length||(1===this.b.C.Iy(a.nb,b)&&(c/=100),e[b]!==c&&(e[b]=c,a.Qb&&(this.b.da=!0))))}})};Kb=function(){this.pn=this.jn=!0;this.type.wk=!0;this.b.da=!0;var d,q,m=this.kn;d=0;for(q=
m.length;d<q;++d)m[d](this);this.u.dd&&this.Ha()};Lb=function(d){d&&this.kn.push(d)};Nb=function(){if(this.jn){var d=this.Pa,q=this.Hc;d.set(this.x,this.y,this.x+this.width,this.y+this.height);d.offset(-this.nc*this.width,-this.oc*this.height);this.n?(d.offset(-this.x,-this.y),q.Dt(d,this.n),q.offset(this.x,this.y),q.Oq(d)):q.Lj(d);d.normalize();this.jn=!1;this.GA()}};var d=new ua(0,0,0,0);Ob=function(){if(this.u.dd){var l=this.u.ac,q=this.Pa;d.set(l.sc(q.left),l.tc(q.top),l.sc(q.right),l.tc(q.bottom));
this.Ac.wi(d)||(this.Ac.right<this.Ac.left?l.update(this,null,d):l.update(this,this.Ac,d),this.Ac.Wg(d),this.u.Qd=!0)}};Pb=function(){if(this.pn&&this.hd){this.Ha();var l=this.type.pi,q=this.Pa;d.set(l.sc(q.left),l.tc(q.top),l.sc(q.right),l.tc(q.bottom));this.gd.wi(d)||(this.gd.right<this.gd.left?l.update(this,null,d):l.update(this,this.gd,d),this.gd.Wg(d),this.pn=!1)}};Mb=function(d,q){return this.Pa.Sb(d,q)&&this.Hc.Sb(d,q)?this.Wh?this.CA(d,q):this.wa&&!this.wa.nh()?(this.wa.Vf(this.width,this.height,
this.n),this.wa.Sb(d-this.x,q-this.y)):!0:!1};Fb=function(){this.type.Qm();return this.ng};Qb=function(){this.u.Up();return this.Xd};Rb=function(){R(this.ta);var d,q,m,n=!0;d=0;for(q=this.kf.length;d<q;d++)this.kf[d]&&(m=this.type.X[d],this.ta.push(m),m.Nd||(n=!1));this.gu=!!this.ta.length;this.We=n};Gb=function(){return"Inst"+this.it};sb=function(d){if(d&&d.Xb&&d.type!=this){var q,m,n;q=0;for(m=d.siblings.length;q<m;q++)if(n=d.siblings[q],n.type==this)return n}d=this.V().wc();return d.length?d[0]:
null};tb=function(d){var q=this.V().wc();return q.length?q[d.Ei()%q.length]:null};rb=function(){if(this.Uh&&!this.L){var d,q;d=0;for(q=this.j.length;d<q;d++)this.j[d].ng=d;var m=d,n=this.b.Jd;d=0;for(q=n.length;d<q;++d)n[d].type===this&&(n[d].ng=m++);this.Uh=!1}};Db=function(d){if(d<this.j.length)return this.j[d];d-=this.j.length;var q=this.b.Jd,m,n;m=0;for(n=q.length;m<n;++m)if(q[m].type===this){if(0===d)return q[m];--d}return null};ub=function(){return this.Ye[this.de]};vb=function(){this.de++;
this.de===this.Ye.length?this.Ye.push(new qb(this)):(this.Ye[this.de].ea=!0,R(this.Ye[this.de].ca))};xb=function(){this.de++;this.de===this.Ye.length&&this.Ye.push(new qb(this));var d=this.Ye[this.de],q=this.Ye[this.de-1];q.ea?(d.ea=!0,R(d.ca)):(d.ea=!1,Ba(d.j,q.j),Ba(d.ca,q.ca))};yb=function(){this.de--};zb=function(d){var q,m,n,v,t,b=0;if(!this.L)for(q=0,m=this.Qa.length;q<m;q++)for(t=this.Qa[q],n=0,v=t.Sa.length;n<v;n++){if(d===t.Sa[n].name)return this.R.lastBehIndex=b,t.Sa[n];b++}q=0;for(m=this.Sa.length;q<
m;q++){if(d===this.Sa[q].name)return this.R.lastBehIndex=b,this.Sa[q];b++}return null};Ab=function(d){return this.kl(d)?this.R.lastBehIndex:-1};Bb=function(d){var q,m;q=0;for(m=this.X.length;q<m;q++)if(this.X[q].name===d)return q;return-1};Cb=function(){if(this.Xb&&!this.L){var d,q,m,n,v,t,b;this.Qm();t=this.V();var c=t.ea,e=(d=this.b.Ya())&&d.cb&&d.cb.ad;d=0;for(q=this.Ic.length;d<q;d++)if(v=this.Ic[d],v!==this&&(v.Qm(),b=v.V(),b.ea=c,!c)){R(b.j);m=0;for(n=t.j.length;m<n;++m)b.j[m]=v.Sn(t.j[m].ng);
if(e)for(R(b.ca),m=0,n=t.ca.length;m<n;++m)b.ca[m]=v.Sn(t.ca[m].ng)}}};Eb=function(){return"Type"+this.la};ec=function(d,q,m){if("undefined"===typeof d||"undefined"===typeof m)return!1;switch(q){case 0:return d===m;case 1:return d!==m;case 2:return d<m;case 3:return d<=m;case 4:return d>m;case 5:return d>=m;default:return!1}}})();var mc={};function rc(d){this.b=d}
(function(){function d(a){a=Math.pow(10,a/20);isFinite(a)||(a=0);0>a&&(a=0);1<a&&(a=1);return a}function l(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function q(a){a=a.toLowerCase();return aa.hasOwnProperty(a)&&aa[a].length?aa[a][0].Uc():A.destination}function m(){return A.createGain?A.createGain():A.createGainNode()}function n(a){return A.createDelay?A.createDelay(a):A.createDelayNode(a)}function v(a,b){a.start?a.start(b||0):a.noteOn(b||0)}function t(a,b,c,e){a.start?a.start(e||
0,b):a.noteGrainOn(e||0,b,c-b)}function b(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}function c(a,b,c,e,d,k){this.type="filter";this.Cb=[a,b,c,e,d,k];this.na=m();this.W=m();this.W.gain.value=k;this.U=m();this.U.gain.value=1-k;this.gb=A.createBiquadFilter();this.gb.type="number"===typeof this.gb.type?a:Jc[a];this.gb.frequency.value=b;this.gb.detune&&(this.gb.detune.value=c);this.gb.Q.value=e;this.gb.gain.value=d;this.na.connect(this.gb);this.na.connect(this.U);this.gb.connect(this.W)}function e(a,
b,c){this.type="delay";this.Cb=[a,b,c];this.na=m();this.W=m();this.W.gain.value=c;this.U=m();this.U.gain.value=1-c;this.jj=m();this.ld=n(a);this.ld.delayTime.value=a;this.Sk=m();this.Sk.gain.value=b;this.na.connect(this.jj);this.na.connect(this.U);this.jj.connect(this.W);this.jj.connect(this.ld);this.ld.connect(this.Sk);this.Sk.connect(this.jj)}function a(a,b,c,e){this.type="convolve";this.Cb=[b,c,e];this.na=m();this.W=m();this.W.gain.value=c;this.U=m();this.U.gain.value=1-c;this.Wf=A.createConvolver();
a&&(this.Wf.normalize=b,this.Wf.buffer=a);this.na.connect(this.Wf);this.na.connect(this.U);this.Wf.connect(this.W)}function g(a,b,c,e,d){this.type="flanger";this.Cb=[a,b,c,e,d];this.na=m();this.U=m();this.U.gain.value=1-d/2;this.W=m();this.W.gain.value=d/2;this.al=m();this.al.gain.value=e;this.ld=n(a+b);this.ld.delayTime.value=a;this.Ob=A.createOscillator();this.Ob.frequency.value=c;this.Pc=m();this.Pc.gain.value=b;this.na.connect(this.ld);this.na.connect(this.U);this.ld.connect(this.W);this.ld.connect(this.al);
this.al.connect(this.ld);this.Ob.connect(this.Pc);this.Pc.connect(this.ld.delayTime);v(this.Ob)}function f(a,b,c,e,d,k){this.type="phaser";this.Cb=[a,b,c,e,d,k];this.na=m();this.U=m();this.U.gain.value=1-k/2;this.W=m();this.W.gain.value=k/2;this.gb=A.createBiquadFilter();this.gb.type="number"===typeof this.gb.type?7:"allpass";this.gb.frequency.value=a;this.gb.detune&&(this.gb.detune.value=b);this.gb.Q.value=c;this.Ob=A.createOscillator();this.Ob.frequency.value=d;this.Pc=m();this.Pc.gain.value=e;
this.na.connect(this.gb);this.na.connect(this.U);this.gb.connect(this.W);this.Ob.connect(this.Pc);this.Pc.connect(this.gb.frequency);v(this.Ob)}function r(a){this.type="gain";this.Cb=[a];this.ra=m();this.ra.gain.value=a}function w(a,b){this.type="tremolo";this.Cb=[a,b];this.ra=m();this.ra.gain.value=1-b/2;this.Ob=A.createOscillator();this.Ob.frequency.value=a;this.Pc=m();this.Pc.gain.value=b/2;this.Ob.connect(this.Pc);this.Pc.connect(this.ra.gain);v(this.Ob)}function u(a,b){this.type="ringmod";this.Cb=
[a,b];this.na=m();this.W=m();this.W.gain.value=b;this.U=m();this.U.gain.value=1-b;this.Ij=m();this.Ij.gain.value=0;this.Ob=A.createOscillator();this.Ob.frequency.value=a;this.Ob.connect(this.Ij.gain);v(this.Ob);this.na.connect(this.Ij);this.na.connect(this.U);this.Ij.connect(this.W)}function k(a,b,c,e,d){this.type="distortion";this.Cb=[a,b,c,e,d];this.na=m();this.jm=m();this.im=m();this.rA(c,Math.pow(10,e/20));this.W=m();this.W.gain.value=d;this.U=m();this.U.gain.value=1-d;this.Wm=A.createWaveShaper();
this.Qk=new Float32Array(65536);this.ty(a,b);this.Wm.Qk=this.Qk;this.na.connect(this.jm);this.na.connect(this.U);this.jm.connect(this.Wm);this.Wm.connect(this.im);this.im.connect(this.W)}function h(a,b,c,e,d){this.type="compressor";this.Cb=[a,b,c,e,d];this.ra=A.createDynamicsCompressor();try{this.ra.threshold.value=a,this.ra.knee.value=b,this.ra.ratio.value=c,this.ra.attack.value=e,this.ra.release.value=d}catch(k){}}function p(a,b){this.type="analyser";this.Cb=[a,b];this.ra=A.createAnalyser();this.ra.fftSize=
a;this.ra.smoothingTimeConstant=b;this.qy=new Float32Array(this.ra.frequencyBinCount);this.Gt=new Uint8Array(a);this.tj=0}function y(){this.ya=null;this.Kl=0}function V(a,b){this.src=a;this.ka=J;this.od=b;this.vk=!1;var c=this;this.Gh=this.Mh=null;this.Nh=[];this.rm=0;this.Xp=this.Zk=this.Mt=this.dm=!1;1===J&&b&&!eb&&(this.ka=0,this.Mh=m());this.xe=this.qa=null;var e;switch(this.ka){case 0:this.qa=new Audio;this.qa.crossOrigin="anonymous";this.qa.addEventListener("canplaythrough",function(){c.Xp=
!0});1===J&&A.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.Mt=!0,this.qa.addEventListener("canplay",function(){!c.Gh&&c.qa&&(c.Gh=A.createMediaElementSource(c.qa),c.Gh.connect(c.Mh))}));this.qa.autoplay=!1;this.qa.VB="auto";this.qa.src=a;break;case 1:E.zl?E.ir(a,function(a){c.xe=a;c.Zq()},function(){c.Zk=!0}):(e=new XMLHttpRequest,e.open("GET",a,!0),e.responseType="arraybuffer",e.onload=function(){c.xe=e.response;c.Zq()},e.onerror=function(){c.Zk=!0},e.send());break;case 2:this.qa=
!0;break;case 3:this.qa=!0}}function x(a,b){var c=this;this.tag=b;this.Pb=this.he=!0;this.src=a.src;this.buffer=a;this.ka=J;this.od=a.od;this.playbackRate=1;this.jh=!0;this.Lc=this.cd=!1;this.Bc=0;this.Ti=this.ph=this.ke=!1;this.volume=1;this.Xo=function(a){if(!c.Lc&&!c.cd){var b=this;b||(b=a.target);b===c.tk&&(c.jh=!0,c.Pb=!0,L=c.tag,E.trigger(rc.prototype.k.lk,F))}};this.tk=null;this.mh=1===K&&!this.od||2===K;this.Ih=1;this.startTime=this.mh?E.Mb.Y:E.df.Y;this.lb=this.wb=null;this.le=!1;this.Yb=
null;this.Vs=this.Us=this.Ts=this.Ss=this.Xs=this.Ws=0;this.q=null;var e=!1;1!==this.ka||0!==this.buffer.ka||this.buffer.Mt||(this.ka=0);switch(this.ka){case 0:this.od?(this.q=a.qa,e=!a.vk,a.vk=!0):(this.q=new Audio,this.q.crossOrigin="anonymous",this.q.autoplay=!1,this.q.src=a.qa.src,e=!0);e&&this.q.addEventListener("ended",function(){L=c.tag;c.Pb=!0;E.trigger(rc.prototype.k.lk,F)});break;case 1:this.wb=m();this.wb.connect(q(b));1===this.buffer.ka?a.qa&&(this.q=A.createBufferSource(),this.q.buffer=
a.qa,this.q.connect(this.wb)):(this.q=this.buffer.qa,this.buffer.Mh.connect(this.wb),this.buffer.vk||(this.buffer.vk=!0,this.buffer.qa.addEventListener("ended",function(){L=c.tag;c.Pb=!0;E.trigger(rc.prototype.k.lk,F)})));break;case 2:this.q=new window.Media(O+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(c.jh=!0,c.Pb=!0,L=c.tag,E.trigger(rc.prototype.k.lk,F))});break;case 3:this.q=!0}}function W(a,b){aa.hasOwnProperty(a)?aa[a].push(b):aa[a]=[b];var c,e,d,k,h=A.destination;if(aa.hasOwnProperty(a)&&
(d=aa[a],d.length))for(h=d[0].Uc(),c=0,e=d.length;c<e;c++)k=d[c],c+1===e?k.jd(A.destination):k.jd(d[c+1].Uc());R(Qa);if(a.length)for(c=0,e=D.length;c<e;c++)d=D[c],mb(a,d.tag)&&Qa.push(d);else G&&!G.mg()&&(R(Qa),Qa[0]=G);c=0;for(e=Qa.length;c<e;c++)Qa[c].dA(h);Ma&&Jb===a&&(Ma.disconnect(),Ma.connect(h))}function T(){}function B(){}var P=rc.prototype;P.aa=function(a){this.za=a;this.b=a.b};P.aa.prototype.K=function(){};var E=null,F=null,L="",O="",J=0,A=null,Q=[],D=[],G=null,z=!1,K=0,I=!1,H=1,M=0,S=0,
Z=!1,N=1,la=1,ga=10,ya=1E4,Gc=1,Ma=null,Jb="",cb=!1,db=[],eb=!1,aa={},Jc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");c.prototype.jd=function(a){this.W.disconnect();this.W.connect(a);this.U.disconnect();this.U.connect(a)};c.prototype.remove=function(){this.na.disconnect();this.gb.disconnect();this.W.disconnect();this.U.disconnect()};c.prototype.Uc=function(){return this.na};e.prototype.jd=function(a){this.W.disconnect();this.W.connect(a);this.U.disconnect();this.U.connect(a)};
e.prototype.remove=function(){this.na.disconnect();this.jj.disconnect();this.ld.disconnect();this.Sk.disconnect();this.W.disconnect();this.U.disconnect()};e.prototype.Uc=function(){return this.na};a.prototype.jd=function(a){this.W.disconnect();this.W.connect(a);this.U.disconnect();this.U.connect(a)};a.prototype.remove=function(){this.na.disconnect();this.Wf.disconnect();this.W.disconnect();this.U.disconnect()};a.prototype.Uc=function(){return this.na};g.prototype.jd=function(a){this.U.disconnect();
this.U.connect(a);this.W.disconnect();this.W.connect(a)};g.prototype.remove=function(){this.na.disconnect();this.ld.disconnect();this.Ob.disconnect();this.Pc.disconnect();this.U.disconnect();this.W.disconnect();this.al.disconnect()};g.prototype.Uc=function(){return this.na};f.prototype.jd=function(a){this.U.disconnect();this.U.connect(a);this.W.disconnect();this.W.connect(a)};f.prototype.remove=function(){this.na.disconnect();this.gb.disconnect();this.Ob.disconnect();this.Pc.disconnect();this.U.disconnect();
this.W.disconnect()};f.prototype.Uc=function(){return this.na};r.prototype.jd=function(a){this.ra.disconnect();this.ra.connect(a)};r.prototype.remove=function(){this.ra.disconnect()};r.prototype.Uc=function(){return this.ra};w.prototype.jd=function(a){this.ra.disconnect();this.ra.connect(a)};w.prototype.remove=function(){this.Ob.disconnect();this.Pc.disconnect();this.ra.disconnect()};w.prototype.Uc=function(){return this.ra};u.prototype.jd=function(a){this.W.disconnect();this.W.connect(a);this.U.disconnect();
this.U.connect(a)};u.prototype.remove=function(){this.Ob.disconnect();this.Ij.disconnect();this.na.disconnect();this.W.disconnect();this.U.disconnect()};u.prototype.Uc=function(){return this.na};k.prototype.rA=function(a,b){.01>a&&(a=.01);this.jm.gain.value=a;this.im.gain.value=Math.pow(1/a,.6)*b};k.prototype.shape=function(a,b,c){var e=1.05*c*b-b;c=0>a?-1:1;a=0>a?-a:a;b=a<b?a:b+e*(1-Math.exp(-(1/e)*(a-b)));return b*c};k.prototype.ty=function(a,b){for(var c=Math.pow(10,a/20),e=Math.pow(10,b/20),d=
0,k=0;32768>k;++k)d=k/32768,d=this.shape(d,c,e),this.Qk[32768+k]=d,this.Qk[32768-k-1]=-d};k.prototype.jd=function(a){this.W.disconnect();this.W.connect(a);this.U.disconnect();this.U.connect(a)};k.prototype.remove=function(){this.na.disconnect();this.jm.disconnect();this.Wm.disconnect();this.im.disconnect();this.W.disconnect();this.U.disconnect()};k.prototype.Uc=function(){return this.na};h.prototype.jd=function(a){this.ra.disconnect();this.ra.connect(a)};h.prototype.remove=function(){this.ra.disconnect()};
h.prototype.Uc=function(){return this.ra};p.prototype.Ra=function(){this.ra.getFloatFrequencyData(this.qy);this.ra.getByteTimeDomainData(this.Gt);for(var a=this.ra.fftSize,b=0,c=this.tj=0,e=0;b<a;b++)e=(this.Gt[b]-128)/128,0>e&&(e=-e),this.tj<e&&(this.tj=e),c+=e*e;this.tj=l(this.tj);l(Math.sqrt(c/a))};p.prototype.jd=function(a){this.ra.disconnect();this.ra.connect(a)};p.prototype.remove=function(){this.ra.disconnect()};p.prototype.Uc=function(){return this.ra};y.prototype.Jj=function(a){this.ya=a};
y.prototype.rl=function(){return!!this.ya};y.prototype.Ra=function(){};var wb=!1;V.prototype.eA=function(){var a,b,c,e;c=a=0;for(b=D.length;a<b;++a)e=D[a],D[c]=e,e.buffer===this?e.stop():++c;D.length=c;this.Gh&&(this.Gh.disconnect(),this.Gh=null);this.Mh&&(this.Mh.disconnect(),this.Mh=null);this.xe=this.qa=null};V.prototype.Zq=function(){if(!this.qa&&this.xe){var a=this;if(A.decodeAudioData)A.decodeAudioData(this.xe,function(b){a.qa=b;a.xe=null;var c,e,d;if(ia(a.fm)||I)ia(a.Kk)||(c=a.Kk.Wf,c.normalize=
a.Fs,c.buffer=b);else if(a.Nh.length){c=0;for(e=a.Nh.length;c<e;c++){b=a.Nh[c];d=new x(a,b.Pt);d.wp(!0);if("undefined"!==typeof b.Hs&&(b.ya=E.jg(b.Hs),!b.ya))continue;if(b.ya){var k=Ra(b.ya.x,b.ya.y,-b.ya.u.Wb(),M,S,!0),h=Ra(b.ya.x,b.ya.y,-b.ya.u.Wb(),M,S,!1);d.vp(k,h,Ga(b.ya.n-b.ya.u.Wb()),b.bo,b.Qo,b.To);d.Jj(b.ya)}else d.vp(b.x,b.y,b.xw,b.bo,b.Qo,b.To);d.play(a.Io,a.Wp,a.rm);a.dm&&d.pause();D.push(d)}R(a.Nh)}else d=new x(a,a.fm||""),d.play(a.Io,a.Wp,a.rm),a.dm&&d.pause(),D.push(d)},function(){a.Zk=
!0});else if(this.qa=A.createBuffer(this.xe,!1),this.xe=null,ia(this.fm)||I)ia(this.Kk)||(b=this.Kk.Wf,b.normalize=this.Fs,b.buffer=this.qa);else{var b=new x(this,this.fm);b.play(this.Io,this.Wp,this.rm);this.dm&&b.pause();D.push(b)}}};V.prototype.Lr=function(){switch(this.ka){case 0:var a=4<=this.qa.readyState;a&&(this.Xp=!0);return a||this.Xp;case 1:return!!this.xe||!!this.qa;case 2:return!0;case 3:return!0}return!1};V.prototype.lz=function(){switch(this.ka){case 0:return this.Lr();case 1:return!!this.qa;
case 2:return!0;case 3:return!0}return!1};V.prototype.az=function(){switch(this.ka){case 0:return!!this.qa.error;case 1:return this.Zk}return!1};x.prototype.mg=function(){switch(this.ka){case 0:return this.q.ended;case 1:return 1===this.buffer.ka?!this.he&&!this.Pb&&this.q.loop||this.Lc?!1:this.jh:this.q.ended;case 2:return this.jh;case 3:!0}return!0};x.prototype.Nw=function(){return this.he||this.Pb?!0:this.mg()};x.prototype.wp=function(a){1===J&&(!this.le&&a?this.wb&&(this.lb||(this.lb=A.createPanner(),
this.lb.panningModel="number"===typeof this.lb.panningModel?N:["equalpower","HRTF","soundfield"][N],this.lb.distanceModel="number"===typeof this.lb.distanceModel?la:["linear","inverse","exponential"][la],this.lb.refDistance=ga,this.lb.maxDistance=ya,this.lb.rolloffFactor=Gc),this.wb.disconnect(),this.wb.connect(this.lb),this.lb.connect(q(this.tag)),this.le=!0):this.le&&!a&&this.wb&&(this.lb.disconnect(),this.wb.disconnect(),this.wb.connect(q(this.tag)),this.le=!1))};x.prototype.vp=function(a,b,c,
e,d,k){this.le&&1===J&&(this.lb.setPosition(a,b,0),this.lb.setOrientation(Math.cos(U(c)),Math.sin(U(c)),0),this.lb.coneInnerAngle=e,this.lb.coneOuterAngle=d,this.lb.coneOuterGain=k,this.Ws=a,this.Xs=b,this.Ss=c,this.Ts=e,this.Us=d,this.Vs=k)};x.prototype.Jj=function(a){this.le&&1===J&&(this.Yb||(this.Yb=new y),this.Yb.Jj(a))};x.prototype.Ra=function(a){if(this.le&&1===J&&this.Yb&&this.Yb.rl()&&this.Qi()){this.Yb.Ra(a);a=this.Yb.ya;var b=Ra(a.x,a.y,-a.u.Wb(),M,S,!0),c=Ra(a.x,a.y,-a.u.Wb(),M,S,!1);
this.lb.setPosition(b,c,0);b=0;"undefined"!==typeof this.Yb.ya.n&&(b=a.n-a.u.Wb(),this.lb.setOrientation(Math.cos(b),Math.sin(b),0))}};x.prototype.play=function(a,b,c,e){var d=this.q;this.ke=a;this.volume=b;c=c||0;e=e||0;switch(this.ka){case 0:1!==d.playbackRate&&(d.playbackRate=1);d.volume!==b*H&&(d.volume=b*H);d.loop!==a&&(d.loop=a);d.muted&&(d.muted=!1);if(d.currentTime!==c)try{d.currentTime=c}catch(k){}if(this.od&&cb&&!E.Kc)db.push(this);else try{this.q.play()}catch(h){console&&console.log&&console.log("[C2] WARNING: exception trying to play audio '"+
this.buffer.src+"': ",h)}break;case 1:this.muted=!1;this.Ih=1;if(1===this.buffer.ka)this.wb.gain.value=b*H,this.he||(this.q=A.createBufferSource(),this.q.buffer=this.buffer.qa,this.q.connect(this.wb)),this.q.onended=this.Xo,this.tk=this.q,this.q.loop=a,this.jh=!1,0===c?v(this.q,e):t(this.q,c,this.ig(),e);else{1!==d.playbackRate&&(d.playbackRate=1);d.loop!==a&&(d.loop=a);d.volume=b*H;if(d.currentTime!==c)try{d.currentTime=c}catch(f){}this.od&&cb&&!E.Kc?db.push(this):d.play()}break;case 2:(!this.he&&
this.Pb||0!==c)&&d.seekTo(c);d.play();this.jh=!1;break;case 3:E.gc?AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=1;this.startTime=(this.mh?E.Mb.Y:E.df.Y)-c;this.Lc=this.Pb=this.he=!1};x.prototype.stop=function(){switch(this.ka){case 0:this.q.paused||this.q.pause();break;case 1:1===this.buffer.ka?b(this.q):this.q.paused||this.q.pause();break;case 2:this.q.stop();break;case 3:E.gc&&AppMobi.context.stopSound(this.src)}this.Pb=!0;this.Lc=!1};x.prototype.pause=
function(){if(!(this.he||this.Pb||this.mg()||this.Lc)){switch(this.ka){case 0:this.q.paused||this.q.pause();break;case 1:1===this.buffer.ka?(this.Bc=this.Un(!0),this.ke&&(this.Bc=this.Bc%this.ig()),this.Lc=!0,b(this.q)):this.q.paused||this.q.pause();break;case 2:this.q.pause();break;case 3:E.gc&&AppMobi.context.stopSound(this.src)}this.Lc=!0}};x.prototype.iA=function(){if(!(this.he||this.Pb||this.mg())&&this.Lc){switch(this.ka){case 0:this.q.play();break;case 1:1===this.buffer.ka?(this.q=A.createBufferSource(),
this.q.buffer=this.buffer.qa,this.q.connect(this.wb),this.q.onended=this.Xo,this.tk=this.q,this.q.loop=this.ke,this.wb.gain.value=H*this.volume*this.Ih,this.Rm(),this.startTime=(this.mh?E.Mb.Y:E.df.Y)-this.Bc/(this.playbackRate||.001),t(this.q,this.Bc,this.ig())):this.q.play();break;case 2:this.q.play();break;case 3:E.gc&&AppMobi.context.resumeSound(this.src)}this.Lc=!1}};x.prototype.seek=function(a){if(!(this.he||this.Pb||this.mg()))switch(this.ka){case 0:try{this.q.currentTime=a}catch(b){}break;
case 1:if(1===this.buffer.ka)this.Lc?this.Bc=a:(this.pause(),this.Bc=a,this.iA());else try{this.q.currentTime=a}catch(c){}break;case 3:E.gc&&AppMobi.context.seekSound(this.src,a)}};x.prototype.dA=function(a){1===this.ka&&(this.le?(this.lb.disconnect(),this.lb.connect(a)):(this.wb.disconnect(),this.wb.connect(a)))};x.prototype.ig=function(){var a=0;switch(this.ka){case 0:"undefined"!==typeof this.q.duration&&(a=this.q.duration);break;case 1:a=this.buffer.qa.duration;break;case 2:a=this.q.getDuration();
break;case 3:E.gc&&(a=AppMobi.context.getDurationSound(this.src))}return a};x.prototype.Un=function(a){var b=this.ig(),c=0;switch(this.ka){case 0:"undefined"!==typeof this.q.currentTime&&(c=this.q.currentTime);break;case 1:if(1===this.buffer.ka){if(this.Lc)return this.Bc;c=(this.mh?E.Mb.Y:E.df.Y)-this.startTime}else"undefined"!==typeof this.q.currentTime&&(c=this.q.currentTime);break;case 3:E.gc&&(c=AppMobi.context.getPlaybackTimeSound(this.src))}a&&(c*=this.playbackRate);!this.ke&&c>b&&(c=b);return c};
x.prototype.Qi=function(){return!this.Lc&&!this.he&&!this.Pb&&!this.mg()};x.prototype.xA=function(){return!this.he&&!this.Pb&&!this.mg()};x.prototype.eu=function(){var a=this.volume*H;isFinite(a)||(a=0);switch(this.ka){case 0:"undefined"!==typeof this.q.volume&&this.q.volume!==a&&(this.q.volume=a);break;case 1:1===this.buffer.ka?this.wb.gain.value=a*this.Ih:"undefined"!==typeof this.q.volume&&this.q.volume!==a&&(this.q.volume=a)}};x.prototype.Wk=function(a){switch(this.ka){case 0:this.q.muted!==!!a&&
(this.q.muted=!!a);break;case 1:1===this.buffer.ka?(this.Ih=a?0:1,this.wb.gain.value=H*this.volume*this.Ih):this.q.muted!==!!a&&(this.q.muted=!!a)}};x.prototype.tA=function(){this.ph=!0;this.Wk(this.ph||this.Ti)};x.prototype.zt=function(a){this.Ti=!!a;this.Wk(this.ph||this.Ti)};x.prototype.Rm=function(){var a=this.playbackRate;this.mh&&(a*=E.Nf);switch(this.ka){case 0:this.q.playbackRate!==a&&(this.q.playbackRate=a);break;case 1:1===this.buffer.ka?this.q.playbackRate.value!==a&&(this.q.playbackRate.value=
a):this.q.playbackRate!==a&&(this.q.playbackRate=a)}};x.prototype.vA=function(a){switch(this.ka){case 0:a?this.Qi()?(this.cd=!0,this.q.pause()):this.cd=!1:this.cd&&(this.q.play(),this.cd=!1);break;case 1:a?this.Qi()?(this.cd=!0,1===this.buffer.ka?(this.Bc=this.Un(!0),this.ke&&(this.Bc=this.Bc%this.ig()),b(this.q)):this.q.pause()):this.cd=!1:this.cd&&(1===this.buffer.ka?(this.q=A.createBufferSource(),this.q.buffer=this.buffer.qa,this.q.connect(this.wb),this.q.onended=this.Xo,this.tk=this.q,this.q.loop=
this.ke,this.wb.gain.value=H*this.volume*this.Ih,this.Rm(),this.startTime=(this.mh?E.Mb.Y:E.df.Y)-this.Bc/(this.playbackRate||.001),t(this.q,this.Bc,this.ig())):this.q.play(),this.cd=!1);break;case 2:a?this.Qi()?(this.q.pause(),this.cd=!0):this.cd=!1:this.cd&&(this.cd=!1,this.q.play())}};P.S=function(a){function b(){"suspended"===A.state&&A.resume&&A.resume();if(!Z&&A.createBuffer){var a=A.createBuffer(1,220,22050),c=A.createBufferSource();c.buffer=a;c.connect(A.destination);v(c)}}this.type=a;E=this.b=
a.b;F=this;this.Oc=null;this.$i=-600;this.b.zl&&(eb=!0);!(this.b.sh||this.b.tl&&(this.b.lo||this.b.ul))||this.b.xl||this.b.Za||this.b.Jr||eb||(cb=!0);A=null;"undefined"!==typeof AudioContext?(J=1,A=new AudioContext):"undefined"!==typeof webkitAudioContext&&(J=1,A=new webkitAudioContext);this.b.sh&&A&&(A.close&&A.close(),"undefined"!==typeof AudioContext?A=new AudioContext:"undefined"!==typeof webkitAudioContext&&(A=new webkitAudioContext));cb?document.addEventListener("touchend",function(){!wb&&A&&
(b(),wb=!0);var a,c,e;if(cb){if(!I)for(a=0,c=db.length;a<c;++a)e=db[a],e.Pb||e.Lc||e.q.play();R(db)}},!0):eb&&document.addEventListener("touchend",function(){!wb&&A&&(b(),wb=!0)},!0);1!==J&&(this.b.Xc&&"undefined"!==typeof window.Media?J=2:this.b.Kr&&(J=3));2===J&&(O=location.href,a=O.lastIndexOf("/"),-1<a&&(O=O.substr(0,a+1)),O=O.replace("file://",""));if(this.b.nz&&this.b.oz&&"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.gf(this);else{if(this.b.gc)z=this.b.tl;else try{z=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(c){z=!1}this.b.Gp(this)}};var wa=P.S.prototype;wa.K=function(){this.b.Tg=this;K=this.A[0];this.Ue=this.A[1];this.Qz=0!==this.A[2];this.Ds=0;N=this.A[3];la=this.A[4];this.$i=-this.A[5];ga=this.A[6];ya=this.A[7];Gc=this.A[8];this.Oc=new y;var a=this.b.P||this.b.width,b=this.b.O||this.b.height;1===J&&(A.listener.setPosition(a/2,b/2,this.$i),A.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=
function(a,b){Ma&&Ma.disconnect();Jb=b.toLowerCase();Ma=A.createMediaStreamSource(a);Ma.connect(q(Jb))});this.b.Hq(function(a){F.Mz(a)});var c=this;this.b.uk(function(a){c.pj(a)})};wa.pj=function(a){var b,c,e;b=0;for(c=D.length;b<c;b++)e=D[b],e.Yb&&e.Yb.ya===a&&(e.Yb.ya=null,e.le&&e.Qi()&&e.ke&&e.stop());this.Oc.ya===a&&(this.Oc.ya=null)};wa.ab=function(){var a={silent:I,masterVolume:H,listenerZ:this.$i,listenerUid:this.Oc.rl()?this.Oc.ya.uid:-1,playing:[],effects:{}},b=a.playing,c,e,d,k,h,f;c=0;
for(e=D.length;c<e;c++)d=D[c],!d.xA()||3===this.Ue||d.od&&1===this.Ue||!d.od&&2===this.Ue||(k=d.Un(),d.ke&&(k=k%d.ig()),k={tag:d.tag,buffersrc:d.buffer.src,is_music:d.od,playbackTime:k,volume:d.volume,looping:d.ke,muted:d.ph,playbackRate:d.playbackRate,paused:d.Lc,resume_position:d.Bc},d.le&&(k.pan={},f=k.pan,d.Yb&&d.Yb.rl()?f.objUid=d.Yb.ya.uid:(f.x=d.Ws,f.y=d.Xs,f.a=d.Ss),f.ia=d.Ts,f.oa=d.Us,f.og=d.Vs),b.push(k));b=a.effects;for(h in aa)if(aa.hasOwnProperty(h)){d=[];c=0;for(e=aa[h].length;c<e;c++)d.push({type:aa[h][c].type,
params:aa[h][c].Cb});b[h]=d}return a};var fb=[];wa.Ab=function(b){var d=b.silent;H=b.masterVolume;this.$i=b.listenerZ;this.Oc.Jj(null);var x=b.listenerUid;-1!==x&&(this.Oc.Kl=x,fb.push(this.Oc));var x=b.playing,n,m,q,l,v,T,t,V,E,B,O;if(3!==this.Ue)for(n=0,m=D.length;n<m;n++)E=D[n],E.od&&1===this.Ue||(E.od||2!==this.Ue)&&E.stop();for(v in aa)if(aa.hasOwnProperty(v))for(n=0,m=aa[v].length;n<m;n++)aa[v][n].remove();Va(aa);for(v in b.effects)if(b.effects.hasOwnProperty(v))for(T=b.effects[v],n=0,m=T.length;n<
m;n++)switch(q=T[n].type,B=T[n].params,q){case "filter":W(v,new c(B[0],B[1],B[2],B[3],B[4],B[5]));break;case "delay":W(v,new e(B[0],B[1],B[2]));break;case "convolve":q=B[2];E=this.jl(q,!1);E.qa?q=new a(E.qa,B[0],B[1],q):(q=new a(null,B[0],B[1],q),E.Fs=B[0],E.Kk=q);W(v,q);break;case "flanger":W(v,new g(B[0],B[1],B[2],B[3],B[4]));break;case "phaser":W(v,new f(B[0],B[1],B[2],B[3],B[4],B[5]));break;case "gain":W(v,new r(B[0]));break;case "tremolo":W(v,new w(B[0],B[1]));break;case "ringmod":W(v,new u(B[0],
B[1]));break;case "distortion":W(v,new k(B[0],B[1],B[2],B[3],B[4]));break;case "compressor":W(v,new h(B[0],B[1],B[2],B[3],B[4]));break;case "analyser":W(v,new p(B[0],B[1]))}n=0;for(m=x.length;n<m;n++)3===this.Ue||(b=x[n],q=b.buffersrc,l=b.is_music,v=b.tag,T=b.playbackTime,t=b.looping,V=b.volume,O=(B=b.pan)&&B.hasOwnProperty("objUid")?B.objUid:-1,l&&1===this.Ue)||!l&&2===this.Ue||((E=this.or(q,v,l,t,V))?(E.Bc=b.resume_position,E.wp(!!B),E.play(t,V,T),E.Rm(),E.eu(),E.Wk(E.ph||E.Ti),b.paused&&E.pause(),
b.muted&&E.tA(),E.Wk(E.ph||E.Ti),B&&(-1!==O?(E.Yb=E.Yb||new y,E.Yb.Kl=O,fb.push(E.Yb)):E.vp(B.x,B.y,B.a,B.ia,B.oa,B.og))):(E=this.jl(q,l),E.rm=T,E.dm=b.paused,B&&(-1!==O?E.Nh.push({Hs:O,bo:B.ia,Qo:B.oa,To:B.og,Pt:v}):E.Nh.push({x:B.x,y:B.y,xw:B.a,bo:B.ia,Qo:B.oa,To:B.og,Pt:v}))));if(d&&!I){n=0;for(m=D.length;n<m;n++)D[n].zt(!0);I=!0}else if(!d&&I){n=0;for(m=D.length;n<m;n++)D[n].zt(!1);I=!1}};wa.Dd=function(){var a,b,c,e;a=0;for(b=fb.length;a<b;a++)c=fb[a],e=this.b.jg(c.Kl),c.Jj(e),c.Kl=-1,e&&(M=
e.x,S=e.y);R(fb)};wa.Mz=function(a){if(!this.Qz){!a&&A&&A.resume&&(A.resume(),Z=!1);var b,c;b=0;for(c=D.length;b<c;b++)D[b].vA(a);a&&A&&A.suspend&&(A.suspend(),Z=!0)}};wa.Ra=function(){var a=this.b.Zf,b,c,e;b=0;for(c=D.length;b<c;b++)e=D[b],e.Ra(a),0!==K&&e.Rm();var d,k;for(d in aa)if(aa.hasOwnProperty(d))for(e=aa[d],b=0,c=e.length;b<c;b++)k=e[b],k.Ra&&k.Ra();1===J&&this.Oc.rl()&&(this.Oc.Ra(a),M=this.Oc.ya.x,S=this.Oc.ya.y,A.listener.setPosition(this.Oc.ya.x,this.Oc.ya.y,this.$i))};var gb=[];wa.uA=
function(a){var b,c,e,d,k,h=0;b=0;for(c=a.length;b<c;++b)if(e=a[b],d=e[0],e=2*e[1],(k=4<d.length&&".ogg"===d.substr(d.length-4))&&z||!k&&!z)gb.push({filename:d,size:e,ya:null}),h+=e;return h};wa.zA=function(){var a,b,c,e;a=0;for(b=gb.length;a<b;++a)c=gb[a],e=this.b.Hn+c.filename,c.ya=this.jl(e,!1)};wa.Fy=function(){var a=0,b,c,e;b=0;for(c=gb.length;b<c;++b)e=gb[b],e.ya.lz()||e.ya.az()||this.b.Za||this.b.ul?a+=e.size:e.ya.Lr()&&(a+=Math.floor(e.size/2));return a};wa.fA=function(){var a,b,c,e;c=a=0;
for(b=Q.length;a<b;++a)e=Q[a],Q[c]=e,e.od?e.eA():++c;Q.length=c};wa.jl=function(a,b){var c,e,d,k=null;c=0;for(e=Q.length;c<e;c++)if(d=Q[c],d.src===a){k=d;break}k||(eb&&b&&this.fA(),k=new V(a,b),Q.push(k));return k};wa.or=function(a,b,c,e,d){var k,h,f;k=0;for(h=D.length;k<h;k++)if(f=D[k],f.src===a&&(f.Nw()||c))return f.tag=b,f;a=this.jl(a,c);if(!a.qa)return"<preload>"!==b&&(a.fm=b,a.Io=e,a.Wp=d),null;f=new x(a,b);D.push(f);return f};var Qa=[];T.prototype.lk=function(a){return mb(L,a)};P.k=new T;B.prototype.Play=
function(a,b,c,e){!I&&(c=d(c),G=this.or(this.b.Hn+a[0]+(z?".ogg":".m4a"),e,a[1],0!==b,c))&&(G.wp(!1),G.play(0!==b,c,0,this.Ds),this.Ds=0)};B.prototype.jw=function(){var a,b;a=0;for(b=D.length;a<b;a++)D[a].stop()};B.prototype.Wv=function(a){H=d(a);var b;a=0;for(b=D.length;a<b;a++)D[a].eu()};P.B=new B;P.xa=new function(){}})();function sc(d){this.b=d}
(function(){function d(){v&&t&&window.OfflineClientInfo&&window.OfflineClientInfo.SetMessageCallback(function(c){b.Lz(c)})}function l(){}function q(){}var m=sc.prototype;m.aa=function(b){this.za=b;this.b=b.b};var n=m.aa.prototype;n.K=function(){};var v=!1,t=!1;document.addEventListener("DOMContentLoaded",function(){if(window.C2_RegisterSW&&navigator.ae){var b=document.createElement("script");b.onload=function(){v=!0;d()};b.src="offlineClient.js";document.head.appendChild(b)}});var b=null;n.Ls=function(){t=
!0;d()};m.S=function(b){this.type=b;this.b=b.b};n=m.S.prototype;n.K=function(){var c=this;window.addEventListener("resize",function(){c.b.trigger(sc.prototype.k.Gv,c)});b=this;"undefined"!==typeof navigator.onLine&&(window.addEventListener("online",function(){c.b.trigger(sc.prototype.k.Dv,c)}),window.addEventListener("offline",function(){c.b.trigger(sc.prototype.k.Bv,c)}));"undefined"!==typeof window.applicationCache&&(window.applicationCache.addEventListener("updateready",function(){c.b.Ch=1;c.b.trigger(sc.prototype.k.pk,
c)}),window.applicationCache.addEventListener("progress",function(b){c.b.Ch=b.loaded/b.total||0}));this.b.gc||(document.addEventListener("appMobi.device.update.available",function(){c.b.trigger(sc.prototype.k.pk,c)}),document.addEventListener("backbutton",function(){c.b.trigger(sc.prototype.k.kk,c)}),document.addEventListener("menubutton",function(){c.b.trigger(sc.prototype.k.qq,c)}),document.addEventListener("searchbutton",function(){c.b.trigger(sc.prototype.k.Hv,c)}),document.addEventListener("tizenhwkey",
function(b){var a;switch(b.keyName){case "back":a=c.b.trigger(sc.prototype.k.kk,c);!a&&window.tizen&&window.tizen.application.getCurrentApplication().exit();break;case "menu":(a=c.b.trigger(sc.prototype.k.qq,c))||b.preventDefault()}}));this.b.so&&"undefined"!==typeof Windows?Windows.UI.Core.SystemNavigationManager.getForCurrentView().addEventListener("backrequested",function(b){c.b.trigger(sc.prototype.k.kk,c)&&(b.handled=!0)}):this.b.Or&&WinJS.Application&&(WinJS.Application.onbackclick=function(){return!!c.b.trigger(sc.prototype.k.kk,
c)});this.b.Hq(function(b){b?c.b.trigger(sc.prototype.k.Ev,c):c.b.trigger(sc.prototype.k.Fv,c)})};n.Lz=function(b){b=b.data.type;"downloading-update"===b?this.b.trigger(sc.prototype.k.Kv,this):"update-ready"===b||"update-pending"===b?this.b.trigger(sc.prototype.k.pk,this):"offline-ready"===b&&this.b.trigger(sc.prototype.k.Cv,this)};l.prototype.Dv=function(){return!0};l.prototype.Bv=function(){return!0};l.prototype.pk=function(){return!0};l.prototype.Fv=function(){return!0};l.prototype.Ev=function(){return!0};
l.prototype.Gv=function(){return!0};l.prototype.kk=function(){return!0};l.prototype.qq=function(){return!0};l.prototype.Hv=function(){return!0};l.prototype.Kv=function(){return!0};l.prototype.pk=function(){return!0};l.prototype.Cv=function(){return!0};m.k=new l;q.prototype.Du=function(b){try{eval&&eval(b)}catch(e){console&&console.error&&console.error("Error executing Javascript: ",e)}};m.B=new q;m.xa=new function(){}})();function qc(d){this.b=d}
(function(){function d(){this.name="";this.Gj=0;this.Cb=[]}function l(){b++;b===t.length&&t.push(new d);return t[b]}function q(){}function m(){}function n(){}var v=qc.prototype;v.aa=function(b){this.za=b;this.b=b.b};v.aa.prototype.K=function(){};v.S=function(b){this.type=b;this.b=b.b};var t=[],b=-1;v.S.prototype.K=function(){var c=this;window.c2_callFunction=function(e,a){var d,f,n,m=l();m.name=e.toLowerCase();m.Gj=0;if(a)for(m.Cb.length=a.length,d=0,f=a.length;d<f;++d)n=a[d],m.Cb[d]="number"===typeof n||
"string"===typeof n?n:"boolean"===typeof n?n?1:0:0;else R(m.Cb);c.b.trigger(qc.prototype.k.nk,c,m.name);b--;return m.Gj}};q.prototype.nk=function(c){var e=0>b?null:t[b];return e?mb(c,e.name):!1};v.k=new q;m.prototype.CallFunction=function(c,e){var a=l();a.name=c.toLowerCase();a.Gj=0;Ba(a.Cb,e);this.b.trigger(qc.prototype.k.nk,this,a.name);b--};v.B=new m;n.prototype.Mv=function(c,e){e=C(e);var a=0>b?null:t[b];a?0<=e&&e<a.Cb.length?c.xm(a.Cb[e]):c.Fa(0):c.Fa(0)};n.prototype.pu=function(c,e){var a=l();
a.name=e.toLowerCase();a.Gj=0;R(a.Cb);var d,f;d=2;for(f=arguments.length;d<f;d++)a.Cb.push(arguments[d]);this.b.trigger(qc.prototype.k.nk,this,a.name);b--;c.xm(a.Gj)};v.xa=new n})();function tc(d){this.b=d}
(function(){function d(){}var l=tc.prototype;l.aa=function(d){this.za=d;this.b=d.b};l.aa.prototype.K=function(){};l.S=function(d){this.type=d;this.b=d.b;this.wh=Array(256);this.bk=Array(256);this.bf=0};var q=l.S.prototype;q.K=function(){var d=this;this.b.Za||(jQuery(document).keydown(function(m){d.Uo(m)}),jQuery(document).keyup(function(m){d.Vo(m)}))};var m=[32,33,34,35,36,37,38,39,40,44];q.Uo=function(d){var q=!1;window!=window.top&&-1<m.indexOf(d.which)&&(d.preventDefault(),q=!0,d.stopPropagation());
if(this.wh[d.which])this.bk[d.which]&&!q&&d.preventDefault();else{this.wh[d.which]=!0;this.bf=d.which;this.b.Kc=!0;this.b.trigger(tc.prototype.k.cq,this);var l=this.b.trigger(tc.prototype.k.kq,this),b=this.b.trigger(tc.prototype.k.xv,this);this.b.Kc=!1;if(l||b)this.bk[d.which]=!0,q||d.preventDefault()}};q.Vo=function(d){this.wh[d.which]=!1;this.bf=d.which;this.b.Kc=!0;this.b.trigger(tc.prototype.k.dq,this);var m=this.b.trigger(tc.prototype.k.mq,this),q=this.b.trigger(tc.prototype.k.lq,this);this.b.Kc=
!1;if(m||q||this.bk[d.which])this.bk[d.which]=!0,d.preventDefault()};q.Gg=function(){var d;for(d=0;256>d;++d)if(this.wh[d]){this.wh[d]=!1;this.bf=d;this.b.trigger(tc.prototype.k.dq,this);var m=this.b.trigger(tc.prototype.k.mq,this),q=this.b.trigger(tc.prototype.k.lq,this);if(m||q)this.bk[d]=!0}};q.ab=function(){return{triggerKey:this.bf}};q.Ab=function(d){this.bf=d.triggerKey};d.prototype.Su=function(d){return this.wh[d]};d.prototype.kq=function(d){return d===this.bf};d.prototype.cq=function(){return!0};
d.prototype.dq=function(){return!0};d.prototype.mq=function(d){return d===this.bf};d.prototype.xv=function(d){return d===this.bf};d.prototype.lq=function(d){return d===this.bf};l.k=new d;l.B=new function(){};l.xa=new function(){}})();var uc=!1;
try{!function(){var d,l,q;!function(){var m={},n={};d=function(d,n,b){m[d]={Xw:n,Mw:b}};q=l=function(d){function t(a){if("."!==a.charAt(0))return a;a=a.split("/");for(var b=d.split("/").slice(0,-1),c=0,e=a.length;e>c;c++){var h=a[c];".."===h?b.pop():"."!==h&&b.push(h)}return b.join("/")}if(q.DB=m,n[d])return n[d];if(n[d]={},!m[d])throw Error("Could not find module "+d);for(var b,c=m[d],e=c.Xw,c=c.Mw,a=[],g=0,f=e.length;f>g;g++)"exports"===e[g]?a.push(b={}):a.push(l(t(e[g])));e=c.apply(this,a);return n[d]=
b||e}}();d("promise/all",["./utils","exports"],function(d,n){var q=d.isArray,l=d.isFunction;n.all=function(b){if(!q(b))throw new TypeError("You must pass an array to all.");return new this(function(c,e){function a(a){return function(b){f[a]=b;0===--m&&c(f)}}var d,f=[],m=b.length;0===m&&c([]);for(var n=0;n<b.length;n++)(d=b[n])&&l(d.then)?d.then(a(n),e):(f[n]=d,0===--m&&c(f))})}});d("promise/asap",["exports"],function(d){function n(){return function(){process.UB(b)}}function q(){var c=0,e=new a(b),
d=document.createTextNode("");return e.observe(d,{characterData:!0}),function(){d.data=c=++c%2}}function l(){return function(){g.setTimeout(b,1)}}function b(){for(var a=0;a<f.length;a++){var b=f[a];(0,b[0])(b[1])}f=[]}var c,e="undefined"!=typeof window?window:{},a=e.MutationObserver||e.WebKitMutationObserver,g="undefined"!=typeof global?global:void 0===this?window:this,f=[];c="undefined"!=typeof process&&"[object process]"==={}.toString.call(process)?n():a?q():l();d.Ew=function(a,b){1===f.push([a,
b])&&c()}});d("promise/config",["exports"],function(d){var n={MB:!1};d.Wq=n;d.Qw=function(d,m){return 2!==arguments.length?n[d]:void(n[d]=m)}});d("promise/polyfill",["./promise","./utils","exports"],function(d,n,q){var l=d.Promise,b=n.isFunction;q.Rz=function(){var c;c="undefined"!=typeof global?global:"undefined"!=typeof window&&window.document?window:self;"Promise"in c&&"resolve"in c.Promise&&"reject"in c.Promise&&"all"in c.Promise&&"race"in c.Promise&&function(){var e;return new c.Promise(function(a){e=
a}),b(e)}()||(c.Promise=l)}});d("promise/promise","./config ./utils ./all ./race ./resolve ./reject ./asap exports".split(" "),function(d,n,q,l,b,c,e,a){function g(a){if(!B(a))throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");if(!(this instanceof g))throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this.sk=[];f(a,this)}function f(a,b){function c(a){h(b,
a)}function e(a){y(b,a)}try{a(c,e)}catch(d){e(d)}}function r(a,b,c,e){var d,f,g,p,x=B(c);if(x)try{d=c(e),g=!0}catch(n){p=!0,f=n}else d=e,g=!0;k(b,d)||(x&&g?h(b,d):p?y(b,f):a===F?h(b,d):a===L&&y(b,d))}function w(a,b,c,d){a=a.sk;var e=a.length;a[e]=b;a[e+F]=c;a[e+L]=d}function u(a,b){for(var c,e,d=a.sk,k=a.rk,h=0;h<d.length;h+=3)c=d[h],e=d[h+b],r(b,c,e,k);a.sk=null}function k(a,b){var c,d=null;try{if(a===b)throw new TypeError("A promises callback cannot return that same promise.");if(T(b)&&(d=b.then,
B(d)))return d.call(b,function(d){return c?!0:(c=!0,void(b!==d?h(a,d):p(a,d)))},function(b){return c?!0:(c=!0,void y(a,b))}),!0}catch(e){return c?!0:(y(a,e),!0)}return!1}function h(a,b){a===b?p(a,b):k(a,b)||p(a,b)}function p(a,b){a.ve===P&&(a.ve=E,a.rk=b,W.async(V,a))}function y(a,b){a.ve===P&&(a.ve=E,a.rk=b,W.async(x,a))}function V(a){u(a,a.ve=F)}function x(a){u(a,a.ve=L)}var W=d.Wq,T=(d.Qw,n.Fz),B=n.isFunction;d=(n.now,q.all);l=l.race;b=b.resolve;c=c.reject;W.async=e.Ew;var P=void 0,E=0,F=1,L=2;
g.prototype={constructor:g,ve:void 0,rk:void 0,sk:void 0,then:function(a,b){var c=this,d=new this.constructor(function(){});if(this.ve){var e=arguments;W.async(function(){r(c.ve,d,e[c.ve-1],c.rk)})}else w(this,d,a,b);return d},"catch":function(a){return this.then(null,a)}};g.all=d;g.race=l;g.resolve=b;g.reject=c;a.Promise=g});d("promise/race",["./utils","exports"],function(d,n){var q=d.isArray;n.race=function(d){if(!q(d))throw new TypeError("You must pass an array to race.");return new this(function(b,
c){for(var e,a=0;a<d.length;a++)(e=d[a])&&"function"==typeof e.then?e.then(b,c):b(e)})}});d("promise/reject",["exports"],function(d){d.reject=function(d){return new this(function(m,q){q(d)})}});d("promise/resolve",["exports"],function(d){d.resolve=function(d){return d&&"object"==typeof d&&d.constructor===this?d:new this(function(m){m(d)})}});d("promise/utils",["exports"],function(d){function n(d){return"function"==typeof d}var q=Date.now||function(){return(new Date).getTime()};d.Fz=function(d){return n(d)||
"object"==typeof d&&null!==d};d.isFunction=n;d.isArray=function(d){return"[object Array]"===Object.prototype.toString.call(d)};d.now=q});l("promise/polyfill").Rz()}();var vc=function(){return function(d){function l(m){if(q[m])return q[m].fe;var n=q[m]={fe:{},id:m,loaded:!1};return d[m].call(n.fe,n,n.fe,l),n.loaded=!0,n.fe}var q={};return l.ae=d,l.ni=q,l.vo="",l(0)}([function(d,l,q){l.qk=!0;var m=function(d){function m(a,b){a[b]=function(){var c=arguments;return a.ready().then(function(){return a[b].apply(a,
c)})}}function l(){for(var a=1;a<arguments.length;a++){var b=arguments[a];if(b)for(var c in b)b.hasOwnProperty(c)&&(r(b[c])?arguments[0][c]=b[c].slice():arguments[0][c]=b[c])}return arguments[0]}function b(a){for(var b in e)if(e.hasOwnProperty(b)&&e[b]===a)return!0;return!1}var c={},e={di:"asyncStorage",ei:"localStorageWrapper",gi:"webSQLStorage"},a="clear getItem iterate key keys length removeItem setItem".split(" "),g={description:"",bh:[e.di,e.gi,e.ei].slice(),name:"localforage",size:4980736,Ca:"keyvaluepairs",
version:1},f=function(a){var b={},c;try{var d=d||a.indexedDB||a.webkitIndexedDB||a.mozIndexedDB||a.Ur||a.msIndexedDB;c="undefined"!=typeof a.openDatabase&&a.navigator&&a.navigator.userAgent&&/Safari/.test(a.navigator.userAgent)&&!/Chrome/.test(a.navigator.userAgent)?!1:d&&"function"==typeof d.open&&"undefined"!=typeof a.IDBKeyRange}catch(f){c=!1}b[e.di]=!!c;var g;try{g=a.openDatabase}catch(n){g=!1}b[e.gi]=!!g;var x;try{x=a.localStorage&&"setItem"in a.localStorage&&a.localStorage.setItem}catch(m){x=
!1}return b[e.ei]=!!x,b}(d),r=Array.isArray||function(a){return"[object Array]"===Object.prototype.toString.call(a)};return new (function(){function d(a){if(!(this instanceof d))throw new TypeError("Cannot call a class as a function");this.di=e.di;this.ei=e.ei;this.gi=e.gi;this.bn=l({},g);this.Pf=l({},this.bn,a);this.zq=this.Zd=null;this.jf=!1;this.ua=null;this.Aq();this.ut(this.Pf.bh)}return d.prototype.Wq=function(a){if("object"==typeof a){if(this.jf)return Error("Can't call config() after localforage has been used.");
for(var b in a)"storeName"===b&&(a[b]=a[b].replace(/\W/g,"_")),this.Pf[b]=a[b];return"driver"in a&&a.bh&&this.ut(this.Pf.bh),!0}return"string"==typeof a?this.Pf[a]:this.Pf},d.prototype.bh=function(){return this.hi||null},d.prototype.qr=function(a,d,e){var f=this,g=function(){if(b(a))switch(a){case f.di:return new Promise(function(a){a(q(1))});case f.ei:return new Promise(function(a){a(q(2))});case f.gi:return new Promise(function(a){a(q(4))})}else if(c[a])return Promise.resolve(c[a]);return Promise.reject(Error("Driver not found."))}();
return g.then(d,e),g},d.prototype.ready=function(a){var b=this,c=b.Zd.then(function(){return null===b.jf&&(b.jf=b.zq()),b.jf});return c.then(a,a),c},d.prototype.ut=function(a,b,c){function d(){f.Pf.bh=f.bh()}function e(a){return function(){function b(){for(;c<a.length;){var e=a[c];return c++,f.ua=null,f.jf=null,f.qr(e).then(function(a){return f.vw(a),d(),f.jf=f.dn(f.Pf),f.jf})["catch"](b)}d();return f.Zd=Promise.reject(Error("No available storage method found.")),f.Zd}var c=0;return b()}}var f=this;
r(a)||(a=[a]);var g=this.ww(a);return this.Zd=(null!==this.Zd?this.Zd["catch"](function(){return Promise.resolve()}):Promise.resolve()).then(function(){var a=g[0];return f.ua=null,f.jf=null,f.qr(a).then(function(a){f.hi=a.hi;d();f.Aq();f.zq=e(g)})})["catch"](function(){d();return f.Zd=Promise.reject(Error("No available storage method found.")),f.Zd}),this.Zd.then(b,c),this.Zd},d.prototype.supports=function(a){return!!f[a]},d.prototype.vw=function(a){l(this,a)},d.prototype.ww=function(a){for(var b=
[],c=0,d=a.length;d>c;c++){var e=a[c];this.supports(e)&&b.push(e)}return b},d.prototype.Aq=function(){for(var b=0;b<a.length;b++)m(this,a[b])},d.prototype.Lk=function(a){return new d(a)},d}())}("undefined"!=typeof window?window:self);l["default"]=m;d.fe=l["default"]},function(d,l){l.qk=!0;l["default"]=function(d){function m(a,b){a=a||[];b=b||{};try{return new Blob(a,b)}catch(c){if("TypeError"!==c.name)throw c;for(var e=new (d.BlobBuilder||d.ae||d.vo||d.WebKitBlobBuilder),k=0;k<a.length;k+=1)e.append(a[k]);
return e.getBlob(b.type)}}function n(a){return new Promise(function(b,c){var d=new XMLHttpRequest;d.open("GET",a);d.withCredentials=!0;d.responseType="arraybuffer";d.onreadystatechange=function(){return 4===d.readyState?200===d.status?b({response:d.response,type:d.getResponseHeader("Content-Type")}):void c({status:d.status,response:d.response}):void 0};d.send()})}function l(a){return(new Promise(function(b,c){var d=m([""],{type:"image/png"}),e=a.transaction([P],"readwrite");e.objectStore(P).put(d,
"key");e.oncomplete=function(){var d=a.transaction([P],"readwrite").objectStore(P).get("key");d.onerror=c;d.onsuccess=function(a){var c=URL.createObjectURL(a.target.result);n(c).then(function(a){b(!(!a||"image/png"!==a.type))},function(){b(!1)}).then(function(){URL.revokeObjectURL(c)})}};e.onerror=e.onabort=c}))["catch"](function(){return!1})}function t(a){return"boolean"==typeof T?Promise.resolve(T):l(a).then(function(a){return T=a})}function b(a){return new Promise(function(b,c){var d=new FileReader;
d.onerror=c;d.onloadend=function(c){b({yq:!0,data:btoa(c.target.result||""),type:a.type})};d.readAsBinaryString(a)})}function c(a){for(var b=atob(a.data),c=b.length,d=new ArrayBuffer(c),e=new Uint8Array(d),k=0;c>k;k++)e[k]=b.charCodeAt(k);return m([d],{type:a.type})}function e(a){var b=this,c=b.cn().then(function(){var a=B[b.ua.name];return a&&a.Zg?a.Zg:void 0});return c.then(a,a),c}function a(a){a=B[a.name];var b={};b.promise=new Promise(function(a){b.resolve=a});a.$q.push(b);a.Zg?a.Zg=a.Zg.then(function(){return b.promise}):
a.Zg=b.promise}function g(a){function b(){return Promise.resolve()}var c=this,k={db:null};if(a)for(var h in a)k[h]=a[h];B||(B={});var g=B[k.name];g||(g={gl:[],db:null,Zg:null,$q:[]},B[k.name]=g);g.gl.push(c);c.cn||(c.cn=c.ready,c.ready=e);a=[];for(h=0;h<g.gl.length;h++){var p=g.gl[h];p!==c&&a.push(p.cn()["catch"](b))}var x=g.gl.slice(0);return Promise.all(a).then(function(){return k.db=g.db,f(k,!1)}).then(function(a){k.db=a;var b;b=c.bn.version;if(k.db){var e=!k.db.objectStoreNames.contains(k.Ca),
h=k.version>k.db.version;(k.version<k.db.version&&(k.version!==b&&d.console.warn('The database "'+k.name+"\" can't be downgraded from version "+k.db.version+" to version "+k.version+"."),k.version=k.db.version),h||e)?(e&&(b=k.db.version+1,b>k.version&&(k.version=b)),b=!0):b=!1}else b=!0;return b?f(k,!0):a}).then(function(a){k.db=g.db=a;c.ua=k;for(a=0;a<x.length;a++){var b=x[a];b!==c&&(b.ua.db=k.db,b.ua.version=k.version)}})}function f(b,c){return new Promise(function(e,k){if(b.db){if(!c)return e(b.db);
a(b);b.db.close()}var h=[b.name];c&&h.push(b.version);var f=W.open.apply(W,h);c&&(f.onupgradeneeded=function(a){var c=f.result;try{c.createObjectStore(b.Ca),1>=a.oldVersion&&c.createObjectStore(P)}catch(e){if("ConstraintError"!==e.name)throw e;d.console.warn('The database "'+b.name+'" has been upgraded from version '+a.oldVersion+" to version "+a.newVersion+', but the storage "'+b.Ca+'" already exists.')}});f.onerror=function(){k(f.error)};f.onsuccess=function(){e(f.result);var a=B[b.name].$q.pop();
a&&a.resolve()}})}function r(a,b){var e=this;"string"!=typeof a&&(d.console.warn(a+" used as a key, but it is not a string."),a=String(a));var k=new Promise(function(b,d){e.ready().then(function(){var k=e.ua,h=k.db.transaction(k.Ca,"readonly").objectStore(k.Ca).get(a);h.onsuccess=function(){var a=h.result;void 0===a&&(a=null);a&&a.yq&&(a=c(a));b(a)};h.onerror=function(){d(h.error)}})["catch"](d)});return x(k,b),k}function w(a,b){var d=this,e=new Promise(function(b,e){d.ready().then(function(){var k=
d.ua,h=k.db.transaction(k.Ca,"readonly").objectStore(k.Ca).openCursor(),f=1;h.onsuccess=function(){var d=h.result;if(d){var e=d.value;e&&e.yq&&(e=c(e));e=a(e,d.key,f++);void 0!==e?b(e):d["continue"]()}else b()};h.onerror=function(){e(h.error)}})["catch"](e)});return x(e,b),e}function u(a,c,e){var k=this;"string"!=typeof a&&(d.console.warn(a+" used as a key, but it is not a string."),a=String(a));var h=new Promise(function(d,e){var h;k.ready().then(function(){return h=k.ua,c instanceof Blob?t(h.db).then(function(a){return a?
c:b(c)}):c}).then(function(b){var c=h.db.transaction(h.Ca,"readwrite"),k=c.objectStore(h.Ca);null===b&&(b=void 0);c.oncomplete=function(){void 0===b&&(b=null);d(b)};c.onabort=c.onerror=function(){e(f.error?f.error:f.transaction.error)};var f=k.put(b,a)})["catch"](e)});return x(h,e),h}function k(a,b){var c=this;"string"!=typeof a&&(d.console.warn(a+" used as a key, but it is not a string."),a=String(a));var e=new Promise(function(b,d){c.ready().then(function(){var e=c.ua,k=e.db.transaction(e.Ca,"readwrite"),
h=k.objectStore(e.Ca)["delete"](a);k.oncomplete=function(){b()};k.onerror=function(){d(h.error)};k.onabort=function(){d(h.error?h.error:h.transaction.error)}})["catch"](d)});return x(e,b),e}function h(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.ua,e=d.db.transaction(d.Ca,"readwrite"),k=e.objectStore(d.Ca).clear();e.oncomplete=function(){a()};e.onabort=e.onerror=function(){c(k.error?k.error:k.transaction.error)}})["catch"](c)});return x(c,a),c}function p(a){var b=this,
c=new Promise(function(a,c){b.ready().then(function(){var d=b.ua,e=d.db.transaction(d.Ca,"readonly").objectStore(d.Ca).count();e.onsuccess=function(){a(e.result)};e.onerror=function(){c(e.error)}})["catch"](c)});return x(c,a),c}function y(a,b){var c=this,d=new Promise(function(b,d){return 0>a?void b(null):void c.ready().then(function(){var e=c.ua,k=!1,h=e.db.transaction(e.Ca,"readonly").objectStore(e.Ca).openCursor();h.onsuccess=function(){var c=h.result;return c?void(0===a?b(c.key):k?b(c.key):(k=
!0,c.advance(a))):void b(null)};h.onerror=function(){d(h.error)}})["catch"](d)});return x(d,b),d}function V(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.ua,e=d.db.transaction(d.Ca,"readonly").objectStore(d.Ca).openCursor(),k=[];e.onsuccess=function(){var b=e.result;return b?(k.push(b.key),void b["continue"]()):void a(k)};e.onerror=function(){c(e.error)}})["catch"](c)});return x(c,a),c}function x(a,b){b&&a.then(function(a){b(null,a)},function(a){b(a)})}var W=W||d.indexedDB||
d.webkitIndexedDB||d.mozIndexedDB||d.Ur||d.msIndexedDB;if(W){var T,B,P="local-forage-detect-blob-support";return{hi:"asyncStorage",dn:g,Sr:w,getItem:r,setItem:u,removeItem:k,clear:h,length:p,key:y,keys:V}}}("undefined"!=typeof window?window:self);d.fe=l["default"]},function(d,l,q){l.qk=!0;l["default"]=function(d){function n(b,c){c&&b.then(function(b){c(null,b)},function(b){c(b)})}var l=null;try{if(!(d.localStorage&&"setItem"in d.localStorage))return;l=d.localStorage}catch(t){return}return{hi:"localStorageWrapper",
dn:function(b){var c={};if(b)for(var d in b)c[d]=b[d];return c.je=c.name+"/",c.Ca!==this.bn.Ca&&(c.je+=c.Ca+"/"),this.ua=c,(new Promise(function(a){a(q(3))})).then(function(a){return c.Hg=a,Promise.resolve()})},Sr:function(b,c){var d=this,a=d.ready().then(function(){for(var a=d.ua,c=a.je,n=c.length,m=l.length,q=1,k=0;m>k;k++){var h=l.key(k);if(0===h.indexOf(c)){var p=l.getItem(h);if(p&&(p=a.Hg.Uk(p)),p=b(p,h.substring(n),q++),void 0!==p)return p}}});return n(a,c),a},getItem:function(b,c){var e=this;
"string"!=typeof b&&(d.console.warn(b+" used as a key, but it is not a string."),b=String(b));var a=e.ready().then(function(){var a=e.ua,c=l.getItem(a.je+b);return c&&(c=a.Hg.Uk(c)),c});return n(a,c),a},setItem:function(b,c,e){var a=this;"string"!=typeof b&&(d.console.warn(b+" used as a key, but it is not a string."),b=String(b));var g=a.ready().then(function(){void 0===c&&(c=null);var d=c;return new Promise(function(e,g){var n=a.ua;n.Hg.serialize(c,function(a,c){if(c)g(c);else try{l.setItem(n.je+
b,a),e(d)}catch(p){"QuotaExceededError"!==p.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==p.name||g(p),g(p)}})})});return n(g,e),g},removeItem:function(b,c){var e=this;"string"!=typeof b&&(d.console.warn(b+" used as a key, but it is not a string."),b=String(b));var a=e.ready().then(function(){l.removeItem(e.ua.je+b)});return n(a,c),a},clear:function(b){var c=this,d=c.ready().then(function(){for(var a=c.ua.je,b=l.length-1;0<=b;b--){var d=l.key(b);0===d.indexOf(a)&&l.removeItem(d)}});return n(d,b),d},length:function(b){var c=
this.keys().then(function(b){return b.length});return n(c,b),c},key:function(b,c){var d=this,a=d.ready().then(function(){var a,c=d.ua;try{a=l.key(b)}catch(n){a=null}return a&&(a=a.substring(c.je.length)),a});return n(a,c),a},keys:function(b){var c=this,d=c.ready().then(function(){for(var a=c.ua,b=l.length,d=[],e=0;b>e;e++)0===l.key(e).indexOf(a.je)&&d.push(l.key(e).substring(a.je.length));return d});return n(d,b),d}}}("undefined"!=typeof window?window:self);d.fe=l["default"]},function(d,l){l.qk=!0;
l["default"]=function(d){function m(b){var c,d,a,g,f;c=.75*b.length;var n=b.length,m=0;"="===b[b.length-1]&&(c--,"="===b[b.length-2]&&c--);var q=new ArrayBuffer(c),k=new Uint8Array(q);for(c=0;n>c;c+=4)d=l.indexOf(b[c]),a=l.indexOf(b[c+1]),g=l.indexOf(b[c+2]),f=l.indexOf(b[c+3]),k[m++]=d<<2|a>>4,k[m++]=(15&a)<<4|g>>2,k[m++]=(3&g)<<6|63&f;return q}function n(b){var c=new Uint8Array(b),d="";for(b=0;b<c.length;b+=3)d+=l[c[b]>>2],d+=l[(3&c[b])<<4|c[b+1]>>4],d+=l[(15&c[b+1])<<2|c[b+2]>>6],d+=l[63&c[b+2]];
return 2===c.length%3?d=d.substring(0,d.length-1)+"=":1===c.length%3&&(d=d.substring(0,d.length-2)+"=="),d}var l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=/^~~local_forage_type~([^~]+)~/;return{serialize:function(b,c){var d="";if(b&&(d=b.toString()),b&&("[object ArrayBuffer]"===b.toString()||b.buffer&&"[object ArrayBuffer]"===b.buffer.toString())){var a,g="__lfsc__:";b instanceof ArrayBuffer?(a=b,g+="arbf"):(a=b.buffer,"[object Int8Array]"===d?g+="si08":"[object Uint8Array]"===
d?g+="ui08":"[object Uint8ClampedArray]"===d?g+="uic8":"[object Int16Array]"===d?g+="si16":"[object Uint16Array]"===d?g+="ur16":"[object Int32Array]"===d?g+="si32":"[object Uint32Array]"===d?g+="ui32":"[object Float32Array]"===d?g+="fl32":"[object Float64Array]"===d?g+="fl64":c(Error("Failed to get type for BinaryArray")));c(g+n(a))}else if("[object Blob]"===d)d=new FileReader,d.onload=function(){var a="~~local_forage_type~"+b.type+"~"+n(this.result);c("__lfsc__:blob"+a)},d.readAsArrayBuffer(b);else try{c(JSON.stringify(b))}catch(f){console.error("Couldn't convert value into a JSON string: ",
b),c(null,f)}},Uk:function(b){if("__lfsc__:"!==b.substring(0,9))return JSON.parse(b);var c,e=b.substring(13);b=b.substring(9,13);if("blob"===b&&t.test(e)){var a=e.match(t);c=a[1];e=e.substring(a[0].length)}e=m(e);switch(b){case "arbf":return e;case "blob":var g;e=[e];c={type:c};e=e||[];c=c||{};try{g=new Blob(e,c)}catch(f){if("TypeError"!==f.name)throw f;g=new (d.BlobBuilder||d.ae||d.vo||d.WebKitBlobBuilder);for(b=0;b<e.length;b+=1)g.append(e[b]);g=g.getBlob(c.type)}return g;case "si08":return new Int8Array(e);
case "ui08":return new Uint8Array(e);case "uic8":return new Uint8ClampedArray(e);case "si16":return new Int16Array(e);case "ur16":return new Uint16Array(e);case "si32":return new Int32Array(e);case "ui32":return new Uint32Array(e);case "fl32":return new Float32Array(e);case "fl64":return new Float64Array(e);default:throw Error("Unkown type: "+b);}},$B:m,HB:n}}("undefined"!=typeof window?window:self);d.fe=l["default"]},function(d,l,q){l.qk=!0;l["default"]=function(d){function n(a){var b=this,c={db:null};
if(a)for(var d in a)c[d]="string"!=typeof a[d]?a[d].toString():a[d];var e=new Promise(function(a,d){try{c.db=w(c.name,String(c.version),c.description,c.size)}catch(e){return d(e)}c.db.transaction(function(e){e.executeSql("CREATE TABLE IF NOT EXISTS "+c.Ca+" (id INTEGER PRIMARY KEY, key unique, value)",[],function(){b.ua=c;a()},function(a,b){d(b)})})});return(new Promise(function(a){a(q(3))})).then(function(a){return c.Hg=a,e})}function l(a,b){var c=this;"string"!=typeof a&&(d.console.warn(a+" used as a key, but it is not a string."),
a=String(a));var e=new Promise(function(b,d){c.ready().then(function(){var e=c.ua;e.db.transaction(function(c){c.executeSql("SELECT * FROM "+e.Ca+" WHERE key = ? LIMIT 1",[a],function(a,c){var d=c.rows.length?c.rows.item(0).value:null;d&&(d=e.Hg.Uk(d));b(d)},function(a,b){d(b)})})})["catch"](d)});return r(e,b),e}function t(a,b){var c=this,d=new Promise(function(b,d){c.ready().then(function(){var e=c.ua;e.db.transaction(function(c){c.executeSql("SELECT * FROM "+e.Ca,[],function(c,d){for(var k=d.rows,
h=k.length,f=0;h>f;f++){var g=k.item(f),p=g.value;if(p&&(p=e.Hg.Uk(p)),p=a(p,g.key,f+1),void 0!==p)return void b(p)}b()},function(a,b){d(b)})})})["catch"](d)});return r(d,b),d}function b(a,b,c){var e=this;"string"!=typeof a&&(d.console.warn(a+" used as a key, but it is not a string."),a=String(a));var f=new Promise(function(c,d){e.ready().then(function(){void 0===b&&(b=null);var h=b,f=e.ua;f.Hg.serialize(b,function(b,e){e?d(e):f.db.transaction(function(e){e.executeSql("INSERT OR REPLACE INTO "+f.Ca+
" (key, value) VALUES (?, ?)",[a,b],function(){c(h)},function(a,b){d(b)})},function(a){a.code===a.QUOTA_ERR&&d(a)})})})["catch"](d)});return r(f,c),f}function c(a,b){var c=this;"string"!=typeof a&&(d.console.warn(a+" used as a key, but it is not a string."),a=String(a));var e=new Promise(function(b,d){c.ready().then(function(){var e=c.ua;e.db.transaction(function(c){c.executeSql("DELETE FROM "+e.Ca+" WHERE key = ?",[a],function(){b()},function(a,b){d(b)})})})["catch"](d)});return r(e,b),e}function e(a){var b=
this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.ua;d.db.transaction(function(b){b.executeSql("DELETE FROM "+d.Ca,[],function(){a()},function(a,b){c(b)})})})["catch"](c)});return r(c,a),c}function a(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.ua;d.db.transaction(function(b){b.executeSql("SELECT COUNT(key) as c FROM "+d.Ca,[],function(b,c){var d=c.rows.item(0).ni;a(d)},function(a,b){c(b)})})})["catch"](c)});return r(c,a),c}function g(a,b){var c=this,
d=new Promise(function(b,d){c.ready().then(function(){var e=c.ua;e.db.transaction(function(c){c.executeSql("SELECT key FROM "+e.Ca+" WHERE id = ? LIMIT 1",[a+1],function(a,c){var d=c.rows.length?c.rows.item(0).key:null;b(d)},function(a,b){d(b)})})})["catch"](d)});return r(d,b),d}function f(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.ua;d.db.transaction(function(b){b.executeSql("SELECT key FROM "+d.Ca,[],function(b,c){for(var d=[],e=0;e<c.rows.length;e++)d.push(c.rows.item(e).key);
a(d)},function(a,b){c(b)})})})["catch"](c)});return r(c,a),c}function r(a,b){b&&a.then(function(a){b(null,a)},function(a){b(a)})}var w=d.openDatabase;if(w)return{hi:"webSQLStorage",dn:n,Sr:t,getItem:l,setItem:b,removeItem:c,clear:e,length:a,key:g,keys:f}}("undefined"!=typeof window?window:self);d.fe=l["default"]}])};"object"==typeof exports&&"object"==typeof module?module.fe=vc():"function"==typeof define&&define.GB?define([],vc):"object"==typeof exports?exports.localforage=vc():this.localforage=
vc()}catch(wc){uc=!0}function xc(d){this.b=d}
(function(){function d(b){b.b.trigger(xc.prototype.k.mk,b)}function l(){}function q(){}function m(){}var n="",v="",t="";"undefined"!==typeof window.is_scirra_arcade&&(t="sa"+window.scirra_arcade_id+"_");var b=xc.prototype;b.aa=function(b){this.za=b;this.b=b.b};b.aa.prototype.K=function(){};b.S=function(b){this.type=b;this.b=b.b};var c=b.S.prototype;c.K=function(){this.$o=this.bp=0};c.Oe=function(){};c.ab=function(){return{}};c.Ab=function(){};l.prototype.vv=function(b){return n===b};l.prototype.kv=
function(){return!0};l.prototype.iq=function(b){return n===b};l.prototype.jv=function(){return!0};l.prototype.mk=function(){return!0};l.prototype.hq=function(b){return n===b};l.prototype.jq=function(b){return n===b};l.prototype.dv=function(){return!0};l.prototype.cv=function(){return!0};b.k=new l;q.prototype.Vv=function(b,a){if(uc)d(this);else{var c=t+b;this.bp++;var f=this;localforage.setItem(c,a,function(a,c){f.bp--;a?f.b.trigger(xc.prototype.k.mk,f):(n=b,v=c,f.b.trigger(xc.prototype.k.kv,f),f.b.trigger(xc.prototype.k.vv,
f),v=n="");0===f.bp&&f.b.trigger(xc.prototype.k.dv,f)})}};q.prototype.Gu=function(b){if(uc)d(this);else{var a=t+b;this.$o++;var c=this;localforage.getItem(a,function(a,d){c.$o--;if(a)c.b.trigger(xc.prototype.k.mk,c);else{n=b;v=d;if("undefined"===typeof v||null===v)v="";c.b.trigger(xc.prototype.k.jv,c);c.b.trigger(xc.prototype.k.iq,c);v=n=""}0===c.$o&&c.b.trigger(xc.prototype.k.cv,c)})}};q.prototype.qu=function(b){if(uc)d(this);else{var a=this;localforage.getItem(t+b,function(c,d){c?a.b.trigger(xc.prototype.k.mk,
a):(n=b,null===d?(v="",a.b.trigger(xc.prototype.k.jq,a)):(v=d,a.b.trigger(xc.prototype.k.hq,a)),v=n="")})}};b.B=new q;m.prototype.Yu=function(b){b.xm(v)};b.xa=new m})();function Y(d){this.b=d}
(function(){function d(){if(0===this.xn.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.Th?b.drawImage(this.J,this.Kh,this.Lh,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.J,0,0,this.width,this.height);this.xn=a.toDataURL("image/png")}return this.xn}function l(){}function q(a){a[0]=0;a[1]=0;a[2]=0;r.push(a)}function m(a,b){return a<b?""+a+","+b:""+b+","+a}function n(a,b,c,d){b=b.uid;c=c.uid;var e=m(b,c);if(a.hasOwnProperty(e))a[e][2]=
d;else{var k=r.length?r.pop():[0,0,0];k[0]=b;k[1]=c;k[2]=d;a[e]=k}}function v(a,b,c){b=m(b.uid,c.uid);a.hasOwnProperty(b)&&(q(a[b]),delete a[b])}function t(a,b,c){b=m(b.uid,c.uid);if(a.hasOwnProperty(b))return w=a[b][2],!0;w=-2;return!1}function b(){}function c(){}var e=Y.prototype;e.aa=function(a){this.za=a;this.b=a.b};var a=e.aa.prototype;a.K=function(){if(!this.L){var a,b,c,e,k,h,f,g,p;this.Ed=[];this.Hi=!1;a=0;for(b=this.Gc.length;a<b;a++){k=this.Gc[a];f={};f.name=k[0];f.speed=k[1];f.loop=k[2];
f.kp=k[3];f.lp=k[4];f.$s=k[5];f.la=k[6];f.frames=[];c=0;for(e=k[7].length;c<e;c++)h=k[7][c],g={},g.Xj=h[0],g.Hm=h[1],g.Kh=h[2],g.Lh=h[3],g.width=h[4],g.height=h[5],g.duration=h[6],g.nc=h[7],g.oc=h[8],g.eo=h[9],g.gm=h[10],g.bt=h[11],g.Th=0!==g.width,g.xn="",g.KB=d,p={left:0,top:0,right:1,bottom:1},g.Ap=p,g.Z=null,(p=this.b.ny(h[0]))?g.J=p:(g.J=new Image,g.J.Sw=h[0],g.J.un=h[1],g.J.Kw=null,this.b.Vm(g.J,h[0])),f.frames.push(g),this.Ed.push(g);this.Gc[a]=f}}};a.cu=function(){var a,b,c;a=0;for(b=this.j.length;a<
b;a++)c=this.j[a],c.Nk=c.Tb.Z};a.rj=function(){if(!this.L){var a,b,c;a=0;for(b=this.Ed.length;a<b;++a)c=this.Ed[a],c.J.Kw=null,c.Z=null;this.Hi=!1;this.cu()}};a.sj=function(){if(!this.L&&this.j.length){var a,b,c;a=0;for(b=this.Ed.length;a<b;++a)c=this.Ed[a],c.Z=this.b.C.Bh(c.J,!1,this.b.Oa,c.bt);this.cu()}};a.Jl=function(){if(!this.L&&!this.Hi&&this.b.C){var a,b,c;a=0;for(b=this.Ed.length;a<b;++a)c=this.Ed[a],c.Z=this.b.C.Bh(c.J,!1,this.b.Oa,c.bt);this.Hi=!0}};a.ak=function(){if(!this.L&&!this.j.length&&
this.Hi){var a,b,c;a=0;for(b=this.Ed.length;a<b;++a)c=this.Ed[a],this.b.C.deleteTexture(c.Z),c.Z=null;this.Hi=!1}};var g=[];a.xj=function(a){var b,c,d;R(g);b=0;for(c=this.Ed.length;b<c;++b)d=this.Ed[b].J,-1===g.indexOf(d)&&(a.drawImage(d,0,0),g.push(d))};e.S=function(a){this.type=a;this.b=a.b;a=this.type.Gc[0].frames[0].gm;this.zc?this.wa.Mj(a):this.wa=new bb(a)};var f=e.S.prototype;f.K=function(){this.visible=0===this.A[0];this.fo=this.ro=!1;this.hd=0!==this.A[3];this.Na=this.nr(this.A[1])||this.type.Gc[0];
this.M=this.A[2];0>this.M&&(this.M=0);this.M>=this.Na.frames.length&&(this.M=this.Na.frames.length-1);var a=this.Na.frames[this.M];this.wa.Mj(a.gm);this.nc=a.nc;this.oc=a.oc;this.Xg=this.Na.speed;this.vf=this.Na.lp;1===this.type.Gc.length&&1===this.type.Gc[0].frames.length||0===this.Xg||(this.b.Gp(this),this.ro=!0);this.zc?this.$d.reset():this.$d=new $a;this.Ge=this.$d.Y;this.Rf=!0;this.we=0;this.Qf=!0;this.Ug=this.Iq="";this.Tq=0;this.qn=-1;this.type.Jl();var b,c,d,e,k,h,f,a=0;for(b=this.type.Gc.length;a<
b;a++)for(e=this.type.Gc[a],c=0,d=e.frames.length;c<d;c++)k=e.frames[c],0===k.width&&(k.width=k.J.width,k.height=k.J.height),k.Th&&(f=k.J,h=k.Ap,h.left=k.Kh/f.width,h.top=k.Lh/f.height,h.right=(k.Kh+k.width)/f.width,h.bottom=(k.Lh+k.height)/f.height,0===k.Kh&&0===k.Lh&&k.width===f.width&&k.height===f.height&&(k.Th=!1));this.Tb=this.Na.frames[this.M];this.Nk=this.Tb.Z};f.ab=function(){var a={a:this.Na.la,f:this.M,cas:this.Xg,fs:this.Ge,ar:this.we,at:this.$d.Y,rt:this.vf};this.Rf||(a.ap=this.Rf);this.Qf||
(a.af=this.Qf);return a};f.Ab=function(a){var b=this.uy(a.a);b&&(this.Na=b);this.M=a.f;0>this.M&&(this.M=0);this.M>=this.Na.frames.length&&(this.M=this.Na.frames.length-1);this.Xg=a.cas;this.Ge=a.fs;this.we=a.ar;this.$d.reset();this.$d.Y=a.at;this.Rf=a.hasOwnProperty("ap")?a.ap:!0;this.Qf=a.hasOwnProperty("af")?a.af:!0;a.hasOwnProperty("rt")?this.vf=a.rt:this.vf=this.Na.lp;this.Tb=this.Na.frames[this.M];this.Nk=this.Tb.Z;this.wa.Mj(this.Tb.gm);this.nc=this.Tb.nc;this.oc=this.Tb.oc};f.hn=function(a){this.M=
a?0:this.Na.frames.length-1;this.Rf=!1;this.Iq=this.Na.name;this.fo=!0;this.b.trigger(Y.prototype.k.hv,this);this.b.trigger(Y.prototype.k.gv,this);this.fo=!1;this.we=0};f.ae=function(){return this.$d.Y};f.Ra=function(){this.$d.add(this.b.hg(this));this.Ug.length&&this.br();0<=this.qn&&this.ax();var a=this.$d.Y,b=this.Na,c=b.frames[this.M],d=c.duration/this.Xg;this.Rf&&a>=this.Ge+d&&(this.Qf?this.M++:this.M--,this.Ge+=d,this.M>=b.frames.length&&(b.$s?(this.Qf=!1,this.M=b.frames.length-2):b.loop?this.M=
this.vf:(this.we++,this.we>=b.kp?this.hn(!1):this.M=this.vf)),0>this.M&&(b.$s?(this.M=1,this.Qf=!0,b.loop||(this.we++,this.we>=b.kp&&this.hn(!0))):b.loop?this.M=this.vf:(this.we++,this.we>=b.kp?this.hn(!0):this.M=this.vf)),0>this.M?this.M=0:this.M>=b.frames.length&&(this.M=b.frames.length-1),a>this.Ge+b.frames[this.M].duration/this.Xg&&(this.Ge=a),a=b.frames[this.M],this.Rg(c,a),this.b.da=!0)};f.nr=function(a){var b,c,d;b=0;for(c=this.type.Gc.length;b<c;b++)if(d=this.type.Gc[b],mb(d.name,a))return d;
return null};f.uy=function(a){var b,c,d;b=0;for(c=this.type.Gc.length;b<c;b++)if(d=this.type.Gc[b],d.la===a)return d;return null};f.br=function(){var a=this.Na.frames[this.M],b=this.nr(this.Ug);this.Ug="";!b||mb(b.name,this.Na.name)&&this.Rf||(this.Na=b,this.Xg=b.speed,this.vf=b.lp,0>this.M&&(this.M=0),this.M>=this.Na.frames.length&&(this.M=this.Na.frames.length-1),1===this.Tq&&(this.M=0),this.Rf=!0,this.Ge=this.$d.Y,this.Qf=!0,this.Rg(a,this.Na.frames[this.M]),this.b.da=!0)};f.ax=function(){var a=
this.Na.frames[this.M],b=this.M;this.M=C(this.qn);0>this.M&&(this.M=0);this.M>=this.Na.frames.length&&(this.M=this.Na.frames.length-1);b!==this.M&&(this.Rg(a,this.Na.frames[this.M]),this.Ge=this.$d.Y,this.b.da=!0);this.qn=-1};f.Rg=function(a,b){var c=a.width,d=a.height,e=b.width,k=b.height;c!=e&&(this.width*=e/c);d!=k&&(this.height*=k/d);this.nc=b.nc;this.oc=b.oc;this.wa.Mj(b.gm);this.D();this.Tb=b;this.Nk=b.Z;c=0;for(d=this.T.length;c<d;c++)e=this.T[c],e.Os&&e.Os(a,b);this.b.trigger(Y.prototype.k.Rg,
this)};f.ee=function(a){a.globalAlpha=this.opacity;var b=this.Tb,c=b.Th,d=b.J,e=this.x,k=this.y,h=this.width,f=this.height;if(0===this.n&&0<=h&&0<=f)e-=this.nc*h,k-=this.oc*f,this.b.bd&&(e=Math.round(e),k=Math.round(k)),c?a.drawImage(d,b.Kh,b.Lh,b.width,b.height,e,k,h,f):a.drawImage(d,e,k,h,f);else{this.b.bd&&(e=Math.round(e),k=Math.round(k));a.save();var g=0<h?1:-1,p=0<f?1:-1;a.translate(e,k);1===g&&1===p||a.scale(g,p);a.rotate(this.n*g*p);e=0-this.nc*oa(h);k=0-this.oc*oa(f);c?a.drawImage(d,b.Kh,
b.Lh,b.width,b.height,e,k,oa(h),oa(f)):a.drawImage(d,e,k,oa(h),oa(f));a.restore()}};f.wf=function(a){this.mc(a)};f.mc=function(a){a.Cc(this.Nk);a.Kf(this.opacity);var b=this.Tb,c=this.Hc;if(this.b.bd){var d=Math.round(this.x)-this.x,e=Math.round(this.y)-this.y;b.Th?a.Pd(c.Wa+d,c.Xa+e,c.Hb+d,c.Ib+e,c.rb+d,c.sb+e,c.pb+d,c.qb+e,b.Ap):a.Bj(c.Wa+d,c.Xa+e,c.Hb+d,c.Ib+e,c.rb+d,c.sb+e,c.pb+d,c.qb+e)}else b.Th?a.Pd(c.Wa,c.Xa,c.Hb,c.Ib,c.rb,c.sb,c.pb,c.qb,b.Ap):a.Bj(c.Wa,c.Xa,c.Hb,c.Ib,c.rb,c.sb,c.pb,c.qb)};
f.Ay=function(a){var b=this.Tb,c,d;c=0;for(d=b.eo.length;c<d;c++)if(mb(a,b.eo[c][0]))return c;return-1};f.hh=function(a,b){var c=this.Tb,d=c.eo,e;ka(a)?e=this.Ay(a):e=a-1;e=C(e);if(0>e||e>=d.length)return b?this.x:this.y;var k=(d[e][1]-c.nc)*this.width,d=d[e][2],d=(d-c.oc)*this.height,c=Math.cos(this.n);e=Math.sin(this.n);var h=k*c-d*e,d=d*c+k*e,k=h+this.x,d=d+this.y;return b?k:d};var r=[],w=-2,u=[];l.prototype.nv=function(a){if(!a)return!1;var b=this.b,c=b.ll(),d=c.type,e=null;c.R.collmemory?e=c.R.collmemory:
(e={},c.R.collmemory=e);c.R.spriteCreatedDestroyCallback||(c.R.spriteCreatedDestroyCallback=!0,b.uk(function(a){var b=c.R.collmemory;a=a.uid;var d,e;for(d in b)b.hasOwnProperty(d)&&(e=b[d],e[0]===a||e[1]===a)&&(q(b[d]),delete b[d])}));var k=d.V(),h=a.V(),k=k.wc(),f,g,p,m,r,l,y,V=this.b.Mg,K=V-1,I=b.Ya().cb;for(g=0;g<k.length;g++){p=k[g];h.ea?(p.Ha(),this.b.Pn(p.u,a,p.Pa,u),f=u):f=h.wc();for(m=0;m<f.length;m++)r=f[m],b.kc(p,r)||b.Ow(p,r)?(l=t(e,p,r),l=!l||w<K,n(e,p,r,V),l&&(b.Aj(I.Ga),l=d.V(),y=a.V(),
l.ea=!1,y.ea=!1,d===a?(l.j.length=2,l.j[0]=p,l.j[1]=r,d.fd()):(l.j.length=1,y.j.length=1,l.j[0]=p,y.j[0]=r,d.fd(),a.fd()),I.mp(),b.Hf(I.Ga))):v(e,p,r);R(u)}return!1};var k=null,h=new da,p=!1,y=[],V=new ua(0,0,0,0);a.finish=function(a){if(p){if(a){var b=this.b.Ya().cb.ad;a=k.V();var c=h.cf(),d,e;if(a.ea){a.ea=!1;R(a.j);d=0;for(e=c.length;d<e;++d)a.j[d]=c[d];if(b)for(R(a.ca),d=0,e=k.j.length;d<e;++d)c=k.j[d],h.contains(c)||a.ca.push(c)}else if(b)for(b=a.j.length,d=0,e=c.length;d<e;++d)a.j[b+d]=c[d],
Ea(a.ca,c[d]);else Ba(a.j,c);k.fd()}h.clear();p=!1}};l.prototype.Vu=function(a){if(a){var b=!1,c,d,e,f=this.b.ll(),g=f.type,f=f.sl;c=a.V();d=this.b.Ya().cb.ad;var n;c.ea?(this.Ha(),V.Wg(this.Pa),V.offset(0,0),this.b.Pn(this.u,a,V,y),n=y):n=d?this.b.iz()&&!c.ca.length&&c.j.length?c.j:c.ca:c.j;k=a;p=g!==a&&!f;c=0;for(d=n.length;c<d;c++)if(e=n[c],this.b.kc(this,e)){b=!0;if(f)break;g!==a&&h.add(e)}R(y);a=b}else a=!1;return a};l.prototype.Ku=function(a){return this.Ug.length?mb(this.Ug,a):mb(this.Na.name,
a)};l.prototype.gv=function(a){return mb(this.Iq,a)};l.prototype.hv=function(){return!0};l.prototype.Rg=function(){return!0};e.k=new l;b.prototype.hw=function(a,b,c){if(a&&b&&(b=this.b.Lk(a,b,this.hh(c,!0),this.hh(c,!1)))){"undefined"!==typeof b.n&&(b.n=this.n,b.D());this.b.Yc++;var d,e,k;this.b.trigger(Object.getPrototypeOf(a.za).k.Qg,b);if(b.Xb)for(d=0,e=b.siblings.length;d<e;d++)k=b.siblings[d],this.b.trigger(Object.getPrototypeOf(k.type.za).k.Qg,k);this.b.Yc--;d=this.b.xy();c=!1;if(ia(d.R.Spawn_LastExec)||
d.R.Spawn_LastExec<this.b.eg)c=!0,d.R.Spawn_LastExec=this.b.eg;if(a!=this.type&&(a=a.V(),a.ea=!1,c?(R(a.j),a.j[0]=b):a.j.push(b),b.Xb))for(d=0,e=b.siblings.length;d<e;d++)k=b.siblings[d],a=k.type.V(),a.ea=!1,c?(R(a.j),a.j[0]=k):a.j.push(k)}};b.prototype.Rv=function(a,b){this.Ug=a;this.Tq=b;this.ro||(this.b.Gp(this),this.ro=!0);this.fo||this.br()};b.prototype.Xv=function(a){a=oa(this.width)*(0===a?-1:1);this.width!==a&&(this.width=a,this.D())};b.prototype.Tv=function(a){this.hd!==(0!==a)&&((this.hd=
0!==a)?this.D():(this.gd.right>=this.gd.left&&this.type.pi.update(this,this.gd,null),this.gd.set(0,0,-1,-1)))};e.B=new b;c.prototype.Ju=function(a,b){a.N(this.hh(b,!1))};e.xa=new c})();function yc(d){this.b=d}
(function(){function d(a,b){return a.length?a.pop():new b}function l(a,b,c){if(c){var d;c=0;for(d=b.length;c<d;c++)a.length<t&&a.push(b[c]);R(b)}else for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&(a.length<t&&a.push(b[d]),delete b[d])}function q(a,c,e){var g=a.zg;e=e.replace(/\s\s*$/,"");c>=g.length&&g.push(d(b,Object));c=g[c];c.text=e;c.width=a.Oo(e);a.Vh=pa(a.Vh,c.width)}function m(){}var n=yc.prototype;n.K=function(){};n.aa=function(a){this.za=a;this.b=a.b};var v=n.aa.prototype;v.K=function(){this.L||
(this.J=new Image,this.b.Vm(this.J,this.Xj),this.Z=null)};v.rj=function(){this.L||(this.Z=null)};v.sj=function(){if(!this.L&&this.j.length){this.Z||(this.Z=this.b.C.Bh(this.J,!1,this.b.Oa,this.Yj));var a,b;a=0;for(b=this.j.length;a<b;a++)this.j[a].Z=this.Z}};v.ak=function(){this.L||this.j.length||!this.Z||(this.b.C.deleteTexture(this.Z),this.Z=null)};v.xj=function(a){a.drawImage(this.J,0,0)};n.S=function(a){this.type=a;this.b=a.b};v=n.S.prototype;v.Oe=function(){l(b,this.zg,!0);l(c,this.Hk,!1);l(e,
this.Ik,!1);Va(this.sf)};v.K=function(){this.J=this.type.J;this.Gk=this.A[0];this.qf=this.A[1];this.characterSet=this.A[2];this.text=this.A[3];this.rf=this.A[4];this.visible=0===this.A[5];this.ql=this.A[6]/2;this.Tm=this.A[7]/2;this.OA=0===this.A[9];this.Vg=this.A[10];this.lineHeight=this.A[11];this.Lg=this.Vh=0;this.zc?(R(this.zg),Va(this.Hk),Va(this.Ik),Va(this.sf)):(this.zg=[],this.Hk={},this.Ik={},this.sf={});this.Wj=!0;this.Ao=this.width;this.b.C&&(this.type.Z||(this.type.Z=this.b.C.Bh(this.type.J,
!1,this.b.Oa,this.type.Yj)),this.Z=this.type.Z);this.iw()};v.ab=function(){var a={t:this.text,csc:this.rf,csp:this.Vg,lh:this.lineHeight,tw:this.Vh,th:this.Lg,lrt:this.uz,ha:this.ql,va:this.Tm,cw:{}},b;for(b in this.sf)a.cw[b]=this.sf[b];return a};v.Ab=function(a){this.text=a.t;this.rf=a.csc;this.Vg=a.csp;this.lineHeight=a.lh;this.Vh=a.tw;this.Lg=a.th;this.uz=a.lrt;a.hasOwnProperty("ha")&&(this.ql=a.ha);a.hasOwnProperty("va")&&(this.Tm=a.va);for(var b in a.cw)this.sf[b]=a.cw[b];this.Wj=!0;this.Ao=
this.width};var t=1E3,b=[],c=[],e=[];v.iw=function(){for(var a=this.J,b=a.width,g=a.height,a=this.Gk,n=this.qf,k=a/b,h=n/g,p=this.characterSet,b=Math.floor(b/a),g=Math.floor(g/n),m=0;m<p.length&&!(m>=b*g);m++){var l=m%b,q=Math.floor(m/b),v=p.charAt(m);if(this.b.C){var t=this.Ik,B=l*k,P=q*h,l=(l+1)*k,q=(q+1)*h;void 0===t[v]&&(t[v]=d(e,ua));t[v].left=B;t[v].top=P;t[v].right=l;t[v].bottom=q}else t=this.Hk,l=l*a,q=q*n,B=a,P=n,void 0===t[v]&&(t[v]=d(c,Object)),t[v].x=l,t[v].y=q,t[v].Um=B,t[v].pl=P}};var a=
[];n.ow=function(b){R(a);for(var c="",d,e=0;e<b.length;)if(d=b.charAt(e),"\n"===d)c.length&&(a.push(c),c=""),a.push("\n"),++e;else if(" "===d||"\t"===d||"-"===d){do c+=b.charAt(e),e++;while(e<b.length&&(" "===b.charAt(e)||"\t"===b.charAt(e)));a.push(c);c=""}else e<b.length&&(c+=d,e++);c.length&&a.push(c)};n.rw=function(a){var c=a.text,e=a.zg;if(c&&c.length){var g=a.width;if(2>=g)l(b,e,!0);else{var k=a.rf,h=a.Vg;if(c.length*(a.Gk*k+h)-h<=g&&-1===c.indexOf("\n")&&(h=a.Oo(c),h<=g)){l(b,e,!0);e.push(d(b,
Object));e[0].text=c;e[0].width=h;a.Vh=h;a.Lg=a.qf*k+a.lineHeight;return}this.sw(a);a.Lg=e.length*(a.qf*k+a.lineHeight)}}else l(b,e,!0)};n.sw=function(c){var d=c.OA,e=c.text,g=c.zg,k=c.width;d&&(this.ow(e),e=a);var h="",p,n,m,l=0,v=!1;for(m=0;m<e.length;m++)"\n"===e[m]?(!0===v?v=!1:(q(c,l,h),l++),h=""):(v=!1,p=h,h+=e[m],n=c.Oo(h.replace(/\s\s*$/,"")),n>k&&(""===p?(q(c,l,h),h="",v=!0):(q(c,l,p),h=e[m]),l++,d||" "!==h||(h="")));h.replace(/\s\s*$/,"").length&&(q(c,l,h),l++);for(m=l;m<g.length;m++)b.length<
t&&b.push(g[m]);g.length=l};v.Oo=function(a){for(var b=this.Vg,c=a.length,d=0,e=0;e<c;e++)d+=this.On(a.charAt(e))*this.rf+b;return d-(0<d?b:0)};v.On=function(a){var b=this.sf;return void 0!==b[a]?b[a]:this.Gk};v.kt=function(){if(this.Wj||this.width!==this.Ao)this.Lg=this.Vh=0,this.type.za.rw(this),this.Wj=!1,this.Ao=this.width};v.ee=function(a){var b=this.J;if(""!==this.text&&null!=b&&(this.kt(),!(this.height<this.qf*this.rf+this.lineHeight))){a.globalAlpha=this.opacity;var b=this.x,c=this.y;this.b.bd&&
(b=Math.round(b),c=Math.round(c));var d=this.u.Da,e=this.u.Ea,h=this.u.Ja,g=this.u.Ia;a.save();a.translate(b,c);a.rotate(this.n);for(var n=this.n,m=this.ql,l=this.rf,q=this.qf*l,v=this.lineHeight,t=this.Vg,P=this.zg,E,F=-(this.nc*this.width),L=-(this.oc*this.height),L=L+this.Tm*pa(0,this.height-this.Lg),O,J,A,Q=0;Q<P.length;Q++){var D=P[Q].text;E=m*pa(0,this.width-P[Q].width);O=F+E;L+=v;if(0===n&&c+L+q<e)L+=q;else{for(var G=0;G<D.length;G++){J=D.charAt(G);E=this.On(J);var z=this.Hk[J];if(0===n&&b+
O+E*l+t<d)O+=E*l+t;else{if(O+E*l>this.width+1E-5)break;void 0!==z&&(J=O,A=L,0===n&&1===l&&(J=Math.round(J),A=Math.round(A)),a.drawImage(this.J,z.x,z.y,z.Um,z.pl,J,A,z.Um*l,z.pl*l));O+=E*l+t;if(0===n&&b+O>h)break}}L+=q;if(0===n&&(L+q+v>this.height||c+L>g))break}}a.restore()}};var g=new va;v.mc=function(a){a.Cc(this.Z);a.Kf(this.opacity);if(this.text&&(this.kt(),!(this.height<this.qf*this.rf+this.lineHeight))){this.Ha();var b=this.Hc,c=0,d=0;this.b.bd&&(c=Math.round(this.x)-this.x,d=Math.round(this.y)-
this.y);var e=this.u.Da,h=this.u.Ea,p=this.u.Ja,n=this.u.Ia,m=this.n,l=this.ql,q=this.Tm,v=this.rf,t=this.qf*v,P=this.lineHeight,E=this.Vg,F=this.zg,L=this.Lg,O,J,A;0!==m&&(J=Math.cos(m),A=Math.sin(m));for(var c=b.Wa+c,b=b.Xa+d,Q,q=q*pa(0,this.height-L),D,G,L=0;L<F.length;L++)if(d=F[L].text,Q=O=l*pa(0,this.width-F[L].width),q+=P,0===m&&b+q+t<h)q+=t;else{for(var z=0;z<d.length;z++){var K=d.charAt(z);O=this.On(K);K=this.Ik[K];if(0===m&&c+Q+O*v+E<e)Q+=O*v+E;else{if(Q+O*v>this.width+1E-5)break;if(void 0!==
K){var I=this.Gk*v,H=this.qf*v;D=Q;G=q;0===m&&1===v&&(D=Math.round(D),G=Math.round(G));g.Wa=D;g.Xa=G;g.Hb=D+I;g.Ib=G;g.pb=D;g.qb=G+H;g.rb=D+I;g.sb=G+H;0!==m&&(D=g,G=J,I=A,H=void 0,H=D.Wa*G-D.Xa*I,D.Xa=D.Xa*G+D.Wa*I,D.Wa=H,H=D.Hb*G-D.Ib*I,D.Ib=D.Ib*G+D.Hb*I,D.Hb=H,H=D.pb*G-D.qb*I,D.qb=D.qb*G+D.pb*I,D.pb=H,H=D.rb*G-D.sb*I,D.sb=D.sb*G+D.rb*I,D.rb=H);g.offset(c,b);a.Pd(g.Wa,g.Xa,g.Hb,g.Ib,g.rb,g.sb,g.pb,g.qb,K)}Q+=O*v+E;if(0===m&&c+Q>p)break}}q+=t;if(0===m&&(q+t+P>this.height||b+q>n))break}}};n.k=new function(){};
m.prototype.$v=function(a){ja(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.Wj=!0,this.b.da=!0)};v.ae=function(a,b){var c=parseInt(b,10);this.sf[a]!==c&&(this.sf[a]=c,this.Wj=!0,this.b.da=!0)};n.B=new m;n.xa=new function(){}})();function zc(d){this.b=d}
(function(){var d=zc.prototype;d.aa=function(d){this.za=d;this.b=d.b};var l=d.aa.prototype;l.K=function(){this.L||(this.J=new Image,this.J.un=this.Hm,this.b.Vm(this.J,this.Xj),this.Z=this.pattern=null)};l.rj=function(){this.L||(this.Z=null)};l.sj=function(){if(!this.L&&this.j.length){this.Z||(this.Z=this.b.C.Bh(this.J,!0,this.b.Oa,this.Yj));var d,m;d=0;for(m=this.j.length;d<m;d++)this.j[d].Z=this.Z}};l.Jl=function(){this.L||this.Z||!this.b.C||(this.Z=this.b.C.Bh(this.J,!0,this.b.Oa,this.Yj))};l.ak=
function(){this.L||this.j.length||!this.Z||(this.b.C.deleteTexture(this.Z),this.Z=null)};l.xj=function(d){d.drawImage(this.J,0,0)};d.S=function(d){this.type=d;this.b=d.b};l=d.S.prototype;l.K=function(){this.visible=0===this.A[0];this.Ej=new ua(0,0,0,0);this.Cr=!1;this.J=this.type.J;this.b.C?(this.type.Jl(),this.Z=this.type.Z):(this.type.pattern||(this.type.pattern=this.b.Ma.createPattern(this.type.J,"repeat")),this.pattern=this.type.pattern)};l.Dd=function(){this.Cr=!1;this.J=this.type.J};l.Oe=function(){this.b.C&&
this.Cr&&this.Z&&(this.b.C.deleteTexture(this.Z),this.Z=null)};l.ee=function(d){d.globalAlpha=this.opacity;d.save();d.fillStyle=this.pattern;var m=this.x,n=this.y;this.b.bd&&(m=Math.round(m),n=Math.round(n));var l=-(this.nc*this.width),t=-(this.oc*this.height),b=l%this.J.width,c=t%this.J.height;0>b&&(b+=this.J.width);0>c&&(c+=this.J.height);d.translate(m,n);d.rotate(this.n);d.translate(b,c);d.fillRect(l-b,t-c,this.width,this.height);d.restore()};l.wf=function(d){this.mc(d)};l.mc=function(d){d.Cc(this.Z);
d.Kf(this.opacity);var m=this.Ej;m.right=this.width/this.J.width;m.bottom=this.height/this.J.height;var n=this.Hc;if(this.b.bd){var l=Math.round(this.x)-this.x,t=Math.round(this.y)-this.y;d.Pd(n.Wa+l,n.Xa+t,n.Hb+l,n.Ib+t,n.rb+l,n.sb+t,n.pb+l,n.qb+t,m)}else d.Pd(n.Wa,n.Xa,n.Hb,n.Ib,n.rb,n.sb,n.pb,n.qb,m)};d.k=new function(){};d.B=new function(){};d.xa=new function(){}})();function Ac(d){this.b=d}
(function(){function d(){this.Lm=this.id=-1;this.Kq=this.ah=this.fk=this.Ii=!1;this.Aa=new ua(0,0,0,0)}function l(a){1E4>f.length&&f.push(a)}function q(){this.id=-1;this.Aa=new ua(0,0,0,0);this.Re=null}function m(a){1E4>r.length&&r.push(a)}function n(a,b,c){var d;return w.length?(d=w.pop(),d.c=a,d.x=b,d.y=c,d.left=d.x*d.c.tb*d.c.Gb,d.top=d.y*d.c.Jb*d.c.Fb,d.clear(),d.Cj=!1,d):new v(a,b,c)}function v(a,b,c){this.c=a;this.x=b;this.y=c;this.left=this.x*this.c.tb*this.c.Gb;this.top=this.y*this.c.Jb*this.c.Fb;
this.te=[];this.$b=[];this.lc=[];this.Cj=!1;var d,e;a=0;for(b=this.c.Jb;a<b;++a){e=[];c=0;for(d=this.c.tb;c<d;++c)e.push(-1);this.te.push(e)}}var t=Ac.prototype;t.aa=function(a){this.za=a;this.b=a.b};var b=t.aa.prototype;b.K=function(){var a,b,c;if(!this.L&&(this.J=new Image,this.J.un=this.Hm,this.b.Vm(this.J,this.Xj),this.Xf=[],this.wn=!1,this.Sd=[],this.Rt=!1,this.Km&&this.Km.length))for(a=0,b=this.Km.length;a<b;++a)(c=this.Km[a])?this.Sd.push({Re:c,el:[[[null,null],[null,null]],[[null,null],[null,
null]]]}):this.Sd.push(null)};b.of=function(a,b,c,d,e,f){if(!(0>a||a>=this.Sd.length)&&this.Sd[a]){var g=this.Sd[a].el;a=new bb(this.Sd[a].Re);a.Vf(b,c,0);f&&a.Zw();d&&a.Cz(b/2);e&&a.oy(c/2);g[d?1:0][e?1:0][f?1:0]=a}};b.wr=function(b){if(-1===b)return null;var d=b&g;return 0>d||d>=this.Sd.length||!this.Sd[d]?null:this.Sd[d].el[b&c?1:0][b&e?1:0][b&a?1:0]};b.Kn=function(){var a,b,c=this.b.C;if(c)for(a=0,b=this.Xf.length;a<b;++a)c.deleteTexture(this.Xf[a]);R(this.Xf);this.wn=!1};b.Lo=function(a,b,c,
d,e,f,g){if(!(this.wn||0>=a||0>=b)){this.Kn();var n=this.J.width,m=this.J.height,l;for(l=d;l+b<=m;l+=b+f)for(d=c;d+a<=n;d+=a+e)this.Xf.push(this.Bu(d,l,a,b,g));this.wn=!0}};b.Bu=function(a,b,c,d,e){if(this.b.C)return this.Ym(a,b,c,d,!1,!1,!1,e);var f=[[[null,null],[null,null]],[[null,null],[null,null]]];f[0][0][0]=this.Ym(a,b,c,d,!1,!1,!1,e);return{el:f,x:a,y:b,Um:c,pl:d}};b.bq=function(a,b,c,d,e){if(0>a||a>=this.Xf.length)return null;a=this.Xf[a];var f=a.el;b=b?1:0;c=c?1:0;d=d?1:0;var g=f[b][c][d];
if(g)return g;g=this.Ym(a.x,a.y,a.Um,a.pl,0!==b,0!==c,0!==d,e);return f[b][c][d]=g};b.Ym=function(a,b,c,d,e,f,g,n){var m=c,l=d;this.b.C&&!n&&(ma(m)||(m=na(m)),ma(l)||(l=na(l)));var q=document.createElement("canvas");q.width=m;q.height=l;var r=q.getContext("2d");if(this.b.Ma)return e?f?(g?(r.rotate(Math.PI/2),r.scale(-1,1)):r.scale(-1,-1),r.translate(-m,-l)):g?(r.rotate(Math.PI/2),r.translate(0,-l)):(r.scale(-1,1),r.translate(-m,0)):f?g?(r.rotate(-Math.PI/2),r.translate(-m,0)):(r.scale(1,-1),r.translate(0,
-l)):g&&(r.scale(-1,1),r.rotate(Math.PI/2)),r.drawImage(this.J,a,b,c,d,0,0,m,l),n?q:this.b.Ma.createPattern(q,"repeat");r.drawImage(this.J,a,b,c,d,0,0,m,l);a=this.b.C.Sc(m,l,this.b.Oa,!1,!n);this.b.C.KA(q,a);return a};b.rj=function(){this.L||this.Kn()};b.sj=function(){};b.Jl=function(){};b.ak=function(){this.L||this.j.length||this.Kn()};b.xj=function(){};t.S=function(a){this.type=a;this.b=a.b};var b=t.S.prototype,c=-2147483648,e=1073741824,a=536870912,g=536870911,f=[],r=[],w=[];v.prototype.clear=
function(){var a,b,c,d,e;this.te.length=this.c.Jb;a=0;for(b=this.te.length;a<b;++a)for(e=this.te[a],e||(e=[],this.te[a]=e),e.length=this.c.tb,c=0,d=e.length;c<d;++c)e[c]=-1};v.prototype.kj=function(){if(!this.Cj){var b=this.c.Gb,h=this.c.Fb;if(!(0>=b||0>=h)){var p,n,v,x,t,u;p=0;for(n=this.$b.length;p<n;++p)l(this.$b[p]);p=0;for(n=this.lc.length;p<n;++p)m(this.lc[p]);R(this.$b);R(this.lc);var w=Math.min(this.c.rd,Math.floor(this.c.width/b)),P=Math.min(this.c.Md,Math.floor(this.c.height/h)),w=w-this.left/
b,P=P-this.top/h;w>this.c.tb&&(w=this.c.tb);P>this.c.Jb&&(P=this.c.Jb);var E=this.c.If,F=null;p=0;for(n=P;p<n;++p){t=this.te[p];v=0;for(x=w;v<x;++v)u=t[v],-1===u?F&&(this.$b.push(F),F=null):E||!F||u!==F.id?(F&&this.$b.push(F),F=f.length?f.pop():new d,F.id=u,F.Lm=u&g,F.Ii=0!==(u&c),F.fk=0!==(u&e),F.ah=0!==(u&a),F.Kq=F.Ii||F.fk||F.ah,F.Aa.left=v*b+this.left,F.Aa.top=p*h+this.top,F.Aa.right=F.Aa.left+b,F.Aa.bottom=F.Aa.top+h):F.Aa.right+=b;F&&(this.$b.push(F),F=null)}var F=null,L=!1;p=0;for(n=P;p<n;++p){t=
this.te[p];v=0;for(x=w;v<x;++v)u=t[v],-1===u?F&&(this.lc.push(F),F=null,L=!1):(P=this.c.type.wr(u),!F||P||L?(F&&this.lc.push(F),F=r.length?r.pop():new q,F.id=u,F.Re=P?P:null,u=F.Aa,u.left=v*b+this.left,u.top=p*h+this.top,u.right=u.left+b,u.bottom=u.top+h,L=!!P):F.Aa.right+=b);F&&(this.lc.push(F),F=null,L=!1)}if(!E)for(n=this.$b.length,p=0;p<n;++p)for(x=this.$b[p],b=p+1;b<n;++b)if(v=this.$b[b],!(v.Aa.top<x.Aa.bottom)){if(v.Aa.top>x.Aa.bottom)break;if(v.Aa.right>x.Aa.right||v.Aa.left>x.Aa.left)break;
v.id===x.id&&v.Aa.left===x.Aa.left&&v.Aa.right===x.Aa.right&&(l(this.$b[b]),this.$b.splice(b,1),--n,x.Aa.bottom+=h,--b)}n=this.lc.length;for(p=0;p<n;++p)if(x=this.lc[p],!x.Re)for(t=x.Aa,b=p+1;b<n;++b)if(v=this.lc[b],x=v.Aa,!(x.top<t.bottom)){if(x.top>t.bottom)break;if(x.right>t.right||x.left>t.left)break;v.Re||x.left!==t.left||x.right!==t.right||(m(this.lc[b]),this.lc.splice(b,1),--n,t.bottom+=h,--b)}this.Cj=!0}}};v.prototype.xp=function(a,b,c){this.te[b][a]!==c&&(this.te[b][a]=c,this.Cj=!1,this.c.yk=
!0,this.c.uj=!0,this.c.b.da=!0)};b.K=function(){var a,b,c;this.visible=0===this.A[0];this.Gb=this.A[1];this.Fb=this.A[2];this.Hp=this.A[3];this.Jp=this.A[4];this.Ip=this.A[5];this.Kp=this.A[6];this.If=0!==this.A[7];this.rd=this.Ut;this.Md=this.Tt;this.El=this.width;this.Dl=this.height;var d=this.Gb,e=this.Fb;0===d&&(d=1);0===e&&(e=1);this.tb=Math.ceil(this.b.kb/d);this.Jb=Math.ceil(this.b.jb/e);if(!this.type.Rt)for(this.type.Rt=!0,a=0,b=this.type.Sd.length;a<b;++a)if(c=this.type.Sd[a])this.type.of(a,
d,e,!1,!1,!1),this.type.of(a,d,e,!1,!1,!0),this.type.of(a,d,e,!1,!0,!1),this.type.of(a,d,e,!1,!0,!0),this.type.of(a,d,e,!0,!1,!1),this.type.of(a,d,e,!0,!1,!0),this.type.of(a,d,e,!0,!0,!1),this.type.of(a,d,e,!0,!0,!0);this.zc||(this.rc=[]);this.Mo(!0);this.At(this.St);this.type.Lo(this.Gb,this.Fb,this.Hp,this.Jp,this.Ip,this.Kp,this.If);this.uj=!1;this.yk=!0;this.Ko()};b.Ko=function(){if(this.yk){var a,b,c,d,e;a=0;for(b=this.rc.length;a<b;++a)for(e=this.rc[a],c=0,d=e.length;c<d;++c)e[c].kj();this.yk=
!1}};b.tm=function(){var a,b,c,d,e;a=0;for(b=this.rc.length;a<b;++a)for(e=this.rc[a],c=0,d=e.length;c<d;++c)e[c].Cj=!1;this.yk=!0};b.Mo=function(a){var b=C(this.width/this.Gb),c=C(this.height/this.Fb);if(!(b<=this.rd&&c<=this.Md)||a){var d;a?(a=Math.ceil(this.Md/this.Jb),d=Math.ceil(this.rd/this.tb)):(a=this.rc.length,d=Math.ceil(this.rd/this.tb),c>this.Md&&(this.Md=c,a=Math.ceil(this.Md/this.Jb)),b>this.rd&&(this.rd=b,d=Math.ceil(this.rd/this.tb)),this.tm(),this.uj=!0,this.b.da=!0);for(var e,b=0;b<
a;++b)if(e=this.rc[b])for(c=e.length;c<d;++c)e.push(n(this,c,b));else{e=[];for(c=0;c<d;++c)e.push(n(this,c,b));this.rc[b]=e}}};b.mn=function(a,b){if(0>a||0>b)return null;var c=C(b/this.Jb);if(c>=this.rc.length)return null;var c=this.rc[c],d=C(a/this.tb);return d>=c.length?null:c[d]};b.nn=function(a,b){if(0>a||0>b||b>=this.rc.length)return null;var c=this.rc[b];return a>=c.length?null:c[a]};b.At=function(b){var d=[];b=b.split(",");var f,g,n,m,l;f=0;for(g=b.length;f<g;++f)if(n=b[f],m=n.indexOf("x"),
-1<m)for(l=parseInt(n.substring(0,m),10),n=n.substring(m+1),m=parseInt(n,10),-1<n.indexOf("h")&&(m|=c),-1<n.indexOf("v")&&(m|=e),-1<n.indexOf("d")&&(m|=a);0<l;--l)d.push(m);else m=parseInt(n,10),-1<n.indexOf("h")&&(m|=c),-1<n.indexOf("v")&&(m|=e),-1<n.indexOf("d")&&(m|=a),d.push(m);for(f=b=0;f<this.Md;++f)for(g=0;g<this.rd;++g)l=d[b++],(n=this.mn(g,f))&&n.xp(g%this.tb,f%this.Jb,l)};b.Ky=function(){var b="";if(0>=this.rd||0>=this.Md)return b;var d=1,f=this.Xn(0,0),n,m,l,q,r,v,t,u;q=C(this.width/this.Gb);
m=C(this.height/this.Fb);for(n=0;n<m;++n)for(l=0===n?1:0;l<q;++l)r=this.Xn(l,n),r===f?++d:(-1===f?(v=-1,f=u=t=!1):(v=f&g,t=0!==(f&c),u=0!==(f&e),f=0!==(f&a)),b=1===d?b+(""+v):b+(""+d+"x"+v),t&&(b+="h"),u&&(b+="v"),f&&(b+="d"),b+=",",d=1,f=r);-1===f?(v=-1,f=u=t=!1):(v=f&g,t=0!==(f&c),u=0!==(f&e),f=0!==(f&a));b=1===d?b+(""+v):b+(""+d+"x"+v);t&&(b+="h");u&&(b+="v");f&&(b+="d");return b};b.Xn=function(a,b){a=Math.floor(a);b=Math.floor(b);if(0>a||0>b||a>=this.rd||b>=this.Md)return-1;var c=this.mn(a,b);
return c?c.te[b%this.Jb][a%this.tb]:-1};b.xp=function(a,b,c){a=Math.floor(a);b=Math.floor(b);if(0>a||0>b||a>=this.rd||b>=this.Md)return-1;var d=this.mn(a,b);if(!d)return-1;d.xp(a%this.tb,b%this.Jb,c)};b.ju=function(a){return Math.floor((a-this.x)/(this.tb*this.Gb))};b.ku=function(a){return Math.floor((a-this.y)/(this.Jb*this.Fb))};b.MA=function(a){return Math.floor((a-this.x)/this.Gb)};b.NA=function(a){return Math.floor((a-this.y)/this.Fb)};b.wy=function(a,b){var c=this.ku(a.top),d=this.ju(a.right),
e=this.ku(a.bottom),f,g,n;for(f=this.ju(a.left);f<=d;++f)for(g=c;g<=e;++g)if(n=this.nn(f,g))n.kj(),Ca(b,n.lc)};b.CA=function(a,b){var c=this.Xn(this.MA(a),this.NA(b));if(-1===c)return!1;c=this.type.wr(c);if(!c)return!0;var d=Math.floor((b-this.y)/this.Fb)*this.Fb+this.y;a-=Math.floor((a-this.x)/this.Gb)*this.Gb+this.x;return c.Sb(a,b-d)};b.ae=function(a){var b,c,d,e,f,g;b=0;for(c=this.rc.length;b<c;++b)for(f=this.rc[b],d=0,e=f.length;d<e;++d)g=f[d],g.kj(),Ca(a,g.lc)};b.Oe=function(){var a,b,c,d,e;
a=0;for(b=this.rc.length;a<b;++a){e=this.rc[a];c=0;for(d=e.length;c<d;++c){for(var f=e[c],g=void 0,n=void 0,g=0,n=f.$b.length;g<n;++g)l(f.$b[g]);R(f.$b);g=0;for(n=f.lc.length;g<n;++g)m(f.lc[g]);R(f.lc);1E3>w.length&&w.push(f)}R(e)}R(this.rc)};b.ab=function(){this.Mo();return{w:C(this.width/this.Gb),h:C(this.height/this.Fb),d:this.Ky()}};b.Ab=function(a){this.rd=a.w;this.Md=a.h;this.Mo(!0);this.At(a.d);this.uj=!0;this.tm()};b.ee=function(a){if(!(0>=this.Gb||0>=this.Fb)){this.type.Lo(this.Gb,this.Fb,
this.Hp,this.Jp,this.Ip,this.Kp,this.If);if(this.width!==this.El||this.height!==this.Dl)this.uj=!0,this.tm(),this.Ko(),this.El=this.width,this.Dl=this.height;a.globalAlpha=this.opacity;var b=this.u,c=b.Da,d=b.Ea,e=b.Ja,b=b.Ia,f=this.x,g=this.y,n=this.If,m;this.b.bd&&(f=Math.round(f),g=Math.round(g));var l=this.tb*this.Gb,q=this.Jb*this.Fb,r=Math.floor((c-f)/l),l=Math.floor((e-f)/l),v=Math.floor((d-g)/q),q=Math.floor((b-g)/q),t=f%this.Gb,u=g%this.Fb;this.If&&(u=t=0);if(0!==t||0!==u)a.save(),a.translate(t,
u),f-=t,g-=u,c-=t,d-=u,e-=t,b-=u;for(var w,Q,D,G,z,K,I,H,M;r<=l;++r)for(w=v;w<=q;++w)if(Q=this.nn(r,w))for(Q.kj(),D=0,G=Q.$b.length;D<G;++D)z=Q.$b[D],-1!==z.id&&(m=z.Aa,K=m.left+f,I=m.top+g,H=m.right+f,m=m.bottom+g,K>e||H<c||I>b||m<d||(M=this.type.bq(z.Lm,z.Ii,z.fk,z.ah,this.If),n?a.drawImage(M,K,I):(a.fillStyle=this.type.bq(z.Lm,z.Ii,z.fk,z.ah,this.If),a.fillRect(K,I,H-K,m-I))));0===t&&0===u||a.restore()}};var u=new ua(0,0,1,1);b.wf=function(a){this.mc(a)};b.mc=function(a){if(!(0>=this.Gb||0>=this.Fb)){this.type.Lo(this.Gb,
this.Fb,this.Hp,this.Jp,this.Ip,this.Kp,this.If);if(this.width!==this.El||this.height!==this.Dl)this.uj=!0,this.tm(),this.Ko(),this.El=this.width,this.Dl=this.height;a.Kf(this.opacity);var b=this.type.Xf,c=this.u,d=c.Da,e=c.Ea,f=c.Ja,c=c.Ia,g=this.x,n=this.y,m;this.b.bd&&(g=Math.round(g),n=Math.round(n));var l=this.tb*this.Gb,q=this.Jb*this.Fb,r=Math.floor((f-g)/l),v=Math.floor((e-n)/q),q=Math.floor((c-n)/q),t,w,A,Q,D,G,z,K,I,H,M,S,Z,N,la,ga,ya;for(la=Math.floor((d-g)/l);la<=r;++la)for(ga=v;ga<=q;++ga)if(ya=
this.nn(la,ga))for(ya.kj(),l=0,t=ya.$b.length;l<t;++l)w=ya.$b[l],-1!==w.id&&(m=w.Aa,A=m.left+g,Q=m.top+n,D=m.right+g,m=m.bottom+n,A>f||D<d||Q>c||m<e||(a.Cc(b[w.Lm]),u.right=(D-A)/this.Gb,u.bottom=(m-Q)/this.Fb,w.Kq?(w.ah&&(N=u.right,u.right=u.bottom,u.bottom=N),z=G=0,K=u.right,I=0,H=u.right,M=u.bottom,S=0,Z=u.bottom,w.ah&&(N=S,S=K,K=N,N=Z,Z=I,I=N),w.Ii&&(N=G,G=K,K=N,N=z,z=I,I=N,N=S,S=H,H=N,N=Z,Z=M,M=N),w.fk&&(N=G,G=S,S=N,N=z,z=Z,Z=N,N=K,K=H,H=N,N=I,I=M,M=N),a.bA(A,Q,D,Q,D,m,A,m,G,z,K,I,H,M,S,Z)):
a.Pd(A,Q,D,Q,D,m,A,m,u)))}};t.k=new function(){};t.B=new function(){};t.xa=new function(){}})();function Bc(d){this.b=d}
(function(){function d(b){c=b.x;e=b.y;a=b.z}function l(a,b,c,d){var e;e=g.length?g.pop():new q;e.init(a,b,c,d);return e}function q(){this.Rj=this.id=this.yg=this.xg=this.y=this.x=this.Em=this.Dm=this.zo=this.time=this.Ep=0;this.$j=this.Om=!1}function m(){}function n(){}var v=Bc.prototype;v.aa=function(a){this.za=a;this.b=a.b};v.aa.prototype.K=function(){};v.S=function(a){this.type=a;this.b=a.b;this.touches=[];this.Po=!1};var t=v.S.prototype,b={left:0,top:0};t.Bi=function(a){var b,c;b=0;for(c=this.touches.length;b<
c;b++)if(this.touches[b].id===a)return b;return-1};var c=0,e=0,a=0,g=[];q.prototype.init=function(a,b,c,d){var e=Wa();this.Ep=this.zo=this.time=e;this.Dm=a;this.Em=b;this.x=a;this.y=b;this.xg=a;this.yg=b;this.pressure=this.height=this.width=0;this.id=c;this.Rj=d;this.$j=this.Om=!1};q.prototype.update=function(a,b,c,d,e,f){this.zo=this.time;this.time=a;this.xg=this.x;this.yg=this.y;this.x=b;this.y=c;this.width=d;this.height=e;this.pressure=f;!this.$j&&15<=Sa(this.Dm,this.Em,this.x,this.y)&&(this.$j=
!0)};q.prototype.Az=function(a,b){!this.Om&&500<=Wa()-this.Ep&&!this.$j&&15>Sa(this.Dm,this.Em,this.x,this.y)&&(this.Om=!0,a.ue=this.Rj,a.Xh=this.id,a.ih=b,a.b.trigger(Bc.prototype.k.tv,a),a.Ae=this.x,a.Be=this.y,a.b.trigger(Bc.prototype.k.uv,a),a.ih=0)};var f=-1E3,r=-1E3,w=-1E4;q.prototype.ys=function(a,b){if(!this.Om){var c=Wa();333>=c-this.Ep&&!this.$j&&15>Sa(this.Dm,this.Em,this.x,this.y)&&(a.ue=this.Rj,a.Xh=this.id,a.ih=b,666>=c-w&&25>Sa(f,r,this.x,this.y)?(a.b.trigger(Bc.prototype.k.ov,a),a.Ae=
this.x,a.Be=this.y,a.b.trigger(Bc.prototype.k.pv,a),r=f=-1E3,w=-1E4):(a.b.trigger(Bc.prototype.k.Iv,a),a.Ae=this.x,a.Be=this.y,a.b.trigger(Bc.prototype.k.Jv,a),f=this.x,r=this.y,w=c),a.ih=0)}};t.K=function(){this.pz=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.ih=this.Xh=this.ue=this.Be=this.Ae=this.Dq=this.Cq=this.Bq=this.Aw=this.zw=this.yw=this.cm=this.$l=this.Zl=0;this.IA=0!==this.A[0];var a=0<this.b.vc?document:this.b.canvas,b=document;this.b.gc?b=a=window.Canvas:this.b.nd&&
(b=a=window);var c=this;"undefined"!==typeof PointerEvent?(a.addEventListener("pointerdown",function(a){c.Ns(a)},!1),a.addEventListener("pointermove",function(a){c.Ms(a)},!1),b.addEventListener("pointerup",function(a){c.Xl(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.Xl(a,!0)},!1),this.b.canvas&&(this.b.canvas.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),document.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),this.b.canvas.addEventListener("gesturehold",
function(a){a.preventDefault()},!1),document.addEventListener("gesturehold",function(a){a.preventDefault()},!1))):window.navigator.msPointerEnabled?(a.addEventListener("MSPointerDown",function(a){c.Ns(a)},!1),a.addEventListener("MSPointerMove",function(a){c.Ms(a)},!1),b.addEventListener("MSPointerUp",function(a){c.Xl(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.Xl(a,!0)},!1),this.b.canvas&&(this.b.canvas.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),document.addEventListener("MSGestureHold",
function(a){a.preventDefault()},!1))):(a.addEventListener("touchstart",function(a){c.Qs(a)},!1),a.addEventListener("touchmove",function(a){c.Ps(a)},!1),b.addEventListener("touchend",function(a){c.Wo(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.Wo(a,!0)},!1));if(this.pz){var e=function(a){a=a.reading;c.Bq=a.accelerationX;c.Cq=a.accelerationY;c.Dq=a.accelerationZ},f=function(a){a=a.reading;c.Zl=a.yawDegrees;c.$l=a.pitchDegrees;c.cm=a.rollDegrees},g=Windows.Devices.Sensors.Accelerometer.getDefault();
g&&(g.reportInterval=Math.max(g.minimumReportInterval,16),g.addEventListener("readingchanged",e));var n=Windows.Devices.Sensors.Inclinometer.getDefault();n&&(n.reportInterval=Math.max(n.minimumReportInterval,16),n.addEventListener("readingchanged",f));document.addEventListener("visibilitychange",function(){document.hidden||document.msHidden?(g&&g.removeEventListener("readingchanged",e),n&&n.removeEventListener("readingchanged",f)):(g&&g.addEventListener("readingchanged",e),n&&n.addEventListener("readingchanged",
f))},!1)}else window.addEventListener("deviceorientation",function(a){c.Zl=a.alpha||0;c.$l=a.beta||0;c.cm=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.yw=a.accelerationIncludingGravity.x||0,c.zw=a.accelerationIncludingGravity.y||0,c.Aw=a.accelerationIncludingGravity.z||0);a.acceleration&&(c.Bq=a.acceleration.x||0,c.Cq=a.acceleration.y||0,c.Dq=a.acceleration.z||0)},!1);this.IA&&!this.b.Za&&(jQuery(document).mousemove(function(a){c.Jz(a)}),jQuery(document).mousedown(function(a){c.Iz(a)}),
jQuery(document).mouseup(function(a){c.Kz(a)}));!this.b.sh&&this.b.Xc&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(d,null,{frequency:40});this.b.DA(this)};t.Ms=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var c=this.Bi(a.pointerId),d=Wa();if(0<=c){var e=this.b.Za?b:jQuery(this.b.canvas).offset(),c=this.touches[c];2>d-c.time||c.update(d,a.pageX-e.left,a.pageY-e.top,
a.width||0,a.height||0,a.pressure||0)}}};t.Ns=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&nb(a)&&a.preventDefault();var c=this.b.Za?b:jQuery(this.b.canvas).offset(),d=a.pageX-c.left,c=a.pageY-c.top;Wa();this.ue=this.touches.length;this.Xh=a.pointerId;this.touches.push(l(d,c,a.pointerId,this.ue));this.b.Kc=!0;this.b.trigger(Bc.prototype.k.sq,this);this.b.trigger(Bc.prototype.k.an,this);this.Ae=d;this.Be=c;this.b.trigger(Bc.prototype.k.$m,this);
this.b.Kc=!1}};t.Xl=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&nb(a)&&a.preventDefault();var c=this.Bi(a.pointerId);this.ue=0<=c?this.touches[c].Rj:-1;this.Xh=0<=c?this.touches[c].id:-1;this.b.Kc=!0;this.b.trigger(Bc.prototype.k.rq,this);this.b.trigger(Bc.prototype.k.vq,this);0<=c&&(b||this.touches[c].ys(this,c),100>g.length&&g.push(this.touches[c]),this.touches.splice(c,1));this.b.Kc=!1}};t.Ps=function(a){a.preventDefault&&a.preventDefault();
var c=Wa(),d,e,f,g;d=0;for(e=a.changedTouches.length;d<e;d++)if(f=a.changedTouches[d],g=this.Bi(f.identifier),0<=g){var n=this.b.Za?b:jQuery(this.b.canvas).offset();g=this.touches[g];2>c-g.time||g.update(c,f.pageX-n.left,f.pageY-n.top,2*(f.XB||f.cC||f.PB||f.SB||0),2*(f.YB||f.dC||f.QB||f.TB||0),f.JB||f.bC||f.OB||f.RB||0)}};t.Qs=function(a){a.preventDefault&&nb(a)&&a.preventDefault();var c=this.b.Za?b:jQuery(this.b.canvas).offset();Wa();this.b.Kc=!0;var d,e,f,g;d=0;for(e=a.changedTouches.length;d<e;d++)if(f=
a.changedTouches[d],g=this.Bi(f.identifier),-1===g){g=f.pageX-c.left;var n=f.pageY-c.top;this.ue=this.touches.length;this.Xh=f.identifier;this.touches.push(l(g,n,f.identifier,this.ue));this.b.trigger(Bc.prototype.k.sq,this);this.b.trigger(Bc.prototype.k.an,this);this.Ae=g;this.Be=n;this.b.trigger(Bc.prototype.k.$m,this)}this.b.Kc=!1};t.Wo=function(a,b){a.preventDefault&&nb(a)&&a.preventDefault();this.b.Kc=!0;var c,d,e;c=0;for(d=a.changedTouches.length;c<d;c++)e=a.changedTouches[c],e=this.Bi(e.identifier),
0<=e&&(this.ue=this.touches[e].Rj,this.Xh=this.touches[e].id,this.b.trigger(Bc.prototype.k.rq,this),this.b.trigger(Bc.prototype.k.vq,this),b||this.touches[e].ys(this,e),100>g.length&&g.push(this.touches[e]),this.touches.splice(e,1));this.b.Kc=!1};t.ae=function(){return this.b.Xc&&0===this.Zl&&0!==a?90*a:this.Zl};t.vo=function(){return this.b.Xc&&0===this.$l&&0!==e?90*e:this.$l};t.Ur=function(){return this.b.Xc&&0===this.cm&&0!==c?90*c:this.cm};t.Iz=function(a){this.Qs({changedTouches:[{pageX:a.pageX,
pageY:a.pageY,identifier:0}]});this.Po=!0};t.Jz=function(a){this.Po&&this.Ps({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};t.Kz=function(a){a.preventDefault&&this.b.yr&&!this.b.kh&&a.preventDefault();this.b.yr=!0;this.Wo({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.Po=!1};t.Zj=function(){var a,b,c,d=Wa();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=d-50&&(c.zo=d),c.Az(this,a)};m.prototype.an=function(){return!0};m.prototype.vq=function(){return!0};
m.prototype.$m=function(a){return a?this.b.Gm(a,this.Ae,this.Be):!1};var u=[];m.prototype.Wu=function(a){if(!a)return!1;var b=a.V(),c=b.wc(),d,e,f,g,n,m;f=0;for(g=c.length;f<g;f++){var l=c[f];l.Ha();n=0;for(m=this.touches.length;n<m;n++)if(e=this.touches[n],d=l.u.Rb(e.x,e.y,!0),e=l.u.Rb(e.x,e.y,!1),l.Sb(d,e)){u.push(l);break}}return u.length?(b.ea=!1,Ba(b.j,u),a.fd(),R(u),!0):!1};m.prototype.sq=function(a){a=Math.floor(a);return a===this.ue};m.prototype.rq=function(a){a=Math.floor(a);return a===this.ue};
m.prototype.tv=function(){return!0};m.prototype.Iv=function(){return!0};m.prototype.ov=function(){return!0};m.prototype.uv=function(a){return a?this.b.Gm(a,this.Ae,this.Be):!1};m.prototype.Jv=function(a){return a?this.b.Gm(a,this.Ae,this.Be):!1};m.prototype.pv=function(a){return a?this.b.Gm(a,this.Ae,this.Be):!1};v.k=new m;n.prototype.xq=function(a,b){var c=this.ih;if(0>c||c>=this.touches.length)a.N(0);else{var d,e,f,g,n;ia(b)?(d=this.b.Ci(0),e=d.scale,f=d.Yd,g=d.td,n=d.n,d.scale=1,d.Yd=1,d.td=1,
d.n=0,a.N(d.Rb(this.touches[c].x,this.touches[c].y,!0)),d.scale=e,d.Yd=f,d.td=g,d.n=n):(d=ja(b)?this.b.Ci(b):this.b.Tn(b))?a.N(d.Rb(this.touches[c].x,this.touches[c].y,!0)):a.N(0)}};n.prototype.uw=function(a,b){var c=this.ih;if(0>c||c>=this.touches.length)a.N(0);else{var d,e,f,g,n;ia(b)?(d=this.b.Ci(0),e=d.scale,f=d.Yd,g=d.ud,n=d.n,d.scale=1,d.Yd=1,d.ud=1,d.n=0,a.N(d.Rb(this.touches[c].x,this.touches[c].y,!1)),d.scale=e,d.Yd=f,d.ud=g,d.n=n):(d=ja(b)?this.b.Ci(b):this.b.Tn(b))?a.N(d.Rb(this.touches[c].x,
this.touches[c].y,!1)):a.N(0)}};v.xa=new n})();function Cc(d){this.b=d}
(function(){function d(){}var l=Cc.prototype;l.aa=function(d){this.behavior=d;this.b=d.b};l.aa.prototype.K=function(){};l.S=function(d,n){this.type=d;this.behavior=d.behavior;this.c=n;this.b=d.b};var q=l.S.prototype;q.K=function(){var d=this.A[0];this.Cd=this.A[1];this.Jc=this.A[2];this.Iw=0!==this.A[3];this.up=0!==this.A[4];this.G=Math.cos(this.c.n)*d;this.I=Math.sin(this.c.n)*d;this.xg=this.c.x;this.yg=this.c.y;this.Zc=this.c.n;this.Nm=0;this.enabled=0!==this.A[5]};q.ab=function(){return{acc:this.Cd,
g:this.Jc,dx:this.G,dy:this.I,lx:this.xg,ly:this.yg,lka:this.Zc,t:this.Nm,e:this.enabled}};q.Ab=function(d){this.Cd=d.acc;this.Jc=d.g;this.G=d.dx;this.I=d.dy;this.xg=d.lx;this.yg=d.ly;this.Zc=d.lka;this.Nm=d.t;this.enabled=d.e};q.Ra=function(){if(this.enabled){var d=this.b.hg(this.c),n,l;this.c.n!==this.Zc&&(this.up&&(n=Sa(0,0,this.G,this.I),this.G=Math.cos(this.c.n)*n,this.I=Math.sin(this.c.n)*n),this.Zc=this.c.n);0!==this.Cd&&(n=Sa(0,0,this.G,this.I),l=0===this.G&&0===this.I?this.c.n:La(0,0,this.G,
this.I),n+=this.Cd*d,0>n&&(n=0),this.G=Math.cos(l)*n,this.I=Math.sin(l)*n);0!==this.Jc&&(this.I+=this.Jc*d);this.xg=this.c.x;this.yg=this.c.y;if(0!==this.G||0!==this.I)if(this.c.x+=this.G*d,this.c.y+=this.I*d,this.Nm+=Sa(0,0,this.G*d,this.I*d),this.up&&(this.c.n=La(0,0,this.G,this.I),this.c.D(),this.Zc=this.c.n),this.c.D(),this.Iw&&(n=this.b.ob(this.c)))this.b.Oh(this.c,n),n=Sa(0,0,this.G,this.I),l=this.b.Lw(this.c,this.xg,this.yg),this.G=Math.cos(l)*n,this.I=Math.sin(l)*n,this.c.x+=this.G*d,this.c.y+=
this.I*d,this.c.D(),this.up&&(this.Zc=this.c.n=l,this.c.D()),this.b.vd(this.c,this.G/n,this.I/n,Math.max(2.5*n*d,30))||this.b.jt(this.c,100)}};l.k=new function(){};d.prototype.Qv=function(d){d=U(d);var n=Sa(0,0,this.G,this.I);this.G=Math.cos(d)*n;this.I=Math.sin(d)*n};d.prototype.fi=function(d){this.enabled=1===d};l.B=new d;l.xa=new function(){}})();function Dc(d){this.b=d}
(function(){function d(){}var l=Dc.prototype;l.aa=function(d){this.behavior=d;this.b=d.b};l.aa.prototype.K=function(){};l.S=function(d,n){this.type=d;this.behavior=d.behavior;this.c=n;this.b=d.b};var q=l.S.prototype;q.K=function(){this.Eq=1===this.A[0];this.yi=this.A[1];this.ik=this.A[2];this.Yk=this.A[3];this.Yw=this.A[4];this.Eb=this.Eq?0:3;this.zc?this.xd.reset():this.xd=new $a;this.Dg=this.c.opacity?this.c.opacity:1;this.Eq&&(0===this.yi?(this.Eb=1,0===this.ik&&(this.Eb=2)):(this.c.opacity=0,
this.b.da=!0))};q.ab=function(){return{fit:this.yi,wt:this.ik,fot:this.Yk,s:this.Eb,st:this.xd.Y,mo:this.Dg}};q.Ab=function(d){this.yi=d.fit;this.ik=d.wt;this.Yk=d.fot;this.Eb=d.s;this.xd.reset();this.xd.Y=d.st;this.Dg=d.mo};q.Ra=function(){this.xd.add(this.b.hg(this.c));0===this.Eb&&(this.c.opacity=this.xd.Y/this.yi*this.Dg,this.b.da=!0,this.c.opacity>=this.Dg&&(this.c.opacity=this.Dg,this.Eb=1,this.xd.reset(),this.b.trigger(Dc.prototype.k.qv,this.c)));1===this.Eb&&this.xd.Y>=this.ik&&(this.Eb=2,
this.xd.reset(),this.b.trigger(Dc.prototype.k.Lv,this.c));2===this.Eb&&0!==this.Yk&&(this.c.opacity=this.Dg-this.xd.Y/this.Yk*this.Dg,this.b.da=!0,0>this.c.opacity&&(this.c.opacity=0,this.Eb=3,this.xd.reset(),this.b.trigger(Dc.prototype.k.rv,this.c),1===this.Yw&&this.b.gf(this.c)))};q.ae=function(){this.Eb=0;this.xd.reset();0===this.yi?(this.Eb=1,0===this.ik&&(this.Eb=2)):(this.c.opacity=0,this.b.da=!0)};d.prototype.rv=function(){return!0};d.prototype.qv=function(){return!0};d.prototype.Lv=function(){return!0};
l.k=new d;l.B=new function(){};l.xa=new function(){}})();function Ec(d){this.b=d}
(function(){function d(){}function l(){}var q=Ec.prototype;q.aa=function(d){this.behavior=d;this.b=d.b};q.aa.prototype.K=function(){};q.S=function(d,m){this.type=d;this.behavior=d.behavior;this.c=m;this.b=d.b};var m=q.S.prototype;m.K=function(){this.Td=this.qe=this.Eb=this.Wl=this.Yl=0};m.ab=function(){return{ontime:this.Yl,offtime:this.Wl,stage:this.Eb,stagetimeleft:this.qe,timeleft:this.Td}};m.Ab=function(d){this.Yl=d.ontime;this.Wl=d.offtime;this.Eb=d.stage;this.qe=d.stagetimeleft;this.Td=d.timeleft;
null===this.Td&&(this.Td=Infinity)};m.Ra=function(){if(!(0>=this.Td)){var d=this.b.hg(this.c);this.Td-=d;0>=this.Td?(this.Td=0,this.c.visible=!0,this.b.da=!0,this.b.trigger(Ec.prototype.k.gq,this.c)):(this.qe-=d,0>=this.qe&&(0===this.Eb?(this.c.visible=!1,this.Eb=1,this.qe+=this.Wl):(this.c.visible=!0,this.Eb=0,this.qe+=this.Yl),this.b.da=!0))}};d.prototype.Qu=function(){return 0<this.Td};d.prototype.gq=function(){return!0};q.k=new d;l.prototype.Eu=function(d,m,l){this.Yl=d;this.Wl=m;this.Eb=1;this.qe=
m;this.Td=l;this.c.visible=!1;this.b.da=!0};q.B=new l;q.xa=new function(){}})();function Fc(d){this.b=d}
(function(){function d(){}var l=Fc.prototype;l.aa=function(d){this.behavior=d;this.b=d.b};l.aa.prototype.K=function(){};l.S=function(d,n){this.type=d;this.behavior=d.behavior;this.c=n;this.b=d.b};var q=l.S.prototype;q.K=function(){this.Db=null;this.em=-1;this.mode=this.Zc=this.Im=this.Jh=this.Qe=this.wj=0;var d=this;this.zc||(this.lj=function(n){d.pj(n)});this.b.uk(this.lj)};q.ab=function(){return{uid:this.Db?this.Db.uid:-1,pa:this.wj,pd:this.Qe,msa:this.Jh,tsa:this.Im,lka:this.Zc,m:this.mode}};q.Ab=
function(d){this.em=d.uid;this.wj=d.pa;this.Qe=d.pd;this.Jh=d.msa;this.Im=d.tsa;this.Zc=d.lka;this.mode=d.m};q.Dd=function(){-1===this.em?this.Db=null:this.Db=this.b.jg(this.em);this.em=-1};q.pj=function(d){this.Db==d&&(this.Db=null)};q.Oe=function(){this.Db=null;this.b.mt(this.lj)};q.Ra=function(){};q.Zj=function(){if(this.Db){this.Zc!==this.c.n&&(this.Jh=Ia(this.Jh+(this.c.n-this.Zc)));var d=this.c.x,n=this.c.y;if(3===this.mode||4===this.mode){var l=Sa(this.c.x,this.c.y,this.Db.x,this.Db.y);if(l>
this.Qe||4===this.mode&&l<this.Qe)n=La(this.Db.x,this.Db.y,this.c.x,this.c.y),d=this.Db.x+Math.cos(n)*this.Qe,n=this.Db.y+Math.sin(n)*this.Qe}else d=this.Db.x+Math.cos(this.Db.n+this.wj)*this.Qe,n=this.Db.y+Math.sin(this.Db.n+this.wj)*this.Qe;this.Zc=l=Ia(this.Jh+(this.Db.n-this.Im));0!==this.mode&&1!==this.mode&&3!==this.mode&&4!==this.mode||this.c.x===d&&this.c.y===n||(this.c.x=d,this.c.y=n,this.c.D());0!==this.mode&&2!==this.mode||this.c.n===l||(this.c.n=l,this.c.D())}};l.k=new function(){};d.prototype.Ov=
function(d,n){if(d){var l=d.sr(this.c);l&&(this.Db=l,this.wj=La(l.x,l.y,this.c.x,this.c.y)-l.n,this.Qe=Sa(l.x,l.y,this.c.x,this.c.y),this.Zc=this.Jh=this.c.n,this.Im=l.n,this.mode=n)}};l.B=new d;l.xa=new function(){}})();function Hc(d){this.b=d}
(function(){function d(){}function l(){}var q=Hc.prototype;q.aa=function(d){this.behavior=d;this.b=d.b};q.aa.prototype.K=function(){};q.S=function(d,l){this.type=d;this.behavior=d.behavior;this.c=l;this.b=d.b;this.Pj=this.Am=this.zm=this.co=this.oi=this.vi=this.uh=this.vh=this.Hj=this.Zi=!1;this.hc=null;this.Co=-1;this.tg=this.sg=0;this.fl=!1;this.fg=this.Fd=0;this.dl=!0;this.I=this.G=0};var m=q.S.prototype;m.du=function(){this.eb=Math.cos(this.gh);this.fb=Math.sin(this.gh);this.Se=Math.cos(this.gh-
Math.PI/2);this.Te=Math.sin(this.gh-Math.PI/2);this.eb=lb(this.eb);this.fb=lb(this.fb);this.Se=lb(this.Se);this.Te=lb(this.Te);this.Mn=this.Jc;0>this.Jc&&(this.eb*=-1,this.fb*=-1,this.Jc=Math.abs(this.Jc))};m.K=function(){this.Fh=this.A[0];this.Cd=this.A[1];this.$g=this.A[2];this.Wi=this.A[3];this.Mn=this.Jc=this.A[4];this.Rl=this.A[5];this.Bn=0!==this.A[6];this.wo=this.A[7]/1E3;this.Vw=1===this.A[8];this.enabled=0!==this.A[9];this.bi=!1;this.ci=this.b.Ze(this.c);this.Do=-1;this.Kg=0;this.gh=U(90);
this.du();var d=this;this.Vw&&!this.b.Za&&(jQuery(document).keydown(function(l){d.Uo(l)}),jQuery(document).keyup(function(l){d.Vo(l)}));this.zc||(this.lj=function(l){d.pj(l)});this.b.uk(this.lj);this.c.R.isPlatformBehavior=!0};m.ab=function(){return{ii:this.co,lfx:this.sg,lfy:this.tg,lfo:this.hc?this.hc.uid:-1,am:this.Fd,en:this.enabled,fall:this.fg,ft:this.dl,dx:this.G,dy:this.I,ms:this.Fh,acc:this.Cd,dec:this.$g,js:this.Wi,g:this.Jc,g1:this.Mn,mf:this.Rl,wof:this.bi,woj:this.ci?this.ci.uid:-1,ga:this.gh,
edj:this.Bn,cdj:this.oi,dj:this.vi,sus:this.wo}};m.Ab=function(d){this.co=d.ii;this.sg=d.lfx;this.tg=d.lfy;this.Co=d.lfo;this.Fd=d.am;this.enabled=d.en;this.fg=d.fall;this.dl=d.ft;this.G=d.dx;this.I=d.dy;this.Fh=d.ms;this.Cd=d.acc;this.$g=d.dec;this.Wi=d.js;this.Jc=d.g;this.Mn=d.g1;this.Rl=d.mf;this.bi=d.wof;this.Do=d.woj;this.gh=d.ga;this.Bn=d.edj;this.oi=d.cdj;this.vi=d.dj;this.wo=d.sus;this.Pj=this.Am=this.zm=this.uh=this.vh=this.Hj=this.Zi=!1;this.Kg=0;this.du()};m.Dd=function(){-1===this.Co?
this.hc=null:this.hc=this.b.jg(this.Co);-1===this.Do?this.ci=null:this.ci=this.b.jg(this.Do)};m.pj=function(d){this.hc==d&&(this.hc=null)};m.Oe=function(){this.hc=null;this.b.mt(this.lj)};m.Uo=function(d){switch(d.which){case 38:d.preventDefault();this.vh=!0;break;case 37:d.preventDefault();this.Zi=!0;break;case 39:d.preventDefault(),this.Hj=!0}};m.Vo=function(d){switch(d.which){case 38:d.preventDefault();this.uh=this.vh=!1;break;case 37:d.preventDefault();this.Zi=!1;break;case 39:d.preventDefault(),
this.Hj=!1}};m.Gg=function(){this.vh=this.Hj=this.Zi=!1};m.ae=function(){return 0>this.Jc?-1:1};m.Mr=function(){var d=null,l=null,m,b;m=this.c.x;b=this.c.y;this.c.x+=this.eb;this.c.y+=this.fb;this.c.D();if(this.hc&&this.b.kc(this.c,this.hc)&&(!this.b.Pp(this.hc.type,oc)||this.hc.R.solidEnabled))return this.c.x=m,this.c.y=b,this.c.D(),this.hc;(d=this.b.ob(this.c))||0!==this.fg||(l=this.b.Ze(this.c,!0));this.c.x=m;this.c.y=b;this.c.D();if(d){if(this.b.kc(this.c,d))return null;this.fl=!1;return d}if(l&&
l.length){b=d=0;for(m=l.length;d<m;d++)l[b]=l[d],this.b.kc(this.c,l[d])||b++;if(1<=b)return this.fl=!0,l[0]}return null};m.Ra=function(){};m.et=function(){var d=this.b.hg(this.c),l,m,b,c,e,a,g,f,q;this.vh||this.Pj||(this.uh=!1);var w=this.Zi||this.zm;b=this.Hj||this.Am;var u=(c=this.vh||this.Pj)&&!this.uh;this.Pj=this.Am=this.zm=!1;if(this.enabled){this.co&&(u=c=b=w=!1);c||(this.Kg=0);f=this.hc;q=!1;this.dl&&((this.b.ob(this.c)||this.b.Ze(this.c))&&this.b.vd(this.c,-this.eb,-this.fb,4,!0),this.dl=
!1);!f||0!==this.I||f.y===this.tg&&f.x===this.sg||(l=f.x-this.sg,m=f.y-this.tg,this.c.x+=l,this.c.y+=m,this.c.D(),this.sg=f.x,this.tg=f.y,q=!0,this.b.ob(this.c)&&this.b.vd(this.c,-l,-m,2.5*Math.sqrt(l*l+m*m)));var k=this.Mr();if(m=this.b.ob(this.c))if(this.c.R.inputPredicted)this.b.vd(this.c,-this.eb,-this.fb,10,!1);else if(this.b.jt(this.c,Math.max(this.c.width,this.c.height)/2))this.b.Oh(this.c,m);else return;k?(this.oi=this.vi=!1,0<this.I&&(this.bi||(this.b.gp(this.c,-this.eb,-this.fb,k),this.bi=
!0),this.I=0),f!=k)?(this.hc=k,this.sg=k.x,this.tg=k.y,this.b.Oh(this.c,k)):q&&(m=this.b.ob(this.c))&&(this.b.Oh(this.c,m),0!==l&&(0<l?this.b.vd(this.c,-this.Se,-this.Te):this.b.vd(this.c,this.Se,this.Te)),this.b.vd(this.c,-this.eb,-this.fb)):c||(this.oi=!0);if(k&&u||!k&&this.Bn&&c&&this.oi&&!this.vi)f=this.c.x,q=this.c.y,this.c.x-=this.eb,this.c.y-=this.fb,this.c.D(),this.b.ob(this.c)?u=!1:(this.Kg=this.wo,this.b.trigger(Hc.prototype.k.wv,this.c),this.Fd=2,this.I=-this.Wi,u=!0,k?this.uh=!0:this.vi=
!0),this.c.x=f,this.c.y=q,this.c.D();k||(c&&0<this.Kg?(this.I=-this.Wi,this.Kg-=d):(this.hc=null,this.I+=this.Jc*d,this.I>this.Rl&&(this.I=this.Rl)),u&&(this.uh=!0));this.bi=!!k;w==b&&(0>this.G?(this.G+=this.$g*d,0<this.G&&(this.G=0)):0<this.G&&(this.G-=this.$g*d,0>this.G&&(this.G=0)));w&&!b&&(this.G=0<this.G?this.G-(this.Cd+this.$g)*d:this.G-this.Cd*d);b&&!w&&(this.G=0>this.G?this.G+(this.Cd+this.$g)*d:this.G+this.Cd*d);this.G>this.Fh?this.G=this.Fh:this.G<-this.Fh&&(this.G=-this.Fh);w=!1;0!==this.G&&
(f=this.c.x,q=this.c.y,l=this.G*d*this.Se,m=this.G*d*this.Te,this.c.x+=this.Se*(1<this.G?1:-1)-this.eb,this.c.y+=this.Te*(1<this.G?1:-1)-this.fb,this.c.D(),c=!1,e=this.b.ob(this.c),this.c.x=f+l,this.c.y=q+m,this.c.D(),b=this.b.ob(this.c),!b&&k&&(b=this.b.Ze(this.c))&&(this.c.x=f,this.c.y=q,this.c.D(),this.b.kc(this.c,b)?(b=null,c=!1):c=!0,this.c.x=f+l,this.c.y=q+m,this.c.D()),b?(l=Math.abs(this.G*d)+2,e||!this.b.vd(this.c,-this.eb,-this.fb,l,c,b))?(this.b.Oh(this.c,b),l=Math.max(Math.abs(this.G*d*
2.5),30),this.b.vd(this.c,this.Se*(0>this.G?1:-1),this.Te*(0>this.G?1:-1),l,!1)?!k||c||this.fl||(f=this.c.x,q=this.c.y,this.c.x+=this.eb,this.c.y+=this.fb,this.b.ob(this.c)?this.b.vd(this.c,-this.eb,-this.fb,3,!1)||(this.c.x=f,this.c.y=q,this.c.D()):(this.c.x=f,this.c.y=q,this.c.D())):(this.c.x=f,this.c.y=q,this.c.D()),c||(this.G=0)):!e&&!u&&Math.abs(this.I)<Math.abs(this.Wi/4)&&(this.I=0,k||(w=!0)):(f=this.Mr(),k&&!f?(m=Math.ceil(Math.abs(this.G*d))+2,f=this.c.x,q=this.c.y,this.c.x+=this.eb*m,this.c.y+=
this.fb*m,this.c.D(),this.b.ob(this.c)||this.b.Ze(this.c)?this.b.vd(this.c,-this.eb,-this.fb,m+2,!0):(this.c.x=f,this.c.y=q,this.c.D())):f&&0===this.I&&this.b.gp(this.c,-this.eb,-this.fb,f)));if(0!==this.I){f=this.c.x;q=this.c.y;this.c.x+=this.I*d*this.eb;this.c.y+=this.I*d*this.fb;l=this.c.x;b=this.c.y;this.c.D();m=this.b.ob(this.c);c=!1;if(!m&&0<this.I&&!k){if((c=0<this.fg?null:this.b.Ze(this.c,!0))&&c.length){if(this.ci){this.c.x=f;this.c.y=q;this.c.D();g=e=0;for(a=c.length;e<a;e++)c[g]=c[e],this.b.kc(this.c,
c[e])||g++;c.length=g;this.c.x=l;this.c.y=b;this.c.D()}1<=c.length&&(m=c[0])}c=!!m}m&&(this.b.Oh(this.c,m),this.Kg=0,l=c?Math.abs(this.I*d*2.5+10):Math.max(Math.abs(this.I*d*2.5+10),30),this.b.vd(this.c,this.eb*(0>this.I?1:-1),this.fb*(0>this.I?1:-1),l,c,m)?(this.hc=m,this.sg=m.x,this.tg=m.y,(this.fl=c)&&(w=!0),this.I=0):(this.c.x=f,this.c.y=q,this.c.D(),this.bi=!0,c||(this.I=0)))}3!==this.Fd&&0<this.I&&!k&&(this.b.trigger(Hc.prototype.k.sv,this.c),this.Fd=3);if(k||w)3===this.Fd||w||u&&0===this.I?
(this.b.trigger(Hc.prototype.k.nq,this.c),this.Fd=0===this.G&&0===this.I?0:1):(0!==this.Fd&&0===this.G&&0===this.I&&(this.b.trigger(Hc.prototype.k.uq,this.c),this.Fd=0),1===this.Fd||0===this.G&&0===this.I||u||(this.b.trigger(Hc.prototype.k.Av,this.c),this.Fd=1));0<this.fg&&this.fg--;this.ci=this.b.Ze(this.c)}};d.prototype.Tu=function(){if(0!==this.I)return!1;var d=null,l=null,m,b;m=this.c.x;b=this.c.y;this.c.x+=this.eb;this.c.y+=this.fb;this.c.D();(d=this.b.ob(this.c))||0!==this.fg||(l=this.b.Ze(this.c,
!0));this.c.x=m;this.c.y=b;this.c.D();if(d)return!this.b.kc(this.c,d);if(l&&l.length){b=d=0;for(m=l.length;d<m;d++)l[b]=l[d],this.b.kc(this.c,l[d])||b++;if(1<=b)return!0}return!1};d.prototype.Nu=function(d){var l=!1,m=this.c.x,b=this.c.y;0===d?(this.c.x-=2*this.Se,this.c.y-=2*this.Te):(this.c.x+=2*this.Se,this.c.y+=2*this.Te);this.c.D();if(!this.b.ob(this.c))return this.c.x=m,this.c.y=b,this.c.D(),!1;this.c.x-=3*this.eb;this.c.y-=3*this.fb;this.c.D();l=this.b.ob(this.c);this.c.x=m;this.c.y=b;this.c.D();
return l};d.prototype.Ru=function(){return 0>this.I};d.prototype.Pu=function(){return 0<this.I};d.prototype.wv=function(){return!0};d.prototype.sv=function(){return!0};d.prototype.uq=function(){return!0};d.prototype.Av=function(){return!0};d.prototype.nq=function(){return!0};q.k=new d;l.prototype.gw=function(d){switch(d){case 0:this.zm=!0;break;case 1:this.Am=!0;break;case 2:this.Pj=!0}};l.prototype.dw=function(d){this.I=d};l.prototype.fi=function(d){this.enabled!==(1===d)&&(this.enabled=1===d,this.enabled||
(this.hc=null))};q.B=new l;q.xa=new function(){}})();function Ic(d){this.b=d}
(function(){function d(){}function l(){}function q(){}var m=Ic.prototype;m.aa=function(b){this.behavior=b;this.b=b.b};m.aa.prototype.K=function(){};m.S=function(b,d){this.type=b;this.behavior=b.behavior;this.c=d;this.b=b.b;this.hb=0};var n=m.S.prototype,v=2*Math.PI,t=Math.PI/2,b=3*Math.PI/2;n.K=function(){this.Qb=1===this.A[0];this.Eg=this.A[1];this.Yp=this.A[2];this.Pe=this.A[3];this.Pe+=Math.random()*this.A[4];0===this.Pe?this.hb=0:(this.hb=this.A[5]/this.Pe*v,this.hb+=Math.random()*this.A[6]/this.Pe*
v);this.xc=this.A[7];this.xc+=Math.random()*this.A[8];this.Dj=this.pg=this.ma=0;5===this.Eg&&(this.xc=U(this.xc));this.init()};n.ab=function(){return{i:this.hb,a:this.Qb,mv:this.Eg,w:this.Yp,p:this.Pe,mag:this.xc,iv:this.ma,iv2:this.pg,r:this.Dj,lkv:this.Mc,lkv2:this.Xi}};n.Ab=function(b){this.hb=b.i;this.Qb=b.a;this.Eg=b.mv;this.Yp=b.w;this.Pe=b.p;this.xc=b.mag;this.ma=b.iv;this.pg=b.iv2||0;this.Dj=b.r;this.Mc=b.lkv;this.Xi=b.lkv2||0};n.init=function(){switch(this.Eg){case 0:this.ma=this.c.x;break;
case 1:this.ma=this.c.y;break;case 2:this.ma=this.c.width;this.Dj=this.c.height/this.c.width;break;case 3:this.ma=this.c.width;break;case 4:this.ma=this.c.height;break;case 5:this.ma=this.c.n;break;case 6:this.ma=this.c.opacity;break;case 7:this.ma=0;break;case 8:this.ma=this.c.x,this.pg=this.c.y}this.Mc=this.ma;this.Xi=this.pg};n.ef=function(c){c=c%v;switch(this.Yp){case 0:return Math.sin(c);case 1:return c<=t?c/t:c<=b?1-2*(c-t)/Math.PI:(c-b)/t-1;case 2:return 2*c/v-1;case 3:return-2*c/v+1;case 4:return c<
Math.PI?-1:1}return 0};n.Ra=function(){var b=this.b.hg(this.c);this.Qb&&0!==b&&(0===this.Pe?this.hb=0:(this.hb+=b/this.Pe*v,this.hb=this.hb%v),this.EA())};n.EA=function(){switch(this.Eg){case 0:this.c.x!==this.Mc&&(this.ma+=this.c.x-this.Mc);this.c.x=this.ma+this.ef(this.hb)*this.xc;this.Mc=this.c.x;break;case 1:this.c.y!==this.Mc&&(this.ma+=this.c.y-this.Mc);this.c.y=this.ma+this.ef(this.hb)*this.xc;this.Mc=this.c.y;break;case 2:this.c.width=this.ma+this.ef(this.hb)*this.xc;this.c.height=this.c.width*
this.Dj;break;case 3:this.c.width=this.ma+this.ef(this.hb)*this.xc;break;case 4:this.c.height=this.ma+this.ef(this.hb)*this.xc;break;case 5:this.c.n!==this.Mc&&(this.ma=Ia(this.ma+(this.c.n-this.Mc)));this.c.n=Ia(this.ma+this.ef(this.hb)*this.xc);this.Mc=this.c.n;break;case 6:this.c.opacity=this.ma+this.ef(this.hb)*this.xc/100;0>this.c.opacity?this.c.opacity=0:1<this.c.opacity&&(this.c.opacity=1);break;case 8:this.c.x!==this.Mc&&(this.ma+=this.c.x-this.Mc),this.c.y!==this.Xi&&(this.pg+=this.c.y-this.Xi),
this.c.x=this.ma+Math.cos(this.c.n)*this.ef(this.hb)*this.xc,this.c.y=this.pg+Math.sin(this.c.n)*this.ef(this.hb)*this.xc,this.Mc=this.c.x,this.Xi=this.c.y}this.c.D()};n.Os=function(b,d){switch(this.Eg){case 2:this.ma*=d.width/b.width;this.Dj=d.height/d.width;break;case 3:this.ma*=d.width/b.width;break;case 4:this.ma*=d.height/b.height}};d.prototype.vu=function(b){return this.Eg===b};m.k=new d;l.prototype.Pv=function(b){this.Qb=1===b};m.B=new l;q.prototype.Cu=function(b){b.N(this.hb/v)};m.xa=new q})();
function pc(d){this.b=d}(function(){function d(){}var l=pc.prototype;l.aa=function(d){this.behavior=d;this.b=d.b};l.aa.prototype.K=function(){};l.S=function(d,l){this.type=d;this.behavior=d.behavior;this.c=l;this.b=d.b};var q=l.S.prototype;q.K=function(){this.c.R.jumpthruEnabled=0!==this.A[0]};q.Ra=function(){};l.k=new function(){};d.prototype.fi=function(d){this.c.R.jumpthruEnabled=!!d};l.B=new d})();function Kc(d){this.b=d;this.zp=this.ym=this.Oj=this.yp=0}
(function(){function d(){}var l=Kc.prototype;l.aa=function(d){this.behavior=d;this.b=d.b};l.aa.prototype.K=function(){};l.S=function(d,l){this.type=d;this.behavior=d.behavior;this.c=l;this.b=d.b};var q=l.S.prototype;q.K=function(){this.enabled=0!==this.A[0]};q.ab=function(){return{smg:this.behavior.yp,ss:this.behavior.Oj,se:this.behavior.ym,smd:this.behavior.zp}};q.Ab=function(d){this.behavior.yp=d.smg;this.behavior.Oj=d.ss;this.behavior.ym=d.se;this.behavior.zp=d.smd};q.Ra=function(){};q.Zj=function(){if(this.enabled){var d=
this.behavior.Sl.cf(),l=0,q=0,t,b,c,e=0;t=0;for(b=d.length;t<b;t++){a:{c=d[t];for(var a=void 0,g=void 0,f=void 0,a=0,g=c.T.length;a<g;++a)if(f=c.T[a],f.behavior instanceof Kc){c=f;break a}c=null}c&&c.enabled&&(l+=d[t].x,q+=d[t].y,++e)}d=this.c.u.zb;b=this.b.Mb.Y;c=t=0;b>=this.behavior.Oj&&b<this.behavior.ym&&(t=this.behavior.yp*Math.min(this.b.Nf,1),0===this.behavior.zp&&(t*=1-(b-this.behavior.Oj)/(this.behavior.ym-this.behavior.Oj)),b=Math.random()*Math.PI*2,c=Math.random()*t,t=Math.cos(b)*c,c*=
Math.sin(b));d.sp(l/e+t);d.tp(q/e+c)}};d.prototype.fi=function(d){this.enabled=0!==d};l.B=new d})();function oc(d){this.b=d}(function(){function d(){}var l=oc.prototype;l.aa=function(d){this.behavior=d;this.b=d.b};l.aa.prototype.K=function(){};l.S=function(d,l){this.type=d;this.behavior=d.behavior;this.c=l;this.b=d.b};var q=l.S.prototype;q.K=function(){this.c.R.solidEnabled=0!==this.A[0]};q.Ra=function(){};l.k=new function(){};d.prototype.fi=function(d){this.c.R.solidEnabled=!!d};l.B=new d})();
function nc(){return[rc,sc,qc,tc,xc,zc,Y,Ac,Bc,yc,Kc,Hc,Ic,oc,pc,Ec,Fc,Dc,Cc,X.prototype.k.oq,rc.prototype.B.jw,rc.prototype.B.Play,Y.prototype.B.Zv,Fc.prototype.B.Ov,Y.prototype.B.Uv,Y.prototype.B.Rv,Y.prototype.B.Tv,Y.prototype.B.Sv,Y.prototype.B.av,Y.prototype.B.$p,Y.prototype.B.ew,zc.prototype.B.fw,zc.prototype.B.Yv,yc.prototype.B.wq,zc.prototype.B.wq,X.prototype.xa.wz,X.prototype.xa.vz,qc.prototype.B.CallFunction,yc.prototype.B.$p,Bc.prototype.k.an,Y.prototype.k.Xu,X.prototype.B.Au,tc.prototype.k.cq,
Y.prototype.k.Mu,tc.prototype.k.kq,tc.prototype.k.Su,Bc.prototype.k.$m,Hc.prototype.B.gw,Hc.prototype.k.Tu,Bc.prototype.k.Wu,Y.prototype.B.Xv,X.prototype.k.aq,Hc.prototype.k.uq,Hc.prototype.k.nq,Hc.prototype.k.Ru,Y.prototype.k.uu,Hc.prototype.k.Pu,Y.prototype.k.nv,Y.prototype.k.fq,X.prototype.B.Hu,Y.prototype.k.yu,Y.prototype.xa.Ju,Y.prototype.k.Ku,Y.prototype.k.xu,sc.prototype.B.Du,X.prototype.B.bv,X.prototype.k.wu,X.prototype.B.bw,xc.prototype.B.Vv,Y.prototype.B.lu,Ec.prototype.k.Qu,Y.prototype.k.Vu,
Ec.prototype.B.Eu,Hc.prototype.B.dw,X.prototype.k.Fu,Ic.prototype.k.vu,X.prototype.k.tu,Ic.prototype.xa.Cu,Y.prototype.xa.xq,Ec.prototype.k.gq,Y.prototype.k.Uu,Ic.prototype.B.Pv,Y.prototype.B.mw,rc.prototype.B.Wv,X.prototype.B.aw,qc.prototype.k.nk,Y.prototype.B.kw,Kc.prototype.B.fi,X.prototype.k.pw,yc.prototype.B.$v,X.prototype.xa.Ez,Y.prototype.xa.zu,Y.prototype.B.hw,Cc.prototype.B.Qv,qc.prototype.xa.Mv,X.prototype.B.mu,Hc.prototype.k.Nu,X.prototype.B.qw,xc.prototype.B.qu,xc.prototype.k.hq,xc.prototype.B.Gu,
xc.prototype.k.iq,xc.prototype.xa.Yu,xc.prototype.k.jq,X.prototype.B.lw,Y.prototype.k.Nv,X.prototype.B.Iu]};
