// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa,ba,ca,N,da,ea,fa,Q,ha,ia,ja,la,ma,na,R,qa,sa,ta,ua,wa,ya,za,Aa,Ba,Ca,U,Da,Ea,Fa,Ga,Ha,Ia,Ka,La,Ma,Na,Oa,Pa,Qa,Va,Wa,Xa,Ya,Za,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,rb,sb,tb,ub,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,Xb,V,Yb,Zb={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(g){return g.__proto__}:function(g){return g.constructor.prototype});
(function(){function g(d,m,f,a){this.set(d,m,f,a)}function l(){this.kb=this.jb=this.mb=this.lb=this.xb=this.wb=this.ya=this.xa=0}function e(d,m,f,a){d<m?f<a?(x=d<f?d:f,t=m>a?m:a):(x=d<a?d:a,t=m>f?m:f):f<a?(x=m<f?m:f,t=d>a?d:a):(x=m<a?m:a,t=d>f?d:f)}function q(){this.items=this.Uc=null;this.Mf=0;m&&(this.Uc=new Set);this.mg=[];this.Vd=!0}function s(d){f[B++]=d}function c(){this.fa=this.zj=this.y=this.Uj=0}function a(d){this.$a=[];this.Rh=this.Th=this.Uh=this.Sh=0;this.zh(d)}function b(d,m){this.Xj=
d;this.Wj=m;this.cells={}}function u(d,m){this.Xj=d;this.Wj=m;this.cells={}}function v(d,m,f){var a;return O.length?(a=O.pop(),a.Ck=d,a.x=m,a.y=f,a):new aa(d,m,f)}function h(d,m,f){this.Ck=d;this.x=m;this.y=f;this.eb=new ba}function p(d,m,f){var a;return D.length?(a=D.pop(),a.Ck=d,a.x=m,a.y=f,a):new ca(d,m,f)}function w(d,m,f){this.Ck=d;this.x=m;this.y=f;this.eb=[];this.Kf=!0;this.fd=new ba;this.rg=!1}function k(d,m){return d.Yc-m.Yc}N=function(d){window.console&&window.console.log&&window.console.log(d)};
da=function(d){window.console&&window.console.error&&window.console.error(d)};ea=function(d){return"undefined"===typeof d};fa=function(d){return"number"===typeof d};Q=function(d){return"string"===typeof d};ha=function(d){return 0<d&&0===(d-1&d)};ia=function(d){--d;for(var m=1;32>m;m<<=1)d|=d>>m;return d+1};ja=function(d){return 0>d?-d:d};la=function(d,m){return d>m?d:m};ma=function(d,m){return d<m?d:m};na=Math.PI;R=function(d){return 0<=d?d|0:(d|0)-1};qa=function(d){var m=d|0;return m===d?m:m+1};
sa=function(d,m,f,a,b,h,n,c){var B,k,p,r;d<f?(k=d,B=f):(k=f,B=d);b<n?(r=b,p=n):(r=n,p=b);if(B<r||k>p)return!1;m<a?(k=m,B=a):(k=a,B=m);h<c?(r=h,p=c):(r=c,p=h);if(B<r||k>p)return!1;B=b-d+n-f;k=h-m+c-a;d=f-d;m=a-m;b=n-b;h=c-h;c=ja(m*b-h*d);return ja(b*k-h*B)>c?!1:ja(d*k-m*B)<=c};g.prototype.set=function(d,m,f,a){this.left=d;this.top=m;this.right=f;this.bottom=a};g.prototype.ei=function(d){this.left=d.left;this.top=d.top;this.right=d.right;this.bottom=d.bottom};g.prototype.width=function(){return this.right-
this.left};g.prototype.height=function(){return this.bottom-this.top};g.prototype.offset=function(d,m){this.left+=d;this.top+=m;this.right+=d;this.bottom+=m;return this};g.prototype.normalize=function(){var d=0;this.left>this.right&&(d=this.left,this.left=this.right,this.right=d);this.top>this.bottom&&(d=this.top,this.top=this.bottom,this.bottom=d)};g.prototype.jt=function(d){return!(d.right<this.left||d.bottom<this.top||d.left>this.right||d.top>this.bottom)};g.prototype.kt=function(d,m,f){return!(d.right+
m<this.left||d.bottom+f<this.top||d.left+m>this.right||d.top+f>this.bottom)};g.prototype.Cb=function(d,m){return d>=this.left&&d<=this.right&&m>=this.top&&m<=this.bottom};g.prototype.ni=function(d){return this.left===d.left&&this.top===d.top&&this.right===d.right&&this.bottom===d.bottom};ta=g;l.prototype.yh=function(d){this.xa=d.left;this.ya=d.top;this.wb=d.right;this.xb=d.top;this.lb=d.right;this.mb=d.bottom;this.jb=d.left;this.kb=d.bottom};l.prototype.fp=function(d,m){if(0===m)this.yh(d);else{var f=
Math.sin(m),a=Math.cos(m),b=d.left*f,h=d.top*f,n=d.right*f,f=d.bottom*f,c=d.left*a,B=d.top*a,k=d.right*a,a=d.bottom*a;this.xa=c-h;this.ya=B+b;this.wb=k-h;this.xb=B+n;this.lb=k-f;this.mb=a+n;this.jb=c-f;this.kb=a+b}};l.prototype.offset=function(d,m){this.xa+=d;this.ya+=m;this.wb+=d;this.xb+=m;this.lb+=d;this.mb+=m;this.jb+=d;this.kb+=m;return this};var x=0,t=0;l.prototype.Sm=function(d){e(this.xa,this.wb,this.lb,this.jb);d.left=x;d.right=t;e(this.ya,this.xb,this.mb,this.kb);d.top=x;d.bottom=t};l.prototype.Cb=
function(d,m){var f=this.wb-this.xa,a=this.xb-this.ya,b=this.lb-this.xa,h=this.mb-this.ya,n=d-this.xa,c=m-this.ya,B=f*f+a*a,k=f*b+a*h,a=f*n+a*c,p=b*b+h*h,r=b*n+h*c,O=1/(B*p-k*k),f=(p*a-k*r)*O,B=(B*r-k*a)*O;if(0<=f&&0<B&&1>f+B)return!0;f=this.jb-this.xa;a=this.kb-this.ya;B=f*f+a*a;k=f*b+a*h;a=f*n+a*c;O=1/(B*p-k*k);f=(p*a-k*r)*O;B=(B*r-k*a)*O;return 0<=f&&0<B&&1>f+B};l.prototype.Sd=function(d,m){if(m)switch(d){case 0:return this.xa;case 1:return this.wb;case 2:return this.lb;case 3:return this.jb;case 4:return this.xa;
default:return this.xa}else switch(d){case 0:return this.ya;case 1:return this.xb;case 2:return this.mb;case 3:return this.kb;case 4:return this.ya;default:return this.ya}};l.prototype.no=function(){return(this.xa+this.wb+this.lb+this.jb)/4};l.prototype.oo=function(){return(this.ya+this.xb+this.mb+this.kb)/4};l.prototype.Gn=function(d){var m=d.no(),f=d.oo();if(this.Cb(m,f))return!0;m=this.no();f=this.oo();if(d.Cb(m,f))return!0;var a,b,h,n,c,B,k,p;for(k=0;4>k;k++)for(p=0;4>p;p++)if(m=this.Sd(k,!0),
f=this.Sd(k,!1),a=this.Sd(k+1,!0),b=this.Sd(k+1,!1),h=d.Sd(p,!0),n=d.Sd(p,!1),c=d.Sd(p+1,!0),B=d.Sd(p+1,!1),sa(m,f,a,b,h,n,c,B))return!0;return!1};ua=l;wa=function(d,m){for(var f in m)m.hasOwnProperty(f)&&(d[f]=m[f]);return d};ya=function(d,m){var f,a;m=R(m);if(!(0>m||m>=d.length)){f=m;for(a=d.length-1;f<a;f++)d[f]=d[f+1];d.length=a}};za=function(d,m){d.length=m.length;var f,a;f=0;for(a=m.length;f<a;f++)d[f]=m[f]};Aa=function(d,m){d.push.apply(d,m)};Ba=function(d,m){var f,a;f=0;for(a=d.length;f<a;++f)if(d[f]===
m)return f;return-1};Ca=function(d,m){var f=Ba(d,m);-1!==f&&ya(d,f)};U=function(d){return d/(180/na)};Da=function(d){return 180/na*d};Ea=function(d){d%=360;0>d&&(d+=360);return d};Fa=function(d){d%=2*na;0>d&&(d+=2*na);return d};Ga=function(d){return Ea(Da(d))};Ha=function(d){return Fa(U(d))};Ia=function(d,m,f,a){return Math.atan2(a-m,f-d)};Ka=function(d,m){if(d===m)return 0;var f=Math.sin(d),a=Math.cos(d),b=Math.sin(m),h=Math.cos(m),f=f*b+a*h;return 1<=f?0:-1>=f?na:Math.acos(f)};La=function(d,m,f){var a=
Math.sin(d),b=Math.cos(d),h=Math.sin(m),n=Math.cos(m);return Math.acos(a*h+b*n)>f?0<b*h-a*n?Fa(d+f):Fa(d-f):Fa(m)};Ma=function(d,m){var f=Math.sin(d),a=Math.cos(d),b=Math.sin(m),h=Math.cos(m);return 0>=a*b-f*h};Na=function(d,m,f,a,b,h){if(0===f)return h?d:m;var n=Math.sin(f);f=Math.cos(f);d-=a;m-=b;var c=d*n;d=d*f-m*n;m=m*f+c;return h?d+a:m+b};Oa=function(d,m,f,a){d=f-d;m=a-m;return Math.sqrt(d*d+m*m)};Pa=function(d,m){return!d!==!m};Qa=function(d){for(var m in d)if(d.hasOwnProperty(m))return!0;return!1};
Va=function(d){for(var m in d)d.hasOwnProperty(m)&&delete d[m]};var z=+new Date;Wa=function(){if("undefined"!==typeof window.performance){var d=window.performance;if("undefined"!==typeof d.now)return d.now();if("undefined"!==typeof d.webkitNow)return d.webkitNow();if("undefined"!==typeof d.mozNow)return d.mozNow();if("undefined"!==typeof d.msNow)return d.msNow()}return Date.now()-z};var n=!1,r=n=!1,d=!1;"undefined"!==typeof window&&(n=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),
n=!n&&/safari/i.test(navigator.userAgent),r=/(iphone|ipod|ipad)/i.test(navigator.userAgent),d=window.c2ejecta);var m=!n&&!d&&!r&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;q.prototype.contains=function(d){return this.zd()?!1:m?this.Uc.has(d):this.items&&this.items.hasOwnProperty(d)};q.prototype.add=function(d){if(m)this.Uc.has(d)||(this.Uc.add(d),this.Vd=!1);else{var f=d.toString(),a=this.items;a?a.hasOwnProperty(f)||(a[f]=d,this.Mf++,this.Vd=!1):(this.items={},this.items[f]=
d,this.Mf=1,this.Vd=!1)}};q.prototype.remove=function(d){if(!this.zd())if(m)this.Uc.has(d)&&(this.Uc["delete"](d),this.Vd=!1);else if(this.items){d=d.toString();var f=this.items;f.hasOwnProperty(d)&&(delete f[d],this.Mf--,this.Vd=!1)}};q.prototype.clear=function(){this.zd()||(m?this.Uc.clear():(this.items=null,this.Mf=0),this.mg.length=0,this.Vd=!0)};q.prototype.zd=function(){return 0===this.count()};q.prototype.count=function(){return m?this.Uc.size:this.Mf};var f=null,B=0;q.prototype.Au=function(){if(!this.Vd){if(m)this.mg.length=
this.Uc.size,f=this.mg,B=0,this.Uc.forEach(s),f=null,B=0;else{var d=this.mg;d.length=this.Mf;var a,b=0,h=this.items;if(h)for(a in h)h.hasOwnProperty(a)&&(d[b++]=h[a])}this.Vd=!0}};q.prototype.ye=function(){this.Au();return this.mg};ba=q;new ba;Xa=function(d,f){m?Ya(d,f.Uc):Za(d,f.ye())};Ya=function(d,m){var f,a,h,b;a=f=0;for(h=d.length;f<h;++f)b=d[f],m.has(b)||(d[a++]=b);d.length=a};Za=function(d,m){var f,a,h,b;a=f=0;for(h=d.length;f<h;++f)b=d[f],-1===Ba(m,b)&&(d[a++]=b);d.length=a};c.prototype.add=
function(d){this.y=d-this.Uj;this.zj=this.fa+this.y;this.Uj=this.zj-this.fa-this.y;this.fa=this.zj};c.prototype.reset=function(){this.fa=this.zj=this.y=this.Uj=0};$a=c;ab=function(d){return d.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};a.prototype.zh=function(d){this.Qo=d;this.Rc=d.length/2;this.$a.length=d.length;this.Wh=this.Xh=-1;this.Vm=0};a.prototype.Hf=function(){return!this.Qo.length};a.prototype.ta=function(){for(var d=this.$a,m=d[0],f=m,a=d[1],h=a,b,n,c=1,B=this.Rc;c<B;++c)n=2*c,b=d[n],n=
d[n+1],b<m&&(m=b),b>f&&(f=b),n<a&&(a=n),n>h&&(h=n);this.Sh=m;this.Th=f;this.Uh=a;this.Rh=h};a.prototype.yh=function(d,m,f){this.$a.length=8;this.Rc=4;var a=this.$a;a[0]=d.left-m;a[1]=d.top-f;a[2]=d.right-m;a[3]=d.top-f;a[4]=d.right-m;a[5]=d.bottom-f;a[6]=d.left-m;a[7]=d.bottom-f;this.Xh=d.right-d.left;this.Wh=d.bottom-d.top;this.ta()};a.prototype.dg=function(d,m,f,a,b){this.$a.length=8;this.Rc=4;var h=this.$a;h[0]=d.xa-m;h[1]=d.ya-f;h[2]=d.wb-m;h[3]=d.xb-f;h[4]=d.lb-m;h[5]=d.mb-f;h[6]=d.jb-m;h[7]=
d.kb-f;this.Xh=a;this.Wh=b;this.ta()};a.prototype.ep=function(d){this.Rc=d.Rc;za(this.$a,d.$a);this.Sh=d.Sh;this.Uh-d.Uh;this.Th=d.Th;this.Rh=d.Rh};a.prototype.wf=function(d,m,f){if(this.Xh!==d||this.Wh!==m||this.Vm!==f){this.Xh=d;this.Wh=m;this.Vm=f;var a,h,b,n,c,B=0,k=1,p=this.Qo,r=this.$a;0!==f&&(B=Math.sin(f),k=Math.cos(f));f=0;for(b=this.Rc;f<b;f++)a=2*f,h=a+1,n=p[a]*d,c=p[h]*m,r[a]=n*k-c*B,r[h]=c*k+n*B;this.ta()}};a.prototype.Cb=function(d,m){var f=this.$a;if(d===f[0]&&m===f[1])return!0;var a,
h,b,n=this.Rc,c=this.Sh-110,B=this.Uh-101,k=this.Th+131,p=this.Rh+120,r,O,I=0,D=0;for(a=0;a<n;a++)h=2*a,b=(a+1)%n*2,r=f[h],h=f[h+1],O=f[b],b=f[b+1],sa(c,B,d,m,r,h,O,b)&&I++,sa(k,p,d,m,r,h,O,b)&&D++;return 1===I%2||1===D%2};a.prototype.Ng=function(d,m,f){var a=d.$a,h=this.$a;if(this.Cb(a[0]+m,a[1]+f)||d.Cb(h[0]-m,h[1]-f))return!0;var b,n,c,B,k,p,r,O,I,D,x,e;b=0;for(B=this.Rc;b<B;b++)for(n=2*b,c=(b+1)%B*2,O=h[n],n=h[n+1],I=h[c],D=h[c+1],c=0,r=d.Rc;c<r;c++)if(k=2*c,p=(c+1)%r*2,x=a[k]+m,k=a[k+1]+f,e=
a[p]+m,p=a[p+1]+f,sa(O,n,I,D,x,k,e,p))return!0;return!1};bb=a;b.prototype.fe=function(d,m,f){var a;a=this.cells[d];return a?(a=a[m])?a:f?(a=v(this,d,m),this.cells[d][m]=a):null:f?(a=v(this,d,m),this.cells[d]={},this.cells[d][m]=a):null};b.prototype.ec=function(d){return R(d/this.Xj)};b.prototype.fc=function(d){return R(d/this.Wj)};b.prototype.update=function(d,m,f){var a,h,b,n,c;if(m)for(a=m.left,h=m.right;a<=h;++a)for(b=m.top,n=m.bottom;b<=n;++b)if(!f||!f.Cb(a,b))if(c=this.fe(a,b,!1))c.remove(d),
c.zd()&&(c.eb.clear(),1E3>O.length&&O.push(c),this.cells[a][b]=null);if(f)for(a=f.left,h=f.right;a<=h;++a)for(b=f.top,n=f.bottom;b<=n;++b)m&&m.Cb(a,b)||this.fe(a,b,!0).Kk(d)};b.prototype.nj=function(d,m){var f,a,h,b,n,c;f=this.ec(d.left);h=this.fc(d.top);a=this.ec(d.right);for(n=this.fc(d.bottom);f<=a;++f)for(b=h;b<=n;++b)(c=this.fe(f,b,!1))&&c.dump(m)};cb=b;u.prototype.fe=function(d,m,f){var a;a=this.cells[d];return a?(a=a[m])?a:f?(a=p(this,d,m),this.cells[d][m]=a):null:f?(a=p(this,d,m),this.cells[d]=
{},this.cells[d][m]=a):null};u.prototype.ec=function(d){return R(d/this.Xj)};u.prototype.fc=function(d){return R(d/this.Wj)};u.prototype.update=function(d,m,f){var a,b,h,n,c;if(m)for(a=m.left,b=m.right;a<=b;++a)for(h=m.top,n=m.bottom;h<=n;++h)if(!f||!f.Cb(a,h))if(c=this.fe(a,h,!1))c.remove(d),c.zd()&&(c.reset(),1E3>D.length&&D.push(c),this.cells[a][h]=null);if(f)for(a=f.left,b=f.right;a<=b;++a)for(h=f.top,n=f.bottom;h<=n;++h)m&&m.Cb(a,h)||this.fe(a,h,!0).Kk(d)};u.prototype.nj=function(d,m,f,a,h){var b,
n;d=this.ec(d);m=this.fc(m);f=this.ec(f);for(b=this.fc(a);d<=f;++d)for(a=m;a<=b;++a)(n=this.fe(d,a,!1))&&n.dump(h)};u.prototype.Ct=function(d){var m,f,a,h,b;m=d.left;a=d.top;f=d.right;for(h=d.bottom;m<=f;++m)for(d=a;d<=h;++d)if(b=this.fe(m,d,!1))b.Kf=!1};db=u;var O=[];h.prototype.zd=function(){return this.eb.zd()};h.prototype.Kk=function(d){this.eb.add(d)};h.prototype.remove=function(d){this.eb.remove(d)};h.prototype.dump=function(d){Aa(d,this.eb.ye())};aa=h;var D=[];w.prototype.zd=function(){if(!this.eb.length)return!0;
if(this.eb.length>this.fd.count())return!1;this.pk();return!0};w.prototype.Kk=function(d){this.fd.contains(d)?(this.fd.remove(d),this.fd.zd()&&(this.rg=!1)):this.eb.length?(this.eb[this.eb.length-1].bd()>d.bd()&&(this.Kf=!1),this.eb.push(d)):(this.eb.push(d),this.Kf=!0)};w.prototype.remove=function(d){this.fd.add(d);this.rg=!0;30<=this.fd.count()&&this.pk()};w.prototype.pk=function(){this.rg&&(this.fd.count()===this.eb.length?this.reset():(Xa(this.eb,this.fd),this.fd.clear(),this.rg=!1))};w.prototype.Tr=
function(){this.Kf||(this.eb.sort(k),this.Kf=!0)};w.prototype.reset=function(){this.eb.length=0;this.Kf=!0;this.fd.clear();this.rg=!1};w.prototype.dump=function(d){this.pk();this.Tr();this.eb.length&&d.push(this.eb)};ca=w;var I="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");eb=function(d){return 0>=d||11<=d?"source-over":I[d-1]};fb=function(d,m,f){if(f)switch(d.Ab=f.ONE,d.zb=f.ONE_MINUS_SRC_ALPHA,m){case 1:d.Ab=f.ONE;
d.zb=f.ONE;break;case 3:d.Ab=f.ONE;d.zb=f.ZERO;break;case 4:d.Ab=f.ONE_MINUS_DST_ALPHA;d.zb=f.ONE;break;case 5:d.Ab=f.DST_ALPHA;d.zb=f.ZERO;break;case 6:d.Ab=f.ZERO;d.zb=f.SRC_ALPHA;break;case 7:d.Ab=f.ONE_MINUS_DST_ALPHA;d.zb=f.ZERO;break;case 8:d.Ab=f.ZERO;d.zb=f.ONE_MINUS_SRC_ALPHA;break;case 9:d.Ab=f.DST_ALPHA;d.zb=f.ONE_MINUS_SRC_ALPHA;break;case 10:d.Ab=f.ONE_MINUS_DST_ALPHA,d.zb=f.SRC_ALPHA}};gb=function(d){return Math.round(1E6*d)/1E6};hb=function(d,m){return"string"!==typeof d||"string"!==
typeof m||d.length!==m.length?!1:d===m?!0:d.toLowerCase()===m.toLowerCase()};ib=function(d){d=d.target;return!d||d===document||d===window||document&&document.body&&d===document.body||hb(d.tagName,"canvas")?!0:!1}})();var $b="undefined"!==typeof Float32Array?Float32Array:Array;function ac(g){var l=new $b(3);g&&(l[0]=g[0],l[1]=g[1],l[2]=g[2]);return l}
function bc(g){var l=new $b(16);g&&(l[0]=g[0],l[1]=g[1],l[2]=g[2],l[3]=g[3],l[4]=g[4],l[5]=g[5],l[6]=g[6],l[7]=g[7],l[8]=g[8],l[9]=g[9],l[10]=g[10],l[11]=g[11],l[12]=g[12],l[13]=g[13],l[14]=g[14],l[15]=g[15]);return l}function cc(g,l){l[0]=g[0];l[1]=g[1];l[2]=g[2];l[3]=g[3];l[4]=g[4];l[5]=g[5];l[6]=g[6];l[7]=g[7];l[8]=g[8];l[9]=g[9];l[10]=g[10];l[11]=g[11];l[12]=g[12];l[13]=g[13];l[14]=g[14];l[15]=g[15]}
function dc(g,l){var e=l[0],q=l[1];l=l[2];g[0]*=e;g[1]*=e;g[2]*=e;g[3]*=e;g[4]*=q;g[5]*=q;g[6]*=q;g[7]*=q;g[8]*=l;g[9]*=l;g[10]*=l;g[11]*=l}
function ec(g,l,e,q){q||(q=bc());var s,c,a,b,u,v,h,p,w=g[0],k=g[1];g=g[2];c=e[0];a=e[1];s=e[2];e=l[1];v=l[2];w===l[0]&&k===e&&g===v?(g=q,g[0]=1,g[1]=0,g[2]=0,g[3]=0,g[4]=0,g[5]=1,g[6]=0,g[7]=0,g[8]=0,g[9]=0,g[10]=1,g[11]=0,g[12]=0,g[13]=0,g[14]=0,g[15]=1):(e=w-l[0],v=k-l[1],h=g-l[2],p=1/Math.sqrt(e*e+v*v+h*h),e*=p,v*=p,h*=p,l=a*h-s*v,s=s*e-c*h,c=c*v-a*e,(p=Math.sqrt(l*l+s*s+c*c))?(p=1/p,l*=p,s*=p,c*=p):c=s=l=0,a=v*c-h*s,b=h*l-e*c,u=e*s-v*l,(p=Math.sqrt(a*a+b*b+u*u))?(p=1/p,a*=p,b*=p,u*=p):u=b=a=0,
q[0]=l,q[1]=a,q[2]=e,q[3]=0,q[4]=s,q[5]=b,q[6]=v,q[7]=0,q[8]=c,q[9]=u,q[10]=h,q[11]=0,q[12]=-(l*w+s*k+c*g),q[13]=-(a*w+b*k+u*g),q[14]=-(e*w+v*k+h*g),q[15]=1)}
(function(){function g(c){this.Te=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.Wm=ac([0,0,100]);this.Wn=ac([0,0,0]);this.Cp=ac([0,1,0]);this.qm=ac([1,1,1]);this.cn=!0;this.dl=bc();this.Cc=bc();this.On=bc();this.dk=bc();this.q=c;this.Cn()}function l(c,a,b){this.q=c;this.Ah=a;this.name=b;this.Bc=c.getAttribLocation(a,"aPos");this.ke=c.getAttribLocation(a,"aTex");this.Un=c.getUniformLocation(a,"matP");this.Xi=c.getUniformLocation(a,"matMV");this.Rf=
c.getUniformLocation(a,"opacity");this.Vn=c.getUniformLocation(a,"samplerFront");this.bh=c.getUniformLocation(a,"samplerBack");this.ef=c.getUniformLocation(a,"destStart");this.df=c.getUniformLocation(a,"destEnd");this.al=c.getUniformLocation(a,"seconds");this.$k=c.getUniformLocation(a,"pixelWidth");this.Zk=c.getUniformLocation(a,"pixelHeight");this.ah=c.getUniformLocation(a,"layerScale");this.$g=c.getUniformLocation(a,"layerAngle");this.eh=c.getUniformLocation(a,"viewOrigin");this.dh=c.getUniformLocation(a,
"scrollPos");this.et=!!(this.$k||this.Zk||this.al||this.bh||this.ef||this.df||this.ah||this.$g||this.eh||this.dh);this.eo=this.fo=-999;this.Zi=1;this.$n=this.Zn=0;this.bo=this.Yn=this.Xn=1;this.io=this.ho=this.ko=this.jo=this.ao=0;this.Vk=[];this.co=bc();this.Rf&&c.uniform1f(this.Rf,1);this.Vn&&c.uniform1i(this.Vn,0);this.bh&&c.uniform1i(this.bh,1);this.ef&&c.uniform2f(this.ef,0,0);this.df&&c.uniform2f(this.df,1,1);this.ah&&c.uniform1f(this.ah,1);this.$g&&c.uniform1f(this.$g,0);this.eh&&c.uniform2f(this.eh,
0,0);this.dh&&c.uniform2f(this.dh,0,0);this.Oe=!1}function e(c,a){this.type=c;this.C=a;this.q=a.q;this.cd=this.Ec=this.Do=0;this.ha=this.Wc=null;this.gp=[]}g.prototype.Cn=function(){var c=this.q,a;this.Pn=1;this.Xe=this.We=null;this.ii=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.DEPTH_TEST);this.Qn=c.ONE;this.Nn=c.ONE_MINUS_SRC_ALPHA;this.zl=c.createBuffer();c.bindBuffer(c.ARRAY_BUFFER,this.zl);this.Mh=
Array(4);this.Fh=Array(4);for(a=0;4>a;a++)this.Mh[a]=c.createBuffer(),c.bindBuffer(c.ARRAY_BUFFER,this.Mh[a]),this.Fh[a]=c.createBuffer(),c.bindBuffer(c.ARRAY_BUFFER,this.Fh[a]);this.rd=0;this.ht=c.createBuffer();c.bindBuffer(c.ELEMENT_ARRAY_BUFFER,this.ht);this.mm=new Float32Array(16E3);this.Wl=new Float32Array(16E3);this.Pt=new Float32Array(32E3);for(var b=new Uint16Array(12E3),e=a=0;12E3>a;)b[a++]=e,b[a++]=e+1,b[a++]=e+2,b[a++]=e,b[a++]=e+2,b[a++]=e+3,e+=4;c.bufferData(c.ELEMENT_ARRAY_BUFFER,b,
c.STATIC_DRAW);this.Al=this.ld=0;this.ab=[];a=this.ck({src:"varying mediump vec2 vTex;\nuniform lowp float opacity;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, vTex);\n\tgl_FragColor *= opacity;\n}"},"attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}","<default>");
this.ab.push(a);a=this.ck({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.ab.push(a);for(var g in fc)fc.hasOwnProperty(g)&&this.ab.push(this.ck(fc[g],
"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}",g));c.activeTexture(c.TEXTURE0);c.bindTexture(c.TEXTURE_2D,null);this.Ud=[];this.pd=0;this.Wb=!1;this.$m=this.Vg=-1;this.zg=null;this.us=c.createFramebuffer();this.Uo=null;this.we=ac([0,0,0]);this.lo=c.getParameter(c.ALIASED_POINT_SIZE_RANGE)[1];2048<this.lo&&
(this.lo=2048);this.hd(0)};l.prototype.im=function(c){var a=this.co;if(a[0]!==c[0]||a[1]!==c[1]||a[2]!==c[2]||a[3]!==c[3]||a[4]!==c[4]||a[5]!==c[5]||a[6]!==c[6]||a[7]!==c[7]||a[8]!==c[8]||a[9]!==c[9]||a[10]!==c[10]||a[11]!==c[11]||a[12]!==c[12]||a[13]!==c[13]||a[14]!==c[14]||a[15]!==c[15])cc(c,this.co),this.q.uniformMatrix4fv(this.Xi,!1,c)};g.prototype.ck=function(c,a,b){var e=this.q,g=e.createShader(e.FRAGMENT_SHADER);e.shaderSource(g,c.src);e.compileShader(g);if(!e.getShaderParameter(g,e.COMPILE_STATUS))return e.deleteShader(g),
null;var h=e.createShader(e.VERTEX_SHADER);e.shaderSource(h,a);e.compileShader(h);if(!e.getShaderParameter(h,e.COMPILE_STATUS))return e.deleteShader(g),e.deleteShader(h),null;a=e.createProgram();e.attachShader(a,g);e.attachShader(a,h);e.linkProgram(a);if(!e.getProgramParameter(a,e.LINK_STATUS))return e.deleteShader(g),e.deleteShader(h),e.deleteProgram(a),null;e.useProgram(a);e.deleteShader(g);e.deleteShader(h);b=new l(e,a,b);b.lk=c.lk||0;b.mk=c.mk||0;b.Zm=!!c.Zm;b.Pm=!!c.Pm;b.O=c.O||[];c=0;for(g=
b.O.length;c<g;c++)b.O[c][1]=e.getUniformLocation(a,b.O[c][0]),b.Vk.push(0),e.uniform1f(b.O[c][1],0);return b};g.prototype.zk=function(c){var a,b;a=0;for(b=this.ab.length;a<b;a++)if(this.ab[a].name===c)return a;return-1};g.prototype.Po=function(c,a,b){var e=this.Cc,g=this.dl,h=[0,0,0,0,0,0,0,0];h[0]=e[0]*c+e[4]*a+e[12];h[1]=e[1]*c+e[5]*a+e[13];h[2]=e[2]*c+e[6]*a+e[14];h[3]=e[3]*c+e[7]*a+e[15];h[4]=g[0]*h[0]+g[4]*h[1]+g[8]*h[2]+g[12]*h[3];h[5]=g[1]*h[0]+g[5]*h[1]+g[9]*h[2]+g[13]*h[3];h[6]=g[2]*h[0]+
g[6]*h[1]+g[10]*h[2]+g[14]*h[3];h[7]=-h[2];0!==h[7]&&(h[7]=1/h[7],h[4]*=h[7],h[5]*=h[7],h[6]*=h[7],b[0]=(.5*h[4]+.5)*this.width,b[1]=(.5*h[5]+.5)*this.height)};g.prototype.bg=function(c,a,b){if(this.width!==c||this.height!==a||b){this.Ie();this.width=c;this.height=a;this.q.viewport(0,0,c,a);a=c/a;var e=this.dl,g;g=1*Math.tan(45*Math.PI/360);a*=g;c=-a;b=-g;e||(e=bc());var h=a-c,p=g-b;e[0]=2/h;e[1]=0;e[2]=0;e[3]=0;e[4]=0;e[5]=2/p;e[6]=0;e[7]=0;e[8]=(a+c)/h;e[9]=(g+b)/p;e[10]=-1001/999;e[11]=-1;e[12]=
0;e[13]=0;e[14]=-2E3/999;e[15]=0;ec(this.Wm,this.Wn,this.Cp,this.Cc);c=[0,0];a=[0,0];this.Po(0,0,c);this.Po(1,1,a);this.qm[0]=1/(a[0]-c[0]);this.qm[1]=-1/(a[1]-c[1]);c=0;for(a=this.ab.length;c<a;c++)b=this.ab[c],b.Oe=!1,b.Un&&(this.q.useProgram(b.Ah),this.q.uniformMatrix4fv(b.Un,!1,this.dl));this.q.useProgram(this.ab[this.Vg].Ah);this.q.bindTexture(this.q.TEXTURE_2D,null);this.q.activeTexture(this.q.TEXTURE1);this.q.bindTexture(this.q.TEXTURE_2D,null);this.q.activeTexture(this.q.TEXTURE0);this.Xe=
this.We=null}};g.prototype.re=function(){ec(this.Wm,this.Wn,this.Cp,this.Cc);dc(this.Cc,this.qm)};g.prototype.translate=function(c,a){if(0!==c||0!==a){this.we[0]=c;this.we[1]=a;this.we[2]=0;var b=this.Cc,e=this.we,g=e[0],h=e[1],e=e[2];b[12]=b[0]*g+b[4]*h+b[8]*e+b[12];b[13]=b[1]*g+b[5]*h+b[9]*e+b[13];b[14]=b[2]*g+b[6]*h+b[10]*e+b[14];b[15]=b[3]*g+b[7]*h+b[11]*e+b[15]}};g.prototype.scale=function(c,a){if(1!==c||1!==a)this.we[0]=c,this.we[1]=a,this.we[2]=1,dc(this.Cc,this.we)};g.prototype.Vo=function(c){if(0!==
c){var a=this.Cc,b,e=Math.sin(c);c=Math.cos(c);var g=a[0],h=a[1],p=a[2],w=a[3],k=a[4],x=a[5],t=a[6],l=a[7];b?a!==b&&(b[8]=a[8],b[9]=a[9],b[10]=a[10],b[11]=a[11],b[12]=a[12],b[13]=a[13],b[14]=a[14],b[15]=a[15]):b=a;b[0]=g*c+k*e;b[1]=h*c+x*e;b[2]=p*c+t*e;b[3]=w*c+l*e;b[4]=g*-e+k*c;b[5]=h*-e+x*c;b[6]=p*-e+t*c;b[7]=w*-e+l*c}};g.prototype.xe=function(){for(var c=!1,a=0;16>a;a++)if(this.On[a]!==this.Cc[a]){c=!0;break}c&&(c=this.Sc(),c.type=5,c.ha?cc(this.Cc,c.ha):c.ha=bc(this.Cc),cc(this.Cc,this.On),this.Wb=
!1)};e.prototype.Jr=function(){this.q.bindTexture(this.q.TEXTURE_2D,this.Wc)};e.prototype.Kr=function(){var c=this.q;c.activeTexture(c.TEXTURE1);c.bindTexture(c.TEXTURE_2D,this.Wc);c.activeTexture(c.TEXTURE0)};e.prototype.Gr=function(){var c=this.Do,a=this.C;a.ii=c;a=a.zg;a.Rf&&a.Zi!==c&&(a.Zi=c,this.q.uniform1f(a.Rf,c))};e.prototype.Dr=function(){this.q.drawElements(this.q.TRIANGLES,this.cd,this.q.UNSIGNED_SHORT,2*this.Ec)};e.prototype.Fr=function(){this.q.blendFunc(this.Ec,this.cd)};e.prototype.Lr=
function(){var c,a,b,e=this.C.ab,g=this.C.$m;c=0;for(a=e.length;c<a;c++)b=e[c],c===g&&b.Xi?(b.im(this.ha),b.Oe=!0):b.Oe=!1;cc(this.ha,this.C.dk)};e.prototype.Er=function(){var c=this.q,a=this.C;this.Wc?(a.Xe===this.Wc&&(c.activeTexture(c.TEXTURE1),c.bindTexture(c.TEXTURE_2D,null),a.Xe=null,c.activeTexture(c.TEXTURE0)),c.bindFramebuffer(c.FRAMEBUFFER,a.us),c.framebufferTexture2D(c.FRAMEBUFFER,c.COLOR_ATTACHMENT0,c.TEXTURE_2D,this.Wc,0)):(c.framebufferTexture2D(c.FRAMEBUFFER,c.COLOR_ATTACHMENT0,c.TEXTURE_2D,
null,0),c.bindFramebuffer(c.FRAMEBUFFER,null))};e.prototype.Br=function(){var c=this.q;0===this.Ec?(c.clearColor(this.ha[0],this.ha[1],this.ha[2],this.ha[3]),c.clear(c.COLOR_BUFFER_BIT)):(c.enable(c.SCISSOR_TEST),c.scissor(this.ha[0],this.ha[1],this.ha[2],this.ha[3]),c.clearColor(0,0,0,0),c.clear(this.q.COLOR_BUFFER_BIT),c.disable(c.SCISSOR_TEST))};e.prototype.Cr=function(){var c=this.q,a=this.C,b=a.ab[1];c.useProgram(b.Ah);!b.Oe&&b.Xi&&(b.im(a.dk),b.Oe=!0);c.enableVertexAttribArray(b.Bc);c.bindBuffer(c.ARRAY_BUFFER,
a.zl);c.vertexAttribPointer(b.Bc,4,c.FLOAT,!1,0,0);c.drawArrays(c.POINTS,this.Ec/4,this.cd);b=a.zg;c.useProgram(b.Ah);0<=b.Bc&&(c.enableVertexAttribArray(b.Bc),c.bindBuffer(c.ARRAY_BUFFER,a.Mh[a.rd]),c.vertexAttribPointer(b.Bc,2,c.FLOAT,!1,0,0));0<=b.ke&&(c.enableVertexAttribArray(b.ke),c.bindBuffer(c.ARRAY_BUFFER,a.Fh[a.rd]),c.vertexAttribPointer(b.ke,2,c.FLOAT,!1,0,0))};e.prototype.Hr=function(){var c=this.q,a=this.C,b=a.ab[this.Ec];a.$m=this.Ec;a.zg=b;c.useProgram(b.Ah);!b.Oe&&b.Xi&&(b.im(a.dk),
b.Oe=!0);b.Rf&&b.Zi!==a.ii&&(b.Zi=a.ii,c.uniform1f(b.Rf,a.ii));0<=b.Bc&&(c.enableVertexAttribArray(b.Bc),c.bindBuffer(c.ARRAY_BUFFER,a.Mh[a.rd]),c.vertexAttribPointer(b.Bc,2,c.FLOAT,!1,0,0));0<=b.ke&&(c.enableVertexAttribArray(b.ke),c.bindBuffer(c.ARRAY_BUFFER,a.Fh[a.rd]),c.vertexAttribPointer(b.ke,2,c.FLOAT,!1,0,0))};e.prototype.Ir=function(){var c,a,b=this.C.zg,e=this.q;c=this.ha;b.bh&&this.C.Xe!==this.Wc&&(e.activeTexture(e.TEXTURE1),e.bindTexture(e.TEXTURE_2D,this.Wc),this.C.Xe=this.Wc,e.activeTexture(e.TEXTURE0));
var g=c[0];b.$k&&g!==b.fo&&(b.fo=g,e.uniform1f(b.$k,g));g=c[1];b.Zk&&g!==b.eo&&(b.eo=g,e.uniform1f(b.Zk,g));g=c[2];a=c[3];!b.ef||g===b.Zn&&a===b.$n||(b.Zn=g,b.$n=a,e.uniform2f(b.ef,g,a));g=c[4];a=c[5];!b.df||g===b.Xn&&a===b.Yn||(b.Xn=g,b.Yn=g,e.uniform2f(b.df,g,a));g=c[6];b.ah&&g!==b.bo&&(b.bo=g,e.uniform1f(b.ah,g));g=c[7];b.$g&&g!==b.ao&&(b.ao=g,e.uniform1f(b.$g,g));g=c[8];a=c[9];!b.eh||g===b.jo&&a===b.ko||(b.jo=g,b.ko=a,e.uniform2f(b.eh,g,a));g=c[10];a=c[11];!b.dh||g===b.ho&&a===b.io||(b.ho=g,b.io=
a,e.uniform2f(b.dh,g,a));b.al&&e.uniform1f(b.al,Wa()/1E3);if(b.O.length)for(c=0,a=b.O.length;c<a;c++)g=this.gp[c],g!==b.Vk[c]&&(b.Vk[c]=g,e.uniform1f(b.O[c][1],g))};g.prototype.Sc=function(){this.pd===this.Ud.length&&this.Ud.push(new e(0,this));return this.Ud[this.pd++]};g.prototype.Ie=function(){if(0!==this.pd&&!this.q.isContextLost()){var c=this.q;0<this.Al&&(c.bindBuffer(c.ARRAY_BUFFER,this.zl),c.bufferData(c.ARRAY_BUFFER,this.Pt.subarray(0,this.Al),c.STREAM_DRAW),a&&0<=a.Bc&&"<point>"===a.name&&
c.vertexAttribPointer(a.Bc,4,c.FLOAT,!1,0,0));if(0<this.ld){var a=this.zg;c.bindBuffer(c.ARRAY_BUFFER,this.Mh[this.rd]);c.bufferData(c.ARRAY_BUFFER,this.mm.subarray(0,this.ld),c.STREAM_DRAW);a&&0<=a.Bc&&"<point>"!==a.name&&c.vertexAttribPointer(a.Bc,2,c.FLOAT,!1,0,0);c.bindBuffer(c.ARRAY_BUFFER,this.Fh[this.rd]);c.bufferData(c.ARRAY_BUFFER,this.Wl.subarray(0,this.ld),c.STREAM_DRAW);a&&0<=a.ke&&"<point>"!==a.name&&c.vertexAttribPointer(a.ke,2,c.FLOAT,!1,0,0)}for(var b,c=0,a=this.pd;c<a;c++)switch(b=
this.Ud[c],b.type){case 1:b.Dr();break;case 2:b.Jr();break;case 3:b.Gr();break;case 4:b.Fr();break;case 5:b.Lr();break;case 6:b.Er();break;case 7:b.Br();break;case 8:b.Cr();break;case 9:b.Hr();break;case 10:b.Ir();break;case 11:b.Kr()}this.Al=this.ld=this.pd=0;this.Wb=!1;this.rd++;4<=this.rd&&(this.rd=0)}};g.prototype.$f=function(c){if(c!==this.Pn){var a=this.Sc();a.type=3;this.Pn=a.Do=c;this.Wb=!1}};g.prototype.qc=function(c){if(c!==this.We){var a=this.Sc();a.type=2;this.We=a.Wc=c;this.Wb=!1}};g.prototype.se=
function(c,a){if(c!==this.Qn||a!==this.Nn){var b=this.Sc();b.type=4;b.Ec=c;b.cd=a;this.Qn=c;this.Nn=a;this.Wb=!1}};g.prototype.Zo=function(){this.se(this.q.ONE,this.q.ONE_MINUS_SRC_ALPHA)};g.prototype.mj=function(c,a,b,e,g,h,p,w){15992<=this.ld&&this.Ie();var k=this.ld,x=this.mm,t=this.Wl;if(this.Wb)this.Ud[this.pd-1].cd+=6;else{var l=this.Sc();l.type=1;l.Ec=k/4*3;l.cd=6;this.Wb=!0}x[k]=c;t[k++]=0;x[k]=a;t[k++]=0;x[k]=b;t[k++]=1;x[k]=e;t[k++]=0;x[k]=g;t[k++]=1;x[k]=h;t[k++]=1;x[k]=p;t[k++]=0;x[k]=
w;t[k++]=1;this.ld=k};g.prototype.pe=function(c,a,b,e,g,h,p,w,k){15992<=this.ld&&this.Ie();var x=this.ld,l=this.mm,z=this.Wl;if(this.Wb)this.Ud[this.pd-1].cd+=6;else{var n=this.Sc();n.type=1;n.Ec=x/4*3;n.cd=6;this.Wb=!0}var n=k.left,r=k.top,d=k.right;k=k.bottom;l[x]=c;z[x++]=n;l[x]=a;z[x++]=r;l[x]=b;z[x++]=d;l[x]=e;z[x++]=r;l[x]=g;z[x++]=d;l[x]=h;z[x++]=k;l[x]=p;z[x++]=n;l[x]=w;z[x++]=k;this.ld=x};g.prototype.hd=function(c){if(this.Vg!==c){if(!this.ab[c]){if(0===this.Vg)return;c=0}var a=this.Sc();
a.type=9;this.Vg=a.Ec=c;this.Wb=!1}};g.prototype.qh=function(c){c=this.ab[c];return!(!c.ef&&!c.df)};g.prototype.Dl=function(c){c=this.ab[c];return!!(c.ef||c.df||c.Zm)};g.prototype.Wt=function(c){c=this.ab[c];return 0!==c.lk||0!==c.mk};g.prototype.Ks=function(c){return this.ab[c].lk};g.prototype.Ls=function(c){return this.ab[c].mk};g.prototype.Ms=function(c,a){return this.ab[c].O[a][2]};g.prototype.jj=function(c){return this.ab[c].Pm};g.prototype.ag=function(c,a,b,e,g,h,p,w,k,x,l,z,n,r){var d=this.ab[this.Vg],
m,f;if(d.et||r.length){m=this.Sc();m.type=10;m.ha?cc(this.Cc,m.ha):m.ha=bc();f=m.ha;f[0]=a;f[1]=b;f[2]=e;f[3]=g;f[4]=h;f[5]=p;f[6]=w;f[7]=k;f[8]=x;f[9]=l;f[10]=z;f[11]=n;m.Wc=d.bh?c:null;if(r.length)for(b=m.gp,b.length=r.length,c=0,a=r.length;c<a;c++)b[c]=r[c];this.Wb=!1}};g.prototype.clear=function(c,a,b,e){var g=this.Sc();g.type=7;g.Ec=0;g.ha||(g.ha=bc());g.ha[0]=c;g.ha[1]=a;g.ha[2]=b;g.ha[3]=e;this.Wb=!1};g.prototype.clearRect=function(c,a,b,e){if(!(0>b||0>e)){var g=this.Sc();g.type=7;g.Ec=1;g.ha||
(g.ha=bc());g.ha[0]=c;g.ha[1]=a;g.ha[2]=b;g.ha[3]=e;this.Wb=!1}};g.prototype.Vt=function(){this.Ie();this.q.flush()};var q=[],s={};g.prototype.rr=function(){q.length=0;s={}};g.prototype.Vi=function(c,a,b){var e;e=!1;a=!!a;var g=c.src+","+e+","+a+(e?",undefined":""),h=null;if("undefined"!==typeof c.src&&s.hasOwnProperty(g))return h=s[g],h.Vh++,h;this.Ie();var p=this.q,w=ha(c.width)&&ha(c.height),h=p.createTexture();p.bindTexture(p.TEXTURE_2D,h);p.pixelStorei(p.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var k=
p.RGBA,x=p.RGBA,l=p.UNSIGNED_BYTE;if(b&&!this.Te)switch(b){case 1:x=k=p.RGB;break;case 2:l=p.UNSIGNED_SHORT_4_4_4_4;break;case 3:l=p.UNSIGNED_SHORT_5_5_5_1;break;case 4:x=k=p.RGB,l=p.UNSIGNED_SHORT_5_6_5}if(!w&&e){b=document.createElement("canvas");b.width=ia(c.width);b.height=ia(c.height);var z=b.getContext("2d");z.webkitImageSmoothingEnabled=a;z.mozImageSmoothingEnabled=a;z.msImageSmoothingEnabled=a;z.imageSmoothingEnabled=a;z.drawImage(c,0,0,c.width,c.height,0,0,b.width,b.height);p.texImage2D(p.TEXTURE_2D,
0,k,x,l,b)}else p.texImage2D(p.TEXTURE_2D,0,k,x,l,c);e?(p.texParameteri(p.TEXTURE_2D,p.TEXTURE_WRAP_S,p.REPEAT),p.texParameteri(p.TEXTURE_2D,p.TEXTURE_WRAP_T,p.REPEAT)):(p.texParameteri(p.TEXTURE_2D,p.TEXTURE_WRAP_S,p.CLAMP_TO_EDGE),p.texParameteri(p.TEXTURE_2D,p.TEXTURE_WRAP_T,p.CLAMP_TO_EDGE));a?(p.texParameteri(p.TEXTURE_2D,p.TEXTURE_MAG_FILTER,p.LINEAR),w&&this.cn?(p.texParameteri(p.TEXTURE_2D,p.TEXTURE_MIN_FILTER,p.LINEAR_MIPMAP_LINEAR),p.generateMipmap(p.TEXTURE_2D)):p.texParameteri(p.TEXTURE_2D,
p.TEXTURE_MIN_FILTER,p.LINEAR)):(p.texParameteri(p.TEXTURE_2D,p.TEXTURE_MAG_FILTER,p.NEAREST),p.texParameteri(p.TEXTURE_2D,p.TEXTURE_MIN_FILTER,p.NEAREST));p.bindTexture(p.TEXTURE_2D,null);this.We=null;h.vg=c.width;h.ug=c.height;h.Vh=1;h.Um=g;q.push(h);return s[g]=h};g.prototype.$d=function(c,a,b){var e;this.Ie();var g=this.q;this.Te&&(e=!1);var h=g.createTexture();g.bindTexture(g.TEXTURE_2D,h);g.texImage2D(g.TEXTURE_2D,0,g.RGBA,c,a,0,g.RGBA,e?g.UNSIGNED_SHORT_4_4_4_4:g.UNSIGNED_BYTE,null);g.texParameteri(g.TEXTURE_2D,
g.TEXTURE_WRAP_S,g.CLAMP_TO_EDGE);g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,g.CLAMP_TO_EDGE);g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,b?g.LINEAR:g.NEAREST);g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,b?g.LINEAR:g.NEAREST);g.bindTexture(g.TEXTURE_2D,null);this.We=null;h.vg=c;h.ug=a;q.push(h);return h};g.prototype.deleteTexture=function(c){c&&("undefined"!==typeof c.Vh&&1<c.Vh?c.Vh--:(this.Ie(),c===this.We&&(this.q.bindTexture(this.q.TEXTURE_2D,null),this.We=null),c===this.Xe&&(this.q.activeTexture(this.q.TEXTURE1),
this.q.bindTexture(this.q.TEXTURE_2D,null),this.q.activeTexture(this.q.TEXTURE0),this.Xe=null),Ca(q,c),"undefined"!==typeof c.Um&&delete s[c.Um],this.q.deleteTexture(c)))};g.prototype.gd=function(c){if(c!==this.Uo){var a=this.Sc();a.type=6;this.Uo=a.Wc=c;this.Wb=!1}};jb=g})();
(function(){function g(){return"undefined"!==typeof jQuery?jQuery(window).width():window.innerWidth}function l(){return"undefined"!==typeof jQuery?jQuery(window).height():window.innerHeight}function e(d){if(d&&(d.getContext||d.dc)&&!d.c2runtime){d.c2runtime=this;var m=this;this.mc=(this.Pg=/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.qb=!!d.dc;this.Ef="undefined"!==typeof window.AppMobi||this.qb;this.lc=!!window.c2cocoonjs;this.yc=!!window.c2ejecta;this.lc&&(CocoonJS.App.onSuspended.addEventListener(function(){m.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){m.setSuspended(!1)}));this.yc&&(document.addEventListener("pagehide",function(){m.setSuspended(!0)}),document.addEventListener("pageshow",
function(){m.setSuspended(!1)}),document.addEventListener("resize",function(){m.setSize(window.innerWidth,window.innerHeight)}));this.ra=this.qb||this.lc||this.yc;this.Te=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent)||/edge\//i.test(navigator.userAgent);this.Jn=/tizen/i.test(navigator.userAgent);this.Fi=/android/i.test(navigator.userAgent)&&!this.Jn&&!this.Te;this.Uk=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&
!this.Te;this.Mn=/ipad/i.test(navigator.userAgent);this.Li=this.Uk||this.Mn||this.yc;this.wt=this.Uk&&/os\s6/i.test(navigator.userAgent);this.Og=(/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent))&&!this.Te;this.Nk=/amazonwebappplatform/i.test(navigator.userAgent);this.mt=/firefox/i.test(navigator.userAgent);this.In=/safari/i.test(navigator.userAgent)&&!this.Og&&!this.Te;this.pt=/windows/i.test(navigator.userAgent);this.ie="undefined"!==typeof window.c2nodewebkit||"undefined"!==
typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.Kn=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.tt=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.Gf=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.Hi=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.Sk=this.Kn||this.tt||this.Hi;this.lt=!("undefined"===typeof window.c2isBlackberry10||
!window.c2isBlackberry10);this.Gi=this.Fi&&!this.Og&&!this.Pg&&!this.mt&&!this.Nk&&!this.ra;this.devicePixelRatio=1;this.Ad=this.mc||this.Pg||this.Ef||this.lc||this.Fi||this.Li||this.Gf||this.Hi||this.lt||this.Jn||this.yc;this.Ad||(this.Ad=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));"undefined"===typeof cr_is_preview||this.ie||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||
(this.ie=!0);this.canvas=d;this.Xm=document.getElementById("c2canvasdiv");this.ma=this.C=this.q=null;this.sk="";this.ri=!1;this.wo=this.xo=0;this.canvas.oncontextmenu=function(d){d.preventDefault&&d.preventDefault();return!1};this.canvas.onselectstart=function(d){d.preventDefault&&d.preventDefault();return!1};this.qb&&(window.c2runtime=this);this.ie&&(window.ondragover=function(d){d.preventDefault();return!1},window.ondrop=function(d){d.preventDefault();return!1},require("nw.gui").App.clearCache());
this.Gi&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=d.width;this.height=d.height;this.S=this.width;this.R=this.height;this.gi=this.width;this.fi=this.height;this.Xg=window.innerWidth;this.Wg=window.innerHeight;this.ws=!1;this.pa=!0;this.Rg=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.u=[];this.Na=[];this.Yk={};this.Pc=[];this.kk={};this.vd=[];this.pg=[];this.Ej=[];this.er=[];this.fr=[];this.mp=null;this.Fe=
{};this.Ok=this.ge=!1;this.nc=0;this.Qk=!1;this.Lc=[];this.Bd=this.Fb=this.Si=this.Nl="";this.Ch=this.jp=!1;this.ak=this.fh=this.de=this.He=0;this.ig=1;this.oc=new $a;this.md=new $a;this.aj=this.si=this.Le=this.hg=this.Ze=this.rk=this.Pi=0;this.De=null;this.hk=[];this.jk=[];this.oi=-1;this.bl=[[]];this.em=this.Yi=0;this.lj(null);this.Bg=this.ro=this.jh=0;this.Dh=[];this.am=this.El=-1;this.Lf=!0;this.Qf=0;this.Qg=!1;this.ru=0;this.vf=null;this.rb=this.Df=!1;this.vo=new ba;this.ll=new ba;this.ml=new ba;
this.oj=[];this.Vc=new bb([]);this.Vl=new bb([]);this.Rd=[];this.Ci={};this.yf={};this.uf={};this.ng={};this.Rm={};this.Tn=this.Ri=this.Yb=this.pc=this.Sn=this.Qi=this.ja=null;this.lg=this.Tk=!1;this.tk=[null,null];this.Me=0;this.ok="";this.Dd={};this.vj=this.Pf=null;this.$i=[];this.cu()}}function q(d){d.target.result.createObjectStore("saves",{keyPath:"slot"})}function s(d,m,f,a){var h=indexedDB.open("_C2SaveStates");h.onupgradeneeded=q;h.onerror=a;h.onsuccess=function(h){h=h.target.result;h.onerror=
a;h.transaction(["saves"],"readwrite").objectStore("saves").put({slot:d,data:m}).onsuccess=f}}function c(d,m,f){var a=indexedDB.open("_C2SaveStates");a.onupgradeneeded=q;a.onerror=f;a.onsuccess=function(a){a=a.target.result;a.onerror=f;var h=a.transaction(["saves"]).objectStore("saves").get(d);h.onsuccess=function(){h.result?m(h.result.data):m(null)}}}function a(){N("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?window.location.reload(!0):
window.location+="?continuous"}function b(d){var m,f={};for(m in d)!d.hasOwnProperty(m)||d[m]instanceof ba||d[m]&&"undefined"!==typeof d[m].Mv||(f[m]=d[m]);return f}e.prototype.cu=function(){var d=this,m;m=this.Gf?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest;var f="data.js";if(this.Kn||this.Gf||this.Hi)f="data.json";m.open("GET",f,!0);var a=!1;if(!this.ra&&"response"in m&&"responseType"in m)try{m.responseType="json",a="json"===m.responseType}catch(h){a=!1}if(!a&&"responseType"in m)try{m.responseType=
"text"}catch(b){}if("overrideMimeType"in m)try{m.overrideMimeType("application/json; charset=utf-8")}catch(n){}this.Gf?m.onreadystatechange=function(){4===m.readyState&&d.Ui(JSON.parse(m.responseText))}:(m.onload=function(){if(a)d.Ui(m.response);else if(d.yc){var f=m.responseText,f=f.substr(f.indexOf("{"));d.Ui(JSON.parse(f))}else d.Ui(JSON.parse(m.responseText))},m.onerror=function(d){da("Error requesting "+f+":");da(d)});m.send()};e.prototype.it=function(){var d=this,m,f,a,h,b,n,c,k,p;this.devicePixelRatio=
(this.Ue=(!this.ra||this.yc)&&this.Cu&&!this.Gi)?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.yb();f=!(!this.ws&&(!this.Oj||this.ie||this.Sk||this.Gf||this.Pg||this.mc||this.Nk));0<this.Kb&&this.setSize(g(),l(),!0);try{this.Rr&&(this.lc||this.yc||!this.ra)&&(m={alpha:f,depth:!1,antialias:!1,failIfMajorPerformanceCaveat:!0},this.q=this.canvas.getContext("webgl",m)||this.canvas.getContext("experimental-webgl",m))}catch(r){}if(this.q){this.ra||
(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=this.gi,this.sb.height=this.fi,jQuery(this.sb).css({width:this.gi+"px",height:this.fi+"px"}),this.Oo(),this.yl=this.sb.getContext("2d"));this.C=new jb(this.q,this.Ad);this.C.bg(this.canvas.width,this.canvas.height);this.C.cn=0!==this.Mr;this.ma=null;this.canvas.addEventListener("webglcontextlost",function(m){m.preventDefault();
d.Ht();N("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){d.C.Cn();d.C.bg(d.C.width,d.C.height,!0);d.pc=null;d.Yb=null;d.tk[0]=null;d.tk[1]=null;d.It();d.pa=!0;N("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);m=0;for(f=this.u.length;m<f;m++)for(b=this.u[m],a=0,h=b.I.length;a<h;a++)c=b.I[a],c.ub=this.C.zk(c.id),this.lg=this.lg||this.C.qh(c.ub);m=0;for(f=this.Pc.length;m<f;m++){k=this.Pc[m];a=
0;for(h=k.I.length;a<h;a++)c=k.I[a],c.ub=this.C.zk(c.id);a=0;for(h=k.N.length;a<h;a++)for(p=k.N[a],b=0,n=p.I.length;b<n;b++)c=p.I[b],c.ub=this.C.zk(c.id),this.lg=this.lg||this.C.qh(c.ub)}}else{if(0<this.Kb&&this.qb){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.ma=AppMobi.canvas.getContext("2d");try{this.ma.samplingMode=this.ea?"smooth":"sharp",this.ma.globalScale=1,this.ma.HTML5CompatibilityMode=!0,this.ma.imageSmoothingEnabled=this.ea}catch(e){}0!==
this.width&&0!==this.height&&(this.ma.width=this.width,this.ma.height=this.height)}this.ma||(m=this.lc?{antialias:!!this.ea,alpha:f}:{alpha:f},this.ma=this.canvas.getContext("2d",m),this.ma.webkitImageSmoothingEnabled=this.ea,this.ma.mozImageSmoothingEnabled=this.ea,this.ma.msImageSmoothingEnabled=this.ea,this.ma.imageSmoothingEnabled=this.ea);this.yl=this.sb=null}this.tp=function(m){d.hb(!1,m)};window==window.top||this.ra||this.Sk||this.Gf||(document.addEventListener("mousedown",function(){window.focus()},
!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.lc&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(N("Reloading for continuous preview"),this.Si="__c2_continuouspreview",this.Ch=!0),this.Nt&&!this.Ad&&(jQuery(window).focus(function(){d.setSuspended(!1)}),jQuery(window).blur(function(){d.setSuspended(!0)})));this.ra||(m=function(d){if(ib(d)&&document.activeElement&&
document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(m){}},window.navigator.pointerEnabled?document.addEventListener("pointerdown",m):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",m):document.addEventListener("touchstart",m),document.addEventListener("mousedown",m));0===this.Kb&&this.Ue&&1<this.devicePixelRatio&&this.setSize(this.Za,this.Ya,!0);this.yp();this.bt();this.go();this.ba={}};
e.prototype.setSize=function(d,m,f){var a=0,h=0,b=0,n=0,n=0,c=this.wt&&this.In&&!navigator.standalone&&!this.ra&&!this.mc;c&&(m+=60);if(this.Xg!==d||this.Wg!==m||f){this.Xg=d;this.Wg=m;var k=this.Kb,p=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.Qg)&&!this.mc;if(p||0!==this.Kb||f)p&&0<this.Me&&(k=this.Me),f=this.devicePixelRatio,4<=k?(b=this.Za/this.Ya,d/m>b?(b*=m,5===k?(n=b*f/this.Za,1<n?n=Math.floor(n):1>n&&(n=1/Math.ceil(1/n)),
b=this.Za*n/f,n=this.Ya*n/f,a=(d-b)/2,h=(m-n)/2,d=b,m=n):(a=(d-b)/2,d=b)):(n=d/b,5===k?(n=n*f/this.Ya,1<n?n=Math.floor(n):1>n&&(n=1/Math.ceil(1/n)),b=this.Za*n/f,n=this.Ya*n/f,a=(d-b)/2,h=(m-n)/2,d=b):h=(m-n)/2,m=n),p&&!this.ie&&(h=a=0)):this.ie&&this.Qg&&0===this.kn&&(a=Math.floor((d-this.Za)/2),h=Math.floor((m-this.Ya)/2),d=this.Za,m=this.Ya),2>k&&(this.tg=f),this.Ue&&this.Mn&&1<f&&(1024<=d&&(d=1023),1024<=m&&(m=1023)),this.gi=Math.round(d),this.fi=Math.round(m),this.width=Math.round(d*f),this.height=
Math.round(m*f),this.pa=!0,this.Np?(this.S=this.width,this.R=this.height,this.xc=!0):this.width<this.Za&&this.height<this.Ya||1===k?(this.S=this.width,this.R=this.height,this.xc=!0):(this.S=this.Za,this.R=this.Ya,this.xc=!1,2===k?(b=this.Za/this.Ya,k=this.Xg/this.Wg,k<b?this.S=this.R*k:k>b&&(this.R=this.S/k)):3===k&&(b=this.Za/this.Ya,k=this.Xg/this.Wg,k>b?this.S=this.R*k:k<b&&(this.R=this.S/k))),this.Xm&&!this.ra&&(jQuery(this.Xm).css({width:Math.round(d)+"px",height:Math.round(m)+"px","margin-left":Math.floor(a)+
"px","margin-top":Math.floor(h)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(d)+"px",height:Math.round(m)+"px"})),this.canvas&&(this.canvas.width=Math.round(d*f),this.canvas.height=Math.round(m*f),this.yc?(this.canvas.style.left=Math.floor(a)+"px",this.canvas.style.top=Math.floor(h)+"px",this.canvas.style.width=Math.round(d)+"px",this.canvas.style.height=Math.round(m)+"px"):this.Ue&&!this.ra&&jQuery(this.canvas).css({width:Math.round(d)+"px",height:Math.round(m)+
"px"})),this.sb&&(this.sb.width=Math.round(d),this.sb.height=Math.round(m),jQuery(this.sb).css({width:Math.round(d)+"px",height:Math.round(m)+"px"})),this.C&&this.C.bg(Math.round(d*f),Math.round(m*f)),this.qb&&this.ma&&(this.ma.width=Math.round(d),this.ma.height=Math.round(m)),this.ma&&(this.ma.webkitImageSmoothingEnabled=this.ea,this.ma.mozImageSmoothingEnabled=this.ea,this.ma.msImageSmoothingEnabled=this.ea,this.ma.imageSmoothingEnabled=this.ea),this.yp(),this.ra||!c&&!this.Uk||window.setTimeout(function(){window.scrollTo(0,
1)},100)}};e.prototype.yp=function(){if(this.hr&&0!==this.wl){var d="portrait";2===this.wl&&(d="landscape");screen.orientation&&screen.orientation.lock?screen.orientation.lock(d):screen.lockOrientation?screen.lockOrientation(d):screen.webkitLockOrientation?screen.webkitLockOrientation(d):screen.mozLockOrientation?screen.mozLockOrientation(d):screen.msLockOrientation&&screen.msLockOrientation(d)}};e.prototype.Ht=function(){this.C.rr();this.Tk=!0;var d,m,f;d=0;for(m=this.u.length;d<m;d++)f=this.u[d],
f.pl&&f.pl()};e.prototype.It=function(){this.Tk=!1;var d,m,f;d=0;for(m=this.u.length;d<m;d++)f=this.u[d],f.tl&&f.tl()};e.prototype.Oo=function(){if(!this.ra){var d=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.Qg)&&!this.mc?jQuery(this.canvas).offset():jQuery(this.canvas).position();d.position="absolute";jQuery(this.sb).css(d)}};var u=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||
window.oCancelAnimationFrame;e.prototype.setSuspended=function(d){var m;if(d&&!this.Rg)for(N("[Construct 2] Suspending"),this.Rg=!0,-1!==this.El&&u&&u(this.El),-1!==this.am&&clearTimeout(this.am),d=0,m=this.Dh.length;d<m;d++)this.Dh[d](!0);else if(!d&&this.Rg){N("[Construct 2] Resuming");this.Rg=!1;this.Pi=Wa();this.Ze=Wa();d=this.fh=this.si=0;for(m=this.Dh.length;d<m;d++)this.Dh[d](!1);this.hb(!1)}};e.prototype.Mm=function(d){this.Dh.push(d)};e.prototype.Od=function(d){return this.$i[d]};e.prototype.Ui=
function(d){d&&d.project||da("Project model unavailable");d=d.project;this.name=d[0];this.jn=d[1];this.Kb=d[12];this.kn=d[12];this.Za=d[10];this.Ya=d[11];this.Ko=this.Za/2;this.Lo=this.Ya/2;this.ra&&!this.yc&&(4<=d[12]||0===d[12])&&(N("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.kn=this.Kb=3);this.lm=d[18];this.Zg=d[19];0===this.Zg&&(this.Pf=new Image,this.Pf.src="loading-logo.png");this.jh=d[21];this.$i=gc();this.jd=new W(this);
var m,f,a,h,b,n,c,k,p;m=0;for(f=d[2].length;m<f;m++)c=d[2][m],a=this.Od(c[0]),kb(c,a.prototype),p=new a(this),p.uj=c[1],p.je=c[2],p.qo=c[9],p.U&&p.U(),this.plugins.push(p);this.$i=gc();m=0;for(f=d[3].length;m<f;m++){c=d[3][m];b=this.Od(c[1]);p=null;a=0;for(h=this.plugins.length;a<h;a++)if(this.plugins[a]instanceof b){p=this.plugins[a];break}var r=new p.ua(p);r.name=c[0];r.J=c[2];r.Lk=c[3].slice(0);r.Eu=c[3].length;r.ir=c[4];r.ys=c[5];r.V=c[11];r.J?(r.Tf=[],r.wd=this.Bg++,r.wa=null):(r.Tf=null,r.wd=
-1,r.wa=[]);r.pi=null;r.Af=null;r.dn=null;r.Nb=!1;r.Vb=null;c[6]?(r.Xl=c[6][0],r.rp=c[6][1],r.Yl=c[6][2]):(r.Xl=null,r.rp=0,r.Yl=0);r.Ub=c[7]?c[7]:null;r.index=m;r.c=[];r.ki=[];r.ue=[new lb(r)];r.ud=0;r.vc=null;r.yr=0;r.fg=!0;r.Fj=mb;r.Ds=nb;r.Is=ob;r.T=pb;r.rh=qb;r.kj=rb;r.hf=sb;r.wi=tb;r.uk=ub;r.xk=wb;r.Jc=xb;r.sn=yb;r.bi=new cb(this.Za,this.Ya);r.Ph=!0;r.Qh=!1;r.ba={};r.toString=zb;r.Na=[];a=0;for(h=c[8].length;a<h;a++){k=c[8][a];var e=this.Od(k[1]),g=null;b=0;for(n=this.Na.length;b<n;b++)if(this.Na[b]instanceof
e){g=this.Na[b];break}g||(g=new e(this),g.jl=[],g.il=new ba,g.U&&g.U(),this.Na.push(g),hc&&g instanceof hc&&(this.mp=g));-1===g.jl.indexOf(r)&&g.jl.push(r);b=new g.ua(g,r);b.name=k[0];b.V=k[2];b.U();r.Na.push(b)}r.global=c[9];r.Pk=c[10];r.I=[];a=0;for(h=c[12].length;a<h;a++)r.I.push({id:c[12][a][0],name:c[12][a][1],ub:-1,ib:!0,index:a});r.$v=c[13];this.lm&&!r.J&&!r.Pk&&p.je||r.U();r.name&&(this.types[r.name]=r);this.u.push(r);p.uj&&(a=new p.la(r),a.uid=this.jh++,a.Ro=this.ro++,a.Qe=0,a.Hg=Ab,a.toString=
Bb,a.D=c[14],a.U(),r.c.push(a),this.Dd[a.uid.toString()]=a)}m=0;for(f=d[4].length;m<f;m++)for(b=d[4][m],n=this.u[b[0]],a=1,h=b.length;a<h;a++)c=this.u[b[a]],c.wa.push(n),n.Tf.push(c);m=0;for(f=d[27].length;m<f;m++){b=d[27][m];n=[];a=0;for(h=b.length;a<h;a++)n.push(this.u[b[a]]);a=0;for(h=n.length;a<h;a++)n[a].Nb=!0,n[a].Vb=n}if(0<this.Bg)for(m=0,f=this.u.length;m<f;m++)if(c=this.u[m],!c.J&&c.wa.length){c.pi=Array(this.Bg);c.Af=Array(this.Bg);c.dn=Array(this.Bg);r=[];a=g=e=k=0;for(h=c.wa.length;a<
h;a++)for(p=c.wa[a],c.pi[p.wd]=k,k+=p.Eu,c.Af[p.wd]=e,e+=p.ir,c.dn[p.wd]=g,g+=p.ys,b=0,n=p.I.length;b<n;b++)r.push(wa({},p.I[b]));c.I=r.concat(c.I);a=0;for(h=c.I.length;a<h;a++)c.I[a].index=a}m=0;for(f=d[5].length;m<f;m++)c=d[5][m],a=new Cb(this,c),this.Yk[a.name]=a,this.Pc.push(a);m=0;for(f=d[6].length;m<f;m++)c=d[6][m],a=new Db(this,c),this.kk[a.name]=a,this.vd.push(a);m=0;for(f=this.vd.length;m<f;m++)this.vd[m].Ja();m=0;for(f=this.vd.length;m<f;m++)this.vd[m].hm();m=0;for(f=this.Ej.length;m<f;m++)this.Ej[m].Ja();
this.Ej.length=0;this.gr=d[7];this.ok=d[8];this.oe=d[9];this.tg=1;this.Rr=d[13];this.ea=d[14];this.Oj=d[15];this.Cu=d[17];this.wl=d[20];this.hr=0<this.wl;this.Nt=d[22];this.xc=this.Np=d[23];this.Mr=d[24];this.Tt=d[25];this.wj=Date.now();this.$i.length=0;this.it()};var v=!1;e.prototype.Mp=function(d,a){d.cocoonLazyLoad=!0;d.onerror=function(a){v=d.Tm=!0;console&&console.error&&console.error("Error loading image '"+d.src+"': ",a)};this.yc?d.src=a:d.src||("undefined"!==typeof XAPKReader?XAPKReader.get(a,
function(a){d.src=a},function(f){v=d.Tm=!0;console&&console.error&&console.error("Error extracting image '"+a+"' from expansion file: ",f)}):d.src=a);this.pg.push(d)};e.prototype.vs=function(d){var a,f;a=0;for(f=this.pg.length;a<f;a++)if(this.pg[a].tr===d)return this.pg[a];return null};var h=0,p=!1;e.prototype.bt=function(){this.vf&&(h=this.vf.pu(this.gr))};e.prototype.Qm=function(){var d=h,a=0,f=0,b=!0,n,c,f=0;for(n=this.pg.length;f<n;f++){c=this.pg[f];var k=c.sr;if(!k||0>=k)k=5E4;d+=k;c.src&&(c.complete||
c.loaded)&&!c.Tm?a+=k:b=!1}b&&this.Tt&&this.vf&&(p||(this.vf.su(),p=!0),f=this.vf.Js(),a+=f,f<h&&(b=!1));this.jf=0==d?0:a/d;return b};e.prototype.go=function(){if(this.ma||this.C){var d=this.ma||this.yl;this.sb&&this.Oo();this.jf=0;this.Rn=-1;if(this.Qm())this.ct();else{var a=Date.now()-this.wj;if(d){var f=this.width,b=this.height,h=this.devicePixelRatio;this.sb&&(f=this.gi,b=this.fi,h=1);if(3!==this.Zg&&(this.lc||500<=a&&this.Rn!=this.jf)){d.clearRect(0,0,f,b);var a=f/2,b=b/2,f=0===this.Zg&&this.Pf.complete,
c=40*h,n=0,k=80*h,r;f&&(k=this.Pf.width*h,r=this.Pf.height*h,c=k/2,n=r/2,d.drawImage(this.Pf,R(a-c),R(b-n),k,r));1>=this.Zg?(a=R(a-c)+.5,b=R(b+(n+(f?12*h:0)))+.5,d.fillStyle=v?"red":"DodgerBlue",d.fillRect(a,b,Math.floor(k*this.jf),6*h),d.strokeStyle="black",d.strokeRect(a,b,k,6*h),d.strokeStyle="white",d.strokeRect(a-1*h,b-1*h,k+2*h,8*h)):2===this.Zg&&(d.font=this.yc?"12pt ArialMT":"12pt Arial",d.fillStyle=v?"#f00":"#999",d.Zv="middle",h=Math.round(100*this.jf)+"%",f=d.measureText?d.measureText(h):
null,d.fillText(h,a-(f?f.width:0)/2,b))}this.Rn=this.jf}setTimeout(function(d){return function(){d.go()}}(this),this.lc?10:100)}}};e.prototype.ct=function(){this.sb&&(this.canvas.parentNode.removeChild(this.sb),this.sb=this.yl=null);this.wj=Date.now();this.Ze=Wa();var d,a,f;if(this.lm)for(d=0,a=this.u.length;d<a;d++)f=this.u[d],f.J||f.Pk||!f.na.je||f.U();else this.Lf=!1;d=0;for(a=this.Pc.length;d<a;d++)this.Pc[d].ur();2<=this.Kb&&(d=this.Za/this.Ya,a=this.width/this.height,this.tg=2!==this.Kb&&a>
d||2===this.Kb&&a<d?this.height/this.Ya:this.width/this.Za);this.jn?this.Yk[this.jn].Tl():this.Pc[0].Tl();this.lm||(this.Qf=1,this.trigger(W.prototype.d.wm,null));navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();d=0;for(a=this.u.length;d<a;d++)f=this.u[d],f.Gt&&f.Gt();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.hb(!1);this.qb&&AppMobi.webview.execute("onGameReady();")};var w=window.requestAnimationFrame||
window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;e.prototype.hb=function(d,a,f){if(this.ja){var b=Wa();if(f||!this.Rg||d){d||(w?this.El=w(this.tp):this.am=setTimeout(this.tp,this.Ad?1:16));a=a||b;var h=this.Kb;((f=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.mc)||this.Qg)&&0<this.Me&&(h=this.Me);0<h&&(!this.Li||window.self!==window.top)&&(h=window.innerHeight,
this.Xg===window.innerWidth&&this.Wg===h||this.setSize(g(),l()));this.ra||(f?(this.ri||(this.sk=jQuery(this.canvas).css("margin")||"0",this.ri=!0),this.Og||this.ie||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.ri?(this.Og||this.ie||jQuery(this.canvas).css("margin",this.sk),this.sk="",this.ri=!1,0===this.Kb&&this.setSize(Math.round(this.xo/this.devicePixelRatio),
Math.round(this.wo/this.devicePixelRatio),!0)):(this.xo=this.width,this.wo=this.height));this.Lf&&(f=this.Qm(),this.Qf=this.jf,f&&(this.Lf=!1,this.jf=1,this.trigger(W.prototype.d.wm,null)));this.Bt(a);!this.pa&&!this.lc||this.Tk||this.Ch||d||(this.pa=!1,this.C?this.Mc():this.be(),this.vj&&(this.canvas&&this.canvas.toDataURL&&(this.canvas.toDataURL(this.vj[0],this.vj[1]),this.trigger(W.prototype.d.mq,null)),this.vj=null));this.Tv||(this.hg++,this.Le++,this.si++);this.fh+=Wa()-b}}};e.prototype.Bt=function(d){var a,
f,b,h,c,n,k,r;1E3<=d-this.Ze&&(this.Ze+=1E3,1E3<=d-this.Ze&&(this.Ze=d),this.rk=this.si,this.si=0,this.ak=this.fh,this.fh=0);0!==this.Pi&&(a=d-this.Pi,0>a&&(a=0),this.de=a/1E3,.5<this.de?this.de=0:.1<this.de&&(this.de=.1));this.Pi=d;this.He=this.de*this.ig;this.oc.add(this.He);this.md.add(this.de);d=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.Qg)&&!this.mc;2<=this.Kb||d&&0<this.Me?(a=this.Za/this.Ya,f=this.width/this.height,b=this.Kb,
d&&0<this.Me&&(b=this.Me),this.tg=2!==b&&f>a||2===b&&f<a?this.height/this.Ya:this.width/this.Za,this.ja&&(this.ja.Xo(this.ja.scrollX),this.ja.Yo(this.ja.scrollY))):this.tg=this.Ue?this.devicePixelRatio:1;this.yb();this.nc++;this.jd.gu();this.nc--;this.yb();this.nc++;f=this.vo.ye();d=0;for(a=f.length;d<a;d++)f[d].Vv();d=0;for(a=this.u.length;d<a;d++)if(n=this.u[d],!n.J&&(n.Na.length||n.wa.length))for(f=0,b=n.c.length;f<b;f++)for(k=n.c[f],h=0,c=k.M.length;h<c;h++)k.M[h].hb();d=0;for(a=this.u.length;d<
a;d++)if(n=this.u[d],!n.J&&(n.Na.length||n.wa.length))for(f=0,b=n.c.length;f<b;f++)for(k=n.c[f],h=0,c=k.M.length;h<c;h++)r=k.M[h],r.St&&r.St();f=this.ll.ye();d=0;for(a=f.length;d<a;d++)f[d].hb();this.nc--;this.dt();for(d=0;this.De&&10>d++;)this.bn(this.De);d=0;for(a=this.vd.length;d<a;d++)this.vd[d].Fk=!1;this.ja.Je&&this.ja.Je.Ra();this.oj.length=0;this.nc++;d=0;for(a=this.u.length;d<a;d++)if(n=this.u[d],!n.J&&(n.Na.length||n.wa.length))for(f=0,b=n.c.length;f<b;f++)for(k=n.c[f],h=0,c=k.M.length;h<
c;h++)r=k.M[h],r.Zl&&r.Zl();f=this.ml.ye();d=0;for(a=f.length;d<a;d++)f[d].Zl();this.nc--};e.prototype.bn=function(d){var a=this.ja;this.ja.tu();var f,b,h,n,c,k,r;if(this.C)for(f=0,b=this.u.length;f<b;f++)c=this.u[f],c.J||!c.gm||c.global&&0!==c.c.length||-1!==d.Mg.indexOf(c)||c.gm();a==d&&(this.jd.Tb.length=0);d.Tl();f=0;for(b=this.u.length;f<b;f++)if(c=this.u[f],c.global||c.na.uj)for(d=0,a=c.c.length;d<a;d++)if(k=c.c[d],k.ol&&k.ol(),k.M)for(h=0,n=k.M.length;h<n;h++)r=k.M[h],r.ol&&r.ol();this.pa=
!0;this.yb()};e.prototype.$l=function(d){this.ll.add(d)};e.prototype.vu=function(d){this.ml.add(d)};e.prototype.xi=function(d){return d&&-1!==d.ih?this.de*d.ih:this.He};e.prototype.be=function(){this.ja.be(this.ma);this.qb&&this.ma.present()};e.prototype.Mc=function(){this.ja.Mc(this.C);this.C.Vt()};e.prototype.Km=function(d){d&&this.hk.push(d)};e.prototype.Ai=function(d){d=d.toString();return this.Dd.hasOwnProperty(d)?this.Dd[d]:null};var k=[];e.prototype.ze=function(d){var a,f;a=d.type.name;var b=
null;if(this.Fe.hasOwnProperty(a)){if(b=this.Fe[a],b.contains(d))return}else b=k.length?k.pop():new ba,this.Fe[a]=b;b.add(d);this.ge=!0;if(d.Nb)for(a=0,f=d.siblings.length;a<f;a++)this.ze(d.siblings[a]);this.Ok&&b.mg.push(d);this.nc++;this.trigger(Object.getPrototypeOf(d.type.na).d.oq,d);this.nc--};e.prototype.yb=function(){if(this.ge){var d,a,f,b,h,c;this.Ok=!0;f=0;for(h=this.Lc.length;f<h;++f)for(d=this.Lc[f],a=d.type,a.c.push(d),b=0,c=a.wa.length;b<c;++b)a.wa[b].c.push(d),a.wa[b].fg=!0;this.Lc.length=
0;this.fq();Va(this.Fe);this.ge=this.Ok=!1}};e.prototype.fq=function(){for(var d in this.Fe)this.Fe.hasOwnProperty(d)&&this.Sp(this.Fe[d])};e.prototype.Sp=function(d){var a=d.ye(),f=a[0].type,b,h,c,n,r,p;Xa(f.c,d);f.fg=!0;0===f.c.length&&(f.Qh=!1);b=0;for(h=f.wa.length;b<h;++b)p=f.wa[b],Xa(p.c,d),p.fg=!0;b=0;for(h=this.jd.Tb.length;b<h;++b)if(r=this.jd.Tb[b],r.Gb.hasOwnProperty(f.index)&&Xa(r.Gb[f.index].yd,d),!f.J)for(c=0,n=f.wa.length;c<n;++c)p=f.wa[c],r.Gb.hasOwnProperty(p.index)&&Xa(r.Gb[p.index].yd,
d);if(r=a[0].n){if(r.Xc)for(c=r.c,b=0,h=c.length;b<h;++b)n=c[b],d.contains(n)&&(n.ta(),r.$b.update(n,n.Rb,null),n.Rb.set(0,0,-1,-1));Xa(r.c,d);r.xh(0)}for(b=0;b<a.length;++b)this.Rp(a[b],f);d.clear();k.push(d);this.pa=!0};e.prototype.Rp=function(d,a){var f,b,h;f=0;for(b=this.hk.length;f<b;++f)this.hk[f](d);d.Zd&&a.bi.update(d,d.Zd,null);(f=d.n)&&f.Yf(d,!0);if(d.M)for(f=0,b=d.M.length;f<b;++f)h=d.M[f],h.bj&&h.bj(),h.behavior.il.remove(d);this.vo.remove(d);this.ll.remove(d);this.ml.remove(d);d.bj&&
d.bj();this.Dd.hasOwnProperty(d.uid.toString())&&delete this.Dd[d.uid.toString()];this.aj--;100>a.ki.length&&a.ki.push(d)};e.prototype.bk=function(d,a,f,b){if(d.J){var h=R(Math.random()*d.Tf.length);return this.bk(d.Tf[h],a,f,b)}return d.vc?this.ae(d.vc,a,!1,f,b,!1):null};var x=[];e.prototype.ae=function(d,a,f,b,h,c){var n,k,r,p;if(!d)return null;var e=this.u[d[1]],g=e.na.je;if(this.Lf&&g&&!e.Pk||g&&!this.C&&11===d[0][11])return null;var w=a;g||(a=null);var l;e.ki.length?(l=e.ki.pop(),l.Tc=!0,e.na.la.call(l,
e)):(l=new e.na.la(e),l.Tc=!1);l.uid=!f||c||this.Dd.hasOwnProperty(d[2].toString())?this.jh++:d[2];this.Dd[l.uid.toString()]=l;l.Ro=this.ro++;l.Qe=e.c.length;n=0;for(k=this.Lc.length;n<k;++n)this.Lc[n].type===e&&l.Qe++;l.Hg=Ab;l.toString=Bb;r=d[3];if(l.Tc)Va(l.ba);else{l.ba={};if("undefined"!==typeof cr_is_preview)for(l.Fn=[],l.Fn.length=r.length,n=0,k=r.length;n<k;n++)l.Fn[n]=r[n][1];l.Va=[];l.Va.length=r.length}n=0;for(k=r.length;n<k;n++)l.Va[n]=r[n][0];if(g){var t=d[0];l.x=ea(b)?t[0]:b;l.y=ea(h)?
t[1]:h;l.z=t[2];l.width=t[3];l.height=t[4];l.depth=t[5];l.j=t[6];l.opacity=t[7];l.Lb=t[8];l.Mb=t[9];l.Ib=t[10];n=t[11];!this.C&&e.I.length&&(l.Ib=n);l.wg=eb(l.Ib);this.q&&fb(l,l.Ib,this.q);if(l.Tc){n=0;for(k=t[12].length;n<k;n++)for(r=0,p=t[12][n].length;r<p;r++)l.Da[n][r]=t[12][n][r];l.Ga.set(0,0,0,0);l.Zd.set(0,0,-1,-1);l.Rb.set(0,0,-1,-1);l.hc.yh(l.Ga);l.Sj.length=0}else{l.Da=t[12].slice(0);n=0;for(k=l.Da.length;n<k;n++)l.Da[n]=t[12][n].slice(0);l.aa=[];l.Pd=[];l.Pd.length=e.I.length;l.Ga=new ta(0,
0,0,0);l.Zd=new ta(0,0,-1,-1);l.Rb=new ta(0,0,-1,-1);l.hc=new ua;l.Sj=[];l.L=Eb;l.Lv=Fb;l.Cb=Gb;l.ta=Hb;l.Bu=Ib;l.Hp=Jb;l.bd=Kb}l.Hh=!1;l.yu=0;l.xu=0;l.wu=null;14===t.length&&(l.Hh=!0,l.yu=t[13][0],l.xu=t[13][1],l.wu=t[13][2]);n=0;for(k=e.I.length;n<k;n++)l.Pd[n]=!0;l.Ld=Lb;l.Ld();l.Ip=!!l.aa.length;l.Rj=!0;l.Vj=!0;e.Ph=!0;l.visible=!0;l.ih=-1;l.n=a;l.Yc=a.c.length;"undefined"===typeof l.da&&(l.da=null);this.pa=l.qd=!0}var z;n=x.length=0;for(k=e.wa.length;n<k;n++)x.push.apply(x,e.wa[n].Na);x.push.apply(x,
e.Na);if(l.Tc)for(n=0,k=x.length;n<k;n++){var q=x[n];z=l.M[n];z.Tc=!0;q.behavior.la.call(z,q,l);t=d[4][n];r=0;for(p=t.length;r<p;r++)z.D[r]=t[r];z.U();q.behavior.il.add(l)}else for(l.M=[],n=0,k=x.length;n<k;n++)q=x[n],z=new q.behavior.la(q,l),z.Tc=!1,z.D=d[4][n].slice(0),z.U(),l.M.push(z),q.behavior.il.add(l);t=d[5];if(l.Tc)for(n=0,k=t.length;n<k;n++)l.D[n]=t[n];else l.D=t.slice(0);this.Lc.push(l);this.ge=!0;a&&(a.sg(l,!0),1!==a.Pb||1!==a.Qb)&&(e.Qh=!0);this.aj++;if(e.Nb){if(l.Nb=!0,l.Tc?l.siblings.length=
0:l.siblings=[],!f&&!c){n=0;for(k=e.Vb.length;n<k;n++)if(e.Vb[n]!==e){if(!e.Vb[n].vc)return null;l.siblings.push(this.ae(e.Vb[n].vc,w,!1,g?l.x:b,g?l.y:h,!0))}n=0;for(k=l.siblings.length;n<k;n++)for(l.siblings[n].siblings.push(l),r=0;r<k;r++)n!==r&&l.siblings[n].siblings.push(l.siblings[r])}}else l.Nb=!1,l.siblings=null;l.U();n=0;for(k=l.M.length;n<k;n++)l.M[n].Rt&&l.M[n].Rt();return l};e.prototype.Eg=function(d){var a,f;a=0;for(f=this.ja.N.length;a<f;a++){var b=this.ja.N[a];if(hb(b.name,d))return b}return null};
e.prototype.xd=function(d){d=R(d);0>d&&(d=0);d>=this.ja.N.length&&(d=this.ja.N.length-1);return this.ja.N[d]};e.prototype.Zj=function(d){var a,f;a=0;for(f=d.length;a<f;a++)d[a].T().ca=!0};e.prototype.rh=function(d){var a,f;a=0;for(f=d.length;a<f;a++)d[a].rh()};e.prototype.kj=function(d){var a,f;a=0;for(f=d.length;a<f;a++)d[a].kj()};e.prototype.hf=function(d){var a,f;a=0;for(f=d.length;a<f;a++)d[a].hf()};e.prototype.Ep=function(d){if(d.Ph){var a,f,b=d.c;a=0;for(f=b.length;a<f;++a)b[a].Hp();b=this.Lc;
a=0;for(f=b.length;a<f;++a)b[a].type===d&&b[a].Hp();d.Ph=!1}};e.prototype.nn=function(d,a,f,b){var h,n,c=d?1!==d.Pb||1!==d.Qb:!1;if(a.J)for(d=0,h=a.Tf.length;d<h;++d)n=a.Tf[d],c||n.Qh?Aa(b,n.c):(this.Ep(n),n.bi.nj(f,b));else c||a.Qh?Aa(b,a.c):(this.Ep(a),a.bi.nj(f,b))};e.prototype.Os=function(d,a,f,b){var h,n;h=0;for(n=a.length;h<n;++h)this.nn(d,a[h],f,b)};e.prototype.Ns=function(d,a,f){var b=this.mp;b&&this.Os(d,b.jl,a,f)};e.prototype.Eh=function(d,a,f){var b=d.T(),h,n,c,k,r,p;if(b.ca)for(b.ca=!1,
h=b.c.length=0,k=d.c.length;h<k;h++)c=d.c[h],c.ta(),r=c.n.nb(a,f,!0),p=c.n.nb(a,f,!1),c.Cb(r,p)&&b.c.push(c);else{h=n=0;for(k=b.c.length;h<k;h++)c=b.c[h],c.ta(),r=c.n.nb(a,f,!0),p=c.n.nb(a,f,!1),c.Cb(r,p)&&(b.c[n]=b.c[h],n++);b.c.length=n}d.Jc();return b.Ek()};e.prototype.mf=function(d,a){if(!(d&&a&&d!==a&&d.qd&&a.qd))return!1;d.ta();a.ta();var f=d.n,b=a.n,h,n,c,k,r,p,e,g;if(f===b||f.Pb===b.Pb&&b.Qb===b.Qb&&f.scale===b.scale&&f.j===b.j&&f.Bb===b.Bb){if(!d.Ga.jt(a.Ga)||!d.hc.Gn(a.hc)||d.Hh&&a.Hh)return!1;
if(d.Hh)return this.qp(d,a);if(a.Hh)return this.qp(a,d);e=d.da&&!d.da.Hf();h=a.da&&!a.da.Hf();if(!e&&!h)return!0;e?(d.da.wf(d.width,d.height,d.j),e=d.da):(this.Vc.dg(d.hc,d.x,d.y,d.width,d.height),e=this.Vc);h?(a.da.wf(a.width,a.height,a.j),g=a.da):(this.Vc.dg(a.hc,a.x,a.y,a.width,a.height),g=this.Vc);return e.Ng(g,a.x-d.x,a.y-d.y)}e=d.da&&!d.da.Hf();h=a.da&&!a.da.Hf();e?(d.da.wf(d.width,d.height,d.j),this.Vc.ep(d.da)):this.Vc.dg(d.hc,d.x,d.y,d.width,d.height);e=this.Vc;h?(a.da.wf(a.width,a.height,
a.j),this.Vl.ep(a.da)):this.Vl.dg(a.hc,a.x,a.y,a.width,a.height);g=this.Vl;h=0;for(n=e.Rc;h<n;h++)c=2*h,k=c+1,r=e.$a[c],p=e.$a[k],e.$a[c]=f.Db(r+d.x,p+d.y,!0),e.$a[k]=f.Db(r+d.x,p+d.y,!1);e.ta();h=0;for(n=g.Rc;h<n;h++)c=2*h,k=c+1,r=g.$a[c],p=g.$a[k],g.$a[c]=b.Db(r+a.x,p+a.y,!0),g.$a[k]=b.Db(r+a.x,p+a.y,!1);g.ta();return e.Ng(g,0,0)};var t=new ua;new ta(0,0,0,0);var z=[];e.prototype.qp=function(d,a){var f,b,h,n,c=a.Ga,k=d.x,r=d.y;d.Pv(c,z);var p=a.da&&!a.da.Hf();f=0;for(b=z.length;f<b;++f)if(h=z[f],
n=h.Wv,c.kt(n,k,r)&&(t.yh(n),t.offset(k,r),t.Gn(a.hc)))if(p)if(a.da.wf(a.width,a.height,a.j),h.Bl){if(h.Bl.Ng(a.da,a.x-(k+n.left),a.y-(r+n.top)))return z.length=0,!0}else{if(this.Vc.dg(t,0,0,n.right-n.left,n.bottom-n.top),this.Vc.Ng(a.da,a.x,a.y))return z.length=0,!0}else if(h.Bl){if(this.Vc.dg(a.hc,0,0,a.width,a.height),h.Bl.Ng(this.Vc,-(k+n.left),-(r+n.top)))return z.length=0,!0}else return z.length=0,!0;z.length=0;return!1};e.prototype.zp=function(d,a){if(!a)return!1;var f,b,h,n,c;f=0;for(b=d.Na.length;f<
b;f++)if(d.Na[f].behavior instanceof a)return!0;if(!d.J)for(f=0,b=d.wa.length;f<b;f++)for(c=d.wa[f],h=0,n=c.Na.length;h<n;h++)if(c.Na[h].behavior instanceof a)return!0;return!1};e.prototype.Ap=function(d){return this.zp(d,Zb.cv)};e.prototype.fm=function(d){return this.zp(d,Zb.dv)};var n=[];e.prototype.nf=function(d){var a,f,b;d.ta();this.Ns(d.n,d.Ga,n);a=0;for(f=n.length;a<f;++a)if(b=n[a],b.ba.solidEnabled&&this.mf(d,b))return n.length=0,b;n.length=0;return null};e.prototype.Zt=function(d,a,f,b){b=
b||50;var h=d.x,n=d.y,c,k=null,r=null;for(c=0;c<b;c++)if(d.x=h+a*c,d.y=n+f*c,d.L(),!this.mf(d,k)&&((k=this.nf(d))&&(r=k),!k&&!k))return r&&this.Xt(d,a,f,r),!0;d.x=h;d.y=n;d.L();return!1};e.prototype.Xt=function(d,a,f,b){var h=2,n,c=!1;n=!1;for(var k=d.x,r=d.y;16>=h;)n=1/h,h*=2,d.x+=a*n*(c?1:-1),d.y+=f*n*(c?1:-1),d.L(),this.mf(d,b)?n=c=!0:(n=c=!1,k=d.x,r=d.y);n&&(d.x=k,d.y=r,d.L())};e.prototype.$t=function(d){var a=0,f=d.x,b=d.y,h=0,n=0,c=0,k=this.nf(d);if(k){for(;100>=a;){switch(h){case 0:n=0;c=-1;
a++;break;case 1:n=1;c=-1;break;case 2:n=1;c=0;break;case 3:c=n=1;break;case 4:n=0;c=1;break;case 5:n=-1;c=1;break;case 6:n=-1;c=0;break;case 7:c=n=-1}h=(h+1)%8;d.x=R(f+n*a);d.y=R(b+c*a);d.L();if(!this.mf(d,k)&&(k=this.nf(d),!k))return}d.x=f;d.y=b;d.L()}};e.prototype.bu=function(d,a){d.qd&&a.qd&&this.oj.push([d,a])};e.prototype.pr=function(d,a){var f,b,h;f=0;for(b=this.oj.length;f<b;f++)if(h=this.oj[f],h[0]==d&&h[1]==a||h[0]==a&&h[1]==d)return!0;return!1};e.prototype.mr=function(d,a,f){var b=d.x,
h=d.y,n=la(10,Oa(a,f,b,h)),c=Ia(a,f,b,h),k=this.nf(d);if(!k)return Fa(c+na);var r=k,p,e,g,l,x=U(5);for(p=1;36>p;p++)if(e=c-p*x,d.x=a+Math.cos(e)*n,d.y=f+Math.sin(e)*n,d.L(),!this.mf(d,r)&&(r=this.nf(d),!r)){g=e;break}36===p&&(g=Fa(c+na));r=k;for(p=1;36>p;p++)if(e=c+p*x,d.x=a+Math.cos(e)*n,d.y=f+Math.sin(e)*n,d.L(),!this.mf(d,r)&&(r=this.nf(d),!r)){l=e;break}36===p&&(l=Fa(c+na));d.x=b;d.y=h;d.L();if(l===g)return l;d=Ka(l,g)/2;d=Ma(l,g)?Fa(g+d+na):Fa(l+d);g=Math.cos(c);c=Math.sin(c);l=Math.cos(d);d=
Math.sin(d);a=g*l+c*d;return Ia(0,0,g-2*a*l,c-2*a*d)};var r=-1;e.prototype.trigger=function(d,a,f){if(!this.ja)return!1;var b=this.ja.Je;if(!b)return!1;var h=!1,n,c,k;r++;var p=b.fk;c=0;for(k=p.length;c<k;++c)n=this.wp(d,a,p[c],f),h=h||n;n=this.wp(d,a,b,f);r--;return h||n};e.prototype.wp=function(d,a,f,b){var h=!1,n,c,k,r;if(a)for(k=this.dm(d,a,a.type.name,f,b),h=h||k,r=a.type.wa,n=0,c=r.length;n<c;++n)k=this.dm(d,a,r[n].name,f,b),h=h||k;else k=this.dm(d,a,"system",f,b),h=h||k;return h};e.prototype.dm=
function(d,a,f,b,h){var n,c=!1,k=!1,k="undefined"!==typeof h,r=(k?b.gn:b.xp)[f];if(!r)return c;var p=null;b=0;for(n=r.length;b<n;++b)if(r[b].method==d){p=r[b].Ag;break}if(!p)return c;d=k?p[h]:p;if(!d)return null;b=0;for(n=d.length;b<n;b++)h=d[b][0],k=d[b][1],k=this.ts(a,f,h,k),c=c||k;return c};e.prototype.ts=function(d,a,f,b){var h,n,c=!1;this.em++;var k=this.pb().Jb;k&&this.rh(k.te);var p=1<this.em;this.rh(f.te);p&&this.Yt();var e=this.lj(f);e.Jb=f;d&&(h=this.types[a].T(),h.ca=!1,h.c.length=1,h.c[0]=
d,this.types[a].Jc());d=!0;if(f.parent){a=e.pp;for(h=f.parent;h;)a.push(h),h=h.parent;a.reverse();h=0;for(n=a.length;h<n;h++)if(!a[h].iu()){d=!1;break}}d&&(this.Le++,f.Qc?f.hu(b):f.Ra(),c=c||e.Ye);this.gj();p&&this.Qt();this.hf(f.te);k&&this.hf(k.te);this.ge&&0===this.nc&&0===r&&!this.Qk&&this.yb();this.em--;return c};e.prototype.pn=function(){var d=this.pb();return d.Jb.bb[d.Sa]};e.prototype.Cs=function(){var d=this.pb();return d.Jb.rc[d.Hb]};e.prototype.Yt=function(){this.Yi++;this.Yi>=this.bl.length&&
this.bl.push([])};e.prototype.Qt=function(){this.Yi--};e.prototype.qn=function(){return this.bl[this.Yi]};e.prototype.lj=function(d){this.oi++;this.oi>=this.jk.length&&this.jk.push(new Mb);var a=this.pb();a.reset(d);return a};e.prototype.gj=function(){this.oi--};e.prototype.pb=function(){return this.jk[this.oi]};e.prototype.rn=function(d,a){for(var f,b,h,n,c,k;a;){f=0;for(b=a.Fc.length;f<b;f++)if(k=a.Fc[f],k instanceof Nb&&hb(d,k.name))return k;a=a.parent}f=0;for(b=this.vd.length;f<b;f++)for(c=this.vd[f],
h=0,n=c.ee.length;h<n;h++)if(k=c.ee[h],k instanceof Nb&&hb(d,k.name))return k;return null};e.prototype.tn=function(d){var a,f;a=0;for(f=this.Pc.length;a<f;a++)if(this.Pc[a].V===d)return this.Pc[a];return null};e.prototype.Bi=function(d){var a,f;a=0;for(f=this.u.length;a<f;a++)if(this.u[a].V===d)return this.u[a];return null};e.prototype.Es=function(d){var a,f;a=0;for(f=this.Rd.length;a<f;a++)if(this.Rd[a].V===d)return this.Rd[a];return null};e.prototype.dt=function(){var d=this,b=this.Nl,f=this.Bd,
h=this.Si,n=!1;this.jp&&(n=!0,b="__c2_continuouspreview",this.jp=!1);if(b.length){this.yb();f=this.mu();if(window.indexedDB&&!this.lc)s(b,f,function(){N("Saved state to IndexedDB storage ("+f.length+" bytes)");d.Bd=f;d.trigger(W.prototype.d.Lj,null);d.Bd="";n&&a()},function(h){try{localStorage.setItem("__c2save_"+b,f),N("Saved state to WebStorage ("+f.length+" bytes)"),d.Bd=f,d.trigger(W.prototype.d.Lj,null),d.Bd="",n&&a()}catch(c){N("Failed to save game state: "+h+"; "+c)}});else try{localStorage.setItem("__c2save_"+
b,f),N("Saved state to WebStorage ("+f.length+" bytes)"),d.Bd=f,this.trigger(W.prototype.d.Lj,null),d.Bd="",n&&a()}catch(k){N("Error saving to WebStorage: "+k)}this.Fb=this.Si=this.Nl=""}h.length&&(window.indexedDB&&!this.lc?c(h,function(a){a?(d.Fb=a,N("Loaded state from IndexedDB storage ("+d.Fb.length+" bytes)")):(d.Fb=localStorage.getItem("__c2save_"+h)||"",N("Loaded state from WebStorage ("+d.Fb.length+" bytes)"));d.Ch=!1;d.Fb.length||d.trigger(W.prototype.d.Kj,null)},function(){d.Fb=localStorage.getItem("__c2save_"+
h)||"";N("Loaded state from WebStorage ("+d.Fb.length+" bytes)");d.Ch=!1;d.Fb.length||d.trigger(W.prototype.d.Kj,null)}):(this.Fb=localStorage.getItem("__c2save_"+h)||"",N("Loaded state from WebStorage ("+this.Fb.length+" bytes)"),this.Ch=!1,d.Fb.length||d.trigger(W.prototype.d.Kj,null)),this.Nl=this.Si="");this.Fb.length&&(this.yb(),this.zt(this.Fb),this.Bd=this.Fb,this.trigger(W.prototype.d.uq,null),this.Fb=this.Bd="")};e.prototype.mu=function(){var d,a,f,h,n,c,k,r={c2save:!0,version:1,rt:{time:this.oc.fa,
walltime:this.md.fa,timescale:this.ig,tickcount:this.hg,execcount:this.Le,next_uid:this.jh,running_layout:this.ja.V,start_time_offset:Date.now()-this.wj},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};d=0;for(a=this.u.length;d<a;d++)if(n=this.u[d],!n.J&&!this.Ap(n)){c={instances:[]};Qa(n.ba)&&(c.ex=b(n.ba));f=0;for(h=n.c.length;f<h;f++)c.instances.push(this.Ml(n.c[f]));r.types[n.V.toString()]=c}d=0;for(a=this.Pc.length;d<a;d++)f=this.Pc[d],r.layouts[f.V.toString()]=f.ac();h=r.events.groups;
d=0;for(a=this.Rd.length;d<a;d++)f=this.Rd[d],h[f.V.toString()]=this.Ci[f.Jg].Ig;a=r.events.cnds;for(k in this.yf)this.yf.hasOwnProperty(k)&&(d=this.yf[k],Qa(d.ba)&&(a[k]={ex:b(d.ba)}));a=r.events.acts;for(k in this.uf)this.uf.hasOwnProperty(k)&&(d=this.uf[k],Qa(d.ba)&&(a[k]={ex:d.ba}));a=r.events.vars;for(k in this.ng)this.ng.hasOwnProperty(k)&&(d=this.ng[k],d.Ii||d.parent&&!d.Tg||(a[k]=d.data));r.system=this.jd.ac();return JSON.stringify(r)};e.prototype.To=function(){var d,a,f,b,h,n;this.Dd={};
d=0;for(a=this.u.length;d<a;d++)if(f=this.u[d],!f.J)for(b=0,h=f.c.length;b<h;b++)n=f.c[b],this.Dd[n.uid.toString()]=n};e.prototype.zt=function(d){d=JSON.parse(d);if(d.c2save&&!(1<d.version)){var a=d.rt;this.oc.reset();this.oc.fa=a.time;this.md.reset();this.md.fa=a.walltime||0;this.ig=a.timescale;this.hg=a.tickcount;this.Le=a.execcount;this.wj=Date.now()-a.start_time_offset;var f=a.running_layout;if(f!==this.ja.V)if(f=this.tn(f))this.bn(f);else return;var b,h,n,c,k,r,p;r=d.types;for(h in r)if(r.hasOwnProperty(h)&&
(c=this.Bi(parseInt(h,10)))&&!c.J&&!this.Ap(c)){r[h].ex?c.ba=r[h].ex:Va(c.ba);k=c.c;n=r[h].instances;f=0;for(b=ma(k.length,n.length);f<b;f++)this.Ti(k[f],n[f]);f=n.length;for(b=k.length;f<b;f++)this.ze(k[f]);f=k.length;for(b=n.length;f<b;f++){k=null;if(c.na.je&&(k=this.ja.yi(n[f].w.l),!k))continue;k=this.ae(c.vc,k,!1,0,0,!0);this.Ti(k,n[f])}c.fg=!0}this.yb();this.To();b=d.layouts;for(h in b)b.hasOwnProperty(h)&&(f=this.tn(parseInt(h,10)))&&f.Ac(b[h]);b=d.events.groups;for(h in b)b.hasOwnProperty(h)&&
(f=this.Es(parseInt(h,10)))&&this.Ci[f.Jg]&&this.Ci[f.Jg].$o(b[h]);f=d.events.cnds;for(h in f)f.hasOwnProperty(h)&&this.yf.hasOwnProperty(h)&&(this.yf[h].ba=f[h].ex);f=d.events.acts;for(h in f)f.hasOwnProperty(h)&&this.uf.hasOwnProperty(h)&&(this.uf[h].ba=f[h].ex);f=d.events.vars;for(h in f)f.hasOwnProperty(h)&&this.ng.hasOwnProperty(h)&&(this.ng[h].data=f[h]);this.jh=a.next_uid;this.jd.Ac(d.system);f=0;for(b=this.u.length;f<b;f++)if(c=this.u[f],!c.J)for(h=0,d=c.c.length;h<d;h++){k=c.c[h];if(c.Nb)for(r=
k.Hg(),a=k.siblings.length=0,n=c.Vb.length;a<n;a++)p=c.Vb[a],c!==p&&k.siblings.push(p.c[r]);k.Qd&&k.Qd();if(k.M)for(a=0,n=k.M.length;a<n;a++)r=k.M[a],r.Qd&&r.Qd()}this.pa=!0}};e.prototype.Ml=function(d,a){var h,n,c,k,r;k=d.type;c=k.na;var p={};a?p.c2=!0:p.uid=d.uid;Qa(d.ba)&&(p.ex=b(d.ba));if(d.Va&&d.Va.length)for(p.ivs={},h=0,n=d.Va.length;h<n;h++)p.ivs[d.type.Lk[h].toString()]=d.Va[h];if(c.je){c={x:d.x,y:d.y,w:d.width,h:d.height,l:d.n.V,zi:d.bd()};0!==d.j&&(c.a=d.j);1!==d.opacity&&(c.o=d.opacity);
.5!==d.Lb&&(c.hX=d.Lb);.5!==d.Mb&&(c.hY=d.Mb);0!==d.Ib&&(c.bm=d.Ib);d.visible||(c.v=d.visible);d.qd||(c.ce=d.qd);-1!==d.ih&&(c.mts=d.ih);if(k.I.length)for(c.fx=[],h=0,n=k.I.length;h<n;h++)r=k.I[h],c.fx.push({name:r.name,active:d.Pd[r.index],params:d.Da[r.index]});p.w=c}if(d.M&&d.M.length)for(p.behs={},h=0,n=d.M.length;h<n;h++)k=d.M[h],k.ac&&(p.behs[k.type.V.toString()]=k.ac());d.ac&&(p.data=d.ac());return p};e.prototype.Gs=function(d,a){var h,b;h=0;for(b=d.Lk.length;h<b;h++)if(d.Lk[h]===a)return h;
return-1};e.prototype.Bs=function(d,a){var h,b;h=0;for(b=d.M.length;h<b;h++)if(d.M[h].type.V===a)return h;return-1};e.prototype.Ti=function(d,a,h){var b,n,c,k,r;r=d.type;c=r.na;if(h){if(!a.c2)return}else d.uid=a.uid;a.ex?d.ba=a.ex:Va(d.ba);if(n=a.ivs)for(b in n)n.hasOwnProperty(b)&&(h=this.Gs(r,parseInt(b,10)),0>h||h>=d.Va.length||(d.Va[h]=n[b]));if(c.je){c=a.w;d.n.V!==c.l&&(h=d.n,d.n=this.ja.yi(c.l),d.n?(h.Yf(d,!0),d.n.sg(d,!0),d.L(),d.n.xh(0)):(d.n=h,this.ze(d)));d.x=c.x;d.y=c.y;d.width=c.w;d.height=
c.h;d.Yc=c.zi;d.j=c.hasOwnProperty("a")?c.a:0;d.opacity=c.hasOwnProperty("o")?c.o:1;d.Lb=c.hasOwnProperty("hX")?c.hX:.5;d.Mb=c.hasOwnProperty("hY")?c.hY:.5;d.visible=c.hasOwnProperty("v")?c.v:!0;d.qd=c.hasOwnProperty("ce")?c.ce:!0;d.ih=c.hasOwnProperty("mts")?c.mts:-1;d.Ib=c.hasOwnProperty("bm")?c.bm:0;d.wg=eb(d.Ib);this.q&&fb(d,d.Ib,this.q);d.L();if(c.hasOwnProperty("fx"))for(h=0,n=c.fx.length;h<n;h++)k=r.xk(c.fx[h].name),0>k||(d.Pd[k]=c.fx[h].active,d.Da[k]=c.fx[h].params);d.Ld()}if(r=a.behs)for(b in r)r.hasOwnProperty(b)&&
(c=this.Bs(d,parseInt(b,10)),0>c||d.M[c].Ac(r[b]));a.data&&d.Ac(a.data)};Ob=function(d){return new e(document.getElementById(d))};Pb=function(d,a){return new e({dc:!0,width:d,height:a})};window.cr_createRuntime=Ob;window.cr_createDCRuntime=Pb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var d=document.createElement("screencanvas")||document.createElement("canvas");d.Yv=!0;document.body.appendChild(d);d=new e(d);window.c2runtime=d;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,
window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);return d};window.createEjectaRuntime=function(){var d=new e(document.getElementById("canvas"));window.c2runtime=d;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return d}})();window.cr_getC2Runtime=function(){var g=document.getElementById("c2canvas");return g?g.c2runtime:window.c2runtime?window.c2runtime:null};
window.cr_sizeCanvas=function(g,l){if(0!==g&&0!==l){var e=window.cr_getC2Runtime();e&&e.setSize(g,l)}};window.cr_setSuspended=function(g){var l=window.cr_getC2Runtime();l&&l.setSuspended(g)};
(function(){function g(a,b){this.b=a;this.Je=null;this.scrollX=this.b.Za/2;this.scrollY=this.b.Ya/2;this.scale=1;this.j=0;this.Bf=!0;this.name=b[0];this.width=b[1];this.height=b[2];this.Bp=b[3];this.hp=b[4];this.V=b[5];var c=b[6],k,e;this.N=[];this.Mg=[];k=0;for(e=c.length;k<e;k++){var g=new Qb(this,c[k]);g.to=k;this.N.push(g)}c=b[7];this.Se=[];k=0;for(e=c.length;k<e;k++){var g=c[k],l=this.b.u[g[1]];l.vc||(l.vc=g);this.Se.push(g);-1===this.Mg.indexOf(l)&&this.Mg.push(l)}this.I=[];this.aa=[];this.Da=
[];k=0;for(e=b[8].length;k<e;k++)this.I.push({id:b[8][k][0],name:b[8][k][1],ub:-1,ib:!0,index:k}),this.Da.push(b[8][k][2].slice(0));this.Ld();this.Fl=new ta(0,0,1,1);this.Gl=new ta(0,0,1,1);this.ne={}}function l(a,b){return a.Yc-b.Yc}function e(a,b){this.Xa=a;this.b=a.b;this.c=[];this.scale=1;this.j=0;this.Ge=!1;this.Jd=new ta(0,0,0,0);this.up=new ua;this.La=this.Aa=this.Ma=this.za=0;this.pf=!1;this.Nd=-1;this.name=b[0];this.index=b[1];this.V=b[2];this.visible=b[3];this.Td=b[4];this.Kd=b[5];this.Pb=
b[6];this.Qb=b[7];this.opacity=b[8];this.qk=b[9];this.Xc=b[10];this.Bb=b[11];this.Ib=b[12];this.Qr=b[13];this.wg="source-over";this.zb=this.Ab=0;this.$b=null;this.Of=q();this.Fd=!0;this.Oi=new ta(0,0,-1,-1);this.uc=new ta(0,0,-1,-1);this.Xc&&(this.$b=new db(this.b.Za,this.b.Ya));this.qe=!1;var c=b[14],k,e;this.np=[];this.kc=[];this.xg=[];k=0;for(e=c.length;k<e;k++){var g=c[k],l=this.b.u[g[1]];l.vc||(l.vc=g,l.yr=this.index);this.kc.push(g);-1===this.Xa.Mg.indexOf(l)&&this.Xa.Mg.push(l)}za(this.np,
this.kc);this.I=[];this.aa=[];this.Da=[];k=0;for(e=b[15].length;k<e;k++)this.I.push({id:b[15][k][0],name:b[15][k][1],ub:-1,ib:!0,index:k}),this.Da.push(b[15][k][2].slice(0));this.Ld();this.Fl=new ta(0,0,1,1);this.Gl=new ta(0,0,1,1)}function q(){return b.length?b.pop():[]}function s(a){a.length=0;b.push(a)}g.prototype.lu=function(a){var b=a.type.V.toString();this.ne.hasOwnProperty(b)||(this.ne[b]=[]);this.ne[b].push(this.b.Ml(a))};g.prototype.zn=function(){var a=this.N[0];return!a.Kd&&1===a.opacity&&
!a.qk&&a.visible};g.prototype.Ld=function(){this.aa.length=0;var a,b,c;a=0;for(b=this.I.length;a<b;a++)c=this.I[a],c.ib&&this.aa.push(c)};g.prototype.wk=function(a){var b,c,k;b=0;for(c=this.I.length;b<c;b++)if(k=this.I[b],k.name===a)return k;return null};var c=[],a=!0;g.prototype.Tl=function(){this.hp&&(this.Je=this.b.kk[this.hp],this.Je.hm());this.b.ja=this;this.scrollX=this.b.Za/2;this.scrollY=this.b.Ya/2;var b,p,e,k,g,t,z;b=0;for(e=this.b.u.length;b<e;b++)if(p=this.b.u[b],!p.J)for(g=p.c,p=0,k=
g.length;p<k;p++)if(t=g[p],t.n){var n=t.n.to;n>=this.N.length&&(n=this.N.length-1);t.n=this.N[n];-1===t.n.c.indexOf(t)&&t.n.c.push(t);t.n.pf=!0}if(!a)for(b=0,e=this.N.length;b<e;++b)this.N[b].c.sort(l);c.length=0;this.kr();b=0;for(e=this.N.length;b<e;b++)t=this.N[b],t.wr(),t.jm();g=!1;if(!this.Bf){for(z in this.ne)if(this.ne.hasOwnProperty(z)&&(p=this.b.Bi(parseInt(z,10)))&&!p.J&&this.b.fm(p)){k=this.ne[z];b=0;for(e=k.length;b<e;b++){t=null;if(p.na.je&&(t=this.yi(k[b].w.l),!t))continue;t=this.b.ae(p.vc,
t,!1,0,0,!0);this.b.Ti(t,k[b]);g=!0;c.push(t)}k.length=0}b=0;for(e=this.N.length;b<e;b++)this.N[b].c.sort(l),this.N[b].pf=!0}g&&(this.b.yb(),this.b.To());for(b=0;b<c.length;b++)if(t=c[b],t.type.Nb)for(e=t.Hg(),p=0,k=t.type.Vb.length;p<k;p++)z=t.type.Vb[p],t.type!==z&&(z.c.length>e?t.siblings.push(z.c[e]):z.vc&&(g=this.b.ae(z.vc,t.n,!0,t.x,t.y,!0),this.b.yb(),z.Fj(),t.siblings.push(g),c.push(g)));b=0;for(e=this.Se.length;b<e;b++)this.b.ae(this.Se[b],null,!0);this.b.De=null;this.b.yb();if(this.b.ma&&
!this.b.ra)for(b=0,e=this.b.u.length;b<e;b++)z=this.b.u[b],!z.J&&z.c.length&&z.Cl&&z.Cl(this.b.ma);b=0;for(e=c.length;b<e;b++)t=c[b],this.b.trigger(Object.getPrototypeOf(t.type.na).d.sf,t);c.length=0;this.b.trigger(W.prototype.d.vm,null);this.Bf=!1};g.prototype.ur=function(){var a,b,c,k,e;b=a=0;for(c=this.Se.length;a<c;a++)k=this.Se[a],e=this.b.u[k[1]],e.global?this.b.ae(k,null,!0):(this.Se[b]=k,b++);this.Se.length=b};g.prototype.tu=function(){this.b.trigger(W.prototype.d.tq,null);this.b.jd.Tb.length=
0;var b,c,e,k,g,l;if(!this.Bf)for(b=0,c=this.N.length;b<c;b++)for(this.N[b].km(),g=this.N[b].c,e=0,k=g.length;e<k;e++)l=g[e],l.type.global||this.b.fm(l.type)&&this.lu(l);b=0;for(c=this.N.length;b<c;b++){g=this.N[b].c;e=0;for(k=g.length;e<k;e++)l=g[e],l.type.global||this.b.ze(l);this.b.yb();g.length=0;this.N[b].pf=!0}b=0;for(c=this.b.u.length;b<c;b++)if(g=this.b.u[b],!(g.global||g.na.je||g.na.uj||g.J)){e=0;for(k=g.c.length;e<k;e++)this.b.ze(g.c[e]);this.b.yb()}a=!1};new ta(0,0,0,0);g.prototype.be=
function(a){var b,c=a,k=!1,e=!this.b.xc;e&&(this.b.Ri||(this.b.Ri=document.createElement("canvas"),b=this.b.Ri,b.width=this.b.S,b.height=this.b.R,this.b.Tn=b.getContext("2d"),k=!0),b=this.b.Ri,c=this.b.Tn,b.width!==this.b.S&&(b.width=this.b.S,k=!0),b.height!==this.b.R&&(b.height=this.b.R,k=!0),k&&(c.webkitImageSmoothingEnabled=this.b.ea,c.mozImageSmoothingEnabled=this.b.ea,c.msImageSmoothingEnabled=this.b.ea,c.imageSmoothingEnabled=this.b.ea));c.globalAlpha=1;c.globalCompositeOperation="source-over";
this.b.Oj&&!this.zn()&&c.clearRect(0,0,this.b.S,this.b.R);var g,l,k=0;for(g=this.N.length;k<g;k++)l=this.N[k],l.visible&&0<l.opacity&&11!==l.Ib&&(l.c.length||!l.Kd)?l.be(c):l.jm();e&&a.drawImage(b,0,0,this.b.width,this.b.height)};g.prototype.Mc=function(a){var b=0<this.aa.length||this.b.lg||!this.b.xc;if(b){this.b.Yb||(this.b.Yb=a.$d(this.b.S,this.b.R,this.b.ea));if(this.b.Yb.vg!==this.b.S||this.b.Yb.ug!==this.b.R)a.deleteTexture(this.b.Yb),this.b.Yb=a.$d(this.b.S,this.b.R,this.b.ea);a.gd(this.b.Yb);
this.b.xc||a.bg(this.b.S,this.b.R)}else this.b.Yb&&(a.gd(null),a.deleteTexture(this.b.Yb),this.b.Yb=null);this.b.Oj&&!this.zn()&&a.clear(0,0,0,0);var c,k,e;c=0;for(k=this.N.length;c<k;c++)e=this.N[c],e.visible&&0<e.opacity&&(e.c.length||!e.Kd)?e.Mc(a):e.jm();b&&(0===this.aa.length||1===this.aa.length&&this.b.xc?(1===this.aa.length?(b=this.aa[0].index,a.hd(this.aa[0].ub),a.ag(null,1/this.b.S,1/this.b.R,0,0,1,1,this.scale,this.j,0,0,this.b.S/2,this.b.R/2,this.Da[b]),a.jj(this.aa[0].ub)&&(this.b.pa=
!0)):a.hd(0),this.b.xc||a.bg(this.b.width,this.b.height),a.gd(null),a.$f(1),a.qc(this.b.Yb),a.Zo(),a.re(),a.xe(),b=this.b.width/2,c=this.b.height/2,a.mj(-b,c,b,c,b,-c,-b,-c),a.qc(null)):this.Hl(a,null,null,null))};g.prototype.Fg=function(){return 0<this.aa.length||this.b.lg||!this.b.xc?this.b.Yb:null};g.prototype.un=function(){var a=this.N[0].Nc(),b,c,k;b=1;for(c=this.N.length;b<c;b++)k=this.N[b],(0!==k.Pb||0!==k.Qb)&&k.Nc()<a&&(a=k.Nc());return a};g.prototype.Xo=function(a){if(!this.Bp){var b=1/
this.un()*this.b.S/2;a>this.width-b&&(a=this.width-b);a<b&&(a=b)}this.scrollX!==a&&(this.scrollX=a,this.b.pa=!0)};g.prototype.Yo=function(a){if(!this.Bp){var b=1/this.un()*this.b.R/2;a>this.height-b&&(a=this.height-b);a<b&&(a=b)}this.scrollY!==a&&(this.scrollY=a,this.b.pa=!0)};g.prototype.kr=function(){this.Xo(this.scrollX);this.Yo(this.scrollY)};g.prototype.Hl=function(a,b,c,k){var e=c?c.aa:b?b.aa:this.aa,g=1,l=0,n=0,r=0,d=this.b.S,m=this.b.R;c?(g=c.n.Nc(),l=c.n.cb(),n=c.n.za,r=c.n.Aa,d=c.n.Ma,m=
c.n.La):b&&(g=b.Nc(),l=b.cb(),n=b.za,r=b.Aa,d=b.Ma,m=b.La);var f=this.b.tk,B,q,u,v,s=0,xa=1,S,E=this.b.S,A=this.b.R,X=E/2,K=A/2,L=b?b.Fl:this.Fl,C=b?b.Gl:this.Gl,F=0,M=0,G=0,J=0,H=E,oa=E,P=A,ra=A,ka=u=0,va=c?c.n.cb():0;if(c){B=0;for(q=e.length;B<q;B++)u+=a.Ks(e[B].ub),ka+=a.Ls(e[B].ub);v=c.Ga;F=b.Db(v.left,v.top,!0,!0);G=b.Db(v.left,v.top,!1,!0);H=b.Db(v.right,v.bottom,!0,!0);P=b.Db(v.right,v.bottom,!1,!0);0!==va&&(B=b.Db(v.right,v.top,!0,!0),q=b.Db(v.right,v.top,!1,!0),M=b.Db(v.left,v.bottom,!0,
!0),J=b.Db(v.left,v.bottom,!1,!0),v=Math.min(F,H,B,M),H=Math.max(F,H,B,M),F=v,v=Math.min(G,P,q,J),P=Math.max(G,P,q,J),G=v);F-=u;G-=ka;H+=u;P+=ka;C.left=F/E;C.top=1-G/A;C.right=H/E;C.bottom=1-P/A;M=F=R(F);J=G=R(G);oa=H=qa(H);ra=P=qa(P);M-=u;J-=ka;oa+=u;ra+=ka;0>F&&(F=0);0>G&&(G=0);H>E&&(H=E);P>A&&(P=A);0>M&&(M=0);0>J&&(J=0);oa>E&&(oa=E);ra>A&&(ra=A);L.left=F/E;L.top=1-G/A;L.right=H/E;L.bottom=1-P/A}else L.left=C.left=0,L.top=C.top=0,L.right=C.right=1,L.bottom=C.bottom=1;ka=c&&((c.j||va)&&a.qh(e[0].ub)||
0!==u||0!==ka||1!==c.opacity||c.type.na.qo)||b&&!c&&1!==b.opacity;a.Zo();if(ka){f[s]||(f[s]=a.$d(E,A,this.b.ea));if(f[s].vg!==E||f[s].ug!==A)a.deleteTexture(f[s]),f[s]=a.$d(E,A,this.b.ea);a.hd(0);a.gd(f[s]);S=ra-J;a.clearRect(M,A-J-S,oa-M,S);c?c.Mc(a):(a.qc(this.b.pc),a.$f(b.opacity),a.re(),a.translate(-X,-K),a.xe(),a.pe(F,P,H,P,H,G,F,G,L));C.left=C.top=0;C.right=C.bottom=1;c&&(v=L.top,L.top=L.bottom,L.bottom=v);s=1;xa=0}a.$f(1);u=e.length-1;var va=a.Dl(e[u].ub)||!b&&!c&&!this.b.xc,ga=0;B=0;for(q=
e.length;B<q;B++){f[s]||(f[s]=a.$d(E,A,this.b.ea));if(f[s].vg!==E||f[s].ug!==A)a.deleteTexture(f[s]),f[s]=a.$d(E,A,this.b.ea);a.hd(e[B].ub);ga=e[B].index;a.jj(e[B].ub)&&(this.b.pa=!0);0!=B||ka?(a.ag(k,1/E,1/A,C.left,C.top,C.right,C.bottom,g,l,n,r,(n+d)/2,(r+m)/2,c?c.Da[ga]:b?b.Da[ga]:this.Da[ga]),a.qc(null),B!==u||va?(a.gd(f[s]),S=ra-J,v=A-J-S,a.clearRect(M,v,oa-M,S)):(c?a.se(c.Ab,c.zb):b&&a.se(b.Ab,b.zb),a.gd(k)),a.qc(f[xa]),a.re(),a.translate(-X,-K),a.xe(),a.pe(F,P,H,P,H,G,F,G,L),B!==u||va||a.qc(null)):
(a.gd(f[s]),S=ra-J,v=A-J-S,a.clearRect(M,v,oa-M,S),c?(a.ag(k,1/c.width,1/c.height,C.left,C.top,C.right,C.bottom,g,l,n,r,(n+d)/2,(r+m)/2,c.Da[ga]),c.Mc(a)):(a.ag(k,1/E,1/A,0,0,1,1,g,l,n,r,(n+d)/2,(r+m)/2,b?b.Da[ga]:this.Da[ga]),a.qc(b?this.b.pc:this.b.Yb),a.re(),a.translate(-X,-K),a.xe(),a.pe(F,P,H,P,H,G,F,G,L)),C.left=C.top=0,C.right=C.bottom=1,c&&!va&&(v=P,P=G,G=v));s=0===s?1:0;xa=0===s?1:0}va&&(a.hd(0),c?a.se(c.Ab,c.zb):b?a.se(b.Ab,b.zb):this.b.xc||(a.bg(this.b.width,this.b.height),X=this.b.width/
2,K=this.b.height/2,G=F=0,H=this.b.width,P=this.b.height),a.gd(k),a.qc(f[xa]),a.re(),a.translate(-X,-K),a.xe(),c&&1===e.length&&!ka?a.pe(F,G,H,G,H,P,F,P,L):a.pe(F,P,H,P,H,G,F,G,L),a.qc(null))};g.prototype.yi=function(a){var b,c;b=0;for(c=this.N.length;b<c;b++)if(this.N[b].V===a)return this.N[b];return null};g.prototype.ac=function(){var a,b,c,k={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.j,w:this.width,h:this.height,fv:this.Bf,persist:this.ne,fx:[],layers:{}};a=0;for(b=this.I.length;a<b;a++)c=
this.I[a],k.fx.push({name:c.name,active:c.ib,params:this.Da[c.index]});a=0;for(b=this.N.length;a<b;a++)c=this.N[a],k.layers[c.V.toString()]=c.ac();return k};g.prototype.Ac=function(a){var b,c,k,e;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.j=a.a;this.width=a.w;this.height=a.h;this.ne=a.persist;"undefined"!==typeof a.fv&&(this.Bf=a.fv);var g=a.fx;b=0;for(c=g.length;b<c;b++)if(k=this.wk(g[b].name))k.ib=g[b].active,this.Da[k.index]=g[b].params;this.Ld();b=a.layers;for(e in b)b.hasOwnProperty(e)&&
(a=this.yi(parseInt(e,10)))&&a.Ac(b[e])};Cb=g;e.prototype.Ld=function(){this.aa.length=0;var a,b,c;a=0;for(b=this.I.length;a<b;a++)c=this.I[a],c.ib&&this.aa.push(c)};e.prototype.wk=function(a){var b,c,k;b=0;for(c=this.I.length;b<c;b++)if(k=this.I[b],k.name===a)return k;return null};e.prototype.wr=function(){var a,b,e,k,g,l;b=a=0;for(e=this.kc.length;a<e;a++){k=this.kc[a];g=this.b.u[k[1]];l=this.b.fm(g);g=!0;if(!l||this.Xa.Bf)k=this.b.ae(k,this,!0),c.push(k),k.type.global&&(g=!1,this.xg.push(k.uid));
g&&(this.kc[b]=this.kc[a],b++)}this.kc.length=b;this.b.yb();!this.b.C&&this.I.length&&(this.Ib=this.Qr);this.wg=eb(this.Ib);this.b.q&&fb(this,this.Ib,this.b.q);this.Fd=!0};e.prototype.Yf=function(a,b){var c=Ba(this.c,a);0>c||(b&&this.Xc&&a.Rb&&a.Rb.right>=a.Rb.left&&(a.ta(),this.$b.update(a,a.Rb,null),a.Rb.set(0,0,-1,-1)),c===this.c.length-1?this.c.pop():(ya(this.c,c),this.xh(c)),this.Fd=!0)};e.prototype.sg=function(a,b){a.Yc=this.c.length;this.c.push(a);b&&this.Xc&&a.Rb&&a.L();this.Fd=!0};e.prototype.Ut=
function(a){this.c.unshift(a);this.xh(0)};e.prototype.Ft=function(a,b,c){var k=a.bd();b=b.bd();ya(this.c,k);k<b&&b--;c&&b++;b===this.c.length?this.c.push(a):this.c.splice(b,0,a);this.xh(k<b?k:b)};e.prototype.xh=function(a){-1===this.Nd?this.Nd=a:a<this.Nd&&(this.Nd=a);this.Fd=this.pf=!0};e.prototype.km=function(){if(this.pf){-1===this.Nd&&(this.Nd=0);var a,b,c;if(this.Xc)for(a=this.Nd,b=this.c.length;a<b;++a)c=this.c[a],c.Yc=a,this.$b.Ct(c.Rb);else for(a=this.Nd,b=this.c.length;a<b;++a)this.c[a].Yc=
a;this.pf=!1;this.Nd=-1}};e.prototype.Nc=function(a){return this.Hs()*(this.b.xc||a?this.b.tg:1)};e.prototype.Hs=function(){return(this.scale*this.Xa.scale-1)*this.Bb+1};e.prototype.cb=function(){return this.Ge?0:Fa(this.Xa.j+this.j)};var b=[],u=[],v=[];e.prototype.vn=function(){this.km();this.$b.nj(this.za,this.Aa,this.Ma,this.La,v);if(!v.length)return q();if(1===v.length){var a=q();za(a,v[0]);v.length=0;return a}for(var b=!0;1<v.length;){for(var a=v,c=void 0,k=void 0,e=void 0,g=void 0,l=void 0,
c=0,k=a.length;c<k-1;c+=2){var e=a[c],g=a[c+1],l=q(),n=e,r=g,d=l,m=0,f=0,B=0,O=n.length,D=r.length,I=void 0,y=void 0;for(d.length=O+D;m<O&&f<D;++B)I=n[m],y=r[f],I.Yc<y.Yc?(d[B]=I,++m):(d[B]=y,++f);for(;m<O;++m,++B)d[B]=n[m];for(;f<D;++f,++B)d[B]=r[f];b||(s(e),s(g));u.push(l)}1===k%2&&(b?(e=q(),za(e,a[k-1]),u.push(e)):u.push(a[k-1]));za(a,u);u.length=0;b=!1}a=v[0];v.length=0;return a};e.prototype.be=function(a){this.qe=this.qk||1!==this.opacity||0!==this.Ib;var b=this.b.canvas,c=a,k=!1;this.qe&&(this.b.Qi||
(this.b.Qi=document.createElement("canvas"),b=this.b.Qi,b.width=this.b.S,b.height=this.b.R,this.b.Sn=b.getContext("2d"),k=!0),b=this.b.Qi,c=this.b.Sn,b.width!==this.b.S&&(b.width=this.b.S,k=!0),b.height!==this.b.R&&(b.height=this.b.R,k=!0),k&&(c.webkitImageSmoothingEnabled=this.b.ea,c.mozImageSmoothingEnabled=this.b.ea,c.msImageSmoothingEnabled=this.b.ea,c.imageSmoothingEnabled=this.b.ea),this.Kd&&c.clearRect(0,0,this.b.S,this.b.R));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.Kd||
(c.fillStyle="rgb("+this.Td[0]+","+this.Td[1]+","+this.Td[2]+")",c.fillRect(0,0,this.b.S,this.b.R));c.save();this.Ge=!0;var k=this.nb(0,0,!0,!0),e=this.nb(0,0,!1,!0);this.Ge=!1;this.b.oe&&(k=Math.round(k),e=Math.round(e));this.Jl(k,e,c);var g=this.Nc();c.scale(g,g);c.translate(-k,-e);this.Xc?(this.uc.left=this.$b.ec(this.za),this.uc.top=this.$b.fc(this.Aa),this.uc.right=this.$b.ec(this.Ma),this.uc.bottom=this.$b.fc(this.La),this.Fd||!this.uc.ni(this.Oi)?(s(this.Of),k=this.vn(),this.Fd=!1,this.Oi.ei(this.uc)):
k=this.Of):k=this.c;for(var l,n=null,e=0,g=k.length;e<g;++e)l=k[e],l!==n&&(this.Nr(l,c),n=l);this.Xc&&(this.Of=k);c.restore();this.qe&&(a.globalCompositeOperation=this.wg,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};e.prototype.Nr=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.ta();var c=a.Ga;c.right<this.za||c.bottom<this.Aa||c.left>this.Ma||c.top>this.La||(b.globalCompositeOperation=a.wg,a.be(b))}};e.prototype.jm=function(){this.Ge=!0;var a=this.nb(0,0,!0,!0),b=this.nb(0,0,!1,!0);this.Ge=
!1;this.b.oe&&(a=Math.round(a),b=Math.round(b));this.Jl(a,b,null)};e.prototype.Jl=function(a,b,c){var k=this.Nc();this.za=a;this.Aa=b;this.Ma=a+1/k*this.b.S;this.La=b+1/k*this.b.R;a=this.cb();0!==a&&(c&&(c.translate(this.b.S/2,this.b.R/2),c.rotate(-a),c.translate(this.b.S/-2,this.b.R/-2)),this.Jd.set(this.za,this.Aa,this.Ma,this.La),this.Jd.offset((this.za+this.Ma)/-2,(this.Aa+this.La)/-2),this.up.fp(this.Jd,a),this.up.Sm(this.Jd),this.Jd.offset((this.za+this.Ma)/2,(this.Aa+this.La)/2),this.za=this.Jd.left,
this.Aa=this.Jd.top,this.Ma=this.Jd.right,this.La=this.Jd.bottom)};e.prototype.Mc=function(a){var b=0,c=0;if(this.qe=this.qk||1!==this.opacity||0<this.aa.length||0!==this.Ib){this.b.pc||(this.b.pc=a.$d(this.b.S,this.b.R,this.b.ea));if(this.b.pc.vg!==this.b.S||this.b.pc.ug!==this.b.R)a.deleteTexture(this.b.pc),this.b.pc=a.$d(this.b.S,this.b.R,this.b.ea);a.gd(this.b.pc);this.Kd&&a.clear(0,0,0,0)}this.Kd||a.clear(this.Td[0]/255,this.Td[1]/255,this.Td[2]/255,1);this.Ge=!0;var k=this.nb(0,0,!0,!0),b=this.nb(0,
0,!1,!0);this.Ge=!1;this.b.oe&&(k=Math.round(k),b=Math.round(b));this.Jl(k,b,null);k=this.Nc();a.re();a.scale(k,k);a.Vo(-this.cb());a.translate((this.za+this.Ma)/-2,(this.Aa+this.La)/-2);a.xe();this.Xc?(this.uc.left=this.$b.ec(this.za),this.uc.top=this.$b.fc(this.Aa),this.uc.right=this.$b.ec(this.Ma),this.uc.bottom=this.$b.fc(this.La),this.Fd||!this.uc.ni(this.Oi)?(s(this.Of),b=this.vn(),this.Fd=!1,this.Oi.ei(this.uc)):b=this.Of):b=this.c;var e,g,l=null,c=0;for(e=b.length;c<e;++c)g=b[c],g!==l&&(this.Or(b[c],
a),l=g);this.Xc&&(this.Of=b);this.qe&&(b=this.aa.length?this.aa[0].ub:0,c=this.aa.length?this.aa[0].index:0,0===this.aa.length||1===this.aa.length&&!a.Dl(b)&&1===this.opacity?(1===this.aa.length?(a.hd(b),a.ag(this.Xa.Fg(),1/this.b.S,1/this.b.R,0,0,1,1,k,this.cb(),this.za,this.Aa,(this.za+this.Ma)/2,(this.Aa+this.La)/2,this.Da[c]),a.jj(b)&&(this.b.pa=!0)):a.hd(0),a.gd(this.Xa.Fg()),a.$f(this.opacity),a.qc(this.b.pc),a.se(this.Ab,this.zb),a.re(),a.xe(),k=this.b.S/2,b=this.b.R/2,a.mj(-k,b,k,b,k,-b,-k,
-b),a.qc(null)):this.Xa.Hl(a,this,null,this.Xa.Fg()))};e.prototype.Or=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.ta();var c=a.Ga;c.right<this.za||c.bottom<this.Aa||c.left>this.Ma||c.top>this.La||(a.Ip?this.Pr(a,b):(b.hd(0),b.se(a.Ab,a.zb),a.Mc(b)))}};e.prototype.Pr=function(a,b){var c=a.aa[0].ub,k=a.aa[0].index,e=this.Nc();if(1!==a.aa.length||b.Dl(c)||b.Wt(c)||(a.j||a.n.cb())&&b.qh(c)||1!==a.opacity||a.type.na.qo)this.Xa.Hl(b,this,a,this.qe?this.b.pc:this.Xa.Fg()),b.re(),b.scale(e,e),
b.Vo(-this.cb()),b.translate((this.za+this.Ma)/-2,(this.Aa+this.La)/-2),b.xe();else{b.hd(c);b.se(a.Ab,a.zb);b.jj(c)&&(this.b.pa=!0);var g=0,l=0,n=0,r=0;b.qh(c)&&(c=a.Ga,g=this.Db(c.left,c.top,!0,!0),l=this.Db(c.left,c.top,!1,!0),n=this.Db(c.right,c.bottom,!0,!0),c=this.Db(c.right,c.bottom,!1,!0),g/=windowWidth,l=1-l/windowHeight,n/=windowWidth,r=1-c/windowHeight);b.ag(this.qe?this.b.pc:this.Xa.Fg(),1/a.width,1/a.height,g,l,n,r,e,this.cb(),this.za,this.Aa,(this.za+this.Ma)/2,(this.Aa+this.La)/2,a.Da[k]);
a.Mc(b)}};e.prototype.nb=function(a,b,c,k){var e=this.b.devicePixelRatio;this.b.Ue&&(a*=e,b*=e);var e=this.b.Ko,g=this.b.Lo,e=(this.Xa.scrollX-e)*this.Pb+e,g=(this.Xa.scrollY-g)*this.Qb+g,l=e,n=g,r=1/this.Nc(!k);k?(l-=this.b.S*r/2,n-=this.b.R*r/2):(l-=this.b.width*r/2,n-=this.b.height*r/2);l+=a*r;n+=b*r;b=this.cb();0!==b&&(l-=e,n-=g,a=Math.cos(b),b=Math.sin(b),k=l*a-n*b,n=n*a+l*b,l=k+e,n+=g);return c?l:n};e.prototype.Db=function(a,b,c,k){var e=this.b.Ko,g=this.b.Lo,l=(this.Xa.scrollX-e)*this.Pb+e,
n=(this.Xa.scrollY-g)*this.Qb+g,g=l,e=n,r=this.cb();if(0!==r){a-=l;b-=n;var d=Math.cos(-r),r=Math.sin(-r),m=a*d-b*r;b=b*d+a*r;a=m+l;b+=n}l=1/this.Nc(!k);k?(g-=this.b.S*l/2,e-=this.b.R*l/2):(g-=this.b.width*l/2,e-=this.b.height*l/2);g=(a-g)/l;e=(b-e)/l;a=this.b.devicePixelRatio;this.b.Ue&&!k&&(g/=a,e/=a);return c?g:e};e.prototype.ac=function(){var a,b,c,k={s:this.scale,a:this.j,vl:this.za,vt:this.Aa,vr:this.Ma,vb:this.La,v:this.visible,bc:this.Td,t:this.Kd,px:this.Pb,py:this.Qb,o:this.opacity,zr:this.Bb,
fx:[],cg:this.xg,instances:[]};a=0;for(b=this.I.length;a<b;a++)c=this.I[a],k.fx.push({name:c.name,active:c.ib,params:this.Da[c.index]});return k};e.prototype.Ac=function(a){var b,c,k;this.scale=a.s;this.j=a.a;this.za=a.vl;this.Aa=a.vt;this.Ma=a.vr;this.La=a.vb;this.visible=a.v;this.Td=a.bc;this.Kd=a.t;this.Pb=a.px;this.Qb=a.py;this.opacity=a.o;this.Bb=a.zr;this.xg=a.cg||[];za(this.kc,this.np);var e=new ba;b=0;for(k=this.xg.length;b<k;++b)e.add(this.xg[b]);c=b=0;for(k=this.kc.length;b<k;++b)e.contains(this.kc[b][2])||
(this.kc[c]=this.kc[b],++c);this.kc.length=c;c=a.fx;b=0;for(k=c.length;b<k;b++)if(a=this.wk(c[b].name))a.ib=c[b].active,this.Da[a.index]=c[b].params;this.Ld();this.c.sort(l);this.pf=!0};Qb=e})();
(function(){function g(a,b){var d,c=a.length;switch(c){case 0:return!0;case 1:return a[0]===b[0];case 2:return a[0]===b[0]&&a[1]===b[1];default:for(d=0;d<c;d++)if(a[d]!==b[d])return!1;return!0}}function l(a,b){return a.index-b.index}function e(a){var b,d,c,f;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(l);a.length>=x.length&&(x.length=a.length+1);x[a.length]||(x[a.length]=[]);f=x[a.length];b=0;for(d=f.length;b<d;b++)if(c=f[b],g(a,c))return c;f.push(a);return a}
function q(a,b){this.b=a;this.xp={};this.gn={};this.Fk=!1;this.Bn=new ba;this.fk=[];this.Pj=[];this.name=b[0];var d=b[1];this.ee=[];var c,f;c=0;for(f=d.length;c<f;c++)this.Dn(d[c],null,this.ee)}function s(a){this.type=a;this.c=[];this.Y=[];this.ca=!0}function c(a,b,d){this.sheet=a;this.parent=b;this.b=a.b;this.qa=[];this.te=[];this.An=this.Bj=this.cm=this.Ei=this.group=this.lp=!1;this.bb=[];this.rc=[];this.Fc=[];this.Jg="";this.Ig=this.Ei=this.group=!1;this.ci=null;d[1]&&(this.Jg=d[1][1].toLowerCase(),
this.group=!0,this.Ei=!!d[1][0],this.ci=[],this.Ig=this.Ei,this.b.Rd.push(this),this.b.Ci[this.Jg]=this);this.Qc=d[2];this.V=d[4];this.group||(this.b.Rm[this.V.toString()]=this);var c=d[5];a=0;for(b=c.length;a<b;a++){var f=new Rb(this,c[a]);f.index=a;this.bb.push(f);this.Lm(f.type)}c=d[6];a=0;for(b=c.length;a<b;a++)f=new Sb(this,c[a]),f.index=a,this.rc.push(f);if(8===d.length)for(d=d[7],a=0,b=d.length;a<b;a++)this.sheet.Dn(d[a],this,this.Fc);this.Ji=!1;this.bb.length&&(this.Ji=null==this.bb[0].type&&
this.bb[0].ob==W.prototype.d.Yp)}function a(a,b){var d,c,f;if(a&&(-1===b.indexOf(a)&&b.push(a),a.Nb))for(d=0,c=a.Vb.length;d<c;d++)f=a.Vb[d],a!==f&&-1===b.indexOf(f)&&b.push(f)}function b(a,b){this.gc=a;this.sheet=a.sheet;this.b=a.b;this.O=[];this.Ea=[];this.ba={};this.index=-1;this.qg=!1;this.ob=this.b.Od(b[1]);this.trigger=0<b[3];this.en=2===b[3];this.dd=b[4];this.Mk=b[5];this.xt=b[6];this.V=b[7];this.b.yf[this.V.toString()]=this;-1===b[0]?(this.type=null,this.Ra=this.Ll,this.Ce=null,this.Kc=-1):
(this.type=this.b.u[b[0]],this.Ra=this.xt?this.ju:this.Kl,b[2]?(this.Ce=this.type.wi(b[2]),this.Kc=this.type.uk(b[2])):(this.Ce=null,this.Kc=-1),this.gc.parent&&this.gc.parent.tj());this.en&&(this.Ra=this.ku);if(10===b.length){var d,c,f=b[9];d=0;for(c=f.length;d<c;d++){var k=new Tb(this,f[d]);this.O.push(k)}this.Ea.length=f.length}}function u(a,b){this.gc=a;this.sheet=a.sheet;this.b=a.b;this.O=[];this.Ea=[];this.ba={};this.index=-1;this.qg=!1;this.ob=this.b.Od(b[1]);-1===b[0]?(this.type=null,this.Ra=
this.Ll,this.Ce=null,this.Kc=-1):(this.type=this.b.u[b[0]],this.Ra=this.Kl,b[2]?(this.Ce=this.type.wi(b[2]),this.Kc=this.type.uk(b[2])):(this.Ce=null,this.Kc=-1));this.V=b[3];this.b.uf[this.V.toString()]=this;if(6===b.length){var d,c,f=b[5];d=0;for(c=f.length;d<c;d++){var k=new Tb(this,f[d]);this.O.push(k)}this.Ea.length=f.length}}function v(){z++;t.length===z&&t.push(new Ub);return t[z]}function h(a,b){this.Dc=a;this.gc=a.gc;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.Zc=null;this.Id=0;this.get=
null;this.Ym=0;this.Xa=null;this.key=0;this.object=null;this.index=0;this.Kh=this.lf=this.Kh=this.lf=this.hn=this.Ke=this.Lh=null;this.Gc=!1;var d,c,f;switch(b[0]){case 0:case 7:this.Zc=new Vb(this,b[1]);this.Id=0;this.get=this.Ss;break;case 1:this.Zc=new Vb(this,b[1]);this.Id=0;this.get=this.Ts;break;case 5:this.Zc=new Vb(this,b[1]);this.Id=0;this.get=this.Xs;break;case 3:case 8:this.Ym=b[1];this.get=this.Qs;break;case 6:this.Xa=this.b.Yk[b[1]];this.get=this.Ys;break;case 9:this.key=b[1];this.get=
this.Ws;break;case 4:this.object=this.b.u[b[1]];this.get=this.Zs;this.gc.Lm(this.object);this.Dc instanceof Sb?this.gc.tj():this.gc.parent&&this.gc.parent.tj();break;case 10:this.index=b[1];a.type.J?(this.get=this.Us,this.Gc=!0):this.get=this.Vs;break;case 11:this.Lh=b[1];this.Ke=null;this.get=this.Rs;break;case 2:case 12:this.hn=b[1];this.get=this.Ps;break;case 13:for(this.get=this.$s,this.lf=[],this.Kh=[],d=1,c=b.length;d<c;d++)f=new Tb(this.Dc,b[d]),this.lf.push(f),this.Kh.push(0)}}function p(a,
b,d){this.sheet=a;this.parent=b;this.b=a.b;this.qa=[];this.name=d[1];this.Gj=d[2];this.Jk=d[3];this.Tg=!!d[4];this.Ii=!!d[5];this.V=d[6];this.b.ng[this.V.toString()]=this;this.data=this.Jk;this.parent?(this.ff=this.Tg||this.Ii?-1:this.b.ru++,this.b.fr.push(this)):(this.ff=-1,this.b.er.push(this))}function w(a,b,d){this.sheet=a;this.parent=b;this.b=a.b;this.qa=[];this.Lg=null;this.gt=d[1];this.ib=!0}function k(){this.pp=[];this.reset(null)}var x=[];q.prototype.toString=function(){return this.name};
q.prototype.Dn=function(a,b,d){switch(a[0]){case 0:a=new Wb(this,b,a);if(a.Qc)for(d.push(a),d=0,b=a.bb.length;d<b;d++)a.bb[d].trigger&&this.En(a,d);else a.Ln()?this.En(a,0):d.push(a);break;case 1:a=new Nb(this,b,a);d.push(a);break;case 2:a=new Xb(this,b,a),d.push(a)}};q.prototype.Ja=function(){var a,b;a=0;for(b=this.ee.length;a<b;a++)this.ee[a].Ja(a<b-1&&this.ee[a+1].Ji)};q.prototype.hm=function(){this.fk.length=0;this.Pj.length=0;this.Jm(this);this.Pj.length=0};q.prototype.Jm=function(a){var b,d,
c,f,k=a.fk,e=a.Pj,h=this.Bn.ye();b=0;for(d=h.length;b<d;++b)c=h[b],f=c.Lg,!c.ib||a===f||-1<e.indexOf(f)||(e.push(f),f.Jm(a),k.push(f))};q.prototype.Ra=function(a){this.b.Xv||(this.Fk=!0,a||(this.b.Qk=!0));var b,d;b=0;for(d=this.ee.length;b<d;b++){var c=this.ee[b];c.Ra();this.b.Zj(c.qa);this.b.ge&&this.b.yb()}a||(this.b.Qk=!1)};q.prototype.En=function(a,b){a.Qc||this.b.Ej.push(a);var d,c,f=a.bb[b],k;k=f.type?f.type.name:"system";var e=(d=f.en)?this.gn:this.xp;e[k]||(e[k]=[]);k=e[k];e=f.ob;if(d){if(f.O.length&&
(f=f.O[0],1===f.type&&2===f.Zc.type)){f=f.Zc.value.toLowerCase();d=0;for(c=k.length;d<c;d++)if(k[d].method==e){d=k[d].Ag;d[f]?d[f].push([a,b]):d[f]=[[a,b]];return}d={};d[f]=[[a,b]];k.push({method:e,Ag:d})}}else{d=0;for(c=k.length;d<c;d++)if(k[d].method==e){k[d].Ag.push([a,b]);return}Y&&e===Y.prototype.d.tf?k.unshift({method:e,Ag:[[a,b]]}):k.push({method:e,Ag:[[a,b]]})}};Db=q;s.prototype.Ek=function(){return this.ca?this.type.c.length:this.c.length};s.prototype.jc=function(){return this.ca?this.type.c:
this.c};s.prototype.ph=function(a){a&&(a.b.pb().Jb.Qc?(this.ca&&(this.c.length=0,za(this.Y,a.type.c),this.ca=!1),a=this.Y.indexOf(a),-1!==a&&(this.c.push(this.Y[a]),this.Y.splice(a,1))):(this.ca=!1,this.c.length=1,this.c[0]=a))};lb=s;window._c2hh_="595E09B44298EB3B8CBCAEB682CEB86C9AE43304";c.prototype.Ja=function(a){var b,d=this.parent;if(this.group)for(this.Bj=!0;d;){if(!d.group){this.Bj=!1;break}d=d.parent}this.cm=!this.Ln()&&(!this.parent||this.parent.group&&this.parent.Bj);this.An=!!a;this.te=
this.qa.slice(0);for(d=this.parent;d;){a=0;for(b=d.qa.length;a<b;a++)this.dr(d.qa[a]);d=d.parent}this.qa=e(this.qa);this.te=e(this.te);a=0;for(b=this.bb.length;a<b;a++)this.bb[a].Ja();a=0;for(b=this.rc.length;a<b;a++)this.rc[a].Ja();a=0;for(b=this.Fc.length;a<b;a++)this.Fc[a].Ja(a<b-1&&this.Fc[a+1].Ji)};c.prototype.$o=function(a){if(this.Ig!==!!a){this.Ig=!!a;var b;a=0;for(b=this.ci.length;a<b;++a)this.ci[a].Dp();0<b&&this.b.ja.Je&&this.b.ja.Je.hm()}};c.prototype.Lm=function(b){a(b,this.qa)};c.prototype.dr=
function(b){a(b,this.te)};c.prototype.tj=function(){this.lp=!0;this.parent&&this.parent.tj()};c.prototype.Ln=function(){return this.bb.length?this.bb[0].trigger:!1};c.prototype.Ra=function(){var a,b=!1,d,c=this.b,f=this.b.pb();f.Jb=this;var k=this.bb;this.Ji||(f.ik=!1);if(this.Qc){0===k.length&&(b=!0);f.Sa=0;for(a=k.length;f.Sa<a;f.Sa++)k[f.Sa].trigger||(d=k[f.Sa].Ra())&&(b=!0);(f.Ye=b)&&this.qj()}else{f.Sa=0;for(a=k.length;f.Sa<a;f.Sa++)if(d=k[f.Sa].Ra(),!d){f.Ye=!1;this.cm&&c.ge&&c.yb();return}f.Ye=
!0;this.qj()}this.Sr(f)};c.prototype.Sr=function(a){a.Ye&&this.An&&(a.ik=!0);this.cm&&this.b.ge&&this.b.yb()};c.prototype.hu=function(a){this.b.pb().Jb=this;this.bb[a].Ra()&&(this.qj(),this.b.pb().Ye=!0)};c.prototype.qj=function(){var a=this.b.pb(),b;a.Hb=0;for(b=this.rc.length;a.Hb<b;a.Hb++)if(this.rc[a.Hb].Ra())return;this.Wo()};c.prototype.eu=function(){var a=this.b.pb(),b;for(b=this.rc.length;a.Hb<b;a.Hb++)if(this.rc[a.Hb].Ra())return;this.Wo()};c.prototype.Wo=function(){if(this.Fc.length){var a,
b,d,c,f=this.Fc.length-1;this.b.lj(this);if(this.lp)for(a=0,b=this.Fc.length;a<b;a++)d=this.Fc[a],(c=!this.Bj||!this.group&&a<f)&&this.b.kj(d.qa),d.Ra(),c?this.b.hf(d.qa):this.b.Zj(d.qa);else for(a=0,b=this.Fc.length;a<b;a++)this.Fc[a].Ra();this.b.gj()}};c.prototype.iu=function(){var a=this.b.pb();a.Jb=this;var b=!1,d;a.Sa=0;for(d=this.bb.length;a.Sa<d;a.Sa++)if(this.bb[a.Sa].Ra())b=!0;else if(!this.Qc)return!1;return this.Qc?b:!0};c.prototype.fu=function(){this.b.Le++;var a=this.b.pb().Sa,b=this.b.lj(this);
if(!this.Qc)for(b.Sa=a+1,a=this.bb.length;b.Sa<a;b.Sa++)if(!this.bb[b.Sa].Ra()){this.b.gj();return}this.qj();this.b.gj()};c.prototype.nt=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.bb[b].type===a.type)return!1;return!0};Wb=c;b.prototype.Ja=function(){var a,b,d;a=0;for(b=this.O.length;a<b;a++)d=this.O[a],d.Ja(),d.Gc&&(this.qg=!0)};b.prototype.ku=function(){return!0};b.prototype.Ll=function(){var a,b;a=0;for(b=this.O.length;a<b;a++)this.Ea[a]=this.O[a].get();return Pa(this.ob.apply(this.b.jd,
this.Ea),this.Mk)};b.prototype.ju=function(){var a,b;a=0;for(b=this.O.length;a<b;a++)this.Ea[a]=this.O[a].get();a=this.ob.apply(this.Ce?this.Ce:this.type,this.Ea);this.type.Jc();return a};b.prototype.Kl=function(){var a,b,d,c,f,k,e,h,g=this.type,l=g.T(),p=this.gc.Qc&&!this.trigger;b=0;var x=g.Nb,t=g.J,q=g.wd,u=this.Kc,v=-1<u,s=this.qg,z=this.O,w=this.Ea,M=this.Mk,G=this.ob,J;if(s)for(b=0,f=z.length;b<f;++b)k=z[b],k.Gc||(w[b]=k.get(0));else for(b=0,f=z.length;b<f;++b)w[b]=z[b].get(0);if(l.ca){l.c.length=
0;l.Y.length=0;J=g.c;a=0;for(c=J.length;a<c;++a){h=J[a];if(s)for(b=0,f=z.length;b<f;++b)k=z[b],k.Gc&&(w[b]=k.get(a));v?(b=0,t&&(b=h.type.Af[q]),b=G.apply(h.M[u+b],w)):b=G.apply(h,w);(e=Pa(b,M))?l.c.push(h):p&&l.Y.push(h)}g.finish&&g.finish(!0);l.ca=!1;g.Jc();return l.Ek()}d=0;J=(e=p&&!this.gc.nt(this))?l.Y:l.c;var H=!1;a=0;for(c=J.length;a<c;++a){h=J[a];if(s)for(b=0,f=z.length;b<f;++b)k=z[b],k.Gc&&(w[b]=k.get(a));v?(b=0,t&&(b=h.type.Af[q]),b=G.apply(h.M[u+b],w)):b=G.apply(h,w);if(Pa(b,M))if(H=!0,
e){if(l.c.push(h),x)for(b=0,f=h.siblings.length;b<f;b++)k=h.siblings[b],k.type.T().c.push(k)}else{J[d]=h;if(x)for(b=0,f=h.siblings.length;b<f;b++)k=h.siblings[b],k.type.T().c[d]=k;d++}else if(e){J[d]=h;if(x)for(b=0,f=h.siblings.length;b<f;b++)k=h.siblings[b],k.type.T().Y[d]=k;d++}else if(p&&(l.Y.push(h),x))for(b=0,f=h.siblings.length;b<f;b++)k=h.siblings[b],k.type.T().Y.push(k)}J.length=d;if(x)for(t=g.Vb,a=0,c=t.length;a<c;a++)h=t[a].T(),e?h.Y.length=d:h.c.length=d;d=H;if(e&&!H)for(a=0,c=l.c.length;a<
c;a++){h=l.c[a];if(s)for(b=0,f=z.length;b<f;b++)k=z[b],k.Gc&&(w[b]=k.get(a));b=v?G.apply(h.M[u],w):G.apply(h,w);if(Pa(b,M)){H=!0;break}}g.finish&&g.finish(d||p);return p?H:l.Ek()};Rb=b;u.prototype.Ja=function(){var a,b,d;a=0;for(b=this.O.length;a<b;a++)d=this.O[a],d.Ja(),d.Gc&&(this.qg=!0)};u.prototype.Ll=function(){var a=this.b,b,d,c=this.O,f=this.Ea;b=0;for(d=c.length;b<d;++b)f[b]=c[b].get();return this.ob.apply(a.jd,f)};u.prototype.Kl=function(){var a=this.type,b=this.Kc,d=a.wd,c=this.qg,f=this.O,
k=this.Ea,e=this.ob,h=a.T().jc(),a=a.J,g=-1<b,l,p,x,t,q,u;if(c)for(p=0,t=f.length;p<t;++p)q=f[p],q.Gc||(k[p]=q.get(0));else for(p=0,t=f.length;p<t;++p)k[p]=f[p].get(0);l=0;for(x=h.length;l<x;++l){u=h[l];if(c)for(p=0,t=f.length;p<t;++p)q=f[p],q.Gc&&(k[p]=q.get(l));g?(p=0,a&&(p=u.type.Af[d]),e.apply(u.M[b+p],k)):e.apply(u,k)}return!1};Sb=u;var t=[],z=-1;h.prototype.Ja=function(){var a,b;if(11===this.type)this.Ke=this.b.rn(this.Lh,this.gc.parent);else if(13===this.type)for(a=0,b=this.lf.length;a<b;a++)this.lf[a].Ja();
this.Zc&&this.Zc.Ja()};h.prototype.Et=function(a){this.Gc||!a||a.na.uj||(this.Gc=!0)};h.prototype.cp=function(){this.Gc=!0};h.prototype.Ss=function(a){this.Id=a||0;a=v();this.Zc.get(a);z--;return a.data};h.prototype.Ts=function(a){this.Id=a||0;a=v();this.Zc.get(a);z--;return Q(a.data)?a.data:""};h.prototype.Zs=function(){return this.object};h.prototype.Qs=function(){return this.Ym};h.prototype.Xs=function(a){this.Id=a||0;a=v();this.Zc.get(a);z--;return a.Wa()?this.b.xd(a.data):this.b.Eg(a.data)};
h.prototype.Ys=function(){return this.Xa};h.prototype.Ws=function(){return this.key};h.prototype.Vs=function(){return this.index};h.prototype.Us=function(a){a=a||0;var b=this.Dc.type,d=null,d=b.T(),c=d.jc();if(c.length)d=c[a%c.length].type;else if(d.Y.length)d=d.Y[a%d.Y.length].type;else if(b.c.length)d=b.c[a%b.c.length].type;else return 0;return this.index+d.pi[b.wd]};h.prototype.Rs=function(){return this.Ke};h.prototype.Ps=function(){return this.hn};h.prototype.$s=function(){var a,b;a=0;for(b=this.lf.length;a<
b;a++)this.Kh[a]=this.lf[a].get();return this.Kh};Tb=h;p.prototype.Ja=function(){this.qa=e(this.qa)};p.prototype.kf=function(a){var b=this.b.qn();this.parent&&!this.Tg&&b?(this.ff>=b.length&&(b.length=this.ff+1),b[this.ff]=a):this.data=a};p.prototype.Gg=function(){var a=this.b.qn();return!this.parent||this.Tg||!a||this.Ii?this.data:this.ff>=a.length||"undefined"===typeof a[this.ff]?this.Jk:a[this.ff]};p.prototype.Ra=function(){!this.parent||this.Tg||this.Ii||this.kf(this.Jk)};Nb=p;w.prototype.toString=
function(){return"include:"+this.Lg.toString()};w.prototype.Ja=function(){this.Lg=this.b.kk[this.gt];this.sheet.Bn.add(this);this.qa=e(this.qa);for(var a=this.parent;a;)a.group&&a.ci.push(this),a=a.parent;this.Dp()};w.prototype.Ra=function(){this.parent&&this.b.rh(this.b.u);this.Lg.Fk||this.Lg.Ra(!0);this.parent&&this.b.hf(this.b.u)};w.prototype.Dp=function(){for(var a=this.parent;a;){if(a.group&&!a.Ig){this.ib=!1;return}a=a.parent}this.ib=!0};Xb=w;k.prototype.reset=function(a){this.Jb=a;this.Hb=
this.Sa=0;this.pp.length=0;this.ik=this.Ye=!1};Mb=k})();
(function(){function g(a,b){this.Dc=a;this.b=a.b;this.type=b[0];this.get=[this.es,this.as,this.ps,this.ss,this.Ur,this.qs,this.ks,this.Yr,this.js,this.os,this.Vr,this.ns,this.Zr,this.ls,this.gs,this.hs,this.bs,this.cs,this.Xr,this.rs,this.ms,this.ds,this.Wr,this.$r][this.type];var c=null;this.Cd=this.O=this.Ea=this.ob=this.Aj=this.gb=this.first=this.value=null;this.Kc=-1;this.he=null;this.Kp=-1;this.Ke=this.Lh=null;this.Zf=!1;switch(this.type){case 0:case 1:case 2:this.value=b[1];break;case 3:this.first=
new Vb(a,b[1]);break;case 18:this.first=new Vb(a,b[1]);this.gb=new Vb(a,b[2]);this.Aj=new Vb(a,b[3]);break;case 19:this.ob=this.b.Od(b[1]);this.ob!==W.prototype.Pa.random&&this.ob!==W.prototype.Pa.qr||this.Dc.cp();this.Ea=[];this.O=[];3===b.length?(c=b[2],this.Ea.length=c.length+1):this.Ea.length=1;break;case 20:this.Cd=this.b.u[b[1]];this.Kc=-1;this.ob=this.b.Od(b[2]);this.Zf=b[3];ic&&this.ob===ic.prototype.Pa.Qp&&this.Dc.cp();this.he=b[4]?new Vb(a,b[4]):null;this.Ea=[];this.O=[];6===b.length?(c=
b[5],this.Ea.length=c.length+1):this.Ea.length=1;break;case 21:this.Cd=this.b.u[b[1]];this.Zf=b[2];this.he=b[3]?new Vb(a,b[3]):null;this.Kp=b[4];break;case 22:this.Cd=this.b.u[b[1]];this.Cd.wi(b[2]);this.Kc=this.Cd.uk(b[2]);this.ob=this.b.Od(b[3]);this.Zf=b[4];this.he=b[5]?new Vb(a,b[5]):null;this.Ea=[];this.O=[];7===b.length?(c=b[6],this.Ea.length=c.length+1):this.Ea.length=1;break;case 23:this.Lh=b[1],this.Ke=null}this.Dc.Et(this.Cd);4<=this.type&&17>=this.type&&(this.first=new Vb(a,b[1]),this.gb=
new Vb(a,b[2]));if(c){var e,h;e=0;for(h=c.length;e<h;e++)this.O.push(new Vb(a,c[e]))}}function l(){++c;s.length===c&&s.push(new Ub);return s[c]}function e(a,b,c){var e,h;e=0;for(h=a.length;e<h;++e)a[e].get(c),b[e+1]=c.data}function q(a,b){this.type=a||V.rf;this.data=b||0;this.gf=null;this.type==V.rf&&(this.data=Math.floor(this.data))}g.prototype.Ja=function(){23===this.type&&(this.Ke=this.Dc.b.rn(this.Lh,this.Dc.gc.parent));this.first&&this.first.Ja();this.gb&&this.gb.Ja();this.Aj&&this.Aj.Ja();this.he&&
this.he.Ja();if(this.O){var a,b;a=0;for(b=this.O.length;a<b;a++)this.O[a].Ja()}};var s=[],c=-1;g.prototype.rs=function(a){var b=this.O,g=this.Ea;g[0]=a;a=l();e(b,g,a);--c;this.ob.apply(this.b.jd,g)};g.prototype.ms=function(a){var b=this.Cd,g=this.Ea,q=this.O,h=this.he,p=this.ob,s=this.Dc.Id,k=b.T(),x=k.jc();if(!x.length)if(k.Y.length)x=k.Y;else{this.Zf?a.Ka(""):a.ka(0);return}g[0]=a;a.gf=b;a=l();e(q,g,a);h&&(h.get(a),a.Wa()&&(s=a.data,x=b.c));--c;b=x.length;if(s>=b||s<=-b)s%=b;0>s&&(s+=b);p.apply(x[s],
g)};g.prototype.Wr=function(a){var b=this.Cd,g=this.Ea,q=this.O,h=this.he,p=this.Kc,s=this.ob,k=this.Dc.Id,x=b.T(),t=x.jc();if(!t.length)if(x.Y.length)t=x.Y;else{this.Zf?a.Ka(""):a.ka(0);return}g[0]=a;a.gf=b;a=l();e(q,g,a);h&&(h.get(a),a.Wa()&&(k=a.data,t=b.c));--c;q=t.length;if(k>=q||k<=-q)k%=q;0>k&&(k+=q);k=t[k];t=0;b.J&&(t=k.type.Af[b.wd]);s.apply(k.M[p+t],g)};g.prototype.ds=function(a){var b=this.he,e=this.Cd,g=this.Kp,h=this.Dc.Id,p=e.T(),q=p.jc();if(!q.length)if(p.Y.length)q=p.Y;else{this.Zf?
a.Ka(""):a.ka(0);return}if(b){p=l();b.get(p);if(p.Wa()){h=p.data;e=e.c;h%=e.length;0>h&&(h+=e.length);g=e[h].Va[g];Q(g)?a.Ka(g):a.A(g);--c;return}--c}b=q.length;if(h>=b||h<=-b)h%=b;0>h&&(h+=b);h=q[h];q=0;e.J&&(q=h.type.pi[e.wd]);g=h.Va[g+q];Q(g)?a.Ka(g):a.A(g)};g.prototype.es=function(a){a.type=V.rf;a.data=this.value};g.prototype.as=function(a){a.type=V.qf;a.data=this.value};g.prototype.ps=function(a){a.type=V.String;a.data=this.value};g.prototype.ss=function(a){this.first.get(a);a.Wa()&&(a.data=
-a.data)};g.prototype.Ur=function(a){this.first.get(a);var b=l();this.gb.get(b);a.Wa()&&b.Wa()&&(a.data+=b.data,b.If()&&a.Sf());--c};g.prototype.qs=function(a){this.first.get(a);var b=l();this.gb.get(b);a.Wa()&&b.Wa()&&(a.data-=b.data,b.If()&&a.Sf());--c};g.prototype.ks=function(a){this.first.get(a);var b=l();this.gb.get(b);a.Wa()&&b.Wa()&&(a.data*=b.data,b.If()&&a.Sf());--c};g.prototype.Yr=function(a){this.first.get(a);var b=l();this.gb.get(b);a.Wa()&&b.Wa()&&(a.data/=b.data,a.Sf());--c};g.prototype.js=
function(a){this.first.get(a);var b=l();this.gb.get(b);a.Wa()&&b.Wa()&&(a.data%=b.data,b.If()&&a.Sf());--c};g.prototype.os=function(a){this.first.get(a);var b=l();this.gb.get(b);a.Wa()&&b.Wa()&&(a.data=Math.pow(a.data,b.data),b.If()&&a.Sf());--c};g.prototype.Vr=function(a){this.first.get(a);var b=l();this.gb.get(b);a.Wa()?b.Ki()?a.Ka(a.data.toString()+b.data):a.data&&b.data?a.ka(1):a.ka(0):a.Ki()&&(a.data=b.Ki()?a.data+b.data:a.data+(Math.round(1E10*b.data)/1E10).toString());--c};g.prototype.ns=function(a){this.first.get(a);
var b=l();this.gb.get(b);a.Wa()&&b.Wa()&&(a.data||b.data?a.ka(1):a.ka(0));--c};g.prototype.Xr=function(a){this.first.get(a);a.data?this.gb.get(a):this.Aj.get(a)};g.prototype.Zr=function(a){this.first.get(a);var b=l();this.gb.get(b);a.ka(a.data===b.data?1:0);--c};g.prototype.ls=function(a){this.first.get(a);var b=l();this.gb.get(b);a.ka(a.data!==b.data?1:0);--c};g.prototype.gs=function(a){this.first.get(a);var b=l();this.gb.get(b);a.ka(a.data<b.data?1:0);--c};g.prototype.hs=function(a){this.first.get(a);
var b=l();this.gb.get(b);a.ka(a.data<=b.data?1:0);--c};g.prototype.bs=function(a){this.first.get(a);var b=l();this.gb.get(b);a.ka(a.data>b.data?1:0);--c};g.prototype.cs=function(a){this.first.get(a);var b=l();this.gb.get(b);a.ka(a.data>=b.data?1:0);--c};g.prototype.$r=function(a){var b=this.Ke.Gg();fa(b)?a.A(b):a.Ka(b)};Vb=g;q.prototype.If=function(){return this.type===V.qf};q.prototype.Wa=function(){return this.type===V.rf||this.type===V.qf};q.prototype.Ki=function(){return this.type===V.String};
q.prototype.Sf=function(){this.If()||(this.Ki()&&(this.data=parseFloat(this.data)),this.type=V.qf)};q.prototype.ka=function(a){this.type=V.rf;this.data=Math.floor(a)};q.prototype.A=function(a){this.type=V.qf;this.data=a};q.prototype.Ka=function(a){this.type=V.String;this.data=a};q.prototype.dp=function(a){fa(a)?(this.type=V.qf,this.data=a):Q(a)?(this.type=V.String,this.data=a.toString()):(this.type=V.rf,this.data=0)};Ub=q;V={rf:0,qf:1,String:2}})();function W(g){this.b=g;this.Tb=[]}
W.prototype.ac=function(){var g={},l,e,q,s,c,a,b,u;g.waits=[];var v=g.waits,h;l=0;for(e=this.Tb.length;l<e;l++){a=this.Tb[l];h={t:a.time,st:a.kp,s:a.Sl,ev:a.zf.V,sm:[],sols:{}};a.zf.rc[a.Hb]&&(h.act=a.zf.rc[a.Hb].V);q=0;for(s=a.qa.length;q<s;q++)h.sm.push(a.qa[q].V);for(c in a.Gb)if(a.Gb.hasOwnProperty(c)){b=this.b.u[parseInt(c,10)];u={sa:a.Gb[c].rj,insts:[]};q=0;for(s=a.Gb[c].yd.length;q<s;q++)u.insts.push(a.Gb[c].yd[q].uid);h.sols[b.V.toString()]=u}v.push(h)}return g};
W.prototype.Ac=function(g){g=g.waits;var l,e,q,s,c,a,b,u,v,h,p;l=this.Tb.length=0;for(e=g.length;l<e;l++)if(a=g[l],u=this.b.Rm[a.ev.toString()]){v=-1;q=0;for(s=u.rc.length;q<s;q++)if(u.rc[q].V===a.act){v=q;break}if(-1!==v){b={Gb:{},qa:[],gk:!1};b.time=a.t;b.kp=a.st||"";b.Sl=!!a.s;b.zf=u;b.Hb=v;q=0;for(s=a.sm.length;q<s;q++)(u=this.b.Bi(a.sm[q]))&&b.qa.push(u);for(c in a.sols)if(a.sols.hasOwnProperty(c)&&(u=this.b.Bi(parseInt(c,10)))){v=a.sols[c];h={rj:v.sa,yd:[]};q=0;for(s=v.insts.length;q<s;q++)(p=
this.b.Ai(v.insts[q]))&&h.yd.push(p);b.Gb[u.index.toString()]=h}this.Tb.push(b)}}};
(function(){function g(){}function l(){}function e(){}var q=W.prototype;g.prototype.vm=function(){return!0};g.prototype.tq=function(){return!0};g.prototype.Up=function(a,b,c){return Yb(a.Gg(),b,c)};g.prototype.Yp=function(){var a=this.b.pb();return a.ik?!1:!a.Ye};g.prototype.wm=function(){return!0};g.prototype.mq=function(){return!0};g.prototype.Lj=function(){return!0};g.prototype.uq=function(){return!0};g.prototype.Kj=function(){return!0};g.prototype.Pp=function(a,b,c){return Ka(U(a),U(c))<=U(b)};
g.prototype.cq=function(a,b){return Ma(U(a),U(b))};g.prototype.aq=function(a,b,c){a=Ha(a);b=Ha(b);c=Ha(c);return Ma(c,b)?Ma(a,b)&&!Ma(a,c):!(!Ma(a,b)&&Ma(a,c))};q.d=new g;l.prototype.Zp=function(a){this.b.Lf||this.b.De||(this.b.De=a)};l.prototype.Xp=function(a,b,c,e){if(b&&a&&(b=this.b.bk(a,b,c,e))){this.b.nc++;var h;this.b.trigger(Object.getPrototypeOf(a.na).d.sf,b);if(b.Nb)for(c=0,e=b.siblings.length;c<e;c++)h=b.siblings[c],this.b.trigger(Object.getPrototypeOf(h.type.na).d.sf,h);this.b.nc--;a=a.T();
a.ca=!1;a.c.length=1;a.c[0]=b;if(b.Nb)for(c=0,e=b.siblings.length;c<e;c++)h=b.siblings[c],a=h.type.T(),a.ca=!1,a.c.length=1,a.c[0]=h}};l.prototype.Mq=function(a,b){0===a.Gj?fa(b)?a.kf(b):a.kf(parseFloat(b)):1===a.Gj&&a.kf(b.toString())};l.prototype.Op=function(a,b){0===a.Gj?fa(b)?a.kf(a.Gg()+b):a.kf(a.Gg()+parseFloat(b)):1===a.Gj&&a.kf(a.Gg()+b.toString())};var s=[],c=[];l.prototype.Wq=function(a){if(!(0>a)){var b,e,g,h=this.b.pb(),l;l=s.length?s.pop():{Gb:{},qa:[]};l.gk=!1;l.time=this.b.oc.fa+a;
l.kp="";l.Sl=!1;l.zf=h.Jb;l.Hb=h.Hb+1;a=0;for(b=this.b.u.length;a<b;a++)g=this.b.u[a],e=g.T(),e.ca&&-1===h.Jb.qa.indexOf(g)||(l.qa.push(g),g=void 0,g=c.length?c.pop():{yd:[]},g.rj=!1,g.rj=e.ca,za(g.yd,e.c),l.Gb[a.toString()]=g);this.Tb.push(l);return!0}};l.prototype.Gq=function(){if(!this.b.Lf&&!this.b.De&&this.b.ja){this.b.De=this.b.ja;var a,b,c;a=0;for(b=this.b.Rd.length;a<b;a++)c=this.b.Rd[a],c.$o(c.Ei)}};q.P=new l;e.prototype["int"]=function(a,b){Q(b)?(a.ka(parseInt(b,10)),isNaN(a.data)&&(a.data=
0)):a.ka(b)};e.prototype["float"]=function(a,b){Q(b)?(a.A(parseFloat(b)),isNaN(a.data)&&(a.data=0)):a.A(b)};e.prototype.uu=function(a,b){Q(b)?a.Ka(b):a.Ka(b.toString())};e.prototype.random=function(a,b,c){void 0===c?a.A(Math.random()*b):a.A(Math.random()*(c-b)+b)};e.prototype.sqrt=function(a,b){a.A(Math.sqrt(b))};e.prototype.abs=function(a,b){a.A(Math.abs(b))};e.prototype.round=function(a,b){a.ka(Math.round(b))};e.prototype.floor=function(a,b){a.ka(Math.floor(b))};e.prototype.ceil=function(a,b){a.ka(Math.ceil(b))};
e.prototype.sin=function(a,b){a.A(Math.sin(U(b)))};e.prototype.cos=function(a,b){a.A(Math.cos(U(b)))};e.prototype.tan=function(a,b){a.A(Math.tan(U(b)))};e.prototype.asin=function(a,b){a.A(Da(Math.asin(b)))};e.prototype.acos=function(a,b){a.A(Da(Math.acos(b)))};e.prototype.atan=function(a,b){a.A(Da(Math.atan(b)))};e.prototype.exp=function(a,b){a.A(Math.exp(b))};e.prototype.log10=function(a,b){a.A(Math.log(b)/Math.LN10)};e.prototype.max=function(a){var b=arguments[1];"number"!==typeof b&&(b=0);var c,
e,h;c=2;for(e=arguments.length;c<e;c++)h=arguments[c],"number"===typeof h&&b<h&&(b=h);a.A(b)};e.prototype.min=function(a){var b=arguments[1];"number"!==typeof b&&(b=0);var c,e,h;c=2;for(e=arguments.length;c<e;c++)h=arguments[c],"number"===typeof h&&b>h&&(b=h);a.A(b)};e.prototype.He=function(a){a.A(this.b.He)};e.prototype.ig=function(a){a.A(this.b.ig)};e.prototype.time=function(a){a.A(this.b.oc.fa)};e.prototype.hg=function(a){a.ka(this.b.hg)};e.prototype.aj=function(a){a.ka(this.b.aj)};e.prototype.rk=
function(a){a.ka(this.b.rk)};e.prototype.j=function(a,b,c,e,h){a.A(Da(Ia(b,c,e,h)))};e.prototype.find=function(a,b,c){Q(b)&&Q(c)?a.ka(b.search(new RegExp(ab(c),"i"))):a.ka(-1)};e.prototype.left=function(a,b,c){a.Ka(Q(b)?b.substr(0,c):"")};e.prototype.right=function(a,b,c){a.Ka(Q(b)?b.substr(b.length-c):"")};e.prototype.replace=function(a,b,c,e){Q(b)&&Q(c)&&Q(e)?a.Ka(b.replace(new RegExp(ab(c),"gi"),e)):a.Ka(Q(b)?b:"")};e.prototype.trim=function(a,b){a.Ka(Q(b)?b.trim():"")};e.prototype.qr=function(a){var b=
R(Math.random()*(arguments.length-1));a.dp(arguments[b+1])};e.prototype.ak=function(a){a.A(this.b.ak/1E3)};e.prototype.Qf=function(a){a.A(this.b.Qf)};q.Pa=new e;q.gu=function(){var a,b,e,g,h,l,q=this.b.pb();a=0;for(e=this.Tb.length;a<e;a++){g=this.Tb[a];if(-1===g.time){if(!g.Sl)continue}else if(g.time>this.b.oc.fa)continue;q.Jb=g.zf;q.Hb=g.Hb;q.Sa=0;for(b in g.Gb)g.Gb.hasOwnProperty(b)&&(h=this.b.u[parseInt(b,10)].T(),l=g.Gb[b],h.ca=l.rj,za(h.c,l.yd),h=l,h.yd.length=0,c.push(h));g.zf.eu();this.b.Zj(g.qa);
g.gk=!0}b=a=0;for(e=this.Tb.length;a<e;a++)g=this.Tb[a],this.Tb[b]=g,g.gk?(Va(g.Gb),g.qa.length=0,s.push(g)):b++;this.Tb.length=b}})();
(function(){kb=function(g,e){var q=g[1],s=g[3],c=g[4],a=g[5],b=g[6],u=g[7],v=g[8];e.d||(e.d={});e.P||(e.P={});e.Pa||(e.Pa={});var h=e.d,p=e.P,w=e.Pa;s&&(h.Vp=function(a,b){return Yb(this.x,a,b)},h.Wp=function(a,b){return Yb(this.y,a,b)},h.Uu=function(){var a=this.n;this.ta();var b=this.Ga;return!(b.right<a.za||b.bottom<a.Aa||b.left>a.Ma||b.top>a.La)},h.dq=function(){this.ta();var a=this.Ga,b=this.b.ja;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},h.hv=function(a,b,c){var e=this.T(),
h=e.jc();if(!h.length)return!1;var g=h[0],d=g,m=Oa(g.x,g.y,b,c),f,l,p;f=1;for(l=h.length;f<l;f++)if(g=h[f],p=Oa(g.x,g.y,b,c),0===a&&p<m||1===a&&p>m)m=p,d=g;e.ph(d);return!0},p.Ev=function(a){this.x!==a&&(this.x=a,this.L())},p.Nq=function(a){this.y!==a&&(this.y=a,this.L())},p.yv=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.L()},p.zv=function(a,b){var c=a.Is(this);if(c){var e;c.Dg?(e=c.Dg(b,!0),c=c.Dg(b,!1)):(e=c.x,c=c.y);if(this.x!==e||this.y!==c)this.x=e,this.y=c,this.L()}},p.Zu=
function(a){0!==a&&(this.x+=Math.cos(this.j)*a,this.y+=Math.sin(this.j)*a,this.L())},p.Yu=function(a,b){0!==b&&(this.x+=Math.cos(U(a))*b,this.y+=Math.sin(U(a))*b,this.L())},w.Em=function(a){a.A(this.x)},w.Fm=function(a){a.A(this.y)},w.He=function(a){a.A(this.b.xi(this))});c&&(h.Pu=function(a,b){return Yb(this.width,a,b)},h.Mu=function(a,b){return Yb(this.height,a,b)},p.Dv=function(a){this.width!==a&&(this.width=a,this.L())},p.vv=function(a){this.height!==a&&(this.height=a,this.L())},p.Av=function(a,
b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.L()},w.Iv=function(a){a.A(this.width)},w.Ru=function(a){a.A(this.height)},w.Ju=function(a){this.ta();a.A(this.Ga.left)},w.Lu=function(a){this.ta();a.A(this.Ga.top)},w.Ku=function(a){this.ta();a.A(this.Ga.right)},w.Iu=function(a){this.ta();a.A(this.Ga.bottom)});a&&(h.Pp=function(a,b){return Ka(this.j,U(b))<=U(a)},h.cq=function(a){return Ma(this.j,U(a))},h.aq=function(a,b){var c=Ha(a),e=Ha(b),h=Fa(this.j);return Ma(e,c)?Ma(h,c)&&
!Ma(h,e):!(!Ma(h,c)&&Ma(h,e))},p.rv=function(a){a=U(Ea(a));isNaN(a)||this.j===a||(this.j=a,this.L())},p.nv=function(a){0===a||isNaN(a)||(this.j+=U(a),this.j=Fa(this.j),this.L())},p.ov=function(a){0===a||isNaN(a)||(this.j-=U(a),this.j=Fa(this.j),this.L())},p.pv=function(a,b){var c=La(this.j,U(b),U(a));isNaN(c)||this.j===c||(this.j=c,this.L())},p.qv=function(a,b,c){a=La(this.j,Math.atan2(c-this.y,b-this.x),U(a));isNaN(a)||this.j===a||(this.j=a,this.L())},p.Bv=function(a,b){var c=Math.atan2(b-this.y,
a-this.x);isNaN(c)||this.j===c||(this.j=c,this.L())},w.Hu=function(a){a.A(Ga(this.j))});q||(h.Nu=function(a,b,c){return Yb(this.Va[a],b,c)},h.bq=function(a){return this.Va[a]},h.jv=function(a,b){var c=this.T(),e=c.jc();if(!e.length)return!1;var h=e[0],g=h,d=h.Va[b],m,f,l;m=1;for(f=e.length;m<f;m++)if(h=e[m],l=h.Va[b],0===a&&l<d||1===a&&l>d)d=l,g=h;c.ph(g);return!0},h.gv=function(a){var b,c,e,h,g;if(this.b.pn().Mk){g=this.T();if(g.ca)for(g.ca=!1,g.c.length=0,g.Y.length=0,e=this.c,b=0,c=e.length;b<
c;b++)h=e[b],h.uid===a?g.Y.push(h):g.c.push(h);else{e=b=0;for(c=g.c.length;b<c;b++)h=g.c[b],g.c[e]=h,h.uid===a?g.Y.push(h):e++;g.c.length=e}this.Jc();return!!g.c.length}h=this.b.Ai(a);if(!h)return!1;g=this.T();if(!g.ca&&-1===g.c.indexOf(h))return!1;if(this.J)for(a=h.type.wa,b=0,c=a.length;b<c;b++){if(a[b]===this)return g.ph(h),this.Jc(),!0}else if(h.type===this)return g.ph(h),this.Jc(),!0;return!1},h.sf=function(){return!0},h.oq=function(){return!0},p.wv=function(a,b){var c=this.Va;fa(c[a])?c[a]=
fa(b)?b:parseFloat(b):Q(c[a])&&(c[a]=Q(b)?b:b.toString())},p.Gu=function(a,b){var c=this.Va;fa(c[a])?c[a]=fa(b)?c[a]+b:c[a]+parseFloat(b):Q(c[a])&&(c[a]=Q(b)?c[a]+b:c[a]+b.toString())},p.Fv=function(a,b){var c=this.Va;fa(c[a])&&(c[a]=fa(b)?c[a]-b:c[a]-parseFloat(b))},p.Jq=function(a,b){this.Va[a]=b?1:0},p.Gv=function(a){this.Va[a]=1-this.Va[a]},p.tm=function(){this.b.ze(this)},p.gq||(p.gq=function(a){var b,c;try{b=JSON.parse(a)}catch(e){return}this.b.Ti(this,b,!0);this.Qd&&this.Qd();if(this.M)for(a=
0,b=this.M.length;a<b;++a)c=this.M[a],c.Qd&&c.Qd()}),w.Qu=function(a){var b=a.gf.c.length,c,e,h;c=0;for(e=this.b.Lc.length;c<e;c++)h=this.b.Lc[c],a.gf.J?0<=h.type.wa.indexOf(a.gf)&&b++:h.type===a.gf&&b++;a.ka(b)},w.lv=function(a){a.ka(a.gf.T().jc().length)},w.Hv=function(a){a.ka(this.uid)},w.Su=function(a){a.ka(this.Hg())},w.rm||(w.rm=function(a){a.Ka(JSON.stringify(this.b.Ml(this,!0)))}));b&&(h.Vu=function(){return this.visible},p.Cv=function(a){!a!==!this.visible&&(this.visible=a,this.b.pa=!0)},
h.Ou=function(a,b){return Yb(gb(100*this.opacity),a,b)},p.xv=function(a){a/=100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.pa=!0)},w.Opacity=function(a){a.A(gb(100*this.opacity))});u&&(h.Tu=function(a){return a?this.n===a:!1},h.kv=function(a){var b=this.T(),c=b.jc();if(!c.length)return!1;var e=c[0],h=e,g,d;g=1;for(d=c.length;g<d;g++)if(e=c[g],0===a){if(e.n.index>h.n.index||e.n.index===h.n.index&&e.bd()>h.bd())h=e}else if(e.n.index<h.n.index||e.n.index===h.n.index&&e.bd()<h.bd())h=
e;b.ph(h);return!0},p.bv=function(){var a=this.n,b=a.c;b.length&&b[b.length-1]===this||(a.Yf(this,!1),a.sg(this,!1),this.b.pa=!0)},p.$u=function(){var a=this.n,b=a.c;b.length&&b[0]===this||(a.Yf(this,!1),a.Ut(this),this.b.pa=!0)},p.av=function(a){a&&a!=this.n&&(this.n.Yf(this,!0),this.n=a,a.sg(this,!0),this.b.pa=!0)},p.Kv=function(a,b){var c=0===a;if(b){var e=b.Ds(this);e&&e.uid!==this.uid&&(this.n.index!==e.n.index&&(this.n.Yf(this,!0),this.n=e.n,e.n.sg(this,!0)),this.n.Ft(this,e,c),this.b.pa=!0)}},
w.Xu=function(a){a.ka(this.n.to)},w.Wu=function(a){a.Ka(this.n.name)},w.Jv=function(a){a.ka(this.bd())});v&&(p.tv=function(a,b){if(this.b.C){var c=this.type.xk(b);if(!(0>c)){var e=1===a;this.Pd[c]!==e&&(this.Pd[c]=e,this.Ld(),this.b.pa=!0)}}},p.uv=function(a,b,c){if(this.b.C){var e=this.type.xk(a);0>e||(a=this.type.I[e],e=this.Da[e],b=Math.floor(b),0>b||b>=e.length||(1===this.b.C.Ms(a.ub,b)&&(c/=100),e[b]!==c&&(e[b]=c,a.ib&&(this.b.pa=!0))))}})};Eb=function(){this.Vj=this.Rj=!0;this.type.Ph=!0;this.b.pa=
!0;var g,e,q=this.Sj;g=0;for(e=q.length;g<e;++g)q[g](this);this.n.Xc&&this.ta()};Fb=function(g){g&&this.Sj.push(g)};Hb=function(){if(this.Rj){var g=this.Ga,e=this.hc;g.set(this.x,this.y,this.x+this.width,this.y+this.height);g.offset(-this.Lb*this.width,-this.Mb*this.height);this.j?(g.offset(-this.x,-this.y),e.fp(g,this.j),e.offset(this.x,this.y),e.Sm(g)):e.yh(g);g.normalize();this.Rj=!1;this.Bu()}};var g=new ta(0,0,0,0);Ib=function(){if(this.n.Xc){var l=this.n.$b,e=this.Ga;g.set(l.ec(e.left),l.fc(e.top),
l.ec(e.right),l.fc(e.bottom));this.Rb.ni(g)||(this.Rb.right<this.Rb.left?l.update(this,null,g):l.update(this,this.Rb,g),this.Rb.ei(g),this.n.Fd=!0)}};Jb=function(){if(this.Vj&&this.qd){this.ta();var l=this.type.bi,e=this.Ga;g.set(l.ec(e.left),l.fc(e.top),l.ec(e.right),l.fc(e.bottom));this.Zd.ni(g)||(this.Zd.right<this.Zd.left?l.update(this,null,g):l.update(this,this.Zd,g),this.Zd.ei(g),this.Vj=!1)}};Gb=function(g,e){return this.Ga.Cb(g,e)&&this.hc.Cb(g,e)?this.da&&!this.da.Hf()?(this.da.wf(this.width,
this.height,this.j),this.da.Cb(g-this.x,e-this.y)):!0:!1};Ab=function(){this.type.Fj();return this.Qe};Kb=function(){this.n.km();return this.Yc};Lb=function(){this.aa.length=0;var g,e;g=0;for(e=this.Pd.length;g<e;g++)this.Pd[g]&&this.aa.push(this.type.I[g]);this.Ip=!!this.aa.length};Bb=function(){return"Inst"+this.Ro};nb=function(g){if(g&&g.Nb&&g.type!=this){var e,q,s;e=0;for(q=g.siblings.length;e<q;e++)if(s=g.siblings[e],s.type==this)return s}g=this.T().jc();return g.length?g[0]:null};ob=function(g){var e=
this.T().jc();return e.length?e[g.Hg()%e.length]:null};mb=function(){if(this.fg&&!this.J){var g,e;g=0;for(e=this.c.length;g<e;g++)this.c[g].Qe=g;var q=g,s=this.b.Lc;g=0;for(e=s.length;g<e;++g)s[g].type===this&&(s[g].Qe=q++);this.fg=!1}};yb=function(g){if(g<this.c.length)return this.c[g];g-=this.c.length;var e=this.b.Lc,q,s;q=0;for(s=e.length;q<s;++q)if(e[q].type===this){if(0===g)return e[q];--g}return null};pb=function(){return this.ue[this.ud]};qb=function(){this.ud++;this.ud===this.ue.length?this.ue.push(new lb(this)):
this.ue[this.ud].ca=!0};rb=function(){this.ud++;this.ud===this.ue.length&&this.ue.push(new lb(this));var g=this.ue[this.ud],e=this.ue[this.ud-1];e.ca?g.ca=!0:(g.ca=!1,za(g.c,e.c),za(g.Y,e.Y))};sb=function(){this.ud--};tb=function(g){var e,q,s,c,a,b=0;if(!this.J)for(e=0,q=this.wa.length;e<q;e++)for(a=this.wa[e],s=0,c=a.Na.length;s<c;s++){if(g===a.Na[s].name)return this.ba.lastBehIndex=b,a.Na[s];b++}e=0;for(q=this.Na.length;e<q;e++){if(g===this.Na[e].name)return this.ba.lastBehIndex=b,this.Na[e];b++}return null};
ub=function(g){return this.wi(g)?this.ba.lastBehIndex:-1};wb=function(g){var e,q;e=0;for(q=this.I.length;e<q;e++)if(this.I[e].name===g)return e;return-1};xb=function(){if(this.Nb&&!this.J){var g,e,q,s,c,a,b;this.Fj();a=this.T();var u=a.ca,v=(g=this.b.pb())&&g.Jb&&g.Jb.Qc;g=0;for(e=this.Vb.length;g<e;g++)if(c=this.Vb[g],c!==this&&(c.Fj(),b=c.T(),b.ca=u,!u)){b.c.length=a.c.length;q=0;for(s=a.c.length;q<s;q++)b.c[q]=c.sn(a.c[q].Qe);if(v)for(b.Y.length=a.Y.length,q=0,s=a.Y.length;q<s;q++)b.Y[q]=c.sn(a.Y[q].Qe)}}};
zb=function(){return"Type"+this.V};Yb=function(g,e,q){if("undefined"===typeof g||"undefined"===typeof q)return!1;switch(e){case 0:return g===q;case 1:return g!==q;case 2:return g<q;case 3:return g<=q;case 4:return g>q;case 5:return g>=q;default:return!1}}})();var fc={};function jc(g){this.b=g}
(function(){function g(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function l(a){a=a.toLowerCase();return T.hasOwnProperty(a)&&T[a].length?T[a][0].ic():A.destination}function e(){return A.createGain?A.createGain():A.createGainNode()}function q(a){return A.createDelay?A.createDelay(a):A.createDelayNode(a)}function s(a){a.start?a.start(0):a.noteOn(0)}function c(a,b,d){a.start?a.start(0,b):a.noteGrainOn(0,b,d-b)}function a(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}function b(a,
b,d,c,f,g){this.type="filter";this.tb=[a,b,d,c,f,g];this.X=e();this.H=e();this.H.gain.value=g;this.F=e();this.F.gain.value=1-g;this.Qa=A.createBiquadFilter();this.Qa.type="number"===typeof this.Qa.type?a:sc[a];this.Qa.frequency.value=b;this.Qa.detune&&(this.Qa.detune.value=d);this.Qa.Q.value=c;this.Qa.gain.value=f;this.X.connect(this.Qa);this.X.connect(this.F);this.Qa.connect(this.H)}function u(a,b,d){this.type="delay";this.tb=[a,b,d];this.X=e();this.H=e();this.H.gain.value=d;this.F=e();this.F.gain.value=
1-d;this.gh=e();this.wc=q(a);this.wc.delayTime.value=a;this.li=e();this.li.gain.value=b;this.X.connect(this.gh);this.X.connect(this.F);this.gh.connect(this.H);this.gh.connect(this.wc);this.wc.connect(this.li);this.li.connect(this.gh)}function v(a,b,d,c){this.type="convolve";this.tb=[b,d,c];this.X=e();this.H=e();this.H.gain.value=d;this.F=e();this.F.gain.value=1-d;this.Ee=A.createConvolver();a&&(this.Ee.normalize=b,this.Ee.buffer=a);this.X.connect(this.Ee);this.X.connect(this.F);this.Ee.connect(this.H)}
function h(a,b,d,c,f){this.type="flanger";this.tb=[a,b,d,c,f];this.X=e();this.F=e();this.F.gain.value=1-f/2;this.H=e();this.H.gain.value=f/2;this.qi=e();this.qi.gain.value=c;this.wc=q(a+b);this.wc.delayTime.value=a;this.fb=A.createOscillator();this.fb.frequency.value=d;this.Zb=e();this.Zb.gain.value=b;this.X.connect(this.wc);this.X.connect(this.F);this.wc.connect(this.H);this.wc.connect(this.qi);this.qi.connect(this.wc);this.fb.connect(this.Zb);this.Zb.connect(this.wc.delayTime);s(this.fb)}function p(a,
b,d,c,f,g){this.type="phaser";this.tb=[a,b,d,c,f,g];this.X=e();this.F=e();this.F.gain.value=1-g/2;this.H=e();this.H.gain.value=g/2;this.Qa=A.createBiquadFilter();this.Qa.type="number"===typeof this.Qa.type?7:"allpass";this.Qa.frequency.value=a;this.Qa.detune&&(this.Qa.detune.value=b);this.Qa.Q.value=d;this.fb=A.createOscillator();this.fb.frequency.value=f;this.Zb=e();this.Zb.gain.value=c;this.X.connect(this.Qa);this.X.connect(this.F);this.Qa.connect(this.H);this.fb.connect(this.Zb);this.Zb.connect(this.Qa.frequency);
s(this.fb)}function w(a){this.type="gain";this.tb=[a];this.Z=e();this.Z.gain.value=a}function k(a,b){this.type="tremolo";this.tb=[a,b];this.Z=e();this.Z.gain.value=1-b/2;this.fb=A.createOscillator();this.fb.frequency.value=a;this.Zb=e();this.Zb.gain.value=b/2;this.fb.connect(this.Zb);this.Zb.connect(this.Z.gain);s(this.fb)}function x(a,b){this.type="ringmod";this.tb=[a,b];this.X=e();this.H=e();this.H.gain.value=b;this.F=e();this.F.gain.value=1-b;this.vh=e();this.vh.gain.value=0;this.fb=A.createOscillator();
this.fb.frequency.value=a;this.fb.connect(this.vh.gain);s(this.fb);this.X.connect(this.vh);this.X.connect(this.F);this.vh.connect(this.H)}function t(a,b,d,c,f){this.type="distortion";this.tb=[a,b,d,c,f];this.X=e();this.ij=e();this.hj=e();this.nu(d,Math.pow(10,c/20));this.H=e();this.H.gain.value=f;this.F=e();this.F.gain.value=1-f;this.Hj=A.createWaveShaper();this.ji=new Float32Array(65536);this.zs(a,b);this.Hj.ji=this.ji;this.X.connect(this.ij);this.X.connect(this.F);this.ij.connect(this.Hj);this.Hj.connect(this.hj);
this.hj.connect(this.H)}function z(a,b,d,c,f){this.type="compressor";this.tb=[a,b,d,c,f];this.Z=A.createDynamicsCompressor();try{this.Z.threshold.value=a,this.Z.knee.value=b,this.Z.ratio.value=d,this.Z.attack.value=c,this.Z.release.value=f}catch(e){}}function n(a,b){this.type="analyser";this.tb=[a,b];this.Z=A.createAnalyser();this.Z.fftSize=a;this.Z.smoothingTimeConstant=b;this.xs=new Float32Array(this.Z.frequencyBinCount);this.ip=new Uint8Array(a);this.oh=0}function r(){this.G=null;this.Wi=0;this.ve=
[];this.hl=this.Ni=this.Mi=0}function d(a,b){this.src=a;this.K=E;this.Oc=b;this.Nm=!1;var d=this;this.fl=this.xl=null;this.Xf=[];this.sj=0;this.om=this.nk=this.op=this.dj=!1;1===E&&b&&(this.K=0,this.xl=e());this.Be=this.ga=null;var c;switch(this.K){case 0:this.ga=new Audio;this.ga.addEventListener("canplaythrough",function(){d.om=!0});1===E&&A.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.op=!0,this.ga.addEventListener("canplay",function(){d.fl||(d.fl=A.createMediaElementSource(d.ga),
d.fl.connect(d.xl))}));this.ga.autoplay=!1;this.ga.Uv="auto";this.ga.src=a;break;case 1:c=new XMLHttpRequest;c.open("GET",a,!0);c.responseType="arraybuffer";c.onload=function(){d.Be=c.response;d.xr()};c.onerror=function(){d.nk=!0};c.send();break;case 2:this.ga=!0;break;case 3:this.ga=!0}}function m(a,b){var d=this;this.tag=b;this.cc=this.ad=!0;this.src=a.src;this.buffer=a;this.K=E;this.Oc=a.Oc;this.playbackRate=1;this.$j=!0;this.zc=this.Gd=!1;this.Sb=0;this.Sg=this.Jf=this.dd=!1;this.volume=1;this.Ve=
1===F&&!this.Oc||2===F;this.Uf=1;this.startTime=this.Ve?I.oc.fa:I.md.fa;this.Ia=this.Ta=null;this.ed=!1;this.Ha=null;this.Ho=this.Go=this.Fo=this.Eo=this.Jo=this.Io=0;this.m=null;var c=!1;1!==this.K||0!==this.buffer.K||this.buffer.op||(this.K=0);switch(this.K){case 0:this.Oc?(this.m=a.ga,c=!a.Nm,a.Nm=!0):(this.m=new Audio,this.m.autoplay=!1,this.m.src=a.ga.src,c=!0);c&&this.m.addEventListener("ended",function(){xa=d.tag;d.cc=!0;I.trigger(jc.prototype.d.Jj,y)});break;case 1:this.Ta=e();this.Ta.connect(l(b));
1===this.buffer.K?a.ga&&(this.m=A.createBufferSource(),this.m.buffer=a.ga,this.m.connect(this.Ta)):(this.m=this.buffer.ga,this.buffer.xl.connect(this.Ta));break;case 2:this.m=new window.Media(S+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(d.$j=!0,d.cc=!0,xa=d.tag,I.trigger(jc.prototype.d.Jj,y))});break;case 3:this.m=!0}}function f(a,b){T.hasOwnProperty(a)?T[a].push(b):T[a]=[b];var d,c,f,e,g=A.destination;if(T.hasOwnProperty(a)&&(f=T[a],f.length))for(g=f[0].ic(),d=0,c=f.length;d<
c;d++)e=f[d],d+1===c?e.sc(A.destination):e.sc(f[d+1].ic());Ja.length=0;if(a.length)for(d=0,c=K.length;d<c;d++)f=K[d],hb(a,f.tag)&&Ja.push(f);else L&&!L.Pe()&&(Ja.length=1,Ja[0]=L);d=0;for(c=Ja.length;d<c;d++)Ja[d].au(g);ga&&vb===a&&(ga.disconnect(),ga.connect(g))}function B(){}function O(){}var D=jc.prototype;D.ua=function(a){this.na=a;this.b=a.b};D.ua.prototype.U=function(){};var I=null,y=null,xa="",S="",E=0,A=null,X=[],K=[],L=null,C=!1,F=0,M=!1,G=1,J=0,H=0,oa=1,P=1,ra=10,ka=1E4,va=1,ga=null,vb=
"",Ra=!1,Sa=[],T={},sc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");b.prototype.sc=function(a){this.H.disconnect();this.H.connect(a);this.F.disconnect();this.F.connect(a)};b.prototype.remove=function(){this.X.disconnect();this.Qa.disconnect();this.H.disconnect();this.F.disconnect()};b.prototype.ic=function(){return this.X};u.prototype.sc=function(a){this.H.disconnect();this.H.connect(a);this.F.disconnect();this.F.connect(a)};u.prototype.remove=function(){this.X.disconnect();
this.gh.disconnect();this.wc.disconnect();this.li.disconnect();this.H.disconnect();this.F.disconnect()};u.prototype.ic=function(){return this.X};v.prototype.sc=function(a){this.H.disconnect();this.H.connect(a);this.F.disconnect();this.F.connect(a)};v.prototype.remove=function(){this.X.disconnect();this.Ee.disconnect();this.H.disconnect();this.F.disconnect()};v.prototype.ic=function(){return this.X};h.prototype.sc=function(a){this.F.disconnect();this.F.connect(a);this.H.disconnect();this.H.connect(a)};
h.prototype.remove=function(){this.X.disconnect();this.wc.disconnect();this.fb.disconnect();this.Zb.disconnect();this.F.disconnect();this.H.disconnect();this.qi.disconnect()};h.prototype.ic=function(){return this.X};p.prototype.sc=function(a){this.F.disconnect();this.F.connect(a);this.H.disconnect();this.H.connect(a)};p.prototype.remove=function(){this.X.disconnect();this.Qa.disconnect();this.fb.disconnect();this.Zb.disconnect();this.F.disconnect();this.H.disconnect()};p.prototype.ic=function(){return this.X};
w.prototype.sc=function(a){this.Z.disconnect();this.Z.connect(a)};w.prototype.remove=function(){this.Z.disconnect()};w.prototype.ic=function(){return this.Z};k.prototype.sc=function(a){this.Z.disconnect();this.Z.connect(a)};k.prototype.remove=function(){this.fb.disconnect();this.Zb.disconnect();this.Z.disconnect()};k.prototype.ic=function(){return this.Z};x.prototype.sc=function(a){this.H.disconnect();this.H.connect(a);this.F.disconnect();this.F.connect(a)};x.prototype.remove=function(){this.fb.disconnect();
this.vh.disconnect();this.X.disconnect();this.H.disconnect();this.F.disconnect()};x.prototype.ic=function(){return this.X};t.prototype.nu=function(a,b){.01>a&&(a=.01);this.ij.gain.value=a;this.hj.gain.value=Math.pow(1/a,.6)*b};t.prototype.shape=function(a,b,d){var c=1.05*d*b-b;d=0>a?-1:1;a=0>a?-a:a;b=a<b?a:b+c*(1-Math.exp(-(1/c)*(a-b)));return b*d};t.prototype.zs=function(a,b){for(var d=Math.pow(10,a/20),c=Math.pow(10,b/20),f=0,e=0;32768>e;++e)f=e/32768,f=this.shape(f,d,c),this.ji[32768+e]=f,this.ji[32768-
e-1]=-f};t.prototype.sc=function(a){this.H.disconnect();this.H.connect(a);this.F.disconnect();this.F.connect(a)};t.prototype.remove=function(){this.X.disconnect();this.ij.disconnect();this.Hj.disconnect();this.hj.disconnect();this.H.disconnect();this.F.disconnect()};t.prototype.ic=function(){return this.X};z.prototype.sc=function(a){this.Z.disconnect();this.Z.connect(a)};z.prototype.remove=function(){this.Z.disconnect()};z.prototype.ic=function(){return this.Z};n.prototype.hb=function(){this.Z.getFloatFrequencyData(this.xs);
this.Z.getByteTimeDomainData(this.ip);for(var a=this.Z.fftSize,b=0,d=this.oh=0,c=0;b<a;b++)c=(this.ip[b]-128)/128,0>c&&(c=-c),this.oh<c&&(this.oh=c),d+=c*c;this.oh=g(this.oh);g(Math.sqrt(d/a))};n.prototype.sc=function(a){this.Z.disconnect();this.Z.connect(a)};n.prototype.remove=function(){this.Z.disconnect()};n.prototype.ic=function(){return this.Z};r.prototype.wh=function(a){if(this.G=a)this.Mi=this.G.x,this.Ni=this.G.y;this.ve.length=0};r.prototype.Di=function(){return!!this.G};r.prototype.hb=function(a){this.G&&
0!==a&&(this.hl=Ia(this.Mi,this.Ni,this.G.x,this.G.y),a=Oa(this.Mi,this.Ni,this.G.x,this.G.y)/a,4>this.ve.length||this.ve.shift(),this.ve.push(a),this.Mi=this.G.x,this.Ni=this.G.y)};r.prototype.wn=function(){if(!this.ve.length)return 0;var a,b,d=0;a=0;for(b=this.ve.length;a<b;a++)d+=this.ve[a];return d/this.ve.length};r.prototype.Ak=function(){return Math.cos(this.hl)*this.wn()};r.prototype.Bk=function(){return Math.sin(this.hl)*this.wn()};var qc=!1;d.prototype.xr=function(){if(!this.ga&&this.Be){var a=
this;if(A.decodeAudioData)A.decodeAudioData(this.Be,function(b){a.ga=b;a.Be=null;var d,c,f;if(ea(a.ej)||M)ea(a.di)||(d=a.di.Ee,d.normalize=a.so,d.buffer=b);else if(a.Xf.length){d=0;for(c=a.Xf.length;d<c;d++){b=a.Xf[d];f=new m(a,b.sp);f.Ql(!0);if("undefined"!==typeof b.uo&&(b.G=I.Ai(b.uo),!b.G))continue;if(b.G){var e=Na(b.G.x,b.G.y,-b.G.n.cb(),J,H,!0),g=Na(b.G.x,b.G.y,-b.G.n.cb(),J,H,!1);f.Pl(e,g,Da(b.G.j-b.G.n.cb()),b.Gk,b.kl,b.nl);f.wh(b.G)}else f.Pl(b.x,b.y,b.Zq,b.Gk,b.kl,b.nl);f.play(a.cl,a.nm,
a.sj);a.dj&&f.pause();K.push(f)}a.Xf.length=0}else f=new m(a,a.ej),f.play(a.cl,a.nm,a.sj),a.dj&&f.pause(),K.push(f)},function(){a.nk=!0});else if(this.ga=A.createBuffer(this.Be,!1),this.Be=null,ea(this.ej)||M)ea(this.di)||(b=this.di.Ee,b.normalize=this.so,b.buffer=this.ga);else{var b=new m(this,this.ej);b.play(this.cl,this.nm,this.sj);this.dj&&b.pause();K.push(b)}}};d.prototype.Hn=function(){switch(this.K){case 0:var a=4<=this.ga.readyState;a&&(this.om=!0);return a||this.om;case 1:return!!this.Be||
!!this.ga;case 2:return!0;case 3:return!0}return!1};d.prototype.ot=function(){switch(this.K){case 0:return this.Hn();case 1:return!!this.ga;case 2:return!0;case 3:return!0}return!1};d.prototype.ft=function(){switch(this.K){case 0:return!!this.ga.error;case 1:return this.nk}return!1};m.prototype.Pe=function(){var a;switch(this.K){case 0:return this.m.ended;case 1:if(1===this.buffer.K){if(!this.ad&&!this.cc&&this.m.loop||this.zc)return!1;a=this.Ve?I.oc.fa:I.md.fa;var b=this.playbackRate;0===b&&(b=1E-6);
return a-this.startTime>this.buffer.ga.duration/b}return this.m.ended;case 2:return this.$j;case 3:!0}return!0};m.prototype.nr=function(){return this.ad||this.cc?!0:this.Pe()};m.prototype.Ql=function(a){1===E&&(!this.ed&&a?this.Ta&&(this.Ia||(this.Ia=A.createPanner(),this.Ia.panningModel="number"===typeof this.Ia.panningModel?oa:["equalpower","HRTF","soundfield"][oa],this.Ia.distanceModel="number"===typeof this.Ia.distanceModel?P:["linear","inverse","exponential"][P],this.Ia.refDistance=ra,this.Ia.maxDistance=
ka,this.Ia.rolloffFactor=va),this.Ta.disconnect(),this.Ta.connect(this.Ia),this.Ia.connect(l(this.tag)),this.ed=!0):this.ed&&!a&&this.Ta&&(this.Ia.disconnect(),this.Ta.disconnect(),this.Ta.connect(l(this.tag)),this.ed=!1))};m.prototype.Pl=function(a,b,d,c,f,e){this.ed&&1===E&&(this.Ia.setPosition(a,b,0),this.Ia.setOrientation(Math.cos(U(d)),Math.sin(U(d)),0),this.Ia.coneInnerAngle=c,this.Ia.coneOuterAngle=f,this.Ia.coneOuterGain=e,this.Io=a,this.Jo=b,this.Eo=d,this.Fo=c,this.Go=f,this.Ho=e)};m.prototype.wh=
function(a){this.ed&&1===E&&(this.Ha||(this.Ha=new r),this.Ha.wh(a))};m.prototype.hb=function(a){if(this.ed&&1===E&&this.Ha&&this.Ha.Di()&&this.Ff()){this.Ha.hb(a);a=this.Ha.G;var b=Na(a.x,a.y,-a.n.cb(),J,H,!0),d=Na(a.x,a.y,-a.n.cb(),J,H,!1);this.Ia.setPosition(b,d,0);b=0;"undefined"!==typeof this.Ha.G.j&&(b=a.j-a.n.cb(),this.Ia.setOrientation(Math.cos(b),Math.sin(b),0));b=Na(this.Ha.Ak(),this.Ha.Bk(),-a.n.cb(),0,0,!0);d=Na(this.Ha.Ak(),this.Ha.Bk(),-a.n.cb(),0,0,!1);this.Ia.setVelocity(b,d,0)}};
m.prototype.play=function(a,b,d){var f=this.m;this.dd=a;this.volume=b;d=d||0;switch(this.K){case 0:1!==f.playbackRate&&(f.playbackRate=1);f.volume!==b*G&&(f.volume=b*G);f.loop!==a&&(f.loop=a);f.muted&&(f.muted=!1);if(f.currentTime!==d)try{f.currentTime=d}catch(e){}if(this.Oc&&Ra&&!I.rb)Sa.push(this);else try{this.m.play()}catch(g){console&&console.log&&console.log("[C2] WARNING: exception trying to play audio '"+this.buffer.src+"': ",g)}break;case 1:this.muted=!1;this.Uf=1;if(1===this.buffer.K)this.Ta.gain.value=
b*G,this.ad||(this.m=A.createBufferSource(),this.m.buffer=this.buffer.ga,this.m.connect(this.Ta)),this.m.loop=a,0===d?s(this.m):c(this.m,d,this.Ne());else{1!==f.playbackRate&&(f.playbackRate=1);f.loop!==a&&(f.loop=a);f.volume=b*G;if(f.currentTime!==d)try{f.currentTime=d}catch(h){}this.Oc&&Ra&&!I.rb?Sa.push(this):f.play()}break;case 2:(!this.ad&&this.cc||0!==d)&&f.seekTo(d);f.play();this.$j=!1;break;case 3:I.qb?AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=
1;this.startTime=(this.Ve?I.oc.fa:I.md.fa)-d;this.zc=this.cc=this.ad=!1};m.prototype.stop=function(){switch(this.K){case 0:this.m.paused||this.m.pause();break;case 1:1===this.buffer.K?a(this.m):this.m.paused||this.m.pause();break;case 2:this.m.stop();break;case 3:I.qb&&AppMobi.context.stopSound(this.src)}this.cc=!0;this.zc=!1};m.prototype.pause=function(){if(!(this.ad||this.cc||this.Pe()||this.zc)){switch(this.K){case 0:this.m.paused||this.m.pause();break;case 1:1===this.buffer.K?(this.Sb=this.yk(),
this.dd&&(this.Sb%=this.Ne()),a(this.m)):this.m.paused||this.m.pause();break;case 2:this.m.pause();break;case 3:I.qb&&AppMobi.context.stopSound(this.src)}this.zc=!0}};m.prototype.du=function(){if(!(this.ad||this.cc||this.Pe())&&this.zc){switch(this.K){case 0:this.m.play();break;case 1:1===this.buffer.K?(this.m=A.createBufferSource(),this.m.buffer=this.buffer.ga,this.m.connect(this.Ta),this.m.loop=this.dd,this.Ta.gain.value=G*this.volume*this.Uf,this.startTime=(this.Ve?I.oc.fa:I.md.fa)-this.Sb,c(this.m,
this.Sb,this.Ne())):this.m.play();break;case 2:this.m.play();break;case 3:I.qb&&AppMobi.context.resumeSound(this.src)}this.zc=!1}};m.prototype.seek=function(a){if(!(this.ad||this.cc||this.Pe()))switch(this.K){case 0:try{this.m.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.K)this.zc?this.Sb=a:(this.pause(),this.Sb=a,this.du());else try{this.m.currentTime=a}catch(d){}break;case 3:I.qb&&AppMobi.context.seekSound(this.src,a)}};m.prototype.au=function(a){1===this.K&&(this.ed?(this.Ia.disconnect(),
this.Ia.connect(a)):(this.Ta.disconnect(),this.Ta.connect(a)))};m.prototype.Ne=function(){switch(this.K){case 0:if("undefined"!==typeof this.m.duration)return this.m.duration;break;case 1:return this.buffer.ga.duration;case 2:return this.m.getDuration();case 3:if(I.qb)return AppMobi.context.getDurationSound(this.src)}return 0};m.prototype.yk=function(){var a=this.Ne(),b=0;switch(this.K){case 0:"undefined"!==typeof this.m.currentTime&&(b=this.m.currentTime);break;case 1:if(1===this.buffer.K){if(this.zc)return this.Sb;
b=(this.Ve?I.oc.fa:I.md.fa)-this.startTime}else"undefined"!==typeof this.m.currentTime&&(b=this.m.currentTime);break;case 3:I.qb&&(b=AppMobi.context.getPlaybackTimeSound(this.src))}!this.dd&&b>a&&(b=a);return b};m.prototype.Ff=function(){return!this.zc&&!this.ad&&!this.cc&&!this.Pe()};m.prototype.zu=function(){var a=this.volume*G;switch(this.K){case 0:"undefined"!==typeof this.m.volume&&this.m.volume!==a&&(this.m.volume=a);break;case 1:1===this.buffer.K?this.Ta.gain.value=a*this.Uf:"undefined"!==
typeof this.m.volume&&this.m.volume!==a&&(this.m.volume=a)}};m.prototype.mi=function(a){switch(this.K){case 0:this.m.muted!==!!a&&(this.m.muted=!!a);break;case 1:1===this.buffer.K?(this.Uf=a?0:1,this.Ta.gain.value=G*this.volume*this.Uf):this.m.muted!==!!a&&(this.m.muted=!!a)}};m.prototype.ou=function(){this.Jf=!0;this.mi(this.Jf||this.Sg)};m.prototype.bp=function(a){this.Sg=!!a;this.mi(this.Jf||this.Sg)};m.prototype.Gp=function(){var a=this.playbackRate;this.Ve&&(a*=I.ig);switch(this.K){case 0:this.m.playbackRate!==
a&&(this.m.playbackRate=a);break;case 1:1===this.buffer.K?this.m.playbackRate.value!==a&&(this.m.playbackRate.value=a):this.m.playbackRate!==a&&(this.m.playbackRate=a)}};m.prototype.qu=function(b){switch(this.K){case 0:b?this.Ff()?(this.m.pause(),this.Gd=!0):this.Gd=!1:this.Gd&&this.m.play();break;case 1:b?this.Ff()?(1===this.buffer.K?(this.Sb=this.yk(),this.dd&&(this.Sb%=this.Ne()),a(this.m)):this.m.pause(),this.Gd=!0):this.Gd=!1:this.Gd&&(1===this.buffer.K?(this.m=A.createBufferSource(),this.m.buffer=
this.buffer.ga,this.m.connect(this.Ta),this.m.loop=this.dd,this.Ta.gain.value=G*this.volume*this.Uf,this.startTime=(this.Ve?I.oc.fa:I.md.fa)-this.Sb,c(this.m,this.Sb,this.Ne())):this.m.play());break;case 2:b?this.Ff()?(this.m.pause(),this.Gd=!0):this.Gd=!1:this.Gd&&this.m.play()}};D.la=function(a){this.type=a;I=this.b=a.b;y=this;this.Eb=null;this.Yg=-600;!(this.b.Li||this.b.Fi&&(this.b.Og||this.b.Gi))||this.b.Pg||this.b.ra||this.b.Nk||(Ra=!0);A=null;"undefined"!==typeof AudioContext?(E=1,A=new AudioContext):
"undefined"!==typeof webkitAudioContext&&(E=1,A=new webkitAudioContext);(this.b.Li&&1===E||Ra)&&document.addEventListener("touchstart",function(){var a,b,d;!qc&&A&&(a=A.createBuffer(1,1,22050),b=A.createBufferSource(),b.buffer=a,b.connect(A.destination),s(b),qc=!0);if(Ra){if(!M)for(a=0,b=Sa.length;a<b;++a)d=Sa[a],d.cc||d.zc||d.m.play();Sa.length=0}},!0);1!==E&&(this.b.mc&&"undefined"!==typeof window.Media?E=2:this.b.Ef&&(E=3));2===E&&(S=location.href,a=S.lastIndexOf("/"),-1<a&&(S=S.substr(0,a+1)),
S=S.replace("file://",""));if(this.b.In&&this.b.pt&&"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.ze(this);else{if(this.b.qb)C=this.b.Fi;else try{C=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(b){C=!1}this.b.$l(this)}};var pa=D.la.prototype;pa.U=function(){this.b.vf=this;F=this.D[0];this.Hd=this.D[1];this.Ot=0!==this.D[2];oa=this.D[3];P=this.D[4];this.Yg=-this.D[5];
ra=this.D[6];ka=this.D[7];va=this.D[8];this.Eb=new r;var a=this.b.S||this.b.width,b=this.b.R||this.b.height;1===E&&("undefined"!==typeof A.listener.dopplerFactor&&(A.listener.dopplerFactor=0),A.listener.setPosition(a/2,b/2,this.Yg),A.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,b){ga&&ga.disconnect();vb=b.toLowerCase();ga=A.createMediaStreamSource(a);ga.connect(l(vb))});this.b.Mm(function(a){y.Lt(a)});var d=this;this.b.Km(function(a){d.Kt(a)})};pa.Kt=function(a){var b,
d,c;b=0;for(d=K.length;b<d;b++)c=K[b],c.Ha&&c.Ha.G===a&&(c.Ha.G=null,c.ed&&c.Ff()&&c.dd&&c.stop());this.Eb.G===a&&(this.Eb.G=null)};pa.ac=function(){var a={silent:M,masterVolume:G,listenerZ:this.Yg,listenerUid:this.Eb.Di()?this.Eb.G.uid:-1,playing:[],effects:{}},b=a.playing,d,c,f,e,g,h;d=0;for(c=K.length;d<c;d++)f=K[d],!f.Ff()||3===this.Hd||f.Oc&&1===this.Hd||!f.Oc&&2===this.Hd||(e=f.yk(),f.dd&&(e%=f.Ne()),e={tag:f.tag,buffersrc:f.buffer.src,is_music:f.Oc,playbackTime:e,volume:f.volume,looping:f.dd,
muted:f.Jf,playbackRate:f.playbackRate,paused:f.zc,resume_position:f.Sb},f.ed&&(e.pan={},h=e.pan,f.Ha&&f.Ha.Di()?h.objUid=f.Ha.G.uid:(h.x=f.Io,h.y=f.Jo,h.a=f.Eo),h.ia=f.Fo,h.oa=f.Go,h.og=f.Ho),b.push(e));b=a.effects;for(g in T)if(T.hasOwnProperty(g)){f=[];d=0;for(c=T[g].length;d<c;d++)f.push({type:T[g][d].type,params:T[g][d].tb});b[g]=f}return a};var Ta=[];pa.Ac=function(a){var d=a.silent;G=a.masterVolume;this.Yg=a.listenerZ;this.Eb.wh(null);var c=a.listenerUid;-1!==c&&(this.Eb.Wi=c,Ta.push(this.Eb));
var c=a.playing,e,g,m,l,q,B,s,O,D,y,I;if(3!==this.Hd)for(e=0,g=K.length;e<g;e++)D=K[e],D.Oc&&1===this.Hd||(D.Oc||2!==this.Hd)&&D.stop();for(q in T)if(T.hasOwnProperty(q))for(e=0,g=T[q].length;e<g;e++)T[q][e].remove();Va(T);for(q in a.effects)if(a.effects.hasOwnProperty(q))for(B=a.effects[q],e=0,g=B.length;e<g;e++)switch(m=B[e].type,y=B[e].params,m){case "filter":f(q,new b(y[0],y[1],y[2],y[3],y[4],y[5]));break;case "delay":f(q,new u(y[0],y[1],y[2]));break;case "convolve":m=y[2];D=this.vi(m,!1);D.ga?
m=new v(D.ga,y[0],y[1],m):(m=new v(null,y[0],y[1],m),D.so=y[0],D.di=m);f(q,m);break;case "flanger":f(q,new h(y[0],y[1],y[2],y[3],y[4]));break;case "phaser":f(q,new p(y[0],y[1],y[2],y[3],y[4],y[5]));break;case "gain":f(q,new w(y[0]));break;case "tremolo":f(q,new k(y[0],y[1]));break;case "ringmod":f(q,new x(y[0],y[1]));break;case "distortion":f(q,new t(y[0],y[1],y[2],y[3],y[4]));break;case "compressor":f(q,new z(y[0],y[1],y[2],y[3],y[4]));break;case "analyser":f(q,new n(y[0],y[1]))}e=0;for(g=c.length;e<
g;e++)3===this.Hd||(a=c[e],m=a.buffersrc,l=a.is_music,q=a.tag,B=a.playbackTime,s=a.looping,O=a.volume,I=(y=a.pan)&&y.hasOwnProperty("objUid")?y.objUid:-1,l&&1===this.Hd)||!l&&2===this.Hd||((D=this.mn(m,q,l,s,O))?(D.Sb=a.resume_position,D.Ql(!!y),D.play(s,O,B),D.Gp(),D.zu(),D.mi(D.Jf||D.Sg),a.paused&&D.pause(),a.muted&&D.ou(),D.mi(D.Jf||D.Sg),y&&(-1!==I?(D.Ha=D.Ha||new r,D.Ha.Wi=I,Ta.push(D.Ha)):D.Pl(y.x,y.y,y.a,y.ia,y.oa,y.og))):(D=this.vi(m,l),D.sj=B,D.dj=a.paused,y&&(-1!==I?D.Xf.push({uo:I,Gk:y.ia,
kl:y.oa,nl:y.og,sp:q}):D.Xf.push({x:y.x,y:y.y,Zq:y.a,Gk:y.ia,kl:y.oa,nl:y.og,sp:q}))));if(d&&!M){e=0;for(g=K.length;e<g;e++)K[e].bp(!0);M=!0}else if(!d&&M){e=0;for(g=K.length;e<g;e++)K[e].bp(!1);M=!1}};pa.Qd=function(){var a,b,d,c;a=0;for(b=Ta.length;a<b;a++)d=Ta[a],c=this.b.Ai(d.Wi),d.wh(c),d.Wi=-1,c&&(J=c.x,H=c.y);Ta.length=0};pa.Lt=function(a){if(!this.Ot){!a&&A&&A.resume&&A.resume();var b,d;b=0;for(d=K.length;b<d;b++)K[b].qu(a);a&&A&&A.suspend&&A.suspend()}};pa.hb=function(){var a=this.b.He,b,
d,c;b=0;for(d=K.length;b<d;b++)c=K[b],c.hb(a),0===c.K||3===c.K||c.ad||c.cc||!c.Pe()||(c.cc=!0,xa=c.tag,I.trigger(jc.prototype.d.Jj,y)),0!==F&&c.Gp();var f,e;for(f in T)if(T.hasOwnProperty(f))for(c=T[f],b=0,d=c.length;b<d;b++)e=c[b],e.hb&&e.hb();1===E&&this.Eb.Di()&&(this.Eb.hb(a),J=this.Eb.G.x,H=this.Eb.G.y,A.listener.setPosition(this.Eb.G.x,this.Eb.G.y,this.Yg),A.listener.setVelocity(this.Eb.Ak(),this.Eb.Bk(),0))};var Ua=[];pa.pu=function(a){var b,d,c,f,e,g=0;b=0;for(d=a.length;b<d;++b)if(c=a[b],
f=c[0],c=2*c[1],(e=4<f.length&&".ogg"===f.substr(f.length-4))&&C||!e&&!C)Ua.push({filename:f,size:c,G:null}),g+=c;return g};pa.su=function(){var a,b,d,c;a=0;for(b=Ua.length;a<b;++a)d=Ua[a],c=this.b.ok+d.filename,d.G=this.vi(c,!1)};pa.Js=function(){var a=0,b,d,c;b=0;for(d=Ua.length;b<d;++b)c=Ua[b],c.G.ot()||c.G.ft()||this.b.ra||this.b.Gi?a+=c.size:c.G.Hn()&&(a+=Math.floor(c.size/2));return a};pa.vi=function(a,b){var c,f,e,g=null;c=0;for(f=X.length;c<f;c++)if(e=X[c],e.src===a){g=e;break}g||(g=new d(a,
b),X.push(g));return g};pa.mn=function(a,b,d,c,f){var e,g,h;e=0;for(g=K.length;e<g;e++)if(h=K[e],h.src===a&&(h.nr()||d))return h.tag=b,h;a=this.vi(a,d);if(!a.ga)return"<preload>"!==b&&(a.ej=b,a.cl=c,a.nm=f),null;h=new m(a,b);K.push(h);return h};var Ja=[];B.prototype.Jj=function(a){return hb(xa,a)};D.d=new B;O.prototype.Play=function(a,b,d,c){!M&&(d=Math.pow(10,d/20),0>d&&(d=0),1<d&&(d=1),L=this.mn(this.b.ok+a[0]+(C?".ogg":".m4a"),c,a[1],0!==b,d))&&(L.Ql(!1),L.play(0!==b,d))};O.prototype.Sq=function(){var a,
b;a=0;for(b=K.length;a<b;a++)K[a].stop()};D.P=new O;D.Pa=new function(){}})();function kc(g){this.b=g}
(function(){function g(){}function l(){}function e(){}var q=kc.prototype;q.ua=function(e){this.na=e;this.b=e.b};q.ua.prototype.U=function(){};q.la=function(e){this.type=e;this.b=e.b};q.la.prototype.U=function(){var e=this;window.addEventListener("resize",function(){e.b.trigger(kc.prototype.d.Bq,e)});"undefined"!==typeof navigator.onLine&&(window.addEventListener("online",function(){e.b.trigger(kc.prototype.d.wq,e)}),window.addEventListener("offline",function(){e.b.trigger(kc.prototype.d.vq,e)}));
"undefined"!==typeof window.applicationCache&&(window.applicationCache.addEventListener("updateready",function(){e.b.Qf=1;e.b.trigger(kc.prototype.d.Cm,e)}),window.applicationCache.addEventListener("progress",function(c){e.b.Qf=c.loaded/c.total}));this.b.qb||(document.addEventListener("appMobi.device.update.available",function(){e.b.trigger(kc.prototype.d.Cm,e)}),document.addEventListener("backbutton",function(){e.b.trigger(kc.prototype.d.Ij,e)}),document.addEventListener("menubutton",function(){e.b.trigger(kc.prototype.d.xm,
e)}),document.addEventListener("searchbutton",function(){e.b.trigger(kc.prototype.d.Cq,e)}),document.addEventListener("tizenhwkey",function(c){var a;switch(c.keyName){case "back":a=e.b.trigger(kc.prototype.d.Ij,e);!a&&window.tizen&&window.tizen.application.getCurrentApplication().exit();break;case "menu":(a=e.b.trigger(kc.prototype.d.xm,e))||c.preventDefault()}}));this.b.Hi&&(WinJS.Application.onbackclick=function(){return!!e.b.trigger(kc.prototype.d.Ij,e)});this.b.Mm(function(c){c?e.b.trigger(kc.prototype.d.xq,
e):e.b.trigger(kc.prototype.d.yq,e)});this.ut="undefined"!==typeof window.is_scirra_arcade};g.prototype.wq=function(){return!0};g.prototype.vq=function(){return!0};g.prototype.Cm=function(){return!0};g.prototype.yq=function(){return!0};g.prototype.xq=function(){return!0};g.prototype.Bq=function(){return!0};g.prototype.Ij=function(){return!0};g.prototype.xm=function(){return!0};g.prototype.Cq=function(){return!0};q.d=new g;l.prototype.$p=function(e,c){this.b.lc?CocoonJS.App.openURL(e):this.b.yc?ejecta.openURL(e):
this.b.Sk?Windows.System.Launcher.launchUriAsync(new Windows.Foundation.Uri(e)):navigator.app&&navigator.app.loadUrl?navigator.app.loadUrl(e,{openExternal:!0}):this.b.mc?window.open(e,"_system"):this.ut||this.b.ra||window.open(e,c)};q.P=new l;e.prototype.URL=function(e){e.Ka(this.b.ra?"":window.location.toString())};q.Pa=new e})();function ic(g){this.b=g}
(function(){function g(){this.name="";this.uh=0;this.tb=[]}function l(){b++;b===a.length&&a.push(new g);return a[b]}function e(){}function q(){}function s(){}var c=ic.prototype;c.ua=function(a){this.na=a;this.b=a.b};c.ua.prototype.U=function(){};c.la=function(a){this.type=a;this.b=a.b};var a=[],b=-1;c.la.prototype.U=function(){var a=this;window.c2_callFunction=function(c,e){var g,q,k,x=l();x.name=c.toLowerCase();x.uh=0;if(e)for(x.tb.length=e.length,g=0,q=e.length;g<q;++g)k=e[g],x.tb[g]="number"===
typeof k||"string"===typeof k?k:"boolean"===typeof k?k?1:0:0;else x.tb.length=0;a.b.trigger(ic.prototype.d.Nh,a,x.name);b--;return x.uh}};e.prototype.Nh=function(c){var e=0>b?null:a[b];return e?hb(c,e.name):!1};c.d=new e;q.prototype.CallFunction=function(a,c){var e=l();e.name=a.toLowerCase();e.uh=0;za(e.tb,c);this.b.trigger(ic.prototype.d.Nh,this,e.name);b--};c.P=new q;s.prototype.Qp=function(a,c){var e=l();e.name=c.toLowerCase();e.uh=0;e.tb.length=0;var g,q;g=2;for(q=arguments.length;g<q;g++)e.tb.push(arguments[g]);
this.b.trigger(ic.prototype.d.Nh,this,e.name);b--;a.dp(e.uh)};c.Pa=new s})();function lc(g){this.b=g}
(function(){function g(){}function l(){}var e=lc.prototype;e.ua=function(c){this.na=c;this.b=c.b};e.ua.prototype.U=function(){};e.la=function(c){this.type=c;this.b=c.b;this.Tj=Array(4);this.vp=this.Cj=this.jg=this.me=this.le=0;this.Dk=!1};var q=e.la.prototype;q.U=function(){var c=this;if(!this.b.ra){jQuery(document).mousemove(function(a){c.rl(a)});jQuery(document).mousedown(function(a){c.ql(a)});jQuery(document).mouseup(function(a){c.sl(a)});jQuery(document).dblclick(function(a){c.Jt(a)});var a=function(a){c.Mt(a)};
document.addEventListener("mousewheel",a,!1);document.addEventListener("DOMMouseScroll",a,!1)}};var s={left:0,top:0};q.rl=function(c){var a=this.b.ra?s:jQuery(this.b.canvas).offset();this.le=c.pageX-a.left;this.me=c.pageY-a.top};q.po=function(){return 0<this.b.Kb?!0:0<=this.le&&0<=this.me&&this.le<this.b.width&&this.me<this.b.height};q.ql=function(c){this.po()&&(this.b.Df&&!this.b.Ad&&c.preventDefault(),this.Tj[c.which]=!0,this.b.rb=!0,this.b.trigger(lc.prototype.d.lq,this),this.jg=c.which-1,this.Cj=
0,this.b.trigger(lc.prototype.d.um,this),this.b.trigger(lc.prototype.d.Am,this),this.b.rb=!1)};q.sl=function(c){this.Tj[c.which]&&(this.b.Df&&!this.b.Ad&&c.preventDefault(),this.b.Df=!0,this.Tj[c.which]=!1,this.b.rb=!0,this.jg=c.which-1,this.b.trigger(lc.prototype.d.Aq,this),this.b.rb=!1)};q.Jt=function(c){this.po()&&(c.preventDefault(),this.b.rb=!0,this.jg=c.which-1,this.Cj=1,this.b.trigger(lc.prototype.d.um,this),this.b.trigger(lc.prototype.d.Am,this),this.b.rb=!1)};q.Mt=function(c){this.vp=0>(c.wheelDelta?
c.wheelDelta:c.detail?-c.detail:0)?0:1;this.Dk=!1;this.b.rb=!0;this.b.trigger(lc.prototype.d.Fq,this);this.b.rb=!1;this.Dk&&ib(c)&&c.preventDefault()};g.prototype.um=function(c,a){return c===this.jg&&a===this.Cj};g.prototype.lq=function(){return!0};g.prototype.Aq=function(c){return c===this.jg};g.prototype.Am=function(c,a,b){return c!==this.jg||a!==this.Cj?!1:this.b.Eh(b,this.le,this.me)};g.prototype.Fq=function(c){this.Dk=!0;return c===this.vp};e.d=new g;e.P=new function(){};l.prototype.Em=function(c,
a){var b,e,g,h,l;ea(a)?(b=this.b.xd(0),e=b.scale,g=b.Bb,h=b.Pb,l=b.j,b.scale=1,b.Bb=1,b.Pb=1,b.j=0,c.A(b.nb(this.le,this.me,!0)),b.scale=e,b.Bb=g,b.Pb=h,b.j=l):(b=fa(a)?this.b.xd(a):this.b.Eg(a))?c.A(b.nb(this.le,this.me,!0)):c.A(0)};l.prototype.Fm=function(c,a){var b,e,g,h,l;ea(a)?(b=this.b.xd(0),e=b.scale,g=b.Bb,h=b.Qb,l=b.j,b.scale=1,b.Bb=1,b.Qb=1,b.j=0,c.A(b.nb(this.le,this.me,!1)),b.scale=e,b.Bb=g,b.Qb=h,b.j=l):(b=fa(a)?this.b.xd(a):this.b.Eg(a))?c.A(b.nb(this.le,this.me,!1)):c.A(0)};e.Pa=new l})();
function Y(g){this.b=g}
(function(){function g(){if(0===this.ek.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.eg?b.drawImage(this.va,this.Vf,this.Wf,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.va,0,0,this.width,this.height);this.ek=a.toDataURL("image/png")}return this.ek}function l(){}function e(a){a[0]=0;a[1]=0;a[2]=0;w.push(a)}function q(a,b){return a<b?""+a+","+b:""+b+","+a}function s(a,b,d,c){b=b.uid;d=d.uid;var f=q(b,d);if(a.hasOwnProperty(f))a[f][2]=
c;else{var e=w.length?w.pop():[0,0,0];e[0]=b;e[1]=d;e[2]=c;a[f]=e}}function c(a,b,d){b=q(b.uid,d.uid);a.hasOwnProperty(b)&&(e(a[b]),delete a[b])}function a(a,b,d){b=q(b.uid,d.uid);if(a.hasOwnProperty(b))return k=a[b][2],!0;k=-2;return!1}function b(){}var u=Y.prototype;u.ua=function(a){this.na=a;this.b=a.b};var v=u.ua.prototype;v.U=function(){if(!this.J){var a,b,d,c,f,e,h,k,l;this.Hc=[];this.Kg=!1;a=0;for(b=this.Ub.length;a<b;a++){f=this.Ub[a];h={};h.name=f[0];h.speed=f[1];h.loop=f[2];h.Il=f[3];h.pj=
f[4];h.Mo=f[5];h.V=f[6];h.frames=[];d=0;for(c=f[7].length;d<c;d++)e=f[7][d],k={},k.Xl=e[0],k.rp=e[1],k.Vf=e[2],k.Wf=e[3],k.width=e[4],k.height=e[5],k.duration=e[6],k.Lb=e[7],k.Mb=e[8],k.Hk=e[9],k.fj=e[10],k.No=e[11],k.eg=0!==k.width,k.ek="",k.Qv=g,l={left:0,top:0,right:1,bottom:1},k.Rl=l,k.Fa=null,(l=this.b.vs(e[0]))?k.va=l:(k.va=new Image,k.va.tr=e[0],k.va.sr=e[1],k.va.lr=null,this.b.Mp(k.va,e[0])),h.frames.push(k),this.Hc.push(k);this.Ub[a]=h}}};v.Fp=function(){var a,b,d;a=0;for(b=this.c.length;a<
b;a++)d=this.c[a],d.hi=d.tc.Fa};v.pl=function(){if(!this.J){var a,b,d;a=0;for(b=this.Hc.length;a<b;++a)d=this.Hc[a],d.va.lr=null,d.Fa=null;this.Kg=!1;this.Fp()}};v.tl=function(){if(!this.J&&this.c.length){var a,b,d;a=0;for(b=this.Hc.length;a<b;++a)d=this.Hc[a],d.Fa=this.b.C.Vi(d.va,this.b.ea,d.No);this.Fp()}};v.At=function(){if(!this.J&&!this.Kg&&this.b.C){var a,b,d;a=0;for(b=this.Hc.length;a<b;++a)d=this.Hc[a],d.Fa=this.b.C.Vi(d.va,this.b.ea,d.No);this.Kg=!0}};v.gm=function(){if(!this.J&&!this.c.length&&
this.Kg){var a,b,d;a=0;for(b=this.Hc.length;a<b;++a)d=this.Hc[a],this.b.C.deleteTexture(d.Fa),d.Fa=null;this.Kg=!1}};var h=[];v.Cl=function(a){var b,d,c;b=h.length=0;for(d=this.Hc.length;b<d;++b)c=this.Hc[b].va,-1===h.indexOf(c)&&(a.drawImage(c,0,0),h.push(c))};u.la=function(a){this.type=a;this.b=a.b;a=this.type.Ub[0].frames[0].fj;this.Tc?this.da.zh(a):this.da=new bb(a)};var p=u.la.prototype;p.U=function(){this.visible=0===this.D[0];this.Ik=this.Rk=!1;this.qd=0!==this.D[3];1===this.type.Ub.length&&
1===this.type.Ub[0].frames.length||0===this.type.Ub[0].speed||(this.b.$l(this),this.Rk=!0);this.Ba=this.ln(this.D[1])||this.type.Ub[0];this.B=this.D[2];0>this.B&&(this.B=0);this.B>=this.Ba.frames.length&&(this.B=this.Ba.frames.length-1);var a=this.Ba.frames[this.B];this.da.zh(a.fj);this.Lb=a.Lb;this.Mb=a.Mb;this.yg=this.Ba.speed;this.Tc?this.Ic.reset():this.Ic=new $a;this.$c=this.Ic.fa;this.nd=!0;this.od=0;this.Ae=!0;this.Yj=this.Om="";this.or=0;this.Yh=-1;this.type.At();var b,d,c,f,e,g,h,a=0;for(b=
this.type.Ub.length;a<b;a++)for(f=this.type.Ub[a],d=0,c=f.frames.length;d<c;d++)e=f.frames[d],0===e.width&&(e.width=e.va.width,e.height=e.va.height),e.eg&&(h=e.va,g=e.Rl,g.left=e.Vf/h.width,g.top=e.Wf/h.height,g.right=(e.Vf+e.width)/h.width,g.bottom=(e.Wf+e.height)/h.height,0===e.Vf&&0===e.Wf&&e.width===h.width&&e.height===h.height&&(e.eg=!1));this.tc=this.Ba.frames[this.B];this.hi=this.tc.Fa};p.ac=function(){var a={a:this.Ba.V,f:this.B,cas:this.yg,fs:this.$c,ar:this.od,at:this.Ic.fa};this.nd||(a.ap=
this.nd);this.Ae||(a.af=this.Ae);return a};p.Ac=function(a){var b=this.As(a.a);b&&(this.Ba=b);this.B=a.f;0>this.B&&(this.B=0);this.B>=this.Ba.frames.length&&(this.B=this.Ba.frames.length-1);this.yg=a.cas;this.$c=a.fs;this.od=a.ar;this.Ic.reset();this.Ic.fa=a.at;this.nd=a.hasOwnProperty("ap")?a.ap:!0;this.Ae=a.hasOwnProperty("af")?a.af:!0;this.tc=this.Ba.frames[this.B];this.hi=this.tc.Fa;this.da.zh(this.tc.fj);this.Lb=this.tc.Lb;this.Mb=this.tc.Mb};p.Qj=function(a){this.B=a?0:this.Ba.frames.length-
1;this.nd=!1;this.Om=this.Ba.name;this.Ik=!0;this.b.trigger(Y.prototype.d.kq,this);this.b.trigger(Y.prototype.d.jq,this);this.Ik=!1;this.od=0};p.Sv=function(){return this.Ic.fa};p.hb=function(){this.Ic.add(this.b.xi(this));this.Yj.length&&this.Ar();0<=this.Yh&&this.an();var a=this.Ic.fa,b=this.Ba,d=b.frames[this.B],c=d.duration/this.yg;this.nd&&a>=this.$c+c&&(this.Ae?this.B++:this.B--,this.$c+=c,this.B>=b.frames.length&&(b.Mo?(this.Ae=!1,this.B=b.frames.length-2):b.loop?this.B=b.pj:(this.od++,this.od>=
b.Il?this.Qj(!1):this.B=b.pj)),0>this.B&&(b.Mo?(this.B=1,this.Ae=!0,b.loop||(this.od++,this.od>=b.Il&&this.Qj(!0))):b.loop?this.B=b.pj:(this.od++,this.od>=b.Il?this.Qj(!0):this.B=b.pj)),0>this.B?this.B=0:this.B>=b.frames.length&&(this.B=b.frames.length-1),a>this.$c+b.frames[this.B].duration/this.yg&&(this.$c=a),a=b.frames[this.B],this.tf(d,a),this.b.pa=!0)};p.ln=function(a){var b,d,c;b=0;for(d=this.type.Ub.length;b<d;b++)if(c=this.type.Ub[b],hb(c.name,a))return c;return null};p.As=function(a){var b,
d,c;b=0;for(d=this.type.Ub.length;b<d;b++)if(c=this.type.Ub[b],c.V===a)return c;return null};p.Ar=function(){var a=this.Ba.frames[this.B],b=this.ln(this.Yj);this.Yj="";!b||hb(b.name,this.Ba.name)&&this.nd||(this.Ba=b,this.yg=b.speed,0>this.B&&(this.B=0),this.B>=this.Ba.frames.length&&(this.B=this.Ba.frames.length-1),1===this.or&&(this.B=0),this.nd=!0,this.$c=this.Ic.fa,this.Ae=!0,this.tf(a,this.Ba.frames[this.B]),this.b.pa=!0)};p.an=function(){var a=this.Ba.frames[this.B],b=this.B;this.B=R(this.Yh);
0>this.B&&(this.B=0);this.B>=this.Ba.frames.length&&(this.B=this.Ba.frames.length-1);b!==this.B&&(this.tf(a,this.Ba.frames[this.B]),this.$c=this.Ic.fa,this.b.pa=!0);this.Yh=-1};p.tf=function(a,b){var d=a.width,c=a.height,f=b.width,e=b.height;d!=f&&(this.width*=f/d);c!=e&&(this.height*=e/c);this.Lb=b.Lb;this.Mb=b.Mb;this.da.zh(b.fj);this.L();this.tc=b;this.hi=b.Fa;d=0;for(c=this.M.length;d<c;d++)f=this.M[d],f.Ao&&f.Ao(a,b);this.b.trigger(Y.prototype.d.tf,this)};p.be=function(a){a.globalAlpha=this.opacity;
var b=this.tc,d=b.eg,c=b.va,f=this.x,e=this.y,g=this.width,h=this.height;if(0===this.j&&0<=g&&0<=h)f-=this.Lb*g,e-=this.Mb*h,this.b.oe&&(f=Math.round(f),e=Math.round(e)),d?a.drawImage(c,b.Vf,b.Wf,b.width,b.height,f,e,g,h):a.drawImage(c,f,e,g,h);else{this.b.oe&&(f=Math.round(f),e=Math.round(e));a.save();var k=0<g?1:-1,l=0<h?1:-1;a.translate(f,e);1===k&&1===l||a.scale(k,l);a.rotate(this.j*k*l);f=0-this.Lb*ja(g);e=0-this.Mb*ja(h);d?a.drawImage(c,b.Vf,b.Wf,b.width,b.height,f,e,ja(g),ja(h)):a.drawImage(c,
f,e,ja(g),ja(h));a.restore()}};p.Mc=function(a){a.qc(this.hi);a.$f(this.opacity);var b=this.tc,d=this.hc;if(this.b.oe){var c=Math.round(this.x)-this.x,f=Math.round(this.y)-this.y;b.eg?a.pe(d.xa+c,d.ya+f,d.wb+c,d.xb+f,d.lb+c,d.mb+f,d.jb+c,d.kb+f,b.Rl):a.mj(d.xa+c,d.ya+f,d.wb+c,d.xb+f,d.lb+c,d.mb+f,d.jb+c,d.kb+f)}else b.eg?a.pe(d.xa,d.ya,d.wb,d.xb,d.lb,d.mb,d.jb,d.kb,b.Rl):a.mj(d.xa,d.ya,d.wb,d.xb,d.lb,d.mb,d.jb,d.kb)};p.Fs=function(a){var b=this.tc,d,c;d=0;for(c=b.Hk.length;d<c;d++)if(hb(a,b.Hk[d][0]))return d;
return-1};p.Dg=function(a,b){var d=this.tc,c=d.Hk,f;f=Q(a)?this.Fs(a):a-1;f=R(f);if(0>f||f>=c.length)return b?this.x:this.y;var e=(c[f][1]-d.Lb)*this.width,c=c[f][2],c=(c-d.Mb)*this.height,d=Math.cos(this.j);f=Math.sin(this.j);var g=e*d-c*f,c=c*d+e*f,e=g+this.x,c=c+this.y;return b?e:c};var w=[],k=-2,x=[];l.prototype.nq=function(b){if(!b)return!1;var g=this.b,d=g.pn(),h=d.type;d.ba.collmemory||(d.ba.collmemory={},g.Km(function(a){return function(b){b=b.uid;var d,c;for(d in a)a.hasOwnProperty(d)&&(c=
a[d],c[0]===b||c[1]===b)&&(e(a[d]),delete a[d])}}(d.ba.collmemory)));var d=d.ba.collmemory,f=h.T(),l=b.T(),f=f.jc(),p,q,t,y,z,v,u,w=this.b.hg,X=w-1,K=g.pb().Jb;for(q=0;q<f.length;q++){t=f[q];l.ca?(t.ta(),this.b.nn(t.n,b,t.Ga,x),p=x):p=l.jc();for(y=0;y<p.length;y++)z=p[y],g.mf(t,z)||g.pr(t,z)?(v=a(d,t,z),v=!v||k<X,s(d,t,z,w),v&&(g.kj(K.qa),v=h.T(),u=b.T(),v.ca=!1,u.ca=!1,h===b?(v.c.length=2,v.c[0]=t,v.c[1]=z,h.Jc()):(v.c.length=1,u.c.length=1,v.c[0]=t,u.c[0]=z,h.Jc(),b.Jc()),K.fu(),g.hf(K.qa))):c(d,
t,z);x.length=0}return!1};var t=new ba,z=!1;new ta(0,0,0,0);v.finish=function(a){if(z){if(a){var b=this.b.pb().Jb.Qc;a=null.T();var d=t.ye(),c,f;if(a.ca){a.ca=!1;a.c.length=d.length;c=0;for(f=d.length;c<f;c++)a.c[c]=d[c];if(b)for(c=a.Y.length=0,f=null.c.length;c<f;c++)d=null.c[c],t.contains(d)||a.Y.push(d)}else if(b)for(b=a.c.length,a.c.length=b+d.length,c=0,f=d.length;c<f;c++)a.c[b+c]=d[c],Ca(a.Y,d[c]);else za(a.c,d);null.Jc()}t.clear();z=!1}};l.prototype.jq=function(a){return hb(this.Om,a)};l.prototype.kq=
function(){return!0};l.prototype.tf=function(){return!0};u.d=new l;b.prototype.Oq=function(a,b,d){if(a&&b&&(b=this.b.bk(a,b,this.Dg(d,!0),this.Dg(d,!1)))){"undefined"!==typeof b.j&&(b.j=this.j,b.L());this.b.nc++;var c,f,e;this.b.trigger(Object.getPrototypeOf(a.na).d.sf,b);if(b.Nb)for(c=0,f=b.siblings.length;c<f;c++)e=b.siblings[c],this.b.trigger(Object.getPrototypeOf(e.type.na).d.sf,e);this.b.nc--;c=this.b.Cs();d=!1;if(ea(c.ba.Spawn_LastExec)||c.ba.Spawn_LastExec<this.b.Le)d=!0,c.ba.Spawn_LastExec=
this.b.Le;if(a!=this.type&&(a=a.T(),a.ca=!1,d?(a.c.length=1,a.c[0]=b):a.c.push(b),b.Nb))for(c=0,f=b.siblings.length;c<f;c++)e=b.siblings[c],a=e.type.T(),a.ca=!1,d?(a.c.length=1,a.c[0]=e):a.c.push(e)}};b.prototype.Tq=function(){this.nd=!1};b.prototype.Rq=function(a){this.nd=!0;this.$c=this.Ic.fa;1===a&&0!==this.B&&(this.Yh=0,this.Ik||this.an());this.Rk||(this.b.$l(this),this.Rk=!0)};u.P=new b;u.Pa=new function(){}})();function mc(g){this.b=g}
(function(){function g(a,b){return a.length?a.pop():new b}function l(a,c,e){if(e){var g;e=0;for(g=c.length;e<g;e++)a.length<b&&a.push(c[e]);c.length=0}else for(g in c)Object.prototype.hasOwnProperty.call(c,g)&&(a.length<b&&a.push(c[g]),delete c[g])}function e(a,b,c){var e=a.cf;c=c.replace(/\s\s*$/,"");b>=e.length&&e.push(g(u,Object));b=e[b];b.text=c;b.width=a.el(c);a.gg=la(a.gg,b.width)}function q(){}function s(){}var c=mc.prototype;c.U=function(){};c.ua=function(a){this.na=a;this.b=a.b};var a=c.ua.prototype;
a.U=function(){this.J||(this.va=new Image,this.b.Mp(this.va,this.Xl),this.Fa=null)};a.pl=function(){this.J||(this.Fa=null)};a.tl=function(){if(!this.J&&this.c.length){this.Fa||(this.Fa=this.b.C.Vi(this.va,this.b.ea,this.Yl));var a,b;a=0;for(b=this.c.length;a<b;a++)this.c[a].Fa=this.Fa}};a.gm=function(){this.J||this.c.length||!this.Fa||(this.b.C.deleteTexture(this.Fa),this.Fa=null)};a.Cl=function(a){a.drawImage(this.va,0,0)};c.la=function(a){this.type=a;this.b=a.b};a=c.la.prototype;a.bj=function(){l(u,
this.cf,!0);l(v,this.$h,!1);l(h,this.ai,!1);Va(this.Yd)};a.U=function(){this.va=this.type.va;this.Zh=this.D[0];this.Wd=this.D[1];this.characterSet=this.D[2];this.text=this.D[3];this.Xd=this.D[4];this.visible=0===this.D[5];this.yn=this.D[6]/2;this.Jp=this.D[7]/2;this.Fu=0===this.D[9];this.xf=this.D[10];this.lineHeight=this.D[11];this.of=this.gg=0;this.Tc?(this.cf.length=0,Va(this.$h),Va(this.ai),Va(this.Yd)):(this.cf=[],this.$h={},this.ai={},this.Yd={});this.Gh=!0;this.Xk=this.width;this.b.C&&(this.type.Fa||
(this.type.Fa=this.b.C.Vi(this.type.va,this.b.ea,this.type.Yl)),this.Fa=this.type.Fa);this.Qq()};a.ac=function(){var a={t:this.text,csc:this.Xd,csp:this.xf,lh:this.lineHeight,tw:this.gg,th:this.of,lrt:this.yt,cw:{}},b;for(b in this.Yd)a.cw[b]=this.Yd[b];return a};a.Ac=function(a){this.text=a.t;this.Xd=a.csc;this.xf=a.csp;this.lineHeight=a.lh;this.gg=a.tw;this.of=a.th;this.yt=a.lrt;for(var b in a.cw)this.Yd[b]=a.cw[b];this.Gh=!0;this.Xk=this.width};var b=1E3,u=[],v=[],h=[];a.Qq=function(){for(var a=
this.va,b=a.width,c=a.height,a=this.Zh,e=this.Wd,l=a/b,p=e/c,d=this.characterSet,b=Math.floor(b/a),c=Math.floor(c/e),m=0;m<d.length&&!(m>=b*c);m++){var f=m%b,q=Math.floor(m/b),s=d.charAt(m);if(this.b.C){var u=this.ai,w=f*l,y=q*p,f=(f+1)*l,q=(q+1)*p;void 0===u[s]&&(u[s]=g(h,ta));u[s].left=w;u[s].top=y;u[s].right=f;u[s].bottom=q}else u=this.$h,f*=a,q*=e,w=a,y=e,void 0===u[s]&&(u[s]=g(v,Object)),u[s].x=f,u[s].y=q,u[s].Lp=w,u[s].xn=y}};var p=[];c.Vq=function(a){p.length=0;for(var b="",c,e=0;e<a.length;)if(c=
a.charAt(e),"\n"===c)b.length&&(p.push(b),b=""),p.push("\n"),++e;else if(" "===c||"\t"===c||"-"===c){do b+=a.charAt(e),e++;while(e<a.length&&(" "===a.charAt(e)||"\t"===a.charAt(e)));p.push(b);b=""}else e<a.length&&(b+=c,e++);b.length&&p.push(b)};c.Xq=function(a){var b=a.text,c=a.cf;if(b&&b.length){var e=a.width;if(2>=e)l(u,c,!0);else{var h=a.Xd,p=a.xf;if(b.length*(a.Zh*h+p)-p<=e&&-1===b.indexOf("\n")&&(p=a.el(b),p<=e)){l(u,c,!0);c.push(g(u,Object));c[0].text=b;c[0].width=p;a.gg=p;a.of=a.Wd*h+a.lineHeight;
return}this.Yq(a);a.of=c.length*(a.Wd*h+a.lineHeight)}}else l(u,c,!0)};c.Yq=function(a){var c=a.Fu,g=a.text,h=a.cf,l=a.width;c&&(this.Vq(g),g=p);var r="",d,m,f,q=0,s=!1;for(f=0;f<g.length;f++)"\n"===g[f]?(!0===s?s=!1:(e(a,q,r),q++),r=""):(s=!1,d=r,r+=g[f],m=a.el(r.replace(/\s\s*$/,"")),m>l&&(""===d?(e(a,q,r),r="",s=!0):(e(a,q,d),r=g[f]),q++,c||" "!==r||(r="")));r.replace(/\s\s*$/,"").length&&(e(a,q,r),q++);for(f=q;f<h.length;f++)u.length<b&&u.push(h[f]);h.length=q};a.el=function(a){for(var b=this.xf,
c=a.length,e=0,g=0;g<c;g++)e+=this.vk(a.charAt(g))*this.Xd+b;return e-(0<e?b:0)};a.vk=function(a){var b=this.Yd;return void 0!==b[a]?b[a]:this.Zh};a.So=function(){if(this.Gh||this.width!==this.Xk)this.of=this.gg=0,this.type.na.Xq(this),this.Gh=!1,this.Xk=this.width};a.be=function(a){var b=this.va;if(""!==this.text&&null!=b&&(this.So(),!(this.height<this.Wd*this.Xd+this.lineHeight))){a.globalAlpha=this.opacity;var b=this.x,c=this.y;this.b.oe&&(b=Math.round(b),c=Math.round(c));var e=this.n.za,g=this.n.Aa,
h=this.n.Ma,d=this.n.La;a.save();a.translate(b,c);a.rotate(this.j);for(var l=this.yn,f=this.Xd,p=this.Wd*f,q=this.lineHeight,s=this.xf,u=this.cf,y,v=-(this.Lb*this.width),w=-(this.Mb*this.height),w=w+this.Jp*la(0,this.height-this.of),E,A,X,K=0;K<u.length;K++){var L=u[K].text;y=l*la(0,this.width-u[K].width);E=v+y;w+=q;if(c+w+p<g)w+=p;else{for(var C=0;C<L.length;C++){A=L.charAt(C);y=this.vk(A);var F=this.$h[A];if(b+E+y*f+s<e)E+=y*f+s;else{if(E+y*f>this.width+1E-5)break;void 0!==F&&(A=E,X=w,0===this.j&&
(A=Math.round(A),X=Math.round(X)),a.drawImage(this.va,F.x,F.y,F.Lp,F.xn,A,X,F.Lp*f,F.xn*f));E+=y*f+s;if(b+E>h)break}}w+=p;if(w+p+q>this.height||c+w>d)break}}a.restore()}};var w=new ua;a.Mc=function(a){a.qc(this.Fa);a.$f(this.opacity);if(this.text&&(this.So(),!(this.height<this.Wd*this.Xd+this.lineHeight))){this.ta();var b=this.hc,c=0,e=0;this.b.oe&&(c=Math.round(this.x)-this.x,e=Math.round(this.y)-this.y);var g=this.n.za,h=this.n.Aa,d=this.n.Ma,l=this.n.La,f=this.j,p=this.yn,q=this.Jp,s=this.Xd,u=
this.Wd*s,y=this.lineHeight,v=this.xf,S=this.cf,E=this.of,A,X,K;0!==f&&(X=Math.cos(f),K=Math.sin(f));for(var c=b.xa+c,b=b.ya+e,L,q=q*la(0,this.height-E),C,F,E=0;E<S.length;E++)if(e=S[E].text,L=A=p*la(0,this.width-S[E].width),q+=y,0===f&&b+q+u<h)q+=u;else{for(var M=0;M<e.length;M++){var G=e.charAt(M);A=this.vk(G);G=this.ai[G];if(c+L+A*s+v<g)L+=A*s+v;else{if(L+A*s>this.width+1E-5)break;if(void 0!==G){var J=this.Zh*s,H=this.Wd*s;C=L;F=q;0===f&&(C=Math.round(C),F=Math.round(F));w.xa=C;w.ya=F;w.wb=C+J;
w.xb=F;w.jb=C;w.kb=F+H;w.lb=C+J;w.mb=F+H;0!==f&&(C=w,F=X,J=K,H=void 0,H=C.xa*F-C.ya*J,C.ya=C.ya*F+C.xa*J,C.xa=H,H=C.wb*F-C.xb*J,C.xb=C.xb*F+C.wb*J,C.wb=H,H=C.jb*F-C.kb*J,C.kb=C.kb*F+C.jb*J,C.jb=H,H=C.lb*F-C.mb*J,C.mb=C.mb*F+C.lb*J,C.lb=H);w.offset(c,b);a.pe(w.xa,w.ya,w.wb,w.xb,w.lb,w.mb,w.jb,w.kb,G)}L+=A*s+v;if(0===f&&c+L>d)break}}q+=u;if(q+u+y>this.height||b+q>l)break}}};c.d=new function(){};q.prototype.Lq=function(a){fa(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=
a,this.Gh=!0,this.b.pa=!0)};a.sv=function(a,b){var c=parseInt(b,10);this.Yd[a]!==c&&(this.Yd[a]=c,this.Gh=!0,this.b.pa=!0)};c.P=new q;s.prototype.Text=function(a){a.Ka(this.text)};c.Pa=new s})();function Z(g){this.b=g}
(function(){function g(a){v=a.x;h=a.y;p=a.z}function l(a){w=a.x;k=a.y;x=a.z}function e(a,b,c,e){var g;g=t.length?t.pop():new q;g.init(a,b,c,e);return g}function q(){this.Bh=this.id=this.bf=this.$e=this.y=this.x=this.yj=this.xj=this.Wk=this.time=this.Ul=0;this.Ih=this.Dj=!1}function s(){}function c(){}var a=Z.prototype;a.ua=function(a){this.na=a;this.b=a.b};a.ua.prototype.U=function(){};a.la=function(a){this.type=a;this.b=a.b;this.touches=[];this.gl=!1};var b=a.la.prototype,u={left:0,top:0};b.Cg=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 v=0,h=0,p=0,w=0,k=0,x=0,t=[];q.prototype.init=function(a,b,c,e){var g=Wa();this.Ul=this.Wk=this.time=g;this.xj=a;this.yj=b;this.x=a;this.y=b;this.$e=a;this.bf=b;this.id=c;this.Bh=e;this.Ih=this.Dj=!1};q.prototype.update=function(a,b,c){this.Wk=this.time;this.time=a;this.$e=this.x;this.bf=this.y;this.x=b;this.y=c;!this.Ih&&15<=Oa(this.xj,this.yj,this.x,this.y)&&(this.Ih=!0)};q.prototype.Dt=function(a,b){!this.Dj&&
500<=Wa()-this.Ul&&!this.Ih&&15>Oa(this.xj,this.yj,this.x,this.y)&&(this.Dj=!0,a.kd=this.Bh,a.kg=this.id,a.Cf=b,a.b.trigger(Z.prototype.d.rq,a),a.sd=this.x,a.td=this.y,a.b.trigger(Z.prototype.d.sq,a),a.Cf=0)};var z=-1E3,n=-1E3,r=-1E4;q.prototype.mo=function(a,b){if(!this.Dj){var c=Wa();333>=c-this.Ul&&!this.Ih&&15>Oa(this.xj,this.yj,this.x,this.y)&&(a.kd=this.Bh,a.kg=this.id,a.Cf=b,666>=c-r&&25>Oa(z,n,this.x,this.y)?(a.b.trigger(Z.prototype.d.pq,a),a.sd=this.x,a.td=this.y,a.b.trigger(Z.prototype.d.qq,
a),n=z=-1E3,r=-1E4):(a.b.trigger(Z.prototype.d.Dq,a),a.sd=this.x,a.td=this.y,a.b.trigger(Z.prototype.d.Eq,a),z=this.x,n=this.y,r=c),a.Cf=0)}};b.U=function(){this.qt=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.Cf=this.kg=this.kd=this.td=this.sd=this.Im=this.Hm=this.Gm=this.cr=this.br=this.$q=this.nh=this.mh=this.kh=0;this.Du=0!==this.D[0];var a=0<this.b.Kb?document:this.b.canvas,b=document;this.b.qb?b=a=window.Canvas:this.b.lc&&(b=a=window);var c=this;window.navigator.pointerEnabled?
(a.addEventListener("pointerdown",function(a){c.zo(a)},!1),a.addEventListener("pointermove",function(a){c.yo(a)},!1),b.addEventListener("pointerup",function(a){c.cj(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.cj(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.zo(a)},!1),a.addEventListener("MSPointerMove",function(a){c.yo(a)},!1),b.addEventListener("MSPointerUp",function(a){c.cj(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.cj(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.Co(a)},!1),a.addEventListener("touchmove",function(a){c.Bo(a)},!1),b.addEventListener("touchend",function(a){c.ul(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.ul(a,!0)},!1));if(this.qt){var e=function(a){a=a.reading;c.Gm=a.accelerationX;c.Hm=a.accelerationY;c.Im=a.accelerationZ},h=function(a){a=a.reading;c.kh=a.yawDegrees;c.mh=a.pitchDegrees;c.nh=a.rollDegrees},k=Windows.Devices.Sensors.Accelerometer.getDefault();k&&(k.reportInterval=Math.max(k.minimumReportInterval,16),
k.addEventListener("readingchanged",e));var n=Windows.Devices.Sensors.Inclinometer.getDefault();n&&(n.reportInterval=Math.max(n.minimumReportInterval,16),n.addEventListener("readingchanged",h));document.addEventListener("visibilitychange",function(){document.hidden||document.msHidden?(k&&k.removeEventListener("readingchanged",e),n&&n.removeEventListener("readingchanged",h)):(k&&k.addEventListener("readingchanged",e),n&&n.addEventListener("readingchanged",h))},!1)}else window.addEventListener("deviceorientation",
function(a){c.kh=a.alpha||0;c.mh=a.beta||0;c.nh=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.$q=a.accelerationIncludingGravity.x||0,c.br=a.accelerationIncludingGravity.y||0,c.cr=a.accelerationIncludingGravity.z||0);a.acceleration&&(c.Gm=a.acceleration.x||0,c.Hm=a.acceleration.y||0,c.Im=a.acceleration.z||0)},!1);this.Du&&!this.b.ra&&(jQuery(document).mousemove(function(a){c.rl(a)}),jQuery(document).mousedown(function(a){c.ql(a)}),jQuery(document).mouseup(function(a){c.sl(a)}));
this.b.Ef&&!this.b.qb&&AppMobi.accelerometer.watchAcceleration(g,{frequency:40,adjustForRotation:!0});this.b.mc&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(l,null,{frequency:40});this.b.vu(this)};b.yo=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var b=this.Cg(a.pointerId),c=Wa();if(0<=b){var e=this.b.ra?u:jQuery(this.b.canvas).offset(),b=this.touches[b];2>c-b.time||
b.update(c,a.pageX-e.left,a.pageY-e.top)}}};b.zo=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&ib(a)&&a.preventDefault();var b=this.b.ra?u:jQuery(this.b.canvas).offset(),c=a.pageX-b.left,b=a.pageY-b.top;Wa();this.kd=this.touches.length;this.kg=a.pointerId;this.touches.push(e(c,b,a.pointerId,this.kd));this.b.rb=!0;this.b.trigger(Z.prototype.d.zm,this);this.b.trigger(Z.prototype.d.Bm,this);this.sd=c;this.td=b;this.b.trigger(Z.prototype.d.Nj,this);
this.b.rb=!1}};b.cj=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&ib(a)&&a.preventDefault();var c=this.Cg(a.pointerId);this.kd=0<=c?this.touches[c].Bh:-1;this.kg=0<=c?this.touches[c].id:-1;this.b.rb=!0;this.b.trigger(Z.prototype.d.ym,this);this.b.trigger(Z.prototype.d.Mj,this);0<=c&&(b||this.touches[c].mo(this,c),100>t.length&&t.push(this.touches[c]),this.touches.splice(c,1));this.b.rb=!1}};b.Bo=function(a){a.preventDefault&&a.preventDefault();
var b=Wa(),c,e,g,h;c=0;for(e=a.changedTouches.length;c<e;c++)if(g=a.changedTouches[c],h=this.Cg(g.identifier),0<=h){var k=this.b.ra?u:jQuery(this.b.canvas).offset();h=this.touches[h];2>b-h.time||h.update(b,g.pageX-k.left,g.pageY-k.top)}};b.Co=function(a){a.preventDefault&&ib(a)&&a.preventDefault();var b=this.b.ra?u:jQuery(this.b.canvas).offset();Wa();this.b.rb=!0;var c,g,h,k;c=0;for(g=a.changedTouches.length;c<g;c++)if(h=a.changedTouches[c],k=this.Cg(h.identifier),-1===k){k=h.pageX-b.left;var l=h.pageY-
b.top;this.kd=this.touches.length;this.kg=h.identifier;this.touches.push(e(k,l,h.identifier,this.kd));this.b.trigger(Z.prototype.d.zm,this);this.b.trigger(Z.prototype.d.Bm,this);this.sd=k;this.td=l;this.b.trigger(Z.prototype.d.Nj,this)}this.b.rb=!1};b.ul=function(a,b){a.preventDefault&&ib(a)&&a.preventDefault();this.b.rb=!0;var c,e,g;c=0;for(e=a.changedTouches.length;c<e;c++)g=a.changedTouches[c],g=this.Cg(g.identifier),0<=g&&(this.kd=this.touches[g].Bh,this.kg=this.touches[g].id,this.b.trigger(Z.prototype.d.ym,
this),this.b.trigger(Z.prototype.d.Mj,this),b||this.touches[g].mo(this,g),100>t.length&&t.push(this.touches[g]),this.touches.splice(g,1));this.b.rb=!1};b.Nv=function(){return this.b.Ef&&0===this.kh&&0!==p?90*p:this.b.mc&&0===this.kh&&0!==x?90*x:this.kh};b.Ov=function(){return this.b.Ef&&0===this.mh&&0!==h?-90*h:this.b.mc&&0===this.mh&&0!==k?90*k:this.mh};b.Rv=function(){return this.b.Ef&&0===this.nh&&0!==v?90*v:this.b.mc&&0===this.nh&&0!==w?90*w:this.nh};b.ql=function(a){a.preventDefault&&this.b.Df&&
!this.b.Ad&&a.preventDefault();this.Co({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.gl=!0};b.rl=function(a){this.gl&&this.Bo({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};b.sl=function(a){a.preventDefault&&this.b.Df&&!this.b.Ad&&a.preventDefault();this.b.Df=!0;this.ul({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.gl=!1};b.Zl=function(){var a,b,c,e=Wa();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=e-50&&(c.Wk=e),c.Dt(this,
a)};s.prototype.Bm=function(){return!0};s.prototype.Mj=function(){return!0};s.prototype.Nj=function(a){return a?this.b.Eh(a,this.sd,this.td):!1};s.prototype.zm=function(a){a=Math.floor(a);return a===this.kd};s.prototype.ym=function(a){a=Math.floor(a);return a===this.kd};s.prototype.rq=function(){return!0};s.prototype.Dq=function(){return!0};s.prototype.pq=function(){return!0};s.prototype.sq=function(a){return a?this.b.Eh(a,this.sd,this.td):!1};s.prototype.Eq=function(a){return a?this.b.Eh(a,this.sd,
this.td):!1};s.prototype.qq=function(a){return a?this.b.Eh(a,this.sd,this.td):!1};a.d=new s;c.prototype.Em=function(a,b){var c=this.Cf;if(0>c||c>=this.touches.length)a.A(0);else{var e,g,h,k,l;ea(b)?(e=this.b.xd(0),g=e.scale,h=e.Bb,k=e.Pb,l=e.j,e.scale=1,e.Bb=1,e.Pb=1,e.j=0,a.A(e.nb(this.touches[c].x,this.touches[c].y,!0)),e.scale=g,e.Bb=h,e.Pb=k,e.j=l):(e=fa(b)?this.b.xd(b):this.b.Eg(b))?a.A(e.nb(this.touches[c].x,this.touches[c].y,!0)):a.A(0)}};c.prototype.Fm=function(a,b){var c=this.Cf;if(0>c||
c>=this.touches.length)a.A(0);else{var e,g,h,k,l;ea(b)?(e=this.b.xd(0),g=e.scale,h=e.Bb,k=e.Qb,l=e.j,e.scale=1,e.Bb=1,e.Qb=1,e.j=0,a.A(e.nb(this.touches[c].x,this.touches[c].y,!1)),e.scale=g,e.Bb=h,e.Qb=k,e.j=l):(e=fa(b)?this.b.xd(b):this.b.Eg(b))?a.A(e.nb(this.touches[c].x,this.touches[c].y,!1)):a.A(0)}};a.Pa=new c})();function nc(g){this.b=g}
(function(){function g(){}function l(){}function e(){}var q=nc.prototype;q.ua=function(a){this.na=a;this.b=a.b};q.ua.prototype.U=function(){};q.la=function(a){this.type=a;this.b=a.b};var s=q.la.prototype,c="",a="undefined"!==typeof window.is_scirra_arcade;a&&(c="arcade"+window.scirra_arcade_id);s.U=function(){"undefined"===typeof localStorage&&N("[Construct 2] Webstorage plugin: local storage is not supported on this platform.");"undefined"===typeof sessionStorage&&N("[Construct 2] Webstorage plugin: session storage is not supported on this platform.")};
g.prototype.hq=function(a){return"undefined"===typeof localStorage?!1:null!=localStorage.getItem(c+a)};g.prototype.zq=function(){return!0};q.d=new g;l.prototype.Uq=function(a,e){if("undefined"!==typeof localStorage)try{localStorage.setItem(c+a,e)}catch(g){this.b.trigger(nc.prototype.d.zq,this)}};q.P=new l;e.prototype.iq=function(a,e){"undefined"===typeof localStorage?a.Ka(""):a.Ka(localStorage.getItem(c+e)||"")};e.prototype.rm=function(b){if("undefined"===typeof localStorage)b.Ka("");else{var e={},
g,h,l;g=0;for(h=localStorage.length;g<h;g++)l=localStorage.key(g),a?l.substr(0,c.length)===c&&(e[l.substr(c.length)]=localStorage.getItem(l)):e[l]=localStorage.getItem(l);b.Ka(JSON.stringify({c2dictionary:!0,data:e}))}};q.Pa=new e})();function oc(g){this.b=g}
(function(){function g(){}function l(){}function e(){}var q=oc.prototype;q.ua=function(c){this.behavior=c;this.b=c.b};q.ua.prototype.U=function(){};q.la=function(c,a){this.type=c;this.behavior=c.behavior;this.k=a;this.b=c.b};var s=q.la.prototype;s.U=function(){var c=this.D[0];this.Oh=this.D[1];this.ti=this.D[2];this.jr=0!==this.D[3];this.Ol=0!==this.D[4];this.Oa=Math.cos(this.k.j)*c;this.Ca=Math.sin(this.k.j)*c;this.$e=this.k.x;this.bf=this.k.y;this.Nf=this.k.j;this.Jh=0;this.enabled=0!==this.D[5]};
s.ac=function(){return{acc:this.Oh,g:this.ti,dx:this.Oa,dy:this.Ca,lx:this.$e,ly:this.bf,lka:this.Nf,t:this.Jh,e:this.enabled}};s.Ac=function(c){this.Oh=c.acc;this.ti=c.g;this.Oa=c.dx;this.Ca=c.dy;this.$e=c.lx;this.bf=c.ly;this.Nf=c.lka;this.Jh=c.t;this.enabled=c.e};s.hb=function(){if(this.enabled){var c=this.b.xi(this.k),a,b;this.k.j!==this.Nf&&(this.Ol&&(a=Oa(0,0,this.Oa,this.Ca),this.Oa=Math.cos(this.k.j)*a,this.Ca=Math.sin(this.k.j)*a),this.Nf=this.k.j);0!==this.Oh&&(a=Oa(0,0,this.Oa,this.Ca),
b=0===this.Oa&&0===this.Ca?this.k.j:Ia(0,0,this.Oa,this.Ca),a+=this.Oh*c,0>a&&(a=0),this.Oa=Math.cos(b)*a,this.Ca=Math.sin(b)*a);0!==this.ti&&(this.Ca+=this.ti*c);this.$e=this.k.x;this.bf=this.k.y;if(0!==this.Oa||0!==this.Ca)if(this.k.x+=this.Oa*c,this.k.y+=this.Ca*c,this.Jh+=Oa(0,0,this.Oa*c,this.Ca*c),this.Ol&&(this.k.j=Ia(0,0,this.Oa,this.Ca),this.k.L(),this.Nf=this.k.j),this.k.L(),this.jr&&(a=this.b.nf(this.k)))this.b.bu(this.k,a),a=Oa(0,0,this.Oa,this.Ca),b=this.b.mr(this.k,this.$e,this.bf),
this.Oa=Math.cos(b)*a,this.Ca=Math.sin(b)*a,this.k.x+=this.Oa*c,this.k.y+=this.Ca*c,this.k.L(),this.Ol&&(this.Nf=this.k.j=b,this.k.L()),this.b.Zt(this.k,this.Oa/a,this.Ca/a,Math.max(2.5*a*c,30))||this.b.$t(this.k)}};g.prototype.Tp=function(c,a){return Yb(this.Jh,c,a)};q.d=new g;l.prototype.Kq=function(c){var a=Ia(0,0,this.Oa,this.Ca);this.Oa=Math.cos(a)*c;this.Ca=Math.sin(a)*c};l.prototype.Iq=function(c){c=U(c);var a=Oa(0,0,this.Oa,this.Ca);this.Oa=Math.cos(c)*a;this.Ca=Math.sin(c)*a};l.prototype.Dm=
function(c){this.enabled=1===c};q.P=new l;e.prototype.Pq=function(c){var a=Oa(0,0,this.Oa,this.Ca),a=gb(a);c.A(a)};q.Pa=new e})();function pc(g){this.b=g}
(function(){function g(){}var l=pc.prototype;l.ua=function(a){this.behavior=a;this.b=a.b};l.ua.prototype.U=function(){};l.la=function(a,b){this.type=a;this.behavior=a.behavior;this.k=b;this.b=a.b;this.Ua=0};var e=l.la.prototype,q=2*Math.PI,s=Math.PI/2,c=3*Math.PI/2;e.U=function(){this.ib=1===this.D[0];this.hh=this.D[1];this.pm=this.D[2];this.Ed=this.D[3];this.Ed+=Math.random()*this.D[4];0===this.Ed?this.Ua=0:(this.Ua=this.D[5]/this.Ed*q,this.Ua+=Math.random()*this.D[6]/this.Ed*q);this.Ob=this.D[7];
this.Ob+=Math.random()*this.D[8];this.sh=this.Re=this.W=0;this.init()};e.ac=function(){return{i:this.Ua,a:this.ib,mv:this.hh,w:this.pm,p:this.Ed,mag:this.Ob,iv:this.W,iv2:this.Re,r:this.sh,lkv:this.Xb,lkv2:this.Ug}};e.Ac=function(a){this.Ua=a.i;this.ib=a.a;this.hh=a.mv;this.pm=a.w;this.Ed=a.p;this.Ob=a.mag;this.W=a.iv;this.Re=a.iv2||0;this.sh=a.r;this.Xb=a.lkv;this.Ug=a.lkv2||0};e.init=function(){switch(this.hh){case 0:this.W=this.k.x;break;case 1:this.W=this.k.y;break;case 2:this.W=this.k.width;
this.sh=this.k.height/this.k.width;break;case 3:this.W=this.k.width;break;case 4:this.W=this.k.height;break;case 5:this.W=this.k.j;this.Ob=U(this.Ob);break;case 6:this.W=this.k.opacity;break;case 7:this.W=0;break;case 8:this.W=this.k.x,this.Re=this.k.y}this.Xb=this.W;this.Ug=this.Re};e.Md=function(a){a%=q;switch(this.pm){case 0:return Math.sin(a);case 1:return a<=s?a/s:a<=c?1-2*(a-s)/Math.PI:(a-c)/s-1;case 2:return 2*a/q-1;case 3:return-2*a/q+1;case 4:return a<Math.PI?-1:1}return 0};e.hb=function(){var a=
this.b.xi(this.k);if(this.ib&&0!==a){0===this.Ed?this.Ua=0:(this.Ua+=a/this.Ed*q,this.Ua%=q);switch(this.hh){case 0:this.k.x!==this.Xb&&(this.W+=this.k.x-this.Xb);this.k.x=this.W+this.Md(this.Ua)*this.Ob;this.Xb=this.k.x;break;case 1:this.k.y!==this.Xb&&(this.W+=this.k.y-this.Xb);this.k.y=this.W+this.Md(this.Ua)*this.Ob;this.Xb=this.k.y;break;case 2:this.k.width=this.W+this.Md(this.Ua)*this.Ob;this.k.height=this.k.width*this.sh;break;case 3:this.k.width=this.W+this.Md(this.Ua)*this.Ob;break;case 4:this.k.height=
this.W+this.Md(this.Ua)*this.Ob;break;case 5:this.k.j!==this.Xb&&(this.W=Fa(this.W+(this.k.j-this.Xb)));this.k.j=Fa(this.W+this.Md(this.Ua)*this.Ob);this.Xb=this.k.j;break;case 6:this.k.opacity=this.W+this.Md(this.Ua)*this.Ob/100;0>this.k.opacity?this.k.opacity=0:1<this.k.opacity&&(this.k.opacity=1);break;case 8:this.k.x!==this.Xb&&(this.W+=this.k.x-this.Xb),this.k.y!==this.Ug&&(this.Re+=this.k.y-this.Ug),this.k.x=this.W+Math.cos(this.k.j)*this.Md(this.Ua)*this.Ob,this.k.y=this.Re+Math.sin(this.k.j)*
this.Md(this.Ua)*this.Ob,this.Xb=this.k.x,this.Ug=this.k.y}this.k.L()}};e.Ao=function(a,b){switch(this.hh){case 2:this.W*=b.width/a.width;this.sh=b.height/b.width;break;case 3:this.W*=b.width/a.width;break;case 4:this.W*=b.height/a.height}};l.d=new function(){};g.prototype.Hq=function(a){this.ib=1===a};l.P=new g;l.Pa=new function(){}})();function hc(g){this.b=g}
(function(){function g(){}var l=hc.prototype;l.ua=function(e){this.behavior=e;this.b=e.b};l.ua.prototype.U=function(){};l.la=function(e,g){this.type=e;this.behavior=e.behavior;this.k=g;this.b=e.b};var e=l.la.prototype;e.U=function(){this.k.ba.solidEnabled=0!==this.D[0]};e.hb=function(){};l.d=new function(){};g.prototype.Dm=function(e){this.k.ba.solidEnabled=!!e};l.P=new g})();function rc(g){this.b=g}
(function(){var g=rc.prototype;g.ua=function(g){this.behavior=g;this.b=g.b};g.ua.prototype.U=function(){};g.la=function(g,e){this.type=g;this.behavior=g.behavior;this.k=e;this.b=g.b};g=g.la.prototype;g.U=function(){this.mode=this.D[0]};g.hb=function(){var g=this.k;g.ta();var e=g.Ga,q=g.n,s=q.Xa,c=0,a=0,b=0,u=0;0===this.mode?(a=s.width,u=s.height):(c=q.za,a=q.Ma,b=q.Aa,u=q.La);e.right<c?(g.x=a-1+(g.x-e.left),g.L()):e.left>a?(g.x=c+1-(e.right-g.x),g.L()):e.bottom<b?(g.y=u-1+(g.y-e.top),g.L()):e.top>
u&&(g.y=b+1-(e.bottom-g.y),g.L())}})();
function gc(){return[jc,kc,ic,lc,Y,mc,Z,nc,oc,rc,pc,hc,W.prototype.d.vm,W.prototype.P.Mq,mc.prototype.P.Lq,W.prototype.Pa.uu,ic.prototype.P.CallFunction,W.prototype.d.Up,jc.prototype.P.Sq,jc.prototype.P.Play,nc.prototype.d.hq,nc.prototype.Pa.iq,Y.prototype.d.sf,oc.prototype.P.Iq,ic.prototype.d.Nh,W.prototype.Pa.floor,W.prototype.Pa.random,W.prototype.P.Xp,oc.prototype.P.Kq,Y.prototype.d.dq,Y.prototype.d.Vp,Y.prototype.P.tm,W.prototype.P.Op,oc.prototype.Pa.Pq,Z.prototype.d.Mj,Y.prototype.d.Wp,Y.prototype.d.bq,
Y.prototype.P.Nq,W.prototype.P.Wq,Y.prototype.P.Jq,mc.prototype.P.tm,oc.prototype.P.Dm,nc.prototype.P.Uq,Y.prototype.d.nq,Y.prototype.P.Oq,Z.prototype.d.Nj,W.prototype.P.Gq,kc.prototype.P.$p,Y.prototype.P.Tq,Y.prototype.P.Rq,W.prototype.P.Zp,oc.prototype.d.Tp,pc.prototype.P.Hq]};
