// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa,ba,ca,da,ea,ga,ha,ia,ja,ma,na,oa,pa,qa,ra,sa,ua,va,wa,xa,Aa,z,Ba,Ca,Da,Ea,Fa,L,Ga,Ha,Ia,Ja,Ka,Na,Oa,Pa,Qa,Ra,Sa,Ta,Ua,Va,Wa,Xa,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,sb,tb,ub,vb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Fb,Gb,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={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(d){return d.__proto__}:function(d){return d.constructor.prototype});
(function(){function d(a,c,f,b){this.set(a,c,f,b)}function k(){this.yb=this.xb=this.Ab=this.zb=this.Pb=this.Ob=this.eb=this.cb=0}function l(a,c,f,b){a<c?f<b?(D=a<f?a:f,G=c>b?c:b):(D=a<b?a:b,G=c>f?c:f):f<b?(D=c<f?c:f,G=a>b?a:b):(D=c<b?c:b,G=a>f?a:f)}function n(){this.items=this.Pd=null;this.pi=0;v&&(this.Pd=new Set);this.yh=[];this.Qe=!0}function t(a){B[W++]=a}function u(){this.aa=this.Bl=this.y=this.hm=0}function b(a){this.qb=[];this.Jj=this.Lj=this.Mj=this.Kj=0;this.kj(a)}function a(a,c){this.lm=
a;this.km=c;this.cells={}}function p(a,c){this.lm=a;this.km=c;this.cells={}}function e(a,c,f){var b;return O.length?(b=O.pop(),b.Rm=a,b.x=c,b.y=f,b):new aa(a,c,f)}function c(a,c,f){this.Rm=a;this.x=c;this.y=f;this.ub=new ba}function f(a,c,f){var b;return x.length?(b=x.pop(),b.Rm=a,b.x=c,b.y=f,b):new ca(a,c,f)}function h(a,c,f){this.Rm=a;this.x=c;this.y=f;this.ub=[];this.Ug=!0;this.Md=new ba;this.Fh=!1}function g(a,c){return a.zd-c.zd}da=function(a){window.console&&window.console.log&&window.console.log(a)};
ea=function(a){window.console&&window.console.error&&window.console.error(a)};ga=function(a){return"undefined"===typeof a};ha=function(a){return"number"===typeof a};ia=function(a){return"string"===typeof a};ja=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};oa=function(a,c){return a<c?a:c};pa=Math.PI;qa=function(a){return 0<=a?a|0:(a|0)-1};ra=function(a){var c=a|0;return c===a?c:c+1};sa=function(a,c,f,b,e,p,m,A){var w,
h,g,q;a<f?(h=a,w=f):(h=f,w=a);e<m?(q=e,g=m):(q=m,g=e);if(w<q||h>g)return!1;c<b?(h=c,w=b):(h=b,w=c);p<A?(q=p,g=A):(q=A,g=p);if(w<q||h>g)return!1;w=e-a+m-f;h=p-c+A-b;a=f-a;c=b-c;e=m-e;p=A-p;A=na(c*e-p*a);return na(e*h-p*w)>A?!1:na(a*h-c*w)<=A};d.prototype.set=function(a,c,f,b){this.left=a;this.top=c;this.right=f;this.bottom=b};d.prototype.Cg=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};d.prototype.width=function(){return this.right-this.left};d.prototype.height=
function(){return this.bottom-this.top};d.prototype.offset=function(a,c){this.left+=a;this.top+=c;this.right+=a;this.bottom+=c;return this};d.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)};d.prototype.kx=function(a){return!(a.right<this.left||a.bottom<this.top||a.left>this.right||a.top>this.bottom)};d.prototype.lx=function(a,c,f){return!(a.right+c<this.left||a.bottom+
f<this.top||a.left+c>this.right||a.top+f>this.bottom)};d.prototype.Bb=function(a,c){return a>=this.left&&a<=this.right&&c>=this.top&&c<=this.bottom};d.prototype.Ph=function(a){return this.left===a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};ua=d;k.prototype.rh=function(a){this.cb=a.left;this.eb=a.top;this.Ob=a.right;this.Pb=a.top;this.zb=a.right;this.Ab=a.bottom;this.xb=a.left;this.yb=a.bottom};k.prototype.ks=function(a,c){if(0===c)this.rh(a);else{var f=Math.sin(c),b=Math.cos(c),
e=a.left*f,p=a.top*f,h=a.right*f,f=a.bottom*f,A=a.left*b,w=a.top*b,m=a.right*b,b=a.bottom*b;this.cb=A-p;this.eb=w+e;this.Ob=m-p;this.Pb=w+h;this.zb=m-f;this.Ab=b+h;this.xb=A-f;this.yb=b+e}};k.prototype.offset=function(a,c){this.cb+=a;this.eb+=c;this.Ob+=a;this.Pb+=c;this.zb+=a;this.Ab+=c;this.xb+=a;this.yb+=c;return this};var D=0,G=0;k.prototype.Ip=function(a){l(this.cb,this.Ob,this.zb,this.xb);a.left=D;a.right=G;l(this.eb,this.Pb,this.Ab,this.yb);a.top=D;a.bottom=G};k.prototype.Bb=function(a,c){var f=
this.cb,b=this.eb,e=this.Ob-f,p=this.Pb-b,h=this.zb-f,A=this.Ab-b,w=a-f,m=c-b,g=e*e+p*p,q=e*h+p*A,p=e*w+p*m,d=h*h+A*A,r=h*w+A*m,D=1/(g*d-q*q),e=(d*p-q*r)*D,g=(g*r-q*p)*D;if(0<=e&&0<g&&1>e+g)return!0;e=this.xb-f;p=this.yb-b;g=e*e+p*p;q=e*h+p*A;p=e*w+p*m;D=1/(g*d-q*q);e=(d*p-q*r)*D;g=(g*r-q*p)*D;return 0<=e&&0<g&&1>e+g};k.prototype.Oe=function(a,c){if(c)switch(a){case 0:return this.cb;case 1:return this.Ob;case 2:return this.zb;case 3:return this.xb;case 4:return this.cb;default:return this.cb}else switch(a){case 0:return this.eb;
case 1:return this.Pb;case 2:return this.Ab;case 3:return this.yb;case 4:return this.eb;default:return this.eb}};k.prototype.kr=function(){return(this.cb+this.Ob+this.zb+this.xb)/4};k.prototype.lr=function(){return(this.eb+this.Pb+this.Ab+this.yb)/4};k.prototype.yq=function(a){var c=a.kr(),f=a.lr();if(this.Bb(c,f))return!0;c=this.kr();f=this.lr();if(a.Bb(c,f))return!0;var b,e,p,h,A,w,m,g;for(m=0;4>m;m++)for(g=0;4>g;g++)if(c=this.Oe(m,!0),f=this.Oe(m,!1),b=this.Oe(m+1,!0),e=this.Oe(m+1,!1),p=a.Oe(g,
!0),h=a.Oe(g,!1),A=a.Oe(g+1,!0),w=a.Oe(g+1,!1),sa(c,f,b,e,p,h,A,w))return!0;return!1};va=k;wa=function(a,c){for(var f in c)c.hasOwnProperty(f)&&(a[f]=c[f]);return a};xa=function(a,c){var f,b;c=qa(c);if(!(0>c||c>=a.length)){f=c;for(b=a.length-1;f<b;f++)a[f]=a[f+1];Aa(a,b)}};Aa=function(a,c){a.length=c};z=function(a){Aa(a,0)};Ba=function(a,c){z(a);var f,b;f=0;for(b=c.length;f<b;++f)a[f]=c[f]};Ca=function(a,c){a.push.apply(a,c)};Da=function(a,c){var f,b;f=0;for(b=a.length;f<b;++f)if(a[f]===c)return f;
return-1};Ea=function(a,c){var f=Da(a,c);-1!==f&&xa(a,f)};Fa=function(a,c,f){return a<c?c:a>f?f:a};L=function(a){return a/(180/pa)};Ga=function(a){return 180/pa*a};Ha=function(a){a%=360;0>a&&(a+=360);return a};Ia=function(a){a%=2*pa;0>a&&(a+=2*pa);return a};Ja=function(a){return Ha(Ga(a))};Ka=function(a){return Ia(L(a))};Na=function(a,c,f,b){return Math.atan2(b-c,f-a)};Oa=function(a,c){if(a===c)return 0;var f=Math.sin(a),b=Math.cos(a),e=Math.sin(c),p=Math.cos(c),f=f*e+b*p;return 1<=f?0:-1>=f?pa:Math.acos(f)};
Pa=function(a,c,f){var b=Math.sin(a),e=Math.cos(a),p=Math.sin(c),m=Math.cos(c);return Math.acos(b*p+e*m)>f?0<e*p-b*m?Ia(a+f):Ia(a-f):Ia(c)};Qa=function(a,c){var f=Math.sin(a),b=Math.cos(a),e=Math.sin(c),p=Math.cos(c);return 0>=b*e-f*p};Ra=function(a,c,f,b,e,p){if(0===f)return p?a:c;var m=Math.sin(f);f=Math.cos(f);a-=b;c-=e;var A=a*m;a=a*f-c*m;c=c*f+A;return p?a+b:c+e};Sa=function(a,c,f,b){a=f-a;c=b-c;return Math.sqrt(a*a+c*c)};Ta=function(a,c){return!a!==!c};Ua=function(a){for(var c in a)if(a.hasOwnProperty(c))return!0;
return!1};Va=function(a){for(var c in a)a.hasOwnProperty(c)&&delete a[c]};var r=+new Date;Wa=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()-r};var m=!1,q=m=!1,R=!1;"undefined"!==typeof window&&(m=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),
m=!m&&/safari/i.test(navigator.userAgent),q=/(iphone|ipod|ipad)/i.test(navigator.userAgent),R=window.c2ejecta);var v=!m&&!R&&!q&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;n.prototype.contains=function(a){return this.ie()?!1:v?this.Pd.has(a):this.items&&this.items.hasOwnProperty(a)};n.prototype.add=function(a){if(v)this.Pd.has(a)||(this.Pd.add(a),this.Qe=!1);else{var c=a.toString(),f=this.items;f?f.hasOwnProperty(c)||(f[c]=a,this.pi++,this.Qe=!1):(this.items={},this.items[c]=
a,this.pi=1,this.Qe=!1)}};n.prototype.remove=function(a){if(!this.ie())if(v)this.Pd.has(a)&&(this.Pd["delete"](a),this.Qe=!1);else if(this.items){a=a.toString();var c=this.items;c.hasOwnProperty(a)&&(delete c[a],this.pi--,this.Qe=!1)}};n.prototype.clear=function(){this.ie()||(v?this.Pd.clear():(this.items=null,this.pi=0),z(this.yh),this.Qe=!0)};n.prototype.ie=function(){return 0===this.count()};n.prototype.count=function(){return v?this.Pd.size:this.pi};var B=null,W=0;n.prototype.Ny=function(){if(!this.Qe){if(v)z(this.yh),
B=this.yh,W=0,this.Pd.forEach(t),B=null,W=0;else{var a=this.yh;z(a);var c,f=0,b=this.items;if(b)for(c in b)b.hasOwnProperty(c)&&(a[f++]=b[c])}this.Qe=!0}};n.prototype.dd=function(){this.Ny();return this.yh};ba=n;new ba;Xa=function(a,c){v?cb(a,c.Pd):db(a,c.dd())};cb=function(a,c){var f,b,e,p;b=f=0;for(e=a.length;f<e;++f)p=a[f],c.has(p)||(a[b++]=p);Aa(a,b)};db=function(a,c){var f,b,p,e;b=f=0;for(p=a.length;f<p;++f)e=a[f],-1===Da(c,e)&&(a[b++]=e);Aa(a,b)};u.prototype.add=function(a){this.y=a-this.hm;
this.Bl=this.aa+this.y;this.hm=this.Bl-this.aa-this.y;this.aa=this.Bl};u.prototype.reset=function(){this.aa=this.Bl=this.y=this.hm=0};eb=u;fb=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};b.prototype.kj=function(a){this.Tr=a;this.td=a.length/2;this.qb.length=a.length;this.Oj=this.Pj=-1;this.Lp=0};b.prototype.Rg=function(){return!this.Tr.length};b.prototype.wa=function(){for(var a=this.qb,c=a[0],f=c,b=a[1],e=b,p,m,A=1,w=this.td;A<w;++A)m=2*A,p=a[m],m=a[m+1],p<c&&(c=p),p>f&&(f=p),
m<b&&(b=m),m>e&&(e=m);this.Kj=c;this.Lj=f;this.Mj=b;this.Jj=e};b.prototype.rh=function(a,c,f){this.qb.length=8;this.td=4;var b=this.qb;b[0]=a.left-c;b[1]=a.top-f;b[2]=a.right-c;b[3]=a.top-f;b[4]=a.right-c;b[5]=a.bottom-f;b[6]=a.left-c;b[7]=a.bottom-f;this.Pj=a.right-a.left;this.Oj=a.bottom-a.top;this.wa()};b.prototype.qh=function(a,c,f,b,p){this.qb.length=8;this.td=4;var e=this.qb;e[0]=a.cb-c;e[1]=a.eb-f;e[2]=a.Ob-c;e[3]=a.Pb-f;e[4]=a.zb-c;e[5]=a.Ab-f;e[6]=a.xb-c;e[7]=a.yb-f;this.Pj=b;this.Oj=p;this.wa()};
b.prototype.hs=function(a){this.td=a.td;Ba(this.qb,a.qb);this.Kj=a.Kj;this.Mj-a.Mj;this.Lj=a.Lj;this.Jj=a.Jj};b.prototype.Ag=function(a,c,f){if(this.Pj!==a||this.Oj!==c||this.Lp!==f){this.Pj=a;this.Oj=c;this.Lp=f;var b,e,p,m,A,w=0,g=1,h=this.Tr,q=this.qb;0!==f&&(w=Math.sin(f),g=Math.cos(f));f=0;for(p=this.td;f<p;f++)b=2*f,e=b+1,m=h[b]*a,A=h[e]*c,q[b]=m*g-A*w,q[e]=A*g+m*w;this.wa()}};b.prototype.Bb=function(a,c){var f=this.qb;if(a===f[0]&&c===f[1])return!0;var b,e,p,m=this.td,A=this.Kj-110,w=this.Mj-
101,g=this.Lj+131,h=this.Jj+120,q,d,r=0,D=0;for(b=0;b<m;b++)e=2*b,p=(b+1)%m*2,q=f[e],e=f[e+1],d=f[p],p=f[p+1],sa(A,w,a,c,q,e,d,p)&&r++,sa(g,h,a,c,q,e,d,p)&&D++;return 1===r%2||1===D%2};b.prototype.di=function(a,c,f){var b=a.qb,e=this.qb;if(this.Bb(b[0]+c,b[1]+f)||a.Bb(e[0]-c,e[1]-f))return!0;var p,m,A,w,g,h,q,d,r,D,v,k;p=0;for(w=this.td;p<w;p++)for(m=2*p,A=(p+1)%w*2,d=e[m],m=e[m+1],r=e[A],D=e[A+1],A=0,q=a.td;A<q;A++)if(g=2*A,h=(A+1)%q*2,v=b[g]+c,g=b[g+1]+f,k=b[h]+c,h=b[h+1]+f,sa(d,m,r,D,v,g,k,h))return!0;
return!1};gb=b;a.prototype.Xe=function(a,c,f){var b;b=this.cells[a];return b?(b=b[c])?b:f?(b=e(this,a,c),this.cells[a][c]=b):null:f?(b=e(this,a,c),this.cells[a]={},this.cells[a][c]=b):null};a.prototype.cc=function(a){return qa(a/this.lm)};a.prototype.ec=function(a){return qa(a/this.km)};a.prototype.update=function(a,c,f){var b,e,p,m,A;if(c)for(b=c.left,e=c.right;b<=e;++b)for(p=c.top,m=c.bottom;p<=m;++p)if(!f||!f.Bb(b,p))if(A=this.Xe(b,p,!1))A.remove(a),A.ie()&&(A.ub.clear(),1E3>O.length&&O.push(A),
this.cells[b][p]=null);if(f)for(b=f.left,e=f.right;b<=e;++b)for(p=f.top,m=f.bottom;p<=m;++p)c&&c.Bb(b,p)||this.Xe(b,p,!0).Zm(a)};a.prototype.kl=function(a,c){var f,b,e,p,m,A;f=this.cc(a.left);e=this.ec(a.top);b=this.cc(a.right);for(m=this.ec(a.bottom);f<=b;++f)for(p=e;p<=m;++p)(A=this.Xe(f,p,!1))&&A.dump(c)};hb=a;p.prototype.Xe=function(a,c,b){var p;p=this.cells[a];return p?(p=p[c])?p:b?(p=f(this,a,c),this.cells[a][c]=p):null:b?(p=f(this,a,c),this.cells[a]={},this.cells[a][c]=p):null};p.prototype.cc=
function(a){return qa(a/this.lm)};p.prototype.ec=function(a){return qa(a/this.km)};p.prototype.update=function(a,c,f){var b,p,e,m,A;if(c)for(b=c.left,p=c.right;b<=p;++b)for(e=c.top,m=c.bottom;e<=m;++e)if(!f||!f.Bb(b,e))if(A=this.Xe(b,e,!1))A.remove(a),A.ie()&&(A.reset(),1E3>x.length&&x.push(A),this.cells[b][e]=null);if(f)for(b=f.left,p=f.right;b<=p;++b)for(e=f.top,m=f.bottom;e<=m;++e)c&&c.Bb(b,e)||this.Xe(b,e,!0).Zm(a)};p.prototype.kl=function(a,c,f,b,p){var e,m;a=this.cc(a);c=this.ec(c);f=this.cc(f);
for(e=this.ec(b);a<=f;++a)for(b=c;b<=e;++b)(m=this.Xe(a,b,!1))&&m.dump(p)};p.prototype.Bx=function(a){var c,f,b,p,e;c=a.left;b=a.top;f=a.right;for(p=a.bottom;c<=f;++c)for(a=b;a<=p;++a)if(e=this.Xe(c,a,!1))e.Ug=!1};ib=p;var O=[];c.prototype.ie=function(){return this.ub.ie()};c.prototype.Zm=function(a){this.ub.add(a)};c.prototype.remove=function(a){this.ub.remove(a)};c.prototype.dump=function(a){Ca(a,this.ub.dd())};aa=c;var x=[];h.prototype.ie=function(){if(!this.ub.length)return!0;if(this.ub.length>
this.Md.count())return!1;this.Dm();return!0};h.prototype.Zm=function(a){this.Md.contains(a)?(this.Md.remove(a),this.Md.ie()&&(this.Fh=!1)):this.ub.length?(this.ub[this.ub.length-1].Uc()>a.Uc()&&(this.Ug=!1),this.ub.push(a)):(this.ub.push(a),this.Ug=!0)};h.prototype.remove=function(a){this.Md.add(a);this.Fh=!0;30<=this.Md.count()&&this.Dm()};h.prototype.Dm=function(){this.Fh&&(this.Md.count()===this.ub.length?this.reset():(Xa(this.ub,this.Md),this.Md.clear(),this.Fh=!1))};h.prototype.Nv=function(){this.Ug||
(this.ub.sort(g),this.Ug=!0)};h.prototype.reset=function(){z(this.ub);this.Ug=!0;this.Md.clear();this.Fh=!1};h.prototype.dump=function(a){this.Dm();this.Nv();this.ub.length&&a.push(this.ub)};ca=h;var y="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":y[a-1]};kb=function(a,c,f){if(f)switch(a.Nb=f.ONE,a.Eb=f.ONE_MINUS_SRC_ALPHA,c){case 1:a.Nb=f.ONE;a.Eb=f.ONE;break;case 3:a.Nb=
f.ONE;a.Eb=f.ZERO;break;case 4:a.Nb=f.ONE_MINUS_DST_ALPHA;a.Eb=f.ONE;break;case 5:a.Nb=f.DST_ALPHA;a.Eb=f.ZERO;break;case 6:a.Nb=f.ZERO;a.Eb=f.SRC_ALPHA;break;case 7:a.Nb=f.ONE_MINUS_DST_ALPHA;a.Eb=f.ZERO;break;case 8:a.Nb=f.ZERO;a.Eb=f.ONE_MINUS_SRC_ALPHA;break;case 9:a.Nb=f.DST_ALPHA;a.Eb=f.ONE_MINUS_SRC_ALPHA;break;case 10:a.Nb=f.ONE_MINUS_DST_ALPHA,a.Eb=f.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()};nb=function(a){a=a.target;return!a||a===document||a===window||document&&document.body&&a===document.body||mb(a.tagName,"canvas")?!0:!1}})();var hc="undefined"!==typeof Float32Array?Float32Array:Array;function ic(d){var k=new hc(3);d&&(k[0]=d[0],k[1]=d[1],k[2]=d[2]);return k}
function jc(d){var k=new hc(16);d&&(k[0]=d[0],k[1]=d[1],k[2]=d[2],k[3]=d[3],k[4]=d[4],k[5]=d[5],k[6]=d[6],k[7]=d[7],k[8]=d[8],k[9]=d[9],k[10]=d[10],k[11]=d[11],k[12]=d[12],k[13]=d[13],k[14]=d[14],k[15]=d[15]);return k}function kc(d,k){k[0]=d[0];k[1]=d[1];k[2]=d[2];k[3]=d[3];k[4]=d[4];k[5]=d[5];k[6]=d[6];k[7]=d[7];k[8]=d[8];k[9]=d[9];k[10]=d[10];k[11]=d[11];k[12]=d[12];k[13]=d[13];k[14]=d[14];k[15]=d[15]}
function lc(d,k){var l=k[0],n=k[1];k=k[2];d[0]*=l;d[1]*=l;d[2]*=l;d[3]*=l;d[4]*=n;d[5]*=n;d[6]*=n;d[7]*=n;d[8]*=k;d[9]*=k;d[10]*=k;d[11]*=k}
function mc(d,k,l,n){n||(n=jc());var t,u,b,a,p,e,c,f,h=d[0],g=d[1];d=d[2];u=l[0];b=l[1];t=l[2];l=k[1];e=k[2];h===k[0]&&g===l&&d===e?(d=n,d[0]=1,d[1]=0,d[2]=0,d[3]=0,d[4]=0,d[5]=1,d[6]=0,d[7]=0,d[8]=0,d[9]=0,d[10]=1,d[11]=0,d[12]=0,d[13]=0,d[14]=0,d[15]=1):(l=h-k[0],e=g-k[1],c=d-k[2],f=1/Math.sqrt(l*l+e*e+c*c),l*=f,e*=f,c*=f,k=b*c-t*e,t=t*l-u*c,u=u*e-b*l,(f=Math.sqrt(k*k+t*t+u*u))?(f=1/f,k*=f,t*=f,u*=f):u=t=k=0,b=e*u-c*t,a=c*k-l*u,p=l*t-e*k,(f=Math.sqrt(b*b+a*a+p*p))?(f=1/f,b*=f,a*=f,p*=f):p=a=b=0,
n[0]=k,n[1]=b,n[2]=l,n[3]=0,n[4]=t,n[5]=a,n[6]=e,n[7]=0,n[8]=u,n[9]=p,n[10]=c,n[11]=0,n[12]=-(k*h+t*g+u*d),n[13]=-(b*h+a*g+p*d),n[14]=-(l*h+e*g+c*d),n[15]=1)}
(function(){function d(a,b,e){this.Id=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.Ja=!!e;this.Bk=this.hi=!1;this.qm=0;this.Ql=1;this.Wo=1E3;this.Vy=(this.Wo-this.Ql)/32768;this.im=ic([0,0,100]);this.Tq=ic([0,0,0]);this.Js=ic([0,1,0]);this.Aj=ic([1,1,1]);this.Yp=!0;this.Rk=jc();this.Mc=jc();this.mn=jc();this.pm=jc();this.D=a;this.version=0===this.D.getParameter(this.D.VERSION).indexOf("WebGL 2")?2:1;this.uq()}function k(a,b,e){this.D=a;this.lj=
b;this.name=e;this.Xc=a.getAttribLocation(b,"aPos");this.ef=a.getAttribLocation(b,"aTex");this.Rq=a.getUniformLocation(b,"matP");this.Nk=a.getUniformLocation(b,"matMV");this.eh=a.getUniformLocation(b,"opacity");this.vn=a.getUniformLocation(b,"colorFill");this.Sq=a.getUniformLocation(b,"samplerFront");this.Hi=a.getUniformLocation(b,"samplerBack");this.ag=a.getUniformLocation(b,"destStart");this.$f=a.getUniformLocation(b,"destEnd");this.Ji=a.getUniformLocation(b,"seconds");this.xn=a.getUniformLocation(b,
"pixelWidth");this.wn=a.getUniformLocation(b,"pixelHeight");this.Gi=a.getUniformLocation(b,"layerScale");this.Fi=a.getUniformLocation(b,"layerAngle");this.Ki=a.getUniformLocation(b,"viewOrigin");this.Ii=a.getUniformLocation(b,"scrollPos");this.bx=!!(this.xn||this.wn||this.Ji||this.Hi||this.ag||this.$f||this.Gi||this.Fi||this.Ki||this.Ii);this.br=this.cr=-999;this.Qk=1;this.Xq=this.Wq=0;this.Zq=this.Vq=this.Uq=1;this.fr=this.er=this.dr=this.hr=this.gr=this.Yq=0;this.ln=[];this.$q=jc();this.eh&&a.uniform1f(this.eh,
1);this.vn&&a.uniform4f(this.vn,1,1,1,1);this.Sq&&a.uniform1i(this.Sq,0);this.Hi&&a.uniform1i(this.Hi,1);this.ag&&a.uniform2f(this.ag,0,0);this.$f&&a.uniform2f(this.$f,1,1);this.Gi&&a.uniform1f(this.Gi,1);this.Fi&&a.uniform1f(this.Fi,0);this.Ki&&a.uniform2f(this.Ki,0,0);this.Ii&&a.uniform2f(this.Ii,0,0);this.Ji&&a.uniform1f(this.Ji,0);this.Lf=!1}function l(a,b){return a[0]===b[0]&&a[1]===b[1]&&a[2]===b[2]&&a[3]===b[3]&&a[4]===b[4]&&a[5]===b[5]&&a[6]===b[6]&&a[7]===b[7]&&a[8]===b[8]&&a[9]===b[9]&&
a[10]===b[10]&&a[11]===b[11]&&a[12]===b[12]&&a[13]===b[13]&&a[14]===b[14]&&a[15]===b[15]}function n(a,b){this.type=a;this.B=b;this.D=b.D;this.Hd=this.$b=this.Er=0;this.Y=this.cd=null;this.ls=[]}var t=jc();d.prototype.uq=function(){var a=this.D,b;this.Mq=1;this.Xf=this.$e=null;this.Wj=1;a.clearColor(0,0,0,0);a.clear(a.COLOR_BUFFER_BIT);a.enable(a.BLEND);a.blendFunc(a.ONE,a.ONE_MINUS_SRC_ALPHA);a.disable(a.CULL_FACE);a.disable(a.STENCIL_TEST);a.disable(a.DITHER);this.Ja?(a.enable(a.DEPTH_TEST),a.depthFunc(a.LEQUAL)):
a.disable(a.DEPTH_TEST);this.Nq=a.ONE;this.Lq=a.ONE_MINUS_SRC_ALPHA;this.Ol=new Float32Array(8E3*(this.Ja?3:2));this.Cl=new Float32Array(16E3);this.Pr=new Float32Array(32E3);this.Tn=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.Tn);a.bufferData(a.ARRAY_BUFFER,this.Pr.byteLength,a.DYNAMIC_DRAW);this.yj=Array(4);this.sj=Array(4);for(b=0;4>b;b++)this.yj[b]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.yj[b]),a.bufferData(a.ARRAY_BUFFER,this.Ol.byteLength,a.DYNAMIC_DRAW),this.sj[b]=a.createBuffer(),
a.bindBuffer(a.ARRAY_BUFFER,this.sj[b]),a.bufferData(a.ARRAY_BUFFER,this.Cl.byteLength,a.DYNAMIC_DRAW);this.Xd=0;this.hx=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.hx);for(var e=new Uint16Array(12E3),c=b=0;12E3>b;)e[b++]=c,e[b++]=c+1,e[b++]=c+2,e[b++]=c,e[b++]=c+2,e[b++]=c+3,c+=4;a.bufferData(a.ELEMENT_ARRAY_BUFFER,e,a.STATIC_DRAW);this.Un=this.vh=this.De=0;this.Ta=[];b=this.Ja?"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}";e=this.Lh({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}"},b,"<default>");this.Ta.push(e);e=this.Lh({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.Ta.push(e);e=this.Lh({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},b,"<earlyz>");this.Ta.push(e);e=this.Lh({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"},
b,"<fill>");this.Ta.push(e);for(var f in nc)nc.hasOwnProperty(f)&&this.Ta.push(this.Lh(nc[f],b,f));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,null);this.Pe=[];this.Vd=0;this.Vb=!1;this.Rp=this.vi=-1;this.Dg=null;this.Bm=a.createFramebuffer();this.$j=this.ll=null;this.Gp=!1;this.Ja&&(this.$j=a.createRenderbuffer());this.of=ic([0,0,0]);this.ir=a.getParameter(a.ALIASED_POINT_SIZE_RANGE)[1];2048<this.ir&&(this.ir=2048);this.qc(0)};k.prototype.No=function(a){l(this.$q,a)||(kc(a,this.$q),this.D.uniformMatrix4fv(this.Nk,
!1,a))};d.prototype.Lh=function(a,b,e){var c=this.D,f=c.createShader(c.FRAGMENT_SHADER);c.shaderSource(f,a.src);c.compileShader(f);if(!c.getShaderParameter(f,c.COMPILE_STATUS))return c.deleteShader(f),null;var h=c.createShader(c.VERTEX_SHADER);c.shaderSource(h,b);c.compileShader(h);if(!c.getShaderParameter(h,c.COMPILE_STATUS))return c.deleteShader(f),c.deleteShader(h),null;b=c.createProgram();c.attachShader(b,f);c.attachShader(b,h);c.linkProgram(b);if(!c.getProgramParameter(b,c.LINK_STATUS))return c.deleteShader(f),
c.deleteShader(h),c.deleteProgram(b),null;c.useProgram(b);c.deleteShader(f);c.deleteShader(h);e=new k(c,b,e);e.zm=a.zm||0;e.Am=a.Am||0;e.Qp=!!a.Qp;e.rd=!!a.rd;e.Ep=!!a.Ep;e.Z=a.Z||[];a=0;for(f=e.Z.length;a<f;a++)e.Z[a][1]=c.getUniformLocation(b,e.Z[a][0]),e.ln.push(0),c.uniform1f(e.Z[a][1],0);return e};d.prototype.Pm=function(a){var b,e;b=0;for(e=this.Ta.length;b<e;b++)if(this.Ta[b].name===a)return b;return-1};d.prototype.Sr=function(a,b,e){var c=this.Mc,f=this.Rk,h=[0,0,0,0,0,0,0,0];h[0]=c[0]*a+
c[4]*b+c[12];h[1]=c[1]*a+c[5]*b+c[13];h[2]=c[2]*a+c[6]*b+c[14];h[3]=c[3]*a+c[7]*b+c[15];h[4]=f[0]*h[0]+f[4]*h[1]+f[8]*h[2]+f[12]*h[3];h[5]=f[1]*h[0]+f[5]*h[1]+f[9]*h[2]+f[13]*h[3];h[6]=f[2]*h[0]+f[6]*h[1]+f[10]*h[2]+f[14]*h[3];h[7]=-h[2];0!==h[7]&&(h[7]=1/h[7],h[4]*=h[7],h[5]*=h[7],h[6]*=h[7],e[0]=(.5*h[4]+.5)*this.width,e[1]=(.5*h[5]+.5)*this.height)};d.prototype.kg=function(a,b,e){if(this.width!==a||this.height!==b||e){this.Ve();e=this.D;this.width=a;this.height=b;e.viewport(0,0,a,b);mc(this.im,
this.Tq,this.Js,this.Mc);if(this.Ja){var c=-a/2;a=a/2;var f=b/2;b=-b/2;var h=this.Ql,g=this.Wo,d=this.Rk;d||(d=jc());var k=a-c,r=b-f,m=g-h;d[0]=2/k;d[1]=0;d[2]=0;d[3]=0;d[4]=0;d[5]=2/r;d[6]=0;d[7]=0;d[8]=0;d[9]=0;d[10]=-2/m;d[11]=0;d[12]=-(c+a)/k;d[13]=-(b+f)/r;d[14]=-(g+h)/m;d[15]=1;this.Aj[0]=1;this.Aj[1]=1}else b=a/b,c=this.Ql,a=this.Wo,d=this.Rk,g=c*Math.tan(45*Math.PI/360),b*=g,f=-b,h=-g,d||(d=jc()),k=b-f,r=g-h,m=a-c,d[0]=2*c/k,d[1]=0,d[2]=0,d[3]=0,d[4]=0,d[5]=2*c/r,d[6]=0,d[7]=0,d[8]=(b+f)/
k,d[9]=(g+h)/r,d[10]=-(a+c)/m,d[11]=-1,d[12]=0,d[13]=0,d[14]=-(a*c*2)/m,d[15]=0,c=[0,0],a=[0,0],this.Sr(0,0,c),this.Sr(1,1,a),this.Aj[0]=1/(a[0]-c[0]),this.Aj[1]=-1/(a[1]-c[1]);c=0;for(a=this.Ta.length;c<a;c++)f=this.Ta[c],f.Lf=!1,f.Rq&&(e.useProgram(f.lj),e.uniformMatrix4fv(f.Rq,!1,this.Rk));e.useProgram(this.Ta[this.vi].lj);e.bindTexture(e.TEXTURE_2D,null);e.activeTexture(e.TEXTURE1);e.bindTexture(e.TEXTURE_2D,null);e.activeTexture(e.TEXTURE0);this.Xf=this.$e=null;this.$j&&(e.bindFramebuffer(e.FRAMEBUFFER,
this.Bm),e.bindRenderbuffer(e.RENDERBUFFER,this.$j),e.renderbufferStorage(e.RENDERBUFFER,e.DEPTH_COMPONENT16,this.width,this.height),this.Gp||(e.framebufferRenderbuffer(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.RENDERBUFFER,this.$j),this.Gp=!0),e.bindRenderbuffer(e.RENDERBUFFER,null),e.bindFramebuffer(e.FRAMEBUFFER,null),this.ll=null)}};d.prototype.$c=function(){mc(this.im,this.Tq,this.Js,this.Mc);lc(this.Mc,this.Aj)};d.prototype.translate=function(a,b){if(0!==a||0!==b){this.of[0]=a;this.of[1]=b;this.of[2]=
0;var e=this.Mc,c=this.of,f=c[0],h=c[1],c=c[2];e[12]=e[0]*f+e[4]*h+e[8]*c+e[12];e[13]=e[1]*f+e[5]*h+e[9]*c+e[13];e[14]=e[2]*f+e[6]*h+e[10]*c+e[14];e[15]=e[3]*f+e[7]*h+e[11]*c+e[15]}};d.prototype.scale=function(a,b){if(1!==a||1!==b)this.of[0]=a,this.of[1]=b,this.of[2]=1,lc(this.Mc,this.of)};d.prototype.nl=function(a){if(0!==a){var b=this.Mc,e,c=Math.sin(a);a=Math.cos(a);var f=b[0],h=b[1],g=b[2],d=b[3],k=b[4],r=b[5],m=b[6],q=b[7];e?b!==e&&(e[8]=b[8],e[9]=b[9],e[10]=b[10],e[11]=b[11],e[12]=b[12],e[13]=
b[13],e[14]=b[14],e[15]=b[15]):e=b;e[0]=f*a+k*c;e[1]=h*a+r*c;e[2]=g*a+m*c;e[3]=d*a+q*c;e[4]=f*-c+k*a;e[5]=h*-c+r*a;e[6]=g*-c+m*a;e[7]=d*-c+q*a}};d.prototype.Pc=function(){if(!l(this.mn,this.Mc)){var a=this.Ec();a.type=5;a.Y?kc(this.Mc,a.Y):a.Y=jc(this.Mc);kc(this.Mc,this.mn);this.Vb=!1}};d.prototype.sl=function(a){this.Ja&&(32760<a&&(a=32760),this.qm=this.im[2]-this.Ql-a*this.Vy)};n.prototype.xv=function(){var a=this.D,b=this.B;0!==this.$b?(a.depthMask(!0),a.colorMask(!1,!1,!1,!1),a.disable(a.BLEND),
a.bindFramebuffer(a.FRAMEBUFFER,b.Bm),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.clear(a.DEPTH_BUFFER_BIT),a.bindFramebuffer(a.FRAMEBUFFER,null),b.Bk=!0):(a.depthMask(!1),a.colorMask(!0,!0,!0,!0),a.enable(a.BLEND),b.Bk=!1)};n.prototype.Bv=function(){this.D.bindTexture(this.D.TEXTURE_2D,this.cd)};n.prototype.Cv=function(){var a=this.D;a.activeTexture(a.TEXTURE1);a.bindTexture(a.TEXTURE_2D,this.cd);a.activeTexture(a.TEXTURE0)};n.prototype.yv=function(){var a=this.Er,
b=this.B;b.Wj=a;b=b.Dg;b.eh&&b.Qk!==a&&(b.Qk=a,this.D.uniform1f(b.eh,a))};n.prototype.sv=function(){this.D.drawElements(this.D.TRIANGLES,this.Hd,this.D.UNSIGNED_SHORT,this.$b)};n.prototype.uv=function(){this.D.blendFunc(this.$b,this.Hd)};n.prototype.Dv=function(){var a,b,e,c=this.B.Ta,f=this.B.Rp;a=0;for(b=c.length;a<b;a++)e=c[a],a===f&&e.Nk?(e.No(this.Y),e.Lf=!0):e.Lf=!1;kc(this.Y,this.B.pm)};n.prototype.tv=function(){var a=this.D,b=this.B;this.cd?(b.Xf===this.cd&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,
null),b.Xf=null,a.activeTexture(a.TEXTURE0)),a.bindFramebuffer(a.FRAMEBUFFER,b.Bm),b.Bk||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,this.cd,0)):(b.Ja||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.bindFramebuffer(a.FRAMEBUFFER,null))};n.prototype.pv=function(){var a=this.D,b=this.$b;0===b?(a.clearColor(this.Y[0],this.Y[1],this.Y[2],this.Y[3]),a.clear(a.COLOR_BUFFER_BIT)):1===b?(a.enable(a.SCISSOR_TEST),a.scissor(this.Y[0],this.Y[1],this.Y[2],
this.Y[3]),a.clearColor(0,0,0,0),a.clear(a.COLOR_BUFFER_BIT),a.disable(a.SCISSOR_TEST)):a.clear(a.DEPTH_BUFFER_BIT)};n.prototype.wv=function(){var a=this.D;0!==this.$b?a.enable(a.DEPTH_TEST):a.disable(a.DEPTH_TEST)};n.prototype.rv=function(){var a=this.D,b=this.B;b.Ja&&a.disable(a.DEPTH_TEST);var e=b.Ta[1];a.useProgram(e.lj);!e.Lf&&e.Nk&&(e.No(b.pm),e.Lf=!0);a.enableVertexAttribArray(e.Xc);a.bindBuffer(a.ARRAY_BUFFER,b.Tn);a.vertexAttribPointer(e.Xc,4,a.FLOAT,!1,0,0);a.drawArrays(a.POINTS,this.$b/
4,this.Hd);e=b.Dg;a.useProgram(e.lj);0<=e.Xc&&(a.enableVertexAttribArray(e.Xc),a.bindBuffer(a.ARRAY_BUFFER,b.yj[b.Xd]),a.vertexAttribPointer(e.Xc,b.Ja?3:2,a.FLOAT,!1,0,0));0<=e.ef&&(a.enableVertexAttribArray(e.ef),a.bindBuffer(a.ARRAY_BUFFER,b.sj[b.Xd]),a.vertexAttribPointer(e.ef,2,a.FLOAT,!1,0,0));b.Ja&&a.enable(a.DEPTH_TEST)};n.prototype.zv=function(){var a=this.D,b=this.B,e=b.Ta[this.$b];b.Rp=this.$b;b.Dg=e;a.useProgram(e.lj);!e.Lf&&e.Nk&&(e.No(b.pm),e.Lf=!0);e.eh&&e.Qk!==b.Wj&&(e.Qk=b.Wj,a.uniform1f(e.eh,
b.Wj));0<=e.Xc&&(a.enableVertexAttribArray(e.Xc),a.bindBuffer(a.ARRAY_BUFFER,b.yj[b.Xd]),a.vertexAttribPointer(e.Xc,b.Ja?3:2,a.FLOAT,!1,0,0));0<=e.ef&&(a.enableVertexAttribArray(e.ef),a.bindBuffer(a.ARRAY_BUFFER,b.sj[b.Xd]),a.vertexAttribPointer(e.ef,2,a.FLOAT,!1,0,0))};n.prototype.vv=function(){var a=this.Y;this.D.uniform4f(this.B.Dg.vn,a[0],a[1],a[2],a[3])};n.prototype.Av=function(){var a,b,e=this.B.Dg,c=this.D;a=this.Y;e.Hi&&this.B.Xf!==this.cd&&(c.activeTexture(c.TEXTURE1),c.bindTexture(c.TEXTURE_2D,
this.cd),this.B.Xf=this.cd,c.activeTexture(c.TEXTURE0));var f=a[0];e.xn&&f!==e.cr&&(e.cr=f,c.uniform1f(e.xn,f));f=a[1];e.wn&&f!==e.br&&(e.br=f,c.uniform1f(e.wn,f));f=a[2];b=a[3];!e.ag||f===e.Wq&&b===e.Xq||(e.Wq=f,e.Xq=b,c.uniform2f(e.ag,f,b));f=a[4];b=a[5];!e.$f||f===e.Uq&&b===e.Vq||(e.Uq=f,e.Vq=b,c.uniform2f(e.$f,f,b));f=a[6];e.Gi&&f!==e.Zq&&(e.Zq=f,c.uniform1f(e.Gi,f));f=a[7];e.Fi&&f!==e.Yq&&(e.Yq=f,c.uniform1f(e.Fi,f));f=a[8];b=a[9];!e.Ki||f===e.gr&&b===e.hr||(e.gr=f,e.hr=b,c.uniform2f(e.Ki,f,
b));f=a[10];b=a[11];!e.Ii||f===e.dr&&b===e.er||(e.dr=f,e.er=b,c.uniform2f(e.Ii,f,b));f=a[12];e.Ji&&f!==e.fr&&(e.fr=f,c.uniform1f(e.Ji,f));if(e.Z.length)for(a=0,b=e.Z.length;a<b;a++)f=this.ls[a],f!==e.ln[a]&&(e.ln[a]=f,c.uniform1f(e.Z[a][1],f))};d.prototype.Ec=function(){this.Vd===this.Pe.length&&this.Pe.push(new n(0,this));return this.Pe[this.Vd++]};d.prototype.Ve=function(){if(0!==this.Vd&&!this.D.isContextLost()){var a=this.D;0<this.Un&&(a.bindBuffer(a.ARRAY_BUFFER,this.Tn),a.bufferSubData(a.ARRAY_BUFFER,
0,this.Pr.subarray(0,this.Un)),b&&0<=b.Xc&&"<point>"===b.name&&a.vertexAttribPointer(b.Xc,4,a.FLOAT,!1,0,0));if(0<this.De){var b=this.Dg;a.bindBuffer(a.ARRAY_BUFFER,this.yj[this.Xd]);a.bufferSubData(a.ARRAY_BUFFER,0,this.Ol.subarray(0,this.De));b&&0<=b.Xc&&"<point>"!==b.name&&a.vertexAttribPointer(b.Xc,this.Ja?3:2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.sj[this.Xd]);a.bufferSubData(a.ARRAY_BUFFER,0,this.Cl.subarray(0,this.vh));b&&0<=b.ef&&"<point>"!==b.name&&a.vertexAttribPointer(b.ef,2,
a.FLOAT,!1,0,0)}for(var e,a=0,b=this.Vd;a<b;a++)switch(e=this.Pe[a],e.type){case 1:e.sv();break;case 2:e.Bv();break;case 3:e.yv();break;case 4:e.uv();break;case 5:e.Dv();break;case 6:e.tv();break;case 7:e.pv();break;case 8:e.rv();break;case 9:e.zv();break;case 10:e.Av();break;case 11:e.Cv();break;case 12:e.vv();break;case 13:e.wv();break;case 14:e.xv()}this.Un=this.vh=this.De=this.Vd=0;this.Bk=this.Vb=!1;this.Xd++;4<=this.Xd&&(this.Xd=0)}};d.prototype.lf=function(a){if(a!==this.Mq&&!this.hi){var b=
this.Ec();b.type=3;this.Mq=b.Er=a;this.Vb=!1}};d.prototype.oc=function(a){if(a!==this.$e){var b=this.Ec();b.type=2;this.$e=b.cd=a;this.Vb=!1}};d.prototype.ve=function(a,b){if((a!==this.Nq||b!==this.Lq)&&!this.hi){var e=this.Ec();e.type=4;e.$b=a;e.Hd=b;this.Nq=a;this.Lq=b;this.Vb=!1}};d.prototype.Yr=function(){this.ve(this.D.ONE,this.D.ONE_MINUS_SRC_ALPHA)};d.prototype.mh=function(a,b,e,c,f,h,g,d){15992<=this.De&&this.Ve();var k=this.De,r=this.vh,m=this.Ol,q=this.Cl,t=this.qm;if(this.Vb)this.Pe[this.Vd-
1].Hd+=6;else{var v=this.Ec();v.type=1;v.$b=this.Ja?k:k/2*3;v.Hd=6;this.Vb=!0}this.Ja?(m[k++]=a,m[k++]=b,m[k++]=t,m[k++]=e,m[k++]=c,m[k++]=t,m[k++]=f,m[k++]=h,m[k++]=t,m[k++]=g,m[k++]=d,m[k++]=t):(m[k++]=a,m[k++]=b,m[k++]=e,m[k++]=c,m[k++]=f,m[k++]=h,m[k++]=g,m[k++]=d);q[r++]=0;q[r++]=0;q[r++]=1;q[r++]=0;q[r++]=1;q[r++]=1;q[r++]=0;q[r++]=1;this.De=k;this.vh=r};d.prototype.Nd=function(a,b,e,c,f,h,g,d,k){15992<=this.De&&this.Ve();var r=this.De,m=this.vh,q=this.Ol,t=this.Cl,v=this.qm;if(this.Vb)this.Pe[this.Vd-
1].Hd+=6;else{var B=this.Ec();B.type=1;B.$b=this.Ja?r:r/2*3;B.Hd=6;this.Vb=!0}var B=k.left,l=k.top,n=k.right;k=k.bottom;this.Ja?(q[r++]=a,q[r++]=b,q[r++]=v,q[r++]=e,q[r++]=c,q[r++]=v,q[r++]=f,q[r++]=h,q[r++]=v,q[r++]=g,q[r++]=d,q[r++]=v):(q[r++]=a,q[r++]=b,q[r++]=e,q[r++]=c,q[r++]=f,q[r++]=h,q[r++]=g,q[r++]=d);t[m++]=B;t[m++]=l;t[m++]=n;t[m++]=l;t[m++]=n;t[m++]=k;t[m++]=B;t[m++]=k;this.De=r;this.vh=m};d.prototype.qc=function(a){if(this.vi!==a){if(!this.Ta[a]){if(0===this.vi)return;a=0}var b=this.Ec();
b.type=9;this.vi=b.$b=a;this.Vb=!1}};d.prototype.$i=function(a){a=this.Ta[a];return!(!a.ag&&!a.$f)};d.prototype.Zn=function(a){a=this.Ta[a];return!!(a.ag||a.$f||a.Qp)};d.prototype.Yn=function(a){return this.Ta[a].rd};d.prototype.ay=function(a){a=this.Ta[a];return 0!==a.zm||0!==a.Am};d.prototype.Jw=function(a){return this.Ta[a].zm};d.prototype.Kw=function(a){return this.Ta[a].Am};d.prototype.Lw=function(a,b){return this.Ta[a].Z[b][2]};d.prototype.hl=function(a){return this.Ta[a].Ep};d.prototype.ph=
function(a,b,e,c,f,h,g,d,k,r,m,q,t,v,B){var l=this.Ta[this.vi],n,u;if(l.bx||B.length){n=this.Ec();n.type=10;n.Y?kc(this.Mc,n.Y):n.Y=jc();u=n.Y;u[0]=b;u[1]=e;u[2]=c;u[3]=f;u[4]=h;u[5]=g;u[6]=d;u[7]=k;u[8]=r;u[9]=m;u[10]=q;u[11]=t;u[12]=v;l.Hi?n.cd=a:n.cd=null;if(B.length)for(e=n.ls,e.length=B.length,a=0,b=B.length;a<b;a++)e[a]=B[a];this.Vb=!1}};d.prototype.clear=function(a,b,e,c){var f=this.Ec();f.type=7;f.$b=0;f.Y||(f.Y=jc());f.Y[0]=a;f.Y[1]=b;f.Y[2]=e;f.Y[3]=c;this.Vb=!1};d.prototype.clearRect=function(a,
b,e,c){if(!(0>e||0>c)){var f=this.Ec();f.type=7;f.$b=1;f.Y||(f.Y=jc());f.Y[0]=a;f.Y[1]=b;f.Y[2]=e;f.Y[3]=c;this.Vb=!1}};d.prototype.as=function(a){if(this.Ja&&(a=!!a,this.hi!==a)){var b=this.Ec();b.type=14;b.$b=a?1:0;this.Vb=!1;this.hi=a;this.ll=null;this.hi?this.qc(2):this.qc(0)}};d.prototype.$r=function(a){if(this.Ja){var b=this.Ec();b.type=13;b.$b=a?1:0;this.Vb=!1}};d.prototype.gq=function(){kc(this.mn,t);this.$c();this.Pc();var a=this.width/2,b=this.height/2;this.mh(-a,b,a,b,a,-b,-a,-b);kc(t,
this.Mc);this.Pc()};d.prototype.Zr=function(a,b,e){this.qc(3);var c=this.Ec();c.type=12;c.Y||(c.Y=jc());c.Y[0]=a;c.Y[1]=b;c.Y[2]=e;c.Y[3]=1;this.Vb=!1};d.prototype.Ay=function(){this.qc(0)};d.prototype.jy=function(){this.qc(2)};d.prototype.$x=function(){this.Ve();this.D.flush()};var u=[],b={};d.prototype.hv=function(){z(u);b={}};d.prototype.Lk=function(a,d,e,c){d=!!d;e=!!e;var f=a.src+","+d+","+e+(d?",undefined":""),h=null;if("undefined"!==typeof a.src&&b.hasOwnProperty(f))return h=b[f],h.Nj++,h;
this.Ve();var g=this.D,k=ja(a.width)&&ja(a.height),h=g.createTexture();g.bindTexture(g.TEXTURE_2D,h);g.pixelStorei(g.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var t=g.RGBA,r=g.RGBA,m=g.UNSIGNED_BYTE;if(c&&!this.Id)switch(c){case 1:r=t=g.RGB;break;case 2:m=g.UNSIGNED_SHORT_4_4_4_4;break;case 3:m=g.UNSIGNED_SHORT_5_5_5_1;break;case 4:r=t=g.RGB,m=g.UNSIGNED_SHORT_5_6_5}if(1===this.version&&!k&&d){c=document.createElement("canvas");c.width=ma(a.width);c.height=ma(a.height);var q=c.getContext("2d");"undefined"!==
typeof q.imageSmoothingEnabled?q.imageSmoothingEnabled=e:(q.webkitImageSmoothingEnabled=e,q.mozImageSmoothingEnabled=e,q.msImageSmoothingEnabled=e);q.drawImage(a,0,0,a.width,a.height,0,0,c.width,c.height);g.texImage2D(g.TEXTURE_2D,0,t,r,m,c)}else g.texImage2D(g.TEXTURE_2D,0,t,r,m,a);d?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_S,g.REPEAT),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,g.REPEAT)):(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_S,g.CLAMP_TO_EDGE),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,
g.CLAMP_TO_EDGE));e?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,g.LINEAR),(k||2<=this.version)&&this.Yp?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,g.LINEAR_MIPMAP_LINEAR),g.generateMipmap(g.TEXTURE_2D)):g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,g.LINEAR)):(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,g.NEAREST),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,g.NEAREST));g.bindTexture(g.TEXTURE_2D,null);this.$e=null;h.wf=a.width;h.vf=a.height;h.Nj=1;h.Kp=f;u.push(h);return b[f]=
h};d.prototype.wc=function(a,b,e,c,f){this.Ve();var h=this.D;this.Id&&(c=!1);var g=h.createTexture();h.bindTexture(h.TEXTURE_2D,g);h.texImage2D(h.TEXTURE_2D,0,h.RGBA,a,b,0,h.RGBA,c?h.UNSIGNED_SHORT_4_4_4_4:h.UNSIGNED_BYTE,null);f?(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_S,h.REPEAT),h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_T,h.REPEAT)):(h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_S,h.CLAMP_TO_EDGE),h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_T,h.CLAMP_TO_EDGE));h.texParameteri(h.TEXTURE_2D,
h.TEXTURE_MAG_FILTER,e?h.LINEAR:h.NEAREST);h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MIN_FILTER,e?h.LINEAR:h.NEAREST);h.bindTexture(h.TEXTURE_2D,null);this.$e=null;g.wf=a;g.vf=b;u.push(g);return g};d.prototype.Qo=function(a,b,e){this.Ve();var c=this.D;this.Id&&(e=!1);c.bindTexture(c.TEXTURE_2D,b);c.pixelStorei(c.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);try{c.texImage2D(c.TEXTURE_2D,0,c.RGBA,c.RGBA,e?c.UNSIGNED_SHORT_4_4_4_4:c.UNSIGNED_BYTE,a)}catch(f){console&&console.error&&console.error("Error updating WebGL texture: ",
f)}c.bindTexture(c.TEXTURE_2D,null);this.$e=null};d.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.Nj&&1<a.Nj?a.Nj--:(this.Ve(),a===this.$e&&(this.D.bindTexture(this.D.TEXTURE_2D,null),this.$e=null),a===this.Xf&&(this.D.activeTexture(this.D.TEXTURE1),this.D.bindTexture(this.D.TEXTURE_2D,null),this.D.activeTexture(this.D.TEXTURE0),this.Xf=null),Ea(u,a),"undefined"!==typeof a.Kp&&delete b[a.Kp],this.D.deleteTexture(a)))};d.prototype.ad=function(a){if(a!==this.ll){var b=this.Ec();b.type=
6;this.ll=b.cd=a;this.Vb=!1}};ob=d})();
(function(){function d(a){if(a&&(a.getContext||a.dc)&&!a.c2runtime){a.c2runtime=this;var c=this;this.Lc=(this.gi=/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.Gb=!!a.dc;this.Aq="undefined"!==typeof window.AppMobi||
this.Gb;this.yc=!!window.c2cocoonjs;this.nd=!!window.c2ejecta;this.yc&&(CocoonJS.App.onSuspended.addEventListener(function(){c.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){c.setSuspended(!1)}));this.nd&&(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.R=this.Gb||this.yc||this.nd;this.Pg=
/edge\//i.test(navigator.userAgent);this.Id=(/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent))&&!this.Pg;this.Eq=/tizen/i.test(navigator.userAgent);this.ei=/android/i.test(navigator.userAgent)&&!this.Eq&&!this.Id&&!this.Pg;this.Jq=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&!this.Id&&!this.Pg;this.xx=/ipad/i.test(navigator.userAgent);this.le=this.Jq||this.xx||this.nd;this.Og=(/chrome/i.test(navigator.userAgent)||
/chromium/i.test(navigator.userAgent))&&!this.Id&&!this.Pg;this.zq=/amazonwebappplatform/i.test(navigator.userAgent);this.qx=/firefox/i.test(navigator.userAgent);this.Dq=/safari/i.test(navigator.userAgent)&&!this.Og&&!this.Id&&!this.Pg;this.ux=/windows/i.test(navigator.userAgent);this.Qf="undefined"!==typeof window.c2nodewebkit||"undefined"!==typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.Gq=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);
this.wx=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.mi=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.hn=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.gn=!!window.cr_windows10;this.Fq=this.Gq||this.wx||this.hn||this.gn;this.nx=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.fi=this.ei&&!this.Og&&!this.gi&&!this.qx&&!this.zq&&!this.R;this.devicePixelRatio=1;
this.ke=this.Lc||this.gi||this.Aq||this.yc||this.ei||this.le||this.mi||this.hn||this.nx||this.Eq||this.nd;this.ke||(this.ke=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));this.Uf=!!(this.le&&this.Lc&&window.webkit);this.Um=null;this.sq="";this.Uf&&(this.Um=cordova&&cordova.plugins&&cordova.plugins.CorHttpd?cordova.plugins.CorHttpd:null);"undefined"===typeof cr_is_preview||this.Qf||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&
!/nwjs/i.test(navigator.userAgent)||(this.Qf=!0);this.canvas=a;this.Re=document.getElementById("c2canvasdiv");this.B=this.D=null;this.Qm="(unavailable)";this.Ja=!1;this.Ff=0;this.Oa=null;this.Fm="";this.ik=!1;this.Ar=this.Br=0;this.canvas.oncontextmenu=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.onselectstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.Gb&&(window.c2runtime=this);this.Qf&&(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.fi&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=a.width;this.height=a.height;this.M=this.width;this.L=this.height;this.Uj=this.width;this.Nh=this.height;this.ah=window.innerWidth;this.$g=window.innerHeight;this.xa=!0;this.li=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.C=[];this.Qa=[];this.qn=
{};this.od=[];this.ym={};this.de=[];this.Ah=[];this.Il=[];this.Su=[];this.Tu=[];this.Kq=this.us=null;this.Bf={};this.bn=this.Ye=!1;this.je=0;this.an=this.dn=!1;this.ld=[];this.ji=!1;this.Jk=this.lo="";this.nb=null;this.me="";this.pj=this.qs=!1;this.hk=[];this.Ef=this.Df=0;this.mr=30;this.om=this.Li=0;this.qg=1;this.Ya=new eb;this.Ee=new eb;this.Wk=this.nk=this.Rh=this.wd=this.Zf=this.Em=this.Ek=0;this.xf=null;this.ak=[];this.xm=[];this.dk=-1;this.yn=[[]];this.Go=this.Ok=0;this.jl(null);this.Sh=this.sr=
this.Pi=0;this.qj=[];this.Do=this.bo=-1;this.Wg=!0;this.dh=0;this.ki=!1;this.Ey=0;this.yg=null;this.ta=this.uk=!1;this.yr=new ba;this.En=new ba;this.Fn=new ba;this.fj=[];this.vd=new gb([]);this.zo=new gb([]);this.Me=[];this.$h={};this.Se={};this.Le={};this.zh={};this.Hp={};this.Qq=this.Ik=this.Za=this.lb=this.Pq=this.Hk=this.ya=null;this.xh=this.jn=!1;this.Gm=[null,null];this.Jf=0;this.Cm="";this.pe={};this.nj=this.cf=null;this.wo="";this.Vk=[];this.iy()}}function k(a,c){return 128>=c?a[3]:256>=c?
a[2]:512>=c?a[1]:a[0]}function l(){try{return!!window.indexedDB}catch(a){return!1}}function n(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function t(a,c,b,f){try{var e=indexedDB.open("_C2SaveStates");e.onupgradeneeded=n;e.onerror=f;e.onsuccess=function(e){e=e.target.result;e.onerror=f;e.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,data:c}).onsuccess=b}}catch(m){f(m)}}function u(a,c,b){try{var f=indexedDB.open("_C2SaveStates");f.onupgradeneeded=n;f.onerror=
b;f.onsuccess=function(f){f=f.target.result;f.onerror=b;var e=f.transaction(["saves"]).objectStore("saves").get(a);e.onsuccess=function(){e.result?c(e.result.data):c(null)}}}catch(e){b(e)}}function b(){da("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 a(a){var c,b={};for(c in a)!a.hasOwnProperty(c)||a[c]instanceof ba||a[c]&&"undefined"!==typeof a[c].Lz||
"spriteCreatedDestroyCallback"!==c&&(b[c]=a[c]);return b}var p=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;d.prototype.iy=function(){var a=this;if(this.Uf){var c=function(){a.sw(function(c){a.Ei(JSON.parse(c))},function(){alert("Error fetching data.js")})};this.Um?this.Um.startServer({port:0,localhost_only:!0},function(b){a.sq=b;c()},function(a){console.log("Error starting local server: "+
a+". Video playback will not work.");c()}):(console.log("Local server unavailable. Video playback will not work."),c())}else{var b;this.mi?b=new ActiveXObject("Microsoft.XMLHTTP"):b=new XMLHttpRequest;var f="data.js";if(this.Gq||this.mi||this.hn||this.gn)f="data.json";b.open("GET",f,!0);var e=!1;if(!this.R&&"response"in b&&"responseType"in b)try{b.responseType="json",e="json"===b.responseType}catch(m){e=!1}if(!e&&"responseType"in b)try{b.responseType="text"}catch(g){}if("overrideMimeType"in b)try{b.overrideMimeType("application/json; charset=utf-8")}catch(h){}this.mi?
b.onreadystatechange=function(){4===b.readyState&&a.Ei(JSON.parse(b.responseText))}:(b.onload=function(){if(e)a.Ei(b.response);else if(a.nd){var c=b.responseText,c=c.substr(c.indexOf("{"));a.Ei(JSON.parse(c))}else a.Ei(JSON.parse(b.responseText))},b.onerror=function(a){ea("Error requesting "+f+":");ea(a)});b.send()}};d.prototype.ix=function(){var a=this,c,b,f,e,m,g,h,d,q;this.Sf=(!this.R||this.nd||this.Lc)&&this.Py&&!this.fi;0===this.Ub&&this.le&&(this.Sf=!1);this.devicePixelRatio=this.Sf?window.devicePixelRatio||
window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.Qb();0<this.Ub&&this.setSize(window.innerWidth,window.innerHeight,!0);this.canvas.addEventListener("webglcontextlost",function(c){c.preventDefault();a.Hx();da("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){a.B.uq();a.B.kg(a.B.width,a.B.height,!0);a.lb=null;a.Za=null;a.Gm[0]=null;a.Gm[1]=null;a.Ix();a.xa=!0;da("[Construct 2] WebGL context restored");
window.cr_setSuspended(!1)},!1);try{this.Lv&&(this.yc||this.nd||!this.R)&&(c={alpha:!0,depth:!1,antialias:!1,powerPreference:"high-performance",failIfMajorPerformanceCaveat:!0},this.D=this.canvas.getContext("webgl2",c)||this.canvas.getContext("webgl",c)||this.canvas.getContext("experimental-webgl",c))}catch(r){}if(this.D){if(c=this.D.getExtension("WEBGL_debug_renderer_info"))this.Qm=this.D.getParameter(c.UNMASKED_RENDERER_WEBGL)+" ["+this.D.getParameter(c.UNMASKED_VENDOR_WEBGL)+"]";this.Ja&&(this.Qm+=
" [front-to-back enabled]");this.R||(this.Kb=document.createElement("canvas"),jQuery(this.Kb).appendTo(this.canvas.parentNode),this.Kb.oncontextmenu=function(){return!1},this.Kb.onselectstart=function(){return!1},this.Kb.width=Math.round(this.Uj*this.devicePixelRatio),this.Kb.height=Math.round(this.Nh*this.devicePixelRatio),jQuery(this.Kb).css({width:this.Uj+"px",height:this.Nh+"px"}),this.Qr(),this.Sn=this.Kb.getContext("2d"));this.B=new ob(this.D,this.ke,this.Ja);this.B.kg(this.canvas.width,this.canvas.height);
this.B.Yp=0!==this.Ev;this.Oa=null;c=0;for(b=this.C.length;c<b;c++)for(m=this.C[c],f=0,e=m.T.length;f<e;f++)h=m.T[f],h.bb=this.B.Pm(h.id),h.rd=this.B.Yn(h.bb),this.xh=this.xh||this.B.$i(h.bb);c=0;for(b=this.od.length;c<b;c++){d=this.od[c];f=0;for(e=d.T.length;f<e;f++)h=d.T[f],h.bb=this.B.Pm(h.id),h.rd=this.B.Yn(h.bb);d.yd();f=0;for(e=d.V.length;f<e;f++){q=d.V[f];m=0;for(g=q.T.length;m<g;m++)h=q.T[m],h.bb=this.B.Pm(h.id),h.rd=this.B.Yn(h.bb),this.xh=this.xh||this.B.$i(h.bb);q.yd()}}}else{if(0<this.Ub&&
this.Gb){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.Oa=AppMobi.canvas.getContext("2d");try{this.Oa.samplingMode=this.Ma?"smooth":"sharp",this.Oa.globalScale=1,this.Oa.HTML5CompatibilityMode=!0,this.Oa.imageSmoothingEnabled=this.Ma}catch(p){}0!==this.width&&0!==this.height&&(this.Oa.width=this.width,this.Oa.height=this.height)}this.Oa||(this.yc?(c={antialias:!!this.Ma,alpha:!0},this.Oa=this.canvas.getContext("2d",c)):(c={alpha:!0},
this.Oa=this.canvas.getContext("2d",c)),this.rl(this.Oa,this.Ma));this.Sn=this.Kb=null}this.Cs=function(c){a.Na(!1,c)};window==window.top||this.R||this.Fq||this.mi||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.yc&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(da("Reloading for continuous preview"),
this.Jk="__c2_continuouspreview",this.pj=!0),this.Sx&&!this.ke&&(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.hf()});this.R||(c=function(a){if(nb(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.Ub&&this.Sf&&1<this.devicePixelRatio&&this.setSize(this.pb,this.ob,!0);this.Hs();this.Zw();this.go();this.G={}};d.prototype.setSize=function(a,c,b){var f=0,e=0,m=0,h=0,h=0;if(this.ah!==a||this.$g!==c||b){this.ah=a;this.$g=c;var g=this.Ub,d=(document.mozFullScreen||document.webkitIsFullScreen||
!!document.msFullscreenElement||document.fullScreen||this.ki)&&!this.Lc;if(d||0!==this.Ub||b)d&&0<this.Jf&&(g=this.Jf),b=this.devicePixelRatio,4<=g?(m=this.pb/this.ob,a/c>m?(m*=c,5===g?(h=m*b/this.pb,1<h?h=Math.floor(h):1>h&&(h=1/Math.ceil(1/h)),m=this.pb*h/b,h=this.ob*h/b,f=(a-m)/2,e=(c-h)/2,a=m,c=h):(f=(a-m)/2,a=m)):(h=a/m,5===g?(h=h*b/this.ob,1<h?h=Math.floor(h):1>h&&(h=1/Math.ceil(1/h)),m=this.pb*h/b,h=this.ob*h/b,f=(a-m)/2,e=(c-h)/2,a=m):e=(c-h)/2,c=h),d&&!this.Qf&&(e=f=0)):this.Qf&&this.ki&&
0===this.hq&&(f=Math.floor((a-this.pb)/2),e=Math.floor((c-this.ob)/2),a=this.pb,c=this.ob),2>g&&(this.Hh=b),this.Uj=Math.round(a),this.Nh=Math.round(c),this.width=Math.round(a*b),this.height=Math.round(c*b),this.xa=!0,this.Ts?(this.M=this.width,this.L=this.height,this.Ic=!0):this.width<this.pb&&this.height<this.ob||1===g?(this.M=this.width,this.L=this.height,this.Ic=!0):(this.M=this.pb,this.L=this.ob,this.Ic=!1,2===g?(m=this.pb/this.ob,g=this.ah/this.$g,g<m?this.M=this.L*g:g>m&&(this.L=this.M/g)):
3===g&&(m=this.pb/this.ob,g=this.ah/this.$g,g>m?this.M=this.L*g:g<m&&(this.L=this.M/g))),this.Re&&!this.R&&(jQuery(this.Re).css({width:Math.round(a)+"px",height:Math.round(c)+"px","margin-left":Math.floor(f)+"px","margin-top":Math.floor(e)+"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*b),this.canvas.height=Math.round(c*b),this.nd?(this.canvas.style.left=Math.floor(f)+"px",this.canvas.style.top=
Math.floor(e)+"px",this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(c)+"px"):this.Sf&&!this.R&&(this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(c)+"px")),this.Kb&&(this.Kb.width=Math.round(a*b),this.Kb.height=Math.round(c*b),this.Kb.style.width=this.Uj+"px",this.Kb.style.height=this.Nh+"px"),this.B&&this.B.kg(Math.round(a*b),Math.round(c*b)),this.Gb&&this.Oa&&(this.Oa.width=Math.round(a),this.Oa.height=Math.round(c)),this.Oa&&this.rl(this.Oa,
this.Ma),this.Hs(),this.Jq&&!this.Lc&&window.scrollTo(0,0)}};d.prototype.Hs=function(){if(this.Wu&&0!==this.Qn){var a="portrait";2===this.Qn&&(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)}}};d.prototype.Hx=function(){this.B.hv();this.jn=!0;var a,c,b;a=0;for(c=this.C.length;a<c;a++)b=this.C[a],b.Si&&b.Si()};d.prototype.Ix=function(){this.jn=!1;var a,c,b;a=0;for(c=this.C.length;a<c;a++)b=this.C[a],b.Nn&&b.Nn()};d.prototype.Qr=function(){if(!this.R){var a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.ki)&&!this.Lc?jQuery(this.canvas).offset():jQuery(this.canvas).position();a.position=
"absolute";jQuery(this.Kb).css(a)}};var e=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;d.prototype.setSuspended=function(a){var c;if(a&&!this.li)for(da("[Construct 2] Suspending"),this.li=!0,-1!==this.bo&&e&&e(this.bo),-1!==this.Do&&clearTimeout(this.Do),a=0,c=this.qj.length;a<c;a++)this.qj[a](!0);else if(!a&&this.li){da("[Construct 2] Resuming");this.li=!1;this.Ek=Wa();this.Zf=Wa();a=this.Li=
this.nk=0;for(c=this.qj.length;a<c;a++)this.qj[a](!1);this.Na(!1)}};d.prototype.$l=function(a){this.qj.push(a)};d.prototype.He=function(a){return this.Vk[a]};d.prototype.Ei=function(a){a&&a.project||ea("Project model unavailable");a=a.project;this.name=a[0];this.fq=a[1];this.Ub=a[12];this.hq=a[12];this.pb=a[10];this.ob=a[11];this.Lr=this.pb/2;this.Mr=this.ob/2;this.R&&!this.nd&&(4<=a[12]||0===a[12])&&(da("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),
this.hq=this.Ub=3);this.Po=a[18];this.df=a[19];if(0===this.df){var c=new Image;c.crossOrigin="anonymous";this.cs(c,"loading-logo.png");this.cf={Pk:c}}else if(4===this.df){c=new Image;c.src="";var b=new Image;b.src="";var f=new Image;f.src="";var e=new Image;e.src="";var m=new Image;m.src="";var h=new Image;h.src="";var g=new Image;g.src="";var d=new Image;d.src="";var q=new Image;q.src="";var r=new Image;r.src="";var p=new Image;p.src="";var k=new Image;k.src="";this.cf={Pk:[c,b,f,e],Xx:[m,h,g,d],
Uy:[q,r,p,k]}}this.Pi=a[21];this.Vk=oc();this.Qd=new M(this);c=0;for(b=a[2].length;c<b;c++)g=a[2][c],f=this.He(g[0]),pb(g,f.prototype),d=new f(this),d.xl=g[1],d.Ze=g[2],d.Sz=g[5],d.or=g[9],d.K&&d.K(),this.plugins.push(d);this.Vk=oc();c=0;for(b=a[3].length;c<b;c++){g=a[3][c];m=this.He(g[1]);d=null;f=0;for(e=this.plugins.length;f<e;f++)if(this.plugins[f]instanceof m){d=this.plugins[f];break}q=new d.ea(d);q.name=g[0];q.O=g[2];q.$m=g[3].slice(0);q.Sy=g[3].length;q.Xu=g[4];q.xw=g[5];q.ja=g[11];q.O?(q.Tk=
[],q.ee=this.Sh++,q.Pa=null):(q.Tk=null,q.ee=-1,q.Pa=[]);q.fk=null;q.Hg=null;q.Zp=null;q.Vc=!1;q.vc=null;g[6]?(q.Ao=g[6][0],q.Bo=g[6][1],q.Co=g[6][2]):(q.Ao=null,q.Bo=0,q.Co=0);g[7]?q.uc=g[7]:q.uc=null;q.index=c;q.j=[];q.Yj=[];q.ye=[new qb(q)];q.Cd=0;q.Dd=null;q.ov=0;q.uh=!0;q.Jl=sb;q.Bw=tb;q.Hw=ub;q.ma=vb;q.bj=wb;q.il=xb;q.gg=yb;q.qk=zb;q.Hm=Ab;q.Km=Bb;q.Rc=Cb;q.Mm=Db;q.Rj=new hb(this.pb,this.ob);q.Hj=!0;q.Ij=!1;q.G={};q.toString=Fb;q.Qa=[];f=0;for(e=g[8].length;f<e;f++){r=g[8][f];p=this.He(r[1]);
k=null;m=0;for(h=this.Qa.length;m<h;m++)if(this.Qa[m]instanceof p){k=this.Qa[m];break}k||(k=new p(this),k.Uk=[],k.dg=new ba,k.K&&k.K(),this.Qa.push(k),pc&&k instanceof pc&&(this.us=k),qc&&k instanceof qc&&(this.Kq=k));-1===k.Uk.indexOf(q)&&k.Uk.push(q);m=new k.ea(k,q);m.name=r[0];m.ja=r[2];m.K();q.Qa.push(m)}q.global=g[9];q.cn=g[10];q.T=[];f=0;for(e=g[12].length;f<e;f++)q.T.push({id:g[12][f][0],name:g[12][f][1],bb:-1,rd:!1,Rb:!0,index:f});q.eA=g[13];this.Po&&!q.O&&!q.cn&&d.Ze||q.K();q.name&&(this.types[q.name]=
q);this.C.push(q);d.xl&&(f=new d.U(q),f.uid=this.Pi++,f.Ur=this.sr++,f.Nf=0,f.Yh=Gb,f.toString=Hb,f.u=g[14],f.K(),q.j.push(f),this.pe[f.uid.toString()]=f)}c=0;for(b=a[4].length;c<b;c++)for(m=a[4][c],h=this.C[m[0]],f=1,e=m.length;f<e;f++)g=this.C[m[f]],g.Pa.push(h),h.Tk.push(g);c=0;for(b=a[28].length;c<b;c++){m=a[28][c];h=[];f=0;for(e=m.length;f<e;f++)h.push(this.C[m[f]]);f=0;for(e=h.length;f<e;f++)h[f].Vc=!0,h[f].vc=h}if(0<this.Sh)for(c=0,b=this.C.length;c<b;c++)if(g=this.C[c],!g.O&&g.Pa.length){g.fk=
Array(this.Sh);g.Hg=Array(this.Sh);g.Zp=Array(this.Sh);q=[];f=k=p=r=0;for(e=g.Pa.length;f<e;f++)for(d=g.Pa[f],g.fk[d.ee]=r,r+=d.Sy,g.Hg[d.ee]=p,p+=d.Xu,g.Zp[d.ee]=k,k+=d.xw,m=0,h=d.T.length;m<h;m++)q.push(wa({},d.T[m]));g.T=q.concat(g.T);f=0;for(e=g.T.length;f<e;f++)g.T[f].index=f}c=0;for(b=a[5].length;c<b;c++)g=a[5][c],f=new Ib(this,g),this.qn[f.name]=f,this.od.push(f);c=0;for(b=a[6].length;c<b;c++)g=a[6][c],f=new Jb(this,g),this.ym[f.name]=f,this.de.push(f);c=0;for(b=this.de.length;c<b;c++)this.de[c].Wa();
c=0;for(b=this.de.length;c<b;c++)this.de[c].Lo();c=0;for(b=this.Il.length;c<b;c++)this.Il[c].Wa();z(this.Il);this.Uu=a[7];this.Cm=a[8];this.qd=a[9];this.Hh=1;this.Lv=a[13];this.Ma=a[14];this.Np=a[15];this.Py=a[17];this.Qn=a[20];this.Wu=0<this.Qn;this.Sx=a[22];this.Ic=this.Ts=a[23];this.Ev=a[24];this.Yx=a[25];this.Ja=a[27]&&!this.Id;this.yl=Date.now();z(this.Vk);this.ix()};var c=!1;d.prototype.Ss=function(a,b){a.cocoonLazyLoad=!0;a.onerror=function(b){c=a.Jp=!0;console&&console.error&&console.error("Error loading image '"+
a.src+"': ",b)};this.nd?a.src=b:a.src||("undefined"!==typeof XAPKReader?XAPKReader.get(b,function(c){a.src=c},function(f){c=a.Jp=!0;console&&console.error&&console.error("Error extracting image '"+b+"' from expansion file: ",f)}):(a.crossOrigin="anonymous",this.cs(a,b)));this.Ah.push(a)};d.prototype.vw=function(a){var c,b;c=0;for(b=this.Ah.length;c<b;c++)if(this.Ah[c].jv===a)return this.Ah[c];return null};var f=0,h=!1;d.prototype.Zw=function(){this.yg&&(f=this.yg.yy(this.Uu))};d.prototype.Fp=function(){var a=
f,c=0,b=0,e=!0,m,g,b=0;for(m=this.Ah.length;b<m;b++){g=this.Ah[b];var q=g.Pp;if(!q||0>=q)q=5E4;a+=q;g.src&&(g.complete||g.loaded)&&!g.Jp?c+=q:e=!1}e&&this.Yx&&this.yg&&(h||(this.yg.Fy(),h=!0),b=this.yg.Iw(),c+=b,b<f&&(e=!1));this.sd=0==a?1:c/a;return e};var g=!1;d.prototype.go=function(){if(this.Oa||this.B){var a=this.Oa||this.Sn;this.Kb&&this.Qr();var b=window.innerWidth,f=window.innerHeight;this.ah===b&&this.$g===f||this.setSize(b,f);this.sd=0;this.Oq=-1;var e=this;if(this.Fp()&&(4!==this.df||g))this.$w();
else{f=Date.now()-this.yl;if(a){var m=this.width,h=this.height,b=this.devicePixelRatio;if(3>this.df&&(this.yc||500<=f&&this.Oq!=this.sd)){a.clearRect(0,0,m,h);var f=m/2,h=h/2,m=0===this.df&&this.cf.Pk.complete,q=40*b,d=0,r=80*b,k;if(m){var v=this.cf.Pk,r=v.width*b;k=v.height*b;q=r/2;d=k/2;a.drawImage(v,qa(f-q),qa(h-d),r,k)}1>=this.df?(f=qa(f-q)+.5,h=qa(h+(d+(m?12*b:0)))+.5,a.fillStyle=c?"red":"DodgerBlue",a.fillRect(f,h,Math.floor(r*this.sd),6*b),a.strokeStyle="black",a.strokeRect(f,h,r,6*b),a.strokeStyle=
"white",a.strokeRect(f-1*b,h-1*b,r+2*b,8*b)):2===this.df&&(a.font=this.nd?"12pt ArialMT":"12pt Arial",a.fillStyle=c?"#f00":"#999",a.dA="middle",b=Math.round(100*this.sd)+"%",m=a.measureText?a.measureText(b):null,a.fillText(b,f-(m?m.width:0)/2,h));this.Oq=this.sd}else if(4===this.df){this.Jv(a);p?p(function(){e.go()}):setTimeout(function(){e.go()},16);return}}setTimeout(function(){e.go()},this.yc?10:100)}}};var D=-1,G="undefined"===typeof cr_is_preview?200:0,r=!0,m=!1,q=0,R=0,v="undefined"===typeof cr_is_preview?
3E3:0,B=null,W=null,O=0;d.prototype.Jv=function(a){if(!g){for(var b=Math.ceil(this.width),f=Math.ceil(this.height),e=this.cf.Pk,h=this.cf.Xx,d=this.cf.Uy,p=0;4>p;++p)if(!e[p].complete||!h[p].complete||!d[p].complete)return;0===O&&(D=Date.now());var p=Date.now(),t=!1,n=a,l,u;r||m?(a.clearRect(0,0,b,f),B&&B.width===b&&B.height===f||(B=document.createElement("canvas"),B.width=b,B.height=f,W=B.getContext("2d")),n=W,t=!0,r&&1===O&&(D=Date.now())):a.globalAlpha=1;n.fillStyle="#333333";n.fillRect(0,0,b,
f);256<this.Nh?(l=Fa(.22*f,105,.6*b),u=.25*l,n.drawImage(k(h,l),.5*b-l/2,.2*f-u/2,l,u),u=l=Math.min(.395*f,.95*b),n.drawImage(k(e,l),.5*b-l/2,.485*f-u/2,l,u),l=Fa(.22*f,105,.6*b),u=.25*l,n.drawImage(k(d,l),.5*b-l/2,.868*f-u/2,l,u),n.fillStyle="#3C3C3C",l=b,u=Math.max(.005*f,2),n.fillRect(0,.8*f-u/2,l,u),n.fillStyle=c?"red":"#E0FF65",l=b*this.sd,n.fillRect(.5*b-l/2,.8*f-u/2,l,u)):(u=l=.55*f,n.drawImage(k(e,l),.5*b-l/2,.45*f-u/2,l,u),n.fillStyle="#3C3C3C",l=b,u=Math.max(.005*f,2),n.fillRect(0,.85*f-
u/2,l,u),n.fillStyle=c?"red":"#E0FF65",l=b*this.sd,n.fillRect(.5*b-l/2,.85*f-u/2,l,u));t&&(r?a.globalAlpha=0===O?0:Math.min((p-D)/300,1):m&&(a.globalAlpha=Math.max(1-(p-R)/300,0)),a.drawImage(B,0,0,b,f));r&&300<=p-D&&2<=O&&(r=!1,q=p);!r&&p-q>=v&&!m&&1<=this.sd&&(m=!0,R=p);if(m&&p-R>=300+G||"undefined"!==typeof cr_is_preview&&1<=this.sd&&500>Date.now()-D)g=!0,m=r=!1,this.cf=W=B=null;++O}};d.prototype.$w=function(){this.Kb&&(this.canvas.parentNode.removeChild(this.Kb),this.Kb=this.Sn=null);this.yl=
Date.now();this.Zf=Wa();var a,c,b;if(this.Po)for(a=0,c=this.C.length;a<c;a++)b=this.C[a],b.O||b.cn||!b.Da.Ze||b.K();else this.Wg=!1;a=0;for(c=this.od.length;a<c;a++)this.od[a].kv();2<=this.Ub&&(a=this.pb/this.ob,c=this.width/this.height,this.Hh=2!==this.Ub&&c>a||2===this.Ub&&c<a?this.height/this.ob:this.width/this.pb);this.fq?this.qn[this.fq].xo():this.od[0].xo();this.Po||(this.dh=1,this.trigger(M.prototype.e.mp,null),window.C2_RegisterSW&&window.C2_RegisterSW());navigator.splashscreen&&navigator.splashscreen.hide&&
navigator.splashscreen.hide();a=0;for(c=this.C.length;a<c;a++)b=this.C[a],b.Cr&&b.Cr();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.Na(!1);this.Gb&&AppMobi.webview.execute("onGameReady();")};d.prototype.Na=function(a,c,b){if(this.ya){var f=Wa();if(b||!this.li||a){a||(p?this.bo=p(this.Cs):this.Do=setTimeout(this.Cs,this.ke?1:16));c=c||f;var e=this.Ub;((b=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&
!this.Lc)||this.ki)&&0<this.Jf&&(e=this.Jf);if(0<e){var e=window.innerWidth,m=window.innerHeight;this.ah===e&&this.$g===m||this.setSize(e,m)}this.R||(b?(this.ik||(this.Fm=jQuery(this.canvas).css("margin")||"0",this.ik=!0),this.Og||this.Qf||jQuery(this.canvas).css({"margin-left":""+Math.floor((screen.width-this.width/this.devicePixelRatio)/2)+"px","margin-top":""+Math.floor((screen.height-this.height/this.devicePixelRatio)/2)+"px"})):this.ik?(this.Og||this.Qf||jQuery(this.canvas).css("margin",this.Fm),
this.Fm="",this.ik=!1,0===this.Ub&&this.setSize(Math.round(this.Br/this.devicePixelRatio),Math.round(this.Ar/this.devicePixelRatio),!0)):(this.Br=this.width,this.Ar=this.height));this.Wg&&(b=this.Fp(),this.dh=this.sd,b&&(this.Wg=!1,this.sd=1,this.trigger(M.prototype.e.mp,null),window.C2_RegisterSW&&window.C2_RegisterSW()));this.Ax(c);!this.xa&&!this.yc||this.jn||this.pj||a||(this.xa=!1,this.B?this.Tb():this.Hc(),this.nj&&(this.canvas&&this.canvas.toDataURL&&(this.wo=this.canvas.toDataURL(this.nj[0],
this.nj[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.wo),this.trigger(M.prototype.e.bp,null)),this.nj=null));this.Rz||(this.wd++,this.Rh++,this.nk++);this.Li+=Wa()-f}}};d.prototype.Ax=function(a){var c,b,f,e,m,g,h,q;1E3<=a-this.Zf&&(this.Zf+=1E3,1E3<=a-this.Zf&&(this.Zf=a),this.Em=this.nk,this.nk=0,this.om=this.Li,this.Li=0);c=0;0!==this.Ek&&(c=a-this.Ek,0>c&&(c=0),this.Ef=c/=1E3,.5<this.Ef?this.Ef=0:this.Ef>1/this.mr&&(this.Ef=1/this.mr));this.Ek=a;this.Df=this.Ef*this.qg;this.Ya.add(this.Df);
this.Ee.add(c);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.ki)&&!this.Lc;2<=this.Ub||a&&0<this.Jf?(c=this.pb/this.ob,b=this.width/this.height,f=this.Ub,a&&0<this.Jf&&(f=this.Jf),this.Hh=2!==f&&b>c||2===f&&b<c?this.height/this.ob:this.width/this.pb,this.ya&&(this.ya.mo(this.ya.scrollX),this.ya.no(this.ya.scrollY))):this.Hh=this.Sf?this.devicePixelRatio:1;this.Qb();this.je++;this.Qd.ny();this.je--;this.Qb();this.je++;b=this.yr.dd();
a=0;for(c=b.length;a<c;a++)b[a].Zz();a=0;for(c=this.C.length;a<c;a++)if(g=this.C[a],!g.O&&(g.Qa.length||g.Pa.length))for(b=0,f=g.j.length;b<f;b++)for(h=g.j[b],e=0,m=h.J.length;e<m;e++)h.J[e].Na();a=0;for(c=this.C.length;a<c;a++)if(g=this.C[a],!g.O&&(g.Qa.length||g.Pa.length))for(b=0,f=g.j.length;b<f;b++)for(h=g.j[b],e=0,m=h.J.length;e<m;e++)q=h.J[e],q.Rr&&q.Rr();b=this.En.dd();a=0;for(c=b.length;a<c;a++)b[a].Na();this.je--;this.ax();for(a=0;this.xf&&10>a++;)this.Xp(this.xf);a=0;for(c=this.de.length;a<
c;a++)this.de[a].Tm=!1;this.ya.Gf&&this.ya.Gf.ab();z(this.fj);this.je++;a=0;for(c=this.C.length;a<c;a++)if(g=this.C[a],!g.O&&(g.Qa.length||g.Pa.length))for(b=0,f=g.j.length;b<f;b++)for(h=g.j[b],e=0,m=h.J.length;e<m;e++)q=h.J[e],q.El&&q.El();b=this.Fn.dd();a=0;for(c=b.length;a<c;a++)b[a].El();this.je--};d.prototype.hf=function(){var a,c,b,f,e,m,g,h,q;a=0;for(c=this.C.length;a<c;a++)if(g=this.C[a],!g.O)for(b=0,f=g.j.length;b<f;b++)if(h=g.j[b],h.hf&&h.hf(),h.J)for(e=0,m=h.J.length;e<m;e++)q=h.J[e],q.hf&&
q.hf()};d.prototype.Xp=function(a){var c=this.ya;this.ya.Gy();var b,f,e;if(this.B)for(b=0,f=this.C.length;b<f;b++)e=this.C[b],e.O||!e.Ko||e.global&&0!==e.j.length||-1!==a.ci.indexOf(e)||e.Ko();c==a&&z(this.Qd.sc);z(this.fj);this.Wr(!0);a.xo();this.Wr(!1);this.xa=!0;this.Qb()};d.prototype.Wr=function(a){var c,b,f,e,m,g,h,q,d;c=0;for(b=this.Qa.length;c<b;c++)f=this.Qa[c],a?f.Qi&&f.Qi():f.Ri&&f.Ri();c=0;for(b=this.C.length;c<b;c++)if(f=this.C[c],f.global||f.Da.xl)for(e=0,m=f.j.length;e<m;e++)if(g=f.j[e],
a?g.Qi&&g.Qi():g.Ri&&g.Ri(),g.J)for(h=0,q=g.J.length;h<q;h++)d=g.J[h],a?d.Qi&&d.Qi():d.Ri&&d.Ri()};d.prototype.Ae=function(a){this.En.add(a)};d.prototype.Iy=function(a){this.Fn.add(a)};d.prototype.rk=function(a){return a&&-1!==a.Oi?this.Ef*a.Oi:this.Df};d.prototype.Hc=function(){this.ya.Hc(this.Oa);this.Gb&&this.Oa.present()};d.prototype.Tb=function(){this.Ja&&(this.Ff=1,this.ya.Cf(this.B));this.ya.Tb(this.B);this.B.$x()};d.prototype.Zl=function(a){a&&this.ak.push(a)};d.prototype.hy=function(a){Ea(this.ak,
a)};d.prototype.Kg=function(a){a=a.toString();return this.pe.hasOwnProperty(a)?this.pe[a]:null};var x=[];d.prototype.rf=function(a){var c,b;c=a.type.name;var f=null;if(this.Bf.hasOwnProperty(c)){if(f=this.Bf[c],f.contains(a))return}else f=x.length?x.pop():new ba,this.Bf[c]=f;f.add(a);this.Ye=!0;if(a.Vc)for(c=0,b=a.siblings.length;c<b;c++)this.rf(a.siblings[c]);this.bn&&f.yh.push(a);this.an||(this.je++,this.trigger(Object.getPrototypeOf(a.type.Da).e.ep,a),this.je--)};d.prototype.Qb=function(){if(this.Ye){var a,
c,b,f,e,m;this.bn=!0;b=0;for(e=this.ld.length;b<e;++b)for(a=this.ld[b],c=a.type,c.j.push(a),f=0,m=c.Pa.length;f<m;++f)c.Pa[f].j.push(a),c.Pa[f].uh=!0;z(this.ld);this.Kt();Va(this.Bf);this.Ye=this.bn=!1}};d.prototype.Kt=function(){for(var a in this.Bf)this.Bf.hasOwnProperty(a)&&this.$s(this.Bf[a])};d.prototype.$s=function(a){var c=a.dd(),b=c[0].type,f,e,m,g,h,q;Xa(b.j,a);b.uh=!0;0===b.j.length&&(b.Ij=!1);f=0;for(e=b.Pa.length;f<e;++f)q=b.Pa[f],Xa(q.j,a),q.uh=!0;f=0;for(e=this.Qd.sc.length;f<e;++f)if(h=
this.Qd.sc[f],h.Zb.hasOwnProperty(b.index)&&Xa(h.Zb[b.index].he,a),!b.O)for(m=0,g=b.Pa.length;m<g;++m)q=b.Pa[m],h.Zb.hasOwnProperty(q.index)&&Xa(h.Zb[q.index].he,a);if(h=c[0].k){if(h.Qc)for(m=h.j,f=0,e=m.length;f<e;++f)g=m[f],a.contains(g)&&(g.wa(),h.Lb.update(g,g.mc,null),g.mc.set(0,0,-1,-1));Xa(h.j,a);h.jj(0)}for(f=0;f<c.length;++f)this.Zs(c[f],b);a.clear();x.push(a);this.xa=!0};d.prototype.Zs=function(a,c){var b,f,e;b=0;for(f=this.ak.length;b<f;++b)this.ak[b](a);a.Te&&c.Rj.update(a,a.Te,null);
(b=a.k)&&b.nh(a,!0);if(a.J)for(b=0,f=a.J.length;b<f;++b)e=a.J[b],e.qe&&e.qe(),e.behavior.dg.remove(a);this.yr.remove(a);this.En.remove(a);this.Fn.remove(a);a.qe&&a.qe();this.pe.hasOwnProperty(a.uid.toString())&&delete this.pe[a.uid.toString()];this.Wk--;100>c.Yj.length&&c.Yj.push(a)};var y=[];d.prototype.zf=function(a,c,b,f,e,m){var g,h,q,d;if(!a)return null;var r=this.C[a[1]],p=r.Da.Ze;if(this.Wg&&p&&!r.cn||p&&!this.B&&11===a[0][11])return null;var k=c;p||(c=null);var v;r.Yj.length?(v=r.Yj.pop(),
v.Fc=!0,r.Da.U.call(v,r)):(v=new r.Da.U(r),v.Fc=!1);!b||m||this.pe.hasOwnProperty(a[2].toString())?v.uid=this.Pi++:v.uid=a[2];this.pe[v.uid.toString()]=v;v.Ur=this.sr++;v.Nf=r.j.length;g=0;for(h=this.ld.length;g<h;++g)this.ld[g].type===r&&v.Nf++;v.Yh=Gb;v.toString=Hb;q=a[3];if(v.Fc)Va(v.G);else{v.G={};if("undefined"!==typeof cr_is_preview)for(v.xq=[],v.xq.length=q.length,g=0,h=q.length;g<h;g++)v.xq[g]=q[g][1];v.kb=[];v.kb.length=q.length}g=0;for(h=q.length;g<h;g++)v.kb[g]=q[g][0];if(p){var t=a[0];
v.x=ga(f)?t[0]:f;v.y=ga(e)?t[1]:e;v.z=t[2];v.width=t[3];v.height=t[4];v.depth=t[5];v.q=t[6];v.opacity=t[7];v.hc=t[8];v.ic=t[9];v.Sb=t[10];g=t[11];!this.B&&r.T.length&&(v.Sb=g);v.Kh=jb(v.Sb);this.D&&kb(v,v.Sb,this.D);if(v.Fc){g=0;for(h=t[12].length;g<h;g++)for(q=0,d=t[12][g].length;q<d;q++)v.Ra[g][q]=t[12][g][q];v.La.set(0,0,0,0);v.Te.set(0,0,-1,-1);v.mc.set(0,0,-1,-1);v.Xb.rh(v.La);z(v.gm)}else{v.Ra=t[12].slice(0);g=0;for(h=v.Ra.length;g<h;g++)v.Ra[g]=t[12][g].slice(0);v.pa=[];v.Ke=[];v.Ke.length=
r.T.length;v.La=new ua(0,0,0,0);v.Te=new ua(0,0,-1,-1);v.mc=new ua(0,0,-1,-1);v.Xb=new va;v.gm=[];v.F=Kb;v.Kz=Lb;v.Bb=Mb;v.wa=Nb;v.Oy=Ob;v.Os=Pb;v.Uc=Qb}v.tj=!1;v.Ly=0;v.Ky=0;v.Jy=null;14===t.length&&(v.tj=!0,v.Ly=t[13][0],v.Ky=t[13][1],v.Jy=t[13][2]);g=0;for(h=r.T.length;g<h;g++)v.Ke[g]=!0;v.we=!0;v.yd=Rb;v.yd();v.Qs=!!v.pa.length;v.fm=!0;v.jm=!0;r.Hj=!0;v.visible=!0;v.Oi=-1;v.k=c;v.zd=c.j.length;v.Ff=0;"undefined"===typeof v.ra&&(v.ra=null);this.xa=v.Wd=!0}var l;z(y);g=0;for(h=r.Pa.length;g<h;g++)y.push.apply(y,
r.Pa[g].Qa);y.push.apply(y,r.Qa);if(v.Fc)for(g=0,h=y.length;g<h;g++){var D=y[g];l=v.J[g];l.Fc=!0;D.behavior.U.call(l,D,v);t=a[4][g];q=0;for(d=t.length;q<d;q++)l.u[q]=t[q];l.K();D.behavior.dg.add(v)}else for(v.J=[],g=0,h=y.length;g<h;g++)D=y[g],l=new D.behavior.U(D,v),l.Fc=!1,l.u=a[4][g].slice(0),l.K(),v.J.push(l),D.behavior.dg.add(v);t=a[5];if(v.Fc)for(g=0,h=t.length;g<h;g++)v.u[g]=t[g];else v.u=t.slice(0);this.ld.push(v);this.Ye=!0;c&&(c.Gh(v,!0),1!==c.kc||1!==c.lc)&&(r.Ij=!0);this.Wk++;if(r.Vc){if(v.Vc=
!0,v.Fc?z(v.siblings):v.siblings=[],!b&&!m){g=0;for(h=r.vc.length;g<h;g++)if(r.vc[g]!==r){if(!r.vc[g].Dd)return null;v.siblings.push(this.zf(r.vc[g].Dd,k,!1,p?v.x:f,p?v.y:e,!0))}g=0;for(h=v.siblings.length;g<h;g++)for(v.siblings[g].siblings.push(v),q=0;q<h;q++)g!==q&&v.siblings[g].siblings.push(v.siblings[q])}}else v.Vc=!1,v.siblings=null;v.K();g=0;for(h=v.J.length;g<h;g++)v.J[g].Wx&&v.J[g].Wx();return v};d.prototype.Vh=function(a){var c,b;c=0;for(b=this.ya.V.length;c<b;c++){var f=this.ya.V[c];if(mb(f.name,
a))return f}return null};d.prototype.ge=function(a){a=qa(a);0>a&&(a=0);a>=this.ya.V.length&&(a=this.ya.V.length-1);return this.ya.V[a]};d.prototype.mm=function(a){var c,b;c=0;for(b=a.length;c<b;c++)a[c].ma().za=!0};d.prototype.bj=function(a){var c,b;c=0;for(b=a.length;c<b;c++)a[c].bj()};d.prototype.il=function(a){var c,b;c=0;for(b=a.length;c<b;c++)a[c].il()};d.prototype.gg=function(a){var c,b;c=0;for(b=a.length;c<b;c++)a[c].gg()};d.prototype.Ls=function(a){if(a.Hj){var c,b,f=a.j;c=0;for(b=f.length;c<
b;++c)f[c].Os();f=this.ld;c=0;for(b=f.length;c<b;++c)f[c].type===a&&f[c].Os();a.Hj=!1}};d.prototype.Im=function(a,c,b,f){var e,g,h=a?1!==a.kc||1!==a.lc:!1;if(c.O)for(a=0,e=c.Tk.length;a<e;++a)g=c.Tk[a],h||g.Ij?Ca(f,g.j):(this.Ls(g),g.Rj.kl(b,f));else h||c.Ij?Ca(f,c.j):(this.Ls(c),c.Rj.kl(b,f))};d.prototype.oq=function(a,c,b,f){var e,g;e=0;for(g=c.length;e<g;++e)this.Im(a,c[e],b,f)};d.prototype.Mw=function(a,c,b){var f=this.us;f&&this.oq(a,f.Uk,c,b)};d.prototype.Fw=function(a,c,b){var f=this.Kq;f&&
this.oq(a,f.Uk,c,b)};d.prototype.rj=function(a,c,b){var f=a.ma(),e,g,h,m,q=this.ib().Yb.Nc,d,r,v;if(f.za)for(f.za=!1,z(f.j),e=0,m=a.j.length;e<m;e++)h=a.j[e],h.wa(),d=h.k.Ha(c,b,!0),r=h.k.Ha(c,b,!1),h.Bb(d,r)?f.j.push(h):q&&f.X.push(h);else{g=0;v=q?f.X:f.j;e=0;for(m=v.length;e<m;e++)h=v[e],h.wa(),d=h.k.Ha(c,b,!0),r=h.k.Ha(c,b,!1),h.Bb(d,r)&&(q?f.j.push(h):(f.j[g]=f.j[e],g++));v.length=g}a.Rc();return f.Sm()};d.prototype.rc=function(a,c){if(!(a&&c&&a!==c&&a.Wd&&c.Wd))return!1;a.wa();c.wa();var b=a.k,
f=c.k,e,g,h,m,q,d,r,v;if(b===f||b.kc===f.kc&&f.lc===f.lc&&b.scale===f.scale&&b.q===f.q&&b.Wb===f.Wb){if(!a.La.kx(c.La)||!a.Xb.yq(c.Xb)||a.tj&&c.tj)return!1;if(a.tj)return this.ys(a,c);if(c.tj)return this.ys(c,a);r=a.ra&&!a.ra.Rg();e=c.ra&&!c.ra.Rg();if(!r&&!e)return!0;r?(a.ra.Ag(a.width,a.height,a.q),r=a.ra):(this.vd.qh(a.Xb,a.x,a.y,a.width,a.height),r=this.vd);e?(c.ra.Ag(c.width,c.height,c.q),v=c.ra):(this.vd.qh(c.Xb,c.x,c.y,c.width,c.height),v=this.vd);return r.di(v,c.x-a.x,c.y-a.y)}r=a.ra&&!a.ra.Rg();
e=c.ra&&!c.ra.Rg();r?(a.ra.Ag(a.width,a.height,a.q),this.vd.hs(a.ra)):this.vd.qh(a.Xb,a.x,a.y,a.width,a.height);r=this.vd;e?(c.ra.Ag(c.width,c.height,c.q),this.zo.hs(c.ra)):this.zo.qh(c.Xb,c.x,c.y,c.width,c.height);v=this.zo;e=0;for(g=r.td;e<g;e++)h=2*e,m=h+1,q=r.qb[h],d=r.qb[m],r.qb[h]=b.ba(q+a.x,d+a.y,!0),r.qb[m]=b.ba(q+a.x,d+a.y,!1);r.wa();e=0;for(g=v.td;e<g;e++)h=2*e,m=h+1,q=v.qb[h],d=v.qb[m],v.qb[h]=f.ba(q+c.x,d+c.y,!0),v.qb[m]=f.ba(q+c.x,d+c.y,!1);v.wa();return r.di(v,0,0)};var K=new va;new ua(0,
0,0,0);var E=[];d.prototype.ys=function(a,c){var b,f,e,g,h=c.La,m=a.x,q=a.y;a.Pz(h,E);var d=c.ra&&!c.ra.Rg();b=0;for(f=E.length;b<f;++b)if(e=E[b],g=e.bA,h.lx(g,m,q)&&(K.rh(g),K.offset(m,q),K.yq(c.Xb)))if(d)if(c.ra.Ag(c.width,c.height,c.q),e.Vn){if(e.Vn.di(c.ra,c.x-(m+g.left),c.y-(q+g.top)))return z(E),!0}else{if(this.vd.qh(K,0,0,g.right-g.left,g.bottom-g.top),this.vd.di(c.ra,c.x,c.y))return z(E),!0}else if(e.Vn){if(this.vd.qh(c.Xb,0,0,c.width,c.height),e.Vn.di(this.vd,-(m+g.left),-(q+g.top)))return z(E),
!0}else return z(E),!0;z(E);return!1};d.prototype.Ho=function(a,c){if(!c)return!1;var b,f,e,g,h;b=0;for(f=a.Qa.length;b<f;b++)if(a.Qa[b].behavior instanceof c)return!0;if(!a.O)for(b=0,f=a.Pa.length;b<f;b++)for(h=a.Pa[b],e=0,g=h.Qa.length;e<g;e++)if(h.Qa[e].behavior instanceof c)return!0;return!1};d.prototype.Io=function(a){return this.Ho(a,gc.oz)};d.prototype.Jo=function(a){return this.Ho(a,gc.pz)};var T=[];d.prototype.ac=function(a){var c,b,f;a.wa();this.Mw(a.k,a.La,T);c=0;for(b=T.length;c<b;++c)if(f=
T[c],f.G.solidEnabled&&this.rc(a,f))return z(T),f;z(T);return null};var fa=[];d.prototype.ze=function(a,c){var b=null;c&&(b=fa,z(b));a.wa();this.Fw(a.k,a.La,T);var f,e,g;f=0;for(e=T.length;f<e;++f)if(g=T[f],g.G.jumpthruEnabled&&this.rc(a,g))if(c)b.push(g);else return z(T),g;z(T);return b};d.prototype.Zc=function(a,c,b,f,e,g){f=f||50;var h=a.x,m=a.y,q,d=null,r=null;for(q=0;q<f;q++)if(a.x=h+c*q,a.y=m+b*q,a.F(),!this.rc(a,d)&&((d=this.ac(a))&&(r=d),!d&&(e&&(g?d=this.rc(a,g)?g:null:d=this.ze(a),d&&(r=
d)),!d)))return r&&this.$n(a,c,b,r),!0;a.x=h;a.y=m;a.F();return!1};d.prototype.$n=function(a,c,b,f){var e=2,g,h=!1;g=!1;for(var m=a.x,q=a.y;16>=e;)g=1/e,e*=2,a.x+=c*g*(h?1:-1),a.y+=b*g*(h?1:-1),a.F(),this.rc(a,f)?g=h=!0:(g=h=!1,m=a.x,q=a.y);g&&(a.x=m,a.y=q,a.F())};d.prototype.cy=function(a,c){var b=ga(c)?100:c,f=0,e=a.x,g=a.y,h=0,m=0,q=0,d=this.ac(a);if(!d)return!0;for(;f<=b;){switch(h){case 0:m=0;q=-1;f++;break;case 1:m=1;q=-1;break;case 2:m=1;q=0;break;case 3:q=m=1;break;case 4:m=0;q=1;break;case 5:m=
-1;q=1;break;case 6:m=-1;q=0;break;case 7:q=m=-1}h=(h+1)%8;a.x=qa(e+m*f);a.y=qa(g+q*f);a.F();if(!this.rc(a,d)&&(d=this.ac(a),!d))return!0}a.x=e;a.y=g;a.F();return!1};d.prototype.ej=function(a,c){a.Wd&&c.Wd&&this.fj.push([a,c])};d.prototype.bv=function(a,c){var b,f,e;b=0;for(f=this.fj.length;b<f;b++)if(e=this.fj[b],e[0]==a&&e[1]==c||e[0]==c&&e[1]==a)return!0;return!1};var P=-1;d.prototype.trigger=function(a,c,b){if(!this.ya)return!1;var f=this.ya.Gf;if(!f)return!1;var e=!1,g,h,m;P++;var q=f.tm;h=0;
for(m=q.length;h<m;++h)g=this.Fs(a,c,q[h],b),e=e||g;g=this.Fs(a,c,f,b);P--;return e||g};d.prototype.Fs=function(a,c,b,f){var e=!1,g,h,m,q;if(c)for(m=this.Fo(a,c,c.type.name,b,f),e=e||m,q=c.type.Pa,g=0,h=q.length;g<h;++g)m=this.Fo(a,c,q[g].name,b,f),e=e||m;else m=this.Fo(a,c,"system",b,f),e=e||m;return e};d.prototype.Fo=function(a,c,b,f,e){var g,h=!1,m=!1,m="undefined"!==typeof e,q=(m?f.aq:f.Gs)[b];if(!q)return h;var d=null;f=0;for(g=q.length;f<g;++f)if(q[f].method==a){d=q[f].Qh;break}if(!d)return h;
var r;m?r=d[e]:r=d;if(!r)return null;f=0;for(g=r.length;f<g;f++)a=r[f][0],e=r[f][1],m=this.rw(c,b,a,e),h=h||m;return h};d.prototype.rw=function(a,c,b,f){var e,g,h=!1;this.Go++;var m=this.ib().Yb;m&&this.bj(m.nf);var q=1<this.Go;this.bj(b.nf);q&&this.by();var d=this.jl(b);d.Yb=b;a&&(e=this.types[c].ma(),e.za=!1,z(e.j),e.j[0]=a,this.types[c].Rc());a=!0;if(b.parent){c=d.xs;for(e=b.parent;e;)c.push(e),e=e.parent;c.reverse();e=0;for(g=c.length;e<g;e++)if(!c[e].qy()){a=!1;break}}a&&(this.Rh++,b.Nc?b.oy(f):
b.ab(),h=h||d.Yf);this.el();q&&this.Vx();this.gg(b.nf);m&&this.gg(m.nf);this.Ye&&0===this.je&&0===P&&!this.dn&&this.Qb();this.Go--;return h};d.prototype.Uh=function(){var a=this.ib();return a.Yb.sb[a.fb]};d.prototype.ox=function(){return 0===this.ib().fb};d.prototype.by=function(){this.Ok++;this.Ok>=this.yn.length&&this.yn.push([])};d.prototype.Vx=function(){this.Ok--};d.prototype.kq=function(){return this.yn[this.Ok]};d.prototype.jl=function(a){this.dk++;this.dk>=this.xm.length&&this.xm.push(new Sb);
var c=this.ib();c.reset(a);return c};d.prototype.el=function(){this.dk--};d.prototype.ib=function(){return this.xm[this.dk]};d.prototype.lq=function(a,c){for(var b,f,e,g,h,m;c;){b=0;for(f=c.bd.length;b<f;b++)if(m=c.bd[b],m instanceof Tb&&mb(a,m.name))return m;c=c.parent}b=0;for(f=this.de.length;b<f;b++)for(h=this.de[b],e=0,g=h.We.length;e<g;e++)if(m=h.We[e],m instanceof Tb&&mb(a,m.name))return m;return null};d.prototype.mq=function(a){var c,b;c=0;for(b=this.od.length;c<b;c++)if(this.od[c].ja===a)return this.od[c];
return null};d.prototype.tk=function(a){var c,b;c=0;for(b=this.C.length;c<b;c++)if(this.C[c].ja===a)return this.C[c];return null};d.prototype.Cw=function(a){var c,b;c=0;for(b=this.Me.length;c<b;c++)if(this.Me[c].ja===a)return this.Me[c];return null};d.prototype.Up=function(a,c){this.nj=[a,c];this.xa=!0};d.prototype.ax=function(){var a=this,c=this.lo,f=this.me,e=this.Jk,g=!1;this.qs&&(g=!0,c="__c2_continuouspreview",this.qs=!1);if(c.length){this.Qb();f=this.vy();if(l()&&!this.yc)t(c,f,function(){da("Saved state to IndexedDB storage ("+
f.length+" bytes)");a.me=f;a.trigger(M.prototype.e.Sl,null);a.me="";g&&b()},function(e){try{localStorage.setItem("__c2save_"+c,f),da("Saved state to WebStorage ("+f.length+" bytes)"),a.me=f,a.trigger(M.prototype.e.Sl,null),a.me="",g&&b()}catch(h){da("Failed to save game state: "+e+"; "+h),a.trigger(M.prototype.e.tp,null)}});else try{localStorage.setItem("__c2save_"+c,f),da("Saved state to WebStorage ("+f.length+" bytes)"),a.me=f,this.trigger(M.prototype.e.Sl,null),a.me="",g&&b()}catch(h){da("Error saving to WebStorage: "+
h),a.trigger(M.prototype.e.tp,null)}this.Jk=this.lo="";this.nb=null}if(e.length){if(l()&&!this.yc)u(e,function(c){c?(a.nb=c,da("Loaded state from IndexedDB storage ("+a.nb.length+" bytes)")):(a.nb=localStorage.getItem("__c2save_"+e)||"",da("Loaded state from WebStorage ("+a.nb.length+" bytes)"));a.pj=!1;a.nb||(a.nb=null,a.trigger(M.prototype.e.Cj,null))},function(){a.nb=localStorage.getItem("__c2save_"+e)||"";da("Loaded state from WebStorage ("+a.nb.length+" bytes)");a.pj=!1;a.nb||(a.nb=null,a.trigger(M.prototype.e.Cj,
null))});else{try{this.nb=localStorage.getItem("__c2save_"+e)||"",da("Loaded state from WebStorage ("+this.nb.length+" bytes)")}catch(m){this.nb=null}this.pj=!1;a.nb||(a.nb=null,a.trigger(M.prototype.e.Cj,null))}this.lo=this.Jk=""}null!==this.nb&&(this.Qb(),this.zx(this.nb)?(this.me=this.nb,this.trigger(M.prototype.e.au,null),this.me=""):a.trigger(M.prototype.e.Cj,null),this.nb=null)};d.prototype.vy=function(){var c,b,f,e,g,h,m,q={c2save:!0,version:1,rt:{time:this.Ya.aa,walltime:this.Ee.aa,timescale:this.qg,
tickcount:this.wd,execcount:this.Rh,next_uid:this.Pi,running_layout:this.ya.ja,start_time_offset:Date.now()-this.yl},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};c=0;for(b=this.C.length;c<b;c++)if(g=this.C[c],!g.O&&!this.Io(g)){h={instances:[]};Ua(g.G)&&(h.ex=a(g.G));f=0;for(e=g.j.length;f<e;f++)h.instances.push(this.ko(g.j[f]));q.types[g.ja.toString()]=h}c=0;for(b=this.od.length;c<b;c++)f=this.od[c],q.layouts[f.ja.toString()]=f.rb();e=q.events.groups;c=0;for(b=this.Me.length;c<
b;c++)f=this.Me[c],e[f.ja.toString()]=this.$h[f.Zh].Mg;b=q.events.cnds;for(m in this.Se)this.Se.hasOwnProperty(m)&&(c=this.Se[m],Ua(c.G)&&(b[m]={ex:a(c.G)}));b=q.events.acts;for(m in this.Le)this.Le.hasOwnProperty(m)&&(c=this.Le[m],Ua(c.G)&&(b[m]={ex:a(c.G)}));b=q.events.vars;for(m in this.zh)this.zh.hasOwnProperty(m)&&(c=this.zh[m],c.Ck||c.parent&&!c.oi||(b[m]=c.data));q.system=this.Qd.rb();return JSON.stringify(q)};d.prototype.Vr=function(){var a,c,b,f,e,g;this.pe={};a=0;for(c=this.C.length;a<c;a++)if(b=
this.C[a],!b.O)for(f=0,e=b.j.length;f<e;f++)g=b.j[f],this.pe[g.uid.toString()]=g};d.prototype.zx=function(a){var c;try{c=JSON.parse(a)}catch(b){return!1}if(!c.c2save||1<c.version)return!1;this.ji=!0;a=c.rt;this.Ya.reset();this.Ya.aa=a.time;this.Ee.reset();this.Ee.aa=a.walltime||0;this.qg=a.timescale;this.wd=a.tickcount;this.Rh=a.execcount;this.yl=Date.now()-a.start_time_offset;var f=a.running_layout;if(f!==this.ya.ja)if(f=this.mq(f))this.Xp(f);else return;var e,g,h,m,q,d,r;d=c.types;for(g in d)if(d.hasOwnProperty(g)&&
(m=this.tk(parseInt(g,10)))&&!m.O&&!this.Io(m)){d[g].ex?m.G=d[g].ex:Va(m.G);q=m.j;h=d[g].instances;f=0;for(e=oa(q.length,h.length);f<e;f++)this.Kk(q[f],h[f]);f=h.length;for(e=q.length;f<e;f++)this.rf(q[f]);f=q.length;for(e=h.length;f<e;f++){q=null;if(m.Da.Ze&&(q=this.ya.sk(h[f].w.l),!q))continue;q=this.zf(m.Dd,q,!1,0,0,!0);this.Kk(q,h[f])}m.uh=!0}this.Qb();this.Vr();e=c.layouts;for(g in e)e.hasOwnProperty(g)&&(f=this.mq(parseInt(g,10)))&&f.Ib(e[g]);e=c.events.groups;for(g in e)e.hasOwnProperty(g)&&
(f=this.Cw(parseInt(g,10)))&&this.$h[f.Zh]&&this.$h[f.Zh].bs(e[g]);f=c.events.cnds;for(g in this.Se)this.Se.hasOwnProperty(g)&&(f.hasOwnProperty(g)?this.Se[g].G=f[g].ex:this.Se[g].G={});f=c.events.acts;for(g in this.Le)this.Le.hasOwnProperty(g)&&(f.hasOwnProperty(g)?this.Le[g].G=f[g].ex:this.Le[g].G={});f=c.events.vars;for(g in f)f.hasOwnProperty(g)&&this.zh.hasOwnProperty(g)&&(this.zh[g].data=f[g]);this.Pi=a.next_uid;this.ji=!1;f=0;for(e=this.hk.length;f<e;++f)q=this.hk[f],this.trigger(Object.getPrototypeOf(q.type.Da).e.dp,
q);z(this.hk);this.Qd.Ib(c.system);f=0;for(e=this.C.length;f<e;f++)if(m=this.C[f],!m.O&&!this.Io(m))for(c=0,g=m.j.length;c<g;c++){q=m.j[c];if(m.Vc)for(d=q.Yh(),z(q.siblings),a=0,h=m.vc.length;a<h;a++)r=m.vc[a],m!==r&&q.siblings.push(r.j[d]);q.Ad&&q.Ad();if(q.J)for(a=0,h=q.J.length;a<h;a++)d=q.J[a],d.Ad&&d.Ad()}return this.xa=!0};d.prototype.ko=function(c,b){var f,e,g,m,h;m=c.type;g=m.Da;var q={};b?q.c2=!0:q.uid=c.uid;Ua(c.G)&&(q.ex=a(c.G));if(c.kb&&c.kb.length)for(q.ivs={},f=0,e=c.kb.length;f<e;f++)q.ivs[c.type.$m[f].toString()]=
c.kb[f];if(g.Ze){g={x:c.x,y:c.y,w:c.width,h:c.height,l:c.k.ja,zi:c.Uc()};0!==c.q&&(g.a=c.q);1!==c.opacity&&(g.o=c.opacity);.5!==c.hc&&(g.hX=c.hc);.5!==c.ic&&(g.hY=c.ic);0!==c.Sb&&(g.bm=c.Sb);c.visible||(g.v=c.visible);c.Wd||(g.ce=c.Wd);-1!==c.Oi&&(g.mts=c.Oi);if(m.T.length)for(g.fx=[],f=0,e=m.T.length;f<e;f++)h=m.T[f],g.fx.push({name:h.name,active:c.Ke[h.index],params:c.Ra[h.index]});q.w=g}if(c.J&&c.J.length)for(q.behs={},f=0,e=c.J.length;f<e;f++)m=c.J[f],m.rb&&(q.behs[m.type.ja.toString()]=m.rb());
c.rb&&(q.data=c.rb());return q};d.prototype.Ew=function(a,c){var b,f;b=0;for(f=a.$m.length;b<f;b++)if(a.$m[b]===c)return b;return-1};d.prototype.Aw=function(a,c){var b,f;b=0;for(f=a.J.length;b<f;b++)if(a.J[b].type.ja===c)return b;return-1};d.prototype.Kk=function(a,c,b){var f,e,g,m,h;h=a.type;m=h.Da;if(b){if(!c.c2)return}else a.uid=c.uid;c.ex?a.G=c.ex:Va(a.G);if(e=c.ivs)for(f in e)e.hasOwnProperty(f)&&(g=this.Ew(h,parseInt(f,10)),0>g||g>=a.kb.length||(a.kb[g]=e[f]));if(m.Ze){g=c.w;a.k.ja!==g.l&&(e=
a.k,a.k=this.ya.sk(g.l),a.k?(e.nh(a,!0),a.k.Gh(a,!0),a.F(),a.k.jj(0)):(a.k=e,b||this.rf(a)));a.x=g.x;a.y=g.y;a.width=g.w;a.height=g.h;a.zd=g.zi;a.q=g.hasOwnProperty("a")?g.a:0;a.opacity=g.hasOwnProperty("o")?g.o:1;a.hc=g.hasOwnProperty("hX")?g.hX:.5;a.ic=g.hasOwnProperty("hY")?g.hY:.5;a.visible=g.hasOwnProperty("v")?g.v:!0;a.Wd=g.hasOwnProperty("ce")?g.ce:!0;a.Oi=g.hasOwnProperty("mts")?g.mts:-1;a.Sb=g.hasOwnProperty("bm")?g.bm:0;a.Kh=jb(a.Sb);this.D&&kb(a,a.Sb,this.D);a.F();if(g.hasOwnProperty("fx"))for(b=
0,e=g.fx.length;b<e;b++)m=h.Km(g.fx[b].name),0>m||(a.Ke[m]=g.fx[b].active,a.Ra[m]=g.fx[b].params);a.yd()}if(h=c.behs)for(f in h)h.hasOwnProperty(f)&&(b=this.Aw(a,parseInt(f,10)),0>b||a.J[b].Ib(h[f]));c.data&&a.Ib(c.data)};d.prototype.bq=function(a,c,b){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+"www/"+a,function(a){a.file(c,b)},b)};d.prototype.sw=function(a,c){this.bq("data.js",function(b){var f=new FileReader;f.onload=function(c){a(c.target.result)};f.onerror=c;f.readAsText(b)},
c)};var J=[],C=0;d.prototype.An=function(){if(J.length&&!(8<=C)){C++;var a=J.shift();this.qv(a.filename,a.Hy,a.Ov)}};d.prototype.cq=function(a,c,b){var f=this;J.push({filename:a,Hy:function(a){C--;f.An();c(a)},Ov:function(a){C--;f.An();b(a)}});this.An()};d.prototype.qv=function(a,c,b){this.bq(a,function(a){var b=new FileReader;b.onload=function(a){c(a.target.result)};b.readAsArrayBuffer(a)},b)};d.prototype.uw=function(a,c,b){this.cq(a,function(a){a=URL.createObjectURL(new Blob([a]));c(a)},b)};d.prototype.mx=
function(a){return/^(?:[a-z]+:)?\/\//.test(a)||"data:"===a.substr(0,5)||"blob:"===a.substr(0,5)};d.prototype.cs=function(a,c){this.Uf&&!this.mx(c)?this.uw(c,function(c){a.src=c},function(a){alert("Failed to load image: "+a)}):a.src=c};d.prototype.rl=function(a,c){"undefined"!==typeof a.imageSmoothingEnabled?a.imageSmoothingEnabled=c:(a.webkitImageSmoothingEnabled=c,a.mozImageSmoothingEnabled=c,a.msImageSmoothingEnabled=c)};Ub=function(a){return new d(document.getElementById(a))};Vb=function(a,c){return new d({dc:!0,
width:a,height:c})};window.cr_createRuntime=Ub;window.cr_createDCRuntime=Vb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.Ih=!0;document.body.appendChild(a);a=new d(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 d(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();window.cr_getC2Runtime=function(){var d=document.getElementById("c2canvas");return d?d.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(d,k){var l=window.cr_getC2Runtime();l&&l.Up(d,k)};window.cr_sizeCanvas=function(d,k){if(0!==d&&0!==k){var l=window.cr_getC2Runtime();l&&l.setSize(d,k)}};
window.cr_setSuspended=function(d){var k=window.cr_getC2Runtime();k&&k.setSuspended(d)};
(function(){function d(a,b){this.b=a;this.Gf=null;this.scrollX=this.b.pb/2;this.scrollY=this.b.ob/2;this.scale=1;this.q=0;this.Ig=!0;this.name=b[0];this.Qx=b[1];this.Px=b[2];this.width=b[1];this.height=b[2];this.Is=b[3];this.ns=b[4];this.ja=b[5];var e=b[6],g,d;this.V=[];this.ci=[];g=0;for(d=e.length;g<d;g++){var p=new Wb(this,e[g]);p.ur=g;this.V.push(p)}e=b[7];this.Pf=[];g=0;for(d=e.length;g<d;g++){var p=e[g],r=this.b.C[p[1]];r.Dd||(r.Dd=p);this.Pf.push(p);-1===this.ci.indexOf(r)&&this.ci.push(r)}this.T=
[];this.pa=[];this.we=!0;this.Ra=[];g=0;for(d=b[8].length;g<d;g++)this.T.push({id:b[8][g][0],name:b[8][g][1],bb:-1,rd:!1,Rb:!0,index:g}),this.Ra.push(b[8][g][2].slice(0));this.yd();this.kf=new ua(0,0,1,1);this.co=new ua(0,0,1,1);this.jf={}}function k(a,b){return a.zd-b.zd}function l(a,b){this.mb=a;this.b=a.b;this.j=[];this.scale=1;this.q=0;this.ae=!1;this.Be=new ua(0,0,0,0);this.Ds=new va;this.Fa=this.Ca=this.Ga=this.Ba=0;this.tg=!1;this.Ge=-1;this.nm=0;this.name=b[0];this.index=b[1];this.ja=b[2];
this.visible=b[3];this.jd=b[4];this.xd=b[5];this.kc=b[6];this.lc=b[7];this.opacity=b[8];this.mk=b[9];this.Qc=b[10];this.Wb=b[11];this.Sb=b[12];this.Kv=b[13];this.Kh="source-over";this.Eb=this.Nb=0;this.Lb=null;this.ne=n();this.ud=!0;this.bh=new ua(0,0,-1,-1);this.Db=new ua(0,0,-1,-1);this.Qc&&(this.Lb=new ib(this.b.pb,this.b.ob));this.Od=!1;var e=b[14],g,d;this.vs=[];this.Kc=[];this.Mh=[];g=0;for(d=e.length;g<d;g++){var p=e[g],r=this.b.C[p[1]];r.Dd||(r.Dd=p,r.ov=this.index);this.Kc.push(p);-1===this.mb.ci.indexOf(r)&&
this.mb.ci.push(r)}Ba(this.vs,this.Kc);this.T=[];this.pa=[];this.we=!0;this.Ra=[];g=0;for(d=b[15].length;g<d;g++)this.T.push({id:b[15][g][0],name:b[15][g][1],bb:-1,rd:!1,Rb:!0,index:g}),this.Ra.push(b[15][g][2].slice(0));this.yd();this.kf=new ua(0,0,1,1);this.co=new ua(0,0,1,1)}function n(){return a.length?a.pop():[]}function t(c){z(c);a.push(c)}d.prototype.uy=function(a){var b=a.type.ja.toString();this.jf.hasOwnProperty(b)||(this.jf[b]=[]);this.jf[b].push(this.b.ko(a))};d.prototype.pq=function(){var a=
this.V[0];return!a.xd&&1===a.opacity&&!a.mk&&a.visible};d.prototype.yd=function(){z(this.pa);this.we=!0;var a,b,e;a=0;for(b=this.T.length;a<b;a++)e=this.T[a],e.Rb&&(this.pa.push(e),e.rd||(this.we=!1))};d.prototype.Jm=function(a){var b,e,g;b=0;for(e=this.T.length;b<e;b++)if(g=this.T[b],g.name===a)return g;return null};var u=[],b=!0;d.prototype.xo=function(){this.ns&&(this.Gf=this.b.ym[this.ns],this.Gf.Lo());this.b.ya=this;this.width=this.Qx;this.height=this.Px;this.scrollX=this.b.pb/2;this.scrollY=
this.b.ob/2;var a,f,e,g,d,p,r;a=0;for(e=this.b.C.length;a<e;a++)if(f=this.b.C[a],!f.O)for(d=f.j,f=0,g=d.length;f<g;f++)if(p=d[f],p.k){var m=p.k.ur;m>=this.V.length&&(m=this.V.length-1);p.k=this.V[m];-1===p.k.j.indexOf(p)&&p.k.j.push(p);p.k.tg=!0}if(!b)for(a=0,e=this.V.length;a<e;++a)this.V[a].j.sort(k);z(u);this.Yu();a=0;for(e=this.V.length;a<e;a++)p=this.V[a],p.lv(),p.Ll();d=!1;if(!this.Ig){for(r in this.jf)if(this.jf.hasOwnProperty(r)&&(f=this.b.tk(parseInt(r,10)))&&!f.O&&this.b.Jo(f)){g=this.jf[r];
a=0;for(e=g.length;a<e;a++){p=null;if(f.Da.Ze&&(p=this.sk(g[a].w.l),!p))continue;p=this.b.zf(f.Dd,p,!1,0,0,!0);this.b.Kk(p,g[a]);d=!0;u.push(p)}z(g)}a=0;for(e=this.V.length;a<e;a++)this.V[a].j.sort(k),this.V[a].tg=!0}d&&(this.b.Qb(),this.b.Vr());for(a=0;a<u.length;a++)if(p=u[a],p.type.Vc)for(e=p.Yh(),f=0,g=p.type.vc.length;f<g;f++)r=p.type.vc[f],p.type!==r&&(r.j.length>e?p.siblings.push(r.j[e]):r.Dd&&(d=this.b.zf(r.Dd,p.k,!0,p.x,p.y,!0),this.b.Qb(),r.Jl(),p.siblings.push(d),u.push(d)));a=0;for(e=
this.Pf.length;a<e;a++)this.b.zf(this.Pf[a],null,!0);this.b.xf=null;this.b.Qb();if(this.b.Oa&&!this.b.R)for(a=0,e=this.b.C.length;a<e;a++)r=this.b.C[a],!r.O&&r.j.length&&r.Xn&&r.Xn(this.b.Oa);if(this.b.ji)Ba(this.b.hk,u);else for(a=0,e=u.length;a<e;a++)p=u[a],this.b.trigger(Object.getPrototypeOf(p.type.Da).e.dp,p);z(u);this.b.ji||this.b.trigger(M.prototype.e.lp,null);this.Ig=!1};d.prototype.kv=function(){var a,b,e,g,d;b=a=0;for(e=this.Pf.length;a<e;a++)g=this.Pf[a],d=this.b.C[g[1]],d.global?d.Vc||
this.b.zf(g,null,!0):(this.Pf[b]=g,b++);Aa(this.Pf,b)};d.prototype.Gy=function(){this.b.ji||this.b.trigger(M.prototype.e.$t,null);this.b.an=!0;z(this.b.Qd.sc);var a,f,e,g,d,p;if(!this.Ig)for(a=0,f=this.V.length;a<f;a++)for(this.V[a].Oo(),d=this.V[a].j,e=0,g=d.length;e<g;e++)p=d[e],p.type.global||this.b.Jo(p.type)&&this.uy(p);a=0;for(f=this.V.length;a<f;a++){d=this.V[a].j;e=0;for(g=d.length;e<g;e++)p=d[e],p.type.global||this.b.rf(p);this.b.Qb();z(d);this.V[a].tg=!0}a=0;for(f=this.b.C.length;a<f;a++)if(d=
this.b.C[a],!(d.global||d.Da.Ze||d.Da.xl||d.O)){e=0;for(g=d.j.length;e<g;e++)this.b.rf(d.j[e]);this.b.Qb()}b=!1;this.b.an=!1};new ua(0,0,0,0);d.prototype.Hc=function(a){var b,e=a,g=!1,d=!this.b.Ic;d&&(this.b.Ik||(this.b.Ik=document.createElement("canvas"),b=this.b.Ik,b.width=this.b.M,b.height=this.b.L,this.b.Qq=b.getContext("2d"),g=!0),b=this.b.Ik,e=this.b.Qq,b.width!==this.b.M&&(b.width=this.b.M,g=!0),b.height!==this.b.L&&(b.height=this.b.L,g=!0),g&&this.b.rl(e,this.b.Ma));e.globalAlpha=1;e.globalCompositeOperation=
"source-over";this.b.Np&&!this.pq()&&e.clearRect(0,0,this.b.M,this.b.L);var p,r,g=0;for(p=this.V.length;g<p;g++)r=this.V[g],r.visible&&0<r.opacity&&11!==r.Sb&&(r.j.length||!r.xd)?r.Hc(e):r.Ll();d&&a.drawImage(b,0,0,this.b.width,this.b.height)};d.prototype.Cf=function(a){a.as(!0);this.b.Za||(this.b.Za=a.wc(this.b.M,this.b.L,this.b.Ma));if(this.b.Za.wf!==this.b.M||this.b.Za.vf!==this.b.L)a.deleteTexture(this.b.Za),this.b.Za=a.wc(this.b.M,this.b.L,this.b.Ma);a.ad(this.b.Za);this.b.Ic||a.kg(this.b.M,
this.b.L);var b,e;for(b=this.V.length-1;0<=b;--b)e=this.V[b],e.visible&&1===e.opacity&&e.we&&0===e.Sb&&(e.j.length||!e.xd)?e.Cf(a):e.Ll();a.as(!1)};d.prototype.Tb=function(a){var b=0<this.pa.length||this.b.xh||!this.b.Ic||this.b.Ja;if(b){this.b.Za||(this.b.Za=a.wc(this.b.M,this.b.L,this.b.Ma));if(this.b.Za.wf!==this.b.M||this.b.Za.vf!==this.b.L)a.deleteTexture(this.b.Za),this.b.Za=a.wc(this.b.M,this.b.L,this.b.Ma);a.ad(this.b.Za);this.b.Ic||a.kg(this.b.M,this.b.L)}else this.b.Za&&(a.ad(null),a.deleteTexture(this.b.Za),
this.b.Za=null);this.b.Np&&!this.pq()&&a.clear(0,0,0,0);var e,g,d;e=0;for(g=this.V.length;e<g;e++)d=this.V[e],d.visible&&0<d.opacity&&(d.j.length||!d.xd)?d.Tb(a):d.Ll();b&&(0===this.pa.length||1===this.pa.length&&this.b.Ic?(1===this.pa.length?(b=this.pa[0].index,a.qc(this.pa[0].bb),a.ph(null,1/this.b.M,1/this.b.L,0,0,1,1,this.scale,this.q,0,0,this.b.M/2,this.b.L/2,this.b.Ya.aa,this.Ra[b]),a.hl(this.pa[0].bb)&&(this.b.xa=!0)):a.qc(0),this.b.Ic||a.kg(this.b.width,this.b.height),a.ad(null),a.$r(!1),
a.lf(1),a.oc(this.b.Za),a.Yr(),a.$c(),a.Pc(),b=this.b.width/2,e=this.b.height/2,a.mh(-b,e,b,e,b,-e,-b,-e),a.oc(null),a.$r(!0)):this.eo(a,null,null,null))};d.prototype.Wh=function(){return 0<this.pa.length||this.b.xh||!this.b.Ic||this.b.Ja?this.b.Za:null};d.prototype.nq=function(){var a=this.V[0].gc(),b,e,g;b=1;for(e=this.V.length;b<e;b++)g=this.V[b],(0!==g.kc||0!==g.lc)&&g.gc()<a&&(a=g.gc());return a};d.prototype.mo=function(a){if(!this.Is){var b=1/this.nq()*this.b.M/2;a>this.width-b&&(a=this.width-
b);a<b&&(a=b)}this.scrollX!==a&&(this.scrollX=a,this.b.xa=!0)};d.prototype.no=function(a){if(!this.Is){var b=1/this.nq()*this.b.L/2;a>this.height-b&&(a=this.height-b);a<b&&(a=b)}this.scrollY!==a&&(this.scrollY=a,this.b.xa=!0)};d.prototype.Yu=function(){this.mo(this.scrollX);this.no(this.scrollY)};d.prototype.eo=function(a,b,e,g){var d=e?e.pa:b?b.pa:this.pa,p=1,r=0,m=0,q=0,k=this.b.M,v=this.b.L;e?(p=e.k.gc(),r=e.k.hb(),m=e.k.Ba,q=e.k.Ca,k=e.k.Ga,v=e.k.Fa):b&&(p=b.gc(),r=b.hb(),m=b.Ba,q=b.Ca,k=b.Ga,
v=b.Fa);var t=this.b.Gm,l,n,u,y,K=0,E=1,T,fa,P=this.b.M,J=this.b.L,C=P/2,A=J/2,w=b?b.kf:this.kf,H=b?b.co:this.co,N=0,U=0,I=0,F=0,Q=P,ka=P,S=J,ya=J,la=u=0;y=e?e.k.hb():0;if(e){l=0;for(n=d.length;l<n;l++)u+=a.Jw(d[l].bb),la+=a.Kw(d[l].bb);F=e.La;N=b.ba(F.left,F.top,!0,!0);I=b.ba(F.left,F.top,!1,!0);Q=b.ba(F.right,F.bottom,!0,!0);S=b.ba(F.right,F.bottom,!1,!0);0!==y&&(l=b.ba(F.right,F.top,!0,!0),n=b.ba(F.right,F.top,!1,!0),U=b.ba(F.left,F.bottom,!0,!0),F=b.ba(F.left,F.bottom,!1,!0),y=Math.min(N,Q,l,
U),Q=Math.max(N,Q,l,U),N=y,y=Math.min(I,S,n,F),S=Math.max(I,S,n,F),I=y);N-=u;I-=la;Q+=u;S+=la;H.left=N/P;H.top=1-I/J;H.right=Q/P;H.bottom=1-S/J;U=N=qa(N);F=I=qa(I);ka=Q=ra(Q);ya=S=ra(S);U-=u;F-=la;ka+=u;ya+=la;0>N&&(N=0);0>I&&(I=0);Q>P&&(Q=P);S>J&&(S=J);0>U&&(U=0);0>F&&(F=0);ka>P&&(ka=P);ya>J&&(ya=J);w.left=N/P;w.top=1-I/J;w.right=Q/P;w.bottom=1-S/J}else w.left=H.left=0,w.top=H.top=0,w.right=H.right=1,w.bottom=H.bottom=1;la=e&&(a.$i(d[0].bb)||0!==u||0!==la||1!==e.opacity||e.type.Da.or)||b&&!e&&1!==
b.opacity;a.Yr();if(la){t[K]||(t[K]=a.wc(P,J,this.b.Ma));if(t[K].wf!==P||t[K].vf!==J)a.deleteTexture(t[K]),t[K]=a.wc(P,J,this.b.Ma);a.qc(0);a.ad(t[K]);fa=ya-F;a.clearRect(U,J-F-fa,ka-U,fa);e?e.Tb(a):(a.oc(this.b.lb),a.lf(b.opacity),a.$c(),a.translate(-C,-A),a.Pc(),a.Nd(N,S,Q,S,Q,I,N,I,w));H.left=H.top=0;H.right=H.bottom=1;e&&(y=w.top,w.top=w.bottom,w.bottom=y);K=1;E=0}a.lf(1);u=d.length-1;var La=a.Zn(d[u].bb)||!b&&!e&&!this.b.Ic;l=y=0;for(n=d.length;l<n;l++){t[K]||(t[K]=a.wc(P,J,this.b.Ma));if(t[K].wf!==
P||t[K].vf!==J)a.deleteTexture(t[K]),t[K]=a.wc(P,J,this.b.Ma);a.qc(d[l].bb);y=d[l].index;a.hl(d[l].bb)&&(this.b.xa=!0);0!=l||la?(a.ph(g,1/P,1/J,H.left,H.top,H.right,H.bottom,p,r,m,q,(m+k)/2,(q+v)/2,this.b.Ya.aa,e?e.Ra[y]:b?b.Ra[y]:this.Ra[y]),a.oc(null),l!==u||La?(a.ad(t[K]),fa=ya-F,T=J-F-fa,a.clearRect(U,T,ka-U,fa)):(e?a.ve(e.Nb,e.Eb):b&&a.ve(b.Nb,b.Eb),a.ad(g)),a.oc(t[E]),a.$c(),a.translate(-C,-A),a.Pc(),a.Nd(N,S,Q,S,Q,I,N,I,w),l!==u||La||a.oc(null)):(a.ad(t[K]),fa=ya-F,T=J-F-fa,a.clearRect(U,T,
ka-U,fa),e?(e.Cb&&e.Cb.da?(T=e.Cb.da,E=1/T.width,T=1/T.height):(E=1/e.width,T=1/e.height),a.ph(g,E,T,H.left,H.top,H.right,H.bottom,p,r,m,q,(m+k)/2,(q+v)/2,this.b.Ya.aa,e.Ra[y]),e.Tb(a)):(a.ph(g,1/P,1/J,0,0,1,1,p,r,m,q,(m+k)/2,(q+v)/2,this.b.Ya.aa,b?b.Ra[y]:this.Ra[y]),a.oc(b?this.b.lb:this.b.Za),a.$c(),a.translate(-C,-A),a.Pc(),a.Nd(N,S,Q,S,Q,I,N,I,w)),H.left=H.top=0,H.right=H.bottom=1,e&&!La&&(y=S,S=I,I=y));K=0===K?1:0;E=0===K?1:0}La&&(a.qc(0),e?a.ve(e.Nb,e.Eb):b?a.ve(b.Nb,b.Eb):this.b.Ic||(a.kg(this.b.width,
this.b.height),C=this.b.width/2,A=this.b.height/2,I=N=0,Q=this.b.width,S=this.b.height),a.ad(g),a.oc(t[E]),a.$c(),a.translate(-C,-A),a.Pc(),e&&1===d.length&&!la?a.Nd(N,I,Q,I,Q,S,N,S,w):a.Nd(N,S,Q,S,Q,I,N,I,w),a.oc(null))};d.prototype.sk=function(a){var b,e;b=0;for(e=this.V.length;b<e;b++)if(this.V[b].ja===a)return this.V[b];return null};d.prototype.rb=function(){var a,b,e,g={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.q,w:this.width,h:this.height,fv:this.Ig,persist:this.jf,fx:[],layers:{}};
a=0;for(b=this.T.length;a<b;a++)e=this.T[a],g.fx.push({name:e.name,active:e.Rb,params:this.Ra[e.index]});a=0;for(b=this.V.length;a<b;a++)e=this.V[a],g.layers[e.ja.toString()]=e.rb();return g};d.prototype.Ib=function(a){var b,e,g,d;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.q=a.a;this.width=a.w;this.height=a.h;this.jf=a.persist;"undefined"!==typeof a.fv&&(this.Ig=a.fv);var p=a.fx;b=0;for(e=p.length;b<e;b++)if(g=this.Jm(p[b].name))g.Rb=p[b].active,this.Ra[g.index]=p[b].params;this.yd();
b=a.layers;for(d in b)b.hasOwnProperty(d)&&(a=this.sk(parseInt(d,10)))&&a.Ib(b[d])};Ib=d;l.prototype.yd=function(){z(this.pa);this.we=!0;var a,b,e;a=0;for(b=this.T.length;a<b;a++)e=this.T[a],e.Rb&&(this.pa.push(e),e.rd||(this.we=!1))};l.prototype.Jm=function(a){var b,e,g;b=0;for(e=this.T.length;b<e;b++)if(g=this.T[b],g.name===a)return g;return null};l.prototype.lv=function(){var a,b,e,g,d,p;b=a=0;for(e=this.Kc.length;a<e;a++){g=this.Kc[a];d=this.b.C[g[1]];p=this.b.Jo(d);d=!0;if(!p||this.mb.Ig){g=
this.b.zf(g,this,!0);if(!g)continue;u.push(g);g.type.global&&(d=!1,this.Mh.push(g.uid))}d&&(this.Kc[b]=this.Kc[a],b++)}this.Kc.length=b;this.b.Qb();!this.b.B&&this.T.length&&(this.Sb=this.Kv);this.Kh=jb(this.Sb);this.b.D&&kb(this,this.Sb,this.b.D);this.ud=!0};l.prototype.nh=function(a,b){var e=Da(this.j,a);0>e||(b&&this.Qc&&a.mc&&a.mc.right>=a.mc.left&&(a.wa(),this.Lb.update(a,a.mc,null),a.mc.set(0,0,-1,-1)),e===this.j.length-1?this.j.pop():(xa(this.j,e),this.jj(e)),this.ud=!0)};l.prototype.Gh=function(a,
b){a.zd=this.j.length;this.j.push(a);b&&this.Qc&&a.mc&&a.F();this.ud=!0};l.prototype.Zx=function(a){this.j.unshift(a);this.jj(0)};l.prototype.Ex=function(a,b,e){var g=a.Uc();b=b.Uc();xa(this.j,g);g<b&&b--;e&&b++;b===this.j.length?this.j.push(a):this.j.splice(b,0,a);this.jj(g<b?g:b)};l.prototype.jj=function(a){-1===this.Ge?this.Ge=a:a<this.Ge&&(this.Ge=a);this.ud=this.tg=!0};l.prototype.Oo=function(){if(this.tg){-1===this.Ge&&(this.Ge=0);var a,b,e;if(this.Qc)for(a=this.Ge,b=this.j.length;a<b;++a)e=
this.j[a],e.zd=a,this.Lb.Bx(e.mc);else for(a=this.Ge,b=this.j.length;a<b;++a)this.j[a].zd=a;this.tg=!1;this.Ge=-1}};l.prototype.gc=function(a){return this.Gw()*(this.b.Ic||a?this.b.Hh:1)};l.prototype.Gw=function(){return(this.scale*this.mb.scale-1)*this.Wb+1};l.prototype.hb=function(){return this.ae?0:Ia(this.mb.q+this.q)};var a=[],p=[],e=[];l.prototype.Om=function(){this.Oo();this.Lb.kl(this.Ba,this.Ca,this.Ga,this.Fa,e);if(!e.length)return n();if(1===e.length){var a=n();Ba(a,e[0]);z(e);return a}for(var b=
!0;1<e.length;){for(var a=e,d=void 0,g=void 0,k=void 0,l=void 0,r=void 0,d=0,g=a.length;d<g-1;d+=2){var k=a[d],l=a[d+1],r=n(),m=k,q=l,u=r,v=0,B=0,W=0,O=m.length,x=q.length,y=void 0,K=void 0;for(u.length=O+x;v<O&&B<x;++W)y=m[v],K=q[B],y.zd<K.zd?(u[W]=y,++v):(u[W]=K,++B);for(;v<O;++v,++W)u[W]=m[v];for(;B<x;++B,++W)u[W]=q[B];b||(t(k),t(l));p.push(r)}1===g%2&&(b?(k=n(),Ba(k,a[g-1]),p.push(k)):p.push(a[g-1]));Ba(a,p);z(p);b=!1}a=e[0];z(e);return a};l.prototype.Hc=function(a){this.Od=this.mk||1!==this.opacity||
0!==this.Sb;var b=this.b.canvas,e=a,g=!1;this.Od&&(this.b.Hk||(this.b.Hk=document.createElement("canvas"),b=this.b.Hk,b.width=this.b.M,b.height=this.b.L,this.b.Pq=b.getContext("2d"),g=!0),b=this.b.Hk,e=this.b.Pq,b.width!==this.b.M&&(b.width=this.b.M,g=!0),b.height!==this.b.L&&(b.height=this.b.L,g=!0),g&&this.b.rl(e,this.b.Ma),this.xd&&e.clearRect(0,0,this.b.M,this.b.L));e.globalAlpha=1;e.globalCompositeOperation="source-over";this.xd||(e.fillStyle="rgb("+this.jd[0]+","+this.jd[1]+","+this.jd[2]+")",
e.fillRect(0,0,this.b.M,this.b.L));e.save();this.ae=!0;var g=this.Ha(0,0,!0,!0),d=this.Ha(0,0,!1,!0);this.ae=!1;this.b.qd&&(g=Math.round(g),d=Math.round(d));this.ml(g,d,e);var p=this.gc();e.scale(p,p);e.translate(-g,-d);this.Qc?(this.Db.left=this.Lb.cc(this.Ba),this.Db.top=this.Lb.ec(this.Ca),this.Db.right=this.Lb.cc(this.Ga),this.Db.bottom=this.Lb.ec(this.Fa),this.ud||!this.Db.Ph(this.bh)?(t(this.ne),g=this.Om(),this.ud=!1,this.bh.Cg(this.Db)):g=this.ne):g=this.j;for(var r,m=null,d=0,p=g.length;d<
p;++d)r=g[d],r!==m&&(this.Fv(r,e),m=r);this.Qc&&(this.ne=g);e.restore();this.Od&&(a.globalCompositeOperation=this.Kh,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};l.prototype.Fv=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.wa();var e=a.La;e.right<this.Ba||e.bottom<this.Ca||e.left>this.Ga||e.top>this.Fa||(b.globalCompositeOperation=a.Kh,a.Hc(b))}};l.prototype.Ll=function(){this.ae=!0;var a=this.Ha(0,0,!0,!0),b=this.Ha(0,0,!1,!0);this.ae=!1;this.b.qd&&(a=Math.round(a),b=Math.round(b));
this.ml(a,b,null)};l.prototype.ml=function(a,b,e){var g=this.gc();this.Ba=a;this.Ca=b;this.Ga=a+1/g*this.b.M;this.Fa=b+1/g*this.b.L;this.Ba>this.Ga&&(a=this.Ba,this.Ba=this.Ga,this.Ga=a);this.Ca>this.Fa&&(a=this.Ca,this.Ca=this.Fa,this.Fa=a);a=this.hb();0!==a&&(e&&(e.translate(this.b.M/2,this.b.L/2),e.rotate(-a),e.translate(this.b.M/-2,this.b.L/-2)),this.Be.set(this.Ba,this.Ca,this.Ga,this.Fa),this.Be.offset((this.Ba+this.Ga)/-2,(this.Ca+this.Fa)/-2),this.Ds.ks(this.Be,a),this.Ds.Ip(this.Be),this.Be.offset((this.Ba+
this.Ga)/2,(this.Ca+this.Fa)/2),this.Ba=this.Be.left,this.Ca=this.Be.top,this.Ga=this.Be.right,this.Fa=this.Be.bottom)};l.prototype.Cf=function(a){if(this.Od=this.mk){this.b.lb||(this.b.lb=a.wc(this.b.M,this.b.L,this.b.Ma));if(this.b.lb.wf!==this.b.M||this.b.lb.vf!==this.b.L)a.deleteTexture(this.b.lb),this.b.lb=a.wc(this.b.M,this.b.L,this.b.Ma);a.ad(this.b.lb)}this.ae=!0;var b=this.Ha(0,0,!0,!0),e=this.Ha(0,0,!1,!0);this.ae=!1;this.b.qd&&(b=Math.round(b),e=Math.round(e));this.ml(b,e,null);b=this.gc();
a.$c();a.scale(b,b);a.nl(-this.hb());a.translate((this.Ba+this.Ga)/-2,(this.Ca+this.Fa)/-2);a.Pc();this.Qc?(this.Db.left=this.Lb.cc(this.Ba),this.Db.top=this.Lb.ec(this.Ca),this.Db.right=this.Lb.cc(this.Ga),this.Db.bottom=this.Lb.ec(this.Fa),this.ud||!this.Db.Ph(this.bh)?(t(this.ne),b=this.Om(),this.ud=!1,this.bh.Cg(this.Db)):b=this.ne):b=this.j;for(var g,d=null,e=b.length-1;0<=e;--e)g=b[e],g!==d&&(this.Hv(b[e],a),d=g);this.Qc&&(this.ne=b);this.xd||(this.nm=this.b.Ff++,a.sl(this.nm),a.Zr(1,1,1),a.gq(),
a.jy())};l.prototype.Tb=function(a){var b=0,e=0;if(this.Od=this.mk||1!==this.opacity||0<this.pa.length||0!==this.Sb){this.b.lb||(this.b.lb=a.wc(this.b.M,this.b.L,this.b.Ma));if(this.b.lb.wf!==this.b.M||this.b.lb.vf!==this.b.L)a.deleteTexture(this.b.lb),this.b.lb=a.wc(this.b.M,this.b.L,this.b.Ma);a.ad(this.b.lb);this.xd&&a.clear(0,0,0,0)}this.xd||(this.b.Ja?(a.sl(this.nm),a.Zr(this.jd[0]/255,this.jd[1]/255,this.jd[2]/255),a.gq(),a.Ay()):a.clear(this.jd[0]/255,this.jd[1]/255,this.jd[2]/255,1));this.ae=
!0;var g=this.Ha(0,0,!0,!0),b=this.Ha(0,0,!1,!0);this.ae=!1;this.b.qd&&(g=Math.round(g),b=Math.round(b));this.ml(g,b,null);g=this.gc();a.$c();a.scale(g,g);a.nl(-this.hb());a.translate((this.Ba+this.Ga)/-2,(this.Ca+this.Fa)/-2);a.Pc();this.Qc?(this.Db.left=this.Lb.cc(this.Ba),this.Db.top=this.Lb.ec(this.Ca),this.Db.right=this.Lb.cc(this.Ga),this.Db.bottom=this.Lb.ec(this.Fa),this.ud||!this.Db.Ph(this.bh)?(t(this.ne),b=this.Om(),this.ud=!1,this.bh.Cg(this.Db)):b=this.ne):b=this.j;var d,p,r=null,e=0;
for(d=b.length;e<d;++e)p=b[e],p!==r&&(this.Gv(b[e],a),r=p);this.Qc&&(this.ne=b);this.Od&&(b=this.pa.length?this.pa[0].bb:0,e=this.pa.length?this.pa[0].index:0,0===this.pa.length||1===this.pa.length&&!a.Zn(b)&&1===this.opacity?(1===this.pa.length?(a.qc(b),a.ph(this.mb.Wh(),1/this.b.M,1/this.b.L,0,0,1,1,g,this.hb(),this.Ba,this.Ca,(this.Ba+this.Ga)/2,(this.Ca+this.Fa)/2,this.b.Ya.aa,this.Ra[e]),a.hl(b)&&(this.b.xa=!0)):a.qc(0),a.ad(this.mb.Wh()),a.lf(this.opacity),a.oc(this.b.lb),a.ve(this.Nb,this.Eb),
a.$c(),a.Pc(),g=this.b.M/2,b=this.b.L/2,a.mh(-g,b,g,b,g,-b,-g,-b),a.oc(null)):this.mb.eo(a,this,null,this.mb.Wh()))};l.prototype.Gv=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.wa();var e=a.La;e.right<this.Ba||e.bottom<this.Ca||e.left>this.Ga||e.top>this.Fa||(b.sl(a.Ff),a.Qs?this.Iv(a,b):(b.qc(0),b.ve(a.Nb,a.Eb),a.Tb(b)))}};l.prototype.Hv=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.wa();var e=a.La;e.right<this.Ba||e.bottom<this.Ca||e.left>this.Ga||e.top>this.Fa||(a.Ff=this.b.Ff++,
0===a.Sb&&1===a.opacity&&a.we&&a.Cf&&(b.sl(a.Ff),a.Cf(b)))}};l.prototype.Iv=function(a,b){var e=a.pa[0].bb,g=a.pa[0].index,d=this.gc();if(1!==a.pa.length||b.Zn(e)||b.ay(e)||(a.q||a.k.hb())&&b.$i(e)||1!==a.opacity||a.type.Da.or)this.mb.eo(b,this,a,this.Od?this.b.lb:this.mb.Wh()),b.$c(),b.scale(d,d),b.nl(-this.hb()),b.translate((this.Ba+this.Ga)/-2,(this.Ca+this.Fa)/-2),b.Pc();else{b.qc(e);b.ve(a.Nb,a.Eb);b.hl(e)&&(this.b.xa=!0);var p=0,r=0,m=0,q=0;b.$i(e)&&(q=a.La,p=this.ba(q.left,q.top,!0,!0),r=this.ba(q.left,
q.top,!1,!0),m=this.ba(q.right,q.bottom,!0,!0),q=this.ba(q.right,q.bottom,!1,!0),p=p/windowWidth,r=1-r/windowHeight,m=m/windowWidth,q=1-q/windowHeight);var k;a.Cb&&a.Cb.da?(k=a.Cb.da,e=1/k.width,k=1/k.height):(e=1/a.width,k=1/a.height);b.ph(this.Od?this.b.lb:this.mb.Wh(),e,k,p,r,m,q,d,this.hb(),this.Ba,this.Ca,(this.Ba+this.Ga)/2,(this.Ca+this.Fa)/2,this.b.Ya.aa,a.Ra[g]);a.Tb(b)}};l.prototype.Ha=function(a,b,e,g){var d=this.b.devicePixelRatio;this.b.Sf&&(a*=d,b*=d);var d=this.b.Lr,p=this.b.Mr,d=(this.mb.scrollX-
d)*this.kc+d,p=(this.mb.scrollY-p)*this.lc+p,r=d,m=p,q=1/this.gc(!g);g?(r-=this.b.M*q/2,m-=this.b.L*q/2):(r-=this.b.width*q/2,m-=this.b.height*q/2);r+=a*q;m+=b*q;b=this.hb();0!==b&&(r-=d,m-=p,a=Math.cos(b),b=Math.sin(b),g=r*a-m*b,m=m*a+r*b,r=g+d,m+=p);return e?r:m};l.prototype.ba=function(a,b,e,g){var d=this.b.Lr,p=this.b.Mr,r=(this.mb.scrollX-d)*this.kc+d,m=(this.mb.scrollY-p)*this.lc+p,p=r,d=m,q=this.hb();if(0!==q){a-=r;b-=m;var k=Math.cos(-q),q=Math.sin(-q),v=a*k-b*q;b=b*k+a*q;a=v+r;b+=m}r=1/this.gc(!g);
g?(p-=this.b.M*r/2,d-=this.b.L*r/2):(p-=this.b.width*r/2,d-=this.b.height*r/2);p=(a-p)/r;d=(b-d)/r;a=this.b.devicePixelRatio;this.b.Sf&&!g&&(p/=a,d/=a);return e?p:d};l.prototype.rb=function(){var a,b,e,g={s:this.scale,a:this.q,vl:this.Ba,vt:this.Ca,vr:this.Ga,vb:this.Fa,v:this.visible,bc:this.jd,t:this.xd,px:this.kc,py:this.lc,o:this.opacity,zr:this.Wb,fx:[],cg:this.Mh,instances:[]};a=0;for(b=this.T.length;a<b;a++)e=this.T[a],g.fx.push({name:e.name,active:e.Rb,params:this.Ra[e.index]});return g};
l.prototype.Ib=function(a){var b,e,g;this.scale=a.s;this.q=a.a;this.Ba=a.vl;this.Ca=a.vt;this.Ga=a.vr;this.Fa=a.vb;this.visible=a.v;this.jd=a.bc;this.xd=a.t;this.kc=a.px;this.lc=a.py;this.opacity=a.o;this.Wb=a.zr;this.Mh=a.cg||[];Ba(this.Kc,this.vs);var d=new ba;b=0;for(g=this.Mh.length;b<g;++b)d.add(this.Mh[b]);e=b=0;for(g=this.Kc.length;b<g;++b)d.contains(this.Kc[b][2])||(this.Kc[e]=this.Kc[b],++e);Aa(this.Kc,e);e=a.fx;b=0;for(g=e.length;b<g;b++)if(a=this.Jm(e[b].name))a.Rb=e[b].active,this.Ra[a.index]=
e[b].params;this.yd();this.j.sort(k);this.tg=!0};Wb=l})();
(function(){function d(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 k(a,b){return a.index-b.index}function l(a){var b,c,e,f;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(k);a.length>=D.length&&(D.length=a.length+1);D[a.length]||(D[a.length]=[]);f=D[a.length];b=0;for(c=f.length;b<c;b++)if(e=f[b],d(a,e))return e;f.push(a);return a}
function n(a,b){this.b=a;this.Gs={};this.aq={};this.Tm=!1;this.tq=new ba;this.tm=[];this.cm=[];this.name=b[0];var c=b[1];this.We=[];var e,f;e=0;for(f=c.length;e<f;e++)this.vq(c[e],null,this.We)}function t(a){this.type=a;this.j=[];this.X=[];this.za=!0}function u(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.Ea=[];this.nf=[];this.qq=this.Fl=this.Eo=this.zk=this.group=this.ts=!1;this.sb=[];this.fd=[];this.bd=[];this.Zh="";this.Mg=this.zk=this.group=!1;this.Sj=null;c[1]&&(this.Zh=c[1][1].toLowerCase(),
this.group=!0,this.zk=!!c[1][0],this.Sj=[],this.Mg=this.zk,this.b.Me.push(this),this.b.$h[this.Zh]=this);this.Nc=c[2];this.ja=c[4];this.group||(this.b.Hp[this.ja.toString()]=this);var e=c[5];a=0;for(b=e.length;a<b;a++){var f=new Xb(this,e[a]);f.index=a;this.sb.push(f);this.Cp(f.type)}e=c[6];a=0;for(b=e.length;a<b;a++)f=new Yb(this,e[a]),f.index=a,this.fd.push(f);if(8===c.length)for(c=c[7],a=0,b=c.length;a<b;a++)this.sheet.vq(c[a],this,this.bd);this.Dk=!1;this.sb.length&&(this.Dk=null==this.sb[0].type&&
this.sb[0].Fb==M.prototype.e.Yo)}function b(a,b){var c,e,f;if(a&&(-1===b.indexOf(a)&&b.push(a),a.Vc))for(c=0,e=a.vc.length;c<e;c++)f=a.vc[c],a!==f&&-1===b.indexOf(f)&&b.push(f)}function a(a,b){this.Gc=a;this.sheet=a.sheet;this.b=a.b;this.Z=[];this.Sa=[];this.G={};this.index=-1;this.Eh=!1;this.Fb=this.b.He(b[1]);this.trigger=0<b[3];this.$p=2===b[3];this.Jd=b[4];this.Ak=b[5];this.yx=b[6];this.ja=b[7];this.b.Se[this.ja.toString()]=this;-1===b[0]?(this.type=null,this.ab=this.jo,this.uf=null,this.kd=-1):
(this.type=this.b.C[b[0]],this.ab=this.yx?this.ry:this.io,b[2]?(this.uf=this.type.qk(b[2]),this.kd=this.type.Hm(b[2])):(this.uf=null,this.kd=-1),this.Gc.parent&&this.Gc.parent.tl());this.$p&&(this.ab=this.ty);if(10===b.length){var c,e,f=b[9];c=0;for(e=f.length;c<e;c++){var g=new Zb(this,f[c]);this.Z.push(g)}this.Sa.length=f.length}}function p(a,b){this.Gc=a;this.sheet=a.sheet;this.b=a.b;this.Z=[];this.Sa=[];this.G={};this.index=-1;this.Eh=!1;this.Fb=this.b.He(b[1]);-1===b[0]?(this.type=null,this.ab=
this.jo,this.uf=null,this.kd=-1):(this.type=this.b.C[b[0]],this.ab=this.io,b[2]?(this.uf=this.type.qk(b[2]),this.kd=this.type.Hm(b[2])):(this.uf=null,this.kd=-1));this.ja=b[3];this.b.Le[this.ja.toString()]=this;if(6===b.length){var c,e,f=b[5];c=0;for(e=f.length;c<e;c++){var g=new Zb(this,f[c]);this.Z.push(g)}this.Sa.length=f.length}}function e(){r++;G.length===r&&G.push(new $b);return G[r]}function c(a,b){this.Yc=a;this.Gc=a.Gc;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.Ed=null;this.xe=0;this.get=
null;this.Op=0;this.mb=null;this.key=0;this.object=null;this.index=0;this.wj=this.mg=this.wj=this.mg=this.dq=this.Hf=this.xj=null;this.ed=!1;var c,e,f;switch(b[0]){case 0:case 7:this.Ed=new ac(this,b[1]);this.xe=0;this.get=this.Qw;break;case 1:this.Ed=new ac(this,b[1]);this.xe=0;this.get=this.Rw;break;case 5:this.Ed=new ac(this,b[1]);this.xe=0;this.get=this.Vw;break;case 3:case 8:this.Op=b[1];this.get=this.Ow;break;case 6:this.mb=this.b.qn[b[1]];this.get=this.Ww;break;case 9:this.key=b[1];this.get=
this.Uw;break;case 4:this.object=this.b.C[b[1]];this.get=this.Xw;this.Gc.Cp(this.object);this.Yc instanceof Yb?this.Gc.tl():this.Gc.parent&&this.Gc.parent.tl();break;case 10:this.index=b[1];a.type&&a.type.O?(this.get=this.Sw,this.ed=!0):this.get=this.Tw;break;case 11:this.xj=b[1];this.Hf=null;this.get=this.Pw;break;case 2:case 12:this.dq=b[1];this.get=this.Nw;break;case 13:for(this.get=this.Yw,this.mg=[],this.wj=[],c=1,e=b.length;c<e;c++)f=new Zb(this.Yc,b[c]),this.mg.push(f),this.wj.push(0)}}function f(a,
b,c){this.sheet=a;this.parent=b;this.b=a.b;this.Ea=[];this.name=c[1];this.Nl=c[2];this.Ym=c[3];this.oi=!!c[4];this.Ck=!!c[5];this.ja=c[6];this.b.zh[this.ja.toString()]=this;this.data=this.Ym;this.parent?(this.bg=this.oi||this.Ck?-1:this.b.Ey++,this.b.Tu.push(this)):(this.bg=-1,this.b.Su.push(this))}function h(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.Ea=[];this.bi=null;this.gx=c[1];this.Rb=!0}function g(){this.xs=[];this.reset(null)}var D=[];n.prototype.toString=function(){return this.name};
n.prototype.vq=function(a,b,c){switch(a[0]){case 0:a=new bc(this,b,a);if(a.Nc)for(c.push(a),c=0,b=a.sb.length;c<b;c++)a.sb[c].trigger&&this.wq(a,c);else a.Iq()?this.wq(a,0):c.push(a);break;case 1:a=new Tb(this,b,a);c.push(a);break;case 2:a=new cc(this,b,a),c.push(a)}};n.prototype.Wa=function(){var a,b;a=0;for(b=this.We.length;a<b;a++)this.We[a].Wa(a<b-1&&this.We[a+1].Dk)};n.prototype.Lo=function(){z(this.tm);z(this.cm);this.Bp(this);z(this.cm)};n.prototype.Bp=function(a){var b,c,e,f,g=a.tm,d=a.cm,
h=this.tq.dd();b=0;for(c=h.length;b<c;++b)e=h[b],f=e.bi,!e.Rb||a===f||-1<d.indexOf(f)||(d.push(f),f.Bp(a),g.push(f))};n.prototype.ab=function(a){this.b.cA||(this.Tm=!0,a||(this.b.dn=!0));var b,c;b=0;for(c=this.We.length;b<c;b++){var e=this.We[b];e.ab();this.b.mm(e.Ea);this.b.Ye&&this.b.Qb()}a||(this.b.dn=!1)};n.prototype.wq=function(a,b){a.Nc||this.b.Il.push(a);var c,e,f=a.sb[b],g;f.type?g=f.type.name:g="system";var d=(c=f.$p)?this.aq:this.Gs;d[g]||(d[g]=[]);g=d[g];d=f.Fb;if(c){if(f.Z.length&&(f=
f.Z[0],1===f.type&&2===f.Ed.type)){f=f.Ed.value.toLowerCase();c=0;for(e=g.length;c<e;c++)if(g[c].method==d){c=g[c].Qh;c[f]?c[f].push([a,b]):c[f]=[[a,b]];return}c={};c[f]=[[a,b]];g.push({method:d,Qh:c})}}else{c=0;for(e=g.length;c<e;c++)if(g[c].method==d){g[c].Qh.push([a,b]);return}V&&d===V.prototype.e.wg?g.unshift({method:d,Qh:[[a,b]]}):g.push({method:d,Qh:[[a,b]]})}};Jb=n;t.prototype.Sm=function(){return this.za?this.type.j.length:this.j.length};t.prototype.xc=function(){return this.za?this.type.j:
this.j};t.prototype.Zi=function(a){a&&(a.b.ib().Yb.Nc?(this.za&&(z(this.j),Ba(this.X,a.type.j),this.za=!1),a=this.X.indexOf(a),-1!==a&&(this.j.push(this.X[a]),this.X.splice(a,1))):(this.za=!1,z(this.j),this.j[0]=a))};qb=t;window._c2hh_="09294EACF71FB0ED2EB4508976F202859C7C7469";u.prototype.Wa=function(a){var b,c=this.parent;if(this.group)for(this.Fl=!0;c;){if(!c.group){this.Fl=!1;break}c=c.parent}this.Eo=!this.Iq()&&(!this.parent||this.parent.group&&this.parent.Fl);this.qq=!!a;this.nf=this.Ea.slice(0);
for(c=this.parent;c;){a=0;for(b=c.Ea.length;a<b;a++)this.Ru(c.Ea[a]);c=c.parent}this.Ea=l(this.Ea);this.nf=l(this.nf);a=0;for(b=this.sb.length;a<b;a++)this.sb[a].Wa();a=0;for(b=this.fd.length;a<b;a++)this.fd[a].Wa();a=0;for(b=this.bd.length;a<b;a++)this.bd[a].Wa(a<b-1&&this.bd[a+1].Dk)};u.prototype.bs=function(a){if(this.Mg!==!!a){this.Mg=!!a;var b;a=0;for(b=this.Sj.length;a<b;++a)this.Sj[a].Ks();0<b&&this.b.ya.Gf&&this.b.ya.Gf.Lo()}};u.prototype.Cp=function(a){b(a,this.Ea)};u.prototype.Ru=function(a){b(a,
this.nf)};u.prototype.tl=function(){this.ts=!0;this.parent&&this.parent.tl()};u.prototype.Iq=function(){return this.sb.length?this.sb[0].trigger:!1};u.prototype.ab=function(){var a,b,c=!1,e=this.b,f=this.b.ib();f.Yb=this;var g=this.sb;this.Dk||(f.wm=!1);if(this.Nc){0===g.length&&(c=!0);f.fb=0;for(a=g.length;f.fb<a;f.fb++)b=g[f.fb],b.trigger||(b=b.ab())&&(c=!0);(f.Yf=c)&&this.ol()}else{f.fb=0;for(a=g.length;f.fb<a;f.fb++)if(b=g[f.fb].ab(),!b){f.Yf=!1;this.Eo&&e.Ye&&e.Qb();return}f.Yf=!0;this.ol()}this.Mv(f)};
u.prototype.Mv=function(a){a.Yf&&this.qq&&(a.wm=!0);this.Eo&&this.b.Ye&&this.b.Qb()};u.prototype.oy=function(a){this.b.ib().Yb=this;this.sb[a].ab()&&(this.ol(),this.b.ib().Yf=!0)};u.prototype.ol=function(){var a=this.b.ib(),b;a.tc=0;for(b=this.fd.length;a.tc<b;a.tc++)if(this.fd[a.tc].ab())return;this.Xr()};u.prototype.ly=function(){var a=this.b.ib(),b;for(b=this.fd.length;a.tc<b;a.tc++)if(this.fd[a.tc].ab())return;this.Xr()};u.prototype.Xr=function(){if(this.bd.length){var a,b,c,e,f=this.bd.length-
1;this.b.jl(this);if(this.ts)for(a=0,b=this.bd.length;a<b;a++)c=this.bd[a],(e=!this.Fl||!this.group&&a<f)&&this.b.il(c.Ea),c.ab(),e?this.b.gg(c.Ea):this.b.mm(c.Ea);else for(a=0,b=this.bd.length;a<b;a++)this.bd[a].ab();this.b.el()}};u.prototype.qy=function(){var a=this.b.ib();a.Yb=this;var b=!1,c;a.fb=0;for(c=this.sb.length;a.fb<c;a.fb++)if(this.sb[a.fb].ab())b=!0;else if(!this.Nc)return!1;return this.Nc?b:!0};u.prototype.my=function(){this.b.Rh++;var a=this.b.ib().fb,b=this.b.jl(this);if(!this.Nc)for(b.fb=
a+1,a=this.sb.length;b.fb<a;b.fb++)if(!this.sb[b.fb].ab()){this.b.el();return}this.ol();this.b.el()};u.prototype.rx=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.sb[b].type===a.type)return!1;return!0};bc=u;a.prototype.Wa=function(){var a,b,c;a=0;for(b=this.Z.length;a<b;a++)c=this.Z[a],c.Wa(),c.ed&&(this.Eh=!0)};a.prototype.ty=function(){return!0};a.prototype.jo=function(){var a,b;a=0;for(b=this.Z.length;a<b;a++)this.Sa[a]=this.Z[a].get();return Ta(this.Fb.apply(this.b.Qd,this.Sa),
this.Ak)};a.prototype.ry=function(){var a,b;a=0;for(b=this.Z.length;a<b;a++)this.Sa[a]=this.Z[a].get();a=this.Fb.apply(this.uf?this.uf:this.type,this.Sa);this.type.Rc();return a};a.prototype.io=function(){var a,b,c,e,f,g,d,h,p=this.type,r=p.ma(),k=this.Gc.Nc&&!this.trigger;b=0;var t=p.Vc,l=p.O,u=p.ee,n=this.kd,D=-1<n,G=this.Eh,w=this.Z,H=this.Sa,N=this.Ak,U=this.Fb,I;if(G)for(b=0,f=w.length;b<f;++b)g=w[b],g.ed||(H[b]=g.get(0));else for(b=0,f=w.length;b<f;++b)H[b]=w[b].get(0);if(r.za){z(r.j);z(r.X);
I=p.j;a=0;for(e=I.length;a<e;++a){h=I[a];if(G)for(b=0,f=w.length;b<f;++b)g=w[b],g.ed&&(H[b]=g.get(a));D?(b=0,l&&(b=h.type.Hg[u]),b=U.apply(h.J[n+b],H)):b=U.apply(h,H);(d=Ta(b,N))?r.j.push(h):k&&r.X.push(h)}p.finish&&p.finish(!0);r.za=!1;p.Rc();return r.Sm()}c=0;I=(d=k&&!this.Gc.rx(this))?r.X:r.j;var F=!1;a=0;for(e=I.length;a<e;++a){h=I[a];if(G)for(b=0,f=w.length;b<f;++b)g=w[b],g.ed&&(H[b]=g.get(a));D?(b=0,l&&(b=h.type.Hg[u]),b=U.apply(h.J[n+b],H)):b=U.apply(h,H);if(Ta(b,N))if(F=!0,d){if(r.j.push(h),
t)for(b=0,f=h.siblings.length;b<f;b++)g=h.siblings[b],g.type.ma().j.push(g)}else{I[c]=h;if(t)for(b=0,f=h.siblings.length;b<f;b++)g=h.siblings[b],g.type.ma().j[c]=g;c++}else if(d){I[c]=h;if(t)for(b=0,f=h.siblings.length;b<f;b++)g=h.siblings[b],g.type.ma().X[c]=g;c++}else if(k&&(r.X.push(h),t))for(b=0,f=h.siblings.length;b<f;b++)g=h.siblings[b],g.type.ma().X.push(g)}Aa(I,c);if(t)for(l=p.vc,a=0,e=l.length;a<e;a++)h=l[a].ma(),d?Aa(h.X,c):Aa(h.j,c);c=F;if(d&&!F)for(a=0,e=r.j.length;a<e;a++){h=r.j[a];if(G)for(b=
0,f=w.length;b<f;b++)g=w[b],g.ed&&(H[b]=g.get(a));b=D?U.apply(h.J[n],H):U.apply(h,H);if(Ta(b,N)){F=!0;break}}p.finish&&p.finish(c||k);return k?F:r.Sm()};Xb=a;p.prototype.Wa=function(){var a,b,c;a=0;for(b=this.Z.length;a<b;a++)c=this.Z[a],c.Wa(),c.ed&&(this.Eh=!0)};p.prototype.jo=function(){var a=this.b,b,c,e=this.Z,f=this.Sa;b=0;for(c=e.length;b<c;++b)f[b]=e[b].get();return this.Fb.apply(a.Qd,f)};p.prototype.io=function(){var a=this.type,b=this.kd,c=a.ee,e=this.Eh,f=this.Z,g=this.Sa,d=this.Fb,h=a.ma().xc(),
a=a.O,p=-1<b,r,k,t,l,u,n;if(e)for(k=0,l=f.length;k<l;++k)u=f[k],u.ed||(g[k]=u.get(0));else for(k=0,l=f.length;k<l;++k)g[k]=f[k].get(0);r=0;for(t=h.length;r<t;++r){n=h[r];if(e)for(k=0,l=f.length;k<l;++k)u=f[k],u.ed&&(g[k]=u.get(r));p?(k=0,a&&(k=n.type.Hg[c]),d.apply(n.J[b+k],g)):d.apply(n,g)}return!1};Yb=p;var G=[],r=-1;c.prototype.Wa=function(){var a,b;if(11===this.type)this.Hf=this.b.lq(this.xj,this.Gc.parent);else if(13===this.type)for(a=0,b=this.mg.length;a<b;a++)this.mg[a].Wa();this.Ed&&this.Ed.Wa()};
c.prototype.Dx=function(a){this.ed||!a||a.Da.xl||(this.ed=!0)};c.prototype.gs=function(){this.ed=!0};c.prototype.Qw=function(a){this.xe=a||0;a=e();this.Ed.get(a);r--;return a.data};c.prototype.Rw=function(a){this.xe=a||0;a=e();this.Ed.get(a);r--;return ia(a.data)?a.data:""};c.prototype.Xw=function(){return this.object};c.prototype.Ow=function(){return this.Op};c.prototype.Vw=function(a){this.xe=a||0;a=e();this.Ed.get(a);r--;return a.tb()?this.b.ge(a.data):this.b.Vh(a.data)};c.prototype.Ww=function(){return this.mb};
c.prototype.Uw=function(){return this.key};c.prototype.Tw=function(){return this.index};c.prototype.Sw=function(a){a=a||0;var b=this.Yc.type,c=null,c=b.ma(),e=c.xc();if(e.length)c=e[a%e.length].type;else if(c.X.length)c=c.X[a%c.X.length].type;else if(b.j.length)c=b.j[a%b.j.length].type;else return 0;return this.index+c.fk[b.ee]};c.prototype.Pw=function(){return this.Hf};c.prototype.Nw=function(){return this.dq};c.prototype.Yw=function(){var a,b;a=0;for(b=this.mg.length;a<b;a++)this.wj[a]=this.mg[a].get();
return this.wj};Zb=c;f.prototype.Wa=function(){this.Ea=l(this.Ea)};f.prototype.lg=function(a){var b=this.b.kq();this.parent&&!this.oi&&b?(this.bg>=b.length&&(b.length=this.bg+1),b[this.bg]=a):this.data=a};f.prototype.Xh=function(){var a=this.b.kq();return!this.parent||this.oi||!a||this.Ck?this.data:this.bg>=a.length||"undefined"===typeof a[this.bg]?this.Ym:a[this.bg]};f.prototype.ab=function(){!this.parent||this.oi||this.Ck||this.lg(this.Ym)};Tb=f;h.prototype.toString=function(){return"include:"+
this.bi.toString()};h.prototype.Wa=function(){this.bi=this.b.ym[this.gx];this.sheet.tq.add(this);this.Ea=l(this.Ea);for(var a=this.parent;a;)a.group&&a.Sj.push(this),a=a.parent;this.Ks()};h.prototype.ab=function(){this.parent&&this.b.bj(this.b.C);this.bi.Tm||this.bi.ab(!0);this.parent&&this.b.gg(this.b.C)};h.prototype.Ks=function(){for(var a=this.parent;a;){if(a.group&&!a.Mg){this.Rb=!1;return}a=a.parent}this.Rb=!0};cc=h;g.prototype.reset=function(a){this.Yb=a;this.tc=this.fb=0;z(this.xs);this.wm=
this.Yf=!1};Sb=g})();
(function(){function d(b,a){this.Yc=b;this.b=b.b;this.type=a[0];this.get=[this.dw,this.$v,this.mw,this.qw,this.Pv,this.ow,this.hw,this.Xv,this.gw,this.lw,this.Qv,this.kw,this.Yv,this.iw,this.ew,this.fw,this.aw,this.bw,this.Wv,this.pw,this.jw,this.cw,this.Vv,this.Zv][this.type];var d=null;this.oe=this.Z=this.Sa=this.Fb=this.Dl=this.second=this.first=this.value=null;this.kd=-1;this.md=null;this.Rs=-1;this.Hf=this.xj=null;this.oh=!1;switch(this.type){case 0:case 1:case 2:this.value=a[1];break;case 3:this.first=
new ac(b,a[1]);break;case 18:this.first=new ac(b,a[1]);this.second=new ac(b,a[2]);this.Dl=new ac(b,a[3]);break;case 19:this.Fb=this.b.He(a[1]);this.Fb!==M.prototype.Aa.random&&this.Fb!==M.prototype.Aa.gv||this.Yc.gs();this.Sa=[];this.Z=[];3===a.length?(d=a[2],this.Sa.length=d.length+1):this.Sa.length=1;break;case 20:this.oe=this.b.C[a[1]];this.kd=-1;this.Fb=this.b.He(a[2]);this.oh=a[3];fc.Function&&this.Fb===fc.Function.prototype.Aa.$y&&this.Yc.gs();a[4]?this.md=new ac(b,a[4]):this.md=null;this.Sa=
[];this.Z=[];6===a.length?(d=a[5],this.Sa.length=d.length+1):this.Sa.length=1;break;case 21:this.oe=this.b.C[a[1]];this.oh=a[2];a[3]?this.md=new ac(b,a[3]):this.md=null;this.Rs=a[4];break;case 22:this.oe=this.b.C[a[1]];this.oe.qk(a[2]);this.kd=this.oe.Hm(a[2]);this.Fb=this.b.He(a[3]);this.oh=a[4];a[5]?this.md=new ac(b,a[5]):this.md=null;this.Sa=[];this.Z=[];7===a.length?(d=a[6],this.Sa.length=d.length+1):this.Sa.length=1;break;case 23:this.xj=a[1],this.Hf=null}this.Yc.Dx(this.oe);4<=this.type&&17>=
this.type&&(this.first=new ac(b,a[1]),this.second=new ac(b,a[2]));if(d){var e,c;e=0;for(c=d.length;e<c;e++)this.Z.push(new ac(b,d[e]))}}function k(){++u;t.length===u&&t.push(new $b);return t[u]}function l(b,a,d){var e,c;e=0;for(c=b.length;e<c;++e)b[e].get(d),a[e+1]=d.data}function n(b,a){this.type=b||dc.vg;this.data=a||0;this.fg=null;this.type==dc.vg&&(this.data=Math.floor(this.data))}d.prototype.Wa=function(){23===this.type&&(this.Hf=this.Yc.b.lq(this.xj,this.Yc.Gc.parent));this.first&&this.first.Wa();
this.second&&this.second.Wa();this.Dl&&this.Dl.Wa();this.md&&this.md.Wa();if(this.Z){var b,a;b=0;for(a=this.Z.length;b<a;b++)this.Z[b].Wa()}};var t=[],u=-1;d.prototype.pw=function(b){var a=this.Z,d=this.Sa;d[0]=b;b=k();l(a,d,b);--u;this.Fb.apply(this.b.Qd,d)};d.prototype.jw=function(b){var a=this.oe,d=this.Sa,e=this.Z,c=this.md,f=this.Fb,h=this.Yc.xe,g=a.ma(),t=g.xc();if(!t.length)if(g.X.length)t=g.X;else{this.oh?b.Mb(""):b.Ka(0);return}d[0]=b;b.fg=a;b=k();l(e,d,b);c&&(c.get(b),b.tb()&&(h=b.data,
t=a.j));--u;a=t.length;if(h>=a||h<=-a)h%=a;0>h&&(h+=a);f.apply(t[h],d)};d.prototype.Vv=function(b){var a=this.oe,d=this.Sa,e=this.Z,c=this.md,f=this.kd,h=this.Fb,g=this.Yc.xe,t=a.ma(),n=t.xc();if(!n.length)if(t.X.length)n=t.X;else{this.oh?b.Mb(""):b.Ka(0);return}d[0]=b;b.fg=a;b=k();l(e,d,b);c&&(c.get(b),b.tb()&&(g=b.data,n=a.j));--u;e=n.length;if(g>=e||g<=-e)g%=e;0>g&&(g+=e);g=n[g];n=0;a.O&&(n=g.type.Hg[a.ee]);h.apply(g.J[f+n],d)};d.prototype.cw=function(b){var a=this.md,d=this.oe,e=this.Rs,c=this.Yc.xe,
f=d.ma(),h=f.xc();if(!h.length)if(f.X.length)h=f.X;else{this.oh?b.Mb(""):b.Ka(0);return}if(a){f=k();a.get(f);if(f.tb()){c=f.data;h=d.j;0!==h.length&&(c%=h.length,0>c&&(c+=h.length));c=d.Mm(c);d=c.kb[e];ia(d)?b.Mb(d):b.H(d);--u;return}--u}a=h.length;if(c>=a||c<=-a)c%=a;0>c&&(c+=a);c=h[c];h=0;d.O&&(h=c.type.fk[d.ee]);d=c.kb[e+h];ia(d)?b.Mb(d):b.H(d)};d.prototype.dw=function(b){b.type=dc.vg;b.data=this.value};d.prototype.$v=function(b){b.type=dc.ug;b.data=this.value};d.prototype.mw=function(b){b.type=
dc.String;b.data=this.value};d.prototype.qw=function(b){this.first.get(b);b.tb()&&(b.data=-b.data)};d.prototype.Pv=function(b){this.first.get(b);var a=k();this.second.get(a);b.tb()&&a.tb()&&(b.data+=a.data,a.Sg()&&b.fh());--u};d.prototype.ow=function(b){this.first.get(b);var a=k();this.second.get(a);b.tb()&&a.tb()&&(b.data-=a.data,a.Sg()&&b.fh());--u};d.prototype.hw=function(b){this.first.get(b);var a=k();this.second.get(a);b.tb()&&a.tb()&&(b.data*=a.data,a.Sg()&&b.fh());--u};d.prototype.Xv=function(b){this.first.get(b);
var a=k();this.second.get(a);b.tb()&&a.tb()&&(b.data/=a.data,b.fh());--u};d.prototype.gw=function(b){this.first.get(b);var a=k();this.second.get(a);b.tb()&&a.tb()&&(b.data%=a.data,a.Sg()&&b.fh());--u};d.prototype.lw=function(b){this.first.get(b);var a=k();this.second.get(a);b.tb()&&a.tb()&&(b.data=Math.pow(b.data,a.data),a.Sg()&&b.fh());--u};d.prototype.Qv=function(b){this.first.get(b);var a=k();this.second.get(a);a.Vg()||b.Vg()?this.Sv(b,a):this.Rv(b,a);--u};d.prototype.Sv=function(b,a){b.Vg()&&
a.Vg()?this.Uv(b,a):this.Tv(b,a)};d.prototype.Uv=function(b,a){b.data+=a.data};d.prototype.Tv=function(b,a){b.Vg()?b.data+=(Math.round(1E10*a.data)/1E10).toString():b.Mb(b.data.toString()+a.data)};d.prototype.Rv=function(b,a){b.Ka(b.data&&a.data?1:0)};d.prototype.kw=function(b){this.first.get(b);var a=k();this.second.get(a);b.tb()&&a.tb()&&(b.data||a.data?b.Ka(1):b.Ka(0));--u};d.prototype.Wv=function(b){this.first.get(b);b.data?this.second.get(b):this.Dl.get(b)};d.prototype.Yv=function(b){this.first.get(b);
var a=k();this.second.get(a);b.Ka(b.data===a.data?1:0);--u};d.prototype.iw=function(b){this.first.get(b);var a=k();this.second.get(a);b.Ka(b.data!==a.data?1:0);--u};d.prototype.ew=function(b){this.first.get(b);var a=k();this.second.get(a);b.Ka(b.data<a.data?1:0);--u};d.prototype.fw=function(b){this.first.get(b);var a=k();this.second.get(a);b.Ka(b.data<=a.data?1:0);--u};d.prototype.aw=function(b){this.first.get(b);var a=k();this.second.get(a);b.Ka(b.data>a.data?1:0);--u};d.prototype.bw=function(b){this.first.get(b);
var a=k();this.second.get(a);b.Ka(b.data>=a.data?1:0);--u};d.prototype.Zv=function(b){var a=this.Hf.Xh();ha(a)?b.H(a):b.Mb(a)};ac=d;n.prototype.Sg=function(){return this.type===dc.ug};n.prototype.tb=function(){return this.type===dc.vg||this.type===dc.ug};n.prototype.Vg=function(){return this.type===dc.String};n.prototype.fh=function(){this.Sg()||(this.Vg()&&(this.data=parseFloat(this.data)),this.type=dc.ug)};n.prototype.Ka=function(b){this.type=dc.vg;this.data=Math.floor(b)};n.prototype.H=function(b){this.type=
dc.ug;this.data=b};n.prototype.Mb=function(b){this.type=dc.String;this.data=b};n.prototype.Cy=function(b){ha(b)?(this.type=dc.ug,this.data=b):ia(b)?(this.type=dc.String,this.data=b.toString()):(this.type=dc.vg,this.data=0)};$b=n;dc={vg:0,ug:1,String:2}})();function M(d){this.b=d;this.sc=[]}
M.prototype.rb=function(){var d={},k,l,n,t,u,b,a,p;d.waits=[];var e=d.waits,c;k=0;for(l=this.sc.length;k<l;k++){b=this.sc[k];c={t:b.time,st:b.rs,s:b.to,ev:b.Fg.ja,sm:[],sols:{}};b.Fg.fd[b.tc]&&(c.act=b.Fg.fd[b.tc].ja);n=0;for(t=b.Ea.length;n<t;n++)c.sm.push(b.Ea[n].ja);for(u in b.Zb)if(b.Zb.hasOwnProperty(u)){a=this.b.C[parseInt(u,10)];p={sa:b.Zb[u].pl,insts:[]};n=0;for(t=b.Zb[u].he.length;n<t;n++)p.insts.push(b.Zb[u].he[n].uid);c.sols[a.ja.toString()]=p}e.push(c)}return d};
M.prototype.Ib=function(d){d=d.waits;var k,l,n,t,u,b,a,p,e,c,f;z(this.sc);k=0;for(l=d.length;k<l;k++)if(b=d[k],p=this.b.Hp[b.ev.toString()]){e=-1;n=0;for(t=p.fd.length;n<t;n++)if(p.fd[n].ja===b.act){e=n;break}if(-1!==e){a={Zb:{},Ea:[],um:!1};a.time=b.t;a.rs=b.st||"";a.to=!!b.s;a.Fg=p;a.tc=e;n=0;for(t=b.sm.length;n<t;n++)(p=this.b.tk(b.sm[n]))&&a.Ea.push(p);for(u in b.sols)if(b.sols.hasOwnProperty(u)&&(p=this.b.tk(parseInt(u,10)))){e=b.sols[u];c={pl:e.sa,he:[]};n=0;for(t=e.insts.length;n<t;n++)(f=
this.b.Kg(e.insts[n]))&&c.he.push(f);a.Zb[p.index.toString()]=c}this.sc.push(a)}}};
(function(){function d(){}function k(){}function l(){}var n=M.prototype;d.prototype.mt=function(){return!0};d.prototype.lp=function(){return!0};d.prototype.$t=function(){return!0};d.prototype.ht=function(b,a){var d=this.b.Ya.aa;if(0===b){var e=this.b.Uh();return!e.G.CompareTime_executed&&d>=a?e.G.CompareTime_executed=!0:!1}return ec(d,b,a)};d.prototype.lt=function(b){var a=this.b.Uh(),d=a.G.Every_lastTime||0,e=this.b.Ya.aa;"undefined"===typeof a.G.Every_seconds&&(a.G.Every_seconds=b);var c=a.G.Every_seconds;
if(e>=d+c)return a.G.Every_lastTime=d+c,e>=a.G.Every_lastTime+.04&&(a.G.Every_lastTime=e),a.G.Every_seconds=b,!0;e<d-.1&&(a.G.Every_lastTime=e);return!1};d.prototype.it=function(b,a,d){return ec(b.Xh(),a,d)};d.prototype.At=function(b){return(b=this.b.$h[b.toLowerCase()])&&b.Mg};d.prototype.Yo=function(){var b=this.b.ib();return b.wm?!1:!b.Yf};d.prototype.mp=function(){return!0};d.prototype.bp=function(){return!0};d.prototype.Sl=function(){return!0};d.prototype.tp=function(){return!0};d.prototype.au=
function(){return!0};d.prototype.Cj=function(){return!0};d.prototype.Xs=function(b,a,d){return Oa(L(b),L(d))<=L(a)};d.prototype.xt=function(b,a){return Qa(L(b),L(a))};d.prototype.wt=function(b,a,d){b=Ka(b);a=Ka(a);d=Ka(d);return Qa(d,a)?Qa(b,a)&&!Qa(b,d):!(!Qa(b,a)&&Qa(b,d))};n.e=new d;k.prototype.nt=function(b){this.b.Wg||this.b.xf||(this.b.xf=b)};k.prototype.Cu=function(b,a){0===b.Nl?ha(a)?b.lg(a):b.lg(parseFloat(a)):1===b.Nl&&b.lg(a.toString())};k.prototype.Vs=function(b,a){0===b.Nl?ha(a)?b.lg(b.Xh()+
a):b.lg(b.Xh()+parseFloat(a)):1===b.Nl&&b.lg(b.Xh()+a.toString())};var t=[],u=[];k.prototype.Ku=function(b){if(!(0>b)){var a,d,e,c=this.b.ib(),f;t.length?f=t.pop():f={Zb:{},Ea:[]};f.um=!1;f.time=this.b.Ya.aa+b;f.rs="";f.to=!1;f.Fg=c.Yb;f.tc=c.tc+1;b=0;for(a=this.b.C.length;b<a;b++)e=this.b.C[b],d=e.ma(),d.za&&-1===c.Yb.Ea.indexOf(e)||(f.Ea.push(e),e=void 0,u.length?e=u.pop():e={he:[]},e.pl=!1,e.pl=d.za,Ba(e.he,d.j),f.Zb[b.toString()]=e);this.sc.push(f);return!0}};k.prototype.pu=function(){if(!this.b.Wg&&
!this.b.xf&&this.b.ya){this.b.xf=this.b.ya;var b,a,d;b=0;for(a=this.b.Me.length;b<a;b++)d=this.b.Me[b],d.bs(d.zk)}};k.prototype.Hu=function(b,a){this.b.Up(0===b?"image/png":"image/jpeg",a/100)};n.A=new k;l.prototype["int"]=function(b,a){ia(a)?(b.Ka(parseInt(a,10)),isNaN(b.data)&&(b.data=0)):b.Ka(a)};l.prototype["float"]=function(b,a){ia(a)?(b.H(parseFloat(a)),isNaN(b.data)&&(b.data=0)):b.H(a)};l.prototype.random=function(b,a,d){void 0===d?b.H(Math.random()*a):b.H(Math.random()*(d-a)+a)};l.prototype.sqrt=
function(b,a){b.H(Math.sqrt(a))};l.prototype.abs=function(b,a){b.H(Math.abs(a))};l.prototype.round=function(b,a){b.Ka(Math.round(a))};l.prototype.floor=function(b,a){b.Ka(Math.floor(a))};l.prototype.ceil=function(b,a){b.Ka(Math.ceil(a))};l.prototype.sin=function(b,a){b.H(Math.sin(L(a)))};l.prototype.cos=function(b,a){b.H(Math.cos(L(a)))};l.prototype.tan=function(b,a){b.H(Math.tan(L(a)))};l.prototype.asin=function(b,a){b.H(Ga(Math.asin(a)))};l.prototype.acos=function(b,a){b.H(Ga(Math.acos(a)))};l.prototype.atan=
function(b,a){b.H(Ga(Math.atan(a)))};l.prototype.exp=function(b,a){b.H(Math.exp(a))};l.prototype.log10=function(b,a){b.H(Math.log(a)/Math.LN10)};l.prototype.max=function(b){var a=arguments[1];"number"!==typeof a&&(a=0);var d,e,c;d=2;for(e=arguments.length;d<e;d++)c=arguments[d],"number"===typeof c&&a<c&&(a=c);b.H(a)};l.prototype.min=function(b){var a=arguments[1];"number"!==typeof a&&(a=0);var d,e,c;d=2;for(e=arguments.length;d<e;d++)c=arguments[d],"number"===typeof c&&a>c&&(a=c);b.H(a)};l.prototype.Df=
function(b){b.H(this.b.Df)};l.prototype.qg=function(b){b.H(this.b.qg)};l.prototype.time=function(b){b.H(this.b.Ya.aa)};l.prototype.wd=function(b){b.Ka(this.b.wd)};l.prototype.Wk=function(b){b.Ka(this.b.Wk)};l.prototype.Em=function(b){b.Ka(this.b.Em)};l.prototype.q=function(b,a,d,e,c){b.H(Ga(Na(a,d,e,c)))};l.prototype.left=function(b,a,d){b.Mb(ia(a)?a.substr(0,d):"")};l.prototype.right=function(b,a,d){b.Mb(ia(a)?a.substr(a.length-d):"")};l.prototype.replace=function(b,a,d,e){ia(a)&&ia(d)&&ia(e)?b.Mb(a.replace(new RegExp(fb(d),
"gi"),e)):b.Mb(ia(a)?a:"")};l.prototype.trim=function(b,a){b.Mb(ia(a)?a.trim():"")};l.prototype.gv=function(b){var a=qa(Math.random()*(arguments.length-1));b.Cy(arguments[a+1])};l.prototype.om=function(b){b.H(this.b.om/1E3)};l.prototype.dh=function(b){b.H(this.b.dh)};l.prototype.av=function(b){b.Mb(this.b.wo)};n.Aa=new l;n.ny=function(){var b,a,d,e,c,f,h=this.b.ib();b=0;for(d=this.sc.length;b<d;b++){e=this.sc[b];if(-1===e.time){if(!e.to)continue}else if(e.time>this.b.Ya.aa)continue;h.Yb=e.Fg;h.tc=
e.tc;h.fb=0;for(a in e.Zb)e.Zb.hasOwnProperty(a)&&(c=this.b.C[parseInt(a,10)].ma(),f=e.Zb[a],c.za=f.pl,Ba(c.j,f.he),c=f,z(c.he),u.push(c));e.Fg.ly();this.b.mm(e.Ea);e.um=!0}a=b=0;for(d=this.sc.length;b<d;b++)e=this.sc[b],this.sc[a]=e,e.um?(Va(e.Zb),z(e.Ea),t.push(e)):a++;Aa(this.sc,a)}})();
(function(){pb=function(d,l){var n=d[1],t=d[3],u=d[4],b=d[5],a=d[6],p=d[7],e=d[8];l.e||(l.e={});l.A||(l.A={});l.Aa||(l.Aa={});var c=l.e,f=l.A,h=l.Aa;t&&(c.jt=function(a,b){return ec(this.x,a,b)},c.kt=function(a,b){return ec(this.y,a,b)},c.Ft=function(){var a=this.k;this.wa();var b=this.La;return!(b.right<a.Ba||b.bottom<a.Ca||b.left>a.Ga||b.top>a.Fa)},c.gz=function(){this.wa();var a=this.La,b=this.b.ya;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},c.rz=function(a,b,c){var e=this.ma(),
f=e.xc();if(!f.length)return!1;var d=f[0],h=d,p=Sa(d.x,d.y,b,c),k,t,l;k=1;for(t=f.length;k<t;k++)if(d=f[k],l=Sa(d.x,d.y,b,c),0===a&&l<p||1===a&&l>p)p=l,h=d;e.Zi(h);return!0},f.Fu=function(a){this.x!==a&&(this.x=a,this.F())},f.Gu=function(a){this.y!==a&&(this.y=a,this.F())},f.Vl=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.F()},f.Au=function(a,b){var c=a.Hw(this);if(c){var e;c.Lm?(e=c.Lm(b,!0),c=c.Lm(b,!1)):(e=c.x,c=c.y);if(this.x!==e||this.y!==c)this.x=e,this.y=c,this.F()}},f.kz=
function(a){0!==a&&(this.x+=Math.cos(this.q)*a,this.y+=Math.sin(this.q)*a,this.F())},f.jz=function(a,b){0!==b&&(this.x+=Math.cos(L(a))*b,this.y+=Math.sin(L(a))*b,this.F())},h.Xl=function(a){a.H(this.x)},h.Yl=function(a){a.H(this.y)},h.Df=function(a){a.H(this.b.rk(this))});u&&(c.bz=function(a,b){return ec(this.width,a,b)},c.az=function(a,b){return ec(this.height,a,b)},f.Eu=function(a){this.width!==a&&(this.width=a,this.F())},f.wu=function(a){this.height!==a&&(this.height=a,this.F())},f.Bu=function(a,
b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.F()},h.Hz=function(a){a.H(this.width)},h.pt=function(a){a.H(this.height)},h.Xy=function(a){this.wa();a.H(this.La.left)},h.Zy=function(a){this.wa();a.H(this.La.top)},h.Yy=function(a){this.wa();a.H(this.La.right)},h.Wy=function(a){this.wa();a.H(this.La.bottom)});b&&(c.Xs=function(a,b){return Oa(this.q,L(b))<=L(a)},c.xt=function(a){return Qa(this.q,L(a))},c.wt=function(a,b){var c=Ka(a),e=Ka(b),f=Ia(this.q);return Qa(e,c)?Qa(f,c)&&
!Qa(f,e):!(!Qa(f,c)&&Qa(f,e))},f.qu=function(a){a=L(Ha(a));isNaN(a)||this.q===a||(this.q=a,this.F())},f.wz=function(a){0===a||isNaN(a)||(this.q+=L(a),this.q=Ia(this.q),this.F())},f.xz=function(a){0===a||isNaN(a)||(this.q-=L(a),this.q=Ia(this.q),this.F())},f.yz=function(a,b){var c=Pa(this.q,L(b),L(a));isNaN(c)||this.q===c||(this.q=c,this.F())},f.zz=function(a,b,c){a=Pa(this.q,Math.atan2(c-this.y,b-this.x),L(a));isNaN(a)||this.q===a||(this.q=a,this.F())},f.Dz=function(a,b){var c=Math.atan2(b-this.y,
a-this.x);isNaN(c)||this.q===c||(this.q=c,this.F())},h.Ws=function(a){a.H(Ja(this.q))});n||(c.et=function(a,b,c){return ec(this.kb[a],b,c)},c.ez=function(a){return this.kb[a]},c.sz=function(a,b){var c=this.ma(),e=c.xc();if(!e.length)return!1;var f=e[0],d=f,h=f.kb[b],p,k,t;p=1;for(k=e.length;p<k;p++)if(f=e[p],t=f.kb[b],0===a&&t<h||1===a&&t>h)h=t,d=f;c.Zi(d);return!0},c.qz=function(a){var b,c,e,f,d;if(this.b.Uh().Ak){d=this.ma();if(d.za)for(d.za=!1,z(d.j),z(d.X),e=this.j,b=0,c=e.length;b<c;b++)f=e[b],
f.uid===a?d.X.push(f):d.j.push(f);else{e=b=0;for(c=d.j.length;b<c;b++)f=d.j[b],d.j[e]=f,f.uid===a?d.X.push(f):e++;Aa(d.j,e)}this.Rc();return!!d.j.length}f=this.b.Kg(a);if(!f)return!1;d=this.ma();if(!d.za&&-1===d.j.indexOf(f))return!1;if(this.O)for(a=f.type.Pa,b=0,c=a.length;b<c;b++){if(a[b]===this)return d.Zi(f),this.Rc(),!0}else if(f.type===this)return d.Zi(f),this.Rc(),!0;return!1},c.dp=function(){return!0},c.ep=function(){return!0},f.xu=function(a,b){var c=this.kb;ha(c[a])?c[a]=ha(b)?b:parseFloat(b):
ia(c[a])&&(c[a]=ia(b)?b:b.toString())},f.Us=function(a,b){var c=this.kb;ha(c[a])?c[a]=ha(b)?c[a]+b:c[a]+parseFloat(b):ia(c[a])&&(c[a]=ia(b)?c[a]+b:c[a]+b.toString())},f.Ez=function(a,b){var c=this.kb;ha(c[a])&&(c[a]=ha(b)?c[a]-b:c[a]-parseFloat(b))},f.Az=function(a,b){this.kb[a]=b?1:0},f.Fz=function(a){this.kb[a]=1-this.kb[a]},f.Xo=function(){this.b.rf(this)},f.Lt||(f.Lt=function(a){var b,c;try{b=JSON.parse(a)}catch(e){return}this.b.Kk(this,b,!0);this.Ad&&this.Ad();if(this.J)for(a=0,b=this.J.length;a<
b;++a)c=this.J[a],c.Ad&&c.Ad()}),h.cz=function(a){var b=a.fg.j.length,c,e,f;c=0;for(e=this.b.ld.length;c<e;c++)f=this.b.ld[c],a.fg.O?0<=f.type.Pa.indexOf(a.fg)&&b++:f.type===a.fg&&b++;a.Ka(b)},h.vz=function(a){a.Ka(a.fg.ma().xc().length)},h.Gz=function(a){a.Ka(this.uid)},h.dz=function(a){a.Ka(this.Yh())},h.Ys||(h.Ys=function(a){a.Mb(JSON.stringify(this.b.ko(this,!0)))}));a&&(c.Jt=function(){return this.visible},f.sf=function(a){!a!==!this.visible&&(this.visible=!!a,this.b.xa=!0)},c.gt=function(a,
b){return ec(lb(100*this.opacity),a,b)},f.zu=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.xa=!0)},h.Opacity=function(a){a.H(lb(100*this.opacity))});p&&(c.fz=function(a){return a?this.k===a:!1},c.uz=function(a){var b=this.ma(),c=b.xc();if(!c.length)return!1;var e=c[0],f=e,d,h;d=1;for(h=c.length;d<h;d++)if(e=c[d],0===a){if(e.k.index>f.k.index||e.k.index===f.k.index&&e.Uc()>f.Uc())f=e}else if(e.k.index<f.k.index||e.k.index===f.k.index&&e.Uc()<f.Uc())f=e;b.Zi(f);return!0},
f.nz=function(){var a=this.k,b=a.j;b.length&&b[b.length-1]===this||(a.nh(this,!1),a.Gh(this,!1),this.b.xa=!0)},f.lz=function(){var a=this.k,b=a.j;b.length&&b[0]===this||(a.nh(this,!1),a.Zx(this),this.b.xa=!0)},f.mz=function(a){a&&a!=this.k&&(this.k.nh(this,!0),this.k=a,a.Gh(this,!0),this.b.xa=!0)},f.Jz=function(a,b){var c=0===a;if(b){var e=b.Bw(this);e&&e.uid!==this.uid&&(this.k.index!==e.k.index&&(this.k.nh(this,!0),this.k=e.k,e.k.Gh(this,!0)),this.k.Ex(this,e,c),this.b.xa=!0)}},h.iz=function(a){a.Ka(this.k.ur)},
h.hz=function(a){a.Mb(this.k.name)},h.Iz=function(a){a.Ka(this.Uc())});e&&(f.Bz=function(a,b){if(this.b.B){var c=this.type.Km(b);if(!(0>c)){var e=1===a;this.Ke[c]!==e&&(this.Ke[c]=e,this.yd(),this.b.xa=!0)}}},f.Cz=function(a,b,c){if(this.b.B){var e=this.type.Km(a);0>e||(a=this.type.T[e],e=this.Ra[e],b=Math.floor(b),0>b||b>=e.length||(1===this.b.B.Lw(a.bb,b)&&(c/=100),e[b]!==c&&(e[b]=c,a.Rb&&(this.b.xa=!0))))}})};Kb=function(){this.jm=this.fm=!0;this.type.Hj=!0;this.b.xa=!0;var d,l,n=this.gm;d=0;for(l=
n.length;d<l;++d)n[d](this);this.k.Qc&&this.wa()};Lb=function(d){d&&this.gm.push(d)};Nb=function(){if(this.fm){var d=this.La,l=this.Xb;d.set(this.x,this.y,this.x+this.width,this.y+this.height);d.offset(-this.hc*this.width,-this.ic*this.height);this.q?(d.offset(-this.x,-this.y),l.ks(d,this.q),l.offset(this.x,this.y),l.Ip(d)):l.rh(d);d.normalize();this.fm=!1;this.Oy()}};var d=new ua(0,0,0,0);Ob=function(){if(this.k.Qc){var k=this.k.Lb,l=this.La;d.set(k.cc(l.left),k.ec(l.top),k.cc(l.right),k.ec(l.bottom));
this.mc.Ph(d)||(this.mc.right<this.mc.left?k.update(this,null,d):k.update(this,this.mc,d),this.mc.Cg(d),this.k.ud=!0)}};Pb=function(){if(this.jm&&this.Wd){this.wa();var k=this.type.Rj,l=this.La;d.set(k.cc(l.left),k.ec(l.top),k.cc(l.right),k.ec(l.bottom));this.Te.Ph(d)||(this.Te.right<this.Te.left?k.update(this,null,d):k.update(this,this.Te,d),this.Te.Cg(d),this.jm=!1)}};Mb=function(d,l){return this.La.Bb(d,l)&&this.Xb.Bb(d,l)?this.ra&&!this.ra.Rg()?(this.ra.Ag(this.width,this.height,this.q),this.ra.Bb(d-
this.x,l-this.y)):!0:!1};Gb=function(){this.type.Jl();return this.Nf};Qb=function(){this.k.Oo();return this.zd};Rb=function(){z(this.pa);var d,l,n,t=!0;d=0;for(l=this.Ke.length;d<l;d++)this.Ke[d]&&(n=this.type.T[d],this.pa.push(n),n.rd||(t=!1));this.Qs=!!this.pa.length;this.we=t};Hb=function(){return"Inst"+this.Ur};tb=function(d){if(d&&d.Vc&&d.type!=this){var l,n,t;l=0;for(n=d.siblings.length;l<n;l++)if(t=d.siblings[l],t.type==this)return t}d=this.ma().xc();return d.length?d[0]:null};ub=function(d){var l=
this.ma().xc();return l.length?l[d.Yh()%l.length]:null};sb=function(){if(this.uh&&!this.O){var d,l;d=0;for(l=this.j.length;d<l;d++)this.j[d].Nf=d;var n=d,t=this.b.ld;d=0;for(l=t.length;d<l;++d)t[d].type===this&&(t[d].Nf=n++);this.uh=!1}};Db=function(d){if(d<this.j.length)return this.j[d];d-=this.j.length;var l=this.b.ld,n,t;n=0;for(t=l.length;n<t;++n)if(l[n].type===this){if(0===d)return l[n];--d}return null};vb=function(){return this.ye[this.Cd]};wb=function(){this.Cd++;this.Cd===this.ye.length?this.ye.push(new qb(this)):
(this.ye[this.Cd].za=!0,z(this.ye[this.Cd].X))};xb=function(){this.Cd++;this.Cd===this.ye.length&&this.ye.push(new qb(this));var d=this.ye[this.Cd],l=this.ye[this.Cd-1];l.za?(d.za=!0,z(d.X)):(d.za=!1,Ba(d.j,l.j),Ba(d.X,l.X))};yb=function(){this.Cd--};zb=function(d){var l,n,t,u,b,a=0;if(!this.O)for(l=0,n=this.Pa.length;l<n;l++)for(b=this.Pa[l],t=0,u=b.Qa.length;t<u;t++){if(d===b.Qa[t].name)return this.G.lastBehIndex=a,b.Qa[t];a++}l=0;for(n=this.Qa.length;l<n;l++){if(d===this.Qa[l].name)return this.G.lastBehIndex=
a,this.Qa[l];a++}return null};Ab=function(d){return this.qk(d)?this.G.lastBehIndex:-1};Bb=function(d){var l,n;l=0;for(n=this.T.length;l<n;l++)if(this.T[l].name===d)return l;return-1};Cb=function(){if(this.Vc&&!this.O){var d,l,n,t,u,b,a;this.Jl();b=this.ma();var p=b.za,e=(d=this.b.ib())&&d.Yb&&d.Yb.Nc;d=0;for(l=this.vc.length;d<l;d++)if(u=this.vc[d],u!==this&&(u.Jl(),a=u.ma(),a.za=p,!p)){z(a.j);n=0;for(t=b.j.length;n<t;++n)a.j[n]=u.Mm(b.j[n].Nf);if(e)for(z(a.X),n=0,t=b.X.length;n<t;++n)a.X[n]=u.Mm(b.X[n].Nf)}}};
Fb=function(){return"Type"+this.ja};ec=function(d,l,n){if("undefined"===typeof d||"undefined"===typeof n)return!1;switch(l){case 0:return d===n;case 1:return d!==n;case 2:return d<n;case 3:return d<=n;case 4:return d>n;case 5:return d>=n;default:return!1}}})();var nc={};function rc(d){this.b=d}
(function(){function d(a){a=Math.pow(10,a/20);isFinite(a)||(a=0);0>a&&(a=0);1<a&&(a=1);return a}function k(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function l(a){a=a.toLowerCase();return Z.hasOwnProperty(a)&&Z[a].length?Z[a][0].Jc():C.destination}function n(){return C.createGain?C.createGain():C.createGainNode()}function t(a){return C.createDelay?C.createDelay(a):C.createDelayNode(a)}function u(a,b){a.start?a.start(b||0):a.noteOn(b||0)}function b(a,b,c,e){a.start?a.start(e||0,b):
a.noteGrainOn(e||0,b,c-b)}function a(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}function p(a,b,c,e,f,d){this.type="filter";this.pd=[a,b,c,e,f,d];this.la=n();this.S=n();this.S.gain.value=d;this.P=n();this.P.gain.value=1-d;this.Xa=C.createBiquadFilter();this.Xa.type="number"===typeof this.Xa.type?a:Fc[a];this.Xa.frequency.value=b;this.Xa.detune&&(this.Xa.detune.value=c);this.Xa.Q.value=e;this.Xa.gain.value=f;this.la.connect(this.Xa);this.la.connect(this.P);this.Xa.connect(this.S)}function e(a,
b,c){this.type="delay";this.pd=[a,b,c];this.la=n();this.S=n();this.S.gain.value=c;this.P=n();this.P.gain.value=1-c;this.Mi=n();this.Tc=t(a);this.Tc.delayTime.value=a;this.Zj=n();this.Zj.gain.value=b;this.la.connect(this.Mi);this.la.connect(this.P);this.Mi.connect(this.S);this.Mi.connect(this.Tc);this.Tc.connect(this.Zj);this.Zj.connect(this.Mi)}function c(a,b,c,e){this.type="convolve";this.pd=[b,c,e];this.la=n();this.S=n();this.S.gain.value=c;this.P=n();this.P.gain.value=1-c;this.yf=C.createConvolver();
a&&(this.yf.normalize=b,this.yf.buffer=a);this.la.connect(this.yf);this.la.connect(this.P);this.yf.connect(this.S)}function f(a,b,c,e,f){this.type="flanger";this.pd=[a,b,c,e,f];this.la=n();this.P=n();this.P.gain.value=1-f/2;this.S=n();this.S.gain.value=f/2;this.gk=n();this.gk.gain.value=e;this.Tc=t(a+b);this.Tc.delayTime.value=a;this.wb=C.createOscillator();this.wb.frequency.value=c;this.Dc=n();this.Dc.gain.value=b;this.la.connect(this.Tc);this.la.connect(this.P);this.Tc.connect(this.S);this.Tc.connect(this.gk);
this.gk.connect(this.Tc);this.wb.connect(this.Dc);this.Dc.connect(this.Tc.delayTime);u(this.wb)}function h(a,b,c,e,f,d){this.type="phaser";this.pd=[a,b,c,e,f,d];this.la=n();this.P=n();this.P.gain.value=1-d/2;this.S=n();this.S.gain.value=d/2;this.Xa=C.createBiquadFilter();this.Xa.type="number"===typeof this.Xa.type?7:"allpass";this.Xa.frequency.value=a;this.Xa.detune&&(this.Xa.detune.value=b);this.Xa.Q.value=c;this.wb=C.createOscillator();this.wb.frequency.value=f;this.Dc=n();this.Dc.gain.value=e;
this.la.connect(this.Xa);this.la.connect(this.P);this.Xa.connect(this.S);this.wb.connect(this.Dc);this.Dc.connect(this.Xa.frequency);u(this.wb)}function g(a){this.type="gain";this.pd=[a];this.na=n();this.na.gain.value=a}function D(a,b){this.type="tremolo";this.pd=[a,b];this.na=n();this.na.gain.value=1-b/2;this.wb=C.createOscillator();this.wb.frequency.value=a;this.Dc=n();this.Dc.gain.value=b/2;this.wb.connect(this.Dc);this.Dc.connect(this.na.gain);u(this.wb)}function G(a,b){this.type="ringmod";this.pd=
[a,b];this.la=n();this.S=n();this.S.gain.value=b;this.P=n();this.P.gain.value=1-b;this.hj=n();this.hj.gain.value=0;this.wb=C.createOscillator();this.wb.frequency.value=a;this.wb.connect(this.hj.gain);u(this.wb);this.la.connect(this.hj);this.la.connect(this.P);this.hj.connect(this.S)}function r(a,b,c,e,f){this.type="distortion";this.pd=[a,b,c,e,f];this.la=n();this.gl=n();this.fl=n();this.wy(c,Math.pow(10,e/20));this.S=n();this.S.gain.value=f;this.P=n();this.P.gain.value=1-f;this.Pl=C.createWaveShaper();
this.Xj=new Float32Array(65536);this.yw(a,b);this.Pl.Xj=this.Xj;this.la.connect(this.gl);this.la.connect(this.P);this.gl.connect(this.Pl);this.Pl.connect(this.fl);this.fl.connect(this.S)}function m(a,b,c,e,f){this.type="compressor";this.pd=[a,b,c,e,f];this.na=C.createDynamicsCompressor();try{this.na.threshold.value=a,this.na.knee.value=b,this.na.ratio.value=c,this.na.attack.value=e,this.na.release.value=f}catch(d){}}function q(a,b){this.type="analyser";this.pd=[a,b];this.na=C.createAnalyser();this.na.fftSize=
a;this.na.smoothingTimeConstant=b;this.ww=new Float32Array(this.na.frequencyBinCount);this.os=new Uint8Array(a);this.Yi=0}function R(){this.ua=null;this.Mk=0}function v(a,b){this.src=a;this.ca=J;this.Wc=b;this.Gj=!1;var c=this;this.Bn=this.Rn=null;this.lh=[];this.ql=0;this.To=this.ek=this.ws=this.bl=!1;1===J&&b&&!Ya&&(this.ca=0,this.Rn=n());this.Ud=this.qa=null;var e;switch(this.ca){case 0:this.qa=new Audio;this.qa.crossOrigin="anonymous";this.qa.addEventListener("canplaythrough",function(){c.To=
!0});1===J&&C.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.ws=!0,this.qa.addEventListener("canplay",function(){c.Bn||(c.Bn=C.createMediaElementSource(c.qa),c.Bn.connect(c.Rn))}));this.qa.autoplay=!1;this.qa.Wn="auto";this.qa.src=a;break;case 1:E.Uf?E.cq(a,function(a){c.Ud=a;c.Tp()},function(){c.ek=!0}):(e=new XMLHttpRequest,e.open("GET",a,!0),e.responseType="arraybuffer",e.onload=function(){c.Ud=e.response;c.Tp()},e.onerror=function(){c.ek=!0},e.send());break;case 2:this.qa=
!0;break;case 3:this.qa=!0}}function B(a,b){var c=this;this.tag=b;this.pc=this.Fd=!0;this.src=a.src;this.buffer=a;this.ca=J;this.Wc=a.Wc;this.playbackRate=1;this.Ng=!0;this.zc=this.Oc=!1;this.nc=0;this.ni=this.Tg=this.Jd=!1;this.volume=1;this.Pn=function(a){if(!c.zc&&!c.Oc){var b=this;b||(b=a.target);b===c.Fj&&(c.Ng=!0,c.pc=!0,fa=c.tag,E.trigger(rc.prototype.e.Ie,T))}};this.Fj=null;this.Qg=1===U&&!this.Wc||2===U;this.hh=1;this.startTime=this.Qg?E.Ya.aa:E.Ee.aa;this.$a=this.gb=null;this.Ld=!1;this.Jb=
null;this.Ir=this.Hr=this.Gr=this.Fr=this.Kr=this.Jr=0;this.n=null;var e=!1;1!==this.ca||0!==this.buffer.ca||this.buffer.ws||(this.ca=0);switch(this.ca){case 0:this.Wc?(this.n=a.qa,e=!a.Gj,a.Gj=!0):(this.n=new Audio,this.n.crossOrigin="anonymous",this.n.autoplay=!1,this.n.src=a.qa.src,e=!0);e&&this.n.addEventListener("ended",function(){fa=c.tag;c.pc=!0;E.trigger(rc.prototype.e.Ie,T)});break;case 1:this.gb=n();this.gb.connect(l(b));1===this.buffer.ca?a.qa&&(this.n=C.createBufferSource(),this.n.buffer=
a.qa,this.n.connect(this.gb)):(this.n=this.buffer.qa,this.buffer.Rn.connect(this.gb),this.buffer.Gj||(this.buffer.Gj=!0,this.buffer.qa.addEventListener("ended",function(){fa=c.tag;c.pc=!0;E.trigger(rc.prototype.e.Ie,T)})));break;case 2:this.n=new window.Media(P+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(c.Ng=!0,c.pc=!0,fa=c.tag,E.trigger(rc.prototype.e.Ie,T))});break;case 3:this.n=!0}}function W(a){z(za);if(a.length){var b,c,e;b=0;for(c=w.length;b<c;b++)e=w[b],mb(a,e.tag)&&za.push(e)}else H&&
!H.Mf()&&(z(za),za[0]=H)}function O(a,b){Z.hasOwnProperty(a)?Z[a].push(b):Z[a]=[b];var c,e,f,d,g=C.destination;if(Z.hasOwnProperty(a)&&(f=Z[a],f.length))for(g=f[0].Jc(),c=0,e=f.length;c<e;c++)d=f[c],c+1===e?d.Sc(C.destination):d.Sc(f[c+1].Jc());W(a);c=0;for(e=za.length;c<e;c++)za[c].ey(g);Ma&&Eb===a&&(Ma.disconnect(),Ma.connect(g))}function x(){}function y(){}var K=rc.prototype;K.ea=function(a){this.Da=a;this.b=a.b};K.ea.prototype.K=function(){};var E=null,T=null,fa="",P="",J=0,C=null,A=[],w=[],H=
null,N=!1,U=0,I=!1,F=1,Q=0,ka=0,S=!1,ya=1,la=1,La=10,Ac=1E4,Cc=1,Ma=null,Eb="",Za=!1,$a=[],Ya=!1,Z={},Fc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");p.prototype.Sc=function(a){this.S.disconnect();this.S.connect(a);this.P.disconnect();this.P.connect(a)};p.prototype.remove=function(){this.la.disconnect();this.Xa.disconnect();this.S.disconnect();this.P.disconnect()};p.prototype.Jc=function(){return this.la};e.prototype.Sc=function(a){this.S.disconnect();this.S.connect(a);
this.P.disconnect();this.P.connect(a)};e.prototype.remove=function(){this.la.disconnect();this.Mi.disconnect();this.Tc.disconnect();this.Zj.disconnect();this.S.disconnect();this.P.disconnect()};e.prototype.Jc=function(){return this.la};c.prototype.Sc=function(a){this.S.disconnect();this.S.connect(a);this.P.disconnect();this.P.connect(a)};c.prototype.remove=function(){this.la.disconnect();this.yf.disconnect();this.S.disconnect();this.P.disconnect()};c.prototype.Jc=function(){return this.la};f.prototype.Sc=
function(a){this.P.disconnect();this.P.connect(a);this.S.disconnect();this.S.connect(a)};f.prototype.remove=function(){this.la.disconnect();this.Tc.disconnect();this.wb.disconnect();this.Dc.disconnect();this.P.disconnect();this.S.disconnect();this.gk.disconnect()};f.prototype.Jc=function(){return this.la};h.prototype.Sc=function(a){this.P.disconnect();this.P.connect(a);this.S.disconnect();this.S.connect(a)};h.prototype.remove=function(){this.la.disconnect();this.Xa.disconnect();this.wb.disconnect();
this.Dc.disconnect();this.P.disconnect();this.S.disconnect()};h.prototype.Jc=function(){return this.la};g.prototype.Sc=function(a){this.na.disconnect();this.na.connect(a)};g.prototype.remove=function(){this.na.disconnect()};g.prototype.Jc=function(){return this.na};D.prototype.Sc=function(a){this.na.disconnect();this.na.connect(a)};D.prototype.remove=function(){this.wb.disconnect();this.Dc.disconnect();this.na.disconnect()};D.prototype.Jc=function(){return this.na};G.prototype.Sc=function(a){this.S.disconnect();
this.S.connect(a);this.P.disconnect();this.P.connect(a)};G.prototype.remove=function(){this.wb.disconnect();this.hj.disconnect();this.la.disconnect();this.S.disconnect();this.P.disconnect()};G.prototype.Jc=function(){return this.la};r.prototype.wy=function(a,b){.01>a&&(a=.01);this.gl.gain.value=a;this.fl.gain.value=Math.pow(1/a,.6)*b};r.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};r.prototype.yw=function(a,b){for(var c=Math.pow(10,
a/20),e=Math.pow(10,b/20),f=0,d=0;32768>d;++d)f=d/32768,f=this.shape(f,c,e),this.Xj[32768+d]=f,this.Xj[32768-d-1]=-f};r.prototype.Sc=function(a){this.S.disconnect();this.S.connect(a);this.P.disconnect();this.P.connect(a)};r.prototype.remove=function(){this.la.disconnect();this.gl.disconnect();this.Pl.disconnect();this.fl.disconnect();this.S.disconnect();this.P.disconnect()};r.prototype.Jc=function(){return this.la};m.prototype.Sc=function(a){this.na.disconnect();this.na.connect(a)};m.prototype.remove=
function(){this.na.disconnect()};m.prototype.Jc=function(){return this.na};q.prototype.Na=function(){this.na.getFloatFrequencyData(this.ww);this.na.getByteTimeDomainData(this.os);for(var a=this.na.fftSize,b=0,c=this.Yi=0,e=0;b<a;b++)e=(this.os[b]-128)/128,0>e&&(e=-e),this.Yi<e&&(this.Yi=e),c+=e*e;this.Yi=k(this.Yi);k(Math.sqrt(c/a))};q.prototype.Sc=function(a){this.na.disconnect();this.na.connect(a)};q.prototype.remove=function(){this.na.disconnect()};q.prototype.Jc=function(){return this.na};R.prototype.ij=
function(a){this.ua=a};R.prototype.xk=function(){return!!this.ua};R.prototype.Na=function(){};var rb=!1;v.prototype.fy=function(){var a,b,c,e;c=a=0;for(b=w.length;a<b;++a)e=w[a],w[c]=e,e.buffer===this?e.stop():++c;w.length=c;this.Ud=this.qa=null};v.prototype.Tp=function(){if(!this.qa&&this.Ud){var a=this;if(C.decodeAudioData)C.decodeAudioData(this.Ud,function(b){a.qa=b;a.Ud=null;var c,e,f;if(ga(a.cl)||I)ga(a.Tj)||(c=a.Tj.yf,c.normalize=a.tr,c.buffer=b);else if(a.lh.length){c=0;for(e=a.lh.length;c<
e;c++){b=a.lh[c];f=new B(a,b.Bs);f.po(!0);if("undefined"!==typeof b.xr&&(b.ua=E.Kg(b.xr),!b.ua))continue;if(b.ua){var d=Ra(b.ua.x,b.ua.y,-b.ua.k.hb(),Q,ka,!0),g=Ra(b.ua.x,b.ua.y,-b.ua.k.hb(),Q,ka,!1);f.oo(d,g,Ga(b.ua.q-b.ua.k.hb()),b.Vm,b.Dn,b.Gn);f.ij(b.ua)}else f.oo(b.x,b.y,b.Nu,b.Vm,b.Dn,b.Gn);f.play(a.zn,a.So,a.ql);a.bl&&f.pause();w.push(f)}z(a.lh)}else f=new B(a,a.cl||""),f.play(a.zn,a.So,a.ql),a.bl&&f.pause(),w.push(f)},function(){a.ek=!0});else if(this.qa=C.createBuffer(this.Ud,!1),this.Ud=
null,ga(this.cl)||I)ga(this.Tj)||(b=this.Tj.yf,b.normalize=this.tr,b.buffer=this.qa);else{var b=new B(this,this.cl);b.play(this.zn,this.So,this.ql);this.bl&&b.pause();w.push(b)}}};v.prototype.Bq=function(){switch(this.ca){case 0:var a=4<=this.qa.readyState;a&&(this.To=!0);return a||this.To;case 1:return!!this.Ud||!!this.qa;case 2:return!0;case 3:return!0}return!1};v.prototype.tx=function(){switch(this.ca){case 0:return this.Bq();case 1:return!!this.qa;case 2:return!0;case 3:return!0}return!1};v.prototype.cx=
function(){switch(this.ca){case 0:return!!this.qa.error;case 1:return this.ek}return!1};B.prototype.Mf=function(){switch(this.ca){case 0:return this.n.ended;case 1:return 1===this.buffer.ca?!this.Fd&&!this.pc&&this.n.loop||this.zc?!1:this.Ng:this.n.ended;case 2:return this.Ng;case 3:!0}return!0};B.prototype.$u=function(){return this.Fd||this.pc?!0:this.Mf()};B.prototype.po=function(a){1===J&&(!this.Ld&&a?this.gb&&(this.$a||(this.$a=C.createPanner(),this.$a.panningModel="number"===typeof this.$a.panningModel?
ya:["equalpower","HRTF","soundfield"][ya],this.$a.distanceModel="number"===typeof this.$a.distanceModel?la:["linear","inverse","exponential"][la],this.$a.refDistance=La,this.$a.maxDistance=Ac,this.$a.rolloffFactor=Cc),this.gb.disconnect(),this.gb.connect(this.$a),this.$a.connect(l(this.tag)),this.Ld=!0):this.Ld&&!a&&this.gb&&(this.$a.disconnect(),this.gb.disconnect(),this.gb.connect(l(this.tag)),this.Ld=!1))};B.prototype.oo=function(a,b,c,e,f,d){this.Ld&&1===J&&(this.$a.setPosition(a,b,0),this.$a.setOrientation(Math.cos(L(c)),
Math.sin(L(c)),0),this.$a.coneInnerAngle=e,this.$a.coneOuterAngle=f,this.$a.coneOuterGain=d,this.Jr=a,this.Kr=b,this.Fr=c,this.Gr=e,this.Hr=f,this.Ir=d)};B.prototype.ij=function(a){this.Ld&&1===J&&(this.Jb||(this.Jb=new R),this.Jb.ij(a))};B.prototype.Na=function(a){if(this.Ld&&1===J&&this.Jb&&this.Jb.xk()&&this.Rf()){this.Jb.Na(a);a=this.Jb.ua;var b=Ra(a.x,a.y,-a.k.hb(),Q,ka,!0),c=Ra(a.x,a.y,-a.k.hb(),Q,ka,!1);this.$a.setPosition(b,c,0);b=0;"undefined"!==typeof this.Jb.ua.q&&(b=a.q-a.k.hb(),this.$a.setOrientation(Math.cos(b),
Math.sin(b),0))}};B.prototype.play=function(a,c,e,f){var d=this.n;this.Jd=a;this.volume=c;e=e||0;f=f||0;switch(this.ca){case 0:1!==d.playbackRate&&(d.playbackRate=1);d.volume!==c*F&&(d.volume=c*F);d.loop!==a&&(d.loop=a);d.muted&&(d.muted=!1);if(d.currentTime!==e)try{d.currentTime=e}catch(g){}if(this.Wc&&Za&&!E.ta)$a.push(this);else try{this.n.play()}catch(h){console&&console.log&&console.log("[C2] WARNING: exception trying to play audio '"+this.buffer.src+"': ",h)}break;case 1:this.muted=!1;this.hh=
1;if(1===this.buffer.ca)this.gb.gain.value=c*F,this.Fd||(this.n=C.createBufferSource(),this.n.buffer=this.buffer.qa,this.n.connect(this.gb)),this.n.onended=this.Pn,this.Fj=this.n,this.n.loop=a,this.Ng=!1,0===e?u(this.n,f):b(this.n,e,this.Kf(),f);else{1!==d.playbackRate&&(d.playbackRate=1);d.loop!==a&&(d.loop=a);d.volume=c*F;if(d.currentTime!==e)try{d.currentTime=e}catch(r){}this.Wc&&Za&&!E.ta?$a.push(this):d.play()}break;case 2:(!this.Fd&&this.pc||0!==e)&&d.seekTo(e);d.play();this.Ng=!1;break;case 3:E.Gb?
AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=1;this.startTime=(this.Qg?E.Ya.aa:E.Ee.aa)-e;this.zc=this.pc=this.Fd=!1};B.prototype.stop=function(){switch(this.ca){case 0:this.n.paused||this.n.pause();break;case 1:1===this.buffer.ca?a(this.n):this.n.paused||this.n.pause();break;case 2:this.n.stop();break;case 3:E.Gb&&AppMobi.context.stopSound(this.src)}this.pc=!0;this.zc=!1};B.prototype.pause=function(){if(!(this.Fd||this.pc||this.Mf()||this.zc)){switch(this.ca){case 0:this.n.paused||
this.n.pause();break;case 1:1===this.buffer.ca?(this.nc=this.Nm(!0),this.Jd&&(this.nc=this.nc%this.Kf()),this.zc=!0,a(this.n)):this.n.paused||this.n.pause();break;case 2:this.n.pause();break;case 3:E.Gb&&AppMobi.context.stopSound(this.src)}this.zc=!0}};B.prototype.ky=function(){if(!(this.Fd||this.pc||this.Mf())&&this.zc){switch(this.ca){case 0:this.n.play();break;case 1:1===this.buffer.ca?(this.n=C.createBufferSource(),this.n.buffer=this.buffer.qa,this.n.connect(this.gb),this.n.onended=this.Pn,this.Fj=
this.n,this.n.loop=this.Jd,this.gb.gain.value=F*this.volume*this.hh,this.Kl(),this.startTime=(this.Qg?E.Ya.aa:E.Ee.aa)-this.nc/(this.playbackRate||.001),b(this.n,this.nc,this.Kf())):this.n.play();break;case 2:this.n.play();break;case 3:E.Gb&&AppMobi.context.resumeSound(this.src)}this.zc=!1}};B.prototype.seek=function(a){if(!(this.Fd||this.pc||this.Mf()))switch(this.ca){case 0:try{this.n.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.ca)this.zc?this.nc=a:(this.pause(),this.nc=a,this.ky());
else try{this.n.currentTime=a}catch(c){}break;case 3:E.Gb&&AppMobi.context.seekSound(this.src,a)}};B.prototype.ey=function(a){1===this.ca&&(this.Ld?(this.$a.disconnect(),this.$a.connect(a)):(this.gb.disconnect(),this.gb.connect(a)))};B.prototype.Kf=function(){var a=0;switch(this.ca){case 0:"undefined"!==typeof this.n.duration&&(a=this.n.duration);break;case 1:a=this.buffer.qa.duration;break;case 2:a=this.n.getDuration();break;case 3:E.Gb&&(a=AppMobi.context.getDurationSound(this.src))}return a};B.prototype.Nm=
function(a){var b=this.Kf(),c=0;switch(this.ca){case 0:"undefined"!==typeof this.n.currentTime&&(c=this.n.currentTime);break;case 1:if(1===this.buffer.ca){if(this.zc)return this.nc;c=(this.Qg?E.Ya.aa:E.Ee.aa)-this.startTime}else"undefined"!==typeof this.n.currentTime&&(c=this.n.currentTime);break;case 3:E.Gb&&(c=AppMobi.context.getPlaybackTimeSound(this.src))}a&&(c*=this.playbackRate);!this.Jd&&c>b&&(c=b);return c};B.prototype.Rf=function(){return!this.zc&&!this.Fd&&!this.pc&&!this.Mf()};B.prototype.Dy=
function(){return!this.Fd&&!this.pc&&!this.Mf()};B.prototype.By=function(a){this.volume=a;this.Ns()};B.prototype.Ns=function(){var a=this.volume*F;isFinite(a)||(a=0);switch(this.ca){case 0:"undefined"!==typeof this.n.volume&&this.n.volume!==a&&(this.n.volume=a);break;case 1:1===this.buffer.ca?this.gb.gain.value=a*this.hh:"undefined"!==typeof this.n.volume&&this.n.volume!==a&&(this.n.volume=a)}};B.prototype.bk=function(a){switch(this.ca){case 0:this.n.muted!==!!a&&(this.n.muted=!!a);break;case 1:1===
this.buffer.ca?(this.hh=a?0:1,this.gb.gain.value=F*this.volume*this.hh):this.n.muted!==!!a&&(this.n.muted=!!a)}};B.prototype.xy=function(){this.Tg=!0;this.bk(this.Tg||this.ni)};B.prototype.ds=function(a){this.ni=!!a;this.bk(this.Tg||this.ni)};B.prototype.Kl=function(){var a=this.playbackRate;this.Qg&&(a*=E.qg);switch(this.ca){case 0:this.n.playbackRate!==a&&(this.n.playbackRate=a);break;case 1:1===this.buffer.ca?this.n.playbackRate.value!==a&&(this.n.playbackRate.value=a):this.n.playbackRate!==a&&
(this.n.playbackRate=a)}};B.prototype.zy=function(c){switch(this.ca){case 0:c?this.Rf()?(this.Oc=!0,this.n.pause()):this.Oc=!1:this.Oc&&(this.n.play(),this.Oc=!1);break;case 1:c?this.Rf()?(this.Oc=!0,1===this.buffer.ca?(this.nc=this.Nm(!0),this.Jd&&(this.nc=this.nc%this.Kf()),a(this.n)):this.n.pause()):this.Oc=!1:this.Oc&&(1===this.buffer.ca?(this.n=C.createBufferSource(),this.n.buffer=this.buffer.qa,this.n.connect(this.gb),this.n.onended=this.Pn,this.Fj=this.n,this.n.loop=this.Jd,this.gb.gain.value=
F*this.volume*this.hh,this.Kl(),this.startTime=(this.Qg?E.Ya.aa:E.Ee.aa)-this.nc/(this.playbackRate||.001),b(this.n,this.nc,this.Kf())):this.n.play(),this.Oc=!1);break;case 2:c?this.Rf()?(this.n.pause(),this.Oc=!0):this.Oc=!1:this.Oc&&(this.Oc=!1,this.n.play())}};K.U=function(a){function b(){if(!S&&C.createBuffer){var a=C.createBuffer(1,220,22050),c=C.createBufferSource();c.buffer=a;c.connect(C.destination);u(c)}}this.type=a;E=this.b=a.b;T=this;this.Bc=null;this.Di=-600;this.b.Uf&&(Ya=!0);!(this.b.le||
this.b.ei&&(this.b.Og||this.b.fi))||this.b.gi||this.b.R||this.b.zq||Ya||(Za=!0);C=null;"undefined"!==typeof AudioContext?(J=1,C=new AudioContext):"undefined"!==typeof webkitAudioContext&&(J=1,C=new webkitAudioContext);this.b.le&&C&&(C.close&&C.close(),"undefined"!==typeof AudioContext?C=new AudioContext:"undefined"!==typeof webkitAudioContext&&(C=new webkitAudioContext));Za?document.addEventListener("touchend",function(){!rb&&C&&(b(),rb=!0);var a,c,e;if(Za){if(!I)for(a=0,c=$a.length;a<c;++a)e=$a[a],
e.pc||e.zc||e.n.play();z($a)}},!0):Ya&&document.addEventListener("touchend",function(){!rb&&C&&(b(),rb=!0)},!0);1!==J&&(this.b.Lc&&"undefined"!==typeof window.Media?J=2:this.b.Aq&&(J=3));2===J&&(P=location.href,a=P.lastIndexOf("/"),-1<a&&(P=P.substr(0,a+1)),P=P.replace("file://",""));if(this.b.Dq&&this.b.ux&&"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.rf(this);else{if(this.b.Gb)N=
this.b.ei;else try{N=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(c){N=!1}this.b.Ae(this)}};var ta=K.U.prototype;ta.K=function(){this.b.yg=this;U=this.u[0];this.ue=this.u[1];this.Ux=0!==this.u[2];this.rr=0;ya=this.u[3];la=this.u[4];this.Di=-this.u[5];La=this.u[6];Ac=this.u[7];Cc=this.u[8];this.Bc=new R;var a=this.b.M||this.b.width,b=this.b.L||this.b.height;1===J&&(C.listener.setPosition(a/2,b/2,this.Di),C.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,
b){Ma&&Ma.disconnect();Eb=b.toLowerCase();Ma=C.createMediaStreamSource(a);Ma.connect(l(Eb))});this.b.$l(function(a){T.On(a)});var c=this;this.b.Zl(function(a){c.Kn(a)})};ta.Kn=function(a){var b,c,e;b=0;for(c=w.length;b<c;b++)e=w[b],e.Jb&&e.Jb.ua===a&&(e.Jb.ua=null,e.Ld&&e.Rf()&&e.Jd&&e.stop());this.Bc.ua===a&&(this.Bc.ua=null)};ta.rb=function(){var a={silent:I,masterVolume:F,listenerZ:this.Di,listenerUid:this.Bc.xk()?this.Bc.ua.uid:-1,playing:[],effects:{}},b=a.playing,c,e,f,d,g,h;c=0;for(e=w.length;c<
e;c++)f=w[c],!f.Dy()||3===this.ue||f.Wc&&1===this.ue||!f.Wc&&2===this.ue||(d=f.Nm(),f.Jd&&(d=d%f.Kf()),d={tag:f.tag,buffersrc:f.buffer.src,is_music:f.Wc,playbackTime:d,volume:f.volume,looping:f.Jd,muted:f.Tg,playbackRate:f.playbackRate,paused:f.zc,resume_position:f.nc},f.Ld&&(d.pan={},h=d.pan,f.Jb&&f.Jb.xk()?h.objUid=f.Jb.ua.uid:(h.x=f.Jr,h.y=f.Kr,h.a=f.Fr),h.ia=f.Gr,h.oa=f.Hr,h.og=f.Ir),b.push(d));b=a.effects;for(g in Z)if(Z.hasOwnProperty(g)){f=[];c=0;for(e=Z[g].length;c<e;c++)f.push({type:Z[g][c].type,
params:Z[g][c].pd});b[g]=f}return a};var ab=[];ta.Ib=function(a){var b=a.silent;F=a.masterVolume;this.Di=a.listenerZ;this.Bc.ij(null);var d=a.listenerUid;-1!==d&&(this.Bc.Mk=d,ab.push(this.Bc));var d=a.playing,t,v,l,k,n,u,B,W,y,x,E;if(3!==this.ue)for(t=0,v=w.length;t<v;t++)y=w[t],y.Wc&&1===this.ue||(y.Wc||2!==this.ue)&&y.stop();for(n in Z)if(Z.hasOwnProperty(n))for(t=0,v=Z[n].length;t<v;t++)Z[n][t].remove();Va(Z);for(n in a.effects)if(a.effects.hasOwnProperty(n))for(u=a.effects[n],t=0,v=u.length;t<
v;t++)switch(l=u[t].type,x=u[t].params,l){case "filter":O(n,new p(x[0],x[1],x[2],x[3],x[4],x[5]));break;case "delay":O(n,new e(x[0],x[1],x[2]));break;case "convolve":l=x[2];y=this.pk(l,!1);y.qa?l=new c(y.qa,x[0],x[1],l):(l=new c(null,x[0],x[1],l),y.tr=x[0],y.Tj=l);O(n,l);break;case "flanger":O(n,new f(x[0],x[1],x[2],x[3],x[4]));break;case "phaser":O(n,new h(x[0],x[1],x[2],x[3],x[4],x[5]));break;case "gain":O(n,new g(x[0]));break;case "tremolo":O(n,new D(x[0],x[1]));break;case "ringmod":O(n,new G(x[0],
x[1]));break;case "distortion":O(n,new r(x[0],x[1],x[2],x[3],x[4]));break;case "compressor":O(n,new m(x[0],x[1],x[2],x[3],x[4]));break;case "analyser":O(n,new q(x[0],x[1]))}t=0;for(v=d.length;t<v;t++)3===this.ue||(a=d[t],l=a.buffersrc,k=a.is_music,n=a.tag,u=a.playbackTime,B=a.looping,W=a.volume,E=(x=a.pan)&&x.hasOwnProperty("objUid")?x.objUid:-1,k&&1===this.ue)||!k&&2===this.ue||((y=this.jq(l,n,k,B,W))?(y.nc=a.resume_position,y.po(!!x),y.play(B,W,u),y.Kl(),y.Ns(),y.bk(y.Tg||y.ni),a.paused&&y.pause(),
a.muted&&y.xy(),y.bk(y.Tg||y.ni),x&&(-1!==E?(y.Jb=y.Jb||new R,y.Jb.Mk=E,ab.push(y.Jb)):y.oo(x.x,x.y,x.a,x.ia,x.oa,x.og))):(y=this.pk(l,k),y.ql=u,y.bl=a.paused,x&&(-1!==E?y.lh.push({xr:E,Vm:x.ia,Dn:x.oa,Gn:x.og,Bs:n}):y.lh.push({x:x.x,y:x.y,Nu:x.a,Vm:x.ia,Dn:x.oa,Gn:x.og,Bs:n}))));if(b&&!I){t=0;for(v=w.length;t<v;t++)w[t].ds(!0);I=!0}else if(!b&&I){t=0;for(v=w.length;t<v;t++)w[t].ds(!1);I=!1}};ta.Ad=function(){var a,b,c,e;a=0;for(b=ab.length;a<b;a++)c=ab[a],e=this.b.Kg(c.Mk),c.ij(e),c.Mk=-1,e&&(Q=
e.x,ka=e.y);z(ab)};ta.On=function(a){if(!this.Ux){!a&&C&&C.resume&&(C.resume(),S=!1);var b,c;b=0;for(c=w.length;b<c;b++)w[b].zy(a);a&&C&&C.suspend&&(C.suspend(),S=!0)}};ta.Na=function(){var a=this.b.Df,b,c,e;b=0;for(c=w.length;b<c;b++)e=w[b],e.Na(a),0!==U&&e.Kl();var f,d;for(f in Z)if(Z.hasOwnProperty(f))for(e=Z[f],b=0,c=e.length;b<c;b++)d=e[b],d.Na&&d.Na();1===J&&this.Bc.xk()&&(this.Bc.Na(a),Q=this.Bc.ua.x,ka=this.Bc.ua.y,C.listener.setPosition(this.Bc.ua.x,this.Bc.ua.y,this.Di))};var bb=[];ta.yy=
function(a){var b,c,e,f,d,g=0;b=0;for(c=a.length;b<c;++b)if(e=a[b],f=e[0],e=2*e[1],(d=4<f.length&&".ogg"===f.substr(f.length-4))&&N||!d&&!N)bb.push({filename:f,size:e,ua:null}),g+=e;return g};ta.Fy=function(){var a,b,c,e;a=0;for(b=bb.length;a<b;++a)c=bb[a],e=this.b.Cm+c.filename,c.ua=this.pk(e,!1)};ta.Iw=function(){var a=0,b,c,e;b=0;for(c=bb.length;b<c;++b)e=bb[b],e.ua.tx()||e.ua.cx()||this.b.R||this.b.fi?a+=e.size:e.ua.Bq()&&(a+=Math.floor(e.size/2));return a};ta.gy=function(){var a,b,c,e;c=a=0;
for(b=A.length;a<b;++a)e=A[a],A[c]=e,e.Wc?e.fy():++c;A.length=c};ta.pk=function(a,b){var c,e,f,d=null;c=0;for(e=A.length;c<e;c++)if(f=A[c],f.src===a){d=f;break}d||(Ya&&b&&this.gy(),d=new v(a,b),A.push(d));return d};ta.jq=function(a,b,c,e,f){var d,g,h;d=0;for(g=w.length;d<g;d++)if(h=w[d],h.src===a&&(h.$u()||c))return h.tag=b,h;a=this.pk(a,c);if(!a.qa)return"<preload>"!==b&&(a.cl=b,a.zn=e,a.So=f),null;h=new B(a,b);w.push(h);return h};var za=[];x.prototype.Ie=function(a){return mb(fa,a)};x.prototype.ut=
function(){var a,b;a=0;for(b=w.length;a<b;a++)if(w[a].Rf())return!0;return!1};x.prototype.Ht=function(a){W(a);var b;a=0;for(b=za.length;a<b;a++)if(za[a].Rf())return!0;return!1};K.e=new x;y.prototype.Play=function(a,b,c,e){!I&&(c=d(c),H=this.jq(this.b.Cm+a[0]+(N?".ogg":".m4a"),e,a[1],0!==b,c))&&(H.po(!1),H.play(0!==b,c,0,this.rr),this.rr=0)};y.prototype.Ej=function(a,b){W(a);var c=d(b),e,f;e=0;for(f=za.length;e<f;e++)za[e].By(c)};y.prototype.Wl=function(a){W(a);var b;a=0;for(b=za.length;a<b;a++)za[a].stop()};
y.prototype.Iu=function(){var a,b;a=0;for(b=w.length;a<b;a++)w[a].stop()};K.A=new y;K.Aa=new function(){}})();function X(d){this.b=d}
(function(){function d(){u&&b&&window.OfflineClientInfo&&window.OfflineClientInfo.SetMessageCallback(function(b){a.Mx(b)})}function k(){}function l(){}var n=X.prototype;n.ea=function(a){this.Da=a;this.b=a.b};var t=n.ea.prototype;t.K=function(){};var u=!1,b=!1;document.addEventListener("DOMContentLoaded",function(){if(window.C2_RegisterSW&&navigator.Ih){var a=document.createElement("script");a.onload=function(){u=!0;d()};a.src="offlineClient.js";document.head.appendChild(a)}});var a=null;t.Cr=function(){b=
!0;d()};n.U=function(a){this.type=a;this.b=a.b};t=n.U.prototype;t.K=function(){var b=this;window.addEventListener("resize",function(){b.b.trigger(X.prototype.e.hu,b)});a=this;"undefined"!==typeof navigator.onLine&&(window.addEventListener("online",function(){b.b.trigger(X.prototype.e.du,b)}),window.addEventListener("offline",function(){b.b.trigger(X.prototype.e.bu,b)}));"undefined"!==typeof window.applicationCache&&(window.applicationCache.addEventListener("updateready",function(){b.b.dh=1;b.b.trigger(X.prototype.e.Dj,
b)}),window.applicationCache.addEventListener("progress",function(a){b.b.dh=a.loaded/a.total||0}));this.b.Gb||(document.addEventListener("appMobi.device.update.available",function(){b.b.trigger(X.prototype.e.Dj,b)}),document.addEventListener("backbutton",function(){b.b.trigger(X.prototype.e.Bj,b)}),document.addEventListener("menubutton",function(){b.b.trigger(X.prototype.e.np,b)}),document.addEventListener("searchbutton",function(){b.b.trigger(X.prototype.e.iu,b)}),document.addEventListener("tizenhwkey",
function(a){var c;switch(a.keyName){case "back":c=b.b.trigger(X.prototype.e.Bj,b);!c&&window.tizen&&window.tizen.application.getCurrentApplication().exit();break;case "menu":(c=b.b.trigger(X.prototype.e.np,b))||a.preventDefault()}}));this.b.gn&&"undefined"!==typeof Windows?Windows.UI.Core.SystemNavigationManager.getForCurrentView().addEventListener("backrequested",function(a){b.b.trigger(X.prototype.e.Bj,b)&&(a.wk=!0)}):this.b.Fq&&WinJS.Application&&(WinJS.Application.onbackclick=function(){return!!b.b.trigger(X.prototype.e.Bj,
b)});this.b.$l(function(a){a?b.b.trigger(X.prototype.e.eu,b):b.b.trigger(X.prototype.e.fu,b)});this.Hq="undefined"!==typeof window.is_scirra_arcade};t.Mx=function(a){a=a.data.type;"downloading-update"===a?this.b.trigger(X.prototype.e.mu,this):"update-ready"===a||"update-pending"===a?this.b.trigger(X.prototype.e.Dj,this):"offline-ready"===a&&this.b.trigger(X.prototype.e.cu,this)};k.prototype.du=function(){return!0};k.prototype.bu=function(){return!0};k.prototype.Dj=function(){return!0};k.prototype.fu=
function(){return!0};k.prototype.eu=function(){return!0};k.prototype.hu=function(){return!0};k.prototype.Bj=function(){return!0};k.prototype.np=function(){return!0};k.prototype.iu=function(){return!0};k.prototype.mu=function(){return!0};k.prototype.Dj=function(){return!0};k.prototype.cu=function(){return!0};n.e=new k;l.prototype.bt=function(){this.b.yc?CocoonJS.App.forceToFinish():window.tizen?window.tizen.application.getCurrentApplication().exit():navigator.app&&navigator.app.exitApp?navigator.app.exitApp():
navigator.device&&navigator.device.exitApp?navigator.device.exitApp():this.Hq||this.b.R||window.close()};l.prototype.ou=function(){this.Hq||this.b.R||window.location.reload()};l.prototype.qt=function(a,b){var c=document.createElement("a");if("undefined"===typeof c.download)window.open(a);else{var f=document.getElementsByTagName("body")[0];c.textContent=b;c.href=a;c.download=b;f.appendChild(c);var d=new MouseEvent("click");c.dispatchEvent(d);f.removeChild(c)}};n.A=new l;n.Aa=new function(){}})();
function sc(d){this.b=d}
(function(){function d(){}var k=sc.prototype;k.ea=function(d){this.Da=d;this.b=d.b};k.ea.prototype.K=function(){};k.U=function(d){this.type=d;this.b=d.b;this.Zg=Array(256);this.vj=Array(256);this.Ce=0};var l=k.U.prototype;l.K=function(){var d=this;this.b.R||(jQuery(document).keydown(function(l){d.Ln(l)}),jQuery(document).keyup(function(l){d.Mn(l)}))};var n=[32,33,34,35,36,37,38,39,40,44];l.Ln=function(d){var l=!1;window!=window.top&&-1<n.indexOf(d.which)&&(d.preventDefault(),l=!0,d.stopPropagation());
if(this.Zg[d.which])this.vj[d.which]&&!l&&d.preventDefault();else{this.Zg[d.which]=!0;this.Ce=d.which;this.b.ta=!0;this.b.trigger(sc.prototype.e.Ot,this);var b=this.b.trigger(sc.prototype.e.hp,this),a=this.b.trigger(sc.prototype.e.Yt,this);this.b.ta=!1;if(b||a)this.vj[d.which]=!0,l||d.preventDefault()}};l.Mn=function(d){this.Zg[d.which]=!1;this.Ce=d.which;this.b.ta=!0;this.b.trigger(sc.prototype.e.$o,this);var l=this.b.trigger(sc.prototype.e.kp,this),b=this.b.trigger(sc.prototype.e.jp,this);this.b.ta=
!1;if(l||b||this.vj[d.which])this.vj[d.which]=!0,d.preventDefault()};l.hf=function(){var d;for(d=0;256>d;++d)if(this.Zg[d]){this.Zg[d]=!1;this.Ce=d;this.b.trigger(sc.prototype.e.$o,this);var l=this.b.trigger(sc.prototype.e.kp,this),b=this.b.trigger(sc.prototype.e.jp,this);if(l||b)this.vj[d]=!0}};l.rb=function(){return{triggerKey:this.Ce}};l.Ib=function(d){this.Ce=d.triggerKey};d.prototype.Ct=function(d){return this.Zg[d]};d.prototype.hp=function(d){return d===this.Ce};d.prototype.Ot=function(){return!0};
d.prototype.$o=function(){return!0};d.prototype.kp=function(d){return d===this.Ce};d.prototype.Yt=function(d){return d===this.Ce};d.prototype.jp=function(d){return d===this.Ce};k.e=new d;k.A=new function(){};k.Aa=new function(){}})();function tc(d){this.b=d}
(function(){function d(){}function k(){}var l=tc.prototype;l.ea=function(d){this.Da=d;this.b=d.b};l.ea.prototype.K=function(){};l.U=function(d){this.type=d;this.b=d.b;this.zg=Array(4);this.Es=this.Gl=this.rg=this.gf=this.ff=0;this.wk=!1};var n=l.U.prototype;n.K=function(){var d=this;if(!this.b.R){jQuery(document).mousemove(function(a){d.Ui(a)});jQuery(document).mousedown(function(a){d.Ti(a)});jQuery(document).mouseup(function(a){d.Vi(a)});jQuery(document).dblclick(function(a){d.Jx(a)});var b=function(a){d.Ox(a)};
document.addEventListener("mousewheel",b,!1);document.addEventListener("DOMMouseScroll",b,!1)}};var t={left:0,top:0};n.Ui=function(d){var b=this.b.R?t:jQuery(this.b.canvas).offset();this.ff=d.pageX-b.left;this.gf=d.pageY-b.top};n.nr=function(){return 0<this.b.Ub?!0:0<=this.ff&&0<=this.gf&&this.ff<this.b.width&&this.gf<this.b.height};n.Ti=function(d){this.nr()&&(this.zg[d.which]=!0,this.b.ta=!0,this.b.trigger(tc.prototype.e.Nt,this),this.rg=d.which-1,this.Gl=0,this.b.trigger(tc.prototype.e.cp,this),
this.b.trigger(tc.prototype.e.rp,this),this.b.ta=!1)};n.Vi=function(d){this.zg[d.which]&&(this.b.uk&&!this.b.ke&&d.preventDefault(),this.b.uk=!0,this.zg[d.which]=!1,this.b.ta=!0,this.rg=d.which-1,this.b.trigger(tc.prototype.e.sp,this),this.b.ta=!1)};n.Jx=function(d){this.nr()&&(d.preventDefault(),this.b.ta=!0,this.rg=d.which-1,this.Gl=1,this.b.trigger(tc.prototype.e.cp,this),this.b.trigger(tc.prototype.e.rp,this),this.b.ta=!1)};n.Ox=function(d){this.Es=0>(d.wheelDelta?d.wheelDelta:d.detail?-d.detail:
0)?0:1;this.wk=!1;this.b.ta=!0;this.b.trigger(tc.prototype.e.nu,this);this.b.ta=!1;this.wk&&nb(d)&&d.preventDefault()};n.hf=function(){var d,b;d=0;for(b=this.zg.length;d<b;++d)this.zg[d]&&(this.zg[d]=!1,this.rg=d-1,this.b.trigger(tc.prototype.e.sp,this))};d.prototype.cp=function(d,b){return d===this.rg&&b===this.Gl};d.prototype.Nt=function(){return!0};d.prototype.sp=function(d){return d===this.rg};d.prototype.rp=function(d,b,a){return d!==this.rg||b!==this.Gl?!1:this.b.rj(a,this.ff,this.gf)};d.prototype.nu=
function(d){this.wk=!0;return d===this.Es};l.e=new d;l.A=new function(){};k.prototype.Xl=function(d,b){var a,l,e,c,f;ga(b)?(a=this.b.ge(0),l=a.scale,e=a.Wb,c=a.kc,f=a.q,a.scale=1,a.Wb=1,a.kc=1,a.q=0,d.H(a.Ha(this.ff,this.gf,!0)),a.scale=l,a.Wb=e,a.kc=c,a.q=f):(a=ha(b)?this.b.ge(b):this.b.Vh(b))?d.H(a.Ha(this.ff,this.gf,!0)):d.H(0)};k.prototype.Yl=function(d,b){var a,l,e,c,f;ga(b)?(a=this.b.ge(0),l=a.scale,e=a.Wb,c=a.lc,f=a.q,a.scale=1,a.Wb=1,a.lc=1,a.q=0,d.H(a.Ha(this.ff,this.gf,!1)),a.scale=l,a.Wb=
e,a.lc=c,a.q=f):(a=ha(b)?this.b.ge(b):this.b.Vh(b))?d.H(a.Ha(this.ff,this.gf,!1)):d.H(0)};l.Aa=new k})();function uc(d){this.b=d}
(function(){function d(){}function k(){}var l=uc.prototype;l.ea=function(d){this.Da=d;this.b=d.b};l.ea.prototype.K=function(){};l.U=function(d){this.type=d;this.b=d.b};var n=l.U.prototype;n.K=function(){if(!this.b.R){this.m=document.createElement("video");var d=document.createElement("source");this.m.appendChild(d);d.src=this.u[0];d=document.createElement("source");this.m.appendChild(d);d.src=this.u[1];d=document.createElement("source");this.m.appendChild(d);d.src=this.u[2];this.m.poster=this.u[3];
this.m.autoplay=1==this.u[4];this.m.controls=1==this.u[5];this.m.Wn=["auto","metadata","none"][this.u[6]];this.m.loop=1==this.u[7];this.m.muted=1==this.u[8];this.m.id=this.u[9];jQuery(this.m).appendTo(this.b.Re?this.b.Re:"body");this.Dh=this.xp=!1;this.pf();this.b.Ae(this);this.Sp=null}};n.qe=function(){this.b.R||(jQuery(this.m).remove(),this.m=null)};n.Na=function(){this.pf();this.cv();this.dv()};n.pf=function(){var d=this.k.ba(this.x,this.y,!0),l=this.k.ba(this.x,this.y,!1),b=this.k.ba(this.x+this.width,
this.y+this.height,!0),a=this.k.ba(this.x+this.width,this.y+this.height,!1);if(!this.visible||0>=b||0>=a||d>=this.b.width||l>=this.b.height)jQuery(this.m).hide();else{1>d&&(d=1);1>l&&(l=1);b>=this.b.width&&(b=this.b.width-1);a>=this.b.height&&(a=this.b.height-1);jQuery(this.m).show();var p=d+jQuery(this.b.canvas).offset().left,e=l+jQuery(this.b.canvas).offset().top;jQuery(this.m).offset({left:p,top:e});jQuery(this.m).width(b-d);jQuery(this.m).height(a-l)}};n.Hc=function(){};n.Tb=function(){};n.cv=
function(){!this.xp&&this.m.ended&&(this.Dh=!1,this.b.trigger(uc.prototype.e.Ie,this));this.xp=this.m.ended};n.dv=function(){this.Dh||this.m.currentTime==this.m.jx||(this.Dh=!0,this.b.trigger(uc.prototype.e.gu,this))};n.IsPlaying=function(){return!this.m.paused&&!this.m.ended};n.rb=function(){return{src0:this.m.children[0].src,src1:this.m.children[1].src,src2:this.m.children[2].src,ctl:this.m.controls,vol:this.m.volume,post:this.m.poster,lop:this.m.loop,mut:this.m.muted,ap:this.m.autoplay,vis:this.visible,
ct:this.m.currentTime,ip:this.IsPlaying()}};n.Ib=function(d){this.m.children[0].src=d.src0;this.m.children[1].src=d.src1;this.m.children[2].src=d.src2;this.m.controls=d.ctl;this.m.volume=d.vol;this.m.poster=d.post;this.m.loop=d.lop;this.m.muted=d.mut;this.m.autoplay=d.ap;this.visible=d.vis;this.Sp=d.ct;if(d.ip&&0==this.m.autoplay){var l=this.m,b=this;l.addEventListener("canplay",function(){l.currentTime=b.Sp;l.play()})}};l.e=new d;d.prototype.Ie=function(){return!0};d.prototype.zt=function(){return this.m.ended};
d.prototype.gu=function(){return!0};d.prototype.IsPlaying=function(){return this.IsPlaying()};l.A=new k;k.prototype.Play=function(){this.Dh=!1;this.m.play()};k.prototype.Wl=function(){this.m.pause();this.m.jx=0;this.m.currentTime=0;this.Dh=!1};k.prototype.Ej=function(d){this.m.volume=Fa(d,0,1)};k.prototype.sf=function(d){this.visible=0!==d};l.Aa=new function(){}})();function V(d){this.b=d}
(function(){function d(){if(0===this.rm.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.sh?b.drawImage(this.da,this.ih,this.jh,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.da,0,0,this.width,this.height);this.rm=a.toDataURL("image/png")}return this.rm}function k(){}function l(a){a[0]=0;a[1]=0;a[2]=0;h.push(a)}function n(a,b){return a<b?""+a+","+b:""+b+","+a}function t(a,b,c,e){b=b.uid;c=c.uid;var f=n(b,c);if(a.hasOwnProperty(f))a[f][2]=
e;else{var d=h.length?h.pop():[0,0,0];d[0]=b;d[1]=c;d[2]=e;a[f]=d}}function u(a,b,c){b=n(b.uid,c.uid);a.hasOwnProperty(b)&&(l(a[b]),delete a[b])}function b(a,b,c){b=n(b.uid,c.uid);if(a.hasOwnProperty(b))return g=a[b][2],!0;g=-2;return!1}function a(){}var p=V.prototype;p.ea=function(a){this.Da=a;this.b=a.b};var e=p.ea.prototype;e.K=function(){if(!this.O){var a,b,c,e,f,g,h,r,m;this.gd=[];this.ai=!1;a=0;for(b=this.uc.length;a<b;a++){f=this.uc[a];h={};h.name=f[0];h.speed=f[1];h.loop=f[2];h.fo=f[3];h.ho=
f[4];h.Nr=f[5];h.ja=f[6];h.frames=[];c=0;for(e=f[7].length;c<e;c++)g=f[7][c],r={},r.Ao=g[0],r.Bo=g[1],r.ih=g[2],r.jh=g[3],r.width=g[4],r.height=g[5],r.duration=g[6],r.hc=g[7],r.ic=g[8],r.Xm=g[9],r.dl=g[10],r.Or=g[11],r.sh=0!==r.width,r.rm="",r.Qz=d,m={left:0,top:0,right:1,bottom:1},r.so=m,r.W=null,(m=this.b.vw(g[0]))?r.da=m:(r.da=new Image,r.da.jv=g[0],r.da.Pp=g[1],r.da.Zu=null,this.b.Ss(r.da,g[0])),h.frames.push(r),this.gd.push(r);this.uc[a]=h}}};e.Ms=function(){var a,b,c;a=0;for(b=this.j.length;a<
b;a++)c=this.j[a],c.Vj=c.Cb.W};e.Si=function(){if(!this.O){var a,b,c;a=0;for(b=this.gd.length;a<b;++a)c=this.gd[a],c.da.Zu=null,c.W=null;this.ai=!1;this.Ms()}};e.Nn=function(){if(!this.O&&this.j.length){var a,b,c;a=0;for(b=this.gd.length;a<b;++a)c=this.gd[a],c.W=this.b.B.Lk(c.da,!1,this.b.Ma,c.Or);this.Ms()}};e.un=function(){if(!this.O&&!this.ai&&this.b.B){var a,b,c;a=0;for(b=this.gd.length;a<b;++a)c=this.gd[a],c.W=this.b.B.Lk(c.da,!1,this.b.Ma,c.Or);this.ai=!0}};e.Ko=function(){if(!this.O&&!this.j.length&&
this.ai){var a,b,c;a=0;for(b=this.gd.length;a<b;++a)c=this.gd[a],this.b.B.deleteTexture(c.W),c.W=null;this.ai=!1}};var c=[];e.Xn=function(a){var b,e,f;z(c);b=0;for(e=this.gd.length;b<e;++b)f=this.gd[b].da,-1===c.indexOf(f)&&(a.drawImage(f,0,0),c.push(f))};p.U=function(a){this.type=a;this.b=a.b;a=this.type.uc[0].frames[0].dl;this.Fc?this.ra.kj(a):this.ra=new gb(a)};var f=p.U.prototype;f.K=function(){this.visible=0===this.u[0];this.yk=this.Tf=!1;this.Wd=0!==this.u[3];this.Ia=this.iq(this.u[1])||this.type.uc[0];
this.I=this.u[2];0>this.I&&(this.I=0);this.I>=this.Ia.frames.length&&(this.I=this.Ia.frames.length-1);var a=this.Ia.frames[this.I];this.ra.kj(a.dl);this.hc=a.hc;this.ic=a.ic;this.Af=this.Ia.speed;this.Ue=this.Ia.ho;1===this.type.uc.length&&1===this.type.uc[0].frames.length||0===this.Af||(this.b.Ae(this),this.Tf=!0);this.Fc?this.Bd.reset():this.Bd=new eb;this.fe=this.Bd.aa;this.tf=!0;this.Td=0;this.Ne=!0;this.Bg=this.Dp="";this.Mp=0;this.Qj=-1;this.type.un();var b,c,e,f,d,g,h,a=0;for(b=this.type.uc.length;a<
b;a++)for(f=this.type.uc[a],c=0,e=f.frames.length;c<e;c++)d=f.frames[c],0===d.width&&(d.width=d.da.width,d.height=d.da.height),d.sh&&(h=d.da,g=d.so,g.left=d.ih/h.width,g.top=d.jh/h.height,g.right=(d.ih+d.width)/h.width,g.bottom=(d.jh+d.height)/h.height,0===d.ih&&0===d.jh&&d.width===h.width&&d.height===h.height&&(d.sh=!1));this.Cb=this.Ia.frames[this.I];this.Vj=this.Cb.W};f.rb=function(){var a={a:this.Ia.ja,f:this.I,cas:this.Af,fs:this.fe,ar:this.Td,at:this.Bd.aa,rt:this.Ue};this.tf||(a.ap=this.tf);
this.Ne||(a.af=this.Ne);return a};f.Ib=function(a){var b=this.zw(a.a);b&&(this.Ia=b);this.I=a.f;0>this.I&&(this.I=0);this.I>=this.Ia.frames.length&&(this.I=this.Ia.frames.length-1);this.Af=a.cas;this.fe=a.fs;this.Td=a.ar;this.Bd.reset();this.Bd.aa=a.at;this.tf=a.hasOwnProperty("ap")?a.ap:!0;this.Ne=a.hasOwnProperty("af")?a.af:!0;a.hasOwnProperty("rt")?this.Ue=a.rt:this.Ue=this.Ia.ho;this.Cb=this.Ia.frames[this.I];this.Vj=this.Cb.W;this.ra.kj(this.Cb.dl);this.hc=this.Cb.hc;this.ic=this.Cb.ic};f.dm=
function(a){this.I=a?0:this.Ia.frames.length-1;this.tf=!1;this.Dp=this.Ia.name;this.yk=!0;this.b.trigger(V.prototype.e.Mt,this);this.b.trigger(V.prototype.e.Zo,this);this.yk=!1;this.Td=0};f.Ih=function(){return this.Bd.aa};f.Na=function(){this.Bd.add(this.b.rk(this));this.Bg.length&&this.Vp();0<=this.Qj&&this.Wp();var a=this.Bd.aa,b=this.Ia,c=b.frames[this.I],e=c.duration/this.Af;this.tf&&a>=this.fe+e&&(this.Ne?this.I++:this.I--,this.fe+=e,this.I>=b.frames.length&&(b.Nr?(this.Ne=!1,this.I=b.frames.length-
2):b.loop?this.I=this.Ue:(this.Td++,this.Td>=b.fo?this.dm(!1):this.I=this.Ue)),0>this.I&&(b.Nr?(this.I=1,this.Ne=!0,b.loop||(this.Td++,this.Td>=b.fo&&this.dm(!0))):b.loop?this.I=this.Ue:(this.Td++,this.Td>=b.fo?this.dm(!0):this.I=this.Ue)),0>this.I?this.I=0:this.I>=b.frames.length&&(this.I=b.frames.length-1),a>this.fe+b.frames[this.I].duration/this.Af&&(this.fe=a),a=b.frames[this.I],this.wg(c,a),this.b.xa=!0)};f.iq=function(a){var b,c,e;b=0;for(c=this.type.uc.length;b<c;b++)if(e=this.type.uc[b],mb(e.name,
a))return e;return null};f.zw=function(a){var b,c,e;b=0;for(c=this.type.uc.length;b<c;b++)if(e=this.type.uc[b],e.ja===a)return e;return null};f.Vp=function(){var a=this.Ia.frames[this.I],b=this.iq(this.Bg);this.Bg="";!b||mb(b.name,this.Ia.name)&&this.tf||(this.Ia=b,this.Af=b.speed,this.Ue=b.ho,0>this.I&&(this.I=0),this.I>=this.Ia.frames.length&&(this.I=this.Ia.frames.length-1),1===this.Mp&&(this.I=0),this.tf=!0,this.fe=this.Bd.aa,this.Ne=!0,this.wg(a,this.Ia.frames[this.I]),this.b.xa=!0)};f.Wp=function(){var a=
this.Ia.frames[this.I],b=this.I;this.I=qa(this.Qj);0>this.I&&(this.I=0);this.I>=this.Ia.frames.length&&(this.I=this.Ia.frames.length-1);b!==this.I&&(this.wg(a,this.Ia.frames[this.I]),this.fe=this.Bd.aa,this.b.xa=!0);this.Qj=-1};f.wg=function(a,b){var c=a.width,e=a.height,f=b.width,d=b.height;c!=f&&(this.width*=f/c);e!=d&&(this.height*=d/e);this.hc=b.hc;this.ic=b.ic;this.ra.kj(b.dl);this.F();this.Cb=b;this.Vj=b.W;c=0;for(e=this.J.length;c<e;c++)f=this.J[c],f.Dr&&f.Dr(a,b);this.b.trigger(V.prototype.e.wg,
this)};f.Hc=function(a){a.globalAlpha=this.opacity;var b=this.Cb,c=b.sh,e=b.da,f=this.x,d=this.y,g=this.width,h=this.height;if(0===this.q&&0<=g&&0<=h)f-=this.hc*g,d-=this.ic*h,this.b.qd&&(f=Math.round(f),d=Math.round(d)),c?a.drawImage(e,b.ih,b.jh,b.width,b.height,f,d,g,h):a.drawImage(e,f,d,g,h);else{this.b.qd&&(f=Math.round(f),d=Math.round(d));a.save();var r=0<g?1:-1,m=0<h?1:-1;a.translate(f,d);1===r&&1===m||a.scale(r,m);a.rotate(this.q*r*m);f=0-this.hc*na(g);d=0-this.ic*na(h);c?a.drawImage(e,b.ih,
b.jh,b.width,b.height,f,d,na(g),na(h)):a.drawImage(e,f,d,na(g),na(h));a.restore()}};f.Cf=function(a){this.Tb(a)};f.Tb=function(a){a.oc(this.Vj);a.lf(this.opacity);var b=this.Cb,c=this.Xb;if(this.b.qd){var e=Math.round(this.x)-this.x,f=Math.round(this.y)-this.y;b.sh?a.Nd(c.cb+e,c.eb+f,c.Ob+e,c.Pb+f,c.zb+e,c.Ab+f,c.xb+e,c.yb+f,b.so):a.mh(c.cb+e,c.eb+f,c.Ob+e,c.Pb+f,c.zb+e,c.Ab+f,c.xb+e,c.yb+f)}else b.sh?a.Nd(c.cb,c.eb,c.Ob,c.Pb,c.zb,c.Ab,c.xb,c.yb,b.so):a.mh(c.cb,c.eb,c.Ob,c.Pb,c.zb,c.Ab,c.xb,c.yb)};
f.Dw=function(a){var b=this.Cb,c,e;c=0;for(e=b.Xm.length;c<e;c++)if(mb(a,b.Xm[c][0]))return c;return-1};f.Lm=function(a,b){var c=this.Cb,e=c.Xm,f;ia(a)?f=this.Dw(a):f=a-1;f=qa(f);if(0>f||f>=e.length)return b?this.x:this.y;var d=(e[f][1]-c.hc)*this.width,e=e[f][2],e=(e-c.ic)*this.height,c=Math.cos(this.q);f=Math.sin(this.q);var g=d*c-e*f,e=e*c+d*f,d=g+this.x,e=e+this.y;return b?d:e};var h=[],g=-2,D=[];k.prototype.Qt=function(a){if(!a)return!1;var c=this.b,e=c.Uh(),f=e.type,d=null;e.G.collmemory?d=
e.G.collmemory:(d={},e.G.collmemory=d);e.G.spriteCreatedDestroyCallback||(e.G.spriteCreatedDestroyCallback=!0,c.Zl(function(a){var b=e.G.collmemory;a=a.uid;var c,f;for(c in b)b.hasOwnProperty(c)&&(f=b[c],f[0]===a||f[1]===a)&&(l(b[c]),delete b[c])}));var h=f.ma(),r=a.ma(),h=h.xc(),m,q,p,n,k,R,G,w=this.b.wd,H=w-1,N=c.ib().Yb;for(q=0;q<h.length;q++){p=h[q];r.za?(p.wa(),this.b.Im(p.k,a,p.La,D),m=D):m=r.xc();for(n=0;n<m.length;n++)k=m[n],c.rc(p,k)||c.bv(p,k)?(R=b(d,p,k),R=!R||g<H,t(d,p,k,w),R&&(c.il(N.Ea),
R=f.ma(),G=a.ma(),R.za=!1,G.za=!1,f===a?(R.j.length=2,R.j[0]=p,R.j[1]=k,f.Rc()):(R.j.length=1,G.j.length=1,R.j[0]=p,G.j[0]=k,f.Rc(),a.Rc()),N.my(),c.gg(N.Ea))):u(d,p,k);z(D)}return!1};var G=null,r=new ba,m=!1,q=[],R=new ua(0,0,0,0);e.finish=function(a){if(m){if(a){var b=this.b.ib().Yb.Nc;a=G.ma();var c=r.dd(),e,f;if(a.za){a.za=!1;z(a.j);e=0;for(f=c.length;e<f;++e)a.j[e]=c[e];if(b)for(z(a.X),e=0,f=G.j.length;e<f;++e)c=G.j[e],r.contains(c)||a.X.push(c)}else if(b)for(b=a.j.length,e=0,f=c.length;e<f;++e)a.j[b+
e]=c[e],Ea(a.X,c[e]);else Ba(a.j,c);G.Rc()}r.clear();m=!1}};k.prototype.Gt=function(a){if(a){var b=!1,c,e,f,d=this.b.Uh(),g=d.type,d=d.Ak;c=a.ma();e=this.b.ib().Yb.Nc;var h;c.za?(this.wa(),R.Cg(this.La),R.offset(0,0),this.b.Im(this.k,a,R,q),h=q):h=e?this.b.ox()&&!c.X.length&&c.j.length?c.j:c.X:c.j;G=a;m=g!==a&&!d;c=0;for(e=h.length;c<e;c++)if(f=h[c],this.b.rc(this,f)){b=!0;if(d)break;g!==a&&r.add(f)}z(q);a=b}else a=!1;return a};k.prototype.tt=function(a){return this.Bg.length?mb(this.Bg,a):mb(this.Ia.name,
a)};k.prototype.dt=function(a,b){return ec(this.I,a,b)};k.prototype.Zo=function(a){return mb(this.Dp,a)};k.prototype.Mt=function(){return!0};k.prototype.wg=function(){return!0};p.e=new k;a.prototype.ru=function(a,b){this.Bg=a;this.Mp=b;this.Tf||(this.b.Ae(this),this.Tf=!0);this.yk||this.Vp()};a.prototype.su=function(a){this.Qj=a;this.Tf||(this.b.Ae(this),this.Tf=!0);this.yk||this.Wp()};a.prototype.tu=function(a){this.Af=na(a);this.Ne=0<=a;this.Tf||(this.b.Ae(this),this.Tf=!0)};a.prototype.yu=function(a){a=
na(this.width)*(0===a?-1:1);this.width!==a&&(this.width=a,this.F())};p.A=new a;p.Aa=new function(){}})();function vc(d){this.b=d}
(function(){function d(){return p.length?p.pop():{}}function k(a){var b,f;b=0;for(f=a.length;b<f;b++)p.push(a[b]);z(a)}function l(a){return a.length&&" "===a.charAt(a.length-1)?a.substring(0,a.length-1):a}function n(){}function t(){}var u=vc.prototype;u.K=function(){u.A.Eu=function(a){this.width!==a&&(this.width=a,this.pg=!0,this.F())}};u.ea=function(a){this.Da=a;this.b=a.b};var b=u.ea.prototype;b.K=function(){};b.Si=function(){if(!this.O){var a,b,f;a=0;for(b=this.j.length;a<b;a++)f=this.j[a],f.Kd=
null,f.eg=null,f.Cc=null}};u.U=function(a){this.type=a;this.b=a.b;this.Fc?z(this.bf):this.bf=[];this.pg=!0};b=u.U.prototype;b.K=function(){this.text=this.u[0];this.visible=0===this.u[1];this.font=this.u[2];this.color=this.u[3];this.vk=this.u[4];this.Ml=this.u[5];this.Vo=0===this.u[7];this.pn=this.Gk=this.width;this.Fk=this.height;this.rn=this.u[8];this.lk=this.Gg="";this.zs=this.As=this.aj=0;this.Rx();this.Cc=this.eg=this.Kd=null;this.qr=!1;this.Bi=this.b.wd;this.Fc?this.kf.set(0,0,1,1):this.kf=new ua(0,
0,1,1);this.b.B&&this.b.Ae(this)};b.Rx=function(){var a=this.font.split(" "),b;for(b=0;b<a.length;b++)if("pt"===a[b].substr(a[b].length-2,2)){this.aj=parseInt(a[b].substr(0,a[b].length-2));this.ao=Math.ceil(this.aj/72*96)+4;0<b&&(this.lk=a[b-1]);this.Gg=a[b+1];for(b+=2;b<a.length;b++)this.Gg+=" "+a[b];break}};b.rb=function(){return{t:this.text,f:this.font,c:this.color,ha:this.vk,va:this.Ml,wr:this.Vo,lho:this.rn,fn:this.Gg,fs:this.lk,ps:this.aj,pxh:this.ao,tw:this.As,th:this.zs,lrt:this.Bi}};b.Ib=
function(a){this.text=a.t;this.font=a.f;this.color=a.c;this.vk=a.ha;this.Ml=a.va;this.Vo=a.wr;this.rn=a.lho;this.Gg=a.fn;this.lk=a.fs;this.aj=a.ps;this.ao=a.pxh;this.As=a.tw;this.zs=a.th;this.Bi=a.lrt;this.pg=!0;this.pn=this.Gk=this.width;this.Fk=this.height};b.Na=function(){if(this.b.B&&this.Cc&&300<=this.b.wd-this.Bi){var a=this.k;this.wa();var b=this.La;if(b.right<a.Ba||b.bottom<a.Ca||b.left>a.Ga||b.top>a.Fa)this.b.B.deleteTexture(this.Cc),this.Kd=this.eg=this.Cc=null}};b.qe=function(){this.Kd=
this.eg=null;this.b.B&&this.Cc&&this.b.B.deleteTexture(this.Cc);this.Cc=null};b.Ih=function(){this.font=this.lk+" "+this.aj.toString()+"pt "+this.Gg;this.pg=!0;this.b.xa=!0};b.Hc=function(a,b){a.font=this.font;a.textBaseline="top";a.fillStyle=this.color;a.globalAlpha=b?1:this.opacity;var f=1;b&&(f=Math.abs(this.k.gc()),a.save(),a.scale(f,f));if(this.pg||this.width!==this.pn)this.type.Da.Lu(this.text,this.bf,a,this.width,this.Vo),this.pg=!1,this.pn=this.width;this.wa();var f=b?0:this.Xb.cb,d=b?0:this.Xb.eb;
this.b.qd&&(f=f+.5|0,d=d+.5|0);0===this.q||b||(a.save(),a.translate(f,d),a.rotate(this.q),d=f=0);var g=d+this.height,l=this.ao,l=l+this.rn,p,r;1===this.Ml?d+=Math.max(this.height/2-this.bf.length*l/2,0):2===this.Ml&&(d+=Math.max(this.height-this.bf.length*l-2,0));for(r=0;r<this.bf.length&&!(p=f,1===this.vk?p=f+(this.width-this.bf[r].width)/2:2===this.vk&&(p=f+(this.width-this.bf[r].width)),a.fillText(this.bf[r].text,p,d),d+=l,d>=g-l);r++);(0!==this.q||b)&&a.restore();this.Bi=this.b.wd};b.Tb=function(a){if(!(1>
this.width||1>this.height)){var b=this.pg||this.qr;this.qr=!1;var f=this.k.gc(),d=this.k.hb(),g=this.kf,l=f*this.width,p=f*this.height,r=Math.ceil(l),m=Math.ceil(p),q=Math.abs(r),k=Math.abs(m),n=this.b.M/2,t=this.b.L/2;this.eg||(this.Kd=document.createElement("canvas"),this.Kd.width=q,this.Kd.height=k,this.Gk=q,this.Fk=k,b=!0,this.eg=this.Kd.getContext("2d"));if(q!==this.Gk||k!==this.Fk)this.Kd.width=q,this.Kd.height=k,this.Cc&&(a.deleteTexture(this.Cc),this.Cc=null),b=!0;b&&(this.eg.clearRect(0,
0,q,k),this.Hc(this.eg,!0),this.Cc||(this.Cc=a.wc(q,k,this.b.Ma,this.b.ke)),a.Qo(this.Kd,this.Cc,this.b.ke));this.Gk=q;this.Fk=k;a.oc(this.Cc);a.lf(this.opacity);a.$c();a.translate(-n,-t);a.Pc();var u=this.Xb,b=this.k.ba(u.cb,u.eb,!0,!0),q=this.k.ba(u.cb,u.eb,!1,!0),k=this.k.ba(u.Ob,u.Pb,!0,!0),n=this.k.ba(u.Ob,u.Pb,!1,!0),t=this.k.ba(u.zb,u.Ab,!0,!0),O=this.k.ba(u.zb,u.Ab,!1,!0),x=this.k.ba(u.xb,u.yb,!0,!0),u=this.k.ba(u.xb,u.yb,!1,!0);if(this.b.qd||0===this.q&&0===d)var y=(b+.5|0)-b,K=(q+.5|0)-
q,b=b+y,q=q+K,k=k+y,n=n+K,t=t+y,O=O+K,x=x+y,u=u+K;0===this.q&&0===d?(k=b+r,n=q,t=k,O=q+m,x=b,u=O,g.right=1,g.bottom=1):(g.right=l/r,g.bottom=p/m);a.Nd(b,q,k,n,t,O,x,u,g);a.$c();a.scale(f,f);a.nl(-this.k.hb());a.translate((this.k.Ba+this.k.Ga)/-2,(this.k.Ca+this.k.Fa)/-2);a.Pc();this.Bi=this.b.wd}};var a=[];u.Ju=function(b){z(a);for(var c="",f,d=0;d<b.length;)if(f=b.charAt(d),"\n"===f)c.length&&(a.push(c),c=""),a.push("\n"),++d;else if(" "===f||"\t"===f||"-"===f){do c+=b.charAt(d),d++;while(d<b.length&&
(" "===b.charAt(d)||"\t"===b.charAt(d)));a.push(c);c=""}else d<b.length&&(c+=f,d++);c.length&&a.push(c)};var p=[];u.Lu=function(a,b,f,h,g){if(a&&a.length)if(2>=h)k(b);else{if(100>=a.length&&-1===a.indexOf("\n")){var l=f.measureText(a).width;if(l<=h){k(b);b.push(d());b[0].text=a;b[0].width=l;return}}this.Mu(a,b,f,h,g)}else k(b)};u.Mu=function(b,c,f,h,g){g&&(this.Ju(b),b=a);var k="",n,r,m,q=0;for(m=0;m<b.length;m++)"\n"===b[m]?(q>=c.length&&c.push(d()),k=l(k),r=c[q],r.text=k,r.width=f.measureText(k).width,
q++,k=""):(n=k,k+=b[m],r=f.measureText(k).width,r>=h&&(q>=c.length&&c.push(d()),n=l(n),r=c[q],r.text=n,r.width=f.measureText(n).width,q++,k=b[m],g||" "!==k||(k="")));k.length&&(q>=c.length&&c.push(d()),k=l(k),r=c[q],r.text=k,r.width=f.measureText(k).width,q++);for(m=q;m<c.length;m++)p.push(c[m]);c.length=q};u.e=new function(){};n.prototype.wp=function(a){ha(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.pg=!0,this.b.xa=!0)};u.A=new n;t.prototype.Text=function(a){a.Mb(this.text)};
u.Aa=new t})();function wc(d){this.b=d}
(function(){function d(){}function k(){}function l(){}var n=wc.prototype;n.ea=function(b){this.Da=b;this.b=b.b};n.ea.prototype.K=function(){};n.U=function(b){this.type=b;this.b=b.b};var t=n.U.prototype,u="text password email number tel url".split(" ");-1<navigator.userAgent.indexOf("MSIE 9")&&(u[2]="text",u[3]="text",u[4]="text",u[5]="text");t.K=function(){if(this.b.R)da("[Construct 2] Textbox plugin not supported on this platform - the object will not be created");else{6===this.u[7]?(this.m=document.createElement("textarea"),
jQuery(this.m).css("resize","none")):(this.m=document.createElement("input"),this.m.type=u[this.u[7]]);this.m.id=this.u[9];jQuery(this.m).appendTo(this.b.Re?this.b.Re:"body");this.m.autocomplete="off";this.m.value=this.u[0];this.m.placeholder=this.u[1];this.m.title=this.u[2];this.m.disabled=0===this.u[4];this.m.readOnly=1===this.u[5];this.m.spellcheck=1===this.u[6];this.Vu=0!==this.u[8];this.fc=!1;0===this.u[3]&&(jQuery(this.m).hide(),this.visible=!1,this.fc=!0);var b=function(a){return function(){a.b.trigger(wc.prototype.e.lu,
a)}}(this);this.m.oninput=b;-1!==navigator.userAgent.indexOf("MSIE")&&(this.m.oncut=b);this.m.onclick=function(a){return function(b){b.stopPropagation();a.b.ta=!0;a.b.trigger(wc.prototype.e.Pt,a);a.b.ta=!1}}(this);this.m.ondblclick=function(a){return function(b){b.stopPropagation();a.b.ta=!0;a.b.trigger(wc.prototype.e.Rt,a);a.b.ta=!1}}(this);this.m.addEventListener("touchstart",function(a){a.stopPropagation()},!1);this.m.addEventListener("touchmove",function(a){a.stopPropagation()},!1);this.m.addEventListener("touchend",
function(a){a.stopPropagation()},!1);jQuery(this.m).mousedown(function(a){a.stopPropagation()});jQuery(this.m).mouseup(function(a){a.stopPropagation()});jQuery(this.m).keydown(function(a){13!==a.which&&27!=a.which&&a.stopPropagation()});jQuery(this.m).keyup(function(a){13!==a.which&&27!=a.which&&a.stopPropagation()});this.yi=this.Ai=this.ri=this.wi=this.xi=this.ti=0;this.pf(!0);this.b.Ae(this)}};t.rb=function(){return{text:this.m.value,placeholder:this.m.placeholder,tooltip:this.m.title,disabled:!!this.m.disabled,
readonly:!!this.m.readOnly,spellcheck:!!this.m.spellcheck}};t.Ib=function(b){this.m.value=b.text;this.m.placeholder=b.placeholder;this.m.title=b.tooltip;this.m.disabled=b.disabled;this.m.readOnly=b.readonly;this.m.spellcheck=b.spellcheck};t.qe=function(){this.b.R||(jQuery(this.m).remove(),this.m=null)};t.Na=function(){this.pf()};t.pf=function(b){if(!this.b.R){var a=this.k.ba(this.x,this.y,!0),d=this.k.ba(this.x,this.y,!1),e=this.k.ba(this.x+this.width,this.y+this.height,!0),c=this.k.ba(this.x+this.width,
this.y+this.height,!1),f=this.b.width/this.b.devicePixelRatio,h=this.b.height/this.b.devicePixelRatio;!this.visible||!this.k.visible||0>=e||0>=c||a>=f||d>=h?(this.fc||jQuery(this.m).hide(),this.fc=!0):(1>a&&(a=1),1>d&&(d=1),e>=f&&(e=f-1),c>=h&&(c=h-1),f=window.innerWidth,h=window.innerHeight,b||this.ti!==a||this.xi!==d||this.wi!==e||this.ri!==c||this.Ai!==f||this.yi!==h?(this.ti=a,this.xi=d,this.wi=e,this.ri=c,this.Ai=f,this.yi=h,this.fc&&(jQuery(this.m).show(),this.fc=!1),b=Math.round(a)+jQuery(this.b.canvas).offset().left,
f=Math.round(d)+jQuery(this.b.canvas).offset().top,jQuery(this.m).css("position","absolute"),jQuery(this.m).offset({left:b,top:f}),jQuery(this.m).width(Math.round(e-a)),jQuery(this.m).height(Math.round(c-d)),this.Vu&&jQuery(this.m).css("font-size",this.k.gc(!0)/this.b.devicePixelRatio-.2+"em")):this.fc&&(jQuery(this.m).show(),this.fc=!1))}};t.Hc=function(){};t.Tb=function(){};d.prototype.lu=function(){return!0};d.prototype.Pt=function(){return!0};d.prototype.Rt=function(){return!0};n.e=new d;k.prototype.wp=
function(b){this.b.R||(this.m.value=b)};k.prototype.sf=function(b){this.b.R||(this.visible=0!==b)};k.prototype.Sd=function(b){this.b.R||(this.m.disabled=0===b)};n.A=new k;l.prototype.Text=function(b){this.b.R?b.Mb(""):b.Mb(this.m.value)};n.Aa=new l})();function xc(d){this.b=d}
(function(){var d=xc.prototype;d.ea=function(d){this.Da=d;this.b=d.b};var k=d.ea.prototype;k.K=function(){this.O||(this.da=new Image,this.da.Pp=this.Bo,this.b.Ss(this.da,this.Ao),this.W=this.pattern=null)};k.Si=function(){this.O||(this.W=null)};k.Nn=function(){if(!this.O&&this.j.length){this.W||(this.W=this.b.B.Lk(this.da,!0,this.b.Ma,this.Co));var d,k;d=0;for(k=this.j.length;d<k;d++)this.j[d].W=this.W}};k.un=function(){this.O||this.W||!this.b.B||(this.W=this.b.B.Lk(this.da,!0,this.b.Ma,this.Co))};
k.Ko=function(){this.O||this.j.length||!this.W||(this.b.B.deleteTexture(this.W),this.W=null)};k.Xn=function(d){d.drawImage(this.da,0,0)};d.U=function(d){this.type=d;this.b=d.b};k=d.U.prototype;k.K=function(){this.visible=0===this.u[0];this.kf=new ua(0,0,0,0);this.rq=!1;this.da=this.type.da;this.b.B?(this.type.un(),this.W=this.type.W):(this.type.pattern||(this.type.pattern=this.b.Oa.createPattern(this.type.da,"repeat")),this.pattern=this.type.pattern)};k.Ad=function(){this.rq=!1;this.da=this.type.da};
k.qe=function(){this.b.B&&this.rq&&this.W&&(this.b.B.deleteTexture(this.W),this.W=null)};k.Hc=function(d){d.globalAlpha=this.opacity;d.save();d.fillStyle=this.pattern;var k=this.x,t=this.y;this.b.qd&&(k=Math.round(k),t=Math.round(t));var u=-(this.hc*this.width),b=-(this.ic*this.height),a=u%this.da.width,p=b%this.da.height;0>a&&(a+=this.da.width);0>p&&(p+=this.da.height);d.translate(k,t);d.rotate(this.q);d.translate(a,p);d.fillRect(u-a,b-p,this.width,this.height);d.restore()};k.Cf=function(d){this.Tb(d)};
k.Tb=function(d){d.oc(this.W);d.lf(this.opacity);var k=this.kf;k.right=this.width/this.da.width;k.bottom=this.height/this.da.height;var t=this.Xb;if(this.b.qd){var u=Math.round(this.x)-this.x,b=Math.round(this.y)-this.y;d.Nd(t.cb+u,t.eb+b,t.Ob+u,t.Pb+b,t.zb+u,t.Ab+b,t.xb+u,t.yb+b,k)}else d.Nd(t.cb,t.eb,t.Ob,t.Pb,t.zb,t.Ab,t.xb,t.yb,k)};d.e=new function(){};d.A=new function(){};d.Aa=new function(){}})();function Y(d){this.b=d}
(function(){function d(a){p=a.x;e=a.y;c=a.z}function k(a,b,c,e){var d;d=f.length?f.pop():new l;d.init(a,b,c,e);return d}function l(){this.oj=this.id=this.y=this.x=this.Al=this.zl=this.nn=this.time=this.yo=0;this.uj=this.Hl=!1}function n(){}function t(){}var u=Y.prototype;u.ea=function(a){this.Da=a;this.b=a.b};u.ea.prototype.K=function(){};u.U=function(a){this.type=a;this.b=a.b;this.touches=[];this.Cn=!1};var b=u.U.prototype,a={left:0,top:0};b.Th=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 p=0,e=0,c=0,f=[];l.prototype.init=function(a,b,c,e){var f=Wa();this.yo=this.nn=this.time=f;this.zl=a;this.Al=b;this.x=a;this.y=b;this.pressure=this.height=this.width=0;this.id=c;this.oj=e;this.uj=this.Hl=!1};l.prototype.update=function(a,b,c,e,f,d){this.nn=this.time;this.time=a;this.x=b;this.y=c;this.width=e;this.height=f;this.pressure=d;!this.uj&&15<=Sa(this.zl,this.Al,this.x,this.y)&&(this.uj=!0)};l.prototype.Cx=function(a,b){!this.Hl&&500<=
Wa()-this.yo&&!this.uj&&15>Sa(this.zl,this.Al,this.x,this.y)&&(this.Hl=!0,a.Rd=this.oj,a.wh=this.id,a.Lg=b,a.b.trigger(Y.prototype.e.Xt,a),a.Yd=this.x,a.Zd=this.y,a.b.trigger(Y.prototype.e.fp,a),a.Lg=0)};var h=-1E3,g=-1E3,D=-1E4;l.prototype.jr=function(a,b){if(!this.Hl){var c=Wa();333>=c-this.yo&&!this.uj&&15>Sa(this.zl,this.Al,this.x,this.y)&&(a.Rd=this.oj,a.wh=this.id,a.Lg=b,666>=c-D&&25>Sa(h,g,this.x,this.y)?(a.b.trigger(Y.prototype.e.St,a),a.Yd=this.x,a.Zd=this.y,a.b.trigger(Y.prototype.e.Tt,
a),g=h=-1E3,D=-1E4):(a.b.trigger(Y.prototype.e.ju,a),a.Yd=this.x,a.Zd=this.y,a.b.trigger(Y.prototype.e.ku,a),h=this.x,g=this.y,D=c),a.Lg=0)}};b.K=function(){this.vx=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.Lg=this.wh=this.Rd=this.Zd=this.Yd=this.Ap=this.zp=this.yp=this.Qu=this.Pu=this.Ou=this.al=this.$k=this.Zk=0;this.Qy=0!==this.u[0];var a=0<this.b.Ub?document:this.b.canvas,b=document;this.b.Gb?b=a=window.Canvas:this.b.yc&&(b=a=window);var c=this;"undefined"!==typeof PointerEvent?
(a.addEventListener("pointerdown",function(a){c.Xi(a)},!1),a.addEventListener("pointermove",function(a){c.Wi(a)},!1),b.addEventListener("pointerup",function(a){c.re(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.re(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.Xi(a)},!1),a.addEventListener("MSPointerMove",function(a){c.Wi(a)},!1),b.addEventListener("MSPointerUp",function(a){c.re(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.re(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.Yk(a)},!1),a.addEventListener("touchmove",function(a){c.Xk(a)},!1),b.addEventListener("touchend",function(a){c.kh(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.kh(a,!0)},!1));if(this.vx){var e=function(a){a=a.reading;c.yp=a.accelerationX;c.zp=a.accelerationY;c.Ap=a.accelerationZ},f=function(a){a=a.reading;c.Zk=a.yawDegrees;c.$k=a.pitchDegrees;c.al=a.rollDegrees},g=Windows.Devices.Sensors.Accelerometer.getDefault();g&&(g.reportInterval=Math.max(g.minimumReportInterval,16),
g.addEventListener("readingchanged",e));var h=Windows.Devices.Sensors.Inclinometer.getDefault();h&&(h.reportInterval=Math.max(h.minimumReportInterval,16),h.addEventListener("readingchanged",f));document.addEventListener("visibilitychange",function(){document.hidden||document.msHidden?(g&&g.removeEventListener("readingchanged",e),h&&h.removeEventListener("readingchanged",f)):(g&&g.addEventListener("readingchanged",e),h&&h.addEventListener("readingchanged",f))},!1)}else window.addEventListener("deviceorientation",
function(a){c.Zk=a.alpha||0;c.$k=a.beta||0;c.al=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.Ou=a.accelerationIncludingGravity.x||0,c.Pu=a.accelerationIncludingGravity.y||0,c.Qu=a.accelerationIncludingGravity.z||0);a.acceleration&&(c.yp=a.acceleration.x||0,c.zp=a.acceleration.y||0,c.Ap=a.acceleration.z||0)},!1);this.Qy&&!this.b.R&&(jQuery(document).mousemove(function(a){c.Ui(a)}),jQuery(document).mousedown(function(a){c.Ti(a)}),jQuery(document).mouseup(function(a){c.Vi(a)}));
!this.b.le&&this.b.Lc&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(d,null,{frequency:40});this.b.Iy(this)};b.Wi=function(b){if(b.pointerType!==b.MSPOINTER_TYPE_MOUSE&&"mouse"!==b.pointerType){b.preventDefault&&b.preventDefault();var c=this.Th(b.pointerId),e=Wa();if(0<=c){var f=this.b.R?a:jQuery(this.b.canvas).offset(),c=this.touches[c];2>e-c.time||c.update(e,b.pageX-f.left,b.pageY-f.top,b.width||0,b.height||0,b.pressure||0)}}};b.Xi=
function(b){if(b.pointerType!==b.MSPOINTER_TYPE_MOUSE&&"mouse"!==b.pointerType){b.preventDefault&&nb(b)&&b.preventDefault();var c=this.b.R?a:jQuery(this.b.canvas).offset(),e=b.pageX-c.left,c=b.pageY-c.top;Wa();this.Rd=this.touches.length;this.wh=b.pointerId;this.touches.push(k(e,c,b.pointerId,this.Rd));this.b.ta=!0;this.b.trigger(Y.prototype.e.qp,this);this.b.trigger(Y.prototype.e.vp,this);this.Yd=e;this.Zd=c;this.b.trigger(Y.prototype.e.Ul,this);this.b.ta=!1}};b.re=function(a,b){if(a.pointerType!==
a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&nb(a)&&a.preventDefault();var c=this.Th(a.pointerId);this.Rd=0<=c?this.touches[c].oj:-1;this.wh=0<=c?this.touches[c].id:-1;this.b.ta=!0;this.b.trigger(Y.prototype.e.pp,this);this.b.trigger(Y.prototype.e.Tl,this);0<=c&&(b||this.touches[c].jr(this,c),100>f.length&&f.push(this.touches[c]),this.touches.splice(c,1));this.b.ta=!1}};b.Xk=function(b){b.preventDefault&&b.preventDefault();var c=Wa(),e,f,d,g;e=0;for(f=b.changedTouches.length;e<
f;e++)if(d=b.changedTouches[e],g=this.Th(d.identifier),0<=g){var h=this.b.R?a:jQuery(this.b.canvas).offset();g=this.touches[g];2>c-g.time||g.update(c,d.pageX-h.left,d.pageY-h.top,2*(d.$z||d.gA||d.Uz||d.Xz||0),2*(d.aA||d.hA||d.Vz||d.Yz||0),d.Oz||d.fA||d.Tz||d.Wz||0)}};b.Yk=function(b){b.preventDefault&&nb(b)&&b.preventDefault();var c=this.b.R?a:jQuery(this.b.canvas).offset();Wa();this.b.ta=!0;var e,d,f,g;e=0;for(d=b.changedTouches.length;e<d;e++)if(f=b.changedTouches[e],g=this.Th(f.identifier),-1===
g){g=f.pageX-c.left;var h=f.pageY-c.top;this.Rd=this.touches.length;this.wh=f.identifier;this.touches.push(k(g,h,f.identifier,this.Rd));this.b.trigger(Y.prototype.e.qp,this);this.b.trigger(Y.prototype.e.vp,this);this.Yd=g;this.Zd=h;this.b.trigger(Y.prototype.e.Ul,this)}this.b.ta=!1};b.kh=function(a,b){a.preventDefault&&nb(a)&&a.preventDefault();this.b.ta=!0;var c,e,d;c=0;for(e=a.changedTouches.length;c<e;c++)d=a.changedTouches[c],d=this.Th(d.identifier),0<=d&&(this.Rd=this.touches[d].oj,this.wh=this.touches[d].id,
this.b.trigger(Y.prototype.e.pp,this),this.b.trigger(Y.prototype.e.Tl,this),b||this.touches[d].jr(this,d),100>f.length&&f.push(this.touches[d]),this.touches.splice(d,1));this.b.ta=!1};b.Ih=function(){return this.b.Lc&&0===this.Zk&&0!==c?90*c:this.Zk};b.Mz=function(){return this.b.Lc&&0===this.$k&&0!==e?90*e:this.$k};b.Nz=function(){return this.b.Lc&&0===this.al&&0!==p?90*p:this.al};b.Ti=function(a){this.Yk({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.Cn=!0};b.Ui=function(a){this.Cn&&
this.Xk({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};b.Vi=function(a){a.preventDefault&&this.b.uk&&!this.b.ke&&a.preventDefault();this.b.uk=!0;this.kh({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.Cn=!1};b.El=function(){var a,b,c,e=Wa();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=e-50&&(c.nn=e),c.Cx(this,a)};n.prototype.vp=function(){return!0};n.prototype.Tl=function(){return!0};n.prototype.Bt=function(){return this.touches.length};n.prototype.Ul=
function(a){return a?this.b.rj(a,this.Yd,this.Zd):!1};var G=[];n.prototype.It=function(a){if(!a)return!1;var b=a.ma(),c=b.xc(),e,d,f,g,h,k;f=0;for(g=c.length;f<g;f++){var l=c[f];l.wa();h=0;for(k=this.touches.length;h<k;h++)if(d=this.touches[h],e=l.k.Ha(d.x,d.y,!0),d=l.k.Ha(d.x,d.y,!1),l.Bb(e,d)){G.push(l);break}}return G.length?(b.za=!1,Ba(b.j,G),a.Rc(),z(G),!0):!1};n.prototype.qp=function(a){a=Math.floor(a);return a===this.Rd};n.prototype.pp=function(a){a=Math.floor(a);return a===this.Rd};n.prototype.Xt=
function(){return!0};n.prototype.ju=function(){return!0};n.prototype.St=function(){return!0};n.prototype.fp=function(a){return a?this.b.rj(a,this.Yd,this.Zd):!1};n.prototype.ku=function(a){return a?this.b.rj(a,this.Yd,this.Zd):!1};n.prototype.Tt=function(a){return a?this.b.rj(a,this.Yd,this.Zd):!1};u.e=new n;t.prototype.Xl=function(a,b){var c=this.Lg;if(0>c||c>=this.touches.length)a.H(0);else{var e,d,f,g,h;ga(b)?(e=this.b.ge(0),d=e.scale,f=e.Wb,g=e.kc,h=e.q,e.scale=1,e.Wb=1,e.kc=1,e.q=0,a.H(e.Ha(this.touches[c].x,
this.touches[c].y,!0)),e.scale=d,e.Wb=f,e.kc=g,e.q=h):(e=ha(b)?this.b.ge(b):this.b.Vh(b))?a.H(e.Ha(this.touches[c].x,this.touches[c].y,!0)):a.H(0)}};t.prototype.Yl=function(a,b){var c=this.Lg;if(0>c||c>=this.touches.length)a.H(0);else{var e,d,f,g,h;ga(b)?(e=this.b.ge(0),d=e.scale,f=e.Wb,g=e.lc,h=e.q,e.scale=1,e.Wb=1,e.lc=1,e.q=0,a.H(e.Ha(this.touches[c].x,this.touches[c].y,!1)),e.scale=d,e.Wb=f,e.lc=g,e.q=h):(e=ha(b)?this.b.ge(b):this.b.Vh(b))?a.H(e.Ha(this.touches[c].x,this.touches[c].y,!1)):a.H(0)}};
u.Aa=new t})();function yc(d){this.b=d}
(function(){function d(a){return a&&!a.paused&&!a.ended&&0<a.currentTime}function k(){}function l(){}var n=yc.prototype;n.ea=function(a){this.Da=a;this.b=a.b};var t=n.ea.prototype;t.K=function(){};t.Si=function(){if(!this.O){var a,b,c;a=0;for(b=this.j.length;a<b;++a)c=this.j[a],c.W=null}};var t=document.createElement("video"),u=!!t.canPlayType("video/webm"),b=!!t.canPlayType("video/ogg"),a=!!t.canPlayType("video/mp4"),t=null;n.U=function(a){this.type=a;this.b=a.b};var t=n.U.prototype,p=[];document.addEventListener("touchend",
function(){var a,b;a=0;for(b=p.length;a<b;++a)p[a].play();z(p)},!0);t.hg=function(a){this.video&&(a?this.Ps&&!this.b.ta?(a=p.indexOf(this.video),-1===a&&p.push(this.video)):this.video.play():(a=p.indexOf(this.video),0<=a&&p.splice(a,1)))};t.K=function(){this.Ty=this.u[0];this.Gx=this.u[1];this.Fx=this.u[2];this.autoplay=this.u[3];this.Tx=0!==this.u[4];this.Ro=!1;this.video=document.createElement("video");this.video.crossOrigin="anonymous";this.W=null;this.$d=-1;this.zj=this.sg=null;this.Ry=this.b.Id||
this.b.Pg;var a=this;this.video.addEventListener("canplay",function(){a.$d=0;a.b.trigger(yc.prototype.e.Je,a)});this.video.addEventListener("canplaythrough",function(){a.$d=1;a.b.trigger(yc.prototype.e.Je,a)});this.video.addEventListener("ended",function(){a.$d=2;a.b.trigger(yc.prototype.e.Je,a)});this.video.addEventListener("error",function(){a.$d=3;a.b.trigger(yc.prototype.e.Je,a)});this.video.addEventListener("loadstart",function(){a.$d=4;a.b.trigger(yc.prototype.e.Je,a)});this.video.addEventListener("playing",
function(){a.$d=5;a.b.trigger(yc.prototype.e.Je,a)});this.video.addEventListener("pause",function(){a.$d=6;a.b.trigger(yc.prototype.e.Je,a)});this.video.addEventListener("stalled",function(){a.$d=7;a.b.trigger(yc.prototype.e.Je,a)});this.Ps=(this.b.le||this.b.ei&&(this.b.Og||this.b.fi))&&!this.b.gi&&!this.b.R;0===this.autoplay?(this.video.autoplay=!1,this.video.Wn="none"):1===this.autoplay?(this.video.autoplay=!1,this.video.Wn="auto"):2===this.autoplay&&(this.video.autoplay=!0,this.Ps&&this.hg(!0));
this.es(this.Ty,this.Gx,this.Fx);this.qf=(this.b.Dq||this.b.Uf)&&this.b.le&&!this.b.R;this.fc=!1;this.qf?(jQuery(this.video).appendTo(this.b.Re?this.b.Re:"body"),this.video.addEventListener("contextmenu",function(a){a.preventDefault();a.stopPropagation();return!1},!1),this.video.hasAttribute("controls")&&this.video.removeAttribute("controls"),this.video.setAttribute("webkit-playsinline",""),0===this.u[5]&&(jQuery(this.video).hide(),this.visible=!1,this.fc=!0)):this.visible=0!==this.u[5];this.yi=this.Ai=
this.ri=this.wi=this.xi=this.ti=0;this.qf&&this.pf(!0);this.b.Ae(this);this.Fc||(a=this,this.b.$l(function(b){a.On(b)}))};t.On=function(a){!this.Tx&&this.video&&(a?d(this.video)&&(this.hg(!1),this.video.pause(),this.Ro=!0):this.Ro&&(this.hg(!0),this.Ro=!1))};t.es=function(c,e,d){var k="";u&&c?k=c:b&&e?k=e:a&&d&&(k=d);this.b.Uf&&(k=this.b.sq+k);k&&(this.video.src=k);this.b.B&&this.W&&(this.b.B.deleteTexture(this.W),this.W=null);this.zj=this.sg=null};t.qe=function(){this.hg(!1);d(this.video)&&this.video.pause();
this.b.B&&this.W&&(this.b.B.deleteTexture(this.W),this.W=null);this.qf&&jQuery(this.video).remove();this.zj=this.sg=null;this.video.src="";this.video=null};t.Na=function(){d(this.video)&&!this.qf&&(this.b.xa=!0);this.qf&&this.pf()};t.pf=function(a){if(!this.b.R&&this.qf){var b=this.video.videoWidth,c=this.video.videoHeight;0>=b&&(b=320);0>=c&&(c=240);var e=b/c,d=this.width,k=this.height,l=0,p=c=b=0;d/k>e?(c=k*e,p=k,l=Math.floor((d-c)/2),0>l&&(l=0)):(c=d,p=d/e,b=Math.floor((k-p)/2),0>b&&(b=0));l=this.x+
l;b=this.y+b;e=this.k.ba(l,b,!0);d=this.k.ba(l,b,!1);k=this.k.ba(l+c,b+p,!0);c=this.k.ba(l+c,b+p,!1);if(!this.visible||!this.k.visible||0>=k||0>=c||e>=this.b.width||d>=this.b.height)this.fc||jQuery(this.video).hide(),this.fc=!0;else{1>e&&(e=1);1>d&&(d=1);k>=this.b.width&&(k=this.b.width-1);c>=this.b.height&&(c=this.b.height-1);b=window.innerWidth;p=window.innerHeight;if(!a&&this.ti===e&&this.xi===d&&this.wi===k&&this.ri===c&&this.Ai===b&&this.yi===p&&(this.fc&&(jQuery(this.video).show(),this.fc=!1),
!this.b.le||0!==this.b.wd%30))return;this.ti=e;this.xi=d;this.wi=k;this.ri=c;this.Ai=b;this.yi=p;this.fc&&(jQuery(this.video).show(),this.fc=!1);l=Math.round(e)+jQuery(this.b.canvas).offset().left;b=Math.round(d)+jQuery(this.b.canvas).offset().top;jQuery(this.video).css("position","absolute");jQuery(this.video).offset({left:l,top:b});jQuery(this.video).width(Math.round(k-e));jQuery(this.video).height(Math.round(c-d))}}};t.rb=function(){return{s:this.video.src||"",p:!!d(this.video),t:this.video.currentTime||
0}};t.Ib=function(a){if(a&&"undefined"!==typeof a.s){var b=a.s;this.es(b,b,b);try{this.video.currentTime=a.t}catch(c){}a.p?this.hg(!0):(this.hg(!1),this.video.pause())}};t.Hc=function(a){if(this.video&&!this.qf){var b=this.video.videoWidth,c=this.video.videoHeight;if(!(0>=b||0>=c)){var b=b/c,c=this.width,e=this.height,d=0,k=0,l=0,p=0;c/e>b?(l=e*b,p=e,d=Math.floor((c-l)/2),0>d&&(d=0)):(l=c,p=c/b,k=Math.floor((e-p)/2),0>k&&(k=0));a.globalAlpha=this.opacity;a.drawImage(this.video,this.x+d,this.y+k,l,
p)}}};var e=new ua(0,0,0,0),c=new va;t.Tb=function(a){if(this.video&&!this.qf){var b=this.video.videoWidth,d=this.video.videoHeight;if(!(0>=b||0>=d)){var k=b/d,l=this.width,p=this.height,m=0,n=0,t=0,u=0;l/p>k?(t=p*k,u=p,m=Math.floor((l-t)/2),0>m&&(m=0)):(t=l,u=l/k,n=Math.floor((p-u)/2),0>n&&(n=0));this.W||(this.W=a.wc(b,d,this.b.Ma,!1,!1));this.Ry?(this.zj||(this.sg=document.createElement("canvas"),this.sg.width=b,this.sg.height=d,this.zj=this.sg.getContext("2d")),this.zj.drawImage(this.video,0,0),
a.Qo(this.sg,this.W)):a.Qo(this.video,this.W);a.ve(this.Nb,this.Eb);a.lf(this.opacity);a.oc(this.W);e.set(this.x+m,this.y+n,this.x+m+t,this.y+n+u);c.rh(e);a.mh(c.cb,c.eb,c.Ob,c.Pb,c.zb,c.Ab,c.xb,c.yb)}}};k.prototype.IsPlaying=function(){return d(this.video)};k.prototype.ot=function(){return this.video.ended};k.prototype.Je=function(a){return this.$d===a};n.e=new k;l.prototype.Ej=function(a){a=Math.pow(10,a/20);0>a&&(a=0);1<a&&(a=1);this.video.volume=a};l.prototype.Play=function(){this.hg(!0)};n.A=
new l;n.Aa=new function(){}})();
function zc(d){this.b=d;var k=this;this.b.R||(jQuery(document).mousemove(function(d){k.Ui(d)}),jQuery(document).mousedown(function(d){k.Ti(d)}),jQuery(document).mouseup(function(d){k.Vi(d)}));d=0<this.b.Ub?document:this.b.canvas;this.b.Gb?d=window.Canvas:this.b.yc&&(d=window);"undefined"!==typeof PointerEvent?(d.addEventListener("pointerdown",function(d){k.Xi(d)},!1),d.addEventListener("pointermove",function(d){k.Wi(d)},!1),d.addEventListener("pointerup",function(d){k.re(d)},!1),d.addEventListener("pointercancel",
function(d){k.re(d)},!1)):window.navigator.msPointerEnabled?(d.addEventListener("MSPointerDown",function(d){k.Xi(d)},!1),d.addEventListener("MSPointerMove",function(d){k.Wi(d)},!1),d.addEventListener("MSPointerUp",function(d){k.re(d)},!1),d.addEventListener("MSPointerCancel",function(d){k.re(d)},!1)):(d.addEventListener("touchstart",function(d){k.Yk(d)},!1),d.addEventListener("touchmove",function(d){k.Xk(d)},!1),d.addEventListener("touchend",function(d){k.kh(d)},!1),d.addEventListener("touchcancel",
function(d){k.kh(d)},!1))}
(function(){function d(b){var a,d;a=0;for(d=b.J.length;a<d;a++)if(b.J[a]instanceof n.U)return b.J[a];return null}function k(){}function l(){}var n=zc.prototype,t={left:0,top:0};n.Ti=function(b){1===b.which&&this.Hn("leftmouse",b.pageX,b.pageY)};n.Ui=function(b){1===b.which&&this.In("leftmouse",b.pageX,b.pageY)};n.Vi=function(b){1===b.which&&this.Jn("leftmouse")};n.Yk=function(b){b.preventDefault&&nb(b)&&b.preventDefault();var a,d,e,c;a=0;for(d=b.changedTouches.length;a<d;a++)e=b.changedTouches[a],
c=e.identifier,this.Hn(c?c.toString():"<none>",e.pageX,e.pageY)};n.Xk=function(b){b.preventDefault&&b.preventDefault();var a,d,e,c;a=0;for(d=b.changedTouches.length;a<d;a++)e=b.changedTouches[a],c=e.identifier,this.In(c?c.toString():"<none>",e.pageX,e.pageY)};n.kh=function(b){b.preventDefault&&nb(b)&&b.preventDefault();var a,d,e;a=0;for(d=b.changedTouches.length;a<d;a++)e=b.changedTouches[a],e=e.identifier,this.Jn(e?e.toString():"<none>")};n.Xi=function(b){b.pointerType!==b.MSPOINTER_TYPE_MOUSE&&
"mouse"!==b.pointerType&&(b.preventDefault&&nb(b)&&b.preventDefault(),this.Hn(b.pointerId.toString(),b.pageX,b.pageY))};n.Wi=function(b){b.pointerType!==b.MSPOINTER_TYPE_MOUSE&&"mouse"!==b.pointerType&&(b.preventDefault&&b.preventDefault(),this.In(b.pointerId.toString(),b.pageX,b.pageY))};n.re=function(b){b.pointerType!==b.MSPOINTER_TYPE_MOUSE&&"mouse"!==b.pointerType&&(b.preventDefault&&nb(b)&&b.preventDefault(),this.Jn(b.pointerId.toString()))};n.Hn=function(b,a,k){var e=this.b.R?t:jQuery(this.b.canvas).offset();
a=a-e.left;k=k-e.top;var c,f,h,g,e=this.dg.dd(),l,n,r,m=null;l=0;for(n=e.length;l<n;l++)if(r=e[l],c=d(r),c.enabled&&!c.be&&(c=r.k.Ha(a,k,!0),f=r.k.Ha(a,k,!1),r.wa(),r.Bb(c,f)))m?r.k.index>m.k.index?(m=r,h=c,g=f):r.k.index===m.k.index&&r.Uc()>m.Uc()&&(m=r,h=c,g=f):(m=r,h=c,g=f);m&&d(m).Kx(b,h,g)};n.In=function(b,a,k){var e=this.b.R?t:jQuery(this.b.canvas).offset();a=a-e.left;k=k-e.top;var c,f=this.dg.dd(),h,g,l;h=0;for(g=f.length;h<g;h++)c=f[h],l=d(c),!l.enabled||!l.be||l.be&&l.vm!==b||(e=c.k.Ha(a,
k,!0),c=c.k.Ha(a,k,!1),l.Lx(e,c))};n.Jn=function(b){var a=this.dg.dd(),k,e,c;k=0;for(e=a.length;k<e;k++)c=a[k],c=d(c),c.be&&c.vm===b&&c.Nx()};n.ea=function(b){this.behavior=b;this.b=b.b};n.ea.prototype.K=function(){};n.U=function(b,a){this.type=b;this.behavior=b.behavior;this.d=a;this.b=b.b};var u=n.U.prototype;u.K=function(){this.be=!1;this.fa=this.N=0;this.vm="<none>";this.em=this.u[0];this.enabled=0!==this.u[1]};u.rb=function(){return{enabled:this.enabled}};u.Ib=function(b){this.enabled=b.enabled;
this.be=!1};u.Kx=function(b,a,d){this.N=a-this.d.x;this.fa=d-this.d.y;this.be=!0;this.vm=b;this.b.ta=!0;this.b.trigger(zc.prototype.e.Ut,this.d);this.b.ta=!1};u.Lx=function(b,a){var d=b-this.N,e=a-this.fa;if(0===this.em){if(this.d.x!==d||this.d.y!==e)this.d.x=d,this.d.y=e,this.d.F()}else 1===this.em?this.d.x!==d&&(this.d.x=d,this.d.F()):2===this.em&&this.d.y!==e&&(this.d.y=e,this.d.F())};u.Nx=function(){this.be=!1;this.b.ta=!0;this.b.trigger(zc.prototype.e.Vt,this.d);this.b.ta=!1};u.Na=function(){};
k.prototype.yt=function(){return this.be};k.prototype.Ut=function(){return!0};k.prototype.Vt=function(){return!0};k.prototype.Rl=function(){return!!this.enabled};n.e=new k;l.prototype.Sd=function(b){this.enabled=0!==b;this.enabled||(this.be=!1)};n.A=new l;n.Aa=new function(){}})();function Bc(d){this.b=d}
(function(){function d(){}function k(){}var l=Bc.prototype;l.ea=function(d){this.behavior=d;this.b=d.b};l.ea.prototype.K=function(){};l.U=function(d,k){this.type=d;this.behavior=d.behavior;this.d=k;this.b=d.b;this.wl=this.vo=this.uo=this.Wm=this.Jh=this.Oh=this.Xg=this.Yg=this.gj=this.Ci=!1;this.Hb=null;this.sn=-1;this.Wf=this.Vf=0;this.kk=!1;this.If=this.hd=0;this.jk=!0;this.fa=this.N=0};var n=l.U.prototype;n.Mo=function(){this.Ua=Math.cos(this.Jg);this.Va=Math.sin(this.Jg);this.ig=Math.cos(this.Jg-
Math.PI/2);this.jg=Math.sin(this.Jg-Math.PI/2);this.Ua=lb(this.Ua);this.Va=lb(this.Va);this.ig=lb(this.ig);this.jg=lb(this.jg);this.ok=this.Gd;0>this.Gd&&(this.Ua*=-1,this.Va*=-1,this.Gd=Math.abs(this.Gd))};n.K=function(){this.gh=this.u[0];this.xg=this.u[1];this.Eg=this.u[2];this.qi=this.u[3];this.ok=this.Gd=this.u[4];this.Sk=this.u[5];this.ck=0!==this.u[6];this.kn=this.u[7]/1E3;this.nv=1===this.u[8];this.enabled=0!==this.u[9];this.Bh=!1;this.Ch=this.b.ze(this.d);this.tn=-1;this.ng=0;this.Jg=L(90);
this.Mo();var d=this;this.nv&&!this.b.R&&(jQuery(document).keydown(function(k){d.Ln(k)}),jQuery(document).keyup(function(k){d.Mn(k)}));this.Fc||(this.pr=function(k){d.Kn(k)});this.b.Zl(this.pr);this.d.G.isPlatformBehavior=!0};n.rb=function(){return{ii:this.Wm,lfx:this.Vf,lfy:this.Wf,lfo:this.Hb?this.Hb.uid:-1,am:this.hd,en:this.enabled,fall:this.If,ft:this.jk,dx:this.N,dy:this.fa,ms:this.gh,acc:this.xg,dec:this.Eg,js:this.qi,g:this.Gd,g1:this.ok,mf:this.Sk,wof:this.Bh,woj:this.Ch?this.Ch.uid:-1,ga:this.Jg,
edj:this.ck,cdj:this.Jh,dj:this.Oh,sus:this.kn}};n.Ib=function(d){this.Wm=d.ii;this.Vf=d.lfx;this.Wf=d.lfy;this.sn=d.lfo;this.hd=d.am;this.enabled=d.en;this.If=d.fall;this.jk=d.ft;this.N=d.dx;this.fa=d.dy;this.gh=d.ms;this.xg=d.acc;this.Eg=d.dec;this.qi=d.js;this.Gd=d.g;this.ok=d.g1;this.Sk=d.mf;this.Bh=d.wof;this.tn=d.woj;this.Jg=d.ga;this.ck=d.edj;this.Jh=d.cdj;this.Oh=d.dj;this.kn=d.sus;this.wl=this.vo=this.uo=this.Xg=this.Yg=this.gj=this.Ci=!1;this.ng=0;this.Mo()};n.Ad=function(){-1===this.sn?
this.Hb=null:this.Hb=this.b.Kg(this.sn);-1===this.tn?this.Ch=null:this.Ch=this.b.Kg(this.tn)};n.Kn=function(d){this.Hb==d&&(this.Hb=null)};n.qe=function(){this.Hb=null;this.b.hy(this.pr)};n.Ln=function(d){switch(d.which){case 38:d.preventDefault();this.Yg=!0;break;case 37:d.preventDefault();this.Ci=!0;break;case 39:d.preventDefault(),this.gj=!0}};n.Mn=function(d){switch(d.which){case 38:d.preventDefault();this.Xg=this.Yg=!1;break;case 37:d.preventDefault();this.Ci=!1;break;case 39:d.preventDefault(),
this.gj=!1}};n.hf=function(){this.Yg=this.gj=this.Ci=!1};n.Ih=function(){return 0>this.Gd?-1:1};n.Cq=function(){var d=null,k=null,b,a;b=this.d.x;a=this.d.y;this.d.x+=this.Ua;this.d.y+=this.Va;this.d.F();if(this.Hb&&this.b.rc(this.d,this.Hb)&&(!this.b.Ho(this.Hb.type,pc)||this.Hb.G.solidEnabled))return this.d.x=b,this.d.y=a,this.d.F(),this.Hb;(d=this.b.ac(this.d))||0!==this.If||(k=this.b.ze(this.d,!0));this.d.x=b;this.d.y=a;this.d.F();if(d){if(this.b.rc(this.d,d))return null;this.kk=!1;return d}if(k&&
k.length){a=d=0;for(b=k.length;d<b;d++)k[a]=k[d],this.b.rc(this.d,k[d])||a++;if(1<=a)return this.kk=!0,k[0]}return null};n.Na=function(){};n.Rr=function(){var d=this.b.rk(this.d),k,b,a,l,e,c,f,h,g;this.Yg||this.wl||(this.Xg=!1);var n=this.Ci||this.uo;a=this.gj||this.vo;var G=(l=this.Yg||this.wl)&&!this.Xg;this.wl=this.vo=this.uo=!1;if(this.enabled){this.Wm&&(G=l=a=n=!1);l||(this.ng=0);h=this.Hb;g=!1;this.jk&&((this.b.ac(this.d)||this.b.ze(this.d))&&this.b.Zc(this.d,-this.Ua,-this.Va,4,!0),this.jk=
!1);!h||0!==this.fa||h.y===this.Wf&&h.x===this.Vf||(k=h.x-this.Vf,b=h.y-this.Wf,this.d.x+=k,this.d.y+=b,this.d.F(),this.Vf=h.x,this.Wf=h.y,g=!0,this.b.ac(this.d)&&this.b.Zc(this.d,-k,-b,2.5*Math.sqrt(k*k+b*b)));var r=this.Cq();if(b=this.b.ac(this.d))if(this.d.G.inputPredicted)this.b.Zc(this.d,-this.Ua,-this.Va,10,!1);else if(this.b.cy(this.d,Math.max(this.d.width,this.d.height)/2))this.b.ej(this.d,b);else return;r?(this.Jh=this.Oh=!1,0<this.fa&&(this.Bh||(this.b.$n(this.d,-this.Ua,-this.Va,r),this.Bh=
!0),this.fa=0),h!=r)?(this.Hb=r,this.Vf=r.x,this.Wf=r.y,this.b.ej(this.d,r)):g&&(b=this.b.ac(this.d))&&(this.b.ej(this.d,b),0!==k&&(0<k?this.b.Zc(this.d,-this.ig,-this.jg):this.b.Zc(this.d,this.ig,this.jg)),this.b.Zc(this.d,-this.Ua,-this.Va)):l||(this.Jh=!0);if(r&&G||!r&&this.ck&&l&&this.Jh&&!this.Oh)h=this.d.x,g=this.d.y,this.d.x-=this.Ua,this.d.y-=this.Va,this.d.F(),this.b.ac(this.d)?G=!1:(this.ng=this.kn,this.b.trigger(Bc.prototype.e.gp,this.d),this.hd=2,this.fa=-this.qi,G=!0,r?this.Xg=!0:this.Oh=
!0),this.d.x=h,this.d.y=g,this.d.F();r||(l&&0<this.ng?(this.fa=-this.qi,this.ng-=d):(this.Hb=null,this.fa+=this.Gd*d,this.fa>this.Sk&&(this.fa=this.Sk)),G&&(this.Xg=!0));this.Bh=!!r;n==a&&(0>this.N?(this.N+=this.Eg*d,0<this.N&&(this.N=0)):0<this.N&&(this.N-=this.Eg*d,0>this.N&&(this.N=0)));n&&!a&&(this.N=0<this.N?this.N-(this.xg+this.Eg)*d:this.N-this.xg*d);a&&!n&&(this.N=0>this.N?this.N+(this.xg+this.Eg)*d:this.N+this.xg*d);this.N>this.gh?this.N=this.gh:this.N<-this.gh&&(this.N=-this.gh);n=!1;0!==
this.N&&(h=this.d.x,g=this.d.y,k=this.N*d*this.ig,b=this.N*d*this.jg,this.d.x+=this.ig*(1<this.N?1:-1)-this.Ua,this.d.y+=this.jg*(1<this.N?1:-1)-this.Va,this.d.F(),l=!1,e=this.b.ac(this.d),this.d.x=h+k,this.d.y=g+b,this.d.F(),a=this.b.ac(this.d),!a&&r&&(a=this.b.ze(this.d))&&(this.d.x=h,this.d.y=g,this.d.F(),this.b.rc(this.d,a)?(a=null,l=!1):l=!0,this.d.x=h+k,this.d.y=g+b,this.d.F()),a?(k=Math.abs(this.N*d)+2,e||!this.b.Zc(this.d,-this.Ua,-this.Va,k,l,a))?(this.b.ej(this.d,a),k=Math.max(Math.abs(this.N*
d*2.5),30),this.b.Zc(this.d,this.ig*(0>this.N?1:-1),this.jg*(0>this.N?1:-1),k,!1)?!r||l||this.kk||(h=this.d.x,g=this.d.y,this.d.x+=this.Ua,this.d.y+=this.Va,this.b.ac(this.d)?this.b.Zc(this.d,-this.Ua,-this.Va,3,!1)||(this.d.x=h,this.d.y=g,this.d.F()):(this.d.x=h,this.d.y=g,this.d.F())):(this.d.x=h,this.d.y=g,this.d.F()),l||(this.N=0)):!e&&!G&&Math.abs(this.fa)<Math.abs(this.qi/4)&&(this.fa=0,r||(n=!0)):(h=this.Cq(),r&&!h?(b=Math.ceil(Math.abs(this.N*d))+2,h=this.d.x,g=this.d.y,this.d.x+=this.Ua*
b,this.d.y+=this.Va*b,this.d.F(),this.b.ac(this.d)||this.b.ze(this.d)?this.b.Zc(this.d,-this.Ua,-this.Va,b+2,!0):(this.d.x=h,this.d.y=g,this.d.F())):h&&0===this.fa&&this.b.$n(this.d,-this.Ua,-this.Va,h)));if(0!==this.fa){h=this.d.x;g=this.d.y;this.d.x+=this.fa*d*this.Ua;this.d.y+=this.fa*d*this.Va;k=this.d.x;a=this.d.y;this.d.F();b=this.b.ac(this.d);l=!1;if(!b&&0<this.fa&&!r){if((l=0<this.If?null:this.b.ze(this.d,!0))&&l.length){if(this.Ch){this.d.x=h;this.d.y=g;this.d.F();f=e=0;for(c=l.length;e<
c;e++)l[f]=l[e],this.b.rc(this.d,l[e])||f++;l.length=f;this.d.x=k;this.d.y=a;this.d.F()}1<=l.length&&(b=l[0])}l=!!b}b&&(this.b.ej(this.d,b),this.ng=0,k=l?Math.abs(this.fa*d*2.5+10):Math.max(Math.abs(this.fa*d*2.5+10),30),this.b.Zc(this.d,this.Ua*(0>this.fa?1:-1),this.Va*(0>this.fa?1:-1),k,l,b)?(this.Hb=b,this.Vf=b.x,this.Wf=b.y,(this.kk=l)&&(n=!0),this.fa=0):(this.d.x=h,this.d.y=g,this.d.F(),this.Bh=!0,l||(this.fa=0)))}3!==this.hd&&0<this.fa&&!r&&(this.b.trigger(Bc.prototype.e.Wt,this.d),this.hd=
3);if(r||n)3===this.hd||n||G&&0===this.fa?(this.b.trigger(Bc.prototype.e.Zt,this.d),this.hd=0===this.N&&0===this.fa?0:1):(0!==this.hd&&0===this.N&&0===this.fa&&(this.b.trigger(Bc.prototype.e.up,this.d),this.hd=0),1===this.hd||0===this.N&&0===this.fa||G||(this.b.trigger(Bc.prototype.e.op,this.d),this.hd=1));0<this.If&&this.If--;this.Ch=this.b.ze(this.d)}};d.prototype.Dt=function(){return 0!==this.N||0!==this.fa};d.prototype.Et=function(){if(0!==this.fa)return!1;var d=null,k=null,b,a;b=this.d.x;a=this.d.y;
this.d.x+=this.Ua;this.d.y+=this.Va;this.d.F();(d=this.b.ac(this.d))||0!==this.If||(k=this.b.ze(this.d,!0));this.d.x=b;this.d.y=a;this.d.F();if(d)return!this.b.rc(this.d,d);if(k&&k.length){a=d=0;for(b=k.length;d<b;d++)k[a]=k[d],this.b.rc(this.d,k[d])||a++;if(1<=a)return!0}return!1};d.prototype.gp=function(){return!0};d.prototype.Wt=function(){return!0};d.prototype.up=function(){return!0};d.prototype.op=function(){return!0};d.prototype.Zt=function(){return!0};l.e=new d;k.prototype.vu=function(d){this.ok!==
d&&(this.Gd=d,this.Mo(),this.b.ac(this.d)&&(this.b.Zc(this.d,this.Ua,this.Va,10),this.d.x+=2*this.Ua,this.d.y+=2*this.Va,this.d.F()),this.Hb=null)};k.prototype.Du=function(d){this.fa=d};k.prototype.Sd=function(d){this.enabled!==(1===d)&&(this.enabled=1===d,this.enabled||(this.Hb=null))};k.prototype.uu=function(d){this.ck=0!==d};l.A=new k;l.Aa=new function(){}})();function Dc(d){this.b=d}
(function(){var d=Dc.prototype;d.ea=function(d){this.behavior=d;this.b=d.b};d.ea.prototype.K=function(){};d.U=function(d,b){this.type=d;this.behavior=d.behavior;this.d=b;this.b=d.b;this.jb=0};var k=d.U.prototype,l=2*Math.PI,n=Math.PI/2,t=3*Math.PI/2;k.K=function(){this.Rb=1===this.u[0];this.Ni=this.u[1];this.Uo=this.u[2];this.te=this.u[3];this.te+=Math.random()*this.u[4];0===this.te?this.jb=0:(this.jb=this.u[5]/this.te*l,this.jb+=Math.random()*this.u[6]/this.te*l);this.jc=this.u[7];this.jc+=Math.random()*
this.u[8];this.cj=this.Of=this.ka=0;this.init()};k.rb=function(){return{i:this.jb,a:this.Rb,mv:this.Ni,w:this.Uo,p:this.te,mag:this.jc,iv:this.ka,iv2:this.Of,r:this.cj,lkv:this.Ac,lkv2:this.si}};k.Ib=function(d){this.jb=d.i;this.Rb=d.a;this.Ni=d.mv;this.Uo=d.w;this.te=d.p;this.jc=d.mag;this.ka=d.iv;this.Of=d.iv2||0;this.cj=d.r;this.Ac=d.lkv;this.si=d.lkv2||0};k.init=function(){switch(this.Ni){case 0:this.ka=this.d.x;break;case 1:this.ka=this.d.y;break;case 2:this.ka=this.d.width;this.cj=this.d.height/
this.d.width;break;case 3:this.ka=this.d.width;break;case 4:this.ka=this.d.height;break;case 5:this.ka=this.d.q;this.jc=L(this.jc);break;case 6:this.ka=this.d.opacity;break;case 7:this.ka=0;break;case 8:this.ka=this.d.x,this.Of=this.d.y}this.Ac=this.ka;this.si=this.Of};k.Fe=function(d){d=d%l;switch(this.Uo){case 0:return Math.sin(d);case 1:return d<=n?d/n:d<=t?1-2*(d-n)/Math.PI:(d-t)/n-1;case 2:return 2*d/l-1;case 3:return-2*d/l+1;case 4:return d<Math.PI?-1:1}return 0};k.Na=function(){var d=this.b.rk(this.d);
this.Rb&&0!==d&&(0===this.te?this.jb=0:(this.jb+=d/this.te*l,this.jb=this.jb%l),this.My())};k.My=function(){switch(this.Ni){case 0:this.d.x!==this.Ac&&(this.ka+=this.d.x-this.Ac);this.d.x=this.ka+this.Fe(this.jb)*this.jc;this.Ac=this.d.x;break;case 1:this.d.y!==this.Ac&&(this.ka+=this.d.y-this.Ac);this.d.y=this.ka+this.Fe(this.jb)*this.jc;this.Ac=this.d.y;break;case 2:this.d.width=this.ka+this.Fe(this.jb)*this.jc;this.d.height=this.d.width*this.cj;break;case 3:this.d.width=this.ka+this.Fe(this.jb)*
this.jc;break;case 4:this.d.height=this.ka+this.Fe(this.jb)*this.jc;break;case 5:this.d.q!==this.Ac&&(this.ka=Ia(this.ka+(this.d.q-this.Ac)));this.d.q=Ia(this.ka+this.Fe(this.jb)*this.jc);this.Ac=this.d.q;break;case 6:this.d.opacity=this.ka+this.Fe(this.jb)*this.jc/100;0>this.d.opacity?this.d.opacity=0:1<this.d.opacity&&(this.d.opacity=1);break;case 8:this.d.x!==this.Ac&&(this.ka+=this.d.x-this.Ac),this.d.y!==this.si&&(this.Of+=this.d.y-this.si),this.d.x=this.ka+Math.cos(this.d.q)*this.Fe(this.jb)*
this.jc,this.d.y=this.Of+Math.sin(this.d.q)*this.Fe(this.jb)*this.jc,this.Ac=this.d.x,this.si=this.d.y}this.d.F()};k.Dr=function(d,b){switch(this.Ni){case 2:this.ka*=b.width/d.width;this.cj=b.height/b.width;break;case 3:this.ka*=b.width/d.width;break;case 4:this.ka*=b.height/d.height}};d.e=new function(){};d.A=new function(){};d.Aa=new function(){}})();function qc(d){this.b=d}
(function(){function d(){}function k(){}var l=qc.prototype;l.ea=function(d){this.behavior=d;this.b=d.b};l.ea.prototype.K=function(){};l.U=function(d,k){this.type=d;this.behavior=d.behavior;this.d=k;this.b=d.b};var n=l.U.prototype;n.K=function(){this.d.G.jumpthruEnabled=0!==this.u[0]};n.Na=function(){};d.prototype.Rl=function(){return this.d.G.jumpthruEnabled};l.e=new d;k.prototype.Sd=function(d){this.d.G.jumpthruEnabled=!!d};l.A=new k})();
function Ec(d){this.b=d;this.ro=this.ul=this.mj=this.qo=0}
(function(){function d(){}var k=Ec.prototype;k.ea=function(d){this.behavior=d;this.b=d.b};k.ea.prototype.K=function(){};k.U=function(d,k){this.type=d;this.behavior=d.behavior;this.d=k;this.b=d.b};var l=k.U.prototype;l.K=function(){this.enabled=0!==this.u[0]};l.rb=function(){return{smg:this.behavior.qo,ss:this.behavior.mj,se:this.behavior.ul,smd:this.behavior.ro}};l.Ib=function(d){this.behavior.qo=d.smg;this.behavior.mj=d.ss;this.behavior.ul=d.se;this.behavior.ro=d.smd};l.Na=function(){};l.El=function(){if(this.enabled){var d=
this.behavior.dg.dd(),k=0,l=0,b,a,p,e=0;b=0;for(a=d.length;b<a;b++){a:{p=d[b];for(var c=void 0,f=void 0,h=void 0,c=0,f=p.J.length;c<f;++c)if(h=p.J[c],h.behavior instanceof Ec){p=h;break a}p=null}p&&p.enabled&&(k+=d[b].x,l+=d[b].y,++e)}d=this.d.k.mb;a=this.b.Ya.aa;p=b=0;a>=this.behavior.mj&&a<this.behavior.ul&&(b=this.behavior.qo*Math.min(this.b.qg,1),0===this.behavior.ro&&(b*=1-(a-this.behavior.mj)/(this.behavior.ul-this.behavior.mj)),a=Math.random()*Math.PI*2,p=Math.random()*b,b=Math.cos(a)*p,p*=
Math.sin(a));d.mo(k/e+b);d.no(l/e+p)}};d.prototype.Sd=function(d){this.enabled=0!==d};k.A=new d})();function pc(d){this.b=d}
(function(){function d(){}function k(){}var l=pc.prototype;l.ea=function(d){this.behavior=d;this.b=d.b};l.ea.prototype.K=function(){};l.U=function(d,k){this.type=d;this.behavior=d.behavior;this.d=k;this.b=d.b};var n=l.U.prototype;n.K=function(){this.d.G.solidEnabled=0!==this.u[0]};n.Na=function(){};d.prototype.Rl=function(){return this.d.G.solidEnabled};l.e=new d;k.prototype.Sd=function(d){this.d.G.solidEnabled=!!d};l.A=new k})();
function oc(){return[rc,X,tc,sc,Y,vc,V,uc,wc,xc,yc,pc,zc,Bc,Ec,Dc,qc,M.prototype.e.lp,M.prototype.A.Cu,wc.prototype.A.sf,rc.prototype.A.Play,V.prototype.e.Gt,V.prototype.A.su,Bc.prototype.A.vu,Bc.prototype.A.uu,wc.prototype.Aa.Text,M.prototype.A.Ku,M.prototype.A.nt,Y.prototype.e.Ul,V.prototype.A.sf,V.prototype.A.Vl,M.prototype.e.it,V.prototype.e.Qt,V.prototype.A.ru,Y.prototype.e.Tl,V.prototype.e.dt,Y.prototype.e.It,rc.prototype.A.Wl,V.prototype.e.Zo,M.prototype.e.mt,vc.prototype.A.wp,vc.prototype.A.Vl,
Bc.prototype.A.Sd,V.prototype.A.xu,V.prototype.e.et,V.prototype.A.Au,sc.prototype.e.hp,yc.prototype.A.Play,yc.prototype.A.Ej,yc.prototype.e.ot,Y.prototype.e.fp,yc.prototype.A.Xo,rc.prototype.A.Iu,V.prototype.A.yu,Bc.prototype.e.gp,Bc.prototype.e.op,Bc.prototype.e.up,Bc.prototype.e.Et,V.prototype.A.wu,V.prototype.Aa.pt,vc.prototype.A.sf,V.prototype.A.tu,V.prototype.e.jt,V.prototype.e.tt,M.prototype.e.At,M.prototype.Aa.random,rc.prototype.e.Ie,M.prototype.e.lt,M.prototype.A.Vs,V.prototype.A.Xo,V.prototype.e.ep,
Ec.prototype.A.Sd,Bc.prototype.e.Dt,Bc.prototype.A.Du,V.prototype.A.Fu,rc.prototype.e.Ht,sc.prototype.e.Ct,rc.prototype.e.ut,V.prototype.e.Ft,V.prototype.A.Gu,V.prototype.Aa.Yl,V.prototype.e.kt,V.prototype.Aa.Xl,V.prototype.e.Jt,pc.prototype.A.Sd,uc.prototype.A.sf,uc.prototype.A.Play,uc.prototype.e.IsPlaying,uc.prototype.A.Bu,uc.prototype.A.Vl,uc.prototype.e.zt,uc.prototype.A.Wl,yc.prototype.e.IsPlaying,yc.prototype.A.sf,uc.prototype.e.Ie,V.prototype.A.qu,V.prototype.Aa.Ws,M.prototype.Aa["int"],M.prototype.A.pu,
V.prototype.A.zu,V.prototype.Aa.Opacity,Y.prototype.e.Bt,zc.prototype.e.Rl,zc.prototype.A.Sd,V.prototype.A.Us,M.prototype.e.ht,M.prototype.e.Yo,zc.prototype.e.yt,V.prototype.e.gt,rc.prototype.A.Ej,X.prototype.A.ou,X.prototype.A.bt,M.prototype.A.Hu,M.prototype.e.bp,X.prototype.A.qt,M.prototype.Aa.av]};
