// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa,ca,da,ea,C,ga,ha,ia,F,la,ma,oa,pa,qa,ra,Q,ta,ua,T,va,wa,za,Aa,Ba,Ca,Da,V,Ea,Fa,Ga,Ia,Ja,Ka,La,Ma,Na,Oa,Ta,Ua,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,vb,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,Yb,W,Zb,$b={},ac={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(k){return k.__proto__}:function(k){return k.constructor.prototype});
(function(){function k(d,a,e,s){this.set(d,a,e,s)}function q(){this.Ib=this.Hb=this.Kb=this.Jb=this.Rb=this.Qb=this.Ya=this.Xa=0}function m(d,a,e,s){d<a?e<s?(r=d<e?d:e,v=a>s?a:s):(r=d<s?d:s,v=a>e?a:e):e<s?(r=a<e?a:e,v=d>s?d:s):(r=a<s?a:s,v=d>e?d:e)}function t(){this.items=this.bd=null;this.Zf=0;s&&(this.bd=new Set);this.zg=[];this.ke=!0}function h(d){w[P++]=d}function a(){this.J=this.ek=this.y=this.Ek=0}function b(d){this.fb=[];this.gi=this.ii=this.ji=this.hi=0;this.Sh(d)}function c(d,a){this.Hk=
d;this.Gk=a;this.cells={}}function f(d,a){this.Hk=d;this.Gk=a;this.cells={}}function l(d,a,e){var s;return R.length?(s=R.pop(),s.ll=d,s.x=a,s.y=e,s):new ca(d,a,e)}function e(d,a,e){this.ll=d;this.x=a;this.y=e;this.mb=new da}function n(d,a,e){var s;return I.length?(s=I.pop(),s.ll=d,s.x=a,s.y=e,s):new ea(d,a,e)}function y(d,a,e){this.ll=d;this.x=a;this.y=e;this.mb=[];this.Yf=!0;this.ud=new da;this.Dg=!1}function g(d,a){return d.hd-a.hd}C=function(d){window.console&&window.console.log&&window.console.log(d)};
ga=function(d){window.console&&window.console.error&&window.console.error(d)};aa=function(d){return d};ha=function(d){return"undefined"===typeof d};ia=function(d){return"number"===typeof d};F=function(d){return"string"===typeof d};la=function(d){return 0<d&&0===(d-1&d)};ma=function(d){--d;for(var a=1;32>a;a<<=1)d|=d>>a;return d+1};oa=function(d){return 0>d?-d:d};pa=function(d,a){return d>a?d:a};qa=function(d,a){return d<a?d:a};ra=Math.PI;Q=function(d){return 0<=d?d|0:(d|0)-1};ta=function(d){var a=
d|0;return a===d?a:a+1};ua=function(d,a,e,s,g,b,w,n){var c,f,p,l;d<e?(f=d,c=e):(f=e,c=d);g<w?(l=g,p=w):(l=w,p=g);if(c<l||f>p)return!1;a<s?(f=a,c=s):(f=s,c=a);b<n?(l=b,p=n):(l=n,p=b);if(c<l||f>p)return!1;c=g-d+w-e;f=b-a+n-s;d=e-d;a=s-a;g=w-g;b=n-b;n=oa(a*g-b*d);return oa(g*f-b*c)>n?!1:oa(d*f-a*c)<=n};k.prototype.set=function(d,a,e,s){this.left=d;this.top=a;this.right=e;this.bottom=s};k.prototype.Mg=function(d){this.left=d.left;this.top=d.top;this.right=d.right;this.bottom=d.bottom};k.prototype.width=
function(){return this.right-this.left};k.prototype.height=function(){return this.bottom-this.top};k.prototype.offset=function(d,a){this.left+=d;this.top+=a;this.right+=d;this.bottom+=a;return this};k.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)};k.prototype.uu=function(d){return!(d.right<this.left||d.bottom<this.top||d.left>this.right||d.top>this.bottom)};k.prototype.vu=
function(d,a,e){return!(d.right+a<this.left||d.bottom+e<this.top||d.left+a>this.right||d.top+e>this.bottom)};k.prototype.Cb=function(d,a){return d>=this.left&&d<=this.right&&a>=this.top&&a<=this.bottom};k.prototype.Bi=function(d){return this.left===d.left&&this.top===d.top&&this.right===d.right&&this.bottom===d.bottom};T=k;q.prototype.tg=function(d){this.Xa=d.left;this.Ya=d.top;this.Qb=d.right;this.Rb=d.top;this.Jb=d.right;this.Kb=d.bottom;this.Hb=d.left;this.Ib=d.bottom};q.prototype.Xp=function(d,
a){if(0===a)this.tg(d);else{var e=Math.sin(a),s=Math.cos(a),g=d.left*e,b=d.top*e,w=d.right*e,e=d.bottom*e,n=d.left*s,c=d.top*s,f=d.right*s,s=d.bottom*s;this.Xa=n-b;this.Ya=c+g;this.Qb=f-b;this.Rb=c+w;this.Jb=f-e;this.Kb=s+w;this.Hb=n-e;this.Ib=s+g}};q.prototype.offset=function(d,a){this.Xa+=d;this.Ya+=a;this.Qb+=d;this.Rb+=a;this.Jb+=d;this.Kb+=a;this.Hb+=d;this.Ib+=a;return this};var r=0,v=0;q.prototype.Jn=function(d){m(this.Xa,this.Qb,this.Jb,this.Hb);d.left=r;d.right=v;m(this.Ya,this.Rb,this.Kb,
this.Ib);d.top=r;d.bottom=v};q.prototype.Cb=function(d,a){var e=this.Qb-this.Xa,s=this.Rb-this.Ya,g=this.Jb-this.Xa,b=this.Kb-this.Ya,w=d-this.Xa,n=a-this.Ya,c=e*e+s*s,f=e*g+s*b,s=e*w+s*n,p=g*g+b*b,l=g*w+b*n,r=1/(c*p-f*f),e=(p*s-f*l)*r,c=(c*l-f*s)*r;if(0<=e&&0<c&&1>e+c)return!0;e=this.Hb-this.Xa;s=this.Ib-this.Ya;c=e*e+s*s;f=e*g+s*b;s=e*w+s*n;r=1/(c*p-f*f);e=(p*s-f*l)*r;c=(c*l-f*s)*r;return 0<=e&&0<c&&1>e+c};q.prototype.ie=function(d,a){if(a)switch(d){case 0:return this.Xa;case 1:return this.Qb;case 2:return this.Jb;
case 3:return this.Hb;case 4:return this.Xa;default:return this.Xa}else switch(d){case 0:return this.Ya;case 1:return this.Rb;case 2:return this.Kb;case 3:return this.Ib;case 4:return this.Ya;default:return this.Ya}};q.prototype.hp=function(){return(this.Xa+this.Qb+this.Jb+this.Hb)/4};q.prototype.ip=function(){return(this.Ya+this.Rb+this.Kb+this.Ib)/4};q.prototype.Ao=function(d){var a=d.hp(),e=d.ip();if(this.Cb(a,e))return!0;a=this.hp();e=this.ip();if(d.Cb(a,e))return!0;var s,g,b,w,c,n,f,p;for(f=
0;4>f;f++)for(p=0;4>p;p++)if(a=this.ie(f,!0),e=this.ie(f,!1),s=this.ie(f+1,!0),g=this.ie(f+1,!1),b=d.ie(p,!0),w=d.ie(p,!1),c=d.ie(p+1,!0),n=d.ie(p+1,!1),ua(a,e,s,g,b,w,c,n))return!0;return!1};va=q;wa=function(d,a){for(var e in a)a.hasOwnProperty(e)&&(d[e]=a[e]);return d};za=function(d,a){var e,s;a=Q(a);if(!(0>a||a>=d.length)){e=a;for(s=d.length-1;e<s;e++)d[e]=d[e+1];d.length=s}};Aa=function(d,a){d.length=a.length;var e,s;e=0;for(s=a.length;e<s;e++)d[e]=a[e]};Ba=function(d,a){d.push.apply(d,a)};Ca=
function(d,a){var e,s;e=0;for(s=d.length;e<s;++e)if(d[e]===a)return e;return-1};Da=function(d,a){var e=Ca(d,a);-1!==e&&za(d,e)};V=function(d){return d/(180/ra)};Ea=function(d){return 180/ra*d};Fa=function(d){d%=360;0>d&&(d+=360);return d};Ga=function(d){d%=2*ra;0>d&&(d+=2*ra);return d};Ia=function(d){return Fa(Ea(d))};Ja=function(d){return Ga(V(d))};Ka=function(d,a,e,s){return Math.atan2(s-a,e-d)};La=function(d,a){if(d===a)return 0;var e=Math.sin(d),s=Math.cos(d),g=Math.sin(a),b=Math.cos(a),e=e*g+
s*b;return 1<=e?0:-1>=e?ra:Math.acos(e)};Ma=function(d,a,e){var s=Math.sin(d),g=Math.cos(d),b=Math.sin(a),w=Math.cos(a);return Math.acos(s*b+g*w)>e?0<g*b-s*w?Ga(d+e):Ga(d-e):Ga(a)};Na=function(d,a){var e=Math.sin(d),s=Math.cos(d),g=Math.sin(a),b=Math.cos(a);return 0>=s*g-e*b};Oa=function(d,a,e,s,g,b){if(0===e)return b?d:a;var w=Math.sin(e);e=Math.cos(e);d-=s;a-=g;var c=d*w;d=d*e-a*w;a=a*e+c;return b?d+s:a+g};Ta=function(d,a,e,s){d=e-d;a=s-a;return Math.sqrt(d*d+a*a)};Ua=function(d,a){return!d!==!a};
Va=function(d){for(var a in d)if(d.hasOwnProperty(a))return!0;return!1};Wa=function(d){for(var a in d)d.hasOwnProperty(a)&&delete d[a]};var G=+new Date;Xa=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()-G};var p=!1,u=p=!1,d=!1;"undefined"!==typeof window&&
(p=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),p=!p&&/safari/i.test(navigator.userAgent),u=/(iphone|ipod|ipad)/i.test(navigator.userAgent),d=window.c2ejecta);var s=!p&&!d&&!u&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;t.prototype.contains=function(d){return this.Md()?!1:s?this.bd.has(d):this.items&&this.items.hasOwnProperty(d)};t.prototype.add=function(d){if(s)this.bd.has(d)||(this.bd.add(d),this.ke=!1);else{var a=d.toString(),e=this.items;
e?e.hasOwnProperty(a)||(e[a]=d,this.Zf++,this.ke=!1):(this.items={},this.items[a]=d,this.Zf=1,this.ke=!1)}};t.prototype.remove=function(d){if(!this.Md())if(s)this.bd.has(d)&&(this.bd["delete"](d),this.ke=!1);else if(this.items){d=d.toString();var a=this.items;a.hasOwnProperty(d)&&(delete a[d],this.Zf--,this.ke=!1)}};t.prototype.clear=function(){this.Md()||(s?this.bd.clear():(this.items=null,this.Zf=0),this.zg.length=0,this.ke=!0)};t.prototype.Md=function(){return 0===this.count()};t.prototype.count=
function(){return s?this.bd.size:this.Zf};var w=null,P=0;t.prototype.Lv=function(){if(!this.ke){if(s)this.zg.length=this.bd.size,w=this.zg,P=0,this.bd.forEach(h),w=null,P=0;else{var d=this.zg;d.length=this.Zf;var a,e=0,g=this.items;if(g)for(a in g)g.hasOwnProperty(a)&&(d[e++]=g[a])}this.ke=!0}};t.prototype.$d=function(){this.Lv();return this.zg};da=t;new da;Ya=function(d,a){s?Za(d,a.bd):$a(d,a.$d())};Za=function(d,a){var e,s,g,b;s=e=0;for(g=d.length;e<g;++e)b=d[e],a.has(b)||(d[s++]=b);d.length=s};
$a=function(d,a){var e,s,g,b;s=e=0;for(g=d.length;e<g;++e)b=d[e],-1===Ca(a,b)&&(d[s++]=b);d.length=s};a.prototype.add=function(d){this.y=d-this.Ek;this.ek=this.J+this.y;this.Ek=this.ek-this.J-this.y;this.J=this.ek};a.prototype.reset=function(){this.J=this.ek=this.y=this.Ek=0};ab=a;bb=function(d){return d.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};b.prototype.Sh=function(d){this.Kp=d;this.ad=d.length/2;this.fb.length=d.length;this.mi=this.ni=-1;this.Mn=0};b.prototype.Vf=function(){return!this.Kp.length};
b.prototype.ya=function(){for(var d=this.fb,a=d[0],e=a,s=d[1],g=s,b,w,c=1,f=this.ad;c<f;++c)w=2*c,b=d[w],w=d[w+1],b<a&&(a=b),b>e&&(e=b),w<s&&(s=w),w>g&&(g=w);this.hi=a;this.ii=e;this.ji=s;this.gi=g};b.prototype.tg=function(d,a,e){this.fb.length=8;this.ad=4;var s=this.fb;s[0]=d.left-a;s[1]=d.top-e;s[2]=d.right-a;s[3]=d.top-e;s[4]=d.right-a;s[5]=d.bottom-e;s[6]=d.left-a;s[7]=d.bottom-e;this.ni=d.right-d.left;this.mi=d.bottom-d.top;this.ya()};b.prototype.sg=function(d,a,e,s,g){this.fb.length=8;this.ad=
4;var b=this.fb;b[0]=d.Xa-a;b[1]=d.Ya-e;b[2]=d.Qb-a;b[3]=d.Rb-e;b[4]=d.Jb-a;b[5]=d.Kb-e;b[6]=d.Hb-a;b[7]=d.Ib-e;this.ni=s;this.mi=g;this.ya()};b.prototype.Wp=function(d){this.ad=d.ad;Aa(this.fb,d.fb);this.hi=d.hi;this.ji-d.ji;this.ii=d.ii;this.gi=d.gi};b.prototype.Kf=function(d,a,e){if(this.ni!==d||this.mi!==a||this.Mn!==e){this.ni=d;this.mi=a;this.Mn=e;var s,g,b,w,c,f=0,n=1,p=this.Kp,l=this.fb;0!==e&&(f=Math.sin(e),n=Math.cos(e));e=0;for(b=this.ad;e<b;e++)s=2*e,g=s+1,w=p[s]*d,c=p[g]*a,l[s]=w*n-c*
f,l[g]=c*n+w*f;this.ya()}};b.prototype.Cb=function(d,a){var e=this.fb;if(d===e[0]&&a===e[1])return!0;var s,g,b,w=this.ad,c=this.hi-110,f=this.ji-101,n=this.ii+131,p=this.gi+120,l,r,P=0,v=0;for(s=0;s<w;s++)g=2*s,b=(s+1)%w*2,l=e[g],g=e[g+1],r=e[b],b=e[b+1],ua(c,f,d,a,l,g,r,b)&&P++,ua(n,p,d,a,l,g,r,b)&&v++;return 1===P%2||1===v%2};b.prototype.eh=function(d,a,e){var s=d.fb,g=this.fb;if(this.Cb(s[0]+a,s[1]+e)||d.Cb(g[0]-a,g[1]-e))return!0;var b,w,c,f,n,p,l,r,P,v,u,m;b=0;for(f=this.ad;b<f;b++)for(w=2*b,
c=(b+1)%f*2,r=g[w],w=g[w+1],P=g[c],v=g[c+1],c=0,l=d.ad;c<l;c++)if(n=2*c,p=(c+1)%l*2,u=s[n]+a,n=s[n+1]+e,m=s[p]+a,p=s[p+1]+e,ua(r,w,P,v,u,n,m,p))return!0;return!1};cb=b;c.prototype.qe=function(d,a,e){var s;s=this.cells[d];return s?(s=s[a])?s:e?(s=l(this,d,a),this.cells[d][a]=s):null:e?(s=l(this,d,a),this.cells[d]={},this.cells[d][a]=s):null};c.prototype.mc=function(d){return Q(d/this.Hk)};c.prototype.nc=function(d){return Q(d/this.Gk)};c.prototype.update=function(d,a,e){var s,g,b,w,c;if(a)for(s=a.left,
g=a.right;s<=g;++s)for(b=a.top,w=a.bottom;b<=w;++b)if(!e||!e.Cb(s,b))if(c=this.qe(s,b,!1))c.remove(d),c.Md()&&(c.mb.clear(),1E3>R.length&&R.push(c),this.cells[s][b]=null);if(e)for(s=e.left,g=e.right;s<=g;++s)for(b=e.top,w=e.bottom;b<=w;++b)a&&a.Cb(s,b)||this.qe(s,b,!0).zl(d)};c.prototype.Oj=function(d,a){var e,s,g,b,w,c;e=this.mc(d.left);g=this.nc(d.top);s=this.mc(d.right);for(w=this.nc(d.bottom);e<=s;++e)for(b=g;b<=w;++b)(c=this.qe(e,b,!1))&&c.dump(a)};db=c;f.prototype.qe=function(d,a,e){var s;s=
this.cells[d];return s?(s=s[a])?s:e?(s=n(this,d,a),this.cells[d][a]=s):null:e?(s=n(this,d,a),this.cells[d]={},this.cells[d][a]=s):null};f.prototype.mc=function(d){return Q(d/this.Hk)};f.prototype.nc=function(d){return Q(d/this.Gk)};f.prototype.update=function(d,a,e){var s,g,b,w,c;if(a)for(s=a.left,g=a.right;s<=g;++s)for(b=a.top,w=a.bottom;b<=w;++b)if(!e||!e.Cb(s,b))if(c=this.qe(s,b,!1))c.remove(d),c.Md()&&(c.reset(),1E3>I.length&&I.push(c),this.cells[s][b]=null);if(e)for(s=e.left,g=e.right;s<=g;++s)for(b=
e.top,w=e.bottom;b<=w;++b)a&&a.Cb(s,b)||this.qe(s,b,!0).zl(d)};f.prototype.Oj=function(d,a,e,s,g){var b,w;d=this.mc(d);a=this.nc(a);e=this.mc(e);for(b=this.nc(s);d<=e;++d)for(s=a;s<=b;++s)(w=this.qe(d,s,!1))&&w.dump(g)};f.prototype.Gu=function(d){var a,e,s,g,b;a=d.left;s=d.top;e=d.right;for(g=d.bottom;a<=e;++a)for(d=s;d<=g;++d)if(b=this.qe(a,d,!1))b.Yf=!1};eb=f;var R=[];e.prototype.Md=function(){return this.mb.Md()};e.prototype.zl=function(d){this.mb.add(d)};e.prototype.remove=function(d){this.mb.remove(d)};
e.prototype.dump=function(d){Ba(d,this.mb.$d())};ca=e;var I=[];y.prototype.Md=function(){if(!this.mb.length)return!0;if(this.mb.length>this.ud.count())return!1;this.Yk();return!0};y.prototype.zl=function(d){this.ud.contains(d)?(this.ud.remove(d),this.ud.Md()&&(this.Dg=!1)):this.mb.length?(this.mb[this.mb.length-1].qd()>d.qd()&&(this.Yf=!1),this.mb.push(d)):(this.mb.push(d),this.Yf=!0)};y.prototype.remove=function(d){this.ud.add(d);this.Dg=!0;30<=this.ud.count()&&this.Yk()};y.prototype.Yk=function(){this.Dg&&
(this.ud.count()===this.mb.length?this.reset():(Ya(this.mb,this.ud),this.ud.clear(),this.Dg=!1))};y.prototype.bt=function(){this.Yf||(this.mb.sort(g),this.Yf=!0)};y.prototype.reset=function(){this.mb.length=0;this.Yf=!0;this.ud.clear();this.Dg=!1};y.prototype.dump=function(d){this.Yk();this.bt();this.mb.length&&d.push(this.mb)};ea=y;var A="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");fb=function(d){return 0>=d||11<=
d?"source-over":A[d-1]};gb=function(d,a,e){if(e)switch(d.zb=e.ONE,d.xb=e.ONE_MINUS_SRC_ALPHA,a){case 1:d.zb=e.ONE;d.xb=e.ONE;break;case 3:d.zb=e.ONE;d.xb=e.ZERO;break;case 4:d.zb=e.ONE_MINUS_DST_ALPHA;d.xb=e.ONE;break;case 5:d.zb=e.DST_ALPHA;d.xb=e.ZERO;break;case 6:d.zb=e.ZERO;d.xb=e.SRC_ALPHA;break;case 7:d.zb=e.ONE_MINUS_DST_ALPHA;d.xb=e.ZERO;break;case 8:d.zb=e.ZERO;d.xb=e.ONE_MINUS_SRC_ALPHA;break;case 9:d.zb=e.DST_ALPHA;d.xb=e.ONE_MINUS_SRC_ALPHA;break;case 10:d.zb=e.ONE_MINUS_DST_ALPHA,d.xb=
e.SRC_ALPHA}};hb=function(d){return Math.round(1E6*d)/1E6};ib=function(d,a){return"string"!==typeof d||"string"!==typeof a||d.length!==a.length?!1:d===a?!0:d.toLowerCase()===a.toLowerCase()};jb=function(d){d=d.target;return!d||d===document||d===window||document&&document.body&&d===document.body||ib(d.tagName,"canvas")?!0:!1}})();var bc="undefined"!==typeof Float32Array?Float32Array:Array;function cc(k){var q=new bc(3);k&&(q[0]=k[0],q[1]=k[1],q[2]=k[2]);return q}
function dc(k){var q=new bc(16);k&&(q[0]=k[0],q[1]=k[1],q[2]=k[2],q[3]=k[3],q[4]=k[4],q[5]=k[5],q[6]=k[6],q[7]=k[7],q[8]=k[8],q[9]=k[9],q[10]=k[10],q[11]=k[11],q[12]=k[12],q[13]=k[13],q[14]=k[14],q[15]=k[15]);return q}function ec(k,q){q[0]=k[0];q[1]=k[1];q[2]=k[2];q[3]=k[3];q[4]=k[4];q[5]=k[5];q[6]=k[6];q[7]=k[7];q[8]=k[8];q[9]=k[9];q[10]=k[10];q[11]=k[11];q[12]=k[12];q[13]=k[13];q[14]=k[14];q[15]=k[15]}
function fc(k,q){var m=q[0],t=q[1];q=q[2];k[0]*=m;k[1]*=m;k[2]*=m;k[3]*=m;k[4]*=t;k[5]*=t;k[6]*=t;k[7]*=t;k[8]*=q;k[9]*=q;k[10]*=q;k[11]*=q}
function gc(k,q,m,t){t||(t=dc());var h,a,b,c,f,l,e,n,y=k[0],g=k[1];k=k[2];a=m[0];b=m[1];h=m[2];m=q[1];l=q[2];y===q[0]&&g===m&&k===l?(k=t,k[0]=1,k[1]=0,k[2]=0,k[3]=0,k[4]=0,k[5]=1,k[6]=0,k[7]=0,k[8]=0,k[9]=0,k[10]=1,k[11]=0,k[12]=0,k[13]=0,k[14]=0,k[15]=1):(m=y-q[0],l=g-q[1],e=k-q[2],n=1/Math.sqrt(m*m+l*l+e*e),m*=n,l*=n,e*=n,q=b*e-h*l,h=h*m-a*e,a=a*l-b*m,(n=Math.sqrt(q*q+h*h+a*a))?(n=1/n,q*=n,h*=n,a*=n):a=h=q=0,b=l*a-e*h,c=e*q-m*a,f=m*h-l*q,(n=Math.sqrt(b*b+c*c+f*f))?(n=1/n,b*=n,c*=n,f*=n):f=c=b=0,
t[0]=q,t[1]=b,t[2]=m,t[3]=0,t[4]=h,t[5]=c,t[6]=l,t[7]=0,t[8]=a,t[9]=f,t[10]=e,t[11]=0,t[12]=-(q*y+h*g+a*k),t[13]=-(b*y+c*g+f*k),t[14]=-(m*y+l*g+e*k),t[15]=1)}
(function(){function k(a){this.we=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.Nn=cc([0,0,100]);this.To=cc([0,0,0]);this.uq=cc([0,1,0]);this.ln=cc([1,1,1]);this.Xn=!0;this.Xl=dc();this.Jc=dc();this.Lo=dc();this.Nk=dc();this.u=a;this.wo()}function q(a,b,c){this.u=a;this.Th=b;this.name=c;this.Ic=a.getAttribLocation(b,"aPos");this.Be=a.getAttribLocation(b,"aTex");this.Ro=a.getUniformLocation(b,"matP");this.tj=a.getUniformLocation(b,"matMV");this.dg=
a.getUniformLocation(b,"opacity");this.So=a.getUniformLocation(b,"samplerFront");this.zh=a.getUniformLocation(b,"samplerBack");this.of=a.getUniformLocation(b,"destStart");this.nf=a.getUniformLocation(b,"destEnd");this.Tl=a.getUniformLocation(b,"seconds");this.Sl=a.getUniformLocation(b,"pixelWidth");this.Rl=a.getUniformLocation(b,"pixelHeight");this.yh=a.getUniformLocation(b,"layerScale");this.xh=a.getUniformLocation(b,"layerAngle");this.Bh=a.getUniformLocation(b,"viewOrigin");this.Ah=a.getUniformLocation(b,
"scrollPos");this.pu=!!(this.Sl||this.Rl||this.Tl||this.zh||this.of||this.nf||this.yh||this.xh||this.Bh||this.Ah);this.bp=this.cp=-999;this.vj=1;this.Xo=this.Wo=0;this.Zo=this.Vo=this.Uo=1;this.ep=this.dp=this.gp=this.fp=this.Yo=0;this.Il=[];this.$o=dc();this.dg&&a.uniform1f(this.dg,1);this.So&&a.uniform1i(this.So,0);this.zh&&a.uniform1i(this.zh,1);this.of&&a.uniform2f(this.of,0,0);this.nf&&a.uniform2f(this.nf,1,1);this.yh&&a.uniform1f(this.yh,1);this.xh&&a.uniform1f(this.xh,0);this.Bh&&a.uniform2f(this.Bh,
0,0);this.Ah&&a.uniform2f(this.Ah,0,0);this.bf=!1}function m(a,b){this.type=a;this.C=b;this.u=b.u;this.Gc=this.vc=this.up=0;this.na=this.ed=null;this.Yp=[]}k.prototype.wo=function(){var a=this.u,b;this.Mo=1;this.kf=this.ze=null;this.ti=1;a.clearColor(0,0,0,0);a.clear(a.COLOR_BUFFER_BIT);a.enable(a.BLEND);a.blendFunc(a.ONE,a.ONE_MINUS_SRC_ALPHA);a.disable(a.CULL_FACE);a.disable(a.DEPTH_TEST);this.No=a.ONE;this.Ko=a.ONE_MINUS_SRC_ALPHA;this.nm=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.nm);this.bi=
Array(4);this.Xh=Array(4);for(b=0;4>b;b++)this.bi[b]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.bi[b]),this.Xh[b]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.Xh[b]);this.Hd=0;this.su=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.su);this.hn=new Float32Array(16E3);this.Rm=new Float32Array(16E3);this.Gp=new Float32Array(32E3);for(var c=new Uint16Array(12E3),f=b=0;12E3>b;)c[b++]=f,c[b++]=f+1,c[b++]=f+2,c[b++]=f,c[b++]=f+2,c[b++]=f+3,f+=4;a.bufferData(a.ELEMENT_ARRAY_BUFFER,c,
a.STATIC_DRAW);this.lg=this.Cd=0;this.hb=[];b=this.Lk({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.hb.push(b);b=this.Lk({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.hb.push(b);for(var l in hc)hc.hasOwnProperty(l)&&this.hb.push(this.Lk(hc[l],
"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}",l));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,null);this.Fd=[];this.ld=0;this.Yb=this.Lb=!1;this.Tn=this.mh=-1;this.Pg=null;this.Gt=a.createFramebuffer();this.Qp=null;this.Ne=cc([0,0,0]);a=a.getParameter(a.ALIASED_POINT_SIZE_RANGE);this.Iu=a[0];this.Yl=
a[1];2048<this.Yl&&(this.Yl=2048);this.zd(0)};q.prototype.bn=function(a){var b=this.$o;if(b[0]!==a[0]||b[1]!==a[1]||b[2]!==a[2]||b[3]!==a[3]||b[4]!==a[4]||b[5]!==a[5]||b[6]!==a[6]||b[7]!==a[7]||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])ec(a,this.$o),this.u.uniformMatrix4fv(this.tj,!1,a)};k.prototype.Lk=function(a,b,c){var f=this.u,l=f.createShader(f.FRAGMENT_SHADER);f.shaderSource(l,a.src);f.compileShader(l);if(!f.getShaderParameter(l,
f.COMPILE_STATUS))return f.deleteShader(l),null;var e=f.createShader(f.VERTEX_SHADER);f.shaderSource(e,b);f.compileShader(e);if(!f.getShaderParameter(e,f.COMPILE_STATUS))return f.deleteShader(l),f.deleteShader(e),null;b=f.createProgram();f.attachShader(b,l);f.attachShader(b,e);f.linkProgram(b);if(!f.getProgramParameter(b,f.LINK_STATUS))return f.deleteShader(l),f.deleteShader(e),f.deleteProgram(b),null;f.useProgram(b);f.deleteShader(l);f.deleteShader(e);c=new q(f,b,c);c.Di=a.Di||0;c.Ei=a.Ei||0;c.Mk=
!!a.Mk;c.Ak=!!a.Ak;c.U=a.U||[];a=0;for(l=c.U.length;a<l;a++)c.U[a][1]=f.getUniformLocation(b,c.U[a][0]),c.Il.push(0),f.uniform1f(c.U[a][1],0);return c};k.prototype.il=function(a){var b,c;b=0;for(c=this.hb.length;b<c;b++)if(this.hb[b].name===a)return b;return-1};k.prototype.Jp=function(a,b,c){var f=this.Jc,l=this.Xl,e=[0,0,0,0,0,0,0,0];e[0]=f[0]*a+f[4]*b+f[12];e[1]=f[1]*a+f[5]*b+f[13];e[2]=f[2]*a+f[6]*b+f[14];e[3]=f[3]*a+f[7]*b+f[15];e[4]=l[0]*e[0]+l[4]*e[1]+l[8]*e[2]+l[12]*e[3];e[5]=l[1]*e[0]+l[5]*
e[1]+l[9]*e[2]+l[13]*e[3];e[6]=l[2]*e[0]+l[6]*e[1]+l[10]*e[2]+l[14]*e[3];e[7]=-e[2];0!==e[7]&&(e[7]=1/e[7],e[4]*=e[7],e[5]*=e[7],e[6]*=e[7],c[0]=(.5*e[4]+.5)*this.width,c[1]=(.5*e[5]+.5)*this.height)};k.prototype.rg=function(a,b,c){if(this.width!==a||this.height!==b||c){this.Jd();this.width=a;this.height=b;this.u.viewport(0,0,a,b);b=a/b;var f=this.Xl,l;l=1*Math.tan(45*Math.PI/360);b*=l;a=-b;c=-l;f||(f=dc());var e=b-a,n=l-c;f[0]=2/e;f[1]=0;f[2]=0;f[3]=0;f[4]=0;f[5]=2/n;f[6]=0;f[7]=0;f[8]=(b+a)/e;f[9]=
(l+c)/n;f[10]=-1001/999;f[11]=-1;f[12]=0;f[13]=0;f[14]=-2E3/999;f[15]=0;gc(this.Nn,this.To,this.uq,this.Jc);a=[0,0];b=[0,0];this.Jp(0,0,a);this.Jp(1,1,b);this.ln[0]=1/(b[0]-a[0]);this.ln[1]=-1/(b[1]-a[1]);a=0;for(b=this.hb.length;a<b;a++)c=this.hb[a],c.bf=!1,c.Ro&&(this.u.useProgram(c.Th),this.u.uniformMatrix4fv(c.Ro,!1,this.Xl));this.u.useProgram(this.hb[this.mh].Th);this.u.bindTexture(this.u.TEXTURE_2D,null);this.u.activeTexture(this.u.TEXTURE1);this.u.bindTexture(this.u.TEXTURE_2D,null);this.u.activeTexture(this.u.TEXTURE0);
this.kf=this.ze=null}};k.prototype.wd=function(){gc(this.Nn,this.To,this.uq,this.Jc);fc(this.Jc,this.ln)};k.prototype.translate=function(a,b){if(0!==a||0!==b){this.Ne[0]=a;this.Ne[1]=b;this.Ne[2]=0;var c=this.Jc,f=this.Ne,l=f[0],e=f[1],f=f[2];c[12]=c[0]*l+c[4]*e+c[8]*f+c[12];c[13]=c[1]*l+c[5]*e+c[9]*f+c[13];c[14]=c[2]*l+c[6]*e+c[10]*f+c[14];c[15]=c[3]*l+c[7]*e+c[11]*f+c[15]}};k.prototype.scale=function(a,b){if(1!==a||1!==b)this.Ne[0]=a,this.Ne[1]=b,this.Ne[2]=1,fc(this.Jc,this.Ne)};k.prototype.zm=
function(a){if(0!==a){var b=this.Jc,c,f=Math.sin(a);a=Math.cos(a);var l=b[0],e=b[1],n=b[2],m=b[3],g=b[4],r=b[5],v=b[6],h=b[7];c?b!==c&&(c[8]=b[8],c[9]=b[9],c[10]=b[10],c[11]=b[11],c[12]=b[12],c[13]=b[13],c[14]=b[14],c[15]=b[15]):c=b;c[0]=l*a+g*f;c[1]=e*a+r*f;c[2]=n*a+v*f;c[3]=m*a+h*f;c[4]=l*-f+g*a;c[5]=e*-f+r*a;c[6]=n*-f+v*a;c[7]=m*-f+h*a}};k.prototype.Bd=function(){for(var a=!1,b=0;16>b;b++)if(this.Lo[b]!==this.Jc[b]){a=!0;break}a&&(a=this.Nc(),a.type=5,a.na?ec(this.Jc,a.na):a.na=dc(this.Jc),ec(this.Jc,
this.Lo),this.Yb=this.Lb=!1)};m.prototype.Rs=function(){this.u.bindTexture(this.u.TEXTURE_2D,this.ed)};m.prototype.Ss=function(){var a=this.u;a.activeTexture(a.TEXTURE1);a.bindTexture(a.TEXTURE_2D,this.ed);a.activeTexture(a.TEXTURE0)};m.prototype.Os=function(){var a=this.up,b=this.C;b.ti=a;b=b.Pg;b.dg&&b.vj!==a&&(b.vj=a,this.u.uniform1f(b.dg,a))};m.prototype.Ls=function(){this.u.drawElements(this.u.TRIANGLES,this.Gc,this.u.UNSIGNED_SHORT,2*this.vc)};m.prototype.Ns=function(){this.u.blendFunc(this.vc,
this.Gc)};m.prototype.Ts=function(){var a,b,c,f=this.C.hb,l=this.C.Tn;a=0;for(b=f.length;a<b;a++)c=f[a],a===l&&c.tj?(c.bn(this.na),c.bf=!0):c.bf=!1;ec(this.na,this.C.Nk)};m.prototype.Ms=function(){var a=this.u,b=this.C;this.ed?(b.kf===this.ed&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,null),b.kf=null,a.activeTexture(a.TEXTURE0)),a.bindFramebuffer(a.FRAMEBUFFER,b.Gt),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,this.ed,0)):(a.framebufferTexture2D(a.FRAMEBUFFER,
a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.bindFramebuffer(a.FRAMEBUFFER,null))};m.prototype.Js=function(){var a=this.u;0===this.vc?(a.clearColor(this.na[0],this.na[1],this.na[2],this.na[3]),a.clear(a.COLOR_BUFFER_BIT)):(a.enable(a.SCISSOR_TEST),a.scissor(this.na[0],this.na[1],this.na[2],this.na[3]),a.clearColor(0,0,0,0),a.clear(this.u.COLOR_BUFFER_BIT),a.disable(a.SCISSOR_TEST))};m.prototype.Ks=function(){var a=this.u,b=this.C,c=b.hb[1];a.useProgram(c.Th);!c.bf&&c.tj&&(c.bn(b.Nk),c.bf=!0);a.enableVertexAttribArray(c.Ic);
a.bindBuffer(a.ARRAY_BUFFER,b.nm);a.vertexAttribPointer(c.Ic,4,a.FLOAT,!1,0,0);a.drawArrays(a.POINTS,this.vc/4,this.Gc);c=b.Pg;a.useProgram(c.Th);0<=c.Ic&&(a.enableVertexAttribArray(c.Ic),a.bindBuffer(a.ARRAY_BUFFER,b.bi[b.Hd]),a.vertexAttribPointer(c.Ic,2,a.FLOAT,!1,0,0));0<=c.Be&&(a.enableVertexAttribArray(c.Be),a.bindBuffer(a.ARRAY_BUFFER,b.Xh[b.Hd]),a.vertexAttribPointer(c.Be,2,a.FLOAT,!1,0,0))};m.prototype.Ps=function(){var a=this.u,b=this.C,c=b.hb[this.vc];b.Tn=this.vc;b.Pg=c;a.useProgram(c.Th);
!c.bf&&c.tj&&(c.bn(b.Nk),c.bf=!0);c.dg&&c.vj!==b.ti&&(c.vj=b.ti,a.uniform1f(c.dg,b.ti));0<=c.Ic&&(a.enableVertexAttribArray(c.Ic),a.bindBuffer(a.ARRAY_BUFFER,b.bi[b.Hd]),a.vertexAttribPointer(c.Ic,2,a.FLOAT,!1,0,0));0<=c.Be&&(a.enableVertexAttribArray(c.Be),a.bindBuffer(a.ARRAY_BUFFER,b.Xh[b.Hd]),a.vertexAttribPointer(c.Be,2,a.FLOAT,!1,0,0))};m.prototype.Qs=function(){var a,b,c=this.C.Pg,f=this.u;a=this.na;c.zh&&this.C.kf!==this.ed&&(f.activeTexture(f.TEXTURE1),f.bindTexture(f.TEXTURE_2D,this.ed),
this.C.kf=this.ed,f.activeTexture(f.TEXTURE0));var l=a[0];c.Sl&&l!==c.cp&&(c.cp=l,f.uniform1f(c.Sl,l));l=a[1];c.Rl&&l!==c.bp&&(c.bp=l,f.uniform1f(c.Rl,l));l=a[2];b=a[3];!c.of||l===c.Wo&&b===c.Xo||(c.Wo=l,c.Xo=b,f.uniform2f(c.of,l,b));l=a[4];b=a[5];!c.nf||l===c.Uo&&b===c.Vo||(c.Uo=l,c.Vo=l,f.uniform2f(c.nf,l,b));l=a[6];c.yh&&l!==c.Zo&&(c.Zo=l,f.uniform1f(c.yh,l));l=a[7];c.xh&&l!==c.Yo&&(c.Yo=l,f.uniform1f(c.xh,l));l=a[8];b=a[9];!c.Bh||l===c.fp&&b===c.gp||(c.fp=l,c.gp=b,f.uniform2f(c.Bh,l,b));l=a[10];
b=a[11];!c.Ah||l===c.dp&&b===c.ep||(c.dp=l,c.ep=b,f.uniform2f(c.Ah,l,b));c.Tl&&f.uniform1f(c.Tl,Xa()/1E3);if(c.U.length)for(a=0,b=c.U.length;a<b;a++)l=this.Yp[a],l!==c.Il[a]&&(c.Il[a]=l,f.uniform1f(c.U[a][1],l))};k.prototype.Nc=function(){this.ld===this.Fd.length&&this.Fd.push(new m(0,this));return this.Fd[this.ld++]};k.prototype.Jd=function(){if(0!==this.ld&&!this.u.isContextLost()){var a=this.u;0<this.lg&&(a.bindBuffer(a.ARRAY_BUFFER,this.nm),a.bufferData(a.ARRAY_BUFFER,this.Gp.subarray(0,this.lg),
a.STREAM_DRAW),b&&0<=b.Ic&&"<point>"===b.name&&a.vertexAttribPointer(b.Ic,4,a.FLOAT,!1,0,0));if(0<this.Cd){var b=this.Pg;a.bindBuffer(a.ARRAY_BUFFER,this.bi[this.Hd]);a.bufferData(a.ARRAY_BUFFER,this.hn.subarray(0,this.Cd),a.STREAM_DRAW);b&&0<=b.Ic&&"<point>"!==b.name&&a.vertexAttribPointer(b.Ic,2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.Xh[this.Hd]);a.bufferData(a.ARRAY_BUFFER,this.Rm.subarray(0,this.Cd),a.STREAM_DRAW);b&&0<=b.Be&&"<point>"!==b.name&&a.vertexAttribPointer(b.Be,2,a.FLOAT,
!1,0,0)}for(var c,a=0,b=this.ld;a<b;a++)switch(c=this.Fd[a],c.type){case 1:c.Ls();break;case 2:c.Rs();break;case 3:c.Os();break;case 4:c.Ns();break;case 5:c.Ts();break;case 6:c.Ms();break;case 7:c.Js();break;case 8:c.Ks();break;case 9:c.Ps();break;case 10:c.Qs();break;case 11:c.Ss()}this.lg=this.Cd=this.ld=0;this.Yb=this.Lb=!1;this.Hd++;4<=this.Hd&&(this.Hd=0)}};k.prototype.vf=function(a){if(a!==this.Mo){var b=this.Nc();b.type=3;this.Mo=b.up=a;this.Yb=this.Lb=!1}};k.prototype.jc=function(a){if(a!==
this.ze){var b=this.Nc();b.type=2;this.ze=b.ed=a;this.Yb=this.Lb=!1}};k.prototype.Ie=function(a,b){if(a!==this.No||b!==this.Ko){var c=this.Nc();c.type=4;c.vc=a;c.Gc=b;this.No=a;this.Ko=b;this.Yb=this.Lb=!1}};k.prototype.Tp=function(){this.Ie(this.u.ONE,this.u.ONE_MINUS_SRC_ALPHA)};k.prototype.Nh=function(a,b,c,f,l,e,n,m){15992<=this.Cd&&this.Jd();var g=this.Cd,r=this.hn,v=this.Rm;if(this.Lb)this.Fd[this.ld-1].Gc+=6;else{var h=this.Nc();h.type=1;h.vc=g/4*3;h.Gc=6;this.Lb=!0;this.Yb=!1}r[g]=a;v[g++]=
0;r[g]=b;v[g++]=0;r[g]=c;v[g++]=1;r[g]=f;v[g++]=0;r[g]=l;v[g++]=1;r[g]=e;v[g++]=1;r[g]=n;v[g++]=0;r[g]=m;v[g++]=1;this.Cd=g};k.prototype.Ge=function(a,b,c,f,l,e,n,m,g){15992<=this.Cd&&this.Jd();var r=this.Cd,v=this.hn,h=this.Rm;if(this.Lb)this.Fd[this.ld-1].Gc+=6;else{var p=this.Nc();p.type=1;p.vc=r/4*3;p.Gc=6;this.Lb=!0;this.Yb=!1}var p=g.left,u=g.top,d=g.right;g=g.bottom;v[r]=a;h[r++]=p;v[r]=b;h[r++]=u;v[r]=c;h[r++]=d;v[r]=f;h[r++]=u;v[r]=l;h[r++]=d;v[r]=e;h[r++]=g;v[r]=n;h[r++]=p;v[r]=m;h[r++]=
g;this.Cd=r};k.prototype.Yu=function(a,b,c,f){7996<=this.lg&&this.Jd();var l=this.lg,e=this.Gp;if(this.Yb)this.Fd[this.ld-1].Gc++;else{var n=this.Nc();n.type=8;n.vc=l;n.Gc=1;this.Yb=!0;this.Lb=!1}e[l++]=a;e[l++]=b;e[l++]=c;e[l++]=f;this.lg=l};k.prototype.zd=function(a){if(this.mh!==a){if(!this.hb[a]){if(0===this.mh)return;a=0}var b=this.Nc();b.type=9;this.mh=b.vc=a;this.Yb=this.Lb=!1}};k.prototype.Jh=function(a){a=this.hb[a];return!(!a.of&&!a.nf)};k.prototype.qm=function(a){a=this.hb[a];return!!(a.of||
a.nf||a.Mk)};k.prototype.gv=function(a){a=this.hb[a];return 0!==a.Di||0!==a.Ei};k.prototype.Wt=function(a){return this.hb[a].Di};k.prototype.Xt=function(a){return this.hb[a].Ei};k.prototype.Yt=function(a,b){return this.hb[a].U[b][2]};k.prototype.Mj=function(a){return this.hb[a].Ak};k.prototype.qg=function(a,b,c,f,l,e,n,m,g,r,v,h,p,u){var d=this.hb[this.mh],s,w;if(d.pu||u.length){s=this.Nc();s.type=10;s.na?ec(this.Jc,s.na):s.na=dc();w=s.na;w[0]=b;w[1]=c;w[2]=f;w[3]=l;w[4]=e;w[5]=n;w[6]=m;w[7]=g;w[8]=
r;w[9]=v;w[10]=h;w[11]=p;s.ed=d.zh?a:null;if(u.length)for(c=s.Yp,c.length=u.length,a=0,b=u.length;a<b;a++)c[a]=u[a];this.Yb=this.Lb=!1}};k.prototype.clear=function(a,b,c,f){var l=this.Nc();l.type=7;l.vc=0;l.na||(l.na=dc());l.na[0]=a;l.na[1]=b;l.na[2]=c;l.na[3]=f;this.Yb=this.Lb=!1};k.prototype.clearRect=function(a,b,c,f){if(!(0>c||0>f)){var l=this.Nc();l.type=7;l.vc=1;l.na||(l.na=dc());l.na[0]=a;l.na[1]=b;l.na[2]=c;l.na[3]=f;this.Yb=this.Lb=!1}};k.prototype.dv=function(){this.Jd();this.u.flush()};
var t=[],h={};k.prototype.Bs=function(){t.length=0;h={}};k.prototype.qj=function(a,b,c,f){b=!!b;c=!!c;var l=a.src+","+b+","+c+(b?",undefined":""),e=null;if("undefined"!==typeof a.src&&h.hasOwnProperty(l))return e=h[l],e.li++,e;this.Jd();var n=this.u,m=la(a.width)&&la(a.height),e=n.createTexture();n.bindTexture(n.TEXTURE_2D,e);n.pixelStorei(n.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var g=n.RGBA,r=n.RGBA,v=n.UNSIGNED_BYTE;if(f&&!this.we)switch(f){case 1:r=g=n.RGB;break;case 2:v=n.UNSIGNED_SHORT_4_4_4_4;
break;case 3:v=n.UNSIGNED_SHORT_5_5_5_1;break;case 4:r=g=n.RGB,v=n.UNSIGNED_SHORT_5_6_5}if(!m&&b){f=document.createElement("canvas");f.width=ma(a.width);f.height=ma(a.height);var k=f.getContext("2d");k.webkitImageSmoothingEnabled=c;k.mozImageSmoothingEnabled=c;k.msImageSmoothingEnabled=c;k.imageSmoothingEnabled=c;k.drawImage(a,0,0,a.width,a.height,0,0,f.width,f.height);n.texImage2D(n.TEXTURE_2D,0,g,r,v,f)}else n.texImage2D(n.TEXTURE_2D,0,g,r,v,a);b?(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,n.REPEAT),
n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,n.REPEAT)):(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE));c?(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,n.LINEAR),m&&this.Xn?(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.LINEAR_MIPMAP_LINEAR),n.generateMipmap(n.TEXTURE_2D)):n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.LINEAR)):(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,n.NEAREST),n.texParameteri(n.TEXTURE_2D,
n.TEXTURE_MIN_FILTER,n.NEAREST));n.bindTexture(n.TEXTURE_2D,null);this.ze=null;e.Hg=a.width;e.Gg=a.height;e.li=1;e.Ln=l;t.push(e);return h[l]=e};k.prototype.Gd=function(a,b,c,f){this.Jd();var l=this.u;this.we&&(f=!1);var e=l.createTexture();l.bindTexture(l.TEXTURE_2D,e);l.texImage2D(l.TEXTURE_2D,0,l.RGBA,a,b,0,l.RGBA,f?l.UNSIGNED_SHORT_4_4_4_4:l.UNSIGNED_BYTE,null);l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_S,l.CLAMP_TO_EDGE);l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_T,l.CLAMP_TO_EDGE);l.texParameteri(l.TEXTURE_2D,
l.TEXTURE_MAG_FILTER,c?l.LINEAR:l.NEAREST);l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MIN_FILTER,c?l.LINEAR:l.NEAREST);l.bindTexture(l.TEXTURE_2D,null);this.ze=null;e.Hg=a;e.Gg=b;t.push(e);return e};k.prototype.Pv=function(a,b,c){this.Jd();var f=this.u;this.we&&(c=!1);f.bindTexture(f.TEXTURE_2D,b);f.pixelStorei(f.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);try{f.texImage2D(f.TEXTURE_2D,0,f.RGBA,f.RGBA,c?f.UNSIGNED_SHORT_4_4_4_4:f.UNSIGNED_BYTE,a)}catch(l){console&&console.error&&console.error("Error updating WebGL texture: ",
l)}f.bindTexture(f.TEXTURE_2D,null);this.ze=null};k.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.li&&1<a.li?a.li--:(this.Jd(),a===this.ze&&(this.u.bindTexture(this.u.TEXTURE_2D,null),this.ze=null),a===this.kf&&(this.u.activeTexture(this.u.TEXTURE1),this.u.bindTexture(this.u.TEXTURE_2D,null),this.u.activeTexture(this.u.TEXTURE0),this.kf=null),Da(t,a),"undefined"!==typeof a.Ln&&delete h[a.Ln],this.u.deleteTexture(a)))};k.prototype.xd=function(a){if(a!==this.Qp){var b=this.Nc();b.type=
6;this.Qp=b.ed=a;this.Yb=this.Lb=!1}};kb=k})();
(function(){function k(){return"undefined"!==typeof jQuery?jQuery(window).width():window.innerWidth}function q(){return"undefined"!==typeof jQuery?jQuery(window).height():window.innerHeight}function m(d){if(d&&(d.getContext||d.dc)&&!d.c2runtime){d.c2runtime=this;var a=this;this.ve=(this.gh=/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.Mb=!!d.dc;this.Bo="undefined"!==typeof window.AppMobi||this.Mb;this.Vc=!!window.c2cocoonjs;this.Wc=!!window.c2ejecta;this.Vc&&(CocoonJS.App.onSuspended.addEventListener(function(){a.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){a.setSuspended(!1)}));this.Wc&&(document.addEventListener("pagehide",function(){a.setSuspended(!0)}),document.addEventListener("pageshow",
function(){a.setSuspended(!1)}),document.addEventListener("resize",function(){a.setSize(window.innerWidth,window.innerHeight)}));this.Ta=this.Mb||this.Vc||this.Wc;this.we=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent)||/edge\//i.test(navigator.userAgent);this.Fo=/tizen/i.test(navigator.userAgent);this.Xi=/android/i.test(navigator.userAgent)&&!this.Fo&&!this.we;this.Hl=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&
!this.we;this.Jo=/ipad/i.test(navigator.userAgent);this.bj=this.Hl||this.Jo||this.Wc;this.Cu=this.Hl&&/os\s6/i.test(navigator.userAgent);this.fh=(/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent))&&!this.we;this.Bl=/amazonwebappplatform/i.test(navigator.userAgent);this.xu=/firefox/i.test(navigator.userAgent);this.Eo=/safari/i.test(navigator.userAgent)&&!this.fh&&!this.we;this.Au=/windows/i.test(navigator.userAgent);this.xe="undefined"!==typeof window.c2nodewebkit||"undefined"!==
typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.Ho=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.Bu=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.Uf=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.Fl=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.Go=this.Ho||this.Bu||this.Fl;this.wu=!("undefined"===typeof window.c2isBlackberry10||
!window.c2isBlackberry10);this.Yi=this.Xi&&!this.fh&&!this.gh&&!this.xu&&!this.Bl&&!this.Ta;this.devicePixelRatio=1;this.Nd=this.ve||this.gh||this.Bo||this.Vc||this.Xi||this.bj||this.Uf||this.Fl||this.wu||this.Fo||this.Wc;this.Nd||(this.Nd=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));"undefined"===typeof cr_is_preview||this.xe||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||
(this.xe=!0);this.canvas=d;this.On=document.getElementById("c2canvasdiv");this.ta=this.C=this.u=null;this.al="";this.Ii=!1;this.sp=this.tp=0;this.canvas.oncontextmenu=function(d){d.preventDefault&&d.preventDefault();return!1};this.canvas.onselectstart=function(d){d.preventDefault&&d.preventDefault();return!1};this.Mb&&(window.c2runtime=this);this.xe&&(window.ondragover=function(d){d.preventDefault();return!1},window.ondrop=function(d){d.preventDefault();return!1},require("nw.gui").App.clearCache());
this.Yi&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=d.width;this.height=d.height;this.W=this.width;this.V=this.height;this.ri=this.width;this.qi=this.height;this.oh=window.innerWidth;this.nh=window.innerHeight;this.It=!1;this.Z=!0;this.ih=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.B=[];this.Pa=[];this.Ol={};this.Zc=[];this.Vk={};this.Kd=[];this.Bg=[];this.kk=[];this.os=[];this.qs=[];this.cq=null;this.Te=
{};this.Cl=this.te=!1;this.Xc=0;this.El=!1;this.Uc=[];this.Od=this.Eb=this.vh=this.Uj="";this.Vh=this.bq=!1;this.Kk=this.Ch=this.ne=this.me=0;this.Bf=1;this.Nb=new ab;this.Dd=new ab;this.yj=this.Li=this.Xe=this.fd=this.mf=this.$k=this.gj=0;this.Jg=null;this.Qk=[];this.Uk=[];this.Ci=-1;this.Ul=[[]];this.Ym=this.uj=0;this.Nj(null);this.Wl=[];this.Dh=-1;this.Tg=this.mp=this.Gh=0;this.Wh=[];this.Vm=this.tm=-1;this.lh=!0;this.sj=0;this.hh=!1;this.Cv=0;this.Jf=null;this.ac=this.nl=!1;this.qp=new da;this.em=
new da;this.rp=new da;this.Pp=[];this.cd=new cb([]);this.Qm=new cb([]);this.If=[];this.Zg={};this.Mf={};this.Hf={};this.Ag={};this.In={};this.Qo=this.mj=this.ec=this.uc=this.Po=this.lj=this.ua=null;this.yg=this.Gl=!1;this.bl=[null,null];this.Ye=0;this.Xk="";this.Rd={};this.ak=this.bg=null;this.xj=[];this.lv()}}function t(d){d.target.result.createObjectStore("saves",{keyPath:"slot"})}function h(d,a,e,g){var b=indexedDB.open("_C2SaveStates");b.onupgradeneeded=t;b.onerror=g;b.onsuccess=function(b){b=
b.target.result;b.onerror=g;b.transaction(["saves"],"readwrite").objectStore("saves").put({slot:d,data:a}).onsuccess=e}}function a(d,a,e){var g=indexedDB.open("_C2SaveStates");g.onupgradeneeded=t;g.onerror=e;g.onsuccess=function(g){g=g.target.result;g.onerror=e;var b=g.transaction(["saves"]).objectStore("saves").get(d);b.onsuccess=function(){b.result?a(b.result.data):a(null)}}}function b(){C("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?
window.location.reload(!0):window.location+="?continuous"}function c(d){var a,e={};for(a in d)!d.hasOwnProperty(a)||d[a]instanceof da||d[a]&&"undefined"!==typeof d[a].Gw||(e[a]=d[a]);return e}m.prototype.lv=function(){var d=this,a;a=this.Uf?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest;var e="data.js";if(this.Ho||this.Uf||this.Fl)e="data.json";a.open("GET",e,!0);var g=!1;if(!this.Ta&&"response"in a&&"responseType"in a)try{a.responseType="json",g="json"===a.responseType}catch(b){g=!1}if(!g&&
"responseType"in a)try{a.responseType="text"}catch(c){}if("overrideMimeType"in a)try{a.overrideMimeType("application/json; charset=utf-8")}catch(f){}this.Uf?a.onreadystatechange=function(){4===a.readyState&&d.pj(JSON.parse(a.responseText))}:(a.onload=function(){if(g)d.pj(a.response);else if(d.Wc){var e=a.responseText,e=e.substr(e.indexOf("{"));d.pj(JSON.parse(e))}else d.pj(JSON.parse(a.responseText))},a.onerror=function(d){ga("Error requesting "+e+":");ga(d)});a.send()};m.prototype.tu=function(){var d=
this,a,e,g,b,c,f,n,p,l;this.devicePixelRatio=(this.gf=(!this.Ta||this.Wc)&&this.Nv&&!this.Yi)?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.wb();e=!(!this.It&&(!this.xk||this.xe||this.Go||this.Uf||this.gh||this.ve||this.Bl));0<this.Wb&&this.setSize(k(),q(),!0);try{this.Zs&&(this.Vc||this.Wc||!this.Ta)&&(a={alpha:e,depth:!1,antialias:!1,failIfMajorPerformanceCaveat:!0},this.u=this.canvas.getContext("webgl",a)||this.canvas.getContext("experimental-webgl",
a))}catch(r){}if(this.u){this.Ta||(this.tb=document.createElement("canvas"),jQuery(this.tb).appendTo(this.canvas.parentNode),this.tb.oncontextmenu=function(){return!1},this.tb.onselectstart=function(){return!1},this.tb.width=this.ri,this.tb.height=this.qi,jQuery(this.tb).css({width:this.ri+"px",height:this.qi+"px"}),this.Ip(),this.mm=this.tb.getContext("2d"));this.C=new kb(this.u,this.Nd);this.C.rg(this.canvas.width,this.canvas.height);this.C.Xn=0!==this.Us;this.ta=null;this.canvas.addEventListener("webglcontextlost",
function(a){a.preventDefault();d.Lu();C("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){d.C.wo();d.C.rg(d.C.width,d.C.height,!0);d.uc=null;d.ec=null;d.bl[0]=null;d.bl[1]=null;d.Mu();d.Z=!0;C("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);a=0;for(e=this.B.length;a<e;a++)for(c=this.B[a],g=0,b=c.P.length;g<b;g++)n=c.P[g],n.ub=this.C.il(n.id),this.yg=this.yg||this.C.Jh(n.ub);a=0;for(e=this.Zc.length;a<
e;a++){p=this.Zc[a];g=0;for(b=p.P.length;g<b;g++)n=p.P[g],n.ub=this.C.il(n.id);g=0;for(b=p.Y.length;g<b;g++)for(l=p.Y[g],c=0,f=l.P.length;c<f;c++)n=l.P[c],n.ub=this.C.il(n.id),this.yg=this.yg||this.C.Jh(n.ub)}}else{if(0<this.Wb&&this.Mb){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.ta=AppMobi.canvas.getContext("2d");try{this.ta.samplingMode=this.ja?"smooth":"sharp",this.ta.globalScale=1,this.ta.HTML5CompatibilityMode=!0,this.ta.imageSmoothingEnabled=
this.ja}catch(v){}0!==this.width&&0!==this.height&&(this.ta.width=this.width,this.ta.height=this.height)}this.ta||(a=this.Vc?{antialias:!!this.ja,alpha:e}:{alpha:e},this.ta=this.canvas.getContext("2d",a),this.ta.webkitImageSmoothingEnabled=this.ja,this.ta.mozImageSmoothingEnabled=this.ja,this.ta.msImageSmoothingEnabled=this.ja,this.ta.imageSmoothingEnabled=this.ja);this.mm=this.tb=null}this.lq=function(a){d.xa(!1,a)};window==window.top||this.Ta||this.Go||this.Uf||(document.addEventListener("mousedown",
function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.Vc&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(C("Reloading for continuous preview"),this.vh="__c2_continuouspreview",this.Vh=!0),this.Wu&&!this.Nd&&(jQuery(window).focus(function(){d.setSuspended(!1)}),jQuery(window).blur(function(){d.setSuspended(!0)})));this.Ta||(a=function(d){if(jb(d)&&
document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(a){}},window.navigator.pointerEnabled?document.addEventListener("pointerdown",a):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",a):document.addEventListener("touchstart",a),document.addEventListener("mousedown",a));0===this.Wb&&this.gf&&1<this.devicePixelRatio&&this.setSize(this.eb,this.cb,!0);this.qq();this.mu();
this.go();this.X={}};m.prototype.setSize=function(d,a,e){var g=0,b=0,c=0,n=0,n=0,f=this.Cu&&this.Eo&&!navigator.standalone&&!this.Ta&&!this.ve;f&&(a+=60);if(this.oh!==d||this.nh!==a||e){this.oh=d;this.nh=a;var p=this.Wb,l=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.hh)&&!this.ve;if(l||0!==this.Wb||e)l&&0<this.Ye&&(p=this.Ye),e=this.devicePixelRatio,4<=p?(c=this.eb/this.cb,d/a>c?(c*=a,5===p?(n=c*e/this.eb,1<n?n=Math.floor(n):1>n&&
(n=1/Math.ceil(1/n)),c=this.eb*n/e,n=this.cb*n/e,g=(d-c)/2,b=(a-n)/2,d=c,a=n):(g=(d-c)/2,d=c)):(n=d/c,5===p?(n=n*e/this.cb,1<n?n=Math.floor(n):1>n&&(n=1/Math.ceil(1/n)),c=this.eb*n/e,n=this.cb*n/e,g=(d-c)/2,b=(a-n)/2,d=c):b=(a-n)/2,a=n),l&&!this.xe&&(b=g=0)):this.xe&&this.hh&&0===this.co&&(g=Math.floor((d-this.eb)/2),b=Math.floor((a-this.cb)/2),d=this.eb,a=this.cb),2>p&&(this.Fg=e),this.gf&&this.Jo&&1<e&&(1024<=d&&(d=1023),1024<=a&&(a=1023)),this.ri=Math.round(d),this.qi=Math.round(a),this.width=
Math.round(d*e),this.height=Math.round(a*e),this.Z=!0,this.Cq?(this.W=this.width,this.V=this.height,this.Ec=!0):this.width<this.eb&&this.height<this.cb||1===p?(this.W=this.width,this.V=this.height,this.Ec=!0):(this.W=this.eb,this.V=this.cb,this.Ec=!1,2===p?(c=this.eb/this.cb,p=this.oh/this.nh,p<c?this.W=this.V*p:p>c&&(this.V=this.W/p)):3===p&&(c=this.eb/this.cb,p=this.oh/this.nh,p>c?this.W=this.V*p:p<c&&(this.V=this.W/p))),this.On&&!this.Ta&&(jQuery(this.On).css({width:Math.round(d)+"px",height:Math.round(a)+
"px","margin-left":Math.floor(g)+"px","margin-top":Math.floor(b)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(d)+"px",height:Math.round(a)+"px"})),this.canvas&&(this.canvas.width=Math.round(d*e),this.canvas.height=Math.round(a*e),this.Wc?(this.canvas.style.left=Math.floor(g)+"px",this.canvas.style.top=Math.floor(b)+"px",this.canvas.style.width=Math.round(d)+"px",this.canvas.style.height=Math.round(a)+"px"):this.gf&&!this.Ta&&jQuery(this.canvas).css({width:Math.round(d)+
"px",height:Math.round(a)+"px"})),this.tb&&(this.tb.width=Math.round(d),this.tb.height=Math.round(a),jQuery(this.tb).css({width:Math.round(d)+"px",height:Math.round(a)+"px"})),this.C&&this.C.rg(Math.round(d*e),Math.round(a*e)),this.Mb&&this.ta&&(this.ta.width=Math.round(d),this.ta.height=Math.round(a)),this.ta&&(this.ta.webkitImageSmoothingEnabled=this.ja,this.ta.mozImageSmoothingEnabled=this.ja,this.ta.msImageSmoothingEnabled=this.ja,this.ta.imageSmoothingEnabled=this.ja),this.qq(),this.Ta||!f&&
!this.Hl||window.setTimeout(function(){window.scrollTo(0,1)},100)}};m.prototype.qq=function(){if(this.ts&&0!==this.km){var d="portrait";2===this.km&&(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)}};m.prototype.Lu=function(){this.C.Bs();this.Gl=
!0;var d,a,e;d=0;for(a=this.B.length;d<a;d++)e=this.B[d],e.Aj&&e.Aj()};m.prototype.Mu=function(){this.Gl=!1;var d,a,e;d=0;for(a=this.B.length;d<a;d++)e=this.B[d],e.jm&&e.jm()};m.prototype.Ip=function(){if(!this.Ta){var d=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.hh)&&!this.ve?jQuery(this.canvas).offset():jQuery(this.canvas).position();d.position="absolute";jQuery(this.tb).css(d)}};var f=window.cancelAnimationFrame||window.mozCancelAnimationFrame||
window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;m.prototype.setSuspended=function(d){var a;if(d&&!this.ih)for(C("[Construct 2] Suspending"),this.ih=!0,-1!==this.tm&&f&&f(this.tm),-1!==this.Vm&&clearTimeout(this.Vm),d=0,a=this.Wh.length;d<a;d++)this.Wh[d](!0);else if(!d&&this.ih){C("[Construct 2] Resuming");this.ih=!1;this.gj=Xa();this.mf=Xa();d=this.Ch=this.Li=0;for(a=this.Wh.length;d<a;d++)this.Wh[d](!1);this.xa(!1)}};m.prototype.ms=function(d){this.Wh.push(d)};
m.prototype.be=function(d){return this.xj[d]};m.prototype.pj=function(d){d&&d.project||ga("Project model unavailable");d=d.project;this.name=d[0];this.bo=d[1];this.Wb=d[12];this.co=d[12];this.eb=d[10];this.cb=d[11];this.Bp=this.eb/2;this.Cp=this.cb/2;this.Ta&&!this.Wc&&(4<=d[12]||0===d[12])&&(C("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.co=this.Wb=3);this.gn=d[18];this.wh=d[19];0===this.wh&&(this.bg=new Image,this.bg.src=
"loading-logo.png");this.Gh=d[21];this.xj=ic();this.Ad=new X(this);var a,e,g,b,c,n,f,p,l;a=0;for(e=d[2].length;a<e;a++)f=d[2][a],g=this.be(f[0]),lb(f,g.prototype),l=new g(this),l.Zj=f[1],l.ye=f[2],l.kp=f[9],l.S&&l.S(),this.plugins.push(l);this.xj=ic();a=0;for(e=d[3].length;a<e;a++){f=d[3][a];c=this.be(f[1]);l=null;g=0;for(b=this.plugins.length;g<b;g++)if(this.plugins[g]instanceof c){l=this.plugins[g];break}var r=new l.qa(l);r.name=f[0];r.M=f[2];r.Al=f[3].slice(0);r.Ov=f[3].length;r.us=f[4];r.Kt=f[5];
r.aa=f[11];r.M?(r.fg=[],r.Ld=this.Tg++,r.Ea=null):(r.fg=null,r.Ld=-1,r.Ea=[]);r.Gi=null;r.Pf=null;r.Yn=null;r.cc=!1;r.Ub=null;f[6]?(r.Sm=f[6][0],r.Tm=f[6][1],r.Um=f[6][2]):(r.Sm=null,r.Tm=0,r.Um=0);r.Sb=f[7]?f[7]:null;r.index=a;r.i=[];r.wi=[];r.Ke=[new mb(r)];r.Id=0;r.Bc=null;r.Hs=0;r.wg=!0;r.lk=nb;r.Pt=ob;r.Ut=pb;r.da=qb;r.Lh=rb;r.Mh=sb;r.Fe=tb;r.Ni=ub;r.cl=vb;r.fl=xb;r.he=yb;r.no=zb;r.Kg=new db(this.eb,this.cb);r.ei=!0;r.fi=!1;r.X={};r.toString=Ab;r.Pa=[];g=0;for(b=f[8].length;g<b;g++){p=f[8][g];
var v=this.be(p[1]),u=null;c=0;for(n=this.Pa.length;c<n;c++)if(this.Pa[c]instanceof v){u=this.Pa[c];break}u||(u=new v(this),u.am=[],u.wj=new da,u.S&&u.S(),this.Pa.push(u),jc&&u instanceof jc&&(this.cq=u));-1===u.am.indexOf(r)&&u.am.push(r);c=new u.qa(u,r);c.name=p[0];c.aa=p[2];c.S();r.Pa.push(c)}r.global=f[9];r.Dl=f[10];r.P=[];g=0;for(b=f[12].length;g<b;g++)r.P.push({id:f[12][g][0],name:f[12][g][1],ub:-1,kb:!0,index:g});r.Sw=f[13];this.gn&&!r.M&&!r.Dl&&l.ye||r.S();r.name&&(this.types[r.name]=r);this.B.push(r);
l.Zj&&(g=new l.fa(r),g.uid=this.Gh++,g.Lp=this.mp++,g.df=0,g.Xg=Bb,g.toString=Cb,g.H=f[14],g.S(),r.i.push(g),this.Rd[g.uid.toString()]=g)}a=0;for(e=d[4].length;a<e;a++)for(c=d[4][a],n=this.B[c[0]],g=1,b=c.length;g<b;g++)f=this.B[c[g]],f.Ea.push(n),n.fg.push(f);a=0;for(e=d[27].length;a<e;a++){c=d[27][a];n=[];g=0;for(b=c.length;g<b;g++)n.push(this.B[c[g]]);g=0;for(b=n.length;g<b;g++)n[g].cc=!0,n[g].Ub=n}if(0<this.Tg)for(a=0,e=this.B.length;a<e;a++)if(f=this.B[a],!f.M&&f.Ea.length){f.Gi=Array(this.Tg);
f.Pf=Array(this.Tg);f.Yn=Array(this.Tg);r=[];g=u=v=p=0;for(b=f.Ea.length;g<b;g++)for(l=f.Ea[g],f.Gi[l.Ld]=p,p+=l.Ov,f.Pf[l.Ld]=v,v+=l.us,f.Yn[l.Ld]=u,u+=l.Kt,c=0,n=l.P.length;c<n;c++)r.push(wa({},l.P[c]));f.P=r.concat(f.P);g=0;for(b=f.P.length;g<b;g++)f.P[g].index=g}a=0;for(e=d[5].length;a<e;a++)f=d[5][a],g=new Db(this,f),this.Ol[g.name]=g,this.Zc.push(g);a=0;for(e=d[6].length;a<e;a++)f=d[6][a],g=new Eb(this,f),this.Vk[g.name]=g,this.Kd.push(g);a=0;for(e=this.Kd.length;a<e;a++)this.Kd[a].Na();a=0;
for(e=this.Kd.length;a<e;a++)this.Kd[a].an();a=0;for(e=this.kk.length;a<e;a++)this.kk[a].Na();this.kk.length=0;this.rs=d[7];this.Xk=d[8];this.vd=d[9];this.Fg=1;this.Zs=d[13];this.ja=d[14];this.xk=d[15];this.Nv=d[17];this.km=d[20];this.ts=0<this.km;this.Wu=d[22];this.Ec=this.Cq=d[23];this.Us=d[24];this.bv=d[25];this.dk=Date.now();this.xj.length=0;this.tu()};var l=!1;m.prototype.Bq=function(d,a){d.cocoonLazyLoad=!0;d.onerror=function(a){l=d.Kn=!0;console&&console.error&&console.error("Error loading image '"+
d.src+"': ",a)};this.Wc?d.src=a:d.src||("undefined"!==typeof XAPKReader?XAPKReader.get(a,function(a){d.src=a},function(e){l=d.Kn=!0;console&&console.error&&console.error("Error extracting image '"+a+"' from expansion file: ",e)}):d.src=a);this.Bg.push(d)};m.prototype.Ht=function(d){var a,e;a=0;for(e=this.Bg.length;a<e;a++)if(this.Bg[a].Cs===d)return this.Bg[a];return null};var e=0,n=!1;m.prototype.mu=function(){this.Jf&&(e=this.Jf.yv(this.rs))};m.prototype.Hn=function(){var d=e,a=0,g=0,b=!0,c,f,g=
0;for(c=this.Bg.length;g<c;g++){f=this.Bg[g];var p=f.Rn;if(!p||0>=p)p=5E4;d+=p;f.src&&(f.complete||f.loaded)&&!f.Kn?a+=p:b=!1}b&&this.bv&&this.Jf&&(n||(this.Jf.Dv(),n=!0),g=this.Jf.Vt(),a+=g,g<e&&(b=!1));this.uf=0==d?0:a/d;return b};m.prototype.go=function(){if(this.ta||this.C){var d=this.ta||this.mm;this.tb&&this.Ip();this.uf=0;this.Oo=-1;if(this.Hn())this.nu();else{var a=Date.now()-this.dk;if(d){var e=this.width,g=this.height,b=this.devicePixelRatio;this.tb&&(e=this.ri,g=this.qi,b=1);if(3!==this.wh&&
(this.Vc||500<=a&&this.Oo!=this.uf)){d.clearRect(0,0,e,g);var a=e/2,g=g/2,e=0===this.wh&&this.bg.complete,c=40*b,f=0,n=80*b,p;e&&(n=this.bg.width*b,p=this.bg.height*b,c=n/2,f=p/2,d.drawImage(this.bg,Q(a-c),Q(g-f),n,p));1>=this.wh?(a=Q(a-c)+.5,g=Q(g+(f+(e?12*b:0)))+.5,d.fillStyle=l?"red":"DodgerBlue",d.fillRect(a,g,Math.floor(n*this.uf),6*b),d.strokeStyle="black",d.strokeRect(a,g,n,6*b),d.strokeStyle="white",d.strokeRect(a-1*b,g-1*b,n+2*b,8*b)):2===this.wh&&(d.font=this.Wc?"12pt ArialMT":"12pt Arial",
d.fillStyle=l?"#f00":"#999",d.Rw="middle",b=Math.round(100*this.uf)+"%",e=d.measureText?d.measureText(b):null,d.fillText(b,a-(e?e.width:0)/2,g))}this.Oo=this.uf}setTimeout(function(d){return function(){d.go()}}(this),this.Vc?10:100)}}};m.prototype.nu=function(){this.tb&&(this.canvas.parentNode.removeChild(this.tb),this.tb=this.mm=null);this.dk=Date.now();this.mf=Xa();var d,a,e;if(this.gn)for(d=0,a=this.B.length;d<a;d++)e=this.B[d],e.M||e.Dl||!e.Ga.ye||e.S();else this.lh=!1;d=0;for(a=this.Zc.length;d<
a;d++)this.Zc[d].Ds();2<=this.Wb&&(d=this.eb/this.cb,a=this.width/this.height,this.Fg=2!==this.Wb&&a>d||2===this.Wb&&a<d?this.height/this.cb:this.width/this.eb);this.bo?this.Ol[this.bo].Pm():this.Zc[0].Pm();this.gn||(this.sj=1,this.trigger(X.prototype.n.zn,null));navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();d=0;for(a=this.B.length;d<a;d++)e=this.B[d],e.Ku&&e.Ku();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):
this.xa(!1);this.Mb&&AppMobi.webview.execute("onGameReady();")};var y=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;m.prototype.xa=function(d,a,e){if(this.ua){var g=Xa();if(e||!this.ih||d){d||(y?this.tm=y(this.lq):this.Vm=setTimeout(this.lq,this.Nd?1:16));a=a||g;var b=this.Wb;((e=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&
!this.ve)||this.hh)&&0<this.Ye&&(b=this.Ye);0<b&&(!this.bj||window.self!==window.top)&&(b=window.innerHeight,this.oh===window.innerWidth&&this.nh===b||this.setSize(k(),q()));this.Ta||(e?(this.Ii||(this.al=jQuery(this.canvas).css("margin")||"0",this.Ii=!0),this.fh||this.xe||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.Ii?(this.fh||this.xe||jQuery(this.canvas).css("margin",
this.al),this.al="",this.Ii=!1,0===this.Wb&&this.setSize(Math.round(this.tp/this.devicePixelRatio),Math.round(this.sp/this.devicePixelRatio),!0)):(this.tp=this.width,this.sp=this.height));this.lh&&(e=this.Hn(),this.sj=this.uf,e&&(this.lh=!1,this.uf=1,this.trigger(X.prototype.n.zn,null)));this.Fu(a);!this.Z&&!this.Vc||this.Gl||this.Vh||d||(this.Z=!1,this.C?this.Vb():this.Dc(),this.ak&&(this.canvas&&this.canvas.toDataURL&&(this.canvas.toDataURL(this.ak[0],this.ak[1]),this.trigger(X.prototype.n.nr,null)),
this.ak=null));this.Lw||(this.fd++,this.Xe++,this.Li++);this.Ch+=Xa()-g}}};m.prototype.Fu=function(d){var a,e,g,b,c,f,n,p;1E3<=d-this.mf&&(this.mf+=1E3,1E3<=d-this.mf&&(this.mf=d),this.$k=this.Li,this.Li=0,this.Kk=this.Ch,this.Ch=0);0!==this.gj&&(a=d-this.gj,0>a&&(a=0),this.ne=a/1E3,.5<this.ne?this.ne=0:.1<this.ne&&(this.ne=.1));this.gj=d;this.me=this.ne*this.Bf;this.Nb.add(this.me);this.Dd.add(this.ne);d=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||
this.hh)&&!this.ve;2<=this.Wb||d&&0<this.Ye?(a=this.eb/this.cb,e=this.width/this.height,g=this.Wb,d&&0<this.Ye&&(g=this.Ye),this.Fg=2!==g&&e>a||2===g&&e<a?this.height/this.cb:this.width/this.eb,this.ua&&(this.ua.Dm(this.ua.scrollX),this.ua.Em(this.ua.scrollY))):this.Fg=this.gf?this.devicePixelRatio:1;this.wb();this.Xc++;this.Ad.ov();this.Xc--;this.wb();this.Xc++;e=this.qp.$d();d=0;for(a=e.length;d<a;d++)e[d].Nw();d=0;for(a=this.B.length;d<a;d++)if(f=this.B[d],!f.M&&(f.Pa.length||f.Ea.length))for(e=
0,g=f.i.length;e<g;e++)for(n=f.i[e],b=0,c=n.R.length;b<c;b++)n.R[b].xa();d=0;for(a=this.B.length;d<a;d++)if(f=this.B[d],!f.M&&(f.Pa.length||f.Ea.length))for(e=0,g=f.i.length;e<g;e++)for(n=f.i[e],b=0,c=n.R.length;b<c;b++)p=n.R[b],p.av&&p.av();e=this.em.$d();d=0;for(a=e.length;d<a;d++)e[d].xa();this.Xc--;this.ou();for(d=0;this.Jg&&10>d++;)this.Wn(this.Jg);d=0;for(a=this.Kd.length;d<a;d++)this.Kd[d].ql=!1;this.ua.Ve&&this.ua.Ve.Va();this.Pp.length=0;this.Xc++;d=0;for(a=this.B.length;d<a;d++)if(f=this.B[d],
!f.M&&(f.Pa.length||f.Ea.length))for(e=0,g=f.i.length;e<g;e++)for(n=f.i[e],b=0,c=n.R.length;b<c;b++)p=n.R[b],p.gk&&p.gk();e=this.rp.$d();d=0;for(a=e.length;d<a;d++)e[d].gk();this.Xc--};m.prototype.Wn=function(d){var a=this.ua;this.ua.Ev();var e,g,b,c,f,n,p;if(this.C)for(e=0,g=this.B.length;e<g;e++)f=this.B[e],f.M||!f.$m||f.global&&0!==f.i.length||-1!==d.dh.indexOf(f)||f.$m();a==d&&(this.Ad.lc.length=0);d.Pm();e=0;for(g=this.B.length;e<g;e++)if(f=this.B[e],f.global||f.Ga.Zj)for(d=0,a=f.i.length;d<
a;d++)if(n=f.i[d],n.im&&n.im(),n.R)for(b=0,c=n.R.length;b<c;b++)p=n.R[b],p.im&&p.im();this.Z=!0;this.wb()};m.prototype.Af=function(d){this.em.add(d)};m.prototype.re=function(d){return d&&-1!==d.Fh?this.ne*d.Fh:this.me};m.prototype.Dc=function(){this.ua.Dc(this.ta);this.Mb&&this.ta.present()};m.prototype.Vb=function(){this.ua.Vb(this.C);this.C.dv()};m.prototype.ks=function(d){d&&this.Qk.push(d)};m.prototype.Pi=function(d){d=d.toString();return this.Rd.hasOwnProperty(d)?this.Rd[d]:null};var g=[];m.prototype.kd=
function(d){var a,e;a=d.type.name;var b=null;if(this.Te.hasOwnProperty(a)){if(b=this.Te[a],b.contains(d))return}else b=g.length?g.pop():new da,this.Te[a]=b;b.add(d);this.te=!0;if(d.cc)for(a=0,e=d.siblings.length;a<e;a++)this.kd(d.siblings[a]);this.Cl&&b.zg.push(d);this.Xc++;this.trigger(Object.getPrototypeOf(d.type.Ga).n.un,d);this.Xc--};m.prototype.wb=function(){if(this.te){var d,a,e,g,b,f;this.Cl=!0;e=0;for(b=this.Uc.length;e<b;++e)for(d=this.Uc[e],a=d.type,a.i.push(d),g=0,f=a.Ea.length;g<f;++g)a.Ea[g].i.push(d),
a.Ea[g].wg=!0;this.Uc.length=0;this.cr();Wa(this.Te);this.te=this.Cl=!1}};m.prototype.cr=function(){for(var d in this.Te)this.Te.hasOwnProperty(d)&&this.Jq(this.Te[d])};m.prototype.Jq=function(d){var a=d.$d(),e=a[0].type,b,f,c,n,p,r;Ya(e.i,d);e.wg=!0;0===e.i.length&&(e.fi=!1);b=0;for(f=e.Ea.length;b<f;++b)r=e.Ea[b],Ya(r.i,d),r.wg=!0;b=0;for(f=this.Ad.lc.length;b<f;++b)if(p=this.Ad.lc[b],p.kc.hasOwnProperty(e.index)&&Ya(p.kc[e.index].ff,d),!e.M)for(c=0,n=e.Ea.length;c<n;++c)r=e.Ea[c],p.kc.hasOwnProperty(r.index)&&
Ya(p.kc[r.index].ff,d);if(p=a[0].m){if(p.gd)for(c=p.i,b=0,f=c.length;b<f;++b)n=c[b],d.contains(n)&&(n.ya(),p.ic.update(n,n.Ob,null),n.Ob.set(0,0,-1,-1));Ya(p.i,d);p.Rh(0)}for(b=0;b<a.length;++b)this.Iq(a[b],e);d.clear();g.push(d);this.Z=!0};m.prototype.Iq=function(d,a){var e,g,b;e=0;for(g=this.Qk.length;e<g;++e)this.Qk[e](d);d.xc&&a.Kg.update(d,d.xc,null);(e=d.m)&&e.ng(d,!0);if(d.R)for(e=0,g=d.R.length;e<g;++e)b=d.R[e],b.jg&&b.jg(),b.behavior.wj.remove(d);this.qp.remove(d);this.em.remove(d);this.rp.remove(d);
d.jg&&d.jg();this.Rd.hasOwnProperty(d.uid.toString())&&delete this.Rd[d.uid.toString()];this.yj--;100>a.wi.length&&a.wi.push(d)};m.prototype.Sn=function(d,a,e,g){if(d.M){var b=Q(Math.random()*d.fg.length);return this.Sn(d.fg[b],a,e,g)}return d.Bc?this.le(d.Bc,a,!1,e,g,!1):null};var r=[];m.prototype.le=function(d,a,e,g,b,f){var c,n,p,l;if(!d)return null;var u=this.B[d[1]],v=u.Ga.ye;if(this.lh&&v&&!u.Dl||v&&!this.C&&11===d[0][11])return null;var m=a;v||(a=null);var h;u.wi.length?(h=u.wi.pop(),h.hc=
!0,u.Ga.fa.call(h,u)):(h=new u.Ga.fa(u),h.hc=!1);h.uid=!e||f||this.Rd.hasOwnProperty(d[2].toString())?this.Gh++:d[2];this.Rd[h.uid.toString()]=h;h.Lp=this.mp++;h.df=u.i.length;c=0;for(n=this.Uc.length;c<n;++c)this.Uc[c].type===u&&h.df++;h.Xg=Bb;h.toString=Cb;p=d[3];if(h.hc)Wa(h.X);else{h.X={};if("undefined"!==typeof cr_is_preview)for(h.zo=[],h.zo.length=p.length,c=0,n=p.length;c<n;c++)h.zo[c]=p[c][1];h.ab=[];h.ab.length=p.length}c=0;for(n=p.length;c<n;c++)h.ab[c]=p[c][0];if(v){var k=d[0];h.x=ha(g)?
k[0]:g;h.y=ha(b)?k[1]:b;h.z=k[2];h.width=k[3];h.height=k[4];h.depth=k[5];h.k=k[6];h.opacity=k[7];h.Zb=k[8];h.$b=k[9];h.Gb=k[10];c=k[11];!this.C&&u.P.length&&(h.Gb=c);h.Lg=fb(h.Gb);this.u&&gb(h,h.Gb,this.u);if(h.hc){c=0;for(n=k[12].length;c<n;c++)for(p=0,l=k[12][c].length;p<l;p++)h.Ha[c][p]=k[12][c][p];h.Aa.set(0,0,0,0);h.xc.set(0,0,-1,-1);h.Ob.set(0,0,-1,-1);h.Bb.tg(h.Aa);h.Ck.length=0}else{h.Ha=k[12].slice(0);c=0;for(n=h.Ha.length;c<n;c++)h.Ha[c]=k[12][c].slice(0);h.ga=[];h.de=[];h.de.length=u.P.length;
h.Aa=new T(0,0,0,0);h.xc=new T(0,0,-1,-1);h.Ob=new T(0,0,-1,-1);h.Bb=new va;h.Ck=[];h.I=Fb;h.ns=Gb;h.Cb=Hb;h.ya=Ib;h.Mv=Jb;h.en=Kb;h.qd=Lb}h.Yh=!1;h.Jv=0;h.Iv=0;h.Hv=null;14===k.length&&(h.Yh=!0,h.Jv=k[13][0],h.Iv=k[13][1],h.Hv=k[13][2]);c=0;for(n=u.P.length;c<n;c++)h.de[c]=!0;h.Zd=Mb;h.Zd();h.zq=!!h.ga.length;h.ki=!0;h.Fk=!0;u.ei=!0;h.visible=!0;h.Fh=-1;h.m=a;h.hd=a.i.length;"undefined"===typeof h.ka&&(h.ka=null);this.Z=h.yc=!0}var y;c=r.length=0;for(n=u.Ea.length;c<n;c++)r.push.apply(r,u.Ea[c].Pa);
r.push.apply(r,u.Pa);if(h.hc)for(c=0,n=r.length;c<n;c++){var q=r[c];y=h.R[c];y.hc=!0;q.behavior.fa.call(y,q,h);k=d[4][c];p=0;for(l=k.length;p<l;p++)y.H[p]=k[p];y.S();q.behavior.wj.add(h)}else for(h.R=[],c=0,n=r.length;c<n;c++)q=r[c],y=new q.behavior.fa(q,h),y.hc=!1,y.H=d[4][c].slice(0),y.S(),h.R.push(y),q.behavior.wj.add(h);k=d[5];if(h.hc)for(c=0,n=k.length;c<n;c++)h.H[c]=k[c];else h.H=k.slice(0);this.Uc.push(h);this.te=!0;a&&(a.Eg(h,!0),1!==a.Lc||1!==a.Mc)&&(u.fi=!0);this.yj++;if(u.cc){if(h.cc=!0,
h.hc?h.siblings.length=0:h.siblings=[],!e&&!f){c=0;for(n=u.Ub.length;c<n;c++)if(u.Ub[c]!==u){if(!u.Ub[c].Bc)return null;h.siblings.push(this.le(u.Ub[c].Bc,m,!1,v?h.x:g,v?h.y:b,!0))}c=0;for(n=h.siblings.length;c<n;c++)for(h.siblings[c].siblings.push(h),p=0;p<n;p++)c!==p&&h.siblings[c].siblings.push(h.siblings[p])}}else h.cc=!1,h.siblings=null;h.S();c=0;for(n=h.R.length;c<n;c++)h.R[c].$u&&h.R[c].$u();return h};m.prototype.gl=function(d){var a,e;a=0;for(e=this.ua.Y.length;a<e;a++){var g=this.ua.Y[a];
if(ib(g.name,d))return g}return null};m.prototype.Vg=function(d){d=Q(d);0>d&&(d=0);d>=this.ua.Y.length&&(d=this.ua.Y.length-1);return this.ua.Y[d]};m.prototype.Ik=function(d){var a,e;a=0;for(e=d.length;a<e;a++)d[a].da().pa=!0};m.prototype.Lh=function(d){var a,e;a=0;for(e=d.length;a<e;a++)d[a].Lh()};m.prototype.Mh=function(d){var a,e;a=0;for(e=d.length;a<e;a++)d[a].Mh()};m.prototype.Fe=function(d){var a,e;a=0;for(e=d.length;a<e;a++)d[a].Fe()};m.prototype.wq=function(d){if(d.ei){var a,e,g=d.i;a=0;for(e=
g.length;a<e;++a)g[a].en();g=this.Uc;a=0;for(e=g.length;a<e;++a)g[a].type===d&&g[a].en();d.ei=!1}};m.prototype.ho=function(d,a,e,g){var b,c,f=d?1!==d.Lc||1!==d.Mc:!1;if(a.M)for(d=0,b=a.fg.length;d<b;++d)c=a.fg[d],f||c.fi?Ba(g,c.i):(this.wq(c),c.Kg.Oj(e,g));else f||a.fi?Ba(g,a.i):(this.wq(a),a.Kg.Oj(e,g))};m.prototype.$t=function(d,a,e,g){var b,c;b=0;for(c=a.length;b<c;++b)this.ho(d,a[b],e,g)};m.prototype.Zt=function(d,a,e){var g=this.cq;g&&this.$t(d,g.am,a,e)};m.prototype.Gv=function(d,a,e){var g=
d.da(),b,c,f,n,p,r;if(g.pa)for(g.pa=!1,b=g.i.length=0,n=d.i.length;b<n;b++)f=d.i[b],f.ya(),p=f.m.Tb(a,e,!0),r=f.m.Tb(a,e,!1),f.Cb(p,r)&&g.i.push(f);else{b=c=0;for(n=g.i.length;b<n;b++)f=g.i[b],f.ya(),p=f.m.Tb(a,e,!0),r=f.m.Tb(a,e,!1),f.Cb(p,r)&&(g.i[c]=g.i[b],c++);g.i.length=c}d.he();return g.pl()};m.prototype.yf=function(d,a){if(!(d&&a&&d!==a&&d.yc&&a.yc))return!1;d.ya();a.ya();var e=d.m,g=a.m,b,c,f,n,p,r,l,h;if(e===g||e.Lc===g.Lc&&g.Mc===g.Mc&&e.scale===g.scale&&e.k===g.k&&e.jd===g.jd){if(!d.Aa.uu(a.Aa)||
!d.Bb.Ao(a.Bb)||d.Yh&&a.Yh)return!1;if(d.Yh)return this.hq(d,a);if(a.Yh)return this.hq(a,d);l=d.ka&&!d.ka.Vf();b=a.ka&&!a.ka.Vf();if(!l&&!b)return!0;l?(d.ka.Kf(d.width,d.height,d.k),l=d.ka):(this.cd.sg(d.Bb,d.x,d.y,d.width,d.height),l=this.cd);b?(a.ka.Kf(a.width,a.height,a.k),h=a.ka):(this.cd.sg(a.Bb,a.x,a.y,a.width,a.height),h=this.cd);return l.eh(h,a.x-d.x,a.y-d.y)}l=d.ka&&!d.ka.Vf();b=a.ka&&!a.ka.Vf();l?(d.ka.Kf(d.width,d.height,d.k),this.cd.Wp(d.ka)):this.cd.sg(d.Bb,d.x,d.y,d.width,d.height);
l=this.cd;b?(a.ka.Kf(a.width,a.height,a.k),this.Qm.Wp(a.ka)):this.Qm.sg(a.Bb,a.x,a.y,a.width,a.height);h=this.Qm;b=0;for(c=l.ad;b<c;b++)f=2*b,n=f+1,p=l.fb[f],r=l.fb[n],l.fb[f]=e.Fa(p+d.x,r+d.y,!0),l.fb[n]=e.Fa(p+d.x,r+d.y,!1);l.ya();b=0;for(c=h.ad;b<c;b++)f=2*b,n=f+1,p=h.fb[f],r=h.fb[n],h.fb[f]=g.Fa(p+a.x,r+a.y,!0),h.fb[n]=g.Fa(p+a.x,r+a.y,!1);h.ya();return l.eh(h,0,0)};var v=new va;new T(0,0,0,0);var G=[];m.prototype.hq=function(d,a){var e,g,b,c,f=a.Aa,n=d.x,p=d.y;d.Iw(f,G);var r=a.ka&&!a.ka.Vf();
e=0;for(g=G.length;e<g;++e)if(b=G[e],c=b.Ow,f.vu(c,n,p)&&(v.tg(c),v.offset(n,p),v.Ao(a.Bb)))if(r)if(a.ka.Kf(a.width,a.height,a.k),b.om){if(b.om.eh(a.ka,a.x-(n+c.left),a.y-(p+c.top)))return G.length=0,!0}else{if(this.cd.sg(v,0,0,c.right-c.left,c.bottom-c.top),this.cd.eh(a.ka,a.x,a.y))return G.length=0,!0}else if(b.om){if(this.cd.sg(a.Bb,0,0,a.width,a.height),b.om.eh(this.cd,-(n+c.left),-(p+c.top)))return G.length=0,!0}else return G.length=0,!0;G.length=0;return!1};m.prototype.rq=function(d,a){if(!a)return!1;
var e,g,b,c,f;e=0;for(g=d.Pa.length;e<g;e++)if(d.Pa[e].behavior instanceof a)return!0;if(!d.M)for(e=0,g=d.Ea.length;e<g;e++)for(f=d.Ea[e],b=0,c=f.Pa.length;b<c;b++)if(f.Pa[b].behavior instanceof a)return!0;return!1};m.prototype.sq=function(d){return this.rq(d,ac.jw)};m.prototype.Zm=function(d){return this.rq(d,ac.kw)};var p=[];m.prototype.dd=function(d){var a,e,g;d.ya();this.Zt(d.m,d.Aa,p);a=0;for(e=p.length;a<e;++a)if(g=p[a],g.X.solidEnabled&&this.yf(d,g))return p.length=0,g;p.length=0;return null};
m.prototype.jv=function(d,a,e,g){g=g||50;var b=d.x,c=d.y,f,n=null,p=null;for(f=0;f<g;f++)if(d.x=b+a*f,d.y=c+e*f,d.I(),!this.yf(d,n)&&((n=this.dd(d))&&(p=n),!n&&!n))return p&&this.hv(d,a,e,p),!0;d.x=b;d.y=c;d.I();return!1};m.prototype.hv=function(d,a,e,g){var b=2,c,f=!1;c=!1;for(var n=d.x,p=d.y;16>=b;)c=1/b,b*=2,d.x+=a*c*(f?1:-1),d.y+=e*c*(f?1:-1),d.I(),this.yf(d,g)?c=f=!0:(c=f=!1,n=d.x,p=d.y);c&&(d.x=n,d.y=p,d.I())};m.prototype.Np=function(d,a){var e=ha(a)?100:a,g=0,b=d.x,c=d.y,f=0,n=0,p=0,r=this.dd(d);
if(!r)return!0;for(;g<=e;){switch(f){case 0:n=0;p=-1;g++;break;case 1:n=1;p=-1;break;case 2:n=1;p=0;break;case 3:p=n=1;break;case 4:n=0;p=1;break;case 5:n=-1;p=1;break;case 6:n=-1;p=0;break;case 7:p=n=-1}f=(f+1)%8;d.x=Q(b+n*g);d.y=Q(c+p*g);d.I();if(!this.yf(d,r)&&(r=this.dd(d),!r))return!0}d.x=b;d.y=c;d.I();return!1};m.prototype.Oh=function(d,a){d.yc&&a.yc&&this.Pp.push([d,a])};m.prototype.ys=function(d,a,e){var g=d.x,b=d.y,c=pa(10,Ta(a,e,g,b)),f=Ka(a,e,g,b),n=this.dd(d);if(!n)return Ga(f+ra);var p=
n,r,l,h,u,v=V(5);for(r=1;36>r;r++)if(l=f-r*v,d.x=a+Math.cos(l)*c,d.y=e+Math.sin(l)*c,d.I(),!this.yf(d,p)&&(p=this.dd(d),!p)){h=l;break}36===r&&(h=Ga(f+ra));p=n;for(r=1;36>r;r++)if(l=f+r*v,d.x=a+Math.cos(l)*c,d.y=e+Math.sin(l)*c,d.I(),!this.yf(d,p)&&(p=this.dd(d),!p)){u=l;break}36===r&&(u=Ga(f+ra));d.x=g;d.y=b;d.I();if(u===h)return u;d=La(u,h)/2;d=Na(u,h)?Ga(h+d+ra):Ga(u+d);h=Math.cos(f);f=Math.sin(f);u=Math.cos(d);d=Math.sin(d);a=h*u+f*d;return Ka(0,0,h-2*a*u,f-2*a*d)};var u=-1;m.prototype.trigger=
function(d,a,e){if(!this.ua)return!1;var g=this.ua.Ve;if(!g)return!1;var b=!1,c,f,n;u++;var p=g.Pk;f=0;for(n=p.length;f<n;++f)c=this.oq(d,a,p[f],e),b=b||c;c=this.oq(d,a,g,e);u--;return b||c};m.prototype.oq=function(d,a,e,g){var b=!1,c,f,n,p;if(a)for(n=this.Xm(d,a,a.type.name,e,g),b=b||n,p=a.type.Ea,c=0,f=p.length;c<f;++c)n=this.Xm(d,a,p[c].name,e,g),b=b||n;else n=this.Xm(d,a,"system",e,g),b=b||n;return b};m.prototype.Xm=function(d,a,e,g,b){var c,f=!1,n=!1,n="undefined"!==typeof b,p=(n?g.$n:g.pq)[e];
if(!p)return f;var r=null;g=0;for(c=p.length;g<c;++g)if(p[g].method==d){r=p[g].Rg;break}if(!r)return f;d=n?r[b]:r;if(!d)return null;g=0;for(c=d.length;g<c;g++)b=d[g][0],n=d[g][1],n=this.Ft(a,e,b,n),f=f||n;return f};m.prototype.Ft=function(d,a,e,g){var b,c,f=!1;this.Ym++;var n=this.lb().qb;n&&this.Lh(n.Je);var p=1<this.Ym;this.Lh(e.Je);p&&this.iv();var r=this.Nj(e);r.qb=e;d&&(b=this.types[a].da(),b.pa=!1,b.i.length=1,b.i[0]=d,this.types[a].he());d=!0;if(e.parent){a=r.gq;for(b=e.parent;b;)a.push(b),
b=b.parent;a.reverse();b=0;for(c=a.length;b<c;b++)if(!a[b].qv()){d=!1;break}}d&&(this.Xe++,e.Kc?e.pv(g):e.Va(),f=f||r.lf);this.Jj();p&&this.Zu();this.Fe(e.Je);n&&this.Fe(n.Je);this.te&&0===this.Xc&&0===u&&!this.El&&this.wb();this.Ym--;return f};m.prototype.dl=function(){var d=this.lb();return d.qb.Za[d.Qa]};m.prototype.Ot=function(){var d=this.lb();return d.qb.wc[d.oc]};m.prototype.iv=function(){this.uj++;this.uj>=this.Ul.length&&this.Ul.push([])};m.prototype.Zu=function(){this.uj--};m.prototype.jo=
function(){return this.Ul[this.uj]};m.prototype.Nj=function(d){this.Ci++;this.Ci>=this.Uk.length&&this.Uk.push(new Nb);var a=this.lb();a.reset(d);return a};m.prototype.Jj=function(){this.Ci--};m.prototype.lb=function(){return this.Uk[this.Ci]};m.prototype.Mp=function(){this.Dh++;this.Dh>=this.Wl.length&&this.Wl.push(aa({name:void 0,index:0,Wa:!1}));var d=this.ko();d.name=void 0;d.index=0;d.Wa=!1;return d};m.prototype.Hp=function(){this.Dh--};m.prototype.ko=function(){return this.Wl[this.Dh]};m.prototype.lo=
function(d,a){for(var e,g,b,c,f,n;a;){e=0;for(g=a.Pc.length;e<g;e++)if(n=a.Pc[e],n instanceof Ob&&ib(d,n.name))return n;a=a.parent}e=0;for(g=this.Kd.length;e<g;e++)for(f=this.Kd[e],b=0,c=f.oe.length;b<c;b++)if(n=f.oe[b],n instanceof Ob&&ib(d,n.name))return n;return null};m.prototype.oo=function(d){var a,e;a=0;for(e=this.Zc.length;a<e;a++)if(this.Zc[a].aa===d)return this.Zc[a];return null};m.prototype.Qi=function(d){var a,e;a=0;for(e=this.B.length;a<e;a++)if(this.B[a].aa===d)return this.B[a];return null};
m.prototype.Qt=function(d){var a,e;a=0;for(e=this.If.length;a<e;a++)if(this.If[a].aa===d)return this.If[a];return null};m.prototype.ou=function(){var d=this,e=this.Uj,g=this.Od,c=this.vh,f=!1;this.bq&&(f=!0,e="__c2_continuouspreview",this.bq=!1);if(e.length){this.wb();g=this.uv();if(window.indexedDB&&!this.Vc)h(e,g,function(){C("Saved state to IndexedDB storage ("+g.length+" bytes)");d.Od=g;d.trigger(X.prototype.n.vk,null);d.Od="";f&&b()},function(a){try{localStorage.setItem("__c2save_"+e,g),C("Saved state to WebStorage ("+
g.length+" bytes)"),d.Od=g,d.trigger(X.prototype.n.vk,null),d.Od="",f&&b()}catch(c){C("Failed to save game state: "+a+"; "+c)}});else try{localStorage.setItem("__c2save_"+e,g),C("Saved state to WebStorage ("+g.length+" bytes)"),d.Od=g,this.trigger(X.prototype.n.vk,null),d.Od="",f&&b()}catch(n){C("Error saving to WebStorage: "+n)}this.Eb=this.vh=this.Uj=""}c.length&&(window.indexedDB&&!this.Vc?a(c,function(a){a?(d.Eb=a,C("Loaded state from IndexedDB storage ("+d.Eb.length+" bytes)")):(d.Eb=localStorage.getItem("__c2save_"+
c)||"",C("Loaded state from WebStorage ("+d.Eb.length+" bytes)"));d.Vh=!1;d.Eb.length||d.trigger(X.prototype.n.tk,null)},function(){d.Eb=localStorage.getItem("__c2save_"+c)||"";C("Loaded state from WebStorage ("+d.Eb.length+" bytes)");d.Vh=!1;d.Eb.length||d.trigger(X.prototype.n.tk,null)}):(this.Eb=localStorage.getItem("__c2save_"+c)||"",C("Loaded state from WebStorage ("+this.Eb.length+" bytes)"),this.Vh=!1,d.Eb.length||d.trigger(X.prototype.n.tk,null)),this.Uj=this.vh="");this.Eb.length&&(this.wb(),
this.Eu(this.Eb),this.Od=this.Eb,this.trigger(X.prototype.n.yn,null),this.Eb=this.Od="")};m.prototype.uv=function(){var d,a,e,g,b,f,n,p={c2save:!0,version:1,rt:{time:this.Nb.J,walltime:this.Dd.J,timescale:this.Bf,tickcount:this.fd,execcount:this.Xe,next_uid:this.Gh,running_layout:this.ua.aa,start_time_offset:Date.now()-this.dk},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};d=0;for(a=this.B.length;d<a;d++)if(b=this.B[d],!b.M&&!this.sq(b)){f={instances:[]};Va(b.X)&&(f.ex=c(b.X));e=
0;for(g=b.i.length;e<g;e++)f.instances.push(this.Cm(b.i[e]));p.types[b.aa.toString()]=f}d=0;for(a=this.Zc.length;d<a;d++)e=this.Zc[d],p.layouts[e.aa.toString()]=e.gb();g=p.events.groups;d=0;for(a=this.If.length;d<a;d++)e=this.If[d],g[e.aa.toString()]=this.Zg[e.Yg].Rf;a=p.events.cnds;for(n in this.Mf)this.Mf.hasOwnProperty(n)&&(d=this.Mf[n],Va(d.X)&&(a[n]={ex:c(d.X)}));a=p.events.acts;for(n in this.Hf)this.Hf.hasOwnProperty(n)&&(d=this.Hf[n],Va(d.X)&&(a[n]={ex:d.X}));a=p.events.vars;for(n in this.Ag)this.Ag.hasOwnProperty(n)&&
(d=this.Ag[n],d.Zi||d.parent&&!d.kh||(a[n]=d.data));p.system=this.Ad.gb();return JSON.stringify(p)};m.prototype.Op=function(){var a,e,g,b,c,f;this.Rd={};a=0;for(e=this.B.length;a<e;a++)if(g=this.B[a],!g.M)for(b=0,c=g.i.length;b<c;b++)f=g.i[b],this.Rd[f.uid.toString()]=f};m.prototype.Eu=function(a){a=JSON.parse(a);if(a.c2save&&!(1<a.version)){var e=a.rt;this.Nb.reset();this.Nb.J=e.time;this.Dd.reset();this.Dd.J=e.walltime||0;this.Bf=e.timescale;this.fd=e.tickcount;this.Xe=e.execcount;this.dk=Date.now()-
e.start_time_offset;var g=e.running_layout;if(g!==this.ua.aa)if(g=this.oo(g))this.Wn(g);else return;var b,c,f,n,p,r,l;r=a.types;for(c in r)if(r.hasOwnProperty(c)&&(n=this.Qi(parseInt(c,10)))&&!n.M&&!this.sq(n)){r[c].ex?n.X=r[c].ex:Wa(n.X);p=n.i;f=r[c].instances;g=0;for(b=qa(p.length,f.length);g<b;g++)this.oj(p[g],f[g]);g=f.length;for(b=p.length;g<b;g++)this.kd(p[g]);g=p.length;for(b=f.length;g<b;g++){p=null;if(n.Ga.ye&&(p=this.ua.Oi(f[g].w.l),!p))continue;p=this.le(n.Bc,p,!1,0,0,!0);this.oj(p,f[g])}n.wg=
!0}this.wb();this.Op();b=a.layouts;for(c in b)b.hasOwnProperty(c)&&(g=this.oo(parseInt(c,10)))&&g.sb(b[c]);b=a.events.groups;for(c in b)b.hasOwnProperty(c)&&(g=this.Qt(parseInt(c,10)))&&this.Zg[g.Yg]&&this.Zg[g.Yg].wv(b[c]);g=a.events.cnds;for(c in g)g.hasOwnProperty(c)&&this.Mf.hasOwnProperty(c)&&(this.Mf[c].X=g[c].ex);g=a.events.acts;for(c in g)g.hasOwnProperty(c)&&this.Hf.hasOwnProperty(c)&&(this.Hf[c].X=g[c].ex);g=a.events.vars;for(c in g)g.hasOwnProperty(c)&&this.Ag.hasOwnProperty(c)&&(this.Ag[c].data=
g[c]);this.Gh=e.next_uid;this.Ad.sb(a.system);g=0;for(b=this.B.length;g<b;g++)if(n=this.B[g],!n.M)for(c=0,a=n.i.length;c<a;c++){p=n.i[c];if(n.cc)for(r=p.Xg(),e=p.siblings.length=0,f=n.Ub.length;e<f;e++)l=n.Ub[e],n!==l&&p.siblings.push(l.i[r]);p.ee&&p.ee();if(p.R)for(e=0,f=p.R.length;e<f;e++)r=p.R[e],r.ee&&r.ee()}this.Z=!0}};m.prototype.Cm=function(a,e){var g,b,f,n,p;n=a.type;f=n.Ga;var r={};e?r.c2=!0:r.uid=a.uid;Va(a.X)&&(r.ex=c(a.X));if(a.ab&&a.ab.length)for(r.ivs={},g=0,b=a.ab.length;g<b;g++)r.ivs[a.type.Al[g].toString()]=
a.ab[g];if(f.ye){f={x:a.x,y:a.y,w:a.width,h:a.height,l:a.m.aa,zi:a.qd()};0!==a.k&&(f.a=a.k);1!==a.opacity&&(f.o=a.opacity);.5!==a.Zb&&(f.hX=a.Zb);.5!==a.$b&&(f.hY=a.$b);0!==a.Gb&&(f.bm=a.Gb);a.visible||(f.v=a.visible);a.yc||(f.ce=a.yc);-1!==a.Fh&&(f.mts=a.Fh);if(n.P.length)for(f.fx=[],g=0,b=n.P.length;g<b;g++)p=n.P[g],f.fx.push({name:p.name,active:a.de[p.index],params:a.Ha[p.index]});r.w=f}if(a.R&&a.R.length)for(r.behs={},g=0,b=a.R.length;g<b;g++)n=a.R[g],n.gb&&(r.behs[n.type.aa.toString()]=n.gb());
a.gb&&(r.data=a.gb());return r};m.prototype.St=function(a,e){var g,b;g=0;for(b=a.Al.length;g<b;g++)if(a.Al[g]===e)return g;return-1};m.prototype.Nt=function(a,e){var g,b;g=0;for(b=a.R.length;g<b;g++)if(a.R[g].type.aa===e)return g;return-1};m.prototype.oj=function(a,e,g){var b,c,f,n,p;p=a.type;f=p.Ga;if(g){if(!e.c2)return}else a.uid=e.uid;e.ex?a.X=e.ex:Wa(a.X);if(c=e.ivs)for(b in c)c.hasOwnProperty(b)&&(g=this.St(p,parseInt(b,10)),0>g||g>=a.ab.length||(a.ab[g]=c[b]));if(f.ye){f=e.w;a.m.aa!==f.l&&(g=
a.m,a.m=this.ua.Oi(f.l),a.m?(g.ng(a,!0),a.m.Eg(a,!0),a.I(),a.m.Rh(0)):(a.m=g,this.kd(a)));a.x=f.x;a.y=f.y;a.width=f.w;a.height=f.h;a.hd=f.zi;a.k=f.hasOwnProperty("a")?f.a:0;a.opacity=f.hasOwnProperty("o")?f.o:1;a.Zb=f.hasOwnProperty("hX")?f.hX:.5;a.$b=f.hasOwnProperty("hY")?f.hY:.5;a.visible=f.hasOwnProperty("v")?f.v:!0;a.yc=f.hasOwnProperty("ce")?f.ce:!0;a.Fh=f.hasOwnProperty("mts")?f.mts:-1;a.Gb=f.hasOwnProperty("bm")?f.bm:0;a.Lg=fb(a.Gb);this.u&&gb(a,a.Gb,this.u);a.I();if(f.hasOwnProperty("fx"))for(g=
0,c=f.fx.length;g<c;g++)n=p.fl(f.fx[g].name),0>n||(a.de[n]=f.fx[g].active,a.Ha[n]=f.fx[g].params);a.Zd()}if(p=e.behs)for(b in p)p.hasOwnProperty(b)&&(f=this.Nt(a,parseInt(b,10)),0>f||a.R[f].sb(p[b]));e.data&&a.sb(e.data)};Pb=function(a){return new m(document.getElementById(a))};Qb=function(a,e){return new m({dc:!0,width:a,height:e})};window.cr_createRuntime=Pb;window.cr_createDCRuntime=Qb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");
a.Qw=!0;document.body.appendChild(a);a=new m(a);window.c2runtime=a;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a};window.createEjectaRuntime=function(){var a=new m(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();
window.cr_getC2Runtime=function(){var k=document.getElementById("c2canvas");return k?k.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_sizeCanvas=function(k,q){if(0!==k&&0!==q){var m=window.cr_getC2Runtime();m&&m.setSize(k,q)}};window.cr_setSuspended=function(k){var q=window.cr_getC2Runtime();q&&q.setSuspended(k)};
(function(){function k(a,b){this.b=a;this.Ve=null;this.scrollX=this.b.eb/2;this.scrollY=this.b.cb/2;this.scale=1;this.k=0;this.Qf=!0;this.name=b[0];this.width=b[1];this.height=b[2];this.tq=b[3];this.Zp=b[4];this.aa=b[5];var c=b[6],g,f;this.Y=[];this.dh=[];g=0;for(f=c.length;g<f;g++){var l=new Rb(this,c[g]);l.op=g;this.Y.push(l)}c=b[7];this.ef=[];g=0;for(f=c.length;g<f;g++){var l=c[g],h=this.b.B[l[1]];h.Bc||(h.Bc=l);this.ef.push(l);-1===this.dh.indexOf(h)&&this.dh.push(h)}this.P=[];this.ga=[];this.Ha=
[];g=0;for(f=b[8].length;g<f;g++)this.P.push({id:b[8][g][0],name:b[8][g][1],ub:-1,kb:!0,index:g}),this.Ha.push(b[8][g][2].slice(0));this.Zd();this.mg=new T(0,0,1,1);this.um=new T(0,0,1,1);this.Ee={}}function q(a,b){return a.hd-b.hd}function m(a,b){this.Ua=a;this.b=a.b;this.i=[];this.scale=1;this.k=0;this.Ue=!1;this.Xd=new T(0,0,0,0);this.mq=new va;this.Ja=this.Ca=this.Ka=this.Ba=0;this.Cf=!1;this.ae=-1;this.name=b[0];this.index=b[1];this.aa=b[2];this.visible=b[3];this.je=b[4];this.Yd=b[5];this.Lc=
b[6];this.Mc=b[7];this.opacity=b[8];this.Zk=b[9];this.gd=b[10];this.jd=b[11];this.Gb=b[12];this.Ys=b[13];this.Lg="source-over";this.xb=this.zb=0;this.ic=null;this.ag=t();this.Sd=!0;this.fj=new T(0,0,-1,-1);this.Ac=new T(0,0,-1,-1);this.gd&&(this.ic=new eb(this.b.eb,this.b.cb));this.He=!1;var c=b[14],g,f;this.dq=[];this.tc=[];this.Ng=[];g=0;for(f=c.length;g<f;g++){var l=c[g],h=this.b.B[l[1]];h.Bc||(h.Bc=l,h.Hs=this.index);this.tc.push(l);-1===this.Ua.dh.indexOf(h)&&this.Ua.dh.push(h)}Aa(this.dq,this.tc);
this.P=[];this.ga=[];this.Ha=[];g=0;for(f=b[15].length;g<f;g++)this.P.push({id:b[15][g][0],name:b[15][g][1],ub:-1,kb:!0,index:g}),this.Ha.push(b[15][g][2].slice(0));this.Zd();this.mg=new T(0,0,1,1);this.um=new T(0,0,1,1)}function t(){return c.length?c.pop():[]}function h(a){a.length=0;c.push(a)}k.prototype.tv=function(a){var b=a.type.aa.toString();this.Ee.hasOwnProperty(b)||(this.Ee[b]=[]);this.Ee[b].push(this.b.Cm(a))};k.prototype.so=function(){var a=this.Y[0];return!a.Yd&&1===a.opacity&&!a.Zk&&
a.visible};k.prototype.Zd=function(){this.ga.length=0;var a,b,c;a=0;for(b=this.P.length;a<b;a++)c=this.P[a],c.kb&&this.ga.push(c)};k.prototype.el=function(a){var b,c,g;b=0;for(c=this.P.length;b<c;b++)if(g=this.P[b],g.name===a)return g;return null};var a=[],b=!0;k.prototype.Pm=function(){this.Zp&&(this.Ve=this.b.Vk[this.Zp],this.Ve.an());this.b.ua=this;this.scrollX=this.b.eb/2;this.scrollY=this.b.cb/2;var e,c,f,g,r,l,h;e=0;for(f=this.b.B.length;e<f;e++)if(c=this.b.B[e],!c.M)for(r=c.i,c=0,g=r.length;c<
g;c++)if(l=r[c],l.m){var p=l.m.op;p>=this.Y.length&&(p=this.Y.length-1);l.m=this.Y[p];-1===l.m.i.indexOf(l)&&l.m.i.push(l);l.m.Cf=!0}if(!b)for(e=0,f=this.Y.length;e<f;++e)this.Y[e].i.sort(q);a.length=0;this.ws();e=0;for(f=this.Y.length;e<f;e++)l=this.Y[e],l.Es(),l.cn();r=!1;if(!this.Qf){for(h in this.Ee)if(this.Ee.hasOwnProperty(h)&&(c=this.b.Qi(parseInt(h,10)))&&!c.M&&this.b.Zm(c)){g=this.Ee[h];e=0;for(f=g.length;e<f;e++){l=null;if(c.Ga.ye&&(l=this.Oi(g[e].w.l),!l))continue;l=this.b.le(c.Bc,l,!1,
0,0,!0);this.b.oj(l,g[e]);r=!0;a.push(l)}g.length=0}e=0;for(f=this.Y.length;e<f;e++)this.Y[e].i.sort(q),this.Y[e].Cf=!0}r&&(this.b.wb(),this.b.Op());for(e=0;e<a.length;e++)if(l=a[e],l.type.cc)for(f=l.Xg(),c=0,g=l.type.Ub.length;c<g;c++)h=l.type.Ub[c],l.type!==h&&(h.i.length>f?l.siblings.push(h.i[f]):h.Bc&&(r=this.b.le(h.Bc,l.m,!0,l.x,l.y,!0),this.b.wb(),h.lk(),l.siblings.push(r),a.push(r)));e=0;for(f=this.ef.length;e<f;e++)this.b.le(this.ef[e],null,!0);this.b.Jg=null;this.b.wb();if(this.b.ta&&!this.b.Ta)for(e=
0,f=this.b.B.length;e<f;e++)h=this.b.B[e],!h.M&&h.i.length&&h.pm&&h.pm(this.b.ta);e=0;for(f=a.length;e<f;e++)l=a[e],this.b.trigger(Object.getPrototypeOf(l.type.Ga).n.di,l);a.length=0;this.b.trigger(X.prototype.n.xn,null);this.Qf=!1};k.prototype.Ds=function(){var a,b,c,g,f;b=a=0;for(c=this.ef.length;a<c;a++)g=this.ef[a],f=this.b.B[g[1]],f.global?this.b.le(g,null,!0):(this.ef[b]=g,b++);this.ef.length=b};k.prototype.Ev=function(){this.b.trigger(X.prototype.n.tr,null);this.b.Ad.lc.length=0;var a,c,f,
g,l,h;if(!this.Qf)for(a=0,c=this.Y.length;a<c;a++)for(this.Y[a].dn(),l=this.Y[a].i,f=0,g=l.length;f<g;f++)h=l[f],h.type.global||this.b.Zm(h.type)&&this.tv(h);a=0;for(c=this.Y.length;a<c;a++){l=this.Y[a].i;f=0;for(g=l.length;f<g;f++)h=l[f],h.type.global||this.b.kd(h);this.b.wb();l.length=0;this.Y[a].Cf=!0}a=0;for(c=this.b.B.length;a<c;a++)if(l=this.b.B[a],!(l.global||l.Ga.ye||l.Ga.Zj||l.M)){f=0;for(g=l.i.length;f<g;f++)this.b.kd(l.i[f]);this.b.wb()}b=!1};new T(0,0,0,0);k.prototype.Dc=function(a){var b,
c=a,g=!1,f=!this.b.Ec;f&&(this.b.mj||(this.b.mj=document.createElement("canvas"),b=this.b.mj,b.width=this.b.W,b.height=this.b.V,this.b.Qo=b.getContext("2d"),g=!0),b=this.b.mj,c=this.b.Qo,b.width!==this.b.W&&(b.width=this.b.W,g=!0),b.height!==this.b.V&&(b.height=this.b.V,g=!0),g&&(c.webkitImageSmoothingEnabled=this.b.ja,c.mozImageSmoothingEnabled=this.b.ja,c.msImageSmoothingEnabled=this.b.ja,c.imageSmoothingEnabled=this.b.ja));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.b.xk&&!this.so()&&
c.clearRect(0,0,this.b.W,this.b.V);var l,h,g=0;for(l=this.Y.length;g<l;g++)h=this.Y[g],h.visible&&0<h.opacity&&11!==h.Gb&&(h.i.length||!h.Yd)?h.Dc(c):h.cn();f&&a.drawImage(b,0,0,this.b.width,this.b.height)};k.prototype.Vb=function(a){var b=0<this.ga.length||this.b.yg||!this.b.Ec;if(b){this.b.ec||(this.b.ec=a.Gd(this.b.W,this.b.V,this.b.ja));if(this.b.ec.Hg!==this.b.W||this.b.ec.Gg!==this.b.V)a.deleteTexture(this.b.ec),this.b.ec=a.Gd(this.b.W,this.b.V,this.b.ja);a.xd(this.b.ec);this.b.Ec||a.rg(this.b.W,
this.b.V)}else this.b.ec&&(a.xd(null),a.deleteTexture(this.b.ec),this.b.ec=null);this.b.xk&&!this.so()&&a.clear(0,0,0,0);var c,g,f;c=0;for(g=this.Y.length;c<g;c++)f=this.Y[c],f.visible&&0<f.opacity&&(f.i.length||!f.Yd)?f.Vb(a):f.cn();b&&(0===this.ga.length||1===this.ga.length&&this.b.Ec?(1===this.ga.length?(b=this.ga[0].index,a.zd(this.ga[0].ub),a.qg(null,1/this.b.W,1/this.b.V,0,0,1,1,this.scale,this.k,0,0,this.b.W/2,this.b.V/2,this.Ha[b]),a.Mj(this.ga[0].ub)&&(this.b.Z=!0)):a.zd(0),this.b.Ec||a.rg(this.b.width,
this.b.height),a.xd(null),a.vf(1),a.jc(this.b.ec),a.Tp(),a.wd(),a.Bd(),b=this.b.width/2,c=this.b.height/2,a.Nh(-b,c,b,c,b,-c,-b,-c),a.jc(null)):this.wm(a,null,null,null))};k.prototype.Wg=function(){return 0<this.ga.length||this.b.yg||!this.b.Ec?this.b.ec:null};k.prototype.po=function(){var a=this.Y[0].Xb(),b,c,g;b=1;for(c=this.Y.length;b<c;b++)g=this.Y[b],(0!==g.Lc||0!==g.Mc)&&g.Xb()<a&&(a=g.Xb());return a};k.prototype.Dm=function(a){if(!this.tq){var b=1/this.po()*this.b.W/2;a>this.width-b&&(a=this.width-
b);a<b&&(a=b)}this.scrollX!==a&&(this.scrollX=a,this.b.Z=!0)};k.prototype.Em=function(a){if(!this.tq){var b=1/this.po()*this.b.V/2;a>this.height-b&&(a=this.height-b);a<b&&(a=b)}this.scrollY!==a&&(this.scrollY=a,this.b.Z=!0)};k.prototype.ws=function(){this.Dm(this.scrollX);this.Em(this.scrollY)};k.prototype.wm=function(a,b,c,g){var f=c?c.ga:b?b.ga:this.ga,l=1,h=0,p=0,u=0,d=this.b.W,m=this.b.V;c?(l=c.m.Xb(),h=c.m.Sa(),p=c.m.Ba,u=c.m.Ca,d=c.m.Ka,m=c.m.Ja):b&&(l=b.Xb(),h=b.Sa(),p=b.Ba,u=b.Ca,d=b.Ka,m=
b.Ja);var k=this.b.bl,q,t,I,A,L=0,xa=1,Y,D=this.b.W,x=this.b.V,ya=D/2,N=x/2,S=b?b.mg:this.mg,J=b?b.um:this.um,z=0,O=0,E=0,K=0,H=D,ja=D,M=x,na=x,fa=I=0,sa=c?c.m.Sa():0;if(c){q=0;for(t=f.length;q<t;q++)I+=a.Wt(f[q].ub),fa+=a.Xt(f[q].ub);A=c.Aa;z=b.Fa(A.left,A.top,!0,!0);E=b.Fa(A.left,A.top,!1,!0);H=b.Fa(A.right,A.bottom,!0,!0);M=b.Fa(A.right,A.bottom,!1,!0);0!==sa&&(q=b.Fa(A.right,A.top,!0,!0),t=b.Fa(A.right,A.top,!1,!0),O=b.Fa(A.left,A.bottom,!0,!0),K=b.Fa(A.left,A.bottom,!1,!0),A=Math.min(z,H,q,O),
H=Math.max(z,H,q,O),z=A,A=Math.min(E,M,t,K),M=Math.max(E,M,t,K),E=A);z-=I;E-=fa;H+=I;M+=fa;J.left=z/D;J.top=1-E/x;J.right=H/D;J.bottom=1-M/x;O=z=Q(z);K=E=Q(E);ja=H=ta(H);na=M=ta(M);O-=I;K-=fa;ja+=I;na+=fa;0>z&&(z=0);0>E&&(E=0);H>D&&(H=D);M>x&&(M=x);0>O&&(O=0);0>K&&(K=0);ja>D&&(ja=D);na>x&&(na=x);S.left=z/D;S.top=1-E/x;S.right=H/D;S.bottom=1-M/x}else S.left=J.left=0,S.top=J.top=0,S.right=J.right=1,S.bottom=J.bottom=1;fa=c&&((c.k||sa)&&a.Jh(f[0].ub)||0!==I||0!==fa||1!==c.opacity||c.type.Ga.kp)||b&&
!c&&1!==b.opacity;a.Tp();if(fa){k[L]||(k[L]=a.Gd(D,x,this.b.ja));if(k[L].Hg!==D||k[L].Gg!==x)a.deleteTexture(k[L]),k[L]=a.Gd(D,x,this.b.ja);a.zd(0);a.xd(k[L]);Y=na-K;a.clearRect(O,x-K-Y,ja-O,Y);c?c.Vb(a):(a.jc(this.b.uc),a.vf(b.opacity),a.wd(),a.translate(-ya,-N),a.Bd(),a.Ge(z,M,H,M,H,E,z,E,S));J.left=J.top=0;J.right=J.bottom=1;c&&(A=S.top,S.top=S.bottom,S.bottom=A);L=1;xa=0}a.vf(1);I=f.length-1;var sa=a.qm(f[I].ub)||!b&&!c&&!this.b.Ec,ba=0;q=0;for(t=f.length;q<t;q++){k[L]||(k[L]=a.Gd(D,x,this.b.ja));
if(k[L].Hg!==D||k[L].Gg!==x)a.deleteTexture(k[L]),k[L]=a.Gd(D,x,this.b.ja);a.zd(f[q].ub);ba=f[q].index;a.Mj(f[q].ub)&&(this.b.Z=!0);0!=q||fa?(a.qg(g,1/D,1/x,J.left,J.top,J.right,J.bottom,l,h,p,u,(p+d)/2,(u+m)/2,c?c.Ha[ba]:b?b.Ha[ba]:this.Ha[ba]),a.jc(null),q!==I||sa?(a.xd(k[L]),Y=na-K,A=x-K-Y,a.clearRect(O,A,ja-O,Y)):(c?a.Ie(c.zb,c.xb):b&&a.Ie(b.zb,b.xb),a.xd(g)),a.jc(k[xa]),a.wd(),a.translate(-ya,-N),a.Bd(),a.Ge(z,M,H,M,H,E,z,E,S),q!==I||sa||a.jc(null)):(a.xd(k[L]),Y=na-K,A=x-K-Y,a.clearRect(O,A,
ja-O,Y),c?(a.qg(g,1/c.width,1/c.height,J.left,J.top,J.right,J.bottom,l,h,p,u,(p+d)/2,(u+m)/2,c.Ha[ba]),c.Vb(a)):(a.qg(g,1/D,1/x,0,0,1,1,l,h,p,u,(p+d)/2,(u+m)/2,b?b.Ha[ba]:this.Ha[ba]),a.jc(b?this.b.uc:this.b.ec),a.wd(),a.translate(-ya,-N),a.Bd(),a.Ge(z,M,H,M,H,E,z,E,S)),J.left=J.top=0,J.right=J.bottom=1,c&&!sa&&(A=M,M=E,E=A));L=0===L?1:0;xa=0===L?1:0}sa&&(a.zd(0),c?a.Ie(c.zb,c.xb):b?a.Ie(b.zb,b.xb):this.b.Ec||(a.rg(this.b.width,this.b.height),ya=this.b.width/2,N=this.b.height/2,E=z=0,H=this.b.width,
M=this.b.height),a.xd(g),a.jc(k[xa]),a.wd(),a.translate(-ya,-N),a.Bd(),c&&1===f.length&&!fa?a.Ge(z,E,H,E,H,M,z,M,S):a.Ge(z,M,H,M,H,E,z,E,S),a.jc(null))};k.prototype.Oi=function(a){var b,c;b=0;for(c=this.Y.length;b<c;b++)if(this.Y[b].aa===a)return this.Y[b];return null};k.prototype.gb=function(){var a,b,c,g={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.k,w:this.width,h:this.height,fv:this.Qf,persist:this.Ee,fx:[],layers:{}};a=0;for(b=this.P.length;a<b;a++)c=this.P[a],g.fx.push({name:c.name,
active:c.kb,params:this.Ha[c.index]});a=0;for(b=this.Y.length;a<b;a++)c=this.Y[a],g.layers[c.aa.toString()]=c.gb();return g};k.prototype.sb=function(a){var b,c,g,f;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.k=a.a;this.width=a.w;this.height=a.h;this.Ee=a.persist;"undefined"!==typeof a.fv&&(this.Qf=a.fv);var l=a.fx;b=0;for(c=l.length;b<c;b++)if(g=this.el(l[b].name))g.kb=l[b].active,this.Ha[g.index]=l[b].params;this.Zd();b=a.layers;for(f in b)b.hasOwnProperty(f)&&(a=this.Oi(parseInt(f,10)))&&
a.sb(b[f])};Db=k;m.prototype.Zd=function(){this.ga.length=0;var a,b,c;a=0;for(b=this.P.length;a<b;a++)c=this.P[a],c.kb&&this.ga.push(c)};m.prototype.el=function(a){var b,c,g;b=0;for(c=this.P.length;b<c;b++)if(g=this.P[b],g.name===a)return g;return null};m.prototype.Es=function(){var b,c,f,g,l,h;c=b=0;for(f=this.tc.length;b<f;b++){g=this.tc[b];l=this.b.B[g[1]];h=this.b.Zm(l);l=!0;if(!h||this.Ua.Qf)g=this.b.le(g,this,!0),a.push(g),g.type.global&&(l=!1,this.Ng.push(g.uid));l&&(this.tc[c]=this.tc[b],
c++)}this.tc.length=c;this.b.wb();!this.b.C&&this.P.length&&(this.Gb=this.Ys);this.Lg=fb(this.Gb);this.b.u&&gb(this,this.Gb,this.b.u);this.Sd=!0};m.prototype.ng=function(a,b){var c=Ca(this.i,a);0>c||(b&&this.gd&&a.Ob&&a.Ob.right>=a.Ob.left&&(a.ya(),this.ic.update(a,a.Ob,null),a.Ob.set(0,0,-1,-1)),c===this.i.length-1?this.i.pop():(za(this.i,c),this.Rh(c)),this.Sd=!0)};m.prototype.Eg=function(a,b){a.hd=this.i.length;this.i.push(a);b&&this.gd&&a.Ob&&a.I();this.Sd=!0};m.prototype.cv=function(a){this.i.unshift(a);
this.Rh(0)};m.prototype.Ju=function(a,b,c){var g=a.qd();b=b.qd();za(this.i,g);g<b&&b--;c&&b++;b===this.i.length?this.i.push(a):this.i.splice(b,0,a);this.Rh(g<b?g:b)};m.prototype.Rh=function(a){-1===this.ae?this.ae=a:a<this.ae&&(this.ae=a);this.Sd=this.Cf=!0};m.prototype.dn=function(){if(this.Cf){-1===this.ae&&(this.ae=0);var a,b,c;if(this.gd)for(a=this.ae,b=this.i.length;a<b;++a)c=this.i[a],c.hd=a,this.ic.Gu(c.Ob);else for(a=this.ae,b=this.i.length;a<b;++a)this.i[a].hd=a;this.Cf=!1;this.ae=-1}};m.prototype.Xb=
function(a){return this.Tt()*(this.b.Ec||a?this.b.Fg:1)};m.prototype.Tt=function(){return(this.scale*this.Ua.scale-1)*this.jd+1};m.prototype.Sa=function(){return this.Ue?0:Ga(this.Ua.k+this.k)};var c=[],f=[],l=[];m.prototype.qo=function(){this.dn();this.ic.Oj(this.Ba,this.Ca,this.Ka,this.Ja,l);if(!l.length)return t();if(1===l.length){var a=t();Aa(a,l[0]);l.length=0;return a}for(var b=!0;1<l.length;){for(var a=l,c=void 0,g=void 0,r=void 0,m=void 0,k=void 0,c=0,g=a.length;c<g-1;c+=2){var r=a[c],m=a[c+
1],k=t(),p=r,u=m,d=k,s=0,q=0,P=0,R=p.length,I=u.length,A=void 0,L=void 0;for(d.length=R+I;s<R&&q<I;++P)A=p[s],L=u[q],A.hd<L.hd?(d[P]=A,++s):(d[P]=L,++q);for(;s<R;++s,++P)d[P]=p[s];for(;q<I;++q,++P)d[P]=u[q];b||(h(r),h(m));f.push(k)}1===g%2&&(b?(r=t(),Aa(r,a[g-1]),f.push(r)):f.push(a[g-1]));Aa(a,f);f.length=0;b=!1}a=l[0];l.length=0;return a};m.prototype.Dc=function(a){this.He=this.Zk||1!==this.opacity||0!==this.Gb;var b=this.b.canvas,c=a,g=!1;this.He&&(this.b.lj||(this.b.lj=document.createElement("canvas"),
b=this.b.lj,b.width=this.b.W,b.height=this.b.V,this.b.Po=b.getContext("2d"),g=!0),b=this.b.lj,c=this.b.Po,b.width!==this.b.W&&(b.width=this.b.W,g=!0),b.height!==this.b.V&&(b.height=this.b.V,g=!0),g&&(c.webkitImageSmoothingEnabled=this.b.ja,c.mozImageSmoothingEnabled=this.b.ja,c.msImageSmoothingEnabled=this.b.ja,c.imageSmoothingEnabled=this.b.ja),this.Yd&&c.clearRect(0,0,this.b.W,this.b.V));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.Yd||(c.fillStyle="rgb("+this.je[0]+","+this.je[1]+
","+this.je[2]+")",c.fillRect(0,0,this.b.W,this.b.V));c.save();this.Ue=!0;var g=this.Tb(0,0,!0,!0),f=this.Tb(0,0,!1,!0);this.Ue=!1;this.b.vd&&(g=Math.round(g),f=Math.round(f));this.ym(g,f,c);var l=this.Xb();c.scale(l,l);c.translate(-g,-f);this.gd?(this.Ac.left=this.ic.mc(this.Ba),this.Ac.top=this.ic.nc(this.Ca),this.Ac.right=this.ic.mc(this.Ka),this.Ac.bottom=this.ic.nc(this.Ja),this.Sd||!this.Ac.Bi(this.fj)?(h(this.ag),g=this.qo(),this.Sd=!1,this.fj.Mg(this.Ac)):g=this.ag):g=this.i;for(var m,p=null,
f=0,l=g.length;f<l;++f)m=g[f],m!==p&&(this.Vs(m,c),p=m);this.gd&&(this.ag=g);c.restore();this.He&&(a.globalCompositeOperation=this.Lg,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};m.prototype.Vs=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.ya();var c=a.Aa;c.right<this.Ba||c.bottom<this.Ca||c.left>this.Ka||c.top>this.Ja||(b.globalCompositeOperation=a.Lg,a.Dc(b))}};m.prototype.cn=function(){this.Ue=!0;var a=this.Tb(0,0,!0,!0),b=this.Tb(0,0,!1,!0);this.Ue=!1;this.b.vd&&(a=Math.round(a),
b=Math.round(b));this.ym(a,b,null)};m.prototype.ym=function(a,b,c){var g=this.Xb();this.Ba=a;this.Ca=b;this.Ka=a+1/g*this.b.W;this.Ja=b+1/g*this.b.V;a=this.Sa();0!==a&&(c&&(c.translate(this.b.W/2,this.b.V/2),c.rotate(-a),c.translate(this.b.W/-2,this.b.V/-2)),this.Xd.set(this.Ba,this.Ca,this.Ka,this.Ja),this.Xd.offset((this.Ba+this.Ka)/-2,(this.Ca+this.Ja)/-2),this.mq.Xp(this.Xd,a),this.mq.Jn(this.Xd),this.Xd.offset((this.Ba+this.Ka)/2,(this.Ca+this.Ja)/2),this.Ba=this.Xd.left,this.Ca=this.Xd.top,
this.Ka=this.Xd.right,this.Ja=this.Xd.bottom)};m.prototype.Vb=function(a){var b=0,c=0;if(this.He=this.Zk||1!==this.opacity||0<this.ga.length||0!==this.Gb){this.b.uc||(this.b.uc=a.Gd(this.b.W,this.b.V,this.b.ja));if(this.b.uc.Hg!==this.b.W||this.b.uc.Gg!==this.b.V)a.deleteTexture(this.b.uc),this.b.uc=a.Gd(this.b.W,this.b.V,this.b.ja);a.xd(this.b.uc);this.Yd&&a.clear(0,0,0,0)}this.Yd||a.clear(this.je[0]/255,this.je[1]/255,this.je[2]/255,1);this.Ue=!0;var g=this.Tb(0,0,!0,!0),b=this.Tb(0,0,!1,!0);this.Ue=
!1;this.b.vd&&(g=Math.round(g),b=Math.round(b));this.ym(g,b,null);g=this.Xb();a.wd();a.scale(g,g);a.zm(-this.Sa());a.translate((this.Ba+this.Ka)/-2,(this.Ca+this.Ja)/-2);a.Bd();this.gd?(this.Ac.left=this.ic.mc(this.Ba),this.Ac.top=this.ic.nc(this.Ca),this.Ac.right=this.ic.mc(this.Ka),this.Ac.bottom=this.ic.nc(this.Ja),this.Sd||!this.Ac.Bi(this.fj)?(h(this.ag),b=this.qo(),this.Sd=!1,this.fj.Mg(this.Ac)):b=this.ag):b=this.i;var f,l,m=null,c=0;for(f=b.length;c<f;++c)l=b[c],l!==m&&(this.Ws(b[c],a),m=
l);this.gd&&(this.ag=b);this.He&&(b=this.ga.length?this.ga[0].ub:0,c=this.ga.length?this.ga[0].index:0,0===this.ga.length||1===this.ga.length&&!a.qm(b)&&1===this.opacity?(1===this.ga.length?(a.zd(b),a.qg(this.Ua.Wg(),1/this.b.W,1/this.b.V,0,0,1,1,g,this.Sa(),this.Ba,this.Ca,(this.Ba+this.Ka)/2,(this.Ca+this.Ja)/2,this.Ha[c]),a.Mj(b)&&(this.b.Z=!0)):a.zd(0),a.xd(this.Ua.Wg()),a.vf(this.opacity),a.jc(this.b.uc),a.Ie(this.zb,this.xb),a.wd(),a.Bd(),g=this.b.W/2,b=this.b.V/2,a.Nh(-g,b,g,b,g,-b,-g,-b),
a.jc(null)):this.Ua.wm(a,this,null,this.Ua.Wg()))};m.prototype.Ws=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.ya();var c=a.Aa;c.right<this.Ba||c.bottom<this.Ca||c.left>this.Ka||c.top>this.Ja||(a.zq?this.Xs(a,b):(b.zd(0),b.Ie(a.zb,a.xb),a.Vb(b)))}};m.prototype.Xs=function(a,b){var c=a.ga[0].ub,g=a.ga[0].index,f=this.Xb();if(1!==a.ga.length||b.qm(c)||b.gv(c)||(a.k||a.m.Sa())&&b.Jh(c)||1!==a.opacity||a.type.Ga.kp)this.Ua.wm(b,this,a,this.He?this.b.uc:this.Ua.Wg()),b.wd(),b.scale(f,f),b.zm(-this.Sa()),
b.translate((this.Ba+this.Ka)/-2,(this.Ca+this.Ja)/-2),b.Bd();else{b.zd(c);b.Ie(a.zb,a.xb);b.Mj(c)&&(this.b.Z=!0);var l=0,h=0,p=0,u=0;b.Jh(c)&&(c=a.Aa,l=this.Fa(c.left,c.top,!0,!0),h=this.Fa(c.left,c.top,!1,!0),p=this.Fa(c.right,c.bottom,!0,!0),c=this.Fa(c.right,c.bottom,!1,!0),l/=windowWidth,h=1-h/windowHeight,p/=windowWidth,u=1-c/windowHeight);b.qg(this.He?this.b.uc:this.Ua.Wg(),1/a.width,1/a.height,l,h,p,u,f,this.Sa(),this.Ba,this.Ca,(this.Ba+this.Ka)/2,(this.Ca+this.Ja)/2,a.Ha[g]);a.Vb(b)}};m.prototype.Tb=
function(a,b,c,g){var f=this.b.devicePixelRatio;this.b.gf&&(a*=f,b*=f);var f=this.b.Bp,l=this.b.Cp,f=(this.Ua.scrollX-f)*this.Lc+f,l=(this.Ua.scrollY-l)*this.Mc+l,h=f,p=l,u=1/this.Xb(!g);g?(h-=this.b.W*u/2,p-=this.b.V*u/2):(h-=this.b.width*u/2,p-=this.b.height*u/2);h+=a*u;p+=b*u;b=this.Sa();0!==b&&(h-=f,p-=l,a=Math.cos(b),b=Math.sin(b),g=h*a-p*b,p=p*a+h*b,h=g+f,p+=l);return c?h:p};m.prototype.Fa=function(a,b,c,g){var f=this.b.Bp,l=this.b.Cp,h=(this.Ua.scrollX-f)*this.Lc+f,p=(this.Ua.scrollY-l)*this.Mc+
l,l=h,f=p,u=this.Sa();if(0!==u){a-=h;b-=p;var d=Math.cos(-u),u=Math.sin(-u),m=a*d-b*u;b=b*d+a*u;a=m+h;b+=p}h=1/this.Xb(!g);g?(l-=this.b.W*h/2,f-=this.b.V*h/2):(l-=this.b.width*h/2,f-=this.b.height*h/2);l=(a-l)/h;f=(b-f)/h;a=this.b.devicePixelRatio;this.b.gf&&!g&&(l/=a,f/=a);return c?l:f};m.prototype.gb=function(){var a,b,c,g={s:this.scale,a:this.k,vl:this.Ba,vt:this.Ca,vr:this.Ka,vb:this.Ja,v:this.visible,bc:this.je,t:this.Yd,px:this.Lc,py:this.Mc,o:this.opacity,zr:this.jd,fx:[],cg:this.Ng,instances:[]};
a=0;for(b=this.P.length;a<b;a++)c=this.P[a],g.fx.push({name:c.name,active:c.kb,params:this.Ha[c.index]});return g};m.prototype.sb=function(a){var b,c,g;this.scale=a.s;this.k=a.a;this.Ba=a.vl;this.Ca=a.vt;this.Ka=a.vr;this.Ja=a.vb;this.visible=a.v;this.je=a.bc;this.Yd=a.t;this.Lc=a.px;this.Mc=a.py;this.opacity=a.o;this.jd=a.zr;this.Ng=a.cg||[];Aa(this.tc,this.dq);var f=new da;b=0;for(g=this.Ng.length;b<g;++b)f.add(this.Ng[b]);c=b=0;for(g=this.tc.length;b<g;++b)f.contains(this.tc[b][2])||(this.tc[c]=
this.tc[b],++c);this.tc.length=c;c=a.fx;b=0;for(g=c.length;b<g;b++)if(a=this.el(c[b].name))a.kb=c[b].active,this.Ha[a.index]=c[b].params;this.Zd();this.i.sort(q);this.Cf=!0};Rb=m})();
(function(){function k(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 q(a,b){return a.index-b.index}function m(a){var b,d,c,g;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(q);a.length>=r.length&&(r.length=a.length+1);r[a.length]||(r[a.length]=[]);g=r[a.length];b=0;for(d=g.length;b<d;b++)if(c=g[b],k(a,c))return c;g.push(a);return a}
function t(a,b){this.b=a;this.pq={};this.$n={};this.ql=!1;this.vo=new da;this.Pk=[];this.yk=[];this.name=b[0];var d=b[1];this.oe=[];var c,g;c=0;for(g=d.length;c<g;c++)this.xo(d[c],null,this.oe)}function h(a){this.type=a;this.i=[];this.ba=[];this.pa=!0}function a(a,b,d){this.sheet=a;this.parent=b;this.b=a.b;this.wa=[];this.Je=[];this.uo=this.hk=this.Wm=this.ul=this.group=this.Nm=!1;this.Za=[];this.wc=[];this.Pc=[];this.Yg="";this.Rf=this.ul=this.group=!1;this.oi=null;d[1]&&(this.Yg=d[1][1].toLowerCase(),
this.group=!0,this.ul=!!d[1][0],this.oi=[],this.Rf=this.ul,this.b.If.push(this),this.b.Zg[this.Yg]=this);this.Kc=d[2];this.aa=d[4];this.group||(this.b.In[this.aa.toString()]=this);var c=d[5];a=0;for(b=c.length;a<b;a++){var g=new Sb(this,c[a]);g.index=a;this.Za.push(g);this.En(g.type)}c=d[6];a=0;for(b=c.length;a<b;a++)g=new Tb(this,c[a]),g.index=a,this.wc.push(g);if(8===d.length)for(d=d[7],a=0,b=d.length;a<b;a++)this.sheet.xo(d[a],this,this.Pc);this.$i=!1;this.Za.length&&(this.$i=null==this.Za[0].type&&
this.Za[0].rb==X.prototype.n.pn)}function b(a,b){var d,c,g;if(a&&(-1===b.indexOf(a)&&b.push(a),a.cc))for(d=0,c=a.Ub.length;d<c;d++)g=a.Ub[d],a!==g&&-1===b.indexOf(g)&&b.push(g)}function c(a,b){this.pc=a;this.sheet=a.sheet;this.b=a.b;this.U=[];this.Ia=[];this.X={};this.index=-1;this.Cg=!1;this.rb=this.b.be(b[1]);this.trigger=0<b[3];this.Zn=2===b[3];this.rd=b[4];this.Wi=b[5];this.Du=b[6];this.aa=b[7];this.b.Mf[this.aa.toString()]=this;-1===b[0]?(this.type=null,this.Va=this.Bm,this.Re=null,this.Tc=-1):
(this.type=this.b.B[b[0]],this.Va=this.Du?this.rv:this.Am,b[2]?(this.Re=this.type.Ni(b[2]),this.Tc=this.type.cl(b[2])):(this.Re=null,this.Tc=-1),this.pc.parent&&this.pc.parent.Wj());this.Zn&&(this.Va=this.sv);if(10===b.length){var d,c,g=b[9];d=0;for(c=g.length;d<c;d++){var f=new Ub(this,g[d]);this.U.push(f)}this.Ia.length=g.length}}function f(a,b){this.pc=a;this.sheet=a.sheet;this.b=a.b;this.U=[];this.Ia=[];this.X={};this.index=-1;this.Cg=!1;this.rb=this.b.be(b[1]);-1===b[0]?(this.type=null,this.Va=
this.Bm,this.Re=null,this.Tc=-1):(this.type=this.b.B[b[0]],this.Va=this.Am,b[2]?(this.Re=this.type.Ni(b[2]),this.Tc=this.type.cl(b[2])):(this.Re=null,this.Tc=-1));this.aa=b[3];this.b.Hf[this.aa.toString()]=this;if(6===b.length){var d,c,g=b[5];d=0;for(c=g.length;d<c;d++){var f=new Ub(this,g[d]);this.U.push(f)}this.Ia.length=g.length}}function l(){G++;v.length===G&&v.push(new Vb);return v[G]}function e(a,b){this.za=a;this.pc=a.pc;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.nd=null;this.Wd=0;this.get=
null;this.Qn=0;this.Ua=null;this.key=0;this.object=null;this.index=0;this.Zh=this.xf=this.Zh=this.xf=this.ao=this.We=this.$h=null;this.Qc=!1;var d,c,g;switch(b[0]){case 0:case 7:this.nd=new Wb(this,b[1]);this.Wd=0;this.get=this.du;break;case 1:this.nd=new Wb(this,b[1]);this.Wd=0;this.get=this.eu;break;case 5:this.nd=new Wb(this,b[1]);this.Wd=0;this.get=this.iu;break;case 3:case 8:this.Qn=b[1];this.get=this.bu;break;case 6:this.Ua=this.b.Ol[b[1]];this.get=this.ju;break;case 9:this.key=b[1];this.get=
this.hu;break;case 4:this.object=this.b.B[b[1]];this.get=this.ku;this.pc.En(this.object);this.za instanceof Tb?this.pc.Wj():this.pc.parent&&this.pc.parent.Wj();break;case 10:this.index=b[1];a.type.M?(this.get=this.fu,this.Qc=!0):this.get=this.gu;break;case 11:this.$h=b[1];this.We=null;this.get=this.cu;break;case 2:case 12:this.ao=b[1];this.get=this.au;break;case 13:for(this.get=this.lu,this.xf=[],this.Zh=[],d=1,c=b.length;d<c;d++)g=new Ub(this.za,b[d]),this.xf.push(g),this.Zh.push(0)}}function n(a,
b,d){this.sheet=a;this.parent=b;this.b=a.b;this.wa=[];this.name=d[1];this.ai=d[2];this.tl=d[3];this.kh=!!d[4];this.Zi=!!d[5];this.aa=d[6];this.b.Ag[this.aa.toString()]=this;this.data=this.tl;this.parent?(this.pf=this.kh||this.Zi?-1:this.b.Cv++,this.b.qs.push(this)):(this.pf=-1,this.b.os.push(this))}function y(a,b,d){this.sheet=a;this.parent=b;this.b=a.b;this.wa=[];this.bh=null;this.ru=d[1];this.kb=!0}function g(){this.gq=[];this.reset(null)}var r=[];t.prototype.toString=function(){return this.name};
t.prototype.xo=function(a,b,d){switch(a[0]){case 0:a=new Xb(this,b,a);if(a.Kc)for(d.push(a),d=0,b=a.Za.length;d<b;d++)a.Za[d].trigger&&this.yo(a,d);else a.Io()?this.yo(a,0):d.push(a);break;case 1:a=new Ob(this,b,a);d.push(a);break;case 2:a=new Yb(this,b,a),d.push(a)}};t.prototype.Na=function(){var a,b;a=0;for(b=this.oe.length;a<b;a++)this.oe[a].Na(a<b-1&&this.oe[a+1].$i)};t.prototype.an=function(){this.Pk.length=0;this.yk.length=0;this.Dn(this);this.yk.length=0};t.prototype.Dn=function(a){var b,d,
c,g,f=a.Pk,e=a.yk,l=this.vo.$d();b=0;for(d=l.length;b<d;++b)c=l[b],g=c.bh,!c.kb||a===g||-1<e.indexOf(g)||(e.push(g),g.Dn(a),f.push(g))};t.prototype.Va=function(a){this.b.Pw||(this.ql=!0,a||(this.b.El=!0));var b,d;b=0;for(d=this.oe.length;b<d;b++){var c=this.oe[b];c.Va();this.b.Ik(c.wa);this.b.te&&this.b.wb()}a||(this.b.El=!1)};t.prototype.yo=function(a,b){a.Kc||this.b.kk.push(a);var d,c,g=a.Za[b],f;f=g.type?g.type.name:"system";var e=(d=g.Zn)?this.$n:this.pq;e[f]||(e[f]=[]);f=e[f];e=g.rb;if(d){if(g.U.length&&
(g=g.U[0],1===g.type&&2===g.nd.type)){g=g.nd.value.toLowerCase();d=0;for(c=f.length;d<c;d++)if(f[d].method==e){d=f[d].Rg;d[g]?d[g].push([a,b]):d[g]=[[a,b]];return}d={};d[g]=[[a,b]];f.push({method:e,Rg:d})}}else{d=0;for(c=f.length;d<c;d++)if(f[d].method==e){f[d].Rg.push([a,b]);return}Z&&e===Z.prototype.n.Ff?f.unshift({method:e,Rg:[[a,b]]}):f.push({method:e,Rg:[[a,b]]})}};Eb=t;h.prototype.pl=function(){return this.pa?this.type.i.length:this.i.length};h.prototype.Fc=function(){return this.pa?this.type.i:
this.i};h.prototype.Ih=function(a){a&&(a.b.lb().qb.Kc?(this.pa&&(this.i.length=0,Aa(this.ba,a.type.i),this.pa=!1),a=this.ba.indexOf(a),-1!==a&&(this.i.push(this.ba[a]),this.ba.splice(a,1))):(this.pa=!1,this.i.length=1,this.i[0]=a))};mb=h;window._c2hh_="F1F63E780E7867A12F1395773AF34A032A8E6E81";a.prototype.Na=function(a){var b,d=this.parent;if(this.group)for(this.hk=!0;d;){if(!d.group){this.hk=!1;break}d=d.parent}this.Wm=!this.Io()&&(!this.parent||this.parent.group&&this.parent.hk);this.uo=!!a;this.Je=
this.wa.slice(0);for(d=this.parent;d;){a=0;for(b=d.wa.length;a<b;a++)this.ls(d.wa[a]);d=d.parent}this.wa=m(this.wa);this.Je=m(this.Je);a=0;for(b=this.Za.length;a<b;a++)this.Za[a].Na();a=0;for(b=this.wc.length;a<b;a++)this.wc[a].Na();a=0;for(b=this.Pc.length;a<b;a++)this.Pc[a].Na(a<b-1&&this.Pc[a+1].$i)};a.prototype.wv=function(a){if(this.Rf!==!!a){this.Rf=!!a;var b;a=0;for(b=this.oi.length;a<b;++a)this.oi[a].vq();0<b&&this.b.ua.Ve&&this.b.ua.Ve.an()}};a.prototype.En=function(a){b(a,this.wa)};a.prototype.ls=
function(a){b(a,this.Je)};a.prototype.Wj=function(){this.Nm=!0;this.parent&&this.parent.Wj()};a.prototype.Io=function(){return this.Za.length?this.Za[0].trigger:!1};a.prototype.Va=function(){var a,b=!1,d,c=this.b,g=this.b.lb();g.qb=this;var f=this.Za;this.$i||(g.Tk=!1);if(this.Kc){0===f.length&&(b=!0);g.Qa=0;for(a=f.length;g.Qa<a;g.Qa++)f[g.Qa].trigger||(d=f[g.Qa].Va())&&(b=!0);(g.lf=b)&&this.Tj()}else{g.Qa=0;for(a=f.length;g.Qa<a;g.Qa++)if(d=f[g.Qa].Va(),!d){g.lf=!1;this.Wm&&c.te&&c.wb();return}g.lf=
!0;this.Tj()}this.$s(g)};a.prototype.$s=function(a){a.lf&&this.uo&&(a.Tk=!0);this.Wm&&this.b.te&&this.b.wb()};a.prototype.pv=function(a){this.b.lb().qb=this;this.Za[a].Va()&&(this.Tj(),this.b.lb().lf=!0)};a.prototype.Tj=function(){var a=this.b.lb(),b;a.oc=0;for(b=this.wc.length;a.oc<b;a.oc++)if(this.wc[a.oc].Va())return;this.Rp()};a.prototype.nv=function(){var a=this.b.lb(),b;for(b=this.wc.length;a.oc<b;a.oc++)if(this.wc[a.oc].Va())return;this.Rp()};a.prototype.Rp=function(){if(this.Pc.length){var a,
b,d,g,c=this.Pc.length-1;this.b.Nj(this);if(this.Nm)for(a=0,b=this.Pc.length;a<b;a++)d=this.Pc[a],(g=!this.hk||!this.group&&a<c)&&this.b.Mh(d.wa),d.Va(),g?this.b.Fe(d.wa):this.b.Ik(d.wa);else for(a=0,b=this.Pc.length;a<b;a++)this.Pc[a].Va();this.b.Jj()}};a.prototype.qv=function(){var a=this.b.lb();a.qb=this;var b=!1,d;a.Qa=0;for(d=this.Za.length;a.Qa<d;a.Qa++)if(this.Za[a.Qa].Va())b=!0;else if(!this.Kc)return!1;return this.Kc?b:!0};a.prototype.Rj=function(){this.b.Xe++;var a=this.b.lb().Qa,b=this.b.Nj(this);
if(!this.Kc)for(b.Qa=a+1,a=this.Za.length;b.Qa<a;b.Qa++)if(!this.Za[b.Qa].Va()){this.b.Jj();return}this.Tj();this.b.Jj()};a.prototype.yu=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.Za[b].type===a.type)return!1;return!0};Xb=a;c.prototype.Na=function(){var a,b,d;a=0;for(b=this.U.length;a<b;a++)d=this.U[a],d.Na(),d.Qc&&(this.Cg=!0)};c.prototype.sv=function(){return!0};c.prototype.Bm=function(){var a,b;a=0;for(b=this.U.length;a<b;a++)this.Ia[a]=this.U[a].get();return Ua(this.rb.apply(this.b.Ad,
this.Ia),this.Wi)};c.prototype.rv=function(){var a,b;a=0;for(b=this.U.length;a<b;a++)this.Ia[a]=this.U[a].get();a=this.rb.apply(this.Re?this.Re:this.type,this.Ia);this.type.he();return a};c.prototype.Am=function(){var a,b,d,g,c,f,e,l,h=this.type,r=h.da(),n=this.pc.Kc&&!this.trigger;b=0;var m=h.cc,k=h.M,q=h.Ld,v=this.Tc,t=-1<v,G=this.Cg,y=this.U,z=this.Ia,O=this.Wi,E=this.rb,K;if(G)for(b=0,c=y.length;b<c;++b)f=y[b],f.Qc||(z[b]=f.get(0));else for(b=0,c=y.length;b<c;++b)z[b]=y[b].get(0);if(r.pa){r.i.length=
0;r.ba.length=0;K=h.i;a=0;for(g=K.length;a<g;++a){l=K[a];if(G)for(b=0,c=y.length;b<c;++b)f=y[b],f.Qc&&(z[b]=f.get(a));t?(b=0,k&&(b=l.type.Pf[q]),b=E.apply(l.R[v+b],z)):b=E.apply(l,z);(e=Ua(b,O))?r.i.push(l):n&&r.ba.push(l)}h.finish&&h.finish(!0);r.pa=!1;h.he();return r.pl()}d=0;K=(e=n&&!this.pc.yu(this))?r.ba:r.i;var H=!1;a=0;for(g=K.length;a<g;++a){l=K[a];if(G)for(b=0,c=y.length;b<c;++b)f=y[b],f.Qc&&(z[b]=f.get(a));t?(b=0,k&&(b=l.type.Pf[q]),b=E.apply(l.R[v+b],z)):b=E.apply(l,z);if(Ua(b,O))if(H=
!0,e){if(r.i.push(l),m)for(b=0,c=l.siblings.length;b<c;b++)f=l.siblings[b],f.type.da().i.push(f)}else{K[d]=l;if(m)for(b=0,c=l.siblings.length;b<c;b++)f=l.siblings[b],f.type.da().i[d]=f;d++}else if(e){K[d]=l;if(m)for(b=0,c=l.siblings.length;b<c;b++)f=l.siblings[b],f.type.da().ba[d]=f;d++}else if(n&&(r.ba.push(l),m))for(b=0,c=l.siblings.length;b<c;b++)f=l.siblings[b],f.type.da().ba.push(f)}K.length=d;if(m)for(k=h.Ub,a=0,g=k.length;a<g;a++)l=k[a].da(),e?l.ba.length=d:l.i.length=d;d=H;if(e&&!H)for(a=
0,g=r.i.length;a<g;a++){l=r.i[a];if(G)for(b=0,c=y.length;b<c;b++)f=y[b],f.Qc&&(z[b]=f.get(a));b=t?E.apply(l.R[v],z):E.apply(l,z);if(Ua(b,O)){H=!0;break}}h.finish&&h.finish(d||n);return n?H:r.pl()};Sb=c;f.prototype.Na=function(){var a,b,d;a=0;for(b=this.U.length;a<b;a++)d=this.U[a],d.Na(),d.Qc&&(this.Cg=!0)};f.prototype.Bm=function(){var a=this.b,b,d,g=this.U,c=this.Ia;b=0;for(d=g.length;b<d;++b)c[b]=g[b].get();return this.rb.apply(a.Ad,c)};f.prototype.Am=function(){var a=this.type,b=this.Tc,d=a.Ld,
g=this.Cg,c=this.U,f=this.Ia,e=this.rb,l=a.da().Fc(),a=a.M,h=-1<b,r,n,m,k,q,v;if(g)for(n=0,k=c.length;n<k;++n)q=c[n],q.Qc||(f[n]=q.get(0));else for(n=0,k=c.length;n<k;++n)f[n]=c[n].get(0);r=0;for(m=l.length;r<m;++r){v=l[r];if(g)for(n=0,k=c.length;n<k;++n)q=c[n],q.Qc&&(f[n]=q.get(r));h?(n=0,a&&(n=v.type.Pf[d]),e.apply(v.R[b+n],f)):e.apply(v,f)}return!1};Tb=f;var v=[],G=-1;e.prototype.Na=function(){var a,b;if(11===this.type)this.We=this.b.lo(this.$h,this.pc.parent);else if(13===this.type)for(a=0,b=
this.xf.length;a<b;a++)this.xf[a].Na();this.nd&&this.nd.Na()};e.prototype.Hu=function(a){this.Qc||!a||a.Ga.Zj||(this.Qc=!0)};e.prototype.Vp=function(){this.Qc=!0};e.prototype.du=function(a){this.Wd=a||0;a=l();this.nd.get(a);G--;return a.data};e.prototype.eu=function(a){this.Wd=a||0;a=l();this.nd.get(a);G--;return F(a.data)?a.data:""};e.prototype.ku=function(){return this.object};e.prototype.bu=function(){return this.Qn};e.prototype.iu=function(a){this.Wd=a||0;a=l();this.nd.get(a);G--;return a.bb()?
this.b.Vg(a.data):this.b.gl(a.data)};e.prototype.ju=function(){return this.Ua};e.prototype.hu=function(){return this.key};e.prototype.gu=function(){return this.index};e.prototype.fu=function(a){a=a||0;var b=this.za.type,d=null,d=b.da(),c=d.Fc();if(c.length)d=c[a%c.length].type;else if(d.ba.length)d=d.ba[a%d.ba.length].type;else if(b.i.length)d=b.i[a%b.i.length].type;else return 0;return this.index+d.Gi[b.Ld]};e.prototype.cu=function(){return this.We};e.prototype.au=function(){return this.ao};e.prototype.lu=
function(){var a,b;a=0;for(b=this.xf.length;a<b;a++)this.Zh[a]=this.xf[a].get();return this.Zh};Ub=e;n.prototype.Na=function(){this.wa=m(this.wa)};n.prototype.Vd=function(a){var b=this.b.jo();this.parent&&!this.kh&&b?(this.pf>=b.length&&(b.length=this.pf+1),b[this.pf]=a):this.data=a};n.prototype.$e=function(){var a=this.b.jo();return!this.parent||this.kh||!a||this.Zi?this.data:this.pf>=a.length||"undefined"===typeof a[this.pf]?this.tl:a[this.pf]};n.prototype.Va=function(){!this.parent||this.kh||this.Zi||
this.Vd(this.tl)};Ob=n;y.prototype.toString=function(){return"include:"+this.bh.toString()};y.prototype.Na=function(){this.bh=this.b.Vk[this.ru];this.sheet.vo.add(this);this.wa=m(this.wa);for(var a=this.parent;a;)a.group&&a.oi.push(this),a=a.parent;this.vq()};y.prototype.Va=function(){this.parent&&this.b.Lh(this.b.B);this.bh.ql||this.bh.Va(!0);this.parent&&this.b.Fe(this.b.B)};y.prototype.vq=function(){for(var a=this.parent;a;){if(a.group&&!a.Rf){this.kb=!1;return}a=a.parent}this.kb=!0};Yb=y;g.prototype.reset=
function(a){this.qb=a;this.oc=this.Qa=0;this.gq.length=0;this.Tk=this.lf=!1};g.prototype.Do=function(){return this.qb.Nm?!0:this.Qa<this.qb.Za.length-1?!!this.qb.wa.length:!1};Nb=g})();
(function(){function k(a,c){this.za=a;this.b=a.b;this.type=c[0];this.get=[this.ot,this.kt,this.Bt,this.Et,this.ct,this.Ct,this.ut,this.ht,this.tt,this.At,this.dt,this.zt,this.it,this.xt,this.pt,this.qt,this.lt,this.mt,this.gt,this.Dt,this.yt,this.nt,this.et,this.jt][this.type];var f=null;this.Qd=this.U=this.Ia=this.rb=this.fk=this.ob=this.first=this.value=null;this.Tc=-1;this.ue=null;this.Aq=-1;this.We=this.$h=null;this.pg=!1;switch(this.type){case 0:case 1:case 2:this.value=c[1];break;case 3:this.first=
new Wb(a,c[1]);break;case 18:this.first=new Wb(a,c[1]);this.ob=new Wb(a,c[2]);this.fk=new Wb(a,c[3]);break;case 19:this.rb=this.b.be(c[1]);this.rb!==X.prototype.ma.random&&this.rb!==X.prototype.ma.As||this.za.Vp();this.Ia=[];this.U=[];3===c.length?(f=c[2],this.Ia.length=f.length+1):this.Ia.length=1;break;case 20:this.Qd=this.b.B[c[1]];this.Tc=-1;this.rb=this.b.be(c[2]);this.pg=c[3];$b.Function&&this.rb===$b.Function.prototype.ma.Uv&&this.za.Vp();this.ue=c[4]?new Wb(a,c[4]):null;this.Ia=[];this.U=
[];6===c.length?(f=c[5],this.Ia.length=f.length+1):this.Ia.length=1;break;case 21:this.Qd=this.b.B[c[1]];this.pg=c[2];this.ue=c[3]?new Wb(a,c[3]):null;this.Aq=c[4];break;case 22:this.Qd=this.b.B[c[1]];this.Qd.Ni(c[2]);this.Tc=this.Qd.cl(c[2]);this.rb=this.b.be(c[3]);this.pg=c[4];this.ue=c[5]?new Wb(a,c[5]):null;this.Ia=[];this.U=[];7===c.length?(f=c[6],this.Ia.length=f.length+1):this.Ia.length=1;break;case 23:this.$h=c[1],this.We=null}this.za.Hu(this.Qd);4<=this.type&&17>=this.type&&(this.first=new Wb(a,
c[1]),this.ob=new Wb(a,c[2]));if(f){var l,e;l=0;for(e=f.length;l<e;l++)this.U.push(new Wb(a,f[l]))}}function q(){++a;h.length===a&&h.push(new Vb);return h[a]}function m(a,c,f){var l,e;l=0;for(e=a.length;l<e;++l)a[l].get(f),c[l+1]=f.data}function t(a,c){this.type=a||W.Ef;this.data=c||0;this.sf=null;this.type==W.Ef&&(this.data=Math.floor(this.data))}k.prototype.Na=function(){23===this.type&&(this.We=this.za.b.lo(this.$h,this.za.pc.parent));this.first&&this.first.Na();this.ob&&this.ob.Na();this.fk&&
this.fk.Na();this.ue&&this.ue.Na();if(this.U){var a,c;a=0;for(c=this.U.length;a<c;a++)this.U[a].Na()}};var h=[],a=-1;k.prototype.Dt=function(b){var c=this.U,f=this.Ia;f[0]=b;b=q();m(c,f,b);--a;this.rb.apply(this.b.Ad,f)};k.prototype.yt=function(b){var c=this.Qd,f=this.Ia,l=this.U,e=this.ue,h=this.rb,k=this.za.Wd,g=c.da(),r=g.Fc();if(!r.length)if(g.ba.length)r=g.ba;else{this.pg?b.yb(""):b.ra(0);return}f[0]=b;b.sf=c;b=q();m(l,f,b);e&&(e.get(b),b.bb()&&(k=b.data,r=c.i));--a;c=r.length;if(k>=c||k<=-c)k%=
c;0>k&&(k+=c);h.apply(r[k],f)};k.prototype.et=function(b){var c=this.Qd,f=this.Ia,l=this.U,e=this.ue,h=this.Tc,k=this.rb,g=this.za.Wd,r=c.da(),v=r.Fc();if(!v.length)if(r.ba.length)v=r.ba;else{this.pg?b.yb(""):b.ra(0);return}f[0]=b;b.sf=c;b=q();m(l,f,b);e&&(e.get(b),b.bb()&&(g=b.data,v=c.i));--a;l=v.length;if(g>=l||g<=-l)g%=l;0>g&&(g+=l);g=v[g];v=0;c.M&&(v=g.type.Pf[c.Ld]);k.apply(g.R[h+v],f)};k.prototype.nt=function(b){var c=this.ue,f=this.Qd,l=this.Aq,e=this.za.Wd,h=f.da(),m=h.Fc();if(!m.length)if(h.ba.length)m=
h.ba;else{this.pg?b.yb(""):b.ra(0);return}if(c){h=q();c.get(h);if(h.bb()){e=h.data;f=f.i;e%=f.length;0>e&&(e+=f.length);l=f[e].ab[l];F(l)?b.yb(l):b.K(l);--a;return}--a}c=m.length;if(e>=c||e<=-c)e%=c;0>e&&(e+=c);e=m[e];m=0;f.M&&(m=e.type.Gi[f.Ld]);l=e.ab[l+m];F(l)?b.yb(l):b.K(l)};k.prototype.ot=function(a){a.type=W.Ef;a.data=this.value};k.prototype.kt=function(a){a.type=W.Df;a.data=this.value};k.prototype.Bt=function(a){a.type=W.String;a.data=this.value};k.prototype.Et=function(a){this.first.get(a);
a.bb()&&(a.data=-a.data)};k.prototype.ct=function(b){this.first.get(b);var c=q();this.ob.get(c);b.bb()&&c.bb()&&(b.data+=c.data,c.Wf()&&b.eg());--a};k.prototype.Ct=function(b){this.first.get(b);var c=q();this.ob.get(c);b.bb()&&c.bb()&&(b.data-=c.data,c.Wf()&&b.eg());--a};k.prototype.ut=function(b){this.first.get(b);var c=q();this.ob.get(c);b.bb()&&c.bb()&&(b.data*=c.data,c.Wf()&&b.eg());--a};k.prototype.ht=function(b){this.first.get(b);var c=q();this.ob.get(c);b.bb()&&c.bb()&&(b.data/=c.data,b.eg());
--a};k.prototype.tt=function(b){this.first.get(b);var c=q();this.ob.get(c);b.bb()&&c.bb()&&(b.data%=c.data,c.Wf()&&b.eg());--a};k.prototype.At=function(b){this.first.get(b);var c=q();this.ob.get(c);b.bb()&&c.bb()&&(b.data=Math.pow(b.data,c.data),c.Wf()&&b.eg());--a};k.prototype.dt=function(b){this.first.get(b);var c=q();this.ob.get(c);b.bb()?c.aj()?b.yb(b.data.toString()+c.data):b.data&&c.data?b.ra(1):b.ra(0):b.aj()&&(b.data=c.aj()?b.data+c.data:b.data+(Math.round(1E10*c.data)/1E10).toString());--a};
k.prototype.zt=function(b){this.first.get(b);var c=q();this.ob.get(c);b.bb()&&c.bb()&&(b.data||c.data?b.ra(1):b.ra(0));--a};k.prototype.gt=function(a){this.first.get(a);a.data?this.ob.get(a):this.fk.get(a)};k.prototype.it=function(b){this.first.get(b);var c=q();this.ob.get(c);b.ra(b.data===c.data?1:0);--a};k.prototype.xt=function(b){this.first.get(b);var c=q();this.ob.get(c);b.ra(b.data!==c.data?1:0);--a};k.prototype.pt=function(b){this.first.get(b);var c=q();this.ob.get(c);b.ra(b.data<c.data?1:0);
--a};k.prototype.qt=function(b){this.first.get(b);var c=q();this.ob.get(c);b.ra(b.data<=c.data?1:0);--a};k.prototype.lt=function(b){this.first.get(b);var c=q();this.ob.get(c);b.ra(b.data>c.data?1:0);--a};k.prototype.mt=function(b){this.first.get(b);var c=q();this.ob.get(c);b.ra(b.data>=c.data?1:0);--a};k.prototype.jt=function(a){var c=this.We.$e();ia(c)?a.K(c):a.yb(c)};Wb=k;t.prototype.Wf=function(){return this.type===W.Df};t.prototype.bb=function(){return this.type===W.Ef||this.type===W.Df};t.prototype.aj=
function(){return this.type===W.String};t.prototype.eg=function(){this.Wf()||(this.aj()&&(this.data=parseFloat(this.data)),this.type=W.Df)};t.prototype.ra=function(a){this.type=W.Ef;this.data=Math.floor(a)};t.prototype.K=function(a){this.type=W.Df;this.data=a};t.prototype.yb=function(a){this.type=W.String;this.data=a};t.prototype.Av=function(a){ia(a)?(this.type=W.Df,this.data=a):F(a)?(this.type=W.String,this.data=a.toString()):(this.type=W.Ef,this.data=0)};Vb=t;W={Ef:0,Df:1,String:2}})();
function X(k){this.b=k;this.lc=[]}X.prototype.gb=function(){var k={},q,m,t,h,a,b,c,f;k.waits=[];var l=k.waits,e;q=0;for(m=this.lc.length;q<m;q++){b=this.lc[q];e={t:b.time,st:b.Bv,s:b.aq,ev:b.Qg.aa,sm:[],sols:{}};b.Qg.wc[b.oc]&&(e.act=b.Qg.wc[b.oc].aa);t=0;for(h=b.wa.length;t<h;t++)e.sm.push(b.wa[t].aa);for(a in b.kc)if(b.kc.hasOwnProperty(a)){c=this.b.B[parseInt(a,10)];f={sa:b.kc[a].Sp,insts:[]};t=0;for(h=b.kc[a].ff.length;t<h;t++)f.insts.push(b.kc[a].ff[t].uid);e.sols[c.aa.toString()]=f}l.push(e)}return k};
X.prototype.sb=function(k){k=k.waits;var q,m,t,h,a,b,c,f,l,e,n;q=this.lc.length=0;for(m=k.length;q<m;q++)if(b=k[q],f=this.b.In[b.ev.toString()]){l=-1;t=0;for(h=f.wc.length;t<h;t++)if(f.wc[t].aa===b.act){l=t;break}if(-1!==l){c={kc:{},wa:[],Un:!1};c.time=b.t;c.Bv=b.st||"";c.aq=!!b.s;c.Qg=f;c.oc=l;t=0;for(h=b.sm.length;t<h;t++)(f=this.b.Qi(b.sm[t]))&&c.wa.push(f);for(a in b.sols)if(b.sols.hasOwnProperty(a)&&(f=this.b.Qi(parseInt(a,10)))){l=b.sols[a];e={Sp:l.sa,ff:[]};t=0;for(h=l.insts.length;t<h;t++)(n=
this.b.Pi(l.insts[t]))&&e.ff.push(n);c.kc[f.index.toString()]=e}this.lc.push(c)}}};
(function(){function k(){}function q(){}function m(){}var t=X.prototype;k.prototype.xn=function(){return!0};k.prototype.tr=function(){return!0};k.prototype.Kq=function(a,b,c){return Zb(a,b,c)};k.prototype.Dr=function(a){var b=this.b.lb(),c=b.qb,h=b.Do(),b=this.b.Mp();if(h)for(h=0;h<a&&!b.Wa;h++)this.b.Mh(c.wa),b.index=h,c.Rj(),this.b.Fe(c.wa);else for(h=0;h<a&&!b.Wa;h++)b.index=h,c.Rj();this.b.Hp();return!1};var h=[],a=-1;k.prototype.Rq=function(b){var c=b.da();a++;h.length===a&&h.push([]);var e=
h[a];Aa(e,c.Fc());var n=this.b.lb(),m=n.qb,g=n.Do(),n=this.b.Mp(),r,k,q,p,t,d,s=b.cc;if(g)for(g=0,r=e.length;g<r&&!n.Wa;g++){this.b.Mh(m.wa);p=e[g];c=b.da();c.pa=!1;c.i.length=1;c.i[0]=p;if(s)for(k=0,q=p.siblings.length;k<q;k++)t=p.siblings[k],d=t.type.da(),d.pa=!1,d.i.length=1,d.i[0]=t;n.index=g;m.Rj();this.b.Fe(m.wa)}else for(c.pa=!1,c.i.length=1,g=0,r=e.length;g<r&&!n.Wa;g++){p=e[g];c.i[0]=p;if(s)for(k=0,q=p.siblings.length;k<q;k++)t=p.siblings[k],d=t.type.da(),d.pa=!1,d.i.length=1,d.i[0]=t;n.index=
g;m.Rj()}e.length=0;this.b.Hp();a--;return!1};k.prototype.Pq=function(a){var b=this.b.dl(),c=b.X.Every_lastTime||0,h=this.b.Nb.J;"undefined"===typeof b.X.Every_seconds&&(b.X.Every_seconds=a);var m=b.X.Every_seconds;if(h>=c+m)return b.X.Every_lastTime=c+m,h>=b.X.Every_lastTime+.04&&(b.X.Every_lastTime=h),b.X.Every_seconds=a,!0;h<c-.1&&(b.X.Every_lastTime=h);return!1};k.prototype.Mq=function(a,b,c){return Zb(a.$e(),b,c)};k.prototype.Wq=function(a){return(a=this.b.Zg[a.toLowerCase()])&&a.Rf};k.prototype.pn=
function(){var a=this.b.lb();return a.Tk?!1:!a.lf};k.prototype.zn=function(){return!0};k.prototype.nr=function(){return!0};k.prototype.vk=function(){return!0};k.prototype.yn=function(){return!0};k.prototype.tk=function(){return!0};k.prototype.Gq=function(a,b,c){return La(V(a),V(c))<=V(b)};k.prototype.Vq=function(a,b){return Na(V(a),V(b))};k.prototype.qn=function(a,b,c){a=Ja(a);b=Ja(b);c=Ja(c);return Na(c,b)?Na(a,b)&&!Na(a,c):!(!Na(a,b)&&Na(a,c))};t.n=new k;q.prototype.Sq=function(a){this.b.lh||this.b.Jg||
(this.b.Jg=a)};q.prototype.Tr=function(a,b){0===a.ai?ia(b)?a.Vd(b):a.Vd(parseFloat(b)):1===a.ai&&a.Vd(b.toString())};q.prototype.Eq=function(a,b){0===a.ai?ia(b)?a.Vd(a.$e()+b):a.Vd(a.$e()+parseFloat(b)):1===a.ai&&a.Vd(a.$e()+b.toString())};q.prototype.cs=function(a,b){0===a.ai&&(ia(b)?a.Vd(a.$e()-b):a.Vd(a.$e()-parseFloat(b)))};var b=[],c=[];q.prototype.as=function(){0>this.b.Dh||(this.b.ko().Wa=!0)};q.prototype.Gr=function(a){this.b.Uj=a};q.prototype.er=function(a){this.b.vh=a};t.A=new q;m.prototype["int"]=
function(a,b){F(b)?(a.ra(parseInt(b,10)),isNaN(a.data)&&(a.data=0)):a.ra(b)};m.prototype["float"]=function(a,b){F(b)?(a.K(parseFloat(b)),isNaN(a.data)&&(a.data=0)):a.K(b)};m.prototype.Fv=function(a,b){F(b)?a.yb(b):a.yb(b.toString())};m.prototype.random=function(a,b,c){void 0===c?a.K(Math.random()*b):a.K(Math.random()*(c-b)+b)};m.prototype.sqrt=function(a,b){a.K(Math.sqrt(b))};m.prototype.abs=function(a,b){a.K(Math.abs(b))};m.prototype.round=function(a,b){a.ra(Math.round(b))};m.prototype.floor=function(a,
b){a.ra(Math.floor(b))};m.prototype.ceil=function(a,b){a.ra(Math.ceil(b))};m.prototype.sin=function(a,b){a.K(Math.sin(V(b)))};m.prototype.cos=function(a,b){a.K(Math.cos(V(b)))};m.prototype.tan=function(a,b){a.K(Math.tan(V(b)))};m.prototype.asin=function(a,b){a.K(Ea(Math.asin(b)))};m.prototype.acos=function(a,b){a.K(Ea(Math.acos(b)))};m.prototype.atan=function(a,b){a.K(Ea(Math.atan(b)))};m.prototype.exp=function(a,b){a.K(Math.exp(b))};m.prototype.log10=function(a,b){a.K(Math.log(b)/Math.LN10)};m.prototype.max=
function(a){var b=arguments[1];"number"!==typeof b&&(b=0);var c,h,m;c=2;for(h=arguments.length;c<h;c++)m=arguments[c],"number"===typeof m&&b<m&&(b=m);a.K(b)};m.prototype.min=function(a){var b=arguments[1];"number"!==typeof b&&(b=0);var c,h,m;c=2;for(h=arguments.length;c<h;c++)m=arguments[c],"number"===typeof m&&b>m&&(b=m);a.K(b)};m.prototype.me=function(a){a.K(this.b.me)};m.prototype.Bf=function(a){a.K(this.b.Bf)};m.prototype.time=function(a){a.K(this.b.Nb.J)};m.prototype.fd=function(a){a.ra(this.b.fd)};
m.prototype.yj=function(a){a.ra(this.b.yj)};m.prototype.$k=function(a){a.ra(this.b.$k)};m.prototype.k=function(a,b,c,h,m){a.K(Ea(Ka(b,c,h,m)))};m.prototype.find=function(a,b,c){F(b)&&F(c)?a.ra(b.search(new RegExp(bb(c),"i"))):a.ra(-1)};m.prototype.left=function(a,b,c){a.yb(F(b)?b.substr(0,c):"")};m.prototype.right=function(a,b,c){a.yb(F(b)?b.substr(b.length-c):"")};m.prototype.replace=function(a,b,c,h){F(b)&&F(c)&&F(h)?a.yb(b.replace(new RegExp(bb(c),"gi"),h)):a.yb(F(b)?b:"")};m.prototype.trim=function(a,
b){a.yb(F(b)?b.trim():"")};m.prototype.As=function(a){var b=Q(Math.random()*(arguments.length-1));a.Av(arguments[b+1])};m.prototype.Kk=function(a){a.K(this.b.Kk/1E3)};m.prototype.sj=function(a){a.K(this.b.sj)};t.ma=new m;t.ov=function(){var a,h,e,n,m,g,r=this.b.lb();a=0;for(e=this.lc.length;a<e;a++){n=this.lc[a];if(-1===n.time){if(!n.aq)continue}else if(n.time>this.b.Nb.J)continue;r.qb=n.Qg;r.oc=n.oc;r.Qa=0;for(h in n.kc)n.kc.hasOwnProperty(h)&&(m=this.b.B[parseInt(h,10)].da(),g=n.kc[h],m.pa=g.Sp,
Aa(m.i,g.ff),m=g,m.ff.length=0,c.push(m));n.Qg.nv();this.b.Ik(n.wa);n.Un=!0}h=a=0;for(e=this.lc.length;a<e;a++)n=this.lc[a],this.lc[h]=n,n.Un?(Wa(n.kc),n.wa.length=0,b.push(n)):h++;this.lc.length=h}})();
(function(){lb=function(k,m){var t=k[1],h=k[3],a=k[4],b=k[5],c=k[6],f=k[7],l=k[8];m.n||(m.n={});m.A||(m.A={});m.ma||(m.ma={});var e=m.n,n=m.A,y=m.ma;h&&(e.Nq=function(a,b){return Zb(this.x,a,b)},e.Yv=function(a,b){return Zb(this.y,a,b)},e.cw=function(){var a=this.m;this.ya();var b=this.Aa;return!(b.right<a.Ba||b.bottom<a.Ca||b.left>a.Ka||b.top>a.Ja)},e.dw=function(){this.ya();var a=this.Aa,b=this.b.ua;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},e.mw=function(a,b,c){var f=this.da(),
e=f.Fc();if(!e.length)return!1;var h=e[0],d=h,l=Ta(h.x,h.y,b,c),n,m,k;n=1;for(m=e.length;n<m;n++)if(h=e[n],k=Ta(h.x,h.y,b,c),0===a&&k<l||1===a&&k>l)l=k,d=h;f.Ih(d);return!0},n.Aw=function(a){this.x!==a&&(this.x=a,this.I())},n.Bw=function(a){this.y!==a&&(this.y=a,this.I())},n.Pr=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.I()},n.Qr=function(a,b){var c=a.Ut(this);if(c){var f;c.Ug?(f=c.Ug(b,!0),c=c.Ug(b,!1)):(f=c.x,c=c.y);if(this.x!==f||this.y!==c)this.x=f,this.y=c,this.I()}},n.ir=
function(a){0!==a&&(this.x+=Math.cos(this.k)*a,this.y+=Math.sin(this.k)*a,this.I())},n.hr=function(a,b){0!==b&&(this.x+=Math.cos(V(a))*b,this.y+=Math.sin(V(a))*b,this.I())},y.Bn=function(a){a.K(this.x)},y.Cn=function(a){a.K(this.y)},y.me=function(a){a.K(this.b.re(this))});a&&(e.Xv=function(a,b){return Zb(this.width,a,b)},e.Vv=function(a,b){return Zb(this.height,a,b)},n.Wr=function(a){this.width!==a&&(this.width=a,this.I())},n.ww=function(a){this.height!==a&&(this.height=a,this.I())},n.yw=function(a,
b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.I()},y.es=function(a){a.K(this.width)},y.Tq=function(a){a.K(this.height)},y.Rv=function(a){this.ya();a.K(this.Aa.left)},y.Tv=function(a){this.ya();a.K(this.Aa.top)},y.Sv=function(a){this.ya();a.K(this.Aa.right)},y.Qv=function(a){this.ya();a.K(this.Aa.bottom)});b&&(e.Gq=function(a,b){return La(this.k,V(b))<=V(a)},e.Vq=function(a){return Na(this.k,V(a))},e.qn=function(a,b){var c=Ja(a),f=Ja(b),e=Ga(this.k);return Na(f,c)?Na(e,c)&&
!Na(e,f):!(!Na(e,c)&&Na(e,f))},n.Hr=function(a){a=V(Fa(a));isNaN(a)||this.k===a||(this.k=a,this.I())},n.Er=function(a){0===a||isNaN(a)||(this.k+=V(a),this.k=Ga(this.k),this.I())},n.Fr=function(a){0===a||isNaN(a)||(this.k-=V(a),this.k=Ga(this.k),this.I())},n.qw=function(a,b){var c=Ma(this.k,V(b),V(a));isNaN(c)||this.k===c||(this.k=c,this.I())},n.rw=function(a,b,c){a=Ma(this.k,Math.atan2(c-this.y,b-this.x),V(a));isNaN(a)||this.k===a||(this.k=a,this.I())},n.zw=function(a,b){var c=Math.atan2(b-this.y,
a-this.x);isNaN(c)||this.k===c||(this.k=c,this.I())},y.Fq=function(a){a.K(Ia(this.k))});t||(e.nn=function(a,b,c){return Zb(this.ab[a],b,c)},e.aw=function(a){return this.ab[a]},e.nw=function(a,b){var c=this.da(),f=c.Fc();if(!f.length)return!1;var e=f[0],h=e,d=e.ab[b],l,n,m;l=1;for(n=f.length;l<n;l++)if(e=f[l],m=e.ab[b],0===a&&m<d||1===a&&m>d)d=m,h=e;c.Ih(h);return!0},e.lw=function(a){var b,c,f,e,h;if(this.b.dl().Wi){h=this.da();if(h.pa)for(h.pa=!1,h.i.length=0,h.ba.length=0,f=this.i,b=0,c=f.length;b<
c;b++)e=f[b],e.uid===a?h.ba.push(e):h.i.push(e);else{f=b=0;for(c=h.i.length;b<c;b++)e=h.i[b],h.i[f]=e,e.uid===a?h.ba.push(e):f++;h.i.length=f}this.he();return!!h.i.length}e=this.b.Pi(a);if(!e)return!1;h=this.da();if(!h.pa&&-1===h.i.indexOf(e))return!1;if(this.M)for(a=e.type.Ea,b=0,c=a.length;b<c;b++){if(a[b]===this)return h.Ih(e),this.he(),!0}else if(e.type===this)return h.Ih(e),this.he(),!0;return!1},e.di=function(){return!0},e.un=function(){return!0},n.Mr=function(a,b){var c=this.ab;ia(c[a])?c[a]=
ia(b)?b:parseFloat(b):F(c[a])&&(c[a]=F(b)?b:b.toString())},n.Dq=function(a,b){var c=this.ab;ia(c[a])?c[a]=ia(b)?c[a]+b:c[a]+parseFloat(b):F(c[a])&&(c[a]=F(b)?c[a]+b:c[a]+b.toString())},n.bs=function(a,b){var c=this.ab;ia(c[a])&&(c[a]=ia(b)?c[a]-b:c[a]-parseFloat(b))},n.sw=function(a,b){this.ab[a]=b?1:0},n.Cw=function(a){this.ab[a]=1-this.ab[a]},n.Oq=function(){this.b.kd(this)},n.dr||(n.dr=function(a){var b,c;try{b=JSON.parse(a)}catch(f){return}this.b.oj(this,b,!0);this.ee&&this.ee();if(this.R)for(a=
0,b=this.R.length;a<b;++a)c=this.R[a],c.ee&&c.ee()}),y.Zv=function(a){var b=a.sf.i.length,c,f,e;c=0;for(f=this.b.Uc.length;c<f;c++)e=this.b.Uc[c],a.sf.M?0<=e.type.Ea.indexOf(a.sf)&&b++:e.type===a.sf&&b++;a.ra(b)},y.pw=function(a){a.ra(a.sf.da().Fc().length)},y.Dw=function(a){a.ra(this.uid)},y.$v=function(a){a.ra(this.Xg())},y.Hq||(y.Hq=function(a){a.yb(JSON.stringify(this.b.Cm(this,!0)))}));c&&(e.ew=function(){return this.visible},n.An=function(a){!a!==!this.visible&&(this.visible=a,this.b.Z=!0)},
e.Wv=function(a,b){return Zb(hb(100*this.opacity),a,b)},n.xw=function(a){a/=100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.Z=!0)},y.Opacity=function(a){a.K(hb(100*this.opacity))});f&&(e.bw=function(a){return a?this.m===a:!1},e.ow=function(a){var b=this.da(),c=b.Fc();if(!c.length)return!1;var f=c[0],e=f,h,d;h=1;for(d=c.length;h<d;h++)if(f=c[h],0===a){if(f.m.index>e.m.index||f.m.index===e.m.index&&f.qd()>e.qd())e=f}else if(f.m.index<e.m.index||f.m.index===e.m.index&&f.qd()<e.qd())e=
f;b.Ih(e);return!0},n.iw=function(){var a=this.m,b=a.i;b.length&&b[b.length-1]===this||(a.ng(this,!1),a.Eg(this,!1),this.b.Z=!0)},n.hw=function(){var a=this.m,b=a.i;b.length&&b[0]===this||(a.ng(this,!1),a.cv(this),this.b.Z=!0)},n.jr=function(a){a&&a!=this.m&&(this.m.ng(this,!0),this.m=a,a.Eg(this,!0),this.b.Z=!0)},n.Fw=function(a,b){var c=0===a;if(b){var f=b.Pt(this);f&&f.uid!==this.uid&&(this.m.index!==f.m.index&&(this.m.ng(this,!0),this.m=f.m,f.m.Eg(this,!0)),this.m.Ju(this,f,c),this.b.Z=!0)}},
y.gw=function(a){a.ra(this.m.op)},y.fw=function(a){a.yb(this.m.name)},y.Ew=function(a){a.ra(this.qd())});l&&(n.uw=function(a,b){if(this.b.C){var c=this.type.fl(b);if(!(0>c)){var f=1===a;this.de[c]!==f&&(this.de[c]=f,this.Zd(),this.b.Z=!0)}}},n.vw=function(a,b,c){if(this.b.C){var f=this.type.fl(a);0>f||(a=this.type.P[f],f=this.Ha[f],b=Math.floor(b),0>b||b>=f.length||(1===this.b.C.Yt(a.ub,b)&&(c/=100),f[b]!==c&&(f[b]=c,a.kb&&(this.b.Z=!0))))}})};Fb=function(){this.Fk=this.ki=!0;this.type.ei=!0;this.b.Z=
!0;var k,m,t=this.Ck;k=0;for(m=t.length;k<m;++k)t[k](this);this.m.gd&&this.ya()};Gb=function(k){k&&this.Ck.push(k)};Ib=function(){if(this.ki){var k=this.Aa,m=this.Bb;k.set(this.x,this.y,this.x+this.width,this.y+this.height);k.offset(-this.Zb*this.width,-this.$b*this.height);this.k?(k.offset(-this.x,-this.y),m.Xp(k,this.k),m.offset(this.x,this.y),m.Jn(k)):m.tg(k);k.normalize();this.ki=!1;this.Mv()}};var k=new T(0,0,0,0);Jb=function(){if(this.m.gd){var q=this.m.ic,m=this.Aa;k.set(q.mc(m.left),q.nc(m.top),
q.mc(m.right),q.nc(m.bottom));this.Ob.Bi(k)||(this.Ob.right<this.Ob.left?q.update(this,null,k):q.update(this,this.Ob,k),this.Ob.Mg(k),this.m.Sd=!0)}};Kb=function(){if(this.Fk&&this.yc){this.ya();var q=this.type.Kg,m=this.Aa;k.set(q.mc(m.left),q.nc(m.top),q.mc(m.right),q.nc(m.bottom));this.xc.Bi(k)||(this.xc.right<this.xc.left?q.update(this,null,k):q.update(this,this.xc,k),this.xc.Mg(k),this.Fk=!1)}};Hb=function(k,m){return this.Aa.Cb(k,m)&&this.Bb.Cb(k,m)?this.ka&&!this.ka.Vf()?(this.ka.Kf(this.width,
this.height,this.k),this.ka.Cb(k-this.x,m-this.y)):!0:!1};Bb=function(){this.type.lk();return this.df};Lb=function(){this.m.dn();return this.hd};Mb=function(){this.ga.length=0;var k,m;k=0;for(m=this.de.length;k<m;k++)this.de[k]&&this.ga.push(this.type.P[k]);this.zq=!!this.ga.length};Cb=function(){return"Inst"+this.Lp};ob=function(k){if(k&&k.cc&&k.type!=this){var m,t,h;m=0;for(t=k.siblings.length;m<t;m++)if(h=k.siblings[m],h.type==this)return h}k=this.da().Fc();return k.length?k[0]:null};pb=function(k){var m=
this.da().Fc();return m.length?m[k.Xg()%m.length]:null};nb=function(){if(this.wg&&!this.M){var k,m;k=0;for(m=this.i.length;k<m;k++)this.i[k].df=k;var t=k,h=this.b.Uc;k=0;for(m=h.length;k<m;++k)h[k].type===this&&(h[k].df=t++);this.wg=!1}};zb=function(k){if(k<this.i.length)return this.i[k];k-=this.i.length;var m=this.b.Uc,t,h;t=0;for(h=m.length;t<h;++t)if(m[t].type===this){if(0===k)return m[t];--k}return null};qb=function(){return this.Ke[this.Id]};rb=function(){this.Id++;this.Id===this.Ke.length?this.Ke.push(new mb(this)):
this.Ke[this.Id].pa=!0};sb=function(){this.Id++;this.Id===this.Ke.length&&this.Ke.push(new mb(this));var k=this.Ke[this.Id],m=this.Ke[this.Id-1];m.pa?k.pa=!0:(k.pa=!1,Aa(k.i,m.i),Aa(k.ba,m.ba))};tb=function(){this.Id--};ub=function(k){var m,t,h,a,b,c=0;if(!this.M)for(m=0,t=this.Ea.length;m<t;m++)for(b=this.Ea[m],h=0,a=b.Pa.length;h<a;h++){if(k===b.Pa[h].name)return this.X.lastBehIndex=c,b.Pa[h];c++}m=0;for(t=this.Pa.length;m<t;m++){if(k===this.Pa[m].name)return this.X.lastBehIndex=c,this.Pa[m];c++}return null};
vb=function(k){return this.Ni(k)?this.X.lastBehIndex:-1};xb=function(k){var m,t;m=0;for(t=this.P.length;m<t;m++)if(this.P[m].name===k)return m;return-1};yb=function(){if(this.cc&&!this.M){var k,m,t,h,a,b,c;this.lk();b=this.da();var f=b.pa,l=(k=this.b.lb())&&k.qb&&k.qb.Kc;k=0;for(m=this.Ub.length;k<m;k++)if(a=this.Ub[k],a!==this&&(a.lk(),c=a.da(),c.pa=f,!f)){c.i.length=b.i.length;t=0;for(h=b.i.length;t<h;t++)c.i[t]=a.no(b.i[t].df);if(l)for(c.ba.length=b.ba.length,t=0,h=b.ba.length;t<h;t++)c.ba[t]=
a.no(b.ba[t].df)}}};Ab=function(){return"Type"+this.aa};Zb=function(k,m,t){if("undefined"===typeof k||"undefined"===typeof t)return!1;switch(m){case 0:return k===t;case 1:return k!==t;case 2:return k<t;case 3:return k<=t;case 4:return k>t;case 5:return k>=t;default:return!1}}})();
var hc={exclusion:{src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nuniform lowp sampler2D samplerBack;\nuniform mediump vec2 destStart;\nuniform mediump vec2 destEnd;\nvoid main(void)\n{\nlowp vec4 front = texture2D(samplerFront, vTex);\nlowp vec4 back = texture2D(samplerBack, mix(destStart, destEnd, vTex));\nfront.rgb = 1.0 - (((1.0 - back.rgb * front.a) * (1.0 - front.rgb)) + (back.rgb * front.a * front.rgb));\ngl_FragColor = front;\n}",Di:0,Ei:0,Mk:!0,Ak:!1,U:[]}};
function kc(k){this.b=k}
(function(){function k(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function q(a){a=a.toLowerCase();return U.hasOwnProperty(a)&&U[a].length?U[a][0].rc():x.destination}function m(){return x.createGain?x.createGain():x.createGainNode()}function t(a){return x.createDelay?x.createDelay(a):x.createDelayNode(a)}function h(a){a.start?a.start(0):a.noteOn(0)}function a(a,b,c){a.start?a.start(0,b):a.noteGrainOn(0,b,c-b)}function b(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}function c(a,
b,c,d,g,f){this.type="filter";this.$c=[a,b,c,d,g,f];this.ca=m();this.O=m();this.O.gain.value=f;this.L=m();this.L.gain.value=1-f;this.Ra=x.createBiquadFilter();this.Ra.type="number"===typeof this.Ra.type?a:xc[a];this.Ra.frequency.value=b;this.Ra.detune&&(this.Ra.detune.value=c);this.Ra.Q.value=d;this.Ra.gain.value=g;this.ca.connect(this.Ra);this.ca.connect(this.L);this.Ra.connect(this.O)}function f(a,b,c){this.type="delay";this.$c=[a,b,c];this.ca=m();this.O=m();this.O.gain.value=c;this.L=m();this.L.gain.value=
1-c;this.Eh=m();this.Cc=t(a);this.Cc.delayTime.value=a;this.xi=m();this.xi.gain.value=b;this.ca.connect(this.Eh);this.ca.connect(this.L);this.Eh.connect(this.O);this.Eh.connect(this.Cc);this.Cc.connect(this.xi);this.xi.connect(this.Eh)}function l(a,b,c,d){this.type="convolve";this.$c=[b,c,d];this.ca=m();this.O=m();this.O.gain.value=c;this.L=m();this.L.gain.value=1-c;this.Se=x.createConvolver();a&&(this.Se.normalize=b,this.Se.buffer=a);this.ca.connect(this.Se);this.ca.connect(this.L);this.Se.connect(this.O)}
function e(a,b,c,d,g){this.type="flanger";this.$c=[a,b,c,d,g];this.ca=m();this.L=m();this.L.gain.value=1-g/2;this.O=m();this.O.gain.value=g/2;this.Hi=m();this.Hi.gain.value=d;this.Cc=t(a+b);this.Cc.delayTime.value=a;this.nb=x.createOscillator();this.nb.frequency.value=c;this.gc=m();this.gc.gain.value=b;this.ca.connect(this.Cc);this.ca.connect(this.L);this.Cc.connect(this.O);this.Cc.connect(this.Hi);this.Hi.connect(this.Cc);this.nb.connect(this.gc);this.gc.connect(this.Cc.delayTime);h(this.nb)}function n(a,
b,c,d,g,f){this.type="phaser";this.$c=[a,b,c,d,g,f];this.ca=m();this.L=m();this.L.gain.value=1-f/2;this.O=m();this.O.gain.value=f/2;this.Ra=x.createBiquadFilter();this.Ra.type="number"===typeof this.Ra.type?7:"allpass";this.Ra.frequency.value=a;this.Ra.detune&&(this.Ra.detune.value=b);this.Ra.Q.value=c;this.nb=x.createOscillator();this.nb.frequency.value=g;this.gc=m();this.gc.gain.value=d;this.ca.connect(this.Ra);this.ca.connect(this.L);this.Ra.connect(this.O);this.nb.connect(this.gc);this.gc.connect(this.Ra.frequency);
h(this.nb)}function y(a){this.type="gain";this.$c=[a];this.ea=m();this.ea.gain.value=a}function g(a,b){this.type="tremolo";this.$c=[a,b];this.ea=m();this.ea.gain.value=1-b/2;this.nb=x.createOscillator();this.nb.frequency.value=a;this.gc=m();this.gc.gain.value=b/2;this.nb.connect(this.gc);this.gc.connect(this.ea.gain);h(this.nb)}function r(a,b){this.type="ringmod";this.$c=[a,b];this.ca=m();this.O=m();this.O.gain.value=b;this.L=m();this.L.gain.value=1-b;this.Ph=m();this.Ph.gain.value=0;this.nb=x.createOscillator();
this.nb.frequency.value=a;this.nb.connect(this.Ph.gain);h(this.nb);this.ca.connect(this.Ph);this.ca.connect(this.L);this.Ph.connect(this.O)}function v(a,b,c,d,g){this.type="distortion";this.$c=[a,b,c,d,g];this.ca=m();this.Lj=m();this.Kj=m();this.vv(c,Math.pow(10,d/20));this.O=m();this.O.gain.value=g;this.L=m();this.L.gain.value=1-g;this.pk=x.createWaveShaper();this.vi=new Float32Array(65536);this.Lt(a,b);this.pk.vi=this.vi;this.ca.connect(this.Lj);this.ca.connect(this.L);this.Lj.connect(this.pk);
this.pk.connect(this.Kj);this.Kj.connect(this.O)}function G(a,b,c,d,g){this.type="compressor";this.$c=[a,b,c,d,g];this.ea=x.createDynamicsCompressor();try{this.ea.threshold.value=a,this.ea.knee.value=b,this.ea.ratio.value=c,this.ea.attack.value=d,this.ea.release.value=g}catch(f){}}function p(a,b){this.type="analyser";this.$c=[a,b];this.ea=x.createAnalyser();this.ea.fftSize=a;this.ea.smoothingTimeConstant=b;this.Jt=new Float32Array(this.ea.frequencyBinCount);this.$p=new Uint8Array(a);this.Hh=0}function u(){this.N=
null;this.rj=0;this.Le=[];this.$l=this.ej=this.dj=0}function d(a,b){this.src=a;this.T=D;this.Yc=b;this.Fn=!1;var c=this;this.Zl=this.lm=null;this.kg=[];this.Vj=0;this.kn=this.Wk=this.fq=this.Gj=!1;1===D&&b&&(this.T=0,this.lm=m());this.Qe=this.la=null;var d;switch(this.T){case 0:this.la=new Audio;this.la.addEventListener("canplaythrough",function(){c.kn=!0});1===D&&x.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.fq=!0,this.la.addEventListener("canplay",function(){c.Zl||(c.Zl=
x.createMediaElementSource(c.la),c.Zl.connect(c.lm))}));this.la.autoplay=!1;this.la.Mw="auto";this.la.src=a;break;case 1:d=new XMLHttpRequest;d.open("GET",a,!0);d.responseType="arraybuffer";d.onload=function(){c.Qe=d.response;c.Fs()};d.onerror=function(){c.Wk=!0};d.send();break;case 2:this.la=!0;break;case 3:this.la=!0}}function s(a,b){var c=this;this.tag=b;this.Wa=this.pd=!0;this.src=a.src;this.buffer=a;this.T=D;this.Yc=a.Yc;this.playbackRate=1;this.Jk=!0;this.Hc=this.Td=!1;this.Pb=0;this.jh=this.Xf=
this.rd=!1;this.volume=1;this.jf=1===z&&!this.Yc||2===z;this.gg=1;this.startTime=this.jf?A.Nb.J:A.Dd.J;this.Ma=this.$a=null;this.td=!1;this.La=null;this.yp=this.xp=this.wp=this.vp=this.Ap=this.zp=0;this.q=null;var d=!1;1!==this.T||0!==this.buffer.T||this.buffer.fq||(this.T=0);switch(this.T){case 0:this.Yc?(this.q=a.la,d=!a.Fn,a.Fn=!0):(this.q=new Audio,this.q.autoplay=!1,this.q.src=a.la.src,d=!0);d&&this.q.addEventListener("ended",function(){xa=c.tag;c.Wa=!0;A.trigger(kc.prototype.n.sk,L)});break;
case 1:this.$a=m();this.$a.connect(q(b));1===this.buffer.T?a.la&&(this.q=x.createBufferSource(),this.q.buffer=a.la,this.q.connect(this.$a)):(this.q=this.buffer.la,this.buffer.lm.connect(this.$a));break;case 2:this.q=new window.Media(Y+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(c.Jk=!0,c.Wa=!0,xa=c.tag,A.trigger(kc.prototype.n.sk,L))});break;case 3:this.q=!0}}function w(a,b){U.hasOwnProperty(a)?U[a].push(b):U[a]=[b];var c,d,g,f,e=x.destination;if(U.hasOwnProperty(a)&&(g=U[a],g.length))for(e=
g[0].rc(),c=0,d=g.length;c<d;c++)f=g[c],c+1===d?f.zc(x.destination):f.zc(g[c+1].rc());Ha.length=0;if(a.length)for(c=0,d=N.length;c<d;c++)g=N[c],ib(a,g.tag)&&Ha.push(g);else S&&!S.cf()&&(Ha.length=1,Ha[0]=S);c=0;for(d=Ha.length;c<d;c++)Ha[c].kv(e);ba&&wb===a&&(ba.disconnect(),ba.connect(e))}function P(){}function R(){}var I=kc.prototype;I.qa=function(a){this.Ga=a;this.b=a.b};I.qa.prototype.S=function(){};var A=null,L=null,xa="",Y="",D=0,x=null,ya=[],N=[],S=null,J=!1,z=0,O=!1,E=1,K=0,H=0,ja=1,M=1,na=
10,fa=1E4,sa=1,ba=null,wb="",Pa=!1,Qa=[],U={},xc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");c.prototype.zc=function(a){this.O.disconnect();this.O.connect(a);this.L.disconnect();this.L.connect(a)};c.prototype.remove=function(){this.ca.disconnect();this.Ra.disconnect();this.O.disconnect();this.L.disconnect()};c.prototype.rc=function(){return this.ca};f.prototype.zc=function(a){this.O.disconnect();this.O.connect(a);this.L.disconnect();this.L.connect(a)};f.prototype.remove=
function(){this.ca.disconnect();this.Eh.disconnect();this.Cc.disconnect();this.xi.disconnect();this.O.disconnect();this.L.disconnect()};f.prototype.rc=function(){return this.ca};l.prototype.zc=function(a){this.O.disconnect();this.O.connect(a);this.L.disconnect();this.L.connect(a)};l.prototype.remove=function(){this.ca.disconnect();this.Se.disconnect();this.O.disconnect();this.L.disconnect()};l.prototype.rc=function(){return this.ca};e.prototype.zc=function(a){this.L.disconnect();this.L.connect(a);
this.O.disconnect();this.O.connect(a)};e.prototype.remove=function(){this.ca.disconnect();this.Cc.disconnect();this.nb.disconnect();this.gc.disconnect();this.L.disconnect();this.O.disconnect();this.Hi.disconnect()};e.prototype.rc=function(){return this.ca};n.prototype.zc=function(a){this.L.disconnect();this.L.connect(a);this.O.disconnect();this.O.connect(a)};n.prototype.remove=function(){this.ca.disconnect();this.Ra.disconnect();this.nb.disconnect();this.gc.disconnect();this.L.disconnect();this.O.disconnect()};
n.prototype.rc=function(){return this.ca};y.prototype.zc=function(a){this.ea.disconnect();this.ea.connect(a)};y.prototype.remove=function(){this.ea.disconnect()};y.prototype.rc=function(){return this.ea};g.prototype.zc=function(a){this.ea.disconnect();this.ea.connect(a)};g.prototype.remove=function(){this.nb.disconnect();this.gc.disconnect();this.ea.disconnect()};g.prototype.rc=function(){return this.ea};r.prototype.zc=function(a){this.O.disconnect();this.O.connect(a);this.L.disconnect();this.L.connect(a)};
r.prototype.remove=function(){this.nb.disconnect();this.Ph.disconnect();this.ca.disconnect();this.O.disconnect();this.L.disconnect()};r.prototype.rc=function(){return this.ca};v.prototype.vv=function(a,b){.01>a&&(a=.01);this.Lj.gain.value=a;this.Kj.gain.value=Math.pow(1/a,.6)*b};v.prototype.shape=function(a,b,c){var d=1.05*c*b-b;c=0>a?-1:1;a=0>a?-a:a;b=a<b?a:b+d*(1-Math.exp(-(1/d)*(a-b)));return b*c};v.prototype.Lt=function(a,b){for(var c=Math.pow(10,a/20),d=Math.pow(10,b/20),g=0,f=0;32768>f;++f)g=
f/32768,g=this.shape(g,c,d),this.vi[32768+f]=g,this.vi[32768-f-1]=-g};v.prototype.zc=function(a){this.O.disconnect();this.O.connect(a);this.L.disconnect();this.L.connect(a)};v.prototype.remove=function(){this.ca.disconnect();this.Lj.disconnect();this.pk.disconnect();this.Kj.disconnect();this.O.disconnect();this.L.disconnect()};v.prototype.rc=function(){return this.ca};G.prototype.zc=function(a){this.ea.disconnect();this.ea.connect(a)};G.prototype.remove=function(){this.ea.disconnect()};G.prototype.rc=
function(){return this.ea};p.prototype.xa=function(){this.ea.getFloatFrequencyData(this.Jt);this.ea.getByteTimeDomainData(this.$p);for(var a=this.ea.fftSize,b=0,c=this.Hh=0,d=0;b<a;b++)d=(this.$p[b]-128)/128,0>d&&(d=-d),this.Hh<d&&(this.Hh=d),c+=d*d;this.Hh=k(this.Hh);k(Math.sqrt(c/a))};p.prototype.zc=function(a){this.ea.disconnect();this.ea.connect(a)};p.prototype.remove=function(){this.ea.disconnect()};p.prototype.rc=function(){return this.ea};u.prototype.Qh=function(a){if(this.N=a)this.dj=this.N.x,
this.ej=this.N.y;this.Le.length=0};u.prototype.Ui=function(){return!!this.N};u.prototype.xa=function(a){this.N&&0!==a&&(this.$l=Ka(this.dj,this.ej,this.N.x,this.N.y),a=Ta(this.dj,this.ej,this.N.x,this.N.y)/a,4>this.Le.length||this.Le.shift(),this.Le.push(a),this.dj=this.N.x,this.ej=this.N.y)};u.prototype.ro=function(){if(!this.Le.length)return 0;var a,b,c=0;a=0;for(b=this.Le.length;a<b;a++)c+=this.Le[a];return c/this.Le.length};u.prototype.jl=function(){return Math.cos(this.$l)*this.ro()};u.prototype.kl=
function(){return Math.sin(this.$l)*this.ro()};var uc=!1;d.prototype.Fs=function(){if(!this.la&&this.Qe){var a=this;if(x.decodeAudioData)x.decodeAudioData(this.Qe,function(b){a.la=b;a.Qe=null;var c,d,g;if(ha(a.Hj)||O)ha(a.pi)||(c=a.pi.Se,c.normalize=a.np,c.buffer=b);else if(a.kg.length){c=0;for(d=a.kg.length;c<d;c++){b=a.kg[c];g=new s(a,b.kq);g.Hm(!0);if("undefined"!==typeof b.pp&&(b.N=A.Pi(b.pp),!b.N))continue;if(b.N){var f=Oa(b.N.x,b.N.y,-b.N.m.Sa(),K,H,!0),e=Oa(b.N.x,b.N.y,-b.N.m.Sa(),K,H,!1);
g.Gm(f,e,Ea(b.N.k-b.N.m.Sa()),b.rl,b.cm,b.fm);g.Qh(b.N)}else g.Gm(b.x,b.y,b.js,b.rl,b.cm,b.fm);g.play(a.Vl,a.jn,a.Vj);a.Gj&&g.pause();N.push(g)}a.kg.length=0}else g=new s(a,a.Hj),g.play(a.Vl,a.jn,a.Vj),a.Gj&&g.pause(),N.push(g)},function(){a.Wk=!0});else if(this.la=x.createBuffer(this.Qe,!1),this.Qe=null,ha(this.Hj)||O)ha(this.pi)||(b=this.pi.Se,b.normalize=this.np,b.buffer=this.la);else{var b=new s(this,this.Hj);b.play(this.Vl,this.jn,this.Vj);this.Gj&&b.pause();N.push(b)}}};d.prototype.Co=function(){switch(this.T){case 0:var a=
4<=this.la.readyState;a&&(this.kn=!0);return a||this.kn;case 1:return!!this.Qe||!!this.la;case 2:return!0;case 3:return!0}return!1};d.prototype.zu=function(){switch(this.T){case 0:return this.Co();case 1:return!!this.la;case 2:return!0;case 3:return!0}return!1};d.prototype.qu=function(){switch(this.T){case 0:return!!this.la.error;case 1:return this.Wk}return!1};s.prototype.cf=function(){var a;switch(this.T){case 0:return this.q.ended;case 1:if(1===this.buffer.T){if(!this.pd&&!this.Wa&&this.q.loop||
this.Hc)return!1;a=this.jf?A.Nb.J:A.Dd.J;var b=this.playbackRate;0===b&&(b=1E-6);return a-this.startTime>this.buffer.la.duration/b}return this.q.ended;case 2:return this.Jk;case 3:!0}return!0};s.prototype.zs=function(){return this.pd||this.Wa?!0:this.cf()};s.prototype.Hm=function(a){1===D&&(!this.td&&a?this.$a&&(this.Ma||(this.Ma=x.createPanner(),this.Ma.panningModel="number"===typeof this.Ma.panningModel?ja:["equalpower","HRTF","soundfield"][ja],this.Ma.distanceModel="number"===typeof this.Ma.distanceModel?
M:["linear","inverse","exponential"][M],this.Ma.refDistance=na,this.Ma.maxDistance=fa,this.Ma.rolloffFactor=sa),this.$a.disconnect(),this.$a.connect(this.Ma),this.Ma.connect(q(this.tag)),this.td=!0):this.td&&!a&&this.$a&&(this.Ma.disconnect(),this.$a.disconnect(),this.$a.connect(q(this.tag)),this.td=!1))};s.prototype.Gm=function(a,b,c,d,g,f){this.td&&1===D&&(this.Ma.setPosition(a,b,0),this.Ma.setOrientation(Math.cos(V(c)),Math.sin(V(c)),0),this.Ma.coneInnerAngle=d,this.Ma.coneOuterAngle=g,this.Ma.coneOuterGain=
f,this.zp=a,this.Ap=b,this.vp=c,this.wp=d,this.xp=g,this.yp=f)};s.prototype.Qh=function(a){this.td&&1===D&&(this.La||(this.La=new u),this.La.Qh(a))};s.prototype.xa=function(a){if(this.td&&1===D&&this.La&&this.La.Ui()&&this.Tf()){this.La.xa(a);a=this.La.N;var b=Oa(a.x,a.y,-a.m.Sa(),K,H,!0),c=Oa(a.x,a.y,-a.m.Sa(),K,H,!1);this.Ma.setPosition(b,c,0);b=0;"undefined"!==typeof this.La.N.k&&(b=a.k-a.m.Sa(),this.Ma.setOrientation(Math.cos(b),Math.sin(b),0));b=Oa(this.La.jl(),this.La.kl(),-a.m.Sa(),0,0,!0);
c=Oa(this.La.jl(),this.La.kl(),-a.m.Sa(),0,0,!1);this.Ma.setVelocity(b,c,0)}};s.prototype.play=function(b,c,d){var g=this.q;this.rd=b;this.volume=c;d=d||0;switch(this.T){case 0:1!==g.playbackRate&&(g.playbackRate=1);g.volume!==c*E&&(g.volume=c*E);g.loop!==b&&(g.loop=b);g.muted&&(g.muted=!1);if(g.currentTime!==d)try{g.currentTime=d}catch(f){}if(this.Yc&&Pa&&!A.ac)Qa.push(this);else try{this.q.play()}catch(e){console&&console.log&&console.log("[C2] WARNING: exception trying to play audio '"+this.buffer.src+
"': ",e)}break;case 1:this.muted=!1;this.gg=1;if(1===this.buffer.T)this.$a.gain.value=c*E,this.pd||(this.q=x.createBufferSource(),this.q.buffer=this.buffer.la,this.q.connect(this.$a)),this.q.loop=b,0===d?h(this.q):a(this.q,d,this.Ze());else{1!==g.playbackRate&&(g.playbackRate=1);g.loop!==b&&(g.loop=b);g.volume=c*E;if(g.currentTime!==d)try{g.currentTime=d}catch(l){}this.Yc&&Pa&&!A.ac?Qa.push(this):g.play()}break;case 2:(!this.pd&&this.Wa||0!==d)&&g.seekTo(d);g.play();this.Jk=!1;break;case 3:A.Mb?AppMobi.context.playSound(this.src,
b):AppMobi.player.playSound(this.src,b)}this.playbackRate=1;this.startTime=(this.jf?A.Nb.J:A.Dd.J)-d;this.Hc=this.Wa=this.pd=!1};s.prototype.stop=function(){switch(this.T){case 0:this.q.paused||this.q.pause();break;case 1:1===this.buffer.T?b(this.q):this.q.paused||this.q.pause();break;case 2:this.q.stop();break;case 3:A.Mb&&AppMobi.context.stopSound(this.src)}this.Wa=!0;this.Hc=!1};s.prototype.pause=function(){if(!(this.pd||this.Wa||this.cf()||this.Hc)){switch(this.T){case 0:this.q.paused||this.q.pause();
break;case 1:1===this.buffer.T?(this.Pb=this.hl(),this.rd&&(this.Pb%=this.Ze()),b(this.q)):this.q.paused||this.q.pause();break;case 2:this.q.pause();break;case 3:A.Mb&&AppMobi.context.stopSound(this.src)}this.Hc=!0}};s.prototype.mv=function(){if(!(this.pd||this.Wa||this.cf())&&this.Hc){switch(this.T){case 0:this.q.play();break;case 1:1===this.buffer.T?(this.q=x.createBufferSource(),this.q.buffer=this.buffer.la,this.q.connect(this.$a),this.q.loop=this.rd,this.$a.gain.value=E*this.volume*this.gg,this.startTime=
(this.jf?A.Nb.J:A.Dd.J)-this.Pb,a(this.q,this.Pb,this.Ze())):this.q.play();break;case 2:this.q.play();break;case 3:A.Mb&&AppMobi.context.resumeSound(this.src)}this.Hc=!1}};s.prototype.seek=function(a){if(!(this.pd||this.Wa||this.cf()))switch(this.T){case 0:try{this.q.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.T)this.Hc?this.Pb=a:(this.pause(),this.Pb=a,this.mv());else try{this.q.currentTime=a}catch(c){}break;case 3:A.Mb&&AppMobi.context.seekSound(this.src,a)}};s.prototype.kv=function(a){1===
this.T&&(this.td?(this.Ma.disconnect(),this.Ma.connect(a)):(this.$a.disconnect(),this.$a.connect(a)))};s.prototype.Ze=function(){switch(this.T){case 0:if("undefined"!==typeof this.q.duration)return this.q.duration;break;case 1:return this.buffer.la.duration;case 2:return this.q.getDuration();case 3:if(A.Mb)return AppMobi.context.getDurationSound(this.src)}return 0};s.prototype.hl=function(){var a=this.Ze(),b=0;switch(this.T){case 0:"undefined"!==typeof this.q.currentTime&&(b=this.q.currentTime);break;
case 1:if(1===this.buffer.T){if(this.Hc)return this.Pb;b=(this.jf?A.Nb.J:A.Dd.J)-this.startTime}else"undefined"!==typeof this.q.currentTime&&(b=this.q.currentTime);break;case 3:A.Mb&&(b=AppMobi.context.getPlaybackTimeSound(this.src))}!this.rd&&b>a&&(b=a);return b};s.prototype.Tf=function(){return!this.Hc&&!this.pd&&!this.Wa&&!this.cf()};s.prototype.Kv=function(){var a=this.volume*E;switch(this.T){case 0:"undefined"!==typeof this.q.volume&&this.q.volume!==a&&(this.q.volume=a);break;case 1:1===this.buffer.T?
this.$a.gain.value=a*this.gg:"undefined"!==typeof this.q.volume&&this.q.volume!==a&&(this.q.volume=a)}};s.prototype.yi=function(a){switch(this.T){case 0:this.q.muted!==!!a&&(this.q.muted=!!a);break;case 1:1===this.buffer.T?(this.gg=a?0:1,this.$a.gain.value=E*this.volume*this.gg):this.q.muted!==!!a&&(this.q.muted=!!a)}};s.prototype.xv=function(){this.Xf=!0;this.yi(this.Xf||this.jh)};s.prototype.Up=function(a){this.jh=!!a;this.yi(this.Xf||this.jh)};s.prototype.yq=function(){var a=this.playbackRate;
this.jf&&(a*=A.Bf);switch(this.T){case 0:this.q.playbackRate!==a&&(this.q.playbackRate=a);break;case 1:1===this.buffer.T?this.q.playbackRate.value!==a&&(this.q.playbackRate.value=a):this.q.playbackRate!==a&&(this.q.playbackRate=a)}};s.prototype.zv=function(c){switch(this.T){case 0:c?this.Tf()?(this.q.pause(),this.Td=!0):this.Td=!1:this.Td&&this.q.play();break;case 1:c?this.Tf()?(1===this.buffer.T?(this.Pb=this.hl(),this.rd&&(this.Pb%=this.Ze()),b(this.q)):this.q.pause(),this.Td=!0):this.Td=!1:this.Td&&
(1===this.buffer.T?(this.q=x.createBufferSource(),this.q.buffer=this.buffer.la,this.q.connect(this.$a),this.q.loop=this.rd,this.$a.gain.value=E*this.volume*this.gg,this.startTime=(this.jf?A.Nb.J:A.Dd.J)-this.Pb,a(this.q,this.Pb,this.Ze())):this.q.play());break;case 2:c?this.Tf()?(this.q.pause(),this.Td=!0):this.Td=!1:this.Td&&this.q.play()}};I.fa=function(a){this.type=a;A=this.b=a.b;L=this;this.Db=null;this.uh=-600;!(this.b.bj||this.b.Xi&&(this.b.fh||this.b.Yi))||this.b.gh||this.b.Ta||this.b.Bl||
(Pa=!0);x=null;"undefined"!==typeof AudioContext?(D=1,x=new AudioContext):"undefined"!==typeof webkitAudioContext&&(D=1,x=new webkitAudioContext);(this.b.bj&&1===D||Pa)&&document.addEventListener("touchstart",function(){var a,b,c;!uc&&x&&(a=x.createBuffer(1,1,22050),b=x.createBufferSource(),b.buffer=a,b.connect(x.destination),h(b),uc=!0);if(Pa){if(!O)for(a=0,b=Qa.length;a<b;++a)c=Qa[a],c.Wa||c.Hc||c.q.play();Qa.length=0}},!0);1!==D&&(this.b.ve&&"undefined"!==typeof window.Media?D=2:this.b.Bo&&(D=
3));2===D&&(Y=location.href,a=Y.lastIndexOf("/"),-1<a&&(Y=Y.substr(0,a+1)),Y=Y.replace("file://",""));if(this.b.Eo&&this.b.Au&&"undefined"===typeof Audio)alert("It looks like you're using Safari for Windows without Quicktime.  Audio cannot be played until Quicktime is installed."),this.b.kd(this);else{if(this.b.Mb)J=this.b.Xi;else try{J=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(b){J=!1}this.b.Af(this)}};var ka=I.fa.prototype;ka.S=function(){this.b.Jf=this;z=this.H[0];this.Ud=this.H[1];
this.Xu=0!==this.H[2];ja=this.H[3];M=this.H[4];this.uh=-this.H[5];na=this.H[6];fa=this.H[7];sa=this.H[8];this.Db=new u;var a=this.b.W||this.b.width,b=this.b.V||this.b.height;1===D&&("undefined"!==typeof x.listener.dopplerFactor&&(x.listener.dopplerFactor=0),x.listener.setPosition(a/2,b/2,this.uh),x.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,b){ba&&ba.disconnect();wb=b.toLowerCase();ba=x.createMediaStreamSource(a);ba.connect(q(wb))});this.b.ms(function(a){L.Tu(a)});
var c=this;this.b.ks(function(a){c.Ou(a)})};ka.Ou=function(a){var b,c,d;b=0;for(c=N.length;b<c;b++)d=N[b],d.La&&d.La.N===a&&(d.La.N=null,d.td&&d.Tf()&&d.rd&&d.stop());this.Db.N===a&&(this.Db.N=null)};ka.gb=function(){var a={silent:O,masterVolume:E,listenerZ:this.uh,listenerUid:this.Db.Ui()?this.Db.N.uid:-1,playing:[],effects:{}},b=a.playing,c,d,g,f,e,h;c=0;for(d=N.length;c<d;c++)g=N[c],!g.Tf()||3===this.Ud||g.Yc&&1===this.Ud||!g.Yc&&2===this.Ud||(f=g.hl(),g.rd&&(f%=g.Ze()),f={tag:g.tag,buffersrc:g.buffer.src,
is_music:g.Yc,playbackTime:f,volume:g.volume,looping:g.rd,muted:g.Xf,playbackRate:g.playbackRate,paused:g.Hc,resume_position:g.Pb},g.td&&(f.pan={},h=f.pan,g.La&&g.La.Ui()?h.objUid=g.La.N.uid:(h.x=g.zp,h.y=g.Ap,h.a=g.vp),h.ia=g.wp,h.oa=g.xp,h.og=g.yp),b.push(f));b=a.effects;for(e in U)if(U.hasOwnProperty(e)){g=[];c=0;for(d=U[e].length;c<d;c++)g.push({type:U[e][c].type,params:U[e][c].$c});b[e]=g}return a};var Ra=[];ka.sb=function(a){var b=a.silent;E=a.masterVolume;this.uh=a.listenerZ;this.Db.Qh(null);
var d=a.listenerUid;-1!==d&&(this.Db.rj=d,Ra.push(this.Db));var d=a.playing,h,k,m,t,s,q,x,A,z,B,D;if(3!==this.Ud)for(h=0,k=N.length;h<k;h++)z=N[h],z.Yc&&1===this.Ud||(z.Yc||2!==this.Ud)&&z.stop();for(s in U)if(U.hasOwnProperty(s))for(h=0,k=U[s].length;h<k;h++)U[s][h].remove();Wa(U);for(s in a.effects)if(a.effects.hasOwnProperty(s))for(q=a.effects[s],h=0,k=q.length;h<k;h++)switch(m=q[h].type,B=q[h].params,m){case "filter":w(s,new c(B[0],B[1],B[2],B[3],B[4],B[5]));break;case "delay":w(s,new f(B[0],
B[1],B[2]));break;case "convolve":m=B[2];z=this.Mi(m,!1);z.la?m=new l(z.la,B[0],B[1],m):(m=new l(null,B[0],B[1],m),z.np=B[0],z.pi=m);w(s,m);break;case "flanger":w(s,new e(B[0],B[1],B[2],B[3],B[4]));break;case "phaser":w(s,new n(B[0],B[1],B[2],B[3],B[4],B[5]));break;case "gain":w(s,new y(B[0]));break;case "tremolo":w(s,new g(B[0],B[1]));break;case "ringmod":w(s,new r(B[0],B[1]));break;case "distortion":w(s,new v(B[0],B[1],B[2],B[3],B[4]));break;case "compressor":w(s,new G(B[0],B[1],B[2],B[3],B[4]));
break;case "analyser":w(s,new p(B[0],B[1]))}h=0;for(k=d.length;h<k;h++)3===this.Ud||(a=d[h],m=a.buffersrc,t=a.is_music,s=a.tag,q=a.playbackTime,x=a.looping,A=a.volume,D=(B=a.pan)&&B.hasOwnProperty("objUid")?B.objUid:-1,t&&1===this.Ud)||!t&&2===this.Ud||((z=this.fo(m,s,t,x,A))?(z.Pb=a.resume_position,z.Hm(!!B),z.play(x,A,q),z.yq(),z.Kv(),z.yi(z.Xf||z.jh),a.paused&&z.pause(),a.muted&&z.xv(),z.yi(z.Xf||z.jh),B&&(-1!==D?(z.La=z.La||new u,z.La.rj=D,Ra.push(z.La)):z.Gm(B.x,B.y,B.a,B.ia,B.oa,B.og))):(z=
this.Mi(m,t),z.Vj=q,z.Gj=a.paused,B&&(-1!==D?z.kg.push({pp:D,rl:B.ia,cm:B.oa,fm:B.og,kq:s}):z.kg.push({x:B.x,y:B.y,js:B.a,rl:B.ia,cm:B.oa,fm:B.og,kq:s}))));if(b&&!O){h=0;for(k=N.length;h<k;h++)N[h].Up(!0);O=!0}else if(!b&&O){h=0;for(k=N.length;h<k;h++)N[h].Up(!1);O=!1}};ka.ee=function(){var a,b,c,d;a=0;for(b=Ra.length;a<b;a++)c=Ra[a],d=this.b.Pi(c.rj),c.Qh(d),c.rj=-1,d&&(K=d.x,H=d.y);Ra.length=0};ka.Tu=function(a){if(!this.Xu){!a&&x&&x.resume&&x.resume();var b,c;b=0;for(c=N.length;b<c;b++)N[b].zv(a);
a&&x&&x.suspend&&x.suspend()}};ka.xa=function(){var a=this.b.me,b,c,d;b=0;for(c=N.length;b<c;b++)d=N[b],d.xa(a),0===d.T||3===d.T||d.pd||d.Wa||!d.cf()||(d.Wa=!0,xa=d.tag,A.trigger(kc.prototype.n.sk,L)),0!==z&&d.yq();var g,f;for(g in U)if(U.hasOwnProperty(g))for(d=U[g],b=0,c=d.length;b<c;b++)f=d[b],f.xa&&f.xa();1===D&&this.Db.Ui()&&(this.Db.xa(a),K=this.Db.N.x,H=this.Db.N.y,x.listener.setPosition(this.Db.N.x,this.Db.N.y,this.uh),x.listener.setVelocity(this.Db.jl(),this.Db.kl(),0))};var Sa=[];ka.yv=
function(a){var b,c,d,g,f,e=0;b=0;for(c=a.length;b<c;++b)if(d=a[b],g=d[0],d=2*d[1],(f=4<g.length&&".ogg"===g.substr(g.length-4))&&J||!f&&!J)Sa.push({filename:g,size:d,N:null}),e+=d;return e};ka.Dv=function(){var a,b,c,d;a=0;for(b=Sa.length;a<b;++a)c=Sa[a],d=this.b.Xk+c.filename,c.N=this.Mi(d,!1)};ka.Vt=function(){var a=0,b,c,d;b=0;for(c=Sa.length;b<c;++b)d=Sa[b],d.N.zu()||d.N.qu()||this.b.Ta||this.b.Yi?a+=d.size:d.N.Co()&&(a+=Math.floor(d.size/2));return a};ka.Mi=function(a,b){var c,g,f,e=null;c=
0;for(g=ya.length;c<g;c++)if(f=ya[c],f.src===a){e=f;break}e||(e=new d(a,b),ya.push(e));return e};ka.fo=function(a,b,c,d,g){var f,e,h;f=0;for(e=N.length;f<e;f++)if(h=N[f],h.src===a&&(h.zs()||c))return h.tag=b,h;a=this.Mi(a,c);if(!a.la)return"<preload>"!==b&&(a.Hj=b,a.Vl=d,a.jn=g),null;h=new s(a,b);N.push(h);return h};var Ha=[];P.prototype.sk=function(a){return ib(xa,a)};I.n=new P;R.prototype.Play=function(a,b,c,d){!O&&(c=Math.pow(10,c/20),0>c&&(c=0),1<c&&(c=1),S=this.fo(this.b.Xk+a[0]+(J?".ogg":".m4a"),
d,a[1],0!==b,c))&&(S.Hm(!1),S.play(0!==b,c))};I.A=new R;I.ma=new function(){}})();function lc(k){this.b=k}
(function(){function k(){}var q=lc.prototype;q.qa=function(h){this.Ga=h;this.b=h.b};q.qa.prototype.S=function(){};q.fa=function(h){this.type=h;this.b=h.b;this.cj=Array(256);this.nk=Array(256);this.Oe=0};var m=q.fa.prototype;m.S=function(){var h=this;this.b.Ta||(jQuery(document).keydown(function(a){h.gm(a)}),jQuery(document).keyup(function(a){h.hm(a)}))};var t=[32,33,34,35,36,37,38,39,40,44];m.gm=function(h){var a=!1;window!=window.top&&-1<t.indexOf(h.which)&&(h.preventDefault(),a=!0,h.stopPropagation());
if(this.cj[h.which])this.nk[h.which]&&!a&&h.preventDefault();else{this.cj[h.which]=!0;this.Oe=h.which;this.b.ac=!0;this.b.trigger(lc.prototype.n.lr,this);var b=this.b.trigger(lc.prototype.n.vn,this),c=this.b.trigger(lc.prototype.n.rr,this);this.b.ac=!1;if(b||c)this.nk[h.which]=!0,a||h.preventDefault()}};m.hm=function(h){this.cj[h.which]=!1;this.Oe=h.which;this.b.ac=!0;this.b.trigger(lc.prototype.n.mr,this);var a=this.b.trigger(lc.prototype.n.wn,this),b=this.b.trigger(lc.prototype.n.sr,this);this.b.ac=
!1;if(a||b||this.nk[h.which])this.nk[h.which]=!0,h.preventDefault()};m.gb=function(){return{triggerKey:this.Oe}};m.sb=function(h){this.Oe=h.triggerKey};k.prototype.Xq=function(h){return this.cj[h]};k.prototype.vn=function(h){return h===this.Oe};k.prototype.lr=function(){return!0};k.prototype.mr=function(){return!0};k.prototype.wn=function(h){return h===this.Oe};k.prototype.rr=function(h){return h===this.Oe};k.prototype.sr=function(h){return h===this.Oe};q.n=new k;q.A=new function(){};q.ma=new function(){}})();
function mc(k){this.b=k}
(function(){function k(){}function q(){}var m=mc.prototype;m.qa=function(a){this.Ga=a;this.b=a.b};m.qa.prototype.S=function(){};m.fa=function(a){this.type=a;this.b=a.b;this.Dk=Array(4);this.nq=this.jk=this.xg=this.De=this.Ce=0;this.ol=!1};var t=m.fa.prototype;t.S=function(){var a=this;if(!this.b.Ta){jQuery(document).mousemove(function(b){a.Qu(b)});jQuery(document).mousedown(function(b){a.Pu(b)});jQuery(document).mouseup(function(b){a.Ru(b)});jQuery(document).dblclick(function(b){a.Nu(b)});var b=function(b){a.Uu(b)};
document.addEventListener("mousewheel",b,!1);document.addEventListener("DOMMouseScroll",b,!1)}};var h={left:0,top:0};t.Qu=function(a){var b=this.b.Ta?h:jQuery(this.b.canvas).offset();this.Ce=a.pageX-b.left;this.De=a.pageY-b.top};t.jp=function(){return 0<this.b.Wb?!0:0<=this.Ce&&0<=this.De&&this.Ce<this.b.width&&this.De<this.b.height};t.Pu=function(a){this.jp()&&(this.b.nl&&!this.b.Nd&&a.preventDefault(),this.Dk[a.which]=!0,this.b.ac=!0,this.b.trigger(mc.prototype.n.kr,this),this.xg=a.which-1,this.jk=
0,this.b.trigger(mc.prototype.n.tn,this),this.b.trigger(mc.prototype.n.uk,this),this.b.ac=!1)};t.Ru=function(a){this.Dk[a.which]&&(this.b.nl&&!this.b.Nd&&a.preventDefault(),this.b.nl=!0,this.Dk[a.which]=!1,this.b.ac=!0,this.xg=a.which-1,this.b.trigger(mc.prototype.n.ur,this),this.b.ac=!1)};t.Nu=function(a){this.jp()&&(a.preventDefault(),this.b.ac=!0,this.xg=a.which-1,this.jk=1,this.b.trigger(mc.prototype.n.tn,this),this.b.trigger(mc.prototype.n.uk,this),this.b.ac=!1)};t.Uu=function(a){this.nq=0>(a.wheelDelta?
a.wheelDelta:a.detail?-a.detail:0)?0:1;this.ol=!1;this.b.ac=!0;this.b.trigger(mc.prototype.n.Cr,this);this.b.ac=!1;this.ol&&jb(a)&&a.preventDefault()};k.prototype.tn=function(a,b){return a===this.xg&&b===this.jk};k.prototype.kr=function(){return!0};k.prototype.ur=function(a){return a===this.xg};k.prototype.uk=function(a,b,c){return a!==this.xg||b!==this.jk?!1:this.b.Gv(c,this.Ce,this.De)};k.prototype.Cr=function(a){this.ol=!0;return a===this.nq};m.n=new k;m.A=new function(){};q.prototype.Bn=function(a,
b){var c,f,h,e,k;ha(b)?(c=this.b.Vg(0),f=c.scale,h=c.jd,e=c.Lc,k=c.k,c.scale=1,c.jd=1,c.Lc=1,c.k=0,a.K(c.Tb(this.Ce,this.De,!0)),c.scale=f,c.jd=h,c.Lc=e,c.k=k):(c=ia(b)?this.b.Vg(b):this.b.gl(b))?a.K(c.Tb(this.Ce,this.De,!0)):a.K(0)};q.prototype.Cn=function(a,b){var c,f,h,e,k;ha(b)?(c=this.b.Vg(0),f=c.scale,h=c.jd,e=c.Mc,k=c.k,c.scale=1,c.jd=1,c.Mc=1,c.k=0,a.K(c.Tb(this.Ce,this.De,!1)),c.scale=f,c.jd=h,c.Mc=e,c.k=k):(c=ia(b)?this.b.Vg(b):this.b.gl(b))?a.K(c.Tb(this.Ce,this.De,!1)):a.K(0)};m.ma=new q})();
function nc(k){this.b=k}
(function(){function k(h){this.za=h;this.kb=!1;this.k=this.speed=this.y=this.x=0;this.opacity=1;this.fe=this.Sf=this.size=this.Ri=0}var q=nc.prototype;q.qa=function(h){this.Ga=h;this.b=h.b};var m=q.qa.prototype;m.S=function(){this.M||(this.Oa=new Image,this.Oa.Rn=this.Tm,this.pb=null,this.b.Bq(this.Oa,this.Sm))};m.Aj=function(){this.M||(this.pb=null)};m.jm=function(){this.M||!this.i.length||this.pb||(this.pb=this.b.C.qj(this.Oa,!0,this.b.ja,this.Um))};m.Ql=function(){this.M||this.pb||!this.b.C||(this.pb=
this.b.C.qj(this.Oa,!0,this.b.ja,this.Um))};m.$m=function(){this.M||this.i.length||!this.pb||(this.b.C.deleteTexture(this.pb),this.pb=null)};m.pm=function(h){h.drawImage(this.Oa,0,0)};k.prototype.init=function(){var h=this.za;this.x=h.x-h.qk/2+Math.random()*h.qk;this.y=h.y-h.rk/2+Math.random()*h.rk;this.speed=h.yl-h.bk/2+Math.random()*h.bk;this.k=h.k-h.ck/2+Math.random()*h.ck;this.opacity=h.wl;this.size=h.xl-h.$j/2+Math.random()*h.$j;this.Ri=h.ml-h.Si/2+Math.random()*h.Si;this.fe=this.Sf=0};k.prototype.xa=
function(h){var a=this.za;this.x+=Math.cos(this.k)*this.speed*h;this.y+=Math.sin(this.k)*this.speed*h;this.y+=this.Sf*h;this.speed+=a.jb*h;this.size+=this.Ri*h;this.Sf+=a.pe*h;this.fe+=h;1>this.size?this.kb=!1:(0!==a.qh&&(this.k+=Math.random()*a.qh*h-a.qh*h/2),0!==a.sh&&(this.speed+=Math.random()*a.sh*h-a.sh*h/2),0!==a.rh&&(this.opacity+=Math.random()*a.rh*h-a.rh*h/2,0>this.opacity?this.opacity=0:1<this.opacity&&(this.opacity=1)),1>=a.Nf&&this.fe>=a.timeout&&(this.kb=!1),2===a.Nf&&0>=this.speed&&
(this.kb=!1))};k.prototype.Dc=function(h){var a=this.za.opacity*this.opacity;if(0!==a){0===this.za.Nf&&(a*=1-this.fe/this.za.timeout);h.globalAlpha=a;var a=this.x-this.size/2,b=this.y-this.size/2;this.za.b.vd&&(a=a+.5|0,b=b+.5|0);h.drawImage(this.za.type.Oa,a,b,this.size,this.size)}};k.prototype.Vb=function(h){var a=this.za.opacity*this.opacity;0===this.za.Nf&&(a*=1-this.fe/this.za.timeout);var b=this.size,c=b*this.za.Dp,f=this.x-b/2,l=this.y-b/2;this.za.b.vd&&(f=f+.5|0,l=l+.5|0);1>c||0===a||(c<h.Iu||
c>h.Yl?(h.vf(a),h.Nh(f,l,f+b,l,f+b,l+b,f,l+b)):h.Yu(this.x,this.y,c,a))};k.prototype.left=function(){return this.x-this.size/2};k.prototype.right=function(){return this.x+this.size/2};k.prototype.top=function(){return this.y-this.size/2};k.prototype.bottom=function(){return this.y+this.size/2};q.fa=function(h){this.type=h;this.b=h.b};var m=q.fa.prototype,t=[];m.S=function(){var h=this.H;this.Pj=h[0];this.ck=V(h[1]);this.ug=h[2];this.Om=!0;this.yl=h[3];this.xl=h[4];this.wl=h[5]/100;this.ml=h[6];this.qk=
h[7];this.rk=h[8];this.bk=h[9];this.$j=h[10];this.Si=h[11];this.jb=h[12];this.pe=h[13];this.qh=h[14];this.sh=h[15];this.rh=h[16];this.Nf=h[17];this.timeout=h[18];this.tf=0;this.Dp=1;this.Dj=this.x;this.Fj=this.y;this.Ej=this.x;this.Cj=this.y;this.ns(function(a){a.Aa.set(a.Dj,a.Fj,a.Ej,a.Cj);a.Bb.tg(a.Aa);a.ki=!1;a.en()});this.hc||(this.Fb=[]);this.b.Af(this);this.type.Ql();if(1===this.ug)for(h=0;h<this.Pj;h++)this.wk().opacity=0;this.Ji=!0};m.gb=function(){var h={r:this.Pj,sc:this.ck,st:this.ug,s:this.Om,
isp:this.yl,isz:this.xl,io:this.wl,gr:this.ml,xr:this.qk,yr:this.rk,spr:this.bk,szr:this.$j,grnd:this.Si,acc:this.jb,g:this.pe,lar:this.qh,lsr:this.sh,lor:this.rh,dm:this.Nf,to:this.timeout,pcc:this.tf,ft:this.Ji,p:[]},a,b,c,f=h.p;a=0;for(b=this.Fb.length;a<b;a++)c=this.Fb[a],f.push([c.x,c.y,c.speed,c.k,c.opacity,c.Ri,c.size,c.Sf,c.fe]);return h};m.sb=function(h){this.Pj=h.r;this.ck=h.sc;this.ug=h.st;this.Om=h.s;this.yl=h.isp;this.xl=h.isz;this.wl=h.io;this.ml=h.gr;this.qk=h.xr;this.rk=h.yr;this.bk=
h.spr;this.$j=h.szr;this.Si=h.grnd;this.jb=h.acc;this.pe=h.g;this.qh=h.lar;this.sh=h.lsr;this.rh=h.lor;this.Nf=h.dm;this.timeout=h.to;this.tf=h.pcc;this.Ji=h.ft;t.push.apply(t,this.Fb);this.Fb.length=0;var a,b,c,f=h.p;h=0;for(a=f.length;h<a;h++)b=this.wk(),c=f[h],b.x=c[0],b.y=c[1],b.speed=c[2],b.k=c[3],b.opacity=c[4],b.Ri=c[5],b.size=c[6],b.Sf=c[7],b.fe=c[8]};m.jg=function(){t.push.apply(t,this.Fb);this.Fb.length=0};m.wk=function(){var h;t.length?(h=t.pop(),h.za=this):h=new k(this);this.Fb.push(h);
h.kb=!0;return h};m.xa=function(){var h=this.b.re(this),a,b,c,f;if(0===this.ug&&this.Om)for(this.tf+=h*this.Pj,b=Q(this.tf),this.tf-=b,a=0;a<b;a++)c=this.wk(),c.init();this.Dj=this.x;this.Fj=this.y;this.Ej=this.x;this.Cj=this.y;f=a=0;for(b=this.Fb.length;a<b;a++)c=this.Fb[a],this.Fb[f]=c,this.b.Z=!0,1===this.ug&&this.Ji&&c.init(),c.xa(h),c.kb?(c.left()<this.Dj&&(this.Dj=c.left()),c.right()>this.Ej&&(this.Ej=c.right()),c.top()<this.Fj&&(this.Fj=c.top()),c.bottom()>this.Cj&&(this.Cj=c.bottom()),f++):
t.push(c);this.Fb.length=f;this.I();this.Ji=!1;1===this.ug&&0===this.Fb.length&&this.b.kd(this)};m.Dc=function(h){var a,b,c,f=this.m;a=0;for(b=this.Fb.length;a<b;a++)c=this.Fb[a],c.right()>=f.Ba&&c.bottom()>=f.Ca&&c.left()<=f.Ka&&c.top()<=f.Ja&&c.Dc(h)};m.Vb=function(h){this.Dp=this.m.Xb();h.jc(this.type.pb);var a,b,c,f=this.m;a=0;for(b=this.Fb.length;a<b;a++)c=this.Fb[a],c.right()>=f.Ba&&c.bottom()>=f.Ca&&c.left()<=f.Ka&&c.top()<=f.Ja&&c.Vb(h)};q.n=new function(){};q.A=new function(){};q.ma=new function(){}})();
function Z(k){this.b=k}
(function(){function k(){if(0===this.Ok.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.vg?b.drawImage(this.Oa,this.hg,this.ig,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.Oa,0,0,this.width,this.height);this.Ok=a.toDataURL("image/png")}return this.Ok}function q(){}function m(a,b,c){if(!a)return!1;var h=0!==b||0!==c,k,m,d=!1,s,t=this.b.dl(),q=t.type,t=t.Wi,R=a.da();s=this.b.lb().qb.Kc;R.pa?(this.ya(),y.Mg(this.Aa),
y.offset(b,c),this.b.ho(this.m,a,y,n),R=n):R=s?R.ba:R.i;f=a;e=q!==a&&!t;h&&(k=this.x,m=this.y,this.x+=b,this.y+=c,this.I());b=0;for(c=R.length;b<c;b++)if(s=R[b],this.b.yf(this,s)){d=!0;if(t)break;q!==a&&l.add(s)}h&&(this.x=k,this.y=m,this.I());n.length=0;return d}function t(){}var h=Z.prototype;h.qa=function(a){this.Ga=a;this.b=a.b};var a=h.qa.prototype;a.S=function(){if(!this.M){var a,b,c,f,e,h,d,l,n;this.Rc=[];this.$g=!1;a=0;for(b=this.Sb.length;a<b;a++){e=this.Sb[a];d={};d.name=e[0];d.speed=e[1];
d.loop=e[2];d.xm=e[3];d.Qj=e[4];d.Ep=e[5];d.aa=e[6];d.frames=[];c=0;for(f=e[7].length;c<f;c++)h=e[7][c],l={},l.Sm=h[0],l.Tm=h[1],l.hg=h[2],l.ig=h[3],l.width=h[4],l.height=h[5],l.duration=h[6],l.Zb=h[7],l.$b=h[8],l.sl=h[9],l.Ij=h[10],l.Fp=h[11],l.vg=0!==l.width,l.Ok="",l.Jw=k,n={left:0,top:0,right:1,bottom:1},l.Im=n,l.pb=null,(n=this.b.Ht(h[0]))?l.Oa=n:(l.Oa=new Image,l.Oa.Cs=h[0],l.Oa.Rn=h[1],l.Oa.xs=null,this.b.Bq(l.Oa,h[0])),d.frames.push(l),this.Rc.push(l);this.Sb[a]=d}}};a.xq=function(){var a,
b,c;a=0;for(b=this.i.length;a<b;a++)c=this.i[a],c.si=c.qc.pb};a.Aj=function(){if(!this.M){var a,b,c;a=0;for(b=this.Rc.length;a<b;++a)c=this.Rc[a],c.Oa.xs=null,c.pb=null;this.$g=!1;this.xq()}};a.jm=function(){if(!this.M&&this.i.length){var a,b,c;a=0;for(b=this.Rc.length;a<b;++a)c=this.Rc[a],c.pb=this.b.C.qj(c.Oa,!1,this.b.ja,c.Fp);this.xq()}};a.Ql=function(){if(!this.M&&!this.$g&&this.b.C){var a,b,c;a=0;for(b=this.Rc.length;a<b;++a)c=this.Rc[a],c.pb=this.b.C.qj(c.Oa,!1,this.b.ja,c.Fp);this.$g=!0}};
a.$m=function(){if(!this.M&&!this.i.length&&this.$g){var a,b,c;a=0;for(b=this.Rc.length;a<b;++a)c=this.Rc[a],this.b.C.deleteTexture(c.pb),c.pb=null;this.$g=!1}};var b=[];a.pm=function(a){var c,f,e;c=b.length=0;for(f=this.Rc.length;c<f;++c)e=this.Rc[c].Oa,-1===b.indexOf(e)&&(a.drawImage(e,0,0),b.push(e))};h.fa=function(a){this.type=a;this.b=a.b;a=this.type.Sb[0].frames[0].Ij;this.hc?this.ka.Sh(a):this.ka=new cb(a)};var c=h.fa.prototype;c.S=function(){this.visible=0===this.H[0];this.ah=this.hf=!1;this.yc=
0!==this.H[3];1===this.type.Sb.length&&1===this.type.Sb[0].frames.length||0===this.type.Sb[0].speed||(this.b.Af(this),this.hf=!0);this.Da=this.eo(this.H[1])||this.type.Sb[0];this.D=this.H[2];0>this.D&&(this.D=0);this.D>=this.Da.frames.length&&(this.D=this.Da.frames.length-1);var a=this.Da.frames[this.D];this.ka.Sh(a.Ij);this.Zb=a.Zb;this.$b=a.$b;this.Og=this.Da.speed;this.hc?this.Sc.reset():this.Sc=new ab;this.od=this.Sc.J;this.ge=!0;this.Ed=0;this.Pe=!0;this.Lf=this.Gn="";this.Pn=0;this.Ig=-1;this.type.Ql();
var b,c,f,e,h,d,l,a=0;for(b=this.type.Sb.length;a<b;a++)for(e=this.type.Sb[a],c=0,f=e.frames.length;c<f;c++)h=e.frames[c],0===h.width&&(h.width=h.Oa.width,h.height=h.Oa.height),h.vg&&(l=h.Oa,d=h.Im,d.left=h.hg/l.width,d.top=h.ig/l.height,d.right=(h.hg+h.width)/l.width,d.bottom=(h.ig+h.height)/l.height,0===h.hg&&0===h.ig&&h.width===l.width&&h.height===l.height&&(h.vg=!1));this.qc=this.Da.frames[this.D];this.si=this.qc.pb};c.gb=function(){var a={a:this.Da.aa,f:this.D,cas:this.Og,fs:this.od,ar:this.Ed,
at:this.Sc.J};this.ge||(a.ap=this.ge);this.Pe||(a.af=this.Pe);return a};c.sb=function(a){var b=this.Mt(a.a);b&&(this.Da=b);this.D=a.f;0>this.D&&(this.D=0);this.D>=this.Da.frames.length&&(this.D=this.Da.frames.length-1);this.Og=a.cas;this.od=a.fs;this.Ed=a.ar;this.Sc.reset();this.Sc.J=a.at;this.ge=a.hasOwnProperty("ap")?a.ap:!0;this.Pe=a.hasOwnProperty("af")?a.af:!0;this.qc=this.Da.frames[this.D];this.si=this.qc.pb;this.ka.Sh(this.qc.Ij);this.Zb=this.qc.Zb;this.$b=this.qc.$b};c.Bk=function(a){this.D=
a?0:this.Da.frames.length-1;this.ge=!1;this.Gn=this.Da.name;this.ah=!0;this.b.trigger(Z.prototype.n.sn,this);this.b.trigger(Z.prototype.n.rn,this);this.ah=!1;this.Ed=0};c.Kw=function(){return this.Sc.J};c.xa=function(){this.Sc.add(this.b.re(this));this.Lf.length&&this.Vn();0<=this.Ig&&this.Sk();var a=this.Sc.J,b=this.Da,c=b.frames[this.D],f=c.duration/this.Og;this.ge&&a>=this.od+f&&(this.Pe?this.D++:this.D--,this.od+=f,this.D>=b.frames.length&&(b.Ep?(this.Pe=!1,this.D=b.frames.length-2):b.loop?this.D=
b.Qj:(this.Ed++,this.Ed>=b.xm?this.Bk(!1):this.D=b.Qj)),0>this.D&&(b.Ep?(this.D=1,this.Pe=!0,b.loop||(this.Ed++,this.Ed>=b.xm&&this.Bk(!0))):b.loop?this.D=b.Qj:(this.Ed++,this.Ed>=b.xm?this.Bk(!0):this.D=b.Qj)),0>this.D?this.D=0:this.D>=b.frames.length&&(this.D=b.frames.length-1),a>this.od+b.frames[this.D].duration/this.Og&&(this.od=a),a=b.frames[this.D],this.Ff(c,a),this.b.Z=!0)};c.eo=function(a){var b,c,f;b=0;for(c=this.type.Sb.length;b<c;b++)if(f=this.type.Sb[b],ib(f.name,a))return f;return null};
c.Mt=function(a){var b,c,f;b=0;for(c=this.type.Sb.length;b<c;b++)if(f=this.type.Sb[b],f.aa===a)return f;return null};c.Vn=function(){var a=this.Da.frames[this.D],b=this.eo(this.Lf);this.Lf="";!b||ib(b.name,this.Da.name)&&this.ge||(this.Da=b,this.Og=b.speed,0>this.D&&(this.D=0),this.D>=this.Da.frames.length&&(this.D=this.Da.frames.length-1),1===this.Pn&&(this.D=0),this.ge=!0,this.od=this.Sc.J,this.Pe=!0,this.Ff(a,this.Da.frames[this.D]),this.b.Z=!0)};c.Sk=function(){var a=this.Da.frames[this.D],b=
this.D;this.D=Q(this.Ig);0>this.D&&(this.D=0);this.D>=this.Da.frames.length&&(this.D=this.Da.frames.length-1);b!==this.D&&(this.Ff(a,this.Da.frames[this.D]),this.od=this.Sc.J,this.b.Z=!0);this.Ig=-1};c.Ff=function(a,b){var c=a.width,f=a.height,e=b.width,h=b.height;c!=e&&(this.width*=e/c);f!=h&&(this.height*=h/f);this.Zb=b.Zb;this.$b=b.$b;this.ka.Sh(b.Ij);this.I();this.qc=b;this.si=b.pb;c=0;for(f=this.R.length;c<f;c++)e=this.R[c],e.Su&&e.Su(a,b);this.b.trigger(Z.prototype.n.Ff,this)};c.Dc=function(a){a.globalAlpha=
this.opacity;var b=this.qc,c=b.vg,f=b.Oa,e=this.x,h=this.y,d=this.width,l=this.height;if(0===this.k&&0<=d&&0<=l)e-=this.Zb*d,h-=this.$b*l,this.b.vd&&(e=Math.round(e),h=Math.round(h)),c?a.drawImage(f,b.hg,b.ig,b.width,b.height,e,h,d,l):a.drawImage(f,e,h,d,l);else{this.b.vd&&(e=Math.round(e),h=Math.round(h));a.save();var k=0<d?1:-1,n=0<l?1:-1;a.translate(e,h);1===k&&1===n||a.scale(k,n);a.rotate(this.k*k*n);e=0-this.Zb*oa(d);h=0-this.$b*oa(l);c?a.drawImage(f,b.hg,b.ig,b.width,b.height,e,h,oa(d),oa(l)):
a.drawImage(f,e,h,oa(d),oa(l));a.restore()}};c.Vb=function(a){a.jc(this.si);a.vf(this.opacity);var b=this.qc,c=this.Bb;if(this.b.vd){var f=Math.round(this.x)-this.x,e=Math.round(this.y)-this.y;b.vg?a.Ge(c.Xa+f,c.Ya+e,c.Qb+f,c.Rb+e,c.Jb+f,c.Kb+e,c.Hb+f,c.Ib+e,b.Im):a.Nh(c.Xa+f,c.Ya+e,c.Qb+f,c.Rb+e,c.Jb+f,c.Kb+e,c.Hb+f,c.Ib+e)}else b.vg?a.Ge(c.Xa,c.Ya,c.Qb,c.Rb,c.Jb,c.Kb,c.Hb,c.Ib,b.Im):a.Nh(c.Xa,c.Ya,c.Qb,c.Rb,c.Jb,c.Kb,c.Hb,c.Ib)};c.Rt=function(a){var b=this.qc,c,f;c=0;for(f=b.sl.length;c<f;c++)if(ib(a,
b.sl[c][0]))return c;return-1};c.Ug=function(a,b){var c=this.qc,f=c.sl,e;e=F(a)?this.Rt(a):a-1;e=Q(e);if(0>e||e>=f.length)return b?this.x:this.y;var h=(f[e][1]-c.Zb)*this.width,f=f[e][2],f=(f-c.$b)*this.height,c=Math.cos(this.k);e=Math.sin(this.k);var d=h*c-f*e,f=f*c+h*e,h=d+this.x,f=f+this.y;return b?h:f};var f=null,l=new da,e=!1,n=[],y=new T(0,0,0,0);a.finish=function(a){if(e){if(a){var b=this.b.lb().qb.Kc;a=f.da();var c=l.$d(),h,k;if(a.pa){a.pa=!1;a.i.length=c.length;h=0;for(k=c.length;h<k;h++)a.i[h]=
c[h];if(b)for(h=a.ba.length=0,k=f.i.length;h<k;h++)c=f.i[h],l.contains(c)||a.ba.push(c)}else if(b)for(b=a.i.length,a.i.length=b+c.length,h=0,k=c.length;h<k;h++)a.i[b+h]=c[h],Da(a.ba,c[h]);else Aa(a.i,c);f.he()}l.clear();e=!1}};q.prototype.$q=function(a){return m.call(this,a,0,0)};q.prototype.br=function(a,b,c){return m.call(this,a,b,c)};q.prototype.Uq=function(a){return this.Lf.length?ib(this.Lf,a):ib(this.Da.name,a)};q.prototype.Lq=function(a,b){return Zb(this.D,a,b)};q.prototype.rn=function(a){return ib(this.Gn,
a)};q.prototype.sn=function(){return!0};q.prototype.Ff=function(){return!0};q.prototype.Yq=function(){return 0>this.width};h.n=new q;t.prototype.Yr=function(a,b,c){if(a&&b&&(b=this.b.Sn(a,b,this.Ug(c,!0),this.Ug(c,!1)))){"undefined"!==typeof b.k&&(b.k=this.k,b.I());this.b.Xc++;var f,e,h;this.b.trigger(Object.getPrototypeOf(a.Ga).n.di,b);if(b.cc)for(f=0,e=b.siblings.length;f<e;f++)h=b.siblings[f],this.b.trigger(Object.getPrototypeOf(h.type.Ga).n.di,h);this.b.Xc--;f=this.b.Ot();c=!1;if(ha(f.X.Spawn_LastExec)||
f.X.Spawn_LastExec<this.b.Xe)c=!0,f.X.Spawn_LastExec=this.b.Xe;if(a!=this.type&&(a=a.da(),a.pa=!1,c?(a.i.length=1,a.i[0]=b):a.i.push(b),b.cc))for(f=0,e=b.siblings.length;f<e;f++)h=b.siblings[f],a=h.type.da(),a.pa=!1,c?(a.i.length=1,a.i[0]=h):a.i.push(h)}};t.prototype.Zr=function(a){this.ge=!0;this.od=this.Sc.J;1===a&&0!==this.D&&(this.Ig=0,this.ah||this.Sk());this.hf||(this.b.Af(this),this.hf=!0)};t.prototype.Ir=function(a,b){this.Lf=a;this.Pn=b;this.hf||(this.b.Af(this),this.hf=!0);this.ah||this.Vn()};
t.prototype.Jr=function(a){this.Ig=a;this.hf||(this.b.Af(this),this.hf=!0);this.ah||this.Sk()};t.prototype.Or=function(a){a=oa(this.width)*(0===a?-1:1);this.width!==a&&(this.width=a,this.I())};t.prototype.Rr=function(a){var b=this.qc,c=b.width*a*(0>this.width?-1:1);a=b.height*a*(0>this.height?-1:1);if(this.width!==c||this.height!==a)this.width=c,this.height=a,this.I()};t.prototype.Kr=function(a){this.yc!==(0!==a)&&((this.yc=0!==a)?this.I():(this.xc.right>=this.xc.left&&this.type.Kg.update(this,this.xc,
null),this.xc.set(0,0,-1,-1)))};h.A=new t;h.ma=new function(){}})();function oc(k){this.b=k}
(function(){function k(){return c.length?c.pop():{}}function q(a){var b,e;b=0;for(e=a.length;b<e;b++)c.push(a[b]);a.length=0}function m(){}function t(){}var h=oc.prototype;h.S=function(){h.A.Wr=function(a){this.width!==a&&(this.width=a,this.zf=!0,this.I())}};h.qa=function(a){this.Ga=a;this.b=a.b};var a=h.qa.prototype;a.S=function(){};a.Aj=function(){if(!this.M){var a,b,c;a=0;for(b=this.i.length;a<b;a++)c=this.i[a],c.sd=null,c.rf=null,c.fc=null}};h.fa=function(a){this.type=a;this.b=a.b;this.hc?this.Ae.length=
0:this.Ae=[];this.zf=!0};a=h.fa.prototype;a.S=function(){this.text=this.H[0];this.visible=0===this.H[1];this.font=this.H[2];this.color=this.H[3];this.Ti=this.H[4];this.ok=this.H[5];this.mn=0===this.H[7];this.Nl=this.ij=this.width;this.hj=this.height;this.Pl=this.H[8];this.Ki=this.Of="";this.iq=this.jq=this.Kh=0;this.Vu();this.fc=this.rf=this.sd=null;this.lp=!1;this.ph=this.b.fd;this.hc?this.mg.set(0,0,1,1):this.mg=new T(0,0,1,1);this.b.C&&this.b.Af(this)};a.Vu=function(){var a=this.font.split(" "),
b;for(b=0;b<a.length;b++)if("pt"===a[b].substr(a[b].length-2,2)){this.Kh=parseInt(a[b].substr(0,a[b].length-2));this.rm=Math.ceil(this.Kh/72*96)+4;0<b&&(this.Ki=a[b-1]);this.Of=a[b+1];for(b+=2;b<a.length;b++)this.Of+=" "+a[b];break}};a.gb=function(){return{t:this.text,f:this.font,c:this.color,ha:this.Ti,va:this.ok,wr:this.mn,lho:this.Pl,fn:this.Of,fs:this.Ki,ps:this.Kh,pxh:this.rm,tw:this.jq,th:this.iq,lrt:this.ph}};a.sb=function(a){this.text=a.t;this.font=a.f;this.color=a.c;this.Ti=a.ha;this.ok=
a.va;this.mn=a.wr;this.Pl=a.lho;this.Of=a.fn;this.Ki=a.fs;this.Kh=a.ps;this.rm=a.pxh;this.jq=a.tw;this.iq=a.th;this.ph=a.lrt;this.zf=!0;this.Nl=this.ij=this.width;this.hj=this.height};a.xa=function(){if(this.b.C&&this.fc&&300<=this.b.fd-this.ph){var a=this.m;this.ya();var b=this.Aa;if(b.right<a.Ba||b.bottom<a.Ca||b.left>a.Ka||b.top>a.Ja)this.b.C.deleteTexture(this.fc),this.sd=this.rf=this.fc=null}};a.jg=function(){this.sd=this.rf=null;this.b.C&&this.fc&&this.b.C.deleteTexture(this.fc);this.fc=null};
a.Tw=function(){this.font=this.Ki+" "+this.Kh.toString()+"pt "+this.Of;this.zf=!0;this.b.Z=!0};a.Dc=function(a,b){a.font=this.font;a.textBaseline="top";a.fillStyle=this.color;a.globalAlpha=b?1:this.opacity;var c=1;b&&(c=this.m.Xb(),a.save(),a.scale(c,c));if(this.zf||this.width!==this.Nl)this.type.Ga.gs(this.text,this.Ae,a,this.width,this.mn),this.zf=!1,this.Nl=this.width;this.ya();var c=b?0:this.Bb.Xa,h=b?0:this.Bb.Ya;this.b.vd&&(c=c+.5|0,h=h+.5|0);0===this.k||b||(a.save(),a.translate(c,h),a.rotate(this.k),
h=c=0);var k=h+this.height,g=this.rm,g=g+this.Pl,m,t;1===this.ok?h+=Math.max(this.height/2-this.Ae.length*g/2,0):2===this.ok&&(h+=Math.max(this.height-this.Ae.length*g-2,0));for(t=0;t<this.Ae.length&&!(m=c,1===this.Ti?m=c+(this.width-this.Ae[t].width)/2:2===this.Ti&&(m=c+(this.width-this.Ae[t].width)),a.fillText(this.Ae[t].text,m,h),h+=g,h>=k-g);t++);(0!==this.k||b)&&a.restore();this.ph=this.b.fd};a.Vb=function(a){if(!(1>this.width||1>this.height)){var b=this.zf||this.lp;this.lp=!1;var c=this.m.Xb(),
h=this.m.Sa(),k=this.mg,g=c*this.width,m=c*this.height,t=Math.ceil(g),q=Math.ceil(m),p=this.b.W/2,u=this.b.V/2;this.rf||(this.sd=document.createElement("canvas"),this.sd.width=t,this.sd.height=q,this.ij=t,this.hj=q,b=!0,this.rf=this.sd.getContext("2d"));if(t!==this.ij||q!==this.hj)this.sd.width=t,this.sd.height=q,this.fc&&(a.deleteTexture(this.fc),this.fc=null),b=!0;b&&(this.rf.clearRect(0,0,t,q),this.Dc(this.rf,!0),this.fc||(this.fc=a.Gd(t,q,this.b.ja,this.b.Nd)),a.Pv(this.sd,this.fc,this.b.Nd));
this.ij=t;this.hj=q;a.jc(this.fc);a.vf(this.opacity);a.wd();a.translate(-p,-u);a.Bd();var d=this.Bb,b=this.m.Fa(d.Xa,d.Ya,!0,!0),p=this.m.Fa(d.Xa,d.Ya,!1,!0),u=this.m.Fa(d.Qb,d.Rb,!0,!0),s=this.m.Fa(d.Qb,d.Rb,!1,!0),w=this.m.Fa(d.Jb,d.Kb,!0,!0),P=this.m.Fa(d.Jb,d.Kb,!1,!0),R=this.m.Fa(d.Hb,d.Ib,!0,!0),d=this.m.Fa(d.Hb,d.Ib,!1,!0);if(this.b.vd||0===this.k&&0===h)var I=(b+.5|0)-b,A=(p+.5|0)-p,b=b+I,p=p+A,u=u+I,s=s+A,w=w+I,P=P+A,R=R+I,d=d+A;0===this.k&&0===h?(u=b+t,s=p,w=u,P=p+q,R=b,d=P,k.right=1,k.bottom=
1):(k.right=g/t,k.bottom=m/q);a.Ge(b,p,u,s,w,P,R,d,k);a.wd();a.scale(c,c);a.zm(-this.m.Sa());a.translate((this.m.Ba+this.m.Ka)/-2,(this.m.Ca+this.m.Ja)/-2);a.Bd();this.ph=this.b.fd}};var b=[];h.ds=function(a){b.length=0;for(var c="",e,h=0;h<a.length;)if(e=a.charAt(h),"\n"===e)c.length&&(b.push(c),c=""),b.push("\n"),++h;else if(" "===e||"\t"===e||"-"===e){do c+=a.charAt(h),h++;while(h<a.length&&(" "===a.charAt(h)||"\t"===a.charAt(h)));b.push(c);c=""}else h<a.length&&(c+=e,h++);c.length&&b.push(c)};
var c=[];h.gs=function(a,b,c,h,m){if(a&&a.length)if(2>=h)q(b);else{if(100>=a.length&&-1===a.indexOf("\n")){var g=c.measureText(a).width;if(g<=h){q(b);b.push(k());b[0].text=a;b[0].width=g;return}}this.hs(a,b,c,h,m)}else q(b)};h.hs=function(a,h,e,m,t){t&&(this.ds(a),a=b);var g="",q,v,G,p=0;for(G=0;G<a.length;G++)"\n"===a[G]?(p>=h.length&&h.push(k()),v=h[p],v.text=g,v.width=e.measureText(g).width,p++,g=""):(q=g,g+=a[G],v=e.measureText(g).width,v>=m&&(p>=h.length&&h.push(k()),v=h[p],v.text=q,v.width=
e.measureText(q).width,p++,g=a[G],t||" "!==g||(g="")));g.length&&(p>=h.length&&h.push(k()),v=h[p],v.text=g,v.width=e.measureText(g).width,p++);for(G=p;G<h.length;G++)c.push(h[G]);h.length=p};h.n=new function(){};m.prototype.Sr=function(a){ia(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.zf=!0,this.b.Z=!0)};h.A=new m;t.prototype.Text=function(a){a.yb(this.text)};h.ma=new t})();function pc(k){this.b=k}
(function(){function k(){}var q=pc.prototype;q.qa=function(k){this.behavior=k;this.b=k.b};q.qa.prototype.S=function(){};q.fa=function(k,h){this.type=k;this.behavior=k.behavior;this.j=h;this.b=k.b};var m=q.fa.prototype;m.S=function(){var k=this.H[0];this.jb=this.H[1];this.pe=this.H[2];this.vs=0!==this.H[3];this.Fm=0!==this.H[4];this.G=Math.cos(this.j.k)*k;this.F=Math.sin(this.j.k)*k;this.jj=this.j.x;this.kj=this.j.y;this.$f=this.j.k;this.ik=0;this.enabled=0!==this.H[5]};m.gb=function(){return{acc:this.jb,
g:this.pe,dx:this.G,dy:this.F,lx:this.jj,ly:this.kj,lka:this.$f,t:this.ik,e:this.enabled}};m.sb=function(k){this.jb=k.acc;this.pe=k.g;this.G=k.dx;this.F=k.dy;this.jj=k.lx;this.kj=k.ly;this.$f=k.lka;this.ik=k.t;this.enabled=k.e};m.xa=function(){if(this.enabled){var k=this.b.re(this.j),h,a;this.j.k!==this.$f&&(this.Fm&&(h=Ta(0,0,this.G,this.F),this.G=Math.cos(this.j.k)*h,this.F=Math.sin(this.j.k)*h),this.$f=this.j.k);0!==this.jb&&(h=Ta(0,0,this.G,this.F),a=0===this.G&&0===this.F?this.j.k:Ka(0,0,this.G,
this.F),h+=this.jb*k,0>h&&(h=0),this.G=Math.cos(a)*h,this.F=Math.sin(a)*h);0!==this.pe&&(this.F+=this.pe*k);this.jj=this.j.x;this.kj=this.j.y;if(0!==this.G||0!==this.F)if(this.j.x+=this.G*k,this.j.y+=this.F*k,this.ik+=Ta(0,0,this.G*k,this.F*k),this.Fm&&(this.j.k=Ka(0,0,this.G,this.F),this.j.I(),this.$f=this.j.k),this.j.I(),this.vs&&(h=this.b.dd(this.j)))this.b.Oh(this.j,h),h=Ta(0,0,this.G,this.F),a=this.b.ys(this.j,this.jj,this.kj),this.G=Math.cos(a)*h,this.F=Math.sin(a)*h,this.j.x+=this.G*k,this.j.y+=
this.F*k,this.j.I(),this.Fm&&(this.$f=this.j.k=a,this.j.I()),this.b.jv(this.j,this.G/h,this.F/h,Math.max(2.5*h*k,30))||this.b.Np(this.j,100)}};q.n=new function(){};k.prototype.Gf=function(k){this.enabled=1===k};q.A=new k;q.ma=new function(){}})();function qc(k){this.b=k}
(function(){function k(){}function q(){}function m(){}var t=qc.prototype;t.qa=function(a){this.behavior=a;this.b=a.b};t.qa.prototype.S=function(){};t.fa=function(a,b){this.type=a;this.behavior=a.behavior;this.j=b;this.b=a.b;this.Lm=this.Km=this.Jm=this.Mm=this.Vi=this.Sj=this.nj=this.Ai=this.mk=!1;this.Ll=this.Kl=this.Jl=this.Ml=-1;this.F=this.G=0};var h=t.fa.prototype;h.S=function(){this.Pd=this.H[0];this.jb=this.H[1];this.md=this.H[2];this.Rk=this.H[3];this.zk=this.H[4];this.Gs=1===this.H[5];this.enabled=
0!==this.H[6];this.Gs&&!this.b.Ta&&(jQuery(document).keydown(function(a){return function(b){a.gm(b)}}(this)),jQuery(document).keyup(function(a){return function(b){a.hm(b)}}(this)))};h.gb=function(){return{dx:this.G,dy:this.F,enabled:this.enabled,maxspeed:this.Pd,acc:this.jb,dec:this.md,ignoreInput:this.Vi}};h.sb=function(a){this.G=a.dx;this.F=a.dy;this.enabled=a.enabled;this.Pd=a.maxspeed;this.jb=a.acc;this.md=a.dec;this.Vi=a.ignoreInput;this.Lm=this.Km=this.Jm=this.Mm=this.Sj=this.nj=this.Ai=this.mk=
!1;this.Ll=this.Kl=this.Jl=this.Ml=-1};h.gm=function(a){var b=this.b.fd;switch(a.which){case 37:a.preventDefault();this.Kl<b&&(this.nj=!0);break;case 38:a.preventDefault();this.Ml<b&&(this.mk=!0);break;case 39:a.preventDefault();this.Ll<b&&(this.Sj=!0);break;case 40:a.preventDefault(),this.Jl<b&&(this.Ai=!0)}};h.hm=function(a){var b=this.b.fd;switch(a.which){case 37:a.preventDefault();this.nj=!1;this.Kl=b;break;case 38:a.preventDefault();this.mk=!1;this.Ml=b;break;case 39:a.preventDefault();this.Sj=
!1;this.Ll=b;break;case 40:a.preventDefault(),this.Ai=!1,this.Jl=b}};h.xa=function(){var a=this.b.re(this.j),b=this.nj||this.Km,c=this.Sj||this.Lm,f=this.mk||this.Mm,h=this.Ai||this.Jm;this.Jm=this.Mm=this.Lm=this.Km=!1;if(this.enabled){var e=this.b.dd(this.j);if(e&&(this.b.Oh(this.j,e),!this.b.Np(this.j)))return;this.Vi&&(h=f=c=b=!1);0===this.Rk?c=b=!1:1===this.Rk&&(h=f=!1);2===this.Rk&&(f||h)&&(c=b=!1);b==c&&(0>this.G?(this.G+=this.md*a,0<this.G&&(this.G=0)):0<this.G&&(this.G-=this.md*a,0>this.G&&
(this.G=0)));f==h&&(0>this.F?(this.F+=this.md*a,0<this.F&&(this.F=0)):0<this.F&&(this.F-=this.md*a,0>this.F&&(this.F=0)));b&&!c&&(this.G=0<this.G?this.G-(this.jb+this.md)*a:this.G-this.jb*a);c&&!b&&(this.G=0>this.G?this.G+(this.jb+this.md)*a:this.G+this.jb*a);f&&!h&&(this.F=0<this.F?this.F-(this.jb+this.md)*a:this.F-this.jb*a);h&&!f&&(this.F=0>this.F?this.F+(this.jb+this.md)*a:this.F+this.jb*a);if(0!==this.G||0!==this.F){Math.sqrt(this.G*this.G+this.F*this.F)>this.Pd&&(e=Math.atan2(this.F,this.G),
this.G=this.Pd*Math.cos(e),this.F=this.Pd*Math.sin(e));c=this.j.x;f=this.j.y;b=this.j.k;this.j.x+=this.G*a;this.j.I();if(e=this.b.dd(this.j))this.j.x=c,this.G=0,this.j.I(),this.b.Oh(this.j,e);this.j.y+=this.F*a;this.j.I();if(e=this.b.dd(this.j))this.j.y=f,this.F=0,this.j.I(),this.b.Oh(this.j,e);a=hb(this.G);e=hb(this.F);if(0!==a||0!==e)1===this.zk?this.j.k=Ja(90*Math.round(Ea(Math.atan2(e,a))/90)):2===this.zk?this.j.k=Ja(45*Math.round(Ea(Math.atan2(e,a))/45)):3===this.zk&&(this.j.k=Math.atan2(e,a));
this.j.I();this.j.k!=b&&(e=this.b.dd(this.j))&&(this.j.k=b,this.j.I(),this.b.Oh(this.j,e))}}};k.prototype.Zq=function(){return 0!==this.G||0!==this.F};t.n=new k;q.prototype.Lr=function(a){this.Vi=a};q.prototype.Nr=function(a){this.Pd=a;0>this.Pd&&(this.Pd=0)};q.prototype.Gf=function(a){this.enabled=1===a};q.prototype.Ur=function(a){this.G=a};q.prototype.Vr=function(a){this.F=a};t.A=new q;m.prototype.fr=function(a){a.K(this.Pd)};t.ma=new m})();function rc(k){this.b=k}
(function(){function k(){}var q=rc.prototype;q.qa=function(k){this.behavior=k;this.b=k.b};q.qa.prototype.S=function(){};q.fa=function(k,h){this.type=k;this.behavior=k.behavior;this.j=h;this.b=k.b};var m=q.fa.prototype;m.S=function(){var k=1===this.H[0];this.Sg=this.H[1];this.ci=this.H[2];this.Fi=this.H[3];this.Is=this.H[4];this.ib=k?0:3;this.hc?this.Oc.reset():this.Oc=new ab;this.qf=this.j.opacity?this.j.opacity:1;k&&(0===this.Sg?(this.ib=1,0===this.ci&&(this.ib=2)):(this.j.opacity=0,this.b.Z=!0))};
m.gb=function(){return{fit:this.Sg,wt:this.ci,fot:this.Fi,s:this.ib,st:this.Oc.J,mo:this.qf}};m.sb=function(k){this.Sg=k.fit;this.ci=k.wt;this.Fi=k.fot;this.ib=k.s;this.Oc.reset();this.Oc.J=k.st;this.qf=k.mo};m.xa=function(){this.Oc.add(this.b.re(this.j));0===this.ib&&(this.j.opacity=this.Oc.J/this.Sg*this.qf,this.b.Z=!0,this.j.opacity>=this.qf&&(this.j.opacity=this.qf,this.ib=1,this.Oc.reset(),this.b.trigger(rc.prototype.n.or,this.j)));1===this.ib&&this.Oc.J>=this.ci&&(this.ib=2,this.Oc.reset(),
this.b.trigger(rc.prototype.n.Br,this.j));2===this.ib&&0!==this.Fi&&(this.j.opacity=this.qf-this.Oc.J/this.Fi*this.qf,this.b.Z=!0,0>this.j.opacity&&(this.j.opacity=0,this.ib=3,this.Oc.reset(),this.b.trigger(rc.prototype.n.pr,this.j),1===this.Is&&this.b.kd(this.j)))};m.Hw=function(){this.ib=0;this.Oc.reset();0===this.Sg?(this.ib=1,0===this.ci&&(this.ib=2)):(this.j.opacity=0,this.b.Z=!0)};k.prototype.pr=function(){return!0};k.prototype.or=function(){return!0};k.prototype.Br=function(){return!0};q.n=
new k;q.A=new function(){};q.ma=new function(){}})();function sc(k){this.b=k}
(function(){function k(){}function q(){}var m=sc.prototype;m.qa=function(h){this.behavior=h;this.b=h.b};m.qa.prototype.S=function(){};m.fa=function(h,a){this.type=h;this.behavior=h.behavior;this.j=a;this.b=h.b};var t=m.fa.prototype;t.S=function(){this.Me=this.yd=this.ib=this.zj=this.Bj=0};t.gb=function(){return{ontime:this.Bj,offtime:this.zj,stage:this.ib,stagetimeleft:this.yd,timeleft:this.Me}};t.sb=function(h){this.Bj=h.ontime;this.zj=h.offtime;this.ib=h.stage;this.yd=h.stagetimeleft;this.Me=h.timeleft};
t.xa=function(){if(!(0>=this.Me)){var h=this.b.re(this.j);this.Me-=h;0>=this.Me?(this.Me=0,this.j.visible=!0,this.b.Z=!0,this.b.trigger(sc.prototype.n.qr,this.j)):(this.yd-=h,0>=this.yd&&(0===this.ib?(this.j.visible=!1,this.ib=1,this.yd+=this.zj):(this.j.visible=!0,this.ib=0,this.yd+=this.Bj),this.b.Z=!0))}};k.prototype.qr=function(){return!0};m.n=new k;q.prototype.Qq=function(h,a,b){this.Bj=h;this.zj=a;this.ib=1;this.yd=a;this.Me=b;this.j.visible=!1;this.b.Z=!0};m.A=new q;m.ma=new function(){}})();
function tc(k){this.b=k}
(function(){function k(){}function q(){}var m=tc.prototype;m.qa=function(h){this.behavior=h;this.b=h.b};m.qa.prototype.S=function(){};m.fa=function(h,a){this.type=h;this.behavior=h.behavior;this.j=a;this.b=h.b};var t=m.fa.prototype;t.S=function(){this.Ab={}};t.jg=function(){Wa(this.Ab)};t.gb=function(){var h={},a,b;for(a in this.Ab)this.Ab.hasOwnProperty(a)&&(b=this.Ab[a],h[a]={c:b.current.J,t:b.total.J,d:b.duration,r:b.vm});return h};t.sb=function(h){this.Ab={};for(var a in h)h.hasOwnProperty(a)&&(this.Ab[a]=
{current:new ab,total:new ab,duration:h[a].d,vm:h[a].r},this.Ab[a].current.J=h[a].c,this.Ab[a].total.J=h[a].t)};t.xa=function(){var h=this.b.re(this.j),a,b;for(a in this.Ab)this.Ab.hasOwnProperty(a)&&(b=this.Ab[a],b.current.add(h),b.total.add(h))};t.gk=function(){var h,a;for(h in this.Ab)this.Ab.hasOwnProperty(h)&&(a=this.Ab[h],a.current.J>=a.duration&&(a.vm?a.current.J-=a.duration:delete this.Ab[h]))};k.prototype.Ar=function(h){h=h.toLowerCase();return(h=this.Ab[h])?h.current.J>=h.duration:!1};m.n=
new k;q.prototype.$r=function(h,a,b){this.Ab[b.toLowerCase()]={current:new ab,total:new ab,duration:h,vm:1===a}};m.A=new q;m.ma=new function(){}})();function vc(k){this.b=k}
(function(){var k=vc.prototype;k.qa=function(k){this.behavior=k;this.b=k.b};k.qa.prototype.S=function(){};k.fa=function(k,m){this.type=k;this.behavior=k.behavior;this.j=m;this.b=k.b};k=k.fa.prototype;k.S=function(){};k.xa=function(){this.j.ya();var k=this.j.Aa,m=this.j.m.Ua;(0>k.right||0>k.bottom||k.left>m.width||k.top>m.height)&&this.b.kd(this.j)}})();function wc(k){this.b=k;this.Yj=this.Uh=this.wf=this.Xj=0}
(function(){function k(){}var q=wc.prototype;q.qa=function(k){this.behavior=k;this.b=k.b};q.qa.prototype.S=function(){};q.fa=function(k,h){this.type=k;this.behavior=k.behavior;this.j=h;this.b=k.b};var m=q.fa.prototype;m.S=function(){this.enabled=0!==this.H[0]};m.gb=function(){return{smg:this.behavior.Xj,ss:this.behavior.wf,se:this.behavior.Uh,smd:this.behavior.Yj}};m.sb=function(k){this.behavior.Xj=k.smg;this.behavior.wf=k.ss;this.behavior.Uh=k.se;this.behavior.Yj=k.smd};m.xa=function(){};m.gk=function(){if(this.enabled){var k=
this.behavior.wj.$d(),h=0,a=0,b,c,f,l=0;b=0;for(c=k.length;b<c;b++){a:{f=k[b];for(var e=void 0,m=void 0,q=void 0,e=0,m=f.R.length;e<m;++e)if(q=f.R[e],q.behavior instanceof wc){f=q;break a}f=null}f&&f.enabled&&(h+=k[b].x,a+=k[b].y,++l)}k=this.j.m.Ua;c=this.b.Nb.J;f=b=0;c>=this.behavior.wf&&c<this.behavior.Uh&&(b=this.behavior.Xj*Math.min(this.b.Bf,1),0===this.behavior.Yj&&(b*=1-(c-this.behavior.wf)/(this.behavior.Uh-this.behavior.wf)),c=Math.random()*Math.PI*2,f=Math.random()*b,b=Math.cos(c)*f,f*=
Math.sin(c));k.Dm(h/l+b);k.Em(a/l+f)}};k.prototype.Xr=function(k,h,a){this.behavior.Xj=k;this.behavior.wf=this.b.Nb.J;this.behavior.Uh=this.behavior.wf+h;this.behavior.Yj=a};k.prototype.Gf=function(k){this.enabled=0!==k};q.A=new k})();function jc(k){this.b=k}
(function(){function k(){}var q=jc.prototype;q.qa=function(k){this.behavior=k;this.b=k.b};q.qa.prototype.S=function(){};q.fa=function(k,h){this.type=k;this.behavior=k.behavior;this.j=h;this.b=k.b};var m=q.fa.prototype;m.S=function(){this.j.X.solidEnabled=0!==this.H[0]};m.xa=function(){};q.n=new function(){};k.prototype.Gf=function(k){this.j.X.solidEnabled=!!k};q.A=new k})();
function ic(){return[kc,mc,lc,nc,Z,oc,qc,wc,tc,jc,pc,vc,rc,sc,X.prototype.n.Pq,qc.prototype.n.Zq,Z.prototype.A.Er,X.prototype.n.Rq,oc.prototype.n.nn,oc.prototype.A.Sr,X.prototype.ma.Fv,X.prototype.n.yn,X.prototype.n.xn,X.prototype.A.Tr,Z.prototype.A.Qr,Z.prototype.n.nn,X.prototype.ma.random,X.prototype.n.Mq,Z.prototype.A.Rr,Z.prototype.n.Lq,Z.prototype.A.Mr,Z.prototype.A.Jr,Z.prototype.A.Ir,Z.prototype.A.jr,X.prototype.n.Wq,Z.prototype.n.$q,Z.prototype.A.Hr,Z.prototype.ma.Fq,Z.prototype.A.Fr,Z.prototype.A.Oq,
Z.prototype.A.Yr,Z.prototype.n.rn,Z.prototype.n.un,Z.prototype.A.bs,kc.prototype.A.Play,wc.prototype.A.Xr,Z.prototype.n.di,Z.prototype.n.br,Z.prototype.n.sn,lc.prototype.n.vn,Z.prototype.A.Pr,X.prototype.ma.round,Z.prototype.ma.Bn,Z.prototype.ma.Cn,Z.prototype.A.Dq,X.prototype.n.pn,lc.prototype.n.Xq,Z.prototype.n.Uq,qc.prototype.A.Ur,qc.prototype.A.Vr,sc.prototype.A.Qq,qc.prototype.A.Nr,qc.prototype.ma.fr,jc.prototype.A.Gf,qc.prototype.A.Lr,tc.prototype.A.$r,tc.prototype.n.Ar,X.prototype.A.Sq,qc.prototype.A.Gf,
Z.prototype.A.Or,Z.prototype.ma.es,X.prototype.ma.cos,X.prototype.ma.sin,Z.prototype.A.ir,Z.prototype.ma.Tq,Z.prototype.A.Zr,pc.prototype.A.Gf,X.prototype.n.Dr,Z.prototype.A.hr,X.prototype.A.as,Z.prototype.n.qn,X.prototype.n.Kq,X.prototype.ma.me,X.prototype.ma.floor,Z.prototype.A.An,X.prototype.A.Eq,Z.prototype.A.Kr,lc.prototype.n.wn,oc.prototype.A.An,mc.prototype.n.uk,X.prototype.A.er,Z.prototype.n.Nq,Z.prototype.n.Yq,X.prototype.A.Gr,X.prototype.A.cs]};
