// Generated by Construct 2, the HTML5 game and app creator :: https://www.construct.net
'use strict';var aa,ba,ca,da,ga,ha,ia,ja,la,ma,oa,pa,qa,ra,sa,ta,ua,wa,xa,ya,za,Aa,y,Ba,Ca,Ea,Ga,Ha,C,Ia,Ja,Ka,Ma,Na,Oa,Pa,Qa,Ra,Sa,Ta,Ua,Xa,Ya,Za,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,lb,mb,nb,ob,pb,qb,rb,sb,tb,ub,vb,wb,xb,yb,zb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,Xb,Yb,Zb,$b,ac,bc,cc,dc,ec,fc,gc,hc={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(f){return f.__proto__}:function(f){return f.constructor.prototype});
(function(){function f(a,b,c,e){this.set(a,b,c,e)}function q(){this.Sb=this.Rb=this.Ub=this.Tb=this.ic=this.hc=this.Bb=this.Ab=0}function n(a,b,c,e){a<b?c<e?(l=a<c?a:c,r=b>e?b:e):(l=a<e?a:e,r=b>c?b:c):c<e?(l=b<c?b:c,r=a>e?a:e):(l=b<e?b:e,r=a>c?a:c)}function u(){this.items=this.Nd=null;this.Qh=0;Z&&(this.Nd=new Set);this.dh=[];this.Ge=!0}function m(a){S[Q++]=a}function v(){this.Y=this.bl=this.y=this.oh=0}function p(a){this.fb=[];this.Zi=this.aj=this.bj=this.$i=0;this.yi(a)}function c(a,b){this.Ll=
a;this.Kl=b;this.cells={}}function b(a,b){this.Ll=a;this.Kl=b;this.cells={}}function d(a,b,c){var e;return L.length?(e=L.pop(),e.um=a,e.x=b,e.y=c,e):new ba(a,b,c)}function a(a,b,c){this.um=a;this.x=b;this.y=c;this.kb=new ca}function e(a,b,c){var e;return w.length?(e=w.pop(),e.um=a,e.x=b,e.y=c,e):new da(a,b,c)}function k(a,b,c){this.um=a;this.x=b;this.y=c;this.kb=[];this.xg=!0;this.Kd=new ca;this.lh=!1}function g(a,b){return a.td-b.td}ga=function(a){window.console&&window.console.log&&window.console.log(a)};
ha=function(a){window.console&&window.console.error&&window.console.error(a)};aa=function(a){return a};ia=function(a){return"undefined"===typeof a};ja=function(a){return"number"===typeof a};la=function(a){return"string"===typeof a};ma=function(a){return 0<a&&0===(a-1&a)};oa=function(a){--a;for(var b=1;32>b;b<<=1)a=a|a>>b;return a+1};pa=function(a){return 0>a?-a:a};qa=function(a,b){return a<b?a:b};ra=Math.PI;sa=function(a){return 0<=a?a|0:(a|0)-1};ta=function(a){var b=a|0;return b===a?b:b+1};ua=function(a,
b,c,e,d,h,g,z){var k,l,t,r;a<c?(l=a,k=c):(l=c,k=a);d<g?(r=d,t=g):(r=g,t=d);if(k<r||l>t)return!1;b<e?(l=b,k=e):(l=e,k=b);h<z?(r=h,t=z):(r=z,t=h);if(k<r||l>t)return!1;k=d-a+g-c;l=h-b+z-e;a=c-a;b=e-b;d=g-d;h=z-h;z=pa(b*d-h*a);return pa(d*l-h*k)>z?!1:pa(a*l-b*k)<=z};f.prototype.set=function(a,b,c,e){this.left=a;this.top=b;this.right=c;this.bottom=e};f.prototype.ag=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};f.prototype.width=function(){return this.right-this.left};
f.prototype.height=function(){return this.bottom-this.top};f.prototype.offset=function(a,b){this.left+=a;this.top+=b;this.right+=a;this.bottom+=b;return this};f.prototype.normalize=function(){var a=0;this.left>this.right&&(a=this.left,this.left=this.right,this.right=a);this.top>this.bottom&&(a=this.top,this.top=this.bottom,this.bottom=a)};f.prototype.Sw=function(a){return!(a.right<this.left||a.bottom<this.top||a.left>this.right||a.top>this.bottom)};f.prototype.Tw=function(a,b,c){return!(a.right+b<
this.left||a.bottom+c<this.top||a.left+b>this.right||a.top+c>this.bottom)};f.prototype.Eb=function(a,b){return a>=this.left&&a<=this.right&&b>=this.top&&b<=this.bottom};f.prototype.vh=function(a){return this.left===a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};wa=f;q.prototype.Ug=function(a){this.Ab=a.left;this.Bb=a.top;this.hc=a.right;this.ic=a.top;this.Tb=a.right;this.Ub=a.bottom;this.Rb=a.left;this.Sb=a.bottom};q.prototype.Lr=function(a,b){if(0===b)this.Ug(a);else{var c=
Math.sin(b),e=Math.cos(b),d=a.left*c,h=a.top*c,g=a.right*c,c=a.bottom*c,z=a.left*e,k=a.top*e,l=a.right*e,e=a.bottom*e;this.Ab=z-h;this.Bb=k+d;this.hc=l-h;this.ic=k+g;this.Tb=l-c;this.Ub=e+g;this.Rb=z-c;this.Sb=e+d}};q.prototype.offset=function(a,b){this.Ab+=a;this.Bb+=b;this.hc+=a;this.ic+=b;this.Tb+=a;this.Ub+=b;this.Rb+=a;this.Sb+=b;return this};var l=0,r=0;q.prototype.bp=function(a){n(this.Ab,this.hc,this.Tb,this.Rb);a.left=l;a.right=r;n(this.Bb,this.ic,this.Ub,this.Sb);a.top=l;a.bottom=r};q.prototype.Eb=
function(a,b){var c=this.Ab,e=this.Bb,d=this.hc-c,h=this.ic-e,g=this.Tb-c,z=this.Ub-e,k=a-c,l=b-e,t=d*d+h*h,r=d*g+h*z,h=d*k+h*l,f=g*g+z*z,p=g*k+z*l,A=1/(t*f-r*r),d=(f*h-r*p)*A,t=(t*p-r*h)*A;if(0<=d&&0<t&&1>d+t)return!0;d=this.Rb-c;h=this.Sb-e;t=d*d+h*h;r=d*g+h*z;h=d*k+h*l;A=1/(t*f-r*r);d=(f*h-r*p)*A;t=(t*p-r*h)*A;return 0<=d&&0<t&&1>d+t};q.prototype.Nc=function(a,b){if(b)switch(a){case 0:return this.Ab;case 1:return this.hc;case 2:return this.Tb;case 3:return this.Rb;case 4:return this.Ab;default:return this.Ab}else switch(a){case 0:return this.Bb;
case 1:return this.ic;case 2:return this.Ub;case 3:return this.Sb;case 4:return this.Bb;default:return this.Bb}};q.prototype.Eq=function(){return(this.Ab+this.hc+this.Tb+this.Rb)/4};q.prototype.Fq=function(){return(this.Bb+this.ic+this.Ub+this.Sb)/4};q.prototype.Up=function(a){var b=a.Eq(),c=a.Fq();if(this.Eb(b,c))return!0;b=this.Eq();c=this.Fq();if(a.Eb(b,c))return!0;var e,d,h,g,z,k,l,t;for(l=0;4>l;l++)for(t=0;4>t;t++)if(b=this.Nc(l,!0),c=this.Nc(l,!1),e=this.Nc(l+1,!0),d=this.Nc(l+1,!1),h=a.Nc(t,
!0),g=a.Nc(t,!1),z=a.Nc(t+1,!0),k=a.Nc(t+1,!1),ua(b,c,e,d,h,g,z,k))return!0;return!1};xa=q;ya=function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);return a};za=function(a,b){var c,e;b=sa(b);if(!(0>b||b>=a.length)){c=b;for(e=a.length-1;c<e;c++)a[c]=a[c+1];Aa(a,e)}};Aa=function(a,b){a.length=b};y=function(a){Aa(a,0)};Ba=function(a,b){y(a);var c,e;c=0;for(e=b.length;c<e;++c)a[c]=b[c]};Ca=function(a,b){a.push.apply(a,b)};Ea=function(a,b){var c,e;c=0;for(e=a.length;c<e;++c)if(a[c]===b)return c;
return-1};Ga=function(a,b){var c=Ea(a,b);-1!==c&&za(a,c)};Ha=function(a,b,c){return a<b?b:a>c?c:a};C=function(a){return a/(180/ra)};Ia=function(a){return 180/ra*a};Ja=function(a){a%=360;0>a&&(a+=360);return a};Ka=function(a){a%=2*ra;0>a&&(a+=2*ra);return a};Ma=function(a){return Ja(Ia(a))};Na=function(a){return Ka(C(a))};Oa=function(a,b,c,e){return Math.atan2(e-b,c-a)};Pa=function(a,b){if(a===b)return 0;var c=Math.sin(a),e=Math.cos(a),d=Math.sin(b),h=Math.cos(b),c=c*d+e*h;return 1<=c?0:-1>=c?ra:Math.acos(c)};
Qa=function(a,b,c){var e=Math.sin(a),d=Math.cos(a),h=Math.sin(b),g=Math.cos(b);return Math.acos(e*h+d*g)>c?0<d*h-e*g?Ka(a+c):Ka(a-c):Ka(b)};Ra=function(a,b){var c=Math.sin(a),e=Math.cos(a),d=Math.sin(b),h=Math.cos(b);return 0>=e*d-c*h};Sa=function(a,b,c,e,d,h){if(0===c)return h?a:b;var g=Math.sin(c);c=Math.cos(c);a-=e;b-=d;var z=a*g;a=a*c-b*g;b=b*c+z;return h?a+e:b+d};Ta=function(a,b,c,e){a=c-a;b=e-b;return Math.sqrt(a*a+b*b)};Ua=function(a,b){return!a!==!b};Xa=function(a,b,c){return a+(b-a)*c};Ya=
function(a){for(var b in a)if(a.hasOwnProperty(b))return!0;return!1};Za=function(a){for(var b in a)a.hasOwnProperty(b)&&delete a[b]};var K=+new Date;$a=function(){if("undefined"!==typeof window.performance){var a=window.performance;if("undefined"!==typeof a.now)return a.now();if("undefined"!==typeof a.webkitNow)return a.webkitNow();if("undefined"!==typeof a.mozNow)return a.mozNow();if("undefined"!==typeof a.msNow)return a.msNow()}return Date.now()-K};var h=!1,t=h=!1,A=!1;"undefined"!==typeof window&&
(h=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),h=!h&&/safari/i.test(navigator.userAgent),t=/(iphone|ipod|ipad)/i.test(navigator.userAgent),A=window.c2ejecta);var Z=!h&&!A&&!t&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;u.prototype.contains=function(a){return this.ge()?!1:Z?this.Nd.has(a):this.items&&this.items.hasOwnProperty(a)};u.prototype.add=function(a){if(Z)this.Nd.has(a)||(this.Nd.add(a),this.Ge=!1);else{var b=a.toString(),c=this.items;
c?c.hasOwnProperty(b)||(c[b]=a,this.Qh++,this.Ge=!1):(this.items={},this.items[b]=a,this.Qh=1,this.Ge=!1)}};u.prototype.remove=function(a){if(!this.ge())if(Z)this.Nd.has(a)&&(this.Nd["delete"](a),this.Ge=!1);else if(this.items){a=a.toString();var b=this.items;b.hasOwnProperty(a)&&(delete b[a],this.Qh--,this.Ge=!1)}};u.prototype.clear=function(){this.ge()||(Z?this.Nd.clear():(this.items=null,this.Qh=0),y(this.dh),this.Ge=!0)};u.prototype.ge=function(){return 0===this.count()};u.prototype.count=function(){return Z?
this.Nd.size:this.Qh};var S=null,Q=0;u.prototype.Ey=function(){if(!this.Ge){if(Z)y(this.dh),S=this.dh,Q=0,this.Nd.forEach(m),S=null,Q=0;else{var a=this.dh;y(a);var b,c=0,e=this.items;if(e)for(b in e)e.hasOwnProperty(b)&&(a[c++]=e[b])}this.Ge=!0}};u.prototype.cf=function(){this.Ey();return this.dh};ca=u;new ca;ab=function(a,b){Z?bb(a,b.Nd):cb(a,b.cf())};bb=function(a,b){var c,e,d,h;e=c=0;for(d=a.length;c<d;++c)h=a[c],b.has(h)||(a[e++]=h);Aa(a,e)};cb=function(a,b){var c,e,d,h;e=c=0;for(d=a.length;c<
d;++c)h=a[c],-1===Ea(b,h)&&(a[e++]=h);Aa(a,e)};v.prototype.add=function(a){this.y=a-this.oh;this.bl=this.Y+this.y;this.oh=this.bl-this.Y-this.y;this.Y=this.bl};v.prototype.reset=function(){this.Y=this.bl=this.y=this.oh=0};db=v;eb=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};p.prototype.yi=function(a){this.nr=a;this.od=a.length/2;this.fb.length=a.length;this.ej=this.fj=-1;this.ep=0};p.prototype.ug=function(){return!this.nr.length};p.prototype.ua=function(){for(var a=this.fb,b=a[0],
c=b,e=a[1],d=e,h,g,z=1,k=this.od;z<k;++z)g=2*z,h=a[g],g=a[g+1],h<b&&(b=h),h>c&&(c=h),g<e&&(e=g),g>d&&(d=g);this.$i=b;this.aj=c;this.bj=e;this.Zi=d};p.prototype.Ug=function(a,b,c){this.fb.length=8;this.od=4;var e=this.fb;e[0]=a.left-b;e[1]=a.top-c;e[2]=a.right-b;e[3]=a.top-c;e[4]=a.right-b;e[5]=a.bottom-c;e[6]=a.left-b;e[7]=a.bottom-c;this.fj=a.right-a.left;this.ej=a.bottom-a.top;this.ua()};p.prototype.Tg=function(a,b,c,e,d){this.fb.length=8;this.od=4;var h=this.fb;h[0]=a.Ab-b;h[1]=a.Bb-c;h[2]=a.hc-
b;h[3]=a.ic-c;h[4]=a.Tb-b;h[5]=a.Ub-c;h[6]=a.Rb-b;h[7]=a.Sb-c;this.fj=e;this.ej=d;this.ua()};p.prototype.Kr=function(a){this.od=a.od;Ba(this.fb,a.fb);this.$i=a.$i;this.bj=a.bj;this.aj=a.aj;this.Zi=a.Zi};p.prototype.Zf=function(a,b,c){if(this.fj!==a||this.ej!==b||this.ep!==c){this.fj=a;this.ej=b;this.ep=c;var e,h,d,g,z,k=0,l=1,t=this.nr,r=this.fb;0!==c&&(k=Math.sin(c),l=Math.cos(c));c=0;for(d=this.od;c<d;c++)e=2*c,h=e+1,g=t[e]*a,z=t[h]*b,r[e]=g*l-z*k,r[h]=z*l+g*k;this.ua()}};p.prototype.Eb=function(a,
b){var c=this.fb;if(a===c[0]&&b===c[1])return!0;var e,h,d,g=this.od,z=this.$i-110,k=this.bj-101,l=this.aj+131,t=this.Zi+120,r,f,p=0,A=0;for(e=0;e<g;e++)h=2*e,d=(e+1)%g*2,r=c[h],h=c[h+1],f=c[d],d=c[d+1],ua(z,k,a,b,r,h,f,d)&&p++,ua(l,t,a,b,r,h,f,d)&&A++;return 1===p%2||1===A%2};p.prototype.Hh=function(a,b,c){var e=a.fb,h=this.fb;if(this.Eb(e[0]+b,e[1]+c)||a.Eb(h[0]-b,h[1]-c))return!0;var d,g,z,k,l,t,r,f,p,A,K,m;d=0;for(k=this.od;d<k;d++)for(g=2*d,z=(d+1)%k*2,f=h[g],g=h[g+1],p=h[z],A=h[z+1],z=0,r=a.od;z<
r;z++)if(l=2*z,t=(z+1)%r*2,K=e[l]+b,l=e[l+1]+c,m=e[t]+b,t=e[t+1]+c,ua(f,g,p,A,K,l,m,t))return!0;return!1};fb=p;c.prototype.Me=function(a,b,c){var e;e=this.cells[a];return e?(e=e[b])?e:c?(e=d(this,a,b),this.cells[a][b]=e):null:c?(e=d(this,a,b),this.cells[a]={},this.cells[a][b]=e):null};c.prototype.Ob=function(a){return sa(a/this.Ll)};c.prototype.Pb=function(a){return sa(a/this.Kl)};c.prototype.update=function(a,b,c){var e,h,d,g,z;if(b)for(e=b.left,h=b.right;e<=h;++e)for(d=b.top,g=b.bottom;d<=g;++d)if(!c||
!c.Eb(e,d))if(z=this.Me(e,d,!1))z.remove(a),z.ge()&&(z.kb.clear(),1E3>L.length&&L.push(z),this.cells[e][d]=null);if(c)for(e=c.left,h=c.right;e<=h;++e)for(d=c.top,g=c.bottom;d<=g;++d)b&&b.Eb(e,d)||this.Me(e,d,!0).Em(a)};c.prototype.Kk=function(a,b){var c,e,h,d,g,z;c=this.Ob(a.left);h=this.Pb(a.top);e=this.Ob(a.right);for(g=this.Pb(a.bottom);c<=e;++c)for(d=h;d<=g;++d)(z=this.Me(c,d,!1))&&z.dump(b)};gb=c;b.prototype.Me=function(a,b,c){var d;d=this.cells[a];return d?(d=d[b])?d:c?(d=e(this,a,b),this.cells[a][b]=
d):null:c?(d=e(this,a,b),this.cells[a]={},this.cells[a][b]=d):null};b.prototype.Ob=function(a){return sa(a/this.Ll)};b.prototype.Pb=function(a){return sa(a/this.Kl)};b.prototype.update=function(a,b,c){var e,d,h,g,z;if(b)for(e=b.left,d=b.right;e<=d;++e)for(h=b.top,g=b.bottom;h<=g;++h)if(!c||!c.Eb(e,h))if(z=this.Me(e,h,!1))z.remove(a),z.ge()&&(z.reset(),1E3>w.length&&w.push(z),this.cells[e][h]=null);if(c)for(e=c.left,d=c.right;e<=d;++e)for(h=c.top,g=c.bottom;h<=g;++h)b&&b.Eb(e,h)||this.Me(e,h,!0).Em(a)};
b.prototype.Kk=function(a,b,c,e,d){var h,g;a=this.Ob(a);b=this.Pb(b);c=this.Ob(c);for(h=this.Pb(e);a<=c;++a)for(e=b;e<=h;++e)(g=this.Me(a,e,!1))&&g.dump(d)};b.prototype.rx=function(a){var b,c,e,d,h;b=a.left;e=a.top;c=a.right;for(d=a.bottom;b<=c;++b)for(a=e;a<=d;++a)if(h=this.Me(b,a,!1))h.xg=!1};hb=b;var L=[];a.prototype.ge=function(){return this.kb.ge()};a.prototype.Em=function(a){this.kb.add(a)};a.prototype.remove=function(a){this.kb.remove(a)};a.prototype.dump=function(a){Ca(a,this.kb.cf())};ba=
a;var w=[];k.prototype.ge=function(){if(!this.kb.length)return!0;if(this.kb.length>this.Kd.count())return!1;this.fm();return!0};k.prototype.Em=function(a){this.Kd.contains(a)?(this.Kd.remove(a),this.Kd.ge()&&(this.lh=!1)):this.kb.length?(this.kb[this.kb.length-1].Ed()>a.Ed()&&(this.xg=!1),this.kb.push(a)):(this.kb.push(a),this.xg=!0)};k.prototype.remove=function(a){this.Kd.add(a);this.lh=!0;30<=this.Kd.count()&&this.fm()};k.prototype.fm=function(){this.lh&&(this.Kd.count()===this.kb.length?this.reset():
(ab(this.kb,this.Kd),this.Kd.clear(),this.lh=!1))};k.prototype.wv=function(){this.xg||(this.kb.sort(g),this.xg=!0)};k.prototype.reset=function(){y(this.kb);this.xg=!0;this.Kd.clear();this.lh=!1};k.prototype.dump=function(a){this.fm();this.wv();this.kb.length&&a.push(this.kb)};da=k;var F="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");ib=function(a){return 0>=a||11<=a?"source-over":F[a-1]};lb=function(a,b,c){if(c)switch(a.Jb=
c.ONE,a.Gb=c.ONE_MINUS_SRC_ALPHA,b){case 1:a.Jb=c.ONE;a.Gb=c.ONE;break;case 3:a.Jb=c.ONE;a.Gb=c.ZERO;break;case 4:a.Jb=c.ONE_MINUS_DST_ALPHA;a.Gb=c.ONE;break;case 5:a.Jb=c.DST_ALPHA;a.Gb=c.ZERO;break;case 6:a.Jb=c.ZERO;a.Gb=c.SRC_ALPHA;break;case 7:a.Jb=c.ONE_MINUS_DST_ALPHA;a.Gb=c.ZERO;break;case 8:a.Jb=c.ZERO;a.Gb=c.ONE_MINUS_SRC_ALPHA;break;case 9:a.Jb=c.DST_ALPHA;a.Gb=c.ONE_MINUS_SRC_ALPHA;break;case 10:a.Jb=c.ONE_MINUS_DST_ALPHA,a.Gb=c.SRC_ALPHA}};mb=function(a){return Math.round(1E6*a)/1E6};
nb=function(a,b){return"string"!==typeof a||"string"!==typeof b||a.length!==b.length?!1:a===b?!0:a.toLowerCase()===b.toLowerCase()};ob=function(a){a=a.target;return!a||a===document||a===window||document&&document.body&&a===document.body||nb(a.tagName,"canvas")?!0:!1}})();var ic="undefined"!==typeof Float32Array?Float32Array:Array;function jc(f){var q=new ic(3);f&&(q[0]=f[0],q[1]=f[1],q[2]=f[2]);return q}
function kc(f){var q=new ic(16);f&&(q[0]=f[0],q[1]=f[1],q[2]=f[2],q[3]=f[3],q[4]=f[4],q[5]=f[5],q[6]=f[6],q[7]=f[7],q[8]=f[8],q[9]=f[9],q[10]=f[10],q[11]=f[11],q[12]=f[12],q[13]=f[13],q[14]=f[14],q[15]=f[15]);return q}function lc(f,q){q[0]=f[0];q[1]=f[1];q[2]=f[2];q[3]=f[3];q[4]=f[4];q[5]=f[5];q[6]=f[6];q[7]=f[7];q[8]=f[8];q[9]=f[9];q[10]=f[10];q[11]=f[11];q[12]=f[12];q[13]=f[13];q[14]=f[14];q[15]=f[15]}
function mc(f,q){var n=q[0],u=q[1];q=q[2];f[0]*=n;f[1]*=n;f[2]*=n;f[3]*=n;f[4]*=u;f[5]*=u;f[6]*=u;f[7]*=u;f[8]*=q;f[9]*=q;f[10]*=q;f[11]*=q}
function nc(f,q,n,u){u||(u=kc());var m,v,p,c,b,d,a,e,k=f[0],g=f[1];f=f[2];v=n[0];p=n[1];m=n[2];n=q[1];d=q[2];k===q[0]&&g===n&&f===d?(f=u,f[0]=1,f[1]=0,f[2]=0,f[3]=0,f[4]=0,f[5]=1,f[6]=0,f[7]=0,f[8]=0,f[9]=0,f[10]=1,f[11]=0,f[12]=0,f[13]=0,f[14]=0,f[15]=1):(n=k-q[0],d=g-q[1],a=f-q[2],e=1/Math.sqrt(n*n+d*d+a*a),n*=e,d*=e,a*=e,q=p*a-m*d,m=m*n-v*a,v=v*d-p*n,(e=Math.sqrt(q*q+m*m+v*v))?(e=1/e,q*=e,m*=e,v*=e):v=m=q=0,p=d*v-a*m,c=a*q-n*v,b=n*m-d*q,(e=Math.sqrt(p*p+c*c+b*b))?(e=1/e,p*=e,c*=e,b*=e):b=c=p=0,
u[0]=q,u[1]=p,u[2]=n,u[3]=0,u[4]=m,u[5]=c,u[6]=d,u[7]=0,u[8]=v,u[9]=b,u[10]=a,u[11]=0,u[12]=-(q*k+m*g+v*f),u[13]=-(p*k+c*g+b*f),u[14]=-(n*k+d*g+a*f),u[15]=1)}
(function(){function f(c,b,d){this.he=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.xa=!!d;this.Tj=this.Ih=!1;this.Ql=0;this.ql=1;this.ko=1E3;this.My=(this.ko-this.ql)/32768;this.Il=jc([0,0,100]);this.nq=jc([0,0,0]);this.gs=jc([0,1,0]);this.Mi=jc([1,1,1]);this.tp=!0;this.qk=kc();this.Hc=kc();this.Nm=kc();this.Pl=kc();this.q=c;this.version=0===this.q.getParameter(this.q.VERSION).indexOf("WebGL 2")?2:1;this.Qp()}function q(c,b,d){this.q=c;this.Ai=
b;this.name=d;this.Vc=c.getAttribLocation(b,"aPos");this.We=c.getAttribLocation(b,"aTex");this.lq=c.getUniformLocation(b,"matP");this.mk=c.getUniformLocation(b,"matMV");this.Dg=c.getUniformLocation(b,"opacity");this.Um=c.getUniformLocation(b,"colorFill");this.mq=c.getUniformLocation(b,"samplerFront");this.ai=c.getUniformLocation(b,"samplerBack");this.Gf=c.getUniformLocation(b,"destStart");this.Ff=c.getUniformLocation(b,"destEnd");this.ci=c.getUniformLocation(b,"seconds");this.Wm=c.getUniformLocation(b,
"pixelWidth");this.Vm=c.getUniformLocation(b,"pixelHeight");this.$h=c.getUniformLocation(b,"layerScale");this.Zh=c.getUniformLocation(b,"layerAngle");this.di=c.getUniformLocation(b,"viewOrigin");this.bi=c.getUniformLocation(b,"scrollPos");this.Nw=!!(this.Wm||this.Vm||this.ci||this.ai||this.Gf||this.Ff||this.$h||this.Zh||this.di||this.bi);this.vq=this.wq=-999;this.pk=1;this.rq=this.qq=0;this.tq=this.pq=this.oq=1;this.zq=this.yq=this.xq=this.Bq=this.Aq=this.sq=0;this.Mm=[];this.uq=kc();this.Dg&&c.uniform1f(this.Dg,
1);this.Um&&c.uniform4f(this.Um,1,1,1,1);this.mq&&c.uniform1i(this.mq,0);this.ai&&c.uniform1i(this.ai,1);this.Gf&&c.uniform2f(this.Gf,0,0);this.Ff&&c.uniform2f(this.Ff,1,1);this.$h&&c.uniform1f(this.$h,1);this.Zh&&c.uniform1f(this.Zh,0);this.di&&c.uniform2f(this.di,0,0);this.bi&&c.uniform2f(this.bi,0,0);this.ci&&c.uniform1f(this.ci,0);this.xf=!1}function n(c,b){return c[0]===b[0]&&c[1]===b[1]&&c[2]===b[2]&&c[3]===b[3]&&c[4]===b[4]&&c[5]===b[5]&&c[6]===b[6]&&c[7]===b[7]&&c[8]===b[8]&&c[9]===b[9]&&
c[10]===b[10]&&c[11]===b[11]&&c[12]===b[12]&&c[13]===b[13]&&c[14]===b[14]&&c[15]===b[15]}function u(c,b){this.type=c;this.u=b;this.q=b.q;this.Uc=this.Kb=this.Xq=0;this.P=this.ad=null;this.Mr=[]}var m=kc();f.prototype.Qp=function(){var c=this.q,b;this.gq=1;this.Cf=this.Se=null;this.mj=1;c.clearColor(0,0,0,0);c.clear(c.COLOR_BUFFER_BIT);c.enable(c.BLEND);c.blendFunc(c.ONE,c.ONE_MINUS_SRC_ALPHA);c.disable(c.CULL_FACE);c.disable(c.STENCIL_TEST);c.disable(c.DITHER);this.xa?(c.enable(c.DEPTH_TEST),c.depthFunc(c.LEQUAL)):
c.disable(c.DEPTH_TEST);this.hq=c.ONE;this.fq=c.ONE_MINUS_SRC_ALPHA;this.ml=new Float32Array(8E3*(this.xa?3:2));this.dl=new Float32Array(16E3);this.rn=new Float32Array(32E3);this.qn=c.createBuffer();c.bindBuffer(c.ARRAY_BUFFER,this.qn);c.bufferData(c.ARRAY_BUFFER,this.rn.byteLength,c.DYNAMIC_DRAW);this.Li=Array(4);this.Fi=Array(4);for(b=0;4>b;b++)this.Li[b]=c.createBuffer(),c.bindBuffer(c.ARRAY_BUFFER,this.Li[b]),c.bufferData(c.ARRAY_BUFFER,this.ml.byteLength,c.DYNAMIC_DRAW),this.Fi[b]=c.createBuffer(),
c.bindBuffer(c.ARRAY_BUFFER,this.Fi[b]),c.bufferData(c.ARRAY_BUFFER,this.dl.byteLength,c.DYNAMIC_DRAW);this.Xd=0;this.Qw=c.createBuffer();c.bindBuffer(c.ELEMENT_ARRAY_BUFFER,this.Qw);for(var d=new Uint16Array(12E3),a=b=0;12E3>b;)d[b++]=a,d[b++]=a+1,d[b++]=a+2,d[b++]=a,d[b++]=a+2,d[b++]=a+3,a+=4;c.bufferData(c.ELEMENT_ARRAY_BUFFER,d,c.STATIC_DRAW);this.Ng=this.Yg=this.ve=0;this.La=[];b=this.xa?"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}";d=this.rh({src:"varying mediump vec2 vTex;\nuniform lowp float opacity;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, vTex);\n\tgl_FragColor *= opacity;\n}"},b,"<default>");this.La.push(d);d=this.rh({src:"uniform mediump sampler2D samplerFront;\nvarying lowp float opacity;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, gl_PointCoord);\n\tgl_FragColor *= opacity;\n}"},
"attribute vec4 aPos;\nvarying float opacity;\nuniform mat4 matP;\nuniform mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tgl_PointSize = aPos.z;\n\topacity = aPos.w;\n}","<point>");this.La.push(d);d=this.rh({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},b,"<earlyz>");this.La.push(d);d=this.rh({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"},
b,"<fill>");this.La.push(d);for(var e in oc)oc.hasOwnProperty(e)&&this.La.push(this.rh(oc[e],b,e));c.activeTexture(c.TEXTURE0);c.bindTexture(c.TEXTURE_2D,null);this.Wd=[];this.xd=0;this.Hb=this.tb=!1;this.mp=this.Sh=-1;this.dg=null;this.cm=c.createFramebuffer();this.qj=this.Mk=null;this.Zo=!1;this.xa&&(this.qj=c.createRenderbuffer());this.bf=jc([0,0,0]);c=c.getParameter(c.ALIASED_POINT_SIZE_RANGE);this.vx=c[0];this.Zm=c[1];2048<this.Zm&&(this.Zm=2048);this.gc(0)};q.prototype.ao=function(c){n(this.uq,
c)||(lc(c,this.uq),this.q.uniformMatrix4fv(this.mk,!1,c))};f.prototype.rh=function(c,b,d){var a=this.q,e=a.createShader(a.FRAGMENT_SHADER);a.shaderSource(e,c.src);a.compileShader(e);if(!a.getShaderParameter(e,a.COMPILE_STATUS))throw c=a.getShaderInfoLog(e),a.deleteShader(e),Error("error compiling fragment shader: "+c);var k=a.createShader(a.VERTEX_SHADER);a.shaderSource(k,b);a.compileShader(k);if(!a.getShaderParameter(k,a.COMPILE_STATUS))throw c=a.getShaderInfoLog(k),a.deleteShader(e),a.deleteShader(k),
Error("error compiling vertex shader: "+c);b=a.createProgram();a.attachShader(b,e);a.attachShader(b,k);a.linkProgram(b);if(!a.getProgramParameter(b,a.LINK_STATUS))throw c=a.getProgramInfoLog(b),a.deleteShader(e),a.deleteShader(k),a.deleteProgram(b),Error("error linking shader program: "+c);a.useProgram(b);a.deleteShader(e);a.deleteShader(k);e=new q(a,b,d);e.$l=c.$l||0;e.am=c.am||0;e.lp=!!c.lp;e.nd=!!c.nd;e.Xo=!!c.Xo;e.R=c.R||[];c=0;for(k=e.R.length;c<k;c++)e.R[c][1]=a.getUniformLocation(b,e.R[c][0]),
e.Mm.push(0),a.uniform1f(e.R[c][1],0);return e};f.prototype.rm=function(c){var b,d;b=0;for(d=this.La.length;b<d;b++)if(this.La[b].name===c)return b;return-1};f.prototype.mr=function(c,b,d){var a=this.Hc,e=this.qk,k=[0,0,0,0,0,0,0,0];k[0]=a[0]*c+a[4]*b+a[12];k[1]=a[1]*c+a[5]*b+a[13];k[2]=a[2]*c+a[6]*b+a[14];k[3]=a[3]*c+a[7]*b+a[15];k[4]=e[0]*k[0]+e[4]*k[1]+e[8]*k[2]+e[12]*k[3];k[5]=e[1]*k[0]+e[5]*k[1]+e[9]*k[2]+e[13]*k[3];k[6]=e[2]*k[0]+e[6]*k[1]+e[10]*k[2]+e[14]*k[3];k[7]=-k[2];0!==k[7]&&(k[7]=1/
k[7],k[4]*=k[7],k[5]*=k[7],k[6]*=k[7],d[0]=(.5*k[4]+.5)*this.width,d[1]=(.5*k[5]+.5)*this.height)};f.prototype.oe=function(c,b,d){if(this.width!==c||this.height!==b||d){this.ae();d=this.q;this.width=c;this.height=b;d.viewport(0,0,c,b);nc(this.Il,this.nq,this.gs,this.Hc);if(this.xa){var a=-c/2;c=c/2;var e=b/2;b=-b/2;var k=this.ql,g=this.ko,l=this.qk;l||(l=kc());var r=c-a,f=b-e,h=g-k;l[0]=2/r;l[1]=0;l[2]=0;l[3]=0;l[4]=0;l[5]=2/f;l[6]=0;l[7]=0;l[8]=0;l[9]=0;l[10]=-2/h;l[11]=0;l[12]=-(a+c)/r;l[13]=-(b+
e)/f;l[14]=-(g+k)/h;l[15]=1;this.Mi[0]=1;this.Mi[1]=1}else b=c/b,a=this.ql,c=this.ko,l=this.qk,g=a*Math.tan(45*Math.PI/360),b*=g,e=-b,k=-g,l||(l=kc()),r=b-e,f=g-k,h=c-a,l[0]=2*a/r,l[1]=0,l[2]=0,l[3]=0,l[4]=0,l[5]=2*a/f,l[6]=0,l[7]=0,l[8]=(b+e)/r,l[9]=(g+k)/f,l[10]=-(c+a)/h,l[11]=-1,l[12]=0,l[13]=0,l[14]=-(c*a*2)/h,l[15]=0,a=[0,0],c=[0,0],this.mr(0,0,a),this.mr(1,1,c),this.Mi[0]=1/(c[0]-a[0]),this.Mi[1]=-1/(c[1]-a[1]);a=0;for(c=this.La.length;a<c;a++)e=this.La[a],e.xf=!1,e.lq&&(d.useProgram(e.Ai),
d.uniformMatrix4fv(e.lq,!1,this.qk));d.useProgram(this.La[this.Sh].Ai);d.bindTexture(d.TEXTURE_2D,null);d.activeTexture(d.TEXTURE1);d.bindTexture(d.TEXTURE_2D,null);d.activeTexture(d.TEXTURE0);this.Cf=this.Se=null;this.qj&&(d.bindFramebuffer(d.FRAMEBUFFER,this.cm),d.bindRenderbuffer(d.RENDERBUFFER,this.qj),d.renderbufferStorage(d.RENDERBUFFER,d.DEPTH_COMPONENT16,this.width,this.height),this.Zo||(d.framebufferRenderbuffer(d.FRAMEBUFFER,d.DEPTH_ATTACHMENT,d.RENDERBUFFER,this.qj),this.Zo=!0),d.bindRenderbuffer(d.RENDERBUFFER,
null),d.bindFramebuffer(d.FRAMEBUFFER,null),this.Mk=null)}};f.prototype.Yc=function(){nc(this.Il,this.nq,this.gs,this.Hc);mc(this.Hc,this.Mi)};f.prototype.translate=function(c,b){if(0!==c||0!==b){this.bf[0]=c;this.bf[1]=b;this.bf[2]=0;var d=this.Hc,a=this.bf,e=a[0],k=a[1],a=a[2];d[12]=d[0]*e+d[4]*k+d[8]*a+d[12];d[13]=d[1]*e+d[5]*k+d[9]*a+d[13];d[14]=d[2]*e+d[6]*k+d[10]*a+d[14];d[15]=d[3]*e+d[7]*k+d[11]*a+d[15]}};f.prototype.scale=function(c,b){if(1!==c||1!==b)this.bf[0]=c,this.bf[1]=b,this.bf[2]=
1,mc(this.Hc,this.bf)};f.prototype.Ok=function(c){if(0!==c){var b=this.Hc,d,a=Math.sin(c);c=Math.cos(c);var e=b[0],k=b[1],g=b[2],l=b[3],r=b[4],f=b[5],h=b[6],t=b[7];d?b!==d&&(d[8]=b[8],d[9]=b[9],d[10]=b[10],d[11]=b[11],d[12]=b[12],d[13]=b[13],d[14]=b[14],d[15]=b[15]):d=b;d[0]=e*c+r*a;d[1]=k*c+f*a;d[2]=g*c+h*a;d[3]=l*c+t*a;d[4]=e*-a+r*c;d[5]=k*-a+f*c;d[6]=g*-a+h*c;d[7]=l*-a+t*c}};f.prototype.Kc=function(){if(!n(this.Nm,this.Hc)){var c=this.ac();c.type=5;c.P?lc(this.Hc,c.P):c.P=kc(this.Hc);lc(this.Hc,
this.Nm);this.Hb=this.tb=!1}};f.prototype.Tk=function(c){this.xa&&(32760<c&&(c=32760),this.Ql=this.Il[2]-this.ql-c*this.My)};u.prototype.gv=function(){var c=this.q,b=this.u;0!==this.Kb?(c.depthMask(!0),c.colorMask(!1,!1,!1,!1),c.disable(c.BLEND),c.bindFramebuffer(c.FRAMEBUFFER,b.cm),c.framebufferTexture2D(c.FRAMEBUFFER,c.COLOR_ATTACHMENT0,c.TEXTURE_2D,null,0),c.clear(c.DEPTH_BUFFER_BIT),c.bindFramebuffer(c.FRAMEBUFFER,null),b.Tj=!0):(c.depthMask(!1),c.colorMask(!0,!0,!0,!0),c.enable(c.BLEND),b.Tj=
!1)};u.prototype.kv=function(){this.q.bindTexture(this.q.TEXTURE_2D,this.ad)};u.prototype.lv=function(){var c=this.q;c.activeTexture(c.TEXTURE1);c.bindTexture(c.TEXTURE_2D,this.ad);c.activeTexture(c.TEXTURE0)};u.prototype.hv=function(){var c=this.Xq,b=this.u;b.mj=c;b=b.dg;b.Dg&&b.pk!==c&&(b.pk=c,this.q.uniform1f(b.Dg,c))};u.prototype.$u=function(){this.q.drawElements(this.q.TRIANGLES,this.Uc,this.q.UNSIGNED_SHORT,this.Kb)};u.prototype.bv=function(){this.q.blendFunc(this.Kb,this.Uc)};u.prototype.mv=
function(){var c,b,d,a=this.u.La,e=this.u.mp;c=0;for(b=a.length;c<b;c++)d=a[c],c===e&&d.mk?(d.ao(this.P),d.xf=!0):d.xf=!1;lc(this.P,this.u.Pl)};u.prototype.av=function(){var c=this.q,b=this.u;this.ad?(b.Cf===this.ad&&(c.activeTexture(c.TEXTURE1),c.bindTexture(c.TEXTURE_2D,null),b.Cf=null,c.activeTexture(c.TEXTURE0)),c.bindFramebuffer(c.FRAMEBUFFER,b.cm),b.Tj||c.framebufferTexture2D(c.FRAMEBUFFER,c.COLOR_ATTACHMENT0,c.TEXTURE_2D,this.ad,0)):(b.xa||c.framebufferTexture2D(c.FRAMEBUFFER,c.COLOR_ATTACHMENT0,
c.TEXTURE_2D,null,0),c.bindFramebuffer(c.FRAMEBUFFER,null))};u.prototype.Xu=function(){var c=this.q,b=this.Kb;0===b?(c.clearColor(this.P[0],this.P[1],this.P[2],this.P[3]),c.clear(c.COLOR_BUFFER_BIT)):1===b?(c.enable(c.SCISSOR_TEST),c.scissor(this.P[0],this.P[1],this.P[2],this.P[3]),c.clearColor(0,0,0,0),c.clear(c.COLOR_BUFFER_BIT),c.disable(c.SCISSOR_TEST)):c.clear(c.DEPTH_BUFFER_BIT)};u.prototype.dv=function(){var c=this.q;0!==this.Kb?c.enable(c.DEPTH_TEST):c.disable(c.DEPTH_TEST)};u.prototype.Zu=
function(){var c=this.q,b=this.u;b.xa&&c.disable(c.DEPTH_TEST);var d=b.La[1];c.useProgram(d.Ai);!d.xf&&d.mk&&(d.ao(b.Pl),d.xf=!0);c.enableVertexAttribArray(d.Vc);c.bindBuffer(c.ARRAY_BUFFER,b.qn);c.vertexAttribPointer(d.Vc,4,c.FLOAT,!1,0,0);c.drawArrays(c.POINTS,this.Kb/4,this.Uc);d=b.dg;c.useProgram(d.Ai);0<=d.Vc&&(c.enableVertexAttribArray(d.Vc),c.bindBuffer(c.ARRAY_BUFFER,b.Li[b.Xd]),c.vertexAttribPointer(d.Vc,b.xa?3:2,c.FLOAT,!1,0,0));0<=d.We&&(c.enableVertexAttribArray(d.We),c.bindBuffer(c.ARRAY_BUFFER,
b.Fi[b.Xd]),c.vertexAttribPointer(d.We,2,c.FLOAT,!1,0,0));b.xa&&c.enable(c.DEPTH_TEST)};u.prototype.iv=function(){var c=this.q,b=this.u,d=b.La[this.Kb];b.mp=this.Kb;b.dg=d;c.useProgram(d.Ai);!d.xf&&d.mk&&(d.ao(b.Pl),d.xf=!0);d.Dg&&d.pk!==b.mj&&(d.pk=b.mj,c.uniform1f(d.Dg,b.mj));0<=d.Vc&&(c.enableVertexAttribArray(d.Vc),c.bindBuffer(c.ARRAY_BUFFER,b.Li[b.Xd]),c.vertexAttribPointer(d.Vc,b.xa?3:2,c.FLOAT,!1,0,0));0<=d.We&&(c.enableVertexAttribArray(d.We),c.bindBuffer(c.ARRAY_BUFFER,b.Fi[b.Xd]),c.vertexAttribPointer(d.We,
2,c.FLOAT,!1,0,0))};u.prototype.cv=function(){var c=this.P;this.q.uniform4f(this.u.dg.Um,c[0],c[1],c[2],c[3])};u.prototype.jv=function(){var c,b,d=this.u.dg,a=this.q;c=this.P;d.ai&&this.u.Cf!==this.ad&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,this.ad),this.u.Cf=this.ad,a.activeTexture(a.TEXTURE0));var e=c[0];d.Wm&&e!==d.wq&&(d.wq=e,a.uniform1f(d.Wm,e));e=c[1];d.Vm&&e!==d.vq&&(d.vq=e,a.uniform1f(d.Vm,e));e=c[2];b=c[3];!d.Gf||e===d.qq&&b===d.rq||(d.qq=e,d.rq=b,a.uniform2f(d.Gf,e,b));
e=c[4];b=c[5];!d.Ff||e===d.oq&&b===d.pq||(d.oq=e,d.pq=b,a.uniform2f(d.Ff,e,b));e=c[6];d.$h&&e!==d.tq&&(d.tq=e,a.uniform1f(d.$h,e));e=c[7];d.Zh&&e!==d.sq&&(d.sq=e,a.uniform1f(d.Zh,e));e=c[8];b=c[9];!d.di||e===d.Aq&&b===d.Bq||(d.Aq=e,d.Bq=b,a.uniform2f(d.di,e,b));e=c[10];b=c[11];!d.bi||e===d.xq&&b===d.yq||(d.xq=e,d.yq=b,a.uniform2f(d.bi,e,b));e=c[12];d.ci&&e!==d.zq&&(d.zq=e,a.uniform1f(d.ci,e));if(d.R.length)for(c=0,b=d.R.length;c<b;c++)e=this.Mr[c],e!==d.Mm[c]&&(d.Mm[c]=e,a.uniform1f(d.R[c][1],e))};
f.prototype.ac=function(){this.xd===this.Wd.length&&this.Wd.push(new u(0,this));return this.Wd[this.xd++]};f.prototype.ae=function(){if(0!==this.xd&&!this.q.isContextLost()){var c=this.q;0<this.Ng&&(c.bindBuffer(c.ARRAY_BUFFER,this.qn),c.bufferSubData(c.ARRAY_BUFFER,0,this.rn.subarray(0,this.Ng)),b&&0<=b.Vc&&"<point>"===b.name&&c.vertexAttribPointer(b.Vc,4,c.FLOAT,!1,0,0));if(0<this.ve){var b=this.dg;c.bindBuffer(c.ARRAY_BUFFER,this.Li[this.Xd]);c.bufferSubData(c.ARRAY_BUFFER,0,this.ml.subarray(0,
this.ve));b&&0<=b.Vc&&"<point>"!==b.name&&c.vertexAttribPointer(b.Vc,this.xa?3:2,c.FLOAT,!1,0,0);c.bindBuffer(c.ARRAY_BUFFER,this.Fi[this.Xd]);c.bufferSubData(c.ARRAY_BUFFER,0,this.dl.subarray(0,this.Yg));b&&0<=b.We&&"<point>"!==b.name&&c.vertexAttribPointer(b.We,2,c.FLOAT,!1,0,0)}for(var d,c=0,b=this.xd;c<b;c++)switch(d=this.Wd[c],d.type){case 1:d.$u();break;case 2:d.kv();break;case 3:d.hv();break;case 4:d.bv();break;case 5:d.mv();break;case 6:d.av();break;case 7:d.Xu();break;case 8:d.Zu();break;
case 9:d.iv();break;case 10:d.jv();break;case 11:d.lv();break;case 12:d.cv();break;case 13:d.dv();break;case 14:d.gv()}this.Ng=this.Yg=this.ve=this.xd=0;this.Tj=this.Hb=this.tb=!1;this.Xd++;4<=this.Xd&&(this.Xd=0)}};f.prototype.Pf=function(c){if(c!==this.gq&&!this.Ih){var b=this.ac();b.type=3;this.gq=b.Xq=c;this.Hb=this.tb=!1}};f.prototype.vc=function(c){if(c!==this.Se){var b=this.ac();b.type=2;this.Se=b.ad=c;this.Hb=this.tb=!1}};f.prototype.Ze=function(c,b){if((c!==this.hq||b!==this.fq)&&!this.Ih){var d=
this.ac();d.type=4;d.Kb=c;d.Uc=b;this.hq=c;this.fq=b;this.Hb=this.tb=!1}};f.prototype.Cr=function(){this.Ze(this.q.ONE,this.q.ONE_MINUS_SRC_ALPHA)};f.prototype.Og=function(c,b,d,a,e,k,g,l){15992<=this.ve&&this.ae();var r=this.ve,f=this.Yg,h=this.ml,t=this.dl,p=this.Ql;if(this.tb)this.Wd[this.xd-1].Uc+=6;else{var m=this.ac();m.type=1;m.Kb=this.xa?r:r/2*3;m.Uc=6;this.tb=!0;this.Hb=!1}this.xa?(h[r++]=c,h[r++]=b,h[r++]=p,h[r++]=d,h[r++]=a,h[r++]=p,h[r++]=e,h[r++]=k,h[r++]=p,h[r++]=g,h[r++]=l,h[r++]=p):
(h[r++]=c,h[r++]=b,h[r++]=d,h[r++]=a,h[r++]=e,h[r++]=k,h[r++]=g,h[r++]=l);t[f++]=0;t[f++]=0;t[f++]=1;t[f++]=0;t[f++]=1;t[f++]=1;t[f++]=0;t[f++]=1;this.ve=r;this.Yg=f};f.prototype.Ye=function(c,b,d,a,e,k,g,l,r){15992<=this.ve&&this.ae();var f=this.ve,h=this.Yg,t=this.ml,p=this.dl,m=this.Ql;if(this.tb)this.Wd[this.xd-1].Uc+=6;else{var q=this.ac();q.type=1;q.Kb=this.xa?f:f/2*3;q.Uc=6;this.tb=!0;this.Hb=!1}var q=r.left,v=r.top,n=r.right;r=r.bottom;this.xa?(t[f++]=c,t[f++]=b,t[f++]=m,t[f++]=d,t[f++]=a,
t[f++]=m,t[f++]=e,t[f++]=k,t[f++]=m,t[f++]=g,t[f++]=l,t[f++]=m):(t[f++]=c,t[f++]=b,t[f++]=d,t[f++]=a,t[f++]=e,t[f++]=k,t[f++]=g,t[f++]=l);p[h++]=q;p[h++]=v;p[h++]=n;p[h++]=v;p[h++]=n;p[h++]=r;p[h++]=q;p[h++]=r;this.ve=f;this.Yg=h};f.prototype.Ox=function(c,b,d,a){7996<=this.Ng&&this.ae();var e=this.Ng,k=this.rn;if(this.Hb)this.Wd[this.xd-1].Uc++;else{var g=this.ac();g.type=8;g.Kb=e;g.Uc=1;this.Hb=!0;this.tb=!1}k[e++]=c;k[e++]=b;k[e++]=d;k[e++]=a;this.Ng=e};f.prototype.gc=function(c){if(this.Sh!==
c){if(!this.La[c]){if(0===this.Sh)return;c=0}var b=this.ac();b.type=9;this.Sh=b.Kb=c;this.Hb=this.tb=!1}};f.prototype.oi=function(c){c=this.La[c];return!(!c.Gf&&!c.Ff)};f.prototype.vn=function(c){c=this.La[c];return!!(c.Gf||c.Ff||c.lp)};f.prototype.un=function(c){return this.La[c].nd};f.prototype.Xx=function(c){c=this.La[c];return 0!==c.$l||0!==c.am};f.prototype.vw=function(c){return this.La[c].$l};f.prototype.ww=function(c){return this.La[c].am};f.prototype.xw=function(c,b){return this.La[c].R[b][2]};
f.prototype.Ik=function(c){return this.La[c].Xo};f.prototype.Sg=function(c,b,d,a,e,k,g,l,r,f,h,t,p,m,q){var v=this.La[this.Sh],n,u;if(v.Nw||q.length){n=this.ac();n.type=10;n.P?lc(this.Hc,n.P):n.P=kc();u=n.P;u[0]=b;u[1]=d;u[2]=a;u[3]=e;u[4]=k;u[5]=g;u[6]=l;u[7]=r;u[8]=f;u[9]=h;u[10]=t;u[11]=p;u[12]=m;v.ai?n.ad=c:n.ad=null;if(q.length)for(d=n.Mr,d.length=q.length,c=0,b=q.length;c<b;c++)d[c]=q[c];this.Hb=this.tb=!1}};f.prototype.clear=function(c,b,d,a){var e=this.ac();e.type=7;e.Kb=0;e.P||(e.P=kc());
e.P[0]=c;e.P[1]=b;e.P[2]=d;e.P[3]=a;this.Hb=this.tb=!1};f.prototype.clearRect=function(c,b,d,a){if(!(0>d||0>a)){var e=this.ac();e.type=7;e.Kb=1;e.P||(e.P=kc());e.P[0]=c;e.P[1]=b;e.P[2]=d;e.P[3]=a;this.Hb=this.tb=!1}};f.prototype.Gr=function(c){if(this.xa&&(c=!!c,this.Ih!==c)){var b=this.ac();b.type=14;b.Kb=c?1:0;this.Hb=this.tb=!1;this.Ih=c;this.Mk=null;this.Ih?this.gc(2):this.gc(0)}};f.prototype.Er=function(c){if(this.xa){var b=this.ac();b.type=13;b.Kb=c?1:0;this.Hb=this.tb=!1}};f.prototype.Bp=function(){lc(this.Nm,
m);this.Yc();this.Kc();var c=this.width/2,b=this.height/2;this.Og(-c,b,c,b,c,-b,-c,-b);lc(m,this.Hc);this.Kc()};f.prototype.Dr=function(c,b,d){this.gc(3);var a=this.ac();a.type=12;a.P||(a.P=kc());a.P[0]=c;a.P[1]=b;a.P[2]=d;a.P[3]=1;this.Hb=this.tb=!1};f.prototype.ry=function(){this.gc(0)};f.prototype.dy=function(){this.gc(2)};f.prototype.Wx=function(){this.ae();this.q.flush()};var v=[],p={};f.prototype.Pu=function(){y(v);p={}};f.prototype.jk=function(c,b,d,a){b=!!b;d=!!d;var e=c.src+","+b+","+d+(b?
",undefined":""),k=null;if("undefined"!==typeof c.src&&p.hasOwnProperty(e))return k=p[e],k.dj++,k;this.ae();var g=this.q,l=ma(c.width)&&ma(c.height),k=g.createTexture();g.bindTexture(g.TEXTURE_2D,k);g.pixelStorei(g.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var r=g.RGBA,f=g.RGBA,h=g.UNSIGNED_BYTE;if(a&&!this.he)switch(a){case 1:f=r=g.RGB;break;case 2:h=g.UNSIGNED_SHORT_4_4_4_4;break;case 3:h=g.UNSIGNED_SHORT_5_5_5_1;break;case 4:f=r=g.RGB,h=g.UNSIGNED_SHORT_5_6_5}if(1===this.version&&!l&&b){a=document.createElement("canvas");
a.width=oa(c.width);a.height=oa(c.height);var t=a.getContext("2d");"undefined"!==typeof t.imageSmoothingEnabled?t.imageSmoothingEnabled=d:(t.webkitImageSmoothingEnabled=d,t.mozImageSmoothingEnabled=d,t.msImageSmoothingEnabled=d);t.drawImage(c,0,0,c.width,c.height,0,0,a.width,a.height);g.texImage2D(g.TEXTURE_2D,0,r,f,h,a)}else g.texImage2D(g.TEXTURE_2D,0,r,f,h,c);b?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_S,g.REPEAT),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,g.REPEAT)):(g.texParameteri(g.TEXTURE_2D,
g.TEXTURE_WRAP_S,g.CLAMP_TO_EDGE),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,g.CLAMP_TO_EDGE));d?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,g.LINEAR),(l||2<=this.version)&&this.tp?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,g.LINEAR_MIPMAP_LINEAR),g.generateMipmap(g.TEXTURE_2D)):g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,g.LINEAR)):(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,g.NEAREST),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,g.NEAREST));g.bindTexture(g.TEXTURE_2D,
null);this.Se=null;k.kf=c.width;k.jf=c.height;k.dj=1;k.dp=e;v.push(k);return p[e]=k};f.prototype.xc=function(c,b,d,a){this.ae();var e=this.q;this.he&&(a=!1);var k=e.createTexture();e.bindTexture(e.TEXTURE_2D,k);e.texImage2D(e.TEXTURE_2D,0,e.RGBA,c,b,0,e.RGBA,a?e.UNSIGNED_SHORT_4_4_4_4:e.UNSIGNED_BYTE,null);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,d?e.LINEAR:e.NEAREST);
e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,d?e.LINEAR:e.NEAREST);e.bindTexture(e.TEXTURE_2D,null);this.Se=null;k.kf=c;k.jf=b;v.push(k);return k};f.prototype.Iy=function(c,b,d){this.ae();var a=this.q;this.he&&(d=!1);a.bindTexture(a.TEXTURE_2D,b);a.pixelStorei(a.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);try{a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,d?a.UNSIGNED_SHORT_4_4_4_4:a.UNSIGNED_BYTE,c)}catch(e){console&&console.error&&console.error("Error updating WebGL texture: ",e)}a.bindTexture(a.TEXTURE_2D,
null);this.Se=null};f.prototype.deleteTexture=function(c){c&&("undefined"!==typeof c.dj&&1<c.dj?c.dj--:(this.ae(),c===this.Se&&(this.q.bindTexture(this.q.TEXTURE_2D,null),this.Se=null),c===this.Cf&&(this.q.activeTexture(this.q.TEXTURE1),this.q.bindTexture(this.q.TEXTURE_2D,null),this.q.activeTexture(this.q.TEXTURE0),this.Cf=null),Ga(v,c),"undefined"!==typeof c.dp&&delete p[c.dp],this.q.deleteTexture(c)))};f.prototype.Zc=function(c){if(c!==this.Mk){var b=this.ac();b.type=6;this.Mk=b.ad=c;this.Hb=this.tb=
!1}};pb=f})();
(function(){function f(a){if(a&&(a.getContext||a.dc)&&!a.c2runtime){a.c2runtime=this;var b=this;this.Ec=(this.Uj=/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.ub=!!a.dc;this.Wp="undefined"!==typeof window.AppMobi||this.ub;
this.Dc=!!window.c2cocoonjs;this.kd=!!window.c2ejecta;this.Dc&&(CocoonJS.App.onSuspended.addEventListener(function(){b.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){b.setSuspended(!1)}));this.kd&&(document.addEventListener("pagehide",function(){b.setSuspended(!0)}),document.addEventListener("pageshow",function(){b.setSuspended(!1)}),document.addEventListener("resize",function(){b.setSize(window.innerWidth,window.innerHeight)}));this.Oa=this.ub||this.Dc||this.kd;this.Kh=/edge\//i.test(navigator.userAgent);
this.he=(/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent))&&!this.Kh;this.Zp=/tizen/i.test(navigator.userAgent);this.sg=/android/i.test(navigator.userAgent)&&!this.Zp&&!this.he&&!this.Kh;this.cq=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&!this.he&&!this.Kh;this.ix=/ipad/i.test(navigator.userAgent);this.Bf=this.cq||this.ix||this.kd;this.Gm=(/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent))&&
!this.he&&!this.Kh;this.Vp=/amazonwebappplatform/i.test(navigator.userAgent);this.Zw=/firefox/i.test(navigator.userAgent);this.bx=/safari/i.test(navigator.userAgent)&&!this.Gm&&!this.he&&!this.Kh;this.cx=/windows/i.test(navigator.userAgent);this.Vj="undefined"!==typeof window.c2nodewebkit||"undefined"!==typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.aq=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.gx=!("undefined"===typeof window.c2isWindows8Capable||
!window.c2isWindows8Capable);this.ie=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.$j=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.Zj=!!window.cr_windows10;this.$p=this.aq||this.gx||this.$j||this.Zj;this.Xw=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.Sj=this.sg&&!this.Gm&&!this.Uj&&!this.Zw&&!this.Vp&&!this.Oa;this.devicePixelRatio=1;this.Pe=this.Ec||this.Uj||this.Wp||this.Dc||this.sg||this.Bf||
this.ie||this.$j||this.Xw||this.Zp||this.kd;this.Pe||(this.Pe=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));this.Yj=!!(this.Bf&&this.Ec&&window.webkit);"undefined"===typeof cr_is_preview||this.Vj||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||(this.Vj=!0);this.canvas=a;this.fp=document.getElementById("c2canvasdiv");this.u=this.q=null;this.tm="(unavailable)";this.xa=
!1;this.pf=0;this.Ga=null;this.yj=!1;this.Qq=this.Rq=0;this.canvas.oncontextmenu=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.onselectstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.ontouchstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.ub&&(window.c2runtime=this);this.Vj&&(window.ondragover=function(a){a.preventDefault();return!1},window.ondrop=function(a){a.preventDefault();return!1},window.nwgui&&window.nwgui.App.clearCache&&
window.nwgui.App.clearCache());this.Sj&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=a.width;this.height=a.height;this.D=this.width;this.C=this.height;this.kj=this.width;this.uh=this.height;this.Bg=window.innerWidth;this.Ag=window.innerHeight;this.pa=!0;this.Mh=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.m=[];this.Fa=[];this.Rm={};this.ld=[];this.Zl={};this.be=[];this.fh=[];this.hl=[];this.Au=[];this.Bu=
[];this.nf={};this.Im=this.Ne=!1;this.Fc=0;this.Hm=this.Km=!1;this.gd=[];this.Jh=!1;this.hk=this.Fn="";this.ab=null;this.je="";this.Di=this.Pr=!1;this.xj=[];this.of=this.Ke=0;this.Gq=30;this.Ol=this.ei=0;this.Sf=1;this.ib=new db;this.we=new db;this.sk=this.Dj=this.sf=this.Pd=this.Ef=this.gm=this.ck=0;this.lf=null;this.Vl=[];this.Yl=[];this.tj=-1;this.Xm=[[]];this.Wn=this.nk=0;this.Jk(null);this.fi=[];this.gi=-1;this.Lq=this.ji=0;this.Qm=!0;this.xh=0;this.Ei=[];this.Tn=this.xn=-1;this.zg=!0;this.lk=
0;this.Wj=!1;this.uy=0;this.Yf=null;this.Gc=this.Mp=!1;this.Pq=new ca;this.dn=new ca;this.en=new ca;this.rr=[];this.qd=new fb([]);this.On=new fb([]);this.Fe=[];this.pg={};this.He={};this.Ce={};this.eh={};this.$o={};this.kq=this.gk=this.Sa=this.$a=this.jq=this.fk=this.fa=null;this.bh=this.Lm=!1;this.hm=[null,null];this.mg=0;this.em="";this.me={};this.Bi=this.Ue=null;this.Rr="";this.rk=[];this.cy()}}function q(a,b){return 128>=b?a[3]:256>=b?a[2]:512>=b?a[1]:a[0]}function n(){try{return!!window.indexedDB}catch(a){return!1}}
function u(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function m(a,b,c,e){try{var d=indexedDB.open("_C2SaveStates");d.onupgradeneeded=u;d.onerror=e;d.onsuccess=function(d){d=d.target.result;d.onerror=e;d.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,data:b}).onsuccess=c}}catch(h){e(h)}}function v(a,b,c){try{var e=indexedDB.open("_C2SaveStates");e.onupgradeneeded=u;e.onerror=c;e.onsuccess=function(e){e=e.target.result;e.onerror=c;var d=e.transaction(["saves"]).objectStore("saves").get(a);
d.onsuccess=function(){d.result?b(d.result.data):b(null)}}}catch(d){c(d)}}function p(){ga("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 c(a){var b,c={};for(b in a)!a.hasOwnProperty(b)||a[b]instanceof ca||a[b]&&"undefined"!==typeof a[b].Dz||"spriteCreatedDestroyCallback"!==b&&(c[b]=a[b]);return c}var b=window.requestAnimationFrame||window.mozRequestAnimationFrame||
window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;f.prototype.cy=function(){var a=this;if(this.Yj)this.aw(function(b){a.Yh(JSON.parse(b))},function(){alert("Error fetching data.js")});else{var b;this.ie?b=new ActiveXObject("Microsoft.XMLHTTP"):b=new XMLHttpRequest;var c="data.js";if(this.aq||this.ie||this.$j||this.Zj)c="data.json";b.open("GET",c,!0);var e=!1;if(!this.Oa&&"response"in b&&"responseType"in b)try{b.responseType="json",e="json"===b.responseType}catch(d){e=
!1}if(!e&&"responseType"in b)try{b.responseType="text"}catch(h){}if("overrideMimeType"in b)try{b.overrideMimeType("application/json; charset=utf-8")}catch(g){}this.ie?b.onreadystatechange=function(){4===b.readyState&&a.Yh(JSON.parse(b.responseText))}:(b.onload=function(){if(e)a.Yh(b.response);else if(a.kd){var c=b.responseText,c=c.substr(c.indexOf("{"));a.Yh(JSON.parse(c))}else a.Yh(JSON.parse(b.responseText))},b.onerror=function(a){ha("Error requesting "+c+":");ha(a)});b.send()}};f.prototype.Rw=
function(){var a=this,b,c,e,d,h,g,k,l,t;this.Af=(!this.Oa||this.kd||this.Ec)&&this.Fy&&!this.Sj;0===this.Xb&&this.Bf&&(this.Af=!1);this.devicePixelRatio=this.Af?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;"object"===typeof window.StatusBar&&window.StatusBar.hide();this.Cb();0<this.Xb&&this.setSize(window.innerWidth,window.innerHeight,!0);this.canvas.addEventListener("webglcontextlost",function(b){b.preventDefault();a.yx();ga("[Construct 2] WebGL context lost");
window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){a.u.Qp();a.u.oe(a.u.width,a.u.height,!0);a.$a=null;a.Sa=null;a.hm[0]=null;a.hm[1]=null;a.zx();a.pa=!0;ga("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);try{this.uv&&(this.Dc||this.kd||!this.Oa)&&(b={alpha:!0,depth:!1,antialias:!1,powerPreference:"high-performance",failIfMajorPerformanceCaveat:!0},this.sg||(this.q=this.canvas.getContext("webgl2",b)),this.q||(this.q=this.canvas.getContext("webgl",
b)||this.canvas.getContext("experimental-webgl",b)))}catch(r){}if(this.q){if(b=this.q.getExtension("WEBGL_debug_renderer_info"))this.tm=this.q.getParameter(b.UNMASKED_RENDERER_WEBGL)+" ["+this.q.getParameter(b.UNMASKED_VENDOR_WEBGL)+"]";this.xa&&(this.tm+=" [front-to-back enabled]");this.Oa||(this.yb=document.createElement("canvas"),jQuery(this.yb).appendTo(this.canvas.parentNode),this.yb.oncontextmenu=function(){return!1},this.yb.onselectstart=function(){return!1},this.yb.width=Math.round(this.kj*
this.devicePixelRatio),this.yb.height=Math.round(this.uh*this.devicePixelRatio),jQuery(this.yb).css({width:this.kj+"px",height:this.uh+"px"}),this.lr(),this.mn=this.yb.getContext("2d"));this.u=new pb(this.q,this.Pe,this.xa);this.u.oe(this.canvas.width,this.canvas.height);this.u.tp=0!==this.nv;this.Ga=null;b=0;for(c=this.m.length;b<c;b++)for(h=this.m[b],e=0,d=h.J.length;e<d;e++)k=h.J[e],k.Va=this.u.rm(k.id),k.nd=this.u.un(k.Va),this.bh=this.bh||this.u.oi(k.Va);b=0;for(c=this.ld.length;b<c;b++){l=this.ld[b];
e=0;for(d=l.J.length;e<d;e++)k=l.J[e],k.Va=this.u.rm(k.id),k.nd=this.u.un(k.Va);l.sd();e=0;for(d=l.K.length;e<d;e++){t=l.K[e];h=0;for(g=t.J.length;h<g;h++)k=t.J[h],k.Va=this.u.rm(k.id),k.nd=this.u.un(k.Va),this.bh=this.bh||this.u.oi(k.Va);t.sd()}}}else{if(0<this.Xb&&this.ub){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.Ga=AppMobi.canvas.getContext("2d");try{this.Ga.samplingMode=this.Ea?"smooth":"sharp",this.Ga.globalScale=1,this.Ga.HTML5CompatibilityMode=
!0,this.Ga.imageSmoothingEnabled=this.Ea}catch(f){}0!==this.width&&0!==this.height&&(this.Ga.width=this.width,this.Ga.height=this.height)}this.Ga||(this.Dc?(b={antialias:!!this.Ea,alpha:!0},this.Ga=this.canvas.getContext("2d",b)):(b={alpha:!0},this.Ga=this.canvas.getContext("2d",b)),this.Sk(this.Ga,this.Ea));this.mn=this.yb=null}this.Zr=function(b){a.mb(!1,b)};window==window.top||this.Oa||this.$p||this.ie||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",
function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.Dc&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(ga("Reloading for continuous preview"),this.hk="__c2_continuouspreview",this.Di=!0),this.Mx&&!this.Pe&&(jQuery(window).focus(function(){a.setSuspended(!1)}),jQuery(window).blur(function(){var b=window.parent;b&&b.document.hasFocus()||a.setSuspended(!0)})));window.addEventListener("blur",function(){a.Kg()});
this.Oa||(b=function(a){if(ob(a)&&document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(b){}},"undefined"!==typeof PointerEvent?document.addEventListener("pointerdown",b):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",b):document.addEventListener("touchstart",b),document.addEventListener("mousedown",b));0===this.Xb&&this.Af&&1<this.devicePixelRatio&&this.setSize(this.cb,
this.bb,!0);this.cs();this.Kw();this.go();this.N={}};f.prototype.setSize=function(a,b,c){var e=0,d=0,h=0,g=0,g=0;if(this.Bg!==a||this.Ag!==b||c){this.Bg=a;this.Ag=b;var k=this.Xb;if((h=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.Wj)&&!this.Ec)||0!==this.Xb||c)h&&(k=this.mg),c=this.devicePixelRatio,4<=k?(5===k&&1!==c&&(a+=1,b+=1),h=this.cb/this.bb,a/b>h?(h*=b,5===k?(g=h*c/this.cb,1<g?g=Math.floor(g):1>g&&(g=1/Math.ceil(1/g)),h=this.cb*
g/c,g=this.bb*g/c,e=(a-h)/2,d=(b-g)/2,a=h,b=g):(e=(a-h)/2,a=h)):(g=a/h,5===k?(g=g*c/this.bb,1<g?g=Math.floor(g):1>g&&(g=1/Math.ceil(1/g)),h=this.cb*g/c,g=this.bb*g/c,e=(a-h)/2,d=(b-g)/2,a=h):d=(b-g)/2,b=g)):h&&0===k&&(e=Math.floor((a-this.cb)/2),d=Math.floor((b-this.bb)/2),a=this.cb,b=this.bb),2>k&&(this.nh=c),this.kj=Math.round(a),this.uh=Math.round(b),this.width=Math.round(a*c),this.height=Math.round(b*c),this.pa=!0,this.qs?(this.D=this.width,this.C=this.height,this.zc=!0):this.width<this.cb&&this.height<
this.bb||1===k?(this.D=this.width,this.C=this.height,this.zc=!0):(this.D=this.cb,this.C=this.bb,this.zc=!1,2===k?(h=this.cb/this.bb,k=this.Bg/this.Ag,k<h?this.D=this.C*k:k>h&&(this.C=this.D/k)):3===k&&(h=this.cb/this.bb,k=this.Bg/this.Ag,k>h?this.D=this.C*k:k<h&&(this.C=this.D/k))),this.fp&&!this.Oa&&(jQuery(this.fp).css({width:Math.round(a)+"px",height:Math.round(b)+"px","margin-left":Math.floor(e)+"px","margin-top":Math.floor(d)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(a)+
"px",height:Math.round(b)+"px"})),this.canvas&&(this.canvas.width=Math.round(a*c),this.canvas.height=Math.round(b*c),this.kd?(this.canvas.style.left=Math.floor(e)+"px",this.canvas.style.top=Math.floor(d)+"px",this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(b)+"px"):this.Af&&!this.Oa&&(this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(b)+"px")),this.yb&&(this.yb.width=Math.round(a*c),this.yb.height=Math.round(b*c),this.yb.style.width=this.kj+
"px",this.yb.style.height=this.uh+"px"),this.u&&this.u.oe(Math.round(a*c),Math.round(b*c)),this.ub&&this.Ga&&(this.Ga.width=Math.round(a),this.Ga.height=Math.round(b)),this.Ga&&this.Sk(this.Ga,this.Ea),this.cs(),this.cq&&!this.Ec&&window.scrollTo(0,0)}};f.prototype.cs=function(){if(this.Gu&&0!==this.ln){var a="portrait";2===this.ln&&(a="landscape");try{screen.orientation&&screen.orientation.lock?screen.orientation.lock(a).catch(function(){}):screen.lockOrientation?screen.lockOrientation(a):screen.webkitLockOrientation?
screen.webkitLockOrientation(a):screen.mozLockOrientation?screen.mozLockOrientation(a):screen.msLockOrientation&&screen.msLockOrientation(a)}catch(b){console&&console.warn&&console.warn("Failed to lock orientation: ",b)}}};f.prototype.yx=function(){this.u.Pu();this.Lm=!0;var a,b,c;a=0;for(b=this.m.length;a<b;a++)c=this.m[a],c.tk&&c.tk()};f.prototype.zx=function(){this.Lm=!1;var a,b,c;a=0;for(b=this.m.length;a<b;a++)c=this.m[a],c.hn&&c.hn()};f.prototype.lr=function(){if(!this.Oa){var a=(document.mozFullScreen||
document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.Wj)&&!this.Ec?jQuery(this.canvas).offset():jQuery(this.canvas).position();a.position="absolute";jQuery(this.yb).css(a)}};var d=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;f.prototype.setSuspended=function(a){var b;if(a&&!this.Mh)for(ga("[Construct 2] Suspending"),this.Mh=!0,-1!==this.xn&&d&&d(this.xn),-1!==
this.Tn&&clearTimeout(this.Tn),a=0,b=this.Ei.length;a<b;a++)this.Ei[a](!0);else if(!a&&this.Mh){ga("[Construct 2] Resuming");this.Mh=!1;this.ck=$a();this.Ef=$a();a=this.ei=this.Dj=0;for(b=this.Ei.length;a<b;a++)this.Ei[a](!1);this.mb(!1)}};f.prototype.Vo=function(a){this.Ei.push(a)};f.prototype.ze=function(a){return this.rk[a]};f.prototype.Yh=function(a){a&&a.project||ha("Project model unavailable");a=a.project;this.name=a[0];this.Ap=a[1];this.Xb=a[12];this.cb=a[10];this.bb=a[11];this.er=this.cb/
2;this.fr=this.bb/2;this.Oa&&!this.kd&&(4<=a[12]||0===a[12])&&(ga("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.Xb=3);this.eo=a[18];this.Ve=a[19];if(0===this.Ve){var b=new Image;b.crossOrigin="anonymous";this.Hr(b,"loading-logo.png");this.Ue={ok:b}}else if(4===this.Ve){b=new Image;b.src="data:image/png;base64, ";
var c=new Image;c.src="data:image/png;base64, ";
var e=new Image;e.src="data:image/png;base64, ";
var h=new Image;h.src="data:image/png;base64, ";
var d=new Image;d.src="data:image/png;base64, ";
var g=new Image;g.src="data:image/png;base64, ";
var k=new Image;k.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAABACAMAAADCg1mMAAABmFBMVEUzMzOIjoM0NDSHjoKFjIFyeG89Pj1gZF5dYVs2NjY4ODhQU0+Ah3yBiH1XWlU5OjmEin86Ozp+hHpwdWx8gnh3fHNSVFCFjIB8gndNUEx6gHaEi4BcYFpFRkRkaGFjZ2Btcmpxd25qb2dTVlF5f3VVWFNISkc1NTVJS0hpbmZ9hHlAQkBUVlJAQT9na2Q8PDtGSEVQUk5xdm1KTElMTktMTkpobWU/QD51enFmamOCiX54fnRZXFdDREJ2fHI8PTxERUNWWVRrcGiAhntcX1leYls7PDpSVVE9Pjx/hntYXFZaXViDin5laWI7PDtvdGtPUU1obGRCREFCQ0FhZV9uc2tLTUqDin9PUk5eYlxscWk1NjVaXlhHSUZiZl9yeG50eXBlamJISUZXWlRRVE96gHVKTEg4ODdpbWZvdGx0enBERkN4fXN7gXdwdW0+Pz5bXllPUk1scGhrcGd9g3lISkZYW1UzNDNYW1ZjZ2E/QT+GjYJUVlFgZF03Nzc5OTlnbGRjaGBERUKIj4JGR0U3ODd2e3JjaGE5GY8RAAAGGUlEQVR4Xu2XVZMrNxCFdQbMzIzLzMzMzJeZmcIMfzvWaMjrWxunspO6qdV52G5199qaT9K0TL5gcXFxcXFxcXFxcXFxcXElc+6qsZDL+clVkh1dVeNmwMYB/CfiADgADoAD4AAE3ywhznJr8VZrzGmOD+Reytvf96jDTl9MT5V9euGgTytwNZbkvtGdZnWY9TUR0t9V7Gth456DsFzIDBND2a7x0Iszt/B5AN0OuS301LGkRNp9jaZ8v6+fXKKaAeFoFYrabujhlhdgkjuV8TcQ/WpqBRjQykI4Yc7sGBQlVCAO7DoLADBLR7Y+lhXz17SvHaVDEYjaPgcgFgBEAIFe5d9FfDBWZh6NlwzgOzGy9ottcmIecW09G0U8jw0H9ydCOL6rRBLoVXM+6DPuxLcuxdmElOtZsvVGIbWoAIYKSC3snLRXBvseNCwPB7MHEsICA1CC+PW+ILQvBkKPawFkMO4OEmf/bYhJGiqaSloguS4ZgDTHtrQ/ijbmPRRhZzN9dIgxG3Xy+hxuQfKwJLkHWbET8D5jyzMEj4sB8GBRrfKH0MWOxrMxLCjOfYhJlWFIrAUgtjZrH+f9sWLdONZP3SjOyCUDiGoHdzoAnxKLYFfPT6FAbT9C6uOIKRl3mV/AOjU2SWzSysdxygBglKi6gz5BdU8QoHyEBG5q2Z5aABjXZuSMIEPNGNxa1ovkZQNoMXWkKDUxjBm7bAag2/hamholaZ9Qpy9ssFgOJb18B20MQNyvRrYksV1PN6BcMTcgBfXQ21oAg/rAhwRj+FINDMDbfNkAjKYzCdBpP0GeGLoNBzWH+Epd9R4bImzx2MMKXjTp1U4JrxQAh1pkDTLRdYrHFbOIYp1tsBtYoS0DYrf28sgR6wAIAeVRNmBuNNfZbBvxhBpnelUgUexRP4NNhi0gGOUPMKgAaNUCBVw3sm8wpYRO6wRA5nHEPnWd8Q0gayEAMo4YIVuAvkGN07+CNO1hSfrQC8jQkMz6YS88DkNtWK4GkMJbIzuE95VQFI31AhhhpRNoIOy7XhArARRxj5B2/GqumEFAPb60ww3hIW1/zyvuD1JcaRqzqFZHNQAPqhRiPbVeAC+xRk1QwgzbThlLAfTBRwGI5opJpNWJ2ul59woUBqU2iLD6ohp3m/WqGoAXGXN2QAFwUi+AMANACsp7ySXBZimAEbp8rwAnMXQDHsU2YZz+GaL+In0j5nGP3ZogkypVA1hF0/lsFB31AritnpYkPM2ElCETSwGsYrASEjFJDHUgqlhhDEGSZ114DzLbBlRHWL0IwB+1V9dDOOoFEMIgi3owQHdoh6UAgmzwnK6vriHtSjOHGGkLsM2REP1bSLH4EtB5AYBNlM5nT7FdJ4CgPriJMxIU4y5LAXRot5ioUeA61u4ly3g8gzNt1ssxHOgHx34BgH52JzKrCfFH+uDPWgB7phlFVG8fkt+HOWIBAH25hQb2JNMS3HrBASIC84JiKIP7zM9iblc/227EjS3QfR6AkMJPRB9sKaEIFrTIkrcWwJzup4wbwxRmRzBoBYB0j75s8Wl1i47NqLFeEUljCg36L7G2+dRxswZORqpb6xne3XMAyENgQqscZb+aliGpX+p6iloAOp6fsaHvnlkk4BGsAJCIX6cb0pUDPqrzDCO9Rg+7/6Zo2t6LQFjz88CZseoRzMcoDtd6GuXzAMhroDRMnd9kNPyudrX0ur9SX34vhWsBtGL7g0DIXgG4b5zFOJAnVgCYLEKaejIiwdhu10aB+Eg4KkIy3WOzQKPRHFEmBgEZ2JDDUQmBZVIDgHQEgFS4OA/cCrKIcw6AxyPC07JeC8BpFyGtbgCSuYGUgBlLANg+uWUJkMJ3TfFsyQsgtDlsigl9I0GTv0VMSobTABL2afWRRxzmbLc9AiAQ3jFCA9teMTCVcZGjd9VtUnhXImSmKyJJkTtV3eUNHlBjTRcQpqdrjpd/5Z/1nKUV5wVZ58rSJ/KvlMdrqwD8LyR4xOkrDWAARXKlATxF75UGsIiIcGUBZCccUxBbyJUF4APgTRJrNDwskC9dto8Lsb9vyVxcXFxcXFxcXFxcXFxcfwEXKq8s5phFegAAAABJRU5ErkJggg==";
var l=new Image;l.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAAAgCAMAAADt/IAXAAACEFBMVEUzMzN9g3g0NDR7gXdzeG9CQ0E1NTWBh3w6OzpvdGx9g3k6OjlkaGFLTUqEi394fXRvdGt1enE2NjZ3fXM9Pj1iZl+AhntVWFNjZ2BWWVQ4OTh1e3FwdWxpbmZAQT83Nzc4ODdrcGhuc2tMTkpKTElNT0tRVE9aXVdPUU1PUk42NzZ6gHZLTUk7PDs5OjldYFp0eXB+hHlYW1Z0enBeYlx+hHp5f3WAh3w2NjVtcmpqb2dMTktISkd/hntHSUY4ODhmamNdYVtnbGRBQkA3ODdyd25yeG88PTs7OzpQUk5ERkNZXFdhZV5eYVuCiX03NzY1NjVOUU2Din5ERUM/QD9uc2pma2N+hXpUV1JFR0Q0NTRDREKIj4OCiH1XWlVGSEVfY1w9Pjw+Pz0/QD6Ein92fHI7PDpdYVp8gniFjIA8PTyAhnxgY11gZF5FRkRQU05YXFZna2NCREFSVVFAQkB/hXpXW1Vrb2dJSkc9PTxlamKFi4BISUZZXVeHjoJzeW9gZF1TVlFfYlxna2RVV1JcX1lbX1lNUEyDiX5tcmlzeXB8gndRVFBOUExpbWZSVFBNT0xhZF5laWJ4fXNwdW1RU09bXllDRUJqbmZfY12Ei4BUVlJbXlhKTEhTVVFcYFpeYltxdm1xd25obGU1NTSFjIFKS0iBiHxscWl9hHlscGhpbWVaXVhvc2ttcWk0NDPL7ZluAAAChElEQVR4Xu3SU6+kWRxG8fWibNvHtm3bdtu27bFtfsXJ6a5UMkklXdU5yZlMat09++Kf38Xmf1mmTJnmnwOAuN3FvpT1fhyw5OVdygBETYlekvStAEUfCKYDBXD+KTAWVQOxduDDMu13WcCx1dLCNpifFrZXRCBoXi4fyk4AggGnKqCmxOwFaDyaImBJ7td1TleK4KlubA1GfHXkdAOx658DnwzCbctAONb8AGTTewN2DOXZrYs+B/TVfhEadUkJgK9RqWszLWBxAfhXUgV8CYxpsyneUgBizx/orhTAqYYocOQsCqcXiEkgRwDluVVAPXGYow0AHyUARYBY089cJaA7pE4V4AV4pcejAeClCSwGxNk+VQiFAMccAKKxFzkfMNgA0ORge5bkDwy3ETZugidKWoC5KO5PAbB/Bl+7afETyWNQD/VP5N1+/Bh5HKhQvZ5HTqJaTAL4SgO/fwOP89MD3DKjrwKg9xBMFuK4S34AvwHM9xSvs74B5Na/mTpUp5MAzmigScvhkbr0AO0z5F4A4KIENF+S1ISaR1VWuFxFvNeAE2XEs2UnAZTOAMLVazOkDNgEsOUQnFADBIaADscNoH7YDBSVWwGUcUCJURGfN78HcCUAxwFMJ4DSO7aW1AHyBgtr0hi4LXaU96t1QJ6xAnjx0APwyF+M6Po2DqDi4CQ0FXrZUXl+EPMOJgC+FkLuGiWwbhRIHfBTpTDSvQGIudXan39ZBwj/age8WjuAcs0p1DbsQMQAwAtp1ll2HFDIxtqOpt/igJqpP5e3/ioGoKcqDYCXOivxukSSFv73e4HyLVeFqbQAe16Whf0EdI5rDaTc33ore9wBzTj/0TJlyvQPsTd0lRaZaakAAAAASUVORK5CYII=";
var t=new Image;t.src="data:image/png;base64, ";
var r=new Image;r.src="data:image/png;base64, ";
var f=new Image;f.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAABACAMAAADCg1mMAAABnlBMVEUzMzOIjoM0NDSHjoJyeG+FjIE2NjZISkeAhntNUEw4ODhVWFN1enFXWlWFjIA9Pj06Ozp4fnRxd26Ah3x6gHZtcmqEin98gnh5f3U8PTxobGWBiH1+hHo1NTVBQkBWWVQ9PjyEi4BMTkp9hHlna2Q5OjlDREJRVFBgZF6Din5laWJGSEU/QD5UVlJ7gXdscWlcX1lFRkRAQT9aXlhvdGtjZ2BCQ0FmamOCiX5wdm03Nzc7PDtHSEZJS0hTVlFpbmZYW1ZERkNuc2tdYVs3ODdCREF2fHJbXlliZl9QUk41NjVeYltZXFc/QD9YW1VQU09tcmlhZV9scGhKTEl3fHNeYlxERUNwdWw7PDpcYFpLTUpqb2d/hntpbWY+Pz5nbGR2e3JMTktWWlR9g3l0eXA8PDt8gndPUk44ODeDin9obGRaXViBiHxrcGhTVVFPUk1OUE1KTEhvdGx4fXNZXFZlamJyeG5RVE90enCGjYJkaGFgZF1rcGczNDNISkZISUZAQj9gY11fY11kaGBLTkpERUJVV1NGR0VUVlFwdW0dCiH/AAAHg0lEQVR4Xu3WVZPkOBYF4HOMycxYyMzMDM3MzMwwM8v4r3fKkpyZ1d3R2Rsxuw/j71HlSstH90rC/57H4/F4PB6Px+PxeDwe26/h98wmV/B71kaO4HftQ3UP/z8ej2cs3A1lKWxBagv3Yy4c3oB0JjwAqSv8ArDDi5AC4RNQguEo6gQGryWM9LnR+qHgcsL4+XgMUjgcAIB7h9OYOjVrrDhjc4htrxk3cMg6MT1rTPTY+JrrIyeNRMcJCzWrf54wZvv8ZUh2+O/AvYOTvw6ewaG5pWXDuFINwHGMeieEFvIWpBIfACX6IWW5A+ka+4Ag45C6+SmgpkM9hprwIwoJN5bbvXRE1jU4yD+J4zCLSzrJZ85YS9sMySQADCYpbI3hKKtPp8P3ElJ0lkL2bxA6OKKNmHQYMeCD/MGiiAP3uQshTHZAGHM+app9EDbJLCQf24A8eRHCSVIVUZBbqLlE/cZiPra6P8OreTg+U3+8mJ+3p3X+fCSA9rdMnjrx0nbGdk2zsOR/AWCHeuHMfKBSvcNkHo3mQny0vnox6p8lq3CMFul7shkb6N4i36oA1t9x1n8sak+avPvLOK+On49ODQ6xVSQ66X71e5pJTS4UDQB+Zt1viXAKjgojFoC4+mqrNcJhCKe5DteYrgqoJcs0Dg0yImNfyPB2YwCZyEQAApm8L5f7ASOv4AjE+QyNlpmVpfWWn7oAYD7JhPgVbZ30ywCGVDxt5F95QTzwMMdl0d0swdGppwz+EY40nwDYMCk7/w2neQmOFb4GgJ/kv+MWC2bGEi8tchSuESYg2aLP5ooMQlqir9wQAHN7kMjWAQhnOQKpn6ZKyB2YglTgsIgkZ0GapM8SAbAHUppMqQf8bHVmsNfKiuzlngPZ6VqvGEvI6KLcWuVZOCbE0i0wCcdjtk3IvWOVSQ2uPvZBeWr2Ox0ypEHSrvIPjQG0QanNWCv5xqAUuYB6VzgNpcLIHhDVaUOxfAyKAGY2IAXJl5AsXRb1GldkOv1RZmW27Th0wLRc9W3cYQsAlDOMOhnNsEusembvOcV+vc0CakYYQqOJ+g4ZZrghgBkNCnkeXzHk7tFqlWy4ipwCnjCOmnM0RAAdUM7Q3IPi46JM5bXo5asaznJTtHyf3AsfOdMyOIYdHhcrn1L5j4uZX0Gn+VQTBbOLhj3gpzLqJbkI11yn1RBACS5y4OsB+FGnQt2CK9CpAWv8C2pGGdGcAHqg2PTB1S6LroWte05L9AEjotMNlXWWC2J3APr5HgD2eUqdfgnRabvArFPOlinOQ6Wqs/3cqAbFIqOo12QA2pR/MPgrX2MAl9n+ZUS7qLHIgWYCQM5ZmAJfAWN8A2DOjFjq2DoHYInnDpvW2chCqu5iumkBuBPZAILccerLQIOFEMnetWAMjntk4McD2Cz0UmoM4ATjOCJJG3UyPN9UAD3sAbRiUXPCiAJtvOCmfBNAmuedMLqBgN5bhnCTl4EurjlhZJ3fGccRle3ZDGk+vggA+f8mgH2dpenqrUXbtkuNAXR/GcDTxm2yl6NNBWAzDtgsiApfASZ5G4IV0TthRdrFY2nAz9OQ1jkJ7HNJ9EwXEGcFX9L6P0foqwAIkPd+NIBtRoLa1/cAP4dwRIltqGOy0lQA2gxjmBTxbtIQZSBN8AH8nHQee9pq4TOXIK0yBcTFRfo41xHT2/F10ThzGoAIV38wgFiE/m9tgqPM4Ii7XEHNdfJhUwHgGbvRLi8z9/XOeaagVNmBgrweTdOPFOch/ZJk/rq87OQZxy778A1Rnf90miYIV0tX7PsBPGcc3wpgQ+cYXJUuC9hhGjVLHEJzATzntfMcVhvC826eghJlSSvK681lFlp4Fq4CBw8YVhtCtKPxmB5YvgFXjt3OwTwB1xr/8f0ARngSiqZOAeUjD+ovBccAm2YMLoM9TQYQ00uX+EEV1rPHtOFK8V/qwlWeSXZzH64HXE4wD8cTVrMRC3XmyUpd2H4Ax3R9ClJnhmPfD+A441DGeSSAQbZbENSFPsdpKLeoDzQZALaYMwNq2Jd6VIarh3FehnCNCY7CFfiUjdx0++29e3RoagEmNAi7cmVu8M1D+cwwJ5rYAzbpltWgTr5oeEE5xQ4V531RDYvkIIRKkZNoNoB9urPHJDmMGpt0Dz4/Gy77MMhxSHHKbiiHdDHY1crEKgA8HDflHAIppmznbwn68k0EgDRbgxagLaR5NsVqwwvQleHaAADtVpaGJnuG7+YB7AV7eXev6QBGySCkBXIJNeVeXoFkZVhAnXHyGKRL5HUcmqLaQ/tLpC/xessk+2RuFz+SpcS/s2R8AM0EEAiRrblcL5kOpPmu8QUYLZGpC4kieXoOQjVCPX7hboa8YqHpALQLRgySNmHMo86p0BkoPaE21KmETkMZCw2r4i6pMOdWQiZJ33I/FK3bMEnz42AZQijU4ixmKA3AHctDKR+P6+TM6UUgGLp25AXYGMnpZObkK7hadu6QnBm2IW2HqlC6QmtwDYf68ZvT5qOBo0P5fBk/worG8G1Wy0UcsdESw5c8Ho/H4/F4PB6Px+PxeDwej8fzH+ab6YZ24mCxAAAAAElFTkSuQmCC";
var p=new Image;p.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAAAgCAMAAADt/IAXAAABblBMVEUzMzM2NjY4ODheYlxAQkA/QD58gng0NDQ5Ojl6gHaCiX59hHlMTktZXFc9Pj15f3VkaGFdYVuEi39WWVQ8PTxgZF5FRkRtcmo1NTVlaWJscWl4fnSBiH1xdm5iZmBqb2c9Pjx2fHJcYFpYW1Y6Ozp9g3lHSEZcX1mAhnt+hXo3NzdSVFCHjoJGSEVAQT9CQ0FERUNZXFZobWVERkOAh3xUVlI8PDt1enF3fHNiZl9DREJ2e3I3ODdRVE+FjIE4ODdOUU2Din9KTElVWFNJS0hxdm1MTkpna2RbX1lQUk5XWlV7gXd8gndrcGhuc2tfY11tcml0eXBNUEyDin5yeG9ISkc1NjVmamOEi4BKTEhvdGx6gHVLTUp0enBwdWxNT0x4fXR4fXNVV1M+Pz5aXVhbXlhPUk5vdGs7PDs/QD9pbmZTVVGIj4NXWlRgZF1pbWY5OTlhZV9TVlFlamJzeXB/hntscWg0NDNeYluBiHw6JP9nAAAC8ElEQVR4Xu3R1YpsORhA4bVdyt3dXdvd3e2467jL2w+himloai7m6nCgvos/yWYTFoSv3tTUlFzky/pxhy+rGOQrZ0YM4NsCQEY7cAF80wEGMZTHwKz4gZkthNk7Sz8PA6xclOZmxBqA3stA4gkrb9ZzHviQKiUUibF2Rre8JiDlX+s7u0D4zN3XPUq0GDs6upOB4zKQcwCabbR0QG0qgOKlsgd839wGnq8DSKVK0Zyxu5B/FV4O587A54X+q3hLw5dI3ajsv25JWiTOSGc4YwZDR3WiF3FV3i0VwGldb8uDRCy3YmqRCJBWIGjNdyFwgpHUoJLxAEvPWKwBOxkvrD1aA9h+ChBKE7yaBT755VHAnAH4HBJQVQF51UTgRQHgNEDhuQG0/UGczTaw+Z0TKDaXYXMJDkMVBeINyARgXj3WkDck+F1FdmQd4EwhqLaGwFYEwZUdBbwD8MX4V7KNIK3+BHBzSe4DQqSAMwfwdtUA2NDgdsMkFVY9GMkiNCIELUIu1k+BvQKNGEtdvC4EAsPzgBsILTAyCnCNd8Lgh/jHj6ujADXJ2NVnxpHOOQC3H8EWn08P5BJYWngJMG3jUCF8QSwArD8h/ph3CpbKiOT82ZGRCIX+K8Bn/dJxu+1xwJAx/1uEyq8TArb2Gl5QXJU8wFw5NYBS8TgLLNtyLYrmCercu91RKGQQzOjDgOyGef8EyE0JQFrDs4nQ358QkHXEb2Dxt+sBQN6rA2mfByG10AcS4m7hfQ/g8A/UpAQYQ+1hQMsB4B4/AbkDgLTC2QmAaXcmBOBxGIClI3T9aaBshxBc/ksgbz+DbgPKwzK4PVvQj8vU7855GFBPBgzK848W+bOXhe1aGC6rWWTdFyV4HWNSQD59PyFRBoxEC6GtS4Aq5ntRvjtfdThcQDRU1asLEvQUWHgD0PsLIJy4SqYWXzip114Cu55aNdUBZk/+LtX2DdiMAAQthKdu/q/bOmNrTCZFJx+NZSaYmpqamvoHZD1hKSAldSkAAAAASUVORK5CYII=";
this.Ue={ok:[b,c,e,h],Tx:[d,g,k,l],Jy:[t,r,f,p]}}this.ji=a[21];this.rk=pc();this.Od=new P(this);b=0;for(c=a[2].length;b<c;b++)k=a[2][b],e=this.ze(k[0]),qb(k,e.prototype),l=new e(this),l.Vk=k[1],l.Qe=k[2],l.Jz=k[5],l.Hq=k[9],l.V&&l.V(),this.plugins.push(l);this.rk=pc();b=0;for(c=a[3].length;b<c;b++){k=a[3][b];d=this.ze(k[1]);l=null;e=0;for(h=this.plugins.length;e<h;e++)if(this.plugins[e]instanceof d){l=this.plugins[e];break}t=new l.Aa(l);t.name=k[0];t.F=k[2];t.Fm=k[3].slice(0);t.Hy=k[3].length;t.Hu=
k[4];t.ew=k[5];t.X=k[11];t.F?(t.Gg=[],t.de=this.xh++,t.Ca=null):(t.Gg=null,t.de=-1,t.Ca=[]);t.vj=null;t.kg=null;t.up=null;t.wb=!1;t.lc=null;k[6]?(t.Pn=k[6][0],t.Qn=k[6][1],t.Rn=k[6][2]):(t.Pn=null,t.Qn=0,t.Rn=0);k[7]?t.kc=k[7]:t.kc=null;t.index=b;t.d=[];t.oj=[];t.se=[new rb(t)];t.zd=0;t.Qc=null;t.Tu=0;t.Xg=!0;t.il=sb;t.lw=tb;t.sw=ub;t.O=vb;t.qi=wb;t.Mf=xb;t.Ld=yb;t.Fj=zb;t.jm=Db;t.mm=Eb;t.Ud=Fb;t.nm=Gb;t.ph=new gb(this.cb,this.bb);t.Wi=!0;t.Xi=!1;t.N={};t.toString=Hb;t.Fa=[];e=0;for(h=k[8].length;e<
h;e++){r=k[8][e];f=this.ze(r[1]);p=null;d=0;for(g=this.Fa.length;d<g;d++)if(this.Fa[d]instanceof f){p=this.Fa[d];break}p||(p=new f(this),p.Iq=[],p.bn=new ca,p.V&&p.V(),this.Fa.push(p));-1===p.Iq.indexOf(t)&&p.Iq.push(t);d=new p.Aa(p,t);d.name=r[0];d.X=r[2];d.V();t.Fa.push(d)}t.global=k[9];t.Jm=k[10];t.J=[];e=0;for(h=k[12].length;e<h;e++)t.J.push({id:k[12][e][0],name:k[12][e][1],Va:-1,nd:!1,gb:!0,index:e});t.$z=k[13];this.eo&&!t.F&&!t.Jm&&l.Qe||t.V();t.name&&(this.types[t.name]=t);this.m.push(t);l.Vk&&
(e=new l.ta(t),e.uid=this.ji++,e.or=this.Lq++,e.zf=0,e.Ch=Ib,e.toString=Jb,e.L=k[14],e.V(),t.d.push(e),this.me[e.uid.toString()]=e)}b=0;for(c=a[4].length;b<c;b++)for(d=a[4][b],g=this.m[d[0]],e=1,h=d.length;e<h;e++)k=this.m[d[e]],k.Ca.push(g),g.Gg.push(k);b=0;for(c=a[28].length;b<c;b++){d=a[28][b];g=[];e=0;for(h=d.length;e<h;e++)g.push(this.m[d[e]]);e=0;for(h=g.length;e<h;e++)g[e].wb=!0,g[e].lc=g}if(0<this.xh)for(b=0,c=this.m.length;b<c;b++)if(k=this.m[b],!k.F&&k.Ca.length){k.vj=Array(this.xh);k.kg=
Array(this.xh);k.up=Array(this.xh);t=[];e=p=f=r=0;for(h=k.Ca.length;e<h;e++)for(l=k.Ca[e],k.vj[l.de]=r,r+=l.Hy,k.kg[l.de]=f,f+=l.Hu,k.up[l.de]=p,p+=l.ew,d=0,g=l.J.length;d<g;d++)t.push(ya({},l.J[d]));k.J=t.concat(k.J);e=0;for(h=k.J.length;e<h;e++)k.J[e].index=e}b=0;for(c=a[5].length;b<c;b++)k=a[5][b],e=new Kb(this,k),this.Rm[e.name]=e,this.ld.push(e);b=0;for(c=a[6].length;b<c;b++)k=a[6][b],e=new Lb(this,k),this.Zl[e.name]=e,this.be.push(e);b=0;for(c=this.be.length;b<c;b++)this.be[b].Pa();b=0;for(c=
this.be.length;b<c;b++)this.be[b].$n();b=0;for(c=this.hl.length;b<c;b++)this.hl[b].Pa();y(this.hl);this.Fu=a[7];this.em=a[8];this.md=a[9];this.nh=1;this.uv=a[13];this.Ea=a[14];this.hp=a[15];this.Fy=a[17];this.ln=a[20];this.Gu=0<this.ln;this.Mx=a[22];this.zc=this.qs=a[23];this.nv=a[24];this.Ux=a[25];this.xa=a[27]&&!this.he;this.Zk=Date.now();y(this.rk);this.Rw()};var a=!1,e=0,k=[];f.prototype.Zx=function(a,b){function c(){e--;d.Cq()}var d=this;a.addEventListener("load",c);a.addEventListener("error",
c);k.push([a,b]);this.Cq()};f.prototype.Cq=function(){for(var a;k.length&&100>e;)e++,a=k.shift(),this.Hr(a[0],a[1])};f.prototype.os=function(b,c){b.cocoonLazyLoad=!0;b.onerror=function(c){a=b.cp=!0;console&&console.error&&console.error("Error loading image '"+b.src+"': ",c)};this.kd?b.src=c:b.src||("undefined"!==typeof XAPKReader?XAPKReader.get(c,function(a){b.src=a},function(e){a=b.cp=!0;console&&console.error&&console.error("Error extracting image '"+c+"' from expansion file: ",e)}):(b.crossOrigin=
"anonymous",this.Zx(b,c)));this.fh.push(b)};f.prototype.cw=function(a){var b,c;b=0;for(c=this.fh.length;b<c;b++)if(this.fh[b].Qu===a)return this.fh[b];return null};var g=0,l=!1;f.prototype.Kw=function(){this.Yf&&(g=this.Yf.oy(this.Fu))};f.prototype.Yo=function(){var a=g,b=0,c=0,e=!0,d,h,c=0;for(d=this.fh.length;c<d;c++){h=this.fh[c];var k=h.kp;if(!k||0>=k)k=5E4;a+=k;h.src&&(h.complete||h.loaded)&&!h.cp?b+=k:e=!1}e&&this.Ux&&this.Yf&&(l||(this.Yf.vy(),l=!0),c=this.Yf.uw(),b+=c,c<g&&(e=!1));this.$b=
0==a?1:b/a;return e};var r=!1;f.prototype.go=function(){if(this.Ga||this.u){var c=this.Ga||this.mn;this.yb&&this.lr();var e=window.innerWidth,d=window.innerHeight;this.Bg===e&&this.Ag===d||this.setSize(e,d);this.$b=0;this.iq=-1;var h=this;if(this.Yo()&&(4!==this.Ve||r))this.Lw();else{d=Date.now()-this.Zk;if(c){var g=this.width,k=this.height,e=this.devicePixelRatio;if(3>this.Ve&&(this.Dc||500<=d&&this.iq!=this.$b)){c.clearRect(0,0,g,k);var d=g/2,k=k/2,g=0===this.Ve&&this.Ue.ok.complete,l=40*e,t=0,
f=80*e,p;if(g){var A=this.Ue.ok,f=A.width*e;p=A.height*e;l=f/2;t=p/2;c.drawImage(A,sa(d-l),sa(k-t),f,p)}1>=this.Ve?(d=sa(d-l)+.5,k=sa(k+(t+(g?12*e:0)))+.5,c.fillStyle=a?"red":"DodgerBlue",c.fillRect(d,k,Math.floor(f*this.$b),6*e),c.strokeStyle="black",c.strokeRect(d,k,f,6*e),c.strokeStyle="white",c.strokeRect(d-1*e,k-1*e,f+2*e,8*e)):2===this.Ve&&(c.font=this.kd?"12pt ArialMT":"12pt Arial",c.fillStyle=a?"#f00":"#999",c.Zz="middle",e=Math.round(100*this.$b)+"%",g=c.measureText?c.measureText(e):null,
c.fillText(e,d-(g?g.width:0)/2,k));this.iq=this.$b}else if(4===this.Ve){this.sv(c);b?b(function(){h.go()}):setTimeout(function(){h.go()},16);return}}setTimeout(function(){h.go()},this.Dc?10:100)}}};var K=-1,h="undefined"===typeof cr_is_preview?200:0,t=!0,A=!1,Z=0,S=0,Q="undefined"===typeof cr_is_preview?3E3:0,L=null,w=null,F=0;f.prototype.sv=function(b){if(!r){for(var c=Math.ceil(this.width),e=Math.ceil(this.height),d=this.Ue.ok,g=this.Ue.Tx,k=this.Ue.Jy,l=0;4>l;++l)if(!d[l].complete||!g[l].complete||
!k[l].complete)return;0===F&&(K=Date.now());var l=Date.now(),f=!1,p=b,m,n;t||A?(b.clearRect(0,0,c,e),L&&L.width===c&&L.height===e||(L=document.createElement("canvas"),L.width=c,L.height=e,w=L.getContext("2d")),p=w,f=!0,t&&1===F&&(K=Date.now())):b.globalAlpha=1;p.fillStyle="#333333";p.fillRect(0,0,c,e);256<this.uh?(m=Ha(.22*e,105,.6*c),n=.25*m,p.drawImage(q(g,m),.5*c-m/2,.2*e-n/2,m,n),n=m=Math.min(.395*e,.95*c),p.drawImage(q(d,m),.5*c-m/2,.485*e-n/2,m,n),m=Ha(.22*e,105,.6*c),n=.25*m,p.drawImage(q(k,
m),.5*c-m/2,.868*e-n/2,m,n),p.fillStyle="#3C3C3C",m=c,n=Math.max(.005*e,2),p.fillRect(0,.8*e-n/2,m,n),p.fillStyle=a?"red":"#E0FF65",m=c*this.$b,p.fillRect(.5*c-m/2,.8*e-n/2,m,n)):(n=m=.55*e,p.drawImage(q(d,m),.5*c-m/2,.45*e-n/2,m,n),p.fillStyle="#3C3C3C",m=c,n=Math.max(.005*e,2),p.fillRect(0,.85*e-n/2,m,n),p.fillStyle=a?"red":"#E0FF65",m=c*this.$b,p.fillRect(.5*c-m/2,.85*e-n/2,m,n));f&&(t?b.globalAlpha=0===F?0:Math.min((l-K)/300,1):A&&(b.globalAlpha=Math.max(1-(l-S)/300,0)),b.drawImage(L,0,0,c,e));
t&&300<=l-K&&2<=F&&(t=!1,Z=l);!t&&l-Z>=Q&&!A&&1<=this.$b&&(A=!0,S=l);if(A&&l-S>=300+h||"undefined"!==typeof cr_is_preview&&1<=this.$b&&500>Date.now()-K)r=!0,A=t=!1,this.Ue=w=L=null;++F}};f.prototype.Lw=function(){this.yb&&(this.canvas.parentNode.removeChild(this.yb),this.yb=this.mn=null);this.Zk=Date.now();this.Ef=$a();var a,b,c;if(this.eo)for(a=0,b=this.m.length;a<b;a++)c=this.m[a],c.F||c.Jm||!c.da.Qe||c.V();else this.zg=!1;a=0;for(b=this.ld.length;a<b;a++)this.ld[a].Ru();2<=this.Xb&&(a=this.cb/
this.bb,b=this.width/this.height,this.nh=2!==this.Xb&&b>a||2===this.Xb&&b<a?this.height/this.bb:this.width/this.cb);this.Ap?this.Rm[this.Ap].Mn():this.ld[0].Mn();this.eo||(this.lk=1,this.trigger(P.prototype.e.Bo,null),window.C2_RegisterSW&&window.C2_RegisterSW());navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();a=0;for(b=this.m.length;a<b;a++)c=this.m[a],c.Sq&&c.Sq();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):
this.mb(!1);this.ub&&AppMobi.webview.execute("onGameReady();")};f.prototype.mb=function(a,c,e){if(this.fa){var d=$a();if(e||!this.Mh||a){a||(b?this.xn=b(this.Zr):this.Tn=setTimeout(this.Zr,this.Pe?1:16));c=c||d;var h=this.Xb;((e=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.Ec)||this.Wj)&&0<this.mg&&(h=this.mg);if(0<h){var h=window.innerWidth,g=window.innerHeight;this.Bg===h&&this.Ag===g||this.setSize(h,g)}this.Oa||(e?this.yj||(this.yj=
!0):this.yj?(this.yj=!1,0===this.Xb&&this.setSize(Math.round(this.Rq/this.devicePixelRatio),Math.round(this.Qq/this.devicePixelRatio),!0)):(this.Rq=this.width,this.Qq=this.height));this.zg&&(e=this.Yo(),this.lk=this.$b,e&&(this.zg=!1,this.$b=1,this.trigger(P.prototype.e.Bo,null),window.C2_RegisterSW&&window.C2_RegisterSW()));this.ox(c);!this.pa&&!this.Dc||this.Lm||this.Di||a||(this.pa=!1,this.u?this.Wb():this.Sc(),this.Bi&&(this.canvas&&this.canvas.toDataURL&&(this.Rr=this.canvas.toDataURL(this.Bi[0],
this.Bi[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.Rr),this.trigger(P.prototype.e.qt,null)),this.Bi=null));this.Hz||(this.Pd++,this.sf++,this.Dj++);this.ei+=$a()-d}}};f.prototype.ox=function(a){var b,c,e,d,h,g,k,l;1E3<=a-this.Ef&&(this.Ef+=1E3,1E3<=a-this.Ef&&(this.Ef=a),this.gm=this.Dj,this.Dj=0,this.Ol=this.ei,this.ei=0);b=0;0!==this.ck&&(b=a-this.ck,0>b&&(b=0),this.of=b/=1E3,.5<this.of?this.of=0:this.of>1/this.Gq&&(this.of=1/this.Gq));this.ck=a;this.Ke=this.of*this.Sf;this.ib.add(this.Ke);
this.we.add(b);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.Wj)&&!this.Ec;2<=this.Xb||a&&0<this.mg?(b=this.cb/this.bb,c=this.width/this.height,e=this.Xb,a&&0<this.mg&&(e=this.mg),this.nh=2!==e&&c>b||2===e&&c<b?this.height/this.bb:this.width/this.cb,this.fa&&(this.fa.Ar(this.fa.scrollX),this.fa.Br(this.fa.scrollY))):this.nh=this.Af?this.devicePixelRatio:1;this.Cb();this.Fc++;this.Od.fy();this.Fc--;this.Cb();this.Fc++;c=this.Pq.cf();
a=0;for(b=c.length;a<b;a++)c[a].Sz();a=0;for(b=this.m.length;a<b;a++)if(g=this.m[a],!g.F&&(g.Fa.length||g.Ca.length))for(c=0,e=g.d.length;c<e;c++)for(k=g.d[c],d=0,h=k.I.length;d<h;d++)k.I[d].mb();a=0;for(b=this.m.length;a<b;a++)if(g=this.m[a],!g.F&&(g.Fa.length||g.Ca.length))for(c=0,e=g.d.length;c<e;c++)for(k=g.d[c],d=0,h=k.I.length;d<h;d++)l=k.I[d],l.Sx&&l.Sx();c=this.dn.cf();a=0;for(b=c.length;a<b;a++)c[a].mb();this.Fc--;this.Mw();for(a=0;this.lf&&10>a++;)this.rp(this.lf);a=0;for(b=this.be.length;a<
b;a++)this.be[a].xm=!1;this.fa.qf&&this.fa.qf.Ua();y(this.rr);this.Qm=!1;this.Fc++;a=0;for(b=this.m.length;a<b;a++)if(g=this.m[a],!g.F&&(g.Fa.length||g.Ca.length))for(c=0,e=g.d.length;c<e;c++)for(k=g.d[c],d=0,h=k.I.length;d<h;d++)l=k.I[d],l.Sn&&l.Sn();c=this.en.cf();a=0;for(b=c.length;a<b;a++)c[a].Sn();this.Fc--};f.prototype.Kg=function(){var a,b,c,e,d,h,g,k,l;a=0;for(b=this.m.length;a<b;a++)if(g=this.m[a],!g.F)for(c=0,e=g.d.length;c<e;c++)if(k=g.d[c],k.Kg&&k.Kg(),k.I)for(d=0,h=k.I.length;d<h;d++)l=
k.I[d],l.Kg&&l.Kg()};f.prototype.rp=function(a){var b=this.fa;this.fa.wy();var c,e,d;if(this.u)for(c=0,e=this.m.length;c<e;c++)d=this.m[c],d.F||!d.Zn||d.global&&0!==d.d.length||-1!==a.Gh.indexOf(d)||d.Zn();b==a&&y(this.Od.jc);y(this.rr);this.tr(!0);a.Mn();this.tr(!1);this.Qm=this.pa=!0;this.Cb()};f.prototype.tr=function(a){var b,c,e,d,h,g,k,l,t;b=0;for(c=this.Fa.length;b<c;b++)e=this.Fa[b],a?e.ki&&e.ki():e.li&&e.li();b=0;for(c=this.m.length;b<c;b++)if(e=this.m[b],e.global||e.da.Vk)for(d=0,h=e.d.length;d<
h;d++)if(g=e.d[d],a?g.ki&&g.ki():g.li&&g.li(),g.I)for(k=0,l=g.I.length;k<l;k++)t=g.I[k],a?t.ki&&t.ki():t.li&&t.li()};f.prototype.Zg=function(a){this.dn.add(a)};f.prototype.zy=function(a){this.en.add(a)};f.prototype.km=function(a){return a&&-1!==a.ii?this.of*a.ii:this.Ke};f.prototype.Sc=function(){this.fa.Sc(this.Ga);this.ub&&this.Ga.present()};f.prototype.Wb=function(){this.xa&&(this.pf=1,this.fa.gg(this.u));this.fa.Wb(this.u);this.u.Wx()};f.prototype.xu=function(a){a&&this.Vl.push(a)};f.prototype.Ij=
function(a){a=a.toString();return this.me.hasOwnProperty(a)?this.me[a]:null};var I=[];f.prototype.ye=function(a){var b,c;b=a.type.name;var e=null;if(this.nf.hasOwnProperty(b)){if(e=this.nf[b],e.contains(a))return}else e=I.length?I.pop():new ca,this.nf[b]=e;e.add(a);this.Ne=!0;if(a.wb)for(b=0,c=a.siblings.length;b<c;b++)this.ye(a.siblings[b]);this.Im&&e.dh.push(a);this.Hm||(this.Fc++,this.trigger(Object.getPrototypeOf(a.type.da).e.ut,a),this.Fc--)};f.prototype.Cb=function(){if(this.Ne){var a,b,c,e,
d,h;this.Im=!0;c=0;for(d=this.gd.length;c<d;++c)for(a=this.gd[c],b=a.type,b.d.push(a),e=0,h=b.Ca.length;e<h;++e)b.Ca[e].d.push(a),b.Ca[e].Xg=!0;y(this.gd);this.ct();Za(this.nf);this.Ne=this.Im=!1}};f.prototype.ct=function(){for(var a in this.nf)this.nf.hasOwnProperty(a)&&this.zs(this.nf[a])};f.prototype.zs=function(a){var b=a.cf(),c=b[0].type,e,d,h,g,k,l;ab(c.d,a);c.Xg=!0;0===c.d.length&&(c.Xi=!1);e=0;for(d=c.Ca.length;e<d;++e)l=c.Ca[e],ab(l.d,a),l.Xg=!0;e=0;for(d=this.Od.jc.length;e<d;++e)if(k=this.Od.jc[e],
k.Nb.hasOwnProperty(c.index)&&ab(k.Nb[c.index].fe,a),!c.F)for(h=0,g=c.Ca.length;h<g;++h)l=c.Ca[h],k.Nb.hasOwnProperty(l.index)&&ab(k.Nb[l.index].fe,a);if(k=b[0].i){if(k.Lc)for(h=k.d,e=0,d=h.length;e<d;++e)g=h[e],a.contains(g)&&(g.ua(),k.zb.update(g,g.cc,null),g.cc.set(0,0,-1,-1));ab(k.d,a);k.wi(0)}for(e=0;e<b.length;++e)this.ys(b[e],c);a.clear();I.push(a);this.pa=!0};f.prototype.ys=function(a,b){var c,e,d;c=0;for(e=this.Vl.length;c<e;++c)this.Vl[c](a);a.Oc&&b.ph.update(a,a.Oc,null);(c=a.i)&&c.Qg(a,
!0);if(a.I)for(c=0,e=a.I.length;c<e;++c)d=a.I[c],d.Kf&&d.Kf(),d.behavior.bn.remove(a);this.Pq.remove(a);this.dn.remove(a);this.en.remove(a);a.Kf&&a.Kf();this.me.hasOwnProperty(a.uid.toString())&&delete this.me[a.uid.toString()];this.sk--;100>b.oj.length&&b.oj.push(a)};f.prototype.jj=function(a,b,c,e){if(a.F){var d=sa(Math.random()*a.Gg.length);return this.jj(a.Gg[d],b,c,e)}return a.Qc?this.Ie(a.Qc,b,!1,c,e,!1):null};var U=[];f.prototype.Ie=function(a,b,c,e,d,h){var g,k,l,t;if(!a)return null;var r=
this.m[a[1]],f=r.da.Qe;if(this.zg&&f&&!r.Jm||f&&!this.u&&11===a[0][11])return null;var p=b;f||(b=null);var m;r.oj.length?(m=r.oj.pop(),m.uc=!0,r.da.ta.call(m,r)):(m=new r.da.ta(r),m.uc=!1);!c||h||this.me.hasOwnProperty(a[2].toString())?m.uid=this.ji++:m.uid=a[2];this.me[m.uid.toString()]=m;m.or=this.Lq++;m.zf=r.d.length;g=0;for(k=this.gd.length;g<k;++g)this.gd[g].type===r&&m.zf++;m.Ch=Ib;m.toString=Jb;l=a[3];if(m.uc)Za(m.N);else{m.N={};if("undefined"!==typeof cr_is_preview)for(m.Tp=[],m.Tp.length=
l.length,g=0,k=l.length;g<k;g++)m.Tp[g]=l[g][1];m.Za=[];m.Za.length=l.length}g=0;for(k=l.length;g<k;g++)m.Za[g]=l[g][0];if(f){var A=a[0];m.x=ia(e)?A[0]:e;m.y=ia(d)?A[1]:d;m.z=A[2];m.width=A[3];m.height=A[4];m.depth=A[5];m.k=A[6];m.opacity=A[7];m.nc=A[8];m.oc=A[9];m.Db=A[10];g=A[11];!this.u&&r.J.length&&(m.Db=g);m.qh=ib(m.Db);this.q&&lb(m,m.Db,this.q);if(m.uc){g=0;for(k=A[12].length;g<k;g++)for(l=0,t=A[12][g].length;l<t;l++)m.Ha[g][l]=A[12][g][l];m.Ba.set(0,0,0,0);m.Oc.set(0,0,-1,-1);m.cc.set(0,0,
-1,-1);m.Lb.Ug(m.Ba);y(m.Hl)}else{m.Ha=A[12].slice(0);g=0;for(k=m.Ha.length;g<k;g++)m.Ha[g]=A[12][g].slice(0);m.ea=[];m.Be=[];m.Be.length=r.J.length;m.Ba=new wa(0,0,0,0);m.Oc=new wa(0,0,-1,-1);m.cc=new wa(0,0,-1,-1);m.Lb=new xa;m.Hl=[];m.Ka=Mb;m.zu=Nb;m.Eb=Ob;m.ua=Pb;m.ls=Qb;m.co=Rb;m.Ed=Sb}m.$g=!1;m.Cy=0;m.By=0;m.Ay=null;14===A.length&&(m.$g=!0,m.Cy=A[13][0],m.By=A[13][1],m.Ay=A[13][2]);g=0;for(k=r.J.length;g<k;g++)m.Be[g]=!0;m.qe=!0;m.sd=Tb;m.sd();m.ms=!!m.ea.length;m.cj=!0;m.Jl=!0;r.Wi=!0;m.visible=
!0;m.ii=-1;m.i=b;m.td=b.d.length;m.pf=0;"undefined"===typeof m.ja&&(m.ja=null);this.pa=m.yd=!0}var q;y(U);g=0;for(k=r.Ca.length;g<k;g++)U.push.apply(U,r.Ca[g].Fa);U.push.apply(U,r.Fa);if(m.uc)for(g=0,k=U.length;g<k;g++){var K=U[g];q=m.I[g];q.uc=!0;K.behavior.ta.call(q,K,m);A=a[4][g];l=0;for(t=A.length;l<t;l++)q.L[l]=A[l];q.V();K.behavior.bn.add(m)}else for(m.I=[],g=0,k=U.length;g<k;g++)K=U[g],q=new K.behavior.ta(K,m),q.uc=!1,q.L=a[4][g].slice(0),q.V(),m.I.push(q),K.behavior.bn.add(m);A=a[5];if(m.uc)for(g=
0,k=A.length;g<k;g++)m.L[g]=A[g];else m.L=A.slice(0);this.gd.push(m);this.Ne=!0;b&&(b.mh(m,!0),1!==b.Wc||1!==b.Xc)&&(r.Xi=!0);this.sk++;if(r.wb){if(m.wb=!0,m.uc?y(m.siblings):m.siblings=[],!c&&!h){g=0;for(k=r.lc.length;g<k;g++)if(r.lc[g]!==r){if(!r.lc[g].Qc)return null;m.siblings.push(this.Ie(r.lc[g].Qc,p,!1,f?m.x:e,f?m.y:d,!0))}g=0;for(k=m.siblings.length;g<k;g++)for(m.siblings[g].siblings.push(m),l=0;l<k;l++)g!==l&&m.siblings[g].siblings.push(m.siblings[l])}}else m.wb=!1,m.siblings=null;m.V();g=
0;for(k=m.I.length;g<k;g++)m.I[g].Rx&&m.I[g].Rx();return m};f.prototype.om=function(a){var b,c;b=0;for(c=this.fa.K.length;b<c;b++){var e=this.fa.K[b];if(nb(e.name,a))return e}return null};f.prototype.Ah=function(a){a=sa(a);0>a&&(a=0);a>=this.fa.K.length&&(a=this.fa.K.length-1);return this.fa.K[a]};f.prototype.Ml=function(a){var b,c;b=0;for(c=a.length;b<c;b++)a[b].O().W=!0};f.prototype.qi=function(a){var b,c;b=0;for(c=a.length;b<c;b++)a[b].qi()};f.prototype.Mf=function(a){var b,c;b=0;for(c=a.length;b<
c;b++)a[b].Mf()};f.prototype.Ld=function(a){var b,c;b=0;for(c=a.length;b<c;b++)a[b].Ld()};f.prototype.js=function(a){if(a.Wi){var b,c,e=a.d;b=0;for(c=e.length;b<c;++b)e[b].co();e=this.gd;b=0;for(c=e.length;b<c;++b)e[b].type===a&&e[b].co();a.Wi=!1}};f.prototype.jw=function(a,b,c,e){var d,h,g=a?1!==a.Wc||1!==a.Xc:!1;if(b.F)for(a=0,d=b.Gg.length;a<d;++a)h=b.Gg[a],g||h.Xi?Ca(e,h.d):(this.js(h),h.ph.Kk(c,e));else g||b.Xi?Ca(e,b.d):(this.js(b),b.ph.Kk(c,e))};f.prototype.cl=function(a,b,c){var e=a.O(),d,
h,g,k,l=this.Ia().Na.Ic,t,r,f;if(e.W)for(e.W=!1,y(e.d),d=0,k=a.d.length;d<k;d++)g=a.d[d],g.ua(),t=g.i.pb(b,c,!0),r=g.i.pb(b,c,!1),g.Eb(t,r)?e.d.push(g):l&&e.S.push(g);else{h=0;f=l?e.S:e.d;d=0;for(k=f.length;d<k;d++)g=f[d],g.ua(),t=g.i.pb(b,c,!0),r=g.i.pb(b,c,!1),g.Eb(t,r)&&(l?e.d.push(g):(e.d[h]=e.d[d],h++));f.length=h}a.Ud();return e.wm()};f.prototype.yy=function(a,b){if(!(a&&b&&a!==b&&a.yd&&b.yd))return!1;a.ua();b.ua();var c=a.i,e=b.i,d,h,g,k,l,t,r,f;if(c===e||c.Wc===e.Wc&&e.Xc===e.Xc&&c.scale===
e.scale&&c.k===e.k&&c.ud===e.ud){if(!a.Ba.Sw(b.Ba)||!a.Lb.Up(b.Lb)||a.$g&&b.$g)return!1;if(a.$g)return this.Vr(a,b);if(b.$g)return this.Vr(b,a);r=a.ja&&!a.ja.ug();d=b.ja&&!b.ja.ug();if(!r&&!d)return!0;r?(a.ja.Zf(a.width,a.height,a.k),r=a.ja):(this.qd.Tg(a.Lb,a.x,a.y,a.width,a.height),r=this.qd);d?(b.ja.Zf(b.width,b.height,b.k),f=b.ja):(this.qd.Tg(b.Lb,b.x,b.y,b.width,b.height),f=this.qd);return r.Hh(f,b.x-a.x,b.y-a.y)}r=a.ja&&!a.ja.ug();d=b.ja&&!b.ja.ug();r?(a.ja.Zf(a.width,a.height,a.k),this.qd.Kr(a.ja)):
this.qd.Tg(a.Lb,a.x,a.y,a.width,a.height);r=this.qd;d?(b.ja.Zf(b.width,b.height,b.k),this.On.Kr(b.ja)):this.On.Tg(b.Lb,b.x,b.y,b.width,b.height);f=this.On;d=0;for(h=r.od;d<h;d++)g=2*d,k=g+1,l=r.fb[g],t=r.fb[k],r.fb[g]=c.Da(l+a.x,t+a.y,!0),r.fb[k]=c.Da(l+a.x,t+a.y,!1);r.ua();d=0;for(h=f.od;d<h;d++)g=2*d,k=g+1,l=f.fb[g],t=f.fb[k],f.fb[g]=e.Da(l+b.x,t+b.y,!0),f.fb[k]=e.Da(l+b.x,t+b.y,!1);f.ua();return r.Hh(f,0,0)};var V=new xa;new wa(0,0,0,0);var B=[];f.prototype.Vr=function(a,b){var c,e,d,h,g=b.Ba,
k=a.x,l=a.y;a.Fz(g,B);var t=b.ja&&!b.ja.ug();c=0;for(e=B.length;c<e;++c)if(d=B[c],h=d.Vz,g.Tw(h,k,l)&&(V.Ug(h),V.offset(k,l),V.Up(b.Lb)))if(t)if(b.ja.Zf(b.width,b.height,b.k),d.sn){if(d.sn.Hh(b.ja,b.x-(k+h.left),b.y-(l+h.top)))return y(B),!0}else{if(this.qd.Tg(V,0,0,h.right-h.left,h.bottom-h.top),this.qd.Hh(b.ja,b.x,b.y))return y(B),!0}else if(d.sn){if(this.qd.Tg(b.Lb,0,0,b.width,b.height),d.sn.Hh(this.qd,-(k+h.left),-(l+h.top)))return y(B),!0}else return y(B),!0;y(B);return!1};f.prototype.ds=function(a,
b){if(!b)return!1;var c,e,d,h,g;c=0;for(e=a.Fa.length;c<e;c++)if(a.Fa[c].behavior instanceof b)return!0;if(!a.F)for(c=0,e=a.Ca.length;c<e;c++)for(g=a.Ca[c],d=0,h=g.Fa.length;d<h;d++)if(g.Fa[d].behavior instanceof b)return!0;return!1};f.prototype.Xn=function(a){return this.ds(a,hc.fz)};f.prototype.Yn=function(a){return this.ds(a,hc.gz)};var D=-1;f.prototype.trigger=function(a,b,c){if(!this.fa)return!1;var e=this.fa.qf;if(!e)return!1;var d=!1,h,g,k;D++;var l=e.Tl;g=0;for(k=l.length;g<k;++g)h=this.as(a,
b,l[g],c),d=d||h;h=this.as(a,b,e,c);D--;return d||h};f.prototype.as=function(a,b,c,e){var d=!1,h,g,k,l;if(b)for(k=this.Vn(a,b,b.type.name,c,e),d=d||k,l=b.type.Ca,h=0,g=l.length;h<g;++h)k=this.Vn(a,b,l[h].name,c,e),d=d||k;else k=this.Vn(a,b,"system",c,e),d=d||k;return d};f.prototype.Vn=function(a,b,c,e,d){var h,g=!1,k=!1,k="undefined"!==typeof d,l=(k?e.wp:e.bs)[c];if(!l)return g;var t=null;e=0;for(h=l.length;e<h;++e)if(l[e].method==a){t=l[e].wh;break}if(!t)return g;var r;k?r=t[d]:r=t;if(!r)return null;
e=0;for(h=r.length;e<h;e++)a=r[e][0],d=r[e][1],k=this.$v(b,c,a,d),g=g||k;return g};f.prototype.$v=function(a,b,c,e){var d,h,g=!1;this.Wn++;var k=this.Ia().Na;k&&this.qi(k.$e);var l=1<this.Wn;this.qi(c.$e);l&&this.Yx();var t=this.Jk(c);t.Na=c;a&&(d=this.types[b].O(),d.W=!1,y(d.d),d.d[0]=a,this.types[b].Ud());a=!0;if(c.parent){b=t.Ur;for(d=c.parent;d;)b.push(d),d=d.parent;b.reverse();d=0;for(h=b.length;d<h;d++)if(!b[d].hy()){a=!1;break}}a&&(this.sf++,c.Ic?c.gy(e):c.Ua(),g=g||t.Df);this.Fk();l&&this.Qx();
this.Ld(c.$e);k&&this.Ld(k.$e);this.Ne&&0===this.Fc&&0===D&&!this.Km&&this.Cb();this.Wn--;return g};f.prototype.Gj=function(){var a=this.Ia();return a.Na.Wa[a.Qa]};f.prototype.Yw=function(){return 0===this.Ia().Qa};f.prototype.kw=function(){var a=this.Ia();return a.Na.Mc[a.Qb]};f.prototype.Yx=function(){this.nk++;this.nk>=this.Xm.length&&this.Xm.push([])};f.prototype.Qx=function(){this.nk--};f.prototype.Ep=function(){return this.Xm[this.nk]};f.prototype.Jk=function(a){this.tj++;this.tj>=this.Yl.length&&
this.Yl.push(new Ub);var b=this.Ia();b.reset(a);return b};f.prototype.Fk=function(){this.tj--};f.prototype.Ia=function(){return this.Yl[this.tj]};f.prototype.pr=function(a){this.gi++;this.gi>=this.fi.length&&this.fi.push(aa({name:a,index:0,Ma:!1}));var b=this.Fp();b.name=a;b.index=0;b.Ma=!1;return b};f.prototype.kr=function(){this.gi--};f.prototype.Fp=function(){return this.fi[this.gi]};f.prototype.Hp=function(a,b){for(var c,e,d,h,g,k;b;){c=0;for(e=b.$c.length;c<e;c++)if(k=b.$c[c],k instanceof Vb&&
nb(a,k.name))return k;b=b.parent}c=0;for(e=this.be.length;c<e;c++)for(g=this.be[c],d=0,h=g.Le.length;d<h;d++)if(k=g.Le[d],k instanceof Vb&&nb(a,k.name))return k;return null};f.prototype.Kp=function(a){var b,c;b=0;for(c=this.ld.length;b<c;b++)if(this.ld[b].X===a)return this.ld[b];return null};f.prototype.Jj=function(a){var b,c;b=0;for(c=this.m.length;b<c;b++)if(this.m[b].X===a)return this.m[b];return null};f.prototype.ow=function(a){var b,c;b=0;for(c=this.Fe.length;b<c;b++)if(this.Fe[b].X===a)return this.Fe[b];
return null};f.prototype.Wu=function(a,b){this.Bi=[a,b];this.pa=!0};f.prototype.Mw=function(){var a=this,b=this.Fn,c=this.je,e=this.hk,d=!1;this.Pr&&(d=!0,b="__c2_continuouspreview",this.Pr=!1);if(b.length){this.Cb();c=this.ly();if(n()&&!this.Dc)m(b,c,function(){ga("Saved state to IndexedDB storage ("+c.length+" bytes)");a.je=c;a.trigger(P.prototype.e.ul,null);c=a.je="";d&&p()},function(e){try{localStorage.setItem("__c2save_"+b,c),ga("Saved state to WebStorage ("+c.length+" bytes)"),a.je=c,a.trigger(P.prototype.e.ul,
null),c=a.je="",d&&p()}catch(h){ga("Failed to save game state: "+e+"; "+h),a.trigger(P.prototype.e.Go,null)}});else try{localStorage.setItem("__c2save_"+b,c),ga("Saved state to WebStorage ("+c.length+" bytes)"),a.je=c,this.trigger(P.prototype.e.ul,null),c=a.je="",d&&p()}catch(h){ga("Error saving to WebStorage: "+h),a.trigger(P.prototype.e.Go,null)}this.hk=this.Fn="";this.ab=null}if(e.length){if(n()&&!this.Dc)v(e,function(b){b?(a.ab=b,ga("Loaded state from IndexedDB storage ("+a.ab.length+" bytes)")):
(a.ab=localStorage.getItem("__c2save_"+e)||"",ga("Loaded state from WebStorage ("+a.ab.length+" bytes)"));a.Di=!1;a.ab||(a.ab=null,a.trigger(P.prototype.e.Qi,null))},function(){a.ab=localStorage.getItem("__c2save_"+e)||"";ga("Loaded state from WebStorage ("+a.ab.length+" bytes)");a.Di=!1;a.ab||(a.ab=null,a.trigger(P.prototype.e.Qi,null))});else{try{this.ab=localStorage.getItem("__c2save_"+e)||"",ga("Loaded state from WebStorage ("+this.ab.length+" bytes)")}catch(g){this.ab=null}this.Di=!1;a.ab||(a.ab=
null,a.trigger(P.prototype.e.Qi,null))}this.Fn=this.hk=""}null!==this.ab&&(this.Cb(),this.nx(this.ab)?(this.je=this.ab,this.trigger(P.prototype.e.Dt,null),this.je=""):a.trigger(P.prototype.e.Qi,null),this.ab=null)};f.prototype.ly=function(){var a,b,e,d,h,g,k,l={c2save:!0,version:1,rt:{time:this.ib.Y,walltime:this.we.Y,timescale:this.Sf,tickcount:this.Pd,execcount:this.sf,next_uid:this.ji,running_layout:this.fa.X,start_time_offset:Date.now()-this.Zk},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},
vars:{}}};a=0;for(b=this.m.length;a<b;a++)if(h=this.m[a],!h.F&&!this.Xn(h)){g={instances:[]};Ya(h.N)&&(g.ex=c(h.N));e=0;for(d=h.d.length;e<d;e++)g.instances.push(this.En(h.d[e]));l.types[h.X.toString()]=g}a=0;for(b=this.ld.length;a<b;a++)e=this.ld[a],l.layouts[e.X.toString()]=e.Ib();d=l.events.groups;a=0;for(b=this.Fe.length;a<b;a++)e=this.Fe[a],d[e.X.toString()]=this.pg[e.Dh].wf;b=l.events.cnds;for(k in this.He)this.He.hasOwnProperty(k)&&(a=this.He[k],Ya(a.N)&&(b[k]={ex:c(a.N)}));b=l.events.acts;
for(k in this.Ce)this.Ce.hasOwnProperty(k)&&(a=this.Ce[k],Ya(a.N)&&(b[k]={ex:c(a.N)}));b=l.events.vars;for(k in this.eh)this.eh.hasOwnProperty(k)&&(a=this.eh[k],a.ak||a.parent&&!a.Ph||(b[k]=a.data));l.system=this.Od.Ib();return JSON.stringify(l)};f.prototype.qr=function(){var a,b,c,e,d,h;this.me={};a=0;for(b=this.m.length;a<b;a++)if(c=this.m[a],!c.F)for(e=0,d=c.d.length;e<d;e++)h=c.d[e],this.me[h.uid.toString()]=h};f.prototype.nx=function(a){var b;try{b=JSON.parse(a)}catch(c){return!1}if(!b.c2save||
1<b.version)return!1;this.Jh=!0;a=b.rt;this.ib.reset();this.ib.Y=a.time;this.we.reset();this.we.Y=a.walltime||0;this.Sf=a.timescale;this.Pd=a.tickcount;this.sf=a.execcount;this.Zk=Date.now()-a.start_time_offset;var e=a.running_layout;if(e!==this.fa.X)if(e=this.Kp(e))this.rp(e);else return;var d,h,g,k,l,t,r;t=b.types;for(h in t)if(t.hasOwnProperty(h)&&(k=this.Jj(parseInt(h,10)))&&!k.F&&!this.Xn(k)){t[h].ex?k.N=t[h].ex:Za(k.N);l=k.d;g=t[h].instances;e=0;for(d=qa(l.length,g.length);e<d;e++)this.ik(l[e],
g[e]);e=g.length;for(d=l.length;e<d;e++)this.ye(l[e]);e=l.length;for(d=g.length;e<d;e++){l=null;if(k.da.Qe&&(l=this.fa.Hj(g[e].w.l),!l))continue;l=this.Ie(k.Qc,l,!1,0,0,!0);this.ik(l,g[e])}k.Xg=!0}this.Cb();this.qr();d=b.layouts;for(h in d)d.hasOwnProperty(h)&&(e=this.Kp(parseInt(h,10)))&&e.Zb(d[h]);d=b.events.groups;for(h in d)d.hasOwnProperty(h)&&(e=this.ow(parseInt(h,10)))&&this.pg[e.Dh]&&this.pg[e.Dh].ti(d[h]);e=b.events.cnds;for(h in this.He)this.He.hasOwnProperty(h)&&(e.hasOwnProperty(h)?this.He[h].N=
e[h].ex:this.He[h].N={});e=b.events.acts;for(h in this.Ce)this.Ce.hasOwnProperty(h)&&(e.hasOwnProperty(h)?this.Ce[h].N=e[h].ex:this.Ce[h].N={});e=b.events.vars;for(h in e)e.hasOwnProperty(h)&&this.eh.hasOwnProperty(h)&&(this.eh[h].data=e[h]);this.ji=a.next_uid;this.Jh=!1;e=0;for(d=this.xj.length;e<d;++e)l=this.xj[e],this.trigger(Object.getPrototypeOf(l.type.da).e.Wf,l);y(this.xj);this.Od.Zb(b.system);e=0;for(d=this.m.length;e<d;e++)if(k=this.m[e],!k.F&&!this.Xn(k))for(b=0,h=k.d.length;b<h;b++){l=
k.d[b];if(k.wb)for(t=l.Ch(),y(l.siblings),a=0,g=k.lc.length;a<g;a++)r=k.lc[a],k!==r&&l.siblings.push(r.d[t]);l.De&&l.De();if(l.I)for(a=0,g=l.I.length;a<g;a++)t=l.I[a],t.De&&t.De()}return this.pa=!0};f.prototype.En=function(a,b){var e,d,h,g,k;g=a.type;h=g.da;var l={};b?l.c2=!0:l.uid=a.uid;Ya(a.N)&&(l.ex=c(a.N));if(a.Za&&a.Za.length)for(l.ivs={},e=0,d=a.Za.length;e<d;e++)l.ivs[a.type.Fm[e].toString()]=a.Za[e];if(h.Qe){h={x:a.x,y:a.y,w:a.width,h:a.height,l:a.i.X,zi:a.Ed()};0!==a.k&&(h.a=a.k);1!==a.opacity&&
(h.o=a.opacity);.5!==a.nc&&(h.hX=a.nc);.5!==a.oc&&(h.hY=a.oc);0!==a.Db&&(h.bm=a.Db);a.visible||(h.v=a.visible);a.yd||(h.ce=a.yd);-1!==a.ii&&(h.mts=a.ii);if(g.J.length)for(h.fx=[],e=0,d=g.J.length;e<d;e++)k=g.J[e],h.fx.push({name:k.name,active:a.Be[k.index],params:a.Ha[k.index]});l.w=h}if(a.I&&a.I.length)for(l.behs={},e=0,d=a.I.length;e<d;e++)g=a.I[e],g.Ib&&(l.behs[g.type.X.toString()]=g.Ib());a.Ib&&(l.data=a.Ib());return l};f.prototype.qw=function(a,b){var c,e;c=0;for(e=a.Fm.length;c<e;c++)if(a.Fm[c]===
b)return c;return-1};f.prototype.iw=function(a,b){var c,e;c=0;for(e=a.I.length;c<e;c++)if(a.I[c].type.X===b)return c;return-1};f.prototype.ik=function(a,b,c){var e,d,h,g,k;k=a.type;var l=k.da;if(c){if(!b.c2)return}else a.uid=b.uid;b.ex?a.N=b.ex:Za(a.N);if(d=b.ivs)for(e in d)d.hasOwnProperty(e)&&(h=this.qw(k,parseInt(e,10)),0>h||h>=a.Za.length||(g=d[e],null===g&&(g=NaN),a.Za[h]=g));if(l.Qe){h=b.w;a.i.X!==h.l&&(d=a.i,a.i=this.fa.Hj(h.l),a.i?(d.Qg(a,!0),a.i.mh(a,!0),a.Ka(),a.i.wi(0)):(a.i=d,c||this.ye(a)));
a.x=h.x;a.y=h.y;a.width=h.w;a.height=h.h;a.td=h.zi;a.k=h.hasOwnProperty("a")?h.a:0;a.opacity=h.hasOwnProperty("o")?h.o:1;a.nc=h.hasOwnProperty("hX")?h.hX:.5;a.oc=h.hasOwnProperty("hY")?h.hY:.5;a.visible=h.hasOwnProperty("v")?h.v:!0;a.yd=h.hasOwnProperty("ce")?h.ce:!0;a.ii=h.hasOwnProperty("mts")?h.mts:-1;a.Db=h.hasOwnProperty("bm")?h.bm:0;a.qh=ib(a.Db);this.q&&lb(a,a.Db,this.q);a.Ka();if(h.hasOwnProperty("fx"))for(c=0,d=h.fx.length;c<d;c++)g=k.mm(h.fx[c].name),0>g||(a.Be[g]=h.fx[c].active,a.Ha[g]=
h.fx[c].params);a.sd()}if(k=b.behs)for(e in k)k.hasOwnProperty(e)&&(c=this.iw(a,parseInt(e,10)),0>c||a.I[c].Zb(k[e]));b.data&&a.Zb(b.data)};f.prototype.xp=function(a,b,c){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+"www/"+a,function(a){a.file(b,c)},c)};f.prototype.aw=function(a,b){this.xp("data.js",function(c){var e=new FileReader;e.onload=function(b){a(b.target.result)};e.onerror=b;e.readAsText(c)},b)};var O=[],ka=0;f.prototype.$m=function(){if(O.length&&!(8<=ka)){ka++;var a=
O.shift();this.Yu(a.filename,a.xy,a.xv)}};f.prototype.yp=function(a,b,c){var e=this;O.push({filename:a,xy:function(a){ka--;e.$m();b(a)},xv:function(a){ka--;e.$m();c(a)}});this.$m()};f.prototype.Yu=function(a,b,c){this.xp(a,function(a){var c=new FileReader;c.onload=function(a){b(a.target.result)};c.readAsArrayBuffer(a)},c)};f.prototype.bw=function(a,b,c){var e="",d=a.toLowerCase(),h=d.substr(d.length-4),d=d.substr(d.length-5);".mp4"===h?e="video/mp4":".webm"===d?e="video/webm":".m4a"===h?e="audio/mp4":
".mp3"===h&&(e="audio/mpeg");this.yp(a,function(a){a=URL.createObjectURL(new Blob([a],{type:e}));b(a)},c)};f.prototype.Ww=function(a){return/^(?:[a-z]+:)?\/\//.test(a)||"data:"===a.substr(0,5)||"blob:"===a.substr(0,5)};f.prototype.Hr=function(a,b){this.Yj&&!this.Ww(b)?this.bw(b,function(b){a.src=b},function(a){alert("Failed to load image: "+a)}):a.src=b};f.prototype.Sk=function(a,b){"undefined"!==typeof a.imageSmoothingEnabled?a.imageSmoothingEnabled=b:(a.webkitImageSmoothingEnabled=b,a.mozImageSmoothingEnabled=
b,a.msImageSmoothingEnabled=b)};Wb=function(a){return new f(document.getElementById(a))};Xb=function(a,b){return new f({dc:!0,width:a,height:b})};window.cr_createRuntime=Wb;window.cr_createDCRuntime=Xb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.gf=!0;document.body.appendChild(a);a=new f(a);window.c2runtime=a;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,
window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a};window.createEjectaRuntime=function(){var a=new f(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();window.cr_getC2Runtime=function(){var f=document.getElementById("c2canvas");return f?f.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(f,q){var n=window.cr_getC2Runtime();n&&n.Wu(f,q)};
window.cr_sizeCanvas=function(f,q){if(0!==f&&0!==q){var n=window.cr_getC2Runtime();n&&n.setSize(f,q)}};window.cr_setSuspended=function(f){var q=window.cr_getC2Runtime();q&&q.setSuspended(f)};
(function(){function f(a,b){this.b=a;this.qf=null;this.scrollX=this.b.cb/2;this.scrollY=this.b.bb/2;this.scale=1;this.k=0;this.lg=!0;this.name=b[0];this.Kx=b[1];this.Jx=b[2];this.width=b[1];this.height=b[2];this.es=b[3];this.Nr=b[4];this.X=b[5];var c=b[6],d,l;this.K=[];this.Gh=[];d=0;for(l=c.length;d<l;d++){var r=new Yb(this,c[d]);r.Nq=d;this.K.push(r)}c=b[7];this.Oe=[];d=0;for(l=c.length;d<l;d++){var r=c[d],f=this.b.m[r[1]];f.Qc||(f.Qc=r);this.Oe.push(r);-1===this.Gh.indexOf(f)&&this.Gh.push(f)}this.J=
[];this.ea=[];this.qe=!0;this.Ha=[];d=0;for(l=b[8].length;d<l;d++)this.J.push({id:b[8][d][0],name:b[8][d][1],Va:-1,nd:!1,gb:!0,index:d}),this.Ha.push(b[8][d][2].slice(0));this.sd();this.Pg=new wa(0,0,1,1);this.yn=new wa(0,0,1,1);this.Xe={}}function q(a,b){return a.td-b.td}function n(a,b){this.jb=a;this.b=a.b;this.d=[];this.scale=1;this.k=0;this.$d=!1;this.te=new wa(0,0,0,0);this.$r=new xa;this.qa=this.na=this.ra=this.ma=0;this.Tf=!1;this.xe=-1;this.Nl=0;this.name=b[0];this.index=b[1];this.X=b[2];
this.visible=b[3];this.ed=b[4];this.rd=b[5];this.Wc=b[6];this.Xc=b[7];this.opacity=b[8];this.Cj=b[9];this.Lc=b[10];this.ud=b[11];this.Db=b[12];this.tv=b[13];this.qh="source-over";this.Gb=this.Jb=0;this.zb=null;this.ke=u();this.pd=!0;this.Cg=new wa(0,0,-1,-1);this.rb=new wa(0,0,-1,-1);this.Lc&&(this.zb=new hb(this.b.cb,this.b.bb));this.Md=!1;var c=b[14],d,l;this.Sr=[];this.Cc=[];this.sh=[];d=0;for(l=c.length;d<l;d++){var r=c[d],f=this.b.m[r[1]];f.Qc||(f.Qc=r,f.Tu=this.index);this.Cc.push(r);-1===this.jb.Gh.indexOf(f)&&
this.jb.Gh.push(f)}Ba(this.Sr,this.Cc);this.J=[];this.ea=[];this.qe=!0;this.Ha=[];d=0;for(l=b[15].length;d<l;d++)this.J.push({id:b[15][d][0],name:b[15][d][1],Va:-1,nd:!1,gb:!0,index:d}),this.Ha.push(b[15][d][2].slice(0));this.sd();this.Pg=new wa(0,0,1,1);this.yn=new wa(0,0,1,1)}function u(){return c.length?c.pop():[]}function m(a){y(a);c.push(a)}f.prototype.ky=function(a){var b=a.type.X.toString();this.Xe.hasOwnProperty(b)||(this.Xe[b]=[]);this.Xe[b].push(this.b.En(a))};f.prototype.Np=function(){var a=
this.K[0];return!a.rd&&1===a.opacity&&!a.Cj&&a.visible};f.prototype.sd=function(){y(this.ea);this.qe=!0;var a,b,c;a=0;for(b=this.J.length;a<b;a++)c=this.J[a],c.gb&&(this.ea.push(c),c.nd||(this.qe=!1))};f.prototype.lm=function(a){var b,c,d;b=0;for(c=this.J.length;b<c;b++)if(d=this.J[b],d.name===a)return d;return null};var v=[],p=!0;f.prototype.Mn=function(){this.Nr&&(this.qf=this.b.Zl[this.Nr],this.qf.$n());this.b.fa=this;this.width=this.Kx;this.height=this.Jx;this.scrollX=this.b.cb/2;this.scrollY=
this.b.bb/2;var a,b,c,d,l,r,f;a=0;for(c=this.b.m.length;a<c;a++)if(b=this.b.m[a],!b.F)for(l=b.d,b=0,d=l.length;b<d;b++)if(r=l[b],r.i){var h=r.i.Nq;h>=this.K.length&&(h=this.K.length-1);r.i=this.K[h];-1===r.i.d.indexOf(r)&&r.i.d.push(r);r.i.Tf=!0}if(!p)for(a=0,c=this.K.length;a<c;++a)this.K[a].d.sort(q);y(v);this.Iu();a=0;for(c=this.K.length;a<c;a++)r=this.K[a],r.Su(),r.kl();l=!1;if(!this.lg){for(f in this.Xe)if(this.Xe.hasOwnProperty(f)&&(b=this.b.Jj(parseInt(f,10)))&&!b.F&&this.b.Yn(b)){d=this.Xe[f];
a=0;for(c=d.length;a<c;a++){r=null;if(b.da.Qe&&(r=this.Hj(d[a].w.l),!r))continue;r=this.b.Ie(b.Qc,r,!1,0,0,!0);this.b.ik(r,d[a]);l=!0;v.push(r)}y(d)}a=0;for(c=this.K.length;a<c;a++)this.K[a].d.sort(q),this.K[a].Tf=!0}l&&(this.b.Cb(),this.b.qr());for(a=0;a<v.length;a++)if(r=v[a],r.type.wb)for(c=r.Ch(),b=0,d=r.type.lc.length;b<d;b++)f=r.type.lc[b],r.type!==f&&(f.d.length>c?r.siblings.push(f.d[c]):f.Qc&&(l=this.b.Ie(f.Qc,r.i,!0,r.x,r.y,!0),this.b.Cb(),f.il(),r.siblings.push(l),v.push(l)));a=0;for(c=
this.Oe.length;a<c;a++)r=this.Oe[a],b=this.b.m[r[1]],b.wb||this.b.Ie(this.Oe[a],null,!0);this.b.lf=null;this.b.Cb();if(this.b.Ga&&!this.b.Oa)for(a=0,c=this.b.m.length;a<c;a++)f=this.b.m[a],!f.F&&f.d.length&&f.tn&&f.tn(this.b.Ga);if(this.b.Jh)Ba(this.b.xj,v);else for(a=0,c=v.length;a<c;a++)r=v[a],this.b.trigger(Object.getPrototypeOf(r.type.da).e.Wf,r);y(v);this.b.Jh||this.b.trigger(P.prototype.e.Ao,null);this.lg=!1};f.prototype.Ru=function(){var a,b,c,d,l;b=a=0;for(c=this.Oe.length;a<c;a++)d=this.Oe[a],
l=this.b.m[d[1]],l.global?l.wb||this.b.Ie(d,null,!0):(this.Oe[b]=d,b++);Aa(this.Oe,b)};f.prototype.wy=function(){this.b.Jh||this.b.trigger(P.prototype.e.zo,null);this.b.Hm=!0;y(this.b.Od.jc);var a,b,c,d,l,r;if(!this.lg)for(a=0,b=this.K.length;a<b;a++)for(this.K[a].bo(),l=this.K[a].d,c=0,d=l.length;c<d;c++)r=l[c],r.type.global||this.b.Yn(r.type)&&this.ky(r);a=0;for(b=this.K.length;a<b;a++){l=this.K[a].d;c=0;for(d=l.length;c<d;c++)r=l[c],r.type.global||this.b.ye(r);this.b.Cb();y(l);this.K[a].Tf=!0}a=
0;for(b=this.b.m.length;a<b;a++)if(l=this.b.m[a],!(l.global||l.da.Qe||l.da.Vk||l.F)){c=0;for(d=l.d.length;c<d;c++)this.b.ye(l.d[c]);this.b.Cb()}p=!1;this.b.Hm=!1};new wa(0,0,0,0);f.prototype.Sc=function(a){var b,c=a,d=!1,l=!this.b.zc;l&&(this.b.gk||(this.b.gk=document.createElement("canvas"),b=this.b.gk,b.width=this.b.D,b.height=this.b.C,this.b.kq=b.getContext("2d"),d=!0),b=this.b.gk,c=this.b.kq,b.width!==this.b.D&&(b.width=this.b.D,d=!0),b.height!==this.b.C&&(b.height=this.b.C,d=!0),d&&this.b.Sk(c,
this.b.Ea));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.b.hp&&!this.Np()&&c.clearRect(0,0,this.b.D,this.b.C);var r,f,d=0;for(r=this.K.length;d<r;d++)f=this.K[d],f.visible&&0<f.opacity&&11!==f.Db&&(f.d.length||!f.rd)?f.Sc(c):f.kl();l&&a.drawImage(b,0,0,this.b.width,this.b.height)};f.prototype.gg=function(a){a.Gr(!0);this.b.Sa||(this.b.Sa=a.xc(this.b.D,this.b.C,this.b.Ea));if(this.b.Sa.kf!==this.b.D||this.b.Sa.jf!==this.b.C)a.deleteTexture(this.b.Sa),this.b.Sa=a.xc(this.b.D,this.b.C,
this.b.Ea);a.Zc(this.b.Sa);this.b.zc||a.oe(this.b.D,this.b.C);var b,c;for(b=this.K.length-1;0<=b;--b)c=this.K[b],c.visible&&1===c.opacity&&c.qe&&0===c.Db&&(c.d.length||!c.rd)?c.gg(a):c.kl();a.Gr(!1)};f.prototype.Wb=function(a){var b=0<this.ea.length||this.b.bh||!this.b.zc||this.b.xa;if(b){this.b.Sa||(this.b.Sa=a.xc(this.b.D,this.b.C,this.b.Ea));if(this.b.Sa.kf!==this.b.D||this.b.Sa.jf!==this.b.C)a.deleteTexture(this.b.Sa),this.b.Sa=a.xc(this.b.D,this.b.C,this.b.Ea);a.Zc(this.b.Sa);this.b.zc||a.oe(this.b.D,
this.b.C)}else this.b.Sa&&(a.Zc(null),a.deleteTexture(this.b.Sa),this.b.Sa=null);this.b.hp&&!this.Np()&&a.clear(0,0,0,0);var c,d,l;c=0;for(d=this.K.length;c<d;c++)l=this.K[c],l.visible&&0<l.opacity&&(l.d.length||!l.rd)?l.Wb(a):l.kl();b&&(0===this.ea.length||1===this.ea.length&&this.b.zc?(1===this.ea.length?(b=this.ea[0].index,a.gc(this.ea[0].Va),a.Sg(null,1/this.b.D,1/this.b.C,0,0,1,1,this.scale,this.k,0,0,this.b.D/2,this.b.C/2,this.b.ib.Y,this.Ha[b]),a.Ik(this.ea[0].Va)&&(this.b.pa=!0)):a.gc(0),
this.b.zc||a.oe(this.b.width,this.b.height),a.Zc(null),a.Er(!1),a.Pf(1),a.vc(this.b.Sa),a.Cr(),a.Yc(),a.Kc(),b=this.b.width/2,c=this.b.height/2,a.Og(-b,c,b,c,b,-c,-b,-c),a.vc(null),a.Er(!0)):this.zn(a,null,null,null))};f.prototype.Bh=function(){return 0<this.ea.length||this.b.bh||!this.b.zc||this.b.xa?this.b.Sa:null};f.prototype.Lp=function(){var a=this.K[0].Yb(),b,c,d;b=1;for(c=this.K.length;b<c;b++)d=this.K[b],(0!==d.Wc||0!==d.Xc)&&d.Yb()<a&&(a=d.Yb());return a};f.prototype.Ar=function(a){if(!this.es){var b=
1/this.Lp()*this.b.D/2;a>this.width-b&&(a=this.width-b);a<b&&(a=b)}this.scrollX!==a&&(this.scrollX=a,this.b.pa=!0)};f.prototype.Br=function(a){if(!this.es){var b=1/this.Lp()*this.b.C/2;a>this.height-b&&(a=this.height-b);a<b&&(a=b)}this.scrollY!==a&&(this.scrollY=a,this.b.pa=!0)};f.prototype.Iu=function(){this.Ar(this.scrollX);this.Br(this.scrollY)};f.prototype.zn=function(a,b,c,d){var l=c?c.ea:b?b.ea:this.ea,r=1,f=0,h=0,t=0,m=this.b.D,p=this.b.C;c?(r=c.i.Yb(),f=c.i.Ya(),h=c.i.ma,t=c.i.na,m=c.i.ra,
p=c.i.qa):b&&(r=b.Yb(),f=b.Ya(),h=b.ma,t=b.na,m=b.ra,p=b.qa);var q=this.b.hm,n,v,u,F,I=0,U=1,V,B,D=this.b.D,O=this.b.C,ka=D/2,z=O/2,G=b?b.Pg:this.Pg,x=b?b.yn:this.yn,N=0,E=0,J=0,H=0,R=D,ea=D,M=O,na=O,fa=u=0;F=c?c.i.Ya():0;if(c){n=0;for(v=l.length;n<v;n++)u+=a.vw(l[n].Va),fa+=a.ww(l[n].Va);H=c.Ba;N=b.Da(H.left,H.top,!0,!0);J=b.Da(H.left,H.top,!1,!0);R=b.Da(H.right,H.bottom,!0,!0);M=b.Da(H.right,H.bottom,!1,!0);0!==F&&(n=b.Da(H.right,H.top,!0,!0),v=b.Da(H.right,H.top,!1,!0),E=b.Da(H.left,H.bottom,!0,
!0),H=b.Da(H.left,H.bottom,!1,!0),F=Math.min(N,R,n,E),R=Math.max(N,R,n,E),N=F,F=Math.min(J,M,v,H),M=Math.max(J,M,v,H),J=F);N-=u;J-=fa;R+=u;M+=fa;x.left=N/D;x.top=1-J/O;x.right=R/D;x.bottom=1-M/O;E=N=sa(N);H=J=sa(J);ea=R=ta(R);na=M=ta(M);E-=u;H-=fa;ea+=u;na+=fa;0>N&&(N=0);0>J&&(J=0);R>D&&(R=D);M>O&&(M=O);0>E&&(E=0);0>H&&(H=0);ea>D&&(ea=D);na>O&&(na=O);G.left=N/D;G.top=1-J/O;G.right=R/D;G.bottom=1-M/O}else G.left=x.left=0,G.top=x.top=0,G.right=x.right=1,G.bottom=x.bottom=1;fa=c&&(a.oi(l[0].Va)||0!==
u||0!==fa||1!==c.opacity||c.type.da.Hq)||b&&!c&&1!==b.opacity;a.Cr();if(fa){q[I]||(q[I]=a.xc(D,O,this.b.Ea));if(q[I].kf!==D||q[I].jf!==O)a.deleteTexture(q[I]),q[I]=a.xc(D,O,this.b.Ea);a.gc(0);a.Zc(q[I]);B=na-H;a.clearRect(E,O-H-B,ea-E,B);c?c.Wb(a):(a.vc(this.b.$a),a.Pf(b.opacity),a.Yc(),a.translate(-ka,-z),a.Kc(),a.Ye(N,M,R,M,R,J,N,J,G));x.left=x.top=0;x.right=x.bottom=1;c&&(F=G.top,G.top=G.bottom,G.bottom=F);I=1;U=0}a.Pf(1);u=l.length-1;var Fa=a.vn(l[u].Va)||!b&&!c&&!this.b.zc;n=F=0;for(v=l.length;n<
v;n++){q[I]||(q[I]=a.xc(D,O,this.b.Ea));if(q[I].kf!==D||q[I].jf!==O)a.deleteTexture(q[I]),q[I]=a.xc(D,O,this.b.Ea);a.gc(l[n].Va);F=l[n].index;a.Ik(l[n].Va)&&(this.b.pa=!0);0!=n||fa?(a.Sg(d,1/D,1/O,x.left,x.top,x.right,x.bottom,r,f,h,t,(h+m)/2,(t+p)/2,this.b.ib.Y,c?c.Ha[F]:b?b.Ha[F]:this.Ha[F]),a.vc(null),n!==u||Fa?(a.Zc(q[I]),B=na-H,V=O-H-B,a.clearRect(E,V,ea-E,B)):(c?a.Ze(c.Jb,c.Gb):b&&a.Ze(b.Jb,b.Gb),a.Zc(d)),a.vc(q[U]),a.Yc(),a.translate(-ka,-z),a.Kc(),a.Ye(N,M,R,M,R,J,N,J,G),n!==u||Fa||a.vc(null)):
(a.Zc(q[I]),B=na-H,V=O-H-B,a.clearRect(E,V,ea-E,B),c?(c.qb&&c.qb.za?(V=c.qb.za,U=1/V.width,V=1/V.height):(U=1/c.width,V=1/c.height),a.Sg(d,U,V,x.left,x.top,x.right,x.bottom,r,f,h,t,(h+m)/2,(t+p)/2,this.b.ib.Y,c.Ha[F]),c.Wb(a)):(a.Sg(d,1/D,1/O,0,0,1,1,r,f,h,t,(h+m)/2,(t+p)/2,this.b.ib.Y,b?b.Ha[F]:this.Ha[F]),a.vc(b?this.b.$a:this.b.Sa),a.Yc(),a.translate(-ka,-z),a.Kc(),a.Ye(N,M,R,M,R,J,N,J,G)),x.left=x.top=0,x.right=x.bottom=1,c&&!Fa&&(F=M,M=J,J=F));I=0===I?1:0;U=0===I?1:0}Fa&&(a.gc(0),c?a.Ze(c.Jb,
c.Gb):b?a.Ze(b.Jb,b.Gb):this.b.zc||(a.oe(this.b.width,this.b.height),ka=this.b.width/2,z=this.b.height/2,J=N=0,R=this.b.width,M=this.b.height),a.Zc(d),a.vc(q[U]),a.Yc(),a.translate(-ka,-z),a.Kc(),c&&1===l.length&&!fa?a.Ye(N,J,R,J,R,M,N,M,G):a.Ye(N,M,R,M,R,J,N,J,G),a.vc(null))};f.prototype.Hj=function(a){var b,c;b=0;for(c=this.K.length;b<c;b++)if(this.K[b].X===a)return this.K[b];return null};f.prototype.Ib=function(){var a,b,c,d={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.k,w:this.width,h:this.height,
fv:this.lg,persist:this.Xe,fx:[],layers:{}};a=0;for(b=this.J.length;a<b;a++)c=this.J[a],d.fx.push({name:c.name,active:c.gb,params:this.Ha[c.index]});a=0;for(b=this.K.length;a<b;a++)c=this.K[a],d.layers[c.X.toString()]=c.Ib();return d};f.prototype.Zb=function(a){var b,c,d,l;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.k=a.a;this.width=a.w;this.height=a.h;this.Xe=a.persist;"undefined"!==typeof a.fv&&(this.lg=a.fv);var r=a.fx;b=0;for(c=r.length;b<c;b++)if(d=this.lm(r[b].name))d.gb=r[b].active,
this.Ha[d.index]=r[b].params;this.sd();b=a.layers;for(l in b)b.hasOwnProperty(l)&&(a=this.Hj(parseInt(l,10)))&&a.Zb(b[l])};Kb=f;n.prototype.sd=function(){y(this.ea);this.qe=!0;var a,b,c;a=0;for(b=this.J.length;a<b;a++)c=this.J[a],c.gb&&(this.ea.push(c),c.nd||(this.qe=!1))};n.prototype.lm=function(a){var b,c,d;b=0;for(c=this.J.length;b<c;b++)if(d=this.J[b],d.name===a)return d;return null};n.prototype.Su=function(){var a,b,c,d,l,r;b=a=0;for(c=this.Cc.length;a<c;a++){d=this.Cc[a];l=this.b.m[d[1]];r=
this.b.Yn(l);l=!0;if(!r||this.jb.lg){d=this.b.Ie(d,this,!0);if(!d)continue;v.push(d);d.type.global&&(l=!1,this.sh.push(d.uid))}l&&(this.Cc[b]=this.Cc[a],b++)}this.Cc.length=b;this.b.Cb();!this.b.u&&this.J.length&&(this.Db=this.tv);this.qh=ib(this.Db);this.b.q&&lb(this,this.Db,this.b.q);this.pd=!0};n.prototype.Qg=function(a,b){var c=Ea(this.d,a);0>c||(b&&this.Lc&&a.cc&&a.cc.right>=a.cc.left&&(a.ua(),this.zb.update(a,a.cc,null),a.cc.set(0,0,-1,-1)),c===this.d.length-1?this.d.pop():(za(this.d,c),this.wi(c)),
this.pd=!0)};n.prototype.mh=function(a,b){a.td=this.d.length;this.d.push(a);b&&this.Lc&&a.cc&&a.Ka();this.pd=!0};n.prototype.Vx=function(a){this.d.unshift(a);this.wi(0)};n.prototype.wx=function(a,b,c){var d=a.Ed();b=b.Ed();za(this.d,d);d<b&&b--;c&&b++;b===this.d.length?this.d.push(a):this.d.splice(b,0,a);this.wi(d<b?d:b)};n.prototype.wi=function(a){-1===this.xe?this.xe=a:a<this.xe&&(this.xe=a);this.pd=this.Tf=!0};n.prototype.bo=function(){if(this.Tf){-1===this.xe&&(this.xe=0);var a,b,c;if(this.Lc)for(a=
this.xe,b=this.d.length;a<b;++a)c=this.d[a],c.td=a,this.zb.rx(c.cc);else for(a=this.xe,b=this.d.length;a<b;++a)this.d[a].td=a;this.Tf=!1;this.xe=-1}};n.prototype.Yb=function(a){return this.rw()*(this.b.zc||a?this.b.nh:1)};n.prototype.rw=function(){return(this.scale*this.jb.scale-1)*this.ud+1};n.prototype.Ya=function(){return this.$d?0:Ka(this.jb.k+this.k)};var c=[],b=[],d=[];n.prototype.qm=function(){this.bo();this.zb.Kk(this.ma,this.na,this.ra,this.qa,d);if(!d.length)return u();if(1===d.length){var a=
u();Ba(a,d[0]);y(d);return a}for(var c=!0;1<d.length;){for(var a=d,k=void 0,g=void 0,l=void 0,r=void 0,f=void 0,k=0,g=a.length;k<g-1;k+=2){var l=a[k],r=a[k+1],f=u(),h=l,t=r,p=f,q=0,n=0,v=0,L=h.length,w=t.length,F=void 0,I=void 0;for(p.length=L+w;q<L&&n<w;++v)F=h[q],I=t[n],F.td<I.td?(p[v]=F,++q):(p[v]=I,++n);for(;q<L;++q,++v)p[v]=h[q];for(;n<w;++n,++v)p[v]=t[n];c||(m(l),m(r));b.push(f)}1===g%2&&(c?(l=u(),Ba(l,a[g-1]),b.push(l)):b.push(a[g-1]));Ba(a,b);y(b);c=!1}a=d[0];y(d);return a};n.prototype.Sc=
function(a){this.Md=this.Cj||1!==this.opacity||0!==this.Db;var b=this.b.canvas,c=a,d=!1;this.Md&&(this.b.fk||(this.b.fk=document.createElement("canvas"),b=this.b.fk,b.width=this.b.D,b.height=this.b.C,this.b.jq=b.getContext("2d"),d=!0),b=this.b.fk,c=this.b.jq,b.width!==this.b.D&&(b.width=this.b.D,d=!0),b.height!==this.b.C&&(b.height=this.b.C,d=!0),d&&this.b.Sk(c,this.b.Ea),this.rd&&c.clearRect(0,0,this.b.D,this.b.C));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.rd||(c.fillStyle="rgb("+
this.ed[0]+","+this.ed[1]+","+this.ed[2]+")",c.fillRect(0,0,this.b.D,this.b.C));c.save();this.$d=!0;var d=this.pb(0,0,!0,!0),l=this.pb(0,0,!1,!0);this.$d=!1;this.b.md&&(d=Math.round(d),l=Math.round(l));this.Nk(d,l,c);var r=this.Yb();c.scale(r,r);c.translate(-d,-l);this.Lc?(this.rb.left=this.zb.Ob(this.ma),this.rb.top=this.zb.Pb(this.na),this.rb.right=this.zb.Ob(this.ra),this.rb.bottom=this.zb.Pb(this.qa),this.pd||!this.rb.vh(this.Cg)?(m(this.ke),d=this.qm(),this.pd=!1,this.Cg.ag(this.rb)):d=this.ke):
d=this.d;for(var f,h=null,l=0,r=d.length;l<r;++l)f=d[l],f!==h&&(this.ov(f,c),h=f);this.Lc&&(this.ke=d);c.restore();this.Md&&(a.globalCompositeOperation=this.qh,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};n.prototype.ov=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.ua();var c=a.Ba;c.right<this.ma||c.bottom<this.na||c.left>this.ra||c.top>this.qa||(b.globalCompositeOperation=a.qh,a.Sc(b))}};n.prototype.kl=function(){this.$d=!0;var a=this.pb(0,0,!0,!0),b=this.pb(0,0,!1,!0);this.$d=!1;this.b.md&&
(a=Math.round(a),b=Math.round(b));this.Nk(a,b,null)};n.prototype.Nk=function(a,b,c){var d=this.Yb();this.ma=a;this.na=b;this.ra=a+1/d*this.b.D;this.qa=b+1/d*this.b.C;this.ma>this.ra&&(a=this.ma,this.ma=this.ra,this.ra=a);this.na>this.qa&&(a=this.na,this.na=this.qa,this.qa=a);a=this.Ya();0!==a&&(c&&(c.translate(this.b.D/2,this.b.C/2),c.rotate(-a),c.translate(this.b.D/-2,this.b.C/-2)),this.te.set(this.ma,this.na,this.ra,this.qa),this.te.offset((this.ma+this.ra)/-2,(this.na+this.qa)/-2),this.$r.Lr(this.te,
a),this.$r.bp(this.te),this.te.offset((this.ma+this.ra)/2,(this.na+this.qa)/2),this.ma=this.te.left,this.na=this.te.top,this.ra=this.te.right,this.qa=this.te.bottom)};n.prototype.gg=function(a){if(this.Md=this.Cj){this.b.$a||(this.b.$a=a.xc(this.b.D,this.b.C,this.b.Ea));if(this.b.$a.kf!==this.b.D||this.b.$a.jf!==this.b.C)a.deleteTexture(this.b.$a),this.b.$a=a.xc(this.b.D,this.b.C,this.b.Ea);a.Zc(this.b.$a)}this.$d=!0;var b=this.pb(0,0,!0,!0),c=this.pb(0,0,!1,!0);this.$d=!1;this.b.md&&(b=Math.round(b),
c=Math.round(c));this.Nk(b,c,null);b=this.Yb();a.Yc();a.scale(b,b);a.Ok(-this.Ya());a.translate((this.ma+this.ra)/-2,(this.na+this.qa)/-2);a.Kc();this.Lc?(this.rb.left=this.zb.Ob(this.ma),this.rb.top=this.zb.Pb(this.na),this.rb.right=this.zb.Ob(this.ra),this.rb.bottom=this.zb.Pb(this.qa),this.pd||!this.rb.vh(this.Cg)?(m(this.ke),b=this.qm(),this.pd=!1,this.Cg.ag(this.rb)):b=this.ke):b=this.d;for(var d,l=null,c=b.length-1;0<=c;--c)d=b[c],d!==l&&(this.qv(b[c],a),l=d);this.Lc&&(this.ke=b);this.rd||(this.Nl=
this.b.pf++,a.Tk(this.Nl),a.Dr(1,1,1),a.Bp(),a.dy())};n.prototype.Wb=function(a){var b=0,c=0;if(this.Md=this.Cj||1!==this.opacity||0<this.ea.length||0!==this.Db){this.b.$a||(this.b.$a=a.xc(this.b.D,this.b.C,this.b.Ea));if(this.b.$a.kf!==this.b.D||this.b.$a.jf!==this.b.C)a.deleteTexture(this.b.$a),this.b.$a=a.xc(this.b.D,this.b.C,this.b.Ea);a.Zc(this.b.$a);this.rd&&a.clear(0,0,0,0)}this.rd||(this.b.xa?(a.Tk(this.Nl),a.Dr(this.ed[0]/255,this.ed[1]/255,this.ed[2]/255),a.Bp(),a.ry()):a.clear(this.ed[0]/
255,this.ed[1]/255,this.ed[2]/255,1));this.$d=!0;var d=this.pb(0,0,!0,!0),b=this.pb(0,0,!1,!0);this.$d=!1;this.b.md&&(d=Math.round(d),b=Math.round(b));this.Nk(d,b,null);d=this.Yb();a.Yc();a.scale(d,d);a.Ok(-this.Ya());a.translate((this.ma+this.ra)/-2,(this.na+this.qa)/-2);a.Kc();this.Lc?(this.rb.left=this.zb.Ob(this.ma),this.rb.top=this.zb.Pb(this.na),this.rb.right=this.zb.Ob(this.ra),this.rb.bottom=this.zb.Pb(this.qa),this.pd||!this.rb.vh(this.Cg)?(m(this.ke),b=this.qm(),this.pd=!1,this.Cg.ag(this.rb)):
b=this.ke):b=this.d;var l,r,f=null,c=0;for(l=b.length;c<l;++c)r=b[c],r!==f&&(this.pv(b[c],a),f=r);this.Lc&&(this.ke=b);this.Md&&(b=this.ea.length?this.ea[0].Va:0,c=this.ea.length?this.ea[0].index:0,0===this.ea.length||1===this.ea.length&&!a.vn(b)&&1===this.opacity?(1===this.ea.length?(a.gc(b),a.Sg(this.jb.Bh(),1/this.b.D,1/this.b.C,0,0,1,1,d,this.Ya(),this.ma,this.na,(this.ma+this.ra)/2,(this.na+this.qa)/2,this.b.ib.Y,this.Ha[c]),a.Ik(b)&&(this.b.pa=!0)):a.gc(0),a.Zc(this.jb.Bh()),a.Pf(this.opacity),
a.vc(this.b.$a),a.Ze(this.Jb,this.Gb),a.Yc(),a.Kc(),d=this.b.D/2,b=this.b.C/2,a.Og(-d,b,d,b,d,-b,-d,-b),a.vc(null)):this.jb.zn(a,this,null,this.jb.Bh()))};n.prototype.pv=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.ua();var c=a.Ba;c.right<this.ma||c.bottom<this.na||c.left>this.ra||c.top>this.qa||(b.Tk(a.pf),a.ms?this.rv(a,b):(b.gc(0),b.Ze(a.Jb,a.Gb),a.Wb(b)))}};n.prototype.qv=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.ua();var c=a.Ba;c.right<this.ma||c.bottom<this.na||c.left>
this.ra||c.top>this.qa||(a.pf=this.b.pf++,0===a.Db&&1===a.opacity&&a.qe&&a.gg&&(b.Tk(a.pf),a.gg(b)))}};n.prototype.rv=function(a,b){var c=a.ea[0].Va,d=a.ea[0].index,l=this.Yb();if(1!==a.ea.length||b.vn(c)||b.Xx(c)||(a.k||a.i.Ya())&&b.oi(c)||1!==a.opacity||a.type.da.Hq)this.jb.zn(b,this,a,this.Md?this.b.$a:this.jb.Bh()),b.Yc(),b.scale(l,l),b.Ok(-this.Ya()),b.translate((this.ma+this.ra)/-2,(this.na+this.qa)/-2),b.Kc();else{b.gc(c);b.Ze(a.Jb,a.Gb);b.Ik(c)&&(this.b.pa=!0);var r=0,f=0,h=0,t=0;b.oi(c)&&
(t=a.Ba,r=this.Da(t.left,t.top,!0,!0),f=this.Da(t.left,t.top,!1,!0),h=this.Da(t.right,t.bottom,!0,!0),t=this.Da(t.right,t.bottom,!1,!0),r=r/windowWidth,f=1-f/windowHeight,h=h/windowWidth,t=1-t/windowHeight);var m;a.qb&&a.qb.za?(m=a.qb.za,c=1/m.width,m=1/m.height):(c=1/a.width,m=1/a.height);b.Sg(this.Md?this.b.$a:this.jb.Bh(),c,m,r,f,h,t,l,this.Ya(),this.ma,this.na,(this.ma+this.ra)/2,(this.na+this.qa)/2,this.b.ib.Y,a.Ha[d]);a.Wb(b)}};n.prototype.pb=function(a,b,c,d){var l=this.b.devicePixelRatio;
this.b.Af&&(a*=l,b*=l);var l=this.b.er,r=this.b.fr,l=(this.jb.scrollX-l)*this.Wc+l,r=(this.jb.scrollY-r)*this.Xc+r,f=l,h=r,t=1/this.Yb(!d);d?(f-=this.b.D*t/2,h-=this.b.C*t/2):(f-=this.b.width*t/2,h-=this.b.height*t/2);f+=a*t;h+=b*t;b=this.Ya();0!==b&&(f-=l,h-=r,a=Math.cos(b),b=Math.sin(b),d=f*a-h*b,h=h*a+f*b,f=d+l,h+=r);return c?f:h};n.prototype.Da=function(a,b,c,d){var l=this.b.er,f=this.b.fr,m=(this.jb.scrollX-l)*this.Wc+l,h=(this.jb.scrollY-f)*this.Xc+f,f=m,l=h,t=this.Ya();if(0!==t){a-=m;b-=h;
var p=Math.cos(-t),t=Math.sin(-t),q=a*p-b*t;b=b*p+a*t;a=q+m;b+=h}m=1/this.Yb(!d);d?(f-=this.b.D*m/2,l-=this.b.C*m/2):(f-=this.b.width*m/2,l-=this.b.height*m/2);f=(a-f)/m;l=(b-l)/m;a=this.b.devicePixelRatio;this.b.Af&&!d&&(f/=a,l/=a);return c?f:l};n.prototype.Ib=function(){var a,b,c,d={s:this.scale,a:this.k,vl:this.ma,vt:this.na,vr:this.ra,vb:this.qa,v:this.visible,bc:this.ed,t:this.rd,px:this.Wc,py:this.Xc,o:this.opacity,zr:this.ud,fx:[],cg:this.sh,instances:[]};a=0;for(b=this.J.length;a<b;a++)c=
this.J[a],d.fx.push({name:c.name,active:c.gb,params:this.Ha[c.index]});return d};n.prototype.Zb=function(a){var b,c,d;this.scale=a.s;this.k=a.a;this.ma=a.vl;this.na=a.vt;this.ra=a.vr;this.qa=a.vb;this.visible=a.v;this.ed=a.bc;this.rd=a.t;this.Wc=a.px;this.Xc=a.py;this.opacity=a.o;this.ud=a.zr;this.sh=a.cg||[];Ba(this.Cc,this.Sr);var l=new ca;b=0;for(d=this.sh.length;b<d;++b)l.add(this.sh[b]);c=b=0;for(d=this.Cc.length;b<d;++b)l.contains(this.Cc[b][2])||(this.Cc[c]=this.Cc[b],++c);Aa(this.Cc,c);c=
a.fx;b=0;for(d=c.length;b<d;b++)if(a=this.lm(c[b].name))a.gb=c[b].active,this.Ha[a.index]=c[b].params;this.sd();this.d.sort(q);this.Tf=!0};Yb=n})();
(function(){function f(a,b){var c,d=a.length;switch(d){case 0:return!0;case 1:return a[0]===b[0];case 2:return a[0]===b[0]&&a[1]===b[1];default:for(c=0;c<d;c++)if(a[c]!==b[c])return!1;return!0}}function q(a,b){return a.index-b.index}function n(a){var b,c,d,e;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(q);a.length>=l.length&&(l.length=a.length+1);l[a.length]||(l[a.length]=[]);e=l[a.length];b=0;for(c=e.length;b<c;b++)if(d=e[b],f(a,d))return d;e.push(a);return a}
function u(a,b){this.b=a;this.bs={};this.wp={};this.xm=!1;this.Pp=new ca;this.Tl=[];this.Fl=[];this.name=b[0];var c=b[1];this.Le=[];var d,e;d=0;for(e=c.length;d<e;d++)this.Rp(c[d],null,this.Le)}function m(a){this.type=a;this.d=[];this.S=[];this.W=!0}function v(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.aa=[];this.$e=[];this.Op=this.fl=this.Un=this.Pj=this.group=this.Kn=!1;this.Wa=[];this.Mc=[];this.$c=[];this.Dh="";this.wf=this.Pj=this.group=!1;this.hj=null;c[1]&&(this.Dh=c[1][1].toLowerCase(),
this.group=!0,this.Pj=!!c[1][0],this.hj=[],this.wf=this.Pj,this.b.Fe.push(this),this.b.pg[this.Dh]=this);this.Ic=c[2];this.X=c[4];this.group||(this.b.$o[this.X.toString()]=this);var d=c[5];a=0;for(b=d.length;a<b;a++){var e=new Zb(this,d[a]);e.index=a;this.Wa.push(e);this.Uo(e.type)}d=c[6];a=0;for(b=d.length;a<b;a++)e=new $b(this,d[a]),e.index=a,this.Mc.push(e);if(8===c.length)for(c=c[7],a=0,b=c.length;a<b;a++)this.sheet.Rp(c[a],this,this.$c);this.bk=!1;this.Wa.length&&(this.bk=null==this.Wa[0].type&&
this.Wa[0].sb==P.prototype.e.oo)}function p(a,b){var c,d,e;if(a&&(-1===b.indexOf(a)&&b.push(a),a.wb))for(c=0,d=a.lc.length;c<d;c++)e=a.lc[c],a!==e&&-1===b.indexOf(e)&&b.push(e)}function c(a,b){this.wc=a;this.sheet=a.sheet;this.b=a.b;this.R=[];this.Ja=[];this.N={};this.index=-1;this.kh=!1;this.sb=this.b.ze(b[1]);this.trigger=0<b[3];this.vp=2===b[3];this.Hd=b[4];this.Rj=b[5];this.jx=b[6];this.X=b[7];this.b.He[this.X.toString()]=this;-1===b[0]?(this.type=null,this.Ua=this.Dn,this.hf=null,this.fd=-1):
(this.type=this.b.m[b[0]],this.Ua=this.jx?this.iy:this.Cn,b[2]?(this.hf=this.type.Fj(b[2]),this.fd=this.type.jm(b[2])):(this.hf=null,this.fd=-1),this.wc.parent&&this.wc.parent.Uk());this.vp&&(this.Ua=this.jy);if(10===b.length){var c,d,e=b[9];c=0;for(d=e.length;c<d;c++){var g=new ac(this,e[c]);this.R.push(g)}this.Ja.length=e.length}}function b(a,b){this.wc=a;this.sheet=a.sheet;this.b=a.b;this.R=[];this.Ja=[];this.N={};this.index=-1;this.kh=!1;this.sb=this.b.ze(b[1]);-1===b[0]?(this.type=null,this.Ua=
this.Dn,this.hf=null,this.fd=-1):(this.type=this.b.m[b[0]],this.Ua=this.Cn,b[2]?(this.hf=this.type.Fj(b[2]),this.fd=this.type.jm(b[2])):(this.hf=null,this.fd=-1));this.X=b[3];this.b.Ce[this.X.toString()]=this;if(6===b.length){var c,d,e=b[5];c=0;for(d=e.length;c<d;c++){var g=new ac(this,e[c]);this.R.push(g)}this.Ja.length=e.length}}function d(){K++;r.length===K&&r.push(new bc);return r[K]}function a(a,b){this.ya=a;this.wc=a.wc;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.Bd=null;this.re=0;this.get=
null;this.ip=0;this.jb=null;this.key=0;this.object=null;this.index=0;this.Ii=this.Qf=this.Ii=this.Qf=this.zp=this.rf=this.Ji=null;this.bd=!1;var c,d,e;switch(b[0]){case 0:case 7:this.Bd=new cc(this,b[1]);this.re=0;this.get=this.Bw;break;case 1:this.Bd=new cc(this,b[1]);this.re=0;this.get=this.Cw;break;case 5:this.Bd=new cc(this,b[1]);this.re=0;this.get=this.Gw;break;case 3:case 8:this.ip=b[1];this.get=this.zw;break;case 6:this.jb=this.b.Rm[b[1]];this.get=this.Hw;break;case 9:this.key=b[1];this.get=
this.Fw;break;case 4:this.object=this.b.m[b[1]];this.get=this.Iw;this.wc.Uo(this.object);this.ya instanceof $b?this.wc.Uk():this.wc.parent&&this.wc.parent.Uk();break;case 10:this.index=b[1];a.type&&a.type.F?(this.get=this.Dw,this.bd=!0):this.get=this.Ew;break;case 11:this.Ji=b[1];this.rf=null;this.get=this.Aw;break;case 2:case 12:this.zp=b[1];this.get=this.yw;break;case 13:for(this.get=this.Jw,this.Qf=[],this.Ii=[],c=1,d=b.length;c<d;c++)e=new ac(this.ya,b[c]),this.Qf.push(e),this.Ii.push(0)}}function e(a,
b,c){this.sheet=a;this.parent=b;this.b=a.b;this.aa=[];this.name=c[1];this.Ki=c[2];this.Am=c[3];this.Ph=!!c[4];this.ak=!!c[5];this.X=c[6];this.b.eh[this.X.toString()]=this;this.data=this.Am;this.parent?(this.Hf=this.Ph||this.ak?-1:this.b.uy++,this.b.Bu.push(this)):(this.Hf=-1,this.b.Au.push(this))}function k(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.aa=[];this.Fh=null;this.Pw=c[1];this.gb=!0}function g(){this.Ur=[];this.reset(null)}var l=[];u.prototype.toString=function(){return this.name};
u.prototype.Rp=function(a,b,c){switch(a[0]){case 0:a=new dc(this,b,a);if(a.Ic)for(c.push(a),c=0,b=a.Wa.length;c<b;c++)a.Wa[c].trigger&&this.Sp(a,c);else a.bq()?this.Sp(a,0):c.push(a);break;case 1:a=new Vb(this,b,a);c.push(a);break;case 2:a=new ec(this,b,a),c.push(a)}};u.prototype.Pa=function(){var a,b;a=0;for(b=this.Le.length;a<b;a++)this.Le[a].Pa(a<b-1&&this.Le[a+1].bk)};u.prototype.$n=function(){y(this.Tl);y(this.Fl);this.To(this);y(this.Fl)};u.prototype.To=function(a){var b,c,d,e,g=a.Tl,l=a.Fl,
k=this.Pp.cf();b=0;for(c=k.length;b<c;++b)d=k[b],e=d.Fh,!d.gb||a===e||-1<l.indexOf(e)||(l.push(e),e.To(a),g.push(e))};u.prototype.Ua=function(a){this.b.Wz||(this.xm=!0,a||(this.b.Km=!0));var b,c;b=0;for(c=this.Le.length;b<c;b++){var d=this.Le[b];d.Ua();this.b.Ml(d.aa);this.b.Ne&&this.b.Cb()}a||(this.b.Km=!1)};u.prototype.Sp=function(a,b){a.Ic||this.b.hl.push(a);var c,d,e=a.Wa[b],g;e.type?g=e.type.name:g="system";var l=(c=e.vp)?this.wp:this.bs;l[g]||(l[g]=[]);g=l[g];l=e.sb;if(c){if(e.R.length&&(e=
e.R[0],1===e.type&&2===e.Bd.type)){e=e.Bd.value.toLowerCase();c=0;for(d=g.length;c<d;c++)if(g[c].method==l){c=g[c].wh;c[e]?c[e].push([a,b]):c[e]=[[a,b]];return}c={};c[e]=[[a,b]];g.push({method:l,wh:c})}}else{c=0;for(d=g.length;c<d;c++)if(g[c].method==l){g[c].wh.push([a,b]);return}T&&l===T.prototype.e.Xf?g.unshift({method:l,wh:[[a,b]]}):g.push({method:l,wh:[[a,b]]})}};Lb=u;m.prototype.wm=function(){return this.W?this.type.d.length:this.d.length};m.prototype.Bc=function(){return this.W?this.type.d:
this.d};m.prototype.ni=function(a){a&&(a.b.Ia().Na.Ic?(this.W&&(y(this.d),Ba(this.S,a.type.d),this.W=!1),a=this.S.indexOf(a),-1!==a&&(this.d.push(this.S[a]),this.S.splice(a,1))):(this.W=!1,y(this.d),this.d[0]=a))};rb=m;window._c2hh_="A9DC9C5674BE191C4BD10C2ED497C8E777925B1A";v.prototype.Pa=function(a){var b,c=this.parent;if(this.group)for(this.fl=!0;c;){if(!c.group){this.fl=!1;break}c=c.parent}this.Un=!this.bq()&&(!this.parent||this.parent.group&&this.parent.fl);this.Op=!!a;this.$e=this.aa.slice(0);
for(c=this.parent;c;){a=0;for(b=c.aa.length;a<b;a++)this.yu(c.aa[a]);c=c.parent}this.aa=n(this.aa);this.$e=n(this.$e);a=0;for(b=this.Wa.length;a<b;a++)this.Wa[a].Pa();a=0;for(b=this.Mc.length;a<b;a++)this.Mc[a].Pa();a=0;for(b=this.$c.length;a<b;a++)this.$c[a].Pa(a<b-1&&this.$c[a+1].bk)};v.prototype.ti=function(a){if(this.wf!==!!a){this.wf=!!a;var b;a=0;for(b=this.hj.length;a<b;++a)this.hj[a].hs();0<b&&this.b.fa.qf&&this.b.fa.qf.$n()}};v.prototype.Uo=function(a){p(a,this.aa)};v.prototype.yu=function(a){p(a,
this.$e)};v.prototype.Uk=function(){this.Kn=!0;this.parent&&this.parent.Uk()};v.prototype.bq=function(){return this.Wa.length?this.Wa[0].trigger:!1};v.prototype.Ua=function(){var a,b,c=!1,d=this.b,e=this.b.Ia();e.Na=this;var g=this.Wa;this.bk||(e.Xl=!1);if(this.Ic){0===g.length&&(c=!0);e.Qa=0;for(a=g.length;e.Qa<a;e.Qa++)b=g[e.Qa],b.trigger||(b=b.Ua())&&(c=!0);(e.Df=c)&&this.Pk()}else{e.Qa=0;for(a=g.length;e.Qa<a;e.Qa++)if(b=g[e.Qa].Ua(),!b){e.Df=!1;this.Un&&d.Ne&&d.Cb();return}e.Df=!0;this.Pk()}this.vv(e)};
v.prototype.vv=function(a){a.Df&&this.Op&&(a.Xl=!0);this.Un&&this.b.Ne&&this.b.Cb()};v.prototype.gy=function(a){this.b.Ia().Na=this;this.Wa[a].Ua()&&(this.Pk(),this.b.Ia().Df=!0)};v.prototype.Pk=function(){var a=this.b.Ia(),b;a.Qb=0;for(b=this.Mc.length;a.Qb<b;a.Qb++)if(this.Mc[a.Qb].Ua())return;this.ur()};v.prototype.ey=function(){var a=this.b.Ia(),b;for(b=this.Mc.length;a.Qb<b;a.Qb++)if(this.Mc[a.Qb].Ua())return;this.ur()};v.prototype.ur=function(){if(this.$c.length){var a,b,c,d,e=this.$c.length-
1;this.b.Jk(this);if(this.Kn)for(a=0,b=this.$c.length;a<b;a++)c=this.$c[a],(d=!this.fl||!this.group&&a<e)&&this.b.Mf(c.aa),c.Ua(),d?this.b.Ld(c.aa):this.b.Ml(c.aa);else for(a=0,b=this.$c.length;a<b;a++)this.$c[a].Ua();this.b.Fk()}};v.prototype.hy=function(){var a=this.b.Ia();a.Na=this;var b=!1,c;a.Qa=0;for(c=this.Wa.length;a.Qa<c;a.Qa++)if(this.Wa[a.Qa].Ua())b=!0;else if(!this.Ic)return!1;return this.Ic?b:!0};v.prototype.Nf=function(){this.b.sf++;var a=this.b.Ia().Qa,b=this.b.Jk(this);if(!this.Ic)for(b.Qa=
a+1,a=this.Wa.length;b.Qa<a;b.Qa++)if(!this.Wa[b.Qa].Ua()){this.b.Fk();return}this.Pk();this.b.Fk()};v.prototype.$w=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.Wa[b].type===a.type)return!1;return!0};dc=v;c.prototype.Pa=function(){var a,b,c;a=0;for(b=this.R.length;a<b;a++)c=this.R[a],c.Pa(),c.bd&&(this.kh=!0)};c.prototype.jy=function(){return!0};c.prototype.Dn=function(){var a,b;a=0;for(b=this.R.length;a<b;a++)this.Ja[a]=this.R[a].get();return Ua(this.sb.apply(this.b.Od,this.Ja),
this.Rj)};c.prototype.iy=function(){var a,b;a=0;for(b=this.R.length;a<b;a++)this.Ja[a]=this.R[a].get();a=this.sb.apply(this.hf?this.hf:this.type,this.Ja);this.type.Ud();return a};c.prototype.Cn=function(){var a,b,c,d,e,g,l,k,f=this.type,r=f.O(),m=this.wc.Ic&&!this.trigger;b=0;var p=f.wb,q=f.F,n=f.de,v=this.fd,u=-1<v,K=this.kh,G=this.R,x=this.Ja,N=this.Rj,E=this.sb,J;if(K)for(b=0,e=G.length;b<e;++b)g=G[b],g.bd||(x[b]=g.get(0));else for(b=0,e=G.length;b<e;++b)x[b]=G[b].get(0);if(r.W){y(r.d);y(r.S);
J=f.d;a=0;for(d=J.length;a<d;++a){k=J[a];if(K)for(b=0,e=G.length;b<e;++b)g=G[b],g.bd&&(x[b]=g.get(a));u?(b=0,q&&(b=k.type.kg[n]),b=E.apply(k.I[v+b],x)):b=E.apply(k,x);(l=Ua(b,N))?r.d.push(k):m&&r.S.push(k)}f.finish&&f.finish(!0);r.W=!1;f.Ud();return r.wm()}c=0;J=(l=m&&!this.wc.$w(this))?r.S:r.d;var H=!1;a=0;for(d=J.length;a<d;++a){k=J[a];if(K)for(b=0,e=G.length;b<e;++b)g=G[b],g.bd&&(x[b]=g.get(a));u?(b=0,q&&(b=k.type.kg[n]),b=E.apply(k.I[v+b],x)):b=E.apply(k,x);if(Ua(b,N))if(H=!0,l){if(r.d.push(k),
p)for(b=0,e=k.siblings.length;b<e;b++)g=k.siblings[b],g.type.O().d.push(g)}else{J[c]=k;if(p)for(b=0,e=k.siblings.length;b<e;b++)g=k.siblings[b],g.type.O().d[c]=g;c++}else if(l){J[c]=k;if(p)for(b=0,e=k.siblings.length;b<e;b++)g=k.siblings[b],g.type.O().S[c]=g;c++}else if(m&&(r.S.push(k),p))for(b=0,e=k.siblings.length;b<e;b++)g=k.siblings[b],g.type.O().S.push(g)}Aa(J,c);if(p)for(q=f.lc,a=0,d=q.length;a<d;a++)k=q[a].O(),l?Aa(k.S,c):Aa(k.d,c);c=H;if(l&&!H)for(a=0,d=r.d.length;a<d;a++){k=r.d[a];if(K)for(b=
0,e=G.length;b<e;b++)g=G[b],g.bd&&(x[b]=g.get(a));b=u?E.apply(k.I[v],x):E.apply(k,x);if(Ua(b,N)){H=!0;break}}f.finish&&f.finish(c||m);return m?H:r.wm()};Zb=c;b.prototype.Pa=function(){var a,b,c;a=0;for(b=this.R.length;a<b;a++)c=this.R[a],c.Pa(),c.bd&&(this.kh=!0)};b.prototype.Dn=function(){var a=this.b,b,c,d=this.R,e=this.Ja;b=0;for(c=d.length;b<c;++b)e[b]=d[b].get();return this.sb.apply(a.Od,e)};b.prototype.Cn=function(){var a=this.type,b=this.fd,c=a.de,d=this.kh,e=this.R,g=this.Ja,l=this.sb,k=a.O().Bc(),
a=a.F,f=-1<b,r,m,p,q,n,v;if(d)for(m=0,q=e.length;m<q;++m)n=e[m],n.bd||(g[m]=n.get(0));else for(m=0,q=e.length;m<q;++m)g[m]=e[m].get(0);r=0;for(p=k.length;r<p;++r){v=k[r];if(d)for(m=0,q=e.length;m<q;++m)n=e[m],n.bd&&(g[m]=n.get(r));f?(m=0,a&&(m=v.type.kg[c]),l.apply(v.I[b+m],g)):l.apply(v,g)}return!1};$b=b;var r=[],K=-1;a.prototype.Pa=function(){var a,b;if(11===this.type)this.rf=this.b.Hp(this.Ji,this.wc.parent);else if(13===this.type)for(a=0,b=this.Qf.length;a<b;a++)this.Qf[a].Pa();this.Bd&&this.Bd.Pa()};
a.prototype.ux=function(a){this.bd||!a||a.da.Vk||(this.bd=!0)};a.prototype.Jr=function(){this.bd=!0};a.prototype.Bw=function(a){this.re=a||0;a=d();this.Bd.get(a);K--;return a.data};a.prototype.Cw=function(a){this.re=a||0;a=d();this.Bd.get(a);K--;return la(a.data)?a.data:""};a.prototype.Iw=function(){return this.object};a.prototype.zw=function(){return this.ip};a.prototype.Gw=function(a){this.re=a||0;a=d();this.Bd.get(a);K--;return a.hb()?this.b.Ah(a.data):this.b.om(a.data)};a.prototype.Hw=function(){return this.jb};
a.prototype.Fw=function(){return this.key};a.prototype.Ew=function(){return this.index};a.prototype.Dw=function(a){a=a||0;var b=this.ya.type,c=null,c=b.O(),d=c.Bc();if(d.length)c=d[a%d.length].type;else if(c.S.length)c=c.S[a%c.S.length].type;else if(b.d.length)c=b.d[a%b.d.length].type;else return 0;return this.index+c.vj[b.de]};a.prototype.Aw=function(){return this.rf};a.prototype.yw=function(){return this.zp};a.prototype.Jw=function(){var a,b;a=0;for(b=this.Qf.length;a<b;a++)this.Ii[a]=this.Qf[a].get();
return this.Ii};ac=a;e.prototype.Pa=function(){this.aa=n(this.aa)};e.prototype.pe=function(a){var b=this.b.Ep();this.parent&&!this.Ph&&b?(this.Hf>=b.length&&(b.length=this.Hf+1),b[this.Hf]=a):this.data=a};e.prototype.vf=function(){var a=this.b.Ep();return!this.parent||this.Ph||!a||this.ak?this.data:this.Hf>=a.length||"undefined"===typeof a[this.Hf]?this.Am:a[this.Hf]};e.prototype.Ua=function(){!this.parent||this.Ph||this.ak||this.pe(this.Am)};Vb=e;k.prototype.toString=function(){return"include:"+
this.Fh.toString()};k.prototype.Pa=function(){this.Fh=this.b.Zl[this.Pw];this.sheet.Pp.add(this);this.aa=n(this.aa);for(var a=this.parent;a;)a.group&&a.hj.push(this),a=a.parent;this.hs()};k.prototype.Ua=function(){this.parent&&this.b.qi(this.b.m);this.Fh.xm||this.Fh.Ua(!0);this.parent&&this.b.Ld(this.b.m)};k.prototype.hs=function(){for(var a=this.parent;a;){if(a.group&&!a.wf){this.gb=!1;return}a=a.parent}this.gb=!0};ec=k;g.prototype.reset=function(a){this.Na=a;this.Qb=this.Qa=0;y(this.Ur);this.Xl=
this.Df=!1};g.prototype.Yp=function(){return this.Na.Kn?!0:this.Qa<this.Na.Wa.length-1?!!this.Na.aa.length:!1};Ub=g})();
(function(){function f(f,c){this.ya=f;this.b=f.b;this.type=c[0];this.get=[this.Nv,this.Jv,this.Wv,this.Zv,this.yv,this.Xv,this.Rv,this.Gv,this.Qv,this.Vv,this.zv,this.Uv,this.Hv,this.Sv,this.Ov,this.Pv,this.Kv,this.Lv,this.Fv,this.Yv,this.Tv,this.Mv,this.Ev,this.Iv][this.type];var b=null;this.le=this.R=this.Ja=this.sb=this.el=this.second=this.first=this.value=null;this.fd=-1;this.jd=null;this.ns=-1;this.rf=this.Ji=null;this.Rg=!1;switch(this.type){case 0:case 1:case 2:this.value=c[1];break;case 3:this.first=
new cc(f,c[1]);break;case 18:this.first=new cc(f,c[1]);this.second=new cc(f,c[2]);this.el=new cc(f,c[3]);break;case 19:this.sb=this.b.ze(c[1]);this.sb!==P.prototype.U.random&&this.sb!==P.prototype.U.Mu||this.ya.Jr();this.Ja=[];this.R=[];3===c.length?(b=c[2],this.Ja.length=b.length+1):this.Ja.length=1;break;case 20:this.le=this.b.m[c[1]];this.fd=-1;this.sb=this.b.ze(c[2]);this.Rg=c[3];qc&&this.sb===qc.prototype.U.vs&&this.ya.Jr();c[4]?this.jd=new cc(f,c[4]):this.jd=null;this.Ja=[];this.R=[];6===c.length?
(b=c[5],this.Ja.length=b.length+1):this.Ja.length=1;break;case 21:this.le=this.b.m[c[1]];this.Rg=c[2];c[3]?this.jd=new cc(f,c[3]):this.jd=null;this.ns=c[4];break;case 22:this.le=this.b.m[c[1]];this.le.Fj(c[2]);this.fd=this.le.jm(c[2]);this.sb=this.b.ze(c[3]);this.Rg=c[4];c[5]?this.jd=new cc(f,c[5]):this.jd=null;this.Ja=[];this.R=[];7===c.length?(b=c[6],this.Ja.length=b.length+1):this.Ja.length=1;break;case 23:this.Ji=c[1],this.rf=null}this.ya.ux(this.le);4<=this.type&&17>=this.type&&(this.first=new cc(f,
c[1]),this.second=new cc(f,c[2]));if(b){var d,a;d=0;for(a=b.length;d<a;d++)this.R.push(new cc(f,b[d]))}}function q(){++v;m.length===v&&m.push(new bc);return m[v]}function n(f,c,b){var d,a;d=0;for(a=f.length;d<a;++d)f[d].get(b),c[d+1]=b.data}function u(f,c){this.type=f||fc.Vf;this.data=c||0;this.Jf=null;this.type==fc.Vf&&(this.data=Math.floor(this.data))}f.prototype.Pa=function(){23===this.type&&(this.rf=this.ya.b.Hp(this.Ji,this.ya.wc.parent));this.first&&this.first.Pa();this.second&&this.second.Pa();
this.el&&this.el.Pa();this.jd&&this.jd.Pa();if(this.R){var f,c;f=0;for(c=this.R.length;f<c;f++)this.R[f].Pa()}};var m=[],v=-1;f.prototype.Yv=function(f){var c=this.R,b=this.Ja;b[0]=f;f=q();n(c,b,f);--v;this.sb.apply(this.b.Od,b)};f.prototype.Tv=function(f){var c=this.le,b=this.Ja,d=this.R,a=this.jd,e=this.sb,k=this.ya.re,g=c.O(),l=g.Bc();if(!l.length)if(g.S.length)l=g.S;else{this.Rg?f.fc(""):f.M(0);return}b[0]=f;f.Jf=c;f=q();n(d,b,f);a&&(a.get(f),f.hb()&&(k=f.data,l=c.d));--v;c=l.length;if(k>=c||
k<=-c)k%=c;0>k&&(k+=c);e.apply(l[k],b)};f.prototype.Ev=function(f){var c=this.le,b=this.Ja,d=this.R,a=this.jd,e=this.fd,k=this.sb,g=this.ya.re,l=c.O(),r=l.Bc();if(!r.length)if(l.S.length)r=l.S;else{this.Rg?f.fc(""):f.M(0);return}b[0]=f;f.Jf=c;f=q();n(d,b,f);a&&(a.get(f),f.hb()&&(g=f.data,r=c.d));--v;d=r.length;if(g>=d||g<=-d)g%=d;0>g&&(g+=d);g=r[g];r=0;c.F&&(r=g.type.kg[c.de]);k.apply(g.I[e+r],b)};f.prototype.Mv=function(f){var c=this.jd,b=this.le,d=this.ns,a=this.ya.re,e=b.O(),k=e.Bc();if(!k.length)if(e.S.length)k=
e.S;else{this.Rg?f.fc(""):f.M(0);return}if(c){e=q();c.get(e);if(e.hb()){a=e.data;k=b.d;0!==k.length&&(a%=k.length,0>a&&(a+=k.length));a=b.nm(a);b=a.Za[d];la(b)?f.fc(b):f.A(b);--v;return}--v}c=k.length;if(a>=c||a<=-c)a%=c;0>a&&(a+=c);a=k[a];k=0;b.F&&(k=a.type.vj[b.de]);b=a.Za[d+k];la(b)?f.fc(b):f.A(b)};f.prototype.Nv=function(f){f.type=fc.Vf;f.data=this.value};f.prototype.Jv=function(f){f.type=fc.Uf;f.data=this.value};f.prototype.Wv=function(f){f.type=fc.String;f.data=this.value};f.prototype.Zv=function(f){this.first.get(f);
f.hb()&&(f.data=-f.data)};f.prototype.yv=function(f){this.first.get(f);var c=q();this.second.get(c);f.hb()&&c.hb()&&(f.data+=c.data,c.vg()&&f.Eg());--v};f.prototype.Xv=function(f){this.first.get(f);var c=q();this.second.get(c);f.hb()&&c.hb()&&(f.data-=c.data,c.vg()&&f.Eg());--v};f.prototype.Rv=function(f){this.first.get(f);var c=q();this.second.get(c);f.hb()&&c.hb()&&(f.data*=c.data,c.vg()&&f.Eg());--v};f.prototype.Gv=function(f){this.first.get(f);var c=q();this.second.get(c);f.hb()&&c.hb()&&(f.data/=
c.data,f.Eg());--v};f.prototype.Qv=function(f){this.first.get(f);var c=q();this.second.get(c);f.hb()&&c.hb()&&(f.data%=c.data,c.vg()&&f.Eg());--v};f.prototype.Vv=function(f){this.first.get(f);var c=q();this.second.get(c);f.hb()&&c.hb()&&(f.data=Math.pow(f.data,c.data),c.vg()&&f.Eg());--v};f.prototype.zv=function(f){this.first.get(f);var c=q();this.second.get(c);c.yg()||f.yg()?this.Bv(f,c):this.Av(f,c);--v};f.prototype.Bv=function(f,c){f.yg()&&c.yg()?this.Dv(f,c):this.Cv(f,c)};f.prototype.Dv=function(f,
c){f.data+=c.data};f.prototype.Cv=function(f,c){f.yg()?f.data+=(Math.round(1E10*c.data)/1E10).toString():f.fc(f.data.toString()+c.data)};f.prototype.Av=function(f,c){f.M(f.data&&c.data?1:0)};f.prototype.Uv=function(f){this.first.get(f);var c=q();this.second.get(c);f.hb()&&c.hb()&&(f.data||c.data?f.M(1):f.M(0));--v};f.prototype.Fv=function(f){this.first.get(f);f.data?this.second.get(f):this.el.get(f)};f.prototype.Hv=function(f){this.first.get(f);var c=q();this.second.get(c);f.M(f.data===c.data?1:0);
--v};f.prototype.Sv=function(f){this.first.get(f);var c=q();this.second.get(c);f.M(f.data!==c.data?1:0);--v};f.prototype.Ov=function(f){this.first.get(f);var c=q();this.second.get(c);f.M(f.data<c.data?1:0);--v};f.prototype.Pv=function(f){this.first.get(f);var c=q();this.second.get(c);f.M(f.data<=c.data?1:0);--v};f.prototype.Kv=function(f){this.first.get(f);var c=q();this.second.get(c);f.M(f.data>c.data?1:0);--v};f.prototype.Lv=function(f){this.first.get(f);var c=q();this.second.get(c);f.M(f.data>=
c.data?1:0);--v};f.prototype.Iv=function(f){var c=this.rf.vf();ja(c)?f.A(c):f.fc(c)};cc=f;u.prototype.vg=function(){return this.type===fc.Uf};u.prototype.hb=function(){return this.type===fc.Vf||this.type===fc.Uf};u.prototype.yg=function(){return this.type===fc.String};u.prototype.Eg=function(){this.vg()||(this.yg()&&(this.data=parseFloat(this.data)),this.type=fc.Uf)};u.prototype.M=function(f){this.type=fc.Vf;this.data=Math.floor(f)};u.prototype.A=function(f){this.type=fc.Uf;this.data=f};u.prototype.fc=
function(f){this.type=fc.String;this.data=f};u.prototype.xi=function(f){ja(f)?(this.type=fc.Uf,this.data=f):la(f)?(this.type=fc.String,this.data=f.toString()):(this.type=fc.Vf,this.data=0)};bc=u;fc={Vf:0,Uf:1,String:2}})();function P(f){this.b=f;this.jc=[]}
P.prototype.Ib=function(){var f={},q,n,u,m,v,p,c,b;f.waits=[];var d=f.waits,a;q=0;for(n=this.jc.length;q<n;q++){p=this.jc[q];a={t:p.time,st:p.Qr,s:p.Jn,ev:p.ig.X,sm:[],sols:{}};p.ig.Mc[p.Qb]&&(a.act=p.ig.Mc[p.Qb].X);u=0;for(m=p.aa.length;u<m;u++)a.sm.push(p.aa[u].X);for(v in p.Nb)if(p.Nb.hasOwnProperty(v)){c=this.b.m[parseInt(v,10)];b={sa:p.Nb[v].Qk,insts:[]};u=0;for(m=p.Nb[v].fe.length;u<m;u++)b.insts.push(p.Nb[v].fe[u].uid);a.sols[c.X.toString()]=b}d.push(a)}return f};
P.prototype.Zb=function(f){f=f.waits;var q,n,u,m,v,p,c,b,d,a,e;y(this.jc);q=0;for(n=f.length;q<n;q++)if(p=f[q],b=this.b.$o[p.ev.toString()]){d=-1;u=0;for(m=b.Mc.length;u<m;u++)if(b.Mc[u].X===p.act){d=u;break}if(-1!==d){c={Nb:{},aa:[],Ul:!1};c.time=p.t;c.Qr=p.st||"";c.Jn=!!p.s;c.ig=b;c.Qb=d;u=0;for(m=p.sm.length;u<m;u++)(b=this.b.Jj(p.sm[u]))&&c.aa.push(b);for(v in p.sols)if(p.sols.hasOwnProperty(v)&&(b=this.b.Jj(parseInt(v,10)))){d=p.sols[v];a={Qk:d.sa,fe:[]};u=0;for(m=d.insts.length;u<m;u++)(e=this.b.Ij(d.insts[u]))&&
a.fe.push(e);c.Nb[b.index.toString()]=a}this.jc.push(c)}}};
(function(){function f(){}function q(){}function n(){}var u=P.prototype;f.prototype.Ns=function(){return!0};f.prototype.Ao=function(){return!0};f.prototype.zo=function(){return!0};f.prototype.Cs=function(b,c,a){return gc(b,c,a)};f.prototype.Ps=function(b,c,a){var e=this.b.Ia(),f=e.Na,e=e.Yp();b=this.b.pr(b);if(a<c)if(e)for(;c>=a&&!b.Ma;--c)this.b.Mf(f.aa),b.index=c,f.Nf(),this.b.Ld(f.aa);else for(;c>=a&&!b.Ma;--c)b.index=c,f.Nf();else if(e)for(;c<=a&&!b.Ma;++c)this.b.Mf(f.aa),b.index=c,f.Nf(),this.b.Ld(f.aa);
else for(;c<=a&&!b.Ma;++c)b.index=c,f.Nf();this.b.kr();return!1};var m=[],v=-1;f.prototype.Qs=function(b){var c=b.O();v++;m.length===v&&m.push([]);var a=m[v];Ba(a,c.Bc());var e=this.b.Ia(),f=e.Na,g=e.Yp(),e=this.b.pr(),l,r,q,h,t,n,p=b.wb;if(g)for(g=0,l=a.length;g<l&&!e.Ma;g++){this.b.Mf(f.aa);h=a[g];c=b.O();c.W=!1;y(c.d);c.d[0]=h;if(p)for(r=0,q=h.siblings.length;r<q;r++)t=h.siblings[r],n=t.type.O(),n.W=!1,y(n.d),n.d[0]=t;e.index=g;f.Nf();this.b.Ld(f.aa)}else for(c.W=!1,y(c.d),g=0,l=a.length;g<l&&
!e.Ma;g++){h=a[g];c.d[0]=h;if(p)for(r=0,q=h.siblings.length;r<q;r++)t=h.siblings[r],n=t.type.O(),n.W=!1,y(n.d),n.d[0]=t;e.index=g;f.Nf()}y(a);this.b.kr();v--;return!1};f.prototype.lu=function(){var b=this.b.Gj().N;"undefined"===typeof b.TriggerOnce_lastTick&&(b.TriggerOnce_lastTick=-1);var c=b.TriggerOnce_lastTick,a=this.b.Pd;b.TriggerOnce_lastTick=a;return this.b.Qm||c!==a-1};f.prototype.Ms=function(b){var c=this.b.Gj(),a=c.N.Every_lastTime||0,e=this.b.ib.Y;"undefined"===typeof c.N.Every_seconds&&
(c.N.Every_seconds=b);var f=c.N.Every_seconds;if(e>=a+f)return c.N.Every_lastTime=a+f,e>=c.N.Every_lastTime+.04&&(c.N.Every_lastTime=e),c.N.Every_seconds=b,!0;e<a-.1&&(c.N.Every_lastTime=e);return!1};f.prototype.Gs=function(b,c,a){return gc(b.vf(),c,a)};f.prototype.Ys=function(b){return(b=this.b.pg[b.toLowerCase()])&&b.wf};f.prototype.Ds=function(b,c,a){return b>=c&&b<=a};f.prototype.oo=function(){var b=this.b.Ia();return b.Xl?!1:!b.Df};f.prototype.Bo=function(){return!0};f.prototype.qt=function(){return!0};
f.prototype.ul=function(){return!0};f.prototype.Go=function(){return!0};f.prototype.Dt=function(){return!0};f.prototype.Qi=function(){return!0};f.prototype.ss=function(b,c,a){return Pa(C(b),C(a))<=C(c)};f.prototype.Xs=function(b,c){return Ra(C(b),C(c))};f.prototype.Vs=function(b,c,a){b=Na(b);c=Na(c);a=Na(a);return Ra(a,c)?Ra(b,c)&&!Ra(b,a):!(!Ra(b,c)&&Ra(b,a))};u.e=new f;q.prototype.Ss=function(b){this.b.zg||this.b.lf||(this.b.lf=b)};q.prototype.Js=function(b,c,a,e){if(c&&b&&(c=this.b.jj(b,c,a,e))){this.b.Fc++;
var f;this.b.trigger(Object.getPrototypeOf(b.da).e.Wf,c);if(c.wb)for(a=0,e=c.siblings.length;a<e;a++)f=c.siblings[a],this.b.trigger(Object.getPrototypeOf(f.type.da).e.Wf,f);this.b.Fc--;b=b.O();b.W=!1;y(b.d);b.d[0]=c;if(c.wb)for(a=0,e=c.siblings.length;a<e;a++)f=c.siblings[a],b=f.type.O(),b.W=!1,y(b.d),b.d[0]=f}};q.prototype.bu=function(b,c){0===b.Ki?ja(c)?b.pe(c):b.pe(parseFloat(c)):1===b.Ki&&b.pe(c.toString())};q.prototype.rs=function(b,c){0===b.Ki?ja(c)?b.pe(b.vf()+c):b.pe(b.vf()+parseFloat(c)):
1===b.Ki&&b.pe(b.vf()+c.toString())};q.prototype.ju=function(b,c){0===b.Ki&&(ja(c)?b.pe(b.vf()-c):b.pe(b.vf()-parseFloat(c)))};q.prototype.Vt=function(b,c){var a=this.b.pg[b.toLowerCase()];if(a)switch(c){case 0:a.ti(!1);break;case 1:a.ti(!0);break;case 2:a.ti(!a.wf)}};q.prototype.au=function(b){0>b&&(b=0);this.b.Sf=b};var p=[],c=[];q.prototype.nu=function(b){if(!(0>b)){var d,a,e,f=this.b.Ia(),g;p.length?g=p.pop():g={Nb:{},aa:[]};g.Ul=!1;g.time=this.b.ib.Y+b;g.Qr="";g.Jn=!1;g.ig=f.Na;g.Qb=f.Qb+1;b=
0;for(d=this.b.m.length;b<d;b++)e=this.b.m[b],a=e.O(),a.W&&-1===f.Na.aa.indexOf(e)||(g.aa.push(e),e=void 0,c.length?e=c.pop():e={fe:[]},e.Qk=!1,e.Qk=a.W,Ba(e.fe,a.d),g.Nb[b.toString()]=e);this.jc.push(g);return!0}};q.prototype.Qt=function(){if(!this.b.zg&&!this.b.lf&&this.b.fa){this.b.lf=this.b.fa;var b,c,a;b=0;for(c=this.b.Fe.length;b<c;b++)a=this.b.Fe[b],a.ti(a.Pj)}};u.n=new q;n.prototype["int"]=function(b,c){la(c)?(b.M(parseInt(c,10)),isNaN(b.data)&&(b.data=0)):b.M(c)};n.prototype["float"]=function(b,
c){la(c)?(b.A(parseFloat(c)),isNaN(b.data)&&(b.data=0)):b.A(c)};n.prototype.random=function(b,c,a){void 0===a?b.A(Math.random()*c):b.A(Math.random()*(a-c)+c)};n.prototype.sqrt=function(b,c){b.A(Math.sqrt(c))};n.prototype.abs=function(b,c){b.A(Math.abs(c))};n.prototype.round=function(b,c){b.M(Math.round(c))};n.prototype.floor=function(b,c){b.M(Math.floor(c))};n.prototype.ceil=function(b,c){b.M(Math.ceil(c))};n.prototype.sin=function(b,c){b.A(Math.sin(C(c)))};n.prototype.cos=function(b,c){b.A(Math.cos(C(c)))};
n.prototype.tan=function(b,c){b.A(Math.tan(C(c)))};n.prototype.asin=function(b,c){b.A(Ia(Math.asin(c)))};n.prototype.acos=function(b,c){b.A(Ia(Math.acos(c)))};n.prototype.atan=function(b,c){b.A(Ia(Math.atan(c)))};n.prototype.exp=function(b,c){b.A(Math.exp(c))};n.prototype.log10=function(b,c){b.A(Math.log(c)/Math.LN10)};n.prototype.max=function(b){var c=arguments[1];"number"!==typeof c&&(c=0);var a,e,f;a=2;for(e=arguments.length;a<e;a++)f=arguments[a],"number"===typeof f&&c<f&&(c=f);b.A(c)};n.prototype.min=
function(b){var c=arguments[1];"number"!==typeof c&&(c=0);var a,e,f;a=2;for(e=arguments.length;a<e;a++)f=arguments[a],"number"===typeof f&&c>f&&(c=f);b.A(c)};n.prototype.Ke=function(b){b.A(this.b.Ke)};n.prototype.Sf=function(b){b.A(this.b.Sf)};n.prototype.time=function(b){b.A(this.b.ib.Y)};n.prototype.Pd=function(b){b.M(this.b.Pd)};n.prototype.sk=function(b){b.M(this.b.sk)};n.prototype.gm=function(b){b.M(this.b.gm)};n.prototype.qx=function(b,c){var a,e;if(this.b.fi.length)if(c){for(e=this.b.gi;0<=
e;--e)if(a=this.b.fi[e],a.name===c){b.M(a.index);return}b.M(0)}else a=this.b.Fp(),b.M(a?a.index:-1);else b.M(0)};n.prototype.Vu=function(b,c,a,e,f){b.A(Ta(c,a,e,f))};n.prototype.k=function(b,c,a,e,f){b.A(Ia(Oa(c,a,e,f)))};n.prototype.mx=function(b,c,a,e){b.A(Xa(c,a,e))};n.prototype.Nu=function(b,c,a,e){c<a?b.A(a):c>e?b.A(e):b.A(c)};n.prototype.lx=function(b){b.M(this.b.fa.width)};n.prototype.kx=function(b){b.M(this.b.fa.height)};n.prototype.left=function(b,c,a){b.fc(la(c)?c.substr(0,a):"")};n.prototype.right=
function(b,c,a){b.fc(la(c)?c.substr(c.length-a):"")};n.prototype.replace=function(b,c,a,e){la(c)&&la(a)&&la(e)?b.fc(c.replace(new RegExp(eb(a),"gi"),e)):b.fc(la(c)?c:"")};n.prototype.trim=function(b,c){b.fc(la(c)?c.trim():"")};n.prototype.Mu=function(b){var c=sa(Math.random()*(arguments.length-1));b.xi(arguments[c+1])};n.prototype.Ol=function(b){b.A(this.b.Ol/1E3)};n.prototype.lk=function(b){b.A(this.b.lk)};u.U=new n;u.fy=function(){var b,d,a,e,f,g,l=this.b.Ia();b=0;for(a=this.jc.length;b<a;b++){e=
this.jc[b];if(-1===e.time){if(!e.Jn)continue}else if(e.time>this.b.ib.Y)continue;l.Na=e.ig;l.Qb=e.Qb;l.Qa=0;for(d in e.Nb)e.Nb.hasOwnProperty(d)&&(f=this.b.m[parseInt(d,10)].O(),g=e.Nb[d],f.W=g.Qk,Ba(f.d,g.fe),f=g,y(f.fe),c.push(f));e.ig.ey();this.b.Ml(e.aa);e.Ul=!0}d=b=0;for(a=this.jc.length;b<a;b++)e=this.jc[b],this.jc[d]=e,e.Ul?(Za(e.Nb),y(e.aa),p.push(e)):d++;Aa(this.jc,d)}})();
(function(){qb=function(f,n){var u=f[1],m=f[3],v=f[4],p=f[5],c=f[6],b=f[7],d=f[8];n.e||(n.e={});n.n||(n.n={});n.U||(n.U={});var a=n.e,e=n.n,k=n.U;m&&(a.mo=function(a,b){return gc(this.x,a,b)},a.Hs=function(a,b){return gc(this.y,a,b)},a.Zy=function(){var a=this.i;this.ua();var b=this.Ba;return!(b.right<a.ma||b.bottom<a.na||b.left>a.ra||b.top>a.qa)},a.$y=function(){this.ua();var a=this.Ba,b=this.b.fa;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},a.hz=function(a,b,c){var d=this.O(),e=
d.Bc();if(!e.length)return!1;var f=e[0],k=f,m=Ta(f.x,f.y,b,c),q,n,p;q=1;for(n=e.length;q<n;q++)if(f=e[q],p=Ta(f.x,f.y,b,c),0===a&&p<m||1===a&&p>m)m=p,k=f;d.ni(k);return!0},e.du=function(a){this.x!==a&&(this.x=a,this.Ka())},e.gu=function(a){this.y!==a&&(this.y=a,this.Ka())},e.Jo=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.Ka()},e.uz=function(a,b){var c=a.sw(this);if(c){var d;c.zh?(d=c.zh(b,!0),c=c.zh(b,!1)):(d=c.x,c=c.y);if(this.x!==d||this.y!==c)this.x=d,this.y=c,this.Ka()}},e.dz=
function(a){0!==a&&(this.x+=Math.cos(this.k)*a,this.y+=Math.sin(this.k)*a,this.Ka())},e.et=function(a,b){0!==b&&(this.x+=Math.cos(C(a))*b,this.y+=Math.sin(C(a))*b,this.Ka())},k.Lo=function(a){a.A(this.x)},k.Mo=function(a){a.A(this.y)},k.Ke=function(a){a.A(this.b.km(this))});v&&(a.Vy=function(a,b){return gc(this.width,a,b)},a.Ty=function(a,b){return gc(this.height,a,b)},e.cu=function(a){this.width!==a&&(this.width=a,this.Ka())},e.sz=function(a){this.height!==a&&(this.height=a,this.Ka())},e.zl=function(a,
b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.Ka()},k.ou=function(a){a.A(this.width)},k.Ts=function(a){a.A(this.height)},k.Qy=function(a){this.ua();a.A(this.Ba.left)},k.Sy=function(a){this.ua();a.A(this.Ba.top)},k.Ry=function(a){this.ua();a.A(this.Ba.right)},k.Py=function(a){this.ua();a.A(this.Ba.bottom)});p&&(a.ss=function(a,b){return Pa(this.k,C(b))<=C(a)},a.Xs=function(a){return Ra(this.k,C(a))},a.Vs=function(a,b){var c=Na(a),d=Na(b),e=Ka(this.k);return Ra(d,c)?Ra(e,c)&&
!Ra(e,d):!(!Ra(e,c)&&Ra(e,d))},e.pz=function(a){a=C(Ja(a));isNaN(a)||this.k===a||(this.k=a,this.Ka())},e.lz=function(a){0===a||isNaN(a)||(this.k+=C(a),this.k=Ka(this.k),this.Ka())},e.mz=function(a){0===a||isNaN(a)||(this.k-=C(a),this.k=Ka(this.k),this.Ka())},e.nz=function(a,b){var c=Qa(this.k,C(b),C(a));isNaN(c)||this.k===c||(this.k=c,this.Ka())},e.oz=function(a,b,c){a=Qa(this.k,Math.atan2(c-this.y,b-this.x),C(a));isNaN(a)||this.k===a||(this.k=a,this.Ka())},e.vz=function(a,b){var c=Math.atan2(b-this.y,
a-this.x);isNaN(c)||this.k===c||(this.k=c,this.Ka())},k.Oy=function(a){a.A(Ma(this.k))});u||(a.Fs=function(a,b,c){return gc(this.Za[a],b,c)},a.Ws=function(a){return this.Za[a]},a.iz=function(a,b){var c=this.O(),d=c.Bc();if(!d.length)return!1;var e=d[0],f=e,k=e.Za[b],m,q,n;m=1;for(q=d.length;m<q;m++)if(e=d[m],n=e.Za[b],0===a&&n<k||1===a&&n>k)k=n,f=e;c.ni(f);return!0},a.Ot=function(a){var b,c,d,e,f;if(this.b.Gj().Rj){f=this.O();if(f.W)for(f.W=!1,y(f.d),y(f.S),d=this.d,b=0,c=d.length;b<c;b++)e=d[b],
e.uid===a?f.S.push(e):f.d.push(e);else{d=b=0;for(c=f.d.length;b<c;b++)e=f.d[b],f.d[d]=e,e.uid===a?f.S.push(e):d++;Aa(f.d,d)}this.Ud();return!!f.d.length}e=this.b.Ij(a);if(!e)return!1;f=this.O();if(!f.W&&-1===f.d.indexOf(e))return!1;if(this.F)for(a=e.type.Ca,b=0,c=a.length;b<c;b++){if(a[b]===this)return f.ni(e),this.Ud(),!0}else if(e.type===this)return f.ni(e),this.Ud(),!0;return!1},a.Wf=function(){return!0},a.ut=function(){return!0},e.Wt=function(a,b){var c=this.Za;ja(c[a])?c[a]=ja(b)?b:parseFloat(b):
la(c[a])&&(c[a]=la(b)?b:b.toString())},e.Ny=function(a,b){var c=this.Za;ja(c[a])?c[a]=ja(b)?c[a]+b:c[a]+parseFloat(b):la(c[a])&&(c[a]=la(b)?c[a]+b:c[a]+b.toString())},e.wz=function(a,b){var c=this.Za;ja(c[a])&&(c[a]=ja(b)?c[a]-b:c[a]-parseFloat(b))},e.Tt=function(a,b){this.Za[a]=b?1:0},e.xz=function(a){this.Za[a]=1-this.Za[a]},e.no=function(){this.b.ye(this)},e.dt||(e.dt=function(a){var b,c;try{b=JSON.parse(a)}catch(d){return}this.b.ik(this,b,!0);this.De&&this.De();if(this.I)for(a=0,b=this.I.length;a<
b;++a)c=this.I[a],c.De&&c.De()}),k.Wy=function(a){var b=a.Jf.d.length,c,d,e;c=0;for(d=this.b.gd.length;c<d;c++)e=this.b.gd[c],a.Jf.F?0<=e.type.Ca.indexOf(a.Jf)&&b++:e.type===a.Jf&&b++;a.M(b)},k.kz=function(a){a.M(a.Jf.O().Bc().length)},k.mu=function(a){a.M(this.uid)},k.Xy=function(a){a.M(this.Ch())},k.lo||(k.lo=function(a){a.fc(JSON.stringify(this.b.En(this,!0)))}));c&&(a.az=function(){return this.visible},e.Ko=function(a){!a!==!this.visible&&(this.visible=!!a,this.b.pa=!0)},a.Uy=function(a,b){return gc(mb(100*
this.opacity),a,b)},e.Yt=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.pa=!0)},k.Opacity=function(a){a.A(mb(100*this.opacity))});b&&(a.Yy=function(a){return a?this.i===a:!1},a.jz=function(a){var b=this.O(),c=b.Bc();if(!c.length)return!1;var d=c[0],e=d,f,k;f=1;for(k=c.length;f<k;f++)if(d=c[f],0===a){if(d.i.index>e.i.index||d.i.index===e.i.index&&d.Ed()>e.Ed())e=d}else if(d.i.index<e.i.index||d.i.index===e.i.index&&d.Ed()<e.Ed())e=d;b.ni(e);return!0},e.ht=function(){var a=
this.i,b=a.d;b.length&&b[b.length-1]===this||(a.Qg(this,!1),a.mh(this,!1),this.b.pa=!0)},e.gt=function(){var a=this.i,b=a.d;b.length&&b[0]===this||(a.Qg(this,!1),a.Vx(this),this.b.pa=!0)},e.ez=function(a){a&&a!=this.i&&(this.i.Qg(this,!0),this.i=a,a.mh(this,!0),this.b.pa=!0)},e.zz=function(a,b){var c=0===a;if(b){var d=b.lw(this);d&&d.uid!==this.uid&&(this.i.index!==d.i.index&&(this.i.Qg(this,!0),this.i=d.i,d.i.mh(this,!0)),this.i.wx(this,d,c),this.b.pa=!0)}},k.cz=function(a){a.M(this.i.Nq)},k.bz=
function(a){a.fc(this.i.name)},k.yz=function(a){a.M(this.Ed())});d&&(e.qz=function(a,b){if(this.b.u){var c=this.type.mm(b);if(!(0>c)){var d=1===a;this.Be[c]!==d&&(this.Be[c]=d,this.sd(),this.b.pa=!0)}}},e.rz=function(a,b,c){if(this.b.u){var d=this.type.mm(a);0>d||(a=this.type.J[d],d=this.Ha[d],b=Math.floor(b),0>b||b>=d.length||(1===this.b.u.xw(a.Va,b)&&(c/=100),d[b]!==c&&(d[b]=c,a.gb&&(this.b.pa=!0))))}})};Mb=function(){this.Jl=this.cj=!0;this.type.Wi=!0;this.b.pa=!0;var f,n,u=this.Hl;f=0;for(n=u.length;f<
n;++f)u[f](this);this.i.Lc&&this.ua()};Nb=function(f){f&&this.Hl.push(f)};Pb=function(){if(this.cj){var f=this.Ba,n=this.Lb;f.set(this.x,this.y,this.x+this.width,this.y+this.height);f.offset(-this.nc*this.width,-this.oc*this.height);this.k?(f.offset(-this.x,-this.y),n.Lr(f,this.k),n.offset(this.x,this.y),n.bp(f)):n.Ug(f);f.normalize();this.cj=!1;this.ls()}};var f=new wa(0,0,0,0);Qb=function(){if(this.i.Lc){var q=this.i.zb,n=this.Ba;f.set(q.Ob(n.left),q.Pb(n.top),q.Ob(n.right),q.Pb(n.bottom));this.cc.vh(f)||
(this.cc.right<this.cc.left?q.update(this,null,f):q.update(this,this.cc,f),this.cc.ag(f),this.i.pd=!0)}};Rb=function(){if(this.Jl&&this.yd){this.ua();var q=this.type.ph,n=this.Ba;f.set(q.Ob(n.left),q.Pb(n.top),q.Ob(n.right),q.Pb(n.bottom));this.Oc.vh(f)||(this.Oc.right<this.Oc.left?q.update(this,null,f):q.update(this,this.Oc,f),this.Oc.ag(f),this.Jl=!1)}};Ob=function(f,n){return this.Ba.Eb(f,n)&&this.Lb.Eb(f,n)?this.$g?this.Yz(f,n):this.ja&&!this.ja.ug()?(this.ja.Zf(this.width,this.height,this.k),
this.ja.Eb(f-this.x,n-this.y)):!0:!1};Ib=function(){this.type.il();return this.zf};Sb=function(){this.i.bo();return this.td};Tb=function(){y(this.ea);var f,n,u,m=!0;f=0;for(n=this.Be.length;f<n;f++)this.Be[f]&&(u=this.type.J[f],this.ea.push(u),u.nd||(m=!1));this.ms=!!this.ea.length;this.qe=m};Jb=function(){return"Inst"+this.or};tb=function(f){if(f&&f.wb&&f.type!=this){var n,u,m;n=0;for(u=f.siblings.length;n<u;n++)if(m=f.siblings[n],m.type==this)return m}f=this.O().Bc();return f.length?f[0]:null};
ub=function(f){var n=this.O().Bc();return n.length?n[f.Ch()%n.length]:null};sb=function(){if(this.Xg&&!this.F){var f,n;f=0;for(n=this.d.length;f<n;f++)this.d[f].zf=f;var u=f,m=this.b.gd;f=0;for(n=m.length;f<n;++f)m[f].type===this&&(m[f].zf=u++);this.Xg=!1}};Gb=function(f){if(f<this.d.length)return this.d[f];f-=this.d.length;var n=this.b.gd,u,m;u=0;for(m=n.length;u<m;++u)if(n[u].type===this){if(0===f)return n[u];--f}return null};vb=function(){return this.se[this.zd]};wb=function(){this.zd++;this.zd===
this.se.length?this.se.push(new rb(this)):(this.se[this.zd].W=!0,y(this.se[this.zd].S))};xb=function(){this.zd++;this.zd===this.se.length&&this.se.push(new rb(this));var f=this.se[this.zd],n=this.se[this.zd-1];n.W?f.W=!0:(f.W=!1,Ba(f.d,n.d));y(f.S)};yb=function(){this.zd--};zb=function(f){var n,u,m,v,p,c=0;if(!this.F)for(n=0,u=this.Ca.length;n<u;n++)for(p=this.Ca[n],m=0,v=p.Fa.length;m<v;m++){if(f===p.Fa[m].name)return this.N.lastBehIndex=c,p.Fa[m];c++}n=0;for(u=this.Fa.length;n<u;n++){if(f===this.Fa[n].name)return this.N.lastBehIndex=
c,this.Fa[n];c++}return null};Db=function(f){return this.Fj(f)?this.N.lastBehIndex:-1};Eb=function(f){var n,u;n=0;for(u=this.J.length;n<u;n++)if(this.J[n].name===f)return n;return-1};Fb=function(){if(this.wb&&!this.F){var f,n,u,m,v,p,c;this.il();p=this.O();var b=p.W,d=(f=this.b.Ia())&&f.Na&&f.Na.Ic;f=0;for(n=this.lc.length;f<n;f++)if(v=this.lc[f],v!==this&&(v.il(),c=v.O(),c.W=b,!b)){y(c.d);u=0;for(m=p.d.length;u<m;++u)c.d[u]=v.nm(p.d[u].zf);if(d)for(y(c.S),u=0,m=p.S.length;u<m;++u)c.S[u]=v.nm(p.S[u].zf)}}};
Hb=function(){return"Type"+this.X};gc=function(f,n,u){if("undefined"===typeof f||"undefined"===typeof u)return!1;switch(n){case 0:return f===u;case 1:return f!==u;case 2:return f<u;case 3:return f<=u;case 4:return f>u;case 5:return f>=u;default:return!1}}})();var oc={};function rc(f){this.b=f}
(function(){function f(){}var q=!1,n=null,u=null,m="",v=rc.prototype;v.Aa=function(a){this.da=a;this.b=a.b};v.Aa.prototype.V=function(){};v.ta=function(a){this.type=a;this.b=a.b;this.hd=this.Re="";this.$b=0;this.timeout=-1;if(q=this.b.Vj)n=require("path"),u=require("fs"),m=n.dirname((window.process||nw.process).execPath)+"\\"};var p=v.ta.prototype,c=null;window.C2_AJAX_DCSide=function(a,b,d){c&&("success"===a?(c.hd=b,c.Re=d,c.b.trigger(rc.prototype.e.rl,c),c.b.trigger(rc.prototype.e.tl,c)):"error"===
a?(c.hd=b,c.b.trigger(rc.prototype.e.sl,c),c.b.trigger(rc.prototype.e.Rd,c)):"progress"===a&&(c.$b=d,c.hd=b,c.b.trigger(rc.prototype.e.Fo,c)))};p.V=function(){c=this};p.Ib=function(){return{lastData:this.Re}};p.Zb=function(a){this.Re=a.lastData;this.hd="";this.$b=0};var b={},d="";p.gf=function(a,c,f,g){if(this.b.ub)AppMobi.webview.execute('C2_AJAX_WebSide("'+a+'", "'+c+'", "'+f+'", '+(g?'"'+g+'"':"null")+");");else{var l=this,r=null,n=function(){l.hd=a;l.b.trigger(rc.prototype.e.sl,l);l.b.trigger(rc.prototype.e.Rd,
l)},h=function(){if(q){var b=m+c;u.existsSync(b)?u.readFile(b,{encoding:"utf8"},function(b,c){b?n():(l.hd=a,l.Re=c.replace(/\r\n/g,"\n"),l.b.trigger(rc.prototype.e.rl,l),l.b.trigger(rc.prototype.e.tl,l))}):n()}else n()},t=function(b){b.lengthComputable&&(l.$b=b.loaded/b.total,l.hd=a,l.b.trigger(rc.prototype.e.Fo,l))};try{this.b.ie?r=new ActiveXObject("Microsoft.XMLHTTP"):r=new XMLHttpRequest;r.onreadystatechange=function(){4===r.readyState&&(l.hd=a,r.responseText?l.Re=r.responseText.replace(/\r\n/g,
"\n"):l.Re="",400<=r.status?(l.b.trigger(rc.prototype.e.sl,l),l.b.trigger(rc.prototype.e.Rd,l)):q&&!l.Re.length||!q&&0===r.status&&!l.Re.length||(l.b.trigger(rc.prototype.e.rl,l),l.b.trigger(rc.prototype.e.tl,l)))};this.b.ie||(r.onerror=h,r.ontimeout=h,r.onabort=h,r.onprogress=t);r.open(f,c);!this.b.ie&&0<=this.timeout&&"undefined"!==typeof r.timeout&&(r.timeout=this.timeout);try{r.responseType="text"}catch(p){}g&&r.setRequestHeader&&!b.hasOwnProperty("Content-Type")&&r.setRequestHeader("Content-Type",
"application/x-www-form-urlencoded");if(r.setRequestHeader){for(var v in b)if(b.hasOwnProperty(v))try{r.setRequestHeader(v,b[v])}catch(S){}b={}}if(d&&r.overrideMimeType){try{r.overrideMimeType(d)}catch(Q){}d=""}g?r.send(g):r.send()}catch(L){h()}}};f.prototype.tl=function(a){return nb(a,this.hd)};f.prototype.rl=function(){return!0};f.prototype.Rd=function(a){return nb(a,this.hd)};f.prototype.sl=function(){return!0};f.prototype.Fo=function(a){return nb(a,this.hd)};v.e=new f;v.n=new function(){};v.U=
new function(){}})();function sc(f){this.b=f}
(function(){function f(){return c.length?c.pop():[]}function q(b){var d,a;d=0;for(a=b.length;d<a;d++)Array.isArray(b[d])&&q(b[d]);y(b);c.push(b)}function n(){}function u(){}function m(){}var v=sc.prototype;v.Aa=function(b){this.da=b;this.b=b.b};v.Aa.prototype.V=function(){};v.ta=function(b){this.type=b;this.b=b.b};var p=v.ta.prototype,c=[];Array.isArray||(Array.isArray=function(b){return"[object Array]"===Object.prototype.toString.call(b)});p.V=function(){this.Fb=this.L[0];this.Vb=this.L[1];this.yc=
this.L[2];this.uc||(this.dd=f());var b=this.dd;b.length=this.Fb;var c,a,e;for(c=0;c<this.Fb;c++)for(b[c]||(b[c]=f()),b[c].length=this.Vb,a=0;a<this.Vb;a++)for(b[c][a]||(b[c][a]=f()),b[c][a].length=this.yc,e=0;e<this.yc;e++)b[c][a][e]=0;this.mc=[];this.Cd=[];this.tf=[];this.Tc=-1};p.Kf=function(){var b;for(b=0;b<this.Fb;b++)q(this.dd[b]);y(this.dd)};p.Nc=function(b,c,a){b=Math.floor(b);c=Math.floor(c);a=Math.floor(a);return isNaN(b)||0>b||b>this.Fb-1||isNaN(c)||0>c||c>this.Vb-1||isNaN(a)||0>a||a>this.yc-
1?0:this.dd[b][c][a]};p.set=function(b,c,a,e){b=Math.floor(b);c=Math.floor(c);a=Math.floor(a);isNaN(b)||0>b||b>this.Fb-1||isNaN(c)||0>c||c>this.Vb-1||isNaN(a)||0>a||a>this.yc-1||(this.dd[b][c][a]=e)};p.hw=function(){return JSON.stringify({c2array:!0,size:[this.Fb,this.Vb,this.yc],data:this.dd})};p.Ib=function(){return{size:[this.Fb,this.Vb,this.yc],data:this.dd}};p.Zb=function(b){var c=b.size;this.Fb=c[0];this.Vb=c[1];this.yc=c[2];this.dd=b.data};p.oe=function(b,c,a){0>b&&(b=0);0>c&&(c=0);0>a&&(a=
0);if(this.Fb!==b||this.Vb!==c||this.yc!==a){this.Fb=b;this.Vb=c;this.yc=a;var e,k,g=this.dd;g.length=b;for(b=0;b<this.Fb;b++)for(ia(g[b])&&(g[b]=f()),g[b].length=c,e=0;e<this.Vb;e++)for(ia(g[b][e])&&(g[b][e]=f()),g[b][e].length=a,k=0;k<this.yc;k++)ia(g[b][e][k])&&(g[b][e][k]=0)}};p.Ip=function(){return 0<=this.Tc&&this.Tc<this.mc.length?this.mc[this.Tc]:0};p.Jp=function(){return 0<=this.Tc&&this.Tc<this.Cd.length?this.Cd[this.Tc]:0};p.mw=function(){return 0<=this.Tc&&this.Tc<this.tf.length?this.tf[this.Tc]:
0};n.prototype.mo=function(b,c,a){return gc(this.Nc(b,0,0),c,a)};p.Wl=function(b){this.b.Mf(b.aa);b.Nf();this.b.Ld(b.aa)};n.prototype.ts=function(b){var c=this.b.Ia().Na;this.Tc++;var a=this.Tc;a===this.mc.length?(this.mc.push(0),this.Cd.push(0),this.tf.push(0)):(this.mc[a]=0,this.Cd[a]=0,this.tf[a]=0);switch(b){case 0:for(this.mc[a]=0;this.mc[a]<this.Fb;this.mc[a]++)for(this.Cd[a]=0;this.Cd[a]<this.Vb;this.Cd[a]++)for(this.tf[a]=0;this.tf[a]<this.yc;this.tf[a]++)this.Wl(c);break;case 1:for(this.mc[a]=
0;this.mc[a]<this.Fb;this.mc[a]++)for(this.Cd[a]=0;this.Cd[a]<this.Vb;this.Cd[a]++)this.Wl(c);break;case 2:for(this.mc[a]=0;this.mc[a]<this.Fb;this.mc[a]++)this.Wl(c)}this.Tc--;return!1};n.prototype.Es=function(b,c){return gc(this.Nc(this.Ip(),this.Jp(),this.mw()),b,c)};n.prototype.Is=function(b){var c,a,e;for(c=0;c<this.Fb;c++)for(a=0;a<this.Vb;a++)for(e=0;e<this.yc;e++)if(this.dd[c][a][e]===b)return!0;return!1};v.e=new n;u.prototype.xs=function(){var b,c,a;for(b=0;b<this.Fb;b++)for(c=0;c<this.Vb;c++)for(a=
0;a<this.yc;a++)this.dd[b][c][a]=0};u.prototype.zl=function(b,c,a){this.oe(b,c,a)};u.prototype.du=function(b,c){this.set(b,0,0,c)};u.prototype.eu=function(b,c,a){this.set(b,c,0,a)};u.prototype.fu=function(b,c,a,e){this.set(b,c,a,e)};v.n=new u;m.prototype.us=function(b,c,a,e){b.xi(this.Nc(c,a||0,e||0))};m.prototype.ou=function(b){b.M(this.Fb)};m.prototype.Ts=function(b){b.M(this.Vb)};m.prototype.Ks=function(b){b.M(this.Ip())};m.prototype.Ls=function(b){b.M(this.Jp())};m.prototype.lo=function(b){b.fc(this.hw())};
v.U=new m})();function tc(f){this.b=f}
(function(){function f(a){-1===jb.indexOf(a)&&jb.push(a)}function q(a){var b=a.j,c;try{c=b.play()}catch(d){f(a);return}c?c.catch(function(){f(a)}):Dc&&!D.Gc&&f(a)}function n(){var a,b,c,d;Ec||Fa||!x||(u(),"running"===x.state&&(Ec=!0));var e=jb.slice(0);y(jb);if(!ea)for(a=0,b=e.length;a<b;++a)c=e[a],c.Ma||c.pc||(d=c.j.play())&&d.catch(function(){f(c)})}function u(){"suspended"===x.state&&x.resume&&x.resume();if(x.createBuffer){var a=x.createBuffer(1,220,22050),c=x.createBufferSource();c.buffer=a;c.connect(x.destination);
b(c)}}function m(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function v(a){a=a.toLowerCase();return Y.hasOwnProperty(a)&&Y[a].length?Y[a][0].Ac():x.destination}function p(){return x.createGain?x.createGain():x.createGainNode()}function c(a){return x.createDelay?x.createDelay(a):x.createDelayNode(a)}function b(a,b){a.start?a.start(b||0):a.noteOn(b||0)}function d(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.eb=[a,b,c,d,e,f];this.Z=p();this.H=p();this.H.gain.value=f;this.G=p();this.G.gain.value=1-f;this.Ra=x.createBiquadFilter();this.Ra.type="number"===typeof this.Ra.type?a:Gc[a];this.Ra.frequency.value=b;this.Ra.detune&&(this.Ra.detune.value=c);this.Ra.Q.value=d;this.Ra.gain.value=e;this.Z.connect(this.Ra);this.Z.connect(this.G);this.Ra.connect(this.H)}function k(a,b,d){this.type="delay";this.eb=[a,b,d];this.Z=p();this.H=p();this.H.gain.value=d;this.G=p();this.G.gain.value=
1-d;this.hi=p();this.Rc=c(a);this.Rc.delayTime.value=a;this.pj=p();this.pj.gain.value=b;this.Z.connect(this.hi);this.Z.connect(this.G);this.hi.connect(this.H);this.hi.connect(this.Rc);this.Rc.connect(this.pj);this.pj.connect(this.hi)}function g(a,b,c,d){this.type="convolve";this.eb=[b,c,d];this.Z=p();this.H=p();this.H.gain.value=c;this.G=p();this.G.gain.value=1-c;this.mf=x.createConvolver();a&&(this.mf.normalize=b,this.mf.buffer=a);this.Z.connect(this.mf);this.Z.connect(this.G);this.mf.connect(this.H)}
function l(a,d,e,f,h){this.type="flanger";this.eb=[a,d,e,f,h];this.Z=p();this.G=p();this.G.gain.value=1-h/2;this.H=p();this.H.gain.value=h/2;this.wj=p();this.wj.gain.value=f;this.Rc=c(a+d);this.Rc.delayTime.value=a;this.lb=x.createOscillator();this.lb.frequency.value=e;this.tc=p();this.tc.gain.value=d;this.Z.connect(this.Rc);this.Z.connect(this.G);this.Rc.connect(this.H);this.Rc.connect(this.wj);this.wj.connect(this.Rc);this.lb.connect(this.tc);this.tc.connect(this.Rc.delayTime);b(this.lb)}function r(a,
c,d,e,f,h){this.type="phaser";this.eb=[a,c,d,e,f,h];this.Z=p();this.G=p();this.G.gain.value=1-h/2;this.H=p();this.H.gain.value=h/2;this.Ra=x.createBiquadFilter();this.Ra.type="number"===typeof this.Ra.type?7:"allpass";this.Ra.frequency.value=a;this.Ra.detune&&(this.Ra.detune.value=c);this.Ra.Q.value=d;this.lb=x.createOscillator();this.lb.frequency.value=f;this.tc=p();this.tc.gain.value=e;this.Z.connect(this.Ra);this.Z.connect(this.G);this.Ra.connect(this.H);this.lb.connect(this.tc);this.tc.connect(this.Ra.frequency);
b(this.lb)}function K(a){this.type="gain";this.eb=[a];this.ca=p();this.ca.gain.value=a}function h(a,c){this.type="tremolo";this.eb=[a,c];this.ca=p();this.ca.gain.value=1-c/2;this.lb=x.createOscillator();this.lb.frequency.value=a;this.tc=p();this.tc.gain.value=c/2;this.lb.connect(this.tc);this.tc.connect(this.ca.gain);b(this.lb)}function t(a,c){this.type="ringmod";this.eb=[a,c];this.Z=p();this.H=p();this.H.gain.value=c;this.G=p();this.G.gain.value=1-c;this.si=p();this.si.gain.value=0;this.lb=x.createOscillator();
this.lb.frequency.value=a;this.lb.connect(this.si.gain);b(this.lb);this.Z.connect(this.si);this.Z.connect(this.G);this.si.connect(this.H)}function A(a,b,c,d,e){this.type="distortion";this.eb=[a,b,c,d,e];this.Z=p();this.Hk=p();this.Gk=p();this.my(c,Math.pow(10,d/20));this.H=p();this.H.gain.value=e;this.G=p();this.G.gain.value=1-e;this.nl=x.createWaveShaper();this.nj=new Float32Array(65536);this.fw(a,b);this.nl.nj=this.nj;this.Z.connect(this.Hk);this.Z.connect(this.G);this.Hk.connect(this.nl);this.nl.connect(this.Gk);
this.Gk.connect(this.H)}function Z(a,b,c,d,e){this.type="compressor";this.eb=[a,b,c,d,e];this.ca=x.createDynamicsCompressor();try{this.ca.threshold.value=a,this.ca.knee.value=b,this.ca.ratio.value=c,this.ca.attack.value=d,this.ca.release.value=e}catch(f){}}function S(a,b){this.type="analyser";this.eb=[a,b];this.ca=x.createAnalyser();this.ca.fftSize=a;this.ca.smoothingTimeConstant=b;this.dw=new Float32Array(this.ca.frequencyBinCount);this.Or=new Uint8Array(a);this.mi=0}function Q(){this.ka=null;this.kk=
0}function L(a,b){this.src=a;this.T=G;this.Fd=b;this.Vi=!1;var c=this;this.Fg=this.Lg=null;this.Mg=[];this.Rk=0;this.ho=this.uj=this.Tr=this.Ck=!1;1===G&&b&&!kb&&(this.T=0,this.Lg=p());this.Vd=this.ba=null;var d;switch(this.T){case 0:this.ba=new Audio;this.ba.crossOrigin="anonymous";this.ba.addEventListener("canplaythrough",function(){c.ho=!0});1===G&&x.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.Tr=!0,this.ba.addEventListener("canplay",function(){!c.Fg&&c.ba&&(c.Fg=x.createMediaElementSource(c.ba),
c.Fg.connect(c.Lg))}));this.ba.autoplay=!1;this.ba.Rz="auto";this.ba.src=a;break;case 1:D.Yj?D.yp(a,function(a){c.Vd=a;c.np()},function(){c.uj=!0}):(d=new XMLHttpRequest,d.open("GET",a,!0),d.responseType="arraybuffer",d.onload=function(){c.Vd=d.response;c.np()},d.onerror=function(){c.uj=!0},d.send());break;case 2:this.ba=!0;break;case 3:this.ba=!0}}function w(a,b){var c=this;this.tag=b;this.Ma=this.Dd=!0;this.src=a.src;this.buffer=a;this.T=G;this.Fd=a.Fd;this.playbackRate=1;this.rg=!0;this.pc=this.Jc=
!1;this.ec=0;this.Oh=this.wg=this.Hd=!1;this.volume=1;this.kn=function(a){if(!c.pc&&!c.Jc){var b=this;b||(b=a.target);b===c.Ui&&(c.rg=!0,c.Ma=!0,ka=c.tag,D.trigger(tc.prototype.e.Oi,O))}};this.Ui=null;this.tg=1===R&&!this.Fd||2===R;this.Hg=1;this.startTime=this.tg?D.ib.Y:D.we.Y;this.Ta=this.Xa=null;this.Jd=!1;this.xb=null;this.br=this.$q=this.Zq=this.Yq=this.dr=this.cr=0;this.j=null;var d=!1;1!==this.T||0!==this.buffer.T||this.buffer.Tr||(this.T=0);switch(this.T){case 0:this.Fd?(this.j=a.ba,d=!a.Vi,
a.Vi=!0):(this.j=new Audio,this.j.crossOrigin="anonymous",this.j.autoplay=!1,this.j.src=a.ba.src,d=!0);d&&this.j.addEventListener("ended",function(){ka=c.tag;c.Ma=!0;D.trigger(tc.prototype.e.Oi,O)});break;case 1:this.Xa=p();this.Xa.connect(v(b));1===this.buffer.T?a.ba&&(this.j=x.createBufferSource(),this.j.buffer=a.ba,this.j.connect(this.Xa)):(this.j=this.buffer.ba,this.buffer.Lg.connect(this.Xa),this.buffer.Vi||(this.buffer.Vi=!0,this.buffer.ba.addEventListener("ended",function(){ka=c.tag;c.Ma=!0;
D.trigger(tc.prototype.e.Oi,O)})));break;case 2:this.j=new window.Media(z+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(c.rg=!0,c.Ma=!0,ka=c.tag,D.trigger(tc.prototype.e.Oi,O))});break;case 3:this.j=!0}}function F(a){y(Da);if(a.length){var b,c,d;b=0;for(c=E.length;b<c;b++)d=E[b],nb(a,d.tag)&&Da.push(d)}else J&&!J.yf()&&(y(Da),Da[0]=J)}function I(a,b){Y.hasOwnProperty(a)?Y[a].push(b):Y[a]=[b];var c,d,e,f,h=x.destination;if(Y.hasOwnProperty(a)&&(e=Y[a],e.length))for(h=e[0].Ac(),c=
0,d=e.length;c<d;c++)f=e[c],c+1===d?f.Pc(x.destination):f.Pc(e[c+1].Ac());F(a);c=0;for(d=Da.length;c<d;c++)Da[c].$x(h);La&&Cb===a&&(La.disconnect(),La.connect(h))}function U(){}function V(){}var B=tc.prototype;B.Aa=function(a){this.da=a;this.b=a.b};B.Aa.prototype.V=function(){};var D=null,O=null,ka="",z="",G=0,x=null,N=[],E=[],J=null,H=!1,R=0,ea=!1,M=1,na=0,fa=0,Fa=!1,Ab=1,Bb=1,Bc=10,Cc=1E4,Fc=1,La=null,Cb="",Dc=!1,jb=[],kb=!1,Ec=!1;document.addEventListener("pointerup",n,!0);document.addEventListener("touchend",
n,!0);document.addEventListener("click",n,!0);document.addEventListener("keydown",n,!0);document.addEventListener("gamepadconnected",n,!0);var Y={},Gc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");e.prototype.Pc=function(a){this.H.disconnect();this.H.connect(a);this.G.disconnect();this.G.connect(a)};e.prototype.remove=function(){this.Z.disconnect();this.Ra.disconnect();this.H.disconnect();this.G.disconnect()};e.prototype.Ac=function(){return this.Z};k.prototype.Pc=
function(a){this.H.disconnect();this.H.connect(a);this.G.disconnect();this.G.connect(a)};k.prototype.remove=function(){this.Z.disconnect();this.hi.disconnect();this.Rc.disconnect();this.pj.disconnect();this.H.disconnect();this.G.disconnect()};k.prototype.Ac=function(){return this.Z};g.prototype.Pc=function(a){this.H.disconnect();this.H.connect(a);this.G.disconnect();this.G.connect(a)};g.prototype.remove=function(){this.Z.disconnect();this.mf.disconnect();this.H.disconnect();this.G.disconnect()};g.prototype.Ac=
function(){return this.Z};l.prototype.Pc=function(a){this.G.disconnect();this.G.connect(a);this.H.disconnect();this.H.connect(a)};l.prototype.remove=function(){this.Z.disconnect();this.Rc.disconnect();this.lb.disconnect();this.tc.disconnect();this.G.disconnect();this.H.disconnect();this.wj.disconnect()};l.prototype.Ac=function(){return this.Z};r.prototype.Pc=function(a){this.G.disconnect();this.G.connect(a);this.H.disconnect();this.H.connect(a)};r.prototype.remove=function(){this.Z.disconnect();this.Ra.disconnect();
this.lb.disconnect();this.tc.disconnect();this.G.disconnect();this.H.disconnect()};r.prototype.Ac=function(){return this.Z};K.prototype.Pc=function(a){this.ca.disconnect();this.ca.connect(a)};K.prototype.remove=function(){this.ca.disconnect()};K.prototype.Ac=function(){return this.ca};h.prototype.Pc=function(a){this.ca.disconnect();this.ca.connect(a)};h.prototype.remove=function(){this.lb.disconnect();this.tc.disconnect();this.ca.disconnect()};h.prototype.Ac=function(){return this.ca};t.prototype.Pc=
function(a){this.H.disconnect();this.H.connect(a);this.G.disconnect();this.G.connect(a)};t.prototype.remove=function(){this.lb.disconnect();this.si.disconnect();this.Z.disconnect();this.H.disconnect();this.G.disconnect()};t.prototype.Ac=function(){return this.Z};A.prototype.my=function(a,b){.01>a&&(a=.01);this.Hk.gain.value=a;this.Gk.gain.value=Math.pow(1/a,.6)*b};A.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};A.prototype.fw=
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.nj[32768+f]=e,this.nj[32768-f-1]=-e};A.prototype.Pc=function(a){this.H.disconnect();this.H.connect(a);this.G.disconnect();this.G.connect(a)};A.prototype.remove=function(){this.Z.disconnect();this.Hk.disconnect();this.nl.disconnect();this.Gk.disconnect();this.H.disconnect();this.G.disconnect()};A.prototype.Ac=function(){return this.Z};Z.prototype.Pc=function(a){this.ca.disconnect();
this.ca.connect(a)};Z.prototype.remove=function(){this.ca.disconnect()};Z.prototype.Ac=function(){return this.ca};S.prototype.mb=function(){this.ca.getFloatFrequencyData(this.dw);this.ca.getByteTimeDomainData(this.Or);for(var a=this.ca.fftSize,b=0,c=this.mi=0,d=0;b<a;b++)d=(this.Or[b]-128)/128,0>d&&(d=-d),this.mi<d&&(this.mi=d),c+=d*d;this.mi=m(this.mi);m(Math.sqrt(c/a))};S.prototype.Pc=function(a){this.ca.disconnect();this.ca.connect(a)};S.prototype.remove=function(){this.ca.disconnect()};S.prototype.Ac=
function(){return this.ca};Q.prototype.vi=function(a){this.ka=a};Q.prototype.Nj=function(){return!!this.ka};Q.prototype.mb=function(){};L.prototype.ay=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.Fg&&(this.Fg.disconnect(),this.Fg=null);this.Lg&&(this.Lg.disconnect(),this.Lg=null);this.Vd=this.ba=null};L.prototype.np=function(){if(!this.ba&&this.Vd){var a=this;if(x.decodeAudioData)x.decodeAudioData(this.Vd,function(b){a.ba=b;a.Vd=null;
var c,d,e;if(ia(a.Dk)||ea)ia(a.ij)||(c=a.ij.mf,c.normalize=a.Mq,c.buffer=b);else if(a.Mg.length){c=0;for(d=a.Mg.length;c<d;c++){b=a.Mg[c];e=new w(a,b.Yr);e.Hn(!0);if("undefined"!==typeof b.Oq&&(b.ka=D.Ij(b.Oq),!b.ka))continue;if(b.ka){var f=Sa(b.ka.x,b.ka.y,-b.ka.i.Ya(),na,fa,!0),h=Sa(b.ka.x,b.ka.y,-b.ka.i.Ya(),na,fa,!1);e.Gn(f,h,Ia(b.ka.k-b.ka.i.Ya()),b.ym,b.cn,b.gn);e.vi(b.ka)}else e.Gn(b.x,b.y,b.tu,b.ym,b.cn,b.gn);e.play(a.Ym,a.fo,a.Rk);a.Ck&&e.pause();E.push(e)}y(a.Mg)}else e=new w(a,a.Dk||""),
e.play(a.Ym,a.fo,a.Rk),a.Ck&&e.pause(),E.push(e)},function(){a.uj=!0});else if(this.ba=x.createBuffer(this.Vd,!1),this.Vd=null,ia(this.Dk)||ea)ia(this.ij)||(b=this.ij.mf,b.normalize=this.Mq,b.buffer=this.ba);else{var b=new w(this,this.Dk);b.play(this.Ym,this.fo,this.Rk);this.Ck&&b.pause();E.push(b)}}};L.prototype.Xp=function(){switch(this.T){case 0:var a=4<=this.ba.readyState;a&&(this.ho=!0);return a||this.ho;case 1:return!!this.Vd||!!this.ba;case 2:return!0;case 3:return!0}return!1};L.prototype.ax=
function(){switch(this.T){case 0:return this.Xp();case 1:return!!this.ba;case 2:return!0;case 3:return!0}return!1};L.prototype.Ow=function(){switch(this.T){case 0:return!!this.ba.error;case 1:return this.uj}return!1};w.prototype.yf=function(){switch(this.T){case 0:return this.j.ended;case 1:return 1===this.buffer.T?!this.Dd&&!this.Ma&&this.j.loop||this.pc?!1:this.rg:this.j.ended;case 2:return this.rg;case 3:!0}return!0};w.prototype.Lu=function(){return this.Dd||this.Ma?!0:this.yf()};w.prototype.Hn=
function(a){1===G&&(!this.Jd&&a?this.Xa&&(this.Ta||(this.Ta=x.createPanner(),this.Ta.panningModel="number"===typeof this.Ta.panningModel?Ab:["equalpower","HRTF","soundfield"][Ab],this.Ta.distanceModel="number"===typeof this.Ta.distanceModel?Bb:["linear","inverse","exponential"][Bb],this.Ta.refDistance=Bc,this.Ta.maxDistance=Cc,this.Ta.rolloffFactor=Fc),this.Xa.disconnect(),this.Xa.connect(this.Ta),this.Ta.connect(v(this.tag)),this.Jd=!0):this.Jd&&!a&&this.Xa&&(this.Ta.disconnect(),this.Xa.disconnect(),
this.Xa.connect(v(this.tag)),this.Jd=!1))};w.prototype.Gn=function(a,b,c,d,e,f){this.Jd&&1===G&&(this.Ta.setPosition(a,b,0),this.Ta.setOrientation(Math.cos(C(c)),Math.sin(C(c)),0),this.Ta.coneInnerAngle=d,this.Ta.coneOuterAngle=e,this.Ta.coneOuterGain=f,this.cr=a,this.dr=b,this.Yq=c,this.Zq=d,this.$q=e,this.br=f)};w.prototype.vi=function(a){this.Jd&&1===G&&(this.xb||(this.xb=new Q),this.xb.vi(a))};w.prototype.mb=function(a){if(this.Jd&&1===G&&this.xb&&this.xb.Nj()&&this.Lh()){this.xb.mb(a);a=this.xb.ka;
var b=Sa(a.x,a.y,-a.i.Ya(),na,fa,!0),c=Sa(a.x,a.y,-a.i.Ya(),na,fa,!1);this.Ta.setPosition(b,c,0);b=0;"undefined"!==typeof this.xb.ka.k&&(b=a.k-a.i.Ya(),this.Ta.setOrientation(Math.cos(b),Math.sin(b),0))}};w.prototype.play=function(a,c,e,f){var h=this.j;this.Hd=a;this.volume=c;e=e||0;f=f||0;switch(this.T){case 0:1!==h.playbackRate&&(h.playbackRate=1);h.volume!==c*M&&(h.volume=c*M);h.loop!==a&&(h.loop=a);h.muted&&(h.muted=!1);if(h.currentTime!==e)try{h.currentTime=e}catch(g){}q(this);break;case 1:this.muted=
!1;this.Hg=1;if(1===this.buffer.T)this.Xa.gain.value=c*M,this.Dd||(this.j=x.createBufferSource(),this.j.buffer=this.buffer.ba,this.j.connect(this.Xa)),this.j.onended=this.kn,this.Ui=this.j,this.j.loop=a,this.rg=!1,0===e?b(this.j,f):d(this.j,e,this.uf(),f);else{1!==h.playbackRate&&(h.playbackRate=1);h.loop!==a&&(h.loop=a);h.volume=c*M;if(h.currentTime!==e)try{h.currentTime=e}catch(k){}q(this)}break;case 2:(!this.Dd&&this.Ma||0!==e)&&h.seekTo(e);h.play();this.rg=!1;break;case 3:D.ub?AppMobi.context.playSound(this.src,
a):AppMobi.player.playSound(this.src,a)}this.playbackRate=1;this.startTime=(this.tg?D.ib.Y:D.we.Y)-e;this.pc=this.Ma=this.Dd=!1};w.prototype.stop=function(){switch(this.T){case 0:this.j.paused||this.j.pause();break;case 1:1===this.buffer.T?a(this.j):this.j.paused||this.j.pause();break;case 2:this.j.stop();break;case 3:D.ub&&AppMobi.context.stopSound(this.src)}this.Ma=!0;this.pc=!1};w.prototype.pause=function(){if(!(this.Dd||this.Ma||this.yf()||this.pc)){switch(this.T){case 0:this.j.paused||this.j.pause();
break;case 1:1===this.buffer.T?(this.ec=this.pm(!0),this.Hd&&(this.ec=this.ec%this.uf()),this.pc=!0,a(this.j)):this.j.paused||this.j.pause();break;case 2:this.j.pause();break;case 3:D.ub&&AppMobi.context.stopSound(this.src)}this.pc=!0}};w.prototype.sr=function(){if(!(this.Dd||this.Ma||this.yf())&&this.pc){switch(this.T){case 0:q(this);break;case 1:1===this.buffer.T?(this.j=x.createBufferSource(),this.j.buffer=this.buffer.ba,this.j.connect(this.Xa),this.j.onended=this.kn,this.Ui=this.j,this.j.loop=
this.Hd,this.Xa.gain.value=M*this.volume*this.Hg,this.jl(),this.startTime=(this.tg?D.ib.Y:D.we.Y)-this.ec/(this.playbackRate||.001),d(this.j,this.ec,this.uf())):q(this);break;case 2:this.j.play();break;case 3:D.ub&&AppMobi.context.resumeSound(this.src)}this.pc=!1}};w.prototype.seek=function(a){if(!(this.Dd||this.Ma||this.yf()))switch(this.T){case 0:try{this.j.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.T)this.pc?this.ec=a:(this.pause(),this.ec=a,this.sr());else try{this.j.currentTime=
a}catch(c){}break;case 3:D.ub&&AppMobi.context.seekSound(this.src,a)}};w.prototype.$x=function(a){1===this.T&&(this.Jd?(this.Ta.disconnect(),this.Ta.connect(a)):(this.Xa.disconnect(),this.Xa.connect(a)))};w.prototype.uf=function(){var a=0;switch(this.T){case 0:"undefined"!==typeof this.j.duration&&(a=this.j.duration);break;case 1:a=this.buffer.ba.duration;break;case 2:a=this.j.getDuration();break;case 3:D.ub&&(a=AppMobi.context.getDurationSound(this.src))}return a};w.prototype.pm=function(a){var b=
this.uf(),c=0;switch(this.T){case 0:"undefined"!==typeof this.j.currentTime&&(c=this.j.currentTime);break;case 1:if(1===this.buffer.T){if(this.pc)return this.ec;c=(this.tg?D.ib.Y:D.we.Y)-this.startTime}else"undefined"!==typeof this.j.currentTime&&(c=this.j.currentTime);break;case 3:D.ub&&(c=AppMobi.context.getPlaybackTimeSound(this.src))}a&&(c*=this.playbackRate);!this.Hd&&c>b&&(c=b);return c};w.prototype.Lh=function(){return!this.pc&&!this.Dd&&!this.Ma&&!this.yf()};w.prototype.ty=function(){return!this.Dd&&
!this.Ma&&!this.yf()};w.prototype.Dy=function(){var a=this.volume*M;isFinite(a)||(a=0);switch(this.T){case 0:"undefined"!==typeof this.j.volume&&this.j.volume!==a&&(this.j.volume=a);break;case 1:1===this.buffer.T?this.Xa.gain.value=a*this.Hg:"undefined"!==typeof this.j.volume&&this.j.volume!==a&&(this.j.volume=a)}};w.prototype.sj=function(a){switch(this.T){case 0:this.j.muted!==!!a&&(this.j.muted=!!a);break;case 1:1===this.buffer.T?(this.Hg=a?0:1,this.Xa.gain.value=M*this.volume*this.Hg):this.j.muted!==
!!a&&(this.j.muted=!!a)}};w.prototype.ny=function(){this.wg=!0;this.sj(this.wg||this.Oh)};w.prototype.Ir=function(a){this.Oh=!!a;this.sj(this.wg||this.Oh)};w.prototype.jl=function(){var a=this.playbackRate;this.tg&&(a*=D.Sf);switch(this.T){case 0:this.j.playbackRate!==a&&(this.j.playbackRate=a);break;case 1:1===this.buffer.T?this.j.playbackRate.value!==a&&(this.j.playbackRate.value=a):this.j.playbackRate!==a&&(this.j.playbackRate=a)}};w.prototype.qy=function(b){switch(this.T){case 0:b?this.Lh()?(this.Jc=
!0,this.j.pause()):this.Jc=!1:this.Jc&&(this.j.play(),this.Jc=!1);break;case 1:b?this.Lh()?(this.Jc=!0,1===this.buffer.T?(this.ec=this.pm(!0),this.Hd&&(this.ec=this.ec%this.uf()),a(this.j)):this.j.pause()):this.Jc=!1:this.Jc&&(1===this.buffer.T?(this.j=x.createBufferSource(),this.j.buffer=this.buffer.ba,this.j.connect(this.Xa),this.j.onended=this.kn,this.Ui=this.j,this.j.loop=this.Hd,this.Xa.gain.value=M*this.volume*this.Hg,this.jl(),this.startTime=(this.tg?D.ib.Y:D.we.Y)-this.ec/(this.playbackRate||
.001),d(this.j,this.ec,this.uf())):this.j.play(),this.Jc=!1);break;case 2:b?this.Lh()?(this.j.pause(),this.Jc=!0):this.Jc=!1:this.Jc&&(this.Jc=!1,this.j.play())}};B.ta=function(a){this.type=a;D=this.b=a.b;O=this;this.qc=null;this.Xh=-600;this.b.Yj&&(kb=!0);!(this.b.Bf||this.b.sg&&(this.b.Gm||this.b.Sj))||this.b.Uj||this.b.Oa||this.b.Vp||kb||(Dc=!0);x=null;"undefined"!==typeof AudioContext?(G=1,x=new AudioContext):"undefined"!==typeof webkitAudioContext&&(G=1,x=new webkitAudioContext);this.b.Bf&&x&&
(x.close&&x.close(),"undefined"!==typeof AudioContext?x=new AudioContext:"undefined"!==typeof webkitAudioContext&&(x=new webkitAudioContext));1!==G&&(this.b.Ec&&"undefined"!==typeof window.Media?G=2:this.b.Wp&&(G=3));2===G&&(z=location.href,a=z.lastIndexOf("/"),-1<a&&(z=z.substr(0,a+1)),z=z.replace("file://",""));if(this.b.bx&&this.b.cx&&"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.ye(this);
else{if(this.b.ub)H=this.b.sg;else try{H=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')&&!this.b.Zj}catch(b){H=!1}this.b.Zg(this)}};var va=B.ta.prototype;va.V=function(){this.b.Yf=this;R=this.L[0];this.ne=this.L[1];this.Nx=0!==this.L[2];this.Kq=0;Ab=this.L[3];Bb=this.L[4];this.Xh=-this.L[5];Bc=this.L[6];Cc=this.L[7];Fc=this.L[8];this.qc=new Q;var a=this.b.D||this.b.width,b=this.b.C||this.b.height;1===G&&(x.listener.setPosition(a/2,b/2,this.Xh),x.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=
function(a,b){La&&La.disconnect();Cb=b.toLowerCase();La=x.createMediaStreamSource(a);La.connect(v(Cb))});this.b.Vo(function(a){O.Ix(a)});var c=this;this.b.xu(function(a){c.Ax(a)})};va.Ax=function(a){var b,c,d;b=0;for(c=E.length;b<c;b++)d=E[b],d.xb&&d.xb.ka===a&&(d.xb.ka=null,d.Jd&&d.Lh()&&d.Hd&&d.stop());this.qc.ka===a&&(this.qc.ka=null)};va.Ib=function(){var a={silent:ea,masterVolume:M,listenerZ:this.Xh,listenerUid:this.qc.Nj()?this.qc.ka.uid:-1,playing:[],effects:{}},b=a.playing,c,d,e,f,h,g;c=0;
for(d=E.length;c<d;c++)e=E[c],!e.ty()||3===this.ne||e.Fd&&1===this.ne||!e.Fd&&2===this.ne||(f=e.pm(),e.Hd&&(f=f%e.uf()),f={tag:e.tag,buffersrc:e.buffer.src,is_music:e.Fd,playbackTime:f,volume:e.volume,looping:e.Hd,muted:e.wg,playbackRate:e.playbackRate,paused:e.pc,resume_position:e.ec},e.Jd&&(f.pan={},g=f.pan,e.xb&&e.xb.Nj()?g.objUid=e.xb.ka.uid:(g.x=e.cr,g.y=e.dr,g.a=e.Yq),g.ia=e.Zq,g.oa=e.$q,g.og=e.br),b.push(f));b=a.effects;for(h in Y)if(Y.hasOwnProperty(h)){e=[];c=0;for(d=Y[h].length;c<d;c++)e.push({type:Y[h][c].type,
params:Y[h][c].eb});b[h]=e}return a};var Va=[];va.Zb=function(a){var b=a.silent;M=a.masterVolume;this.Xh=a.listenerZ;this.qc.vi(null);var c=a.listenerUid;-1!==c&&(this.qc.kk=c,Va.push(this.qc));var c=a.playing,d,f,m,n,p,v,q,u,B,w,x;if(3!==this.ne)for(d=0,f=E.length;d<f;d++)B=E[d],B.Fd&&1===this.ne||(B.Fd||2!==this.ne)&&B.stop();for(p in Y)if(Y.hasOwnProperty(p))for(d=0,f=Y[p].length;d<f;d++)Y[p][d].remove();Za(Y);for(p in a.effects)if(a.effects.hasOwnProperty(p))for(v=a.effects[p],d=0,f=v.length;d<
f;d++)switch(m=v[d].type,w=v[d].params,m){case "filter":I(p,new e(w[0],w[1],w[2],w[3],w[4],w[5]));break;case "delay":I(p,new k(w[0],w[1],w[2]));break;case "convolve":m=w[2];B=this.Ej(m,!1);B.ba?m=new g(B.ba,w[0],w[1],m):(m=new g(null,w[0],w[1],m),B.Mq=w[0],B.ij=m);I(p,m);break;case "flanger":I(p,new l(w[0],w[1],w[2],w[3],w[4]));break;case "phaser":I(p,new r(w[0],w[1],w[2],w[3],w[4],w[5]));break;case "gain":I(p,new K(w[0]));break;case "tremolo":I(p,new h(w[0],w[1]));break;case "ringmod":I(p,new t(w[0],
w[1]));break;case "distortion":I(p,new A(w[0],w[1],w[2],w[3],w[4]));break;case "compressor":I(p,new Z(w[0],w[1],w[2],w[3],w[4]));break;case "analyser":I(p,new S(w[0],w[1]))}d=0;for(f=c.length;d<f;d++)3===this.ne||(a=c[d],m=a.buffersrc,n=a.is_music,p=a.tag,v=a.playbackTime,q=a.looping,u=a.volume,x=(w=a.pan)&&w.hasOwnProperty("objUid")?w.objUid:-1,n&&1===this.ne)||!n&&2===this.ne||((B=this.Dp(m,p,n,q,u))?(B.ec=a.resume_position,B.Hn(!!w),B.play(q,u,v),B.jl(),B.Dy(),B.sj(B.wg||B.Oh),a.paused&&B.pause(),
a.muted&&B.ny(),B.sj(B.wg||B.Oh),w&&(-1!==x?(B.xb=B.xb||new Q,B.xb.kk=x,Va.push(B.xb)):B.Gn(w.x,w.y,w.a,w.ia,w.oa,w.og))):(B=this.Ej(m,n),B.Rk=v,B.Ck=a.paused,w&&(-1!==x?B.Mg.push({Oq:x,ym:w.ia,cn:w.oa,gn:w.og,Yr:p}):B.Mg.push({x:w.x,y:w.y,tu:w.a,ym:w.ia,cn:w.oa,gn:w.og,Yr:p}))));if(b&&!ea){d=0;for(f=E.length;d<f;d++)E[d].Ir(!0);ea=!0}else if(!b&&ea){d=0;for(f=E.length;d<f;d++)E[d].Ir(!1);ea=!1}};va.De=function(){var a,b,c,d;a=0;for(b=Va.length;a<b;a++)c=Va[a],d=this.b.Ij(c.kk),c.vi(d),c.kk=-1,d&&
(na=d.x,fa=d.y);y(Va)};va.Ix=function(a){if(!this.Nx){!a&&x&&x.resume&&(x.resume(),Fa=!1);var b,c;b=0;for(c=E.length;b<c;b++)E[b].qy(a);a&&x&&x.suspend&&(x.suspend(),Fa=!0)}};va.mb=function(){var a=this.b.Ke,b,c,d;b=0;for(c=E.length;b<c;b++)d=E[b],d.mb(a),0!==R&&d.jl();var e,f;for(e in Y)if(Y.hasOwnProperty(e))for(d=Y[e],b=0,c=d.length;b<c;b++)f=d[b],f.mb&&f.mb();1===G&&this.qc.Nj()&&(this.qc.mb(a),na=this.qc.ka.x,fa=this.qc.ka.y,x.listener.setPosition(this.qc.ka.x,this.qc.ka.y,this.Xh))};var Wa=
[];va.oy=function(a){var b,c,d,e,f,h=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))&&H||!f&&!H)Wa.push({filename:e,size:d,ka:null}),h+=d;return h};va.vy=function(){var a,b,c,d;a=0;for(b=Wa.length;a<b;++a)c=Wa[a],d=this.b.em+c.filename,c.ka=this.Ej(d,!1)};va.uw=function(){var a=0,b,c,d;b=0;for(c=Wa.length;b<c;++b)d=Wa[b],d.ka.ax()||d.ka.Ow()||this.b.Oa||this.b.Sj?a+=d.size:d.ka.Xp()&&(a+=Math.floor(d.size/2));return a};va.by=function(){var a,b,
c,d;c=a=0;for(b=N.length;a<b;++a)d=N[a],N[c]=d,d.Fd?d.ay():++c;N.length=c};va.Ej=function(a,b){var c,d,e,f=null;c=0;for(d=N.length;c<d;c++)if(e=N[c],e.src===a){f=e;break}f||(kb&&b&&this.by(),f=new L(a,b),N.push(f));return f};va.Dp=function(a,b,c,d,e){var f,h,g;f=0;for(h=E.length;f<h;f++)if(g=E[f],g.src===a&&(g.Lu()||c))return g.tag=b,g;a=this.Ej(a,c);if(!a.ba)return"<preload>"!==b&&(a.Dk=b,a.Ym=d,a.fo=e),null;g=new w(a,b);E.push(g);return g};var Da=[];U.prototype.Oi=function(a){return nb(ka,a)};B.e=
new U;V.prototype.Play=function(a,b,c,d){!ea&&(c=Math.pow(10,c/20),isFinite(c)||(c=0),0>c&&(c=0),1<c&&(c=1),J=this.Dp(this.b.em+a[0]+(H?".ogg":".m4a"),d,a[1],0!==b,c))&&(J.Hn(!1),J.play(0!==b,c,0,this.Kq),this.Kq=0)};V.prototype.Zt=function(a,b){F(a);var c,d;c=0;for(d=Da.length;c<d;c++)0===b?Da[c].pause():Da[c].sr()};B.n=new V;B.U=new function(){}})();function uc(f){this.b=f}
(function(){function f(){v&&p&&window.OfflineClientInfo&&window.OfflineClientInfo.SetMessageCallback(function(b){c.Gx(b)})}function q(){}function n(){}var u=uc.prototype;u.Aa=function(b){this.da=b;this.b=b.b};var m=u.Aa.prototype;m.V=function(){};var v=!1,p=!1;document.addEventListener("DOMContentLoaded",function(){if(window.C2_RegisterSW&&navigator.serviceWorker){var b=document.createElement("script");b.onload=function(){v=!0;f()};b.src="offlineClient.js";document.head.appendChild(b)}});var c=null;
m.Sq=function(){p=!0;f()};u.ta=function(b){this.type=b;this.b=b.b};m=u.ta.prototype;m.V=function(){var b=this;window.addEventListener("resize",function(){b.b.trigger(uc.prototype.e.Jt,b)});c=this;"undefined"!==typeof navigator.onLine&&(window.addEventListener("online",function(){b.b.trigger(uc.prototype.e.Gt,b)}),window.addEventListener("offline",function(){b.b.trigger(uc.prototype.e.Et,b)}));this.b.ub||(document.addEventListener("appMobi.device.update.available",function(){b.b.trigger(uc.prototype.e.yl,
b)}),document.addEventListener("backbutton",function(){b.b.trigger(uc.prototype.e.Ni,b)}),document.addEventListener("menubutton",function(){b.b.trigger(uc.prototype.e.Co,b)}),document.addEventListener("searchbutton",function(){b.b.trigger(uc.prototype.e.Kt,b)}),document.addEventListener("tizenhwkey",function(c){var a;switch(c.keyName){case "back":a=b.b.trigger(uc.prototype.e.Ni,b);!a&&window.tizen&&window.tizen.application.getCurrentApplication().exit();break;case "menu":(a=b.b.trigger(uc.prototype.e.Co,
b))||c.preventDefault()}}));this.b.Zj&&"undefined"!==typeof Windows?Windows.UI.Core.SystemNavigationManager.getForCurrentView().addEventListener("backrequested",function(c){b.b.trigger(uc.prototype.e.Ni,b)&&(c.handled=!0)}):this.b.$p&&WinJS.Application&&(WinJS.Application.onbackclick=function(){return!!b.b.trigger(uc.prototype.e.Ni,b)});this.b.Vo(function(c){c?b.b.trigger(uc.prototype.e.Ht,b):b.b.trigger(uc.prototype.e.It,b)});this.hx="undefined"!==typeof window.is_scirra_arcade};m.Gx=function(b){b=
b.data.type;"downloading-update"===b?this.b.trigger(uc.prototype.e.Mt,this):"update-ready"===b||"update-pending"===b?this.b.trigger(uc.prototype.e.yl,this):"offline-ready"===b&&this.b.trigger(uc.prototype.e.Ft,this)};q.prototype.Gt=function(){return!0};q.prototype.Et=function(){return!0};q.prototype.yl=function(){return!0};q.prototype.It=function(){return!0};q.prototype.Ht=function(){return!0};q.prototype.Jt=function(){return!0};q.prototype.Ni=function(){return!0};q.prototype.Co=function(){return!0};
q.prototype.Kt=function(){return!0};q.prototype.Mt=function(){return!0};q.prototype.yl=function(){return!0};q.prototype.Ft=function(){return!0};u.e=new q;n.prototype.Bs=function(){this.b.Dc?CocoonJS.App.forceToFinish():window.tizen?window.tizen.application.getCurrentApplication().exit():navigator.app&&navigator.app.exitApp?navigator.app.exitApp():navigator.device&&navigator.device.exitApp?navigator.device.exitApp():this.hx||this.b.Oa||window.close()};n.prototype.Os=function(b){try{eval&&eval(b)}catch(c){console&&
console.error&&console.error("Error executing Javascript: ",c)}};u.n=new n;u.U=new function(){}})();function qc(f){this.b=f}
(function(){function f(){this.name="";this.ri=0;this.eb=[]}function q(){c++;c===p.length&&p.push(new f);return p[c]}function n(){}function u(){}function m(){}var v=qc.prototype;v.Aa=function(b){this.da=b;this.b=b.b};v.Aa.prototype.V=function(){};v.ta=function(b){this.type=b;this.b=b.b};var p=[],c=-1;v.ta.prototype.V=function(){var b=this;window.c2_callFunction=function(d,a){var e,f,g,l=q();l.name=d.toLowerCase();l.ri=0;if(a)for(l.eb.length=a.length,e=0,f=a.length;e<f;++e)g=a[e],l.eb[e]="number"===
typeof g||"string"===typeof g?g:"boolean"===typeof g?g?1:0:0;else y(l.eb);b.b.trigger(qc.prototype.e.Pi,b,l.name);c--;return l.ri}};n.prototype.Pi=function(b){var d=0>c?null:p[c];return d?nb(b,d.name):!1};v.e=new n;u.prototype.CallFunction=function(b,d){var a=q();a.name=b.toLowerCase();a.ri=0;Ba(a.eb,d);this.b.trigger(qc.prototype.e.Pi,this,a.name);c--};v.n=new u;m.prototype.Nt=function(b,d){d=sa(d);var a=0>c?null:p[c];a?0<=d&&d<a.eb.length?b.xi(a.eb[d]):b.M(0):b.M(0)};m.prototype.vs=function(b,d){var a=
q();a.name=d.toLowerCase();a.ri=0;y(a.eb);var e,f;e=2;for(f=arguments.length;e<f;e++)a.eb.push(arguments[e]);this.b.trigger(qc.prototype.e.Pi,this,a.name);c--;b.xi(a.ri)};v.U=new m})();function vc(f){this.b=f}
(function(){function f(){}var q=vc.prototype;q.Aa=function(f){this.da=f;this.b=f.b};q.Aa.prototype.V=function(){};q.ta=function(f){this.type=f;this.b=f.b;this.Rh=Array(256);this.Hi=Array(256);this.ue=0};var n=q.ta.prototype;n.V=function(){var f=this;this.b.Oa||(jQuery(document).keydown(function(n){f.Bx(n)}),jQuery(document).keyup(function(n){f.Cx(n)}))};var u=[32,33,34,35,36,37,38,39,40,44];n.Bx=function(f){var n=!1;window!=window.top&&-1<u.indexOf(f.which)&&(f.preventDefault(),n=!0,f.stopPropagation());
if(this.Rh[f.which])this.Hi[f.which]&&!n&&f.preventDefault();else{this.Rh[f.which]=!0;this.ue=f.which;this.b.Gc=!0;this.b.trigger(vc.prototype.e.ot,this);var p=this.b.trigger(vc.prototype.e.wo,this),c=this.b.trigger(vc.prototype.e.Ct,this);this.b.Gc=!1;if(p||c)this.Hi[f.which]=!0,n||f.preventDefault()}};n.Cx=function(f){this.Rh[f.which]=!1;this.ue=f.which;this.b.Gc=!0;this.b.trigger(vc.prototype.e.po,this);var n=this.b.trigger(vc.prototype.e.yo,this),p=this.b.trigger(vc.prototype.e.xo,this);this.b.Gc=
!1;if(n||p||this.Hi[f.which])this.Hi[f.which]=!0,f.preventDefault()};n.Kg=function(){var f;for(f=0;256>f;++f)if(this.Rh[f]){this.Rh[f]=!1;this.ue=f;this.b.trigger(vc.prototype.e.po,this);var n=this.b.trigger(vc.prototype.e.yo,this),p=this.b.trigger(vc.prototype.e.xo,this);if(n||p)this.Hi[f]=!0}};n.Ib=function(){return{triggerKey:this.ue}};n.Zb=function(f){this.ue=f.triggerKey};f.prototype.wo=function(f){return f===this.ue};f.prototype.ot=function(){return!0};f.prototype.po=function(){return!0};f.prototype.yo=
function(f){return f===this.ue};f.prototype.Ct=function(f){return f===this.ue};f.prototype.xo=function(f){return f===this.ue};q.e=new f;q.n=new function(){};q.U=new function(){}})();var wc=!1;
try{!function(){var f,q,n;!function(){var u={},m={};f=function(f,m,c){u[f]={Uu:m,Ku:c}};n=q=function(f){function p(a){if("."!==a.charAt(0))return a;a=a.split("/");for(var b=f.split("/").slice(0,-1),c=0,d=a.length;d>c;c++){var e=a[c];".."===e?b.pop():"."!==e&&b.push(e)}return b.join("/")}if(n.Az=u,m[f])return m[f];if(m[f]={},!u[f])throw Error("Could not find module "+f);for(var c,b=u[f],d=b.Uu,b=b.Ku,a=[],e=0,k=d.length;k>e;e++)"exports"===d[e]?a.push(c={}):a.push(q(p(d[e])));d=b.apply(this,a);return m[f]=
c||d}}();f("promise/all",["./utils","exports"],function(f,m){var n=f.isArray,p=f.isFunction;m.all=function(c){if(!n(c))throw new TypeError("You must pass an array to all.");return new this(function(b,d){function a(a){return function(c){f[a]=c;0===--g&&b(f)}}var e,f=[],g=c.length;0===g&&b([]);for(var l=0;l<c.length;l++)(e=c[l])&&p(e.then)?e.then(a(l),d):(f[l]=e,0===--g&&b(f))})}});f("promise/asap",["exports"],function(f){function m(){return function(){process.Qz(c)}}function n(){var b=0,d=new a(c),
e=document.createTextNode("");return d.observe(e,{characterData:!0}),function(){e.data=b=++b%2}}function p(){return function(){e.setTimeout(c,1)}}function c(){for(var a=0;a<k.length;a++){var b=k[a];(0,b[0])(b[1])}k=[]}var b,d="undefined"!=typeof window?window:{},a=d.MutationObserver||d.WebKitMutationObserver,e="undefined"!=typeof global?global:void 0===this?window:this,k=[];b="undefined"!=typeof process&&"[object process]"==={}.toString.call(process)?m():a?n():p();f.Eu=function(a,c){1===k.push([a,
c])&&b()}});f("promise/config",["exports"],function(f){var m={Iz:!1};f.jp=m;f.Ou=function(f,n){return 2!==arguments.length?m[f]:void(m[f]=n)}});f("promise/polyfill",["./promise","./utils","exports"],function(f,m,n){var p=f.Promise,c=m.isFunction;n.Px=function(){var b;b="undefined"!=typeof global?global:"undefined"!=typeof window&&window.document?window:self;"Promise"in b&&"resolve"in b.Promise&&"reject"in b.Promise&&"all"in b.Promise&&"race"in b.Promise&&function(){var d;return new b.Promise(function(a){d=
a}),c(d)}()||(b.Promise=p)}});f("promise/promise","./config ./utils ./all ./race ./resolve ./reject ./asap exports".split(" "),function(f,m,n,p,c,b,d,a){function e(a){if(!w(a))throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");if(!(this instanceof e))throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this.Ti=[];k(a,this)}function k(a,b){function c(a){h(b,
a)}function d(a){A(b,a)}try{a(c,d)}catch(e){d(e)}}function g(a,b,c,d){var e,f,g,k,l=w(c);if(l)try{e=c(d),g=!0}catch(m){k=!0,f=m}else e=d,g=!0;q(b,e)||(l&&g?h(b,e):k?A(b,f):a===U?h(b,e):a===V&&A(b,e))}function l(a,b,c,d){a=a.Ti;var e=a.length;a[e]=b;a[e+U]=c;a[e+V]=d}function r(a,b){for(var c,d,e=a.Ti,f=a.Si,h=0;h<e.length;h+=3)c=e[h],d=e[h+b],g(b,c,d,f);a.Ti=null}function q(a,b){var c,d=null;try{if(a===b)throw new TypeError("A promises callback cannot return that same promise.");if(L(b)&&(d=b.then,
w(d)))return d.call(b,function(d){return c?!0:(c=!0,void(b!==d?h(a,d):t(a,d)))},function(b){return c?!0:(c=!0,void A(a,b))}),!0}catch(e){return c?!0:(A(a,e),!0)}return!1}function h(a,b){a===b?t(a,b):q(a,b)||t(a,b)}function t(a,b){a.Sd===F&&(a.Sd=I,a.Si=b,Q.async(Z,a))}function A(a,b){a.Sd===F&&(a.Sd=I,a.Si=b,Q.async(S,a))}function Z(a){r(a,a.Sd=U)}function S(a){r(a,a.Sd=V)}var Q=f.jp,L=(f.Ou,m.xx),w=m.isFunction;f=(m.now,n.all);p=p.race;c=c.resolve;b=b.reject;Q.async=d.Eu;var F=void 0,I=0,U=1,V=2;
e.prototype={constructor:e,Sd:void 0,Si:void 0,Ti:void 0,then:function(a,b){var c=this,d=new this.constructor(function(){});if(this.Sd){var e=arguments;Q.async(function(){g(c.Sd,d,e[c.Sd-1],c.Si)})}else l(this,d,a,b);return d},"catch":function(a){return this.then(null,a)}};e.all=f;e.race=p;e.resolve=c;e.reject=b;a.Promise=e});f("promise/race",["./utils","exports"],function(f,m){var n=f.isArray;m.race=function(f){if(!n(f))throw new TypeError("You must pass an array to race.");return new this(function(c,
b){for(var d,a=0;a<f.length;a++)(d=f[a])&&"function"==typeof d.then?d.then(c,b):c(d)})}});f("promise/reject",["exports"],function(f){f.reject=function(f){return new this(function(n,p){p(f)})}});f("promise/resolve",["exports"],function(f){f.resolve=function(f){return f&&"object"==typeof f&&f.constructor===this?f:new this(function(n){n(f)})}});f("promise/utils",["exports"],function(f){function m(f){return"function"==typeof f}var n=Date.now||function(){return(new Date).getTime()};f.xx=function(f){return m(f)||
"object"==typeof f&&null!==f};f.isFunction=m;f.isArray=function(f){return"[object Array]"===Object.prototype.toString.call(f)};f.now=n});q("promise/polyfill").Px()}();var xc=function(){return function(f){function q(u){if(n[u])return n[u].Ad;var m=n[u]={Ad:{},id:u,loaded:!1};return f[u].call(m.Ad,m,m.Ad,q),m.loaded=!0,m.Ad}var n={};return q.gf=f,q.oh=n,q.Rl="",q(0)}([function(f,q,n){q.Ri=!0;var u=function(f){function q(a,b){a[b]=function(){var c=arguments;return a.ready().then(function(){return a[b].apply(a,
c)})}}function p(){for(var a=1;a<arguments.length;a++){var b=arguments[a];if(b)for(var c in b)b.hasOwnProperty(c)&&(g(b[c])?arguments[0][c]=b[c].slice():arguments[0][c]=b[c])}return arguments[0]}function c(a){for(var b in d)if(d.hasOwnProperty(b)&&d[b]===a)return!0;return!1}var b={},d={gh:"asyncStorage",hh:"localStorageWrapper",ih:"webSQLStorage"},a="clear getItem iterate key keys length removeItem setItem".split(" "),e={description:"",hg:[d.gh,d.ih,d.hh].slice(),name:"localforage",size:4980736,la:"keyvaluepairs",
version:1},k=function(a){var b={},c;try{var e=e||a.indexedDB||a.webkitIndexedDB||a.mozIndexedDB||a.sp||a.msIndexedDB;c="undefined"!=typeof a.openDatabase&&a.navigator&&a.navigator.userAgent&&/Safari/.test(a.navigator.userAgent)&&!/Chrome/.test(a.navigator.userAgent)?!1:e&&"function"==typeof e.open&&"undefined"!=typeof a.IDBKeyRange}catch(f){c=!1}b[d.gh]=!!c;var g;try{g=a.openDatabase}catch(k){g=!1}b[d.ih]=!!g;var m;try{m=a.localStorage&&"setItem"in a.localStorage&&a.localStorage.setItem}catch(n){m=
!1}return b[d.hh]=!!m,b}(f),g=Array.isArray||function(a){return"[object Array]"===Object.prototype.toString.call(a)};return new (function(){function f(a){if(!(this instanceof f))throw new TypeError("Cannot call a class as a function");this.gh=d.gh;this.hh=d.hh;this.ih=d.ih;this.Al=p({},e);this.df=p({},this.Al,a);this.Oo=this.vd=null;this.Ae=!1;this.ga=null;this.Po();this.Fr(this.df.hg)}return f.prototype.jp=function(a){if("object"==typeof a){if(this.Ae)return Error("Can't call config() after localforage has been used.");
for(var b in a)"storeName"===b&&(a[b]=a[b].replace(/\W/g,"_")),this.df[b]=a[b];return"driver"in a&&a.hg&&this.Fr(this.df.hg),!0}return"string"==typeof a?this.df[a]:this.df},f.prototype.hg=function(){return this.jh||null},f.prototype.Gp=function(a,d,e){var f=this,g=function(){if(c(a))switch(a){case f.gh:return new Promise(function(a){a(n(1))});case f.hh:return new Promise(function(a){a(n(2))});case f.ih:return new Promise(function(a){a(n(4))})}else if(b[a])return Promise.resolve(b[a]);return Promise.reject(Error("Driver not found."))}();
return g.then(d,e),g},f.prototype.ready=function(a){var b=this,c=b.vd.then(function(){return null===b.Ae&&(b.Ae=b.Oo()),b.Ae});return c.then(a,a),c},f.prototype.Fr=function(a,b,c){function d(){f.df.hg=f.hg()}function e(a){return function(){function b(){for(;c<a.length;){var e=a[c];return c++,f.ga=null,f.Ae=null,f.Gp(e).then(function(a){return f.ru(a),d(),f.Ae=f.Cl(f.df),f.Ae})["catch"](b)}d();return f.vd=Promise.reject(Error("No available storage method found.")),f.vd}var c=0;return b()}}var f=this;
g(a)||(a=[a]);var k=this.su(a);return this.vd=(null!==this.vd?this.vd["catch"](function(){return Promise.resolve()}):Promise.resolve()).then(function(){var a=k[0];return f.ga=null,f.Ae=null,f.Gp(a).then(function(a){f.jh=a.jh;d();f.Po();f.Oo=e(k)})})["catch"](function(){d();return f.vd=Promise.reject(Error("No available storage method found.")),f.vd}),this.vd.then(b,c),this.vd},f.prototype.supports=function(a){return!!k[a]},f.prototype.ru=function(a){p(this,a)},f.prototype.su=function(a){for(var b=
[],c=0,d=a.length;d>c;c++){var e=a[c];this.supports(e)&&b.push(e)}return b},f.prototype.Po=function(){for(var b=0;b<a.length;b++)q(this,a[b])},f.prototype.jj=function(a){return new f(a)},f}())}("undefined"!=typeof window?window:self);q["default"]=u;f.Ad=q["default"]},function(f,q){q.Ri=!0;q["default"]=function(f){function q(a,b){a=a||[];b=b||{};try{return new Blob(a,b)}catch(c){if("TypeError"!==c.name)throw c;for(var d=new (f.BlobBuilder||f.gf||f.Rl||f.WebKitBlobBuilder),e=0;e<a.length;e+=1)d.append(a[e]);
return d.getBlob(b.type)}}function m(a){return new Promise(function(b,c){var d=new XMLHttpRequest;d.open("GET",a);d.withCredentials=!0;d.responseType="arraybuffer";d.onreadystatechange=function(){return 4===d.readyState?200===d.status?b({response:d.response,type:d.getResponseHeader("Content-Type")}):void c({status:d.status,response:d.response}):void 0};d.send()})}function v(a){return(new Promise(function(b,c){var d=q([""],{type:"image/png"}),e=a.transaction([F],"readwrite");e.objectStore(F).put(d,
"key");e.oncomplete=function(){var d=a.transaction([F],"readwrite").objectStore(F).get("key");d.onerror=c;d.onsuccess=function(a){var c=URL.createObjectURL(a.target.result);m(c).then(function(a){b(!(!a||"image/png"!==a.type))},function(){b(!1)}).then(function(){URL.revokeObjectURL(c)})}};e.onerror=e.onabort=c}))["catch"](function(){return!1})}function p(a){return"boolean"==typeof L?Promise.resolve(L):v(a).then(function(a){return L=a})}function c(a){return new Promise(function(b,c){var d=new FileReader;
d.onerror=c;d.onloadend=function(c){b({No:!0,data:btoa(c.target.result||""),type:a.type})};d.readAsBinaryString(a)})}function b(a){for(var b=atob(a.data),c=b.length,d=new ArrayBuffer(c),e=new Uint8Array(d),f=0;c>f;f++)e[f]=b.charCodeAt(f);return q([d],{type:a.type})}function d(a){var b=this,c=b.Bl().then(function(){var a=w[b.ga.name];return a&&a.eg?a.eg:void 0});return c.then(a,a),c}function a(a){a=w[a.name];var b={};b.promise=new Promise(function(a){b.resolve=a});a.op.push(b);a.eg?a.eg=a.eg.then(function(){return b.promise}):
a.eg=b.promise}function e(a){function b(){return Promise.resolve()}var c=this,e={db:null};if(a)for(var h in a)e[h]=a[h];w||(w={});var g=w[e.name];g||(g={Bj:[],db:null,eg:null,op:[]},w[e.name]=g);g.Bj.push(c);c.Bl||(c.Bl=c.ready,c.ready=d);a=[];for(h=0;h<g.Bj.length;h++){var l=g.Bj[h];l!==c&&a.push(l.Bl()["catch"](b))}var m=g.Bj.slice(0);return Promise.all(a).then(function(){return e.db=g.db,k(e,!1)}).then(function(a){e.db=a;var b;b=c.Al.version;if(e.db){var d=!e.db.objectStoreNames.contains(e.la),
h=e.version>e.db.version;(e.version<e.db.version&&(e.version!==b&&f.console.warn('The database "'+e.name+"\" can't be downgraded from version "+e.db.version+" to version "+e.version+"."),e.version=e.db.version),h||d)?(d&&(b=e.db.version+1,b>e.version&&(e.version=b)),b=!0):b=!1}else b=!0;return b?k(e,!0):a}).then(function(a){e.db=g.db=a;c.ga=e;for(a=0;a<m.length;a++){var b=m[a];b!==c&&(b.ga.db=e.db,b.ga.version=e.version)}})}function k(b,c){return new Promise(function(d,e){if(b.db){if(!c)return d(b.db);
a(b);b.db.close()}var h=[b.name];c&&h.push(b.version);var g=Q.open.apply(Q,h);c&&(g.onupgradeneeded=function(a){var c=g.result;try{c.createObjectStore(b.la),1>=a.oldVersion&&c.createObjectStore(F)}catch(d){if("ConstraintError"!==d.name)throw d;f.console.warn('The database "'+b.name+'" has been upgraded from version '+a.oldVersion+" to version "+a.newVersion+', but the storage "'+b.la+'" already exists.')}});g.onerror=function(){e(g.error)};g.onsuccess=function(){d(g.result);var a=w[b.name].op.pop();
a&&a.resolve()}})}function g(a,c){var d=this;"string"!=typeof a&&(f.console.warn(a+" used as a key, but it is not a string."),a=String(a));var e=new Promise(function(c,e){d.ready().then(function(){var f=d.ga,h=f.db.transaction(f.la,"readonly").objectStore(f.la).get(a);h.onsuccess=function(){var a=h.result;void 0===a&&(a=null);a&&a.No&&(a=b(a));c(a)};h.onerror=function(){e(h.error)}})["catch"](e)});return S(e,c),e}function l(a,c){var d=this,e=new Promise(function(c,e){d.ready().then(function(){var f=
d.ga,h=f.db.transaction(f.la,"readonly").objectStore(f.la).openCursor(),g=1;h.onsuccess=function(){var d=h.result;if(d){var e=d.value;e&&e.No&&(e=b(e));e=a(e,d.key,g++);void 0!==e?c(e):d["continue"]()}else c()};h.onerror=function(){e(h.error)}})["catch"](e)});return S(e,c),e}function r(a,b,d){var e=this;"string"!=typeof a&&(f.console.warn(a+" used as a key, but it is not a string."),a=String(a));var h=new Promise(function(d,f){var h;e.ready().then(function(){return h=e.ga,b instanceof Blob?p(h.db).then(function(a){return a?
b:c(b)}):b}).then(function(b){var c=h.db.transaction(h.la,"readwrite"),e=c.objectStore(h.la);null===b&&(b=void 0);c.oncomplete=function(){void 0===b&&(b=null);d(b)};c.onabort=c.onerror=function(){f(g.error?g.error:g.transaction.error)};var g=e.put(b,a)})["catch"](f)});return S(h,d),h}function K(a,b){var c=this;"string"!=typeof a&&(f.console.warn(a+" used as a key, but it is not a string."),a=String(a));var d=new Promise(function(b,d){c.ready().then(function(){var e=c.ga,f=e.db.transaction(e.la,"readwrite"),
h=f.objectStore(e.la)["delete"](a);f.oncomplete=function(){b()};f.onerror=function(){d(h.error)};f.onabort=function(){d(h.error?h.error:h.transaction.error)}})["catch"](d)});return S(d,b),d}function h(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.ga,e=d.db.transaction(d.la,"readwrite"),f=e.objectStore(d.la).clear();e.oncomplete=function(){a()};e.onabort=e.onerror=function(){c(f.error?f.error:f.transaction.error)}})["catch"](c)});return S(c,a),c}function t(a){var b=this,
c=new Promise(function(a,c){b.ready().then(function(){var d=b.ga,e=d.db.transaction(d.la,"readonly").objectStore(d.la).count();e.onsuccess=function(){a(e.result)};e.onerror=function(){c(e.error)}})["catch"](c)});return S(c,a),c}function A(a,b){var c=this,d=new Promise(function(b,d){return 0>a?void b(null):void c.ready().then(function(){var e=c.ga,f=!1,h=e.db.transaction(e.la,"readonly").objectStore(e.la).openCursor();h.onsuccess=function(){var c=h.result;return c?void(0===a?b(c.key):f?b(c.key):(f=
!0,c.advance(a))):void b(null)};h.onerror=function(){d(h.error)}})["catch"](d)});return S(d,b),d}function Z(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.ga,e=d.db.transaction(d.la,"readonly").objectStore(d.la).openCursor(),f=[];e.onsuccess=function(){var b=e.result;return b?(f.push(b.key),void b["continue"]()):void a(f)};e.onerror=function(){c(e.error)}})["catch"](c)});return S(c,a),c}function S(a,b){b&&a.then(function(a){b(null,a)},function(a){b(a)})}var Q=Q||f.indexedDB||
f.webkitIndexedDB||f.mozIndexedDB||f.sp||f.msIndexedDB;if(Q){var L,w,F="local-forage-detect-blob-support";return{jh:"asyncStorage",Cl:e,dq:l,getItem:g,setItem:r,removeItem:K,clear:h,length:t,key:A,keys:Z}}}("undefined"!=typeof window?window:self);f.Ad=q["default"]},function(f,q,n){q.Ri=!0;q["default"]=function(f){function m(c,b){b&&c.then(function(c){b(null,c)},function(c){b(c)})}var q=null;try{if(!(f.localStorage&&"setItem"in f.localStorage))return;q=f.localStorage}catch(p){return}return{jh:"localStorageWrapper",
Cl:function(c){var b={};if(c)for(var d in c)b[d]=c[d];return b.Gd=b.name+"/",b.la!==this.Al.la&&(b.Gd+=b.la+"/"),this.ga=b,(new Promise(function(a){a(n(3))})).then(function(a){return b.Of=a,Promise.resolve()})},dq:function(c,b){var d=this,a=d.ready().then(function(){for(var a=d.ga,b=a.Gd,f=b.length,l=q.length,m=1,n=0;l>n;n++){var h=q.key(n);if(0===h.indexOf(b)){var t=q.getItem(h);if(t&&(t=a.Of.rj(t)),t=c(t,h.substring(f),m++),void 0!==t)return t}}});return m(a,b),a},getItem:function(c,b){var d=this;
"string"!=typeof c&&(f.console.warn(c+" used as a key, but it is not a string."),c=String(c));var a=d.ready().then(function(){var a=d.ga,b=q.getItem(a.Gd+c);return b&&(b=a.Of.rj(b)),b});return m(a,b),a},setItem:function(c,b,d){var a=this;"string"!=typeof c&&(f.console.warn(c+" used as a key, but it is not a string."),c=String(c));var e=a.ready().then(function(){void 0===b&&(b=null);var d=b;return new Promise(function(e,f){var m=a.ga;m.Of.serialize(b,function(a,b){if(b)f(b);else try{q.setItem(m.Gd+
c,a),e(d)}catch(t){"QuotaExceededError"!==t.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==t.name||f(t),f(t)}})})});return m(e,d),e},removeItem:function(c,b){var d=this;"string"!=typeof c&&(f.console.warn(c+" used as a key, but it is not a string."),c=String(c));var a=d.ready().then(function(){q.removeItem(d.ga.Gd+c)});return m(a,b),a},clear:function(c){var b=this,d=b.ready().then(function(){for(var a=b.ga.Gd,c=q.length-1;0<=c;c--){var d=q.key(c);0===d.indexOf(a)&&q.removeItem(d)}});return m(d,c),d},length:function(c){var b=
this.keys().then(function(b){return b.length});return m(b,c),b},key:function(c,b){var d=this,a=d.ready().then(function(){var a,b=d.ga;try{a=q.key(c)}catch(f){a=null}return a&&(a=a.substring(b.Gd.length)),a});return m(a,b),a},keys:function(c){var b=this,d=b.ready().then(function(){for(var a=b.ga,c=q.length,d=[],f=0;c>f;f++)0===q.key(f).indexOf(a.Gd)&&d.push(q.key(f).substring(a.Gd.length));return d});return m(d,c),d}}}("undefined"!=typeof window?window:self);f.Ad=q["default"]},function(f,q){q.Ri=!0;
q["default"]=function(f){function q(c){var b,d,a,e,f;b=.75*c.length;var g=c.length,l=0;"="===c[c.length-1]&&(b--,"="===c[c.length-2]&&b--);var m=new ArrayBuffer(b),n=new Uint8Array(m);for(b=0;g>b;b+=4)d=v.indexOf(c[b]),a=v.indexOf(c[b+1]),e=v.indexOf(c[b+2]),f=v.indexOf(c[b+3]),n[l++]=d<<2|a>>4,n[l++]=(15&a)<<4|e>>2,n[l++]=(3&e)<<6|63&f;return m}function m(c){var b=new Uint8Array(c),d="";for(c=0;c<b.length;c+=3)d+=v[b[c]>>2],d+=v[(3&b[c])<<4|b[c+1]>>4],d+=v[(15&b[c+1])<<2|b[c+2]>>6],d+=v[63&b[c+2]];
return 2===b.length%3?d=d.substring(0,d.length-1)+"=":1===b.length%3&&(d=d.substring(0,d.length-2)+"=="),d}var v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=/^~~local_forage_type~([^~]+)~/;return{serialize:function(c,b){var d="";if(c&&(d=c.toString()),c&&("[object ArrayBuffer]"===c.toString()||c.buffer&&"[object ArrayBuffer]"===c.buffer.toString())){var a,e="__lfsc__:";c instanceof ArrayBuffer?(a=c,e+="arbf"):(a=c.buffer,"[object Int8Array]"===d?e+="si08":"[object Uint8Array]"===
d?e+="ui08":"[object Uint8ClampedArray]"===d?e+="uic8":"[object Int16Array]"===d?e+="si16":"[object Uint16Array]"===d?e+="ur16":"[object Int32Array]"===d?e+="si32":"[object Uint32Array]"===d?e+="ui32":"[object Float32Array]"===d?e+="fl32":"[object Float64Array]"===d?e+="fl64":b(Error("Failed to get type for BinaryArray")));b(e+m(a))}else if("[object Blob]"===d)d=new FileReader,d.onload=function(){var a="~~local_forage_type~"+c.type+"~"+m(this.result);b("__lfsc__:blob"+a)},d.readAsArrayBuffer(c);else try{b(JSON.stringify(c))}catch(f){console.error("Couldn't convert value into a JSON string: ",
c),b(null,f)}},rj:function(c){if("__lfsc__:"!==c.substring(0,9))return JSON.parse(c);var b,d=c.substring(13);c=c.substring(9,13);if("blob"===c&&p.test(d)){var a=d.match(p);b=a[1];d=d.substring(a[0].length)}d=q(d);switch(c){case "arbf":return d;case "blob":var e;d=[d];b={type:b};d=d||[];b=b||{};try{e=new Blob(d,b)}catch(k){if("TypeError"!==k.name)throw k;e=new (f.BlobBuilder||f.gf||f.Rl||f.WebKitBlobBuilder);for(c=0;c<d.length;c+=1)e.append(d[c]);e=e.getBlob(b.type)}return e;case "si08":return new Int8Array(d);
case "ui08":return new Uint8Array(d);case "uic8":return new Uint8ClampedArray(d);case "si16":return new Int16Array(d);case "ur16":return new Uint16Array(d);case "si32":return new Int32Array(d);case "ui32":return new Uint32Array(d);case "fl32":return new Float32Array(d);case "fl64":return new Float64Array(d);default:throw Error("Unkown type: "+c);}},Xz:q,Cz:m}}("undefined"!=typeof window?window:self);f.Ad=q["default"]},function(f,q,n){q.Ri=!0;q["default"]=function(f){function m(a){var b=this,c={db:null};
if(a)for(var d in a)c[d]="string"!=typeof a[d]?a[d].toString():a[d];var e=new Promise(function(a,d){try{c.db=l(c.name,String(c.version),c.description,c.size)}catch(e){return d(e)}c.db.transaction(function(e){e.executeSql("CREATE TABLE IF NOT EXISTS "+c.la+" (id INTEGER PRIMARY KEY, key unique, value)",[],function(){b.ga=c;a()},function(a,b){d(b)})})});return(new Promise(function(a){a(n(3))})).then(function(a){return c.Of=a,e})}function q(a,b){var c=this;"string"!=typeof a&&(f.console.warn(a+" used as a key, but it is not a string."),
a=String(a));var d=new Promise(function(b,d){c.ready().then(function(){var e=c.ga;e.db.transaction(function(c){c.executeSql("SELECT * FROM "+e.la+" WHERE key = ? LIMIT 1",[a],function(a,c){var d=c.rows.length?c.rows.item(0).value:null;d&&(d=e.Of.rj(d));b(d)},function(a,b){d(b)})})})["catch"](d)});return g(d,b),d}function p(a,b){var c=this,d=new Promise(function(b,d){c.ready().then(function(){var e=c.ga;e.db.transaction(function(c){c.executeSql("SELECT * FROM "+e.la,[],function(c,d){for(var f=d.rows,
h=f.length,g=0;h>g;g++){var k=f.item(g),l=k.value;if(l&&(l=e.Of.rj(l)),l=a(l,k.key,g+1),void 0!==l)return void b(l)}b()},function(a,b){d(b)})})})["catch"](d)});return g(d,b),d}function c(a,b,c){var d=this;"string"!=typeof a&&(f.console.warn(a+" used as a key, but it is not a string."),a=String(a));var e=new Promise(function(c,e){d.ready().then(function(){void 0===b&&(b=null);var f=b,h=d.ga;h.Of.serialize(b,function(b,d){d?e(d):h.db.transaction(function(d){d.executeSql("INSERT OR REPLACE INTO "+h.la+
" (key, value) VALUES (?, ?)",[a,b],function(){c(f)},function(a,b){e(b)})},function(a){a.code===a.QUOTA_ERR&&e(a)})})})["catch"](e)});return g(e,c),e}function b(a,b){var c=this;"string"!=typeof a&&(f.console.warn(a+" used as a key, but it is not a string."),a=String(a));var d=new Promise(function(b,d){c.ready().then(function(){var e=c.ga;e.db.transaction(function(c){c.executeSql("DELETE FROM "+e.la+" WHERE key = ?",[a],function(){b()},function(a,b){d(b)})})})["catch"](d)});return g(d,b),d}function d(a){var b=
this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.ga;d.db.transaction(function(b){b.executeSql("DELETE FROM "+d.la,[],function(){a()},function(a,b){c(b)})})})["catch"](c)});return g(c,a),c}function a(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.ga;d.db.transaction(function(b){b.executeSql("SELECT COUNT(key) as c FROM "+d.la,[],function(b,c){var d=c.rows.item(0).oh;a(d)},function(a,b){c(b)})})})["catch"](c)});return g(c,a),c}function e(a,b){var c=this,
d=new Promise(function(b,d){c.ready().then(function(){var e=c.ga;e.db.transaction(function(c){c.executeSql("SELECT key FROM "+e.la+" WHERE id = ? LIMIT 1",[a+1],function(a,c){var d=c.rows.length?c.rows.item(0).key:null;b(d)},function(a,b){d(b)})})})["catch"](d)});return g(d,b),d}function k(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.ga;d.db.transaction(function(b){b.executeSql("SELECT key FROM "+d.la,[],function(b,c){for(var d=[],e=0;e<c.rows.length;e++)d.push(c.rows.item(e).key);
a(d)},function(a,b){c(b)})})})["catch"](c)});return g(c,a),c}function g(a,b){b&&a.then(function(a){b(null,a)},function(a){b(a)})}var l=f.openDatabase;if(l)return{jh:"webSQLStorage",Cl:m,dq:p,getItem:q,setItem:c,removeItem:b,clear:d,length:a,key:e,keys:k}}("undefined"!=typeof window?window:self);f.Ad=q["default"]}])};"object"==typeof exports&&"object"==typeof module?module.Ad=xc():"function"==typeof define&&define.Bz?define([],xc):"object"==typeof exports?exports.localforage=xc():this.localforage=
xc()}catch(yc){wc=!0}function W(f){this.b=f}
(function(){function f(a){a.b.trigger(W.prototype.e.Rd,a)}function q(){}function n(){}function u(){}var m="",v="",p=[],c="",b="undefined"!==typeof window.is_scirra_arcade;b&&(c="sa"+window.scirra_arcade_id+"_");var d=W.prototype;d.Aa=function(a){this.da=a;this.b=a.b};d.Aa.prototype.V=function(){};d.ta=function(a){this.type=a;this.b=a.b};var a=d.ta.prototype;a.V=function(){this.nn=this.pn=0};a.Kf=function(){};a.Ib=function(){return{}};a.Zb=function(){};q.prototype.Bt=function(a){return m===a};q.prototype.nt=
function(){return!0};q.prototype.vo=function(a){return m===a};q.prototype.mt=function(){return!0};q.prototype.tt=function(){return!0};q.prototype.Rd=function(){return!0};q.prototype.uo=function(a){return m===a};q.prototype.At=function(a){return m===a};q.prototype.jt=function(){return!0};q.prototype.it=function(){return!0};d.e=new q;n.prototype.Xt=function(a,b){if(wc)f(this);else{var d=c+a;this.pn++;var l=this;localforage.setItem(d,b,function(b,c){l.pn--;b?l.b.trigger(W.prototype.e.Rd,l):(m=a,v=c,
l.b.trigger(W.prototype.e.nt,l),l.b.trigger(W.prototype.e.Bt,l),v=m="");0===l.pn&&l.b.trigger(W.prototype.e.jt,l)})}};n.prototype.Rs=function(a){if(wc)f(this);else{var b=c+a;this.nn++;var d=this;localforage.getItem(b,function(b,c){d.nn--;if(b)d.b.trigger(W.prototype.e.Rd,d);else{m=a;v=c;if("undefined"===typeof v||null===v)v="";d.b.trigger(W.prototype.e.mt,d);d.b.trigger(W.prototype.e.vo,d);v=m=""}0===d.nn&&d.b.trigger(W.prototype.e.it,d)})}};n.prototype.ws=function(a){if(wc)f(this);else{var b=this;
localforage.getItem(c+a,function(c,d){c?b.b.trigger(W.prototype.e.Rd,b):(m=a,null===d?(v="",b.b.trigger(W.prototype.e.At,b)):(v=d,b.b.trigger(W.prototype.e.uo,b)),v=m="")})}};n.prototype.As=function(){if(wc)f(this);else if(!b){var a=this;localforage.clear(function(b){b?a.b.trigger(W.prototype.e.Rd,a):(v=m="",y(p),a.b.trigger(W.prototype.e.tt,a))})}};d.n=new n;u.prototype.bt=function(a){a.xi(v)};d.U=new u})();function zc(f){this.b=f}
(function(){function f(f){this.ya=f;this.gb=!1;this.k=this.speed=this.y=this.x=0;this.opacity=1;this.Ee=this.qg=this.size=this.Kj=0}var q=zc.prototype;q.Aa=function(f){this.da=f;this.b=f.b};var n=q.Aa.prototype;n.V=function(){this.F||(this.za=new Image,this.za.kp=this.Qn,this.nb=null,this.b.os(this.za,this.Pn))};n.tk=function(){this.F||(this.nb=null)};n.hn=function(){this.F||!this.d.length||this.nb||(this.nb=this.b.u.jk(this.za,!0,this.b.Ea,this.Rn))};n.Tm=function(){this.F||this.nb||!this.b.u||(this.nb=
this.b.u.jk(this.za,!0,this.b.Ea,this.Rn))};n.Zn=function(){this.F||this.d.length||!this.nb||(this.b.u.deleteTexture(this.nb),this.nb=null)};n.tn=function(f){f.drawImage(this.za,0,0)};f.prototype.init=function(){var f=this.ya;this.x=f.x-f.ol/2+Math.random()*f.ol;this.y=f.y-f.pl/2+Math.random()*f.pl;this.speed=f.Dm-f.Xk/2+Math.random()*f.Xk;this.k=f.k-f.Yk/2+Math.random()*f.Yk;this.opacity=f.Bm;this.size=f.Cm-f.Wk/2+Math.random()*f.Wk;this.Kj=f.vm-f.Lj/2+Math.random()*f.Lj;this.Ee=this.qg=0};f.prototype.mb=
function(f){var n=this.ya;this.x+=Math.cos(this.k)*this.speed*f;this.y+=Math.sin(this.k)*this.speed*f;this.y+=this.qg*f;this.speed+=n.Dl*f;this.size+=this.Kj*f;this.qg+=n.im*f;this.Ee+=f;1>this.size?this.gb=!1:(0!==n.Uh&&(this.k+=Math.random()*n.Uh*f-n.Uh*f/2),0!==n.Wh&&(this.speed+=Math.random()*n.Wh*f-n.Wh*f/2),0!==n.Vh&&(this.opacity+=Math.random()*n.Vh*f-n.Vh*f/2,0>this.opacity?this.opacity=0:1<this.opacity&&(this.opacity=1)),1>=n.fg&&this.Ee>=n.timeout&&(this.gb=!1),2===n.fg&&0>=this.speed&&
(this.gb=!1))};f.prototype.Sc=function(f){var n=this.ya.opacity*this.opacity;if(0!==n){0===this.ya.fg&&(n*=1-this.Ee/this.ya.timeout);f.globalAlpha=n;var n=this.x-this.size/2,p=this.y-this.size/2;this.ya.b.md&&(n=n+.5|0,p=p+.5|0);f.drawImage(this.ya.type.za,n,p,this.size,this.size)}};f.prototype.Wb=function(f){var n=this.ya.opacity*this.opacity;0===this.ya.fg&&(n*=1-this.Ee/this.ya.timeout);var p=this.size,c=p*this.ya.hr,b=this.x-p/2,d=this.y-p/2;this.ya.b.md&&(b=b+.5|0,d=d+.5|0);1>c||0===n||(c<f.vx||
c>f.Zm?(f.Pf(n),f.Og(b,d,b+p,d,b+p,d+p,b,d+p)):f.Ox(this.x,this.y,c,n))};f.prototype.left=function(){return this.x-this.size/2};f.prototype.right=function(){return this.x+this.size/2};f.prototype.top=function(){return this.y-this.size/2};f.prototype.bottom=function(){return this.y+this.size/2};q.ta=function(f){this.type=f;this.b=f.b};var n=q.ta.prototype,u=[];n.V=function(){var f=this.L;this.Lk=f[0];this.Yk=C(f[1]);this.Vg=f[2];this.Ln=!0;this.Dm=f[3];this.Cm=f[4];this.Bm=f[5]/100;this.vm=f[6];this.ol=
f[7];this.pl=f[8];this.Xk=f[9];this.Wk=f[10];this.Lj=f[11];this.Dl=f[12];this.im=f[13];this.Uh=f[14];this.Wh=f[15];this.Vh=f[16];this.fg=f[17];this.timeout=f[18];this.Lf=0;this.hr=1;this.zk=this.x;this.Bk=this.y;this.Ak=this.x;this.yk=this.y;this.zu(function(f){f.Ba.set(f.zk,f.Bk,f.Ak,f.yk);f.Lb.Ug(f.Ba);f.cj=!1;f.co();f.ls()});this.uc||(this.Mb=[]);this.b.Zg(this);this.type.Tm();if(1===this.Vg)for(f=0;f<this.Lk;f++)this.El().opacity=0;this.zj=!0};n.Ib=function(){var f={r:this.Lk,sc:this.Yk,st:this.Vg,
s:this.Ln,isp:this.Dm,isz:this.Cm,io:this.Bm,gr:this.vm,xr:this.ol,yr:this.pl,spr:this.Xk,szr:this.Wk,grnd:this.Lj,acc:this.Dl,g:this.im,lar:this.Uh,lsr:this.Wh,lor:this.Vh,dm:this.fg,to:this.timeout,pcc:this.Lf,ft:this.zj,p:[]},n,p,c,b=f.p;n=0;for(p=this.Mb.length;n<p;n++)c=this.Mb[n],b.push([c.x,c.y,c.speed,c.k,c.opacity,c.Kj,c.size,c.qg,c.Ee]);return f};n.Zb=function(f){this.Lk=f.r;this.Yk=f.sc;this.Vg=f.st;this.Ln=f.s;this.Dm=f.isp;this.Cm=f.isz;this.Bm=f.io;this.vm=f.gr;this.ol=f.xr;this.pl=
f.yr;this.Xk=f.spr;this.Wk=f.szr;this.Lj=f.grnd;this.Dl=f.acc;this.im=f.g;this.Uh=f.lar;this.Wh=f.lsr;this.Vh=f.lor;this.fg=f.dm;this.timeout=f.to;this.Lf=f.pcc;this.zj=f.ft;u.push.apply(u,this.Mb);y(this.Mb);var n,p,c,b=f.p;f=0;for(n=b.length;f<n;f++)p=this.El(),c=b[f],p.x=c[0],p.y=c[1],p.speed=c[2],p.k=c[3],p.opacity=c[4],p.Kj=c[5],p.size=c[6],p.qg=c[7],p.Ee=c[8]};n.Kf=function(){u.push.apply(u,this.Mb);y(this.Mb)};n.El=function(){var m;u.length?(m=u.pop(),m.ya=this):m=new f(this);this.Mb.push(m);
m.gb=!0;return m};n.mb=function(){var f=this.b.km(this),n,p,c,b;if(0===this.Vg&&this.Ln)for(this.Lf+=f*this.Lk,p=sa(this.Lf),this.Lf-=p,n=0;n<p;n++)c=this.El(),c.init();this.zk=this.x;this.Bk=this.y;this.Ak=this.x;this.yk=this.y;b=n=0;for(p=this.Mb.length;n<p;n++)c=this.Mb[n],this.Mb[b]=c,this.b.pa=!0,1===this.Vg&&this.zj&&c.init(),c.mb(f),c.gb?(c.left()<this.zk&&(this.zk=c.left()),c.right()>this.Ak&&(this.Ak=c.right()),c.top()<this.Bk&&(this.Bk=c.top()),c.bottom()>this.yk&&(this.yk=c.bottom()),b++):
u.push(c);Aa(this.Mb,b);this.Ka();this.zj=!1;1===this.Vg&&0===this.Mb.length&&this.b.ye(this)};n.Sc=function(f){var n,p,c,b=this.i;n=0;for(p=this.Mb.length;n<p;n++)c=this.Mb[n],c.right()>=b.ma&&c.bottom()>=b.na&&c.left()<=b.ra&&c.top()<=b.qa&&c.Sc(f)};n.Wb=function(f){this.hr=this.i.Yb();f.vc(this.type.nb);var n,p,c,b=this.i;n=0;for(p=this.Mb.length;n<p;n++)c=this.Mb[n],c.right()>=b.ma&&c.bottom()>=b.na&&c.left()<=b.ra&&c.top()<=b.qa&&c.Wb(f)};q.e=new function(){};q.n=new function(){};q.U=new function(){}})();
function T(f){this.b=f}
(function(){function f(){if(0===this.Sl.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.Wg?b.drawImage(this.za,this.Ig,this.Jg,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.za,0,0,this.width,this.height);this.Sl=a.toDataURL("image/png")}return this.Sl}function q(){}function n(){}var u=T.prototype;u.Aa=function(a){this.da=a;this.b=a.b};var m=u.Aa.prototype;m.V=function(){if(!this.F){var a,b,c,d,e,h,n,m,p;this.cd=
[];this.Eh=!1;a=0;for(b=this.kc.length;a<b;a++){e=this.kc[a];n={};n.name=e[0];n.speed=e[1];n.loop=e[2];n.An=e[3];n.Bn=e[4];n.ir=e[5];n.X=e[6];n.frames=[];c=0;for(d=e[7].length;c<d;c++)h=e[7][c],m={},m.Pn=h[0],m.Qn=h[1],m.Ig=h[2],m.Jg=h[3],m.width=h[4],m.height=h[5],m.duration=h[6],m.nc=h[7],m.oc=h[8],m.zm=h[9],m.Ek=h[10],m.jr=h[11],m.Wg=0!==m.width,m.Sl="",m.Gz=f,p={left:0,top:0,right:1,bottom:1},m.In=p,m.nb=null,(p=this.b.cw(h[0]))?m.za=p:(m.za=new Image,m.za.Qu=h[0],m.za.kp=h[1],m.za.Ju=null,this.b.os(m.za,
h[0])),n.frames.push(m),this.cd.push(m);this.kc[a]=n}}};m.ks=function(){var a,b,c;a=0;for(b=this.d.length;a<b;a++)c=this.d[a],c.lj=c.qb.nb};m.tk=function(){if(!this.F){var a,b,c;a=0;for(b=this.cd.length;a<b;++a)c=this.cd[a],c.za.Ju=null,c.nb=null;this.Eh=!1;this.ks()}};m.hn=function(){if(!this.F&&this.d.length){var a,b,c;a=0;for(b=this.cd.length;a<b;++a)c=this.cd[a],c.nb=this.b.u.jk(c.za,!1,this.b.Ea,c.jr);this.ks()}};m.Tm=function(){if(!this.F&&!this.Eh&&this.b.u){var a,b,c;a=0;for(b=this.cd.length;a<
b;++a)c=this.cd[a],c.nb=this.b.u.jk(c.za,!1,this.b.Ea,c.jr);this.Eh=!0}};m.Zn=function(){if(!this.F&&!this.d.length&&this.Eh){var a,b,c;a=0;for(b=this.cd.length;a<b;++a)c=this.cd[a],this.b.u.deleteTexture(c.nb),c.nb=null;this.Eh=!1}};var v=[];m.tn=function(a){var b,c,d;y(v);b=0;for(c=this.cd.length;b<c;++b)d=this.cd[b].za,-1===v.indexOf(d)&&(a.drawImage(d,0,0),v.push(d))};u.ta=function(a){this.type=a;this.b=a.b;a=this.type.kc[0].frames[0].Ek;this.uc?this.ja.yi(a):this.ja=new fb(a)};var p=u.ta.prototype;
p.V=function(){this.visible=0===this.L[0];this.Oj=this.Nh=!1;this.yd=0!==this.L[3];this.wa=this.Cp(this.L[1])||this.type.kc[0];this.B=this.L[2];0>this.B&&(this.B=0);this.B>=this.wa.frames.length&&(this.B=this.wa.frames.length-1);var a=this.wa.frames[this.B];this.ja.yi(a.Ek);this.nc=a.nc;this.oc=a.oc;this.bg=this.wa.speed;this.Je=this.wa.Bn;1===this.type.kc.length&&1===this.type.kc[0].frames.length||0===this.bg||(this.b.Zg(this),this.Nh=!0);this.uc?this.wd.reset():this.wd=new db;this.ee=this.wd.Y;
this.ff=!0;this.Td=0;this.ef=!0;this.$f=this.Wo="";this.gp=0;this.gj=-1;this.type.Tm();var b,c,d,f,e,m,n,a=0;for(b=this.type.kc.length;a<b;a++)for(f=this.type.kc[a],c=0,d=f.frames.length;c<d;c++)e=f.frames[c],0===e.width&&(e.width=e.za.width,e.height=e.za.height),e.Wg&&(n=e.za,m=e.In,m.left=e.Ig/n.width,m.top=e.Jg/n.height,m.right=(e.Ig+e.width)/n.width,m.bottom=(e.Jg+e.height)/n.height,0===e.Ig&&0===e.Jg&&e.width===n.width&&e.height===n.height&&(e.Wg=!1));this.qb=this.wa.frames[this.B];this.lj=this.qb.nb};
p.Ib=function(){var a={a:this.wa.X,f:this.B,cas:this.bg,fs:this.ee,ar:this.Td,at:this.wd.Y,rt:this.Je};this.ff||(a.ap=this.ff);this.ef||(a.af=this.ef);return a};p.Zb=function(a){var b=this.gw(a.a);b&&(this.wa=b);this.B=a.f;0>this.B&&(this.B=0);this.B>=this.wa.frames.length&&(this.B=this.wa.frames.length-1);this.bg=a.cas;this.ee=a.fs;this.Td=a.ar;this.wd.reset();this.wd.Y=a.at;this.ff=a.hasOwnProperty("ap")?a.ap:!0;this.ef=a.hasOwnProperty("af")?a.af:!0;a.hasOwnProperty("rt")?this.Je=a.rt:this.Je=
this.wa.Bn;this.qb=this.wa.frames[this.B];this.lj=this.qb.nb;this.ja.yi(this.qb.Ek);this.nc=this.qb.nc;this.oc=this.qb.oc};p.Gl=function(a){this.B=a?0:this.wa.frames.length-1;this.ff=!1;this.Wo=this.wa.name;this.Oj=!0;this.b.trigger(T.prototype.e.lt,this);this.b.trigger(T.prototype.e.kt,this);this.Oj=!1;this.Td=0};p.gf=function(){return this.wd.Y};p.mb=function(){this.wd.add(this.b.km(this));this.$f.length&&this.pp();0<=this.gj&&this.qp();var a=this.wd.Y,b=this.wa,c=b.frames[this.B],d=c.duration/
this.bg;this.ff&&a>=this.ee+d&&(this.ef?this.B++:this.B--,this.ee+=d,this.B>=b.frames.length&&(b.ir?(this.ef=!1,this.B=b.frames.length-2):b.loop?this.B=this.Je:(this.Td++,this.Td>=b.An?this.Gl(!1):this.B=this.Je)),0>this.B&&(b.ir?(this.B=1,this.ef=!0,b.loop||(this.Td++,this.Td>=b.An&&this.Gl(!0))):b.loop?this.B=this.Je:(this.Td++,this.Td>=b.An?this.Gl(!0):this.B=this.Je)),0>this.B?this.B=0:this.B>=b.frames.length&&(this.B=b.frames.length-1),a>this.ee+b.frames[this.B].duration/this.bg&&(this.ee=a),
a=b.frames[this.B],this.Xf(c,a),this.b.pa=!0)};p.Cp=function(a){var b,c,d;b=0;for(c=this.type.kc.length;b<c;b++)if(d=this.type.kc[b],nb(d.name,a))return d;return null};p.gw=function(a){var b,c,d;b=0;for(c=this.type.kc.length;b<c;b++)if(d=this.type.kc[b],d.X===a)return d;return null};p.pp=function(){var a=this.wa.frames[this.B],b=this.Cp(this.$f);this.$f="";!b||nb(b.name,this.wa.name)&&this.ff||(this.wa=b,this.bg=b.speed,this.Je=b.Bn,0>this.B&&(this.B=0),this.B>=this.wa.frames.length&&(this.B=this.wa.frames.length-
1),1===this.gp&&(this.B=0),this.ff=!0,this.ee=this.wd.Y,this.ef=!0,this.Xf(a,this.wa.frames[this.B]),this.b.pa=!0)};p.qp=function(){var a=this.wa.frames[this.B],b=this.B;this.B=sa(this.gj);0>this.B&&(this.B=0);this.B>=this.wa.frames.length&&(this.B=this.wa.frames.length-1);b!==this.B&&(this.Xf(a,this.wa.frames[this.B]),this.ee=this.wd.Y,this.b.pa=!0);this.gj=-1};p.Xf=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.nc=b.nc;this.oc=b.oc;
this.ja.yi(b.Ek);this.Ka();this.qb=b;this.lj=b.nb;c=0;for(d=this.I.length;c<d;c++)e=this.I[c],e.Hx&&e.Hx(a,b);this.b.trigger(T.prototype.e.Xf,this)};p.Sc=function(a){a.globalAlpha=this.opacity;var b=this.qb,c=b.Wg,d=b.za,e=this.x,f=this.y,m=this.width,n=this.height;if(0===this.k&&0<=m&&0<=n)e-=this.nc*m,f-=this.oc*n,this.b.md&&(e=Math.round(e),f=Math.round(f)),c?a.drawImage(d,b.Ig,b.Jg,b.width,b.height,e,f,m,n):a.drawImage(d,e,f,m,n);else{this.b.md&&(e=Math.round(e),f=Math.round(f));a.save();var p=
0<m?1:-1,q=0<n?1:-1;a.translate(e,f);1===p&&1===q||a.scale(p,q);a.rotate(this.k*p*q);e=0-this.nc*pa(m);f=0-this.oc*pa(n);c?a.drawImage(d,b.Ig,b.Jg,b.width,b.height,e,f,pa(m),pa(n)):a.drawImage(d,e,f,pa(m),pa(n));a.restore()}};p.gg=function(a){this.Wb(a)};p.Wb=function(a){a.vc(this.lj);a.Pf(this.opacity);var b=this.qb,c=this.Lb;if(this.b.md){var d=Math.round(this.x)-this.x,e=Math.round(this.y)-this.y;b.Wg?a.Ye(c.Ab+d,c.Bb+e,c.hc+d,c.ic+e,c.Tb+d,c.Ub+e,c.Rb+d,c.Sb+e,b.In):a.Og(c.Ab+d,c.Bb+e,c.hc+d,
c.ic+e,c.Tb+d,c.Ub+e,c.Rb+d,c.Sb+e)}else b.Wg?a.Ye(c.Ab,c.Bb,c.hc,c.ic,c.Tb,c.Ub,c.Rb,c.Sb,b.In):a.Og(c.Ab,c.Bb,c.hc,c.ic,c.Tb,c.Ub,c.Rb,c.Sb)};p.pw=function(a){var b=this.qb,c,d;c=0;for(d=b.zm.length;c<d;c++)if(nb(a,b.zm[c][0]))return c;return-1};p.zh=function(a,b){var c=this.qb,d=c.zm,e;la(a)?e=this.pw(a):e=a-1;e=sa(e);if(0>e||e>=d.length)return b?this.x:this.y;var f=(d[e][1]-c.nc)*this.width,d=d[e][2],d=(d-c.oc)*this.height,c=Math.cos(this.k);e=Math.sin(this.k);var m=f*c-d*e,d=d*c+f*e,f=m+this.x,
d=d+this.y;return b?f:d};var c=null,b=new ca,d=!1,a=[],e=new wa(0,0,0,0);m.finish=function(a){if(d){if(a){var e=this.b.Ia().Na.Ic;a=c.O();var f=b.cf(),m,n;if(a.W){a.W=!1;y(a.d);m=0;for(n=f.length;m<n;++m)a.d[m]=f[m];if(e)for(y(a.S),m=0,n=c.d.length;m<n;++m)f=c.d[m],b.contains(f)||a.S.push(f)}else if(e)for(e=a.d.length,m=0,n=f.length;m<n;++m)a.d[e+m]=f[m],Ga(a.S,f[m]);else Ba(a.d,f);c.Ud()}b.clear();d=!1}};q.prototype.Zs=function(f){if(f){var g=!1,l,m,n,h=this.b.Gj(),p=h.type,h=h.Rj;l=f.O();m=this.b.Ia().Na.Ic;
var q;l.W?(this.ua(),e.ag(this.Ba),e.offset(0,0),this.b.jw(this.i,f,e,a),q=a):q=m?this.b.Yw()&&!l.S.length&&l.d.length?l.d:l.S:l.d;c=f;d=p!==f&&!h;l=0;for(m=q.length;l<m;l++)if(n=q[l],this.b.yy(this,n)){g=!0;if(h)break;p!==f&&b.add(n)}y(a);f=g}else f=!1;return f};q.prototype.Us=function(a){return this.$f.length?nb(this.$f,a):nb(this.wa.name,a)};q.prototype.kt=function(a){return nb(this.Wo,a)};q.prototype.lt=function(){return!0};q.prototype.Xf=function(){return!0};u.e=new q;n.prototype.iu=function(a,
b,c){if(a&&b&&(b=this.b.jj(a,b,this.zh(c,!0),this.zh(c,!1)))){"undefined"!==typeof b.k&&(b.k=this.k,b.Ka());this.b.Fc++;var d,e,f;this.b.trigger(Object.getPrototypeOf(a.da).e.Wf,b);if(b.wb)for(d=0,e=b.siblings.length;d<e;d++)f=b.siblings[d],this.b.trigger(Object.getPrototypeOf(f.type.da).e.Wf,f);this.b.Fc--;d=this.b.kw();c=!1;if(ia(d.N.Spawn_LastExec)||d.N.Spawn_LastExec<this.b.sf)c=!0,d.N.Spawn_LastExec=this.b.sf;if(a!=this.type&&(a=a.O(),a.W=!1,c?(y(a.d),a.d[0]=b):a.d.push(b),b.wb))for(d=0,e=b.siblings.length;d<
e;d++)f=b.siblings[d],a=f.type.O(),a.W=!1,c?(y(a.d),a.d[0]=f):a.d.push(f)}};n.prototype.Rt=function(a,b){this.$f=a;this.gp=b;this.Nh||(this.b.Zg(this),this.Nh=!0);this.Oj||this.pp()};n.prototype.St=function(a){this.gj=a;this.Nh||(this.b.Zg(this),this.Nh=!0);this.Oj||this.qp()};n.prototype.Ut=function(a){this.yd!==(0!==a)&&((this.yd=0!==a)?this.Ka():(this.Oc.right>=this.Oc.left&&this.type.ph.update(this,this.Oc,null),this.Oc.set(0,0,-1,-1)))};u.n=new n;u.U=new function(){}})();
function Ac(f){this.b=f}
(function(){function f(){return c.length?c.pop():{}}function q(b){var d,a;d=0;for(a=b.length;d<a;d++)c.push(b[d]);y(b)}function n(b){return b.length&&" "===b.charAt(b.length-1)?b.substring(0,b.length-1):b}function u(){}var m=Ac.prototype;m.V=function(){m.n.cu=function(b){this.width!==b&&(this.width=b,this.Rf=!0,this.Ka())}};m.Aa=function(b){this.da=b;this.b=b.b};var v=m.Aa.prototype;v.V=function(){};v.tk=function(){if(!this.F){var b,c,a;b=0;for(c=this.d.length;b<c;b++)a=this.d[b],a.Id=null,a.If=null,
a.rc=null}};m.ta=function(b){this.type=b;this.b=b.b;this.uc?y(this.Te):this.Te=[];this.Rf=!0};v=m.ta.prototype;v.V=function(){this.text=this.L[0];this.visible=0===this.L[1];this.font=this.L[2];this.color=this.L[3];this.Mj=this.L[4];this.ll=this.L[5];this.jo=0===this.L[7];this.Pm=this.ek=this.width;this.dk=this.height;this.Sm=this.L[8];this.Aj=this.jg="";this.Wr=this.Xr=this.pi=0;this.Lx();this.rc=this.If=this.Id=null;this.Jq=!1;this.Th=this.b.Pd;this.uc?this.Pg.set(0,0,1,1):this.Pg=new wa(0,0,1,1);
this.b.u&&this.b.Zg(this)};v.Lx=function(){var b=this.font.split(" "),c;for(c=0;c<b.length;c++)if("pt"===b[c].substr(b[c].length-2,2)){this.pi=parseInt(b[c].substr(0,b[c].length-2));this.wn=Math.ceil(this.pi/72*96)+4;0<c&&(this.Aj=b[c-1]);this.jg=b[c+1];for(c+=2;c<b.length;c++)this.jg+=" "+b[c];break}};v.Ib=function(){return{t:this.text,f:this.font,c:this.color,ha:this.Mj,va:this.ll,wr:this.jo,lho:this.Sm,fn:this.jg,fs:this.Aj,ps:this.pi,pxh:this.wn,tw:this.Xr,th:this.Wr,lrt:this.Th}};v.Zb=function(b){this.text=
b.t;this.font=b.f;this.color=b.c;this.Mj=b.ha;this.ll=b.va;this.jo=b.wr;this.Sm=b.lho;this.jg=b.fn;this.Aj=b.fs;this.pi=b.ps;this.wn=b.pxh;this.Xr=b.tw;this.Wr=b.th;this.Th=b.lrt;this.Rf=!0;this.Pm=this.ek=this.width;this.dk=this.height};v.mb=function(){if(this.b.u&&this.rc&&300<=this.b.Pd-this.Th){var b=this.i;this.ua();var c=this.Ba;if(c.right<b.ma||c.bottom<b.na||c.left>b.ra||c.top>b.qa)this.b.u.deleteTexture(this.rc),this.Id=this.If=this.rc=null}};v.Kf=function(){this.Id=this.If=null;this.b.u&&
this.rc&&this.b.u.deleteTexture(this.rc);this.rc=null};v.gf=function(){this.font=this.Aj+" "+this.pi.toString()+"pt "+this.jg;this.Rf=!0;this.b.pa=!0};v.Sc=function(b,c){b.font=this.font;b.textBaseline="top";b.fillStyle=this.color;b.globalAlpha=c?1:this.opacity;var a=1;c&&(a=Math.abs(this.i.Yb()),b.save(),b.scale(a,a));if(this.Rf||this.width!==this.Pm)this.type.da.pu(this.text,this.Te,b,this.width,this.jo),this.Rf=!1,this.Pm=this.width;this.ua();var a=c?0:this.Lb.Ab,e=c?0:this.Lb.Bb;this.b.md&&(a=
a+.5|0,e=e+.5|0);0===this.k||c||(b.save(),b.translate(a,e),b.rotate(this.k),e=a=0);var f=e+this.height,g=this.wn,g=g+this.Sm,l,m;1===this.ll?e+=Math.max(this.height/2-this.Te.length*g/2,0):2===this.ll&&(e+=Math.max(this.height-this.Te.length*g-2,0));for(m=0;m<this.Te.length&&!(l=a,1===this.Mj?l=a+(this.width-this.Te[m].width)/2:2===this.Mj&&(l=a+(this.width-this.Te[m].width)),b.fillText(this.Te[m].text,l,e),e+=g,e>=f-g);m++);(0!==this.k||c)&&b.restore();this.Th=this.b.Pd};v.Wb=function(b){if(!(1>
this.width||1>this.height)){var c=this.Rf||this.Jq;this.Jq=!1;var a=this.i.Yb(),e=this.i.Ya(),f=this.Pg,g=a*this.width,l=a*this.height,m=Math.ceil(g),n=Math.ceil(l),h=Math.abs(m),p=Math.abs(n),q=this.b.D/2,u=this.b.C/2;this.If||(this.Id=document.createElement("canvas"),this.Id.width=h,this.Id.height=p,this.ek=h,this.dk=p,c=!0,this.If=this.Id.getContext("2d"));if(h!==this.ek||p!==this.dk)this.Id.width=h,this.Id.height=p,this.rc&&(b.deleteTexture(this.rc),this.rc=null),c=!0;c&&(this.If.clearRect(0,
0,h,p),this.Sc(this.If,!0),this.rc||(this.rc=b.xc(h,p,this.b.Ea,this.b.Pe)),b.Iy(this.Id,this.rc,this.b.Pe));this.ek=h;this.dk=p;b.vc(this.rc);b.Pf(this.opacity);b.Yc();b.translate(-q,-u);b.Kc();var v=this.Lb,c=this.i.Da(v.Ab,v.Bb,!0,!0),h=this.i.Da(v.Ab,v.Bb,!1,!0),p=this.i.Da(v.hc,v.ic,!0,!0),q=this.i.Da(v.hc,v.ic,!1,!0),u=this.i.Da(v.Tb,v.Ub,!0,!0),Q=this.i.Da(v.Tb,v.Ub,!1,!0),L=this.i.Da(v.Rb,v.Sb,!0,!0),v=this.i.Da(v.Rb,v.Sb,!1,!0);if(this.b.md||0===this.k&&0===e)var w=(c+.5|0)-c,F=(h+.5|0)-
h,c=c+w,h=h+F,p=p+w,q=q+F,u=u+w,Q=Q+F,L=L+w,v=v+F;0===this.k&&0===e?(p=c+m,q=h,u=p,Q=h+n,L=c,v=Q,f.right=1,f.bottom=1):(f.right=g/m,f.bottom=l/n);b.Ye(c,h,p,q,u,Q,L,v,f);b.Yc();b.scale(a,a);b.Ok(-this.i.Ya());b.translate((this.i.ma+this.i.ra)/-2,(this.i.na+this.i.qa)/-2);b.Kc();this.Th=this.b.Pd}};var p=[];m.ku=function(b){y(p);for(var c="",a,e=0;e<b.length;)if(a=b.charAt(e),"\n"===a)c.length&&(p.push(c),c=""),p.push("\n"),++e;else if(" "===a||"\t"===a||"-"===a){do c+=b.charAt(e),e++;while(e<b.length&&
(" "===b.charAt(e)||"\t"===b.charAt(e)));p.push(c);c=""}else e<b.length&&(c+=a,e++);c.length&&p.push(c)};var c=[];m.pu=function(b,c,a,e,k){if(b&&b.length)if(2>=e)q(c);else{if(100>=b.length&&-1===b.indexOf("\n")){var g=a.measureText(b).width;if(g<=e){q(c);c.push(f());c[0].text=b;c[0].width=g;return}}this.qu(b,c,a,e,k)}else q(c)};m.qu=function(b,d,a,e,k){k&&(this.ku(b),b=p);var g="",l,m,q,h=0;for(q=0;q<b.length;q++)"\n"===b[q]?(h>=d.length&&d.push(f()),g=n(g),m=d[h],m.text=g,m.width=a.measureText(g).width,
h++,g=""):(l=g,g+=b[q],m=a.measureText(g).width,m>=e&&(h>=d.length&&d.push(f()),l=n(l),m=d[h],m.text=l,m.width=a.measureText(l).width,h++,g=b[q],k||" "!==g||(g="")));g.length&&(h>=d.length&&d.push(f()),g=n(g),m=d[h],m.text=g,m.width=a.measureText(g).width,h++);for(q=h;q<d.length;q++)c.push(d[q]);d.length=h};m.e=new function(){};u.prototype.$t=function(b){ja(b)&&1E9>b&&(b=Math.round(1E10*b)/1E10);b=b.toString();this.text!==b&&(this.text=b,this.Rf=!0,this.b.pa=!0)};m.n=new u;m.U=new function(){}})();
function X(f){this.b=f}
(function(){function f(b){d=b.x;a=b.y;e=b.z}function q(a,b,c,d){var e;e=k.length?k.pop():new n;e.init(a,b,c,d);return e}function n(){this.Ci=this.id=this.y=this.x=this.al=this.$k=this.Om=this.time=this.Nn=0;this.Gi=this.gl=!1}function u(a){return a.sourceCapabilities&&a.sourceCapabilities.firesTouchEvents||a.originalEvent&&a.originalEvent.sourceCapabilities&&a.originalEvent.sourceCapabilities.firesTouchEvents}function m(){}function v(){}var p=X.prototype;p.Aa=function(a){this.da=a;this.b=a.b};p.Aa.prototype.V=
function(){};p.ta=function(a){this.type=a;this.b=a.b;this.touches=[];this.an=!1};var c=p.ta.prototype,b={left:0,top:0};c.yh=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 d=0,a=0,e=0,k=[];n.prototype.init=function(a,b,c,d){var e=$a();this.Nn=this.Om=this.time=e;this.$k=a;this.al=b;this.x=a;this.y=b;this.pressure=this.height=this.width=0;this.id=c;this.Ci=d;this.Gi=this.gl=!1};n.prototype.update=function(a,b,c,d,e,f){this.Om=this.time;this.time=
a;this.x=b;this.y=c;this.width=d;this.height=e;this.pressure=f;!this.Gi&&15<=Ta(this.$k,this.al,this.x,this.y)&&(this.Gi=!0)};n.prototype.tx=function(a,b){!this.gl&&500<=$a()-this.Nn&&!this.Gi&&15>Ta(this.$k,this.al,this.x,this.y)&&(this.gl=!0,a.Qd=this.Ci,a.ah=this.id,a.ng=b,a.b.trigger(X.prototype.e.yt,a),a.Yd=this.x,a.Zd=this.y,a.b.trigger(X.prototype.e.zt,a),a.ng=0)};var g=-1E3,l=-1E3,r=-1E4;n.prototype.Dq=function(a,b){if(!this.gl){var c=$a();333>=c-this.Nn&&!this.Gi&&15>Ta(this.$k,this.al,this.x,
this.y)&&(a.Qd=this.Ci,a.ah=this.id,a.ng=b,666>=c-r&&25>Ta(g,l,this.x,this.y)?(a.b.trigger(X.prototype.e.wt,a),a.Yd=this.x,a.Zd=this.y,a.b.trigger(X.prototype.e.xt,a),l=g=-1E3,r=-1E4):(a.b.trigger(X.prototype.e.Lt,a),a.Yd=this.x,a.Zd=this.y,a.b.trigger(X.prototype.e.Ho,a),g=this.x,l=this.y,r=c),a.ng=0)}};c.V=function(){this.dx=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.ng=this.ah=this.Qd=this.Zd=this.Yd=this.So=this.Ro=this.Qo=this.wu=this.vu=this.uu=this.xk=this.wk=this.vk=
0;this.Gy=0!==this.L[0];var a=0<this.b.Xb?document:this.b.canvas,b=document;this.b.ub?b=a=window.Canvas:this.b.Dc&&(b=a=window);var c=this;"undefined"!==typeof PointerEvent?(a.addEventListener("pointerdown",function(a){c.Uq(a)},!1),a.addEventListener("pointermove",function(a){c.Tq(a)},!1),b.addEventListener("pointerup",function(a){c.uk(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.uk(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.Uq(a)},!1),a.addEventListener("MSPointerMove",function(a){c.Tq(a)},!1),b.addEventListener("MSPointerUp",function(a){c.uk(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.uk(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.Wq(a)},!1),a.addEventListener("touchmove",function(a){c.Vq(a)},!1),b.addEventListener("touchend",function(a){c.jn(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.jn(a,!0)},!1));if(this.dx){var d=function(a){a=a.reading;c.Qo=a.accelerationX;c.Ro=a.accelerationY;
c.So=a.accelerationZ},e=function(a){a=a.reading;c.vk=a.yawDegrees;c.wk=a.pitchDegrees;c.xk=a.rollDegrees},g=Windows.Devices.Sensors.Accelerometer.getDefault();g&&(g.reportInterval=Math.max(g.minimumReportInterval,16),g.addEventListener("readingchanged",d));var k=Windows.Devices.Sensors.Inclinometer.getDefault();k&&(k.reportInterval=Math.max(k.minimumReportInterval,16),k.addEventListener("readingchanged",e));document.addEventListener("visibilitychange",function(){document.hidden||document.msHidden?
(g&&g.removeEventListener("readingchanged",d),k&&k.removeEventListener("readingchanged",e)):(g&&g.addEventListener("readingchanged",d),k&&k.addEventListener("readingchanged",e))},!1)}else window.addEventListener("deviceorientation",function(a){c.vk=a.alpha||0;c.wk=a.beta||0;c.xk=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.uu=a.accelerationIncludingGravity.x||0,c.vu=a.accelerationIncludingGravity.y||0,c.wu=a.accelerationIncludingGravity.z||
0);a.acceleration&&(c.Qo=a.acceleration.x||0,c.Ro=a.acceleration.y||0,c.So=a.acceleration.z||0)},!1);this.Gy&&!this.b.Oa&&(jQuery(document).mousemove(function(a){c.Ex(a)}),jQuery(document).mousedown(function(a){c.Dx(a)}),jQuery(document).mouseup(function(a){c.Fx(a)}));!this.b.Bf&&this.b.Ec&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(f,null,{frequency:40});this.b.zy(this)};c.Tq=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&
"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var c=this.yh(a.pointerId),d=$a();if(0<=c){var e=this.b.Oa?b:jQuery(this.b.canvas).offset(),c=this.touches[c];2>d-c.time||c.update(d,a.pageX-e.left,a.pageY-e.top,a.width||0,a.height||0,a.pressure||0)}}};c.Uq=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&ob(a)&&a.preventDefault();var c=this.b.Oa?b:jQuery(this.b.canvas).offset(),d=a.pageX-c.left,c=a.pageY-c.top;$a();this.Qd=this.touches.length;
this.ah=a.pointerId;this.touches.push(q(d,c,a.pointerId,this.Qd));this.b.Gc=!0;this.b.trigger(X.prototype.e.Eo,this);this.b.trigger(X.prototype.e.Io,this);this.Yd=d;this.Zd=c;this.b.trigger(X.prototype.e.xl,this);this.b.Gc=!1}};c.uk=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&ob(a)&&a.preventDefault();var c=this.yh(a.pointerId);this.Qd=0<=c?this.touches[c].Ci:-1;this.ah=0<=c?this.touches[c].id:-1;this.b.Gc=!0;this.b.trigger(X.prototype.e.Do,
this);this.b.trigger(X.prototype.e.wl,this);0<=c&&(b||this.touches[c].Dq(this,c),100>k.length&&k.push(this.touches[c]),this.touches.splice(c,1));this.b.Gc=!1}};c.Vq=function(a){a.preventDefault&&a.preventDefault();var c=$a(),d,e,f,g;d=0;for(e=a.changedTouches.length;d<e;d++)if(f=a.changedTouches[d],g=this.yh(f.identifier),0<=g){var k=this.b.Oa?b:jQuery(this.b.canvas).offset();g=this.touches[g];2>c-g.time||g.update(c,f.pageX-k.left,f.pageY-k.top,2*(f.Tz||f.bA||f.Lz||f.Oz||0),2*(f.Uz||f.cA||f.Mz||f.Pz||
0),f.Ez||f.aA||f.Kz||f.Nz||0)}};c.Wq=function(a){a.preventDefault&&ob(a)&&a.preventDefault();var c=this.b.Oa?b:jQuery(this.b.canvas).offset();$a();this.b.Gc=!0;var d,e,f,g;d=0;for(e=a.changedTouches.length;d<e;d++)if(f=a.changedTouches[d],g=this.yh(f.identifier),-1===g){g=f.pageX-c.left;var k=f.pageY-c.top;this.Qd=this.touches.length;this.ah=f.identifier;this.touches.push(q(g,k,f.identifier,this.Qd));this.b.trigger(X.prototype.e.Eo,this);this.b.trigger(X.prototype.e.Io,this);this.Yd=g;this.Zd=k;this.b.trigger(X.prototype.e.xl,
this)}this.b.Gc=!1};c.jn=function(a,b){a.preventDefault&&ob(a)&&a.preventDefault();this.b.Gc=!0;var c,d,e;c=0;for(d=a.changedTouches.length;c<d;c++)e=a.changedTouches[c],e=this.yh(e.identifier),0<=e&&(this.Qd=this.touches[e].Ci,this.ah=this.touches[e].id,this.b.trigger(X.prototype.e.Do,this),this.b.trigger(X.prototype.e.wl,this),b||this.touches[e].Dq(this,e),100>k.length&&k.push(this.touches[e]),this.touches.splice(e,1));this.b.Gc=!1};c.gf=function(){return this.b.Ec&&0===this.vk&&0!==e?90*e:this.vk};
c.Rl=function(){return this.b.Ec&&0===this.wk&&0!==a?90*a:this.wk};c.sp=function(){return this.b.Ec&&0===this.xk&&0!==d?90*d:this.xk};c.Dx=function(a){u(a)||(this.Wq({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]}),this.an=!0)};c.Ex=function(a){this.an&&!u(a)&&this.Vq({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};c.Fx=function(a){a.preventDefault&&this.b.Mp&&!this.b.Pe&&a.preventDefault();this.b.Mp=!0;u(a)||(this.jn({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]}),
this.an=!1)};c.Sn=function(){var a,b,c,d=$a();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=d-50&&(c.Om=d),c.tx(this,a)};m.prototype.Io=function(){return!0};m.prototype.wl=function(){return!0};m.prototype.xl=function(a){return a?this.b.cl(a,this.Yd,this.Zd):!1};var K=[];m.prototype.$s=function(a){if(!a)return!1;var b=a.O(),c=b.Bc(),d,e,f,g,k,l;f=0;for(g=c.length;f<g;f++){var m=c[f];m.ua();k=0;for(l=this.touches.length;k<l;k++)if(e=this.touches[k],d=m.i.pb(e.x,e.y,!0),e=m.i.pb(e.x,
e.y,!1),m.Eb(d,e)){K.push(m);break}}return K.length?(b.W=!1,Ba(b.d,K),a.Ud(),y(K),!0):!1};m.prototype.Eo=function(a){a=Math.floor(a);return a===this.Qd};m.prototype.Do=function(a){a=Math.floor(a);return a===this.Qd};m.prototype.yt=function(){return!0};m.prototype.Lt=function(){return!0};m.prototype.wt=function(){return!0};m.prototype.zt=function(a){return a?this.b.cl(a,this.Yd,this.Zd):!1};m.prototype.Ho=function(a){return a?this.b.cl(a,this.Yd,this.Zd):!1};m.prototype.xt=function(a){return a?this.b.cl(a,
this.Yd,this.Zd):!1};p.e=new m;p.n=new function(){};v.prototype.Lo=function(a,b){var c=this.ng;if(0>c||c>=this.touches.length)a.A(0);else{var d,e,f,g,k;ia(b)?(d=this.b.Ah(0),e=d.scale,f=d.ud,g=d.Wc,k=d.k,d.scale=1,d.ud=1,d.Wc=1,d.k=0,a.A(d.pb(this.touches[c].x,this.touches[c].y,!0)),d.scale=e,d.ud=f,d.Wc=g,d.k=k):(d=ja(b)?this.b.Ah(b):this.b.om(b))?a.A(d.pb(this.touches[c].x,this.touches[c].y,!0)):a.A(0)}};v.prototype.Mo=function(a,b){var c=this.ng;if(0>c||c>=this.touches.length)a.A(0);else{var d,
e,f,g,k;ia(b)?(d=this.b.Ah(0),e=d.scale,f=d.ud,g=d.Xc,k=d.k,d.scale=1,d.ud=1,d.Xc=1,d.k=0,a.A(d.pb(this.touches[c].x,this.touches[c].y,!1)),d.scale=e,d.ud=f,d.Xc=g,d.k=k):(d=ja(b)?this.b.Ah(b):this.b.om(b))?a.A(d.pb(this.touches[c].x,this.touches[c].y,!1)):a.A(0)}};p.U=new v})();function Hc(f){this.b=f}
(function(){function f(){}function q(){}var n=Hc.prototype;n.Aa=function(f){this.da=f;this.b=f.b};n.Aa.prototype.V=function(){};n.ta=function(f){this.type=f;this.b=f.b};var u=!1;n.ta.prototype.V=function(){if(window.admob){u=!0;this.ob=window.admob;this.ob.setLicenseKey&&this.ob.setLicenseKey("support@scirra.com","2ba99d4ff8c219cf7331c88fb3344f80");var f=0!==this.L[0],n=0!==this.L[1];this.Cu=this.L[2];this.Du=this.L[3];this.Uw=this.L[4];this.Vw=this.L[5];this.Ky=this.L[6];this.Ly=this.L[7];this.b.sg?
(this.Yi=this.Cu,this.Qj=this.Du):this.b.Bf?(this.Yi=this.Uw,this.Qj=this.Vw):this.b.ie||this.b.$j?(this.Yi=this.Ky,this.Qj=this.Ly):this.Qj=this.Yi="";this.Xj=!1;this.ob.setUp(this.Yi,this.Qj,f,n);var p=this;this.ob.onFullScreenAdLoaded=function(){p.b.trigger(Hc.prototype.e.so,p)};this.ob.onInterstitialAdLoaded=function(){p.b.trigger(Hc.prototype.e.so,p)};this.ob.onFullScreenAdShown=function(){p.Xj=!0;p.b.trigger(Hc.prototype.e.ro,p)};this.ob.onInterstitialAdShown=function(){p.Xj=!0;p.b.trigger(Hc.prototype.e.ro,
p)};this.ob.onFullScreenAdClosed=function(){p.Xj=!1;p.b.trigger(Hc.prototype.e.qo,p)};this.ob.onInterstitialAdHidden=function(){p.Xj=!1;p.b.trigger(Hc.prototype.e.qo,p)};this.ob.onBannerAdPreloaded=function(){p.b.trigger(Hc.prototype.e.pt,p)}}else ga("[Construct 2] com.cranberrygame.phonegap.plugin.ad.admob plugin is required to show Admob ads with Cordova; other platforms are not supported")};f.prototype.so=function(){return!0};f.prototype.ro=function(){return!0};f.prototype.qo=function(){return!0};
f.prototype.pt=function(){return!0};n.e=new f;q.prototype.Pt=function(){u&&(this.ob.preloadInterstitialAd?this.ob.preloadInterstitialAd():this.ob.preloadFullScreenAd&&this.ob.preloadFullScreenAd())};q.prototype.hu=function(){u&&(this.ob.showInterstitialAd?this.ob.showInterstitialAd():this.ob.showFullScreenAd&&this.ob.showFullScreenAd())};n.n=new q;n.U=new function(){}})();
function pc(){return[rc,Hc,sc,tc,uc,W,qc,vc,X,T,Ac,zc,P.prototype.e.Ys,P.prototype.e.Ao,P.prototype.n.bu,tc.prototype.n.Play,sc.prototype.n.xs,P.prototype.n.au,T.prototype.n.no,P.prototype.U.lx,P.prototype.U.kx,sc.prototype.n.zl,P.prototype.e.Gs,tc.prototype.n.Zt,X.prototype.e.Ho,P.prototype.n.Qt,P.prototype.e.Qs,T.prototype.n.zl,X.prototype.e.$s,T.prototype.e.Ws,T.prototype.n.St,sc.prototype.n.eu,T.prototype.U.mu,T.prototype.U.Lo,T.prototype.U.Mo,P.prototype.e.oo,P.prototype.e.Ds,P.prototype.U.Vu,
sc.prototype.U.us,qc.prototype.n.CallFunction,T.prototype.e.Fs,T.prototype.n.Jo,P.prototype.U.mx,T.prototype.e.mo,P.prototype.U.Nu,T.prototype.e.Hs,T.prototype.n.Wt,P.prototype.U["int"],X.prototype.e.wl,qc.prototype.e.Pi,sc.prototype.e.ts,sc.prototype.e.Es,P.prototype.n.Js,sc.prototype.U.Ls,T.prototype.n.Ut,T.prototype.n.gu,sc.prototype.U.Ks,sc.prototype.n.fu,P.prototype.U.random,T.prototype.n.Rt,T.prototype.n.Tt,P.prototype.e.Ps,qc.prototype.U.Nt,P.prototype.U.qx,T.prototype.n.et,P.prototype.n.rs,
T.prototype.n.gt,T.prototype.e.Us,T.prototype.n.iu,sc.prototype.e.Is,P.prototype.n.nu,P.prototype.e.Cs,T.prototype.e.Ot,P.prototype.U.Ke,P.prototype.e.Ms,T.prototype.e.Zs,P.prototype.e.lu,P.prototype.e.zo,X.prototype.e.xl,P.prototype.e.Ns,Ac.prototype.n.$t,P.prototype.n.ju,zc.prototype.n.no,Ac.prototype.n.ht,Ac.prototype.n.Jo,T.prototype.n.Ko,W.prototype.n.Xt,Hc.prototype.n.Pt,Hc.prototype.n.hu,vc.prototype.e.wo,W.prototype.n.As,Ac.prototype.n.Ko,T.prototype.n.Yt,P.prototype.n.Vt,uc.prototype.n.Os,
W.prototype.n.ws,W.prototype.e.uo,W.prototype.n.Rs,W.prototype.e.vo,W.prototype.U.bt,P.prototype.n.Ss,uc.prototype.n.Bs]};
