// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var ba,ca,da,M,fa,ga,ja,P,ka,la,ma,pa,qa,R,ra,ta,T,va,wa,xa,ya,za,Aa,Ba,U,Ca,Da,Ea,Fa,Ha,Ia,Ja,Ka,Pa,Qa,Ra,Sa,Ta,Ua,V,Va,Wa,Xa,Ya,Za,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,rb,sb,tb,ub,vb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,W,Wb,Xb={},Yb={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(f){return f.__proto__}:function(f){return f.constructor.prototype});
(function(){function f(e,a,b,c){this.set(e,a,b,c)}function m(){this.ub=this.tb=this.xb=this.wb=this.Ib=this.Hb=this.Sa=this.Ra=0}function d(e,a,b,c){e<a?b<c?(p=e<b?e:b,v=a>c?a:c):(p=e<c?e:c,v=a>b?a:b):b<c?(p=a<b?a:b,v=e>c?e:c):(p=a<c?a:c,v=e>b?e:b)}function q(){this.items=this.Oc=null;this.zf=0;t&&(this.Oc=new Set);this.bg=[];this.Vd=!0}function k(e){y[F++]=e}function b(){this.Z=this.xj=this.y=this.Zj=0}function a(e){this.Oa=[];this.Ih=this.Kh=this.Lh=this.Jh=0;this.uh(e)}function c(e,a){this.bk=
e;this.ak=a;this.cells={}}function w(e,a){this.bk=e;this.ak=a;this.cells={}}function r(e,a,b){var c;return na.length?(c=na.pop(),c.Lk=e,c.x=a,c.y=b,c):new ba(e,a,b)}function l(e,a,b){this.Lk=e;this.x=a;this.y=b;this.Wa=new ca}function h(e,a,b){var c;return x.length?(c=x.pop(),c.Lk=e,c.x=a,c.y=b,c):new da(e,a,b)}function s(e,a,b){this.Lk=e;this.x=a;this.y=b;this.Wa=[];this.xf=!0;this.ad=new ca;this.gg=!1}function g(e,a){return e.Tc-a.Tc}M=function(e){window.console&&window.console.log&&window.console.log(e)};
fa=function(e){window.console&&window.console.error&&window.console.error(e)};ga=function(e){return"undefined"===typeof e};ja=function(e){return"number"===typeof e};P=function(e){return"string"===typeof e};ka=function(e){return 0<e&&0===(e-1&e)};la=function(e){--e;for(var a=1;32>a;a<<=1)e|=e>>a;return e+1};ma=function(e){return 0>e?-e:e};pa=function(e,a){return e<a?e:a};qa=Math.PI;R=function(e){return 0<=e?e|0:(e|0)-1};ra=function(e){var a=e|0;return a===e?a:a+1};ta=function(e,a,b,c,t,u,h,l){var g,
y,n,F;e<b?(y=e,g=b):(y=b,g=e);t<h?(F=t,n=h):(F=h,n=t);if(g<F||y>n)return!1;a<c?(y=a,g=c):(y=c,g=a);u<l?(F=u,n=l):(F=l,n=u);if(g<F||y>n)return!1;g=t-e+h-b;y=u-a+l-c;e=b-e;a=c-a;t=h-t;u=l-u;l=ma(a*t-u*e);return ma(t*y-u*g)>l?!1:ma(e*y-a*g)<=l};f.prototype.set=function(e,a,b,c){this.left=e;this.top=a;this.right=b;this.bottom=c};f.prototype.mg=function(e){this.left=e.left;this.top=e.top;this.right=e.right;this.bottom=e.bottom};f.prototype.width=function(){return this.right-this.left};f.prototype.height=
function(){return this.bottom-this.top};f.prototype.offset=function(e,a){this.left+=e;this.top+=a;this.right+=e;this.bottom+=a;return this};f.prototype.normalize=function(){var e=0;this.left>this.right&&(e=this.left,this.left=this.right,this.right=e);this.top>this.bottom&&(e=this.top,this.top=this.bottom,this.bottom=e)};f.prototype.Js=function(e){return!(e.right<this.left||e.bottom<this.top||e.left>this.right||e.top>this.bottom)};f.prototype.Ks=function(e,a,b){return!(e.right+a<this.left||e.bottom+
b<this.top||e.left+a>this.right||e.top+b>this.bottom)};f.prototype.$a=function(e,a){return e>=this.left&&e<=this.right&&a>=this.top&&a<=this.bottom};f.prototype.bi=function(e){return this.left===e.left&&this.top===e.top&&this.right===e.right&&this.bottom===e.bottom};T=f;m.prototype.Sf=function(e){this.Ra=e.left;this.Sa=e.top;this.Hb=e.right;this.Ib=e.top;this.wb=e.right;this.xb=e.bottom;this.tb=e.left;this.ub=e.bottom};m.prototype.Yo=function(e,a){if(0===a)this.Sf(e);else{var b=Math.sin(a),c=Math.cos(a),
t=e.left*b,u=e.top*b,h=e.right*b,b=e.bottom*b,l=e.left*c,g=e.top*c,y=e.right*c,c=e.bottom*c;this.Ra=l-u;this.Sa=g+t;this.Hb=y-u;this.Ib=g+h;this.wb=y-b;this.xb=c+h;this.tb=l-b;this.ub=c+t}};m.prototype.offset=function(e,a){this.Ra+=e;this.Sa+=a;this.Hb+=e;this.Ib+=a;this.wb+=e;this.xb+=a;this.tb+=e;this.ub+=a;return this};var p=0,v=0;m.prototype.Nm=function(e){d(this.Ra,this.Hb,this.wb,this.tb);e.left=p;e.right=v;d(this.Sa,this.Ib,this.xb,this.ub);e.top=p;e.bottom=v};m.prototype.$a=function(e,a){var b=
this.Hb-this.Ra,c=this.Ib-this.Sa,t=this.wb-this.Ra,u=this.xb-this.Sa,h=e-this.Ra,l=a-this.Sa,g=b*b+c*c,y=b*t+c*u,c=b*h+c*l,n=t*t+u*u,F=t*h+u*l,s=1/(g*n-y*y),b=(n*c-y*F)*s,g=(g*F-y*c)*s;if(0<=b&&0<g&&1>b+g)return!0;b=this.tb-this.Ra;c=this.ub-this.Sa;g=b*b+c*c;y=b*t+c*u;c=b*h+c*l;s=1/(g*n-y*y);b=(n*c-y*F)*s;g=(g*F-y*c)*s;return 0<=b&&0<g&&1>b+g};m.prototype.Td=function(e,a){if(a)switch(e){case 0:return this.Ra;case 1:return this.Hb;case 2:return this.wb;case 3:return this.tb;case 4:return this.Ra;
default:return this.Ra}else switch(e){case 0:return this.Sa;case 1:return this.Ib;case 2:return this.xb;case 3:return this.ub;case 4:return this.Sa;default:return this.Sa}};m.prototype.ho=function(){return(this.Ra+this.Hb+this.wb+this.tb)/4};m.prototype.jo=function(){return(this.Sa+this.Ib+this.xb+this.ub)/4};m.prototype.An=function(e){var a=e.ho(),b=e.jo();if(this.$a(a,b))return!0;a=this.ho();b=this.jo();if(e.$a(a,b))return!0;var c,t,u,h,l,g,y,n;for(y=0;4>y;y++)for(n=0;4>n;n++)if(a=this.Td(y,!0),
b=this.Td(y,!1),c=this.Td(y+1,!0),t=this.Td(y+1,!1),u=e.Td(n,!0),h=e.Td(n,!1),l=e.Td(n+1,!0),g=e.Td(n+1,!1),ta(a,b,c,t,u,h,l,g))return!0;return!1};va=m;wa=function(e,a){for(var b in a)a.hasOwnProperty(b)&&(e[b]=a[b]);return e};xa=function(e,a){var b,c;a=R(a);if(!(0>a||a>=e.length)){b=a;for(c=e.length-1;b<c;b++)e[b]=e[b+1];e.length=c}};ya=function(e,a){e.length=a.length;var b,c;b=0;for(c=a.length;b<c;b++)e[b]=a[b]};za=function(e,a){e.push.apply(e,a)};Aa=function(e,a){var b,c;b=0;for(c=e.length;b<c;++b)if(e[b]===
a)return b;return-1};Ba=function(e,a){var b=Aa(e,a);-1!==b&&xa(e,b)};U=function(e){return e/(180/qa)};Ca=function(e){return 180/qa*e};Da=function(e){e%=360;0>e&&(e+=360);return e};Ea=function(e){e%=2*qa;0>e&&(e+=2*qa);return e};Fa=function(e){return Da(Ca(e))};Ha=function(e){return Ea(U(e))};Ia=function(e,a,b,c){return Math.atan2(c-a,b-e)};Ja=function(e,a){if(e===a)return 0;var b=Math.sin(e),c=Math.cos(e),t=Math.sin(a),u=Math.cos(a),b=b*t+c*u;return 1<=b?0:-1>=b?qa:Math.acos(b)};Ka=function(e,a,b){var c=
Math.sin(e),t=Math.cos(e),u=Math.sin(a),h=Math.cos(a);return Math.acos(c*u+t*h)>b?0<t*u-c*h?Ea(e+b):Ea(e-b):Ea(a)};Pa=function(e,a){var b=Math.sin(e),c=Math.cos(e),t=Math.sin(a),u=Math.cos(a);return 0>=c*t-b*u};Qa=function(e,a,b,c,t,u){if(0===b)return u?e:a;var h=Math.sin(b);b=Math.cos(b);e-=c;a-=t;var l=e*h;e=e*b-a*h;a=a*b+l;return u?e+c:a+t};Ra=function(e,a,b,c){e=b-e;a=c-a;return Math.sqrt(e*e+a*a)};Sa=function(e,a){return!e!==!a};Ta=function(e){for(var a in e)if(e.hasOwnProperty(a))return!0;return!1};
Ua=function(e){for(var a in e)e.hasOwnProperty(a)&&delete e[a]};var B=+new Date;V=function(){if("undefined"!==typeof window.performance){var e=window.performance;if("undefined"!==typeof e.now)return e.now();if("undefined"!==typeof e.webkitNow)return e.webkitNow();if("undefined"!==typeof e.mozNow)return e.mozNow();if("undefined"!==typeof e.msNow)return e.msNow()}return Date.now()-B};var n=!1,e=n=!1,u=!1;"undefined"!==typeof window&&(n=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),
n=!n&&/safari/i.test(navigator.userAgent),e=/(iphone|ipod|ipad)/i.test(navigator.userAgent),u=window.c2ejecta);var t=!n&&!u&&!e&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;q.prototype.contains=function(e){return this.wd()?!1:t?this.Oc.has(e):this.items&&this.items.hasOwnProperty(e)};q.prototype.add=function(e){if(t)this.Oc.has(e)||(this.Oc.add(e),this.Vd=!1);else{var a=e.toString(),b=this.items;b?b.hasOwnProperty(a)||(b[a]=e,this.zf++,this.Vd=!1):(this.items={},this.items[a]=
e,this.zf=1,this.Vd=!1)}};q.prototype.remove=function(e){if(!this.wd())if(t)this.Oc.has(e)&&(this.Oc["delete"](e),this.Vd=!1);else if(this.items){e=e.toString();var a=this.items;a.hasOwnProperty(e)&&(delete a[e],this.zf--,this.Vd=!1)}};q.prototype.clear=function(){this.wd()||(t?this.Oc.clear():(this.items=null,this.zf=0),this.bg.length=0,this.Vd=!0)};q.prototype.wd=function(){return 0===this.count()};q.prototype.count=function(){return t?this.Oc.size:this.zf};var y=null,F=0;q.prototype.cu=function(){if(!this.Vd){if(t)this.bg.length=
this.Oc.size,y=this.bg,F=0,this.Oc.forEach(k),y=null,F=0;else{var e=this.bg;e.length=this.zf;var a,b=0,c=this.items;if(c)for(a in c)c.hasOwnProperty(a)&&(e[b++]=c[a])}this.Vd=!0}};q.prototype.Sc=function(){this.cu();return this.bg};ca=q;new ca;Va=function(e,a){t?Wa(e,a.Oc):Xa(e,a.Sc())};Wa=function(e,a){var b,c,t,u;c=b=0;for(t=e.length;b<t;++b)u=e[b],a.has(u)||(e[c++]=u);e.length=c};Xa=function(e,a){var b,c,t,u;c=b=0;for(t=e.length;b<t;++b)u=e[b],-1===Aa(a,u)&&(e[c++]=u);e.length=c};b.prototype.add=
function(e){this.y=e-this.Zj;this.xj=this.Z+this.y;this.Zj=this.xj-this.Z-this.y;this.Z=this.xj};b.prototype.reset=function(){this.Z=this.xj=this.y=this.Zj=0};Ya=b;Za=function(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};a.prototype.uh=function(e){this.Lo=e;this.Mc=e.length/2;this.Oa.length=e.length;this.Ph=this.Qh=-1;this.Qm=0};a.prototype.uf=function(){return!this.Lo.length};a.prototype.la=function(){for(var e=this.Oa,a=e[0],b=a,c=e[1],t=c,u,h,l=1,g=this.Mc;l<g;++l)h=2*l,u=e[h],h=e[h+
1],u<a&&(a=u),u>b&&(b=u),h<c&&(c=h),h>t&&(t=h);this.Jh=a;this.Kh=b;this.Lh=c;this.Ih=t};a.prototype.Sf=function(e,a,b){this.Oa.length=8;this.Mc=4;var c=this.Oa;c[0]=e.left-a;c[1]=e.top-b;c[2]=e.right-a;c[3]=e.top-b;c[4]=e.right-a;c[5]=e.bottom-b;c[6]=e.left-a;c[7]=e.bottom-b;this.Qh=e.right-e.left;this.Ph=e.bottom-e.top;this.la()};a.prototype.Rf=function(e,a,b,c,t){this.Oa.length=8;this.Mc=4;var u=this.Oa;u[0]=e.Ra-a;u[1]=e.Sa-b;u[2]=e.Hb-a;u[3]=e.Ib-b;u[4]=e.wb-a;u[5]=e.xb-b;u[6]=e.tb-a;u[7]=e.ub-
b;this.Qh=c;this.Ph=t;this.la()};a.prototype.Xo=function(e){this.Mc=e.Mc;ya(this.Oa,e.Oa);this.Jh=e.Jh;this.Lh-e.Lh;this.Kh=e.Kh;this.Ih=e.Ih};a.prototype.gf=function(e,a,b){if(this.Qh!==e||this.Ph!==a||this.Qm!==b){this.Qh=e;this.Ph=a;this.Qm=b;var c,t,u,h,l,g=0,y=1,n=this.Lo,F=this.Oa;0!==b&&(g=Math.sin(b),y=Math.cos(b));b=0;for(u=this.Mc;b<u;b++)c=2*b,t=c+1,h=n[c]*e,l=n[t]*a,F[c]=h*y-l*g,F[t]=l*y+h*g;this.la()}};a.prototype.$a=function(e,a){var b=this.Oa;if(e===b[0]&&a===b[1])return!0;var c,t,
u,h=this.Mc,l=this.Jh-110,g=this.Lh-101,y=this.Kh+131,n=this.Ih+120,F,s,d=0,p=0;for(c=0;c<h;c++)t=2*c,u=(c+1)%h*2,F=b[t],t=b[t+1],s=b[u],u=b[u+1],ta(l,g,e,a,F,t,s,u)&&d++,ta(y,n,e,a,F,t,s,u)&&p++;return 1===d%2||1===p%2};a.prototype.Cg=function(e,a,b){var c=e.Oa,t=this.Oa;if(this.$a(c[0]+a,c[1]+b)||e.$a(t[0]-a,t[1]-b))return!0;var u,h,l,g,y,n,F,s,d,p,x,w;u=0;for(g=this.Mc;u<g;u++)for(h=2*u,l=(u+1)%g*2,s=t[h],h=t[h+1],d=t[l],p=t[l+1],l=0,F=e.Mc;l<F;l++)if(y=2*l,n=(l+1)%F*2,x=c[y]+a,y=c[y+1]+b,w=c[n]+
a,n=c[n+1]+b,ta(s,h,d,p,x,y,w,n))return!0;return!1};$a=a;c.prototype.ae=function(e,a,b){var c;c=this.cells[e];return c?(c=c[a])?c:b?(c=r(this,e,a),this.cells[e][a]=c):null:b?(c=r(this,e,a),this.cells[e]={},this.cells[e][a]=c):null};c.prototype.$b=function(e){return R(e/this.bk)};c.prototype.ac=function(e){return R(e/this.ak)};c.prototype.update=function(e,a,b){var c,t,u,h,l;if(a)for(c=a.left,t=a.right;c<=t;++c)for(u=a.top,h=a.bottom;u<=h;++u)if(!b||!b.$a(c,u))if(l=this.ae(c,u,!1))l.remove(e),l.wd()&&
(l.Wa.clear(),1E3>na.length&&na.push(l),this.cells[c][u]=null);if(b)for(c=b.left,t=b.right;c<=t;++c)for(u=b.top,h=b.bottom;u<=h;++u)a&&a.$a(c,u)||this.ae(c,u,!0).Vk(e)};c.prototype.hj=function(e,a){var b,c,t,u,h,l;b=this.$b(e.left);t=this.ac(e.top);c=this.$b(e.right);for(h=this.ac(e.bottom);b<=c;++b)for(u=t;u<=h;++u)(l=this.ae(b,u,!1))&&l.dump(a)};ab=c;w.prototype.ae=function(e,a,b){var c;c=this.cells[e];return c?(c=c[a])?c:b?(c=h(this,e,a),this.cells[e][a]=c):null:b?(c=h(this,e,a),this.cells[e]=
{},this.cells[e][a]=c):null};w.prototype.$b=function(e){return R(e/this.bk)};w.prototype.ac=function(e){return R(e/this.ak)};w.prototype.update=function(e,a,b){var c,t,u,h,l;if(a)for(c=a.left,t=a.right;c<=t;++c)for(u=a.top,h=a.bottom;u<=h;++u)if(!b||!b.$a(c,u))if(l=this.ae(c,u,!1))l.remove(e),l.wd()&&(l.reset(),1E3>x.length&&x.push(l),this.cells[c][u]=null);if(b)for(c=b.left,t=b.right;c<=t;++c)for(u=b.top,h=b.bottom;u<=h;++u)a&&a.$a(c,u)||this.ae(c,u,!0).Vk(e)};w.prototype.hj=function(e,a,b,c,u){var t,
h;e=this.$b(e);a=this.ac(a);b=this.$b(b);for(t=this.ac(c);e<=b;++e)for(c=a;c<=t;++c)(h=this.ae(e,c,!1))&&h.dump(u)};w.prototype.Ws=function(e){var a,b,c,t,u;a=e.left;c=e.top;b=e.right;for(t=e.bottom;a<=b;++a)for(e=c;e<=t;++e)if(u=this.ae(a,e,!1))u.xf=!1};bb=w;var na=[];l.prototype.wd=function(){return this.Wa.wd()};l.prototype.Vk=function(e){this.Wa.add(e)};l.prototype.remove=function(e){this.Wa.remove(e)};l.prototype.dump=function(e){za(e,this.Wa.Sc())};ba=l;var x=[];s.prototype.wd=function(){if(!this.Wa.length)return!0;
if(this.Wa.length>this.ad.count())return!1;this.wk();return!0};s.prototype.Vk=function(e){this.ad.contains(e)?(this.ad.remove(e),this.ad.wd()&&(this.gg=!1)):this.Wa.length?(this.Wa[this.Wa.length-1].rc()>e.rc()&&(this.xf=!1),this.Wa.push(e)):(this.Wa.push(e),this.xf=!0)};s.prototype.remove=function(e){this.ad.add(e);this.gg=!0;30<=this.ad.count()&&this.wk()};s.prototype.wk=function(){this.gg&&(this.ad.count()===this.Wa.length?this.reset():(Va(this.Wa,this.ad),this.ad.clear(),this.gg=!1))};s.prototype.rr=
function(){this.xf||(this.Wa.sort(g),this.xf=!0)};s.prototype.reset=function(){this.Wa.length=0;this.xf=!0;this.ad.clear();this.gg=!1};s.prototype.dump=function(e){this.wk();this.rr();this.Wa.length&&e.push(this.Wa)};da=s;var A="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");cb=function(e){return 0>=e||11<=e?"source-over":A[e-1]};db=function(e,a,b){if(b)switch(e.jb=b.ONE,e.ib=b.ONE_MINUS_SRC_ALPHA,a){case 1:e.jb=b.ONE;
e.ib=b.ONE;break;case 3:e.jb=b.ONE;e.ib=b.ZERO;break;case 4:e.jb=b.ONE_MINUS_DST_ALPHA;e.ib=b.ONE;break;case 5:e.jb=b.DST_ALPHA;e.ib=b.ZERO;break;case 6:e.jb=b.ZERO;e.ib=b.SRC_ALPHA;break;case 7:e.jb=b.ONE_MINUS_DST_ALPHA;e.ib=b.ZERO;break;case 8:e.jb=b.ZERO;e.ib=b.ONE_MINUS_SRC_ALPHA;break;case 9:e.jb=b.DST_ALPHA;e.ib=b.ONE_MINUS_SRC_ALPHA;break;case 10:e.jb=b.ONE_MINUS_DST_ALPHA,e.ib=b.SRC_ALPHA}};eb=function(e){return Math.round(1E6*e)/1E6};fb=function(e,a){return"string"!==typeof e||"string"!==
typeof a||e.length!==a.length?!1:e===a?!0:e.toLowerCase()===a.toLowerCase()};gb=function(e){e=e.target;return!e||e===document||e===window||document&&document.body&&e===document.body||fb(e.tagName,"canvas")?!0:!1}})();var Zb="undefined"!==typeof Float32Array?Float32Array:Array;function $b(f){var m=new Zb(3);f&&(m[0]=f[0],m[1]=f[1],m[2]=f[2]);return m}
function ac(f){var m=new Zb(16);f&&(m[0]=f[0],m[1]=f[1],m[2]=f[2],m[3]=f[3],m[4]=f[4],m[5]=f[5],m[6]=f[6],m[7]=f[7],m[8]=f[8],m[9]=f[9],m[10]=f[10],m[11]=f[11],m[12]=f[12],m[13]=f[13],m[14]=f[14],m[15]=f[15]);return m}function bc(f,m){m[0]=f[0];m[1]=f[1];m[2]=f[2];m[3]=f[3];m[4]=f[4];m[5]=f[5];m[6]=f[6];m[7]=f[7];m[8]=f[8];m[9]=f[9];m[10]=f[10];m[11]=f[11];m[12]=f[12];m[13]=f[13];m[14]=f[14];m[15]=f[15]}
function cc(f,m){var d=m[0],q=m[1];m=m[2];f[0]*=d;f[1]*=d;f[2]*=d;f[3]*=d;f[4]*=q;f[5]*=q;f[6]*=q;f[7]*=q;f[8]*=m;f[9]*=m;f[10]*=m;f[11]*=m}
function dc(f,m,d,q){q||(q=ac());var k,b,a,c,w,r,l,h,s=f[0],g=f[1];f=f[2];b=d[0];a=d[1];k=d[2];d=m[1];r=m[2];s===m[0]&&g===d&&f===r?(f=q,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=s-m[0],r=g-m[1],l=f-m[2],h=1/Math.sqrt(d*d+r*r+l*l),d*=h,r*=h,l*=h,m=a*l-k*r,k=k*d-b*l,b=b*r-a*d,(h=Math.sqrt(m*m+k*k+b*b))?(h=1/h,m*=h,k*=h,b*=h):b=k=m=0,a=r*b-l*k,c=l*m-d*b,w=d*k-r*m,(h=Math.sqrt(a*a+c*c+w*w))?(h=1/h,a*=h,c*=h,w*=h):w=c=a=0,
q[0]=m,q[1]=a,q[2]=d,q[3]=0,q[4]=k,q[5]=c,q[6]=r,q[7]=0,q[8]=b,q[9]=w,q[10]=l,q[11]=0,q[12]=-(m*s+k*g+b*f),q[13]=-(a*s+c*g+w*f),q[14]=-(d*s+r*g+l*f),q[15]=1)}
(function(){function f(b){this.Le=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.Rm=$b([0,0,100]);this.Rn=$b([0,0,0]);this.tp=$b([0,1,0]);this.um=$b([1,1,1]);this.Zm=!0;this.nl=ac();this.yc=ac();this.Jn=ac();this.jk=ac();this.k=b;this.wn()}function m(b,a,c){this.k=b;this.vh=a;this.name=c;this.xc=b.getAttribLocation(a,"aPos");this.ge=b.getAttribLocation(a,"aTex");this.Pn=b.getUniformLocation(a,"matP");this.Ni=b.getUniformLocation(a,"matMV");this.Df=
b.getUniformLocation(a,"opacity");this.Qn=b.getUniformLocation(a,"samplerFront");this.Vg=b.getUniformLocation(a,"samplerBack");this.Te=b.getUniformLocation(a,"destStart");this.Se=b.getUniformLocation(a,"destEnd");this.kl=b.getUniformLocation(a,"seconds");this.jl=b.getUniformLocation(a,"pixelWidth");this.il=b.getUniformLocation(a,"pixelHeight");this.Ug=b.getUniformLocation(a,"layerScale");this.Tg=b.getUniformLocation(a,"layerAngle");this.Xg=b.getUniformLocation(a,"viewOrigin");this.Wg=b.getUniformLocation(a,
"scrollPos");this.Es=!!(this.jl||this.il||this.kl||this.Vg||this.Te||this.Se||this.Ug||this.Tg||this.Xg||this.Wg);this.Zn=this.$n=-999;this.Pi=1;this.Vn=this.Un=0;this.Xn=this.Tn=this.Sn=1;this.bo=this.ao=this.eo=this.co=this.Wn=0;this.el=[];this.Yn=ac();this.Df&&b.uniform1f(this.Df,1);this.Qn&&b.uniform1i(this.Qn,0);this.Vg&&b.uniform1i(this.Vg,1);this.Te&&b.uniform2f(this.Te,0,0);this.Se&&b.uniform2f(this.Se,1,1);this.Ug&&b.uniform1f(this.Ug,1);this.Tg&&b.uniform1f(this.Tg,0);this.Xg&&b.uniform2f(this.Xg,
0,0);this.Wg&&b.uniform2f(this.Wg,0,0);this.He=!1}function d(b,a){this.type=b;this.n=a;this.k=a.k;this.tc=this.jc=this.vo=0;this.X=this.Qc=null;this.Zo=[]}f.prototype.wn=function(){var b=this.k,a;this.Kn=1;this.Pe=this.Oe=null;this.Xh=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.DEPTH_TEST);this.Ln=b.ONE;this.In=b.ONE_MINUS_SRC_ALPHA;this.El=b.createBuffer();b.bindBuffer(b.ARRAY_BUFFER,this.El);this.Fh=
Array(4);this.zh=Array(4);for(a=0;4>a;a++)this.Fh[a]=b.createBuffer(),b.bindBuffer(b.ARRAY_BUFFER,this.Fh[a]),this.zh[a]=b.createBuffer(),b.bindBuffer(b.ARRAY_BUFFER,this.zh[a]);this.nd=0;this.Hs=b.createBuffer();b.bindBuffer(b.ELEMENT_ARRAY_BUFFER,this.Hs);this.pm=new Float32Array(16E3);this.$l=new Float32Array(16E3);this.Ho=new Float32Array(32E3);for(var c=new Uint16Array(12E3),d=a=0;12E3>a;)c[a++]=d,c[a++]=d+1,c[a++]=d+2,c[a++]=d,c[a++]=d+2,c[a++]=d+3,d+=4;b.bufferData(b.ELEMENT_ARRAY_BUFFER,c,
b.STATIC_DRAW);this.Lf=this.gd=0;this.Qa=[];a=this.ik({src:"varying mediump vec2 vTex;\nuniform lowp float opacity;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, vTex);\n\tgl_FragColor *= opacity;\n}"},"attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}","<default>");
this.Qa.push(a);a=this.ik({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.Qa.push(a);for(var r in ec)ec.hasOwnProperty(r)&&this.Qa.push(this.ik(ec[r],
"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}",r));b.activeTexture(b.TEXTURE0);b.bindTexture(b.TEXTURE_2D,null);this.md=[];this.Vc=0;this.Rb=this.zb=!1;this.Vm=this.Jg=-1;this.qg=null;this.Vr=b.createFramebuffer();this.Oo=null;this.oe=$b([0,0,0]);b=b.getParameter(b.ALIASED_POINT_SIZE_RANGE);this.Zs=b[0];this.ol=
b[1];2048<this.ol&&(this.ol=2048);this.dd(0)};m.prototype.km=function(b){var a=this.Yn;if(a[0]!==b[0]||a[1]!==b[1]||a[2]!==b[2]||a[3]!==b[3]||a[4]!==b[4]||a[5]!==b[5]||a[6]!==b[6]||a[7]!==b[7]||a[8]!==b[8]||a[9]!==b[9]||a[10]!==b[10]||a[11]!==b[11]||a[12]!==b[12]||a[13]!==b[13]||a[14]!==b[14]||a[15]!==b[15])bc(b,this.Yn),this.k.uniformMatrix4fv(this.Ni,!1,b)};f.prototype.ik=function(b,a,c){var d=this.k,r=d.createShader(d.FRAGMENT_SHADER);d.shaderSource(r,b.src);d.compileShader(r);if(!d.getShaderParameter(r,
d.COMPILE_STATUS))return d.deleteShader(r),null;var l=d.createShader(d.VERTEX_SHADER);d.shaderSource(l,a);d.compileShader(l);if(!d.getShaderParameter(l,d.COMPILE_STATUS))return d.deleteShader(r),d.deleteShader(l),null;a=d.createProgram();d.attachShader(a,r);d.attachShader(a,l);d.linkProgram(a);if(!d.getProgramParameter(a,d.LINK_STATUS))return d.deleteShader(r),d.deleteShader(l),d.deleteProgram(a),null;d.useProgram(a);d.deleteShader(r);d.deleteShader(l);c=new m(d,a,c);c.sk=b.sk||0;c.tk=b.tk||0;c.Um=
!!b.Um;c.Km=!!b.Km;c.K=b.K||[];b=0;for(r=c.K.length;b<r;b++)c.K[b][1]=d.getUniformLocation(a,c.K[b][0]),c.el.push(0),d.uniform1f(c.K[b][1],0);return c};f.prototype.Ik=function(b){var a,c;a=0;for(c=this.Qa.length;a<c;a++)if(this.Qa[a].name===b)return a;return-1};f.prototype.Ko=function(b,a,c){var d=this.yc,r=this.nl,l=[0,0,0,0,0,0,0,0];l[0]=d[0]*b+d[4]*a+d[12];l[1]=d[1]*b+d[5]*a+d[13];l[2]=d[2]*b+d[6]*a+d[14];l[3]=d[3]*b+d[7]*a+d[15];l[4]=r[0]*l[0]+r[4]*l[1]+r[8]*l[2]+r[12]*l[3];l[5]=r[1]*l[0]+r[5]*
l[1]+r[9]*l[2]+r[13]*l[3];l[6]=r[2]*l[0]+r[6]*l[1]+r[10]*l[2]+r[14]*l[3];l[7]=-l[2];0!==l[7]&&(l[7]=1/l[7],l[4]*=l[7],l[5]*=l[7],l[6]*=l[7],c[0]=(.5*l[4]+.5)*this.width,c[1]=(.5*l[5]+.5)*this.height)};f.prototype.Qf=function(b,a,c){if(this.width!==b||this.height!==a||c){this.Zd();this.width=b;this.height=a;this.k.viewport(0,0,b,a);a=b/a;var d=this.nl,r;r=1*Math.tan(45*Math.PI/360);a*=r;b=-a;c=-r;d||(d=ac());var l=a-b,h=r-c;d[0]=2/l;d[1]=0;d[2]=0;d[3]=0;d[4]=0;d[5]=2/h;d[6]=0;d[7]=0;d[8]=(a+b)/l;d[9]=
(r+c)/h;d[10]=-1001/999;d[11]=-1;d[12]=0;d[13]=0;d[14]=-2E3/999;d[15]=0;dc(this.Rm,this.Rn,this.tp,this.yc);b=[0,0];a=[0,0];this.Ko(0,0,b);this.Ko(1,1,a);this.um[0]=1/(a[0]-b[0]);this.um[1]=-1/(a[1]-b[1]);b=0;for(a=this.Qa.length;b<a;b++)c=this.Qa[b],c.He=!1,c.Pn&&(this.k.useProgram(c.vh),this.k.uniformMatrix4fv(c.Pn,!1,this.nl));this.k.useProgram(this.Qa[this.Jg].vh);this.k.bindTexture(this.k.TEXTURE_2D,null);this.k.activeTexture(this.k.TEXTURE1);this.k.bindTexture(this.k.TEXTURE_2D,null);this.k.activeTexture(this.k.TEXTURE0);
this.Pe=this.Oe=null}};f.prototype.je=function(){dc(this.Rm,this.Rn,this.tp,this.yc);cc(this.yc,this.um)};f.prototype.translate=function(b,a){if(0!==b||0!==a){this.oe[0]=b;this.oe[1]=a;this.oe[2]=0;var c=this.yc,d=this.oe,r=d[0],l=d[1],d=d[2];c[12]=c[0]*r+c[4]*l+c[8]*d+c[12];c[13]=c[1]*r+c[5]*l+c[9]*d+c[13];c[14]=c[2]*r+c[6]*l+c[10]*d+c[14];c[15]=c[3]*r+c[7]*l+c[11]*d+c[15]}};f.prototype.scale=function(b,a){if(1!==b||1!==a)this.oe[0]=b,this.oe[1]=a,this.oe[2]=1,cc(this.yc,this.oe)};f.prototype.Po=
function(b){if(0!==b){var a=this.yc,c,d=Math.sin(b);b=Math.cos(b);var r=a[0],l=a[1],h=a[2],s=a[3],g=a[4],p=a[5],v=a[6],f=a[7];c?a!==c&&(c[8]=a[8],c[9]=a[9],c[10]=a[10],c[11]=a[11],c[12]=a[12],c[13]=a[13],c[14]=a[14],c[15]=a[15]):c=a;c[0]=r*b+g*d;c[1]=l*b+p*d;c[2]=h*b+v*d;c[3]=s*b+f*d;c[4]=r*-d+g*b;c[5]=l*-d+p*b;c[6]=h*-d+v*b;c[7]=s*-d+f*b}};f.prototype.qe=function(){for(var b=!1,a=0;16>a;a++)if(this.Jn[a]!==this.yc[a]){b=!0;break}b&&(b=this.zc(),b.type=5,b.X?bc(this.yc,b.X):b.X=ac(this.yc),bc(this.yc,
this.Jn),this.Rb=this.zb=!1)};d.prototype.hr=function(){this.k.bindTexture(this.k.TEXTURE_2D,this.Qc)};d.prototype.ir=function(){var b=this.k;b.activeTexture(b.TEXTURE1);b.bindTexture(b.TEXTURE_2D,this.Qc);b.activeTexture(b.TEXTURE0)};d.prototype.dr=function(){var b=this.vo,a=this.n;a.Xh=b;a=a.qg;a.Df&&a.Pi!==b&&(a.Pi=b,this.k.uniform1f(a.Df,b))};d.prototype.$q=function(){this.k.drawElements(this.k.TRIANGLES,this.tc,this.k.UNSIGNED_SHORT,2*this.jc)};d.prototype.cr=function(){this.k.blendFunc(this.jc,
this.tc)};d.prototype.jr=function(){var b,a,c,d=this.n.Qa,r=this.n.Vm;b=0;for(a=d.length;b<a;b++)c=d[b],b===r&&c.Ni?(c.km(this.X),c.He=!0):c.He=!1;bc(this.X,this.n.jk)};d.prototype.br=function(){var b=this.k,a=this.n;this.Qc?(a.Pe===this.Qc&&(b.activeTexture(b.TEXTURE1),b.bindTexture(b.TEXTURE_2D,null),a.Pe=null,b.activeTexture(b.TEXTURE0)),b.bindFramebuffer(b.FRAMEBUFFER,a.Vr),b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,this.Qc,0)):(b.framebufferTexture2D(b.FRAMEBUFFER,
b.COLOR_ATTACHMENT0,b.TEXTURE_2D,null,0),b.bindFramebuffer(b.FRAMEBUFFER,null))};d.prototype.Yq=function(){var b=this.k;0===this.jc?(b.clearColor(this.X[0],this.X[1],this.X[2],this.X[3]),b.clear(b.COLOR_BUFFER_BIT)):(b.enable(b.SCISSOR_TEST),b.scissor(this.X[0],this.X[1],this.X[2],this.X[3]),b.clearColor(0,0,0,0),b.clear(this.k.COLOR_BUFFER_BIT),b.disable(b.SCISSOR_TEST))};d.prototype.Zq=function(){var b=this.k,a=this.n,c=a.Qa[1];b.useProgram(c.vh);!c.He&&c.Ni&&(c.km(a.jk),c.He=!0);b.enableVertexAttribArray(c.xc);
b.bindBuffer(b.ARRAY_BUFFER,a.El);b.vertexAttribPointer(c.xc,4,b.FLOAT,!1,0,0);b.drawArrays(b.POINTS,this.jc/4,this.tc);c=a.qg;b.useProgram(c.vh);0<=c.xc&&(b.enableVertexAttribArray(c.xc),b.bindBuffer(b.ARRAY_BUFFER,a.Fh[a.nd]),b.vertexAttribPointer(c.xc,2,b.FLOAT,!1,0,0));0<=c.ge&&(b.enableVertexAttribArray(c.ge),b.bindBuffer(b.ARRAY_BUFFER,a.zh[a.nd]),b.vertexAttribPointer(c.ge,2,b.FLOAT,!1,0,0))};d.prototype.er=function(){var b=this.k,a=this.n,c=a.Qa[this.jc];a.Vm=this.jc;a.qg=c;b.useProgram(c.vh);
!c.He&&c.Ni&&(c.km(a.jk),c.He=!0);c.Df&&c.Pi!==a.Xh&&(c.Pi=a.Xh,b.uniform1f(c.Df,a.Xh));0<=c.xc&&(b.enableVertexAttribArray(c.xc),b.bindBuffer(b.ARRAY_BUFFER,a.Fh[a.nd]),b.vertexAttribPointer(c.xc,2,b.FLOAT,!1,0,0));0<=c.ge&&(b.enableVertexAttribArray(c.ge),b.bindBuffer(b.ARRAY_BUFFER,a.zh[a.nd]),b.vertexAttribPointer(c.ge,2,b.FLOAT,!1,0,0))};d.prototype.fr=function(){var b,a,c=this.n.qg,d=this.k;b=this.X;c.Vg&&this.n.Pe!==this.Qc&&(d.activeTexture(d.TEXTURE1),d.bindTexture(d.TEXTURE_2D,this.Qc),
this.n.Pe=this.Qc,d.activeTexture(d.TEXTURE0));var r=b[0];c.jl&&r!==c.$n&&(c.$n=r,d.uniform1f(c.jl,r));r=b[1];c.il&&r!==c.Zn&&(c.Zn=r,d.uniform1f(c.il,r));r=b[2];a=b[3];!c.Te||r===c.Un&&a===c.Vn||(c.Un=r,c.Vn=a,d.uniform2f(c.Te,r,a));r=b[4];a=b[5];!c.Se||r===c.Sn&&a===c.Tn||(c.Sn=r,c.Tn=r,d.uniform2f(c.Se,r,a));r=b[6];c.Ug&&r!==c.Xn&&(c.Xn=r,d.uniform1f(c.Ug,r));r=b[7];c.Tg&&r!==c.Wn&&(c.Wn=r,d.uniform1f(c.Tg,r));r=b[8];a=b[9];!c.Xg||r===c.co&&a===c.eo||(c.co=r,c.eo=a,d.uniform2f(c.Xg,r,a));r=b[10];
a=b[11];!c.Wg||r===c.ao&&a===c.bo||(c.ao=r,c.bo=a,d.uniform2f(c.Wg,r,a));c.kl&&d.uniform1f(c.kl,V()/1E3);if(c.K.length)for(b=0,a=c.K.length;b<a;b++)r=this.Zo[b],r!==c.el[b]&&(c.el[b]=r,d.uniform1f(c.K[b][1],r))};f.prototype.zc=function(){this.Vc===this.md.length&&this.md.push(new d(0,this));return this.md[this.Vc++]};f.prototype.Zd=function(){if(0!==this.Vc&&!this.k.isContextLost()){var b=this.k;0<this.Lf&&(b.bindBuffer(b.ARRAY_BUFFER,this.El),b.bufferData(b.ARRAY_BUFFER,this.Ho.subarray(0,this.Lf),
b.STREAM_DRAW),a&&0<=a.xc&&"<point>"===a.name&&b.vertexAttribPointer(a.xc,4,b.FLOAT,!1,0,0));if(0<this.gd){var a=this.qg;b.bindBuffer(b.ARRAY_BUFFER,this.Fh[this.nd]);b.bufferData(b.ARRAY_BUFFER,this.pm.subarray(0,this.gd),b.STREAM_DRAW);a&&0<=a.xc&&"<point>"!==a.name&&b.vertexAttribPointer(a.xc,2,b.FLOAT,!1,0,0);b.bindBuffer(b.ARRAY_BUFFER,this.zh[this.nd]);b.bufferData(b.ARRAY_BUFFER,this.$l.subarray(0,this.gd),b.STREAM_DRAW);a&&0<=a.ge&&"<point>"!==a.name&&b.vertexAttribPointer(a.ge,2,b.FLOAT,
!1,0,0)}for(var c,b=0,a=this.Vc;b<a;b++)switch(c=this.md[b],c.type){case 1:c.$q();break;case 2:c.hr();break;case 3:c.dr();break;case 4:c.cr();break;case 5:c.jr();break;case 6:c.br();break;case 7:c.Yq();break;case 8:c.Zq();break;case 9:c.er();break;case 10:c.fr();break;case 11:c.ir()}this.Lf=this.gd=this.Vc=0;this.Rb=this.zb=!1;this.nd++;4<=this.nd&&(this.nd=0)}};f.prototype.Ye=function(b){if(b!==this.Kn){var a=this.zc();a.type=3;this.Kn=a.vo=b;this.Rb=this.zb=!1}};f.prototype.Xb=function(b){if(b!==
this.Oe){var a=this.zc();a.type=2;this.Oe=a.Qc=b;this.Rb=this.zb=!1}};f.prototype.ke=function(b,a){if(b!==this.Ln||a!==this.In){var c=this.zc();c.type=4;c.jc=b;c.tc=a;this.Ln=b;this.In=a;this.Rb=this.zb=!1}};f.prototype.To=function(){this.ke(this.k.ONE,this.k.ONE_MINUS_SRC_ALPHA)};f.prototype.ph=function(b,a,c,d,r,l,h,s){15992<=this.gd&&this.Zd();var g=this.gd,p=this.pm,v=this.$l;if(this.zb)this.md[this.Vc-1].tc+=6;else{var f=this.zc();f.type=1;f.jc=g/4*3;f.tc=6;this.zb=!0;this.Rb=!1}p[g]=b;v[g++]=
0;p[g]=a;v[g++]=0;p[g]=c;v[g++]=1;p[g]=d;v[g++]=0;p[g]=r;v[g++]=1;p[g]=l;v[g++]=1;p[g]=h;v[g++]=0;p[g]=s;v[g++]=1;this.gd=g};f.prototype.Fd=function(b,a,c,d,f,l,h,s,g){15992<=this.gd&&this.Zd();var p=this.gd,v=this.pm,m=this.$l;if(this.zb)this.md[this.Vc-1].tc+=6;else{var n=this.zc();n.type=1;n.jc=p/4*3;n.tc=6;this.zb=!0;this.Rb=!1}var n=g.left,e=g.top,u=g.right;g=g.bottom;v[p]=b;m[p++]=n;v[p]=a;m[p++]=e;v[p]=c;m[p++]=u;v[p]=d;m[p++]=e;v[p]=f;m[p++]=u;v[p]=l;m[p++]=g;v[p]=h;m[p++]=n;v[p]=s;m[p++]=
g;this.gd=p};f.prototype.tt=function(b,a,c,d){7996<=this.Lf&&this.Zd();var f=this.Lf,l=this.Ho;if(this.Rb)this.md[this.Vc-1].tc++;else{var h=this.zc();h.type=8;h.jc=f;h.tc=1;this.Rb=!0;this.zb=!1}l[f++]=b;l[f++]=a;l[f++]=c;l[f++]=d;this.Lf=f};f.prototype.dd=function(b){if(this.Jg!==b){if(!this.Qa[b]){if(0===this.Jg)return;b=0}var a=this.zc();a.type=9;this.Jg=a.jc=b;this.Rb=this.zb=!1}};f.prototype.nh=function(b){b=this.Qa[b];return!(!b.Te&&!b.Se)};f.prototype.Gl=function(b){b=this.Qa[b];return!!(b.Te||
b.Se||b.Um)};f.prototype.Bt=function(b){b=this.Qa[b];return 0!==b.sk||0!==b.tk};f.prototype.ms=function(b){return this.Qa[b].sk};f.prototype.ns=function(b){return this.Qa[b].tk};f.prototype.os=function(b,a){return this.Qa[b].K[a][2]};f.prototype.gj=function(b){return this.Qa[b].Km};f.prototype.Pf=function(b,a,c,d,f,l,h,s,g,p,v,m,n,e){var u=this.Qa[this.Jg],t,y;if(u.Es||e.length){t=this.zc();t.type=10;t.X?bc(this.yc,t.X):t.X=ac();y=t.X;y[0]=a;y[1]=c;y[2]=d;y[3]=f;y[4]=l;y[5]=h;y[6]=s;y[7]=g;y[8]=p;
y[9]=v;y[10]=m;y[11]=n;t.Qc=u.Vg?b:null;if(e.length)for(c=t.Zo,c.length=e.length,b=0,a=e.length;b<a;b++)c[b]=e[b];this.Rb=this.zb=!1}};f.prototype.clear=function(b,a,c,d){var f=this.zc();f.type=7;f.jc=0;f.X||(f.X=ac());f.X[0]=b;f.X[1]=a;f.X[2]=c;f.X[3]=d;this.Rb=this.zb=!1};f.prototype.clearRect=function(b,a,c,d){if(!(0>c||0>d)){var f=this.zc();f.type=7;f.jc=1;f.X||(f.X=ac());f.X[0]=b;f.X[1]=a;f.X[2]=c;f.X[3]=d;this.Rb=this.zb=!1}};f.prototype.At=function(){this.Zd();this.k.flush()};var q=[],k={};
f.prototype.Qq=function(){q.length=0;k={}};f.prototype.Bf=function(b,a,c,d){a=!!a;c=!!c;var f=b.src+","+a+","+c+(a?",undefined":""),l=null;if("undefined"!==typeof b.src&&k.hasOwnProperty(f))return l=k[f],l.Oh++,l;this.Zd();var h=this.k,s=ka(b.width)&&ka(b.height),l=h.createTexture();h.bindTexture(h.TEXTURE_2D,l);h.pixelStorei(h.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var g=h.RGBA,p=h.RGBA,v=h.UNSIGNED_BYTE;if(d&&!this.Le)switch(d){case 1:p=g=h.RGB;break;case 2:v=h.UNSIGNED_SHORT_4_4_4_4;break;case 3:v=
h.UNSIGNED_SHORT_5_5_5_1;break;case 4:p=g=h.RGB,v=h.UNSIGNED_SHORT_5_6_5}if(!s&&a){d=document.createElement("canvas");d.width=la(b.width);d.height=la(b.height);var m=d.getContext("2d");m.webkitImageSmoothingEnabled=c;m.mozImageSmoothingEnabled=c;m.msImageSmoothingEnabled=c;m.imageSmoothingEnabled=c;m.drawImage(b,0,0,b.width,b.height,0,0,d.width,d.height);h.texImage2D(h.TEXTURE_2D,0,g,p,v,d)}else h.texImage2D(h.TEXTURE_2D,0,g,p,v,b);a?(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_S,h.REPEAT),h.texParameteri(h.TEXTURE_2D,
h.TEXTURE_WRAP_T,h.REPEAT)):(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_S,h.CLAMP_TO_EDGE),h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_T,h.CLAMP_TO_EDGE));c?(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MAG_FILTER,h.LINEAR),s&&this.Zm?(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MIN_FILTER,h.LINEAR_MIPMAP_LINEAR),h.generateMipmap(h.TEXTURE_2D)):h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MIN_FILTER,h.LINEAR)):(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MAG_FILTER,h.NEAREST),h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MIN_FILTER,
h.NEAREST));h.bindTexture(h.TEXTURE_2D,null);this.Oe=null;l.kg=b.width;l.jg=b.height;l.Oh=1;l.Pm=f;q.push(l);return k[f]=l};f.prototype.Xd=function(b,a,c){var d;this.Zd();var f=this.k;this.Le&&(d=!1);var l=f.createTexture();f.bindTexture(f.TEXTURE_2D,l);f.texImage2D(f.TEXTURE_2D,0,f.RGBA,b,a,0,f.RGBA,d?f.UNSIGNED_SHORT_4_4_4_4:f.UNSIGNED_BYTE,null);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_S,f.CLAMP_TO_EDGE);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_T,f.CLAMP_TO_EDGE);f.texParameteri(f.TEXTURE_2D,
f.TEXTURE_MAG_FILTER,c?f.LINEAR:f.NEAREST);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,c?f.LINEAR:f.NEAREST);f.bindTexture(f.TEXTURE_2D,null);this.Oe=null;l.kg=b;l.jg=a;q.push(l);return l};f.prototype.deleteTexture=function(b){b&&("undefined"!==typeof b.Oh&&1<b.Oh?b.Oh--:(this.Zd(),b===this.Oe&&(this.k.bindTexture(this.k.TEXTURE_2D,null),this.Oe=null),b===this.Pe&&(this.k.activeTexture(this.k.TEXTURE1),this.k.bindTexture(this.k.TEXTURE_2D,null),this.k.activeTexture(this.k.TEXTURE0),this.Pe=
null),Ba(q,b),"undefined"!==typeof b.Pm&&delete k[b.Pm],this.k.deleteTexture(b)))};f.prototype.cd=function(b){if(b!==this.Oo){var a=this.zc();a.type=6;this.Oo=a.Qc=b;this.Rb=this.zb=!1}};hb=f})();
(function(){function f(){return"undefined"!==typeof jQuery?jQuery(window).width():window.innerWidth}function m(){return"undefined"!==typeof jQuery?jQuery(window).height():window.innerHeight}function d(e){if(e&&(e.getContext||e.dc)&&!e.c2runtime){e.c2runtime=this;var a=this;this.uc=(this.Eg=/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.bb=!!e.dc;this.rf="undefined"!==typeof window.AppMobi||this.bb;this.gc=!!window.c2cocoonjs;this.Hc=!!window.c2ejecta;this.gc&&(CocoonJS.App.onSuspended.addEventListener(function(){a.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){a.setSuspended(!1)}));this.Hc&&(document.addEventListener("pagehide",function(){a.setSuspended(!0)}),document.addEventListener("pageshow",
function(){a.setSuspended(!1)}),document.addEventListener("resize",function(){a.setSize(window.innerWidth,window.innerHeight)}));this.da=this.bb||this.gc||this.Hc;this.Le=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent)||/edge\//i.test(navigator.userAgent);this.Dn=/tizen/i.test(navigator.userAgent);this.wi=/android/i.test(navigator.userAgent)&&!this.Dn&&!this.Le;this.cl=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&
!this.Le;this.Hn=/ipad/i.test(navigator.userAgent);this.Ci=this.cl||this.Hn||this.Hc;this.Ss=this.cl&&/os\s6/i.test(navigator.userAgent);this.Dg=(/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent))&&!this.Le;this.Xk=/amazonwebappplatform/i.test(navigator.userAgent);this.Ms=/firefox/i.test(navigator.userAgent);this.Cn=/safari/i.test(navigator.userAgent)&&!this.Dg&&!this.Le;this.Ps=/windows/i.test(navigator.userAgent);this.ee="undefined"!==typeof window.c2nodewebkit||"undefined"!==
typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.Fn=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.Rs=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.tf=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.al=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.En=this.Fn||this.Rs||this.al;this.Ls=!("undefined"===typeof window.c2isBlackberry10||
!window.c2isBlackberry10);this.xi=this.wi&&!this.Dg&&!this.Eg&&!this.Ms&&!this.Xk&&!this.da;this.devicePixelRatio=1;this.yd=this.uc||this.Eg||this.rf||this.gc||this.wi||this.Ci||this.tf||this.al||this.Ls||this.Dn||this.Hc;this.yd||(this.yd=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));"undefined"===typeof cr_is_preview||this.ee||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||
(this.ee=!0);this.canvas=e;this.Sm=document.getElementById("c2canvasdiv");this.aa=this.n=this.k=null;this.zk="";this.gi=!1;this.so=this.uo=0;this.canvas.oncontextmenu=function(e){e.preventDefault&&e.preventDefault();return!1};this.canvas.onselectstart=function(e){e.preventDefault&&e.preventDefault();return!1};this.bb&&(window.c2runtime=this);this.ee&&(window.ondragover=function(e){e.preventDefault();return!1},window.ondrop=function(e){e.preventDefault();return!1},require("nw.gui").App.clearCache());
this.xi&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=e.width;this.height=e.height;this.M=this.width;this.L=this.height;this.Vh=this.width;this.Uh=this.height;this.Lg=window.innerWidth;this.Kg=window.innerHeight;this.Xr=!1;this.ea=!0;this.Gg=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.m=[];this.Ea=[];this.hl={};this.Tb=[];this.rk={};this.rd=[];this.eg=[];this.Ej=[];this.Sj=[];this.Hq=[];this.ze={};this.Yk=
this.be=!1;this.xd=0;this.$k=!1;this.Fc=[];this.zd=this.pb=this.Qg=this.lj="";this.xh=this.cp=!1;this.gk=this.Yg=this.Yd=this.Ce=0;this.Yf=1;this.hc=new Ya;this.hd=new Ya;this.Si=this.ii=this.di=this.Xf=this.Re=this.yk=this.Gi=0;this.ve=null;this.nk=[];this.qk=[];this.ci=-1;this.ll=[[]];this.hm=this.Oi=0;this.Il(null);this.no=this.ah=0;this.gl=!0;this.sg=0;this.yh=[];this.em=this.Jl=-1;this.yf=!0;this.Mi=0;this.Fg=!1;this.Ut=0;this.ff=null;this.ga=this.pf=!1;this.ro=new ca;this.tl=new ca;this.ul=
new ca;this.Et=[];this.Pc=new $a([]);this.Zl=new $a([]);this.Sd=[];this.pi={};this.hf={};this.ef={};this.dg={};this.Mm={};this.On=this.Ii=this.Sb=this.ic=this.Nn=this.Hi=this.Y=null;this.ag=this.bl=!1;this.Ak=[null,null];this.Fe=0;this.vk="";this.Dd={};this.rj=this.Cf=null;this.Ri=[];this.Ft()}}function q(e){e.target.result.createObjectStore("saves",{keyPath:"slot"})}function k(e,a,b,c){var h=indexedDB.open("_C2SaveStates");h.onupgradeneeded=q;h.onerror=c;h.onsuccess=function(h){h=h.target.result;
h.onerror=c;h.transaction(["saves"],"readwrite").objectStore("saves").put({slot:e,data:a}).onsuccess=b}}function b(e,a,b){var c=indexedDB.open("_C2SaveStates");c.onupgradeneeded=q;c.onerror=b;c.onsuccess=function(c){c=c.target.result;c.onerror=b;var h=c.transaction(["saves"]).objectStore("saves").get(e);h.onsuccess=function(){h.result?a(h.result.data):a(null)}}}function a(){M("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?
window.location.reload(!0):window.location+="?continuous"}function c(e){var a,b={};for(a in e)!e.hasOwnProperty(a)||e[a]instanceof ca||e[a]&&"undefined"!==typeof e[a].ov||(b[a]=e[a]);return b}d.prototype.Ft=function(){var e=this,a;a=this.tf?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest;var b="data.js";if(this.Fn||this.tf||this.al)b="data.json";a.open("GET",b,!0);var c=!1;if(!this.da&&"response"in a&&"responseType"in a)try{a.responseType="json",c="json"===a.responseType}catch(h){c=!1}if(!c&&
"responseType"in a)try{a.responseType="text"}catch(l){}if("overrideMimeType"in a)try{a.overrideMimeType("application/json; charset=utf-8")}catch(g){}this.tf?a.onreadystatechange=function(){4===a.readyState&&e.Ki(JSON.parse(a.responseText))}:(a.onload=function(){if(c)e.Ki(a.response);else if(e.Hc){var b=a.responseText,b=b.substr(b.indexOf("{"));e.Ki(JSON.parse(b))}else e.Ki(JSON.parse(a.responseText))},a.onerror=function(e){fa("Error requesting "+b+":");fa(e)});a.send()};d.prototype.Is=function(){var e=
this,a,b,c,h,l,g,d,n,s;this.devicePixelRatio=(this.Me=(!this.da||this.Hc)&&this.eu&&!this.xi)?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.fb();b=!(!this.Xr&&(!this.Uj||this.ee||this.En||this.tf||this.Eg||this.uc||this.Xk));0<this.lb&&this.setSize(f(),m(),!0);try{this.pr&&(this.gc||this.Hc||!this.da)&&(a={alpha:b,depth:!1,antialias:!1,failIfMajorPerformanceCaveat:!0},this.k=this.canvas.getContext("webgl",a)||this.canvas.getContext("experimental-webgl",
a))}catch(p){}if(this.k){this.da||(this.cb=document.createElement("canvas"),jQuery(this.cb).appendTo(this.canvas.parentNode),this.cb.oncontextmenu=function(){return!1},this.cb.onselectstart=function(){return!1},this.cb.width=this.Vh,this.cb.height=this.Uh,jQuery(this.cb).css({width:this.Vh+"px",height:this.Uh+"px"}),this.Jo(),this.Dl=this.cb.getContext("2d"));this.n=new hb(this.k,this.yd);this.n.Qf(this.canvas.width,this.canvas.height);this.n.Zm=0!==this.kr;this.aa=null;this.canvas.addEventListener("webglcontextlost",
function(a){a.preventDefault();e.ct();M("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){e.n.wn();e.n.Qf(e.n.width,e.n.height,!0);e.ic=null;e.Sb=null;e.Ak[0]=null;e.Ak[1]=null;e.dt();e.ea=!0;M("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);a=0;for(b=this.m.length;a<b;a++)for(l=this.m[a],c=0,h=l.G.length;c<h;c++)d=l.G[c],d.eb=this.n.Ik(d.id),this.ag=this.ag||this.n.nh(d.eb);a=0;for(b=this.Tb.length;a<
b;a++){n=this.Tb[a];c=0;for(h=n.G.length;c<h;c++)d=n.G[c],d.eb=this.n.Ik(d.id);c=0;for(h=n.J.length;c<h;c++)for(s=n.J[c],l=0,g=s.G.length;l<g;l++)d=s.G[l],d.eb=this.n.Ik(d.id),this.ag=this.ag||this.n.nh(d.eb)}}else{if(0<this.lb&&this.bb){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.aa=AppMobi.canvas.getContext("2d");try{this.aa.samplingMode=this.S?"smooth":"sharp",this.aa.globalScale=1,this.aa.HTML5CompatibilityMode=!0,this.aa.imageSmoothingEnabled=
this.S}catch(v){}0!==this.width&&0!==this.height&&(this.aa.width=this.width,this.aa.height=this.height)}this.aa||(a=this.gc?{antialias:!!this.S,alpha:b}:{alpha:b},this.aa=this.canvas.getContext("2d",a),this.aa.webkitImageSmoothingEnabled=this.S,this.aa.mozImageSmoothingEnabled=this.S,this.aa.msImageSmoothingEnabled=this.S,this.aa.imageSmoothingEnabled=this.S);this.Dl=this.cb=null}this.kp=function(a){e.Za(!1,a)};window==window.top||this.da||this.En||this.tf||(document.addEventListener("mousedown",
function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.gc&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(M("Reloading for continuous preview"),this.Qg="__c2_continuouspreview",this.xh=!0),this.pt&&!this.yd&&(jQuery(window).focus(function(){e.setSuspended(!1)}),jQuery(window).blur(function(){e.setSuspended(!0)})));this.da||(a=function(e){if(gb(e)&&
document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(a){}},window.navigator.pointerEnabled?document.addEventListener("pointerdown",a):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",a):document.addEventListener("touchstart",a),document.addEventListener("mousedown",a));0===this.lb&&this.Me&&1<this.devicePixelRatio&&this.setSize(this.Na,this.Ma,!0);this.pp();this.Bs();
this.go();this.ra={}};d.prototype.setSize=function(e,a,b){var c=0,h=0,l=0,g=0,g=0,d=this.Ss&&this.Cn&&!navigator.standalone&&!this.da&&!this.uc;d&&(a+=60);if(this.Lg!==e||this.Kg!==a||b){this.Lg=e;this.Kg=a;var n=this.lb,s=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.Fg)&&!this.uc;if(s||0!==this.lb||b)s&&0<this.Fe&&(n=this.Fe),b=this.devicePixelRatio,4<=n?(l=this.Na/this.Ma,e/a>l?(l*=a,5===n?(g=l*b/this.Na,1<g?g=Math.floor(g):1>g&&
(g=1/Math.ceil(1/g)),l=this.Na*g/b,g=this.Ma*g/b,c=(e-l)/2,h=(a-g)/2,e=l,a=g):(c=(e-l)/2,e=l)):(g=e/l,5===n?(g=g*b/this.Ma,1<g?g=Math.floor(g):1>g&&(g=1/Math.ceil(1/g)),l=this.Na*g/b,g=this.Ma*g/b,c=(e-l)/2,h=(a-g)/2,e=l):h=(a-g)/2,a=g),s&&!this.ee&&(h=c=0)):this.ee&&this.Fg&&0===this.en&&(c=Math.floor((e-this.Na)/2),h=Math.floor((a-this.Ma)/2),e=this.Na,a=this.Ma),2>n&&(this.ig=b),this.Me&&this.Hn&&1<b&&(1024<=e&&(e=1023),1024<=a&&(a=1023)),this.Vh=Math.round(e),this.Uh=Math.round(a),this.width=
Math.round(e*b),this.height=Math.round(a*b),this.ea=!0,this.Bp?(this.M=this.width,this.L=this.height,this.oc=!0):this.width<this.Na&&this.height<this.Ma||1===n?(this.M=this.width,this.L=this.height,this.oc=!0):(this.M=this.Na,this.L=this.Ma,this.oc=!1,2===n?(l=this.Na/this.Ma,n=this.Lg/this.Kg,n<l?this.M=this.L*n:n>l&&(this.L=this.M/n)):3===n&&(l=this.Na/this.Ma,n=this.Lg/this.Kg,n>l?this.M=this.L*n:n<l&&(this.L=this.M/n))),this.Sm&&!this.da&&(jQuery(this.Sm).css({width:Math.round(e)+"px",height:Math.round(a)+
"px","margin-left":Math.floor(c)+"px","margin-top":Math.floor(h)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(e)+"px",height:Math.round(a)+"px"})),this.canvas&&(this.canvas.width=Math.round(e*b),this.canvas.height=Math.round(a*b),this.Hc?(this.canvas.style.left=Math.floor(c)+"px",this.canvas.style.top=Math.floor(h)+"px",this.canvas.style.width=Math.round(e)+"px",this.canvas.style.height=Math.round(a)+"px"):this.Me&&!this.da&&jQuery(this.canvas).css({width:Math.round(e)+
"px",height:Math.round(a)+"px"})),this.cb&&(this.cb.width=Math.round(e),this.cb.height=Math.round(a),jQuery(this.cb).css({width:Math.round(e)+"px",height:Math.round(a)+"px"})),this.n&&this.n.Qf(Math.round(e*b),Math.round(a*b)),this.bb&&this.aa&&(this.aa.width=Math.round(e),this.aa.height=Math.round(a)),this.aa&&(this.aa.webkitImageSmoothingEnabled=this.S,this.aa.mozImageSmoothingEnabled=this.S,this.aa.msImageSmoothingEnabled=this.S,this.aa.imageSmoothingEnabled=this.S),this.pp(),this.da||!d&&!this.cl||
window.setTimeout(function(){window.scrollTo(0,1)},100)}};d.prototype.pp=function(){if(this.Jq&&0!==this.Bl){var e="portrait";2===this.Bl&&(e="landscape");screen.orientation&&screen.orientation.lock?screen.orientation.lock(e):screen.lockOrientation?screen.lockOrientation(e):screen.webkitLockOrientation?screen.webkitLockOrientation(e):screen.mozLockOrientation?screen.mozLockOrientation(e):screen.msLockOrientation&&screen.msLockOrientation(e)}};d.prototype.ct=function(){this.n.Qq();this.bl=!0;var e,
a,b;e=0;for(a=this.m.length;e<a;e++)b=this.m[e],b.Ti&&b.Ti()};d.prototype.dt=function(){this.bl=!1;var e,a,b;e=0;for(a=this.m.length;e<a;e++)b=this.m[e],b.Ui&&b.Ui()};d.prototype.Jo=function(){if(!this.da){var e=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.Fg)&&!this.uc?jQuery(this.canvas).offset():jQuery(this.canvas).position();e.position="absolute";jQuery(this.cb).css(e)}};var w=window.cancelAnimationFrame||window.mozCancelAnimationFrame||
window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;d.prototype.setSuspended=function(e){var a;if(e&&!this.Gg)for(M("[Construct 2] Suspending"),this.Gg=!0,-1!==this.Jl&&w&&w(this.Jl),-1!==this.em&&clearTimeout(this.em),e=0,a=this.yh.length;e<a;e++)this.yh[e](!0);else if(!e&&this.Gg){M("[Construct 2] Resuming");this.Gg=!1;this.Gi=V();this.Re=V();e=this.Yg=this.ii=0;for(a=this.yh.length;e<a;e++)this.yh[e](!1);this.Za(!1)}};d.prototype.Fq=function(e){this.yh.push(e)};
d.prototype.Pd=function(e){return this.Ri[e]};d.prototype.Ki=function(e){e&&e.project||fa("Project model unavailable");e=e.project;this.name=e[0];this.dn=e[1];this.lb=e[12];this.en=e[12];this.Na=e[10];this.Ma=e[11];this.Co=this.Na/2;this.Do=this.Ma/2;this.da&&!this.Hc&&(4<=e[12]||0===e[12])&&(M("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.en=this.lb=3);this.om=e[18];this.Sg=e[19];0===this.Sg&&(this.Cf=new Image,this.Cf.src=
"loading-logo.png");this.ah=e[21];this.Ri=fc();this.ed=new Y(this);var a,b,c,h,l,g,d,n,s;a=0;for(b=e[2].length;a<b;a++)d=e[2][a],c=this.Pd(d[0]),ib(d,c.prototype),s=new c(this),s.pj=d[1],s.fe=d[2],s.lo=d[9],s.ha&&s.ha(),this.plugins.push(s);this.Ri=fc();a=0;for(b=e[3].length;a<b;a++){d=e[3][a];l=this.Pd(d[1]);s=null;c=0;for(h=this.plugins.length;c<h;c++)if(this.plugins[c]instanceof l){s=this.plugins[c];break}var p=new s.gb(s);p.name=d[0];p.A=d[2];p.Wk=d[3].slice(0);p.gu=d[3].length;p.Kq=d[4];p.Zr=
d[5];p.O=d[11];p.A?(p.Qi=[],p.sd=this.sg++,p.na=null):(p.Qi=null,p.sd=-1,p.na=[]);p.ei=null;p.lf=null;p.$m=null;p.Ic=!1;p.Nb=null;d[6]?(p.yj=d[6][0],p.zj=d[6][1],p.Ah=d[6][2]):(p.yj=null,p.zj=0,p.Ah=0);p.Lb=d[7]?d[7]:null;p.index=a;p.c=[];p.Zh=[];p.me=[new jb(p)];p.qd=0;p.Wc=null;p.Vq=0;p.Vf=!0;p.Gj=kb;p.ds=lb;p.ks=mb;p.ba=nb;p.oh=ob;p.Hl=pb;p.Mf=rb;p.ki=sb;p.Ck=tb;p.Fk=ub;p.ld=vb;p.ln=wb;p.Rh=new ab(this.Na,this.Ma);p.Gh=!0;p.Hh=!1;p.ra={};p.toString=xb;p.Ea=[];c=0;for(h=d[8].length;c<h;c++){n=d[8][c];
var f=this.Pd(n[1]),v=null;l=0;for(g=this.Ea.length;l<g;l++)if(this.Ea[l]instanceof f){v=this.Ea[l];break}v||(v=new f(this),v.mo=[],v.Gf=new ca,v.ha&&v.ha(),this.Ea.push(v));-1===v.mo.indexOf(p)&&v.mo.push(p);l=new v.gb(v,p);l.name=n[0];l.O=n[2];l.ha();p.Ea.push(l)}p.global=d[9];p.Zk=d[10];p.G=[];c=0;for(h=d[12].length;c<h;c++)p.G.push({id:d[12][c][0],name:d[12][c][1],eb:-1,Ta:!0,index:c});p.Cv=d[13];this.om&&!p.A&&!p.Zk&&s.fe||p.ha();p.name&&(this.types[p.name]=p);this.m.push(p);s.pj&&(c=new s.Da(p),
c.uid=this.ah++,c.Mo=this.no++,c.Je=0,c.wg=yb,c.toString=zb,c.Ca=d[14],c.ha(),p.c.push(c),this.Dd[c.uid.toString()]=c)}a=0;for(b=e[4].length;a<b;a++)for(l=e[4][a],g=this.m[l[0]],c=1,h=l.length;c<h;c++)d=this.m[l[c]],d.na.push(g),g.Qi.push(d);a=0;for(b=e[27].length;a<b;a++){l=e[27][a];g=[];c=0;for(h=l.length;c<h;c++)g.push(this.m[l[c]]);c=0;for(h=g.length;c<h;c++)g[c].Ic=!0,g[c].Nb=g}if(0<this.sg)for(a=0,b=this.m.length;a<b;a++)if(d=this.m[a],!d.A&&d.na.length){d.ei=Array(this.sg);d.lf=Array(this.sg);
d.$m=Array(this.sg);p=[];c=v=f=n=0;for(h=d.na.length;c<h;c++)for(s=d.na[c],d.ei[s.sd]=n,n+=s.gu,d.lf[s.sd]=f,f+=s.Kq,d.$m[s.sd]=v,v+=s.Zr,l=0,g=s.G.length;l<g;l++)p.push(wa({},s.G[l]));d.G=p.concat(d.G);c=0;for(h=d.G.length;c<h;c++)d.G[c].index=c}a=0;for(b=e[5].length;a<b;a++)d=e[5][a],c=new Ab(this,d),this.hl[c.name]=c,this.Tb.push(c);a=0;for(b=e[6].length;a<b;a++)d=e[6][a],c=new Bb(this,d),this.rk[c.name]=c,this.rd.push(c);a=0;for(b=this.rd.length;a<b;a++)this.rd[a].Ba();a=0;for(b=this.rd.length;a<
b;a++)this.rd[a].jm();a=0;for(b=this.Ej.length;a<b;a++)this.Ej[a].Ba();this.Ej.length=0;this.Iq=e[7];this.vk=e[8];this.bd=e[9];this.ig=1;this.pr=e[13];this.S=e[14];this.Uj=e[15];this.eu=e[17];this.Bl=e[20];this.Jq=0<this.Bl;this.pt=e[22];this.oc=this.Bp=e[23];this.kr=e[24];this.yt=e[25];this.uj=Date.now();this.Ri.length=0;this.Is()};var r=!1;d.prototype.rm=function(e,a){e.cocoonLazyLoad=!0;e.onerror=function(a){r=e.Om=!0;console&&console.error&&console.error("Error loading image '"+e.src+"': ",a)};
this.Hc?e.src=a:e.src||("undefined"!==typeof XAPKReader?XAPKReader.get(a,function(a){e.src=a},function(b){r=e.Om=!0;console&&console.error&&console.error("Error extracting image '"+a+"' from expansion file: ",b)}):e.src=a);this.eg.push(e)};d.prototype.Wr=function(e){var a,b;a=0;for(b=this.eg.length;a<b;a++)if(this.eg[a].Rq===e)return this.eg[a];return null};var l=0,h=!1;d.prototype.Bs=function(){this.ff&&(l=this.ff.Rt(this.Iq))};d.prototype.Lm=function(){var e=l,a=0,b=0,c=!0,g,d,b=0;for(g=this.eg.length;b<
g;b++){d=this.eg[b];var n=d.hk;if(!n||0>=n)n=5E4;e+=n;d.src&&(d.complete||d.loaded)&&!d.Om?a+=n:c=!1}c&&this.yt&&this.ff&&(h||(this.ff.Vt(),h=!0),b=this.ff.ls(),a+=b,b<l&&(c=!1));this.Xe=0==e?0:a/e;return c};d.prototype.go=function(){if(this.aa||this.n){var e=this.aa||this.Dl;this.cb&&this.Jo();this.Xe=0;this.Mn=-1;if(this.Lm())this.Cs();else{var a=Date.now()-this.uj;if(e){var b=this.width,c=this.height,h=this.devicePixelRatio;this.cb&&(b=this.Vh,c=this.Uh,h=1);if(3!==this.Sg&&(this.gc||500<=a&&this.Mn!=
this.Xe)){e.clearRect(0,0,b,c);var a=b/2,c=c/2,b=0===this.Sg&&this.Cf.complete,l=40*h,g=0,d=80*h,n;b&&(d=this.Cf.width*h,n=this.Cf.height*h,l=d/2,g=n/2,e.drawImage(this.Cf,R(a-l),R(c-g),d,n));1>=this.Sg?(a=R(a-l)+.5,c=R(c+(g+(b?12*h:0)))+.5,e.fillStyle=r?"red":"DodgerBlue",e.fillRect(a,c,Math.floor(d*this.Xe),6*h),e.strokeStyle="black",e.strokeRect(a,c,d,6*h),e.strokeStyle="white",e.strokeRect(a-1*h,c-1*h,d+2*h,8*h)):2===this.Sg&&(e.font=this.Hc?"12pt ArialMT":"12pt Arial",e.fillStyle=r?"#f00":"#999",
e.Bv="middle",h=Math.round(100*this.Xe)+"%",b=e.measureText?e.measureText(h):null,e.fillText(h,a-(b?b.width:0)/2,c))}this.Mn=this.Xe}setTimeout(function(e){return function(){e.go()}}(this),this.gc?10:100)}}};d.prototype.Cs=function(){this.cb&&(this.canvas.parentNode.removeChild(this.cb),this.cb=this.Dl=null);this.uj=Date.now();this.Re=V();var e,a,b;if(this.om)for(e=0,a=this.m.length;e<a;e++)b=this.m[e],b.A||b.Zk||!b.Aa.fe||b.ha();else this.yf=!1;e=0;for(a=this.Tb.length;e<a;e++)this.Tb[e].Sq();2<=
this.lb&&(e=this.Na/this.Ma,a=this.width/this.height,this.ig=2!==this.lb&&a>e||2===this.lb&&a<e?this.height/this.Ma:this.width/this.Na);this.dn?this.hl[this.dn].Xl():this.Tb[0].Xl();this.om||(this.Mi=1,this.trigger(Y.prototype.j.xm,null));navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();e=0;for(a=this.m.length;e<a;e++)b=this.m[e],b.bt&&b.bt();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.Za(!1);this.bb&&
AppMobi.webview.execute("onGameReady();")};var s=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;d.prototype.Za=function(e,a,b){if(this.Y){var c=V();if(b||!this.Gg||e){e||(s?this.Jl=s(this.kp):this.em=setTimeout(this.kp,this.yd?1:16));a=a||c;var h=this.lb;((b=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.uc)||this.Fg)&&
0<this.Fe&&(h=this.Fe);0<h&&(!this.Ci||window.self!==window.top)&&(h=window.innerHeight,this.Lg===window.innerWidth&&this.Kg===h||this.setSize(f(),m()));this.da||(b?(this.gi||(this.zk=jQuery(this.canvas).css("margin")||"0",this.gi=!0),this.Dg||this.ee||jQuery(this.canvas).css({"margin-left":""+Math.floor((screen.width-this.width/this.devicePixelRatio)/2)+"px","margin-top":""+Math.floor((screen.height-this.height/this.devicePixelRatio)/2)+"px"})):this.gi?(this.Dg||this.ee||jQuery(this.canvas).css("margin",
this.zk),this.zk="",this.gi=!1,0===this.lb&&this.setSize(Math.round(this.uo/this.devicePixelRatio),Math.round(this.so/this.devicePixelRatio),!0)):(this.uo=this.width,this.so=this.height));this.yf&&(b=this.Lm(),this.Mi=this.Xe,b&&(this.yf=!1,this.Xe=1,this.trigger(Y.prototype.j.xm,null)));this.Vs(a);!this.ea&&!this.gc||this.bl||this.xh||e||(this.ea=!1,this.n?this.Pb():this.Gc(),this.rj&&(this.canvas&&this.canvas.toDataURL&&(this.canvas.toDataURL(this.rj[0],this.rj[1]),this.trigger(Y.prototype.j.Yp,
null)),this.rj=null));this.vv||(this.Xf++,this.di++,this.ii++);this.Yg+=V()-c}}};d.prototype.Vs=function(e){var a,b,c,h,l,g,d,n;1E3<=e-this.Re&&(this.Re+=1E3,1E3<=e-this.Re&&(this.Re=e),this.yk=this.ii,this.ii=0,this.gk=this.Yg,this.Yg=0);0!==this.Gi&&(a=e-this.Gi,0>a&&(a=0),this.Yd=a/1E3,.5<this.Yd?this.Yd=0:.1<this.Yd&&(this.Yd=.1));this.Gi=e;this.Ce=this.Yd*this.Yf;this.hc.add(this.Ce);this.hd.add(this.Yd);e=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||
this.Fg)&&!this.uc;2<=this.lb||e&&0<this.Fe?(a=this.Na/this.Ma,b=this.width/this.height,c=this.lb,e&&0<this.Fe&&(c=this.Fe),this.ig=2!==c&&b>a||2===c&&b<a?this.height/this.Ma:this.width/this.Na,this.Y&&(this.Y.Ro(this.Y.scrollX),this.Y.So(this.Y.scrollY))):this.ig=this.Me?this.devicePixelRatio:1;this.fb();this.xd++;this.ed.It();this.xd--;this.fb();this.xd++;b=this.ro.Sc();e=0;for(a=b.length;e<a;e++)b[e].xv();e=0;for(a=this.m.length;e<a;e++)if(g=this.m[e],!g.A&&(g.Ea.length||g.na.length))for(b=0,c=
g.c.length;b<c;b++)for(d=g.c[b],h=0,l=d.F.length;h<l;h++)d.F[h].Za();e=0;for(a=this.m.length;e<a;e++)if(g=this.m[e],!g.A&&(g.Ea.length||g.na.length))for(b=0,c=g.c.length;b<c;b++)for(d=g.c[b],h=0,l=d.F.length;h<l;h++)n=d.F[h],n.xt&&n.xt();b=this.tl.Sc();e=0;for(a=b.length;e<a;e++)b[e].Za();this.xd--;this.Ds();for(e=0;this.ve&&10>e++;)this.Wm(this.ve);e=0;for(a=this.rd.length;e<a;e++)this.rd[e].Pk=!1;this.Y.De&&this.Y.De.Pa();this.Et.length=0;this.gl=!1;this.xd++;e=0;for(a=this.m.length;e<a;e++)if(g=
this.m[e],!g.A&&(g.Ea.length||g.na.length))for(b=0,c=g.c.length;b<c;b++)for(d=g.c[b],h=0,l=d.F.length;h<l;h++)n=d.F[h],n.am&&n.am();b=this.ul.Sc();e=0;for(a=b.length;e<a;e++)b[e].am();this.xd--};d.prototype.Wm=function(e){var a=this.Y;this.Y.Wt();var b,c,h,l,g,d,n;if(this.n)for(b=0,c=this.m.length;b<c;b++)g=this.m[b],g.A||!g.Fj||g.global&&0!==g.c.length||-1!==e.Bg.indexOf(g)||g.Fj();a==e&&(this.ed.Jb.length=0);e.Xl();b=0;for(c=this.m.length;b<c;b++)if(g=this.m[b],g.global||g.Aa.pj)for(e=0,a=g.c.length;e<
a;e++)if(d=g.c[e],d.Al&&d.Al(),d.F)for(h=0,l=d.F.length;h<l;h++)n=d.F[h],n.Al&&n.Al();this.gl=this.ea=!0;this.fb()};d.prototype.cm=function(e){this.tl.add(e)};d.prototype.Yt=function(e){this.ul.add(e)};d.prototype.Dk=function(e){return e&&-1!==e.$g?this.Yd*e.$g:this.Ce};d.prototype.Gc=function(){this.Y.Gc(this.aa);this.bb&&this.aa.present()};d.prototype.Pb=function(){this.Y.Pb(this.n);this.n.At()};d.prototype.Dq=function(e){e&&this.nk.push(e)};d.prototype.ni=function(e){e=e.toString();return this.Dd.hasOwnProperty(e)?
this.Dd[e]:null};var g=[];d.prototype.Od=function(e){var a,b;a=e.type.name;var c=null;if(this.ze.hasOwnProperty(a)){if(c=this.ze[a],c.contains(e))return}else c=g.length?g.pop():new ca,this.ze[a]=c;c.add(e);this.be=!0;if(e.Ic)for(a=0,b=e.siblings.length;a<b;a++)this.Od(e.siblings[a]);this.Yk&&c.bg.push(e);this.xd++;this.trigger(Object.getPrototypeOf(e.type.Aa).j.$p,e);this.xd--};d.prototype.fb=function(){if(this.be){var e,a,b,c,h,l;this.Yk=!0;b=0;for(h=this.Fc.length;b<h;++b)for(e=this.Fc[b],a=e.type,
a.c.push(e),c=0,l=a.na.length;c<l;++c)a.na[c].c.push(e),a.na[c].Vf=!0;this.Fc.length=0;this.Pp();Ua(this.ze);this.be=this.Yk=!1}};d.prototype.Pp=function(){for(var e in this.ze)this.ze.hasOwnProperty(e)&&this.Fp(this.ze[e])};d.prototype.Fp=function(e){var a=e.Sc(),b=a[0].type,c,h,l,d,n,s;Va(b.c,e);b.Vf=!0;0===b.c.length&&(b.Hh=!1);c=0;for(h=b.na.length;c<h;++c)s=b.na[c],Va(s.c,e),s.Vf=!0;c=0;for(h=this.ed.Jb.length;c<h;++c)if(n=this.ed.Jb[c],n.rb.hasOwnProperty(b.index)&&Va(n.rb[b.index].vd,e),!b.A)for(l=
0,d=b.na.length;l<d;++l)s=b.na[l],n.rb.hasOwnProperty(s.index)&&Va(n.rb[s.index].vd,e);if(n=a[0].d){if(n.Rc)for(l=n.c,c=0,h=l.length;c<h;++c)d=l[c],e.contains(d)&&(d.la(),n.Vb.update(d,d.Fb,null),d.Fb.set(0,0,-1,-1));Va(n.c,e);n.th(0)}for(c=0;c<a.length;++c)this.Ep(a[c],b);e.clear();g.push(e);this.ea=!0};d.prototype.Ep=function(e,a){var b,c,h;b=0;for(c=this.nk.length;b<c;++b)this.nk[b](e);e.Wd&&a.Rh.update(e,e.Wd,null);(b=e.d)&&b.Nf(e,!0);if(e.F)for(b=0,c=e.F.length;b<c;++b)h=e.F[b],h.bh&&h.bh(),
h.behavior.Gf.remove(e);this.ro.remove(e);this.tl.remove(e);this.ul.remove(e);e.bh&&e.bh();this.Dd.hasOwnProperty(e.uid.toString())&&delete this.Dd[e.uid.toString()];this.Si--;100>a.Zh.length&&a.Zh.push(e)};var p=[];d.prototype.ye=function(e,a,b,c,h,l){var g,d,n,s;if(!e)return null;var f=this.m[e[1]],v=f.Aa.fe;if(this.yf&&v&&!f.Zk||v&&!this.n&&11===e[0][11])return null;var m=a;v||(a=null);var k;f.Zh.length?(k=f.Zh.pop(),k.Nc=!0,f.Aa.Da.call(k,f)):(k=new f.Aa.Da(f),k.Nc=!1);k.uid=!b||l||this.Dd.hasOwnProperty(e[2].toString())?
this.ah++:e[2];this.Dd[k.uid.toString()]=k;k.Mo=this.no++;k.Je=f.c.length;g=0;for(d=this.Fc.length;g<d;++g)this.Fc[g].type===f&&k.Je++;k.wg=yb;k.toString=zb;n=e[3];if(k.Nc)Ua(k.ra);else{k.ra={};if("undefined"!==typeof cr_is_preview)for(k.zn=[],k.zn.length=n.length,g=0,d=n.length;g<d;g++)k.zn[g]=n[g][1];k.Ka=[];k.Ka.length=n.length}g=0;for(d=n.length;g<d;g++)k.Ka[g]=n[g][0];if(v){var r=e[0];k.x=ga(c)?r[0]:c;k.y=ga(h)?r[1]:h;k.z=r[2];k.width=r[3];k.height=r[4];k.depth=r[5];k.i=r[6];k.opacity=r[7];k.Ab=
r[8];k.Bb=r[9];k.sb=r[10];g=r[11];!this.n&&f.G.length&&(k.sb=g);k.lg=cb(k.sb);this.k&&db(k,k.sb,this.k);if(k.Nc){g=0;for(d=r[12].length;g<d;g++)for(n=0,s=r[12][g].length;n<s;n++)k.qa[g][n]=r[12][g][n];k.xa.set(0,0,0,0);k.Wd.set(0,0,-1,-1);k.Fb.set(0,0,-1,-1);k.Mb.Sf(k.xa);k.Yj.length=0}else{k.qa=r[12].slice(0);g=0;for(d=k.qa.length;g<d;g++)k.qa[g]=r[12][g].slice(0);k.U=[];k.Qd=[];k.Qd.length=f.G.length;k.xa=new T(0,0,0,0);k.Wd=new T(0,0,-1,-1);k.Fb=new T(0,0,-1,-1);k.Mb=new va;k.Yj=[];k.ua=Cb;k.Gq=
Db;k.$a=Eb;k.la=Fb;k.du=Gb;k.nm=Hb;k.rc=Ib}k.Bh=!1;k.au=0;k.$t=0;k.Zt=null;14===r.length&&(k.Bh=!0,k.au=r[13][0],k.$t=r[13][1],k.Zt=r[13][2]);g=0;for(d=f.G.length;g<d;g++)k.Qd[g]=!0;k.Md=Jb;k.Md();k.yp=!!k.U.length;k.Mh=!0;k.$j=!0;f.Gh=!0;k.visible=!0;k.$g=-1;k.d=a;k.Tc=a.c.length;"undefined"===typeof k.V&&(k.V=null);this.ea=k.we=!0}var B;g=p.length=0;for(d=f.na.length;g<d;g++)p.push.apply(p,f.na[g].Ea);p.push.apply(p,f.Ea);if(k.Nc)for(g=0,d=p.length;g<d;g++){var w=p[g];B=k.F[g];B.Nc=!0;w.behavior.Da.call(B,
w,k);r=e[4][g];n=0;for(s=r.length;n<s;n++)B.Ca[n]=r[n];B.ha();w.behavior.Gf.add(k)}else for(k.F=[],g=0,d=p.length;g<d;g++)w=p[g],B=new w.behavior.Da(w,k),B.Nc=!1,B.Ca=e[4][g].slice(0),B.ha(),k.F.push(B),w.behavior.Gf.add(k);r=e[5];if(k.Nc)for(g=0,d=r.length;g<d;g++)k.Ca[g]=r[g];else k.Ca=r.slice(0);this.Fc.push(k);this.be=!0;a&&(a.hg(k,!0),1!==a.Db||1!==a.Eb)&&(f.Hh=!0);this.Si++;if(f.Ic){if(k.Ic=!0,k.Nc?k.siblings.length=0:k.siblings=[],!b&&!l){g=0;for(d=f.Nb.length;g<d;g++)if(f.Nb[g]!==f){if(!f.Nb[g].Wc)return null;
k.siblings.push(this.ye(f.Nb[g].Wc,m,!1,v?k.x:c,v?k.y:h,!0))}g=0;for(d=k.siblings.length;g<d;g++)for(k.siblings[g].siblings.push(k),n=0;n<d;n++)g!==n&&k.siblings[g].siblings.push(k.siblings[n])}}else k.Ic=!1,k.siblings=null;k.ha();g=0;for(d=k.F.length;g<d;g++)k.F[g].wt&&k.F[g].wt();return k};d.prototype.ug=function(e){var a,b;a=0;for(b=this.Y.J.length;a<b;a++){var c=this.Y.J[a];if(fb(c.name,e))return c}return null};d.prototype.ud=function(e){e=R(e);0>e&&(e=0);e>=this.Y.J.length&&(e=this.Y.J.length-
1);return this.Y.J[e]};d.prototype.ek=function(e){var a,b;a=0;for(b=e.length;a<b;a++)e[a].ba().fa=!0};d.prototype.oh=function(e){var a,b;a=0;for(b=e.length;a<b;a++)e[a].oh()};d.prototype.Hl=function(e){var a,b;a=0;for(b=e.length;a<b;a++)e[a].Hl()};d.prototype.Mf=function(e){var a,b;a=0;for(b=e.length;a<b;a++)e[a].Mf()};d.prototype.vp=function(e){if(e.Gh){var a,b,c=e.c;a=0;for(b=c.length;a<b;++a)c[a].nm();c=this.Fc;a=0;for(b=c.length;a<b;++a)c[a].type===e&&c[a].nm();e.Gh=!1}};d.prototype.cs=function(e,
a,b,c){var h,g,l=e?1!==e.Db||1!==e.Eb:!1;if(a.A)for(e=0,h=a.Qi.length;e<h;++e)g=a.Qi[e],l||g.Hh?za(c,g.c):(this.vp(g),g.Rh.hj(b,c));else l||a.Hh?za(c,a.c):(this.vp(a),a.Rh.hj(b,c))};d.prototype.Wf=function(e,a,b,c){var h=e.ba(),g,l,d,n,s,p;if(h.fa)for(c||(h.fa=!1,h.c.length=0),g=0,n=e.c.length;g<n;g++){if(d=e.c[g],d.la(),s=d.d.ma(a,b,!0),p=d.d.ma(a,b,!1),d.$a(s,p)){if(c)return!1;h.c.push(d)}}else{g=l=0;for(n=h.c.length;g<n;g++)if(d=h.c[g],d.la(),s=d.d.ma(a,b,!0),p=d.d.ma(a,b,!1),d.$a(s,p)){if(c)return!1;
h.c[l]=h.c[g];l++}c||(h.c.length=l)}e.ld();return c?!0:h.Ok()};d.prototype.Xt=function(e,a){if(!(e&&a&&e!==a&&e.we&&a.we))return!1;e.la();a.la();var b=e.d,c=a.d,h,g,l,d,n,s,p,f;if(b===c||b.Db===c.Db&&c.Eb===c.Eb&&b.scale===c.scale&&b.i===c.i&&b.kb===c.kb){if(!e.xa.Js(a.xa)||!e.Mb.An(a.Mb)||e.Bh&&a.Bh)return!1;if(e.Bh)return this.ip(e,a);if(a.Bh)return this.ip(a,e);p=e.V&&!e.V.uf();h=a.V&&!a.V.uf();if(!p&&!h)return!0;p?(e.V.gf(e.width,e.height,e.i),p=e.V):(this.Pc.Rf(e.Mb,e.x,e.y,e.width,e.height),
p=this.Pc);h?(a.V.gf(a.width,a.height,a.i),f=a.V):(this.Pc.Rf(a.Mb,a.x,a.y,a.width,a.height),f=this.Pc);return p.Cg(f,a.x-e.x,a.y-e.y)}p=e.V&&!e.V.uf();h=a.V&&!a.V.uf();p?(e.V.gf(e.width,e.height,e.i),this.Pc.Xo(e.V)):this.Pc.Rf(e.Mb,e.x,e.y,e.width,e.height);p=this.Pc;h?(a.V.gf(a.width,a.height,a.i),this.Zl.Xo(a.V)):this.Zl.Rf(a.Mb,a.x,a.y,a.width,a.height);f=this.Zl;h=0;for(g=p.Mc;h<g;h++)l=2*h,d=l+1,n=p.Oa[l],s=p.Oa[d],p.Oa[l]=b.nb(n+e.x,s+e.y,!0),p.Oa[d]=b.nb(n+e.x,s+e.y,!1);p.la();h=0;for(g=
f.Mc;h<g;h++)l=2*h,d=l+1,n=f.Oa[l],s=f.Oa[d],f.Oa[l]=c.nb(n+a.x,s+a.y,!0),f.Oa[d]=c.nb(n+a.x,s+a.y,!1);f.la();return p.Cg(f,0,0)};var v=new va;new T(0,0,0,0);var B=[];d.prototype.ip=function(e,a){var b,c,h,g,l=a.xa,d=e.x,n=e.y;e.rv(l,B);var s=a.V&&!a.V.uf();b=0;for(c=B.length;b<c;++b)if(h=B[b],g=h.yv,l.Ks(g,d,n)&&(v.Sf(g),v.offset(d,n),v.An(a.Mb)))if(s)if(a.V.gf(a.width,a.height,a.i),h.Fl){if(h.Fl.Cg(a.V,a.x-(d+g.left),a.y-(n+g.top)))return B.length=0,!0}else{if(this.Pc.Rf(v,0,0,g.right-g.left,g.bottom-
g.top),this.Pc.Cg(a.V,a.x,a.y))return B.length=0,!0}else if(h.Fl){if(this.Pc.Rf(a.Mb,0,0,a.width,a.height),h.Fl.Cg(this.Pc,-(d+g.left),-(n+g.top)))return B.length=0,!0}else return B.length=0,!0;B.length=0;return!1};d.prototype.qp=function(e,a){if(!a)return!1;var b,c,h,g,l;b=0;for(c=e.Ea.length;b<c;b++)if(e.Ea[b].behavior instanceof a)return!0;if(!e.A)for(b=0,c=e.na.length;b<c;b++)for(l=e.na[b],h=0,g=l.Ea.length;h<g;h++)if(l.Ea[h].behavior instanceof a)return!0;return!1};d.prototype.rp=function(e){return this.qp(e,
Yb.Ju)};d.prototype.im=function(e){return this.qp(e,Yb.Ku)};var n=-1;d.prototype.trigger=function(e,a,b){if(!this.Y)return!1;var c=this.Y.De;if(!c)return!1;var h=!1,g,l,d;n++;var s=c.lk;l=0;for(d=s.length;l<d;++l)g=this.np(e,a,s[l],b),h=h||g;g=this.np(e,a,c,b);n--;return h||g};d.prototype.np=function(e,a,b,c){var h=!1,g,l,d,n;if(a)for(d=this.gm(e,a,a.type.name,b,c),h=h||d,n=a.type.na,g=0,l=n.length;g<l;++g)d=this.gm(e,a,n[g].name,b,c),h=h||d;else d=this.gm(e,a,"system",b,c),h=h||d;return h};d.prototype.gm=
function(e,a,b,c,h){var g,l=!1,d=!1,d="undefined"!==typeof h,n=(d?c.bn:c.op)[b];if(!n)return l;var s=null;c=0;for(g=n.length;c<g;++c)if(n[c].method==e){s=n[c].rg;break}if(!s)return l;e=d?s[h]:s;if(!e)return null;c=0;for(g=e.length;c<g;c++)h=e[c][0],d=e[c][1],d=this.Ur(a,b,h,d),l=l||d;return l};d.prototype.Ur=function(e,a,b,c){var h,g,l=!1;this.hm++;var d=this.mb().Ob;d&&this.oh(d.le);var s=1<this.hm;this.oh(b.le);s&&this.Ct();var p=this.Il(b);p.Ob=b;e&&(h=this.types[a].ba(),h.fa=!1,h.c.length=1,h.c[0]=
e,this.types[a].ld());e=!0;if(b.parent){a=p.hp;for(h=b.parent;h;)a.push(h),h=h.parent;a.reverse();h=0;for(g=a.length;h<g;h++)if(!a[h].Kt()){e=!1;break}}e&&(this.di++,b.Kc?b.Jt(c):b.Pa(),l=l||p.Qe);this.Io();s&&this.ut();this.Mf(b.le);d&&this.Mf(d.le);this.be&&0===this.xd&&0===n&&!this.$k&&this.fb();this.hm--;return l};d.prototype.li=function(){var e=this.mb();return e.Ob.hb[e.yb]};d.prototype.Ct=function(){this.Oi++;this.Oi>=this.ll.length&&this.ll.push([])};d.prototype.ut=function(){this.Oi--};d.prototype.jn=
function(){return this.ll[this.Oi]};d.prototype.Il=function(e){this.ci++;this.ci>=this.qk.length&&this.qk.push(new Kb);var a=this.mb();a.reset(e);return a};d.prototype.Io=function(){this.ci--};d.prototype.mb=function(){return this.qk[this.ci]};d.prototype.kn=function(e,a){for(var b,c,h,g,l,d;a;){b=0;for(c=a.Ac.length;b<c;b++)if(d=a.Ac[b],d instanceof Lb&&fb(e,d.name))return d;a=a.parent}b=0;for(c=this.rd.length;b<c;b++)for(l=this.rd[b],h=0,g=l.$d.length;h<g;h++)if(d=l.$d[h],d instanceof Lb&&fb(e,
d.name))return d;return null};d.prototype.mn=function(e){var a,b;a=0;for(b=this.Tb.length;a<b;a++)if(this.Tb[a].O===e)return this.Tb[a];return null};d.prototype.oi=function(e){var a,b;a=0;for(b=this.m.length;a<b;a++)if(this.m[a].O===e)return this.m[a];return null};d.prototype.es=function(e){var a,b;a=0;for(b=this.Sd.length;a<b;a++)if(this.Sd[a].O===e)return this.Sd[a];return null};d.prototype.Ds=function(){var e=this,c=this.lj,h=this.zd,g=this.Qg,l=!1;this.cp&&(l=!0,c="__c2_continuouspreview",this.cp=
!1);if(c.length){this.fb();h=this.Ot();if(window.indexedDB&&!this.gc)k(c,h,function(){M("Saved state to IndexedDB storage ("+h.length+" bytes)");e.zd=h;e.trigger(Y.prototype.j.Oj,null);e.zd="";l&&a()},function(b){try{localStorage.setItem("__c2save_"+c,h),M("Saved state to WebStorage ("+h.length+" bytes)"),e.zd=h,e.trigger(Y.prototype.j.Oj,null),e.zd="",l&&a()}catch(g){M("Failed to save game state: "+b+"; "+g)}});else try{localStorage.setItem("__c2save_"+c,h),M("Saved state to WebStorage ("+h.length+
" bytes)"),e.zd=h,this.trigger(Y.prototype.j.Oj,null),e.zd="",l&&a()}catch(d){M("Error saving to WebStorage: "+d)}this.pb=this.Qg=this.lj=""}g.length&&(window.indexedDB&&!this.gc?b(g,function(a){a?(e.pb=a,M("Loaded state from IndexedDB storage ("+e.pb.length+" bytes)")):(e.pb=localStorage.getItem("__c2save_"+g)||"",M("Loaded state from WebStorage ("+e.pb.length+" bytes)"));e.xh=!1;e.pb.length||e.trigger(Y.prototype.j.Mj,null)},function(){e.pb=localStorage.getItem("__c2save_"+g)||"";M("Loaded state from WebStorage ("+
e.pb.length+" bytes)");e.xh=!1;e.pb.length||e.trigger(Y.prototype.j.Mj,null)}):(this.pb=localStorage.getItem("__c2save_"+g)||"",M("Loaded state from WebStorage ("+this.pb.length+" bytes)"),this.xh=!1,e.pb.length||e.trigger(Y.prototype.j.Mj,null)),this.lj=this.Qg="");this.pb.length&&(this.fb(),this.Us(this.pb),this.zd=this.pb,this.trigger(Y.prototype.j.mq,null),this.pb=this.zd="")};d.prototype.Ot=function(){var e,a,b,h,g,l,d,n={c2save:!0,version:1,rt:{time:this.hc.Z,walltime:this.hd.Z,timescale:this.Yf,
tickcount:this.Xf,execcount:this.di,next_uid:this.ah,running_layout:this.Y.O,start_time_offset:Date.now()-this.uj},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};e=0;for(a=this.m.length;e<a;e++)if(g=this.m[e],!g.A&&!this.rp(g)){l={instances:[]};Ta(g.ra)&&(l.ex=c(g.ra));b=0;for(h=g.c.length;b<h;b++)l.instances.push(this.Rl(g.c[b]));n.types[g.O.toString()]=l}e=0;for(a=this.Tb.length;e<a;e++)b=this.Tb[e],n.layouts[b.O.toString()]=b.Wb();h=n.events.groups;e=0;for(a=this.Sd.length;e<a;e++)b=
this.Sd[e],h[b.O.toString()]=this.pi[b.yg].xg;a=n.events.cnds;for(d in this.hf)this.hf.hasOwnProperty(d)&&(e=this.hf[d],Ta(e.ra)&&(a[d]={ex:c(e.ra)}));a=n.events.acts;for(d in this.ef)this.ef.hasOwnProperty(d)&&(e=this.ef[d],Ta(e.ra)&&(a[d]={ex:e.ra}));a=n.events.vars;for(d in this.dg)this.dg.hasOwnProperty(d)&&(e=this.dg[d],e.yi||e.parent&&!e.Ig||(a[d]=e.data));n.system=this.ed.Wb();return JSON.stringify(n)};d.prototype.No=function(){var e,a,b,c,h,g;this.Dd={};e=0;for(a=this.m.length;e<a;e++)if(b=
this.m[e],!b.A)for(c=0,h=b.c.length;c<h;c++)g=b.c[c],this.Dd[g.uid.toString()]=g};d.prototype.Us=function(e){e=JSON.parse(e);if(e.c2save&&!(1<e.version)){var a=e.rt;this.hc.reset();this.hc.Z=a.time;this.hd.reset();this.hd.Z=a.walltime||0;this.Yf=a.timescale;this.Xf=a.tickcount;this.di=a.execcount;this.uj=Date.now()-a.start_time_offset;var b=a.running_layout;if(b!==this.Y.O)if(b=this.mn(b))this.Wm(b);else return;var c,h,g,l,d,n,s;n=e.types;for(h in n)if(n.hasOwnProperty(h)&&(l=this.oi(parseInt(h,10)))&&
!l.A&&!this.rp(l)){n[h].ex?l.ra=n[h].ex:Ua(l.ra);d=l.c;g=n[h].instances;b=0;for(c=pa(d.length,g.length);b<c;b++)this.Ji(d[b],g[b]);b=g.length;for(c=d.length;b<c;b++)this.Od(d[b]);b=d.length;for(c=g.length;b<c;b++){d=null;if(l.Aa.fe&&(d=this.Y.mi(g[b].w.l),!d))continue;d=this.ye(l.Wc,d,!1,0,0,!0);this.Ji(d,g[b])}l.Vf=!0}this.fb();this.No();c=e.layouts;for(h in c)c.hasOwnProperty(h)&&(b=this.mn(parseInt(h,10)))&&b.wc(c[h]);c=e.events.groups;for(h in c)c.hasOwnProperty(h)&&(b=this.es(parseInt(h,10)))&&
this.pi[b.yg]&&this.pi[b.yg].Uo(c[h]);b=e.events.cnds;for(h in b)b.hasOwnProperty(h)&&this.hf.hasOwnProperty(h)&&(this.hf[h].ra=b[h].ex);b=e.events.acts;for(h in b)b.hasOwnProperty(h)&&this.ef.hasOwnProperty(h)&&(this.ef[h].ra=b[h].ex);b=e.events.vars;for(h in b)b.hasOwnProperty(h)&&this.dg.hasOwnProperty(h)&&(this.dg[h].data=b[h]);this.ah=a.next_uid;this.ed.wc(e.system);b=0;for(c=this.m.length;b<c;b++)if(l=this.m[b],!l.A)for(h=0,e=l.c.length;h<e;h++){d=l.c[h];if(l.Ic)for(n=d.wg(),a=d.siblings.length=
0,g=l.Nb.length;a<g;a++)s=l.Nb[a],l!==s&&d.siblings.push(s.c[n]);d.jd&&d.jd();if(d.F)for(a=0,g=d.F.length;a<g;a++)n=d.F[a],n.jd&&n.jd()}this.ea=!0}};d.prototype.Rl=function(e,a){var b,h,g,l,d;l=e.type;g=l.Aa;var n={};a?n.c2=!0:n.uid=e.uid;Ta(e.ra)&&(n.ex=c(e.ra));if(e.Ka&&e.Ka.length)for(n.ivs={},b=0,h=e.Ka.length;b<h;b++)n.ivs[e.type.Wk[b].toString()]=e.Ka[b];if(g.fe){g={x:e.x,y:e.y,w:e.width,h:e.height,l:e.d.O,zi:e.rc()};0!==e.i&&(g.a=e.i);1!==e.opacity&&(g.o=e.opacity);.5!==e.Ab&&(g.hX=e.Ab);.5!==
e.Bb&&(g.hY=e.Bb);0!==e.sb&&(g.bm=e.sb);e.visible||(g.v=e.visible);e.we||(g.ce=e.we);-1!==e.$g&&(g.mts=e.$g);if(l.G.length)for(g.fx=[],b=0,h=l.G.length;b<h;b++)d=l.G[b],g.fx.push({name:d.name,active:e.Qd[d.index],params:e.qa[d.index]});n.w=g}if(e.F&&e.F.length)for(n.behs={},b=0,h=e.F.length;b<h;b++)l=e.F[b],l.Wb&&(n.behs[l.type.O.toString()]=l.Wb());e.Wb&&(n.data=e.Wb());return n};d.prototype.hs=function(e,a){var b,c;b=0;for(c=e.Wk.length;b<c;b++)if(e.Wk[b]===a)return b;return-1};d.prototype.bs=function(e,
a){var b,c;b=0;for(c=e.F.length;b<c;b++)if(e.F[b].type.O===a)return b;return-1};d.prototype.Ji=function(e,a,b){var c,h,g,l,d;d=e.type;g=d.Aa;if(b){if(!a.c2)return}else e.uid=a.uid;a.ex?e.ra=a.ex:Ua(e.ra);if(h=a.ivs)for(c in h)h.hasOwnProperty(c)&&(b=this.hs(d,parseInt(c,10)),0>b||b>=e.Ka.length||(e.Ka[b]=h[c]));if(g.fe){g=a.w;e.d.O!==g.l&&(b=e.d,e.d=this.Y.mi(g.l),e.d?(b.Nf(e,!0),e.d.hg(e,!0),e.ua(),e.d.th(0)):(e.d=b,this.Od(e)));e.x=g.x;e.y=g.y;e.width=g.w;e.height=g.h;e.Tc=g.zi;e.i=g.hasOwnProperty("a")?
g.a:0;e.opacity=g.hasOwnProperty("o")?g.o:1;e.Ab=g.hasOwnProperty("hX")?g.hX:.5;e.Bb=g.hasOwnProperty("hY")?g.hY:.5;e.visible=g.hasOwnProperty("v")?g.v:!0;e.we=g.hasOwnProperty("ce")?g.ce:!0;e.$g=g.hasOwnProperty("mts")?g.mts:-1;e.sb=g.hasOwnProperty("bm")?g.bm:0;e.lg=cb(e.sb);this.k&&db(e,e.sb,this.k);e.ua();if(g.hasOwnProperty("fx"))for(b=0,h=g.fx.length;b<h;b++)l=d.Fk(g.fx[b].name),0>l||(e.Qd[l]=g.fx[b].active,e.qa[l]=g.fx[b].params);e.Md()}if(d=a.behs)for(c in d)d.hasOwnProperty(c)&&(g=this.bs(e,
parseInt(c,10)),0>g||e.F[g].wc(d[c]));a.data&&e.wc(a.data)};Mb=function(e){return new d(document.getElementById(e))};Nb=function(e,a){return new d({dc:!0,width:e,height:a})};window.cr_createRuntime=Mb;window.cr_createDCRuntime=Nb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var e=document.createElement("screencanvas")||document.createElement("canvas");e.Av=!0;document.body.appendChild(e);e=new d(e);window.c2runtime=e;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,
window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);return e};window.createEjectaRuntime=function(){var e=new d(document.getElementById("canvas"));window.c2runtime=e;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return e}})();window.cr_getC2Runtime=function(){var f=document.getElementById("c2canvas");return f?f.c2runtime:window.c2runtime?window.c2runtime:null};
window.cr_sizeCanvas=function(f,m){if(0!==f&&0!==m){var d=window.cr_getC2Runtime();d&&d.setSize(f,m)}};window.cr_setSuspended=function(f){var m=window.cr_getC2Runtime();m&&m.setSuspended(f)};
(function(){function f(a,b){this.b=a;this.De=null;this.scrollX=this.b.Na/2;this.scrollY=this.b.Ma/2;this.scale=1;this.i=0;this.mf=!0;this.name=b[0];this.width=b[1];this.height=b[2];this.sp=b[3];this.$o=b[4];this.O=b[5];var c=b[6],g,d;this.J=[];this.Bg=[];g=0;for(d=c.length;g<d;g++){var f=new Ob(this,c[g]);f.po=g;this.J.push(f)}c=b[7];this.Ke=[];g=0;for(d=c.length;g<d;g++){var f=c[g],k=this.b.m[f[1]];k.Wc||(k.Wc=f);this.Ke.push(f);-1===this.Bg.indexOf(k)&&this.Bg.push(k)}this.G=[];this.U=[];this.qa=
[];g=0;for(d=b[8].length;g<d;g++)this.G.push({id:b[8][g][0],name:b[8][g][1],eb:-1,Ta:!0,index:g}),this.qa.push(b[8][g][2].slice(0));this.Md();this.qh=new T(0,0,1,1);this.Kl=new T(0,0,1,1);this.he={}}function m(a,b){return a.Tc-b.Tc}function d(a,b){this.Va=a;this.b=a.b;this.c=[];this.scale=1;this.i=0;this.Ae=!1;this.Kd=new T(0,0,0,0);this.lp=new va;this.Ga=this.wa=this.Ha=this.va=0;this.$e=!1;this.Nd=-1;this.name=b[0];this.index=b[1];this.O=b[2];this.visible=b[3];this.Ud=b[4];this.Ld=b[5];this.Db=
b[6];this.Eb=b[7];this.opacity=b[8];this.xk=b[9];this.Rc=b[10];this.kb=b[11];this.sb=b[12];this.or=b[13];this.lg="source-over";this.ib=this.jb=0;this.Vb=null;this.Af=q();this.Gd=!0;this.Fi=new T(0,0,-1,-1);this.mc=new T(0,0,-1,-1);this.Rc&&(this.Vb=new bb(this.b.Na,this.b.Ma));this.ie=!1;var c=b[14],g,d;this.fp=[];this.fc=[];this.ng=[];g=0;for(d=c.length;g<d;g++){var f=c[g],k=this.b.m[f[1]];k.Wc||(k.Wc=f,k.Vq=this.index);this.fc.push(f);-1===this.Va.Bg.indexOf(k)&&this.Va.Bg.push(k)}ya(this.fp,this.fc);
this.G=[];this.U=[];this.qa=[];g=0;for(d=b[15].length;g<d;g++)this.G.push({id:b[15][g][0],name:b[15][g][1],eb:-1,Ta:!0,index:g}),this.qa.push(b[15][g][2].slice(0));this.Md();this.qh=new T(0,0,1,1);this.Kl=new T(0,0,1,1)}function q(){return c.length?c.pop():[]}function k(a){a.length=0;c.push(a)}f.prototype.Nt=function(a){var b=a.type.O.toString();this.he.hasOwnProperty(b)||(this.he[b]=[]);this.he[b].push(this.b.Rl(a))};f.prototype.sn=function(){var a=this.J[0];return!a.Ld&&1===a.opacity&&!a.xk&&a.visible};
f.prototype.Md=function(){this.U.length=0;var a,b,c;a=0;for(b=this.G.length;a<b;a++)c=this.G[a],c.Ta&&this.U.push(c)};f.prototype.Ek=function(a){var b,c,g;b=0;for(c=this.G.length;b<c;b++)if(g=this.G[b],g.name===a)return g;return null};var b=[],a=!0;f.prototype.Xl=function(){this.$o&&(this.De=this.b.rk[this.$o],this.De.jm());this.b.Y=this;this.scrollX=this.b.Na/2;this.scrollY=this.b.Ma/2;var c,h,d,g,p,f,k;c=0;for(d=this.b.m.length;c<d;c++)if(h=this.b.m[c],!h.A)for(p=h.c,h=0,g=p.length;h<g;h++)if(f=
p[h],f.d){var n=f.d.po;n>=this.J.length&&(n=this.J.length-1);f.d=this.J[n];-1===f.d.c.indexOf(f)&&f.d.c.push(f);f.d.$e=!0}if(!a)for(c=0,d=this.J.length;c<d;++c)this.J[c].c.sort(m);b.length=0;this.Lq();c=0;for(d=this.J.length;c<d;c++)f=this.J[c],f.Tq(),f.lm();p=!1;if(!this.mf){for(k in this.he)if(this.he.hasOwnProperty(k)&&(h=this.b.oi(parseInt(k,10)))&&!h.A&&this.b.im(h)){g=this.he[k];c=0;for(d=g.length;c<d;c++){f=null;if(h.Aa.fe&&(f=this.mi(g[c].w.l),!f))continue;f=this.b.ye(h.Wc,f,!1,0,0,!0);this.b.Ji(f,
g[c]);p=!0;b.push(f)}g.length=0}c=0;for(d=this.J.length;c<d;c++)this.J[c].c.sort(m),this.J[c].$e=!0}p&&(this.b.fb(),this.b.No());for(c=0;c<b.length;c++)if(f=b[c],f.type.Ic)for(d=f.wg(),h=0,g=f.type.Nb.length;h<g;h++)k=f.type.Nb[h],f.type!==k&&(k.c.length>d?f.siblings.push(k.c[d]):k.Wc&&(p=this.b.ye(k.Wc,f.d,!0,f.x,f.y,!0),this.b.fb(),k.Gj(),f.siblings.push(p),b.push(p)));c=0;for(d=this.Ke.length;c<d;c++)this.b.ye(this.Ke[c],null,!0);this.b.ve=null;this.b.fb();if(this.b.aa&&!this.b.da)for(c=0,d=this.b.m.length;c<
d;c++)k=this.b.m[c],!k.A&&k.c.length&&k.fj&&k.fj(this.b.aa);c=0;for(d=b.length;c<d;c++)f=b[c],this.b.trigger(Object.getPrototypeOf(f.type.Aa).j.Zp,f);b.length=0;this.b.trigger(Y.prototype.j.wm,null);this.mf=!1};f.prototype.Sq=function(){var a,b,c,g,d;b=a=0;for(c=this.Ke.length;a<c;a++)g=this.Ke[a],d=this.b.m[g[1]],d.global?this.b.ye(g,null,!0):(this.Ke[b]=g,b++);this.Ke.length=b};f.prototype.Wt=function(){this.b.trigger(Y.prototype.j.lq,null);this.b.ed.Jb.length=0;var b,c,d,g,p,f;if(!this.mf)for(b=
0,c=this.J.length;b<c;b++)for(this.J[b].mm(),p=this.J[b].c,d=0,g=p.length;d<g;d++)f=p[d],f.type.global||this.b.im(f.type)&&this.Nt(f);b=0;for(c=this.J.length;b<c;b++){p=this.J[b].c;d=0;for(g=p.length;d<g;d++)f=p[d],f.type.global||this.b.Od(f);this.b.fb();p.length=0;this.J[b].$e=!0}b=0;for(c=this.b.m.length;b<c;b++)if(p=this.b.m[b],!(p.global||p.Aa.fe||p.Aa.pj||p.A)){d=0;for(g=p.c.length;d<g;d++)this.b.Od(p.c[d]);this.b.fb()}a=!1};new T(0,0,0,0);f.prototype.Gc=function(a){var b,c=a,g=!1,d=!this.b.oc;
d&&(this.b.Ii||(this.b.Ii=document.createElement("canvas"),b=this.b.Ii,b.width=this.b.M,b.height=this.b.L,this.b.On=b.getContext("2d"),g=!0),b=this.b.Ii,c=this.b.On,b.width!==this.b.M&&(b.width=this.b.M,g=!0),b.height!==this.b.L&&(b.height=this.b.L,g=!0),g&&(c.webkitImageSmoothingEnabled=this.b.S,c.mozImageSmoothingEnabled=this.b.S,c.msImageSmoothingEnabled=this.b.S,c.imageSmoothingEnabled=this.b.S));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.b.Uj&&!this.sn()&&c.clearRect(0,0,this.b.M,
this.b.L);var f,k,g=0;for(f=this.J.length;g<f;g++)k=this.J[g],k.visible&&0<k.opacity&&11!==k.sb&&(k.c.length||!k.Ld)?k.Gc(c):k.lm();d&&a.drawImage(b,0,0,this.b.width,this.b.height)};f.prototype.Pb=function(a){var b=0<this.U.length||this.b.ag||!this.b.oc;if(b){this.b.Sb||(this.b.Sb=a.Xd(this.b.M,this.b.L,this.b.S));if(this.b.Sb.kg!==this.b.M||this.b.Sb.jg!==this.b.L)a.deleteTexture(this.b.Sb),this.b.Sb=a.Xd(this.b.M,this.b.L,this.b.S);a.cd(this.b.Sb);this.b.oc||a.Qf(this.b.M,this.b.L)}else this.b.Sb&&
(a.cd(null),a.deleteTexture(this.b.Sb),this.b.Sb=null);this.b.Uj&&!this.sn()&&a.clear(0,0,0,0);var c,g,d;c=0;for(g=this.J.length;c<g;c++)d=this.J[c],d.visible&&0<d.opacity&&(d.c.length||!d.Ld)?d.Pb(a):d.lm();b&&(0===this.U.length||1===this.U.length&&this.b.oc?(1===this.U.length?(b=this.U[0].index,a.dd(this.U[0].eb),a.Pf(null,1/this.b.M,1/this.b.L,0,0,1,1,this.scale,this.i,0,0,this.b.M/2,this.b.L/2,this.qa[b]),a.gj(this.U[0].eb)&&(this.b.ea=!0)):a.dd(0),this.b.oc||a.Qf(this.b.width,this.b.height),
a.cd(null),a.Ye(1),a.Xb(this.b.Sb),a.To(),a.je(),a.qe(),b=this.b.width/2,c=this.b.height/2,a.ph(-b,c,b,c,b,-c,-b,-c),a.Xb(null)):this.Ll(a,null,null,null))};f.prototype.vg=function(){return 0<this.U.length||this.b.ag||!this.b.oc?this.b.Sb:null};f.prototype.nn=function(){var a=this.J[0].qc(),b,c,g;b=1;for(c=this.J.length;b<c;b++)g=this.J[b],(0!==g.Db||0!==g.Eb)&&g.qc()<a&&(a=g.qc());return a};f.prototype.Ro=function(a){if(!this.sp){var b=1/this.nn()*this.b.M/2;a>this.width-b&&(a=this.width-b);a<b&&
(a=b)}this.scrollX!==a&&(this.scrollX=a,this.b.ea=!0)};f.prototype.So=function(a){if(!this.sp){var b=1/this.nn()*this.b.L/2;a>this.height-b&&(a=this.height-b);a<b&&(a=b)}this.scrollY!==a&&(this.scrollY=a,this.b.ea=!0)};f.prototype.Lq=function(){this.Ro(this.scrollX);this.So(this.scrollY)};f.prototype.Ll=function(a,b,c,g){var d=c?c.U:b?b.U:this.U,f=1,k=0,n=0,e=0,m=this.b.M,t=this.b.L;c?(f=c.d.qc(),k=c.d.Ua(),n=c.d.va,e=c.d.wa,m=c.d.Ha,t=c.d.Ga):b&&(f=b.qc(),k=b.Ua(),n=b.va,e=b.wa,m=b.Ha,t=b.Ga);var r=
this.b.Ak,w,q,x,A,K=0,C=1,X,H=this.b.M,z=this.b.L,ua=H/2,N=z/2,Q=b?b.qh:this.qh,E=b?b.Kl:this.Kl,G=0,O=0,D=0,J=0,I=H,ha=H,L=z,oa=z,ea=x=0,sa=c?c.d.Ua():0;if(c){w=0;for(q=d.length;w<q;w++)x+=a.ms(d[w].eb),ea+=a.ns(d[w].eb);A=c.xa;G=b.nb(A.left,A.top,!0,!0);D=b.nb(A.left,A.top,!1,!0);I=b.nb(A.right,A.bottom,!0,!0);L=b.nb(A.right,A.bottom,!1,!0);0!==sa&&(w=b.nb(A.right,A.top,!0,!0),q=b.nb(A.right,A.top,!1,!0),O=b.nb(A.left,A.bottom,!0,!0),J=b.nb(A.left,A.bottom,!1,!0),A=Math.min(G,I,w,O),I=Math.max(G,
I,w,O),G=A,A=Math.min(D,L,q,J),L=Math.max(D,L,q,J),D=A);G-=x;D-=ea;I+=x;L+=ea;E.left=G/H;E.top=1-D/z;E.right=I/H;E.bottom=1-L/z;O=G=R(G);J=D=R(D);ha=I=ra(I);oa=L=ra(L);O-=x;J-=ea;ha+=x;oa+=ea;0>G&&(G=0);0>D&&(D=0);I>H&&(I=H);L>z&&(L=z);0>O&&(O=0);0>J&&(J=0);ha>H&&(ha=H);oa>z&&(oa=z);Q.left=G/H;Q.top=1-D/z;Q.right=I/H;Q.bottom=1-L/z}else Q.left=E.left=0,Q.top=E.top=0,Q.right=E.right=1,Q.bottom=E.bottom=1;ea=c&&((c.i||sa)&&a.nh(d[0].eb)||0!==x||0!==ea||1!==c.opacity||c.type.Aa.lo)||b&&!c&&1!==b.opacity;
a.To();if(ea){r[K]||(r[K]=a.Xd(H,z,this.b.S));if(r[K].kg!==H||r[K].jg!==z)a.deleteTexture(r[K]),r[K]=a.Xd(H,z,this.b.S);a.dd(0);a.cd(r[K]);X=oa-J;a.clearRect(O,z-J-X,ha-O,X);c?c.Pb(a):(a.Xb(this.b.ic),a.Ye(b.opacity),a.je(),a.translate(-ua,-N),a.qe(),a.Fd(G,L,I,L,I,D,G,D,Q));E.left=E.top=0;E.right=E.bottom=1;c&&(A=Q.top,Q.top=Q.bottom,Q.bottom=A);K=1;C=0}a.Ye(1);x=d.length-1;var sa=a.Gl(d[x].eb)||!b&&!c&&!this.b.oc,aa=0;w=0;for(q=d.length;w<q;w++){r[K]||(r[K]=a.Xd(H,z,this.b.S));if(r[K].kg!==H||r[K].jg!==
z)a.deleteTexture(r[K]),r[K]=a.Xd(H,z,this.b.S);a.dd(d[w].eb);aa=d[w].index;a.gj(d[w].eb)&&(this.b.ea=!0);0!=w||ea?(a.Pf(g,1/H,1/z,E.left,E.top,E.right,E.bottom,f,k,n,e,(n+m)/2,(e+t)/2,c?c.qa[aa]:b?b.qa[aa]:this.qa[aa]),a.Xb(null),w!==x||sa?(a.cd(r[K]),X=oa-J,A=z-J-X,a.clearRect(O,A,ha-O,X)):(c?a.ke(c.jb,c.ib):b&&a.ke(b.jb,b.ib),a.cd(g)),a.Xb(r[C]),a.je(),a.translate(-ua,-N),a.qe(),a.Fd(G,L,I,L,I,D,G,D,Q),w!==x||sa||a.Xb(null)):(a.cd(r[K]),X=oa-J,A=z-J-X,a.clearRect(O,A,ha-O,X),c?(a.Pf(g,1/c.width,
1/c.height,E.left,E.top,E.right,E.bottom,f,k,n,e,(n+m)/2,(e+t)/2,c.qa[aa]),c.Pb(a)):(a.Pf(g,1/H,1/z,0,0,1,1,f,k,n,e,(n+m)/2,(e+t)/2,b?b.qa[aa]:this.qa[aa]),a.Xb(b?this.b.ic:this.b.Sb),a.je(),a.translate(-ua,-N),a.qe(),a.Fd(G,L,I,L,I,D,G,D,Q)),E.left=E.top=0,E.right=E.bottom=1,c&&!sa&&(A=L,L=D,D=A));K=0===K?1:0;C=0===K?1:0}sa&&(a.dd(0),c?a.ke(c.jb,c.ib):b?a.ke(b.jb,b.ib):this.b.oc||(a.Qf(this.b.width,this.b.height),ua=this.b.width/2,N=this.b.height/2,D=G=0,I=this.b.width,L=this.b.height),a.cd(g),a.Xb(r[C]),
a.je(),a.translate(-ua,-N),a.qe(),c&&1===d.length&&!ea?a.Fd(G,D,I,D,I,L,G,L,Q):a.Fd(G,L,I,L,I,D,G,D,Q),a.Xb(null))};f.prototype.mi=function(a){var b,c;b=0;for(c=this.J.length;b<c;b++)if(this.J[b].O===a)return this.J[b];return null};f.prototype.Wb=function(){var a,b,c,g={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.i,w:this.width,h:this.height,fv:this.mf,persist:this.he,fx:[],layers:{}};a=0;for(b=this.G.length;a<b;a++)c=this.G[a],g.fx.push({name:c.name,active:c.Ta,params:this.qa[c.index]});
a=0;for(b=this.J.length;a<b;a++)c=this.J[a],g.layers[c.O.toString()]=c.Wb();return g};f.prototype.wc=function(a){var b,c,g,d;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.i=a.a;this.width=a.w;this.height=a.h;this.he=a.persist;"undefined"!==typeof a.fv&&(this.mf=a.fv);var f=a.fx;b=0;for(c=f.length;b<c;b++)if(g=this.Ek(f[b].name))g.Ta=f[b].active,this.qa[g.index]=f[b].params;this.Md();b=a.layers;for(d in b)b.hasOwnProperty(d)&&(a=this.mi(parseInt(d,10)))&&a.wc(b[d])};Ab=f;d.prototype.Md=function(){this.U.length=
0;var a,b,c;a=0;for(b=this.G.length;a<b;a++)c=this.G[a],c.Ta&&this.U.push(c)};d.prototype.Ek=function(a){var b,c,g;b=0;for(c=this.G.length;b<c;b++)if(g=this.G[b],g.name===a)return g;return null};d.prototype.Tq=function(){var a,c,d,g,f,k;c=a=0;for(d=this.fc.length;a<d;a++){g=this.fc[a];f=this.b.m[g[1]];k=this.b.im(f);f=!0;if(!k||this.Va.mf)g=this.b.ye(g,this,!0),b.push(g),g.type.global&&(f=!1,this.ng.push(g.uid));f&&(this.fc[c]=this.fc[a],c++)}this.fc.length=c;this.b.fb();!this.b.n&&this.G.length&&
(this.sb=this.or);this.lg=cb(this.sb);this.b.k&&db(this,this.sb,this.b.k);this.Gd=!0};d.prototype.Nf=function(a,b){var c=Aa(this.c,a);0>c||(b&&this.Rc&&a.Fb&&a.Fb.right>=a.Fb.left&&(a.la(),this.Vb.update(a,a.Fb,null),a.Fb.set(0,0,-1,-1)),c===this.c.length-1?this.c.pop():(xa(this.c,c),this.th(c)),this.Gd=!0)};d.prototype.hg=function(a,b){a.Tc=this.c.length;this.c.push(a);b&&this.Rc&&a.Fb&&a.ua();this.Gd=!0};d.prototype.zt=function(a){this.c.unshift(a);this.th(0)};d.prototype.$s=function(a,b,c){var g=
a.rc();b=b.rc();xa(this.c,g);g<b&&b--;c&&b++;b===this.c.length?this.c.push(a):this.c.splice(b,0,a);this.th(g<b?g:b)};d.prototype.th=function(a){-1===this.Nd?this.Nd=a:a<this.Nd&&(this.Nd=a);this.Gd=this.$e=!0};d.prototype.mm=function(){if(this.$e){-1===this.Nd&&(this.Nd=0);var a,b,c;if(this.Rc)for(a=this.Nd,b=this.c.length;a<b;++a)c=this.c[a],c.Tc=a,this.Vb.Ws(c.Fb);else for(a=this.Nd,b=this.c.length;a<b;++a)this.c[a].Tc=a;this.$e=!1;this.Nd=-1}};d.prototype.qc=function(a){return this.js()*(this.b.oc||
a?this.b.ig:1)};d.prototype.js=function(){return(this.scale*this.Va.scale-1)*this.kb+1};d.prototype.Ua=function(){return this.Ae?0:Ea(this.Va.i+this.i)};var c=[],w=[],r=[];d.prototype.pn=function(){this.mm();this.Vb.hj(this.va,this.wa,this.Ha,this.Ga,r);if(!r.length)return q();if(1===r.length){var a=q();ya(a,r[0]);r.length=0;return a}for(var b=!0;1<r.length;){for(var a=r,c=void 0,g=void 0,d=void 0,f=void 0,m=void 0,c=0,g=a.length;c<g-1;c+=2){var d=a[c],f=a[c+1],m=q(),n=d,e=f,u=m,t=0,y=0,F=0,na=n.length,
x=e.length,A=void 0,K=void 0;for(u.length=na+x;t<na&&y<x;++F)A=n[t],K=e[y],A.Tc<K.Tc?(u[F]=A,++t):(u[F]=K,++y);for(;t<na;++t,++F)u[F]=n[t];for(;y<x;++y,++F)u[F]=e[y];b||(k(d),k(f));w.push(m)}1===g%2&&(b?(d=q(),ya(d,a[g-1]),w.push(d)):w.push(a[g-1]));ya(a,w);w.length=0;b=!1}a=r[0];r.length=0;return a};d.prototype.Gc=function(a){this.ie=this.xk||1!==this.opacity||0!==this.sb;var b=this.b.canvas,c=a,g=!1;this.ie&&(this.b.Hi||(this.b.Hi=document.createElement("canvas"),b=this.b.Hi,b.width=this.b.M,b.height=
this.b.L,this.b.Nn=b.getContext("2d"),g=!0),b=this.b.Hi,c=this.b.Nn,b.width!==this.b.M&&(b.width=this.b.M,g=!0),b.height!==this.b.L&&(b.height=this.b.L,g=!0),g&&(c.webkitImageSmoothingEnabled=this.b.S,c.mozImageSmoothingEnabled=this.b.S,c.msImageSmoothingEnabled=this.b.S,c.imageSmoothingEnabled=this.b.S),this.Ld&&c.clearRect(0,0,this.b.M,this.b.L));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.Ld||(c.fillStyle="rgb("+this.Ud[0]+","+this.Ud[1]+","+this.Ud[2]+")",c.fillRect(0,0,this.b.M,
this.b.L));c.save();this.Ae=!0;var g=this.ma(0,0,!0,!0),d=this.ma(0,0,!1,!0);this.Ae=!1;this.b.bd&&(g=Math.round(g),d=Math.round(d));this.Nl(g,d,c);var f=this.qc();c.scale(f,f);c.translate(-g,-d);this.Rc?(this.mc.left=this.Vb.$b(this.va),this.mc.top=this.Vb.ac(this.wa),this.mc.right=this.Vb.$b(this.Ha),this.mc.bottom=this.Vb.ac(this.Ga),this.Gd||!this.mc.bi(this.Fi)?(k(this.Af),g=this.pn(),this.Gd=!1,this.Fi.mg(this.mc)):g=this.Af):g=this.c;for(var m,n=null,d=0,f=g.length;d<f;++d)m=g[d],m!==n&&(this.lr(m,
c),n=m);this.Rc&&(this.Af=g);c.restore();this.ie&&(a.globalCompositeOperation=this.lg,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};d.prototype.lr=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.la();var c=a.xa;c.right<this.va||c.bottom<this.wa||c.left>this.Ha||c.top>this.Ga||(b.globalCompositeOperation=a.lg,a.Gc(b))}};d.prototype.lm=function(){this.Ae=!0;var a=this.ma(0,0,!0,!0),b=this.ma(0,0,!1,!0);this.Ae=!1;this.b.bd&&(a=Math.round(a),b=Math.round(b));this.Nl(a,b,null)};d.prototype.Nl=
function(a,b,c){var g=this.qc();this.va=a;this.wa=b;this.Ha=a+1/g*this.b.M;this.Ga=b+1/g*this.b.L;a=this.Ua();0!==a&&(c&&(c.translate(this.b.M/2,this.b.L/2),c.rotate(-a),c.translate(this.b.M/-2,this.b.L/-2)),this.Kd.set(this.va,this.wa,this.Ha,this.Ga),this.Kd.offset((this.va+this.Ha)/-2,(this.wa+this.Ga)/-2),this.lp.Yo(this.Kd,a),this.lp.Nm(this.Kd),this.Kd.offset((this.va+this.Ha)/2,(this.wa+this.Ga)/2),this.va=this.Kd.left,this.wa=this.Kd.top,this.Ha=this.Kd.right,this.Ga=this.Kd.bottom)};d.prototype.Pb=
function(a){var b=0,c=0;if(this.ie=this.xk||1!==this.opacity||0<this.U.length||0!==this.sb){this.b.ic||(this.b.ic=a.Xd(this.b.M,this.b.L,this.b.S));if(this.b.ic.kg!==this.b.M||this.b.ic.jg!==this.b.L)a.deleteTexture(this.b.ic),this.b.ic=a.Xd(this.b.M,this.b.L,this.b.S);a.cd(this.b.ic);this.Ld&&a.clear(0,0,0,0)}this.Ld||a.clear(this.Ud[0]/255,this.Ud[1]/255,this.Ud[2]/255,1);this.Ae=!0;var g=this.ma(0,0,!0,!0),b=this.ma(0,0,!1,!0);this.Ae=!1;this.b.bd&&(g=Math.round(g),b=Math.round(b));this.Nl(g,b,
null);g=this.qc();a.je();a.scale(g,g);a.Po(-this.Ua());a.translate((this.va+this.Ha)/-2,(this.wa+this.Ga)/-2);a.qe();this.Rc?(this.mc.left=this.Vb.$b(this.va),this.mc.top=this.Vb.ac(this.wa),this.mc.right=this.Vb.$b(this.Ha),this.mc.bottom=this.Vb.ac(this.Ga),this.Gd||!this.mc.bi(this.Fi)?(k(this.Af),b=this.pn(),this.Gd=!1,this.Fi.mg(this.mc)):b=this.Af):b=this.c;var d,f,m=null,c=0;for(d=b.length;c<d;++c)f=b[c],f!==m&&(this.mr(b[c],a),m=f);this.Rc&&(this.Af=b);this.ie&&(b=this.U.length?this.U[0].eb:
0,c=this.U.length?this.U[0].index:0,0===this.U.length||1===this.U.length&&!a.Gl(b)&&1===this.opacity?(1===this.U.length?(a.dd(b),a.Pf(this.Va.vg(),1/this.b.M,1/this.b.L,0,0,1,1,g,this.Ua(),this.va,this.wa,(this.va+this.Ha)/2,(this.wa+this.Ga)/2,this.qa[c]),a.gj(b)&&(this.b.ea=!0)):a.dd(0),a.cd(this.Va.vg()),a.Ye(this.opacity),a.Xb(this.b.ic),a.ke(this.jb,this.ib),a.je(),a.qe(),g=this.b.M/2,b=this.b.L/2,a.ph(-g,b,g,b,g,-b,-g,-b),a.Xb(null)):this.Va.Ll(a,this,null,this.Va.vg()))};d.prototype.mr=function(a,
b){if(a.visible&&0!==a.width&&0!==a.height){a.la();var c=a.xa;c.right<this.va||c.bottom<this.wa||c.left>this.Ha||c.top>this.Ga||(a.yp?this.nr(a,b):(b.dd(0),b.ke(a.jb,a.ib),a.Pb(b)))}};d.prototype.nr=function(a,b){var c=a.U[0].eb,g=a.U[0].index,d=this.qc();if(1!==a.U.length||b.Gl(c)||b.Bt(c)||(a.i||a.d.Ua())&&b.nh(c)||1!==a.opacity||a.type.Aa.lo)this.Va.Ll(b,this,a,this.ie?this.b.ic:this.Va.vg()),b.je(),b.scale(d,d),b.Po(-this.Ua()),b.translate((this.va+this.Ha)/-2,(this.wa+this.Ga)/-2),b.qe();else{b.dd(c);
b.ke(a.jb,a.ib);b.gj(c)&&(this.b.ea=!0);var f=0,k=0,n=0,e=0;b.nh(c)&&(c=a.xa,f=this.nb(c.left,c.top,!0,!0),k=this.nb(c.left,c.top,!1,!0),n=this.nb(c.right,c.bottom,!0,!0),c=this.nb(c.right,c.bottom,!1,!0),f/=windowWidth,k=1-k/windowHeight,n/=windowWidth,e=1-c/windowHeight);b.Pf(this.ie?this.b.ic:this.Va.vg(),1/a.width,1/a.height,f,k,n,e,d,this.Ua(),this.va,this.wa,(this.va+this.Ha)/2,(this.wa+this.Ga)/2,a.qa[g]);a.Pb(b)}};d.prototype.ma=function(a,b,c,g){var d=this.b.devicePixelRatio;this.b.Me&&(a*=
d,b*=d);var d=this.b.Co,f=this.b.Do,d=(this.Va.scrollX-d)*this.Db+d,f=(this.Va.scrollY-f)*this.Eb+f,k=d,n=f,e=1/this.qc(!g);g?(k-=this.b.M*e/2,n-=this.b.L*e/2):(k-=this.b.width*e/2,n-=this.b.height*e/2);k+=a*e;n+=b*e;b=this.Ua();0!==b&&(k-=d,n-=f,a=Math.cos(b),b=Math.sin(b),g=k*a-n*b,n=n*a+k*b,k=g+d,n+=f);return c?k:n};d.prototype.nb=function(a,b,c,d){var f=this.b.Co,k=this.b.Do,m=(this.Va.scrollX-f)*this.Db+f,n=(this.Va.scrollY-k)*this.Eb+k,k=m,f=n,e=this.Ua();if(0!==e){a-=m;b-=n;var r=Math.cos(-e),
e=Math.sin(-e),t=a*r-b*e;b=b*r+a*e;a=t+m;b+=n}m=1/this.qc(!d);d?(k-=this.b.M*m/2,f-=this.b.L*m/2):(k-=this.b.width*m/2,f-=this.b.height*m/2);k=(a-k)/m;f=(b-f)/m;a=this.b.devicePixelRatio;this.b.Me&&!d&&(k/=a,f/=a);return c?k:f};d.prototype.Wb=function(){var a,b,c,d={s:this.scale,a:this.i,vl:this.va,vt:this.wa,vr:this.Ha,vb:this.Ga,v:this.visible,bc:this.Ud,t:this.Ld,px:this.Db,py:this.Eb,o:this.opacity,zr:this.kb,fx:[],cg:this.ng,instances:[]};a=0;for(b=this.G.length;a<b;a++)c=this.G[a],d.fx.push({name:c.name,
active:c.Ta,params:this.qa[c.index]});return d};d.prototype.wc=function(a){var b,c,d;this.scale=a.s;this.i=a.a;this.va=a.vl;this.wa=a.vt;this.Ha=a.vr;this.Ga=a.vb;this.visible=a.v;this.Ud=a.bc;this.Ld=a.t;this.Db=a.px;this.Eb=a.py;this.opacity=a.o;this.kb=a.zr;this.ng=a.cg||[];ya(this.fc,this.fp);var f=new ca;b=0;for(d=this.ng.length;b<d;++b)f.add(this.ng[b]);c=b=0;for(d=this.fc.length;b<d;++b)f.contains(this.fc[b][2])||(this.fc[c]=this.fc[b],++c);this.fc.length=c;c=a.fx;b=0;for(d=c.length;b<d;b++)if(a=
this.Ek(c[b].name))a.Ta=c[b].active,this.qa[a.index]=c[b].params;this.Md();this.c.sort(m);this.$e=!0};Ob=d})();
(function(){function f(a,b){var c,d=a.length;switch(d){case 0:return!0;case 1:return a[0]===b[0];case 2:return a[0]===b[0]&&a[1]===b[1];default:for(c=0;c<d;c++)if(a[c]!==b[c])return!1;return!0}}function m(a,b){return a.index-b.index}function d(a){var b,c,d,g;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(m);a.length>=p.length&&(p.length=a.length+1);p[a.length]||(p[a.length]=[]);g=p[a.length];b=0;for(c=g.length;b<c;b++)if(d=g[b],f(a,d))return d;g.push(a);return a}
function q(a,b){this.b=a;this.op={};this.bn={};this.Pk=!1;this.vn=new ca;this.lk=[];this.Vj=[];this.name=b[0];var c=b[1];this.$d=[];var d,g;d=0;for(g=c.length;d<g;d++)this.xn(c[d],null,this.$d)}function k(a){this.type=a;this.c=[];this.P=[];this.fa=!0}function b(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.ka=[];this.le=[];this.tn=this.Bj=this.fm=this.vi=this.group=this.ep=!1;this.hb=[];this.Cc=[];this.Ac=[];this.yg="";this.xg=this.vi=this.group=!1;this.Sh=null;c[1]&&(this.yg=c[1][1].toLowerCase(),
this.group=!0,this.vi=!!c[1][0],this.Sh=[],this.xg=this.vi,this.b.Sd.push(this),this.b.pi[this.yg]=this);this.Kc=c[2];this.O=c[4];this.group||(this.b.Mm[this.O.toString()]=this);var d=c[5];a=0;for(b=d.length;a<b;a++){var g=new Pb(this,d[a]);g.index=a;this.hb.push(g);this.Hm(g.type)}d=c[6];a=0;for(b=d.length;a<b;a++)g=new Qb(this,d[a]),g.index=a,this.Cc.push(g);if(8===c.length)for(c=c[7],a=0,b=c.length;a<b;a++)this.sheet.xn(c[a],this,this.Ac);this.Ai=!1;this.hb.length&&(this.Ai=null==this.hb[0].type&&
this.hb[0].ab==Y.prototype.j.Hp)}function a(a,b){var c,d,g;if(a&&(-1===b.indexOf(a)&&b.push(a),a.Ic))for(c=0,d=a.Nb.length;c<d;c++)g=a.Nb[c],a!==g&&-1===b.indexOf(g)&&b.push(g)}function c(a,b){this.cc=a;this.sheet=a.sheet;this.b=a.b;this.K=[];this.ta=[];this.ra={};this.index=-1;this.fg=!1;this.ab=this.b.Pd(b[1]);this.trigger=0<b[3];this.an=2===b[3];this.Zc=b[4];this.qf=b[5];this.Ts=b[6];this.O=b[7];this.b.hf[this.O.toString()]=this;-1===b[0]?(this.type=null,this.Pa=this.Ql,this.ue=null,this.Ec=-1):
(this.type=this.b.m[b[0]],this.Pa=this.Ts?this.Lt:this.Pl,b[2]?(this.ue=this.type.ki(b[2]),this.Ec=this.type.Ck(b[2])):(this.ue=null,this.Ec=-1),this.cc.parent&&this.cc.parent.nj());this.an&&(this.Pa=this.Mt);if(10===b.length){var c,d,g=b[9];c=0;for(d=g.length;c<d;c++){var h=new Rb(this,g[c]);this.K.push(h)}this.ta.length=g.length}}function w(a,b){this.cc=a;this.sheet=a.sheet;this.b=a.b;this.K=[];this.ta=[];this.ra={};this.index=-1;this.fg=!1;this.ab=this.b.Pd(b[1]);-1===b[0]?(this.type=null,this.Pa=
this.Ql,this.ue=null,this.Ec=-1):(this.type=this.b.m[b[0]],this.Pa=this.Pl,b[2]?(this.ue=this.type.ki(b[2]),this.Ec=this.type.Ck(b[2])):(this.ue=null,this.Ec=-1));this.O=b[3];this.b.ef[this.O.toString()]=this;if(6===b.length){var c,d,g=b[5];c=0;for(d=g.length;c<d;c++){var h=new Rb(this,g[c]);this.K.push(h)}this.ta.length=g.length}}function r(){B++;v.length===B&&v.push(new Sb);return v[B]}function l(a,b){this.ja=a;this.cc=a.cc;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.Xc=null;this.Jd=0;this.get=
null;this.Tm=0;this.Va=null;this.key=0;this.object=null;this.index=0;this.Dh=this.Ze=this.Dh=this.Ze=this.cn=this.Ee=this.Eh=null;this.Bc=!1;var c,d,g;switch(b[0]){case 0:case 7:this.Xc=new Tb(this,b[1]);this.Jd=0;this.get=this.ss;break;case 1:this.Xc=new Tb(this,b[1]);this.Jd=0;this.get=this.ts;break;case 5:this.Xc=new Tb(this,b[1]);this.Jd=0;this.get=this.xs;break;case 3:case 8:this.Tm=b[1];this.get=this.qs;break;case 6:this.Va=this.b.hl[b[1]];this.get=this.ys;break;case 9:this.key=b[1];this.get=
this.ws;break;case 4:this.object=this.b.m[b[1]];this.get=this.zs;this.cc.Hm(this.object);this.ja instanceof Qb?this.cc.nj():this.cc.parent&&this.cc.parent.nj();break;case 10:this.index=b[1];a.type.A?(this.get=this.us,this.Bc=!0):this.get=this.vs;break;case 11:this.Eh=b[1];this.Ee=null;this.get=this.rs;break;case 2:case 12:this.cn=b[1];this.get=this.ps;break;case 13:for(this.get=this.As,this.Ze=[],this.Dh=[],c=1,d=b.length;c<d;c++)g=new Rb(this.ja,b[c]),this.Ze.push(g),this.Dh.push(0)}}function h(a,
b,c){this.sheet=a;this.parent=b;this.b=a.b;this.ka=[];this.name=c[1];this.Ap=c[2];this.ti=c[3];this.Ig=!!c[4];this.yi=!!c[5];this.O=c[6];this.b.dg[this.O.toString()]=this;this.data=this.ti;this.parent?(this.Ue=this.Ig||this.yi?-1:this.b.Ut++,this.b.Hq.push(this)):(this.Ue=-1,this.b.Sj.push(this))}function s(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.ka=[];this.Ag=null;this.Gs=c[1];this.Ta=!0}function g(){this.hp=[];this.reset(null)}var p=[];q.prototype.toString=function(){return this.name};
q.prototype.xn=function(a,b,c){switch(a[0]){case 0:a=new Ub(this,b,a);if(a.Kc)for(c.push(a),c=0,b=a.hb.length;c<b;c++)a.hb[c].trigger&&this.yn(a,c);else a.Gn()?this.yn(a,0):c.push(a);break;case 1:a=new Lb(this,b,a);c.push(a);break;case 2:a=new Vb(this,b,a),c.push(a)}};q.prototype.Ba=function(){var a,b;a=0;for(b=this.$d.length;a<b;a++)this.$d[a].Ba(a<b-1&&this.$d[a+1].Ai)};q.prototype.jm=function(){this.lk.length=0;this.Vj.length=0;this.Gm(this);this.Vj.length=0};q.prototype.Gm=function(a){var b,c,
d,g,h=a.lk,f=a.Vj,k=this.vn.Sc();b=0;for(c=k.length;b<c;++b)d=k[b],g=d.Ag,!d.Ta||a===g||-1<f.indexOf(g)||(f.push(g),g.Gm(a),h.push(g))};q.prototype.Pa=function(a){this.b.zv||(this.Pk=!0,a||(this.b.$k=!0));var b,c;b=0;for(c=this.$d.length;b<c;b++){var d=this.$d[b];d.Pa();this.b.ek(d.ka);this.b.be&&this.b.fb()}a||(this.b.$k=!1)};q.prototype.yn=function(a,b){a.Kc||this.b.Ej.push(a);var c,d,g=a.hb[b],h;h=g.type?g.type.name:"system";var f=(c=g.an)?this.bn:this.op;f[h]||(f[h]=[]);h=f[h];f=g.ab;if(c){if(g.K.length&&
(g=g.K[0],1===g.type&&2===g.Xc.type)){g=g.Xc.value.toLowerCase();c=0;for(d=h.length;c<d;c++)if(h[c].method==f){c=h[c].rg;c[g]?c[g].push([a,b]):c[g]=[[a,b]];return}c={};c[g]=[[a,b]];h.push({method:f,rg:c})}}else{c=0;for(d=h.length;c<d;c++)if(h[c].method==f){h[c].rg.push([a,b]);return}gc&&f===gc.prototype.j.df?h.unshift({method:f,rg:[[a,b]]}):h.push({method:f,rg:[[a,b]]})}};Bb=q;k.prototype.Ok=function(){return this.fa?this.type.c.length:this.c.length};k.prototype.pc=function(){return this.fa?this.type.c:
this.c};k.prototype.mh=function(a){a&&(a.b.mb().Ob.Kc?(this.fa&&(this.c.length=0,ya(this.P,a.type.c),this.fa=!1),a=this.P.indexOf(a),-1!==a&&(this.c.push(this.P[a]),this.P.splice(a,1))):(this.fa=!1,this.c.length=1,this.c[0]=a))};jb=k;window._c2hh_="028182FC3C1790C453899C06084DBCA3F631EAD1";b.prototype.Ba=function(a){var b,c=this.parent;if(this.group)for(this.Bj=!0;c;){if(!c.group){this.Bj=!1;break}c=c.parent}this.fm=!this.Gn()&&(!this.parent||this.parent.group&&this.parent.Bj);this.tn=!!a;this.le=
this.ka.slice(0);for(c=this.parent;c;){a=0;for(b=c.ka.length;a<b;a++)this.Eq(c.ka[a]);c=c.parent}this.ka=d(this.ka);this.le=d(this.le);a=0;for(b=this.hb.length;a<b;a++)this.hb[a].Ba();a=0;for(b=this.Cc.length;a<b;a++)this.Cc[a].Ba();a=0;for(b=this.Ac.length;a<b;a++)this.Ac[a].Ba(a<b-1&&this.Ac[a+1].Ai)};b.prototype.Uo=function(a){if(this.xg!==!!a){this.xg=!!a;var b;a=0;for(b=this.Sh.length;a<b;++a)this.Sh[a].up();0<b&&this.b.Y.De&&this.b.Y.De.jm()}};b.prototype.Hm=function(b){a(b,this.ka)};b.prototype.Eq=
function(b){a(b,this.le)};b.prototype.nj=function(){this.ep=!0;this.parent&&this.parent.nj()};b.prototype.Gn=function(){return this.hb.length?this.hb[0].trigger:!1};b.prototype.Pa=function(){var a,b=!1,c,d=this.b,g=this.b.mb();g.Ob=this;var h=this.hb;this.Ai||(g.pk=!1);if(this.Kc){0===h.length&&(b=!0);g.yb=0;for(a=h.length;g.yb<a;g.yb++)h[g.yb].trigger||(c=h[g.yb].Pa())&&(b=!0);(g.Qe=b)&&this.Ol()}else{g.yb=0;for(a=h.length;g.yb<a;g.yb++)if(c=h[g.yb].Pa(),!c){g.Qe=!1;this.fm&&d.be&&d.fb();return}g.Qe=
!0;this.Ol()}this.qr(g)};b.prototype.qr=function(a){a.Qe&&this.tn&&(a.pk=!0);this.fm&&this.b.be&&this.b.fb()};b.prototype.Jt=function(a){this.b.mb().Ob=this;this.hb[a].Pa()&&(this.Ol(),this.b.mb().Qe=!0)};b.prototype.Ol=function(){var a=this.b.mb(),b;a.Kb=0;for(b=this.Cc.length;a.Kb<b;a.Kb++)if(this.Cc[a.Kb].Pa())return;this.Qo()};b.prototype.Ht=function(){var a=this.b.mb(),b;for(b=this.Cc.length;a.Kb<b;a.Kb++)if(this.Cc[a.Kb].Pa())return;this.Qo()};b.prototype.Qo=function(){if(this.Ac.length){var a,
b,c,d,g=this.Ac.length-1;this.b.Il(this);if(this.ep)for(a=0,b=this.Ac.length;a<b;a++)c=this.Ac[a],(d=!this.Bj||!this.group&&a<g)&&this.b.Hl(c.ka),c.Pa(),d?this.b.Mf(c.ka):this.b.ek(c.ka);else for(a=0,b=this.Ac.length;a<b;a++)this.Ac[a].Pa();this.b.Io()}};b.prototype.Kt=function(){var a=this.b.mb();a.Ob=this;var b=!1,c;a.yb=0;for(c=this.hb.length;a.yb<c;a.yb++)if(this.hb[a.yb].Pa())b=!0;else if(!this.Kc)return!1;return this.Kc?b:!0};b.prototype.Ns=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=
b;--b)if(this.hb[b].type===a.type)return!1;return!0};Ub=b;c.prototype.Ba=function(){var a,b,c;a=0;for(b=this.K.length;a<b;a++)c=this.K[a],c.Ba(),c.Bc&&(this.fg=!0)};c.prototype.Mt=function(){return!0};c.prototype.Ql=function(){var a,b;a=0;for(b=this.K.length;a<b;a++)this.ta[a]=this.K[a].get();return Sa(this.ab.apply(this.b.ed,this.ta),this.qf)};c.prototype.Lt=function(){var a,b;a=0;for(b=this.K.length;a<b;a++)this.ta[a]=this.K[a].get();a=this.ab.apply(this.ue?this.ue:this.type,this.ta);this.type.ld();
return a};c.prototype.Pl=function(){var a,b,c,d,g,h,f,k,l=this.type,p=l.ba(),m=this.cc.Kc&&!this.trigger;b=0;var r=l.Ic,s=l.A,v=l.sd,w=this.Ec,q=-1<w,B=this.fg,E=this.K,G=this.ta,O=this.qf,D=this.ab,J;if(B)for(b=0,g=E.length;b<g;++b)h=E[b],h.Bc||(G[b]=h.get(0));else for(b=0,g=E.length;b<g;++b)G[b]=E[b].get(0);if(p.fa){p.c.length=0;p.P.length=0;J=l.c;a=0;for(d=J.length;a<d;++a){k=J[a];if(B)for(b=0,g=E.length;b<g;++b)h=E[b],h.Bc&&(G[b]=h.get(a));q?(b=0,s&&(b=k.type.lf[v]),b=D.apply(k.F[w+b],G)):b=D.apply(k,
G);(f=Sa(b,O))?p.c.push(k):m&&p.P.push(k)}l.finish&&l.finish(!0);p.fa=!1;l.ld();return p.Ok()}c=0;J=(f=m&&!this.cc.Ns(this))?p.P:p.c;var I=!1;a=0;for(d=J.length;a<d;++a){k=J[a];if(B)for(b=0,g=E.length;b<g;++b)h=E[b],h.Bc&&(G[b]=h.get(a));q?(b=0,s&&(b=k.type.lf[v]),b=D.apply(k.F[w+b],G)):b=D.apply(k,G);if(Sa(b,O))if(I=!0,f){if(p.c.push(k),r)for(b=0,g=k.siblings.length;b<g;b++)h=k.siblings[b],h.type.ba().c.push(h)}else{J[c]=k;if(r)for(b=0,g=k.siblings.length;b<g;b++)h=k.siblings[b],h.type.ba().c[c]=
h;c++}else if(f){J[c]=k;if(r)for(b=0,g=k.siblings.length;b<g;b++)h=k.siblings[b],h.type.ba().P[c]=h;c++}else if(m&&(p.P.push(k),r))for(b=0,g=k.siblings.length;b<g;b++)h=k.siblings[b],h.type.ba().P.push(h)}J.length=c;if(r)for(s=l.Nb,a=0,d=s.length;a<d;a++)k=s[a].ba(),f?k.P.length=c:k.c.length=c;c=I;if(f&&!I)for(a=0,d=p.c.length;a<d;a++){k=p.c[a];if(B)for(b=0,g=E.length;b<g;b++)h=E[b],h.Bc&&(G[b]=h.get(a));b=q?D.apply(k.F[w],G):D.apply(k,G);if(Sa(b,O)){I=!0;break}}l.finish&&l.finish(c||m);return m?
I:p.Ok()};Pb=c;w.prototype.Ba=function(){var a,b,c;a=0;for(b=this.K.length;a<b;a++)c=this.K[a],c.Ba(),c.Bc&&(this.fg=!0)};w.prototype.Ql=function(){var a=this.b,b,c,d=this.K,g=this.ta;b=0;for(c=d.length;b<c;++b)g[b]=d[b].get();return this.ab.apply(a.ed,g)};w.prototype.Pl=function(){var a=this.type,b=this.Ec,c=a.sd,d=this.fg,g=this.K,h=this.ta,f=this.ab,k=a.ba().pc(),a=a.A,l=-1<b,p,m,r,s,w,v;if(d)for(m=0,s=g.length;m<s;++m)w=g[m],w.Bc||(h[m]=w.get(0));else for(m=0,s=g.length;m<s;++m)h[m]=g[m].get(0);
p=0;for(r=k.length;p<r;++p){v=k[p];if(d)for(m=0,s=g.length;m<s;++m)w=g[m],w.Bc&&(h[m]=w.get(p));l?(m=0,a&&(m=v.type.lf[c]),f.apply(v.F[b+m],h)):f.apply(v,h)}return!1};Qb=w;var v=[],B=-1;l.prototype.Ba=function(){var a,b;if(11===this.type)this.Ee=this.b.kn(this.Eh,this.cc.parent);else if(13===this.type)for(a=0,b=this.Ze.length;a<b;a++)this.Ze[a].Ba();this.Xc&&this.Xc.Ba()};l.prototype.Ys=function(a){this.Bc||!a||a.Aa.pj||(this.Bc=!0)};l.prototype.Wo=function(){this.Bc=!0};l.prototype.ss=function(a){this.Jd=
a||0;a=r();this.Xc.get(a);B--;return a.data};l.prototype.ts=function(a){this.Jd=a||0;a=r();this.Xc.get(a);B--;return P(a.data)?a.data:""};l.prototype.zs=function(){return this.object};l.prototype.qs=function(){return this.Tm};l.prototype.xs=function(a){this.Jd=a||0;a=r();this.Xc.get(a);B--;return a.La()?this.b.ud(a.data):this.b.ug(a.data)};l.prototype.ys=function(){return this.Va};l.prototype.ws=function(){return this.key};l.prototype.vs=function(){return this.index};l.prototype.us=function(a){a=
a||0;var b=this.ja.type,c=null,c=b.ba(),g=c.pc();if(g.length)c=g[a%g.length].type;else if(c.P.length)c=c.P[a%c.P.length].type;else if(b.c.length)c=b.c[a%b.c.length].type;else return 0;return this.index+c.ei[b.sd]};l.prototype.rs=function(){return this.Ee};l.prototype.ps=function(){return this.cn};l.prototype.As=function(){var a,b;a=0;for(b=this.Ze.length;a<b;a++)this.Dh[a]=this.Ze[a].get();return this.Dh};Rb=l;h.prototype.Ba=function(){this.ka=d(this.ka)};h.prototype.oj=function(a){var b=this.b.jn();
this.parent&&!this.Ig&&b?(this.Ue>=b.length&&(b.length=this.Ue+1),b[this.Ue]=a):this.data=a};h.prototype.rn=function(){var a=this.b.jn();return!this.parent||this.Ig||!a||this.yi?this.data:this.Ue>=a.length||"undefined"===typeof a[this.Ue]?this.ti:a[this.Ue]};h.prototype.Pa=function(){!this.parent||this.Ig||this.yi||this.oj(this.ti)};Lb=h;s.prototype.toString=function(){return"include:"+this.Ag.toString()};s.prototype.Ba=function(){this.Ag=this.b.rk[this.Gs];this.sheet.vn.add(this);this.ka=d(this.ka);
for(var a=this.parent;a;)a.group&&a.Sh.push(this),a=a.parent;this.up()};s.prototype.Pa=function(){this.parent&&this.b.oh(this.b.m);this.Ag.Pk||this.Ag.Pa(!0);this.parent&&this.b.Mf(this.b.m)};s.prototype.up=function(){for(var a=this.parent;a;){if(a.group&&!a.xg){this.Ta=!1;return}a=a.parent}this.Ta=!0};Vb=s;g.prototype.reset=function(a){this.Ob=a;this.Kb=this.yb=0;this.hp.length=0;this.pk=this.Qe=!1};Kb=g})();
(function(){function f(a,b){this.ja=a;this.b=a.b;this.type=b[0];this.get=[this.Hr,this.Dr,this.Qr,this.Tr,this.sr,this.Rr,this.Lr,this.Ar,this.Kr,this.Pr,this.tr,this.Or,this.Br,this.Mr,this.Ir,this.Jr,this.Er,this.Fr,this.wr,this.Sr,this.Nr,this.Gr,this.ur,this.Cr][this.type];var d=null;this.Cd=this.K=this.ta=this.ab=this.Aj=this.Ya=this.first=this.value=null;this.Ec=-1;this.de=null;this.zp=-1;this.Ee=this.Eh=null;this.Of=!1;switch(this.type){case 0:case 1:case 2:this.value=b[1];break;case 3:this.first=
new Tb(a,b[1]);break;case 18:this.first=new Tb(a,b[1]);this.Ya=new Tb(a,b[2]);this.Aj=new Tb(a,b[3]);break;case 19:this.ab=this.b.Pd(b[1]);this.ab!==Y.prototype.Qb.random&&this.ab!==Y.prototype.Qb.Pq||this.ja.Wo();this.ta=[];this.K=[];3===b.length?(d=b[2],this.ta.length=d.length+1):this.ta.length=1;break;case 20:this.Cd=this.b.m[b[1]];this.Ec=-1;this.ab=this.b.Pd(b[2]);this.Of=b[3];Xb.Function&&this.ab===Xb.Function.prototype.Qb.nu&&this.ja.Wo();this.de=b[4]?new Tb(a,b[4]):null;this.ta=[];this.K=
[];6===b.length?(d=b[5],this.ta.length=d.length+1):this.ta.length=1;break;case 21:this.Cd=this.b.m[b[1]];this.Of=b[2];this.de=b[3]?new Tb(a,b[3]):null;this.zp=b[4];break;case 22:this.Cd=this.b.m[b[1]];this.Cd.ki(b[2]);this.Ec=this.Cd.Ck(b[2]);this.ab=this.b.Pd(b[3]);this.Of=b[4];this.de=b[5]?new Tb(a,b[5]):null;this.ta=[];this.K=[];7===b.length?(d=b[6],this.ta.length=d.length+1):this.ta.length=1;break;case 23:this.Eh=b[1],this.Ee=null}this.ja.Ys(this.Cd);4<=this.type&&17>=this.type&&(this.first=new Tb(a,
b[1]),this.Ya=new Tb(a,b[2]));if(d){var f,k;f=0;for(k=d.length;f<k;f++)this.K.push(new Tb(a,d[f]))}}function m(){++b;k.length===b&&k.push(new Sb);return k[b]}function d(a,b,d){var f,k;f=0;for(k=a.length;f<k;++f)a[f].get(d),b[f+1]=d.data}function q(a,b){this.type=a||W.cf;this.data=b||0;this.Ve=null;this.type==W.cf&&(this.data=Math.floor(this.data))}f.prototype.Ba=function(){23===this.type&&(this.Ee=this.ja.b.kn(this.Eh,this.ja.cc.parent));this.first&&this.first.Ba();this.Ya&&this.Ya.Ba();this.Aj&&
this.Aj.Ba();this.de&&this.de.Ba();if(this.K){var a,b;a=0;for(b=this.K.length;a<b;a++)this.K[a].Ba()}};var k=[],b=-1;f.prototype.Sr=function(a){var c=this.K,f=this.ta;f[0]=a;a=m();d(c,f,a);--b;this.ab.apply(this.b.ed,f)};f.prototype.Nr=function(a){var c=this.Cd,f=this.ta,k=this.K,l=this.de,h=this.ab,s=this.ja.Jd,g=c.ba(),p=g.pc();if(!p.length)if(g.P.length)p=g.P;else{this.Of?a.Yb(""):a.ca(0);return}f[0]=a;a.Ve=c;a=m();d(k,f,a);l&&(l.get(a),a.La()&&(s=a.data,p=c.c));--b;c=p.length;if(s>=c||s<=-c)s%=
c;0>s&&(s+=c);h.apply(p[s],f)};f.prototype.ur=function(a){var c=this.Cd,f=this.ta,k=this.K,l=this.de,h=this.Ec,s=this.ab,g=this.ja.Jd,p=c.ba(),v=p.pc();if(!v.length)if(p.P.length)v=p.P;else{this.Of?a.Yb(""):a.ca(0);return}f[0]=a;a.Ve=c;a=m();d(k,f,a);l&&(l.get(a),a.La()&&(g=a.data,v=c.c));--b;k=v.length;if(g>=k||g<=-k)g%=k;0>g&&(g+=k);g=v[g];v=0;c.A&&(v=g.type.lf[c.sd]);s.apply(g.F[h+v],f)};f.prototype.Gr=function(a){var c=this.de,d=this.Cd,f=this.zp,k=this.ja.Jd,h=d.ba(),s=h.pc();if(!s.length)if(h.P.length)s=
h.P;else{this.Of?a.Yb(""):a.ca(0);return}if(c){h=m();c.get(h);if(h.La()){k=h.data;d=d.c;k%=d.length;0>k&&(k+=d.length);f=d[k].Ka[f];P(f)?a.Yb(f):a.q(f);--b;return}--b}c=s.length;if(k>=c||k<=-c)k%=c;0>k&&(k+=c);k=s[k];s=0;d.A&&(s=k.type.ei[d.sd]);f=k.Ka[f+s];P(f)?a.Yb(f):a.q(f)};f.prototype.Hr=function(a){a.type=W.cf;a.data=this.value};f.prototype.Dr=function(a){a.type=W.bf;a.data=this.value};f.prototype.Qr=function(a){a.type=W.String;a.data=this.value};f.prototype.Tr=function(a){this.first.get(a);
a.La()&&(a.data=-a.data)};f.prototype.sr=function(a){this.first.get(a);var c=m();this.Ya.get(c);a.La()&&c.La()&&(a.data+=c.data,c.vf()&&a.Ef());--b};f.prototype.Rr=function(a){this.first.get(a);var c=m();this.Ya.get(c);a.La()&&c.La()&&(a.data-=c.data,c.vf()&&a.Ef());--b};f.prototype.Lr=function(a){this.first.get(a);var c=m();this.Ya.get(c);a.La()&&c.La()&&(a.data*=c.data,c.vf()&&a.Ef());--b};f.prototype.Ar=function(a){this.first.get(a);var c=m();this.Ya.get(c);a.La()&&c.La()&&(a.data/=c.data,a.Ef());
--b};f.prototype.Kr=function(a){this.first.get(a);var c=m();this.Ya.get(c);a.La()&&c.La()&&(a.data%=c.data,c.vf()&&a.Ef());--b};f.prototype.Pr=function(a){this.first.get(a);var c=m();this.Ya.get(c);a.La()&&c.La()&&(a.data=Math.pow(a.data,c.data),c.vf()&&a.Ef());--b};f.prototype.tr=function(a){this.first.get(a);var c=m();this.Ya.get(c);a.La()?c.Bi()?a.Yb(a.data.toString()+c.data):a.data&&c.data?a.ca(1):a.ca(0):a.Bi()&&(a.data=c.Bi()?a.data+c.data:a.data+(Math.round(1E10*c.data)/1E10).toString());--b};
f.prototype.Or=function(a){this.first.get(a);var c=m();this.Ya.get(c);a.La()&&c.La()&&(a.data||c.data?a.ca(1):a.ca(0));--b};f.prototype.wr=function(a){this.first.get(a);a.data?this.Ya.get(a):this.Aj.get(a)};f.prototype.Br=function(a){this.first.get(a);var c=m();this.Ya.get(c);a.ca(a.data===c.data?1:0);--b};f.prototype.Mr=function(a){this.first.get(a);var c=m();this.Ya.get(c);a.ca(a.data!==c.data?1:0);--b};f.prototype.Ir=function(a){this.first.get(a);var c=m();this.Ya.get(c);a.ca(a.data<c.data?1:0);
--b};f.prototype.Jr=function(a){this.first.get(a);var c=m();this.Ya.get(c);a.ca(a.data<=c.data?1:0);--b};f.prototype.Er=function(a){this.first.get(a);var c=m();this.Ya.get(c);a.ca(a.data>c.data?1:0);--b};f.prototype.Fr=function(a){this.first.get(a);var c=m();this.Ya.get(c);a.ca(a.data>=c.data?1:0);--b};f.prototype.Cr=function(a){var b=this.Ee.rn();ja(b)?a.q(b):a.Yb(b)};Tb=f;q.prototype.vf=function(){return this.type===W.bf};q.prototype.La=function(){return this.type===W.cf||this.type===W.bf};q.prototype.Bi=
function(){return this.type===W.String};q.prototype.Ef=function(){this.vf()||(this.Bi()&&(this.data=parseFloat(this.data)),this.type=W.bf)};q.prototype.ca=function(a){this.type=W.cf;this.data=Math.floor(a)};q.prototype.q=function(a){this.type=W.bf;this.data=a};q.prototype.Yb=function(a){this.type=W.String;this.data=a};q.prototype.Tt=function(a){ja(a)?(this.type=W.bf,this.data=a):P(a)?(this.type=W.String,this.data=a.toString()):(this.type=W.cf,this.data=0)};Sb=q;W={cf:0,bf:1,String:2}})();
function Y(f){this.b=f;this.Jb=[]}Y.prototype.Wb=function(){var f={},m,d,q,k,b,a,c,w;f.waits=[];var r=f.waits,l;m=0;for(d=this.Jb.length;m<d;m++){a=this.Jb[m];l={t:a.time,st:a.dp,s:a.Vl,ev:a.kf.O,sm:[],sols:{}};a.kf.Cc[a.Kb]&&(l.act=a.kf.Cc[a.Kb].O);q=0;for(k=a.ka.length;q<k;q++)l.sm.push(a.ka[q].O);for(b in a.rb)if(a.rb.hasOwnProperty(b)){c=this.b.m[parseInt(b,10)];w={sa:a.rb[b].kj,insts:[]};q=0;for(k=a.rb[b].vd.length;q<k;q++)w.insts.push(a.rb[b].vd[q].uid);l.sols[c.O.toString()]=w}r.push(l)}return f};
Y.prototype.wc=function(f){f=f.waits;var m,d,q,k,b,a,c,w,r,l,h;m=this.Jb.length=0;for(d=f.length;m<d;m++)if(a=f[m],w=this.b.Mm[a.ev.toString()]){r=-1;q=0;for(k=w.Cc.length;q<k;q++)if(w.Cc[q].O===a.act){r=q;break}if(-1!==r){c={rb:{},ka:[],mk:!1};c.time=a.t;c.dp=a.st||"";c.Vl=!!a.s;c.kf=w;c.Kb=r;q=0;for(k=a.sm.length;q<k;q++)(w=this.b.oi(a.sm[q]))&&c.ka.push(w);for(b in a.sols)if(a.sols.hasOwnProperty(b)&&(w=this.b.oi(parseInt(b,10)))){r=a.sols[b];l={kj:r.sa,vd:[]};q=0;for(k=r.insts.length;q<k;q++)(h=
this.b.ni(r.insts[q]))&&l.vd.push(h);c.rb[w.index.toString()]=l}this.Jb.push(c)}}};
(function(){function f(){}function m(){}function d(){}var q=Y.prototype;f.prototype.wm=function(){return!0};f.prototype.lq=function(){return!0};f.prototype.xq=function(){var a=this.b.li().ra;"undefined"===typeof a.TriggerOnce_lastTick&&(a.TriggerOnce_lastTick=-1);var b=a.TriggerOnce_lastTick,d=this.b.Xf;a.TriggerOnce_lastTick=d;return this.b.gl||b!==d-1};f.prototype.Gp=function(a,b,d){return Wb(a.rn(),b,d)};f.prototype.Hp=function(){var a=this.b.mb();return a.pk?!1:!a.Qe};f.prototype.xm=function(){return!0};
f.prototype.Yp=function(){return!0};f.prototype.Oj=function(){return!0};f.prototype.mq=function(){return!0};f.prototype.Mj=function(){return!0};f.prototype.Cp=function(a,b,d){return Ja(U(a),U(d))<=U(b)};f.prototype.Kp=function(a,b){return Pa(U(a),U(b))};f.prototype.Ip=function(a,b,d){a=Ha(a);b=Ha(b);d=Ha(d);return Pa(d,b)?Pa(a,b)&&!Pa(a,d):!(!Pa(a,b)&&Pa(a,d))};q.j=new f;m.prototype.Sp=function(a){if(!this.b.yf&&!this.b.ve){var b=this.b.Tb.indexOf(this.b.Y);if(!a||0!==b)if(a||b!==this.b.Tb.length-
1)this.b.ve=this.b.Tb[b+(a?-1:1)]}};m.prototype.vq=function(a,b){0===a.Ap?ja(b)?a.oj(b):a.oj(parseFloat(b)):1===a.Ap&&a.oj(b.toString())};var k=[],b=[];m.prototype.yq=function(a){if(!(0>a)){var c,d,f,l=this.b.mb(),h;h=k.length?k.pop():{rb:{},ka:[]};h.mk=!1;h.time=this.b.hc.Z+a;h.dp="";h.Vl=!1;h.kf=l.Ob;h.Kb=l.Kb+1;a=0;for(c=this.b.m.length;a<c;a++)f=this.b.m[a],d=f.ba(),d.fa&&-1===l.Ob.ka.indexOf(f)||(h.ka.push(f),f=void 0,f=b.length?b.pop():{vd:[]},f.kj=!1,f.kj=d.fa,ya(f.vd,d.c),h.rb[a.toString()]=
f);this.Jb.push(h);return!0}};m.prototype.rq=function(){var a,b,d;a=0;for(b=this.b.Sj.length;a<b;a++)d=this.b.Sj[a],d.data=d.ti};m.prototype.sq=function(){if(!this.b.yf&&!this.b.ve&&this.b.Y){this.b.ve=this.b.Y;var a,b,d;a=0;for(b=this.b.Sd.length;a<b;a++)d=this.b.Sd[a],d.Uo(d.vi)}};m.prototype.tq=function(a){this.b.lj=a};m.prototype.Rp=function(a){this.b.Qg=a};q.Ia=new m;d.prototype["int"]=function(a,b){P(b)?(a.ca(parseInt(b,10)),isNaN(a.data)&&(a.data=0)):a.ca(b)};d.prototype["float"]=function(a,
b){P(b)?(a.q(parseFloat(b)),isNaN(a.data)&&(a.data=0)):a.q(b)};d.prototype.random=function(a,b,d){void 0===d?a.q(Math.random()*b):a.q(Math.random()*(d-b)+b)};d.prototype.sqrt=function(a,b){a.q(Math.sqrt(b))};d.prototype.abs=function(a,b){a.q(Math.abs(b))};d.prototype.round=function(a,b){a.ca(Math.round(b))};d.prototype.floor=function(a,b){a.ca(Math.floor(b))};d.prototype.ceil=function(a,b){a.ca(Math.ceil(b))};d.prototype.sin=function(a,b){a.q(Math.sin(U(b)))};d.prototype.cos=function(a,b){a.q(Math.cos(U(b)))};
d.prototype.tan=function(a,b){a.q(Math.tan(U(b)))};d.prototype.asin=function(a,b){a.q(Ca(Math.asin(b)))};d.prototype.acos=function(a,b){a.q(Ca(Math.acos(b)))};d.prototype.atan=function(a,b){a.q(Ca(Math.atan(b)))};d.prototype.exp=function(a,b){a.q(Math.exp(b))};d.prototype.log10=function(a,b){a.q(Math.log(b)/Math.LN10)};d.prototype.max=function(a){var b=arguments[1];"number"!==typeof b&&(b=0);var d,f,k;d=2;for(f=arguments.length;d<f;d++)k=arguments[d],"number"===typeof k&&b<k&&(b=k);a.q(b)};d.prototype.min=
function(a){var b=arguments[1];"number"!==typeof b&&(b=0);var d,f,k;d=2;for(f=arguments.length;d<f;d++)k=arguments[d],"number"===typeof k&&b>k&&(b=k);a.q(b)};d.prototype.Ce=function(a){a.q(this.b.Ce)};d.prototype.Yf=function(a){a.q(this.b.Yf)};d.prototype.time=function(a){a.q(this.b.hc.Z)};d.prototype.Xf=function(a){a.ca(this.b.Xf)};d.prototype.Si=function(a){a.ca(this.b.Si)};d.prototype.yk=function(a){a.ca(this.b.yk)};d.prototype.i=function(a,b,d,f,k){a.q(Ca(Ia(b,d,f,k)))};d.prototype.find=function(a,
b,d){P(b)&&P(d)?a.ca(b.search(new RegExp(Za(d),"i"))):a.ca(-1)};d.prototype.left=function(a,b,d){a.Yb(P(b)?b.substr(0,d):"")};d.prototype.right=function(a,b,d){a.Yb(P(b)?b.substr(b.length-d):"")};d.prototype.replace=function(a,b,d,f){P(b)&&P(d)&&P(f)?a.Yb(b.replace(new RegExp(Za(d),"gi"),f)):a.Yb(P(b)?b:"")};d.prototype.trim=function(a,b){a.Yb(P(b)?b.trim():"")};d.prototype.Pq=function(a){var b=R(Math.random()*(arguments.length-1));a.Tt(arguments[b+1])};d.prototype.gk=function(a){a.q(this.b.gk/1E3)};
d.prototype.Mi=function(a){a.q(this.b.Mi)};q.Qb=new d;q.It=function(){var a,c,d,f,l,h,m=this.b.mb();a=0;for(d=this.Jb.length;a<d;a++){f=this.Jb[a];if(-1===f.time){if(!f.Vl)continue}else if(f.time>this.b.hc.Z)continue;m.Ob=f.kf;m.Kb=f.Kb;m.yb=0;for(c in f.rb)f.rb.hasOwnProperty(c)&&(l=this.b.m[parseInt(c,10)].ba(),h=f.rb[c],l.fa=h.kj,ya(l.c,h.vd),l=h,l.vd.length=0,b.push(l));f.kf.Ht();this.b.ek(f.ka);f.mk=!0}c=a=0;for(d=this.Jb.length;a<d;a++)f=this.Jb[a],this.Jb[c]=f,f.mk?(Ua(f.rb),f.ka.length=0,
k.push(f)):c++;this.Jb.length=c}})();
(function(){ib=function(f,d){var q=f[1],k=f[3],b=f[4],a=f[5],c=f[6],w=f[7],r=f[8];d.j||(d.j={});d.Ia||(d.Ia={});d.Qb||(d.Qb={});var l=d.j,h=d.Ia,s=d.Qb;k&&(l.su=function(a,b){return Wb(this.x,a,b)},l.tu=function(a,b){return Wb(this.y,a,b)},l.Au=function(){var a=this.d;this.la();var b=this.xa;return!(b.right<a.va||b.bottom<a.wa||b.left>a.Ha||b.top>a.Ga)},l.Bu=function(){this.la();var a=this.xa,b=this.b.Y;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},l.Mu=function(a,b,c){var d=this.ba(),
h=d.pc();if(!h.length)return!1;var e=h[0],f=e,k=Ra(e.x,e.y,b,c),l,m,s;l=1;for(m=h.length;l<m;l++)if(e=h[l],s=Ra(e.x,e.y,b,c),0===a&&s<k||1===a&&s>k)k=s,f=e;d.mh(f);return!0},h.gv=function(a){this.x!==a&&(this.x=a,this.ua())},h.hv=function(a){this.y!==a&&(this.y=a,this.ua())},h.$u=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.ua()},h.av=function(a,b){var c=a.ks(this);if(c){var d;c.Gk?(d=c.Gk(b,!0),c=c.Gk(b,!1)):(d=c.x,c=c.y);if(this.x!==d||this.y!==c)this.x=d,this.y=c,this.ua()}},
h.Fu=function(a){0!==a&&(this.x+=Math.cos(this.i)*a,this.y+=Math.sin(this.i)*a,this.ua())},h.Eu=function(a,b){0!==b&&(this.x+=Math.cos(U(a))*b,this.y+=Math.sin(U(a))*b,this.ua())},s.Bm=function(a){a.q(this.x)},s.Cm=function(a){a.q(this.y)},s.Ce=function(a){a.q(this.b.Dk(this))});b&&(l.ru=function(a,b){return Wb(this.width,a,b)},l.ou=function(a,b){return Wb(this.height,a,b)},h.dv=function(a){this.width!==a&&(this.width=a,this.ua())},h.Yu=function(a){this.height!==a&&(this.height=a,this.ua())},h.bv=
function(a,b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.ua()},s.lv=function(a){a.q(this.width)},s.wu=function(a){a.q(this.height)},s.ku=function(a){this.la();a.q(this.xa.left)},s.mu=function(a){this.la();a.q(this.xa.top)},s.lu=function(a){this.la();a.q(this.xa.right)},s.ju=function(a){this.la();a.q(this.xa.bottom)});a&&(l.Cp=function(a,b){return Ja(this.i,U(b))<=U(a)},l.Kp=function(a){return Pa(this.i,U(a))},l.Ip=function(a,b){var c=Ha(a),d=Ha(b),h=Ea(this.i);return Pa(d,
c)?Pa(h,c)&&!Pa(h,d):!(!Pa(h,c)&&Pa(h,d))},h.Uu=function(a){a=U(Da(a));isNaN(a)||this.i===a||(this.i=a,this.ua())},h.Qu=function(a){0===a||isNaN(a)||(this.i+=U(a),this.i=Ea(this.i),this.ua())},h.Ru=function(a){0===a||isNaN(a)||(this.i-=U(a),this.i=Ea(this.i),this.ua())},h.Su=function(a,b){var c=Ka(this.i,U(b),U(a));isNaN(c)||this.i===c||(this.i=c,this.ua())},h.Tu=function(a,b,c){a=Ka(this.i,Math.atan2(c-this.y,b-this.x),U(a));isNaN(a)||this.i===a||(this.i=a,this.ua())},h.cv=function(a,b){var c=Math.atan2(b-
this.y,a-this.x);isNaN(c)||this.i===c||(this.i=c,this.ua())},s.iu=function(a){a.q(Fa(this.i))});q||(l.pu=function(a,b,c){return Wb(this.Ka[a],b,c)},l.yu=function(a){return this.Ka[a]},l.Nu=function(a,b){var c=this.ba(),d=c.pc();if(!d.length)return!1;var h=d[0],e=h,f=h.Ka[b],k,l,m;k=1;for(l=d.length;k<l;k++)if(h=d[k],m=h.Ka[b],0===a&&m<f||1===a&&m>f)f=m,e=h;c.mh(e);return!0},l.Lu=function(a){var b,c,d,h,e;if(this.b.li().qf){e=this.ba();if(e.fa)for(e.fa=!1,e.c.length=0,e.P.length=0,d=this.c,b=0,c=d.length;b<
c;b++)h=d[b],h.uid===a?e.P.push(h):e.c.push(h);else{d=b=0;for(c=e.c.length;b<c;b++)h=e.c[b],e.c[d]=h,h.uid===a?e.P.push(h):d++;e.c.length=d}this.ld();return!!e.c.length}h=this.b.ni(a);if(!h)return!1;e=this.ba();if(!e.fa&&-1===e.c.indexOf(h))return!1;if(this.A)for(a=h.type.na,b=0,c=a.length;b<c;b++){if(a[b]===this)return e.mh(h),this.ld(),!0}else if(h.type===this)return e.mh(h),this.ld(),!0;return!1},l.Zp=function(){return!0},l.$p=function(){return!0},h.Zu=function(a,b){var c=this.Ka;ja(c[a])?c[a]=
ja(b)?b:parseFloat(b):P(c[a])&&(c[a]=P(b)?b:b.toString())},h.hu=function(a,b){var c=this.Ka;ja(c[a])?c[a]=ja(b)?c[a]+b:c[a]+parseFloat(b):P(c[a])&&(c[a]=P(b)?c[a]+b:c[a]+b.toString())},h.iv=function(a,b){var c=this.Ka;ja(c[a])&&(c[a]=ja(b)?c[a]-b:c[a]-parseFloat(b))},h.Vu=function(a,b){this.Ka[a]=b?1:0},h.jv=function(a){this.Ka[a]=1-this.Ka[a]},h.vu=function(){this.b.Od(this)},h.Qp||(h.Qp=function(a){var b,c;try{b=JSON.parse(a)}catch(d){return}this.b.Ji(this,b,!0);this.jd&&this.jd();if(this.F)for(a=
0,b=this.F.length;a<b;++a)c=this.F[a],c.jd&&c.jd()}),s.uu=function(a){var b=a.Ve.c.length,c,d,h;c=0;for(d=this.b.Fc.length;c<d;c++)h=this.b.Fc[c],a.Ve.A?0<=h.type.na.indexOf(a.Ve)&&b++:h.type===a.Ve&&b++;a.ca(b)},s.Pu=function(a){a.ca(a.Ve.ba().pc().length)},s.kv=function(a){a.ca(this.uid)},s.xu=function(a){a.ca(this.wg())},s.Dp||(s.Dp=function(a){a.Yb(JSON.stringify(this.b.Rl(this,!0)))}));c&&(l.Op=function(){return this.visible},h.wq=function(a){!a!==!this.visible&&(this.visible=a,this.b.ea=!0)},
l.qu=function(a,b){return Wb(eb(100*this.opacity),a,b)},h.uq=function(a){a/=100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.ea=!0)},s.Opacity=function(a){a.q(eb(100*this.opacity))});w&&(l.zu=function(a){return a?this.d===a:!1},l.Ou=function(a){var b=this.ba(),c=b.pc();if(!c.length)return!1;var d=c[0],h=d,e,f;e=1;for(f=c.length;e<f;e++)if(d=c[e],0===a){if(d.d.index>h.d.index||d.d.index===h.d.index&&d.rc()>h.rc())h=d}else if(d.d.index<h.d.index||d.d.index===h.d.index&&d.rc()<h.rc())h=
d;b.mh(h);return!0},h.Iu=function(){var a=this.d,b=a.c;b.length&&b[b.length-1]===this||(a.Nf(this,!1),a.hg(this,!1),this.b.ea=!0)},h.Gu=function(){var a=this.d,b=a.c;b.length&&b[0]===this||(a.Nf(this,!1),a.zt(this),this.b.ea=!0)},h.Hu=function(a){a&&a!=this.d&&(this.d.Nf(this,!0),this.d=a,a.hg(this,!0),this.b.ea=!0)},h.nv=function(a,b){var c=0===a;if(b){var d=b.ds(this);d&&d.uid!==this.uid&&(this.d.index!==d.d.index&&(this.d.Nf(this,!0),this.d=d.d,d.d.hg(this,!0)),this.d.$s(this,d,c),this.b.ea=!0)}},
s.Du=function(a){a.ca(this.d.po)},s.Cu=function(a){a.Yb(this.d.name)},s.mv=function(a){a.ca(this.rc())});r&&(h.Wu=function(a,b){if(this.b.n){var c=this.type.Fk(b);if(!(0>c)){var d=1===a;this.Qd[c]!==d&&(this.Qd[c]=d,this.Md(),this.b.ea=!0)}}},h.Xu=function(a,b,c){if(this.b.n){var d=this.type.Fk(a);0>d||(a=this.type.G[d],d=this.qa[d],b=Math.floor(b),0>b||b>=d.length||(1===this.b.n.os(a.eb,b)&&(c/=100),d[b]!==c&&(d[b]=c,a.Ta&&(this.b.ea=!0))))}})};Cb=function(){this.$j=this.Mh=!0;this.type.Gh=!0;this.b.ea=
!0;var f,d,q=this.Yj;f=0;for(d=q.length;f<d;++f)q[f](this);this.d.Rc&&this.la()};Db=function(f){f&&this.Yj.push(f)};Fb=function(){if(this.Mh){var f=this.xa,d=this.Mb;f.set(this.x,this.y,this.x+this.width,this.y+this.height);f.offset(-this.Ab*this.width,-this.Bb*this.height);this.i?(f.offset(-this.x,-this.y),d.Yo(f,this.i),d.offset(this.x,this.y),d.Nm(f)):d.Sf(f);f.normalize();this.Mh=!1;this.du()}};var f=new T(0,0,0,0);Gb=function(){if(this.d.Rc){var m=this.d.Vb,d=this.xa;f.set(m.$b(d.left),m.ac(d.top),
m.$b(d.right),m.ac(d.bottom));this.Fb.bi(f)||(this.Fb.right<this.Fb.left?m.update(this,null,f):m.update(this,this.Fb,f),this.Fb.mg(f),this.d.Gd=!0)}};Hb=function(){if(this.$j&&this.we){this.la();var m=this.type.Rh,d=this.xa;f.set(m.$b(d.left),m.ac(d.top),m.$b(d.right),m.ac(d.bottom));this.Wd.bi(f)||(this.Wd.right<this.Wd.left?m.update(this,null,f):m.update(this,this.Wd,f),this.Wd.mg(f),this.$j=!1)}};Eb=function(f,d){return this.xa.$a(f,d)&&this.Mb.$a(f,d)?this.V&&!this.V.uf()?(this.V.gf(this.width,
this.height,this.i),this.V.$a(f-this.x,d-this.y)):!0:!1};yb=function(){this.type.Gj();return this.Je};Ib=function(){this.d.mm();return this.Tc};Jb=function(){this.U.length=0;var f,d;f=0;for(d=this.Qd.length;f<d;f++)this.Qd[f]&&this.U.push(this.type.G[f]);this.yp=!!this.U.length};zb=function(){return"Inst"+this.Mo};lb=function(f){if(f&&f.Ic&&f.type!=this){var d,q,k;d=0;for(q=f.siblings.length;d<q;d++)if(k=f.siblings[d],k.type==this)return k}f=this.ba().pc();return f.length?f[0]:null};mb=function(f){var d=
this.ba().pc();return d.length?d[f.wg()%d.length]:null};kb=function(){if(this.Vf&&!this.A){var f,d;f=0;for(d=this.c.length;f<d;f++)this.c[f].Je=f;var q=f,k=this.b.Fc;f=0;for(d=k.length;f<d;++f)k[f].type===this&&(k[f].Je=q++);this.Vf=!1}};wb=function(f){if(f<this.c.length)return this.c[f];f-=this.c.length;var d=this.b.Fc,q,k;q=0;for(k=d.length;q<k;++q)if(d[q].type===this){if(0===f)return d[q];--f}return null};nb=function(){return this.me[this.qd]};ob=function(){this.qd++;this.qd===this.me.length?this.me.push(new jb(this)):
this.me[this.qd].fa=!0};pb=function(){this.qd++;this.qd===this.me.length&&this.me.push(new jb(this));var f=this.me[this.qd],d=this.me[this.qd-1];d.fa?f.fa=!0:(f.fa=!1,ya(f.c,d.c),ya(f.P,d.P))};rb=function(){this.qd--};sb=function(f){var d,q,k,b,a,c=0;if(!this.A)for(d=0,q=this.na.length;d<q;d++)for(a=this.na[d],k=0,b=a.Ea.length;k<b;k++){if(f===a.Ea[k].name)return this.ra.lastBehIndex=c,a.Ea[k];c++}d=0;for(q=this.Ea.length;d<q;d++){if(f===this.Ea[d].name)return this.ra.lastBehIndex=c,this.Ea[d];c++}return null};
tb=function(f){return this.ki(f)?this.ra.lastBehIndex:-1};ub=function(f){var d,q;d=0;for(q=this.G.length;d<q;d++)if(this.G[d].name===f)return d;return-1};vb=function(){if(this.Ic&&!this.A){var f,d,q,k,b,a,c;this.Gj();a=this.ba();var w=a.fa,r=(f=this.b.mb())&&f.Ob&&f.Ob.Kc;f=0;for(d=this.Nb.length;f<d;f++)if(b=this.Nb[f],b!==this&&(b.Gj(),c=b.ba(),c.fa=w,!w)){c.c.length=a.c.length;q=0;for(k=a.c.length;q<k;q++)c.c[q]=b.ln(a.c[q].Je);if(r)for(c.P.length=a.P.length,q=0,k=a.P.length;q<k;q++)c.P[q]=b.ln(a.P[q].Je)}}};
xb=function(){return"Type"+this.O};Wb=function(f,d,q){if("undefined"===typeof f||"undefined"===typeof q)return!1;switch(d){case 0:return f===q;case 1:return f!==q;case 2:return f<q;case 3:return f<=q;case 4:return f>q;case 5:return f>=q;default:return!1}}})();var ec={};function hc(f){this.b=f}
(function(){function f(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function m(a){a=a.toLowerCase();return S.hasOwnProperty(a)&&S[a].length?S[a][0].ec():z.destination}function d(){return z.createGain?z.createGain():z.createGainNode()}function q(a){return z.createDelay?z.createDelay(a):z.createDelayNode(a)}function k(a){a.start?a.start(0):a.noteOn(0)}function b(a,b,c){a.start?a.start(0,b):a.noteGrainOn(0,b,c-b)}function a(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}function c(a,
b,c,e,g,h){this.type="filter";this.Lc=[a,b,c,e,g,h];this.R=d();this.D=d();this.D.gain.value=h;this.B=d();this.B.gain.value=1-h;this.Fa=z.createBiquadFilter();this.Fa.type="number"===typeof this.Fa.type?a:oc[a];this.Fa.frequency.value=b;this.Fa.detune&&(this.Fa.detune.value=c);this.Fa.Q.value=e;this.Fa.gain.value=g;this.R.connect(this.Fa);this.R.connect(this.B);this.Fa.connect(this.D)}function w(a,b,c){this.type="delay";this.Lc=[a,b,c];this.R=d();this.D=d();this.D.gain.value=c;this.B=d();this.B.gain.value=
1-c;this.Zg=d();this.nc=q(a);this.nc.delayTime.value=a;this.$h=d();this.$h.gain.value=b;this.R.connect(this.Zg);this.R.connect(this.B);this.Zg.connect(this.D);this.Zg.connect(this.nc);this.nc.connect(this.$h);this.$h.connect(this.Zg)}function r(a,b,c,e){this.type="convolve";this.Lc=[b,c,e];this.R=d();this.D=d();this.D.gain.value=c;this.B=d();this.B.gain.value=1-c;this.xe=z.createConvolver();a&&(this.xe.normalize=b,this.xe.buffer=a);this.R.connect(this.xe);this.R.connect(this.B);this.xe.connect(this.D)}
function l(a,b,c,e,g){this.type="flanger";this.Lc=[a,b,c,e,g];this.R=d();this.B=d();this.B.gain.value=1-g/2;this.D=d();this.D.gain.value=g/2;this.fi=d();this.fi.gain.value=e;this.nc=q(a+b);this.nc.delayTime.value=a;this.Xa=z.createOscillator();this.Xa.frequency.value=c;this.Ub=d();this.Ub.gain.value=b;this.R.connect(this.nc);this.R.connect(this.B);this.nc.connect(this.D);this.nc.connect(this.fi);this.fi.connect(this.nc);this.Xa.connect(this.Ub);this.Ub.connect(this.nc.delayTime);k(this.Xa)}function h(a,
b,c,e,g,h){this.type="phaser";this.Lc=[a,b,c,e,g,h];this.R=d();this.B=d();this.B.gain.value=1-h/2;this.D=d();this.D.gain.value=h/2;this.Fa=z.createBiquadFilter();this.Fa.type="number"===typeof this.Fa.type?7:"allpass";this.Fa.frequency.value=a;this.Fa.detune&&(this.Fa.detune.value=b);this.Fa.Q.value=c;this.Xa=z.createOscillator();this.Xa.frequency.value=g;this.Ub=d();this.Ub.gain.value=e;this.R.connect(this.Fa);this.R.connect(this.B);this.Fa.connect(this.D);this.Xa.connect(this.Ub);this.Ub.connect(this.Fa.frequency);
k(this.Xa)}function s(a){this.type="gain";this.Lc=[a];this.T=d();this.T.gain.value=a}function g(a,b){this.type="tremolo";this.Lc=[a,b];this.T=d();this.T.gain.value=1-b/2;this.Xa=z.createOscillator();this.Xa.frequency.value=a;this.Ub=d();this.Ub.gain.value=b/2;this.Xa.connect(this.Ub);this.Ub.connect(this.T.gain);k(this.Xa)}function p(a,b){this.type="ringmod";this.Lc=[a,b];this.R=d();this.D=d();this.D.gain.value=b;this.B=d();this.B.gain.value=1-b;this.rh=d();this.rh.gain.value=0;this.Xa=z.createOscillator();
this.Xa.frequency.value=a;this.Xa.connect(this.rh.gain);k(this.Xa);this.R.connect(this.rh);this.R.connect(this.B);this.rh.connect(this.D)}function v(a,b,c,e,g){this.type="distortion";this.Lc=[a,b,c,e,g];this.R=d();this.ej=d();this.dj=d();this.Pt(c,Math.pow(10,e/20));this.D=d();this.D.gain.value=g;this.B=d();this.B.gain.value=1-g;this.Ij=z.createWaveShaper();this.Yh=new Float32Array(65536);this.$r(a,b);this.Ij.Yh=this.Yh;this.R.connect(this.ej);this.R.connect(this.B);this.ej.connect(this.Ij);this.Ij.connect(this.dj);
this.dj.connect(this.D)}function B(a,b,c,e,d){this.type="compressor";this.Lc=[a,b,c,e,d];this.T=z.createDynamicsCompressor();try{this.T.threshold.value=a,this.T.knee.value=b,this.T.ratio.value=c,this.T.attack.value=e,this.T.release.value=d}catch(g){}}function n(a,b){this.type="analyser";this.Lc=[a,b];this.T=z.createAnalyser();this.T.fftSize=a;this.T.smoothingTimeConstant=b;this.Yr=new Float32Array(this.T.frequencyBinCount);this.bp=new Uint8Array(a);this.lh=0}function e(){this.C=null;this.Li=0;this.ne=
[];this.rl=this.Ei=this.Di=0}function u(a,b){this.src=a;this.I=H;this.Jc=b;this.Im=!1;var c=this;this.pl=this.Cl=null;this.Kf=[];this.mj=0;this.tm=this.uk=this.gp=this.aj=!1;1===H&&b&&(this.I=0,this.Cl=d());this.te=this.W=null;var e;switch(this.I){case 0:this.W=new Audio;this.W.addEventListener("canplaythrough",function(){c.tm=!0});1===H&&z.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.gp=!0,this.W.addEventListener("canplay",function(){c.pl||(c.pl=z.createMediaElementSource(c.W),
c.pl.connect(c.Cl))}));this.W.autoplay=!1;this.W.wv="auto";this.W.src=a;break;case 1:e=new XMLHttpRequest;e.open("GET",a,!0);e.responseType="arraybuffer";e.onload=function(){c.te=e.response;c.Uq()};e.onerror=function(){c.uk=!0};e.send();break;case 2:this.W=!0;break;case 3:this.W=!0}}function t(a,b){var c=this;this.tag=b;this.Zb=this.Yc=!0;this.src=a.src;this.buffer=a;this.I=H;this.Jc=a.Jc;this.playbackRate=1;this.fk=!0;this.vc=this.Hd=!1;this.Gb=0;this.Hg=this.wf=this.Zc=!1;this.volume=1;this.Ne=
1===G&&!this.Jc||2===G;this.Ff=1;this.startTime=this.Ne?A.hc.Z:A.hd.Z;this.za=this.Ja=null;this.$c=!1;this.ya=null;this.zo=this.yo=this.xo=this.wo=this.Bo=this.Ao=0;this.e=null;var e=!1;1!==this.I||0!==this.buffer.I||this.buffer.gp||(this.I=0);switch(this.I){case 0:this.Jc?(this.e=a.W,e=!a.Im,a.Im=!0):(this.e=new Audio,this.e.autoplay=!1,this.e.src=a.W.src,e=!0);e&&this.e.addEventListener("ended",function(){C=c.tag;c.Zb=!0;A.trigger(hc.prototype.j.Lj,K)});break;case 1:this.Ja=d();this.Ja.connect(m(b));
1===this.buffer.I?a.W&&(this.e=z.createBufferSource(),this.e.buffer=a.W,this.e.connect(this.Ja)):(this.e=this.buffer.W,this.buffer.Cl.connect(this.Ja));break;case 2:this.e=new window.Media(X+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(c.fk=!0,c.Zb=!0,C=c.tag,A.trigger(hc.prototype.j.Lj,K))});break;case 3:this.e=!0}}function y(a,b){S.hasOwnProperty(a)?S[a].push(b):S[a]=[b];var c,e,d,g,h=z.destination;if(S.hasOwnProperty(a)&&(d=S[a],d.length))for(h=d[0].ec(),c=0,e=d.length;c<e;c++)g=
d[c],c+1===e?g.kc(z.destination):g.kc(d[c+1].ec());Ga.length=0;if(a.length)for(c=0,e=N.length;c<e;c++)d=N[c],fb(a,d.tag)&&Ga.push(d);else Q&&!Q.Ie()&&(Ga.length=1,Ga[0]=Q);c=0;for(e=Ga.length;c<e;c++)Ga[c].Dt(h);aa&&qb===a&&(aa.disconnect(),aa.connect(h))}function F(){}function na(){}var x=hc.prototype;x.gb=function(a){this.Aa=a;this.b=a.b};x.gb.prototype.ha=function(){};var A=null,K=null,C="",X="",H=0,z=null,ua=[],N=[],Q=null,E=!1,G=0,O=!1,D=1,J=0,I=0,ha=1,L=1,oa=10,ea=1E4,sa=1,aa=null,qb="",La=
!1,Ma=[],S={},oc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");c.prototype.kc=function(a){this.D.disconnect();this.D.connect(a);this.B.disconnect();this.B.connect(a)};c.prototype.remove=function(){this.R.disconnect();this.Fa.disconnect();this.D.disconnect();this.B.disconnect()};c.prototype.ec=function(){return this.R};w.prototype.kc=function(a){this.D.disconnect();this.D.connect(a);this.B.disconnect();this.B.connect(a)};w.prototype.remove=function(){this.R.disconnect();
this.Zg.disconnect();this.nc.disconnect();this.$h.disconnect();this.D.disconnect();this.B.disconnect()};w.prototype.ec=function(){return this.R};r.prototype.kc=function(a){this.D.disconnect();this.D.connect(a);this.B.disconnect();this.B.connect(a)};r.prototype.remove=function(){this.R.disconnect();this.xe.disconnect();this.D.disconnect();this.B.disconnect()};r.prototype.ec=function(){return this.R};l.prototype.kc=function(a){this.B.disconnect();this.B.connect(a);this.D.disconnect();this.D.connect(a)};
l.prototype.remove=function(){this.R.disconnect();this.nc.disconnect();this.Xa.disconnect();this.Ub.disconnect();this.B.disconnect();this.D.disconnect();this.fi.disconnect()};l.prototype.ec=function(){return this.R};h.prototype.kc=function(a){this.B.disconnect();this.B.connect(a);this.D.disconnect();this.D.connect(a)};h.prototype.remove=function(){this.R.disconnect();this.Fa.disconnect();this.Xa.disconnect();this.Ub.disconnect();this.B.disconnect();this.D.disconnect()};h.prototype.ec=function(){return this.R};
s.prototype.kc=function(a){this.T.disconnect();this.T.connect(a)};s.prototype.remove=function(){this.T.disconnect()};s.prototype.ec=function(){return this.T};g.prototype.kc=function(a){this.T.disconnect();this.T.connect(a)};g.prototype.remove=function(){this.Xa.disconnect();this.Ub.disconnect();this.T.disconnect()};g.prototype.ec=function(){return this.T};p.prototype.kc=function(a){this.D.disconnect();this.D.connect(a);this.B.disconnect();this.B.connect(a)};p.prototype.remove=function(){this.Xa.disconnect();
this.rh.disconnect();this.R.disconnect();this.D.disconnect();this.B.disconnect()};p.prototype.ec=function(){return this.R};v.prototype.Pt=function(a,b){.01>a&&(a=.01);this.ej.gain.value=a;this.dj.gain.value=Math.pow(1/a,.6)*b};v.prototype.shape=function(a,b,c){var e=1.05*c*b-b;c=0>a?-1:1;a=0>a?-a:a;b=a<b?a:b+e*(1-Math.exp(-(1/e)*(a-b)));return b*c};v.prototype.$r=function(a,b){for(var c=Math.pow(10,a/20),e=Math.pow(10,b/20),d=0,g=0;32768>g;++g)d=g/32768,d=this.shape(d,c,e),this.Yh[32768+g]=d,this.Yh[32768-
g-1]=-d};v.prototype.kc=function(a){this.D.disconnect();this.D.connect(a);this.B.disconnect();this.B.connect(a)};v.prototype.remove=function(){this.R.disconnect();this.ej.disconnect();this.Ij.disconnect();this.dj.disconnect();this.D.disconnect();this.B.disconnect()};v.prototype.ec=function(){return this.R};B.prototype.kc=function(a){this.T.disconnect();this.T.connect(a)};B.prototype.remove=function(){this.T.disconnect()};B.prototype.ec=function(){return this.T};n.prototype.Za=function(){this.T.getFloatFrequencyData(this.Yr);
this.T.getByteTimeDomainData(this.bp);for(var a=this.T.fftSize,b=0,c=this.lh=0,e=0;b<a;b++)e=(this.bp[b]-128)/128,0>e&&(e=-e),this.lh<e&&(this.lh=e),c+=e*e;this.lh=f(this.lh);f(Math.sqrt(c/a))};n.prototype.kc=function(a){this.T.disconnect();this.T.connect(a)};n.prototype.remove=function(){this.T.disconnect()};n.prototype.ec=function(){return this.T};e.prototype.sh=function(a){if(this.C=a)this.Di=this.C.x,this.Ei=this.C.y;this.ne.length=0};e.prototype.si=function(){return!!this.C};e.prototype.Za=function(a){this.C&&
0!==a&&(this.rl=Ia(this.Di,this.Ei,this.C.x,this.C.y),a=Ra(this.Di,this.Ei,this.C.x,this.C.y)/a,4>this.ne.length||this.ne.shift(),this.ne.push(a),this.Di=this.C.x,this.Ei=this.C.y)};e.prototype.qn=function(){if(!this.ne.length)return 0;var a,b,c=0;a=0;for(b=this.ne.length;a<b;a++)c+=this.ne[a];return c/this.ne.length};e.prototype.Jk=function(){return Math.cos(this.rl)*this.qn()};e.prototype.Kk=function(){return Math.sin(this.rl)*this.qn()};var lc=!1;u.prototype.Uq=function(){if(!this.W&&this.te){var a=
this;if(z.decodeAudioData)z.decodeAudioData(this.te,function(b){a.W=b;a.te=null;var c,e,d;if(ga(a.bj)||O)ga(a.Th)||(c=a.Th.xe,c.normalize=a.oo,c.buffer=b);else if(a.Kf.length){c=0;for(e=a.Kf.length;c<e;c++){b=a.Kf[c];d=new t(a,b.jp);d.Tl(!0);if("undefined"!==typeof b.qo&&(b.C=A.ni(b.qo),!b.C))continue;if(b.C){var g=Qa(b.C.x,b.C.y,-b.C.d.Ua(),J,I,!0),h=Qa(b.C.x,b.C.y,-b.C.d.Ua(),J,I,!1);d.Sl(g,h,Ca(b.C.i-b.C.d.Ua()),b.Qk,b.sl,b.wl);d.sh(b.C)}else d.Sl(b.x,b.y,b.zq,b.Qk,b.sl,b.wl);d.play(a.ml,a.qm,
a.mj);a.aj&&d.pause();N.push(d)}a.Kf.length=0}else d=new t(a,a.bj),d.play(a.ml,a.qm,a.mj),a.aj&&d.pause(),N.push(d)},function(){a.uk=!0});else if(this.W=z.createBuffer(this.te,!1),this.te=null,ga(this.bj)||O)ga(this.Th)||(b=this.Th.xe,b.normalize=this.oo,b.buffer=this.W);else{var b=new t(this,this.bj);b.play(this.ml,this.qm,this.mj);this.aj&&b.pause();N.push(b)}}};u.prototype.Bn=function(){switch(this.I){case 0:var a=4<=this.W.readyState;a&&(this.tm=!0);return a||this.tm;case 1:return!!this.te||!!this.W;
case 2:return!0;case 3:return!0}return!1};u.prototype.Os=function(){switch(this.I){case 0:return this.Bn();case 1:return!!this.W;case 2:return!0;case 3:return!0}return!1};u.prototype.Fs=function(){switch(this.I){case 0:return!!this.W.error;case 1:return this.uk}return!1};t.prototype.Ie=function(){var a;switch(this.I){case 0:return this.e.ended;case 1:if(1===this.buffer.I){if(!this.Yc&&!this.Zb&&this.e.loop||this.vc)return!1;a=this.Ne?A.hc.Z:A.hd.Z;var b=this.playbackRate;0===b&&(b=1E-6);return a-
this.startTime>this.buffer.W.duration/b}return this.e.ended;case 2:return this.fk;case 3:!0}return!0};t.prototype.Nq=function(){return this.Yc||this.Zb?!0:this.Ie()};t.prototype.Tl=function(a){1===H&&(!this.$c&&a?this.Ja&&(this.za||(this.za=z.createPanner(),this.za.panningModel="number"===typeof this.za.panningModel?ha:["equalpower","HRTF","soundfield"][ha],this.za.distanceModel="number"===typeof this.za.distanceModel?L:["linear","inverse","exponential"][L],this.za.refDistance=oa,this.za.maxDistance=
ea,this.za.rolloffFactor=sa),this.Ja.disconnect(),this.Ja.connect(this.za),this.za.connect(m(this.tag)),this.$c=!0):this.$c&&!a&&this.Ja&&(this.za.disconnect(),this.Ja.disconnect(),this.Ja.connect(m(this.tag)),this.$c=!1))};t.prototype.Sl=function(a,b,c,e,d,g){this.$c&&1===H&&(this.za.setPosition(a,b,0),this.za.setOrientation(Math.cos(U(c)),Math.sin(U(c)),0),this.za.coneInnerAngle=e,this.za.coneOuterAngle=d,this.za.coneOuterGain=g,this.Ao=a,this.Bo=b,this.wo=c,this.xo=e,this.yo=d,this.zo=g)};t.prototype.sh=
function(a){this.$c&&1===H&&(this.ya||(this.ya=new e),this.ya.sh(a))};t.prototype.Za=function(a){if(this.$c&&1===H&&this.ya&&this.ya.si()&&this.sf()){this.ya.Za(a);a=this.ya.C;var b=Qa(a.x,a.y,-a.d.Ua(),J,I,!0),c=Qa(a.x,a.y,-a.d.Ua(),J,I,!1);this.za.setPosition(b,c,0);b=0;"undefined"!==typeof this.ya.C.i&&(b=a.i-a.d.Ua(),this.za.setOrientation(Math.cos(b),Math.sin(b),0));b=Qa(this.ya.Jk(),this.ya.Kk(),-a.d.Ua(),0,0,!0);c=Qa(this.ya.Jk(),this.ya.Kk(),-a.d.Ua(),0,0,!1);this.za.setVelocity(b,c,0)}};
t.prototype.play=function(a,c,e){var d=this.e;this.Zc=a;this.volume=c;e=e||0;switch(this.I){case 0:1!==d.playbackRate&&(d.playbackRate=1);d.volume!==c*D&&(d.volume=c*D);d.loop!==a&&(d.loop=a);d.muted&&(d.muted=!1);if(d.currentTime!==e)try{d.currentTime=e}catch(g){}if(this.Jc&&La&&!A.ga)Ma.push(this);else try{this.e.play()}catch(h){console&&console.log&&console.log("[C2] WARNING: exception trying to play audio '"+this.buffer.src+"': ",h)}break;case 1:this.muted=!1;this.Ff=1;if(1===this.buffer.I)this.Ja.gain.value=
c*D,this.Yc||(this.e=z.createBufferSource(),this.e.buffer=this.buffer.W,this.e.connect(this.Ja)),this.e.loop=a,0===e?k(this.e):b(this.e,e,this.Ge());else{1!==d.playbackRate&&(d.playbackRate=1);d.loop!==a&&(d.loop=a);d.volume=c*D;if(d.currentTime!==e)try{d.currentTime=e}catch(f){}this.Jc&&La&&!A.ga?Ma.push(this):d.play()}break;case 2:(!this.Yc&&this.Zb||0!==e)&&d.seekTo(e);d.play();this.fk=!1;break;case 3:A.bb?AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=
1;this.startTime=(this.Ne?A.hc.Z:A.hd.Z)-e;this.vc=this.Zb=this.Yc=!1};t.prototype.stop=function(){switch(this.I){case 0:this.e.paused||this.e.pause();break;case 1:1===this.buffer.I?a(this.e):this.e.paused||this.e.pause();break;case 2:this.e.stop();break;case 3:A.bb&&AppMobi.context.stopSound(this.src)}this.Zb=!0;this.vc=!1};t.prototype.pause=function(){if(!(this.Yc||this.Zb||this.Ie()||this.vc)){switch(this.I){case 0:this.e.paused||this.e.pause();break;case 1:1===this.buffer.I?(this.Gb=this.Hk(),
this.Zc&&(this.Gb%=this.Ge()),a(this.e)):this.e.paused||this.e.pause();break;case 2:this.e.pause();break;case 3:A.bb&&AppMobi.context.stopSound(this.src)}this.vc=!0}};t.prototype.Gt=function(){if(!(this.Yc||this.Zb||this.Ie())&&this.vc){switch(this.I){case 0:this.e.play();break;case 1:1===this.buffer.I?(this.e=z.createBufferSource(),this.e.buffer=this.buffer.W,this.e.connect(this.Ja),this.e.loop=this.Zc,this.Ja.gain.value=D*this.volume*this.Ff,this.startTime=(this.Ne?A.hc.Z:A.hd.Z)-this.Gb,b(this.e,
this.Gb,this.Ge())):this.e.play();break;case 2:this.e.play();break;case 3:A.bb&&AppMobi.context.resumeSound(this.src)}this.vc=!1}};t.prototype.seek=function(a){if(!(this.Yc||this.Zb||this.Ie()))switch(this.I){case 0:try{this.e.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.I)this.vc?this.Gb=a:(this.pause(),this.Gb=a,this.Gt());else try{this.e.currentTime=a}catch(c){}break;case 3:A.bb&&AppMobi.context.seekSound(this.src,a)}};t.prototype.Dt=function(a){1===this.I&&(this.$c?(this.za.disconnect(),
this.za.connect(a)):(this.Ja.disconnect(),this.Ja.connect(a)))};t.prototype.Ge=function(){switch(this.I){case 0:if("undefined"!==typeof this.e.duration)return this.e.duration;break;case 1:return this.buffer.W.duration;case 2:return this.e.getDuration();case 3:if(A.bb)return AppMobi.context.getDurationSound(this.src)}return 0};t.prototype.Hk=function(){var a=this.Ge(),b=0;switch(this.I){case 0:"undefined"!==typeof this.e.currentTime&&(b=this.e.currentTime);break;case 1:if(1===this.buffer.I){if(this.vc)return this.Gb;
b=(this.Ne?A.hc.Z:A.hd.Z)-this.startTime}else"undefined"!==typeof this.e.currentTime&&(b=this.e.currentTime);break;case 3:A.bb&&(b=AppMobi.context.getPlaybackTimeSound(this.src))}!this.Zc&&b>a&&(b=a);return b};t.prototype.sf=function(){return!this.vc&&!this.Yc&&!this.Zb&&!this.Ie()};t.prototype.bu=function(){var a=this.volume*D;switch(this.I){case 0:"undefined"!==typeof this.e.volume&&this.e.volume!==a&&(this.e.volume=a);break;case 1:1===this.buffer.I?this.Ja.gain.value=a*this.Ff:"undefined"!==typeof this.e.volume&&
this.e.volume!==a&&(this.e.volume=a)}};t.prototype.ai=function(a){switch(this.I){case 0:this.e.muted!==!!a&&(this.e.muted=!!a);break;case 1:1===this.buffer.I?(this.Ff=a?0:1,this.Ja.gain.value=D*this.volume*this.Ff):this.e.muted!==!!a&&(this.e.muted=!!a)}};t.prototype.Qt=function(){this.wf=!0;this.ai(this.wf||this.Hg)};t.prototype.Vo=function(a){this.Hg=!!a;this.ai(this.wf||this.Hg)};t.prototype.xp=function(){var a=this.playbackRate;this.Ne&&(a*=A.Yf);switch(this.I){case 0:this.e.playbackRate!==a&&
(this.e.playbackRate=a);break;case 1:1===this.buffer.I?this.e.playbackRate.value!==a&&(this.e.playbackRate.value=a):this.e.playbackRate!==a&&(this.e.playbackRate=a)}};t.prototype.St=function(c){switch(this.I){case 0:c?this.sf()?(this.e.pause(),this.Hd=!0):this.Hd=!1:this.Hd&&this.e.play();break;case 1:c?this.sf()?(1===this.buffer.I?(this.Gb=this.Hk(),this.Zc&&(this.Gb%=this.Ge()),a(this.e)):this.e.pause(),this.Hd=!0):this.Hd=!1:this.Hd&&(1===this.buffer.I?(this.e=z.createBufferSource(),this.e.buffer=
this.buffer.W,this.e.connect(this.Ja),this.e.loop=this.Zc,this.Ja.gain.value=D*this.volume*this.Ff,this.startTime=(this.Ne?A.hc.Z:A.hd.Z)-this.Gb,b(this.e,this.Gb,this.Ge())):this.e.play());break;case 2:c?this.sf()?(this.e.pause(),this.Hd=!0):this.Hd=!1:this.Hd&&this.e.play()}};x.Da=function(a){this.type=a;A=this.b=a.b;K=this;this.ob=null;this.Pg=-600;!(this.b.Ci||this.b.wi&&(this.b.Dg||this.b.xi))||this.b.Eg||this.b.da||this.b.Xk||(La=!0);z=null;"undefined"!==typeof AudioContext?(H=1,z=new AudioContext):
"undefined"!==typeof webkitAudioContext&&(H=1,z=new webkitAudioContext);(this.b.Ci&&1===H||La)&&document.addEventListener("touchstart",function(){var a,b,c;!lc&&z&&(a=z.createBuffer(1,1,22050),b=z.createBufferSource(),b.buffer=a,b.connect(z.destination),k(b),lc=!0);if(La){if(!O)for(a=0,b=Ma.length;a<b;++a)c=Ma[a],c.Zb||c.vc||c.e.play();Ma.length=0}},!0);1!==H&&(this.b.uc&&"undefined"!==typeof window.Media?H=2:this.b.rf&&(H=3));2===H&&(X=location.href,a=X.lastIndexOf("/"),-1<a&&(X=X.substr(0,a+1)),
X=X.replace("file://",""));if(this.b.Cn&&this.b.Ps&&"undefined"===typeof Audio)alert("It looks like you're using Safari for Windows without Quicktime.  Audio cannot be played until Quicktime is installed."),this.b.Od(this);else{if(this.b.bb)E=this.b.wi;else try{E=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(b){E=!1}this.b.cm(this)}};var ia=x.Da.prototype;ia.ha=function(){this.b.ff=this;G=this.Ca[0];this.Id=this.Ca[1];this.qt=0!==this.Ca[2];ha=this.Ca[3];L=this.Ca[4];this.Pg=-this.Ca[5];
oa=this.Ca[6];ea=this.Ca[7];sa=this.Ca[8];this.ob=new e;var a=this.b.M||this.b.width,b=this.b.L||this.b.height;1===H&&("undefined"!==typeof z.listener.dopplerFactor&&(z.listener.dopplerFactor=0),z.listener.setPosition(a/2,b/2,this.Pg),z.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,b){aa&&aa.disconnect();qb=b.toLowerCase();aa=z.createMediaStreamSource(a);aa.connect(m(qb))});this.b.Fq(function(a){K.mt(a)});var c=this;this.b.Dq(function(a){c.ht(a)})};ia.ht=function(a){var b,
c,e;b=0;for(c=N.length;b<c;b++)e=N[b],e.ya&&e.ya.C===a&&(e.ya.C=null,e.$c&&e.sf()&&e.Zc&&e.stop());this.ob.C===a&&(this.ob.C=null)};ia.Wb=function(){var a={silent:O,masterVolume:D,listenerZ:this.Pg,listenerUid:this.ob.si()?this.ob.C.uid:-1,playing:[],effects:{}},b=a.playing,c,e,d,g,h,f;c=0;for(e=N.length;c<e;c++)d=N[c],!d.sf()||3===this.Id||d.Jc&&1===this.Id||!d.Jc&&2===this.Id||(g=d.Hk(),d.Zc&&(g%=d.Ge()),g={tag:d.tag,buffersrc:d.buffer.src,is_music:d.Jc,playbackTime:g,volume:d.volume,looping:d.Zc,
muted:d.wf,playbackRate:d.playbackRate,paused:d.vc,resume_position:d.Gb},d.$c&&(g.pan={},f=g.pan,d.ya&&d.ya.si()?f.objUid=d.ya.C.uid:(f.x=d.Ao,f.y=d.Bo,f.a=d.wo),f.ia=d.xo,f.oa=d.yo,f.og=d.zo),b.push(g));b=a.effects;for(h in S)if(S.hasOwnProperty(h)){d=[];c=0;for(e=S[h].length;c<e;c++)d.push({type:S[h][c].type,params:S[h][c].Lc});b[h]=d}return a};var Na=[];ia.wc=function(a){var b=a.silent;D=a.masterVolume;this.Pg=a.listenerZ;this.ob.sh(null);var d=a.listenerUid;-1!==d&&(this.ob.Li=d,Na.push(this.ob));
var d=a.playing,f,k,t,m,q,u,F,A,C,x,z;if(3!==this.Id)for(f=0,k=N.length;f<k;f++)C=N[f],C.Jc&&1===this.Id||(C.Jc||2!==this.Id)&&C.stop();for(q in S)if(S.hasOwnProperty(q))for(f=0,k=S[q].length;f<k;f++)S[q][f].remove();Ua(S);for(q in a.effects)if(a.effects.hasOwnProperty(q))for(u=a.effects[q],f=0,k=u.length;f<k;f++)switch(t=u[f].type,x=u[f].params,t){case "filter":y(q,new c(x[0],x[1],x[2],x[3],x[4],x[5]));break;case "delay":y(q,new w(x[0],x[1],x[2]));break;case "convolve":t=x[2];C=this.ji(t,!1);C.W?
t=new r(C.W,x[0],x[1],t):(t=new r(null,x[0],x[1],t),C.oo=x[0],C.Th=t);y(q,t);break;case "flanger":y(q,new l(x[0],x[1],x[2],x[3],x[4]));break;case "phaser":y(q,new h(x[0],x[1],x[2],x[3],x[4],x[5]));break;case "gain":y(q,new s(x[0]));break;case "tremolo":y(q,new g(x[0],x[1]));break;case "ringmod":y(q,new p(x[0],x[1]));break;case "distortion":y(q,new v(x[0],x[1],x[2],x[3],x[4]));break;case "compressor":y(q,new B(x[0],x[1],x[2],x[3],x[4]));break;case "analyser":y(q,new n(x[0],x[1]))}f=0;for(k=d.length;f<
k;f++)3===this.Id||(a=d[f],t=a.buffersrc,m=a.is_music,q=a.tag,u=a.playbackTime,F=a.looping,A=a.volume,z=(x=a.pan)&&x.hasOwnProperty("objUid")?x.objUid:-1,m&&1===this.Id)||!m&&2===this.Id||((C=this.hn(t,q,m,F,A))?(C.Gb=a.resume_position,C.Tl(!!x),C.play(F,A,u),C.xp(),C.bu(),C.ai(C.wf||C.Hg),a.paused&&C.pause(),a.muted&&C.Qt(),C.ai(C.wf||C.Hg),x&&(-1!==z?(C.ya=C.ya||new e,C.ya.Li=z,Na.push(C.ya)):C.Sl(x.x,x.y,x.a,x.ia,x.oa,x.og))):(C=this.ji(t,m),C.mj=u,C.aj=a.paused,x&&(-1!==z?C.Kf.push({qo:z,Qk:x.ia,
sl:x.oa,wl:x.og,jp:q}):C.Kf.push({x:x.x,y:x.y,zq:x.a,Qk:x.ia,sl:x.oa,wl:x.og,jp:q}))));if(b&&!O){f=0;for(k=N.length;f<k;f++)N[f].Vo(!0);O=!0}else if(!b&&O){f=0;for(k=N.length;f<k;f++)N[f].Vo(!1);O=!1}};ia.jd=function(){var a,b,c,e;a=0;for(b=Na.length;a<b;a++)c=Na[a],e=this.b.ni(c.Li),c.sh(e),c.Li=-1,e&&(J=e.x,I=e.y);Na.length=0};ia.mt=function(a){if(!this.qt){!a&&z&&z.resume&&z.resume();var b,c;b=0;for(c=N.length;b<c;b++)N[b].St(a);a&&z&&z.suspend&&z.suspend()}};ia.Za=function(){var a=this.b.Ce,b,
c,e;b=0;for(c=N.length;b<c;b++)e=N[b],e.Za(a),0===e.I||3===e.I||e.Yc||e.Zb||!e.Ie()||(e.Zb=!0,C=e.tag,A.trigger(hc.prototype.j.Lj,K)),0!==G&&e.xp();var d,g;for(d in S)if(S.hasOwnProperty(d))for(e=S[d],b=0,c=e.length;b<c;b++)g=e[b],g.Za&&g.Za();1===H&&this.ob.si()&&(this.ob.Za(a),J=this.ob.C.x,I=this.ob.C.y,z.listener.setPosition(this.ob.C.x,this.ob.C.y,this.Pg),z.listener.setVelocity(this.ob.Jk(),this.ob.Kk(),0))};var Oa=[];ia.Rt=function(a){var b,c,e,d,g,f=0;b=0;for(c=a.length;b<c;++b)if(e=a[b],
d=e[0],e=2*e[1],(g=4<d.length&&".ogg"===d.substr(d.length-4))&&E||!g&&!E)Oa.push({filename:d,size:e,C:null}),f+=e;return f};ia.Vt=function(){var a,b,c,e;a=0;for(b=Oa.length;a<b;++a)c=Oa[a],e=this.b.vk+c.filename,c.C=this.ji(e,!1)};ia.ls=function(){var a=0,b,c,e;b=0;for(c=Oa.length;b<c;++b)e=Oa[b],e.C.Os()||e.C.Fs()||this.b.da||this.b.xi?a+=e.size:e.C.Bn()&&(a+=Math.floor(e.size/2));return a};ia.ji=function(a,b){var c,e,d,g=null;c=0;for(e=ua.length;c<e;c++)if(d=ua[c],d.src===a){g=d;break}g||(g=new u(a,
b),ua.push(g));return g};ia.hn=function(a,b,c,e,d){var g,f,h;g=0;for(f=N.length;g<f;g++)if(h=N[g],h.src===a&&(h.Nq()||c))return h.tag=b,h;a=this.ji(a,c);if(!a.W)return"<preload>"!==b&&(a.bj=b,a.ml=e,a.qm=d),null;h=new t(a,b);N.push(h);return h};var Ga=[];F.prototype.Lj=function(a){return fb(C,a)};x.j=new F;na.prototype.Play=function(a,b,c,e){!O&&(c=Math.pow(10,c/20),0>c&&(c=0),1<c&&(c=1),Q=this.hn(this.b.vk+a[0]+(E?".ogg":".m4a"),e,a[1],0!==b,c))&&(Q.Tl(!1),Q.play(0!==b,c))};x.Ia=new na;x.Qb=new function(){}})();
function ic(f){this.b=f}
(function(){function f(){}var m=ic.prototype;m.gb=function(d){this.Aa=d;this.b=d.b};m.gb.prototype.ha=function(){};m.Da=function(d){this.type=d;this.b=d.b;this.dl=Array(256);this.Hj=Array(256);this.pe=0};var d=m.Da.prototype;d.ha=function(){var d=this;this.b.da||(jQuery(document).keydown(function(b){d.it(b)}),jQuery(document).keyup(function(b){d.jt(b)}))};var q=[32,33,34,35,36,37,38,39,40,44];d.it=function(d){var b=!1;window!=window.top&&-1<q.indexOf(d.which)&&(d.preventDefault(),b=!0,d.stopPropagation());
if(this.dl[d.which])this.Hj[d.which]&&!b&&d.preventDefault();else{this.dl[d.which]=!0;this.pe=d.which;this.b.ga=!0;this.b.trigger(ic.prototype.j.Wp,this);var a=this.b.trigger(ic.prototype.j.hq,this),c=this.b.trigger(ic.prototype.j.iq,this);this.b.ga=!1;if(a||c)this.Hj[d.which]=!0,b||d.preventDefault()}};d.jt=function(d){this.dl[d.which]=!1;this.pe=d.which;this.b.ga=!0;this.b.trigger(ic.prototype.j.Xp,this);var b=this.b.trigger(ic.prototype.j.kq,this),a=this.b.trigger(ic.prototype.j.jq,this);this.b.ga=
!1;if(b||a||this.Hj[d.which])this.Hj[d.which]=!0,d.preventDefault()};d.Wb=function(){return{triggerKey:this.pe}};d.wc=function(d){this.pe=d.triggerKey};f.prototype.hq=function(d){return d===this.pe};f.prototype.Wp=function(){return!0};f.prototype.Xp=function(){return!0};f.prototype.kq=function(d){return d===this.pe};f.prototype.iq=function(d){return d===this.pe};f.prototype.jq=function(d){return d===this.pe};m.j=new f;m.Ia=new function(){};m.Qb=new function(){}})();function jc(f){this.b=f}
(function(){function f(){}function m(){}var d=jc.prototype;d.gb=function(b){this.Aa=b;this.b=b.b};d.gb.prototype.ha=function(){};d.Da=function(b){this.type=b;this.b=b.b;this.Nh=Array(4);this.mp=this.Cj=this.Zf=this.Bd=this.Ad=0;this.Nk=!1};var q=d.Da.prototype;q.ha=function(){var b=this;if(!this.b.da){jQuery(document).mousemove(function(a){b.eh(a)});jQuery(document).mousedown(function(a){b.dh(a)});jQuery(document).mouseup(function(a){b.fh(a)});jQuery(document).dblclick(function(a){b.et(a)});var a=
function(a){b.ot(a)};document.addEventListener("mousewheel",a,!1);document.addEventListener("DOMMouseScroll",a,!1)}};var k={left:0,top:0};q.eh=function(b){var a=this.b.da?k:jQuery(this.b.canvas).offset();this.Ad=b.pageX-a.left;this.Bd=b.pageY-a.top};q.ko=function(){return 0<this.b.lb?!0:0<=this.Ad&&0<=this.Bd&&this.Ad<this.b.width&&this.Bd<this.b.height};q.dh=function(b){this.ko()&&(this.b.pf&&!this.b.yd&&b.preventDefault(),this.Nh[b.which]=!0,this.b.ga=!0,this.b.trigger(jc.prototype.j.Vp,this),this.Zf=
b.which-1,this.Cj=0,this.b.trigger(jc.prototype.j.vm,this),this.b.trigger(jc.prototype.j.Nj,this),this.b.ga=!1)};q.fh=function(b){this.Nh[b.which]&&(this.b.pf&&!this.b.yd&&b.preventDefault(),this.b.pf=!0,this.Nh[b.which]=!1,this.b.ga=!0,this.Zf=b.which-1,this.b.trigger(jc.prototype.j.nq,this),this.b.ga=!1)};q.et=function(b){this.ko()&&(b.preventDefault(),this.b.ga=!0,this.Zf=b.which-1,this.Cj=1,this.b.trigger(jc.prototype.j.vm,this),this.b.trigger(jc.prototype.j.Nj,this),this.b.ga=!1)};q.ot=function(b){this.mp=
0>(b.wheelDelta?b.wheelDelta:b.detail?-b.detail:0)?0:1;this.Nk=!1;this.b.ga=!0;this.b.trigger(jc.prototype.j.qq,this);this.b.ga=!1;this.Nk&&gb(b)&&b.preventDefault()};f.prototype.vm=function(b,a){return b===this.Zf&&a===this.Cj};f.prototype.Vp=function(){return!0};f.prototype.Jp=function(b){return this.Nh[b+1]};f.prototype.nq=function(b){return b===this.Zf};f.prototype.Lp=function(b){var a=this.b.li();return Sa(this.b.Wf(b,this.Ad,this.Bd,a.qf),a.qf)};f.prototype.Nj=function(b,a,c){return b!==this.Zf||
a!==this.Cj?!1:this.b.Wf(c,this.Ad,this.Bd,!1)};f.prototype.qq=function(b){this.Nk=!0;return b===this.mp};d.j=new f;d.Ia=new function(){};m.prototype.Bm=function(b,a){var c,d,f,k,h;ga(a)?(c=this.b.ud(0),d=c.scale,f=c.kb,k=c.Db,h=c.i,c.scale=1,c.kb=1,c.Db=1,c.i=0,b.q(c.ma(this.Ad,this.Bd,!0)),c.scale=d,c.kb=f,c.Db=k,c.i=h):(c=ja(a)?this.b.ud(a):this.b.ug(a))?b.q(c.ma(this.Ad,this.Bd,!0)):b.q(0)};m.prototype.Cm=function(b,a){var c,d,f,k,h;ga(a)?(c=this.b.ud(0),d=c.scale,f=c.kb,k=c.Eb,h=c.i,c.scale=
1,c.kb=1,c.Eb=1,c.i=0,b.q(c.ma(this.Ad,this.Bd,!1)),c.scale=d,c.kb=f,c.Eb=k,c.i=h):(c=ja(a)?this.b.ud(a):this.b.ug(a))?b.q(c.ma(this.Ad,this.Bd,!1)):b.q(0)};d.Qb=new m})();function kc(f){this.b=f}
(function(){function f(d){this.ja=d;this.Ta=!1;this.i=this.speed=this.y=this.x=0;this.opacity=1;this.Rd=this.of=this.size=this.qi=0}var m=kc.prototype;m.gb=function(d){this.Aa=d;this.b=d.b};var d=m.gb.prototype;d.ha=function(){this.A||(this.H=new Image,this.H.hk=this.zj,this.N=null,this.b.rm(this.H,this.yj))};d.Ti=function(){this.A||(this.N=null)};d.Ui=function(){this.A||!this.c.length||this.N||(this.N=this.b.n.Bf(this.H,!0,this.b.S,this.Ah))};d.Rg=function(){this.A||this.N||!this.b.n||(this.N=this.b.n.Bf(this.H,
!0,this.b.S,this.Ah))};d.Fj=function(){this.A||this.c.length||!this.N||(this.b.n.deleteTexture(this.N),this.N=null)};d.fj=function(d){d.drawImage(this.H,0,0)};f.prototype.init=function(){var d=this.ja;this.x=d.x-d.Jj/2+Math.random()*d.Jj;this.y=d.y-d.Kj/2+Math.random()*d.Kj;this.speed=d.Uk-d.sj/2+Math.random()*d.sj;this.i=d.i-d.tj/2+Math.random()*d.tj;this.opacity=d.Sk;this.size=d.Tk-d.qj/2+Math.random()*d.qj;this.qi=d.Mk-d.ri/2+Math.random()*d.ri;this.Rd=this.of=0};f.prototype.Za=function(d){var b=
this.ja;this.x+=Math.cos(this.i)*this.speed*d;this.y+=Math.sin(this.i)*this.speed*d;this.y+=this.of*d;this.speed+=b.Rj*d;this.size+=this.qi*d;this.of+=b.Bk*d;this.Rd+=d;1>this.size?this.Ta=!1:(0!==b.Mg&&(this.i+=Math.random()*b.Mg*d-b.Mg*d/2),0!==b.Og&&(this.speed+=Math.random()*b.Og*d-b.Og*d/2),0!==b.Ng&&(this.opacity+=Math.random()*b.Ng*d-b.Ng*d/2,0>this.opacity?this.opacity=0:1<this.opacity&&(this.opacity=1)),1>=b.jf&&this.Rd>=b.timeout&&(this.Ta=!1),2===b.jf&&0>=this.speed&&(this.Ta=!1))};f.prototype.Gc=
function(d){var b=this.ja.opacity*this.opacity;if(0!==b){0===this.ja.jf&&(b*=1-this.Rd/this.ja.timeout);d.globalAlpha=b;var b=this.x-this.size/2,a=this.y-this.size/2;this.ja.b.bd&&(b=b+.5|0,a=a+.5|0);d.drawImage(this.ja.type.H,b,a,this.size,this.size)}};f.prototype.Pb=function(d){var b=this.ja.opacity*this.opacity;0===this.ja.jf&&(b*=1-this.Rd/this.ja.timeout);var a=this.size,c=a*this.ja.Eo,f=this.x-a/2,m=this.y-a/2;this.ja.b.bd&&(f=f+.5|0,m=m+.5|0);1>c||0===b||(c<d.Zs||c>d.ol?(d.Ye(b),d.ph(f,m,f+
a,m,f+a,m+a,f,m+a)):d.tt(this.x,this.y,c,b))};f.prototype.left=function(){return this.x-this.size/2};f.prototype.right=function(){return this.x+this.size/2};f.prototype.top=function(){return this.y-this.size/2};f.prototype.bottom=function(){return this.y+this.size/2};m.Da=function(d){this.type=d;this.b=d.b};var d=m.Da.prototype,q=[];d.ha=function(){var d=this.Ca;this.ij=d[0];this.tj=U(d[1]);this.Tf=d[2];this.Wl=!0;this.Uk=d[3];this.Tk=d[4];this.Sk=d[5]/100;this.Mk=d[6];this.Jj=d[7];this.Kj=d[8];this.sj=
d[9];this.qj=d[10];this.ri=d[11];this.Rj=d[12];this.Bk=d[13];this.Mg=d[14];this.Og=d[15];this.Ng=d[16];this.jf=d[17];this.timeout=d[18];this.We=0;this.Eo=1;this.Yi=this.x;this.$i=this.y;this.Zi=this.x;this.Xi=this.y;this.Gq(function(b){b.xa.set(b.Yi,b.$i,b.Zi,b.Xi);b.Mb.Sf(b.xa);b.Mh=!1;b.nm()});this.Nc||(this.qb=[]);this.b.cm(this);this.type.Rg();if(1===this.Tf)for(d=0;d<this.ij;d++)this.Tj().opacity=0;this.hi=!0};d.Wb=function(){var d={r:this.ij,sc:this.tj,st:this.Tf,s:this.Wl,isp:this.Uk,isz:this.Tk,
io:this.Sk,gr:this.Mk,xr:this.Jj,yr:this.Kj,spr:this.sj,szr:this.qj,grnd:this.ri,acc:this.Rj,g:this.Bk,lar:this.Mg,lsr:this.Og,lor:this.Ng,dm:this.jf,to:this.timeout,pcc:this.We,ft:this.hi,p:[]},b,a,c,f=d.p;b=0;for(a=this.qb.length;b<a;b++)c=this.qb[b],f.push([c.x,c.y,c.speed,c.i,c.opacity,c.qi,c.size,c.of,c.Rd]);return d};d.wc=function(d){this.ij=d.r;this.tj=d.sc;this.Tf=d.st;this.Wl=d.s;this.Uk=d.isp;this.Tk=d.isz;this.Sk=d.io;this.Mk=d.gr;this.Jj=d.xr;this.Kj=d.yr;this.sj=d.spr;this.qj=d.szr;this.ri=
d.grnd;this.Rj=d.acc;this.Bk=d.g;this.Mg=d.lar;this.Og=d.lsr;this.Ng=d.lor;this.jf=d.dm;this.timeout=d.to;this.We=d.pcc;this.hi=d.ft;q.push.apply(q,this.qb);this.qb.length=0;var b,a,c,f=d.p;d=0;for(b=f.length;d<b;d++)a=this.Tj(),c=f[d],a.x=c[0],a.y=c[1],a.speed=c[2],a.i=c[3],a.opacity=c[4],a.qi=c[5],a.size=c[6],a.of=c[7],a.Rd=c[8]};d.bh=function(){q.push.apply(q,this.qb);this.qb.length=0};d.Tj=function(){var d;q.length?(d=q.pop(),d.ja=this):d=new f(this);this.qb.push(d);d.Ta=!0;return d};d.Za=function(){var d=
this.b.Dk(this),b,a,c,f;if(0===this.Tf&&this.Wl)for(this.We+=d*this.ij,a=R(this.We),this.We-=a,b=0;b<a;b++)c=this.Tj(),c.init();this.Yi=this.x;this.$i=this.y;this.Zi=this.x;this.Xi=this.y;f=b=0;for(a=this.qb.length;b<a;b++)c=this.qb[b],this.qb[f]=c,this.b.ea=!0,1===this.Tf&&this.hi&&c.init(),c.Za(d),c.Ta?(c.left()<this.Yi&&(this.Yi=c.left()),c.right()>this.Zi&&(this.Zi=c.right()),c.top()<this.$i&&(this.$i=c.top()),c.bottom()>this.Xi&&(this.Xi=c.bottom()),f++):q.push(c);this.qb.length=f;this.ua();
this.hi=!1;1===this.Tf&&0===this.qb.length&&this.b.Od(this)};d.Gc=function(d){var b,a,c,f=this.d;b=0;for(a=this.qb.length;b<a;b++)c=this.qb[b],c.right()>=f.va&&c.bottom()>=f.wa&&c.left()<=f.Ha&&c.top()<=f.Ga&&c.Gc(d)};d.Pb=function(d){this.Eo=this.d.qc();d.Xb(this.type.N);var b,a,c,f=this.d;b=0;for(a=this.qb.length;b<a;b++)c=this.qb[b],c.right()>=f.va&&c.bottom()>=f.wa&&c.left()<=f.Ha&&c.top()<=f.Ga&&c.Pb(d)};m.j=new function(){};m.Ia=new function(){};m.Qb=new function(){}})();
function gc(f){this.b=f}
(function(){function f(){if(0===this.kk.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.Uf?b.drawImage(this.H,this.Hf,this.If,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.H,0,0,this.width,this.height);this.kk=a.toDataURL("image/png")}return this.kk}function m(){}var d=gc.prototype;d.gb=function(a){this.Aa=a;this.b=a.b};var q=d.gb.prototype;q.ha=function(){if(!this.A){var a,b,c,d,l,k,m,e,r;this.Dc=[];this.zg=
!1;a=0;for(b=this.Lb.length;a<b;a++){l=this.Lb[a];m={};m.name=l[0];m.speed=l[1];m.loop=l[2];m.Ml=l[3];m.jj=l[4];m.Fo=l[5];m.O=l[6];m.frames=[];c=0;for(d=l[7].length;c<d;c++)k=l[7][c],e={},e.yj=k[0],e.zj=k[1],e.Hf=k[2],e.If=k[3],e.width=k[4],e.height=k[5],e.duration=k[6],e.Ab=k[7],e.Bb=k[8],e.Rk=k[9],e.cj=k[10],e.Go=k[11],e.Uf=0!==e.width,e.kk="",e.sv=f,r={left:0,top:0,right:1,bottom:1},e.Ul=r,e.N=null,(r=this.b.Wr(k[0]))?e.H=r:(e.H=new Image,e.H.Rq=k[0],e.H.hk=k[1],e.H.Mq=null,this.b.rm(e.H,k[0])),
m.frames.push(e),this.Dc.push(e);this.Lb[a]=m}}};q.wp=function(){var a,b,c;a=0;for(b=this.c.length;a<b;a++)c=this.c[a],c.Wh=c.lc.N};q.Ti=function(){if(!this.A){var a,b,c;a=0;for(b=this.Dc.length;a<b;++a)c=this.Dc[a],c.H.Mq=null,c.N=null;this.zg=!1;this.wp()}};q.Ui=function(){if(!this.A&&this.c.length){var a,b,c;a=0;for(b=this.Dc.length;a<b;++a)c=this.Dc[a],c.N=this.b.n.Bf(c.H,!1,this.b.S,c.Go);this.wp()}};q.Rg=function(){if(!this.A&&!this.zg&&this.b.n){var a,b,c;a=0;for(b=this.Dc.length;a<b;++a)c=
this.Dc[a],c.N=this.b.n.Bf(c.H,!1,this.b.S,c.Go);this.zg=!0}};q.Fj=function(){if(!this.A&&!this.c.length&&this.zg){var a,b,c;a=0;for(b=this.Dc.length;a<b;++a)c=this.Dc[a],this.b.n.deleteTexture(c.N),c.N=null;this.zg=!1}};var k=[];q.fj=function(a){var b,c,d;b=k.length=0;for(c=this.Dc.length;b<c;++b)d=this.Dc[b].H,-1===k.indexOf(d)&&(a.drawImage(d,0,0),k.push(d))};d.Da=function(a){this.type=a;this.b=a.b;a=this.type.Lb[0].frames[0].cj;this.Nc?this.V.uh(a):this.V=new $a(a)};var b=d.Da.prototype;b.ha=
function(){this.visible=0===this.Ca[0];this.we=0!==this.Ca[3];1===this.type.Lb.length&&1===this.type.Lb[0].frames.length||0===this.type.Lb[0].speed||this.b.cm(this);this.pa=this.gn(this.Ca[1])||this.type.Lb[0];this.u=this.Ca[2];0>this.u&&(this.u=0);this.u>=this.pa.frames.length&&(this.u=this.pa.frames.length-1);var a=this.pa.frames[this.u];this.V.uh(a.cj);this.Ab=a.Ab;this.Bb=a.Bb;this.pg=this.pa.speed;this.Nc?this.Uc.reset():this.Uc=new Ya;this.td=this.Uc.Z;this.se=!0;this.kd=0;this.re=!0;this.dk=
this.Jm="";this.Oq=0;this.ck=-1;this.type.Rg();var b,c,d,f,k,l,e,a=0;for(b=this.type.Lb.length;a<b;a++)for(f=this.type.Lb[a],c=0,d=f.frames.length;c<d;c++)k=f.frames[c],0===k.width&&(k.width=k.H.width,k.height=k.H.height),k.Uf&&(e=k.H,l=k.Ul,l.left=k.Hf/e.width,l.top=k.If/e.height,l.right=(k.Hf+k.width)/e.width,l.bottom=(k.If+k.height)/e.height,0===k.Hf&&0===k.If&&k.width===e.width&&k.height===e.height&&(k.Uf=!1));this.lc=this.pa.frames[this.u];this.Wh=this.lc.N};b.Wb=function(){var a={a:this.pa.O,
f:this.u,cas:this.pg,fs:this.td,ar:this.kd,at:this.Uc.Z};this.se||(a.ap=this.se);this.re||(a.af=this.re);return a};b.wc=function(a){var b=this.as(a.a);b&&(this.pa=b);this.u=a.f;0>this.u&&(this.u=0);this.u>=this.pa.frames.length&&(this.u=this.pa.frames.length-1);this.pg=a.cas;this.td=a.fs;this.kd=a.ar;this.Uc.reset();this.Uc.Z=a.at;this.se=a.hasOwnProperty("ap")?a.ap:!0;this.re=a.hasOwnProperty("af")?a.af:!0;this.lc=this.pa.frames[this.u];this.Wh=this.lc.N;this.V.uh(this.lc.cj);this.Ab=this.lc.Ab;
this.Bb=this.lc.Bb};b.Wj=function(a){this.u=a?0:this.pa.frames.length-1;this.se=!1;this.Jm=this.pa.name;this.b.trigger(gc.prototype.j.Up,this);this.b.trigger(gc.prototype.j.Tp,this);this.kd=0};b.uv=function(){return this.Uc.Z};b.Za=function(){this.Uc.add(this.b.Dk(this));this.dk.length&&this.Wq();0<=this.ck&&this.Xq();var a=this.Uc.Z,b=this.pa,c=b.frames[this.u],d=c.duration/this.pg;this.se&&a>=this.td+d&&(this.re?this.u++:this.u--,this.td+=d,this.u>=b.frames.length&&(b.Fo?(this.re=!1,this.u=b.frames.length-
2):b.loop?this.u=b.jj:(this.kd++,this.kd>=b.Ml?this.Wj(!1):this.u=b.jj)),0>this.u&&(b.Fo?(this.u=1,this.re=!0,b.loop||(this.kd++,this.kd>=b.Ml&&this.Wj(!0))):b.loop?this.u=b.jj:(this.kd++,this.kd>=b.Ml?this.Wj(!0):this.u=b.jj)),0>this.u?this.u=0:this.u>=b.frames.length&&(this.u=b.frames.length-1),a>this.td+b.frames[this.u].duration/this.pg&&(this.td=a),a=b.frames[this.u],this.df(c,a),this.b.ea=!0)};b.gn=function(a){var b,c,d;b=0;for(c=this.type.Lb.length;b<c;b++)if(d=this.type.Lb[b],fb(d.name,a))return d;
return null};b.as=function(a){var b,c,d;b=0;for(c=this.type.Lb.length;b<c;b++)if(d=this.type.Lb[b],d.O===a)return d;return null};b.Wq=function(){var a=this.pa.frames[this.u],b=this.gn(this.dk);this.dk="";!b||fb(b.name,this.pa.name)&&this.se||(this.pa=b,this.pg=b.speed,0>this.u&&(this.u=0),this.u>=this.pa.frames.length&&(this.u=this.pa.frames.length-1),1===this.Oq&&(this.u=0),this.se=!0,this.td=this.Uc.Z,this.re=!0,this.df(a,this.pa.frames[this.u]),this.b.ea=!0)};b.Xq=function(){var a=this.pa.frames[this.u],
b=this.u;this.u=R(this.ck);0>this.u&&(this.u=0);this.u>=this.pa.frames.length&&(this.u=this.pa.frames.length-1);b!==this.u&&(this.df(a,this.pa.frames[this.u]),this.td=this.Uc.Z,this.b.ea=!0);this.ck=-1};b.df=function(a,b){var c=a.width,d=a.height,f=b.width,k=b.height;c!=f&&(this.width*=f/c);d!=k&&(this.height*=k/d);this.Ab=b.Ab;this.Bb=b.Bb;this.V.uh(b.cj);this.ua();this.lc=b;this.Wh=b.N;c=0;for(d=this.F.length;c<d;c++)f=this.F[c],f.lt&&f.lt(a,b);this.b.trigger(gc.prototype.j.df,this)};b.Gc=function(a){a.globalAlpha=
this.opacity;var b=this.lc,c=b.Uf,d=b.H,f=this.x,k=this.y,l=this.width,e=this.height;if(0===this.i&&0<=l&&0<=e)f-=this.Ab*l,k-=this.Bb*e,this.b.bd&&(f=Math.round(f),k=Math.round(k)),c?a.drawImage(d,b.Hf,b.If,b.width,b.height,f,k,l,e):a.drawImage(d,f,k,l,e);else{this.b.bd&&(f=Math.round(f),k=Math.round(k));a.save();var m=0<l?1:-1,t=0<e?1:-1;a.translate(f,k);1===m&&1===t||a.scale(m,t);a.rotate(this.i*m*t);f=0-this.Ab*ma(l);k=0-this.Bb*ma(e);c?a.drawImage(d,b.Hf,b.If,b.width,b.height,f,k,ma(l),ma(e)):
a.drawImage(d,f,k,ma(l),ma(e));a.restore()}};b.Pb=function(a){a.Xb(this.Wh);a.Ye(this.opacity);var b=this.lc,c=this.Mb;if(this.b.bd){var d=Math.round(this.x)-this.x,f=Math.round(this.y)-this.y;b.Uf?a.Fd(c.Ra+d,c.Sa+f,c.Hb+d,c.Ib+f,c.wb+d,c.xb+f,c.tb+d,c.ub+f,b.Ul):a.ph(c.Ra+d,c.Sa+f,c.Hb+d,c.Ib+f,c.wb+d,c.xb+f,c.tb+d,c.ub+f)}else b.Uf?a.Fd(c.Ra,c.Sa,c.Hb,c.Ib,c.wb,c.xb,c.tb,c.ub,b.Ul):a.ph(c.Ra,c.Sa,c.Hb,c.Ib,c.wb,c.xb,c.tb,c.ub)};b.gs=function(a){var b=this.lc,c,d;c=0;for(d=b.Rk.length;c<d;c++)if(fb(a,
b.Rk[c][0]))return c;return-1};b.Gk=function(a,b){var c=this.lc,d=c.Rk,f;f=P(a)?this.gs(a):a-1;f=R(f);if(0>f||f>=d.length)return b?this.x:this.y;var k=(d[f][1]-c.Ab)*this.width,d=d[f][2],d=(d-c.Bb)*this.height,c=Math.cos(this.i);f=Math.sin(this.i);var l=k*c-d*f,d=d*c+k*f,k=l+this.x,d=d+this.y;return b?k:d};var a=null,c=new ca,w=!1,r=[],l=new T(0,0,0,0);q.finish=function(b){if(w){if(b){var d=this.b.mb().Ob.Kc;b=a.ba();var f=c.Sc(),k,l;if(b.fa){b.fa=!1;b.c.length=f.length;k=0;for(l=f.length;k<l;k++)b.c[k]=
f[k];if(d)for(k=b.P.length=0,l=a.c.length;k<l;k++)f=a.c[k],c.contains(f)||b.P.push(f)}else if(d)for(d=b.c.length,b.c.length=d+f.length,k=0,l=f.length;k<l;k++)b.c[d+k]=f[k],Ba(b.P,f[k]);else ya(b.c,f);a.ld()}c.clear();w=!1}};m.prototype.Mp=function(b){if(b){var d=!1,f,k,m,q=this.b.li(),n=q.type,q=q.qf;f=b.ba();k=this.b.mb().Ob.Kc;var e;f.fa?(this.la(),l.mg(this.xa),l.offset(0,0),this.b.cs(this.d,b,l,r),e=r):e=k?f.P:f.c;a=b;w=n!==b&&!q;f=0;for(k=e.length;f<k;f++)if(m=e[f],this.b.Xt(this,m)){d=!0;if(q)break;
n!==b&&c.add(m)}r.length=0;b=d}else b=!1;return b};m.prototype.Tp=function(a){return fb(this.Jm,a)};m.prototype.Up=function(){return!0};m.prototype.df=function(){return!0};d.j=new m;d.Ia=new function(){};d.Qb=new function(){}})();function mc(f){this.b=f}
(function(){var f=mc.prototype;f.gb=function(d){this.Aa=d;this.b=d.b};var m=f.gb.prototype;m.ha=function(){this.A||(this.H=new Image,this.H.hk=this.zj,this.b.rm(this.H,this.yj),this.N=this.pattern=null)};m.Ti=function(){this.A||(this.N=null)};m.Ui=function(){if(!this.A&&this.c.length){this.N||(this.N=this.b.n.Bf(this.H,!0,this.b.S,this.Ah));var d,f;d=0;for(f=this.c.length;d<f;d++)this.c[d].N=this.N}};m.Rg=function(){this.A||this.N||!this.b.n||(this.N=this.b.n.Bf(this.H,!0,this.b.S,this.Ah))};m.Fj=
function(){this.A||this.c.length||!this.N||(this.b.n.deleteTexture(this.N),this.N=null)};m.fj=function(d){d.drawImage(this.H,0,0)};f.Da=function(d){this.type=d;this.b=d.b};m=f.Da.prototype;m.ha=function(){this.visible=0===this.Ca[0];this.qh=new T(0,0,0,0);this.un=!1;this.H=this.type.H;this.b.n?(this.type.Rg(),this.N=this.type.N):(this.type.pattern||(this.type.pattern=this.b.aa.createPattern(this.type.H,"repeat")),this.pattern=this.type.pattern)};m.jd=function(){this.un=!1;this.H=this.type.H};m.bh=
function(){this.b.n&&this.un&&this.N&&(this.b.n.deleteTexture(this.N),this.N=null)};m.Gc=function(d){d.globalAlpha=this.opacity;d.save();d.fillStyle=this.pattern;var f=this.x,k=this.y;this.b.bd&&(f=Math.round(f),k=Math.round(k));var b=-(this.Ab*this.width),a=-(this.Bb*this.height),c=b%this.H.width,m=a%this.H.height;0>c&&(c+=this.H.width);0>m&&(m+=this.H.height);d.translate(f,k);d.rotate(this.i);d.translate(c,m);d.fillRect(b-c,a-m,this.width,this.height);d.restore()};m.Pb=function(d){d.Xb(this.N);
d.Ye(this.opacity);var f=this.qh;f.right=this.width/this.H.width;f.bottom=this.height/this.H.height;var k=this.Mb;if(this.b.bd){var b=Math.round(this.x)-this.x,a=Math.round(this.y)-this.y;d.Fd(k.Ra+b,k.Sa+a,k.Hb+b,k.Ib+a,k.wb+b,k.xb+a,k.tb+b,k.ub+a,f)}else d.Fd(k.Ra,k.Sa,k.Hb,k.Ib,k.wb,k.xb,k.tb,k.ub,f)};f.j=new function(){};f.Ia=new function(){};f.Qb=new function(){}})();function Z(f){this.b=f}
(function(){function f(a){r=a.x;l=a.y;h=a.z}function m(a){s=a.x;g=a.y;p=a.z}function d(a,b,c,d){var e;e=v.length?v.pop():new q;e.init(a,b,c,d);return e}function q(){this.wh=this.id=this.y=this.x=this.wj=this.vj=this.fl=this.time=this.Yl=0;this.Ch=this.Dj=!1}function k(){}function b(){}var a=Z.prototype;a.gb=function(a){this.Aa=a;this.b=a.b};a.gb.prototype.ha=function(){};a.Da=function(a){this.type=a;this.b=a.b;this.touches=[];this.ql=!1};var c=a.Da.prototype,w={left:0,top:0};c.tg=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 r=0,l=0,h=0,s=0,g=0,p=0,v=[];q.prototype.init=function(a,b,c,d){var e=V();this.Yl=this.fl=this.time=e;this.vj=a;this.wj=b;this.x=a;this.y=b;this.id=c;this.wh=d;this.Ch=this.Dj=!1};q.prototype.update=function(a,b,c){this.fl=this.time;this.time=a;this.x=b;this.y=c;!this.Ch&&15<=Ra(this.vj,this.wj,this.x,this.y)&&(this.Ch=!0)};q.prototype.Xs=function(a,b){!this.Dj&&500<=V()-this.Yl&&!this.Ch&&15>Ra(this.vj,this.wj,
this.x,this.y)&&(this.Dj=!0,a.fd=this.wh,a.$f=this.id,a.nf=b,a.b.trigger(Z.prototype.j.fq,a),a.od=this.x,a.pd=this.y,a.b.trigger(Z.prototype.j.gq,a),a.nf=0)};var B=-1E3,n=-1E3,e=-1E4;q.prototype.fo=function(a,b){if(!this.Dj){var c=V();333>=c-this.Yl&&!this.Ch&&15>Ra(this.vj,this.wj,this.x,this.y)&&(a.fd=this.wh,a.$f=this.id,a.nf=b,666>=c-e&&25>Ra(B,n,this.x,this.y)?(a.b.trigger(Z.prototype.j.aq,a),a.od=this.x,a.pd=this.y,a.b.trigger(Z.prototype.j.bq,a),n=B=-1E3,e=-1E4):(a.b.trigger(Z.prototype.j.oq,
a),a.od=this.x,a.pd=this.y,a.b.trigger(Z.prototype.j.pq,a),B=this.x,n=this.y,e=c),a.nf=0)}};c.ha=function(){this.Qs=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.nf=this.$f=this.fd=this.pd=this.od=this.Fm=this.Em=this.Dm=this.Cq=this.Bq=this.Aq=this.kh=this.jh=this.ih=0;this.fu=0!==this.Ca[0];var a=0<this.b.lb?document:this.b.canvas,b=document;this.b.bb?b=a=window.Canvas:this.b.gc&&(b=a=window);var c=this;window.navigator.pointerEnabled?(a.addEventListener("pointerdown",function(a){c.hh(a)},
!1),a.addEventListener("pointermove",function(a){c.gh(a)},!1),b.addEventListener("pointerup",function(a){c.Ed(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.Ed(a,!0)},!1),this.b.canvas&&(this.b.canvas.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),document.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),this.b.canvas.addEventListener("gesturehold",function(a){a.preventDefault()},!1),document.addEventListener("gesturehold",function(a){a.preventDefault()},
!1))):window.navigator.msPointerEnabled?(a.addEventListener("MSPointerDown",function(a){c.hh(a)},!1),a.addEventListener("MSPointerMove",function(a){c.gh(a)},!1),b.addEventListener("MSPointerUp",function(a){c.Ed(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.Ed(a,!0)},!1),this.b.canvas&&(this.b.canvas.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),document.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1))):(a.addEventListener("touchstart",function(a){c.Wi(a)},
!1),a.addEventListener("touchmove",function(a){c.Vi(a)},!1),b.addEventListener("touchend",function(a){c.Jf(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.Jf(a,!0)},!1));if(this.Qs){var d=function(a){a=a.reading;c.Dm=a.accelerationX;c.Em=a.accelerationY;c.Fm=a.accelerationZ},e=function(a){a=a.reading;c.ih=a.yawDegrees;c.jh=a.pitchDegrees;c.kh=a.rollDegrees},g=Windows.Devices.Sensors.Accelerometer.getDefault();g&&(g.reportInterval=Math.max(g.minimumReportInterval,16),g.addEventListener("readingchanged",
d));var h=Windows.Devices.Sensors.Inclinometer.getDefault();h&&(h.reportInterval=Math.max(h.minimumReportInterval,16),h.addEventListener("readingchanged",e));document.addEventListener("visibilitychange",function(){document.hidden||document.msHidden?(g&&g.removeEventListener("readingchanged",d),h&&h.removeEventListener("readingchanged",e)):(g&&g.addEventListener("readingchanged",d),h&&h.addEventListener("readingchanged",e))},!1)}else window.addEventListener("deviceorientation",function(a){c.ih=a.alpha||
0;c.jh=a.beta||0;c.kh=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.Aq=a.accelerationIncludingGravity.x||0,c.Bq=a.accelerationIncludingGravity.y||0,c.Cq=a.accelerationIncludingGravity.z||0);a.acceleration&&(c.Dm=a.acceleration.x||0,c.Em=a.acceleration.y||0,c.Fm=a.acceleration.z||0)},!1);this.fu&&!this.b.da&&(jQuery(document).mousemove(function(a){c.eh(a)}),jQuery(document).mousedown(function(a){c.dh(a)}),jQuery(document).mouseup(function(a){c.fh(a)}));
this.b.rf&&!this.b.bb&&AppMobi.accelerometer.watchAcceleration(f,{frequency:40,adjustForRotation:!0});this.b.uc&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(m,null,{frequency:40});this.b.Yt(this)};c.gh=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var b=this.tg(a.pointerId),c=V();if(0<=b){var d=this.b.da?w:jQuery(this.b.canvas).offset(),b=this.touches[b];2>c-b.time||
b.update(c,a.pageX-d.left,a.pageY-d.top)}}};c.hh=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&gb(a)&&a.preventDefault();var b=this.b.da?w:jQuery(this.b.canvas).offset(),c=a.pageX-b.left,b=a.pageY-b.top;V();this.fd=this.touches.length;this.$f=a.pointerId;this.touches.push(d(c,b,a.pointerId,this.fd));this.b.ga=!0;this.b.trigger(Z.prototype.j.zm,this);this.b.trigger(Z.prototype.j.Am,this);this.od=c;this.pd=b;this.b.trigger(Z.prototype.j.Qj,this);this.b.ga=
!1}};c.Ed=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&gb(a)&&a.preventDefault();var c=this.tg(a.pointerId);this.fd=0<=c?this.touches[c].wh:-1;this.$f=0<=c?this.touches[c].id:-1;this.b.ga=!0;this.b.trigger(Z.prototype.j.ym,this);this.b.trigger(Z.prototype.j.Pj,this);0<=c&&(b||this.touches[c].fo(this,c),100>v.length&&v.push(this.touches[c]),this.touches.splice(c,1));this.b.ga=!1}};c.Vi=function(a){a.preventDefault&&a.preventDefault();var b=V(),
c,d,e,f;c=0;for(d=a.changedTouches.length;c<d;c++)if(e=a.changedTouches[c],f=this.tg(e.identifier),0<=f){var g=this.b.da?w:jQuery(this.b.canvas).offset();f=this.touches[f];2>b-f.time||f.update(b,e.pageX-g.left,e.pageY-g.top)}};c.Wi=function(a){a.preventDefault&&gb(a)&&a.preventDefault();var b=this.b.da?w:jQuery(this.b.canvas).offset();V();this.b.ga=!0;var c,e,f,g;c=0;for(e=a.changedTouches.length;c<e;c++)if(f=a.changedTouches[c],g=this.tg(f.identifier),-1===g){g=f.pageX-b.left;var h=f.pageY-b.top;
this.fd=this.touches.length;this.$f=f.identifier;this.touches.push(d(g,h,f.identifier,this.fd));this.b.trigger(Z.prototype.j.zm,this);this.b.trigger(Z.prototype.j.Am,this);this.od=g;this.pd=h;this.b.trigger(Z.prototype.j.Qj,this)}this.b.ga=!1};c.Jf=function(a,b){a.preventDefault&&gb(a)&&a.preventDefault();this.b.ga=!0;var c,d,e;c=0;for(d=a.changedTouches.length;c<d;c++)e=a.changedTouches[c],e=this.tg(e.identifier),0<=e&&(this.fd=this.touches[e].wh,this.$f=this.touches[e].id,this.b.trigger(Z.prototype.j.ym,
this),this.b.trigger(Z.prototype.j.Pj,this),b||this.touches[e].fo(this,e),100>v.length&&v.push(this.touches[e]),this.touches.splice(e,1));this.b.ga=!1};c.pv=function(){return this.b.rf&&0===this.ih&&0!==h?90*h:this.b.uc&&0===this.ih&&0!==p?90*p:this.ih};c.qv=function(){return this.b.rf&&0===this.jh&&0!==l?-90*l:this.b.uc&&0===this.jh&&0!==g?90*g:this.jh};c.tv=function(){return this.b.rf&&0===this.kh&&0!==r?90*r:this.b.uc&&0===this.kh&&0!==s?90*s:this.kh};c.dh=function(a){a.preventDefault&&this.b.pf&&
!this.b.yd&&a.preventDefault();this.Wi({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.ql=!0};c.eh=function(a){this.ql&&this.Vi({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};c.fh=function(a){a.preventDefault&&this.b.pf&&!this.b.yd&&a.preventDefault();this.b.pf=!0;this.Jf({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.ql=!1};c.am=function(){var a,b,c,d=V();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=d-50&&(c.fl=d),c.Xs(this,
a)};k.prototype.Am=function(){return!0};k.prototype.Pj=function(){return!0};k.prototype.Qj=function(a){return a?this.b.Wf(a,this.od,this.pd,!1):!1};var u=[];k.prototype.Np=function(a){if(!a)return!1;var b=a.ba(),c=b.pc(),d,e,f,g,h,k;f=0;for(g=c.length;f<g;f++){var l=c[f];l.la();h=0;for(k=this.touches.length;h<k;h++)if(e=this.touches[h],d=l.d.ma(e.x,e.y,!0),e=l.d.ma(e.x,e.y,!1),l.$a(d,e)){u.push(l);break}}return u.length?(b.fa=!1,ya(b.c,u),a.ld(),u.length=0,!0):!1};k.prototype.zm=function(a){a=Math.floor(a);
return a===this.fd};k.prototype.ym=function(a){a=Math.floor(a);return a===this.fd};k.prototype.fq=function(){return!0};k.prototype.oq=function(){return!0};k.prototype.aq=function(){return!0};k.prototype.gq=function(a){return a?this.b.Wf(a,this.od,this.pd,!1):!1};k.prototype.pq=function(a){return a?this.b.Wf(a,this.od,this.pd,!1):!1};k.prototype.bq=function(a){return a?this.b.Wf(a,this.od,this.pd,!1):!1};a.j=new k;b.prototype.Bm=function(a,b){var c=this.nf;if(0>c||c>=this.touches.length)a.q(0);else{var d,
e,f,g,h;ga(b)?(d=this.b.ud(0),e=d.scale,f=d.kb,g=d.Db,h=d.i,d.scale=1,d.kb=1,d.Db=1,d.i=0,a.q(d.ma(this.touches[c].x,this.touches[c].y,!0)),d.scale=e,d.kb=f,d.Db=g,d.i=h):(d=ja(b)?this.b.ud(b):this.b.ug(b))?a.q(d.ma(this.touches[c].x,this.touches[c].y,!0)):a.q(0)}};b.prototype.Cm=function(a,b){var c=this.nf;if(0>c||c>=this.touches.length)a.q(0);else{var d,e,f,g,h;ga(b)?(d=this.b.ud(0),e=d.scale,f=d.kb,g=d.Eb,h=d.i,d.scale=1,d.kb=1,d.Eb=1,d.i=0,a.q(d.ma(this.touches[c].x,this.touches[c].y,!1)),d.scale=
e,d.kb=f,d.Eb=g,d.i=h):(d=ja(b)?this.b.ud(b):this.b.ug(b))?a.q(d.ma(this.touches[c].x,this.touches[c].y,!1)):a.q(0)}};a.Qb=new b})();
function nc(f){this.b=f;var m=this;this.b.da||(jQuery(document).mousemove(function(d){m.eh(d)}),jQuery(document).mousedown(function(d){m.dh(d)}),jQuery(document).mouseup(function(d){m.fh(d)}));f=0<this.b.lb?document:this.b.canvas;this.b.bb?f=window.Canvas:this.b.gc&&(f=window);window.navigator.pointerEnabled?(f.addEventListener("pointerdown",function(d){m.hh(d)},!1),f.addEventListener("pointermove",function(d){m.gh(d)},!1),f.addEventListener("pointerup",function(d){m.Ed(d)},!1),f.addEventListener("pointercancel",
function(d){m.Ed(d)},!1)):window.navigator.msPointerEnabled?(f.addEventListener("MSPointerDown",function(d){m.hh(d)},!1),f.addEventListener("MSPointerMove",function(d){m.gh(d)},!1),f.addEventListener("MSPointerUp",function(d){m.Ed(d)},!1),f.addEventListener("MSPointerCancel",function(d){m.Ed(d)},!1)):(f.addEventListener("touchstart",function(d){m.Wi(d)},!1),f.addEventListener("touchmove",function(d){m.Vi(d)},!1),f.addEventListener("touchend",function(d){m.Jf(d)},!1),f.addEventListener("touchcancel",
function(d){m.Jf(d)},!1))}
(function(){function f(b){var a,c;a=0;for(c=b.F.length;a<c;a++)if(b.F[a]instanceof d.Da)return b.F[a];return null}function m(){}var d=nc.prototype,q={left:0,top:0};d.dh=function(b){1===b.which&&this.xl("leftmouse",b.pageX,b.pageY)};d.eh=function(b){1===b.which&&this.yl("leftmouse",b.pageX,b.pageY)};d.fh=function(b){1===b.which&&this.zl("leftmouse")};d.Wi=function(b){b.preventDefault&&gb(b)&&b.preventDefault();var a,c,d,f;a=0;for(c=b.changedTouches.length;a<c;a++)d=b.changedTouches[a],f=d.identifier,
this.xl(f?f.toString():"<none>",d.pageX,d.pageY)};d.Vi=function(b){b.preventDefault&&b.preventDefault();var a,c,d,f;a=0;for(c=b.changedTouches.length;a<c;a++)d=b.changedTouches[a],f=d.identifier,this.yl(f?f.toString():"<none>",d.pageX,d.pageY)};d.Jf=function(b){b.preventDefault&&gb(b)&&b.preventDefault();var a,c,d;a=0;for(c=b.changedTouches.length;a<c;a++)d=b.changedTouches[a],d=d.identifier,this.zl(d?d.toString():"<none>")};d.hh=function(b){b.pointerType!==b.MSPOINTER_TYPE_MOUSE&&"mouse"!==b.pointerType&&
(b.preventDefault&&gb(b)&&b.preventDefault(),this.xl(b.pointerId.toString(),b.pageX,b.pageY))};d.gh=function(b){b.pointerType!==b.MSPOINTER_TYPE_MOUSE&&"mouse"!==b.pointerType&&(b.preventDefault&&b.preventDefault(),this.yl(b.pointerId.toString(),b.pageX,b.pageY))};d.Ed=function(b){b.pointerType!==b.MSPOINTER_TYPE_MOUSE&&"mouse"!==b.pointerType&&(b.preventDefault&&gb(b)&&b.preventDefault(),this.zl(b.pointerId.toString()))};d.xl=function(b,a,c){var d=this.b.da?q:jQuery(this.b.canvas).offset();a-=d.left;
c-=d.top;var k,l,h,m,d=this.Gf.Sc(),g,p,v,B=null;g=0;for(p=d.length;g<p;g++)if(v=d[g],k=f(v),k.enabled&&!k.Be&&(k=v.d.ma(a,c,!0),l=v.d.ma(a,c,!1),v.la(),v.$a(k,l)))B?v.d.index>B.d.index?(B=v,h=k,m=l):v.d.index===B.d.index&&v.rc()>B.rc()&&(B=v,h=k,m=l):(B=v,h=k,m=l);B&&f(B).gt(b,h,m)};d.yl=function(b,a,c){var d=this.b.da?q:jQuery(this.b.canvas).offset();a-=d.left;c-=d.top;var k,l=this.Gf.Sc(),h,m,g;h=0;for(m=l.length;h<m;h++)k=l[h],g=f(k),!g.enabled||!g.Be||g.Be&&g.ok!==b||(d=k.d.ma(a,c,!0),k=k.d.ma(a,
c,!1),g.kt(d,k))};d.zl=function(b){var a=this.Gf.Sc(),c,d,k;c=0;for(d=a.length;c<d;c++)k=a[c],k=f(k),k.Be&&k.ok===b&&k.nt()};d.gb=function(b){this.behavior=b;this.b=b.b};d.gb.prototype.ha=function(){};d.Da=function(b,a){this.type=b;this.behavior=b.behavior;this.Cb=a;this.b=b.b};var k=d.Da.prototype;k.ha=function(){this.Be=!1;this.Ym=this.Xm=0;this.ok="<none>";this.Xj=this.Ca[0];this.enabled=0!==this.Ca[1]};k.Wb=function(){return{enabled:this.enabled}};k.wc=function(b){this.enabled=b.enabled;this.Be=
!1};k.gt=function(b,a,c){this.Xm=a-this.Cb.x;this.Ym=c-this.Cb.y;this.Be=!0;this.ok=b;this.b.ga=!0;this.b.trigger(nc.prototype.j.cq,this.Cb);this.b.ga=!1};k.kt=function(b,a){var c=b-this.Xm,d=a-this.Ym;if(0===this.Xj){if(this.Cb.x!==c||this.Cb.y!==d)this.Cb.x=c,this.Cb.y=d,this.Cb.ua()}else 1===this.Xj?this.Cb.x!==c&&(this.Cb.x=c,this.Cb.ua()):2===this.Xj&&this.Cb.y!==d&&(this.Cb.y=d,this.Cb.ua())};k.nt=function(){this.Be=!1;this.b.ga=!0;this.b.trigger(nc.prototype.j.dq,this.Cb);this.b.ga=!1};k.Za=
function(){};m.prototype.cq=function(){return!0};m.prototype.dq=function(){return!0};d.j=new m;d.Ia=new function(){};d.Qb=new function(){}})();
function fc(){return[hc,ic,jc,kc,gc,mc,Z,nc,jc.prototype.j.Lp,gc.prototype.Ia.uq,jc.prototype.j.Nj,Z.prototype.j.Np,Y.prototype.Ia.vq,jc.prototype.j.Jp,Y.prototype.j.Gp,Y.prototype.Ia.tq,Y.prototype.Ia.Sp,hc.prototype.Ia.Play,Y.prototype.Ia.yq,Z.prototype.j.Pj,Y.prototype.j.wm,Y.prototype.j.xq,gc.prototype.j.Mp,Y.prototype.Ia.rq,Y.prototype.Ia.sq,Y.prototype.Ia.Rp,gc.prototype.Ia.wq,gc.prototype.j.Op,Z.prototype.j.Qj]};
