Files
monkeygg2.github.io/games/scuba-bear/c2runtime.js
T
2023-08-25 13:31:04 +05:30

529 lines
254 KiB
JavaScript

// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa,da,fa,ga,ha,ia,ja,ka,la,ma,na,oa,qa,ra,sa,C,ta,ua,va,wa,xa,Aa,Ba,P,Ca,Da,Ea,Fa,Ga,Q,Ha,Ia,Ja,Ka,La,Ma,Na,Pa,Qa,Ra,Sa,Ta,Ua,Va,Wa,Xa,Ya,Za,$a,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,rb,sb,tb,ub,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,Xb,Yb,Zb,$b,ac,bc,cc,dc,ec,fc,gc,hc,ic={},jc={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(d){return d.__proto__}:function(d){return d.constructor.prototype});
(function(){function d(b,a,f,e){this.set(b,a,f,e)}function q(){this.yc=this.xc=this.Ac=this.zc=this.Rc=this.Qc=this.mc=this.lc=0}function n(b,a,f,e){b<a?f<e?(D=b<f?b:f,x=a>e?a:e):(D=b<e?b:e,x=a>f?a:f):f<e?(D=a<f?a:f,x=b>e?b:e):(D=a<e?a:e,x=b>f?b:f)}function k(){this.items=this.ze=null;this.lj=0;y&&(this.ze=new Set);this.mi=[];this.zf=!0}function c(b){u[A++]=b}function p(){this.qa=this.Lm=this.y=this.sn=0}function g(b){this.Ma=[];this.Hk=this.Jk=this.Kk=this.Ik=0;this.ak(b)}function a(b,a){this.yb=
b;this.Gb=a;this.cells={}}function e(b,a){this.yb=b;this.Gb=a;this.cells={}}function v(b,a,f){var e;return M.length?(e=M.pop(),e.co=b,e.x=a,e.y=f,e):new da(b,a,f)}function b(b,a,f){this.co=b;this.x=a;this.y=f;this.Nb=new fa}function h(b,a,f){var e;return Z.length?(e=Z.pop(),e.co=b,e.x=a,e.y=f,e):new ga(b,a,f)}function t(b,a,f){this.co=b;this.x=a;this.y=f;this.Nb=[];this.Bh=!0;this.ue=new fa;this.ti=!1}function m(b,a){return b.ke-a.ke}ha=function(b){window.console&&window.console.log&&window.console.log(b)};
ia=function(b){window.console&&window.console.error&&window.console.error(b)};aa=function(b){return b};ja=function(b){return"undefined"===typeof b};ka=function(b){return"number"===typeof b};la=function(b){return"string"===typeof b};ma=function(b){return 0<b&&0===(b-1&b)};na=function(b){--b;for(var a=1;32>a;a<<=1)b=b|b>>a;return b+1};oa=function(b){return 0>b?-b:b};qa=function(b,a){return b>a?b:a};ra=function(b,a){return b<a?b:a};sa=Math.PI;C=function(b){return 0<=b?b|0:(b|0)-1};ta=function(b){var a=
b|0;return a===b?a:a+1};ua=function(b,a,f,e,h,c,l,z){var w,u,v,m;b<f?(u=b,w=f):(u=f,w=b);h<l?(m=h,v=l):(m=l,v=h);if(w<m||u>v)return!1;a<e?(u=a,w=e):(u=e,w=a);c<z?(m=c,v=z):(m=z,v=c);if(w<m||u>v)return!1;w=h-b+l-f;u=c-a+z-e;b=f-b;a=e-a;h=l-h;c=z-c;z=oa(a*h-c*b);return oa(h*u-c*w)>z?!1:oa(b*u-a*w)<=z};d.prototype.set=function(b,a,f,e){this.left=b;this.top=a;this.right=f;this.bottom=e};d.prototype.mh=function(b){this.left=b.left;this.top=b.top;this.right=b.right;this.bottom=b.bottom};d.prototype.width=
function(){return this.right-this.left};d.prototype.height=function(){return this.bottom-this.top};d.prototype.offset=function(b,a){this.left+=b;this.top+=a;this.right+=b;this.bottom+=a;return this};d.prototype.normalize=function(){var b=0;this.left>this.right&&(b=this.left,this.left=this.right,this.right=b);this.top>this.bottom&&(b=this.top,this.top=this.bottom,this.bottom=b)};d.prototype.lz=function(b){return!(b.right<this.left||b.bottom<this.top||b.left>this.right||b.top>this.bottom)};d.prototype.mz=
function(b,a,f){return!(b.right+a<this.left||b.bottom+f<this.top||b.left+a>this.right||b.top+f>this.bottom)};d.prototype.pc=function(b,a){return b>=this.left&&b<=this.right&&a>=this.top&&a<=this.bottom};d.prototype.Hi=function(b){return this.left===b.left&&this.top===b.top&&this.right===b.right&&this.bottom===b.bottom};va=d;q.prototype.$j=function(b){this.lc=b.left;this.mc=b.top;this.Qc=b.right;this.Rc=b.top;this.zc=b.right;this.Ac=b.bottom;this.xc=b.left;this.yc=b.bottom};q.prototype.wt=function(b,
a){if(0===a)this.$j(b);else{var f=Math.sin(a),e=Math.cos(a),h=b.left*f,c=b.top*f,l=b.right*f,f=b.bottom*f,z=b.left*e,w=b.top*e,u=b.right*e,e=b.bottom*e;this.lc=z-c;this.mc=w+h;this.Qc=u-c;this.Rc=w+l;this.zc=u-f;this.Ac=e+l;this.xc=z-f;this.yc=e+h}};q.prototype.offset=function(b,a){this.lc+=b;this.mc+=a;this.Qc+=b;this.Rc+=a;this.zc+=b;this.Ac+=a;this.xc+=b;this.yc+=a;return this};var D=0,x=0;q.prototype.Mq=function(b){n(this.lc,this.Qc,this.zc,this.xc);b.left=D;b.right=x;n(this.mc,this.Rc,this.Ac,
this.yc);b.top=D;b.bottom=x};q.prototype.pc=function(b,a){var f=this.lc,e=this.mc,h=this.Qc-f,c=this.Rc-e,l=this.zc-f,z=this.Ac-e,w=b-f,u=a-e,v=h*h+c*c,m=h*l+c*z,c=h*w+c*u,r=l*l+z*z,t=l*w+z*u,d=1/(v*r-m*m),h=(r*c-m*t)*d,v=(v*t-m*c)*d;if(0<=h&&0<v&&1>h+v)return!0;h=this.xc-f;c=this.yc-e;v=h*h+c*c;m=h*l+c*z;c=h*w+c*u;d=1/(v*r-m*m);h=(r*c-m*t)*d;v=(v*t-m*c)*d;return 0<=h&&0<v&&1>h+v};q.prototype.xf=function(b,a){if(a)switch(b){case 0:return this.lc;case 1:return this.Qc;case 2:return this.zc;case 3:return this.xc;
case 4:return this.lc;default:return this.lc}else switch(b){case 0:return this.mc;case 1:return this.Rc;case 2:return this.Ac;case 3:return this.yc;case 4:return this.mc;default:return this.mc}};q.prototype.rs=function(){return(this.lc+this.Qc+this.zc+this.xc)/4};q.prototype.ts=function(){return(this.mc+this.Rc+this.Ac+this.yc)/4};q.prototype.Dr=function(b){var a=b.rs(),f=b.ts();if(this.pc(a,f))return!0;a=this.rs();f=this.ts();if(b.pc(a,f))return!0;var e,h,c,l,z,w,u,v;for(u=0;4>u;u++)for(v=0;4>v;v++)if(a=
this.xf(u,!0),f=this.xf(u,!1),e=this.xf(u+1,!0),h=this.xf(u+1,!1),c=b.xf(v,!0),l=b.xf(v,!1),z=b.xf(v+1,!0),w=b.xf(v+1,!1),ua(a,f,e,h,c,l,z,w))return!0;return!1};wa=q;xa=function(b,a){for(var f in a)a.hasOwnProperty(f)&&(b[f]=a[f]);return b};Aa=function(b,a){var f,e;a=C(a);if(!(0>a||a>=b.length)){f=a;for(e=b.length-1;f<e;f++)b[f]=b[f+1];Ba(b,e)}};Ba=function(b,a){b.length=a};P=function(b){Ba(b,0)};Ca=function(b,a){P(b);var f,e;f=0;for(e=a.length;f<e;++f)b[f]=a[f]};Da=function(b,a){b.push.apply(b,a)};
Ea=function(b,a){var f,e;f=0;for(e=b.length;f<e;++f)if(b[f]===a)return f;return-1};Fa=function(b,a){var f=Ea(b,a);-1!==f&&Aa(b,f)};Ga=function(b,a,f){return b<a?a:b>f?f:b};Q=function(b){return b/(180/sa)};Ha=function(b){return 180/sa*b};Ia=function(b){b%=360;0>b&&(b+=360);return b};Ja=function(b){b%=2*sa;0>b&&(b+=2*sa);return b};Ka=function(b){return Ia(Ha(b))};La=function(b){return Ja(Q(b))};Ma=function(b,a,f,e){return Math.atan2(e-a,f-b)};Na=function(b,a){if(b===a)return 0;var f=Math.sin(b),e=Math.cos(b),
h=Math.sin(a),c=Math.cos(a),f=f*h+e*c;return 1<=f?0:-1>=f?sa:Math.acos(f)};Pa=function(b,a,f){var e=Math.sin(b),h=Math.cos(b),c=Math.sin(a),l=Math.cos(a);return Math.acos(e*c+h*l)>f?0<h*c-e*l?Ja(b+f):Ja(b-f):Ja(a)};Qa=function(b,a){var f=Math.sin(b),e=Math.cos(b),h=Math.sin(a),c=Math.cos(a);return 0>=e*h-f*c};Ra=function(b,a,f,e,h,c){if(0===f)return c?b:a;var l=Math.sin(f);f=Math.cos(f);b-=e;a-=h;var z=b*l;b=b*f-a*l;a=a*f+z;return c?b+e:a+h};Sa=function(b,a,f,e){b=f-b;a=e-a;return Math.sqrt(b*b+a*
a)};Ta=function(b,a){return!b!==!a};Ua=function(b){for(var a in b)if(b.hasOwnProperty(a))return!0;return!1};Va=function(b){for(var a in b)b.hasOwnProperty(a)&&delete b[a]};var r=+new Date;Wa=function(){if("undefined"!==typeof window.performance){var b=window.performance;if("undefined"!==typeof b.now)return b.now();if("undefined"!==typeof b.webkitNow)return b.webkitNow();if("undefined"!==typeof b.mozNow)return b.mozNow();if("undefined"!==typeof b.msNow)return b.msNow()}return Date.now()-r};var f=!1,
l=f=!1,O=!1;"undefined"!==typeof window&&(f=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),f=!f&&/safari/i.test(navigator.userAgent),l=/(iphone|ipod|ipad)/i.test(navigator.userAgent),O=window.c2ejecta);var y=!f&&!O&&!l&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;k.prototype.contains=function(b){return this.Te()?!1:y?this.ze.has(b):this.items&&this.items.hasOwnProperty(b)};k.prototype.add=function(b){if(y)this.ze.has(b)||(this.ze.add(b),this.zf=
!1);else{var a=b.toString(),f=this.items;f?f.hasOwnProperty(a)||(f[a]=b,this.lj++,this.zf=!1):(this.items={},this.items[a]=b,this.lj=1,this.zf=!1)}};k.prototype.remove=function(b){if(!this.Te())if(y)this.ze.has(b)&&(this.ze["delete"](b),this.zf=!1);else if(this.items){b=b.toString();var a=this.items;a.hasOwnProperty(b)&&(delete a[b],this.lj--,this.zf=!1)}};k.prototype.clear=function(){this.Te()||(y?this.ze.clear():(this.items=null,this.lj=0),P(this.mi),this.zf=!0)};k.prototype.Te=function(){return 0===
this.count()};k.prototype.count=function(){return y?this.ze.size:this.lj};var u=null,A=0;k.prototype.AA=function(){if(!this.zf){if(y)P(this.mi),u=this.mi,A=0,this.ze.forEach(c),u=null,A=0;else{var b=this.mi;P(b);var a,f=0,e=this.items;if(e)for(a in e)e.hasOwnProperty(a)&&(b[f++]=e[a])}this.zf=!0}};k.prototype.pf=function(){this.AA();return this.mi};fa=k;new fa;Xa=function(b,a){y?Ya(b,a.ze):Za(b,a.pf())};Ya=function(b,a){var f,e,h,c;e=f=0;for(h=b.length;f<h;++f)c=b[f],a.has(c)||(b[e++]=c);Ba(b,e)};
Za=function(b,a){var f,e,h,c;e=f=0;for(h=b.length;f<h;++f)c=b[f],-1===Ea(a,c)&&(b[e++]=c);Ba(b,e)};p.prototype.add=function(b){this.y=b-this.sn;this.Lm=this.qa+this.y;this.sn=this.Lm-this.qa-this.y;this.qa=this.Lm};p.prototype.reset=function(){this.qa=this.Lm=this.y=this.sn=0};$a=p;fb=function(b){return b.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};g.prototype.ak=function(b){this.$s=b;this.Yc=b.length/2;this.Ma.length=b.length;this.Mk=this.Nk=-1;this.Pq=0};g.prototype.yh=function(){return!this.$s.length};
g.prototype.Na=function(){for(var b=this.Ma,a=b[0],f=a,e=b[1],h=e,c,l,z=1,w=this.Yc;z<w;++z)l=2*z,c=b[l],l=b[l+1],c<a&&(a=c),c>f&&(f=c),l<e&&(e=l),l>h&&(h=l);this.Ik=a;this.Jk=f;this.Kk=e;this.Hk=h};g.prototype.$j=function(b,a,f){this.Ma.length=8;this.Yc=4;var e=this.Ma;e[0]=b.left-a;e[1]=b.top-f;e[2]=b.right-a;e[3]=b.top-f;e[4]=b.right-a;e[5]=b.bottom-f;e[6]=b.left-a;e[7]=b.bottom-f;this.Nk=b.right-b.left;this.Mk=b.bottom-b.top;this.Na()};g.prototype.di=function(b,a,f,e,h){this.Ma.length=8;this.Yc=
4;var c=this.Ma;c[0]=b.lc-a;c[1]=b.mc-f;c[2]=b.Qc-a;c[3]=b.Rc-f;c[4]=b.zc-a;c[5]=b.Ac-f;c[6]=b.xc-a;c[7]=b.yc-f;this.Nk=e;this.Mk=h;this.Na()};g.prototype.ut=function(b){this.Yc=b.Yc;Ca(this.Ma,b.Ma);this.Ik=b.Ik;this.Kk-b.Kk;this.Jk=b.Jk;this.Hk=b.Hk};g.prototype.fg=function(b,a,f){if(this.Nk!==b||this.Mk!==a||this.Pq!==f){this.Nk=b;this.Mk=a;this.Pq=f;var e,h,c,l,z,w=0,u=1,v=this.$s,m=this.Ma;0!==f&&(w=Math.sin(f),u=Math.cos(f));f=0;for(c=this.Yc;f<c;f++)e=2*f,h=e+1,l=v[e]*b,z=v[h]*a,m[e]=l*u-z*
w,m[h]=z*u+l*w;this.Na()}};g.prototype.pc=function(b,a){var f=this.Ma;if(b===f[0]&&a===f[1])return!0;var e,h,c,l=this.Yc,z=this.Ik-110,w=this.Kk-101,u=this.Jk+131,v=this.Hk+120,m,r,t=0,d=0;for(e=0;e<l;e++)h=2*e,c=(e+1)%l*2,m=f[h],h=f[h+1],r=f[c],c=f[c+1],ua(z,w,b,a,m,h,r,c)&&t++,ua(u,v,b,a,m,h,r,c)&&d++;return 1===t%2||1===d%2};g.prototype.Yi=function(b,a,f){var e=b.Ma,h=this.Ma;if(this.pc(e[0]+a,e[1]+f)||b.pc(h[0]-a,h[1]-f))return!0;var c,l,z,w,u,v,m,r,t,d,g,x;c=0;for(w=this.Yc;c<w;c++)for(l=2*c,
z=(c+1)%w*2,r=h[l],l=h[l+1],t=h[z],d=h[z+1],z=0,m=b.Yc;z<m;z++)if(u=2*z,v=(z+1)%m*2,g=e[u]+a,u=e[u+1]+f,x=e[v]+a,v=e[v+1]+f,ua(r,l,t,d,g,u,x,v))return!0;return!1};g.prototype.Dz=function(b){var a,f,e;a=0;for(f=this.Yc;a<f;++a)e=2*a,this.Ma[e]=2*b-this.Ma[e]};g.prototype.vy=function(b){var a,f,e;a=0;for(f=this.Yc;a<f;++a)e=2*a+1,this.Ma[e]=2*b-this.Ma[e]};g.prototype.bx=function(){var b,a,f,e,h;b=0;for(a=this.Yc;b<a;++b)f=2*b,e=f+1,h=this.Ma[f],this.Ma[f]=this.Ma[e],this.Ma[e]=h};gb=g;a.prototype.Gf=
function(b,a,f){var e;e=this.cells[b];return e?(e=e[a])?e:f?(e=v(this,b,a),this.cells[b][a]=e):null:f?(e=v(this,b,a),this.cells[b]={},this.cells[b][a]=e):null};a.prototype.vc=function(b){return C(b/this.yb)};a.prototype.wc=function(b){return C(b/this.Gb)};a.prototype.update=function(b,a,f){var e,h,c,l,z;if(a)for(e=a.left,h=a.right;e<=h;++e)for(c=a.top,l=a.bottom;c<=l;++c)if(!f||!f.pc(e,c))if(z=this.Gf(e,c,!1))z.remove(b),z.Te()&&(z.Nb.clear(),1E3>M.length&&M.push(z),this.cells[e][c]=null);if(f)for(e=
f.left,h=f.right;e<=h;++e)for(c=f.top,l=f.bottom;c<=l;++c)a&&a.pc(e,c)||this.Gf(e,c,!0).mo(b)};a.prototype.qm=function(b,a){var f,e,h,c,l,z;f=this.vc(b.left);h=this.wc(b.top);e=this.vc(b.right);for(l=this.wc(b.bottom);f<=e;++f)for(c=h;c<=l;++c)(z=this.Gf(f,c,!1))&&z.dump(a)};hb=a;e.prototype.Gf=function(b,a,f){var e;e=this.cells[b];return e?(e=e[a])?e:f?(e=h(this,b,a),this.cells[b][a]=e):null:f?(e=h(this,b,a),this.cells[b]={},this.cells[b][a]=e):null};e.prototype.vc=function(b){return C(b/this.yb)};
e.prototype.wc=function(b){return C(b/this.Gb)};e.prototype.update=function(b,a,f){var e,h,c,l,z;if(a)for(e=a.left,h=a.right;e<=h;++e)for(c=a.top,l=a.bottom;c<=l;++c)if(!f||!f.pc(e,c))if(z=this.Gf(e,c,!1))z.remove(b),z.Te()&&(z.reset(),1E3>Z.length&&Z.push(z),this.cells[e][c]=null);if(f)for(e=f.left,h=f.right;e<=h;++e)for(c=f.top,l=f.bottom;c<=l;++c)a&&a.pc(e,c)||this.Gf(e,c,!0).mo(b)};e.prototype.qm=function(b,a,f,e,h){var c,l;b=this.vc(b);a=this.wc(a);f=this.vc(f);for(c=this.wc(e);b<=f;++b)for(e=
a;e<=c;++e)(l=this.Gf(b,e,!1))&&l.dump(h)};e.prototype.Az=function(b){var a,f,e,h,c;a=b.left;e=b.top;f=b.right;for(h=b.bottom;a<=f;++a)for(b=e;b<=h;++b)if(c=this.Gf(a,b,!1))c.Bh=!1};ib=e;var M=[];b.prototype.Te=function(){return this.Nb.Te()};b.prototype.mo=function(b){this.Nb.add(b)};b.prototype.remove=function(b){this.Nb.remove(b)};b.prototype.dump=function(b){Da(b,this.Nb.pf())};da=b;var Z=[];t.prototype.Te=function(){if(!this.Nb.length)return!0;if(this.Nb.length>this.ue.count())return!1;this.Mn();
return!0};t.prototype.mo=function(b){this.ue.contains(b)?(this.ue.remove(b),this.ue.Te()&&(this.ti=!1)):this.Nb.length?(this.Nb[this.Nb.length-1].qe()>b.qe()&&(this.Bh=!1),this.Nb.push(b)):(this.Nb.push(b),this.Bh=!0)};t.prototype.remove=function(b){this.ue.add(b);this.ti=!0;30<=this.ue.count()&&this.Mn()};t.prototype.Mn=function(){this.ti&&(this.ue.count()===this.Nb.length?this.reset():(Xa(this.Nb,this.ue),this.ue.clear(),this.ti=!1))};t.prototype.Lx=function(){this.Bh||(this.Nb.sort(m),this.Bh=
!0)};t.prototype.reset=function(){P(this.Nb);this.Bh=!0;this.ue.clear();this.ti=!1};t.prototype.dump=function(b){this.Mn();this.Lx();this.Nb.length&&b.push(this.Nb)};ga=t;var B="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");jb=function(b){return 0>=b||11<=b?"source-over":B[b-1]};kb=function(b,a,f){if(f)switch(b.gc=f.ONE,b.cc=f.ONE_MINUS_SRC_ALPHA,a){case 1:b.gc=f.ONE;b.cc=f.ONE;break;case 3:b.gc=f.ONE;b.cc=f.ZERO;break;
case 4:b.gc=f.ONE_MINUS_DST_ALPHA;b.cc=f.ONE;break;case 5:b.gc=f.DST_ALPHA;b.cc=f.ZERO;break;case 6:b.gc=f.ZERO;b.cc=f.SRC_ALPHA;break;case 7:b.gc=f.ONE_MINUS_DST_ALPHA;b.cc=f.ZERO;break;case 8:b.gc=f.ZERO;b.cc=f.ONE_MINUS_SRC_ALPHA;break;case 9:b.gc=f.DST_ALPHA;b.cc=f.ONE_MINUS_SRC_ALPHA;break;case 10:b.gc=f.ONE_MINUS_DST_ALPHA,b.cc=f.SRC_ALPHA}};lb=function(b){return Math.round(1E6*b)/1E6};mb=function(b,a){return"string"!==typeof b||"string"!==typeof a||b.length!==a.length?!1:b===a?!0:b.toLowerCase()===
a.toLowerCase()};nb=function(b){b=b.target;return!b||b===document||b===window||document&&document.body&&b===document.body||mb(b.tagName,"canvas")?!0:!1}})();var kc="undefined"!==typeof Float32Array?Float32Array:Array;function lc(d){var q=new kc(3);d&&(q[0]=d[0],q[1]=d[1],q[2]=d[2]);return q}
function mc(d){var q=new kc(16);d&&(q[0]=d[0],q[1]=d[1],q[2]=d[2],q[3]=d[3],q[4]=d[4],q[5]=d[5],q[6]=d[6],q[7]=d[7],q[8]=d[8],q[9]=d[9],q[10]=d[10],q[11]=d[11],q[12]=d[12],q[13]=d[13],q[14]=d[14],q[15]=d[15]);return q}function nc(d,q){q[0]=d[0];q[1]=d[1];q[2]=d[2];q[3]=d[3];q[4]=d[4];q[5]=d[5];q[6]=d[6];q[7]=d[7];q[8]=d[8];q[9]=d[9];q[10]=d[10];q[11]=d[11];q[12]=d[12];q[13]=d[13];q[14]=d[14];q[15]=d[15]}
function oc(d,q){var n=q[0],k=q[1];q=q[2];d[0]*=n;d[1]*=n;d[2]*=n;d[3]*=n;d[4]*=k;d[5]*=k;d[6]*=k;d[7]*=k;d[8]*=q;d[9]*=q;d[10]*=q;d[11]*=q}
function pc(d,q,n,k){k||(k=mc());var c,p,g,a,e,v,b,h,t=d[0],m=d[1];d=d[2];p=n[0];g=n[1];c=n[2];n=q[1];v=q[2];t===q[0]&&m===n&&d===v?(d=k,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):(n=t-q[0],v=m-q[1],b=d-q[2],h=1/Math.sqrt(n*n+v*v+b*b),n*=h,v*=h,b*=h,q=g*b-c*v,c=c*n-p*b,p=p*v-g*n,(h=Math.sqrt(q*q+c*c+p*p))?(h=1/h,q*=h,c*=h,p*=h):p=c=q=0,g=v*p-b*c,a=b*q-n*p,e=n*c-v*q,(h=Math.sqrt(g*g+a*a+e*e))?(h=1/h,g*=h,a*=h,e*=h):e=a=g=0,
k[0]=q,k[1]=g,k[2]=n,k[3]=0,k[4]=c,k[5]=a,k[6]=v,k[7]=0,k[8]=p,k[9]=e,k[10]=b,k[11]=0,k[12]=-(q*t+c*m+p*d),k[13]=-(g*t+a*m+e*d),k[14]=-(n*t+v*m+b*d),k[15]=1)}
(function(){function d(a,e,c){this.Ue=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.Ka=!!c;this.Al=this.aj=!1;this.Uk=0;this.cn=1;this.Xp=1E3;this.IA=(this.Xp-this.cn)/32768;this.tn=lc([0,0,100]);this.Xr=lc([0,0,0]);this.Wt=lc([0,1,0]);this.wk=lc([1,1,1]);this.Zq=!0;this.Sl=mc();this.ld=mc();this.zo=mc();this.Dn=mc();this.N=a;this.yr()}function q(a,e,c){this.N=a;this.bk=e;this.name=c;this.Bd=a.getAttribLocation(e,"aPos");this.Of=a.getAttribLocation(e,
"aTex");this.Vr=a.getUniformLocation(e,"matP");this.Nl=a.getUniformLocation(e,"matMV");this.Mh=a.getUniformLocation(e,"opacity");this.Go=a.getUniformLocation(e,"colorFill");this.Wr=a.getUniformLocation(e,"samplerFront");this.uj=a.getUniformLocation(e,"samplerBack");this.Og=a.getUniformLocation(e,"destStart");this.Ng=a.getUniformLocation(e,"destEnd");this.wj=a.getUniformLocation(e,"seconds");this.Io=a.getUniformLocation(e,"pixelWidth");this.Ho=a.getUniformLocation(e,"pixelHeight");this.tj=a.getUniformLocation(e,
"layerScale");this.sj=a.getUniformLocation(e,"layerAngle");this.xj=a.getUniformLocation(e,"viewOrigin");this.vj=a.getUniformLocation(e,"scrollPos");this.gz=!!(this.Io||this.Ho||this.wj||this.uj||this.Og||this.Ng||this.tj||this.sj||this.xj||this.vj);this.es=this.gs=-999;this.Rl=1;this.as=this.$r=0;this.cs=this.Zr=this.Yr=1;this.ls=this.ks=this.hs=this.os=this.ns=this.bs=0;this.yo=[];this.ds=mc();this.Mh&&a.uniform1f(this.Mh,1);this.Go&&a.uniform4f(this.Go,1,1,1,1);this.Wr&&a.uniform1i(this.Wr,0);this.uj&&
a.uniform1i(this.uj,1);this.Og&&a.uniform2f(this.Og,0,0);this.Ng&&a.uniform2f(this.Ng,1,1);this.tj&&a.uniform1f(this.tj,1);this.sj&&a.uniform1f(this.sj,0);this.xj&&a.uniform2f(this.xj,0,0);this.vj&&a.uniform2f(this.vj,0,0);this.wj&&a.uniform1f(this.wj,0);this.wg=!1}function n(a,e){return a[0]===e[0]&&a[1]===e[1]&&a[2]===e[2]&&a[3]===e[3]&&a[4]===e[4]&&a[5]===e[5]&&a[6]===e[6]&&a[7]===e[7]&&a[8]===e[8]&&a[9]===e[9]&&a[10]===e[10]&&a[11]===e[11]&&a[12]===e[12]&&a[13]===e[13]&&a[14]===e[14]&&a[15]===
e[15]}function k(a,e){this.type=a;this.K=e;this.N=e.N;this.gd=this.hc=this.Ks=0;this.na=this.Id=null;this.xt=[]}var c=mc();d.prototype.yr=function(){var a=this.N,e;this.Qr=1;this.Ig=this.Lf=null;this.Tk=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.Ka?(a.enable(a.DEPTH_TEST),a.depthFunc(a.LEQUAL)):a.disable(a.DEPTH_TEST);this.Rr=a.ONE;this.Pr=a.ONE_MINUS_SRC_ALPHA;
this.vk=new Float32Array(8E3*(this.Ka?3:2));this.kk=new Float32Array(16E3);this.Vs=new Float32Array(32E3);this.gp=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.gp);a.bufferData(a.ARRAY_BUFFER,this.Vs.byteLength,a.DYNAMIC_DRAW);this.uk=Array(4);this.jk=Array(4);for(e=0;4>e;e++)this.uk[e]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.uk[e]),a.bufferData(a.ARRAY_BUFFER,this.vk.byteLength,a.DYNAMIC_DRAW),this.jk[e]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.jk[e]),a.bufferData(a.ARRAY_BUFFER,
this.kk.byteLength,a.DYNAMIC_DRAW);this.Je=0;this.jz=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.jz);for(var c=new Uint16Array(12E3),b=e=0;12E3>e;)c[e++]=b,c[e++]=b+1,c[e++]=b+2,c[e++]=b,c[e++]=b+2,c[e++]=b+3,b+=4;a.bufferData(a.ELEMENT_ARRAY_BUFFER,c,a.STATIC_DRAW);this.hp=this.Xf=this.Kd=0;this.cb=[];e=this.Ka?"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}";c=this.Ci({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}"},e,"<default>");this.cb.push(c);c=this.Ci({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.cb.push(c);c=this.Ci({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},e,"<earlyz>");this.cb.push(c);c=this.Ci({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"},
e,"<fill>");this.cb.push(c);for(var h in qc)qc.hasOwnProperty(h)&&this.cb.push(this.Ci(qc[h],e,h));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,null);this.me=[];this.Rd=0;this.Jb=!1;this.Uq=this.pj=-1;this.nh=null;this.Ln=a.createFramebuffer();this.Yk=this.rm=null;this.Jq=!1;this.Ka&&(this.Yk=a.createRenderbuffer());this.Yf=lc([0,0,0]);this.ps=a.getParameter(a.ALIASED_POINT_SIZE_RANGE)[1];2048<this.ps&&(this.ps=2048);this.Pc(0)};q.prototype.Qp=function(a){n(this.ds,a)||(nc(a,this.ds),this.N.uniformMatrix4fv(this.Nl,
!1,a))};d.prototype.Ci=function(a,e,c){var b=this.N,h=b.createShader(b.FRAGMENT_SHADER);b.shaderSource(h,a.src);b.compileShader(h);if(!b.getShaderParameter(h,b.COMPILE_STATUS))return b.deleteShader(h),null;var t=b.createShader(b.VERTEX_SHADER);b.shaderSource(t,e);b.compileShader(t);if(!b.getShaderParameter(t,b.COMPILE_STATUS))return b.deleteShader(h),b.deleteShader(t),null;e=b.createProgram();b.attachShader(e,h);b.attachShader(e,t);b.linkProgram(e);if(!b.getProgramParameter(e,b.LINK_STATUS))return b.deleteShader(h),
b.deleteShader(t),b.deleteProgram(e),null;b.useProgram(e);b.deleteShader(h);b.deleteShader(t);c=new q(b,e,c);c.bl=a.bl||0;c.cl=a.cl||0;c.Cn=!!a.Cn;c.Ed=!!a.Ed;c.nn=!!a.nn;c.fa=a.fa||[];a=0;for(h=c.fa.length;a<h;a++)c.fa[a][1]=b.getUniformLocation(e,c.fa[a][0]),c.yo.push(0),b.uniform1f(c.fa[a][1],0);return c};d.prototype.ao=function(a){var e,c;e=0;for(c=this.cb.length;e<c;e++)if(this.cb[e].name===a)return e;return-1};d.prototype.Zs=function(a,e,c){var b=this.ld,h=this.Sl,t=[0,0,0,0,0,0,0,0];t[0]=b[0]*
a+b[4]*e+b[12];t[1]=b[1]*a+b[5]*e+b[13];t[2]=b[2]*a+b[6]*e+b[14];t[3]=b[3]*a+b[7]*e+b[15];t[4]=h[0]*t[0]+h[4]*t[1]+h[8]*t[2]+h[12]*t[3];t[5]=h[1]*t[0]+h[5]*t[1]+h[9]*t[2]+h[13]*t[3];t[6]=h[2]*t[0]+h[6]*t[1]+h[10]*t[2]+h[14]*t[3];t[7]=-t[2];0!==t[7]&&(t[7]=1/t[7],t[4]*=t[7],t[5]*=t[7],t[6]*=t[7],c[0]=(.5*t[4]+.5)*this.width,c[1]=(.5*t[5]+.5)*this.height)};d.prototype.Wg=function(a,e,c){if(this.width!==a||this.height!==e||c){this.Oe();c=this.N;this.width=a;this.height=e;c.viewport(0,0,a,e);pc(this.tn,
this.Xr,this.Wt,this.ld);if(this.Ka){var b=-a/2;a=a/2;var h=e/2;e=-e/2;var t=this.cn,m=this.Xp,d=this.Sl;d||(d=mc());var g=a-b,r=e-h,f=m-t;d[0]=2/g;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/f;d[11]=0;d[12]=-(b+a)/g;d[13]=-(e+h)/r;d[14]=-(m+t)/f;d[15]=1;this.wk[0]=1;this.wk[1]=1}else e=a/e,b=this.cn,a=this.Xp,d=this.Sl,m=b*Math.tan(45*Math.PI/360),e*=m,h=-e,t=-m,d||(d=mc()),g=e-h,r=m-t,f=a-b,d[0]=2*b/g,d[1]=0,d[2]=0,d[3]=0,d[4]=0,d[5]=2*b/r,d[6]=0,d[7]=0,d[8]=(e+h)/
g,d[9]=(m+t)/r,d[10]=-(a+b)/f,d[11]=-1,d[12]=0,d[13]=0,d[14]=-(a*b*2)/f,d[15]=0,b=[0,0],a=[0,0],this.Zs(0,0,b),this.Zs(1,1,a),this.wk[0]=1/(a[0]-b[0]),this.wk[1]=-1/(a[1]-b[1]);b=0;for(a=this.cb.length;b<a;b++)h=this.cb[b],h.wg=!1,h.Vr&&(c.useProgram(h.bk),c.uniformMatrix4fv(h.Vr,!1,this.Sl));c.useProgram(this.cb[this.pj].bk);c.bindTexture(c.TEXTURE_2D,null);c.activeTexture(c.TEXTURE1);c.bindTexture(c.TEXTURE_2D,null);c.activeTexture(c.TEXTURE0);this.Ig=this.Lf=null;this.Yk&&(c.bindFramebuffer(c.FRAMEBUFFER,
this.Ln),c.bindRenderbuffer(c.RENDERBUFFER,this.Yk),c.renderbufferStorage(c.RENDERBUFFER,c.DEPTH_COMPONENT16,this.width,this.height),this.Jq||(c.framebufferRenderbuffer(c.FRAMEBUFFER,c.DEPTH_ATTACHMENT,c.RENDERBUFFER,this.Yk),this.Jq=!0),c.bindRenderbuffer(c.RENDERBUFFER,null),c.bindFramebuffer(c.FRAMEBUFFER,null),this.rm=null)}};d.prototype.ye=function(){pc(this.tn,this.Xr,this.Wt,this.ld);oc(this.ld,this.wk)};d.prototype.translate=function(a,e){if(0!==a||0!==e){this.Yf[0]=a;this.Yf[1]=e;this.Yf[2]=
0;var c=this.ld,b=this.Yf,h=b[0],d=b[1],b=b[2];c[12]=c[0]*h+c[4]*d+c[8]*b+c[12];c[13]=c[1]*h+c[5]*d+c[9]*b+c[13];c[14]=c[2]*h+c[6]*d+c[10]*b+c[14];c[15]=c[3]*h+c[7]*d+c[11]*b+c[15]}};d.prototype.scale=function(a,e){if(1!==a||1!==e)this.Yf[0]=a,this.Yf[1]=e,this.Yf[2]=1,oc(this.ld,this.Yf)};d.prototype.qp=function(a){if(0!==a){var e=this.ld,c,b=Math.sin(a);a=Math.cos(a);var h=e[0],d=e[1],m=e[2],g=e[3],p=e[4],r=e[5],f=e[6],l=e[7];c?e!==c&&(c[8]=e[8],c[9]=e[9],c[10]=e[10],c[11]=e[11],c[12]=e[12],c[13]=
e[13],c[14]=e[14],c[15]=e[15]):c=e;c[0]=h*a+p*b;c[1]=d*a+r*b;c[2]=m*a+f*b;c[3]=g*a+l*b;c[4]=h*-b+p*a;c[5]=d*-b+r*a;c[6]=m*-b+f*a;c[7]=g*-b+l*a}};d.prototype.je=function(){if(!n(this.zo,this.ld)){var a=this.Mc();a.type=5;a.na?nc(this.ld,a.na):a.na=mc(this.ld);nc(this.ld,this.zo);this.Jb=!1}};d.prototype.Bm=function(a){this.Ka&&(32760<a&&(a=32760),this.Uk=this.tn[2]-this.cn-a*this.IA)};k.prototype.ux=function(){var a=this.N,e=this.K;0!==this.hc?(a.depthMask(!0),a.colorMask(!1,!1,!1,!1),a.disable(a.BLEND),
a.bindFramebuffer(a.FRAMEBUFFER,e.Ln),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.clear(a.DEPTH_BUFFER_BIT),a.bindFramebuffer(a.FRAMEBUFFER,null),e.Al=!0):(a.depthMask(!1),a.colorMask(!0,!0,!0,!0),a.enable(a.BLEND),e.Al=!1)};k.prototype.yx=function(){this.N.bindTexture(this.N.TEXTURE_2D,this.Id)};k.prototype.zx=function(){var a=this.N;a.activeTexture(a.TEXTURE1);a.bindTexture(a.TEXTURE_2D,this.Id);a.activeTexture(a.TEXTURE0)};k.prototype.vx=function(){var a=this.Ks,
e=this.K;e.Tk=a;e=e.nh;e.Mh&&e.Rl!==a&&(e.Rl=a,this.N.uniform1f(e.Mh,a))};k.prototype.nx=function(){this.N.drawElements(this.N.TRIANGLES,this.gd,this.N.UNSIGNED_SHORT,this.hc)};k.prototype.qx=function(){this.N.blendFunc(this.hc,this.gd)};k.prototype.Ax=function(){var a,e,c,b=this.K.cb,h=this.K.Uq;a=0;for(e=b.length;a<e;a++)c=b[a],a===h&&c.Nl?(c.Qp(this.na),c.wg=!0):c.wg=!1;nc(this.na,this.K.Dn)};k.prototype.ox=function(){var a=this.N,e=this.K;this.Id?(e.Ig===this.Id&&(a.activeTexture(a.TEXTURE1),
a.bindTexture(a.TEXTURE_2D,null),e.Ig=null,a.activeTexture(a.TEXTURE0)),a.bindFramebuffer(a.FRAMEBUFFER,e.Ln),e.Al||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,this.Id,0)):(e.Ka||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.bindFramebuffer(a.FRAMEBUFFER,null))};k.prototype.ix=function(){var a=this.N,e=this.hc;0===e?(a.clearColor(this.na[0],this.na[1],this.na[2],this.na[3]),a.clear(a.COLOR_BUFFER_BIT)):1===e?(a.enable(a.SCISSOR_TEST),a.scissor(this.na[0],
this.na[1],this.na[2],this.na[3]),a.clearColor(0,0,0,0),a.clear(a.COLOR_BUFFER_BIT),a.disable(a.SCISSOR_TEST)):a.clear(a.DEPTH_BUFFER_BIT)};k.prototype.tx=function(){var a=this.N;0!==this.hc?a.enable(a.DEPTH_TEST):a.disable(a.DEPTH_TEST)};k.prototype.mx=function(){var a=this.N,e=this.K;e.Ka&&a.disable(a.DEPTH_TEST);var c=e.cb[1];a.useProgram(c.bk);!c.wg&&c.Nl&&(c.Qp(e.Dn),c.wg=!0);a.enableVertexAttribArray(c.Bd);a.bindBuffer(a.ARRAY_BUFFER,e.gp);a.vertexAttribPointer(c.Bd,4,a.FLOAT,!1,0,0);a.drawArrays(a.POINTS,
this.hc/4,this.gd);c=e.nh;a.useProgram(c.bk);0<=c.Bd&&(a.enableVertexAttribArray(c.Bd),a.bindBuffer(a.ARRAY_BUFFER,e.uk[e.Je]),a.vertexAttribPointer(c.Bd,e.Ka?3:2,a.FLOAT,!1,0,0));0<=c.Of&&(a.enableVertexAttribArray(c.Of),a.bindBuffer(a.ARRAY_BUFFER,e.jk[e.Je]),a.vertexAttribPointer(c.Of,2,a.FLOAT,!1,0,0));e.Ka&&a.enable(a.DEPTH_TEST)};k.prototype.wx=function(){var a=this.N,e=this.K,c=e.cb[this.hc];e.Uq=this.hc;e.nh=c;a.useProgram(c.bk);!c.wg&&c.Nl&&(c.Qp(e.Dn),c.wg=!0);c.Mh&&c.Rl!==e.Tk&&(c.Rl=e.Tk,
a.uniform1f(c.Mh,e.Tk));0<=c.Bd&&(a.enableVertexAttribArray(c.Bd),a.bindBuffer(a.ARRAY_BUFFER,e.uk[e.Je]),a.vertexAttribPointer(c.Bd,e.Ka?3:2,a.FLOAT,!1,0,0));0<=c.Of&&(a.enableVertexAttribArray(c.Of),a.bindBuffer(a.ARRAY_BUFFER,e.jk[e.Je]),a.vertexAttribPointer(c.Of,2,a.FLOAT,!1,0,0))};k.prototype.rx=function(){var a=this.na;this.N.uniform4f(this.K.nh.Go,a[0],a[1],a[2],a[3])};k.prototype.xx=function(){var a,c,d=this.K.nh,b=this.N;a=this.na;d.uj&&this.K.Ig!==this.Id&&(b.activeTexture(b.TEXTURE1),
b.bindTexture(b.TEXTURE_2D,this.Id),this.K.Ig=this.Id,b.activeTexture(b.TEXTURE0));var h=a[0];d.Io&&h!==d.gs&&(d.gs=h,b.uniform1f(d.Io,h));h=a[1];d.Ho&&h!==d.es&&(d.es=h,b.uniform1f(d.Ho,h));h=a[2];c=a[3];!d.Og||h===d.$r&&c===d.as||(d.$r=h,d.as=c,b.uniform2f(d.Og,h,c));h=a[4];c=a[5];!d.Ng||h===d.Yr&&c===d.Zr||(d.Yr=h,d.Zr=c,b.uniform2f(d.Ng,h,c));h=a[6];d.tj&&h!==d.cs&&(d.cs=h,b.uniform1f(d.tj,h));h=a[7];d.sj&&h!==d.bs&&(d.bs=h,b.uniform1f(d.sj,h));h=a[8];c=a[9];!d.xj||h===d.ns&&c===d.os||(d.ns=h,
d.os=c,b.uniform2f(d.xj,h,c));h=a[10];c=a[11];!d.vj||h===d.hs&&c===d.ks||(d.hs=h,d.ks=c,b.uniform2f(d.vj,h,c));h=a[12];d.wj&&h!==d.ls&&(d.ls=h,b.uniform1f(d.wj,h));if(d.fa.length)for(a=0,c=d.fa.length;a<c;a++)h=this.xt[a],h!==d.yo[a]&&(d.yo[a]=h,b.uniform1f(d.fa[a][1],h))};d.prototype.Mc=function(){this.Rd===this.me.length&&this.me.push(new k(0,this));return this.me[this.Rd++]};d.prototype.Oe=function(){if(0!==this.Rd&&!this.N.isContextLost()){var a=this.N;0<this.hp&&(a.bindBuffer(a.ARRAY_BUFFER,
this.gp),a.bufferSubData(a.ARRAY_BUFFER,0,this.Vs.subarray(0,this.hp)),c&&0<=c.Bd&&"<point>"===c.name&&a.vertexAttribPointer(c.Bd,4,a.FLOAT,!1,0,0));if(0<this.Kd){var c=this.nh;a.bindBuffer(a.ARRAY_BUFFER,this.uk[this.Je]);a.bufferSubData(a.ARRAY_BUFFER,0,this.vk.subarray(0,this.Kd));c&&0<=c.Bd&&"<point>"!==c.name&&a.vertexAttribPointer(c.Bd,this.Ka?3:2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.jk[this.Je]);a.bufferSubData(a.ARRAY_BUFFER,0,this.kk.subarray(0,this.Xf));c&&0<=c.Of&&"<point>"!==
c.name&&a.vertexAttribPointer(c.Of,2,a.FLOAT,!1,0,0)}for(var d,a=0,c=this.Rd;a<c;a++)switch(d=this.me[a],d.type){case 1:d.nx();break;case 2:d.yx();break;case 3:d.vx();break;case 4:d.qx();break;case 5:d.Ax();break;case 6:d.ox();break;case 7:d.ix();break;case 8:d.mx();break;case 9:d.wx();break;case 10:d.xx();break;case 11:d.zx();break;case 12:d.rx();break;case 13:d.tx();break;case 14:d.ux()}this.hp=this.Xf=this.Kd=this.Rd=0;this.Al=this.Jb=!1;this.Je++;4<=this.Je&&(this.Je=0)}};d.prototype.Vg=function(a){if(a!==
this.Qr&&!this.aj){var c=this.Mc();c.type=3;this.Qr=c.Ks=a;this.Jb=!1}};d.prototype.Zc=function(a){if(a!==this.Lf){var c=this.Mc();c.type=2;this.Lf=c.Id=a;this.Jb=!1}};d.prototype.Vf=function(a,c){if((a!==this.Rr||c!==this.Pr)&&!this.aj){var d=this.Mc();d.type=4;d.hc=a;d.gd=c;this.Rr=a;this.Pr=c;this.Jb=!1}};d.prototype.kt=function(){this.Vf(this.N.ONE,this.N.ONE_MINUS_SRC_ALPHA)};d.prototype.Sj=function(a,c,d,b,h,t,m,g){15992<=this.Kd&&this.Oe();var p=this.Kd,r=this.Xf,f=this.vk,l=this.kk,O=this.Uk;
if(this.Jb)this.me[this.Rd-1].gd+=6;else{var q=this.Mc();q.type=1;q.hc=this.Ka?p:p/2*3;q.gd=6;this.Jb=!0}this.Ka?(f[p++]=a,f[p++]=c,f[p++]=O,f[p++]=d,f[p++]=b,f[p++]=O,f[p++]=h,f[p++]=t,f[p++]=O,f[p++]=m,f[p++]=g,f[p++]=O):(f[p++]=a,f[p++]=c,f[p++]=d,f[p++]=b,f[p++]=h,f[p++]=t,f[p++]=m,f[p++]=g);l[r++]=0;l[r++]=0;l[r++]=1;l[r++]=0;l[r++]=1;l[r++]=1;l[r++]=0;l[r++]=1;this.Kd=p;this.Xf=r};d.prototype.ve=function(a,c,d,b,h,t,m,p,g){15992<=this.Kd&&this.Oe();var r=this.Kd,f=this.Xf,l=this.vk,O=this.kk,
q=this.Uk;if(this.Jb)this.me[this.Rd-1].gd+=6;else{var u=this.Mc();u.type=1;u.hc=this.Ka?r:r/2*3;u.gd=6;this.Jb=!0}var u=g.left,A=g.top,k=g.right;g=g.bottom;this.Ka?(l[r++]=a,l[r++]=c,l[r++]=q,l[r++]=d,l[r++]=b,l[r++]=q,l[r++]=h,l[r++]=t,l[r++]=q,l[r++]=m,l[r++]=p,l[r++]=q):(l[r++]=a,l[r++]=c,l[r++]=d,l[r++]=b,l[r++]=h,l[r++]=t,l[r++]=m,l[r++]=p);O[f++]=u;O[f++]=A;O[f++]=k;O[f++]=A;O[f++]=k;O[f++]=g;O[f++]=u;O[f++]=g;this.Kd=r;this.Xf=f};d.prototype.Xz=function(a,c,d,b,h,t,m,p,g,r,f,l,O,q,u,A){15992<=
this.Kd&&this.Oe();var k=this.Kd,n=this.Xf,B=this.vk,J=this.kk,F=this.Uk;if(this.Jb)this.me[this.Rd-1].gd+=6;else{var T=this.Mc();T.type=1;T.hc=this.Ka?k:k/2*3;T.gd=6;this.Jb=!0}this.Ka?(B[k++]=a,B[k++]=c,B[k++]=F,B[k++]=d,B[k++]=b,B[k++]=F,B[k++]=h,B[k++]=t,B[k++]=F,B[k++]=m,B[k++]=p,B[k++]=F):(B[k++]=a,B[k++]=c,B[k++]=d,B[k++]=b,B[k++]=h,B[k++]=t,B[k++]=m,B[k++]=p);J[n++]=g;J[n++]=r;J[n++]=f;J[n++]=l;J[n++]=O;J[n++]=q;J[n++]=u;J[n++]=A;this.Kd=k;this.Xf=n};d.prototype.Pc=function(a){if(this.pj!==
a){if(!this.cb[a]){if(0===this.pj)return;a=0}var c=this.Mc();c.type=9;this.pj=c.hc=a;this.Jb=!1}};d.prototype.Qj=function(a){a=this.cb[a];return!(!a.Og&&!a.Ng)};d.prototype.jp=function(a){a=this.cb[a];return!!(a.Og||a.Ng||a.Cn)};d.prototype.ip=function(a){return this.cb[a].Ed};d.prototype.Vz=function(a){a=this.cb[a];return 0!==a.bl||0!==a.cl};d.prototype.Ly=function(a){return this.cb[a].bl};d.prototype.My=function(a){return this.cb[a].cl};d.prototype.Ny=function(a,c){return this.cb[a].fa[c][2]};d.prototype.om=
function(a){return this.cb[a].nn};d.prototype.ci=function(a,c,d,b,h,t,m,p,g,r,f,l,O,k,u){var A=this.cb[this.pj],q,n;if(A.gz||u.length){q=this.Mc();q.type=10;q.na?nc(this.ld,q.na):q.na=mc();n=q.na;n[0]=c;n[1]=d;n[2]=b;n[3]=h;n[4]=t;n[5]=m;n[6]=p;n[7]=g;n[8]=r;n[9]=f;n[10]=l;n[11]=O;n[12]=k;A.uj?q.Id=a:q.Id=null;if(u.length)for(d=q.xt,d.length=u.length,a=0,c=u.length;a<c;a++)d[a]=u[a];this.Jb=!1}};d.prototype.clear=function(a,c,d,b){var h=this.Mc();h.type=7;h.hc=0;h.na||(h.na=mc());h.na[0]=a;h.na[1]=
c;h.na[2]=d;h.na[3]=b;this.Jb=!1};d.prototype.clearRect=function(a,c,d,b){if(!(0>d||0>b)){var h=this.Mc();h.type=7;h.hc=1;h.na||(h.na=mc());h.na[0]=a;h.na[1]=c;h.na[2]=d;h.na[3]=b;this.Jb=!1}};d.prototype.nt=function(a){if(this.Ka&&(a=!!a,this.aj!==a)){var c=this.Mc();c.type=14;c.hc=a?1:0;this.Jb=!1;this.aj=a;this.rm=null;this.aj?this.Pc(2):this.Pc(0)}};d.prototype.mt=function(a){if(this.Ka){var c=this.Mc();c.type=13;c.hc=a?1:0;this.Jb=!1}};d.prototype.ir=function(){nc(this.zo,c);this.ye();this.je();
var a=this.width/2,e=this.height/2;this.Sj(-a,e,a,e,a,-e,-a,-e);nc(c,this.ld);this.je()};d.prototype.lt=function(a,c,d){this.Pc(3);var b=this.Mc();b.type=12;b.na||(b.na=mc());b.na[0]=a;b.na[1]=c;b.na[2]=d;b.na[3]=1;this.Jb=!1};d.prototype.qA=function(){this.Pc(0)};d.prototype.bA=function(){this.Pc(2)};d.prototype.Uz=function(){this.Oe();this.N.flush()};var p=[],g={};d.prototype.Vw=function(){P(p);g={}};d.prototype.Kl=function(a,c,d,b){c=!!c;d=!!d;var h=a.src+","+c+","+d+(c?",undefined":""),t=null;
if("undefined"!==typeof a.src&&g.hasOwnProperty(h))return t=g[h],t.Lk++,t;this.Oe();var m=this.N,k=ma(a.width)&&ma(a.height),t=m.createTexture();m.bindTexture(m.TEXTURE_2D,t);m.pixelStorei(m.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var x=m.RGBA,r=m.RGBA,f=m.UNSIGNED_BYTE;if(b&&!this.Ue)switch(b){case 1:r=x=m.RGB;break;case 2:f=m.UNSIGNED_SHORT_4_4_4_4;break;case 3:f=m.UNSIGNED_SHORT_5_5_5_1;break;case 4:r=x=m.RGB,f=m.UNSIGNED_SHORT_5_6_5}if(!k&&c){b=document.createElement("canvas");b.width=na(a.width);
b.height=na(a.height);var l=b.getContext("2d");"undefined"!==typeof l.imageSmoothingEnabled?l.imageSmoothingEnabled=d:(l.webkitImageSmoothingEnabled=d,l.mozImageSmoothingEnabled=d,l.msImageSmoothingEnabled=d);l.drawImage(a,0,0,a.width,a.height,0,0,b.width,b.height);m.texImage2D(m.TEXTURE_2D,0,x,r,f,b)}else m.texImage2D(m.TEXTURE_2D,0,x,r,f,a);c?(m.texParameteri(m.TEXTURE_2D,m.TEXTURE_WRAP_S,m.REPEAT),m.texParameteri(m.TEXTURE_2D,m.TEXTURE_WRAP_T,m.REPEAT)):(m.texParameteri(m.TEXTURE_2D,m.TEXTURE_WRAP_S,
m.CLAMP_TO_EDGE),m.texParameteri(m.TEXTURE_2D,m.TEXTURE_WRAP_T,m.CLAMP_TO_EDGE));d?(m.texParameteri(m.TEXTURE_2D,m.TEXTURE_MAG_FILTER,m.LINEAR),k&&this.Zq?(m.texParameteri(m.TEXTURE_2D,m.TEXTURE_MIN_FILTER,m.LINEAR_MIPMAP_LINEAR),m.generateMipmap(m.TEXTURE_2D)):m.texParameteri(m.TEXTURE_2D,m.TEXTURE_MIN_FILTER,m.LINEAR)):(m.texParameteri(m.TEXTURE_2D,m.TEXTURE_MAG_FILTER,m.NEAREST),m.texParameteri(m.TEXTURE_2D,m.TEXTURE_MIN_FILTER,m.NEAREST));m.bindTexture(m.TEXTURE_2D,null);this.Lf=null;t.eg=a.width;
t.dg=a.height;t.Lk=1;t.Oq=h;p.push(t);return g[h]=t};d.prototype.dd=function(a,c,d,b,h){this.Oe();var t=this.N;this.Ue&&(b=!1);var m=t.createTexture();t.bindTexture(t.TEXTURE_2D,m);t.texImage2D(t.TEXTURE_2D,0,t.RGBA,a,c,0,t.RGBA,b?t.UNSIGNED_SHORT_4_4_4_4:t.UNSIGNED_BYTE,null);h?(t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.REPEAT),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.REPEAT)):(t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,
t.CLAMP_TO_EDGE));t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,d?t.LINEAR:t.NEAREST);t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,d?t.LINEAR:t.NEAREST);t.bindTexture(t.TEXTURE_2D,null);this.Lf=null;m.eg=a;m.dg=c;p.push(m);return m};d.prototype.FA=function(a,c){var d;this.Oe();var b=this.N;this.Ue&&(d=!1);b.bindTexture(b.TEXTURE_2D,c);b.pixelStorei(b.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);try{b.texImage2D(b.TEXTURE_2D,0,b.RGBA,b.RGBA,d?b.UNSIGNED_SHORT_4_4_4_4:b.UNSIGNED_BYTE,a)}catch(h){console&&
console.error&&console.error("Error updating WebGL texture: ",h)}b.bindTexture(b.TEXTURE_2D,null);this.Lf=null};d.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.Lk&&1<a.Lk?a.Lk--:(this.Oe(),a===this.Lf&&(this.N.bindTexture(this.N.TEXTURE_2D,null),this.Lf=null),a===this.Ig&&(this.N.activeTexture(this.N.TEXTURE1),this.N.bindTexture(this.N.TEXTURE_2D,null),this.N.activeTexture(this.N.TEXTURE0),this.Ig=null),Fa(p,a),"undefined"!==typeof a.Oq&&delete g[a.Oq],this.N.deleteTexture(a)))};
d.prototype.Gd=function(a){if(a!==this.rm){var c=this.Mc();c.type=6;this.rm=c.Id=a;this.Jb=!1}};ob=d})();
(function(){function d(b){if(b&&(b.getContext||b.dc)&&!b.c2runtime){b.c2runtime=this;var a=this;this.Vc=(this.$i=/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.Tb=!!b.dc;this.Er="undefined"!==typeof window.AppMobi||
this.Tb;this.zd=!!window.c2cocoonjs;this.Xd=!!window.c2ejecta;this.zd&&(CocoonJS.App.onSuspended.addEventListener(function(){a.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){a.setSuspended(!1)}));this.Xd&&(document.addEventListener("pagehide",function(){a.setSuspended(!0)}),document.addEventListener("pageshow",function(){a.setSuspended(!1)}),document.addEventListener("resize",function(){a.setSize(window.innerWidth,window.innerHeight)}));this.Ya=this.Tb||this.zd||this.Xd;this.cj=
/edge\//i.test(navigator.userAgent);this.Ue=(/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent))&&!this.cj;this.Jr=/tizen/i.test(navigator.userAgent);this.yl=/android/i.test(navigator.userAgent)&&!this.Jr&&!this.Ue&&!this.cj;this.Nr=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&!this.Ue&&!this.cj;this.wz=/ipad/i.test(navigator.userAgent);this.Dh=this.Nr||this.wz||this.Xd;this.Zi=(/chrome/i.test(navigator.userAgent)||
/chromium/i.test(navigator.userAgent))&&!this.Ue&&!this.cj;this.oo=/amazonwebappplatform/i.test(navigator.userAgent);this.qz=/firefox/i.test(navigator.userAgent);this.sz=/safari/i.test(navigator.userAgent)&&!this.Zi&&!this.Ue&&!this.cj;this.uz=/windows/i.test(navigator.userAgent);this.Jf="undefined"!==typeof window.c2nodewebkit||"undefined"!==typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.Kr=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);
this.Lr=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.xh=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.vo=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.uo=!!window.cr_windows10;this.to=this.Kr||this.Lr||this.vo||this.uo;this.oz=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.zl=this.yl&&!this.Zi&&!this.$i&&!this.qz&&!this.oo&&!this.Ya;this.devicePixelRatio=
1;this.Cg=this.Vc||this.$i||this.Er||this.zd||this.yl||this.Dh||this.xh||this.vo||this.oz||this.Jr||this.Xd;this.Cg||(this.Cg=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));this.hj=!!(this.Dh&&this.Vc&&window.webkit);this.ho=null;this.hz="";this.hj&&(this.ho=cordova&&cordova.plugins&&cordova.plugins.CorHttpd?cordova.plugins.CorHttpd:null);"undefined"===typeof cr_is_preview||this.Jf||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&
!/nwjs/i.test(navigator.userAgent)||(this.Jf=!0);this.canvas=b;this.Qq=document.getElementById("c2canvasdiv");this.K=this.N=null;this.bo="(unavailable)";this.Ka=!1;this.mg=0;this.Ta=null;this.Qn="";this.il=!1;this.Ds=this.Es=0;this.canvas.oncontextmenu=function(b){b.preventDefault&&b.preventDefault();return!1};this.canvas.onselectstart=function(b){b.preventDefault&&b.preventDefault();return!1};this.Tb&&(window.c2runtime=this);this.Jf&&(window.ondragover=function(b){b.preventDefault();return!1},window.ondrop=
function(b){b.preventDefault();return!1},window.nwgui&&window.nwgui.App.clearCache&&window.nwgui.App.clearCache());this.zl&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=b.width;this.height=b.height;this.W=this.width;this.V=this.height;this.Rk=this.width;this.Ei=this.height;this.Ih=window.innerWidth;this.Hh=window.innerHeight;this.wy=!1;this.za=!0;this.fj=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.M=[];this.$a=
[];this.Do={};this.Zd=[];this.Kn={};this.Pe=[];this.oi=[];this.Wm=[];this.Kw=[];this.Lw=[];this.Or=this.Dt=null;this.jg={};this.qo=this.If=!1;this.Yd=0;this.po=this.so=!1;this.Td=[];this.bj=!1;this.Ve=this.ec=this.Il=this.up="";this.gk=this.Bt=!1;this.hl=[];this.lg=this.kg=0;this.us=30;this.An=this.yj=0;this.ah=1;this.mb=new $a;this.qf=new $a;this.Wl=this.nl=this.Ki=this.$g=this.Kg=this.On=this.Dl=0;this.Ai=null;this.Zk=[];this.Jn=[];this.al=-1;this.Jo=[[]];this.Mp=this.Ol=0;this.pm(null);this.Lo=
[];this.Ql=-1;this.ys=this.Ej=0;this.Co=!0;this.Li=0;this.hk=[];this.Jp=this.lp=-1;this.kj=!0;this.Lh=0;this.ej=!1;this.vA=0;this.kh=null;this.eb=this.sl=!1;this.Cs=new fa;this.To=new fa;this.Uo=new fa;this.Vj=[];this.fe=new gb([]);this.Dp=new gb([]);this.jh=[];this.Ti={};this.Af={};this.uf={};this.ni={};this.Kq={};this.Ur=this.Hl=this.ob=this.Eb=this.Tr=this.Gl=this.xa=null;this.li=this.wo=!1;this.Rn=[null,null];this.rg=0;this.gl="";this.Ze={};this.ek=this.Mf=null;this.Ct="";this.Vl=[];this.aA()}}
function q(b,a){return 128>=a?b[3]:256>=a?b[2]:512>=a?b[1]:b[0]}function n(){try{return!!window.indexedDB}catch(b){return!1}}function k(b){b.target.result.createObjectStore("saves",{keyPath:"slot"})}function c(b,a,c,f){try{var e=indexedDB.open("_C2SaveStates");e.onupgradeneeded=k;e.onerror=f;e.onsuccess=function(e){e=e.target.result;e.onerror=f;e.transaction(["saves"],"readwrite").objectStore("saves").put({slot:b,data:a}).onsuccess=c}}catch(h){f(h)}}function p(b,a,c){try{var f=indexedDB.open("_C2SaveStates");
f.onupgradeneeded=k;f.onerror=c;f.onsuccess=function(f){f=f.target.result;f.onerror=c;var e=f.transaction(["saves"]).objectStore("saves").get(b);e.onsuccess=function(){e.result?a(e.result.data):a(null)}}}catch(e){c(e)}}function g(){ha("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(b){var a,c={};for(a in b)!b.hasOwnProperty(a)||b[a]instanceof
fa||b[a]&&"undefined"!==typeof b[a].SB||"spriteCreatedDestroyCallback"!==a&&(c[a]=b[a]);return c}var e=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;d.prototype.aA=function(){var b=this;if(this.hj)this.ho?this.ho.startServer({port:0,localhost_only:!0},function(a){b.hz=a;b.fr(function(a){b.Kh(JSON.parse(a))},function(){alert("Error fetching data.js")})},function(b){alert("error starting local server: "+
b)}):this.fr(function(a){b.Kh(JSON.parse(a))},function(){alert("Error fetching data.js")});else{var a;this.xh?a=new ActiveXObject("Microsoft.XMLHTTP"):a=new XMLHttpRequest;var c="data.js";if(this.Kr||this.xh||this.vo||this.uo)c="data.json";a.open("GET",c,!0);var f=!1;if(!this.Ya&&"response"in a&&"responseType"in a)try{a.responseType="json",f="json"===a.responseType}catch(e){f=!1}if(!f&&"responseType"in a)try{a.responseType="text"}catch(h){}if("overrideMimeType"in a)try{a.overrideMimeType("application/json; charset=utf-8")}catch(d){}this.xh?
a.onreadystatechange=function(){4===a.readyState&&b.Kh(JSON.parse(a.responseText))}:(a.onload=function(){if(f)b.Kh(a.response);else if(b.Xd){var c=a.responseText,c=c.substr(c.indexOf("{"));b.Kh(JSON.parse(c))}else b.Kh(JSON.parse(a.responseText))},a.onerror=function(b){ia("Error requesting "+c+":");ia(b)});a.send()}};d.prototype.kz=function(){var b=this,a,c,f,e,h,d,l,u,m;this.Fg=(!this.Ya||this.Xd||this.Vc)&&this.CA&&!this.zl;0===this.qc&&this.Dh&&(this.Fg=!1);this.devicePixelRatio=this.Fg?window.devicePixelRatio||
window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.Zb();c=!(!this.wy&&(!this.ln||this.Jf||this.to||this.xh||this.$i||this.Vc||this.oo));0<this.qc&&this.setSize(window.innerWidth,window.innerHeight,!0);try{this.Jx&&(this.zd||this.Xd||!this.Ya)&&(a={alpha:c,depth:!1,antialias:!1,failIfMajorPerformanceCaveat:!0},this.N=this.canvas.getContext("webgl",a)||this.canvas.getContext("experimental-webgl",a))}catch(r){}if(this.N){if(a=this.N.getExtension("WEBGL_debug_renderer_info"))this.bo=
this.N.getParameter(a.UNMASKED_RENDERER_WEBGL)+" ["+this.N.getParameter(a.UNMASKED_VENDOR_WEBGL)+"]";this.Ka&&(this.bo+=" [front-to-back enabled]");this.Ya||(this.Vb=document.createElement("canvas"),jQuery(this.Vb).appendTo(this.canvas.parentNode),this.Vb.oncontextmenu=function(){return!1},this.Vb.onselectstart=function(){return!1},this.Vb.width=Math.round(this.Rk*this.devicePixelRatio),this.Vb.height=Math.round(this.Ei*this.devicePixelRatio),jQuery(this.Vb).css({width:this.Rk+"px",height:this.Ei+
"px"}),this.Xs(),this.fp=this.Vb.getContext("2d"));this.K=new ob(this.N,this.Cg,this.Ka);this.K.Wg(this.canvas.width,this.canvas.height);this.K.Zq=0!==this.Bx;this.Ta=null;this.canvas.addEventListener("webglcontextlost",function(a){a.preventDefault();b.Gz();ha("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){b.K.yr();b.K.Wg(b.K.width,b.K.height,!0);b.Eb=null;b.ob=null;b.Rn[0]=null;b.Rn[1]=null;b.Hz();b.za=!0;ha("[Construct 2] WebGL context restored");
window.cr_setSuspended(!1)},!1);a=0;for(c=this.M.length;a<c;a++)for(h=this.M[a],f=0,e=h.ca.length;f<e;f++)l=h.ca[f],l.ub=this.K.ao(l.id),l.Ed=this.K.ip(l.ub),this.li=this.li||this.K.Qj(l.ub);a=0;for(c=this.Zd.length;a<c;a++){u=this.Zd[a];f=0;for(e=u.ca.length;f<e;f++)l=u.ca[f],l.ub=this.K.ao(l.id),l.Ed=this.K.ip(l.ub);u.ie();f=0;for(e=u.ka.length;f<e;f++){m=u.ka[f];h=0;for(d=m.ca.length;h<d;h++)l=m.ca[h],l.ub=this.K.ao(l.id),l.Ed=this.K.ip(l.ub),this.li=this.li||this.K.Qj(l.ub);m.ie()}}}else{if(0<
this.qc&&this.Tb){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.Ta=AppMobi.canvas.getContext("2d");try{this.Ta.samplingMode=this.Za?"smooth":"sharp",this.Ta.globalScale=1,this.Ta.HTML5CompatibilityMode=!0,this.Ta.imageSmoothingEnabled=this.Za}catch(t){}0!==this.width&&0!==this.height&&(this.Ta.width=this.width,this.Ta.height=this.height)}this.Ta||(this.zd?(a={antialias:!!this.Za,alpha:c},this.Ta=this.canvas.getContext("2d",a)):(a={alpha:c},
this.Ta=this.canvas.getContext("2d",a)),this.Am(this.Ta,this.Za));this.fp=this.Vb=null}this.Jt=function(a){b.Pa(!1,a)};window==window.top||this.Ya||this.to||this.xh||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.zd&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(ha("Reloading for continuous preview"),
this.Il="__c2_continuouspreview",this.gk=!0),this.Nz&&!this.Cg&&(jQuery(window).focus(function(){b.setSuspended(!1)}),jQuery(window).blur(function(){var a=window.parent;a&&a.document.hasFocus()||b.setSuspended(!0)})));window.addEventListener("blur",function(){b.Rf()});this.Ya||(a=function(b){if(nb(b)&&document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(a){}},window.navigator.pointerEnabled?document.addEventListener("pointerdown",
a):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",a):document.addEventListener("touchstart",a),document.addEventListener("mousedown",a));0===this.qc&&this.Fg&&1<this.devicePixelRatio&&this.setSize(this.qb,this.pb,!0);this.St();this.cz();this.go();this.O={}};d.prototype.setSize=function(b,a,c){var f=0,e=0,h=0,l=0,l=0;if(this.Ih!==b||this.Hh!==a||c){this.Ih=b;this.Hh=a;var d=this.qc,u=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||
document.fullScreen||this.ej)&&!this.Vc;if(u||0!==this.qc||c)u&&0<this.rg&&(d=this.rg),c=this.devicePixelRatio,4<=d?(h=this.qb/this.pb,b/a>h?(h*=a,5===d?(l=h*c/this.qb,1<l?l=Math.floor(l):1>l&&(l=1/Math.ceil(1/l)),h=this.qb*l/c,l=this.pb*l/c,f=(b-h)/2,e=(a-l)/2,b=h,a=l):(f=(b-h)/2,b=h)):(l=b/h,5===d?(l=l*c/this.pb,1<l?l=Math.floor(l):1>l&&(l=1/Math.ceil(1/l)),h=this.qb*l/c,l=this.pb*l/c,f=(b-h)/2,e=(a-l)/2,b=h):e=(a-l)/2,a=l),u&&!this.Jf&&(e=f=0)):this.Jf&&this.ej&&0===this.jr&&(f=Math.floor((b-this.qb)/
2),e=Math.floor((a-this.pb)/2),b=this.qb,a=this.pb),2>d&&(this.wi=c),this.Rk=Math.round(b),this.Ei=Math.round(a),this.width=Math.round(b*c),this.height=Math.round(a*c),this.za=!0,this.eu?(this.W=this.width,this.V=this.height,this.ed=!0):this.width<this.qb&&this.height<this.pb||1===d?(this.W=this.width,this.V=this.height,this.ed=!0):(this.W=this.qb,this.V=this.pb,this.ed=!1,2===d?(h=this.qb/this.pb,d=this.Ih/this.Hh,d<h?this.W=this.V*d:d>h&&(this.V=this.W/d)):3===d&&(h=this.qb/this.pb,d=this.Ih/this.Hh,
d>h?this.W=this.V*d:d<h&&(this.V=this.W/d))),this.Qq&&!this.Ya&&(jQuery(this.Qq).css({width:Math.round(b)+"px",height:Math.round(a)+"px","margin-left":Math.floor(f)+"px","margin-top":Math.floor(e)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(b)+"px",height:Math.round(a)+"px"})),this.canvas&&(this.canvas.width=Math.round(b*c),this.canvas.height=Math.round(a*c),this.Xd?(this.canvas.style.left=Math.floor(f)+"px",this.canvas.style.top=Math.floor(e)+"px",this.canvas.style.width=
Math.round(b)+"px",this.canvas.style.height=Math.round(a)+"px"):this.Fg&&!this.Ya&&(this.canvas.style.width=Math.round(b)+"px",this.canvas.style.height=Math.round(a)+"px")),this.Vb&&(this.Vb.width=Math.round(b*c),this.Vb.height=Math.round(a*c),this.Vb.style.width=this.Rk+"px",this.Vb.style.height=this.Ei+"px"),this.K&&this.K.Wg(Math.round(b*c),Math.round(a*c)),this.Tb&&this.Ta&&(this.Ta.width=Math.round(b),this.Ta.height=Math.round(a)),this.Ta&&this.Am(this.Ta,this.Za),this.St(),this.Nr&&!this.Vc&&
window.scrollTo(0,0)}};d.prototype.St=function(){if(this.Nw&&0!==this.dp){var b="portrait";2===this.dp&&(b="landscape");try{screen.orientation&&screen.orientation.lock?screen.orientation.lock(b).catch(function(){}):screen.lockOrientation?screen.lockOrientation(b):screen.webkitLockOrientation?screen.webkitLockOrientation(b):screen.mozLockOrientation?screen.mozLockOrientation(b):screen.msLockOrientation&&screen.msLockOrientation(b)}catch(a){console&&console.warn&&console.warn("Failed to lock orientation: ",
a)}}};d.prototype.Gz=function(){this.K.Vw();this.wo=!0;var b,a,c;b=0;for(a=this.M.length;b<a;b++)c=this.M[b],c.Yl&&c.Yl()};d.prototype.Hz=function(){this.wo=!1;var b,a,c;b=0;for(a=this.M.length;b<a;b++)c=this.M[b],c.$l&&c.$l()};d.prototype.Xs=function(){if(!this.Ya){var b=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.ej)&&!this.Vc?jQuery(this.canvas).offset():jQuery(this.canvas).position();b.position="absolute";jQuery(this.Vb).css(b)}};
var v=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;d.prototype.setSuspended=function(b){var a;if(b&&!this.fj)for(ha("[Construct 2] Suspending"),this.fj=!0,-1!==this.lp&&v&&v(this.lp),-1!==this.Jp&&clearTimeout(this.Jp),b=0,a=this.hk.length;b<a;b++)this.hk[b](!0);else if(!b&&this.fj){ha("[Construct 2] Resuming");this.fj=!1;this.Dl=Wa();this.Kg=Wa();b=this.yj=this.nl=0;for(a=this.hk.length;b<
a;b++)this.hk[b](!1);this.Pa(!1)}};d.prototype.Fq=function(b){this.hk.push(b)};d.prototype.sf=function(b){return this.Vl[b]};d.prototype.Kh=function(b){b&&b.project||ia("Project model unavailable");b=b.project;this.name=b[0];this.hr=b[1];this.qc=b[12];this.jr=b[12];this.qb=b[10];this.pb=b[11];this.Rs=this.qb/2;this.Ss=this.pb/2;this.Ya&&!this.Xd&&(4<=b[12]||0===b[12])&&(ha("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.jr=
this.qc=3);this.Sp=b[18];this.Nf=b[19];if(0===this.Nf){var a=new Image;a.crossOrigin="anonymous";this.ot(a,"loading-logo.png");this.Mf={Pl:a}}else if(4===this.Nf){a=new Image;a.src="";var c=new Image;c.src="";var f=new Image;f.src="";var e=new Image;e.src="";var h=new Image;h.src="";var l=new Image;l.src="";var d=new Image;d.src="";var u=new Image;u.src="";var m=new Image;m.src="";var r=new Image;r.src="";var t=new Image;t.src="";var p=new Image;p.src="";this.Mf={Pl:[a,c,f,e],Rz:[h,l,d,u],HA:[m,r,
t,p]}}this.Ej=b[21];this.Vl=rc();this.Be=new U(this);a=0;for(c=b[2].length;a<c;a++)d=b[2][a],f=this.sf(d[0]),pb(d,f.prototype),u=new f(this),u.Hm=d[1],u.Kf=d[2],u.ws=d[9],u.P&&u.P(),this.plugins.push(u);this.Vl=rc();a=0;for(c=b[3].length;a<c;a++){d=b[3][a];h=this.sf(d[1]);u=null;f=0;for(e=this.plugins.length;f<e;f++)if(this.plugins[f]instanceof h){u=this.plugins[f];break}m=new u.Z(u);m.name=d[0];m.T=d[2];m.no=d[3].slice(0);m.EA=d[3].length;m.Ow=d[4];m.yy=d[5];m.ua=d[11];m.T?(m.Oh=[],m.Qe=this.Li++,
m.Xa=null):(m.Oh=null,m.Qe=-1,m.Xa=[]);m.el=null;m.qh=null;m.$q=null;m.Fc=!1;m.Tc=null;d[6]?(m.Mm=d[6][0],m.Nm=d[6][1],m.Ep=d[6][2]):(m.Mm=null,m.Nm=0,m.Ep=0);d[7]?m.Sc=d[7]:m.Sc=null;m.index=a;m.j=[];m.Wk=[];m.jf=[new qb(m)];m.ne=0;m.wd=null;m.ax=0;m.gi=!0;m.Zm=rb;m.Ni=sb;m.Jy=tb;m.la=ub;m.Rj=wb;m.Yh=xb;m.df=yb;m.pl=zb;m.Un=Ab;m.Xn=Bb;m.ud=Cb;m.Yn=Db;m.Ok=new hb(this.qb,this.pb);m.Ek=!0;m.Fk=!1;m.O={};m.toString=Eb;m.$a=[];f=0;for(e=d[8].length;f<e;f++){r=d[8][f];t=this.sf(r[1]);p=null;h=0;for(l=
this.$a.length;h<l;h++)if(this.$a[h]instanceof t){p=this.$a[h];break}p||(p=new t(this),p.Ul=[],p.Tl=new fa,p.P&&p.P(),this.$a.push(p),sc&&p instanceof sc&&(this.Dt=p),tc&&p instanceof tc&&(this.Or=p));-1===p.Ul.indexOf(m)&&p.Ul.push(m);h=new p.Z(p,m);h.name=r[0];h.ua=r[2];h.P();m.$a.push(h)}m.global=d[9];m.ro=d[10];m.ca=[];f=0;for(e=d[12].length;f<e;f++)m.ca.push({id:d[12][f][0],name:d[12][f][1],ub:-1,Ed:!1,H:!0,index:f});m.Qm=d[13];this.Sp&&!m.T&&!m.ro&&u.Kf||m.P();m.name&&(this.types[m.name]=m);
this.M.push(m);u.Hm&&(f=new u.S(m),f.uid=this.Ej++,f.bt=this.ys++,f.yg=0,f.Ri=Fb,f.toString=Gb,f.C=d[14],f.P(),m.j.push(f),this.Ze[f.uid.toString()]=f)}a=0;for(c=b[4].length;a<c;a++)for(h=b[4][a],l=this.M[h[0]],f=1,e=h.length;f<e;f++)d=this.M[h[f]],d.Xa.push(l),l.Oh.push(d);a=0;for(c=b[28].length;a<c;a++){h=b[28][a];l=[];f=0;for(e=h.length;f<e;f++)l.push(this.M[h[f]]);f=0;for(e=l.length;f<e;f++)l[f].Fc=!0,l[f].Tc=l}if(0<this.Li)for(a=0,c=this.M.length;a<c;a++)if(d=this.M[a],!d.T&&d.Xa.length){d.el=
Array(this.Li);d.qh=Array(this.Li);d.$q=Array(this.Li);m=[];f=p=t=r=0;for(e=d.Xa.length;f<e;f++)for(u=d.Xa[f],d.el[u.Qe]=r,r+=u.EA,d.qh[u.Qe]=t,t+=u.Ow,d.$q[u.Qe]=p,p+=u.yy,h=0,l=u.ca.length;h<l;h++)m.push(xa({},u.ca[h]));d.ca=m.concat(d.ca);f=0;for(e=d.ca.length;f<e;f++)d.ca[f].index=f}a=0;for(c=b[5].length;a<c;a++)d=b[5][a],f=new Jb(this,d),this.Do[f.name]=f,this.Zd.push(f);a=0;for(c=b[6].length;a<c;a++)d=b[6][a],f=new Kb(this,d),this.Kn[f.name]=f,this.Pe.push(f);a=0;for(c=this.Pe.length;a<c;a++)this.Pe[a].fb();
a=0;for(c=this.Pe.length;a<c;a++)this.Pe[a].Pp();a=0;for(c=this.Wm.length;a<c;a++)this.Wm[a].fb();P(this.Wm);this.Mw=b[7];this.gl=b[8];this.be=b[9];this.wi=1;this.Jx=b[13];this.Za=b[14];this.ln=b[15];this.CA=b[17];this.dp=b[20];this.Nw=0<this.dp;this.Nz=b[22];this.ed=this.eu=b[23];this.Bx=b[24];this.Sz=b[25];this.Ka=b[27]&&!this.Ue;this.Im=Date.now();P(this.Vl);this.kz()};var b=!1;d.prototype.Up=function(a,f){a.cocoonLazyLoad=!0;a.onerror=function(f){b=a.Nq=!0;console&&console.error&&console.error("Error loading image '"+
a.src+"': ",f)};this.Xd?a.src=f:a.src||("undefined"!==typeof XAPKReader?XAPKReader.get(f,function(b){a.src=b},function(c){b=a.Nq=!0;console&&console.error&&console.error("Error extracting image '"+f+"' from expansion file: ",c)}):(a.crossOrigin="anonymous",this.ot(a,f)));this.oi.push(a)};d.prototype.uy=function(b){var a,f;a=0;for(f=this.oi.length;a<f;a++)if(this.oi[a].Ww===b)return this.oi[a];return null};var h=0,t=!1;d.prototype.cz=function(){this.kh&&(h=this.kh.oA(this.Mw))};d.prototype.Iq=function(){var b=
h,a=0,f=0,c=!0,e,d,f=0;for(e=this.oi.length;f<e;f++){d=this.oi[f];var l=d.Bn;if(!l||0>=l)l=5E4;b+=l;d.src&&(d.complete||d.loaded)&&!d.Nq?a+=l:c=!1}c&&this.Sz&&this.kh&&(t||(this.kh.wA(),t=!0),f=this.kh.Ky(),a+=f,f<h&&(c=!1));this.de=0==b?1:a/b;return c};var m=!1;d.prototype.go=function(){if(this.Ta||this.K){var a=this.Ta||this.fp;this.Vb&&this.Xs();var f=window.innerWidth,c=window.innerHeight;this.Ih===f&&this.Hh===c||this.setSize(f,c);this.de=0;this.Sr=-1;var h=this;if(this.Iq()&&(4!==this.Nf||m))this.dz();
else{c=Date.now()-this.Im;if(a){var d=this.width,l=this.height,f=this.devicePixelRatio;if(3>this.Nf&&(this.zd||500<=c&&this.Sr!=this.de)){a.clearRect(0,0,d,l);var c=d/2,l=l/2,d=0===this.Nf&&this.Mf.Pl.complete,u=40*f,r=0,t=80*f,p;if(d){var g=this.Mf.Pl,t=g.width*f;p=g.height*f;u=t/2;r=p/2;a.drawImage(g,C(c-u),C(l-r),t,p)}1>=this.Nf?(c=C(c-u)+.5,l=C(l+(r+(d?12*f:0)))+.5,a.fillStyle=b?"red":"DodgerBlue",a.fillRect(c,l,Math.floor(t*this.de),6*f),a.strokeStyle="black",a.strokeRect(c,l,t,6*f),a.strokeStyle=
"white",a.strokeRect(c-1*f,l-1*f,t+2*f,8*f)):2===this.Nf&&(a.font=this.Xd?"12pt ArialMT":"12pt Arial",a.fillStyle=b?"#f00":"#999",a.iC="middle",f=Math.round(100*this.de)+"%",d=a.measureText?a.measureText(f):null,a.fillText(f,c-(d?d.width:0)/2,l));this.Sr=this.de}else if(4===this.Nf){this.Gx(a);e?e(function(){h.go()}):setTimeout(function(){h.go()},16);return}}setTimeout(function(){h.go()},this.zd?10:100)}}};var D=-1,x="undefined"===typeof cr_is_preview?200:0,r=!0,f=!1,l=0,O=0,y="undefined"===typeof cr_is_preview?
3E3:0,u=null,A=null,M=0;d.prototype.Gx=function(a){if(!m){for(var c=Math.ceil(this.width),e=Math.ceil(this.height),h=this.Mf.Pl,d=this.Mf.Rz,t=this.Mf.HA,p=0;4>p;++p)if(!h[p].complete||!d[p].complete||!t[p].complete)return;0===M&&(D=Date.now());var p=Date.now(),g=!1,k=a,n,v;r||f?(a.clearRect(0,0,c,e),u&&u.width===c&&u.height===e||(u=document.createElement("canvas"),u.width=c,u.height=e,A=u.getContext("2d")),k=A,g=!0,r&&1===M&&(D=Date.now())):a.globalAlpha=1;k.fillStyle="#333333";k.fillRect(0,0,c,
e);256<this.Ei?(n=Ga(.22*e,105,.6*c),v=.25*n,k.drawImage(q(d,n),.5*c-n/2,.2*e-v/2,n,v),v=n=Math.min(.395*e,.95*c),k.drawImage(q(h,n),.5*c-n/2,.485*e-v/2,n,v),n=Ga(.22*e,105,.6*c),v=.25*n,k.drawImage(q(t,n),.5*c-n/2,.868*e-v/2,n,v),k.fillStyle="#3C3C3C",n=c,v=Math.max(.005*e,2),k.fillRect(0,.8*e-v/2,n,v),k.fillStyle=b?"red":"#E0FF65",n=c*this.de,k.fillRect(.5*c-n/2,.8*e-v/2,n,v)):(v=n=.55*e,k.drawImage(q(h,n),.5*c-n/2,.45*e-v/2,n,v),k.fillStyle="#3C3C3C",n=c,v=Math.max(.005*e,2),k.fillRect(0,.85*e-
v/2,n,v),k.fillStyle=b?"red":"#E0FF65",n=c*this.de,k.fillRect(.5*c-n/2,.85*e-v/2,n,v));g&&(r?a.globalAlpha=0===M?0:Math.min((p-D)/300,1):f&&(a.globalAlpha=Math.max(1-(p-O)/300,0)),a.drawImage(u,0,0,c,e));r&&300<=p-D&&2<=M&&(r=!1,l=p);!r&&p-l>=y&&!f&&1<=this.de&&(f=!0,O=p);if(f&&p-O>=300+x||"undefined"!==typeof cr_is_preview&&1<=this.de&&500>Date.now()-D)m=!0,f=r=!1,this.Mf=A=u=null;++M}};d.prototype.dz=function(){this.Vb&&(this.canvas.parentNode.removeChild(this.Vb),this.Vb=this.fp=null);this.Im=
Date.now();this.Kg=Wa();var b,a,f;if(this.Sp)for(b=0,a=this.M.length;b<a;b++)f=this.M[b],f.T||f.ro||!f.La.Kf||f.P();else this.kj=!1;b=0;for(a=this.Zd.length;b<a;b++)this.Zd[b].Xw();2<=this.qc&&(b=this.qb/this.pb,a=this.width/this.height,this.wi=2!==this.qc&&a>b||2===this.qc&&a<b?this.height/this.pb:this.width/this.qb);this.hr?this.Do[this.hr].Bp():this.Zd[0].Bp();this.Sp||(this.Lh=1,this.trigger(U.prototype.k.oq,null),window.C2_RegisterSW&&window.C2_RegisterSW());navigator.splashscreen&&navigator.splashscreen.hide&&
navigator.splashscreen.hide();b=0;for(a=this.M.length;b<a;b++)f=this.M[b],f.Fz&&f.Fz();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.Pa(!1);this.Tb&&AppMobi.webview.execute("onGameReady();")};d.prototype.Pa=function(b,a,f){if(this.xa){var c=Wa();if(f||!this.fj||b){b||(e?this.lp=e(this.Jt):this.Jp=setTimeout(this.Jt,this.Cg?1:16));a=a||c;var h=this.qc;((f=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&
!this.Vc)||this.ej)&&0<this.rg&&(h=this.rg);if(0<h){var h=window.innerWidth,d=window.innerHeight;this.Ih===h&&this.Hh===d||this.setSize(h,d)}this.Ya||(f?(this.il||(this.Qn=jQuery(this.canvas).css("margin")||"0",this.il=!0),this.Zi||this.Jf||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.il?(this.Zi||this.Jf||jQuery(this.canvas).css("margin",this.Qn),
this.Qn="",this.il=!1,0===this.qc&&this.setSize(Math.round(this.Es/this.devicePixelRatio),Math.round(this.Ds/this.devicePixelRatio),!0)):(this.Es=this.width,this.Ds=this.height));this.kj&&(f=this.Iq(),this.Lh=this.de,f&&(this.kj=!1,this.de=1,this.trigger(U.prototype.k.oq,null),window.C2_RegisterSW&&window.C2_RegisterSW()));this.zz(a);!this.za&&!this.zd||this.wo||this.gk||b||(this.za=!1,this.K?this.Bc():this.Ne(),this.ek&&(this.canvas&&this.canvas.toDataURL&&(this.Ct=this.canvas.toDataURL(this.ek[0],
this.ek[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.Ct),this.trigger(U.prototype.k.bv,null)),this.ek=null));this.VB||(this.$g++,this.Ki++,this.nl++);this.yj+=Wa()-c}}};d.prototype.zz=function(b){var a,f,c,e,h,d,l,m;1E3<=b-this.Kg&&(this.Kg+=1E3,1E3<=b-this.Kg&&(this.Kg=b),this.On=this.nl,this.nl=0,this.An=this.yj,this.yj=0);a=0;0!==this.Dl&&(a=b-this.Dl,0>a&&(a=0),this.lg=a/=1E3,.5<this.lg?this.lg=0:this.lg>1/this.us&&(this.lg=1/this.us));this.Dl=b;this.kg=this.lg*this.ah;this.mb.add(this.kg);
this.qf.add(a);b=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.ej)&&!this.Vc;2<=this.qc||b&&0<this.rg?(a=this.qb/this.pb,f=this.width/this.height,c=this.qc,b&&0<this.rg&&(c=this.rg),this.wi=2!==c&&f>a||2===c&&f<a?this.height/this.pb:this.width/this.qb,this.xa&&(this.xa.wm(this.xa.scrollX),this.xa.xm(this.xa.scrollY))):this.wi=this.Fg?this.devicePixelRatio:1;this.Zb();this.Yd++;this.Be.eA();this.Yd--;this.Zb();this.Yd++;f=this.Cs.pf();
b=0;for(a=f.length;b<a;b++)f[b].eC();b=0;for(a=this.M.length;b<a;b++)if(d=this.M[b],!d.T&&(d.$a.length||d.Xa.length))for(f=0,c=d.j.length;f<c;f++)for(l=d.j[f],e=0,h=l.Y.length;e<h;e++)l.Y[e].Pa();b=0;for(a=this.M.length;b<a;b++)if(d=this.M[b],!d.T&&(d.$a.length||d.Xa.length))for(f=0,c=d.j.length;f<c;f++)for(l=d.j[f],e=0,h=l.Y.length;e<h;e++)m=l.Y[e],m.Ys&&m.Ys();f=this.To.pf();b=0;for(a=f.length;b<a;b++)f[b].Pa();this.Yd--;this.fz();for(b=0;this.Ai&&10>b++;)this.Yq(this.Ai);b=0;for(a=this.Pe.length;b<
a;b++)this.Pe[b].fo=!1;this.xa.ng&&this.xa.ng.sb();P(this.Vj);this.Co=!1;this.Yd++;b=0;for(a=this.M.length;b<a;b++)if(d=this.M[b],!d.T&&(d.$a.length||d.Xa.length))for(f=0,c=d.j.length;f<c;f++)for(l=d.j[f],e=0,h=l.Y.length;e<h;e++)m=l.Y[e],m.lk&&m.lk();f=this.Uo.pf();b=0;for(a=f.length;b<a;b++)f[b].lk();this.Yd--};d.prototype.Rf=function(){var b,a,f,c,e,h,d,l,m;b=0;for(a=this.M.length;b<a;b++)if(d=this.M[b],!d.T)for(f=0,c=d.j.length;f<c;f++)if(l=d.j[f],l.Rf&&l.Rf(),l.Y)for(e=0,h=l.Y.length;e<h;e++)m=
l.Y[e],m.Rf&&m.Rf()};d.prototype.Yq=function(b){var a=this.xa;this.xa.xA();var f,c,e;if(this.K)for(f=0,c=this.M.length;f<c;f++)e=this.M[f],e.T||!e.Ym||e.global&&0!==e.j.length||-1!==b.Xi.indexOf(e)||e.Ym();a==b&&P(this.Be.ad);P(this.Vj);this.ht(!0);b.Bp();this.ht(!1);this.Co=this.za=!0;this.Zb()};d.prototype.ht=function(b){var a,f,c,e,h,d,l,m,u;a=0;for(f=this.$a.length;a<f;a++)c=this.$a[a],b?c.Fj&&c.Fj():c.Jj&&c.Jj();a=0;for(f=this.M.length;a<f;a++)if(c=this.M[a],c.global||c.La.Hm)for(e=0,h=c.j.length;e<
h;e++)if(d=c.j[e],b?d.Fj&&d.Fj():d.Jj&&d.Jj(),d.Y)for(l=0,m=d.Y.length;l<m;l++)u=d.Y[l],b?u.Fj&&u.Fj():u.Jj&&u.Jj()};d.prototype.mk=function(b){this.To.add(b)};d.prototype.zA=function(b){this.Uo.add(b)};d.prototype.tg=function(b){return b&&-1!==b.Dj?this.lg*b.Dj:this.kg};d.prototype.Ne=function(){this.xa.Ne(this.Ta);this.Tb&&this.Ta.present()};d.prototype.Bc=function(){this.Ka&&(this.mg=1,this.xa.Ef(this.K));this.xa.Bc(this.K);this.K.Uz()};d.prototype.Ck=function(b){b&&this.Zk.push(b)};d.prototype.gt=
function(b){Fa(this.Zk,b)};d.prototype.ug=function(b){b=b.toString();return this.Ze.hasOwnProperty(b)?this.Ze[b]:null};var Z=[];d.prototype.Fe=function(b){var a,f;a=b.type.name;var c=null;if(this.jg.hasOwnProperty(a)){if(c=this.jg[a],c.contains(b))return}else c=Z.length?Z.pop():new fa,this.jg[a]=c;c.add(b);this.If=!0;if(b.Fc)for(a=0,f=b.siblings.length;a<f;a++)this.Fe(b.siblings[a]);this.qo&&c.mi.push(b);this.po||(this.Yd++,this.trigger(Object.getPrototypeOf(b.type.La).k.gv,b),this.Yd--)};d.prototype.Zb=
function(){if(this.If){var b,a,f,c,e,h;this.qo=!0;f=0;for(e=this.Td.length;f<e;++f)for(b=this.Td[f],a=b.type,a.j.push(b),c=0,h=a.Xa.length;c<h;++c)a.Xa[c].j.push(b),a.Xa[c].gi=!0;P(this.Td);this.Wu();Va(this.jg);this.If=this.qo=!1}};d.prototype.Wu=function(){for(var b in this.jg)this.jg.hasOwnProperty(b)&&this.mu(this.jg[b])};d.prototype.mu=function(b){var a=b.pf(),f=a[0].type,c,e,h,d,l,m;Xa(f.j,b);f.gi=!0;0===f.j.length&&(f.Fk=!1);c=0;for(e=f.Xa.length;c<e;++c)m=f.Xa[c],Xa(m.j,b),m.gi=!0;c=0;for(e=
this.Be.ad.length;c<e;++c)if(l=this.Be.ad[c],l.$c.hasOwnProperty(f.index)&&Xa(l.$c[f.index].Bg,b),!f.T)for(h=0,d=f.Xa.length;h<d;++h)m=f.Xa[h],l.$c.hasOwnProperty(m.index)&&Xa(l.$c[m.index].Bg,b);if(l=a[0].u){if(l.sd)for(h=l.j,c=0,e=h.length;c<e;++c)d=h[c],b.contains(d)&&(d.Na(),l.Xb.update(d,d.Nc,null),d.Nc.set(0,0,-1,-1));Xa(l.j,b);l.Zj(0)}for(c=0;c<a.length;++c)this.lu(a[c],f);b.clear();Z.push(b);this.za=!0};d.prototype.lu=function(b,a){var f,c,e;f=0;for(c=this.Zk.length;f<c;++f)this.Zk[f](b);
b.Bf&&a.Ok.update(b,b.Bf,null);(f=b.u)&&f.$h(b,!0);if(b.Y)for(f=0,c=b.Y.length;f<c;++f)e=b.Y[f],e.Sg&&e.Sg(),e.behavior.Tl.remove(b);this.Cs.remove(b);this.To.remove(b);this.Uo.remove(b);b.Sg&&b.Sg();this.Ze.hasOwnProperty(b.uid.toString())&&delete this.Ze[b.uid.toString()];this.Wl--;100>a.Wk.length&&a.Wk.push(b)};d.prototype.Tq=function(b,a,f,c){if(b.T){var e=C(Math.random()*b.Oh.length);return this.Tq(b.Oh[e],a,f,c)}return b.wd?this.Cf(b.wd,a,!1,f,c,!1):null};var B=[];d.prototype.Cf=function(b,
a,f,c,e,h){var d,l,m,u;if(!b)return null;var r=this.M[b[1]],t=r.La.Kf;if(this.kj&&t&&!r.ro||t&&!this.K&&11===b[0][11])return null;var p=a;t||(a=null);var g;r.Wk.length?(g=r.Wk.pop(),g.nd=!0,r.La.S.call(g,r)):(g=new r.La.S(r),g.nd=!1);!f||h||this.Ze.hasOwnProperty(b[2].toString())?g.uid=this.Ej++:g.uid=b[2];this.Ze[g.uid.toString()]=g;g.bt=this.ys++;g.yg=r.j.length;d=0;for(l=this.Td.length;d<l;++d)this.Td[d].type===r&&g.yg++;g.Ri=Fb;g.toString=Gb;m=b[3];if(g.nd)Va(g.O);else{g.O={};if("undefined"!==
typeof cr_is_preview)for(g.Cr=[],g.Cr.length=m.length,d=0,l=m.length;d<l;d++)g.Cr[d]=m[d][1];g.Db=[];g.Db.length=m.length}d=0;for(l=m.length;d<l;d++)g.Db[d]=m[d][0];if(t){var A=b[0];g.x=ja(c)?A[0]:c;g.y=ja(e)?A[1]:e;g.z=A[2];g.width=A[3];g.height=A[4];g.depth=A[5];g.n=A[6];g.opacity=A[7];g.Dc=A[8];g.Ec=A[9];g.$b=A[10];d=A[11];!this.K&&r.ca.length&&(g.$b=d);g.Bi=jb(g.$b);this.N&&kb(g,g.$b,this.N);if(g.nd){d=0;for(l=A[12].length;d<l;d++)for(m=0,u=A[12][d].length;m<u;m++)g.ab[d][m]=A[12][d][m];g.Wa.set(0,
0,0,0);g.Bf.set(0,0,-1,-1);g.Nc.set(0,0,-1,-1);g.cd.$j(g.Wa);P(g.rn)}else{g.ab=A[12].slice(0);d=0;for(l=g.ab.length;d<l;d++)g.ab[d]=A[12][d].slice(0);g.Aa=[];g.tf=[];g.tf.length=r.ca.length;g.Wa=new va(0,0,0,0);g.Bf=new va(0,0,-1,-1);g.Nc=new va(0,0,-1,-1);g.cd=new wa;g.rn=[];g.J=Lb;g.RB=Mb;g.pc=Nb;g.Na=Ob;g.BA=Pb;g.bu=Qb;g.qe=Rb}g.nk=!1;g.Nt=0;g.Mt=0;g.Lt=null;14===A.length&&(g.nk=!0,g.Nt=A[13][0],g.Mt=A[13][1],g.Lt=A[13][2]);d=0;for(l=r.ca.length;d<l;d++)g.tf[d]=!0;g.gf=!0;g.ie=Sb;g.ie();g.cu=!!g.Aa.length;
g.qn=!0;g.wn=!0;r.Ek=!0;g.visible=!0;g.Dj=-1;g.u=a;g.ke=a.j.length;g.mg=0;"undefined"===typeof g.Ca&&(g.Ca=null);this.za=g.Ie=!0}var k;P(B);d=0;for(l=r.Xa.length;d<l;d++)B.push.apply(B,r.Xa[d].$a);B.push.apply(B,r.$a);if(g.nd)for(d=0,l=B.length;d<l;d++){var x=B[d];k=g.Y[d];k.nd=!0;x.behavior.S.call(k,x,g);A=b[4][d];m=0;for(u=A.length;m<u;m++)k.C[m]=A[m];k.P();x.behavior.Tl.add(g)}else for(g.Y=[],d=0,l=B.length;d<l;d++)x=B[d],k=new x.behavior.S(x,g),k.nd=!1,k.C=b[4][d].slice(0),k.P(),g.Y.push(k),x.behavior.Tl.add(g);
A=b[5];if(g.nd)for(d=0,l=A.length;d<l;d++)g.C[d]=A[d];else g.C=A.slice(0);this.Td.push(g);this.If=!0;a&&(a.vi(g,!0),1!==a.Jc||1!==a.Kc)&&(r.Fk=!0);this.Wl++;if(r.Fc){if(g.Fc=!0,g.nd?P(g.siblings):g.siblings=[],!f&&!h){d=0;for(l=r.Tc.length;d<l;d++)if(r.Tc[d]!==r){if(!r.Tc[d].wd)return null;g.siblings.push(this.Cf(r.Tc[d].wd,p,!1,t?g.x:c,t?g.y:e,!0))}d=0;for(l=g.siblings.length;d<l;d++)for(g.siblings[d].siblings.push(g),m=0;m<l;m++)d!==m&&g.siblings[d].siblings.push(g.siblings[m])}}else g.Fc=!1,g.siblings=
null;g.P();d=0;for(l=g.Y.length;d<l;d++)g.Y[d].Qz&&g.Y[d].Qz();return g};d.prototype.Pi=function(b){var a,f;a=0;for(f=this.xa.ka.length;a<f;a++){var c=this.xa.ka[a];if(mb(c.name,b))return c}return null};d.prototype.Se=function(b){b=C(b);0>b&&(b=0);b>=this.xa.ka.length&&(b=this.xa.ka.length-1);return this.xa.ka[b]};d.prototype.yn=function(b){var a,f;a=0;for(f=b.length;a<f;a++)b[a].la().ta=!0};d.prototype.Rj=function(b){var a,f;a=0;for(f=b.length;a<f;a++)b[a].Rj()};d.prototype.Yh=function(b){var a,
f;a=0;for(f=b.length;a<f;a++)b[a].Yh()};d.prototype.df=function(b){var a,f;a=0;for(f=b.length;a<f;a++)b[a].df()};d.prototype.Yt=function(b){if(b.Ek){var a,f,c=b.j;a=0;for(f=c.length;a<f;++a)c[a].bu();c=this.Td;a=0;for(f=c.length;a<f;++a)c[a].type===b&&c[a].bu();b.Ek=!1}};d.prototype.Vn=function(b,a,f,c){var e,d,h=b?1!==b.Jc||1!==b.Kc:!1;if(a.T)for(b=0,e=a.Oh.length;b<e;++b)d=a.Oh[b],h||d.Fk?Da(c,d.j):(this.Yt(d),d.Ok.qm(f,c));else h||a.Fk?Da(c,a.j):(this.Yt(a),a.Ok.qm(f,c))};d.prototype.qr=function(b,
a,f,c){var e,d;e=0;for(d=a.length;e<d;++e)this.Vn(b,a[e],f,c)};d.prototype.Oy=function(b,a,f){var c=this.Dt;c&&this.qr(b,c.Ul,a,f)};d.prototype.Hy=function(b,a,f){var c=this.Or;c&&this.qr(b,c.Ul,a,f)};d.prototype.ik=function(b,a,f){var c=b.la(),e,d,h,l,m=this.kb().Ib.md,u,g,r;if(c.ta)for(c.ta=!1,P(c.j),e=0,l=b.j.length;e<l;e++)h=b.j[e],h.Na(),u=h.u.xb(a,f,!0),g=h.u.xb(a,f,!1),h.pc(u,g)?c.j.push(h):m&&c.da.push(h);else{d=0;r=m?c.da:c.j;e=0;for(l=r.length;e<l;e++)h=r[e],h.Na(),u=h.u.xb(a,f,!0),g=h.u.xb(a,
f,!1),h.pc(u,g)&&(m?c.j.push(h):(c.j[d]=c.j[e],d++));r.length=d}b.ud();return c.eo()};d.prototype.ic=function(b,a){if(!(b&&a&&b!==a&&b.Ie&&a.Ie))return!1;b.Na();a.Na();var f=b.u,c=a.u,e,d,h,l,m,u,g,r;if(f===c||f.Jc===c.Jc&&c.Kc===c.Kc&&f.scale===c.scale&&f.n===c.n&&f.nc===c.nc){if(!b.Wa.lz(a.Wa)||!b.cd.Dr(a.cd)||b.nk&&a.nk)return!1;if(b.nk)return this.Ht(b,a);if(a.nk)return this.Ht(a,b);g=b.Ca&&!b.Ca.yh();e=a.Ca&&!a.Ca.yh();if(!g&&!e)return!0;g?(b.Ca.fg(b.width,b.height,b.n),g=b.Ca):(this.fe.di(b.cd,
b.x,b.y,b.width,b.height),g=this.fe);e?(a.Ca.fg(a.width,a.height,a.n),r=a.Ca):(this.fe.di(a.cd,a.x,a.y,a.width,a.height),r=this.fe);return g.Yi(r,a.x-b.x,a.y-b.y)}g=b.Ca&&!b.Ca.yh();e=a.Ca&&!a.Ca.yh();g?(b.Ca.fg(b.width,b.height,b.n),this.fe.ut(b.Ca)):this.fe.di(b.cd,b.x,b.y,b.width,b.height);g=this.fe;e?(a.Ca.fg(a.width,a.height,a.n),this.Dp.ut(a.Ca)):this.Dp.di(a.cd,a.x,a.y,a.width,a.height);r=this.Dp;e=0;for(d=g.Yc;e<d;e++)h=2*e,l=h+1,m=g.Ma[h],u=g.Ma[l],g.Ma[h]=f.rc(m+b.x,u+b.y,!0),g.Ma[l]=f.rc(m+
b.x,u+b.y,!1);g.Na();e=0;for(d=r.Yc;e<d;e++)h=2*e,l=h+1,m=r.Ma[h],u=r.Ma[l],r.Ma[h]=c.rc(m+a.x,u+a.y,!0),r.Ma[l]=c.rc(m+a.x,u+a.y,!1);r.Na();return g.Yi(r,0,0)};var J=new wa;new va(0,0,0,0);var F=[];d.prototype.Ht=function(b,a){var f,c,e,d,h=a.Wa,l=b.x,m=b.y;b.Cy(h,F);var u=a.Ca&&!a.Ca.yh();f=0;for(c=F.length;f<c;++f)if(e=F[f],d=e.Fa,h.mz(d,l,m)&&(J.$j(d),J.offset(l,m),J.Dr(a.cd)))if(u)if(a.Ca.fg(a.width,a.height,a.n),e.cf){if(e.cf.Yi(a.Ca,a.x-(l+d.left),a.y-(m+d.top)))return P(F),!0}else{if(this.fe.di(J,
0,0,d.right-d.left,d.bottom-d.top),this.fe.Yi(a.Ca,a.x,a.y))return P(F),!0}else if(e.cf){if(this.fe.di(a.cd,0,0,a.width,a.height),e.cf.Yi(this.fe,-(l+d.left),-(m+d.top)))return P(F),!0}else return P(F),!0;P(F);return!1};d.prototype.Ut=function(b,a){if(!a)return!1;var f,c,e,d,h;f=0;for(c=b.$a.length;f<c;f++)if(b.$a[f].behavior instanceof a)return!0;if(!b.T)for(f=0,c=b.Xa.length;f<c;f++)for(h=b.Xa[f],e=0,d=h.$a.length;e<d;e++)if(h.$a[e].behavior instanceof a)return!0;return!1};d.prototype.Np=function(b){return this.Ut(b,
jc.eB)};d.prototype.Op=function(b){return this.Ut(b,jc.gB)};var T=[];d.prototype.Pb=function(b){var a,f,c;b.Na();this.Oy(b.u,b.Wa,T);a=0;for(f=T.length;a<f;++a)if(c=T[a],c.O.solidEnabled&&this.ic(b,c))return P(T),c;P(T);return null};var R=[];d.prototype.kf=function(b,a){var f=null;a&&(f=R,P(f));b.Na();this.Hy(b.u,b.Wa,T);var c,e,d;c=0;for(e=T.length;c<e;++c)if(d=T[c],d.O.jumpthruEnabled&&this.ic(b,d))if(a)f.push(d);else return P(T),d;P(T);return f};d.prototype.Fd=function(b,a,f,c,e,d){c=c||50;var h=
b.x,l=b.y,m,u=null,g=null;for(m=0;m<c;m++)if(b.x=h+a*m,b.y=l+f*m,b.J(),!this.ic(b,u)&&((u=this.Pb(b))&&(g=u),!u&&(e&&(d?u=this.ic(b,d)?d:null:u=this.kf(b),u&&(g=u)),!u)))return g&&this.kp(b,a,f,g),!0;b.x=h;b.y=l;b.J();return!1};d.prototype.kp=function(b,a,f,c){var e=2,d,h=!1;d=!1;for(var l=b.x,m=b.y;16>=e;)d=1/e,e*=2,b.x+=a*d*(h?1:-1),b.y+=f*d*(h?1:-1),b.J(),this.ic(b,c)?d=h=!0:(d=h=!1,l=b.x,m=b.y);d&&(b.x=l,b.y=m,b.J())};d.prototype.dt=function(b,a){var f=ja(a)?100:a,c=0,e=b.x,d=b.y,h=0,l=0,m=0,
u=this.Pb(b);if(!u)return!0;for(;c<=f;){switch(h){case 0:l=0;m=-1;c++;break;case 1:l=1;m=-1;break;case 2:l=1;m=0;break;case 3:m=l=1;break;case 4:l=0;m=1;break;case 5:l=-1;m=1;break;case 6:l=-1;m=0;break;case 7:m=l=-1}h=(h+1)%8;b.x=C(e+l*c);b.y=C(d+m*c);b.J();if(!this.ic(b,u)&&(u=this.Pb(b),!u))return!0}b.x=e;b.y=d;b.J();return!1};d.prototype.Zh=function(b,a){b.Ie&&a.Ie&&this.Vj.push([b,a])};d.prototype.Tw=function(b,a){var f,c,e;f=0;for(c=this.Vj.length;f<c;f++)if(e=this.Vj[f],e[0]==b&&e[1]==a||e[0]==
a&&e[1]==b)return!0;return!1};d.prototype.Rw=function(b,a,f){var c=b.x,e=b.y,d=qa(10,Sa(a,f,c,e)),h=Ma(a,f,c,e),l=this.Pb(b);if(!l)return Ja(h+sa);var m=l,u,g,r,t,p=Q(5);for(u=1;36>u;u++)if(g=h-u*p,b.x=a+Math.cos(g)*d,b.y=f+Math.sin(g)*d,b.J(),!this.ic(b,m)&&(m=this.Pb(b),!m)){r=g;break}36===u&&(r=Ja(h+sa));m=l;for(u=1;36>u;u++)if(g=h+u*p,b.x=a+Math.cos(g)*d,b.y=f+Math.sin(g)*d,b.J(),!this.ic(b,m)&&(m=this.Pb(b),!m)){t=g;break}36===u&&(t=Ja(h+sa));b.x=c;b.y=e;b.J();if(t===r)return t;b=Na(t,r)/2;b=
Qa(t,r)?Ja(r+b+sa):Ja(t+b);r=Math.cos(h);h=Math.sin(h);t=Math.cos(b);b=Math.sin(b);a=r*t+h*b;return Ma(0,0,r-2*a*t,h-2*a*b)};var W=-1;d.prototype.trigger=function(b,a,f){if(!this.xa)return!1;var c=this.xa.ng;if(!c)return!1;var e=!1,d,h,l;W++;var m=c.Gn;h=0;for(l=m.length;h<l;++h)d=this.Qt(b,a,m[h],f),e=e||d;d=this.Qt(b,a,c,f);W--;return e||d};d.prototype.Qt=function(b,a,f,c){var e=!1,d,h,l,m;if(a)for(l=this.Lp(b,a,a.type.name,f,c),e=e||l,m=a.type.Xa,d=0,h=m.length;d<h;++d)l=this.Lp(b,a,m[d].name,
f,c),e=e||l;else l=this.Lp(b,a,"system",f,c),e=e||l;return e};d.prototype.Lp=function(b,a,f,c,e){var d,h=!1,l=!1,l="undefined"!==typeof e,m=(l?c.cr:c.Rt)[f];if(!m)return h;var u=null;c=0;for(d=m.length;c<d;++c)if(m[c].method==b){u=m[c].Ji;break}if(!u)return h;var g;l?g=u[e]:g=u;if(!g)return null;c=0;for(d=g.length;c<d;c++)b=g[c][0],e=g[c][1],l=this.ry(a,f,b,e),h=h||l;return h};d.prototype.ry=function(b,a,f,c){var e,d,h=!1;this.Mp++;var l=this.kb().Ib;l&&this.Rj(l.Wf);var m=1<this.Mp;this.Rj(f.Wf);
m&&this.Wz();var u=this.pm(f);u.Ib=f;b&&(e=this.types[a].la(),e.ta=!1,P(e.j),e.j[0]=b,this.types[a].ud());b=!0;if(f.parent){a=u.Gt;for(e=f.parent;e;)a.push(e),e=e.parent;a.reverse();e=0;for(d=a.length;e<d;e++)if(!a[e].gA()){b=!1;break}}b&&(this.Ki++,f.md?f.fA(c):f.sb(),h=h||u.Jg);this.km();m&&this.Pz();this.df(f.Wf);l&&this.df(l.Wf);this.If&&0===this.Yd&&0===W&&!this.so&&this.Zb();this.Mp--;return h};d.prototype.sg=function(){var b=this.kb();return b.Ib.zb[b.ib]};d.prototype.pz=function(){return 0===
this.kb().ib};d.prototype.Wz=function(){this.Ol++;this.Ol>=this.Jo.length&&this.Jo.push([])};d.prototype.Pz=function(){this.Ol--};d.prototype.lr=function(){return this.Jo[this.Ol]};d.prototype.pm=function(b){this.al++;this.al>=this.Jn.length&&this.Jn.push(new Tb);var a=this.kb();a.reset(b);return a};d.prototype.km=function(){this.al--};d.prototype.kb=function(){return this.Jn[this.al]};d.prototype.ct=function(){this.Ql++;this.Ql>=this.Lo.length&&this.Lo.push(aa({name:void 0,index:0,wb:!1}));var b=
this.Dy();b.name=void 0;b.index=0;b.wb=!1;return b};d.prototype.Ws=function(){this.Ql--};d.prototype.Dy=function(){return this.Lo[this.Ql]};d.prototype.mr=function(b,a){for(var f,c,e,d,h,l;a;){f=0;for(c=a.Hd.length;f<c;f++)if(l=a.Hd[f],l instanceof Ub&&mb(b,l.name))return l;a=a.parent}f=0;for(c=this.Pe.length;f<c;f++)for(h=this.Pe[f],e=0,d=h.Ff.length;e<d;e++)if(l=h.Ff[e],l instanceof Ub&&mb(b,l.name))return l;return null};d.prototype.nr=function(b){var a,f;a=0;for(f=this.Zd.length;a<f;a++)if(this.Zd[a].ua===
b)return this.Zd[a];return null};d.prototype.rl=function(b){var a,f;a=0;for(f=this.M.length;a<f;a++)if(this.M[a].ua===b)return this.M[a];return null};d.prototype.Ey=function(b){var a,f;a=0;for(f=this.jh.length;a<f;a++)if(this.jh[a].ua===b)return this.jh[a];return null};d.prototype.gx=function(b,a){this.ek=[b,a];this.za=!0};d.prototype.fz=function(){var b=this,a=this.up,f=this.Ve,e=this.Il,d=!1;this.Bt&&(d=!0,a="__c2_continuouspreview",this.Bt=!1);if(a.length){this.Zb();f=this.kA();if(n()&&!this.zd)c(a,
f,function(){ha("Saved state to IndexedDB storage ("+f.length+" bytes)");b.Ve=f;b.trigger(U.prototype.k.hn,null);b.Ve="";d&&g()},function(c){try{localStorage.setItem("__c2save_"+a,f),ha("Saved state to WebStorage ("+f.length+" bytes)"),b.Ve=f,b.trigger(U.prototype.k.hn,null),b.Ve="",d&&g()}catch(e){ha("Failed to save game state: "+c+"; "+e),b.trigger(U.prototype.k.uq,null)}});else try{localStorage.setItem("__c2save_"+a,f),ha("Saved state to WebStorage ("+f.length+" bytes)"),b.Ve=f,this.trigger(U.prototype.k.hn,
null),b.Ve="",d&&g()}catch(h){ha("Error saving to WebStorage: "+h),b.trigger(U.prototype.k.uq,null)}this.ec=this.Il=this.up=""}if(e.length){if(n()&&!this.zd)p(e,function(a){a?(b.ec=a,ha("Loaded state from IndexedDB storage ("+b.ec.length+" bytes)")):(b.ec=localStorage.getItem("__c2save_"+e)||"",ha("Loaded state from WebStorage ("+b.ec.length+" bytes)"));b.gk=!1;b.ec.length||b.trigger(U.prototype.k.gn,null)},function(){b.ec=localStorage.getItem("__c2save_"+e)||"";ha("Loaded state from WebStorage ("+
b.ec.length+" bytes)");b.gk=!1;b.ec.length||b.trigger(U.prototype.k.gn,null)});else{try{this.ec=localStorage.getItem("__c2save_"+e)||"",ha("Loaded state from WebStorage ("+this.ec.length+" bytes)")}catch(l){this.ec=""}this.gk=!1;b.ec.length||b.trigger(U.prototype.k.gn,null)}this.up=this.Il=""}this.ec.length&&(this.Zb(),this.yz(this.ec),this.Ve=this.ec,this.trigger(U.prototype.k.uv,null),this.ec=this.Ve="")};d.prototype.kA=function(){var b,f,c,e,d,h,l,m={c2save:!0,version:1,rt:{time:this.mb.qa,walltime:this.qf.qa,
timescale:this.ah,tickcount:this.$g,execcount:this.Ki,next_uid:this.Ej,running_layout:this.xa.ua,start_time_offset:Date.now()-this.Im},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};b=0;for(f=this.M.length;b<f;b++)if(d=this.M[b],!d.T&&!this.Np(d)){h={instances:[]};Ua(d.O)&&(h.ex=a(d.O));c=0;for(e=d.j.length;c<e;c++)h.instances.push(this.tp(d.j[c]));m.types[d.ua.toString()]=h}b=0;for(f=this.Zd.length;b<f;b++)c=this.Zd[b],m.layouts[c.ua.toString()]=c.tb();e=m.events.groups;b=0;for(f=
this.jh.length;b<f;b++)c=this.jh[b],e[c.ua.toString()]=this.Ti[c.Si].uh;f=m.events.cnds;for(l in this.Af)this.Af.hasOwnProperty(l)&&(b=this.Af[l],Ua(b.O)&&(f[l]={ex:a(b.O)}));f=m.events.acts;for(l in this.uf)this.uf.hasOwnProperty(l)&&(b=this.uf[l],Ua(b.O)&&(f[l]={ex:a(b.O)}));f=m.events.vars;for(l in this.ni)this.ni.hasOwnProperty(l)&&(b=this.ni[l],b.Bl||b.parent&&!b.jj||(f[l]=b.data));m.system=this.Be.tb();return JSON.stringify(m)};d.prototype.et=function(){var b,a,f,c,e,d;this.Ze={};b=0;for(a=
this.M.length;b<a;b++)if(f=this.M[b],!f.T)for(c=0,e=f.j.length;c<e;c++)d=f.j[c],this.Ze[d.uid.toString()]=d};d.prototype.yz=function(b){b=JSON.parse(b);if(b.c2save&&!(1<b.version)){this.bj=!0;var a=b.rt;this.mb.reset();this.mb.qa=a.time;this.qf.reset();this.qf.qa=a.walltime||0;this.ah=a.timescale;this.$g=a.tickcount;this.Ki=a.execcount;this.Im=Date.now()-a.start_time_offset;var f=a.running_layout;if(f!==this.xa.ua)if(f=this.nr(f))this.Yq(f);else return;var c,e,d,h,l,m,u;m=b.types;for(e in m)if(m.hasOwnProperty(e)&&
(h=this.rl(parseInt(e,10)))&&!h.T&&!this.Np(h)){m[e].ex?h.O=m[e].ex:Va(h.O);l=h.j;d=m[e].instances;f=0;for(c=ra(l.length,d.length);f<c;f++)this.Jl(l[f],d[f]);f=d.length;for(c=l.length;f<c;f++)this.Fe(l[f]);f=l.length;for(c=d.length;f<c;f++){l=null;if(h.La.Kf&&(l=this.xa.ql(d[f].w.l),!l))continue;l=this.Cf(h.wd,l,!1,0,0,!0);this.Jl(l,d[f])}h.gi=!0}this.Zb();this.et();c=b.layouts;for(e in c)c.hasOwnProperty(e)&&(f=this.nr(parseInt(e,10)))&&f.Mb(c[e]);c=b.events.groups;for(e in c)c.hasOwnProperty(e)&&
(f=this.Ey(parseInt(e,10)))&&this.Ti[f.Si]&&this.Ti[f.Si].mA(c[e]);f=b.events.cnds;for(e in this.Af)this.Af.hasOwnProperty(e)&&(f.hasOwnProperty(e)?this.Af[e].O=f[e].ex:this.Af[e].O={});f=b.events.acts;for(e in this.uf)this.uf.hasOwnProperty(e)&&(f.hasOwnProperty(e)?this.uf[e].O=f[e].ex:this.uf[e].O={});f=b.events.vars;for(e in f)f.hasOwnProperty(e)&&this.ni.hasOwnProperty(e)&&(this.ni[e].data=f[e]);this.Ej=a.next_uid;this.bj=!1;f=0;for(c=this.hl.length;f<c;++f)l=this.hl[f],this.trigger(Object.getPrototypeOf(l.type.La).k.yk,
l);P(this.hl);this.Be.Mb(b.system);f=0;for(c=this.M.length;f<c;f++)if(h=this.M[f],!h.T&&!this.Np(h))for(e=0,b=h.j.length;e<b;e++){l=h.j[e];if(h.Fc)for(m=l.Ri(),P(l.siblings),a=0,d=h.Tc.length;a<d;a++)u=h.Tc[a],h!==u&&l.siblings.push(u.j[m]);l.Nd&&l.Nd();if(l.Y)for(a=0,d=l.Y.length;a<d;a++)m=l.Y[a],m.Nd&&m.Nd()}this.za=!0}};d.prototype.tp=function(b,f){var c,e,d,h,l;h=b.type;d=h.La;var m={};f?m.c2=!0:m.uid=b.uid;Ua(b.O)&&(m.ex=a(b.O));if(b.Db&&b.Db.length)for(m.ivs={},c=0,e=b.Db.length;c<e;c++)m.ivs[b.type.no[c].toString()]=
b.Db[c];if(d.Kf){d={x:b.x,y:b.y,w:b.width,h:b.height,l:b.u.ua,zi:b.qe()};0!==b.n&&(d.a=b.n);1!==b.opacity&&(d.o=b.opacity);.5!==b.Dc&&(d.hX=b.Dc);.5!==b.Ec&&(d.hY=b.Ec);0!==b.$b&&(d.bm=b.$b);b.visible||(d.v=b.visible);b.Ie||(d.ce=b.Ie);-1!==b.Dj&&(d.mts=b.Dj);if(h.ca.length)for(d.fx=[],c=0,e=h.ca.length;c<e;c++)l=h.ca[c],d.fx.push({name:l.name,active:b.tf[l.index],params:b.ab[l.index]});m.w=d}if(b.Y&&b.Y.length)for(m.behs={},c=0,e=b.Y.length;c<e;c++)h=b.Y[c],h.tb&&(m.behs[h.type.ua.toString()]=h.tb());
b.tb&&(m.data=b.tb());return m};d.prototype.Gy=function(b,a){var f,c;f=0;for(c=b.no.length;f<c;f++)if(b.no[f]===a)return f;return-1};d.prototype.By=function(b,a){var f,c;f=0;for(c=b.Y.length;f<c;f++)if(b.Y[f].type.ua===a)return f;return-1};d.prototype.Jl=function(b,a,f){var c,e,d,h,l;l=b.type;h=l.La;if(f){if(!a.c2)return}else b.uid=a.uid;a.ex?b.O=a.ex:Va(b.O);if(e=a.ivs)for(c in e)e.hasOwnProperty(c)&&(d=this.Gy(l,parseInt(c,10)),0>d||d>=b.Db.length||(b.Db[d]=e[c]));if(h.Kf){d=a.w;b.u.ua!==d.l&&(e=
b.u,b.u=this.xa.ql(d.l),b.u?(e.$h(b,!0),b.u.vi(b,!0),b.J(),b.u.Zj(0)):(b.u=e,f||this.Fe(b)));b.x=d.x;b.y=d.y;b.width=d.w;b.height=d.h;b.ke=d.zi;b.n=d.hasOwnProperty("a")?d.a:0;b.opacity=d.hasOwnProperty("o")?d.o:1;b.Dc=d.hasOwnProperty("hX")?d.hX:.5;b.Ec=d.hasOwnProperty("hY")?d.hY:.5;b.visible=d.hasOwnProperty("v")?d.v:!0;b.Ie=d.hasOwnProperty("ce")?d.ce:!0;b.Dj=d.hasOwnProperty("mts")?d.mts:-1;b.$b=d.hasOwnProperty("bm")?d.bm:0;b.Bi=jb(b.$b);this.N&&kb(b,b.$b,this.N);b.J();if(d.hasOwnProperty("fx"))for(f=
0,e=d.fx.length;f<e;f++)h=l.Xn(d.fx[f].name),0>h||(b.tf[h]=d.fx[f].active,b.ab[h]=d.fx[f].params);b.ie()}if(l=a.behs)for(c in l)l.hasOwnProperty(c)&&(f=this.By(b,parseInt(c,10)),0>f||b.Y[f].Mb(l[c]));a.data&&b.Mb(a.data)};d.prototype.dr=function(b,a,f){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+"www/"+b,function(b){b.file(a,f)},f)};d.prototype.fr=function(b,a){this.dr("data.js",function(f){var c=new FileReader;c.onload=function(a){b(a.target.result)};c.onerror=a;c.readAsText(f)},
a)};var S=[],V=0;d.prototype.Po=function(){if(S.length&&!(8<=V)){V++;var b=S.shift();this.kx(b.filename,b.yA,b.Mx)}};d.prototype.er=function(b,a,f){var c=this;S.push({filename:b,yA:function(b){V--;c.Po();a(b)},Mx:function(b){V--;c.Po();f(b)}});this.Po()};d.prototype.kx=function(b,a,f){this.dr(b,function(b){var f=new FileReader;f.onload=function(b){a(b.target.result)};f.readAsArrayBuffer(b)},f)};d.prototype.ty=function(b,a,f){this.er(b,function(b){b=URL.createObjectURL(new Blob([b]));a(b)},f)};d.prototype.nz=
function(b){return/^(?:[a-z]+:)?\/\//.test(b)||"data:"===b.substr(0,5)||"blob:"===b.substr(0,5)};d.prototype.ot=function(b,a){this.hj&&!this.nz(a)?this.ty(a,function(a){b.src=a},function(b){alert("Failed to load image: "+b)}):b.src=a};d.prototype.Am=function(b,a){"undefined"!==typeof b.imageSmoothingEnabled?b.imageSmoothingEnabled=a:(b.webkitImageSmoothingEnabled=a,b.mozImageSmoothingEnabled=a,b.msImageSmoothingEnabled=a)};Vb=function(b){return new d(document.getElementById(b))};Wb=function(b,a){return new d({dc:!0,
width:b,height:a})};window.cr_createRuntime=Vb;window.cr_createDCRuntime=Wb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var b=document.createElement("screencanvas")||document.createElement("canvas");b.xi=!0;document.body.appendChild(b);b=new d(b);window.c2runtime=b;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);return b};window.createEjectaRuntime=
function(){var b=new d(document.getElementById("canvas"));window.c2runtime=b;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return b}})();window.cr_getC2Runtime=function(){var d=document.getElementById("c2canvas");return d?d.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(d,q){var n=window.cr_getC2Runtime();n&&n.gx(d,q)};window.cr_sizeCanvas=function(d,q){if(0!==d&&0!==q){var n=window.cr_getC2Runtime();n&&n.setSize(d,q)}};
window.cr_setSuspended=function(d){var q=window.cr_getC2Runtime();q&&q.setSuspended(d)};
(function(){function d(b,a){this.b=b;this.ng=null;this.scrollX=this.b.qb/2;this.scrollY=this.b.pb/2;this.scale=1;this.n=0;this.rh=!0;this.name=a[0];this.Mz=a[1];this.Lz=a[2];this.width=a[1];this.height=a[2];this.Vt=a[3];this.yt=a[4];this.ua=a[5];var c=a[6],e,d;this.ka=[];this.Xi=[];e=0;for(d=c.length;e<d;e++){var g=new Xb(this,c[e]);g.As=e;this.ka.push(g)}c=a[7];this.Ag=[];e=0;for(d=c.length;e<d;e++){var g=c[e],r=this.b.M[g[1]];r.wd||(r.wd=g);this.Ag.push(g);-1===this.Xi.indexOf(r)&&this.Xi.push(r)}this.ca=
[];this.Aa=[];this.gf=!0;this.ab=[];e=0;for(d=a[8].length;e<d;e++)this.ca.push({id:a[8][e][0],name:a[8][e][1],ub:-1,Ed:!1,H:!0,index:e}),this.ab.push(a[8][e][2].slice(0));this.ie();this.Uj=new va(0,0,1,1);this.mp=new va(0,0,1,1);this.Sf={}}function q(b,a){return b.ke-a.ke}function n(b,a){this.nb=b;this.b=b.b;this.j=[];this.scale=1;this.n=0;this.Me=!1;this.nf=new va(0,0,0,0);this.Ot=new wa;this.Qa=this.Ja=this.Ra=this.Ia=0;this.eh=!1;this.rf=-1;this.zn=0;this.name=a[0];this.index=a[1];this.ua=a[2];
this.visible=a[3];this.Qd=a[4];this.he=a[5];this.Jc=a[6];this.Kc=a[7];this.opacity=a[8];this.ml=a[9];this.sd=a[10];this.nc=a[11];this.$b=a[12];this.Ix=a[13];this.Bi="source-over";this.cc=this.gc=0;this.Xb=null;this.We=k();this.ee=!0;this.Jh=new va(0,0,-1,-1);this.Qb=new va(0,0,-1,-1);this.sd&&(this.Xb=new ib(this.b.qb,this.b.pb));this.xe=!1;var c=a[14],e,d;this.Et=[];this.hd=[];this.Di=[];e=0;for(d=c.length;e<d;e++){var g=c[e],r=this.b.M[g[1]];r.wd||(r.wd=g,r.ax=this.index);this.hd.push(g);-1===this.nb.Xi.indexOf(r)&&
this.nb.Xi.push(r)}Ca(this.Et,this.hd);this.ca=[];this.Aa=[];this.gf=!0;this.ab=[];e=0;for(d=a[15].length;e<d;e++)this.ca.push({id:a[15][e][0],name:a[15][e][1],ub:-1,Ed:!1,H:!0,index:e}),this.ab.push(a[15][e][2].slice(0));this.ie();this.Uj=new va(0,0,1,1);this.mp=new va(0,0,1,1)}function k(){return a.length?a.pop():[]}function c(b){P(b);a.push(b)}d.prototype.jA=function(b){var a=b.type.ua.toString();this.Sf.hasOwnProperty(a)||(this.Sf[a]=[]);this.Sf[a].push(this.b.tp(b))};d.prototype.tr=function(){var b=
this.ka[0];return!b.he&&1===b.opacity&&!b.ml&&b.visible};d.prototype.ie=function(){P(this.Aa);this.gf=!0;var b,a,c;b=0;for(a=this.ca.length;b<a;b++)c=this.ca[b],c.H&&(this.Aa.push(c),c.Ed||(this.gf=!1))};d.prototype.Wn=function(b){var a,c,e;a=0;for(c=this.ca.length;a<c;a++)if(e=this.ca[a],e.name===b)return e;return null};var p=[],g=!0;d.prototype.Bp=function(){this.yt&&(this.ng=this.b.Kn[this.yt],this.ng.Pp());this.b.xa=this;this.width=this.Mz;this.height=this.Lz;this.scrollX=this.b.qb/2;this.scrollY=
this.b.pb/2;var b,a,c,e,d,k,r;b=0;for(c=this.b.M.length;b<c;b++)if(a=this.b.M[b],!a.T)for(d=a.j,a=0,e=d.length;a<e;a++)if(k=d[a],k.u){var f=k.u.As;f>=this.ka.length&&(f=this.ka.length-1);k.u=this.ka[f];-1===k.u.j.indexOf(k)&&k.u.j.push(k);k.u.eh=!0}if(!g)for(b=0,c=this.ka.length;b<c;++b)this.ka[b].j.sort(q);P(p);this.Lq();b=0;for(c=this.ka.length;b<c;b++)k=this.ka[b],k.Yw(),k.an();d=!1;if(!this.rh){for(r in this.Sf)if(this.Sf.hasOwnProperty(r)&&(a=this.b.rl(parseInt(r,10)))&&!a.T&&this.b.Op(a)){e=
this.Sf[r];b=0;for(c=e.length;b<c;b++){k=null;if(a.La.Kf&&(k=this.ql(e[b].w.l),!k))continue;k=this.b.Cf(a.wd,k,!1,0,0,!0);this.b.Jl(k,e[b]);d=!0;p.push(k)}P(e)}b=0;for(c=this.ka.length;b<c;b++)this.ka[b].j.sort(q),this.ka[b].eh=!0}d&&(this.b.Zb(),this.b.et());for(b=0;b<p.length;b++)if(k=p[b],k.type.Fc)for(c=k.Ri(),a=0,e=k.type.Tc.length;a<e;a++)r=k.type.Tc[a],k.type!==r&&(r.j.length>c?k.siblings.push(r.j[c]):r.wd&&(d=this.b.Cf(r.wd,k.u,!0,k.x,k.y,!0),this.b.Zb(),r.Zm(),k.siblings.push(d),p.push(d)));
b=0;for(c=this.Ag.length;b<c;b++)this.b.Cf(this.Ag[b],null,!0);this.b.Ai=null;this.b.Zb();if(this.b.Ta&&!this.b.Ya)for(b=0,c=this.b.M.length;b<c;b++)r=this.b.M[b],!r.T&&r.j.length&&r.nm&&r.nm(this.b.Ta);if(this.b.bj)Ca(this.b.hl,p);else for(b=0,c=p.length;b<c;b++)k=p[b],this.b.trigger(Object.getPrototypeOf(k.type.La).k.yk,k);P(p);this.b.bj||this.b.trigger(U.prototype.k.nq,null);this.rh=!1};d.prototype.Xw=function(){var b,a,c,e,d;a=b=0;for(c=this.Ag.length;b<c;b++)e=this.Ag[b],d=this.b.M[e[1]],d.global?
d.Fc||this.b.Cf(e,null,!0):(this.Ag[a]=e,a++);Ba(this.Ag,a)};d.prototype.xA=function(){this.b.bj||this.b.trigger(U.prototype.k.tv,null);this.b.po=!0;P(this.b.Be.ad);var b,a,c,e,d,p;if(!this.rh)for(b=0,a=this.ka.length;b<a;b++)for(this.ka[b].Rp(),d=this.ka[b].j,c=0,e=d.length;c<e;c++)p=d[c],p.type.global||this.b.Op(p.type)&&this.jA(p);b=0;for(a=this.ka.length;b<a;b++){d=this.ka[b].j;c=0;for(e=d.length;c<e;c++)p=d[c],p.type.global||this.b.Fe(p);this.b.Zb();P(d);this.ka[b].eh=!0}b=0;for(a=this.b.M.length;b<
a;b++)if(d=this.b.M[b],!(d.global||d.La.Kf||d.La.Hm||d.T)){c=0;for(e=d.j.length;c<e;c++)this.b.Fe(d.j[c]);this.b.Zb()}g=!1;this.b.po=!1};new va(0,0,0,0);d.prototype.Ne=function(b){var a,c=b,e=!1,d=!this.b.ed;d&&(this.b.Hl||(this.b.Hl=document.createElement("canvas"),a=this.b.Hl,a.width=this.b.W,a.height=this.b.V,this.b.Ur=a.getContext("2d"),e=!0),a=this.b.Hl,c=this.b.Ur,a.width!==this.b.W&&(a.width=this.b.W,e=!0),a.height!==this.b.V&&(a.height=this.b.V,e=!0),e&&this.b.Am(c,this.b.Za));c.globalAlpha=
1;c.globalCompositeOperation="source-over";this.b.ln&&!this.tr()&&c.clearRect(0,0,this.b.W,this.b.V);var g,r,e=0;for(g=this.ka.length;e<g;e++)r=this.ka[e],r.visible&&0<r.opacity&&11!==r.$b&&(r.j.length||!r.he)?r.Ne(c):r.an();d&&b.drawImage(a,0,0,this.b.width,this.b.height)};d.prototype.Ef=function(b){b.nt(!0);this.b.ob||(this.b.ob=b.dd(this.b.W,this.b.V,this.b.Za));if(this.b.ob.eg!==this.b.W||this.b.ob.dg!==this.b.V)b.deleteTexture(this.b.ob),this.b.ob=b.dd(this.b.W,this.b.V,this.b.Za);b.Gd(this.b.ob);
this.b.ed||b.Wg(this.b.W,this.b.V);var a,c;for(a=this.ka.length-1;0<=a;--a)c=this.ka[a],c.visible&&1===c.opacity&&c.gf&&0===c.$b&&(c.j.length||!c.he)?c.Ef(b):c.an();b.nt(!1)};d.prototype.Bc=function(b){var a=0<this.Aa.length||this.b.li||!this.b.ed||this.b.Ka;if(a){this.b.ob||(this.b.ob=b.dd(this.b.W,this.b.V,this.b.Za));if(this.b.ob.eg!==this.b.W||this.b.ob.dg!==this.b.V)b.deleteTexture(this.b.ob),this.b.ob=b.dd(this.b.W,this.b.V,this.b.Za);b.Gd(this.b.ob);this.b.ed||b.Wg(this.b.W,this.b.V)}else this.b.ob&&
(b.Gd(null),b.deleteTexture(this.b.ob),this.b.ob=null);this.b.ln&&!this.tr()&&b.clear(0,0,0,0);var c,e,d;c=0;for(e=this.ka.length;c<e;c++)d=this.ka[c],d.visible&&0<d.opacity&&(d.j.length||!d.he)?d.Bc(b):d.an();a&&(0===this.Aa.length||1===this.Aa.length&&this.b.ed?(1===this.Aa.length?(a=this.Aa[0].index,b.Pc(this.Aa[0].ub),b.ci(null,1/this.b.W,1/this.b.V,0,0,1,1,this.scale,this.n,0,0,this.b.W/2,this.b.V/2,this.b.mb.qa,this.ab[a]),b.om(this.Aa[0].ub)&&(this.b.za=!0)):b.Pc(0),this.b.ed||b.Wg(this.b.width,
this.b.height),b.Gd(null),b.mt(!1),b.Vg(1),b.Zc(this.b.ob),b.kt(),b.ye(),b.je(),a=this.b.width/2,c=this.b.height/2,b.Sj(-a,c,a,c,a,-c,-a,-c),b.Zc(null),b.mt(!0)):this.np(b,null,null,null))};d.prototype.Qi=function(){return 0<this.Aa.length||this.b.li||!this.b.ed||this.b.Ka?this.b.ob:null};d.prototype.or=function(){var b=this.ka[0].yd(),a,c,e;a=1;for(c=this.ka.length;a<c;a++)e=this.ka[a],(0!==e.Jc||0!==e.Kc)&&e.yd()<b&&(b=e.yd());return b};d.prototype.wm=function(b){if(!this.Vt){var a=1/this.or()*
this.b.W/2;b>this.width-a&&(b=this.width-a);b<a&&(b=a)}this.scrollX!==b&&(this.scrollX=b,this.b.za=!0)};d.prototype.xm=function(b){if(!this.Vt){var a=1/this.or()*this.b.V/2;b>this.height-a&&(b=this.height-a);b<a&&(b=a)}this.scrollY!==b&&(this.scrollY=b,this.b.za=!0)};d.prototype.Lq=function(){this.wm(this.scrollX);this.xm(this.scrollY)};d.prototype.np=function(b,a,c,e){var d=c?c.Aa:a?a.Aa:this.Aa,g=1,r=0,f=0,l=0,p=this.b.W,k=this.b.V;c?(g=c.u.yd(),r=c.u.Sb(),f=c.u.Ia,l=c.u.Ja,p=c.u.Ra,k=c.u.Qa):a&&
(g=a.yd(),r=a.Sb(),f=a.Ia,l=a.Ja,p=a.Ra,k=a.Qa);var u=this.b.Rn,A,n,q,v,J=0,F=1,T,R,W=this.b.W,S=this.b.V,V=W/2,z=S/2,w=a?a.Uj:this.Uj,G=a?a.mp:this.mp,E=0,L=0,I=0,K=0,N=W,X=W,H=S,ba=S,ea=q=0;v=c?c.u.Sb():0;if(c){A=0;for(n=d.length;A<n;A++)q+=b.Ly(d[A].ub),ea+=b.My(d[A].ub);K=c.Wa;E=a.rc(K.left,K.top,!0,!0);I=a.rc(K.left,K.top,!1,!0);N=a.rc(K.right,K.bottom,!0,!0);H=a.rc(K.right,K.bottom,!1,!0);0!==v&&(A=a.rc(K.right,K.top,!0,!0),n=a.rc(K.right,K.top,!1,!0),L=a.rc(K.left,K.bottom,!0,!0),K=a.rc(K.left,
K.bottom,!1,!0),v=Math.min(E,N,A,L),N=Math.max(E,N,A,L),E=v,v=Math.min(I,H,n,K),H=Math.max(I,H,n,K),I=v);E-=q;I-=ea;N+=q;H+=ea;G.left=E/W;G.top=1-I/S;G.right=N/W;G.bottom=1-H/S;L=E=C(E);K=I=C(I);X=N=ta(N);ba=H=ta(H);L-=q;K-=ea;X+=q;ba+=ea;0>E&&(E=0);0>I&&(I=0);N>W&&(N=W);H>S&&(H=S);0>L&&(L=0);0>K&&(K=0);X>W&&(X=W);ba>S&&(ba=S);w.left=E/W;w.top=1-I/S;w.right=N/W;w.bottom=1-H/S}else w.left=G.left=0,w.top=G.top=0,w.right=G.right=1,w.bottom=G.bottom=1;ea=c&&(b.Qj(d[0].ub)||0!==q||0!==ea||1!==c.opacity||
c.type.La.ws)||a&&!c&&1!==a.opacity;b.kt();if(ea){u[J]||(u[J]=b.dd(W,S,this.b.Za));if(u[J].eg!==W||u[J].dg!==S)b.deleteTexture(u[J]),u[J]=b.dd(W,S,this.b.Za);b.Pc(0);b.Gd(u[J]);R=ba-K;b.clearRect(L,S-K-R,X-L,R);c?c.Bc(b):(b.Zc(this.b.Eb),b.Vg(a.opacity),b.ye(),b.translate(-V,-z),b.je(),b.ve(E,H,N,H,N,I,E,I,w));G.left=G.top=0;G.right=G.bottom=1;c&&(v=w.top,w.top=w.bottom,w.bottom=v);J=1;F=0}b.Vg(1);q=d.length-1;var ya=b.jp(d[q].ub)||!a&&!c&&!this.b.ed;A=v=0;for(n=d.length;A<n;A++){u[J]||(u[J]=b.dd(W,
S,this.b.Za));if(u[J].eg!==W||u[J].dg!==S)b.deleteTexture(u[J]),u[J]=b.dd(W,S,this.b.Za);b.Pc(d[A].ub);v=d[A].index;b.om(d[A].ub)&&(this.b.za=!0);0!=A||ea?(b.ci(e,1/W,1/S,G.left,G.top,G.right,G.bottom,g,r,f,l,(f+p)/2,(l+k)/2,this.b.mb.qa,c?c.ab[v]:a?a.ab[v]:this.ab[v]),b.Zc(null),A!==q||ya?(b.Gd(u[J]),R=ba-K,T=S-K-R,b.clearRect(L,T,X-L,R)):(c?b.Vf(c.gc,c.cc):a&&b.Vf(a.gc,a.cc),b.Gd(e)),b.Zc(u[F]),b.ye(),b.translate(-V,-z),b.je(),b.ve(E,H,N,H,N,I,E,I,w),A!==q||ya||b.Zc(null)):(b.Gd(u[J]),R=ba-K,T=
S-K-R,b.clearRect(L,T,X-L,R),c?(c.Hb&&c.Hb.X?(T=c.Hb.X,F=1/T.width,T=1/T.height):(F=1/c.width,T=1/c.height),b.ci(e,F,T,G.left,G.top,G.right,G.bottom,g,r,f,l,(f+p)/2,(l+k)/2,this.b.mb.qa,c.ab[v]),c.Bc(b)):(b.ci(e,1/W,1/S,0,0,1,1,g,r,f,l,(f+p)/2,(l+k)/2,this.b.mb.qa,a?a.ab[v]:this.ab[v]),b.Zc(a?this.b.Eb:this.b.ob),b.ye(),b.translate(-V,-z),b.je(),b.ve(E,H,N,H,N,I,E,I,w)),G.left=G.top=0,G.right=G.bottom=1,c&&!ya&&(v=H,H=I,I=v));J=0===J?1:0;F=0===J?1:0}ya&&(b.Pc(0),c?b.Vf(c.gc,c.cc):a?b.Vf(a.gc,a.cc):
this.b.ed||(b.Wg(this.b.width,this.b.height),V=this.b.width/2,z=this.b.height/2,I=E=0,N=this.b.width,H=this.b.height),b.Gd(e),b.Zc(u[F]),b.ye(),b.translate(-V,-z),b.je(),c&&1===d.length&&!ea?b.ve(E,I,N,I,N,H,E,H,w):b.ve(E,H,N,H,N,I,E,I,w),b.Zc(null))};d.prototype.ql=function(b){var a,c;a=0;for(c=this.ka.length;a<c;a++)if(this.ka[a].ua===b)return this.ka[a];return null};d.prototype.tb=function(){var b,a,c,e={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.n,w:this.width,h:this.height,fv:this.rh,
persist:this.Sf,fx:[],layers:{}};b=0;for(a=this.ca.length;b<a;b++)c=this.ca[b],e.fx.push({name:c.name,active:c.H,params:this.ab[c.index]});b=0;for(a=this.ka.length;b<a;b++)c=this.ka[b],e.layers[c.ua.toString()]=c.tb();return e};d.prototype.Mb=function(b){var a,c,e,d;this.scrollX=b.sx;this.scrollY=b.sy;this.scale=b.s;this.n=b.a;this.width=b.w;this.height=b.h;this.Sf=b.persist;"undefined"!==typeof b.fv&&(this.rh=b.fv);var g=b.fx;a=0;for(c=g.length;a<c;a++)if(e=this.Wn(g[a].name))e.H=g[a].active,this.ab[e.index]=
g[a].params;this.ie();a=b.layers;for(d in a)a.hasOwnProperty(d)&&(b=this.ql(parseInt(d,10)))&&b.Mb(a[d])};Jb=d;n.prototype.ie=function(){P(this.Aa);this.gf=!0;var b,a,c;b=0;for(a=this.ca.length;b<a;b++)c=this.ca[b],c.H&&(this.Aa.push(c),c.Ed||(this.gf=!1))};n.prototype.Wn=function(b){var a,c,e;a=0;for(c=this.ca.length;a<c;a++)if(e=this.ca[a],e.name===b)return e;return null};n.prototype.Yw=function(){var b,a,c,e,d,g;a=b=0;for(c=this.hd.length;b<c;b++){e=this.hd[b];d=this.b.M[e[1]];g=this.b.Op(d);d=
!0;if(!g||this.nb.rh){e=this.b.Cf(e,this,!0);if(!e)continue;p.push(e);e.type.global&&(d=!1,this.Di.push(e.uid))}d&&(this.hd[a]=this.hd[b],a++)}this.hd.length=a;this.b.Zb();!this.b.K&&this.ca.length&&(this.$b=this.Ix);this.Bi=jb(this.$b);this.b.N&&kb(this,this.$b,this.b.N);this.ee=!0};n.prototype.$h=function(b,a){var c=Ea(this.j,b);0>c||(a&&this.sd&&b.Nc&&b.Nc.right>=b.Nc.left&&(b.Na(),this.Xb.update(b,b.Nc,null),b.Nc.set(0,0,-1,-1)),c===this.j.length-1?this.j.pop():(Aa(this.j,c),this.Zj(c)),this.ee=
!0)};n.prototype.vi=function(b,a){b.ke=this.j.length;this.j.push(b);a&&this.sd&&b.Nc&&b.J();this.ee=!0};n.prototype.Tz=function(b){this.j.unshift(b);this.Zj(0)};n.prototype.Ez=function(b,a,c){var e=b.qe();a=a.qe();Aa(this.j,e);e<a&&a--;c&&a++;a===this.j.length?this.j.push(b):this.j.splice(a,0,b);this.Zj(e<a?e:a)};n.prototype.Zj=function(b){-1===this.rf?this.rf=b:b<this.rf&&(this.rf=b);this.ee=this.eh=!0};n.prototype.Rp=function(){if(this.eh){-1===this.rf&&(this.rf=0);var b,a,c;if(this.sd)for(b=this.rf,
a=this.j.length;b<a;++b)c=this.j[b],c.ke=b,this.Xb.Az(c.Nc);else for(b=this.rf,a=this.j.length;b<a;++b)this.j[b].ke=b;this.eh=!1;this.rf=-1}};n.prototype.yd=function(b){return this.Iy()*(this.b.ed||b?this.b.wi:1)};n.prototype.Iy=function(){return(this.scale*this.nb.scale-1)*this.nc+1};n.prototype.Sb=function(){return this.Me?0:Ja(this.nb.n+this.n)};var a=[],e=[],v=[];n.prototype.$n=function(){this.Rp();this.Xb.qm(this.Ia,this.Ja,this.Ra,this.Qa,v);if(!v.length)return k();if(1===v.length){var b=k();
Ca(b,v[0]);P(v);return b}for(var a=!0;1<v.length;){for(var b=v,d=void 0,m=void 0,g=void 0,p=void 0,r=void 0,d=0,m=b.length;d<m-1;d+=2){var g=b[d],p=b[d+1],r=k(),f=g,l=p,n=r,q=0,u=0,A=0,M=f.length,Z=l.length,B=void 0,J=void 0;for(n.length=M+Z;q<M&&u<Z;++A)B=f[q],J=l[u],B.ke<J.ke?(n[A]=B,++q):(n[A]=J,++u);for(;q<M;++q,++A)n[A]=f[q];for(;u<Z;++u,++A)n[A]=l[u];a||(c(g),c(p));e.push(r)}1===m%2&&(a?(g=k(),Ca(g,b[m-1]),e.push(g)):e.push(b[m-1]));Ca(b,e);P(e);a=!1}b=v[0];P(v);return b};n.prototype.Ne=function(b){this.xe=
this.ml||1!==this.opacity||0!==this.$b;var a=this.b.canvas,e=b,d=!1;this.xe&&(this.b.Gl||(this.b.Gl=document.createElement("canvas"),a=this.b.Gl,a.width=this.b.W,a.height=this.b.V,this.b.Tr=a.getContext("2d"),d=!0),a=this.b.Gl,e=this.b.Tr,a.width!==this.b.W&&(a.width=this.b.W,d=!0),a.height!==this.b.V&&(a.height=this.b.V,d=!0),d&&this.b.Am(e,this.b.Za),this.he&&e.clearRect(0,0,this.b.W,this.b.V));e.globalAlpha=1;e.globalCompositeOperation="source-over";this.he||(e.fillStyle="rgb("+this.Qd[0]+","+
this.Qd[1]+","+this.Qd[2]+")",e.fillRect(0,0,this.b.W,this.b.V));e.save();this.Me=!0;var d=this.xb(0,0,!0,!0),g=this.xb(0,0,!1,!0);this.Me=!1;this.b.be&&(d=Math.round(d),g=Math.round(g));this.um(d,g,e);var p=this.yd();e.scale(p,p);e.translate(-d,-g);this.sd?(this.Qb.left=this.Xb.vc(this.Ia),this.Qb.top=this.Xb.wc(this.Ja),this.Qb.right=this.Xb.vc(this.Ra),this.Qb.bottom=this.Xb.wc(this.Qa),this.ee||!this.Qb.Hi(this.Jh)?(c(this.We),d=this.$n(),this.ee=!1,this.Jh.mh(this.Qb)):d=this.We):d=this.j;for(var r,
f=null,g=0,p=d.length;g<p;++g)r=d[g],r!==f&&(this.Cx(r,e),f=r);this.sd&&(this.We=d);e.restore();this.xe&&(b.globalCompositeOperation=this.Bi,b.globalAlpha=this.opacity,b.drawImage(a,0,0))};n.prototype.Cx=function(b,a){if(b.visible&&0!==b.width&&0!==b.height){b.Na();var c=b.Wa;c.right<this.Ia||c.bottom<this.Ja||c.left>this.Ra||c.top>this.Qa||(a.globalCompositeOperation=b.Bi,b.Ne(a))}};n.prototype.an=function(){this.Me=!0;var b=this.xb(0,0,!0,!0),a=this.xb(0,0,!1,!0);this.Me=!1;this.b.be&&(b=Math.round(b),
a=Math.round(a));this.um(b,a,null)};n.prototype.um=function(b,a,c){var e=this.yd();this.Ia=b;this.Ja=a;this.Ra=b+1/e*this.b.W;this.Qa=a+1/e*this.b.V;this.Ia>this.Ra&&(b=this.Ia,this.Ia=this.Ra,this.Ra=b);this.Ja>this.Qa&&(b=this.Ja,this.Ja=this.Qa,this.Qa=b);b=this.Sb();0!==b&&(c&&(c.translate(this.b.W/2,this.b.V/2),c.rotate(-b),c.translate(this.b.W/-2,this.b.V/-2)),this.nf.set(this.Ia,this.Ja,this.Ra,this.Qa),this.nf.offset((this.Ia+this.Ra)/-2,(this.Ja+this.Qa)/-2),this.Ot.wt(this.nf,b),this.Ot.Mq(this.nf),
this.nf.offset((this.Ia+this.Ra)/2,(this.Ja+this.Qa)/2),this.Ia=this.nf.left,this.Ja=this.nf.top,this.Ra=this.nf.right,this.Qa=this.nf.bottom)};n.prototype.Ef=function(b){if(this.xe=this.ml){this.b.Eb||(this.b.Eb=b.dd(this.b.W,this.b.V,this.b.Za));if(this.b.Eb.eg!==this.b.W||this.b.Eb.dg!==this.b.V)b.deleteTexture(this.b.Eb),this.b.Eb=b.dd(this.b.W,this.b.V,this.b.Za);b.Gd(this.b.Eb)}this.Me=!0;var a=this.xb(0,0,!0,!0),e=this.xb(0,0,!1,!0);this.Me=!1;this.b.be&&(a=Math.round(a),e=Math.round(e));this.um(a,
e,null);a=this.yd();b.ye();b.scale(a,a);b.qp(-this.Sb());b.translate((this.Ia+this.Ra)/-2,(this.Ja+this.Qa)/-2);b.je();this.sd?(this.Qb.left=this.Xb.vc(this.Ia),this.Qb.top=this.Xb.wc(this.Ja),this.Qb.right=this.Xb.vc(this.Ra),this.Qb.bottom=this.Xb.wc(this.Qa),this.ee||!this.Qb.Hi(this.Jh)?(c(this.We),a=this.$n(),this.ee=!1,this.Jh.mh(this.Qb)):a=this.We):a=this.j;for(var d,g=null,e=a.length-1;0<=e;--e)d=a[e],d!==g&&(this.Ex(a[e],b),g=d);this.sd&&(this.We=a);this.he||(this.zn=this.b.mg++,b.Bm(this.zn),
b.lt(1,1,1),b.ir(),b.bA())};n.prototype.Bc=function(b){var a=0,e=0;if(this.xe=this.ml||1!==this.opacity||0<this.Aa.length||0!==this.$b){this.b.Eb||(this.b.Eb=b.dd(this.b.W,this.b.V,this.b.Za));if(this.b.Eb.eg!==this.b.W||this.b.Eb.dg!==this.b.V)b.deleteTexture(this.b.Eb),this.b.Eb=b.dd(this.b.W,this.b.V,this.b.Za);b.Gd(this.b.Eb);this.he&&b.clear(0,0,0,0)}this.he||(this.b.Ka?(b.Bm(this.zn),b.lt(this.Qd[0]/255,this.Qd[1]/255,this.Qd[2]/255),b.ir(),b.qA()):b.clear(this.Qd[0]/255,this.Qd[1]/255,this.Qd[2]/
255,1));this.Me=!0;var d=this.xb(0,0,!0,!0),a=this.xb(0,0,!1,!0);this.Me=!1;this.b.be&&(d=Math.round(d),a=Math.round(a));this.um(d,a,null);d=this.yd();b.ye();b.scale(d,d);b.qp(-this.Sb());b.translate((this.Ia+this.Ra)/-2,(this.Ja+this.Qa)/-2);b.je();this.sd?(this.Qb.left=this.Xb.vc(this.Ia),this.Qb.top=this.Xb.wc(this.Ja),this.Qb.right=this.Xb.vc(this.Ra),this.Qb.bottom=this.Xb.wc(this.Qa),this.ee||!this.Qb.Hi(this.Jh)?(c(this.We),a=this.$n(),this.ee=!1,this.Jh.mh(this.Qb)):a=this.We):a=this.j;var g,
p,r=null,e=0;for(g=a.length;e<g;++e)p=a[e],p!==r&&(this.Dx(a[e],b),r=p);this.sd&&(this.We=a);this.xe&&(a=this.Aa.length?this.Aa[0].ub:0,e=this.Aa.length?this.Aa[0].index:0,0===this.Aa.length||1===this.Aa.length&&!b.jp(a)&&1===this.opacity?(1===this.Aa.length?(b.Pc(a),b.ci(this.nb.Qi(),1/this.b.W,1/this.b.V,0,0,1,1,d,this.Sb(),this.Ia,this.Ja,(this.Ia+this.Ra)/2,(this.Ja+this.Qa)/2,this.b.mb.qa,this.ab[e]),b.om(a)&&(this.b.za=!0)):b.Pc(0),b.Gd(this.nb.Qi()),b.Vg(this.opacity),b.Zc(this.b.Eb),b.Vf(this.gc,
this.cc),b.ye(),b.je(),d=this.b.W/2,a=this.b.V/2,b.Sj(-d,a,d,a,d,-a,-d,-a),b.Zc(null)):this.nb.np(b,this,null,this.nb.Qi()))};n.prototype.Dx=function(b,a){if(b.visible&&0!==b.width&&0!==b.height){b.Na();var c=b.Wa;c.right<this.Ia||c.bottom<this.Ja||c.left>this.Ra||c.top>this.Qa||(a.Bm(b.mg),b.cu?this.Fx(b,a):(a.Pc(0),a.Vf(b.gc,b.cc),b.Bc(a)))}};n.prototype.Ex=function(b,a){if(b.visible&&0!==b.width&&0!==b.height){b.Na();var c=b.Wa;c.right<this.Ia||c.bottom<this.Ja||c.left>this.Ra||c.top>this.Qa||
(b.mg=this.b.mg++,0===b.$b&&1===b.opacity&&b.gf&&b.Ef&&(a.Bm(b.mg),b.Ef(a)))}};n.prototype.Fx=function(b,a){var c=b.Aa[0].ub,e=b.Aa[0].index,d=this.yd();if(1!==b.Aa.length||a.jp(c)||a.Vz(c)||(b.n||b.u.Sb())&&a.Qj(c)||1!==b.opacity||b.type.La.ws)this.nb.np(a,this,b,this.xe?this.b.Eb:this.nb.Qi()),a.ye(),a.scale(d,d),a.qp(-this.Sb()),a.translate((this.Ia+this.Ra)/-2,(this.Ja+this.Qa)/-2),a.je();else{a.Pc(c);a.Vf(b.gc,b.cc);a.om(c)&&(this.b.za=!0);var g=0,r=0,f=0,l=0;a.Qj(c)&&(l=b.Wa,g=this.rc(l.left,
l.top,!0,!0),r=this.rc(l.left,l.top,!1,!0),f=this.rc(l.right,l.bottom,!0,!0),l=this.rc(l.right,l.bottom,!1,!0),g=g/windowWidth,r=1-r/windowHeight,f=f/windowWidth,l=1-l/windowHeight);var p;b.Hb&&b.Hb.X?(p=b.Hb.X,c=1/p.width,p=1/p.height):(c=1/b.width,p=1/b.height);a.ci(this.xe?this.b.Eb:this.nb.Qi(),c,p,g,r,f,l,d,this.Sb(),this.Ia,this.Ja,(this.Ia+this.Ra)/2,(this.Ja+this.Qa)/2,this.b.mb.qa,b.ab[e]);b.Bc(a)}};n.prototype.xb=function(b,a,c,e){var d=this.b.devicePixelRatio;this.b.Fg&&(b*=d,a*=d);var d=
this.b.Rs,g=this.b.Ss,d=(this.nb.scrollX-d)*this.Jc+d,g=(this.nb.scrollY-g)*this.Kc+g,r=d,f=g,l=1/this.yd(!e);e?(r-=this.b.W*l/2,f-=this.b.V*l/2):(r-=this.b.width*l/2,f-=this.b.height*l/2);r+=b*l;f+=a*l;a=this.Sb();0!==a&&(r-=d,f-=g,b=Math.cos(a),a=Math.sin(a),e=r*b-f*a,f=f*b+r*a,r=e+d,f+=g);return c?r:f};n.prototype.rc=function(b,a,c,e){var d=this.b.Rs,g=this.b.Ss,r=(this.nb.scrollX-d)*this.Jc+d,f=(this.nb.scrollY-g)*this.Kc+g,g=r,d=f,l=this.Sb();if(0!==l){b-=r;a-=f;var p=Math.cos(-l),l=Math.sin(-l),
k=b*p-a*l;a=a*p+b*l;b=k+r;a+=f}r=1/this.yd(!e);e?(g-=this.b.W*r/2,d-=this.b.V*r/2):(g-=this.b.width*r/2,d-=this.b.height*r/2);g=(b-g)/r;d=(a-d)/r;b=this.b.devicePixelRatio;this.b.Fg&&!e&&(g/=b,d/=b);return c?g:d};n.prototype.tb=function(){var b,a,c,e={s:this.scale,a:this.n,vl:this.Ia,vt:this.Ja,vr:this.Ra,vb:this.Qa,v:this.visible,bc:this.Qd,t:this.he,px:this.Jc,py:this.Kc,o:this.opacity,zr:this.nc,fx:[],cg:this.Di,instances:[]};b=0;for(a=this.ca.length;b<a;b++)c=this.ca[b],e.fx.push({name:c.name,
active:c.H,params:this.ab[c.index]});return e};n.prototype.Mb=function(b){var a,c,e;this.scale=b.s;this.n=b.a;this.Ia=b.vl;this.Ja=b.vt;this.Ra=b.vr;this.Qa=b.vb;this.visible=b.v;this.Qd=b.bc;this.he=b.t;this.Jc=b.px;this.Kc=b.py;this.opacity=b.o;this.nc=b.zr;this.Di=b.cg||[];Ca(this.hd,this.Et);var d=new fa;a=0;for(e=this.Di.length;a<e;++a)d.add(this.Di[a]);c=a=0;for(e=this.hd.length;a<e;++a)d.contains(this.hd[a][2])||(this.hd[c]=this.hd[a],++c);Ba(this.hd,c);c=b.fx;a=0;for(e=c.length;a<e;a++)if(b=
this.Wn(c[a].name))b.H=c[a].active,this.ab[b.index]=c[a].params;this.ie();this.j.sort(q);this.eh=!0};Xb=n})();
(function(){function d(b,a){var c,e=b.length;switch(e){case 0:return!0;case 1:return b[0]===a[0];case 2:return b[0]===a[0]&&b[1]===a[1];default:for(c=0;c<e;c++)if(b[c]!==a[c])return!1;return!0}}function q(b,a){return b.index-a.index}function n(b){var a,c,e,g;2===b.length?b[0].index>b[1].index&&(a=b[0],b[0]=b[1],b[1]=a):2<b.length&&b.sort(q);b.length>=D.length&&(D.length=b.length+1);D[b.length]||(D[b.length]=[]);g=D[b.length];a=0;for(c=g.length;a<c;a++)if(e=g[a],d(b,e))return e;g.push(b);return b}
function k(b,a){this.b=b;this.Rt={};this.cr={};this.fo=!1;this.xr=new fa;this.Gn=[];this.mn=[];this.name=a[0];var c=a[1];this.Ff=[];var e,d;e=0;for(d=c.length;e<d;e++)this.Ar(c[e],null,this.Ff)}function c(b){this.type=b;this.j=[];this.da=[];this.ta=!0}function p(b,a,c){this.sheet=b;this.parent=a;this.b=b.b;this.Ha=[];this.Wf=[];this.ur=this.Sm=this.Kp=this.lo=this.group=this.Ap=!1;this.zb=[];this.Md=[];this.Hd=[];this.Si="";this.uh=this.lo=this.group=!1;this.Pk=null;c[1]&&(this.Si=c[1][1].toLowerCase(),
this.group=!0,this.lo=!!c[1][0],this.Pk=[],this.uh=this.lo,this.b.jh.push(this),this.b.Ti[this.Si]=this);this.md=c[2];this.ua=c[4];this.group||(this.b.Kq[this.ua.toString()]=this);var e=c[5];b=0;for(a=e.length;b<a;b++){var d=new Yb(this,e[b]);d.index=b;this.zb.push(d);this.Eq(d.type)}e=c[6];b=0;for(a=e.length;b<a;b++)d=new Zb(this,e[b]),d.index=b,this.Md.push(d);if(8===c.length)for(c=c[7],b=0,a=c.length;b<a;b++)this.sheet.Ar(c[b],this,this.Hd);this.Cl=!1;this.zb.length&&(this.Cl=null==this.zb[0].type&&
this.zb[0].Rb==U.prototype.k.zu)}function g(b,a){var c,e,d;if(b&&(-1===a.indexOf(b)&&a.push(b),b.Fc))for(c=0,e=b.Tc.length;c<e;c++)d=b.Tc[c],b!==d&&-1===a.indexOf(d)&&a.push(d)}function a(b,a){this.bd=b;this.sheet=b.sheet;this.b=b.b;this.fa=[];this.bb=[];this.O={};this.index=-1;this.si=!1;this.Rb=this.b.sf(a[1]);this.trigger=0<a[3];this.br=2===a[3];this.re=a[4];this.xl=a[5];this.xz=a[6];this.ua=a[7];this.b.Af[this.ua.toString()]=this;-1===a[0]?(this.type=null,this.sb=this.sp,this.ag=null,this.Sd=
-1):(this.type=this.b.M[a[0]],this.sb=this.xz?this.hA:this.rp,a[2]?(this.ag=this.type.pl(a[2]),this.Sd=this.type.Un(a[2])):(this.ag=null,this.Sd=-1),this.bd.parent&&this.bd.parent.Cm());this.br&&(this.sb=this.iA);if(10===a.length){var c,e,d=a[9];c=0;for(e=d.length;c<e;c++){var g=new $b(this,d[c]);this.fa.push(g)}this.bb.length=d.length}}function e(b,a){this.bd=b;this.sheet=b.sheet;this.b=b.b;this.fa=[];this.bb=[];this.O={};this.index=-1;this.si=!1;this.Rb=this.b.sf(a[1]);-1===a[0]?(this.type=null,
this.sb=this.sp,this.ag=null,this.Sd=-1):(this.type=this.b.M[a[0]],this.sb=this.rp,a[2]?(this.ag=this.type.pl(a[2]),this.Sd=this.type.Un(a[2])):(this.ag=null,this.Sd=-1));this.ua=a[3];this.b.uf[this.ua.toString()]=this;if(6===a.length){var c,e,d=a[5];c=0;for(e=d.length;c<e;c++){var g=new $b(this,d[c]);this.fa.push(g)}this.bb.length=d.length}}function v(){r++;x.length===r&&x.push(new ac);return x[r]}function b(b,a){this.Dd=b;this.bd=b.bd;this.sheet=b.sheet;this.b=b.b;this.type=a[0];this.oe=null;this.hf=
0;this.get=null;this.Sq=0;this.nb=null;this.key=0;this.object=null;this.index=0;this.qk=this.Yg=this.qk=this.Yg=this.gr=this.pg=this.rk=null;this.Jd=!1;var c,e,d;switch(a[0]){case 0:case 7:this.oe=new bc(this,a[1]);this.hf=0;this.get=this.Uy;break;case 1:this.oe=new bc(this,a[1]);this.hf=0;this.get=this.Vy;break;case 5:this.oe=new bc(this,a[1]);this.hf=0;this.get=this.Zy;break;case 3:case 8:this.Sq=a[1];this.get=this.Sy;break;case 6:this.nb=this.b.Do[a[1]];this.get=this.$y;break;case 9:this.key=a[1];
this.get=this.Yy;break;case 4:this.object=this.b.M[a[1]];this.get=this.az;this.bd.Eq(this.object);this.Dd instanceof Zb?this.bd.Cm():this.bd.parent&&this.bd.parent.Cm();break;case 10:this.index=a[1];b.type&&b.type.T?(this.get=this.Wy,this.Jd=!0):this.get=this.Xy;break;case 11:this.rk=a[1];this.pg=null;this.get=this.Ty;break;case 2:case 12:this.gr=a[1];this.get=this.Ry;break;case 13:for(this.get=this.bz,this.Yg=[],this.qk=[],c=1,e=a.length;c<e;c++)d=new $b(this.Dd,a[c]),this.Yg.push(d),this.qk.push(0)}}
function h(b,a,c){this.sheet=b;this.parent=a;this.b=b.b;this.Ha=[];this.name=c[1];this.sk=c[2];this.B=c[3];this.jj=!!c[4];this.Bl=!!c[5];this.ua=c[6];this.b.ni[this.ua.toString()]=this;this.data=this.B;this.parent?(this.Pg=this.jj||this.Bl?-1:this.b.vA++,this.b.Lw.push(this)):(this.Pg=-1,this.b.Kw.push(this))}function t(b,a,c){this.sheet=b;this.parent=a;this.b=b.b;this.Ha=[];this.Wi=null;this.iz=c[1];this.H=!0}function m(){this.Gt=[];this.reset(null)}var D=[];k.prototype.toString=function(){return this.name};
k.prototype.Ar=function(b,a,c){switch(b[0]){case 0:b=new cc(this,a,b);if(b.md)for(c.push(b),c=0,a=b.zb.length;c<a;c++)b.zb[c].trigger&&this.Br(b,c);else b.Mr()?this.Br(b,0):c.push(b);break;case 1:b=new Ub(this,a,b);c.push(b);break;case 2:b=new dc(this,a,b),c.push(b)}};k.prototype.fb=function(){var b,a;b=0;for(a=this.Ff.length;b<a;b++)this.Ff[b].fb(b<a-1&&this.Ff[b+1].Cl)};k.prototype.Pp=function(){P(this.Gn);P(this.mn);this.Dq(this);P(this.mn)};k.prototype.Dq=function(b){var a,c,e,d,g=b.Gn,m=b.mn,
h=this.xr.pf();a=0;for(c=h.length;a<c;++a)e=h[a],d=e.Wi,!e.H||b===d||-1<m.indexOf(d)||(m.push(d),d.Dq(b),g.push(d))};k.prototype.sb=function(b){this.b.hC||(this.fo=!0,b||(this.b.so=!0));var a,c;a=0;for(c=this.Ff.length;a<c;a++){var e=this.Ff[a];e.sb();this.b.yn(e.Ha);this.b.If&&this.b.Zb()}b||(this.b.so=!1)};k.prototype.Br=function(b,a){b.md||this.b.Wm.push(b);var c,e,d=b.zb[a],g;d.type?g=d.type.name:g="system";var m=(c=d.br)?this.cr:this.Rt;m[g]||(m[g]=[]);g=m[g];m=d.Rb;if(c){if(d.fa.length&&(d=
d.fa[0],1===d.type&&2===d.oe.type)){d=d.oe.value.toLowerCase();c=0;for(e=g.length;c<e;c++)if(g[c].method==m){c=g[c].Ji;c[d]?c[d].push([b,a]):c[d]=[[b,a]];return}c={};c[d]=[[b,a]];g.push({method:m,Ji:c})}}else{c=0;for(e=g.length;c<e;c++)if(g[c].method==m){g[c].Ji.push([b,a]);return}Y&&m===Y.prototype.k.hh?g.unshift({method:m,Ji:[[b,a]]}):g.push({method:m,Ji:[[b,a]]})}};Kb=k;c.prototype.eo=function(){return this.ta?this.type.j.length:this.j.length};c.prototype.Cc=function(){return this.ta?this.type.j:
this.j};c.prototype.Oj=function(b){b&&(b.b.kb().Ib.md?(this.ta&&(P(this.j),Ca(this.da,b.type.j),this.ta=!1),b=this.da.indexOf(b),-1!==b&&(this.j.push(this.da[b]),this.da.splice(b,1))):(this.ta=!1,P(this.j),this.j[0]=b))};qb=c;window._c2hh_="D9844E38B933E47C610CC9B868A76404216E9BB1";p.prototype.fb=function(b){var a,c=this.parent;if(this.group)for(this.Sm=!0;c;){if(!c.group){this.Sm=!1;break}c=c.parent}this.Kp=!this.Mr()&&(!this.parent||this.parent.group&&this.parent.Sm);this.ur=!!b;this.Wf=this.Ha.slice(0);
for(c=this.parent;c;){b=0;for(a=c.Ha.length;b<a;b++)this.Jw(c.Ha[b]);c=c.parent}this.Ha=n(this.Ha);this.Wf=n(this.Wf);b=0;for(a=this.zb.length;b<a;b++)this.zb[b].fb();b=0;for(a=this.Md.length;b<a;b++)this.Md[b].fb();b=0;for(a=this.Hd.length;b<a;b++)this.Hd[b].fb(b<a-1&&this.Hd[b+1].Cl)};p.prototype.mA=function(b){if(this.uh!==!!b){this.uh=!!b;var a;b=0;for(a=this.Pk.length;b<a;++b)this.Pk[b].Xt();0<a&&this.b.xa.ng&&this.b.xa.ng.Pp()}};p.prototype.Eq=function(b){g(b,this.Ha)};p.prototype.Jw=function(b){g(b,
this.Wf)};p.prototype.Cm=function(){this.Ap=!0;this.parent&&this.parent.Cm()};p.prototype.Mr=function(){return this.zb.length?this.zb[0].trigger:!1};p.prototype.sb=function(){var b,a,c=!1,e=this.b,d=this.b.kb();d.Ib=this;var g=this.zb;this.Cl||(d.Hn=!1);if(this.md){0===g.length&&(c=!0);d.ib=0;for(b=g.length;d.ib<b;d.ib++)a=g[d.ib],a.trigger||(a=a.sb())&&(c=!0);(d.Jg=c)&&this.vm()}else{d.ib=0;for(b=g.length;d.ib<b;d.ib++)if(a=g[d.ib].sb(),!a){d.Jg=!1;this.Kp&&e.If&&e.Zb();return}d.Jg=!0;this.vm()}this.Kx(d)};
p.prototype.Kx=function(b){b.Jg&&this.ur&&(b.Hn=!0);this.Kp&&this.b.If&&this.b.Zb()};p.prototype.fA=function(b){this.b.kb().Ib=this;this.zb[b].sb()&&(this.vm(),this.b.kb().Jg=!0)};p.prototype.vm=function(){var b=this.b.kb(),a;b.td=0;for(a=this.Md.length;b.td<a;b.td++)if(this.Md[b.td].sb())return;this.it()};p.prototype.dA=function(){var b=this.b.kb(),a;for(a=this.Md.length;b.td<a;b.td++)if(this.Md[b.td].sb())return;this.it()};p.prototype.it=function(){if(this.Hd.length){var b,a,c,e,d=this.Hd.length-
1;this.b.pm(this);if(this.Ap)for(b=0,a=this.Hd.length;b<a;b++)c=this.Hd[b],(e=!this.Sm||!this.group&&b<d)&&this.b.Yh(c.Ha),c.sb(),e?this.b.df(c.Ha):this.b.yn(c.Ha);else for(b=0,a=this.Hd.length;b<a;b++)this.Hd[b].sb();this.b.km()}};p.prototype.gA=function(){var b=this.b.kb();b.Ib=this;var a=!1,c;b.ib=0;for(c=this.zb.length;b.ib<c;b.ib++)if(this.zb[b.ib].sb())a=!0;else if(!this.md)return!1;return this.md?a:!0};p.prototype.Wj=function(){this.b.Ki++;var b=this.b.kb().ib,a=this.b.pm(this);if(!this.md)for(a.ib=
b+1,b=this.zb.length;a.ib<b;a.ib++)if(!this.zb[a.ib].sb()){this.b.km();return}this.vm();this.b.km()};p.prototype.rz=function(b){var a=b.index;if(0===a)return!0;for(--a;0<=a;--a)if(this.zb[a].type===b.type)return!1;return!0};cc=p;a.prototype.fb=function(){var b,a,c;b=0;for(a=this.fa.length;b<a;b++)c=this.fa[b],c.fb(),c.Jd&&(this.si=!0)};a.prototype.iA=function(){return!0};a.prototype.sp=function(){var b,a;b=0;for(a=this.fa.length;b<a;b++)this.bb[b]=this.fa[b].get();return Ta(this.Rb.apply(this.b.Be,
this.bb),this.xl)};a.prototype.hA=function(){var b,a;b=0;for(a=this.fa.length;b<a;b++)this.bb[b]=this.fa[b].get();b=this.Rb.apply(this.ag?this.ag:this.type,this.bb);this.type.ud();return b};a.prototype.rp=function(){var b,a,c,e,d,g,m,h,r=this.type,p=r.la(),k=this.bd.md&&!this.trigger;a=0;var n=r.Fc,q=r.T,v=r.Qe,x=this.Sd,t=-1<x,D=this.si,w=this.fa,G=this.bb,E=this.xl,L=this.Rb,I;if(D)for(a=0,d=w.length;a<d;++a)g=w[a],g.Jd||(G[a]=g.get(0));else for(a=0,d=w.length;a<d;++a)G[a]=w[a].get(0);if(p.ta){P(p.j);
P(p.da);I=r.j;b=0;for(e=I.length;b<e;++b){h=I[b];if(D)for(a=0,d=w.length;a<d;++a)g=w[a],g.Jd&&(G[a]=g.get(b));t?(a=0,q&&(a=h.type.qh[v]),a=L.apply(h.Y[x+a],G)):a=L.apply(h,G);(m=Ta(a,E))?p.j.push(h):k&&p.da.push(h)}r.finish&&r.finish(!0);p.ta=!1;r.ud();return p.eo()}c=0;I=(m=k&&!this.bd.rz(this))?p.da:p.j;var K=!1;b=0;for(e=I.length;b<e;++b){h=I[b];if(D)for(a=0,d=w.length;a<d;++a)g=w[a],g.Jd&&(G[a]=g.get(b));t?(a=0,q&&(a=h.type.qh[v]),a=L.apply(h.Y[x+a],G)):a=L.apply(h,G);if(Ta(a,E))if(K=!0,m){if(p.j.push(h),
n)for(a=0,d=h.siblings.length;a<d;a++)g=h.siblings[a],g.type.la().j.push(g)}else{I[c]=h;if(n)for(a=0,d=h.siblings.length;a<d;a++)g=h.siblings[a],g.type.la().j[c]=g;c++}else if(m){I[c]=h;if(n)for(a=0,d=h.siblings.length;a<d;a++)g=h.siblings[a],g.type.la().da[c]=g;c++}else if(k&&(p.da.push(h),n))for(a=0,d=h.siblings.length;a<d;a++)g=h.siblings[a],g.type.la().da.push(g)}Ba(I,c);if(n)for(q=r.Tc,b=0,e=q.length;b<e;b++)h=q[b].la(),m?Ba(h.da,c):Ba(h.j,c);c=K;if(m&&!K)for(b=0,e=p.j.length;b<e;b++){h=p.j[b];
if(D)for(a=0,d=w.length;a<d;a++)g=w[a],g.Jd&&(G[a]=g.get(b));a=t?L.apply(h.Y[x],G):L.apply(h,G);if(Ta(a,E)){K=!0;break}}r.finish&&r.finish(c||k);return k?K:p.eo()};Yb=a;e.prototype.fb=function(){var b,a,c;b=0;for(a=this.fa.length;b<a;b++)c=this.fa[b],c.fb(),c.Jd&&(this.si=!0)};e.prototype.sp=function(){var b=this.b,a,c,e=this.fa,d=this.bb;a=0;for(c=e.length;a<c;++a)d[a]=e[a].get();return this.Rb.apply(b.Be,d)};e.prototype.rp=function(){var b=this.type,a=this.Sd,c=b.Qe,e=this.si,d=this.fa,g=this.bb,
m=this.Rb,h=b.la().Cc(),b=b.T,r=-1<a,p,k,n,q,v,x;if(e)for(k=0,q=d.length;k<q;++k)v=d[k],v.Jd||(g[k]=v.get(0));else for(k=0,q=d.length;k<q;++k)g[k]=d[k].get(0);p=0;for(n=h.length;p<n;++p){x=h[p];if(e)for(k=0,q=d.length;k<q;++k)v=d[k],v.Jd&&(g[k]=v.get(p));r?(k=0,b&&(k=x.type.qh[c]),m.apply(x.Y[a+k],g)):m.apply(x,g)}return!1};Zb=e;var x=[],r=-1;b.prototype.fb=function(){var b,a;if(11===this.type)this.pg=this.b.mr(this.rk,this.bd.parent);else if(13===this.type)for(b=0,a=this.Yg.length;b<a;b++)this.Yg[b].fb();
this.oe&&this.oe.fb()};b.prototype.Cz=function(b){this.Jd||!b||b.La.Hm||(this.Jd=!0)};b.prototype.tt=function(){this.Jd=!0};b.prototype.Uy=function(b){this.hf=b||0;b=v();this.oe.get(b);r--;return b.data};b.prototype.Vy=function(b){this.hf=b||0;b=v();this.oe.get(b);r--;return la(b.data)?b.data:""};b.prototype.az=function(){return this.object};b.prototype.Sy=function(){return this.Sq};b.prototype.Zy=function(b){this.hf=b||0;b=v();this.oe.get(b);r--;return b.Kb()?this.b.Se(b.data):this.b.Pi(b.data)};
b.prototype.$y=function(){return this.nb};b.prototype.Yy=function(){return this.key};b.prototype.Xy=function(){return this.index};b.prototype.Wy=function(b){b=b||0;var a=this.Dd.type,c=null,c=a.la(),e=c.Cc();if(e.length)c=e[b%e.length].type;else if(c.da.length)c=c.da[b%c.da.length].type;else if(a.j.length)c=a.j[b%a.j.length].type;else return 0;return this.index+c.el[a.Qe]};b.prototype.Ty=function(){return this.pg};b.prototype.Ry=function(){return this.gr};b.prototype.bz=function(){var b,a;b=0;for(a=
this.Yg.length;b<a;b++)this.qk[b]=this.Yg[b].get();return this.qk};$b=b;h.prototype.fb=function(){this.Ha=n(this.Ha)};h.prototype.ff=function(b){var a=this.b.lr();this.parent&&!this.jj&&a?(this.Pg>=a.length&&(a.length=this.Pg+1),a[this.Pg]=b):this.data=b};h.prototype.vg=function(){var b=this.b.lr();return!this.parent||this.jj||!b||this.Bl?this.data:this.Pg>=b.length||"undefined"===typeof b[this.Pg]?this.B:b[this.Pg]};h.prototype.sb=function(){!this.parent||this.jj||this.Bl||this.ff(this.B)};Ub=h;
t.prototype.toString=function(){return"include:"+this.Wi.toString()};t.prototype.fb=function(){this.Wi=this.b.Kn[this.iz];this.sheet.xr.add(this);this.Ha=n(this.Ha);for(var b=this.parent;b;)b.group&&b.Pk.push(this),b=b.parent;this.Xt()};t.prototype.sb=function(){this.parent&&this.b.Rj(this.b.M);this.Wi.fo||this.Wi.sb(!0);this.parent&&this.b.df(this.b.M)};t.prototype.Xt=function(){for(var b=this.parent;b;){if(b.group&&!b.uh){this.H=!1;return}b=b.parent}this.H=!0};dc=t;m.prototype.reset=function(b){this.Ib=
b;this.td=this.ib=0;P(this.Gt);this.Hn=this.Jg=!1};m.prototype.Hr=function(){return this.Ib.Ap?!0:this.ib<this.Ib.zb.length-1?!!this.Ib.Ha.length:!1};Tb=m})();
(function(){function d(c,a){this.Dd=c;this.b=c.b;this.type=a[0];this.get=[this.by,this.Yx,this.my,this.qy,this.Nx,this.ny,this.gy,this.Vx,this.fy,this.ky,this.Ox,this.jy,this.Wx,this.hy,this.cy,this.ey,this.Zx,this.$x,this.Ux,this.oy,this.iy,this.ay,this.Tx,this.Xx][this.type];var e=null;this.Ye=this.fa=this.bb=this.Rb=this.Pm=this.second=this.first=this.value=null;this.Sd=-1;this.Wd=null;this.du=-1;this.pg=this.rk=null;this.ai=!1;switch(this.type){case 0:case 1:case 2:this.value=a[1];break;case 3:this.first=
new bc(c,a[1]);break;case 18:this.first=new bc(c,a[1]);this.second=new bc(c,a[2]);this.Pm=new bc(c,a[3]);break;case 19:this.Rb=this.b.sf(a[1]);this.Rb!==U.prototype.ja.random&&this.Rb!==U.prototype.ja.Uw||this.Dd.tt();this.bb=[];this.fa=[];3===a.length?(e=a[2],this.bb.length=e.length+1):this.bb.length=1;break;case 20:this.Ye=this.b.M[a[1]];this.Sd=-1;this.Rb=this.b.sf(a[2]);this.ai=a[3];ic.Function&&this.Rb===ic.Function.prototype.ja.NA&&this.Dd.tt();a[4]?this.Wd=new bc(c,a[4]):this.Wd=null;this.bb=
[];this.fa=[];6===a.length?(e=a[5],this.bb.length=e.length+1):this.bb.length=1;break;case 21:this.Ye=this.b.M[a[1]];this.ai=a[2];a[3]?this.Wd=new bc(c,a[3]):this.Wd=null;this.du=a[4];break;case 22:this.Ye=this.b.M[a[1]];this.Ye.pl(a[2]);this.Sd=this.Ye.Un(a[2]);this.Rb=this.b.sf(a[3]);this.ai=a[4];a[5]?this.Wd=new bc(c,a[5]):this.Wd=null;this.bb=[];this.fa=[];7===a.length?(e=a[6],this.bb.length=e.length+1):this.bb.length=1;break;case 23:this.rk=a[1],this.pg=null}this.Dd.Cz(this.Ye);4<=this.type&&
17>=this.type&&(this.first=new bc(c,a[1]),this.second=new bc(c,a[2]));if(e){var d,b;d=0;for(b=e.length;d<b;d++)this.fa.push(new bc(c,e[d]))}}function q(){++p;c.length===p&&c.push(new ac);return c[p]}function n(c,a,e){var d,b;d=0;for(b=c.length;d<b;++d)c[d].get(e),a[d+1]=e.data}function k(c,a){this.type=c||ec.gh;this.data=a||0;this.Rg=null;this.type==ec.gh&&(this.data=Math.floor(this.data))}d.prototype.fb=function(){23===this.type&&(this.pg=this.Dd.b.mr(this.rk,this.Dd.bd.parent));this.first&&this.first.fb();
this.second&&this.second.fb();this.Pm&&this.Pm.fb();this.Wd&&this.Wd.fb();if(this.fa){var c,a;c=0;for(a=this.fa.length;c<a;c++)this.fa[c].fb()}};var c=[],p=-1;d.prototype.oy=function(c){var a=this.fa,e=this.bb;e[0]=c;c=q();n(a,e,c);--p;this.Rb.apply(this.b.Be,e)};d.prototype.iy=function(c){var a=this.Ye,e=this.bb,d=this.fa,b=this.Wd,h=this.Rb,k=this.Dd.hf,m=a.la(),D=m.Cc();if(!D.length)if(m.da.length)D=m.da;else{this.ai?c.fc(""):c.Oa(0);return}e[0]=c;c.Rg=a;c=q();n(d,e,c);b&&(b.get(c),c.Kb()&&(k=
c.data,D=a.j));--p;a=D.length;if(k>=a||k<=-a)k%=a;0>k&&(k+=a);h.apply(D[k],e)};d.prototype.Tx=function(c){var a=this.Ye,e=this.bb,d=this.fa,b=this.Wd,h=this.Sd,k=this.Rb,m=this.Dd.hf,D=a.la(),x=D.Cc();if(!x.length)if(D.da.length)x=D.da;else{this.ai?c.fc(""):c.Oa(0);return}e[0]=c;c.Rg=a;c=q();n(d,e,c);b&&(b.get(c),c.Kb()&&(m=c.data,x=a.j));--p;d=x.length;if(m>=d||m<=-d)m%=d;0>m&&(m+=d);m=x[m];x=0;a.T&&(x=m.type.qh[a.Qe]);k.apply(m.Y[h+x],e)};d.prototype.ay=function(c){var a=this.Wd,d=this.Ye,k=this.du,
b=this.Dd.hf,h=d.la(),n=h.Cc();if(!n.length)if(h.da.length)n=h.da;else{this.ai?c.fc(""):c.Oa(0);return}if(a){h=q();a.get(h);if(h.Kb()){b=h.data;n=d.j;0!==n.length&&(b%=n.length,0>b&&(b+=n.length));b=d.Yn(b);d=b.Db[k];la(d)?c.fc(d):c.D(d);--p;return}--p}a=n.length;if(b>=a||b<=-a)b%=a;0>b&&(b+=a);b=n[b];n=0;d.T&&(n=b.type.el[d.Qe]);d=b.Db[k+n];la(d)?c.fc(d):c.D(d)};d.prototype.by=function(c){c.type=ec.gh;c.data=this.value};d.prototype.Yx=function(c){c.type=ec.fh;c.data=this.value};d.prototype.my=function(c){c.type=
ec.String;c.data=this.value};d.prototype.qy=function(c){this.first.get(c);c.Kb()&&(c.data=-c.data)};d.prototype.Nx=function(c){this.first.get(c);var a=q();this.second.get(a);c.Kb()&&a.Kb()&&(c.data+=a.data,a.zh()&&c.Nh());--p};d.prototype.ny=function(c){this.first.get(c);var a=q();this.second.get(a);c.Kb()&&a.Kb()&&(c.data-=a.data,a.zh()&&c.Nh());--p};d.prototype.gy=function(c){this.first.get(c);var a=q();this.second.get(a);c.Kb()&&a.Kb()&&(c.data*=a.data,a.zh()&&c.Nh());--p};d.prototype.Vx=function(c){this.first.get(c);
var a=q();this.second.get(a);c.Kb()&&a.Kb()&&(c.data/=a.data,c.Nh());--p};d.prototype.fy=function(c){this.first.get(c);var a=q();this.second.get(a);c.Kb()&&a.Kb()&&(c.data%=a.data,a.zh()&&c.Nh());--p};d.prototype.ky=function(c){this.first.get(c);var a=q();this.second.get(a);c.Kb()&&a.Kb()&&(c.data=Math.pow(c.data,a.data),a.zh()&&c.Nh());--p};d.prototype.Ox=function(c){this.first.get(c);var a=q();this.second.get(a);a.Ch()||c.Ch()?this.Qx(c,a):this.Px(c,a);--p};d.prototype.Qx=function(c,a){c.Ch()&&
a.Ch()?this.Sx(c,a):this.Rx(c,a)};d.prototype.Sx=function(c,a){c.data+=a.data};d.prototype.Rx=function(c,a){c.Ch()?c.data+=(Math.round(1E10*a.data)/1E10).toString():c.fc(c.data.toString()+a.data)};d.prototype.Px=function(c,a){c.Oa(c.data&&a.data?1:0)};d.prototype.jy=function(c){this.first.get(c);var a=q();this.second.get(a);c.Kb()&&a.Kb()&&(c.data||a.data?c.Oa(1):c.Oa(0));--p};d.prototype.Ux=function(c){this.first.get(c);c.data?this.second.get(c):this.Pm.get(c)};d.prototype.Wx=function(c){this.first.get(c);
var a=q();this.second.get(a);c.Oa(c.data===a.data?1:0);--p};d.prototype.hy=function(c){this.first.get(c);var a=q();this.second.get(a);c.Oa(c.data!==a.data?1:0);--p};d.prototype.cy=function(c){this.first.get(c);var a=q();this.second.get(a);c.Oa(c.data<a.data?1:0);--p};d.prototype.ey=function(c){this.first.get(c);var a=q();this.second.get(a);c.Oa(c.data<=a.data?1:0);--p};d.prototype.Zx=function(c){this.first.get(c);var a=q();this.second.get(a);c.Oa(c.data>a.data?1:0);--p};d.prototype.$x=function(c){this.first.get(c);
var a=q();this.second.get(a);c.Oa(c.data>=a.data?1:0);--p};d.prototype.Xx=function(c){var a=this.pg.vg();ka(a)?c.D(a):c.fc(a)};bc=d;k.prototype.zh=function(){return this.type===ec.fh};k.prototype.Kb=function(){return this.type===ec.gh||this.type===ec.fh};k.prototype.Ch=function(){return this.type===ec.String};k.prototype.Nh=function(){this.zh()||(this.Ch()&&(this.data=parseFloat(this.data)),this.type=ec.fh)};k.prototype.Oa=function(c){this.type=ec.gh;this.data=Math.floor(c)};k.prototype.D=function(c){this.type=
ec.fh;this.data=c};k.prototype.fc=function(c){this.type=ec.String;this.data=c};k.prototype.sA=function(c){ka(c)?(this.type=ec.fh,this.data=c):la(c)?(this.type=ec.String,this.data=c.toString()):(this.type=ec.gh,this.data=0)};ac=k;ec={gh:0,fh:1,String:2}})();function U(d){this.b=d;this.ad=[]}
U.prototype.tb=function(){var d={},q,n,k,c,p,g,a,e;d.waits=[];var v=d.waits,b;q=0;for(n=this.ad.length;q<n;q++){g=this.ad[q];b={t:g.time,st:g.uA,s:g.At,ev:g.Ii.ua,sm:[],sols:{}};g.Ii.Md[g.td]&&(b.act=g.Ii.Md[g.td].ua);k=0;for(c=g.Ha.length;k<c;k++)b.sm.push(g.Ha[k].ua);for(p in g.$c)if(g.$c.hasOwnProperty(p)){a=this.b.M[parseInt(p,10)];e={sa:g.$c[p].jt,insts:[]};k=0;for(c=g.$c[p].Bg.length;k<c;k++)e.insts.push(g.$c[p].Bg[k].uid);b.sols[a.ua.toString()]=e}v.push(b)}return d};
U.prototype.Mb=function(d){d=d.waits;var q,n,k,c,p,g,a,e,v,b,h;P(this.ad);q=0;for(n=d.length;q<n;q++)if(g=d[q],e=this.b.Kq[g.ev.toString()]){v=-1;k=0;for(c=e.Md.length;k<c;k++)if(e.Md[k].ua===g.act){v=k;break}if(-1!==v){a={$c:{},Ha:[],Wq:!1};a.time=g.t;a.uA=g.st||"";a.At=!!g.s;a.Ii=e;a.td=v;k=0;for(c=g.sm.length;k<c;k++)(e=this.b.rl(g.sm[k]))&&a.Ha.push(e);for(p in g.sols)if(g.sols.hasOwnProperty(p)&&(e=this.b.rl(parseInt(p,10)))){v=g.sols[p];b={jt:v.sa,Bg:[]};k=0;for(c=v.insts.length;k<c;k++)(h=
this.b.ug(v.insts[k]))&&b.Bg.push(h);a.$c[e.index.toString()]=b}this.ad.push(a)}}};
(function(){function d(){}function q(){}function n(){}var k=U.prototype;d.prototype.Bu=function(){return!0};d.prototype.nq=function(){return!0};d.prototype.tv=function(){return!0};d.prototype.nu=function(a,c,b){return fc(a,c,b)};d.prototype.ru=function(a,c){var b=this.b.mb.qa;if(0===a){var d=this.b.sg();return!d.O.CompareTime_executed&&b>=c?d.O.CompareTime_executed=!0:!1}return fc(b,a,c)};d.prototype.Mv=function(a){var c=this.b.kb(),b=c.Ib,d=c.Hr(),c=this.b.ct();if(d)for(d=0;d<a&&!c.wb;d++)this.b.Yh(b.Ha),
c.index=d,b.Wj(),this.b.df(b.Ha);else for(d=0;d<a&&!c.wb;d++)c.index=d,b.Wj();this.b.Ws();return!1};var c=[],p=-1;d.prototype.Du=function(a){var d=a.la();p++;c.length===p&&c.push([]);var b=c[p];Ca(b,d.Cc());var h=this.b.kb(),g=h.Ib,m=h.Hr(),h=this.b.ct(),k,n,r,f,l,q,y=a.Fc;if(m)for(m=0,k=b.length;m<k&&!h.wb;m++){this.b.Yh(g.Ha);f=b[m];d=a.la();d.ta=!1;P(d.j);d.j[0]=f;if(y)for(n=0,r=f.siblings.length;n<r;n++)l=f.siblings[n],q=l.type.la(),q.ta=!1,P(q.j),q.j[0]=l;h.index=m;g.Wj();this.b.df(g.Ha)}else for(d.ta=
!1,P(d.j),m=0,k=b.length;m<k&&!h.wb;m++){f=b[m];d.j[0]=f;if(y)for(n=0,r=f.siblings.length;n<r;n++)l=f.siblings[n],q=l.type.la(),q.ta=!1,P(q.j),q.j[0]=l;h.index=m;g.Wj()}P(b);this.b.Ws();p--;return!1};d.prototype.Iv=function(a,d,b,h){var g,m,k,n;if(a){p++;c.length===p&&c.push([]);var r=c[p],f=a.la();Ca(r,f.Cc());f.ta&&P(f.da);var l=this.b.sg();k=g=0;for(m=r.length;g<m;g++)n=r[g],r[k]=n,d=l.fa[1].get(g),h=l.fa[3].get(g),fc(d,b,h)?k++:f.da.push(n);Ba(r,k);f.ta=!1;Ca(f.j,r);P(r);p--;a.ud();return!!f.j.length}};
d.prototype.zw=function(){var a=this.b.sg().O;"undefined"===typeof a.TriggerOnce_lastTick&&(a.TriggerOnce_lastTick=-1);var c=a.TriggerOnce_lastTick,b=this.b.$g;a.TriggerOnce_lastTick=b;return this.b.Co||c!==b-1};d.prototype.Au=function(a){var c=this.b.sg(),b=c.O.Every_lastTime||0,d=this.b.mb.qa;"undefined"===typeof c.O.Every_seconds&&(c.O.Every_seconds=a);var g=c.O.Every_seconds;if(d>=b+g)return c.O.Every_lastTime=b+g,d>=c.O.Every_lastTime+.04&&(c.O.Every_lastTime=d),c.O.Every_seconds=a,!0;d<b-.1&&
(c.O.Every_lastTime=d);return!1};d.prototype.su=function(a,c,b){return fc(a.vg(),c,b)};d.prototype.Ou=function(a){return(a=this.b.Ti[a.toLowerCase()])&&a.uh};d.prototype.zu=function(){var a=this.b.kb();return a.Hn?!1:!a.Jg};d.prototype.oq=function(){return!0};d.prototype.bv=function(){return!0};d.prototype.hn=function(){return!0};d.prototype.uq=function(){return!0};d.prototype.uv=function(){return!0};d.prototype.gn=function(){return!0};d.prototype.ku=function(a,c,b){return Na(Q(a),Q(b))<=Q(c)};d.prototype.Lu=
function(a,c){return Qa(Q(a),Q(c))};d.prototype.Ku=function(a,c,b){a=La(a);c=La(c);b=La(b);return Qa(b,c)?Qa(a,c)&&!Qa(a,b):!(!Qa(a,c)&&Qa(a,b))};k.k=new d;q.prototype.Fu=function(a){this.b.kj||this.b.Ai||(this.b.Ai=a)};q.prototype.vu=function(a,c,b,d){if(c&&a&&(c=this.b.Tq(a,c,b,d))){this.b.Yd++;var g;this.b.trigger(Object.getPrototypeOf(a.La).k.yk,c);if(c.Fc)for(b=0,d=c.siblings.length;b<d;b++)g=c.siblings[b],this.b.trigger(Object.getPrototypeOf(g.type.La).k.yk,g);this.b.Yd--;a=a.la();a.ta=!1;P(a.j);
a.j[0]=c;if(c.Fc)for(b=0,d=c.siblings.length;b<d;b++)g=c.siblings[b],a=g.type.la(),a.ta=!1,P(a.j),a.j[0]=g}};q.prototype.Yv=function(a){this.b.xa&&this.b.xa.scale!==a&&(this.b.xa.scale=a,this.b.xa.Lq(),this.b.za=!0)};q.prototype.Ov=function(a){if(a=a.Ni())this.b.xa.wm(a.x),this.b.xa.xm(a.y)};q.prototype.jw=function(a,c){0===a.sk?ka(c)?a.ff(c):a.ff(parseFloat(c)):1===a.sk&&a.ff(c.toString())};q.prototype.iu=function(a,c){0===a.sk?ka(c)?a.ff(a.vg()+c):a.ff(a.vg()+parseFloat(c)):1===a.sk&&a.ff(a.vg()+
c.toString())};q.prototype.yw=function(a,c){0===a.sk&&(ka(c)?a.ff(a.vg()-c):a.ff(a.vg()-parseFloat(c)))};var g=[],a=[];k.A=new q;n.prototype["int"]=function(a,c){la(c)?(a.Oa(parseInt(c,10)),isNaN(a.data)&&(a.data=0)):a.Oa(c)};n.prototype["float"]=function(a,c){la(c)?(a.D(parseFloat(c)),isNaN(a.data)&&(a.data=0)):a.D(c)};n.prototype.random=function(a,c,b){void 0===b?a.D(Math.random()*c):a.D(Math.random()*(b-c)+c)};n.prototype.sqrt=function(a,c){a.D(Math.sqrt(c))};n.prototype.abs=function(a,c){a.D(Math.abs(c))};
n.prototype.round=function(a,c){a.Oa(Math.round(c))};n.prototype.floor=function(a,c){a.Oa(Math.floor(c))};n.prototype.ceil=function(a,c){a.Oa(Math.ceil(c))};n.prototype.sin=function(a,c){a.D(Math.sin(Q(c)))};n.prototype.cos=function(a,c){a.D(Math.cos(Q(c)))};n.prototype.tan=function(a,c){a.D(Math.tan(Q(c)))};n.prototype.asin=function(a,c){a.D(Ha(Math.asin(c)))};n.prototype.acos=function(a,c){a.D(Ha(Math.acos(c)))};n.prototype.atan=function(a,c){a.D(Ha(Math.atan(c)))};n.prototype.exp=function(a,c){a.D(Math.exp(c))};
n.prototype.log10=function(a,c){a.D(Math.log(c)/Math.LN10)};n.prototype.max=function(a){var c=arguments[1];"number"!==typeof c&&(c=0);var b,d,g;b=2;for(d=arguments.length;b<d;b++)g=arguments[b],"number"===typeof g&&c<g&&(c=g);a.D(c)};n.prototype.min=function(a){var c=arguments[1];"number"!==typeof c&&(c=0);var b,d,g;b=2;for(d=arguments.length;b<d;b++)g=arguments[b],"number"===typeof g&&c>g&&(c=g);a.D(c)};n.prototype.kg=function(a){a.D(this.b.kg)};n.prototype.ah=function(a){a.D(this.b.ah)};n.prototype.time=
function(a){a.D(this.b.mb.qa)};n.prototype.$g=function(a){a.Oa(this.b.$g)};n.prototype.Wl=function(a){a.Oa(this.b.Wl)};n.prototype.On=function(a){a.Oa(this.b.On)};n.prototype.cx=function(a,c,b,d,g){a.D(Sa(c,b,d,g))};n.prototype.n=function(a,c,b,d,g){a.D(Ha(Ma(c,b,d,g)))};n.prototype.left=function(a,c,b){a.fc(la(c)?c.substr(0,b):"")};n.prototype.right=function(a,c,b){a.fc(la(c)?c.substr(c.length-b):"")};n.prototype.replace=function(a,c,b,d){la(c)&&la(b)&&la(d)?a.fc(c.replace(new RegExp(fb(b),"gi"),
d)):a.fc(la(c)?c:"")};n.prototype.trim=function(a,c){a.fc(la(c)?c.trim():"")};n.prototype.Uw=function(a){var c=C(Math.random()*(arguments.length-1));a.sA(arguments[c+1])};n.prototype.An=function(a){a.D(this.b.An/1E3)};n.prototype.Lh=function(a){a.D(this.b.Lh)};k.ja=new n;k.eA=function(){var c,d,b,h,p,m,k=this.b.kb();c=0;for(b=this.ad.length;c<b;c++){h=this.ad[c];if(-1===h.time){if(!h.At)continue}else if(h.time>this.b.mb.qa)continue;k.Ib=h.Ii;k.td=h.td;k.ib=0;for(d in h.$c)h.$c.hasOwnProperty(d)&&
(p=this.b.M[parseInt(d,10)].la(),m=h.$c[d],p.ta=m.jt,Ca(p.j,m.Bg),p=m,P(p.Bg),a.push(p));h.Ii.dA();this.b.yn(h.Ha);h.Wq=!0}d=c=0;for(b=this.ad.length;c<b;c++)h=this.ad[c],this.ad[d]=h,h.Wq?(Va(h.$c),P(h.Ha),g.push(h)):d++;Ba(this.ad,d)}})();
(function(){pb=function(d,n){var k=d[1],c=d[3],p=d[4],g=d[5],a=d[6],e=d[7],v=d[8];n.k||(n.k={});n.A||(n.A={});n.ja||(n.ja={});var b=n.k,h=n.A,t=n.ja;c&&(b.tu=function(a,b){return fc(this.x,a,b)},b.uu=function(a,b){return fc(this.y,a,b)},b.Tu=function(){var a=this.u;this.Na();var b=this.Wa;return!(b.right<a.Ia||b.bottom<a.Ja||b.left>a.Ra||b.top>a.Qa)},b.ZA=function(){this.Na();var a=this.Wa,b=this.b.xa;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},b.iB=function(a,b,c){var d=this.la(),
e=d.Cc();if(!e.length)return!1;var l=e[0],g=l,h=Sa(l.x,l.y,b,c),u,p,k;u=1;for(p=e.length;u<p;u++)if(l=e[u],k=Sa(l.x,l.y,b,c),0===a&&k<h||1===a&&k>h)h=k,g=l;d.Oj(g);return!0},h.rw=function(a){this.x!==a&&(this.x=a,this.J())},h.sw=function(a){this.y!==a&&(this.y=a,this.J())},h.dw=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.J()},h.DB=function(a,b){var c=a.Jy(this);if(c){var d;c.Oi?(d=c.Oi(b,!0),c=c.Oi(b,!1)):(d=c.x,c=c.y);if(this.x!==d||this.y!==c)this.x=d,this.y=c,this.J()}},h.bB=
function(a){0!==a&&(this.x+=Math.cos(this.n)*a,this.y+=Math.sin(this.n)*a,this.J())},h.aB=function(a,b){0!==b&&(this.x+=Math.cos(Q(a))*b,this.y+=Math.sin(Q(a))*b,this.J())},t.kn=function(a){a.D(this.x)},t.Ak=function(a){a.D(this.y)},t.kg=function(a){a.D(this.b.tg(this))});p&&(b.SA=function(a,b){return fc(this.width,a,b)},b.PA=function(a,b){return fc(this.height,a,b)},h.qw=function(a){this.width!==a&&(this.width=a,this.J())},h.yB=function(a){this.height!==a&&(this.height=a,this.J())},h.EB=function(a,
b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.J()},t.PB=function(a){a.D(this.width)},t.Gu=function(a){a.D(this.height)},t.KA=function(a){this.Na();a.D(this.Wa.left)},t.MA=function(a){this.Na();a.D(this.Wa.top)},t.LA=function(a){this.Na();a.D(this.Wa.right)},t.JA=function(a){this.Na();a.D(this.Wa.bottom)});g&&(b.ku=function(a,b){return Na(this.n,Q(b))<=Q(a)},b.Lu=function(a){return Qa(this.n,Q(a))},b.Ku=function(a,b){var c=La(a),d=La(b),e=Ja(this.n);return Qa(d,c)?Qa(e,c)&&
!Qa(e,d):!(!Qa(e,c)&&Qa(e,d))},h.Qv=function(a){a=Q(Ia(a));isNaN(a)||this.n===a||(this.n=a,this.J())},h.qB=function(a){0===a||isNaN(a)||(this.n+=Q(a),this.n=Ja(this.n),this.J())},h.rB=function(a){0===a||isNaN(a)||(this.n-=Q(a),this.n=Ja(this.n),this.J())},h.sB=function(a,b){var c=Pa(this.n,Q(b),Q(a));isNaN(c)||this.n===c||(this.n=c,this.J())},h.tB=function(a,b,c){a=Pa(this.n,Math.atan2(c-this.y,b-this.x),Q(a));isNaN(a)||this.n===a||(this.n=a,this.J())},h.HB=function(a,b){var c=Math.atan2(b-this.y,
a-this.x);isNaN(c)||this.n===c||(this.n=c,this.J())},t.ju=function(a){a.D(Ka(this.n))});k||(b.qu=function(a,b,c){return fc(this.Db[a],b,c)},b.XA=function(a){return this.Db[a]},b.jB=function(a,b){var c=this.la(),d=c.Cc();if(!d.length)return!1;var e=d[0],l=e,g=e.Db[b],h,u,p;h=1;for(u=d.length;h<u;h++)if(e=d[h],p=e.Db[b],0===a&&p<g||1===a&&p>g)g=p,l=e;c.Oj(l);return!0},b.hB=function(a){var b,c,d,e,l;if(this.b.sg().xl){l=this.la();if(l.ta)for(l.ta=!1,P(l.j),P(l.da),d=this.j,b=0,c=d.length;b<c;b++)e=d[b],
e.uid===a?l.da.push(e):l.j.push(e);else{d=b=0;for(c=l.j.length;b<c;b++)e=l.j[b],l.j[d]=e,e.uid===a?l.da.push(e):d++;Ba(l.j,d)}this.ud();return!!l.j.length}e=this.b.ug(a);if(!e)return!1;l=this.la();if(!l.ta&&-1===l.j.indexOf(e))return!1;if(this.T)for(a=e.type.Xa,b=0,c=a.length;b<c;b++){if(a[b]===this)return l.Oj(e),this.ud(),!0}else if(e.type===this)return l.Oj(e),this.ud(),!0;return!1},b.yk=function(){return!0},b.gv=function(){return!0},h.Xv=function(a,b){var c=this.Db;ka(c[a])?c[a]=ka(b)?b:parseFloat(b):
la(c[a])&&(c[a]=la(b)?b:b.toString())},h.hu=function(a,b){var c=this.Db;ka(c[a])?c[a]=ka(b)?c[a]+b:c[a]+parseFloat(b):la(c[a])&&(c[a]=la(b)?c[a]+b:c[a]+b.toString())},h.xw=function(a,b){var c=this.Db;ka(c[a])&&(c[a]=ka(b)?c[a]-b:c[a]-parseFloat(b))},h.uB=function(a,b){this.Db[a]=b?1:0},h.NB=function(a){this.Db[a]=1-this.Db[a]},h.xu=function(){this.b.Fe(this)},h.Yu||(h.Yu=function(a){var b,c;try{b=JSON.parse(a)}catch(d){return}this.b.Jl(this,b,!0);this.Nd&&this.Nd();if(this.Y)for(a=0,b=this.Y.length;a<
b;++a)c=this.Y[a],c.Nd&&c.Nd()}),t.UA=function(a){var b=a.Rg.j.length,c,d,e;c=0;for(d=this.b.Td.length;c<d;c++)e=this.b.Td[c],a.Rg.T?0<=e.type.Xa.indexOf(a.Rg)&&b++:e.type===a.Rg&&b++;a.Oa(b)},t.lB=function(a){a.Oa(a.Rg.la().Cc().length)},t.OB=function(a){a.Oa(this.uid)},t.VA=function(a){a.Oa(this.Ri())},t.Yp||(t.Yp=function(a){a.fc(JSON.stringify(this.b.tp(this,!0)))}));a&&(b.Vu=function(){return this.visible},h.mw=function(a){!a!==!this.visible&&(this.visible=!!a,this.b.za=!0)},b.QA=function(a,
b){return fc(lb(100*this.opacity),a,b)},h.cw=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.za=!0)},t.Opacity=function(a){a.D(lb(100*this.opacity))});e&&(b.YA=function(a){return a?this.u===a:!1},b.kB=function(a){var b=this.la(),c=b.Cc();if(!c.length)return!1;var d=c[0],e=d,l,g;l=1;for(g=c.length;l<g;l++)if(d=c[l],0===a){if(d.u.index>e.u.index||d.u.index===e.u.index&&d.qe()>e.qe())e=d}else if(d.u.index<e.u.index||d.u.index===e.u.index&&d.qe()<e.qe())e=d;b.Oj(e);return!0},
h.dB=function(){var a=this.u,b=a.j;b.length&&b[b.length-1]===this||(a.$h(this,!1),a.vi(this,!1),this.b.za=!0)},h.cB=function(){var a=this.u,b=a.j;b.length&&b[0]===this||(a.$h(this,!1),a.Tz(this),this.b.za=!0)},h.Zu=function(a){a&&a!=this.u&&(this.u.$h(this,!0),this.u=a,a.vi(this,!0),this.b.za=!0)},h.Ew=function(a,b){var c=0===a;if(b){var d=b.Ni(this);d&&d.uid!==this.uid&&(this.u.index!==d.u.index&&(this.u.$h(this,!0),this.u=d.u,d.u.vi(this,!0)),this.u.Ez(this,d,c),this.b.za=!0)}},t.Xu=function(a){a.Oa(this.u.As)},
t.$A=function(a){a.fc(this.u.name)},t.QB=function(a){a.Oa(this.qe())});v&&(h.wB=function(a,b){if(this.b.K){var c=this.type.Xn(b);if(!(0>c)){var d=1===a;this.tf[c]!==d&&(this.tf[c]=d,this.ie(),this.b.za=!0)}}},h.xB=function(a,b,c){if(this.b.K){var d=this.type.Xn(a);0>d||(a=this.type.ca[d],d=this.ab[d],b=Math.floor(b),0>b||b>=d.length||(1===this.b.K.Ny(a.ub,b)&&(c/=100),d[b]!==c&&(d[b]=c,a.H&&(this.b.za=!0))))}})};Lb=function(){this.wn=this.qn=!0;this.type.Ek=!0;this.b.za=!0;var d,n,k=this.rn;d=0;for(n=
k.length;d<n;++d)k[d](this);this.u.sd&&this.Na()};Mb=function(d){d&&this.rn.push(d)};Ob=function(){if(this.qn){var d=this.Wa,n=this.cd;d.set(this.x,this.y,this.x+this.width,this.y+this.height);d.offset(-this.Dc*this.width,-this.Ec*this.height);this.n?(d.offset(-this.x,-this.y),n.wt(d,this.n),n.offset(this.x,this.y),n.Mq(d)):n.$j(d);d.normalize();this.qn=!1;this.BA()}};var d=new va(0,0,0,0);Pb=function(){if(this.u.sd){var q=this.u.Xb,n=this.Wa;d.set(q.vc(n.left),q.wc(n.top),q.vc(n.right),q.wc(n.bottom));
this.Nc.Hi(d)||(this.Nc.right<this.Nc.left?q.update(this,null,d):q.update(this,this.Nc,d),this.Nc.mh(d),this.u.ee=!0)}};Qb=function(){if(this.wn&&this.Ie){this.Na();var q=this.type.Ok,n=this.Wa;d.set(q.vc(n.left),q.wc(n.top),q.vc(n.right),q.wc(n.bottom));this.Bf.Hi(d)||(this.Bf.right<this.Bf.left?q.update(this,null,d):q.update(this,this.Bf,d),this.Bf.mh(d),this.wn=!1)}};Nb=function(d,n){return this.Wa.pc(d,n)&&this.cd.pc(d,n)?this.Ca&&!this.Ca.yh()?(this.Ca.fg(this.width,this.height,this.n),this.Ca.pc(d-
this.x,n-this.y)):!0:!1};Fb=function(){this.type.Zm();return this.yg};Rb=function(){this.u.Rp();return this.ke};Sb=function(){P(this.Aa);var d,n,k,c=!0;d=0;for(n=this.tf.length;d<n;d++)this.tf[d]&&(k=this.type.ca[d],this.Aa.push(k),k.Ed||(c=!1));this.cu=!!this.Aa.length;this.gf=c};Gb=function(){return"Inst"+this.bt};sb=function(d){if(d&&d.Fc&&d.type!=this){var n,k,c;n=0;for(k=d.siblings.length;n<k;n++)if(c=d.siblings[n],c.type==this)return c}d=this.la().Cc();return d.length?d[0]:null};tb=function(d){var n=
this.la().Cc();return n.length?n[d.Ri()%n.length]:null};rb=function(){if(this.gi&&!this.T){var d,n;d=0;for(n=this.j.length;d<n;d++)this.j[d].yg=d;var k=d,c=this.b.Td;d=0;for(n=c.length;d<n;++d)c[d].type===this&&(c[d].yg=k++);this.gi=!1}};Db=function(d){if(d<this.j.length)return this.j[d];d-=this.j.length;var n=this.b.Td,k,c;k=0;for(c=n.length;k<c;++k)if(n[k].type===this){if(0===d)return n[k];--d}return null};ub=function(){return this.jf[this.ne]};wb=function(){this.ne++;this.ne===this.jf.length?this.jf.push(new qb(this)):
(this.jf[this.ne].ta=!0,P(this.jf[this.ne].da))};xb=function(){this.ne++;this.ne===this.jf.length&&this.jf.push(new qb(this));var d=this.jf[this.ne],n=this.jf[this.ne-1];n.ta?(d.ta=!0,P(d.da)):(d.ta=!1,Ca(d.j,n.j),Ca(d.da,n.da))};yb=function(){this.ne--};zb=function(d){var n,k,c,p,g,a=0;if(!this.T)for(n=0,k=this.Xa.length;n<k;n++)for(g=this.Xa[n],c=0,p=g.$a.length;c<p;c++){if(d===g.$a[c].name)return this.O.lastBehIndex=a,g.$a[c];a++}n=0;for(k=this.$a.length;n<k;n++){if(d===this.$a[n].name)return this.O.lastBehIndex=
a,this.$a[n];a++}return null};Ab=function(d){return this.pl(d)?this.O.lastBehIndex:-1};Bb=function(d){var n,k;n=0;for(k=this.ca.length;n<k;n++)if(this.ca[n].name===d)return n;return-1};Cb=function(){if(this.Fc&&!this.T){var d,n,k,c,p,g,a;this.Zm();g=this.la();var e=g.ta,v=(d=this.b.kb())&&d.Ib&&d.Ib.md;d=0;for(n=this.Tc.length;d<n;d++)if(p=this.Tc[d],p!==this&&(p.Zm(),a=p.la(),a.ta=e,!e)){P(a.j);k=0;for(c=g.j.length;k<c;++k)a.j[k]=p.Yn(g.j[k].yg);if(v)for(P(a.da),k=0,c=g.da.length;k<c;++k)a.da[k]=
p.Yn(g.da[k].yg)}}};Eb=function(){return"Type"+this.ua};fc=function(d,n,k){if("undefined"===typeof d||"undefined"===typeof k)return!1;switch(n){case 0:return d===k;case 1:return d!==k;case 2:return d<k;case 3:return d<=k;case 4:return d>k;case 5:return d>=k;default:return!1}}})();
var qc={waterbg:{src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nuniform lowp sampler2D samplerBack;\nuniform mediump vec2 destStart;\nuniform mediump vec2 destEnd;\nprecision mediump float;\nuniform float seconds;\nuniform float pixelWidth;\nuniform float pixelHeight;\nconst float PI = 3.1415926535897932;\nuniform float speed;\nuniform float speed_x;\nuniform float speed_y;\nuniform float intensity;\nconst int steps = 8;\nuniform float frequency;\nuniform float angle; // better when a prime\nuniform float delta;\nuniform float intence;\nuniform float emboss;\nfloat col(vec2 coord)\n{\nfloat delta_theta = 2.0 * PI / angle;\nfloat col = 0.0;\nfloat theta = 0.0;\nfor (int i = 0; i < steps; i++)\n{\nvec2 adjc = coord;\ntheta = delta_theta*float(i);\nadjc.x += cos(theta)*seconds*speed + seconds * speed_x;\nadjc.y -= sin(theta)*seconds*speed - seconds * speed_y;\ncol = col + cos( (adjc.x*cos(theta) - adjc.y*sin(theta))*frequency)*intensity;\n}\nreturn cos(col);\n}\nvoid main(void)\n{\nvec2 p = vTex, c1 = p, c2 = p;\nfloat cc1 = col(c1);\nc2.x += (1.0 / pixelWidth) / delta;\nfloat dx = emboss*(cc1-col(c2))/delta;\nc2.x = p.x;\nc2.y += (1.0 / pixelHeight) / delta;\nfloat dy = emboss*(cc1-col(c2))/delta;\nc1.x += dx;\nc1.y = -(c1.y+dy);\nfloat alpha = 1.+dot(dx,dy)*intence;\nc1.y = -c1.y;\nlowp vec4 front = texture2D(samplerFront,c1) * alpha;\nlowp vec4 result;\nif (front.a == 0.0)\nresult = front + texture2D(samplerBack, mix(destStart, destEnd, vTex)) * (1.0 - front.a);\nelse\nresult = front + texture2D(samplerBack, mix(destStart, destEnd, c1)) * (1.0 - front.a);\ngl_FragColor = result;\n}",bl:25,
cl:25,Cn:!0,Ed:!1,nn:!0,fa:[["speed",0,1],["speed_x",0,1],["speed_y",0,1],["intensity",0,0],["frequency",0,0],["angle",0,0],["delta",0,0],["intence",0,0],["emboss",0,1]]}};function uc(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 q(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function n(a){a=a.toLowerCase();return ca.hasOwnProperty(a)&&ca[a].length?ca[a][0].fd():w.destination}function k(){return w.createGain?w.createGain():w.createGainNode()}function c(a){return w.createDelay?w.createDelay(a):w.createDelayNode(a)}function p(a,b){a.start?a.start(b||0):a.noteOn(b||0)}function g(a,b,c,d){a.start?a.start(d||
0,b):a.noteGrainOn(d||0,b,c-b)}function a(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}function e(a,b,c,d,e,f){this.type="filter";this.ae=[a,b,c,d,e,f];this.wa=k();this.ba=k();this.ba.gain.value=f;this.aa=k();this.aa.gain.value=1-f;this.jb=w.createBiquadFilter();this.jb.type="number"===typeof this.jb.type?a:Oc[a];this.jb.frequency.value=b;this.jb.detune&&(this.jb.detune.value=c);this.jb.Q.value=d;this.jb.gain.value=e;this.wa.connect(this.jb);this.wa.connect(this.aa);this.jb.connect(this.ba)}function v(a,
b,d){this.type="delay";this.ae=[a,b,d];this.wa=k();this.ba=k();this.ba.gain.value=d;this.aa=k();this.aa.gain.value=1-d;this.zj=k();this.xd=c(a);this.xd.delayTime.value=a;this.Xk=k();this.Xk.gain.value=b;this.wa.connect(this.zj);this.wa.connect(this.aa);this.zj.connect(this.ba);this.zj.connect(this.xd);this.xd.connect(this.Xk);this.Xk.connect(this.zj)}function b(a,b,c,d){this.type="convolve";this.ae=[b,c,d];this.wa=k();this.ba=k();this.ba.gain.value=c;this.aa=k();this.aa.gain.value=1-c;this.gg=w.createConvolver();
a&&(this.gg.normalize=b,this.gg.buffer=a);this.wa.connect(this.gg);this.wa.connect(this.aa);this.gg.connect(this.ba)}function h(a,b,d,e,f){this.type="flanger";this.ae=[a,b,d,e,f];this.wa=k();this.aa=k();this.aa.gain.value=1-f/2;this.ba=k();this.ba.gain.value=f/2;this.fl=k();this.fl.gain.value=e;this.xd=c(a+b);this.xd.delayTime.value=a;this.Ob=w.createOscillator();this.Ob.frequency.value=d;this.Xc=k();this.Xc.gain.value=b;this.wa.connect(this.xd);this.wa.connect(this.aa);this.xd.connect(this.ba);this.xd.connect(this.fl);
this.fl.connect(this.xd);this.Ob.connect(this.Xc);this.Xc.connect(this.xd.delayTime);p(this.Ob)}function t(a,b,c,d,e,f){this.type="phaser";this.ae=[a,b,c,d,e,f];this.wa=k();this.aa=k();this.aa.gain.value=1-f/2;this.ba=k();this.ba.gain.value=f/2;this.jb=w.createBiquadFilter();this.jb.type="number"===typeof this.jb.type?7:"allpass";this.jb.frequency.value=a;this.jb.detune&&(this.jb.detune.value=b);this.jb.Q.value=c;this.Ob=w.createOscillator();this.Ob.frequency.value=e;this.Xc=k();this.Xc.gain.value=
d;this.wa.connect(this.jb);this.wa.connect(this.aa);this.jb.connect(this.ba);this.Ob.connect(this.Xc);this.Xc.connect(this.jb.frequency);p(this.Ob)}function m(a){this.type="gain";this.ae=[a];this.ya=k();this.ya.gain.value=a}function D(a,b){this.type="tremolo";this.ae=[a,b];this.ya=k();this.ya.gain.value=1-b/2;this.Ob=w.createOscillator();this.Ob.frequency.value=a;this.Xc=k();this.Xc.gain.value=b/2;this.Ob.connect(this.Xc);this.Xc.connect(this.ya.gain);p(this.Ob)}function x(a,b){this.type="ringmod";
this.ae=[a,b];this.wa=k();this.ba=k();this.ba.gain.value=b;this.aa=k();this.aa.gain.value=1-b;this.Yj=k();this.Yj.gain.value=0;this.Ob=w.createOscillator();this.Ob.frequency.value=a;this.Ob.connect(this.Yj.gain);p(this.Ob);this.wa.connect(this.Yj);this.wa.connect(this.aa);this.Yj.connect(this.ba)}function r(a,b,c,d,e){this.type="distortion";this.ae=[a,b,c,d,e];this.wa=k();this.mm=k();this.lm=k();this.lA(c,Math.pow(10,d/20));this.ba=k();this.ba.gain.value=e;this.aa=k();this.aa.gain.value=1-e;this.bn=
w.createWaveShaper();this.Vk=new Float32Array(65536);this.zy(a,b);this.bn.Vk=this.Vk;this.wa.connect(this.mm);this.wa.connect(this.aa);this.mm.connect(this.bn);this.bn.connect(this.lm);this.lm.connect(this.ba)}function f(a,b,c,d,e){this.type="compressor";this.ae=[a,b,c,d,e];this.ya=w.createDynamicsCompressor();try{this.ya.threshold.value=a,this.ya.knee.value=b,this.ya.ratio.value=c,this.ya.attack.value=d,this.ya.release.value=e}catch(f){}}function l(a,b){this.type="analyser";this.ae=[a,b];this.ya=
w.createAnalyser();this.ya.fftSize=a;this.ya.smoothingTimeConstant=b;this.xy=new Float32Array(this.ya.frequencyBinCount);this.zt=new Uint8Array(a);this.Mj=0}function O(){this.Ea=null;this.Ml=0}function y(a,b){this.src=a;this.ra=z;this.Ad=b;this.Dk=!1;var c=this;this.Qo=this.ep=null;this.Xh=[];this.ym=0;this.Vp=this.dl=this.Ft=this.gm=!1;1===z&&b&&!ab&&(this.ra=0,this.ep=k());this.He=this.Ba=null;var d;switch(this.ra){case 0:this.Ba=new Audio;this.Ba.crossOrigin="anonymous";this.Ba.addEventListener("canplaythrough",
function(){c.Vp=!0});1===z&&w.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.Ft=!0,this.Ba.addEventListener("canplay",function(){c.Qo||(c.Qo=w.createMediaElementSource(c.Ba),c.Qo.connect(c.ep))}));this.Ba.autoplay=!1;this.Ba.dC="auto";this.Ba.src=a;break;case 1:R.hj?R.er(a,function(a){c.He=a;c.Vq()},function(){c.dl=!0}):(d=new XMLHttpRequest,d.open("GET",a,!0),d.responseType="arraybuffer",d.onload=function(){c.He=d.response;c.Vq()},d.onerror=function(){c.dl=!0},d.send());break;
case 2:this.Ba=!0;break;case 3:this.Ba=!0}}function u(a,b){var c=this;this.tag=b;this.wb=this.pe=!0;this.src=a.src;this.buffer=a;this.ra=z;this.Ad=a.Ad;this.playbackRate=1;this.vh=!0;this.Wc=this.od=!1;this.Oc=0;this.ij=this.Ah=this.re=!1;this.volume=1;this.cp=function(a){if(!c.Wc&&!c.od){var b=this;b||(b=a.target);b===c.Bk&&(c.vh=!0,c.wb=!0,S=c.tag,R.trigger(uc.prototype.k.zk,W))}};this.Bk=null;this.wh=1===K&&!this.Ad||2===K;this.Ph=1;this.startTime=this.wh?R.mb.qa:R.qf.qa;this.rb=this.Cb=null;this.te=
!1;this.Ub=null;this.Os=this.Ns=this.Ms=this.Ls=this.Qs=this.Ps=0;this.q=null;var d=!1;1!==this.ra||0!==this.buffer.ra||this.buffer.Ft||(this.ra=0);switch(this.ra){case 0:this.Ad?(this.q=a.Ba,d=!a.Dk,a.Dk=!0):(this.q=new Audio,this.q.crossOrigin="anonymous",this.q.autoplay=!1,this.q.src=a.Ba.src,d=!0);d&&this.q.addEventListener("ended",function(){S=c.tag;c.wb=!0;R.trigger(uc.prototype.k.zk,W)});break;case 1:this.Cb=k();this.Cb.connect(n(b));1===this.buffer.ra?a.Ba&&(this.q=w.createBufferSource(),
this.q.buffer=a.Ba,this.q.connect(this.Cb)):(this.q=this.buffer.Ba,this.buffer.ep.connect(this.Cb),this.buffer.Dk||(this.buffer.Dk=!0,this.buffer.Ba.addEventListener("ended",function(){S=c.tag;c.wb=!0;R.trigger(uc.prototype.k.zk,W)})));break;case 2:this.q=new window.Media(V+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(c.vh=!0,c.wb=!0,S=c.tag,R.trigger(uc.prototype.k.zk,W))});break;case 3:this.q=!0}}function A(a,b){var c=a.Eg()?1:0,d=b.Eg()?1:0;return c===d?0:c<d?1:-1}function M(a,
b){P(pa);if(a.length){var c,d,e;c=0;for(d=E.length;c<d;c++)e=E[c],mb(a,e.tag)&&pa.push(e);b&&pa.sort(A)}else L&&!L.xg()&&(P(pa),pa[0]=L)}function Z(a,b){ca.hasOwnProperty(a)?ca[a].push(b):ca[a]=[b];var c,d,e,f,l=w.destination;if(ca.hasOwnProperty(a)&&(e=ca[a],e.length))for(l=e[0].fd(),c=0,d=e.length;c<d;c++)f=e[c],c+1===d?f.vd(w.destination):f.vd(e[c+1].fd());M(a);c=0;for(d=pa.length;c<d;c++)pa[c].Yz(l);Oa&&Ib===a&&(Oa.disconnect(),Oa.connect(l))}function B(){}function J(){}function F(){}var T=uc.prototype;
T.Z=function(a){this.La=a;this.b=a.b};T.Z.prototype.P=function(){};var R=null,W=null,S="",V="",z=0,w=null,G=[],E=[],L=null,I=!1,K=0,N=!1,X=1,H=0,ba=0,ea=!1,ya=1,Hb=1,Hc=10,Ic=1E4,Jc=1,Oa=null,Ib="",bb=!1,cb=[],ab=!1,ca={},Oc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");e.prototype.vd=function(a){this.ba.disconnect();this.ba.connect(a);this.aa.disconnect();this.aa.connect(a)};e.prototype.remove=function(){this.wa.disconnect();this.jb.disconnect();this.ba.disconnect();
this.aa.disconnect()};e.prototype.fd=function(){return this.wa};v.prototype.vd=function(a){this.ba.disconnect();this.ba.connect(a);this.aa.disconnect();this.aa.connect(a)};v.prototype.remove=function(){this.wa.disconnect();this.zj.disconnect();this.xd.disconnect();this.Xk.disconnect();this.ba.disconnect();this.aa.disconnect()};v.prototype.fd=function(){return this.wa};b.prototype.vd=function(a){this.ba.disconnect();this.ba.connect(a);this.aa.disconnect();this.aa.connect(a)};b.prototype.remove=function(){this.wa.disconnect();
this.gg.disconnect();this.ba.disconnect();this.aa.disconnect()};b.prototype.fd=function(){return this.wa};h.prototype.vd=function(a){this.aa.disconnect();this.aa.connect(a);this.ba.disconnect();this.ba.connect(a)};h.prototype.remove=function(){this.wa.disconnect();this.xd.disconnect();this.Ob.disconnect();this.Xc.disconnect();this.aa.disconnect();this.ba.disconnect();this.fl.disconnect()};h.prototype.fd=function(){return this.wa};t.prototype.vd=function(a){this.aa.disconnect();this.aa.connect(a);
this.ba.disconnect();this.ba.connect(a)};t.prototype.remove=function(){this.wa.disconnect();this.jb.disconnect();this.Ob.disconnect();this.Xc.disconnect();this.aa.disconnect();this.ba.disconnect()};t.prototype.fd=function(){return this.wa};m.prototype.vd=function(a){this.ya.disconnect();this.ya.connect(a)};m.prototype.remove=function(){this.ya.disconnect()};m.prototype.fd=function(){return this.ya};D.prototype.vd=function(a){this.ya.disconnect();this.ya.connect(a)};D.prototype.remove=function(){this.Ob.disconnect();
this.Xc.disconnect();this.ya.disconnect()};D.prototype.fd=function(){return this.ya};x.prototype.vd=function(a){this.ba.disconnect();this.ba.connect(a);this.aa.disconnect();this.aa.connect(a)};x.prototype.remove=function(){this.Ob.disconnect();this.Yj.disconnect();this.wa.disconnect();this.ba.disconnect();this.aa.disconnect()};x.prototype.fd=function(){return this.wa};r.prototype.lA=function(a,b){.01>a&&(a=.01);this.mm.gain.value=a;this.lm.gain.value=Math.pow(1/a,.6)*b};r.prototype.shape=function(a,
b,c){var d=1.05*c*b-b;c=0>a?-1:1;a=0>a?-a:a;b=a<b?a:b+d*(1-Math.exp(-(1/d)*(a-b)));return b*c};r.prototype.zy=function(a,b){for(var c=Math.pow(10,a/20),d=Math.pow(10,b/20),e=0,f=0;32768>f;++f)e=f/32768,e=this.shape(e,c,d),this.Vk[32768+f]=e,this.Vk[32768-f-1]=-e};r.prototype.vd=function(a){this.ba.disconnect();this.ba.connect(a);this.aa.disconnect();this.aa.connect(a)};r.prototype.remove=function(){this.wa.disconnect();this.mm.disconnect();this.bn.disconnect();this.lm.disconnect();this.ba.disconnect();
this.aa.disconnect()};r.prototype.fd=function(){return this.wa};f.prototype.vd=function(a){this.ya.disconnect();this.ya.connect(a)};f.prototype.remove=function(){this.ya.disconnect()};f.prototype.fd=function(){return this.ya};l.prototype.Pa=function(){this.ya.getFloatFrequencyData(this.xy);this.ya.getByteTimeDomainData(this.zt);for(var a=this.ya.fftSize,b=0,c=this.Mj=0,d=0;b<a;b++)d=(this.zt[b]-128)/128,0>d&&(d=-d),this.Mj<d&&(this.Mj=d),c+=d*d;this.Mj=q(this.Mj);q(Math.sqrt(c/a))};l.prototype.vd=
function(a){this.ya.disconnect();this.ya.connect(a)};l.prototype.remove=function(){this.ya.disconnect()};l.prototype.fd=function(){return this.ya};O.prototype.bi=function(a){this.Ea=a};O.prototype.ul=function(){return!!this.Ea};O.prototype.Pa=function(){};var vb=!1;y.prototype.Zz=function(){var a,b,c,d;c=a=0;for(b=E.length;a<b;++a)d=E[a],E[c]=d,d.buffer===this?d.stop():++c;E.length=c;this.He=this.Ba=null};y.prototype.Vq=function(){if(!this.Ba&&this.He){var a=this;if(w.decodeAudioData)w.decodeAudioData(this.He,
function(b){a.Ba=b;a.He=null;var c,d,e;if(ja(a.im)||N)ja(a.Qk)||(c=a.Qk.gg,c.normalize=a.zs,c.buffer=b);else if(a.Xh.length){c=0;for(d=a.Xh.length;c<d;c++){b=a.Xh[c];e=new u(a,b.It);e.xp(!0);if("undefined"!==typeof b.Bs&&(b.Ea=R.ug(b.Bs),!b.Ea))continue;if(b.Ea){var f=Ra(b.Ea.x,b.Ea.y,-b.Ea.u.Sb(),H,ba,!0),l=Ra(b.Ea.x,b.Ea.y,-b.Ea.u.Sb(),H,ba,!1);e.wp(f,l,Ha(b.Ea.n-b.Ea.u.Sb()),b.io,b.So,b.Vo);e.bi(b.Ea)}else e.wp(b.x,b.y,b.Fw,b.io,b.So,b.Vo);e.play(a.Ko,a.Tp,a.ym);a.gm&&e.pause();E.push(e)}P(a.Xh)}else e=
new u(a,a.im||""),e.play(a.Ko,a.Tp,a.ym),a.gm&&e.pause(),E.push(e)},function(){a.dl=!0});else if(this.Ba=w.createBuffer(this.He,!1),this.He=null,ja(this.im)||N)ja(this.Qk)||(b=this.Qk.gg,b.normalize=this.zs,b.buffer=this.Ba);else{var b=new u(this,this.im);b.play(this.Ko,this.Tp,this.ym);this.gm&&b.pause();E.push(b)}}};y.prototype.Fr=function(){switch(this.ra){case 0:var a=4<=this.Ba.readyState;a&&(this.Vp=!0);return a||this.Vp;case 1:return!!this.He||!!this.Ba;case 2:return!0;case 3:return!0}return!1};
y.prototype.Gr=function(){switch(this.ra){case 0:return this.Fr();case 1:return!!this.Ba;case 2:return!0;case 3:return!0}return!1};y.prototype.sr=function(){switch(this.ra){case 0:return!!this.Ba.error;case 1:return this.dl}return!1};u.prototype.xg=function(){switch(this.ra){case 0:return this.q.ended;case 1:return 1===this.buffer.ra?!this.pe&&!this.wb&&this.q.loop||this.Wc?!1:this.vh:this.q.ended;case 2:return this.vh;case 3:!0}return!0};u.prototype.Sw=function(){return this.pe||this.wb?!0:this.xg()};
u.prototype.xp=function(a){1===z&&(!this.te&&a?this.Cb&&(this.rb||(this.rb=w.createPanner(),this.rb.panningModel="number"===typeof this.rb.panningModel?ya:["equalpower","HRTF","soundfield"][ya],this.rb.distanceModel="number"===typeof this.rb.distanceModel?Hb:["linear","inverse","exponential"][Hb],this.rb.refDistance=Hc,this.rb.maxDistance=Ic,this.rb.rolloffFactor=Jc),this.Cb.disconnect(),this.Cb.connect(this.rb),this.rb.connect(n(this.tag)),this.te=!0):this.te&&!a&&this.Cb&&(this.rb.disconnect(),
this.Cb.disconnect(),this.Cb.connect(n(this.tag)),this.te=!1))};u.prototype.wp=function(a,b,c,d,e,f){this.te&&1===z&&(this.rb.setPosition(a,b,0),this.rb.setOrientation(Math.cos(Q(c)),Math.sin(Q(c)),0),this.rb.coneInnerAngle=d,this.rb.coneOuterAngle=e,this.rb.coneOuterGain=f,this.Ps=a,this.Qs=b,this.Ls=c,this.Ms=d,this.Ns=e,this.Os=f)};u.prototype.bi=function(a){this.te&&1===z&&(this.Ub||(this.Ub=new O),this.Ub.bi(a))};u.prototype.Pa=function(a){if(this.te&&1===z&&this.Ub&&this.Ub.ul()&&this.Eg()){this.Ub.Pa(a);
a=this.Ub.Ea;var b=Ra(a.x,a.y,-a.u.Sb(),H,ba,!0),c=Ra(a.x,a.y,-a.u.Sb(),H,ba,!1);this.rb.setPosition(b,c,0);b=0;"undefined"!==typeof this.Ub.Ea.n&&(b=a.n-a.u.Sb(),this.rb.setOrientation(Math.cos(b),Math.sin(b),0))}};u.prototype.play=function(a,b,c,d){var e=this.q;this.re=a;this.volume=b;c=c||0;d=d||0;switch(this.ra){case 0:1!==e.playbackRate&&(e.playbackRate=1);e.volume!==b*X&&(e.volume=b*X);e.loop!==a&&(e.loop=a);e.muted&&(e.muted=!1);if(e.currentTime!==c)try{e.currentTime=c}catch(f){}if(this.Ad&&
bb&&!R.eb)cb.push(this);else try{this.q.play()}catch(l){console&&console.log&&console.log("[C2] WARNING: exception trying to play audio '"+this.buffer.src+"': ",l)}break;case 1:this.muted=!1;this.Ph=1;if(1===this.buffer.ra)this.Cb.gain.value=b*X,this.pe||(this.q=w.createBufferSource(),this.q.buffer=this.buffer.Ba,this.q.connect(this.Cb)),this.q.onended=this.cp,this.Bk=this.q,this.q.loop=a,this.vh=!1,0===c?p(this.q,d):g(this.q,c,this.Hf(),d);else{1!==e.playbackRate&&(e.playbackRate=1);e.loop!==a&&
(e.loop=a);e.volume=b*X;if(e.currentTime!==c)try{e.currentTime=c}catch(h){}this.Ad&&bb&&!R.eb?cb.push(this):e.play()}break;case 2:(!this.pe&&this.wb||0!==c)&&e.seekTo(c);e.play();this.vh=!1;break;case 3:R.Tb?AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=1;this.startTime=(this.wh?R.mb.qa:R.qf.qa)-c;this.Wc=this.wb=this.pe=!1};u.prototype.stop=function(){switch(this.ra){case 0:this.q.paused||this.q.pause();break;case 1:1===this.buffer.ra?a(this.q):this.q.paused||
this.q.pause();break;case 2:this.q.stop();break;case 3:R.Tb&&AppMobi.context.stopSound(this.src)}this.wb=!0;this.Wc=!1};u.prototype.pause=function(){if(!(this.pe||this.wb||this.xg()||this.Wc)){switch(this.ra){case 0:this.q.paused||this.q.pause();break;case 1:1===this.buffer.ra?(this.Oc=this.Zn(!0),this.re&&(this.Oc=this.Oc%this.Hf()),this.Wc=!0,a(this.q)):this.q.paused||this.q.pause();break;case 2:this.q.pause();break;case 3:R.Tb&&AppMobi.context.stopSound(this.src)}this.Wc=!0}};u.prototype.cA=function(){if(!(this.pe||
this.wb||this.xg())&&this.Wc){switch(this.ra){case 0:this.q.play();break;case 1:1===this.buffer.ra?(this.q=w.createBufferSource(),this.q.buffer=this.buffer.Ba,this.q.connect(this.Cb),this.q.onended=this.cp,this.Bk=this.q,this.q.loop=this.re,this.Cb.gain.value=X*this.volume*this.Ph,this.$m(),this.startTime=(this.wh?R.mb.qa:R.qf.qa)-this.Oc/(this.playbackRate||.001),g(this.q,this.Oc,this.Hf())):this.q.play();break;case 2:this.q.play();break;case 3:R.Tb&&AppMobi.context.resumeSound(this.src)}this.Wc=
!1}};u.prototype.seek=function(a){if(!(this.pe||this.wb||this.xg()))switch(this.ra){case 0:try{this.q.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.ra)this.Wc?this.Oc=a:(this.pause(),this.Oc=a,this.cA());else try{this.q.currentTime=a}catch(c){}break;case 3:R.Tb&&AppMobi.context.seekSound(this.src,a)}};u.prototype.Yz=function(a){1===this.ra&&(this.te?(this.rb.disconnect(),this.rb.connect(a)):(this.Cb.disconnect(),this.Cb.connect(a)))};u.prototype.Hf=function(){var a=0;switch(this.ra){case 0:"undefined"!==
typeof this.q.duration&&(a=this.q.duration);break;case 1:a=this.buffer.Ba.duration;break;case 2:a=this.q.getDuration();break;case 3:R.Tb&&(a=AppMobi.context.getDurationSound(this.src))}return a};u.prototype.Zn=function(a){var b=this.Hf(),c=0;switch(this.ra){case 0:"undefined"!==typeof this.q.currentTime&&(c=this.q.currentTime);break;case 1:if(1===this.buffer.ra){if(this.Wc)return this.Oc;c=(this.wh?R.mb.qa:R.qf.qa)-this.startTime}else"undefined"!==typeof this.q.currentTime&&(c=this.q.currentTime);
break;case 3:R.Tb&&(c=AppMobi.context.getPlaybackTimeSound(this.src))}a&&(c*=this.playbackRate);!this.re&&c>b&&(c=b);return c};u.prototype.Eg=function(){return!this.Wc&&!this.pe&&!this.wb&&!this.xg()};u.prototype.tA=function(){return!this.pe&&!this.wb&&!this.xg()};u.prototype.rA=function(a){this.volume=a;this.au()};u.prototype.au=function(){var a=this.volume*X;isFinite(a)||(a=0);switch(this.ra){case 0:"undefined"!==typeof this.q.volume&&this.q.volume!==a&&(this.q.volume=a);break;case 1:1===this.buffer.ra?
this.Cb.gain.value=a*this.Ph:"undefined"!==typeof this.q.volume&&this.q.volume!==a&&(this.q.volume=a)}};u.prototype.$k=function(a){switch(this.ra){case 0:this.q.muted!==!!a&&(this.q.muted=!!a);break;case 1:1===this.buffer.ra?(this.Ph=a?0:1,this.Cb.gain.value=X*this.volume*this.Ph):this.q.muted!==!!a&&(this.q.muted=!!a)}};u.prototype.nA=function(){this.Ah=!0;this.$k(this.Ah||this.ij)};u.prototype.pt=function(a){this.ij=!!a;this.$k(this.Ah||this.ij)};u.prototype.$m=function(){var a=this.playbackRate;
this.wh&&(a*=R.ah);switch(this.ra){case 0:this.q.playbackRate!==a&&(this.q.playbackRate=a);break;case 1:1===this.buffer.ra?this.q.playbackRate.value!==a&&(this.q.playbackRate.value=a):this.q.playbackRate!==a&&(this.q.playbackRate=a)}};u.prototype.pA=function(b){switch(this.ra){case 0:b?this.Eg()?(this.od=!0,this.q.pause()):this.od=!1:this.od&&(this.q.play(),this.od=!1);break;case 1:b?this.Eg()?(this.od=!0,1===this.buffer.ra?(this.Oc=this.Zn(!0),this.re&&(this.Oc=this.Oc%this.Hf()),a(this.q)):this.q.pause()):
this.od=!1:this.od&&(1===this.buffer.ra?(this.q=w.createBufferSource(),this.q.buffer=this.buffer.Ba,this.q.connect(this.Cb),this.q.onended=this.cp,this.Bk=this.q,this.q.loop=this.re,this.Cb.gain.value=X*this.volume*this.Ph,this.$m(),this.startTime=(this.wh?R.mb.qa:R.qf.qa)-this.Oc/(this.playbackRate||.001),g(this.q,this.Oc,this.Hf())):this.q.play(),this.od=!1);break;case 2:b?this.Eg()?(this.q.pause(),this.od=!0):this.od=!1:this.od&&(this.od=!1,this.q.play())}};T.S=function(a){function b(){if(!ea&&
w.createBuffer){var a=w.createBuffer(1,220,22050),c=w.createBufferSource();c.buffer=a;c.connect(w.destination);p(c)}}this.type=a;R=this.b=a.b;W=this;this.Ic=null;this.rj=-600;this.b.hj&&(ab=!0);!(this.b.Dh||this.b.yl&&(this.b.Zi||this.b.zl))||this.b.$i||this.b.Ya||this.b.oo||ab||(bb=!0);w=null;"undefined"!==typeof AudioContext?(z=1,w=new AudioContext):"undefined"!==typeof webkitAudioContext&&(z=1,w=new webkitAudioContext);this.b.Dh&&w&&(w.close&&w.close(),"undefined"!==typeof AudioContext?w=new AudioContext:
"undefined"!==typeof webkitAudioContext&&(w=new webkitAudioContext));bb?document.addEventListener("touchend",function(){!vb&&w&&(b(),vb=!0);var a,c,d;if(bb){if(!N)for(a=0,c=cb.length;a<c;++a)d=cb[a],d.wb||d.Wc||d.q.play();P(cb)}},!0):ab&&document.addEventListener("touchend",function(){!vb&&w&&(b(),vb=!0)},!0);1!==z&&(this.b.Vc&&"undefined"!==typeof window.Media?z=2:this.b.Er&&(z=3));2===z&&(V=location.href,a=V.lastIndexOf("/"),-1<a&&(V=V.substr(0,a+1)),V=V.replace("file://",""));if(this.b.sz&&this.b.uz&&
"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.Fe(this);else{if(this.b.Tb)I=this.b.yl;else try{I=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(c){I=!1}this.b.mk(this)}};var za=T.S.prototype;za.P=function(){this.b.kh=this;K=this.C[0];this.ef=this.C[1];this.Oz=0!==this.C[2];this.xs=0;ya=this.C[3];Hb=this.C[4];this.rj=-this.C[5];Hc=this.C[6];Ic=this.C[7];Jc=this.C[8];this.Ic=
new O;var a=this.b.W||this.b.width,b=this.b.V||this.b.height;1===z&&(w.listener.setPosition(a/2,b/2,this.rj),w.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,b){Oa&&Oa.disconnect();Ib=b.toLowerCase();Oa=w.createMediaStreamSource(a);Oa.connect(n(Ib))});this.b.Fq(function(a){W.Jz(a)});var c=this;this.b.Ck(function(a){c.Ij(a)})};za.Ij=function(a){var b,c,d;b=0;for(c=E.length;b<c;b++)d=E[b],d.Ub&&d.Ub.Ea===a&&(d.Ub.Ea=null,d.te&&d.Eg()&&d.re&&d.stop());this.Ic.Ea===a&&(this.Ic.Ea=
null)};za.tb=function(){var a={silent:N,masterVolume:X,listenerZ:this.rj,listenerUid:this.Ic.ul()?this.Ic.Ea.uid:-1,playing:[],effects:{}},b=a.playing,c,d,e,f,l,g;c=0;for(d=E.length;c<d;c++)e=E[c],!e.tA()||3===this.ef||e.Ad&&1===this.ef||!e.Ad&&2===this.ef||(f=e.Zn(),e.re&&(f=f%e.Hf()),f={tag:e.tag,buffersrc:e.buffer.src,is_music:e.Ad,playbackTime:f,volume:e.volume,looping:e.re,muted:e.Ah,playbackRate:e.playbackRate,paused:e.Wc,resume_position:e.Oc},e.te&&(f.pan={},g=f.pan,e.Ub&&e.Ub.ul()?g.objUid=
e.Ub.Ea.uid:(g.x=e.Ps,g.y=e.Qs,g.a=e.Ls),g.ia=e.Ms,g.oa=e.Ns,g.og=e.Os),b.push(f));b=a.effects;for(l in ca)if(ca.hasOwnProperty(l)){e=[];c=0;for(d=ca[l].length;c<d;c++)e.push({type:ca[l][c].type,params:ca[l][c].ae});b[l]=e}return a};var db=[];za.Mb=function(a){var c=a.silent;X=a.masterVolume;this.rj=a.listenerZ;this.Ic.bi(null);var d=a.listenerUid;-1!==d&&(this.Ic.Ml=d,db.push(this.Ic));var d=a.playing,g,u,p,k,n,A,q,M,B,y,J;if(3!==this.ef)for(g=0,u=E.length;g<u;g++)B=E[g],B.Ad&&1===this.ef||(B.Ad||
2!==this.ef)&&B.stop();for(n in ca)if(ca.hasOwnProperty(n))for(g=0,u=ca[n].length;g<u;g++)ca[n][g].remove();Va(ca);for(n in a.effects)if(a.effects.hasOwnProperty(n))for(A=a.effects[n],g=0,u=A.length;g<u;g++)switch(p=A[g].type,y=A[g].params,p){case "filter":Z(n,new e(y[0],y[1],y[2],y[3],y[4],y[5]));break;case "delay":Z(n,new v(y[0],y[1],y[2]));break;case "convolve":p=y[2];B=this.ol(p,!1);B.Ba?p=new b(B.Ba,y[0],y[1],p):(p=new b(null,y[0],y[1],p),B.zs=y[0],B.Qk=p);Z(n,p);break;case "flanger":Z(n,new h(y[0],
y[1],y[2],y[3],y[4]));break;case "phaser":Z(n,new t(y[0],y[1],y[2],y[3],y[4],y[5]));break;case "gain":Z(n,new m(y[0]));break;case "tremolo":Z(n,new D(y[0],y[1]));break;case "ringmod":Z(n,new x(y[0],y[1]));break;case "distortion":Z(n,new r(y[0],y[1],y[2],y[3],y[4]));break;case "compressor":Z(n,new f(y[0],y[1],y[2],y[3],y[4]));break;case "analyser":Z(n,new l(y[0],y[1]))}g=0;for(u=d.length;g<u;g++)3===this.ef||(a=d[g],p=a.buffersrc,k=a.is_music,n=a.tag,A=a.playbackTime,q=a.looping,M=a.volume,J=(y=a.pan)&&
y.hasOwnProperty("objUid")?y.objUid:-1,k&&1===this.ef)||!k&&2===this.ef||((B=this.Tn(p,n,k,q,M))?(B.Oc=a.resume_position,B.xp(!!y),B.play(q,M,A),B.$m(),B.au(),B.$k(B.Ah||B.ij),a.paused&&B.pause(),a.muted&&B.nA(),B.$k(B.Ah||B.ij),y&&(-1!==J?(B.Ub=B.Ub||new O,B.Ub.Ml=J,db.push(B.Ub)):B.wp(y.x,y.y,y.a,y.ia,y.oa,y.og))):(B=this.ol(p,k),B.ym=A,B.gm=a.paused,y&&(-1!==J?B.Xh.push({Bs:J,io:y.ia,So:y.oa,Vo:y.og,It:n}):B.Xh.push({x:y.x,y:y.y,Fw:y.a,io:y.ia,So:y.oa,Vo:y.og,It:n}))));if(c&&!N){g=0;for(u=E.length;g<
u;g++)E[g].pt(!0);N=!0}else if(!c&&N){g=0;for(u=E.length;g<u;g++)E[g].pt(!1);N=!1}};za.Nd=function(){var a,b,c,d;a=0;for(b=db.length;a<b;a++)c=db[a],d=this.b.ug(c.Ml),c.bi(d),c.Ml=-1,d&&(H=d.x,ba=d.y);P(db)};za.Jz=function(a){if(!this.Oz){!a&&w&&w.resume&&(w.resume(),ea=!1);var b,c;b=0;for(c=E.length;b<c;b++)E[b].pA(a);a&&w&&w.suspend&&(w.suspend(),ea=!0)}};za.Pa=function(){var a=this.b.kg,b,c,d;b=0;for(c=E.length;b<c;b++)d=E[b],d.Pa(a),0!==K&&d.$m();var e,f;for(e in ca)if(ca.hasOwnProperty(e))for(d=
ca[e],b=0,c=d.length;b<c;b++)f=d[b],f.Pa&&f.Pa();1===z&&this.Ic.ul()&&(this.Ic.Pa(a),H=this.Ic.Ea.x,ba=this.Ic.Ea.y,w.listener.setPosition(this.Ic.Ea.x,this.Ic.Ea.y,this.rj))};var eb=[];za.oA=function(a){var b,c,d,e,f,g=0;b=0;for(c=a.length;b<c;++b)if(d=a[b],e=d[0],d=2*d[1],(f=4<e.length&&".ogg"===e.substr(e.length-4))&&I||!f&&!I)eb.push({filename:e,size:d,Ea:null}),g+=d;return g};za.wA=function(){var a,b,c,d;a=0;for(b=eb.length;a<b;++a)c=eb[a],d=this.b.gl+c.filename,c.Ea=this.ol(d,!1)};za.Ky=function(){var a=
0,b,c,d;b=0;for(c=eb.length;b<c;++b)d=eb[b],d.Ea.Gr()||d.Ea.sr()||this.b.Ya||this.b.zl?a+=d.size:d.Ea.Fr()&&(a+=Math.floor(d.size/2));return a};za.$z=function(){var a,b,c,d;c=a=0;for(b=G.length;a<b;++a)d=G[a],G[c]=d,d.Ad?d.Zz():++c;G.length=c};za.ol=function(a,b){var c,d,e,f=null;c=0;for(d=G.length;c<d;c++)if(e=G[c],e.src===a){f=e;break}f||(ab&&b&&this.$z(),f=new y(a,b),G.push(f));return f};za.Tn=function(a,b,c,d,e){var f,g,l;f=0;for(g=E.length;f<g;f++)if(l=E[f],l.src===a&&(l.Sw()||c))return l.tag=
b,l;a=this.ol(a,c);if(!a.Ba)return"<preload>"!==b&&(a.im=b,a.Ko=d,a.Tp=e),null;l=new u(a,b);E.push(l);return l};var pa=[];B.prototype.zk=function(a){return mb(S,a)};B.prototype.Lv=function(){var a,b;a=0;for(b=G.length;a<b;a++)if(!G[a].Gr()&&!G[a].sr())return!1;return!0};T.k=new B;J.prototype.Play=function(a,b,c,e){!N&&(c=d(c),L=this.Tn(this.b.gl+a[0]+(I?".ogg":".m4a"),e,a[1],0!==b,c))&&(L.xp(!1),L.play(0!==b,c,0,this.xs),this.xs=0)};J.prototype.ow=function(a,b){M(a);var c=d(b),e,f;e=0;for(f=pa.length;e<
f;e++)pa[e].rA(c)};J.prototype.Kv=function(a){if(!N){var b=a[1];a=this.b.gl+a[0]+(I?".ogg":".m4a");3===z?this.b.Tb?AppMobi.context.loadSound(a):AppMobi.player.loadSound(a):2!==z&&this.Tn(a,"<preload>",b,!1)}};J.prototype.jn=function(a){M(a);var b;a=0;for(b=pa.length;a<b;a++)pa[a].stop()};J.prototype.Zv=function(a){a&&1===z&&(a=a.Ni())&&(this.Ic.bi(a),H=a.x,ba=a.y)};T.A=new J;F.prototype.yu=function(a,b){M(b,!0);pa.length?a.D(pa[0].Hf()):a.D(0)};F.prototype.Dw=function(a,b){M(b,!0);pa.length?a.D(q(pa[0].volume)):
a.D(0)};T.ja=new F})();function vc(d){this.b=d}
(function(){function d(){}var q=vc.prototype;q.Z=function(d){this.La=d;this.b=d.b};q.Z.prototype.P=function(){};q.S=function(d){this.type=d;this.b=d.b};q.S.prototype.P=function(){var d=this;window.addEventListener("resize",function(){d.b.trigger(vc.prototype.k.Av,d)});"undefined"!==typeof navigator.onLine&&(window.addEventListener("online",function(){d.b.trigger(vc.prototype.k.xv,d)}),window.addEventListener("offline",function(){d.b.trigger(vc.prototype.k.wv,d)}));"undefined"!==typeof window.applicationCache&&
(window.applicationCache.addEventListener("updateready",function(){d.b.Lh=1;d.b.trigger(vc.prototype.k.yq,d)}),window.applicationCache.addEventListener("progress",function(k){d.b.Lh=k.loaded/k.total||0}));this.b.Tb||(document.addEventListener("appMobi.device.update.available",function(){d.b.trigger(vc.prototype.k.yq,d)}),document.addEventListener("backbutton",function(){d.b.trigger(vc.prototype.k.xk,d)}),document.addEventListener("menubutton",function(){d.b.trigger(vc.prototype.k.pq,d)}),document.addEventListener("searchbutton",
function(){d.b.trigger(vc.prototype.k.Bv,d)}),document.addEventListener("tizenhwkey",function(k){var c;switch(k.keyName){case "back":c=d.b.trigger(vc.prototype.k.xk,d);!c&&window.tizen&&window.tizen.application.getCurrentApplication().exit();break;case "menu":(c=d.b.trigger(vc.prototype.k.pq,d))||k.preventDefault()}}));this.b.uo&&"undefined"!==typeof Windows?Windows.UI.Core.SystemNavigationManager.getForCurrentView().addEventListener("backrequested",function(k){d.b.trigger(vc.prototype.k.xk,d)&&(k.tl=
!0)}):this.b.to&&WinJS.Application&&(WinJS.Application.onbackclick=function(){return!!d.b.trigger(vc.prototype.k.xk,d)});this.b.Fq(function(k){k?d.b.trigger(vc.prototype.k.yv,d):d.b.trigger(vc.prototype.k.zv,d)})};d.prototype.xv=function(){return!0};d.prototype.wv=function(){return!0};d.prototype.yq=function(){return!0};d.prototype.zv=function(){return!0};d.prototype.yv=function(){return!0};d.prototype.Av=function(){return!0};d.prototype.xk=function(){return!0};d.prototype.pq=function(){return!0};
d.prototype.Bv=function(){return!0};q.k=new d;q.A=new function(){};q.ja=new function(){}})();function wc(d){this.b=d}
(function(){function d(){}var q=wc.prototype;q.Z=function(c){this.La=c;this.b=c.b};q.Z.prototype.P=function(){};q.S=function(c){this.type=c;this.b=c.b;this.Gh=Array(256);this.pk=Array(256);this.of=0};var n=q.S.prototype;n.P=function(){var c=this;this.b.Ya||(jQuery(document).keydown(function(d){c.Wo(d)}),jQuery(document).keyup(function(d){c.Xo(d)}))};var k=[32,33,34,35,36,37,38,39,40,44];n.Wo=function(c){var d=!1;window!=window.top&&-1<k.indexOf(c.which)&&(c.preventDefault(),d=!0,c.stopPropagation());
if(this.Gh[c.which])this.pk[c.which]&&!d&&c.preventDefault();else{this.Gh[c.which]=!0;this.of=c.which;this.b.eb=!0;this.b.trigger(wc.prototype.k.fq,this);var g=this.b.trigger(wc.prototype.k.jq,this),a=this.b.trigger(wc.prototype.k.sv,this);this.b.eb=!1;if(g||a)this.pk[c.which]=!0,d||c.preventDefault()}};n.Xo=function(c){this.Gh[c.which]=!1;this.of=c.which;this.b.eb=!0;this.b.trigger(wc.prototype.k.gq,this);var d=this.b.trigger(wc.prototype.k.lq,this),g=this.b.trigger(wc.prototype.k.kq,this);this.b.eb=
!1;if(d||g||this.pk[c.which])this.pk[c.which]=!0,c.preventDefault()};n.Rf=function(){var c;for(c=0;256>c;++c)if(this.Gh[c]){this.Gh[c]=!1;this.of=c;this.b.trigger(wc.prototype.k.gq,this);var d=this.b.trigger(wc.prototype.k.lq,this),g=this.b.trigger(wc.prototype.k.kq,this);if(d||g)this.pk[c]=!0}};n.tb=function(){return{triggerKey:this.of}};n.Mb=function(c){this.of=c.triggerKey};d.prototype.Qu=function(c){return this.Gh[c]};d.prototype.jq=function(c){return c===this.of};d.prototype.fq=function(){return!0};
d.prototype.gq=function(){return!0};d.prototype.lq=function(c){return c===this.of};d.prototype.sv=function(c){return c===this.of};d.prototype.kq=function(c){return c===this.of};q.k=new d;q.A=new function(){};q.ja=new function(){}})();function xc(d){this.b=d}
(function(){function d(){}function q(){}var n=xc.prototype;n.Z=function(c){this.La=c;this.b=c.b};n.Z.prototype.P=function(){};n.S=function(c){this.type=c;this.b=c.b;this.bg=Array(4);this.Pt=this.Um=this.bh=this.Qf=this.Pf=0;this.tl=!1};var k=n.S.prototype;k.P=function(){var c=this;if(!this.b.Ya){jQuery(document).mousemove(function(a){c.Zo(a)});jQuery(document).mousedown(function(a){c.Yo(a)});jQuery(document).mouseup(function(a){c.$o(a)});jQuery(document).dblclick(function(a){c.Iz(a)});var d=function(a){c.Kz(a)};
document.addEventListener("mousewheel",d,!1);document.addEventListener("DOMMouseScroll",d,!1)}};var c={left:0,top:0};k.Zo=function(d){var g=this.b.Ya?c:jQuery(this.b.canvas).offset();this.Pf=d.pageX-g.left;this.Qf=d.pageY-g.top};k.vs=function(){return 0<this.b.qc?!0:0<=this.Pf&&0<=this.Qf&&this.Pf<this.b.width&&this.Qf<this.b.height};k.Yo=function(c){this.vs()&&(this.bg[c.which]=!0,this.b.eb=!0,this.b.trigger(xc.prototype.k.$u,this),this.bh=c.which-1,this.Um=0,this.b.trigger(xc.prototype.k.hq,this),
this.b.trigger(xc.prototype.k.sq,this),this.b.eb=!1)};k.$o=function(c){this.bg[c.which]&&(this.b.sl&&!this.b.Cg&&c.preventDefault(),this.b.sl=!0,this.bg[c.which]=!1,this.b.eb=!0,this.bh=c.which-1,this.b.trigger(xc.prototype.k.tq,this),this.b.eb=!1)};k.Iz=function(c){this.vs()&&(c.preventDefault(),this.b.eb=!0,this.bh=c.which-1,this.Um=1,this.b.trigger(xc.prototype.k.hq,this),this.b.trigger(xc.prototype.k.sq,this),this.b.eb=!1)};k.Kz=function(c){this.Pt=0>(c.wheelDelta?c.wheelDelta:c.detail?-c.detail:
0)?0:1;this.tl=!1;this.b.eb=!0;this.b.trigger(xc.prototype.k.Hv,this);this.b.eb=!1;this.tl&&nb(c)&&c.preventDefault()};k.Rf=function(){var c,d;c=0;for(d=this.bg.length;c<d;++c)this.bg[c]&&(this.bg[c]=!1,this.bh=c-1,this.b.trigger(xc.prototype.k.tq,this))};d.prototype.hq=function(c,d){return c===this.bh&&d===this.Um};d.prototype.$u=function(){return!0};d.prototype.bq=function(c){return this.bg[c+1]};d.prototype.tq=function(c){return c===this.bh};d.prototype.sq=function(c,d,a){return c!==this.bh||d!==
this.Um?!1:this.b.ik(a,this.Pf,this.Qf)};d.prototype.Hv=function(c){this.tl=!0;return c===this.Pt};n.k=new d;n.A=new function(){};q.prototype.kn=function(c,d){var a,e,k,b,h;ja(d)?(a=this.b.Se(0),e=a.scale,k=a.nc,b=a.Jc,h=a.n,a.scale=1,a.nc=1,a.Jc=1,a.n=0,c.D(a.xb(this.Pf,this.Qf,!0)),a.scale=e,a.nc=k,a.Jc=b,a.n=h):(a=ka(d)?this.b.Se(d):this.b.Pi(d))?c.D(a.xb(this.Pf,this.Qf,!0)):c.D(0)};q.prototype.Ak=function(c,d){var a,e,k,b,h;ja(d)?(a=this.b.Se(0),e=a.scale,k=a.nc,b=a.Kc,h=a.n,a.scale=1,a.nc=1,
a.Kc=1,a.n=0,c.D(a.xb(this.Pf,this.Qf,!1)),a.scale=e,a.nc=k,a.Kc=b,a.n=h):(a=ka(d)?this.b.Se(d):this.b.Pi(d))?c.D(a.xb(this.Pf,this.Qf,!1)):c.D(0)};n.ja=new q})();function Y(d){this.b=d}
(function(){function d(){if(0===this.Fn.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.ei?b.drawImage(this.X,this.Rh,this.Sh,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.X,0,0,this.width,this.height);this.Fn=a.toDataURL("image/png")}return this.Fn}function q(){}function n(a){a[0]=0;a[1]=0;a[2]=0;m.push(a)}function k(a,b){return a<b?""+a+","+b:""+b+","+a}function c(a,b,c,d){b=b.uid;c=c.uid;var e=k(b,c);if(a.hasOwnProperty(e))a[e][2]=
d;else{var f=m.length?m.pop():[0,0,0];f[0]=b;f[1]=c;f[2]=d;a[e]=f}}function p(a,b,c){b=k(b.uid,c.uid);a.hasOwnProperty(b)&&(n(a[b]),delete a[b])}function g(a,b,c){b=k(b.uid,c.uid);if(a.hasOwnProperty(b))return D=a[b][2],!0;D=-2;return!1}function a(){}function e(){}var v=Y.prototype;v.Z=function(a){this.La=a;this.b=a.b};var b=v.Z.prototype;b.P=function(){if(!this.T){var a,b,c,e,f,l,g,h,r;this.Od=[];this.Ui=!1;a=0;for(b=this.Sc.length;a<b;a++){f=this.Sc[a];g={};g.name=f[0];g.speed=f[1];g.loop=f[2];
g.op=f[3];g.pp=f[4];g.Ts=f[5];g.ua=f[6];g.frames=[];c=0;for(e=f[7].length;c<e;c++)l=f[7][c],h={},h.Mm=l[0],h.Nm=l[1],h.Rh=l[2],h.Sh=l[3],h.width=l[4],h.height=l[5],h.duration=l[6],h.Dc=l[7],h.Ec=l[8],h.jo=l[9],h.jm=l[10],h.Us=l[11],h.ei=0!==h.width,h.Fn="",h.UB=d,r={left:0,top:0,right:1,bottom:1},h.zp=r,h.Va=null,(r=this.b.uy(l[0]))?h.X=r:(h.X=new Image,h.X.Ww=l[0],h.X.Bn=l[1],h.X.Qw=null,this.b.Up(h.X,l[0])),g.frames.push(h),this.Od.push(h);this.Sc[a]=g}}};b.Zt=function(){var a,b,c;a=0;for(b=this.j.length;a<
b;a++)c=this.j[a],c.Sk=c.Hb.Va};b.Yl=function(){if(!this.T){var a,b,c;a=0;for(b=this.Od.length;a<b;++a)c=this.Od[a],c.X.Qw=null,c.Va=null;this.Ui=!1;this.Zt()}};b.$l=function(){if(!this.T&&this.j.length){var a,b,c;a=0;for(b=this.Od.length;a<b;++a)c=this.Od[a],c.Va=this.b.K.Kl(c.X,!1,this.b.Za,c.Us);this.Zt()}};b.Ll=function(){if(!this.T&&!this.Ui&&this.b.K){var a,b,c;a=0;for(b=this.Od.length;a<b;++a)c=this.Od[a],c.Va=this.b.K.Kl(c.X,!1,this.b.Za,c.Us);this.Ui=!0}};b.Ym=function(){if(!this.T&&!this.j.length&&
this.Ui){var a,b,c;a=0;for(b=this.Od.length;a<b;++a)c=this.Od[a],this.b.K.deleteTexture(c.Va),c.Va=null;this.Ui=!1}};var h=[];b.nm=function(a){var b,c,d;P(h);b=0;for(c=this.Od.length;b<c;++b)d=this.Od[b].X,-1===h.indexOf(d)&&(a.drawImage(d,0,0),h.push(d))};v.S=function(a){this.type=a;this.b=a.b;a=this.type.Sc[0].frames[0].jm;this.nd?this.Ca.ak(a):this.Ca=new gb(a)};var t=v.S.prototype;t.P=function(){this.visible=0===this.C[0];this.ko=this.gj=!1;this.Ie=0!==this.C[3];this.Ua=this.kr(this.C[1])||this.type.Sc[0];
this.R=this.C[2];0>this.R&&(this.R=0);this.R>=this.Ua.frames.length&&(this.R=this.Ua.frames.length-1);var a=this.Ua.frames[this.R];this.Ca.ak(a.jm);this.Dc=a.Dc;this.Ec=a.Ec;this.hg=this.Ua.speed;this.Df=this.Ua.pp;1===this.type.Sc.length&&1===this.type.Sc[0].frames.length||0===this.hg||(this.b.mk(this),this.gj=!0);this.nd?this.le.reset():this.le=new $a;this.Re=this.le.qa;this.wf=!0;this.Ge=0;this.vf=!0;this.lh=this.Gq="";this.Rq=0;this.xn=-1;this.type.Ll();var b,c,d,e,f,l,g,a=0;for(b=this.type.Sc.length;a<
b;a++)for(e=this.type.Sc[a],c=0,d=e.frames.length;c<d;c++)f=e.frames[c],0===f.width&&(f.width=f.X.width,f.height=f.X.height),f.ei&&(g=f.X,l=f.zp,l.left=f.Rh/g.width,l.top=f.Sh/g.height,l.right=(f.Rh+f.width)/g.width,l.bottom=(f.Sh+f.height)/g.height,0===f.Rh&&0===f.Sh&&f.width===g.width&&f.height===g.height&&(f.ei=!1));this.Hb=this.Ua.frames[this.R];this.Sk=this.Hb.Va};t.tb=function(){var a={a:this.Ua.ua,f:this.R,cas:this.hg,fs:this.Re,ar:this.Ge,at:this.le.qa,rt:this.Df};this.wf||(a.ap=this.wf);
this.vf||(a.af=this.vf);return a};t.Mb=function(a){var b=this.Ay(a.a);b&&(this.Ua=b);this.R=a.f;0>this.R&&(this.R=0);this.R>=this.Ua.frames.length&&(this.R=this.Ua.frames.length-1);this.hg=a.cas;this.Re=a.fs;this.Ge=a.ar;this.le.reset();this.le.qa=a.at;this.wf=a.hasOwnProperty("ap")?a.ap:!0;this.vf=a.hasOwnProperty("af")?a.af:!0;a.hasOwnProperty("rt")?this.Df=a.rt:this.Df=this.Ua.pp;this.Hb=this.Ua.frames[this.R];this.Sk=this.Hb.Va;this.Ca.ak(this.Hb.jm);this.Dc=this.Hb.Dc;this.Ec=this.Hb.Ec};t.pn=
function(a){this.R=a?0:this.Ua.frames.length-1;this.wf=!1;this.Gq=this.Ua.name;this.ko=!0;this.b.trigger(Y.prototype.k.dq,this);this.b.trigger(Y.prototype.k.cq,this);this.ko=!1;this.Ge=0};t.xi=function(){return this.le.qa};t.Pa=function(){this.le.add(this.b.tg(this));this.lh.length&&this.Xq();0<=this.xn&&this.hx();var a=this.le.qa,b=this.Ua,c=b.frames[this.R],d=c.duration/this.hg;this.wf&&a>=this.Re+d&&(this.vf?this.R++:this.R--,this.Re+=d,this.R>=b.frames.length&&(b.Ts?(this.vf=!1,this.R=b.frames.length-
2):b.loop?this.R=this.Df:(this.Ge++,this.Ge>=b.op?this.pn(!1):this.R=this.Df)),0>this.R&&(b.Ts?(this.R=1,this.vf=!0,b.loop||(this.Ge++,this.Ge>=b.op&&this.pn(!0))):b.loop?this.R=this.Df:(this.Ge++,this.Ge>=b.op?this.pn(!0):this.R=this.Df)),0>this.R?this.R=0:this.R>=b.frames.length&&(this.R=b.frames.length-1),a>this.Re+b.frames[this.R].duration/this.hg&&(this.Re=a),a=b.frames[this.R],this.hh(c,a),this.b.za=!0)};t.kr=function(a){var b,c,d;b=0;for(c=this.type.Sc.length;b<c;b++)if(d=this.type.Sc[b],mb(d.name,
a))return d;return null};t.Ay=function(a){var b,c,d;b=0;for(c=this.type.Sc.length;b<c;b++)if(d=this.type.Sc[b],d.ua===a)return d;return null};t.Xq=function(){var a=this.Ua.frames[this.R],b=this.kr(this.lh);this.lh="";!b||mb(b.name,this.Ua.name)&&this.wf||(this.Ua=b,this.hg=b.speed,this.Df=b.pp,0>this.R&&(this.R=0),this.R>=this.Ua.frames.length&&(this.R=this.Ua.frames.length-1),1===this.Rq&&(this.R=0),this.wf=!0,this.Re=this.le.qa,this.vf=!0,this.hh(a,this.Ua.frames[this.R]),this.b.za=!0)};t.hx=function(){var a=
this.Ua.frames[this.R],b=this.R;this.R=C(this.xn);0>this.R&&(this.R=0);this.R>=this.Ua.frames.length&&(this.R=this.Ua.frames.length-1);b!==this.R&&(this.hh(a,this.Ua.frames[this.R]),this.Re=this.le.qa,this.b.za=!0);this.xn=-1};t.hh=function(a,b){var c=a.width,d=a.height,e=b.width,f=b.height;c!=e&&(this.width*=e/c);d!=f&&(this.height*=f/d);this.Dc=b.Dc;this.Ec=b.Ec;this.Ca.ak(b.jm);this.J();this.Hb=b;this.Sk=b.Va;c=0;for(d=this.Y.length;c<d;c++)e=this.Y[c],e.Hs&&e.Hs(a,b);this.b.trigger(Y.prototype.k.hh,
this)};t.Ne=function(a){a.globalAlpha=this.opacity;var b=this.Hb,c=b.ei,d=b.X,e=this.x,f=this.y,l=this.width,g=this.height;if(0===this.n&&0<=l&&0<=g)e-=this.Dc*l,f-=this.Ec*g,this.b.be&&(e=Math.round(e),f=Math.round(f)),c?a.drawImage(d,b.Rh,b.Sh,b.width,b.height,e,f,l,g):a.drawImage(d,e,f,l,g);else{this.b.be&&(e=Math.round(e),f=Math.round(f));a.save();var h=0<l?1:-1,r=0<g?1:-1;a.translate(e,f);1===h&&1===r||a.scale(h,r);a.rotate(this.n*h*r);e=0-this.Dc*oa(l);f=0-this.Ec*oa(g);c?a.drawImage(d,b.Rh,
b.Sh,b.width,b.height,e,f,oa(l),oa(g)):a.drawImage(d,e,f,oa(l),oa(g));a.restore()}};t.Ef=function(a){this.Bc(a)};t.Bc=function(a){a.Zc(this.Sk);a.Vg(this.opacity);var b=this.Hb,c=this.cd;if(this.b.be){var d=Math.round(this.x)-this.x,e=Math.round(this.y)-this.y;b.ei?a.ve(c.lc+d,c.mc+e,c.Qc+d,c.Rc+e,c.zc+d,c.Ac+e,c.xc+d,c.yc+e,b.zp):a.Sj(c.lc+d,c.mc+e,c.Qc+d,c.Rc+e,c.zc+d,c.Ac+e,c.xc+d,c.yc+e)}else b.ei?a.ve(c.lc,c.mc,c.Qc,c.Rc,c.zc,c.Ac,c.xc,c.yc,b.zp):a.Sj(c.lc,c.mc,c.Qc,c.Rc,c.zc,c.Ac,c.xc,c.yc)};
t.Fy=function(a){var b=this.Hb,c,d;c=0;for(d=b.jo.length;c<d;c++)if(mb(a,b.jo[c][0]))return c;return-1};t.Oi=function(a,b){var c=this.Hb,d=c.jo,e;la(a)?e=this.Fy(a):e=a-1;e=C(e);if(0>e||e>=d.length)return b?this.x:this.y;var f=(d[e][1]-c.Dc)*this.width,d=d[e][2],d=(d-c.Ec)*this.height,c=Math.cos(this.n);e=Math.sin(this.n);var l=f*c-d*e,d=d*c+f*e,f=l+this.x,d=d+this.y;return b?f:d};var m=[],D=-2,x=[];q.prototype.cv=function(a){if(!a)return!1;var b=this.b,d=b.sg(),e=d.type,f=null;d.O.collmemory?f=d.O.collmemory:
(f={},d.O.collmemory=f);d.O.spriteCreatedDestroyCallback||(d.O.spriteCreatedDestroyCallback=!0,b.Ck(function(a){var b=d.O.collmemory;a=a.uid;var c,e;for(c in b)b.hasOwnProperty(c)&&(e=b[c],e[0]===a||e[1]===a)&&(n(b[c]),delete b[c])}));var l=e.la(),h=a.la(),l=l.Cc(),r,k,m,q,t,y,v,O=this.b.$g,E=O-1,L=b.kb().Ib;for(k=0;k<l.length;k++){m=l[k];h.ta?(m.Na(),this.b.Vn(m.u,a,m.Wa,x),r=x):r=h.Cc();for(q=0;q<r.length;q++)t=r[q],b.ic(m,t)||b.Tw(m,t)?(y=g(f,m,t),y=!y||D<E,c(f,m,t,O),y&&(b.Yh(L.Ha),y=e.la(),v=
a.la(),y.ta=!1,v.ta=!1,e===a?(y.j.length=2,y.j[0]=m,y.j[1]=t,e.ud()):(y.j.length=1,v.j.length=1,y.j[0]=m,v.j[0]=t,e.ud(),a.ud()),L.Wj(),b.df(L.Ha))):p(f,m,t);P(x)}return!1};var r=null,f=new fa,l=!1,O=[],y=new va(0,0,0,0);b.finish=function(a){if(l){if(a){var b=this.b.kb().Ib.md;a=r.la();var c=f.pf(),d,e;if(a.ta){a.ta=!1;P(a.j);d=0;for(e=c.length;d<e;++d)a.j[d]=c[d];if(b)for(P(a.da),d=0,e=r.j.length;d<e;++d)c=r.j[d],f.contains(c)||a.da.push(c)}else if(b)for(b=a.j.length,d=0,e=c.length;d<e;++d)a.j[b+
d]=c[d],Fa(a.da,c[d]);else Ca(a.j,c);r.ud()}f.clear();l=!1}};q.prototype.Uu=function(a){if(a){var b=!1,c,d,e,g=this.b.sg(),h=g.type,g=g.xl;c=a.la();d=this.b.kb().Ib.md;var p;c.ta?(this.Na(),y.mh(this.Wa),y.offset(0,0),this.b.Vn(this.u,a,y,O),p=O):p=d?this.b.pz()&&!c.da.length&&c.j.length?c.j:c.da:c.j;r=a;l=h!==a&&!g;c=0;for(d=p.length;c<d;c++)if(e=p[c],this.b.ic(this,e)){b=!0;if(g)break;h!==a&&f.add(e)}P(O);a=b}else a=!1;return a};q.prototype.Ju=function(a){return this.lh.length?mb(this.lh,a):mb(this.Ua.name,
a)};q.prototype.pu=function(a,b){return fc(this.R,a,b)};q.prototype.cq=function(a){return mb(this.Gq,a)};q.prototype.dq=function(){return!0};q.prototype.hh=function(){return!0};v.k=new q;a.prototype.ww=function(){this.wf=!1};a.prototype.Sv=function(a,b){this.lh=a;this.Rq=b;this.gj||(this.b.mk(this),this.gj=!0);this.ko||this.Xq()};a.prototype.Tv=function(a){this.hg=oa(a);this.vf=0<=a;this.gj||(this.b.mk(this),this.gj=!0)};a.prototype.bw=function(a){a=oa(this.width)*(0===a?-1:1);this.width!==a&&(this.width=
a,this.J())};a.prototype.ew=function(a){var b=this.Hb,c=b.width*a*(0>this.width?-1:1);a=b.height*a*(0>this.height?-1:1);if(this.width!==c||this.height!==a)this.width=c,this.height=a,this.J()};v.A=new a;e.prototype.Hu=function(a,b){a.D(this.Oi(b,!0))};e.prototype.Iu=function(a,b){a.D(this.Oi(b,!1))};v.ja=new e})();function yc(d){this.b=d}
(function(){var d=yc.prototype;d.Z=function(d){this.La=d;this.b=d.b};var q=d.Z.prototype;q.P=function(){this.T||(this.X=new Image,this.X.Bn=this.Nm,this.b.Up(this.X,this.Mm),this.Va=this.pattern=null)};q.Yl=function(){this.T||(this.Va=null)};q.$l=function(){if(!this.T&&this.j.length){this.Va||(this.Va=this.b.K.Kl(this.X,!0,this.b.Za,this.Ep));var d,k;d=0;for(k=this.j.length;d<k;d++)this.j[d].Va=this.Va}};q.Ll=function(){this.T||this.Va||!this.b.K||(this.Va=this.b.K.Kl(this.X,!0,this.b.Za,this.Ep))};
q.Ym=function(){this.T||this.j.length||!this.Va||(this.b.K.deleteTexture(this.Va),this.Va=null)};q.nm=function(d){d.drawImage(this.X,0,0)};d.S=function(d){this.type=d;this.b=d.b};q=d.S.prototype;q.P=function(){this.visible=0===this.C[0];this.Uj=new va(0,0,0,0);this.wr=!1;this.X=this.type.X;this.b.K?(this.type.Ll(),this.Va=this.type.Va):(this.type.pattern||(this.type.pattern=this.b.Ta.createPattern(this.type.X,"repeat")),this.pattern=this.type.pattern)};q.Nd=function(){this.wr=!1;this.X=this.type.X};
q.Sg=function(){this.b.K&&this.wr&&this.Va&&(this.b.K.deleteTexture(this.Va),this.Va=null)};q.Ne=function(d){d.globalAlpha=this.opacity;d.save();d.fillStyle=this.pattern;var k=this.x,c=this.y;this.b.be&&(k=Math.round(k),c=Math.round(c));var p=-(this.Dc*this.width),g=-(this.Ec*this.height),a=p%this.X.width,e=g%this.X.height;0>a&&(a+=this.X.width);0>e&&(e+=this.X.height);d.translate(k,c);d.rotate(this.n);d.translate(a,e);d.fillRect(p-a,g-e,this.width,this.height);d.restore()};q.Ef=function(d){this.Bc(d)};
q.Bc=function(d){d.Zc(this.Va);d.Vg(this.opacity);var k=this.Uj;k.right=this.width/this.X.width;k.bottom=this.height/this.X.height;var c=this.cd;if(this.b.be){var p=Math.round(this.x)-this.x,g=Math.round(this.y)-this.y;d.ve(c.lc+p,c.mc+g,c.Qc+p,c.Rc+g,c.zc+p,c.Ac+g,c.xc+p,c.yc+g,k)}else d.ve(c.lc,c.mc,c.Qc,c.Rc,c.zc,c.Ac,c.xc,c.yc,k)};d.k=new function(){};d.A=new function(){};d.ja=new function(){}})();function zc(d){this.b=d}
(function(){function d(){this.Rm=this.id=-1;this.Hq=this.ph=this.tk=this.Vi=!1;this.Fa=new va(0,0,0,0)}function q(a){1E4>t.length&&t.push(a)}function n(){this.id=-1;this.Fa=new va(0,0,0,0);this.cf=null}function k(a){1E4>m.length&&m.push(a)}function c(a,b,c){var d;return D.length?(d=D.pop(),d.c=a,d.x=b,d.y=c,d.left=d.x*d.c.yb*d.c.kc,d.top=d.y*d.c.Gb*d.c.jc,d.clear(),d.Tj=!1,d):new p(a,b,c)}function p(a,b,c){this.c=a;this.x=b;this.y=c;this.left=this.x*this.c.yb*this.c.kc;this.top=this.y*this.c.Gb*this.c.jc;
this.Ce=[];this.Wb=[];this.oc=[];this.Tj=!1;var d,e;a=0;for(b=this.c.Gb;a<b;++a){e=[];c=0;for(d=this.c.yb;c<d;++c)e.push(-1);this.Ce.push(e)}}var g=zc.prototype;g.Z=function(a){this.La=a;this.b=a.b};var a=g.Z.prototype;a.P=function(){var a,b,c;if(!this.T&&(this.X=new Image,this.X.Bn=this.Nm,this.b.Up(this.X,this.Mm),this.ig=[],this.En=!1,this.ge=[],this.Kt=!1,this.Qm&&this.Qm.length))for(a=0,b=this.Qm.length;a<b;++a)(c=this.Qm[a])?this.ge.push({cf:c,kl:[[[null,null],[null,null]],[[null,null],[null,
null]]]}):this.ge.push(null)};a.yf=function(a,b,c,d,e,g){if(!(0>a||a>=this.ge.length)&&this.ge[a]){var h=this.ge[a].kl;a=new gb(this.ge[a].cf);a.fg(b,c,0);g&&a.bx();d&&a.Dz(b/2);e&&a.vy(c/2);h[d?1:0][e?1:0][g?1:0]=a}};a.Py=function(a){if(-1===a)return null;var c=a&h;return 0>c||c>=this.ge.length||!this.ge[c]?null:this.ge[c].kl[a&e?1:0][a&v?1:0][a&b?1:0]};a.Pn=function(){var a,b,c=this.b.K;if(c)for(a=0,b=this.ig.length;a<b;++a)c.deleteTexture(this.ig[a]);P(this.ig);this.En=!1};a.No=function(a,b,c,
d,e,g,h){if(!(this.En||0>=a||0>=b)){this.Pn();var p=this.X.width,k=this.X.height,m;for(m=d;m+b<=k;m+=b+g)for(d=c;d+a<=p;d+=a+e)this.ig.push(this.wu(d,m,a,b,h));this.En=!0}};a.wu=function(a,b,c,d,e){if(this.b.K)return this.dn(a,b,c,d,!1,!1,!1,e);var g=[[[null,null],[null,null]],[[null,null],[null,null]]];g[0][0][0]=this.dn(a,b,c,d,!1,!1,!1,e);return{kl:g,x:a,y:b,GA:c,ez:d}};a.$p=function(a,b,c,d,e){if(0>a||a>=this.ig.length)return null;a=this.ig[a];var g=a.kl;b=b?1:0;c=c?1:0;d=d?1:0;var h=g[b][c][d];
if(h)return h;h=this.dn(a.x,a.y,a.GA,a.ez,0!==b,0!==c,0!==d,e);return g[b][c][d]=h};a.dn=function(a,b,c,d,e,g,h,p){var k=c,m=d;this.b.K&&!p&&(ma(k)||(k=na(k)),ma(m)||(m=na(m)));var n=document.createElement("canvas");n.width=k;n.height=m;var q=n.getContext("2d");if(this.b.Ta)return e?g?(h?(q.rotate(Math.PI/2),q.scale(-1,1)):q.scale(-1,-1),q.translate(-k,-m)):h?(q.rotate(Math.PI/2),q.translate(0,-m)):(q.scale(-1,1),q.translate(-k,0)):g?h?(q.rotate(-Math.PI/2),q.translate(-k,0)):(q.scale(1,-1),q.translate(0,
-m)):h&&(q.scale(-1,1),q.rotate(Math.PI/2)),q.drawImage(this.X,a,b,c,d,0,0,k,m),p?n:this.b.Ta.createPattern(n,"repeat");q.drawImage(this.X,a,b,c,d,0,0,k,m);a=this.b.K.dd(k,m,this.b.Za,!1,!p);this.b.K.FA(n,a);return a};a.Yl=function(){this.T||this.Pn()};a.$l=function(){};a.Ll=function(){};a.Ym=function(){this.T||this.j.length||this.Pn()};a.nm=function(){};g.S=function(a){this.type=a;this.b=a.b};var a=g.S.prototype,e=-2147483648,v=1073741824,b=536870912,h=536870911,t=[],m=[],D=[];p.prototype.clear=
function(){var a,b,c,d,e;this.Ce.length=this.c.Gb;a=0;for(b=this.Ce.length;a<b;++a)for(e=this.Ce[a],e||(e=[],this.Ce[a]=e),e.length=this.c.yb,c=0,d=e.length;c<d;++c)e[c]=-1};p.prototype.Aj=function(){if(!this.Tj){var a=this.c.kc,c=this.c.jc;if(!(0>=a||0>=c)){var g,p,x,u,A,M;g=0;for(p=this.Wb.length;g<p;++g)q(this.Wb[g]);g=0;for(p=this.oc.length;g<p;++g)k(this.oc[g]);P(this.Wb);P(this.oc);var D=Math.min(this.c.Cd,Math.floor(this.c.width/a)),B=Math.min(this.c.$d,Math.floor(this.c.height/c)),D=D-this.left/
a,B=B-this.top/c;D>this.c.yb&&(D=this.c.yb);B>this.c.Gb&&(B=this.c.Gb);var J=this.c.Uf,F=null;g=0;for(p=B;g<p;++g){A=this.Ce[g];x=0;for(u=D;x<u;++x)M=A[x],-1===M?F&&(this.Wb.push(F),F=null):J||!F||M!==F.id?(F&&this.Wb.push(F),F=t.length?t.pop():new d,F.id=M,F.Rm=M&h,F.Vi=0!==(M&e),F.tk=0!==(M&v),F.ph=0!==(M&b),F.Hq=F.Vi||F.tk||F.ph,F.Fa.left=x*a+this.left,F.Fa.top=g*c+this.top,F.Fa.right=F.Fa.left+a,F.Fa.bottom=F.Fa.top+c):F.Fa.right+=a;F&&(this.Wb.push(F),F=null)}var F=null,T=!1;g=0;for(p=B;g<p;++g){A=
this.Ce[g];x=0;for(u=D;x<u;++x)M=A[x],-1===M?F&&(this.oc.push(F),F=null,T=!1):(B=this.c.type.Py(M),!F||B||T?(F&&this.oc.push(F),F=m.length?m.pop():new n,F.id=M,F.cf=B?B:null,M=F.Fa,M.left=x*a+this.left,M.top=g*c+this.top,M.right=M.left+a,M.bottom=M.top+c,T=!!B):F.Fa.right+=a);F&&(this.oc.push(F),F=null,T=!1)}if(!J)for(p=this.Wb.length,g=0;g<p;++g)for(u=this.Wb[g],a=g+1;a<p;++a)if(x=this.Wb[a],!(x.Fa.top<u.Fa.bottom)){if(x.Fa.top>u.Fa.bottom)break;if(x.Fa.right>u.Fa.right||x.Fa.left>u.Fa.left)break;
x.id===u.id&&x.Fa.left===u.Fa.left&&x.Fa.right===u.Fa.right&&(q(this.Wb[a]),this.Wb.splice(a,1),--p,u.Fa.bottom+=c,--a)}p=this.oc.length;for(g=0;g<p;++g)if(u=this.oc[g],!u.cf)for(A=u.Fa,a=g+1;a<p;++a)if(x=this.oc[a],u=x.Fa,!(u.top<A.bottom)){if(u.top>A.bottom)break;if(u.right>A.right||u.left>A.left)break;x.cf||u.left!==A.left||u.right!==A.right||(k(this.oc[a]),this.oc.splice(a,1),--p,A.bottom+=c,--a)}this.Tj=!0}}};p.prototype.yp=function(a,b,c){this.Ce[b][a]!==c&&(this.Ce[b][a]=c,this.Tj=!1,this.c.Gk=
!0,this.c.Nj=!0,this.c.b.za=!0)};a.P=function(){var a,b,c;this.visible=0===this.C[0];this.kc=this.C[1];this.jc=this.C[2];this.Fp=this.C[3];this.Hp=this.C[4];this.Gp=this.C[5];this.Ip=this.C[6];this.Uf=0!==this.C[7];this.Cd=this.Nt;this.$d=this.Mt;this.Fl=this.width;this.El=this.height;var d=this.kc,e=this.jc;0===d&&(d=1);0===e&&(e=1);this.yb=Math.ceil(this.b.qb/d);this.Gb=Math.ceil(this.b.pb/e);if(!this.type.Kt)for(this.type.Kt=!0,a=0,b=this.type.ge.length;a<b;++a)if(c=this.type.ge[a])this.type.yf(a,
d,e,!1,!1,!1),this.type.yf(a,d,e,!1,!1,!0),this.type.yf(a,d,e,!1,!0,!1),this.type.yf(a,d,e,!1,!0,!0),this.type.yf(a,d,e,!0,!1,!1),this.type.yf(a,d,e,!0,!1,!0),this.type.yf(a,d,e,!0,!0,!1),this.type.yf(a,d,e,!0,!0,!0);this.nd||(this.uc=[]);this.Oo(!0);this.qt(this.Lt);this.type.No(this.kc,this.jc,this.Fp,this.Hp,this.Gp,this.Ip,this.Uf);this.Nj=!1;this.Gk=!0;this.Mo()};a.Mo=function(){if(this.Gk){var a,b,c,d,e;a=0;for(b=this.uc.length;a<b;++a)for(e=this.uc[a],c=0,d=e.length;c<d;++c)e[c].Aj();this.Gk=
!1}};a.zm=function(){var a,b,c,d,e;a=0;for(b=this.uc.length;a<b;++a)for(e=this.uc[a],c=0,d=e.length;c<d;++c)e[c].Tj=!1;this.Gk=!0};a.Oo=function(a){var b=C(this.width/this.kc),d=C(this.height/this.jc);if(!(b<=this.Cd&&d<=this.$d)||a){var e;a?(a=Math.ceil(this.$d/this.Gb),e=Math.ceil(this.Cd/this.yb)):(a=this.uc.length,e=Math.ceil(this.Cd/this.yb),d>this.$d&&(this.$d=d,a=Math.ceil(this.$d/this.Gb)),b>this.Cd&&(this.Cd=b,e=Math.ceil(this.Cd/this.yb)),this.zm(),this.Nj=!0,this.b.za=!0);for(var g,b=0;b<
a;++b)if(g=this.uc[b])for(d=g.length;d<e;++d)g.push(c(this,d,b));else{g=[];for(d=0;d<e;++d)g.push(c(this,d,b));this.uc[b]=g}}};a.un=function(a,b){if(0>a||0>b)return null;var c=C(b/this.Gb);if(c>=this.uc.length)return null;var c=this.uc[c],d=C(a/this.yb);return d>=c.length?null:c[d]};a.vn=function(a,b){if(0>a||0>b||b>=this.uc.length)return null;var c=this.uc[b];return a>=c.length?null:c[a]};a.qt=function(a){var c=[];a=a.split(",");var d,g,h,p,k;d=0;for(g=a.length;d<g;++d)if(h=a[d],p=h.indexOf("x"),
-1<p)for(k=parseInt(h.substring(0,p),10),h=h.substring(p+1),p=parseInt(h,10),-1<h.indexOf("h")&&(p|=e),-1<h.indexOf("v")&&(p|=v),-1<h.indexOf("d")&&(p|=b);0<k;--k)c.push(p);else p=parseInt(h,10),-1<h.indexOf("h")&&(p|=e),-1<h.indexOf("v")&&(p|=v),-1<h.indexOf("d")&&(p|=b),c.push(p);for(d=a=0;d<this.$d;++d)for(g=0;g<this.Cd;++g)k=c[a++],(h=this.un(g,d))&&h.yp(g%this.yb,d%this.Gb,k)};a.Qy=function(){var a="";if(0>=this.Cd||0>=this.$d)return a;var c=1,d=this.pr(0,0),g,p,k,m,n,q,t,x;m=C(this.width/this.kc);
p=C(this.height/this.jc);for(g=0;g<p;++g)for(k=0===g?1:0;k<m;++k)n=this.pr(k,g),n===d?++c:(-1===d?(q=-1,d=x=t=!1):(q=d&h,t=0!==(d&e),x=0!==(d&v),d=0!==(d&b)),a=1===c?a+(""+q):a+(""+c+"x"+q),t&&(a+="h"),x&&(a+="v"),d&&(a+="d"),a+=",",c=1,d=n);-1===d?(q=-1,d=x=t=!1):(q=d&h,t=0!==(d&e),x=0!==(d&v),d=0!==(d&b));a=1===c?a+(""+q):a+(""+c+"x"+q);t&&(a+="h");x&&(a+="v");d&&(a+="d");return a};a.pr=function(a,b){a=Math.floor(a);b=Math.floor(b);if(0>a||0>b||a>=this.Cd||b>=this.$d)return-1;var c=this.un(a,b);
return c?c.Ce[b%this.Gb][a%this.yb]:-1};a.yp=function(a,b,c){a=Math.floor(a);b=Math.floor(b);if(0>a||0>b||a>=this.Cd||b>=this.$d)return-1;var d=this.un(a,b);if(!d)return-1;d.yp(a%this.yb,b%this.Gb,c)};a.fu=function(a){return Math.floor((a-this.x)/(this.yb*this.kc))};a.gu=function(a){return Math.floor((a-this.y)/(this.Gb*this.jc))};a.Cy=function(a,b){var c=this.gu(a.top),d=this.fu(a.right),e=this.gu(a.bottom),g,h,p;for(g=this.fu(a.left);g<=d;++g)for(h=c;h<=e;++h)if(p=this.vn(g,h))p.Aj(),Da(b,p.oc)};
a.xi=function(a){var b,c,d,e,g,h;b=0;for(c=this.uc.length;b<c;++b)for(g=this.uc[b],d=0,e=g.length;d<e;++d)h=g[d],h.Aj(),Da(a,h.oc)};a.Sg=function(){var a,b,c,d,e;a=0;for(b=this.uc.length;a<b;++a){e=this.uc[a];c=0;for(d=e.length;c<d;++c){for(var g=e[c],h=void 0,p=void 0,h=0,p=g.Wb.length;h<p;++h)q(g.Wb[h]);P(g.Wb);h=0;for(p=g.oc.length;h<p;++h)k(g.oc[h]);P(g.oc);1E3>D.length&&D.push(g)}P(e)}P(this.uc)};a.tb=function(){this.Oo();return{w:C(this.width/this.kc),h:C(this.height/this.jc),d:this.Qy()}};
a.Mb=function(a){this.Cd=a.w;this.$d=a.h;this.Oo(!0);this.qt(a.d);this.Nj=!0;this.zm()};a.Ne=function(a){if(!(0>=this.kc||0>=this.jc)){this.type.No(this.kc,this.jc,this.Fp,this.Hp,this.Gp,this.Ip,this.Uf);if(this.width!==this.Fl||this.height!==this.El)this.Nj=!0,this.zm(),this.Mo(),this.Fl=this.width,this.El=this.height;a.globalAlpha=this.opacity;var b=this.u,c=b.Ia,d=b.Ja,e=b.Ra,b=b.Qa,g=this.x,h=this.y,p=this.Uf,k;this.b.be&&(g=Math.round(g),h=Math.round(h));var m=this.yb*this.kc,n=this.Gb*this.jc,
q=Math.floor((c-g)/m),m=Math.floor((e-g)/m),t=Math.floor((d-h)/n),n=Math.floor((b-h)/n),x=g%this.kc,v=h%this.jc;this.Uf&&(v=x=0);if(0!==x||0!==v)a.save(),a.translate(x,v),g-=x,h-=v,c-=x,d-=v,e-=x,b-=v;for(var D,V,z,w,G,E,L,I,K;q<=m;++q)for(D=t;D<=n;++D)if(V=this.vn(q,D))for(V.Aj(),z=0,w=V.Wb.length;z<w;++z)G=V.Wb[z],-1!==G.id&&(k=G.Fa,E=k.left+g,L=k.top+h,I=k.right+g,k=k.bottom+h,E>e||I<c||L>b||k<d||(K=this.type.$p(G.Rm,G.Vi,G.tk,G.ph,this.Uf),p?a.drawImage(K,E,L):(a.fillStyle=this.type.$p(G.Rm,G.Vi,
G.tk,G.ph,this.Uf),a.fillRect(E,L,I-E,k-L))));0===x&&0===v||a.restore()}};var x=new va(0,0,1,1);a.Ef=function(a){this.Bc(a)};a.Bc=function(a){if(!(0>=this.kc||0>=this.jc)){this.type.No(this.kc,this.jc,this.Fp,this.Hp,this.Gp,this.Ip,this.Uf);if(this.width!==this.Fl||this.height!==this.El)this.Nj=!0,this.zm(),this.Mo(),this.Fl=this.width,this.El=this.height;a.Vg(this.opacity);var b=this.type.ig,c=this.u,d=c.Ia,e=c.Ja,g=c.Ra,c=c.Qa,h=this.x,p=this.y,k;this.b.be&&(h=Math.round(h),p=Math.round(p));var m=
this.yb*this.kc,n=this.Gb*this.jc,q=Math.floor((g-h)/m),t=Math.floor((e-p)/n),n=Math.floor((c-p)/n),v,D,S,V,z,w,G,E,L,I,K,N,X,H,ba,ea,ya;for(ba=Math.floor((d-h)/m);ba<=q;++ba)for(ea=t;ea<=n;++ea)if(ya=this.vn(ba,ea))for(ya.Aj(),m=0,v=ya.Wb.length;m<v;++m)D=ya.Wb[m],-1!==D.id&&(k=D.Fa,S=k.left+h,V=k.top+p,z=k.right+h,k=k.bottom+p,S>g||z<d||V>c||k<e||(a.Zc(b[D.Rm]),x.right=(z-S)/this.kc,x.bottom=(k-V)/this.jc,D.Hq?(D.ph&&(H=x.right,x.right=x.bottom,x.bottom=H),G=w=0,E=x.right,L=0,I=x.right,K=x.bottom,
N=0,X=x.bottom,D.ph&&(H=N,N=E,E=H,H=X,X=L,L=H),D.Vi&&(H=w,w=E,E=H,H=G,G=L,L=H,H=N,N=I,I=H,H=X,X=K,K=H),D.tk&&(H=w,w=N,N=H,H=G,G=X,X=H,H=E,E=I,I=H,H=L,L=K,K=H),a.Xz(S,V,z,V,z,k,S,k,w,G,E,L,I,K,N,X)):a.ve(S,V,z,V,z,k,S,k,x)))}};g.k=new function(){};g.A=new function(){};g.ja=new function(){}})();function Ac(d){this.b=d}
(function(){function d(a){e=a.x;v=a.y;b=a.z}function q(a,b,c,d){var e;e=h.length?h.pop():new n;e.init(a,b,c,d);return e}function n(){this.fk=this.id=this.Mg=this.Lg=this.y=this.x=this.Km=this.Jm=this.Bo=this.time=this.Cp=0;this.ok=this.Vm=!1}function k(){}function c(){}var p=Ac.prototype;p.Z=function(a){this.La=a;this.b=a.b};p.Z.prototype.P=function(){};p.S=function(a){this.type=a;this.b=a.b;this.touches=[];this.Ro=!1};var g=p.S.prototype,a={left:0,top:0};g.Mi=function(a){var b,c;b=0;for(c=this.touches.length;b<
c;b++)if(this.touches[b].id===a)return b;return-1};var e=0,v=0,b=0,h=[];n.prototype.init=function(a,b,c,d){var e=Wa();this.Cp=this.Bo=this.time=e;this.Jm=a;this.Km=b;this.x=a;this.y=b;this.Lg=a;this.Mg=b;this.pressure=this.height=this.width=0;this.id=c;this.fk=d;this.ok=this.Vm=!1};n.prototype.update=function(a,b,c,d,e,g){this.Bo=this.time;this.time=a;this.Lg=this.x;this.Mg=this.y;this.x=b;this.y=c;this.width=d;this.height=e;this.pressure=g;!this.ok&&15<=Sa(this.Jm,this.Km,this.x,this.y)&&(this.ok=
!0)};n.prototype.Bz=function(a,b){!this.Vm&&500<=Wa()-this.Cp&&!this.ok&&15>Sa(this.Jm,this.Km,this.x,this.y)&&(this.Vm=!0,a.De=this.fk,a.hi=this.id,a.th=b,a.b.trigger(Ac.prototype.k.pv,a),a.Ke=this.x,a.Le=this.y,a.b.trigger(Ac.prototype.k.qv,a),a.th=0)};var t=-1E3,m=-1E3,D=-1E4;n.prototype.qs=function(a,b){if(!this.Vm){var c=Wa();333>=c-this.Cp&&!this.ok&&15>Sa(this.Jm,this.Km,this.x,this.y)&&(a.De=this.fk,a.hi=this.id,a.th=b,666>=c-D&&25>Sa(t,m,this.x,this.y)?(a.b.trigger(Ac.prototype.k.hv,a),a.Ke=
this.x,a.Le=this.y,a.b.trigger(Ac.prototype.k.jv,a),m=t=-1E3,D=-1E4):(a.b.trigger(Ac.prototype.k.Ev,a),a.Ke=this.x,a.Le=this.y,a.b.trigger(Ac.prototype.k.Fv,a),t=this.x,m=this.y,D=c),a.th=0)}};g.P=function(){this.vz=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.th=this.hi=this.De=this.Le=this.Ke=this.Cq=this.Bq=this.Aq=this.Iw=this.Hw=this.Gw=this.fm=this.em=this.dm=0;this.DA=0!==this.C[0];var a=0<this.b.qc?document:this.b.canvas,b=document;this.b.Tb?b=a=window.Canvas:this.b.zd&&
(b=a=window);var c=this;window.navigator.pointerEnabled?(a.addEventListener("pointerdown",function(a){c.Gs(a)},!1),a.addEventListener("pointermove",function(a){c.Fs(a)},!1),b.addEventListener("pointerup",function(a){c.Zl(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.Zl(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.Gs(a)},!1),a.addEventListener("MSPointerMove",function(a){c.Fs(a)},!1),b.addEventListener("MSPointerUp",function(a){c.Zl(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.Zl(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.Js(a)},!1),a.addEventListener("touchmove",function(a){c.Is(a)},!1),b.addEventListener("touchend",function(a){c.bp(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.bp(a,!0)},!1));if(this.vz){var e=function(a){a=a.reading;c.Aq=a.accelerationX;c.Bq=a.accelerationY;c.Cq=a.accelerationZ},g=function(a){a=a.reading;c.dm=a.yawDegrees;c.em=a.pitchDegrees;c.fm=a.rollDegrees},h=Windows.Devices.Sensors.Accelerometer.getDefault();
h&&(h.reportInterval=Math.max(h.minimumReportInterval,16),h.addEventListener("readingchanged",e));var p=Windows.Devices.Sensors.Inclinometer.getDefault();p&&(p.reportInterval=Math.max(p.minimumReportInterval,16),p.addEventListener("readingchanged",g));document.addEventListener("visibilitychange",function(){document.hidden||document.msHidden?(h&&h.removeEventListener("readingchanged",e),p&&p.removeEventListener("readingchanged",g)):(h&&h.addEventListener("readingchanged",e),p&&p.addEventListener("readingchanged",
g))},!1)}else window.addEventListener("deviceorientation",function(a){c.dm=a.alpha||0;c.em=a.beta||0;c.fm=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.Gw=a.accelerationIncludingGravity.x||0,c.Hw=a.accelerationIncludingGravity.y||0,c.Iw=a.accelerationIncludingGravity.z||0);a.acceleration&&(c.Aq=a.acceleration.x||0,c.Bq=a.acceleration.y||0,c.Cq=a.acceleration.z||0)},!1);this.DA&&!this.b.Ya&&(jQuery(document).mousemove(function(a){c.Zo(a)}),jQuery(document).mousedown(function(a){c.Yo(a)}),
jQuery(document).mouseup(function(a){c.$o(a)}));!this.b.Dh&&this.b.Vc&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(d,null,{frequency:40});this.b.zA(this)};g.Fs=function(b){if(b.pointerType!==b.MSPOINTER_TYPE_MOUSE&&"mouse"!==b.pointerType){b.preventDefault&&b.preventDefault();var c=this.Mi(b.pointerId),d=Wa();if(0<=c){var e=this.b.Ya?a:jQuery(this.b.canvas).offset(),c=this.touches[c];2>d-c.time||c.update(d,b.pageX-e.left,b.pageY-e.top,
b.width||0,b.height||0,b.pressure||0)}}};g.Gs=function(b){if(b.pointerType!==b.MSPOINTER_TYPE_MOUSE&&"mouse"!==b.pointerType){b.preventDefault&&nb(b)&&b.preventDefault();var c=this.b.Ya?a:jQuery(this.b.canvas).offset(),d=b.pageX-c.left,c=b.pageY-c.top;Wa();this.De=this.touches.length;this.hi=b.pointerId;this.touches.push(q(d,c,b.pointerId,this.De));this.b.eb=!0;this.b.trigger(Ac.prototype.k.rq,this);this.b.trigger(Ac.prototype.k.xq,this);this.Ke=d;this.Le=c;this.b.trigger(Ac.prototype.k.wq,this);
this.b.eb=!1}};g.Zl=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&nb(a)&&a.preventDefault();var c=this.Mi(a.pointerId);this.De=0<=c?this.touches[c].fk:-1;this.hi=0<=c?this.touches[c].id:-1;this.b.eb=!0;this.b.trigger(Ac.prototype.k.qq,this);this.b.trigger(Ac.prototype.k.vq,this);0<=c&&(b||this.touches[c].qs(this,c),100>h.length&&h.push(this.touches[c]),this.touches.splice(c,1));this.b.eb=!1}};g.Is=function(b){b.preventDefault&&b.preventDefault();
var c=Wa(),d,e,g,h;d=0;for(e=b.changedTouches.length;d<e;d++)if(g=b.changedTouches[d],h=this.Mi(g.identifier),0<=h){var p=this.b.Ya?a:jQuery(this.b.canvas).offset();h=this.touches[h];2>c-h.time||h.update(c,g.pageX-p.left,g.pageY-p.top,2*(g.fC||g.kC||g.ZB||g.bC||0),2*(g.gC||g.lC||g.$B||g.cC||0),g.TB||g.jC||g.YB||g.aC||0)}};g.Js=function(b){b.preventDefault&&nb(b)&&b.preventDefault();var c=this.b.Ya?a:jQuery(this.b.canvas).offset();Wa();this.b.eb=!0;var d,e,g,h;d=0;for(e=b.changedTouches.length;d<e;d++)if(g=
b.changedTouches[d],h=this.Mi(g.identifier),-1===h){h=g.pageX-c.left;var p=g.pageY-c.top;this.De=this.touches.length;this.hi=g.identifier;this.touches.push(q(h,p,g.identifier,this.De));this.b.trigger(Ac.prototype.k.rq,this);this.b.trigger(Ac.prototype.k.xq,this);this.Ke=h;this.Le=p;this.b.trigger(Ac.prototype.k.wq,this)}this.b.eb=!1};g.bp=function(a,b){a.preventDefault&&nb(a)&&a.preventDefault();this.b.eb=!0;var c,d,e;c=0;for(d=a.changedTouches.length;c<d;c++)e=a.changedTouches[c],e=this.Mi(e.identifier),
0<=e&&(this.De=this.touches[e].fk,this.hi=this.touches[e].id,this.b.trigger(Ac.prototype.k.qq,this),this.b.trigger(Ac.prototype.k.vq,this),b||this.touches[e].qs(this,e),100>h.length&&h.push(this.touches[e]),this.touches.splice(e,1));this.b.eb=!1};g.xi=function(){return this.b.Vc&&0===this.dm&&0!==b?90*b:this.dm};g.WB=function(){return this.b.Vc&&0===this.em&&0!==v?90*v:this.em};g.XB=function(){return this.b.Vc&&0===this.fm&&0!==e?90*e:this.fm};g.Yo=function(a){this.Js({changedTouches:[{pageX:a.pageX,
pageY:a.pageY,identifier:0}]});this.Ro=!0};g.Zo=function(a){this.Ro&&this.Is({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};g.$o=function(a){a.preventDefault&&this.b.sl&&!this.b.Cg&&a.preventDefault();this.b.sl=!0;this.bp({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.Ro=!1};g.lk=function(){var a,b,c,d=Wa();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=d-50&&(c.Bo=d),c.Bz(this,a)};k.prototype.xq=function(){return!0};k.prototype.vq=function(){return!0};
k.prototype.wq=function(a){return a?this.b.ik(a,this.Ke,this.Le):!1};k.prototype.rq=function(a){a=Math.floor(a);return a===this.De};k.prototype.qq=function(a){a=Math.floor(a);return a===this.De};k.prototype.pv=function(){return!0};k.prototype.Ev=function(){return!0};k.prototype.hv=function(){return!0};k.prototype.qv=function(a){return a?this.b.ik(a,this.Ke,this.Le):!1};k.prototype.Fv=function(a){return a?this.b.ik(a,this.Ke,this.Le):!1};k.prototype.jv=function(a){return a?this.b.ik(a,this.Ke,this.Le):
!1};p.k=new k;c.prototype.kn=function(a,b){var c=this.th;if(0>c||c>=this.touches.length)a.D(0);else{var d,e,g,h,p;ja(b)?(d=this.b.Se(0),e=d.scale,g=d.nc,h=d.Jc,p=d.n,d.scale=1,d.nc=1,d.Jc=1,d.n=0,a.D(d.xb(this.touches[c].x,this.touches[c].y,!0)),d.scale=e,d.nc=g,d.Jc=h,d.n=p):(d=ka(b)?this.b.Se(b):this.b.Pi(b))?a.D(d.xb(this.touches[c].x,this.touches[c].y,!0)):a.D(0)}};c.prototype.Ak=function(a,b){var c=this.th;if(0>c||c>=this.touches.length)a.D(0);else{var d,e,g,h,p;ja(b)?(d=this.b.Se(0),e=d.scale,
g=d.nc,h=d.Kc,p=d.n,d.scale=1,d.nc=1,d.Kc=1,d.n=0,a.D(d.xb(this.touches[c].x,this.touches[c].y,!1)),d.scale=e,d.nc=g,d.Kc=h,d.n=p):(d=ka(b)?this.b.Se(b):this.b.Pi(b))?a.D(d.xb(this.touches[c].x,this.touches[c].y,!1)):a.D(0)}};p.ja=new c})();function Bc(d){this.b=d}
(function(){function d(){}var q=Bc.prototype;q.Z=function(a){this.La=a;this.b=a.b};q.Z.prototype.P=function(){};q.S=function(a){this.type=a;this.b=a.b};var n=q.S.prototype,k="",c="undefined"!==typeof window.is_scirra_arcade;c&&(k="arcade"+window.scirra_arcade_id);var p=!1;try{localStorage.getItem("test"),p=!0}catch(g){p=!1}n.P=function(){p||ha("[Construct 2] Webstorage plugin: local storage is not supported on this platform.")};q.k=new function(){};q.A=new function(){};d.prototype.Yp=function(a){if(p){var d=
{},g,b,h;g=0;for(b=localStorage.length;g<b;g++)h=localStorage.key(g),c?h.substr(0,k.length)===k&&(d[h.substr(k.length)]=localStorage.getItem(h)):d[h]=localStorage.getItem(h);a.fc(JSON.stringify({c2dictionary:!0,data:d}))}else a.fc("")};q.ja=new d})();function Cc(d){this.b=d}
(function(){function d(a){var c;if(!b[a])for(b[a]=Array(20),c=0;20>c;++c)b[a][c]=0;return b[a]}function q(a){var b;if(!h[a])for(h[a]=Array(20),b=0;20>b;++b)h[a][b]=0;return h[a]}function n(a,b){return b?4<=a?-1:a+16:16<=a?-1:a}function k(b){v[b.gamepad.index]=b.gamepad;a.trigger(Cc.prototype.k.nv,e)}function c(b){a.trigger(Cc.prototype.k.ov,e);v[b.gamepad.index]=null}function p(){}var g=Cc.prototype;g.Z=function(a){this.La=a;this.b=a.b};g.Z.prototype.P=function(){};var a=null,e=null,v=Array(16),b=
Array(16),h=Array(16),t="",m="",D=null,x={windows:{}};x.windows.firefox={};var r=[0,1,2,3,4,5,8,9,10,11],f=[0,1,[7,6],2,3,[14,15],[12,13]];x.windows.firefox.xbox360=function(a,b){return b?a>=f.length?-1:ka(f[a])?f[a]+16:f[a]:a>=r.length?-1:r[a]};var l=[2,0,1,3,4,6,5,7,8,9],O=[0,1,2,3,[14,15],[12,13]];x.windows.firefox.logitechdualaction=function(a,b){return b?a>=O.length?-1:ka(O[a])?O[a]+16:O[a]:a>=l.length?-1:l[a]};g.S=function(b){this.type=b;a=this.b=b.b;e=this};var y=g.S.prototype;y.P=function(){this.Zw=
this.C[0];this.nj=0;var a=navigator.userAgent;t="windows";/mac/i.test(a)&&(t="mac");D=x[t];m="chrome";/firefox/i.test(a)&&(m="firefox");D&&(D=D[m]);window.addEventListener("webkitgamepadconnected",k,!1);window.addEventListener("webkitgamepaddisconnected",c,!1);window.addEventListener("MozGamepadConnected",k,!1);window.addEventListener("MozGamepadDisconnected",c,!1);window.addEventListener("gamepadconnected",k,!1);window.addEventListener("gamepaddisconnected",c,!1);this.b.mk(this);this.ri=[]};y.Pa=
function(){this.ri.length=0;var a=null,c=!1;navigator.getGamepads?a=navigator.getGamepads():navigator.webkitGetGamepads?a=navigator.webkitGetGamepads():navigator.mozGetGamepads?a=navigator.mozGetGamepads():navigator.msGetGamepads?a=navigator.msGetGamepads():this.b.Lr&&window.cr_getGamepads?(a=window.cr_getGamepads(),c=!0):a=navigator.gamepads||navigator.webkitGamepads||navigator.MozGamepads||v;if(a){var e,f,g,p,k,l,m;e=0;for(f=a.length;e<f;e++){var r=a[e];if(r){var t=d(e),x=q(e);p=e;g=d(p);p=q(p);
k=void 0;for(k=0;20>k;++k)p[k]=g[k];c?g=n:D?(g="",p=r.id.toLowerCase(),-1<p.indexOf("xbox 360")?g="xbox360":-1<p.indexOf("logitech dual action")&&(g="logitechdualaction"),g=D[g]||n):g=n;k=g;g=0;for(p=r.buttons.length;g<p;g++)m="undefined"!==typeof r.buttons[g].value?r.buttons[g].value:r.buttons[g],l=k(g,!1,m),0<=l&&20>l&&(t[l]=100*m,50<=t[l]&&50>x[l]&&(this.nj=l));g=0;for(p=r.axes.length;g<p;g++)m=r.axes[g],l=k(g,!0,m),ka(l)?0<=l&&20>l&&(t[l]=100*m):(t[l[0]]=0,t[l[1]]=0,0>=m?t[l[0]]=Math.abs(100*
m):t[l[1]]=Math.abs(100*m));this.ri.push(r)}else r=e,b[r]=null,h[r]=null}for(;20>e;++e)a=e,b[a]=null,h[a]=null}};y.tb=function(){return{lastButton:this.nj}};y.Mb=function(a){this.nj=a.lastButton};p.prototype.nv=function(){return!0};p.prototype.ov=function(){return!0};p.prototype.bq=function(a,b){a=Math.floor(a);if(0>a||a>=this.ri.length)return!1;var c=d(a);if(!c)return!1;if(c=50<=c[b])this.nj=b;return c};p.prototype.av=function(a,b){a=Math.floor(a);if(0>a||a>=this.ri.length)return!1;var c=d(a),e=
q(a);if(!c||!e)return!1;if(c=50<=c[b]&&50>e[b])this.nj=b;return c};p.prototype.ou=function(a,b,c,e){a=Math.floor(a);b=Math.floor(b);if(0>a||a>=this.ri.length)return!1;if(a=d(a)){var f=a[b+16],g=0,g=0===b%2?a[b+16+1]:a[b+16-1];Math.sqrt(f*f+g*g)<=this.Zw&&(f=0);return fc(f,c,e)}};g.k=new p;g.A=new function(){};g.ja=new function(){}})();function Dc(d){this.b=d}
(function(){function d(){}function q(){}var n=Dc.prototype;n.Z=function(c){this.behavior=c;this.b=c.b};n.Z.prototype.P=function(){};n.S=function(c,d){this.type=c;this.behavior=c.behavior;this.c=d;this.b=c.b};var k=n.S.prototype;k.P=function(){var c=this.C[0];this.Ld=this.C[1];this.Uc=this.C[2];this.Pw=0!==this.C[3];this.vp=0!==this.C[4];this.F=Math.cos(this.c.n)*c;this.I=Math.sin(this.c.n)*c;this.Lg=this.c.x;this.Mg=this.c.y;this.jd=this.c.n;this.Tm=0;this.enabled=0!==this.C[5]};k.tb=function(){return{acc:this.Ld,
g:this.Uc,dx:this.F,dy:this.I,lx:this.Lg,ly:this.Mg,lka:this.jd,t:this.Tm,e:this.enabled}};k.Mb=function(c){this.Ld=c.acc;this.Uc=c.g;this.F=c.dx;this.I=c.dy;this.Lg=c.lx;this.Mg=c.ly;this.jd=c.lka;this.Tm=c.t;this.enabled=c.e};k.Pa=function(){if(this.enabled){var c=this.b.tg(this.c),d,g;this.c.n!==this.jd&&(this.vp&&(d=Sa(0,0,this.F,this.I),this.F=Math.cos(this.c.n)*d,this.I=Math.sin(this.c.n)*d),this.jd=this.c.n);0!==this.Ld&&(d=Sa(0,0,this.F,this.I),g=0===this.F&&0===this.I?this.c.n:Ma(0,0,this.F,
this.I),d+=this.Ld*c,0>d&&(d=0),this.F=Math.cos(g)*d,this.I=Math.sin(g)*d);0!==this.Uc&&(this.I+=this.Uc*c);this.Lg=this.c.x;this.Mg=this.c.y;if(0!==this.F||0!==this.I)if(this.c.x+=this.F*c,this.c.y+=this.I*c,this.Tm+=Sa(0,0,this.F*c,this.I*c),this.vp&&(this.c.n=Ma(0,0,this.F,this.I),this.c.J(),this.jd=this.c.n),this.c.J(),this.Pw&&(d=this.b.Pb(this.c)))this.b.Zh(this.c,d),d=Sa(0,0,this.F,this.I),g=this.b.Rw(this.c,this.Lg,this.Mg),this.F=Math.cos(g)*d,this.I=Math.sin(g)*d,this.c.x+=this.F*c,this.c.y+=
this.I*c,this.c.J(),this.vp&&(this.jd=this.c.n=g,this.c.J()),this.b.Fd(this.c,this.F/d,this.I/d,Math.max(2.5*d*c,30))||this.b.dt(this.c,100)}};n.k=new function(){};d.prototype.fw=function(c){var d=Ma(0,0,this.F,this.I);this.F=Math.cos(d)*c;this.I=Math.sin(d)*c};d.prototype.Rv=function(c){c=Q(c);var d=Sa(0,0,this.F,this.I);this.F=Math.cos(c)*d;this.I=Math.sin(c)*d};d.prototype.ih=function(c){this.enabled=1===c};n.A=new d;q.prototype.zq=function(c){var d=Sa(0,0,this.F,this.I),d=lb(d);c.D(d)};n.ja=new q})();
function Ec(d){this.b=d}
(function(){function d(){}function q(){}var n=Ec.prototype;n.Z=function(c){this.behavior=c;this.b=c.b};n.Z.prototype.P=function(){};n.S=function(c,d){this.type=c;this.behavior=c.behavior;this.c=d;this.b=c.b};var k=n.S.prototype;k.P=function(){this.lf=this.Ae=this.fi=this.Xl=this.cm=0};k.tb=function(){return{ontime:this.cm,offtime:this.Xl,stage:this.fi,stagetimeleft:this.Ae,timeleft:this.lf}};k.Mb=function(c){this.cm=c.ontime;this.Xl=c.offtime;this.fi=c.stage;this.Ae=c.stagetimeleft;this.lf=c.timeleft};
k.Pa=function(){if(!(0>=this.lf)){var c=this.b.tg(this.c);this.lf-=c;0>=this.lf?(this.lf=0,this.c.visible=!0,this.b.za=!0,this.b.trigger(Ec.prototype.k.lv,this.c)):(this.Ae-=c,0>=this.Ae&&(0===this.fi?(this.c.visible=!1,this.fi=1,this.Ae+=this.Xl):(this.c.visible=!0,this.fi=0,this.Ae+=this.cm),this.b.za=!0))}};d.prototype.Nu=function(){return 0<this.lf};d.prototype.lv=function(){return!0};n.k=new d;q.prototype.Cu=function(c,d,g){this.cm=c;this.Xl=d;this.fi=1;this.Ae=d;this.lf=g;this.c.visible=!1;
this.b.za=!0};n.A=new q;n.ja=new function(){}})();function Fc(d){this.b=d}
(function(){function d(){}var q=Fc.prototype;q.Z=function(d){this.behavior=d;this.b=d.b};q.Z.prototype.P=function(){};q.S=function(d,c){this.type=d;this.behavior=d.behavior;this.c=c;this.b=d.b};var n=q.S.prototype;n.P=function(){this.Fb=null;this.hm=-1;this.mode=this.jd=this.Om=this.Qh=this.bf=this.Pj=0;var d=this;this.nd||(this.Cj=function(c){d.Ij(c)});this.b.Ck(this.Cj)};n.tb=function(){return{uid:this.Fb?this.Fb.uid:-1,pa:this.Pj,pd:this.bf,msa:this.Qh,tsa:this.Om,lka:this.jd,m:this.mode}};n.Mb=
function(d){this.hm=d.uid;this.Pj=d.pa;this.bf=d.pd;this.Qh=d.msa;this.Om=d.tsa;this.jd=d.lka;this.mode=d.m};n.Nd=function(){-1===this.hm?this.Fb=null:this.Fb=this.b.ug(this.hm);this.hm=-1};n.Ij=function(d){this.Fb==d&&(this.Fb=null)};n.Sg=function(){this.Fb=null;this.b.gt(this.Cj)};n.Pa=function(){};n.lk=function(){if(this.Fb){this.jd!==this.c.n&&(this.Qh=Ja(this.Qh+(this.c.n-this.jd)));var d=this.c.x,c=this.c.y;if(3===this.mode||4===this.mode){var p=Sa(this.c.x,this.c.y,this.Fb.x,this.Fb.y);if(p>
this.bf||4===this.mode&&p<this.bf)c=Ma(this.Fb.x,this.Fb.y,this.c.x,this.c.y),d=this.Fb.x+Math.cos(c)*this.bf,c=this.Fb.y+Math.sin(c)*this.bf}else d=this.Fb.x+Math.cos(this.Fb.n+this.Pj)*this.bf,c=this.Fb.y+Math.sin(this.Fb.n+this.Pj)*this.bf;this.jd=p=Ja(this.Qh+(this.Fb.n-this.Om));0!==this.mode&&1!==this.mode&&3!==this.mode&&4!==this.mode||this.c.x===d&&this.c.y===c||(this.c.x=d,this.c.y=c,this.c.J());0!==this.mode&&2!==this.mode||this.c.n===p||(this.c.n=p,this.c.J())}};q.k=new function(){};d.prototype.Jv=
function(d,c){if(d){var p=d.Ni(this.c);p&&(this.Fb=p,this.Pj=Ma(p.x,p.y,this.c.x,this.c.y)-p.n,this.bf=Sa(p.x,p.y,this.c.x,this.c.y),this.jd=this.Qh=this.c.n,this.Om=p.n,this.mode=c)}};q.A=new d;q.ja=new function(){}})();function Gc(d){this.b=d}
(function(){function d(){}function q(){}function n(){}var k=Gc.prototype;k.Z=function(c){this.behavior=c;this.b=c.b};k.Z.prototype.P=function(){};k.S=function(c,d){this.type=c;this.behavior=c.behavior;this.c=d;this.b=c.b;this.dk=this.Gm=this.Fm=this.wl=this.yi=this.Fi=this.Eh=this.Fh=this.Xj=this.qj=!1;this.Gc=null;this.Eo=-1;this.Hg=this.Gg=0;this.ll=!1;this.qg=this.Pd=0;this.jl=!0;this.I=this.F=0};var c=k.S.prototype;c.$t=function(){this.Ab=Math.cos(this.sh);this.Bb=Math.sin(this.sh);this.Tg=Math.cos(this.sh-
Math.PI/2);this.Ug=Math.sin(this.sh-Math.PI/2);this.Ab=lb(this.Ab);this.Bb=lb(this.Bb);this.Tg=lb(this.Tg);this.Ug=lb(this.Ug);this.Sn=this.Uc;0>this.Uc&&(this.Ab*=-1,this.Bb*=-1,this.Uc=Math.abs(this.Uc))};c.P=function(){this.Xe=this.C[0];this.Ld=this.C[1];this.oh=this.C[2];this.mj=this.C[3];this.Sn=this.Uc=this.C[4];this.Qg=this.C[5];this.In=0!==this.C[6];this.xo=this.C[7]/1E3;this.$w=1===this.C[8];this.enabled=0!==this.C[9];this.pi=!1;this.qi=this.b.kf(this.c);this.Fo=-1;this.Zg=0;this.sh=Q(90);
this.$t();var c=this;this.$w&&!this.b.Ya&&(jQuery(document).keydown(function(d){c.Wo(d)}),jQuery(document).keyup(function(d){c.Xo(d)}));this.nd||(this.Cj=function(d){c.Ij(d)});this.b.Ck(this.Cj);this.c.O.isPlatformBehavior=!0};c.tb=function(){return{ii:this.wl,lfx:this.Gg,lfy:this.Hg,lfo:this.Gc?this.Gc.uid:-1,am:this.Pd,en:this.enabled,fall:this.qg,ft:this.jl,dx:this.F,dy:this.I,ms:this.Xe,acc:this.Ld,dec:this.oh,js:this.mj,g:this.Uc,g1:this.Sn,mf:this.Qg,wof:this.pi,woj:this.qi?this.qi.uid:-1,ga:this.sh,
edj:this.In,cdj:this.yi,dj:this.Fi,sus:this.xo}};c.Mb=function(c){this.wl=c.ii;this.Gg=c.lfx;this.Hg=c.lfy;this.Eo=c.lfo;this.Pd=c.am;this.enabled=c.en;this.qg=c.fall;this.jl=c.ft;this.F=c.dx;this.I=c.dy;this.Xe=c.ms;this.Ld=c.acc;this.oh=c.dec;this.mj=c.js;this.Uc=c.g;this.Sn=c.g1;this.Qg=c.mf;this.pi=c.wof;this.Fo=c.woj;this.sh=c.ga;this.In=c.edj;this.yi=c.cdj;this.Fi=c.dj;this.xo=c.sus;this.dk=this.Gm=this.Fm=this.Eh=this.Fh=this.Xj=this.qj=!1;this.Zg=0;this.$t()};c.Nd=function(){-1===this.Eo?
this.Gc=null:this.Gc=this.b.ug(this.Eo);-1===this.Fo?this.qi=null:this.qi=this.b.ug(this.Fo)};c.Ij=function(c){this.Gc==c&&(this.Gc=null)};c.Sg=function(){this.Gc=null;this.b.gt(this.Cj)};c.Wo=function(c){switch(c.which){case 38:c.preventDefault();this.Fh=!0;break;case 37:c.preventDefault();this.qj=!0;break;case 39:c.preventDefault(),this.Xj=!0}};c.Xo=function(c){switch(c.which){case 38:c.preventDefault();this.Eh=this.Fh=!1;break;case 37:c.preventDefault();this.qj=!1;break;case 39:c.preventDefault(),
this.Xj=!1}};c.Rf=function(){this.Fh=this.Xj=this.qj=!1};c.xi=function(){return 0>this.Uc?-1:1};c.Ir=function(){var c=null,d=null,a,e;a=this.c.x;e=this.c.y;this.c.x+=this.Ab;this.c.y+=this.Bb;this.c.J();if(this.Gc&&this.b.ic(this.c,this.Gc))return this.c.x=a,this.c.y=e,this.c.J(),this.Gc;(c=this.b.Pb(this.c))||0!==this.qg||(d=this.b.kf(this.c,!0));this.c.x=a;this.c.y=e;this.c.J();if(c){if(this.b.ic(this.c,c))return null;this.ll=!1;return c}if(d&&d.length){e=c=0;for(a=d.length;c<a;c++)d[e]=d[c],this.b.ic(this.c,
d[c])||e++;if(1<=e)return this.ll=!0,d[0]}return null};c.Pa=function(){};c.Ys=function(){var c=this.b.tg(this.c),d,a,e,k,b,h,n,m,q;this.Fh||this.dk||(this.Eh=!1);var x=this.qj||this.Fm;e=this.Xj||this.Gm;var r=(k=this.Fh||this.dk)&&!this.Eh;this.dk=this.Gm=this.Fm=!1;if(this.enabled){this.wl&&(r=k=e=x=!1);k||(this.Zg=0);m=this.Gc;q=!1;this.jl&&((this.b.Pb(this.c)||this.b.kf(this.c))&&this.b.Fd(this.c,-this.Ab,-this.Bb,4,!0),this.jl=!1);!m||0!==this.I||m.y===this.Hg&&m.x===this.Gg||(d=m.x-this.Gg,
a=m.y-this.Hg,this.c.x+=d,this.c.y+=a,this.c.J(),this.Gg=m.x,this.Hg=m.y,q=!0,this.b.Pb(this.c)&&this.b.Fd(this.c,-d,-a,2.5*Math.sqrt(d*d+a*a)));var f=this.Ir();if(a=this.b.Pb(this.c))if(this.c.O.inputPredicted)this.b.Fd(this.c,-this.Ab,-this.Bb,10,!1);else if(this.b.dt(this.c,Math.max(this.c.width,this.c.height)/2))this.b.Zh(this.c,a);else return;f?(this.yi=this.Fi=!1,0<this.I&&(this.pi||(this.b.kp(this.c,-this.Ab,-this.Bb,f),this.pi=!0),this.I=0),m!=f)?(this.Gc=f,this.Gg=f.x,this.Hg=f.y,this.b.Zh(this.c,
f)):q&&(a=this.b.Pb(this.c))&&(this.b.Zh(this.c,a),0!==d&&(0<d?this.b.Fd(this.c,-this.Tg,-this.Ug):this.b.Fd(this.c,this.Tg,this.Ug)),this.b.Fd(this.c,-this.Ab,-this.Bb)):k||(this.yi=!0);if(f&&r||!f&&this.In&&k&&this.yi&&!this.Fi)m=this.c.x,q=this.c.y,this.c.x-=this.Ab,this.c.y-=this.Bb,this.c.J(),this.b.Pb(this.c)?r=!1:(this.Zg=this.xo,this.b.trigger(Gc.prototype.k.rv,this.c),this.Pd=2,this.I=-this.mj,r=!0,f?this.Eh=!0:this.Fi=!0),this.c.x=m,this.c.y=q,this.c.J();f||(k&&0<this.Zg?(this.I=-this.mj,
this.Zg-=c):(this.Gc=null,this.I+=this.Uc*c,this.I>this.Qg&&(this.I=this.Qg)),r&&(this.Eh=!0));this.pi=!!f;x==e&&(0>this.F?(this.F+=this.oh*c,0<this.F&&(this.F=0)):0<this.F&&(this.F-=this.oh*c,0>this.F&&(this.F=0)));x&&!e&&(this.F=0<this.F?this.F-(this.Ld+this.oh)*c:this.F-this.Ld*c);e&&!x&&(this.F=0>this.F?this.F+(this.Ld+this.oh)*c:this.F+this.Ld*c);this.F>this.Xe?this.F=this.Xe:this.F<-this.Xe&&(this.F=-this.Xe);x=!1;0!==this.F&&(m=this.c.x,q=this.c.y,d=this.F*c*this.Tg,a=this.F*c*this.Ug,this.c.x+=
this.Tg*(1<this.F?1:-1)-this.Ab,this.c.y+=this.Ug*(1<this.F?1:-1)-this.Bb,this.c.J(),k=!1,b=this.b.Pb(this.c),this.c.x=m+d,this.c.y=q+a,this.c.J(),e=this.b.Pb(this.c),!e&&f&&(e=this.b.kf(this.c))&&(this.c.x=m,this.c.y=q,this.c.J(),this.b.ic(this.c,e)?(e=null,k=!1):k=!0,this.c.x=m+d,this.c.y=q+a,this.c.J()),e?(d=Math.abs(this.F*c)+2,b||!this.b.Fd(this.c,-this.Ab,-this.Bb,d,k,e))?(this.b.Zh(this.c,e),d=Math.max(Math.abs(this.F*c*2.5),30),this.b.Fd(this.c,this.Tg*(0>this.F?1:-1),this.Ug*(0>this.F?1:
-1),d,!1)?!f||k||this.ll||(m=this.c.x,q=this.c.y,this.c.x+=this.Ab,this.c.y+=this.Bb,this.b.Pb(this.c)?this.b.Fd(this.c,-this.Ab,-this.Bb,3,!1)||(this.c.x=m,this.c.y=q,this.c.J()):(this.c.x=m,this.c.y=q,this.c.J())):(this.c.x=m,this.c.y=q,this.c.J()),k||(this.F=0)):!b&&!r&&Math.abs(this.I)<Math.abs(this.mj/4)&&(this.I=0,f||(x=!0)):(m=this.Ir(),f&&!m?(a=Math.ceil(Math.abs(this.F*c))+2,m=this.c.x,q=this.c.y,this.c.x+=this.Ab*a,this.c.y+=this.Bb*a,this.c.J(),this.b.Pb(this.c)||this.b.kf(this.c)?this.b.Fd(this.c,
-this.Ab,-this.Bb,a+2,!0):(this.c.x=m,this.c.y=q,this.c.J())):m&&0===this.I&&this.b.kp(this.c,-this.Ab,-this.Bb,m)));if(0!==this.I){m=this.c.x;q=this.c.y;this.c.x+=this.I*c*this.Ab;this.c.y+=this.I*c*this.Bb;d=this.c.x;e=this.c.y;this.c.J();a=this.b.Pb(this.c);k=!1;if(!a&&0<this.I&&!f){if((k=0<this.qg?null:this.b.kf(this.c,!0))&&k.length){if(this.qi){this.c.x=m;this.c.y=q;this.c.J();n=b=0;for(h=k.length;b<h;b++)k[n]=k[b],this.b.ic(this.c,k[b])||n++;k.length=n;this.c.x=d;this.c.y=e;this.c.J()}1<=k.length&&
(a=k[0])}k=!!a}a&&(this.b.Zh(this.c,a),this.Zg=0,d=k?Math.abs(this.I*c*2.5+10):Math.max(Math.abs(this.I*c*2.5+10),30),this.b.Fd(this.c,this.Ab*(0>this.I?1:-1),this.Bb*(0>this.I?1:-1),d,k,a)?(this.Gc=a,this.Gg=a.x,this.Hg=a.y,(this.ll=k)&&(x=!0),this.I=0):(this.c.x=m,this.c.y=q,this.c.J(),this.pi=!0,k||(this.I=0)))}3!==this.Pd&&0<this.I&&!f&&(this.b.trigger(Gc.prototype.k.kv,this.c),this.Pd=3);if(f||x)3===this.Pd||x||r&&0===this.I?(this.b.trigger(Gc.prototype.k.mq,this.c),this.Pd=0===this.F&&0===this.I?
0:1):(0!==this.Pd&&0===this.F&&0===this.I&&(this.b.trigger(Gc.prototype.k.Dv,this.c),this.Pd=0),1===this.Pd||0===this.F&&0===this.I||r||(this.b.trigger(Gc.prototype.k.vv,this.c),this.Pd=1));0<this.qg&&this.qg--;this.qi=this.b.kf(this.c)}};d.prototype.Ru=function(){return 0!==this.F||0!==this.I};d.prototype.Su=function(){if(0!==this.I)return!1;var c=null,d=null,a,e;a=this.c.x;e=this.c.y;this.c.x+=this.Ab;this.c.y+=this.Bb;this.c.J();(c=this.b.Pb(this.c))||0!==this.qg||(d=this.b.kf(this.c,!0));this.c.x=
a;this.c.y=e;this.c.J();if(c)return!this.b.ic(this.c,c);if(d&&d.length){e=c=0;for(a=d.length;c<a;c++)d[e]=d[c],this.b.ic(this.c,d[c])||e++;if(1<=e)return!0}return!1};d.prototype.Pu=function(){return 0>this.I};d.prototype.Mu=function(){return 0<this.I};d.prototype.rv=function(){return!0};d.prototype.kv=function(){return!0};d.prototype.Dv=function(){return!0};d.prototype.vv=function(){return!0};d.prototype.mq=function(){return!0};k.k=new d;q.prototype.Vv=function(c){this.wl=c};q.prototype.aw=function(c){this.Xe=
c;0>this.Xe&&(this.Xe=0)};q.prototype.$v=function(c){this.Qg=c;0>this.Qg&&(this.Qg=0)};q.prototype.uw=function(c){switch(c){case 0:this.Fm=!0;break;case 1:this.Gm=!0;break;case 2:this.dk=!0}};q.prototype.kw=function(c){this.F=c};q.prototype.lw=function(c){this.I=c};q.prototype.ih=function(c){this.enabled!==(1===c)&&(this.enabled=1===c,this.enabled||(this.Gc=null))};k.A=new q;n.prototype.zq=function(c){c.D(Math.sqrt(this.F*this.F+this.I*this.I))};n.prototype.Bw=function(c){c.D(this.F)};n.prototype.Cw=
function(c){c.D(this.I)};k.ja=new n})();function Kc(d){this.b=d}
(function(){function d(){}function q(){}function n(){}var k=Kc.prototype;k.Z=function(a){this.behavior=a;this.b=a.b};k.Z.prototype.P=function(){};k.S=function(a,c){this.type=a;this.behavior=a.behavior;this.c=c;this.b=a.b;this.G=0};var c=k.S.prototype,p=2*Math.PI,g=Math.PI/2,a=3*Math.PI/2;c.P=function(){this.H=1===this.C[0];this.Bj=this.C[1];this.Wp=this.C[2];this.$e=this.C[3];this.$e+=Math.random()*this.C[4];0===this.$e?this.G=0:(this.G=this.C[5]/this.$e*p,this.G+=Math.random()*this.C[6]/this.$e*
p);this.sc=this.C[7];this.sc+=Math.random()*this.C[8];this.we=this.zg=this.va=0;this.init()};c.tb=function(){return{i:this.G,a:this.H,mv:this.Bj,w:this.Wp,p:this.$e,mag:this.sc,iv:this.va,iv2:this.zg,r:this.we,lkv:this.Lb,lkv2:this.oj}};c.Mb=function(a){this.G=a.i;this.H=a.a;this.Bj=a.mv;this.Wp=a.w;this.$e=a.p;this.sc=a.mag;this.va=a.iv;this.zg=a.iv2||0;this.we=a.r;this.Lb=a.lkv;this.oj=a.lkv2||0};c.init=function(){switch(this.Bj){case 0:this.va=this.c.x;break;case 1:this.va=this.c.y;break;case 2:this.va=
this.c.width;this.we=this.c.height/this.c.width;break;case 3:this.va=this.c.width;break;case 4:this.va=this.c.height;break;case 5:this.va=this.c.n;this.sc=Q(this.sc);break;case 6:this.va=this.c.opacity;break;case 7:this.va=0;break;case 8:this.va=this.c.x,this.zg=this.c.y}this.Lb=this.va;this.oj=this.zg};c.Ee=function(c){c=c%p;switch(this.Wp){case 0:return Math.sin(c);case 1:return c<=g?c/g:c<=a?1-2*(c-g)/Math.PI:(c-a)/g-1;case 2:return 2*c/p-1;case 3:return-2*c/p+1;case 4:return c<Math.PI?-1:1}return 0};
c.Pa=function(){var a=this.b.tg(this.c);if(this.H&&0!==a){0===this.$e?this.G=0:(this.G+=a/this.$e*p,this.G=this.G%p);switch(this.Bj){case 0:this.c.x!==this.Lb&&(this.va+=this.c.x-this.Lb);this.c.x=this.va+this.Ee(this.G)*this.sc;this.Lb=this.c.x;break;case 1:this.c.y!==this.Lb&&(this.va+=this.c.y-this.Lb);this.c.y=this.va+this.Ee(this.G)*this.sc;this.Lb=this.c.y;break;case 2:this.c.width=this.va+this.Ee(this.G)*this.sc;this.c.height=this.c.width*this.we;break;case 3:this.c.width=this.va+this.Ee(this.G)*
this.sc;break;case 4:this.c.height=this.va+this.Ee(this.G)*this.sc;break;case 5:this.c.n!==this.Lb&&(this.va=Ja(this.va+(this.c.n-this.Lb)));this.c.n=Ja(this.va+this.Ee(this.G)*this.sc);this.Lb=this.c.n;break;case 6:this.c.opacity=this.va+this.Ee(this.G)*this.sc/100;0>this.c.opacity?this.c.opacity=0:1<this.c.opacity&&(this.c.opacity=1);break;case 8:this.c.x!==this.Lb&&(this.va+=this.c.x-this.Lb),this.c.y!==this.oj&&(this.zg+=this.c.y-this.oj),this.c.x=this.va+Math.cos(this.c.n)*this.Ee(this.G)*this.sc,
this.c.y=this.zg+Math.sin(this.c.n)*this.Ee(this.G)*this.sc,this.Lb=this.c.x,this.oj=this.c.y}this.c.J()}};c.Hs=function(a,c){switch(this.Bj){case 2:this.va*=c.width/a.width;this.we=c.height/c.width;break;case 3:this.va*=c.width/a.width;break;case 4:this.va*=c.height/a.height}};d.prototype.aq=function(){return this.H};k.k=new d;q.prototype.Pv=function(a){this.H=1===a};k.A=new q;n.prototype.Aw=function(a){a.D(this.Ee(this.G)*this.sc)};k.ja=new n})();function Lc(d){this.b=d}
(function(){var d=Lc.prototype;d.Z=function(d){this.behavior=d;this.b=d.b};d.Z.prototype.P=function(){};d.S=function(d,n){this.type=d;this.behavior=d.behavior;this.c=n;this.b=d.b};d=d.S.prototype;d.P=function(){};d.Pa=function(){this.c.Na();var d=this.c.Wa,n=this.c.u.nb;(0>d.right||0>d.bottom||d.left>n.width||d.top>n.height)&&this.b.Fe(this.c)}})();function tc(d){this.b=d}
(function(){function d(){}var q=tc.prototype;q.Z=function(d){this.behavior=d;this.b=d.b};q.Z.prototype.P=function(){};q.S=function(d,c){this.type=d;this.behavior=d.behavior;this.c=c;this.b=d.b};var n=q.S.prototype;n.P=function(){this.c.O.jumpthruEnabled=0!==this.C[0]};n.Pa=function(){};q.k=new function(){};d.prototype.ih=function(d){this.c.O.jumpthruEnabled=!!d};q.A=new d})();function Mc(d){this.b=d}
(function(){function d(c,d){return(c/=d)<1/2.75?7.5625*c*c+0:c<2/2.75?1*(7.5625*(c-=1.5/2.75)*c+.75)+0:c<2.5/2.75?1*(7.5625*(c-=2.25/2.75)*c+.9375)+0:1*(7.5625*(c-=2.625/2.75)*c+.984375)+0}var q=Mc.prototype;q.Z=function(c){this.behavior=c;this.b=c.b};q.Z.prototype.P=function(){};q.S=function(c,d){this.type=c;this.behavior=c.behavior;this.c=d;this.b=c.b;this.G=0};var n=q.S.prototype;n.xi=function(c){1<c&&(c=1);gc[this.group]=-1;gc[this.group]=c;gc[this.group]>=c&&(gc[this.group]=c)};n.rr=function(){""!=
this.group&&("undefined"===typeof hc&&(hc={},gc={}),"undefined"===typeof hc[this.group]&&(hc[this.group]=[],gc[this.group]=-1),-1==hc[this.group].indexOf(this)&&hc[this.group].push(this))};n.Tf=function(){this.rd=this.c.width;this.qd=this.c.height;this.ji=this.c.n;this.Tt=this.c.opacity;this.Zf=this.c.x;this.$f=this.c.y;this.Xm=this.value};n.P=function(){this.H=1===this.C[0];this.L=this.C[1];this.Gi=this.C[2];this.B=this.C[3];this.target=this.C[4];this.duration=this.C[5];this.dh=this.C[6];this.U=
this.C[7];this.value=this.C[8];this.ac=this.C[9];this.Nn=1===this.C[10];this.group=this.C[11];this.tc=null;this.Lc=0;5==this.U&&(this.Lc=1);this.rr();this.Dg=!1;this.ea=this.c.x;this.lb=this.c.y;this.ha=parseFloat(this.target.split(",")[0]);this.gb=parseFloat(this.target.split(",")[1]);this.Tf();this.ki=this.Yb=this.Ga=this.hb=this.ma=0;this.we=this.c.height/this.c.width;this.tm=this.reverse=!1;this.Vd=this.Ud=!0;this.loop=!1;this.Sa=this.Da=0;this.Ao=this.U;this.Hc=this.Lb=this.ma;this.kd=this.hb;
this.Nn&&this.init();""==this.B&&(this.B="current");this.Gj=this.Th=this.Hj=this.Uh=this.Lj=this.Wh=this.Kj=this.Vh=!1;this.H&&this.init()};n.init=function(){this.Vh=!1;""===this.B&&(this.B="current");""===this.target&&(this.target="current");var c="current"===this.B,d="current"===this.target,g="OBJ"===this.target;"OBJ"===this.target&&null!=this.tc&&(0==this.L?this.target=1==this.ac?this.tc.x-this.c.x+","+(this.tc.y-this.c.y):this.tc.x+","+this.tc.y:1==this.L||2==this.L||3==this.L||7==this.L?this.target=
1==this.ac?(2==this.L?1:this.tc.width)+","+(3==this.L?1:this.tc.height):(2==this.L?1:this.tc.width/this.rd)+","+(3==this.L?1:this.tc.height/this.qd):4==this.L?this.target=1==this.ac?Ha(this.tc.n-this.c.n)+"":Ha(this.tc.n)+"":5==this.L&&(this.target=1==this.ac?100*(this.tc.opacity-this.c.opacity)+"":100*this.tc.opacity+""));if(0==this.L)d&&(this.target=this.c.x+","+this.c.y),c?this.B=1==this.ac?this.c.x+","+this.c.y:this.Zf+","+this.$f:this.reverse||1==this.U||(this.c.x=parseFloat(this.B.split(",")[0]),
this.c.y=parseFloat(this.B.split(",")[1])),1==this.ac?(this.loop&&(this.c.x=this.Zf,this.c.y=this.$f),this.ea=this.c.x,this.lb=this.c.y,this.reverse?(this.ha=-parseFloat(this.target.split(",")[0]),this.gb=-parseFloat(this.target.split(",")[1])):(this.ha=parseFloat(this.target.split(",")[0]),this.gb=parseFloat(this.target.split(",")[1])),this.ma=this.ea,this.hb=this.lb,this.Ga=this.ma+this.ha,this.Yb=this.hb+this.gb):(this.reverse?(this.c.x=parseFloat(this.target.split(",")[0]),this.c.y=parseFloat(this.target.split(",")[1]),
this.ha=this.Zf,this.gb=this.$f):(this.c.x=this.Zf,this.c.y=this.$f,this.ha=parseFloat(this.target.split(",")[0]),this.gb=parseFloat(this.target.split(",")[1])),this.ea=this.c.x,this.lb=this.c.y,this.ma=this.ea,this.hb=this.lb,this.Ga=this.ha,this.Yb=this.gb,-6==this.U&&(this.Ga=this.Zf,this.Yb=this.$f));else if(1==this.L||2==this.L||3==this.L){d&&(this.target="1,1");"current"==this.B&&(this.B="1,1");this.B=""+this.B;this.target=""+this.target;2==this.L?(-1==this.B.indexOf(",")&&(this.B=parseFloat(this.B)+
",1"),-1==this.target.indexOf(",")&&(this.target=parseFloat(this.target)+",1")):3==this.L?(-1==this.B.indexOf(",")&&(this.B="1,"+parseFloat(this.B)),-1==this.target.indexOf(",")&&(this.target="1,"+parseFloat(this.target))):(-1==this.B.indexOf(",")&&(this.B=parseFloat(this.B)+","+parseFloat(this.B)),-1==this.target.indexOf(",")&&(this.target=parseFloat(this.target)+","+parseFloat(this.target)));var a=parseFloat(this.B.split(",")[0]),e=parseFloat(this.B.split(",")[1]);this.Ud=!0;var k=parseFloat(this.target.split(",")[0]);
if(0==k||isNaN(k))this.Ud=!1;3==this.L&&(this.Ud=!1);this.Vd=!0;var b=parseFloat(this.target.split(",")[1]);if(0==b||isNaN(b))this.Vd=!1;2==this.L&&(this.Vd=!1);1==this.ac?(this.loop&&(this.c.width=this.rd,this.c.height=this.qd),c||(this.reverse?(this.c.width=this.c.width*k,this.c.height=this.c.height*b):(this.c.width=this.c.width*a,this.c.height=this.c.height*e)),this.ea=this.c.width,this.lb=this.c.height,this.ma=this.ea,this.hb=this.lb,this.reverse?(this.ha=this.ea*a/k,this.gb=this.lb*e/b):(this.ha=
this.ea*k,this.gb=this.lb*b)):(c||(this.reverse?(this.c.width=this.rd*k,this.c.height=this.qd*b):(this.c.width=this.rd*a,this.c.height=this.qd*e)),this.ea=this.c.width,this.lb=this.c.height,this.ma=this.ea,this.hb=this.lb,this.reverse?(this.ha=this.rd*a,this.gb=this.qd*e):(this.ha=this.rd*k,this.gb=this.qd*b));this.Ga=this.ha;this.Yb=this.gb;-6==this.U&&(this.Ga=this.rd*a,this.Yb=this.qd*e)}else if(4==this.L)d&&(this.target=Ha(this.c.n)),"current"==this.B||this.reverse||1==this.U||(this.c.n=Q(parseFloat(this.B.split(",")[0]))),
1==this.ac?(this.loop&&(this.c.n=this.ji),this.ea=this.c.n,this.reverse?this.ha=this.c.n-Q(parseFloat(this.target.split(",")[0])):this.ha=this.c.n+Q(parseFloat(this.target.split(",")[0]))):this.reverse?(this.c.n=Q(parseFloat(this.target.split(",")[0])),this.ea=this.c.n,this.ha=this.ji):(this.c.n=this.ji,this.ea=this.c.n,this.ha=Q(parseFloat(this.target.split(",")[0]))),this.ma=this.ea,this.Ga=Ha(this.ha),-6==this.U&&(this.Ga=Ha(this.ji)),this.ki=Q(this.Ga);else if(5==this.L)"current"==this.B&&(this.B=
this.c.opacity),d&&(this.target=""+this.c.opacity),c||this.reverse||1==this.U||(this.c.opacity=parseFloat(this.B.split(",")[0])/100),1==this.ac?(this.loop&&(this.c.opacity=this.Tt),this.ma=this.ea=this.c.opacity,this.ha=this.reverse?-parseFloat(this.target.split(",")[0])/100:parseFloat(this.target.split(",")[0])/100,this.Ga=this.ma+this.ha):(this.ea=this.c.opacity,this.reverse?(this.ma=parseFloat(this.target.split(",")[0])/100,this.ha=parseFloat(this.B.split(",")[0])/100):(this.ma=this.ea,this.ha=
parseFloat(this.target.split(",")[0])/100),this.Ga=this.ha),-6==this.U&&(this.Ga=this.Tt);else if(6==this.L)isNaN(this.value)&&(this.value=0),"current"==this.B&&(this.B=""+this.value),d&&(this.target=""+this.value),c||this.reverse||1==this.U||(this.value=parseFloat(this.B.split(",")[0])),1==this.ac?(this.loop&&(this.value=this.Xm),c||(this.value=this.reverse?parseFloat(this.target.split(",")[0]):parseFloat(this.B.split(",")[0])),this.ea=this.value,this.reverse?this.ha=this.ea-parseFloat(this.target.split(",")[0]):
this.ha=this.ea+parseFloat(this.target.split(",")[0]),this.ma=this.ea,this.Ga=this.ha):(c||(this.value=this.reverse?parseFloat(this.target.split(",")[0]):parseFloat(this.B.split(",")[0])),this.ea=this.value,this.ha=this.reverse?parseFloat(this.B.split(",")[0]):parseFloat(this.target.split(",")[0]),this.ma=this.ea,this.Ga=this.ha),-6==this.U&&(this.Ga=this.Xm);else if(7==this.L){d&&(this.target=this.c.width+","+this.c.height);"current"==this.B||this.reverse||1==this.U||(this.c.width=parseFloat(this.B.split(",")[0]),
this.c.height=parseFloat(this.B.split(",")[1]));this.Ud=!0;k=parseFloat(this.target.split(",")[0]);if(0>k||isNaN(k))this.Ud=!1;this.Vd=!0;b=parseFloat(this.target.split(",")[1]);if(0>b||isNaN(b))this.Vd=!1;1==this.ac?(this.loop&&(this.c.width=this.rd,this.c.height=this.qd),this.ea=this.c.width,this.lb=this.c.height,this.reverse?(this.ha=this.ea-parseFloat(this.target.split(",")[0]),this.gb=this.lb-parseFloat(this.target.split(",")[1])):(this.ha=this.ea+parseFloat(this.target.split(",")[0]),this.gb=
this.lb+parseFloat(this.target.split(",")[1]))):(c||(this.reverse?(this.c.width=parseFloat(this.target.split(",")[0]),this.c.height=parseFloat(this.target.split(",")[1])):(this.c.width=this.rd,this.c.height=this.qd)),this.ea=this.c.width,this.lb=this.c.height,this.reverse?(this.ha=this.rd,this.gb=this.qd):(this.ha=parseFloat(this.target.split(",")[0]),this.gb=parseFloat(this.target.split(",")[1])));this.ma=this.ea;this.hb=this.lb;this.Ga=this.ha;this.Yb=this.gb;-6==this.U&&(this.Ga=this.rd,this.Yb=
this.qd)}this.Hc=this.Lb=this.ma;this.kd=this.hb;this.Da=parseFloat(this.dh.split(",")[0]);this.Sa=parseFloat(this.dh.split(",")[1]);if(0>this.Da||isNaN(this.Da))this.Da=0;if(0>this.Sa||isNaN(this.Sa))this.Sa=0;c&&(this.B="current");d&&(this.target="current");g&&(this.target="OBJ")};n.Hx=function(c,k){switch(this.Gi){case 0:return 1*c/k+0;case 1:return 1*(c/=k)*c+0;case 2:return-1*(c/=k)*(c-2)+0;case 3:return 1>(c/=k/2)?.5*c*c+0:-.5*(--c*(c-2)-1)+0;case 4:return 1*(c/=k)*c*c+0;case 5:return 1*((c=
c/k-1)*c*c+1)+0;case 6:return 1>(c/=k/2)?.5*c*c*c+0:.5*((c-=2)*c*c+2)+0;case 7:return 1*(c/=k)*c*c*c+0;case 8:return-1*((c=c/k-1)*c*c*c-1)+0;case 9:return 1>(c/=k/2)?.5*c*c*c*c+0:-.5*((c-=2)*c*c*c-2)+0;case 10:return 1*(c/=k)*c*c*c*c+0;case 11:return 1*((c=c/k-1)*c*c*c*c+1)+0;case 12:return 1>(c/=k/2)?.5*c*c*c*c*c+0:.5*((c-=2)*c*c*c*c+2)+0;case 13:return-1*(Math.sqrt(1-(c/=k)*c)-1)+0;case 14:return 1*Math.sqrt(1-(c=c/k-1)*c)+0;case 15:return 1>(c/=k/2)?-.5*(Math.sqrt(1-c*c)-1)+0:.5*(Math.sqrt(1-(c-=
2)*c)+1)+0;case 16:var g=0;0==g&&(g=1.70158);return 1*(c/=k)*c*((g+1)*c-g)+0;case 17:return g=0,0==g&&(g=1.70158),1*((c=c/k-1)*c*((g+1)*c+g)+1)+0;case 18:return g=0,0==g&&(g=1.70158),1>(c/=k/2)?.5*c*c*(((g*=1.525)+1)*c-g)+0:.5*((c-=2)*c*(((g*=1.525)+1)*c+g)+2)+0;case 19:var a=0,e=0;if(0==c)break;if(1==(c/=k))return 1;0==e&&(e=.3*k);0==a||a<Math.abs(1)?(a=1,g=e/4):g=e/(2*Math.PI)*Math.asin(1/a);return-(a*Math.pow(2,10*--c)*Math.sin(2*(c*k-g)*Math.PI/e))+0;case 20:e=a=0;if(0==c)break;if(1==(c/=k))return 1;
0==e&&(e=.3*k);0==a||a<Math.abs(1)?(a=1,g=e/4):g=e/(2*Math.PI)*Math.asin(1/a);return a*Math.pow(2,-10*c)*Math.sin(2*(c*k-g)*Math.PI/e)+1;case 21:e=a=0;if(0==c)break;if(2==(c/=k/2))return 1;0==e&&(e=.3*k*1.5);0==a||a<Math.abs(1)?(a=1,g=e/4):g=e/(2*Math.PI)*Math.asin(1/a);return 1>c?-.5*a*Math.pow(2,10*--c)*Math.sin(2*(c*k-g)*Math.PI/e)+0:a*Math.pow(2,-10*--c)*Math.sin(2*(c*k-g)*Math.PI/e)*.5+1;case 22:return 1-d(k-c,k)+0;case 23:return d(c,k);case 24:return c<k/2?.5*(1-d(k-2*c,k)+0)+0:.5*d(2*c-k,k)+
.5;case 25:return g=c/k/2,2*g*g*(3-2*g);case 26:return g=(c/k+1)/2,2*g*g*(3-2*g)-1;case 27:return g=c/k,g*g*(3-2*g)}return 0};n.tb=function(){return{i:this.G,active:this.H,tweened:this.L,easing:this.Gi,initial:this.B,target:this.target,duration:this.duration,wait:this.dh,playmode:this.U,value:this.value,coord_mode:this.ac,forceInit:this.Nn,group:this.group,targetObject:this.tc,pingpongCounter:this.Lc,isPaused:this.Dg,initialX:this.ea,initialY:this.lb,targetX:this.ha,targetY:this.gb,tweenSaveWidth:this.rd,
tweenSaveHeight:this.qd,tweenSaveAngle:this.ji,tweenSaveX:this.Zf,tweenSaveY:this.$f,tweenSaveValue:this.Xm,tweenInitialX:this.ma,tweenInitialY:this.hb,tweenTargetX:this.Ga,tweenTargetY:this.Yb,tweenTargetAngle:this.ki,ratio:this.we,reverse:this.reverse,rewindMode:this.tm,doTweenX:this.Ud,doTweenY:this.Vd,loop:this.loop,initiating:this.Da,cooldown:this.Sa,lastPlayMode:this.Ao,lastKnownValue:this.Lb,lastKnownX:this.Hc,lastKnownY:this.kd,onStarted:this.Vh,onStartedDone:this.Kj,onWaitEnd:this.Wh,onWaitEndDone:this.Lj,
onEnd:this.Uh,onEndDone:this.Hj,onCooldown:this.Th,onCooldownDone:this.Gj}};n.Mb=function(c){this.G=c.i;this.H=c.active;this.L=c.tweened;this.Gi=c.easing;this.B=c.initial;this.target=c.target;this.duration=c.duration;this.dh=c.wait;this.U=c.playmode;this.value=c.value;this.ac=c.coord_mode;this.Nn=c.forceInit;this.group=c.group;this.tc=c.targetObject;this.Lc=c.pingpongCounter;this.Dg=c.isPaused;this.ea=c.initialX;this.lb=c.initialY;this.ha=c.targetX;this.gb=c.targetY;this.rd=c.tweenSaveWidth;this.qd=
c.tweenSaveHeight;this.ji=c.tweenSaveAngle;this.Zf=c.tweenSaveX;this.$f=c.tweenSaveY;this.Xm=c.tweenSaveValue;this.ma=c.tweenInitialX;this.hb=c.tweenInitialY;this.Ga=c.tweenTargetX;this.Yb=c.tweenTargetY;this.ki=c.tweenTargetAngle;this.we=c.ratio;this.reverse=c.reverse;this.tm=c.rewindMode;this.Ud=c.doTweenX;this.Vd=c.doTweenY;this.loop=c.loop;this.Da=c.initiating;this.Sa=c.cooldown;this.Ao=c.lastPlayMode;this.Lb=c.lastKnownValue;this.Hc=c.lastKnownX;this.kd=c.lastKnownY;this.Vh=c.onStarted;this.Kj=
c.onStartedDone;this.Wh=c.onWaitEnd;this.Lj=c.onWaitEndDone;this.Uh=c.onEnd;this.Hj=c.onEndDone;this.Th=c.onCooldown;this.Gj=c.onCooldownDone;this.rr()};n.Pa=function(){var c=this.b.tg(this.c),d=-1==this.G;this.H&&0!==c&&(0!=this.G||this.Vh||(this.Vh=!0,this.Gj=this.Th=this.Hj=this.Uh=this.Lj=this.Wh=this.Kj=!1,this.b.trigger(Mc.prototype.k.Cv,this.c),this.Kj=!0),this.G=-1==this.G?this.Da+this.duration+this.Sa:this.G+c,this.G<=this.Da||(0==this.Wh&&(this.Wh=!0,this.b.trigger(Mc.prototype.k.Gv,this.c),
this.Lj=!0),this.G<=this.duration+this.Da&&(c=this.Hx(this.G-this.Da,this.duration),0==this.L?(1==this.ac?(this.c.x!==this.Hc&&(this.ma+=this.c.x-this.Hc,this.Ga+=this.c.x-this.Hc),this.c.y!==this.kd&&(this.hb+=this.c.y-this.kd,this.Yb+=this.c.y-this.kd)):(this.c.x!==this.Hc&&(this.ma+=this.c.x-this.Hc),this.c.y!==this.kd&&(this.hb+=this.c.y-this.kd)),this.c.x=this.ma+(this.Ga-this.ma)*c,this.c.y=this.hb+(this.Yb-this.hb)*c,this.Hc=this.c.x,this.kd=this.c.y):1==this.L||2==this.L||3==this.L?(this.c.width!==
this.Hc&&(this.ma=this.c.width),this.c.height!==this.kd&&(this.hb=this.c.height),this.Ud&&(this.c.width=this.ma+(this.Ga-this.ma)*c),this.Vd?this.c.height=this.hb+(this.Yb-this.hb)*c:1==this.L&&(this.c.height=this.c.width*this.we),this.Hc=this.c.width,this.kd=this.c.height):4==this.L?(c=this.ma+(this.ki-this.ma)*c,this.G>=this.duration+this.Da&&(c=this.ki),this.c.n=Ja(c)):5==this.L?(1==this.ac&&this.c.opacity!==this.Hc&&(this.ma=this.c.opacity),this.c.opacity=this.ma+(this.Ga-this.ma)*c,this.Hc=this.c.opacity):
6==this.L?this.value=this.ma+(this.Ga-this.ma)*c:7==this.L&&(1==this.ac&&(this.c.width!==this.Hc&&(this.ma=this.c.width),this.c.height!==this.kd&&(this.hb=this.c.height)),this.Ud&&(this.c.width=this.ma+(this.Ga-this.ma)*c),this.Vd&&(this.c.height=this.hb+(this.Yb-this.hb)*c),this.Hc=this.c.width,this.kd=this.c.height),this.c.J()),this.G>=this.duration+this.Da&&(this.jx(d),this.c.J(),0==this.Uh&&(this.Uh=!0,this.b.trigger(Mc.prototype.k.iq,this.c),this.Hj=!0))))};n.jx=function(c){switch(this.L){case 0:this.c.x=
this.Ga;this.c.y=this.Yb;break;case 1:this.Ud&&(this.c.width=this.Ga);this.Vd?this.c.height=this.Yb:this.c.height=this.c.width*this.we;break;case 2:this.c.width=this.Ga;break;case 3:this.c.height=this.Yb;break;case 4:this.c.n=Ja(this.ki);this.Lb=this.c.n;break;case 5:this.c.opacity=this.Ga;break;case 6:this.value=this.Ga;break;case 7:this.Ud&&(this.c.width=this.Ga),this.Vd&&(this.c.height=this.Yb)}this.G>=this.duration+this.Da+this.Sa&&(0==this.U?(this.reverse=this.H=!1,this.G=this.duration+this.Da+
this.Sa):1==this.U?(this.G=0,this.init(),this.H=!0):2==this.U?c?(this.reverse=!1,this.init()):(this.reverse=!this.reverse,this.G=0,this.init(),this.H=!0):3==this.U?this.b.Fe(this.c):4==this.U?(this.loop=!0,this.G=0,this.init(),this.H=!0):5==this.U?c?(this.reverse=!1,this.init()):0>=this.Lc?(this.G=this.duration+this.Da+this.Sa,this.H=!1):(this.reverse?(--this.Lc,this.reverse=!1):(--this.Lc,this.reverse=!0),this.G=0,this.init(),this.H=!0):-6==this.U?(this.U=this.Ao,this.reverse=!1,this.G=0,this.H=
!1):6==this.U&&(this.reverse=!1,this.G=this.duration+this.Da+this.Sa,this.H=!1));0==this.Th&&(this.Th=!0,this.b.trigger(Mc.prototype.k.dv,this.c),this.Gj=!0)};q.k={};n=q.k;n.aq=function(){return this.H};n.OA=function(c,d){var g=[];hc[this.group].forEach(function(a){g.push(a.G/(a.duration+a.Da+a.Sa))});return fc(Math.min.apply(null,g),c,d)};n.RA=function(c,d){return fc(this.G/(this.duration+this.Da+this.Sa),c,d)};n.Cv=function(){if(!1===this.Kj)return this.Vh};n.Gv=function(){if(!1===this.Lj)return this.Wh};
n.iq=function(){if(!1===this.Hj)return this.Uh};n.dv=function(){if(!1===this.Gj)return this.Th};q.A={};var k=q.A;k.Pv=function(c){this.H=1===c};k.KB=function(c,d){""===d&&(d=this.group);(1===c||hc[d].every(function(c){return!c.H}))&&hc[d].forEach(function(d){1===c?k.Zp.apply(d):k.vw.apply(d)})};k.LB=function(c,d){""===d&&(d=this.group);hc[d].forEach(function(d){k.jn.apply(d,[c])})};k.pB=function(c,d,g){""===g&&(g=this.group);(1===c||hc[g].every(function(a){return!a.H}))&&hc[g].forEach(function(a){1===
c?k.Eu.apply(a,[d]):k.Nv.apply(a,[d])})};k.Zp=function(){this.loop=4===this.U;5==this.U&&(this.Lc=1);6==this.U||-6==this.U?this.G<this.duration+this.Sa+this.Da&&(this.reverse=!1,this.init(),this.H=!0):(this.reverse=!1,this.G=0,this.init(),this.H=!0)};k.Eu=function(c){this.tm=1==c;this.loop=4===this.U;5==this.U&&(this.Lc=1);6==this.U||-6==this.U?this.G<this.duration+this.Sa+this.Da&&(this.reverse=!0,this.init(),this.H=!0):c?1==this.Lc&&this.G>=this.duration+this.Sa+this.Da&&(this.reverse=!0,this.G=
0,this.Lc=2,this.init(),this.H=!0):(this.reverse=!0,this.G=0,this.init(),this.H=!0)};k.vw=function(){this.H||(this.loop=4===this.U,5==this.U&&(this.Lc=1),6==this.U||-6==this.U?this.G<this.duration+this.Sa+this.Da&&(this.reverse=!1,this.init(),this.H=!0):(this.Lc=1,this.reverse=!1,this.G=0,this.init(),this.H=!0))};k.jn=function(c){this.H&&(2==this.U||4==this.U?this.G=this.reverse?0:-1:1==c?this.Tf():0==c?this.G=this.Da+this.Sa+this.duration:this.G=0,this.Pa(),this.H=!1)};k.fB=function(){this.H&&(this.Dg=
!0,this.H=!1)};k.oB=function(){this.Dg?(this.H=!0,this.Dg=!1):this.H||(this.reverse=!1,this.G=0,this.init(),this.H=!0)};k.Nv=function(c){this.tm=1==c;this.H||(this.loop=4===this.U,5==this.U&&(this.Lc=1),6==this.U||-6==this.U?this.G<this.duration+this.Sa+this.Da&&(this.reverse=!0,this.init(),this.H=!0):c?1==this.Lc&&this.G>=this.duration+this.Sa+this.Da&&(this.reverse=!0,this.G=0,this.Lc=2,this.init(),this.H=!0):(this.reverse=!0,this.G=0,this.init(),this.H=!0))};k.Uv=function(c){this.duration=c};k.pw=
function(c){this.dh=c;this.Da=parseFloat(this.dh.split(",")[0]);this.Sa=parseFloat(this.dh.split(",")[1]);if(0>this.Da||isNaN(this.Da))this.Da=0;if(0>this.Sa||isNaN(this.Sa))this.Sa=0};k.gw=function(c){"string"==typeof c?(this.target=c,this.ha=parseFloat(c.split(",")[0]),this.gb=parseFloat(c.split(",")[1])):this.ha=this.target=c;this.H||this.init()};k.GB=function(c){c&&(c=c.Ni())&&(this.tc=c,this.target="OBJ")};k.hw=function(c){2==this.L||3==this.L||4==this.L||5==this.L||6==this.L?("string"==typeof c?
this.target=parseFloat(c.split(",")[0]):this.target=""+c+","+this.gb,this.ha=this.target):(this.target=String(c)+","+this.target.split(",")[1],this.ha=parseFloat(this.target.split(",")[0]),this.gb=parseFloat(this.target.split(",")[1]));this.H||(this.Tf(),this.init())};k.iw=function(c){2==this.L||3==this.L||4==this.L||5==this.L||6==this.L?this.ha=this.target="string"==typeof c?parseFloat(c)+"":this.ha+","+c:(this.target=this.target.split(",")[0]+","+String(c),this.ha=parseFloat(this.target.split(",")[0]),
this.gb=parseFloat(this.target.split(",")[1]));this.H||(this.Tf(),this.init())};k.Wv=function(c){"string"==typeof c?(this.B=c,this.ea=parseFloat(c.split(",")[0]),this.lb=parseFloat(c.split(",")[1])):(this.B=""+c,this.ea=c);6==this.L&&(this.value=this.ea);this.H||(this.Tf(),this.init())};k.zB=function(c){2==this.L||3==this.L||4==this.L||5==this.L||6==this.L?("string"==typeof c?this.B=parseFloat(c):this.B=""+c+","+this.lb,this.ea=this.B):(""==this.B&&(this.B="current"),this.B=String(c)+","+("current"==
this.B?this.$f:this.B.split(",")[1]),this.ea=parseFloat(this.B.split(",")[0]),this.lb=parseFloat(this.B.split(",")[1]));6==this.L&&(this.value=this.ea);this.H||(this.Tf(),this.init())};k.AB=function(c){2==this.L||3==this.L||4==this.L||5==this.L||6==this.L?("string"==typeof c?this.B=parseFloat(c):this.B=""+this.ea+","+c,this.ea=this.B):(""==this.B&&(this.B="current"),this.B=("current"==this.B?this.Zf:this.B.split(",")[0])+","+String(c),this.ea=parseFloat(this.B.split(",")[0]),this.lb=parseFloat(this.B.split(",")[1]));
this.H||(this.Tf(),this.init())};k.JB=function(c){this.value=c};k.IB=function(c){this.L=c};k.vB=function(c){this.Gi=c};k.CB=function(c){this.U=c};k.BB=function(c,d,g,a,e,n,b,h){this.L=c;this.U=d;this.Gi=g;k.Wv.apply(this,[a]);k.gw.apply(this,[e]);k.Uv.apply(this,[n]);k.pw.apply(this,[b]);this.ac=h;this.Tf()};q.ja={};q=q.ja;q.mB=function(c){c.D(this.G/(this.duration+this.Da+this.Sa))};q.nB=function(c){c.D(this.G)};q.yu=function(c){c.D(this.duration)};q.WA=function(c){c.D(this.Da)};q.TA=function(c){c.D(this.Sa)};
q.MB=function(c){c.fc(this.target)};q.Aw=function(c){c.D(this.value)};q.Dg=function(c){c.Oa(this.Dg?1:0)}})();function Nc(d){this.b=d;this.Em=this.ck=this.Xg=this.Dm=0}
(function(){function d(){}var q=Nc.prototype;q.Z=function(d){this.behavior=d;this.b=d.b};q.Z.prototype.P=function(){};q.S=function(d,c){this.type=d;this.behavior=d.behavior;this.c=c;this.b=d.b};var n=q.S.prototype;n.P=function(){this.enabled=0!==this.C[0]};n.tb=function(){return{smg:this.behavior.Dm,ss:this.behavior.Xg,se:this.behavior.ck,smd:this.behavior.Em}};n.Mb=function(d){this.behavior.Dm=d.smg;this.behavior.Xg=d.ss;this.behavior.ck=d.se;this.behavior.Em=d.smd};n.Pa=function(){};n.lk=function(){if(this.enabled){var d=
this.behavior.Tl.pf(),c=0,n=0,g,a,e,q=0;g=0;for(a=d.length;g<a;g++){a:{e=d[g];for(var b=void 0,h=void 0,t=void 0,b=0,h=e.Y.length;b<h;++b)if(t=e.Y[b],t.behavior instanceof Nc){e=t;break a}e=null}e&&e.enabled&&(c+=d[g].x,n+=d[g].y,++q)}d=this.c.u.nb;a=this.b.mb.qa;e=g=0;a>=this.behavior.Xg&&a<this.behavior.ck&&(g=this.behavior.Dm*Math.min(this.b.ah,1),0===this.behavior.Em&&(g*=1-(a-this.behavior.Xg)/(this.behavior.ck-this.behavior.Xg)),a=Math.random()*Math.PI*2,e=Math.random()*g,g=Math.cos(a)*e,e*=
Math.sin(a));d.wm(c/q+g);d.xm(n/q+e)}};d.prototype.tw=function(d,c,n){this.behavior.Dm=d;this.behavior.Xg=this.b.mb.qa;this.behavior.ck=this.behavior.Xg+c;this.behavior.Em=n};d.prototype.ih=function(d){this.enabled=0!==d};q.A=new d})();function sc(d){this.b=d}
(function(){function d(){}var q=sc.prototype;q.Z=function(d){this.behavior=d;this.b=d.b};q.Z.prototype.P=function(){};q.S=function(d,c){this.type=d;this.behavior=d.behavior;this.c=c;this.b=d.b};var n=q.S.prototype;n.P=function(){this.c.O.solidEnabled=0!==this.C[0]};n.Pa=function(){};q.k=new function(){};d.prototype.ih=function(d){this.c.O.solidEnabled=!!d};q.A=new d})();
function rc(){return[uc,Y,yc,zc,Ac,Bc,vc,Cc,wc,xc,sc,Dc,Nc,Gc,Mc,Ec,Kc,Fc,Lc,tc,U.prototype.k.Ou,Y.prototype.k.qu,Dc.prototype.A.fw,U.prototype.ja.cx,Y.prototype.ja.kn,Y.prototype.ja.Ak,Dc.prototype.A.Rv,U.prototype.ja.n,Y.prototype.A.hu,U.prototype.A.Yv,U.prototype.A.Ov,Y.prototype.A.xw,Y.prototype.A.Xv,U.prototype.ja.random,U.prototype.k.nq,uc.prototype.A.Zv,Y.prototype.A.xu,uc.prototype.A.Play,uc.prototype.k.Lv,U.prototype.k.zw,Y.prototype.k.Uu,uc.prototype.A.ow,U.prototype.k.su,U.prototype.k.nu,
uc.prototype.ja.Dw,Y.prototype.k.uu,U.prototype.A.jw,Y.prototype.k.dq,U.prototype.k.Du,Y.prototype.A.sw,Y.prototype.k.cv,U.prototype.k.Au,U.prototype.A.vu,Y.prototype.ja.Xu,Y.prototype.A.mw,U.prototype.k.Bu,Y.prototype.A.dw,Y.prototype.ja.Hu,Y.prototype.ja.Iu,Y.prototype.A.Sv,Y.prototype.k.Ju,Gc.prototype.k.Su,wc.prototype.k.jq,Cc.prototype.k.av,Gc.prototype.A.uw,Gc.prototype.A.lw,Gc.prototype.k.mq,Y.prototype.k.cq,wc.prototype.k.Qu,Cc.prototype.k.bq,Cc.prototype.k.ou,Gc.prototype.k.Ru,Y.prototype.A.Tv,
Gc.prototype.ja.zq,Y.prototype.k.pu,Gc.prototype.k.Pu,Gc.prototype.A.kw,Gc.prototype.k.Mu,Gc.prototype.ja.Bw,Y.prototype.A.bw,Gc.prototype.A.Vv,U.prototype.A.iu,Gc.prototype.A.$v,Gc.prototype.A.aw,Y.prototype.A.ww,U.prototype.k.Mv,Y.prototype.A.ew,yc.prototype.ja.Ak,Y.prototype.A.Qv,Nc.prototype.A.tw,Y.prototype.k.tu,Gc.prototype.A.ih,Dc.prototype.A.ih,Y.prototype.A.Zu,Y.prototype.k.Tu,Ec.prototype.k.Nu,Ec.prototype.A.Cu,U.prototype.A.yw,Mc.prototype.A.jn,Mc.prototype.A.iw,Mc.prototype.A.Zp,Fc.prototype.A.Jv,
yc.prototype.A.qw,Y.prototype.A.rw,Y.prototype.ja.ju,U.prototype.k.Iv,Mc.prototype.k.iq,Y.prototype.k.Vu,Y.prototype.A.cw,Y.prototype.ja.Opacity,U.prototype.A.Fu,Mc.prototype.k.aq,Y.prototype.ja.Gu,Gc.prototype.ja.Cw,Mc.prototype.A.hw,Y.prototype.A.Ew,uc.prototype.A.Kv,U.prototype.k.ru,wc.prototype.k.fq]};