// Generated by Construct 2, the HTML5 game and app creator :: https://www.construct.net
'use strict';var aa,ba,ca,da,fa,ga,ha,ja,z,la,ma,na,pa,qa,sa,ta,ua,va,wa,xa,ya,za,Ba,A,Da,Fa,Ha,Ia,Ja,G,Ka,La,Ma,Na,Oa,Pa,Ra,Sa,Ta,Ua,Va,Wa,Xa,Ya,Za,$a,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,pb,qb,rb,sb,tb,ub,vb,wb,xb,yb,zb,Ab,Bb,Cb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,Xb,Yb,Zb,$b,ac,bc,cc,dc,ec,fc,gc,hc,ic,jc={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(h){return h.__proto__}:function(h){return h.constructor.prototype});
(function(){function h(a,c,e,b){this.set(a,c,e,b)}function r(){this.ab=this.$a=this.cb=this.bb=this.ob=this.nb=this.Ga=this.Fa=0}function p(a,c,b,k){a<c?b<k?(e=a<b?a:b,u=c>k?c:k):(e=a<k?a:k,u=c>b?c:b):b<k?(e=c<b?c:b,u=a>k?a:k):(e=c<k?c:k,u=a>b?a:b)}function t(){this.items=this.Fd=null;this.Nh=0;E&&(this.Fd=new Set);this.Ug=[];this.ue=!0}function v(a){Ea[oa++]=a}function n(){this.Z=this.Vk=this.y=this.Il=0}function g(a){this.lb=[];this.gj=this.ij=this.jj=this.hj=0;this.oi(a)}function b(a,c){this.Ml=
a;this.Ll=c;this.cells={}}function d(a,c){this.Ml=a;this.Ll=c;this.cells={}}function l(a,c,e){var b;return K.length?(b=K.pop(),b.rm=a,b.x=c,b.y=e,b):new ba(a,c,e)}function c(a,c,e){this.rm=a;this.x=c;this.y=e;this.sb=new ca}function f(a,c,e){var b;return L.length?(b=L.pop(),b.rm=a,b.x=c,b.y=e,b):new da(a,c,e)}function a(a,c,e){this.rm=a;this.x=c;this.y=e;this.sb=[];this.mg=!0;this.Cd=new ca;this.eh=!1}function k(a,c){return a.pd-c.pd}fa=function(a){window.console&&window.console.log&&window.console.log(a)};
ga=function(a){window.console&&window.console.error&&window.console.error(a)};aa=function(a){return a};ha=function(a){return"undefined"===typeof a};ja=function(a){return"number"===typeof a};z=function(a){return"string"===typeof a};la=function(a){return 0<a&&0===(a-1&a)};ma=function(a){--a;for(var c=1;32>c;c<<=1)a=a|a>>c;return a+1};na=function(a){return 0>a?-a:a};pa=function(a,c){return a>c?a:c};qa=function(a,c){return a<c?a:c};sa=Math.PI;ta=function(a){return 0<=a?a|0:(a|0)-1};ua=function(a){var c=
a|0;return c===a?c:c+1};va=function(a,c,e,b,k,f,q,x){var B,u,d,m;a<e?(u=a,B=e):(u=e,B=a);k<q?(m=k,d=q):(m=q,d=k);if(B<m||u>d)return!1;c<b?(u=c,B=b):(u=b,B=c);f<x?(m=f,d=x):(m=x,d=f);if(B<m||u>d)return!1;B=k-a+q-e;u=f-c+x-b;a=e-a;c=b-c;k=q-k;f=x-f;x=na(c*k-f*a);return na(k*u-f*B)>x?!1:na(a*u-c*B)<=x};h.prototype.set=function(a,c,e,b){this.left=a;this.top=c;this.right=e;this.bottom=b};h.prototype.Vf=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};h.prototype.width=
function(){return this.right-this.left};h.prototype.height=function(){return this.bottom-this.top};h.prototype.offset=function(a,c){this.left+=a;this.top+=c;this.right+=a;this.bottom+=c;return this};h.prototype.normalize=function(){var a=0;this.left>this.right&&(a=this.left,this.left=this.right,this.right=a);this.top>this.bottom&&(a=this.top,this.top=this.bottom,this.bottom=a)};h.prototype.Ww=function(a){return!(a.right<this.left||a.bottom<this.top||a.left>this.right||a.top>this.bottom)};h.prototype.Xw=
function(a,c,e){return!(a.right+c<this.left||a.bottom+e<this.top||a.left+c>this.right||a.top+e>this.bottom)};h.prototype.Ib=function(a,c){return a>=this.left&&a<=this.right&&c>=this.top&&c<=this.bottom};h.prototype.oh=function(a){return this.left===a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};wa=h;r.prototype.ni=function(a){this.Fa=a.left;this.Ga=a.top;this.nb=a.right;this.ob=a.top;this.bb=a.right;this.cb=a.bottom;this.$a=a.left;this.ab=a.bottom};r.prototype.Br=function(a,
c){if(0===c)this.ni(a);else{var e=Math.sin(c),b=Math.cos(c),k=a.left*e,f=a.top*e,q=a.right*e,e=a.bottom*e,x=a.left*b,B=a.top*b,u=a.right*b,b=a.bottom*b;this.Fa=x-f;this.Ga=B+k;this.nb=u-f;this.ob=B+q;this.bb=u-e;this.cb=b+q;this.$a=x-e;this.ab=b+k}};r.prototype.offset=function(a,c){this.Fa+=a;this.Ga+=c;this.nb+=a;this.ob+=c;this.bb+=a;this.cb+=c;this.$a+=a;this.ab+=c;return this};var e=0,u=0;r.prototype.To=function(a){p(this.Fa,this.nb,this.bb,this.$a);a.left=e;a.right=u;p(this.Ga,this.ob,this.cb,
this.ab);a.top=e;a.bottom=u};r.prototype.Ib=function(a,c){var e=this.Fa,b=this.Ga,k=this.nb-e,f=this.ob-b,q=this.bb-e,x=this.cb-b,B=a-e,u=c-b,d=k*k+f*f,m=k*q+f*x,f=k*B+f*u,w=q*q+x*x,l=q*B+x*u,h=1/(d*w-m*m),k=(w*f-m*l)*h,d=(d*l-m*f)*h;if(0<=k&&0<d&&1>k+d)return!0;k=this.$a-e;f=this.ab-b;d=k*k+f*f;m=k*q+f*x;f=k*B+f*u;h=1/(d*w-m*m);k=(w*f-m*l)*h;d=(d*l-m*f)*h;return 0<=k&&0<d&&1>k+d};r.prototype.pc=function(a,c){if(c)switch(a){case 0:return this.Fa;case 1:return this.nb;case 2:return this.bb;case 3:return this.$a;
case 4:return this.Fa;default:return this.Fa}else switch(a){case 0:return this.Ga;case 1:return this.ob;case 2:return this.cb;case 3:return this.ab;case 4:return this.Ga;default:return this.Ga}};r.prototype.Cq=function(){return(this.Fa+this.nb+this.bb+this.$a)/4};r.prototype.Dq=function(){return(this.Ga+this.ob+this.cb+this.ab)/4};r.prototype.Kp=function(a){var c=a.Cq(),e=a.Dq();if(this.Ib(c,e))return!0;c=this.Cq();e=this.Dq();if(a.Ib(c,e))return!0;var b,k,f,q,x,B,d,u;for(d=0;4>d;d++)for(u=0;4>u;u++)if(c=
this.pc(d,!0),e=this.pc(d,!1),b=this.pc(d+1,!0),k=this.pc(d+1,!1),f=a.pc(u,!0),q=a.pc(u,!1),x=a.pc(u+1,!0),B=a.pc(u+1,!1),va(c,e,b,k,f,q,x,B))return!0;return!1};xa=r;ya=function(a,c){for(var e in c)c.hasOwnProperty(e)&&(a[e]=c[e]);return a};za=function(a,c){var e,b;c=ta(c);if(!(0>c||c>=a.length)){e=c;for(b=a.length-1;e<b;e++)a[e]=a[e+1];Ba(a,b)}};Ba=function(a,c){a.length=c};A=function(a){Ba(a,0)};Da=function(a,c){A(a);var e,b;e=0;for(b=c.length;e<b;++e)a[e]=c[e]};Fa=function(a,c){a.push.apply(a,
c)};Ha=function(a,c){var e,b;e=0;for(b=a.length;e<b;++e)if(a[e]===c)return e;return-1};Ia=function(a,c){var e=Ha(a,c);-1!==e&&za(a,e)};Ja=function(a,c,e){return a<c?c:a>e?e:a};G=function(a){return a/(180/sa)};Ka=function(a){return 180/sa*a};La=function(a){a%=360;0>a&&(a+=360);return a};Ma=function(a){a%=2*sa;0>a&&(a+=2*sa);return a};Na=function(a){return La(Ka(a))};Oa=function(a){return Ma(G(a))};Pa=function(a,c,e,b){return Math.atan2(b-c,e-a)};Ra=function(a,c){if(a===c)return 0;var e=Math.sin(a),
b=Math.cos(a),k=Math.sin(c),f=Math.cos(c),e=e*k+b*f;return 1<=e?0:-1>=e?sa:Math.acos(e)};Sa=function(a,c,e){var b=Math.sin(a),k=Math.cos(a),f=Math.sin(c),q=Math.cos(c);return Math.acos(b*f+k*q)>e?0<k*f-b*q?Ma(a+e):Ma(a-e):Ma(c)};Ta=function(a,c){var e=Math.sin(a),b=Math.cos(a),k=Math.sin(c),f=Math.cos(c);return 0>=b*k-e*f};Ua=function(a,c,e,b,k,f){if(0===e)return f?a:c;var q=Math.sin(e);e=Math.cos(e);a-=b;c-=k;var x=a*q;a=a*e-c*q;c=c*e+x;return f?a+b:c+k};Va=function(a,c,e,b){a=e-a;c=b-c;return Math.sqrt(a*
a+c*c)};Wa=function(a,c){return!a!==!c};Xa=function(a){for(var c in a)if(a.hasOwnProperty(c))return!0;return!1};Ya=function(a){for(var c in a)a.hasOwnProperty(c)&&delete a[c]};var m=+new Date;Za=function(){if("undefined"!==typeof window.performance){var a=window.performance;if("undefined"!==typeof a.now)return a.now();if("undefined"!==typeof a.webkitNow)return a.webkitNow();if("undefined"!==typeof a.mozNow)return a.mozNow();if("undefined"!==typeof a.msNow)return a.msNow()}return Date.now()-m};var q=
!1,w=q=!1,U=!1;"undefined"!==typeof window&&(q=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),q=!q&&/safari/i.test(navigator.userAgent),w=/(iphone|ipod|ipad)/i.test(navigator.userAgent),U=window.c2ejecta);var E=!q&&!U&&!w&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;t.prototype.contains=function(a){return this.Yd()?!1:E?this.Fd.has(a):this.items&&this.items.hasOwnProperty(a)};t.prototype.add=function(a){if(E)this.Fd.has(a)||(this.Fd.add(a),this.ue=
!1);else{var c=a.toString(),e=this.items;e?e.hasOwnProperty(c)||(e[c]=a,this.Nh++,this.ue=!1):(this.items={},this.items[c]=a,this.Nh=1,this.ue=!1)}};t.prototype.remove=function(a){if(!this.Yd())if(E)this.Fd.has(a)&&(this.Fd["delete"](a),this.ue=!1);else if(this.items){a=a.toString();var c=this.items;c.hasOwnProperty(a)&&(delete c[a],this.Nh--,this.ue=!1)}};t.prototype.clear=function(){this.Yd()||(E?this.Fd.clear():(this.items=null,this.Nh=0),A(this.Ug),this.ue=!0)};t.prototype.Yd=function(){return 0===
this.count()};t.prototype.count=function(){return E?this.Fd.size:this.Nh};var Ea=null,oa=0;t.prototype.My=function(){if(!this.ue){if(E)A(this.Ug),Ea=this.Ug,oa=0,this.Fd.forEach(v),Ea=null,oa=0;else{var a=this.Ug;A(a);var c,e=0,b=this.items;if(b)for(c in b)b.hasOwnProperty(c)&&(a[e++]=b[c])}this.ue=!0}};t.prototype.We=function(){this.My();return this.Ug};ca=t;new ca;$a=function(a,c){E?cb(a,c.Fd):db(a,c.We())};cb=function(a,c){var e,b,k,f;b=e=0;for(k=a.length;e<k;++e)f=a[e],c.has(f)||(a[b++]=f);Ba(a,
b)};db=function(a,c){var e,b,k,f;b=e=0;for(k=a.length;e<k;++e)f=a[e],-1===Ha(c,f)&&(a[b++]=f);Ba(a,b)};n.prototype.add=function(a){this.y=a-this.Il;this.Vk=this.Z+this.y;this.Il=this.Vk-this.Z-this.y;this.Z=this.Vk};n.prototype.reset=function(){this.Z=this.Vk=this.y=this.Il=0};eb=n;fb=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};g.prototype.oi=function(a){this.hr=a;this.kd=a.length/2;this.lb.length=a.length;this.lj=this.mj=-1;this.Wo=0};g.prototype.jg=function(){return!this.hr.length};
g.prototype.Aa=function(){for(var a=this.lb,c=a[0],e=c,b=a[1],k=b,f,q,x=1,d=this.kd;x<d;++x)q=2*x,f=a[q],q=a[q+1],f<c&&(c=f),f>e&&(e=f),q<b&&(b=q),q>k&&(k=q);this.hj=c;this.ij=e;this.jj=b;this.gj=k};g.prototype.ni=function(a,c,e){this.lb.length=8;this.kd=4;var b=this.lb;b[0]=a.left-c;b[1]=a.top-e;b[2]=a.right-c;b[3]=a.top-e;b[4]=a.right-c;b[5]=a.bottom-e;b[6]=a.left-c;b[7]=a.bottom-e;this.mj=a.right-a.left;this.lj=a.bottom-a.top;this.Aa()};g.prototype.Lg=function(a,c,e,b,k){this.lb.length=8;this.kd=
4;var f=this.lb;f[0]=a.Fa-c;f[1]=a.Ga-e;f[2]=a.nb-c;f[3]=a.ob-e;f[4]=a.bb-c;f[5]=a.cb-e;f[6]=a.$a-c;f[7]=a.ab-e;this.mj=b;this.lj=k;this.Aa()};g.prototype.Ar=function(a){this.kd=a.kd;Da(this.lb,a.lb);this.hj=a.hj;this.jj-a.jj;this.ij=a.ij;this.gj=a.gj};g.prototype.Sf=function(a,c,e){if(this.mj!==a||this.lj!==c||this.Wo!==e){this.mj=a;this.lj=c;this.Wo=e;var b,k,f,q,x,d=0,u=1,m=this.hr,w=this.lb;0!==e&&(d=Math.sin(e),u=Math.cos(e));e=0;for(f=this.kd;e<f;e++)b=2*e,k=b+1,q=m[b]*a,x=m[k]*c,w[b]=q*u-x*
d,w[k]=x*u+q*d;this.Aa()}};g.prototype.Ib=function(a,c){var e=this.lb;if(a===e[0]&&c===e[1])return!0;var b,k,f,q=this.kd,x=this.hj-110,d=this.jj-101,u=this.ij+131,m=this.gj+120,w,l,h=0,g=0;for(b=0;b<q;b++)k=2*b,f=(b+1)%q*2,w=e[k],k=e[k+1],l=e[f],f=e[f+1],va(x,d,a,c,w,k,l,f)&&h++,va(u,m,a,c,w,k,l,f)&&g++;return 1===h%2||1===g%2};g.prototype.Ch=function(a,c,e){var b=a.lb,k=this.lb;if(this.Ib(b[0]+c,b[1]+e)||a.Ib(k[0]-c,k[1]-e))return!0;var f,q,x,d,u,m,w,l,h,g,U,n;f=0;for(d=this.kd;f<d;f++)for(q=2*f,
x=(f+1)%d*2,l=k[q],q=k[q+1],h=k[x],g=k[x+1],x=0,w=a.kd;x<w;x++)if(u=2*x,m=(x+1)%w*2,U=b[u]+c,u=b[u+1]+e,n=b[m]+c,m=b[m+1]+e,va(l,q,h,g,U,u,n,m))return!0;return!1};gb=g;b.prototype.Ge=function(a,c,e){var b;b=this.cells[a];return b?(b=b[c])?b:e?(b=l(this,a,c),this.cells[a][c]=b):null:e?(b=l(this,a,c),this.cells[a]={},this.cells[a][c]=b):null};b.prototype.Ub=function(a){return ta(a/this.Ml)};b.prototype.Vb=function(a){return ta(a/this.Ll)};b.prototype.update=function(a,c,e){var b,k,f,q,x;if(c)for(b=
c.left,k=c.right;b<=k;++b)for(f=c.top,q=c.bottom;f<=q;++f)if(!e||!e.Ib(b,f))if(x=this.Ge(b,f,!1))x.remove(a),x.Yd()&&(x.sb.clear(),1E3>K.length&&K.push(x),this.cells[b][f]=null);if(e)for(b=e.left,k=e.right;b<=k;++b)for(f=e.top,q=e.bottom;f<=q;++f)c&&c.Ib(b,f)||this.Ge(b,f,!0).zm(a)};b.prototype.Fk=function(a,c){var e,b,k,f,q,x;e=this.Ub(a.left);k=this.Vb(a.top);b=this.Ub(a.right);for(q=this.Vb(a.bottom);e<=b;++e)for(f=k;f<=q;++f)(x=this.Ge(e,f,!1))&&x.dump(c)};hb=b;d.prototype.Ge=function(a,c,e){var b;
b=this.cells[a];return b?(b=b[c])?b:e?(b=f(this,a,c),this.cells[a][c]=b):null:e?(b=f(this,a,c),this.cells[a]={},this.cells[a][c]=b):null};d.prototype.Ub=function(a){return ta(a/this.Ml)};d.prototype.Vb=function(a){return ta(a/this.Ll)};d.prototype.update=function(a,c,e){var b,k,f,q,x;if(c)for(b=c.left,k=c.right;b<=k;++b)for(f=c.top,q=c.bottom;f<=q;++f)if(!e||!e.Ib(b,f))if(x=this.Ge(b,f,!1))x.remove(a),x.Yd()&&(x.reset(),1E3>L.length&&L.push(x),this.cells[b][f]=null);if(e)for(b=e.left,k=e.right;b<=
k;++b)for(f=e.top,q=e.bottom;f<=q;++f)c&&c.Ib(b,f)||this.Ge(b,f,!0).zm(a)};d.prototype.Fk=function(a,c,e,b,k){var f,q;a=this.Ub(a);c=this.Vb(c);e=this.Ub(e);for(f=this.Vb(b);a<=e;++a)for(b=c;b<=f;++b)(q=this.Ge(a,b,!1))&&q.dump(k)};d.prototype.vx=function(a){var c,e,b,k,f;c=a.left;b=a.top;e=a.right;for(k=a.bottom;c<=e;++c)for(a=b;a<=k;++a)if(f=this.Ge(c,a,!1))f.mg=!1};ib=d;var K=[];c.prototype.Yd=function(){return this.sb.Yd()};c.prototype.zm=function(a){this.sb.add(a)};c.prototype.remove=function(a){this.sb.remove(a)};
c.prototype.dump=function(a){Fa(a,this.sb.We())};ba=c;var L=[];a.prototype.Yd=function(){if(!this.sb.length)return!0;if(this.sb.length>this.Cd.count())return!1;this.fm();return!0};a.prototype.zm=function(a){this.Cd.contains(a)?(this.Cd.remove(a),this.Cd.Yd()&&(this.eh=!1)):this.sb.length?(this.sb[this.sb.length-1].wd()>a.wd()&&(this.mg=!1),this.sb.push(a)):(this.sb.push(a),this.mg=!0)};a.prototype.remove=function(a){this.Cd.add(a);this.eh=!0;30<=this.Cd.count()&&this.fm()};a.prototype.fm=function(){this.eh&&
(this.Cd.count()===this.sb.length?this.reset():($a(this.sb,this.Cd),this.Cd.clear(),this.eh=!1))};a.prototype.Av=function(){this.mg||(this.sb.sort(k),this.mg=!0)};a.prototype.reset=function(){A(this.sb);this.mg=!0;this.Cd.clear();this.eh=!1};a.prototype.dump=function(a){this.fm();this.Av();this.sb.length&&a.push(this.sb)};da=a;var H="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");jb=function(a){return 0>=a||11<=a?"source-over":
H[a-1]};kb=function(a,c,e){if(e)switch(a.Pb=e.ONE,a.Jb=e.ONE_MINUS_SRC_ALPHA,c){case 1:a.Pb=e.ONE;a.Jb=e.ONE;break;case 3:a.Pb=e.ONE;a.Jb=e.ZERO;break;case 4:a.Pb=e.ONE_MINUS_DST_ALPHA;a.Jb=e.ONE;break;case 5:a.Pb=e.DST_ALPHA;a.Jb=e.ZERO;break;case 6:a.Pb=e.ZERO;a.Jb=e.SRC_ALPHA;break;case 7:a.Pb=e.ONE_MINUS_DST_ALPHA;a.Jb=e.ZERO;break;case 8:a.Pb=e.ZERO;a.Jb=e.ONE_MINUS_SRC_ALPHA;break;case 9:a.Pb=e.DST_ALPHA;a.Jb=e.ONE_MINUS_SRC_ALPHA;break;case 10:a.Pb=e.ONE_MINUS_DST_ALPHA,a.Jb=e.SRC_ALPHA}};
lb=function(a){return Math.round(1E6*a)/1E6};mb=function(a,c){return"string"!==typeof a||"string"!==typeof c||a.length!==c.length?!1:a===c?!0:a.toLowerCase()===c.toLowerCase()};pb=function(a){a=a.target;return!a||a===document||a===window||document&&document.body&&a===document.body||mb(a.tagName,"canvas")?!0:!1}})();var kc="undefined"!==typeof Float32Array?Float32Array:Array;function lc(h){var r=new kc(3);h&&(r[0]=h[0],r[1]=h[1],r[2]=h[2]);return r}
function mc(h){var r=new kc(16);h&&(r[0]=h[0],r[1]=h[1],r[2]=h[2],r[3]=h[3],r[4]=h[4],r[5]=h[5],r[6]=h[6],r[7]=h[7],r[8]=h[8],r[9]=h[9],r[10]=h[10],r[11]=h[11],r[12]=h[12],r[13]=h[13],r[14]=h[14],r[15]=h[15]);return r}function nc(h,r){r[0]=h[0];r[1]=h[1];r[2]=h[2];r[3]=h[3];r[4]=h[4];r[5]=h[5];r[6]=h[6];r[7]=h[7];r[8]=h[8];r[9]=h[9];r[10]=h[10];r[11]=h[11];r[12]=h[12];r[13]=h[13];r[14]=h[14];r[15]=h[15]}
function oc(h,r){var p=r[0],t=r[1];r=r[2];h[0]*=p;h[1]*=p;h[2]*=p;h[3]*=p;h[4]*=t;h[5]*=t;h[6]*=t;h[7]*=t;h[8]*=r;h[9]*=r;h[10]*=r;h[11]*=r}
function pc(h,r,p,t){t||(t=mc());var v,n,g,b,d,l,c,f,a=h[0],k=h[1];h=h[2];n=p[0];g=p[1];v=p[2];p=r[1];l=r[2];a===r[0]&&k===p&&h===l?(h=t,h[0]=1,h[1]=0,h[2]=0,h[3]=0,h[4]=0,h[5]=1,h[6]=0,h[7]=0,h[8]=0,h[9]=0,h[10]=1,h[11]=0,h[12]=0,h[13]=0,h[14]=0,h[15]=1):(p=a-r[0],l=k-r[1],c=h-r[2],f=1/Math.sqrt(p*p+l*l+c*c),p*=f,l*=f,c*=f,r=g*c-v*l,v=v*p-n*c,n=n*l-g*p,(f=Math.sqrt(r*r+v*v+n*n))?(f=1/f,r*=f,v*=f,n*=f):n=v=r=0,g=l*n-c*v,b=c*r-p*n,d=p*v-l*r,(f=Math.sqrt(g*g+b*b+d*d))?(f=1/f,g*=f,b*=f,d*=f):d=b=g=0,
t[0]=r,t[1]=g,t[2]=p,t[3]=0,t[4]=v,t[5]=b,t[6]=l,t[7]=0,t[8]=n,t[9]=d,t[10]=c,t[11]=0,t[12]=-(r*a+v*k+n*h),t[13]=-(g*a+b*k+d*h),t[14]=-(p*a+l*k+c*h),t[15]=1)}
(function(){function h(b,d,l){this.Je=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.ya=!!l;this.Yj=this.Eh=!1;this.Ul=0;this.il=1;this.Xn=1E3;this.Uy=(this.Xn-this.il)/32768;this.Jl=lc([0,0,100]);this.kq=lc([0,0,0]);this.Vr=lc([0,1,0]);this.Li=lc([1,1,1]);this.fp=!0;this.ok=mc();this.zc=mc();this.Km=mc();this.Tl=mc();this.u=b;this.version=0===this.u.getParameter(this.u.VERSION).indexOf("WebGL 2")?2:1;this.Gp()}function r(b,d,l){this.u=b;this.pi=
d;this.name=l;this.Nc=b.getAttribLocation(d,"aPos");this.Oe=b.getAttribLocation(d,"aTex");this.iq=b.getUniformLocation(d,"matP");this.kk=b.getUniformLocation(d,"matMV");this.vg=b.getUniformLocation(d,"opacity");this.Qm=b.getUniformLocation(d,"colorFill");this.jq=b.getUniformLocation(d,"samplerFront");this.Th=b.getUniformLocation(d,"samplerBack");this.Bf=b.getUniformLocation(d,"destStart");this.Af=b.getUniformLocation(d,"destEnd");this.Vh=b.getUniformLocation(d,"seconds");this.Sm=b.getUniformLocation(d,
"pixelWidth");this.Rm=b.getUniformLocation(d,"pixelHeight");this.Sh=b.getUniformLocation(d,"layerScale");this.Rh=b.getUniformLocation(d,"layerAngle");this.Wh=b.getUniformLocation(d,"viewOrigin");this.Uh=b.getUniformLocation(d,"scrollPos");this.Qw=!!(this.Sm||this.Rm||this.Vh||this.Th||this.Bf||this.Af||this.Sh||this.Rh||this.Wh||this.Uh);this.sq=this.tq=-999;this.nk=1;this.oq=this.nq=0;this.qq=this.mq=this.lq=1;this.wq=this.vq=this.uq=this.yq=this.xq=this.pq=0;this.Jm=[];this.rq=mc();this.vg&&b.uniform1f(this.vg,
1);this.Qm&&b.uniform4f(this.Qm,1,1,1,1);this.jq&&b.uniform1i(this.jq,0);this.Th&&b.uniform1i(this.Th,1);this.Bf&&b.uniform2f(this.Bf,0,0);this.Af&&b.uniform2f(this.Af,1,1);this.Sh&&b.uniform1f(this.Sh,1);this.Rh&&b.uniform1f(this.Rh,0);this.Wh&&b.uniform2f(this.Wh,0,0);this.Uh&&b.uniform2f(this.Uh,0,0);this.Vh&&b.uniform1f(this.Vh,0);this.pf=!1}function p(b,d){return b[0]===d[0]&&b[1]===d[1]&&b[2]===d[2]&&b[3]===d[3]&&b[4]===d[4]&&b[5]===d[5]&&b[6]===d[6]&&b[7]===d[7]&&b[8]===d[8]&&b[9]===d[9]&&
b[10]===d[10]&&b[11]===d[11]&&b[12]===d[12]&&b[13]===d[13]&&b[14]===d[14]&&b[15]===d[15]}function t(b,d){this.type=b;this.k=d;this.u=d.u;this.xd=this.Tb=this.Tq=0;this.T=this.Vc=null;this.Cr=[]}var v=mc();h.prototype.Gp=function(){var b=this.u,d;this.Yp=1;this.wf=this.vf=null;this.wj=1;b.clearColor(0,0,0,0);b.clear(b.COLOR_BUFFER_BIT);b.enable(b.BLEND);b.blendFunc(b.ONE,b.ONE_MINUS_SRC_ALPHA);b.disable(b.CULL_FACE);b.disable(b.STENCIL_TEST);b.disable(b.DITHER);this.ya?(b.enable(b.DEPTH_TEST),b.depthFunc(b.LEQUAL)):
b.disable(b.DEPTH_TEST);this.$p=b.ONE;this.Wp=b.ONE_MINUS_SRC_ALPHA;this.fl=new Float32Array(8E3*(this.ya?3:2));this.Xk=new Float32Array(16E3);this.er=new Float32Array(32E3);this.hn=b.createBuffer();b.bindBuffer(b.ARRAY_BUFFER,this.hn);b.bufferData(b.ARRAY_BUFFER,this.er.byteLength,b.DYNAMIC_DRAW);this.Gi=Array(4);this.vi=Array(4);for(d=0;4>d;d++)this.Gi[d]=b.createBuffer(),b.bindBuffer(b.ARRAY_BUFFER,this.Gi[d]),b.bufferData(b.ARRAY_BUFFER,this.fl.byteLength,b.DYNAMIC_DRAW),this.vi[d]=b.createBuffer(),
b.bindBuffer(b.ARRAY_BUFFER,this.vi[d]),b.bufferData(b.ARRAY_BUFFER,this.Xk.byteLength,b.DYNAMIC_DRAW);this.Pd=0;this.Tw=b.createBuffer();b.bindBuffer(b.ELEMENT_ARRAY_BUFFER,this.Tw);for(var l=new Uint16Array(12E3),c=d=0;12E3>d;)l[d++]=c,l[d++]=c+1,l[d++]=c+2,l[d++]=c,l[d++]=c+2,l[d++]=c+3,c+=4;b.bufferData(b.ELEMENT_ARRAY_BUFFER,l,b.STATIC_DRAW);this.jn=this.Pg=this.ne=0;this.La=[];d=this.ya?"attribute highp vec3 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, aPos.z, 1.0);\n\tvTex = aTex;\n}":
"attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}";l=this.kh({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}"},d,"<default>");this.La.push(l);l=this.kh({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.La.push(l);l=this.kh({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},d,"<earlyz>");this.La.push(l);l=this.kh({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"},
d,"<fill>");this.La.push(l);for(var f in qc)qc.hasOwnProperty(f)&&this.La.push(this.kh(qc[f],d,f));b.activeTexture(b.TEXTURE0);b.bindTexture(b.TEXTURE_2D,null);this.te=[];this.Od=0;this.Mb=!1;this.bp=this.Oh=-1;this.Xf=null;this.dm=b.createFramebuffer();this.Aj=this.Gk=null;this.Qo=!1;this.ya&&(this.Aj=b.createRenderbuffer());this.Ve=lc([0,0,0]);this.zq=b.getParameter(b.ALIASED_POINT_SIZE_RANGE)[1];2048<this.zq&&(this.zq=2048);this.ec(0)};r.prototype.Sn=function(b){p(this.rq,b)||(nc(b,this.rq),this.u.uniformMatrix4fv(this.kk,
!1,b))};h.prototype.kh=function(b,d,l){var c=this.u,f=c.createShader(c.FRAGMENT_SHADER);c.shaderSource(f,b.src);c.compileShader(f);if(!c.getShaderParameter(f,c.COMPILE_STATUS))throw b=c.getShaderInfoLog(f),c.deleteShader(f),Error("error compiling fragment shader: "+b);var a=c.createShader(c.VERTEX_SHADER);c.shaderSource(a,d);c.compileShader(a);if(!c.getShaderParameter(a,c.COMPILE_STATUS))throw b=c.getShaderInfoLog(a),c.deleteShader(f),c.deleteShader(a),Error("error compiling vertex shader: "+b);d=
c.createProgram();c.attachShader(d,f);c.attachShader(d,a);c.linkProgram(d);if(!c.getProgramParameter(d,c.LINK_STATUS))throw b=c.getProgramInfoLog(d),c.deleteShader(f),c.deleteShader(a),c.deleteProgram(d),Error("error linking shader program: "+b);c.useProgram(d);c.deleteShader(f);c.deleteShader(a);f=new r(c,d,l);f.Ej=b.Ej||0;f.Fj=b.Fj||0;f.Sl=!!b.Sl;f.Rc=!!b.Rc;f.Cl=!!b.Cl;f.O=b.O||[];b=0;for(a=f.O.length;b<a;b++)f.O[b][1]=c.getUniformLocation(d,f.O[b][0]),f.Jm.push(0),c.uniform1f(f.O[b][1],0);return f};
h.prototype.pm=function(b){var d,l;d=0;for(l=this.La.length;d<l;d++)if(this.La[d].name===b)return d;return-1};h.prototype.gr=function(b,d,l){var c=this.zc,f=this.ok,a=[0,0,0,0,0,0,0,0];a[0]=c[0]*b+c[4]*d+c[12];a[1]=c[1]*b+c[5]*d+c[13];a[2]=c[2]*b+c[6]*d+c[14];a[3]=c[3]*b+c[7]*d+c[15];a[4]=f[0]*a[0]+f[4]*a[1]+f[8]*a[2]+f[12]*a[3];a[5]=f[1]*a[0]+f[5]*a[1]+f[9]*a[2]+f[13]*a[3];a[6]=f[2]*a[0]+f[6]*a[1]+f[10]*a[2]+f[14]*a[3];a[7]=-a[2];0!==a[7]&&(a[7]=1/a[7],a[4]*=a[7],a[5]*=a[7],a[6]*=a[7],l[0]=(.5*a[4]+
.5)*this.width,l[1]=(.5*a[5]+.5)*this.height)};h.prototype.ge=function(b,d,l){if(this.width!==b||this.height!==d||l){this.gf();l=this.u;this.width=b;this.height=d;l.viewport(0,0,b,d);pc(this.Jl,this.kq,this.Vr,this.zc);if(this.ya){var c=-b/2;b=b/2;var f=d/2;d=-d/2;var a=this.il,k=this.Xn,e=this.ok;e||(e=mc());var u=b-c,m=d-f,q=k-a;e[0]=2/u;e[1]=0;e[2]=0;e[3]=0;e[4]=0;e[5]=2/m;e[6]=0;e[7]=0;e[8]=0;e[9]=0;e[10]=-2/q;e[11]=0;e[12]=-(c+b)/u;e[13]=-(d+f)/m;e[14]=-(k+a)/q;e[15]=1;this.Li[0]=1;this.Li[1]=
1}else d=b/d,c=this.il,b=this.Xn,e=this.ok,k=c*Math.tan(45*Math.PI/360),d*=k,f=-d,a=-k,e||(e=mc()),u=d-f,m=k-a,q=b-c,e[0]=2*c/u,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=2*c/m,e[6]=0,e[7]=0,e[8]=(d+f)/u,e[9]=(k+a)/m,e[10]=-(b+c)/q,e[11]=-1,e[12]=0,e[13]=0,e[14]=-(b*c*2)/q,e[15]=0,c=[0,0],b=[0,0],this.gr(0,0,c),this.gr(1,1,b),this.Li[0]=1/(b[0]-c[0]),this.Li[1]=-1/(b[1]-c[1]);c=0;for(b=this.La.length;c<b;c++)f=this.La[c],f.pf=!1,f.iq&&(l.useProgram(f.pi),l.uniformMatrix4fv(f.iq,!1,this.ok));l.useProgram(this.La[this.Oh].pi);
l.bindTexture(l.TEXTURE_2D,null);l.activeTexture(l.TEXTURE1);l.bindTexture(l.TEXTURE_2D,null);l.activeTexture(l.TEXTURE0);this.wf=this.vf=null;this.Aj&&(l.bindFramebuffer(l.FRAMEBUFFER,this.dm),l.bindRenderbuffer(l.RENDERBUFFER,this.Aj),l.renderbufferStorage(l.RENDERBUFFER,l.DEPTH_COMPONENT16,this.width,this.height),this.Qo||(l.framebufferRenderbuffer(l.FRAMEBUFFER,l.DEPTH_ATTACHMENT,l.RENDERBUFFER,this.Aj),this.Qo=!0),l.bindRenderbuffer(l.RENDERBUFFER,null),l.bindFramebuffer(l.FRAMEBUFFER,null),
this.Gk=null)}};h.prototype.Ed=function(){pc(this.Jl,this.kq,this.Vr,this.zc);oc(this.zc,this.Li)};h.prototype.translate=function(b,d){if(0!==b||0!==d){this.Ve[0]=b;this.Ve[1]=d;this.Ve[2]=0;var l=this.zc,c=this.Ve,f=c[0],a=c[1],c=c[2];l[12]=l[0]*f+l[4]*a+l[8]*c+l[12];l[13]=l[1]*f+l[5]*a+l[9]*c+l[13];l[14]=l[2]*f+l[6]*a+l[10]*c+l[14];l[15]=l[3]*f+l[7]*a+l[11]*c+l[15]}};h.prototype.scale=function(b,d){if(1!==b||1!==d)this.Ve[0]=b,this.Ve[1]=d,this.Ve[2]=1,oc(this.zc,this.Ve)};h.prototype.xn=function(b){if(0!==
b){var d=this.zc,l,c=Math.sin(b);b=Math.cos(b);var f=d[0],a=d[1],k=d[2],e=d[3],u=d[4],m=d[5],q=d[6],w=d[7];l?d!==l&&(l[8]=d[8],l[9]=d[9],l[10]=d[10],l[11]=d[11],l[12]=d[12],l[13]=d[13],l[14]=d[14],l[15]=d[15]):l=d;l[0]=f*b+u*c;l[1]=a*b+m*c;l[2]=k*b+q*c;l[3]=e*b+w*c;l[4]=f*-c+u*b;l[5]=a*-c+m*b;l[6]=k*-c+q*b;l[7]=e*-c+w*b}};h.prototype.od=function(){if(!p(this.Km,this.zc)){var b=this.mc();b.type=5;b.T?nc(this.zc,b.T):b.T=mc(this.zc);nc(this.zc,this.Km);this.Mb=!1}};h.prototype.Ok=function(b){this.ya&&
(32760<b&&(b=32760),this.Ul=this.Jl[2]-this.il-b*this.Uy)};t.prototype.jv=function(){var b=this.u,d=this.k;0!==this.Tb?(b.depthMask(!0),b.colorMask(!1,!1,!1,!1),b.disable(b.BLEND),b.bindFramebuffer(b.FRAMEBUFFER,d.dm),b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,null,0),b.clear(b.DEPTH_BUFFER_BIT),b.bindFramebuffer(b.FRAMEBUFFER,null),d.Yj=!0):(b.depthMask(!1),b.colorMask(!0,!0,!0,!0),b.enable(b.BLEND),d.Yj=!1)};t.prototype.nv=function(){this.u.bindTexture(this.u.TEXTURE_2D,
this.Vc)};t.prototype.ov=function(){var b=this.u;b.activeTexture(b.TEXTURE1);b.bindTexture(b.TEXTURE_2D,this.Vc);b.activeTexture(b.TEXTURE0)};t.prototype.kv=function(){var b=this.Tq,d=this.k;d.wj=b;d=d.Xf;d.vg&&d.nk!==b&&(d.nk=b,this.u.uniform1f(d.vg,b))};t.prototype.bv=function(){this.u.drawElements(this.u.TRIANGLES,this.xd,this.u.UNSIGNED_SHORT,this.Tb)};t.prototype.gv=function(){this.u.blendFunc(this.Tb,this.xd)};t.prototype.pv=function(){var b,d,l,c=this.k.La,f=this.k.bp;b=0;for(d=c.length;b<
d;b++)l=c[b],b===f&&l.kk?(l.Sn(this.T),l.pf=!0):l.pf=!1;nc(this.T,this.k.Tl)};t.prototype.cv=function(){var b=this.u,d=this.k;this.Vc?(d.wf===this.Vc&&(b.activeTexture(b.TEXTURE1),b.bindTexture(b.TEXTURE_2D,null),d.wf=null,b.activeTexture(b.TEXTURE0)),b.bindFramebuffer(b.FRAMEBUFFER,d.dm),d.Yj||b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,this.Vc,0)):(d.ya||b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,null,0),b.bindFramebuffer(b.FRAMEBUFFER,null))};
t.prototype.Zu=function(){var b=this.u,d=this.Tb;0===d?(b.clearColor(this.T[0],this.T[1],this.T[2],this.T[3]),b.clear(b.COLOR_BUFFER_BIT)):1===d?(b.enable(b.SCISSOR_TEST),b.scissor(this.T[0],this.T[1],this.T[2],this.T[3]),b.clearColor(0,0,0,0),b.clear(b.COLOR_BUFFER_BIT),b.disable(b.SCISSOR_TEST)):b.clear(b.DEPTH_BUFFER_BIT)};t.prototype.iv=function(){var b=this.u;0!==this.Tb?b.enable(b.DEPTH_TEST):b.disable(b.DEPTH_TEST)};t.prototype.av=function(){var b=this.u,d=this.k;d.ya&&b.disable(b.DEPTH_TEST);
var l=d.La[1];b.useProgram(l.pi);!l.pf&&l.kk&&(l.Sn(d.Tl),l.pf=!0);b.enableVertexAttribArray(l.Nc);b.bindBuffer(b.ARRAY_BUFFER,d.hn);b.vertexAttribPointer(l.Nc,4,b.FLOAT,!1,0,0);b.drawArrays(b.POINTS,this.Tb/4,this.xd);l=d.Xf;b.useProgram(l.pi);0<=l.Nc&&(b.enableVertexAttribArray(l.Nc),b.bindBuffer(b.ARRAY_BUFFER,d.Gi[d.Pd]),b.vertexAttribPointer(l.Nc,d.ya?3:2,b.FLOAT,!1,0,0));0<=l.Oe&&(b.enableVertexAttribArray(l.Oe),b.bindBuffer(b.ARRAY_BUFFER,d.vi[d.Pd]),b.vertexAttribPointer(l.Oe,2,b.FLOAT,!1,
0,0));d.ya&&b.enable(b.DEPTH_TEST)};t.prototype.lv=function(){var b=this.u,d=this.k,l=d.La[this.Tb];d.bp=this.Tb;d.Xf=l;b.useProgram(l.pi);!l.pf&&l.kk&&(l.Sn(d.Tl),l.pf=!0);l.vg&&l.nk!==d.wj&&(l.nk=d.wj,b.uniform1f(l.vg,d.wj));0<=l.Nc&&(b.enableVertexAttribArray(l.Nc),b.bindBuffer(b.ARRAY_BUFFER,d.Gi[d.Pd]),b.vertexAttribPointer(l.Nc,d.ya?3:2,b.FLOAT,!1,0,0));0<=l.Oe&&(b.enableVertexAttribArray(l.Oe),b.bindBuffer(b.ARRAY_BUFFER,d.vi[d.Pd]),b.vertexAttribPointer(l.Oe,2,b.FLOAT,!1,0,0))};t.prototype.hv=
function(){var b=this.T;this.u.uniform4f(this.k.Xf.Qm,b[0],b[1],b[2],b[3])};t.prototype.mv=function(){var b,d,l=this.k.Xf,c=this.u;b=this.T;l.Th&&this.k.wf!==this.Vc&&(c.activeTexture(c.TEXTURE1),c.bindTexture(c.TEXTURE_2D,this.Vc),this.k.wf=this.Vc,c.activeTexture(c.TEXTURE0));var f=b[0];l.Sm&&f!==l.tq&&(l.tq=f,c.uniform1f(l.Sm,f));f=b[1];l.Rm&&f!==l.sq&&(l.sq=f,c.uniform1f(l.Rm,f));f=b[2];d=b[3];!l.Bf||f===l.nq&&d===l.oq||(l.nq=f,l.oq=d,c.uniform2f(l.Bf,f,d));f=b[4];d=b[5];!l.Af||f===l.lq&&d===
l.mq||(l.lq=f,l.mq=d,c.uniform2f(l.Af,f,d));f=b[6];l.Sh&&f!==l.qq&&(l.qq=f,c.uniform1f(l.Sh,f));f=b[7];l.Rh&&f!==l.pq&&(l.pq=f,c.uniform1f(l.Rh,f));f=b[8];d=b[9];!l.Wh||f===l.xq&&d===l.yq||(l.xq=f,l.yq=d,c.uniform2f(l.Wh,f,d));f=b[10];d=b[11];!l.Uh||f===l.uq&&d===l.vq||(l.uq=f,l.vq=d,c.uniform2f(l.Uh,f,d));f=b[12];l.Vh&&f!==l.wq&&(l.wq=f,c.uniform1f(l.Vh,f));if(l.O.length)for(b=0,d=l.O.length;b<d;b++)f=this.Cr[b],f!==l.Jm[b]&&(l.Jm[b]=f,c.uniform1f(l.O[b][1],f))};h.prototype.mc=function(){this.Od===
this.te.length&&this.te.push(new t(0,this));return this.te[this.Od++]};h.prototype.gf=function(){if(0!==this.Od&&!this.u.isContextLost()){var b=this.u;0<this.jn&&(b.bindBuffer(b.ARRAY_BUFFER,this.hn),b.bufferSubData(b.ARRAY_BUFFER,0,this.er.subarray(0,this.jn)),d&&0<=d.Nc&&"<point>"===d.name&&b.vertexAttribPointer(d.Nc,4,b.FLOAT,!1,0,0));if(0<this.ne){var d=this.Xf;b.bindBuffer(b.ARRAY_BUFFER,this.Gi[this.Pd]);b.bufferSubData(b.ARRAY_BUFFER,0,this.fl.subarray(0,this.ne));d&&0<=d.Nc&&"<point>"!==d.name&&
b.vertexAttribPointer(d.Nc,this.ya?3:2,b.FLOAT,!1,0,0);b.bindBuffer(b.ARRAY_BUFFER,this.vi[this.Pd]);b.bufferSubData(b.ARRAY_BUFFER,0,this.Xk.subarray(0,this.Pg));d&&0<=d.Oe&&"<point>"!==d.name&&b.vertexAttribPointer(d.Oe,2,b.FLOAT,!1,0,0)}for(var l,b=0,d=this.Od;b<d;b++)switch(l=this.te[b],l.type){case 1:l.bv();break;case 2:l.nv();break;case 3:l.kv();break;case 4:l.gv();break;case 5:l.pv();break;case 6:l.cv();break;case 7:l.Zu();break;case 8:l.av();break;case 9:l.lv();break;case 10:l.mv();break;
case 11:l.ov();break;case 12:l.hv();break;case 13:l.iv();break;case 14:l.jv()}this.jn=this.Pg=this.ne=this.Od=0;this.Yj=this.Mb=!1;this.Pd++;4<=this.Pd&&(this.Pd=0)}};h.prototype.Se=function(b){if(b!==this.Yp&&!this.Eh){var d=this.mc();d.type=3;this.Yp=d.Tq=b;this.Mb=!1}};h.prototype.Rb=function(b){if(b!==this.vf){var d=this.mc();d.type=2;this.vf=d.Vc=b;this.Mb=!1}};h.prototype.Re=function(b,d){if((b!==this.$p||d!==this.Wp)&&!this.Eh){var l=this.mc();l.type=4;l.Tb=b;l.xd=d;this.$p=b;this.Wp=d;this.Mb=
!1}};h.prototype.rr=function(){this.Re(this.u.ONE,this.u.ONE_MINUS_SRC_ALPHA)};h.prototype.ji=function(b,d,l,c,f,a,k,e){15992<=this.ne&&this.gf();var u=this.ne,m=this.Pg,q=this.fl,w=this.Xk,h=this.Ul;if(this.Mb)this.te[this.Od-1].xd+=6;else{var g=this.mc();g.type=1;g.Tb=this.ya?u:u/2*3;g.xd=6;this.Mb=!0}this.ya?(q[u++]=b,q[u++]=d,q[u++]=h,q[u++]=l,q[u++]=c,q[u++]=h,q[u++]=f,q[u++]=a,q[u++]=h,q[u++]=k,q[u++]=e,q[u++]=h):(q[u++]=b,q[u++]=d,q[u++]=l,q[u++]=c,q[u++]=f,q[u++]=a,q[u++]=k,q[u++]=e);w[m++]=
0;w[m++]=0;w[m++]=1;w[m++]=0;w[m++]=1;w[m++]=1;w[m++]=0;w[m++]=1;this.ne=u;this.Pg=m};h.prototype.Sc=function(b,d,l,c,f,a,k,e,u){15992<=this.ne&&this.gf();var m=this.ne,q=this.Pg,w=this.fl,h=this.Xk,g=this.Ul;if(this.Mb)this.te[this.Od-1].xd+=6;else{var n=this.mc();n.type=1;n.Tb=this.ya?m:m/2*3;n.xd=6;this.Mb=!0}var n=u.left,r=u.top,t=u.right;u=u.bottom;this.ya?(w[m++]=b,w[m++]=d,w[m++]=g,w[m++]=l,w[m++]=c,w[m++]=g,w[m++]=f,w[m++]=a,w[m++]=g,w[m++]=k,w[m++]=e,w[m++]=g):(w[m++]=b,w[m++]=d,w[m++]=l,
w[m++]=c,w[m++]=f,w[m++]=a,w[m++]=k,w[m++]=e);h[q++]=n;h[q++]=r;h[q++]=t;h[q++]=r;h[q++]=t;h[q++]=u;h[q++]=n;h[q++]=u;this.ne=m;this.Pg=q};h.prototype.ec=function(b){if(this.Oh!==b){if(!this.La[b]){if(0===this.Oh)return;b=0}var d=this.mc();d.type=9;this.Oh=d.Tb=b;this.Mb=!1}};h.prototype.hi=function(b){b=this.La[b];return!(!b.Bf&&!b.Af)};h.prototype.nn=function(b){b=this.La[b];return!!(b.Bf||b.Af||b.Sl)};h.prototype.mn=function(b){return this.La[b].Rc};h.prototype.$x=function(b){b=this.La[b];return 0!==
b.Ej||0!==b.Fj};h.prototype.yw=function(b){return this.La[b].Ej};h.prototype.zw=function(b){return this.La[b].Fj};h.prototype.Aw=function(b,d){return this.La[b].O[d][2]};h.prototype.Dk=function(b){return this.La[b].Cl};h.prototype.Jg=function(b,d,l,c,f,a,k,e,u,m,q,w,h,g,n){var r=this.La[this.Oh],t,p;if(r.Qw||n.length){t=this.mc();t.type=10;t.T?nc(this.zc,t.T):t.T=mc();p=t.T;p[0]=d;p[1]=l;p[2]=c;p[3]=f;p[4]=a;p[5]=k;p[6]=e;p[7]=u;p[8]=m;p[9]=q;p[10]=w;p[11]=h;p[12]=g;r.Th?t.Vc=b:t.Vc=null;if(n.length)for(l=
t.Cr,l.length=n.length,b=0,d=n.length;b<d;b++)l[b]=n[b];this.Mb=!1}};h.prototype.clear=function(b,d,l,c){var f=this.mc();f.type=7;f.Tb=0;f.T||(f.T=mc());f.T[0]=b;f.T[1]=d;f.T[2]=l;f.T[3]=c;this.Mb=!1};h.prototype.clearRect=function(b,d,l,c){if(!(0>l||0>c)){var f=this.mc();f.type=7;f.Tb=1;f.T||(f.T=mc());f.T[0]=b;f.T[1]=d;f.T[2]=l;f.T[3]=c;this.Mb=!1}};h.prototype.ur=function(b){if(this.ya&&(b=!!b,this.Eh!==b)){var d=this.mc();d.type=14;d.Tb=b?1:0;this.Mb=!1;this.Eh=b;this.Gk=null;this.Eh?this.ec(2):
this.ec(0)}};h.prototype.tr=function(b){if(this.ya){var d=this.mc();d.type=13;d.Tb=b?1:0;this.Mb=!1}};h.prototype.rp=function(){nc(this.Km,v);this.Ed();this.od();var b=this.width/2,d=this.height/2;this.ji(-b,d,b,d,b,-d,-b,-d);nc(v,this.zc);this.od()};h.prototype.sr=function(b,d,l){this.ec(3);var c=this.mc();c.type=12;c.T||(c.T=mc());c.T[0]=b;c.T[1]=d;c.T[2]=l;c.T[3]=1;this.Mb=!1};h.prototype.yy=function(){this.ec(0)};h.prototype.hy=function(){this.ec(2)};h.prototype.Zx=function(){this.gf();this.u.flush()};
var n=[],g={};h.prototype.Pu=function(){A(n);g={}};h.prototype.yc=function(b,d,l,c,f){d=!!d;l=!!l;var a=b.src+","+d+","+l+(d?","+f:""),k=null;if("undefined"!==typeof b.src&&g.hasOwnProperty(a))return k=g[a],k.kj++,k;this.gf();var e=this.u,u=la(b.width)&&la(b.height),k=e.createTexture();e.bindTexture(e.TEXTURE_2D,k);e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var m=e.RGBA,q=e.RGBA,w=e.UNSIGNED_BYTE;if(c&&!this.Je)switch(c){case 1:q=m=e.RGB;break;case 2:w=e.UNSIGNED_SHORT_4_4_4_4;break;case 3:w=
e.UNSIGNED_SHORT_5_5_5_1;break;case 4:q=m=e.RGB,w=e.UNSIGNED_SHORT_5_6_5}if(1===this.version&&!u&&d){c=document.createElement("canvas");c.width=ma(b.width);c.height=ma(b.height);var h=c.getContext("2d");"undefined"!==typeof h.imageSmoothingEnabled?h.imageSmoothingEnabled=l:(h.webkitImageSmoothingEnabled=l,h.mozImageSmoothingEnabled=l,h.msImageSmoothingEnabled=l);h.drawImage(b,0,0,b.width,b.height,0,0,c.width,c.height);e.texImage2D(e.TEXTURE_2D,0,m,q,w,c)}else e.texImage2D(e.TEXTURE_2D,0,m,q,w,b);
d?"repeat-x"===f?(e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE)):("repeat-y"===f?e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE):e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.REPEAT)):(e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE));l?(e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,
e.LINEAR),(u||2<=this.version)&&this.fp?(e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR_MIPMAP_LINEAR),e.generateMipmap(e.TEXTURE_2D)):e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR)):(e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.NEAREST));e.bindTexture(e.TEXTURE_2D,null);this.vf=null;k.bd=b.width;k.ad=b.height;k.kj=1;k.Vo=a;n.push(k);return g[a]=k};h.prototype.Ic=function(b,d,l){var c;this.gf();var f=this.u;
this.Je&&(c=!1);var a=f.createTexture();f.bindTexture(f.TEXTURE_2D,a);f.texImage2D(f.TEXTURE_2D,0,f.RGBA,b,d,0,f.RGBA,c?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,l?f.LINEAR:f.NEAREST);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,l?f.LINEAR:f.NEAREST);f.bindTexture(f.TEXTURE_2D,null);this.vf=null;a.bd=b;a.ad=d;n.push(a);
return a};h.prototype.deleteTexture=function(b){b&&("undefined"!==typeof b.kj&&1<b.kj?b.kj--:(this.gf(),b===this.vf&&(this.u.bindTexture(this.u.TEXTURE_2D,null),this.vf=null),b===this.wf&&(this.u.activeTexture(this.u.TEXTURE1),this.u.bindTexture(this.u.TEXTURE_2D,null),this.u.activeTexture(this.u.TEXTURE0),this.wf=null),Ia(n,b),"undefined"!==typeof b.Vo&&delete g[b.Vo],this.u.deleteTexture(b)))};h.prototype.Tc=function(b){if(b!==this.Gk){var d=this.mc();d.type=6;this.Gk=d.Vc=b;this.Mb=!1}};qb=h})();
(function(){function h(a){if(a&&(a.getContext||a.dc)&&!a.c2runtime){a.c2runtime=this;var c=this;this.vc=(this.Zj=/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.pb=!!a.dc;this.Np="undefined"!==typeof window.AppMobi||
this.pb;this.Mc=!!window.c2cocoonjs;this.gd=!!window.c2ejecta;this.Mc&&(CocoonJS.App.onSuspended.addEventListener(function(){c.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){c.setSuspended(!1)}));this.gd&&(document.addEventListener("pagehide",function(){c.setSuspended(!0)}),document.addEventListener("pageshow",function(){c.setSuspended(!1)}),document.addEventListener("resize",function(){c.setSize(window.innerWidth,window.innerHeight)}));this.pa=this.pb||this.Mc||this.gd;this.Gh=
/edge\//i.test(navigator.userAgent);this.Je=(/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent))&&!this.Gh;this.Pp=/tizen/i.test(navigator.userAgent);this.Dh=/android/i.test(navigator.userAgent)&&!this.Pp&&!this.Je&&!this.Gh;this.Up=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&!this.Je&&!this.Gh;this.kx=/ipad/i.test(navigator.userAgent);this.pg=this.Up||this.kx||this.gd;this.Bm=(/chrome/i.test(navigator.userAgent)||
/chromium/i.test(navigator.userAgent))&&!this.Je&&!this.Gh;this.Mp=/amazonwebappplatform/i.test(navigator.userAgent);this.ax=/firefox/i.test(navigator.userAgent);this.hx=/safari/i.test(navigator.userAgent)&&!this.Bm&&!this.Je&&!this.Gh;this.ix=/windows/i.test(navigator.userAgent);this.gx=this.Hh="undefined"!==typeof window.c2nodewebkit||"undefined"!==typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.Rp=!("undefined"===typeof window.c2isWindows8||
!window.c2isWindows8);this.Sp=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.Ke=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.Hm=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.$j=!!window.cr_windows10;this.Qp=this.Rp||this.Sp||this.Hm||this.$j;this.Yw=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.Xj=this.Dh&&!this.Bm&&!this.Zj&&!this.ax&&!this.Mp&&!this.pa;
this.devicePixelRatio=1;this.sf=this.vc||this.Zj||this.Np||this.Mc||this.Dh||this.pg||this.Ke||this.Hm||this.Yw||this.Pp||this.gd;this.sf||(this.sf=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));this.Jh=!!(this.pg&&this.vc&&window.webkit);"undefined"===typeof cr_is_preview||this.Hh||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||(this.Hh=!0);this.$w="undefined"!==
typeof cr_is_preview&&-1<window.location.search.indexOf("debug");this.canvas=a;this.nj=document.getElementById("c2canvasdiv");this.k=this.u=null;this.qm="(unavailable)";this.ya=!1;this.ef=0;this.Ba=null;this.Kj=!1;this.Mq=this.Nq=0;this.canvas.oncontextmenu=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.onselectstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.ontouchstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.pb&&(window.c2runtime=
this);this.Hh&&(window.ondragover=function(a){a.preventDefault();return!1},window.ondrop=function(a){a.preventDefault();return!1},window.nwgui&&window.nwgui.App.clearCache&&window.nwgui.App.clearCache());this.Xj&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=a.width;this.height=a.height;this.G=this.width;this.F=this.height;this.uj=this.width;this.nh=this.height;this.tg=window.innerWidth;this.sg=window.innerHeight;this.fa=!0;this.Ih=!1;Date.now||(Date.now=
function(){return+new Date});this.plugins=[];this.types={};this.p=[];this.Ha=[];this.Nm={};this.hd=[];this.cm={};this.Ud=[];this.Wg=[];this.bl=[];this.Fu=[];this.Gu=[];this.cf={};this.Dm=this.He=!1;this.wc=0;this.Cm=this.Gm=!1;this.cd=[];this.Fh=!1;this.gk=this.Bn="";this.kb=null;this.Zd="";this.si=this.Fr=!1;this.Jj=[];this.df=this.De=0;this.Eq=30;this.Pl=this.Xh=0;this.Jf=1;this.Bb=new eb;this.oe=new eb;this.rk=this.Mj=this.kf=this.Rg=this.yf=this.gm=this.dk=0;this.ih=null;this.Yl=[];this.am=[];
this.Dj=-1;this.Tm=[[]];this.On=this.lk=0;this.Ek(null);this.Yh=[];this.Zh=-1;this.qh=this.Hq=this.bi=0;this.ti=[];this.Kn=this.rn=-1;this.Mh=!0;this.jk=0;this.gg=!1;this.Ay=0;this.Rf=null;this.xc=this.Bp=!1;this.Lq=new ca;this.$m=new ca;this.an=new ca;this.lr=[];this.md=new gb([]);this.In=new gb([]);this.Qf=[];this.wh={};this.ye={};this.se={};this.Vg={};this.Ro={};this.gq=this.fk=this.Ua=this.jb=this.fq=this.ek=this.ba=null;this.Tg=this.Im=!1;this.hm=[null,null];this.Fe=0;this.rh="";this.be={};this.qi=
this.Me=null;this.Hr="";this.qk=[];this.gy()}}function r(a,c){return 128>=c?a[3]:256>=c?a[2]:512>=c?a[1]:a[0]}function p(){try{return!!window.indexedDB}catch(a){return!1}}function t(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function v(a,c,e,b){try{var k=indexedDB.open("_C2SaveStates");k.onupgradeneeded=t;k.onerror=b;k.onsuccess=function(k){k=k.target.result;k.onerror=b;k.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,data:c}).onsuccess=e}}catch(f){b(f)}}function n(a,
c,e){try{var b=indexedDB.open("_C2SaveStates");b.onupgradeneeded=t;b.onerror=e;b.onsuccess=function(b){b=b.target.result;b.onerror=e;var k=b.transaction(["saves"]).objectStore("saves").get(a);k.onsuccess=function(){k.result?c(k.result.data):c(null)}}}catch(k){e(k)}}function g(){fa("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?window.location.reload(!0):window.location=window.location+"?continuous"}function b(a){var c,e=
{};for(c in a)!a.hasOwnProperty(c)||a[c]instanceof ca||a[c]&&"undefined"!==typeof a[c].pz||"spriteCreatedDestroyCallback"!==c&&(e[c]=a[c]);return e}var d=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;h.prototype.gy=function(){var a=this;if(this.Jh)this.lp("data.js",function(c){a.Qh(JSON.parse(c))},function(){alert("Error fetching data.js")});else{var c;this.Ke?c=new ActiveXObject("Microsoft.XMLHTTP"):
c=new XMLHttpRequest;var e="data.js";if(this.Rp||this.Ke||this.Hm||this.$j)e="data.json";c.open("GET",e,!0);var b=!1;if(!this.pa&&"response"in c&&"responseType"in c)try{c.responseType="json",b="json"===c.responseType}catch(k){b=!1}if(!b&&"responseType"in c)try{c.responseType="text"}catch(f){}if("overrideMimeType"in c)try{c.overrideMimeType("application/json; charset=utf-8")}catch(q){}this.Ke?c.onreadystatechange=function(){4===c.readyState&&a.Qh(JSON.parse(c.responseText))}:(c.onload=function(){if(b)a.Qh(c.response);
else if(a.gd){var e=c.responseText,e=e.substr(e.indexOf("{"));a.Qh(JSON.parse(e))}else a.Qh(JSON.parse(c.responseText))},c.onerror=function(a){ga("Error requesting "+e+":");ga(a)});c.send()}};h.prototype.Vw=function(){var a=this,c,e,b,k,f,q,d,u,m;this.tf=(!this.pa||this.gd||this.vc)&&this.Py&&!this.Xj;0===this.Yb&&this.pg&&(this.tf=!1);this.devicePixelRatio=this.tf?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;"object"===typeof window.StatusBar&&
window.StatusBar.hide();this.Gb();0<this.Yb&&this.setSize(window.innerWidth,window.innerHeight,!0);this.canvas.addEventListener("webglcontextlost",function(c){c.preventDefault();a.Bx();fa("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){a.k.Gp();a.k.ge(a.k.width,a.k.height,!0);a.jb=null;a.Ua=null;a.hm[0]=null;a.hm[1]=null;a.Cx();a.fa=!0;fa("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);try{this.yv&&
(this.Mc||this.gd||!this.pa)&&(c={alpha:!0,depth:!1,antialias:!1,powerPreference:"high-performance",failIfMajorPerformanceCaveat:!0},this.Dh||(this.u=this.canvas.getContext("webgl2",c)),this.u||(this.u=this.canvas.getContext("webgl",c)||this.canvas.getContext("experimental-webgl",c)))}catch(w){}if(this.u){if(c=this.u.getExtension("WEBGL_debug_renderer_info"))this.qm=this.u.getParameter(c.UNMASKED_RENDERER_WEBGL)+" ["+this.u.getParameter(c.UNMASKED_VENDOR_WEBGL)+"]";this.ya&&(this.qm+=" [front-to-back enabled]");
this.pa||(this.Db=document.createElement("canvas"),jQuery(this.Db).appendTo(this.canvas.parentNode),this.Db.oncontextmenu=function(){return!1},this.Db.onselectstart=function(){return!1},this.Db.width=Math.round(this.uj*this.devicePixelRatio),this.Db.height=Math.round(this.nh*this.devicePixelRatio),jQuery(this.Db).css({width:this.uj+"px",height:this.nh+"px"}),this.fr(),this.gn=this.Db.getContext("2d"));this.k=new qb(this.u,this.sf,this.ya);this.k.ge(this.canvas.width,this.canvas.height);this.k.fp=
0!==this.qv;this.Ba=null;c=0;for(e=this.p.length;c<e;c++)for(f=this.p[c],b=0,k=f.M.length;b<k;b++)d=f.M[b],d.Za=this.k.pm(d.id),d.Rc=this.k.mn(d.Za),this.Tg=this.Tg||this.k.hi(d.Za);c=0;for(e=this.hd.length;c<e;c++){u=this.hd[c];b=0;for(k=u.M.length;b<k;b++)d=u.M[b],d.Za=this.k.pm(d.id),d.Rc=this.k.mn(d.Za);u.nd();b=0;for(k=u.P.length;b<k;b++){m=u.P[b];f=0;for(q=m.M.length;f<q;f++)d=m.M[f],d.Za=this.k.pm(d.id),d.Rc=this.k.mn(d.Za),this.Tg=this.Tg||this.k.hi(d.Za);m.nd()}}}else{if(0<this.Yb&&this.pb){this.canvas=
null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.Ba=AppMobi.canvas.getContext("2d");try{this.Ba.samplingMode=this.qa?"smooth":"sharp",this.Ba.globalScale=1,this.Ba.HTML5CompatibilityMode=!0,this.Ba.imageSmoothingEnabled=this.qa}catch(l){}0!==this.width&&0!==this.height&&(this.Ba.width=this.width,this.Ba.height=this.height)}this.Ba||(this.Mc?(c={antialias:!!this.qa,alpha:!0},this.Ba=this.canvas.getContext("2d",c)):(c={alpha:!0},this.Ba=this.canvas.getContext("2d",
c)),this.Nk(this.Ba,this.qa));this.gn=this.Db=null}this.Nr=function(c){a.mb(!1,c)};window==window.top||this.pa||this.Qp||this.Ke||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.Mc&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(fa("Reloading for continuous preview"),this.gk="__c2_continuouspreview",
this.si=!0),this.Qx&&!this.sf&&(jQuery(window).focus(function(){a.setSuspended(!1)}),jQuery(window).blur(function(){var c=window.parent;c&&c.document.hasFocus()||a.setSuspended(!0)})));window.addEventListener("blur",function(){a.Cg()});this.pa||(c=function(a){if(pb(a)&&document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(c){}},"undefined"!==typeof PointerEvent?document.addEventListener("pointerdown",
c):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",c):document.addEventListener("touchstart",c),document.addEventListener("mousedown",c));0===this.Yb&&this.tf&&1<this.devicePixelRatio&&this.setSize(this.Wa,this.Va,!0);this.Sr();this.Nw();this.go();this.ja={}};h.prototype.setSize=function(a,c,e){var b=0,k=0,f=0,q=0,q=0;if(this.tg!==a||this.sg!==c||e){this.tg=a;this.sg=c;var d=this.Yb;if((f=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||
document.fullScreen||this.gg)&&!this.vc)||0!==this.Yb||e)f&&(d=this.Fe),e=this.devicePixelRatio,4<=d?(5===d&&1!==e&&(a+=1,c+=1),f=this.Wa/this.Va,a/c>f?(f*=c,5===d?(q=f*e/this.Wa,1<q?q=Math.floor(q):1>q&&(q=1/Math.ceil(1/q)),f=this.Wa*q/e,q=this.Va*q/e,b=(a-f)/2,k=(c-q)/2,a=f,c=q):(b=(a-f)/2,a=f)):(q=a/f,5===d?(q=q*e/this.Va,1<q?q=Math.floor(q):1>q&&(q=1/Math.ceil(1/q)),f=this.Wa*q/e,q=this.Va*q/e,b=(a-f)/2,k=(c-q)/2,a=f):k=(c-q)/2,c=q)):f&&0===d&&(b=Math.floor((a-this.Wa)/2),k=Math.floor((c-this.Va)/
2),a=this.Wa,c=this.Va),2>d&&(this.gh=e),this.uj=Math.round(a),this.nh=Math.round(c),this.width=Math.round(a*e),this.height=Math.round(c*e),this.fa=!0,this.ds?(this.G=this.width,this.F=this.height,this.sc=!0):this.width<this.Wa&&this.height<this.Va||1===d?(this.G=this.width,this.F=this.height,this.sc=!0):(this.G=this.Wa,this.F=this.Va,this.sc=!1,2===d?(f=this.Wa/this.Va,d=this.tg/this.sg,d<f?this.G=this.F*d:d>f&&(this.F=this.G/d)):3===d&&(f=this.Wa/this.Va,d=this.tg/this.sg,d>f?this.G=this.F*d:d<
f&&(this.F=this.G/d))),this.nj&&!this.pa&&(jQuery(this.nj).css({width:Math.round(a)+"px",height:Math.round(c)+"px","margin-left":Math.floor(b)+"px","margin-top":Math.floor(k)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(a)+"px",height:Math.round(c)+"px"})),this.canvas&&(this.canvas.width=Math.round(a*e),this.canvas.height=Math.round(c*e),this.gd?(this.canvas.style.left=Math.floor(b)+"px",this.canvas.style.top=Math.floor(k)+"px",this.canvas.style.width=Math.round(a)+
"px",this.canvas.style.height=Math.round(c)+"px"):this.tf&&!this.pa&&(this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(c)+"px")),this.Db&&(this.Db.width=Math.round(a*e),this.Db.height=Math.round(c*e),this.Db.style.width=this.uj+"px",this.Db.style.height=this.nh+"px"),this.k&&this.k.ge(Math.round(a*e),Math.round(c*e)),this.pb&&this.Ba&&(this.Ba.width=Math.round(a),this.Ba.height=Math.round(c)),this.Ba&&this.Nk(this.Ba,this.qa),this.Sr(),this.Up&&!this.vc&&window.scrollTo(0,
0)}};h.prototype.Sr=function(){if(this.Iu&&0!==this.en){var a="portrait";2===this.en&&(a="landscape");try{screen.orientation&&screen.orientation.lock?screen.orientation.lock(a).catch(function(){}):screen.lockOrientation?screen.lockOrientation(a):screen.webkitLockOrientation?screen.webkitLockOrientation(a):screen.mozLockOrientation?screen.mozLockOrientation(a):screen.msLockOrientation&&screen.msLockOrientation(a)}catch(c){console&&console.warn&&console.warn("Failed to lock orientation: ",c)}}};h.prototype.Bx=
function(){this.k.Pu();this.Im=!0;var a,c,e;a=0;for(c=this.p.length;a<c;a++)e=this.p[a],e.ei&&e.ei()};h.prototype.Cx=function(){this.Im=!1;var a,c,e;a=0;for(c=this.p.length;a<c;a++)e=this.p[a],e.fi&&e.fi()};h.prototype.fr=function(){if(!this.pa){var a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.gg)&&!this.vc?jQuery(this.canvas).offset():jQuery(this.canvas).position();a.position="absolute";jQuery(this.Db).css(a)}};var l=window.cancelAnimationFrame||
window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;h.prototype.setSuspended=function(a){var c;if(a&&!this.Ih)for(fa("[Construct 2] Suspending"),this.Ih=!0,-1!==this.rn&&l&&l(this.rn),-1!==this.Kn&&clearTimeout(this.Kn),a=0,c=this.ti.length;a<c;a++)this.ti[a](!0);else if(!a&&this.Ih){fa("[Construct 2] Resuming");this.Ih=!1;this.dk=Za();this.yf=Za();a=this.Xh=this.Mj=0;for(c=this.ti.length;a<c;a++)this.ti[a](!1);this.mb(!1)}};
h.prototype.No=function(a){this.ti.push(a)};h.prototype.qe=function(a){return this.qk[a]};h.prototype.Qh=function(a){a&&a.project||ga("Project model unavailable");a=a.project;this.name=a[0];this.np=a[1];this.Yb=a[12];this.Wa=a[10];this.Va=a[11];this.$q=this.Wa/2;this.br=this.Va/2;this.pa&&!this.gd&&(4<=a[12]||0===a[12])&&(fa("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.Yb=3);this.Un=a[18];this.Ne=a[19];if(0===this.Ne){var c=
new Image;c.crossOrigin="anonymous";this.wr(c,"loading-logo.png");this.Me={mk:c}}else if(4===this.Ne){c=new Image;c.src="";var e=new Image;e.src="";var b=new Image;b.src="";var k=new Image;k.src="";var f=new Image;f.src="";var q=new Image;q.src="";var d=new Image;d.src="";var u=new Image;u.src="";var m=new Image;m.src="";var w=new Image;w.src="";var l=new Image;l.src="";var h=new Image;h.src="";this.Me={mk:[c,e,b,k],Wx:[f,q,d,u],Sy:[m,w,l,h]}}this.bi=a[21];this.qk=rc();this.Hd=new T(this);c=0;for(e=
a[2].length;c<e;c++)d=a[2][c],b=this.qe(d[0]),rb(d,b.prototype),u=new b(this),u.Rk=d[1],u.Le=d[2],u.wz=d[5],u.Fq=d[9],u.D&&u.D(),this.plugins.push(u);this.qk=rc();c=0;for(e=a[3].length;c<e;c++){d=a[3][c];f=this.qe(d[1]);u=null;b=0;for(k=this.plugins.length;b<k;b++)if(this.plugins[b]instanceof f){u=this.plugins[b];break}m=new u.W(u);m.name=d[0];m.B=d[2];m.Am=d[3].slice(0);m.Ry=d[3].length;m.Ju=d[4];m.iw=d[5];m.Y=d[11];m.B?(m.yg=[],m.Vd=this.qh++,m.Da=null):(m.yg=null,m.Vd=-1,m.Da=[]);m.Hj=null;m.Zf=
null;m.gp=null;m.Ab=!1;m.hc=null;d[6]?(m.wi=d[6][0],m.Yk=d[6][1],m.Ue=d[6][2]):(m.wi=null,m.Yk=0,m.Ue=0);d[7]?m.gc=d[7]:m.gc=null;m.index=c;m.d=[];m.yj=[];m.ke=[new sb(m)];m.sd=0;m.Jc=null;m.Wu=0;m.Ng=!0;m.cl=tb;m.qw=ub;m.ww=vb;m.N=wb;m.ii=xb;m.Qe=yb;m.jd=zb;m.Pj=Ab;m.im=Bb;m.lm=Cb;m.Gc=Hb;m.mm=Ib;m.rj=new hb(this.Wa,this.Va);m.ej=!0;m.fj=!1;m.ja={};m.toString=Jb;m.Ha=[];b=0;for(k=d[8].length;b<k;b++){w=d[8][b];l=this.qe(w[1]);h=null;f=0;for(q=this.Ha.length;f<q;f++)if(this.Ha[f]instanceof l){h=this.Ha[f];
break}h||(h=new l(this),h.Gq=[],h.Ym=new ca,h.D&&h.D(),this.Ha.push(h));-1===h.Gq.indexOf(m)&&h.Gq.push(m);f=new h.W(h,m);f.name=w[0];f.Y=w[2];f.D();m.Ha.push(f)}m.global=d[9];m.Fm=d[10];m.M=[];b=0;for(k=d[12].length;b<k;b++)m.M.push({id:d[12][b][0],name:d[12][b][1],Za:-1,Rc:!1,nc:!0,index:b});m.Lz=d[13];this.Un&&!m.B&&!m.Fm&&u.Le||m.D();m.name&&(this.types[m.name]=m);this.p.push(m);u.Rk&&(b=new u.S(m),b.uid=this.bi++,b.ir=this.Hq++,b.rf=0,b.uh=Kb,b.toString=Lb,b.A=d[14],b.D(),m.d.push(b),this.be[b.uid.toString()]=
b)}c=0;for(e=a[4].length;c<e;c++)for(f=a[4][c],q=this.p[f[0]],b=1,k=f.length;b<k;b++)d=this.p[f[b]],d.Da.push(q),q.yg.push(d);c=0;for(e=a[28].length;c<e;c++){f=a[28][c];q=[];b=0;for(k=f.length;b<k;b++)q.push(this.p[f[b]]);b=0;for(k=q.length;b<k;b++)q[b].Ab=!0,q[b].hc=q}if(0<this.qh)for(c=0,e=this.p.length;c<e;c++)if(d=this.p[c],!d.B&&d.Da.length){d.Hj=Array(this.qh);d.Zf=Array(this.qh);d.gp=Array(this.qh);m=[];b=h=l=w=0;for(k=d.Da.length;b<k;b++)for(u=d.Da[b],d.Hj[u.Vd]=w,w+=u.Ry,d.Zf[u.Vd]=l,l+=
u.Ju,d.gp[u.Vd]=h,h+=u.iw,f=0,q=u.M.length;f<q;f++)m.push(ya({},u.M[f]));d.M=m.concat(d.M);b=0;for(k=d.M.length;b<k;b++)d.M[b].index=b}c=0;for(e=a[5].length;c<e;c++)d=a[5][c],b=new Mb(this,d),this.Nm[b.name]=b,this.hd.push(b);c=0;for(e=a[6].length;c<e;c++)d=a[6][c],b=new Nb(this,d),this.cm[b.name]=b,this.Ud.push(b);c=0;for(e=this.Ud.length;c<e;c++)this.Ud[c].Pa();c=0;for(e=this.Ud.length;c<e;c++)this.Ud[c].Rn();c=0;for(e=this.bl.length;c<e;c++)this.bl[c].Pa();A(this.bl);this.Hu=a[7];this.rh=a[8];
this.Ac=a[9];this.gh=1;this.yv=a[13];this.qa=a[14];this.Zo=a[15];this.Py=a[17];this.en=a[20];this.Iu=0<this.en;this.Qx=a[22];this.sc=this.ds=a[23];this.qv=a[24];this.Xx=a[25];this.ya=a[27]&&!this.Je;this.Sk=Date.now();A(this.qk);this.Vw()};var c=!1,f=0,a=[];h.prototype.by=function(c,e){function b(){f--;k.Aq()}var k=this;c.addEventListener("load",b);c.addEventListener("error",b);a.push([c,e]);this.Aq()};h.prototype.Aq=function(){for(var c;a.length&&100>f;)f++,c=a.shift(),this.wr(c[0],c[1])};h.prototype.gl=
function(a,e){a.cocoonLazyLoad=!0;a.onerror=function(e){c=a.Uo=!0;console&&console.error&&console.error("Error loading image '"+a.src+"': ",e)};this.gd?a.src=e:a.src||("undefined"!==typeof XAPKReader?XAPKReader.get(e,function(c){a.src=c},function(b){c=a.Uo=!0;console&&console.error&&console.error("Error extracting image '"+e+"' from expansion file: ",b)}):(a.crossOrigin="anonymous",this.by(a,e)));this.Wg.push(a)};h.prototype.gw=function(a){var c,e;c=0;for(e=this.Wg.length;c<e;c++)if(this.Wg[c].Qu===
a)return this.Wg[c];return null};var k=0,e=!1;h.prototype.Nw=function(){this.Rf&&(k=this.Rf.wy(this.Hu))};h.prototype.Po=function(){var a=k,c=0,b=0,f=!0,q,d,b=0;for(q=this.Wg.length;b<q;b++){d=this.Wg[b];var m=d.Ql;if(!m||0>=m)m=5E4;a+=m;d.src&&(d.complete||d.loaded)&&!d.Uo?c+=m:f=!1}f&&this.Xx&&this.Rf&&(e||(this.Rf.By(),e=!0),b=this.Rf.xw(),c+=b,b<k&&(f=!1));this.$b=0==a?1:c/a;return f};var u=!1;h.prototype.go=function(){if(this.Ba||this.k){var a=this.Ba||this.gn;this.Db&&this.fr();var e=window.innerWidth,
b=window.innerHeight;this.tg===e&&this.sg===b||this.setSize(e,b);this.$b=0;this.dq=-1;var k=this;if(this.Po()&&(4!==this.Ne||u))this.Ow();else{b=Date.now()-this.Sk;if(a){var f=this.width,q=this.height,e=this.devicePixelRatio;if(3>this.Ne&&(this.Mc||500<=b&&this.dq!=this.$b)){a.clearRect(0,0,f,q);var b=f/2,q=q/2,f=0===this.Ne&&this.Me.mk.complete,m=40*e,w=0,l=80*e,h;if(f){var g=this.Me.mk,l=g.width*e;h=g.height*e;m=l/2;w=h/2;a.drawImage(g,ta(b-m),ta(q-w),l,h)}1>=this.Ne?(b=ta(b-m)+.5,q=ta(q+(w+(f?
12*e:0)))+.5,a.fillStyle=c?"red":"DodgerBlue",a.fillRect(b,q,Math.floor(l*this.$b),6*e),a.strokeStyle="black",a.strokeRect(b,q,l,6*e),a.strokeStyle="white",a.strokeRect(b-1*e,q-1*e,l+2*e,8*e)):2===this.Ne&&(a.font=this.gd?"12pt ArialMT":"12pt Arial",a.fillStyle=c?"#f00":"#999",a.Kz="middle",e=Math.round(100*this.$b)+"%",f=a.measureText?a.measureText(e):null,a.fillText(e,b-(f?f.width:0)/2,q));this.dq=this.$b}else if(4===this.Ne){this.vv(a);d?d(function(){k.go()}):setTimeout(function(){k.go()},16);
return}}setTimeout(function(){k.go()},this.Mc?10:100)}}};var m=-1,q="undefined"===typeof cr_is_preview?200:0,w=!0,U=!1,E=0,Ea=0,oa="undefined"===typeof cr_is_preview?3E3:0,K=null,L=null,H=0;h.prototype.vv=function(a){if(!u){for(var e=Math.ceil(this.width),b=Math.ceil(this.height),k=this.Me.mk,f=this.Me.Wx,d=this.Me.Sy,l=0;4>l;++l)if(!k[l].complete||!f[l].complete||!d[l].complete)return;0===H&&(m=Date.now());var l=Date.now(),h=!1,g=a,n,t;w||U?(a.clearRect(0,0,e,b),K&&K.width===e&&K.height===b||(K=
document.createElement("canvas"),K.width=e,K.height=b,L=K.getContext("2d")),g=L,h=!0,w&&1===H&&(m=Date.now())):a.globalAlpha=1;g.fillStyle="#333333";g.fillRect(0,0,e,b);256<this.nh?(n=Ja(.22*b,105,.6*e),t=.25*n,g.drawImage(r(f,n),.5*e-n/2,.2*b-t/2,n,t),t=n=Math.min(.395*b,.95*e),g.drawImage(r(k,n),.5*e-n/2,.485*b-t/2,n,t),n=Ja(.22*b,105,.6*e),t=.25*n,g.drawImage(r(d,n),.5*e-n/2,.868*b-t/2,n,t),g.fillStyle="#3C3C3C",n=e,t=Math.max(.005*b,2),g.fillRect(0,.8*b-t/2,n,t),g.fillStyle=c?"red":"#E0FF65",
n=e*this.$b,g.fillRect(.5*e-n/2,.8*b-t/2,n,t)):(t=n=.55*b,g.drawImage(r(k,n),.5*e-n/2,.45*b-t/2,n,t),g.fillStyle="#3C3C3C",n=e,t=Math.max(.005*b,2),g.fillRect(0,.85*b-t/2,n,t),g.fillStyle=c?"red":"#E0FF65",n=e*this.$b,g.fillRect(.5*e-n/2,.85*b-t/2,n,t));h&&(w?a.globalAlpha=0===H?0:Math.min((l-m)/300,1):U&&(a.globalAlpha=Math.max(1-(l-Ea)/300,0)),a.drawImage(K,0,0,e,b));w&&300<=l-m&&2<=H&&(w=!1,E=l);!w&&l-E>=oa&&!U&&1<=this.$b&&(U=!0,Ea=l);if(U&&l-Ea>=300+q||"undefined"!==typeof cr_is_preview&&1<=
this.$b&&500>Date.now()-m)u=!0,U=w=!1,this.Me=L=K=null;++H}};h.prototype.Ow=function(){this.Db&&(this.canvas.parentNode.removeChild(this.Db),this.Db=this.gn=null);this.Sk=Date.now();this.yf=Za();var a,c,e;if(this.Un)for(a=0,c=this.p.length;a<c;a++)e=this.p[a],e.B||e.Fm||!e.X.Le||e.D();else this.Mh=!1;a=0;for(c=this.hd.length;a<c;a++)this.hd[a].Ru();2<=this.Yb&&(a=this.Wa/this.Va,c=this.width/this.height,this.gh=2!==this.Yb&&c>a||2===this.Yb&&c<a?this.height/this.Va:this.width/this.Wa);this.np?this.Nm[this.np].Gn():
this.hd[0].Gn();this.Un||(this.jk=1,this.trigger(T.prototype.c.uo,null),window.C2_RegisterSW&&window.C2_RegisterSW());navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();a=0;for(c=this.p.length;a<c;a++)e=this.p[a],e.Oq&&e.Oq();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.mb(!1);this.pb&&AppMobi.webview.execute("onGameReady();")};h.prototype.mb=function(a,c,e){if(this.ba){var b=Za();if(e||!this.Ih||a){a||
(d?this.rn=d(this.Nr):this.Kn=setTimeout(this.Nr,this.sf?1:16));c=c||b;var k=this.Yb;((e=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.vc)||this.gg)&&0<this.Fe&&(k=this.Fe);if(0<k){var k=window.innerWidth,f=window.innerHeight;this.tg===k&&this.sg===f||this.setSize(k,f)}this.pa||(e?this.Kj||(this.Kj=!0):this.Kj?(this.Kj=!1,0===this.Yb&&this.setSize(Math.round(this.Nq/this.devicePixelRatio),Math.round(this.Mq/this.devicePixelRatio),
!0)):(this.Nq=this.width,this.Mq=this.height));this.Mh&&(e=this.Po(),this.jk=this.$b,e&&(this.Mh=!1,this.$b=1,this.trigger(T.prototype.c.uo,null),window.C2_RegisterSW&&window.C2_RegisterSW()));this.tx(c);!this.fa&&!this.Mc||this.Im||this.si||a||(this.fa=!1,this.k?this.Kb():this.ed(),this.qi&&(this.canvas&&this.canvas.toDataURL&&(this.Hr=this.canvas.toDataURL(this.qi[0],this.qi[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.Hr),this.trigger(T.prototype.c.jt,null)),this.qi=null));this.vz||(this.Rg++,
this.kf++,this.Mj++);this.Xh+=Za()-b}}};h.prototype.tx=function(a){var c,e,b,k,f,q,d,m;1E3<=a-this.yf&&(this.yf+=1E3,1E3<=a-this.yf&&(this.yf=a),this.gm=this.Mj,this.Mj=0,this.Pl=this.Xh,this.Xh=0);c=0;0!==this.dk&&(c=a-this.dk,0>c&&(c=0),this.df=c/=1E3,.5<this.df?this.df=0:this.df>1/this.Eq&&(this.df=1/this.Eq));this.dk=a;this.De=this.df*this.Jf;this.Bb.add(this.De);this.oe.add(c);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.gg)&&
!this.vc;2<=this.Yb||a&&0<this.Fe?(c=this.Wa/this.Va,e=this.width/this.height,b=this.Yb,a&&0<this.Fe&&(b=this.Fe),this.gh=2!==b&&e>c||2===b&&e<c?this.height/this.Va:this.width/this.Wa,this.ba&&(this.ba.Kk(this.ba.scrollX),this.ba.Lk(this.ba.scrollY))):this.gh=this.tf?this.devicePixelRatio:1;this.Gb();this.wc++;this.Hd.jy();this.wc--;this.Gb();this.wc++;e=this.Lq.We();a=0;for(c=e.length;a<c;a++)e[a].Ez();a=0;for(c=this.p.length;a<c;a++)if(q=this.p[a],!q.B&&(q.Ha.length||q.Da.length))for(e=0,b=q.d.length;e<
b;e++)for(d=q.d[e],k=0,f=d.L.length;k<f;k++)d.L[k].mb();a=0;for(c=this.p.length;a<c;a++)if(q=this.p[a],!q.B&&(q.Ha.length||q.Da.length))for(e=0,b=q.d.length;e<b;e++)for(d=q.d[e],k=0,f=d.L.length;k<f;k++)m=d.L[k],m.Vx&&m.Vx();e=this.$m.We();a=0;for(c=e.length;a<c;a++)e[a].mb();this.wc--;this.Pw();for(a=0;this.ih&&10>a++;)this.ep(this.ih);a=0;for(c=this.Ud.length;a<c;a++)this.Ud[a].um=!1;this.ba.hf&&this.ba.hf.Ya();A(this.lr);this.wc++;a=0;for(c=this.p.length;a<c;a++)if(q=this.p[a],!q.B&&(q.Ha.length||
q.Da.length))for(e=0,b=q.d.length;e<b;e++)for(d=q.d[e],k=0,f=d.L.length;k<f;k++)m=d.L[k],m.Jn&&m.Jn();e=this.an.We();a=0;for(c=e.length;a<c;a++)e[a].Jn();this.wc--};h.prototype.Cg=function(){var a,c,e,b,k,f,q,d,m;a=0;for(c=this.p.length;a<c;a++)if(q=this.p[a],!q.B)for(e=0,b=q.d.length;e<b;e++)if(d=q.d[e],d.Cg&&d.Cg(),d.L)for(k=0,f=d.L.length;k<f;k++)m=d.L[k],m.Cg&&m.Cg()};h.prototype.ep=function(a){var c=this.ba;this.ba.Cy();var e,b,k;if(this.k)for(e=0,b=this.p.length;e<b;e++)k=this.p[e],k.B||!k.Ai||
k.global&&0!==k.d.length||-1!==a.Bh.indexOf(k)||k.Ai();c==a&&A(this.Hd.fc);A(this.lr);this.or(!0);a.Gn();this.or(!1);this.fa=!0;this.Gb()};h.prototype.or=function(a){var c,e,b,k,f,q,d,m,u;c=0;for(e=this.Ha.length;c<e;c++)b=this.Ha[c],a?b.ci&&b.ci():b.di&&b.di();c=0;for(e=this.p.length;c<e;c++)if(b=this.p[c],b.global||b.X.Rk)for(k=0,f=b.d.length;k<f;k++)if(q=b.d[k],a?q.ci&&q.ci():q.di&&q.di(),q.L)for(d=0,m=q.L.length;d<m;d++)u=q.L[d],a?u.ci&&u.ci():u.di&&u.di()};h.prototype.If=function(a){this.$m.add(a)};
h.prototype.Fy=function(a){this.an.add(a)};h.prototype.Rj=function(a){return a&&-1!==a.ai?this.df*a.ai:this.De};h.prototype.ed=function(){this.ba.ed(this.Ba);this.pb&&this.Ba.present()};h.prototype.Kb=function(){this.ya&&(this.ef=1,this.ba.Ce(this.k));this.ba.Kb(this.k);this.k.Zx()};h.prototype.Du=function(a){a&&this.Yl.push(a)};h.prototype.Uj=function(a){a=a.toString();return this.be.hasOwnProperty(a)?this.be[a]:null};var W=[];h.prototype.Xe=function(a){var c,e;c=a.type.name;var b=null;if(this.cf.hasOwnProperty(c)){if(b=
this.cf[c],b.contains(a))return}else b=W.length?W.pop():new ca,this.cf[c]=b;b.add(a);this.He=!0;if(a.Ab)for(c=0,e=a.siblings.length;c<e;c++)this.Xe(a.siblings[c]);this.Dm&&b.Ug.push(a);this.Cm||(this.wc++,this.trigger(Object.getPrototypeOf(a.type.X).c.po,a),this.wc--)};h.prototype.Gb=function(){if(this.He){var a,c,e,b,k,f;this.Dm=!0;e=0;for(k=this.cd.length;e<k;++e)for(a=this.cd[e],c=a.type,c.d.push(a),b=0,f=c.Da.length;b<f;++b)c.Da[b].d.push(a),c.Da[b].Ng=!0;A(this.cd);this.Ys();Ya(this.cf);this.He=
this.Dm=!1}};h.prototype.Ys=function(){for(var a in this.cf)this.cf.hasOwnProperty(a)&&this.ps(this.cf[a])};h.prototype.ps=function(a){var c=a.We(),e=c[0].type,b,k,f,q,d,m;$a(e.d,a);e.Ng=!0;0===e.d.length&&(e.fj=!1);b=0;for(k=e.Da.length;b<k;++b)m=e.Da[b],$a(m.d,a),m.Ng=!0;b=0;for(k=this.Hd.fc.length;b<k;++b)if(d=this.Hd.fc[b],d.Sb.hasOwnProperty(e.index)&&$a(d.Sb[e.index].Xd,a),!e.B)for(f=0,q=e.Da.length;f<q;++f)m=e.Da[f],d.Sb.hasOwnProperty(m.index)&&$a(d.Sb[m.index].Xd,a);if(d=c[0].j){if(d.Ec)for(f=
d.d,b=0,k=f.length;b<k;++b)q=f[b],a.contains(q)&&(q.Aa(),d.Eb.update(q,q.ac,null),q.ac.set(0,0,-1,-1));$a(d.d,a);d.mi(0)}for(b=0;b<c.length;++b)this.os(c[b],e);a.clear();W.push(a);this.fa=!0};h.prototype.os=function(a,c){var e,b,k;e=0;for(b=this.Yl.length;e<b;++e)this.Yl[e](a);a.ze&&c.rj.update(a,a.ze,null);(e=a.j)&&e.Gg(a,!0);if(a.L)for(e=0,b=a.L.length;e<b;++e)k=a.L[e],k.Ef&&k.Ef(),k.behavior.Ym.remove(a);this.Lq.remove(a);this.$m.remove(a);this.an.remove(a);a.Ef&&a.Ef();this.be.hasOwnProperty(a.uid.toString())&&
delete this.be[a.uid.toString()];this.rk--;100>c.yj.length&&c.yj.push(a)};h.prototype.Rl=function(a,c,e,b){if(a.B){var k=ta(Math.random()*a.yg.length);return this.Rl(a.yg[k],c,e,b)}return a.Jc?this.Ae(a.Jc,c,!1,e,b,!1):null};var Q=[];h.prototype.Ae=function(a,c,e,b,k,f){var q,d,m,u;if(!a)return null;var w=this.p[a[1]],l=w.X.Le;if(this.Mh&&l&&!w.Fm||l&&!this.k&&11===a[0][11])return null;var h=c;l||(c=null);var g;w.yj.length?(g=w.yj.pop(),g.Bc=!0,w.X.S.call(g,w)):(g=new w.X.S(w),g.Bc=!1);!e||f||this.be.hasOwnProperty(a[2].toString())?
g.uid=this.bi++:g.uid=a[2];this.be[g.uid.toString()]=g;g.ir=this.Hq++;g.rf=w.d.length;q=0;for(d=this.cd.length;q<d;++q)this.cd[q].type===w&&g.rf++;g.uh=Kb;g.toString=Lb;m=a[3];if(g.Bc)Ya(g.ja);else{g.ja={};if("undefined"!==typeof cr_is_preview)for(g.Jp=[],g.Jp.length=m.length,q=0,d=m.length;q<d;q++)g.Jp[q]=m[q][1];g.hb=[];g.hb.length=m.length}q=0;for(d=m.length;q<d;q++)g.hb[q]=m[q][0];if(l){var n=a[0];g.x=ha(b)?n[0]:b;g.y=ha(k)?n[1]:k;g.z=n[2];g.width=n[3];g.height=n[4];g.depth=n[5];g.m=n[6];g.opacity=
n[7];g.Nb=n[8];g.Ob=n[9];g.Hb=n[10];q=n[11];!this.k&&w.M.length&&(g.Hb=q);g.jh=jb(g.Hb);this.u&&kb(g,g.Hb,this.u);if(g.Bc){q=0;for(d=n[12].length;q<d;q++)for(m=0,u=n[12][q].length;m<u;m++)g.Ja[q][m]=n[12][q][m];g.Qa.set(0,0,0,0);g.ze.set(0,0,-1,-1);g.ac.set(0,0,-1,-1);g.Xb.ni(g.Qa);A(g.Gl)}else{g.Ja=n[12].slice(0);q=0;for(d=g.Ja.length;q<d;q++)g.Ja[q]=n[12][q].slice(0);g.ea=[];g.re=[];g.re.length=w.M.length;g.Qa=new wa(0,0,0,0);g.ze=new wa(0,0,-1,-1);g.ac=new wa(0,0,-1,-1);g.Xb=new xa;g.Gl=[];g.za=
Ob;g.oz=Pb;g.Ib=Qb;g.Aa=Rb;g.Ny=Sb;g.$r=Tb;g.wd=Ub}g.Sg=!1;g.Iy=0;g.Hy=0;g.Gy=null;14===n.length&&(g.Sg=!0,g.Iy=n[13][0],g.Hy=n[13][1],g.Gy=n[13][2]);q=0;for(d=w.M.length;q<d;q++)g.re[q]=!0;g.ie=!0;g.nd=Vb;g.nd();g.as=!!g.ea.length;g.Fl=!0;g.Kl=!0;w.ej=!0;g.visible=!0;g.ai=-1;g.j=c;g.pd=c.d.length;g.ef=0;"undefined"===typeof g.ga&&(g.ga=null);this.fa=g.$e=!0}var t;A(Q);q=0;for(d=w.Da.length;q<d;q++)Q.push.apply(Q,w.Da[q].Ha);Q.push.apply(Q,w.Ha);if(g.Bc)for(q=0,d=Q.length;q<d;q++){var U=Q[q];t=g.L[q];
t.Bc=!0;U.behavior.S.call(t,U,g);n=a[4][q];m=0;for(u=n.length;m<u;m++)t.A[m]=n[m];t.D();U.behavior.Ym.add(g)}else for(g.L=[],q=0,d=Q.length;q<d;q++)U=Q[q],t=new U.behavior.S(U,g),t.Bc=!1,t.A=a[4][q].slice(0),t.D(),g.L.push(t),U.behavior.Ym.add(g);n=a[5];if(g.Bc)for(q=0,d=n.length;q<d;q++)g.A[q]=n[q];else g.A=n.slice(0);this.cd.push(g);this.He=!0;c&&(c.fh(g,!0),1!==c.Pc||1!==c.Qc)&&(w.fj=!0);this.rk++;if(w.Ab){if(g.Ab=!0,g.Bc?A(g.siblings):g.siblings=[],!e&&!f){q=0;for(d=w.hc.length;q<d;q++)if(w.hc[q]!==
w){if(!w.hc[q].Jc)return null;g.siblings.push(this.Ae(w.hc[q].Jc,h,!1,l?g.x:b,l?g.y:k,!0))}q=0;for(d=g.siblings.length;q<d;q++)for(g.siblings[q].siblings.push(g),m=0;m<d;m++)q!==m&&g.siblings[q].siblings.push(g.siblings[m])}}else g.Ab=!1,g.siblings=null;g.D();q=0;for(d=g.L.length;q<d;q++)g.L[q].Ux&&g.L[q].Ux();return g};h.prototype.Sj=function(a){var c,e;c=0;for(e=this.ba.P.length;c<e;c++){var b=this.ba.P[c];if(mb(b.name,a))return b}return null};h.prototype.ag=function(a){a=ta(a);0>a&&(a=0);a>=this.ba.P.length&&
(a=this.ba.P.length-1);return this.ba.P[a]};h.prototype.wp=function(a){return ja(a)?this.ag(a):this.Sj(a.toString())};h.prototype.Nl=function(a){var c,e;c=0;for(e=a.length;c<e;c++)a[c].N().R=!0};h.prototype.ii=function(a){var c,e;c=0;for(e=a.length;c<e;c++)a[c].ii()};h.prototype.Qe=function(a){var c,e;c=0;for(e=a.length;c<e;c++)a[c].Qe()};h.prototype.jd=function(a){var c,e;c=0;for(e=a.length;c<e;c++)a[c].jd()};h.prototype.Xr=function(a){if(a.ej){var c,e,b=a.d;c=0;for(e=b.length;c<e;++c)b[c].$r();
b=this.cd;c=0;for(e=b.length;c<e;++c)b[c].type===a&&b[c].$r();a.ej=!1}};h.prototype.ow=function(a,c,e,b){var k,f,q=a?1!==a.Pc||1!==a.Qc:!1;if(c.B)for(a=0,k=c.yg.length;a<k;++a)f=c.yg[a],q||f.fj?Fa(b,f.d):(this.Xr(f),f.rj.Fk(e,b));else q||c.fj?Fa(b,c.d):(this.Xr(c),c.rj.Fk(e,b))};h.prototype.Wk=function(a,c,e){var b=a.N(),k,f,q,d,m=this.Ea().Ia.kc,u,w,g;if(b.R)for(b.R=!1,A(b.d),k=0,d=a.d.length;k<d;k++)q=a.d[k],q.Aa(),u=q.j.ub(c,e,!0),w=q.j.ub(c,e,!1),q.Ib(u,w)?b.d.push(q):m&&b.I.push(q);else{f=0;
g=m?b.I:b.d;k=0;for(d=g.length;k<d;k++)q=g[k],q.Aa(),u=q.j.ub(c,e,!0),w=q.j.ub(c,e,!1),q.Ib(u,w)&&(m?b.d.push(q):(b.d[f]=b.d[k],f++));g.length=f}a.Gc();return b.tm()};h.prototype.Ey=function(a,c){if(!(a&&c&&a!==c&&a.$e&&c.$e))return!1;a.Aa();c.Aa();var e=a.j,b=c.j,k,f,q,d,m,u,w,g;if(e===b||e.Pc===b.Pc&&b.Qc===b.Qc&&e.scale===b.scale&&e.m===b.m&&e.qd===b.qd){if(!a.Qa.Ww(c.Qa)||!a.Xb.Kp(c.Xb)||a.Sg&&c.Sg)return!1;if(a.Sg)return this.Lr(a,c);if(c.Sg)return this.Lr(c,a);w=a.ga&&!a.ga.jg();k=c.ga&&!c.ga.jg();
if(!w&&!k)return!0;w?(a.ga.Sf(a.width,a.height,a.m),w=a.ga):(this.md.Lg(a.Xb,a.x,a.y,a.width,a.height),w=this.md);k?(c.ga.Sf(c.width,c.height,c.m),g=c.ga):(this.md.Lg(c.Xb,c.x,c.y,c.width,c.height),g=this.md);return w.Ch(g,c.x-a.x,c.y-a.y)}w=a.ga&&!a.ga.jg();k=c.ga&&!c.ga.jg();w?(a.ga.Sf(a.width,a.height,a.m),this.md.Ar(a.ga)):this.md.Lg(a.Xb,a.x,a.y,a.width,a.height);w=this.md;k?(c.ga.Sf(c.width,c.height,c.m),this.In.Ar(c.ga)):this.In.Lg(c.Xb,c.x,c.y,c.width,c.height);g=this.In;k=0;for(f=w.kd;k<
f;k++)q=2*k,d=q+1,m=w.lb[q],u=w.lb[d],w.lb[q]=e.ib(m+a.x,u+a.y,!0),w.lb[d]=e.ib(m+a.x,u+a.y,!1);w.Aa();k=0;for(f=g.kd;k<f;k++)q=2*k,d=q+1,m=g.lb[q],u=g.lb[d],g.lb[q]=b.ib(m+c.x,u+c.y,!0),g.lb[d]=b.ib(m+c.x,u+c.y,!1);g.Aa();return w.Ch(g,0,0)};var O=new xa;new wa(0,0,0,0);var J=[];h.prototype.Lr=function(a,c){var e,b,k,f,q=c.Qa,d=a.x,m=a.y;a.sz(q,J);var u=c.ga&&!c.ga.jg();e=0;for(b=J.length;e<b;++e)if(k=J[e],f=k.Hz,q.Xw(f,d,m)&&(O.ni(f),O.offset(d,m),O.Kp(c.Xb)))if(u)if(c.ga.Sf(c.width,c.height,c.m),
k.kn){if(k.kn.Ch(c.ga,c.x-(d+f.left),c.y-(m+f.top)))return A(J),!0}else{if(this.md.Lg(O,0,0,f.right-f.left,f.bottom-f.top),this.md.Ch(c.ga,c.x,c.y))return A(J),!0}else if(k.kn){if(this.md.Lg(c.Xb,0,0,c.width,c.height),k.kn.Ch(this.md,-(d+f.left),-(m+f.top)))return A(J),!0}else return A(J),!0;A(J);return!1};h.prototype.Tr=function(a,c){if(!c)return!1;var e,b,k,f,q;e=0;for(b=a.Ha.length;e<b;e++)if(a.Ha[e].behavior instanceof c)return!0;if(!a.B)for(e=0,b=a.Da.length;e<b;e++)for(q=a.Da[e],k=0,f=q.Ha.length;k<
f;k++)if(q.Ha[k].behavior instanceof c)return!0;return!1};h.prototype.Pn=function(a){return this.Tr(a,jc.cz)};h.prototype.Qn=function(a){return this.Tr(a,jc.dz)};var M=-1;h.prototype.trigger=function(a,c,e){if(!this.ba)return!1;var b=this.ba.hf;if(!b)return!1;var k=!1,f,q,d;M++;var m=b.Wl;q=0;for(d=m.length;q<d;++q)f=this.Qr(a,c,m[q],e),k=k||f;f=this.Qr(a,c,b,e);M--;return k||f};h.prototype.Qr=function(a,c,e,b){var k=!1,f,q,d,m;if(c)for(d=this.Nn(a,c,c.type.name,e,b),k=k||d,m=c.type.Da,f=0,q=m.length;f<
q;++f)d=this.Nn(a,c,m[f].name,e,b),k=k||d;else d=this.Nn(a,c,"system",e,b),k=k||d;return k};h.prototype.Nn=function(a,c,e,b,k){var f,q=!1,d=!1,d="undefined"!==typeof k,m=(d?b.ip:b.Rr)[e];if(!m)return q;var u=null;b=0;for(f=m.length;b<f;++b)if(m[b].method==a){u=m[b].ph;break}if(!u)return q;var w;d?w=u[k]:w=u;if(!w)return null;b=0;for(f=w.length;b<f;b++)a=w[b][0],k=w[b][1],d=this.ew(c,e,a,k),q=q||d;return q};h.prototype.ew=function(a,c,e,b){var k,f,q=!1;this.On++;var d=this.Ea().Ia;d&&this.ii(d.Te);
var m=1<this.On;this.ii(e.Te);m&&this.ay();var u=this.Ek(e);u.Ia=e;a&&(k=this.types[c].N(),k.R=!1,A(k.d),k.d[0]=a,this.types[c].Gc());a=!0;if(e.parent){c=u.Kr;for(k=e.parent;k;)c.push(k),k=k.parent;c.reverse();k=0;for(f=c.length;k<f;k++)if(!c[k].ly()){a=!1;break}}a&&(this.kf++,e.kc?e.ky(b):e.Ya(),q=q||u.xf);this.zk();m&&this.Tx();this.jd(e.Te);d&&this.jd(d.Te);this.He&&0===this.wc&&0===M&&!this.Gm&&this.Gb();this.On--;return q};h.prototype.Qj=function(){var a=this.Ea();return a.Ia.eb[a.Ra]};h.prototype.Zw=
function(){return 0===this.Ea().Ra};h.prototype.pw=function(){var a=this.Ea();return a.Ia.Fc[a.Wb]};h.prototype.ay=function(){this.lk++;this.lk>=this.Tm.length&&this.Tm.push([])};h.prototype.Tx=function(){this.lk--};h.prototype.tp=function(){return this.Tm[this.lk]};h.prototype.Ek=function(a){this.Dj++;this.Dj>=this.am.length&&this.am.push(new Wb);var c=this.Ea();c.reset(a);return c};h.prototype.zk=function(){this.Dj--};h.prototype.Ea=function(){return this.am[this.Dj]};h.prototype.pn=function(a){this.Zh++;
this.Zh>=this.Yh.length&&this.Yh.push(aa({name:a,index:0,ta:!1}));var c=this.up();c.name=a;c.index=0;c.ta=!1;return c};h.prototype.ln=function(){this.Zh--};h.prototype.up=function(){return this.Yh[this.Zh]};h.prototype.vp=function(a,c){for(var e,b,k,f,q,d;c;){e=0;for(b=c.Uc.length;e<b;e++)if(d=c.Uc[e],d instanceof Xb&&mb(a,d.name))return d;c=c.parent}e=0;for(b=this.Ud.length;e<b;e++)for(q=this.Ud[e],k=0,f=q.Ee.length;k<f;k++)if(d=q.Ee[k],d instanceof Xb&&mb(a,d.name))return d;return null};h.prototype.xp=
function(a){var c,e;c=0;for(e=this.hd.length;c<e;c++)if(this.hd[c].Y===a)return this.hd[c];return null};h.prototype.Vj=function(a){var c,e;c=0;for(e=this.p.length;c<e;c++)if(this.p[c].Y===a)return this.p[c];return null};h.prototype.rw=function(a){var c,e;c=0;for(e=this.Qf.length;c<e;c++)if(this.Qf[c].Y===a)return this.Qf[c];return null};h.prototype.Yu=function(a,c){this.qi=[a,c];this.fa=!0};h.prototype.Pw=function(){var a=this,c=this.Bn,e=this.Zd,b=this.gk,k=!1;this.Fr&&(k=!0,c="__c2_continuouspreview",
this.Fr=!1);if(c.length){this.Gb();e=this.qy();if(p()&&!this.Mc)v(c,e,function(){fa("Saved state to IndexedDB storage ("+e.length+" bytes)");a.Zd=e;a.trigger(T.prototype.c.ql,null);e=a.Zd="";k&&g()},function(b){try{localStorage.setItem("__c2save_"+c,e),fa("Saved state to WebStorage ("+e.length+" bytes)"),a.Zd=e,a.trigger(T.prototype.c.ql,null),e=a.Zd="",k&&g()}catch(f){fa("Failed to save game state: "+b+"; "+f),a.trigger(T.prototype.c.zo,null)}});else try{localStorage.setItem("__c2save_"+c,e),fa("Saved state to WebStorage ("+
e.length+" bytes)"),a.Zd=e,this.trigger(T.prototype.c.ql,null),e=a.Zd="",k&&g()}catch(f){fa("Error saving to WebStorage: "+f),a.trigger(T.prototype.c.zo,null)}this.gk=this.Bn="";this.kb=null}if(b.length){if(p()&&!this.Mc)n(b,function(c){c?(a.kb=c,fa("Loaded state from IndexedDB storage ("+a.kb.length+" bytes)")):(a.kb=localStorage.getItem("__c2save_"+b)||"",fa("Loaded state from WebStorage ("+a.kb.length+" bytes)"));a.si=!1;a.kb||(a.kb=null,a.trigger(T.prototype.c.Vi,null))},function(){a.kb=localStorage.getItem("__c2save_"+
b)||"";fa("Loaded state from WebStorage ("+a.kb.length+" bytes)");a.si=!1;a.kb||(a.kb=null,a.trigger(T.prototype.c.Vi,null))});else{try{this.kb=localStorage.getItem("__c2save_"+b)||"",fa("Loaded state from WebStorage ("+this.kb.length+" bytes)")}catch(q){this.kb=null}this.si=!1;a.kb||(a.kb=null,a.trigger(T.prototype.c.Vi,null))}this.Bn=this.gk=""}null!==this.kb&&(this.Gb(),this.rx(this.kb)?(this.Zd=this.kb,this.trigger(T.prototype.c.ut,null),this.Zd=""):a.trigger(T.prototype.c.Vi,null),this.kb=null)};
h.prototype.qy=function(){var a,c,e,k,f,q,d,m={c2save:!0,version:1,rt:{time:this.Bb.Z,walltime:this.oe.Z,timescale:this.Jf,tickcount:this.Rg,execcount:this.kf,next_uid:this.bi,running_layout:this.ba.Y,start_time_offset:Date.now()-this.Sk},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};a=0;for(c=this.p.length;a<c;a++)if(f=this.p[a],!f.B&&!this.Pn(f)){q={instances:[]};Xa(f.ja)&&(q.ex=b(f.ja));e=0;for(k=f.d.length;e<k;e++)q.instances.push(this.An(f.d[e]));m.types[f.Y.toString()]=q}a=
0;for(c=this.hd.length;a<c;a++)e=this.hd[a],m.layouts[e.Y.toString()]=e.Fb();k=m.events.groups;a=0;for(c=this.Qf.length;a<c;a++)e=this.Qf[a],k[e.Y.toString()]=this.wh[e.vh].dg;c=m.events.cnds;for(d in this.ye)this.ye.hasOwnProperty(d)&&(a=this.ye[d],Xa(a.ja)&&(c[d]={ex:b(a.ja)}));c=m.events.acts;for(d in this.se)this.se.hasOwnProperty(d)&&(a=this.se[d],Xa(a.ja)&&(c[d]={ex:b(a.ja)}));c=m.events.vars;for(d in this.Vg)this.Vg.hasOwnProperty(d)&&(a=this.Vg[d],a.ak||a.parent&&!a.Lh||(c[d]=a.data));m.system=
this.Hd.Fb();return JSON.stringify(m)};h.prototype.kr=function(){var a,c,e,b,k,f;this.be={};a=0;for(c=this.p.length;a<c;a++)if(e=this.p[a],!e.B)for(b=0,k=e.d.length;b<k;b++)f=e.d[b],this.be[f.uid.toString()]=f};h.prototype.rx=function(a){var c;try{c=JSON.parse(a)}catch(e){return!1}if(!c.c2save||1<c.version)return!1;this.Fh=!0;a=c.rt;this.Bb.reset();this.Bb.Z=a.time;this.oe.reset();this.oe.Z=a.walltime||0;this.Jf=a.timescale;this.Rg=a.tickcount;this.kf=a.execcount;this.Sk=Date.now()-a.start_time_offset;
var b=a.running_layout;if(b!==this.ba.Y)if(b=this.xp(b))this.ep(b);else return;var k,f,q,d,m,u,w;u=c.types;for(f in u)if(u.hasOwnProperty(f)&&(d=this.Vj(parseInt(f,10)))&&!d.B&&!this.Pn(d)){u[f].ex?d.ja=u[f].ex:Ya(d.ja);m=d.d;q=u[f].instances;b=0;for(k=qa(m.length,q.length);b<k;b++)this.hk(m[b],q[b]);b=q.length;for(k=m.length;b<k;b++)this.Xe(m[b]);b=m.length;for(k=q.length;b<k;b++){m=null;if(d.X.Le&&(m=this.ba.Tj(q[b].w.l),!m))continue;m=this.Ae(d.Jc,m,!1,0,0,!0);this.hk(m,q[b])}d.Ng=!0}this.Gb();
this.kr();k=c.layouts;for(f in k)k.hasOwnProperty(f)&&(b=this.xp(parseInt(f,10)))&&b.Qb(k[f]);k=c.events.groups;for(f in k)k.hasOwnProperty(f)&&(b=this.rw(parseInt(f,10)))&&this.wh[b.vh]&&this.wh[b.vh].ty(k[f]);b=c.events.cnds;for(f in this.ye)this.ye.hasOwnProperty(f)&&(b.hasOwnProperty(f)?this.ye[f].ja=b[f].ex:this.ye[f].ja={});b=c.events.acts;for(f in this.se)this.se.hasOwnProperty(f)&&(b.hasOwnProperty(f)?this.se[f].ja=b[f].ex:this.se[f].ja={});b=c.events.vars;for(f in b)b.hasOwnProperty(f)&&
this.Vg.hasOwnProperty(f)&&(this.Vg[f].data=b[f]);this.bi=a.next_uid;this.Fh=!1;b=0;for(k=this.Jj.length;b<k;++b)m=this.Jj[b],this.trigger(Object.getPrototypeOf(m.type.X).c.Jd,m);A(this.Jj);this.Hd.Qb(c.system);b=0;for(k=this.p.length;b<k;b++)if(d=this.p[b],!d.B&&!this.Pn(d))for(c=0,f=d.d.length;c<f;c++){m=d.d[c];if(d.Ab)for(u=m.uh(),A(m.siblings),a=0,q=d.hc.length;a<q;a++)w=d.hc[a],d!==w&&m.siblings.push(w.d[u]);m.Kd&&m.Kd();if(m.L)for(a=0,q=m.L.length;a<q;a++)u=m.L[a],u.Kd&&u.Kd()}return this.fa=
!0};h.prototype.An=function(a,c){var e,k,f,q,d;q=a.type;f=q.X;var m={};c?m.c2=!0:m.uid=a.uid;Xa(a.ja)&&(m.ex=b(a.ja));if(a.hb&&a.hb.length)for(m.ivs={},e=0,k=a.hb.length;e<k;e++)m.ivs[a.type.Am[e].toString()]=a.hb[e];if(f.Le){f={x:a.x,y:a.y,w:a.width,h:a.height,l:a.j.Y,zi:a.wd()};0!==a.m&&(f.a=a.m);1!==a.opacity&&(f.o=a.opacity);.5!==a.Nb&&(f.hX=a.Nb);.5!==a.Ob&&(f.hY=a.Ob);0!==a.Hb&&(f.bm=a.Hb);a.visible||(f.v=a.visible);a.$e||(f.ce=a.$e);-1!==a.ai&&(f.mts=a.ai);if(q.M.length)for(f.fx=[],e=0,k=q.M.length;e<
k;e++)d=q.M[e],f.fx.push({name:d.name,active:a.re[d.index],params:a.Ja[d.index]});m.w=f}if(a.L&&a.L.length)for(m.behs={},e=0,k=a.L.length;e<k;e++)q=a.L[e],q.Fb&&(m.behs[q.type.Y.toString()]=q.Fb());a.Fb&&(m.data=a.Fb());return m};h.prototype.uw=function(a,c){var e,b;e=0;for(b=a.Am.length;e<b;e++)if(a.Am[e]===c)return e;return-1};h.prototype.mw=function(a,c){var e,b;e=0;for(b=a.L.length;e<b;e++)if(a.L[e].type.Y===c)return e;return-1};h.prototype.hk=function(a,c,e){var b,k,f,q,d;d=a.type;var m=d.X;
if(e){if(!c.c2)return}else a.uid=c.uid;c.ex?a.ja=c.ex:Ya(a.ja);if(k=c.ivs)for(b in k)k.hasOwnProperty(b)&&(f=this.uw(d,parseInt(b,10)),0>f||f>=a.hb.length||(q=k[b],null===q&&(q=NaN),a.hb[f]=q));if(m.Le){f=c.w;a.j.Y!==f.l&&(k=a.j,a.j=this.ba.Tj(f.l),a.j?(k.Gg(a,!0),a.j.fh(a,!0),a.za(),a.j.mi(0)):(a.j=k,e||this.Xe(a)));a.x=f.x;a.y=f.y;a.width=f.w;a.height=f.h;a.pd=f.zi;a.m=f.hasOwnProperty("a")?f.a:0;a.opacity=f.hasOwnProperty("o")?f.o:1;a.Nb=f.hasOwnProperty("hX")?f.hX:.5;a.Ob=f.hasOwnProperty("hY")?
f.hY:.5;a.visible=f.hasOwnProperty("v")?f.v:!0;a.$e=f.hasOwnProperty("ce")?f.ce:!0;a.ai=f.hasOwnProperty("mts")?f.mts:-1;a.Hb=f.hasOwnProperty("bm")?f.bm:0;a.jh=jb(a.Hb);this.u&&kb(a,a.Hb,this.u);a.za();if(f.hasOwnProperty("fx"))for(e=0,k=f.fx.length;e<k;e++)q=d.lm(f.fx[e].name),0>q||(a.re[q]=f.fx[e].active,a.Ja[q]=f.fx[e].params);a.nd()}if(d=c.behs)for(b in d)d.hasOwnProperty(b)&&(e=this.mw(a,parseInt(b,10)),0>e||a.L[e].Qb(d[b]));c.data&&a.Qb(c.data)};h.prototype.jp=function(a,c,e){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+
"www/"+a,function(a){a.file(c,e)},e)};h.prototype.lp=function(a,c,e){this.jp(a,function(a){var b=new FileReader;b.onload=function(a){c(a.target.result)};b.onerror=e;b.readAsText(a)},e)};var F=[],R=0;h.prototype.Vm=function(){if(F.length&&!(8<=R)){R++;var a=F.shift();this.$u(a.filename,a.Dy,a.Bv)}};h.prototype.kp=function(a,c,e){var b=this;F.push({filename:a,Dy:function(a){R--;b.Vm();c(a)},Bv:function(a){R--;b.Vm();e(a)}});this.Vm()};h.prototype.$u=function(a,c,e){this.jp(a,function(a){var e=new FileReader;
e.onload=function(a){c(a.target.result)};e.readAsArrayBuffer(a)},e)};h.prototype.fw=function(a,c,e){var b="",k=a.toLowerCase(),f=k.substr(k.length-4),k=k.substr(k.length-5);".mp4"===f?b="video/mp4":".webm"===k?b="video/webm":".m4a"===f?b="audio/mp4":".mp3"===f&&(b="audio/mpeg");this.kp(a,function(a){a=URL.createObjectURL(new Blob([a],{type:b}));c(a)},e)};h.prototype.Lp=function(a){return/^(?:[a-z]+:)?\/\//.test(a)||"data:"===a.substr(0,5)||"blob:"===a.substr(0,5)};h.prototype.wr=function(a,c){this.Jh&&
!this.Lp(c)?this.fw(c,function(c){a.src=c},function(a){alert("Failed to load image: "+a)}):a.src=c};h.prototype.Nk=function(a,c){"undefined"!==typeof a.imageSmoothingEnabled?a.imageSmoothingEnabled=c:(a.webkitImageSmoothingEnabled=c,a.mozImageSmoothingEnabled=c,a.msImageSmoothingEnabled=c)};Yb=function(a){return new h(document.getElementById(a))};Zb=function(a,c){return new h({dc:!0,width:a,height:c})};window.cr_createRuntime=Yb;window.cr_createDCRuntime=Zb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=
!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.El=!0;document.body.appendChild(a);a=new h(a);window.c2runtime=a;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a};window.createEjectaRuntime=function(){var a=new h(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);
return a}})();window.cr_getC2Runtime=function(){var h=document.getElementById("c2canvas");return h?h.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(h,r){var p=window.cr_getC2Runtime();p&&p.Yu(h,r)};window.cr_sizeCanvas=function(h,r){if(0!==h&&0!==r){var p=window.cr_getC2Runtime();p&&p.setSize(h,r)}};window.cr_setSuspended=function(h){var r=window.cr_getC2Runtime();r&&r.setSuspended(h)};
(function(){function h(c,b){this.b=c;this.hf=null;this.scrollX=this.b.Wa/2;this.scrollY=this.b.Va/2;this.scale=1;this.m=0;this.$f=!0;this.name=b[0];this.Nx=b[1];this.Mx=b[2];this.width=b[1];this.height=b[2];this.Ur=b[3];this.Dr=b[4];this.Y=b[5];var a=b[6],k,e;this.P=[];this.Bh=[];k=0;for(e=a.length;k<e;k++){var d=new $b(this,a[k]);d.Jq=k;this.P.push(d)}a=b[7];this.Ie=[];k=0;for(e=a.length;k<e;k++){var d=a[k],m=this.b.p[d[1]];m.Jc||(m.Jc=d);this.Ie.push(d);-1===this.Bh.indexOf(m)&&this.Bh.push(m)}this.M=
[];this.ea=[];this.ie=!0;this.Ja=[];k=0;for(e=b[8].length;k<e;k++)this.M.push({id:b[8][k][0],name:b[8][k][1],Za:-1,Rc:!1,nc:!0,index:k}),this.Ja.push(b[8][k][2].slice(0));this.nd();this.de=new wa(0,0,1,1);this.sn=new wa(0,0,1,1);this.Pe={}}function r(c,b){return c.pd-b.pd}function p(c,b){this.rb=c;this.b=c.b;this.d=[];this.scale=1;this.m=0;this.Sd=!1;this.le=new wa(0,0,0,0);this.Or=new xa;this.ua=this.na=this.wa=this.ma=0;this.Lf=!1;this.pe=-1;this.Ol=0;this.name=b[0];this.index=b[1];this.Y=b[2];
this.visible=b[3];this.Zc=b[4];this.Dc=b[5];this.Pc=b[6];this.Qc=b[7];this.opacity=b[8];this.Lj=b[9];this.Ec=b[10];this.qd=b[11];this.Hb=b[12];this.xv=b[13];this.jh="source-over";this.Jb=this.Pb=0;this.Eb=null;this.$d=t();this.ld=!0;this.ug=new wa(0,0,-1,-1);this.wb=new wa(0,0,-1,-1);this.Ec&&(this.Eb=new ib(this.b.Wa,this.b.Va));this.Dd=!1;var a=b[14],k,e;this.Ir=[];this.uc=[];this.mh=[];k=0;for(e=a.length;k<e;k++){var d=a[k],m=this.b.p[d[1]];m.Jc||(m.Jc=d,m.Wu=this.index);this.uc.push(d);-1===this.rb.Bh.indexOf(m)&&
this.rb.Bh.push(m)}Da(this.Ir,this.uc);this.M=[];this.ea=[];this.ie=!0;this.Ja=[];k=0;for(e=b[15].length;k<e;k++)this.M.push({id:b[15][k][0],name:b[15][k][1],Za:-1,Rc:!1,nc:!0,index:k}),this.Ja.push(b[15][k][2].slice(0));this.nd();this.de=new wa(0,0,1,1);this.sn=new wa(0,0,1,1)}function t(){return b.length?b.pop():[]}function v(c){A(c);b.push(c)}h.prototype.oy=function(c){var b=c.type.Y.toString();this.Pe.hasOwnProperty(b)||(this.Pe[b]=[]);this.Pe[b].push(this.b.An(c))};h.prototype.Cp=function(){var c=
this.P[0];return!c.Dc&&1===c.opacity&&!c.Lj&&c.visible};h.prototype.nd=function(){A(this.ea);this.ie=!0;var c,b,a;c=0;for(b=this.M.length;c<b;c++)a=this.M[c],a.nc&&(this.ea.push(a),a.Rc||(this.ie=!1))};h.prototype.km=function(c){var b,a,k;b=0;for(a=this.M.length;b<a;b++)if(k=this.M[b],k.name===c)return k;return null};var n=[],g=!0;h.prototype.Gn=function(){this.Dr&&(this.hf=this.b.cm[this.Dr],this.hf.Rn());this.b.ba=this;this.width=this.Nx;this.height=this.Mx;this.scrollX=this.b.Wa/2;this.scrollY=
this.b.Va/2;var c,b,a,k,e,d,m;c=0;for(a=this.b.p.length;c<a;c++)if(b=this.b.p[c],!b.B)for(e=b.d,b=0,k=e.length;b<k;b++)if(d=e[b],d.j){var q=d.j.Jq;q>=this.P.length&&(q=this.P.length-1);d.j=this.P[q];-1===d.j.d.indexOf(d)&&d.j.d.push(d);d.j.Lf=!0}if(!g)for(c=0,a=this.P.length;c<a;++c)this.P[c].d.sort(r);A(n);this.Ku();c=0;for(a=this.P.length;c<a;c++)d=this.P[c],d.Su(),d.dl();e=!1;if(!this.$f){for(m in this.Pe)if(this.Pe.hasOwnProperty(m)&&(b=this.b.Vj(parseInt(m,10)))&&!b.B&&this.b.Qn(b)){k=this.Pe[m];
c=0;for(a=k.length;c<a;c++){d=null;if(b.X.Le&&(d=this.Tj(k[c].w.l),!d))continue;d=this.b.Ae(b.Jc,d,!1,0,0,!0);this.b.hk(d,k[c]);e=!0;n.push(d)}A(k)}c=0;for(a=this.P.length;c<a;c++)this.P[c].d.sort(r),this.P[c].Lf=!0}e&&(this.b.Gb(),this.b.kr());for(c=0;c<n.length;c++)if(d=n[c],d.type.Ab)for(a=d.uh(),b=0,k=d.type.hc.length;b<k;b++)m=d.type.hc[b],d.type!==m&&(m.d.length>a?d.siblings.push(m.d[a]):m.Jc&&(e=this.b.Ae(m.Jc,d.j,!0,d.x,d.y,!0),this.b.Gb(),m.cl(),d.siblings.push(e),n.push(e)));c=0;for(a=this.Ie.length;c<
a;c++)d=this.Ie[c],b=this.b.p[d[1]],b.Ab||this.b.Ae(this.Ie[c],null,!0);this.b.ih=null;this.b.Gb();if(this.b.Ba&&!this.b.pa)for(c=0,a=this.b.p.length;c<a;c++)m=this.b.p[c],!m.B&&m.d.length&&m.Ck&&m.Ck(this.b.Ba);if(this.b.Fh)Da(this.b.Jj,n);else for(c=0,a=n.length;c<a;c++)d=n[c],this.b.trigger(Object.getPrototypeOf(d.type.X).c.Jd,d);A(n);this.b.Fh||this.b.trigger(T.prototype.c.to,null);this.$f=!1};h.prototype.Ru=function(){var c,b,a,k,e;b=c=0;for(a=this.Ie.length;c<a;c++)k=this.Ie[c],e=this.b.p[k[1]],
e.global?e.Ab||this.b.Ae(k,null,!0):(this.Ie[b]=k,b++);Ba(this.Ie,b)};h.prototype.Cy=function(){this.b.Fh||this.b.trigger(T.prototype.c.so,null);this.b.Cm=!0;A(this.b.Hd.fc);var c,b,a,k,e,d;if(!this.$f)for(c=0,b=this.P.length;c<b;c++)for(this.P[c].Tn(),e=this.P[c].d,a=0,k=e.length;a<k;a++)d=e[a],d.type.global||this.b.Qn(d.type)&&this.oy(d);c=0;for(b=this.P.length;c<b;c++){e=this.P[c].d;a=0;for(k=e.length;a<k;a++)d=e[a],d.type.global||this.b.Xe(d);this.b.Gb();A(e);this.P[c].Lf=!0}c=0;for(b=this.b.p.length;c<
b;c++)if(e=this.b.p[c],!(e.global||e.X.Le||e.X.Rk||e.B)){a=0;for(k=e.d.length;a<k;a++)this.b.Xe(e.d[a]);this.b.Gb()}g=!1;this.b.Cm=!1};new wa(0,0,0,0);h.prototype.ed=function(c){var b,a=c,k=!1,e=!this.b.sc;e&&(this.b.fk||(this.b.fk=document.createElement("canvas"),b=this.b.fk,b.width=this.b.G,b.height=this.b.F,this.b.gq=b.getContext("2d"),k=!0),b=this.b.fk,a=this.b.gq,b.width!==this.b.G&&(b.width=this.b.G,k=!0),b.height!==this.b.F&&(b.height=this.b.F,k=!0),k&&this.b.Nk(a,this.b.qa));a.globalAlpha=
1;a.globalCompositeOperation="source-over";this.b.Zo&&!this.Cp()&&a.clearRect(0,0,this.b.G,this.b.F);var d,m,k=0;for(d=this.P.length;k<d;k++)m=this.P[k],m.visible&&0<m.opacity&&11!==m.Hb&&(m.d.length||!m.Dc)?m.ed(a):m.dl();e&&c.drawImage(b,0,0,this.b.width,this.b.height)};h.prototype.Ce=function(c){c.ur(!0);this.b.Ua||(this.b.Ua=c.Ic(this.b.G,this.b.F,this.b.qa));if(this.b.Ua.bd!==this.b.G||this.b.Ua.ad!==this.b.F)c.deleteTexture(this.b.Ua),this.b.Ua=c.Ic(this.b.G,this.b.F,this.b.qa);c.Tc(this.b.Ua);
this.b.sc||c.ge(this.b.G,this.b.F);var b,a;for(b=this.P.length-1;0<=b;--b)a=this.P[b],a.visible&&1===a.opacity&&a.ie&&0===a.Hb&&(a.d.length||!a.Dc)?a.Ce(c):a.dl();c.ur(!1)};h.prototype.Kb=function(c){var b=0<this.ea.length||this.b.Tg||!this.b.sc||this.b.ya;if(b){this.b.Ua||(this.b.Ua=c.Ic(this.b.G,this.b.F,this.b.qa));if(this.b.Ua.bd!==this.b.G||this.b.Ua.ad!==this.b.F)c.deleteTexture(this.b.Ua),this.b.Ua=c.Ic(this.b.G,this.b.F,this.b.qa);c.Tc(this.b.Ua);this.b.sc||c.ge(this.b.G,this.b.F)}else this.b.Ua&&
(c.Tc(null),c.deleteTexture(this.b.Ua),this.b.Ua=null);this.b.Zo&&!this.Cp()&&c.clear(0,0,0,0);var a,k,e;a=0;for(k=this.P.length;a<k;a++)e=this.P[a],e.visible&&0<e.opacity&&(e.d.length||!e.Dc)?e.Kb(c):e.dl();b&&(0===this.ea.length||1===this.ea.length&&this.b.sc?(1===this.ea.length?(b=this.ea[0].index,c.ec(this.ea[0].Za),c.Jg(null,1/this.b.G,1/this.b.F,0,0,1,1,this.scale,this.m,0,0,this.b.G/2,this.b.F/2,this.b.Bb.Z,this.Ja[b]),c.Dk(this.ea[0].Za)&&(this.b.fa=!0)):c.ec(0),this.b.sc||c.ge(this.b.width,
this.b.height),c.Tc(null),c.tr(!1),c.Se(1),c.Rb(this.b.Ua),c.rr(),c.Ed(),c.od(),b=this.b.width/2,a=this.b.height/2,c.ji(-b,a,b,a,b,-a,-b,-a),c.Rb(null),c.tr(!0)):this.tn(c,null,null,null))};h.prototype.sh=function(){return 0<this.ea.length||this.b.Tg||!this.b.sc||this.b.ya?this.b.Ua:null};h.prototype.yp=function(){var c=this.P[0].Lc(),b,a,k;b=1;for(a=this.P.length;b<a;b++)k=this.P[b],(0!==k.Pc||0!==k.Qc)&&k.Lc()<c&&(c=k.Lc());return c};h.prototype.Kk=function(c){if(!this.Ur){var b=1/this.yp()*this.b.G/
2;c>this.width-b&&(c=this.width-b);c<b&&(c=b)}this.scrollX!==c&&(this.scrollX=c,this.b.fa=!0)};h.prototype.Lk=function(c){if(!this.Ur){var b=1/this.yp()*this.b.F/2;c>this.height-b&&(c=this.height-b);c<b&&(c=b)}this.scrollY!==c&&(this.scrollY=c,this.b.fa=!0)};h.prototype.Ku=function(){this.Kk(this.scrollX);this.Lk(this.scrollY)};h.prototype.tn=function(c,b,a,k){var e=a?a.ea:b?b.ea:this.ea,d=1,m=0,q=0,w=0,g=this.b.G,l=this.b.F;a?(d=a.j.Lc(),m=a.j.gb(),q=a.j.ma,w=a.j.na,g=a.j.wa,l=a.j.ua):b&&(d=b.Lc(),
m=b.gb(),q=b.ma,w=b.na,g=b.wa,l=b.ua);var h=this.b.hm,n,t,r,p,v=0,Q=1,O,J,M=this.b.G,F=this.b.F,R=M/2,x=F/2,B=b?b.de:this.de,D=b?b.sn:this.sn,y=0,N=0,C=0,I=0,S=M,Aa=M,P=F,ia=F,ka=r=0;p=a?a.j.gb():0;if(a){n=0;for(t=e.length;n<t;n++)r+=c.yw(e[n].Za),ka+=c.zw(e[n].Za);I=a.Qa;y=b.ib(I.left,I.top,!0,!0);C=b.ib(I.left,I.top,!1,!0);S=b.ib(I.right,I.bottom,!0,!0);P=b.ib(I.right,I.bottom,!1,!0);0!==p&&(n=b.ib(I.right,I.top,!0,!0),t=b.ib(I.right,I.top,!1,!0),N=b.ib(I.left,I.bottom,!0,!0),I=b.ib(I.left,I.bottom,
!1,!0),p=Math.min(y,S,n,N),S=Math.max(y,S,n,N),y=p,p=Math.min(C,P,t,I),P=Math.max(C,P,t,I),C=p);y-=r;C-=ka;S+=r;P+=ka;D.left=y/M;D.top=1-C/F;D.right=S/M;D.bottom=1-P/F;N=y=ta(y);I=C=ta(C);Aa=S=ua(S);ia=P=ua(P);N-=r;I-=ka;Aa+=r;ia+=ka;0>y&&(y=0);0>C&&(C=0);S>M&&(S=M);P>F&&(P=F);0>N&&(N=0);0>I&&(I=0);Aa>M&&(Aa=M);ia>F&&(ia=F);B.left=y/M;B.top=1-C/F;B.right=S/M;B.bottom=1-P/F}else B.left=D.left=0,B.top=D.top=0,B.right=D.right=1,B.bottom=D.bottom=1;ka=a&&(c.hi(e[0].Za)||0!==r||0!==ka||1!==a.opacity||
a.type.X.Fq)||b&&!a&&1!==b.opacity;c.rr();if(ka){h[v]||(h[v]=c.Ic(M,F,this.b.qa));if(h[v].bd!==M||h[v].ad!==F)c.deleteTexture(h[v]),h[v]=c.Ic(M,F,this.b.qa);c.ec(0);c.Tc(h[v]);J=ia-I;c.clearRect(N,F-I-J,Aa-N,J);a?a.Kb(c):(c.Rb(this.b.jb),c.Se(b.opacity),c.Ed(),c.translate(-R,-x),c.od(),c.Sc(y,P,S,P,S,C,y,C,B));D.left=D.top=0;D.right=D.bottom=1;a&&(p=B.top,B.top=B.bottom,B.bottom=p);v=1;Q=0}c.Se(1);r=e.length-1;var Ga=c.nn(e[r].Za)||!b&&!a&&!this.b.sc;n=p=0;for(t=e.length;n<t;n++){h[v]||(h[v]=c.Ic(M,
F,this.b.qa));if(h[v].bd!==M||h[v].ad!==F)c.deleteTexture(h[v]),h[v]=c.Ic(M,F,this.b.qa);c.ec(e[n].Za);p=e[n].index;c.Dk(e[n].Za)&&(this.b.fa=!0);0!=n||ka?(c.Jg(k,1/M,1/F,D.left,D.top,D.right,D.bottom,d,m,q,w,(q+g)/2,(w+l)/2,this.b.Bb.Z,a?a.Ja[p]:b?b.Ja[p]:this.Ja[p]),c.Rb(null),n!==r||Ga?(c.Tc(h[v]),J=ia-I,O=F-I-J,c.clearRect(N,O,Aa-N,J)):(a?c.Re(a.Pb,a.Jb):b&&c.Re(b.Pb,b.Jb),c.Tc(k)),c.Rb(h[Q]),c.Ed(),c.translate(-R,-x),c.od(),c.Sc(y,P,S,P,S,C,y,C,B),n!==r||Ga||c.Rb(null)):(c.Tc(h[v]),J=ia-I,O=
F-I-J,c.clearRect(N,O,Aa-N,J),a?(a.Sa&&a.Sa.q?(O=a.Sa.q,Q=1/O.width,O=1/O.height):(Q=1/a.width,O=1/a.height),c.Jg(k,Q,O,D.left,D.top,D.right,D.bottom,d,m,q,w,(q+g)/2,(w+l)/2,this.b.Bb.Z,a.Ja[p]),a.Kb(c)):(c.Jg(k,1/M,1/F,0,0,1,1,d,m,q,w,(q+g)/2,(w+l)/2,this.b.Bb.Z,b?b.Ja[p]:this.Ja[p]),c.Rb(b?this.b.jb:this.b.Ua),c.Ed(),c.translate(-R,-x),c.od(),c.Sc(y,P,S,P,S,C,y,C,B)),D.left=D.top=0,D.right=D.bottom=1,a&&!Ga&&(p=P,P=C,C=p));v=0===v?1:0;Q=0===v?1:0}Ga&&(c.ec(0),a?c.Re(a.Pb,a.Jb):b?c.Re(b.Pb,b.Jb):
this.b.sc||(c.ge(this.b.width,this.b.height),R=this.b.width/2,x=this.b.height/2,C=y=0,S=this.b.width,P=this.b.height),c.Tc(k),c.Rb(h[Q]),c.Ed(),c.translate(-R,-x),c.od(),a&&1===e.length&&!ka?c.Sc(y,C,S,C,S,P,y,P,B):c.Sc(y,P,S,P,S,C,y,C,B),c.Rb(null))};h.prototype.Tj=function(c){var b,a;b=0;for(a=this.P.length;b<a;b++)if(this.P[b].Y===c)return this.P[b];return null};h.prototype.Fb=function(){var c,b,a,k={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.m,w:this.width,h:this.height,fv:this.$f,persist:this.Pe,
fx:[],layers:{}};c=0;for(b=this.M.length;c<b;c++)a=this.M[c],k.fx.push({name:a.name,active:a.nc,params:this.Ja[a.index]});c=0;for(b=this.P.length;c<b;c++)a=this.P[c],k.layers[a.Y.toString()]=a.Fb();return k};h.prototype.Qb=function(c){var b,a,k,e;this.scrollX=c.sx;this.scrollY=c.sy;this.scale=c.s;this.m=c.a;this.width=c.w;this.height=c.h;this.Pe=c.persist;"undefined"!==typeof c.fv&&(this.$f=c.fv);var d=c.fx;b=0;for(a=d.length;b<a;b++)if(k=this.km(d[b].name))k.nc=d[b].active,this.Ja[k.index]=d[b].params;
this.nd();b=c.layers;for(e in b)b.hasOwnProperty(e)&&(c=this.Tj(parseInt(e,10)))&&c.Qb(b[e])};Mb=h;p.prototype.nd=function(){A(this.ea);this.ie=!0;var c,b,a;c=0;for(b=this.M.length;c<b;c++)a=this.M[c],a.nc&&(this.ea.push(a),a.Rc||(this.ie=!1))};p.prototype.km=function(c){var b,a,k;b=0;for(a=this.M.length;b<a;b++)if(k=this.M[b],k.name===c)return k;return null};p.prototype.Su=function(){var c,b,a,k,e,d;b=c=0;for(a=this.uc.length;c<a;c++){k=this.uc[c];e=this.b.p[k[1]];d=this.b.Qn(e);e=!0;if(!d||this.rb.$f){k=
this.b.Ae(k,this,!0);if(!k)continue;n.push(k);k.type.global&&(e=!1,this.mh.push(k.uid))}e&&(this.uc[b]=this.uc[c],b++)}this.uc.length=b;this.b.Gb();!this.b.k&&this.M.length&&(this.Hb=this.xv);this.jh=jb(this.Hb);this.b.u&&kb(this,this.Hb,this.b.u);this.ld=!0};p.prototype.Gg=function(c,b){var a=Ha(this.d,c);0>a||(b&&this.Ec&&c.ac&&c.ac.right>=c.ac.left&&(c.Aa(),this.Eb.update(c,c.ac,null),c.ac.set(0,0,-1,-1)),a===this.d.length-1?this.d.pop():(za(this.d,a),this.mi(a)),this.ld=!0)};p.prototype.fh=function(c,
b){c.pd=this.d.length;this.d.push(c);b&&this.Ec&&c.ac&&c.za();this.ld=!0};p.prototype.Yx=function(c){this.d.unshift(c);this.mi(0)};p.prototype.zx=function(c,b,a){var k=c.wd();b=b.wd();za(this.d,k);k<b&&b--;a&&b++;b===this.d.length?this.d.push(c):this.d.splice(b,0,c);this.mi(k<b?k:b)};p.prototype.mi=function(c){-1===this.pe?this.pe=c:c<this.pe&&(this.pe=c);this.ld=this.Lf=!0};p.prototype.Tn=function(){if(this.Lf){-1===this.pe&&(this.pe=0);var c,b,a;if(this.Ec)for(c=this.pe,b=this.d.length;c<b;++c)a=
this.d[c],a.pd=c,this.Eb.vx(a.ac);else for(c=this.pe,b=this.d.length;c<b;++c)this.d[c].pd=c;this.Lf=!1;this.pe=-1}};p.prototype.Lc=function(c){return this.vw()*(this.b.sc||c?this.b.gh:1)};p.prototype.vw=function(){return(this.scale*this.rb.scale-1)*this.qd+1};p.prototype.gb=function(){return this.Sd?0:Ma(this.rb.m+this.m)};var b=[],d=[],l=[];p.prototype.om=function(){this.Tn();this.Eb.Fk(this.ma,this.na,this.wa,this.ua,l);if(!l.length)return t();if(1===l.length){var c=t();Da(c,l[0]);A(l);return c}for(var b=
!0;1<l.length;){for(var c=l,a=void 0,k=void 0,e=void 0,g=void 0,m=void 0,a=0,k=c.length;a<k-1;a+=2){var e=c[a],g=c[a+1],m=t(),q=e,w=g,h=m,n=0,r=0,p=0,K=q.length,L=w.length,H=void 0,W=void 0;for(h.length=K+L;n<K&&r<L;++p)H=q[n],W=w[r],H.pd<W.pd?(h[p]=H,++n):(h[p]=W,++r);for(;n<K;++n,++p)h[p]=q[n];for(;r<L;++r,++p)h[p]=w[r];b||(v(e),v(g));d.push(m)}1===k%2&&(b?(e=t(),Da(e,c[k-1]),d.push(e)):d.push(c[k-1]));Da(c,d);A(d);b=!1}c=l[0];A(l);return c};p.prototype.ed=function(c){this.Dd=this.Lj||1!==this.opacity||
0!==this.Hb;var b=this.b.canvas,a=c,k=!1;this.Dd&&(this.b.ek||(this.b.ek=document.createElement("canvas"),b=this.b.ek,b.width=this.b.G,b.height=this.b.F,this.b.fq=b.getContext("2d"),k=!0),b=this.b.ek,a=this.b.fq,b.width!==this.b.G&&(b.width=this.b.G,k=!0),b.height!==this.b.F&&(b.height=this.b.F,k=!0),k&&this.b.Nk(a,this.b.qa),this.Dc&&a.clearRect(0,0,this.b.G,this.b.F));a.globalAlpha=1;a.globalCompositeOperation="source-over";this.Dc||(a.fillStyle="rgb("+this.Zc[0]+","+this.Zc[1]+","+this.Zc[2]+")",
a.fillRect(0,0,this.b.G,this.b.F));a.save();this.Sd=!0;var k=this.ub(0,0,!0,!0),e=this.ub(0,0,!1,!0);this.Sd=!1;this.b.Ac&&(k=Math.round(k),e=Math.round(e));this.Hk(k,e,a);var d=this.Lc();a.scale(d,d);a.translate(-k,-e);this.Ec?(this.wb.left=this.Eb.Ub(this.ma),this.wb.top=this.Eb.Vb(this.na),this.wb.right=this.Eb.Ub(this.wa),this.wb.bottom=this.Eb.Vb(this.ua),this.ld||!this.wb.oh(this.ug)?(v(this.$d),k=this.om(),this.ld=!1,this.ug.Vf(this.wb)):k=this.$d):k=this.d;for(var m,q=null,e=0,d=k.length;e<
d;++e)m=k[e],m!==q&&(this.rv(m,a),q=m);this.Ec&&(this.$d=k);a.restore();this.Dd&&(c.globalCompositeOperation=this.jh,c.globalAlpha=this.opacity,c.drawImage(b,0,0))};p.prototype.rv=function(c,b){if(c.visible&&0!==c.width&&0!==c.height){c.Aa();var a=c.Qa;a.right<this.ma||a.bottom<this.na||a.left>this.wa||a.top>this.ua||(b.globalCompositeOperation=c.jh,c.ed(b))}};p.prototype.dl=function(){this.Sd=!0;var c=this.ub(0,0,!0,!0),b=this.ub(0,0,!1,!0);this.Sd=!1;this.b.Ac&&(c=Math.round(c),b=Math.round(b));
this.Hk(c,b,null)};p.prototype.Hk=function(c,b,a){var k=this.Lc();this.ma=c;this.na=b;this.wa=c+1/k*this.b.G;this.ua=b+1/k*this.b.F;this.ma>this.wa&&(c=this.ma,this.ma=this.wa,this.wa=c);this.na>this.ua&&(c=this.na,this.na=this.ua,this.ua=c);c=this.gb();0!==c&&(a&&(a.translate(this.b.G/2,this.b.F/2),a.rotate(-c),a.translate(this.b.G/-2,this.b.F/-2)),this.le.set(this.ma,this.na,this.wa,this.ua),this.le.offset((this.ma+this.wa)/-2,(this.na+this.ua)/-2),this.Or.Br(this.le,c),this.Or.To(this.le),this.le.offset((this.ma+
this.wa)/2,(this.na+this.ua)/2),this.ma=this.le.left,this.na=this.le.top,this.wa=this.le.right,this.ua=this.le.bottom)};p.prototype.Ce=function(c){if(this.Dd=this.Lj){this.b.jb||(this.b.jb=c.Ic(this.b.G,this.b.F,this.b.qa));if(this.b.jb.bd!==this.b.G||this.b.jb.ad!==this.b.F)c.deleteTexture(this.b.jb),this.b.jb=c.Ic(this.b.G,this.b.F,this.b.qa);c.Tc(this.b.jb)}this.Sd=!0;var b=this.ub(0,0,!0,!0),a=this.ub(0,0,!1,!0);this.Sd=!1;this.b.Ac&&(b=Math.round(b),a=Math.round(a));this.Hk(b,a,null);b=this.Lc();
c.Ed();c.scale(b,b);c.xn(-this.gb());c.translate((this.ma+this.wa)/-2,(this.na+this.ua)/-2);c.od();this.Ec?(this.wb.left=this.Eb.Ub(this.ma),this.wb.top=this.Eb.Vb(this.na),this.wb.right=this.Eb.Ub(this.wa),this.wb.bottom=this.Eb.Vb(this.ua),this.ld||!this.wb.oh(this.ug)?(v(this.$d),b=this.om(),this.ld=!1,this.ug.Vf(this.wb)):b=this.$d):b=this.d;for(var k,e=null,a=b.length-1;0<=a;--a)k=b[a],k!==e&&(this.tv(b[a],c),e=k);this.Ec&&(this.$d=b);this.Dc||(this.Ol=this.b.ef++,c.Ok(this.Ol),c.sr(1,1,1),c.rp(),
c.hy())};p.prototype.Kb=function(b){var d=0,a=0;if(this.Dd=this.Lj||1!==this.opacity||0<this.ea.length||0!==this.Hb){this.b.jb||(this.b.jb=b.Ic(this.b.G,this.b.F,this.b.qa));if(this.b.jb.bd!==this.b.G||this.b.jb.ad!==this.b.F)b.deleteTexture(this.b.jb),this.b.jb=b.Ic(this.b.G,this.b.F,this.b.qa);b.Tc(this.b.jb);this.Dc&&b.clear(0,0,0,0)}this.Dc||(this.b.ya?(b.Ok(this.Ol),b.sr(this.Zc[0]/255,this.Zc[1]/255,this.Zc[2]/255),b.rp(),b.yy()):b.clear(this.Zc[0]/255,this.Zc[1]/255,this.Zc[2]/255,1));this.Sd=
!0;var k=this.ub(0,0,!0,!0),d=this.ub(0,0,!1,!0);this.Sd=!1;this.b.Ac&&(k=Math.round(k),d=Math.round(d));this.Hk(k,d,null);k=this.Lc();b.Ed();b.scale(k,k);b.xn(-this.gb());b.translate((this.ma+this.wa)/-2,(this.na+this.ua)/-2);b.od();this.Ec?(this.wb.left=this.Eb.Ub(this.ma),this.wb.top=this.Eb.Vb(this.na),this.wb.right=this.Eb.Ub(this.wa),this.wb.bottom=this.Eb.Vb(this.ua),this.ld||!this.wb.oh(this.ug)?(v(this.$d),d=this.om(),this.ld=!1,this.ug.Vf(this.wb)):d=this.$d):d=this.d;var e,g,m=null,a=0;
for(e=d.length;a<e;++a)g=d[a],g!==m&&(this.sv(d[a],b),m=g);this.Ec&&(this.$d=d);this.Dd&&(d=this.ea.length?this.ea[0].Za:0,a=this.ea.length?this.ea[0].index:0,0===this.ea.length||1===this.ea.length&&!b.nn(d)&&1===this.opacity?(1===this.ea.length?(b.ec(d),b.Jg(this.rb.sh(),1/this.b.G,1/this.b.F,0,0,1,1,k,this.gb(),this.ma,this.na,(this.ma+this.wa)/2,(this.na+this.ua)/2,this.b.Bb.Z,this.Ja[a]),b.Dk(d)&&(this.b.fa=!0)):b.ec(0),b.Tc(this.rb.sh()),b.Se(this.opacity),b.Rb(this.b.jb),b.Re(this.Pb,this.Jb),
b.Ed(),b.od(),k=this.b.G/2,d=this.b.F/2,b.ji(-k,d,k,d,k,-d,-k,-d),b.Rb(null)):this.rb.tn(b,this,null,this.rb.sh()))};p.prototype.sv=function(b,d){if(b.visible&&0!==b.width&&0!==b.height){b.Aa();var a=b.Qa;a.right<this.ma||a.bottom<this.na||a.left>this.wa||a.top>this.ua||(d.Ok(b.ef),b.as?this.uv(b,d):(d.ec(0),d.Re(b.Pb,b.Jb),b.Kb(d)))}};p.prototype.tv=function(b,d){if(b.visible&&0!==b.width&&0!==b.height){b.Aa();var a=b.Qa;a.right<this.ma||a.bottom<this.na||a.left>this.wa||a.top>this.ua||(b.ef=this.b.ef++,
0===b.Hb&&1===b.opacity&&b.ie&&b.Ce&&(d.Ok(b.ef),b.Ce(d)))}};p.prototype.uv=function(b,d){var a=b.ea[0].Za,k=b.ea[0].index,e=this.Lc();if(1!==b.ea.length||d.nn(a)||d.$x(a)||(b.m||b.j.gb())&&d.hi(a)||1!==b.opacity||b.type.X.Fq)this.rb.tn(d,this,b,this.Dd?this.b.jb:this.rb.sh()),d.Ed(),d.scale(e,e),d.xn(-this.gb()),d.translate((this.ma+this.wa)/-2,(this.na+this.ua)/-2),d.od();else{d.ec(a);d.Re(b.Pb,b.Jb);d.Dk(a)&&(this.b.fa=!0);var g=0,m=0,q=0,w=0;d.hi(a)&&(w=b.Qa,g=this.ib(w.left,w.top,!0,!0),m=this.ib(w.left,
w.top,!1,!0),q=this.ib(w.right,w.bottom,!0,!0),w=this.ib(w.right,w.bottom,!1,!0),g=g/windowWidth,m=1-m/windowHeight,q=q/windowWidth,w=1-w/windowHeight);var l;b.Sa&&b.Sa.q?(l=b.Sa.q,a=1/l.width,l=1/l.height):(a=1/b.width,l=1/b.height);d.Jg(this.Dd?this.b.jb:this.rb.sh(),a,l,g,m,q,w,e,this.gb(),this.ma,this.na,(this.ma+this.wa)/2,(this.na+this.ua)/2,this.b.Bb.Z,b.Ja[k]);b.Kb(d)}};p.prototype.ub=function(b,d,a,k){var e=this.b.devicePixelRatio;this.b.tf&&(b*=e,d*=e);var e=this.b.$q,g=this.b.br,e=(this.rb.scrollX-
e)*this.Pc+e,g=(this.rb.scrollY-g)*this.Qc+g,m=e,q=g,w=1/this.Lc(!k);k?(m-=this.b.G*w/2,q-=this.b.F*w/2):(m-=this.b.width*w/2,q-=this.b.height*w/2);m+=b*w;q+=d*w;d=this.gb();0!==d&&(m-=e,q-=g,b=Math.cos(d),d=Math.sin(d),k=m*b-q*d,q=q*b+m*d,m=k+e,q+=g);return a?m:q};p.prototype.ib=function(b,d,a,k){var e=this.b.$q,g=this.b.br,m=(this.rb.scrollX-e)*this.Pc+e,q=(this.rb.scrollY-g)*this.Qc+g,g=m,e=q,w=this.gb();if(0!==w){b-=m;d-=q;var l=Math.cos(-w),w=Math.sin(-w),h=b*l-d*w;d=d*l+b*w;b=h+m;d+=q}m=1/this.Lc(!k);
k?(g-=this.b.G*m/2,e-=this.b.F*m/2):(g-=this.b.width*m/2,e-=this.b.height*m/2);g=(b-g)/m;e=(d-e)/m;b=this.b.devicePixelRatio;this.b.tf&&!k&&(g/=b,e/=b);return a?g:e};p.prototype.Fb=function(){var b,d,a,k={s:this.scale,a:this.m,vl:this.ma,vt:this.na,vr:this.wa,vb:this.ua,v:this.visible,bc:this.Zc,t:this.Dc,px:this.Pc,py:this.Qc,o:this.opacity,zr:this.qd,fx:[],cg:this.mh,instances:[]};b=0;for(d=this.M.length;b<d;b++)a=this.M[b],k.fx.push({name:a.name,active:a.nc,params:this.Ja[a.index]});return k};
p.prototype.Qb=function(b){var d,a,k;this.scale=b.s;this.m=b.a;this.ma=b.vl;this.na=b.vt;this.wa=b.vr;this.ua=b.vb;this.visible=b.v;this.Zc=b.bc;this.Dc=b.t;this.Pc=b.px;this.Qc=b.py;this.opacity=b.o;this.qd=b.zr;this.mh=b.cg||[];Da(this.uc,this.Ir);var e=new ca;d=0;for(k=this.mh.length;d<k;++d)e.add(this.mh[d]);a=d=0;for(k=this.uc.length;d<k;++d)e.contains(this.uc[d][2])||(this.uc[a]=this.uc[d],++a);Ba(this.uc,a);a=b.fx;d=0;for(k=a.length;d<k;d++)if(b=this.km(a[d].name))b.nc=a[d].active,this.Ja[b.index]=
a[d].params;this.nd();this.d.sort(r);this.Lf=!0};$b=p})();
(function(){function h(a,b){var c,e=a.length;switch(e){case 0:return!0;case 1:return a[0]===b[0];case 2:return a[0]===b[0]&&a[1]===b[1];default:for(c=0;c<e;c++)if(a[c]!==b[c])return!1;return!0}}function r(a,b){return a.index-b.index}function p(a){var b,c,k,d;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(r);a.length>=e.length&&(e.length=a.length+1);e[a.length]||(e[a.length]=[]);d=e[a.length];b=0;for(c=d.length;b<c;b++)if(k=d[b],h(a,k))return k;d.push(a);return a}
function t(a,b){this.b=a;this.Rr={};this.ip={};this.um=!1;this.Fp=new ca;this.Wl=[];this.Bl=[];this.name=b[0];var c=b[1];this.Ee=[];var e,k;e=0;for(k=c.length;e<k;e++)this.Hp(c[e],null,this.Ee)}function v(a){this.type=a;this.d=[];this.I=[];this.R=!0}function n(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.V=[];this.Te=[];this.Dp=this.$k=this.Mn=this.ym=this.group=this.Fn=!1;this.eb=[];this.Fc=[];this.Uc=[];this.vh="";this.dg=this.ym=this.group=!1;this.sj=null;c[1]&&(this.vh=c[1][1].toLowerCase(),
this.group=!0,this.ym=!!c[1][0],this.sj=[],this.dg=this.ym,this.b.Qf.push(this),this.b.wh[this.vh]=this);this.kc=c[2];this.Y=c[4];this.group||(this.b.Ro[this.Y.toString()]=this);var e=c[5];a=0;for(b=e.length;a<b;a++){var k=new ac(this,e[a]);k.index=a;this.eb.push(k);this.Mo(k.type)}e=c[6];a=0;for(b=e.length;a<b;a++)k=new bc(this,e[a]),k.index=a,this.Fc.push(k);if(8===c.length)for(c=c[7],a=0,b=c.length;a<b;a++)this.sheet.Hp(c[a],this,this.Uc);this.bk=!1;this.eb.length&&(this.bk=null==this.eb[0].type&&
this.eb[0].zb==T.prototype.c.ho)}function g(a,b){var c,e,k;if(a&&(-1===b.indexOf(a)&&b.push(a),a.Ab))for(c=0,e=a.hc.length;c<e;c++)k=a.hc[c],a!==k&&-1===b.indexOf(k)&&b.push(k)}function b(a,b){this.qc=a;this.sheet=a.sheet;this.b=a.b;this.O=[];this.Ka=[];this.ja={};this.index=-1;this.dh=!1;this.zb=this.b.qe(b[1]);this.trigger=0<b[3];this.hp=2===b[3];this.Ad=b[4];this.fg=b[5];this.lx=b[6];this.Y=b[7];this.b.ye[this.Y.toString()]=this;-1===b[0]?(this.type=null,this.Ya=this.zn,this.Ze=null,this.$c=-1):
(this.type=this.b.p[b[0]],this.Ya=this.lx?this.my:this.yn,b[2]?(this.Ze=this.type.Pj(b[2]),this.$c=this.type.im(b[2])):(this.Ze=null,this.$c=-1),this.qc.parent&&this.qc.parent.Qk());this.hp&&(this.Ya=this.ny);if(10===b.length){var c,e,k=b[9];c=0;for(e=k.length;c<e;c++){var d=new cc(this,k[c]);this.O.push(d)}this.Ka.length=k.length}}function d(a,b){this.qc=a;this.sheet=a.sheet;this.b=a.b;this.O=[];this.Ka=[];this.ja={};this.index=-1;this.dh=!1;this.zb=this.b.qe(b[1]);-1===b[0]?(this.type=null,this.Ya=
this.zn,this.Ze=null,this.$c=-1):(this.type=this.b.p[b[0]],this.Ya=this.yn,b[2]?(this.Ze=this.type.Pj(b[2]),this.$c=this.type.im(b[2])):(this.Ze=null,this.$c=-1));this.Y=b[3];this.b.se[this.Y.toString()]=this;if(6===b.length){var c,e,k=b[5];c=0;for(e=k.length;c<e;c++){var d=new cc(this,k[c]);this.O.push(d)}this.Ka.length=k.length}}function l(){m++;u.length===m&&u.push(new dc);return u[m]}function c(a,b){this.Oc=a;this.qc=a.qc;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.td=null;this.je=0;this.get=
null;this.$o=0;this.rb=null;this.key=0;this.object=null;this.index=0;this.Di=this.Ff=this.Di=this.Ff=this.mp=this.jf=this.Ei=null;this.Wc=!1;var c,e,k;switch(b[0]){case 0:case 7:this.td=new ec(this,b[1]);this.je=0;this.get=this.Ew;break;case 1:this.td=new ec(this,b[1]);this.je=0;this.get=this.Fw;break;case 5:this.td=new ec(this,b[1]);this.je=0;this.get=this.Jw;break;case 3:case 8:this.$o=b[1];this.get=this.Cw;break;case 6:this.rb=this.b.Nm[b[1]];this.get=this.Kw;break;case 9:this.key=b[1];this.get=
this.Iw;break;case 4:this.object=this.b.p[b[1]];this.get=this.Lw;this.qc.Mo(this.object);this.Oc instanceof bc?this.qc.Qk():this.qc.parent&&this.qc.parent.Qk();break;case 10:this.index=b[1];a.type&&a.type.B?(this.get=this.Gw,this.Wc=!0):this.get=this.Hw;break;case 11:this.Ei=b[1];this.jf=null;this.get=this.Dw;break;case 2:case 12:this.mp=b[1];this.get=this.Bw;break;case 13:for(this.get=this.Mw,this.Ff=[],this.Di=[],c=1,e=b.length;c<e;c++)k=new cc(this.Oc,b[c]),this.Ff.push(k),this.Di.push(0)}}function f(a,
b,c){this.sheet=a;this.parent=b;this.b=a.b;this.V=[];this.name=c[1];this.Fi=c[2];this.xm=c[3];this.Lh=!!c[4];this.ak=!!c[5];this.Y=c[6];this.b.Vg[this.Y.toString()]=this;this.data=this.xm;this.parent?(this.Cf=this.Lh||this.ak?-1:this.b.Ay++,this.b.Gu.push(this)):(this.Cf=-1,this.b.Fu.push(this))}function a(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.V=[];this.Ah=null;this.Sw=c[1];this.nc=!0}function k(){this.Kr=[];this.reset(null)}var e=[];t.prototype.toString=function(){return this.name};t.prototype.Hp=
function(a,b,c){switch(a[0]){case 0:a=new fc(this,b,a);if(a.kc)for(c.push(a),c=0,b=a.eb.length;c<b;c++)a.eb[c].trigger&&this.Ip(a,c);else a.Tp()?this.Ip(a,0):c.push(a);break;case 1:a=new Xb(this,b,a);c.push(a);break;case 2:a=new gc(this,b,a),c.push(a)}};t.prototype.Pa=function(){var a,b;a=0;for(b=this.Ee.length;a<b;a++)this.Ee[a].Pa(a<b-1&&this.Ee[a+1].bk)};t.prototype.Rn=function(){A(this.Wl);A(this.Bl);this.Lo(this);A(this.Bl)};t.prototype.Lo=function(a){var b,c,e,k,d=a.Wl,m=a.Bl,f=this.Fp.We();
b=0;for(c=f.length;b<c;++b)e=f[b],k=e.Ah,!e.nc||a===k||-1<m.indexOf(k)||(m.push(k),k.Lo(a),d.push(k))};t.prototype.Ya=function(a){this.b.Iz||(this.um=!0,a||(this.b.Gm=!0));var b,c;b=0;for(c=this.Ee.length;b<c;b++){var e=this.Ee[b];e.Ya();this.b.Nl(e.V);this.b.He&&this.b.Gb()}a||(this.b.Gm=!1)};t.prototype.Ip=function(a,b){a.kc||this.b.bl.push(a);var c,e,k=a.eb[b],d;k.type?d=k.type.name:d="system";var m=(c=k.hp)?this.ip:this.Rr;m[d]||(m[d]=[]);d=m[d];m=k.zb;if(c){if(k.O.length&&(k=k.O[0],1===k.type&&
2===k.td.type)){k=k.td.value.toLowerCase();c=0;for(e=d.length;c<e;c++)if(d[c].method==m){c=d[c].ph;c[k]?c[k].push([a,b]):c[k]=[[a,b]];return}c={};c[k]=[[a,b]];d.push({method:m,ph:c})}}else{c=0;for(e=d.length;c<e;c++)if(d[c].method==m){d[c].ph.push([a,b]);return}V&&m===V.prototype.c.Of?d.unshift({method:m,ph:[[a,b]]}):d.push({method:m,ph:[[a,b]]})}};Nb=t;v.prototype.tm=function(){return this.R?this.type.d.length:this.d.length};v.prototype.Zb=function(){return this.R?this.type.d:this.d};v.prototype.Fg=
function(a){a&&(a.b.Ea().Ia.kc?(this.R&&(A(this.d),Da(this.I,a.type.d),this.R=!1),a=this.I.indexOf(a),-1!==a&&(this.d.push(this.I[a]),this.I.splice(a,1))):(this.R=!1,A(this.d),this.d[0]=a))};sb=v;window._c2hh_="452B435306E1242151A43DBBE2F7065CB487A3E9";n.prototype.Pa=function(a){var b,c=this.parent;if(this.group)for(this.$k=!0;c;){if(!c.group){this.$k=!1;break}c=c.parent}this.Mn=!this.Tp()&&(!this.parent||this.parent.group&&this.parent.$k);this.Dp=!!a;this.Te=this.V.slice(0);for(c=this.parent;c;){a=
0;for(b=c.V.length;a<b;a++)this.Eu(c.V[a]);c=c.parent}this.V=p(this.V);this.Te=p(this.Te);a=0;for(b=this.eb.length;a<b;a++)this.eb[a].Pa();a=0;for(b=this.Fc.length;a<b;a++)this.Fc[a].Pa();a=0;for(b=this.Uc.length;a<b;a++)this.Uc[a].Pa(a<b-1&&this.Uc[a+1].bk)};n.prototype.ty=function(a){if(this.dg!==!!a){this.dg=!!a;var b;a=0;for(b=this.sj.length;a<b;++a)this.sj[a].Wr();0<b&&this.b.ba.hf&&this.b.ba.hf.Rn()}};n.prototype.Mo=function(a){g(a,this.V)};n.prototype.Eu=function(a){g(a,this.Te)};n.prototype.Qk=
function(){this.Fn=!0;this.parent&&this.parent.Qk()};n.prototype.Tp=function(){return this.eb.length?this.eb[0].trigger:!1};n.prototype.Ya=function(){var a,b,c=!1,e=this.b,k=this.b.Ea();k.Ia=this;var d=this.eb;this.bk||(k.$l=!1);if(this.kc){0===d.length&&(c=!0);k.Ra=0;for(a=d.length;k.Ra<a;k.Ra++)b=d[k.Ra],b.trigger||(b=b.Ya())&&(c=!0);(k.xf=c)&&this.Ik()}else{k.Ra=0;for(a=d.length;k.Ra<a;k.Ra++)if(b=d[k.Ra].Ya(),!b){k.xf=!1;this.Mn&&e.He&&e.Gb();return}k.xf=!0;this.Ik()}this.zv(k)};n.prototype.zv=
function(a){a.xf&&this.Dp&&(a.$l=!0);this.Mn&&this.b.He&&this.b.Gb()};n.prototype.ky=function(a){this.b.Ea().Ia=this;this.eb[a].Ya()&&(this.Ik(),this.b.Ea().xf=!0)};n.prototype.Ik=function(){var a=this.b.Ea(),b;a.Wb=0;for(b=this.Fc.length;a.Wb<b;a.Wb++)if(this.Fc[a.Wb].Ya())return;this.pr()};n.prototype.iy=function(){var a=this.b.Ea(),b;for(b=this.Fc.length;a.Wb<b;a.Wb++)if(this.Fc[a.Wb].Ya())return;this.pr()};n.prototype.pr=function(){if(this.Uc.length){var a,b,c,e,k=this.Uc.length-1;this.b.Ek(this);
if(this.Fn)for(a=0,b=this.Uc.length;a<b;a++)c=this.Uc[a],(e=!this.$k||!this.group&&a<k)&&this.b.Qe(c.V),c.Ya(),e?this.b.jd(c.V):this.b.Nl(c.V);else for(a=0,b=this.Uc.length;a<b;a++)this.Uc[a].Ya();this.b.zk()}};n.prototype.ly=function(){var a=this.b.Ea();a.Ia=this;var b=!1,c;a.Ra=0;for(c=this.eb.length;a.Ra<c;a.Ra++)if(this.eb[a.Ra].Ya())b=!0;else if(!this.kc)return!1;return this.kc?b:!0};n.prototype.ee=function(){this.b.kf++;var a=this.b.Ea().Ra,b=this.b.Ek(this);if(!this.kc)for(b.Ra=a+1,a=this.eb.length;b.Ra<
a;b.Ra++)if(!this.eb[b.Ra].Ya())return this.b.zk(),!1;this.Ik();this.b.zk();return!0};n.prototype.bx=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.eb[b].type===a.type)return!1;return!0};fc=n;b.prototype.Pa=function(){var a,b,c;a=0;for(b=this.O.length;a<b;a++)c=this.O[a],c.Pa(),c.Wc&&(this.dh=!0)};b.prototype.ny=function(){return!0};b.prototype.zn=function(){var a,b;a=0;for(b=this.O.length;a<b;a++)this.Ka[a]=this.O[a].get();return Wa(this.zb.apply(this.b.Hd,this.Ka),this.fg)};
b.prototype.my=function(){var a,b;a=0;for(b=this.O.length;a<b;a++)this.Ka[a]=this.O[a].get();a=this.zb.apply(this.Ze?this.Ze:this.type,this.Ka);this.type.Gc();return a};b.prototype.yn=function(){var a,b,c,e,k,d,m,f,g=this.type,u=g.N(),l=this.qc.kc&&!this.trigger;b=0;var h=g.Ab,n=g.B,t=g.Vd,r=this.$c,p=-1<r,v=this.dh,B=this.O,D=this.Ka,y=this.fg,N=this.zb,C;if(v)for(b=0,k=B.length;b<k;++b)d=B[b],d.Wc||(D[b]=d.get(0));else for(b=0,k=B.length;b<k;++b)D[b]=B[b].get(0);if(u.R){A(u.d);A(u.I);C=g.d;a=0;
for(e=C.length;a<e;++a){f=C[a];if(v)for(b=0,k=B.length;b<k;++b)d=B[b],d.Wc&&(D[b]=d.get(a));p?(b=0,n&&(b=f.type.Zf[t]),b=N.apply(f.L[r+b],D)):b=N.apply(f,D);(m=Wa(b,y))?u.d.push(f):l&&u.I.push(f)}g.finish&&g.finish(!0);u.R=!1;g.Gc();return u.tm()}c=0;C=(m=l&&!this.qc.bx(this))?u.I:u.d;var I=!1;a=0;for(e=C.length;a<e;++a){f=C[a];if(v)for(b=0,k=B.length;b<k;++b)d=B[b],d.Wc&&(D[b]=d.get(a));p?(b=0,n&&(b=f.type.Zf[t]),b=N.apply(f.L[r+b],D)):b=N.apply(f,D);if(Wa(b,y))if(I=!0,m){if(u.d.push(f),h)for(b=
0,k=f.siblings.length;b<k;b++)d=f.siblings[b],d.type.N().d.push(d)}else{C[c]=f;if(h)for(b=0,k=f.siblings.length;b<k;b++)d=f.siblings[b],d.type.N().d[c]=d;c++}else if(m){C[c]=f;if(h)for(b=0,k=f.siblings.length;b<k;b++)d=f.siblings[b],d.type.N().I[c]=d;c++}else if(l&&(u.I.push(f),h))for(b=0,k=f.siblings.length;b<k;b++)d=f.siblings[b],d.type.N().I.push(d)}Ba(C,c);if(h)for(n=g.hc,a=0,e=n.length;a<e;a++)f=n[a].N(),m?Ba(f.I,c):Ba(f.d,c);c=I;if(m&&!I)for(a=0,e=u.d.length;a<e;a++){f=u.d[a];if(v)for(b=0,k=
B.length;b<k;b++)d=B[b],d.Wc&&(D[b]=d.get(a));b=p?N.apply(f.L[r],D):N.apply(f,D);if(Wa(b,y)){I=!0;break}}g.finish&&g.finish(c||l);return l?I:u.tm()};ac=b;d.prototype.Pa=function(){var a,b,c;a=0;for(b=this.O.length;a<b;a++)c=this.O[a],c.Pa(),c.Wc&&(this.dh=!0)};d.prototype.zn=function(){var a=this.b,b,c,e=this.O,k=this.Ka;b=0;for(c=e.length;b<c;++b)k[b]=e[b].get();return this.zb.apply(a.Hd,k)};d.prototype.yn=function(){var a=this.type,b=this.$c,c=a.Vd,e=this.dh,k=this.O,d=this.Ka,m=this.zb,f=a.N().Zb(),
a=a.B,g=-1<b,u,l,h,n,t,r;if(e)for(l=0,n=k.length;l<n;++l)t=k[l],t.Wc||(d[l]=t.get(0));else for(l=0,n=k.length;l<n;++l)d[l]=k[l].get(0);u=0;for(h=f.length;u<h;++u){r=f[u];if(e)for(l=0,n=k.length;l<n;++l)t=k[l],t.Wc&&(d[l]=t.get(u));g?(l=0,a&&(l=r.type.Zf[c]),m.apply(r.L[b+l],d)):m.apply(r,d)}return!1};bc=d;var u=[],m=-1;c.prototype.Pa=function(){var a,b;if(11===this.type)this.jf=this.b.vp(this.Ei,this.qc.parent);else if(13===this.type)for(a=0,b=this.Ff.length;a<b;a++)this.Ff[a].Pa();this.td&&this.td.Pa()};
c.prototype.xx=function(a){this.Wc||!a||a.X.Rk||(this.Wc=!0)};c.prototype.yr=function(){this.Wc=!0};c.prototype.Ew=function(a){this.je=a||0;a=l();this.td.get(a);m--;return a.data};c.prototype.Fw=function(a){this.je=a||0;a=l();this.td.get(a);m--;return z(a.data)?a.data:""};c.prototype.Lw=function(){return this.object};c.prototype.Cw=function(){return this.$o};c.prototype.Jw=function(a){this.je=a||0;a=l();this.td.get(a);m--;return a.qb()?this.b.ag(a.data):this.b.Sj(a.data)};c.prototype.Kw=function(){return this.rb};
c.prototype.Iw=function(){return this.key};c.prototype.Hw=function(){return this.index};c.prototype.Gw=function(a){a=a||0;var b=this.Oc.type,c=null,c=b.N(),e=c.Zb();if(e.length)c=e[a%e.length].type;else if(c.I.length)c=c.I[a%c.I.length].type;else if(b.d.length)c=b.d[a%b.d.length].type;else return 0;return this.index+c.Hj[b.Vd]};c.prototype.Dw=function(){return this.jf};c.prototype.Bw=function(){return this.mp};c.prototype.Mw=function(){var a,b;a=0;for(b=this.Ff.length;a<b;a++)this.Di[a]=this.Ff[a].get();
return this.Di};cc=c;f.prototype.Pa=function(){this.V=p(this.V)};f.prototype.he=function(a){var b=this.b.tp();this.parent&&!this.Lh&&b?(this.Cf>=b.length&&(b.length=this.Cf+1),b[this.Cf]=a):this.data=a};f.prototype.of=function(){var a=this.b.tp();return!this.parent||this.Lh||!a||this.ak?this.data:this.Cf>=a.length||"undefined"===typeof a[this.Cf]?this.xm:a[this.Cf]};f.prototype.Ya=function(){!this.parent||this.Lh||this.ak||this.he(this.xm)};Xb=f;a.prototype.toString=function(){return"include:"+this.Ah.toString()};
a.prototype.Pa=function(){this.Ah=this.b.cm[this.Sw];this.sheet.Fp.add(this);this.V=p(this.V);for(var a=this.parent;a;)a.group&&a.sj.push(this),a=a.parent;this.Wr()};a.prototype.Ya=function(){this.parent&&this.b.ii(this.b.p);this.Ah.um||this.Ah.Ya(!0);this.parent&&this.b.jd(this.b.p)};a.prototype.Wr=function(){for(var a=this.parent;a;){if(a.group&&!a.dg){this.nc=!1;return}a=a.parent}this.nc=!0};gc=a;k.prototype.reset=function(a){this.Ia=a;this.Wb=this.Ra=0;A(this.Kr);this.$l=this.xf=!1};k.prototype.Em=
function(){return this.Ia.Fn?!0:this.Ra<this.Ia.eb.length-1?!!this.Ia.V.length:!1};Wb=k})();
(function(){function h(g,b){this.Oc=g;this.b=g.b;this.type=b[0];this.get=[this.Rv,this.Nv,this.$v,this.dw,this.Cv,this.aw,this.Vv,this.Kv,this.Uv,this.Zv,this.Dv,this.Yv,this.Lv,this.Wv,this.Sv,this.Tv,this.Ov,this.Pv,this.Jv,this.bw,this.Xv,this.Qv,this.Iv,this.Mv][this.type];var d=null;this.ae=this.O=this.Ka=this.zb=this.Zk=this.second=this.first=this.value=null;this.$c=-1;this.fd=null;this.bs=-1;this.jf=this.Ei=null;this.Ig=!1;switch(this.type){case 0:case 1:case 2:this.value=b[1];break;case 3:this.first=
new ec(g,b[1]);break;case 18:this.first=new ec(g,b[1]);this.second=new ec(g,b[2]);this.Zk=new ec(g,b[3]);break;case 19:this.zb=this.b.qe(b[1]);this.zb!==T.prototype.g.random&&this.zb!==T.prototype.g.Yo||this.Oc.yr();this.Ka=[];this.O=[];3===b.length?(d=b[2],this.Ka.length=d.length+1):this.Ka.length=1;break;case 20:this.ae=this.b.p[b[1]];this.$c=-1;this.zb=this.b.qe(b[2]);this.Ig=b[3];sc&&this.zb===sc.prototype.g.bo&&this.Oc.yr();b[4]?this.fd=new ec(g,b[4]):this.fd=null;this.Ka=[];this.O=[];6===b.length?
(d=b[5],this.Ka.length=d.length+1):this.Ka.length=1;break;case 21:this.ae=this.b.p[b[1]];this.Ig=b[2];b[3]?this.fd=new ec(g,b[3]):this.fd=null;this.bs=b[4];break;case 22:this.ae=this.b.p[b[1]];this.ae.Pj(b[2]);this.$c=this.ae.im(b[2]);this.zb=this.b.qe(b[3]);this.Ig=b[4];b[5]?this.fd=new ec(g,b[5]):this.fd=null;this.Ka=[];this.O=[];7===b.length?(d=b[6],this.Ka.length=d.length+1):this.Ka.length=1;break;case 23:this.Ei=b[1],this.jf=null}this.Oc.xx(this.ae);4<=this.type&&17>=this.type&&(this.first=new ec(g,
b[1]),this.second=new ec(g,b[2]));if(d){var l,c;l=0;for(c=d.length;l<c;l++)this.O.push(new ec(g,d[l]))}}function r(){++n;v.length===n&&v.push(new dc);return v[n]}function p(g,b,d){var l,c;l=0;for(c=g.length;l<c;++l)g[l].get(d),b[l+1]=d.data}function t(g,b){this.type=g||hc.Nf;this.data=b||0;this.Df=null;this.type==hc.Nf&&(this.data=Math.floor(this.data))}h.prototype.Pa=function(){23===this.type&&(this.jf=this.Oc.b.vp(this.Ei,this.Oc.qc.parent));this.first&&this.first.Pa();this.second&&this.second.Pa();
this.Zk&&this.Zk.Pa();this.fd&&this.fd.Pa();if(this.O){var g,b;g=0;for(b=this.O.length;g<b;g++)this.O[g].Pa()}};var v=[],n=-1;h.prototype.bw=function(g){var b=this.O,d=this.Ka;d[0]=g;g=r();p(b,d,g);--n;this.zb.apply(this.b.Hd,d)};h.prototype.Xv=function(g){var b=this.ae,d=this.Ka,l=this.O,c=this.fd,f=this.zb,a=this.Oc.je,k=b.N(),e=k.Zb();if(!e.length)if(k.I.length)e=k.I;else{this.Ig?g.la(""):g.H(0);return}d[0]=g;g.Df=b;g=r();p(l,d,g);c&&(c.get(g),g.qb()&&(a=g.data,e=b.d));--n;b=e.length;if(a>=b||
a<=-b)a%=b;0>a&&(a+=b);f.apply(e[a],d)};h.prototype.Iv=function(g){var b=this.ae,d=this.Ka,l=this.O,c=this.fd,f=this.$c,a=this.zb,k=this.Oc.je,e=b.N(),u=e.Zb();if(!u.length)if(e.I.length)u=e.I;else{this.Ig?g.la(""):g.H(0);return}d[0]=g;g.Df=b;g=r();p(l,d,g);c&&(c.get(g),g.qb()&&(k=g.data,u=b.d));--n;l=u.length;if(k>=l||k<=-l)k%=l;0>k&&(k+=l);k=u[k];u=0;b.B&&(u=k.type.Zf[b.Vd]);a.apply(k.L[f+u],d)};h.prototype.Qv=function(g){var b=this.fd,d=this.ae,l=this.bs,c=this.Oc.je,f=d.N(),a=f.Zb();if(!a.length)if(f.I.length)a=
f.I;else{this.Ig?g.la(""):g.H(0);return}if(b){f=r();b.get(f);if(f.qb()){c=f.data;a=d.d;0!==a.length&&(c%=a.length,0>c&&(c+=a.length));c=d.mm(c);d=c.hb[l];z(d)?g.la(d):g.n(d);--n;return}--n}b=a.length;if(c>=b||c<=-b)c%=b;0>c&&(c+=b);c=a[c];a=0;d.B&&(a=c.type.Hj[d.Vd]);d=c.hb[l+a];z(d)?g.la(d):g.n(d)};h.prototype.Rv=function(g){g.type=hc.Nf;g.data=this.value};h.prototype.Nv=function(g){g.type=hc.Mf;g.data=this.value};h.prototype.$v=function(g){g.type=hc.String;g.data=this.value};h.prototype.dw=function(g){this.first.get(g);
g.qb()&&(g.data=-g.data)};h.prototype.Cv=function(g){this.first.get(g);var b=r();this.second.get(b);g.qb()&&b.qb()&&(g.data+=b.data,b.kg()&&g.wg());--n};h.prototype.aw=function(g){this.first.get(g);var b=r();this.second.get(b);g.qb()&&b.qb()&&(g.data-=b.data,b.kg()&&g.wg());--n};h.prototype.Vv=function(g){this.first.get(g);var b=r();this.second.get(b);g.qb()&&b.qb()&&(g.data*=b.data,b.kg()&&g.wg());--n};h.prototype.Kv=function(g){this.first.get(g);var b=r();this.second.get(b);g.qb()&&b.qb()&&(g.data/=
b.data,g.wg());--n};h.prototype.Uv=function(g){this.first.get(g);var b=r();this.second.get(b);g.qb()&&b.qb()&&(g.data%=b.data,b.kg()&&g.wg());--n};h.prototype.Zv=function(g){this.first.get(g);var b=r();this.second.get(b);g.qb()&&b.qb()&&(g.data=Math.pow(g.data,b.data),b.kg()&&g.wg());--n};h.prototype.Dv=function(g){this.first.get(g);var b=r();this.second.get(b);b.ng()||g.ng()?this.Fv(g,b):this.Ev(g,b);--n};h.prototype.Fv=function(g,b){g.ng()&&b.ng()?this.Hv(g,b):this.Gv(g,b)};h.prototype.Hv=function(g,
b){g.data+=b.data};h.prototype.Gv=function(g,b){g.ng()?g.data+=(Math.round(1E10*b.data)/1E10).toString():g.la(g.data.toString()+b.data)};h.prototype.Ev=function(g,b){g.H(g.data&&b.data?1:0)};h.prototype.Yv=function(g){this.first.get(g);var b=r();this.second.get(b);g.qb()&&b.qb()&&(g.data||b.data?g.H(1):g.H(0));--n};h.prototype.Jv=function(g){this.first.get(g);g.data?this.second.get(g):this.Zk.get(g)};h.prototype.Lv=function(g){this.first.get(g);var b=r();this.second.get(b);g.H(g.data===b.data?1:0);
--n};h.prototype.Wv=function(g){this.first.get(g);var b=r();this.second.get(b);g.H(g.data!==b.data?1:0);--n};h.prototype.Sv=function(g){this.first.get(g);var b=r();this.second.get(b);g.H(g.data<b.data?1:0);--n};h.prototype.Tv=function(g){this.first.get(g);var b=r();this.second.get(b);g.H(g.data<=b.data?1:0);--n};h.prototype.Ov=function(g){this.first.get(g);var b=r();this.second.get(b);g.H(g.data>b.data?1:0);--n};h.prototype.Pv=function(g){this.first.get(g);var b=r();this.second.get(b);g.H(g.data>=
b.data?1:0);--n};h.prototype.Mv=function(g){var b=this.jf.of();ja(b)?g.n(b):g.la(b)};ec=h;t.prototype.kg=function(){return this.type===hc.Mf};t.prototype.qb=function(){return this.type===hc.Nf||this.type===hc.Mf};t.prototype.ng=function(){return this.type===hc.String};t.prototype.wg=function(){this.kg()||(this.ng()&&(this.data=parseFloat(this.data)),this.type=hc.Mf)};t.prototype.H=function(g){this.type=hc.Nf;this.data=Math.floor(g)};t.prototype.n=function(g){this.type=hc.Mf;this.data=g};t.prototype.la=
function(g){this.type=hc.String;this.data=g};t.prototype.Kg=function(g){ja(g)?(this.type=hc.Mf,this.data=g):z(g)?(this.type=hc.String,this.data=g.toString()):(this.type=hc.Nf,this.data=0)};dc=t;hc={Nf:0,Mf:1,String:2}})();function T(h){this.b=h;this.fc=[]}
T.prototype.Fb=function(){var h={},r,p,t,v,n,g,b,d;h.waits=[];var l=h.waits,c;r=0;for(p=this.fc.length;r<p;r++){g=this.fc[r];c={t:g.time,st:g.Gr,s:g.En,ev:g.Yf.Y,sm:[],sols:{}};g.Yf.Fc[g.Wb]&&(c.act=g.Yf.Fc[g.Wb].Y);t=0;for(v=g.V.length;t<v;t++)c.sm.push(g.V[t].Y);for(n in g.Sb)if(g.Sb.hasOwnProperty(n)){b=this.b.p[parseInt(n,10)];d={sa:g.Sb[n].Jk,insts:[]};t=0;for(v=g.Sb[n].Xd.length;t<v;t++)d.insts.push(g.Sb[n].Xd[t].uid);c.sols[b.Y.toString()]=d}l.push(c)}return h};
T.prototype.Qb=function(h){h=h.waits;var r,p,t,v,n,g,b,d,l,c,f;A(this.fc);r=0;for(p=h.length;r<p;r++)if(g=h[r],d=this.b.Ro[g.ev.toString()]){l=-1;t=0;for(v=d.Fc.length;t<v;t++)if(d.Fc[t].Y===g.act){l=t;break}if(-1!==l){b={Sb:{},V:[],Xl:!1};b.time=g.t;b.Gr=g.st||"";b.En=!!g.s;b.Yf=d;b.Wb=l;t=0;for(v=g.sm.length;t<v;t++)(d=this.b.Vj(g.sm[t]))&&b.V.push(d);for(n in g.sols)if(g.sols.hasOwnProperty(n)&&(d=this.b.Vj(parseInt(n,10)))){l=g.sols[n];c={Jk:l.sa,Xd:[]};t=0;for(v=l.insts.length;t<v;t++)(f=this.b.Uj(l.insts[t]))&&
c.Xd.push(f);b.Sb[d.index.toString()]=c}this.fc.push(b)}}};
(function(){function h(){}function r(){}function p(){}var t=T.prototype;h.prototype.Ds=function(){return!0};h.prototype.to=function(){return!0};h.prototype.so=function(){return!0};h.prototype.qs=function(a,b,c){return ic(a,b,c)};h.prototype.wu=function(){var a=this.b.Ea(),b=a.Ia,c=a.Em(),a=this.b.pn();if(c)for(c=0;!a.ta;c++)this.b.Qe(b.V),a.index=c,b.ee()||(a.ta=!0),this.b.jd(b.V);else for(c=0;!a.ta;c++)a.index=c,b.ee()||(a.ta=!0);this.b.ln();return!1};h.prototype.Fs=function(a,b,c){var d=this.b.Ea(),
m=d.Ia,d=d.Em();a=this.b.pn(a);if(c<b)if(d)for(;b>=c&&!a.ta;--b)this.b.Qe(m.V),a.index=b,m.ee(),this.b.jd(m.V);else for(;b>=c&&!a.ta;--b)a.index=b,m.ee();else if(d)for(;b<=c&&!a.ta;++b)this.b.Qe(m.V),a.index=b,m.ee(),this.b.jd(m.V);else for(;b<=c&&!a.ta;++b)a.index=b,m.ee();this.b.ln();return!1};var v=[],n=-1;h.prototype.Gs=function(a){var b=a.N();n++;v.length===n&&v.push([]);var c=v[n];Da(c,b.Zb());var d=this.b.Ea(),m=d.Ia,f=d.Em(),d=this.b.pn(),g,l,h,t,r,p,L=a.Ab;if(f)for(f=0,g=c.length;f<g&&!d.ta;f++){this.b.Qe(m.V);
t=c[f];b=a.N();b.R=!1;A(b.d);b.d[0]=t;if(L)for(l=0,h=t.siblings.length;l<h;l++)r=t.siblings[l],p=r.type.N(),p.R=!1,A(p.d),p.d[0]=r;d.index=f;m.ee();this.b.jd(m.V)}else for(b.R=!1,A(b.d),f=0,g=c.length;f<g&&!d.ta;f++){t=c[f];b.d[0]=t;if(L)for(l=0,h=t.siblings.length;l<h;l++)r=t.siblings[l],p=r.type.N(),p.R=!1,A(p.d),p.d[0]=r;d.index=f;m.ee()}A(c);this.b.ln();n--;return!1};h.prototype.Ht=function(a,b,c,d){var m,f,g,l;if(a){n++;v.length===n&&v.push([]);var h=v[n],t=a.N();Da(h,t.Zb());t.R&&A(t.I);var r=
this.b.Qj();g=m=0;for(f=h.length;m<f;m++)l=h[m],h[g]=l,b=r.O[1].get(m),d=r.O[3].get(m),ic(b,c,d)?g++:t.I.push(l);Ba(h,g);t.R=!1;Da(t.d,h);A(h);n--;a.Gc();return!!t.d.length}};h.prototype.It=function(a,b){if(!a)return!1;var c=a.N(),d=c.Zb();b=ta(b);if(0>b||b>=d.length)return!1;c.Fg(d[b]);a.Gc();return!0};h.prototype.ws=function(a,b,c){return ic(a.of(),b,c)};h.prototype.Qs=function(a){return(a=this.b.wh[a.toLowerCase()])&&a.dg};h.prototype.Ws=function(){return"undefined"!==typeof cr_is_preview};h.prototype.Gt=
function(a){if(!a||!a.d.length)return!1;a.N().R=!0;a.Gc();return!0};h.prototype.Ss=function(){return this.b.sf};h.prototype.ho=function(){var a=this.b.Ea();return a.$l?!1:!a.xf};h.prototype.uo=function(){return!0};h.prototype.jt=function(){return!0};h.prototype.Cs=function(){return!!this.b.k};h.prototype.ql=function(){return!0};h.prototype.zo=function(){return!0};h.prototype.ut=function(){return!0};h.prototype.Vi=function(){return!0};var g=null,b="",d="";h.prototype.Qt=function(a,c,e){g&&c===b&&e===
d||(g=new RegExp(c,e),b=c,d=e);g.lastIndex=0;return g.test(a)};var l=[];h.prototype.Jt=function(a,b,c){if(!a)return!1;var d=a.N(),m=d.Zb(),f=this.b.Ea().Ia.kc,g=this.b.Qj(),h,n;d.R?(Da(l,m),A(d.I),d.R=!1,A(d.d)):f?(Da(l,d.I),A(d.I)):(Da(l,m),A(d.d));m=0;for(f=l.length;m<f;++m)h=l[m],h.Aa(),(n=Wa(h.Ib(b,c),g.fg))?d.d.push(h):d.I.push(h);a.Gc();return Wa(!!d.d.length,g.fg)};h.prototype.kl=function(a,b,c){return Ra(G(a),G(c))<=G(b)};h.prototype.Ps=function(a,b){return Ta(G(a),G(b))};h.prototype.Ns=function(a,
b,c){a=Oa(a);b=Oa(b);c=Oa(c);return Ta(c,b)?Ta(a,b)&&!Ta(a,c):!(!Ta(a,b)&&Ta(a,c))};t.c=new h;r.prototype.Is=function(a){this.b.Mh||this.b.ih||(this.b.ih=a)};r.prototype.As=function(a,b,c,d){if(b&&a&&(b=this.b.Rl(a,b,c,d))){this.b.wc++;var m;this.b.trigger(Object.getPrototypeOf(a.X).c.Jd,b);if(b.Ab)for(c=0,d=b.siblings.length;c<d;c++)m=b.siblings[c],this.b.trigger(Object.getPrototypeOf(m.type.X).c.Jd,m);this.b.wc--;a=a.N();a.R=!1;A(a.d);a.d[0]=b;if(b.Ab)for(c=0,d=b.siblings.length;c<d;c++)m=b.siblings[c],
a=m.type.N(),a.R=!1,A(a.d),a.d[0]=m}};r.prototype.Ut=function(a){this.b.ba.Kk(a)};r.prototype.Vt=function(a){this.b.ba.Lk(a)};r.prototype.Tt=function(a,b){this.b.ba.Kk(a);this.b.ba.Lk(b)};r.prototype.ku=function(a,b){0===a.Fi?ja(b)?a.he(b):a.he(parseFloat(b)):1===a.Fi&&a.he(b.toString())};r.prototype.ks=function(a,b){0===a.Fi?ja(b)?a.he(a.of()+b):a.he(a.of()+parseFloat(b)):1===a.Fi&&a.he(a.of()+b.toString())};r.prototype.su=function(a,b){0===a.Fi&&(ja(b)?a.he(a.of()-b):a.he(a.of()-parseFloat(b)))};
r.prototype.ju=function(a){0>a&&(a=0);this.b.Jf=a};var c=[],f=[];r.prototype.vu=function(a){if(!(0>a)){var b,e,d,m=this.b.Ea(),g;c.length?g=c.pop():g={Sb:{},V:[]};g.Xl=!1;g.time=this.b.Bb.Z+a;g.Gr="";g.En=!1;g.Yf=m.Ia;g.Wb=m.Wb+1;a=0;for(b=this.b.p.length;a<b;a++)d=this.b.p[a],e=d.N(),e.R&&-1===m.Ia.V.indexOf(d)||(g.V.push(d),d=void 0,f.length?d=f.pop():d={Xd:[]},d.Jk=!1,d.Jk=e.R,Da(d.Xd,e.d),g.Sb[a.toString()]=d);this.fc.push(g);return!0}};r.prototype.cu=function(a,b){a&&!!b!==!!a.Dc&&(a.Dc=!!b,
this.b.fa=!0)};t.e=new r;p.prototype["int"]=function(a,b){z(b)?(a.H(parseInt(b,10)),isNaN(a.data)&&(a.data=0)):a.H(b)};p.prototype["float"]=function(a,b){z(b)?(a.n(parseFloat(b)),isNaN(a.data)&&(a.data=0)):a.n(b)};p.prototype.qx=function(a,b){a.H(b.length||0)};p.prototype.random=function(a,b,c){void 0===c?a.n(Math.random()*b):a.n(Math.random()*(c-b)+b)};p.prototype.sqrt=function(a,b){a.n(Math.sqrt(b))};p.prototype.abs=function(a,b){a.n(Math.abs(b))};p.prototype.round=function(a,b){a.H(Math.round(b))};
p.prototype.floor=function(a,b){a.H(Math.floor(b))};p.prototype.ceil=function(a,b){a.H(Math.ceil(b))};p.prototype.sin=function(a,b){a.n(Math.sin(G(b)))};p.prototype.cos=function(a,b){a.n(Math.cos(G(b)))};p.prototype.tan=function(a,b){a.n(Math.tan(G(b)))};p.prototype.asin=function(a,b){a.n(Ka(Math.asin(b)))};p.prototype.acos=function(a,b){a.n(Ka(Math.acos(b)))};p.prototype.atan=function(a,b){a.n(Ka(Math.atan(b)))};p.prototype.exp=function(a,b){a.n(Math.exp(b))};p.prototype.log10=function(a,b){a.n(Math.log(b)/
Math.LN10)};p.prototype.max=function(a){var b=arguments[1];"number"!==typeof b&&(b=0);var c,d,m;c=2;for(d=arguments.length;c<d;c++)m=arguments[c],"number"===typeof m&&b<m&&(b=m);a.n(b)};p.prototype.min=function(a){var b=arguments[1];"number"!==typeof b&&(b=0);var c,d,m;c=2;for(d=arguments.length;c<d;c++)m=arguments[c],"number"===typeof m&&b>m&&(b=m);a.n(b)};p.prototype.De=function(a){a.n(this.b.De)};p.prototype.Jf=function(a){a.n(this.b.Jf)};p.prototype.time=function(a){a.n(this.b.Bb.Z)};p.prototype.Rg=
function(a){a.H(this.b.Rg)};p.prototype.rk=function(a){a.H(this.b.rk)};p.prototype.gm=function(a){a.H(this.b.gm)};p.prototype.ux=function(a,b){var c,d;if(this.b.Yh.length)if(b){for(d=this.b.Zh;0<=d;--d)if(c=this.b.Yh[d],c.name===b){a.H(c.index);return}a.H(0)}else c=this.b.up(),a.H(c?c.index:-1);else a.H(0)};p.prototype.Xu=function(a,b,c,d,m){a.n(Va(b,c,d,m))};p.prototype.m=function(a,b,c,d,m){a.n(Ka(Pa(b,c,d,m)))};p.prototype.Ax=function(a){a.la("\n")};p.prototype.Oy=function(a,b){a.la(z(b)?b.toUpperCase():
"")};p.prototype.ox=function(a){a.H(this.b.ba.width)};p.prototype.nx=function(a){a.H(this.b.ba.height)};p.prototype.left=function(a,b,c){a.la(z(b)?b.substr(0,c):"")};p.prototype.right=function(a,b,c){a.la(z(b)?b.substr(b.length-c):"")};p.prototype.yx=function(a,b,c,d){a.la(z(b)?b.substr(c,d):"")};p.prototype.Jy=function(a,b,c,d){z(b)&&z(d)?(b=b.split(d),c=ta(c),0>c||c>=b.length?a.la(""):a.la(b[c])):a.la("")};p.prototype.Ky=function(a,b,c){z(b)&&b.length?a.H(b.split(c).length):a.H(0)};p.prototype.replace=
function(a,b,c,d){z(b)&&z(c)&&z(d)?a.la(b.replace(new RegExp(fb(c),"gi"),d)):a.la(z(b)?b:"")};p.prototype.trim=function(a,b){a.la(z(b)?b.trim():"")};p.prototype.Rx=function(a){a.n(sa)};p.prototype.Yo=function(a){var b=ta(Math.random()*(arguments.length-1));a.Kg(arguments[b+1])};p.prototype.Vy=function(a,b,c){var d=0>b?"-":"";0>b&&(b=-b);c=c-b.toString().length;for(var m=0;m<c;m++)d+="0";a.la(d+b.toString())};p.prototype.Pl=function(a){a.n(this.b.Pl/1E3)};p.prototype.jk=function(a){a.n(this.b.jk)};
p.prototype.Nu=function(a,b,c,d){b=this.b.wp(b);a.n(b?b.ub(c,d,!0):0)};p.prototype.Ou=function(a,b,c,d){b=this.b.wp(b);a.n(b?b.ub(c,d,!1):0)};p.prototype.Uw=function(a){a.n(Infinity)};p.prototype.Px=function(a){a.H(this.b.Wa)};p.prototype.Ox=function(a){a.H(this.b.Va)};t.g=new p;t.jy=function(){var a,b,e,d,m,g,l=this.b.Ea();a=0;for(e=this.fc.length;a<e;a++){d=this.fc[a];if(-1===d.time){if(!d.En)continue}else if(d.time>this.b.Bb.Z)continue;l.Ia=d.Yf;l.Wb=d.Wb;l.Ra=0;for(b in d.Sb)d.Sb.hasOwnProperty(b)&&
(m=this.b.p[parseInt(b,10)].N(),g=d.Sb[b],m.R=g.Jk,Da(m.d,g.Xd),m=g,A(m.Xd),f.push(m));d.Yf.iy();this.b.Nl(d.V);d.Xl=!0}b=a=0;for(e=this.fc.length;a<e;a++)d=this.fc[a],this.fc[b]=d,d.Xl?(Ya(d.Sb),A(d.V),c.push(d)):b++;Ba(this.fc,b)}})();
(function(){rb=function(h,p){var t=h[1],v=h[3],n=h[4],g=h[5],b=h[6],d=h[7],l=h[8];p.c||(p.c={});p.e||(p.e={});p.g||(p.g={});var c=p.c,f=p.e,a=p.g;v&&(c.Ni=function(a,b){return ic(this.x,a,b)},c.fo=function(a,b){return ic(this.y,a,b)},c.Zy=function(){var a=this.j;this.Aa();var b=this.Qa;return!(b.right<a.ma||b.bottom<a.na||b.left>a.wa||b.top>a.ua)},c.ko=function(){this.Aa();var a=this.Qa,b=this.b.ba;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},c.ez=function(a,b,c){var d=this.N(),f=
d.Zb();if(!f.length)return!1;var g=f[0],l=g,h=Va(g.x,g.y,b,c),n,t,r;n=1;for(t=f.length;n<t;n++)if(g=f[n],r=Va(g.x,g.y,b,c),0===a&&r<h||1===a&&r>h)h=r,l=g;d.Fg(l);return!0},f.Pf=function(a){this.x!==a&&(this.x=a,this.za())},f.$i=function(a){this.y!==a&&(this.y=a,this.za())},f.fu=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.za()},f.Eo=function(a,b){var c=a.ww(this);if(c){var d;c.nf?(d=c.nf(b,!0),c=c.nf(b,!1)):(d=c.x,c=c.y);if(this.x!==d||this.y!==c)this.x=d,this.y=c,this.za()}},f.bz=
function(a){0!==a&&(this.x+=Math.cos(this.m)*a,this.y+=Math.sin(this.m)*a,this.za())},f.az=function(a,b){0!==b&&(this.x+=Math.cos(G(a))*b,this.y+=Math.sin(G(a))*b,this.za())},a.aj=function(a){a.n(this.x)},a.Al=function(a){a.n(this.y)},a.De=function(a){a.n(this.b.Rj(this))});n&&(c.Wy=function(a,b){return ic(this.width,a,b)},c.ss=function(a,b){return ic(this.height,a,b)},f.Zi=function(a){this.width!==a&&(this.width=a,this.za())},f.Xi=function(a){this.height!==a&&(this.height=a,this.za())},f.$g=function(a,
b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.za()},a.bh=function(a){a.n(this.width)},a.Oi=function(a){a.n(this.height)},a.Zn=function(a){this.Aa();a.n(this.Qa.left)},a.ao=function(a){this.Aa();a.n(this.Qa.top)},a.$n=function(a){this.Aa();a.n(this.Qa.right)},a.Yn=function(a){this.Aa();a.n(this.Qa.bottom)});g&&(c.kl=function(a,b){return Ra(this.m,G(b))<=G(a)},c.Ps=function(a){return Ta(this.m,G(a))},c.Ns=function(a,b){var c=Oa(a),d=Oa(b),f=Ma(this.m);return Ta(d,c)?Ta(f,c)&&
!Ta(f,d):!(!Ta(f,c)&&Ta(f,d))},f.Co=function(a){a=G(La(a));isNaN(a)||this.m===a||(this.m=a,this.za())},f.hz=function(a){0===a||isNaN(a)||(this.m+=G(a),this.m=Ma(this.m),this.za())},f.iz=function(a){0===a||isNaN(a)||(this.m-=G(a),this.m=Ma(this.m),this.za())},f.jz=function(a,b){var c=Sa(this.m,G(b),G(a));isNaN(c)||this.m===c||(this.m=c,this.za())},f.kz=function(a,b,c){a=Sa(this.m,Math.atan2(c-this.y,b-this.x),G(a));isNaN(a)||this.m===a||(this.m=a,this.za())},f.lz=function(a,b){var c=Math.atan2(b-this.y,
a-this.x);isNaN(c)||this.m===c||(this.m=c,this.za())},a.ls=function(a){a.n(Na(this.m))});t||(c.Mi=function(a,b,c){return ic(this.hb[a],b,c)},c.ml=function(a){return this.hb[a]},c.fz=function(a,b){var c=this.N(),d=c.Zb();if(!d.length)return!1;var f=d[0],g=f,l=f.hb[b],h,n,t;h=1;for(n=d.length;h<n;h++)if(f=d[h],t=f.hb[b],0===a&&t<l||1===a&&t>l)l=t,g=f;c.Fg(g);return!0},c.Bo=function(a){var b,c,d,f,g;if(this.b.Qj().fg){g=this.N();if(g.R)for(g.R=!1,A(g.d),A(g.I),d=this.d,b=0,c=d.length;b<c;b++)f=d[b],
f.uid===a?g.I.push(f):g.d.push(f);else{d=b=0;for(c=g.d.length;b<c;b++)f=g.d[b],g.d[d]=f,f.uid===a?g.I.push(f):d++;Ba(g.d,d)}this.Gc();return!!g.d.length}f=this.b.Uj(a);if(!f)return!1;g=this.N();if(!g.R&&-1===g.d.indexOf(f))return!1;if(this.B)for(a=f.type.Da,b=0,c=a.length;b<c;b++){if(a[b]===this)return g.Fg(f),this.Gc(),!0}else if(f.type===this)return g.Fg(f),this.Gc(),!0;return!1},c.Jd=function(){return!0},c.po=function(){return!0},f.Yi=function(a,b){var c=this.hb;ja(c[a])?c[a]=ja(b)?b:parseFloat(b):
z(c[a])&&(c[a]=z(b)?b:b.toString())},f.jl=function(a,b){var c=this.hb;ja(c[a])?c[a]=ja(b)?c[a]+b:c[a]+parseFloat(b):z(c[a])&&(c[a]=z(b)?c[a]+b:c[a]+b.toString())},f.zl=function(a,b){var c=this.hb;ja(c[a])&&(c[a]=ja(b)?c[a]-b:c[a]-parseFloat(b))},f.ul=function(a,b){this.hb[a]=b?1:0},f.mz=function(a){this.hb[a]=1-this.hb[a]},f.Yg=function(){this.b.Xe(this)},f.ct||(f.ct=function(a){var b,c;try{b=JSON.parse(a)}catch(d){return}this.b.hk(this,b,!0);this.Kd&&this.Kd();if(this.L)for(a=0,b=this.L.length;a<
b;++a)c=this.L[a],c.Kd&&c.Kd()}),a.zs=function(a){var b=a.Df.d.length,c,d,f;c=0;for(d=this.b.cd.length;c<d;c++)f=this.b.cd[c],a.Df.B?0<=f.type.Da.indexOf(a.Df)&&b++:f.type===a.Df&&b++;a.H(b)},a.Kt=function(a){a.H(a.Df.N().Zb().length)},a.Go=function(a){a.H(this.uid)},a.Xy=function(a){a.H(this.uh())},a.ll||(a.ll=function(a){a.la(JSON.stringify(this.b.An(this,!0)))}));b&&(c.lo=function(){return this.visible},f.ah=function(a){!a!==!this.visible&&(this.visible=!!a,this.b.fa=!0)},c.eo=function(a,b){return ic(lb(100*
this.opacity),a,b)},f.Do=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.fa=!0)},a.Opacity=function(a){a.n(lb(100*this.opacity))});d&&(c.Yy=function(a){return a?this.j===a:!1},c.gz=function(a){var b=this.N(),c=b.Zb();if(!c.length)return!1;var d=c[0],f=d,g,l;g=1;for(l=c.length;g<l;g++)if(d=c[g],0===a){if(d.j.index>f.j.index||d.j.index===f.j.index&&d.wd()>f.wd())f=d}else if(d.j.index<f.j.index||d.j.index===f.j.index&&d.wd()<f.wd())f=d;b.Fg(f);return!0},f.ft=function(){var a=
this.j,b=a.d;b.length&&b[b.length-1]===this||(a.Gg(this,!1),a.fh(this,!1),this.b.fa=!0)},f.dt=function(){var a=this.j,b=a.d;b.length&&b[0]===this||(a.Gg(this,!1),a.Yx(this),this.b.fa=!0)},f.et=function(a){a&&a!=this.j&&(this.j.Gg(this,!0),this.j=a,a.fh(this,!0),this.b.fa=!0)},f.Ho=function(a,b){var c=0===a;if(b){var d=b.qw(this);d&&d.uid!==this.uid&&(this.j.index!==d.j.index&&(this.j.Gg(this,!0),this.j=d.j,d.j.fh(this,!0)),this.j.zx(this,d,c),this.b.fa=!0)}},a.bt=function(a){a.H(this.j.Jq)},a.$y=
function(a){a.la(this.j.name)},a.nz=function(a){a.H(this.wd())});l&&(f.au=function(a,b){if(this.b.k){var c=this.type.lm(b);if(!(0>c)){var d=1===a;this.re[c]!==d&&(this.re[c]=d,this.nd(),this.b.fa=!0)}}},f.wl=function(a,b,c){if(this.b.k){var d=this.type.lm(a);0>d||(a=this.type.M[d],d=this.Ja[d],b=Math.floor(b),0>b||b>=d.length||(1===this.b.k.Aw(a.Za,b)&&(c/=100),d[b]!==c&&(d[b]=c,a.nc&&(this.b.fa=!0))))}})};Ob=function(){this.Kl=this.Fl=!0;this.type.ej=!0;this.b.fa=!0;var h,p,t=this.Gl;h=0;for(p=t.length;h<
p;++h)t[h](this);this.j.Ec&&this.Aa()};Pb=function(h){h&&this.Gl.push(h)};Rb=function(){if(this.Fl){var h=this.Qa,p=this.Xb;h.set(this.x,this.y,this.x+this.width,this.y+this.height);h.offset(-this.Nb*this.width,-this.Ob*this.height);this.m?(h.offset(-this.x,-this.y),p.Br(h,this.m),p.offset(this.x,this.y),p.To(h)):p.ni(h);h.normalize();this.Fl=!1;this.Ny()}};var h=new wa(0,0,0,0);Sb=function(){if(this.j.Ec){var r=this.j.Eb,p=this.Qa;h.set(r.Ub(p.left),r.Vb(p.top),r.Ub(p.right),r.Vb(p.bottom));this.ac.oh(h)||
(this.ac.right<this.ac.left?r.update(this,null,h):r.update(this,this.ac,h),this.ac.Vf(h),this.j.ld=!0)}};Tb=function(){if(this.Kl&&this.$e){this.Aa();var r=this.type.rj,p=this.Qa;h.set(r.Ub(p.left),r.Vb(p.top),r.Ub(p.right),r.Vb(p.bottom));this.ze.oh(h)||(this.ze.right<this.ze.left?r.update(this,null,h):r.update(this,this.ze,h),this.ze.Vf(h),this.Kl=!1)}};Qb=function(h,p){return this.Qa.Ib(h,p)&&this.Xb.Ib(h,p)?this.Sg?this.Jz(h,p):this.ga&&!this.ga.jg()?(this.ga.Sf(this.width,this.height,this.m),
this.ga.Ib(h-this.x,p-this.y)):!0:!1};Kb=function(){this.type.cl();return this.rf};Ub=function(){this.j.Tn();return this.pd};Vb=function(){A(this.ea);var h,p,t,v=!0;h=0;for(p=this.re.length;h<p;h++)this.re[h]&&(t=this.type.M[h],this.ea.push(t),t.Rc||(v=!1));this.as=!!this.ea.length;this.ie=v};Lb=function(){return"Inst"+this.ir};ub=function(h){if(h&&h.Ab&&h.type!=this){var p,t,v;p=0;for(t=h.siblings.length;p<t;p++)if(v=h.siblings[p],v.type==this)return v}h=this.N().Zb();return h.length?h[0]:null};
vb=function(h){var p=this.N().Zb();return p.length?p[h.uh()%p.length]:null};tb=function(){if(this.Ng&&!this.B){var h,p;h=0;for(p=this.d.length;h<p;h++)this.d[h].rf=h;var t=h,v=this.b.cd;h=0;for(p=v.length;h<p;++h)v[h].type===this&&(v[h].rf=t++);this.Ng=!1}};Ib=function(h){if(h<this.d.length)return this.d[h];h-=this.d.length;var p=this.b.cd,t,v;t=0;for(v=p.length;t<v;++t)if(p[t].type===this){if(0===h)return p[t];--h}return null};wb=function(){return this.ke[this.sd]};xb=function(){this.sd++;this.sd===
this.ke.length?this.ke.push(new sb(this)):(this.ke[this.sd].R=!0,A(this.ke[this.sd].I))};yb=function(){this.sd++;this.sd===this.ke.length&&this.ke.push(new sb(this));var h=this.ke[this.sd],p=this.ke[this.sd-1];p.R?h.R=!0:(h.R=!1,Da(h.d,p.d));A(h.I)};zb=function(){this.sd--};Ab=function(h){var p,t,v,n,g,b=0;if(!this.B)for(p=0,t=this.Da.length;p<t;p++)for(g=this.Da[p],v=0,n=g.Ha.length;v<n;v++){if(h===g.Ha[v].name)return this.ja.lastBehIndex=b,g.Ha[v];b++}p=0;for(t=this.Ha.length;p<t;p++){if(h===this.Ha[p].name)return this.ja.lastBehIndex=
b,this.Ha[p];b++}return null};Bb=function(h){return this.Pj(h)?this.ja.lastBehIndex:-1};Cb=function(h){var p,t;p=0;for(t=this.M.length;p<t;p++)if(this.M[p].name===h)return p;return-1};Hb=function(){if(this.Ab&&!this.B){var h,p,t,v,n,g,b;this.cl();g=this.N();var d=g.R,l=(h=this.b.Ea())&&h.Ia&&h.Ia.kc;h=0;for(p=this.hc.length;h<p;h++)if(n=this.hc[h],n!==this&&(n.cl(),b=n.N(),b.R=d,!d)){A(b.d);t=0;for(v=g.d.length;t<v;++t)b.d[t]=n.mm(g.d[t].rf);if(l)for(A(b.I),t=0,v=g.I.length;t<v;++t)b.I[t]=n.mm(g.I[t].rf)}}};
Jb=function(){return"Type"+this.Y};ic=function(h,p,t){if("undefined"===typeof h||"undefined"===typeof t)return!1;switch(p){case 0:return h===t;case 1:return h!==t;case 2:return h<t;case 3:return h<=t;case 4:return h>t;case 5:return h>=t;default:return!1}}})();
var qc={tint:{src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nuniform lowp float red;\nuniform lowp float green;\nuniform lowp float blue;\nvoid main(void)\n{\nlowp vec4 front = texture2D(samplerFront, vTex);\ngl_FragColor = front * vec4(red, green, blue, 1.0);\n}",Ej:0,Fj:0,Sl:!1,Rc:!0,Cl:!1,O:[["red",0,1],["green",0,1],["blue",0,1]]}};function X(h){this.b=h}
(function(){function h(){}function r(){}function p(){}var t=!1,v=null,n=null,g="",b=X.prototype;b.W=function(a){this.X=a;this.b=a.b};b.W.prototype.D=function(){};b.S=function(a){this.type=a;this.b=a.b;this.rc=this.zd="";this.$b=0;this.timeout=-1;if(t=this.b.Hh)v=require("path"),n=require("fs"),g=v.dirname((window.process||nw.process).execPath)+"\\"};var d=b.S.prototype,l=null;window.C2_AJAX_DCSide=function(a,b,c){l&&("success"===a?(l.rc=b,l.zd=c,l.b.trigger(X.prototype.c.Pi,l),l.b.trigger(X.prototype.c.Zg,
l)):"error"===a?(l.rc=b,l.b.trigger(X.prototype.c.Qi,l),l.b.trigger(X.prototype.c.Ti,l)):"progress"===a&&(l.$b=c,l.rc=b,l.b.trigger(X.prototype.c.yo,l)))};d.D=function(){l=this};d.Fb=function(){return{lastData:this.zd}};d.Qb=function(a){this.zd=a.lastData;this.rc="";this.$b=0};var c={},f="";d.dv=function(a,b){if(this.b.pb)AppMobi.webview.execute('C2_AJAX_WebSide("'+a+'", "'+b+'", "GET", null);');else{var e=this,d=null,m=function(){e.rc=a;e.b.trigger(X.prototype.c.Qi,e);e.b.trigger(X.prototype.c.Ti,
e)},h=function(){if(t){var c=g+b;n.existsSync(c)?n.readFile(c,{encoding:"utf8"},function(b,c){b?m():(e.rc=a,e.zd=c.replace(/\r\n/g,"\n"),e.b.trigger(X.prototype.c.Pi,e),e.b.trigger(X.prototype.c.Zg,e))}):m()}else m()},l=function(b){b.lengthComputable&&(e.$b=b.loaded/b.total,e.rc=a,e.b.trigger(X.prototype.c.yo,e))};try{this.b.Ke?d=new ActiveXObject("Microsoft.XMLHTTP"):d=new XMLHttpRequest;d.onreadystatechange=function(){4===d.readyState&&(e.rc=a,d.responseText?e.zd=d.responseText.replace(/\r\n/g,
"\n"):e.zd="",400<=d.status?(e.b.trigger(X.prototype.c.Qi,e),e.b.trigger(X.prototype.c.Ti,e)):t&&!e.zd.length||!t&&0===d.status&&!e.zd.length||(e.b.trigger(X.prototype.c.Pi,e),e.b.trigger(X.prototype.c.Zg,e)))};this.b.Ke||(d.onerror=h,d.ontimeout=h,d.onabort=h,d.onprogress=l);d.open("GET",b);!this.b.Ke&&0<=this.timeout&&"undefined"!==typeof d.timeout&&(d.timeout=this.timeout);try{d.responseType="text"}catch(p){}if(d.setRequestHeader){for(var v in c)if(c.hasOwnProperty(v))try{d.setRequestHeader(v,
c[v])}catch(r){}c={}}if(f&&d.overrideMimeType){try{d.overrideMimeType(f)}catch(oa){}f=""}d.send()}catch(K){h()}}};h.prototype.Zg=function(a){return mb(a,this.rc)};h.prototype.Pi=function(){return!0};h.prototype.Ti=function(a){return mb(a,this.rc)};h.prototype.Qi=function(){return!0};h.prototype.yo=function(a){return mb(a,this.rc)};b.c=new h;r.prototype.Rt=function(a,b){var c=this;this.b.Jh&&!this.b.Lp(b)?this.b.lp(b,function(b){c.rc=a;c.zd=b.replace(/\r\n/g,"\n");c.b.trigger(X.prototype.c.Pi,c);c.b.trigger(X.prototype.c.Zg,
c)},function(){c.rc=a;c.b.trigger(X.prototype.c.Qi,c);c.b.trigger(X.prototype.c.Ti,c)}):this.dv(a,b)};b.e=new r;p.prototype.$s=function(a){a.la(this.zd)};b.g=new p})();function tc(h){this.b=h}
(function(){function h(){return b.length?b.pop():[]}function r(d){var g,c;g=0;for(c=d.length;g<c;g++)Array.isArray(d[g])&&r(d[g]);A(d);b.push(d)}function p(){}function t(){}function v(){}var n=tc.prototype;n.W=function(b){this.X=b;this.b=b.b};n.W.prototype.D=function(){};n.S=function(b){this.type=b;this.b=b.b};var g=n.S.prototype,b=[];Array.isArray||(Array.isArray=function(b){return"[object Array]"===Object.prototype.toString.call(b)});g.D=function(){this.ra=this.A[0];this.Ca=this.A[1];this.Ma=this.A[2];
this.Bc||(this.oc=h());var b=this.oc;b.length=this.ra;var g,c,f;for(g=0;g<this.ra;g++)for(b[g]||(b[g]=h()),b[g].length=this.Ca,c=0;c<this.Ca;c++)for(b[g][c]||(b[g][c]=h()),b[g][c].length=this.Ma,f=0;f<this.Ma;f++)b[g][c][f]=0;this.op=[];this.pp=[];this.qp=[];this.Wd=-1};g.Ef=function(){var b;for(b=0;b<this.ra;b++)r(this.oc[b]);A(this.oc)};g.pc=function(b,g,c){b=Math.floor(b);g=Math.floor(g);c=Math.floor(c);return isNaN(b)||0>b||b>this.ra-1||isNaN(g)||0>g||g>this.Ca-1||isNaN(c)||0>c||c>this.Ma-1?0:
this.oc[b][g][c]};g.set=function(b,g,c,f){b=Math.floor(b);g=Math.floor(g);c=Math.floor(c);isNaN(b)||0>b||b>this.ra-1||isNaN(g)||0>g||g>this.Ca-1||isNaN(c)||0>c||c>this.Ma-1||(this.oc[b][g][c]=f)};g.lw=function(){return JSON.stringify({c2array:!0,size:[this.ra,this.Ca,this.Ma],data:this.oc})};g.Fb=function(){return{size:[this.ra,this.Ca,this.Ma],data:this.oc}};g.Qb=function(b){var g=b.size;this.ra=g[0];this.Ca=g[1];this.Ma=g[2];this.oc=b.data};g.ge=function(b,g,c){0>b&&(b=0);0>g&&(g=0);0>c&&(c=0);
if(this.ra!==b||this.Ca!==g||this.Ma!==c){this.ra=b;this.Ca=g;this.Ma=c;var f,a,k=this.oc;k.length=b;for(b=0;b<this.ra;b++)for(ha(k[b])&&(k[b]=h()),k[b].length=g,f=0;f<this.Ca;f++)for(ha(k[b][f])&&(k[b][f]=h()),k[b][f].length=c,a=0;a<this.Ma;a++)ha(k[b][f][a])&&(k[b][f][a]=0)}};g.Uu=function(){return 0<=this.Wd&&this.Wd<this.op.length?this.op[this.Wd]:0};g.wv=function(){return 0<=this.Wd&&this.Wd<this.pp.length?this.pp[this.Wd]:0};g.rz=function(){return 0<=this.Wd&&this.Wd<this.qp.length?this.qp[this.Wd]:
0};p.prototype.Ni=function(b,g,c){return ic(this.pc(b,0,0),g,c)};p.prototype.xs=function(b,g,c,f){return ic(this.pc(b,g,0),c,f)};g.El=function(b){this.b.Qe(b.V);b.ee();this.b.jd(b.V)};p.prototype.nl=function(){return 0===this.ra||0===this.Ca||0===this.Ma};p.prototype.us=function(b,g,c){var f=0;switch(b){case 0:f=this.ra;break;case 1:f=this.Ca;break;case 2:f=this.Ma}return ic(f,g,c)};n.c=new p;t.prototype.co=function(){var b,g,c;for(b=0;b<this.ra;b++)for(g=0;g<this.Ca;g++)for(c=0;c<this.Ma;c++)this.oc[b][g][c]=
0};t.prototype.$g=function(b,g,c){this.ge(b,g,c)};t.prototype.Pf=function(b,g){this.set(b,0,0,g)};t.prototype.lu=function(b,g,c){this.set(b,g,0,c)};t.prototype.Ot=function(b,g,c){var f=0,a=0,k=0,e=this.oc;switch(c){case 0:0===b?(f=e.length,e.push(h())):(f=0,e.unshift(h()));for(e[f].length=this.Ca;a<this.Ca;a++)for(e[f][a]=h(),e[f][a].length=this.Ma,k=0;k<this.Ma;k++)e[f][a][k]=g;this.ra++;break;case 1:for(;f<this.ra;f++)for(0===b?(a=e[f].length,e[f].push(h())):(a=0,e[f].unshift(h())),e[f][a].length=
this.Ma,k=0;k<this.Ma;k++)e[f][a][k]=g;this.Ca++;break;case 2:for(;f<this.ra;f++)for(a=0;a<this.Ca;a++)0===b?e[f][a].push(g):e[f][a].unshift(g);this.Ma++}};t.prototype.Mt=function(b,g){var c=0,f=0,a=this.oc;switch(g){case 0:if(0===this.ra)break;0===b?r(a.pop()):r(a.shift());this.ra--;break;case 1:if(0===this.Ca)break;for(;c<this.ra;c++)0===b?r(a[c].pop()):r(a[c].shift());this.Ca--;break;case 2:if(0===this.Ma)break;for(;c<this.ra;c++)for(f=0;f<this.Ca;f++)0===b?a[c][f].pop():a[c][f].shift();this.Ma--}};
t.prototype.Bs=function(b,g){var c=0,f=0;b=Math.floor(b);var a=this.oc;if(!(0>b))switch(g){case 0:if(b>=this.ra)break;r(a[b]);a.splice(b,1);this.ra--;break;case 1:if(b>=this.Ca)break;for(;c<this.ra;c++)r(a[c][b]),a[c].splice(b,1);this.Ca--;break;case 2:if(b>=this.Ma)break;for(;c<this.ra;c++)for(f=0;f<this.Ca;f++)a[c][f].splice(b,1);this.Ma--}};n.e=new t;v.prototype.ms=function(b,g,c,f){b.Kg(this.pc(g,c||0,f||0))};v.prototype.bh=function(b){b.H(this.ra)};v.prototype.Oi=function(b){b.H(this.Ca)};v.prototype.ns=
function(b){b.Kg(this.pc(this.ra-1,0,0))};v.prototype.ll=function(b){b.la(this.lw())};n.g=new v})();function uc(h){this.b=h}
(function(){function h(a){-1===nb.indexOf(a)&&nb.push(a)}function r(a){var b=a.i,c;try{c=b.play()}catch(e){h(a);return}c?c.catch(function(){h(a)}):Ec&&!F.xc&&h(a)}function p(){var a,b,c,e;Fc||Db||!y||(t(),"running"===y.state&&(Fc=!0));var d=nb.slice(0);A(nb);if(!P)for(a=0,b=d.length;a<b;++a)c=d[a],c.ta||c.ic||(e=c.i.play())&&e.catch(function(){h(c)})}function t(){"suspended"===y.state&&y.resume&&y.resume();if(y.createBuffer){var a=y.createBuffer(1,220,22050),b=y.createBufferSource();b.buffer=a;b.connect(y.destination);
l(b)}}function v(a){a=Math.pow(10,a/20);isFinite(a)||(a=0);0>a&&(a=0);1<a&&(a=1);return a}function n(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function g(a){a=a.toLowerCase();return ea.hasOwnProperty(a)&&ea[a].length?ea[a][0].tc():y.destination}function b(){return y.createGain?y.createGain():y.createGainNode()}function d(a){return y.createDelay?y.createDelay(a):y.createDelayNode(a)}function l(a,b){a.start?a.start(b||0):a.noteOn(b||0)}function c(a,b,c,e){a.start?a.start(e||0,b):a.noteGrainOn(e||
0,b,c-b)}function f(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}function a(a,c,e,d,f,k){this.type="filter";this.Oa=[a,c,e,d,f,k];this.aa=b();this.K=b();this.K.gain.value=k;this.J=b();this.J.gain.value=1-k;this.Ta=y.createBiquadFilter();this.Ta.type="number"===typeof this.Ta.type?a:Kc[a];this.Ta.frequency.value=c;this.Ta.detune&&(this.Ta.detune.value=e);this.Ta.Q.value=d;this.Ta.gain.value=f;this.aa.connect(this.Ta);this.aa.connect(this.J);this.Ta.connect(this.K)}function k(a,c,e){this.type="delay";
this.Oa=[a,c,e];this.aa=b();this.K=b();this.K.gain.value=e;this.J=b();this.J.gain.value=1-e;this.$h=b();this.Kc=d(a);this.Kc.delayTime.value=a;this.zj=b();this.zj.gain.value=c;this.aa.connect(this.$h);this.aa.connect(this.J);this.$h.connect(this.K);this.$h.connect(this.Kc);this.Kc.connect(this.zj);this.zj.connect(this.$h)}function e(a,c,e,d){this.type="convolve";this.Oa=[c,e,d];this.aa=b();this.K=b();this.K.gain.value=e;this.J=b();this.J.gain.value=1-e;this.bf=y.createConvolver();a&&(this.bf.normalize=
c,this.bf.buffer=a);this.aa.connect(this.bf);this.aa.connect(this.J);this.bf.connect(this.K)}function u(a,c,e,f,k){this.type="flanger";this.Oa=[a,c,e,f,k];this.aa=b();this.J=b();this.J.gain.value=1-k/2;this.K=b();this.K.gain.value=k/2;this.Ij=b();this.Ij.gain.value=f;this.Kc=d(a+c);this.Kc.delayTime.value=a;this.tb=y.createOscillator();this.tb.frequency.value=e;this.lc=b();this.lc.gain.value=c;this.aa.connect(this.Kc);this.aa.connect(this.J);this.Kc.connect(this.K);this.Kc.connect(this.Ij);this.Ij.connect(this.Kc);
this.tb.connect(this.lc);this.lc.connect(this.Kc.delayTime);l(this.tb)}function m(a,c,e,d,f,k){this.type="phaser";this.Oa=[a,c,e,d,f,k];this.aa=b();this.J=b();this.J.gain.value=1-k/2;this.K=b();this.K.gain.value=k/2;this.Ta=y.createBiquadFilter();this.Ta.type="number"===typeof this.Ta.type?7:"allpass";this.Ta.frequency.value=a;this.Ta.detune&&(this.Ta.detune.value=c);this.Ta.Q.value=e;this.tb=y.createOscillator();this.tb.frequency.value=f;this.lc=b();this.lc.gain.value=d;this.aa.connect(this.Ta);
this.aa.connect(this.J);this.Ta.connect(this.K);this.tb.connect(this.lc);this.lc.connect(this.Ta.frequency);l(this.tb)}function q(a){this.type="gain";this.Oa=[a];this.da=b();this.da.gain.value=a}function w(a,c){this.type="tremolo";this.Oa=[a,c];this.da=b();this.da.gain.value=1-c/2;this.tb=y.createOscillator();this.tb.frequency.value=a;this.lc=b();this.lc.gain.value=c/2;this.tb.connect(this.lc);this.lc.connect(this.da.gain);l(this.tb)}function U(a,c){this.type="ringmod";this.Oa=[a,c];this.aa=b();this.K=
b();this.K.gain.value=c;this.J=b();this.J.gain.value=1-c;this.ki=b();this.ki.gain.value=0;this.tb=y.createOscillator();this.tb.frequency.value=a;this.tb.connect(this.ki.gain);l(this.tb);this.aa.connect(this.ki);this.aa.connect(this.J);this.ki.connect(this.K)}function E(a,c,e,d,f){this.type="distortion";this.Oa=[a,c,e,d,f];this.aa=b();this.Bk=b();this.Ak=b();this.ry(e,Math.pow(10,d/20));this.K=b();this.K.gain.value=f;this.J=b();this.J.gain.value=1-f;this.hl=y.createWaveShaper();this.xj=new Float32Array(65536);
this.jw(a,c);this.hl.xj=this.xj;this.aa.connect(this.Bk);this.aa.connect(this.J);this.Bk.connect(this.hl);this.hl.connect(this.Ak);this.Ak.connect(this.K)}function Ea(a,b,c,e,d){this.type="compressor";this.Oa=[a,b,c,e,d];this.da=y.createDynamicsCompressor();try{this.da.threshold.value=a,this.da.knee.value=b,this.da.ratio.value=c,this.da.attack.value=e,this.da.release.value=d}catch(f){}}function oa(a,b){this.type="analyser";this.Oa=[a,b];this.da=y.createAnalyser();this.da.fftSize=a;this.da.smoothingTimeConstant=
b;this.hw=new Float32Array(this.da.frequencyBinCount);this.Er=new Uint8Array(a);this.gi=0}function K(){this.ka=null;this.ik=0}function L(a,c){this.src=a;this.U=D;this.yd=c;this.dj=!1;var e=this;this.xg=this.Dg=null;this.Eg=[];this.Mk=0;this.Wn=this.Gj=this.Jr=this.wk=!1;1===D&&c&&!ob&&(this.U=0,this.Dg=b());this.Nd=this.ca=null;var d;switch(this.U){case 0:this.ca=new Audio;this.ca.crossOrigin="anonymous";this.ca.addEventListener("canplaythrough",function(){e.Wn=!0});1===D&&y.createMediaElementSource&&
!/wiiu/i.test(navigator.userAgent)&&(this.Jr=!0,this.ca.addEventListener("canplay",function(){!e.xg&&e.ca&&(e.xg=y.createMediaElementSource(e.ca),e.xg.connect(e.Dg))}));this.ca.autoplay=!1;this.ca.Dz="auto";this.ca.src=a;break;case 1:F.Jh?F.kp(a,function(a){e.Nd=a;e.cp()},function(){e.Gj=!0}):(d=new XMLHttpRequest,d.open("GET",a,!0),d.responseType="arraybuffer",d.onload=function(){e.Nd=d.response;e.cp()},d.onerror=function(){e.Gj=!0},d.send());break;case 2:this.ca=!0;break;case 3:this.ca=!0}}function H(a,
c){var e=this;this.tag=c;this.ta=this.vd=!0;this.src=a.src;this.buffer=a;this.U=D;this.yd=a.yd;this.playbackRate=1;this.eg=!0;this.ic=this.Cc=!1;this.cc=0;this.Kh=this.lg=this.Ad=!1;this.volume=1;this.dn=function(a){if(!e.ic&&!e.Cc){var b=this;b||(b=a.target);b===e.cj&&(e.eg=!0,e.ta=!0,x=e.tag,F.trigger(uc.prototype.c.Si,R))}};this.cj=null;this.ig=1===Aa&&!this.yd||2===Aa;this.zg=1;this.startTime=this.ig?F.Bb.Z:F.oe.Z;this.Xa=this.fb=null;this.Bd=!1;this.Cb=null;this.Xq=this.Wq=this.Vq=this.Uq=this.Zq=
this.Yq=0;this.i=null;var d=!1;1!==this.U||0!==this.buffer.U||this.buffer.Jr||(this.U=0);switch(this.U){case 0:this.yd?(this.i=a.ca,d=!a.dj,a.dj=!0):(this.i=new Audio,this.i.crossOrigin="anonymous",this.i.autoplay=!1,this.i.src=a.ca.src,d=!0);d&&this.i.addEventListener("ended",function(){x=e.tag;e.ta=!0;F.trigger(uc.prototype.c.Si,R)});break;case 1:this.fb=b();this.fb.connect(g(c));1===this.buffer.U?a.ca&&(this.i=y.createBufferSource(),this.i.buffer=a.ca,this.i.connect(this.fb)):(this.i=this.buffer.ca,
this.buffer.Dg.connect(this.fb),this.buffer.dj||(this.buffer.dj=!0,this.buffer.ca.addEventListener("ended",function(){x=e.tag;e.ta=!0;F.trigger(uc.prototype.c.Si,R)})));break;case 2:this.i=new window.Media(B+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(e.eg=!0,e.ta=!0,x=e.tag,F.trigger(uc.prototype.c.Si,R))});break;case 3:this.i=!0}}function W(a){A(ra);if(a.length){var b,c,e;b=0;for(c=C.length;b<c;b++)e=C[b],mb(a,e.tag)&&ra.push(e)}else I&&!I.qf()&&(A(ra),ra[0]=I)}function Q(a,
b){ea.hasOwnProperty(a)?ea[a].push(b):ea[a]=[b];var c,e,d,f,k=y.destination;if(ea.hasOwnProperty(a)&&(d=ea[a],d.length))for(k=d[0].tc(),c=0,e=d.length;c<e;c++)f=d[c],c+1===e?f.Hc(y.destination):f.Hc(d[c+1].tc());W(a);c=0;for(e=ra.length;c<e;c++)ra[c].cy(k);Qa&&Gb===a&&(Qa.disconnect(),Qa.connect(k))}function O(){}function J(){}var M=uc.prototype;M.W=function(a){this.X=a;this.b=a.b};M.W.prototype.D=function(){};var F=null,R=null,x="",B="",D=0,y=null,N=[],C=[],I=null,S=!1,Aa=0,P=!1,ia=1,ka=0,Ga=0,Db=
!1,Eb=1,Fb=1,Dc=10,Gc=1E4,Hc=1,Qa=null,Gb="",Ec=!1,nb=[],ob=!1,Fc=!1;document.addEventListener("pointerup",p,!0);document.addEventListener("touchend",p,!0);document.addEventListener("click",p,!0);document.addEventListener("keydown",p,!0);document.addEventListener("gamepadconnected",p,!0);var ea={},Kc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");a.prototype.Hc=function(a){this.K.disconnect();this.K.connect(a);this.J.disconnect();this.J.connect(a)};a.prototype.remove=
function(){this.aa.disconnect();this.Ta.disconnect();this.K.disconnect();this.J.disconnect()};a.prototype.tc=function(){return this.aa};k.prototype.Hc=function(a){this.K.disconnect();this.K.connect(a);this.J.disconnect();this.J.connect(a)};k.prototype.remove=function(){this.aa.disconnect();this.$h.disconnect();this.Kc.disconnect();this.zj.disconnect();this.K.disconnect();this.J.disconnect()};k.prototype.tc=function(){return this.aa};e.prototype.Hc=function(a){this.K.disconnect();this.K.connect(a);
this.J.disconnect();this.J.connect(a)};e.prototype.remove=function(){this.aa.disconnect();this.bf.disconnect();this.K.disconnect();this.J.disconnect()};e.prototype.tc=function(){return this.aa};u.prototype.Hc=function(a){this.J.disconnect();this.J.connect(a);this.K.disconnect();this.K.connect(a)};u.prototype.remove=function(){this.aa.disconnect();this.Kc.disconnect();this.tb.disconnect();this.lc.disconnect();this.J.disconnect();this.K.disconnect();this.Ij.disconnect()};u.prototype.tc=function(){return this.aa};
m.prototype.Hc=function(a){this.J.disconnect();this.J.connect(a);this.K.disconnect();this.K.connect(a)};m.prototype.remove=function(){this.aa.disconnect();this.Ta.disconnect();this.tb.disconnect();this.lc.disconnect();this.J.disconnect();this.K.disconnect()};m.prototype.tc=function(){return this.aa};q.prototype.Hc=function(a){this.da.disconnect();this.da.connect(a)};q.prototype.remove=function(){this.da.disconnect()};q.prototype.tc=function(){return this.da};w.prototype.Hc=function(a){this.da.disconnect();
this.da.connect(a)};w.prototype.remove=function(){this.tb.disconnect();this.lc.disconnect();this.da.disconnect()};w.prototype.tc=function(){return this.da};U.prototype.Hc=function(a){this.K.disconnect();this.K.connect(a);this.J.disconnect();this.J.connect(a)};U.prototype.remove=function(){this.tb.disconnect();this.ki.disconnect();this.aa.disconnect();this.K.disconnect();this.J.disconnect()};U.prototype.tc=function(){return this.aa};E.prototype.ry=function(a,b){.01>a&&(a=.01);this.Bk.gain.value=a;
this.Ak.gain.value=Math.pow(1/a,.6)*b};E.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};E.prototype.jw=function(a,b){for(var c=Math.pow(10,a/20),e=Math.pow(10,b/20),d=0,f=0;32768>f;++f)d=f/32768,d=this.shape(d,c,e),this.xj[32768+f]=d,this.xj[32768-f-1]=-d};E.prototype.Hc=function(a){this.K.disconnect();this.K.connect(a);this.J.disconnect();this.J.connect(a)};E.prototype.remove=function(){this.aa.disconnect();this.Bk.disconnect();
this.hl.disconnect();this.Ak.disconnect();this.K.disconnect();this.J.disconnect()};E.prototype.tc=function(){return this.aa};Ea.prototype.Hc=function(a){this.da.disconnect();this.da.connect(a)};Ea.prototype.remove=function(){this.da.disconnect()};Ea.prototype.tc=function(){return this.da};oa.prototype.mb=function(){this.da.getFloatFrequencyData(this.hw);this.da.getByteTimeDomainData(this.Er);for(var a=this.da.fftSize,b=0,c=this.gi=0,e=0;b<a;b++)e=(this.Er[b]-128)/128,0>e&&(e=-e),this.gi<e&&(this.gi=
e),c+=e*e;this.gi=n(this.gi);n(Math.sqrt(c/a))};oa.prototype.Hc=function(a){this.da.disconnect();this.da.connect(a)};oa.prototype.remove=function(){this.da.disconnect()};oa.prototype.tc=function(){return this.da};K.prototype.li=function(a){this.ka=a};K.prototype.Wj=function(){return!!this.ka};K.prototype.mb=function(){};L.prototype.ey=function(){var a,b,c,e;c=a=0;for(b=C.length;a<b;++a)e=C[a],C[c]=e,e.buffer===this?e.stop():++c;C.length=c;this.xg&&(this.xg.disconnect(),this.xg=null);this.Dg&&(this.Dg.disconnect(),
this.Dg=null);this.Nd=this.ca=null};L.prototype.cp=function(){if(!this.ca&&this.Nd){var a=this;if(y.decodeAudioData)y.decodeAudioData(this.Nd,function(b){a.ca=b;a.Nd=null;var c,e,d;if(ha(a.xk)||P)ha(a.tj)||(c=a.tj.bf,c.normalize=a.Iq,c.buffer=b);else if(a.Eg.length){c=0;for(e=a.Eg.length;c<e;c++){b=a.Eg[c];d=new H(a,b.Mr);d.Pk(!0);if("undefined"!==typeof b.Kq&&(b.ka=F.Uj(b.Kq),!b.ka))continue;if(b.ka){var f=Ua(b.ka.x,b.ka.y,-b.ka.j.gb(),ka,Ga,!0),k=Ua(b.ka.x,b.ka.y,-b.ka.j.gb(),ka,Ga,!1);d.Cn(f,k,
Ka(b.ka.m-b.ka.j.gb()),b.vm,b.Zm,b.bn);d.li(b.ka)}else d.Cn(b.x,b.y,b.zu,b.vm,b.Zm,b.bn);d.play(a.Um,a.Vn,a.Mk);a.wk&&d.pause();C.push(d)}A(a.Eg)}else d=new H(a,a.xk||""),d.play(a.Um,a.Vn,a.Mk),a.wk&&d.pause(),C.push(d)},function(){a.Gj=!0});else if(this.ca=y.createBuffer(this.Nd,!1),this.Nd=null,ha(this.xk)||P)ha(this.tj)||(b=this.tj.bf,b.normalize=this.Iq,b.buffer=this.ca);else{var b=new H(this,this.xk);b.play(this.Um,this.Vn,this.Mk);this.wk&&b.pause();C.push(b)}}};L.prototype.Op=function(){switch(this.U){case 0:var a=
4<=this.ca.readyState;a&&(this.Wn=!0);return a||this.Wn;case 1:return!!this.Nd||!!this.ca;case 2:return!0;case 3:return!0}return!1};L.prototype.cx=function(){switch(this.U){case 0:return this.Op();case 1:return!!this.ca;case 2:return!0;case 3:return!0}return!1};L.prototype.Rw=function(){switch(this.U){case 0:return!!this.ca.error;case 1:return this.Gj}return!1};H.prototype.qf=function(){switch(this.U){case 0:return this.i.ended;case 1:return 1===this.buffer.U?!this.vd&&!this.ta&&this.i.loop||this.ic?
!1:this.eg:this.i.ended;case 2:return this.eg;case 3:!0}return!0};H.prototype.Mu=function(){return this.vd||this.ta?!0:this.qf()};H.prototype.Pk=function(a){1===D&&(!this.Bd&&a?this.fb&&(this.Xa||(this.Xa=y.createPanner(),this.Xa.panningModel="number"===typeof this.Xa.panningModel?Eb:["equalpower","HRTF","soundfield"][Eb],this.Xa.distanceModel="number"===typeof this.Xa.distanceModel?Fb:["linear","inverse","exponential"][Fb],this.Xa.refDistance=Dc,this.Xa.maxDistance=Gc,this.Xa.rolloffFactor=Hc),this.fb.disconnect(),
this.fb.connect(this.Xa),this.Xa.connect(g(this.tag)),this.Bd=!0):this.Bd&&!a&&this.fb&&(this.Xa.disconnect(),this.fb.disconnect(),this.fb.connect(g(this.tag)),this.Bd=!1))};H.prototype.Cn=function(a,b,c,e,d,f){this.Bd&&1===D&&(this.Xa.setPosition(a,b,0),this.Xa.setOrientation(Math.cos(G(c)),Math.sin(G(c)),0),this.Xa.coneInnerAngle=e,this.Xa.coneOuterAngle=d,this.Xa.coneOuterGain=f,this.Yq=a,this.Zq=b,this.Uq=c,this.Vq=e,this.Wq=d,this.Xq=f)};H.prototype.li=function(a){this.Bd&&1===D&&(this.Cb||(this.Cb=
new K),this.Cb.li(a))};H.prototype.mb=function(a){if(this.Bd&&1===D&&this.Cb&&this.Cb.Wj()&&this.hg()){this.Cb.mb(a);a=this.Cb.ka;var b=Ua(a.x,a.y,-a.j.gb(),ka,Ga,!0),c=Ua(a.x,a.y,-a.j.gb(),ka,Ga,!1);this.Xa.setPosition(b,c,0);b=0;"undefined"!==typeof this.Cb.ka.m&&(b=a.m-a.j.gb(),this.Xa.setOrientation(Math.cos(b),Math.sin(b),0))}};H.prototype.play=function(a,b,e,d){var f=this.i;this.Ad=a;this.volume=b;e=e||0;d=d||0;switch(this.U){case 0:1!==f.playbackRate&&(f.playbackRate=1);f.volume!==b*ia&&(f.volume=
b*ia);f.loop!==a&&(f.loop=a);f.muted&&(f.muted=!1);if(f.currentTime!==e)try{f.currentTime=e}catch(k){}r(this);break;case 1:this.muted=!1;this.zg=1;if(1===this.buffer.U)this.fb.gain.value=b*ia,this.vd||(this.i=y.createBufferSource(),this.i.buffer=this.buffer.ca,this.i.connect(this.fb)),this.i.onended=this.dn,this.cj=this.i,this.i.loop=a,this.eg=!1,0===e?l(this.i,d):c(this.i,e,this.mf(),d);else{1!==f.playbackRate&&(f.playbackRate=1);f.loop!==a&&(f.loop=a);f.volume=b*ia;if(f.currentTime!==e)try{f.currentTime=
e}catch(g){}r(this)}break;case 2:(!this.vd&&this.ta||0!==e)&&f.seekTo(e);f.play();this.eg=!1;break;case 3:F.pb?AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=1;this.startTime=(this.ig?F.Bb.Z:F.oe.Z)-e;this.ic=this.ta=this.vd=!1};H.prototype.stop=function(){switch(this.U){case 0:this.i.paused||this.i.pause();break;case 1:1===this.buffer.U?f(this.i):this.i.paused||this.i.pause();break;case 2:this.i.stop();break;case 3:F.pb&&AppMobi.context.stopSound(this.src)}this.ta=
!0;this.ic=!1};H.prototype.pause=function(){if(!(this.vd||this.ta||this.qf()||this.ic)){switch(this.U){case 0:this.i.paused||this.i.pause();break;case 1:1===this.buffer.U?(this.cc=this.nm(!0),this.Ad&&(this.cc=this.cc%this.mf()),this.ic=!0,f(this.i)):this.i.paused||this.i.pause();break;case 2:this.i.pause();break;case 3:F.pb&&AppMobi.context.stopSound(this.src)}this.ic=!0}};H.prototype.mr=function(){if(!(this.vd||this.ta||this.qf())&&this.ic){switch(this.U){case 0:r(this);break;case 1:1===this.buffer.U?
(this.i=y.createBufferSource(),this.i.buffer=this.buffer.ca,this.i.connect(this.fb),this.i.onended=this.dn,this.cj=this.i,this.i.loop=this.Ad,this.fb.gain.value=ia*this.volume*this.zg,this.Bi(),this.startTime=(this.ig?F.Bb.Z:F.oe.Z)-this.cc/(this.playbackRate||.001),c(this.i,this.cc,this.mf())):r(this);break;case 2:this.i.play();break;case 3:F.pb&&AppMobi.context.resumeSound(this.src)}this.ic=!1}};H.prototype.seek=function(a){if(!(this.vd||this.ta||this.qf()))switch(this.U){case 0:try{this.i.currentTime=
a}catch(b){}break;case 1:if(1===this.buffer.U)this.ic?this.cc=a:(this.pause(),this.cc=a,this.mr());else try{this.i.currentTime=a}catch(c){}break;case 3:F.pb&&AppMobi.context.seekSound(this.src,a)}};H.prototype.cy=function(a){1===this.U&&(this.Bd?(this.Xa.disconnect(),this.Xa.connect(a)):(this.fb.disconnect(),this.fb.connect(a)))};H.prototype.mf=function(){var a=0;switch(this.U){case 0:"undefined"!==typeof this.i.duration&&(a=this.i.duration);break;case 1:a=this.buffer.ca.duration;break;case 2:a=this.i.getDuration();
break;case 3:F.pb&&(a=AppMobi.context.getDurationSound(this.src))}return a};H.prototype.nm=function(a){var b=this.mf(),c=0;switch(this.U){case 0:"undefined"!==typeof this.i.currentTime&&(c=this.i.currentTime);break;case 1:if(1===this.buffer.U){if(this.ic)return this.cc;c=(this.ig?F.Bb.Z:F.oe.Z)-this.startTime}else"undefined"!==typeof this.i.currentTime&&(c=this.i.currentTime);break;case 3:F.pb&&(c=AppMobi.context.getPlaybackTimeSound(this.src))}a&&(c*=this.playbackRate);!this.Ad&&c>b&&(c=b);return c};
H.prototype.hg=function(){return!this.ic&&!this.vd&&!this.ta&&!this.qf()};H.prototype.zy=function(){return!this.vd&&!this.ta&&!this.qf()};H.prototype.Ly=function(){var a=this.volume*ia;isFinite(a)||(a=0);switch(this.U){case 0:"undefined"!==typeof this.i.volume&&this.i.volume!==a&&(this.i.volume=a);break;case 1:1===this.buffer.U?this.fb.gain.value=a*this.zg:"undefined"!==typeof this.i.volume&&this.i.volume!==a&&(this.i.volume=a)}};H.prototype.Bj=function(a){switch(this.U){case 0:this.i.muted!==!!a&&
(this.i.muted=!!a);break;case 1:1===this.buffer.U?(this.zg=a?0:1,this.fb.gain.value=ia*this.volume*this.zg):this.i.muted!==!!a&&(this.i.muted=!!a)}};H.prototype.uy=function(){this.lg=!0;this.Bj(this.lg||this.Kh)};H.prototype.xr=function(a){this.Kh=!!a;this.Bj(this.lg||this.Kh)};H.prototype.vy=function(a){this.playbackRate=a;this.Bi()};H.prototype.Bi=function(){var a=this.playbackRate;this.ig&&(a*=F.Jf);switch(this.U){case 0:this.i.playbackRate!==a&&(this.i.playbackRate=a);break;case 1:1===this.buffer.U?
this.i.playbackRate.value!==a&&(this.i.playbackRate.value=a):this.i.playbackRate!==a&&(this.i.playbackRate=a)}};H.prototype.xy=function(a){switch(this.U){case 0:a?this.hg()?(this.Cc=!0,this.i.pause()):this.Cc=!1:this.Cc&&(this.i.play(),this.Cc=!1);break;case 1:a?this.hg()?(this.Cc=!0,1===this.buffer.U?(this.cc=this.nm(!0),this.Ad&&(this.cc=this.cc%this.mf()),f(this.i)):this.i.pause()):this.Cc=!1:this.Cc&&(1===this.buffer.U?(this.i=y.createBufferSource(),this.i.buffer=this.buffer.ca,this.i.connect(this.fb),
this.i.onended=this.dn,this.cj=this.i,this.i.loop=this.Ad,this.fb.gain.value=ia*this.volume*this.zg,this.Bi(),this.startTime=(this.ig?F.Bb.Z:F.oe.Z)-this.cc/(this.playbackRate||.001),c(this.i,this.cc,this.mf())):this.i.play(),this.Cc=!1);break;case 2:a?this.hg()?(this.i.pause(),this.Cc=!0):this.Cc=!1:this.Cc&&(this.Cc=!1,this.i.play())}};M.S=function(a){this.type=a;F=this.b=a.b;R=this;this.jc=null;this.Ph=-600;this.b.Jh&&(ob=!0);!(this.b.pg||this.b.Dh&&(this.b.Bm||this.b.Xj))||this.b.Zj||this.b.pa||
this.b.Mp||ob||(Ec=!0);y=null;"undefined"!==typeof AudioContext?(D=1,y=new AudioContext):"undefined"!==typeof webkitAudioContext&&(D=1,y=new webkitAudioContext);this.b.pg&&y&&(y.close&&y.close(),"undefined"!==typeof AudioContext?y=new AudioContext:"undefined"!==typeof webkitAudioContext&&(y=new webkitAudioContext));1!==D&&(this.b.vc&&"undefined"!==typeof window.Media?D=2:this.b.Np&&(D=3));2===D&&(B=location.href,a=B.lastIndexOf("/"),-1<a&&(B=B.substr(0,a+1)),B=B.replace("file://",""));if(this.b.hx&&
this.b.ix&&"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.Xe(this);else{if(this.b.pb)S=this.b.Dh;else try{S=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')&&!this.b.$j}catch(b){S=!1}this.b.If(this)}};var Ca=M.S.prototype;Ca.D=function(){this.b.Rf=this;Aa=this.A[0];this.fe=this.A[1];this.Sx=0!==this.A[2];this.pk=0;Eb=this.A[3];Fb=this.A[4];this.Ph=-this.A[5];Dc=this.A[6];Gc=this.A[7];
Hc=this.A[8];this.jc=new K;var a=this.b.G||this.b.width,b=this.b.F||this.b.height;1===D&&(y.listener.setPosition(a/2,b/2,this.Ph),y.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,b){Qa&&Qa.disconnect();Gb=b.toLowerCase();Qa=y.createMediaStreamSource(a);Qa.connect(g(Gb))});this.b.No(function(a){R.Lx(a)});var c=this;this.b.Du(function(a){c.Dx(a)})};Ca.Dx=function(a){var b,c,e;b=0;for(c=C.length;b<c;b++)e=C[b],e.Cb&&e.Cb.ka===a&&(e.Cb.ka=null,e.Bd&&e.hg()&&e.Ad&&e.stop());
this.jc.ka===a&&(this.jc.ka=null)};Ca.Fb=function(){var a={silent:P,masterVolume:ia,listenerZ:this.Ph,listenerUid:this.jc.Wj()?this.jc.ka.uid:-1,playing:[],effects:{}},b=a.playing,c,e,d,f,k,g;c=0;for(e=C.length;c<e;c++)d=C[c],!d.zy()||3===this.fe||d.yd&&1===this.fe||!d.yd&&2===this.fe||(f=d.nm(),d.Ad&&(f=f%d.mf()),f={tag:d.tag,buffersrc:d.buffer.src,is_music:d.yd,playbackTime:f,volume:d.volume,looping:d.Ad,muted:d.lg,playbackRate:d.playbackRate,paused:d.ic,resume_position:d.cc},d.Bd&&(f.pan={},g=
f.pan,d.Cb&&d.Cb.Wj()?g.objUid=d.Cb.ka.uid:(g.x=d.Yq,g.y=d.Zq,g.a=d.Uq),g.ia=d.Vq,g.oa=d.Wq,g.og=d.Xq),b.push(f));b=a.effects;for(k in ea)if(ea.hasOwnProperty(k)){d=[];c=0;for(e=ea[k].length;c<e;c++)d.push({type:ea[k][c].type,params:ea[k][c].Oa});b[k]=d}return a};var ab=[];Ca.Qb=function(b){var c=b.silent;ia=b.masterVolume;this.Ph=b.listenerZ;this.jc.li(null);var d=b.listenerUid;-1!==d&&(this.jc.ik=d,ab.push(this.jc));var d=b.playing,f,g,h,l,n,t,p,v,r,x,y;if(3!==this.fe)for(f=0,g=C.length;f<g;f++)r=
C[f],r.yd&&1===this.fe||(r.yd||2!==this.fe)&&r.stop();for(n in ea)if(ea.hasOwnProperty(n))for(f=0,g=ea[n].length;f<g;f++)ea[n][f].remove();Ya(ea);for(n in b.effects)if(b.effects.hasOwnProperty(n))for(t=b.effects[n],f=0,g=t.length;f<g;f++)switch(h=t[f].type,x=t[f].params,h){case "filter":Q(n,new a(x[0],x[1],x[2],x[3],x[4],x[5]));break;case "delay":Q(n,new k(x[0],x[1],x[2]));break;case "convolve":h=x[2];r=this.Nj(h,!1);r.ca?h=new e(r.ca,x[0],x[1],h):(h=new e(null,x[0],x[1],h),r.Iq=x[0],r.tj=h);Q(n,
h);break;case "flanger":Q(n,new u(x[0],x[1],x[2],x[3],x[4]));break;case "phaser":Q(n,new m(x[0],x[1],x[2],x[3],x[4],x[5]));break;case "gain":Q(n,new q(x[0]));break;case "tremolo":Q(n,new w(x[0],x[1]));break;case "ringmod":Q(n,new U(x[0],x[1]));break;case "distortion":Q(n,new E(x[0],x[1],x[2],x[3],x[4]));break;case "compressor":Q(n,new Ea(x[0],x[1],x[2],x[3],x[4]));break;case "analyser":Q(n,new oa(x[0],x[1]))}f=0;for(g=d.length;f<g;f++)3===this.fe||(b=d[f],h=b.buffersrc,l=b.is_music,n=b.tag,t=b.playbackTime,
p=b.looping,v=b.volume,y=(x=b.pan)&&x.hasOwnProperty("objUid")?x.objUid:-1,l&&1===this.fe)||!l&&2===this.fe||((r=this.Oj(h,n,l,p,v))?(r.cc=b.resume_position,r.Pk(!!x),r.play(p,v,t),r.Bi(),r.Ly(),r.Bj(r.lg||r.Kh),b.paused&&r.pause(),b.muted&&r.uy(),r.Bj(r.lg||r.Kh),x&&(-1!==y?(r.Cb=r.Cb||new K,r.Cb.ik=y,ab.push(r.Cb)):r.Cn(x.x,x.y,x.a,x.ia,x.oa,x.og))):(r=this.Nj(h,l),r.Mk=t,r.wk=b.paused,x&&(-1!==y?r.Eg.push({Kq:y,vm:x.ia,Zm:x.oa,bn:x.og,Mr:n}):r.Eg.push({x:x.x,y:x.y,zu:x.a,vm:x.ia,Zm:x.oa,bn:x.og,
Mr:n}))));if(c&&!P){f=0;for(g=C.length;f<g;f++)C[f].xr(!0);P=!0}else if(!c&&P){f=0;for(g=C.length;f<g;f++)C[f].xr(!1);P=!1}};Ca.Kd=function(){var a,b,c,e;a=0;for(b=ab.length;a<b;a++)c=ab[a],e=this.b.Uj(c.ik),c.li(e),c.ik=-1,e&&(ka=e.x,Ga=e.y);A(ab)};Ca.Lx=function(a){if(!this.Sx){!a&&y&&y.resume&&(y.resume(),Db=!1);var b,c;b=0;for(c=C.length;b<c;b++)C[b].xy(a);a&&y&&y.suspend&&(y.suspend(),Db=!0)}};Ca.mb=function(){var a=this.b.De,b,c,e;b=0;for(c=C.length;b<c;b++)e=C[b],e.mb(a),0!==Aa&&e.Bi();var d,
f;for(d in ea)if(ea.hasOwnProperty(d))for(e=ea[d],b=0,c=e.length;b<c;b++)f=e[b],f.mb&&f.mb();1===D&&this.jc.Wj()&&(this.jc.mb(a),ka=this.jc.ka.x,Ga=this.jc.ka.y,y.listener.setPosition(this.jc.ka.x,this.jc.ka.y,this.Ph))};var bb=[];Ca.wy=function(a){var b,c,e,d,f,k=0;b=0;for(c=a.length;b<c;++b)if(e=a[b],d=e[0],e=2*e[1],(f=4<d.length&&".ogg"===d.substr(d.length-4))&&S||!f&&!S)bb.push({filename:d,size:e,ka:null}),k+=e;return k};Ca.By=function(){var a,b,c,e;a=0;for(b=bb.length;a<b;++a)c=bb[a],e=this.b.rh+
c.filename,c.ka=this.Nj(e,!1)};Ca.xw=function(){var a=0,b,c,e;b=0;for(c=bb.length;b<c;++b)e=bb[b],e.ka.cx()||e.ka.Rw()||this.b.pa||this.b.Xj?a+=e.size:e.ka.Op()&&(a+=Math.floor(e.size/2));return a};Ca.fy=function(){var a,b,c,e;c=a=0;for(b=N.length;a<b;++a)e=N[a],N[c]=e,e.yd?e.ey():++c;N.length=c};Ca.Nj=function(a,b){var c,e,d,f=null;c=0;for(e=N.length;c<e;c++)if(d=N[c],d.src===a){f=d;break}f||(ob&&b&&this.fy(),f=new L(a,b),N.push(f));return f};Ca.Oj=function(a,b,c,e,d){var f,k,g;f=0;for(k=C.length;f<
k;f++)if(g=C[f],g.src===a&&(g.Mu()||c))return g.tag=b,g;a=this.Nj(a,c);if(!a.ca)return"<preload>"!==b&&(a.xk=b,a.Um=e,a.Vn=d),null;g=new H(a,b);C.push(g);return g};var ra=[];O.prototype.Si=function(a){return mb(x,a)};O.prototype.Xs=function(a){W(a);var b;a=0;for(b=ra.length;a<b;a++)if(ra[a].hg())return!0;return!1};M.c=new O;J.prototype.Play=function(a,b,c,e){!P&&(c=v(c),I=this.Oj(this.b.rh+a[0]+(S?".ogg":".m4a"),e,a[1],0!==b,c))&&(I.Pk(!1),I.play(0!==b,c,0,this.pk),this.pk=0)};J.prototype.Lt=function(a,
b,c,e,d){!P&&(e=v(e),I=this.Oj(this.b.rh+b.toLowerCase()+(S?".ogg":".m4a"),d,1===a,0!==c,e))&&(I.Pk(!1),I.play(0!==c,e,0,this.pk),this.pk=0)};J.prototype.Nt=function(a){if(!P){var b=a[1];a=this.b.rh+a[0]+(S?".ogg":".m4a");3===D?this.b.pb?AppMobi.context.loadSound(a):AppMobi.player.loadSound(a):2!==D&&this.Oj(a,"<preload>",b,!1)}};J.prototype.eu=function(a,b){W(a);0>b&&(b=0);var c,e;c=0;for(e=ra.length;c<e;c++)ra[c].vy(b)};J.prototype.Fo=function(a){W(a);var b;a=0;for(b=ra.length;a<b;a++)ra[a].stop()};
J.prototype.pu=function(){var a,b;a=0;for(b=C.length;a<b;a++)C[a].stop()};J.prototype.du=function(a,b){W(a);var c,e;c=0;for(e=ra.length;c<e;c++)0===b?ra[c].pause():ra[c].mr()};M.e=new J;M.g=new function(){}})();function vc(h){this.b=h}
(function(){function h(){b&&d&&window.OfflineClientInfo&&window.OfflineClientInfo.SetMessageCallback(function(a){l.Jx(a)})}function r(){}function p(){}function t(a){console&&console.warn&&console.warn("Fullscreen request failed: ",a);f.setSize(window.innerWidth,window.innerHeight)}function v(){}var n=vc.prototype;n.W=function(a){this.X=a;this.b=a.b};var g=n.W.prototype;g.D=function(){};var b=!1,d=!1;document.addEventListener("DOMContentLoaded",function(){if(window.C2_RegisterSW&&navigator.serviceWorker){var a=
document.createElement("script");a.onload=function(){b=!0;h()};a.src="offlineClient.js";document.head.appendChild(a)}});var l=null;g.Oq=function(){d=!0;h()};n.S=function(a){this.type=a;this.b=a.b};g=n.S.prototype;g.D=function(){var a=this;window.addEventListener("resize",function(){a.b.trigger(vc.prototype.c.Bt,a)});l=this;"undefined"!==typeof navigator.onLine&&(window.addEventListener("online",function(){a.b.trigger(vc.prototype.c.yt,a)}),window.addEventListener("offline",function(){a.b.trigger(vc.prototype.c.wt,
a)}));this.b.pb||(document.addEventListener("appMobi.device.update.available",function(){a.b.trigger(vc.prototype.c.Wi,a)}),document.addEventListener("backbutton",function(){a.b.trigger(vc.prototype.c.Ri,a)}),document.addEventListener("menubutton",function(){a.b.trigger(vc.prototype.c.vo,a)}),document.addEventListener("searchbutton",function(){a.b.trigger(vc.prototype.c.Ct,a)}),document.addEventListener("tizenhwkey",function(b){var c;switch(b.keyName){case "back":c=a.b.trigger(vc.prototype.c.Ri,a);
!c&&window.tizen&&window.tizen.application.getCurrentApplication().exit();break;case "menu":(c=a.b.trigger(vc.prototype.c.vo,a))||b.preventDefault()}}));this.b.$j&&"undefined"!==typeof Windows?Windows.UI.Core.SystemNavigationManager.getForCurrentView().addEventListener("backrequested",function(b){a.b.trigger(vc.prototype.c.Ri,a)&&(b.handled=!0)}):this.b.Qp&&WinJS.Application&&(WinJS.Application.onbackclick=function(){return!!a.b.trigger(vc.prototype.c.Ri,a)});this.b.No(function(b){b?a.b.trigger(vc.prototype.c.zt,
a):a.b.trigger(vc.prototype.c.At,a)})};g.Jx=function(a){a=a.data.type;"downloading-update"===a?this.b.trigger(vc.prototype.c.Ao,this):"update-ready"===a||"update-pending"===a?this.b.trigger(vc.prototype.c.Wi,this):"offline-ready"===a&&this.b.trigger(vc.prototype.c.xt,this)};r.prototype.yt=function(){return!0};r.prototype.wt=function(){return!0};r.prototype.Wi=function(){return!0};r.prototype.At=function(){return!0};r.prototype.zt=function(){return!0};r.prototype.Bt=function(){return!0};r.prototype.Ri=
function(){return!0};r.prototype.vo=function(){return!0};r.prototype.Ct=function(){return!0};r.prototype.Ao=function(){return!0};r.prototype.Wi=function(){return!0};r.prototype.xt=function(){return!0};n.c=new r;var c=!0,f=null;p.prototype.St=function(a){this.b.pa?fa("[Construct 2] Requesting fullscreen is not supported on this platform - the request has been ignored"):(2<=a&&(a+=1),6===a&&(a=2),this.b.gx?this.b.$w?debuggerFullscreen(!0):!this.b.gg&&window.nwgui&&(window.nwgui.Window.get().enterFullscreen(),
this.b.gg=!0,this.b.Fe=2<=a?a:0):document.mozFullScreen||document.webkitIsFullScreen||document.msFullscreenElement||document.fullScreen||document.fullScreenElement||(this.b.Fe=2<=a?a:0,a=document.documentElement,c&&(c=!1,f=this.b,a.addEventListener("mozfullscreenerror",t),a.addEventListener("webkitfullscreenerror",t),a.addEventListener("MSFullscreenError",t),a.addEventListener("fullscreenerror",t)),a.requestFullscreen?a.requestFullscreen():a.mozRequestFullScreen?a.mozRequestFullScreen():a.msRequestFullscreen?
a.msRequestFullscreen():a.webkitRequestFullScreen&&("undefined"!==typeof Element&&"undefined"!==typeof Element.ALLOW_KEYBOARD_INPUT?a.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT):a.webkitRequestFullScreen())))};p.prototype.ys=function(a,b){"undefined"!==typeof console&&(0===a&&console.log&&console.log(b.toString()),1===a&&console.warn&&console.warn(b.toString()),2===a&&console.error&&console.error(b.toString()))};n.e=new p;v.prototype.Pt=function(a,b){if(this.b.pa)a.la("");else{var c=RegExp("[?&]"+
b+"=([^&]*)").exec(window.location.search);c?a.la(decodeURIComponent(c[1].replace(/\+/g," "))):a.la("")}};n.g=new v})();function wc(h){this.b=h}
(function(){function h(){}function r(){}function p(){}var t=wc.prototype;t.W=function(h){this.X=h;this.b=h.b};t.W.prototype.D=function(){};t.S=function(h){this.type=h;this.b=h.b};var v=t.S.prototype;v.D=function(){this.dd={};this.rg=0};v.Fb=function(){return this.dd};v.Qb=function(h){this.dd=h;this.rg=0;for(var g in this.dd)this.dd.hasOwnProperty(g)&&this.rg++};h.prototype.Js=function(h){return this.dd.hasOwnProperty(h)};h.prototype.nl=function(){return 0===this.rg};t.c=new h;r.prototype.js=function(h,
g){this.dd.hasOwnProperty(h)||this.rg++;this.dd[h]=g};r.prototype.co=function(){Ya(this.dd);this.rg=0};t.e=new r;p.prototype.Hs=function(h,g){this.dd.hasOwnProperty(g)?h.Kg(this.dd[g]):h.H(0)};p.prototype.Zs=function(h){h.H(this.rg)};p.prototype.ll=function(h){h.la(JSON.stringify({c2dictionary:!0,data:this.dd}))};t.g=new p})();function sc(h){this.b=h}
(function(){function h(){this.name="";this.Hg=0;this.Oa=[]}function r(){d++;d===b.length&&b.push(new h);return b[d]}function p(){return 0>d?null:b[d]}function t(){}function v(){}function n(){}var g=sc.prototype;g.W=function(b){this.X=b;this.b=b.b};g.W.prototype.D=function(){};g.S=function(b){this.type=b;this.b=b.b};var b=[],d=-1;g.S.prototype.D=function(){var b=this;window.c2_callFunction=function(c,f){var a,g,e,h=r();h.name=c.toLowerCase();h.Hg=0;if(f)for(h.Oa.length=f.length,a=0,g=f.length;a<g;++a)e=
f[a],h.Oa[a]="number"===typeof e||"string"===typeof e?e:"boolean"===typeof e?e?1:0:0;else A(h.Oa);b.b.trigger(sc.prototype.c.Ui,b,h.name);d--;return h.Hg}};t.prototype.Ui=function(b){var c=p();return c?mb(b,c.name):!1};t.prototype.ts=function(b,c,d){var a=p();if(!a)return!1;b=ta(b);return 0>b||b>=a.Oa.length?!1:ic(a.Oa[b],c,d)};g.c=new t;v.prototype.CallFunction=function(b,c){var f=r();f.name=b.toLowerCase();f.Hg=0;Da(f.Oa,c);this.b.trigger(sc.prototype.c.Ui,this,f.name);d--};v.prototype.gu=function(b){var c=
p();c&&(c.Hg=b)};g.e=new v;n.prototype.Ft=function(b,c){c=ta(c);var d=p();d?0<=c&&c<d.Oa.length?b.Kg(d.Oa[c]):b.H(0):b.H(0)};n.prototype.bo=function(b,c){var f=r();f.name=c.toLowerCase();f.Hg=0;A(f.Oa);var a,g;a=2;for(g=arguments.length;a<g;a++)f.Oa.push(arguments[a]);this.b.trigger(sc.prototype.c.Ui,this,f.name);d--;b.Kg(f.Hg)};g.g=new n})();function xc(h){this.b=h}
(function(){function h(){}var r=xc.prototype;r.W=function(h){this.X=h;this.b=h.b};r.W.prototype.D=function(){};r.S=function(h){this.type=h;this.b=h.b;this.qg=Array(256);this.Ci=Array(256);this.me=0};var p=r.S.prototype;p.D=function(){var h=this;this.b.pa||(jQuery(document).keydown(function(n){h.Ex(n)}),jQuery(document).keyup(function(n){h.Fx(n)}))};var t=[32,33,34,35,36,37,38,39,40,44];p.Ex=function(h){var n=!1;window!=window.top&&-1<t.indexOf(h.which)&&(h.preventDefault(),n=!0,h.stopPropagation());
if(this.qg[h.which])this.Ci[h.which]&&!n&&h.preventDefault();else{this.qg[h.which]=!0;this.me=h.which;this.b.xc=!0;this.b.trigger(xc.prototype.c.ht,this);var g=this.b.trigger(xc.prototype.c.qt,this),b=this.b.trigger(xc.prototype.c.tt,this);this.b.xc=!1;if(g||b)this.Ci[h.which]=!0,n||h.preventDefault()}};p.Fx=function(h){this.qg[h.which]=!1;this.me=h.which;this.b.xc=!0;this.b.trigger(xc.prototype.c.no,this);var n=this.b.trigger(xc.prototype.c.ro,this),g=this.b.trigger(xc.prototype.c.qo,this);this.b.xc=
!1;if(n||g||this.Ci[h.which])this.Ci[h.which]=!0,h.preventDefault()};p.Cg=function(){var h;for(h=0;256>h;++h)if(this.qg[h]){this.qg[h]=!1;this.me=h;this.b.trigger(xc.prototype.c.no,this);var n=this.b.trigger(xc.prototype.c.ro,this),g=this.b.trigger(xc.prototype.c.qo,this);if(n||g)this.Ci[h]=!0}};p.Fb=function(){return{triggerKey:this.me}};p.Qb=function(h){this.me=h.triggerKey};h.prototype.Rs=function(h){return this.qg[h]};h.prototype.qt=function(h){return h===this.me};h.prototype.ht=function(){return!0};
h.prototype.no=function(){return!0};h.prototype.ro=function(h){return h===this.me};h.prototype.tt=function(h){return h===this.me};h.prototype.qo=function(h){return h===this.me};r.c=new h;r.e=new function(){};r.g=new function(){}})();function Y(h){this.b=h}
(function(){function h(h,p,n,g,b,d,l,c,f,a){h.save();h.fillStyle=p;p=b%n;var k=d%g;0>p&&(p+=n);0>k&&(k+=g);h.translate(p+f,k+a);h.fillRect(b-p-f,d-k-a,l,c);h.restore()}var r=Y.prototype;r.W=function(h){this.X=h;this.b=h.b};var p=r.W.prototype;p.D=function(){this.B||(this.q=new Image,this.q.Ql=this.Yk,this.b.gl(this.q,this.wi),this.Hi=this.Ki=this.Ji=this.Ii=this.Xg=this.r=this.So=this.Pr=this.nr=this.hq=this.em=null)};p.ei=function(){this.B||(this.Hi=this.Ki=this.Ji=this.Ii=this.Xg=this.r=null)};
p.fi=function(){this.B||!this.d.length||this.r||(this.r=this.b.k.yc(this.q,!0,this.b.qa,this.Ue))};p.Ai=function(){this.B||this.d.length||!this.b.k||(this.b.k.deleteTexture(this.r),this.b.k.deleteTexture(this.Xg),this.b.k.deleteTexture(this.Ii),this.b.k.deleteTexture(this.Ji),this.b.k.deleteTexture(this.Ki),this.b.k.deleteTexture(this.Hi),this.Hi=this.Ki=this.Ji=this.Ii=this.Xg=this.r=null)};p.Gd=function(h,p,n,g){var b=document.createElement("canvas");n=n-h;g=g-p;b.width=n;b.height=g;b.getContext("2d").drawImage(this.q,
h,p,n,g,0,0,n,g);return b};p.Tu=function(h,p,n,g){var b=this.q.width,d=this.q.height,l=b-p,c=d-g;if(this.b.k){if(!this.Xg){var f=this.b.k,a=this.b.qa,k=this.Ue;l>h&&c>n&&(this.Xg=f.yc(this.Gd(h,n,l,c),!0,a,k));0<h&&c>n&&(this.Ii=f.yc(this.Gd(0,n,h,c),!0,a,k,"repeat-y"));0<p&&c>n&&(this.Ji=f.yc(this.Gd(l,n,b,c),!0,a,k,"repeat-y"));0<n&&l>h&&(this.Ki=f.yc(this.Gd(h,0,l,n),!0,a,k,"repeat-x"));0<g&&l>h&&(this.Hi=f.yc(this.Gd(h,c,l,d),!0,a,k,"repeat-x"))}}else this.em||(f=this.b.Ba,l>h&&c>n&&(this.em=
f.createPattern(this.Gd(h,n,l,c),"repeat")),0<h&&c>n&&(this.hq=f.createPattern(this.Gd(0,n,h,c),"repeat")),0<p&&c>n&&(this.nr=f.createPattern(this.Gd(l,n,b,c),"repeat")),0<n&&l>h&&(this.Pr=f.createPattern(this.Gd(h,0,l,n),"repeat")),0<g&&l>h&&(this.So=f.createPattern(this.Gd(h,c,l,d),"repeat")))};r.S=function(h){this.type=h;this.b=h.b};p=r.S.prototype;p.D=function(){this.Om=this.A[0];this.wn=this.A[1];this.Ln=this.A[2];this.Hl=this.A[3];this.Cj=this.A[4];this.fill=this.A[5];this.visible=0===this.A[6];
this.qr=0!==this.A[8];this.Bc?this.de.set(0,0,0,0):this.de=new wa(0,0,0,0);this.b.k&&!this.type.r&&(this.type.r=this.b.k.yc(this.type.q,!1,this.b.qa,this.type.Ue));this.type.Tu(this.Om,this.wn,this.Ln,this.Hl)};p.ed=function(t){var p=this.type.q,n=this.Om,g=this.wn,b=this.Ln,d=this.Hl,l=p.width,c=p.height,f=l-g,a=c-d;t.globalAlpha=this.opacity;t.save();var k=this.x,e=this.y,u=this.width,m=this.height;this.b.Ac&&(k=Math.round(k),e=Math.round(e));var q=-(this.Nb*this.width),w=-(this.Ob*this.height),
r=q%l,E=w%c;0>r&&(r+=l);0>E&&(E+=c);t.translate(k+r,e+E);l=q-r;w-=E;E=this.qr?1:0;0<n&&0<b&&t.drawImage(p,0,0,n+E,b+E,l,w,n+E,b+E);0<g&&0<b&&t.drawImage(p,f-E,0,g+E,b+E,l+u-g-E,w,g+E,b+E);0<g&&0<d&&t.drawImage(p,f-E,a-E,g+E,d+E,l+u-g-E,w+m-d-E,g+E,d+E);0<n&&0<d&&t.drawImage(p,0,a-E,n+E,d+E,l,w+m-d-E,n+E,d+E);0===this.Cj?(E=2===this.fill?0:E,0<n&&a>b&&h(t,this.type.hq,n,a-b,l,w+b,n+E,m-b-d,0,0),0<g&&a>b&&h(t,this.type.nr,g,a-b,l+u-g-E,w+b,g+E,m-b-d,E,0),0<b&&f>n&&h(t,this.type.Pr,f-n,b,l+n,w,u-n-g,
b+E,0,0),0<d&&f>n&&h(t,this.type.So,f-n,d,l+n,w+m-d-E,u-n-g,d+E,0,E)):1===this.Cj&&(0<n&&a>b&&0<m-b-d&&t.drawImage(p,0,b,n,a-b,l,w+b,n,m-b-d),0<g&&a>b&&0<m-b-d&&t.drawImage(p,f,b,g,a-b,l+u-g,w+b,g,m-b-d),0<b&&f>n&&0<u-n-g&&t.drawImage(p,n,0,f-n,b,l+n,w,u-n-g,b),0<d&&f>n&&0<u-n-g&&t.drawImage(p,n,a,f-n,d,l+n,w+m-d,u-n-g,d));a>b&&f>n&&(0===this.fill?h(t,this.type.em,f-n,a-b,l+n,w+b,u-n-g,m-b-d,0,0):1===this.fill&&0<u-n-g&&0<m-b-d&&t.drawImage(p,n,b,f-n,a-b,l+n,w+b,u-n-g,m-b-d));t.restore()};p.Td=function(h,
p,n,g,b,d,l,c,f,a){h.Rb(p);var k=this.de;k.left=n/p.bd;k.top=g/p.ad;k.right=(n+b)/p.bd;k.bottom=(g+d)/p.ad;h.Sc(l,c,l+f,c,l+f,c+a,l,c+a,k)};p.xi=function(h,p,n,g,b,d,l,c){h.Rb(p);var f=this.de;f.left=-l/p.bd;f.top=-c/p.ad;f.right=(b-l)/p.bd;f.bottom=(d-c)/p.ad;h.Sc(n,g,n+b,g,n+b,g+d,n,g+d,f)};p.Ce=function(h){this.Kb(h)};p.Kb=function(h){var p=this.Om,n=this.wn,g=this.Ln,b=this.Hl,d=this.type.q.width-n,l=this.type.q.height-b;h.Se(this.opacity);var c=this.Xb,f=c.Fa,c=c.Ga,a=this.width,k=this.height;
this.b.Ac&&(f=Math.round(f),c=Math.round(c));var e=this.qr?1:0;0<p&&0<g&&this.Td(h,this.type.r,0,0,p+e,g+e,f,c,p+e,g+e);0<n&&0<g&&this.Td(h,this.type.r,d-e,0,n+e,g+e,f+a-n-e,c,n+e,g+e);0<n&&0<b&&this.Td(h,this.type.r,d-e,l-e,n+e,b+e,f+a-n-e,c+k-b-e,n+e,b+e);0<p&&0<b&&this.Td(h,this.type.r,0,l-e,p+e,b+e,f,c+k-b-e,p+e,b+e);0===this.Cj?(e=2===this.fill?0:e,0<p&&l>g&&this.xi(h,this.type.Ii,f,c+g,p+e,k-g-b,0,0),0<n&&l>g&&this.xi(h,this.type.Ji,f+a-n-e,c+g,n+e,k-g-b,e,0),0<g&&d>p&&this.xi(h,this.type.Ki,
f+p,c,a-p-n,g+e,0,0),0<b&&d>p&&this.xi(h,this.type.Hi,f+p,c+k-b-e,a-p-n,b+e,0,e)):1===this.Cj&&(0<p&&l>g&&this.Td(h,this.type.r,0,g,p,l-g,f,c+g,p,k-g-b),0<n&&l>g&&this.Td(h,this.type.r,d,g,n,l-g,f+a-n,c+g,n,k-g-b),0<g&&d>p&&this.Td(h,this.type.r,p,0,d-p,g,f+p,c,a-p-n,g),0<b&&d>p&&this.Td(h,this.type.r,p,l,d-p,b,f+p,c+k-b,a-p-n,b));l>g&&d>p&&(0===this.fill?this.xi(h,this.type.Xg,f+p,c+g,a-p-n,k-g-b,0,0):1===this.fill&&this.Td(h,this.type.r,p,g,d-p,l-g,f+p,c+g,a-p-n,k-g-b))};r.c=new function(){};r.e=
new function(){};r.g=new function(){}})();function V(h){this.b=h}
(function(){function h(){if(0===this.Vl.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.Mg?b.drawImage(this.q,this.Ag,this.Bg,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.q,0,0,this.width,this.height);this.Vl=a.toDataURL("image/png")}return this.Vl}function r(){}function p(b,d,g){if(!b)return!1;var h=0!==d||0!==g,n,p,t=!1,r,v=this.b.Qj(),K=v.type,v=v.fg,L=b.N();r=this.b.Ea().Ia.kc;L.R?(this.Aa(),k.Vf(this.Qa),
k.offset(d,g),this.b.ow(this.j,b,k,a),L=a):L=r?this.b.Zw()&&!L.I.length&&L.d.length?L.d:L.I:L.d;l=b;f=K!==b&&!v;h&&(n=this.x,p=this.y,this.x+=d,this.y+=g,this.za());d=0;for(g=L.length;d<g;d++)if(r=L[d],this.b.Ey(this,r)){t=!0;if(v)break;K!==b&&c.add(r)}h&&(this.x=n,this.y=p,this.za());A(a);return t}function t(){}function v(){}var n=V.prototype;n.W=function(a){this.X=a;this.b=a.b};var g=n.W.prototype;g.D=function(){if(!this.B){var a,b,c,d,f,g,k,l,n;this.Xc=[];this.yh=!1;a=0;for(b=this.gc.length;a<
b;a++){f=this.gc[a];k={};k.name=f[0];k.speed=f[1];k.loop=f[2];k.un=f[3];k.vn=f[4];k.cr=f[5];k.Y=f[6];k.frames=[];c=0;for(d=f[7].length;c<d;c++)g=f[7][c],l={},l.wi=g[0],l.Yk=g[1],l.Ag=g[2],l.Bg=g[3],l.width=g[4],l.height=g[5],l.duration=g[6],l.Nb=g[7],l.Ob=g[8],l.wm=g[9],l.yk=g[10],l.dr=g[11],l.Mg=0!==l.width,l.Vl="",l.uz=h,n={left:0,top:0,right:1,bottom:1},l.Dn=n,l.r=null,(n=this.b.gw(g[0]))?l.q=n:(l.q=new Image,l.q.Qu=g[0],l.q.Ql=g[1],l.q.Lu=null,this.b.gl(l.q,g[0])),k.frames.push(l),this.Xc.push(l);
this.gc[a]=k}}};g.Yr=function(){var a,b,c;a=0;for(b=this.d.length;a<b;a++)c=this.d[a],c.vj=c.Sa.r};g.ei=function(){if(!this.B){var a,b,c;a=0;for(b=this.Xc.length;a<b;++a)c=this.Xc[a],c.q.Lu=null,c.r=null;this.yh=!1;this.Yr()}};g.fi=function(){if(!this.B&&this.d.length){var a,b,c;a=0;for(b=this.Xc.length;a<b;++a)c=this.Xc[a],c.r=this.b.k.yc(c.q,!1,this.b.qa,c.dr);this.Yr()}};g.Pm=function(){if(!this.B&&!this.yh&&this.b.k){var a,b,c;a=0;for(b=this.Xc.length;a<b;++a)c=this.Xc[a],c.r=this.b.k.yc(c.q,
!1,this.b.qa,c.dr);this.yh=!0}};g.Ai=function(){if(!this.B&&!this.d.length&&this.yh){var a,b,c;a=0;for(b=this.Xc.length;a<b;++a)c=this.Xc[a],this.b.k.deleteTexture(c.r),c.r=null;this.yh=!1}};var b=[];g.Ck=function(a){var c,d,f;A(b);c=0;for(d=this.Xc.length;c<d;++c)f=this.Xc[c].q,-1===b.indexOf(f)&&(a.drawImage(f,0,0),b.push(f))};n.S=function(a){this.type=a;this.b=a.b;a=this.type.gc[0].frames[0].yk;this.Bc?this.ga.oi(a):this.ga=new gb(a)};var d=n.S.prototype;d.D=function(){this.visible=0===this.A[0];
this.zh=this.uf=!1;this.$e=0!==this.A[3];this.xa=this.sp(this.A[1])||this.type.gc[0];this.C=this.A[2];0>this.C&&(this.C=0);this.C>=this.xa.frames.length&&(this.C=this.xa.frames.length-1);var a=this.xa.frames[this.C];this.ga.oi(a.yk);this.Nb=a.Nb;this.Ob=a.Ob;this.Wf=this.xa.speed;this.Be=this.xa.vn;1===this.type.gc.length&&1===this.type.gc[0].frames.length||0===this.Wf||(this.b.If(this),this.uf=!0);this.Bc?this.Yc.reset():this.Yc=new eb;this.ud=this.Yc.Z;this.Ld=!0;this.Md=0;this.Ye=!0;this.Tf=this.Oo=
"";this.Xo=0;this.hh=-1;this.type.Pm();var b,c,d,f,g,k,h,a=0;for(b=this.type.gc.length;a<b;a++)for(f=this.type.gc[a],c=0,d=f.frames.length;c<d;c++)g=f.frames[c],0===g.width&&(g.width=g.q.width,g.height=g.q.height),g.Mg&&(h=g.q,k=g.Dn,k.left=g.Ag/h.width,k.top=g.Bg/h.height,k.right=(g.Ag+g.width)/h.width,k.bottom=(g.Bg+g.height)/h.height,0===g.Ag&&0===g.Bg&&g.width===h.width&&g.height===h.height&&(g.Mg=!1));this.Sa=this.xa.frames[this.C];this.vj=this.Sa.r};d.Fb=function(){var a={a:this.xa.Y,f:this.C,
cas:this.Wf,fs:this.ud,ar:this.Md,at:this.Yc.Z,rt:this.Be};this.Ld||(a.ap=this.Ld);this.Ye||(a.af=this.Ye);return a};d.Qb=function(a){var b=this.kw(a.a);b&&(this.xa=b);this.C=a.f;0>this.C&&(this.C=0);this.C>=this.xa.frames.length&&(this.C=this.xa.frames.length-1);this.Wf=a.cas;this.ud=a.fs;this.Md=a.ar;this.Yc.reset();this.Yc.Z=a.at;this.Ld=a.hasOwnProperty("ap")?a.ap:!0;this.Ye=a.hasOwnProperty("af")?a.af:!0;a.hasOwnProperty("rt")?this.Be=a.rt:this.Be=this.xa.vn;this.Sa=this.xa.frames[this.C];this.vj=
this.Sa.r;this.ga.oi(this.Sa.yk);this.Nb=this.Sa.Nb;this.Ob=this.Sa.Ob};d.Dl=function(a){this.C=a?0:this.xa.frames.length-1;this.Ld=!1;this.Oo=this.xa.name;this.zh=!0;this.b.trigger(V.prototype.c.gt,this);this.b.trigger(V.prototype.c.mo,this);this.zh=!1;this.Md=0};d.El=function(){return this.Yc.Z};d.mb=function(){this.Yc.add(this.b.Rj(this));this.Tf.length&&this.dp();0<=this.hh&&this.Zl();var a=this.Yc.Z,b=this.xa,c=b.frames[this.C],d=c.duration/this.Wf;this.Ld&&a>=this.ud+d&&(this.Ye?this.C++:this.C--,
this.ud+=d,this.C>=b.frames.length&&(b.cr?(this.Ye=!1,this.C=b.frames.length-2):b.loop?this.C=this.Be:(this.Md++,this.Md>=b.un?this.Dl(!1):this.C=this.Be)),0>this.C&&(b.cr?(this.C=1,this.Ye=!0,b.loop||(this.Md++,this.Md>=b.un&&this.Dl(!0))):b.loop?this.C=this.Be:(this.Md++,this.Md>=b.un?this.Dl(!0):this.C=this.Be)),0>this.C?this.C=0:this.C>=b.frames.length&&(this.C=b.frames.length-1),a>this.ud+b.frames[this.C].duration/this.Wf&&(this.ud=a),a=b.frames[this.C],this.Of(c,a),this.b.fa=!0)};d.sp=function(a){var b,
c,d;b=0;for(c=this.type.gc.length;b<c;b++)if(d=this.type.gc[b],mb(d.name,a))return d;return null};d.kw=function(a){var b,c,d;b=0;for(c=this.type.gc.length;b<c;b++)if(d=this.type.gc[b],d.Y===a)return d;return null};d.dp=function(){var a=this.xa.frames[this.C],b=this.sp(this.Tf);this.Tf="";!b||mb(b.name,this.xa.name)&&this.Ld||(this.xa=b,this.Wf=b.speed,this.Be=b.vn,0>this.C&&(this.C=0),this.C>=this.xa.frames.length&&(this.C=this.xa.frames.length-1),1===this.Xo&&(this.C=0),this.Ld=!0,this.ud=this.Yc.Z,
this.Ye=!0,this.Of(a,this.xa.frames[this.C]),this.b.fa=!0)};d.Zl=function(){var a=this.xa.frames[this.C],b=this.C;this.C=ta(this.hh);0>this.C&&(this.C=0);this.C>=this.xa.frames.length&&(this.C=this.xa.frames.length-1);b!==this.C&&(this.Of(a,this.xa.frames[this.C]),this.ud=this.Yc.Z,this.b.fa=!0);this.hh=-1};d.Of=function(a,b){var c=a.width,d=a.height,f=b.width,g=b.height;c!=f&&(this.width*=f/c);d!=g&&(this.height*=g/d);this.Nb=b.Nb;this.Ob=b.Ob;this.ga.oi(b.yk);this.za();this.Sa=b;this.vj=b.r;c=0;
for(d=this.L.length;c<d;c++)f=this.L[c],f.Kx&&f.Kx(a,b);this.b.trigger(V.prototype.c.Of,this)};d.ed=function(a){a.globalAlpha=this.opacity;var b=this.Sa,c=b.Mg,d=b.q,f=this.x,g=this.y,k=this.width,h=this.height;if(0===this.m&&0<=k&&0<=h)f-=this.Nb*k,g-=this.Ob*h,this.b.Ac&&(f=Math.round(f),g=Math.round(g)),c?a.drawImage(d,b.Ag,b.Bg,b.width,b.height,f,g,k,h):a.drawImage(d,f,g,k,h);else{this.b.Ac&&(f=Math.round(f),g=Math.round(g));a.save();var l=0<k?1:-1,n=0<h?1:-1;a.translate(f,g);1===l&&1===n||a.scale(l,
n);a.rotate(this.m*l*n);f=0-this.Nb*na(k);g=0-this.Ob*na(h);c?a.drawImage(d,b.Ag,b.Bg,b.width,b.height,f,g,na(k),na(h)):a.drawImage(d,f,g,na(k),na(h));a.restore()}};d.Ce=function(a){this.Kb(a)};d.Kb=function(a){a.Rb(this.vj);a.Se(this.opacity);var b=this.Sa,c=this.Xb;if(this.b.Ac){var d=Math.round(this.x)-this.x,f=Math.round(this.y)-this.y;b.Mg?a.Sc(c.Fa+d,c.Ga+f,c.nb+d,c.ob+f,c.bb+d,c.cb+f,c.$a+d,c.ab+f,b.Dn):a.ji(c.Fa+d,c.Ga+f,c.nb+d,c.ob+f,c.bb+d,c.cb+f,c.$a+d,c.ab+f)}else b.Mg?a.Sc(c.Fa,c.Ga,
c.nb,c.ob,c.bb,c.cb,c.$a,c.ab,b.Dn):a.ji(c.Fa,c.Ga,c.nb,c.ob,c.bb,c.cb,c.$a,c.ab)};d.sw=function(a){var b=this.Sa,c,d;c=0;for(d=b.wm.length;c<d;c++)if(mb(a,b.wm[c][0]))return c;return-1};d.nf=function(a,b){var c=this.Sa,d=c.wm,f;z(a)?f=this.sw(a):f=a-1;f=ta(f);if(0>f||f>=d.length)return b?this.x:this.y;var g=(d[f][1]-c.Nb)*this.width,d=d[f][2],d=(d-c.Ob)*this.height,c=Math.cos(this.m);f=Math.sin(this.m);var k=g*c-d*f,d=d*c+g*f,g=k+this.x,d=d+this.y;return b?g:d};var l=null,c=new ca,f=!1,a=[],k=new wa(0,
0,0,0);g.finish=function(a){if(f){if(a){var b=this.b.Ea().Ia.kc;a=l.N();var d=c.We(),g,k;if(a.R){a.R=!1;A(a.d);g=0;for(k=d.length;g<k;++g)a.d[g]=d[g];if(b)for(A(a.I),g=0,k=l.d.length;g<k;++g)d=l.d[g],c.contains(d)||a.I.push(d)}else if(b)for(b=a.d.length,g=0,k=d.length;g<k;++g)a.d[b+g]=d[g],Ia(a.I,d[g]);else Da(a.d,d);l.Gc()}c.clear();f=!1}};r.prototype.Us=function(a){return p.call(this,a,0,0)};r.prototype.Vs=function(a,b,c){return p.call(this,a,b,c)};r.prototype.Ms=function(a){return this.Tf.length?
mb(this.Tf,a):mb(this.xa.name,a)};r.prototype.mo=function(a){return mb(this.Oo,a)};r.prototype.gt=function(){return!0};r.prototype.Of=function(){return!0};n.c=new r;t.prototype.mu=function(a,b,c){if(a&&b&&(b=this.b.Rl(a,b,this.nf(c,!0),this.nf(c,!1)))){"undefined"!==typeof b.m&&(b.m=this.m,b.za());this.b.wc++;var d,f,g;this.b.trigger(Object.getPrototypeOf(a.X).c.Jd,b);if(b.Ab)for(d=0,f=b.siblings.length;d<f;d++)g=b.siblings[d],this.b.trigger(Object.getPrototypeOf(g.type.X).c.Jd,g);this.b.wc--;d=this.b.pw();
c=!1;if(ha(d.ja.Spawn_LastExec)||d.ja.Spawn_LastExec<this.b.kf)c=!0,d.ja.Spawn_LastExec=this.b.kf;if(a!=this.type&&(a=a.N(),a.R=!1,c?(A(a.d),a.d[0]=b):a.d.push(b),b.Ab))for(d=0,f=b.siblings.length;d<f;d++)g=b.siblings[d],a=g.type.N(),a.R=!1,c?(A(a.d),a.d[0]=g):a.d.push(g)}};t.prototype.qu=function(){this.Ld=!1};t.prototype.ou=function(a){this.Ld=!0;this.ud=this.Yc.Z;1===a&&0!==this.C&&(this.hh=0,this.zh||this.Zl());this.uf||(this.b.If(this),this.uf=!0)};t.prototype.Xt=function(a,b){this.Tf=a;this.Xo=
b;this.uf||(this.b.If(this),this.uf=!0);this.zh||this.dp()};t.prototype.Yt=function(a){this.hh=a;this.uf||(this.b.If(this),this.uf=!0);this.zh||this.Zl()};t.prototype.yl=function(a){var b=this.Sa,c=b.width*a*(0>this.width?-1:1);a=b.height*a*(0>this.height?-1:1);if(this.width!==c||this.height!==a)this.width=c,this.height=a,this.za()};n.e=new t;v.prototype.Ks=function(a,b){a.n(this.nf(b,!0))};v.prototype.Ls=function(a,b){a.n(this.nf(b,!1))};v.prototype.jo=function(a){a.n(this.Sa.width)};v.prototype.io=
function(a){a.n(this.Sa.height)};n.g=new v})();function yc(h){this.b=h}
(function(){function h(a,b){return a.length?a.pop():new b}function r(a,b,c){if(c){var d;c=0;for(d=b.length;c<d;c++)a.length<g&&a.push(b[c]);A(b)}else for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&(a.length<g&&a.push(b[d]),delete b[d])}function p(a,c,d){var f=a.zf;d=d.replace(/\s\s*$/,"");c>=f.length&&f.push(h(b,Object));c=f[c];c.text=d;c.width=a.Wm(d);a.Qg=pa(a.Qg,c.width)}function t(){}var v=yc.prototype;v.D=function(){};v.W=function(a){this.X=a;this.b=a.b};var n=v.W.prototype;n.D=function(){this.B||
(this.q=new Image,this.b.gl(this.q,this.wi),this.r=null)};n.ei=function(){this.B||(this.r=null)};n.fi=function(){if(!this.B&&this.d.length){this.r||(this.r=this.b.k.yc(this.q,!1,this.b.qa,this.Ue));var a,b;a=0;for(b=this.d.length;a<b;a++)this.d[a].r=this.r}};n.Ai=function(){this.B||this.d.length||!this.r||(this.b.k.deleteTexture(this.r),this.r=null)};n.Ck=function(a){a.drawImage(this.q,0,0)};v.S=function(a){this.type=a;this.b=a.b};n=v.S.prototype;n.Ef=function(){r(b,this.zf,!0);r(d,this.pj,!1);r(l,
this.qj,!1);Ya(this.xe)};n.D=function(){this.q=this.type.q;this.oj=this.A[0];this.we=this.A[1];this.characterSet=this.A[2];this.text=this.A[3];this.rd=this.A[4];this.visible=0===this.A[5];this.xh=this.A[6]/2;this.el=this.A[7]/2;this.Ty=0===this.A[9];this.Uf=this.A[10];this.lineHeight=this.A[11];this.Gf=this.Qg=0;this.Bc?(A(this.zf),Ya(this.pj),Ya(this.qj),Ya(this.xe)):(this.zf=[],this.pj={},this.qj={},this.xe={});this.Hf=!0;this.Mm=this.width;this.b.k&&(this.type.r||(this.type.r=this.b.k.yc(this.type.q,
!1,this.b.qa,this.type.Ue)),this.r=this.type.r);this.nu()};n.Fb=function(){var a={t:this.text,csc:this.rd,csp:this.Uf,lh:this.lineHeight,tw:this.Qg,th:this.Gf,lrt:this.mx,ha:this.xh,va:this.el,cw:{}},b;for(b in this.xe)a.cw[b]=this.xe[b];return a};n.Qb=function(a){this.text=a.t;this.rd=a.csc;this.Uf=a.csp;this.lineHeight=a.lh;this.Qg=a.tw;this.Gf=a.th;this.mx=a.lrt;a.hasOwnProperty("ha")&&(this.xh=a.ha);a.hasOwnProperty("va")&&(this.el=a.va);for(var b in a.cw)this.xe[b]=a.cw[b];this.Hf=!0;this.Mm=
this.width};var g=1E3,b=[],d=[],l=[];n.nu=function(){for(var a=this.q,b=a.width,c=a.height,a=this.oj,f=this.we,g=a/b,q=f/c,n=this.characterSet,b=Math.floor(b/a),c=Math.floor(c/f),p=0;p<n.length&&!(p>=b*c);p++){var t=p%b,r=Math.floor(p/b),v=n.charAt(p);if(this.b.k){var K=this.qj,L=t*g,H=r*q,t=(t+1)*g,r=(r+1)*q;void 0===K[v]&&(K[v]=h(l,wa));K[v].left=L;K[v].top=H;K[v].right=t;K[v].bottom=r}else K=this.pj,t=t*a,r=r*f,L=a,H=f,void 0===K[v]&&(K[v]=h(d,Object)),K[v].x=t,K[v].y=r,K[v].cs=L,K[v].Ap=H}};var c=
[];v.tu=function(a){A(c);for(var b="",d,f=0;f<a.length;)if(d=a.charAt(f),"\n"===d)b.length&&(c.push(b),b=""),c.push("\n"),++f;else if(" "===d||"\t"===d||"-"===d){do b+=a.charAt(f),f++;while(f<a.length&&(" "===a.charAt(f)||"\t"===a.charAt(f)));c.push(b);b=""}else f<a.length&&(b+=d,f++);b.length&&c.push(b)};v.xu=function(a){var c=a.text,d=a.zf;if(c&&c.length){var f=a.width;if(2>=f)r(b,d,!0);else{var g=a.rd,l=a.Uf;if(c.length*(a.oj*g+l)-l<=f&&-1===c.indexOf("\n")&&(l=a.Wm(c),l<=f)){r(b,d,!0);d.push(h(b,
Object));d[0].text=c;d[0].width=l;a.Qg=l;a.Gf=a.we*g+a.lineHeight;return}this.yu(a);a.Gf=d.length*(a.we*g+a.lineHeight)}}else r(b,d,!0)};v.yu=function(a){var d=a.Ty,e=a.text,f=a.zf,h=a.width;d&&(this.tu(e),e=c);var l="",n,t,r,v=0,oa=!1;for(r=0;r<e.length;r++)"\n"===e[r]?(!0===oa?oa=!1:(p(a,v,l),v++),l=""):(oa=!1,n=l,l+=e[r],t=a.Wm(l.replace(/\s\s*$/,"")),t>h&&(""===n?(p(a,v,l),l="",oa=!0):(p(a,v,n),l=e[r]),v++,d||" "!==l||(l="")));l.replace(/\s\s*$/,"").length&&(p(a,v,l),v++);for(r=v;r<f.length;r++)b.length<
g&&b.push(f[r]);f.length=v};n.Wm=function(a){for(var b=this.Uf,c=a.length,d=0,f=0;f<c;f++)d+=this.jm(a.charAt(f))*this.rd+b;return d-(0<d?b:0)};n.jm=function(a){var b=this.xe;return void 0!==b[a]?b[a]:this.oj};n.jr=function(){if(this.Hf||this.width!==this.Mm)this.Gf=this.Qg=0,this.type.X.xu(this),this.Hf=!1,this.Mm=this.width};n.ed=function(a){var b=this.q;if(""!==this.text&&null!=b&&(this.jr(),!(this.height<this.we*this.rd+this.lineHeight))){a.globalAlpha=this.opacity;var b=this.x,c=this.y;this.b.Ac&&
(b=Math.round(b),c=Math.round(c));var d=this.j.ma,f=this.j.na,g=this.j.wa,h=this.j.ua;a.save();a.translate(b,c);a.rotate(this.m);for(var l=this.m,n=this.xh,p=this.rd,t=this.we*p,r=this.lineHeight,v=this.Uf,H=this.zf,W,Q=-(this.Nb*this.width),O=-(this.Ob*this.height),O=O+this.el*pa(0,this.height-this.Gf),J,M,F,R=0;R<H.length;R++){var x=H[R].text;W=n*pa(0,this.width-H[R].width);J=Q+W;O+=r;if(0===l&&c+O+t<f)O+=t;else{for(var B=0;B<x.length;B++){M=x.charAt(B);W=this.jm(M);var D=this.pj[M];if(0===l&&b+
J+W*p+v<d)J+=W*p+v;else{if(J+W*p>this.width+1E-5)break;void 0!==D&&(M=J,F=O,0===l&&1===p&&(M=Math.round(M),F=Math.round(F)),a.drawImage(this.q,D.x,D.y,D.cs,D.Ap,M,F,D.cs*p,D.Ap*p));J+=W*p+v;if(0===l&&b+J>g)break}}O+=t;if(0===l&&(O+t+r>this.height||c+O>h))break}}a.restore()}};var f=new xa;n.Kb=function(a){a.Rb(this.r);a.Se(this.opacity);if(this.text&&(this.jr(),!(this.height<this.we*this.rd+this.lineHeight))){this.Aa();var b=this.Xb,c=0,d=0;this.b.Ac&&(c=Math.round(this.x)-this.x,d=Math.round(this.y)-
this.y);var g=this.j.ma,h=this.j.na,l=this.j.wa,n=this.j.ua,p=this.m,t=this.xh,r=this.el,v=this.rd,L=this.we*v,H=this.lineHeight,W=this.Uf,Q=this.zf,O=this.Gf,J,M,F;0!==p&&(M=Math.cos(p),F=Math.sin(p));for(var c=b.Fa+c,b=b.Ga+d,R,r=r*pa(0,this.height-O),x,B,O=0;O<Q.length;O++)if(d=Q[O].text,R=J=t*pa(0,this.width-Q[O].width),r+=H,0===p&&b+r+L<h)r+=L;else{for(var D=0;D<d.length;D++){var y=d.charAt(D);J=this.jm(y);y=this.qj[y];if(0===p&&c+R+J*v+W<g)R+=J*v+W;else{if(R+J*v>this.width+1E-5)break;if(void 0!==
y){var N=this.oj*v,C=this.we*v;x=R;B=r;0===p&&1===v&&(x=Math.round(x),B=Math.round(B));f.Fa=x;f.Ga=B;f.nb=x+N;f.ob=B;f.$a=x;f.ab=B+C;f.bb=x+N;f.cb=B+C;0!==p&&(x=f,B=M,N=F,C=void 0,C=x.Fa*B-x.Ga*N,x.Ga=x.Ga*B+x.Fa*N,x.Fa=C,C=x.nb*B-x.ob*N,x.ob=x.ob*B+x.nb*N,x.nb=C,C=x.$a*B-x.ab*N,x.ab=x.ab*B+x.$a*N,x.$a=C,C=x.bb*B-x.cb*N,x.cb=x.cb*B+x.bb*N,x.bb=C);f.offset(c,b);a.Sc(f.Fa,f.Ga,f.nb,f.ob,f.bb,f.cb,f.$a,f.ab,y)}R+=J*v+W;if(0===p&&c+R>l)break}}r+=L;if(0===p&&(r+L+H>this.height||b+r>n))break}}};v.c=new function(){};
t.prototype.iu=function(a){ja(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.Hf=!0,this.b.fa=!0)};t.prototype.yl=function(a){a!==this.rd&&(this.rd=a,this.Hf=!0,this.b.fa=!0)};n.Zt=function(a,b){var c=parseInt(b,10);this.xe[a]!==c&&(this.xe[a]=c,this.Hf=!0,this.b.fa=!0)};t.prototype.$t=function(a,b){if(""!==a)for(var c=0;c<a.length;c++)this.Zt(a.charAt(c),b)};t.prototype.bu=function(a){this.xh=a/2;this.Hf=!0;this.b.fa=!0};v.e=new t;v.g=new function(){}})();
function zc(h){this.b=h}
(function(){function h(){}var r=zc.prototype;r.W=function(h){this.X=h;this.b=h.b};var p=r.W.prototype;p.D=function(){this.B||(this.q=new Image,this.q.Ql=this.Yk,this.b.gl(this.q,this.wi),this.r=this.pattern=null)};p.ei=function(){this.B||(this.r=null)};p.fi=function(){if(!this.B&&this.d.length){this.r||(this.r=this.b.k.yc(this.q,!0,this.b.qa,this.Ue));var h,p;h=0;for(p=this.d.length;h<p;h++)this.d[h].r=this.r}};p.Pm=function(){this.B||this.r||!this.b.k||(this.r=this.b.k.yc(this.q,!0,this.b.qa,this.Ue))};
p.Ai=function(){this.B||this.d.length||!this.r||(this.b.k.deleteTexture(this.r),this.r=null)};p.Ck=function(h){h.drawImage(this.q,0,0)};r.S=function(h){this.type=h;this.b=h.b};p=r.S.prototype;p.D=function(){this.visible=0===this.A[0];this.de=new wa(0,0,0,0);this.Ep=!1;this.q=this.type.q;this.b.k?(this.type.Pm(),this.r=this.type.r):(this.type.pattern||(this.type.pattern=this.b.Ba.createPattern(this.type.q,"repeat")),this.pattern=this.type.pattern)};p.Kd=function(){this.Ep=!1;this.q=this.type.q};p.Ef=
function(){this.b.k&&this.Ep&&this.r&&(this.b.k.deleteTexture(this.r),this.r=null)};p.ed=function(h){h.globalAlpha=this.opacity;h.save();h.fillStyle=this.pattern;var p=this.x,n=this.y;this.b.Ac&&(p=Math.round(p),n=Math.round(n));var g=-(this.Nb*this.width),b=-(this.Ob*this.height),d=g%this.q.width,l=b%this.q.height;0>d&&(d+=this.q.width);0>l&&(l+=this.q.height);h.translate(p,n);h.rotate(this.m);h.translate(d,l);h.fillRect(g-d,b-l,this.width,this.height);h.restore()};p.Ce=function(h){this.Kb(h)};p.Kb=
function(h){h.Rb(this.r);h.Se(this.opacity);var p=this.de;p.right=this.width/this.q.width;p.bottom=this.height/this.q.height;var n=this.Xb;if(this.b.Ac){var g=Math.round(this.x)-this.x,b=Math.round(this.y)-this.y;h.Sc(n.Fa+g,n.Ga+b,n.nb+g,n.ob+b,n.bb+g,n.cb+b,n.$a+g,n.ab+b,p)}else h.Sc(n.Fa,n.Ga,n.nb,n.ob,n.bb,n.cb,n.$a,n.ab,p)};r.c=new function(){};r.e=new function(){};h.prototype.jo=function(h){h.n(this.q.width)};h.prototype.io=function(h){h.n(this.q.height)};r.g=new h})();
function Z(h){this.b=h}
(function(){function h(a){l=a.x;c=a.y;f=a.z}function r(b,c,d,e){var f;f=a.length?a.pop():new p;f.init(b,c,d,e);return f}function p(){this.ri=this.id=this.y=this.x=this.Uk=this.Tk=this.Lm=this.time=this.Hn=0;this.yi=this.al=!1}function t(a){return a.sourceCapabilities&&a.sourceCapabilities.firesTouchEvents||a.originalEvent&&a.originalEvent.sourceCapabilities&&a.originalEvent.sourceCapabilities.firesTouchEvents}function v(){}function n(){}var g=Z.prototype;g.W=function(a){this.X=a;this.b=a.b};g.W.prototype.D=
function(){};g.S=function(a){this.type=a;this.b=a.b;this.touches=[];this.Xm=!1};var b=g.S.prototype,d={left:0,top:0};b.lf=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 l=0,c=0,f=0,a=[];p.prototype.init=function(a,b,c,d){var e=Za();this.Hn=this.Lm=this.time=e;this.Tk=a;this.Uk=b;this.x=a;this.y=b;this.pressure=this.height=this.width=0;this.id=c;this.ri=d;this.yi=this.al=!1};p.prototype.update=function(a,b,c,d,e,f){this.Lm=this.time;this.time=
a;this.x=b;this.y=c;this.width=d;this.height=e;this.pressure=f;!this.yi&&15<=Va(this.Tk,this.Uk,this.x,this.y)&&(this.yi=!0)};p.prototype.wx=function(a,b){!this.al&&500<=Za()-this.Hn&&!this.yi&&15>Va(this.Tk,this.Uk,this.x,this.y)&&(this.al=!0,a.Id=this.ri,a.Kf=this.id,a.bg=b,a.b.trigger(Z.prototype.c.ot,a),a.Qd=this.x,a.Rd=this.y,a.b.trigger(Z.prototype.c.pt,a),a.bg=0)};var k=-1E3,e=-1E3,u=-1E4;p.prototype.Bq=function(a,b){if(!this.al){var c=Za();333>=c-this.Hn&&!this.yi&&15>Va(this.Tk,this.Uk,this.x,
this.y)&&(a.Id=this.ri,a.Kf=this.id,a.bg=b,666>=c-u&&25>Va(k,e,this.x,this.y)?(a.b.trigger(Z.prototype.c.kt,a),a.Qd=this.x,a.Rd=this.y,a.b.trigger(Z.prototype.c.lt,a),e=k=-1E3,u=-1E4):(a.b.trigger(Z.prototype.c.Dt,a),a.Qd=this.x,a.Rd=this.y,a.b.trigger(Z.prototype.c.Et,a),k=this.x,e=this.y,u=c),a.bg=0)}};b.D=function(){this.jx=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.bg=this.Kf=this.Id=this.Rd=this.Qd=this.Ko=this.Jo=this.Io=this.Cu=this.Bu=this.Au=this.vk=this.uk=this.tk=
0;this.Qy=0!==this.A[0];var a=0<this.b.Yb?document:this.b.canvas,b=document;this.b.pb?b=a=window.Canvas:this.b.Mc&&(b=a=window);var c=this;"undefined"!==typeof PointerEvent?(a.addEventListener("pointerdown",function(a){c.Qq(a)},!1),a.addEventListener("pointermove",function(a){c.Pq(a)},!1),b.addEventListener("pointerup",function(a){c.sk(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.sk(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.Qq(a)},!1),a.addEventListener("MSPointerMove",function(a){c.Pq(a)},!1),b.addEventListener("MSPointerUp",function(a){c.sk(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.sk(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.Sq(a)},!1),a.addEventListener("touchmove",function(a){c.Rq(a)},!1),b.addEventListener("touchend",function(a){c.cn(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.cn(a,!0)},!1));if(this.jx){var d=function(a){a=a.reading;c.Io=a.accelerationX;c.Jo=a.accelerationY;
c.Ko=a.accelerationZ},e=function(a){a=a.reading;c.tk=a.yawDegrees;c.uk=a.pitchDegrees;c.vk=a.rollDegrees},f=Windows.Devices.Sensors.Accelerometer.getDefault();f&&(f.reportInterval=Math.max(f.minimumReportInterval,16),f.addEventListener("readingchanged",d));var g=Windows.Devices.Sensors.Inclinometer.getDefault();g&&(g.reportInterval=Math.max(g.minimumReportInterval,16),g.addEventListener("readingchanged",e));document.addEventListener("visibilitychange",function(){document.hidden||document.msHidden?
(f&&f.removeEventListener("readingchanged",d),g&&g.removeEventListener("readingchanged",e)):(f&&f.addEventListener("readingchanged",d),g&&g.addEventListener("readingchanged",e))},!1)}else window.addEventListener("deviceorientation",function(a){c.tk=a.alpha||0;c.uk=a.beta||0;c.vk=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.Au=a.accelerationIncludingGravity.x||0,c.Bu=a.accelerationIncludingGravity.y||0,c.Cu=a.accelerationIncludingGravity.z||
0);a.acceleration&&(c.Io=a.acceleration.x||0,c.Jo=a.acceleration.y||0,c.Ko=a.acceleration.z||0)},!1);this.Qy&&!this.b.pa&&(jQuery(document).mousemove(function(a){c.Hx(a)}),jQuery(document).mousedown(function(a){c.Gx(a)}),jQuery(document).mouseup(function(a){c.Ix(a)}));!this.b.pg&&this.b.vc&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(h,null,{frequency:40});this.b.Fy(this)};b.Pq=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&
"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var b=this.lf(a.pointerId),c=Za();if(0<=b){var e=this.b.pa?d:jQuery(this.b.canvas).offset(),b=this.touches[b];2>c-b.time||b.update(c,a.pageX-e.left,a.pageY-e.top,a.width||0,a.height||0,a.pressure||0)}}};b.Qq=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&pb(a)&&a.preventDefault();var b=this.b.pa?d:jQuery(this.b.canvas).offset(),c=a.pageX-b.left,b=a.pageY-b.top;Za();this.Id=this.touches.length;
this.Kf=a.pointerId;this.touches.push(r(c,b,a.pointerId,this.Id));this.b.xc=!0;this.b.trigger(Z.prototype.c.xo,this);this.b.trigger(Z.prototype.c.tl,this);this.Qd=c;this.Rd=b;this.b.trigger(Z.prototype.c.sl,this);this.b.xc=!1}};b.sk=function(b,c){if(b.pointerType!==b.MSPOINTER_TYPE_MOUSE&&"mouse"!==b.pointerType){b.preventDefault&&pb(b)&&b.preventDefault();var d=this.lf(b.pointerId);this.Id=0<=d?this.touches[d].ri:-1;this.Kf=0<=d?this.touches[d].id:-1;this.b.xc=!0;this.b.trigger(Z.prototype.c.wo,
this);this.b.trigger(Z.prototype.c.rl,this);0<=d&&(c||this.touches[d].Bq(this,d),100>a.length&&a.push(this.touches[d]),this.touches.splice(d,1));this.b.xc=!1}};b.Rq=function(a){a.preventDefault&&a.preventDefault();var b=Za(),c,e,f,g;c=0;for(e=a.changedTouches.length;c<e;c++)if(f=a.changedTouches[c],g=this.lf(f.identifier),0<=g){var h=this.b.pa?d:jQuery(this.b.canvas).offset();g=this.touches[g];2>b-g.time||g.update(b,f.pageX-h.left,f.pageY-h.top,2*(f.Fz||f.Nz||f.yz||f.Bz||0),2*(f.Gz||f.Oz||f.zz||f.Cz||
0),f.qz||f.Mz||f.xz||f.Az||0)}};b.Sq=function(a){a.preventDefault&&pb(a)&&a.preventDefault();var b=this.b.pa?d:jQuery(this.b.canvas).offset();Za();this.b.xc=!0;var c,e,f,g;c=0;for(e=a.changedTouches.length;c<e;c++)if(f=a.changedTouches[c],g=this.lf(f.identifier),-1===g){g=f.pageX-b.left;var h=f.pageY-b.top;this.Id=this.touches.length;this.Kf=f.identifier;this.touches.push(r(g,h,f.identifier,this.Id));this.b.trigger(Z.prototype.c.xo,this);this.b.trigger(Z.prototype.c.tl,this);this.Qd=g;this.Rd=h;this.b.trigger(Z.prototype.c.sl,
this)}this.b.xc=!1};b.cn=function(b,c){b.preventDefault&&pb(b)&&b.preventDefault();this.b.xc=!0;var d,e,f;d=0;for(e=b.changedTouches.length;d<e;d++)f=b.changedTouches[d],f=this.lf(f.identifier),0<=f&&(this.Id=this.touches[f].ri,this.Kf=this.touches[f].id,this.b.trigger(Z.prototype.c.wo,this),this.b.trigger(Z.prototype.c.rl,this),c||this.touches[f].Bq(this,f),100>a.length&&a.push(this.touches[f]),this.touches.splice(f,1));this.b.xc=!1};b.El=function(){return this.b.vc&&0===this.tk&&0!==f?90*f:this.tk};
b.Uu=function(){return this.b.vc&&0===this.uk&&0!==c?90*c:this.uk};b.wv=function(){return this.b.vc&&0===this.vk&&0!==l?90*l:this.vk};b.Gx=function(a){t(a)||(this.Sq({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]}),this.Xm=!0)};b.Hx=function(a){this.Xm&&!t(a)&&this.Rq({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};b.Ix=function(a){a.preventDefault&&this.b.Bp&&!this.b.sf&&a.preventDefault();this.b.Bp=!0;t(a)||(this.cn({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]}),
this.Xm=!1)};b.Jn=function(){var a,b,c,d=Za();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=d-50&&(c.Lm=d),c.wx(this,a)};v.prototype.tl=function(){return!0};v.prototype.rl=function(){return!0};v.prototype.sl=function(a){return a?this.b.Wk(a,this.Qd,this.Rd):!1};v.prototype.xo=function(a){a=Math.floor(a);return a===this.Id};v.prototype.wo=function(a){a=Math.floor(a);return a===this.Id};v.prototype.ot=function(){return!0};v.prototype.Dt=function(){return!0};v.prototype.kt=function(){return!0};
v.prototype.pt=function(a){return a?this.b.Wk(a,this.Qd,this.Rd):!1};v.prototype.Et=function(a){return a?this.b.Wk(a,this.Qd,this.Rd):!1};v.prototype.lt=function(a){return a?this.b.Wk(a,this.Qd,this.Rd):!1};g.c=new v;g.e=new function(){};n.prototype.aj=function(a,b){var c=this.bg;if(0>c||c>=this.touches.length)a.n(0);else{var d,e,f,g,h;ha(b)?(d=this.b.ag(0),e=d.scale,f=d.qd,g=d.Pc,h=d.m,d.scale=1,d.qd=1,d.Pc=1,d.m=0,a.n(d.ub(this.touches[c].x,this.touches[c].y,!0)),d.scale=e,d.qd=f,d.Pc=g,d.m=h):
(d=ja(b)?this.b.ag(b):this.b.Sj(b))?a.n(d.ub(this.touches[c].x,this.touches[c].y,!0)):a.n(0)}};n.prototype.Al=function(a,b){var c=this.bg;if(0>c||c>=this.touches.length)a.n(0);else{var d,e,f,g,h;ha(b)?(d=this.b.ag(0),e=d.scale,f=d.qd,g=d.Qc,h=d.m,d.scale=1,d.qd=1,d.Qc=1,d.m=0,a.n(d.ub(this.touches[c].x,this.touches[c].y,!1)),d.scale=e,d.qd=f,d.Qc=g,d.m=h):(d=ja(b)?this.b.ag(b):this.b.Sj(b))?a.n(d.ub(this.touches[c].x,this.touches[c].y,!1)):a.n(0)}};n.prototype.es=function(a,b){var c=this.lf(b);0>
c?a.n(0):a.n(this.touches[c].x)};n.prototype.gs=function(a,b){var c=this.lf(b);0>c?a.n(0):a.n(this.touches[c].y)};n.prototype.uu=function(a){a.n(this.Kf)};g.g=new n})();function Ac(h){this.b=h}
(function(){function h(){}function r(){}function p(){}var t=Ac.prototype;t.W=function(g){this.X=g;this.b=g.b};t.W.prototype.D=function(){};t.S=function(g){this.type=g;this.b=g.b};var v=t.S.prototype,n=window.URL||window.webkitURL||window.mozURL||window.msURL;v.D=function(){if(this.b.pa)fa("[Construct 2] File Chooser plugin not supported on this platform - the object will not be created");else{this.Lb=document.createElement("input");this.Lb.type="file";this.Lb.setAttribute("accept",this.A[0]);0!==
this.A[1]&&this.Lb.setAttribute("multiple","");this.Lb.id=this.A[3];jQuery(this.Lb).appendTo(this.b.nj?this.b.nj:"body");this.ff=!1;0===this.A[2]&&(jQuery(this.Lb).hide(),this.visible=!1,this.ff=!0);var g=this;this.Lb.onchange=function(){g.b.trigger(Ac.prototype.c.oo,g)};this.bq=this.cq=this.Vp=this.Zp=this.aq=this.Xp=0;this.Zr(!0);this.b.If(this)}};v.Ef=function(){this.b.pa||(jQuery(this.Lb).remove(),this.Lb=null)};v.mb=function(){this.Zr()};v.Zr=function(g){if(!this.b.pa){var b=this.j.ib(this.x,
this.y,!0),d=this.j.ib(this.x,this.y,!1),h=this.j.ib(this.x+this.width,this.y+this.height,!0),c=this.j.ib(this.x+this.width,this.y+this.height,!1),f=this.b.width/this.b.devicePixelRatio,a=this.b.height/this.b.devicePixelRatio;!this.visible||!this.j.visible||0>=h||0>=c||b>=f||d>=a?(this.ff||jQuery(this.Lb).hide(),this.ff=!0):(1>b&&(b=1),1>d&&(d=1),h>=f&&(h=f-1),c>=a&&(c=a-1),f=window.innerWidth,a=window.innerHeight,g||this.Xp!==b||this.aq!==d||this.Zp!==h||this.Vp!==c||this.cq!==f||this.bq!==a?(this.Xp=
b,this.aq=d,this.Zp=h,this.Vp=c,this.cq=f,this.bq=a,this.ff&&(jQuery(this.Lb).show(),this.ff=!1),g=Math.round(b)+jQuery(this.b.canvas).offset().left,f=Math.round(d)+jQuery(this.b.canvas).offset().top,jQuery(this.Lb).css("position","absolute"),jQuery(this.Lb).offset({left:g,top:f}),jQuery(this.Lb).width(Math.round(h-b)),jQuery(this.Lb).height(Math.round(c-d))):this.ff&&(jQuery(this.Lb).show(),this.ff=!1))}};v.ed=function(){};v.Kb=function(){};h.prototype.oo=function(){return!0};t.c=new h;r.prototype.ah=
function(g){this.b.pa||(this.visible=0!==g)};t.e=new r;p.prototype.Es=function(g,b){var d;if(this.b.pa)d=null;else{d=this.Lb.files;var h=b;d?(h=Math.floor(h),d=0>h||h>=d.length?null:d[h]):d=null}d?d.c2url?g.la(d.c2url):n&&n.createObjectURL?(d.c2url=n.createObjectURL(d),g.la(d.c2url)):g.la(""):g.la("")};t.g=new p})();function Bc(h){this.b=h}
(function(){function h(a){var b;if(!c[a])for(c[a]=Array(20),b=0;20>b;++b)c[a][b]=0;return c[a]}function r(a){var b;if(!f[a])for(f[a]=Array(20),b=0;20>b;++b)f[a][b]=0;return f[a]}function p(a,b){return b?4<=a?-1:a+16:16<=a?-1:a}function t(a){l[a.gamepad.index]=a.gamepad;b.trigger(Bc.prototype.c.mt,d)}function v(a){b.trigger(Bc.prototype.c.nt,d);l[a.gamepad.index]=null}function n(){}var g=Bc.prototype;g.W=function(a){this.X=a;this.b=a.b};g.W.prototype.D=function(){};var b=null,d=null,l=Array(16),c=
Array(16),f=Array(16),a="",k="",e=null,u={windows:{}};u.windows.firefox={};var m=[0,1,2,3,4,5,8,9,10,11],q=[0,1,[7,6],2,3,[14,15],[12,13]];u.windows.firefox.xbox360=function(a,b){return b?a>=q.length?-1:ja(q[a])?q[a]+16:q[a]:a>=m.length?-1:m[a]};var w=[2,0,1,3,4,6,5,7,8,9],U=[0,1,2,3,[14,15],[12,13]];u.windows.firefox.logitechdualaction=function(a,b){return b?a>=U.length?-1:ja(U[a])?U[a]+16:U[a]:a>=w.length?-1:w[a]};g.S=function(a){this.type=a;b=this.b=a.b;d=this};var E=g.S.prototype;E.D=function(){this.Vu=
this.A[0];this.ck=0;var b=navigator.userAgent;a="windows";/mac/i.test(b)&&(a="mac");e=u[a];k="chrome";/firefox/i.test(b)&&(k="firefox");e&&(e=e[k]);window.addEventListener("webkitgamepadconnected",t,!1);window.addEventListener("webkitgamepaddisconnected",v,!1);window.addEventListener("MozGamepadConnected",t,!1);window.addEventListener("MozGamepadDisconnected",v,!1);window.addEventListener("gamepadconnected",t,!1);window.addEventListener("gamepaddisconnected",v,!1);this.b.If(this);this.bj=[]};E.mb=
function(){this.bj.length=0;var a=null,b=!1;navigator.getGamepads?a=navigator.getGamepads():navigator.webkitGetGamepads?a=navigator.webkitGetGamepads():navigator.mozGetGamepads?a=navigator.mozGetGamepads():navigator.msGetGamepads?a=navigator.msGetGamepads():this.b.Sp&&window.cr_getGamepads?(a=window.cr_getGamepads(),b=!0):a=navigator.gamepads||navigator.webkitGamepads||navigator.MozGamepads||l;if(a){var d,g,k,n,m,q,t;d=0;for(g=a.length;d<g;d++){var u=a[d];if(u){var v=h(d),w=r(d);n=d;k=h(n);n=r(n);
m=void 0;for(m=0;20>m;++m)n[m]=k[m];b?k=p:e?(k="",n=u.id.toLowerCase(),-1<n.indexOf("xbox 360")?k="xbox360":-1<n.indexOf("logitech dual action")&&(k="logitechdualaction"),k=e[k]||p):k=p;m=k;k=0;for(n=u.buttons.length;k<n;k++)t="undefined"!==typeof u.buttons[k].value?u.buttons[k].value:u.buttons[k],q=m(k,!1,t),0<=q&&20>q&&(v[q]=100*t,50<=v[q]&&50>w[q]&&(this.ck=q));k=0;for(n=u.axes.length;k<n;k++)t=u.axes[k],q=m(k,!0,t),ja(q)?0<=q&&20>q&&(v[q]=100*t):(v[q[0]]=0,v[q[1]]=0,0>=t?v[q[0]]=Math.abs(100*
t):v[q[1]]=Math.abs(100*t));this.bj.push(u)}else u=d,c[u]=null,f[u]=null}for(;20>d;++d)a=d,c[a]=null,f[a]=null}};E.Fb=function(){return{lastButton:this.ck}};E.Qb=function(a){this.ck=a.lastButton};n.prototype.mt=function(){return!0};n.prototype.nt=function(){return!0};n.prototype.Os=function(a,b){a=Math.floor(a);if(0>a||a>=this.bj.length)return!1;var c=h(a);if(!c)return!1;if(c=50<=c[b])this.ck=b;return c};n.prototype.rs=function(a,b,c,d){a=Math.floor(a);b=Math.floor(b);if(0>a||a>=this.bj.length)return!1;
if(a=h(a)){var e=a[b+16],f=0,f=0===b%2?a[b+16+1]:a[b+16-1];Math.sqrt(e*e+f*f)<=this.Vu&&(e=0);return ic(e,c,d)}};g.c=new n;g.e=new function(){};g.g=new function(){}})();function Cc(h){this.b=h}
(function(){function h(){}function r(){}function p(){}var t=Cc.prototype;t.W=function(h){this.behavior=h;this.b=h.b};t.W.prototype.D=function(){};t.S=function(h,g){this.type=h;this.behavior=h.behavior;this.Na=g;this.b=h.b;this.ve=this.yb=this.xb=0};var v=t.S.prototype;v.D=function(){this.Og=this.A[0];this.qn=this.A[1];this.enabled=0!==this.A[2]};v.Fb=function(){return{dx:this.xb,dy:this.yb,cancelStep:this.ve,enabled:this.enabled,stepMode:this.Og,pxPerStep:this.qn}};v.Qb=function(h){this.xb=h.dx;this.yb=
h.dy;this.ve=h.cancelStep;this.enabled=h.enabled;this.Og=h.stepMode;this.qn=h.pxPerStep};v.zp=function(){return Math.sqrt(this.xb*this.xb+this.yb*this.yb)};v.gb=function(){return Math.atan2(this.yb,this.xb)};v.step=function(h,g,b){if(0!==h||0!==g){var d=this.Na.x,l=this.Na.y,c,f=Math.round(Math.sqrt(h*h+g*g)/this.qn);0===f&&(f=1);var a;for(a=1;a<=f;a++)if(c=a/f,this.Na.x=d+h*c,this.Na.y=l+g*c,this.Na.za(),this.b.trigger(b,this.Na),1===this.ve){a--;c=a/f;this.Na.x=d+h*c;this.Na.y=l+g*c;this.Na.za();
break}else if(2===this.ve)break}};v.mb=function(){var h=this.b.Rj(this.Na),g=this.xb*h,h=this.yb*h;0===this.xb&&0===this.yb||!this.enabled||(this.ve=0,0===this.Og?(this.Na.x+=g,this.Na.y+=h):1===this.Og?this.step(g,h,Cc.prototype.c.it):2===this.Og?(this.step(g,0,Cc.prototype.c.ol),this.ve=0,this.step(0,h,Cc.prototype.c.pl)):3===this.Og&&(this.step(0,h,Cc.prototype.c.pl),this.ve=0,this.step(g,0,Cc.prototype.c.ol)),this.Na.za())};h.prototype.Ts=function(){return 0!=this.xb||0!=this.yb};h.prototype.vs=
function(h,g,b){var d;switch(h){case 0:d=this.zp();break;case 1:d=this.xb;break;case 2:d=this.yb}return ic(d,g,b)};h.prototype.it=function(){return!0};h.prototype.ol=function(){return!0};h.prototype.pl=function(){return!0};t.c=new h;r.prototype.Fo=function(){this.yb=this.xb=0};r.prototype.hu=function(h,g){var b;switch(h){case 0:b=this.gb();this.xb=Math.cos(b)*g;this.yb=Math.sin(b)*g;break;case 1:this.xb=g;break;case 2:this.yb=g}};r.prototype.hs=function(h,g){var b=h*this.b.Rj(this.Na),d=G(g);this.xb+=
Math.cos(d)*b;this.yb+=Math.sin(d)*b};r.prototype.Wt=function(h){h=G(h);var g=this.zp();this.xb=Math.cos(h)*g;this.yb=Math.sin(h)*g};r.prototype.ru=function(h){this.ve=h+1};r.prototype.xl=function(h){this.enabled=1===h};t.e=new r;p.prototype.xb=function(h){h.n(this.xb)};p.prototype.yb=function(h){h.n(this.yb)};t.g=new p})();function Ic(h){this.b=h}
(function(){function h(){}var r=Ic.prototype;r.W=function(h){this.behavior=h;this.b=h.b};r.W.prototype.D=function(){};r.S=function(h,p){this.type=h;this.behavior=h.behavior;this.Na=p;this.b=h.b};var p=r.S.prototype;p.D=function(){this.Na.ja.jumpthruEnabled=0!==this.A[0]};p.mb=function(){};r.c=new function(){};h.prototype.xl=function(h){this.Na.ja.jumpthruEnabled=!!h};r.e=new h})();function Jc(h){this.b=h}
(function(){function h(){}var r=Jc.prototype;r.W=function(h){this.behavior=h;this.b=h.b};r.W.prototype.D=function(){};r.S=function(h,p){this.type=h;this.behavior=h.behavior;this.Na=p;this.b=h.b};var p=r.S.prototype;p.D=function(){this.Na.ja.solidEnabled=0!==this.A[0]};p.mb=function(){};r.c=new function(){};h.prototype.xl=function(h){this.Na.ja.solidEnabled=!!h};r.e=new h})();
function rc(){return[Y,X,wc,tc,uc,Ac,sc,vc,xc,Bc,V,Z,yc,zc,Jc,Ic,Cc,T.prototype.c.to,tc.prototype.e.$g,tc.prototype.e.Ot,sc.prototype.e.CallFunction,T.prototype.e.ku,T.prototype.e.cu,V.prototype.e.Xt,yc.prototype.c.Mi,yc.prototype.e.iu,T.prototype.g.Oy,T.prototype.c.ws,uc.prototype.e.Nt,uc.prototype.e.Play,V.prototype.e.Yi,T.prototype.e.As,yc.prototype.e.Yi,yc.prototype.e.Zi,yc.prototype.e.Xi,sc.prototype.c.Ui,yc.prototype.e.Yg,T.prototype.c.Ds,sc.prototype.g.Ft,T.prototype.c.qs,wc.prototype.g.Zs,
tc.prototype.g.bh,T.prototype.c.Cs,T.prototype.c.ho,V.prototype.c.Mi,T.prototype.e.vu,V.prototype.e.Yg,V.prototype.e.Pf,wc.prototype.g.Hs,Cc.prototype.e.xl,Cc.prototype.e.hu,V.prototype.g.zs,V.prototype.e.jl,T.prototype.g.Yo,uc.prototype.e.du,uc.prototype.e.Fo,Y.prototype.e.Yg,V.prototype.e.ah,Y.prototype.e.Yi,uc.prototype.c.Xs,Y.prototype.g.Zn,Y.prototype.g.ao,Y.prototype.g.$n,Y.prototype.g.Yn,uc.prototype.e.pu,T.prototype.e.Is,uc.prototype.e.Lt,sc.prototype.c.ts,uc.prototype.e.eu,T.prototype.g["float"],
T.prototype.g["int"],Y.prototype.e.ah,T.prototype.c.Qs,yc.prototype.e.$g,yc.prototype.e.yl,T.prototype.c.Gs,V.prototype.g.aj,V.prototype.g.Al,V.prototype.e.ul,tc.prototype.c.Ni,V.prototype.e.ft,T.prototype.g.floor,T.prototype.g.random,V.prototype.e.qu,T.prototype.g.cos,T.prototype.g.De,V.prototype.c.Ni,yc.prototype.e.wl,V.prototype.e.ou,V.prototype.e.yl,V.prototype.e.$i,V.prototype.e.Zi,V.prototype.g.bh,V.prototype.e.Do,V.prototype.g.Opacity,V.prototype.c.eo,V.prototype.c.mo,yc.prototype.e.ul,tc.prototype.c.us,
T.prototype.c.Fs,T.prototype.g.min,T.prototype.g.ux,tc.prototype.g.ms,tc.prototype.c.xs,T.prototype.e.ks,T.prototype.g.Ax,tc.prototype.e.Bs,tc.prototype.g.ns,T.prototype.c.Gt,V.prototype.e.Eo,Y.prototype.e.Pf,Y.prototype.e.$i,Y.prototype.e.Zi,Y.prototype.e.ul,Cc.prototype.e.Wt,Y.prototype.e.dt,Y.prototype.g.bh,Y.prototype.e.Ho,T.prototype.g.sin,Y.prototype.g.aj,Y.prototype.g.Al,Y.prototype.c.ml,Y.prototype.c.Mi,T.prototype.c.Ht,V.prototype.e.Co,V.prototype.e.wl,V.prototype.g.ls,sc.prototype.e.gu,
V.prototype.c.Vs,V.prototype.c.kl,Y.prototype.c.fo,Cc.prototype.g.yb,V.prototype.g.Yn,sc.prototype.g.bo,Cc.prototype.g.xb,Cc.prototype.c.ol,V.prototype.c.ml,T.prototype.g.abs,T.prototype.e.su,Cc.prototype.c.vs,Cc.prototype.e.ru,Cc.prototype.c.pl,Y.prototype.e.Xi,T.prototype.g.Rx,Y.prototype.c.Ni,T.prototype.g.ox,T.prototype.g.nx,Y.prototype.g.Oi,Y.prototype.e.$g,Y.prototype.g.Go,Y.prototype.c.Bo,Y.prototype.e.zl,T.prototype.c.kl,T.prototype.g.m,Y.prototype.c.ko,zc.prototype.e.Ho,zc.prototype.e.Yi,
V.prototype.c.fo,V.prototype.g.jo,V.prototype.e.Xi,V.prototype.g.io,V.prototype.e.zl,zc.prototype.e.ah,V.prototype.c.ss,V.prototype.c.ko,zc.prototype.c.lo,zc.prototype.e.jl,zc.prototype.c.Mi,V.prototype.g.Oi,zc.prototype.e.Do,zc.prototype.c.eo,zc.prototype.e.Xi,zc.prototype.e.Pf,zc.prototype.e.$i,zc.prototype.e.Co,zc.prototype.e.Zi,zc.prototype.g.Opacity,V.prototype.g.$n,V.prototype.g.Zn,V.prototype.c.Us,V.prototype.g.ao,T.prototype.c.It,zc.prototype.e.fu,zc.prototype.e.$g,V.prototype.c.Ms,V.prototype.e.Yt,
V.prototype.g.Ks,V.prototype.g.Ls,V.prototype.c.lo,V.prototype.g.bt,T.prototype.g.time,Y.prototype.c.Jd,Y.prototype.e.au,Y.prototype.e.wl,V.prototype.c.Bo,V.prototype.g.Go,V.prototype.g.Kt,Cc.prototype.c.Ts,V.prototype.e.et,zc.prototype.e.Yg,V.prototype.e.mu,Cc.prototype.e.hs,zc.prototype.e.Eo,zc.prototype.g.Oi,zc.prototype.g.bh,T.prototype.g.ceil,zc.prototype.g.aj,T.prototype.g.Vy,T.prototype.g.Px,T.prototype.g.Ox,T.prototype.e.Tt,T.prototype.e.Ut,T.prototype.e.Vt,T.prototype.c.so,T.prototype.c.Ws,
Bc.prototype.c.rs,Bc.prototype.c.Os,xc.prototype.c.Rs,T.prototype.c.Ss,Z.prototype.c.tl,vc.prototype.e.St,Z.prototype.g.es,Z.prototype.g.uu,Z.prototype.g.gs,T.prototype.g.Nu,T.prototype.g.Ou,T.prototype.c.Jt,Z.prototype.c.sl,Z.prototype.c.rl,wc.prototype.e.co,wc.prototype.e.js,T.prototype.g.Ky,T.prototype.g.Jy,T.prototype.g.left,T.prototype.g.yx,T.prototype.c.wu,T.prototype.c.Qt,wc.prototype.c.Js,T.prototype.e.ju,yc.prototype.c.Jd,yc.prototype.e.$t,yc.prototype.e.jl,T.prototype.g.qx,yc.prototype.e.zl,
yc.prototype.c.ml,yc.prototype.c.po,yc.prototype.e.Pf,yc.prototype.e.$i,V.prototype.c.Jd,tc.prototype.c.nl,tc.prototype.e.lu,wc.prototype.c.nl,X.prototype.e.Rt,X.prototype.c.Zg,X.prototype.g.$s,yc.prototype.e.ah,vc.prototype.c.Ao,vc.prototype.e.ys,vc.prototype.c.Wi,yc.prototype.e.bu,Ac.prototype.e.Yg,Ac.prototype.c.oo,Ac.prototype.g.Es,vc.prototype.g.Pt,tc.prototype.e.Pf,T.prototype.g.Uw,T.prototype.g.Xu,T.prototype.g.Rg,tc.prototype.e.Mt]};
