// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa,ba,ca,ea,ga,ha,ia,ja,ka,la,ma,na,oa,pa,sa,ta,ua,va,wa,xa,ya,za,Ba,y,Da,Ea,Fa,Ha,Ia,G,Ja,Ka,La,Ma,Na,Oa,Pa,Ra,Sa,Ta,Ua,Va,Xa,Ya,Za,$a,ab,bb,cb,ib,jb,kb,lb,mb,nb,ob,pb,qb,rb,sb,tb,ub,vb,wb,xb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Tb,Ub,Vb,Wb,Xb,Yb,Zb,$b,ac,bc,cc,dc,ec,fc,gc,hc,ic={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(h){return h.__proto__}:function(h){return h.constructor.prototype});
(function(){function h(a,b,c,k){this.set(a,b,c,k)}function g(){this.uc=this.tc=this.wc=this.vc=this.Ic=this.Hc=this.Wb=this.Vb=0}function d(a,b,c,k){a<b?c<k?(E=a<c?a:c,C=b>k?b:k):(E=a<k?a:k,C=b>c?b:c):c<k?(E=b<c?b:c,C=a>k?a:k):(E=b<k?b:k,C=a>c?a:c)}function f(){this.items=this.he=null;this.Ji=0;r&&(this.he=new Set);this.Rh=[];this.ef=!0}function m(a){w[A++]=a}function q(){this.J=this.cm=this.y=this.bi=0}function n(a){this.Hb=[];this.Sj=this.Uj=this.Vj=this.Tj=0;this.pj(a)}function c(a,b){this.Um=
a;this.Tm=b;this.cells={}}function b(a,b){this.Um=a;this.Tm=b;this.cells={}}function e(a,b,c){var k;return F.length?(k=F.pop(),k.En=a,k.x=b,k.y=c,k):new ba(a,b,c)}function a(a,b,c){this.En=a;this.x=b;this.y=c;this.Kb=new ca}function k(a,b,c){var k;return x.length?(k=x.pop(),k.En=a,k.x=b,k.y=c,k):new ea(a,b,c)}function p(a,b,c){this.En=a;this.x=b;this.y=c;this.Kb=[];this.fh=!0;this.ee=new ca;this.Zh=!1}function u(a,b){return a.Md-b.Md}ga=function(a){window.console&&window.console.log&&window.console.log(a)};
ha=function(a){window.console&&window.console.error&&window.console.error(a)};aa=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};la=function(a){return 0<a&&0===(a-1&a)};ma=function(a){--a;for(var b=1;32>b;b<<=1)a=a|a>>b;return a+1};na=function(a){return 0>a?-a:a};oa=function(a,b){return a>b?a:b};pa=function(a,b){return a<b?a:b};sa=Math.PI;ta=function(a){return 0<=a?a|0:(a|0)-1};ua=function(a){var b=
a|0;return b===a?b:b+1};va=function(a,b,c,k,v,e,d,l){var u,f,p,m;a<c?(f=a,u=c):(f=c,u=a);v<d?(m=v,p=d):(m=d,p=v);if(u<m||f>p)return!1;b<k?(f=b,u=k):(f=k,u=b);e<l?(m=e,p=l):(m=l,p=e);if(u<m||f>p)return!1;u=v-a+d-c;f=e-b+l-k;a=c-a;b=k-b;v=d-v;e=l-e;l=na(b*v-e*a);return na(v*f-e*u)>l?!1:na(a*f-b*u)<=l};h.prototype.set=function(a,b,c,k){this.left=a;this.top=b;this.right=c;this.bottom=k};h.prototype.Lg=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};h.prototype.width=
function(){return this.right-this.left};h.prototype.height=function(){return this.bottom-this.top};h.prototype.offset=function(a,b){this.left+=a;this.top+=b;this.right+=a;this.bottom+=b;return this};h.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)};h.prototype.ty=function(a){return!(a.right<this.left||a.bottom<this.top||a.left>this.right||a.top>this.bottom)};h.prototype.uy=
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)};h.prototype.Zb=function(a,b){return a>=this.left&&a<=this.right&&b>=this.top&&b<=this.bottom};h.prototype.hi=function(a){return this.left===a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};wa=h;g.prototype.Kh=function(a){this.Vb=a.left;this.Wb=a.top;this.Hc=a.right;this.Ic=a.top;this.vc=a.right;this.wc=a.bottom;this.tc=a.left;this.uc=a.bottom};g.prototype.$s=function(a,
b){if(0===b)this.Kh(a);else{var c=Math.sin(b),k=Math.cos(b),v=a.left*c,e=a.top*c,d=a.right*c,c=a.bottom*c,l=a.left*k,u=a.top*k,f=a.right*k,k=a.bottom*k;this.Vb=l-e;this.Wb=u+v;this.Hc=f-e;this.Ic=u+d;this.vc=f-c;this.wc=k+d;this.tc=l-c;this.uc=k+v}};g.prototype.offset=function(a,b){this.Vb+=a;this.Wb+=b;this.Hc+=a;this.Ic+=b;this.vc+=a;this.wc+=b;this.tc+=a;this.uc+=b;return this};var E=0,C=0;g.prototype.wq=function(a){d(this.Vb,this.Hc,this.vc,this.tc);a.left=E;a.right=C;d(this.Wb,this.Ic,this.wc,
this.uc);a.top=E;a.bottom=C};g.prototype.Zb=function(a,b){var c=this.Vb,k=this.Wb,v=this.Hc-c,e=this.Ic-k,d=this.vc-c,l=this.wc-k,u=a-c,f=b-k,p=v*v+e*e,m=v*d+e*l,e=v*u+e*f,g=d*d+l*l,h=d*u+l*f,t=1/(p*g-m*m),v=(g*e-m*h)*t,p=(p*h-m*e)*t;if(0<=v&&0<p&&1>v+p)return!0;v=this.tc-c;e=this.uc-k;p=v*v+e*e;m=v*d+e*l;e=v*u+e*f;t=1/(p*g-m*m);v=(g*e-m*h)*t;p=(p*h-m*e)*t;return 0<=v&&0<p&&1>v+p};g.prototype.df=function(a,b){if(b)switch(a){case 0:return this.Vb;case 1:return this.Hc;case 2:return this.vc;case 3:return this.tc;
case 4:return this.Vb;default:return this.Vb}else switch(a){case 0:return this.Wb;case 1:return this.Ic;case 2:return this.wc;case 3:return this.uc;case 4:return this.Wb;default:return this.Wb}};g.prototype.as=function(){return(this.Vb+this.Hc+this.vc+this.tc)/4};g.prototype.bs=function(){return(this.Wb+this.Ic+this.wc+this.uc)/4};g.prototype.or=function(a){var b=a.as(),c=a.bs();if(this.Zb(b,c))return!0;b=this.as();c=this.bs();if(a.Zb(b,c))return!0;var k,v,e,d,l,u,f,p;for(f=0;4>f;f++)for(p=0;4>p;p++)if(b=
this.df(f,!0),c=this.df(f,!1),k=this.df(f+1,!0),v=this.df(f+1,!1),e=a.df(p,!0),d=a.df(p,!1),l=a.df(p+1,!0),u=a.df(p+1,!1),va(b,c,k,v,e,d,l,u))return!0;return!1};xa=g;ya=function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);return a};za=function(a,b){var c,k;b=ta(b);if(!(0>b||b>=a.length)){c=b;for(k=a.length-1;c<k;c++)a[c]=a[c+1];Ba(a,k)}};Ba=function(a,b){a.length=b};y=function(a){Ba(a,0)};Da=function(a,b){y(a);var c,k;c=0;for(k=b.length;c<k;++c)a[c]=b[c]};Ea=function(a,b){a.push.apply(a,
b)};Fa=function(a,b){var c,k;c=0;for(k=a.length;c<k;++c)if(a[c]===b)return c;return-1};Ha=function(a,b){var c=Fa(a,b);-1!==c&&za(a,c)};Ia=function(a,b,c){return a<b?b:a>c?c:a};G=function(a){return a/(180/sa)};Ja=function(a){return 180/sa*a};Ka=function(a){a%=360;0>a&&(a+=360);return a};La=function(a){a%=2*sa;0>a&&(a+=2*sa);return a};Ma=function(a){return Ka(Ja(a))};Na=function(a){return La(G(a))};Oa=function(a,b,c,k){return Math.atan2(k-b,c-a)};Pa=function(a,b){if(a===b)return 0;var c=Math.sin(a),
k=Math.cos(a),v=Math.sin(b),e=Math.cos(b),c=c*v+k*e;return 1<=c?0:-1>=c?sa:Math.acos(c)};Ra=function(a,b,c){var k=Math.sin(a),v=Math.cos(a),e=Math.sin(b),d=Math.cos(b);return Math.acos(k*e+v*d)>c?0<v*e-k*d?La(a+c):La(a-c):La(b)};Sa=function(a,b){var c=Math.sin(a),k=Math.cos(a),v=Math.sin(b),e=Math.cos(b);return 0>=k*v-c*e};Ta=function(a,b,c,k,v,e){if(0===c)return e?a:b;var d=Math.sin(c);c=Math.cos(c);a-=k;b-=v;var l=a*d;a=a*c-b*d;b=b*c+l;return e?a+k:b+v};Ua=function(a,b,c,k){a=c-a;b=k-b;return Math.sqrt(a*
a+b*b)};Va=function(a,b){return!a!==!b};Xa=function(a){for(var b in a)if(a.hasOwnProperty(b))return!0;return!1};Ya=function(a){for(var b in a)a.hasOwnProperty(b)&&delete a[b]};var z=+new Date;Za=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()-z};var l=
!1,t=l=!1,J=!1;"undefined"!==typeof window&&(l=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),l=!l&&/safari/i.test(navigator.userAgent),t=/(iphone|ipod|ipad)/i.test(navigator.userAgent),J=window.c2ejecta);var r=!l&&!J&&!t&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;f.prototype.contains=function(a){return this.Ee()?!1:r?this.he.has(a):this.items&&this.items.hasOwnProperty(a)};f.prototype.add=function(a){if(r)this.he.has(a)||(this.he.add(a),this.ef=
!1);else{var b=a.toString(),c=this.items;c?c.hasOwnProperty(b)||(c[b]=a,this.Ji++,this.ef=!1):(this.items={},this.items[b]=a,this.Ji=1,this.ef=!1)}};f.prototype.remove=function(a){if(!this.Ee())if(r)this.he.has(a)&&(this.he["delete"](a),this.ef=!1);else if(this.items){a=a.toString();var b=this.items;b.hasOwnProperty(a)&&(delete b[a],this.Ji--,this.ef=!1)}};f.prototype.clear=function(){this.Ee()||(r?this.he.clear():(this.items=null,this.Ji=0),y(this.Rh),this.ef=!0)};f.prototype.Ee=function(){return 0===
this.count()};f.prototype.count=function(){return r?this.he.size:this.Ji};var w=null,A=0;f.prototype.Zz=function(){if(!this.ef){if(r)y(this.Rh),w=this.Rh,A=0,this.he.forEach(m),w=null,A=0;else{var a=this.Rh;y(a);var b,c=0,k=this.items;if(k)for(b in k)k.hasOwnProperty(b)&&(a[c++]=k[b])}this.ef=!0}};f.prototype.Te=function(){this.Zz();return this.Rh};ca=f;new ca;$a=function(a,b){r?ab(a,b.he):bb(a,b.Te())};ab=function(a,b){var c,k,v,e;k=c=0;for(v=a.length;c<v;++c)e=a[c],b.has(e)||(a[k++]=e);Ba(a,k)};
bb=function(a,b){var c,k,v,e;k=c=0;for(v=a.length;c<v;++c)e=a[c],-1===Fa(b,e)&&(a[k++]=e);Ba(a,k)};q.prototype.add=function(a){this.y=a-this.bi;this.cm=this.J+this.y;this.bi=this.cm-this.J-this.y;this.J=this.cm};q.prototype.reset=function(){this.J=this.cm=this.y=this.bi=0};cb=q;ib=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};n.prototype.pj=function(a){this.Ls=a;this.Hd=a.length/2;this.Hb.length=a.length;this.Yj=this.Zj=-1;this.zq=0};n.prototype.bh=function(){return!this.Ls.length};
n.prototype.Ga=function(){for(var a=this.Hb,b=a[0],c=b,k=a[1],v=k,e,d,l=1,u=this.Hd;l<u;++l)d=2*l,e=a[d],d=a[d+1],e<b&&(b=e),e>c&&(c=e),d<k&&(k=d),d>v&&(v=d);this.Tj=b;this.Uj=c;this.Vj=k;this.Sj=v};n.prototype.Kh=function(a,b,c){this.Hb.length=8;this.Hd=4;var k=this.Hb;k[0]=a.left-b;k[1]=a.top-c;k[2]=a.right-b;k[3]=a.top-c;k[4]=a.right-b;k[5]=a.bottom-c;k[6]=a.left-b;k[7]=a.bottom-c;this.Zj=a.right-a.left;this.Yj=a.bottom-a.top;this.Ga()};n.prototype.Jh=function(a,b,c,k,v){this.Hb.length=8;this.Hd=
4;var e=this.Hb;e[0]=a.Vb-b;e[1]=a.Wb-c;e[2]=a.Hc-b;e[3]=a.Ic-c;e[4]=a.vc-b;e[5]=a.wc-c;e[6]=a.tc-b;e[7]=a.uc-c;this.Zj=k;this.Yj=v;this.Ga()};n.prototype.Zs=function(a){this.Hd=a.Hd;Da(this.Hb,a.Hb);this.Tj=a.Tj;this.Vj-a.Vj;this.Uj=a.Uj;this.Sj=a.Sj};n.prototype.Kg=function(a,b,c){if(this.Zj!==a||this.Yj!==b||this.zq!==c){this.Zj=a;this.Yj=b;this.zq=c;var k,v,e,d,l,u=0,f=1,p=this.Ls,m=this.Hb;0!==c&&(u=Math.sin(c),f=Math.cos(c));c=0;for(e=this.Hd;c<e;c++)k=2*c,v=k+1,d=p[k]*a,l=p[v]*b,m[k]=d*f-l*
u,m[v]=l*f+d*u;this.Ga()}};n.prototype.Zb=function(a,b){var c=this.Hb;if(a===c[0]&&b===c[1])return!0;var k,v,e,d=this.Hd,l=this.Tj-110,u=this.Vj-101,f=this.Uj+131,p=this.Sj+120,m,g,h=0,t=0;for(k=0;k<d;k++)v=2*k,e=(k+1)%d*2,m=c[v],v=c[v+1],g=c[e],e=c[e+1],va(l,u,a,b,m,v,g,e)&&h++,va(f,p,a,b,m,v,g,e)&&t++;return 1===h%2||1===t%2};n.prototype.xi=function(a,b,c){var k=a.Hb,v=this.Hb;if(this.Zb(k[0]+b,k[1]+c)||a.Zb(v[0]-b,v[1]-c))return!0;var e,d,l,u,f,p,m,g,h,t,z,n;e=0;for(u=this.Hd;e<u;e++)for(d=2*e,
l=(e+1)%u*2,g=v[d],d=v[d+1],h=v[l],t=v[l+1],l=0,m=a.Hd;l<m;l++)if(f=2*l,p=(l+1)%m*2,z=k[f]+b,f=k[f+1]+c,n=k[p]+b,p=k[p+1]+c,va(g,d,h,t,z,f,n,p))return!0;return!1};jb=n;c.prototype.nf=function(a,b,c){var k;k=this.cells[a];return k?(k=k[b])?k:c?(k=e(this,a,b),this.cells[a][b]=k):null:c?(k=e(this,a,b),this.cells[a]={},this.cells[a][b]=k):null};c.prototype.pc=function(a){return ta(a/this.Um)};c.prototype.qc=function(a){return ta(a/this.Tm)};c.prototype.update=function(a,b,c){var k,v,e,d,l;if(b)for(k=
b.left,v=b.right;k<=v;++k)for(e=b.top,d=b.bottom;e<=d;++e)if(!c||!c.Zb(k,e))if(l=this.nf(k,e,!1))l.remove(a),l.Ee()&&(l.Kb.clear(),1E3>F.length&&F.push(l),this.cells[k][e]=null);if(c)for(k=c.left,v=c.right;k<=v;++k)for(e=c.top,d=c.bottom;e<=d;++e)b&&b.Zb(k,e)||this.nf(k,e,!0).Pn(a)};c.prototype.Il=function(a,b){var c,k,v,e,d,l;c=this.pc(a.left);v=this.qc(a.top);k=this.pc(a.right);for(d=this.qc(a.bottom);c<=k;++c)for(e=v;e<=d;++e)(l=this.nf(c,e,!1))&&l.dump(b)};kb=c;b.prototype.nf=function(a,b,c){var e;
e=this.cells[a];return e?(e=e[b])?e:c?(e=k(this,a,b),this.cells[a][b]=e):null:c?(e=k(this,a,b),this.cells[a]={},this.cells[a][b]=e):null};b.prototype.pc=function(a){return ta(a/this.Um)};b.prototype.qc=function(a){return ta(a/this.Tm)};b.prototype.update=function(a,b,c){var k,v,e,d,l;if(b)for(k=b.left,v=b.right;k<=v;++k)for(e=b.top,d=b.bottom;e<=d;++e)if(!c||!c.Zb(k,e))if(l=this.nf(k,e,!1))l.remove(a),l.Ee()&&(l.reset(),1E3>x.length&&x.push(l),this.cells[k][e]=null);if(c)for(k=c.left,v=c.right;k<=
v;++k)for(e=c.top,d=c.bottom;e<=d;++e)b&&b.Zb(k,e)||this.nf(k,e,!0).Pn(a)};b.prototype.Il=function(a,b,c,k,v){var e,d;a=this.pc(a);b=this.qc(b);c=this.pc(c);for(e=this.qc(k);a<=c;++a)for(k=b;k<=e;++k)(d=this.nf(a,k,!1))&&d.dump(v)};b.prototype.Ky=function(a){var b,c,k,v,e;b=a.left;k=a.top;c=a.right;for(v=a.bottom;b<=c;++b)for(a=k;a<=v;++a)if(e=this.nf(b,a,!1))e.fh=!1};lb=b;var F=[];a.prototype.Ee=function(){return this.Kb.Ee()};a.prototype.Pn=function(a){this.Kb.add(a)};a.prototype.remove=function(a){this.Kb.remove(a)};
a.prototype.dump=function(a){Ea(a,this.Kb.Te())};ba=a;var x=[];p.prototype.Ee=function(){if(!this.Kb.length)return!0;if(this.Kb.length>this.ee.count())return!1;this.nn();return!0};p.prototype.Pn=function(a){this.ee.contains(a)?(this.ee.remove(a),this.ee.Ee()&&(this.Zh=!1)):this.Kb.length?(this.Kb[this.Kb.length-1].Xd()>a.Xd()&&(this.fh=!1),this.Kb.push(a)):(this.Kb.push(a),this.fh=!0)};p.prototype.remove=function(a){this.ee.add(a);this.Zh=!0;30<=this.ee.count()&&this.nn()};p.prototype.nn=function(){this.Zh&&
(this.ee.count()===this.Kb.length?this.reset():($a(this.Kb,this.ee),this.ee.clear(),this.Zh=!1))};p.prototype.Sw=function(){this.fh||(this.Kb.sort(u),this.fh=!0)};p.prototype.reset=function(){y(this.Kb);this.fh=!0;this.ee.clear();this.Zh=!1};p.prototype.dump=function(a){this.nn();this.Sw();this.Kb.length&&a.push(this.Kb)};ea=p;var H="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");mb=function(a){return 0>=a||11<=a?"source-over":
H[a-1]};nb=function(a,b,c){if(c)switch(a.hc=c.ONE,a.$b=c.ONE_MINUS_SRC_ALPHA,b){case 1:a.hc=c.ONE;a.$b=c.ONE;break;case 3:a.hc=c.ONE;a.$b=c.ZERO;break;case 4:a.hc=c.ONE_MINUS_DST_ALPHA;a.$b=c.ONE;break;case 5:a.hc=c.DST_ALPHA;a.$b=c.ZERO;break;case 6:a.hc=c.ZERO;a.$b=c.SRC_ALPHA;break;case 7:a.hc=c.ONE_MINUS_DST_ALPHA;a.$b=c.ZERO;break;case 8:a.hc=c.ZERO;a.$b=c.ONE_MINUS_SRC_ALPHA;break;case 9:a.hc=c.DST_ALPHA;a.$b=c.ONE_MINUS_SRC_ALPHA;break;case 10:a.hc=c.ONE_MINUS_DST_ALPHA,a.$b=c.SRC_ALPHA}};
ob=function(a){return Math.round(1E6*a)/1E6};pb=function(a,b){return"string"!==typeof a||"string"!==typeof b||a.length!==b.length?!1:a===b?!0:a.toLowerCase()===b.toLowerCase()};qb=function(a){a=a.target;return!a||a===document||a===window||document&&document.body&&a===document.body||pb(a.tagName,"canvas")?!0:!1}})();var jc="undefined"!==typeof Float32Array?Float32Array:Array;function kc(h){var g=new jc(3);h&&(g[0]=h[0],g[1]=h[1],g[2]=h[2]);return g}
function lc(h){var g=new jc(16);h&&(g[0]=h[0],g[1]=h[1],g[2]=h[2],g[3]=h[3],g[4]=h[4],g[5]=h[5],g[6]=h[6],g[7]=h[7],g[8]=h[8],g[9]=h[9],g[10]=h[10],g[11]=h[11],g[12]=h[12],g[13]=h[13],g[14]=h[14],g[15]=h[15]);return g}function mc(h,g){g[0]=h[0];g[1]=h[1];g[2]=h[2];g[3]=h[3];g[4]=h[4];g[5]=h[5];g[6]=h[6];g[7]=h[7];g[8]=h[8];g[9]=h[9];g[10]=h[10];g[11]=h[11];g[12]=h[12];g[13]=h[13];g[14]=h[14];g[15]=h[15]}
function nc(h,g){var d=g[0],f=g[1];g=g[2];h[0]*=d;h[1]*=d;h[2]*=d;h[3]*=d;h[4]*=f;h[5]*=f;h[6]*=f;h[7]*=f;h[8]*=g;h[9]*=g;h[10]*=g;h[11]*=g}
function oc(h,g,d,f){f||(f=lc());var m,q,n,c,b,e,a,k,p=h[0],u=h[1];h=h[2];q=d[0];n=d[1];m=d[2];d=g[1];e=g[2];p===g[0]&&u===d&&h===e?(h=f,h[0]=1,h[1]=0,h[2]=0,h[3]=0,h[4]=0,h[5]=1,h[6]=0,h[7]=0,h[8]=0,h[9]=0,h[10]=1,h[11]=0,h[12]=0,h[13]=0,h[14]=0,h[15]=1):(d=p-g[0],e=u-g[1],a=h-g[2],k=1/Math.sqrt(d*d+e*e+a*a),d*=k,e*=k,a*=k,g=n*a-m*e,m=m*d-q*a,q=q*e-n*d,(k=Math.sqrt(g*g+m*m+q*q))?(k=1/k,g*=k,m*=k,q*=k):q=m=g=0,n=e*q-a*m,c=a*g-d*q,b=d*m-e*g,(k=Math.sqrt(n*n+c*c+b*b))?(k=1/k,n*=k,c*=k,b*=k):b=c=n=0,
f[0]=g,f[1]=n,f[2]=d,f[3]=0,f[4]=m,f[5]=c,f[6]=e,f[7]=0,f[8]=q,f[9]=b,f[10]=a,f[11]=0,f[12]=-(g*p+m*u+q*h),f[13]=-(n*p+c*u+b*h),f[14]=-(d*p+e*u+a*h),f[15]=1)}
(function(){function h(c,b,e){this.Fe=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.Qa=!!e;this.Ok=this.Bi=!1;this.$m=0;this.xm=1;this.Gp=1E3;this.fA=(this.Gp-this.xm)/32768;this.Rm=kc([0,0,100]);this.Lr=kc([0,0,0]);this.Bt=kc([0,1,0]);this.Gj=kc([1,1,1]);this.Kq=!0;this.gl=lc();this.bd=lc();this.co=lc();this.Zm=lc();this.G=c;this.kr()}function g(c,b,e){this.G=c;this.qj=b;this.name=e;this.qd=c.getAttribLocation(b,"aPos");this.xf=c.getAttribLocation(b,
"aTex");this.Jr=c.getUniformLocation(b,"matP");this.cl=c.getUniformLocation(b,"matMV");this.oh=c.getUniformLocation(b,"opacity");this.ko=c.getUniformLocation(b,"colorFill");this.Kr=c.getUniformLocation(b,"samplerFront");this.Si=c.getUniformLocation(b,"samplerBack");this.ng=c.getUniformLocation(b,"destStart");this.mg=c.getUniformLocation(b,"destEnd");this.Ui=c.getUniformLocation(b,"seconds");this.no=c.getUniformLocation(b,"pixelWidth");this.lo=c.getUniformLocation(b,"pixelHeight");this.Ri=c.getUniformLocation(b,
"layerScale");this.Qi=c.getUniformLocation(b,"layerAngle");this.Vi=c.getUniformLocation(b,"viewOrigin");this.Ti=c.getUniformLocation(b,"scrollPos");this.ky=!!(this.no||this.lo||this.Ui||this.Si||this.ng||this.mg||this.Ri||this.Qi||this.Vi||this.Ti);this.Tr=this.Ur=-999;this.fl=1;this.Pr=this.Or=0;this.Rr=this.Nr=this.Mr=1;this.Xr=this.Wr=this.Vr=this.Zr=this.Yr=this.Qr=0;this.bo=[];this.Sr=lc();this.oh&&c.uniform1f(this.oh,1);this.ko&&c.uniform4f(this.ko,1,1,1,1);this.Kr&&c.uniform1i(this.Kr,0);this.Si&&
c.uniform1i(this.Si,1);this.ng&&c.uniform2f(this.ng,0,0);this.mg&&c.uniform2f(this.mg,1,1);this.Ri&&c.uniform1f(this.Ri,1);this.Qi&&c.uniform1f(this.Qi,0);this.Vi&&c.uniform2f(this.Vi,0,0);this.Ti&&c.uniform2f(this.Ti,0,0);this.Ui&&c.uniform1f(this.Ui,0);this.Zf=!1}function d(c,b){return c[0]===b[0]&&c[1]===b[1]&&c[2]===b[2]&&c[3]===b[3]&&c[4]===b[4]&&c[5]===b[5]&&c[6]===b[6]&&c[7]===b[7]&&c[8]===b[8]&&c[9]===b[9]&&c[10]===b[10]&&c[11]===b[11]&&c[12]===b[12]&&c[13]===b[13]&&c[14]===b[14]&&c[15]===
b[15]}function f(c,b){this.type=c;this.F=b;this.G=b.G;this.md=this.ic=this.xs=0;this.ja=this.xd=null;this.bt=[]}var m=lc();h.prototype.kr=function(){var c=this.G,b;this.Er=1;this.hg=this.tf=null;this.gk=1;c.clearColor(0,0,0,0);c.clear(c.COLOR_BUFFER_BIT);c.enable(c.BLEND);c.blendFunc(c.ONE,c.ONE_MINUS_SRC_ALPHA);c.disable(c.CULL_FACE);c.disable(c.STENCIL_TEST);c.disable(c.DITHER);this.Qa?(c.enable(c.DEPTH_TEST),c.depthFunc(c.LEQUAL)):c.disable(c.DEPTH_TEST);this.Fr=c.ONE;this.Dr=c.ONE_MINUS_SRC_ALPHA;
this.tm=new Float32Array(8E3*(this.Qa?3:2));this.gm=new Float32Array(16E3);this.Ko=new Float32Array(32E3);this.Jo=c.createBuffer();c.bindBuffer(c.ARRAY_BUFFER,this.Jo);c.bufferData(c.ARRAY_BUFFER,this.Ko.byteLength,c.DYNAMIC_DRAW);this.Ej=Array(4);this.xj=Array(4);for(b=0;4>b;b++)this.Ej[b]=c.createBuffer(),c.bindBuffer(c.ARRAY_BUFFER,this.Ej[b]),c.bufferData(c.ARRAY_BUFFER,this.tm.byteLength,c.DYNAMIC_DRAW),this.xj[b]=c.createBuffer(),c.bindBuffer(c.ARRAY_BUFFER,this.xj[b]),c.bufferData(c.ARRAY_BUFFER,
this.gm.byteLength,c.DYNAMIC_DRAW);this.ve=0;this.qy=c.createBuffer();c.bindBuffer(c.ELEMENT_ARRAY_BUFFER,this.qy);for(var e=new Uint16Array(12E3),a=b=0;12E3>b;)e[b++]=a,e[b++]=a+1,e[b++]=a+2,e[b++]=a,e[b++]=a+2,e[b++]=a+3,a+=4;c.bufferData(c.ELEMENT_ARRAY_BUFFER,e,c.STATIC_DRAW);this.Bh=this.Oh=this.Ue=0;this.cb=[];b=this.Qa?"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.di({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}"},b,"<default>");this.cb.push(e);e=this.di({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.cb.push(e);e=this.di({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},b,"<earlyz>");this.cb.push(e);e=this.di({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"},
b,"<fill>");this.cb.push(e);for(var k in pc)pc.hasOwnProperty(k)&&this.cb.push(this.di(pc[k],b,k));c.activeTexture(c.TEXTURE0);c.bindTexture(c.TEXTURE_2D,null);this.re=[];this.Rd=0;this.cc=this.Rb=!1;this.Fq=this.Ki=-1;this.Ng=null;this.ln=c.createFramebuffer();this.kk=this.Kl=null;this.tq=!1;this.Qa&&(this.kk=c.createRenderbuffer());this.Hf=kc([0,0,0]);c=c.getParameter(c.ALIASED_POINT_SIZE_RANGE);this.Ny=c[0];this.qo=c[1];2048<this.qo&&(this.qo=2048);this.Gc(0)};g.prototype.xp=function(c){d(this.Sr,
c)||(mc(c,this.Sr),this.G.uniformMatrix4fv(this.cl,!1,c))};h.prototype.di=function(c,b,e){var a=this.G,k=a.createShader(a.FRAGMENT_SHADER);a.shaderSource(k,c.src);a.compileShader(k);if(!a.getShaderParameter(k,a.COMPILE_STATUS))return a.deleteShader(k),null;var d=a.createShader(a.VERTEX_SHADER);a.shaderSource(d,b);a.compileShader(d);if(!a.getShaderParameter(d,a.COMPILE_STATUS))return a.deleteShader(k),a.deleteShader(d),null;b=a.createProgram();a.attachShader(b,k);a.attachShader(b,d);a.linkProgram(b);
if(!a.getProgramParameter(b,a.LINK_STATUS))return a.deleteShader(k),a.deleteShader(d),a.deleteProgram(b),null;a.useProgram(b);a.deleteShader(k);a.deleteShader(d);e=new g(a,b,e);e.jn=c.jn||0;e.kn=c.kn||0;e.Eq=!!c.Eq;e.Gd=!!c.Gd;e.rq=!!c.rq;e.ka=c.ka||[];c=0;for(k=e.ka.length;c<k;c++)e.ka[c][1]=a.getUniformLocation(b,e.ka[c][0]),e.bo.push(0),a.uniform1f(e.ka[c][1],0);return e};h.prototype.An=function(c){var b,e;b=0;for(e=this.cb.length;b<e;b++)if(this.cb[b].name===c)return b;return-1};h.prototype.Ks=
function(c,b,e){var a=this.bd,k=this.gl,d=[0,0,0,0,0,0,0,0];d[0]=a[0]*c+a[4]*b+a[12];d[1]=a[1]*c+a[5]*b+a[13];d[2]=a[2]*c+a[6]*b+a[14];d[3]=a[3]*c+a[7]*b+a[15];d[4]=k[0]*d[0]+k[4]*d[1]+k[8]*d[2]+k[12]*d[3];d[5]=k[1]*d[0]+k[5]*d[1]+k[9]*d[2]+k[13]*d[3];d[6]=k[2]*d[0]+k[6]*d[1]+k[10]*d[2]+k[14]*d[3];d[7]=-d[2];0!==d[7]&&(d[7]=1/d[7],d[4]*=d[7],d[5]*=d[7],d[6]*=d[7],e[0]=(.5*d[4]+.5)*this.width,e[1]=(.5*d[5]+.5)*this.height)};h.prototype.yg=function(c,b,e){if(this.width!==c||this.height!==b||e){this.ze();
e=this.G;this.width=c;this.height=b;e.viewport(0,0,c,b);oc(this.Rm,this.Lr,this.Bt,this.bd);if(this.Qa){var a=-c/2;c=c/2;var k=b/2;b=-b/2;var d=this.xm,u=this.Gp,f=this.gl;f||(f=lc());var m=c-a,g=b-k,l=u-d;f[0]=2/m;f[1]=0;f[2]=0;f[3]=0;f[4]=0;f[5]=2/g;f[6]=0;f[7]=0;f[8]=0;f[9]=0;f[10]=-2/l;f[11]=0;f[12]=-(a+c)/m;f[13]=-(b+k)/g;f[14]=-(u+d)/l;f[15]=1;this.Gj[0]=1;this.Gj[1]=1}else b=c/b,a=this.xm,c=this.Gp,f=this.gl,u=a*Math.tan(45*Math.PI/360),b*=u,k=-b,d=-u,f||(f=lc()),m=b-k,g=u-d,l=c-a,f[0]=2*a/
m,f[1]=0,f[2]=0,f[3]=0,f[4]=0,f[5]=2*a/g,f[6]=0,f[7]=0,f[8]=(b+k)/m,f[9]=(u+d)/g,f[10]=-(c+a)/l,f[11]=-1,f[12]=0,f[13]=0,f[14]=-(c*a*2)/l,f[15]=0,a=[0,0],c=[0,0],this.Ks(0,0,a),this.Ks(1,1,c),this.Gj[0]=1/(c[0]-a[0]),this.Gj[1]=-1/(c[1]-a[1]);a=0;for(c=this.cb.length;a<c;a++)k=this.cb[a],k.Zf=!1,k.Jr&&(e.useProgram(k.qj),e.uniformMatrix4fv(k.Jr,!1,this.gl));e.useProgram(this.cb[this.Ki].qj);e.bindTexture(e.TEXTURE_2D,null);e.activeTexture(e.TEXTURE1);e.bindTexture(e.TEXTURE_2D,null);e.activeTexture(e.TEXTURE0);
this.hg=this.tf=null;this.kk&&(e.bindFramebuffer(e.FRAMEBUFFER,this.ln),e.bindRenderbuffer(e.RENDERBUFFER,this.kk),e.renderbufferStorage(e.RENDERBUFFER,e.DEPTH_COMPONENT16,this.width,this.height),this.tq||(e.framebufferRenderbuffer(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.RENDERBUFFER,this.kk),this.tq=!0),e.bindRenderbuffer(e.RENDERBUFFER,null),e.bindFramebuffer(e.FRAMEBUFFER,null),this.Kl=null)}};h.prototype.td=function(){oc(this.Rm,this.Lr,this.Bt,this.bd);nc(this.bd,this.Gj)};h.prototype.translate=function(c,
b){if(0!==c||0!==b){this.Hf[0]=c;this.Hf[1]=b;this.Hf[2]=0;var e=this.bd,a=this.Hf,k=a[0],d=a[1],a=a[2];e[12]=e[0]*k+e[4]*d+e[8]*a+e[12];e[13]=e[1]*k+e[5]*d+e[9]*a+e[13];e[14]=e[2]*k+e[6]*d+e[10]*a+e[14];e[15]=e[3]*k+e[7]*d+e[11]*a+e[15]}};h.prototype.scale=function(c,b){if(1!==c||1!==b)this.Hf[0]=c,this.Hf[1]=b,this.Hf[2]=1,nc(this.bd,this.Hf)};h.prototype.Ml=function(c){if(0!==c){var b=this.bd,e,a=Math.sin(c);c=Math.cos(c);var k=b[0],d=b[1],f=b[2],m=b[3],g=b[4],h=b[5],l=b[6],t=b[7];e?b!==e&&(e[8]=
b[8],e[9]=b[9],e[10]=b[10],e[11]=b[11],e[12]=b[12],e[13]=b[13],e[14]=b[14],e[15]=b[15]):e=b;e[0]=k*c+g*a;e[1]=d*c+h*a;e[2]=f*c+l*a;e[3]=m*c+t*a;e[4]=k*-a+g*c;e[5]=d*-a+h*c;e[6]=f*-a+l*c;e[7]=m*-a+t*c}};h.prototype.ed=function(){if(!d(this.co,this.bd)){var c=this.Cc();c.type=5;c.ja?mc(this.bd,c.ja):c.ja=lc(this.bd);mc(this.bd,this.co);this.cc=this.Rb=!1}};h.prototype.Ql=function(c){this.Qa&&(32760<c&&(c=32760),this.$m=this.Rm[2]-this.xm-c*this.fA)};f.prototype.Cw=function(){var c=this.G,b=this.F;0!==
this.ic?(c.depthMask(!0),c.colorMask(!1,!1,!1,!1),c.disable(c.BLEND),c.bindFramebuffer(c.FRAMEBUFFER,b.ln),c.framebufferTexture2D(c.FRAMEBUFFER,c.COLOR_ATTACHMENT0,c.TEXTURE_2D,null,0),c.clear(c.DEPTH_BUFFER_BIT),c.bindFramebuffer(c.FRAMEBUFFER,null),b.Ok=!0):(c.depthMask(!1),c.colorMask(!0,!0,!0,!0),c.enable(c.BLEND),b.Ok=!1)};f.prototype.Gw=function(){this.G.bindTexture(this.G.TEXTURE_2D,this.xd)};f.prototype.Hw=function(){var c=this.G;c.activeTexture(c.TEXTURE1);c.bindTexture(c.TEXTURE_2D,this.xd);
c.activeTexture(c.TEXTURE0)};f.prototype.Dw=function(){var c=this.xs,b=this.F;b.gk=c;b=b.Ng;b.oh&&b.fl!==c&&(b.fl=c,this.G.uniform1f(b.oh,c))};f.prototype.xw=function(){this.G.drawElements(this.G.TRIANGLES,this.md,this.G.UNSIGNED_SHORT,this.ic)};f.prototype.zw=function(){this.G.blendFunc(this.ic,this.md)};f.prototype.Iw=function(){var c,b,e,a=this.F.cb,k=this.F.Fq;c=0;for(b=a.length;c<b;c++)e=a[c],c===k&&e.cl?(e.xp(this.ja),e.Zf=!0):e.Zf=!1;mc(this.ja,this.F.Zm)};f.prototype.yw=function(){var c=this.G,
b=this.F;this.xd?(b.hg===this.xd&&(c.activeTexture(c.TEXTURE1),c.bindTexture(c.TEXTURE_2D,null),b.hg=null,c.activeTexture(c.TEXTURE0)),c.bindFramebuffer(c.FRAMEBUFFER,b.ln),b.Ok||c.framebufferTexture2D(c.FRAMEBUFFER,c.COLOR_ATTACHMENT0,c.TEXTURE_2D,this.xd,0)):(b.Qa||c.framebufferTexture2D(c.FRAMEBUFFER,c.COLOR_ATTACHMENT0,c.TEXTURE_2D,null,0),c.bindFramebuffer(c.FRAMEBUFFER,null))};f.prototype.vw=function(){var c=this.G,b=this.ic;0===b?(c.clearColor(this.ja[0],this.ja[1],this.ja[2],this.ja[3]),c.clear(c.COLOR_BUFFER_BIT)):
1===b?(c.enable(c.SCISSOR_TEST),c.scissor(this.ja[0],this.ja[1],this.ja[2],this.ja[3]),c.clearColor(0,0,0,0),c.clear(c.COLOR_BUFFER_BIT),c.disable(c.SCISSOR_TEST)):c.clear(c.DEPTH_BUFFER_BIT)};f.prototype.Bw=function(){var c=this.G;0!==this.ic?c.enable(c.DEPTH_TEST):c.disable(c.DEPTH_TEST)};f.prototype.ww=function(){var c=this.G,b=this.F;b.Qa&&c.disable(c.DEPTH_TEST);var e=b.cb[1];c.useProgram(e.qj);!e.Zf&&e.cl&&(e.xp(b.Zm),e.Zf=!0);c.enableVertexAttribArray(e.qd);c.bindBuffer(c.ARRAY_BUFFER,b.Jo);
c.vertexAttribPointer(e.qd,4,c.FLOAT,!1,0,0);c.drawArrays(c.POINTS,this.ic/4,this.md);e=b.Ng;c.useProgram(e.qj);0<=e.qd&&(c.enableVertexAttribArray(e.qd),c.bindBuffer(c.ARRAY_BUFFER,b.Ej[b.ve]),c.vertexAttribPointer(e.qd,b.Qa?3:2,c.FLOAT,!1,0,0));0<=e.xf&&(c.enableVertexAttribArray(e.xf),c.bindBuffer(c.ARRAY_BUFFER,b.xj[b.ve]),c.vertexAttribPointer(e.xf,2,c.FLOAT,!1,0,0));b.Qa&&c.enable(c.DEPTH_TEST)};f.prototype.Ew=function(){var c=this.G,b=this.F,e=b.cb[this.ic];b.Fq=this.ic;b.Ng=e;c.useProgram(e.qj);
!e.Zf&&e.cl&&(e.xp(b.Zm),e.Zf=!0);e.oh&&e.fl!==b.gk&&(e.fl=b.gk,c.uniform1f(e.oh,b.gk));0<=e.qd&&(c.enableVertexAttribArray(e.qd),c.bindBuffer(c.ARRAY_BUFFER,b.Ej[b.ve]),c.vertexAttribPointer(e.qd,b.Qa?3:2,c.FLOAT,!1,0,0));0<=e.xf&&(c.enableVertexAttribArray(e.xf),c.bindBuffer(c.ARRAY_BUFFER,b.xj[b.ve]),c.vertexAttribPointer(e.xf,2,c.FLOAT,!1,0,0))};f.prototype.Aw=function(){var c=this.ja;this.G.uniform4f(this.F.Ng.ko,c[0],c[1],c[2],c[3])};f.prototype.Fw=function(){var c,b,e=this.F.Ng,a=this.G;c=
this.ja;e.Si&&this.F.hg!==this.xd&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,this.xd),this.F.hg=this.xd,a.activeTexture(a.TEXTURE0));var k=c[0];e.no&&k!==e.Ur&&(e.Ur=k,a.uniform1f(e.no,k));k=c[1];e.lo&&k!==e.Tr&&(e.Tr=k,a.uniform1f(e.lo,k));k=c[2];b=c[3];!e.ng||k===e.Or&&b===e.Pr||(e.Or=k,e.Pr=b,a.uniform2f(e.ng,k,b));k=c[4];b=c[5];!e.mg||k===e.Mr&&b===e.Nr||(e.Mr=k,e.Nr=b,a.uniform2f(e.mg,k,b));k=c[6];e.Ri&&k!==e.Rr&&(e.Rr=k,a.uniform1f(e.Ri,k));k=c[7];e.Qi&&k!==e.Qr&&(e.Qr=k,a.uniform1f(e.Qi,
k));k=c[8];b=c[9];!e.Vi||k===e.Yr&&b===e.Zr||(e.Yr=k,e.Zr=b,a.uniform2f(e.Vi,k,b));k=c[10];b=c[11];!e.Ti||k===e.Vr&&b===e.Wr||(e.Vr=k,e.Wr=b,a.uniform2f(e.Ti,k,b));k=c[12];e.Ui&&k!==e.Xr&&(e.Xr=k,a.uniform1f(e.Ui,k));if(e.ka.length)for(c=0,b=e.ka.length;c<b;c++)k=this.bt[c],k!==e.bo[c]&&(e.bo[c]=k,a.uniform1f(e.ka[c][1],k))};h.prototype.Cc=function(){this.Rd===this.re.length&&this.re.push(new f(0,this));return this.re[this.Rd++]};h.prototype.ze=function(){if(0!==this.Rd&&!this.G.isContextLost()){var c=
this.G;0<this.Bh&&(c.bindBuffer(c.ARRAY_BUFFER,this.Jo),c.bufferSubData(c.ARRAY_BUFFER,0,this.Ko.subarray(0,this.Bh)),b&&0<=b.qd&&"<point>"===b.name&&c.vertexAttribPointer(b.qd,4,c.FLOAT,!1,0,0));if(0<this.Ue){var b=this.Ng;c.bindBuffer(c.ARRAY_BUFFER,this.Ej[this.ve]);c.bufferSubData(c.ARRAY_BUFFER,0,this.tm.subarray(0,this.Ue));b&&0<=b.qd&&"<point>"!==b.name&&c.vertexAttribPointer(b.qd,this.Qa?3:2,c.FLOAT,!1,0,0);c.bindBuffer(c.ARRAY_BUFFER,this.xj[this.ve]);c.bufferSubData(c.ARRAY_BUFFER,0,this.gm.subarray(0,
this.Oh));b&&0<=b.xf&&"<point>"!==b.name&&c.vertexAttribPointer(b.xf,2,c.FLOAT,!1,0,0)}for(var e,c=0,b=this.Rd;c<b;c++)switch(e=this.re[c],e.type){case 1:e.xw();break;case 2:e.Gw();break;case 3:e.Dw();break;case 4:e.zw();break;case 5:e.Iw();break;case 6:e.yw();break;case 7:e.vw();break;case 8:e.ww();break;case 9:e.Ew();break;case 10:e.Fw();break;case 11:e.Hw();break;case 12:e.Aw();break;case 13:e.Bw();break;case 14:e.Cw()}this.Bh=this.Oh=this.Ue=this.Rd=0;this.Ok=this.cc=this.Rb=!1;this.ve++;4<=this.ve&&
(this.ve=0)}};h.prototype.xg=function(c){if(c!==this.Er&&!this.Bi){var b=this.Cc();b.type=3;this.Er=b.xs=c;this.cc=this.Rb=!1}};h.prototype.Rc=function(c){if(c!==this.tf){var b=this.Cc();b.type=2;this.tf=b.xd=c;this.cc=this.Rb=!1}};h.prototype.Bf=function(c,b){if((c!==this.Fr||b!==this.Dr)&&!this.Bi){var e=this.Cc();e.type=4;e.ic=c;e.md=b;this.Fr=c;this.Dr=b;this.cc=this.Rb=!1}};h.prototype.Rs=function(){this.Bf(this.G.ONE,this.G.ONE_MINUS_SRC_ALPHA)};h.prototype.Ch=function(c,b,e,a,k,d,f,m){15992<=
this.Ue&&this.ze();var g=this.Ue,h=this.Oh,l=this.tm,t=this.gm,n=this.$m;if(this.Rb)this.re[this.Rd-1].md+=6;else{var q=this.Cc();q.type=1;q.ic=this.Qa?g:g/2*3;q.md=6;this.Rb=!0;this.cc=!1}this.Qa?(l[g++]=c,l[g++]=b,l[g++]=n,l[g++]=e,l[g++]=a,l[g++]=n,l[g++]=k,l[g++]=d,l[g++]=n,l[g++]=f,l[g++]=m,l[g++]=n):(l[g++]=c,l[g++]=b,l[g++]=e,l[g++]=a,l[g++]=k,l[g++]=d,l[g++]=f,l[g++]=m);t[h++]=0;t[h++]=0;t[h++]=1;t[h++]=0;t[h++]=1;t[h++]=1;t[h++]=0;t[h++]=1;this.Ue=g;this.Oh=h};h.prototype.Af=function(c,b,
e,a,k,d,f,g,m){15992<=this.Ue&&this.ze();var h=this.Ue,l=this.Oh,t=this.tm,n=this.gm,q=this.$m;if(this.Rb)this.re[this.Rd-1].md+=6;else{var w=this.Cc();w.type=1;w.ic=this.Qa?h:h/2*3;w.md=6;this.Rb=!0;this.cc=!1}var w=m.left,A=m.top,F=m.right;m=m.bottom;this.Qa?(t[h++]=c,t[h++]=b,t[h++]=q,t[h++]=e,t[h++]=a,t[h++]=q,t[h++]=k,t[h++]=d,t[h++]=q,t[h++]=f,t[h++]=g,t[h++]=q):(t[h++]=c,t[h++]=b,t[h++]=e,t[h++]=a,t[h++]=k,t[h++]=d,t[h++]=f,t[h++]=g);n[l++]=w;n[l++]=A;n[l++]=F;n[l++]=A;n[l++]=F;n[l++]=m;n[l++]=
w;n[l++]=m;this.Ue=h;this.Oh=l};h.prototype.$y=function(c,b,e,a){7996<=this.Bh&&this.ze();var k=this.Bh,d=this.Ko;if(this.cc)this.re[this.Rd-1].md++;else{var f=this.Cc();f.type=8;f.ic=k;f.md=1;this.cc=!0;this.Rb=!1}d[k++]=c;d[k++]=b;d[k++]=e;d[k++]=a;this.Bh=k};h.prototype.Gc=function(c){if(this.Ki!==c){if(!this.cb[c]){if(0===this.Ki)return;c=0}var b=this.Cc();b.type=9;this.Ki=b.ic=c;this.cc=this.Rb=!1}};h.prototype.fj=function(c){c=this.cb[c];return!(!c.ng&&!c.mg)};h.prototype.Oo=function(c){c=this.cb[c];
return!!(c.ng||c.mg||c.Eq)};h.prototype.No=function(c){return this.cb[c].Gd};h.prototype.iz=function(c){c=this.cb[c];return 0!==c.jn||0!==c.kn};h.prototype.Qx=function(c){return this.cb[c].jn};h.prototype.Rx=function(c){return this.cb[c].kn};h.prototype.Sx=function(c,b){return this.cb[c].ka[b][2]};h.prototype.Gl=function(c){return this.cb[c].rq};h.prototype.Ih=function(c,b,e,a,k,d,f,m,g,h,l,t,n,q,w){var A=this.cb[this.Ki],F,x;if(A.ky||w.length){F=this.Cc();F.type=10;F.ja?mc(this.bd,F.ja):F.ja=lc();
x=F.ja;x[0]=b;x[1]=e;x[2]=a;x[3]=k;x[4]=d;x[5]=f;x[6]=m;x[7]=g;x[8]=h;x[9]=l;x[10]=t;x[11]=n;x[12]=q;A.Si?F.xd=c:F.xd=null;if(w.length)for(e=F.bt,e.length=w.length,c=0,b=w.length;c<b;c++)e[c]=w[c];this.cc=this.Rb=!1}};h.prototype.clear=function(c,b,e,a){var k=this.Cc();k.type=7;k.ic=0;k.ja||(k.ja=lc());k.ja[0]=c;k.ja[1]=b;k.ja[2]=e;k.ja[3]=a;this.cc=this.Rb=!1};h.prototype.clearRect=function(c,b,e,a){if(!(0>e||0>a)){var k=this.Cc();k.type=7;k.ic=1;k.ja||(k.ja=lc());k.ja[0]=c;k.ja[1]=b;k.ja[2]=e;k.ja[3]=
a;this.cc=this.Rb=!1}};h.prototype.Vs=function(c){if(this.Qa&&(c=!!c,this.Bi!==c)){var b=this.Cc();b.type=14;b.ic=c?1:0;this.cc=this.Rb=!1;this.Bi=c;this.Kl=null;this.Bi?this.Gc(2):this.Gc(0)}};h.prototype.Ts=function(c){if(this.Qa){var b=this.Cc();b.type=13;b.ic=c?1:0;this.cc=this.Rb=!1}};h.prototype.Tq=function(){mc(this.co,m);this.td();this.ed();var c=this.width/2,b=this.height/2;this.Ch(-c,b,c,b,c,-b,-c,-b);mc(m,this.bd);this.ed()};h.prototype.Ss=function(c,b,e){this.Gc(3);var a=this.Cc();a.type=
12;a.ja||(a.ja=lc());a.ja[0]=c;a.ja[1]=b;a.ja[2]=e;a.ja[3]=1;this.cc=this.Rb=!1};h.prototype.Lz=function(){this.Gc(0)};h.prototype.vz=function(){this.Gc(2)};h.prototype.hz=function(){this.ze();this.G.flush()};var q=[],n={};h.prototype.kw=function(){y(q);n={}};h.prototype.al=function(c,b,e,a){b=!!b;e=!!e;var k=c.src+","+b+","+e+(b?",undefined":""),d=null;if("undefined"!==typeof c.src&&n.hasOwnProperty(k))return d=n[k],d.Xj++,d;this.ze();var f=this.G,m=la(c.width)&&la(c.height),d=f.createTexture();
f.bindTexture(f.TEXTURE_2D,d);f.pixelStorei(f.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var g=f.RGBA,h=f.RGBA,l=f.UNSIGNED_BYTE;if(a&&!this.Fe)switch(a){case 1:h=g=f.RGB;break;case 2:l=f.UNSIGNED_SHORT_4_4_4_4;break;case 3:l=f.UNSIGNED_SHORT_5_5_5_1;break;case 4:h=g=f.RGB,l=f.UNSIGNED_SHORT_5_6_5}if(!m&&b){a=document.createElement("canvas");a.width=ma(c.width);a.height=ma(c.height);var t=a.getContext("2d");t.webkitImageSmoothingEnabled=e;t.mozImageSmoothingEnabled=e;t.msImageSmoothingEnabled=e;t.imageSmoothingEnabled=
e;t.drawImage(c,0,0,c.width,c.height,0,0,a.width,a.height);f.texImage2D(f.TEXTURE_2D,0,g,h,l,a)}else f.texImage2D(f.TEXTURE_2D,0,g,h,l,c);b?(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));e?(f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MAG_FILTER,f.LINEAR),m&&this.Kq?(f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,
f.LINEAR_MIPMAP_LINEAR),f.generateMipmap(f.TEXTURE_2D)):f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,f.LINEAR)):(f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MAG_FILTER,f.NEAREST),f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,f.NEAREST));f.bindTexture(f.TEXTURE_2D,null);this.tf=null;d.Of=c.width;d.Nf=c.height;d.Xj=1;d.yq=k;q.push(d);return n[k]=d};h.prototype.Vc=function(c,b,e,a){this.ze();var k=this.G;this.Fe&&(a=!1);var d=k.createTexture();k.bindTexture(k.TEXTURE_2D,d);k.texImage2D(k.TEXTURE_2D,
0,k.RGBA,c,b,0,k.RGBA,a?k.UNSIGNED_SHORT_4_4_4_4:k.UNSIGNED_BYTE,null);k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_S,k.CLAMP_TO_EDGE);k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_T,k.CLAMP_TO_EDGE);k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MAG_FILTER,e?k.LINEAR:k.NEAREST);k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MIN_FILTER,e?k.LINEAR:k.NEAREST);k.bindTexture(k.TEXTURE_2D,null);this.tf=null;d.Of=c;d.Nf=b;q.push(d);return d};h.prototype.dA=function(c,b,e){this.ze();var a=this.G;this.Fe&&(e=!1);a.bindTexture(a.TEXTURE_2D,
b);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,c)}catch(k){console&&console.error&&console.error("Error updating WebGL texture: ",k)}a.bindTexture(a.TEXTURE_2D,null);this.tf=null};h.prototype.deleteTexture=function(c){c&&("undefined"!==typeof c.Xj&&1<c.Xj?c.Xj--:(this.ze(),c===this.tf&&(this.G.bindTexture(this.G.TEXTURE_2D,null),this.tf=null),c===this.hg&&(this.G.activeTexture(this.G.TEXTURE1),this.G.bindTexture(this.G.TEXTURE_2D,
null),this.G.activeTexture(this.G.TEXTURE0),this.hg=null),Ha(q,c),"undefined"!==typeof c.yq&&delete n[c.yq],this.G.deleteTexture(c)))};h.prototype.ud=function(c){if(c!==this.Kl){var b=this.Cc();b.type=6;this.Kl=b.xd=c;this.cc=this.Rb=!1}};rb=h})();
(function(){function h(a){if(a&&(a.getContext||a.dc)&&!a.c2runtime){a.c2runtime=this;var b=this;this.Bc=(this.Ai=/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.ec=!!a.dc;this.pr="undefined"!==typeof window.AppMobi||
this.ec;this.Zc=!!window.c2cocoonjs;this.nd=!!window.c2ejecta;this.Zc&&(CocoonJS.App.onSuspended.addEventListener(function(){b.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){b.setSuspended(!1)}));this.nd&&(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.sb=this.ec||this.Zc||this.nd;this.Di=
/edge\//i.test(navigator.userAgent);this.Fe=(/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent))&&!this.Di;this.sr=/tizen/i.test(navigator.userAgent);this.Mk=/android/i.test(navigator.userAgent)&&!this.sr&&!this.Fe&&!this.Di;this.Ar=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&!this.Fe&&!this.Di;this.Ey=/ipad/i.test(navigator.userAgent);this.hh=this.Ar||this.Ey||this.nd;this.yi=(/chrome/i.test(navigator.userAgent)||
/chromium/i.test(navigator.userAgent))&&!this.Fe&&!this.Di;this.Rn=/amazonwebappplatform/i.test(navigator.userAgent);this.xy=/firefox/i.test(navigator.userAgent);this.Ay=/safari/i.test(navigator.userAgent)&&!this.yi&&!this.Fe&&!this.Di;this.By=/windows/i.test(navigator.userAgent);this.rf="undefined"!==typeof window.c2nodewebkit||"undefined"!==typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.tr=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);
this.Dy=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.ah=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.Yn=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.Xn=!!window.cr_windows10;this.Pk=this.tr||this.Dy||this.Yn||this.Xn;this.vy=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.Nk=this.Mk&&!this.yi&&!this.Ai&&!this.xy&&!this.Rn&&!this.sb;this.devicePixelRatio=
1;this.qf=this.Bc||this.Ai||this.pr||this.Zc||this.Mk||this.hh||this.ah||this.Yn||this.vy||this.sr||this.nd;this.qf||(this.qf=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));this.Gi=!!(this.hh&&this.Bc&&window.indexedDB);this.In=null;this.ny="";this.Gi&&(this.In=cordova&&cordova.plugins&&cordova.plugins.CorHttpd?cordova.plugins.CorHttpd:null);"undefined"===typeof cr_is_preview||this.rf||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&
!/nwjs/i.test(navigator.userAgent)||(this.rf=!0);this.canvas=a;this.Aq=document.getElementById("c2canvasdiv");this.F=this.G=null;this.Dn="(unavailable)";this.Qa=!1;this.Sf=0;this.La=null;this.qn="";this.uk=!1;this.os=this.qs=0;this.canvas.oncontextmenu=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.onselectstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.ec&&(window.c2runtime=this);this.rf&&(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.Nk&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=a.width;this.height=a.height;this.R=this.width;this.P=this.height;this.ek=this.width;this.fi=this.height;this.jh=window.innerWidth;this.ih=window.innerHeight;this.Dx=!1;this.da=!0;this.Fi=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.D=[];this.Za=
[];this.lh={};this.Ed=[];this.hn={};this.Ae=[];this.Th=[];this.mm=[];this.Wv=[];this.Xv=[];this.it=null;this.Qf={};this.Tn=this.pf=!1;this.$c=0;this.Sn=this.Vn=!1;this.Cd=[];this.Ci=!1;this.Ge=this.gc=this.Zk=this.Zo="";this.vj=this.et=!1;this.tk=[];this.Rf=this.kf=0;this.cs=30;this.Ym=this.Wi=0;this.Gf=1;this.tb=new cb;this.Ve=new cb;this.jl=this.zk=this.Vf=this.ke=this.jg=this.pn=this.Uk=0;this.te=null;this.mk=[];this.gn=[];this.ok=-1;this.oo=[[]];this.sp=this.dl=0;this.Hl(null);this.Xi=[];this.Yi=
-1;this.ki=this.js=this.aj=0;this.wj=[];this.pp=this.Qo=-1;this.gg=!0;this.nh=0;this.Ei=!1;this.Nz=0;this.Jg=null;this.Yd=this.fr=!1;this.ns=new ca;this.xo=new ca;this.yo=new ca;this.jj=[];this.Jd=new jb([]);this.lp=new jb([]);this.cf=[];this.Xg={};this.ff={};this.$e={};this.Sh={};this.uq={};this.Ir=this.Yk=this.ub=this.Cb=this.Hr=this.Xk=this.qa=null;this.Qh=this.Zn=!1;this.rn=[null,null];this.Wf=0;this.mn="";this.Je={};this.sj=this.vf=null;this.ht="";this.il=[];this.uz()}}function g(a,b){return 128>=
b?a[3]:256>=b?a[2]:512>=b?a[1]:a[0]}function d(){try{return!!window.indexedDB}catch(a){return!1}}function f(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function m(a,b,c,k){try{var e=indexedDB.open("_C2SaveStates");e.onupgradeneeded=f;e.onerror=k;e.onsuccess=function(e){e=e.target.result;e.onerror=k;e.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,data:b}).onsuccess=c}}catch(d){k(d)}}function q(a,b,c){try{var k=indexedDB.open("_C2SaveStates");k.onupgradeneeded=
f;k.onerror=c;k.onsuccess=function(k){k=k.target.result;k.onerror=c;var e=k.transaction(["saves"]).objectStore("saves").get(a);e.onsuccess=function(){e.result?b(e.result.data):b(null)}}}catch(e){c(e)}}function n(){ga("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 c(a){var b,c={};for(b in a)!a.hasOwnProperty(b)||a[b]instanceof ca||a[b]&&"undefined"!==
typeof a[b].mB||"spriteCreatedDestroyCallback"!==b&&(c[b]=a[b]);return c}var b=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;h.prototype.uz=function(){var a=this;if(this.Gi)this.In?this.In.startServer({port:0,localhost_only:!0},function(b){a.ny=b;a.Qq(function(b){a.mh(JSON.parse(b))},function(){alert("Error fetching data.js")})},function(a){alert("error starting local server: "+a)}):
this.Qq(function(b){a.mh(JSON.parse(b))},function(){alert("Error fetching data.js")});else{var b;this.ah?b=new ActiveXObject("Microsoft.XMLHTTP"):b=new XMLHttpRequest;var c="data.js";if(this.tr||this.ah||this.Yn||this.Xn)c="data.json";b.open("GET",c,!0);var k=!1;if(!this.sb&&"response"in b&&"responseType"in b)try{b.responseType="json",k="json"===b.responseType}catch(e){k=!1}if(!k&&"responseType"in b)try{b.responseType="text"}catch(d){}if("overrideMimeType"in b)try{b.overrideMimeType("application/json; charset=utf-8")}catch(f){}this.ah?
b.onreadystatechange=function(){4===b.readyState&&a.mh(JSON.parse(b.responseText))}:(b.onload=function(){if(k)a.mh(b.response);else if(a.nd){var c=b.responseText,c=c.substr(c.indexOf("{"));a.mh(JSON.parse(c))}else a.mh(JSON.parse(b.responseText))},b.onerror=function(a){ha("Error requesting "+c+":");ha(a)});b.send()}};h.prototype.ry=function(){var a=this,b,c,k,e,d,f,l,m,g;this.fg=(!this.sb||this.nd||this.Bc)&&this.$z&&!this.Nk;0===this.zc&&this.hh&&(this.fg=!1);this.devicePixelRatio=this.fg?window.devicePixelRatio||
window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.Xb();c=!(!this.Dx&&(!this.Nm||this.rf||this.Pk||this.ah||this.Ai||this.Bc||this.Rn));0<this.zc&&this.setSize(window.innerWidth,window.innerHeight,!0);try{this.Qw&&(this.Zc||this.nd||!this.sb)&&(b={alpha:c,depth:!1,antialias:!1,failIfMajorPerformanceCaveat:!0},this.G=this.canvas.getContext("webgl",b)||this.canvas.getContext("experimental-webgl",b))}catch(h){}if(this.G){if(b=this.G.getExtension("WEBGL_debug_renderer_info"))this.Dn=
this.G.getParameter(b.UNMASKED_RENDERER_WEBGL)+" ["+this.G.getParameter(b.UNMASKED_VENDOR_WEBGL)+"]";this.Qa&&(this.Dn+=" [front-to-back enabled]");this.sb||(this.Sb=document.createElement("canvas"),jQuery(this.Sb).appendTo(this.canvas.parentNode),this.Sb.oncontextmenu=function(){return!1},this.Sb.onselectstart=function(){return!1},this.Sb.width=Math.round(this.ek*this.devicePixelRatio),this.Sb.height=Math.round(this.fi*this.devicePixelRatio),jQuery(this.Sb).css({width:this.ek+"px",height:this.fi+
"px"}),this.Js(),this.Go=this.Sb.getContext("2d"));this.F=new rb(this.G,this.qf,this.Qa);this.F.yg(this.canvas.width,this.canvas.height);this.F.Kq=0!==this.Jw;this.La=null;this.canvas.addEventListener("webglcontextlost",function(b){b.preventDefault();a.Ry();ga("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){a.F.kr();a.F.yg(a.F.width,a.F.height,!0);a.Cb=null;a.ub=null;a.rn[0]=null;a.rn[1]=null;a.Sy();a.da=!0;ga("[Construct 2] WebGL context restored");
window.cr_setSuspended(!1)},!1);b=0;for(c=this.D.length;b<c;b++)for(d=this.D[b],k=0,e=d.Z.length;k<e;k++)l=d.Z[k],l.xb=this.F.An(l.id),l.Gd=this.F.No(l.xb),this.Qh=this.Qh||this.F.fj(l.xb);b=0;for(c=this.Ed.length;b<c;b++){m=this.Ed[b];k=0;for(e=m.Z.length;k<e;k++)l=m.Z[k],l.xb=this.F.An(l.id),l.Gd=this.F.No(l.xb);m.Ld();k=0;for(e=m.ca.length;k<e;k++){g=m.ca[k];d=0;for(f=g.Z.length;d<f;d++)l=g.Z[d],l.xb=this.F.An(l.id),l.Gd=this.F.No(l.xb),this.Qh=this.Qh||this.F.fj(l.xb);g.Ld()}}}else{if(0<this.zc&&
this.ec){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.La=AppMobi.canvas.getContext("2d");try{this.La.samplingMode=this.la?"smooth":"sharp",this.La.globalScale=1,this.La.HTML5CompatibilityMode=!0,this.La.imageSmoothingEnabled=this.la}catch(u){}0!==this.width&&0!==this.height&&(this.La.width=this.width,this.La.height=this.height)}this.La||(this.Zc?(b={antialias:!!this.la,alpha:c},this.La=this.canvas.getContext("2d",b)):(b={alpha:c},this.La=
this.canvas.getContext("2d",b)),this.La.webkitImageSmoothingEnabled=this.la,this.La.mozImageSmoothingEnabled=this.la,this.La.msImageSmoothingEnabled=this.la,this.La.imageSmoothingEnabled=this.la);this.Go=this.Sb=null}this.qt=function(b){a.Fa(!1,b)};window==window.top||this.sb||this.Pk||this.ah||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.Zc&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),
-1<window.location.search.indexOf("continuous")&&(ga("Reloading for continuous preview"),this.Zk="__c2_continuouspreview",this.vj=!0),this.Yy&&!this.qf&&(jQuery(window).focus(function(){a.setSuspended(!1)}),jQuery(window).blur(function(){a.setSuspended(!0)})));window.addEventListener("blur",function(){});this.sb||(b=function(a){if(qb(a)&&document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(b){}},
window.navigator.pointerEnabled?document.addEventListener("pointerdown",b):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",b):document.addEventListener("touchstart",b),document.addEventListener("mousedown",b));0===this.zc&&this.fg&&1<this.devicePixelRatio&&this.setSize(this.Eb,this.Db,!0);this.yt();this.hy();this.go();this.O={}};h.prototype.setSize=function(a,b,c){var k=0,e=0,d=0,f=0,f=0;if(this.jh!==a||this.ih!==b||c){this.jh=a;this.ih=b;var l=this.zc,m=(document.mozFullScreen||
document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.Ei)&&!this.Bc;if(m||0!==this.zc||c)m&&0<this.Wf&&(l=this.Wf),c=this.devicePixelRatio,4<=l?(d=this.Eb/this.Db,a/b>d?(d*=b,5===l?(f=d*c/this.Eb,1<f?f=Math.floor(f):1>f&&(f=1/Math.ceil(1/f)),d=this.Eb*f/c,f=this.Db*f/c,k=(a-d)/2,e=(b-f)/2,a=d,b=f):(k=(a-d)/2,a=d)):(f=a/d,5===l?(f=f*c/this.Db,1<f?f=Math.floor(f):1>f&&(f=1/Math.ceil(1/f)),d=this.Eb*f/c,f=this.Db*f/c,k=(a-d)/2,e=(b-f)/2,a=d):e=(b-f)/2,b=f),m&&!this.rf&&
(e=k=0)):this.rf&&this.Ei&&0===this.Uq&&(k=Math.floor((a-this.Eb)/2),e=Math.floor((b-this.Db)/2),a=this.Eb,b=this.Db),2>l&&(this.ai=c),this.ek=Math.round(a),this.fi=Math.round(b),this.width=Math.round(a*c),this.height=Math.round(b*c),this.da=!0,this.Jt?(this.R=this.width,this.P=this.height,this.Wc=!0):this.width<this.Eb&&this.height<this.Db||1===l?(this.R=this.width,this.P=this.height,this.Wc=!0):(this.R=this.Eb,this.P=this.Db,this.Wc=!1,2===l?(d=this.Eb/this.Db,l=this.jh/this.ih,l<d?this.R=this.P*
l:l>d&&(this.P=this.R/l)):3===l&&(d=this.Eb/this.Db,l=this.jh/this.ih,l>d?this.R=this.P*l:l<d&&(this.P=this.R/l))),this.Aq&&!this.sb&&(jQuery(this.Aq).css({width:Math.round(a)+"px",height:Math.round(b)+"px","margin-left":Math.floor(k)+"px","margin-top":Math.floor(e)+"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.nd?(this.canvas.style.left=
Math.floor(k)+"px",this.canvas.style.top=Math.floor(e)+"px",this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(b)+"px"):this.fg&&!this.sb&&(this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(b)+"px")),this.Sb&&(this.Sb.width=Math.round(a*c),this.Sb.height=Math.round(b*c),this.Sb.style.width=this.ek+"px",this.Sb.style.height=this.fi+"px"),this.F&&this.F.yg(Math.round(a*c),Math.round(b*c)),this.ec&&this.La&&(this.La.width=Math.round(a),this.La.height=
Math.round(b)),this.La&&(this.La.webkitImageSmoothingEnabled=this.la,this.La.mozImageSmoothingEnabled=this.la,this.La.msImageSmoothingEnabled=this.la,this.La.imageSmoothingEnabled=this.la),this.yt(),this.Ar&&!this.Bc&&window.scrollTo(0,0)}};h.prototype.yt=function(){if(this.$v&&0!==this.Eo){var a="portrait";2===this.Eo&&(a="landscape");try{screen.orientation&&screen.orientation.lock?screen.orientation.lock(a):screen.lockOrientation?screen.lockOrientation(a):screen.webkitLockOrientation?screen.webkitLockOrientation(a):
screen.mozLockOrientation?screen.mozLockOrientation(a):screen.msLockOrientation&&screen.msLockOrientation(a)}catch(b){console&&console.warn&&console.warn("Failed to lock orientation: ",b)}}};h.prototype.Ry=function(){this.F.kw();this.Zn=!0;var a,b,c;a=0;for(b=this.D.length;a<b;a++)c=this.D[a],c.ml&&c.ml()};h.prototype.Sy=function(){this.Zn=!1;var a,b,c;a=0;for(b=this.D.length;a<b;a++)c=this.D[a],c.Bo&&c.Bo()};h.prototype.Js=function(){if(!this.sb){var a=(document.mozFullScreen||document.webkitIsFullScreen||
document.fullScreen||document.msFullscreenElement||this.Ei)&&!this.Bc?jQuery(this.canvas).offset():jQuery(this.canvas).position();a.position="absolute";jQuery(this.Sb).css(a)}};var e=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;h.prototype.setSuspended=function(a){var b;if(a&&!this.Fi)for(ga("[Construct 2] Suspending"),this.Fi=!0,-1!==this.Qo&&e&&e(this.Qo),-1!==this.pp&&clearTimeout(this.pp),
a=0,b=this.wj.length;a<b;a++)this.wj[a](!0);else if(!a&&this.Fi){ga("[Construct 2] Resuming");this.Fi=!1;this.Uk=Za();this.jg=Za();a=this.Wi=this.zk=0;for(b=this.wj.length;a<b;a++)this.wj[a](!1);this.Fa(!1)}};h.prototype.oq=function(a){this.wj.push(a)};h.prototype.Xe=function(a){return this.il[a]};h.prototype.mh=function(a){a&&a.project||ha("Project model unavailable");a=a.project;this.name=a[0];this.Sq=a[1];this.zc=a[12];this.Uq=a[12];this.Eb=a[10];this.Db=a[11];this.Es=this.Eb/2;this.Fs=this.Db/
2;this.sb&&!this.nd&&(4<=a[12]||0===a[12])&&(ga("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.Uq=this.zc=3);this.Bp=a[18];this.wf=a[19];if(0===this.wf){var b=new Image;b.crossOrigin="anonymous";this.Ws(b,"loading-logo.png");this.vf={el:b}}else if(4===this.wf){b=new Image;b.src="";var c=new Image;c.src="";var k=new Image;k.src="";var e=new Image;e.src="";var d=new Image;d.src="";var f=new Image;f.src="";var l=new Image;l.src=
"";var m=new Image;m.src="";var g=new Image;g.src="";var h=new Image;h.src="";var u=new Image;u.src="";var t=new Image;t.src="";this.vf={el:[b,c,k,e],ez:[d,f,l,m],eA:[g,h,u,t]}}this.aj=a[21];this.il=qc();this.je=new I(this);b=0;for(c=a[2].length;b<c;b++)l=a[2][b],k=this.Xe(l[0]),sb(l,k.prototype),m=new k(this),m.Vl=l[1],m.sf=l[2],m.ds=l[9],m.H&&m.H(),this.plugins.push(m);this.il=qc();b=0;for(c=a[3].length;b<c;b++){l=a[3][b];d=this.Xe(l[1]);m=null;k=0;for(e=this.plugins.length;k<e;k++)if(this.plugins[k]instanceof
d){m=this.plugins[k];break}g=new m.S(m);g.name=l[0];g.V=l[2];g.Qn=l[3].slice(0);g.bA=l[3].length;g.aw=l[4];g.Fx=l[5];g.ra=l[11];g.V?(g.qh=[],g.Be=this.ki++,g.Ua=null):(g.qh=null,g.Be=-1,g.Ua=[]);g.rk=null;g.Ug=null;g.Lq=null;g.fc=!1;g.Lc=null;l[6]?(g.mp=l[6][0],g.np=l[6][1],g.op=l[6][2]):(g.mp=null,g.np=0,g.op=0);l[7]?g.Kc=l[7]:g.Kc=null;g.index=b;g.k=[];g.ik=[];g.Re=[new tb(g)];g.Sd=0;g.jd=null;g.pw=0;g.Nh=!0;g.nm=ub;g.br=vb;g.Ox=wb;g.T=xb;g.hj=zb;g.ug=Ab;g.fe=Bb;g.Bk=Cb;g.sn=Db;g.vn=Eb;g.Tc=Fb;
g.wn=Gb;g.ak=new kb(this.Eb,this.Db);g.Qj=!0;g.Rj=!1;g.O={};g.toString=Hb;g.Za=[];k=0;for(e=l[8].length;k<e;k++){h=l[8][k];u=this.Xe(h[1]);t=null;d=0;for(f=this.Za.length;d<f;d++)if(this.Za[d]instanceof u){t=this.Za[d];break}t||(t=new u(this),t.vo=[],t.hl=new ca,t.H&&t.H(),this.Za.push(t),rc&&t instanceof rc&&(this.it=t));-1===t.vo.indexOf(g)&&t.vo.push(g);d=new t.S(t,g);d.name=h[0];d.ra=h[2];d.H();g.Za.push(d)}g.global=l[9];g.Un=l[10];g.Z=[];k=0;for(e=l[12].length;k<e;k++)g.Z.push({id:l[12][k][0],
name:l[12][k][1],xb:-1,Gd:!1,Ka:!0,index:k});g.JB=l[13];this.Bp&&!g.V&&!g.Un&&m.sf||g.H();g.name&&(this.types[g.name]=g);this.D.push(g);m.Vl&&(k=new m.N(g),k.uid=this.aj++,k.Ms=this.js++,k.ag=0,k.ri=Ib,k.toString=Jb,k.C=l[14],k.H(),g.k.push(k),this.Je[k.uid.toString()]=k)}b=0;for(c=a[4].length;b<c;b++)for(d=a[4][b],f=this.D[d[0]],k=1,e=d.length;k<e;k++)l=this.D[d[k]],l.Ua.push(f),f.qh.push(l);b=0;for(c=a[28].length;b<c;b++){d=a[28][b];f=[];k=0;for(e=d.length;k<e;k++)f.push(this.D[d[k]]);k=0;for(e=
f.length;k<e;k++)f[k].fc=!0,f[k].Lc=f}if(0<this.ki)for(b=0,c=this.D.length;b<c;b++)if(l=this.D[b],!l.V&&l.Ua.length){l.rk=Array(this.ki);l.Ug=Array(this.ki);l.Lq=Array(this.ki);g=[];k=t=u=h=0;for(e=l.Ua.length;k<e;k++)for(m=l.Ua[k],l.rk[m.Be]=h,h+=m.bA,l.Ug[m.Be]=u,u+=m.aw,l.Lq[m.Be]=t,t+=m.Fx,d=0,f=m.Z.length;d<f;d++)g.push(ya({},m.Z[d]));l.Z=g.concat(l.Z);k=0;for(e=l.Z.length;k<e;k++)l.Z[k].index=k}b=0;for(c=a[5].length;b<c;b++)l=a[5][b],k=new Kb(this,l),this.lh[k.name]=k,this.Ed.push(k);b=0;for(c=
a[6].length;b<c;b++)l=a[6][b],k=new Lb(this,l),this.hn[k.name]=k,this.Ae.push(k);b=0;for(c=this.Ae.length;b<c;b++)this.Ae[b].nb();b=0;for(c=this.Ae.length;b<c;b++)this.Ae[b].wp();b=0;for(c=this.mm.length;b<c;b++)this.mm[b].nb();y(this.mm);this.Zv=a[7];this.mn=a[8];this.Fd=a[9];this.ai=1;this.Qw=a[13];this.la=a[14];this.Nm=a[15];this.cA=a[16];this.$z=a[17];this.Eo=a[20];this.$v=0<this.Eo;this.Yy=a[22];this.Wc=this.Jt=a[23];this.Jw=a[24];this.fz=a[25];this.Qa=a[27]&&!this.Fe;this.Zl=Date.now();y(this.il);
this.ry()};var a=!1;h.prototype.It=function(b,c){b.cocoonLazyLoad=!0;b.onerror=function(c){a=b.xq=!0;console&&console.error&&console.error("Error loading image '"+b.src+"': ",c)};this.nd?b.src=c:b.src||("undefined"!==typeof XAPKReader?XAPKReader.get(c,function(a){b.src=a},function(k){a=b.xq=!0;console&&console.error&&console.error("Error extracting image '"+c+"' from expansion file: ",k)}):(b.crossOrigin="anonymous",this.Ws(b,c)));this.Th.push(b)};h.prototype.Cx=function(a){var b,c;b=0;for(c=this.Th.length;b<
c;b++)if(this.Th[b].lw===a)return this.Th[b];return null};var k=0,p=!1;h.prototype.hy=function(){this.Jg&&(k=this.Jg.Iz(this.Zv))};h.prototype.sq=function(){var a=k,b=0,c=0,e=!0,d,l,c=0;for(d=this.Th.length;c<d;c++){l=this.Th[c];var f=l.Dq;if(!f||0>=f)f=5E4;a+=f;l.src&&(l.complete||l.loaded)&&!l.xq?b+=f:e=!1}e&&this.fz&&this.Jg&&(p||(this.Jg.Oz(),p=!0),c=this.Jg.Px(),b+=c,c<k&&(e=!1));this.na=0==a?1:b/a;return e};var u=!1;h.prototype.go=function(){if(this.La||this.F){var c=this.La||this.Go;this.Sb&&
this.Js();var k=window.innerWidth,e=window.innerHeight;this.jh===k&&this.ih===e||this.setSize(k,e);this.na=0;this.Gr=-1;var d=this;if(this.sq()&&(4!==this.wf||u))this.iy();else{e=Date.now()-this.Zl;if(c){var l=this.width,f=this.height,k=this.devicePixelRatio;if(3>this.wf&&(this.Zc||500<=e&&this.Gr!=this.na)){c.clearRect(0,0,l,f);var e=l/2,f=f/2,l=0===this.wf&&this.vf.el.complete,g=40*k,m=0,h=80*k,t;if(l){var p=this.vf.el,h=p.width*k;t=p.height*k;g=h/2;m=t/2;c.drawImage(p,ta(e-g),ta(f-m),h,t)}1>=this.wf?
(e=ta(e-g)+.5,f=ta(f+(m+(l?12*k:0)))+.5,c.fillStyle=a?"red":"DodgerBlue",c.fillRect(e,f,Math.floor(h*this.na),6*k),c.strokeStyle="black",c.strokeRect(e,f,h,6*k),c.strokeStyle="white",c.strokeRect(e-1*k,f-1*k,h+2*k,8*k)):2===this.wf&&(c.font=this.nd?"12pt ArialMT":"12pt Arial",c.fillStyle=a?"#f00":"#999",c.IB="middle",k=Math.round(100*this.na)+"%",l=c.measureText?c.measureText(k):null,c.fillText(k,e-(l?l.width:0)/2,f));this.Gr=this.na}else if(4===this.wf){this.Ow(c);b?b(function(){d.go()}):setTimeout(function(){d.go()},
16);return}}setTimeout(function(){d.go()},this.Zc?10:100)}}};var E=-1,C="undefined"===typeof cr_is_preview?200:0,z=!0,l=!1,t=0,J=0,r="undefined"===typeof cr_is_preview?3E3:0,w=null,A=null,F=0;h.prototype.Ow=function(b){if(!u){for(var c=Math.ceil(this.width),k=Math.ceil(this.height),e=this.vf.el,d=this.vf.ez,f=this.vf.eA,m=0;4>m;++m)if(!e[m].complete||!d[m].complete||!f[m].complete)return;0===F&&(E=Date.now());var m=Date.now(),h=!1,p=b,n,q;z||l?(b.clearRect(0,0,c,k),w&&w.width===c&&w.height===k||(w=
document.createElement("canvas"),w.width=c,w.height=k,A=w.getContext("2d")),p=A,h=!0,z&&1===F&&(E=Date.now())):b.globalAlpha=1;p.fillStyle="#333333";p.fillRect(0,0,c,k);256<this.fi?(n=Ia(.22*k,105,.6*c),q=.25*n,p.drawImage(g(d,n),.5*c-n/2,.2*k-q/2,n,q),q=n=Math.min(.395*k,.95*c),p.drawImage(g(e,n),.5*c-n/2,.485*k-q/2,n,q),n=Ia(.22*k,105,.6*c),q=.25*n,p.drawImage(g(f,n),.5*c-n/2,.868*k-q/2,n,q),p.fillStyle="#3C3C3C",n=c,q=Math.max(.005*k,2),p.fillRect(0,.8*k-q/2,n,q),p.fillStyle=a?"red":"#E0FF65",
n=c*this.na,p.fillRect(.5*c-n/2,.8*k-q/2,n,q)):(q=n=.55*k,p.drawImage(g(e,n),.5*c-n/2,.45*k-q/2,n,q),p.fillStyle="#3C3C3C",n=c,q=Math.max(.005*k,2),p.fillRect(0,.85*k-q/2,n,q),p.fillStyle=a?"red":"#E0FF65",n=c*this.na,p.fillRect(.5*c-n/2,.85*k-q/2,n,q));h&&(z?b.globalAlpha=0===F?0:Math.min((m-E)/300,1):l&&(b.globalAlpha=Math.max(1-(m-J)/300,0)),b.drawImage(w,0,0,c,k));z&&300<=m-E&&2<=F&&(z=!1,t=m);!z&&m-t>=r&&!l&&1<=this.na&&(l=!0,J=m);if(l&&m-J>=300+C||"undefined"!==typeof cr_is_preview&&1<=this.na&&
500>Date.now()-E)u=!0,l=z=!1,this.vf=A=w=null;++F}};h.prototype.iy=function(){this.Sb&&(this.canvas.parentNode.removeChild(this.Sb),this.Sb=this.Go=null);this.Zl=Date.now();this.jg=Za();var a,b,c;if(this.Bp)for(a=0,b=this.D.length;a<b;a++)c=this.D[a],c.V||c.Un||!c.Ja.sf||c.H();else this.gg=!1;a=0;for(b=this.Ed.length;a<b;a++)this.Ed[a].mw();2<=this.zc&&(a=this.Eb/this.Db,b=this.width/this.height,this.ai=2!==this.zc&&b>a||2===this.zc&&b<a?this.height/this.Db:this.width/this.Eb);this.Sq?this.lh[this.Sq].jp():
this.Ed[0].jp();this.Bp||(this.nh=1,this.trigger(I.prototype.n.Tp,null));navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();a=0;for(b=this.D.length;a<b;a++)c=this.D[a],c.Qy&&c.Qy();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.Fa(!1);this.ec&&AppMobi.webview.execute("onGameReady();")};h.prototype.Fa=function(a,c,k){if(this.qa){var e=Za();if(k||!this.Fi||a){a||(b?this.Qo=b(this.qt):this.pp=setTimeout(this.qt,
this.qf?1:16));c=c||e;var d=this.zc;((k=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.Bc)||this.Ei)&&0<this.Wf&&(d=this.Wf);if(0<d){var d=window.innerWidth,l=window.innerHeight;this.jh===d&&this.ih===l||this.setSize(d,l)}this.sb||(k?(this.uk||(this.qn=jQuery(this.canvas).css("margin")||"0",this.uk=!0),this.yi||this.rf||jQuery(this.canvas).css({"margin-left":""+Math.floor((screen.width-this.width/this.devicePixelRatio)/2)+"px","margin-top":""+
Math.floor((screen.height-this.height/this.devicePixelRatio)/2)+"px"})):this.uk?(this.yi||this.rf||jQuery(this.canvas).css("margin",this.qn),this.qn="",this.uk=!1,0===this.zc&&this.setSize(Math.round(this.qs/this.devicePixelRatio),Math.round(this.os/this.devicePixelRatio),!0)):(this.qs=this.width,this.os=this.height));this.gg&&(k=this.sq(),this.nh=this.na,k&&(this.gg=!1,this.na=1,this.trigger(I.prototype.n.Tp,null)));this.Iy(c);!this.da&&!this.Zc||this.Zn||this.vj||a||(this.da=!1,this.F?this.yc():
this.ld(),this.sj&&(this.canvas&&this.canvas.toDataURL&&(this.ht=this.canvas.toDataURL(this.sj[0],this.sj[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.ht),this.trigger(I.prototype.n.Du,null)),this.sj=null));this.rB||(this.ke++,this.Vf++,this.zk++);this.Wi+=Za()-e}}};h.prototype.Iy=function(a){var b,c,k,e,d,l,f,g;1E3<=a-this.jg&&(this.jg+=1E3,1E3<=a-this.jg&&(this.jg=a),this.pn=this.zk,this.zk=0,this.Ym=this.Wi,this.Wi=0);b=0;0!==this.Uk&&(b=a-this.Uk,0>b&&(b=0),this.Rf=b/=1E3,.5<this.Rf?this.Rf=
0:this.Rf>1/this.cs&&(this.Rf=1/this.cs));this.Uk=a;this.kf=this.Rf*this.Gf;this.tb.add(this.kf);this.Ve.add(b);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.Ei)&&!this.Bc;2<=this.zc||a&&0<this.Wf?(b=this.Eb/this.Db,c=this.width/this.height,k=this.zc,a&&0<this.Wf&&(k=this.Wf),this.ai=2!==k&&c>b||2===k&&c<b?this.height/this.Db:this.width/this.Eb,this.qa&&(this.qa.$o(this.qa.scrollX),this.qa.bp(this.qa.scrollY))):this.ai=this.fg?this.devicePixelRatio:
1;this.Xb();this.$c++;this.je.zz();this.$c--;this.Xb();this.$c++;c=this.ns.Te();a=0;for(b=c.length;a<b;a++)c[a].BB();a=0;for(b=this.D.length;a<b;a++)if(l=this.D[a],!l.V&&(l.Za.length||l.Ua.length))for(c=0,k=l.k.length;c<k;c++)for(f=l.k[c],e=0,d=f.aa.length;e<d;e++)f.aa[e].Fa();a=0;for(b=this.D.length;a<b;a++)if(l=this.D[a],!l.V&&(l.Za.length||l.Ua.length))for(c=0,k=l.k.length;c<k;c++)for(f=l.k[c],e=0,d=f.aa.length;e<d;e++)g=f.aa[e],g.dz&&g.dz();c=this.xo.Te();a=0;for(b=c.length;a<b;a++)c[a].Fa();
this.$c--;this.jy();for(a=0;this.te&&10>a++;)this.Jq(this.te);a=0;for(b=this.Ae.length;a<b;a++)this.Ae[a].Hn=!1;this.qa.Tf&&this.qa.Tf.wb();y(this.jj);this.$c++;a=0;for(b=this.D.length;a<b;a++)if(l=this.D[a],!l.V&&(l.Za.length||l.Ua.length))for(c=0,k=l.k.length;c<k;c++)for(f=l.k[c],e=0,d=f.aa.length;e<d;e++)g=f.aa[e],g.Dg&&g.Dg();c=this.yo.Te();a=0;for(b=c.length;a<b;a++)c[a].Dg();this.$c--};h.prototype.Jq=function(a){var b=this.qa;this.qa.Pz();var c,k,e;if(this.F)for(c=0,k=this.D.length;c<k;c++)e=
this.D[c],e.V||!e.vp||e.global&&0!==e.k.length||-1!==a.wi.indexOf(e)||e.vp();b==a&&y(this.je.Jc);y(this.jj);this.Ps(!0);a.jp();this.Ps(!1);this.da=!0;this.Xb()};h.prototype.Ps=function(a){var b,c,k,e,d,l,f,g,m;b=0;for(c=this.Za.length;b<c;b++)k=this.Za[b],a?k.bj&&k.bj():k.cj&&k.cj();b=0;for(c=this.D.length;b<c;b++)if(k=this.D[b],k.global||k.Ja.Vl)for(e=0,d=k.k.length;e<d;e++)if(l=k.k[e],a?l.bj&&l.bj():l.cj&&l.cj(),l.aa)for(f=0,g=l.aa.length;f<g;f++)m=l.aa[f],a?m.bj&&m.bj():m.cj&&m.cj()};h.prototype.yj=
function(a){this.xo.add(a)};h.prototype.Sz=function(a){this.yo.add(a)};h.prototype.Wd=function(a){return a&&-1!==a.$i?this.Rf*a.$i:this.kf};h.prototype.ld=function(){this.qa.ld(this.La);this.ec&&this.La.present()};h.prototype.yc=function(){this.Qa&&(this.Sf=1,this.qa.Qg(this.F));this.qa.yc(this.F);this.F.hz()};h.prototype.Lm=function(a){a&&this.mk.push(a)};h.prototype.sz=function(a){Ha(this.mk,a)};h.prototype.pi=function(a){a=a.toString();return this.Je.hasOwnProperty(a)?this.Je[a]:null};var x=[];
h.prototype.Od=function(a){var b,c;b=a.type.name;var k=null;if(this.Qf.hasOwnProperty(b)){if(k=this.Qf[b],k.contains(a))return}else k=x.length?x.pop():new ca,this.Qf[b]=k;k.add(a);this.pf=!0;if(a.fc)for(b=0,c=a.siblings.length;b<c;b++)this.Od(a.siblings[b]);this.Tn&&k.Rh.push(a);this.Sn||(this.$c++,this.trigger(Object.getPrototypeOf(a.type.Ja).n.Mp,a),this.$c--)};h.prototype.Xb=function(){if(this.pf){var a,b,c,k,e,d;this.Tn=!0;c=0;for(e=this.Cd.length;c<e;++c)for(a=this.Cd[c],b=a.type,b.k.push(a),
k=0,d=b.Ua.length;k<d;++k)b.Ua[k].k.push(a),b.Ua[k].Nh=!0;y(this.Cd);this.uu();Ya(this.Qf);this.pf=this.Tn=!1}};h.prototype.uu=function(){for(var a in this.Qf)this.Qf.hasOwnProperty(a)&&this.St(this.Qf[a])};h.prototype.St=function(a){var b=a.Te(),c=b[0].type,k,e,d,l,f,g;$a(c.k,a);c.Nh=!0;0===c.k.length&&(c.Rj=!1);k=0;for(e=c.Ua.length;k<e;++k)g=c.Ua[k],$a(g.k,a),g.Nh=!0;k=0;for(e=this.je.Jc.length;k<e;++k)if(f=this.je.Jc[k],f.oc.hasOwnProperty(c.index)&&$a(f.oc[c.index].De,a),!c.V)for(d=0,l=c.Ua.length;d<
l;++d)g=c.Ua[d],f.oc.hasOwnProperty(g.index)&&$a(f.oc[g.index].De,a);if(f=b[0].u){if(f.fd)for(d=f.k,k=0,e=d.length;k<e;++k)l=d[k],a.contains(l)&&(l.Ga(),f.Tb.update(l,l.Ec,null),l.Ec.set(0,0,-1,-1));$a(f.k,a);f.nj(0)}for(k=0;k<b.length;++k)this.Rt(b[k],c);a.clear();x.push(a);this.da=!0};h.prototype.Rt=function(a,b){var c,k,e;c=0;for(k=this.mk.length;c<k;++c)this.mk[c](a);a.gf&&b.ak.update(a,a.gf,null);(c=a.u)&&c.Eh(a,!0);if(a.aa)for(c=0,k=a.aa.length;c<k;++c)e=a.aa[c],e.yf&&e.yf(),e.behavior.hl.remove(a);
this.ns.remove(a);this.xo.remove(a);this.yo.remove(a);a.yf&&a.yf();this.Je.hasOwnProperty(a.uid.toString())&&delete this.Je[a.uid.toString()];this.jl--;100>b.ik.length&&b.ik.push(a)};h.prototype.dk=function(a,b,c,k){if(a.V){var e=ta(Math.random()*a.qh.length);return this.dk(a.qh[e],b,c,k)}return a.jd?this.hf(a.jd,b,!1,c,k,!1):null};var H=[];h.prototype.hf=function(a,b,c,k,e,d){var l,f,g,m;if(!a)return null;var h=this.D[a[1]],u=h.Ja.sf;if(this.gg&&u&&!h.Un||u&&!this.F&&11===a[0][11])return null;var t=
b;u||(b=null);var p;h.ik.length?(p=h.ik.pop(),p.Dc=!0,h.Ja.N.call(p,h)):(p=new h.Ja.N(h),p.Dc=!1);!c||d||this.Je.hasOwnProperty(a[2].toString())?p.uid=this.aj++:p.uid=a[2];this.Je[p.uid.toString()]=p;p.Ms=this.js++;p.ag=h.k.length;l=0;for(f=this.Cd.length;l<f;++l)this.Cd[l].type===h&&p.ag++;p.ri=Ib;p.toString=Jb;g=a[3];if(p.Dc)Ya(p.O);else{p.O={};if("undefined"!==typeof cr_is_preview)for(p.nr=[],p.nr.length=g.length,l=0,f=g.length;l<f;l++)p.nr[l]=g[l][1];p.Bb=[];p.Bb.length=g.length}l=0;for(f=g.length;l<
f;l++)p.Bb[l]=g[l][0];if(u){var n=a[0];p.x=ia(k)?n[0]:k;p.y=ia(e)?n[1]:e;p.z=n[2];p.width=n[3];p.height=n[4];p.depth=n[5];p.q=n[6];p.opacity=n[7];p.Mc=n[8];p.Nc=n[9];p.Yb=n[10];l=n[11];!this.F&&h.Z.length&&(p.Yb=l);p.ci=mb(p.Yb);this.G&&nb(p,p.Yb,this.G);if(p.Dc){l=0;for(f=n[12].length;l<f;l++)for(g=0,m=n[12][l].length;g<m;g++)p.$a[l][g]=n[12][l][g];p.Oa.set(0,0,0,0);p.gf.set(0,0,-1,-1);p.Ec.set(0,0,-1,-1);p.jc.Kh(p.Oa);y(p.Qm)}else{p.$a=n[12].slice(0);l=0;for(f=p.$a.length;l<f;l++)p.$a[l]=n[12][l].slice(0);
p.Aa=[];p.Ze=[];p.Ze.length=h.Z.length;p.Oa=new wa(0,0,0,0);p.gf=new wa(0,0,-1,-1);p.Ec=new wa(0,0,-1,-1);p.jc=new xa;p.Qm=[];p.X=Mb;p.Vv=Nb;p.Zb=Ob;p.Ga=Pb;p.Ft=Qb;p.Ap=Rb;p.Xd=Tb}p.zj=!1;p.Vz=0;p.Uz=0;p.Tz=null;14===n.length&&(p.zj=!0,p.Vz=n[13][0],p.Uz=n[13][1],p.Tz=n[13][2]);l=0;for(f=h.Z.length;l<f;l++)p.Ze[l]=!0;p.Pe=!0;p.Ld=Ub;p.Ld();p.Gt=!!p.Aa.length;p.Wj=!0;p.Sm=!0;h.Qj=!0;p.visible=!0;p.$i=-1;p.u=b;p.Md=b.k.length;p.Sf=0;"undefined"===typeof p.Da&&(p.Da=null);this.da=p.ue=!0}var q;y(H);
l=0;for(f=h.Ua.length;l<f;l++)H.push.apply(H,h.Ua[l].Za);H.push.apply(H,h.Za);if(p.Dc)for(l=0,f=H.length;l<f;l++){var w=H[l];q=p.aa[l];q.Dc=!0;w.behavior.N.call(q,w,p);n=a[4][l];g=0;for(m=n.length;g<m;g++)q.C[g]=n[g];q.H();w.behavior.hl.add(p)}else for(p.aa=[],l=0,f=H.length;l<f;l++)w=H[l],q=new w.behavior.N(w,p),q.Dc=!1,q.C=a[4][l].slice(0),q.H(),p.aa.push(q),w.behavior.hl.add(p);n=a[5];if(p.Dc)for(l=0,f=n.length;l<f;l++)p.C[l]=n[l];else p.C=n.slice(0);this.Cd.push(p);this.pf=!0;b&&(b.$h(p,!0),1!==
b.rd||1!==b.sd)&&(h.Rj=!0);this.jl++;if(h.fc){if(p.fc=!0,p.Dc?y(p.siblings):p.siblings=[],!c&&!d){l=0;for(f=h.Lc.length;l<f;l++)if(h.Lc[l]!==h){if(!h.Lc[l].jd)return null;p.siblings.push(this.hf(h.Lc[l].jd,t,!1,u?p.x:k,u?p.y:e,!0))}l=0;for(f=p.siblings.length;l<f;l++)for(p.siblings[l].siblings.push(p),g=0;g<f;g++)l!==g&&p.siblings[l].siblings.push(p.siblings[g])}}else p.fc=!1,p.siblings=null;p.H();l=0;for(f=p.aa.length;l<f;l++)p.aa[l].cz&&p.aa[l].cz();return p};h.prototype.xn=function(a){var b,c;
b=0;for(c=this.qa.ca.length;b<c;b++){var k=this.qa.ca[b];if(pb(k.name,a))return k}return null};h.prototype.oi=function(a){a=ta(a);0>a&&(a=0);a>=this.qa.ca.length&&(a=this.qa.ca.length-1);return this.qa.ca[a]};h.prototype.Wm=function(a){var b,c;b=0;for(c=a.length;b<c;b++)a[b].T().fa=!0};h.prototype.hj=function(a){var b,c;b=0;for(c=a.length;b<c;b++)a[b].hj()};h.prototype.ug=function(a){var b,c;b=0;for(c=a.length;b<c;b++)a[b].ug()};h.prototype.fe=function(a){var b,c;b=0;for(c=a.length;b<c;b++)a[b].fe()};
h.prototype.Dt=function(a){if(a.Qj){var b,c,k=a.k;b=0;for(c=k.length;b<c;++b)k[b].Ap();k=this.Cd;b=0;for(c=k.length;b<c;++b)k[b].type===a&&k[b].Ap();a.Qj=!1}};h.prototype.tn=function(a,b,c,k){var e,l,d=a?1!==a.rd||1!==a.sd:!1;if(b.V)for(a=0,e=b.qh.length;a<e;++a)l=b.qh[a],d||l.Rj?Ea(k,l.k):(this.Dt(l),l.ak.Il(c,k));else d||b.Rj?Ea(k,b.k):(this.Dt(b),b.ak.Il(c,k))};h.prototype.Ux=function(a,b,c,k){var e,l;e=0;for(l=b.length;e<l;++e)this.tn(a,b[e],c,k)};h.prototype.Tx=function(a,b,c){var k=this.it;
k&&this.Ux(a,k.vo,b,c)};h.prototype.fm=function(a,b,c){var k=a.T(),e,l,d,f,g=this.ab().gb.cd,m,h,p;if(k.fa)for(k.fa=!1,y(k.k),e=0,f=a.k.length;e<f;e++)d=a.k[e],d.Ga(),m=d.u.Nb(b,c,!0),h=d.u.Nb(b,c,!1),d.Zb(m,h)?k.k.push(d):g&&k.ea.push(d);else{l=0;p=g?k.ea:k.k;e=0;for(f=p.length;e<f;e++)d=p[e],d.Ga(),m=d.u.Nb(b,c,!0),h=d.u.Nb(b,c,!1),d.Zb(m,h)&&(g?k.k.push(d):(k.k[l]=k.k[e],l++));p.length=l}a.Tc();return k.Gn()};h.prototype.Ef=function(a,b){if(!(a&&b&&a!==b&&a.ue&&b.ue))return!1;a.Ga();b.Ga();var c=
a.u,k=b.u,e,l,d,f,g,m,h,p;if(c===k||c.rd===k.rd&&k.sd===k.sd&&c.scale===k.scale&&c.q===k.q&&c.Nd===k.Nd){if(!a.Oa.ty(b.Oa)||!a.jc.or(b.jc)||a.zj&&b.zj)return!1;if(a.zj)return this.mt(a,b);if(b.zj)return this.mt(b,a);h=a.Da&&!a.Da.bh();e=b.Da&&!b.Da.bh();if(!h&&!e)return!0;h?(a.Da.Kg(a.width,a.height,a.q),h=a.Da):(this.Jd.Jh(a.jc,a.x,a.y,a.width,a.height),h=this.Jd);e?(b.Da.Kg(b.width,b.height,b.q),p=b.Da):(this.Jd.Jh(b.jc,b.x,b.y,b.width,b.height),p=this.Jd);return h.xi(p,b.x-a.x,b.y-a.y)}h=a.Da&&
!a.Da.bh();e=b.Da&&!b.Da.bh();h?(a.Da.Kg(a.width,a.height,a.q),this.Jd.Zs(a.Da)):this.Jd.Jh(a.jc,a.x,a.y,a.width,a.height);h=this.Jd;e?(b.Da.Kg(b.width,b.height,b.q),this.lp.Zs(b.Da)):this.lp.Jh(b.jc,b.x,b.y,b.width,b.height);p=this.lp;e=0;for(l=h.Hd;e<l;e++)d=2*e,f=d+1,g=h.Hb[d],m=h.Hb[f],h.Hb[d]=c.Wa(g+a.x,m+a.y,!0),h.Hb[f]=c.Wa(g+a.x,m+a.y,!1);h.Ga();e=0;for(l=p.Hd;e<l;e++)d=2*e,f=d+1,g=p.Hb[d],m=p.Hb[f],p.Hb[d]=k.Wa(g+b.x,m+b.y,!0),p.Hb[f]=k.Wa(g+b.x,m+b.y,!1);p.Ga();return h.xi(p,0,0)};var N=
new xa;new wa(0,0,0,0);var W=[];h.prototype.mt=function(a,b){var c,k,e,l,d=b.Oa,f=a.x,g=a.y;a.oB(d,W);var m=b.Da&&!b.Da.bh();c=0;for(k=W.length;c<k;++c)if(e=W[c],l=e.EB,d.uy(l,f,g)&&(N.Kh(l),N.offset(f,g),N.or(b.jc)))if(m)if(b.Da.Kg(b.width,b.height,b.q),e.Lo){if(e.Lo.xi(b.Da,b.x-(f+l.left),b.y-(g+l.top)))return y(W),!0}else{if(this.Jd.Jh(N,0,0,l.right-l.left,l.bottom-l.top),this.Jd.xi(b.Da,b.x,b.y))return y(W),!0}else if(e.Lo){if(this.Jd.Jh(b.jc,0,0,b.width,b.height),e.Lo.xi(this.Jd,-(f+l.left),
-(g+l.top)))return y(W),!0}else return y(W),!0;y(W);return!1};h.prototype.zt=function(a,b){if(!b)return!1;var c,k,e,l,d;c=0;for(k=a.Za.length;c<k;c++)if(a.Za[c].behavior instanceof b)return!0;if(!a.V)for(c=0,k=a.Ua.length;c<k;c++)for(d=a.Ua[c],e=0,l=d.Za.length;e<l;e++)if(d.Za[e].behavior instanceof b)return!0;return!1};h.prototype.tp=function(a){return this.zt(a,ic.EA)};h.prototype.up=function(a){return this.zt(a,ic.FA)};var K=[];h.prototype.Bg=function(a){var b,c,k;a.Ga();this.Tx(a.u,a.Oa,K);b=
0;for(c=K.length;b<c;++b)if(k=K[b],k.O.solidEnabled&&this.Ef(a,k))return y(K),k;y(K);return null};h.prototype.mz=function(a,b,c,k){k=k||50;var e=a.x,l=a.y,d,f=null,g=null;for(d=0;d<k;d++)if(a.x=e+b*d,a.y=l+c*d,a.X(),!this.Ef(a,f)&&((f=this.Bg(a))&&(g=f),!f&&!f))return g&&this.kz(a,b,c,g),!0;a.x=e;a.y=l;a.X();return!1};h.prototype.kz=function(a,b,c,k){var e=2,l,d=!1;l=!1;for(var f=a.x,g=a.y;16>=e;)l=1/e,e*=2,a.x+=b*l*(d?1:-1),a.y+=c*l*(d?1:-1),a.X(),this.Ef(a,k)?l=d=!0:(l=d=!1,f=a.x,g=a.y);l&&(a.x=
f,a.y=g,a.X())};h.prototype.nz=function(a){var b=0,c=a.x,k=a.y,e=0,l=0,d=0,f=this.Bg(a);if(f){for(;100>=b;){switch(e){case 0:l=0;d=-1;b++;break;case 1:l=1;d=-1;break;case 2:l=1;d=0;break;case 3:d=l=1;break;case 4:l=0;d=1;break;case 5:l=-1;d=1;break;case 6:l=-1;d=0;break;case 7:d=l=-1}e=(e+1)%8;a.x=ta(c+l*b);a.y=ta(k+d*b);a.X();if(!this.Ef(a,f)&&(f=this.Bg(a),!f))return}a.x=c;a.y=k;a.X()}};h.prototype.pz=function(a,b){a.ue&&b.ue&&this.jj.push([a,b])};h.prototype.hw=function(a,b){var c,k,e;c=0;for(k=
this.jj.length;c<k;c++)if(e=this.jj[c],e[0]==a&&e[1]==b||e[0]==b&&e[1]==a)return!0;return!1};h.prototype.dw=function(a,b,c){var k=a.x,e=a.y,l=oa(10,Ua(b,c,k,e)),d=Oa(b,c,k,e),f=this.Bg(a);if(!f)return La(d+sa);var g=f,m,h,p,u,t=G(5);for(m=1;36>m;m++)if(h=d-m*t,a.x=b+Math.cos(h)*l,a.y=c+Math.sin(h)*l,a.X(),!this.Ef(a,g)&&(g=this.Bg(a),!g)){p=h;break}36===m&&(p=La(d+sa));g=f;for(m=1;36>m;m++)if(h=d+m*t,a.x=b+Math.cos(h)*l,a.y=c+Math.sin(h)*l,a.X(),!this.Ef(a,g)&&(g=this.Bg(a),!g)){u=h;break}36===m&&
(u=La(d+sa));a.x=k;a.y=e;a.X();if(u===p)return u;a=Pa(u,p)/2;a=Sa(u,p)?La(p+a+sa):La(u+a);p=Math.cos(d);d=Math.sin(d);u=Math.cos(a);a=Math.sin(a);b=p*u+d*a;return Oa(0,0,p-2*b*u,d-2*b*a)};var X=-1;h.prototype.trigger=function(a,b,c){if(!this.qa)return!1;var k=this.qa.Tf;if(!k)return!1;var e=!1,l,d,f;X++;var g=k.bn;d=0;for(f=g.length;d<f;++d)l=this.ut(a,b,g[d],c),e=e||l;l=this.ut(a,b,k,c);X--;return e||l};h.prototype.ut=function(a,b,c,k){var e=!1,l,d,f,g;if(b)for(f=this.rp(a,b,b.type.name,c,k),e=e||
f,g=b.type.Ua,l=0,d=g.length;l<d;++l)f=this.rp(a,b,g[l].name,c,k),e=e||f;else f=this.rp(a,b,"system",c,k),e=e||f;return e};h.prototype.rp=function(a,b,c,k,e){var l,d=!1,f=!1,f="undefined"!==typeof e,g=(f?k.Nq:k.xt)[c];if(!g)return d;var m=null;k=0;for(l=g.length;k<l;++k)if(g[k].method==a){m=g[k].ii;break}if(!m)return d;var h;f?h=m[e]:h=m;if(!h)return null;k=0;for(l=h.length;k<l;k++)a=h[k][0],e=h[k][1],f=this.Ax(b,c,a,e),d=d||f;return d};h.prototype.Ax=function(a,b,c,k){var e,l,d=!1;this.sp++;var f=
this.ab().gb;f&&this.hj(f.Cf);var g=1<this.sp;this.hj(c.Cf);g&&this.lz();var m=this.Hl(c);m.gb=c;a&&(e=this.types[b].T(),e.fa=!1,y(e.k),e.k[0]=a,this.types[b].Tc());a=!0;if(c.parent){b=m.lt;for(e=c.parent;e;)b.push(e),e=e.parent;b.reverse();e=0;for(l=b.length;e<l;e++)if(!b[e].Bz()){a=!1;break}}a&&(this.Vf++,c.cd?c.Az(k):c.wb(),d=d||m.ig);this.Dl();g&&this.bz();this.fe(c.Cf);f&&this.fe(f.Cf);this.pf&&0===this.$c&&0===X&&!this.Vn&&this.Xb();this.sp--;return d};h.prototype.Ck=function(){var a=this.ab();
return a.gb.yb[a.pb]};h.prototype.wy=function(){return 0===this.ab().pb};h.prototype.Jx=function(){var a=this.ab();return a.gb.gd[a.rc]};h.prototype.lz=function(){this.dl++;this.dl>=this.oo.length&&this.oo.push([])};h.prototype.bz=function(){this.dl--};h.prototype.Xq=function(){return this.oo[this.dl]};h.prototype.Hl=function(a){this.ok++;this.ok>=this.gn.length&&this.gn.push(new Vb);var b=this.ab();b.reset(a);return b};h.prototype.Dl=function(){this.ok--};h.prototype.ab=function(){return this.gn[this.ok]};
h.prototype.Ns=function(a){this.Yi++;this.Yi>=this.Xi.length&&this.Xi.push(aa({name:a,index:0,eb:!1}));var b=this.Yq();b.name=a;b.index=0;b.eb=!1;return b};h.prototype.Is=function(){this.Yi--};h.prototype.Yq=function(){return this.Xi[this.Yi]};h.prototype.$q=function(a,b){for(var c,k,e,l,d,f;b;){c=0;for(k=b.wd.length;c<k;c++)if(f=b.wd[c],f instanceof Wb&&pb(a,f.name))return f;b=b.parent}c=0;for(k=this.Ae.length;c<k;c++)for(d=this.Ae[c],e=0,l=d.lf.length;e<l;e++)if(f=d.lf[e],f instanceof Wb&&pb(a,
f.name))return f;return null};h.prototype.cr=function(a){var b,c;b=0;for(c=this.Ed.length;b<c;b++)if(this.Ed[b].ra===a)return this.Ed[b];return null};h.prototype.Ek=function(a){var b,c;b=0;for(c=this.D.length;b<c;b++)if(this.D[b].ra===a)return this.D[b];return null};h.prototype.Kx=function(a){var b,c;b=0;for(c=this.cf.length;b<c;b++)if(this.cf[b].ra===a)return this.cf[b];return null};h.prototype.sw=function(a,b){this.sj=[a,b];this.da=!0};h.prototype.jy=function(){var a=this,b=this.Zo,c=this.Ge,k=
this.Zk,e=!1;this.et&&(e=!0,b="__c2_continuouspreview",this.et=!1);if(b.length){this.Xb();c=this.Fz();if(d()&&!this.Zc)m(b,c,function(){ga("Saved state to IndexedDB storage ("+c.length+" bytes)");a.Ge=c;a.trigger(I.prototype.n.Am,null);a.Ge="";e&&n()},function(k){try{localStorage.setItem("__c2save_"+b,c),ga("Saved state to WebStorage ("+c.length+" bytes)"),a.Ge=c,a.trigger(I.prototype.n.Am,null),a.Ge="",e&&n()}catch(l){ga("Failed to save game state: "+k+"; "+l),a.trigger(I.prototype.n.Xp,null)}});
else try{localStorage.setItem("__c2save_"+b,c),ga("Saved state to WebStorage ("+c.length+" bytes)"),a.Ge=c,this.trigger(I.prototype.n.Am,null),a.Ge="",e&&n()}catch(l){ga("Error saving to WebStorage: "+l),a.trigger(I.prototype.n.Xp,null)}this.gc=this.Zk=this.Zo=""}if(k.length){if(d()&&!this.Zc)q(k,function(b){b?(a.gc=b,ga("Loaded state from IndexedDB storage ("+a.gc.length+" bytes)")):(a.gc=localStorage.getItem("__c2save_"+k)||"",ga("Loaded state from WebStorage ("+a.gc.length+" bytes)"));a.vj=!1;
a.gc.length||a.trigger(I.prototype.n.zm,null)},function(){a.gc=localStorage.getItem("__c2save_"+k)||"";ga("Loaded state from WebStorage ("+a.gc.length+" bytes)");a.vj=!1;a.gc.length||a.trigger(I.prototype.n.zm,null)});else{try{this.gc=localStorage.getItem("__c2save_"+k)||"",ga("Loaded state from WebStorage ("+this.gc.length+" bytes)")}catch(f){this.gc=""}this.vj=!1;a.gc.length||a.trigger(I.prototype.n.zm,null)}this.Zo=this.Zk=""}this.gc.length&&(this.Xb(),this.Hy(this.gc),this.Ge=this.gc,this.trigger(I.prototype.n.Nu,
null),this.gc=this.Ge="")};h.prototype.Fz=function(){var a,b,k,e,l,d,f,g={c2save:!0,version:1,rt:{time:this.tb.J,walltime:this.Ve.J,timescale:this.Gf,tickcount:this.ke,execcount:this.Vf,next_uid:this.aj,running_layout:this.qa.ra,start_time_offset:Date.now()-this.Zl},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};a=0;for(b=this.D.length;a<b;a++)if(l=this.D[a],!l.V&&!this.tp(l)){d={instances:[]};Xa(l.O)&&(d.ex=c(l.O));k=0;for(e=l.k.length;k<e;k++)d.instances.push(this.Yo(l.k[k]));g.types[l.ra.toString()]=
d}a=0;for(b=this.Ed.length;a<b;a++)k=this.Ed[a],g.layouts[k.ra.toString()]=k.Xa();e=g.events.groups;a=0;for(b=this.cf.length;a<b;a++)k=this.cf[a],e[k.ra.toString()]=this.Xg[k.si].Yf;b=g.events.cnds;for(f in this.ff)this.ff.hasOwnProperty(f)&&(a=this.ff[f],Xa(a.O)&&(b[f]={ex:c(a.O)}));b=g.events.acts;for(f in this.$e)this.$e.hasOwnProperty(f)&&(a=this.$e[f],Xa(a.O)&&(b[f]={ex:c(a.O)}));b=g.events.vars;for(f in this.Sh)this.Sh.hasOwnProperty(f)&&(a=this.Sh[f],a.Qk||a.parent&&!a.Ii||(b[f]=a.data));g.system=
this.je.Xa();return JSON.stringify(g)};h.prototype.Os=function(){var a,b,c,k,e,l;this.Je={};a=0;for(b=this.D.length;a<b;a++)if(c=this.D[a],!c.V)for(k=0,e=c.k.length;k<e;k++)l=c.k[k],this.Je[l.uid.toString()]=l};h.prototype.Hy=function(a){a=JSON.parse(a);if(a.c2save&&!(1<a.version)){this.Ci=!0;var b=a.rt;this.tb.reset();this.tb.J=b.time;this.Ve.reset();this.Ve.J=b.walltime||0;this.Gf=b.timescale;this.ke=b.tickcount;this.Vf=b.execcount;this.Zl=Date.now()-b.start_time_offset;var c=b.running_layout;if(c!==
this.qa.ra)if(c=this.cr(c))this.Jq(c);else return;var k,e,l,d,f,g,m;g=a.types;for(e in g)if(g.hasOwnProperty(e)&&(d=this.Ek(parseInt(e,10)))&&!d.V&&!this.tp(d)){g[e].ex?d.O=g[e].ex:Ya(d.O);f=d.k;l=g[e].instances;c=0;for(k=pa(f.length,l.length);c<k;c++)this.$k(f[c],l[c]);c=l.length;for(k=f.length;c<k;c++)this.Od(f[c]);c=f.length;for(k=l.length;c<k;c++){f=null;if(d.Ja.sf&&(f=this.qa.Dk(l[c].w.l),!f))continue;f=this.hf(d.jd,f,!1,0,0,!0);this.$k(f,l[c])}d.Nh=!0}this.Xb();this.Os();k=a.layouts;for(e in k)k.hasOwnProperty(e)&&
(c=this.cr(parseInt(e,10)))&&c.kb(k[e]);k=a.events.groups;for(e in k)k.hasOwnProperty(e)&&(c=this.Kx(parseInt(e,10)))&&this.Xg[c.si]&&this.Xg[c.si].lj(k[e]);c=a.events.cnds;for(e in this.ff)this.ff.hasOwnProperty(e)&&(c.hasOwnProperty(e)?this.ff[e].O=c[e].ex:this.ff[e].O={});c=a.events.acts;for(e in this.$e)this.$e.hasOwnProperty(e)&&(c.hasOwnProperty(e)?this.$e[e].O=c[e].ex:this.$e[e].O={});c=a.events.vars;for(e in c)c.hasOwnProperty(e)&&this.Sh.hasOwnProperty(e)&&(this.Sh[e].data=c[e]);this.aj=
b.next_uid;this.Ci=!1;c=0;for(k=this.tk.length;c<k;++c)f=this.tk[c],this.trigger(Object.getPrototypeOf(f.type.Ja).n.Hg,f);y(this.tk);this.je.kb(a.system);c=0;for(k=this.D.length;c<k;c++)if(d=this.D[c],!d.V&&!this.tp(d))for(e=0,a=d.k.length;e<a;e++){f=d.k[e];if(d.fc)for(g=f.ri(),y(f.siblings),b=0,l=d.Lc.length;b<l;b++)m=d.Lc[b],d!==m&&f.siblings.push(m.k[g]);f.oe&&f.oe();if(f.aa)for(b=0,l=f.aa.length;b<l;b++)g=f.aa[b],g.oe&&g.oe()}this.da=!0}};h.prototype.Yo=function(a,b){var k,e,l,d,f;d=a.type;l=
d.Ja;var g={};b?g.c2=!0:g.uid=a.uid;Xa(a.O)&&(g.ex=c(a.O));if(a.Bb&&a.Bb.length)for(g.ivs={},k=0,e=a.Bb.length;k<e;k++)g.ivs[a.type.Qn[k].toString()]=a.Bb[k];if(l.sf){l={x:a.x,y:a.y,w:a.width,h:a.height,l:a.u.ra,zi:a.Xd()};0!==a.q&&(l.a=a.q);1!==a.opacity&&(l.o=a.opacity);.5!==a.Mc&&(l.hX=a.Mc);.5!==a.Nc&&(l.hY=a.Nc);0!==a.Yb&&(l.bm=a.Yb);a.visible||(l.v=a.visible);a.ue||(l.ce=a.ue);-1!==a.$i&&(l.mts=a.$i);if(d.Z.length)for(l.fx=[],k=0,e=d.Z.length;k<e;k++)f=d.Z[k],l.fx.push({name:f.name,active:a.Ze[f.index],
params:a.$a[f.index]});g.w=l}if(a.aa&&a.aa.length)for(g.behs={},k=0,e=a.aa.length;k<e;k++)d=a.aa[k],d.Xa&&(g.behs[d.type.ra.toString()]=d.Xa());a.Xa&&(g.data=a.Xa());return g};h.prototype.Mx=function(a,b){var c,k;c=0;for(k=a.Qn.length;c<k;c++)if(a.Qn[c]===b)return c;return-1};h.prototype.Ix=function(a,b){var c,k;c=0;for(k=a.aa.length;c<k;c++)if(a.aa[c].type.ra===b)return c;return-1};h.prototype.$k=function(a,b,c){var k,e,l,d,f;f=a.type;d=f.Ja;if(c){if(!b.c2)return}else a.uid=b.uid;b.ex?a.O=b.ex:Ya(a.O);
if(e=b.ivs)for(k in e)e.hasOwnProperty(k)&&(l=this.Mx(f,parseInt(k,10)),0>l||l>=a.Bb.length||(a.Bb[l]=e[k]));if(d.sf){l=b.w;a.u.ra!==l.l&&(e=a.u,a.u=this.qa.Dk(l.l),a.u?(e.Eh(a,!0),a.u.$h(a,!0),a.X(),a.u.nj(0)):(a.u=e,c||this.Od(a)));a.x=l.x;a.y=l.y;a.width=l.w;a.height=l.h;a.Md=l.zi;a.q=l.hasOwnProperty("a")?l.a:0;a.opacity=l.hasOwnProperty("o")?l.o:1;a.Mc=l.hasOwnProperty("hX")?l.hX:.5;a.Nc=l.hasOwnProperty("hY")?l.hY:.5;a.visible=l.hasOwnProperty("v")?l.v:!0;a.ue=l.hasOwnProperty("ce")?l.ce:!0;
a.$i=l.hasOwnProperty("mts")?l.mts:-1;a.Yb=l.hasOwnProperty("bm")?l.bm:0;a.ci=mb(a.Yb);this.G&&nb(a,a.Yb,this.G);a.X();if(l.hasOwnProperty("fx"))for(c=0,e=l.fx.length;c<e;c++)d=f.vn(l.fx[c].name),0>d||(a.Ze[d]=l.fx[c].active,a.$a[d]=l.fx[c].params);a.Ld()}if(f=b.behs)for(k in f)f.hasOwnProperty(k)&&(c=this.Ix(a,parseInt(k,10)),0>c||a.aa[c].kb(f[k]));b.data&&a.kb(b.data)};h.prototype.Oq=function(a,b,c){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+"www/"+a,function(a){a.file(b,
c)},c)};h.prototype.Qq=function(a,b){this.Oq("data.js",function(c){var k=new FileReader;k.onload=function(b){a(b.target.result)};k.onerror=b;k.readAsText(c)},b)};h.prototype.Pq=function(a,b,c){this.Oq(a,function(a){var c=new FileReader;c.onload=function(a){b(a.target.result)};c.readAsArrayBuffer(a)},c)};h.prototype.Bx=function(a,b,c){this.Pq(a,function(a){a=URL.createObjectURL(new Blob([a]));b(a)},c)};h.prototype.Ws=function(a,b){this.Gi?this.Bx(b,function(b){a.src=b},function(a){alert("Failed to load image: "+
a)}):a.src=b};Xb=function(a){return new h(document.getElementById(a))};Yb=function(a,b){return new h({dc:!0,width:a,height:b})};window.cr_createRuntime=Xb;window.cr_createDCRuntime=Yb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.Lf=!0;document.body.appendChild(a);a=new h(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 h(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();window.cr_getC2Runtime=function(){var h=document.getElementById("c2canvas");return h?h.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(h,g){var d=window.cr_getC2Runtime();d&&d.sw(h,g)};
window.cr_sizeCanvas=function(h,g){if(0!==h&&0!==g){var d=window.cr_getC2Runtime();d&&d.setSize(h,g)}};window.cr_setSuspended=function(h){var g=window.cr_getC2Runtime();g&&g.setSuspended(h)};
(function(){function h(a,b){this.b=a;this.Tf=null;this.scrollX=this.b.Eb/2;this.scrollY=this.b.Db/2;this.scale=1;this.q=0;this.Vg=!0;this.name=b[0];this.width=b[1];this.height=b[2];this.At=b[3];this.ct=b[4];this.ra=b[5];var c=b[6],e,d;this.ca=[];this.wi=[];e=0;for(d=c.length;e<d;e++){var f=new Zb(this,c[e]);f.ls=e;this.ca.push(f)}c=b[7];this.dg=[];e=0;for(d=c.length;e<d;e++){var f=c[e],g=this.b.D[f[1]];g.jd||(g.jd=f);this.dg.push(f);-1===this.wi.indexOf(g)&&this.wi.push(g)}this.Z=[];this.Aa=[];this.Pe=
!0;this.$a=[];e=0;for(d=b[8].length;e<d;e++)this.Z.push({id:b[8][e][0],name:b[8][e][1],xb:-1,Gd:!1,Ka:!0,index:e}),this.$a.push(b[8][e][2].slice(0));this.Ld();this.Dh=new wa(0,0,1,1);this.Ro=new wa(0,0,1,1);this.zf={}}function g(a,b){return a.Md-b.Md}function d(a,b){this.jb=a;this.b=a.b;this.k=[];this.scale=1;this.q=0;this.ye=!1;this.Se=new wa(0,0,0,0);this.tt=new xa;this.Ma=this.Ia=this.Na=this.Ha=0;this.Eg=!1;this.We=-1;this.Xm=0;this.name=b[0];this.index=b[1];this.ra=b[2];this.visible=b[3];this.Ad=
b[4];this.Kd=b[5];this.rd=b[6];this.sd=b[7];this.opacity=b[8];this.yk=b[9];this.fd=b[10];this.Nd=b[11];this.Yb=b[12];this.Pw=b[13];this.ci="source-over";this.$b=this.hc=0;this.Tb=null;this.He=f();this.Id=!0;this.kh=new wa(0,0,-1,-1);this.Ob=new wa(0,0,-1,-1);this.fd&&(this.Tb=new lb(this.b.Eb,this.b.Db));this.ge=!1;var c=b[14],e,d;this.jt=[];this.Yc=[];this.ei=[];e=0;for(d=c.length;e<d;e++){var g=c[e],m=this.b.D[g[1]];m.jd||(m.jd=g,m.pw=this.index);this.Yc.push(g);-1===this.jb.wi.indexOf(m)&&this.jb.wi.push(m)}Da(this.jt,
this.Yc);this.Z=[];this.Aa=[];this.Pe=!0;this.$a=[];e=0;for(d=b[15].length;e<d;e++)this.Z.push({id:b[15][e][0],name:b[15][e][1],xb:-1,Gd:!1,Ka:!0,index:e}),this.$a.push(b[15][e][2].slice(0));this.Ld();this.Dh=new wa(0,0,1,1);this.Ro=new wa(0,0,1,1)}function f(){return c.length?c.pop():[]}function m(a){y(a);c.push(a)}h.prototype.Ez=function(a){var b=a.type.ra.toString();this.zf.hasOwnProperty(b)||(this.zf[b]=[]);this.zf[b].push(this.b.Yo(a))};h.prototype.hr=function(){var a=this.ca[0];return!a.Kd&&
1===a.opacity&&!a.yk&&a.visible};h.prototype.Ld=function(){y(this.Aa);this.Pe=!0;var a,b,c;a=0;for(b=this.Z.length;a<b;a++)c=this.Z[a],c.Ka&&(this.Aa.push(c),c.Gd||(this.Pe=!1))};h.prototype.un=function(a){var b,c,e;b=0;for(c=this.Z.length;b<c;b++)if(e=this.Z[b],e.name===a)return e;return null};var q=[],n=!0;h.prototype.jp=function(){this.ct&&(this.Tf=this.b.hn[this.ct],this.Tf.wp());this.b.qa=this;this.scrollX=this.b.Eb/2;this.scrollY=this.b.Db/2;var a,b,c,e,d,f,m;a=0;for(c=this.b.D.length;a<c;a++)if(b=
this.b.D[a],!b.V)for(d=b.k,b=0,e=d.length;b<e;b++)if(f=d[b],f.u){var l=f.u.ls;l>=this.ca.length&&(l=this.ca.length-1);f.u=this.ca[l];-1===f.u.k.indexOf(f)&&f.u.k.push(f);f.u.Eg=!0}if(!n)for(a=0,c=this.ca.length;a<c;++a)this.ca[a].k.sort(g);y(q);this.vq();a=0;for(c=this.ca.length;a<c;a++)f=this.ca[a],f.ow(),f.pm();d=!1;if(!this.Vg){for(m in this.zf)if(this.zf.hasOwnProperty(m)&&(b=this.b.Ek(parseInt(m,10)))&&!b.V&&this.b.up(b)){e=this.zf[m];a=0;for(c=e.length;a<c;a++){f=null;if(b.Ja.sf&&(f=this.Dk(e[a].w.l),
!f))continue;f=this.b.hf(b.jd,f,!1,0,0,!0);this.b.$k(f,e[a]);d=!0;q.push(f)}y(e)}a=0;for(c=this.ca.length;a<c;a++)this.ca[a].k.sort(g),this.ca[a].Eg=!0}d&&(this.b.Xb(),this.b.Os());for(a=0;a<q.length;a++)if(f=q[a],f.type.fc)for(c=f.ri(),b=0,e=f.type.Lc.length;b<e;b++)m=f.type.Lc[b],f.type!==m&&(m.k.length>c?f.siblings.push(m.k[c]):m.jd&&(d=this.b.hf(m.jd,f.u,!0,f.x,f.y,!0),this.b.Xb(),m.nm(),f.siblings.push(d),q.push(d)));a=0;for(c=this.dg.length;a<c;a++)this.b.hf(this.dg[a],null,!0);this.b.te=null;
this.b.Xb();if(this.b.La&&!this.b.sb)for(a=0,c=this.b.D.length;a<c;a++)m=this.b.D[a],!m.V&&m.k.length&&m.Mo&&m.Mo(this.b.La);if(this.b.Ci)Da(this.b.tk,q);else for(a=0,c=q.length;a<c;a++)f=q[a],this.b.trigger(Object.getPrototypeOf(f.type.Ja).n.Hg,f);y(q);this.b.Ci||this.b.trigger(I.prototype.n.Sp,null);this.Vg=!1};h.prototype.mw=function(){var a,b,c,e,d;b=a=0;for(c=this.dg.length;a<c;a++)e=this.dg[a],d=this.b.D[e[1]],d.global?d.fc||this.b.hf(e,null,!0):(this.dg[b]=e,b++);Ba(this.dg,b)};h.prototype.Pz=
function(){this.b.Ci||this.b.trigger(I.prototype.n.Mu,null);this.b.Sn=!0;y(this.b.je.Jc);var a,b,c,e,d,f;if(!this.Vg)for(a=0,b=this.ca.length;a<b;a++)for(this.ca[a].zp(),d=this.ca[a].k,c=0,e=d.length;c<e;c++)f=d[c],f.type.global||this.b.up(f.type)&&this.Ez(f);a=0;for(b=this.ca.length;a<b;a++){d=this.ca[a].k;c=0;for(e=d.length;c<e;c++)f=d[c],f.type.global||this.b.Od(f);this.b.Xb();y(d);this.ca[a].Eg=!0}a=0;for(b=this.b.D.length;a<b;a++)if(d=this.b.D[a],!(d.global||d.Ja.sf||d.Ja.Vl||d.V)){c=0;for(e=
d.k.length;c<e;c++)this.b.Od(d.k[c]);this.b.Xb()}n=!1;this.b.Sn=!1};new wa(0,0,0,0);h.prototype.ld=function(a){var b,c=a,e=!1,d=!this.b.Wc;d&&(this.b.Yk||(this.b.Yk=document.createElement("canvas"),b=this.b.Yk,b.width=this.b.R,b.height=this.b.P,this.b.Ir=b.getContext("2d"),e=!0),b=this.b.Yk,c=this.b.Ir,b.width!==this.b.R&&(b.width=this.b.R,e=!0),b.height!==this.b.P&&(b.height=this.b.P,e=!0),e&&(c.webkitImageSmoothingEnabled=this.b.la,c.mozImageSmoothingEnabled=this.b.la,c.msImageSmoothingEnabled=
this.b.la,c.imageSmoothingEnabled=this.b.la));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.b.Nm&&!this.hr()&&c.clearRect(0,0,this.b.R,this.b.P);var f,g,e=0;for(f=this.ca.length;e<f;e++)g=this.ca[e],g.visible&&0<g.opacity&&11!==g.Yb&&(g.k.length||!g.Kd)?g.ld(c):g.pm();d&&a.drawImage(b,0,0,this.b.width,this.b.height)};h.prototype.Qg=function(a){a.Vs(!0);this.b.ub||(this.b.ub=a.Vc(this.b.R,this.b.P,this.b.la));if(this.b.ub.Of!==this.b.R||this.b.ub.Nf!==this.b.P)a.deleteTexture(this.b.ub),
this.b.ub=a.Vc(this.b.R,this.b.P,this.b.la);a.ud(this.b.ub);this.b.Wc||a.yg(this.b.R,this.b.P);var b,c;for(b=this.ca.length-1;0<=b;--b)c=this.ca[b],c.visible&&1===c.opacity&&c.Pe&&0===c.Yb&&(c.k.length||!c.Kd)?c.Qg(a):c.pm();a.Vs(!1)};h.prototype.yc=function(a){var b=0<this.Aa.length||this.b.Qh||!this.b.Wc||this.b.Qa;if(b){this.b.ub||(this.b.ub=a.Vc(this.b.R,this.b.P,this.b.la));if(this.b.ub.Of!==this.b.R||this.b.ub.Nf!==this.b.P)a.deleteTexture(this.b.ub),this.b.ub=a.Vc(this.b.R,this.b.P,this.b.la);
a.ud(this.b.ub);this.b.Wc||a.yg(this.b.R,this.b.P)}else this.b.ub&&(a.ud(null),a.deleteTexture(this.b.ub),this.b.ub=null);this.b.Nm&&!this.hr()&&a.clear(0,0,0,0);var c,e,d;c=0;for(e=this.ca.length;c<e;c++)d=this.ca[c],d.visible&&0<d.opacity&&(d.k.length||!d.Kd)?d.yc(a):d.pm();b&&(0===this.Aa.length||1===this.Aa.length&&this.b.Wc?(1===this.Aa.length?(b=this.Aa[0].index,a.Gc(this.Aa[0].xb),a.Ih(null,1/this.b.R,1/this.b.P,0,0,1,1,this.scale,this.q,0,0,this.b.R/2,this.b.P/2,this.b.tb.J,this.$a[b]),a.Gl(this.Aa[0].xb)&&
(this.b.da=!0)):a.Gc(0),this.b.Wc||a.yg(this.b.width,this.b.height),a.ud(null),a.Ts(!1),a.xg(1),a.Rc(this.b.ub),a.Rs(),a.td(),a.ed(),b=this.b.width/2,c=this.b.height/2,a.Ch(-b,c,b,c,b,-c,-b,-c),a.Rc(null),a.Ts(!0)):this.To(a,null,null,null))};h.prototype.qi=function(){return 0<this.Aa.length||this.b.Qh||!this.b.Wc||this.b.Qa?this.b.ub:null};h.prototype.dr=function(){var a=this.ca[0].Ac(),b,c,e;b=1;for(c=this.ca.length;b<c;b++)e=this.ca[b],(0!==e.rd||0!==e.sd)&&e.Ac()<a&&(a=e.Ac());return a};h.prototype.$o=
function(a){if(!this.At){var b=1/this.dr()*this.b.R/2;a>this.width-b&&(a=this.width-b);a<b&&(a=b)}this.scrollX!==a&&(this.scrollX=a,this.b.da=!0)};h.prototype.bp=function(a){if(!this.At){var b=1/this.dr()*this.b.P/2;a>this.height-b&&(a=this.height-b);a<b&&(a=b)}this.scrollY!==a&&(this.scrollY=a,this.b.da=!0)};h.prototype.vq=function(){this.$o(this.scrollX);this.bp(this.scrollY)};h.prototype.To=function(a,b,c,e){var d=c?c.Aa:b?b.Aa:this.Aa,f=1,g=0,l=0,m=0,h=this.b.R,n=this.b.P;c?(f=c.u.Ac(),g=c.u.hb(),
l=c.u.Ha,m=c.u.Ia,h=c.u.Na,n=c.u.Ma):b&&(f=b.Ac(),g=b.hb(),l=b.Ha,m=b.Ia,h=b.Na,n=b.Ma);var q=this.b.rn,A,F,x,H,N=0,W=1,K,X,v=this.b.R,V=this.b.P,da=v/2,D=V/2,O=b?b.Dh:this.Dh,B=b?b.Ro:this.Ro,P=0,T=0,M=0,L=0,Q=v,qa=v,U=V,Ca=V,ra=x=0;H=c?c.u.hb():0;if(c){A=0;for(F=d.length;A<F;A++)x+=a.Qx(d[A].xb),ra+=a.Rx(d[A].xb);L=c.Oa;P=b.Wa(L.left,L.top,!0,!0);M=b.Wa(L.left,L.top,!1,!0);Q=b.Wa(L.right,L.bottom,!0,!0);U=b.Wa(L.right,L.bottom,!1,!0);0!==H&&(A=b.Wa(L.right,L.top,!0,!0),F=b.Wa(L.right,L.top,!1,!0),
T=b.Wa(L.left,L.bottom,!0,!0),L=b.Wa(L.left,L.bottom,!1,!0),H=Math.min(P,Q,A,T),Q=Math.max(P,Q,A,T),P=H,H=Math.min(M,U,F,L),U=Math.max(M,U,F,L),M=H);P-=x;M-=ra;Q+=x;U+=ra;B.left=P/v;B.top=1-M/V;B.right=Q/v;B.bottom=1-U/V;T=P=ta(P);L=M=ta(M);qa=Q=ua(Q);Ca=U=ua(U);T-=x;L-=ra;qa+=x;Ca+=ra;0>P&&(P=0);0>M&&(M=0);Q>v&&(Q=v);U>V&&(U=V);0>T&&(T=0);0>L&&(L=0);qa>v&&(qa=v);Ca>V&&(Ca=V);O.left=P/v;O.top=1-M/V;O.right=Q/v;O.bottom=1-U/V}else O.left=B.left=0,O.top=B.top=0,O.right=B.right=1,O.bottom=B.bottom=1;
ra=c&&(a.fj(d[0].xb)||0!==x||0!==ra||1!==c.opacity||c.type.Ja.ds)||b&&!c&&1!==b.opacity;a.Rs();if(ra){q[N]||(q[N]=a.Vc(v,V,this.b.la));if(q[N].Of!==v||q[N].Nf!==V)a.deleteTexture(q[N]),q[N]=a.Vc(v,V,this.b.la);a.Gc(0);a.ud(q[N]);X=Ca-L;a.clearRect(T,V-L-X,qa-T,X);c?c.yc(a):(a.Rc(this.b.Cb),a.xg(b.opacity),a.td(),a.translate(-da,-D),a.ed(),a.Af(P,U,Q,U,Q,M,P,M,O));B.left=B.top=0;B.right=B.bottom=1;c&&(H=O.top,O.top=O.bottom,O.bottom=H);N=1;W=0}a.xg(1);x=d.length-1;var Qa=a.Oo(d[x].xb)||!b&&!c&&!this.b.Wc;
A=H=0;for(F=d.length;A<F;A++){q[N]||(q[N]=a.Vc(v,V,this.b.la));if(q[N].Of!==v||q[N].Nf!==V)a.deleteTexture(q[N]),q[N]=a.Vc(v,V,this.b.la);a.Gc(d[A].xb);H=d[A].index;a.Gl(d[A].xb)&&(this.b.da=!0);0!=A||ra?(a.Ih(e,1/v,1/V,B.left,B.top,B.right,B.bottom,f,g,l,m,(l+h)/2,(m+n)/2,this.b.tb.J,c?c.$a[H]:b?b.$a[H]:this.$a[H]),a.Rc(null),A!==x||Qa?(a.ud(q[N]),X=Ca-L,K=V-L-X,a.clearRect(T,K,qa-T,X)):(c?a.Bf(c.hc,c.$b):b&&a.Bf(b.hc,b.$b),a.ud(e)),a.Rc(q[W]),a.td(),a.translate(-da,-D),a.ed(),a.Af(P,U,Q,U,Q,M,P,
M,O),A!==x||Qa||a.Rc(null)):(a.ud(q[N]),X=Ca-L,K=V-L-X,a.clearRect(T,K,qa-T,X),c?(c.Ta&&c.Ta.Sa?(K=c.Ta.Sa,W=1/K.width,K=1/K.height):(W=1/c.width,K=1/c.height),a.Ih(e,W,K,B.left,B.top,B.right,B.bottom,f,g,l,m,(l+h)/2,(m+n)/2,this.b.tb.J,c.$a[H]),c.yc(a)):(a.Ih(e,1/v,1/V,0,0,1,1,f,g,l,m,(l+h)/2,(m+n)/2,this.b.tb.J,b?b.$a[H]:this.$a[H]),a.Rc(b?this.b.Cb:this.b.ub),a.td(),a.translate(-da,-D),a.ed(),a.Af(P,U,Q,U,Q,M,P,M,O)),B.left=B.top=0,B.right=B.bottom=1,c&&!Qa&&(H=U,U=M,M=H));N=0===N?1:0;W=0===N?
1:0}Qa&&(a.Gc(0),c?a.Bf(c.hc,c.$b):b?a.Bf(b.hc,b.$b):this.b.Wc||(a.yg(this.b.width,this.b.height),da=this.b.width/2,D=this.b.height/2,M=P=0,Q=this.b.width,U=this.b.height),a.ud(e),a.Rc(q[W]),a.td(),a.translate(-da,-D),a.ed(),c&&1===d.length&&!ra?a.Af(P,M,Q,M,Q,U,P,U,O):a.Af(P,U,Q,U,Q,M,P,M,O),a.Rc(null))};h.prototype.Dk=function(a){var b,c;b=0;for(c=this.ca.length;b<c;b++)if(this.ca[b].ra===a)return this.ca[b];return null};h.prototype.Xa=function(){var a,b,c,e={sx:this.scrollX,sy:this.scrollY,s:this.scale,
a:this.q,w:this.width,h:this.height,fv:this.Vg,persist:this.zf,fx:[],layers:{}};a=0;for(b=this.Z.length;a<b;a++)c=this.Z[a],e.fx.push({name:c.name,active:c.Ka,params:this.$a[c.index]});a=0;for(b=this.ca.length;a<b;a++)c=this.ca[a],e.layers[c.ra.toString()]=c.Xa();return e};h.prototype.kb=function(a){var b,c,e,d;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.q=a.a;this.width=a.w;this.height=a.h;this.zf=a.persist;"undefined"!==typeof a.fv&&(this.Vg=a.fv);var f=a.fx;b=0;for(c=f.length;b<c;b++)if(e=
this.un(f[b].name))e.Ka=f[b].active,this.$a[e.index]=f[b].params;this.Ld();b=a.layers;for(d in b)b.hasOwnProperty(d)&&(a=this.Dk(parseInt(d,10)))&&a.kb(b[d])};Kb=h;d.prototype.Ld=function(){y(this.Aa);this.Pe=!0;var a,b,c;a=0;for(b=this.Z.length;a<b;a++)c=this.Z[a],c.Ka&&(this.Aa.push(c),c.Gd||(this.Pe=!1))};d.prototype.un=function(a){var b,c,e;b=0;for(c=this.Z.length;b<c;b++)if(e=this.Z[b],e.name===a)return e;return null};d.prototype.ow=function(){var a,b,c,e,d,f;b=a=0;for(c=this.Yc.length;a<c;a++){e=
this.Yc[a];d=this.b.D[e[1]];f=this.b.up(d);d=!0;if(!f||this.jb.Vg){e=this.b.hf(e,this,!0);if(!e)continue;q.push(e);e.type.global&&(d=!1,this.ei.push(e.uid))}d&&(this.Yc[b]=this.Yc[a],b++)}this.Yc.length=b;this.b.Xb();!this.b.F&&this.Z.length&&(this.Yb=this.Pw);this.ci=mb(this.Yb);this.b.G&&nb(this,this.Yb,this.b.G);this.Id=!0};d.prototype.Eh=function(a,b){var c=Fa(this.k,a);0>c||(b&&this.fd&&a.Ec&&a.Ec.right>=a.Ec.left&&(a.Ga(),this.Tb.update(a,a.Ec,null),a.Ec.set(0,0,-1,-1)),c===this.k.length-1?
this.k.pop():(za(this.k,c),this.nj(c)),this.Id=!0)};d.prototype.$h=function(a,b){a.Md=this.k.length;this.k.push(a);b&&this.fd&&a.Ec&&a.X();this.Id=!0};d.prototype.gz=function(a){this.k.unshift(a);this.nj(0)};d.prototype.Oy=function(a,b,c){var e=a.Xd();b=b.Xd();za(this.k,e);e<b&&b--;c&&b++;b===this.k.length?this.k.push(a):this.k.splice(b,0,a);this.nj(e<b?e:b)};d.prototype.nj=function(a){-1===this.We?this.We=a:a<this.We&&(this.We=a);this.Id=this.Eg=!0};d.prototype.zp=function(){if(this.Eg){-1===this.We&&
(this.We=0);var a,b,c;if(this.fd)for(a=this.We,b=this.k.length;a<b;++a)c=this.k[a],c.Md=a,this.Tb.Ky(c.Ec);else for(a=this.We,b=this.k.length;a<b;++a)this.k[a].Md=a;this.Eg=!1;this.We=-1}};d.prototype.Ac=function(a){return this.Nx()*(this.b.Wc||a?this.b.ai:1)};d.prototype.Nx=function(){return(this.scale*this.jb.scale-1)*this.Nd+1};d.prototype.hb=function(){return this.ye?0:La(this.jb.q+this.q)};var c=[],b=[],e=[];d.prototype.zn=function(){this.zp();this.Tb.Il(this.Ha,this.Ia,this.Na,this.Ma,e);if(!e.length)return f();
if(1===e.length){var a=f();Da(a,e[0]);y(e);return a}for(var c=!0;1<e.length;){for(var a=e,d=void 0,g=void 0,h=void 0,n=void 0,q=void 0,d=0,g=a.length;d<g-1;d+=2){var h=a[d],n=a[d+1],q=f(),l=h,t=n,J=q,r=0,w=0,A=0,F=l.length,x=t.length,H=void 0,N=void 0;for(J.length=F+x;r<F&&w<x;++A)H=l[r],N=t[w],H.Md<N.Md?(J[A]=H,++r):(J[A]=N,++w);for(;r<F;++r,++A)J[A]=l[r];for(;w<x;++w,++A)J[A]=t[w];c||(m(h),m(n));b.push(q)}1===g%2&&(c?(h=f(),Da(h,a[g-1]),b.push(h)):b.push(a[g-1]));Da(a,b);y(b);c=!1}a=e[0];y(e);return a};
d.prototype.ld=function(a){this.ge=this.yk||1!==this.opacity||0!==this.Yb;var b=this.b.canvas,c=a,e=!1;this.ge&&(this.b.Xk||(this.b.Xk=document.createElement("canvas"),b=this.b.Xk,b.width=this.b.R,b.height=this.b.P,this.b.Hr=b.getContext("2d"),e=!0),b=this.b.Xk,c=this.b.Hr,b.width!==this.b.R&&(b.width=this.b.R,e=!0),b.height!==this.b.P&&(b.height=this.b.P,e=!0),e&&(c.webkitImageSmoothingEnabled=this.b.la,c.mozImageSmoothingEnabled=this.b.la,c.msImageSmoothingEnabled=this.b.la,c.imageSmoothingEnabled=
this.b.la),this.Kd&&c.clearRect(0,0,this.b.R,this.b.P));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.Kd||(c.fillStyle="rgb("+this.Ad[0]+","+this.Ad[1]+","+this.Ad[2]+")",c.fillRect(0,0,this.b.R,this.b.P));c.save();this.ye=!0;var e=this.Nb(0,0,!0,!0),d=this.Nb(0,0,!1,!0);this.ye=!1;this.b.Fd&&(e=Math.round(e),d=Math.round(d));this.Ll(e,d,c);var f=this.Ac();c.scale(f,f);c.translate(-e,-d);this.fd?(this.Ob.left=this.Tb.pc(this.Ha),this.Ob.top=this.Tb.qc(this.Ia),this.Ob.right=this.Tb.pc(this.Na),
this.Ob.bottom=this.Tb.qc(this.Ma),this.Id||!this.Ob.hi(this.kh)?(m(this.He),e=this.zn(),this.Id=!1,this.kh.Lg(this.Ob)):e=this.He):e=this.k;for(var g,l=null,d=0,f=e.length;d<f;++d)g=e[d],g!==l&&(this.Kw(g,c),l=g);this.fd&&(this.He=e);c.restore();this.ge&&(a.globalCompositeOperation=this.ci,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};d.prototype.Kw=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Ga();var c=a.Oa;c.right<this.Ha||c.bottom<this.Ia||c.left>this.Na||c.top>this.Ma||(b.globalCompositeOperation=
a.ci,a.ld(b))}};d.prototype.pm=function(){this.ye=!0;var a=this.Nb(0,0,!0,!0),b=this.Nb(0,0,!1,!0);this.ye=!1;this.b.Fd&&(a=Math.round(a),b=Math.round(b));this.Ll(a,b,null)};d.prototype.Ll=function(a,b,c){var e=this.Ac();this.Ha=a;this.Ia=b;this.Na=a+1/e*this.b.R;this.Ma=b+1/e*this.b.P;this.Ha>this.Na&&(a=this.Ha,this.Ha=this.Na,this.Na=a);this.Ia>this.Ma&&(a=this.Ia,this.Ia=this.Ma,this.Ma=a);a=this.hb();0!==a&&(c&&(c.translate(this.b.R/2,this.b.P/2),c.rotate(-a),c.translate(this.b.R/-2,this.b.P/
-2)),this.Se.set(this.Ha,this.Ia,this.Na,this.Ma),this.Se.offset((this.Ha+this.Na)/-2,(this.Ia+this.Ma)/-2),this.tt.$s(this.Se,a),this.tt.wq(this.Se),this.Se.offset((this.Ha+this.Na)/2,(this.Ia+this.Ma)/2),this.Ha=this.Se.left,this.Ia=this.Se.top,this.Na=this.Se.right,this.Ma=this.Se.bottom)};d.prototype.Qg=function(a){if(this.ge=this.yk){this.b.Cb||(this.b.Cb=a.Vc(this.b.R,this.b.P,this.b.la));if(this.b.Cb.Of!==this.b.R||this.b.Cb.Nf!==this.b.P)a.deleteTexture(this.b.Cb),this.b.Cb=a.Vc(this.b.R,
this.b.P,this.b.la);a.ud(this.b.Cb)}this.ye=!0;var b=this.Nb(0,0,!0,!0),c=this.Nb(0,0,!1,!0);this.ye=!1;this.b.Fd&&(b=Math.round(b),c=Math.round(c));this.Ll(b,c,null);b=this.Ac();a.td();a.scale(b,b);a.Ml(-this.hb());a.translate((this.Ha+this.Na)/-2,(this.Ia+this.Ma)/-2);a.ed();this.fd?(this.Ob.left=this.Tb.pc(this.Ha),this.Ob.top=this.Tb.qc(this.Ia),this.Ob.right=this.Tb.pc(this.Na),this.Ob.bottom=this.Tb.qc(this.Ma),this.Id||!this.Ob.hi(this.kh)?(m(this.He),b=this.zn(),this.Id=!1,this.kh.Lg(this.Ob)):
b=this.He):b=this.k;for(var e,d=null,c=b.length-1;0<=c;--c)e=b[c],e!==d&&(this.Mw(b[c],a),d=e);this.fd&&(this.He=b);this.Kd||(this.Xm=this.b.Sf++,a.Ql(this.Xm),a.Ss(1,1,1),a.Tq(),a.vz())};d.prototype.yc=function(a){var b=0,c=0;if(this.ge=this.yk||1!==this.opacity||0<this.Aa.length||0!==this.Yb){this.b.Cb||(this.b.Cb=a.Vc(this.b.R,this.b.P,this.b.la));if(this.b.Cb.Of!==this.b.R||this.b.Cb.Nf!==this.b.P)a.deleteTexture(this.b.Cb),this.b.Cb=a.Vc(this.b.R,this.b.P,this.b.la);a.ud(this.b.Cb);this.Kd&&
a.clear(0,0,0,0)}this.Kd||(this.b.Qa?(a.Ql(this.Xm),a.Ss(this.Ad[0]/255,this.Ad[1]/255,this.Ad[2]/255),a.Tq(),a.Lz()):a.clear(this.Ad[0]/255,this.Ad[1]/255,this.Ad[2]/255,1));this.ye=!0;var e=this.Nb(0,0,!0,!0),b=this.Nb(0,0,!1,!0);this.ye=!1;this.b.Fd&&(e=Math.round(e),b=Math.round(b));this.Ll(e,b,null);e=this.Ac();a.td();a.scale(e,e);a.Ml(-this.hb());a.translate((this.Ha+this.Na)/-2,(this.Ia+this.Ma)/-2);a.ed();this.fd?(this.Ob.left=this.Tb.pc(this.Ha),this.Ob.top=this.Tb.qc(this.Ia),this.Ob.right=
this.Tb.pc(this.Na),this.Ob.bottom=this.Tb.qc(this.Ma),this.Id||!this.Ob.hi(this.kh)?(m(this.He),b=this.zn(),this.Id=!1,this.kh.Lg(this.Ob)):b=this.He):b=this.k;var d,f,g=null,c=0;for(d=b.length;c<d;++c)f=b[c],f!==g&&(this.Lw(b[c],a),g=f);this.fd&&(this.He=b);this.ge&&(b=this.Aa.length?this.Aa[0].xb:0,c=this.Aa.length?this.Aa[0].index:0,0===this.Aa.length||1===this.Aa.length&&!a.Oo(b)&&1===this.opacity?(1===this.Aa.length?(a.Gc(b),a.Ih(this.jb.qi(),1/this.b.R,1/this.b.P,0,0,1,1,e,this.hb(),this.Ha,
this.Ia,(this.Ha+this.Na)/2,(this.Ia+this.Ma)/2,this.b.tb.J,this.$a[c]),a.Gl(b)&&(this.b.da=!0)):a.Gc(0),a.ud(this.jb.qi()),a.xg(this.opacity),a.Rc(this.b.Cb),a.Bf(this.hc,this.$b),a.td(),a.ed(),e=this.b.R/2,b=this.b.P/2,a.Ch(-e,b,e,b,e,-b,-e,-b),a.Rc(null)):this.jb.To(a,this,null,this.jb.qi()))};d.prototype.Lw=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Ga();var c=a.Oa;c.right<this.Ha||c.bottom<this.Ia||c.left>this.Na||c.top>this.Ma||(b.Ql(a.Sf),a.Gt?this.Nw(a,b):(b.Gc(0),b.Bf(a.hc,
a.$b),a.yc(b)))}};d.prototype.Mw=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Ga();var c=a.Oa;c.right<this.Ha||c.bottom<this.Ia||c.left>this.Na||c.top>this.Ma||(a.Sf=this.b.Sf++,0===a.Yb&&1===a.opacity&&a.Pe&&a.Qg&&(b.Ql(a.Sf),a.Qg(b)))}};d.prototype.Nw=function(a,b){var c=a.Aa[0].xb,e=a.Aa[0].index,d=this.Ac();if(1!==a.Aa.length||b.Oo(c)||b.iz(c)||(a.q||a.u.hb())&&b.fj(c)||1!==a.opacity||a.type.Ja.ds)this.jb.To(b,this,a,this.ge?this.b.Cb:this.jb.qi()),b.td(),b.scale(d,d),b.Ml(-this.hb()),
b.translate((this.Ha+this.Na)/-2,(this.Ia+this.Ma)/-2),b.ed();else{b.Gc(c);b.Bf(a.hc,a.$b);b.Gl(c)&&(this.b.da=!0);var f=0,g=0,l=0,m=0;b.fj(c)&&(m=a.Oa,f=this.Wa(m.left,m.top,!0,!0),g=this.Wa(m.left,m.top,!1,!0),l=this.Wa(m.right,m.bottom,!0,!0),m=this.Wa(m.right,m.bottom,!1,!0),f=f/windowWidth,g=1-g/windowHeight,l=l/windowWidth,m=1-m/windowHeight);var h;a.Ta&&a.Ta.Sa?(h=a.Ta.Sa,c=1/h.width,h=1/h.height):(c=1/a.width,h=1/a.height);b.Ih(this.ge?this.b.Cb:this.jb.qi(),c,h,f,g,l,m,d,this.hb(),this.Ha,
this.Ia,(this.Ha+this.Na)/2,(this.Ia+this.Ma)/2,this.b.tb.J,a.$a[e]);a.yc(b)}};d.prototype.Nb=function(a,b,c,e){var d=this.b.devicePixelRatio;this.b.fg&&(a*=d,b*=d);var d=this.b.Es,f=this.b.Fs,d=(this.jb.scrollX-d)*this.rd+d,f=(this.jb.scrollY-f)*this.sd+f,g=d,l=f,m=1/this.Ac(!e);e?(g-=this.b.R*m/2,l-=this.b.P*m/2):(g-=this.b.width*m/2,l-=this.b.height*m/2);g+=a*m;l+=b*m;b=this.hb();0!==b&&(g-=d,l-=f,a=Math.cos(b),b=Math.sin(b),e=g*a-l*b,l=l*a+g*b,g=e+d,l+=f);return c?g:l};d.prototype.Wa=function(a,
b,c,e){var d=this.b.Es,f=this.b.Fs,g=(this.jb.scrollX-d)*this.rd+d,l=(this.jb.scrollY-f)*this.sd+f,f=g,d=l,m=this.hb();if(0!==m){a-=g;b-=l;var h=Math.cos(-m),m=Math.sin(-m),n=a*h-b*m;b=b*h+a*m;a=n+g;b+=l}g=1/this.Ac(!e);e?(f-=this.b.R*g/2,d-=this.b.P*g/2):(f-=this.b.width*g/2,d-=this.b.height*g/2);f=(a-f)/g;d=(b-d)/g;a=this.b.devicePixelRatio;this.b.fg&&!e&&(f/=a,d/=a);return c?f:d};d.prototype.Xa=function(){var a,b,c,e={s:this.scale,a:this.q,vl:this.Ha,vt:this.Ia,vr:this.Na,vb:this.Ma,v:this.visible,
bc:this.Ad,t:this.Kd,px:this.rd,py:this.sd,o:this.opacity,zr:this.Nd,fx:[],cg:this.ei,instances:[]};a=0;for(b=this.Z.length;a<b;a++)c=this.Z[a],e.fx.push({name:c.name,active:c.Ka,params:this.$a[c.index]});return e};d.prototype.kb=function(a){var b,c,e;this.scale=a.s;this.q=a.a;this.Ha=a.vl;this.Ia=a.vt;this.Na=a.vr;this.Ma=a.vb;this.visible=a.v;this.Ad=a.bc;this.Kd=a.t;this.rd=a.px;this.sd=a.py;this.opacity=a.o;this.Nd=a.zr;this.ei=a.cg||[];Da(this.Yc,this.jt);var d=new ca;b=0;for(e=this.ei.length;b<
e;++b)d.add(this.ei[b]);c=b=0;for(e=this.Yc.length;b<e;++b)d.contains(this.Yc[b][2])||(this.Yc[c]=this.Yc[b],++c);Ba(this.Yc,c);c=a.fx;b=0;for(e=c.length;b<e;b++)if(a=this.un(c[b].name))a.Ka=c[b].active,this.$a[a.index]=c[b].params;this.Ld();this.k.sort(g);this.Eg=!0};Zb=d})();
(function(){function h(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 g(a,b){return a.index-b.index}function d(a){var b,c,e,d;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(g);a.length>=E.length&&(E.length=a.length+1);E[a.length]||(E[a.length]=[]);d=E[a.length];b=0;for(c=d.length;b<c;b++)if(e=d[b],h(a,e))return e;d.push(a);return a}
function f(a,b){this.b=a;this.xt={};this.Nq={};this.Hn=!1;this.jr=new ca;this.bn=[];this.Om=[];this.name=b[0];var c=b[1];this.lf=[];var e,d;e=0;for(d=c.length;e<d;e++)this.lr(c[e],null,this.lf)}function m(a){this.type=a;this.k=[];this.ea=[];this.fa=!0}function q(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.wa=[];this.Cf=[];this.ir=this.jm=this.qp=this.Kk=this.group=this.hp=!1;this.yb=[];this.gd=[];this.wd=[];this.si="";this.Yf=this.Kk=this.group=!1;this.bk=null;c[1]&&(this.si=c[1][1].toLowerCase(),
this.group=!0,this.Kk=!!c[1][0],this.bk=[],this.Yf=this.Kk,this.b.cf.push(this),this.b.Xg[this.si]=this);this.cd=c[2];this.ra=c[4];this.group||(this.b.uq[this.ra.toString()]=this);var e=c[5];a=0;for(b=e.length;a<b;a++){var d=new $b(this,e[a]);d.index=a;this.yb.push(d);this.nq(d.type)}e=c[6];a=0;for(b=e.length;a<b;a++)d=new ac(this,e[a]),d.index=a,this.gd.push(d);if(8===c.length)for(c=c[7],a=0,b=c.length;a<b;a++)this.sheet.lr(c[a],this,this.wd);this.Rk=!1;this.yb.length&&(this.Rk=null==this.yb[0].type&&
this.yb[0].Qb==I.prototype.n.Kp)}function n(a,b){var c,e,d;if(a&&(-1===b.indexOf(a)&&b.push(a),a.fc))for(c=0,e=a.Lc.length;c<e;c++)d=a.Lc[c],a!==d&&-1===b.indexOf(d)&&b.push(d)}function c(a,b){this.Uc=a;this.sheet=a.sheet;this.b=a.b;this.ka=[];this.bb=[];this.O={};this.index=-1;this.Yh=!1;this.Qb=this.b.Xe(b[1]);this.trigger=0<b[3];this.Mq=2===b[3];this.$d=b[4];this.Lk=b[5];this.Fy=b[6];this.ra=b[7];this.b.ff[this.ra.toString()]=this;-1===b[0]?(this.type=null,this.wb=this.Xo,this.Mf=null,this.Bd=
-1):(this.type=this.b.D[b[0]],this.wb=this.Fy?this.Cz:this.Wo,b[2]?(this.Mf=this.type.Bk(b[2]),this.Bd=this.type.sn(b[2])):(this.Mf=null,this.Bd=-1),this.Uc.parent&&this.Uc.parent.Rl());this.Mq&&(this.wb=this.Dz);if(10===b.length){var c,e,d=b[9];c=0;for(e=d.length;c<e;c++){var f=new bc(this,d[c]);this.ka.push(f)}this.bb.length=d.length}}function b(a,b){this.Uc=a;this.sheet=a.sheet;this.b=a.b;this.ka=[];this.bb=[];this.O={};this.index=-1;this.Yh=!1;this.Qb=this.b.Xe(b[1]);-1===b[0]?(this.type=null,
this.wb=this.Xo,this.Mf=null,this.Bd=-1):(this.type=this.b.D[b[0]],this.wb=this.Wo,b[2]?(this.Mf=this.type.Bk(b[2]),this.Bd=this.type.sn(b[2])):(this.Mf=null,this.Bd=-1));this.ra=b[3];this.b.$e[this.ra.toString()]=this;if(6===b.length){var c,e,d=b[5];c=0;for(e=d.length;c<e;c++){var f=new bc(this,d[c]);this.ka.push(f)}this.bb.length=d.length}}function e(){z++;C.length===z&&C.push(new cc);return C[z]}function a(a,b){this.Ra=a;this.Uc=a.Uc;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.Ud=null;this.Qe=
0;this.get=null;this.Bq=0;this.jb=null;this.key=0;this.object=null;this.index=0;this.Bj=this.Ag=this.Bj=this.Ag=this.Rq=this.Uf=this.Cj=null;this.yd=!1;var c,e,d;switch(b[0]){case 0:case 7:this.Ud=new dc(this,b[1]);this.Qe=0;this.get=this.Yx;break;case 1:this.Ud=new dc(this,b[1]);this.Qe=0;this.get=this.Zx;break;case 5:this.Ud=new dc(this,b[1]);this.Qe=0;this.get=this.cy;break;case 3:case 8:this.Bq=b[1];this.get=this.Wx;break;case 6:this.jb=this.b.lh[b[1]];this.get=this.ey;break;case 9:this.key=b[1];
this.get=this.by;break;case 4:this.object=this.b.D[b[1]];this.get=this.fy;this.Uc.nq(this.object);this.Ra instanceof ac?this.Uc.Rl():this.Uc.parent&&this.Uc.parent.Rl();break;case 10:this.index=b[1];a.type&&a.type.V?(this.get=this.$x,this.yd=!0):this.get=this.ay;break;case 11:this.Cj=b[1];this.Uf=null;this.get=this.Xx;break;case 2:case 12:this.Rq=b[1];this.get=this.Vx;break;case 13:for(this.get=this.gy,this.Ag=[],this.Bj=[],c=1,e=b.length;c<e;c++)d=new bc(this.Ra,b[c]),this.Ag.push(d),this.Bj.push(0)}}
function k(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.wa=[];this.name=c[1];this.Dj=c[2];this.Ln=c[3];this.Ii=!!c[4];this.Qk=!!c[5];this.ra=c[6];this.b.Sh[this.ra.toString()]=this;this.data=this.Ln;this.parent?(this.pg=this.Ii||this.Qk?-1:this.b.Nz++,this.b.Xv.push(this)):(this.pg=-1,this.b.Wv.push(this))}function p(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.wa=[];this.vi=null;this.oy=c[1];this.Ka=!0}function u(){this.lt=[];this.reset(null)}var E=[];f.prototype.toString=function(){return this.name};
f.prototype.lr=function(a,b,c){switch(a[0]){case 0:a=new ec(this,b,a);if(a.cd)for(c.push(a),c=0,b=a.yb.length;c<b;c++)a.yb[c].trigger&&this.mr(a,c);else a.ur()?this.mr(a,0):c.push(a);break;case 1:a=new Wb(this,b,a);c.push(a);break;case 2:a=new fc(this,b,a),c.push(a)}};f.prototype.nb=function(){var a,b;a=0;for(b=this.lf.length;a<b;a++)this.lf[a].nb(a<b-1&&this.lf[a+1].Rk)};f.prototype.wp=function(){y(this.bn);y(this.Om);this.mq(this);y(this.Om)};f.prototype.mq=function(a){var b,c,e,d,f=a.bn,k=a.Om,
g=this.jr.Te();b=0;for(c=g.length;b<c;++b)e=g[b],d=e.vi,!e.Ka||a===d||-1<k.indexOf(d)||(k.push(d),d.mq(a),f.push(d))};f.prototype.wb=function(a){this.b.GB||(this.Hn=!0,a||(this.b.Vn=!0));var b,c;b=0;for(c=this.lf.length;b<c;b++){var e=this.lf[b];e.wb();this.b.Wm(e.wa);this.b.pf&&this.b.Xb()}a||(this.b.Vn=!1)};f.prototype.mr=function(a,b){a.cd||this.b.mm.push(a);var c,e,d=a.yb[b],f;d.type?f=d.type.name:f="system";var k=(c=d.Mq)?this.Nq:this.xt;k[f]||(k[f]=[]);f=k[f];k=d.Qb;if(c){if(d.ka.length&&(d=
d.ka[0],1===d.type&&2===d.Ud.type)){d=d.Ud.value.toLowerCase();c=0;for(e=f.length;c<e;c++)if(f[c].method==k){c=f[c].ii;c[d]?c[d].push([a,b]):c[d]=[[a,b]];return}c={};c[d]=[[a,b]];f.push({method:k,ii:c})}}else{c=0;for(e=f.length;c<e;c++)if(f[c].method==k){f[c].ii.push([a,b]);return}R&&k===R.prototype.n.Ig?f.unshift({method:k,ii:[[a,b]]}):f.push({method:k,ii:[[a,b]]})}};Lb=f;m.prototype.Gn=function(){return this.fa?this.type.k.length:this.k.length};m.prototype.kc=function(){return this.fa?this.type.k:
this.k};m.prototype.zh=function(a){a&&(a.b.ab().gb.cd?(this.fa&&(y(this.k),Da(this.ea,a.type.k),this.fa=!1),a=this.ea.indexOf(a),-1!==a&&(this.k.push(this.ea[a]),this.ea.splice(a,1))):(this.fa=!1,y(this.k),this.k[0]=a))};tb=m;window._c2hh_="FACDD39DEB5CF25E0456EBE7F0BC77B7DADF9606";q.prototype.nb=function(a){var b,c=this.parent;if(this.group)for(this.jm=!0;c;){if(!c.group){this.jm=!1;break}c=c.parent}this.qp=!this.ur()&&(!this.parent||this.parent.group&&this.parent.jm);this.ir=!!a;this.Cf=this.wa.slice(0);
for(c=this.parent;c;){a=0;for(b=c.wa.length;a<b;a++)this.Uv(c.wa[a]);c=c.parent}this.wa=d(this.wa);this.Cf=d(this.Cf);a=0;for(b=this.yb.length;a<b;a++)this.yb[a].nb();a=0;for(b=this.gd.length;a<b;a++)this.gd[a].nb();a=0;for(b=this.wd.length;a<b;a++)this.wd[a].nb(a<b-1&&this.wd[a+1].Rk)};q.prototype.lj=function(a){if(this.Yf!==!!a){this.Yf=!!a;var b;a=0;for(b=this.bk.length;a<b;++a)this.bk[a].Ct();0<b&&this.b.qa.Tf&&this.b.qa.Tf.wp()}};q.prototype.nq=function(a){n(a,this.wa)};q.prototype.Uv=function(a){n(a,
this.Cf)};q.prototype.Rl=function(){this.hp=!0;this.parent&&this.parent.Rl()};q.prototype.ur=function(){return this.yb.length?this.yb[0].trigger:!1};q.prototype.wb=function(){var a,b,c=!1,e=this.b,d=this.b.ab();d.gb=this;var f=this.yb;this.Rk||(d.en=!1);if(this.cd){0===f.length&&(c=!0);d.pb=0;for(a=f.length;d.pb<a;d.pb++)b=f[d.pb],b.trigger||(b=b.wb())&&(c=!0);(d.ig=c)&&this.Nl()}else{d.pb=0;for(a=f.length;d.pb<a;d.pb++)if(b=f[d.pb].wb(),!b){d.ig=!1;this.qp&&e.pf&&e.Xb();return}d.ig=!0;this.Nl()}this.Rw(d)};
q.prototype.Rw=function(a){a.ig&&this.ir&&(a.en=!0);this.qp&&this.b.pf&&this.b.Xb()};q.prototype.Az=function(a){this.b.ab().gb=this;this.yb[a].wb()&&(this.Nl(),this.b.ab().ig=!0)};q.prototype.Nl=function(){var a=this.b.ab(),b;a.rc=0;for(b=this.gd.length;a.rc<b;a.rc++)if(this.gd[a.rc].wb())return;this.Qs()};q.prototype.xz=function(){var a=this.b.ab(),b;for(b=this.gd.length;a.rc<b;a.rc++)if(this.gd[a.rc].wb())return;this.Qs()};q.prototype.Qs=function(){if(this.wd.length){var a,b,c,e,d=this.wd.length-
1;this.b.Hl(this);if(this.hp)for(a=0,b=this.wd.length;a<b;a++)c=this.wd[a],(e=!this.jm||!this.group&&a<d)&&this.b.ug(c.wa),c.wb(),e?this.b.fe(c.wa):this.b.Wm(c.wa);else for(a=0,b=this.wd.length;a<b;a++)this.wd[a].wb();this.b.Dl()}};q.prototype.Bz=function(){var a=this.b.ab();a.gb=this;var b=!1,c;a.pb=0;for(c=this.yb.length;a.pb<c;a.pb++)if(this.yb[a.pb].wb())b=!0;else if(!this.cd)return!1;return this.cd?b:!0};q.prototype.vg=function(){this.b.Vf++;var a=this.b.ab().pb,b=this.b.Hl(this);if(!this.cd)for(b.pb=
a+1,a=this.yb.length;b.pb<a;b.pb++)if(!this.yb[b.pb].wb()){this.b.Dl();return}this.Nl();this.b.Dl()};q.prototype.yy=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.yb[b].type===a.type)return!1;return!0};ec=q;c.prototype.nb=function(){var a,b,c;a=0;for(b=this.ka.length;a<b;a++)c=this.ka[a],c.nb(),c.yd&&(this.Yh=!0)};c.prototype.Dz=function(){return!0};c.prototype.Xo=function(){var a,b;a=0;for(b=this.ka.length;a<b;a++)this.bb[a]=this.ka[a].get();return Va(this.Qb.apply(this.b.je,
this.bb),this.Lk)};c.prototype.Cz=function(){var a,b;a=0;for(b=this.ka.length;a<b;a++)this.bb[a]=this.ka[a].get();a=this.Qb.apply(this.Mf?this.Mf:this.type,this.bb);this.type.Tc();return a};c.prototype.Wo=function(){var a,b,c,e,d,f,k,g,m=this.type,h=m.T(),n=this.Uc.cd&&!this.trigger;b=0;var q=m.fc,u=m.V,p=m.Be,z=this.Bd,C=-1<z,E=this.Yh,O=this.ka,B=this.bb,P=this.Lk,T=this.Qb,M;if(E)for(b=0,d=O.length;b<d;++b)f=O[b],f.yd||(B[b]=f.get(0));else for(b=0,d=O.length;b<d;++b)B[b]=O[b].get(0);if(h.fa){y(h.k);
y(h.ea);M=m.k;a=0;for(e=M.length;a<e;++a){g=M[a];if(E)for(b=0,d=O.length;b<d;++b)f=O[b],f.yd&&(B[b]=f.get(a));C?(b=0,u&&(b=g.type.Ug[p]),b=T.apply(g.aa[z+b],B)):b=T.apply(g,B);(k=Va(b,P))?h.k.push(g):n&&h.ea.push(g)}m.finish&&m.finish(!0);h.fa=!1;m.Tc();return h.Gn()}c=0;M=(k=n&&!this.Uc.yy(this))?h.ea:h.k;var L=!1;a=0;for(e=M.length;a<e;++a){g=M[a];if(E)for(b=0,d=O.length;b<d;++b)f=O[b],f.yd&&(B[b]=f.get(a));C?(b=0,u&&(b=g.type.Ug[p]),b=T.apply(g.aa[z+b],B)):b=T.apply(g,B);if(Va(b,P))if(L=!0,k){if(h.k.push(g),
q)for(b=0,d=g.siblings.length;b<d;b++)f=g.siblings[b],f.type.T().k.push(f)}else{M[c]=g;if(q)for(b=0,d=g.siblings.length;b<d;b++)f=g.siblings[b],f.type.T().k[c]=f;c++}else if(k){M[c]=g;if(q)for(b=0,d=g.siblings.length;b<d;b++)f=g.siblings[b],f.type.T().ea[c]=f;c++}else if(n&&(h.ea.push(g),q))for(b=0,d=g.siblings.length;b<d;b++)f=g.siblings[b],f.type.T().ea.push(f)}Ba(M,c);if(q)for(u=m.Lc,a=0,e=u.length;a<e;a++)g=u[a].T(),k?Ba(g.ea,c):Ba(g.k,c);c=L;if(k&&!L)for(a=0,e=h.k.length;a<e;a++){g=h.k[a];if(E)for(b=
0,d=O.length;b<d;b++)f=O[b],f.yd&&(B[b]=f.get(a));b=C?T.apply(g.aa[z],B):T.apply(g,B);if(Va(b,P)){L=!0;break}}m.finish&&m.finish(c||n);return n?L:h.Gn()};$b=c;b.prototype.nb=function(){var a,b,c;a=0;for(b=this.ka.length;a<b;a++)c=this.ka[a],c.nb(),c.yd&&(this.Yh=!0)};b.prototype.Xo=function(){var a=this.b,b,c,e=this.ka,d=this.bb;b=0;for(c=e.length;b<c;++b)d[b]=e[b].get();return this.Qb.apply(a.je,d)};b.prototype.Wo=function(){var a=this.type,b=this.Bd,c=a.Be,e=this.Yh,d=this.ka,f=this.bb,k=this.Qb,
g=a.T().kc(),a=a.V,m=-1<b,h,n,q,u,p,z;if(e)for(n=0,u=d.length;n<u;++n)p=d[n],p.yd||(f[n]=p.get(0));else for(n=0,u=d.length;n<u;++n)f[n]=d[n].get(0);h=0;for(q=g.length;h<q;++h){z=g[h];if(e)for(n=0,u=d.length;n<u;++n)p=d[n],p.yd&&(f[n]=p.get(h));m?(n=0,a&&(n=z.type.Ug[c]),k.apply(z.aa[b+n],f)):k.apply(z,f)}return!1};ac=b;var C=[],z=-1;a.prototype.nb=function(){var a,b;if(11===this.type)this.Uf=this.b.$q(this.Cj,this.Uc.parent);else if(13===this.type)for(a=0,b=this.Ag.length;a<b;a++)this.Ag[a].nb();
this.Ud&&this.Ud.nb()};a.prototype.My=function(a){this.yd||!a||a.Ja.Vl||(this.yd=!0)};a.prototype.Ys=function(){this.yd=!0};a.prototype.Yx=function(a){this.Qe=a||0;a=e();this.Ud.get(a);z--;return a.data};a.prototype.Zx=function(a){this.Qe=a||0;a=e();this.Ud.get(a);z--;return ka(a.data)?a.data:""};a.prototype.fy=function(){return this.object};a.prototype.Wx=function(){return this.Bq};a.prototype.cy=function(a){this.Qe=a||0;a=e();this.Ud.get(a);z--;return a.Jb()?this.b.oi(a.data):this.b.xn(a.data)};
a.prototype.ey=function(){return this.jb};a.prototype.by=function(){return this.key};a.prototype.ay=function(){return this.index};a.prototype.$x=function(a){a=a||0;var b=this.Ra.type,c=null,c=b.T(),e=c.kc();if(e.length)c=e[a%e.length].type;else if(c.ea.length)c=c.ea[a%c.ea.length].type;else if(b.k.length)c=b.k[a%b.k.length].type;else return 0;return this.index+c.rk[b.Be]};a.prototype.Xx=function(){return this.Uf};a.prototype.Vx=function(){return this.Rq};a.prototype.gy=function(){var a,b;a=0;for(b=
this.Ag.length;a<b;a++)this.Bj[a]=this.Ag[a].get();return this.Bj};bc=a;k.prototype.nb=function(){this.wa=d(this.wa)};k.prototype.Oe=function(a){var b=this.b.Xq();this.parent&&!this.Ii&&b?(this.pg>=b.length&&(b.length=this.pg+1),b[this.pg]=a):this.data=a};k.prototype.Xf=function(){var a=this.b.Xq();return!this.parent||this.Ii||!a||this.Qk?this.data:this.pg>=a.length||"undefined"===typeof a[this.pg]?this.Ln:a[this.pg]};k.prototype.wb=function(){!this.parent||this.Ii||this.Qk||this.Oe(this.Ln)};Wb=
k;p.prototype.toString=function(){return"include:"+this.vi.toString()};p.prototype.nb=function(){this.vi=this.b.hn[this.oy];this.sheet.jr.add(this);this.wa=d(this.wa);for(var a=this.parent;a;)a.group&&a.bk.push(this),a=a.parent;this.Ct()};p.prototype.wb=function(){this.parent&&this.b.hj(this.b.D);this.vi.Hn||this.vi.wb(!0);this.parent&&this.b.fe(this.b.D)};p.prototype.Ct=function(){for(var a=this.parent;a;){if(a.group&&!a.Yf){this.Ka=!1;return}a=a.parent}this.Ka=!0};fc=p;u.prototype.reset=function(a){this.gb=
a;this.rc=this.pb=0;y(this.lt);this.en=this.ig=!1};u.prototype.rr=function(){return this.gb.hp?!0:this.pb<this.gb.yb.length-1?!!this.gb.wa.length:!1};Vb=u})();
(function(){function h(d,c){this.Ra=d;this.b=d.b;this.type=c[0];this.get=[this.kx,this.gx,this.wx,this.zx,this.Tw,this.xx,this.qx,this.ax,this.ox,this.vx,this.Uw,this.ux,this.bx,this.rx,this.mx,this.nx,this.hx,this.ix,this.$w,this.yx,this.tx,this.jx,this.Zw,this.cx][this.type];var b=null;this.Ie=this.ka=this.bb=this.Qb=this.im=this.second=this.first=this.value=null;this.Bd=-1;this.Dd=null;this.Ht=-1;this.Uf=this.Cj=null;this.Gh=!1;switch(this.type){case 0:case 1:case 2:this.value=c[1];break;case 3:this.first=
new dc(d,c[1]);break;case 18:this.first=new dc(d,c[1]);this.second=new dc(d,c[2]);this.im=new dc(d,c[3]);break;case 19:this.Qb=this.b.Xe(c[1]);this.Qb!==I.prototype.L.random&&this.Qb!==I.prototype.L.iw||this.Ra.Ys();this.bb=[];this.ka=[];3===c.length?(b=c[2],this.bb.length=b.length+1):this.bb.length=1;break;case 20:this.Ie=this.b.D[c[1]];this.Bd=-1;this.Qb=this.b.Xe(c[2]);this.Gh=c[3];sc&&this.Qb===sc.prototype.L.Hp&&this.Ra.Ys();c[4]?this.Dd=new dc(d,c[4]):this.Dd=null;this.bb=[];this.ka=[];6===
c.length?(b=c[5],this.bb.length=b.length+1):this.bb.length=1;break;case 21:this.Ie=this.b.D[c[1]];this.Gh=c[2];c[3]?this.Dd=new dc(d,c[3]):this.Dd=null;this.Ht=c[4];break;case 22:this.Ie=this.b.D[c[1]];this.Ie.Bk(c[2]);this.Bd=this.Ie.sn(c[2]);this.Qb=this.b.Xe(c[3]);this.Gh=c[4];c[5]?this.Dd=new dc(d,c[5]):this.Dd=null;this.bb=[];this.ka=[];7===c.length?(b=c[6],this.bb.length=b.length+1):this.bb.length=1;break;case 23:this.Cj=c[1],this.Uf=null}this.Ra.My(this.Ie);4<=this.type&&17>=this.type&&(this.first=
new dc(d,c[1]),this.second=new dc(d,c[2]));if(b){var e,a;e=0;for(a=b.length;e<a;e++)this.ka.push(new dc(d,b[e]))}}function g(){++q;m.length===q&&m.push(new cc);return m[q]}function d(d,c,b){var e,a;e=0;for(a=d.length;e<a;++e)d[e].get(b),c[e+1]=b.data}function f(d,c){this.type=d||gc.Gg;this.data=c||0;this.sg=null;this.type==gc.Gg&&(this.data=Math.floor(this.data))}h.prototype.nb=function(){23===this.type&&(this.Uf=this.Ra.b.$q(this.Cj,this.Ra.Uc.parent));this.first&&this.first.nb();this.second&&this.second.nb();
this.im&&this.im.nb();this.Dd&&this.Dd.nb();if(this.ka){var d,c;d=0;for(c=this.ka.length;d<c;d++)this.ka[d].nb()}};var m=[],q=-1;h.prototype.yx=function(f){var c=this.ka,b=this.bb;b[0]=f;f=g();d(c,b,f);--q;this.Qb.apply(this.b.je,b)};h.prototype.tx=function(f){var c=this.Ie,b=this.bb,e=this.ka,a=this.Dd,k=this.Qb,m=this.Ra.Qe,h=c.T(),E=h.kc();if(!E.length)if(h.ea.length)E=h.ea;else{this.Gh?f.ob(""):f.ga(0);return}b[0]=f;f.sg=c;f=g();d(e,b,f);a&&(a.get(f),f.Jb()&&(m=f.data,E=c.k));--q;c=E.length;if(m>=
c||m<=-c)m%=c;0>m&&(m+=c);k.apply(E[m],b)};h.prototype.Zw=function(f){var c=this.Ie,b=this.bb,e=this.ka,a=this.Dd,k=this.Bd,m=this.Qb,h=this.Ra.Qe,E=c.T(),C=E.kc();if(!C.length)if(E.ea.length)C=E.ea;else{this.Gh?f.ob(""):f.ga(0);return}b[0]=f;f.sg=c;f=g();d(e,b,f);a&&(a.get(f),f.Jb()&&(h=f.data,C=c.k));--q;e=C.length;if(h>=e||h<=-e)h%=e;0>h&&(h+=e);h=C[h];C=0;c.V&&(C=h.type.Ug[c.Be]);m.apply(h.aa[k+C],b)};h.prototype.jx=function(d){var c=this.Dd,b=this.Ie,e=this.Ht,a=this.Ra.Qe,f=b.T(),m=f.kc();if(!m.length)if(f.ea.length)m=
f.ea;else{this.Gh?d.ob(""):d.ga(0);return}if(c){f=g();c.get(f);if(f.Jb()){a=f.data;m=b.k;0!==m.length&&(a%=m.length,0>a&&(a+=m.length));a=b.wn(a);b=a.Bb[e];ka(b)?d.ob(b):d.I(b);--q;return}--q}c=m.length;if(a>=c||a<=-c)a%=c;0>a&&(a+=c);a=m[a];m=0;b.V&&(m=a.type.rk[b.Be]);b=a.Bb[e+m];ka(b)?d.ob(b):d.I(b)};h.prototype.kx=function(d){d.type=gc.Gg;d.data=this.value};h.prototype.gx=function(d){d.type=gc.Fg;d.data=this.value};h.prototype.wx=function(d){d.type=gc.String;d.data=this.value};h.prototype.zx=
function(d){this.first.get(d);d.Jb()&&(d.data=-d.data)};h.prototype.Tw=function(d){this.first.get(d);var c=g();this.second.get(c);d.Jb()&&c.Jb()&&(d.data+=c.data,c.dh()&&d.ph());--q};h.prototype.xx=function(d){this.first.get(d);var c=g();this.second.get(c);d.Jb()&&c.Jb()&&(d.data-=c.data,c.dh()&&d.ph());--q};h.prototype.qx=function(d){this.first.get(d);var c=g();this.second.get(c);d.Jb()&&c.Jb()&&(d.data*=c.data,c.dh()&&d.ph());--q};h.prototype.ax=function(d){this.first.get(d);var c=g();this.second.get(c);
d.Jb()&&c.Jb()&&(d.data/=c.data,d.ph());--q};h.prototype.ox=function(d){this.first.get(d);var c=g();this.second.get(c);d.Jb()&&c.Jb()&&(d.data%=c.data,c.dh()&&d.ph());--q};h.prototype.vx=function(d){this.first.get(d);var c=g();this.second.get(c);d.Jb()&&c.Jb()&&(d.data=Math.pow(d.data,c.data),c.dh()&&d.ph());--q};h.prototype.Uw=function(d){this.first.get(d);var c=g();this.second.get(c);c.gh()||d.gh()?this.Ww(d,c):this.Vw(d,c);--q};h.prototype.Ww=function(d,c){d.gh()&&c.gh()?this.Yw(d,c):this.Xw(d,
c)};h.prototype.Yw=function(d,c){d.data+=c.data};h.prototype.Xw=function(d,c){d.gh()?d.data+=(Math.round(1E10*c.data)/1E10).toString():d.ob(d.data.toString()+c.data)};h.prototype.Vw=function(d,c){d.ga(d.data&&c.data?1:0)};h.prototype.ux=function(d){this.first.get(d);var c=g();this.second.get(c);d.Jb()&&c.Jb()&&(d.data||c.data?d.ga(1):d.ga(0));--q};h.prototype.$w=function(d){this.first.get(d);d.data?this.second.get(d):this.im.get(d)};h.prototype.bx=function(d){this.first.get(d);var c=g();this.second.get(c);
d.ga(d.data===c.data?1:0);--q};h.prototype.rx=function(d){this.first.get(d);var c=g();this.second.get(c);d.ga(d.data!==c.data?1:0);--q};h.prototype.mx=function(d){this.first.get(d);var c=g();this.second.get(c);d.ga(d.data<c.data?1:0);--q};h.prototype.nx=function(d){this.first.get(d);var c=g();this.second.get(c);d.ga(d.data<=c.data?1:0);--q};h.prototype.hx=function(d){this.first.get(d);var c=g();this.second.get(c);d.ga(d.data>c.data?1:0);--q};h.prototype.ix=function(d){this.first.get(d);var c=g();
this.second.get(c);d.ga(d.data>=c.data?1:0);--q};h.prototype.cx=function(d){var c=this.Uf.Xf();ja(c)?d.I(c):d.ob(c)};dc=h;f.prototype.dh=function(){return this.type===gc.Fg};f.prototype.Jb=function(){return this.type===gc.Gg||this.type===gc.Fg};f.prototype.gh=function(){return this.type===gc.String};f.prototype.ph=function(){this.dh()||(this.gh()&&(this.data=parseFloat(this.data)),this.type=gc.Fg)};f.prototype.ga=function(d){this.type=gc.Gg;this.data=Math.floor(d)};f.prototype.I=function(d){this.type=
gc.Fg;this.data=d};f.prototype.ob=function(d){this.type=gc.String;this.data=d};f.prototype.oj=function(d){ja(d)?(this.type=gc.Fg,this.data=d):ka(d)?(this.type=gc.String,this.data=d.toString()):(this.type=gc.Gg,this.data=0)};cc=f;gc={Gg:0,Fg:1,String:2}})();function I(h){this.b=h;this.Jc=[]}
I.prototype.Xa=function(){var h={},g,d,f,m,q,n,c,b;h.waits=[];var e=h.waits,a;g=0;for(d=this.Jc.length;g<d;g++){n=this.Jc[g];a={t:n.time,st:n.gt,s:n.gp,ev:n.Sg.ra,sm:[],sols:{}};n.Sg.gd[n.rc]&&(a.act=n.Sg.gd[n.rc].ra);f=0;for(m=n.wa.length;f<m;f++)a.sm.push(n.wa[f].ra);for(q in n.oc)if(n.oc.hasOwnProperty(q)){c=this.b.D[parseInt(q,10)];b={sa:n.oc[q].Ol,insts:[]};f=0;for(m=n.oc[q].De.length;f<m;f++)b.insts.push(n.oc[q].De[f].uid);a.sols[c.ra.toString()]=b}e.push(a)}return h};
I.prototype.kb=function(h){h=h.waits;var g,d,f,m,q,n,c,b,e,a,k;y(this.Jc);g=0;for(d=h.length;g<d;g++)if(n=h[g],b=this.b.uq[n.ev.toString()]){e=-1;f=0;for(m=b.gd.length;f<m;f++)if(b.gd[f].ra===n.act){e=f;break}if(-1!==e){c={oc:{},wa:[],cn:!1};c.time=n.t;c.gt=n.st||"";c.gp=!!n.s;c.Sg=b;c.rc=e;f=0;for(m=n.sm.length;f<m;f++)(b=this.b.Ek(n.sm[f]))&&c.wa.push(b);for(q in n.sols)if(n.sols.hasOwnProperty(q)&&(b=this.b.Ek(parseInt(q,10)))){e=n.sols[q];a={Ol:e.sa,De:[]};f=0;for(m=e.insts.length;f<m;f++)(k=
this.b.pi(e.insts[f]))&&a.De.push(k);c.oc[b.index.toString()]=a}this.Jc.push(c)}}};
(function(){function h(){}function g(){}function d(){}var f=I.prototype;h.prototype.au=function(){return!0};h.prototype.Sp=function(){return!0};h.prototype.Mu=function(){return!0};h.prototype.Tt=function(b,c,a){return hc(b,c,a)};h.prototype.cu=function(b,c,a){var d=this.b.ab(),f=d.gb,d=d.rr();b=this.b.Ns(b);if(a<c)if(d)for(;c>=a&&!b.eb;--c)this.b.ug(f.wa),b.index=c,f.vg(),this.b.fe(f.wa);else for(;c>=a&&!b.eb;--c)b.index=c,f.vg();else if(d)for(;c<=a&&!b.eb;++c)this.b.ug(f.wa),b.index=c,f.vg(),this.b.fe(f.wa);
else for(;c<=a&&!b.eb;++c)b.index=c,f.vg();this.b.Is();return!1};var m=[],q=-1;h.prototype.du=function(b){var c=b.T();q++;m.length===q&&m.push([]);var a=m[q];Da(a,c.kc());var d=this.b.ab(),f=d.gb,g=d.rr(),d=this.b.Ns(),h,n,z,l,t,J,r=b.fc;if(g)for(g=0,h=a.length;g<h&&!d.eb;g++){this.b.ug(f.wa);l=a[g];c=b.T();c.fa=!1;y(c.k);c.k[0]=l;if(r)for(n=0,z=l.siblings.length;n<z;n++)t=l.siblings[n],J=t.type.T(),J.fa=!1,y(J.k),J.k[0]=t;d.index=g;f.vg();this.b.fe(f.wa)}else for(c.fa=!1,y(c.k),g=0,h=a.length;g<
h&&!d.eb;g++){l=a[g];c.k[0]=l;if(r)for(n=0,z=l.siblings.length;n<z;n++)t=l.siblings[n],J=t.type.T(),J.fa=!1,y(J.k),J.k[0]=t;d.index=g;f.vg()}y(a);this.b.Is();q--;return!1};h.prototype.$t=function(b){var c=this.b.Ck(),a=c.O.Every_lastTime||0,d=this.b.tb.J;"undefined"===typeof c.O.Every_seconds&&(c.O.Every_seconds=b);var f=c.O.Every_seconds;if(d>=a+f)return c.O.Every_lastTime=a+f,d>=c.O.Every_lastTime+.04&&(c.O.Every_lastTime=d),c.O.Every_seconds=b,!0;d<a-.1&&(c.O.Every_lastTime=d);return!1};h.prototype.av=
function(b){if(!b)return!1;var c=b.T(),a=c.kc(),d=ta(Math.random()*a.length);if(d>=a.length)return!1;c.zh(a[d]);b.Tc();return!0};h.prototype.Vt=function(b,c,a){return hc(b.Xf(),c,a)};h.prototype.pu=function(b){return(b=this.b.Xg[b.toLowerCase()])&&b.Yf};h.prototype.Kp=function(){var b=this.b.ab();return b.en?!1:!b.ig};h.prototype.Tp=function(){return!0};h.prototype.Du=function(){return!0};h.prototype.Am=function(){return!0};h.prototype.Xp=function(){return!0};h.prototype.Nu=function(){return!0};h.prototype.zm=
function(){return!0};h.prototype.Nt=function(b,c,a){return Pa(G(b),G(a))<=G(c)};h.prototype.ou=function(b,c){return Sa(G(b),G(c))};h.prototype.nu=function(b,c,a){b=Na(b);c=Na(c);a=Na(a);return Sa(a,c)?Sa(b,c)&&!Sa(b,a):!(!Sa(b,c)&&Sa(b,a))};f.n=new h;g.prototype.gu=function(b){this.b.gg||this.b.te||(this.b.te=b)};g.prototype.Yt=function(b,c,a,d){if(c&&b&&(c=this.b.dk(b,c,a,d))){this.b.$c++;var f;this.b.trigger(Object.getPrototypeOf(b.Ja).n.Hg,c);if(c.fc)for(a=0,d=c.siblings.length;a<d;a++)f=c.siblings[a],
this.b.trigger(Object.getPrototypeOf(f.type.Ja).n.Hg,f);this.b.$c--;b=b.T();b.fa=!1;y(b.k);b.k[0]=c;if(c.fc)for(a=0,d=c.siblings.length;a<d;a++)f=c.siblings[a],b=f.type.T(),b.fa=!1,y(b.k),b.k[0]=f}};g.prototype.nv=function(b,c){b&&b.visible!==c&&(b.visible=c,this.b.da=!0)};g.prototype.ov=function(b){this.b.qa&&this.b.qa.scale!==b&&(this.b.qa.scale=b,this.b.qa.vq(),this.b.da=!0)};g.prototype.yv=function(b,c){0===b.Dj?ja(c)?b.Oe(c):b.Oe(parseFloat(c)):1===b.Dj&&b.Oe(c.toString())};g.prototype.Lt=function(b,
c){0===b.Dj?ja(c)?b.Oe(b.Xf()+c):b.Oe(b.Xf()+parseFloat(c)):1===b.Dj&&b.Oe(b.Xf()+c.toString())};g.prototype.Hv=function(b,c){0===b.Dj&&(ja(c)?b.Oe(b.Xf()-c):b.Oe(b.Xf()-parseFloat(c)))};g.prototype.hv=function(b,c){var a=this.b.Xg[b.toLowerCase()];if(a)switch(c){case 0:a.lj(!1);break;case 1:a.lj(!0);break;case 2:a.lj(!a.Yf)}};g.prototype.wv=function(b){0>b&&(b=0);this.b.Gf=b};var n=[],c=[];g.prototype.Kv=function(b){if(!(0>b)){var d,a,f,g=this.b.ab(),m;n.length?m=n.pop():m={oc:{},wa:[]};m.cn=!1;
m.time=this.b.tb.J+b;m.gt="";m.gp=!1;m.Sg=g.gb;m.rc=g.rc+1;b=0;for(d=this.b.D.length;b<d;b++)f=this.b.D[b],a=f.T(),a.fa&&-1===g.gb.wa.indexOf(f)||(m.wa.push(f),f=void 0,c.length?f=c.pop():f={De:[]},f.Ol=!1,f.Ol=a.fa,Da(f.De,a.k),m.oc[b.toString()]=f);this.Jc.push(m);return!0}};g.prototype.hu=function(b){if(!this.b.gg&&!this.b.te)for(var c in this.b.lh)if(this.b.lh.hasOwnProperty(c)&&pb(c,b)){this.b.te=this.b.lh[c];break}};g.prototype.cv=function(){if(!this.b.gg&&!this.b.te&&this.b.qa){this.b.te=this.b.qa;
var b,c,a;b=0;for(c=this.b.cf.length;b<c;b++)a=this.b.cf[b],a.lj(a.Kk)}};f.B=new g;d.prototype["int"]=function(b,c){ka(c)?(b.ga(parseInt(c,10)),isNaN(b.data)&&(b.data=0)):b.ga(c)};d.prototype["float"]=function(b,c){ka(c)?(b.I(parseFloat(c)),isNaN(b.data)&&(b.data=0)):b.I(c)};d.prototype.Rz=function(b,c){ka(c)?b.ob(c):b.ob(c.toString())};d.prototype.random=function(b,c,a){void 0===a?b.I(Math.random()*c):b.I(Math.random()*(a-c)+c)};d.prototype.sqrt=function(b,c){b.I(Math.sqrt(c))};d.prototype.abs=function(b,
c){b.I(Math.abs(c))};d.prototype.round=function(b,c){b.ga(Math.round(c))};d.prototype.floor=function(b,c){b.ga(Math.floor(c))};d.prototype.ceil=function(b,c){b.ga(Math.ceil(c))};d.prototype.sin=function(b,c){b.I(Math.sin(G(c)))};d.prototype.cos=function(b,c){b.I(Math.cos(G(c)))};d.prototype.tan=function(b,c){b.I(Math.tan(G(c)))};d.prototype.asin=function(b,c){b.I(Ja(Math.asin(c)))};d.prototype.acos=function(b,c){b.I(Ja(Math.acos(c)))};d.prototype.atan=function(b,c){b.I(Ja(Math.atan(c)))};d.prototype.exp=
function(b,c){b.I(Math.exp(c))};d.prototype.log10=function(b,c){b.I(Math.log(c)/Math.LN10)};d.prototype.max=function(b){var c=arguments[1];"number"!==typeof c&&(c=0);var a,d,f;a=2;for(d=arguments.length;a<d;a++)f=arguments[a],"number"===typeof f&&c<f&&(c=f);b.I(c)};d.prototype.min=function(b){var c=arguments[1];"number"!==typeof c&&(c=0);var a,d,f;a=2;for(d=arguments.length;a<d;a++)f=arguments[a],"number"===typeof f&&c>f&&(c=f);b.I(c)};d.prototype.kf=function(b){b.I(this.b.kf)};d.prototype.Gf=function(b){b.I(this.b.Gf)};
d.prototype.time=function(b){b.I(this.b.tb.J)};d.prototype.ke=function(b){b.ga(this.b.ke)};d.prototype.jl=function(b){b.ga(this.b.jl)};d.prototype.pn=function(b){b.ga(this.b.pn)};d.prototype.Jy=function(b,c){var a,d;if(this.b.Xi.length)if(c){for(d=this.b.Yi;0<=d;--d)if(a=this.b.Xi[d],a.name===c){b.ga(a.index);return}b.ga(0)}else a=this.b.Yq(),b.ga(a?a.index:-1);else b.ga(0)};d.prototype.q=function(b,c,a,d,f){b.I(Ja(Oa(c,a,d,f)))};d.prototype.Gy=function(b){b.ga(this.b.qa.width)};d.prototype.left=
function(b,c,a){b.ob(ka(c)?c.substr(0,a):"")};d.prototype.right=function(b,c,a){b.ob(ka(c)?c.substr(c.length-a):"")};d.prototype.Wz=function(b,c,a,d){ka(c)&&ka(d)?(c=c.split(d),a=ta(a),0>a||a>=c.length?b.ob(""):b.ob(c[a])):b.ob("")};d.prototype.Xz=function(b,c,a){ka(c)&&c.length?b.ga(c.split(a).length):b.ga(0)};d.prototype.replace=function(b,c,a,d){ka(c)&&ka(a)&&ka(d)?b.ob(c.replace(new RegExp(ib(a),"gi"),d)):b.ob(ka(c)?c:"")};d.prototype.trim=function(b,c){b.ob(ka(c)?c.trim():"")};d.prototype.iw=
function(b){var c=ta(Math.random()*(arguments.length-1));b.oj(arguments[c+1])};d.prototype.jz=function(b){b.ob(this.b.cA)};d.prototype.Ym=function(b){b.I(this.b.Ym/1E3)};d.prototype.nh=function(b){b.I(this.b.nh)};f.L=new d;f.zz=function(){var b,d,a,f,g,m,h=this.b.ab();b=0;for(a=this.Jc.length;b<a;b++){f=this.Jc[b];if(-1===f.time){if(!f.gp)continue}else if(f.time>this.b.tb.J)continue;h.gb=f.Sg;h.rc=f.rc;h.pb=0;for(d in f.oc)f.oc.hasOwnProperty(d)&&(g=this.b.D[parseInt(d,10)].T(),m=f.oc[d],g.fa=m.Ol,
Da(g.k,m.De),g=m,y(g.De),c.push(g));f.Sg.xz();this.b.Wm(f.wa);f.cn=!0}d=b=0;for(a=this.Jc.length;b<a;b++)f=this.Jc[b],this.Jc[d]=f,f.cn?(Ya(f.oc),y(f.wa),n.push(f)):d++;Ba(this.Jc,d)}})();
(function(){sb=function(g,d){var f=g[1],m=g[3],h=g[4],n=g[5],c=g[6],b=g[7],e=g[8];d.n||(d.n={});d.B||(d.B={});d.L||(d.L={});var a=d.n,k=d.B,p=d.L;m&&(a.oA=function(a,b){return hc(this.x,a,b)},a.pA=function(a,b){return hc(this.y,a,b)},a.uA=function(){var a=this.u;this.Ga();var b=this.Oa;return!(b.right<a.Ha||b.bottom<a.Ia||b.left>a.Na||b.top>a.Ma)},a.vA=function(){this.Ga();var a=this.Oa,b=this.b.qa;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},a.GA=function(a,b,c){var d=this.T(),e=
d.kc();if(!e.length)return!1;var f=e[0],k=f,g=Ua(f.x,f.y,b,c),m,h,q;m=1;for(h=e.length;m<h;m++)if(f=e[m],q=Ua(f.x,f.y,b,c),0===a&&q<g||1===a&&q>g)g=q,k=f;d.zh(k);return!0},k.bB=function(a){this.x!==a&&(this.x=a,this.X())},k.cB=function(a){this.y!==a&&(this.y=a,this.X())},k.qv=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.X()},k.rv=function(a,b){var c=a.Ox(this);if(c){var d;c.ni?(d=c.ni(b,!0),c=c.ni(b,!1)):(d=c.x,c=c.y);if(this.x!==d||this.y!==c)this.x=d,this.y=c,this.X()}},k.AA=function(a){0!==
a&&(this.x+=Math.cos(this.q)*a,this.y+=Math.sin(this.q)*a,this.X())},k.zA=function(a,b){0!==b&&(this.x+=Math.cos(G(a))*b,this.y+=Math.sin(G(a))*b,this.X())},p.Gm=function(a){a.I(this.x)},p.Hm=function(a){a.I(this.y)},p.kf=function(a){a.I(this.b.Wd(this))});h&&(a.Wt=function(a,b){return hc(this.width,a,b)},a.lA=function(a,b){return hc(this.height,a,b)},k.zv=function(a){this.width!==a&&(this.width=a,this.X())},k.XA=function(a){this.height!==a&&(this.height=a,this.X())},k.tv=function(a,b){if(this.width!==
a||this.height!==b)this.width=a,this.height=b,this.X()},p.Lv=function(a){a.I(this.width)},p.ku=function(a){a.I(this.height)},p.iA=function(a){this.Ga();a.I(this.Oa.left)},p.kA=function(a){this.Ga();a.I(this.Oa.top)},p.jA=function(a){this.Ga();a.I(this.Oa.right)},p.hA=function(a){this.Ga();a.I(this.Oa.bottom)});n&&(a.Nt=function(a,b){return Pa(this.q,G(b))<=G(a)},a.ou=function(a){return Sa(this.q,G(a))},a.nu=function(a,b){var c=Na(a),d=Na(b),e=La(this.q);return Sa(d,c)?Sa(e,c)&&!Sa(e,d):!(!Sa(e,c)&&
Sa(e,d))},k.bq=function(a){a=G(Ka(a));isNaN(a)||this.q===a||(this.q=a,this.X())},k.NA=function(a){0===a||isNaN(a)||(this.q+=G(a),this.q=La(this.q),this.X())},k.OA=function(a){0===a||isNaN(a)||(this.q-=G(a),this.q=La(this.q),this.X())},k.PA=function(a,b){var c=Ra(this.q,G(b),G(a));isNaN(c)||this.q===c||(this.q=c,this.X())},k.QA=function(a,b,c){a=Ra(this.q,Math.atan2(c-this.y,b-this.x),G(a));isNaN(a)||this.q===a||(this.q=a,this.X())},k.xv=function(a,b){var c=Math.atan2(b-this.y,a-this.x);isNaN(c)||
this.q===c||(this.q=c,this.X())},p.Mt=function(a){a.I(Ma(this.q))});f||(a.Ut=function(a,b,c){return hc(this.Bb[a],b,c)},a.sA=function(a){return this.Bb[a]},a.HA=function(a,b){var c=this.T(),d=c.kc();if(!d.length)return!1;var e=d[0],f=e,k=e.Bb[b],g,m,h;g=1;for(m=d.length;g<m;g++)if(e=d[g],h=e.Bb[b],0===a&&h<k||1===a&&h>k)k=h,f=e;c.zh(f);return!0},a.aq=function(a){var b,c,d,e,f;if(this.b.Ck().Lk){f=this.T();if(f.fa)for(f.fa=!1,y(f.k),y(f.ea),d=this.k,b=0,c=d.length;b<c;b++)e=d[b],e.uid===a?f.ea.push(e):
f.k.push(e);else{d=b=0;for(c=f.k.length;b<c;b++)e=f.k[b],f.k[d]=e,e.uid===a?f.ea.push(e):d++;Ba(f.k,d)}this.Tc();return!!f.k.length}e=this.b.pi(a);if(!e)return!1;f=this.T();if(!f.fa&&-1===f.k.indexOf(e))return!1;if(this.V)for(a=e.type.Ua,b=0,c=a.length;b<c;b++){if(a[b]===this)return f.zh(e),this.Tc(),!0}else if(e.type===this)return f.zh(e),this.Tc(),!0;return!1},a.Hg=function(){return!0},a.Mp=function(){return!0},k.jv=function(a,b){var c=this.Bb;ja(c[a])?c[a]=ja(b)?b:parseFloat(b):ka(c[a])&&(c[a]=
ka(b)?b:b.toString())},k.gA=function(a,b){var c=this.Bb;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())},k.Gv=function(a,b){var c=this.Bb;ja(c[a])&&(c[a]=ja(b)?c[a]-b:c[a]-parseFloat(b))},k.RA=function(a,b){this.Bb[a]=b?1:0},k.fB=function(a){this.Bb[a]=1-this.Bb[a]},k.Ip=function(){this.b.Od(this)},k.xu||(k.xu=function(a){var b,c;try{b=JSON.parse(a)}catch(d){return}this.b.$k(this,b,!0);this.oe&&this.oe();if(this.aa)for(a=0,b=this.aa.length;a<b;++a)c=this.aa[a],
c.oe&&c.oe()}),p.qA=function(a){var b=a.sg.k.length,c,d,e;c=0;for(d=this.b.Cd.length;c<d;c++)e=this.b.Cd[c],a.sg.V?0<=e.type.Ua.indexOf(a.sg)&&b++:e.type===a.sg&&b++;a.ga(b)},p.JA=function(a){a.ga(a.sg.T().kc().length)},p.dq=function(a){a.ga(this.uid)},p.rA=function(a){a.ga(this.ri())},p.ym||(p.ym=function(a){a.ob(JSON.stringify(this.b.Yo(this,!0)))}));c&&(a.su=function(){return this.visible},k.cq=function(a){!a!==!this.visible&&(this.visible=!!a,this.b.da=!0)},a.mA=function(a,b){return hc(ob(100*
this.opacity),a,b)},k.pv=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.da=!0)},p.Opacity=function(a){a.I(ob(100*this.opacity))});b&&(a.tA=function(a){return a?this.u===a:!1},a.IA=function(a){var b=this.T(),c=b.kc();if(!c.length)return!1;var d=c[0],e=d,f,k;f=1;for(k=c.length;f<k;f++)if(d=c[f],0===a){if(d.u.index>e.u.index||d.u.index===e.u.index&&d.Xd()>e.Xd())e=d}else if(d.u.index<e.u.index||d.u.index===e.u.index&&d.Xd()<e.Xd())e=d;b.zh(e);return!0},k.DA=function(){var a=
this.u,b=a.k;b.length&&b[b.length-1]===this||(a.Eh(this,!1),a.$h(this,!1),this.b.da=!0)},k.BA=function(){var a=this.u,b=a.k;b.length&&b[0]===this||(a.Eh(this,!1),a.gz(this),this.b.da=!0)},k.CA=function(a){a&&a!=this.u&&(this.u.Eh(this,!0),this.u=a,a.$h(this,!0),this.b.da=!0)},k.iB=function(a,b){var c=0===a;if(b){var d=b.br(this);d&&d.uid!==this.uid&&(this.u.index!==d.u.index&&(this.u.Eh(this,!0),this.u=d.u,d.u.$h(this,!0)),this.u.Oy(this,d,c),this.b.da=!0)}},p.yA=function(a){a.ga(this.u.ls)},p.xA=
function(a){a.ob(this.u.name)},p.hB=function(a){a.ga(this.Xd())});e&&(k.UA=function(a,b){if(this.b.F){var c=this.type.vn(b);if(!(0>c)){var d=1===a;this.Ze[c]!==d&&(this.Ze[c]=d,this.Ld(),this.b.da=!0)}}},k.VA=function(a,b,c){if(this.b.F){var d=this.type.vn(a);0>d||(a=this.type.Z[d],d=this.$a[d],b=Math.floor(b),0>b||b>=d.length||(1===this.b.F.Sx(a.xb,b)&&(c/=100),d[b]!==c&&(d[b]=c,a.Ka&&(this.b.da=!0))))}})};Mb=function(){this.Sm=this.Wj=!0;this.type.Qj=!0;this.b.da=!0;var g,d,f=this.Qm;g=0;for(d=
f.length;g<d;++g)f[g](this);this.u.fd&&this.Ga()};Nb=function(g){g&&this.Qm.push(g)};Pb=function(){if(this.Wj){var g=this.Oa,d=this.jc;g.set(this.x,this.y,this.x+this.width,this.y+this.height);g.offset(-this.Mc*this.width,-this.Nc*this.height);this.q?(g.offset(-this.x,-this.y),d.$s(g,this.q),d.offset(this.x,this.y),d.wq(g)):d.Kh(g);g.normalize();this.Wj=!1;this.Ft()}};var h=new wa(0,0,0,0);Qb=function(){if(this.u.fd){var g=this.u.Tb,d=this.Oa;h.set(g.pc(d.left),g.qc(d.top),g.pc(d.right),g.qc(d.bottom));
this.Ec.hi(h)||(this.Ec.right<this.Ec.left?g.update(this,null,h):g.update(this,this.Ec,h),this.Ec.Lg(h),this.u.Id=!0)}};Rb=function(){if(this.Sm&&this.ue){this.Ga();var g=this.type.ak,d=this.Oa;h.set(g.pc(d.left),g.qc(d.top),g.pc(d.right),g.qc(d.bottom));this.gf.hi(h)||(this.gf.right<this.gf.left?g.update(this,null,h):g.update(this,this.gf,h),this.gf.Lg(h),this.Sm=!1)}};Ob=function(g,d){return this.Oa.Zb(g,d)&&this.jc.Zb(g,d)?this.Da&&!this.Da.bh()?(this.Da.Kg(this.width,this.height,this.q),this.Da.Zb(g-
this.x,d-this.y)):!0:!1};Ib=function(){this.type.nm();return this.ag};Tb=function(){this.u.zp();return this.Md};Ub=function(){y(this.Aa);var g,d,f,m=!0;g=0;for(d=this.Ze.length;g<d;g++)this.Ze[g]&&(f=this.type.Z[g],this.Aa.push(f),f.Gd||(m=!1));this.Gt=!!this.Aa.length;this.Pe=m};Jb=function(){return"Inst"+this.Ms};vb=function(g){if(g&&g.fc&&g.type!=this){var d,f,m;d=0;for(f=g.siblings.length;d<f;d++)if(m=g.siblings[d],m.type==this)return m}g=this.T().kc();return g.length?g[0]:null};wb=function(g){var d=
this.T().kc();return d.length?d[g.ri()%d.length]:null};ub=function(){if(this.Nh&&!this.V){var g,d;g=0;for(d=this.k.length;g<d;g++)this.k[g].ag=g;var f=g,m=this.b.Cd;g=0;for(d=m.length;g<d;++g)m[g].type===this&&(m[g].ag=f++);this.Nh=!1}};Gb=function(g){if(g<this.k.length)return this.k[g];g-=this.k.length;var d=this.b.Cd,f,m;f=0;for(m=d.length;f<m;++f)if(d[f].type===this){if(0===g)return d[f];--g}return null};xb=function(){return this.Re[this.Sd]};zb=function(){this.Sd++;this.Sd===this.Re.length?this.Re.push(new tb(this)):
(this.Re[this.Sd].fa=!0,y(this.Re[this.Sd].ea))};Ab=function(){this.Sd++;this.Sd===this.Re.length&&this.Re.push(new tb(this));var g=this.Re[this.Sd],d=this.Re[this.Sd-1];d.fa?(g.fa=!0,y(g.ea)):(g.fa=!1,Da(g.k,d.k),Da(g.ea,d.ea))};Bb=function(){this.Sd--};Cb=function(g){var d,f,m,h,n,c=0;if(!this.V)for(d=0,f=this.Ua.length;d<f;d++)for(n=this.Ua[d],m=0,h=n.Za.length;m<h;m++){if(g===n.Za[m].name)return this.O.lastBehIndex=c,n.Za[m];c++}d=0;for(f=this.Za.length;d<f;d++){if(g===this.Za[d].name)return this.O.lastBehIndex=
c,this.Za[d];c++}return null};Db=function(g){return this.Bk(g)?this.O.lastBehIndex:-1};Eb=function(g){var d,f;d=0;for(f=this.Z.length;d<f;d++)if(this.Z[d].name===g)return d;return-1};Fb=function(){if(this.fc&&!this.V){var g,d,f,m,h,n,c;this.nm();n=this.T();var b=n.fa,e=(g=this.b.ab())&&g.gb&&g.gb.cd;g=0;for(d=this.Lc.length;g<d;g++)if(h=this.Lc[g],h!==this&&(h.nm(),c=h.T(),c.fa=b,!b)){y(c.k);f=0;for(m=n.k.length;f<m;++f)c.k[f]=h.wn(n.k[f].ag);if(e)for(y(c.ea),f=0,m=n.ea.length;f<m;++f)c.ea[f]=h.wn(n.ea[f].ag)}}};
Hb=function(){return"Type"+this.ra};hc=function(g,d,f){if("undefined"===typeof g||"undefined"===typeof f)return!1;switch(d){case 0:return g===f;case 1:return g!==f;case 2:return g<f;case 3:return g<=f;case 4:return g>f;case 5:return g>=f;default:return!1}}})();var pc={};function tc(h){this.b=h}
(function(){function h(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function g(a){a=a.toLowerCase();return fa.hasOwnProperty(a)&&fa[a].length?fa[a][0].Xc():D.destination}function d(){return D.createGain?D.createGain():D.createGainNode()}function f(a){return D.createDelay?D.createDelay(a):D.createDelayNode(a)}function m(a,b){a.start?a.start(b||0):a.noteOn(b||0)}function q(a,b,c,d){a.start?a.start(d||0,b):a.noteGrainOn(d||0,b,c-b)}function n(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}
function c(a,b,c,e,f,k){this.type="filter";this.Fb=[a,b,c,e,f,k];this.ua=d();this.Y=d();this.Y.gain.value=k;this.U=d();this.U.gain.value=1-k;this.qb=D.createBiquadFilter();this.qb.type="number"===typeof this.qb.type?a:gd[a];this.qb.frequency.value=b;this.qb.detune&&(this.qb.detune.value=c);this.qb.Q.value=e;this.qb.gain.value=f;this.ua.connect(this.qb);this.ua.connect(this.U);this.qb.connect(this.Y)}function b(a,b,c){this.type="delay";this.Fb=[a,b,c];this.ua=d();this.Y=d();this.Y.gain.value=c;this.U=
d();this.U.gain.value=1-c;this.Zi=d();this.kd=f(a);this.kd.delayTime.value=a;this.jk=d();this.jk.gain.value=b;this.ua.connect(this.Zi);this.ua.connect(this.U);this.Zi.connect(this.Y);this.Zi.connect(this.kd);this.kd.connect(this.jk);this.jk.connect(this.Zi)}function e(a,b,c,e){this.type="convolve";this.Fb=[b,c,e];this.ua=d();this.Y=d();this.Y.gain.value=c;this.U=d();this.U.gain.value=1-c;this.Pf=D.createConvolver();a&&(this.Pf.normalize=b,this.Pf.buffer=a);this.ua.connect(this.Pf);this.ua.connect(this.U);
this.Pf.connect(this.Y)}function a(a,b,c,e,k){this.type="flanger";this.Fb=[a,b,c,e,k];this.ua=d();this.U=d();this.U.gain.value=1-k/2;this.Y=d();this.Y.gain.value=k/2;this.sk=d();this.sk.gain.value=e;this.kd=f(a+b);this.kd.delayTime.value=a;this.Lb=D.createOscillator();this.Lb.frequency.value=c;this.Qc=d();this.Qc.gain.value=b;this.ua.connect(this.kd);this.ua.connect(this.U);this.kd.connect(this.Y);this.kd.connect(this.sk);this.sk.connect(this.kd);this.Lb.connect(this.Qc);this.Qc.connect(this.kd.delayTime);
m(this.Lb)}function k(a,b,c,e,f,k){this.type="phaser";this.Fb=[a,b,c,e,f,k];this.ua=d();this.U=d();this.U.gain.value=1-k/2;this.Y=d();this.Y.gain.value=k/2;this.qb=D.createBiquadFilter();this.qb.type="number"===typeof this.qb.type?7:"allpass";this.qb.frequency.value=a;this.qb.detune&&(this.qb.detune.value=b);this.qb.Q.value=c;this.Lb=D.createOscillator();this.Lb.frequency.value=f;this.Qc=d();this.Qc.gain.value=e;this.ua.connect(this.qb);this.ua.connect(this.U);this.qb.connect(this.Y);this.Lb.connect(this.Qc);
this.Qc.connect(this.qb.frequency);m(this.Lb)}function p(a){this.type="gain";this.Fb=[a];this.za=d();this.za.gain.value=a}function u(a,b){this.type="tremolo";this.Fb=[a,b];this.za=d();this.za.gain.value=1-b/2;this.Lb=D.createOscillator();this.Lb.frequency.value=a;this.Qc=d();this.Qc.gain.value=b/2;this.Lb.connect(this.Qc);this.Qc.connect(this.za.gain);m(this.Lb)}function E(a,b){this.type="ringmod";this.Fb=[a,b];this.ua=d();this.Y=d();this.Y.gain.value=b;this.U=d();this.U.gain.value=1-b;this.kj=d();
this.kj.gain.value=0;this.Lb=D.createOscillator();this.Lb.frequency.value=a;this.Lb.connect(this.kj.gain);m(this.Lb);this.ua.connect(this.kj);this.ua.connect(this.U);this.kj.connect(this.Y)}function C(a,b,c,e,f){this.type="distortion";this.Fb=[a,b,c,e,f];this.ua=d();this.Fl=d();this.El=d();this.Gz(c,Math.pow(10,e/20));this.Y=d();this.Y.gain.value=f;this.U=d();this.U.gain.value=1-f;this.um=D.createWaveShaper();this.hk=new Float32Array(65536);this.Gx(a,b);this.um.hk=this.hk;this.ua.connect(this.Fl);
this.ua.connect(this.U);this.Fl.connect(this.um);this.um.connect(this.El);this.El.connect(this.Y)}function z(a,b,c,d,e){this.type="compressor";this.Fb=[a,b,c,d,e];this.za=D.createDynamicsCompressor();try{this.za.threshold.value=a,this.za.knee.value=b,this.za.ratio.value=c,this.za.attack.value=d,this.za.release.value=e}catch(f){}}function l(a,b){this.type="analyser";this.Fb=[a,b];this.za=D.createAnalyser();this.za.fftSize=a;this.za.smoothingTimeConstant=b;this.Ex=new Float32Array(this.za.frequencyBinCount);
this.dt=new Uint8Array(a);this.dj=0}function t(){this.W=null;this.bl=0;this.Df=[];this.uo=this.Tk=this.Sk=0}function J(a,b){this.src=a;this.ma=da;this.od=b;this.Pj=!1;var c=this;this.ro=this.Fo=null;this.yh=[];this.Pl=0;this.Dp=this.qk=this.kt=this.zl=!1;1===da&&b&&!db&&(this.ma=0,this.Fo=d());this.qe=this.Ba=null;var e;switch(this.ma){case 0:this.Ba=new Audio;this.Ba.crossOrigin="anonymous";this.Ba.addEventListener("canplaythrough",function(){c.Dp=!0});1===da&&D.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&
(this.kt=!0,this.Ba.addEventListener("canplay",function(){c.ro||(c.ro=D.createMediaElementSource(c.Ba),c.ro.connect(c.Fo))}));this.Ba.autoplay=!1;this.Ba.AB="auto";this.Ba.src=a;break;case 1:K.Gi?K.Pq(a,function(a){c.qe=a;c.Gq()},function(){c.qk=!0}):(e=new XMLHttpRequest,e.open("GET",a,!0),e.responseType="arraybuffer",e.onload=function(){c.qe=e.response;c.Gq()},e.onerror=function(){c.qk=!0},e.send());break;case 2:this.Ba=!0;break;case 3:this.Ba=!0}}function r(a,b){var c=this;this.tag=b;this.eb=this.Vd=
!0;this.src=a.src;this.buffer=a;this.ma=da;this.od=a.od;this.playbackRate=1;this.Zg=!0;this.Oc=this.dd=!1;this.Fc=0;this.Hi=this.eh=this.$d=!1;this.volume=1;this.Do=function(a){if(!c.Oc&&!c.dd){var b=this;b||(b=a.target);b===c.Oj&&(c.Zg=!0,c.eb=!0,v=c.tag,K.trigger(tc.prototype.n.Ij,X))}};this.Oj=null;this.$g=1===M&&!this.od||2===M;this.sh=1;this.startTime=this.$g?K.tb.J:K.Ve.J;this.mb=this.Ab=null;this.be=!1;this.lb=null;this.Bs=this.As=this.zs=this.ys=this.Ds=this.Cs=0;this.A=null;var e=!1;1!==
this.ma||0!==this.buffer.ma||this.buffer.kt||(this.ma=0);switch(this.ma){case 0:this.od?(this.A=a.Ba,e=!a.Pj,a.Pj=!0):(this.A=new Audio,this.A.crossOrigin="anonymous",this.A.autoplay=!1,this.A.src=a.Ba.src,e=!0);e&&this.A.addEventListener("ended",function(){v=c.tag;c.eb=!0;K.trigger(tc.prototype.n.Ij,X)});break;case 1:this.Ab=d();this.Ab.connect(g(b));1===this.buffer.ma?a.Ba&&(this.A=D.createBufferSource(),this.A.buffer=a.Ba,this.A.connect(this.Ab)):(this.A=this.buffer.Ba,this.buffer.Fo.connect(this.Ab),
this.buffer.Pj||(this.buffer.Pj=!0,this.buffer.Ba.addEventListener("ended",function(){v=c.tag;c.eb=!0;K.trigger(tc.prototype.n.Ij,X)})));break;case 2:this.A=new window.Media(V+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(c.Zg=!0,c.eb=!0,v=c.tag,K.trigger(tc.prototype.n.Ij,X))});break;case 3:this.A=!0}}function w(a,b){var c=a.eg()?1:0,d=b.eg()?1:0;return c===d?0:c<d?1:-1}function A(a,b){y(Ga);if(a.length){var c,d,e;c=0;for(d=B.length;c<d;c++)e=B[c],pb(a,e.tag)&&Ga.push(e);b&&Ga.sort(w)}else P&&
!P.$f()&&(y(Ga),Ga[0]=P)}function F(a,b){fa.hasOwnProperty(a)?fa[a].push(b):fa[a]=[b];var c,d,e,f,k=D.destination;if(fa.hasOwnProperty(a)&&(e=fa[a],e.length))for(k=e[0].Xc(),c=0,d=e.length;c<d;c++)f=e[c],c+1===d?f.hd(D.destination):f.hd(e[c+1].Xc());A(a);c=0;for(d=Ga.length;c<d;c++)Ga[c].oz(k);Wa&&Sb===a&&(Wa.disconnect(),Wa.connect(k))}function x(){}function H(){}function N(){}var W=tc.prototype;W.S=function(a){this.Ja=a;this.b=a.b};W.S.prototype.H=function(){};var K=null,X=null,v="",V="",da=0,D=
null,O=[],B=[],P=null,T=!1,M=0,L=!1,Q=1,qa=0,U=0,Ca=!1,ra=1,Qa=1,Tc=10,Uc=1E4,Vc=1,Wa=null,Sb="",eb=!1,fb=[],db=!1,fa={},gd="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");c.prototype.hd=function(a){this.Y.disconnect();this.Y.connect(a);this.U.disconnect();this.U.connect(a)};c.prototype.remove=function(){this.ua.disconnect();this.qb.disconnect();this.Y.disconnect();this.U.disconnect()};c.prototype.Xc=function(){return this.ua};b.prototype.hd=function(a){this.Y.disconnect();
this.Y.connect(a);this.U.disconnect();this.U.connect(a)};b.prototype.remove=function(){this.ua.disconnect();this.Zi.disconnect();this.kd.disconnect();this.jk.disconnect();this.Y.disconnect();this.U.disconnect()};b.prototype.Xc=function(){return this.ua};e.prototype.hd=function(a){this.Y.disconnect();this.Y.connect(a);this.U.disconnect();this.U.connect(a)};e.prototype.remove=function(){this.ua.disconnect();this.Pf.disconnect();this.Y.disconnect();this.U.disconnect()};e.prototype.Xc=function(){return this.ua};
a.prototype.hd=function(a){this.U.disconnect();this.U.connect(a);this.Y.disconnect();this.Y.connect(a)};a.prototype.remove=function(){this.ua.disconnect();this.kd.disconnect();this.Lb.disconnect();this.Qc.disconnect();this.U.disconnect();this.Y.disconnect();this.sk.disconnect()};a.prototype.Xc=function(){return this.ua};k.prototype.hd=function(a){this.U.disconnect();this.U.connect(a);this.Y.disconnect();this.Y.connect(a)};k.prototype.remove=function(){this.ua.disconnect();this.qb.disconnect();this.Lb.disconnect();
this.Qc.disconnect();this.U.disconnect();this.Y.disconnect()};k.prototype.Xc=function(){return this.ua};p.prototype.hd=function(a){this.za.disconnect();this.za.connect(a)};p.prototype.remove=function(){this.za.disconnect()};p.prototype.Xc=function(){return this.za};u.prototype.hd=function(a){this.za.disconnect();this.za.connect(a)};u.prototype.remove=function(){this.Lb.disconnect();this.Qc.disconnect();this.za.disconnect()};u.prototype.Xc=function(){return this.za};E.prototype.hd=function(a){this.Y.disconnect();
this.Y.connect(a);this.U.disconnect();this.U.connect(a)};E.prototype.remove=function(){this.Lb.disconnect();this.kj.disconnect();this.ua.disconnect();this.Y.disconnect();this.U.disconnect()};E.prototype.Xc=function(){return this.ua};C.prototype.Gz=function(a,b){.01>a&&(a=.01);this.Fl.gain.value=a;this.El.gain.value=Math.pow(1/a,.6)*b};C.prototype.shape=function(a,b,c){var d=1.05*c*b-b;c=0>a?-1:1;a=0>a?-a:a;b=a<b?a:b+d*(1-Math.exp(-(1/d)*(a-b)));return b*c};C.prototype.Gx=function(a,b){for(var c=Math.pow(10,
a/20),d=Math.pow(10,b/20),e=0,f=0;32768>f;++f)e=f/32768,e=this.shape(e,c,d),this.hk[32768+f]=e,this.hk[32768-f-1]=-e};C.prototype.hd=function(a){this.Y.disconnect();this.Y.connect(a);this.U.disconnect();this.U.connect(a)};C.prototype.remove=function(){this.ua.disconnect();this.Fl.disconnect();this.um.disconnect();this.El.disconnect();this.Y.disconnect();this.U.disconnect()};C.prototype.Xc=function(){return this.ua};z.prototype.hd=function(a){this.za.disconnect();this.za.connect(a)};z.prototype.remove=
function(){this.za.disconnect()};z.prototype.Xc=function(){return this.za};l.prototype.Fa=function(){this.za.getFloatFrequencyData(this.Ex);this.za.getByteTimeDomainData(this.dt);for(var a=this.za.fftSize,b=0,c=this.dj=0,d=0;b<a;b++)d=(this.dt[b]-128)/128,0>d&&(d=-d),this.dj<d&&(this.dj=d),c+=d*d;this.dj=h(this.dj);h(Math.sqrt(c/a))};l.prototype.hd=function(a){this.za.disconnect();this.za.connect(a)};l.prototype.remove=function(){this.za.disconnect()};l.prototype.Xc=function(){return this.za};t.prototype.mj=
function(a){if(this.W=a)this.Sk=this.W.x,this.Tk=this.W.y;y(this.Df)};t.prototype.Ik=function(){return!!this.W};t.prototype.Fa=function(a){this.W&&0!==a&&(this.uo=Oa(this.Sk,this.Tk,this.W.x,this.W.y),a=Ua(this.Sk,this.Tk,this.W.x,this.W.y)/a,4>this.Df.length||this.Df.shift(),this.Df.push(a),this.Sk=this.W.x,this.Tk=this.W.y)};t.prototype.er=function(){if(!this.Df.length)return 0;var a,b,c=0;a=0;for(b=this.Df.length;a<b;a++)c+=this.Df[a];return c/this.Df.length};t.prototype.Bn=function(){return Math.cos(this.uo)*
this.er()};t.prototype.Cn=function(){return Math.sin(this.uo)*this.er()};var yb=!1;J.prototype.qz=function(){var a,b,c,d;c=a=0;for(b=B.length;a<b;++a)d=B[a],B[c]=d,d.buffer===this?d.stop():++c;B.length=c;this.qe=this.Ba=null};J.prototype.Gq=function(){if(!this.Ba&&this.qe){var a=this;if(D.decodeAudioData)D.decodeAudioData(this.qe,function(b){a.Ba=b;a.qe=null;var c,d,e;if(ia(a.Bl)||L)ia(a.ck)||(c=a.ck.Pf,c.normalize=a.ks,c.buffer=b);else if(a.yh.length){c=0;for(d=a.yh.length;c<d;c++){b=a.yh[c];e=new r(a,
b.pt);e.ep(!0);if("undefined"!==typeof b.ms&&(b.W=K.pi(b.ms),!b.W))continue;if(b.W){var f=Ta(b.W.x,b.W.y,-b.W.u.hb(),qa,U,!0),k=Ta(b.W.x,b.W.y,-b.W.u.hb(),qa,U,!1);e.dp(f,k,Ja(b.W.q-b.W.u.hb()),b.Jn,b.wo,b.zo);e.mj(b.W)}else e.dp(b.x,b.y,b.Qv,b.Jn,b.wo,b.zo);e.play(a.po,a.Cp,a.Pl);a.zl&&e.pause();B.push(e)}y(a.yh)}else e=new r(a,a.Bl||""),e.play(a.po,a.Cp,a.Pl),a.zl&&e.pause(),B.push(e)},function(){a.qk=!0});else if(this.Ba=D.createBuffer(this.qe,!1),this.qe=null,ia(this.Bl)||L)ia(this.ck)||(b=this.ck.Pf,
b.normalize=this.ks,b.buffer=this.Ba);else{var b=new r(this,this.Bl);b.play(this.po,this.Cp,this.Pl);this.zl&&b.pause();B.push(b)}}};J.prototype.qr=function(){switch(this.ma){case 0:var a=4<=this.Ba.readyState;a&&(this.Dp=!0);return a||this.Dp;case 1:return!!this.qe||!!this.Ba;case 2:return!0;case 3:return!0}return!1};J.prototype.zy=function(){switch(this.ma){case 0:return this.qr();case 1:return!!this.Ba;case 2:return!0;case 3:return!0}return!1};J.prototype.my=function(){switch(this.ma){case 0:return!!this.Ba.error;
case 1:return this.qk}return!1};r.prototype.$f=function(){switch(this.ma){case 0:return this.A.ended;case 1:return 1===this.buffer.ma?!this.Vd&&!this.eb&&this.A.loop||this.Oc?!1:this.Zg:this.A.ended;case 2:return this.Zg;case 3:!0}return!0};r.prototype.fw=function(){return this.Vd||this.eb?!0:this.$f()};r.prototype.ep=function(a){1===da&&(!this.be&&a?this.Ab&&(this.mb||(this.mb=D.createPanner(),this.mb.panningModel="number"===typeof this.mb.panningModel?ra:["equalpower","HRTF","soundfield"][ra],this.mb.distanceModel=
"number"===typeof this.mb.distanceModel?Qa:["linear","inverse","exponential"][Qa],this.mb.refDistance=Tc,this.mb.maxDistance=Uc,this.mb.rolloffFactor=Vc),this.Ab.disconnect(),this.Ab.connect(this.mb),this.mb.connect(g(this.tag)),this.be=!0):this.be&&!a&&this.Ab&&(this.mb.disconnect(),this.Ab.disconnect(),this.Ab.connect(g(this.tag)),this.be=!1))};r.prototype.dp=function(a,b,c,d,e,f){this.be&&1===da&&(this.mb.setPosition(a,b,0),this.mb.setOrientation(Math.cos(G(c)),Math.sin(G(c)),0),this.mb.coneInnerAngle=
d,this.mb.coneOuterAngle=e,this.mb.coneOuterGain=f,this.Cs=a,this.Ds=b,this.ys=c,this.zs=d,this.As=e,this.Bs=f)};r.prototype.mj=function(a){this.be&&1===da&&(this.lb||(this.lb=new t),this.lb.mj(a))};r.prototype.Fa=function(a){if(this.be&&1===da&&this.lb&&this.lb.Ik()&&this.eg()){this.lb.Fa(a);a=this.lb.W;var b=Ta(a.x,a.y,-a.u.hb(),qa,U,!0),c=Ta(a.x,a.y,-a.u.hb(),qa,U,!1);this.mb.setPosition(b,c,0);b=0;"undefined"!==typeof this.lb.W.q&&(b=a.q-a.u.hb(),this.mb.setOrientation(Math.cos(b),Math.sin(b),
0));b=Ta(this.lb.Bn(),this.lb.Cn(),-a.u.hb(),0,0,!0);c=Ta(this.lb.Bn(),this.lb.Cn(),-a.u.hb(),0,0,!1);this.mb.setVelocity(b,c,0)}};r.prototype.play=function(a,b,c,d){var e=this.A;this.$d=a;this.volume=b;c=c||0;d=d||0;switch(this.ma){case 0:1!==e.playbackRate&&(e.playbackRate=1);e.volume!==b*Q&&(e.volume=b*Q);e.loop!==a&&(e.loop=a);e.muted&&(e.muted=!1);if(e.currentTime!==c)try{e.currentTime=c}catch(f){}if(this.od&&eb&&!K.Yd)fb.push(this);else try{this.A.play()}catch(k){console&&console.log&&console.log("[C2] WARNING: exception trying to play audio '"+
this.buffer.src+"': ",k)}break;case 1:this.muted=!1;this.sh=1;if(1===this.buffer.ma)this.Ab.gain.value=b*Q,this.Vd||(this.A=D.createBufferSource(),this.A.buffer=this.buffer.Ba,this.A.connect(this.Ab)),this.A.onended=this.Do,this.Oj=this.A,this.A.loop=a,this.Zg=!1,0===c?m(this.A,d):q(this.A,c,this.of(),d);else{1!==e.playbackRate&&(e.playbackRate=1);e.loop!==a&&(e.loop=a);e.volume=b*Q;if(e.currentTime!==c)try{e.currentTime=c}catch(g){}this.od&&eb&&!K.Yd?fb.push(this):e.play()}break;case 2:(!this.Vd&&
this.eb||0!==c)&&e.seekTo(c);e.play();this.Zg=!1;break;case 3:K.ec?AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=1;this.startTime=(this.$g?K.tb.J:K.Ve.J)-c;this.Oc=this.eb=this.Vd=!1};r.prototype.stop=function(){switch(this.ma){case 0:this.A.paused||this.A.pause();break;case 1:1===this.buffer.ma?n(this.A):this.A.paused||this.A.pause();break;case 2:this.A.stop();break;case 3:K.ec&&AppMobi.context.stopSound(this.src)}this.eb=!0;this.Oc=!1};r.prototype.pause=
function(){if(!(this.Vd||this.eb||this.$f()||this.Oc)){switch(this.ma){case 0:this.A.paused||this.A.pause();break;case 1:1===this.buffer.ma?(this.Fc=this.yn(!0),this.$d&&(this.Fc=this.Fc%this.of()),this.Oc=!0,n(this.A)):this.A.paused||this.A.pause();break;case 2:this.A.pause();break;case 3:K.ec&&AppMobi.context.stopSound(this.src)}this.Oc=!0}};r.prototype.wz=function(){if(!(this.Vd||this.eb||this.$f())&&this.Oc){switch(this.ma){case 0:this.A.play();break;case 1:1===this.buffer.ma?(this.A=D.createBufferSource(),
this.A.buffer=this.buffer.Ba,this.A.connect(this.Ab),this.A.onended=this.Do,this.Oj=this.A,this.A.loop=this.$d,this.Ab.gain.value=Q*this.volume*this.sh,this.om(),this.startTime=(this.$g?K.tb.J:K.Ve.J)-this.Fc/(this.playbackRate||.001),q(this.A,this.Fc,this.of())):this.A.play();break;case 2:this.A.play();break;case 3:K.ec&&AppMobi.context.resumeSound(this.src)}this.Oc=!1}};r.prototype.seek=function(a){if(!(this.Vd||this.eb||this.$f()))switch(this.ma){case 0:try{this.A.currentTime=a}catch(b){}break;
case 1:if(1===this.buffer.ma)this.Oc?this.Fc=a:(this.pause(),this.Fc=a,this.wz());else try{this.A.currentTime=a}catch(c){}break;case 3:K.ec&&AppMobi.context.seekSound(this.src,a)}};r.prototype.oz=function(a){1===this.ma&&(this.be?(this.mb.disconnect(),this.mb.connect(a)):(this.Ab.disconnect(),this.Ab.connect(a)))};r.prototype.of=function(){var a=0;switch(this.ma){case 0:"undefined"!==typeof this.A.duration&&(a=this.A.duration);break;case 1:a=this.buffer.Ba.duration;break;case 2:a=this.A.getDuration();
break;case 3:K.ec&&(a=AppMobi.context.getDurationSound(this.src))}return a};r.prototype.yn=function(a){var b=this.of(),c=0;switch(this.ma){case 0:"undefined"!==typeof this.A.currentTime&&(c=this.A.currentTime);break;case 1:if(1===this.buffer.ma){if(this.Oc)return this.Fc;c=(this.$g?K.tb.J:K.Ve.J)-this.startTime}else"undefined"!==typeof this.A.currentTime&&(c=this.A.currentTime);break;case 3:K.ec&&(c=AppMobi.context.getPlaybackTimeSound(this.src))}a&&(c*=this.playbackRate);!this.$d&&c>b&&(c=b);return c};
r.prototype.eg=function(){return!this.Oc&&!this.Vd&&!this.eb&&!this.$f()};r.prototype.Mz=function(){return!this.Vd&&!this.eb&&!this.$f()};r.prototype.Yz=function(){var a=this.volume*Q;isFinite(a)||(a=0);switch(this.ma){case 0:"undefined"!==typeof this.A.volume&&this.A.volume!==a&&(this.A.volume=a);break;case 1:1===this.buffer.ma?this.Ab.gain.value=a*this.sh:"undefined"!==typeof this.A.volume&&this.A.volume!==a&&(this.A.volume=a)}};r.prototype.nk=function(a){switch(this.ma){case 0:this.A.muted!==!!a&&
(this.A.muted=!!a);break;case 1:1===this.buffer.ma?(this.sh=a?0:1,this.Ab.gain.value=Q*this.volume*this.sh):this.A.muted!==!!a&&(this.A.muted=!!a)}};r.prototype.Hz=function(){this.eh=!0;this.nk(this.eh||this.Hi)};r.prototype.Xs=function(a){this.Hi=!!a;this.nk(this.eh||this.Hi)};r.prototype.om=function(){var a=this.playbackRate;this.$g&&(a*=K.Gf);switch(this.ma){case 0:this.A.playbackRate!==a&&(this.A.playbackRate=a);break;case 1:1===this.buffer.ma?this.A.playbackRate.value!==a&&(this.A.playbackRate.value=
a):this.A.playbackRate!==a&&(this.A.playbackRate=a)}};r.prototype.Kz=function(a){switch(this.ma){case 0:a?this.eg()?(this.dd=!0,this.A.pause()):this.dd=!1:this.dd&&(this.A.play(),this.dd=!1);break;case 1:a?this.eg()?(this.dd=!0,1===this.buffer.ma?(this.Fc=this.yn(!0),this.$d&&(this.Fc=this.Fc%this.of()),n(this.A)):this.A.pause()):this.dd=!1:this.dd&&(1===this.buffer.ma?(this.A=D.createBufferSource(),this.A.buffer=this.buffer.Ba,this.A.connect(this.Ab),this.A.onended=this.Do,this.Oj=this.A,this.A.loop=
this.$d,this.Ab.gain.value=Q*this.volume*this.sh,this.om(),this.startTime=(this.$g?K.tb.J:K.Ve.J)-this.Fc/(this.playbackRate||.001),q(this.A,this.Fc,this.of())):this.A.play(),this.dd=!1);break;case 2:a?this.eg()?(this.A.pause(),this.dd=!0):this.dd=!1:this.dd&&(this.dd=!1,this.A.play())}};W.N=function(a){function b(){if(!Ca&&D.createBuffer){var a=D.createBuffer(1,220,22050),c=D.createBufferSource();c.buffer=a;c.connect(D.destination);m(c)}}this.type=a;K=this.b=a.b;X=this;this.lc=null;this.Pi=-600;
this.b.Gi&&(db=!0);!(this.b.hh||this.b.Mk&&(this.b.yi||this.b.Nk))||this.b.Ai||this.b.sb||this.b.Rn||db||(eb=!0);D=null;"undefined"!==typeof AudioContext?(da=1,D=new AudioContext):"undefined"!==typeof webkitAudioContext&&(da=1,D=new webkitAudioContext);this.b.hh&&D&&(D.close&&D.close(),"undefined"!==typeof AudioContext?D=new AudioContext:"undefined"!==typeof webkitAudioContext&&(D=new webkitAudioContext));eb?document.addEventListener("touchend",function(){!yb&&D&&(b(),yb=!0);var a,c,d;if(eb){if(!L)for(a=
0,c=fb.length;a<c;++a)d=fb[a],d.eb||d.Oc||d.A.play();y(fb)}},!0):db&&document.addEventListener("touchend",function(){!yb&&D&&(b(),yb=!0)},!0);1!==da&&(this.b.Bc&&"undefined"!==typeof window.Media?da=2:this.b.pr&&(da=3));2===da&&(V=location.href,a=V.lastIndexOf("/"),-1<a&&(V=V.substr(0,a+1)),V=V.replace("file://",""));if(this.b.Ay&&this.b.By&&"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.Od(this);
else{if(this.b.ec)T=this.b.Mk;else try{T=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(c){T=!1}this.b.yj(this)}};var Aa=W.N.prototype;Aa.H=function(){this.b.Jg=this;M=this.C[0];this.Ne=this.C[1];this.Zy=0!==this.C[2];this.hs=0;ra=this.C[3];Qa=this.C[4];this.Pi=-this.C[5];Tc=this.C[6];Uc=this.C[7];Vc=this.C[8];this.lc=new t;var a=this.b.R||this.b.width,b=this.b.P||this.b.height;1===da&&("undefined"!==typeof D.listener.dopplerFactor&&(D.listener.dopplerFactor=0),D.listener.setPosition(a/
2,b/2,this.Pi),D.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,b){Wa&&Wa.disconnect();Sb=b.toLowerCase();Wa=D.createMediaStreamSource(a);Wa.connect(g(Sb))});this.b.oq(function(a){X.Wy(a)});var c=this;this.b.Lm(function(a){c.Ao(a)})};Aa.Ao=function(a){var b,c,d;b=0;for(c=B.length;b<c;b++)d=B[b],d.lb&&d.lb.W===a&&(d.lb.W=null,d.be&&d.eg()&&d.$d&&d.stop());this.lc.W===a&&(this.lc.W=null)};Aa.Xa=function(){var a={silent:L,masterVolume:Q,listenerZ:this.Pi,listenerUid:this.lc.Ik()?
this.lc.W.uid:-1,playing:[],effects:{}},b=a.playing,c,d,e,f,k,g;c=0;for(d=B.length;c<d;c++)e=B[c],!e.Mz()||3===this.Ne||e.od&&1===this.Ne||!e.od&&2===this.Ne||(f=e.yn(),e.$d&&(f=f%e.of()),f={tag:e.tag,buffersrc:e.buffer.src,is_music:e.od,playbackTime:f,volume:e.volume,looping:e.$d,muted:e.eh,playbackRate:e.playbackRate,paused:e.Oc,resume_position:e.Fc},e.be&&(f.pan={},g=f.pan,e.lb&&e.lb.Ik()?g.objUid=e.lb.W.uid:(g.x=e.Cs,g.y=e.Ds,g.a=e.ys),g.ia=e.zs,g.oa=e.As,g.og=e.Bs),b.push(f));b=a.effects;for(k in fa)if(fa.hasOwnProperty(k)){e=
[];c=0;for(d=fa[k].length;c<d;c++)e.push({type:fa[k][c].type,params:fa[k][c].Fb});b[k]=e}return a};var gb=[];Aa.kb=function(d){var f=d.silent;Q=d.masterVolume;this.Pi=d.listenerZ;this.lc.mj(null);var g=d.listenerUid;-1!==g&&(this.lc.bl=g,gb.push(this.lc));var g=d.playing,m,h,q,n,w,A,v,N,x,r,X;if(3!==this.Ne)for(m=0,h=B.length;m<h;m++)x=B[m],x.od&&1===this.Ne||(x.od||2!==this.Ne)&&x.stop();for(w in fa)if(fa.hasOwnProperty(w))for(m=0,h=fa[w].length;m<h;m++)fa[w][m].remove();Ya(fa);for(w in d.effects)if(d.effects.hasOwnProperty(w))for(A=
d.effects[w],m=0,h=A.length;m<h;m++)switch(q=A[m].type,r=A[m].params,q){case "filter":F(w,new c(r[0],r[1],r[2],r[3],r[4],r[5]));break;case "delay":F(w,new b(r[0],r[1],r[2]));break;case "convolve":q=r[2];x=this.Ak(q,!1);x.Ba?q=new e(x.Ba,r[0],r[1],q):(q=new e(null,r[0],r[1],q),x.ks=r[0],x.ck=q);F(w,q);break;case "flanger":F(w,new a(r[0],r[1],r[2],r[3],r[4]));break;case "phaser":F(w,new k(r[0],r[1],r[2],r[3],r[4],r[5]));break;case "gain":F(w,new p(r[0]));break;case "tremolo":F(w,new u(r[0],r[1]));break;
case "ringmod":F(w,new E(r[0],r[1]));break;case "distortion":F(w,new C(r[0],r[1],r[2],r[3],r[4]));break;case "compressor":F(w,new z(r[0],r[1],r[2],r[3],r[4]));break;case "analyser":F(w,new l(r[0],r[1]))}m=0;for(h=g.length;m<h;m++)3===this.Ne||(d=g[m],q=d.buffersrc,n=d.is_music,w=d.tag,A=d.playbackTime,v=d.looping,N=d.volume,X=(r=d.pan)&&r.hasOwnProperty("objUid")?r.objUid:-1,n&&1===this.Ne)||!n&&2===this.Ne||((x=this.Wq(q,w,n,v,N))?(x.Fc=d.resume_position,x.ep(!!r),x.play(v,N,A),x.om(),x.Yz(),x.nk(x.eh||
x.Hi),d.paused&&x.pause(),d.muted&&x.Hz(),x.nk(x.eh||x.Hi),r&&(-1!==X?(x.lb=x.lb||new t,x.lb.bl=X,gb.push(x.lb)):x.dp(r.x,r.y,r.a,r.ia,r.oa,r.og))):(x=this.Ak(q,n),x.Pl=A,x.zl=d.paused,r&&(-1!==X?x.yh.push({ms:X,Jn:r.ia,wo:r.oa,zo:r.og,pt:w}):x.yh.push({x:r.x,y:r.y,Qv:r.a,Jn:r.ia,wo:r.oa,zo:r.og,pt:w}))));if(f&&!L){m=0;for(h=B.length;m<h;m++)B[m].Xs(!0);L=!0}else if(!f&&L){m=0;for(h=B.length;m<h;m++)B[m].Xs(!1);L=!1}};Aa.oe=function(){var a,b,c,d;a=0;for(b=gb.length;a<b;a++)c=gb[a],d=this.b.pi(c.bl),
c.mj(d),c.bl=-1,d&&(qa=d.x,U=d.y);y(gb)};Aa.Wy=function(a){if(!this.Zy){!a&&D&&D.resume&&(D.resume(),Ca=!1);var b,c;b=0;for(c=B.length;b<c;b++)B[b].Kz(a);a&&D&&D.suspend&&(D.suspend(),Ca=!0)}};Aa.Fa=function(){var a=this.b.kf,b,c,d;b=0;for(c=B.length;b<c;b++)d=B[b],d.Fa(a),0!==M&&d.om();var e,f;for(e in fa)if(fa.hasOwnProperty(e))for(d=fa[e],b=0,c=d.length;b<c;b++)f=d[b],f.Fa&&f.Fa();1===da&&this.lc.Ik()&&(this.lc.Fa(a),qa=this.lc.W.x,U=this.lc.W.y,D.listener.setPosition(this.lc.W.x,this.lc.W.y,this.Pi),
D.listener.setVelocity(this.lc.Bn(),this.lc.Cn(),0))};var hb=[];Aa.Iz=function(a){var b,c,d,e,f,k=0;b=0;for(c=a.length;b<c;++b)if(d=a[b],e=d[0],d=2*d[1],(f=4<e.length&&".ogg"===e.substr(e.length-4))&&T||!f&&!T)hb.push({filename:e,size:d,W:null}),k+=d;return k};Aa.Oz=function(){var a,b,c,d;a=0;for(b=hb.length;a<b;++a)c=hb[a],d=this.b.mn+c.filename,c.W=this.Ak(d,!1)};Aa.Px=function(){var a=0,b,c,d;b=0;for(c=hb.length;b<c;++b)d=hb[b],d.W.zy()||d.W.my()||this.b.sb||this.b.Nk?a+=d.size:d.W.qr()&&(a+=Math.floor(d.size/
2));return a};Aa.rz=function(){var a,b,c,d;c=a=0;for(b=O.length;a<b;++a)d=O[a],O[c]=d,d.od?d.qz():++c;O.length=c};Aa.Ak=function(a,b){var c,d,e,f=null;c=0;for(d=O.length;c<d;c++)if(e=O[c],e.src===a){f=e;break}f||(db&&b&&this.rz(),f=new J(a,b),O.push(f));return f};Aa.Wq=function(a,b,c,d,e){var f,k,g;f=0;for(k=B.length;f<k;f++)if(g=B[f],g.src===a&&(g.fw()||c))return g.tag=b,g;a=this.Ak(a,c);if(!a.Ba)return"<preload>"!==b&&(a.Bl=b,a.po=d,a.Cp=e),null;g=new r(a,b);B.push(g);return g};var Ga=[];x.prototype.Ij=
function(a){return pb(v,a)};W.n=new x;H.prototype.Play=function(a,b,c,d){!L&&(c=Math.pow(10,c/20),isFinite(c)||(c=0),0>c&&(c=0),1<c&&(c=1),P=this.Wq(this.b.mn+a[0]+(T?".ogg":".m4a"),d,a[1],0!==b,c))&&(P.ep(!1),P.play(0!==b,c,0,this.hs),this.hs=0)};H.prototype.Ev=function(a){A(a);var b;a=0;for(b=Ga.length;a<b;a++)Ga[a].stop()};H.prototype.Fv=function(){var a,b;a=0;for(b=B.length;a<b;a++)B[a].stop()};W.B=new H;N.prototype.Jp=function(a,b){A(b,!0);Ga.length?a.I(Ga[0].of()):a.I(0)};W.L=new N})();
function uc(h){this.b=h}
(function(){function h(){}function g(){}var d=uc.prototype;d.S=function(d){this.Ja=d;this.b=d.b};d.S.prototype.H=function(){};d.N=function(d){this.type=d;this.b=d.b};d.N.prototype.H=function(){var d=this;window.addEventListener("resize",function(){d.b.trigger(uc.prototype.n.Su,d)});"undefined"!==typeof navigator.onLine&&(window.addEventListener("online",function(){d.b.trigger(uc.prototype.n.Pu,d)}),window.addEventListener("offline",function(){d.b.trigger(uc.prototype.n.Ou,d)}));"undefined"!==typeof window.applicationCache&&
(window.applicationCache.addEventListener("updateready",function(){d.b.nh=1;d.b.trigger(uc.prototype.n.$p,d)}),window.applicationCache.addEventListener("progress",function(g){d.b.nh=g.loaded/g.total||0}));this.b.ec||(document.addEventListener("appMobi.device.update.available",function(){d.b.trigger(uc.prototype.n.$p,d)}),document.addEventListener("backbutton",function(){d.b.trigger(uc.prototype.n.Hj,d)}),document.addEventListener("menubutton",function(){d.b.trigger(uc.prototype.n.Up,d)}),document.addEventListener("searchbutton",
function(){d.b.trigger(uc.prototype.n.Vu,d)}),document.addEventListener("tizenhwkey",function(g){var h;switch(g.keyName){case "back":h=d.b.trigger(uc.prototype.n.Hj,d);!h&&window.tizen&&window.tizen.application.getCurrentApplication().exit();break;case "menu":(h=d.b.trigger(uc.prototype.n.Up,d))||g.preventDefault()}}));this.b.Xn&&"undefined"!==typeof Windows?Windows.UI.Core.SystemNavigationManager.getForCurrentView().addEventListener("backrequested",function(g){d.b.trigger(uc.prototype.n.Hj,d)&&(g.qB=
!0)}):this.b.Pk&&WinJS.Application&&(WinJS.Application.onbackclick=function(){return!!d.b.trigger(uc.prototype.n.Hj,d)});this.b.oq(function(g){g?d.b.trigger(uc.prototype.n.Qu,d):d.b.trigger(uc.prototype.n.Ru,d)});this.$n="undefined"!==typeof window.is_scirra_arcade};h.prototype.Pu=function(){return!0};h.prototype.Ou=function(){return!0};h.prototype.$p=function(){return!0};h.prototype.Ru=function(){return!0};h.prototype.Qu=function(){return!0};h.prototype.Su=function(){return!0};h.prototype.Hj=function(){return!0};
h.prototype.Up=function(){return!0};h.prototype.Vu=function(){return!0};d.n=new h;g.prototype.iu=function(d,g){this.b.Zc?CocoonJS.App.openURL(d):this.b.nd?ejecta.openURL(d):this.b.Pk?Windows.System.Launcher.launchUriAsync(new Windows.Foundation.Uri(d)):navigator.app&&navigator.app.loadUrl?navigator.app.loadUrl(d,{openExternal:!0}):this.b.Bc?window.open(d,"_system"):this.$n||this.b.sb||(2!==g||this.$n?1!==g||this.$n?window.location=d:window.parent.location=d:window.top.location=d)};g.prototype.Xt=
function(d,g){"undefined"!==typeof console&&(0===d&&console.log&&console.log(g.toString()),1===d&&console.warn&&console.warn(g.toString()),2===d&&console.error&&console.error(g.toString()))};d.B=new g;d.L=new function(){}})();function vc(h){this.b=h}
(function(){function h(){}function g(){}function d(){}var f=vc.prototype;f.S=function(d){this.Ja=d;this.b=d.b};f.S.prototype.H=function(){};f.N=function(d){this.type=d;this.b=d.b};var m=f.N.prototype;m.H=function(){this.xc={}};m.Xa=function(){return this.xc};m.kb=function(d){this.xc=d;for(var f in this.xc);};h.prototype.ju=function(d){return this.xc.hasOwnProperty(d)};f.n=new h;g.prototype.Kt=function(d,f){this.xc[d]=f};g.prototype.lv=function(d,f){this.xc.hasOwnProperty(d)&&(this.xc[d]=f)};g.prototype.Zt=
function(d){this.xc.hasOwnProperty(d)&&delete this.xc[d]};g.prototype.Qt=function(){Ya(this.xc)};g.prototype.vu=function(d){var f;try{f=JSON.parse(d)}catch(c){return}if(f.c2dictionary){this.xc=f.data;for(var b in this.xc);}};f.B=new g;d.prototype.eu=function(d,f){this.xc.hasOwnProperty(f)?d.oj(this.xc[f]):d.ga(0)};d.prototype.ym=function(d){d.ob(JSON.stringify({c2dictionary:!0,data:this.xc}))};f.L=new d})();function sc(h){this.b=h}
(function(){function h(){this.name="";this.Fh=0;this.Fb=[]}function g(){c++;c===n.length&&n.push(new h);return n[c]}function d(){}function f(){}function m(){}var q=sc.prototype;q.S=function(b){this.Ja=b;this.b=b.b};q.S.prototype.H=function(){};q.N=function(b){this.type=b;this.b=b.b};var n=[],c=-1;q.N.prototype.H=function(){var b=this;window.c2_callFunction=function(d,a){var f,m,h,q=g();q.name=d.toLowerCase();q.Fh=0;if(a)for(q.Fb.length=a.length,f=0,m=a.length;f<m;++f)h=a[f],q.Fb[f]="number"===typeof h||
"string"===typeof h?h:"boolean"===typeof h?h?1:0:0;else y(q.Fb);b.b.trigger(sc.prototype.n.Kj,b,q.name);c--;return q.Fh}};d.prototype.Kj=function(b){var d=0>c?null:n[c];return d?pb(b,d.name):!1};q.n=new d;f.prototype.CallFunction=function(b,d){var a=g();a.name=b.toLowerCase();a.Fh=0;Da(a.Fb,d);this.b.trigger(sc.prototype.n.Kj,this,a.name);c--};f.prototype.sv=function(b){var d=0>c?null:n[c];d&&(d.Fh=b)};q.B=new f;m.prototype.$u=function(b,d){d=ta(d);var a=0>c?null:n[c];a?0<=d&&d<a.Fb.length?b.oj(a.Fb[d]):
b.ga(0):b.ga(0)};m.prototype.Hp=function(b,d){var a=g();a.name=d.toLowerCase();a.Fh=0;y(a.Fb);var f,m;f=2;for(m=arguments.length;f<m;f++)a.Fb.push(arguments[f]);this.b.trigger(sc.prototype.n.Kj,this,a.name);c--;b.oj(a.Fh)};q.L=new m})();var wc=!1;
try{!function(){var h,g,d;!function(){var f={},m={};h=function(d,g,c){f[d]={qw:g,ew:c}};d=g=function(h){function n(a){if("."!==a.charAt(0))return a;a=a.split("/");for(var b=h.split("/").slice(0,-1),c=0,d=a.length;d>c;c++){var e=a[c];".."===e?b.pop():"."!==e&&b.push(e)}return b.join("/")}if(d.jB=f,m[h])return m[h];if(m[h]={},!f[h])throw Error("Could not find module "+h);for(var c,b=f[h],e=b.qw,b=b.ew,a=[],k=0,p=e.length;p>k;k++)"exports"===e[k]?a.push(c={}):a.push(g(n(e[k])));e=b.apply(this,a);return m[h]=
c||e}}();h("promise/all",["./utils","exports"],function(d,g){var h=d.isArray,n=d.isFunction;g.all=function(c){if(!h(c))throw new TypeError("You must pass an array to all.");return new this(function(b,d){function a(a){return function(c){g[a]=c;0===--m&&b(g)}}var f,g=[],m=c.length;0===m&&b([]);for(var h=0;h<c.length;h++)(f=c[h])&&n(f.then)?f.then(a(h),d):(g[h]=f,0===--m&&b(g))})}});h("promise/asap",["exports"],function(d){function g(){return function(){process.zB(c)}}function h(){var b=0,d=new a(c),
e=document.createTextNode("");return d.observe(e,{characterData:!0}),function(){e.data=b=++b%2}}function n(){return function(){k.setTimeout(c,1)}}function c(){for(var a=0;a<p.length;a++){var b=p[a];(0,b[0])(b[1])}p=[]}var b,e="undefined"!=typeof window?window:{},a=e.MutationObserver||e.WebKitMutationObserver,k="undefined"!=typeof global?global:void 0===this?window:this,p=[];b="undefined"!=typeof process&&"[object process]"==={}.toString.call(process)?g():a?h():n();d.Yv=function(a,c){1===p.push([a,
c])&&b()}});h("promise/config",["exports"],function(d){var g={sB:!1};d.Cq=g;d.jw=function(d,f){return 2!==arguments.length?g[d]:void(g[d]=f)}});h("promise/polyfill",["./promise","./utils","exports"],function(d,g,h){var n=d.Promise,c=g.isFunction;h.az=function(){var b;b="undefined"!=typeof global?global:"undefined"!=typeof window&&window.document?window:self;"Promise"in b&&"resolve"in b.Promise&&"reject"in b.Promise&&"all"in b.Promise&&"race"in b.Promise&&function(){var d;return new b.Promise(function(a){d=
a}),c(d)}()||(b.Promise=n)}});h("promise/promise","./config ./utils ./all ./race ./resolve ./reject ./asap exports".split(" "),function(d,g,h,n,c,b,e,a){function k(a){if(!x(a))throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");if(!(this instanceof k))throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this.Nj=[];p(a,this)}function p(a,b){function c(a){l(b,
a)}function d(a){J(b,a)}try{a(c,d)}catch(e){d(e)}}function u(a,b,c,d){var e,f,g,k,m=x(c);if(m)try{e=c(d),g=!0}catch(h){k=!0,f=h}else e=d,g=!0;z(b,e)||(m&&g?l(b,e):k?J(b,f):a===W?l(b,e):a===K&&J(b,e))}function E(a,b,c,d){a=a.Nj;var e=a.length;a[e]=b;a[e+W]=c;a[e+K]=d}function C(a,b){for(var c,d,e=a.Nj,f=a.Mj,g=0;g<e.length;g+=3)c=e[g],d=e[g+b],u(b,c,d,f);a.Nj=null}function z(a,b){var c,d=null;try{if(a===b)throw new TypeError("A promises callback cannot return that same promise.");if(F(b)&&(d=b.then,
x(d)))return d.call(b,function(d){return c?!0:(c=!0,void(b!==d?l(a,d):t(a,d)))},function(b){return c?!0:(c=!0,void J(a,b))}),!0}catch(e){return c?!0:(J(a,e),!0)}return!1}function l(a,b){a===b?t(a,b):z(a,b)||t(a,b)}function t(a,b){a.ne===H&&(a.ne=N,a.Mj=b,A.async(r,a))}function J(a,b){a.ne===H&&(a.ne=N,a.Mj=b,A.async(w,a))}function r(a){C(a,a.ne=W)}function w(a){C(a,a.ne=K)}var A=d.Cq,F=(d.jw,g.Py),x=g.isFunction;d=(g.now,h.all);n=n.race;c=c.resolve;b=b.reject;A.async=e.Yv;var H=void 0,N=0,W=1,K=2;
k.prototype={constructor:k,ne:void 0,Mj:void 0,Nj:void 0,then:function(a,b){var c=this,d=new this.constructor(function(){});if(this.ne){var e=arguments;A.async(function(){u(c.ne,d,e[c.ne-1],c.Mj)})}else E(this,d,a,b);return d},"catch":function(a){return this.then(null,a)}};k.all=d;k.race=n;k.resolve=c;k.reject=b;a.Promise=k});h("promise/race",["./utils","exports"],function(d,g){var h=d.isArray;g.race=function(d){if(!h(d))throw new TypeError("You must pass an array to race.");return new this(function(c,
b){for(var e,a=0;a<d.length;a++)(e=d[a])&&"function"==typeof e.then?e.then(c,b):c(e)})}});h("promise/reject",["exports"],function(d){d.reject=function(d){return new this(function(f,g){g(d)})}});h("promise/resolve",["exports"],function(d){d.resolve=function(d){return d&&"object"==typeof d&&d.constructor===this?d:new this(function(f){f(d)})}});h("promise/utils",["exports"],function(d){function g(d){return"function"==typeof d}var h=Date.now||function(){return(new Date).getTime()};d.Py=function(d){return g(d)||
"object"==typeof d&&null!==d};d.isFunction=g;d.isArray=function(d){return"[object Array]"===Object.prototype.toString.call(d)};d.now=h});g("promise/polyfill").az()}();var xc=function(){return function(h){function g(f){if(d[f])return d[f].Td;var m=d[f]={Td:{},id:f,loaded:!1};return h[f].call(m.Td,m,m.Td,g),m.loaded=!0,m.Td}var d={};return g.Lf=h,g.bi=d,g.ao="",g(0)}([function(h,g,d){g.Lj=!0;var f=function(f){function g(a,b){a[b]=function(){var c=arguments;return a.ready().then(function(){return a[b].apply(a,
c)})}}function h(){for(var a=1;a<arguments.length;a++){var b=arguments[a];if(b)for(var c in b)b.hasOwnProperty(c)&&(u(b[c])?arguments[0][c]=b[c].slice():arguments[0][c]=b[c])}return arguments[0]}function c(a){for(var b in e)if(e.hasOwnProperty(b)&&e[b]===a)return!0;return!1}var b={},e={Uh:"asyncStorage",Vh:"localStorageWrapper",Wh:"webSQLStorage"},a="clear getItem iterate key keys length removeItem setItem".split(" "),k={description:"",Rg:[e.Uh,e.Wh,e.Vh].slice(),name:"localforage",size:4980736,Ea:"keyvaluepairs",
version:1},p=function(a){var b={},c;try{var d=d||a.indexedDB||a.webkitIndexedDB||a.mozIndexedDB||a.Cr||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.Uh]=!!c;var g;try{g=a.openDatabase}catch(k){g=!1}b[e.Wh]=!!g;var h;try{h=a.localStorage&&"setItem"in a.localStorage&&a.localStorage.setItem}catch(m){h=
!1}return b[e.Vh]=!!h,b}(f),u=Array.isArray||function(a){return"[object Array]"===Object.prototype.toString.call(a)};return new (function(){function f(a){if(!(this instanceof f))throw new TypeError("Cannot call a class as a function");this.Uh=e.Uh;this.Vh=e.Vh;this.Wh=e.Wh;this.Im=h({},k);this.If=h({},this.Im,a);this.gq=this.Pd=null;this.Ye=!1;this.Ca=null;this.hq();this.Us(this.If.Rg)}return f.prototype.Cq=function(a){if("object"==typeof a){if(this.Ye)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.If[b]=a[b];return"driver"in a&&a.Rg&&this.Us(this.If.Rg),!0}return"string"==typeof a?this.If[a]:this.If},f.prototype.Rg=function(){return this.Xh||null},f.prototype.Zq=function(a,e,f){var g=this,k=function(){if(c(a))switch(a){case g.Uh:return new Promise(function(a){a(d(1))});case g.Vh:return new Promise(function(a){a(d(2))});case g.Wh:return new Promise(function(a){a(d(4))})}else if(b[a])return Promise.resolve(b[a]);return Promise.reject(Error("Driver not found."))}();
return k.then(e,f),k},f.prototype.ready=function(a){var b=this,c=b.Pd.then(function(){return null===b.Ye&&(b.Ye=b.gq()),b.Ye});return c.then(a,a),c},f.prototype.Us=function(a,b,c){function d(){f.If.Rg=f.Rg()}function e(a){return function(){function b(){for(;c<a.length;){var e=a[c];return c++,f.Ca=null,f.Ye=null,f.Zq(e).then(function(a){return f.Ov(a),d(),f.Ye=f.Km(f.If),f.Ye})["catch"](b)}d();return f.Pd=Promise.reject(Error("No available storage method found.")),f.Pd}var c=0;return b()}}var f=this;
u(a)||(a=[a]);var g=this.Pv(a);return this.Pd=(null!==this.Pd?this.Pd["catch"](function(){return Promise.resolve()}):Promise.resolve()).then(function(){var a=g[0];return f.Ca=null,f.Ye=null,f.Zq(a).then(function(a){f.Xh=a.Xh;d();f.hq();f.gq=e(g)})})["catch"](function(){d();return f.Pd=Promise.reject(Error("No available storage method found.")),f.Pd}),this.Pd.then(b,c),this.Pd},f.prototype.supports=function(a){return!!p[a]},f.prototype.Ov=function(a){h(this,a)},f.prototype.Pv=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},f.prototype.hq=function(){for(var b=0;b<a.length;b++)g(this,a[b])},f.prototype.dk=function(a){return new f(a)},f}())}("undefined"!=typeof window?window:self);g["default"]=f;h.Td=g["default"]},function(h,g){g.Lj=!0;g["default"]=function(d){function f(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.Lf||d.ao||d.WebKitBlobBuilder),f=0;f<a.length;f+=1)e.append(a[f]);
return e.getBlob(b.type)}}function g(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 h(a){return(new Promise(function(b,c){var d=f([""],{type:"image/png"}),e=a.transaction([H],"readwrite");e.objectStore(H).put(d,
"key");e.oncomplete=function(){var d=a.transaction([H],"readwrite").objectStore(H).get("key");d.onerror=c;d.onsuccess=function(a){var c=URL.createObjectURL(a.target.result);g(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 n(a){return"boolean"==typeof F?Promise.resolve(F):h(a).then(function(a){return F=a})}function c(a){return new Promise(function(b,c){var d=new FileReader;
d.onerror=c;d.onloadend=function(c){b({fq:!0,data:btoa(c.target.result||""),type:a.type})};d.readAsBinaryString(a)})}function b(a){for(var b=atob(a.data),c=b.length,d=new ArrayBuffer(c),e=new Uint8Array(d),g=0;c>g;g++)e[g]=b.charCodeAt(g);return f([d],{type:a.type})}function e(a){var b=this,c=b.Jm().then(function(){var a=x[b.Ca.name];return a&&a.Og?a.Og:void 0});return c.then(a,a),c}function a(a){a=x[a.name];var b={};b.promise=new Promise(function(a){b.resolve=a});a.Hq.push(b);a.Og?a.Og=a.Og.then(function(){return b.promise}):
a.Og=b.promise}function k(a){function b(){return Promise.resolve()}var c=this,f={db:null};if(a)for(var g in a)f[g]=a[g];x||(x={});var k=x[f.name];k||(k={xk:[],db:null,Og:null,Hq:[]},x[f.name]=k);k.xk.push(c);c.Jm||(c.Jm=c.ready,c.ready=e);a=[];for(g=0;g<k.xk.length;g++){var h=k.xk[g];h!==c&&a.push(h.Jm()["catch"](b))}var m=k.xk.slice(0);return Promise.all(a).then(function(){return f.db=k.db,p(f,!1)}).then(function(a){f.db=a;var b;b=c.Im.version;if(f.db){var e=!f.db.objectStoreNames.contains(f.Ea),
g=f.version>f.db.version;(f.version<f.db.version&&(f.version!==b&&d.console.warn('The database "'+f.name+"\" can't be downgraded from version "+f.db.version+" to version "+f.version+"."),f.version=f.db.version),g||e)?(e&&(b=f.db.version+1,b>f.version&&(f.version=b)),b=!0):b=!1}else b=!0;return b?p(f,!0):a}).then(function(a){f.db=k.db=a;c.Ca=f;for(a=0;a<m.length;a++){var b=m[a];b!==c&&(b.Ca.db=f.db,b.Ca.version=f.version)}})}function p(b,c){return new Promise(function(e,f){if(b.db){if(!c)return e(b.db);
a(b);b.db.close()}var g=[b.name];c&&g.push(b.version);var k=A.open.apply(A,g);c&&(k.onupgradeneeded=function(a){var c=k.result;try{c.createObjectStore(b.Ea),1>=a.oldVersion&&c.createObjectStore(H)}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.Ea+'" already exists.')}});k.onerror=function(){f(k.error)};k.onsuccess=function(){e(k.result);var a=x[b.name].Hq.pop();
a&&a.resolve()}})}function u(a,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(){var f=e.Ca,g=f.db.transaction(f.Ea,"readonly").objectStore(f.Ea).get(a);g.onsuccess=function(){var a=g.result;void 0===a&&(a=null);a&&a.fq&&(a=b(a));c(a)};g.onerror=function(){d(g.error)}})["catch"](d)});return w(f,c),f}function E(a,c){var d=this,e=new Promise(function(c,e){d.ready().then(function(){var f=
d.Ca,g=f.db.transaction(f.Ea,"readonly").objectStore(f.Ea).openCursor(),k=1;g.onsuccess=function(){var d=g.result;if(d){var e=d.value;e&&e.fq&&(e=b(e));e=a(e,d.key,k++);void 0!==e?c(e):d["continue"]()}else c()};g.onerror=function(){e(g.error)}})["catch"](e)});return w(e,c),e}function C(a,b,e){var f=this;"string"!=typeof a&&(d.console.warn(a+" used as a key, but it is not a string."),a=String(a));var g=new Promise(function(d,e){var g;f.ready().then(function(){return g=f.Ca,b instanceof Blob?n(g.db).then(function(a){return a?
b:c(b)}):b}).then(function(b){var c=g.db.transaction(g.Ea,"readwrite"),f=c.objectStore(g.Ea);null===b&&(b=void 0);c.oncomplete=function(){void 0===b&&(b=null);d(b)};c.onabort=c.onerror=function(){e(k.error?k.error:k.transaction.error)};var k=f.put(b,a)})["catch"](e)});return w(g,e),g}function z(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.Ca,f=e.db.transaction(e.Ea,"readwrite"),
g=f.objectStore(e.Ea)["delete"](a);f.oncomplete=function(){b()};f.onerror=function(){d(g.error)};f.onabort=function(){d(g.error?g.error:g.transaction.error)}})["catch"](d)});return w(e,b),e}function l(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.Ca,e=d.db.transaction(d.Ea,"readwrite"),f=e.objectStore(d.Ea).clear();e.oncomplete=function(){a()};e.onabort=e.onerror=function(){c(f.error?f.error:f.transaction.error)}})["catch"](c)});return w(c,a),c}function t(a){var b=this,
c=new Promise(function(a,c){b.ready().then(function(){var d=b.Ca,e=d.db.transaction(d.Ea,"readonly").objectStore(d.Ea).count();e.onsuccess=function(){a(e.result)};e.onerror=function(){c(e.error)}})["catch"](c)});return w(c,a),c}function J(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.Ca,f=!1,g=e.db.transaction(e.Ea,"readonly").objectStore(e.Ea).openCursor();g.onsuccess=function(){var c=g.result;return c?void(0===a?b(c.key):f?b(c.key):(f=
!0,c.advance(a))):void b(null)};g.onerror=function(){d(g.error)}})["catch"](d)});return w(d,b),d}function r(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.Ca,e=d.db.transaction(d.Ea,"readonly").objectStore(d.Ea).openCursor(),f=[];e.onsuccess=function(){var b=e.result;return b?(f.push(b.key),void b["continue"]()):void a(f)};e.onerror=function(){c(e.error)}})["catch"](c)});return w(c,a),c}function w(a,b){b&&a.then(function(a){b(null,a)},function(a){b(a)})}var A=A||d.indexedDB||
d.webkitIndexedDB||d.mozIndexedDB||d.Cr||d.msIndexedDB;if(A){var F,x,H="local-forage-detect-blob-support";return{Xh:"asyncStorage",Km:k,Br:E,getItem:u,setItem:C,removeItem:z,clear:l,length:t,key:J,keys:r}}}("undefined"!=typeof window?window:self);h.Td=g["default"]},function(h,g,d){g.Lj=!0;g["default"]=function(f){function g(c,b){b&&c.then(function(c){b(null,c)},function(c){b(c)})}var h=null;try{if(!(f.localStorage&&"setItem"in f.localStorage))return;h=f.localStorage}catch(n){return}return{Xh:"localStorageWrapper",
Km:function(c){var b={};if(c)for(var e in c)b[e]=c[e];return b.Zd=b.name+"/",b.Ea!==this.Im.Ea&&(b.Zd+=b.Ea+"/"),this.Ca=b,(new Promise(function(a){a(d(3))})).then(function(a){return b.wg=a,Promise.resolve()})},Br:function(c,b){var d=this,a=d.ready().then(function(){for(var a=d.Ca,b=a.Zd,f=b.length,g=h.length,m=1,n=0;g>n;n++){var l=h.key(n);if(0===l.indexOf(b)){var t=h.getItem(l);if(t&&(t=a.wg.lk(t)),t=c(t,l.substring(f),m++),void 0!==t)return t}}});return g(a,b),a},getItem:function(c,b){var d=this;
"string"!=typeof c&&(f.console.warn(c+" used as a key, but it is not a string."),c=String(c));var a=d.ready().then(function(){var a=d.Ca,b=h.getItem(a.Zd+c);return b&&(b=a.wg.lk(b)),b});return g(a,b),a},setItem:function(c,b,d){var a=this;"string"!=typeof c&&(f.console.warn(c+" used as a key, but it is not a string."),c=String(c));var k=a.ready().then(function(){void 0===b&&(b=null);var d=b;return new Promise(function(e,f){var g=a.Ca;g.wg.serialize(b,function(a,b){if(b)f(b);else try{h.setItem(g.Zd+
c,a),e(d)}catch(k){"QuotaExceededError"!==k.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==k.name||f(k),f(k)}})})});return g(k,d),k},removeItem:function(c,b){var d=this;"string"!=typeof c&&(f.console.warn(c+" used as a key, but it is not a string."),c=String(c));var a=d.ready().then(function(){h.removeItem(d.Ca.Zd+c)});return g(a,b),a},clear:function(c){var b=this,d=b.ready().then(function(){for(var a=b.Ca.Zd,c=h.length-1;0<=c;c--){var d=h.key(c);0===d.indexOf(a)&&h.removeItem(d)}});return g(d,c),d},length:function(c){var b=
this.keys().then(function(b){return b.length});return g(b,c),b},key:function(c,b){var d=this,a=d.ready().then(function(){var a,b=d.Ca;try{a=h.key(c)}catch(f){a=null}return a&&(a=a.substring(b.Zd.length)),a});return g(a,b),a},keys:function(c){var b=this,d=b.ready().then(function(){for(var a=b.Ca,c=h.length,d=[],e=0;c>e;e++)0===h.key(e).indexOf(a.Zd)&&d.push(h.key(e).substring(a.Zd.length));return d});return g(d,c),d}}}("undefined"!=typeof window?window:self);h.Td=g["default"]},function(h,g){g.Lj=!0;
g["default"]=function(d){function f(c){var b,d,a,f,g;b=.75*c.length;var m=c.length,n=0;"="===c[c.length-1]&&(b--,"="===c[c.length-2]&&b--);var C=new ArrayBuffer(b),z=new Uint8Array(C);for(b=0;m>b;b+=4)d=h.indexOf(c[b]),a=h.indexOf(c[b+1]),f=h.indexOf(c[b+2]),g=h.indexOf(c[b+3]),z[n++]=d<<2|a>>4,z[n++]=(15&a)<<4|f>>2,z[n++]=(3&f)<<6|63&g;return C}function g(c){var b=new Uint8Array(c),d="";for(c=0;c<b.length;c+=3)d+=h[b[c]>>2],d+=h[(3&b[c])<<4|b[c+1]>>4],d+=h[(15&b[c+1])<<2|b[c+2]>>6],d+=h[63&b[c+2]];
return 2===b.length%3?d=d.substring(0,d.length-1)+"=":1===b.length%3&&(d=d.substring(0,d.length-2)+"=="),d}var h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=/^~~local_forage_type~([^~]+)~/;return{serialize:function(c,b){var d="";if(c&&(d=c.toString()),c&&("[object ArrayBuffer]"===c.toString()||c.buffer&&"[object ArrayBuffer]"===c.buffer.toString())){var a,f="__lfsc__:";c instanceof ArrayBuffer?(a=c,f+="arbf"):(a=c.buffer,"[object Int8Array]"===d?f+="si08":"[object Uint8Array]"===
d?f+="ui08":"[object Uint8ClampedArray]"===d?f+="uic8":"[object Int16Array]"===d?f+="si16":"[object Uint16Array]"===d?f+="ur16":"[object Int32Array]"===d?f+="si32":"[object Uint32Array]"===d?f+="ui32":"[object Float32Array]"===d?f+="fl32":"[object Float64Array]"===d?f+="fl64":b(Error("Failed to get type for BinaryArray")));b(f+g(a))}else if("[object Blob]"===d)d=new FileReader,d.onload=function(){var a="~~local_forage_type~"+c.type+"~"+g(this.result);b("__lfsc__:blob"+a)},d.readAsArrayBuffer(c);else try{b(JSON.stringify(c))}catch(h){console.error("Couldn't convert value into a JSON string: ",
c),b(null,h)}},lk:function(c){if("__lfsc__:"!==c.substring(0,9))return JSON.parse(c);var b,e=c.substring(13);c=c.substring(9,13);if("blob"===c&&n.test(e)){var a=e.match(n);b=a[1];e=e.substring(a[0].length)}e=f(e);switch(c){case "arbf":return e;case "blob":var g;e=[e];b={type:b};e=e||[];b=b||{};try{g=new Blob(e,b)}catch(h){if("TypeError"!==h.name)throw h;g=new (d.BlobBuilder||d.Lf||d.ao||d.WebKitBlobBuilder);for(c=0;c<e.length;c+=1)g.append(e[c]);g=g.getBlob(b.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: "+c);}},HB:f,lB:g}}("undefined"!=typeof window?window:self);h.Td=g["default"]},function(h,g,d){g.Lj=!0;g["default"]=function(f){function g(a){var b=this,c={db:null};
if(a)for(var e in a)c[e]="string"!=typeof a[e]?a[e].toString():a[e];var f=new Promise(function(a,d){try{c.db=E(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.Ea+" (id INTEGER PRIMARY KEY, key unique, value)",[],function(){b.Ca=c;a()},function(a,b){d(b)})})});return(new Promise(function(a){a(d(3))})).then(function(a){return c.wg=a,f})}function h(a,b){var c=this;"string"!=typeof a&&(f.console.warn(a+" used as a key, but it is not a string."),
a=String(a));var d=new Promise(function(b,d){c.ready().then(function(){var e=c.Ca;e.db.transaction(function(c){c.executeSql("SELECT * FROM "+e.Ea+" WHERE key = ? LIMIT 1",[a],function(a,c){var d=c.rows.length?c.rows.item(0).value:null;d&&(d=e.wg.lk(d));b(d)},function(a,b){d(b)})})})["catch"](d)});return u(d,b),d}function n(a,b){var c=this,d=new Promise(function(b,d){c.ready().then(function(){var e=c.Ca;e.db.transaction(function(c){c.executeSql("SELECT * FROM "+e.Ea,[],function(c,d){for(var f=d.rows,
g=f.length,k=0;g>k;k++){var h=f.item(k),m=h.value;if(m&&(m=e.wg.lk(m)),m=a(m,h.key,k+1),void 0!==m)return void b(m)}b()},function(a,b){d(b)})})})["catch"](d)});return u(d,b),d}function c(a,b,c){var d=this;"string"!=typeof a&&(f.console.warn(a+" used as a key, but it is not a string."),a=String(a));var e=new Promise(function(c,e){d.ready().then(function(){void 0===b&&(b=null);var f=b,g=d.Ca;g.wg.serialize(b,function(b,d){d?e(d):g.db.transaction(function(d){d.executeSql("INSERT OR REPLACE INTO "+g.Ea+
" (key, value) VALUES (?, ?)",[a,b],function(){c(f)},function(a,b){e(b)})},function(a){a.code===a.QUOTA_ERR&&e(a)})})})["catch"](e)});return u(e,c),e}function b(a,b){var c=this;"string"!=typeof a&&(f.console.warn(a+" used as a key, but it is not a string."),a=String(a));var d=new Promise(function(b,d){c.ready().then(function(){var e=c.Ca;e.db.transaction(function(c){c.executeSql("DELETE FROM "+e.Ea+" WHERE key = ?",[a],function(){b()},function(a,b){d(b)})})})["catch"](d)});return u(d,b),d}function e(a){var b=
this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.Ca;d.db.transaction(function(b){b.executeSql("DELETE FROM "+d.Ea,[],function(){a()},function(a,b){c(b)})})})["catch"](c)});return u(c,a),c}function a(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.Ca;d.db.transaction(function(b){b.executeSql("SELECT COUNT(key) as c FROM "+d.Ea,[],function(b,c){var d=c.rows.item(0).bi;a(d)},function(a,b){c(b)})})})["catch"](c)});return u(c,a),c}function k(a,b){var c=this,
d=new Promise(function(b,d){c.ready().then(function(){var e=c.Ca;e.db.transaction(function(c){c.executeSql("SELECT key FROM "+e.Ea+" 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 u(d,b),d}function p(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.Ca;d.db.transaction(function(b){b.executeSql("SELECT key FROM "+d.Ea,[],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 u(c,a),c}function u(a,b){b&&a.then(function(a){b(null,a)},function(a){b(a)})}var E=f.openDatabase;if(E)return{Xh:"webSQLStorage",Km:g,Br:n,getItem:h,setItem:c,removeItem:b,clear:e,length:a,key:k,keys:p}}("undefined"!=typeof window?window:self);h.Td=g["default"]}])};"object"==typeof exports&&"object"==typeof module?module.Td=xc():"function"==typeof define&&define.kB?define([],xc):"object"==typeof exports?exports.localforage=xc():this.localforage=
xc()}catch(yc){wc=!0}function zc(h){this.b=h}
(function(){function h(b){b.b.trigger(zc.prototype.n.Jj,b)}function g(){}function d(){}function f(){}var m="",q="",n="";"undefined"!==typeof window.is_scirra_arcade&&(n="sa"+window.scirra_arcade_id+"_");var c=zc.prototype;c.S=function(b){this.Ja=b;this.b=b.b};c.S.prototype.H=function(){};c.N=function(b){this.type=b;this.b=b.b};var b=c.N.prototype;b.H=function(){this.Ho=this.Io=0};b.yf=function(){};b.Xa=function(){return{}};b.kb=function(){};g.prototype.Rp=function(b){return m===b};g.prototype.Cu=
function(){return!0};g.prototype.Pp=function(b){return m===b};g.prototype.Bu=function(){return!0};g.prototype.Jj=function(){return!0};g.prototype.Op=function(b){return m===b};g.prototype.Qp=function(b){return m===b};g.prototype.yu=function(){return!0};g.prototype.Lp=function(){return!0};c.n=new g;d.prototype.kv=function(b,a){if(wc)h(this);else{var c=n+b;this.Io++;var d=this;localforage.setItem(c,a,function(a,c){d.Io--;a?d.b.trigger(zc.prototype.n.Jj,d):(m=b,q=c,d.b.trigger(zc.prototype.n.Cu,d),d.b.trigger(zc.prototype.n.Rp,
d),q=m="");0===d.Io&&d.b.trigger(zc.prototype.n.yu,d)})}};d.prototype.fu=function(b){if(wc)h(this);else{var a=n+b;this.Ho++;var c=this;localforage.getItem(a,function(a,d){c.Ho--;if(a)c.b.trigger(zc.prototype.n.Jj,c);else{m=b;q=d;if("undefined"===typeof q||null===q)q="";c.b.trigger(zc.prototype.n.Bu,c);c.b.trigger(zc.prototype.n.Pp,c);q=m=""}0===c.Ho&&c.b.trigger(zc.prototype.n.Lp,c)})}};d.prototype.Pt=function(b){if(wc)h(this);else{var a=this;localforage.getItem(n+b,function(c,d){c?a.b.trigger(zc.prototype.n.Jj,
a):(m=b,null===d?(q="",a.b.trigger(zc.prototype.n.Qp,a)):(q=d,a.b.trigger(zc.prototype.n.Op,a)),q=m="")})}};c.B=new d;f.prototype.tu=function(b){b.oj(q)};c.L=new f})();function Ac(h){this.b=h}
(function(){function h(d){this.Ra=d;this.Ka=!1;this.q=this.speed=this.y=this.x=0;this.opacity=1;this.bf=this.Yg=this.size=this.Fk=0}var g=Ac.prototype;g.S=function(d){this.Ja=d;this.b=d.b};var d=g.S.prototype;d.H=function(){this.V||(this.Sa=new Image,this.Sa.Dq=this.np,this.Mb=null,this.b.It(this.Sa,this.mp))};d.ml=function(){this.V||(this.Mb=null)};d.Bo=function(){this.V||!this.k.length||this.Mb||(this.Mb=this.b.F.al(this.Sa,!0,this.b.la,this.op))};d.jo=function(){this.V||this.Mb||!this.b.F||(this.Mb=
this.b.F.al(this.Sa,!0,this.b.la,this.op))};d.vp=function(){this.V||this.k.length||!this.Mb||(this.b.F.deleteTexture(this.Mb),this.Mb=null)};d.Mo=function(d){d.drawImage(this.Sa,0,0)};h.prototype.init=function(){var d=this.Ra;this.x=d.x-d.vm/2+Math.random()*d.vm;this.y=d.y-d.wm/2+Math.random()*d.wm;this.speed=d.On-d.Xl/2+Math.random()*d.Xl;this.q=d.q-d.Yl/2+Math.random()*d.Yl;this.opacity=d.Mn;this.size=d.Nn-d.Wl/2+Math.random()*d.Wl;this.Fk=d.Fn-d.Gk/2+Math.random()*d.Gk;this.bf=this.Yg=0};h.prototype.Fa=
function(d){var f=this.Ra;this.x+=Math.cos(this.q)*this.speed*d;this.y+=Math.sin(this.q)*this.speed*d;this.y+=this.Yg*d;this.speed+=f.Sc*d;this.size+=this.Fk*d;this.Yg+=f.mf*d;this.bf+=d;1>this.size?this.Ka=!1:(0!==f.Mi&&(this.q+=Math.random()*f.Mi*d-f.Mi*d/2),0!==f.Oi&&(this.speed+=Math.random()*f.Oi*d-f.Oi*d/2),0!==f.Ni&&(this.opacity+=Math.random()*f.Ni*d-f.Ni*d/2,0>this.opacity?this.opacity=0:1<this.opacity&&(this.opacity=1)),1>=f.Pg&&this.bf>=f.timeout&&(this.Ka=!1),2===f.Pg&&0>=this.speed&&
(this.Ka=!1))};h.prototype.ld=function(d){var f=this.Ra.opacity*this.opacity;if(0!==f){0===this.Ra.Pg&&(f*=1-this.bf/this.Ra.timeout);d.globalAlpha=f;var f=this.x-this.size/2,g=this.y-this.size/2;this.Ra.b.Fd&&(f=f+.5|0,g=g+.5|0);d.drawImage(this.Ra.type.Sa,f,g,this.size,this.size)}};h.prototype.yc=function(d){var f=this.Ra.opacity*this.opacity;0===this.Ra.Pg&&(f*=1-this.bf/this.Ra.timeout);var g=this.size,c=g*this.Ra.Gs,b=this.x-g/2,e=this.y-g/2;this.Ra.b.Fd&&(b=b+.5|0,e=e+.5|0);1>c||0===f||(c<d.Ny||
c>d.qo?(d.xg(f),d.Ch(b,e,b+g,e,b+g,e+g,b,e+g)):d.$y(this.x,this.y,c,f))};h.prototype.left=function(){return this.x-this.size/2};h.prototype.right=function(){return this.x+this.size/2};h.prototype.top=function(){return this.y-this.size/2};h.prototype.bottom=function(){return this.y+this.size/2};g.N=function(d){this.type=d;this.b=d.b};var d=g.N.prototype,f=[];d.H=function(){var d=this.C;this.Jl=d[0];this.Yl=G(d[1]);this.Lh=d[2];this.ip=!0;this.On=d[3];this.Nn=d[4];this.Mn=d[5]/100;this.Fn=d[6];this.vm=
d[7];this.wm=d[8];this.Xl=d[9];this.Wl=d[10];this.Gk=d[11];this.Sc=d[12];this.mf=d[13];this.Mi=d[14];this.Oi=d[15];this.Ni=d[16];this.Pg=d[17];this.timeout=d[18];this.tg=0;this.Gs=1;this.wl=this.x;this.yl=this.y;this.xl=this.x;this.ul=this.y;this.Vv(function(d){d.Oa.set(d.wl,d.yl,d.xl,d.ul);d.jc.Kh(d.Oa);d.Wj=!1;d.Ap();d.Ft()});this.Dc||(this.nc=[]);this.b.yj(this);this.type.jo();if(1===this.Lh)for(d=0;d<this.Jl;d++)this.Mm().opacity=0;this.vk=!0};d.Xa=function(){var d={r:this.Jl,sc:this.Yl,st:this.Lh,
s:this.ip,isp:this.On,isz:this.Nn,io:this.Mn,gr:this.Fn,xr:this.vm,yr:this.wm,spr:this.Xl,szr:this.Wl,grnd:this.Gk,acc:this.Sc,g:this.mf,lar:this.Mi,lsr:this.Oi,lor:this.Ni,dm:this.Pg,to:this.timeout,pcc:this.tg,ft:this.vk,p:[]},f,g,c,b=d.p;f=0;for(g=this.nc.length;f<g;f++)c=this.nc[f],b.push([c.x,c.y,c.speed,c.q,c.opacity,c.Fk,c.size,c.Yg,c.bf]);return d};d.kb=function(d){this.Jl=d.r;this.Yl=d.sc;this.Lh=d.st;this.ip=d.s;this.On=d.isp;this.Nn=d.isz;this.Mn=d.io;this.Fn=d.gr;this.vm=d.xr;this.wm=
d.yr;this.Xl=d.spr;this.Wl=d.szr;this.Gk=d.grnd;this.Sc=d.acc;this.mf=d.g;this.Mi=d.lar;this.Oi=d.lsr;this.Ni=d.lor;this.Pg=d.dm;this.timeout=d.to;this.tg=d.pcc;this.vk=d.ft;f.push.apply(f,this.nc);y(this.nc);var g,h,c,b=d.p;d=0;for(g=b.length;d<g;d++)h=this.Mm(),c=b[d],h.x=c[0],h.y=c[1],h.speed=c[2],h.q=c[3],h.opacity=c[4],h.Fk=c[5],h.size=c[6],h.Yg=c[7],h.bf=c[8]};d.yf=function(){f.push.apply(f,this.nc);y(this.nc)};d.Mm=function(){var d;f.length?(d=f.pop(),d.Ra=this):d=new h(this);this.nc.push(d);
d.Ka=!0;return d};d.Fa=function(){var d=this.b.Wd(this),g,h,c,b;if(0===this.Lh&&this.ip)for(this.tg+=d*this.Jl,h=ta(this.tg),this.tg-=h,g=0;g<h;g++)c=this.Mm(),c.init();this.wl=this.x;this.yl=this.y;this.xl=this.x;this.ul=this.y;b=g=0;for(h=this.nc.length;g<h;g++)c=this.nc[g],this.nc[b]=c,this.b.da=!0,1===this.Lh&&this.vk&&c.init(),c.Fa(d),c.Ka?(c.left()<this.wl&&(this.wl=c.left()),c.right()>this.xl&&(this.xl=c.right()),c.top()<this.yl&&(this.yl=c.top()),c.bottom()>this.ul&&(this.ul=c.bottom()),b++):
f.push(c);Ba(this.nc,b);this.X();this.vk=!1;1===this.Lh&&0===this.nc.length&&this.b.Od(this)};d.ld=function(d){var f,g,c,b=this.u;f=0;for(g=this.nc.length;f<g;f++)c=this.nc[f],c.right()>=b.Ha&&c.bottom()>=b.Ia&&c.left()<=b.Na&&c.top()<=b.Ma&&c.ld(d)};d.yc=function(d){this.Gs=this.u.Ac();d.Rc(this.type.Mb);var f,g,c,b=this.u;f=0;for(g=this.nc.length;f<g;f++)c=this.nc[f],c.right()>=b.Ha&&c.bottom()>=b.Ia&&c.left()<=b.Na&&c.top()<=b.Ma&&c.yc(d)};g.n=new function(){};g.B=new function(){};g.L=new function(){}})();
function R(h){this.b=h}
(function(){function h(){if(0===this.an.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.Mh?b.drawImage(this.Sa,this.vh,this.wh,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.Sa,0,0,this.width,this.height);this.an=a.toDataURL("image/png")}return this.an}function g(){}function d(a){a[0]=0;a[1]=0;a[2]=0;u.push(a)}function f(a,b){return a<b?""+a+","+b:""+b+","+a}function m(a,b,c,d){b=b.uid;c=c.uid;var e=f(b,c);if(a.hasOwnProperty(e))a[e][2]=
d;else{var g=u.length?u.pop():[0,0,0];g[0]=b;g[1]=c;g[2]=d;a[e]=g}}function q(a,b,c){b=f(b.uid,c.uid);a.hasOwnProperty(b)&&(d(a[b]),delete a[b])}function n(a,b,c){b=f(b.uid,c.uid);if(a.hasOwnProperty(b))return E=a[b][2],!0;E=-2;return!1}function c(){}function b(){}var e=R.prototype;e.S=function(a){this.Ja=a;this.b=a.b};var a=e.S.prototype;a.H=function(){if(!this.V){var a,b,c,d,f,e,g,k,m;this.zd=[];this.ti=!1;a=0;for(b=this.Kc.length;a<b;a++){f=this.Kc[a];g={};g.name=f[0];g.speed=f[1];g.loop=f[2];
g.Uo=f[3];g.Vo=f[4];g.Me=f[5];g.ra=f[6];g.frames=[];c=0;for(d=f[7].length;c<d;c++)e=f[7][c],k={},k.mp=e[0],k.np=e[1],k.vh=e[2],k.wh=e[3],k.width=e[4],k.height=e[5],k.duration=e[6],k.Mc=e[7],k.Nc=e[8],k.Jk=e[9],k.Cl=e[10],k.Hs=e[11],k.Mh=0!==k.width,k.an="",k.pB=h,m={left:0,top:0,right:1,bottom:1},k.fp=m,k.Mb=null,(m=this.b.Cx(e[0]))?k.Sa=m:(k.Sa=new Image,k.Sa.lw=e[0],k.Sa.Dq=e[1],k.Sa.cw=null,this.b.It(k.Sa,e[0])),g.frames.push(k),this.zd.push(k);this.Kc[a]=g}}};a.Et=function(){var a,b,c;a=0;for(b=
this.k.length;a<b;a++)c=this.k[a],c.fk=c.Ta.Mb};a.ml=function(){if(!this.V){var a,b,c;a=0;for(b=this.zd.length;a<b;++a)c=this.zd[a],c.Sa.cw=null,c.Mb=null;this.ti=!1;this.Et()}};a.Bo=function(){if(!this.V&&this.k.length){var a,b,c;a=0;for(b=this.zd.length;a<b;++a)c=this.zd[a],c.Mb=this.b.F.al(c.Sa,!1,this.b.la,c.Hs);this.Et()}};a.jo=function(){if(!this.V&&!this.ti&&this.b.F){var a,b,c;a=0;for(b=this.zd.length;a<b;++a)c=this.zd[a],c.Mb=this.b.F.al(c.Sa,!1,this.b.la,c.Hs);this.ti=!0}};a.vp=function(){if(!this.V&&
!this.k.length&&this.ti){var a,b,c;a=0;for(b=this.zd.length;a<b;++a)c=this.zd[a],this.b.F.deleteTexture(c.Mb),c.Mb=null;this.ti=!1}};var k=[];a.Mo=function(a){var b,c,d;y(k);b=0;for(c=this.zd.length;b<c;++b)d=this.zd[b].Sa,-1===k.indexOf(d)&&(a.drawImage(d,0,0),k.push(d))};e.N=function(a){this.type=a;this.b=a.b;a=this.type.Kc[0].frames[0].Cl;this.Dc?this.Da.pj(a):this.Da=new jb(a)};var p=e.N.prototype;p.H=function(){this.visible=0===this.C[0];this.Kn=this.Wn=!1;this.ue=0!==this.C[3];this.Pa=this.Vq(this.C[1])||
this.type.Kc[0];this.M=this.C[2];0>this.M&&(this.M=0);this.M>=this.Pa.frames.length&&(this.M=this.Pa.frames.length-1);var a=this.Pa.frames[this.M];this.Da.pj(a.Cl);this.Mc=a.Mc;this.Nc=a.Nc;this.Mg=this.Pa.speed;this.jf=this.Pa.Vo;1===this.type.Kc.length&&1===this.type.Kc[0].frames.length||0===this.Mg||(this.b.yj(this),this.Wn=!0);this.Dc?this.Qd.reset():this.Qd=new cb;this.Ce=this.Qd.J;this.Kf=!0;this.pe=0;this.Jf=!0;this.Vm=this.qq="";this.gw=0;this.$j=-1;this.type.jo();var b,c,d,f,e,g,k,a=0;for(b=
this.type.Kc.length;a<b;a++)for(f=this.type.Kc[a],c=0,d=f.frames.length;c<d;c++)e=f.frames[c],0===e.width&&(e.width=e.Sa.width,e.height=e.Sa.height),e.Mh&&(k=e.Sa,g=e.fp,g.left=e.vh/k.width,g.top=e.wh/k.height,g.right=(e.vh+e.width)/k.width,g.bottom=(e.wh+e.height)/k.height,0===e.vh&&0===e.wh&&e.width===k.width&&e.height===k.height&&(e.Mh=!1));this.Ta=this.Pa.frames[this.M];this.fk=this.Ta.Mb};p.Xa=function(){var a={a:this.Pa.ra,f:this.M,cas:this.Mg,fs:this.Ce,ar:this.pe,at:this.Qd.J,rt:this.jf};
this.Kf||(a.ap=this.Kf);this.Jf||(a.af=this.Jf);return a};p.kb=function(a){var b=this.Hx(a.a);b&&(this.Pa=b);this.M=a.f;0>this.M&&(this.M=0);this.M>=this.Pa.frames.length&&(this.M=this.Pa.frames.length-1);this.Mg=a.cas;this.Ce=a.fs;this.pe=a.ar;this.Qd.reset();this.Qd.J=a.at;this.Kf=a.hasOwnProperty("ap")?a.ap:!0;this.Jf=a.hasOwnProperty("af")?a.af:!0;a.hasOwnProperty("rt")?this.jf=a.rt:this.jf=this.Pa.Vo;this.Ta=this.Pa.frames[this.M];this.fk=this.Ta.Mb;this.Da.pj(this.Ta.Cl);this.Mc=this.Ta.Mc;
this.Nc=this.Ta.Nc};p.Pm=function(a){this.M=a?0:this.Pa.frames.length-1;this.Kf=!1;this.qq=this.Pa.name;this.Kn=!0;this.b.trigger(R.prototype.n.Au,this);this.b.trigger(R.prototype.n.zu,this);this.Kn=!1;this.pe=0};p.Lf=function(){return this.Qd.J};p.Fa=function(){this.Qd.add(this.b.Wd(this));this.Vm.length&&this.uw();0<=this.$j&&this.Iq();var a=this.Qd.J,b=this.Pa,c=b.frames[this.M],d=c.duration/this.Mg;this.Kf&&a>=this.Ce+d&&(this.Jf?this.M++:this.M--,this.Ce+=d,this.M>=b.frames.length&&(b.Me?(this.Jf=
!1,this.M=b.frames.length-2):b.loop?this.M=this.jf:(this.pe++,this.pe>=b.Uo?this.Pm(!1):this.M=this.jf)),0>this.M&&(b.Me?(this.M=1,this.Jf=!0,b.loop||(this.pe++,this.pe>=b.Uo&&this.Pm(!0))):b.loop?this.M=this.jf:(this.pe++,this.pe>=b.Uo?this.Pm(!0):this.M=this.jf)),0>this.M?this.M=0:this.M>=b.frames.length&&(this.M=b.frames.length-1),a>this.Ce+b.frames[this.M].duration/this.Mg&&(this.Ce=a),a=b.frames[this.M],this.Ig(c,a),this.b.da=!0)};p.Vq=function(a){var b,c,d;b=0;for(c=this.type.Kc.length;b<c;b++)if(d=
this.type.Kc[b],pb(d.name,a))return d;return null};p.Hx=function(a){var b,c,d;b=0;for(c=this.type.Kc.length;b<c;b++)if(d=this.type.Kc[b],d.ra===a)return d;return null};p.uw=function(){var a=this.Pa.frames[this.M],b=this.Vq(this.Vm);this.Vm="";!b||pb(b.name,this.Pa.name)&&this.Kf||(this.Pa=b,this.Mg=b.speed,this.jf=b.Vo,0>this.M&&(this.M=0),this.M>=this.Pa.frames.length&&(this.M=this.Pa.frames.length-1),1===this.gw&&(this.M=0),this.Kf=!0,this.Ce=this.Qd.J,this.Jf=!0,this.Ig(a,this.Pa.frames[this.M]),
this.b.da=!0)};p.Iq=function(){var a=this.Pa.frames[this.M],b=this.M;this.M=ta(this.$j);0>this.M&&(this.M=0);this.M>=this.Pa.frames.length&&(this.M=this.Pa.frames.length-1);b!==this.M&&(this.Ig(a,this.Pa.frames[this.M]),this.Ce=this.Qd.J,this.b.da=!0);this.$j=-1};p.Ig=function(a,b){var c=a.width,d=a.height,e=b.width,f=b.height;c!=e&&(this.width*=e/c);d!=f&&(this.height*=f/d);this.Mc=b.Mc;this.Nc=b.Nc;this.Da.pj(b.Cl);this.X();this.Ta=b;this.fk=b.Mb;c=0;for(d=this.aa.length;c<d;c++)e=this.aa[c],e.us&&
e.us(a,b);this.b.trigger(R.prototype.n.Ig,this)};p.ld=function(a){a.globalAlpha=this.opacity;var b=this.Ta,c=b.Mh,d=b.Sa,e=this.x,f=this.y,g=this.width,k=this.height;if(0===this.q&&0<=g&&0<=k)e-=this.Mc*g,f-=this.Nc*k,this.b.Fd&&(e=Math.round(e),f=Math.round(f)),c?a.drawImage(d,b.vh,b.wh,b.width,b.height,e,f,g,k):a.drawImage(d,e,f,g,k);else{this.b.Fd&&(e=Math.round(e),f=Math.round(f));a.save();var h=0<g?1:-1,m=0<k?1:-1;a.translate(e,f);1===h&&1===m||a.scale(h,m);a.rotate(this.q*h*m);e=0-this.Mc*na(g);
f=0-this.Nc*na(k);c?a.drawImage(d,b.vh,b.wh,b.width,b.height,e,f,na(g),na(k)):a.drawImage(d,e,f,na(g),na(k));a.restore()}};p.Qg=function(a){this.yc(a)};p.yc=function(a){a.Rc(this.fk);a.xg(this.opacity);var b=this.Ta,c=this.jc;if(this.b.Fd){var d=Math.round(this.x)-this.x,e=Math.round(this.y)-this.y;b.Mh?a.Af(c.Vb+d,c.Wb+e,c.Hc+d,c.Ic+e,c.vc+d,c.wc+e,c.tc+d,c.uc+e,b.fp):a.Ch(c.Vb+d,c.Wb+e,c.Hc+d,c.Ic+e,c.vc+d,c.wc+e,c.tc+d,c.uc+e)}else b.Mh?a.Af(c.Vb,c.Wb,c.Hc,c.Ic,c.vc,c.wc,c.tc,c.uc,b.fp):a.Ch(c.Vb,
c.Wb,c.Hc,c.Ic,c.vc,c.wc,c.tc,c.uc)};p.Lx=function(a){var b=this.Ta,c,d;c=0;for(d=b.Jk.length;c<d;c++)if(pb(a,b.Jk[c][0]))return c;return-1};p.ni=function(a,b){var c=this.Ta,d=c.Jk,e;ka(a)?e=this.Lx(a):e=a-1;e=ta(e);if(0>e||e>=d.length)return b?this.x:this.y;var f=(d[e][1]-c.Mc)*this.width,d=d[e][2],d=(d-c.Nc)*this.height,c=Math.cos(this.q);e=Math.sin(this.q);var g=f*c-d*e,d=d*c+f*e,f=g+this.x,d=d+this.y;return b?f:d};var u=[],E=-2,C=[];g.prototype.Eu=function(a){if(!a)return!1;var b=this.b,c=b.Ck(),
e=c.type,f=null;c.O.collmemory?f=c.O.collmemory:(f={},c.O.collmemory=f);c.O.spriteCreatedDestroyCallback||(c.O.spriteCreatedDestroyCallback=!0,b.Lm(function(a){var b=c.O.collmemory;a=a.uid;var e,f;for(e in b)b.hasOwnProperty(e)&&(f=b[e],f[0]===a||f[1]===a)&&(d(b[e]),delete b[e])}));var g=e.T(),k=a.T(),g=g.kc(),h,l,p,t,z,r,u,J=this.b.ke,P=J-1,T=b.ab().gb;for(l=0;l<g.length;l++){p=g[l];k.fa?(p.Ga(),this.b.tn(p.u,a,p.Oa,C),h=C):h=k.kc();for(t=0;t<h.length;t++)z=h[t],b.Ef(p,z)||b.hw(p,z)?(r=n(f,p,z),
r=!r||E<P,m(f,p,z,J),r&&(b.ug(T.wa),r=e.T(),u=a.T(),r.fa=!1,u.fa=!1,e===a?(r.k.length=2,r.k[0]=p,r.k[1]=z,e.Tc()):(r.k.length=1,u.k.length=1,r.k[0]=p,u.k[0]=z,e.Tc(),a.Tc()),T.vg(),b.fe(T.wa))):q(f,p,z);y(C)}return!1};var z=null,l=new ca,t=!1,J=[],r=new wa(0,0,0,0);a.finish=function(a){if(t){if(a){var b=this.b.ab().gb.cd;a=z.T();var c=l.Te(),d,e;if(a.fa){a.fa=!1;y(a.k);d=0;for(e=c.length;d<e;++d)a.k[d]=c[d];if(b)for(y(a.ea),d=0,e=z.k.length;d<e;++d)c=z.k[d],l.contains(c)||a.ea.push(c)}else if(b)for(b=
a.k.length,d=0,e=c.length;d<e;++d)a.k[b+d]=c[d],Ha(a.ea,c[d]);else Da(a.k,c);z.Tc()}l.clear();t=!1}};g.prototype.qu=function(a){if(a){var b=!1,c,d,e,f=this.b.Ck(),g=f.type,f=f.Lk;c=a.T();d=this.b.ab().gb.cd;var k;c.fa?(this.Ga(),r.Lg(this.Oa),r.offset(0,0),this.b.tn(this.u,a,r,J),k=J):k=d?this.b.wy()&&!c.ea.length&&c.k.length?c.k:c.ea:c.k;z=a;t=g!==a&&!f;c=0;for(d=k.length;c<d;c++)if(e=k[c],this.b.Ef(this,e)){b=!0;if(f)break;g!==a&&l.add(e)}y(J);a=b}else a=!1;return a};g.prototype.zu=function(a){return pb(this.qq,
a)};g.prototype.Au=function(){return!0};g.prototype.Ig=function(){return!0};e.n=new g;c.prototype.Bv=function(a,b,c){if(a&&b&&(b=this.b.dk(a,b,this.ni(c,!0),this.ni(c,!1)))){"undefined"!==typeof b.q&&(b.q=this.q,b.X());this.b.$c++;var d,e,f;this.b.trigger(Object.getPrototypeOf(a.Ja).n.Hg,b);if(b.fc)for(d=0,e=b.siblings.length;d<e;d++)f=b.siblings[d],this.b.trigger(Object.getPrototypeOf(f.type.Ja).n.Hg,f);this.b.$c--;d=this.b.Jx();c=!1;if(ia(d.O.Spawn_LastExec)||d.O.Spawn_LastExec<this.b.Vf)c=!0,d.O.Spawn_LastExec=
this.b.Vf;if(a!=this.type&&(a=a.T(),a.fa=!1,c?(y(a.k),a.k[0]=b):a.k.push(b),b.fc))for(d=0,e=b.siblings.length;d<e;d++)f=b.siblings[d],a=f.type.T(),a.fa=!1,c?(y(a.k),a.k[0]=f):a.k.push(f)}};c.prototype.gv=function(a){this.$j=a;this.Wn||(this.b.yj(this),this.Wn=!0);this.Kn||this.Iq()};e.B=new c;b.prototype.Ot=function(a){a.ga(this.Pa.frames.length)};b.prototype.lu=function(a){a.ga(this.Ta.Jk.length)};e.L=new b})();function Bc(h){this.b=h}
(function(){function h(){return c.length?c.pop():{}}function g(b){var d,a;d=0;for(a=b.length;d<a;d++)c.push(b[d]);y(b)}function d(b){return b.length&&" "===b.charAt(b.length-1)?b.substring(0,b.length-1):b}function f(){}var m=Bc.prototype;m.H=function(){m.B.zv=function(b){this.width!==b&&(this.width=b,this.Cg=!0,this.X())}};m.S=function(b){this.Ja=b;this.b=b.b};var q=m.S.prototype;q.H=function(){};q.ml=function(){if(!this.V){var b,c,a;b=0;for(c=this.k.length;b<c;b++)a=this.k[b],a.ae=null,a.rg=null,
a.Pc=null}};m.N=function(b){this.type=b;this.b=b.b;this.Dc?y(this.uf):this.uf=[];this.Cg=!0};q=m.N.prototype;q.H=function(){this.text=this.C[0];this.visible=0===this.C[1];this.font=this.C[2];this.color=this.C[3];this.Hk=this.C[4];this.rm=this.C[5];this.Fp=0===this.C[7];this.fo=this.Wk=this.width;this.Vk=this.height;this.ho=this.C[8];this.wk=this.Tg="";this.nt=this.ot=this.gj=0;this.Xy();this.Pc=this.rg=this.ae=null;this.gs=!1;this.Li=this.b.ke;this.Dc?this.Dh.set(0,0,1,1):this.Dh=new wa(0,0,1,1);
this.b.F&&this.b.yj(this)};q.Xy=function(){var b=this.font.split(" "),c;for(c=0;c<b.length;c++)if("pt"===b[c].substr(b[c].length-2,2)){this.gj=parseInt(b[c].substr(0,b[c].length-2));this.Po=Math.ceil(this.gj/72*96)+4;0<c&&(this.wk=b[c-1]);this.Tg=b[c+1];for(c+=2;c<b.length;c++)this.Tg+=" "+b[c];break}};q.Xa=function(){return{t:this.text,f:this.font,c:this.color,ha:this.Hk,va:this.rm,wr:this.Fp,lho:this.ho,fn:this.Tg,fs:this.wk,ps:this.gj,pxh:this.Po,tw:this.ot,th:this.nt,lrt:this.Li}};q.kb=function(b){this.text=
b.t;this.font=b.f;this.color=b.c;this.Hk=b.ha;this.rm=b.va;this.Fp=b.wr;this.ho=b.lho;this.Tg=b.fn;this.wk=b.fs;this.gj=b.ps;this.Po=b.pxh;this.ot=b.tw;this.nt=b.th;this.Li=b.lrt;this.Cg=!0;this.fo=this.Wk=this.width;this.Vk=this.height};q.Fa=function(){if(this.b.F&&this.Pc&&300<=this.b.ke-this.Li){var b=this.u;this.Ga();var c=this.Oa;if(c.right<b.Ha||c.bottom<b.Ia||c.left>b.Na||c.top>b.Ma)this.b.F.deleteTexture(this.Pc),this.ae=this.rg=this.Pc=null}};q.yf=function(){this.ae=this.rg=null;this.b.F&&
this.Pc&&this.b.F.deleteTexture(this.Pc);this.Pc=null};q.Lf=function(){this.font=this.wk+" "+this.gj.toString()+"pt "+this.Tg;this.Cg=!0;this.b.da=!0};q.ld=function(b,c){b.font=this.font;b.textBaseline="top";b.fillStyle=this.color;b.globalAlpha=c?1:this.opacity;var a=1;c&&(a=Math.abs(this.u.Ac()),b.save(),b.scale(a,a));if(this.Cg||this.width!==this.fo)this.type.Ja.Mv(this.text,this.uf,b,this.width,this.Fp),this.Cg=!1,this.fo=this.width;this.Ga();var a=c?0:this.jc.Vb,d=c?0:this.jc.Wb;this.b.Fd&&(a=
a+.5|0,d=d+.5|0);0===this.q||c||(b.save(),b.translate(a,d),b.rotate(this.q),d=a=0);var f=d+this.height,g=this.Po,g=g+this.ho,h,m;1===this.rm?d+=Math.max(this.height/2-this.uf.length*g/2,0):2===this.rm&&(d+=Math.max(this.height-this.uf.length*g-2,0));for(m=0;m<this.uf.length&&!(h=a,1===this.Hk?h=a+(this.width-this.uf[m].width)/2:2===this.Hk&&(h=a+(this.width-this.uf[m].width)),b.fillText(this.uf[m].text,h,d),d+=g,d>=f-g);m++);(0!==this.q||c)&&b.restore();this.Li=this.b.ke};q.yc=function(b){if(!(1>
this.width||1>this.height)){var c=this.Cg||this.gs;this.gs=!1;var a=this.u.Ac(),d=this.u.hb(),f=this.Dh,g=a*this.width,h=a*this.height,m=Math.ceil(g),q=Math.ceil(h),l=Math.abs(m),n=Math.abs(q),J=this.b.R/2,r=this.b.P/2;this.rg||(this.ae=document.createElement("canvas"),this.ae.width=l,this.ae.height=n,this.Wk=l,this.Vk=n,c=!0,this.rg=this.ae.getContext("2d"));if(l!==this.Wk||n!==this.Vk)this.ae.width=l,this.ae.height=n,this.Pc&&(b.deleteTexture(this.Pc),this.Pc=null),c=!0;c&&(this.rg.clearRect(0,
0,l,n),this.ld(this.rg,!0),this.Pc||(this.Pc=b.Vc(l,n,this.b.la,this.b.qf)),b.dA(this.ae,this.Pc,this.b.qf));this.Wk=l;this.Vk=n;b.Rc(this.Pc);b.xg(this.opacity);b.td();b.translate(-J,-r);b.ed();var w=this.jc,c=this.u.Wa(w.Vb,w.Wb,!0,!0),l=this.u.Wa(w.Vb,w.Wb,!1,!0),n=this.u.Wa(w.Hc,w.Ic,!0,!0),J=this.u.Wa(w.Hc,w.Ic,!1,!0),r=this.u.Wa(w.vc,w.wc,!0,!0),A=this.u.Wa(w.vc,w.wc,!1,!0),F=this.u.Wa(w.tc,w.uc,!0,!0),w=this.u.Wa(w.tc,w.uc,!1,!0);if(this.b.Fd||0===this.q&&0===d)var x=(c+.5|0)-c,H=(l+.5|0)-
l,c=c+x,l=l+H,n=n+x,J=J+H,r=r+x,A=A+H,F=F+x,w=w+H;0===this.q&&0===d?(n=c+m,J=l,r=n,A=l+q,F=c,w=A,f.right=1,f.bottom=1):(f.right=g/m,f.bottom=h/q);b.Af(c,l,n,J,r,A,F,w,f);b.td();b.scale(a,a);b.Ml(-this.u.hb());b.translate((this.u.Ha+this.u.Na)/-2,(this.u.Ia+this.u.Ma)/-2);b.ed();this.Li=this.b.ke}};var n=[];m.Iv=function(b){y(n);for(var c="",a,d=0;d<b.length;)if(a=b.charAt(d),"\n"===a)c.length&&(n.push(c),c=""),n.push("\n"),++d;else if(" "===a||"\t"===a||"-"===a){do c+=b.charAt(d),d++;while(d<b.length&&
(" "===b.charAt(d)||"\t"===b.charAt(d)));n.push(c);c=""}else d<b.length&&(c+=a,d++);c.length&&n.push(c)};var c=[];m.Mv=function(b,c,a,d,f){if(b&&b.length)if(2>=d)g(c);else{if(100>=b.length&&-1===b.indexOf("\n")){var m=a.measureText(b).width;if(m<=d){g(c);c.push(h());c[0].text=b;c[0].width=m;return}}this.Nv(b,c,a,d,f)}else g(c)};m.Nv=function(b,f,a,g,m){m&&(this.Iv(b),b=n);var q="",E,C,z,l=0;for(z=0;z<b.length;z++)"\n"===b[z]?(l>=f.length&&f.push(h()),q=d(q),C=f[l],C.text=q,C.width=a.measureText(q).width,
l++,q=""):(E=q,q+=b[z],C=a.measureText(q).width,C>=g&&(l>=f.length&&f.push(h()),E=d(E),C=f[l],C.text=E,C.width=a.measureText(E).width,l++,q=b[z],m||" "!==q||(q="")));q.length&&(l>=f.length&&f.push(h()),q=d(q),C=f[l],C.text=q,C.width=a.measureText(q).width,l++);for(z=l;z<f.length;z++)c.push(f[z]);f.length=l};m.n=new function(){};f.prototype.vv=function(b){ja(b)&&1E9>b&&(b=Math.round(1E10*b)/1E10);b=b.toString();this.text!==b&&(this.text=b,this.Cg=!0,this.b.da=!0)};m.B=new f;m.L=new function(){}})();
function S(h){this.b=h}
(function(){function h(c){b=c.x;e=c.y;a=c.z}function g(a,b,c,f){var e;e=k.length?k.pop():new d;e.init(a,b,c,f);return e}function d(){this.uj=this.id=this.lg=this.kg=this.y=this.x=this.am=this.$l=this.eo=this.time=this.kp=0;this.Aj=this.lm=!1}function f(){}function m(){}var q=S.prototype;q.S=function(a){this.Ja=a;this.b=a.b};q.S.prototype.H=function(){};q.N=function(a){this.type=a;this.b=a.b;this.touches=[];this.so=!1};var n=q.N.prototype,c={left:0,top:0};n.li=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 b=0,e=0,a=0,k=[];d.prototype.init=function(a,b,c,d){var f=Za();this.kp=this.eo=this.time=f;this.$l=a;this.am=b;this.x=a;this.y=b;this.kg=a;this.lg=b;this.pressure=this.height=this.width=0;this.id=c;this.uj=d;this.Aj=this.lm=!1};d.prototype.update=function(a,b,c,d,f,e){this.eo=this.time;this.time=a;this.kg=this.x;this.lg=this.y;this.x=b;this.y=c;this.width=d;this.height=f;this.pressure=e;!this.Aj&&15<=Ua(this.$l,this.am,this.x,this.y)&&(this.Aj=
!0)};d.prototype.Ly=function(a,b){!this.lm&&500<=Za()-this.kp&&!this.Aj&&15>Ua(this.$l,this.am,this.x,this.y)&&(this.lm=!0,a.le=this.uj,a.Ph=this.id,a.Wg=b,a.b.trigger(S.prototype.n.Ku,a),a.we=this.x,a.xe=this.y,a.b.trigger(S.prototype.n.Lu,a),a.Wg=0)};var p=-1E3,u=-1E3,E=-1E4;d.prototype.$r=function(a,b){if(!this.lm){var c=Za();333>=c-this.kp&&!this.Aj&&15>Ua(this.$l,this.am,this.x,this.y)&&(a.le=this.uj,a.Ph=this.id,a.Wg=b,666>=c-E&&25>Ua(p,u,this.x,this.y)?(a.b.trigger(S.prototype.n.Fu,a),a.we=
this.x,a.xe=this.y,a.b.trigger(S.prototype.n.Gu,a),u=p=-1E3,E=-1E4):(a.b.trigger(S.prototype.n.Xu,a),a.we=this.x,a.xe=this.y,a.b.trigger(S.prototype.n.Yp,a),p=this.x,u=this.y,E=c),a.Wg=0)}};n.H=function(){this.Cy=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.Wg=this.Ph=this.le=this.xe=this.we=this.kq=this.jq=this.iq=this.Tv=this.Sv=this.Rv=this.tl=this.sl=this.rl=0;this.aA=0!==this.C[0];var a=0<this.b.zc?document:this.b.canvas,b=document;this.b.ec?b=a=window.Canvas:this.b.Zc&&
(b=a=window);var c=this;window.navigator.pointerEnabled?(a.addEventListener("pointerdown",function(a){c.ts(a)},!1),a.addEventListener("pointermove",function(a){c.rs(a)},!1),b.addEventListener("pointerup",function(a){c.nl(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.nl(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.ts(a)},!1),a.addEventListener("MSPointerMove",function(a){c.rs(a)},!1),b.addEventListener("MSPointerUp",function(a){c.nl(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.nl(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.ws(a)},!1),a.addEventListener("touchmove",function(a){c.vs(a)},!1),b.addEventListener("touchend",function(a){c.Co(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.Co(a,!0)},!1));if(this.Cy){var d=function(a){a=a.reading;c.iq=a.accelerationX;c.jq=a.accelerationY;c.kq=a.accelerationZ},f=function(a){a=a.reading;c.rl=a.yawDegrees;c.sl=a.pitchDegrees;c.tl=a.rollDegrees},e=Windows.Devices.Sensors.Accelerometer.getDefault();
e&&(e.reportInterval=Math.max(e.minimumReportInterval,16),e.addEventListener("readingchanged",d));var g=Windows.Devices.Sensors.Inclinometer.getDefault();g&&(g.reportInterval=Math.max(g.minimumReportInterval,16),g.addEventListener("readingchanged",f));document.addEventListener("visibilitychange",function(){document.hidden||document.msHidden?(e&&e.removeEventListener("readingchanged",d),g&&g.removeEventListener("readingchanged",f)):(e&&e.addEventListener("readingchanged",d),g&&g.addEventListener("readingchanged",
f))},!1)}else window.addEventListener("deviceorientation",function(a){c.rl=a.alpha||0;c.sl=a.beta||0;c.tl=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.Rv=a.accelerationIncludingGravity.x||0,c.Sv=a.accelerationIncludingGravity.y||0,c.Tv=a.accelerationIncludingGravity.z||0);a.acceleration&&(c.iq=a.acceleration.x||0,c.jq=a.acceleration.y||0,c.kq=a.acceleration.z||0)},!1);this.aA&&!this.b.sb&&(jQuery(document).mousemove(function(a){c.Uy(a)}),jQuery(document).mousedown(function(a){c.Ty(a)}),
jQuery(document).mouseup(function(a){c.Vy(a)}));!this.b.hh&&this.b.Bc&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(h,null,{frequency:40});this.b.Sz(this)};n.rs=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var b=this.li(a.pointerId),d=Za();if(0<=b){var f=this.b.sb?c:jQuery(this.b.canvas).offset(),b=this.touches[b];2>d-b.time||b.update(d,a.pageX-f.left,a.pageY-f.top,
a.width||0,a.height||0,a.pressure||0)}}};n.ts=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&qb(a)&&a.preventDefault();var b=this.b.sb?c:jQuery(this.b.canvas).offset(),d=a.pageX-b.left,b=a.pageY-b.top;Za();this.le=this.touches.length;this.Ph=a.pointerId;this.touches.push(g(d,b,a.pointerId,this.le));this.b.Yd=!0;this.b.trigger(S.prototype.n.Wp,this);this.b.trigger(S.prototype.n.Dm,this);this.we=d;this.xe=b;this.b.trigger(S.prototype.n.Cm,this);this.b.Yd=
!1}};n.nl=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&qb(a)&&a.preventDefault();var c=this.li(a.pointerId);this.le=0<=c?this.touches[c].uj:-1;this.Ph=0<=c?this.touches[c].id:-1;this.b.Yd=!0;this.b.trigger(S.prototype.n.Vp,this);this.b.trigger(S.prototype.n.Zp,this);0<=c&&(b||this.touches[c].$r(this,c),100>k.length&&k.push(this.touches[c]),this.touches.splice(c,1));this.b.Yd=!1}};n.vs=function(a){a.preventDefault&&a.preventDefault();var b=Za(),
d,f,e,g;d=0;for(f=a.changedTouches.length;d<f;d++)if(e=a.changedTouches[d],g=this.li(e.identifier),0<=g){var k=this.b.sb?c:jQuery(this.b.canvas).offset();g=this.touches[g];2>b-g.time||g.update(b,e.pageX-k.left,e.pageY-k.top,2*(e.CB||e.LB||e.uB||e.xB||0),2*(e.DB||e.MB||e.vB||e.yB||0),e.nB||e.KB||e.tB||e.wB||0)}};n.ws=function(a){a.preventDefault&&qb(a)&&a.preventDefault();var b=this.b.sb?c:jQuery(this.b.canvas).offset();Za();this.b.Yd=!0;var d,f,e,k;d=0;for(f=a.changedTouches.length;d<f;d++)if(e=a.changedTouches[d],
k=this.li(e.identifier),-1===k){k=e.pageX-b.left;var h=e.pageY-b.top;this.le=this.touches.length;this.Ph=e.identifier;this.touches.push(g(k,h,e.identifier,this.le));this.b.trigger(S.prototype.n.Wp,this);this.b.trigger(S.prototype.n.Dm,this);this.we=k;this.xe=h;this.b.trigger(S.prototype.n.Cm,this)}this.b.Yd=!1};n.Co=function(a,b){a.preventDefault&&qb(a)&&a.preventDefault();this.b.Yd=!0;var c,d,f;c=0;for(d=a.changedTouches.length;c<d;c++)f=a.changedTouches[c],f=this.li(f.identifier),0<=f&&(this.le=
this.touches[f].uj,this.Ph=this.touches[f].id,this.b.trigger(S.prototype.n.Vp,this),this.b.trigger(S.prototype.n.Zp,this),b||this.touches[f].$r(this,f),100>k.length&&k.push(this.touches[f]),this.touches.splice(f,1));this.b.Yd=!1};n.Lf=function(){return this.b.Bc&&0===this.rl&&0!==a?90*a:this.rl};n.ao=function(){return this.b.Bc&&0===this.sl&&0!==e?90*e:this.sl};n.Cr=function(){return this.b.Bc&&0===this.tl&&0!==b?90*b:this.tl};n.Ty=function(a){this.ws({changedTouches:[{pageX:a.pageX,pageY:a.pageY,
identifier:0}]});this.so=!0};n.Uy=function(a){this.so&&this.vs({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};n.Vy=function(a){a.preventDefault&&this.b.fr&&!this.b.qf&&a.preventDefault();this.b.fr=!0;this.Co({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.so=!1};n.Dg=function(){var a,b,c,d=Za();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=d-50&&(c.eo=d),c.Ly(this,a)};f.prototype.Dm=function(){return!0};f.prototype.Zp=function(){return!0};f.prototype.Cm=
function(a){return a?this.b.fm(a,this.we,this.xe):!1};var C=[];f.prototype.ru=function(a){if(!a)return!1;var b=a.T(),c=b.kc(),d,f,e,g,k,h;e=0;for(g=c.length;e<g;e++){var m=c[e];m.Ga();k=0;for(h=this.touches.length;k<h;k++)if(f=this.touches[k],d=m.u.Nb(f.x,f.y,!0),f=m.u.Nb(f.x,f.y,!1),m.Zb(d,f)){C.push(m);break}}return C.length?(b.fa=!1,Da(b.k,C),a.Tc(),y(C),!0):!1};f.prototype.Wp=function(a){a=Math.floor(a);return a===this.le};f.prototype.Vp=function(a){a=Math.floor(a);return a===this.le};f.prototype.Ku=
function(){return!0};f.prototype.Xu=function(){return!0};f.prototype.Fu=function(){return!0};f.prototype.Lu=function(a){return a?this.b.fm(a,this.we,this.xe):!1};f.prototype.Yp=function(a){return a?this.b.fm(a,this.we,this.xe):!1};f.prototype.Gu=function(a){return a?this.b.fm(a,this.we,this.xe):!1};q.n=new f;m.prototype.Gm=function(a,b){var c=this.Wg;if(0>c||c>=this.touches.length)a.I(0);else{var d,f,e,g,k;ia(b)?(d=this.b.oi(0),f=d.scale,e=d.Nd,g=d.rd,k=d.q,d.scale=1,d.Nd=1,d.rd=1,d.q=0,a.I(d.Nb(this.touches[c].x,
this.touches[c].y,!0)),d.scale=f,d.Nd=e,d.rd=g,d.q=k):(d=ja(b)?this.b.oi(b):this.b.xn(b))?a.I(d.Nb(this.touches[c].x,this.touches[c].y,!0)):a.I(0)}};m.prototype.Hm=function(a,b){var c=this.Wg;if(0>c||c>=this.touches.length)a.I(0);else{var d,f,e,g,k;ia(b)?(d=this.b.oi(0),f=d.scale,e=d.Nd,g=d.sd,k=d.q,d.scale=1,d.Nd=1,d.sd=1,d.q=0,a.I(d.Nb(this.touches[c].x,this.touches[c].y,!1)),d.scale=f,d.Nd=e,d.sd=g,d.q=k):(d=ja(b)?this.b.oi(b):this.b.xn(b))?a.I(d.Nb(this.touches[c].x,this.touches[c].y,!1)):a.I(0)}};
q.L=new m})();function Cc(h){this.b=h}
(function(){function h(){}var g=Cc.prototype;g.S=function(d){this.behavior=d;this.b=d.b};g.S.prototype.H=function(){};g.N=function(d,g){this.type=d;this.behavior=d.behavior;this.j=g;this.b=d.b};var d=g.N.prototype;d.H=function(){var d=this.C[0];this.Sc=this.C[1];this.mf=this.C[2];this.bw=0!==this.C[3];this.cp=0!==this.C[4];this.Pb=Math.cos(this.j.q)*d;this.zb=Math.sin(this.j.q)*d;this.kg=this.j.x;this.lg=this.j.y;this.ad=this.j.q;this.km=0;this.enabled=0!==this.C[5]};d.Xa=function(){return{acc:this.Sc,
g:this.mf,dx:this.Pb,dy:this.zb,lx:this.kg,ly:this.lg,lka:this.ad,t:this.km,e:this.enabled}};d.kb=function(d){this.Sc=d.acc;this.mf=d.g;this.Pb=d.dx;this.zb=d.dy;this.kg=d.lx;this.lg=d.ly;this.ad=d.lka;this.km=d.t;this.enabled=d.e};d.Fa=function(){if(this.enabled){var d=this.b.Wd(this.j),g,h;this.j.q!==this.ad&&(this.cp&&(g=Ua(0,0,this.Pb,this.zb),this.Pb=Math.cos(this.j.q)*g,this.zb=Math.sin(this.j.q)*g),this.ad=this.j.q);0!==this.Sc&&(g=Ua(0,0,this.Pb,this.zb),h=0===this.Pb&&0===this.zb?this.j.q:
Oa(0,0,this.Pb,this.zb),g+=this.Sc*d,0>g&&(g=0),this.Pb=Math.cos(h)*g,this.zb=Math.sin(h)*g);0!==this.mf&&(this.zb+=this.mf*d);this.kg=this.j.x;this.lg=this.j.y;if(0!==this.Pb||0!==this.zb)if(this.j.x+=this.Pb*d,this.j.y+=this.zb*d,this.km+=Ua(0,0,this.Pb*d,this.zb*d),this.cp&&(this.j.q=Oa(0,0,this.Pb,this.zb),this.j.X(),this.ad=this.j.q),this.j.X(),this.bw&&(g=this.b.Bg(this.j)))this.b.pz(this.j,g),g=Ua(0,0,this.Pb,this.zb),h=this.b.dw(this.j,this.kg,this.lg),this.Pb=Math.cos(h)*g,this.zb=Math.sin(h)*
g,this.j.x+=this.Pb*d,this.j.y+=this.zb*d,this.j.X(),this.cp&&(this.ad=this.j.q=h,this.j.X()),this.b.mz(this.j,this.Pb/g,this.zb/g,Math.max(2.5*g*d,30))||this.b.nz(this.j)}};g.n=new function(){};h.prototype.Fm=function(d){var g=Oa(0,0,this.Pb,this.zb);this.Pb=Math.cos(g)*d;this.zb=Math.sin(g)*d};h.prototype.Em=function(d){this.enabled=1===d};g.B=new h;g.L=new function(){}})();function Dc(h){this.b=h}
(function(){function h(){}var g=Dc.prototype;g.S=function(d){this.behavior=d;this.b=d.b};g.S.prototype.H=function(){};g.N=function(d,g){this.type=d;this.behavior=d.behavior;this.j=g;this.b=d.b};var d=g.N.prototype;d.H=function(){this.lq=1===this.C[0];this.ji=this.C[1];this.Fj=this.C[2];this.pk=this.C[3];this.rw=this.C[4];this.Ib=this.lq?0:3;this.Dc?this.vd.reset():this.vd=new cb;this.qg=this.j.opacity?this.j.opacity:1;this.lq&&(0===this.ji?(this.Ib=1,0===this.Fj&&(this.Ib=2)):(this.j.opacity=0,this.b.da=
!0))};d.Xa=function(){return{fit:this.ji,wt:this.Fj,fot:this.pk,s:this.Ib,st:this.vd.J,mo:this.qg}};d.kb=function(d){this.ji=d.fit;this.Fj=d.wt;this.pk=d.fot;this.Ib=d.s;this.vd.reset();this.vd.J=d.st;this.qg=d.mo};d.Fa=function(){this.vd.add(this.b.Wd(this.j));0===this.Ib&&(this.j.opacity=this.vd.J/this.ji*this.qg,this.b.da=!0,this.j.opacity>=this.qg&&(this.j.opacity=this.qg,this.Ib=1,this.vd.reset(),this.b.trigger(Dc.prototype.n.Hu,this.j)));1===this.Ib&&this.vd.J>=this.Fj&&(this.Ib=2,this.vd.reset(),
this.b.trigger(Dc.prototype.n.Zu,this.j));2===this.Ib&&0!==this.pk&&(this.j.opacity=this.qg-this.vd.J/this.pk*this.qg,this.b.da=!0,0>this.j.opacity&&(this.j.opacity=0,this.Ib=3,this.vd.reset(),this.b.trigger(Dc.prototype.n.Iu,this.j),1===this.rw&&this.b.Od(this.j)))};d.Lf=function(){this.Ib=0;this.vd.reset();0===this.ji?(this.Ib=1,0===this.Fj&&(this.Ib=2)):(this.j.opacity=0,this.b.da=!0)};h.prototype.Iu=function(){return!0};h.prototype.Hu=function(){return!0};h.prototype.Zu=function(){return!0};g.n=
new h;g.B=new function(){};g.L=new function(){}})();function Ec(h){this.b=h}
(function(){function h(){}function g(){}var d=Ec.prototype;d.S=function(d){this.behavior=d;this.b=d.b};d.S.prototype.H=function(){};d.N=function(d,f){this.type=d;this.behavior=d.behavior;this.j=f;this.b=d.b};var f=d.N.prototype;f.H=function(){this.Ff=this.ie=this.Ib=this.kl=this.ql=0};f.Xa=function(){return{ontime:this.ql,offtime:this.kl,stage:this.Ib,stagetimeleft:this.ie,timeleft:this.Ff}};f.kb=function(d){this.ql=d.ontime;this.kl=d.offtime;this.Ib=d.stage;this.ie=d.stagetimeleft;this.Ff=d.timeleft};
f.Fa=function(){if(!(0>=this.Ff)){var d=this.b.Wd(this.j);this.Ff-=d;0>=this.Ff?(this.Ff=0,this.j.visible=!0,this.b.da=!0,this.b.trigger(Ec.prototype.n.Ju,this.j)):(this.ie-=d,0>=this.ie&&(0===this.Ib?(this.j.visible=!1,this.Ib=1,this.ie+=this.kl):(this.j.visible=!0,this.Ib=0,this.ie+=this.ql),this.b.da=!0))}};h.prototype.Ju=function(){return!0};d.n=new h;g.prototype.bu=function(d,f,g){this.ql=d;this.kl=f;this.Ib=1;this.ie=f;this.Ff=g;this.j.visible=!1;this.b.da=!0};d.B=new g;d.L=new function(){}})();
function Fc(h){this.b=h}
(function(){function h(){}var g=Fc.prototype;g.S=function(d){this.behavior=d;this.b=d.b};g.S.prototype.H=function(){};g.N=function(d,g){this.type=d;this.behavior=d.behavior;this.j=g;this.b=d.b};var d=g.N.prototype;d.H=function(){this.Gb=null;this.Al=-1;this.mode=this.ad=this.hm=this.uh=this.Le=this.ej=0;var d=this;this.Dc||(this.es=function(g){d.Ao(g)});this.b.Lm(this.es)};d.Xa=function(){return{uid:this.Gb?this.Gb.uid:-1,pa:this.ej,pd:this.Le,msa:this.uh,tsa:this.hm,lka:this.ad,m:this.mode}};d.kb=
function(d){this.Al=d.uid;this.ej=d.pa;this.Le=d.pd;this.uh=d.msa;this.hm=d.tsa;this.ad=d.lka;this.mode=d.m};d.oe=function(){-1===this.Al?this.Gb=null:this.Gb=this.b.pi(this.Al);this.Al=-1};d.Ao=function(d){this.Gb==d&&(this.Gb=null)};d.yf=function(){this.Gb=null;this.b.sz(this.es)};d.Fa=function(){};d.Dg=function(){if(this.Gb){this.ad!==this.j.q&&(this.uh=La(this.uh+(this.j.q-this.ad)));var d=this.j.x,g=this.j.y;if(3===this.mode||4===this.mode){var h=Ua(this.j.x,this.j.y,this.Gb.x,this.Gb.y);if(h>
this.Le||4===this.mode&&h<this.Le)g=Oa(this.Gb.x,this.Gb.y,this.j.x,this.j.y),d=this.Gb.x+Math.cos(g)*this.Le,g=this.Gb.y+Math.sin(g)*this.Le}else d=this.Gb.x+Math.cos(this.Gb.q+this.ej)*this.Le,g=this.Gb.y+Math.sin(this.Gb.q+this.ej)*this.Le;this.ad=h=La(this.uh+(this.Gb.q-this.hm));0!==this.mode&&1!==this.mode&&3!==this.mode&&4!==this.mode||this.j.x===d&&this.j.y===g||(this.j.x=d,this.j.y=g,this.j.X());0!==this.mode&&2!==this.mode||this.j.q===h||(this.j.q=h,this.j.X())}};g.n=new function(){};h.prototype.bv=
function(d,g){if(d){var h=d.br(this.j);h&&(this.Gb=h,this.ej=Oa(h.x,h.y,this.j.x,this.j.y)-h.q,this.Le=Ua(h.x,h.y,this.j.x,this.j.y),this.ad=this.uh=this.j.q,this.hm=h.q,this.mode=g)}};g.B=new h;g.L=new function(){}})();function Gc(h){this.b=h}
(function(){function h(){}var g=Gc.prototype;g.S=function(d){this.behavior=d;this.b=d.b};g.S.prototype.H=function(){};g.N=function(d,g){this.type=d;this.behavior=d.behavior;this.j=g;this.b=d.b};var d=g.N.prototype;d.H=function(){this.speed=G(this.C[0]);this.Sc=G(this.C[1])};d.Xa=function(){return{speed:this.speed,acc:this.Sc}};d.kb=function(d){this.speed=d.speed;this.Sc=d.acc};d.Fa=function(){var d=this.b.Wd(this.j);0!==d&&(0!==this.Sc&&(this.speed+=this.Sc*d),0!==this.speed&&(this.j.q=La(this.j.q+
this.speed*d),this.j.X()))};g.n=new function(){};h.prototype.Fm=function(d){this.speed=G(d)};g.B=new h;g.L=new function(){}})();function Hc(h){this.b=h}
(function(){function h(){}function g(){}function d(){}var f=Hc.prototype;f.S=function(b){this.behavior=b;this.b=b.b};f.S.prototype.H=function(){};f.N=function(b,c){this.type=b;this.behavior=b.behavior;this.j=c;this.b=b.b;this.ib=0};var m=f.N.prototype,q=2*Math.PI,n=Math.PI/2,c=3*Math.PI/2;m.H=function(){this.Ka=1===this.C[0];this.rh=this.C[1];this.Ep=this.C[2];this.Ke=this.C[3];this.Ke+=Math.random()*this.C[4];0===this.Ke?this.ib=0:(this.ib=this.C[5]/this.Ke*q,this.ib+=Math.random()*this.C[6]/this.Ke*
q);this.mc=this.C[7];this.mc+=Math.random()*this.C[8];this.ij=this.bg=this.ta=0;this.init()};m.Xa=function(){return{i:this.ib,a:this.Ka,mv:this.rh,w:this.Ep,p:this.Ke,mag:this.mc,iv:this.ta,iv2:this.bg,r:this.ij,lkv:this.ba,lkv2:this.Va}};m.kb=function(b){this.ib=b.i;this.Ka=b.a;this.rh=b.mv;this.Ep=b.w;this.Ke=b.p;this.mc=b.mag;this.ta=b.iv;this.bg=b.iv2||0;this.ij=b.r;this.ba=b.lkv;this.Va=b.lkv2||0};m.init=function(){switch(this.rh){case 0:this.ta=this.j.x;break;case 1:this.ta=this.j.y;break;case 2:this.ta=
this.j.width;this.ij=this.j.height/this.j.width;break;case 3:this.ta=this.j.width;break;case 4:this.ta=this.j.height;break;case 5:this.ta=this.j.q;this.mc=G(this.mc);break;case 6:this.ta=this.j.opacity;break;case 7:this.ta=0;break;case 8:this.ta=this.j.x,this.bg=this.j.y}this.ba=this.ta;this.Va=this.bg};m.me=function(b){b=b%q;switch(this.Ep){case 0:return Math.sin(b);case 1:return b<=n?b/n:b<=c?1-2*(b-n)/Math.PI:(b-c)/n-1;case 2:return 2*b/q-1;case 3:return-2*b/q+1;case 4:return b<Math.PI?-1:1}return 0};
m.Fa=function(){var b=this.b.Wd(this.j);if(this.Ka&&0!==b){0===this.Ke?this.ib=0:(this.ib+=b/this.Ke*q,this.ib=this.ib%q);switch(this.rh){case 0:this.j.x!==this.ba&&(this.ta+=this.j.x-this.ba);this.j.x=this.ta+this.me(this.ib)*this.mc;this.ba=this.j.x;break;case 1:this.j.y!==this.ba&&(this.ta+=this.j.y-this.ba);this.j.y=this.ta+this.me(this.ib)*this.mc;this.ba=this.j.y;break;case 2:this.j.width=this.ta+this.me(this.ib)*this.mc;this.j.height=this.j.width*this.ij;break;case 3:this.j.width=this.ta+this.me(this.ib)*
this.mc;break;case 4:this.j.height=this.ta+this.me(this.ib)*this.mc;break;case 5:this.j.q!==this.ba&&(this.ta=La(this.ta+(this.j.q-this.ba)));this.j.q=La(this.ta+this.me(this.ib)*this.mc);this.ba=this.j.q;break;case 6:this.j.opacity=this.ta+this.me(this.ib)*this.mc/100;0>this.j.opacity?this.j.opacity=0:1<this.j.opacity&&(this.j.opacity=1);break;case 8:this.j.x!==this.ba&&(this.ta+=this.j.x-this.ba),this.j.y!==this.Va&&(this.bg+=this.j.y-this.Va),this.j.x=this.ta+Math.cos(this.j.q)*this.me(this.ib)*
this.mc,this.j.y=this.bg+Math.sin(this.j.q)*this.me(this.ib)*this.mc,this.ba=this.j.x,this.Va=this.j.y}this.j.X()}};m.us=function(b,c){switch(this.rh){case 2:this.ta*=c.width/b.width;this.ij=c.height/c.width;break;case 3:this.ta*=c.width/b.width;break;case 4:this.ta*=c.height/b.height}};h.prototype.mu=function(){return this.Ka};f.n=new h;g.prototype.dv=function(b){this.Ka=1===b};f.B=new g;d.prototype.Jv=function(b){b.I(this.me(this.ib)*this.mc)};f.L=new d})();function Ic(h){this.b=h}
(function(){function h(){}function g(){}function d(){}var f=Ic.prototype;f.S=function(d){this.behavior=d;this.b=d.b};f.S.prototype.H=function(){};f.N=function(d,f){this.type=d;this.behavior=d.behavior;this.j=f;this.b=d.b};var m=f.N.prototype;m.H=function(){this.Ub={}};m.yf=function(){Ya(this.Ub)};m.Xa=function(){var d={},f,c;for(f in this.Ub)this.Ub.hasOwnProperty(f)&&(c=this.Ub[f],d[f]={c:c.current.J,t:c.total.J,d:c.duration,r:c.So});return d};m.kb=function(d){this.Ub={};for(var f in d)d.hasOwnProperty(f)&&
(this.Ub[f]={current:new cb,total:new cb,duration:d[f].d,So:d[f].r},this.Ub[f].current.J=d[f].c,this.Ub[f].total.J=d[f].t)};m.Fa=function(){var d=this.b.Wd(this.j),f,c;for(f in this.Ub)this.Ub.hasOwnProperty(f)&&(c=this.Ub[f],c.current.add(d),c.total.add(d))};m.Dg=function(){var d,f;for(d in this.Ub)this.Ub.hasOwnProperty(d)&&(f=this.Ub[d],f.current.J>=f.duration&&(f.So?f.current.J-=f.duration:delete this.Ub[d]))};h.prototype.Yu=function(d){d=d.toLowerCase();return(d=this.Ub[d])?d.current.J>=d.duration:
!1};f.n=new h;g.prototype.Dv=function(d,f,c){this.Ub[c.toLowerCase()]={current:new cb,total:new cb,duration:d,So:1===f}};f.B=new g;d.prototype.Jp=function(d,f){var c=this.Ub[f.toLowerCase()];d.I(c?c.duration:0)};f.L=new d})();function Jc(h){this.b=h}
(function(){var h=Jc.prototype;h.S=function(g){this.behavior=g;this.b=g.b};h.S.prototype.H=function(){};h.N=function(g,d){this.type=g;this.behavior=g.behavior;this.j=d;this.b=g.b;this.mode=0};h=h.N.prototype;h.H=function(){this.mode=this.C[0]};h.Fa=function(){};h.Dg=function(){this.j.Ga();var g=this.j.Oa,d=this.j.u.jb,f=!1;0===this.mode?(0>this.j.x&&(this.j.x=0,f=!0),0>this.j.y&&(this.j.y=0,f=!0),this.j.x>d.width&&(this.j.x=d.width,f=!0),this.j.y>d.height&&(this.j.y=d.height,f=!0)):(0>g.left&&(this.j.x-=
g.left,f=!0),0>g.top&&(this.j.y-=g.top,f=!0),g.right>d.width&&(this.j.x-=g.right-d.width,f=!0),g.bottom>d.height&&(this.j.y-=g.bottom-d.height,f=!0));f&&this.j.X()}})();function Kc(h){this.b=h}
(function(){var h=Kc.prototype;h.S=function(g){this.behavior=g;this.b=g.b};h.S.prototype.H=function(){};h.N=function(g,d){this.type=g;this.behavior=g.behavior;this.j=d;this.b=g.b};h=h.N.prototype;h.H=function(){};h.Fa=function(){this.j.Ga();var g=this.j.Oa,d=this.j.u.jb;(0>g.right||0>g.bottom||g.left>d.width||g.top>d.height)&&this.b.Od(this.j)}})();var Lc=[],Mc=[],Nc=[],Oc=[],Pc=[],Qc=[],Rc=[],Sc=[],Wc=[];function Xc(h,g){return Math.round(h/g*1E4)}
function Yc(h,g,d,f){var m=0;switch(h){case 0:m=1*g/d+0;break;case 1:m=1*(g/=d)*g+0;break;case 2:m=-1*(g/=d)*(g-2)+0;break;case 3:m=1>(g/=d/2)?.5*g*g+0:-.5*(--g*(g-2)-1)+0;break;case 4:m=1*(g/=d)*g*g+0;break;case 5:m=1*((g=g/d-1)*g*g+1)+0;break;case 6:m=1>(g/=d/2)?.5*g*g*g+0:.5*((g-=2)*g*g+2)+0;break;case 7:m=1*(g/=d)*g*g*g+0;break;case 8:m=-1*((g=g/d-1)*g*g*g-1)+0;break;case 9:m=1>(g/=d/2)?.5*g*g*g*g+0:-.5*((g-=2)*g*g*g-2)+0;break;case 10:m=1*(g/=d)*g*g*g*g+0;break;case 11:m=1*((g=g/d-1)*g*g*g*g+
1)+0;break;case 12:m=1>(g/=d/2)?.5*g*g*g*g*g+0:.5*((g-=2)*g*g*g*g+2)+0;break;case 13:m=Pc[Xc(g,d)];break;case 14:m=Qc[Xc(g,d)];break;case 15:m=Rc[Xc(g,d)];break;case 16:h=0;0==h&&(h=1.70158);m=1*(g/=d)*g*((h+1)*g-h)+0;break;case 17:m=Sc[Xc(g,d)];break;case 18:m=Wc[Xc(g,d)];break;case 19:m=Mc[Xc(g,d)];break;case 20:m=Nc[Xc(g,d)];break;case 21:m=Oc[Xc(g,d)];break;case 22:m=1-Lc[Xc(d-g,d)]+0;break;case 23:m=Lc[Xc(g,d)];break;case 24:m=g<d/2?.5*(1-Lc[Xc(d-2*g,d)]+0)+0:.5*Lc[Xc(2*g-d,d)]+.5;break;case 25:g=
g/d/2;m=2*g*g*(3-2*g);break;case 26:g=(g/d+1)/2;m=2*g*g*(3-2*g)-1;break;case 27:g=g/d,m=g*g*(3-2*g)}return f?1-m:m}
for(var Zc=0,$c=0,ad=0,Y=0,Z=0,bd=0;1E4>=bd;bd++){Y=bd/1E4;(Y/=1)<1/2.75||(Y<2/2.75?Y-=1.5/2.75:Y<2.5/2.75?Y-=2.25/2.75:Y-=2.625/2.75);var cd,dd=bd/1E4;cd=(dd/=1)<1/2.75?7.5625*dd*dd+0:dd<2/2.75?1*(7.5625*(dd-=1.5/2.75)*dd+.75)+0:dd<2.5/2.75?1*(7.5625*(dd-=2.25/2.75)*dd+.9375)+0:1*(7.5625*(dd-=2.625/2.75)*dd+.984375)+0;Lc[bd]=cd;Y=bd/1E4;ad=$c=0;Y/=1;0==ad&&(ad=.3);0==$c||$c<Math.abs(1)?($c=1,Z=ad/4):Z=ad/(2*Math.PI)*Math.asin(1/$c);Zc=-($c*Math.pow(2,10*--Y)*Math.sin(2*(1*Y-Z)*Math.PI/ad))+0;Mc[bd]=
Zc;Y=bd/1E4;ad=$c=0;Y/=1;0==ad&&(ad=.3);0==$c||$c<Math.abs(1)?($c=1,Z=ad/4):Z=ad/(2*Math.PI)*Math.asin(1/$c);Zc=$c*Math.pow(2,-10*Y)*Math.sin(2*(1*Y-Z)*Math.PI/ad)+1;Nc[bd]=Zc;Y=bd/1E4;ad=$c=0;Y/=.5;0==ad&&(ad=.3*1.5);0==$c||$c<Math.abs(1)?($c=1,Z=ad/4):Z=ad/(2*Math.PI)*Math.asin(1/$c);Zc=1>Y?-.5*$c*Math.pow(2,10*--Y)*Math.sin(2*(1*Y-Z)*Math.PI/ad)+0:$c*Math.pow(2,-10*--Y)*Math.sin(2*(1*Y-Z)*Math.PI/ad)*.5+1;Oc[bd]=Zc;Y=bd/1E4;Pc[bd]=-(Math.sqrt(1-Y*Y)-1);Y=bd/1E4;Qc[bd]=Math.sqrt(1-(Y-1)*(Y-1));
Y=bd/1E4;Zc=1>(Y/=.5)?-.5*(Math.sqrt(1-Y*Y)-1)+0:.5*(Math.sqrt(1-(Y-=2)*Y)+1)+0;Rc[bd]=Zc;Y=bd/1E4;Z=0;0==Z&&(Z=1.70158);Zc=1*((Y=Y/1-1)*Y*((Z+1)*Y+Z)+1)+0;Sc[bd]=Zc;Y=bd/1E4;Z=0;0==Z&&(Z=1.70158);Zc=1>(Y/=.5)?.5*Y*Y*(((Z*=1.525)+1)*Y-Z)+0:.5*((Y-=2)*Y*(((Z*=1.525)+1)*Y+Z)+2)+0;Wc[bd]=Zc}
function ed(h,g,d,f,m,q,n){this.name=h;this.value=0;this.Hh(f);this.Sl(m);this.gi=d;this.Ya=g;this.duration=q;this.state=this.na=0;this.ol=this.pl=this.ll=this.xh=!1;this.Va=this.ba=0;this.ac=n;this.Me=1;this.mi=!1}ed.prototype={};ed.prototype.Hh=function(h){this.ya=parseFloat(h.split(",")[0]);this.rb=parseFloat(h.split(",")[1]);this.Va=this.ba=0};ed.prototype.Sl=function(h){this.xa=parseFloat(h.split(",")[0]);this.fb=parseFloat(h.split(",")[1]);isNaN(this.fb)&&(this.fb=this.xa)};
ed.prototype.Bm=function(h){if(0===this.state)return-1;1===this.state&&(this.na+=h);2===this.state&&(this.na-=h);3===this.state&&(this.state=0);if(4===this.state||6===this.state)this.na+=h*this.Me;5===this.state&&(this.na+=h*this.Me);return 0>this.na?(this.na=0,4===this.state?this.Me=1:6===this.state?(this.Me=1,this.mi=!1):this.state=0,this.ol=!0,0):this.na>this.duration?(this.na=this.duration,4===this.state?this.Me=-1:6===this.state?(this.Me=-1,this.mi=!0):5===this.state?this.na=0:this.state=0,this.ll=
!0,1):this.mi?Yc(this.gi,this.duration-this.na,this.duration,this.mi):Yc(this.gi,this.na,this.duration,this.mi)};function fd(h){this.b=h}
(function(){var h=fd.prototype;h.S=function(d){this.behavior=d;this.b=d.b};h.S.prototype.H=function(){};h.N=function(d,f){this.type=d;this.behavior=d.behavior;this.j=f;this.b=d.b;this.ib=0};var g=h.N.prototype;g.H=function(){this.Ah=this.C[0];this.Ka=1==this.Ah||2==this.Ah||3==this.Ah||4==this.Ah;this.Ya=this.C[1];this.dn=this.C[2];this.target=this.C[3];this.em=this.C[4];this.qm=!1;1===this.em&&(this.target="relative("+this.target+")");this.duration=this.C[5];this.ac=1===this.C[6];this.value=0;this.K=
{};this.pq(this.Ya,this.dn,"current",this.target,this.duration,this.ac);1===this.C[0]&&this.tj(0);2===this.C[0]&&this.tj(2);3===this.C[0]&&this.tj(3);4===this.C[0]&&this.tj(4)};g.de=function(d,f){void 0===f&&(f="current");var g=f.replace(/^\s\s*/,"").replace(/\s\s*$/,"");f=f.replace(/^\s\s*/,"").replace(/\s\s*$/,"");var h=this.value;if("current"===f)switch(d){case 0:g=this.j.x+","+this.j.y;break;case 1:g=this.j.width+","+this.j.height;break;case 2:g=this.j.width+","+this.j.height;break;case 3:g=this.j.width+
","+this.j.height;break;case 4:g=Ja(this.j.q)+","+Ja(this.j.q);break;case 5:g=100*this.j.opacity+","+100*this.j.opacity;break;case 6:g=h+","+h;break;case 7:g=this.j.x+","+this.j.y;break;case 8:g=this.j.x+","+this.j.y;break;case 9:g=void 0!==this.j.Ta?this.j.width/this.j.Ta.width+","+this.j.height/this.j.Ta.height:"1,1"}if("relative"===f.substring(0,8)){var n=f.match(/\((.*?)\)/);if(n)var c=parseFloat(n[1].split(",")[0]),b=parseFloat(n[1].split(",")[1]);isNaN(c)&&(c=0);isNaN(b)&&(b=0);switch(d){case 0:g=
this.j.x+c+","+(this.j.y+b);break;case 1:g=this.j.width+c+","+(this.j.height+b);break;case 2:g=this.j.width+c+","+(this.j.height+b);break;case 3:g=this.j.width+c+","+(this.j.height+b);break;case 4:g=Ja(this.j.q)+c+","+(Ja(this.j.q)+b);break;case 5:g=100*this.j.opacity+c+","+(100*this.j.opacity+b);break;case 6:g=h+c+","+h+c;break;case 7:g=this.j.x+c+","+this.j.y;break;case 8:g=this.j.x+","+(this.j.y+c);break;case 9:g=c+","+b}}return g};g.pq=function(d,f,g,h,n,c){g=this.de(d,g);h=this.de(d,h);void 0!==
this.K["default"]&&delete this.K["default"];this.K["default"]=new ed("default",d,f,g,h,n,c);this.K["default"].kf=0};g.Xa=function(){JSON.stringify(this.K["default"]);return{playmode:this.Ah,active:this.Ka,tweened:this.Ya,easing:this.dn,target:this.target,targetmode:this.em,useCurrent:this.qm,duration:this.duration,enforce:this.ac,value:this.value,tweenlist:JSON.stringify(this.K["default"])}};ed.wu=function(d,f,g,h,n,c,b,e){f=new ed(f,g,h,n,c,b,e);for(var a in d)f[a]=d[a];return f};g.kb=function(d){var f=
JSON.parse(d.tweenlist),f=ed.wu(f,f.name,f.Ya,f.gi,f.ya+","+f.rb,f.xa+","+f.fb,f.duration,f.ac);this.K["default"]=f;this.Ah=d.playmode;this.Ka=d.active;this.rh=d.tweened;this.dn=d.easing;this.target=d.target;this.em=d.targetmode;this.qm=d.useCurrent;this.duration=d.duration;this.ac=d.enforce;this.value=d.value};g.Jz=function(d){1<d&&(d=1);0>d&&(d=0);for(var f in this.K){var g=this.K[f];g.ba=0;g.Va=0;g.state=3;g.na=d*g.duration;var h=g.Bm(0);this.yp(g,h)}};g.tj=function(d){for(var f in this.K){var g=
this.K[f];if(this.qm){var h=this.de(g.Ya,"current"),n=this.de(g.Ya,this.target);g.Hh(h);g.Sl(n)}0===d&&(g.na=1E-6,g.ba=0,g.Va=0,g.xh=!0,g.state=1);1===d&&(g.state=1);if(2===d||4===d)g.na=1E-6,g.ba=0,g.Va=0,g.xh=!0,2==d&&(g.state=4),4==d&&(g.state=6);3===d&&(g.na=1E-6,g.ba=0,g.Va=0,g.xh=!0,g.state=5)}};g.Qz=function(d){for(var f in this.K){var g=this.K[f];1===d&&(g.na=0);2===d&&(g.na=g.duration);g.state=3;var h=g.Bm(0);this.yp(g,h)}};g.yz=function(d){for(var f in this.K){var g=this.K[f];1===d&&(g.na=
g.duration,g.ba=0,g.Va=0,g.pl=!0);g.state=2}};g.yp=function(d,f){var g=1,h=1;0>this.j.width&&(g=-1);0>this.j.height&&(h=-1);0===d.Ya?d.ac?(this.j.x=d.ya+(d.xa-d.ya)*f,this.j.y=d.rb+(d.fb-d.rb)*f):(this.j.x+=(d.xa-d.ya)*f-d.ba,this.j.y+=(d.fb-d.rb)*f-d.Va,d.ba=(d.xa-d.ya)*f,d.Va=(d.fb-d.rb)*f):1===d.Ya?d.ac?(this.j.width=g*d.ya+(d.xa-d.ya)*f*g,this.j.height=h*d.rb+(d.fb-d.rb)*f*h):(this.j.width+=g*(d.xa-d.ya)*f-d.ba,this.j.height+=h*(d.fb-d.rb)*f-d.Va,d.ba=g*(d.xa-d.ya)*f,d.Va=h*(d.fb-d.rb)*f):2===
d.Ya?d.ac?this.j.width=g*d.ya+(d.xa-d.ya)*f*g:(this.j.width+=g*(d.xa-d.ya)*f-d.ba,d.ba=g*(d.xa-d.ya)*f):3===d.Ya?d.ac?this.j.height=h*d.rb+(d.fb-d.rb)*f*h:(this.j.height+=h*(d.fb-d.rb)*f-d.Va,d.Va=h*(d.fb-d.rb)*f):4===d.Ya?d.ac?(g=d.ya+(d.xa-d.ya)*f,this.j.q=La(G(g))):(g=(d.xa-d.ya)*f-d.ba,this.j.q=La(this.j.q+G(g)),d.ba=(d.xa-d.ya)*f):5===d.Ya?d.ac?this.j.opacity=(d.ya+(d.xa-d.ya)*f)/100:(this.j.opacity+=((d.xa-d.ya)*f-d.ba)/100,d.ba=(d.xa-d.ya)*f):6===d.Ya?d.ac?this.value=d.ya+(d.xa-d.ya)*f:(this.value+=
(d.xa-d.ya)*f-d.ba,d.ba=(d.xa-d.ya)*f):7===d.Ya?d.ac?this.j.x=d.ya+(d.xa-d.ya)*f:(this.j.x+=(d.xa-d.ya)*f-d.ba,d.ba=(d.xa-d.ya)*f):8===d.Ya?d.ac?this.j.y=d.rb+(d.fb-d.rb)*f:(this.j.y+=(d.fb-d.rb)*f-d.Va,d.Va=(d.fb-d.rb)*f):9===d.Ya&&(g=d.ya+(d.xa-d.ya)*f,h=d.rb+(d.fb-d.rb)*f,0>this.j.width&&(g=d.ya+(d.xa+d.ya)*-f),0>this.j.height&&(h=d.rb+(d.fb+d.rb)*-f),d.ac?(this.j.width=this.j.Ta.width*g,this.j.height=this.j.Ta.height*h):(0>this.j.width?(this.j.width=this.j.width/(-1+d.ba)*g,d.ba=g+1):(this.j.width=
this.j.width/(1+d.ba)*g,d.ba=g-1),0>this.j.height?(this.j.height=this.j.height/(-1+d.Va)*h,d.Va=h+1):(this.j.height=this.j.height/(1+d.Va)*h,d.Va=h-1)));this.j.X()};g.Fa=function(){var d=this.b.Wd(this.j),f=this.K["default"];0!==f.state&&(f.xh&&(this.b.trigger(fd.prototype.n.Wu,this.j),f.xh=!1),f.pl&&(this.b.trigger(fd.prototype.n.Uu,this.j),f.pl=!1),this.Ka=1==f.state||2==f.state||4==f.state||5==f.state||6==f.state,d=f.Bm(d),this.yp(f,d),f.ll&&(this.b.trigger(fd.prototype.n.Np,this.j),f.ll=!1),f.ol&&
(this.b.trigger(fd.prototype.n.Tu,this.j),f.ol=!1))};h.n={};g=h.n;g.mu=function(){return 0!==this.K["default"].state};g.wA=function(){return 2==this.K["default"].state};g.nA=function(d,f){var g=this.K["default"];return hc(g.na/g.duration,d,f)};g.Wu=function(){return void 0===this.K["default"]?!1:this.K["default"].xh};g.Uu=function(){return void 0===this.K["default"]?!1:this.K["default"].pl};g.Np=function(){return void 0===this.K["default"]?!1:this.K["default"].ll};g.Tu=function(){return void 0===
this.K["default"]?!1:this.K["default"].ol};h.B={};g=h.B;g.Cv=function(d,f){this.qm=1==f;this.tj(d)};g.Ev=function(d){this.Qz(d)};g.MA=function(d){this.yz(d)};g.LA=function(d){this.Jz(d)};g.SA=function(d){isNaN(d)||0>d||void 0===this.K["default"]||(this.K["default"].duration=d)};g.WA=function(d){void 0!==this.K["default"]&&(this.K["default"].ac=1===d)};g.YA=function(d){void 0!==this.K["default"]&&(d=this.de(this.K["default"].Ya,d),this.K["default"].Hh(d))};g.uv=function(d,f,g){if(void 0!==this.K["default"]&&
!isNaN(g)){var h=this.K["default"],n=g+"";this.em=f;var c="",b="";if(1===f){this.target="relative("+n+")";switch(d){case 0:c=this.j.x+g;b=h.fb;break;case 1:c=h.xa;b=this.j.y+g;break;case 2:b=c=""+Ja(this.j.q+G(g));break;case 3:b=c=""+100*this.j.opacity+g;break;case 4:c=this.j.width+g;b=h.fb;break;case 5:c=h.xa;b=this.j.height+g;break;case 6:b=c=g}n=c+","+b}else{switch(d){case 0:c=g;b=h.fb;break;case 1:c=h.xa;b=g;break;case 2:b=c=g;break;case 3:b=c=g;break;case 4:c=g;b=h.fb;break;case 5:c=h.xa;b=g;
break;case 6:b=c=g}this.target=n=c+","+b}d=this.de(this.K["default"].Ya,"current");n=this.de(this.K["default"].Ya,n);h.Hh(d);h.Sl(n)}};g.$A=function(d){void 0!==this.K["default"]&&(this.K["default"].Ya=d)};g.TA=function(d){void 0!==this.K["default"]&&(this.K["default"].gi=d)};g.aB=function(d){var f=this.K["default"];this.value=d;6===f.Ya&&f.Hh(this.de(f.Ya,"current"))};g.ZA=function(d,f,g,h,n){if(void 0===this.K["default"])this.pq(d,f,initial,g,h,n);else{var c=this.K["default"];c.Ya=d;c.gi=f;c.Hh(this.de(d,
"current"));c.Sl(this.de(d,g));c.duration=h;c.ac=1===n}};h.L={};h=h.L;h.dB=function(d){var f="N/A";switch(this.K["default"].state){case 0:f="paused";break;case 1:f="playing";break;case 2:f="reversing";break;case 3:f="seeking"}d.ob(f)};h.KA=function(d){d.I(this.K["default"].na/this.K["default"].duration)};h.Jp=function(d){d.I(this.K["default"].duration)};h.eB=function(d){var f=this.K["default"],g="N/A";switch(f.Ya){case 0:g=f.xa;break;case 1:g=f.fb;break;case 2:g=f.xa;break;case 3:g=f.xa;break;case 4:g=
f.xa;break;case 5:g=f.fb;break;case 6:g=f.xa}d.I(g)};h.Jv=function(d){d.I(this.value)};h.gB=function(d,f,g,h,n){h=1<h?1:h;n=Yc(n,0>h?0:h,1,!1);d.I(f+n*(g-f))}})();function hd(h){this.b=h;this.Ul=this.rj=this.zg=this.Tl=0}
(function(){function h(){}var g=hd.prototype;g.S=function(d){this.behavior=d;this.b=d.b};g.S.prototype.H=function(){};g.N=function(d,g){this.type=d;this.behavior=d.behavior;this.j=g;this.b=d.b};var d=g.N.prototype;d.H=function(){this.enabled=0!==this.C[0]};d.Xa=function(){return{smg:this.behavior.Tl,ss:this.behavior.zg,se:this.behavior.rj,smd:this.behavior.Ul}};d.kb=function(d){this.behavior.Tl=d.smg;this.behavior.zg=d.ss;this.behavior.rj=d.se;this.behavior.Ul=d.smd};d.Fa=function(){};d.Dg=function(){if(this.enabled){var d=
this.behavior.hl.Te(),g=0,h=0,n,c,b,e=0;n=0;for(c=d.length;n<c;n++){a:{b=d[n];for(var a=void 0,k=void 0,p=void 0,a=0,k=b.aa.length;a<k;++a)if(p=b.aa[a],p.behavior instanceof hd){b=p;break a}b=null}b&&b.enabled&&(g+=d[n].x,h+=d[n].y,++e)}d=this.j.u.jb;c=this.b.tb.J;b=n=0;c>=this.behavior.zg&&c<this.behavior.rj&&(n=this.behavior.Tl*Math.min(this.b.Gf,1),0===this.behavior.Ul&&(n*=1-(c-this.behavior.zg)/(this.behavior.rj-this.behavior.zg)),c=Math.random()*Math.PI*2,b=Math.random()*n,n=Math.cos(c)*b,b*=
Math.sin(c));d.$o(g/e+n);d.bp(h/e+b)}};h.prototype.Av=function(d,g,h){this.behavior.Tl=d;this.behavior.zg=this.b.tb.J;this.behavior.rj=this.behavior.zg+g;this.behavior.Ul=h};h.prototype.Em=function(d){this.enabled=0!==d};g.B=new h})();function rc(h){this.b=h}
(function(){function h(){}var g=rc.prototype;g.S=function(d){this.behavior=d;this.b=d.b};g.S.prototype.H=function(){};g.N=function(d,g){this.type=d;this.behavior=d.behavior;this.j=g;this.b=d.b};var d=g.N.prototype;d.H=function(){this.j.O.solidEnabled=0!==this.C[0]};d.Fa=function(){};g.n=new function(){};h.prototype.Em=function(d){this.j.O.solidEnabled=!!d};g.B=new h})();
function qc(){return[tc,uc,vc,sc,zc,Ac,Bc,R,S,Hc,Fc,Dc,fd,hd,Jc,Ic,Ec,Gc,rc,Cc,Kc,I.prototype.n.pu,S.prototype.n.Dm,S.prototype.n.ru,R.prototype.B.xv,S.prototype.L.Gm,S.prototype.L.Hm,R.prototype.B.Bv,R.prototype.B.tv,R.prototype.B.bq,R.prototype.L.Mt,R.prototype.B.gv,Cc.prototype.B.Em,I.prototype.n.Vt,tc.prototype.B.Play,Ic.prototype.n.Yu,R.prototype.B.jv,R.prototype.n.qu,R.prototype.B.Ip,R.prototype.B.Gv,sc.prototype.B.CallFunction,R.prototype.L.dq,R.prototype.n.Eu,sc.prototype.n.Kj,I.prototype.B.Yt,
sc.prototype.L.$u,R.prototype.B.qv,Gc.prototype.B.Fm,Fc.prototype.B.bv,I.prototype.n.Sp,I.prototype.B.wv,I.prototype.B.yv,Bc.prototype.B.vv,I.prototype.B.hv,I.prototype.n.$t,I.prototype.B.Lt,S.prototype.n.Yp,R.prototype.n.su,I.prototype.B.cv,I.prototype.B.gu,I.prototype.B.Kv,R.prototype.B.cq,Bc.prototype.B.cq,R.prototype.n.Ut,Ic.prototype.B.Dv,I.prototype.n.au,R.prototype.L.Lv,R.prototype.L.ku,R.prototype.n.Wt,R.prototype.n.aq,I.prototype.n.cu,R.prototype.L.lu,I.prototype.L.Jy,Hc.prototype.B.dv,I.prototype.L.Gy,
R.prototype.n.Mp,hd.prototype.B.Av,Ac.prototype.n.aq,Ac.prototype.B.Ip,I.prototype.B.ov,Ac.prototype.B.bq,Ec.prototype.B.bu,I.prototype.B.Hv,I.prototype.L.random,I.prototype.n.Tt,I.prototype.n.av,R.prototype.L.Gm,R.prototype.L.Hm,R.prototype.L.Ot,Cc.prototype.B.Fm,Ac.prototype.L.dq,fd.prototype.B.uv,fd.prototype.B.Cv,fd.prototype.n.Np,I.prototype.L.jz,S.prototype.n.Cm,uc.prototype.B.iu,sc.prototype.L.Hp,I.prototype.n.Kp,sc.prototype.B.sv,zc.prototype.n.Lp,uc.prototype.B.Xt,I.prototype.L["int"],I.prototype.L.Wz,
I.prototype.B.hu,tc.prototype.B.Fv,I.prototype.B.nv,zc.prototype.B.Pt,zc.prototype.n.Op,zc.prototype.B.fu,zc.prototype.n.Pp,vc.prototype.B.vu,zc.prototype.L.tu,zc.prototype.n.Rp,zc.prototype.n.Qp,zc.prototype.B.kv,vc.prototype.n.ju,vc.prototype.L.eu,vc.prototype.B.Kt,vc.prototype.L.ym,vc.prototype.B.lv,vc.prototype.B.Zt,vc.prototype.B.Qt,I.prototype.L.Rz,R.prototype.B.rv,I.prototype.L.Xz,I.prototype.n.du,R.prototype.B.pv]};
