// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa,ba,ca,da,ea,ha,ia,A,ja,ka,ma,na,oa,pa,qa,ra,ta,ua,wa,xa,ya,Aa,Ba,M,Ca,Da,Ea,Ga,Ha,R,Ia,Ja,La,Ma,Na,Oa,Pa,Qa,Ra,Sa,Ta,Va,Wa,Xa,Ya,Za,$a,ab,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,rb,sb,wb,xb,yb,Ab,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,Xb,Yb,Zb,$b,ac,bc,dc,ec,fc,gc,hc,ic,jc,kc,lc={},mc={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(f){return f.__proto__}:function(f){return f.constructor.prototype});
(function(){function f(a,e,b,h){this.set(a,e,b,h)}function l(){this.xb=this.wb=this.zb=this.yb=this.Eb=this.Db=this.eb=this.cb=0}function d(a,e,b,h){a<e?b<h?(w=a<b?a:b,r=e>h?e:h):(w=a<h?a:h,r=e>b?e:b):b<h?(w=e<b?e:b,r=a>h?a:h):(w=e<h?e:h,r=a>b?a:b)}function m(){this.items=this.Yd=null;this.Sm=0;W&&(this.Yd=new Set);this.wl=[];this.Th=!0}function k(a){T[O++]=a}function c(){this.na=this.rl=this.y=this.Zl=0}function q(a){this.nb=[];this.Io=this.Ko=this.Lo=this.Jo=0;this.Fn(a)}function b(a,e){this.Dc=
a;this.Pc=e;this.cells={}}function a(a,e){this.Dc=a;this.Pc=e;this.cells={}}function g(a,e,b){var h;return D.length?(h=D.pop(),h.At=a,h.x=e,h.y=b,h):new ba(a,e,b)}function e(a,e,b){this.At=a;this.x=e;this.y=b;this.Wc=new ca}function h(a,e,b){var h;return u.length?(h=u.pop(),h.At=a,h.x=e,h.y=b,h):new da(a,e,b)}function v(a,e,b){this.At=a;this.x=e;this.y=b;this.Wc=[];this.Ck=!0;this.wg=new ca;this.Wl=!1}function x(a,e){return a.Wf-e.Wf}ea=function(a){window.console&&window.console.log&&window.console.log(a)};
ha=function(a){window.console&&window.console.error&&window.console.error(a)};aa=function(a){return a};ia=function(a){return"undefined"===typeof a};A=function(a){return"number"===typeof a};ja=function(a){return"string"===typeof a};ka=function(a){return 0<a&&0===(a-1&a)};ma=function(a){--a;for(var e=1;32>e;e<<=1)a=a|a>>e;return a+1};na=function(a){return 0>a?-a:a};oa=function(a,e){return a>e?a:e};pa=function(a,e){return a<e?a:e};qa=Math.PI;ra=function(a){return 0<=a?a|0:(a|0)-1};ta=function(a){var e=
a|0;return e===a?e:e+1};ua=function(a,e,b,h,n,g,p,c){var r,z,d,t;a<b?(z=a,r=b):(z=b,r=a);n<p?(t=n,d=p):(t=p,d=n);if(r<t||z>d)return!1;e<h?(z=e,r=h):(z=h,r=e);g<c?(t=g,d=c):(t=c,d=g);if(r<t||z>d)return!1;r=n-a+p-b;z=g-e+c-h;a=b-a;e=h-e;n=p-n;g=c-g;c=na(e*n-g*a);return na(n*z-g*r)>c?!1:na(a*z-e*r)<=c};f.prototype.set=function(a,e,b,h){this.left=a;this.top=e;this.right=b;this.bottom=h};f.prototype.Vh=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};f.prototype.width=
function(){return this.right-this.left};f.prototype.height=function(){return this.bottom-this.top};f.prototype.offset=function(a,e){this.left+=a;this.top+=e;this.right+=a;this.bottom+=e;return this};f.prototype.normalize=function(){var a=0;this.left>this.right&&(a=this.left,this.left=this.right,this.right=a);this.top>this.bottom&&(a=this.top,this.top=this.bottom,this.bottom=a)};f.prototype.vy=function(a){return!(a.right<this.left||a.bottom<this.top||a.left>this.right||a.top>this.bottom)};f.prototype.wy=
function(a,e,b){return!(a.right+e<this.left||a.bottom+b<this.top||a.left+e>this.right||a.top+b>this.bottom)};f.prototype.Qb=function(a,e){return a>=this.left&&a<=this.right&&e>=this.top&&e<=this.bottom};f.prototype.lm=function(a){return this.left===a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};wa=f;l.prototype.yi=function(a){this.cb=a.left;this.eb=a.top;this.Db=a.right;this.Eb=a.top;this.yb=a.right;this.zb=a.bottom;this.wb=a.left;this.xb=a.bottom};l.prototype.jA=function(a,
e){if(0===e)this.yi(a);else{var b=Math.sin(e),h=Math.cos(e),n=a.left*b,g=a.top*b,p=a.right*b,b=a.bottom*b,c=a.left*h,r=a.top*h,z=a.right*h,h=a.bottom*h;this.cb=c-g;this.eb=r+n;this.Db=z-g;this.Eb=r+p;this.yb=z-b;this.zb=h+p;this.wb=c-b;this.xb=h+n}};l.prototype.offset=function(a,e){this.cb+=a;this.eb+=e;this.Db+=a;this.Eb+=e;this.yb+=a;this.zb+=e;this.wb+=a;this.xb+=e;return this};var w=0,r=0;l.prototype.gx=function(a){d(this.cb,this.Db,this.yb,this.wb);a.left=w;a.right=r;d(this.eb,this.Eb,this.zb,
this.xb);a.top=w;a.bottom=r};l.prototype.Qb=function(a,e){var b=this.cb,h=this.eb,n=this.Db-b,g=this.Eb-h,p=this.yb-b,c=this.zb-h,r=a-b,z=e-h,d=n*n+g*g,t=n*p+g*c,g=n*r+g*z,q=p*p+c*c,k=p*r+c*z,w=1/(d*q-t*t),n=(q*g-t*k)*w,d=(d*k-t*g)*w;if(0<=n&&0<d&&1>n+d)return!0;n=this.wb-b;g=this.xb-h;d=n*n+g*g;t=n*p+g*c;g=n*r+g*z;w=1/(d*q-t*t);n=(q*g-t*k)*w;d=(d*k-t*g)*w;return 0<=n&&0<d&&1>n+d};l.prototype.zd=function(a,e){if(e)switch(a){case 0:return this.cb;case 1:return this.Db;case 2:return this.yb;case 3:return this.wb;
case 4:return this.cb;default:return this.cb}else switch(a){case 0:return this.eb;case 1:return this.Eb;case 2:return this.zb;case 3:return this.xb;case 4:return this.eb;default:return this.eb}};l.prototype.nz=function(){return(this.cb+this.Db+this.yb+this.wb)/4};l.prototype.oz=function(){return(this.eb+this.Eb+this.zb+this.xb)/4};l.prototype.Jm=function(a,e,b,h){if(this.Qb(a,e)||this.Qb(b,h))return!0;var n,g,p,c,r;for(r=0;4>r;r++)if(n=this.zd(r,!0),g=this.zd(r,!1),p=this.zd(r+1,!0),c=this.zd(r+1,
!1),ua(a,e,b,h,n,g,p,c))return!0;return!1};l.prototype.uy=function(a){var e=a.nz(),b=a.oz();if(this.Qb(e,b))return!0;e=this.nz();b=this.oz();if(a.Qb(e,b))return!0;var h,n,g,p,c,r,z,d;for(z=0;4>z;z++)for(d=0;4>d;d++)if(e=this.zd(z,!0),b=this.zd(z,!1),h=this.zd(z+1,!0),n=this.zd(z+1,!1),g=a.zd(d,!0),p=a.zd(d,!1),c=a.zd(d+1,!0),r=a.zd(d+1,!1),ua(e,b,h,n,g,p,c,r))return!0;return!1};xa=l;ya=function(a,e){for(var b in e)e.hasOwnProperty(b)&&(a[b]=e[b]);return a};Aa=function(a,e){var b,h;e=ra(e);if(!(0>
e||e>=a.length)){b=e;for(h=a.length-1;b<h;b++)a[b]=a[b+1];Ba(a,h)}};Ba=function(a,e){a.length=e};M=function(a){Ba(a,0)};Ca=function(a,e){M(a);var b,h;b=0;for(h=e.length;b<h;++b)a[b]=e[b]};Da=function(a,e){a.push.apply(a,e)};Ea=function(a,e){var b,h;b=0;for(h=a.length;b<h;++b)if(a[b]===e)return b;return-1};Ga=function(a,e){var b=Ea(a,e);-1!==b&&Aa(a,b)};Ha=function(a,e,b){return a<e?e:a>b?b:a};R=function(a){return a/(180/qa)};Ia=function(a){return 180/qa*a};Ja=function(a){a%=360;0>a&&(a+=360);return a};
La=function(a){a%=2*qa;0>a&&(a+=2*qa);return a};Ma=function(a){return Ja(Ia(a))};Na=function(a){return La(R(a))};Oa=function(a,e,b,h){return Math.atan2(h-e,b-a)};Pa=function(a,e){if(a===e)return 0;var b=Math.sin(a),h=Math.cos(a),n=Math.sin(e),g=Math.cos(e),b=b*n+h*g;return 1<=b?0:-1>=b?qa:Math.acos(b)};Qa=function(a,e,b){var h=Math.sin(a),n=Math.cos(a),g=Math.sin(e),p=Math.cos(e);return Math.acos(h*g+n*p)>b?0<n*g-h*p?La(a+b):La(a-b):La(e)};Ra=function(a,e){var b=Math.sin(a),h=Math.cos(a),n=Math.sin(e),
g=Math.cos(e);return 0>=h*n-b*g};Sa=function(a,e,b,h,n,g){if(0===b)return g?a:e;var p=Math.sin(b);b=Math.cos(b);a-=h;e-=n;var c=a*p;a=a*b-e*p;e=e*b+c;return g?a+h:e+n};Ta=function(a,e,b,h){a=b-a;e=h-e;return Math.sqrt(a*a+e*e)};Va=function(a,e){return!a!==!e};Wa=function(a){for(var e in a)if(a.hasOwnProperty(e))return!0;return!1};Xa=function(a){for(var e in a)a.hasOwnProperty(e)&&delete a[e]};var t=+new Date;Ya=function(){if("undefined"!==typeof window.performance){var a=window.performance;if("undefined"!==
typeof a.now)return a.now();if("undefined"!==typeof a.webkitNow)return a.webkitNow();if("undefined"!==typeof a.mozNow)return a.mozNow();if("undefined"!==typeof a.msNow)return a.msNow()}return Date.now()-t};var n=!1,p=n=!1,G=!1;"undefined"!==typeof window&&(n=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),n=!n&&/safari/i.test(navigator.userAgent),p=/(iphone|ipod|ipad)/i.test(navigator.userAgent),G=window.c2ejecta);var W=!n&&!G&&!p&&"undefined"!==typeof Set&&"undefined"!==
typeof Set.prototype.forEach;m.prototype.contains=function(a){return this.ah()?!1:W?this.Yd.has(a):this.items&&this.items.hasOwnProperty(a)};m.prototype.add=function(a){if(W)this.Yd.has(a)||(this.Yd.add(a),this.Th=!1);else{var e=a.toString(),b=this.items;b?b.hasOwnProperty(e)||(b[e]=a,this.Sm++,this.Th=!1):(this.items={},this.items[e]=a,this.Sm=1,this.Th=!1)}};m.prototype.remove=function(a){if(!this.ah())if(W)this.Yd.has(a)&&(this.Yd["delete"](a),this.Th=!1);else if(this.items){a=a.toString();var e=
this.items;e.hasOwnProperty(a)&&(delete e[a],this.Sm--,this.Th=!1)}};m.prototype.clear=function(){this.ah()||(W?this.Yd.clear():(this.items=null,this.Sm=0),M(this.wl),this.Th=!0)};m.prototype.ah=function(){return 0===this.count()};m.prototype.count=function(){return W?this.Yd.size:this.Sm};var T=null,O=0;m.prototype.fK=function(){if(!this.Th){if(W)M(this.wl),T=this.wl,O=0,this.Yd.forEach(k),T=null,O=0;else{var a=this.wl;M(a);var e,b=0,h=this.items;if(h)for(e in h)h.hasOwnProperty(e)&&(a[b++]=h[e])}this.Th=
!0}};m.prototype.Md=function(){this.fK();return this.wl};ca=m;var y=new ca;Za=function(a){var e,b;e=0;for(b=a.length;e<b;++e)y.add(a[e]);Ca(a,y.Md());y.clear()};$a=function(a,e){W?ab(a,e.Yd):db(a,e.Md())};ab=function(a,e){var b,h,n,g;h=b=0;for(n=a.length;b<n;++b)g=a[b],e.has(g)||(a[h++]=g);Ba(a,h)};db=function(a,e){var b,h,g,n;h=b=0;for(g=a.length;b<g;++b)n=a[b],-1===Ea(e,n)&&(a[h++]=n);Ba(a,h)};c.prototype.add=function(a){this.y=a-this.Zl;this.rl=this.na+this.y;this.Zl=this.rl-this.na-this.y;this.na=
this.rl};c.prototype.reset=function(){this.na=this.rl=this.y=this.Zl=0};eb=c;fb=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};q.prototype.Fn=function(a){this.Tz=a;this.Id=a.length/2;this.nb.length=a.length;this.Oo=this.Po=-1;this.jx=0};q.prototype.eh=function(){return!this.Tz.length};q.prototype.da=function(){for(var a=this.nb,e=a[0],b=e,h=a[1],n=h,g,p,c=1,r=this.Id;c<r;++c)p=2*c,g=a[p],p=a[p+1],g<e&&(e=g),g>b&&(b=g),p<h&&(h=p),p>n&&(n=p);this.Jo=e;this.Ko=b;this.Lo=h;this.Io=n};
q.prototype.yi=function(a,e,b){this.nb.length=8;this.Id=4;var h=this.nb;h[0]=a.left-e;h[1]=a.top-b;h[2]=a.right-e;h[3]=a.top-b;h[4]=a.right-e;h[5]=a.bottom-b;h[6]=a.left-e;h[7]=a.bottom-b;this.Po=a.right-a.left;this.Oo=a.bottom-a.top;this.da()};q.prototype.xi=function(a,e,b,h,g){this.nb.length=8;this.Id=4;var n=this.nb;n[0]=a.cb-e;n[1]=a.eb-b;n[2]=a.Db-e;n[3]=a.Eb-b;n[4]=a.yb-e;n[5]=a.zb-b;n[6]=a.wb-e;n[7]=a.xb-b;this.Po=h;this.Oo=g;this.da()};q.prototype.iA=function(a){this.Id=a.Id;Ca(this.nb,a.nb);
this.Jo=a.Jo;this.Lo-a.Lo;this.Ko=a.Ko;this.Io=a.Io};q.prototype.$f=function(a,e,b){if(this.Po!==a||this.Oo!==e||this.jx!==b){this.Po=a;this.Oo=e;this.jx=b;var h,n,g,p,c,r=0,z=1,d=this.Tz,t=this.nb;0!==b&&(r=Math.sin(b),z=Math.cos(b));b=0;for(g=this.Id;b<g;b++)h=2*b,n=h+1,p=d[h]*a,c=d[n]*e,t[h]=p*z-c*r,t[n]=c*z+p*r;this.da()}};q.prototype.Qb=function(a,e){var b=this.nb;if(a===b[0]&&e===b[1])return!0;var h,n,g,p=this.Id,c=this.Jo-110,r=this.Lo-101,z=this.Ko+131,d=this.Io+120,t,q,k=0,w=0;for(h=0;h<
p;h++)n=2*h,g=(h+1)%p*2,t=b[n],n=b[n+1],q=b[g],g=b[g+1],ua(c,r,a,e,t,n,q,g)&&k++,ua(z,d,a,e,t,n,q,g)&&w++;return 1===k%2||1===w%2};q.prototype.Im=function(a,e,b){var h=a.nb,n=this.nb;if(this.Qb(h[0]+e,h[1]+b)||a.Qb(n[0]-e,n[1]-b))return!0;var g,p,c,r,z,d,t,q,k,w,x,f;g=0;for(r=this.Id;g<r;g++)for(p=2*g,c=(g+1)%r*2,q=n[p],p=n[p+1],k=n[c],w=n[c+1],c=0,t=a.Id;c<t;c++)if(z=2*c,d=(c+1)%t*2,x=h[z]+e,z=h[z+1]+b,f=h[d]+e,d=h[d+1]+b,ua(q,p,k,w,x,z,f,d))return!0;return!1};q.prototype.Jm=function(a,e,b,h,n,g){var p=
this.nb;if(this.Qb(b-a,h-e))return!0;var c,r,z,d,t,q;c=0;for(r=this.Id;c<r;c++)if(z=2*c,d=(c+1)%r*2,t=p[z]+a,z=p[z+1]+e,q=p[d]+a,d=p[d+1]+e,ua(b,h,n,g,t,z,q,d))return!0;return!1};q.prototype.sI=function(a){var e,b,h;e=0;for(b=this.Id;e<b;++e)h=2*e,this.nb[h]=2*a-this.nb[h]};q.prototype.NG=function(a){var e,b,h;e=0;for(b=this.Id;e<b;++e)h=2*e+1,this.nb[h]=2*a-this.nb[h]};q.prototype.zF=function(){var a,e,b,h,n;a=0;for(e=this.Id;a<e;++a)b=2*a,h=b+1,n=this.nb[b],this.nb[b]=this.nb[h],this.nb[h]=n};gb=
q;b.prototype.Zh=function(a,e,b){var h;h=this.cells[a];return h?(h=h[e])?h:b?(h=g(this,a,e),this.cells[a][e]=h):null:b?(h=g(this,a,e),this.cells[a]={},this.cells[a][e]=h):null};b.prototype.Nd=function(a){return ra(a/this.Dc)};b.prototype.Od=function(a){return ra(a/this.Pc)};b.prototype.update=function(a,e,b){var h,n,g,p,c;if(e)for(h=e.left,n=e.right;h<=n;++h)for(g=e.top,p=e.bottom;g<=p;++g)if(!b||!b.Qb(h,g))if(c=this.Zh(h,g,!1))c.remove(a),c.ah()&&(c.Wc.clear(),1E3>D.length&&D.push(c),this.cells[h][g]=
null);if(b)for(h=b.left,n=b.right;h<=n;++h)for(g=b.top,p=b.bottom;g<=p;++g)e&&e.Qb(h,g)||this.Zh(h,g,!0).Jt(a)};b.prototype.Hq=function(a,e){var b,h,n,g,p,c;b=this.Nd(a.left);n=this.Od(a.top);h=this.Nd(a.right);for(p=this.Od(a.bottom);b<=h;++b)for(g=n;g<=p;++g)(c=this.Zh(b,g,!1))&&c.dump(e)};hb=b;a.prototype.Zh=function(a,e,b){var n;n=this.cells[a];return n?(n=n[e])?n:b?(n=h(this,a,e),this.cells[a][e]=n):null:b?(n=h(this,a,e),this.cells[a]={},this.cells[a][e]=n):null};a.prototype.Nd=function(a){return ra(a/
this.Dc)};a.prototype.Od=function(a){return ra(a/this.Pc)};a.prototype.update=function(a,e,b){var h,n,g,p,c;if(e)for(h=e.left,n=e.right;h<=n;++h)for(g=e.top,p=e.bottom;g<=p;++g)if(!b||!b.Qb(h,g))if(c=this.Zh(h,g,!1))c.remove(a),c.ah()&&(c.reset(),1E3>u.length&&u.push(c),this.cells[h][g]=null);if(b)for(h=b.left,n=b.right;h<=n;++h)for(g=b.top,p=b.bottom;g<=p;++g)e&&e.Qb(h,g)||this.Zh(h,g,!0).Jt(a)};a.prototype.Hq=function(a,e,b,h,n){var g,p;a=this.Nd(a);e=this.Od(e);b=this.Nd(b);for(g=this.Od(h);a<=
b;++a)for(h=e;h<=g;++h)(p=this.Zh(a,h,!1))&&p.dump(n)};a.prototype.oI=function(a){var e,b,h,n,g;e=a.left;h=a.top;b=a.right;for(n=a.bottom;e<=b;++e)for(a=h;a<=n;++a)if(g=this.Zh(e,a,!1))g.Ck=!1};ib=a;var D=[];e.prototype.ah=function(){return this.Wc.ah()};e.prototype.Jt=function(a){this.Wc.add(a)};e.prototype.remove=function(a){this.Wc.remove(a)};e.prototype.dump=function(a){Da(a,this.Wc.Md())};ba=e;var u=[];v.prototype.ah=function(){if(!this.Wc.length)return!0;if(this.Wc.length>this.wg.count())return!1;
this.bt();return!0};v.prototype.Jt=function(a){this.wg.contains(a)?(this.wg.remove(a),this.wg.ah()&&(this.Wl=!1)):this.Wc.length?(this.Wc[this.Wc.length-1].ie()>a.ie()&&(this.Ck=!1),this.Wc.push(a)):(this.Wc.push(a),this.Ck=!0)};v.prototype.remove=function(a){this.wg.add(a);this.Wl=!0;30<=this.wg.count()&&this.bt()};v.prototype.bt=function(){this.Wl&&(this.wg.count()===this.Wc.length?this.reset():($a(this.Wc,this.wg),this.wg.clear(),this.Wl=!1))};v.prototype.dG=function(){this.Ck||(this.Wc.sort(x),
this.Ck=!0)};v.prototype.reset=function(){M(this.Wc);this.Ck=!0;this.wg.clear();this.Wl=!1};v.prototype.dump=function(a){this.bt();this.dG();this.Wc.length&&a.push(this.Wc)};da=v;var U="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");jb=function(a){return 0>=a||11<=a?"source-over":U[a-1]};kb=function(a,e,b){if(b)switch(a.wd=b.ONE,a.od=b.ONE_MINUS_SRC_ALPHA,e){case 1:a.wd=b.ONE;a.od=b.ONE;break;case 3:a.wd=b.ONE;a.od=b.ZERO;
break;case 4:a.wd=b.ONE_MINUS_DST_ALPHA;a.od=b.ONE;break;case 5:a.wd=b.DST_ALPHA;a.od=b.ZERO;break;case 6:a.wd=b.ZERO;a.od=b.SRC_ALPHA;break;case 7:a.wd=b.ONE_MINUS_DST_ALPHA;a.od=b.ZERO;break;case 8:a.wd=b.ZERO;a.od=b.ONE_MINUS_SRC_ALPHA;break;case 9:a.wd=b.DST_ALPHA;a.od=b.ONE_MINUS_SRC_ALPHA;break;case 10:a.wd=b.ONE_MINUS_DST_ALPHA,a.od=b.SRC_ALPHA}};lb=function(a){return Math.round(1E6*a)/1E6};mb=function(a,e){return"string"!==typeof a||"string"!==typeof e||a.length!==e.length?!1:a===e?!0:a.toLowerCase()===
e.toLowerCase()};nb=function(a){a=a.target;return!a||a===document||a===window||document&&document.body&&a===document.body||mb(a.tagName,"canvas")?!0:!1}})();var nc="undefined"!==typeof Float32Array?Float32Array:Array;function oc(f){var l=new nc(3);f&&(l[0]=f[0],l[1]=f[1],l[2]=f[2]);return l}
function pc(f){var l=new nc(16);f&&(l[0]=f[0],l[1]=f[1],l[2]=f[2],l[3]=f[3],l[4]=f[4],l[5]=f[5],l[6]=f[6],l[7]=f[7],l[8]=f[8],l[9]=f[9],l[10]=f[10],l[11]=f[11],l[12]=f[12],l[13]=f[13],l[14]=f[14],l[15]=f[15]);return l}function qc(f,l){l[0]=f[0];l[1]=f[1];l[2]=f[2];l[3]=f[3];l[4]=f[4];l[5]=f[5];l[6]=f[6];l[7]=f[7];l[8]=f[8];l[9]=f[9];l[10]=f[10];l[11]=f[11];l[12]=f[12];l[13]=f[13];l[14]=f[14];l[15]=f[15]}
function sc(f,l){var d=l[0],m=l[1];l=l[2];f[0]*=d;f[1]*=d;f[2]*=d;f[3]*=d;f[4]*=m;f[5]*=m;f[6]*=m;f[7]*=m;f[8]*=l;f[9]*=l;f[10]*=l;f[11]*=l}
function uc(f,l,d,m){m||(m=pc());var k,c,q,b,a,g,e,h,v=f[0],x=f[1];f=f[2];c=d[0];q=d[1];k=d[2];d=l[1];g=l[2];v===l[0]&&x===d&&f===g?(f=m,f[0]=1,f[1]=0,f[2]=0,f[3]=0,f[4]=0,f[5]=1,f[6]=0,f[7]=0,f[8]=0,f[9]=0,f[10]=1,f[11]=0,f[12]=0,f[13]=0,f[14]=0,f[15]=1):(d=v-l[0],g=x-l[1],e=f-l[2],h=1/Math.sqrt(d*d+g*g+e*e),d*=h,g*=h,e*=h,l=q*e-k*g,k=k*d-c*e,c=c*g-q*d,(h=Math.sqrt(l*l+k*k+c*c))?(h=1/h,l*=h,k*=h,c*=h):c=k=l=0,q=g*c-e*k,b=e*l-d*c,a=d*k-g*l,(h=Math.sqrt(q*q+b*b+a*a))?(h=1/h,q*=h,b*=h,a*=h):a=b=q=0,
m[0]=l,m[1]=q,m[2]=d,m[3]=0,m[4]=k,m[5]=b,m[6]=g,m[7]=0,m[8]=c,m[9]=a,m[10]=e,m[11]=0,m[12]=-(l*v+k*x+c*f),m[13]=-(q*v+b*x+a*f),m[14]=-(d*v+g*x+e*f),m[15]=1)}
(function(){function f(b,a,g){this.bh=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.ub=!!g;this.Np=this.Km=!1;this.Yo=0;this.Cr=1;this.Mv=1E3;this.wK=(this.Mv-this.Cr)/32768;this.Bs=oc([0,0,100]);this.Xy=oc([0,0,0]);this.KA=oc([0,1,0]);this.co=oc([1,1,1]);this.Ex=!0;this.jq=pc();this.Ne=pc();this.Xt=pc();this.Ns=pc();this.T=b;this.version=0===this.T.getParameter(this.T.VERSION).indexOf("WebGL 2")?2:1;this.oy()}function l(b,a,g){this.T=b;this.Gn=
a;this.name=g;this.cf=b.getAttribLocation(a,"aPos");this.li=b.getAttribLocation(a,"aTex");this.Vy=b.getUniformLocation(a,"matP");this.cq=b.getUniformLocation(a,"matMV");this.Pk=b.getUniformLocation(a,"opacity");this.bu=b.getUniformLocation(a,"colorFill");this.Wy=b.getUniformLocation(a,"samplerFront");this.Zm=b.getUniformLocation(a,"samplerBack");this.wj=b.getUniformLocation(a,"destStart");this.vj=b.getUniformLocation(a,"destEnd");this.an=b.getUniformLocation(a,"seconds");this.du=b.getUniformLocation(a,
"pixelWidth");this.cu=b.getUniformLocation(a,"pixelHeight");this.Ym=b.getUniformLocation(a,"layerScale");this.Xm=b.getUniformLocation(a,"layerAngle");this.bn=b.getUniformLocation(a,"viewOrigin");this.$m=b.getUniformLocation(a,"scrollPos");this.HH=!!(this.du||this.cu||this.an||this.Zm||this.wj||this.vj||this.Ym||this.Xm||this.bn||this.$m);this.ez=this.fz=-999;this.iq=1;this.az=this.$y=0;this.cz=this.Zy=this.Yy=1;this.iz=this.hz=this.gz=this.kz=this.jz=this.bz=0;this.Wt=[];this.dz=pc();this.Pk&&b.uniform1f(this.Pk,
1);this.bu&&b.uniform4f(this.bu,1,1,1,1);this.Wy&&b.uniform1i(this.Wy,0);this.Zm&&b.uniform1i(this.Zm,1);this.wj&&b.uniform2f(this.wj,0,0);this.vj&&b.uniform2f(this.vj,1,1);this.Ym&&b.uniform1f(this.Ym,1);this.Xm&&b.uniform1f(this.Xm,0);this.bn&&b.uniform2f(this.bn,0,0);this.$m&&b.uniform2f(this.$m,0,0);this.an&&b.uniform1f(this.an,0);this.ej=!1}function d(b,a){return 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]}function m(b,a){this.type=b;this.K=a;this.T=a.T;this.Je=this.Kb=this.Cz=0;this.Ia=this.lf=null;this.kA=[]}var k=pc();f.prototype.oy=function(){var b=this.T,a;this.My=1;this.qj=this.ei=null;this.Xo=1;b.clearColor(0,0,0,0);b.clear(b.COLOR_BUFFER_BIT);b.enable(b.BLEND);b.blendFunc(b.ONE,b.ONE_MINUS_SRC_ALPHA);b.disable(b.CULL_FACE);b.disable(b.STENCIL_TEST);b.disable(b.DITHER);this.ub?(b.enable(b.DEPTH_TEST),b.depthFunc(b.LEQUAL)):
b.disable(b.DEPTH_TEST);this.Oy=b.ONE;this.Jy=b.ONE_MINUS_SRC_ALPHA;this.Zn=new Float32Array(8E3*(this.ub?3:2));this.On=new Float32Array(16E3);this.Oz=new Float32Array(32E3);this.Fu=b.createBuffer();b.bindBuffer(b.ARRAY_BUFFER,this.Fu);b.bufferData(b.ARRAY_BUFFER,this.Oz.byteLength,b.DYNAMIC_DRAW);this.Yn=Array(4);this.Nn=Array(4);for(a=0;4>a;a++)this.Yn[a]=b.createBuffer(),b.bindBuffer(b.ARRAY_BUFFER,this.Yn[a]),b.bufferData(b.ARRAY_BUFFER,this.Zn.byteLength,b.DYNAMIC_DRAW),this.Nn[a]=b.createBuffer(),
b.bindBuffer(b.ARRAY_BUFFER,this.Nn[a]),b.bufferData(b.ARRAY_BUFFER,this.On.byteLength,b.DYNAMIC_DRAW);this.Rg=0;this.NH=b.createBuffer();b.bindBuffer(b.ELEMENT_ARRAY_BUFFER,this.NH);for(var g=new Uint16Array(12E3),e=a=0;12E3>a;)g[a++]=e,g[a++]=e+1,g[a++]=e+2,g[a++]=e,g[a++]=e+2,g[a++]=e+3,e+=4;b.bufferData(b.ELEMENT_ARRAY_BUFFER,g,b.STATIC_DRAW);this.Gu=this.Bi=this.of=0;this.Yb=[];a=this.ub?"attribute highp vec3 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, aPos.z, 1.0);\n\tvTex = aTex;\n}":
"attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}";g=this.hm({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}"},a,"<default>");this.Yb.push(g);g=this.hm({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.Yb.push(g);g=this.hm({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},a,"<earlyz>");this.Yb.push(g);g=this.hm({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"},
a,"<fill>");this.Yb.push(g);for(var h in vc)vc.hasOwnProperty(h)&&this.Yb.push(this.hm(vc[h],a,h));b.activeTexture(b.TEXTURE0);b.bindTexture(b.TEXTURE_2D,null);this.Zf=[];this.wf=0;this.Sc=!1;this.zx=this.Tm=-1;this.lk=null;this.$s=b.createFramebuffer();this.dp=this.Jq=null;this.ax=!1;this.ub&&(this.dp=b.createRenderbuffer());this.Ei=oc([0,0,0]);this.lz=b.getParameter(b.ALIASED_POINT_SIZE_RANGE)[1];2048<this.lz&&(this.lz=2048);this.Zd(0)};l.prototype.Cv=function(b){d(this.dz,b)||(qc(b,this.dz),this.T.uniformMatrix4fv(this.cq,
!1,b))};f.prototype.hm=function(b,a,g){var e=this.T,h=e.createShader(e.FRAGMENT_SHADER);e.shaderSource(h,b.src);e.compileShader(h);if(!e.getShaderParameter(h,e.COMPILE_STATUS))throw b=e.getShaderInfoLog(h),e.deleteShader(h),Error("error compiling fragment shader: "+b);var c=e.createShader(e.VERTEX_SHADER);e.shaderSource(c,a);e.compileShader(c);if(!e.getShaderParameter(c,e.COMPILE_STATUS))throw b=e.getShaderInfoLog(c),e.deleteShader(h),e.deleteShader(c),Error("error compiling vertex shader: "+b);a=
e.createProgram();e.attachShader(a,h);e.attachShader(a,c);e.linkProgram(a);if(!e.getProgramParameter(a,e.LINK_STATUS))throw b=e.getProgramInfoLog(a),e.deleteShader(h),e.deleteShader(c),e.deleteProgram(a),Error("error linking shader program: "+b);e.useProgram(a);e.deleteShader(h);e.deleteShader(c);h=new l(e,a,g);h.nm=b.nm||0;h.om=b.om||0;h.Uo=!!b.Uo;h.Re=!!b.Re;h.Eo=!!b.Eo;h.Da=b.Da||[];b=0;for(c=h.Da.length;b<c;b++)h.Da[b][1]=e.getUniformLocation(a,h.Da[b][0]),h.Wt.push(0),e.uniform1f(h.Da[b][1],
0);return h};f.prototype.ut=function(b){var a,g;a=0;for(g=this.Yb.length;a<g;a++)if(this.Yb[a].name===b)return a;return-1};f.prototype.Sz=function(b,a,g){var e=this.Ne,h=this.jq,c=[0,0,0,0,0,0,0,0];c[0]=e[0]*b+e[4]*a+e[12];c[1]=e[1]*b+e[5]*a+e[13];c[2]=e[2]*b+e[6]*a+e[14];c[3]=e[3]*b+e[7]*a+e[15];c[4]=h[0]*c[0]+h[4]*c[1]+h[8]*c[2]+h[12]*c[3];c[5]=h[1]*c[0]+h[5]*c[1]+h[9]*c[2]+h[13]*c[3];c[6]=h[2]*c[0]+h[6]*c[1]+h[10]*c[2]+h[14]*c[3];c[7]=-c[2];0!==c[7]&&(c[7]=1/c[7],c[4]*=c[7],c[5]*=c[7],c[6]*=c[7],
g[0]=(.5*c[4]+.5)*this.width,g[1]=(.5*c[5]+.5)*this.height)};f.prototype.zh=function(b,a,g){if(this.width!==b||this.height!==a||g){this.Vg();g=this.T;this.width=b;this.height=a;g.viewport(0,0,b,a);uc(this.Bs,this.Xy,this.KA,this.Ne);if(this.ub){var e=-b/2;b=b/2;var h=a/2;a=-a/2;var c=this.Cr,d=this.Mv,q=this.jq;q||(q=pc());var r=b-e,t=a-h,n=d-c;q[0]=2/r;q[1]=0;q[2]=0;q[3]=0;q[4]=0;q[5]=2/t;q[6]=0;q[7]=0;q[8]=0;q[9]=0;q[10]=-2/n;q[11]=0;q[12]=-(e+b)/r;q[13]=-(a+h)/t;q[14]=-(d+c)/n;q[15]=1;this.co[0]=
1;this.co[1]=1}else a=b/a,e=this.Cr,b=this.Mv,q=this.jq,d=e*Math.tan(45*Math.PI/360),a*=d,h=-a,c=-d,q||(q=pc()),r=a-h,t=d-c,n=b-e,q[0]=2*e/r,q[1]=0,q[2]=0,q[3]=0,q[4]=0,q[5]=2*e/t,q[6]=0,q[7]=0,q[8]=(a+h)/r,q[9]=(d+c)/t,q[10]=-(b+e)/n,q[11]=-1,q[12]=0,q[13]=0,q[14]=-(b*e*2)/n,q[15]=0,e=[0,0],b=[0,0],this.Sz(0,0,e),this.Sz(1,1,b),this.co[0]=1/(b[0]-e[0]),this.co[1]=-1/(b[1]-e[1]);e=0;for(b=this.Yb.length;e<b;e++)h=this.Yb[e],h.ej=!1,h.Vy&&(g.useProgram(h.Gn),g.uniformMatrix4fv(h.Vy,!1,this.jq));g.useProgram(this.Yb[this.Tm].Gn);
g.bindTexture(g.TEXTURE_2D,null);g.activeTexture(g.TEXTURE1);g.bindTexture(g.TEXTURE_2D,null);g.activeTexture(g.TEXTURE0);this.qj=this.ei=null;this.dp&&(g.bindFramebuffer(g.FRAMEBUFFER,this.$s),g.bindRenderbuffer(g.RENDERBUFFER,this.dp),g.renderbufferStorage(g.RENDERBUFFER,g.DEPTH_COMPONENT16,this.width,this.height),this.ax||(g.framebufferRenderbuffer(g.FRAMEBUFFER,g.DEPTH_ATTACHMENT,g.RENDERBUFFER,this.dp),this.ax=!0),g.bindRenderbuffer(g.RENDERBUFFER,null),g.bindFramebuffer(g.FRAMEBUFFER,null),
this.Jq=null)}};f.prototype.te=function(){uc(this.Bs,this.Xy,this.KA,this.Ne);sc(this.Ne,this.co)};f.prototype.translate=function(b,a){if(0!==b||0!==a){this.Ei[0]=b;this.Ei[1]=a;this.Ei[2]=0;var g=this.Ne,e=this.Ei,h=e[0],c=e[1],e=e[2];g[12]=g[0]*h+g[4]*c+g[8]*e+g[12];g[13]=g[1]*h+g[5]*c+g[9]*e+g[13];g[14]=g[2]*h+g[6]*c+g[10]*e+g[14];g[15]=g[3]*h+g[7]*c+g[11]*e+g[15]}};f.prototype.scale=function(b,a){if(1!==b||1!==a)this.Ei[0]=b,this.Ei[1]=a,this.Ei[2]=1,sc(this.Ne,this.Ei)};f.prototype.Cn=function(b){if(0!==
b){var a=this.Ne,g,e=Math.sin(b);b=Math.cos(b);var h=a[0],c=a[1],d=a[2],q=a[3],r=a[4],t=a[5],n=a[6],p=a[7];g?a!==g&&(g[8]=a[8],g[9]=a[9],g[10]=a[10],g[11]=a[11],g[12]=a[12],g[13]=a[13],g[14]=a[14],g[15]=a[15]):g=a;g[0]=h*b+r*e;g[1]=c*b+t*e;g[2]=d*b+n*e;g[3]=q*b+p*e;g[4]=h*-e+r*b;g[5]=c*-e+t*b;g[6]=d*-e+n*b;g[7]=q*-e+p*b}};f.prototype.$d=function(){if(!d(this.Xt,this.Ne)){var b=this.Ud();b.type=5;b.Ia?qc(this.Ne,b.Ia):b.Ia=pc(this.Ne);qc(this.Ne,this.Xt);this.Sc=!1}};f.prototype.Tq=function(b){this.ub&&
(32760<b&&(b=32760),this.Yo=this.Bs[2]-this.Cr-b*this.wK)};m.prototype.KF=function(){var b=this.T,a=this.K;0!==this.Kb?(b.depthMask(!0),b.colorMask(!1,!1,!1,!1),b.disable(b.BLEND),b.bindFramebuffer(b.FRAMEBUFFER,a.$s),b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,null,0),b.clear(b.DEPTH_BUFFER_BIT),b.bindFramebuffer(b.FRAMEBUFFER,null),a.Np=!0):(b.depthMask(!1),b.colorMask(!0,!0,!0,!0),b.enable(b.BLEND),a.Np=!1)};m.prototype.OF=function(){this.T.bindTexture(this.T.TEXTURE_2D,
this.lf)};m.prototype.PF=function(){var b=this.T;b.activeTexture(b.TEXTURE1);b.bindTexture(b.TEXTURE_2D,this.lf);b.activeTexture(b.TEXTURE0)};m.prototype.LF=function(){var b=this.Cz,a=this.K;a.Xo=b;a=a.lk;a.Pk&&a.iq!==b&&(a.iq=b,this.T.uniform1f(a.Pk,b))};m.prototype.FF=function(){this.T.drawElements(this.T.TRIANGLES,this.Je,this.T.UNSIGNED_SHORT,this.Kb)};m.prototype.HF=function(){this.T.blendFunc(this.Kb,this.Je)};m.prototype.RF=function(){var b,a,g,e=this.K.Yb,h=this.K.zx;b=0;for(a=e.length;b<
a;b++)g=e[b],b===h&&g.cq?(g.Cv(this.Ia),g.ej=!0):g.ej=!1;qc(this.Ia,this.K.Ns)};m.prototype.GF=function(){var b=this.T,a=this.K;this.lf?(a.qj===this.lf&&(b.activeTexture(b.TEXTURE1),b.bindTexture(b.TEXTURE_2D,null),a.qj=null,b.activeTexture(b.TEXTURE0)),b.bindFramebuffer(b.FRAMEBUFFER,a.$s),a.Np||b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,this.lf,0)):(a.ub||b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,null,0),b.bindFramebuffer(b.FRAMEBUFFER,null))};
m.prototype.CF=function(){var b=this.T,a=this.Kb;0===a?(b.clearColor(this.Ia[0],this.Ia[1],this.Ia[2],this.Ia[3]),b.clear(b.COLOR_BUFFER_BIT)):1===a?(b.enable(b.SCISSOR_TEST),b.scissor(this.Ia[0],this.Ia[1],this.Ia[2],this.Ia[3]),b.clearColor(0,0,0,0),b.clear(b.COLOR_BUFFER_BIT),b.disable(b.SCISSOR_TEST)):b.clear(b.DEPTH_BUFFER_BIT)};m.prototype.JF=function(){var b=this.T;0!==this.Kb?b.enable(b.DEPTH_TEST):b.disable(b.DEPTH_TEST)};m.prototype.EF=function(){var b=this.T,a=this.K;a.ub&&b.disable(b.DEPTH_TEST);
var g=a.Yb[1];b.useProgram(g.Gn);!g.ej&&g.cq&&(g.Cv(a.Ns),g.ej=!0);b.enableVertexAttribArray(g.cf);b.bindBuffer(b.ARRAY_BUFFER,a.Fu);b.vertexAttribPointer(g.cf,4,b.FLOAT,!1,0,0);b.drawArrays(b.POINTS,this.Kb/4,this.Je);g=a.lk;b.useProgram(g.Gn);0<=g.cf&&(b.enableVertexAttribArray(g.cf),b.bindBuffer(b.ARRAY_BUFFER,a.Yn[a.Rg]),b.vertexAttribPointer(g.cf,a.ub?3:2,b.FLOAT,!1,0,0));0<=g.li&&(b.enableVertexAttribArray(g.li),b.bindBuffer(b.ARRAY_BUFFER,a.Nn[a.Rg]),b.vertexAttribPointer(g.li,2,b.FLOAT,!1,
0,0));a.ub&&b.enable(b.DEPTH_TEST)};m.prototype.MF=function(){var b=this.T,a=this.K,g=a.Yb[this.Kb];a.zx=this.Kb;a.lk=g;b.useProgram(g.Gn);!g.ej&&g.cq&&(g.Cv(a.Ns),g.ej=!0);g.Pk&&g.iq!==a.Xo&&(g.iq=a.Xo,b.uniform1f(g.Pk,a.Xo));0<=g.cf&&(b.enableVertexAttribArray(g.cf),b.bindBuffer(b.ARRAY_BUFFER,a.Yn[a.Rg]),b.vertexAttribPointer(g.cf,a.ub?3:2,b.FLOAT,!1,0,0));0<=g.li&&(b.enableVertexAttribArray(g.li),b.bindBuffer(b.ARRAY_BUFFER,a.Nn[a.Rg]),b.vertexAttribPointer(g.li,2,b.FLOAT,!1,0,0))};m.prototype.IF=
function(){var b=this.Ia;this.T.uniform4f(this.K.lk.bu,b[0],b[1],b[2],b[3])};m.prototype.NF=function(){var b,a,g=this.K.lk,e=this.T;b=this.Ia;g.Zm&&this.K.qj!==this.lf&&(e.activeTexture(e.TEXTURE1),e.bindTexture(e.TEXTURE_2D,this.lf),this.K.qj=this.lf,e.activeTexture(e.TEXTURE0));var h=b[0];g.du&&h!==g.fz&&(g.fz=h,e.uniform1f(g.du,h));h=b[1];g.cu&&h!==g.ez&&(g.ez=h,e.uniform1f(g.cu,h));h=b[2];a=b[3];!g.wj||h===g.$y&&a===g.az||(g.$y=h,g.az=a,e.uniform2f(g.wj,h,a));h=b[4];a=b[5];!g.vj||h===g.Yy&&a===
g.Zy||(g.Yy=h,g.Zy=a,e.uniform2f(g.vj,h,a));h=b[6];g.Ym&&h!==g.cz&&(g.cz=h,e.uniform1f(g.Ym,h));h=b[7];g.Xm&&h!==g.bz&&(g.bz=h,e.uniform1f(g.Xm,h));h=b[8];a=b[9];!g.bn||h===g.jz&&a===g.kz||(g.jz=h,g.kz=a,e.uniform2f(g.bn,h,a));h=b[10];a=b[11];!g.$m||h===g.gz&&a===g.hz||(g.gz=h,g.hz=a,e.uniform2f(g.$m,h,a));h=b[12];g.an&&h!==g.iz&&(g.iz=h,e.uniform1f(g.an,h));if(g.Da.length)for(b=0,a=g.Da.length;b<a;b++)h=this.kA[b],h!==g.Wt[b]&&(g.Wt[b]=h,e.uniform1f(g.Da[b][1],h))};f.prototype.Ud=function(){this.wf===
this.Zf.length&&this.Zf.push(new m(0,this));return this.Zf[this.wf++]};f.prototype.Vg=function(){if(0!==this.wf&&!this.T.isContextLost()){var b=this.T;0<this.Gu&&(b.bindBuffer(b.ARRAY_BUFFER,this.Fu),b.bufferSubData(b.ARRAY_BUFFER,0,this.Oz.subarray(0,this.Gu)),a&&0<=a.cf&&"<point>"===a.name&&b.vertexAttribPointer(a.cf,4,b.FLOAT,!1,0,0));if(0<this.of){var a=this.lk;b.bindBuffer(b.ARRAY_BUFFER,this.Yn[this.Rg]);b.bufferSubData(b.ARRAY_BUFFER,0,this.Zn.subarray(0,this.of));a&&0<=a.cf&&"<point>"!==a.name&&
b.vertexAttribPointer(a.cf,this.ub?3:2,b.FLOAT,!1,0,0);b.bindBuffer(b.ARRAY_BUFFER,this.Nn[this.Rg]);b.bufferSubData(b.ARRAY_BUFFER,0,this.On.subarray(0,this.Bi));a&&0<=a.li&&"<point>"!==a.name&&b.vertexAttribPointer(a.li,2,b.FLOAT,!1,0,0)}for(var g,b=0,a=this.wf;b<a;b++)switch(g=this.Zf[b],g.type){case 1:g.FF();break;case 2:g.OF();break;case 3:g.LF();break;case 4:g.HF();break;case 5:g.RF();break;case 6:g.GF();break;case 7:g.CF();break;case 8:g.EF();break;case 9:g.MF();break;case 10:g.NF();break;
case 11:g.PF();break;case 12:g.IF();break;case 13:g.JF();break;case 14:g.KF()}this.Gu=this.Bi=this.of=this.wf=0;this.Np=this.Sc=!1;this.Rg++;4<=this.Rg&&(this.Rg=0)}};f.prototype.Lf=function(b){if(b!==this.My&&!this.Km){var a=this.Ud();a.type=3;this.My=a.Cz=b;this.Sc=!1}};f.prototype.Xb=function(b){if(b!==this.ei){var a=this.Ud();a.type=2;this.ei=a.lf=b;this.Sc=!1}};f.prototype.wi=function(b,a){if((b!==this.Oy||a!==this.Jy)&&!this.Km){var g=this.Ud();g.type=4;g.Kb=b;g.Je=a;this.Oy=b;this.Jy=a;this.Sc=
!1}};f.prototype.Zz=function(){this.wi(this.T.ONE,this.T.ONE_MINUS_SRC_ALPHA)};f.prototype.Kj=function(b,a,g,e,h,c,d,q){15992<=this.of&&this.Vg();var r=this.of,t=this.Bi,n=this.Zn,p=this.On,k=this.Yo;if(this.Sc)this.Zf[this.wf-1].Je+=6;else{var f=this.Ud();f.type=1;f.Kb=this.ub?r:r/2*3;f.Je=6;this.Sc=!0}this.ub?(n[r++]=b,n[r++]=a,n[r++]=k,n[r++]=g,n[r++]=e,n[r++]=k,n[r++]=h,n[r++]=c,n[r++]=k,n[r++]=d,n[r++]=q,n[r++]=k):(n[r++]=b,n[r++]=a,n[r++]=g,n[r++]=e,n[r++]=h,n[r++]=c,n[r++]=d,n[r++]=q);p[t++]=
0;p[t++]=0;p[t++]=1;p[t++]=0;p[t++]=1;p[t++]=1;p[t++]=0;p[t++]=1;this.of=r;this.Bi=t};f.prototype.gf=function(b,a,g,e,h,c,d,q,r){15992<=this.of&&this.Vg();var t=this.of,n=this.Bi,p=this.Zn,k=this.On,f=this.Yo;if(this.Sc)this.Zf[this.wf-1].Je+=6;else{var l=this.Ud();l.type=1;l.Kb=this.ub?t:t/2*3;l.Je=6;this.Sc=!0}var l=r.left,m=r.top,y=r.right;r=r.bottom;this.ub?(p[t++]=b,p[t++]=a,p[t++]=f,p[t++]=g,p[t++]=e,p[t++]=f,p[t++]=h,p[t++]=c,p[t++]=f,p[t++]=d,p[t++]=q,p[t++]=f):(p[t++]=b,p[t++]=a,p[t++]=g,
p[t++]=e,p[t++]=h,p[t++]=c,p[t++]=d,p[t++]=q);k[n++]=l;k[n++]=m;k[n++]=y;k[n++]=m;k[n++]=y;k[n++]=r;k[n++]=l;k[n++]=r;this.of=t;this.Bi=n};f.prototype.Nu=function(b,a,g,e,h,c,d,q,r,t,n,p,k,f,l,m){15992<=this.of&&this.Vg();var y=this.of,D=this.Bi,u=this.Zn,U=this.On,F=this.Yo;if(this.Sc)this.Zf[this.wf-1].Je+=6;else{var J=this.Ud();J.type=1;J.Kb=this.ub?y:y/2*3;J.Je=6;this.Sc=!0}this.ub?(u[y++]=b,u[y++]=a,u[y++]=F,u[y++]=g,u[y++]=e,u[y++]=F,u[y++]=h,u[y++]=c,u[y++]=F,u[y++]=d,u[y++]=q,u[y++]=F):(u[y++]=
b,u[y++]=a,u[y++]=g,u[y++]=e,u[y++]=h,u[y++]=c,u[y++]=d,u[y++]=q);U[D++]=r;U[D++]=t;U[D++]=n;U[D++]=p;U[D++]=k;U[D++]=f;U[D++]=l;U[D++]=m;this.of=y;this.Bi=D};f.prototype.vx=function(b){var a=b.length/2-2,g=a-1,e=b[0],h=b[1],c,d,q,r,t,n,p;for(c=0;c<a;c+=2)d=2*c,q=b[d+2],r=b[d+3],t=b[d+4],n=b[d+5],c===g?this.Kj(e,h,q,r,t,n,t,n):(p=b[d+6],d=b[d+7],this.Kj(e,h,q,r,t,n,p,d))};f.prototype.Zd=function(b){if(this.Tm!==b){if(!this.Yb[b]){if(0===this.Tm)return;b=0}var a=this.Ud();a.type=9;this.Tm=a.Kb=b;this.Sc=
!1}};f.prototype.un=function(b){b=this.Yb[b];return!(!b.wj&&!b.vj)};f.prototype.Lu=function(b){b=this.Yb[b];return!!(b.wj||b.vj||b.Uo)};f.prototype.Ku=function(b){return this.Yb[b].Re};f.prototype.fJ=function(b){b=this.Yb[b];return 0!==b.nm||0!==b.om};f.prototype.lH=function(b){return this.Yb[b].nm};f.prototype.mH=function(b){return this.Yb[b].om};f.prototype.nH=function(b,a){return this.Yb[b].Da[a][2]};f.prototype.Eq=function(b){return this.Yb[b].Eo};f.prototype.ol=function(b,a,g,e,h,c,d,q,r,t,n,
p,k,f,l){var m=this.Yb[this.Tm],y,D;if(m.HH||l.length){y=this.Ud();y.type=10;y.Ia?qc(this.Ne,y.Ia):y.Ia=pc();D=y.Ia;D[0]=a;D[1]=g;D[2]=e;D[3]=h;D[4]=c;D[5]=d;D[6]=q;D[7]=r;D[8]=t;D[9]=n;D[10]=p;D[11]=k;D[12]=f;m.Zm?y.lf=b:y.lf=null;if(l.length)for(g=y.kA,g.length=l.length,b=0,a=l.length;b<a;b++)g[b]=l[b];this.Sc=!1}};f.prototype.clear=function(b,a,g,e){var h=this.Ud();h.type=7;h.Kb=0;h.Ia||(h.Ia=pc());h.Ia[0]=b;h.Ia[1]=a;h.Ia[2]=g;h.Ia[3]=e;this.Sc=!1};f.prototype.clearRect=function(b,a,g,e){if(!(0>
g||0>e)){var h=this.Ud();h.type=7;h.Kb=1;h.Ia||(h.Ia=pc());h.Ia[0]=b;h.Ia[1]=a;h.Ia[2]=g;h.Ia[3]=e;this.Sc=!1}};f.prototype.cA=function(b){if(this.ub&&(b=!!b,this.Km!==b)){var a=this.Ud();a.type=14;a.Kb=b?1:0;this.Sc=!1;this.Km=b;this.Jq=null;this.Km?this.Zd(2):this.Zd(0)}};f.prototype.aA=function(b){if(this.ub){var a=this.Ud();a.type=13;a.Kb=b?1:0;this.Sc=!1}};f.prototype.Px=function(){qc(this.Xt,k);this.te();this.$d();var b=this.width/2,a=this.height/2;this.Kj(-b,a,b,a,b,-a,-b,-a);qc(k,this.Ne);
this.$d()};f.prototype.$z=function(b,a,g){this.Zd(3);var e=this.Ud();e.type=12;e.Ia||(e.Ia=pc());e.Ia[0]=b;e.Ia[1]=a;e.Ia[2]=g;e.Ia[3]=1;this.Sc=!1};f.prototype.OJ=function(){this.Zd(0)};f.prototype.rJ=function(){this.Zd(2)};f.prototype.dJ=function(){this.Vg();this.T.flush()};var c=[],q={};f.prototype.mF=function(){M(c);q={}};f.prototype.Ok=function(b,a,g){var e;e=!1;a=!!a;var h=b.src+","+e+","+a+(e?",undefined":""),d=null;if("undefined"!==typeof b.src&&q.hasOwnProperty(h))return d=q[h],d.No++,d;
this.Vg();var k=this.T,f=ka(b.width)&&ka(b.height),d=k.createTexture();k.bindTexture(k.TEXTURE_2D,d);k.pixelStorei(k.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var r=k.RGBA,t=k.RGBA,n=k.UNSIGNED_BYTE;if(g&&!this.bh)switch(g){case 1:t=r=k.RGB;break;case 2:n=k.UNSIGNED_SHORT_4_4_4_4;break;case 3:n=k.UNSIGNED_SHORT_5_5_5_1;break;case 4:t=r=k.RGB,n=k.UNSIGNED_SHORT_5_6_5}if(1===this.version&&!f&&e){g=document.createElement("canvas");g.width=ma(b.width);g.height=ma(b.height);var p=g.getContext("2d");"undefined"!==
typeof p.imageSmoothingEnabled?p.imageSmoothingEnabled=a:(p.webkitImageSmoothingEnabled=a,p.mozImageSmoothingEnabled=a,p.msImageSmoothingEnabled=a);p.drawImage(b,0,0,b.width,b.height,0,0,g.width,g.height);k.texImage2D(k.TEXTURE_2D,0,r,t,n,g)}else k.texImage2D(k.TEXTURE_2D,0,r,t,n,b);e?(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_S,k.REPEAT),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_T,k.REPEAT)):(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_S,k.CLAMP_TO_EDGE),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_T,
k.CLAMP_TO_EDGE));a?(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MAG_FILTER,k.LINEAR),(f||2<=this.version)&&this.Ex?(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MIN_FILTER,k.LINEAR_MIPMAP_LINEAR),k.generateMipmap(k.TEXTURE_2D)):k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MIN_FILTER,k.LINEAR)):(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MAG_FILTER,k.NEAREST),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MIN_FILTER,k.NEAREST));k.bindTexture(k.TEXTURE_2D,null);this.ei=null;d.Mi=b.width;d.Li=b.height;d.No=1;d.ix=h;c.push(d);return q[h]=
d};f.prototype.nd=function(b,a,g,e,h){this.Vg();var d=this.T;this.bh&&(e=!1);var k=d.createTexture();d.bindTexture(d.TEXTURE_2D,k);d.texImage2D(d.TEXTURE_2D,0,d.RGBA,b,a,0,d.RGBA,e?d.UNSIGNED_SHORT_4_4_4_4:d.UNSIGNED_BYTE,null);h?(d.texParameteri(d.TEXTURE_2D,d.TEXTURE_WRAP_S,d.REPEAT),d.texParameteri(d.TEXTURE_2D,d.TEXTURE_WRAP_T,d.REPEAT)):(d.texParameteri(d.TEXTURE_2D,d.TEXTURE_WRAP_S,d.CLAMP_TO_EDGE),d.texParameteri(d.TEXTURE_2D,d.TEXTURE_WRAP_T,d.CLAMP_TO_EDGE));d.texParameteri(d.TEXTURE_2D,
d.TEXTURE_MAG_FILTER,g?d.LINEAR:d.NEAREST);d.texParameteri(d.TEXTURE_2D,d.TEXTURE_MIN_FILTER,g?d.LINEAR:d.NEAREST);d.bindTexture(d.TEXTURE_2D,null);this.ei=null;k.Mi=b;k.Li=a;c.push(k);return k};f.prototype.ao=function(b,a,g){this.Vg();var e=this.T;this.bh&&(g=!1);e.bindTexture(e.TEXTURE_2D,a);e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);try{e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,g?e.UNSIGNED_SHORT_4_4_4_4:e.UNSIGNED_BYTE,b)}catch(h){console&&console.error&&console.error("Error updating WebGL texture: ",
h)}e.bindTexture(e.TEXTURE_2D,null);this.ei=null};f.prototype.deleteTexture=function(b){b&&("undefined"!==typeof b.No&&1<b.No?b.No--:(this.Vg(),b===this.ei&&(this.T.bindTexture(this.T.TEXTURE_2D,null),this.ei=null),b===this.qj&&(this.T.activeTexture(this.T.TEXTURE1),this.T.bindTexture(this.T.TEXTURE_2D,null),this.T.activeTexture(this.T.TEXTURE0),this.qj=null),Ga(c,b),"undefined"!==typeof b.ix&&delete q[b.ix],this.T.deleteTexture(b)))};f.prototype.hf=function(b){if(b!==this.Jq){var a=this.Ud();a.type=
6;this.Jq=a.lf=b;this.Sc=!1}};ob=f})();
(function(){function f(a){if(a&&(a.getContext||a.dc)&&!a.c2runtime){a.c2runtime=this;var e=this;this.sd=(this.Op=/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.Tc=!!a.dc;this.yy="undefined"!==typeof window.AppMobi||
this.Tc;this.ke=!!window.c2cocoonjs;this.Ef=!!window.c2ejecta;this.ke&&(CocoonJS.App.onSuspended.addEventListener(function(){e.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){e.setSuspended(!1)}));this.Ef&&(document.addEventListener("pagehide",function(){e.setSuspended(!0)}),document.addEventListener("pageshow",function(){e.setSuspended(!1)}),document.addEventListener("resize",function(){e.setSize(window.innerWidth,window.innerHeight)}));this.ob=this.Tc||this.ke||this.Ef;this.Mm=
/edge\//i.test(navigator.userAgent);this.bh=(/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent))&&!this.Mm;this.Cy=/tizen/i.test(navigator.userAgent);this.Lp=/android/i.test(navigator.userAgent)&&!this.Cy&&!this.bh&&!this.Mm;this.Gy=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&!this.bh&&!this.Mm;this.dI=/ipad/i.test(navigator.userAgent);this.nj=this.Gy||this.dI||this.Ef;this.Lt=(/chrome/i.test(navigator.userAgent)||
/chromium/i.test(navigator.userAgent))&&!this.bh&&!this.Mm;this.xy=/amazonwebappplatform/i.test(navigator.userAgent);this.UH=/firefox/i.test(navigator.userAgent);this.XH=/safari/i.test(navigator.userAgent)&&!this.Lt&&!this.bh&&!this.Mm;this.aI=/windows/i.test(navigator.userAgent);this.Pp="undefined"!==typeof window.c2nodewebkit||"undefined"!==typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.Ey=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);
this.bI=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.Pm=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.St=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.Qt=!!window.cr_windows10;this.Dy=this.Ey||this.bI||this.St||this.Qt;this.SH=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.Mp=this.Lp&&!this.Lt&&!this.Op&&!this.UH&&!this.xy&&!this.ob;this.devicePixelRatio=
1;this.le=this.sd||this.Op||this.yy||this.ke||this.Lp||this.nj||this.Pm||this.St||this.SH||this.Cy||this.Ef;this.le||(this.le=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));this.Rp=!!(this.nj&&this.sd&&window.webkit);"undefined"===typeof cr_is_preview||this.Pp||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||(this.Pp=!0);this.canvas=a;this.mx=document.getElementById("c2canvasdiv");
this.K=this.T=null;this.zt="(unavailable)";this.ub=!1;this.Ti=0;this.Ab=null;this.rp=!1;this.yz=this.zz=0;this.canvas.oncontextmenu=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.onselectstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.Tc&&(window.c2runtime=this);this.Pp&&(window.ondragover=function(a){a.preventDefault();return!1},window.ondrop=function(a){a.preventDefault();return!1},window.nwgui&&window.nwgui.App.clearCache&&window.nwgui.App.clearCache());
this.Mp&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=a.width;this.height=a.height;this.ka=this.width;this.ja=this.height;this.Vo=this.width;this.jm=this.height;this.Kk=window.innerWidth;this.Jk=window.innerHeight;this.aa=!0;this.Om=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.P=[];this.Ob=[];this.Mk={};this.Ff=[];this.Zs={};this.Wg=[];this.Wj=[];this.pr=[];this.ME=[];this.NE=[];this.av=this.Iy=this.gv=null;
this.Qi={};this.Nt=this.bi=!1;this.Ke=0;this.Mt=this.Pt=!1;this.yf=[];this.Lm=!1;this.$p=this.Wu="";this.Lc=null;this.gh="";this.Ln=this.oA=!1;this.qp=[];this.Si=this.Ug=0;this.pz=30;this.To=this.cn=0;this.Di=1;this.rc=new eb;this.Jh=new eb;this.qq=this.yp=this.Xi=this.xe=this.sj=this.uk=this.Wp=0;this.Ni=null;this.fp=[];this.Ys=[];this.kp=-1;this.eu=[[]];this.wv=this.dq=0;this.Fq(null);this.dn=[];this.Qk=-1;this.qm=this.sz=this.mn=0;this.Mn=[];this.tv=this.Ou=-1;this.Ek=!0;this.uj=0;this.Nm=!1;this.UJ=
0;this.ik=null;this.$a=this.cj=!1;this.xz=new ca;this.mu=new ca;this.nu=new ca;this.yn=[];this.Nf=new gb([]);this.jv=new gb([]);this.hk=[];this.vk={};this.Uh={};this.Ph={};this.xl={};this.cx={};this.Sy=this.Yp=this.tc=this.Kc=this.Ry=this.Xp=this.ra=null;this.ul=this.Tt=!1;this.et=[null,null];this.Zi=0;this.pp="";this.jh={};this.Jn=this.ji=null;this.qA="";this.pq=[];this.oJ()}}function l(a,e){return 128>=e?a[3]:256>=e?a[2]:512>=e?a[1]:a[0]}function d(){try{return!!window.indexedDB}catch(a){return!1}}
function m(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function k(a,e,b,h){try{var n=indexedDB.open("_C2SaveStates");n.onupgradeneeded=m;n.onerror=h;n.onsuccess=function(n){n=n.target.result;n.onerror=h;n.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,data:e}).onsuccess=b}}catch(g){h(g)}}function c(a,e,b){try{var h=indexedDB.open("_C2SaveStates");h.onupgradeneeded=m;h.onerror=b;h.onsuccess=function(h){h=h.target.result;h.onerror=b;var n=h.transaction(["saves"]).objectStore("saves").get(a);
n.onsuccess=function(){n.result?e(n.result.data):e(null)}}}catch(n){b(n)}}function q(){ea("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?window.location.reload(!0):window.location=window.location+"?continuous"}function b(a){var e,b={};for(e in a)!a.hasOwnProperty(e)||a[e]instanceof ca||a[e]&&"undefined"!==typeof a[e].yL||"spriteCreatedDestroyCallback"!==e&&(b[e]=a[e]);return b}var a=window.requestAnimationFrame||window.mozRequestAnimationFrame||
window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;f.prototype.oJ=function(){var a=this;if(this.Rp)this.JG(function(e){a.Wm(JSON.parse(e))},function(){alert("Error fetching data.js")});else{var e;this.Pm?e=new ActiveXObject("Microsoft.XMLHTTP"):e=new XMLHttpRequest;var b="data.js";if(this.Ey||this.Pm||this.St||this.Qt)b="data.json";e.open("GET",b,!0);var h=!1;if(!this.ob&&"response"in e&&"responseType"in e)try{e.responseType="json",h="json"===e.responseType}catch(n){h=
!1}if(!h&&"responseType"in e)try{e.responseType="text"}catch(g){}if("overrideMimeType"in e)try{e.overrideMimeType("application/json; charset=utf-8")}catch(p){}this.Pm?e.onreadystatechange=function(){4===e.readyState&&a.Wm(JSON.parse(e.responseText))}:(e.onload=function(){if(h)a.Wm(e.response);else if(a.Ef){var b=e.responseText,b=b.substr(b.indexOf("{"));a.Wm(JSON.parse(b))}else a.Wm(JSON.parse(e.responseText))},e.onerror=function(a){ha("Error requesting "+b+":");ha(a)});e.send()}};f.prototype.OH=
function(){var a=this,e,b,h,n,g,p,c,d,k;this.lj=(!this.ob||this.Ef||this.sd)&&this.hK&&!this.Mp;0===this.ad&&this.nj&&(this.lj=!1);this.devicePixelRatio=this.lj?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.kd();0<this.ad&&this.setSize(window.innerWidth,window.innerHeight,!0);this.canvas.addEventListener("webglcontextlost",function(e){e.preventDefault();a.EI();ea("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},
!1);this.canvas.addEventListener("webglcontextrestored",function(){a.K.oy();a.K.zh(a.K.width,a.K.height,!0);a.Kc=null;a.tc=null;a.et[0]=null;a.et[1]=null;a.FI();a.aa=!0;ea("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);try{this.Xs&&(this.ke||this.Ef||!this.ob)&&(e={alpha:!0,depth:!1,antialias:!1,powerPreference:"high-performance",failIfMajorPerformanceCaveat:!0},this.T=this.canvas.getContext("webgl2",e)||this.canvas.getContext("webgl",e)||this.canvas.getContext("experimental-webgl",
e))}catch(r){}if(this.T){if(e=this.T.getExtension("WEBGL_debug_renderer_info"))this.zt=this.T.getParameter(e.UNMASKED_RENDERER_WEBGL)+" ["+this.T.getParameter(e.UNMASKED_VENDOR_WEBGL)+"]";this.ub&&(this.zt+=" [front-to-back enabled]");this.ob||(this.gd=document.createElement("canvas"),jQuery(this.gd).appendTo(this.canvas.parentNode),this.gd.oncontextmenu=function(){return!1},this.gd.onselectstart=function(){return!1},this.gd.width=Math.round(this.Vo*this.devicePixelRatio),this.gd.height=Math.round(this.jm*
this.devicePixelRatio),jQuery(this.gd).css({width:this.Vo+"px",height:this.jm+"px"}),this.Qz(),this.zu=this.gd.getContext("2d"));this.K=new ob(this.T,this.le,this.ub);this.K.zh(this.canvas.width,this.canvas.height);this.K.Ex=0!==this.SF;this.Ab=null;e=0;for(b=this.P.length;e<b;e++)for(g=this.P[e],h=0,n=g.ua.length;h<n;h++)c=g.ua[h],c.xc=this.K.ut(c.id),c.Re=this.K.Ku(c.xc),this.ul=this.ul||this.K.un(c.xc);e=0;for(b=this.Ff.length;e<b;e++){d=this.Ff[e];h=0;for(n=d.ua.length;h<n;h++)c=d.ua[h],c.xc=
this.K.ut(c.id),c.Re=this.K.Ku(c.xc);d.Tf();h=0;for(n=d.xa.length;h<n;h++){k=d.xa[h];g=0;for(p=k.ua.length;g<p;g++)c=k.ua[g],c.xc=this.K.ut(c.id),c.Re=this.K.Ku(c.xc),this.ul=this.ul||this.K.un(c.xc);k.Tf()}}}else{if(0<this.ad&&this.Tc){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.Ab=AppMobi.canvas.getContext("2d");try{this.Ab.samplingMode=this.pb?"smooth":"sharp",this.Ab.globalScale=1,this.Ab.HTML5CompatibilityMode=!0,this.Ab.imageSmoothingEnabled=
this.pb}catch(q){}0!==this.width&&0!==this.height&&(this.Ab.width=this.width,this.Ab.height=this.height)}this.Ab||(this.ke?(e={antialias:!!this.pb,alpha:!0},this.Ab=this.canvas.getContext("2d",e)):(e={alpha:!0},this.Ab=this.canvas.getContext("2d",e)),this.Sq(this.Ab,this.pb));this.zu=this.gd=null}this.yA=function(e){a.Ba(!1,e)};window==window.top||this.ob||this.Dy||this.Pm||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},
!0));"undefined"!==typeof cr_is_preview&&(this.ke&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(ea("Reloading for continuous preview"),this.$p="__c2_continuouspreview",this.Ln=!0),this.SI&&!this.le&&(jQuery(window).focus(function(){a.setSuspended(!1)}),jQuery(window).blur(function(){var e=window.parent;e&&e.document.hasFocus()||a.setSuspended(!0)})));window.addEventListener("blur",function(){a.ri()});this.ob||(e=function(a){if(nb(a)&&
document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(e){}},"undefined"!==typeof PointerEvent?document.addEventListener("pointerdown",e):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",e):document.addEventListener("touchstart",e),document.addEventListener("mousedown",e));0===this.ad&&this.lj&&1<this.devicePixelRatio&&this.setSize(this.gc,this.ec,!0);this.IA();this.EH();
this.go();this.R={}};f.prototype.setSize=function(a,e,b){var h=0,n=0,g=0,p=0,p=0;if(this.Kk!==a||this.Jk!==e||b){this.Kk=a;this.Jk=e;var c=this.ad;if((g=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.Nm)&&!this.sd)||0!==this.ad||b)g&&0<this.Zi&&(c=this.Zi),b=this.devicePixelRatio,4<=c?(g=this.gc/this.ec,a/e>g?(g*=e,5===c?(p=g*b/this.gc,1<p?p=Math.floor(p):1>p&&(p=1/Math.ceil(1/p)),g=this.gc*p/b,p=this.ec*p/b,h=(a-g)/2,n=(e-p)/2,a=g,
e=p):(h=(a-g)/2,a=g)):(p=a/g,5===c?(p=p*b/this.ec,1<p?p=Math.floor(p):1>p&&(p=1/Math.ceil(1/p)),g=this.gc*p/b,p=this.ec*p/b,h=(a-g)/2,n=(e-p)/2,a=g):n=(e-p)/2,e=p)):this.Pp&&this.Nm&&0===this.Qx&&(h=Math.floor((a-this.gc)/2),n=Math.floor((e-this.ec)/2),a=this.gc,e=this.ec),2>c&&(this.Yl=b),this.Vo=Math.round(a),this.jm=Math.round(e),this.width=Math.round(a*b),this.height=Math.round(e*b),this.aa=!0,this.TA?(this.ka=this.width,this.ja=this.height,this.Ee=!0):this.width<this.gc&&this.height<this.ec||
1===c?(this.ka=this.width,this.ja=this.height,this.Ee=!0):(this.ka=this.gc,this.ja=this.ec,this.Ee=!1,2===c?(g=this.gc/this.ec,c=this.Kk/this.Jk,c<g?this.ka=this.ja*c:c>g&&(this.ja=this.ka/c)):3===c&&(g=this.gc/this.ec,c=this.Kk/this.Jk,c>g?this.ka=this.ja*c:c<g&&(this.ja=this.ka/c))),this.mx&&!this.ob&&(jQuery(this.mx).css({width:Math.round(a)+"px",height:Math.round(e)+"px","margin-left":Math.floor(h)+"px","margin-top":Math.floor(n)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(a)+
"px",height:Math.round(e)+"px"})),this.canvas&&(this.canvas.width=Math.round(a*b),this.canvas.height=Math.round(e*b),this.Ef?(this.canvas.style.left=Math.floor(h)+"px",this.canvas.style.top=Math.floor(n)+"px",this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(e)+"px"):this.lj&&!this.ob&&(this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(e)+"px")),this.gd&&(this.gd.width=Math.round(a*b),this.gd.height=Math.round(e*b),this.gd.style.width=this.Vo+
"px",this.gd.style.height=this.jm+"px"),this.K&&this.K.zh(Math.round(a*b),Math.round(e*b)),this.Tc&&this.Ab&&(this.Ab.width=Math.round(a),this.Ab.height=Math.round(e)),this.Ab&&this.Sq(this.Ab,this.pb),this.IA(),this.Gy&&!this.sd&&window.scrollTo(0,0)}};f.prototype.IA=function(){if(this.QE&&0!==this.wu){var a="portrait";2===this.wu&&(a="landscape");try{screen.orientation&&screen.orientation.lock?screen.orientation.lock(a).catch(function(){}):screen.lockOrientation?screen.lockOrientation(a):screen.webkitLockOrientation?
screen.webkitLockOrientation(a):screen.mozLockOrientation?screen.mozLockOrientation(a):screen.msLockOrientation&&screen.msLockOrientation(a)}catch(e){console&&console.warn&&console.warn("Failed to lock orientation: ",e)}}};f.prototype.EI=function(){this.K.mF();this.Tt=!0;var a,e,b;a=0;for(e=this.P.length;a<e;a++)b=this.P[a],b.oi&&b.oi()};f.prototype.FI=function(){this.Tt=!1;var a,e,b;a=0;for(e=this.P.length;a<e;a++)b=this.P[a],b.al&&b.al()};f.prototype.Qz=function(){if(!this.ob){var a=(document.mozFullScreen||
document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.Nm)&&!this.sd?jQuery(this.canvas).offset():jQuery(this.canvas).position();a.position="absolute";jQuery(this.gd).css(a)}};var g=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;f.prototype.setSuspended=function(a){var e;if(a&&!this.Om)for(ea("[Construct 2] Suspending"),this.Om=!0,-1!==this.Ou&&g&&g(this.Ou),-1!==
this.tv&&clearTimeout(this.tv),a=0,e=this.Mn.length;a<e;a++)this.Mn[a](!0);else if(!a&&this.Om){ea("[Construct 2] Resuming");this.Om=!1;this.Wp=Ya();this.sj=Ya();a=this.cn=this.yp=0;for(e=this.Mn.length;a<e;a++)this.Mn[a](!1);this.Ba(!1)}};f.prototype.Vw=function(a){this.Mn.push(a)};f.prototype.Mh=function(a){return this.pq[a]};f.prototype.Wm=function(a){a&&a.project||ha("Project model unavailable");a=a.project;this.name=a[0];this.Mx=a[1];this.ad=a[12];this.Qx=a[12];this.gc=a[10];this.ec=a[11];this.Jz=
this.gc/2;this.Kz=this.ec/2;this.ob&&!this.Ef&&(4<=a[12]||0===a[12])&&(ea("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.Qx=this.ad=3);this.Hv=a[18];this.ki=a[19];if(0===this.ki){var e=new Image;e.crossOrigin="anonymous";this.dA(e,"loading-logo.png");this.ji={hq:e}}else if(4===this.ki){e=new Image;e.src="";var b=new Image;b.src="";var h=new Image;h.src="";var g=new Image;g.src="";var n=new Image;n.src="";var p=new Image;p.src=
"";var c=new Image;c.src="";var d=new Image;d.src="";var k=new Image;k.src="";var r=new Image;r.src="";var q=new Image;q.src="";var t=new Image;t.src="";this.ji={hq:[e,b,h,g],$I:[n,p,c,d],qK:[k,r,q,t]}}this.mn=a[21];this.pq=wc();this.Ag=new S(this);e=0;for(b=a[2].length;e<b;e++)c=a[2][e],h=this.Mh(c[0]),pb(c,h.prototype),d=new h(this),d.dr=c[1],d.di=c[2],d.CL=c[5],d.rz=c[9],d.H&&d.H(),this.plugins.push(d);this.pq=wc();e=0;for(b=a[3].length;e<b;e++){c=a[3][e];n=this.Mh(c[1]);d=null;h=0;for(g=this.plugins.length;h<
g;h++)if(this.plugins[h]instanceof n){d=this.plugins[h];break}k=new d.J(d);k.name=c[0];k.U=c[2];k.Kt=c[3].slice(0);k.iK=c[3].length;k.TE=c[4];k.RG=c[5];k.Oa=c[11];k.U?(k.zj=[],k.Xg=this.qm++,k.Hb=null):(k.zj=null,k.Xg=-1,k.Hb=[]);k.np=null;k.rk=null;k.Fx=null;k.ed=!1;k.ee=null;c[6]?(k.Pn=c[6][0],k.lv=c[6][1],k.Qn=c[6][2]):(k.Pn=null,k.lv=0,k.Qn=0);c[7]?k.be=c[7]:k.be=null;k.index=e;k.n=[];k.bp=[];k.Ch=[new qb(k)];k.ag=0;k.Ce=null;k.wF=0;k.ql=!0;k.rr=rb;k.xm=sb;k.iH=wb;k.la=xb;k.vn=yb;k.xg=Ab;k.Qe=
Cb;k.Bp=Db;k.ht=Eb;k.lt=Fb;k.de=Gb;k.nt=Hb;k.em=new hb(this.gc,this.ec);k.Fo=!0;k.Go=!1;k.R={};k.toString=Ib;k.Ob=[];h=0;for(g=c[8].length;h<g;h++){r=c[8][h];q=this.Mh(r[1]);t=null;n=0;for(p=this.Ob.length;n<p;n++)if(this.Ob[n]instanceof q){t=this.Ob[n];break}t||(t=new q(this),t.mq=[],t.ni=new ca,t.H&&t.H(),this.Ob.push(t),xc&&t instanceof xc&&(this.gv=t),yc&&t instanceof yc&&(this.Iy=t),mc.RJ&&t instanceof mc.RJ&&(this.av=t));-1===t.mq.indexOf(k)&&t.mq.push(k);n=new t.J(t,k);n.name=r[0];n.Oa=r[2];
n.H();k.Ob.push(n)}k.global=c[9];k.Ot=c[10];k.ua=[];h=0;for(g=c[12].length;h<g;h++)k.ua.push({id:c[12][h][0],name:c[12][h][1],xc:-1,Re:!1,Nb:!0,index:h});k.kr=c[13];this.Hv&&!k.U&&!k.Ot&&d.di||k.H();k.name&&(this.types[k.name]=k);this.P.push(k);d.dr&&(h=new d.G(k),h.uid=this.mn++,h.Uz=this.sz++,h.gj=0,h.Bm=Jb,h.toString=Kb,h.q=c[14],h.H(),k.n.push(h),this.jh[h.uid.toString()]=h)}e=0;for(b=a[4].length;e<b;e++)for(n=a[4][e],p=this.P[n[0]],h=1,g=n.length;h<g;h++)c=this.P[n[h]],c.Hb.push(p),p.zj.push(c);
e=0;for(b=a[28].length;e<b;e++){n=a[28][e];p=[];h=0;for(g=n.length;h<g;h++)p.push(this.P[n[h]]);h=0;for(g=p.length;h<g;h++)p[h].ed=!0,p[h].ee=p}if(0<this.qm)for(e=0,b=this.P.length;e<b;e++)if(c=this.P[e],!c.U&&c.Hb.length){c.np=Array(this.qm);c.rk=Array(this.qm);c.Fx=Array(this.qm);k=[];h=t=q=r=0;for(g=c.Hb.length;h<g;h++)for(d=c.Hb[h],c.np[d.Xg]=r,r+=d.iK,c.rk[d.Xg]=q,q+=d.TE,c.Fx[d.Xg]=t,t+=d.RG,n=0,p=d.ua.length;n<p;n++)k.push(ya({},d.ua[n]));c.ua=k.concat(c.ua);h=0;for(g=c.ua.length;h<g;h++)c.ua[h].index=
h}e=0;for(b=a[5].length;e<b;e++)c=a[5][e],h=new Lb(this,c),this.Mk[h.name]=h,this.Ff.push(h);e=0;for(b=a[6].length;e<b;e++)c=a[6][e],h=new Ob(this,c),this.Zs[h.name]=h,this.Wg.push(h);e=0;for(b=this.Wg.length;e<b;e++)this.Wg[e].ic();e=0;for(b=this.Wg.length;e<b;e++)this.Wg[e].Av();e=0;for(b=this.pr.length;e<b;e++)this.pr[e].ic();M(this.pr);this.PE=a[7];this.pp=a[8];this.vd=a[9];this.Yl=1;this.Xs=a[13];this.pb=a[14];this.rx=a[15];this.hK=a[17];this.wu=a[20];this.QE=0<this.wu;this.SI=a[22];this.Ee=
this.TA=a[23];this.SF=a[24];this.bJ=a[25];this.ub=a[27]&&!this.bh;this.er=Date.now();M(this.pq);this.OH()};var e=!1,h=0,v=[];f.prototype.hJ=function(a,e){function b(){h--;n.mz()}var n=this;a.addEventListener("load",b);a.addEventListener("error",b);v.push([a,e]);this.mz()};f.prototype.mz=function(){for(var a;v.length&&100>h;)h++,a=v.shift(),this.dA(a[0],a[1])};f.prototype.Ar=function(a,b){a.cocoonLazyLoad=!0;a.onerror=function(b){e=a.hx=!0;console&&console.error&&console.error("Error loading image '"+
a.src+"': ",b)};this.Ef?a.src=b:a.src||("undefined"!==typeof XAPKReader?XAPKReader.get(b,function(e){a.src=e},function(h){e=a.hx=!0;console&&console.error&&console.error("Error extracting image '"+b+"' from expansion file: ",h)}):(a.crossOrigin="anonymous",this.hJ(a,b)));this.Wj.push(a)};f.prototype.MG=function(a){var e,b;e=0;for(b=this.Wj.length;e<b;e++)if(this.Wj[e].oF===a)return this.Wj[e];return null};var x=0,w=!1;f.prototype.EH=function(){this.ik&&(x=this.ik.KJ(this.PE))};f.prototype.$w=function(){var a=
x,e=0,b=0,h=!0,n,g,b=0;for(n=this.Wj.length;b<n;b++){g=this.Wj[b];var p=g.Js;if(!p||0>=p)p=5E4;a+=p;g.src&&(g.complete||g.loaded)&&!g.hx?e+=p:h=!1}h&&this.bJ&&this.ik&&(w||(this.ik.VJ(),w=!0),b=this.ik.kH(),e+=b,b<x&&(h=!1));this.Ja=0==a?1:e/a;return h};var r=!1;f.prototype.go=function(){if(this.Ab||this.K){var b=this.Ab||this.zu;this.gd&&this.Qz();var h=window.innerWidth,n=window.innerHeight;this.Kk===h&&this.Jk===n||this.setSize(h,n);this.Ja=0;this.Qy=-1;var g=this;if(this.$w()&&(4!==this.ki||r))this.FH();
else{n=Date.now()-this.er;if(b){var p=this.width,c=this.height,h=this.devicePixelRatio;if(3>this.ki&&(this.ke||500<=n&&this.Qy!=this.Ja)){b.clearRect(0,0,p,c);var n=p/2,c=c/2,p=0===this.ki&&this.ji.hq.complete,d=40*h,k=0,q=80*h,t;if(p){var f=this.ji.hq,q=f.width*h;t=f.height*h;d=q/2;k=t/2;b.drawImage(f,ra(n-d),ra(c-k),q,t)}1>=this.ki?(n=ra(n-d)+.5,c=ra(c+(k+(p?12*h:0)))+.5,b.fillStyle=e?"red":"DodgerBlue",b.fillRect(n,c,Math.floor(q*this.Ja),6*h),b.strokeStyle="black",b.strokeRect(n,c,q,6*h),b.strokeStyle=
"white",b.strokeRect(n-1*h,c-1*h,q+2*h,8*h)):2===this.ki&&(b.font=this.Ef?"12pt ArialMT":"12pt Arial",b.fillStyle=e?"#f00":"#999",b.KL="middle",h=Math.round(100*this.Ja)+"%",p=b.measureText?b.measureText(h):null,b.fillText(h,n-(p?p.width:0)/2,c));this.Qy=this.Ja}else if(4===this.ki){this.ZF(b);a?a(function(){g.go()}):setTimeout(function(){g.go()},16);return}}setTimeout(function(){g.go()},this.ke?10:100)}}};var t=-1,n="undefined"===typeof cr_is_preview?200:0,p=!0,G=!1,W=0,T=0,O="undefined"===typeof cr_is_preview?
3E3:0,y=null,D=null,u=0;f.prototype.ZF=function(a){if(!r){for(var b=Math.ceil(this.width),h=Math.ceil(this.height),g=this.ji.hq,c=this.ji.$I,d=this.ji.qK,k=0;4>k;++k)if(!g[k].complete||!c[k].complete||!d[k].complete)return;0===u&&(t=Date.now());var k=Date.now(),q=!1,f=a,w,m;p||G?(a.clearRect(0,0,b,h),y&&y.width===b&&y.height===h||(y=document.createElement("canvas"),y.width=b,y.height=h,D=y.getContext("2d")),f=D,q=!0,p&&1===u&&(t=Date.now())):a.globalAlpha=1;f.fillStyle="#333333";f.fillRect(0,0,b,
h);256<this.jm?(w=Ha(.22*h,105,.6*b),m=.25*w,f.drawImage(l(c,w),.5*b-w/2,.2*h-m/2,w,m),m=w=Math.min(.395*h,.95*b),f.drawImage(l(g,w),.5*b-w/2,.485*h-m/2,w,m),w=Ha(.22*h,105,.6*b),m=.25*w,f.drawImage(l(d,w),.5*b-w/2,.868*h-m/2,w,m),f.fillStyle="#3C3C3C",w=b,m=Math.max(.005*h,2),f.fillRect(0,.8*h-m/2,w,m),f.fillStyle=e?"red":"#E0FF65",w=b*this.Ja,f.fillRect(.5*b-w/2,.8*h-m/2,w,m)):(m=w=.55*h,f.drawImage(l(g,w),.5*b-w/2,.45*h-m/2,w,m),f.fillStyle="#3C3C3C",w=b,m=Math.max(.005*h,2),f.fillRect(0,.85*h-
m/2,w,m),f.fillStyle=e?"red":"#E0FF65",w=b*this.Ja,f.fillRect(.5*b-w/2,.85*h-m/2,w,m));q&&(p?a.globalAlpha=0===u?0:Math.min((k-t)/300,1):G&&(a.globalAlpha=Math.max(1-(k-T)/300,0)),a.drawImage(y,0,0,b,h));p&&300<=k-t&&2<=u&&(p=!1,W=k);!p&&k-W>=O&&!G&&1<=this.Ja&&(G=!0,T=k);if(G&&k-T>=300+n||"undefined"!==typeof cr_is_preview&&1<=this.Ja&&500>Date.now()-t)r=!0,G=p=!1,this.ji=D=y=null;++u}};f.prototype.FH=function(){this.gd&&(this.canvas.parentNode.removeChild(this.gd),this.gd=this.zu=null);this.er=
Date.now();this.sj=Ya();var a,e,b;if(this.Hv)for(a=0,e=this.P.length;a<e;a++)b=this.P[a],b.U||b.Ot||!b.Z.di||b.H();else this.Ek=!1;a=0;for(e=this.Ff.length;a<e;a++)this.Ff[a].qF();2<=this.ad&&(a=this.gc/this.ec,e=this.width/this.height,this.Yl=2!==this.ad&&e>a||2===this.ad&&e<a?this.height/this.ec:this.width/this.gc);this.Mx?this.Mk[this.Mx].hv():this.Ff[0].hv();this.Hv||(this.uj=1,this.trigger(S.prototype.m.vw,null),window.C2_RegisterSW&&window.C2_RegisterSW());navigator.splashscreen&&navigator.splashscreen.hide&&
navigator.splashscreen.hide();a=0;for(e=this.P.length;a<e;a++)b=this.P[a],b.Az&&b.Az();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.Ba(!1);this.Tc&&AppMobi.webview.execute("onGameReady();")};f.prototype.Ba=function(e,b,h){if(this.ra){var n=Ya();if(h||!this.Om||e){e||(a?this.Ou=a(this.yA):this.tv=setTimeout(this.yA,this.le?1:16));b=b||n;var g=this.ad;((h=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&
!this.sd)||this.Nm)&&0<this.Zi&&(g=this.Zi);if(0<g){var g=window.innerWidth,p=window.innerHeight;this.Kk===g&&this.Jk===p||this.setSize(g,p)}this.ob||(h?this.rp||(this.rp=!0):this.rp?(this.rp=!1,0===this.ad&&this.setSize(Math.round(this.zz/this.devicePixelRatio),Math.round(this.yz/this.devicePixelRatio),!0)):(this.zz=this.width,this.yz=this.height));this.Ek&&(h=this.$w(),this.uj=this.Ja,h&&(this.Ek=!1,this.Ja=1,this.trigger(S.prototype.m.vw,null),window.C2_RegisterSW&&window.C2_RegisterSW()));this.mI(b);
!this.aa&&!this.ke||this.Tt||this.Ln||e||(this.aa=!1,this.K?this.Rc():this.$c(),this.Jn&&(this.canvas&&this.canvas.toDataURL&&(this.qA=this.canvas.toDataURL(this.Jn[0],this.Jn[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.qA),this.trigger(S.prototype.m.BC,null)),this.Jn=null));this.AL||(this.xe++,this.Xi++,this.yp++);this.cn+=Ya()-n}}};f.prototype.mI=function(a){var e,b,h,n,g,p,c,d;1E3<=a-this.sj&&(this.sj+=1E3,1E3<=a-this.sj&&(this.sj=a),this.uk=this.yp,this.yp=0,this.To=this.cn,this.cn=0);
e=0;0!==this.Wp&&(e=a-this.Wp,0>e&&(e=0),this.Si=e/=1E3,.5<this.Si?this.Si=0:this.Si>1/this.pz&&(this.Si=1/this.pz));this.Wp=a;this.Ug=this.Si*this.Di;this.rc.add(this.Ug);this.Jh.add(e);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.Nm)&&!this.sd;2<=this.ad||a&&0<this.Zi?(e=this.gc/this.ec,b=this.width/this.height,h=this.ad,a&&0<this.Zi&&(h=this.Zi),this.Yl=2!==h&&b>e||2===h&&b<e?this.height/this.ec:this.width/this.gc,this.ra&&(this.ra.ll(this.ra.scrollX),
this.ra.ml(this.ra.scrollY))):this.Yl=this.lj?this.devicePixelRatio:1;this.kd();this.Ke++;this.Ag.vJ();this.Ke--;this.kd();this.Ke++;b=this.xz.Md();a=0;for(e=b.length;a<e;a++)b[a].GL();a=0;for(e=this.P.length;a<e;a++)if(p=this.P[a],!p.U&&(p.Ob.length||p.Hb.length))for(b=0,h=p.n.length;b<h;b++)for(c=p.n[b],n=0,g=c.X.length;n<g;n++)c.X[n].Ba();a=0;for(e=this.P.length;a<e;a++)if(p=this.P[a],!p.U&&(p.Ob.length||p.Hb.length))for(b=0,h=p.n.length;b<h;b++)for(c=p.n[b],n=0,g=c.X.length;n<g;n++)d=c.X[n],d.Hu&&
d.Hu();b=this.mu.Md();a=0;for(e=b.length;a<e;a++)b[a].Ba();this.Ke--;this.GH();for(a=0;this.Ni&&10>a++;)this.Dx(this.Ni);a=0;for(e=this.Wg.length;a<e;a++)this.Wg[a].Ct=!1;this.ra.Vi&&this.ra.Vi.wc();M(this.yn);this.Ke++;a=0;for(e=this.P.length;a<e;a++)if(p=this.P[a],!p.U&&(p.Ob.length||p.Hb.length))for(b=0,h=p.n.length;b<h;b++)for(c=p.n[b],n=0,g=c.X.length;n<g;n++)d=c.X[n],d.Ci&&d.Ci();b=this.nu.Md();a=0;for(e=b.length;a<e;a++)b[a].Ci();this.Ke--};f.prototype.ri=function(){var a,e,b,h,n,g,p,c,d;a=
0;for(e=this.P.length;a<e;a++)if(p=this.P[a],!p.U)for(b=0,h=p.n.length;b<h;b++)if(c=p.n[b],c.ri&&c.ri(),c.X)for(n=0,g=c.X.length;n<g;n++)d=c.X[n],d.ri&&d.ri()};f.prototype.Dx=function(a){var e=this.ra;this.ra.XJ();var b,h,n;if(this.K)for(b=0,h=this.P.length;b<h;b++)n=this.P[b],n.U||!n.Sn||n.global&&0!==n.n.length||-1!==a.Hm.indexOf(n)||n.Sn();e==a&&M(this.Ag.ae);M(this.yn);this.Xz(!0);a.hv();this.Xz(!1);this.aa=!0;this.kd()};f.prototype.Xz=function(a){var e,b,h,n,g,p,c,d,k;e=0;for(b=this.Ob.length;e<
b;e++)h=this.Ob[e],a?h.nn&&h.nn():h.pn&&h.pn();e=0;for(b=this.P.length;e<b;e++)if(h=this.P[e],h.global||h.Z.dr)for(n=0,g=h.n.length;n<g;n++)if(p=h.n[n],a?p.nn&&p.nn():p.pn&&p.pn(),p.X)for(c=0,d=p.X.length;c<d;c++)k=p.X[c],a?k.nn&&k.nn():k.pn&&k.pn()};f.prototype.Fh=function(a){this.mu.add(a)};f.prototype.nv=function(a){this.nu.add(a)};f.prototype.Cf=function(a){return a&&-1!==a.kn?this.Si*a.kn:this.Ug};f.prototype.$c=function(){this.ra.$c(this.Ab);this.Tc&&this.Ab.present()};f.prototype.Rc=function(){this.ub&&
(this.Ti=1,this.ra.Ri(this.K));this.ra.Rc(this.K);this.K.dJ()};f.prototype.gk=function(a){a&&this.fp.push(a)};f.prototype.zn=function(a){Ga(this.fp,a)};f.prototype.jg=function(a){a=a.toString();return this.jh.hasOwnProperty(a)?this.jh[a]:null};var U=[];f.prototype.Xf=function(a){var e,b;e=a.type.name;var h=null;if(this.Qi.hasOwnProperty(e)){if(h=this.Qi[e],h.contains(a))return}else h=U.length?U.pop():new ca,this.Qi[e]=h;h.add(a);this.bi=!0;if(a.ed)for(e=0,b=a.siblings.length;e<b;e++)this.Xf(a.siblings[e]);
this.Nt&&h.wl.push(a);this.Mt||(this.Ke++,this.trigger(Object.getPrototypeOf(a.type.Z).m.jw,a),this.Ke--)};f.prototype.kd=function(){if(this.bi){var a,e,b,h,n,g;this.Nt=!0;b=0;for(n=this.yf.length;b<n;++b)for(a=this.yf[b],e=a.type,e.n.push(a),h=0,g=e.Hb.length;h<g;++h)e.Hb[h].n.push(a),e.Hb[h].ql=!0;M(this.yf);this.mC();Xa(this.Qi);this.bi=this.Nt=!1}};f.prototype.mC=function(){for(var a in this.Qi)this.Qi.hasOwnProperty(a)&&this.iB(this.Qi[a])};f.prototype.iB=function(a){var e=a.Md(),b=e[0].type,
h,n,g,p,c,d;$a(b.n,a);b.ql=!0;0===b.n.length&&(b.Go=!1);h=0;for(n=b.Hb.length;h<n;++h)d=b.Hb[h],$a(d.n,a),d.ql=!0;h=0;for(n=this.Ag.ae.length;h<n;++h)if(c=this.Ag.ae[h],c.Kd.hasOwnProperty(b.index)&&$a(c.Kd[b.index].$g,a),!b.U)for(g=0,p=b.Hb.length;g<p;++g)d=b.Hb[g],c.Kd.hasOwnProperty(d.index)&&$a(c.Kd[d.index].$g,a);if(c=e[0].F){if(c.Te)for(g=c.n,h=0,n=g.length;h<n;++h)p=g[h],a.contains(p)&&(p.da(),c.jd.update(p,p.Wd,null),p.Wd.set(0,0,-1,-1));$a(c.n,a);c.En(0)}for(h=0;h<e.length;++h)this.hB(e[h],
b);a.clear();U.push(a);this.aa=!0};f.prototype.hB=function(a,e){var b,h,n;b=0;for(h=this.fp.length;b<h;++b)this.fp[b](a);a.Xe&&e.em.update(a,a.Xe,null);(b=a.F)&&b.il(a,!0);if(a.X)for(b=0,h=a.X.length;b<h;++b)n=a.X[b],n.Mc&&n.Mc(),n.behavior.ni.remove(a);this.xz.remove(a);this.mu.remove(a);this.nu.remove(a);a.Mc&&a.Mc();this.jh.hasOwnProperty(a.uid.toString())&&delete this.jh[a.uid.toString()];this.qq--;100>e.bp.length&&e.bp.push(a)};f.prototype.gm=function(a,e,b,h){if(a.U){var n=ra(Math.random()*
a.zj.length);return this.gm(a.zj[n],e,b,h)}return a.Ce?this.Qg(a.Ce,e,!1,b,h,!1):null};var F=[];f.prototype.Qg=function(a,e,b,h,n,g){var p,c,d,k;if(!a)return null;var r=this.P[a[1]],q=r.Z.di;if(this.Ek&&q&&!r.Ot||q&&!this.K&&11===a[0][11])return null;var t=e;q||(e=null);var f;r.bp.length?(f=r.bp.pop(),f.Vb=!0,r.Z.G.call(f,r)):(f=new r.Z.G(r),f.Vb=!1);!b||g||this.jh.hasOwnProperty(a[2].toString())?f.uid=this.mn++:f.uid=a[2];this.jh[f.uid.toString()]=f;f.Uz=this.sz++;f.gj=r.n.length;p=0;for(c=this.yf.length;p<
c;++p)this.yf[p].type===r&&f.gj++;f.Bm=Jb;f.toString=Kb;d=a[3];if(f.Vb)Xa(f.R);else{f.R={};if("undefined"!==typeof cr_is_preview)for(f.ty=[],f.ty.length=d.length,p=0,c=d.length;p<c;p++)f.ty[p]=d[p][1];f.qc=[];f.qc.length=d.length}p=0;for(c=d.length;p<c;p++)f.qc[p]=d[p][0];if(q){var w=a[0];f.x=ia(h)?w[0]:h;f.y=ia(n)?w[1]:n;f.z=w[2];f.width=w[3];f.height=w[4];f.depth=w[5];f.C=w[6];f.opacity=w[7];f.Dd=w[8];f.Ed=w[9];f.ld=w[10];p=w[11];!this.K&&r.ua.length&&(f.ld=p);f.fm=jb(f.ld);this.T&&kb(f,f.ld,this.T);
if(f.Vb){p=0;for(c=w[12].length;p<c;p++)for(d=0,k=w[12][p].length;d<k;d++)f.Tb[p][d]=w[12][p][d];f.ea.set(0,0,0,0);f.Xe.set(0,0,-1,-1);f.Wd.set(0,0,-1,-1);f.Pb.yi(f.ea);M(f.zs)}else{f.Tb=w[12].slice(0);p=0;for(c=f.Tb.length;p<c;p++)f.Tb[p]=w[12][p].slice(0);f.fb=[];f.Oh=[];f.Oh.length=r.ua.length;f.ea=new wa(0,0,0,0);f.Xe=new wa(0,0,-1,-1);f.Wd=new wa(0,0,-1,-1);f.Pb=new xa;f.zs=[];f.L=Pb;f.vL=Qb;f.Qb=Rb;f.da=Sb;f.gK=Tb;f.PA=Ub;f.ie=Vb}f.Gh=!1;f.CA=0;f.BA=0;f.AA=null;14===w.length&&(f.Gh=!0,f.CA=
w[13][0],f.BA=w[13][1],f.AA=w[13][2]);p=0;for(c=r.ua.length;p<c;p++)f.Oh[p]=!0;f.Ah=!0;f.Tf=Wb;f.Tf();f.RA=!!f.fb.length;f.ys=!0;f.Es=!0;r.Fo=!0;f.visible=!0;f.kn=-1;f.F=e;f.Wf=e.n.length;f.Ti=0;"undefined"===typeof f.ma&&(f.ma=null);this.aa=f.Be=!0}var m;M(F);p=0;for(c=r.Hb.length;p<c;p++)F.push.apply(F,r.Hb[p].Ob);F.push.apply(F,r.Ob);if(f.Vb)for(p=0,c=F.length;p<c;p++){var l=F[p];m=f.X[p];m.Vb=!0;l.behavior.G.call(m,l,f);w=a[4][p];d=0;for(k=w.length;d<k;d++)m.q[d]=w[d];m.H();l.behavior.ni.add(f)}else for(f.X=
[],p=0,c=F.length;p<c;p++)l=F[p],m=new l.behavior.G(l,f),m.Vb=!1,m.q=a[4][p].slice(0),m.H(),f.X.push(m),l.behavior.ni.add(f);w=a[5];if(f.Vb)for(p=0,c=w.length;p<c;p++)f.q[p]=w[p];else f.q=w.slice(0);this.yf.push(f);this.bi=!0;e&&(e.Xl(f,!0),1!==e.Na||1!==e.mb)&&(r.Go=!0);this.qq++;if(r.ed){if(f.ed=!0,f.Vb?M(f.siblings):f.siblings=[],!b&&!g){p=0;for(c=r.ee.length;p<c;p++)if(r.ee[p]!==r){if(!r.ee[p].Ce)return null;f.siblings.push(this.Qg(r.ee[p].Ce,t,!1,q?f.x:h,q?f.y:n,!0))}p=0;for(c=f.siblings.length;p<
c;p++)for(f.siblings[p].siblings.push(f),d=0;d<c;d++)p!==d&&f.siblings[p].siblings.push(f.siblings[d])}}else f.ed=!1,f.siblings=null;f.H();p=0;for(c=f.X.length;p<c;p++)f.X[p].ZI&&f.X[p].ZI();return f};f.prototype.cd=function(a){var e,b;e=0;for(b=this.ra.xa.length;e<b;e++){var h=this.ra.xa[e];if(mb(h.name,a))return h}return null};f.prototype.Pa=function(a){a=ra(a);0>a&&(a=0);a>=this.ra.xa.length&&(a=this.ra.xa.length-1);return this.ra.xa[a]};f.prototype.ai=function(a){return A(a)?this.Pa(a):this.cd(a.toString())};
f.prototype.Fs=function(a){var e,b;e=0;for(b=a.length;e<b;e++)a[e].la().pa=!0};f.prototype.vn=function(a){var e,b;e=0;for(b=a.length;e<b;e++)a[e].vn()};f.prototype.xg=function(a){var e,b;e=0;for(b=a.length;e<b;e++)a[e].xg()};f.prototype.Qe=function(a){var e,b;e=0;for(b=a.length;e<b;e++)a[e].Qe()};f.prototype.MA=function(a){if(a.Fo){var e,b,h=a.n;e=0;for(b=h.length;e<b;++e)h[e].PA();h=this.yf;e=0;for(b=h.length;e<b;++e)h[e].type===a&&h[e].PA();a.Fo=!1}};f.prototype.it=function(a,e,b,h){var n,p,g=a?
1!==a.Na||1!==a.mb:!1;if(e.U)for(a=0,n=e.zj.length;a<n;++a)p=e.zj[a],g||p.Go?Da(h,p.n):(this.MA(p),p.em.Hq(b,h));else g||e.Go?Da(h,e.n):(this.MA(e),e.em.Hq(b,h))};f.prototype.Fp=function(a,e,b,h){var n,p;n=0;for(p=e.length;n<p;++n)this.it(a,e[n],b,h)};f.prototype.by=function(a,e,b){var h=this.gv;h&&this.Fp(a,h.mq,e,b)};f.prototype.eH=function(a,e,b){var h=this.Iy;h&&this.Fp(a,h.mq,e,b)};f.prototype.Of=function(a,e,b,h){var n=a.la(),p,g,c,d,k=this.Cb().Fb.Oe,r,f,q;if(n.pa)for(h||(n.pa=!1,M(n.n)),p=
0,d=a.n.length;p<d;p++)if(c=a.n[p],c.da(),r=c.F.W(e,b,!0),f=c.F.W(e,b,!1),c.Qb(r,f)){if(h)return!1;n.n.push(c)}else k&&n.wa.push(c);else{g=0;q=k?n.wa:n.n;p=0;for(d=q.length;p<d;p++)if(c=q[p],c.da(),r=c.F.W(e,b,!0),f=c.F.W(e,b,!1),c.Qb(r,f)){if(h)return!1;k?n.n.push(c):(n.n[g]=n.n[p],g++)}h||(q.length=g)}a.de();return h?!0:n.Hp()};f.prototype.zc=function(a,e){if(!(a&&e&&a!==e&&a.Be&&e.Be))return!1;a.da();e.da();var b=a.F,h=e.F,n,p,g,c,d,k,r,f;if(b===h||b.Na===h.Na&&h.mb===h.mb&&b.scale===h.scale&&
b.C===h.C&&b.V===h.V){if(!a.ea.vy(e.ea)||!a.Pb.uy(e.Pb)||a.Gh&&e.Gh)return!1;if(a.Gh)return this.wA(a,e);if(e.Gh)return this.wA(e,a);r=a.ma&&!a.ma.eh();n=e.ma&&!e.ma.eh();if(!r&&!n)return!0;r?(a.ma.$f(a.width,a.height,a.C),r=a.ma):(this.Nf.xi(a.Pb,a.x,a.y,a.width,a.height),r=this.Nf);n?(e.ma.$f(e.width,e.height,e.C),f=e.ma):(this.Nf.xi(e.Pb,e.x,e.y,e.width,e.height),f=this.Nf);return r.Im(f,e.x-a.x,e.y-a.y)}r=a.ma&&!a.ma.eh();n=e.ma&&!e.ma.eh();r?(a.ma.$f(a.width,a.height,a.C),this.Nf.iA(a.ma)):this.Nf.xi(a.Pb,
a.x,a.y,a.width,a.height);r=this.Nf;n?(e.ma.$f(e.width,e.height,e.C),this.jv.iA(e.ma)):this.jv.xi(e.Pb,e.x,e.y,e.width,e.height);f=this.jv;n=0;for(p=r.Id;n<p;n++)g=2*n,c=g+1,d=r.nb[g],k=r.nb[c],r.nb[g]=b.Sa(d+a.x,k+a.y,!0),r.nb[c]=b.Sa(d+a.x,k+a.y,!1);r.da();n=0;for(p=f.Id;n<p;n++)g=2*n,c=g+1,d=f.nb[g],k=f.nb[c],f.nb[g]=h.Sa(d+e.x,k+e.y,!0),f.nb[c]=h.Sa(d+e.x,k+e.y,!1);f.da();return r.Im(f,0,0)};var J=new xa,X=new wa(0,0,0,0),N=[];f.prototype.wA=function(a,e){var b,h,n,p,g=e.ea,c=a.x,d=a.y;a.Cp(g,
N);var k=e.ma&&!e.ma.eh();b=0;for(h=N.length;b<h;++b)if(n=N[b],p=n.Ta,g.wy(p,c,d)&&(J.yi(p),J.offset(c,d),J.uy(e.Pb)))if(k)if(e.ma.$f(e.width,e.height,e.C),n.Sd){if(n.Sd.Im(e.ma,e.x-(c+p.left),e.y-(d+p.top)))return M(N),!0}else{if(this.Nf.xi(J,0,0,p.right-p.left,p.bottom-p.top),this.Nf.Im(e.ma,e.x,e.y))return M(N),!0}else if(n.Sd){if(this.Nf.xi(e.Pb,0,0,e.width,e.height),n.Sd.Im(this.Nf,-(c+p.left),-(d+p.top)))return M(N),!0}else return M(N),!0;M(N);return!1};f.prototype.vA=function(a,e,b,h,n){if(!n||
!n.Be)return!1;n.da();X.set(pa(a,b),pa(e,h),oa(a,b),oa(e,h));if(!n.ea.vy(X))return!1;if(n.Gh){n.Cp(X,N);var p,g,c,d=n.x,k=n.y;n=0;for(p=N.length;n<p;++n)if(g=N[n],c=g.Ta,X.wy(c,d,k)&&(J.yi(c),J.offset(d,k),J.Jm(a,e,b,h)))if(g.Sd){if(g.Sd.Jm(d+c.left,k+c.top,a,e,b,h))return M(N),!0}else return M(N),!0;M(N);return!1}if(!n.Pb.Jm(a,e,b,h))return!1;if(!n.ma||n.ma.eh())return!0;n.ma.$f(n.width,n.height,n.C);return n.ma.Jm(n.x,n.y,a,e,b,h)};f.prototype.qr=function(a,e){if(!e)return!1;var b,h,n,p,g;b=0;for(h=
a.Ob.length;b<h;b++)if(a.Ob[b].behavior instanceof e)return!0;if(!a.U)for(b=0,h=a.Hb.length;b<h;b++)for(g=a.Hb[b],n=0,p=g.Ob.length;n<p;n++)if(g.Ob[n].behavior instanceof e)return!0;return!1};f.prototype.xv=function(a){return this.qr(a,mc.RK)};f.prototype.yv=function(a){return this.qr(a,zc)};var E=[];f.prototype.Lb=function(a){var e,b,h;a.da();this.by(a.F,a.ea,E);e=0;for(b=E.length;e<b;++e)if(h=E[e],h.R.solidEnabled&&this.zc(a,h))return M(E),h;M(E);return null};var Q=[];f.prototype.ue=function(a,
e){var b=null;e&&(b=Q,M(b));a.da();this.eH(a.F,a.ea,E);var h,n,p;h=0;for(n=E.length;h<n;++h)if(p=E[h],p.R.jumpthruEnabled&&this.zc(a,p))if(e)b.push(p);else return M(E),p;M(E);return b};f.prototype.Vd=function(a,e,b,h,n,p){h=h||50;var g=a.x,c=a.y,d,k=null,r=null;for(d=0;d<h;d++)if(a.x=g+e*d,a.y=c+b*d,a.L(),!this.zc(a,k)&&((k=this.Lb(a))&&(r=k),!k&&(n&&(p?k=this.zc(a,p)?p:null:k=this.ue(a),k&&(r=k)),!k)))return r&&this.Gq(a,e,b,r),!0;a.x=g;a.y=c;a.L();return!1};f.prototype.Gq=function(a,e,b,h){var n=
2,p,g=!1;p=!1;for(var c=a.x,d=a.y;16>=n;)p=1/n,n*=2,a.x+=e*p*(g?1:-1),a.y+=b*p*(g?1:-1),a.L(),this.zc(a,h)?p=g=!0:(p=g=!1,c=a.x,d=a.y);p&&(a.x=c,a.y=d,a.L())};f.prototype.Mu=function(a,e){var b=ia(e)?100:e,h=0,n=a.x,p=a.y,g=0,c=0,d=0,k=this.Lb(a);if(!k)return!0;for(;h<=b;){switch(g){case 0:c=0;d=-1;h++;break;case 1:c=1;d=-1;break;case 2:c=1;d=0;break;case 3:d=c=1;break;case 4:c=0;d=1;break;case 5:c=-1;d=1;break;case 6:c=-1;d=0;break;case 7:d=c=-1}g=(g+1)%8;a.x=ra(n+c*h);a.y=ra(p+d*h);a.L();if(!this.zc(a,
k)&&(k=this.Lb(a),!k))return!0}a.x=n;a.y=p;a.L();return!1};f.prototype.wh=function(a,e){a.Be&&e.Be&&this.yn.push([a,e])};f.prototype.fF=function(a,e){var b,h,n;b=0;for(h=this.yn.length;b<h;b++)if(n=this.yn[b],n[0]==a&&n[1]==e||n[0]==e&&n[1]==a)return!0;return!1};f.prototype.aF=function(a,e,b){var h=a.x,n=a.y,p=oa(10,Ta(e,b,h,n)),g=Oa(e,b,h,n),c=this.Lb(a);if(!c)return La(g+qa);var d=c,k,r,f,q,t=R(5);for(k=1;36>k;k++)if(r=g-k*t,a.x=e+Math.cos(r)*p,a.y=b+Math.sin(r)*p,a.L(),!this.zc(a,d)&&(d=this.Lb(a),
!d)){f=r;break}36===k&&(f=La(g+qa));d=c;for(k=1;36>k;k++)if(r=g+k*t,a.x=e+Math.cos(r)*p,a.y=b+Math.sin(r)*p,a.L(),!this.zc(a,d)&&(d=this.Lb(a),!d)){q=r;break}36===k&&(q=La(g+qa));a.x=h;a.y=n;a.L();if(q===f)return q;a=Pa(q,f)/2;a=Ra(q,f)?La(f+a+qa):La(q+a);f=Math.cos(g);g=Math.sin(g);q=Math.cos(a);a=Math.sin(a);e=f*q+g*a;return Oa(0,0,f-2*e*q,g-2*e*a)};var H=-1;f.prototype.trigger=function(a,e,b){if(!this.ra)return!1;var h=this.ra.Vi;if(!h)return!1;var n=!1,p,g,c;H++;var d=h.Qs;g=0;for(c=d.length;g<
c;++g)p=this.GA(a,e,d[g],b),n=n||p;p=this.GA(a,e,h,b);H--;return n||p};f.prototype.GA=function(a,e,b,h){var n=!1,p,g,c,d;if(e)for(c=this.vv(a,e,e.type.name,b,h),n=n||c,d=e.type.Hb,p=0,g=d.length;p<g;++p)c=this.vv(a,e,d[p].name,b,h),n=n||c;else c=this.vv(a,e,"system",b,h),n=n||c;return n};f.prototype.vv=function(a,e,b,h,n){var p,g=!1,c=!1,c="undefined"!==typeof n,d=(c?h.Hx:h.HA)[b];if(!d)return g;var k=null;h=0;for(p=d.length;h<p;++h)if(d[h].method==a){k=d[h].mm;break}if(!k)return g;var r;c?r=k[n]:
r=k;if(!r)return null;h=0;for(p=r.length;h<p;h++)a=r[h][0],n=r[h][1],c=this.HG(e,b,a,n),g=g||c;return g};f.prototype.HG=function(a,e,b,h){var n,p,g=!1;this.wv++;var c=this.Cb().Fb;c&&this.vn(c.Ai);var d=1<this.wv;this.vn(b.Ai);d&&this.gJ();var k=this.Fq(b);k.Fb=b;a&&(n=this.types[e].la(),n.pa=!1,M(n.n),n.n[0]=a,this.types[e].de());a=!0;if(b.parent){e=k.uA;for(n=b.parent;n;)e.push(n),n=n.parent;e.reverse();n=0;for(p=e.length;n<p;n++)if(!e[n].xJ()){a=!1;break}}a&&(this.Xi++,b.Oe?b.wJ(h):b.wc(),g=g||
k.rj);this.Bq();d&&this.YI();this.Qe(b.Ai);c&&this.Qe(c.Ai);this.bi&&0===this.Ke&&0===H&&!this.Pt&&this.kd();this.wv--;return g};f.prototype.$i=function(){var a=this.Cb();return a.Fb.Fc[a.lc]};f.prototype.XG=function(){return this.$i().type};f.prototype.TH=function(){return 0===this.Cb().lc};f.prototype.WG=function(){var a=this.Cb();return a.Fb.Ve[a.Pd]};f.prototype.gJ=function(){this.dq++;this.dq>=this.eu.length&&this.eu.push([])};f.prototype.YI=function(){this.dq--};f.prototype.Sx=function(){return this.eu[this.dq]};
f.prototype.Fq=function(a){this.kp++;this.kp>=this.Ys.length&&this.Ys.push(new Xb);var e=this.Cb();e.reset(a);return e};f.prototype.Bq=function(){this.kp--};f.prototype.Cb=function(){return this.Ys[this.kp]};f.prototype.Vz=function(){this.Qk++;this.Qk>=this.dn.length&&this.dn.push(aa({name:void 0,index:0,jc:!1}));var a=this.jt();a.name=void 0;a.index=0;a.jc=!1;return a};f.prototype.Pz=function(){this.Qk--};f.prototype.jt=function(){return this.dn[this.Qk]};f.prototype.Vx=function(a,e){for(var b,h,
n,p,g,c;e;){b=0;for(h=e.kf.length;b<h;b++)if(c=e.kf[b],c instanceof Yb&&mb(a,c.name))return c;e=e.parent}b=0;for(h=this.Wg.length;b<h;b++)for(g=this.Wg[b],n=0,p=g.Xh.length;n<p;n++)if(c=g.Xh[n],c instanceof Yb&&mb(a,c.name))return c;return null};f.prototype.Xx=function(a){var e,b;e=0;for(b=this.Ff.length;e<b;e++)if(this.Ff[e].Oa===a)return this.Ff[e];return null};f.prototype.ym=function(a){var e,b;e=0;for(b=this.P.length;e<b;e++)if(this.P[e].Oa===a)return this.P[e];return null};f.prototype.bH=function(a){var e,
b;e=0;for(b=this.hk.length;e<b;e++)if(this.hk[e].Oa===a)return this.hk[e];return null};f.prototype.BF=function(a,e){this.Jn=[a,e];this.aa=!0};f.prototype.GH=function(){var a=this,e=this.Wu,b=this.gh,h=this.$p,n=!1;this.oA&&(n=!0,e="__c2_continuouspreview",this.oA=!1);if(e.length){this.kd();b=this.CJ();if(d()&&!this.ke)k(e,b,function(){ea("Saved state to IndexedDB storage ("+b.length+" bytes)");a.gh=b;a.trigger(S.prototype.m.Rr,null);a.gh="";n&&q()},function(h){try{localStorage.setItem("__c2save_"+
e,b),ea("Saved state to WebStorage ("+b.length+" bytes)"),a.gh=b,a.trigger(S.prototype.m.Rr,null),a.gh="",n&&q()}catch(p){ea("Failed to save game state: "+h+"; "+p),a.trigger(S.prototype.m.zw,null)}});else try{localStorage.setItem("__c2save_"+e,b),ea("Saved state to WebStorage ("+b.length+" bytes)"),a.gh=b,this.trigger(S.prototype.m.Rr,null),a.gh="",n&&q()}catch(p){ea("Error saving to WebStorage: "+p),a.trigger(S.prototype.m.zw,null)}this.$p=this.Wu="";this.Lc=null}if(h.length){if(d()&&!this.ke)c(h,
function(e){e?(a.Lc=e,ea("Loaded state from IndexedDB storage ("+a.Lc.length+" bytes)")):(a.Lc=localStorage.getItem("__c2save_"+h)||"",ea("Loaded state from WebStorage ("+a.Lc.length+" bytes)"));a.Ln=!1;a.Lc||(a.Lc=null,a.trigger(S.prototype.m.ro,null))},function(){a.Lc=localStorage.getItem("__c2save_"+h)||"";ea("Loaded state from WebStorage ("+a.Lc.length+" bytes)");a.Ln=!1;a.Lc||(a.Lc=null,a.trigger(S.prototype.m.ro,null))});else{try{this.Lc=localStorage.getItem("__c2save_"+h)||"",ea("Loaded state from WebStorage ("+
this.Lc.length+" bytes)")}catch(g){this.Lc=null}this.Ln=!1;a.Lc||(a.Lc=null,a.trigger(S.prototype.m.ro,null))}this.Wu=this.$p=""}null!==this.Lc&&(this.kd(),this.kI(this.Lc)?(this.gh=this.Lc,this.trigger(S.prototype.m.WC,null),this.gh=""):a.trigger(S.prototype.m.ro,null),this.Lc=null)};f.prototype.CJ=function(){var a,e,h,n,p,g,c,d={c2save:!0,version:1,rt:{time:this.rc.na,walltime:this.Jh.na,timescale:this.Di,tickcount:this.xe,execcount:this.Xi,next_uid:this.mn,running_layout:this.ra.Oa,start_time_offset:Date.now()-
this.er},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};a=0;for(e=this.P.length;a<e;a++)if(p=this.P[a],!p.U&&!this.xv(p)){g={instances:[]};Wa(p.R)&&(g.ex=b(p.R));h=0;for(n=p.n.length;h<n;h++)g.instances.push(this.Vu(p.n[h]));d.types[p.Oa.toString()]=g}a=0;for(e=this.Ff.length;a<e;a++)h=this.Ff[a],d.layouts[h.Oa.toString()]=h.ya();n=d.events.groups;a=0;for(e=this.hk.length;a<e;a++)h=this.hk[a],n[h.Oa.toString()]=this.vk[h.Cm].aj;e=d.events.cnds;for(c in this.Uh)this.Uh.hasOwnProperty(c)&&
(a=this.Uh[c],Wa(a.R)&&(e[c]={ex:b(a.R)}));e=d.events.acts;for(c in this.Ph)this.Ph.hasOwnProperty(c)&&(a=this.Ph[c],Wa(a.R)&&(e[c]={ex:b(a.R)}));e=d.events.vars;for(c in this.xl)this.xl.hasOwnProperty(c)&&(a=this.xl[c],a.Sp||a.parent&&!a.Rm||(e[c]=a.data));d.system=this.Ag.ya();return JSON.stringify(d)};f.prototype.Wz=function(){var a,e,b,h,n,p;this.jh={};a=0;for(e=this.P.length;a<e;a++)if(b=this.P[a],!b.U)for(h=0,n=b.n.length;h<n;h++)p=b.n[h],this.jh[p.uid.toString()]=p};f.prototype.kI=function(a){var e;
try{e=JSON.parse(a)}catch(b){return!1}if(!e.c2save||1<e.version)return!1;this.Lm=!0;a=e.rt;this.rc.reset();this.rc.na=a.time;this.Jh.reset();this.Jh.na=a.walltime||0;this.Di=a.timescale;this.xe=a.tickcount;this.Xi=a.execcount;this.er=Date.now()-a.start_time_offset;var h=a.running_layout;if(h!==this.ra.Oa)if(h=this.Xx(h))this.Dx(h);else return;var n,p,g,c,d,k,r;k=e.types;for(p in k)if(k.hasOwnProperty(p)&&(c=this.ym(parseInt(p,10)))&&!c.U&&!this.xv(c)){k[p].ex?c.R=k[p].ex:Xa(c.R);d=c.n;g=k[p].instances;
h=0;for(n=pa(d.length,g.length);h<n;h++)this.aq(d[h],g[h]);h=g.length;for(n=d.length;h<n;h++)this.Xf(d[h]);h=d.length;for(n=g.length;h<n;h++){d=null;if(c.Z.di&&(d=this.ra.Dp(g[h].w.l),!d))continue;d=this.Qg(c.Ce,d,!1,0,0,!0);this.aq(d,g[h])}c.ql=!0}this.kd();this.Wz();n=e.layouts;for(p in n)n.hasOwnProperty(p)&&(h=this.Xx(parseInt(p,10)))&&h.Ga(n[p]);n=e.events.groups;for(p in n)n.hasOwnProperty(p)&&(h=this.bH(parseInt(p,10)))&&this.vk[h.Cm]&&this.vk[h.Cm].Uq(n[p]);h=e.events.cnds;for(p in this.Uh)this.Uh.hasOwnProperty(p)&&
(h.hasOwnProperty(p)?this.Uh[p].R=h[p].ex:this.Uh[p].R={});h=e.events.acts;for(p in this.Ph)this.Ph.hasOwnProperty(p)&&(h.hasOwnProperty(p)?this.Ph[p].R=h[p].ex:this.Ph[p].R={});h=e.events.vars;for(p in h)h.hasOwnProperty(p)&&this.xl.hasOwnProperty(p)&&(this.xl[p].data=h[p]);this.mn=a.next_uid;this.Lm=!1;h=0;for(n=this.qp.length;h<n;++h)d=this.qp[h],this.trigger(Object.getPrototypeOf(d.type.Z).m.Gi,d);M(this.qp);this.Ag.Ga(e.system);h=0;for(n=this.P.length;h<n;h++)if(c=this.P[h],!c.U&&!this.xv(c))for(e=
0,p=c.n.length;e<p;e++){d=c.n[e];if(c.ed)for(k=d.Bm(),M(d.siblings),a=0,g=c.ee.length;a<g;a++)r=c.ee[a],c!==r&&d.siblings.push(r.n[k]);d.rf&&d.rf();if(d.X)for(a=0,g=d.X.length;a<g;a++)k=d.X[a],k.rf&&k.rf()}return this.aa=!0};f.prototype.Vu=function(a,e){var h,n,p,g,c;g=a.type;p=g.Z;var d={};e?d.c2=!0:d.uid=a.uid;Wa(a.R)&&(d.ex=b(a.R));if(a.qc&&a.qc.length)for(d.ivs={},h=0,n=a.qc.length;h<n;h++)d.ivs[a.type.Kt[h].toString()]=a.qc[h];if(p.di){p={x:a.x,y:a.y,w:a.width,h:a.height,l:a.F.Oa,zi:a.ie()};
0!==a.C&&(p.a=a.C);1!==a.opacity&&(p.o=a.opacity);.5!==a.Dd&&(p.hX=a.Dd);.5!==a.Ed&&(p.hY=a.Ed);0!==a.ld&&(p.bm=a.ld);a.visible||(p.v=a.visible);a.Be||(p.ce=a.Be);-1!==a.kn&&(p.mts=a.kn);if(g.ua.length)for(p.fx=[],h=0,n=g.ua.length;h<n;h++)c=g.ua[h],p.fx.push({name:c.name,active:a.Oh[c.index],params:a.Tb[c.index]});d.w=p}if(a.X&&a.X.length)for(d.behs={},h=0,n=a.X.length;h<n;h++)g=a.X[h],g.ya&&(d.behs[g.type.Oa.toString()]=g.ya());a.ya&&(d.data=a.ya());return d};f.prototype.dH=function(a,e){var b,
h;b=0;for(h=a.Kt.length;b<h;b++)if(a.Kt[b]===e)return b;return-1};f.prototype.VG=function(a,e){var b,h;b=0;for(h=a.X.length;b<h;b++)if(a.X[b].type.Oa===e)return b;return-1};f.prototype.aq=function(a,e,b){var h,n,p,g,c;c=a.type;g=c.Z;if(b){if(!e.c2)return}else a.uid=e.uid;e.ex?a.R=e.ex:Xa(a.R);if(n=e.ivs)for(h in n)n.hasOwnProperty(h)&&(p=this.dH(c,parseInt(h,10)),0>p||p>=a.qc.length||(a.qc[p]=n[h]));if(g.di){p=e.w;a.F.Oa!==p.l&&(n=a.F,a.F=this.ra.Dp(p.l),a.F?(n.il(a,!0),a.F.Xl(a,!0),a.L(),a.F.En(0)):
(a.F=n,b||this.Xf(a)));a.x=p.x;a.y=p.y;a.width=p.w;a.height=p.h;a.Wf=p.zi;a.C=p.hasOwnProperty("a")?p.a:0;a.opacity=p.hasOwnProperty("o")?p.o:1;a.Dd=p.hasOwnProperty("hX")?p.hX:.5;a.Ed=p.hasOwnProperty("hY")?p.hY:.5;a.visible=p.hasOwnProperty("v")?p.v:!0;a.Be=p.hasOwnProperty("ce")?p.ce:!0;a.kn=p.hasOwnProperty("mts")?p.mts:-1;a.ld=p.hasOwnProperty("bm")?p.bm:0;a.fm=jb(a.ld);this.T&&kb(a,a.ld,this.T);a.L();if(p.hasOwnProperty("fx"))for(b=0,n=p.fx.length;b<n;b++)g=c.lt(p.fx[b].name),0>g||(a.Oh[g]=
p.fx[b].active,a.Tb[g]=p.fx[b].params);a.Tf()}if(c=e.behs)for(h in c)c.hasOwnProperty(h)&&(b=this.VG(a,parseInt(h,10)),0>b||a.X[b].Ga(c[h]));e.data&&a.Ga(e.data)};f.prototype.Ix=function(a,e,b){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+"www/"+a,function(a){a.file(e,b)},b)};f.prototype.JG=function(a,e){this.Ix("data.js",function(b){var h=new FileReader;h.onload=function(e){a(e.target.result)};h.onerror=e;h.readAsText(b)},e)};var K=[],B=0;f.prototype.ju=function(){if(K.length&&
!(8<=B)){B++;var a=K.shift();this.DF(a.filename,a.ZJ,a.eG)}};f.prototype.Jx=function(a,e,b){var h=this;K.push({filename:a,ZJ:function(a){B--;h.ju();e(a)},eG:function(a){B--;h.ju();b(a)}});this.ju()};f.prototype.DF=function(a,e,b){this.Ix(a,function(a){var b=new FileReader;b.onload=function(a){e(a.target.result)};b.readAsArrayBuffer(a)},b)};f.prototype.KG=function(a,e,b){var h="",n=a.toLowerCase(),p=n.substr(n.length-4),n=n.substr(n.length-5);".mp4"===p?h="video/mp4":".webm"===n?h="video/webm":".m4a"===
p?h="audio/mp4":".mp3"===p&&(h="audio/mpeg");this.Jx(a,function(a){a=URL.createObjectURL(new Blob([a],{type:h}));e(a)},b)};f.prototype.PH=function(a){return/^(?:[a-z]+:)?\/\//.test(a)||"data:"===a.substr(0,5)||"blob:"===a.substr(0,5)};f.prototype.dA=function(a,e){this.Rp&&!this.PH(e)?this.KG(e,function(e){a.src=e},function(a){alert("Failed to load image: "+a)}):a.src=e};f.prototype.Sq=function(a,e){"undefined"!==typeof a.imageSmoothingEnabled?a.imageSmoothingEnabled=e:(a.webkitImageSmoothingEnabled=
e,a.mozImageSmoothingEnabled=e,a.msImageSmoothingEnabled=e)};Zb=function(a){return new f(document.getElementById(a))};$b=function(a,e){return new f({dc:!0,width:a,height:e})};window.cr_createRuntime=Zb;window.cr_createDCRuntime=$b;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.cc=!0;document.body.appendChild(a);a=new f(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 f(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();window.cr_getC2Runtime=function(){var f=document.getElementById("c2canvas");return f?f.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(f,l){var d=window.cr_getC2Runtime();d&&d.BF(f,l)};
window.cr_sizeCanvas=function(f,l){if(0!==f&&0!==l){var d=window.cr_getC2Runtime();d&&d.setSize(f,l)}};window.cr_setSuspended=function(f){var l=window.cr_getC2Runtime();l&&l.setSuspended(f)};
(function(){function f(a,b){this.j=a;this.Vi=null;this.scrollX=this.j.gc/2;this.scrollY=this.j.ec/2;this.scale=1;this.C=0;this.tk=!0;this.name=b[0];this.OI=b[1];this.NI=b[2];this.width=b[1];this.height=b[2];this.JA=b[3];this.mA=b[4];this.Oa=b[5];var g=b[6],c,d;this.xa=[];this.Hm=[];c=0;for(d=g.length;c<d;c++){var k=new ac(this,g[c]);k.vz=c;this.xa.push(k)}g=b[7];this.ci=[];c=0;for(d=g.length;c<d;c++){var k=g[c],f=this.j.P[k[1]];f.Ce||(f.Ce=k);this.ci.push(k);-1===this.Hm.indexOf(f)&&this.Hm.push(f)}this.ua=
[];this.fb=[];this.Ah=!0;this.Tb=[];c=0;for(d=b[8].length;c<d;c++)this.ua.push({id:b[8][c][0],name:b[8][c][1],xc:-1,Re:!1,Nb:!0,index:c}),this.Tb.push(b[8][c][2].slice(0));this.Tf();this.uh=new wa(0,0,1,1);this.Pu=new wa(0,0,1,1);this.ti={}}function l(a,b){return a.Wf-b.Wf}function d(a,b){this.sc=a;this.j=a.j;this.n=[];this.scale=1;this.C=0;this.Sg=!1;this.Hh=new wa(0,0,0,0);this.DA=new xa;this.Ka=this.Fa=this.La=this.Ea=0;this.Xj=!1;this.Lh=-1;this.Gs=0;this.name=b[0];this.index=b[1];this.Oa=b[2];
this.visible=b[3];this.vf=b[4];this.Sf=b[5];this.Na=b[6];this.mb=b[7];this.opacity=b[8];this.xp=b[9];this.Te=b[10];this.V=b[11];this.ld=b[12];this.bG=b[13];this.fm="source-over";this.od=this.wd=0;this.jd=null;this.hh=m();this.If=!0;this.Lk=new wa(0,0,-1,-1);this.Zc=new wa(0,0,-1,-1);this.Te&&(this.jd=new ib(this.j.gc,this.j.ec));this.yg=!1;var g=b[14],c,d;this.sA=[];this.je=[];this.im=[];c=0;for(d=g.length;c<d;c++){var k=g[c],f=this.j.P[k[1]];f.Ce||(f.Ce=k,f.wF=this.index);this.je.push(k);-1===this.sc.Hm.indexOf(f)&&
this.sc.Hm.push(f)}Ca(this.sA,this.je);this.ua=[];this.fb=[];this.Ah=!0;this.Tb=[];c=0;for(d=b[15].length;c<d;c++)this.ua.push({id:b[15][c][0],name:b[15][c][1],xc:-1,Re:!1,Nb:!0,index:c}),this.Tb.push(b[15][c][2].slice(0));this.Tf();this.uh=new wa(0,0,1,1);this.Pu=new wa(0,0,1,1)}function m(){return b.length?b.pop():[]}function k(a){M(a);b.push(a)}f.prototype.BJ=function(a){var b=a.type.Oa.toString();this.ti.hasOwnProperty(b)||(this.ti[b]=[]);this.ti[b].push(this.j.Vu(a))};f.prototype.jy=function(){var a=
this.xa[0];return!a.Sf&&1===a.opacity&&!a.xp&&a.visible};f.prototype.Tf=function(){M(this.fb);this.Ah=!0;var a,b,g;a=0;for(b=this.ua.length;a<b;a++)g=this.ua[a],g.Nb&&(this.fb.push(g),g.Re||(this.Ah=!1))};f.prototype.kt=function(a){var b,g,c;b=0;for(g=this.ua.length;b<g;b++)if(c=this.ua[b],c.name===a)return c;return null};var c=[],q=!0;f.prototype.hv=function(){this.mA&&(this.Vi=this.j.Zs[this.mA],this.Vi.Av());this.j.ra=this;this.width=this.OI;this.height=this.NI;this.scrollX=this.j.gc/2;this.scrollY=
this.j.ec/2;var a,b,g,d,k,r,f;a=0;for(g=this.j.P.length;a<g;a++)if(b=this.j.P[a],!b.U)for(k=b.n,b=0,d=k.length;b<d;b++)if(r=k[b],r.F){var n=r.F.vz;n>=this.xa.length&&(n=this.xa.length-1);r.F=this.xa[n];-1===r.F.n.indexOf(r)&&r.F.n.push(r);r.F.Xj=!0}if(!q)for(a=0,g=this.xa.length;a<g;++a)this.xa[a].n.sort(l);M(c);this.WE();a=0;for(g=this.xa.length;a<g;a++)r=this.xa[a],r.rF(),r.tr();k=!1;if(!this.tk){for(f in this.ti)if(this.ti.hasOwnProperty(f)&&(b=this.j.ym(parseInt(f,10)))&&!b.U&&this.j.yv(b)){d=
this.ti[f];a=0;for(g=d.length;a<g;a++){r=null;if(b.Z.di&&(r=this.Dp(d[a].w.l),!r))continue;r=this.j.Qg(b.Ce,r,!1,0,0,!0);this.j.aq(r,d[a]);k=!0;c.push(r)}M(d)}a=0;for(g=this.xa.length;a<g;a++)this.xa[a].n.sort(l),this.xa[a].Xj=!0}k&&(this.j.kd(),this.j.Wz());for(a=0;a<c.length;a++)if(r=c[a],r.type.ed)for(g=r.Bm(),b=0,d=r.type.ee.length;b<d;b++)f=r.type.ee[b],r.type!==f&&(f.n.length>g?r.siblings.push(f.n[g]):f.Ce&&(k=this.j.Qg(f.Ce,r.F,!0,r.x,r.y,!0),this.j.kd(),f.rr(),r.siblings.push(k),c.push(k)));
a=0;for(g=this.ci.length;a<g;a++)r=this.ci[a],b=this.j.P[r[1]],b.ed||this.j.Qg(this.ci[a],null,!0);this.j.Ni=null;this.j.kd();if(this.j.Ab&&!this.j.ob)for(a=0,g=this.j.P.length;a<g;a++)f=this.j.P[a],!f.U&&f.n.length&&f.tn&&f.tn(this.j.Ab);if(this.j.Lm)Ca(this.j.qp,c);else for(a=0,g=c.length;a<g;a++)r=c[a],this.j.trigger(Object.getPrototypeOf(r.type.Z).m.Gi,r);M(c);this.j.Lm||this.j.trigger(S.prototype.m.uw,null);this.tk=!1};f.prototype.qF=function(){var a,b,g,c,d;b=a=0;for(g=this.ci.length;a<g;a++)c=
this.ci[a],d=this.j.P[c[1]],d.global?d.ed||this.j.Qg(c,null,!0):(this.ci[b]=c,b++);Ba(this.ci,b)};f.prototype.XJ=function(){this.j.Lm||this.j.trigger(S.prototype.m.sw,null);this.j.Mt=!0;M(this.j.Ag.ae);var a,b,g,c,d,k;if(!this.tk)for(a=0,b=this.xa.length;a<b;a++)for(this.xa[a].Fv(),d=this.xa[a].n,g=0,c=d.length;g<c;g++)k=d[g],k.type.global||this.j.yv(k.type)&&this.BJ(k);a=0;for(b=this.xa.length;a<b;a++){d=this.xa[a].n;g=0;for(c=d.length;g<c;g++)k=d[g],k.type.global||this.j.Xf(k);this.j.kd();M(d);
this.xa[a].Xj=!0}a=0;for(b=this.j.P.length;a<b;a++)if(d=this.j.P[a],!(d.global||d.Z.di||d.Z.dr||d.U)){g=0;for(c=d.n.length;g<c;g++)this.j.Xf(d.n[g]);this.j.kd()}q=!1;this.j.Mt=!1};new wa(0,0,0,0);f.prototype.$c=function(a){var b,g=a,c=!1,d=!this.j.Ee;d&&(this.j.Yp||(this.j.Yp=document.createElement("canvas"),b=this.j.Yp,b.width=this.j.ka,b.height=this.j.ja,this.j.Sy=b.getContext("2d"),c=!0),b=this.j.Yp,g=this.j.Sy,b.width!==this.j.ka&&(b.width=this.j.ka,c=!0),b.height!==this.j.ja&&(b.height=this.j.ja,
c=!0),c&&this.j.Sq(g,this.j.pb));g.globalAlpha=1;g.globalCompositeOperation="source-over";this.j.rx&&!this.jy()&&g.clearRect(0,0,this.j.ka,this.j.ja);var k,f,c=0;for(k=this.xa.length;c<k;c++)f=this.xa[c],f.visible&&0<f.opacity&&11!==f.ld&&(f.n.length||!f.Sf)?f.$c(g):f.tr();d&&a.drawImage(b,0,0,this.j.width,this.j.height)};f.prototype.Ri=function(a){a.cA(!0);this.j.tc||(this.j.tc=a.nd(this.j.ka,this.j.ja,this.j.pb));if(this.j.tc.Mi!==this.j.ka||this.j.tc.Li!==this.j.ja)a.deleteTexture(this.j.tc),this.j.tc=
a.nd(this.j.ka,this.j.ja,this.j.pb);a.hf(this.j.tc);this.j.Ee||a.zh(this.j.ka,this.j.ja);var b,g;for(b=this.xa.length-1;0<=b;--b)g=this.xa[b],g.visible&&1===g.opacity&&g.Ah&&0===g.ld&&(g.n.length||!g.Sf)?g.Ri(a):g.tr();a.cA(!1)};f.prototype.Rc=function(a){var b=0<this.fb.length||this.j.ul||!this.j.Ee||this.j.ub;if(b){this.j.tc||(this.j.tc=a.nd(this.j.ka,this.j.ja,this.j.pb));if(this.j.tc.Mi!==this.j.ka||this.j.tc.Li!==this.j.ja)a.deleteTexture(this.j.tc),this.j.tc=a.nd(this.j.ka,this.j.ja,this.j.pb);
a.hf(this.j.tc);this.j.Ee||a.zh(this.j.ka,this.j.ja)}else this.j.tc&&(a.hf(null),a.deleteTexture(this.j.tc),this.j.tc=null);this.j.rx&&!this.jy()&&a.clear(0,0,0,0);var g,c,d;g=0;for(c=this.xa.length;g<c;g++)d=this.xa[g],d.visible&&0<d.opacity&&(d.n.length||!d.Sf)?d.Rc(a):d.tr();b&&(0===this.fb.length||1===this.fb.length&&this.j.Ee?(1===this.fb.length?(b=this.fb[0].index,a.Zd(this.fb[0].xc),a.ol(null,1/this.j.ka,1/this.j.ja,0,0,1,1,this.scale,this.C,0,0,this.j.ka/2,this.j.ja/2,this.j.rc.na,this.Tb[b]),
a.Eq(this.fb[0].xc)&&(this.j.aa=!0)):a.Zd(0),this.j.Ee||a.zh(this.j.width,this.j.height),a.hf(null),a.aA(!1),a.Lf(1),a.Xb(this.j.tc),a.Zz(),a.te(),a.$d(),b=this.j.width/2,g=this.j.height/2,a.Kj(-b,g,b,g,b,-g,-b,-g),a.Xb(null),a.aA(!0)):this.Qu(a,null,null,null))};f.prototype.zm=function(){return 0<this.fb.length||this.j.ul||!this.j.Ee||this.j.ub?this.j.tc:null};f.prototype.Zx=function(){var a=this.xa[0].dd(),b,g,c;b=1;for(g=this.xa.length;b<g;b++)c=this.xa[b],(0!==c.Na||0!==c.mb)&&c.dd()<a&&(a=c.dd());
return a};f.prototype.ll=function(a){if(!this.JA){var b=1/this.Zx()*this.j.ka/2;a>this.width-b&&(a=this.width-b);a<b&&(a=b)}this.scrollX!==a&&(this.scrollX=a,this.j.aa=!0)};f.prototype.ml=function(a){if(!this.JA){var b=1/this.Zx()*this.j.ja/2;a>this.height-b&&(a=this.height-b);a<b&&(a=b)}this.scrollY!==a&&(this.scrollY=a,this.j.aa=!0)};f.prototype.WE=function(){this.ll(this.scrollX);this.ml(this.scrollY)};f.prototype.Qu=function(a,b,g,c){var d=g?g.fb:b?b.fb:this.fb,k=1,f=0,n=0,p=0,q=this.j.ka,m=this.j.ja;
g?(k=g.F.dd(),f=g.F.Ib(),n=g.F.Ea,p=g.F.Fa,q=g.F.La,m=g.F.Ka):b&&(k=b.dd(),f=b.Ib(),n=b.Ea,p=b.Fa,q=b.La,m=b.Ka);var l=this.j.et,O,y,D,u,U=0,F=1,J,X,N=this.j.ka,E=this.j.ja,Q=N/2,H=E/2,K=b?b.uh:this.uh,B=b?b.Pu:this.Pu,z=0,I=0,C=0,L=0,P=N,fa=N,V=E,za=E,ga=D=0;u=g?g.F.Ib():0;if(g){O=0;for(y=d.length;O<y;O++)D+=a.lH(d[O].xc),ga+=a.mH(d[O].xc);L=g.ea;z=b.Sa(L.left,L.top,!0,!0);C=b.Sa(L.left,L.top,!1,!0);P=b.Sa(L.right,L.bottom,!0,!0);V=b.Sa(L.right,L.bottom,!1,!0);0!==u&&(O=b.Sa(L.right,L.top,!0,!0),
y=b.Sa(L.right,L.top,!1,!0),I=b.Sa(L.left,L.bottom,!0,!0),L=b.Sa(L.left,L.bottom,!1,!0),u=Math.min(z,P,O,I),P=Math.max(z,P,O,I),z=u,u=Math.min(C,V,y,L),V=Math.max(C,V,y,L),C=u);z-=D;C-=ga;P+=D;V+=ga;B.left=z/N;B.top=1-C/E;B.right=P/N;B.bottom=1-V/E;I=z=ra(z);L=C=ra(C);fa=P=ta(P);za=V=ta(V);I-=D;L-=ga;fa+=D;za+=ga;0>z&&(z=0);0>C&&(C=0);P>N&&(P=N);V>E&&(V=E);0>I&&(I=0);0>L&&(L=0);fa>N&&(fa=N);za>E&&(za=E);K.left=z/N;K.top=1-C/E;K.right=P/N;K.bottom=1-V/E}else K.left=B.left=0,K.top=B.top=0,K.right=B.right=
1,K.bottom=B.bottom=1;ga=g&&(a.un(d[0].xc)||0!==D||0!==ga||1!==g.opacity||g.type.Z.rz)||b&&!g&&1!==b.opacity;a.Zz();if(ga){l[U]||(l[U]=a.nd(N,E,this.j.pb));if(l[U].Mi!==N||l[U].Li!==E)a.deleteTexture(l[U]),l[U]=a.nd(N,E,this.j.pb);a.Zd(0);a.hf(l[U]);X=za-L;a.clearRect(I,E-L-X,fa-I,X);g?g.Rc(a):(a.Xb(this.j.Kc),a.Lf(b.opacity),a.te(),a.translate(-Q,-H),a.$d(),a.gf(z,V,P,V,P,C,z,C,K));B.left=B.top=0;B.right=B.bottom=1;g&&(u=K.top,K.top=K.bottom,K.bottom=u);U=1;F=0}a.Lf(1);D=d.length-1;var sa=a.Lu(d[D].xc)||
!b&&!g&&!this.j.Ee;O=u=0;for(y=d.length;O<y;O++){l[U]||(l[U]=a.nd(N,E,this.j.pb));if(l[U].Mi!==N||l[U].Li!==E)a.deleteTexture(l[U]),l[U]=a.nd(N,E,this.j.pb);a.Zd(d[O].xc);u=d[O].index;a.Eq(d[O].xc)&&(this.j.aa=!0);0!=O||ga?(a.ol(c,1/N,1/E,B.left,B.top,B.right,B.bottom,k,f,n,p,(n+q)/2,(p+m)/2,this.j.rc.na,g?g.Tb[u]:b?b.Tb[u]:this.Tb[u]),a.Xb(null),O!==D||sa?(a.hf(l[U]),X=za-L,J=E-L-X,a.clearRect(I,J,fa-I,X)):(g?a.wi(g.wd,g.od):b&&a.wi(b.wd,b.od),a.hf(c)),a.Xb(l[F]),a.te(),a.translate(-Q,-H),a.$d(),
a.gf(z,V,P,V,P,C,z,C,K),O!==D||sa||a.Xb(null)):(a.hf(l[U]),X=za-L,J=E-L-X,a.clearRect(I,J,fa-I,X),g?(g.tb&&g.tb.ba?(J=g.tb.ba,F=1/J.width,J=1/J.height):(F=1/g.width,J=1/g.height),a.ol(c,F,J,B.left,B.top,B.right,B.bottom,k,f,n,p,(n+q)/2,(p+m)/2,this.j.rc.na,g.Tb[u]),g.Rc(a)):(a.ol(c,1/N,1/E,0,0,1,1,k,f,n,p,(n+q)/2,(p+m)/2,this.j.rc.na,b?b.Tb[u]:this.Tb[u]),a.Xb(b?this.j.Kc:this.j.tc),a.te(),a.translate(-Q,-H),a.$d(),a.gf(z,V,P,V,P,C,z,C,K)),B.left=B.top=0,B.right=B.bottom=1,g&&!sa&&(u=V,V=C,C=u));
U=0===U?1:0;F=0===U?1:0}sa&&(a.Zd(0),g?a.wi(g.wd,g.od):b?a.wi(b.wd,b.od):this.j.Ee||(a.zh(this.j.width,this.j.height),Q=this.j.width/2,H=this.j.height/2,C=z=0,P=this.j.width,V=this.j.height),a.hf(c),a.Xb(l[F]),a.te(),a.translate(-Q,-H),a.$d(),g&&1===d.length&&!ga?a.gf(z,C,P,C,P,V,z,V,K):a.gf(z,V,P,V,P,C,z,C,K),a.Xb(null))};f.prototype.Dp=function(a){var b,g;b=0;for(g=this.xa.length;b<g;b++)if(this.xa[b].Oa===a)return this.xa[b];return null};f.prototype.ya=function(){var a,b,g,c={sx:this.scrollX,sy:this.scrollY,
s:this.scale,a:this.C,w:this.width,h:this.height,fv:this.tk,persist:this.ti,fx:[],layers:{}};a=0;for(b=this.ua.length;a<b;a++)g=this.ua[a],c.fx.push({name:g.name,active:g.Nb,params:this.Tb[g.index]});a=0;for(b=this.xa.length;a<b;a++)g=this.xa[a],c.layers[g.Oa.toString()]=g.ya();return c};f.prototype.Ga=function(a){var b,g,c,d;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.C=a.a;this.width=a.w;this.height=a.h;this.ti=a.persist;"undefined"!==typeof a.fv&&(this.tk=a.fv);var k=a.fx;b=0;for(g=
k.length;b<g;b++)if(c=this.kt(k[b].name))c.Nb=k[b].active,this.Tb[c.index]=k[b].params;this.Tf();b=a.layers;for(d in b)b.hasOwnProperty(d)&&(a=this.Dp(parseInt(d,10)))&&a.Ga(b[d])};Lb=f;d.prototype.Tf=function(){M(this.fb);this.Ah=!0;var a,b,g;a=0;for(b=this.ua.length;a<b;a++)g=this.ua[a],g.Nb&&(this.fb.push(g),g.Re||(this.Ah=!1))};d.prototype.kt=function(a){var b,g,c;b=0;for(g=this.ua.length;b<g;b++)if(c=this.ua[b],c.name===a)return c;return null};d.prototype.rF=function(){var a,b,g,d,k,f;b=a=0;
for(g=this.je.length;a<g;a++){d=this.je[a];k=this.j.P[d[1]];f=this.j.yv(k);k=!0;if(!f||this.sc.tk){d=this.j.Qg(d,this,!0);if(!d)continue;c.push(d);d.type.global&&(k=!1,this.im.push(d.uid))}k&&(this.je[b]=this.je[a],b++)}this.je.length=b;this.j.kd();!this.j.K&&this.ua.length&&(this.ld=this.bG);this.fm=jb(this.ld);this.j.T&&kb(this,this.ld,this.j.T);this.If=!0};d.prototype.il=function(a,b){var g=Ea(this.n,a);0>g||(b&&this.Te&&a.Wd&&a.Wd.right>=a.Wd.left&&(a.da(),this.jd.update(a,a.Wd,null),a.Wd.set(0,
0,-1,-1)),g===this.n.length-1?this.n.pop():(Aa(this.n,g),this.En(g)),this.If=!0)};d.prototype.Xl=function(a,b){a.Wf=this.n.length;this.n.push(a);b&&this.Te&&a.Wd&&a.L();this.If=!0};d.prototype.cJ=function(a){this.n.unshift(a);this.En(0)};d.prototype.vI=function(a,b,g){var c=a.ie();b=b.ie();Aa(this.n,c);c<b&&b--;g&&b++;b===this.n.length?this.n.push(a):this.n.splice(b,0,a);this.En(c<b?c:b)};d.prototype.En=function(a){-1===this.Lh?this.Lh=a:a<this.Lh&&(this.Lh=a);this.If=this.Xj=!0};d.prototype.Fv=function(){if(this.Xj){-1===
this.Lh&&(this.Lh=0);var a,b,g;if(this.Te)for(a=this.Lh,b=this.n.length;a<b;++a)g=this.n[a],g.Wf=a,this.jd.oI(g.Wd);else for(a=this.Lh,b=this.n.length;a<b;++a)this.n[a].Wf=a;this.Xj=!1;this.Lh=-1}};d.prototype.dd=function(a){return this.hH()*(this.j.Ee||a?this.j.Yl:1)};d.prototype.hH=function(){return(this.scale*this.sc.scale-1)*this.V+1};d.prototype.Ib=function(){return this.Sg?0:La(this.sc.C+this.C)};var b=[],a=[],g=[];d.prototype.tt=function(){this.Fv();this.jd.Hq(this.Ea,this.Fa,this.La,this.Ka,
g);if(!g.length)return m();if(1===g.length){var b=m();Ca(b,g[0]);M(g);return b}for(var h=!0;1<g.length;){for(var b=g,c=void 0,d=void 0,f=void 0,r=void 0,q=void 0,c=0,d=b.length;c<d-1;c+=2){var f=b[c],r=b[c+1],q=m(),n=f,p=r,l=q,W=0,T=0,O=0,y=n.length,D=p.length,u=void 0,U=void 0;for(l.length=y+D;W<y&&T<D;++O)u=n[W],U=p[T],u.Wf<U.Wf?(l[O]=u,++W):(l[O]=U,++T);for(;W<y;++W,++O)l[O]=n[W];for(;T<D;++T,++O)l[O]=p[T];h||(k(f),k(r));a.push(q)}1===d%2&&(h?(f=m(),Ca(f,b[d-1]),a.push(f)):a.push(b[d-1]));Ca(b,
a);M(a);h=!1}b=g[0];M(g);return b};d.prototype.$c=function(a){this.yg=this.xp||1!==this.opacity||0!==this.ld;var b=this.j.canvas,g=a,c=!1;this.yg&&(this.j.Xp||(this.j.Xp=document.createElement("canvas"),b=this.j.Xp,b.width=this.j.ka,b.height=this.j.ja,this.j.Ry=b.getContext("2d"),c=!0),b=this.j.Xp,g=this.j.Ry,b.width!==this.j.ka&&(b.width=this.j.ka,c=!0),b.height!==this.j.ja&&(b.height=this.j.ja,c=!0),c&&this.j.Sq(g,this.j.pb),this.Sf&&g.clearRect(0,0,this.j.ka,this.j.ja));g.globalAlpha=1;g.globalCompositeOperation=
"source-over";this.Sf||(g.fillStyle="rgb("+this.vf[0]+","+this.vf[1]+","+this.vf[2]+")",g.fillRect(0,0,this.j.ka,this.j.ja));g.save();this.Sg=!0;var c=this.W(0,0,!0,!0),d=this.W(0,0,!1,!0);this.Sg=!1;this.j.vd&&(c=Math.round(c),d=Math.round(d));this.Mq(c,d,g);var f=this.dd();g.scale(f,f);g.translate(-c,-d);this.Te?(this.Zc.left=this.jd.Nd(this.Ea),this.Zc.top=this.jd.Od(this.Fa),this.Zc.right=this.jd.Nd(this.La),this.Zc.bottom=this.jd.Od(this.Ka),this.If||!this.Zc.lm(this.Lk)?(k(this.hh),c=this.tt(),
this.If=!1,this.Lk.Vh(this.Zc)):c=this.hh):c=this.n;for(var q,n=null,d=0,f=c.length;d<f;++d)q=c[d],q!==n&&(this.TF(q,g),n=q);this.Te&&(this.hh=c);g.restore();this.yg&&(a.globalCompositeOperation=this.fm,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};d.prototype.TF=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.da();var g=a.ea;g.right<this.Ea||g.bottom<this.Fa||g.left>this.La||g.top>this.Ka||(b.globalCompositeOperation=a.fm,a.$c(b))}};d.prototype.tr=function(){this.Sg=!0;var a=this.W(0,
0,!0,!0),b=this.W(0,0,!1,!0);this.Sg=!1;this.j.vd&&(a=Math.round(a),b=Math.round(b));this.Mq(a,b,null)};d.prototype.Mq=function(a,b,g){var c=this.dd();this.Ea=a;this.Fa=b;this.La=a+1/c*this.j.ka;this.Ka=b+1/c*this.j.ja;this.Ea>this.La&&(a=this.Ea,this.Ea=this.La,this.La=a);this.Fa>this.Ka&&(a=this.Fa,this.Fa=this.Ka,this.Ka=a);a=this.Ib();0!==a&&(g&&(g.translate(this.j.ka/2,this.j.ja/2),g.rotate(-a),g.translate(this.j.ka/-2,this.j.ja/-2)),this.Hh.set(this.Ea,this.Fa,this.La,this.Ka),this.Hh.offset((this.Ea+
this.La)/-2,(this.Fa+this.Ka)/-2),this.DA.jA(this.Hh,a),this.DA.gx(this.Hh),this.Hh.offset((this.Ea+this.La)/2,(this.Fa+this.Ka)/2),this.Ea=this.Hh.left,this.Fa=this.Hh.top,this.La=this.Hh.right,this.Ka=this.Hh.bottom)};d.prototype.Ri=function(a){if(this.yg=this.xp){this.j.Kc||(this.j.Kc=a.nd(this.j.ka,this.j.ja,this.j.pb));if(this.j.Kc.Mi!==this.j.ka||this.j.Kc.Li!==this.j.ja)a.deleteTexture(this.j.Kc),this.j.Kc=a.nd(this.j.ka,this.j.ja,this.j.pb);a.hf(this.j.Kc)}this.Sg=!0;var b=this.W(0,0,!0,!0),
g=this.W(0,0,!1,!0);this.Sg=!1;this.j.vd&&(b=Math.round(b),g=Math.round(g));this.Mq(b,g,null);b=this.dd();a.te();a.scale(b,b);a.Cn(-this.Ib());a.translate((this.Ea+this.La)/-2,(this.Fa+this.Ka)/-2);a.$d();this.Te?(this.Zc.left=this.jd.Nd(this.Ea),this.Zc.top=this.jd.Od(this.Fa),this.Zc.right=this.jd.Nd(this.La),this.Zc.bottom=this.jd.Od(this.Ka),this.If||!this.Zc.lm(this.Lk)?(k(this.hh),b=this.tt(),this.If=!1,this.Lk.Vh(this.Zc)):b=this.hh):b=this.n;for(var c,d=null,g=b.length-1;0<=g;--g)c=b[g],c!==
d&&(this.VF(b[g],a),d=c);this.Te&&(this.hh=b);this.Sf||(this.Gs=this.j.Ti++,a.Tq(this.Gs),a.$z(1,1,1),a.Px(),a.rJ())};d.prototype.Rc=function(a){var b=0,g=0;if(this.yg=this.xp||1!==this.opacity||0<this.fb.length||0!==this.ld){this.j.Kc||(this.j.Kc=a.nd(this.j.ka,this.j.ja,this.j.pb));if(this.j.Kc.Mi!==this.j.ka||this.j.Kc.Li!==this.j.ja)a.deleteTexture(this.j.Kc),this.j.Kc=a.nd(this.j.ka,this.j.ja,this.j.pb);a.hf(this.j.Kc);this.Sf&&a.clear(0,0,0,0)}this.Sf||(this.j.ub?(a.Tq(this.Gs),a.$z(this.vf[0]/
255,this.vf[1]/255,this.vf[2]/255),a.Px(),a.OJ()):a.clear(this.vf[0]/255,this.vf[1]/255,this.vf[2]/255,1));this.Sg=!0;var c=this.W(0,0,!0,!0),b=this.W(0,0,!1,!0);this.Sg=!1;this.j.vd&&(c=Math.round(c),b=Math.round(b));this.Mq(c,b,null);c=this.dd();a.te();a.scale(c,c);a.Cn(-this.Ib());a.translate((this.Ea+this.La)/-2,(this.Fa+this.Ka)/-2);a.$d();this.Te?(this.Zc.left=this.jd.Nd(this.Ea),this.Zc.top=this.jd.Od(this.Fa),this.Zc.right=this.jd.Nd(this.La),this.Zc.bottom=this.jd.Od(this.Ka),this.If||!this.Zc.lm(this.Lk)?
(k(this.hh),b=this.tt(),this.If=!1,this.Lk.Vh(this.Zc)):b=this.hh):b=this.n;var d,f,q=null,g=0;for(d=b.length;g<d;++g)f=b[g],f!==q&&(this.UF(b[g],a),q=f);this.Te&&(this.hh=b);this.yg&&(b=this.fb.length?this.fb[0].xc:0,g=this.fb.length?this.fb[0].index:0,0===this.fb.length||1===this.fb.length&&!a.Lu(b)&&1===this.opacity?(1===this.fb.length?(a.Zd(b),a.ol(this.sc.zm(),1/this.j.ka,1/this.j.ja,0,0,1,1,c,this.Ib(),this.Ea,this.Fa,(this.Ea+this.La)/2,(this.Fa+this.Ka)/2,this.j.rc.na,this.Tb[g]),a.Eq(b)&&
(this.j.aa=!0)):a.Zd(0),a.hf(this.sc.zm()),a.Lf(this.opacity),a.Xb(this.j.Kc),a.wi(this.wd,this.od),a.te(),a.$d(),c=this.j.ka/2,b=this.j.ja/2,a.Kj(-c,b,c,b,c,-b,-c,-b),a.Xb(null)):this.sc.Qu(a,this,null,this.sc.zm()))};d.prototype.UF=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.da();var g=a.ea;g.right<this.Ea||g.bottom<this.Fa||g.left>this.La||g.top>this.Ka||(b.Tq(a.Ti),a.RA?this.WF(a,b):(b.Zd(0),b.wi(a.wd,a.od),a.Rc(b)))}};d.prototype.VF=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.da();
var g=a.ea;g.right<this.Ea||g.bottom<this.Fa||g.left>this.La||g.top>this.Ka||(a.Ti=this.j.Ti++,0===a.ld&&1===a.opacity&&a.Ah&&a.Ri&&(b.Tq(a.Ti),a.Ri(b)))}};d.prototype.WF=function(a,b){var g=a.fb[0].xc,c=a.fb[0].index,d=this.dd();if(1!==a.fb.length||b.Lu(g)||b.fJ(g)||(a.C||a.F.Ib())&&b.un(g)||1!==a.opacity||a.type.Z.rz)this.sc.Qu(b,this,a,this.yg?this.j.Kc:this.sc.zm()),b.te(),b.scale(d,d),b.Cn(-this.Ib()),b.translate((this.Ea+this.La)/-2,(this.Fa+this.Ka)/-2),b.$d();else{b.Zd(g);b.wi(a.wd,a.od);
b.Eq(g)&&(this.j.aa=!0);var k=0,f=0,n=0,p=0;b.un(g)&&(p=a.ea,k=this.Sa(p.left,p.top,!0,!0),f=this.Sa(p.left,p.top,!1,!0),n=this.Sa(p.right,p.bottom,!0,!0),p=this.Sa(p.right,p.bottom,!1,!0),k=k/windowWidth,f=1-f/windowHeight,n=n/windowWidth,p=1-p/windowHeight);var q;a.tb&&a.tb.ba?(q=a.tb.ba,g=1/q.width,q=1/q.height):(g=1/a.width,q=1/a.height);b.ol(this.yg?this.j.Kc:this.sc.zm(),g,q,k,f,n,p,d,this.Ib(),this.Ea,this.Fa,(this.Ea+this.La)/2,(this.Fa+this.Ka)/2,this.j.rc.na,a.Tb[c]);a.Rc(b)}};d.prototype.W=
function(a,b,g,c){var d=this.j.devicePixelRatio;this.j.lj&&(a*=d,b*=d);var d=this.j.Jz,k=this.j.Kz,d=(this.sc.scrollX-d)*this.Na+d,k=(this.sc.scrollY-k)*this.mb+k,f=d,n=k,p=1/this.dd(!c);c?(f-=this.j.ka*p/2,n-=this.j.ja*p/2):(f-=this.j.width*p/2,n-=this.j.height*p/2);f+=a*p;n+=b*p;b=this.Ib();0!==b&&(f-=d,n-=k,a=Math.cos(b),b=Math.sin(b),c=f*a-n*b,n=n*a+f*b,f=c+d,n+=k);return g?f:n};d.prototype.Sa=function(a,b,g,c){var d=this.j.Jz,k=this.j.Kz,f=(this.sc.scrollX-d)*this.Na+d,n=(this.sc.scrollY-k)*
this.mb+k,k=f,d=n,p=this.Ib();if(0!==p){a-=f;b-=n;var q=Math.cos(-p),p=Math.sin(-p),l=a*q-b*p;b=b*q+a*p;a=l+f;b+=n}f=1/this.dd(!c);c?(k-=this.j.ka*f/2,d-=this.j.ja*f/2):(k-=this.j.width*f/2,d-=this.j.height*f/2);k=(a-k)/f;d=(b-d)/f;a=this.j.devicePixelRatio;this.j.lj&&!c&&(k/=a,d/=a);return g?k:d};d.prototype.ya=function(){var a,b,g,c={s:this.scale,a:this.C,vl:this.Ea,vt:this.Fa,vr:this.La,vb:this.Ka,v:this.visible,bc:this.vf,t:this.Sf,px:this.Na,py:this.mb,o:this.opacity,zr:this.V,fx:[],cg:this.im,
instances:[]};a=0;for(b=this.ua.length;a<b;a++)g=this.ua[a],c.fx.push({name:g.name,active:g.Nb,params:this.Tb[g.index]});return c};d.prototype.Ga=function(a){var b,g,c;this.scale=a.s;this.C=a.a;this.Ea=a.vl;this.Fa=a.vt;this.La=a.vr;this.Ka=a.vb;this.visible=a.v;this.vf=a.bc;this.Sf=a.t;this.Na=a.px;this.mb=a.py;this.opacity=a.o;this.V=a.zr;this.im=a.cg||[];Ca(this.je,this.sA);var d=new ca;b=0;for(c=this.im.length;b<c;++b)d.add(this.im[b]);g=b=0;for(c=this.je.length;b<c;++b)d.contains(this.je[b][2])||
(this.je[g]=this.je[b],++g);Ba(this.je,g);g=a.fx;b=0;for(c=g.length;b<c;b++)if(a=this.kt(g[b].name))a.Nb=g[b].active,this.Tb[a.index]=g[b].params;this.Tf();this.n.sort(l);this.Xj=!0};ac=d})();
(function(){function f(a,b){var e,g=a.length;switch(g){case 0:return!0;case 1:return a[0]===b[0];case 2:return a[0]===b[0]&&a[1]===b[1];default:for(e=0;e<g;e++)if(a[e]!==b[e])return!1;return!0}}function l(a,b){return a.index-b.index}function d(a){var b,e,g,c;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(l);a.length>=w.length&&(w.length=a.length+1);w[a.length]||(w[a.length]=[]);c=w[a.length];b=0;for(e=c.length;b<e;b++)if(g=c[b],f(a,g))return g;c.push(a);return a}
function m(a,b){this.j=a;this.HA={};this.Hx={};this.Ct=!1;this.my=new ca;this.Qs=[];this.us=[];this.name=b[0];var e=b[1];this.Xh=[];var g,c;g=0;for(c=e.length;g<c;g++)this.qy(e[g],null,this.Xh)}function k(a){this.type=a;this.n=[];this.wa=[];this.pa=!0}function c(a,b,e){this.sheet=a;this.parent=b;this.j=a.j;this.za=[];this.Ai=[];this.ky=this.mr=this.uv=this.It=this.group=this.dv=!1;this.Fc=[];this.Ve=[];this.kf=[];this.Cm="";this.aj=this.It=this.group=!1;this.Ro=null;e[1]&&(this.Cm=e[1][1].toLowerCase(),
this.group=!0,this.It=!!e[1][0],this.Ro=[],this.aj=this.It,this.j.hk.push(this),this.j.vk[this.Cm]=this);this.Oe=e[2];this.Oa=e[4];this.group||(this.j.cx[this.Oa.toString()]=this);var g=e[5];a=0;for(b=g.length;a<b;a++){var c=new bc(this,g[a]);c.index=a;this.Fc.push(c);this.Uw(c.type)}g=e[6];a=0;for(b=g.length;a<b;a++)c=new dc(this,g[a]),c.index=a,this.Ve.push(c);if(8===e.length)for(e=e[7],a=0,b=e.length;a<b;a++)this.sheet.qy(e[a],this,this.kf);this.Tp=!1;this.Fc.length&&(this.Tp=null==this.Fc[0].type&&
this.Fc[0].bd==S.prototype.m.Vv)}function q(a,b){var e,g,c;if(a&&(-1===b.indexOf(a)&&b.push(a),a.ed))for(e=0,g=a.ee.length;e<g;e++)c=a.ee[e],a!==c&&-1===b.indexOf(c)&&b.push(c)}function b(a,b){this.ze=a;this.sheet=a.sheet;this.j=a.j;this.Da=[];this.Wb=[];this.R={};this.index=-1;this.Vl=!1;this.bd=this.j.Mh(b[1]);this.trigger=0<b[3];this.Gx=2===b[3];this.ng=b[4];this.ij=b[5];this.eI=b[6];this.Oa=b[7];this.j.Uh[this.Oa.toString()]=this;-1===b[0]?(this.type=null,this.wc=this.Uu,this.Ki=null,this.xf=
-1):(this.type=this.j.P[b[0]],this.wc=this.eI?this.yJ:this.Tu,b[2]?(this.Ki=this.type.Bp(b[2]),this.xf=this.type.ht(b[2])):(this.Ki=null,this.xf=-1),this.ze.parent&&this.ze.parent.Wq());this.Gx&&(this.wc=this.zJ);if(10===b.length){var e,g,c=b[9];e=0;for(g=c.length;e<g;e++){var h=new ec(this,c[e]);this.Da.push(h)}this.Wb.length=c.length}}function a(a,b){this.ze=a;this.sheet=a.sheet;this.j=a.j;this.Da=[];this.Wb=[];this.R={};this.index=-1;this.Vl=!1;this.bd=this.j.Mh(b[1]);-1===b[0]?(this.type=null,
this.wc=this.Uu,this.Ki=null,this.xf=-1):(this.type=this.j.P[b[0]],this.wc=this.Tu,b[2]?(this.Ki=this.type.Bp(b[2]),this.xf=this.type.ht(b[2])):(this.Ki=null,this.xf=-1));this.Oa=b[3];this.j.Ph[this.Oa.toString()]=this;if(6===b.length){var e,g,c=b[5];e=0;for(g=c.length;e<g;e++){var h=new ec(this,c[e]);this.Da.push(h)}this.Wb.length=c.length}}function g(){t++;r.length===t&&r.push(new fc);return r[t]}function e(a,b){this.ff=a;this.ze=a.ze;this.sheet=a.sheet;this.j=a.j;this.type=b[0];this.eg=null;this.Bh=
0;this.get=null;this.tx=0;this.sc=null;this.key=0;this.object=null;this.index=0;this.Vn=this.Rj=this.Vn=this.Rj=this.Kx=this.Wi=this.Wn=null;this.nf=!1;var e,g,c;switch(b[0]){case 0:case 7:this.eg=new gc(this,b[1]);this.Bh=0;this.get=this.vH;break;case 1:this.eg=new gc(this,b[1]);this.Bh=0;this.get=this.wH;break;case 5:this.eg=new gc(this,b[1]);this.Bh=0;this.get=this.AH;break;case 3:case 8:this.tx=b[1];this.get=this.tH;break;case 6:this.sc=this.j.Mk[b[1]];this.get=this.BH;break;case 9:this.key=b[1];
this.get=this.zH;break;case 4:this.object=this.j.P[b[1]];this.get=this.CH;this.ze.Uw(this.object);this.ff instanceof dc?this.ze.Wq():this.ze.parent&&this.ze.parent.Wq();break;case 10:this.index=b[1];a.type&&a.type.U?(this.get=this.xH,this.nf=!0):this.get=this.yH;break;case 11:this.Wn=b[1];this.Wi=null;this.get=this.uH;break;case 2:case 12:this.Kx=b[1];this.get=this.sH;break;case 13:for(this.get=this.DH,this.Rj=[],this.Vn=[],e=1,g=b.length;e<g;e++)c=new ec(this.ff,b[e]),this.Rj.push(c),this.Vn.push(0)}}
function h(a,b,e){this.sheet=a;this.parent=b;this.j=a.j;this.za=[];this.name=e[1];this.xr=e[2];this.Ht=e[3];this.Rm=!!e[4];this.Sp=!!e[5];this.Oa=e[6];this.j.xl[this.Oa.toString()]=this;this.data=this.Ht;this.parent?(this.xj=this.Rm||this.Sp?-1:this.j.UJ++,this.j.NE.push(this)):(this.xj=-1,this.j.ME.push(this))}function v(a,b,e){this.sheet=a;this.parent=b;this.j=a.j;this.za=[];this.Gm=null;this.MH=e[1];this.Nb=!0}function x(){this.uA=[];this.reset(null)}var w=[];m.prototype.toString=function(){return this.name};
m.prototype.qy=function(a,b,e){switch(a[0]){case 0:a=new hc(this,b,a);if(a.Oe)for(e.push(a),e=0,b=a.Fc.length;e<b;e++)a.Fc[e].trigger&&this.ry(a,e);else a.Fy()?this.ry(a,0):e.push(a);break;case 1:a=new Yb(this,b,a);e.push(a);break;case 2:a=new ic(this,b,a),e.push(a)}};m.prototype.ic=function(){var a,b;a=0;for(b=this.Xh.length;a<b;a++)this.Xh[a].ic(a<b-1&&this.Xh[a+1].Tp)};m.prototype.Av=function(){M(this.Qs);M(this.us);this.Tw(this);M(this.us)};m.prototype.Tw=function(a){var b,e,g,c,h=a.Qs,d=a.us,
k=this.my.Md();b=0;for(e=k.length;b<e;++b)g=k[b],c=g.Gm,!g.Nb||a===c||-1<d.indexOf(c)||(d.push(c),c.Tw(a),h.push(c))};m.prototype.wc=function(a){this.j.IL||(this.Ct=!0,a||(this.j.Pt=!0));var b,e;b=0;for(e=this.Xh.length;b<e;b++){var g=this.Xh[b];g.wc();this.j.Fs(g.za);this.j.bi&&this.j.kd()}a||(this.j.Pt=!1)};m.prototype.ry=function(a,b){a.Oe||this.j.pr.push(a);var e,g,c=a.Fc[b],h;c.type?h=c.type.name:h="system";var d=(e=c.Gx)?this.Hx:this.HA;d[h]||(d[h]=[]);h=d[h];d=c.bd;if(e){if(c.Da.length&&(c=
c.Da[0],1===c.type&&2===c.eg.type)){c=c.eg.value.toLowerCase();e=0;for(g=h.length;e<g;e++)if(h[e].method==d){e=h[e].mm;e[c]?e[c].push([a,b]):e[c]=[[a,b]];return}e={};e[c]=[[a,b]];h.push({method:d,mm:e})}}else{e=0;for(g=h.length;e<g;e++)if(h[e].method==d){h[e].mm.push([a,b]);return}Y&&d===Y.prototype.m.$j?h.unshift({method:d,mm:[[a,b]]}):h.push({method:d,mm:[[a,b]]})}};Ob=m;k.prototype.Hp=function(){return this.pa?this.type.n.length:this.n.length};k.prototype.Cd=function(){return this.pa?this.type.n:
this.n};k.prototype.Jj=function(a){a&&(a.j.Cb().Fb.Oe?(this.pa&&(M(this.n),Ca(this.wa,a.type.n),this.pa=!1),a=this.wa.indexOf(a),-1!==a&&(this.n.push(this.wa[a]),this.wa.splice(a,1))):(this.pa=!1,M(this.n),this.n[0]=a))};qb=k;window._c2hh_="228740D8B24F207F71A76CD1CB9AB8F74FFCABE6";c.prototype.ic=function(a){var b,e=this.parent;if(this.group)for(this.mr=!0;e;){if(!e.group){this.mr=!1;break}e=e.parent}this.uv=!this.Fy()&&(!this.parent||this.parent.group&&this.parent.mr);this.ky=!!a;this.Ai=this.za.slice(0);
for(e=this.parent;e;){a=0;for(b=e.za.length;a<b;a++)this.KE(e.za[a]);e=e.parent}this.za=d(this.za);this.Ai=d(this.Ai);a=0;for(b=this.Fc.length;a<b;a++)this.Fc[a].ic();a=0;for(b=this.Ve.length;a<b;a++)this.Ve[a].ic();a=0;for(b=this.kf.length;a<b;a++)this.kf[a].ic(a<b-1&&this.kf[a+1].Tp)};c.prototype.Uq=function(a){if(this.aj!==!!a){this.aj=!!a;var b;a=0;for(b=this.Ro.length;a<b;++a)this.Ro[a].LA();0<b&&this.j.ra.Vi&&this.j.ra.Vi.Av()}};c.prototype.Uw=function(a){q(a,this.za)};c.prototype.KE=function(a){q(a,
this.Ai)};c.prototype.Wq=function(){this.dv=!0;this.parent&&this.parent.Wq()};c.prototype.Fy=function(){return this.Fc.length?this.Fc[0].trigger:!1};c.prototype.wc=function(){var a,b,e=!1,g=this.j,c=this.j.Cb();c.Fb=this;var h=this.Fc;this.Tp||(c.Ws=!1);if(this.Oe){0===h.length&&(e=!0);c.lc=0;for(a=h.length;c.lc<a;c.lc++)b=h[c.lc],b.trigger||(b=b.wc())&&(e=!0);(c.rj=e)&&this.Nq()}else{c.lc=0;for(a=h.length;c.lc<a;c.lc++)if(b=h[c.lc].wc(),!b){c.rj=!1;this.uv&&g.bi&&g.kd();return}c.rj=!0;this.Nq()}this.cG(c)};
c.prototype.cG=function(a){a.rj&&this.ky&&(a.Ws=!0);this.uv&&this.j.bi&&this.j.kd()};c.prototype.wJ=function(a){this.j.Cb().Fb=this;this.Fc[a].wc()&&(this.Nq(),this.j.Cb().rj=!0)};c.prototype.Nq=function(){var a=this.j.Cb(),b;a.Pd=0;for(b=this.Ve.length;a.Pd<b;a.Pd++)if(this.Ve[a.Pd].wc())return;this.Yz()};c.prototype.tJ=function(){var a=this.j.Cb(),b;for(b=this.Ve.length;a.Pd<b;a.Pd++)if(this.Ve[a.Pd].wc())return;this.Yz()};c.prototype.Yz=function(){if(this.kf.length){var a,b,e,g,c=this.kf.length-
1;this.j.Fq(this);if(this.dv)for(a=0,b=this.kf.length;a<b;a++)e=this.kf[a],(g=!this.mr||!this.group&&a<c)&&this.j.xg(e.za),e.wc(),g?this.j.Qe(e.za):this.j.Fs(e.za);else for(a=0,b=this.kf.length;a<b;a++)this.kf[a].wc();this.j.Bq()}};c.prototype.xJ=function(){var a=this.j.Cb();a.Fb=this;var b=!1,e;a.lc=0;for(e=this.Fc.length;a.lc<e;a.lc++)if(this.Fc[a.lc].wc())b=!0;else if(!this.Oe)return!1;return this.Oe?b:!0};c.prototype.xh=function(){this.j.Xi++;var a=this.j.Cb().lc,b=this.j.Fq(this);if(!this.Oe)for(b.lc=
a+1,a=this.Fc.length;b.lc<a;b.lc++)if(!this.Fc[b.lc].wc()){this.j.Bq();return}this.Nq();this.j.Bq()};c.prototype.VH=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.Fc[b].type===a.type)return!1;return!0};hc=c;b.prototype.ic=function(){var a,b,e;a=0;for(b=this.Da.length;a<b;a++)e=this.Da[a],e.ic(),e.nf&&(this.Vl=!0)};b.prototype.zJ=function(){return!0};b.prototype.Uu=function(){var a,b;a=0;for(b=this.Da.length;a<b;a++)this.Wb[a]=this.Da[a].get();return Va(this.bd.apply(this.j.Ag,
this.Wb),this.ij)};b.prototype.yJ=function(){var a,b;a=0;for(b=this.Da.length;a<b;a++)this.Wb[a]=this.Da[a].get();a=this.bd.apply(this.Ki?this.Ki:this.type,this.Wb);this.type.de();return a};b.prototype.Tu=function(){var a,b,e,g,c,h,d,k,f=this.type,q=f.la(),r=this.ze.Oe&&!this.trigger;b=0;var t=f.ed,l=f.U,m=f.Xg,w=this.xf,x=-1<w,v=this.Vl,K=this.Da,B=this.Wb,z=this.ij,I=this.bd,C;if(v)for(b=0,c=K.length;b<c;++b)h=K[b],h.nf||(B[b]=h.get(0));else for(b=0,c=K.length;b<c;++b)B[b]=K[b].get(0);if(q.pa){M(q.n);
M(q.wa);C=f.n;a=0;for(g=C.length;a<g;++a){k=C[a];if(v)for(b=0,c=K.length;b<c;++b)h=K[b],h.nf&&(B[b]=h.get(a));x?(b=0,l&&(b=k.type.rk[m]),b=I.apply(k.X[w+b],B)):b=I.apply(k,B);(d=Va(b,z))?q.n.push(k):r&&q.wa.push(k)}f.finish&&f.finish(!0);q.pa=!1;f.de();return q.Hp()}e=0;C=(d=r&&!this.ze.VH(this))?q.wa:q.n;var L=!1;a=0;for(g=C.length;a<g;++a){k=C[a];if(v)for(b=0,c=K.length;b<c;++b)h=K[b],h.nf&&(B[b]=h.get(a));x?(b=0,l&&(b=k.type.rk[m]),b=I.apply(k.X[w+b],B)):b=I.apply(k,B);if(Va(b,z))if(L=!0,d){if(q.n.push(k),
t)for(b=0,c=k.siblings.length;b<c;b++)h=k.siblings[b],h.type.la().n.push(h)}else{C[e]=k;if(t)for(b=0,c=k.siblings.length;b<c;b++)h=k.siblings[b],h.type.la().n[e]=h;e++}else if(d){C[e]=k;if(t)for(b=0,c=k.siblings.length;b<c;b++)h=k.siblings[b],h.type.la().wa[e]=h;e++}else if(r&&(q.wa.push(k),t))for(b=0,c=k.siblings.length;b<c;b++)h=k.siblings[b],h.type.la().wa.push(h)}Ba(C,e);if(t)for(l=f.ee,a=0,g=l.length;a<g;a++)k=l[a].la(),d?Ba(k.wa,e):Ba(k.n,e);e=L;if(d&&!L)for(a=0,g=q.n.length;a<g;a++){k=q.n[a];
if(v)for(b=0,c=K.length;b<c;b++)h=K[b],h.nf&&(B[b]=h.get(a));b=x?I.apply(k.X[w],B):I.apply(k,B);if(Va(b,z)){L=!0;break}}f.finish&&f.finish(e||r);return r?L:q.Hp()};bc=b;a.prototype.ic=function(){var a,b,e;a=0;for(b=this.Da.length;a<b;a++)e=this.Da[a],e.ic(),e.nf&&(this.Vl=!0)};a.prototype.Uu=function(){var a=this.j,b,e,g=this.Da,c=this.Wb;b=0;for(e=g.length;b<e;++b)c[b]=g[b].get();return this.bd.apply(a.Ag,c)};a.prototype.Tu=function(){var a=this.type,b=this.xf,e=a.Xg,g=this.Vl,c=this.Da,h=this.Wb,
d=this.bd,k=a.la().Cd(),a=a.U,f=-1<b,q,r,t,l,m,w;if(g)for(r=0,l=c.length;r<l;++r)m=c[r],m.nf||(h[r]=m.get(0));else for(r=0,l=c.length;r<l;++r)h[r]=c[r].get(0);q=0;for(t=k.length;q<t;++q){w=k[q];if(g)for(r=0,l=c.length;r<l;++r)m=c[r],m.nf&&(h[r]=m.get(q));f?(r=0,a&&(r=w.type.rk[e]),d.apply(w.X[b+r],h)):d.apply(w,h)}return!1};dc=a;var r=[],t=-1;e.prototype.ic=function(){var a,b;if(11===this.type)this.Wi=this.j.Vx(this.Wn,this.ze.parent);else if(13===this.type)for(a=0,b=this.Rj.length;a<b;a++)this.Rj[a].ic();
this.eg&&this.eg.ic()};e.prototype.qI=function(a){this.nf||!a||a.Z.dr||(this.nf=!0)};e.prototype.hA=function(){this.nf=!0};e.prototype.vH=function(a){this.Bh=a||0;a=g();this.eg.get(a);t--;return a.data};e.prototype.wH=function(a){this.Bh=a||0;a=g();this.eg.get(a);t--;return ja(a.data)?a.data:""};e.prototype.CH=function(){return this.object};e.prototype.tH=function(){return this.tx};e.prototype.AH=function(a){this.Bh=a||0;a=g();this.eg.get(a);t--;return a.Uc()?this.j.Pa(a.data):this.j.cd(a.data)};
e.prototype.BH=function(){return this.sc};e.prototype.zH=function(){return this.key};e.prototype.yH=function(){return this.index};e.prototype.xH=function(a){a=a||0;var b=this.ff.type,e=null,e=b.la(),g=e.Cd();if(g.length)e=g[a%g.length].type;else if(e.wa.length)e=e.wa[a%e.wa.length].type;else if(b.n.length)e=b.n[a%b.n.length].type;else return 0;return this.index+e.np[b.Xg]};e.prototype.uH=function(){return this.Wi};e.prototype.sH=function(){return this.Kx};e.prototype.DH=function(){var a,b;a=0;for(b=
this.Rj.length;a<b;a++)this.Vn[a]=this.Rj[a].get();return this.Vn};ec=e;h.prototype.ic=function(){this.za=d(this.za)};h.prototype.Oj=function(a){var b=this.j.Sx();this.parent&&!this.Rm&&b?(this.xj>=b.length&&(b.length=this.xj+1),b[this.xj]=a):this.data=a};h.prototype.Am=function(){var a=this.j.Sx();return!this.parent||this.Rm||!a||this.Sp?this.data:this.xj>=a.length||"undefined"===typeof a[this.xj]?this.Ht:a[this.xj]};h.prototype.wc=function(){!this.parent||this.Rm||this.Sp||this.Oj(this.Ht)};Yb=
h;v.prototype.toString=function(){return"include:"+this.Gm.toString()};v.prototype.ic=function(){this.Gm=this.j.Zs[this.MH];this.sheet.my.add(this);this.za=d(this.za);for(var a=this.parent;a;)a.group&&a.Ro.push(this),a=a.parent;this.LA()};v.prototype.wc=function(){this.parent&&this.j.vn(this.j.P);this.Gm.Ct||this.Gm.wc(!0);this.parent&&this.j.Qe(this.j.P)};v.prototype.LA=function(){for(var a=this.parent;a;){if(a.group&&!a.aj){this.Nb=!1;return}a=a.parent}this.Nb=!0};ic=v;x.prototype.reset=function(a){this.Fb=
a;this.Pd=this.lc=0;M(this.uA);this.Ws=this.rj=!1};x.prototype.Ay=function(){return this.Fb.dv?!0:this.lc<this.Fb.Fc.length-1?!!this.Fb.za.length:!1};Xb=x})();
(function(){function f(c,b){this.ff=c;this.j=c.j;this.type=b[0];this.get=[this.uG,this.qG,this.DG,this.GG,this.fG,this.EG,this.yG,this.nG,this.xG,this.CG,this.gG,this.BG,this.oG,this.zG,this.vG,this.wG,this.rG,this.sG,this.mG,this.FG,this.AG,this.tG,this.lG,this.pG][this.type];var a=null;this.ih=this.Da=this.Wb=this.bd=this.jr=this.second=this.first=this.value=null;this.xf=-1;this.Df=null;this.SA=-1;this.Wi=this.Wn=null;this.jl=!1;switch(this.type){case 0:case 1:case 2:this.value=b[1];break;case 3:this.first=
new gc(c,b[1]);break;case 18:this.first=new gc(c,b[1]);this.second=new gc(c,b[2]);this.jr=new gc(c,b[3]);break;case 19:this.bd=this.j.Mh(b[1]);this.bd!==S.prototype.D.random&&this.bd!==S.prototype.D.hF||this.ff.hA();this.Wb=[];this.Da=[];3===b.length?(a=b[2],this.Wb.length=a.length+1):this.Wb.length=1;break;case 20:this.ih=this.j.P[b[1]];this.xf=-1;this.bd=this.j.Mh(b[2]);this.jl=b[3];Ac&&this.bd===Ac.prototype.D.gB&&this.ff.hA();b[4]?this.Df=new gc(c,b[4]):this.Df=null;this.Wb=[];this.Da=[];6===
b.length?(a=b[5],this.Wb.length=a.length+1):this.Wb.length=1;break;case 21:this.ih=this.j.P[b[1]];this.jl=b[2];b[3]?this.Df=new gc(c,b[3]):this.Df=null;this.SA=b[4];break;case 22:this.ih=this.j.P[b[1]];this.ih.Bp(b[2]);this.xf=this.ih.ht(b[2]);this.bd=this.j.Mh(b[3]);this.jl=b[4];b[5]?this.Df=new gc(c,b[5]):this.Df=null;this.Wb=[];this.Da=[];7===b.length?(a=b[6],this.Wb.length=a.length+1):this.Wb.length=1;break;case 23:this.Wn=b[1],this.Wi=null}this.ff.qI(this.ih);4<=this.type&&17>=this.type&&(this.first=
new gc(c,b[1]),this.second=new gc(c,b[2]));if(a){var g,e;g=0;for(e=a.length;g<e;g++)this.Da.push(new gc(c,a[g]))}}function l(){++c;k.length===c&&k.push(new fc);return k[c]}function d(c,b,a){var g,e;g=0;for(e=c.length;g<e;++g)c[g].get(a),b[g+1]=a.data}function m(c,b){this.type=c||jc.Zj;this.data=b||0;this.Cj=null;this.type==jc.Zj&&(this.data=Math.floor(this.data))}f.prototype.ic=function(){23===this.type&&(this.Wi=this.ff.j.Vx(this.Wn,this.ff.ze.parent));this.first&&this.first.ic();this.second&&this.second.ic();
this.jr&&this.jr.ic();this.Df&&this.Df.ic();if(this.Da){var c,b;c=0;for(b=this.Da.length;c<b;c++)this.Da[c].ic()}};var k=[],c=-1;f.prototype.FG=function(k){var b=this.Da,a=this.Wb;a[0]=k;k=l();d(b,a,k);--c;this.bd.apply(this.j.Ag,a)};f.prototype.AG=function(k){var b=this.ih,a=this.Wb,g=this.Da,e=this.Df,h=this.bd,f=this.ff.Bh,m=b.la(),w=m.Cd();if(!w.length)if(m.wa.length)w=m.wa;else{this.jl?k.sb(""):k.O(0);return}a[0]=k;k.Cj=b;k=l();d(g,a,k);e&&(e.get(k),k.Uc()&&(f=k.data,w=b.n));--c;b=w.length;if(f>=
b||f<=-b)f%=b;0>f&&(f+=b);h.apply(w[f],a)};f.prototype.lG=function(k){var b=this.ih,a=this.Wb,g=this.Da,e=this.Df,h=this.xf,f=this.bd,m=this.ff.Bh,w=b.la(),r=w.Cd();if(!r.length)if(w.wa.length)r=w.wa;else{this.jl?k.sb(""):k.O(0);return}a[0]=k;k.Cj=b;k=l();d(g,a,k);e&&(e.get(k),k.Uc()&&(m=k.data,r=b.n));--c;g=r.length;if(m>=g||m<=-g)m%=g;0>m&&(m+=g);m=r[m];r=0;b.U&&(r=m.type.rk[b.Xg]);f.apply(m.X[h+r],a)};f.prototype.tG=function(d){var b=this.Df,a=this.ih,g=this.SA,e=this.ff.Bh,h=a.la(),k=h.Cd();if(!k.length)if(h.wa.length)k=
h.wa;else{this.jl?d.sb(""):d.O(0);return}if(b){h=l();b.get(h);if(h.Uc()){e=h.data;k=a.n;0!==k.length&&(e%=k.length,0>e&&(e+=k.length));e=a.nt(e);a=e.qc[g];ja(a)?d.sb(a):d.B(a);--c;return}--c}b=k.length;if(e>=b||e<=-b)e%=b;0>e&&(e+=b);e=k[e];k=0;a.U&&(k=e.type.np[a.Xg]);a=e.qc[g+k];ja(a)?d.sb(a):d.B(a)};f.prototype.uG=function(c){c.type=jc.Zj;c.data=this.value};f.prototype.qG=function(c){c.type=jc.Yj;c.data=this.value};f.prototype.DG=function(c){c.type=jc.String;c.data=this.value};f.prototype.GG=function(c){this.first.get(c);
c.Uc()&&(c.data=-c.data)};f.prototype.fG=function(d){this.first.get(d);var b=l();this.second.get(b);d.Uc()&&b.Uc()&&(d.data+=b.data,b.Ak()&&d.Sk());--c};f.prototype.EG=function(d){this.first.get(d);var b=l();this.second.get(b);d.Uc()&&b.Uc()&&(d.data-=b.data,b.Ak()&&d.Sk());--c};f.prototype.yG=function(d){this.first.get(d);var b=l();this.second.get(b);d.Uc()&&b.Uc()&&(d.data*=b.data,b.Ak()&&d.Sk());--c};f.prototype.nG=function(d){this.first.get(d);var b=l();this.second.get(b);d.Uc()&&b.Uc()&&(d.data/=
b.data,d.Sk());--c};f.prototype.xG=function(d){this.first.get(d);var b=l();this.second.get(b);d.Uc()&&b.Uc()&&(d.data%=b.data,b.Ak()&&d.Sk());--c};f.prototype.CG=function(d){this.first.get(d);var b=l();this.second.get(b);d.Uc()&&b.Uc()&&(d.data=Math.pow(d.data,b.data),b.Ak()&&d.Sk());--c};f.prototype.gG=function(d){this.first.get(d);var b=l();this.second.get(b);b.Dk()||d.Dk()?this.iG(d,b):this.hG(d,b);--c};f.prototype.iG=function(c,b){c.Dk()&&b.Dk()?this.kG(c,b):this.jG(c,b)};f.prototype.kG=function(c,
b){c.data+=b.data};f.prototype.jG=function(c,b){c.Dk()?c.data+=(Math.round(1E10*b.data)/1E10).toString():c.sb(c.data.toString()+b.data)};f.prototype.hG=function(c,b){c.O(c.data&&b.data?1:0)};f.prototype.BG=function(d){this.first.get(d);var b=l();this.second.get(b);d.Uc()&&b.Uc()&&(d.data||b.data?d.O(1):d.O(0));--c};f.prototype.mG=function(c){this.first.get(c);c.data?this.second.get(c):this.jr.get(c)};f.prototype.oG=function(d){this.first.get(d);var b=l();this.second.get(b);d.O(d.data===b.data?1:0);
--c};f.prototype.zG=function(d){this.first.get(d);var b=l();this.second.get(b);d.O(d.data!==b.data?1:0);--c};f.prototype.vG=function(d){this.first.get(d);var b=l();this.second.get(b);d.O(d.data<b.data?1:0);--c};f.prototype.wG=function(d){this.first.get(d);var b=l();this.second.get(b);d.O(d.data<=b.data?1:0);--c};f.prototype.rG=function(d){this.first.get(d);var b=l();this.second.get(b);d.O(d.data>b.data?1:0);--c};f.prototype.sG=function(d){this.first.get(d);var b=l();this.second.get(b);d.O(d.data>=
b.data?1:0);--c};f.prototype.pG=function(c){var b=this.Wi.Am();A(b)?c.B(b):c.sb(b)};gc=f;m.prototype.Ak=function(){return this.type===jc.Yj};m.prototype.Uc=function(){return this.type===jc.Zj||this.type===jc.Yj};m.prototype.Dk=function(){return this.type===jc.String};m.prototype.Sk=function(){this.Ak()||(this.Dk()&&(this.data=parseFloat(this.data)),this.type=jc.Yj)};m.prototype.O=function(c){this.type=jc.Zj;this.data=Math.floor(c)};m.prototype.B=function(c){this.type=jc.Yj;this.data=c};m.prototype.sb=
function(c){this.type=jc.String;this.data=c};m.prototype.Jd=function(c){A(c)?(this.type=jc.Yj,this.data=c):ja(c)?(this.type=jc.String,this.data=c.toString()):(this.type=jc.Zj,this.data=0)};fc=m;jc={Zj:0,Yj:1,String:2}})();function S(f){this.j=f;this.ae=[]}
S.prototype.ya=function(){var f={},l,d,m,k,c,q,b,a;f.waits=[];var g=f.waits,e;l=0;for(d=this.ae.length;l<d;l++){q=this.ae[l];e={t:q.time,st:q.pA,s:q.cv,ev:q.qk.Oa,sm:[],sols:{}};q.qk.Ve[q.Pd]&&(e.act=q.qk.Ve[q.Pd].Oa);m=0;for(k=q.za.length;m<k;m++)e.sm.push(q.za[m].Oa);for(c in q.Kd)if(q.Kd.hasOwnProperty(c)){b=this.j.P[parseInt(c,10)];a={sa:q.Kd[c].Oq,insts:[]};m=0;for(k=q.Kd[c].$g.length;m<k;m++)a.insts.push(q.Kd[c].$g[m].uid);e.sols[b.Oa.toString()]=a}g.push(e)}return f};
S.prototype.Ga=function(f){f=f.waits;var l,d,m,k,c,q,b,a,g,e,h;M(this.ae);l=0;for(d=f.length;l<d;l++)if(q=f[l],a=this.j.cx[q.ev.toString()]){g=-1;m=0;for(k=a.Ve.length;m<k;m++)if(a.Ve[m].Oa===q.act){g=m;break}if(-1!==g){b={Kd:{},za:[],Rs:!1};b.time=q.t;b.pA=q.st||"";b.cv=!!q.s;b.qk=a;b.Pd=g;m=0;for(k=q.sm.length;m<k;m++)(a=this.j.ym(q.sm[m]))&&b.za.push(a);for(c in q.sols)if(q.sols.hasOwnProperty(c)&&(a=this.j.ym(parseInt(c,10)))){g=q.sols[c];e={Oq:g.sa,$g:[]};m=0;for(k=g.insts.length;m<k;m++)(h=
this.j.jg(g.insts[m]))&&e.$g.push(h);b.Kd[a.index.toString()]=e}this.ae.push(b)}}};
(function(){function f(){}function l(){}function d(){}var m=S.prototype;f.prototype.vB=function(){return!0};f.prototype.uw=function(){return!0};f.prototype.sw=function(){return!0};f.prototype.jB=function(a,b,e){return kc(a,b,e)};f.prototype.qC=function(a){return a?a.visible:!1};f.prototype.pC=function(a){return a?!a.n.length:!1};f.prototype.BD=function(a){var b=this.j.Cb(),e=b.Fb,c=b.Ay(),b=this.j.Vz();if(c)for(c=0;c<a&&!b.jc;c++)this.j.xg(e.za),b.index=c,e.xh(),this.j.Qe(e.za);else for(c=0;c<a&&
!b.jc;c++)b.index=c,e.xh();this.j.Pz();return!1};var k=[],c=-1;f.prototype.BB=function(a){var b=a.la();c++;k.length===c&&k.push([]);var e=k[c];Ca(e,b.Cd());var h=this.j.Cb(),d=h.Fb,f=h.Ay(),h=this.j.Vz(),q,r,t,n,p,l,m=a.ed;if(f)for(f=0,q=e.length;f<q&&!h.jc;f++){this.j.xg(d.za);n=e[f];b=a.la();b.pa=!1;M(b.n);b.n[0]=n;if(m)for(r=0,t=n.siblings.length;r<t;r++)p=n.siblings[r],l=p.type.la(),l.pa=!1,M(l.n),l.n[0]=p;h.index=f;d.xh();this.j.Qe(d.za)}else for(b.pa=!1,M(b.n),f=0,q=e.length;f<q&&!h.jc;f++){n=
e[f];b.n[0]=n;if(m)for(r=0,t=n.siblings.length;r<t;r++)p=n.siblings[r],l=p.type.la(),l.pa=!1,M(l.n),l.n[0]=p;h.index=f;d.xh()}M(e);this.j.Pz();c--;return!1};f.prototype.uB=function(a){var b=this.j.$i(),e=b.R.Every_lastTime||0,c=this.j.rc.na;"undefined"===typeof b.R.Every_seconds&&(b.R.Every_seconds=a);var d=b.R.Every_seconds;if(c>=e+d)return b.R.Every_lastTime=e+d,c>=b.R.Every_lastTime+.04&&(b.R.Every_lastTime=c),b.R.Every_seconds=a,!0;c<e-.1&&(b.R.Every_lastTime=c);return!1};f.prototype.nB=function(a,
b,e){return kc(a.Am(),b,e)};f.prototype.aC=function(a){return(a=this.j.vk[a.toLowerCase()])&&a.aj};f.prototype.jC=function(){return"undefined"!==typeof cr_is_preview};f.prototype.sD=function(a){if(!a||!a.n.length)return!1;a.la().pa=!0;a.de();return!0};f.prototype.dC=function(){return this.j.le};f.prototype.Vv=function(){var a=this.j.Cb();return a.Ws?!1:!a.rj};f.prototype.vw=function(){return!0};f.prototype.BC=function(){return!0};f.prototype.Rr=function(){return!0};f.prototype.zw=function(){return!0};
f.prototype.WC=function(){return!0};f.prototype.ro=function(){return!0};f.prototype.aB=function(a,b,e){return Pa(R(a),R(e))<=R(b)};f.prototype.YB=function(a,b){return Ra(R(a),R(b))};f.prototype.XB=function(a,b,e){a=Na(a);b=Na(b);e=Na(e);return Ra(e,b)?Ra(a,b)&&!Ra(a,e):!(!Ra(a,b)&&Ra(a,e))};m.m=new f;l.prototype.MB=function(a){this.j.Ek||this.j.Ni||(this.j.Ni=a)};l.prototype.WD=function(a,b){a&&a.visible!==b&&(a.visible=b,this.j.aa=!0)};l.prototype.HD=function(a){this.j.ra.ll(a)};l.prototype.ID=function(a){this.j.ra.ml(a)};
l.prototype.FD=function(a,b){this.j.ra.ll(a);this.j.ra.ml(b)};l.prototype.GD=function(a){if(a=a.xm())this.j.ra.ll(a.x),this.j.ra.ml(a.y)};l.prototype.dE=function(a,b){0===a.xr?A(b)?a.Oj(b):a.Oj(parseFloat(b)):1===a.xr&&a.Oj(b.toString())};l.prototype.ZA=function(a,b){0===a.xr?A(b)?a.Oj(a.Am()+b):a.Oj(a.Am()+parseFloat(b)):1===a.xr&&a.Oj(a.Am()+b.toString())};l.prototype.RD=function(a,b){var e=this.j.vk[a.toLowerCase()];if(e)switch(b){case 0:e.Uq(!1);break;case 1:e.Uq(!0);break;case 2:e.Uq(!e.aj)}};
l.prototype.bE=function(a){0>a&&(a=0);this.j.Di=a};var q=[],b=[];l.prototype.tE=function(a){if(!(0>a)){var c,e,h,d=this.j.Cb(),k;q.length?k=q.pop():k={Kd:{},za:[]};k.Rs=!1;k.time=this.j.rc.na+a;k.pA="";k.cv=!1;k.qk=d.Fb;k.Pd=d.Pd+1;a=0;for(c=this.j.P.length;a<c;a++)h=this.j.P[a],e=h.la(),e.pa&&-1===d.Fb.za.indexOf(h)||(k.za.push(h),h=void 0,b.length?h=b.pop():h={$g:[]},h.Oq=!1,h.Oq=e.pa,Ca(h.$g,e.n),k.Kd[a.toString()]=h);this.ae.push(k);return!0}};l.prototype.oE=function(){0>this.j.Qk||(this.j.jt().jc=
!0)};l.prototype.NB=function(a){if(!this.j.Ek&&!this.j.Ni)for(var b in this.j.Mk)if(this.j.Mk.hasOwnProperty(b)&&mb(b,a)){this.j.Ni=this.j.Mk[b];break}};m.A=new l;d.prototype["int"]=function(a,b){ja(b)?(a.O(parseInt(b,10)),isNaN(a.data)&&(a.data=0)):a.O(b)};d.prototype["float"]=function(a,b){ja(b)?(a.B(parseFloat(b)),isNaN(a.data)&&(a.data=0)):a.B(b)};d.prototype.random=function(a,b,e){void 0===e?a.B(Math.random()*b):a.B(Math.random()*(e-b)+b)};d.prototype.sqrt=function(a,b){a.B(Math.sqrt(b))};d.prototype.abs=
function(a,b){a.B(Math.abs(b))};d.prototype.round=function(a,b){a.O(Math.round(b))};d.prototype.floor=function(a,b){a.O(Math.floor(b))};d.prototype.ceil=function(a,b){a.O(Math.ceil(b))};d.prototype.sin=function(a,b){a.B(Math.sin(R(b)))};d.prototype.cos=function(a,b){a.B(Math.cos(R(b)))};d.prototype.tan=function(a,b){a.B(Math.tan(R(b)))};d.prototype.asin=function(a,b){a.B(Ia(Math.asin(b)))};d.prototype.acos=function(a,b){a.B(Ia(Math.acos(b)))};d.prototype.atan=function(a,b){a.B(Ia(Math.atan(b)))};
d.prototype.exp=function(a,b){a.B(Math.exp(b))};d.prototype.log10=function(a,b){a.B(Math.log(b)/Math.LN10)};d.prototype.max=function(a){var b=arguments[1];"number"!==typeof b&&(b=0);var e,c,d;e=2;for(c=arguments.length;e<c;e++)d=arguments[e],"number"===typeof d&&b<d&&(b=d);a.B(b)};d.prototype.min=function(a){var b=arguments[1];"number"!==typeof b&&(b=0);var e,c,d;e=2;for(c=arguments.length;e<c;e++)d=arguments[e],"number"===typeof d&&b>d&&(b=d);a.B(b)};d.prototype.Ug=function(a){a.B(this.j.Ug)};d.prototype.Di=
function(a){a.B(this.j.Di)};d.prototype.time=function(a){a.B(this.j.rc.na)};d.prototype.xe=function(a){a.O(this.j.xe)};d.prototype.qq=function(a){a.O(this.j.qq)};d.prototype.uk=function(a){a.O(this.j.uk)};d.prototype.nI=function(a,b){var e,c;if(this.j.dn.length)if(b){for(c=this.j.Qk;0<=c;--c)if(e=this.j.dn[c],e.name===b){a.O(e.index);return}a.O(0)}else e=this.j.jt(),a.O(e?e.index:-1);else a.O(0)};d.prototype.AF=function(a,b,e,c,d){a.B(Ta(b,e,c,d))};d.prototype.C=function(a,b,e,c,d){a.B(Ia(Oa(b,e,
c,d)))};d.prototype.DJ=function(a){a.B(this.j.ra.scrollX)};d.prototype.EJ=function(a){a.B(this.j.ra.scrollY)};d.prototype.Xk=function(a){a.sb("\n")};d.prototype.jI=function(a){a.O(this.j.ra.width)};d.prototype.hI=function(a){a.O(this.j.ra.height)};d.prototype.left=function(a,b,e){a.sb(ja(b)?b.substr(0,e):"")};d.prototype.right=function(a,b,e){a.sb(ja(b)?b.substr(b.length-e):"")};d.prototype.aK=function(a,b,e,c){ja(b)&&ja(c)?(b=b.split(c),e=ra(e),0>e||e>=b.length?a.sb(""):a.sb(b[e])):a.sb("")};d.prototype.bK=
function(a,b,e){ja(b)&&b.length?a.O(b.split(e).length):a.O(0)};d.prototype.replace=function(a,b,e,c){ja(b)&&ja(e)&&ja(c)?a.sb(b.replace(new RegExp(fb(e),"gi"),c)):a.sb(ja(b)?b:"")};d.prototype.trim=function(a,b){a.sb(ja(b)?b.trim():"")};d.prototype.iI=function(a){this.j.ra?a.sb(this.j.ra.name):a.sb("")};d.prototype.hF=function(a){var b=ra(Math.random()*(arguments.length-1));a.Jd(arguments[b+1])};d.prototype.To=function(a){a.B(this.j.To/1E3)};d.prototype.kK=function(a,b){var e=this.j.ai(b);a.B(e?e.Ea:
0)};d.prototype.mK=function(a,b){var e=this.j.ai(b);a.B(e?e.Fa:0)};d.prototype.lK=function(a,b){var e=this.j.ai(b);a.B(e?e.La:0)};d.prototype.jK=function(a,b){var e=this.j.ai(b);a.B(e?e.Ka:0)};d.prototype.uj=function(a){a.B(this.j.uj)};d.prototype.dF=function(a,b,e,c){b=this.j.ai(b);a.B(b?b.W(e,c,!0):0)};d.prototype.eF=function(a,b,e,c){b=this.j.ai(b);a.B(b?b.W(e,c,!1):0)};d.prototype.fI=function(a,b,e,c){b=this.j.ai(b);a.B(b?b.Sa(e,c,!0):0)};d.prototype.gI=function(a,b,e,c){b=this.j.ai(b);a.B(b?
b.Sa(e,c,!1):0)};d.prototype.RI=function(a){a.O(this.j.gc)};d.prototype.QI=function(a){a.O(this.j.ec)};m.D=new d;m.vJ=function(){var a,c,e,d,k,f,l=this.j.Cb();a=0;for(e=this.ae.length;a<e;a++){d=this.ae[a];if(-1===d.time){if(!d.cv)continue}else if(d.time>this.j.rc.na)continue;l.Fb=d.qk;l.Pd=d.Pd;l.lc=0;for(c in d.Kd)d.Kd.hasOwnProperty(c)&&(k=this.j.P[parseInt(c,10)].la(),f=d.Kd[c],k.pa=f.Oq,Ca(k.n,f.$g),k=f,M(k.$g),b.push(k));d.qk.tJ();this.j.Fs(d.za);d.Rs=!0}c=a=0;for(e=this.ae.length;a<e;a++)d=
this.ae[a],this.ae[c]=d,d.Rs?(Xa(d.Kd),M(d.za),q.push(d)):c++;Ba(this.ae,c)}})();
(function(){pb=function(f,d){var m=f[1],k=f[3],c=f[4],q=f[5],b=f[6],a=f[7],g=f[8];d.m||(d.m={});d.A||(d.A={});d.D||(d.D={});var e=d.m,h=d.A,v=d.D;k&&(e.Rv=function(a,b){return kc(this.x,a,b)},e.HK=function(a,b){return kc(this.y,a,b)},e.gC=function(){var a=this.F;this.da();var b=this.ea;return!(b.right<a.Ea||b.bottom<a.Fa||b.left>a.La||b.top>a.Ka)},e.KK=function(){this.da();var a=this.ea,b=this.j.ra;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},e.TK=function(a,b,e){var c=this.la(),
g=c.Cd();if(!g.length)return!1;var d=g[0],h=d,k=Ta(d.x,d.y,b,e),f,q,l;f=1;for(q=g.length;f<q;f++)if(d=g[f],l=Ta(d.x,d.y,b,e),0===a&&l<k||1===a&&l>k)k=l,h=d;c.Jj(h);return!0},h.Jw=function(a){this.x!==a&&(this.x=a,this.L())},h.nL=function(a){this.y!==a&&(this.y=a,this.L())},h.to=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.L()},h.kL=function(a,b){var e=a.iH(this);if(e){var c;e.Fe?(c=e.Fe(b,!0),e=e.Fe(b,!1)):(c=e.x,e=e.y);if(this.x!==c||this.y!==e)this.x=c,this.y=e,this.L()}},h.OK=
function(a){0!==a&&(this.x+=Math.cos(this.C)*a,this.y+=Math.sin(this.C)*a,this.L())},h.tC=function(a,b){0!==b&&(this.x+=Math.cos(R(a))*b,this.y+=Math.sin(R(a))*b,this.L())},v.Gg=function(a){a.B(this.x)},v.Hg=function(a){a.B(this.y)},v.Ug=function(a){a.B(this.j.Cf(this))});c&&(e.oB=function(a,b){return kc(this.width,a,b)},e.EK=function(a,b){return kc(this.height,a,b)},h.Zr=function(a){this.width!==a&&(this.width=a,this.L())},h.hL=function(a){this.height!==a&&(this.height=a,this.L())},h.Iw=function(a,
b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.L()},v.vo=function(a){a.B(this.width)},v.Lr=function(a){a.B(this.height)},v.AK=function(a){this.da();a.B(this.ea.left)},v.CK=function(a){this.da();a.B(this.ea.top)},v.BK=function(a){this.da();a.B(this.ea.right)},v.zK=function(a){this.da();a.B(this.ea.bottom)});q&&(e.aB=function(a,b){return Pa(this.C,R(b))<=R(a)},e.YB=function(a){return Ra(this.C,R(a))},e.XB=function(a,b){var e=Na(a),c=Na(b),g=La(this.C);return Ra(c,e)?Ra(g,e)&&
!Ra(g,c):!(!Ra(g,e)&&Ra(g,c))},h.KD=function(a){a=R(Ja(a));isNaN(a)||this.C===a||(this.C=a,this.L())},h.ZK=function(a){0===a||isNaN(a)||(this.C+=R(a),this.C=La(this.C),this.L())},h.$K=function(a){0===a||isNaN(a)||(this.C-=R(a),this.C=La(this.C),this.L())},h.aL=function(a,b){var e=Qa(this.C,R(b),R(a));isNaN(e)||this.C===e||(this.C=e,this.L())},h.bL=function(a,b,e){a=Qa(this.C,Math.atan2(e-this.y,b-this.x),R(a));isNaN(a)||this.C===a||(this.C=a,this.L())},h.cE=function(a,b){var e=Math.atan2(b-this.y,
a-this.x);isNaN(e)||this.C===e||(this.C=e,this.L())},v.$A=function(a){a.B(Ma(this.C))});m||(e.lB=function(a,b,e){return kc(this.qc[a],b,e)},e.bw=function(a){return this.qc[a]},e.UK=function(a,b){var e=this.la(),c=e.Cd();if(!c.length)return!1;var g=c[0],d=g,h=g.qc[b],k,f,q;k=1;for(f=c.length;k<f;k++)if(g=c[k],q=g.qc[b],0===a&&q<h||1===a&&q>h)h=q,d=g;e.Jj(d);return!0},e.tD=function(a){var b,e,c,g,d;if(this.j.$i().ij){d=this.la();if(d.pa)for(d.pa=!1,M(d.n),M(d.wa),c=this.n,b=0,e=c.length;b<e;b++)g=c[b],
g.uid===a?d.wa.push(g):d.n.push(g);else{c=b=0;for(e=d.n.length;b<e;b++)g=d.n[b],d.n[c]=g,g.uid===a?d.wa.push(g):c++;Ba(d.n,c)}this.de();return!!d.n.length}g=this.j.jg(a);if(!g)return!1;d=this.la();if(!d.pa&&-1===d.n.indexOf(g))return!1;if(this.U)for(a=g.type.Hb,b=0,e=a.length;b<e;b++){if(a[b]===this)return d.Jj(g),this.de(),!0}else if(g.type===this)return d.Jj(g),this.de(),!0;return!1},e.Gi=function(){return!0},e.jw=function(){return!0},h.TD=function(a,b){var e=this.qc;A(e[a])?e[a]=A(b)?b:parseFloat(b):
ja(e[a])&&(e[a]=ja(b)?b:b.toString())},h.XA=function(a,b){var e=this.qc;A(e[a])?e[a]=A(b)?e[a]+b:e[a]+parseFloat(b):ja(e[a])&&(e[a]=ja(b)?e[a]+b:e[a]+b.toString())},h.pL=function(a,b){var e=this.qc;A(e[a])&&(e[a]=A(b)?e[a]-b:e[a]-parseFloat(b))},h.Gw=function(a,b){this.qc[a]=b?1:0},h.rL=function(a){this.qc[a]=1-this.qc[a]},h.jo=function(){this.j.Xf(this)},h.fw||(h.fw=function(a){var b,e;try{b=JSON.parse(a)}catch(c){return}this.j.aq(this,b,!0);this.rf&&this.rf();if(this.X)for(a=0,b=this.X.length;a<
b;++a)e=this.X[a],e.rf&&e.rf()}),v.Sv=function(a){var b=a.Cj.n.length,e,c,g;e=0;for(c=this.j.yf.length;e<c;e++)g=this.j.yf[e],a.Cj.U?0<=g.type.Hb.indexOf(a.Cj)&&b++:g.type===a.Cj&&b++;a.O(b)},v.vD=function(a){a.O(a.Cj.la().Cd().length)},v.Mw=function(a){a.O(this.uid)},v.IK=function(a){a.O(this.Bm())},v.yl||(v.yl=function(a){a.sb(JSON.stringify(this.j.Vu(this,!0)))}));b&&(e.kC=function(){return this.visible},h.Yr=function(a){!a!==!this.visible&&(this.visible=!!a,this.j.aa=!0)},e.FK=function(a,b){return kc(lb(100*
this.opacity),a,b)},h.YD=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.j.aa=!0)},v.Opacity=function(a){a.B(lb(100*this.opacity))});a&&(e.JK=function(a){return a?this.F===a:!1},e.VK=function(a){var b=this.la(),e=b.Cd();if(!e.length)return!1;var c=e[0],g=c,d,h;d=1;for(h=e.length;d<h;d++)if(c=e[d],0===a){if(c.F.index>g.F.index||c.F.index===g.F.index&&c.ie()>g.ie())g=c}else if(c.F.index<g.F.index||c.F.index===g.F.index&&c.ie()<g.ie())g=c;b.Jj(g);return!0},h.QK=function(){var a=
this.F,b=a.n;b.length&&b[b.length-1]===this||(a.il(this,!1),a.Xl(this,!1),this.j.aa=!0)},h.PK=function(){var a=this.F,b=a.n;b.length&&b[0]===this||(a.il(this,!1),a.cJ(this),this.j.aa=!0)},h.uC=function(a){a&&a!=this.F&&(this.F.il(this,!0),this.F=a,a.Xl(this,!0),this.j.aa=!0)},h.uE=function(a,b){var e=0===a;if(b){var c=b.xm(this);c&&c.uid!==this.uid&&(this.F.index!==c.F.index&&(this.F.il(this,!0),this.F=c.F,c.F.Xl(this,!0)),this.F.vI(this,c,e),this.j.aa=!0)}},v.NK=function(a){a.O(this.F.vz)},v.MK=
function(a){a.sb(this.F.name)},v.tL=function(a){a.O(this.ie())});g&&(h.eL=function(a,b){if(this.j.K){var e=this.type.lt(b);if(!(0>e)){var c=1===a;this.Oh[e]!==c&&(this.Oh[e]=c,this.Tf(),this.j.aa=!0)}}},h.fL=function(a,b,e){if(this.j.K){var c=this.type.lt(a);0>c||(a=this.type.ua[c],c=this.Tb[c],b=Math.floor(b),0>b||b>=c.length||(1===this.j.K.nH(a.xc,b)&&(e/=100),c[b]!==e&&(c[b]=e,a.Nb&&(this.j.aa=!0))))}})};Pb=function(){this.Es=this.ys=!0;this.type.Fo=!0;this.j.aa=!0;var f,d,m=this.zs;f=0;for(d=
m.length;f<d;++f)m[f](this);this.F.Te&&this.da()};Qb=function(f){f&&this.zs.push(f)};Sb=function(){if(this.ys){var f=this.ea,d=this.Pb;f.set(this.x,this.y,this.x+this.width,this.y+this.height);f.offset(-this.Dd*this.width,-this.Ed*this.height);this.C?(f.offset(-this.x,-this.y),d.jA(f,this.C),d.offset(this.x,this.y),d.gx(f)):d.yi(f);f.normalize();this.ys=!1;this.gK()}};var f=new wa(0,0,0,0);Tb=function(){if(this.F.Te){var l=this.F.jd,d=this.ea;f.set(l.Nd(d.left),l.Od(d.top),l.Nd(d.right),l.Od(d.bottom));
this.Wd.lm(f)||(this.Wd.right<this.Wd.left?l.update(this,null,f):l.update(this,this.Wd,f),this.Wd.Vh(f),this.F.If=!0)}};Ub=function(){if(this.Es&&this.Be){this.da();var l=this.type.em,d=this.ea;f.set(l.Nd(d.left),l.Od(d.top),l.Nd(d.right),l.Od(d.bottom));this.Xe.lm(f)||(this.Xe.right<this.Xe.left?l.update(this,null,f):l.update(this,this.Xe,f),this.Xe.Vh(f),this.Es=!1)}};Rb=function(f,d){return this.ea.Qb(f,d)&&this.Pb.Qb(f,d)?this.Gh?this.$J(f,d):this.ma&&!this.ma.eh()?(this.ma.$f(this.width,this.height,
this.C),this.ma.Qb(f-this.x,d-this.y)):!0:!1};Jb=function(){this.type.rr();return this.gj};Vb=function(){this.F.Fv();return this.Wf};Wb=function(){M(this.fb);var f,d,m,k=!0;f=0;for(d=this.Oh.length;f<d;f++)this.Oh[f]&&(m=this.type.ua[f],this.fb.push(m),m.Re||(k=!1));this.RA=!!this.fb.length;this.Ah=k};Kb=function(){return"Inst"+this.Uz};sb=function(f){if(f&&f.ed&&f.type!=this){var d,m,k;d=0;for(m=f.siblings.length;d<m;d++)if(k=f.siblings[d],k.type==this)return k}f=this.la().Cd();return f.length?f[0]:
null};wb=function(f){var d=this.la().Cd();return d.length?d[f.Bm()%d.length]:null};rb=function(){if(this.ql&&!this.U){var f,d;f=0;for(d=this.n.length;f<d;f++)this.n[f].gj=f;var m=f,k=this.j.yf;f=0;for(d=k.length;f<d;++f)k[f].type===this&&(k[f].gj=m++);this.ql=!1}};Hb=function(f){if(f<this.n.length)return this.n[f];f-=this.n.length;var d=this.j.yf,m,k;m=0;for(k=d.length;m<k;++m)if(d[m].type===this){if(0===f)return d[m];--f}return null};xb=function(){return this.Ch[this.ag]};yb=function(){this.ag++;
this.ag===this.Ch.length?this.Ch.push(new qb(this)):(this.Ch[this.ag].pa=!0,M(this.Ch[this.ag].wa))};Ab=function(){this.ag++;this.ag===this.Ch.length&&this.Ch.push(new qb(this));var f=this.Ch[this.ag],d=this.Ch[this.ag-1];d.pa?(f.pa=!0,M(f.wa)):(f.pa=!1,Ca(f.n,d.n),Ca(f.wa,d.wa))};Cb=function(){this.ag--};Db=function(f){var d,m,k,c,q,b=0;if(!this.U)for(d=0,m=this.Hb.length;d<m;d++)for(q=this.Hb[d],k=0,c=q.Ob.length;k<c;k++){if(f===q.Ob[k].name)return this.R.lastBehIndex=b,q.Ob[k];b++}d=0;for(m=this.Ob.length;d<
m;d++){if(f===this.Ob[d].name)return this.R.lastBehIndex=b,this.Ob[d];b++}return null};Eb=function(f){return this.Bp(f)?this.R.lastBehIndex:-1};Fb=function(f){var d,m;d=0;for(m=this.ua.length;d<m;d++)if(this.ua[d].name===f)return d;return-1};Gb=function(){if(this.ed&&!this.U){var f,d,m,k,c,q,b;this.rr();q=this.la();var a=q.pa,g=(f=this.j.Cb())&&f.Fb&&f.Fb.Oe;f=0;for(d=this.ee.length;f<d;f++)if(c=this.ee[f],c!==this&&(c.rr(),b=c.la(),b.pa=a,!a)){M(b.n);m=0;for(k=q.n.length;m<k;++m)b.n[m]=c.nt(q.n[m].gj);
if(g)for(M(b.wa),m=0,k=q.wa.length;m<k;++m)b.wa[m]=c.nt(q.wa[m].gj)}}};Ib=function(){return"Type"+this.Oa};kc=function(f,d,m){if("undefined"===typeof f||"undefined"===typeof m)return!1;switch(d){case 0:return f===m;case 1:return f!==m;case 2:return f<m;case 3:return f<=m;case 4:return f>m;case 5:return f>=m;default:return!1}}})();
var vc={multiply:{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 *= back;\ngl_FragColor = front;\n}",nm:0,om:0,Uo:!0,Re:!1,Eo:!1,Da:[]},warpmask:{src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nuniform lowp sampler2D samplerBack;\nuniform mediump vec2 destStart;\nuniform mediump vec2 destEnd;\nuniform mediump float seconds;\nuniform mediump float pixelWidth;\nuniform mediump float pixelHeight;\nuniform mediump float layerScale;\nuniform mediump float freqX;\nuniform mediump float freqY;\nuniform mediump float ampX;\nuniform mediump float ampY;\nuniform mediump float speedX;\nuniform mediump float speedY;\nvoid main(void)\n{\nlowp float fronta = texture2D(samplerFront, vTex).a;\nmediump float boxLeft = 0.0;\nmediump float boxTop = 0.0;\nmediump float aspect = pixelHeight / pixelWidth;\nmediump vec2 p = mix(destStart, destEnd, vTex);\np.x += (cos((vTex.y - boxTop) * freqX / layerScale / (pixelWidth * 750.0) + (seconds * speedX)) * ampX * pixelWidth * layerScale) * fronta;\np.y += (sin((vTex.x - boxLeft) * freqY * aspect / layerScale / (pixelHeight * 750.0) + (seconds * speedY)) * ampY * pixelHeight * layerScale) * fronta;\ngl_FragColor = texture2D(samplerBack, p);\n}",
nm:25,om:25,Uo:!0,Re:!1,Eo:!0,Da:[["freqX",0,0],["freqY",0,0],["ampX",0,0],["ampY",0,0],["speedX",0,0],["speedY",0,0]]}};function Bc(f){this.j=f}
(function(){function f(){return b.length?b.pop():[]}function l(a){var c,e;c=0;for(e=a.length;c<e;c++)Array.isArray(a[c])&&l(a[c]);M(a);b.push(a)}function d(){}function m(){}function k(){}var c=Bc.prototype;c.J=function(a){this.Z=a;this.j=a.j};c.J.prototype.H=function(){};c.G=function(a){this.type=a;this.j=a.j};var q=c.G.prototype,b=[];Array.isArray||(Array.isArray=function(a){return"[object Array]"===Object.prototype.toString.call(a)});q.H=function(){this.Rb=this.q[0];this.Gc=this.q[1];this.Qc=this.q[2];
this.Vb||(this.ye=f());var a=this.ye;a.length=this.Rb;var b,e,c;for(b=0;b<this.Rb;b++)for(a[b]||(a[b]=f()),a[b].length=this.Gc,e=0;e<this.Gc;e++)for(a[b][e]||(a[b][e]=f()),a[b][e].length=this.Qc,c=0;c<this.Qc;c++)a[b][e][c]=0;this.ge=[];this.gg=[];this.Yi=[];this.bf=-1};q.Mc=function(){var a;for(a=0;a<this.Rb;a++)l(this.ye[a]);M(this.ye)};q.zd=function(a,b,e){a=Math.floor(a);b=Math.floor(b);e=Math.floor(e);return isNaN(a)||0>a||a>this.Rb-1||isNaN(b)||0>b||b>this.Gc-1||isNaN(e)||0>e||e>this.Qc-1?0:
this.ye[a][b][e]};q.set=function(a,b,e,c){a=Math.floor(a);b=Math.floor(b);e=Math.floor(e);isNaN(a)||0>a||a>this.Rb-1||isNaN(b)||0>b||b>this.Gc-1||isNaN(e)||0>e||e>this.Qc-1||(this.ye[a][b][e]=c)};q.UG=function(){return JSON.stringify({c2array:!0,size:[this.Rb,this.Gc,this.Qc],data:this.ye})};q.ya=function(){return{size:[this.Rb,this.Gc,this.Qc],data:this.ye}};q.Ga=function(a){var b=a.size;this.Rb=b[0];this.Gc=b[1];this.Qc=b[2];this.ye=a.data};q.zh=function(a,b,e){0>a&&(a=0);0>b&&(b=0);0>e&&(e=0);
if(this.Rb!==a||this.Gc!==b||this.Qc!==e){this.Rb=a;this.Gc=b;this.Qc=e;var c,d,k=this.ye;k.length=a;for(a=0;a<this.Rb;a++)for(ia(k[a])&&(k[a]=f()),k[a].length=b,c=0;c<this.Gc;c++)for(ia(k[a][c])&&(k[a][c]=f()),k[a][c].length=e,d=0;d<this.Qc;d++)ia(k[a][c][d])&&(k[a][c][d]=0)}};q.Wx=function(){return 0<=this.bf&&this.bf<this.ge.length?this.ge[this.bf]:0};q.$G=function(){return 0<=this.bf&&this.bf<this.gg.length?this.gg[this.bf]:0};q.aH=function(){return 0<=this.bf&&this.bf<this.Yi.length?this.Yi[this.bf]:
0};d.prototype.Rv=function(a,b,e){return kc(this.zd(a,0,0),b,e)};q.Ts=function(a){this.j.xg(a.za);a.xh();this.j.Qe(a.za)};d.prototype.dB=function(a){var b=this.j.Cb().Fb;this.bf++;var e=this.bf;e===this.ge.length?(this.ge.push(0),this.gg.push(0),this.Yi.push(0)):(this.ge[e]=0,this.gg[e]=0,this.Yi[e]=0);switch(a){case 0:for(this.ge[e]=0;this.ge[e]<this.Rb;this.ge[e]++)for(this.gg[e]=0;this.gg[e]<this.Gc;this.gg[e]++)for(this.Yi[e]=0;this.Yi[e]<this.Qc;this.Yi[e]++)this.Ts(b);break;case 1:for(this.ge[e]=
0;this.ge[e]<this.Rb;this.ge[e]++)for(this.gg[e]=0;this.gg[e]<this.Gc;this.gg[e]++)this.Ts(b);break;case 2:for(this.ge[e]=0;this.ge[e]<this.Rb;this.ge[e]++)this.Ts(b)}this.bf--;return!1};c.m=new d;m.prototype.Iw=function(a,b,e){this.zh(a,b,e)};m.prototype.Jw=function(a,b){this.set(a,0,0,b)};m.prototype.AD=function(a,b,e){var c=0,d=0,k=0,q=this.ye;switch(e){case 0:0===a?(c=q.length,q.push(f())):(c=0,q.unshift(f()));for(q[c].length=this.Gc;d<this.Gc;d++)for(q[c][d]=f(),q[c][d].length=this.Qc,k=0;k<
this.Qc;k++)q[c][d][k]=b;this.Rb++;break;case 1:for(;c<this.Rb;c++)for(0===a?(d=q[c].length,q[c].push(f())):(d=0,q[c].unshift(f())),q[c][d].length=this.Qc,k=0;k<this.Qc;k++)q[c][d][k]=b;this.Gc++;break;case 2:for(;c<this.Rb;c++)for(d=0;d<this.Gc;d++)0===a?q[c][d].push(b):q[c][d].unshift(b);this.Qc++}};m.prototype.ED=function(a){var b=0,e=0,c=this.ye;if(0!==this.Rb&&0!==this.Gc&&0!==this.Qc)switch(a){case 0:c.reverse();break;case 1:for(;b<this.Rb;b++)c[b].reverse();break;case 2:for(;b<this.Rb;b++)for(e=
0;e<this.Gc;e++)c[b][e].reverse();this.Qc--}};m.prototype.ew=function(a){var b;try{b=JSON.parse(a)}catch(e){return}b.c2array&&(a=b.size,this.Rb=a[0],this.Gc=a[1],this.Qc=a[2],this.ye=b.data)};c.A=new m;k.prototype.eB=function(a,b,e,c){a.Jd(this.zd(b,e||0,c||0))};k.prototype.vo=function(a){a.O(this.Rb)};k.prototype.Lr=function(a){a.O(this.Gc)};k.prototype.qB=function(a){a.O(this.Wx())};k.prototype.pB=function(a){a.Jd(this.zd(this.Wx(),this.$G(),this.aH()))};k.prototype.UB=function(a,b){for(var e=0;e<
this.Rb;e++)if(this.ye[e][0][0]===b){a.O(e);return}a.O(-1)};k.prototype.yl=function(a){a.sb(this.UG())};c.D=new k})();function Cc(f){this.j=f}
(function(){function f(a){-1===Ka.indexOf(a)&&Ka.push(a)}function l(a){var b=a.I,e;try{e=b.play()}catch(c){f(a);return}e?e.catch(function(){f(a)}):Fa&&!H.$a&&f(a)}function d(){var a,b,e,c;bb||tb||!C||(m(),"running"===C.state&&(bb=!0));var d=Ka.slice(0);M(Ka);if(!ga)for(a=0,b=d.length;a<b;++a)e=d[a],e.jc||e.me||(c=e.I.play())&&c.catch(function(){f(e)})}function m(){"suspended"===C.state&&C.resume&&C.resume();if(C.createBuffer){var a=C.createBuffer(1,220,22050),b=C.createBufferSource();b.buffer=a;b.connect(C.destination);
g(b)}}function k(a){a=Math.pow(10,a/20);isFinite(a)||(a=0);0>a&&(a=0);1<a&&(a=1);return a}function c(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function q(a){a=a.toLowerCase();return la.hasOwnProperty(a)&&la[a].length?la[a][0].Ge():C.destination}function b(){return C.createGain?C.createGain():C.createGainNode()}function a(a){return C.createDelay?C.createDelay(a):C.createDelayNode(a)}function g(a,b){a.start?a.start(b||0):a.noteOn(b||0)}function e(a,b,e,c){a.start?a.start(c||0,b):a.noteGrainOn(c||
0,b,e-b)}function h(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}function v(a,e,c,d,g,h){this.type="filter";this.hc=[a,e,c,d,g,h];this.Ra=b();this.ta=b();this.ta.gain.value=h;this.qa=b();this.qa.gain.value=1-h;this.oc=C.createBiquadFilter();this.oc.type="number"===typeof this.oc.type?a:Id[a];this.oc.frequency.value=e;this.oc.detune&&(this.oc.detune.value=c);this.oc.Q.value=d;this.oc.gain.value=g;this.Ra.connect(this.oc);this.Ra.connect(this.qa);this.oc.connect(this.ta)}function x(e,c,d){this.type=
"delay";this.hc=[e,c,d];this.Ra=b();this.ta=b();this.ta.gain.value=d;this.qa=b();this.qa.gain.value=1-d;this.gn=b();this.$e=a(e);this.$e.delayTime.value=e;this.cp=b();this.cp.gain.value=c;this.Ra.connect(this.gn);this.Ra.connect(this.qa);this.gn.connect(this.ta);this.gn.connect(this.$e);this.$e.connect(this.cp);this.cp.connect(this.gn)}function w(a,e,c,d){this.type="convolve";this.hc=[e,c,d];this.Ra=b();this.ta=b();this.ta.gain.value=c;this.qa=b();this.qa.gain.value=1-c;this.Oi=C.createConvolver();
a&&(this.Oi.normalize=e,this.Oi.buffer=a);this.Ra.connect(this.Oi);this.Ra.connect(this.qa);this.Oi.connect(this.ta)}function r(e,c,d,h,k){this.type="flanger";this.hc=[e,c,d,h,k];this.Ra=b();this.qa=b();this.qa.gain.value=1-k/2;this.ta=b();this.ta.gain.value=k/2;this.op=b();this.op.gain.value=h;this.$e=a(e+c);this.$e.delayTime.value=e;this.Xc=C.createOscillator();this.Xc.frequency.value=d;this.qe=b();this.qe.gain.value=c;this.Ra.connect(this.$e);this.Ra.connect(this.qa);this.$e.connect(this.ta);this.$e.connect(this.op);
this.op.connect(this.$e);this.Xc.connect(this.qe);this.qe.connect(this.$e.delayTime);g(this.Xc)}function t(a,e,c,d,h,k){this.type="phaser";this.hc=[a,e,c,d,h,k];this.Ra=b();this.qa=b();this.qa.gain.value=1-k/2;this.ta=b();this.ta.gain.value=k/2;this.oc=C.createBiquadFilter();this.oc.type="number"===typeof this.oc.type?7:"allpass";this.oc.frequency.value=a;this.oc.detune&&(this.oc.detune.value=e);this.oc.Q.value=c;this.Xc=C.createOscillator();this.Xc.frequency.value=h;this.qe=b();this.qe.gain.value=
d;this.Ra.connect(this.oc);this.Ra.connect(this.qa);this.oc.connect(this.ta);this.Xc.connect(this.qe);this.qe.connect(this.oc.frequency);g(this.Xc)}function n(a){this.type="gain";this.hc=[a];this.bb=b();this.bb.gain.value=a}function p(a,e){this.type="tremolo";this.hc=[a,e];this.bb=b();this.bb.gain.value=1-e/2;this.Xc=C.createOscillator();this.Xc.frequency.value=a;this.qe=b();this.qe.gain.value=e/2;this.Xc.connect(this.qe);this.qe.connect(this.bb.gain);g(this.Xc)}function G(a,e){this.type="ringmod";
this.hc=[a,e];this.Ra=b();this.ta=b();this.ta.gain.value=e;this.qa=b();this.qa.gain.value=1-e;this.Bn=b();this.Bn.gain.value=0;this.Xc=C.createOscillator();this.Xc.frequency.value=a;this.Xc.connect(this.Bn.gain);g(this.Xc);this.Ra.connect(this.Bn);this.Ra.connect(this.qa);this.Bn.connect(this.ta)}function W(a,e,c,d,g){this.type="distortion";this.hc=[a,e,c,d,g];this.Ra=b();this.Dq=b();this.Cq=b();this.FJ(c,Math.pow(10,d/20));this.ta=b();this.ta.gain.value=g;this.qa=b();this.qa.gain.value=1-g;this.Br=
C.createWaveShaper();this.Zo=new Float32Array(65536);this.SG(a,e);this.Br.Zo=this.Zo;this.Ra.connect(this.Dq);this.Ra.connect(this.qa);this.Dq.connect(this.Br);this.Br.connect(this.Cq);this.Cq.connect(this.ta)}function T(a,b,e,c,d){this.type="compressor";this.hc=[a,b,e,c,d];this.bb=C.createDynamicsCompressor();try{this.bb.threshold.value=a,this.bb.knee.value=b,this.bb.ratio.value=e,this.bb.attack.value=c,this.bb.release.value=d}catch(g){}}function O(a,b){this.type="analyser";this.hc=[a,b];this.bb=
C.createAnalyser();this.bb.fftSize=a;this.bb.smoothingTimeConstant=b;this.QG=new Float32Array(this.bb.frequencyBinCount);this.nA=new Uint8Array(a);this.rn=0}function y(){this.jb=null;this.bq=0}function D(a,e){this.src=a;this.Ma=I;this.kg=e;this.Co=!1;var c=this;this.Uk=this.dl=null;this.el=[];this.Qq=0;this.Kv=this.mp=this.tA=this.wq=!1;1===I&&e&&!Bb&&(this.Ma=0,this.dl=b());this.Mg=this.Wa=null;var d;switch(this.Ma){case 0:this.Wa=new Audio;this.Wa.crossOrigin="anonymous";this.Wa.addEventListener("canplaythrough",
function(){c.Kv=!0});1===I&&C.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.tA=!0,this.Wa.addEventListener("canplay",function(){!c.Uk&&c.Wa&&(c.Uk=C.createMediaElementSource(c.Wa),c.Uk.connect(c.dl))}));this.Wa.autoplay=!1;this.Wa.FL="auto";this.Wa.src=a;break;case 1:H.Rp?H.Jx(a,function(a){c.Mg=a;c.Ax()},function(){c.mp=!0}):(d=new XMLHttpRequest,d.open("GET",a,!0),d.responseType="arraybuffer",d.onload=function(){c.Mg=d.response;c.Ax()},d.onerror=function(){c.mp=!0},d.send());
break;case 2:this.Wa=!0;break;case 3:this.Wa=!0}}function u(a,e){var c=this;this.tag=e;this.jc=this.ig=!0;this.src=a.src;this.buffer=a;this.Ma=I;this.kg=a.kg;this.playbackRate=1;this.wk=!0;this.me=this.Se=!1;this.Xd=0;this.Qm=this.Bk=this.ng=!1;this.volume=1;this.vu=function(a){if(!c.me&&!c.Se){var b=this;b||(b=a.target);b===c.Bo&&(c.wk=!0,c.jc=!0,B=c.tag,H.trigger(Cc.prototype.m.oo,K))}};this.Bo=null;this.zk=1===za&&!this.kg||2===za;this.Vk=1;this.startTime=this.zk?H.rc.na:H.Jh.na;this.vc=this.Ic=
null;this.ug=!1;this.fd=null;this.Gz=this.Fz=this.Ez=this.Dz=this.Iz=this.Hz=0;this.I=null;var d=!1;1!==this.Ma||0!==this.buffer.Ma||this.buffer.tA||(this.Ma=0);switch(this.Ma){case 0:this.kg?(this.I=a.Wa,d=!a.Co,a.Co=!0):(this.I=new Audio,this.I.crossOrigin="anonymous",this.I.autoplay=!1,this.I.src=a.Wa.src,d=!0);d&&this.I.addEventListener("ended",function(){B=c.tag;c.jc=!0;H.trigger(Cc.prototype.m.oo,K)});break;case 1:this.Ic=b();this.Ic.connect(q(e));1===this.buffer.Ma?a.Wa&&(this.I=C.createBufferSource(),
this.I.buffer=a.Wa,this.I.connect(this.Ic)):(this.I=this.buffer.Wa,this.buffer.dl.connect(this.Ic),this.buffer.Co||(this.buffer.Co=!0,this.buffer.Wa.addEventListener("ended",function(){B=c.tag;c.jc=!0;H.trigger(Cc.prototype.m.oo,K)})));break;case 2:this.I=new window.Media(z+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(c.wk=!0,c.jc=!0,B=c.tag,H.trigger(Cc.prototype.m.oo,K))});break;case 3:this.I=!0}}function U(a,b){var e=a.kj()?1:0,c=b.kj()?1:0;return e===c?0:e<c?1:-1}function F(a,
b){M(cb);if(a.length){var e,c,d;e=0;for(c=P.length;e<c;e++)d=P[e],mb(a,d.tag)&&cb.push(d);b&&cb.sort(U)}else fa&&!fa.fj()&&(M(cb),cb[0]=fa)}function J(a,b){la.hasOwnProperty(a)?la[a].push(b):la[a]=[b];var e,c,d,g,h=C.destination;if(la.hasOwnProperty(a)&&(d=la[a],d.length))for(h=d[0].Ge(),e=0,c=d.length;e<c;e++)g=d[e],e+1===c?g.Ye(C.destination):g.Ye(d[e+1].Ge());F(a);e=0;for(c=cb.length;e<c;e++)cb[e].kJ(h);vb&&tc===a&&(vb.disconnect(),vb.connect(h))}function X(){}function N(){}function E(){}var Q=
Cc.prototype;Q.J=function(a){this.Z=a;this.j=a.j};Q.J.prototype.H=function(){};var H=null,K=null,B="",z="",I=0,C=null,L=[],P=[],fa=null,V=!1,za=0,ga=!1,sa=1,zb=0,va=0,tb=!1,ub=1,rc=1,qd=10,rd=1E4,sd=1,vb=null,tc="",Fa=!1,Ka=[],Bb=!1,bb=!1;document.addEventListener("touchend",d,!0);document.addEventListener("click",d,!0);document.addEventListener("keydown",d,!0);var la={},Id="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");v.prototype.Ye=function(a){this.ta.disconnect();
this.ta.connect(a);this.qa.disconnect();this.qa.connect(a)};v.prototype.remove=function(){this.Ra.disconnect();this.oc.disconnect();this.ta.disconnect();this.qa.disconnect()};v.prototype.Ge=function(){return this.Ra};x.prototype.Ye=function(a){this.ta.disconnect();this.ta.connect(a);this.qa.disconnect();this.qa.connect(a)};x.prototype.remove=function(){this.Ra.disconnect();this.gn.disconnect();this.$e.disconnect();this.cp.disconnect();this.ta.disconnect();this.qa.disconnect()};x.prototype.Ge=function(){return this.Ra};
w.prototype.Ye=function(a){this.ta.disconnect();this.ta.connect(a);this.qa.disconnect();this.qa.connect(a)};w.prototype.remove=function(){this.Ra.disconnect();this.Oi.disconnect();this.ta.disconnect();this.qa.disconnect()};w.prototype.Ge=function(){return this.Ra};r.prototype.Ye=function(a){this.qa.disconnect();this.qa.connect(a);this.ta.disconnect();this.ta.connect(a)};r.prototype.remove=function(){this.Ra.disconnect();this.$e.disconnect();this.Xc.disconnect();this.qe.disconnect();this.qa.disconnect();
this.ta.disconnect();this.op.disconnect()};r.prototype.Ge=function(){return this.Ra};t.prototype.Ye=function(a){this.qa.disconnect();this.qa.connect(a);this.ta.disconnect();this.ta.connect(a)};t.prototype.remove=function(){this.Ra.disconnect();this.oc.disconnect();this.Xc.disconnect();this.qe.disconnect();this.qa.disconnect();this.ta.disconnect()};t.prototype.Ge=function(){return this.Ra};n.prototype.Ye=function(a){this.bb.disconnect();this.bb.connect(a)};n.prototype.remove=function(){this.bb.disconnect()};
n.prototype.Ge=function(){return this.bb};p.prototype.Ye=function(a){this.bb.disconnect();this.bb.connect(a)};p.prototype.remove=function(){this.Xc.disconnect();this.qe.disconnect();this.bb.disconnect()};p.prototype.Ge=function(){return this.bb};G.prototype.Ye=function(a){this.ta.disconnect();this.ta.connect(a);this.qa.disconnect();this.qa.connect(a)};G.prototype.remove=function(){this.Xc.disconnect();this.Bn.disconnect();this.Ra.disconnect();this.ta.disconnect();this.qa.disconnect()};G.prototype.Ge=
function(){return this.Ra};W.prototype.FJ=function(a,b){.01>a&&(a=.01);this.Dq.gain.value=a;this.Cq.gain.value=Math.pow(1/a,.6)*b};W.prototype.shape=function(a,b,e){var c=1.05*e*b-b;e=0>a?-1:1;a=0>a?-a:a;b=a<b?a:b+c*(1-Math.exp(-(1/c)*(a-b)));return b*e};W.prototype.SG=function(a,b){for(var e=Math.pow(10,a/20),c=Math.pow(10,b/20),d=0,g=0;32768>g;++g)d=g/32768,d=this.shape(d,e,c),this.Zo[32768+g]=d,this.Zo[32768-g-1]=-d};W.prototype.Ye=function(a){this.ta.disconnect();this.ta.connect(a);this.qa.disconnect();
this.qa.connect(a)};W.prototype.remove=function(){this.Ra.disconnect();this.Dq.disconnect();this.Br.disconnect();this.Cq.disconnect();this.ta.disconnect();this.qa.disconnect()};W.prototype.Ge=function(){return this.Ra};T.prototype.Ye=function(a){this.bb.disconnect();this.bb.connect(a)};T.prototype.remove=function(){this.bb.disconnect()};T.prototype.Ge=function(){return this.bb};O.prototype.Ba=function(){this.bb.getFloatFrequencyData(this.QG);this.bb.getByteTimeDomainData(this.nA);for(var a=this.bb.fftSize,
b=0,e=this.rn=0,d=0;b<a;b++)d=(this.nA[b]-128)/128,0>d&&(d=-d),this.rn<d&&(this.rn=d),e+=d*d;this.rn=c(this.rn);c(Math.sqrt(e/a))};O.prototype.Ye=function(a){this.bb.disconnect();this.bb.connect(a)};O.prototype.remove=function(){this.bb.disconnect()};O.prototype.Ge=function(){return this.bb};y.prototype.Dn=function(a){this.jb=a};y.prototype.Gp=function(){return!!this.jb};y.prototype.Ba=function(){};D.prototype.lJ=function(){var a,b,e,c;e=a=0;for(b=P.length;a<b;++a)c=P[a],P[e]=c,c.buffer===this?c.stop():
++e;P.length=e;this.Uk&&(this.Uk.disconnect(),this.Uk=null);this.dl&&(this.dl.disconnect(),this.dl=null);this.Mg=this.Wa=null};D.prototype.Ax=function(){if(!this.Wa&&this.Mg){var a=this;if(C.decodeAudioData)C.decodeAudioData(this.Mg,function(b){a.Wa=b;a.Mg=null;var e,c,d;if(ia(a.zq)||ga)ia(a.So)||(e=a.So.Oi,e.normalize=a.uz,e.buffer=b);else if(a.el.length){e=0;for(c=a.el.length;e<c;e++){b=a.el[e];d=new u(a,b.xA);d.Vq(!0);if("undefined"!==typeof b.wz&&(b.jb=H.jg(b.wz),!b.jb))continue;if(b.jb){var g=
Sa(b.jb.x,b.jb.y,-b.jb.F.Ib(),zb,va,!0),h=Sa(b.jb.x,b.jb.y,-b.jb.F.Ib(),zb,va,!1);d.Yu(g,h,Ia(b.jb.C-b.jb.F.Ib()),b.Dt,b.lu,b.ou);d.Dn(b.jb)}else d.Yu(b.x,b.y,b.fk,b.Dt,b.lu,b.ou);d.play(a.fu,a.Jv,a.Qq);a.wq&&d.pause();P.push(d)}M(a.el)}else d=new u(a,a.zq||""),d.play(a.fu,a.Jv,a.Qq),a.wq&&d.pause(),P.push(d)},function(){a.mp=!0});else if(this.Wa=C.createBuffer(this.Mg,!1),this.Mg=null,ia(this.zq)||ga)ia(this.So)||(b=this.So.Oi,b.normalize=this.uz,b.buffer=this.Wa);else{var b=new u(this,this.zq);
b.play(this.fu,this.Jv,this.Qq);this.wq&&b.pause();P.push(b)}}};D.prototype.zy=function(){switch(this.Ma){case 0:var a=4<=this.Wa.readyState;a&&(this.Kv=!0);return a||this.Kv;case 1:return!!this.Mg||!!this.Wa;case 2:return!0;case 3:return!0}return!1};D.prototype.WH=function(){switch(this.Ma){case 0:return this.zy();case 1:return!!this.Wa;case 2:return!0;case 3:return!0}return!1};D.prototype.IH=function(){switch(this.Ma){case 0:return!!this.Wa.error;case 1:return this.mp}return!1};u.prototype.fj=function(){switch(this.Ma){case 0:return this.I.ended;
case 1:return 1===this.buffer.Ma?!this.ig&&!this.jc&&this.I.loop||this.me?!1:this.wk:this.I.ended;case 2:return this.wk;case 3:!0}return!0};u.prototype.cF=function(){return this.ig||this.jc?!0:this.fj()};u.prototype.Vq=function(a){1===I&&(!this.ug&&a?this.Ic&&(this.vc||(this.vc=C.createPanner(),this.vc.panningModel="number"===typeof this.vc.panningModel?ub:["equalpower","HRTF","soundfield"][ub],this.vc.distanceModel="number"===typeof this.vc.distanceModel?rc:["linear","inverse","exponential"][rc],
this.vc.refDistance=qd,this.vc.maxDistance=rd,this.vc.rolloffFactor=sd),this.Ic.disconnect(),this.Ic.connect(this.vc),this.vc.connect(q(this.tag)),this.ug=!0):this.ug&&!a&&this.Ic&&(this.vc.disconnect(),this.Ic.disconnect(),this.Ic.connect(q(this.tag)),this.ug=!1))};u.prototype.Yu=function(a,b,e,c,d,g){this.ug&&1===I&&(this.vc.setPosition(a,b,0),this.vc.setOrientation(Math.cos(R(e)),Math.sin(R(e)),0),this.vc.coneInnerAngle=c,this.vc.coneOuterAngle=d,this.vc.coneOuterGain=g,this.Hz=a,this.Iz=b,this.Dz=
e,this.Ez=c,this.Fz=d,this.Gz=g)};u.prototype.Dn=function(a){this.ug&&1===I&&(this.fd||(this.fd=new y),this.fd.Dn(a))};u.prototype.Ba=function(a){if(this.ug&&1===I&&this.fd&&this.fd.Gp()&&this.kj()){this.fd.Ba(a);a=this.fd.jb;var b=Sa(a.x,a.y,-a.F.Ib(),zb,va,!0),e=Sa(a.x,a.y,-a.F.Ib(),zb,va,!1);this.vc.setPosition(b,e,0);b=0;"undefined"!==typeof this.fd.jb.C&&(b=a.C-a.F.Ib(),this.vc.setOrientation(Math.cos(b),Math.sin(b),0))}};u.prototype.play=function(a,b,c,d){var h=this.I;this.ng=a;this.volume=
b;c=c||0;d=d||0;switch(this.Ma){case 0:1!==h.playbackRate&&(h.playbackRate=1);h.volume!==b*sa&&(h.volume=b*sa);h.loop!==a&&(h.loop=a);h.muted&&(h.muted=!1);if(h.currentTime!==c)try{h.currentTime=c}catch(k){}l(this);break;case 1:this.muted=!1;this.Vk=1;if(1===this.buffer.Ma)this.Ic.gain.value=b*sa,this.ig||(this.I=C.createBufferSource(),this.I.buffer=this.buffer.Wa,this.I.connect(this.Ic)),this.I.onended=this.vu,this.Bo=this.I,this.I.loop=a,this.wk=!1,0===c?g(this.I,d):e(this.I,c,this.$h(),d);else{1!==
h.playbackRate&&(h.playbackRate=1);h.loop!==a&&(h.loop=a);h.volume=b*sa;if(h.currentTime!==c)try{h.currentTime=c}catch(p){}l(this)}break;case 2:(!this.ig&&this.jc||0!==c)&&h.seekTo(c);h.play();this.wk=!1;break;case 3:H.Tc?AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=1;this.startTime=(this.zk?H.rc.na:H.Jh.na)-c;this.me=this.jc=this.ig=!1};u.prototype.stop=function(){switch(this.Ma){case 0:this.I.paused||this.I.pause();break;case 1:1===this.buffer.Ma?
h(this.I):this.I.paused||this.I.pause();break;case 2:this.I.stop();break;case 3:H.Tc&&AppMobi.context.stopSound(this.src)}this.jc=!0;this.me=!1};u.prototype.pause=function(){if(!(this.ig||this.jc||this.fj()||this.me)){switch(this.Ma){case 0:this.I.paused||this.I.pause();break;case 1:1===this.buffer.Ma?(this.Xd=this.qt(!0),this.ng&&(this.Xd=this.Xd%this.$h()),this.me=!0,h(this.I)):this.I.paused||this.I.pause();break;case 2:this.I.pause();break;case 3:H.Tc&&AppMobi.context.stopSound(this.src)}this.me=
!0}};u.prototype.sJ=function(){if(!(this.ig||this.jc||this.fj())&&this.me){switch(this.Ma){case 0:l(this);break;case 1:1===this.buffer.Ma?(this.I=C.createBufferSource(),this.I.buffer=this.buffer.Wa,this.I.connect(this.Ic),this.I.onended=this.vu,this.Bo=this.I,this.I.loop=this.ng,this.Ic.gain.value=sa*this.volume*this.Vk,this.sr(),this.startTime=(this.zk?H.rc.na:H.Jh.na)-this.Xd/(this.playbackRate||.001),e(this.I,this.Xd,this.$h())):l(this);break;case 2:this.I.play();break;case 3:H.Tc&&AppMobi.context.resumeSound(this.src)}this.me=
!1}};u.prototype.seek=function(a){if(!(this.ig||this.jc||this.fj()))switch(this.Ma){case 0:try{this.I.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.Ma)this.me?this.Xd=a:(this.pause(),this.Xd=a,this.sJ());else try{this.I.currentTime=a}catch(e){}break;case 3:H.Tc&&AppMobi.context.seekSound(this.src,a)}};u.prototype.kJ=function(a){1===this.Ma&&(this.ug?(this.vc.disconnect(),this.vc.connect(a)):(this.Ic.disconnect(),this.Ic.connect(a)))};u.prototype.$h=function(){var a=0;switch(this.Ma){case 0:"undefined"!==
typeof this.I.duration&&(a=this.I.duration);break;case 1:a=this.buffer.Wa.duration;break;case 2:a=this.I.getDuration();break;case 3:H.Tc&&(a=AppMobi.context.getDurationSound(this.src))}return a};u.prototype.qt=function(a){var b=this.$h(),e=0;switch(this.Ma){case 0:"undefined"!==typeof this.I.currentTime&&(e=this.I.currentTime);break;case 1:if(1===this.buffer.Ma){if(this.me)return this.Xd;e=(this.zk?H.rc.na:H.Jh.na)-this.startTime}else"undefined"!==typeof this.I.currentTime&&(e=this.I.currentTime);
break;case 3:H.Tc&&(e=AppMobi.context.getPlaybackTimeSound(this.src))}a&&(e*=this.playbackRate);!this.ng&&e>b&&(e=b);return e};u.prototype.kj=function(){return!this.me&&!this.ig&&!this.jc&&!this.fj()};u.prototype.SJ=function(){return!this.ig&&!this.jc&&!this.fj()};u.prototype.eK=function(){var a=this.volume*sa;isFinite(a)||(a=0);switch(this.Ma){case 0:"undefined"!==typeof this.I.volume&&this.I.volume!==a&&(this.I.volume=a);break;case 1:1===this.buffer.Ma?this.Ic.gain.value=a*this.Vk:"undefined"!==
typeof this.I.volume&&this.I.volume!==a&&(this.I.volume=a)}};u.prototype.gp=function(a){switch(this.Ma){case 0:this.I.muted!==!!a&&(this.I.muted=!!a);break;case 1:1===this.buffer.Ma?(this.Vk=a?0:1,this.Ic.gain.value=sa*this.volume*this.Vk):this.I.muted!==!!a&&(this.I.muted=!!a)}};u.prototype.IJ=function(){this.Bk=!0;this.gp(this.Bk||this.Qm)};u.prototype.fA=function(a){this.Qm=!!a;this.gp(this.Bk||this.Qm)};u.prototype.sr=function(){var a=this.playbackRate;this.zk&&(a*=H.Di);switch(this.Ma){case 0:this.I.playbackRate!==
a&&(this.I.playbackRate=a);break;case 1:1===this.buffer.Ma?this.I.playbackRate.value!==a&&(this.I.playbackRate.value=a):this.I.playbackRate!==a&&(this.I.playbackRate=a)}};u.prototype.NJ=function(a){switch(this.Ma){case 0:a?this.kj()?(this.Se=!0,this.I.pause()):this.Se=!1:this.Se&&(this.I.play(),this.Se=!1);break;case 1:a?this.kj()?(this.Se=!0,1===this.buffer.Ma?(this.Xd=this.qt(!0),this.ng&&(this.Xd=this.Xd%this.$h()),h(this.I)):this.I.pause()):this.Se=!1:this.Se&&(1===this.buffer.Ma?(this.I=C.createBufferSource(),
this.I.buffer=this.buffer.Wa,this.I.connect(this.Ic),this.I.onended=this.vu,this.Bo=this.I,this.I.loop=this.ng,this.Ic.gain.value=sa*this.volume*this.Vk,this.sr(),this.startTime=(this.zk?H.rc.na:H.Jh.na)-this.Xd/(this.playbackRate||.001),e(this.I,this.Xd,this.$h())):this.I.play(),this.Se=!1);break;case 2:a?this.kj()?(this.I.pause(),this.Se=!0):this.Se=!1:this.Se&&(this.Se=!1,this.I.play())}};Q.G=function(a){this.type=a;H=this.j=a.j;K=this;this.ne=null;this.Vm=-600;this.j.Rp&&(Bb=!0);!(this.j.nj||
this.j.Lp&&(this.j.Lt||this.j.Mp))||this.j.Op||this.j.ob||this.j.xy||Bb||(Fa=!0);C=null;"undefined"!==typeof AudioContext?(I=1,C=new AudioContext):"undefined"!==typeof webkitAudioContext&&(I=1,C=new webkitAudioContext);this.j.nj&&C&&(C.close&&C.close(),"undefined"!==typeof AudioContext?C=new AudioContext:"undefined"!==typeof webkitAudioContext&&(C=new webkitAudioContext));1!==I&&(this.j.sd&&"undefined"!==typeof window.Media?I=2:this.j.yy&&(I=3));2===I&&(z=location.href,a=z.lastIndexOf("/"),-1<a&&
(z=z.substr(0,a+1)),z=z.replace("file://",""));if(this.j.XH&&this.j.aI&&"undefined"===typeof Audio)alert("It looks like you're using Safari for Windows without Quicktime.  Audio cannot be played until Quicktime is installed."),this.j.Xf(this);else{if(this.j.Tc)V=this.j.Lp;else try{V=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(b){V=!1}this.j.Fh(this)}};var Ua=Q.G.prototype;Ua.H=function(){this.j.ik=this;za=this.q[0];this.yh=this.q[1];this.WI=0!==this.q[2];this.oq=0;ub=this.q[3];rc=
this.q[4];this.Vm=-this.q[5];qd=this.q[6];rd=this.q[7];sd=this.q[8];this.ne=new y;var a=this.j.ka||this.j.width,b=this.j.ja||this.j.height;1===I&&(C.listener.setPosition(a/2,b/2,this.Vm),C.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,b){vb&&vb.disconnect();tc=b.toLowerCase();vb=C.createMediaStreamSource(a);vb.connect(q(tc))});this.j.Vw(function(a){K.KI(a)});var e=this;this.j.gk(function(a){e.kh(a)})};Ua.kh=function(a){var b,e,c;b=0;for(e=P.length;b<e;b++)c=P[b],c.fd&&
c.fd.jb===a&&(c.fd.jb=null,c.ug&&c.kj()&&c.ng&&c.stop());this.ne.jb===a&&(this.ne.jb=null)};Ua.ya=function(){var a={silent:ga,masterVolume:sa,listenerZ:this.Vm,listenerUid:this.ne.Gp()?this.ne.jb.uid:-1,playing:[],effects:{}},b=a.playing,e,c,d,g,h,k;e=0;for(c=P.length;e<c;e++)d=P[e],!d.SJ()||3===this.yh||d.kg&&1===this.yh||!d.kg&&2===this.yh||(g=d.qt(),d.ng&&(g=g%d.$h()),g={tag:d.tag,buffersrc:d.buffer.src,is_music:d.kg,playbackTime:g,volume:d.volume,looping:d.ng,muted:d.Bk,playbackRate:d.playbackRate,
paused:d.me,resume_position:d.Xd},d.ug&&(g.pan={},k=g.pan,d.fd&&d.fd.Gp()?k.objUid=d.fd.jb.uid:(k.x=d.Hz,k.y=d.Iz,k.a=d.Dz),k.ia=d.Ez,k.oa=d.Fz,k.og=d.Gz),b.push(g));b=a.effects;for(h in la)if(la.hasOwnProperty(h)){d=[];e=0;for(c=la[h].length;e<c;e++)d.push({type:la[h][e].type,params:la[h][e].hc});b[h]=d}return a};var Mb=[];Ua.Ga=function(a){var b=a.silent;sa=a.masterVolume;this.Vm=a.listenerZ;this.ne.Dn(null);var e=a.listenerUid;-1!==e&&(this.ne.bq=e,Mb.push(this.ne));var e=a.playing,c,d,g,h,k,f,
q,m,l,u,D;if(3!==this.yh)for(c=0,d=P.length;c<d;c++)l=P[c],l.kg&&1===this.yh||(l.kg||2!==this.yh)&&l.stop();for(k in la)if(la.hasOwnProperty(k))for(c=0,d=la[k].length;c<d;c++)la[k][c].remove();Xa(la);for(k in a.effects)if(a.effects.hasOwnProperty(k))for(f=a.effects[k],c=0,d=f.length;c<d;c++)switch(g=f[c].type,u=f[c].params,g){case "filter":J(k,new v(u[0],u[1],u[2],u[3],u[4],u[5]));break;case "delay":J(k,new x(u[0],u[1],u[2]));break;case "convolve":g=u[2];l=this.Ap(g,!1);l.Wa?g=new w(l.Wa,u[0],u[1],
g):(g=new w(null,u[0],u[1],g),l.uz=u[0],l.So=g);J(k,g);break;case "flanger":J(k,new r(u[0],u[1],u[2],u[3],u[4]));break;case "phaser":J(k,new t(u[0],u[1],u[2],u[3],u[4],u[5]));break;case "gain":J(k,new n(u[0]));break;case "tremolo":J(k,new p(u[0],u[1]));break;case "ringmod":J(k,new G(u[0],u[1]));break;case "distortion":J(k,new W(u[0],u[1],u[2],u[3],u[4]));break;case "compressor":J(k,new T(u[0],u[1],u[2],u[3],u[4]));break;case "analyser":J(k,new O(u[0],u[1]))}c=0;for(d=e.length;c<d;c++)3===this.yh||
(a=e[c],g=a.buffersrc,h=a.is_music,k=a.tag,f=a.playbackTime,q=a.looping,m=a.volume,D=(u=a.pan)&&u.hasOwnProperty("objUid")?u.objUid:-1,h&&1===this.yh)||!h&&2===this.yh||((l=this.gt(g,k,h,q,m))?(l.Xd=a.resume_position,l.Vq(!!u),l.play(q,m,f),l.sr(),l.eK(),l.gp(l.Bk||l.Qm),a.paused&&l.pause(),a.muted&&l.IJ(),l.gp(l.Bk||l.Qm),u&&(-1!==D?(l.fd=l.fd||new y,l.fd.bq=D,Mb.push(l.fd)):l.Yu(u.x,u.y,u.a,u.ia,u.oa,u.og))):(l=this.Ap(g,h),l.Qq=f,l.wq=a.paused,u&&(-1!==D?l.el.push({wz:D,Dt:u.ia,lu:u.oa,ou:u.og,
xA:k}):l.el.push({x:u.x,y:u.y,fk:u.a,Dt:u.ia,lu:u.oa,ou:u.og,xA:k}))));if(b&&!ga){c=0;for(d=P.length;c<d;c++)P[c].fA(!0);ga=!0}else if(!b&&ga){c=0;for(d=P.length;c<d;c++)P[c].fA(!1);ga=!1}};Ua.rf=function(){var a,b,e,c;a=0;for(b=Mb.length;a<b;a++)e=Mb[a],c=this.j.jg(e.bq),e.Dn(c),e.bq=-1,c&&(zb=c.x,va=c.y);M(Mb)};Ua.KI=function(a){if(!this.WI){!a&&C&&C.resume&&(C.resume(),tb=!1);var b,e;b=0;for(e=P.length;b<e;b++)P[b].NJ(a);a&&C&&C.suspend&&(C.suspend(),tb=!0)}};Ua.Ba=function(){var a=this.j.Ug,b,
e,c;b=0;for(e=P.length;b<e;b++)c=P[b],c.Ba(a),0!==za&&c.sr();var d,g;for(d in la)if(la.hasOwnProperty(d))for(c=la[d],b=0,e=c.length;b<e;b++)g=c[b],g.Ba&&g.Ba();1===I&&this.ne.Gp()&&(this.ne.Ba(a),zb=this.ne.jb.x,va=this.ne.jb.y,C.listener.setPosition(this.ne.jb.x,this.ne.jb.y,this.Vm))};var Nb=[];Ua.KJ=function(a){var b,e,c,d,g,h=0;b=0;for(e=a.length;b<e;++b)if(c=a[b],d=c[0],c=2*c[1],(g=4<d.length&&".ogg"===d.substr(d.length-4))&&V||!g&&!V)Nb.push({filename:d,size:c,jb:null}),h+=c;return h};Ua.VJ=
function(){var a,b,e,c;a=0;for(b=Nb.length;a<b;++a)e=Nb[a],c=this.j.pp+e.filename,e.jb=this.Ap(c,!1)};Ua.kH=function(){var a=0,b,e,c;b=0;for(e=Nb.length;b<e;++b)c=Nb[b],c.jb.WH()||c.jb.IH()||this.j.ob||this.j.Mp?a+=c.size:c.jb.zy()&&(a+=Math.floor(c.size/2));return a};Ua.mJ=function(){var a,b,e,c;e=a=0;for(b=L.length;a<b;++a)c=L[a],L[e]=c,c.kg?c.lJ():++e;L.length=e};Ua.Ap=function(a,b){var e,c,d,g=null;e=0;for(c=L.length;e<c;e++)if(d=L[e],d.src===a){g=d;break}g||(Bb&&b&&this.mJ(),g=new D(a,b),L.push(g));
return g};Ua.gt=function(a,b,e,c,d){var g,h,k;g=0;for(h=P.length;g<h;g++)if(k=P[g],k.src===a&&(k.cF()||e))return k.tag=b,k;a=this.Ap(a,e);if(!a.Wa)return"<preload>"!==b&&(a.zq=b,a.fu=c,a.Jv=d),null;k=new u(a,b);P.push(k);return k};var cb=[];X.prototype.oo=function(a){return mb(B,a)};Q.m=new X;N.prototype.Play=function(a,b,e,c){!ga&&(e=k(e),fa=this.gt(this.j.pp+a[0]+(V?".ogg":".m4a"),c,a[1],0!==b,e))&&(fa.Vq(!1),fa.play(0!==b,e,0,this.oq),this.oq=0)};N.prototype.zD=function(a,b,e,c,d){!ga&&(c=k(c),
fa=this.gt(this.j.pp+b.toLowerCase()+(V?".ogg":".m4a"),d,1===a,0!==e,c))&&(fa.Vq(!1),fa.play(0!==e,c,0,this.oq),this.oq=0)};N.prototype.Kw=function(a){F(a);var b;a=0;for(b=cb.length;a<b;a++)cb[a].stop()};N.prototype.mE=function(){var a,b;a=0;for(b=P.length;a<b;a++)P[a].stop()};Q.A=new N;E.prototype.sB=function(a,b){F(b,!0);cb.length?a.B(cb[0].$h()):a.B(0)};Q.D=new E})();function Dc(f){this.j=f}
(function(){function f(){}function l(){}function d(){}var m=Dc.prototype;m.J=function(c){this.Z=c;this.j=c.j};var k=m.J.prototype;k.lI=function(c){function d(){this.decode=function(b){var a="",c,e,d,k,f,q=0;for(b=b.replace(/[^A-Za-z0-9\+\/\=]/g,"");q<b.length;)c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(b.charAt(q++)),e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(b.charAt(q++)),k="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(b.charAt(q++)),
f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(b.charAt(q++)),c=c<<2|e>>4,e=(e&15)<<4|k>>2,d=(k&3)<<6|f,a+=String.fromCharCode(c),64!=k&&(a+=String.fromCharCode(e)),64!=f&&(a+=String.fromCharCode(d));return a=this.IE(a)};this.IE=function(b){for(var a="",c,e,d,k=0;k<b.length;)c=b.charCodeAt(k),128>c?(a+=String.fromCharCode(c),k++):191<c&&224>c?(e=b.charCodeAt(k+1),a+=String.fromCharCode((c&31)<<6|e&63),k+=2):(e=b.charCodeAt(k+1),d=b.charCodeAt(k+2),a+=String.fromCharCode((c&
15)<<12|(e&63)<<6|d&63),k+=3);return a}}if(null!=c||""!=c)this.Yq=JSON.parse((new d).decode(c))};k.H=function(){this.Yq=null;var c=this;$.ajax({type:"GET",url:"setting.js",dataType:"text",success:function(d){c.lI(d)}})};m.G=function(c){this.type=c;this.j=c.j;this.Eu=this.Du=null;this.Nz=this.Mz=0;this.Ad=[];this.tm=null;this.Ie={}};k=m.G.prototype;k.H=function(){this.Ze="";this.$o=null};k.Mc=function(){};k.ya=function(){return{}};k.Ga=function(){};k.$c=function(){};k.Rc=function(){};k.WA=function(c){"click"==
c&&this.j.trigger(Dc.prototype.m.Ov,this);"error"==c&&this.j.trigger(Dc.prototype.m.Pv,this);"done"==c&&this.j.trigger(Dc.prototype.m.Nv,this)};k.sk=function(c){this.tm=null;var d,b;d=0;for(b=this.Ad.length;d<b;d++)if(this.Ad[d].id==c)return this.tm=this.Ad[d],!0;return!1};f.prototype.Nv=function(){return!0};f.prototype.Ov=function(){return!0};f.prototype.Pv=function(){return!0};f.prototype.PJ=function(){return null!=this.type.Yq?!0:!1};f.prototype.CB=function(c){var d=this.j.Cb().Fb;if(null==this.type.Yq)return!1;
c=this.$o=this.type.Yq[c];for(var b in c)c.hasOwnProperty(b)&&"object"===typeof c[b]&&(this.Ze=b,this.j.xg(d.za),d.xh(),this.j.Qe(d.za));this.Ze="";this.$o=null;return!1};f.prototype.sk=function(c){return this.sk(c)};f.prototype.Gt=function(){return!0};m.m=new f;l.prototype.SE=function(c){this.Ad=JSON.parse(c)};l.prototype.cK=function(){var c,d,b,a=null;c=0;for(d=this.Ad.length;c<d;c++)b=c,a=this.Ad[b],this.Ie.id=a.id,this.Ie.num=0,this.Ie.tips=0,this.Ie.index=b,this.Ie.total=a.num,this.j.trigger(Dc.prototype.m.Gt,
this)};l.prototype.sk=function(c){this.sk(c)};l.prototype.LH=function(c,d,b){var a,g,e;a=0;g=this.Ad.length;for(e=-1;a<g;a++)if(this.Ad[a].id==c){e=a;break}a=null;-1!=e?(a=this.Ad[e],a.num+=d):(a={id:c,num:d},e=this.Ad.length,this.Ad.push(a));this.Ie.id=c;this.Ie.num=d;this.Ie.tips=b;this.Ie.index=e;this.Ie.total=a.num;this.j.trigger(Dc.prototype.m.Gt,this)};l.prototype.TJ=function(c){b_showAD(c,this.WA,this)};l.prototype.TI=function(c,d){if(!c)return!1;for(var b=c.la(),a=c.n,g=null,e=0;e<a.length;e++){g=
a[e];if(g.qc[0]==d)break;g=null}g&&(b.Jj(g),c.de())};l.prototype.uD=function(c,d){if(!c)return!1;var b=c.la(),a=c.n;d=ra(d);for(var g=null,e=0;e<a.length;e++){g=a[e];if(g.uid==d)break;g=null}g&&(b.Jj(g),c.de())};l.prototype.QJ=function(c,d,b){0==d?(this.Du=c,this.Mz=b):(this.Eu=c,this.Nz=b)};l.prototype.tF=function(c,d,b,a,g){d&&(null==g&&(g=0==c?this.Mz:this.Nz),0==c&&this.Du?Dc.prototype.A.Ks.call(this,this.Du,d,b,a,g):this.Eu&&Dc.prototype.A.Ks.call(this,this.Eu,d,b,a,g))};l.prototype.Ks=function(c,
d,b,a,g,e){if(d&&c){var h=null,h=null;if(1===e){var k=this.j.ra.xa,f,m;e=0;for(f=k.length;e<f;e++){var r=k[e].je;for(m=0;m<r.length;m++)if(c.index==r[m][1]){h=r[m];break}if(null!=h)break}}c.U?0<g?(--g,h=this.j.gm(c.zj[g],d,b,a)):h=this.j.gm(c,d,b,a):(null==h&&(h=c.Ce),h=this.j.Qg(h,d,!1,b,a,!1));if(h){this.j.Ke++;this.j.trigger(Object.getPrototypeOf(c.Z).m.Gi,h);if(h.ed)for(e=0,f=h.siblings.length;e<f;e++)m=h.siblings[e],this.j.trigger(Object.getPrototypeOf(m.type.Z).m.Gi,m);this.j.Ke--;c=c.la();
c.pa=!1;M(c.n);c.n[0]=h;if(h.ed)for(e=0,f=h.siblings.length;e<f;e++)m=h.siblings[e],c=m.type.la(),c.pa=!1,M(c.n),c.n[0]=m}}};m.A=new l;d.prototype.zl=function(c,d){if(""==this.Ze||null==this.$o)return c.O(0);var b=this.$o[this.Ze];b.hasOwnProperty(d)?c.Jd(b[d]):c.O(0)};d.prototype.DB=function(c){c.O(this.Ad.length)};d.prototype.GB=function(c,d,b){d<this.Ad.length?this.Ad[d].hasOwnProperty(b)?c.Jd(this.Ad[d][b]):c.O(0):c.O(0)};d.prototype.EB=function(c,d){null!=this.tm?this.tm.hasOwnProperty(d)?c.Jd(this.tm[d]):
c.O(0):c.O(0)};d.prototype.IB=function(c,d){null!=this.Ie?this.Ie.hasOwnProperty(d)?c.Jd(this.Ie[d]):c.O(0):c.O(0)};d.prototype.fB=function(c){c.sb(JSON.stringify(this.Ad))};m.D=new d})();function Ec(f){this.j=f}
(function(){function f(){c&&q&&window.OfflineClientInfo&&window.OfflineClientInfo.SetMessageCallback(function(a){b.JI(a)})}function l(){}function d(){}var m=Ec.prototype;m.J=function(a){this.Z=a;this.j=a.j};var k=m.J.prototype;k.H=function(){};var c=!1,q=!1;document.addEventListener("DOMContentLoaded",function(){if(window.C2_RegisterSW&&navigator.cc){var a=document.createElement("script");a.onload=function(){c=!0;f()};a.src="offlineClient.js";document.head.appendChild(a)}});var b=null;k.Az=function(){q=
!0;f()};m.G=function(a){this.type=a;this.j=a.j};k=m.G.prototype;k.H=function(){var a=this;window.addEventListener("resize",function(){a.j.trigger(Ec.prototype.m.eD,a)});b=this;"undefined"!==typeof navigator.onLine&&(window.addEventListener("online",function(){a.j.trigger(Ec.prototype.m.$C,a)}),window.addEventListener("offline",function(){a.j.trigger(Ec.prototype.m.YC,a)}));"undefined"!==typeof window.applicationCache&&(window.applicationCache.addEventListener("updateready",function(){a.j.uj=1;a.j.trigger(Ec.prototype.m.so,
a)}),window.applicationCache.addEventListener("progress",function(b){a.j.uj=b.loaded/b.total||0}));this.j.Tc||(document.addEventListener("appMobi.device.update.available",function(){a.j.trigger(Ec.prototype.m.so,a)}),document.addEventListener("backbutton",function(){a.j.trigger(Ec.prototype.m.lo,a)}),document.addEventListener("menubutton",function(){a.j.trigger(Ec.prototype.m.ww,a)}),document.addEventListener("searchbutton",function(){a.j.trigger(Ec.prototype.m.jD,a)}),document.addEventListener("tizenhwkey",
function(b){var e;switch(b.keyName){case "back":e=a.j.trigger(Ec.prototype.m.lo,a);!e&&window.tizen&&window.tizen.application.getCurrentApplication().exit();break;case "menu":(e=a.j.trigger(Ec.prototype.m.ww,a))||b.preventDefault()}}));this.j.Qt&&"undefined"!==typeof Windows?Windows.UI.Core.SystemNavigationManager.getForCurrentView().addEventListener("backrequested",function(b){a.j.trigger(Ec.prototype.m.lo,a)&&(b.handled=!0)}):this.j.Dy&&WinJS.Application&&(WinJS.Application.onbackclick=function(){return!!a.j.trigger(Ec.prototype.m.lo,
a)});this.j.Vw(function(b){b?a.j.trigger(Ec.prototype.m.aD,a):a.j.trigger(Ec.prototype.m.bD,a)})};k.JI=function(a){a=a.data.type;"downloading-update"===a?this.j.trigger(Ec.prototype.m.oD,this):"update-ready"===a||"update-pending"===a?this.j.trigger(Ec.prototype.m.so,this):"offline-ready"===a&&this.j.trigger(Ec.prototype.m.ZC,this)};l.prototype.$C=function(){return!0};l.prototype.YC=function(){return!0};l.prototype.so=function(){return!0};l.prototype.bD=function(){return!0};l.prototype.aD=function(){return!0};
l.prototype.eD=function(){return!0};l.prototype.lo=function(){return!0};l.prototype.ww=function(){return!0};l.prototype.jD=function(){return!0};l.prototype.oD=function(){return!0};l.prototype.so=function(){return!0};l.prototype.ZC=function(){return!0};m.m=new l;d.prototype.wB=function(a){try{eval&&eval(a)}catch(b){console&&console.error&&console.error("Error executing Javascript: ",b)}};m.A=new d;m.D=new function(){}})();function Fc(f){this.j=f}
(function(){function f(){}function l(){}function d(){}var m=Fc.prototype;m.J=function(c){this.Z=c;this.j=c.j};m.J.prototype.H=function(){};m.G=function(c){this.type=c;this.j=c.j};var k=m.G.prototype;k.H=function(){this.pd={};this.Ze=""};k.ya=function(){return this.pd};k.Ga=function(c){this.pd=c;for(var d in this.pd);};f.prototype.Ir=function(c,d,b){return kc(this.pd[c],d,b)};f.prototype.Wv=function(){var c=this.j.Cb().Fb,d;for(d in this.pd)this.pd.hasOwnProperty(d)&&(this.Ze=d,this.j.xg(c.za),c.xh(),
this.j.Qe(c.za));this.Ze="";return!1};f.prototype.Kr=function(c){return this.pd.hasOwnProperty(c)};m.m=new f;l.prototype.YA=function(c,d){this.pd[c]=d};l.prototype.Hw=function(c,d){this.pd.hasOwnProperty(c)&&(this.pd[c]=d)};l.prototype.Uv=function(c){this.pd.hasOwnProperty(c)&&delete this.pd[c]};l.prototype.ew=function(c){var d;try{d=JSON.parse(c)}catch(b){return}if(d.c2dictionary){this.pd=d.data;for(var a in this.pd);}};m.A=new l;d.prototype.zl=function(c,d){this.pd.hasOwnProperty(d)?c.Jd(this.pd[d]):
c.O(0)};d.prototype.Tv=function(c){c.sb(this.Ze)};d.prototype.yl=function(c){c.sb(JSON.stringify({c2dictionary:!0,data:this.pd}))};m.D=new d})();function Ac(f){this.j=f}
(function(){function f(){this.name="";this.Mj=0;this.hc=[]}function l(){a++;a===b.length&&b.push(new f);return b[a]}function d(){return 0>a?null:b[a]}function m(){}function k(){}function c(){}var q=Ac.prototype;q.J=function(a){this.Z=a;this.j=a.j};q.J.prototype.H=function(){};q.G=function(a){this.type=a;this.j=a.j};var b=[],a=-1;q.G.prototype.H=function(){var b=this;window.c2_callFunction=function(e,c){var d,k,f,r=l();r.name=e.toLowerCase();r.Mj=0;if(c)for(r.hc.length=c.length,d=0,k=c.length;d<k;++d)f=
c[d],r.hc[d]="number"===typeof f||"string"===typeof f?f:"boolean"===typeof f?f?1:0:0;else M(r.hc);b.j.trigger(Ac.prototype.m.qo,b,r.name);a--;return r.Mj}};m.prototype.qo=function(a){var b=d();return b?mb(a,b.name):!1};m.prototype.mB=function(a,b,c){var k=d();if(!k)return!1;a=ra(a);return 0>a||a>=k.hc.length?!1:kc(k.hc[a],b,c)};q.m=new m;k.prototype.CallFunction=function(b,e){var c=l();c.name=b.toLowerCase();c.Mj=0;Ca(c.hc,e);this.j.trigger(Ac.prototype.m.qo,this,c.name);a--};k.prototype.$D=function(a){var b=
d();b&&(b.Mj=a)};q.A=new k;c.prototype.DD=function(c){var e;b.length?(e=a+1,e>=b.length&&(e=b.length-1),e=b[e]):e=null;e?c.Jd(e.Mj):c.O(0)};c.prototype.rD=function(a,b){b=ra(b);var c=d();c?0<=b&&b<c.hc.length?a.Jd(c.hc[b]):a.O(0):a.O(0)};c.prototype.gB=function(b,e){var c=l();c.name=e.toLowerCase();c.Mj=0;M(c.hc);var d,k;d=2;for(k=arguments.length;d<k;d++)c.hc.push(arguments[d]);this.j.trigger(Ac.prototype.m.qo,this,c.name);a--;b.Jd(c.Mj)};q.D=new c})();function Gc(f){this.j=f}
(function(){function f(){}function l(){}var d=Gc.prototype;d.J=function(c){this.Z=c;this.j=c.j};d.J.prototype.H=function(){};d.G=function(c){this.type=c;this.j=c.j;this.lg=Array(256);this.Un=Array(256);this.Dg=0};var m=d.G.prototype;m.H=function(){var c=this;this.j.ob||(jQuery(document).keydown(function(d){c.tu(d)}),jQuery(document).keyup(function(d){c.uu(d)}))};var k=[32,33,34,35,36,37,38,39,40,44];m.tu=function(c){var d=!1;window!=window.top&&-1<k.indexOf(c.which)&&(c.preventDefault(),d=!0,c.stopPropagation());
if(this.lg[c.which])this.Un[c.which]&&!d&&c.preventDefault();else{this.lg[c.which]=!0;this.Dg=c.which;this.j.$a=!0;this.j.trigger(Gc.prototype.m.Nr,this);var b=this.j.trigger(Gc.prototype.m.ow,this),a=this.j.trigger(Gc.prototype.m.SC,this);this.j.$a=!1;if(b||a)this.Un[c.which]=!0,d||c.preventDefault()}};m.uu=function(c){this.lg[c.which]=!1;this.Dg=c.which;this.j.$a=!0;this.j.trigger(Gc.prototype.m.iw,this);var d=this.j.trigger(Gc.prototype.m.rw,this),b=this.j.trigger(Gc.prototype.m.qw,this);this.j.$a=
!1;if(d||b||this.Un[c.which])this.Un[c.which]=!0,c.preventDefault()};m.ri=function(){var c;for(c=0;256>c;++c)if(this.lg[c]){this.lg[c]=!1;this.Dg=c;this.j.trigger(Gc.prototype.m.iw,this);var d=this.j.trigger(Gc.prototype.m.rw,this),b=this.j.trigger(Gc.prototype.m.qw,this);if(d||b)this.Un[c]=!0}};m.ya=function(){return{triggerKey:this.Dg}};m.Ga=function(c){this.Dg=c.triggerKey};f.prototype.cC=function(c){return this.lg[c]};f.prototype.ow=function(c){return c===this.Dg};f.prototype.Nr=function(){return!0};
f.prototype.iw=function(){return!0};f.prototype.rw=function(c){return c===this.Dg};f.prototype.SC=function(c){return c===this.Dg};f.prototype.qw=function(c){return c===this.Dg};d.m=new f;d.A=new function(){};l.prototype.oC=function(c){c.O(this.Dg)};d.D=new l})();var Hc=!1;
try{!function(){var f,l,d;!function(){var m={},k={};f=function(c,d,b){m[c]={xF:d,bF:b}};d=l=function(c){function f(a){if("."!==a.charAt(0))return a;a=a.split("/");for(var b=c.split("/").slice(0,-1),e=0,d=a.length;d>e;e++){var g=a[e];".."===g?b.pop():"."!==g&&b.push(g)}return b.join("/")}if(d.uL=m,k[c])return k[c];if(k[c]={},!m[c])throw Error("Could not find module "+c);for(var b,a=m[c],g=a.xF,a=a.bF,e=[],h=0,v=g.length;v>h;h++)"exports"===g[h]?e.push(b={}):e.push(l(f(g[h])));g=a.apply(this,e);return k[c]=
b||g}}();f("promise/all",["./utils","exports"],function(d,k){var c=d.isArray,f=d.isFunction;k.all=function(b){if(!c(b))throw new TypeError("You must pass an array to all.");return new this(function(a,c){function e(b){return function(e){k[b]=e;0===--m&&a(k)}}var d,k=[],m=b.length;0===m&&a([]);for(var l=0;l<b.length;l++)(d=b[l])&&f(d.then)?d.then(e(l),c):(k[l]=d,0===--m&&a(k))})}});f("promise/asap",["exports"],function(d){function k(){return function(){process.EL(b)}}function c(){var a=0,c=new e(b),
d=document.createTextNode("");return c.observe(d,{characterData:!0}),function(){d.data=a=++a%2}}function f(){return function(){h.setTimeout(b,1)}}function b(){for(var a=0;a<l.length;a++){var b=l[a];(0,b[0])(b[1])}l=[]}var a,g="undefined"!=typeof window?window:{},e=g.MutationObserver||g.WebKitMutationObserver,h="undefined"!=typeof global?global:void 0===this?window:this,l=[];a="undefined"!=typeof process&&"[object process]"==={}.toString.call(process)?k():e?c():f();d.OE=function(b,e){1===l.push([b,
e])&&a()}});f("promise/config",["exports"],function(d){var k={BL:!1};d.ux=k;d.lF=function(c,d){return 2!==arguments.length?k[c]:void(k[c]=d)}});f("promise/polyfill",["./promise","./utils","exports"],function(d,k,c){var f=d.Promise,b=k.isFunction;c.XI=function(){var a;a="undefined"!=typeof global?global:"undefined"!=typeof window&&window.document?window:self;"Promise"in a&&"resolve"in a.Promise&&"reject"in a.Promise&&"all"in a.Promise&&"race"in a.Promise&&function(){var c;return new a.Promise(function(a){c=
a}),b(c)}()||(a.Promise=f)}});f("promise/promise","./config ./utils ./all ./race ./resolve ./reject ./asap exports".split(" "),function(d,k,c,f,b,a,g,e){function h(a){if(!D(a))throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");if(!(this instanceof h))throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this.zo=[];l(a,this)}function l(a,b){function e(a){n(b,
a)}function c(a){G(b,a)}try{a(e,c)}catch(d){c(d)}}function x(a,b,e,c){var d,g,h,k,f=D(e);if(f)try{d=e(c),h=!0}catch(p){k=!0,g=p}else d=c,h=!0;t(b,d)||(f&&h?n(b,d):k?G(b,g):a===F?n(b,d):a===J&&G(b,d))}function w(a,b,e,c){a=a.zo;var d=a.length;a[d]=b;a[d+F]=e;a[d+J]=c}function r(a,b){for(var e,c,d=a.zo,g=a.xo,h=0;h<d.length;h+=3)e=d[h],c=d[h+b],x(b,e,c,g);a.zo=null}function t(a,b){var e,c=null;try{if(a===b)throw new TypeError("A promises callback cannot return that same promise.");if(y(b)&&(c=b.then,
D(c)))return c.call(b,function(c){return e?!0:(e=!0,void(b!==c?n(a,c):p(a,c)))},function(b){return e?!0:(e=!0,void G(a,b))}),!0}catch(d){return e?!0:(G(a,d),!0)}return!1}function n(a,b){a===b?p(a,b):t(a,b)||p(a,b)}function p(a,b){a.Ig===u&&(a.Ig=U,a.xo=b,O.async(W,a))}function G(a,b){a.Ig===u&&(a.Ig=U,a.xo=b,O.async(T,a))}function W(a){r(a,a.Ig=F)}function T(a){r(a,a.Ig=J)}var O=d.ux,y=(d.lF,k.CI),D=k.isFunction;d=(k.now,c.all);f=f.race;b=b.resolve;a=a.reject;O.async=g.OE;var u=void 0,U=0,F=1,J=2;
h.prototype={constructor:h,Ig:void 0,xo:void 0,zo:void 0,then:function(a,b){var e=this,c=new this.constructor(function(){});if(this.Ig){var d=arguments;O.async(function(){x(e.Ig,c,d[e.Ig-1],e.xo)})}else w(this,c,a,b);return c},"catch":function(a){return this.then(null,a)}};h.all=d;h.race=f;h.resolve=b;h.reject=a;e.Promise=h});f("promise/race",["./utils","exports"],function(d,k){var c=d.isArray;k.race=function(d){if(!c(d))throw new TypeError("You must pass an array to race.");return new this(function(b,
a){for(var c,e=0;e<d.length;e++)(c=d[e])&&"function"==typeof c.then?c.then(b,a):b(c)})}});f("promise/reject",["exports"],function(d){d.reject=function(d){return new this(function(c,f){f(d)})}});f("promise/resolve",["exports"],function(d){d.resolve=function(d){return d&&"object"==typeof d&&d.constructor===this?d:new this(function(c){c(d)})}});f("promise/utils",["exports"],function(d){function k(c){return"function"==typeof c}var c=Date.now||function(){return(new Date).getTime()};d.CI=function(c){return k(c)||
"object"==typeof c&&null!==c};d.isFunction=k;d.isArray=function(c){return"[object Array]"===Object.prototype.toString.call(c)};d.now=c});l("promise/polyfill").XI()}();var Ic=function(){return function(f){function l(m){if(d[m])return d[m].dg;var k=d[m]={dg:{},id:m,loaded:!1};return f[m].call(k.dg,k,k.dg,l),k.loaded=!0,k.dg}var d={};return l.cc=f,l.Zl=d,l.qn="",l(0)}([function(f,l,d){l.wo=!0;var m=function(k){function c(a,b){a[b]=function(){var e=arguments;return a.ready().then(function(){return a[b].apply(a,
e)})}}function f(){for(var a=1;a<arguments.length;a++){var b=arguments[a];if(b)for(var e in b)b.hasOwnProperty(e)&&(l(b[e])?arguments[0][e]=b[e].slice():arguments[0][e]=b[e])}return arguments[0]}function b(a){for(var b in g)if(g.hasOwnProperty(b)&&g[b]===a)return!0;return!1}var a={},g={Al:"asyncStorage",Bl:"localStorageWrapper",Ml:"webSQLStorage"},e="clear getItem iterate key keys length removeItem setItem".split(" "),h={description:"",pk:[g.Al,g.Ml,g.Bl].slice(),name:"localforage",size:4980736,kb:"keyvaluepairs",
version:1},m=function(a){var b={},e;try{var c=c||a.indexedDB||a.webkitIndexedDB||a.mozIndexedDB||a.nq||a.msIndexedDB;e="undefined"!=typeof a.openDatabase&&a.navigator&&a.navigator.userAgent&&/Safari/.test(a.navigator.userAgent)&&!/Chrome/.test(a.navigator.userAgent)?!1:c&&"function"==typeof c.open&&"undefined"!=typeof a.IDBKeyRange}catch(d){e=!1}b[g.Al]=!!e;var h;try{h=a.openDatabase}catch(k){h=!1}b[g.Ml]=!!h;var f;try{f=a.localStorage&&"setItem"in a.localStorage&&a.localStorage.setItem}catch(m){f=
!1}return b[g.Bl]=!!f,b}(k),l=Array.isArray||function(a){return"[object Array]"===Object.prototype.toString.call(a)};return new (function(){function k(a){if(!(this instanceof k))throw new TypeError("Cannot call a class as a function");this.Al=g.Al;this.Bl=g.Bl;this.Ml=g.Ml;this.es=f({},h);this.Ji=f({},this.es,a);this.Pw=this.Yf=null;this.Nh=!1;this.ib=null;this.Sw();this.bA(this.Ji.pk)}return k.prototype.ux=function(a){if("object"==typeof a){if(this.Nh)return Error("Can't call config() after localforage has been used.");
for(var b in a)"storeName"===b&&(a[b]=a[b].replace(/\W/g,"_")),this.Ji[b]=a[b];return"driver"in a&&a.pk&&this.bA(this.Ji.pk),!0}return"string"==typeof a?this.Ji[a]:this.Ji},k.prototype.pk=function(){return this.Pl||null},k.prototype.Tx=function(e,c,g){var h=this,k=function(){if(b(e))switch(e){case h.Al:return new Promise(function(a){a(d(1))});case h.Bl:return new Promise(function(a){a(d(2))});case h.Ml:return new Promise(function(a){a(d(4))})}else if(a[e])return Promise.resolve(a[e]);return Promise.reject(Error("Driver not found."))}();
return k.then(c,g),k},k.prototype.ready=function(a){var b=this,e=b.Yf.then(function(){return null===b.Nh&&(b.Nh=b.Pw()),b.Nh});return e.then(a,a),e},k.prototype.bA=function(a,b,e){function c(){g.Ji.pk=g.pk()}function d(a){return function(){function b(){for(;e<a.length;){var d=a[e];return e++,g.ib=null,g.Nh=null,g.Tx(d).then(function(a){return g.AE(a),c(),g.Nh=g.ks(g.Ji),g.Nh})["catch"](b)}c();return g.Yf=Promise.reject(Error("No available storage method found.")),g.Yf}var e=0;return b()}}var g=this;
l(a)||(a=[a]);var h=this.BE(a);return this.Yf=(null!==this.Yf?this.Yf["catch"](function(){return Promise.resolve()}):Promise.resolve()).then(function(){var a=h[0];return g.ib=null,g.Nh=null,g.Tx(a).then(function(a){g.Pl=a.Pl;c();g.Sw();g.Pw=d(h)})})["catch"](function(){c();return g.Yf=Promise.reject(Error("No available storage method found.")),g.Yf}),this.Yf.then(b,e),this.Yf},k.prototype.supports=function(a){return!!m[a]},k.prototype.AE=function(a){f(this,a)},k.prototype.BE=function(a){for(var b=
[],e=0,c=a.length;c>e;e++){var d=a[e];this.supports(d)&&b.push(d)}return b},k.prototype.Sw=function(){for(var a=0;a<e.length;a++)c(this,e[a])},k.prototype.gm=function(a){return new k(a)},k}())}("undefined"!=typeof window?window:self);l["default"]=m;f.dg=l["default"]},function(f,l){l.wo=!0;l["default"]=function(d){function f(a,b){a=a||[];b=b||{};try{return new Blob(a,b)}catch(e){if("TypeError"!==e.name)throw e;for(var c=new (d.BlobBuilder||d.Hk||d.Rk||d.WebKitBlobBuilder),g=0;g<a.length;g+=1)c.append(a[g]);
return c.getBlob(b.type)}}function k(a){return new Promise(function(b,e){var c=new XMLHttpRequest;c.open("GET",a);c.withCredentials=!0;c.responseType="arraybuffer";c.onreadystatechange=function(){return 4===c.readyState?200===c.status?b({response:c.response,type:c.getResponseHeader("Content-Type")}):void e({status:c.status,response:c.response}):void 0};c.send()})}function c(a){return(new Promise(function(b,e){var c=f([""],{type:"image/png"}),d=a.transaction([u],"readwrite");d.objectStore(u).put(c,
"key");d.oncomplete=function(){var c=a.transaction([u],"readwrite").objectStore(u).get("key");c.onerror=e;c.onsuccess=function(a){var e=URL.createObjectURL(a.target.result);k(e).then(function(a){b(!(!a||"image/png"!==a.type))},function(){b(!1)}).then(function(){URL.revokeObjectURL(e)})}};d.onerror=d.onabort=e}))["catch"](function(){return!1})}function l(a){return"boolean"==typeof y?Promise.resolve(y):c(a).then(function(a){return y=a})}function b(a){return new Promise(function(b,e){var c=new FileReader;
c.onerror=e;c.onloadend=function(e){b({Nw:!0,data:btoa(e.target.result||""),type:a.type})};c.readAsBinaryString(a)})}function a(a){for(var b=atob(a.data),e=b.length,c=new ArrayBuffer(e),d=new Uint8Array(c),g=0;e>g;g++)d[g]=b.charCodeAt(g);return f([c],{type:a.type})}function g(a){var b=this,e=b.hs().then(function(){var a=D[b.ib.name];return a&&a.mk?a.mk:void 0});return e.then(a,a),e}function e(a){a=D[a.name];var b={};b.promise=new Promise(function(a){b.resolve=a});a.Bx.push(b);a.mk?a.mk=a.mk.then(function(){return b.promise}):
a.mk=b.promise}function h(a){function b(){return Promise.resolve()}var e=this,c={db:null};if(a)for(var h in a)c[h]=a[h];D||(D={});var k=D[c.name];k||(k={wp:[],db:null,mk:null,Bx:[]},D[c.name]=k);k.wp.push(e);e.hs||(e.hs=e.ready,e.ready=g);a=[];for(h=0;h<k.wp.length;h++){var f=k.wp[h];f!==e&&a.push(f.hs()["catch"](b))}var p=k.wp.slice(0);return Promise.all(a).then(function(){return c.db=k.db,v(c,!1)}).then(function(a){c.db=a;var b;b=e.es.version;if(c.db){var g=!c.db.objectStoreNames.contains(c.kb),
h=c.version>c.db.version;(c.version<c.db.version&&(c.version!==b&&d.console.warn('The database "'+c.name+"\" can't be downgraded from version "+c.db.version+" to version "+c.version+"."),c.version=c.db.version),h||g)?(g&&(b=c.db.version+1,b>c.version&&(c.version=b)),b=!0):b=!1}else b=!0;return b?v(c,!0):a}).then(function(a){c.db=k.db=a;e.ib=c;for(a=0;a<p.length;a++){var b=p[a];b!==e&&(b.ib.db=c.db,b.ib.version=c.version)}})}function v(a,b){return new Promise(function(c,g){if(a.db){if(!b)return c(a.db);
e(a);a.db.close()}var h=[a.name];b&&h.push(a.version);var k=O.open.apply(O,h);b&&(k.onupgradeneeded=function(b){var e=k.result;try{e.createObjectStore(a.kb),1>=b.oldVersion&&e.createObjectStore(u)}catch(c){if("ConstraintError"!==c.name)throw c;d.console.warn('The database "'+a.name+'" has been upgraded from version '+b.oldVersion+" to version "+b.newVersion+', but the storage "'+a.kb+'" already exists.')}});k.onerror=function(){g(k.error)};k.onsuccess=function(){c(k.result);var b=D[a.name].Bx.pop();
b&&b.resolve()}})}function x(b,e){var c=this;"string"!=typeof b&&(d.console.warn(b+" used as a key, but it is not a string."),b=String(b));var g=new Promise(function(e,d){c.ready().then(function(){var g=c.ib,h=g.db.transaction(g.kb,"readonly").objectStore(g.kb).get(b);h.onsuccess=function(){var b=h.result;void 0===b&&(b=null);b&&b.Nw&&(b=a(b));e(b)};h.onerror=function(){d(h.error)}})["catch"](d)});return T(g,e),g}function w(b,e){var c=this,d=new Promise(function(e,d){c.ready().then(function(){var g=
c.ib,h=g.db.transaction(g.kb,"readonly").objectStore(g.kb).openCursor(),k=1;h.onsuccess=function(){var c=h.result;if(c){var d=c.value;d&&d.Nw&&(d=a(d));d=b(d,c.key,k++);void 0!==d?e(d):c["continue"]()}else e()};h.onerror=function(){d(h.error)}})["catch"](d)});return T(d,e),d}function r(a,e,c){var g=this;"string"!=typeof a&&(d.console.warn(a+" used as a key, but it is not a string."),a=String(a));var h=new Promise(function(c,d){var h;g.ready().then(function(){return h=g.ib,e instanceof Blob?l(h.db).then(function(a){return a?
e:b(e)}):e}).then(function(b){var e=h.db.transaction(h.kb,"readwrite"),g=e.objectStore(h.kb);null===b&&(b=void 0);e.oncomplete=function(){void 0===b&&(b=null);c(b)};e.onabort=e.onerror=function(){d(k.error?k.error:k.transaction.error)};var k=g.put(b,a)})["catch"](d)});return T(h,c),h}function t(a,b){var e=this;"string"!=typeof a&&(d.console.warn(a+" used as a key, but it is not a string."),a=String(a));var c=new Promise(function(b,c){e.ready().then(function(){var d=e.ib,g=d.db.transaction(d.kb,"readwrite"),
h=g.objectStore(d.kb)["delete"](a);g.oncomplete=function(){b()};g.onerror=function(){c(h.error)};g.onabort=function(){c(h.error?h.error:h.transaction.error)}})["catch"](c)});return T(c,b),c}function n(a){var b=this,e=new Promise(function(a,e){b.ready().then(function(){var c=b.ib,d=c.db.transaction(c.kb,"readwrite"),g=d.objectStore(c.kb).clear();d.oncomplete=function(){a()};d.onabort=d.onerror=function(){e(g.error?g.error:g.transaction.error)}})["catch"](e)});return T(e,a),e}function p(a){var b=this,
e=new Promise(function(a,e){b.ready().then(function(){var c=b.ib,d=c.db.transaction(c.kb,"readonly").objectStore(c.kb).count();d.onsuccess=function(){a(d.result)};d.onerror=function(){e(d.error)}})["catch"](e)});return T(e,a),e}function G(a,b){var e=this,c=new Promise(function(b,c){return 0>a?void b(null):void e.ready().then(function(){var d=e.ib,g=!1,h=d.db.transaction(d.kb,"readonly").objectStore(d.kb).openCursor();h.onsuccess=function(){var e=h.result;return e?void(0===a?b(e.key):g?b(e.key):(g=
!0,e.advance(a))):void b(null)};h.onerror=function(){c(h.error)}})["catch"](c)});return T(c,b),c}function W(a){var b=this,e=new Promise(function(a,e){b.ready().then(function(){var c=b.ib,d=c.db.transaction(c.kb,"readonly").objectStore(c.kb).openCursor(),g=[];d.onsuccess=function(){var b=d.result;return b?(g.push(b.key),void b["continue"]()):void a(g)};d.onerror=function(){e(d.error)}})["catch"](e)});return T(e,a),e}function T(a,b){b&&a.then(function(a){b(null,a)},function(a){b(a)})}var O=O||d.indexedDB||
d.webkitIndexedDB||d.mozIndexedDB||d.nq||d.msIndexedDB;if(O){var y,D,u="local-forage-detect-blob-support";return{Pl:"asyncStorage",ks:h,Hy:w,getItem:x,setItem:r,removeItem:t,clear:n,length:p,key:G,keys:W}}}("undefined"!=typeof window?window:self);f.dg=l["default"]},function(f,l,d){l.wo=!0;l["default"]=function(f){function k(b,a){a&&b.then(function(b){a(null,b)},function(b){a(b)})}var c=null;try{if(!(f.localStorage&&"setItem"in f.localStorage))return;c=f.localStorage}catch(l){return}return{Pl:"localStorageWrapper",
ks:function(b){var a={};if(b)for(var c in b)a[c]=b[c];return a.mg=a.name+"/",a.kb!==this.es.kb&&(a.mg+=a.kb+"/"),this.ib=a,(new Promise(function(a){a(d(3))})).then(function(b){return a.Nj=b,Promise.resolve()})},Hy:function(b,a){var d=this,e=d.ready().then(function(){for(var a=d.ib,e=a.mg,k=e.length,f=c.length,r=1,m=0;f>m;m++){var n=c.key(m);if(0===n.indexOf(e)){var p=c.getItem(n);if(p&&(p=a.Nj.ep(p)),p=b(p,n.substring(k),r++),void 0!==p)return p}}});return k(e,a),e},getItem:function(b,a){var d=this;
"string"!=typeof b&&(f.console.warn(b+" used as a key, but it is not a string."),b=String(b));var e=d.ready().then(function(){var a=d.ib,e=c.getItem(a.mg+b);return e&&(e=a.Nj.ep(e)),e});return k(e,a),e},setItem:function(b,a,d){var e=this;"string"!=typeof b&&(f.console.warn(b+" used as a key, but it is not a string."),b=String(b));var h=e.ready().then(function(){void 0===a&&(a=null);var d=a;return new Promise(function(g,h){var k=e.ib;k.Nj.serialize(a,function(a,e){if(e)h(e);else try{c.setItem(k.mg+
b,a),g(d)}catch(f){"QuotaExceededError"!==f.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==f.name||h(f),h(f)}})})});return k(h,d),h},removeItem:function(b,a){var d=this;"string"!=typeof b&&(f.console.warn(b+" used as a key, but it is not a string."),b=String(b));var e=d.ready().then(function(){c.removeItem(d.ib.mg+b)});return k(e,a),e},clear:function(b){var a=this,d=a.ready().then(function(){for(var b=a.ib.mg,d=c.length-1;0<=d;d--){var g=c.key(d);0===g.indexOf(b)&&c.removeItem(g)}});return k(d,b),d},length:function(b){var a=
this.keys().then(function(a){return a.length});return k(a,b),a},key:function(b,a){var d=this,e=d.ready().then(function(){var a,e=d.ib;try{a=c.key(b)}catch(k){a=null}return a&&(a=a.substring(e.mg.length)),a});return k(e,a),e},keys:function(b){var a=this,d=a.ready().then(function(){for(var b=a.ib,d=c.length,g=[],k=0;d>k;k++)0===c.key(k).indexOf(b.mg)&&g.push(c.key(k).substring(b.mg.length));return g});return k(d,b),d}}}("undefined"!=typeof window?window:self);f.dg=l["default"]},function(f,l){l.wo=!0;
l["default"]=function(d){function f(b){var a,d,e,h,k;a=.75*b.length;var m=b.length,l=0;"="===b[b.length-1]&&(a--,"="===b[b.length-2]&&a--);var r=new ArrayBuffer(a),q=new Uint8Array(r);for(a=0;m>a;a+=4)d=c.indexOf(b[a]),e=c.indexOf(b[a+1]),h=c.indexOf(b[a+2]),k=c.indexOf(b[a+3]),q[l++]=d<<2|e>>4,q[l++]=(15&e)<<4|h>>2,q[l++]=(3&h)<<6|63&k;return r}function k(b){var a=new Uint8Array(b),d="";for(b=0;b<a.length;b+=3)d+=c[a[b]>>2],d+=c[(3&a[b])<<4|a[b+1]>>4],d+=c[(15&a[b+1])<<2|a[b+2]>>6],d+=c[63&a[b+2]];
return 2===a.length%3?d=d.substring(0,d.length-1)+"=":1===a.length%3&&(d=d.substring(0,d.length-2)+"=="),d}var c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=/^~~local_forage_type~([^~]+)~/;return{serialize:function(b,a){var c="";if(b&&(c=b.toString()),b&&("[object ArrayBuffer]"===b.toString()||b.buffer&&"[object ArrayBuffer]"===b.buffer.toString())){var e,d="__lfsc__:";b instanceof ArrayBuffer?(e=b,d+="arbf"):(e=b.buffer,"[object Int8Array]"===c?d+="si08":"[object Uint8Array]"===
c?d+="ui08":"[object Uint8ClampedArray]"===c?d+="uic8":"[object Int16Array]"===c?d+="si16":"[object Uint16Array]"===c?d+="ur16":"[object Int32Array]"===c?d+="si32":"[object Uint32Array]"===c?d+="ui32":"[object Float32Array]"===c?d+="fl32":"[object Float64Array]"===c?d+="fl64":a(Error("Failed to get type for BinaryArray")));a(d+k(e))}else if("[object Blob]"===c)c=new FileReader,c.onload=function(){var e="~~local_forage_type~"+b.type+"~"+k(this.result);a("__lfsc__:blob"+e)},c.readAsArrayBuffer(b);else try{a(JSON.stringify(b))}catch(f){console.error("Couldn't convert value into a JSON string: ",
b),a(null,f)}},ep:function(b){if("__lfsc__:"!==b.substring(0,9))return JSON.parse(b);var a,c=b.substring(13);b=b.substring(9,13);if("blob"===b&&l.test(c)){var e=c.match(l);a=e[1];c=c.substring(e[0].length)}c=f(c);switch(b){case "arbf":return c;case "blob":var k;c=[c];a={type:a};c=c||[];a=a||{};try{k=new Blob(c,a)}catch(v){if("TypeError"!==v.name)throw v;k=new (d.BlobBuilder||d.Hk||d.Rk||d.WebKitBlobBuilder);for(b=0;b<c.length;b+=1)k.append(c[b]);k=k.getBlob(a.type)}return k;case "si08":return new Int8Array(c);
case "ui08":return new Uint8Array(c);case "uic8":return new Uint8ClampedArray(c);case "si16":return new Int16Array(c);case "ur16":return new Uint16Array(c);case "si32":return new Int32Array(c);case "ui32":return new Uint32Array(c);case "fl32":return new Float32Array(c);case "fl64":return new Float64Array(c);default:throw Error("Unkown type: "+b);}},JL:f,xL:k}}("undefined"!=typeof window?window:self);f.dg=l["default"]},function(f,l,d){l.wo=!0;l["default"]=function(f){function k(a){var b=this,c={db:null};
if(a)for(var e in a)c[e]="string"!=typeof a[e]?a[e].toString():a[e];var g=new Promise(function(a,e){try{c.db=w(c.name,String(c.version),c.description,c.size)}catch(d){return e(d)}c.db.transaction(function(d){d.executeSql("CREATE TABLE IF NOT EXISTS "+c.kb+" (id INTEGER PRIMARY KEY, key unique, value)",[],function(){b.ib=c;a()},function(a,b){e(b)})})});return(new Promise(function(a){a(d(3))})).then(function(a){return c.Nj=a,g})}function c(a,b){var c=this;"string"!=typeof a&&(f.console.warn(a+" used as a key, but it is not a string."),
a=String(a));var e=new Promise(function(b,e){c.ready().then(function(){var d=c.ib;d.db.transaction(function(c){c.executeSql("SELECT * FROM "+d.kb+" WHERE key = ? LIMIT 1",[a],function(a,c){var e=c.rows.length?c.rows.item(0).value:null;e&&(e=d.Nj.ep(e));b(e)},function(a,b){e(b)})})})["catch"](e)});return x(e,b),e}function l(a,b){var c=this,e=new Promise(function(b,e){c.ready().then(function(){var d=c.ib;d.db.transaction(function(c){c.executeSql("SELECT * FROM "+d.kb,[],function(c,e){for(var g=e.rows,
k=g.length,h=0;k>h;h++){var f=g.item(h),p=f.value;if(p&&(p=d.Nj.ep(p)),p=a(p,f.key,h+1),void 0!==p)return void b(p)}b()},function(a,b){e(b)})})})["catch"](e)});return x(e,b),e}function b(a,b,c){var e=this;"string"!=typeof a&&(f.console.warn(a+" used as a key, but it is not a string."),a=String(a));var d=new Promise(function(c,d){e.ready().then(function(){void 0===b&&(b=null);var g=b,k=e.ib;k.Nj.serialize(b,function(b,e){e?d(e):k.db.transaction(function(e){e.executeSql("INSERT OR REPLACE INTO "+k.kb+
" (key, value) VALUES (?, ?)",[a,b],function(){c(g)},function(a,b){d(b)})},function(a){a.code===a.QUOTA_ERR&&d(a)})})})["catch"](d)});return x(d,c),d}function a(a,b){var c=this;"string"!=typeof a&&(f.console.warn(a+" used as a key, but it is not a string."),a=String(a));var e=new Promise(function(b,e){c.ready().then(function(){var d=c.ib;d.db.transaction(function(c){c.executeSql("DELETE FROM "+d.kb+" WHERE key = ?",[a],function(){b()},function(a,b){e(b)})})})["catch"](e)});return x(e,b),e}function g(a){var b=
this,c=new Promise(function(a,c){b.ready().then(function(){var e=b.ib;e.db.transaction(function(b){b.executeSql("DELETE FROM "+e.kb,[],function(){a()},function(a,b){c(b)})})})["catch"](c)});return x(c,a),c}function e(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var e=b.ib;e.db.transaction(function(b){b.executeSql("SELECT COUNT(key) as c FROM "+e.kb,[],function(b,c){var e=c.rows.item(0).Zl;a(e)},function(a,b){c(b)})})})["catch"](c)});return x(c,a),c}function h(a,b){var c=this,
e=new Promise(function(b,e){c.ready().then(function(){var d=c.ib;d.db.transaction(function(c){c.executeSql("SELECT key FROM "+d.kb+" WHERE id = ? LIMIT 1",[a+1],function(a,c){var e=c.rows.length?c.rows.item(0).key:null;b(e)},function(a,b){e(b)})})})["catch"](e)});return x(e,b),e}function v(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var e=b.ib;e.db.transaction(function(b){b.executeSql("SELECT key FROM "+e.kb,[],function(b,c){for(var e=[],d=0;d<c.rows.length;d++)e.push(c.rows.item(d).key);
a(e)},function(a,b){c(b)})})})["catch"](c)});return x(c,a),c}function x(a,b){b&&a.then(function(a){b(null,a)},function(a){b(a)})}var w=f.openDatabase;if(w)return{Pl:"webSQLStorage",ks:k,Hy:l,getItem:c,setItem:b,removeItem:a,clear:g,length:e,key:h,keys:v}}("undefined"!=typeof window?window:self);f.dg=l["default"]}])};"object"==typeof exports&&"object"==typeof module?module.dg=Ic():"function"==typeof define&&define.wL?define([],Ic):"object"==typeof exports?exports.localforage=Ic():this.localforage=
Ic()}catch(Jc){Hc=!0}function Kc(f){this.j=f}
(function(){function f(){}function l(){}function d(){}var m="",k="",c="";"undefined"!==typeof window.is_scirra_arcade&&(c="sa"+window.scirra_arcade_id+"_");var q=Kc.prototype;q.J=function(a){this.Z=a;this.j=a.j};q.J.prototype.H=function(){};q.G=function(a){this.type=a;this.j=a.j};var b=q.G.prototype;b.H=function(){this.Bu=this.Cu=0};b.Mc=function(){};b.ya=function(){return{}};b.Ga=function(){};f.prototype.mw=function(a){return m===a};f.prototype.AC=function(){return!0};f.prototype.lw=function(a){return m===
a};f.prototype.zC=function(){return!0};f.prototype.po=function(){return!0};f.prototype.Ir=function(a,b){return kc(k,a,b)};f.prototype.xC=function(){return!0};f.prototype.wC=function(){return!0};q.m=new f;l.prototype.UD=function(a,b){if(Hc)this.j.trigger(Kc.prototype.m.po,this);else{var e=c+a;this.Cu++;var d=this;localforage.setItem(e,b,function(b,c){d.Cu--;b?d.j.trigger(Kc.prototype.m.po,d):(m=a,k=c,d.j.trigger(Kc.prototype.m.AC,d),d.j.trigger(Kc.prototype.m.mw,d),k=m="");0===d.Cu&&d.j.trigger(Kc.prototype.m.xC,
d)})}};l.prototype.JB=function(a){if(Hc)this.j.trigger(Kc.prototype.m.po,this);else{var b=c+a;this.Bu++;var e=this;localforage.getItem(b,function(b,c){e.Bu--;if(b)e.j.trigger(Kc.prototype.m.po,e);else{m=a;k=c;if("undefined"===typeof k||null===k)k="";e.j.trigger(Kc.prototype.m.zC,e);e.j.trigger(Kc.prototype.m.lw,e);k=m=""}0===e.Bu&&e.j.trigger(Kc.prototype.m.wC,e)})}};q.A=new l;d.prototype.lC=function(a){a.Jd(k)};q.D=new d})();function Lc(f){this.j=f}
(function(){function f(){}function l(){}var d=Lc.prototype;d.J=function(c){this.Z=c;this.j=c.j};d.J.prototype.H=function(){};d.G=function(c){this.type=c;this.j=c.j;this.jk=Array(4);this.FA=this.or=this.Uj=this.rg=this.qg=0;this.Bt=!1};var m=d.G.prototype;m.H=function(){var c=this;if(!this.j.ob){jQuery(document).mousemove(function(b){c.Fj(b)});jQuery(document).mousedown(function(b){c.Ej(b)});jQuery(document).mouseup(function(b){c.Gj(b)});jQuery(document).dblclick(function(b){c.GI(b)});var d=function(b){c.MI(b)};
document.addEventListener("mousewheel",d,!1);document.addEventListener("DOMMouseScroll",d,!1)}};var k={left:0,top:0};m.Fj=function(c){var d=this.j.ob?k:jQuery(this.j.canvas).offset();this.qg=c.pageX-d.left;this.rg=c.pageY-d.top};m.qz=function(){return 0<this.j.ad?!0:0<=this.qg&&0<=this.rg&&this.qg<this.j.width&&this.rg<this.j.height};m.Ej=function(c){this.qz()&&(this.jk[c.which]=!0,this.j.$a=!0,this.j.trigger(Lc.prototype.m.yC,this),this.Uj=c.which-1,this.or=0,this.j.trigger(Lc.prototype.m.Cl,this),
this.j.trigger(Lc.prototype.m.xw,this),this.j.$a=!1)};m.Gj=function(c){this.jk[c.which]&&(this.j.cj&&!this.j.le&&c.preventDefault(),this.j.cj=!0,this.jk[c.which]=!1,this.j.$a=!0,this.Uj=c.which-1,this.j.trigger(Lc.prototype.m.yw,this),this.j.$a=!1)};m.GI=function(c){this.qz()&&(c.preventDefault(),this.j.$a=!0,this.Uj=c.which-1,this.or=1,this.j.trigger(Lc.prototype.m.Cl,this),this.j.trigger(Lc.prototype.m.xw,this),this.j.$a=!1)};m.MI=function(c){this.FA=0>(c.wheelDelta?c.wheelDelta:c.detail?-c.detail:
0)?0:1;this.Bt=!1;this.j.$a=!0;this.j.trigger(Lc.prototype.m.qD,this);this.j.$a=!1;this.Bt&&nb(c)&&c.preventDefault()};m.ri=function(){var c,d;c=0;for(d=this.jk.length;c<d;++c)this.jk[c]&&(this.jk[c]=!1,this.Uj=c-1,this.j.trigger(Lc.prototype.m.yw,this))};f.prototype.Cl=function(c,d){return c===this.Uj&&d===this.or};f.prototype.yC=function(){return!0};f.prototype.yw=function(c){return c===this.Uj};f.prototype.hC=function(c){var d=this.j.$i();return Va(this.j.Of(c,this.qg,this.rg,d.ij),d.ij)};f.prototype.xw=
function(c,d,b){return c!==this.Uj||d!==this.or?!1:this.j.Of(b,this.qg,this.rg,!1)};f.prototype.qD=function(c){this.Bt=!0;return c===this.FA};d.m=new f;d.A=new function(){};l.prototype.Gg=function(c,d){var b,a,g,e,k;ia(d)?(b=this.j.Pa(0),a=b.scale,g=b.V,e=b.Na,k=b.C,b.scale=1,b.V=1,b.Na=1,b.C=0,c.B(b.W(this.qg,this.rg,!0)),b.scale=a,b.V=g,b.Na=e,b.C=k):(b=A(d)?this.j.Pa(d):this.j.cd(d))?c.B(b.W(this.qg,this.rg,!0)):c.B(0)};l.prototype.Hg=function(c,d){var b,a,g,e,k;ia(d)?(b=this.j.Pa(0),a=b.scale,
g=b.V,e=b.mb,k=b.C,b.scale=1,b.V=1,b.mb=1,b.C=0,c.B(b.W(this.qg,this.rg,!1)),b.scale=a,b.V=g,b.mb=e,b.C=k):(b=A(d)?this.j.Pa(d):this.j.cd(d))?c.B(b.W(this.qg,this.rg,!1)):c.B(0)};l.prototype.eo=function(c){c.B(this.qg)};l.prototype.fo=function(c){c.B(this.rg)};d.D=new l})();function Mc(f){this.j=f}
(function(){function f(){}var l=Mc.prototype;l.J=function(d){this.Z=d;this.j=d.j};l.J.prototype.H=function(){};l.G=function(d){this.type=d;this.j=d.j};var d=l.G.prototype;d.H=function(){this.xE=this.q[0];this.FE=this.q[1];this.Qw=1==this.q[2];var d=this.q[3];this.j.Fh(this);this.Tj=this.$v=this.Zv=this.Rf=null;this.EA=isNaN(d)?d:parseInt(d);this.Ms=this.Ls=this.yu=this.xu=0;this.Hs=this.Ut=!1;this.lg=[!1,!1,!1,!1];this.Rz=0;this.eJ=[Mc.prototype.m.cD,Mc.prototype.m.FC,Mc.prototype.m.TC,Mc.prototype.m.mD];
this.nJ=[Mc.prototype.m.dD,Mc.prototype.m.GC,Mc.prototype.m.UC,Mc.prototype.m.nD]};d.Ll=function(){if(null!=this.Rf)return this.Rf;var d=this.j.types,c,f;for(c in d)if(f=d[c].n[0],f instanceof Nc.prototype.G)return this.Rf=f,this.Zv=Nc.prototype.D.bk,this.$v=Nc.prototype.D.ck,this.Rf.aw(this),this.Rf};d.qf=function(d){this.Hs?this.Hs=!1:(this.Ut=!0,this.Tj=d,this.xu=this.hy(),this.yu=this.iy(),this.j.trigger(Mc.prototype.m.IC,this))};d.pf=function(d){d==this.Tj&&(this.Tj=null,this.Ut=!1,this.dk(0),
this.j.trigger(Mc.prototype.m.HC,this))};d.hy=function(){if(null===this.Tj)return 0;var d=this.Ll();this.Zv.call(d,d.lb,this.Tj,this.EA);return d.lb.value};d.iy=function(){if(null===this.Tj)return 0;var d=this.Ll();this.$v.call(d,d.lb,this.Tj,this.EA);return d.lb.value};d.Ba=function(){this.Hs=!1;if(null!=this.Ll()&&this.Ut){this.Ls=this.hy();this.Ms=this.iy();var d=this.Ls-this.xu,c=this.Ms-this.yu;if(Math.sqrt(d*d+c*c)>=this.FE){d=Ma(Math.atan2(c,d));switch(this.xE){case 0:this.dk(180>d?2:8);break;
case 1:this.dk(90<d&&270>=d?4:1);break;case 2:this.dk(45<d&&135>=d?2:135<d&&225>=d?4:225<d&&315>=d?8:1);break;case 3:this.dk(22.5<d&&67.5>=d?3:67.5<d&&112.5>=d?2:112.5<d&&157.5>=d?6:157.5<d&&202.5>=d?4:202.5<d&&247.5>=d?12:247.5<d&&292.5>=d?8:292.5<d&&337.5>=d?9:1)}this.Qw&&(this.xu=this.Ls,this.yu=this.Ms)}else this.Qw||this.dk(0)}};var m=[1,2,4,8];d.dk=function(d){if(this.Rz!=d){var c;for(c=0;4>c;c++){var f=0!=(m[c]&d);this.lg[c]&&!f&&this.j.trigger(this.nJ[c],this)}var b=!1;for(c=0;4>c;c++)f=0!=
(m[c]&d),!this.lg[c]&&f&&(this.j.trigger(this.eJ[c],this),b=!0),this.lg[c]=f;b&&this.j.trigger(Mc.prototype.m.Nr,this);this.Rz=d}};l.m=new f;f.prototype.mD=function(){return!0};f.prototype.FC=function(){return!0};f.prototype.TC=function(){return!0};f.prototype.cD=function(){return!0};f.prototype.nD=function(){return!0};f.prototype.GC=function(){return!0};f.prototype.UC=function(){return!0};f.prototype.dD=function(){return!0};f.prototype.IC=function(){return!0};f.prototype.HC=function(){return!0};
l.A=new function(){};l.D=new function(){}})();function Y(f){this.j=f}
(function(){function f(){if(0===this.Ps.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.pl?b.drawImage(this.ba,this.Zk,this.$k,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.ba,0,0,this.width,this.height);this.Ps=a.toDataURL("image/png")}return this.Ps}function l(){}function d(a){a[0]=0;a[1]=0;a[2]=0;x.push(a)}function m(a,b){return a<b?""+a+","+b:""+b+","+a}function k(a,b,c,e){b=b.uid;c=c.uid;var d=m(b,c);if(a.hasOwnProperty(d))a[d][2]=
e;else{var g=x.length?x.pop():[0,0,0];g[0]=b;g[1]=c;g[2]=e;a[d]=g}}function c(a,b,c){b=m(b.uid,c.uid);a.hasOwnProperty(b)&&(d(a[b]),delete a[b])}function q(a,b,c){b=m(b.uid,c.uid);if(a.hasOwnProperty(b))return w=a[b][2],!0;w=-2;return!1}function b(){}function a(){}var g=Y.prototype;g.J=function(a){this.Z=a;this.j=a.j};var e=g.J.prototype;e.H=function(){if(!this.U){var a,b,c,e,d,g,k,h,p;this.sf=[];this.Dm=!1;a=0;for(b=this.be.length;a<b;a++){d=this.be[a];k={};k.name=d[0];k.speed=d[1];k.loop=d[2];k.Ru=
d[3];k.Su=d[4];k.rh=d[5];k.Oa=d[6];k.frames=[];c=0;for(e=d[7].length;c<e;c++)g=d[7][c],h={},h.Pn=g[0],h.lv=g[1],h.Zk=g[2],h.$k=g[3],h.width=g[4],h.height=g[5],h.duration=g[6],h.Dd=g[7],h.Ed=g[8],h.Ft=g[9],h.Aq=g[10],h.Lz=g[11],h.pl=0!==h.width,h.Ps="",h.zL=f,p={left:0,top:0,right:1,bottom:1},h.bv=p,h.ca=null,(p=this.j.MG(g[0]))?h.ba=p:(h.ba=new Image,h.ba.oF=g[0],h.ba.Js=g[1],h.ba.XE=null,this.j.Ar(h.ba,g[0])),k.frames.push(h),this.sf.push(h);this.be[a]=k}}};e.NA=function(){var a,b,c;a=0;for(b=this.n.length;a<
b;a++)c=this.n[a],c.Wo=c.tb.ca};e.oi=function(){if(!this.U){var a,b,c;a=0;for(b=this.sf.length;a<b;++a)c=this.sf[a],c.ba.XE=null,c.ca=null;this.Dm=!1;this.NA()}};e.al=function(){if(!this.U&&this.n.length){var a,b,c;a=0;for(b=this.sf.length;a<b;++a)c=this.sf[a],c.ca=this.j.K.Ok(c.ba,this.j.pb,c.Lz);this.NA()}};e.Uy=function(){if(!this.U&&!this.Dm&&this.j.K){var a,b,c;a=0;for(b=this.sf.length;a<b;++a)c=this.sf[a],c.ca=this.j.K.Ok(c.ba,this.j.pb,c.Lz);this.Dm=!0}};e.Sn=function(){if(!this.U&&!this.n.length&&
this.Dm){var a,b,c;a=0;for(b=this.sf.length;a<b;++a)c=this.sf[a],this.j.K.deleteTexture(c.ca),c.ca=null;this.Dm=!1}};var h=[];e.tn=function(a){var b,c,e;M(h);b=0;for(c=this.sf.length;b<c;++b)e=this.sf[b].ba,-1===h.indexOf(e)&&(a.drawImage(e,0,0),h.push(e))};g.G=function(a){this.type=a;this.j=a.j;a=this.type.be[0].frames[0].Aq;this.Vb?this.ma.Fn(a):this.ma=new gb(a)};var v=g.G.prototype;v.H=function(){this.visible=0===this.q[0];this.Fm=this.dh=!1;this.Be=0!==this.q[3];this.Bb=this.Rx(this.q[1])||this.type.be[0];
this.Y=this.q[2];0>this.Y&&(this.Y=0);this.Y>=this.Bb.frames.length&&(this.Y=this.Bb.frames.length-1);var a=this.Bb.frames[this.Y];this.ma.Fn(a.Aq);this.Dd=a.Dd;this.Ed=a.Ed;this.zf=this.Bb.speed;this.Wh=this.Bb.Su;1===this.type.be.length&&1===this.type.be[0].frames.length||0===this.zf||(this.j.Fh(this),this.dh=!0);this.Vb?this.uf.reset():this.uf=new eb;this.hg=this.uf.na;this.Kg=!0;this.Lg=0;this.Qh=!0;this.kk=this.Xw="";this.qx=0;this.cm=-1;this.type.Uy();var b,c,e,d,g,h,k,a=0;for(b=this.type.be.length;a<
b;a++)for(d=this.type.be[a],c=0,e=d.frames.length;c<e;c++)g=d.frames[c],0===g.width&&(g.width=g.ba.width,g.height=g.ba.height),g.pl&&(k=g.ba,h=g.bv,h.left=g.Zk/k.width,h.top=g.$k/k.height,h.right=(g.Zk+g.width)/k.width,h.bottom=(g.$k+g.height)/k.height,0===g.Zk&&0===g.$k&&g.width===k.width&&g.height===k.height&&(g.pl=!1));this.tb=this.Bb.frames[this.Y];this.Wo=this.tb.ca};v.ya=function(){var a={a:this.Bb.Oa,f:this.Y,cas:this.zf,fs:this.hg,ar:this.Lg,at:this.uf.na,rt:this.Wh};this.Kg||(a.ap=this.Kg);
this.Qh||(a.af=this.Qh);return a};v.Ga=function(a){var b=this.TG(a.a);b&&(this.Bb=b);this.Y=a.f;0>this.Y&&(this.Y=0);this.Y>=this.Bb.frames.length&&(this.Y=this.Bb.frames.length-1);this.zf=a.cas;this.hg=a.fs;this.Lg=a.ar;this.uf.reset();this.uf.na=a.at;this.Kg=a.hasOwnProperty("ap")?a.ap:!0;this.Qh=a.hasOwnProperty("af")?a.af:!0;a.hasOwnProperty("rt")?this.Wh=a.rt:this.Wh=this.Bb.Su;this.tb=this.Bb.frames[this.Y];this.Wo=this.tb.ca;this.ma.Fn(this.tb.Aq);this.Dd=this.tb.Dd;this.Ed=this.tb.Ed};v.ws=
function(a){this.Y=a?0:this.Bb.frames.length-1;this.Kg=!1;this.Xw=this.Bb.name;this.Fm=!0;this.j.trigger(Y.prototype.m.hw,this);this.j.trigger(Y.prototype.m.gw,this);this.Fm=!1;this.Lg=0};v.cc=function(){return this.uf.na};v.Ba=function(){this.uf.add(this.j.Cf(this));this.kk.length&&this.Cx();0<=this.cm&&this.Ss();var a=this.uf.na,b=this.Bb,c=b.frames[this.Y],e=c.duration/this.zf;this.Kg&&a>=this.hg+e&&(this.Qh?this.Y++:this.Y--,this.hg+=e,this.Y>=b.frames.length&&(b.rh?(this.Qh=!1,this.Y=b.frames.length-
2):b.loop?this.Y=this.Wh:(this.Lg++,this.Lg>=b.Ru?this.ws(!1):this.Y=this.Wh)),0>this.Y&&(b.rh?(this.Y=1,this.Qh=!0,b.loop||(this.Lg++,this.Lg>=b.Ru&&this.ws(!0))):b.loop?this.Y=this.Wh:(this.Lg++,this.Lg>=b.Ru?this.ws(!0):this.Y=this.Wh)),0>this.Y?this.Y=0:this.Y>=b.frames.length&&(this.Y=b.frames.length-1),a>this.hg+b.frames[this.Y].duration/this.zf&&(this.hg=a),a=b.frames[this.Y],this.$j(c,a),this.j.aa=!0)};v.Rx=function(a){var b,c,e;b=0;for(c=this.type.be.length;b<c;b++)if(e=this.type.be[b],mb(e.name,
a))return e;return null};v.TG=function(a){var b,c,e;b=0;for(c=this.type.be.length;b<c;b++)if(e=this.type.be[b],e.Oa===a)return e;return null};v.Cx=function(){var a=this.Bb.frames[this.Y],b=this.Rx(this.kk);this.kk="";!b||mb(b.name,this.Bb.name)&&this.Kg||(this.Bb=b,this.zf=b.speed,this.Wh=b.Su,0>this.Y&&(this.Y=0),this.Y>=this.Bb.frames.length&&(this.Y=this.Bb.frames.length-1),1===this.qx&&(this.Y=0),this.Kg=!0,this.hg=this.uf.na,this.Qh=!0,this.$j(a,this.Bb.frames[this.Y]),this.j.aa=!0)};v.Ss=function(){var a=
this.Bb.frames[this.Y],b=this.Y;this.Y=ra(this.cm);0>this.Y&&(this.Y=0);this.Y>=this.Bb.frames.length&&(this.Y=this.Bb.frames.length-1);b!==this.Y&&(this.$j(a,this.Bb.frames[this.Y]),this.hg=this.uf.na,this.j.aa=!0);this.cm=-1};v.$j=function(a,b){var c=a.width,e=a.height,d=b.width,g=b.height;c!=d&&(this.width*=d/c);e!=g&&(this.height*=g/e);this.Dd=b.Dd;this.Ed=b.Ed;this.ma.Fn(b.Aq);this.L();this.tb=b;this.Wo=b.ca;c=0;for(e=this.X.length;c<e;c++)d=this.X[c],d.Bz&&d.Bz(a,b);this.j.trigger(Y.prototype.m.$j,
this)};v.$c=function(a){a.globalAlpha=this.opacity;var b=this.tb,c=b.pl,e=b.ba,d=this.x,g=this.y,h=this.width,k=this.height;if(0===this.C&&0<=h&&0<=k)d-=this.Dd*h,g-=this.Ed*k,this.j.vd&&(d=Math.round(d),g=Math.round(g)),c?a.drawImage(e,b.Zk,b.$k,b.width,b.height,d,g,h,k):a.drawImage(e,d,g,h,k);else{this.j.vd&&(d=Math.round(d),g=Math.round(g));a.save();var f=0<h?1:-1,p=0<k?1:-1;a.translate(d,g);1===f&&1===p||a.scale(f,p);a.rotate(this.C*f*p);d=0-this.Dd*na(h);g=0-this.Ed*na(k);c?a.drawImage(e,b.Zk,
b.$k,b.width,b.height,d,g,na(h),na(k)):a.drawImage(e,d,g,na(h),na(k));a.restore()}};v.Ri=function(a){this.Rc(a)};v.Rc=function(a){a.Xb(this.Wo);a.Lf(this.opacity);var b=this.tb,c=this.Pb;if(this.j.vd){var e=Math.round(this.x)-this.x,d=Math.round(this.y)-this.y;b.pl?a.gf(c.cb+e,c.eb+d,c.Db+e,c.Eb+d,c.yb+e,c.zb+d,c.wb+e,c.xb+d,b.bv):a.Kj(c.cb+e,c.eb+d,c.Db+e,c.Eb+d,c.yb+e,c.zb+d,c.wb+e,c.xb+d)}else b.pl?a.gf(c.cb,c.eb,c.Db,c.Eb,c.yb,c.zb,c.wb,c.xb,b.bv):a.Kj(c.cb,c.eb,c.Db,c.Eb,c.yb,c.zb,c.wb,c.xb)};
v.cH=function(a){var b=this.tb,c,e;c=0;for(e=b.Ft.length;c<e;c++)if(mb(a,b.Ft[c][0]))return c;return-1};v.Fe=function(a,b){var c=this.tb,e=c.Ft,d;ja(a)?d=this.cH(a):d=a-1;d=ra(d);if(0>d||d>=e.length)return b?this.x:this.y;var g=(e[d][1]-c.Dd)*this.width,e=e[d][2],e=(e-c.Ed)*this.height,c=Math.cos(this.C);d=Math.sin(this.C);var h=g*c-e*d,e=e*c+g*d,g=h+this.x,e=e+this.y;return b?g:e};var x=[],w=-2,r=[];l.prototype.EC=function(a){if(!a)return!1;var b=this.j,e=b.$i(),g=e.type,h=null;e.R.collmemory?h=
e.R.collmemory:(h={},e.R.collmemory=h);e.R.spriteCreatedDestroyCallback||(e.R.spriteCreatedDestroyCallback=!0,b.gk(function(a){var b=e.R.collmemory;a=a.uid;var c,g;for(c in b)b.hasOwnProperty(c)&&(g=b[c],g[0]===a||g[1]===a)&&(d(b[c]),delete b[c])}));var f=g.la(),p=a.la(),f=f.Cd(),n,m,l,t,G,W,v,x=this.j.xe,z=x-1,I=b.Cb().Fb;for(m=0;m<f.length;m++){l=f[m];p.pa?(l.da(),this.j.it(l.F,a,l.ea,r),n=r):n=p.Cd();for(t=0;t<n.length;t++)G=n[t],b.zc(l,G)||b.fF(l,G)?(W=q(h,l,G),W=!W||w<z,k(h,l,G,x),W&&(b.xg(I.za),
W=g.la(),v=a.la(),W.pa=!1,v.pa=!1,g===a?(W.n.length=2,W.n[0]=l,W.n[1]=G,g.de()):(W.n.length=1,v.n.length=1,W.n[0]=l,v.n[0]=G,g.de(),a.de()),I.xh(),b.Qe(I.za))):c(h,l,G);M(r)}return!1};var t=null,n=new ca,p=!1,G=[],W=new wa(0,0,0,0);e.finish=function(a){if(p){if(a){var b=this.j.Cb().Fb.Oe;a=t.la();var c=n.Md(),e,d;if(a.pa){a.pa=!1;M(a.n);e=0;for(d=c.length;e<d;++e)a.n[e]=c[e];if(b)for(M(a.wa),e=0,d=t.n.length;e<d;++e)c=t.n[e],n.contains(c)||a.wa.push(c)}else if(b)for(b=a.n.length,e=0,d=c.length;e<
d;++e)a.n[b+e]=c[e],Ga(a.wa,c[e]);else Ca(a.n,c);t.de()}n.clear();p=!1}};l.prototype.iC=function(a){if(a){var b=!1,c,e,d,g=this.j.$i(),h=g.type,g=g.ij;c=a.la();e=this.j.Cb().Fb.Oe;var k;c.pa?(this.da(),W.Vh(this.ea),W.offset(0,0),this.j.it(this.F,a,W,G),k=G):k=e?this.j.TH()&&!c.wa.length&&c.n.length?c.n:c.wa:c.n;t=a;p=h!==a&&!g;c=0;for(e=k.length;c<e;c++)if(d=k[c],this.j.zc(this,d)){b=!0;if(g)break;h!==a&&n.add(d)}M(G);a=b}else a=!1;return a};l.prototype.WB=function(a){return this.kk.length?mb(this.kk,
a):mb(this.Bb.name,a)};l.prototype.kB=function(a,b){return kc(this.Y,a,b)};l.prototype.gw=function(a){return mb(this.Xw,a)};l.prototype.hw=function(){return!0};l.prototype.$j=function(){return!0};l.prototype.dw=function(){return 0>this.width};g.m=new l;b.prototype.iE=function(a,b,c){if(a&&b&&(b=this.j.gm(a,b,this.Fe(c,!0),this.Fe(c,!1)))){"undefined"!==typeof b.C&&(b.C=this.C,b.L());this.j.Ke++;var e,d,g;this.j.trigger(Object.getPrototypeOf(a.Z).m.Gi,b);if(b.ed)for(e=0,d=b.siblings.length;e<d;e++)g=
b.siblings[e],this.j.trigger(Object.getPrototypeOf(g.type.Z).m.Gi,g);this.j.Ke--;e=this.j.WG();c=!1;if(ia(e.R.Spawn_LastExec)||e.R.Spawn_LastExec<this.j.Xi)c=!0,e.R.Spawn_LastExec=this.j.Xi;if(a!=this.type&&(a=a.la(),a.pa=!1,c?(M(a.n),a.n[0]=b):a.n.push(b),b.ed))for(e=0,d=b.siblings.length;e<d;e++)g=b.siblings[e],a=g.type.la(),a.pa=!1,c?(M(a.n),a.n[0]=g):a.n.push(g)}};b.prototype.nE=function(){this.Kg=!1};b.prototype.kE=function(a){this.Kg=!0;this.hg=this.uf.na;1===a&&0!==this.Y&&(this.cm=0,this.Fm||
this.Ss());this.dh||(this.j.Fh(this),this.dh=!0)};b.prototype.Ew=function(a,b){this.kk=a;this.qx=b;this.dh||(this.j.Fh(this),this.dh=!0);this.Fm||this.Cx()};b.prototype.Fw=function(a){this.cm=a;this.dh||(this.j.Fh(this),this.dh=!0);this.Fm||this.Ss()};b.prototype.LD=function(a){this.zf=na(a);this.Qh=0<=a;this.dh||(this.j.Fh(this),this.dh=!0)};b.prototype.Wr=function(a){a=na(this.width)*(0===a?-1:1);this.width!==a&&(this.width=a,this.L())};b.prototype.uo=function(a){var b=this.tb,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.L()};b.prototype.MD=function(a){this.Be!==(0!==a)&&((this.Be=0!==a)?this.L():(this.Xe.right>=this.Xe.left&&this.type.em.update(this,this.Xe,null),this.Xe.set(0,0,-1,-1)))};g.A=new b;a.prototype.bB=function(a){a.O(this.Y)};a.prototype.cB=function(a){a.sb(this.Bb.name)};a.prototype.RB=function(a,b){a.B(this.Fe(b,!0))};a.prototype.SB=function(a,b){a.B(this.Fe(b,!1))};a.prototype.TB=function(a){a.B(this.tb.width)};
g.D=new a})();function Oc(f){this.j=f}
(function(){function f(a,b){return a.length?a.pop():new b}function l(b,c,e){if(e){var d;e=0;for(d=c.length;e<d;e++)b.length<a&&b.push(c[e]);c.length=0}else for(d in c)Object.prototype.hasOwnProperty.call(c,d)&&(b.length<a&&b.push(c[d]),delete c[d])}function d(a,b,c){var e=a.fa;c=c.replace(/\s\s*$/,"");b>=e.length&&e.push(f(g,Object));b=e[b];b.text=c;b.width=a.yj(c);a.Ac=oa(a.Ac,b.width)}function m(){}function k(){}function c(){}var q=Oc.prototype;q.H=function(){};q.J=function(a){this.Z=a;this.j=a.j};
var b=q.J.prototype;b.H=function(){this.U||(this.ba=new Image,this.ba.idtkLoadDisposed=!0,this.ba.src=this.Pn,this.j.Wj.push(this.ba),this.ca=null)};b.oi=function(){this.U||(this.ca=null)};b.al=function(){if(!this.U&&this.n.length){this.ca||(this.ca=this.j.K.Ok(this.ba,this.j.pb,this.Qn));var a,b;a=0;for(b=this.n.length;a<b;a++)this.n[a].ca=this.ca}};b.Sn=function(){this.U||this.n.length||!this.ca||(this.j.K.deleteTexture(this.ca),this.ca=null)};b.tn=function(a){a.drawImage(this.ba,0,0)};q.G=function(a){this.type=
a;this.j=a.j};b=q.G.prototype;b.Mc=function(){l(g,this.fa,!0);l(e,this.Og,!1);l(h,this.Pg,!1);Xa(this.Ec)};b.H=function(){this.ba=this.type.ba;this.Ng=this.q[0];this.md=this.q[1];this.characterSet=this.q[2];this.text=this.q[3];this.kc=this.q[4];this.visible=0===this.q[5];this.rd=this.q[6]/2;this.xd=this.q[7]/2;this.Vf=0===this.q[9];this.Ae=this.q[10];this.lineHeight=this.q[11];this.$b=this.Ac=0;this.dm=this.q[12];this.rA=this.q[13];console.log(this.dm);this.Vb?(this.fa.length=0,Xa(this.Og),Xa(this.Pg),
Xa(this.Ec)):(this.fa=[],this.Og={},this.Pg={},this.Ec={});try{if(this.dm)if(-1!==this.dm.indexOf('""c2array""'))for(var a=jQuery.parseJSON(this.dm.replace(/""/g,'"')),b=a.size[1],c=0;c<b;c++)for(var e=a.data[1][c][0],d=a.data[0][c][0],g=0;g<e.length;g++)this.Ec[e.charAt(g)]=d;else for(a=jQuery.parseJSON(this.dm),b=a.length,c=0;c<b;c++)for(e=a[c][1],d=a[c][0],g=0;g<e.length;g++)this.Ec[e.charAt(g)]=d;-1!==this.rA&&(this.Ec[" "]=this.rA)}catch(h){window.console&&window.console.log&&window.console.log("SpriteFont+ Failure: "+
h)}this.Aa=!0;this.Vc=this.width;this.j.K&&(this.type.ca||(this.type.ca=this.j.K.Ok(this.type.ba,this.j.pb,this.type.Qn)),this.ca=this.type.ca);this.as()};b.ya=function(){var a={t:this.text,csc:this.kc,csp:this.Ae,lh:this.lineHeight,tw:this.Ac,th:this.$b,lrt:this.Qd,cw:{}},b;for(b in this.Ec)a.cw[b]=this.Ec[b];return a};b.Ga=function(a){this.text=a.t;this.kc=a.csc;this.Ae=a.csp;this.lineHeight=a.lh;this.Ac=a.tw;this.$b=a.th;this.Qd=a.lrt;for(var b in a.cw)this.Ec[b]=a.cw[b];this.Aa=!0;this.Vc=this.width};
var a=1E3,g=[],e=[],h=[];b.as=function(){for(var a=this.ba,b=a.width,c=a.height,a=this.Ng,d=this.md,g=a/b,k=d/c,l=this.characterSet,b=Math.floor(b/a),c=Math.floor(c/d),m=0;m<l.length&&!(m>=b*c);m++){var q=m%b,y=Math.floor(m/b),D=l.charAt(m);if(this.j.K){var u=this.Pg,v=q*g,x=y*k,q=(q+1)*g,y=(y+1)*k;void 0===u[D]&&(u[D]=f(h,wa));u[D].left=v;u[D].top=x;u[D].right=q;u[D].bottom=y}else u=this.Og,q=q*a,y=y*d,v=a,x=d,void 0===u[D]&&(u[D]=f(e,Object)),u[D].x=q,u[D].y=y,u[D].Vj=v,u[D].bj=x}};var v=[];q.Kl=
function(a){v.length=0;for(var b="",c,e=0;e<a.length;)if(c=a.charAt(e),"\n"===c)b.length&&(v.push(b),b=""),v.push("\n"),++e;else if(" "===c||"\t"===c||"-"===c){do b+=a.charAt(e),e++;while(e<a.length&&(" "===a.charAt(e)||"\t"===a.charAt(e)));v.push(b);b=""}else e<a.length&&(b+=c,e++);b.length&&v.push(b)};q.Nl=function(a){var b=a.text,c=a.fa;if(b&&b.length){var e=a.width;if(2>=e)l(g,c,!0);else{var d=a.kc,h=a.Ae;if(b.length*(a.Ng*d+h)-h<=e&&-1===b.indexOf("\n")&&(h=a.yj(b),h<=e)){l(g,c,!0);c.push(f(g,
Object));c[0].text=b;c[0].width=h;a.Ac=h;a.$b=a.md*d+a.lineHeight;return}this.Ol(a);a.$b=c.length*(a.md*d+a.lineHeight)}}else l(g,c,!0)};q.Ol=function(b){var c=b.Vf,e=b.text,h=b.fa,k=b.width;c&&(this.Kl(e),e=v);var f="",l,m,q,y=0,D=!1;for(q=0;q<e.length;q++)"\n"===e[q]?(!0===D?D=!1:(d(b,y,f),y++),f=""):(D=!1,l=f,f+=e[q],m=b.yj(f.replace(/\s\s*$/,"")),m>k&&(""===l?(d(b,y,f),f="",D=!0):(d(b,y,l),f=e[q]),y++,c||" "!==f||(f="")));f.replace(/\s\s*$/,"").length&&(d(b,y,f),y++);for(q=y;q<h.length;q++)g.length<
a&&g.push(h[q]);h.length=y};b.yj=function(a){for(var b=this.Ae,c=a.length,e=0,d=0;d<c;d++)e+=this.Yg(a.charAt(d))*this.kc+b;return e-(0<e?b:0)};b.Yg=function(a){var b=this.Ec;return void 0!==b[a]?b[a]:this.Ng};b.vh=function(){if(this.Aa||this.width!==this.Vc)this.$b=this.Ac=0,this.type.Z.Nl(this),this.Aa=!1,this.Vc=this.width};b.$c=function(a){var b=this.ba;if(""!==this.text&&null!=b&&(this.vh(),!(this.height<this.md*this.kc+this.lineHeight))){a.globalAlpha=this.opacity;var b=this.x,c=this.y;this.j.vd&&
(b=b+.5|0,c=c+.5|0);a.save();a.translate(b,c);a.rotate(this.C);for(var b=this.rd,c=this.kc,e=this.md*c,d=this.lineHeight,g=this.Ae,h=this.fa,k,f=-(this.Dd*this.width),l=-(this.Ed*this.height),l=l+this.xd*oa(0,this.height-this.$b),m=0;m<h.length;m++){var q=h[m].text;k=b*oa(0,this.width-h[m].width);k=f+k;for(var l=l+d,v=0;v<q.length;v++){var x=q.charAt(v),J=this.Og[x];if(k+this.Yg(x)*c>this.width+1E-5)break;void 0!==J&&a.drawImage(this.ba,J.x,J.y,J.Vj,J.bj,Math.round(k),Math.round(l),J.Vj*c,J.bj*c);
k+=this.Yg(x)*c+g}l+=e;if(l+e+d>this.height)break}a.restore()}};var x=new xa;b.Rc=function(a){a.Xb(this.ca);a.Lf(this.opacity);if(""!==this.text&&(this.vh(),!(this.height<this.md*this.kc+this.lineHeight))){this.da();var b=this.Pb,c=0,e=0;this.j.vd&&(c=(this.x+.5|0)-this.x,e=(this.y+.5|0)-this.y);var d=this.C,g=this.rd,h=this.xd,k=this.kc,f=this.md*k,l=this.lineHeight,m=this.Ae,q=this.fa,v=this.$b,F,J;0!==d&&(F=Math.cos(d),J=Math.sin(d));for(var X,c=b.cb+c,b=b.eb+e,h=h*oa(0,this.height-v),v=0;v<q.length;v++){e=
q[v].text;X=g*oa(0,this.width-q[v].width);for(var h=h+l,N=0;N<e.length;N++){var E=e.charAt(N),Q=this.Pg[E];if(X+this.Yg(E)*k>this.width+1E-5)break;if(void 0!==Q){var H=this.Ng*k,K=this.md*k;x.cb=X;x.eb=h;x.Db=X+H;x.Eb=h;x.wb=X;x.xb=h+K;x.yb=X+H;x.zb=h+K;if(0!==d){var H=x,K=F,B=J,z=void 0,z=H.cb*K-H.eb*B;H.eb=H.eb*K+H.cb*B;H.cb=z;z=H.Db*K-H.Eb*B;H.Eb=H.Eb*K+H.Db*B;H.Db=z;z=H.wb*K-H.xb*B;H.xb=H.xb*K+H.wb*B;H.wb=z;z=H.yb*K-H.zb*B;H.zb=H.zb*K+H.yb*B;H.yb=z}x.offset(c,b);a.gf(x.cb,x.eb,x.Db,x.Eb,x.yb,
x.zb,x.wb,x.xb,Q)}X+=this.Yg(E)*k+m}h+=f;if(h+f+l>this.height)break}}};m.prototype.io=function(a,b){return b?this.text==a:mb(this.text,a)};q.m=new m;k.prototype.Ue=function(a){A(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.Aa=!0,this.j.aa=!0)};k.prototype.ho=function(a){A(a)&&(a=Math.round(1E10*a)/1E10);if(a=a.toString())this.text+=a,this.Aa=!0,this.j.aa=!0};k.prototype.uo=function(a){a!==this.kc&&(this.kc=a,this.Aa=!0,this.j.aa=!0)};b.cc=function(a,b){var c=
parseInt(b,10);this.Ec[a]!==c&&(this.Ec[a]=c,this.Aa=!0,this.j.aa=!0)};q.A=new k;c.prototype.Ii=function(a){this.vh();a.B(this.Ac)};c.prototype.Hi=function(a){this.vh();a.B(this.$b)};q.D=new c})();function Pc(f){this.j=f}
(function(){function f(a,b){return a.length?a.pop():new b}function l(b,c,e){if(e){var d;e=0;for(d=c.length;e<d;e++)b.length<a&&b.push(c[e]);M(c)}else for(d in c)Object.prototype.hasOwnProperty.call(c,d)&&(b.length<a&&b.push(c[d]),delete c[d])}function d(a,b,c){var e=a.fa;c=c.replace(/\s\s*$/,"");b>=e.length&&e.push(f(g,Object));b=e[b];b.text=c;b.width=a.yj(c);a.Ac=oa(a.Ac,b.width)}function m(){}function k(){}function c(){}var q=Pc.prototype;q.H=function(){};q.J=function(a){this.Z=a;this.j=a.j};var b=
q.J.prototype;b.H=function(){this.U||(this.ba=new Image,this.j.Ar(this.ba,this.Pn),this.ca=null)};b.oi=function(){this.U||(this.ca=null)};b.al=function(){if(!this.U&&this.n.length){this.ca||(this.ca=this.j.K.Ok(this.ba,this.j.pb,this.Qn));var a,b;a=0;for(b=this.n.length;a<b;a++)this.n[a].ca=this.ca}};b.Sn=function(){this.U||this.n.length||!this.ca||(this.j.K.deleteTexture(this.ca),this.ca=null)};b.tn=function(a){a.drawImage(this.ba,0,0)};q.G=function(a){this.type=a;this.j=a.j};b=q.G.prototype;b.Mc=
function(){l(g,this.fa,!0);l(e,this.Og,!1);l(h,this.Pg,!1);Xa(this.Ec)};b.H=function(){this.ba=this.type.ba;this.Ng=this.q[0];this.md=this.q[1];this.characterSet=this.q[2];this.text=this.q[3];this.kc=this.q[4];this.visible=0===this.q[5];this.rd=this.q[6]/2;this.xd=this.q[7]/2;this.Vf=0===this.q[9];this.Ae=this.q[10];this.lineHeight=this.q[11];this.$b=this.Ac=0;this.Vb?(M(this.fa),Xa(this.Og),Xa(this.Pg),Xa(this.Ec)):(this.fa=[],this.Og={},this.Pg={},this.Ec={});this.Aa=!0;this.Vc=this.width;this.j.K&&
(this.type.ca||(this.type.ca=this.j.K.Ok(this.type.ba,this.j.pb,this.type.Qn)),this.ca=this.type.ca);this.as()};b.ya=function(){var a={t:this.text,csc:this.kc,csp:this.Ae,lh:this.lineHeight,tw:this.Ac,th:this.$b,lrt:this.Qd,ha:this.rd,va:this.xd,cw:{}},b;for(b in this.Ec)a.cw[b]=this.Ec[b];return a};b.Ga=function(a){this.text=a.t;this.kc=a.csc;this.Ae=a.csp;this.lineHeight=a.lh;this.Ac=a.tw;this.$b=a.th;this.Qd=a.lrt;a.hasOwnProperty("ha")&&(this.rd=a.ha);a.hasOwnProperty("va")&&(this.xd=a.va);for(var b in a.cw)this.Ec[b]=
a.cw[b];this.Aa=!0;this.Vc=this.width};var a=1E3,g=[],e=[],h=[];b.as=function(){for(var a=this.ba,b=a.width,c=a.height,a=this.Ng,d=this.md,g=a/b,k=d/c,l=this.characterSet,b=Math.floor(b/a),c=Math.floor(c/d),m=0;m<l.length&&!(m>=b*c);m++){var q=m%b,y=Math.floor(m/b),v=l.charAt(m);if(this.j.K){var u=this.Pg,x=q*g,F=y*k,q=(q+1)*g,y=(y+1)*k;void 0===u[v]&&(u[v]=f(h,wa));u[v].left=x;u[v].top=F;u[v].right=q;u[v].bottom=y}else u=this.Og,q=q*a,y=y*d,x=a,F=d,void 0===u[v]&&(u[v]=f(e,Object)),u[v].x=q,u[v].y=
y,u[v].Vj=x,u[v].bj=F}};var v=[];q.Kl=function(a){M(v);for(var b="",c,e=0;e<a.length;)if(c=a.charAt(e),"\n"===c)b.length&&(v.push(b),b=""),v.push("\n"),++e;else if(" "===c||"\t"===c||"-"===c){do b+=a.charAt(e),e++;while(e<a.length&&(" "===a.charAt(e)||"\t"===a.charAt(e)));v.push(b);b=""}else e<a.length&&(b+=c,e++);b.length&&v.push(b)};q.Nl=function(a){var b=a.text,c=a.fa;if(b&&b.length){var e=a.width;if(2>=e)l(g,c,!0);else{var d=a.kc,h=a.Ae;if(b.length*(a.Ng*d+h)-h<=e&&-1===b.indexOf("\n")&&(h=a.yj(b),
h<=e)){l(g,c,!0);c.push(f(g,Object));c[0].text=b;c[0].width=h;a.Ac=h;a.$b=a.md*d+a.lineHeight;return}this.Ol(a);a.$b=c.length*(a.md*d+a.lineHeight)}}else l(g,c,!0)};q.Ol=function(b){var c=b.Vf,e=b.text,h=b.fa,k=b.width;c&&(this.Kl(e),e=v);var f="",l,m,q,y=0,x=!1;for(q=0;q<e.length;q++)"\n"===e[q]?(!0===x?x=!1:(d(b,y,f),y++),f=""):(x=!1,l=f,f+=e[q],m=b.yj(f.replace(/\s\s*$/,"")),m>k&&(""===l?(d(b,y,f),f="",x=!0):(d(b,y,l),f=e[q]),y++,c||" "!==f||(f="")));f.replace(/\s\s*$/,"").length&&(d(b,y,f),y++);
for(q=y;q<h.length;q++)g.length<a&&g.push(h[q]);h.length=y};b.yj=function(a){for(var b=this.Ae,c=a.length,e=0,d=0;d<c;d++)e+=this.Yg(a.charAt(d))*this.kc+b;return e-(0<e?b:0)};b.Yg=function(a){var b=this.Ec;return void 0!==b[a]?b[a]:this.Ng};b.vh=function(){if(this.Aa||this.width!==this.Vc)this.$b=this.Ac=0,this.type.Z.Nl(this),this.Aa=!1,this.Vc=this.width};b.$c=function(a){var b=this.ba;if(""!==this.text&&null!=b&&(this.vh(),!(this.height<this.md*this.kc+this.lineHeight))){a.globalAlpha=this.opacity;
var b=this.x,c=this.y;this.j.vd&&(b=Math.round(b),c=Math.round(c));var e=this.F.Ea,d=this.F.Fa,g=this.F.La,h=this.F.Ka;a.save();a.translate(b,c);a.rotate(this.C);for(var k=this.C,f=this.rd,l=this.kc,m=this.md*l,q=this.lineHeight,v=this.Ae,x=this.fa,J,X=-(this.Dd*this.width),N=-(this.Ed*this.height),N=N+this.xd*oa(0,this.height-this.$b),E,Q,H,K=0;K<x.length;K++){var B=x[K].text;J=f*oa(0,this.width-x[K].width);E=X+J;N+=q;if(0===k&&c+N+m<d)N+=m;else{for(var z=0;z<B.length;z++){Q=B.charAt(z);J=this.Yg(Q);
var I=this.Og[Q];if(0===k&&b+E+J*l+v<e)E+=J*l+v;else{if(E+J*l>this.width+1E-5)break;void 0!==I&&(Q=E,H=N,0===k&&1===l&&(Q=Math.round(Q),H=Math.round(H)),a.drawImage(this.ba,I.x,I.y,I.Vj,I.bj,Q,H,I.Vj*l,I.bj*l));E+=J*l+v;if(0===k&&b+E>g)break}}N+=m;if(0===k&&(N+m+q>this.height||c+N>h))break}}a.restore()}};var x=new xa;b.Rc=function(a){a.Xb(this.ca);a.Lf(this.opacity);if(this.text&&(this.vh(),!(this.height<this.md*this.kc+this.lineHeight))){this.da();var b=this.Pb,c=0,e=0;this.j.vd&&(c=Math.round(this.x)-
this.x,e=Math.round(this.y)-this.y);var d=this.F.Ea,g=this.F.Fa,h=this.F.La,k=this.F.Ka,f=this.C,l=this.rd,m=this.xd,q=this.kc,v=this.md*q,F=this.lineHeight,J=this.Ae,X=this.fa,N=this.$b,E,Q,H;0!==f&&(Q=Math.cos(f),H=Math.sin(f));for(var c=b.cb+c,b=b.eb+e,K,m=m*oa(0,this.height-N),B,z,N=0;N<X.length;N++)if(e=X[N].text,K=E=l*oa(0,this.width-X[N].width),m+=F,0===f&&b+m+v<g)m+=v;else{for(var I=0;I<e.length;I++){var C=e.charAt(I);E=this.Yg(C);C=this.Pg[C];if(0===f&&c+K+E*q+J<d)K+=E*q+J;else{if(K+E*q>
this.width+1E-5)break;if(void 0!==C){var L=this.Ng*q,P=this.md*q;B=K;z=m;0===f&&1===q&&(B=Math.round(B),z=Math.round(z));x.cb=B;x.eb=z;x.Db=B+L;x.Eb=z;x.wb=B;x.xb=z+P;x.yb=B+L;x.zb=z+P;0!==f&&(B=x,z=Q,L=H,P=void 0,P=B.cb*z-B.eb*L,B.eb=B.eb*z+B.cb*L,B.cb=P,P=B.Db*z-B.Eb*L,B.Eb=B.Eb*z+B.Db*L,B.Db=P,P=B.wb*z-B.xb*L,B.xb=B.xb*z+B.wb*L,B.wb=P,P=B.yb*z-B.zb*L,B.zb=B.zb*z+B.yb*L,B.yb=P);x.offset(c,b);a.gf(x.cb,x.eb,x.Db,x.Eb,x.yb,x.zb,x.wb,x.xb,C)}K+=E*q+J;if(0===f&&c+K>h)break}}m+=v;if(0===f&&(m+v+F>this.height||
b+m>k))break}}};m.prototype.io=function(a,b){return b?this.text==a:mb(this.text,a)};q.m=new m;k.prototype.Ue=function(a){A(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.Aa=!0,this.j.aa=!0)};k.prototype.ho=function(a){A(a)&&(a=Math.round(1E10*a)/1E10);if(a=a.toString())this.text+=a,this.Aa=!0,this.j.aa=!0};k.prototype.uo=function(a){a!==this.kc&&(this.kc=a,this.Aa=!0,this.j.aa=!0)};b.cc=function(a,b){var c=parseInt(b,10);this.Ec[a]!==c&&(this.Ec[a]=c,this.Aa=
!0,this.j.aa=!0)};q.A=new k;c.prototype.Ii=function(a){this.vh();a.B(this.Ac)};c.prototype.Hi=function(a){this.vh();a.B(this.$b)};q.D=new c})();function Qc(f){this.j=f}
(function(){function f(){return g.length?g.pop():{}}function l(a){var b,c;b=0;for(c=a.length;b<c;b++)g.push(a[b]);M(a)}function d(a){return a.length&&" "===a.charAt(a.length-1)?a.substring(0,a.length-1):a}function m(){}function k(){}function c(){}var q=Qc.prototype;q.H=function(){q.A.Zr=function(a){this.width!==a&&(this.width=a,this.Aa=!0,this.L())}};q.J=function(a){this.Z=a;this.j=a.j};var b=q.J.prototype;b.H=function(){};b.oi=function(){if(!this.U){var a,b,c;a=0;for(b=this.n.length;a<b;a++)c=this.n[a],
c.qb=null,c.uc=null,c.rb=null}};q.G=function(a){this.type=a;this.j=a.j;this.Vb?M(this.fa):this.fa=[];this.Aa=!0};b=q.G.prototype;b.H=function(){this.text=this.q[0];this.visible=0===this.q[1];this.font=this.q[2];this.color=this.q[3];this.rd=this.q[4];this.xd=this.q[5];this.Vf=0===this.q[7];this.Vc=this.Gd=this.width;this.Fd=this.height;this.Gf=this.q[8];this.fg=this.fe="";this.$b=this.Ac=this.Td=0;this.Au();this.rb=this.uc=this.qb=null;this.ln=!1;this.Qd=this.j.xe;this.Vb?this.uh.set(0,0,1,1):this.uh=
new wa(0,0,1,1);this.j.K&&this.j.Fh(this)};b.Au=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.Td=parseInt(a[b].substr(0,a[b].length-2));this.sh=Math.ceil(this.Td/72*96)+4;0<b&&(this.fg=a[b-1]);this.fe=a[b+1];for(b+=2;b<a.length;b++)this.fe+=" "+a[b];break}};b.ya=function(){return{t:this.text,f:this.font,c:this.color,ha:this.rd,va:this.xd,wr:this.Vf,lho:this.Gf,fn:this.fe,fs:this.fg,ps:this.Td,pxh:this.sh,tw:this.Ac,th:this.$b,lrt:this.Qd}};
b.Ga=function(a){this.text=a.t;this.font=a.f;this.color=a.c;this.rd=a.ha;this.xd=a.va;this.Vf=a.wr;this.Gf=a.lho;this.fe=a.fn;this.fg=a.fs;this.Td=a.ps;this.sh=a.pxh;this.Ac=a.tw;this.$b=a.th;this.Qd=a.lrt;this.Aa=!0;this.Vc=this.Gd=this.width;this.Fd=this.height};b.Ba=function(){if(this.j.K&&this.rb&&300<=this.j.xe-this.Qd){var a=this.F;this.da();var b=this.ea;if(b.right<a.Ea||b.bottom<a.Fa||b.left>a.La||b.top>a.Ka)this.j.K.deleteTexture(this.rb),this.qb=this.uc=this.rb=null}};b.Mc=function(){this.qb=
this.uc=null;this.j.K&&this.rb&&this.j.K.deleteTexture(this.rb);this.rb=null};b.cc=function(){this.font=this.fg+" "+this.Td.toString()+"pt "+this.fe;this.Aa=!0;this.j.aa=!0};b.$c=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=Math.abs(this.F.dd()),a.save(),a.scale(c,c));if(this.Aa||this.width!==this.Vc)this.type.Z.Nl(this.text,this.fa,a,this.width,this.Vf),this.Aa=!1,this.Vc=this.width;this.da();var c=b?0:this.Pb.cb,d=b?0:this.Pb.eb;
this.j.vd&&(c=c+.5|0,d=d+.5|0);0===this.C||b||(a.save(),a.translate(c,d),a.rotate(this.C),d=c=0);var g=d+this.height,k=this.sh,k=k+this.Gf,f,n;1===this.xd?d+=Math.max(this.height/2-this.fa.length*k/2,0):2===this.xd&&(d+=Math.max(this.height-this.fa.length*k-2,0));for(n=0;n<this.fa.length&&!(f=c,1===this.rd?f=c+(this.width-this.fa[n].width)/2:2===this.rd&&(f=c+(this.width-this.fa[n].width)),a.fillText(this.fa[n].text,f,d),d+=k,d>=g-k);n++);(0!==this.C||b)&&a.restore();this.Qd=this.j.xe};b.Rc=function(a){if(!(1>
this.width||1>this.height)){var b=this.Aa||this.ln;this.ln=!1;var c=this.F.dd(),d=this.F.Ib(),g=this.uh,k=c*this.width,f=c*this.height,n=Math.ceil(k),p=Math.ceil(f),m=Math.abs(n),l=Math.abs(p),q=this.j.ka/2,O=this.j.ja/2;this.uc||(this.qb=document.createElement("canvas"),this.qb.width=m,this.qb.height=l,this.Gd=m,this.Fd=l,b=!0,this.uc=this.qb.getContext("2d"));if(m!==this.Gd||l!==this.Fd)this.qb.width=m,this.qb.height=l,this.rb&&(a.deleteTexture(this.rb),this.rb=null),b=!0;b&&(this.uc.clearRect(0,
0,m,l),this.$c(this.uc,!0),this.rb||(this.rb=a.nd(m,l,this.j.pb,this.j.le)),a.ao(this.qb,this.rb,this.j.le));this.Gd=m;this.Fd=l;a.Xb(this.rb);a.Lf(this.opacity);a.te();a.translate(-q,-O);a.$d();var y=this.Pb,b=this.F.Sa(y.cb,y.eb,!0,!0),m=this.F.Sa(y.cb,y.eb,!1,!0),l=this.F.Sa(y.Db,y.Eb,!0,!0),q=this.F.Sa(y.Db,y.Eb,!1,!0),O=this.F.Sa(y.yb,y.zb,!0,!0),D=this.F.Sa(y.yb,y.zb,!1,!0),u=this.F.Sa(y.wb,y.xb,!0,!0),y=this.F.Sa(y.wb,y.xb,!1,!0);if(this.j.vd||0===this.C&&0===d)var U=(b+.5|0)-b,F=(m+.5|0)-
m,b=b+U,m=m+F,l=l+U,q=q+F,O=O+U,D=D+F,u=u+U,y=y+F;0===this.C&&0===d?(l=b+n,q=m,O=l,D=m+p,u=b,y=D,g.right=1,g.bottom=1):(g.right=k/n,g.bottom=f/p);a.gf(b,m,l,q,O,D,u,y,g);a.te();a.scale(c,c);a.Cn(-this.F.Ib());a.translate((this.F.Ea+this.F.La)/-2,(this.F.Fa+this.F.Ka)/-2);a.$d();this.Qd=this.j.xe}};var a=[];q.Kl=function(b){M(a);for(var c="",d,g=0;g<b.length;)if(d=b.charAt(g),"\n"===d)c.length&&(a.push(c),c=""),a.push("\n"),++g;else if(" "===d||"\t"===d||"-"===d){do c+=b.charAt(g),g++;while(g<b.length&&
(" "===b.charAt(g)||"\t"===b.charAt(g)));a.push(c);c=""}else g<b.length&&(c+=d,g++);c.length&&a.push(c)};var g=[];q.Nl=function(a,b,c,d,g){if(a&&a.length)if(2>=d)l(b);else{if(100>=a.length&&-1===a.indexOf("\n")){var k=c.measureText(a).width;if(k<=d){l(b);b.push(f());b[0].text=a;b[0].width=k;return}}this.Ol(a,b,c,d,g)}else l(b)};q.Ol=function(b,c,k,m,l){l&&(this.Kl(b),b=a);var q="",t,n,p,G=0;for(p=0;p<b.length;p++)"\n"===b[p]?(G>=c.length&&c.push(f()),q=d(q),n=c[G],n.text=q,n.width=k.measureText(q).width,
G++,q=""):(t=q,q+=b[p],n=k.measureText(q).width,n>=m&&(G>=c.length&&c.push(f()),t=d(t),n=c[G],n.text=t,n.width=k.measureText(t).width,G++,q=b[p],l||" "!==q||(q="")));q.length&&(G>=c.length&&c.push(f()),q=d(q),n=c[G],n.text=q,n.width=k.measureText(q).width,G++);for(p=G;p<c.length;p++)g.push(c[p]);c.length=G};m.prototype.io=function(a,b){return b?this.text==a:mb(this.text,a)};q.m=new m;k.prototype.Ue=function(a){A(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.Aa=
!0,this.j.aa=!0)};k.prototype.ho=function(a){A(a)&&(a=Math.round(1E10*a)/1E10);if(a=a.toString())this.text+=a,this.Aa=!0,this.j.aa=!0};q.A=new k;c.prototype.Ii=function(a){var b=0,c,d,g;c=0;for(d=this.fa.length;c<d;c++)g=this.fa[c].width,b<g&&(b=g);a.O(b)};c.prototype.Hi=function(a){a.O(this.fa.length*(this.sh+this.Gf)-this.Gf)};q.D=new c})();function Rc(f){this.j=f}
(function(){function f(){this.lr=this.id=-1;this.Yw=this.ok=this.Xn=this.Em=!1;this.Ta=new wa(0,0,0,0)}function l(a){1E4>v.length&&v.push(a)}function d(){this.id=-1;this.Ta=new wa(0,0,0,0);this.Sd=null}function m(a){1E4>x.length&&x.push(a)}function k(a,b,e){var d;return w.length?(d=w.pop(),d.k=a,d.x=b,d.y=e,d.left=d.x*d.k.Dc*d.k.Oc,d.top=d.y*d.k.Pc*d.k.Nc,d.clear(),d.wn=!1,d):new c(a,b,e)}function c(a,b,c){this.k=a;this.x=b;this.y=c;this.left=this.x*this.k.Dc*this.k.Oc;this.top=this.y*this.k.Pc*this.k.Nc;
this.Bg=[];this.hd=[];this.Bd=[];this.wn=!1;var e,d;a=0;for(b=this.k.Pc;a<b;++a){d=[];c=0;for(e=this.k.Dc;c<e;++c)d.push(-1);this.Bg.push(d)}}var q=Rc.prototype;q.J=function(a){this.Z=a;this.j=a.j};var b=q.J.prototype;b.H=function(){var a,b,c;if(!this.U&&(this.ba=new Image,this.ba.Js=this.lv,this.j.Ar(this.ba,this.Pn),this.Pi=[],this.Os=!1,this.Pf=[],this.zA=!1,this.kr&&this.kr.length))for(a=0,b=this.kr.length;a<b;++a)(c=this.kr[a])?this.Pf.push({Sd:c,tp:[[[null,null],[null,null]],[[null,null],[null,
null]]]}):this.Pf.push(null)};b.Sh=function(a,b,c,e,d,g){if(!(0>a||a>=this.Pf.length)&&this.Pf[a]){var k=this.Pf[a].tp;a=new gb(this.Pf[a].Sd);a.$f(b,c,0);g&&a.zF();e&&a.sI(b/2);d&&a.NG(c/2);k[e?1:0][d?1:0][g?1:0]=a}};b.gy=function(b){if(-1===b)return null;var c=b&h;return 0>c||c>=this.Pf.length||!this.Pf[c]?null:this.Pf[c].tp[b&a?1:0][b&g?1:0][b&e?1:0]};b.dt=function(){var a,b,c=this.j.K;if(c)for(a=0,b=this.Pi.length;a<b;++a)c.deleteTexture(this.Pi[a]);M(this.Pi);this.Os=!1};b.hu=function(a,b,c,
e,d,g,k){if(!(this.Os||0>=a||0>=b)){this.dt();var h=this.ba.width,f=this.ba.height,m;for(m=e;m+b<=f;m+=b+g)for(e=c;e+a<=h;e+=a+d)this.Pi.push(this.rB(e,m,a,b,k));this.Os=!0}};b.rB=function(a,b,c,e,d){if(this.j.K)return this.Jr(a,b,c,e,!1,!1,!1,d);var g=[[[null,null],[null,null]],[[null,null],[null,null]]];g[0][0][0]=this.Jr(a,b,c,e,!1,!1,!1,d);return{tp:g,x:a,y:b,Vj:c,bj:e}};b.Xv=function(a,b,c,e,d){if(0>a||a>=this.Pi.length)return null;a=this.Pi[a];var g=a.tp;b=b?1:0;c=c?1:0;e=e?1:0;var k=g[b][c][e];
if(k)return k;k=this.Jr(a.x,a.y,a.Vj,a.bj,0!==b,0!==c,0!==e,d);return g[b][c][e]=k};b.Jr=function(a,b,c,e,d,g,k,h){var f=c,m=e;this.j.K&&!h&&(ka(f)||(f=ma(f)),ka(m)||(m=ma(m)));var l=document.createElement("canvas");l.width=f;l.height=m;var q=l.getContext("2d");if(this.j.Ab)return d?g?(k?(q.rotate(Math.PI/2),q.scale(-1,1)):q.scale(-1,-1),q.translate(-f,-m)):k?(q.rotate(Math.PI/2),q.translate(0,-m)):(q.scale(-1,1),q.translate(-f,0)):g?k?(q.rotate(-Math.PI/2),q.translate(-f,0)):(q.scale(1,-1),q.translate(0,
-m)):k&&(q.scale(-1,1),q.rotate(Math.PI/2)),q.drawImage(this.ba,a,b,c,e,0,0,f,m),h?l:this.j.Ab.createPattern(l,"repeat");q.drawImage(this.ba,a,b,c,e,0,0,f,m);a=this.j.K.nd(f,m,this.j.pb,!1,!h);this.j.K.ao(l,a);return a};b.oi=function(){this.U||this.dt()};b.al=function(){};b.Uy=function(){};b.Sn=function(){this.U||this.n.length||this.dt()};b.tn=function(){};q.G=function(a){this.type=a;this.j=a.j};var b=q.G.prototype,a=-2147483648,g=1073741824,e=536870912,h=536870911,v=[],x=[],w=[];c.prototype.clear=
function(){var a,b,c,e,d;this.Bg.length=this.k.Pc;a=0;for(b=this.Bg.length;a<b;++a)for(d=this.Bg[a],d||(d=[],this.Bg[a]=d),d.length=this.k.Dc,c=0,e=d.length;c<e;++c)d[c]=-1};c.prototype.hn=function(){if(!this.wn){var b=this.k.Oc,c=this.k.Nc;if(!(0>=b||0>=c)){var k,q,r,T,O,y;k=0;for(q=this.hd.length;k<q;++k)l(this.hd[k]);k=0;for(q=this.Bd.length;k<q;++k)m(this.Bd[k]);M(this.hd);M(this.Bd);var w=Math.min(this.k.df,Math.floor(this.k.width/b)),u=Math.min(this.k.Hf,Math.floor(this.k.height/c)),w=w-this.left/
b,u=u-this.top/c;w>this.k.Dc&&(w=this.k.Dc);u>this.k.Pc&&(u=this.k.Pc);var U=this.k.vi,F=null;k=0;for(q=u;k<q;++k){O=this.Bg[k];r=0;for(T=w;r<T;++r)y=O[r],-1===y?F&&(this.hd.push(F),F=null):U||!F||y!==F.id?(F&&this.hd.push(F),F=v.length?v.pop():new f,F.id=y,F.lr=y&h,F.Em=0!==(y&a),F.Xn=0!==(y&g),F.ok=0!==(y&e),F.Yw=F.Em||F.Xn||F.ok,F.Ta.left=r*b+this.left,F.Ta.top=k*c+this.top,F.Ta.right=F.Ta.left+b,F.Ta.bottom=F.Ta.top+c):F.Ta.right+=b;F&&(this.hd.push(F),F=null)}var F=null,J=!1;k=0;for(q=u;k<q;++k){O=
this.Bg[k];r=0;for(T=w;r<T;++r)y=O[r],-1===y?F&&(this.Bd.push(F),F=null,J=!1):(u=this.k.type.gy(y),!F||u||J?(F&&this.Bd.push(F),F=x.length?x.pop():new d,F.id=y,F.Sd=u?u:null,y=F.Ta,y.left=r*b+this.left,y.top=k*c+this.top,y.right=y.left+b,y.bottom=y.top+c,J=!!u):F.Ta.right+=b);F&&(this.Bd.push(F),F=null,J=!1)}if(!U)for(q=this.hd.length,k=0;k<q;++k)for(T=this.hd[k],b=k+1;b<q;++b)if(r=this.hd[b],!(r.Ta.top<T.Ta.bottom)){if(r.Ta.top>T.Ta.bottom)break;if(r.Ta.right>T.Ta.right||r.Ta.left>T.Ta.left)break;
r.id===T.id&&r.Ta.left===T.Ta.left&&r.Ta.right===T.Ta.right&&(l(this.hd[b]),this.hd.splice(b,1),--q,T.Ta.bottom+=c,--b)}q=this.Bd.length;for(k=0;k<q;++k)if(T=this.Bd[k],!T.Sd)for(O=T.Ta,b=k+1;b<q;++b)if(r=this.Bd[b],T=r.Ta,!(T.top<O.bottom)){if(T.top>O.bottom)break;if(T.right>O.right||T.left>O.left)break;r.Sd||T.left!==O.left||T.right!==O.right||(m(this.Bd[b]),this.Bd.splice(b,1),--q,O.bottom+=c,--b)}this.wn=!0}}};c.prototype.Zu=function(a,b,c){this.Bg[b][a]!==c&&(this.Bg[b][a]=c,this.wn=!1,this.k.Ho=
!0,this.k.sn=!0,this.k.j.aa=!0)};b.H=function(){var a,b,c;this.visible=0===this.q[0];this.Oc=this.q[1];this.Nc=this.q[2];this.pv=this.q[3];this.rv=this.q[4];this.qv=this.q[5];this.sv=this.q[6];this.vi=0!==this.q[7];this.df=this.CA;this.Hf=this.BA;this.Gd=this.width;this.Fd=this.height;var e=this.Oc,d=this.Nc;0===e&&(e=1);0===d&&(d=1);this.Dc=Math.ceil(this.j.gc/e);this.Pc=Math.ceil(this.j.ec/d);if(!this.type.zA)for(this.type.zA=!0,a=0,b=this.type.Pf.length;a<b;++a)if(c=this.type.Pf[a])this.type.Sh(a,
e,d,!1,!1,!1),this.type.Sh(a,e,d,!1,!1,!0),this.type.Sh(a,e,d,!1,!0,!1),this.type.Sh(a,e,d,!1,!0,!0),this.type.Sh(a,e,d,!0,!1,!1),this.type.Sh(a,e,d,!0,!1,!0),this.type.Sh(a,e,d,!0,!0,!1),this.type.Sh(a,e,d,!0,!0,!0);this.Vb||(this.Ld=[]);this.iu(!0);this.gA(this.AA);this.type.hu(this.Oc,this.Nc,this.pv,this.rv,this.qv,this.sv,this.vi);this.sn=!1;this.Ho=!0;this.gu()};b.gu=function(){if(this.Ho){var a,b,c,e,d;a=0;for(b=this.Ld.length;a<b;++a)for(d=this.Ld[a],c=0,e=d.length;c<e;++c)d[c].hn();this.Ho=
!1}};b.Rq=function(){var a,b,c,e,d;a=0;for(b=this.Ld.length;a<b;++a)for(d=this.Ld[a],c=0,e=d.length;c<e;++c)d[c].wn=!1;this.Ho=!0};b.iu=function(a){var b=ra(this.width/this.Oc),c=ra(this.height/this.Nc);if(!(b<=this.df&&c<=this.Hf)||a){var e;a?(a=Math.ceil(this.Hf/this.Pc),e=Math.ceil(this.df/this.Dc)):(a=this.Ld.length,e=Math.ceil(this.df/this.Dc),c>this.Hf&&(this.Hf=c,a=Math.ceil(this.Hf/this.Pc)),b>this.df&&(this.df=b,e=Math.ceil(this.df/this.Dc)),this.Rq(),this.sn=!0,this.j.aa=!0);for(var d,b=
0;b<a;++b)if(d=this.Ld[b])for(c=d.length;c<e;++c)d.push(k(this,c,b));else{d=[];for(c=0;c<e;++c)d.push(k(this,c,b));this.Ld[b]=d}}};b.Cs=function(a,b){if(0>a||0>b)return null;var c=ra(b/this.Pc);if(c>=this.Ld.length)return null;var c=this.Ld[c],e=ra(a/this.Dc);return e>=c.length?null:c[e]};b.Ds=function(a,b){if(0>a||0>b||b>=this.Ld.length)return null;var c=this.Ld[b];return a>=c.length?null:c[a]};b.gA=function(b){var c=[];b=b.split(",");var d,k,h,f,m;d=0;for(k=b.length;d<k;++d)if(h=b[d],f=h.indexOf("x"),
-1<f)for(m=parseInt(h.substring(0,f),10),h=h.substring(f+1),f=parseInt(h,10),-1<h.indexOf("h")&&(f|=a),-1<h.indexOf("v")&&(f|=g),-1<h.indexOf("d")&&(f|=e);0<m;--m)c.push(f);else f=parseInt(h,10),-1<h.indexOf("h")&&(f|=a),-1<h.indexOf("v")&&(f|=g),-1<h.indexOf("d")&&(f|=e),c.push(f);for(d=b=0;d<this.Hf;++d)for(k=0;k<this.df;++k)m=c[b++],(h=this.Cs(k,d))&&h.Zu(k%this.Dc,d%this.Pc,m)};b.qH=function(){var b="";if(0>=this.df||0>=this.Hf)return b;var c=1,d=this.yt(0,0),k,f,m,l,q,r,u,v;l=ra(this.width/this.Oc);
f=ra(this.height/this.Nc);for(k=0;k<f;++k)for(m=0===k?1:0;m<l;++m)q=this.yt(m,k),q===d?++c:(-1===d?(r=-1,d=v=u=!1):(r=d&h,u=0!==(d&a),v=0!==(d&g),d=0!==(d&e)),b=1===c?b+(""+r):b+(""+c+"x"+r),u&&(b+="h"),v&&(b+="v"),d&&(b+="d"),b+=",",c=1,d=q);-1===d?(r=-1,d=v=u=!1):(r=d&h,u=0!==(d&a),v=0!==(d&g),d=0!==(d&e));b=1===c?b+(""+r):b+(""+c+"x"+r);u&&(b+="h");v&&(b+="v");d&&(b+="d");return b};b.yt=function(a,b){a=Math.floor(a);b=Math.floor(b);if(0>a||0>b||a>=this.df||b>=this.Hf)return-1;var c=this.Cs(a,b);
return c?c.Bg[b%this.Pc][a%this.Dc]:-1};b.Zu=function(a,b,c){a=Math.floor(a);b=Math.floor(b);if(0>a||0>b||a>=this.df||b>=this.Hf)return-1;var e=this.Cs(a,b);if(!e)return-1;e.Zu(a%this.Dc,b%this.Pc,c)};b.UA=function(a){return Math.floor((a-this.x)/(this.Dc*this.Oc))};b.VA=function(a){return Math.floor((a-this.y)/(this.Pc*this.Nc))};b.rK=function(a){return Math.floor((a-this.x)/this.Oc)};b.sK=function(a){return Math.floor((a-this.y)/this.Nc)};b.Cp=function(a,b){var c=this.VA(a.top),e=this.UA(a.right),
d=this.VA(a.bottom),g,k,h;for(g=this.UA(a.left);g<=e;++g)for(k=c;k<=d;++k)if(h=this.Ds(g,k))h.hn(),Da(b,h.Bd)};b.$J=function(a,b){var c=this.yt(this.rK(a),this.sK(b));if(-1===c)return!1;c=this.type.gy(c);if(!c)return!0;var e=Math.floor((b-this.y)/this.Nc)*this.Nc+this.y;a-=Math.floor((a-this.x)/this.Oc)*this.Oc+this.x;return c.Qb(a,b-e)};b.cc=function(a){var b,c,e,d,g,k;b=0;for(c=this.Ld.length;b<c;++b)for(g=this.Ld[b],e=0,d=g.length;e<d;++e)k=g[e],k.hn(),Da(a,k.Bd)};b.Mc=function(){var a,b,c,e,d;
a=0;for(b=this.Ld.length;a<b;++a){d=this.Ld[a];c=0;for(e=d.length;c<e;++c){for(var g=d[c],k=void 0,h=void 0,k=0,h=g.hd.length;k<h;++k)l(g.hd[k]);M(g.hd);k=0;for(h=g.Bd.length;k<h;++k)m(g.Bd[k]);M(g.Bd);1E3>w.length&&w.push(g)}M(d)}M(this.Ld)};b.ya=function(){this.iu();return{w:ra(this.width/this.Oc),h:ra(this.height/this.Nc),d:this.qH()}};b.Ga=function(a){this.df=a.w;this.Hf=a.h;this.iu(!0);this.gA(a.d);this.sn=!0;this.Rq()};b.$c=function(a){if(!(0>=this.Oc||0>=this.Nc)){this.type.hu(this.Oc,this.Nc,
this.pv,this.rv,this.qv,this.sv,this.vi);if(this.width!==this.Gd||this.height!==this.Fd)this.sn=!0,this.Rq(),this.gu(),this.Gd=this.width,this.Fd=this.height;a.globalAlpha=this.opacity;var b=this.F,c=b.Ea,e=b.Fa,d=b.La,b=b.Ka,g=this.x,k=this.y,h=this.vi,f;this.j.vd&&(g=Math.round(g),k=Math.round(k));var m=this.Dc*this.Oc,l=this.Pc*this.Nc,q=Math.floor((c-g)/m),m=Math.floor((d-g)/m),r=Math.floor((e-k)/l),l=Math.floor((b-k)/l),v=g%this.Oc,w=k%this.Nc;this.vi&&(w=v=0);if(0!==v||0!==w)a.save(),a.translate(v,
w),g-=v,k-=w,c-=v,e-=w,d-=v,b-=w;for(var E,x,H,K,B,z,I,C,L;q<=m;++q)for(E=r;E<=l;++E)if(x=this.Ds(q,E))for(x.hn(),H=0,K=x.hd.length;H<K;++H)B=x.hd[H],-1!==B.id&&(f=B.Ta,z=f.left+g,I=f.top+k,C=f.right+g,f=f.bottom+k,z>d||C<c||I>b||f<e||(L=this.type.Xv(B.lr,B.Em,B.Xn,B.ok,this.vi),h?a.drawImage(L,z,I):(a.fillStyle=this.type.Xv(B.lr,B.Em,B.Xn,B.ok,this.vi),a.fillRect(z,I,C-z,f-I))));0===v&&0===w||a.restore()}};var r=new wa(0,0,1,1);b.Ri=function(a){this.Rc(a)};b.Rc=function(a){if(!(0>=this.Oc||0>=this.Nc)){this.type.hu(this.Oc,
this.Nc,this.pv,this.rv,this.qv,this.sv,this.vi);if(this.width!==this.Gd||this.height!==this.Fd)this.sn=!0,this.Rq(),this.gu(),this.Gd=this.width,this.Fd=this.height;a.Lf(this.opacity);var b=this.type.Pi,c=this.F,e=c.Ea,d=c.Fa,g=c.La,c=c.Ka,k=this.x,h=this.y,f;this.j.vd&&(k=Math.round(k),h=Math.round(h));var m=this.Dc*this.Oc,l=this.Pc*this.Nc,q=Math.floor((g-k)/m),v=Math.floor((d-h)/l),l=Math.floor((c-h)/l),w,x,E,Q,H,K,B,z,I,C,L,P,fa,V,za,ga,sa;for(za=Math.floor((e-k)/m);za<=q;++za)for(ga=v;ga<=
l;++ga)if(sa=this.Ds(za,ga))for(sa.hn(),m=0,w=sa.hd.length;m<w;++m)x=sa.hd[m],-1!==x.id&&(f=x.Ta,E=f.left+k,Q=f.top+h,H=f.right+k,f=f.bottom+h,E>g||H<e||Q>c||f<d||(a.Xb(b[x.lr]),r.right=(H-E)/this.Oc,r.bottom=(f-Q)/this.Nc,x.Yw?(x.ok&&(V=r.right,r.right=r.bottom,r.bottom=V),B=K=0,z=r.right,I=0,C=r.right,L=r.bottom,P=0,fa=r.bottom,x.ok&&(V=P,P=z,z=V,V=fa,fa=I,I=V),x.Em&&(V=K,K=z,z=V,V=B,B=I,I=V,V=P,P=C,C=V,V=fa,fa=L,L=V),x.Xn&&(V=K,K=P,P=V,V=B,B=fa,fa=V,V=z,z=C,C=V,V=I,I=L,L=V),a.Nu(E,Q,H,Q,H,f,E,
f,K,B,z,I,C,L,P,fa)):a.gf(E,Q,H,Q,H,f,E,f,r)))}};q.m=new function(){};q.A=new function(){};q.D=new function(){}})();function Sc(f){this.j=f}
(function(){function f(b){a=b.x;g=b.y;e=b.z}function l(a,b,c,e){var g;g=h.length?h.pop():new d;g.init(a,b,c,e);return g}function d(){this.Mf=this.id=this.Me=this.Le=this.y=this.x=this.Eh=this.Dh=this.tj=this.time=this.Qj=0;this.Qf=this.Ih=!1}function m(){}function k(){}var c=Sc.prototype;c.J=function(a){this.Z=a;this.j=a.j};c.J.prototype.H=function(){};c.G=function(a){this.type=a;this.j=a.j;this.touches=[];this.Aj=!1};var q=c.G.prototype,b={left:0,top:0};q.Hc=function(a){var b,c;b=0;for(c=this.touches.length;b<
c;b++)if(this.touches[b].id===a)return b;return-1};var a=0,g=0,e=0,h=[];d.prototype.init=function(a,b,c,e){var d=Ya();this.Qj=this.tj=this.time=d;this.Dh=a;this.Eh=b;this.x=a;this.y=b;this.Le=a;this.Me=b;this.pressure=this.height=this.width=0;this.id=c;this.Mf=e;this.Qf=this.Ih=!1};d.prototype.update=function(a,b,c,e,d,g){this.tj=this.time;this.time=a;this.Le=this.x;this.Me=this.y;this.x=b;this.y=c;this.width=e;this.height=d;this.pressure=g;!this.Qf&&15<=Ta(this.Dh,this.Eh,this.x,this.y)&&(this.Qf=
!0)};d.prototype.ku=function(a,b){!this.Ih&&500<=Ya()-this.Qj&&!this.Qf&&15>Ta(this.Dh,this.Eh,this.x,this.y)&&(this.Ih=!0,a.Bc=this.Mf,a.Yc=this.id,a.He=b,a.j.trigger(Sc.prototype.m.Pr,a),a.mc=this.x,a.nc=this.y,a.j.trigger(Sc.prototype.m.Qr,a),a.He=0)};var v=-1E3,x=-1E3,w=-1E4;d.prototype.jn=function(a,b){if(!this.Ih){var c=Ya();333>=c-this.Qj&&!this.Qf&&15>Ta(this.Dh,this.Eh,this.x,this.y)&&(a.Bc=this.Mf,a.Yc=this.id,a.He=b,666>=c-w&&25>Ta(v,x,this.x,this.y)?(a.j.trigger(Sc.prototype.m.Or,a),a.mc=
this.x,a.nc=this.y,a.j.trigger(Sc.prototype.m.no,a),x=v=-1E3,w=-1E4):(a.j.trigger(Sc.prototype.m.Sr,a),a.mc=this.x,a.nc=this.y,a.j.trigger(Sc.prototype.m.Jl,a),v=this.x,x=this.y,w=c),a.He=0)}};q.H=function(){this.Rt=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.He=this.Yc=this.Bc=this.nc=this.mc=this.Tl=this.Sl=this.Rl=this.qs=this.os=this.ns=this.oh=this.nh=this.mh=0;this.Gv=0!==this.q[0];var a=0<this.j.ad?document:this.j.canvas,b=document;this.j.Tc?b=a=window.Canvas:this.j.ke&&
(b=a=window);var c=this;"undefined"!==typeof PointerEvent?(a.addEventListener("pointerdown",function(a){c.qi(a)},!1),a.addEventListener("pointermove",function(a){c.pi(a)},!1),b.addEventListener("pointerup",function(a){c.oe(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.oe(a,!0)},!1),this.j.canvas&&(this.j.canvas.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),document.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),this.j.canvas.addEventListener("gesturehold",
function(a){a.preventDefault()},!1),document.addEventListener("gesturehold",function(a){a.preventDefault()},!1))):window.navigator.msPointerEnabled?(a.addEventListener("MSPointerDown",function(a){c.qi(a)},!1),a.addEventListener("MSPointerMove",function(a){c.pi(a)},!1),b.addEventListener("MSPointerUp",function(a){c.oe(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.oe(a,!0)},!1),this.j.canvas&&(this.j.canvas.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),document.addEventListener("MSGestureHold",
function(a){a.preventDefault()},!1))):(a.addEventListener("touchstart",function(a){c.Ij(a)},!1),a.addEventListener("touchmove",function(a){c.Hj(a)},!1),b.addEventListener("touchend",function(a){c.tg(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.tg(a,!0)},!1));if(this.Rt){var e=function(a){a=a.reading;c.Rl=a.accelerationX;c.Sl=a.accelerationY;c.Tl=a.accelerationZ},d=function(a){a=a.reading;c.mh=a.yawDegrees;c.nh=a.pitchDegrees;c.oh=a.rollDegrees},g=Windows.Devices.Sensors.Accelerometer.getDefault();
g&&(g.reportInterval=Math.max(g.minimumReportInterval,16),g.addEventListener("readingchanged",e));var k=Windows.Devices.Sensors.Inclinometer.getDefault();k&&(k.reportInterval=Math.max(k.minimumReportInterval,16),k.addEventListener("readingchanged",d));document.addEventListener("visibilitychange",function(){document.hidden||document.msHidden?(g&&g.removeEventListener("readingchanged",e),k&&k.removeEventListener("readingchanged",d)):(g&&g.addEventListener("readingchanged",e),k&&k.addEventListener("readingchanged",
d))},!1)}else window.addEventListener("deviceorientation",function(a){c.mh=a.alpha||0;c.nh=a.beta||0;c.oh=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.ns=a.accelerationIncludingGravity.x||0,c.os=a.accelerationIncludingGravity.y||0,c.qs=a.accelerationIncludingGravity.z||0);a.acceleration&&(c.Rl=a.acceleration.x||0,c.Sl=a.acceleration.y||0,c.Tl=a.acceleration.z||0)},!1);this.Gv&&!this.j.ob&&(jQuery(document).mousemove(function(a){c.Fj(a)}),jQuery(document).mousedown(function(a){c.Ej(a)}),
jQuery(document).mouseup(function(a){c.Gj(a)}));!this.j.nj&&this.j.sd&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(f,null,{frequency:40});this.j.nv(this)};q.pi=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var c=this.Hc(a.pointerId),e=Ya();if(0<=c){var d=this.j.ob?b:jQuery(this.j.canvas).offset(),c=this.touches[c];2>e-c.time||c.update(e,a.pageX-d.left,a.pageY-d.top,
a.width||0,a.height||0,a.pressure||0)}}};q.qi=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&nb(a)&&a.preventDefault();var c=this.j.ob?b:jQuery(this.j.canvas).offset(),e=a.pageX-c.left,c=a.pageY-c.top;Ya();this.Bc=this.touches.length;this.Yc=a.pointerId;this.touches.push(l(e,c,a.pointerId,this.Bc));this.j.$a=!0;this.j.trigger(Sc.prototype.m.Il,this);this.j.trigger(Sc.prototype.m.qf,this);this.mc=e;this.nc=c;this.j.trigger(Sc.prototype.m.ak,this);
this.j.$a=!1}};q.oe=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&nb(a)&&a.preventDefault();var c=this.Hc(a.pointerId);this.Bc=0<=c?this.touches[c].Mf:-1;this.Yc=0<=c?this.touches[c].id:-1;this.j.$a=!0;this.j.trigger(Sc.prototype.m.Hl,this);this.j.trigger(Sc.prototype.m.pf,this);0<=c&&(b||this.touches[c].jn(this,c),100>h.length&&h.push(this.touches[c]),this.touches.splice(c,1));this.j.$a=!1}};q.Hj=function(a){a.preventDefault&&a.preventDefault();
var c=Ya(),e,d,g,k;e=0;for(d=a.changedTouches.length;e<d;e++)if(g=a.changedTouches[e],k=this.Hc(g.identifier),0<=k){var h=this.j.ob?b:jQuery(this.j.canvas).offset();k=this.touches[k];2>c-k.time||k.update(c,g.pageX-h.left,g.pageY-h.top,2*(g.iJ||g.oK||g.xI||g.AI||0),2*(g.jJ||g.pK||g.yI||g.BI||0),g.OG||g.nK||g.wI||g.zI||0)}};q.Ij=function(a){a.preventDefault&&nb(a)&&a.preventDefault();var c=this.j.ob?b:jQuery(this.j.canvas).offset();Ya();this.j.$a=!0;var e,d,g,k;e=0;for(d=a.changedTouches.length;e<d;e++)if(g=
a.changedTouches[e],k=this.Hc(g.identifier),-1===k){k=g.pageX-c.left;var h=g.pageY-c.top;this.Bc=this.touches.length;this.Yc=g.identifier;this.touches.push(l(k,h,g.identifier,this.Bc));this.j.trigger(Sc.prototype.m.Il,this);this.j.trigger(Sc.prototype.m.qf,this);this.mc=k;this.nc=h;this.j.trigger(Sc.prototype.m.ak,this)}this.j.$a=!1};q.tg=function(a,b){a.preventDefault&&nb(a)&&a.preventDefault();this.j.$a=!0;var c,e,d;c=0;for(e=a.changedTouches.length;c<e;c++)d=a.changedTouches[c],d=this.Hc(d.identifier),
0<=d&&(this.Bc=this.touches[d].Mf,this.Yc=this.touches[d].id,this.j.trigger(Sc.prototype.m.Hl,this),this.j.trigger(Sc.prototype.m.pf,this),b||this.touches[d].jn(this,d),100>h.length&&h.push(this.touches[d]),this.touches.splice(d,1));this.j.$a=!1};q.cc=function(){return this.j.sd&&0===this.mh&&0!==e?90*e:this.mh};q.Hk=function(){return this.j.sd&&0===this.nh&&0!==g?90*g:this.nh};q.Rk=function(){return this.j.sd&&0===this.oh&&0!==a?90*a:this.oh};q.Ej=function(a){this.Ij({changedTouches:[{pageX:a.pageX,
pageY:a.pageY,identifier:0}]});this.Aj=!0};q.Fj=function(a){this.Aj&&this.Hj({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};q.Gj=function(a){a.preventDefault&&this.j.cj&&!this.j.le&&a.preventDefault();this.j.cj=!0;this.tg({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.Aj=!1};q.Ci=function(){var a,b,c,e=Ya();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=e-50&&(c.tj=e),c.ku(this,a)};m.prototype.qf=function(){return!0};m.prototype.pf=function(){return!0};
m.prototype.ko=function(){return this.touches.length};m.prototype.ak=function(a){return a?this.j.Of(a,this.mc,this.nc,!1):!1};m.prototype.Il=function(a){a=Math.floor(a);return a===this.Bc};m.prototype.Hl=function(a){a=Math.floor(a);return a===this.Bc};m.prototype.Pr=function(){return!0};m.prototype.Sr=function(){return!0};m.prototype.Or=function(){return!0};m.prototype.Qr=function(a){return a?this.j.Of(a,this.mc,this.nc,!1):!1};m.prototype.Jl=function(a){return a?this.j.Of(a,this.mc,this.nc,!1):!1};
m.prototype.no=function(a){return a?this.j.Of(a,this.mc,this.nc,!1):!1};c.m=new m;k.prototype.bs=function(a){a.O(this.touches.length)};k.prototype.Gg=function(a,b){var c=this.He;if(0>c||c>=this.touches.length)a.B(0);else{var e,d,g,k,h;ia(b)?(e=this.j.Pa(0),d=e.scale,g=e.V,k=e.Na,h=e.C,e.scale=1,e.V=1,e.Na=1,e.C=0,a.B(e.W(this.touches[c].x,this.touches[c].y,!0)),e.scale=d,e.V=g,e.Na=k,e.C=h):(e=A(b)?this.j.Pa(b):this.j.cd(b))?a.B(e.W(this.touches[c].x,this.touches[c].y,!0)):a.B(0)}};k.prototype.cs=
function(a,b,c){b=Math.floor(b);if(0>b||b>=this.touches.length)a.B(0);else{var e,d,g,k;ia(c)?(c=this.j.Pa(0),e=c.scale,d=c.V,g=c.Na,k=c.C,c.scale=1,c.V=1,c.Na=1,c.C=0,a.B(c.W(this.touches[b].x,this.touches[b].y,!0)),c.scale=e,c.V=d,c.Na=g,c.C=k):(c=A(c)?this.j.Pa(c):this.j.cd(c))?a.B(c.W(this.touches[b].x,this.touches[b].y,!0)):a.B(0)}};k.prototype.bk=function(a,b,c){b=this.Hc(b);if(0>b)a.B(0);else{b=this.touches[b];var e,d,g,k;ia(c)?(c=this.j.Pa(0),e=c.scale,d=c.V,g=c.Na,k=c.C,c.scale=1,c.V=1,c.Na=
1,c.C=0,a.B(c.W(b.x,b.y,!0)),c.scale=e,c.V=d,c.Na=g,c.C=k):(c=A(c)?this.j.Pa(c):this.j.cd(c))?a.B(c.W(b.x,b.y,!0)):a.B(0)}};k.prototype.Hg=function(a,b){var c=this.He;if(0>c||c>=this.touches.length)a.B(0);else{var e,d,g,k,h;ia(b)?(e=this.j.Pa(0),d=e.scale,g=e.V,k=e.mb,h=e.C,e.scale=1,e.V=1,e.mb=1,e.C=0,a.B(e.W(this.touches[c].x,this.touches[c].y,!1)),e.scale=d,e.V=g,e.mb=k,e.C=h):(e=A(b)?this.j.Pa(b):this.j.cd(b))?a.B(e.W(this.touches[c].x,this.touches[c].y,!1)):a.B(0)}};k.prototype.ds=function(a,
b,c){b=Math.floor(b);if(0>b||b>=this.touches.length)a.B(0);else{var e,d,g,k;ia(c)?(c=this.j.Pa(0),e=c.scale,d=c.V,g=c.mb,k=c.C,c.scale=1,c.V=1,c.mb=1,c.C=0,a.B(c.W(this.touches[b].x,this.touches[b].y,!1)),c.scale=e,c.V=d,c.mb=g,c.C=k):(c=A(c)?this.j.Pa(c):this.j.cd(c))?a.B(c.W(this.touches[b].x,this.touches[b].y,!1)):a.B(0)}};k.prototype.ck=function(a,b,c){b=this.Hc(b);if(0>b)a.B(0);else{b=this.touches[b];var e,d,g,k;ia(c)?(c=this.j.Pa(0),e=c.scale,d=c.V,g=c.mb,k=c.C,c.scale=1,c.V=1,c.mb=1,c.C=0,
a.B(c.W(b.x,b.y,!1)),c.scale=e,c.V=d,c.mb=g,c.C=k):(c=A(c)?this.j.Pa(c):this.j.cd(c))?a.B(c.W(b.x,b.y,!1)):a.B(0)}};k.prototype.eo=function(a){this.touches.length?a.B(this.touches[0].x):a.B(0)};k.prototype.Dr=function(a,b){b=Math.floor(b);0>b||b>=this.touches.length?a.B(0):a.B(this.touches[b].x)};k.prototype.Er=function(a,b){var c=this.Hc(b);0>c?a.B(0):a.B(this.touches[c].x)};k.prototype.fo=function(a){this.touches.length?a.B(this.touches[0].y):a.B(0)};k.prototype.Fr=function(a,b){b=Math.floor(b);
0>b||b>=this.touches.length?a.B(0):a.B(this.touches[b].y)};k.prototype.Gr=function(a,b){var c=this.Hc(b);0>c?a.B(0):a.B(this.touches[c].y)};k.prototype.Lw=function(a){a.B(this.Yc)};c.D=new k})();function Nc(f){this.j=f}
(function(){function f(a){e=a.x;h=a.y;v=a.z}function l(a,b,c,e){var d;d=x.length?x.pop():new m;d.init(a,b,c,e);return d}function d(a){100>x.length&&x.push(a)}function m(){this.Mf=this.id=this.Me=this.Le=this.y=this.x=this.Eh=this.Dh=this.tj=this.time=this.Qj=0;this.Qf=this.Ih=!1}function k(){}function c(){}function q(){}var b=Nc.prototype;b.J=function(a){this.Z=a;this.j=a.j};b.J.prototype.H=function(){};b.G=function(a){this.type=a;this.j=a.j;this.touches=[];this.Aj=!1;this.gF="TOUCHWRAP";this.cursor=
{x:null,y:null};this.Cc=[];this.lb={value:0,Jd:function(a){this.value=a},O:function(a){this.value=a},B:function(a){this.value=a}}};var a=b.G.prototype,g={left:0,top:0};a.Hc=function(a){var b,c;b=0;for(c=this.touches.length;b<c;b++)if(this.touches[b].id===a)return b;return-1};var e=0,h=0,v=0,x=[];m.prototype.init=function(a,b,c,e){var d=Ya();this.Qj=this.tj=this.time=d;this.Dh=a;this.Eh=b;this.x=a;this.y=b;this.Le=a;this.Me=b;this.pressure=this.height=this.width=0;this.id=c;this.Mf=e;this.Qf=this.Ih=
!1};m.prototype.update=function(a,b,c,e,d,g){this.tj=this.time;this.time=a;this.Le=this.x;this.Me=this.y;this.x=b;this.y=c;this.width=e;this.height=d;this.pressure=g;!this.Qf&&15<=Ta(this.Dh,this.Eh,this.x,this.y)&&(this.Qf=!0)};m.prototype.ku=function(a,b){!this.Ih&&500<=Ya()-this.Qj&&!this.Qf&&15>Ta(this.Dh,this.Eh,this.x,this.y)&&(this.Ih=!0,a.Bc=this.Mf,a.Yc=this.id,a.He=b,a.j.trigger(Nc.prototype.m.Pr,a),a.mc=this.x,a.nc=this.y,a.j.trigger(Nc.prototype.m.Qr,a),a.He=0)};var w=-1E3,r=-1E3,t=-1E4;
m.prototype.jn=function(a,b){if(!this.Ih){var c=Ya();333>=c-this.Qj&&!this.Qf&&15>Ta(this.Dh,this.Eh,this.x,this.y)&&(a.Bc=this.Mf,a.Yc=this.id,a.He=b,666>=c-t&&25>Ta(w,r,this.x,this.y)?(a.j.trigger(Nc.prototype.m.Or,a),a.mc=this.x,a.nc=this.y,a.j.trigger(Nc.prototype.m.no,a),r=w=-1E3,t=-1E4):(a.j.trigger(Nc.prototype.m.Sr,a),a.mc=this.x,a.nc=this.y,a.j.trigger(Nc.prototype.m.Jl,a),w=this.x,r=this.y,t=c),a.He=0)}};a.H=function(){this.Rt=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);
this.He=this.Yc=this.Bc=this.nc=this.mc=this.Tl=this.Sl=this.Rl=this.qs=this.os=this.ns=this.oh=this.nh=this.mh=0;this.Gv=0!==this.q[0];var a=0<this.j.ad?document:this.j.canvas,b=document;this.j.Tc?b=a=window.Canvas:this.j.ke&&(b=a=window);var c=this;"undefined"!==typeof PointerEvent?(a.addEventListener("pointerdown",function(a){c.qi(a)},!1),a.addEventListener("pointermove",function(a){c.pi(a)},!1),b.addEventListener("pointerup",function(a){c.oe(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.oe(a,
!0)},!1),this.j.canvas&&(this.j.canvas.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),document.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),this.j.canvas.addEventListener("gesturehold",function(a){a.preventDefault()},!1),document.addEventListener("gesturehold",function(a){a.preventDefault()},!1))):window.navigator.msPointerEnabled?(a.addEventListener("MSPointerDown",function(a){c.qi(a)},!1),a.addEventListener("MSPointerMove",function(a){c.pi(a)},!1),b.addEventListener("MSPointerUp",
function(a){c.oe(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.oe(a,!0)},!1),this.j.canvas&&(this.j.canvas.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),document.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1))):(a.addEventListener("touchstart",function(a){c.Ij(a)},!1),a.addEventListener("touchmove",function(a){c.Hj(a)},!1),b.addEventListener("touchend",function(a){c.tg(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.tg(a,!0)},
!1));if(this.Rt){var e=function(a){a=a.reading;c.Rl=a.accelerationX;c.Sl=a.accelerationY;c.Tl=a.accelerationZ},d=function(a){a=a.reading;c.mh=a.yawDegrees;c.nh=a.pitchDegrees;c.oh=a.rollDegrees},g=Windows.Devices.Sensors.Accelerometer.getDefault();g&&(g.reportInterval=Math.max(g.minimumReportInterval,16),g.addEventListener("readingchanged",e));var k=Windows.Devices.Sensors.Inclinometer.getDefault();k&&(k.reportInterval=Math.max(k.minimumReportInterval,16),k.addEventListener("readingchanged",d));document.addEventListener("visibilitychange",
function(){document.hidden||document.msHidden?(g&&g.removeEventListener("readingchanged",e),k&&k.removeEventListener("readingchanged",d)):(g&&g.addEventListener("readingchanged",e),k&&k.addEventListener("readingchanged",d))},!1)}else window.addEventListener("deviceorientation",function(a){c.mh=a.alpha||0;c.nh=a.beta||0;c.oh=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.ns=a.accelerationIncludingGravity.x||0,c.os=a.accelerationIncludingGravity.y||
0,c.qs=a.accelerationIncludingGravity.z||0);a.acceleration&&(c.Rl=a.acceleration.x||0,c.Sl=a.acceleration.y||0,c.Tl=a.acceleration.z||0)},!1);this.Gv&&!this.j.ob&&(document.addEventListener("mousemove",function(a){c.Fj(a)}),document.addEventListener("mousedown",function(a){c.Ej(a)}),document.addEventListener("mouseup",function(a){c.Gj(a)}));!this.j.nj&&this.j.sd&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(f,null,{frequency:40});this.j.nv(this);
this.enable=1==this.q[1];this.Vp=this.Up=null};a.wm=function(){this.j.ob||(g.left=this.j.canvas.offsetLeft,g.top=this.j.canvas.offsetTop);return g};a.pi=function(a){if(this.enable&&a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var b=this.Hc(a.pointerId),c=Ya(),e=this.Cc.length;if(0<=b){var d=this.wm(),b=this.touches[b];if(!(2>c-b.time))for(b.update(c,a.pageX-d.left,a.pageY-d.top,a.width||0,a.height||0,a.pressure||0),c=a.pageX-d.left,d=a.pageY-
d.top,a=0;a<e;a++)this.Cc[a].Ur&&this.Cc[a].Ur(b.identifier,c,d)}}};a.qi=function(a){if(this.enable&&a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&nb(a)&&a.preventDefault();var b=this.wm(),c=a.pageX-b.left,b=a.pageY-b.top;Ya();this.Bc=this.touches.length;this.Yc=a.pointerId;this.touches.push(l(c,b,a.pointerId,this.Bc));this.j.$a=!0;this.j.trigger(Nc.prototype.m.Il,this);this.j.trigger(Nc.prototype.m.qf,this);this.mc=c;this.nc=b;this.j.trigger(Nc.prototype.m.ak,
this);c=this.Cc.length;for(a=0;a<c;a++)this.Cc[a].qf&&this.Cc[a].qf(this.Yc,this.mc,this.nc);this.j.$a=!1}};a.oe=function(a,b){if(this.enable&&a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&nb(a)&&a.preventDefault();var c=this.Hc(a.pointerId);this.Bc=0<=c?this.touches[c].Mf:-1;this.Yc=0<=c?this.touches[c].id:-1;this.j.$a=!0;this.j.trigger(Nc.prototype.m.Hl,this);this.j.trigger(Nc.prototype.m.pf,this);0<=c&&(this.Up=this.touches[c].x,this.Vp=this.touches[c].y,this.j.trigger(Nc.prototype.m.Bw,
this));var e=this.Cc.length,g;for(g=0;g<e;g++)this.Cc[g].pf&&this.Cc[g].pf(this.Yc);0<=c&&(b||this.touches[c].jn(this,c),d(this.touches[c]),this.touches.splice(c,1));this.j.$a=!1}};a.Hj=function(a){if(this.enable){a.preventDefault&&a.preventDefault();var b=Ya(),c,e,d,g,k=this.Cc.length,h;c=0;for(e=a.changedTouches.length;c<e;c++)if(d=a.changedTouches[c],g=this.Hc(d.identifier),0<=g&&(h=this.wm(),g=this.touches[g],!(2>b-g.time))){g.update(b,d.pageX-h.left,d.pageY-h.top,2*(d.iJ||d.oK||d.xI||d.AI||0),
2*(d.jJ||d.pK||d.yI||d.BI||0),d.OG||d.nK||d.wI||d.zI||0);g=d.pageX-h.left;var f=d.pageY-h.top;for(h=0;h<k;h++)this.Cc[h].Ur&&this.Cc[h].Ur(d.identifier,g,f)}}};a.Ij=function(a){if(this.enable){a.preventDefault&&nb(a)&&a.preventDefault();var b=this.wm();Ya();this.j.$a=!0;var c,e,d,g,k=this.Cc.length;c=0;for(e=a.changedTouches.length;c<e;c++)if(d=a.changedTouches[c],g=this.Hc(d.identifier),-1===g){g=d.pageX-b.left;var h=d.pageY-b.top;this.Bc=this.touches.length;this.Yc=d.identifier;this.touches.push(l(g,
h,d.identifier,this.Bc));this.j.trigger(Nc.prototype.m.Il,this);this.j.trigger(Nc.prototype.m.qf,this);this.mc=g;this.nc=h;this.j.trigger(Nc.prototype.m.ak,this);for(d=0;d<k;d++)this.Cc[d].qf&&this.Cc[d].qf(this.Yc,this.mc,this.nc)}this.j.$a=!1}};a.tg=function(a,b){if(this.enable){a.preventDefault&&nb(a)&&a.preventDefault();this.j.$a=!0;var c,e,g,k=this.Cc.length,h;c=0;for(e=a.changedTouches.length;c<e;c++)if(g=a.changedTouches[c],g=this.Hc(g.identifier),0<=g){this.Bc=this.touches[g].Mf;this.Yc=this.touches[g].id;
this.j.trigger(Nc.prototype.m.Hl,this);this.j.trigger(Nc.prototype.m.pf,this);this.Up=this.touches[g].x;this.Vp=this.touches[g].y;this.j.trigger(Nc.prototype.m.Bw,this);for(h=0;h<k;h++)this.Cc[h].pf&&this.Cc[h].pf(this.Yc);b||this.touches[g].jn(this,g);d(this.touches[g]);this.touches.splice(g,1)}this.j.$a=!1}};a.cc=function(){return this.j.sd&&0===this.mh&&0!==v?90*v:this.mh};a.Hk=function(){return this.j.sd&&0===this.nh&&0!==h?90*h:this.nh};a.Rk=function(){return this.j.sd&&0===this.oh&&0!==e?90*
e:this.oh};a.zv=function(a){var b=this.wm();this.cursor.x=a.pageX-b.left;this.cursor.y=a.pageY-b.top};a.Ej=function(a){if(this.enable){this.zv(a);this.Aj=!0;a.preventDefault&&this.j.cj&&!this.j.le&&a.preventDefault();var b=this.Hc(0);-1!==b&&(d(this.touches[b]),Aa(this.touches,b));this.Ij({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})}};a.Fj=function(a){this.enable&&(this.zv(a),this.Aj&&this.Hj({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]}))};a.Gj=function(a){this.enable&&
(this.zv(a),this.Aj=!1,a.preventDefault&&this.j.cj&&!this.j.le&&a.preventDefault(),this.j.cj=!0,this.tg({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]}))};a.Ci=function(){if(this.enable){var a,b,c,e=Ya();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=e-50&&(c.tj=e),c.ku(this,a);this.Vp=this.Up=null}};k.prototype.qf=function(){return!0};k.prototype.pf=function(){return!0};k.prototype.ko=function(){return this.ko()};k.prototype.ak=function(a){return a?this.j.Of(a,this.mc,
this.nc,!1):!1};k.prototype.Il=function(a){a=Math.floor(a);return a===this.Bc};k.prototype.Hl=function(a){a=Math.floor(a);return a===this.Bc};k.prototype.Pr=function(){return!0};k.prototype.Sr=function(){return!0};k.prototype.Or=function(){return!0};k.prototype.Qr=function(a){return a?this.j.Of(a,this.mc,this.nc,!1):!1};k.prototype.Jl=function(a){return a?this.j.Of(a,this.mc,this.nc,!1):!1};k.prototype.no=function(a){return a?this.j.Of(a,this.mc,this.nc,!1):!1};k.prototype.Bw=function(a){return a?
this.j.Of(a,this.Up,this.Vp,!1):!1};b.m=new k;b.A=new c;c.prototype.QD=function(a){this.enable=1==a};q.prototype.bs=function(a){a.O(this.touches.length)};q.prototype.Gg=function(a,b){var c=this.He;if(0>c||c>=this.touches.length)a.B(0);else{var e,d,g,k,h;ia(b)?(e=this.j.Pa(0),d=e.scale,g=e.V,k=e.Na,h=e.C,e.scale=1,e.V=1,e.Na=1,e.C=0,a.B(e.W(this.touches[c].x,this.touches[c].y,!0)),e.scale=d,e.V=g,e.Na=k,e.C=h):(e=A(b)?this.j.Pa(b):this.j.cd(b))?a.B(e.W(this.touches[c].x,this.touches[c].y,!0)):a.B(0)}};
q.prototype.cs=function(a,b,c){b=Math.floor(b);if(0>b||b>=this.touches.length)a.B(0);else{var e,d,g,k;ia(c)?(c=this.j.Pa(0),e=c.scale,d=c.V,g=c.Na,k=c.C,c.scale=1,c.V=1,c.Na=1,c.C=0,a.B(c.W(this.touches[b].x,this.touches[b].y,!0)),c.scale=e,c.V=d,c.Na=g,c.C=k):(c=A(c)?this.j.Pa(c):this.j.cd(c))?a.B(c.W(this.touches[b].x,this.touches[b].y,!0)):a.B(0)}};q.prototype.bk=function(a,b,c){b=this.Hc(b);if(0>b)a.B(0);else{b=this.touches[b];var e,d,g,k;ia(c)?(c=this.j.Pa(0),e=c.scale,d=c.V,g=c.Na,k=c.C,c.scale=
1,c.V=1,c.Na=1,c.C=0,a.B(c.W(b.x,b.y,!0)),c.scale=e,c.V=d,c.Na=g,c.C=k):(c=A(c)?this.j.Pa(c):this.j.cd(c))?a.B(c.W(b.x,b.y,!0)):a.B(0)}};q.prototype.Hg=function(a,b){var c=this.He;if(0>c||c>=this.touches.length)a.B(0);else{var e,d,g,k,h;ia(b)?(e=this.j.Pa(0),d=e.scale,g=e.V,k=e.mb,h=e.C,e.scale=1,e.V=1,e.mb=1,e.C=0,a.B(e.W(this.touches[c].x,this.touches[c].y,!1)),e.scale=d,e.V=g,e.mb=k,e.C=h):(e=A(b)?this.j.Pa(b):this.j.cd(b))?a.B(e.W(this.touches[c].x,this.touches[c].y,!1)):a.B(0)}};q.prototype.ds=
function(a,b,c){b=Math.floor(b);if(0>b||b>=this.touches.length)a.B(0);else{var e,d,g,k;ia(c)?(c=this.j.Pa(0),e=c.scale,d=c.V,g=c.mb,k=c.C,c.scale=1,c.V=1,c.mb=1,c.C=0,a.B(c.W(this.touches[b].x,this.touches[b].y,!1)),c.scale=e,c.V=d,c.mb=g,c.C=k):(c=A(c)?this.j.Pa(c):this.j.cd(c))?a.B(c.W(this.touches[b].x,this.touches[b].y,!1)):a.B(0)}};q.prototype.ck=function(a,b,c){b=this.Hc(b);if(0>b)a.B(0);else{b=this.touches[b];var e,d,g,k;ia(c)?(c=this.j.Pa(0),e=c.scale,d=c.V,g=c.mb,k=c.C,c.scale=1,c.V=1,c.mb=
1,c.C=0,a.B(c.W(b.x,b.y,!1)),c.scale=e,c.V=d,c.mb=g,c.C=k):(c=A(c)?this.j.Pa(c):this.j.cd(c))?a.B(c.W(b.x,b.y,!1)):a.B(0)}};q.prototype.eo=function(a){this.touches.length?a.B(this.touches[0].x):a.B(0)};q.prototype.Dr=function(a,b){b=Math.floor(b);0>b||b>=this.touches.length?a.B(0):a.B(this.touches[b].x)};q.prototype.Er=function(a,b){var c=this.Hc(b);0>c?a.B(0):a.B(this.touches[c].x)};q.prototype.fo=function(a){this.touches.length?a.B(this.touches[0].y):a.B(0)};q.prototype.Fr=function(a,b){b=Math.floor(b);
0>b||b>=this.touches.length?a.B(0):a.B(this.touches[b].y)};q.prototype.Gr=function(a,b){var c=this.Hc(b);0>c?a.B(0):a.B(this.touches[c].y)};q.prototype.Lw=function(a){a.B(this.Yc)};b.D=new q;a.aw=function(a){this.Cc.push(a)};a.DK=function(a){Ga(this.Cc,a)};a.ko=function(){return 0<this.touches.length};var n=Nc.prototype.D;a.bs=function(){n.bs.call(this,this.lb);return this.lb.value};a.Gg=function(a){n.Gg.call(this,this.lb,a);return this.lb.value};a.cs=function(a,b){n.cs.call(this,this.lb,a,b);return this.lb.value};
a.bk=function(a,b){n.bk.call(this,this.lb,a,b);return this.lb.value};a.Hg=function(a){n.Hg.call(this,this.lb,a);return this.lb.value};a.ds=function(a,b){n.ds.call(this,this.lb,a,b);return this.lb.value};a.ck=function(a,b){n.ck.call(this,this.lb,a,b);return this.lb.value};a.eo=function(){n.eo.call(this,this.lb);return this.lb.value};a.Dr=function(a){n.Dr.call(this,this.lb,a);return this.lb.value};a.Er=function(a){n.Er.call(this,this.lb,a);return this.lb.value};a.fo=function(){n.fo.call(this,this.lb);
return this.lb.value};a.Fr=function(a){n.Fr.call(this,this.lb,a);return this.lb.value};a.Gr=function(a){n.Gr.call(this,this.lb,a);return this.lb.value};a.xK=function(a){if(null==this.cursor.x)return null;var b,c,e,d,g;ia(a)?(a=this.j.Pa(0),c=a.scale,e=a.V,d=a.Na,g=a.C,a.scale=1,a.V=1,a.Na=1,a.C=0,b=a.W(this.cursor.x,this.cursor.y,!0),a.scale=c,a.V=e,a.Na=d,a.C=g):(a=A(a)?this.j.Pa(a):this.j.cd(a))?b=a.W(this.cursor.x,this.cursor.y,!0):b=0;return b};a.yK=function(a){if(null==this.cursor.y)return null;
var b,c,e,d,g;ia(a)?(a=this.j.Pa(0),c=a.scale,e=a.V,d=a.Na,g=a.C,a.scale=1,a.V=1,a.Na=1,a.C=0,b=a.W(this.cursor.x,this.cursor.y,!1),a.scale=c,a.V=e,a.Na=d,a.C=g):(a=A(a)?this.j.Pa(a):this.j.cd(a))?b=a.W(this.cursor.x,this.cursor.y,!1):b=0;return b};a.nq=function(){return this.cursor.x};a.HL=function(){return this.cursor.y}})();function Tc(f){this.j=f}
(function(){function f(){this.images={}}function l(){this.width=this.y=this.x=this.text=null;this.prop={};this.Kb=this.Wk=null}function d(){this.Pe=[];this.fa=[]}function m(a,b,c,e){!0===b?a[c]=e:a.hasOwnProperty(c)&&delete a[c]}function k(a,b){var c=/\[b\]|\[\/b\]|\[i\]|\[\/i\]|\[size=(\d+)\]|\[\/size\]|\[color=([a-z]+|#[0-9abcdef]+)\]|\[\/color\]|\[u\]|\[u=([a-z]+|#[0-9abcdef]+)\]|\[\/u\]|\[shadow\]|\[\/shadow\]|\[stroke=([a-z]+|#[0-9abcdef]+)\]|\[\/stroke\]|\[img=([^\]]+)\]|\[\/img\]/ig;x.length=
0;for(var e,d=0,g=a.length,k=g;;){e=c.exec(a);if(!e)break;e=e[0];k=c.lastIndex-e.length;d<k&&x.push(a.substring(d,k));null==b&&x.push(e);d=c.lastIndex}d<g&&x.push(a.substring(d,g));return x}function c(){this.context=this.canvas=null;this.Pq={};this.we={text:"",x:0,y:0,boxWidth:0,boxHeight:0,ignore:null};this.si=new d;this.Aa=!0;this.Af={family:"Verdana",weight:"",Td:"12pt",color:"#000000",style:"normal",lA:""};this.stroke={lineWidth:1,lineJoin:"miter"};this.Fi={ir:1,offset:0};this.textAlign="start";
this.lineHeight="16";this.textBaseline="alphabetic";this.backgroundColor=""}function q(){this.fa=[]}function b(){}function a(){}function g(){}var e=Tc.prototype;e.H=function(){e.A.Zr=function(a){this.width!==a&&(this.width=a,this.L(),this.jj||this.Lj(this.mj))}};e.J=function(a){this.Z=a;this.j=a.j};var h=e.J.prototype;h.H=function(){};h.oi=function(){if(!this.U){var a,b,c;a=0;for(b=this.n.length;a<b;a++)c=this.n[a],c.qb=null,c.uc=null,c.rb=null}};e.G=function(a){this.type=a;this.j=a.j;this.Aa=!0};
var h=e.G.prototype,v=["miter","round","bevel"];h.H=function(){this.text="";this.$u(this.q[0]);this.visible=0===this.q[1];this.font=this.q[2];this.color=this.q[3];this.rd=this.q[4];this.xd=this.q[5];this.textShadow="";this.Vf=0===this.q[7];this.Vc=this.Gd=this.width;this.Fd=this.height;this.Gf=this.q[8];this.bx=this.q[9];this.yr=this.q[10];this.mj=1===this.q[11];this.Mr(1===this.q[12],this.width,this.height);this.fg=this.fe="";this.$b=this.Ac=this.Td=0;this.Au();this.rb=this.uc=this.qb=null;this.ln=
!1;this.Qd=this.j.xe;this.Vb?this.uh.set(0,0,1,1):this.uh=new wa(0,0,1,1);this.j.K&&this.j.Fh(this);this.Vb||(this.gb=new c);this.gb.CD(this);this.gb.textBaseline=0===this.bx?"alphabetic":"top";this.gb.stroke.lineWidth=this.q[13];this.gb.stroke.lineJoin=v[this.q[14]];this.gb.Fi.ir=this.q[15];this.gb.Fi.offset=this.q[16];this.MJ(this.q[17],this.q[18],this.q[19],this.q[20]);this.gb.backgroundColor=this.q[21];this.text&&this.Lj(this.mj)};h.Au=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.Td=parseInt(a[b].substr(0,a[b].length-2));this.sh=Math.ceil(this.Td/72*96)+4;0<b&&(this.fg=a[b-1]);this.fe=a[b+1];for(b+=2;b<a.length;b++)this.fe+=" "+a[b];break}};h.ya=function(){return{t:this.text,f:this.font,c:this.color,ha:this.rd,va:this.xd,wr:this.Vf,lho:this.Gf,vs:this.yr,fn:this.fe,fs:this.fg,ps:this.Td,pxh:this.sh,tw:this.Ac,th:this.$b,ts:this.textShadow,lrt:this.Qd,bl:this.gb.textBaseline,txtObj:this.gb.ya(),isLcs:this.jj,lcw:this.gq,lch:this.fq}};h.Ga=
function(a){this.text=a.t;this.font=a.f;this.color=a.c;this.rd=a.ha;this.xd=a.va;this.Vf=a.wr;this.Gf=a.lho;this.yr=a.vs;this.fe=a.fn;this.fg=a.fs;this.Td=a.ps;this.sh=a.pxh;this.Ac=a.tw;this.$b=a.th;this.textShadow=a.ts;this.Qd=a.lrt;this.Aa=!0;this.Vc=this.Gd=this.width;this.Fd=this.height;this.gb.textBaseline=a.bl;this.gb.Ga(a.txtObj);this.jj=a.isLcs;this.gq=a.lcw;this.fq=a.lch};h.Ba=function(){if(this.j.K&&this.rb&&300<=this.j.xe-this.Qd){var a=this.F;this.da();var b=this.ea;if(b.right<a.Ea||
b.bottom<a.Fa||b.left>a.La||b.top>a.Ka)this.j.K.deleteTexture(this.rb),this.qb=this.uc=this.rb=null}};h.Mc=function(){this.qb=this.uc=null;this.j.K&&this.rb&&this.j.K.deleteTexture(this.rb);this.rb=null};h.cc=function(){this.font=this.fg+" "+this.Td.toString()+"pt "+this.fe;this.Lj(this.mj)};h.$c=function(a,b,c){var e=!1,d=this.jj?this.gq:this.width,g=this.jj?this.fq:this.height;a.globalAlpha=b?1:this.opacity;var k=1;b&&(k=this.F.dd(),e||(a.save(),e=!0),a.scale(k,k));if(this.Aa||d!==this.Vc)this.gb.Aa=
!0,this.Aa=!1,this.Vc=d;this.da();var k=b?0:this.Pb.cb,h=b?0:this.Pb.eb;this.j.vd&&(k=k+.5|0,h=h+.5|0);if(!b){var f=d!==this.width||g!==this.height;if((b=0!==this.C)||f){e||(a.save(),e=!0);if(f){var f=this.width/d,m=this.height/g;a.scale(f,m);a.translate(k/f,h/m);h=k=0}b&&(0===k&&0===h||a.translate(k,h),a.rotate(this.C))}}b=this.sh;b+=this.Gf*this.j.devicePixelRatio;this.gb.canvas=a.canvas;this.gb.context=a;this.gb.Af.family=this.fe;this.gb.Af.Td=this.Td.toString()+"pt";this.gb.Af.style=this.fg;this.gb.Af.color=
this.color;this.gb.Af.lA=this.textShadow;this.gb.lineHeight=b;this.gb.we.text=this.text;this.gb.we.x=k;this.gb.we.y=h;this.gb.we.boxWidth=d;this.gb.we.boxHeight=g;this.gb.we.ignore=c;this.gb.YF();e&&a.restore();this.Qd=this.j.xe};h.Rc=function(a){if(!(1>this.width||1>this.height)){var b=this.Aa||this.ln;this.ln=!1;var c=this.F.dd(),e=this.F.Ib(),d=this.uh,g=c*this.width,k=c*this.height,h=Math.ceil(g),f=Math.ceil(k),m=this.j.ka/2,l=this.j.ja/2,q=this.jj?Math.ceil(c*this.gq):h,n=this.jj?Math.ceil(c*
this.fq):f;this.uc||(this.qb=document.createElement("canvas"),this.qb.width=q,this.qb.height=n,this.Gd=q,this.Fd=n,b=!0,this.uc=this.qb.getContext("2d"));if(q!==this.Gd||n!==this.Fd)this.qb.width=q,this.qb.height=n,this.rb&&(a.deleteTexture(this.rb),this.rb=null),b=!0;b&&(this.uc.clearRect(0,0,q,n),this.$c(this.uc,!0),this.rb||(this.rb=a.nd(h,f,this.j.pb,this.j.le)),a.ao(this.qb,this.rb,this.j.le));this.Gd=q;this.Fd=n;a.Xb(this.rb);a.Lf(this.opacity);a.te();a.translate(-m,-l);a.$d();var p=this.Pb,
b=this.F.Sa(p.cb,p.eb,!0,!0),m=this.F.Sa(p.cb,p.eb,!1,!0),l=this.F.Sa(p.Db,p.Eb,!0,!0),q=this.F.Sa(p.Db,p.Eb,!1,!0),n=this.F.Sa(p.yb,p.zb,!0,!0),r=this.F.Sa(p.yb,p.zb,!1,!0),v=this.F.Sa(p.wb,p.xb,!0,!0),p=this.F.Sa(p.wb,p.xb,!1,!0);if(this.j.vd||0===this.C&&0===e)var E=(b+.5|0)-b,t=(m+.5|0)-m,b=b+E,m=m+t,l=l+E,q=q+t,n=n+E,r=r+t,v=v+E,p=p+t;0===this.C&&0===e?(l=b+h,q=m,n=l,r=m+f,v=b,p=r,d.right=1,d.bottom=1):(d.right=g/h,d.bottom=k/f);a.gf(b,m,l,q,n,r,v,p,d);a.te();a.scale(c,c);a.Cn(-this.F.Ib());
a.translate((this.F.Ea+this.F.La)/-2,(this.F.Fa+this.F.Ka)/-2);a.$d();this.Qd=this.j.xe}};h.CE=function(){var a=this.uc;if(!a){this.qb=document.createElement("canvas");var a=Math.ceil(this.F.dd()*this.width),b=Math.ceil(this.F.Ib()*this.height);this.qb.width=a;this.qb.height=b;this.Gd=a;this.Fd=b;a=this.uc=this.qb.getContext("2d")}return a};h.IG=function(){var a=this.j.Xs?this.CE():this.j.Ab;this.$c(a,null,!0)};h.Lj=function(a){a&&(this.Aa=!0,this.IG());this.Aa=!0;this.j.aa=!0};h.$u=function(a){this.text!==
a&&(this.text=a,this.Lj(this.mj))};h.MJ=function(a,b,c,e){e=e.replace(/ /g,"");this.textShadow=a.toString()+"px "+b.toString()+"px "+c.toString()+"px "+e};h.Mr=function(a,b,c){this.jj=a;this.gq=b;this.fq=c};h.Zg=function(a){return this.gb.Zg(a)};h.ey=function(a,b,c){return this.gb.ey(a,b,c)};h.wx=function(a){return this.gb.wx(a)};e.m=new b;b.prototype.io=function(a,b){return b?this.text==a:mb(this.text,a)};e.A=new a;a.prototype.Ue=function(a){A(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);this.$u(a.toString())};
a.prototype.ho=function(a){A(a)&&(a=Math.round(1E10*a)/1E10);a=a.toString();0<a.length&&this.$u(this.text+a)};a.prototype.Mr=function(a,b){this.Mr(!0,a,b)};a.prototype.Qv=function(a,b,c){b&&(window.cc.Qv(a,b.xm(),c),this.Lj(this.mj))};a.prototype.Dw=function(a){window.cc.Dw(a);this.Lj(this.mj)};a.prototype.Cw=function(){window.cc.Cw();this.Lj(this.mj)};e.D=new g;g.prototype.Ii=function(a){a.O(this.gb.xt())};g.prototype.Hi=function(a){var b=this.gb.Ep().length*(this.sh+this.Gf)-this.Gf;0===this.bx&&
(b+=this.yr);a.B(b)};h=q.prototype;h.Do=function(){return 0<this.fa.length?this.fa.pop():null};h.Nx=function(a){this.fa.push(a)};h.zp=function(a){var b,c;b=0;for(c=a.length;b<c;b++)this.Nx(a[b]);a.length=0};h=c.prototype;h.CD=function(a){this.Z=a};h.Ep=function(){return this.si.Ep()};h.Zw=function(a){if(this.ZH(a)){var b;a.hasOwnProperty("b")||a.hasOwnProperty("i")?a.b&&a.i?b="bold italic":a.b?b="bold":a.i&&(b="italic"):b=this.Af.weight;this.context.font=b+" "+(a.weight||this.Af.weight)+" "+this.fy(a)+
" "+(a.family||this.Af.family);b=this.mt(a);"none"!==b.toLowerCase()&&(this.context.fillStyle=b);b=this.cy(a);"none"!==b.toLowerCase()&&(this.context.strokeStyle=b,this.context.lineWidth=this.stroke.lineWidth,this.context.lineJoin=this.stroke.lineJoin,this.context.miterLimit=2)}a=a.shadow?this.Af.lA:"";""!==a&&(a=a.split(" "),this.context.shadowOffsetX=parseFloat(a[0].replace("px","")),this.context.shadowOffsetY=parseFloat(a[1].replace("px","")),this.context.shadowBlur=parseFloat(a[2].replace("px",
"")),this.context.shadowColor=a[3])};h.ZH=function(a){return!a.hasOwnProperty("img")};h.fy=function(a){return a.hasOwnProperty("size")?a.size:this.Af.Td};h.mt=function(a){return a.hasOwnProperty("color")?a.color:this.Af.color};h.cy=function(a){var b;a.hasOwnProperty("stroke")?b=a.stroke:b="none";return b};h.$F=function(a,b,c){var e=this.context;e.save();this.Zw(a.prop);b+=a.x;c+=a.y;var d=a.prop.u;d&&this.aG(a.text,b,c,this.fy(a.prop),!0===d?this.mt(a.prop):d);if(a.prop.hasOwnProperty("img")){if(a=
window.cc.Yv(a.prop.img))c+=a.vK,"alphabetic"==this.textBaseline&&(c-=this.lineHeight),e.drawImage(a.KH,b,c,a.width,a.height)}else"none"!==this.cy(a.prop).toLowerCase()&&e.strokeText(a.text,b,c),"none"!==this.mt(a.prop).toLowerCase()&&e.fillText(a.text,b,c);e.restore()};h.aG=function(a,b,c,e,d){var g=this.context;a=g.measureText(a).width;c+=this.Fi.offset;"top"===this.textBaseline&&(c+=parseInt(e));g.beginPath();g.strokeStyle=d;g.lineWidth=this.Fi.ir;g.moveTo(b,c);g.lineTo(b+a,c);g.stroke()};h.aJ=
function(){if(""!==this.backgroundColor){var a=this.context;a.fillStyle=this.backgroundColor;a.fillRect(0,0,this.we.boxWidth,this.we.boxHeight)}};h.XF=function(a,b){var c=b.boxWidth,e=b.boxHeight,d=b.x,g=b.y,k=a.Ep(),h=k.length,f,e=1===this.Z.xd?Math.max((e-h*this.lineHeight)/2,0):2===this.Z.xd?Math.max(e-h*this.lineHeight-2,0):0,e=e+g;"alphabetic"==this.textBaseline&&(e+=this.Z.yr*this.Z.j.devicePixelRatio);for(var m,l,q,n,g=0;g<h;g++)if(f=a.Yx(g),0!==f)for(f=1===this.Z.rd?(c-f)/2:2===this.Z.rd?
c-f:0,f+=d,q=k[g],l=q.length,m=0;m<l;m++)n=q[m],""!==n.text&&this.$F(n,f,e)};h.Rk=function(){};var x=[],w=/\[b\]/i,r=/\[\/b\]/i,t=/\[i\]/i,n=/\[\/i\]/i,p=/\[size=(\d+)\]/i,G=/\[\/size\]/i,W=/\[color=([a-z]+|#[0-9abcdef]+)\]/i,T=/\[\/color\]/i,O=/\[u\]/i,y=/\[u=([a-z]+|#[0-9abcdef]+)\]/i,D=/\[\/u\]/i,u=/\[shadow\]/i,U=/\[\/shadow\]/i,F=/\[stroke=([a-z]+|#[0-9abcdef]+)\]/i,J=/\[\/stroke\]/i,X=/\[img=([^\]]+)\]/i,N=/\[\/img\]/i,E={};h.OA=function(a,b,c){null==b&&(b=this.we);a.Ox();var e=b.text;b=b.boxWidth;
if(""!==e){var d=0,g=0,h,e=k(e);if(0!==e.length){var f,l=e.length;h=null;for(f=0;f<l;f++)if(h=e[f],w.test(h))m(E,!0,"b",!0);else if(r.test(h))m(E,!1,"b");else if(t.test(h))m(E,!0,"i",!0);else if(n.test(h))m(E,!1,"i");else if(p.test(h))h=h.match(p),m(E,!0,"size",h[1]+"pt");else if(G.test(h))m(E,!1,"size");else if(W.test(h))h=h.match(W),m(E,!0,"color",h[1]);else if(T.test(h))m(E,!1,"color");else if(O.test(h))h.match(O),m(E,!0,"u",!0);else if(y.test(h))h=h.match(y),m(E,!0,"u",h[1]);else if(D.test(h))m(E,
!1,"u");else if(u.test(h))m(E,!0,"shadow",!0);else if(U.test(h))m(E,!1,"shadow");else if(F.test(h))h=h.match(F),m(E,!0,"stroke",h[1]);else if(J.test(h))m(E,!1,"stroke");else if(X.test(h)){h=h.match(X);h=h[1];var q=window.cc.Yv(h);q&&(m(E,!0,"img",h),c?a.Ul(null,null,null,null,E,0):(q.width>b-(d-0)&&(d=0,g+=this.lineHeight),a.Ul(null,d,g,q.width,E,0),d+=q.width),m(E,!1,"img"))}else if(N.test(h))m(E,!1,"img");else if(c)a.Ul(h,null,null,null,E,0);else{this.context.save();this.Zw(E);a:{var q=this.context,
v=b,x=this.Z.Vf,C=d-0;K.zp(B);if(!h||!h.length||2>=v)h=B;else{if(100>=h.length&&-1===h.indexOf("\n")){var I=q.measureText(h).width;if(I<=v-C){K.zp(B);B.push(K.Xk(h,I,H));h=B;break a}}I=h;h=B;var Q=void 0;if(x){z.length=0;for(var Q="",L=void 0,Fa=0;Fa<I.length;)if(L=I.charAt(Fa),"\n"===L)Q.length&&(z.push(Q),Q=""),z.push("\n"),++Fa;else if(" "===L||"\t"===L||"-"===L){do Q+=I.charAt(Fa),Fa++;while(Fa<I.length&&(" "===I.charAt(Fa)||"\t"===I.charAt(Fa)));z.push(Q);Q=""}else Fa<I.length&&(Q+=L,Fa++);Q.length&&
z.push(Q);Q=z}else Q=I;for(var I=Q,Q="",Ka=Fa=L=void 0,Bb=I.length,bb=0,Ka=0;Ka<Bb;Ka++)"\n"===I[Ka]?(bb>=h.length&&h.push(K.Xk(Q,q.measureText(Q).width,1)),bb++,Q="",C=0):(L=Q,Q+=I[Ka],Fa=q.measureText(Q).width,Fa>=v-C&&(bb>=h.length&&h.push(K.Xk(L,q.measureText(L).width,2)),bb++,Q=I[Ka],x||" "!==Q||(Q=""),C=0));Q.length&&(bb>=h.length&&h.push(K.Xk(Q,q.measureText(Q).width,H)),bb++);for(Ka=bb;Ka<h.length;Ka++)K.Nx(h[Ka]);h.length=bb}}q=h.length;for(v=0;v<q;v++)x=h[v],a.Ul(x.text,d,g,x.width,E,x.Wk),
x.Wk!==H?(d=0,g+=this.lineHeight):d+=x.width;this.context.restore()}for(var la in E)delete E[la]}}};h.YF=function(){var a=this.we;this.Aa&&(this.OA(this.si,a),this.Aa=!1);a.ignore||(this.context.textBaseline=this.textBaseline,this.context.textAlign=this.textAlign,this.aJ(),this.XF(this.si,a))};var Q=null;h.ey=function(a,b,c){if(null==c)return this.si.ay(a,b);null===Q&&(Q=new d);var e=this.we.text;this.we.text=c;this.OA(Q,this.we,!0);this.we.text=e;return Q.ay(a,b)};h.Zg=function(a){if(null==a)return this.si.Zg();
a=k(a,1);if(0===a.length)return"";var b,c=a.length,e="";for(b=0;b<c;b++)e+=a[b];return e};h.wx=function(a){return this.si.Vh(a)};h.xt=function(a){null==a&&(a=this.si);return a.gH()};h.ot=function(a){null==a&&(a=this.si);return a.ot()};h.cc=function(a,b){this.Pq[a]=b;return!0};h.Hk=function(a){return this.Pq[a]};h.trim=function(a){var b,c;a=a.replace(/^\s\s*/,"");b=/\s/;for(c=a.length;b.test(a.charAt(--c)););return a.slice(0,c+1)};h.ya=function(){return{cls:this.Pq,stroke:[this.stroke.lineWidth,this.stroke.lineJoin],
u:[this.Fi.ir,this.Fi.offset],bgc:this.backgroundColor}};h.Ga=function(a){this.Pq=a.cls;this.stroke.lineWidth=a.stroke[0];this.stroke.lineJoin=a.stroke[1];this.Fi.ir=a.u[0];this.Fi.offset=a.u[1];this.backgroundColor=a.bgc};var H=0,K=new q;K.Xk=function(a,b,c){var e=this.Do()||{};e.text=a;e.width=b;e.Wk=c;return e};var B=[],z=[],I=new q,C=new q,h=d.prototype;h.Ox=function(){var a,b=this.fa.length;for(a=0;a<b;a++)this.fa[a].length=0;I.zp(this.Pe);C.zp(this.fa)};h.Ul=function(a,b,c,e,d,g){var k=I.Do();
null===k&&(k=new l);k.JJ(a,b,c,e,d,g);a=this.Pe[this.Pe.length-1];null==a?k.Kb=0:k.Kb=a.pt();this.Pe.push(k);a=this.fa[this.fa.length-1];null==a&&(a=C.Do()||[],this.fa.push(a));a.push(k);g!==H&&(a=C.Do()||[],this.fa.push(a))};h.Rk=function(){return this.Pe};h.ot=function(){return this.Pe[this.Pe.length-1]};h.Ep=function(){return this.fa};h.Hk=function(a){a=this.fa[a];return null==a?0:a[0].Kb};h.cc=function(a){for(var b=!1,c;0<=a&&!(c=this.fa[a],b=null!=c&&0<c.length);a--);return b?c[c.length-1].Ux():
0};h.Vh=function(a){null==a&&(a=new d);a.Ox();var b,c=this.fa.length,e,g,k,h;for(b=0;b<c;b++)for(e=this.fa[b],k=e.length,g=0;g<k;g++)h=e[g],a.Ul(h.text,h.x,h.y,h.width,h.prop,h.Wk);return a};h.Yx=function(a){a=this.fa[a];return a?(a=a[a.length-1])?a.fH():0:0};h.gH=function(){var a,b=0,c,e=this.fa.length;for(c=0;c<e;c++)a=this.Yx(c),a>b&&(b=a);return b};h.Zg=function(){var a="",b,c=this.Pe.length;for(b=0;b<c;b++)a+=this.Pe[b].Zg();return a};h.nq=function(){var a=0,b,c=this.Pe.length;for(b=0;b<c;b++)a+=
this.Pe[b].Zg().length;return a};h.ay=function(a,b){null==a&&(a=0);if(null==b){var c=this.ot();if(null==c)return"";b=c.Ux()}for(var e="",d=this.Pe.length,g,k,h,f,m,l,c=0;c<d;c++)if(g=this.Pe[c],k=g.Zg(),h=g.Kb,f=g.pt(),!(f<a)){(m=h>=a&&f<b)||(k=k.substring(a-h,b-h));h=g.prop;null==l&&(l=L);m=void 0;for(m in l)h.hasOwnProperty(m)||(k="[/"+m+"]"+k);var q="";for(m in h)l[m]!==h[m]&&(q="size"===m?q+("[size="+h[m].replace("pt","")+"]"):"color"===m||"stroke"===m||"img"===m?q+("["+m+"="+h[m]+"]"):"u"===
m?!0===h[m]?q+"[u]":q+("[u="+h[m]+"]"):q+("["+m+"]"));k=q+k;e=e+k;l=g.prop;if(f>=b)break}return e};var L={},h=l.prototype;h.JJ=function(a,b,c,e,d,g){this.text=a;this.x=b;this.y=c;this.width=e;a=this.prop;null==a&&(a={});for(var k in a)d.hasOwnProperty(k)||delete a[k];for(k in d)a[k]=d[k];this.Wk=g;this.Kb=void 0};h.Zg=function(){var a=this.text||"";1==this.Wk&&(a+="\n");return a};h.pt=function(){return this.Kb+this.Zg().length};h.Ux=function(){return this.pt()-1};h.fH=function(){return this.x+this.width};
h=f.prototype;h.Qv=function(a,b,c){var e;b?b.canvas?e=b.canvas:b.tb&&b.tb.ba?e=b.tb.ba:e=null:e=null;b&&(this.images[a]={KH:e,width:b.width,height:b.height,vK:c})};h.Yv=function(a){return this.images[a]};h.Dw=function(a){this.images.hasOwnProperty(a)&&delete this.images[a]};h.Cw=function(){for(var a in this.images)delete this.images[a]};window.cc=new f})();function Uc(f){this.j=f}
(function(){function f(a){a%=h.length;0>a&&(a+=h.length);return a}function l(){var a,b,c,e;a=0;for(b=h.length;a<b;++a)c=h[a],(e=h[f(a-1)])&&!c&&(x=a),!e&&c&&(r=a)}var d=Uc.prototype;d.J=function(a){this.Z=a;this.j=a.j};var m=d.J.prototype,k=!1,c=null,q=null;m.H=function(){this.U||k||(k=!0,c=new Image,c.Js=15E3,this.j.Ar(c,"penumbra.png"))};m.oi=function(){if(!this.U){this.re=this.ca=null;var a,b,c;a=0;for(b=this.n.length;a<b;++a)c=this.n[a],c.ca=null,c.re=null}};m.al=function(){if(!this.U){var a,
b;a=0;for(b=this.n.length;a<b;++a)this.n[a].xx()}};d.G=function(a){this.type=a;this.j=a.j};m=d.G.prototype;m.H=function(){if(!q){var a=c.width,b=c.height,e=document.createElement("canvas");e.width=a;e.height=b;e=e.getContext("2d");e.clearRect(0,0,a,b);e.drawImage(c,0,0,a,b);q=e.getImageData(0,0,a,b).data}this.gi=this.x;this.hi=this.y;this.Ty=this.q[0];this.Rd=1E3;this.Nk=this.q[1];this.nx=this.q[2];this.tag=this.q[3];this.Yt=this.Zt=this.$t=0;this.Ky=this.x;this.Ly=this.y;this.re=this.ca=null;this.j.K?
this.xx():this.Nk=0;this.j.nv(this)};m.ox=function(a){return 1===this.nx?mb(this.tag,a):2===this.nx?!mb(this.tag,a):!0};m.Ci=function(){if(this.Ky!==this.x||this.Ly!==this.y)this.gi=this.x,this.hi=this.y;var a=this.F,b=(a.Ea+a.La)/2,c=(a.Fa+a.Ka)/2,e=a.La-a.Ea+this.Rd,d=a.Ka-a.Fa+this.Rd;if(b!==this.x||c!==this.y||e!==this.width||d!==this.height)this.x=b,this.y=c,this.width=e,this.height=d,this.L();this.Ky=this.x;this.Ly=this.y;this.Rd=1.5*Ta(a.Ea,a.Fa,a.La,a.Ka)};m.Mc=function(){this.j.K&&(this.ca&&
(this.j.K.deleteTexture(this.ca),this.ca=null),this.re&&(this.j.K.deleteTexture(this.re),this.re=null))};m.ya=function(){return{}};m.Ga=function(){};var b=[],a=[];m.$x=function(){this.j.av&&(this.j.Fp(this.F,this.j.av.DL,this.ea,b),Za(b))};var g=[],e=0,h=[],v=[],x=-1,w=-1,r=-1,t=-1,n=0,p=0,G=[],W=0,T=0,O=0,y=0,D=0,u=0,U=0,F=0,J=new gb([]);m.$c=function(c){this.$x();c.save();c.fillStyle="rgba("+this.$t+","+this.Zt+","+this.Yt+","+this.opacity+")";var e,d,g,k,f,m,l,q,n,p;e=0;for(d=b.length;e<d;++e)if(g=
b[e],g.R.shadowcasterEnabled&&this.ox(g.R.shadowcasterTag))if(g.da(),l=g.R.shadowcasterHeight,g.Gh){g.Cp(this.ea,a);q=g.x;n=g.y;g=0;for(k=a.length;g<k;++g){f=a[g];p=f.Ta;f.Sd?(f=f.Sd,m=p.left,p=p.top):(J.yi(p,0,0),f=J,p=m=0);this.Qo(f,q+m,n+p,l,!1);c.beginPath();c.moveTo(G[0],G[1]);f=2;for(m=G.length;f<m;f+=2)c.lineTo(G[f],G[f+1]);c.closePath();c.fill();M(h);M(G)}M(a)}else{g.ma&&!g.ma.eh()?(g.ma.$f(g.width,g.height,g.C),f=g.ma):(J.xi(g.Pb,g.x,g.y,g.width,g.height),f=J);this.Qo(f,g.x,g.y,l,Va(0>g.width,
0>g.height));c.beginPath();c.moveTo(G[0],G[1]);g=2;for(k=G.length;g<k;g+=2)c.lineTo(G[g],G[g+1]);c.closePath();c.fill();M(h);M(G)}c.restore();M(b)};m.jH=function(a,b,c,d){e=a.Id;M(g);var k,h=a.nb;p=n=0;var f;for(f=0;f<e;++f)k=2*f,a=h[k]+b,k=h[k+1]+c,d?(g.unshift(k),g.unshift(a)):(g.push(a),g.push(k)),n+=a,p+=k;n/=e;p/=e};m.Qo=function(a,b,c,d,k){this.jH(a,b,c,k);var f;M(h);M(v);M(G);t=w=r=x=-1;c=this.gi;k=this.hi;if(0<this.Nk)this.As(-this.Nk),l(),Ca(v,h),w=x,t=r,M(h),r=x=-1,this.As(this.Nk),l(),
-1!==x&&-1!==r&&-1!==w&&-1!==t&&this.ZE();else for(this.As(0),l(),a=0;a<e;++a)f=2*a,b=g[f],f=g[f+1],this.YE(a,c,k,b,f,d)};m.YE=function(a,b,c,e,d,g){var k;k=h[f(a-1)];var m=a===x,l=a===r;h[a]||k?(a=Oa(b,c,e,d),k=Ta(b,c,e,d),g=this.$E(b,c,e,d,g),b+=Math.cos(a)*(k+g),c+=Math.sin(a)*(k+g)):(b=e,c=d);l&&(G.push(e),G.push(d));G.push(b);G.push(c);m&&(G.push(e),G.push(d))};m.As=function(a){var b=this.gi,c=this.hi,d=b,k=c,f,m,l,q,r;for(f=0;f<e;++f)m=2*f,l=f+1,l=l===e?0:2*l,q=g[m],m=g[m+1],r=g[l],l=g[l+1],
0!==a&&(k=Oa(b,c,n,p)-Math.PI/2,d=b+Math.cos(k)*a,k=c+Math.sin(k)*a),h.push(Pa(Oa(q,m,d,k),Oa(q,m,r,l)-Math.PI/2)>=Math.PI/2)};var X=0,N=0;m.ZE=function(){for(var a=w,b,c,d;a=a%e,b=2*a,c=g[b],d=g[b+1],G.push(c),G.push(d),a!==r;++a);var k=this.Nk,h=Oa(this.gi,this.hi,n,p),a=this.gi+Math.cos(h-Math.PI/2)*k,f=this.hi+Math.sin(h-Math.PI/2)*k,h=Oa(a,f,c,d),m=Ta(a,f,c,d),a=a+Math.cos(h)*(m+this.Rd),f=f+Math.sin(h)*(m+this.Rd);b=2*w;var l=g[b];b=g[b+1];var h=Oa(this.gi,this.hi,n,p),q=this.gi+Math.cos(h+
Math.PI/2)*k,v=this.hi+Math.sin(h+Math.PI/2)*k,h=Oa(q,v,l,b),m=Ta(q,v,l,b),k=q+Math.cos(h)*(m+this.Rd),h=v+Math.sin(h)*(m+this.Rd);D=c;u=d;W=l;T=b;var t,x,J,m=a-c,q=f-d;t=k-l;x=h-b;J=-t*q+m*x;0===J?c=!1:(v=(-q*(c-l)+m*(d-b))/J,J=-t*q+m*x,0===J?c=!1:(l=(t*(d-b)-x*(c-l))/J,0<=v&&1>=v&&0<=l&&1>=l?(X=c+l*m,N=d+l*q,c=!0):c=!1));c?(G.push(X),G.push(N),U=X,F=N,O=X,y=N):(G.push(a),G.push(f),G.push(k),G.push(h),U=a,F=f,O=k,y=h)};m.$E=function(a,b,c,e,d){if(d>=this.Ty)return this.Rd;if(0>=d)return 0;a=Ta(a,
b,c,e);a=Math.atan(a/(this.Ty-d));d=d*Math.tan(a);d>=this.Rd&&(d=this.Rd);0>d&&(d=0);return d};m.Rc=function(c){c.Lf(this.opacity);this.$x();var e,d,g,k,f,m,l,q,n,p;e=0;for(d=b.length;e<d;++e)if(g=b[e],g.R.shadowcasterEnabled&&this.ox(g.R.shadowcasterTag))if(g.da(),f=g.R.shadowcasterHeight,g.Gh){g.Cp(this.ea,a);l=g.x;q=g.y;g=0;for(k=a.length;g<k;++g)m=a[g],n=m.Ta,m.Sd?(m=m.Sd,p=n.left,n=n.top):(J.yi(n,0,0),m=J,n=p=0),this.Qo(m,l+p,q+n,f,!1),6>G.length||(c.Xb(this.ca),c.vx(G),-1<x&&-1<w&&(c.Xb(this.re),
this.ip(c,!0)),-1<r&&-1<t&&(c.Xb(this.re),this.ip(c,!1)),M(h),M(G));M(a)}else g.ma&&!g.ma.eh()?(g.ma.$f(g.width,g.height,g.C),m=g.ma):(J.xi(g.Pb,g.x,g.y,g.width,g.height),m=J),this.Qo(m,g.x,g.y,f,Va(0>g.width,0>g.height)),6>G.length||(c.Xb(this.ca),c.vx(G),-1<x&&-1<w&&(c.Xb(this.re),this.ip(c,!0)),-1<r&&-1<t&&(c.Xb(this.re),this.ip(c,!1)),M(h),M(G));M(b)};m.ip=function(a,b){var c=this.gi,e=this.hi,d,k,h,f,m,l;b?(h=W,f=T,m=O,l=y):(h=D,f=u,m=U,l=F);var q=this.Nk,v=Oa(c,e,n,p),G=Math.PI/2;b&&(G=-G);
c+=Math.cos(v+G)*q;e+=Math.sin(v+G)*q;q=!1;if(b){if(q=x!==w)d=g[2*x],k=g[2*x+1]}else if(q=r!==t)d=g[2*t],k=g[2*t+1];var v=q?Oa(d,k,h,f):Oa(c,e,h,f),G=h+Math.cos(v)*this.Rd,J=f+Math.sin(v)*this.Rd,N,X,va,tb=va=0,ub=1;q&&(va=Oa(c,e,d,k),N=d+Math.cos(va)*this.Rd,X=k+Math.sin(va)*this.Rd,c=Oa(h,f,m,l),va=Pa(v,va)/Pa(c,va),v=Ta(d,k,h,f),v=v/(v+this.Rd),c=Oa(0,1,va,0),e=Ta(0,1,va,0),tb+=Math.cos(c)*v*e,ub+=Math.sin(c)*v*e);a.Nu(h,f,m,l,G,J,G,J,tb,ub,1,0,va,0,va,0);q&&a.Nu(d,k,G,J,N,X,N,X,0,1,va,0,0,0,0,
0)};m.xx=function(){this.j.K&&(this.ca&&(this.j.K.deleteTexture(this.ca),this.ca=null),this.re&&(this.j.K.deleteTexture(this.re),this.re=null),this.pF(),this.sF())};m.pF=function(){var a=document.createElement("canvas");a.width=16;a.height=16;var b=a.getContext("2d");b.fillStyle="rgb("+this.$t+","+this.Zt+","+this.Yt+")";b.fillRect(0,0,16,16);this.ca=this.j.K.nd(16,16,!1,!1,!0);this.j.K.ao(a,this.ca)};m.sF=function(){var a=c.width,b=c.height,e=this.$t,d=this.Zt,g=this.Yt,k=q,h=document.createElement("canvas");
h.width=a;h.height=b;var f=h.getContext("2d"),m=f.createImageData(a,b),l=m.data,n,p;n=0;for(p=l.length;n<p;n+=4)l[n]=e,l[n+1]=d,l[n+2]=g,l[n+3]=k[n+3];f.putImageData(m,0,0);this.re=this.j.K.nd(a,b,this.j.pb,!1,!1);this.j.K.ao(h,this.re)};d.m=new function(){};d.A=new function(){};d.D=new function(){}})();
function Vc(f){this.j=f;var l=this;this.j.ob||(jQuery(document).mousemove(function(d){l.Fj(d)}),jQuery(document).mousedown(function(d){l.Ej(d)}),jQuery(document).mouseup(function(d){l.Gj(d)}));f=0<this.j.ad?document:this.j.canvas;this.j.Tc?f=window.Canvas:this.j.ke&&(f=window);"undefined"!==typeof PointerEvent?(f.addEventListener("pointerdown",function(d){l.qi(d)},!1),f.addEventListener("pointermove",function(d){l.pi(d)},!1),f.addEventListener("pointerup",function(d){l.oe(d)},!1),f.addEventListener("pointercancel",
function(d){l.oe(d)},!1)):window.navigator.msPointerEnabled?(f.addEventListener("MSPointerDown",function(d){l.qi(d)},!1),f.addEventListener("MSPointerMove",function(d){l.pi(d)},!1),f.addEventListener("MSPointerUp",function(d){l.oe(d)},!1),f.addEventListener("MSPointerCancel",function(d){l.oe(d)},!1)):(f.addEventListener("touchstart",function(d){l.Ij(d)},!1),f.addEventListener("touchmove",function(d){l.Hj(d)},!1),f.addEventListener("touchend",function(d){l.tg(d)},!1),f.addEventListener("touchcancel",
function(d){l.tg(d)},!1))}
(function(){function f(c){var b,a;b=0;for(a=c.X.length;b<a;b++)if(c.X[b]instanceof m.G)return c.X[b];return null}function l(){}function d(){}var m=Vc.prototype,k={left:0,top:0};m.Ej=function(c){1===c.which&&this.qu("leftmouse",c.pageX,c.pageY)};m.Fj=function(c){1===c.which&&this.ru("leftmouse",c.pageX,c.pageY)};m.Gj=function(c){1===c.which&&this.su("leftmouse")};m.Ij=function(c){c.preventDefault&&nb(c)&&c.preventDefault();var b,a,d,e;b=0;for(a=c.changedTouches.length;b<a;b++)d=c.changedTouches[b],
e=d.identifier,this.qu(e?e.toString():"<none>",d.pageX,d.pageY)};m.Hj=function(c){c.preventDefault&&c.preventDefault();var b,a,d,e;b=0;for(a=c.changedTouches.length;b<a;b++)d=c.changedTouches[b],e=d.identifier,this.ru(e?e.toString():"<none>",d.pageX,d.pageY)};m.tg=function(c){c.preventDefault&&nb(c)&&c.preventDefault();var b,a,d;b=0;for(a=c.changedTouches.length;b<a;b++)d=c.changedTouches[b],d=d.identifier,this.su(d?d.toString():"<none>")};m.qi=function(c){c.pointerType!==c.MSPOINTER_TYPE_MOUSE&&
"mouse"!==c.pointerType&&(c.preventDefault&&nb(c)&&c.preventDefault(),this.qu(c.pointerId.toString(),c.pageX,c.pageY))};m.pi=function(c){c.pointerType!==c.MSPOINTER_TYPE_MOUSE&&"mouse"!==c.pointerType&&(c.preventDefault&&c.preventDefault(),this.ru(c.pointerId.toString(),c.pageX,c.pageY))};m.oe=function(c){c.pointerType!==c.MSPOINTER_TYPE_MOUSE&&"mouse"!==c.pointerType&&(c.preventDefault&&nb(c)&&c.preventDefault(),this.su(c.pointerId.toString()))};m.qu=function(c,b,a){var d=this.j.ob?k:jQuery(this.j.canvas).offset();
b=b-d.left;a=a-d.top;var e,h,m,l,d=this.ni.Md(),w,r,t,n=null;w=0;for(r=d.length;w<r;w++)if(t=d[w],e=f(t),e.enabled&&!e.Tg&&(e=t.F.W(b,a,!0),h=t.F.W(b,a,!1),t.da(),t.Qb(e,h)))n?t.F.index>n.F.index?(n=t,m=e,l=h):t.F.index===n.F.index&&t.ie()>n.ie()&&(n=t,m=e,l=h):(n=t,m=e,l=h);n&&f(n).HI(c,m,l)};m.ru=function(c,b,a){var d=this.j.ob?k:jQuery(this.j.canvas).offset();b=b-d.left;a=a-d.top;var e,h=this.ni.Md(),m,l,w;m=0;for(l=h.length;m<l;m++)e=h[m],w=f(e),!w.enabled||!w.Tg||w.Tg&&w.Us!==c||(d=e.F.W(b,a,
!0),e=e.F.W(b,a,!1),w.II(d,e))};m.su=function(c){var b=this.ni.Md(),a,d,e;a=0;for(d=b.length;a<d;a++)e=b[a],e=f(e),e.Tg&&e.Us===c&&e.LI()};m.J=function(c,b){this.behavior=c;this.Ub=b;this.j=c.j};m.J.prototype.H=function(){};m.G=function(c,b){this.type=c;this.behavior=c.behavior;this.k=b;this.j=c.j};var c=m.G.prototype;c.H=function(){this.Tg=!1;this.M=this.N=0;this.Us="<none>";this.xs=this.q[0];this.enabled=0!==this.q[1]};c.ya=function(){return{enabled:this.enabled}};c.Ga=function(c){this.enabled=
c.enabled;this.Tg=!1};c.HI=function(c,b,a){this.N=b-this.k.x;this.M=a-this.k.y;this.Tg=!0;this.Us=c;this.j.$a=!0;this.j.trigger(Vc.prototype.m.JC,this.k);this.j.$a=!1};c.II=function(c,b){var a=c-this.N,d=b-this.M;if(0===this.xs){if(this.k.x!==a||this.k.y!==d)this.k.x=a,this.k.y=d,this.k.L()}else 1===this.xs?this.k.x!==a&&(this.k.x=a,this.k.L()):2===this.xs&&this.k.y!==d&&(this.k.y=d,this.k.L())};c.LI=function(){this.Tg=!1;this.j.$a=!0;this.j.trigger(Vc.prototype.m.KC,this.k);this.j.$a=!1};c.Ba=function(){};
l.prototype.ZB=function(){return this.Tg};l.prototype.JC=function(){return!0};l.prototype.KC=function(){return!0};m.m=new l;d.prototype.Fg=function(c){this.enabled=0!==c;this.enabled||(this.Tg=!1)};m.A=new d;m.D=new function(){}})();function Wc(f){this.j=f}
(function(){function f(){}function l(){}var d=Wc.prototype;d.J=function(d,c){this.behavior=d;this.Ub=c;this.j=d.j};d.J.prototype.H=function(){};d.G=function(d,c){this.type=d;this.behavior=d.behavior;this.k=c;this.j=d.j};var m=d.G.prototype;m.H=function(){this.rs=1===this.q[0];this.eA=!1;this.pm=this.q[1];this.bo=this.q[2];this.lp=this.q[3];this.yF=this.q[4];this.yc=this.rs?0:3;this.Vb?this.jf.reset():this.jf=new eb;this.mi=this.k.opacity?this.k.opacity:1;this.rs&&(0===this.pm?(this.yc=1,0===this.bo&&
(this.yc=2)):(this.k.opacity=0,this.j.aa=!0))};m.ya=function(){return{fit:this.pm,wt:this.bo,fot:this.lp,s:this.yc,st:this.jf.na,mo:this.mi}};m.Ga=function(d){this.pm=d.fit;this.bo=d.wt;this.lp=d.fot;this.yc=d.s;this.jf.reset();this.jf.na=d.st;this.mi=d.mo};m.Ba=function(){this.jf.add(this.j.Cf(this.k));0===this.yc&&(this.k.opacity=this.jf.na/this.pm*this.mi,this.j.aa=!0,this.k.opacity>=this.mi&&(this.k.opacity=this.mi,this.yc=1,this.jf.reset(),this.j.trigger(Wc.prototype.m.LC,this.k)));1===this.yc&&
this.jf.na>=this.bo&&(this.yc=2,this.jf.reset(),this.j.trigger(Wc.prototype.m.pD,this.k));2===this.yc&&0!==this.lp&&(this.k.opacity=this.mi-this.jf.na/this.lp*this.mi,this.j.aa=!0,0>this.k.opacity&&(this.k.opacity=0,this.yc=3,this.jf.reset(),this.j.trigger(Wc.prototype.m.MC,this.k),1===this.yF&&this.j.Xf(this.k)))};m.QF=function(){this.yc=0;this.jf.reset();0===this.pm?(this.yc=1,0===this.bo&&(this.yc=2)):(this.k.opacity=0,this.j.aa=!0)};f.prototype.MC=function(){return!0};f.prototype.LC=function(){return!0};
f.prototype.pD=function(){return!0};d.m=new f;l.prototype.lE=function(){this.rs||this.eA||(this.mi=this.k.opacity?this.k.opacity:1,this.eA=!0);3===this.yc&&this.QF()};d.A=new l;d.D=new function(){}})();function Xc(f){this.j=f}
(function(){function f(){}function l(){}var d=Xc.prototype;d.J=function(d,c){this.behavior=d;this.Ub=c;this.j=d.j};d.J.prototype.H=function(){};d.G=function(d,c){this.type=d;this.behavior=d.behavior;this.k=c;this.j=d.j};var m=d.G.prototype;m.H=function(){this.Cg=this.zg=this.yc=this.rq=this.vq=0};m.ya=function(){return{ontime:this.vq,offtime:this.rq,stage:this.yc,stagetimeleft:this.zg,timeleft:this.Cg}};m.Ga=function(d){this.vq=d.ontime;this.rq=d.offtime;this.yc=d.stage;this.zg=d.stagetimeleft;this.Cg=
d.timeleft;null===this.Cg&&(this.Cg=Infinity)};m.Ba=function(){if(!(0>=this.Cg)){var d=this.j.Cf(this.k);this.Cg-=d;0>=this.Cg?(this.Cg=0,this.k.visible=!0,this.j.aa=!0,this.j.trigger(Xc.prototype.m.OC,this.k)):(this.zg-=d,0>=this.zg&&(0===this.yc?(this.k.visible=!1,this.yc=1,this.zg+=this.rq):(this.k.visible=!0,this.yc=0,this.zg+=this.vq),this.j.aa=!0))}};f.prototype.OC=function(){return!0};d.m=new f;l.prototype.yB=function(d,c,f){this.vq=d;this.rq=c;this.yc=1;this.zg=c;this.Cg=f;this.k.visible=
!1;this.j.aa=!0};d.A=new l;d.D=new function(){}})();function Yc(f){this.j=f}
(function(){function f(){}function l(){}var d=Yc.prototype;d.J=function(a,b){this.behavior=a;this.Ub=b;this.j=a.j};var m=d.J.prototype;m.H=function(){this.Dj=[]};m.LG=function(a){var b,c,d;b=0;for(c=a.X.length;b<c;++b)if(d=a.X[b],d instanceof Yc.prototype.G&&d.type===this)return d;return null};d.G=function(a,b){this.type=a;this.behavior=a.behavior;this.k=b;this.j=a.j};m=d.G.prototype;m.H=function(){this.DI=this.q[0];this.Iq=this.q[1];this.Is=R(this.q[2]);this.QA=0!==this.q[3]};m.Mc=function(){};m.ya=
function(){var a={r:this.Iq,c:this.Is,t:[]},b,c;b=0;for(c=this.type.Dj.length;b<c;b++)a.t.push(this.type.Dj[b].Oa);return a};m.Ga=function(a){this.Iq=a.r;this.Is=a.c;M(this.type.Dj);var b,c,d;b=0;for(c=a.t.length;b<c;b++)(d=this.j.ym(a.t[b]))&&this.type.Dj.push(d)};m.Ba=function(){};var k=[],c=new wa(0,0,0,0);m.JH=function(a,b){var e=this.k.x,d=this.k.y,f=this.k.C;0>this.k.width&&(f+=Math.PI);if(Ta(e,d,a,b)>this.Iq||Pa(f,Oa(e,d,a,b))>this.Is/2)return!1;var m,l;c.set(e,d,a,b);c.normalize();if(0===
this.DI)for(this.QA?this.j.by(this.k.F,c,k):(f=this.j.gv)&&Da(k,f.ni.Md()),f=0,m=k.length;f<m;++f){if(l=k[f],l.R.solidEnabled&&l!==this.k&&this.j.vA(e,d,a,b,l))return M(k),!1}else{if(this.QA)this.j.Fp(this.k.F,this.type.Dj,c,k);else for(f=0,m=this.type.Dj.length;f<m;++f)Da(k,this.type.Dj[f].n);f=0;for(m=k.length;f<m;++f)if(l=k[f],l!==this.k&&this.j.vA(e,d,a,b,l))return M(k),!1}M(k);return!0};var q=new ca,b=new ca;f.prototype.OB=function(a){if(!a)return!1;var c,e,d,k,f,m,l,t,n=this.j.XG().la();a=a.la();
var p=n.Cd(),G=a.Cd();n.pa&&M(n.wa);a.pa&&M(a.wa);var W=this.j.$i().ij;c=0;for(d=p.length;c<d;++c){f=p[c];t=!1;m=this.LG(f);e=0;for(k=G.length;e<k;++e)l=G[e],f!==l&&Va(m.JH(l.x,l.y),W)&&(t=!0,b.add(l));t&&q.add(f)}c=q.Md();e=b.Md();n.pa=!1;a.pa=!1;Ca(n.n,c);Ca(a.n,e);q.clear();b.clear();return n.Hp()};d.m=new f;l.prototype.ZD=function(a){this.Iq=a};d.A=new l;d.D=new function(){}})();function zc(f){this.j=f}
(function(){var f=zc.prototype;f.J=function(d,f){this.behavior=d;this.Ub=f;this.j=d.j};f.J.prototype.H=function(){};f.G=function(d,f){this.type=d;this.behavior=d.behavior;this.k=f;this.j=d.j};var l=f.G.prototype;l.H=function(){};l.Mc=function(){};l.Ba=function(){};f.m=new function(){};f.A=new function(){};f.D=new function(){}})();function Zc(f){this.j=f}
(function(){function f(){}function l(){}function d(){}var m=Zc.prototype;m.J=function(c,d){this.behavior=c;this.Ub=d;this.j=c.j};m.J.prototype.H=function(){};m.G=function(c,d){this.type=c;this.behavior=c.behavior;this.k=d;this.j=c.j;this.In=this.cr=this.br=this.Et=this.$l=this.km=this.Fk=this.Gk=this.An=this.Um=!1;this.ab=null;this.Zp=-1;this.pj=this.oj=0;this.up=!1;this.Yh=this.tf=0;this.sp=!0;this.M=this.N=0};var k=m.G.prototype;k.Tn=function(){this.Xa=Math.cos(this.Bf);this.Ya=Math.sin(this.Bf);
this.Jf=Math.cos(this.Bf-Math.PI/2);this.Kf=Math.sin(this.Bf-Math.PI/2);this.Xa=lb(this.Xa);this.Ya=lb(this.Ya);this.Jf=lb(this.Jf);this.Kf=lb(this.Kf);this.vm=this.Gb;0>this.Gb&&(this.Xa*=-1,this.Ya*=-1,this.Gb=Math.abs(this.Gb))};k.H=function(){this.pg=this.q[0];this.yd=this.q[1];this.nk=this.q[2];this.fh=this.q[3];this.vm=this.Gb=this.q[4];this.Tk=this.q[5];this.jp=0!==this.q[6];this.Vt=this.q[7]/1E3;this.vF=1===this.q[8];this.enabled=0!==this.q[9];this.Uf=!1;this.Kh=this.j.ue(this.k);this.au=
-1;this.Sj=0;this.Bf=R(90);this.Tn();var c=this;this.vF&&!this.j.ob&&(jQuery(document).keydown(function(d){c.tu(d)}),jQuery(document).keyup(function(d){c.uu(d)}));this.Vb||(this.ef=function(d){c.kh(d)});this.j.gk(this.ef);this.k.R.isPlatformBehavior=!0};k.ya=function(){return{ii:this.Et,lfx:this.oj,lfy:this.pj,lfo:this.ab?this.ab.uid:-1,am:this.tf,en:this.enabled,fall:this.Yh,ft:this.sp,dx:this.N,dy:this.M,ms:this.pg,acc:this.yd,dec:this.nk,js:this.fh,g:this.Gb,g1:this.vm,mf:this.Tk,wof:this.Uf,woj:this.Kh?
this.Kh.uid:-1,ga:this.Bf,edj:this.jp,cdj:this.$l,dj:this.km,sus:this.Vt}};k.Ga=function(c){this.Et=c.ii;this.oj=c.lfx;this.pj=c.lfy;this.Zp=c.lfo;this.tf=c.am;this.enabled=c.en;this.Yh=c.fall;this.sp=c.ft;this.N=c.dx;this.M=c.dy;this.pg=c.ms;this.yd=c.acc;this.nk=c.dec;this.fh=c.js;this.Gb=c.g;this.vm=c.g1;this.Tk=c.mf;this.Uf=c.wof;this.au=c.woj;this.Bf=c.ga;this.jp=c.edj;this.$l=c.cdj;this.km=c.dj;this.Vt=c.sus;this.In=this.cr=this.br=this.Fk=this.Gk=this.An=this.Um=!1;this.Sj=0;this.Tn()};k.rf=
function(){-1===this.Zp?this.ab=null:this.ab=this.j.jg(this.Zp);-1===this.au?this.Kh=null:this.Kh=this.j.jg(this.au)};k.kh=function(c){this.ab==c&&(this.ab=null)};k.Mc=function(){this.ab=null;this.j.zn(this.ef)};k.tu=function(c){switch(c.which){case 38:c.preventDefault();this.Gk=!0;break;case 37:c.preventDefault();this.Um=!0;break;case 39:c.preventDefault(),this.An=!0}};k.uu=function(c){switch(c.which){case 38:c.preventDefault();this.Fk=this.Gk=!1;break;case 37:c.preventDefault();this.Um=!1;break;
case 39:c.preventDefault(),this.An=!1}};k.ri=function(){this.Gk=this.An=this.Um=!1};k.cc=function(){return 0>this.Gb?-1:1};k.Qp=function(){var c=null,d=null,b,a;b=this.k.x;a=this.k.y;this.k.x+=this.Xa;this.k.y+=this.Ya;this.k.L();if(this.ab&&this.j.zc(this.k,this.ab)&&(!this.j.qr(this.ab.type,xc)||this.ab.R.solidEnabled))return this.k.x=b,this.k.y=a,this.k.L(),this.ab;(c=this.j.Lb(this.k))||0!==this.Yh||(d=this.j.ue(this.k,!0));this.k.x=b;this.k.y=a;this.k.L();if(c){if(this.j.zc(this.k,c))return null;
this.up=!1;return c}if(d&&d.length){a=c=0;for(b=d.length;c<b;c++)d[a]=d[c],this.j.zc(this.k,d[c])||a++;if(1<=a)return this.up=!0,d[0]}return null};k.Ba=function(){};k.Hu=function(){var c=this.j.Cf(this.k),d,b,a,g,e,k,f,m,l;this.Gk||this.In||(this.Fk=!1);var r=this.Um||this.br;a=this.An||this.cr;var t=(g=this.Gk||this.In)&&!this.Fk;this.In=this.cr=this.br=!1;if(this.enabled){this.Et&&(t=g=a=r=!1);g||(this.Sj=0);m=this.ab;l=!1;this.sp&&((this.j.Lb(this.k)||this.j.ue(this.k))&&this.j.Vd(this.k,-this.Xa,
-this.Ya,4,!0),this.sp=!1);!m||0!==this.M||m.y===this.pj&&m.x===this.oj||(d=m.x-this.oj,b=m.y-this.pj,this.k.x+=d,this.k.y+=b,this.k.L(),this.oj=m.x,this.pj=m.y,l=!0,this.j.Lb(this.k)&&this.j.Vd(this.k,-d,-b,2.5*Math.sqrt(d*d+b*b)));var n=this.Qp();if(b=this.j.Lb(this.k))if(this.k.R.inputPredicted)this.j.Vd(this.k,-this.Xa,-this.Ya,10,!1);else if(this.j.Mu(this.k,Math.max(this.k.width,this.k.height)/2))this.j.wh(this.k,b);else return;n?(this.$l=this.km=!1,0<this.M&&(this.Uf||(this.j.Gq(this.k,-this.Xa,
-this.Ya,n),this.Uf=!0),this.M=0),m!=n)?(this.ab=n,this.oj=n.x,this.pj=n.y,this.j.wh(this.k,n)):l&&(b=this.j.Lb(this.k))&&(this.j.wh(this.k,b),0!==d&&(0<d?this.j.Vd(this.k,-this.Jf,-this.Kf):this.j.Vd(this.k,this.Jf,this.Kf)),this.j.Vd(this.k,-this.Xa,-this.Ya)):g||(this.$l=!0);if(n&&t||!n&&this.jp&&g&&this.$l&&!this.km)m=this.k.x,l=this.k.y,this.k.x-=this.Xa,this.k.y-=this.Ya,this.k.L(),this.j.Lb(this.k)?t=!1:(this.Sj=this.Vt,this.j.trigger(Zc.prototype.m.RC,this.k),this.tf=2,this.M=-this.fh,t=!0,
n?this.Fk=!0:this.km=!0),this.k.x=m,this.k.y=l,this.k.L();n||(g&&0<this.Sj?(this.M=-this.fh,this.Sj-=c):(this.ab=null,this.M+=this.Gb*c,this.M>this.Tk&&(this.M=this.Tk)),t&&(this.Fk=!0));this.Uf=!!n;r==a&&(0>this.N?(this.N+=this.nk*c,0<this.N&&(this.N=0)):0<this.N&&(this.N-=this.nk*c,0>this.N&&(this.N=0)));r&&!a&&(this.N=0<this.N?this.N-(this.yd+this.nk)*c:this.N-this.yd*c);a&&!r&&(this.N=0>this.N?this.N+(this.yd+this.nk)*c:this.N+this.yd*c);this.N>this.pg?this.N=this.pg:this.N<-this.pg&&(this.N=
-this.pg);r=!1;0!==this.N&&(m=this.k.x,l=this.k.y,d=this.N*c*this.Jf,b=this.N*c*this.Kf,this.k.x+=this.Jf*(1<this.N?1:-1)-this.Xa,this.k.y+=this.Kf*(1<this.N?1:-1)-this.Ya,this.k.L(),g=!1,e=this.j.Lb(this.k),this.k.x=m+d,this.k.y=l+b,this.k.L(),a=this.j.Lb(this.k),!a&&n&&(a=this.j.ue(this.k))&&(this.k.x=m,this.k.y=l,this.k.L(),this.j.zc(this.k,a)?(a=null,g=!1):g=!0,this.k.x=m+d,this.k.y=l+b,this.k.L()),a?(d=Math.abs(this.N*c)+2,e||!this.j.Vd(this.k,-this.Xa,-this.Ya,d,g,a))?(this.j.wh(this.k,a),d=
Math.max(Math.abs(this.N*c*2.5),30),this.j.Vd(this.k,this.Jf*(0>this.N?1:-1),this.Kf*(0>this.N?1:-1),d,!1)?!n||g||this.up||(m=this.k.x,l=this.k.y,this.k.x+=this.Xa,this.k.y+=this.Ya,this.j.Lb(this.k)?this.j.Vd(this.k,-this.Xa,-this.Ya,3,!1)||(this.k.x=m,this.k.y=l,this.k.L()):(this.k.x=m,this.k.y=l,this.k.L())):(this.k.x=m,this.k.y=l,this.k.L()),g||(this.N=0)):!e&&!t&&Math.abs(this.M)<Math.abs(this.fh/4)&&(this.M=0,n||(r=!0)):(m=this.Qp(),n&&!m?(b=Math.ceil(Math.abs(this.N*c))+2,m=this.k.x,l=this.k.y,
this.k.x+=this.Xa*b,this.k.y+=this.Ya*b,this.k.L(),this.j.Lb(this.k)||this.j.ue(this.k)?this.j.Vd(this.k,-this.Xa,-this.Ya,b+2,!0):(this.k.x=m,this.k.y=l,this.k.L())):m&&0===this.M&&this.j.Gq(this.k,-this.Xa,-this.Ya,m)));if(0!==this.M){m=this.k.x;l=this.k.y;this.k.x+=this.M*c*this.Xa;this.k.y+=this.M*c*this.Ya;d=this.k.x;a=this.k.y;this.k.L();b=this.j.Lb(this.k);g=!1;if(!b&&0<this.M&&!n){if((g=0<this.Yh?null:this.j.ue(this.k,!0))&&g.length){if(this.Kh){this.k.x=m;this.k.y=l;this.k.L();f=e=0;for(k=
g.length;e<k;e++)g[f]=g[e],this.j.zc(this.k,g[e])||f++;g.length=f;this.k.x=d;this.k.y=a;this.k.L()}1<=g.length&&(b=g[0])}g=!!b}b&&(this.j.wh(this.k,b),this.Sj=0,d=g?Math.abs(this.M*c*2.5+10):Math.max(Math.abs(this.M*c*2.5+10),30),this.j.Vd(this.k,this.Xa*(0>this.M?1:-1),this.Ya*(0>this.M?1:-1),d,g,b)?(this.ab=b,this.oj=b.x,this.pj=b.y,(this.up=g)&&(r=!0),this.M=0):(this.k.x=m,this.k.y=l,this.k.L(),this.Uf=!0,g||(this.M=0)))}3!==this.tf&&0<this.M&&!n&&(this.j.trigger(Zc.prototype.m.NC,this.k),this.tf=
3);if(n||r)3===this.tf||r||t&&0===this.M?(this.j.trigger(Zc.prototype.m.VC,this.k),this.tf=0===this.N&&0===this.M?0:1):(0!==this.tf&&0===this.N&&0===this.M&&(this.j.trigger(Zc.prototype.m.lD,this.k),this.tf=0),1===this.tf||0===this.N&&0===this.M||t||(this.j.trigger(Zc.prototype.m.XC,this.k),this.tf=1));0<this.Yh&&this.Yh--;this.Kh=this.j.ue(this.k)}};f.prototype.eC=function(){return 0!==this.N||0!==this.M};f.prototype.fC=function(){if(0!==this.M)return!1;var c=null,d=null,b,a;b=this.k.x;a=this.k.y;
this.k.x+=this.Xa;this.k.y+=this.Ya;this.k.L();(c=this.j.Lb(this.k))||0!==this.Yh||(d=this.j.ue(this.k,!0));this.k.x=b;this.k.y=a;this.k.L();if(c)return!this.j.zc(this.k,c);if(d&&d.length){a=c=0;for(b=d.length;c<b;c++)d[a]=d[c],this.j.zc(this.k,d[c])||a++;if(1<=a)return!0}return!1};f.prototype.bC=function(){return 0>this.M};f.prototype.$B=function(){return 0<this.M};f.prototype.RC=function(){return!0};f.prototype.NC=function(){return!0};f.prototype.lD=function(){return!0};f.prototype.XC=function(){return!0};
f.prototype.VC=function(){return!0};m.m=new f;l.prototype.XD=function(c){this.pg=c;0>this.pg&&(this.pg=0)};l.prototype.VD=function(c){this.fh=c;0>this.fh&&(this.fh=0)};l.prototype.Vr=function(c){this.vm!==c&&(this.Gb=c,this.Tn(),this.j.Lb(this.k)&&(this.j.Vd(this.k,this.Xa,this.Ya,10),this.k.x+=2*this.Xa,this.k.y+=2*this.Ya,this.k.L()),this.ab=null)};l.prototype.hE=function(c){switch(c){case 0:this.br=!0;break;case 1:this.cr=!0;break;case 2:this.In=!0}};l.prototype.eE=function(c){this.N=c};l.prototype.fE=
function(c){this.M=c};l.prototype.Fg=function(c){this.enabled!==(1===c)&&(this.enabled=1===c,this.enabled||(this.ab=null))};l.prototype.xB=function(){var c=this.k.x,d=this.k.y;this.k.x+=this.Xa;this.k.y+=this.Ya;this.k.L();var b=this.j.ue(this.k,!1);this.k.x=c;this.k.y=d;this.k.L();b&&(this.Yh=3,this.ab=null)};l.prototype.OD=function(c){this.jp=0!==c};m.A=new l;d.prototype.$r=function(c){c.B(Math.sqrt(this.N*this.N+this.M*this.M))};d.prototype.sC=function(c){c.B(this.pg)};d.prototype.nC=function(c){c.B(this.fh)};
d.prototype.rE=function(c){c.B(this.N)};d.prototype.sE=function(c){c.B(this.M)};m.D=new d})();function $c(f){this.j=f}
(function(){function f(a){var b,c;b=0;for(c=a.X.length;b<c;b++)if(a.X[b]instanceof m.G)return a.X[b];return null}function l(){}function d(){}var m=$c.prototype;m.J=function(a,b){this.behavior=a;this.Ub=b;this.j=a.j};var k=m.J.prototype;k.H=function(){this.Rf=null};k.Ll=function(){if(null==this.Rf){var a=this.j.types,b,c;for(b in a)if(c=a[b].n[0],null!=c&&"TOUCHWRAP"==c.gF){this.Rf=c;this.Rf.aw(this);break}}};var c=[],q=[];k.qf=function(a,b,e){c.length=0;q.length=0;var d=this.Ub.n,k,m,l,r,t=d.length;
for(r=0;r<t;r++)k=d[r],k.da(),m=k.F.W(b,e,!0),l=k.F.W(b,e,!1),k.Qb(m,l)&&c.push(k);r=c.length;if(0===r)return c.length=0,q.length=0,!1;t=r;for(r=q.length=0;r<t;r++)if(k=c[r])b=f(k),null!=b&&b.cI()&&q.push(b);t=q.length;if(0===t)return c.length=0,q.length=0,!1;e=q[0];d=e.k;for(r=1;r<t;r++)if(b=q[r],k=b.k,k.F.index>d.F.index||k.F.index==d.F.index&&k.ie()>d.ie())e=b,d=k;c.length=0;q.length=0;e.WJ(a);return!0};k.pf=function(a){var c=this.Ub.n,e,d=c.length,k;for(e=0;e<d;e++)if(k=c[e])k=f(k),null!=k&&k.tl==
a&&k.Rh==b&&k.Lx()};m.G=function(a,b){this.type=a;this.behavior=a.behavior;this.k=b;this.j=a.j;a.Ll()};var k=m.G.prototype,b=3;k.H=function(){this.Kp=1==this.q[0];this.kF=this.q[1];this.QH=1==this.q[2];this.$H=1==this.q[3];this.tl=null;this.Rh=0;this.ny=!0;this.Lq=!1;this.Sb={Yk:"",click:"",Jp:"",Kq:"",ct:0,yx:null};this.By=!1};k.Ba=function(){this.Ow();if(1!=this.Rh){var a=this.DE();this.vE(a);this.wE(a)}};k.cI=function(){var a;this.$H?a=this.j.Pa(this.k.F.index).visible&&this.k.visible:a=!0;return 2==
this.Rh&&a};k.zE=function(a){this.Sb.ct=this.k.zf;this.k.zf=0;null!=a&&Y.prototype.A.Fw.apply(this.k,[a])};k.yE=function(a){var b=this.Sb.ct;null!=b&&(this.k.zf=b);""!=a&&Y.prototype.A.Ew.apply(this.k,[a,1])};k.ek=function(a,b){"number"==typeof a?this.zE(a):""!=a&&this.yE(a);this.Sb.yx=b};k.Ow=function(){this.ny&&(this.Sb.ct=this.k.zf,null!=this.Kp&&(this.Kp?this.yo():this.gs()),this.ny=!1)};k.DE=function(){var a=this.KB(),b=this.LB();this.k.da();return this.k.Qb(a,b)};k.vE=function(a){this.Rh!=b||
a||(this.kx(),this.yo())};k.wE=function(a){a?this.Lq||(this.ek(this.Sb.Kq,3),this.Lq=!0,this.j.trigger($c.prototype.m.hD,this.k)):this.Lq&&(this.Lq=!1,3==this.Sb.yx&&this.ek(this.Sb.Yk,0),this.j.trigger($c.prototype.m.iD,this.k))};k.Ql=function(a){this.Rh=a};k.WJ=function(a){0==this.kF?(this.tl=a,this.Ql(b),this.j.trigger($c.prototype.m.DC,this.k)):this.Lx()};k.yo=function(){this.tl=this.Kp=null;this.Ql(2);this.ek(this.Sb.Yk,0);this.j.trigger($c.prototype.m.vC,this.k)};k.gs=function(){this.tl=this.Kp=
null;this.Ql(1);this.ek(this.Sb.Jp,2);this.j.trigger($c.prototype.m.QC,this.k)};k.kx=function(){this.j.trigger($c.prototype.m.CC,this.k)};k.Lx=function(){this.Ql(4);this.ek(this.Sb.click,1);this.By=!1;this.j.trigger($c.prototype.m.Cl,this.k);this.QH&&!this.By&&(this.ek(this.Sb.Yk,0),this.Ql(2))};k.KB=function(){return this.type.Rf.bk(this.tl,this.k.F.index)};k.LB=function(){return this.type.Rf.ck(this.tl,this.k.F.index)};k.ya=function(){return{en:1!=this.Rh,fn:this.Sb.Yk,fc:this.Sb.click,fi:this.Sb.Jp,
fr:this.Sb.Kq}};k.Ga=function(a){a.en?this.yo():this.gs();this.Sb.Yk=a.fn;this.Sb.click=a.fc;this.Sb.Jp=a.fi;this.Sb.Kq=a.fr};k.cc=function(a){a!=this.Rh&&(this.Rh==b&&this.kx(),2==a?this.yo():this.gs())};m.m=new l;l.prototype.Cl=function(){return!0};l.prototype.CC=function(){return!0};l.prototype.DC=function(){return!0};l.prototype.vC=function(){return!0};l.prototype.QC=function(){return!0};l.prototype.hD=function(){return!0};l.prototype.iD=function(){return!0};m.A=new d;d.prototype.ND=function(a,
b,c,d){this.Sb.Yk=a;this.Sb.click=b;this.Sb.Jp=c;this.Sb.Kq=d;this.Ow()};m.D=new function(){}})();function ad(f){this.j=f}
(function(){function f(b){if(b[1]<b[0]){var a=b[0];b[0]=b[1];b[1]=a}}function l(b){if(null==b||"object"!=typeof b)return b;var a=b.constructor(),c;for(c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);return a}function d(){}function m(){}function k(){}var c=ad.prototype;c.J=function(b,a){this.behavior=b;this.Ub=a;this.j=b.j};c.J.prototype.H=function(){};c.G=function(b,a){this.type=b;this.behavior=b.behavior;this.k=a;this.j=b.j};var q=c.G.prototype;q.H=function(){this.mode=this.q[0];this.Jg=this.q[1];this.xk=
1==this.q[2];this.Ha=[this.q[3],this.q[4]];this.$n=1==this.q[5];this.Va=[this.q[6],this.q[7]];f(this.Ha);f(this.Va);this.Ip={uid:-1,p0:null,p1:null};this.Iv={uid:-1,p0:null,p1:null}};q.Ba=function(){var b,a;0==this.mode?(b=this.iF(),a=this.jF()):1==this.mode?(b=this.tK(),a=this.uK()):2==this.mode&&(b=this.tI(),a=this.uI());if(b||a)this.j.trigger(ad.prototype.m.PC,this.k),this.k.L()};q.Bv=function(){var b=this.Ip,a=this.j.jg(b.uid);null!=a&&(this.Ha[0]=a.Fe(b.p0,!0),this.Ha[1]=a.Fe(b.p1,!0),f(this.Ha))};
q.Ev=function(){var b=this.Iv,a=this.j.jg(b.uid);null!=a&&(this.Va[0]=a.Fe(b.p0,!1),this.Va[1]=a.Fe(b.p1,!1),f(this.Va))};q.iF=function(){if(!this.xk)return!1;var b=this.k.x;if(0==this.Jg)this.Jc(1)?(this.k.x=this.Ha[0],this.j.trigger(ad.prototype.m.El,this.k)):this.Jc(2)&&(this.k.x=this.Ha[1],this.j.trigger(ad.prototype.m.Fl,this.k));else{this.k.da();var a=this.k.ea;this.Jc(1)?(this.k.x=this.Ha[0]+(this.k.x-a.left),this.j.trigger(ad.prototype.m.El,this.k)):this.Jc(2)&&(this.k.x=this.Ha[1]-(a.right-
this.k.x),this.j.trigger(ad.prototype.m.Fl,this.k))}return b!=this.k.x};q.jF=function(){if(!this.$n)return!1;var b=this.k.y;if(0==this.Jg)this.Jc(4)?(this.k.y=this.Va[0],this.j.trigger(ad.prototype.m.Gl,this.k)):this.Jc(8)&&(this.k.y=this.Va[1],this.j.trigger(ad.prototype.m.Dl,this.k));else{this.k.da();var a=this.k.ea;this.Jc(4)?(this.k.y=this.Va[0]+(this.k.y-a.top),this.j.trigger(ad.prototype.m.Gl,this.k)):this.Jc(8)&&(this.k.y=this.Va[1]-(a.bottom-this.k.y),this.j.trigger(ad.prototype.m.Dl,this.k))}return b!=
this.k.y};q.tK=function(){if(!this.xk)return!1;var b=this.k.x;if(0==this.Jg)this.Jc(1)?(this.k.x=this.Ha[1]+1,this.j.trigger(ad.prototype.m.El,this.k)):this.Jc(2)&&(this.k.x=this.Ha[0]-1,this.j.trigger(ad.prototype.m.Fl,this.k));else{this.k.da();var a=this.k.ea;this.Jc(1)?(this.k.x=this.Ha[1]+1+(a.right-this.k.x),this.j.trigger(ad.prototype.m.El,this.k)):this.Jc(2)&&(this.k.x=this.Ha[0]-1-(this.k.x-a.left),this.j.trigger(ad.prototype.m.Fl,this.k))}return b!=this.k.x};q.uK=function(){if(!this.$n)return!1;
var b=this.k.y;if(0==this.Jg)this.Jc(4)?(this.k.y=this.Va[1]+1,this.j.trigger(ad.prototype.m.Gl,this.k)):this.Jc(8)&&(this.k.y=this.Va[0]-1,this.j.trigger(ad.prototype.m.Dl,this.k));else{this.k.da();var a=this.k.ea;this.Jc(4)?(this.k.y=this.Va[1]+1+(a.bottom-this.k.y),this.j.trigger(ad.prototype.m.Gl,this.k)):this.Jc(8)&&(this.k.y=this.Va[0]-1-(this.k.y-a.top),this.j.trigger(ad.prototype.m.Dl,this.k))}return b!=this.k.y};q.tI=function(){if(!this.xk)return!1;var b=this.Jc(1),a=this.Jc(2),c=b||a;if(c){var d=
this.Ha[1]-this.Ha[0],k=(this.k.x-this.Ha[0])%d;0>k&&(k+=d);this.k.x=k+this.Ha[0]}b?this.j.trigger(ad.prototype.m.El,this.k):a&&this.j.trigger(ad.prototype.m.Fl,this.k);return c};q.uI=function(){if(!this.$n)return!1;var b=this.Jc(4),a=this.Jc(8),c=b||a;if(c){var d=this.Va[1]-this.Va[0],k=(this.k.y-this.Va[0])%d;0>k&&(k+=d);this.k.y=k+this.Va[0]}b?this.j.trigger(ad.prototype.m.Gl,this.k):a&&this.j.trigger(ad.prototype.m.Dl,this.k);return c};q.Jc=function(b){this.Bv();this.Ev();var a=!1;if(0==this.Jg)1===
(b&1)&&(a|=this.k.x<this.Ha[0]),1===(b>>1&1)&&(a|=this.k.x>this.Ha[1]),1===(b>>2&1)&&(a|=this.k.y<this.Va[0]),1===(b>>3&1)&&(a|=this.k.y>this.Va[1]);else{this.k.da();var c=this.k.ea;if(0===this.mode)1===(b&1)&&(a|=c.left<this.Ha[0]),1===(b>>1&1)&&(a|=c.right>this.Ha[1]),1===(b>>2&1)&&(a|=c.top<this.Va[0]),1===(b>>3&1)&&(a|=c.bottom>this.Va[1]);else if(1===this.mode||2===this.mode)1===(b&1)&&(a|=c.right<this.Ha[0]),1===(b>>1&1)&&(a|=c.left>this.Ha[1]),1===(b>>2&1)&&(a|=c.bottom<this.Va[0]),1===(b>>
3&1)&&(a|=c.top>this.Va[1])}return a};q.Rk=function(){var b,a;this.Bv();0==this.Jg?(b=this.k.x-this.Ha[0],a=this.Ha[1]-this.Ha[0]):(this.k.da(),b=this.k.ea.left-this.Ha[0],a=this.Ha[1]-this.Ha[0]-(this.k.ea.right-this.k.ea.left));return Ha(b/a,0,1)};q.nq=function(){var b,a;this.Ev();0==this.Jg?(b=this.k.y-this.Va[0],a=this.Va[1]-this.Va[0]):(this.k.da(),b=this.k.ea.top-this.Va[0],a=this.Va[1]-this.Va[0]-(this.k.ea.bottom-this.k.ea.top));return Ha(b/a,0,1)};q.cc=function(b){b=Ha(b,0,1);this.Bv();var a,
c;0==this.Jg?(c=this.Ha[0],a=this.Ha[1]):(this.k.da(),c=this.Ha[0]+(this.k.x-this.k.ea.left),a=this.Ha[1]-(this.k.ea.right-this.k.x));return c+(a-c)*b};q.Hk=function(b){b=Ha(b,0,1);this.Ev();var a,c;0==this.Jg?(c=this.Va[0],a=this.Va[1]):(this.k.da(),c=this.Va[0]+(this.k.y-this.k.ea.top),a=this.Va[1]-(this.k.ea.bottom-this.k.y));return c+(a-c)*b};q.ya=function(){return{he:this.xk,hb:this.Ha,ve:this.$n,vb:this.Va,hp:l(this.Ip),vp:l(this.Iv)}};q.Ga=function(b){this.Ao=b.he;this.Ha=b.hb;this.$n=b.ve;
this.Va=b.vb;this.Ip=b.hp;this.Iv=b.vp};c.m=new d;d.prototype.PC=function(){return!0};d.prototype.El=function(){return!0};d.prototype.Fl=function(){return!0};d.prototype.Gl=function(){return!0};d.prototype.Dl=function(){return!0};c.A=new m;m.prototype.tB=function(b){this.xk=1==b};m.prototype.SD=function(b,a){this.Ha[0]=b;this.Ha[1]=a;f(this.Ha);this.Ip.uid=-1};c.D=new k;k.prototype.QB=function(b){b.O(this.xk?1:0)}})();function bd(f){this.j=f}
(function(){var f=bd.prototype;f.J=function(d,f){this.behavior=d;this.Ub=f;this.j=d.j};f.J.prototype.H=function(){};f.G=function(d,f){this.type=d;this.behavior=d.behavior;this.k=f;this.j=d.j};var l=f.G.prototype;l.H=function(){this.Ao=1==this.q[0];this.uF=1==this.q[1];this.rI=1==this.q[2];this.pI=1==this.q[3];this.RE=1==this.q[4];this.nF=1==this.q[5];this.Rw=this.GE();this.EE()};l.HE=function(){return Qc&&this.k instanceof Qc.prototype.G?"Text":Pc&&this.k instanceof Pc.prototype.G?"Spritefont2":lc.kl&&
this.k instanceof lc.kl.prototype.G?"rex_TagText":""};l.GE=function(){this.kv=this.HE();var d;"Text"==this.kv?d=Qc.prototype.A.Ue:"Spritefont2"==this.kv?d=Pc.prototype.A.Ue:"rex_TagText"==this.kv?d=lc.kl.prototype.A.Ue:d=null;return d};l.EE=function(){this.kq=this.lq=null;this.ov=this.ls=0};l.Ue=function(d){null!=this.Rw&&this.Rw.call(this.k,d)};l.Ba=function(){if(this.Ao){var d="",f=this.j.uk;this.uF&&(d+=Math.floor(f).toString()+"  ");if(this.rI&&0!=f){if(null==this.lq||f<this.lq)this.lq=this.j.uk;
d+="min:"+Math.floor(this.lq).toString()+"  "}if(this.pI){if(null==this.kq||f>this.kq)this.kq=this.j.uk;d+="max:"+Math.floor(this.kq).toString()+"  "}this.RE&&(this.ls+=f,this.ov+=1,d+="avg:"+Math.floor(this.ls/this.ov).toString());this.nF&&(d+=" CPU:"+Math.floor(this.j.To/10).toString()+"%  ");""!=d&&this.Ue(d)}};l.ya=function(){return{en:this.Ao}};l.Ga=function(d){this.Ao=d.en};f.m=new function(){};f.A=new function(){};f.D=new function(){}})();function cd(f){this.j=f}
(function(){function f(){}var l=cd.prototype;l.J=function(d,c){this.behavior=d;this.Ub=c;this.j=d.j};l.J.prototype.H=function(){};l.G=function(d,c){this.type=d;this.behavior=d.behavior;this.k=c;this.j=d.j};var d=l.G.prototype;d.H=function(){this.RH=1===this.q[0];this.minWidth=this.q[1];this.minHeight=this.q[2];this.maxWidth=this.k.width;this.maxHeight=this.k.height;this.We={};this.Ju=this.k.width;this.Iu=this.k.height;this.Mo=null;this.hr=this.pH();this.zB=this.YG();this.AB=this.ZG();this.Vb||(this.ef=
function(d){return function(c){d.kh(c)}}(this));this.j.gk(this.ef)};d.kh=function(d){d=d.uid;this.We.hasOwnProperty(d)&&delete this.We[d]};d.Mc=function(){for(var d in this.We)delete this.We[d];this.j.zn(this.ef)};d.Ba=function(){};d.Ci=function(){this.RH&&this.YH()&&this.resize()};d.PG=function(){var d=this.k,c=this.j.Xs?this.rH():this.j.Ab;d.width=this.maxWidth;d.L();d.$c(c);d.Aa=!0;d.j.aa=!0};d.rH=function(){var d=this.k,c=d.uc;if(!c){d.qb=document.createElement("canvas");var c=Math.ceil(d.F.dd()*
d.width),f=Math.ceil(d.F.Ib()*d.height);d.qb.width=c;d.qb.height=f;d.Gd=c;d.Fd=f;d.uc=d.qb.getContext("2d");c=d.uc}return c};d.resize=function(){this.PG();this.qJ()&&(this.pJ(),this.AJ(),this.j.trigger(cd.prototype.m.Aw,this.k))};d.qJ=function(){var d=this.xt()+1,d=Ha(d,this.minWidth,this.maxWidth),c=this.oH()+1;c<this.minHeight&&(c=this.minHeight);var f=this.k,b=!1;if(d!==f.width||c!==f.height)this.HJ(d,c),b=!0;return b};d.pH=function(){return Qc&&this.k instanceof Qc.prototype.G?1:Pc&&this.k instanceof
Pc.prototype.G?2:lc.kl&&this.k instanceof lc.kl.prototype.G?10:Tc&&this.k instanceof Tc.prototype.G?11:Oc&&this.k instanceof Oc.prototype.G?4:0};d.HJ=function(d,c){var f=this.k;f.width=d;f.height=c;f.L();switch(this.hr){case 1:f.Vc=d;break;case 2:f.Vc=d;break;case 10:f.Vc=d;break;case 11:f.Vc=d}};d.pJ=function(){var d=this.k.width-this.maxWidth,c=this.k.height-this.maxHeight,f,b,a,g,e;for(a in this.We)if(b=this.We[a],g=b.inst,e=b.rm,f=b.maxw+d,b=b.maxh+c,0===e){if(g.width!==f||g.height!==b)g.height=
b,g.width=f,g.L()}else 1===e&&g.height!==b&&(g.height=b,g.L())};d.AJ=function(){this.Ju=this.k.width;this.Iu=this.k.height};d.YG=function(){switch(this.hr){case 1:return Qc.prototype.D.Hi;case 2:return Pc.prototype.D.Hi;case 10:return lc.kl.prototype.D.Hi;case 11:return Tc.prototype.D.Hi}};d.ZG=function(){switch(this.hr){case 1:return Qc.prototype.D.Ii;case 2:return Pc.prototype.D.Ii;case 10:return lc.kl.prototype.D.Ii;case 11:return Tc.prototype.D.Ii}};var m={value:0,Jd:function(d){this.value=d},
O:function(d){this.value=d},B:function(d){this.value=d},sb:function(d){this.value=d}};d.oH=function(){this.zB.call(this.k,m);return m.value};d.xt=function(){this.AB.call(this.k,m);return m.value};d.YH=function(){switch(this.hr){case 1:return this.k.Aa;case 2:return this.k.Aa;case 10:return this.k.Aa;case 11:return this.k.Aa}};d.ya=function(){var d,c={},f;for(d in this.We)f=this.We[d],c[d]={rm:f.rm,maxw:f.maxw,maxh:f.maxh};return{minw:this.minWidth,minh:this.minHeight,maxw:this.maxWidth,maxh:this.maxHeight,
pw:this.Ju,ph:this.Iu,bg:c}};d.Ga=function(d){this.minWidth=d.minw;this.minHeight=d.minh;this.maxWidth=d.maxw;this.maxHeight=d.maxh;this.Ju=d.pw;this.Iu=d.ph;this.Mo=d.bg};d.rf=function(){for(var d in this.We)delete this.We[d];var c;for(d in this.Mo)d=parseInt(d),c=this.j.jg(d),this.We[d]=this.Mo[d],this.We[d].inst=c;this.Mo=null};l.m=new f;f.prototype.Aw=function(){return!0};l.A=new function(){};l.D=new function(){}})();function dd(f){this.j=f}
(function(){function f(){}function l(){}var d=dd.prototype;d.J=function(d,c){this.behavior=d;this.Ub=c;this.j=d.j};d.J.prototype.H=function(){};d.G=function(d,c){this.type=d;this.behavior=d.behavior;this.k=c;this.j=d.j};var m=d.G.prototype;m.H=function(){this.speed=R(this.q[0]);this.yd=R(this.q[1])};m.ya=function(){return{speed:this.speed,acc:this.yd}};m.Ga=function(d){this.speed=d.speed;this.yd=d.acc};m.Ba=function(){var d=this.j.Cf(this.k);0!==d&&(0!==this.yd&&(this.speed+=this.yd*d),0!==this.speed&&
(this.k.C=La(this.k.C+this.speed*d),this.k.L()))};d.m=new function(){};f.prototype.Xr=function(d){this.speed=R(d)};d.A=new f;l.prototype.$r=function(d){d.B(Ia(this.speed))};d.D=new l})();function ed(f){this.j=f}
(function(){function f(){}function l(){}function d(){}var m=ed.prototype;m.J=function(a,b){this.behavior=a;this.Ub=b;this.j=a.j};m.J.prototype.H=function(){};m.G=function(a,b){this.type=a;this.behavior=a.behavior;this.k=b;this.j=a.j;this.ac=0};var k=m.G.prototype,c=2*Math.PI,q=Math.PI/2,b=3*Math.PI/2;k.H=function(){this.Nb=1===this.q[0];this.Bj=this.q[1];this.Lv=this.q[2];this.qh=this.q[3];this.qh+=Math.random()*this.q[4];0===this.qh?this.ac=0:(this.ac=this.q[5]/this.qh*c,this.ac+=Math.random()*this.q[6]/
this.qh*c);this.Hd=this.q[7];this.Hd+=Math.random()*this.q[8];this.xn=this.hj=this.Qa=0;5===this.Bj&&(this.Hd=R(this.Hd));this.init()};k.ya=function(){return{i:this.ac,a:this.Nb,mv:this.Bj,w:this.Lv,p:this.qh,mag:this.Hd,iv:this.Qa,iv2:this.hj,r:this.xn,lkv:this.Ca,lkv2:this.Jb}};k.Ga=function(a){this.ac=a.i;this.Nb=a.a;this.Bj=a.mv;this.Lv=a.w;this.qh=a.p;this.Hd=a.mag;this.Qa=a.iv;this.hj=a.iv2||0;this.xn=a.r;this.Ca=a.lkv;this.Jb=a.lkv2||0};k.init=function(){switch(this.Bj){case 0:this.Qa=this.k.x;
break;case 1:this.Qa=this.k.y;break;case 2:this.Qa=this.k.width;this.xn=this.k.height/this.k.width;break;case 3:this.Qa=this.k.width;break;case 4:this.Qa=this.k.height;break;case 5:this.Qa=this.k.C;break;case 6:this.Qa=this.k.opacity;break;case 7:this.Qa=0;break;case 8:this.Qa=this.k.x,this.hj=this.k.y}this.Ca=this.Qa;this.Jb=this.hj};k.Eg=function(a){a=a%c;switch(this.Lv){case 0:return Math.sin(a);case 1:return a<=q?a/q:a<=b?1-2*(a-q)/Math.PI:(a-b)/q-1;case 2:return 2*a/c-1;case 3:return-2*a/c+1;
case 4:return a<Math.PI?-1:1}return 0};k.Ba=function(){var a=this.j.Cf(this.k);this.Nb&&0!==a&&(0===this.qh?this.ac=0:(this.ac+=a/this.qh*c,this.ac=this.ac%c),this.dK())};k.dK=function(){switch(this.Bj){case 0:this.k.x!==this.Ca&&(this.Qa+=this.k.x-this.Ca);this.k.x=this.Qa+this.Eg(this.ac)*this.Hd;this.Ca=this.k.x;break;case 1:this.k.y!==this.Ca&&(this.Qa+=this.k.y-this.Ca);this.k.y=this.Qa+this.Eg(this.ac)*this.Hd;this.Ca=this.k.y;break;case 2:this.k.width=this.Qa+this.Eg(this.ac)*this.Hd;this.k.height=
this.k.width*this.xn;break;case 3:this.k.width=this.Qa+this.Eg(this.ac)*this.Hd;break;case 4:this.k.height=this.Qa+this.Eg(this.ac)*this.Hd;break;case 5:this.k.C!==this.Ca&&(this.Qa=La(this.Qa+(this.k.C-this.Ca)));this.k.C=La(this.Qa+this.Eg(this.ac)*this.Hd);this.Ca=this.k.C;break;case 6:this.k.opacity=this.Qa+this.Eg(this.ac)*this.Hd/100;0>this.k.opacity?this.k.opacity=0:1<this.k.opacity&&(this.k.opacity=1);break;case 8:this.k.x!==this.Ca&&(this.Qa+=this.k.x-this.Ca),this.k.y!==this.Jb&&(this.hj+=
this.k.y-this.Jb),this.k.x=this.Qa+Math.cos(this.k.C)*this.Eg(this.ac)*this.Hd,this.k.y=this.hj+Math.sin(this.k.C)*this.Eg(this.ac)*this.Hd,this.Ca=this.k.x,this.Jb=this.k.y}this.k.L()};k.Bz=function(a,b){switch(this.Bj){case 2:this.Qa*=b.width/a.width;this.xn=b.height/b.width;break;case 3:this.Qa*=b.width/a.width;break;case 4:this.Qa*=b.height/a.height}};f.prototype.VB=function(){return this.Nb};m.m=new f;l.prototype.JD=function(a){this.Nb=1===a};m.A=new l;d.prototype.qE=function(a){a.B(this.Eg(this.ac)*
this.Hd)};m.D=new d})();function fd(f){this.j=f}
(function(){function f(){}function l(){}var d=fd.prototype;d.J=function(d,c){this.behavior=d;this.Ub=c;this.j=d.j};d.J.prototype.H=function(){};d.G=function(d,c){this.type=d;this.behavior=d.behavior;this.k=c;this.j=d.j};var m=d.G.prototype;m.H=function(){var d=this.q[0];this.yd=this.q[1];this.Gb=this.q[2];this.VE=0!==this.q[3];this.UE=0!==this.q[4];this.Xu=0!==this.q[5];this.N=Math.cos(this.k.C)*d;this.M=Math.sin(this.k.C)*d;this.Le=this.k.x;this.Me=this.k.y;this.Ik=this.k.C;this.nr=0;this.enabled=
0!==this.q[6]};m.ya=function(){return{acc:this.yd,g:this.Gb,dx:this.N,dy:this.M,lx:this.Le,ly:this.Me,lka:this.Ik,t:this.nr,e:this.enabled}};m.Ga=function(d){this.yd=d.acc;this.Gb=d.g;this.N=d.dx;this.M=d.dy;this.Le=d.lx;this.Me=d.ly;this.Ik=d.lka;this.nr=d.t;this.enabled=d.e};m.Ba=function(){if(this.enabled){var d=this.j.Cf(this.k),c,f;this.k.C!==this.Ik&&(this.Xu&&(c=Ta(0,0,this.N,this.M),this.N=Math.cos(this.k.C)*c,this.M=Math.sin(this.k.C)*c),this.Ik=this.k.C);0!==this.yd&&(c=Ta(0,0,this.N,this.M),
f=0===this.N&&0===this.M?this.k.C:Oa(0,0,this.N,this.M),c+=this.yd*d,0>c&&(c=0),this.N=Math.cos(f)*c,this.M=Math.sin(f)*c);0!==this.Gb&&(this.M+=this.Gb*d);this.Le=this.k.x;this.Me=this.k.y;if(0!==this.N||0!==this.M)(this.k.x+=this.N*d,this.k.y+=this.M*d,this.nr+=Ta(0,0,this.N*d,this.M*d),this.Xu&&(this.k.C=Oa(0,0,this.N,this.M),this.k.L(),this.Ik=this.k.C),this.k.L(),this.VE&&this.j.Lb(this.k))?this.j.Xf(this.k):this.UE&&(c=this.j.Lb(this.k))&&(this.j.wh(this.k,c),c=Ta(0,0,this.N,this.M),f=this.j.aF(this.k,
this.Le,this.Me),this.N=Math.cos(f)*c,this.M=Math.sin(f)*c,this.k.x+=this.N*d,this.k.y+=this.M*d,this.k.L(),this.Xu&&(this.Ik=this.k.C=f,this.k.L()),this.j.Vd(this.k,this.N/c,this.M/c,Math.max(2.5*c*d,30))||this.j.Mu(this.k,100))}};d.m=new function(){};f.prototype.Xr=function(d){var c=Oa(0,0,this.N,this.M);this.N=Math.cos(c)*d;this.M=Math.sin(c)*d};f.prototype.Vr=function(d){this.Gb=d};f.prototype.Fg=function(d){this.enabled=1===d};d.A=new f;l.prototype.$r=function(d){var c=Ta(0,0,this.N,this.M),
c=lb(c);d.B(c)};d.D=new l})();function gd(f){this.j=f}
(function(){function f(){}function l(){}function d(){}var m=gd.prototype;m.J=function(c,d){this.behavior=c;this.Ub=d;this.j=c.j};m.J.prototype.H=function(){};m.G=function(c,d){this.type=c;this.behavior=c.behavior;this.k=d;this.j=c.j};var k=m.G.prototype;k.H=function(){this.sg={};this.Ze=this.Ny=this.td=""};k.Mc=function(){this.sg=null;this.td=""};k.Ba=function(){};m.m=new f;f.prototype.Ir=function(c,d,b){if(""!=this.td)return kc(this.sg[this.td][c],d,b)};f.prototype.Wv=function(){var c=this.j.Cb().Fb;
if(""!=this.td){var d=this.sg[this.td],b;for(b in d)d.hasOwnProperty(b)&&(this.Ze=b,this.j.xg(c.za),c.xh(),this.j.Qe(c.za));this.Ze="";return!1}};f.prototype.Kr=function(c){if(""!=this.td)return this.sg[this.td].hasOwnProperty(c)};f.prototype.PB=function(c){return this.sg.hasOwnProperty(c)?(this.td=c,!0):!1};m.A=new l;l.prototype.Hr=function(){this.Ny=this.td};l.prototype.JE=function(c){this.sg[c]={};this.td=c};l.prototype.VI=function(c){this.td=c};l.prototype.Hw=function(c,d){""!=this.td&&(this.sg[this.td][c]=
d)};l.prototype.Uv=function(c){if(""!=this.td){var d=this.sg[this.td];d.hasOwnProperty(c)&&delete d[c]}};m.D=new d;d.prototype.Hr=function(c){c.sb(this.Ny)};d.prototype.zl=function(c,d){if(""!=this.td){var b=this.sg[this.td];b.hasOwnProperty(d)?c.Jd(b[d]):c.O(0)}};d.prototype.HB=function(c,d,b){d=this.sg[d];null!=d&&d.hasOwnProperty(b)?c.Jd(d[b]):c.O(0)};d.prototype.Tv=function(c){c.sb(this.Ze)}})();function hd(f){this.j=f}
(function(){function f(){}function l(){}var d=hd.prototype;d.J=function(d,c){this.behavior=d;this.Ub=c;this.j=d.j};d.J.prototype.H=function(){};d.G=function(d,c){this.type=d;this.behavior=d.behavior;this.k=c;this.j=d.j};var m=d.G.prototype;m.H=function(){this.ud=null;this.yq=-1;this.gl=this.fl=0;this.xq=!1;this.yk="";var d=this;this.Vb||(this.ef=function(c){d.kh(c)});this.j.gk(this.ef)};m.ya=function(){return{uid:this.ud?this.ud.uid:-1,offx:this.fl,offy:this.gl,mirrored:this.xq,imagePoint:this.yk}};
m.Ga=function(d){this.yq=d.uid;this.fl=d.offx;this.gl=d.offy;this.xq=d.mirrored;this.yk=d.imagePoint};m.rf=function(){-1===this.yq?this.ud=null:this.ud=this.j.jg(this.yq);this.yq=-1};m.kh=function(d){this.ud==d&&(this.ud=null)};m.Mc=function(){this.ud=null;this.j.zn(this.ef)};m.Ba=function(){};m.Ci=function(){if(this.ud){var d=this.ud.x+this.fl,c=this.ud.y+this.gl;""!=this.yk&&(d=this.ud.Fe(this.yk,!0)+this.fl,c=this.ud.Fe(this.yk,!1)+this.gl);if(this.k.x!==d||this.k.y!==c)this.k.x=d,this.k.y=c,this.k.L();
this.xq&&(Y.prototype.m.dw.call(this.ud)?Y.prototype.A.Wr.call(this.k,0):Y.prototype.A.Wr.call(this.k,1))}};d.m=new function(){};d.A=new f;f.prototype.xD=function(d,c,f){d&&(d=d.xm(this.k))&&(this.xq=!0,this.ud=d,this.fl=c,this.gl=f)};f.prototype.wD=function(d,c,f){d&&(d=d.xm(this.k))&&(null==c&&(c=this.k.x-d.x),null==f&&(f=this.k.y-d.y),this.ud=d,this.fl=c,this.gl=f)};f.prototype.GJ=function(d){this.yk=d};d.D=new l;l.prototype.yD=function(d){d.O(this.ud?this.ud.uid:-1)}})();
function id(f){this.j=f}
(function(){function f(){}var l=id.prototype;l.J=function(d,f){this.behavior=d;this.Ub=f;this.j=d.j};l.J.prototype.H=function(){};l.G=function(d,f){this.type=d;this.behavior=d.behavior;this.k=f;this.j=d.j};var d=l.G.prototype;d.H=function(){this.enabled=0!==this.q[0];this.Gb=this.q[1];this.speed=this.q[2]*(.5<Math.random()?1:-1);this.N=0;this.M=-300;this.Le=this.k.x;this.Me=this.k.y;this.ab=null;this.Zp=-1;this.Uf=!1;this.Kh=this.j.ue(this.k);this.Bf=R(90);this.Tn();var d=this;this.Vb||(this.ef=function(f){d.kh(f)});
this.j.gk(this.ef)};d.kh=function(d){this.ab==d&&(this.ab=null)};d.Mc=function(){this.ab=null;this.j.zn(this.ef)};d.ya=function(){return{g:this.Gb,speed:this.speed,dx:this.N,dy:this.M,lx:this.Le,ly:this.Me,e:this.enabled}};d.Ga=function(d){this.Gb=d.g;this.speed=d.speed;this.N=d.dx;this.M=d.dy;this.Le=d.lx;this.Me=d.ly;this.enabled=d.e};d.Tn=function(){this.Xa=Math.cos(this.Bf);this.Ya=Math.sin(this.Bf);this.Jf=Math.cos(this.Bf-Math.PI/2);this.Kf=Math.sin(this.Bf-Math.PI/2);this.Xa=lb(this.Xa);this.Ya=
lb(this.Ya);this.Jf=lb(this.Jf);this.Kf=lb(this.Kf);this.vm=this.Gb;0>this.Gb&&(this.Xa*=-1,this.Ya*=-1,this.Gb=Math.abs(this.Gb))};d.cc=function(){return 0>this.Gb?-1:1};d.Qp=function(){var d=null,f=null,c,l;c=this.k.x;l=this.k.y;this.k.x+=this.Xa;this.k.y+=this.Ya;this.k.L();if(this.ab&&this.j.zc(this.k,this.ab)&&(!this.j.qr(this.ab.type,xc)||this.ab.R.solidEnabled))return this.k.x=c,this.k.y=l,this.k.L(),this.ab;(d=this.j.Lb(this.k))||(f=this.j.ue(this.k,!0));this.k.x=c;this.k.y=l;this.k.L();if(d)return this.j.zc(this.k,
d)?null:d;if(f&&f.length){l=d=0;for(c=f.length;d<c;d++)f[l]=f[d],this.j.zc(this.k,f[d])||l++;if(1<=l)return f[0]}return null};d.Ba=function(){};d.Hu=function(){if(this.enabled){var d=this.j.Cf(this.k),f,c,l,b,a,g;a=this.ab;f=this.Qp();var e=this.j.Lb(this.k);if(e)if(this.k.R.inputPredicted)this.j.Vd(this.k,-this.Xa,-this.Ya,10,!1);else if(this.j.Mu(this.k,Math.max(this.k.width,this.k.height)/2))this.j.wh(this.k,e);else return;if(f&&0==this.M)this.ab=null,this.j.zn(this.ef),this.enabled=!1;else{f&&
(0<this.M&&(this.Uf||(this.j.Gq(this.k,-this.Xa,-this.Ya,f),this.Uf=!0),this.M=0),a!=f&&(this.ab=f,this.j.wh(this.k,f)));f||(this.ab=null,this.M+=this.Gb*d,this.M>this.Tk&&(this.M=this.Tk));this.Uf=!!f;this.N+=this.speed*d;this.speed-=20*this.speed*d;this.k.x+=this.N*d*this.Jf;this.k.y+=this.N*d*this.Kf;this.k.L();if(0!==this.M){a=this.k.x;g=this.k.y;this.k.x+=this.M*d*this.Xa;this.k.y+=this.M*d*this.Ya;var h=this.k.x,v=this.k.y;this.k.L();e=this.j.Lb(this.k);c=!1;if(!e&&0<this.M&&!f){if((f=this.j.ue(this.k,
!0))&&f.length){if(this.Kh){this.k.x=a;this.k.y=g;this.k.L();b=c=0;for(l=f.length;c<l;c++)f[b]=f[c],this.j.zc(this.k,f[c])||b++;f.length=b;this.k.x=h;this.k.y=v;this.k.L()}1<=f.length&&(e=f[0])}c=!!e}e&&(this.j.wh(this.k,e),d=c?Math.abs(this.M*d*2.5+10):Math.max(Math.abs(this.M*d*2.5+10),30),this.j.Vd(this.k,this.Xa*(0>this.M?1:-1),this.Ya*(0>this.M?1:-1),d,c,e)?(this.ab=e,this.M=0):(this.k.x=a,this.k.y=g,this.k.L(),this.Uf=!0,c||(this.M=0)))}this.Kh=this.j.ue(this.k)}}};l.m=new function(){};l.A=
new f;f.prototype.Fg=function(d){this.enabled!==(1===d)&&(this.enabled=1===d)};f.prototype.Xr=function(d){this.speed=d;0>this.speed&&(this.speed=0);this.speed=this.speed*(.5<Math.random()?1:-1)};f.prototype.Vr=function(d){this.Gb=d};l.D=new function(){}})();function jd(f){this.j=f;this.$q=this.Hn=this.Pj=this.Zq=0}
(function(){function f(){}var l=jd.prototype;l.J=function(d,f){this.behavior=d;this.Ub=f;this.j=d.j};l.J.prototype.H=function(){};l.G=function(d,f){this.type=d;this.behavior=d.behavior;this.k=f;this.j=d.j};var d=l.G.prototype;d.H=function(){this.enabled=0!==this.q[0]};d.ya=function(){return{smg:this.behavior.Zq,ss:this.behavior.Pj,se:this.behavior.Hn,smd:this.behavior.$q}};d.Ga=function(d){this.behavior.Zq=d.smg;this.behavior.Pj=d.ss;this.behavior.Hn=d.se;this.behavior.$q=d.smd};d.Ba=function(){};
d.Ci=function(){if(this.enabled){var d=this.behavior.ni.Md(),f=0,c=0,l,b,a,g=0;l=0;for(b=d.length;l<b;l++){a:{a=d[l];for(var e=void 0,h=void 0,v=void 0,e=0,h=a.X.length;e<h;++e)if(v=a.X[e],v.behavior instanceof jd){a=v;break a}a=null}a&&a.enabled&&(f+=d[l].x,c+=d[l].y,++g)}d=this.k.F.sc;b=this.j.rc.na;a=l=0;b>=this.behavior.Pj&&b<this.behavior.Hn&&(l=this.behavior.Zq*Math.min(this.j.Di,1),0===this.behavior.$q&&(l*=1-(b-this.behavior.Pj)/(this.behavior.Hn-this.behavior.Pj)),b=Math.random()*Math.PI*
2,a=Math.random()*l,l=Math.cos(b)*a,a*=Math.sin(b));d.ll(f/g);d.ml(c/g);d.scrollX!=d.scrollX+l&&(d.scrollX+=l);d.scrollY!=d.scrollY+a&&(d.scrollY+=a)}};f.prototype.gE=function(d,f,c){this.behavior.Zq=d;this.behavior.Pj=this.j.rc.na;this.behavior.Hn=this.behavior.Pj+f;this.behavior.$q=c};f.prototype.Fg=function(d){this.enabled=0!==d};l.A=new f})();function kd(f){this.j=f}
(function(){function f(){}function l(){}var d=kd.prototype;d.J=function(d,c){this.behavior=d;this.Ub=c;this.j=d.j};d.J.prototype.H=function(){};d.G=function(d,c){this.type=d;this.behavior=d.behavior;this.k=c;this.j=d.j};var m=d.G.prototype;m.H=function(){this.sl={}};m.Mc=function(){};m.Ba=function(){var d=this.j.Cf(this.k),c;for(c in this.sl)this.sl[c]-=d};d.m=new f;f.prototype.pE=function(d){return this.sl[d]?0<this.sl[d]?!1:!0:!0};d.A=new l;l.prototype.LE=function(d,c){this.sl[d]=c};d.D=new function(){}})();
function ld(f){this.j=f}(function(){var f=ld.prototype;f.J=function(f,d){this.behavior=f;this.Ub=d;this.j=f.j};f.J.prototype.H=function(){};f.G=function(f,d){this.type=f;this.behavior=f.behavior;this.k=d;this.j=f.j};f=f.G.prototype;f.H=function(){};f.Ba=function(){this.k.da();var f=this.k.ea,d=this.k.F.sc;(0>f.right||0>f.bottom||f.left>d.width||f.top>d.height)&&this.j.Xf(this.k)}})();function yc(f){this.j=f}
(function(){function f(){}var l=yc.prototype;l.J=function(d,f){this.behavior=d;this.Ub=f;this.j=d.j};l.J.prototype.H=function(){};l.G=function(d,f){this.type=d;this.behavior=d.behavior;this.k=f;this.j=d.j};var d=l.G.prototype;d.H=function(){this.k.R.jumpthruEnabled=0!==this.q[0]};d.Ba=function(){};l.m=new function(){};f.prototype.Fg=function(d){this.k.R.jumpthruEnabled=!!d};l.A=new f})();var md=[],nd=[],od=[],pd=[],td=[],ud=[],vd=[],wd=[],xd=[],yd=[];
function zd(f){return result=(f/=1)<1/2.75?7.5625*f*f+0:f<2/2.75?1*(7.5625*(f-=1.5/2.75)*f+.75)+0:f<2.5/2.75?1*(7.5625*(f-=2.25/2.75)*f+.9375)+0:1*(7.5625*(f-=2.625/2.75)*f+.984375)+0}function Ad(f,l){return Math.round(f/l*1E4)}
function Bd(f,l,d,m,k){var c=0;switch(f){case 0:c=1*l/d+0;break;case 1:c=1*(l/=d)*l+0;break;case 2:c=-1*(l/=d)*(l-2)+0;break;case 3:c=1>(l/=d/2)?.5*l*l+0:-.5*(--l*(l-2)-1)+0;break;case 4:c=1*(l/=d)*l*l+0;break;case 5:c=1*((l=l/d-1)*l*l+1)+0;break;case 6:c=1>(l/=d/2)?.5*l*l*l+0:.5*((l-=2)*l*l+2)+0;break;case 7:c=1*(l/=d)*l*l*l+0;break;case 8:c=-1*((l=l/d-1)*l*l*l-1)+0;break;case 9:c=1>(l/=d/2)?.5*l*l*l*l+0:-.5*((l-=2)*l*l*l-2)+0;break;case 10:c=1*(l/=d)*l*l*l*l+0;break;case 11:c=1*((l=l/d-1)*l*l*l*
l+1)+0;break;case 12:c=1>(l/=d/2)?.5*l*l*l*l*l+0:.5*((l-=2)*l*l*l*l+2)+0;break;case 13:k.pe?c=td[Ad(l,d)]:c=-(Math.sqrt(1-l*l)-1);break;case 14:k.pe?c=ud[Ad(l,d)]:c=Math.sqrt(1-(l-1)*(l-1));break;case 15:c=k.pe?vd[Ad(l,d)]:1>(l/=d/2)?-.5*(Math.sqrt(1-l*l)-1)+0:.5*(Math.sqrt(1-(l-=2)*l)+1)+0;break;case 16:k.pe?c=wd[Ad(l,d)]:(k=k.Yd,c=1*(l/=d)*l*((k+1)*l-k)+0);break;case 17:k.pe?c=xd[Ad(l,d)]:(k=k.Yd,c=1*((l=l/d-1)*l*((k+1)*l+k)+1)+0);break;case 18:k.pe?c=yd[Ad(l,d)]:(k=k.Yd,c=1>(l/=d/2)?.5*l*l*(((k*=
1.525)+1)*l-k)+0:.5*((l-=2)*l*(((k*=1.525)+1)*l+k)+2)+0);break;case 19:k.pe?c=nd[Ad(l,d)]:(c=k.fk,f=k.qn,l/=d,0==f&&(f=.3*d),0==c||c<Math.abs(1)?(c=1,k=f/4):k=f/(2*Math.PI)*Math.asin(1/c),c=-(c*Math.pow(2,10*--l)*Math.sin(2*(l*d-k)*Math.PI/f))+0);break;case 20:k.pe?c=od[Ad(l,d)]:(c=k.fk,f=k.qn,l/=d,0==f&&(f=.3*d),0==c||c<Math.abs(1)?(c=1,k=f/4):k=f/(2*Math.PI)*Math.asin(1/c),c=c*Math.pow(2,-10*l)*Math.sin(2*(l*d-k)*Math.PI/f)+1);break;case 21:k.pe?c=pd[Ad(l,d)]:(c=k.fk,f=k.qn,l/=d/2,0==f&&(f=.3*d*
1.5),0==c||c<Math.abs(1)?(c=1,k=f/4):k=f/(2*Math.PI)*Math.asin(1/c),c=1>l?-.5*c*Math.pow(2,10*--l)*Math.sin(2*(l*d-k)*Math.PI/f)+0:c*Math.pow(2,-10*--l)*Math.sin(2*(l*d-k)*Math.PI/f)*.5+1);break;case 22:c=k.pe?1-md[Ad(d-l,d)]+0:1-zd(d-l/d)+0;break;case 23:c=k.pe?md[Ad(l,d)]:zd(l/d);break;case 24:c=k.pe?l<d/2?.5*(1-md[Ad(d-2*l,d)]+0)+0:.5*md[Ad(2*l-d,d)]+.5:l<d/2?.5*(1-zd(d-2*l)+0)+0:.5*zd((2*l-d)/d)+.5;break;case 25:l=l/d/2;c=2*l*l*(3-2*l);break;case 26:l=(l/d+1)/2;c=2*l*l*(3-2*l)-1;break;case 27:l=
l/d,c=l*l*(3-2*l)}return m?1-c:c}
for(var Cd=0,Dd=0,Ed=0,Z=0,Fd=0,Gd=0;1E4>=Gd;Gd++)Z=Gd/1E4,Cd=(Z/=1)<1/2.75?7.5625*Z*Z+0:Z<2/2.75?1*(7.5625*(Z-=1.5/2.75)*Z+.75)+0:Z<2.5/2.75?1*(7.5625*(Z-=2.25/2.75)*Z+.9375)+0:1*(7.5625*(Z-=2.625/2.75)*Z+.984375)+0,md[Gd]=Cd,Z=Gd/1E4,Ed=Dd=0,Z/=1,0==Ed&&(Ed=.3),0==Dd||Dd<Math.abs(1)?(Dd=1,Fd=Ed/4):Fd=Ed/(2*Math.PI)*Math.asin(1/Dd),Cd=-(Dd*Math.pow(2,10*--Z)*Math.sin(2*(1*Z-Fd)*Math.PI/Ed))+0,nd[Gd]=Cd,Z=Gd/1E4,Ed=Dd=0,Z/=1,0==Ed&&(Ed=.3),0==Dd||Dd<Math.abs(1)?(Dd=1,Fd=Ed/4):Fd=Ed/(2*Math.PI)*Math.asin(1/
Dd),Cd=Dd*Math.pow(2,-10*Z)*Math.sin(2*(1*Z-Fd)*Math.PI/Ed)+1,od[Gd]=Cd,Z=Gd/1E4,Ed=Dd=0,Z/=.5,0==Ed&&(Ed=.3*1.5),0==Dd||Dd<Math.abs(1)?(Dd=1,Fd=Ed/4):Fd=Ed/(2*Math.PI)*Math.asin(1/Dd),Cd=1>Z?-.5*Dd*Math.pow(2,10*--Z)*Math.sin(2*(1*Z-Fd)*Math.PI/Ed)+0:Dd*Math.pow(2,-10*--Z)*Math.sin(2*(1*Z-Fd)*Math.PI/Ed)*.5+1,pd[Gd]=Cd,Z=Gd/1E4,td[Gd]=-(Math.sqrt(1-Z*Z)-1),Z=Gd/1E4,ud[Gd]=Math.sqrt(1-(Z-1)*(Z-1)),Z=Gd/1E4,Cd=1>(Z/=.5)?-.5*(Math.sqrt(1-Z*Z)-1)+0:.5*(Math.sqrt(1-(Z-=2)*Z)+1)+0,vd[Gd]=Cd,Z=Gd/1E4,Fd=
0,0==Fd&&(Fd=1.70158),Cd=1*(Z/=1)*Z*((Fd+1)*Z-Fd)+0,wd[Gd]=Cd,Z=Gd/1E4,Fd=0,0==Fd&&(Fd=1.70158),Cd=1*((Z=Z/1-1)*Z*((Fd+1)*Z+Fd)+1)+0,xd[Gd]=Cd,Z=Gd/1E4,Fd=0,0==Fd&&(Fd=1.70158),Cd=1>(Z/=.5)?.5*Z*Z*(((Fd*=1.525)+1)*Z-Fd)+0:.5*((Z-=2)*Z*(((Fd*=1.525)+1)*Z+Fd)+2)+0,yd[Gd]=Cd;
function Hd(f,l,d,m,k,c,q){this.name=f;this.value=0;this.nl(m);this.Xq(k);this.Ui=d;this.Mb=l;this.duration=c;this.state=this.Ja=0;this.tq=this.uq=this.sq=this.cl=!1;this.Jb=this.Ca=0;this.qd=q;this.rh=1;this.um=!1;this.De=[];this.Py=1;for(f=0;28>f;f++)this.De[f]={},this.De[f].fk=0,this.De[f].qn=0,this.De[f].rl=0,this.De[f].Yd=0,this.De[f].pe=!0}Hd.prototype={};Hd.prototype.nl=function(f){this.Za=parseFloat(f.split(",")[0]);this.pc=parseFloat(f.split(",")[1]);this.Jb=this.Ca=0};
Hd.prototype.Xq=function(f){this.Ua=parseFloat(f.split(",")[0]);this.Zb=parseFloat(f.split(",")[1]);isNaN(this.Zb)&&(this.Zb=this.Ua)};
Hd.prototype.Tr=function(f){if(0===this.state)return-1;1===this.state&&(this.Ja+=f);2===this.state&&(this.Ja-=f);3===this.state&&(this.state=0);if(4===this.state||6===this.state)this.Ja+=f*this.rh;5===this.state&&(this.Ja+=f*this.rh);return 0>this.Ja?(this.Ja=0,4===this.state?this.rh=1:6===this.state?(this.rh=1,this.um=!1):this.state=0,this.tq=!0,0):this.Ja>this.duration?(this.Ja=this.duration,4===this.state?this.rh=-1:6===this.state?(this.rh=-1,this.um=!0):5===this.state?this.Ja=0:this.state=0,this.sq=
!0,1):this.um?Bd(this.Ui,this.duration-this.Ja,this.duration,this.um,this.De[this.Ui]):Bd(this.Ui,this.Ja,this.duration,this.um,this.De[this.Ui])};function Jd(f){this.j=f}
(function(){var f=Jd.prototype;f.J=function(d,f){this.behavior=d;this.Ub=f;this.j=d.j};f.J.prototype.H=function(){};f.G=function(d,f){this.type=d;this.behavior=d.behavior;this.k=f;this.j=d.j;this.ac=0};var l=f.G.prototype;l.H=function(){this.hl=this.q[0];this.Nb=1==this.hl||2==this.hl||3==this.hl||4==this.hl;this.Mb=this.q[1];this.Vs=this.q[2];this.target=this.q[3];this.gr=this.q[4];this.ur=!1;1===this.gr&&(this.target="relative("+this.target+")");this.duration=this.q[5];this.qd=1===this.q[6];this.value=
0;this.S={};this.Ww(this.Mb,this.Vs,"current",this.target,this.duration,this.qd);1===this.q[0]&&this.Kn(0);2===this.q[0]&&this.Kn(2);3===this.q[0]&&this.Kn(3);4===this.q[0]&&this.Kn(4)};l.vg=function(d,f){void 0===f&&(f="current");var k=f.replace(/^\s\s*/,"").replace(/\s\s*$/,"");f=f.replace(/^\s\s*/,"").replace(/\s\s*$/,"");var c=this.value;if("current"===f)switch(d){case 0:k=this.k.x+","+this.k.y;break;case 1:k=this.k.width+","+this.k.height;break;case 2:k=this.k.width+","+this.k.height;break;case 3:k=
this.k.width+","+this.k.height;break;case 4:k=Ia(this.k.C)+","+Ia(this.k.C);break;case 5:k=100*this.k.opacity+","+100*this.k.opacity;break;case 6:k=c+","+c;break;case 7:k=this.k.x+","+this.k.y;break;case 8:k=this.k.x+","+this.k.y;break;case 9:k=void 0!==this.k.tb?this.k.width/this.k.tb.width+","+this.k.height/this.k.tb.height:"1,1"}if("relative"===f.substring(0,8)){var l=f.match(/\((.*?)\)/);if(l)var b=parseFloat(l[1].split(",")[0]),a=parseFloat(l[1].split(",")[1]);isNaN(b)&&(b=0);isNaN(a)&&(a=0);
switch(d){case 0:k=this.k.x+b+","+(this.k.y+a);break;case 1:k=this.k.width+b+","+(this.k.height+a);break;case 2:k=this.k.width+b+","+(this.k.height+a);break;case 3:k=this.k.width+b+","+(this.k.height+a);break;case 4:k=Ia(this.k.C)+b+","+(Ia(this.k.C)+a);break;case 5:k=100*this.k.opacity+b+","+(100*this.k.opacity+a);break;case 6:k=c+b+","+c+b;break;case 7:k=this.k.x+b+","+this.k.y;break;case 8:k=this.k.x+","+(this.k.y+b);break;case 9:k=b+","+a}}return k};l.Ww=function(d,f,k,c,l,b){k=this.vg(d,k);c=
this.vg(d,c);void 0!==this.S["default"]&&delete this.S["default"];this.S["default"]=new Hd("default",d,f,k,c,l,b);this.S["default"].Ug=0};l.ya=function(){JSON.stringify(this.S["default"]);return{playmode:this.hl,active:this.Nb,tweened:this.Mb,easing:this.Vs,target:this.target,targetmode:this.gr,useCurrent:this.ur,duration:this.duration,enforce:this.qd,value:this.value,tweenlist:JSON.stringify(this.S["default"])}};Hd.rC=function(d,f,k,c,l,b,a,g){f=new Hd(f,k,c,l,b,a,g);for(var e in d)f[e]=d[e];return f};
l.Ga=function(d){var f=JSON.parse(d.tweenlist),f=Hd.rC(f,f.name,f.Mb,f.Ui,f.Za+","+f.pc,f.Ua+","+f.Zb,f.duration,f.qd);this.S["default"]=f;this.hl=d.playmode;this.Nb=d.active;this.Bj=d.tweened;this.Vs=d.easing;this.target=d.target;this.gr=d.targetmode;this.ur=d.useCurrent;this.duration=d.duration;this.qd=d.enforce;this.value=d.value};l.LJ=function(d){1<d&&(d=1);0>d&&(d=0);for(var f in this.S){var k=this.S[f];k.Ca=0;k.Jb=0;k.state=3;k.Ja=d*k.duration;var c=k.Tr(0);this.Dv(k,c)}};l.Kn=function(d){for(var f in this.S){var k=
this.S[f];if(this.ur){var c=this.vg(k.Mb,"current"),l=this.vg(k.Mb,this.target);k.nl(c);k.Xq(l)}0===d&&(k.Ja=1E-6,k.Ca=0,k.Jb=0,k.cl=!0,k.state=1);1===d&&(k.state=k.Py);if(2===d||4===d)k.Ja=1E-6,k.Ca=0,k.Jb=0,k.cl=!0,2==d&&(k.state=4),4==d&&(k.state=6);3===d&&(k.Ja=1E-6,k.Ca=0,k.Jb=0,k.cl=!0,k.state=5)}};l.YJ=function(d){for(var f in this.S){var k=this.S[f];3!=k.state&&0!=k.state&&(k.Py=k.state);1===d&&(k.Ja=0);2===d&&(k.Ja=k.duration);k.state=3;var c=k.Tr(0);this.Dv(k,c)}};l.uJ=function(d){for(var f in this.S){var k=
this.S[f];1===d&&(k.Ja=k.duration,k.Ca=0,k.Jb=0,k.uq=!0);k.state=2}};l.Dv=function(d,f){if(0===d.Mb)d.qd?(this.k.x=d.Za+(d.Ua-d.Za)*f,this.k.y=d.pc+(d.Zb-d.pc)*f):(this.k.x+=(d.Ua-d.Za)*f-d.Ca,this.k.y+=(d.Zb-d.pc)*f-d.Jb,d.Ca=(d.Ua-d.Za)*f,d.Jb=(d.Zb-d.pc)*f);else if(1===d.Mb)d.qd?(this.k.width=d.Za+(d.Ua-d.Za)*f,this.k.height=d.pc+(d.Zb-d.pc)*f):(this.k.width+=(d.Ua-d.Za)*f-d.Ca,this.k.height+=(d.Zb-d.pc)*f-d.Jb,d.Ca=(d.Ua-d.Za)*f,d.Jb=(d.Zb-d.pc)*f);else if(2===d.Mb)d.qd?this.k.width=d.Za+(d.Ua-
d.Za)*f:(this.k.width+=(d.Ua-d.Za)*f-d.Ca,d.Ca=(d.Ua-d.Za)*f);else if(3===d.Mb)d.qd?this.k.height=d.pc+(d.Zb-d.pc)*f:(this.k.height+=(d.Zb-d.pc)*f-d.Jb,d.Jb=(d.Zb-d.pc)*f);else if(4===d.Mb)if(d.qd){var k=d.Za+(d.Ua-d.Za)*f;this.k.C=La(R(k))}else k=(d.Ua-d.Za)*f-d.Ca,this.k.C=La(this.k.C+R(k)),d.Ca=(d.Ua-d.Za)*f;else if(5===d.Mb)d.qd?this.k.opacity=(d.Za+(d.Ua-d.Za)*f)/100:(this.k.opacity+=((d.Ua-d.Za)*f-d.Ca)/100,d.Ca=(d.Ua-d.Za)*f);else if(6===d.Mb)d.qd?this.value=d.Za+(d.Ua-d.Za)*f:(this.value+=
(d.Ua-d.Za)*f-d.Ca,d.Ca=(d.Ua-d.Za)*f);else if(7===d.Mb)d.qd?this.k.x=d.Za+(d.Ua-d.Za)*f:(this.k.x+=(d.Ua-d.Za)*f-d.Ca,d.Ca=(d.Ua-d.Za)*f);else if(8===d.Mb)d.qd?this.k.y=d.pc+(d.Zb-d.pc)*f:(this.k.y+=(d.Zb-d.pc)*f-d.Jb,d.Jb=(d.Zb-d.pc)*f);else if(9===d.Mb){var k=d.Za+(d.Ua-d.Za)*f,c=d.pc+(d.Zb-d.pc)*f;0>this.k.width&&(k=d.Za+(d.Ua+d.Za)*-f);0>this.k.height&&(c=d.pc+(d.Zb+d.pc)*-f);d.qd?(this.k.width=this.k.tb.width*k,this.k.height=this.k.tb.height*c):(0>this.k.width?(this.k.width=this.k.width/(-1+
d.Ca)*k,d.Ca=k+1):(this.k.width=this.k.width/(1+d.Ca)*k,d.Ca=k-1),0>this.k.height?(this.k.height=this.k.height/(-1+d.Jb)*c,d.Jb=c+1):(this.k.height=this.k.height/(1+d.Jb)*c,d.Jb=c-1))}this.k.L()};l.Ba=function(){var d=this.j.Cf(this.k),f=this.S["default"];0!==f.state&&(f.cl&&(this.j.trigger(Jd.prototype.m.kD,this.k),f.cl=!1),f.uq&&(this.j.trigger(Jd.prototype.m.gD,this.k),f.uq=!1),this.Nb=1==f.state||2==f.state||4==f.state||5==f.state||6==f.state,d=f.Tr(d),this.Dv(f,d),f.sq&&(this.j.trigger(Jd.prototype.m.kw,
this.k),f.sq=!1),f.tq&&(this.j.trigger(Jd.prototype.m.fD,this.k),f.tq=!1))};f.m={};l=f.m;l.VB=function(){return 0!==this.S["default"].state};l.LK=function(){return 2==this.S["default"].state};l.GK=function(d,f){var k=this.S["default"];return kc(k.Ja/k.duration,d,f)};l.SK=function(d,f){var k=this.S["default"];this.Rn=kc(k.Ja/k.duration,d,f);if(k=this.pu!=this.Rn&&this.Rn)this.pu=this.Rn;return k};l.kD=function(){return void 0===this.S["default"]?!1:this.S["default"].cl};l.gD=function(){return void 0===
this.S["default"]?!1:this.S["default"].uq};l.kw=function(){return void 0===this.S["default"]?!1:this.S["default"].sq};l.fD=function(){return void 0===this.S["default"]?!1:this.S["default"].tq};f.A={};l=f.A;l.jE=function(d,f){this.pu=this.Rn=!1;this.ur=1==f;this.Kn(d)};l.Kw=function(d){this.YJ(d)};l.ED=function(d){this.pu=this.Rn=!1;this.uJ(d)};l.XK=function(d){this.LJ(d)};l.PD=function(d){isNaN(d)||0>d||void 0===this.S["default"]||(this.S["default"].duration=d)};l.gL=function(d){void 0!==this.S["default"]&&
(this.S["default"].qd=1===d)};l.iL=function(d){void 0!==this.S["default"]&&(d=this.vg(this.S["default"].Mb,d),this.S["default"].nl(d))};l.aE=function(d,f,k){if(void 0!==this.S["default"]&&!isNaN(k)){var c=this.S["default"],l=k+"";this.gr=f;var b="",a="";if(1===f){this.target="relative("+l+")";switch(d){case 0:b=this.k.x+k;a=c.Zb;break;case 1:b=c.Ua;a=this.k.y+k;break;case 2:a=b=""+Ia(this.k.C+R(k));break;case 3:a=b=""+100*this.k.opacity+k;break;case 4:b=this.k.width+k;a=c.Zb;break;case 5:b=c.Ua;a=
this.k.height+k;break;case 6:a=b=k}l=b+","+a}else{switch(d){case 0:b=k;a=c.Zb;break;case 1:b=c.Ua;a=k;break;case 2:a=b=k;break;case 3:a=b=k;break;case 4:b=k;a=c.Zb;break;case 5:b=c.Ua;a=k;break;case 6:a=b=k}this.target=l=b+","+a}d=this.vg(this.S["default"].Mb,"current");l=this.vg(this.S["default"].Mb,l);c.nl(d);c.Xq(l)}};l.lL=function(d){void 0!==this.S["default"]&&(this.S["default"].Mb=d)};l.cL=function(d){void 0!==this.S["default"]&&(this.S["default"].Ui=d)};l.dL=function(d,f,k,c,l){void 0!==this.S["default"]&&
(this.S["default"].De[d].pe=!1,this.S["default"].De[d].fk=f,this.S["default"].De[d].qn=k,this.S["default"].De[d].rl=c,this.S["default"].De[d].Yd=l)};l.YK=function(){void 0!==this.S["default"]&&(this.S["default"].pe=!0)};l.mL=function(d){var f=this.S["default"];this.value=d;6===f.Mb&&f.nl(this.vg(f.Mb,"current"))};l.jL=function(d,f,k,c,l){if(void 0===this.S["default"])this.Ww(d,f,initial,k,c,l);else{var b=this.S["default"];b.Mb=d;b.Ui=f;b.nl(this.vg(d,"current"));b.Xq(this.vg(d,k));b.duration=c;b.qd=
1===l}};f.D={};f=f.D;f.oL=function(d){var f="N/A";switch(this.S["default"].state){case 0:f="paused";break;case 1:f="playing";break;case 2:f="reversing";break;case 3:f="seeking"}d.sb(f)};f.WK=function(d){d.B(this.S["default"].Ja/this.S["default"].duration)};f.sB=function(d){d.B(this.S["default"].duration)};f.qL=function(d){var f=this.S["default"],k="N/A";switch(f.Mb){case 0:k=f.Ua;break;case 1:k=f.Zb;break;case 2:k=f.Ua;break;case 3:k=f.Ua;break;case 4:k=f.Ua;break;case 5:k=f.Zb;break;case 6:k=f.Ua}d.B(k)};
f.qE=function(d){d.B(this.value)};f.sL=function(d,f,k,c,l){c=1<c?1:c;l=Bd(l,0>c?0:c,1,!1,!1);d.B(f+l*(k-f))}})();function xc(f){this.j=f}
(function(){function f(){}var l=xc.prototype;l.J=function(d,f){this.behavior=d;this.Ub=f;this.j=d.j};l.J.prototype.H=function(){};l.G=function(d,f){this.type=d;this.behavior=d.behavior;this.k=f;this.j=d.j};var d=l.G.prototype;d.H=function(){this.k.R.solidEnabled=0!==this.q[0]};d.Ba=function(){};l.m=new function(){};f.prototype.Fg=function(d){this.k.R.solidEnabled=!!d};l.A=new f})();
function wc(){return[Bc,Cc,Ec,Dc,Fc,Gc,Kc,Lc,Ac,Uc,Pc,Qc,Sc,Nc,Rc,Oc,Mc,Y,Tc,Vc,$c,Jd,hd,bd,Zc,Yc,ld,kd,ad,jd,cd,yc,ed,xc,dd,gd,Wc,fd,Xc,id,zc,S.prototype.m.uw,$c.prototype.A.ND,$c.prototype.m.Cl,Ac.prototype.A.CallFunction,S.prototype.A.MB,S.prototype.m.jB,S.prototype.D.uj,Y.prototype.A.TD,S.prototype.D.ceil,S.prototype.m.Vv,S.prototype.m.BD,Y.prototype.A.XA,Dc.prototype.A.Ks,Y.prototype.D.Gg,S.prototype.D.cos,Y.prototype.D.Hg,S.prototype.D.sin,Y.prototype.m.lB,Dc.prototype.m.PJ,Y.prototype.A.Yr,
S.prototype.m.vB,Qc.prototype.A.Ue,S.prototype.D.floor,S.prototype.A.tE,Y.prototype.m.EC,S.prototype.A.ZA,Y.prototype.A.jo,Y.prototype.A.iE,Cc.prototype.A.Play,Pc.prototype.A.Ue,Jd.prototype.A.aE,Pc.prototype.D.Gg,Pc.prototype.D.Hg,Jd.prototype.A.jE,Y.prototype.m.bw,S.prototype.m.BB,S.prototype.D.AF,Y.prototype.A.Gw,Zc.prototype.A.Fg,S.prototype.D.Ug,Yc.prototype.m.OB,Y.prototype.D.Mw,S.prototype.A.oE,Dc.prototype.A.uD,Y.prototype.m.Rv,kd.prototype.m.pE,S.prototype.A.dE,S.prototype.D.bK,S.prototype.m.nB,
S.prototype.D["int"],S.prototype.D.aK,S.prototype.D.random,gd.prototype.m.Ir,gd.prototype.m.Kr,Y.prototype.A.Ew,gd.prototype.D.zl,S.prototype.m.uB,Y.prototype.m.iC,Zc.prototype.A.hE,Zc.prototype.A.xB,Zc.prototype.A.eE,Zc.prototype.D.rE,Zc.prototype.D.$r,Y.prototype.A.Wr,S.prototype.D.kK,S.prototype.D.lK,S.prototype.D.mK,S.prototype.D.jK,Y.prototype.m.hw,Y.prototype.m.tD,hd.prototype.D.yD,gd.prototype.m.PB,Y.prototype.m.WB,Zc.prototype.A.fE,Zc.prototype.D.sE,Y.prototype.A.Jw,Y.prototype.m.kB,Zc.prototype.m.eC,
S.prototype.m.aC,Y.prototype.A.to,Lc.prototype.D.Gg,Lc.prototype.D.Hg,Nc.prototype.m.ko,Nc.prototype.D.bk,Nc.prototype.D.Lw,Nc.prototype.D.ck,Gc.prototype.m.cC,Gc.prototype.m.ow,Y.prototype.D.RB,Y.prototype.D.vo,Y.prototype.D.SB,Y.prototype.m.dw,Gc.prototype.m.Nr,S.prototype.D.nI,Zc.prototype.m.bC,Zc.prototype.m.$B,Gc.prototype.D.oC,Ac.prototype.D.DD,Vc.prototype.m.ZB,Nc.prototype.m.ak,S.prototype.m.dC,S.prototype.A.RD,S.prototype.A.WD,Ac.prototype.m.qo,Ac.prototype.D.rD,Dc.prototype.m.sk,gd.prototype.D.HB,
Dc.prototype.D.EB,Dc.prototype.A.LH,Y.prototype.A.cE,kd.prototype.A.LE,Y.prototype.A.Fw,Ac.prototype.A.$D,Y.prototype.m.Gi,Y.prototype.A.Iw,Y.prototype.D.Lr,ad.prototype.A.SD,S.prototype.D.jI,hd.prototype.A.xD,jd.prototype.A.Fg,Zc.prototype.A.OD,Zc.prototype.A.XD,Zc.prototype.A.VD,Zc.prototype.A.Vr,Zc.prototype.D.sC,Zc.prototype.D.nC,Yc.prototype.A.ZD,hd.prototype.A.wD,Y.prototype.A.uC,Y.prototype.A.MD,Y.prototype.A.Zr,Fc.prototype.m.Kr,Y.prototype.A.fw,Fc.prototype.D.zl,S.prototype.m.sw,Fc.prototype.A.YA,
Y.prototype.D.yl,Y.prototype.m.jw,Fc.prototype.A.Uv,hd.prototype.A.GJ,Y.prototype.D.TB,Oc.prototype.A.Ue,Y.prototype.D.$A,S.prototype.A.bE,Y.prototype.m.oB,jd.prototype.A.gE,Xc.prototype.A.yB,ad.prototype.D.QB,ad.prototype.A.tB,Ec.prototype.A.wB,Zc.prototype.m.fC,Dc.prototype.m.Pv,Dc.prototype.m.Nv,Dc.prototype.m.Ov,Nc.prototype.A.QD,S.prototype.m.jC,Dc.prototype.A.TJ,Sc.prototype.m.Jl,Dc.prototype.A.TI,Ac.prototype.m.mB,S.prototype.D.RI,S.prototype.D.QI,Y.prototype.D.Sv,Y.prototype.D.vD,Y.prototype.A.YD,
Y.prototype.A.LD,Y.prototype.m.gw,Y.prototype.A.kE,Y.prototype.A.tC,S.prototype.D.C,Cc.prototype.A.zD,id.prototype.A.Fg,Qc.prototype.m.bw,Qc.prototype.A.Gw,Dc.prototype.m.CB,gd.prototype.A.JE,Dc.prototype.D.zl,gd.prototype.A.Hw,Bc.prototype.A.AD,Oc.prototype.A.to,Oc.prototype.A.Yr,Dc.prototype.A.cK,Y.prototype.m.kC,Bc.prototype.m.dB,Bc.prototype.D.pB,Bc.prototype.D.qB,Dc.prototype.D.DB,Lc.prototype.m.hC,Tc.prototype.A.to,Tc.prototype.D.Gg,Tc.prototype.D.Hg,Bc.prototype.D.UB,Dc.prototype.D.GB,Tc.prototype.A.Ue,
S.prototype.D.Xk,Tc.prototype.A.ho,Nc.prototype.m.no,cd.prototype.m.Aw,Tc.prototype.m.io,Tc.prototype.D.vo,Tc.prototype.D.Lr,Dc.prototype.A.sk,S.prototype.D.dF,S.prototype.D.fI,S.prototype.D.gI,S.prototype.D.eF,gd.prototype.A.VI,Jd.prototype.m.kw,S.prototype.D["float"],gd.prototype.A.Hr,gd.prototype.D.Hr,Dc.prototype.m.Gt,Dc.prototype.D.IB,Bc.prototype.D.eB,Dc.prototype.D.fB,Fc.prototype.D.yl,Kc.prototype.A.UD,Fc.prototype.m.Wv,Fc.prototype.D.Tv,Cc.prototype.A.Kw,Y.prototype.m.gC,S.prototype.m.qC,
Y.prototype.A.uE,Tc.prototype.A.jo,Tc.prototype.D.Opacity,Tc.prototype.D.Sv,S.prototype.A.GD,S.prototype.A.FD,Qc.prototype.A.jo,S.prototype.m.sD,S.prototype.D.iI,Dc.prototype.A.tF,S.prototype.A.HD,S.prototype.D.DJ,S.prototype.A.ID,S.prototype.D.EJ,Y.prototype.D.cB,Y.prototype.D.bB,Y.prototype.A.nE,Tc.prototype.A.Yr,Qc.prototype.D.Mw,Kc.prototype.m.mw,S.prototype.A.NB,Oc.prototype.D.vo,Kc.prototype.A.JB,Dc.prototype.A.QJ,Cc.prototype.A.mE,Kc.prototype.m.lw,Kc.prototype.D.lC,Fc.prototype.A.ew,Dc.prototype.A.SE,
S.prototype.m.pC,S.prototype.D.hI,Jd.prototype.A.PD,Nc.prototype.m.Jl,Y.prototype.A.uo,Pc.prototype.A.uo,Qc.prototype.A.to,Wc.prototype.A.lE,ed.prototype.A.JD,Pc.prototype.A.jo,id.prototype.A.Xr,Y.prototype.A.KD]};
