// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa,ba,ca,da,ea,ga,ha,A,ia,ja,ka,ma,na,pa,ra,ta,ua,va,wa,xa,ya,za,Aa,Ba,Ca,Da,Ea,E,Fa,Ga,Ia,Ja,La,G,Ma,Na,Oa,Pa,Qa,Ra,Sa,Ta,Ua,Va,Wa,Xa,Ya,Za,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,qb,rb,sb,tb,ub,vb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,Xb,Yb,Zb,ac,bc,cc,dc,ec,fc,gc,hc,ic,jc,kc={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(c){return c.__proto__}:function(c){return c.constructor.prototype});
(function(){function c(a,b,d,f){this.set(a,b,d,f)}function p(){this.zb=this.yb=this.Bb=this.Ab=this.Mb=this.Lb=this.$a=this.Za=0}function n(a,b,d,f){a<b?d<f?(F=a<d?a:d,z=b>f?b:f):(F=a<f?a:f,z=b>d?b:d):d<f?(F=b<d?b:d,z=a>f?a:f):(F=b<f?b:f,z=a>d?a:d)}function g(){this.items=this.Ye=null;this.gk=0;H&&(this.Ye=new Set);this.ij=[];this.jg=!0}function l(a){t[y++]=a}function k(){this.ba=this.Pc=this.y=this.zj=0}function h(a){this.Xb=[];this.$l=this.cm=this.dm=this.am=0;this.$k(a)}function b(a,b){this.ip=
a;this.hp=b;this.cells={}}function e(a,b){this.ip=a;this.hp=b;this.cells={}}function d(a,b,d){var f;return C.length?(f=C.pop(),f.Sp=a,f.x=b,f.y=d,f):new ba(a,b,d)}function a(a,b,d){this.Sp=a;this.x=b;this.y=d;this.ec=new ca}function f(a,b,d){var f;return N.length?(f=N.pop(),f.Sp=a,f.x=b,f.y=d,f):new da(a,b,d)}function m(a,b,d){this.Sp=a;this.x=b;this.y=d;this.ec=[];this.Ci=!0;this.Ve=new ca;this.wj=!1}function r(a,b){return a.Ae-b.Ae}ea=function(a){window.console&&window.console.log&&window.console.log(a)};
ga=function(a){window.console&&window.console.error&&window.console.error(a)};aa=function(a){return a};ha=function(a){return"undefined"===typeof a};A=function(a){return"number"===typeof a};ia=function(a){return"string"===typeof a};ja=function(a){return 0<a&&0===(a-1&a)};ka=function(a){--a;for(var b=1;32>b;b<<=1)a=a|a>>b;return a+1};ma=function(a){return 0>a?-a:a};na=function(a,b){return a>b?a:b};pa=function(a,b){return a<b?a:b};ra=Math.PI;ta=function(a){return 0<=a?a|0:(a|0)-1};ua=function(a){var b=
a|0;return b===a?b:b+1};va=function(a,b,d,f,e,m,v,L){var r,h,q,g;a<d?(h=a,r=d):(h=d,r=a);e<v?(g=e,q=v):(g=v,q=e);if(r<g||h>q)return!1;b<f?(h=b,r=f):(h=f,r=b);m<L?(g=m,q=L):(g=L,q=m);if(r<g||h>q)return!1;r=e-a+v-d;h=m-b+L-f;a=d-a;b=f-b;e=v-e;m=L-m;L=ma(b*e-m*a);return ma(e*h-m*r)>L?!1:ma(a*h-b*r)<=L};c.prototype.set=function(a,b,d,f){this.left=a;this.top=b;this.right=d;this.bottom=f};c.prototype.lg=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};c.prototype.width=
function(){return this.right-this.left};c.prototype.height=function(){return this.bottom-this.top};c.prototype.offset=function(a,b){this.left+=a;this.top+=b;this.right+=a;this.bottom+=b;return this};c.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)};c.prototype.WC=function(a){return!(a.right<this.left||a.bottom<this.top||a.left>this.right||a.top>this.bottom)};c.prototype.XC=
function(a,b,d){return!(a.right+b<this.left||a.bottom+d<this.top||a.left+b>this.right||a.top+d>this.bottom)};c.prototype.hc=function(a,b){return a>=this.left&&a<=this.right&&b>=this.top&&b<=this.bottom};c.prototype.Gj=function(a){return this.left===a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};wa=c;p.prototype.Zk=function(a){this.Za=a.left;this.$a=a.top;this.Lb=a.right;this.Mb=a.top;this.Ab=a.right;this.Bb=a.bottom;this.yb=a.left;this.zb=a.bottom};p.prototype.Nv=function(a,
b){if(0===b)this.Zk(a);else{var d=Math.sin(b),f=Math.cos(b),e=a.left*d,m=a.top*d,v=a.right*d,d=a.bottom*d,L=a.left*f,r=a.top*f,h=a.right*f,f=a.bottom*f;this.Za=L-m;this.$a=r+e;this.Lb=h-m;this.Mb=r+v;this.Ab=h-d;this.Bb=f+v;this.yb=L-d;this.zb=f+e}};p.prototype.offset=function(a,b){this.Za+=a;this.$a+=b;this.Lb+=a;this.Mb+=b;this.Ab+=a;this.Bb+=b;this.yb+=a;this.zb+=b;return this};var F=0,z=0;p.prototype.Ss=function(a){n(this.Za,this.Lb,this.Ab,this.yb);a.left=F;a.right=z;n(this.$a,this.Mb,this.Bb,
this.zb);a.top=F;a.bottom=z};p.prototype.hc=function(a,b){var d=this.Za,f=this.$a,e=this.Lb-d,m=this.Mb-f,v=this.Ab-d,L=this.Bb-f,r=a-d,h=b-f,q=e*e+m*m,g=e*v+m*L,m=e*r+m*h,c=v*v+L*L,F=v*r+L*h,l=1/(q*c-g*g),e=(c*m-g*F)*l,q=(q*F-g*m)*l;if(0<=e&&0<q&&1>e+q)return!0;e=this.yb-d;m=this.zb-f;q=e*e+m*m;g=e*v+m*L;m=e*r+m*h;l=1/(q*c-g*g);e=(c*m-g*F)*l;q=(q*F-g*m)*l;return 0<=e&&0<q&&1>e+q};p.prototype.Vc=function(a,b){if(b)switch(a){case 0:return this.Za;case 1:return this.Lb;case 2:return this.Ab;case 3:return this.yb;
case 4:return this.Za;default:return this.Za}else switch(a){case 0:return this.$a;case 1:return this.Mb;case 2:return this.Bb;case 3:return this.zb;case 4:return this.$a;default:return this.$a}};p.prototype.Nu=function(){return(this.Za+this.Lb+this.Ab+this.yb)/4};p.prototype.Ou=function(){return(this.$a+this.Mb+this.Bb+this.zb)/4};p.prototype.au=function(a){var b=a.Nu(),d=a.Ou();if(this.hc(b,d))return!0;b=this.Nu();d=this.Ou();if(a.hc(b,d))return!0;var f,e,m,v,L,r,h,q;for(h=0;4>h;h++)for(q=0;4>q;q++)if(b=
this.Vc(h,!0),d=this.Vc(h,!1),f=this.Vc(h+1,!0),e=this.Vc(h+1,!1),m=a.Vc(q,!0),v=a.Vc(q,!1),L=a.Vc(q+1,!0),r=a.Vc(q+1,!1),va(b,d,f,e,m,v,L,r))return!0;return!1};xa=p;ya=function(a,b,d){return Math.max(Math.min(a,255),0)|Math.max(Math.min(b,255),0)<<8|Math.max(Math.min(d,255),0)<<16};za=function(a){return a&255};Aa=function(a){return(a&65280)>>8};Ba=function(a){return(a&16711680)>>16};Ca=function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);return a};Da=function(a,b){var d,f;b=ta(b);if(!(0>
b||b>=a.length)){d=b;for(f=a.length-1;d<f;d++)a[d]=a[d+1];Ea(a,f)}};Ea=function(a,b){a.length=b};E=function(a){Ea(a,0)};Fa=function(a,b){E(a);var d,f;d=0;for(f=b.length;d<f;++d)a[d]=b[d]};Ga=function(a,b){a.push.apply(a,b)};Ia=function(a,b){var d,f;d=0;for(f=a.length;d<f;++d)if(a[d]===b)return d;return-1};Ja=function(a,b){var d=Ia(a,b);-1!==d&&Da(a,d)};La=function(a,b,d){return a<b?b:a>d?d:a};G=function(a){return a/(180/ra)};Ma=function(a){return 180/ra*a};Na=function(a){a%=360;0>a&&(a+=360);return a};
Oa=function(a){a%=2*ra;0>a&&(a+=2*ra);return a};Pa=function(a){return Na(Ma(a))};Qa=function(a){return Oa(G(a))};Ra=function(a,b,d,f){return Math.atan2(f-b,d-a)};Sa=function(a,b){if(a===b)return 0;var d=Math.sin(a),f=Math.cos(a),e=Math.sin(b),m=Math.cos(b),d=d*e+f*m;return 1<=d?0:-1>=d?ra:Math.acos(d)};Ta=function(a,b,d){var f=Math.sin(a),e=Math.cos(a),m=Math.sin(b),v=Math.cos(b);return Math.acos(f*m+e*v)>d?0<e*m-f*v?Oa(a+d):Oa(a-d):Oa(b)};Ua=function(a,b){var d=Math.sin(a),f=Math.cos(a),e=Math.sin(b),
m=Math.cos(b);return 0>=f*e-d*m};Va=function(a,b,d,f,e,m){if(0===d)return m?a:b;var v=Math.sin(d);d=Math.cos(d);a-=f;b-=e;var L=a*v;a=a*d-b*v;b=b*d+L;return m?a+f:b+e};Wa=function(a,b,d,f){a=d-a;b=f-b;return Math.sqrt(a*a+b*b)};Xa=function(a,b){return!a!==!b};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 w=+new Date;ab=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()-w};var q=!1,u=q=!1,B=!1;"undefined"!==typeof window&&(q=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),q=!q&&/safari/i.test(navigator.userAgent),u=/(iphone|ipod|ipad)/i.test(navigator.userAgent),B=window.c2ejecta);var H=!q&&!B&&!u&&"undefined"!==typeof Set&&"undefined"!==
typeof Set.prototype.forEach;g.prototype.contains=function(a){return this.Bf()?!1:H?this.Ye.has(a):this.items&&this.items.hasOwnProperty(a)};g.prototype.add=function(a){if(H)this.Ye.has(a)||(this.Ye.add(a),this.jg=!1);else{var b=a.toString(),d=this.items;d?d.hasOwnProperty(b)||(d[b]=a,this.gk++,this.jg=!1):(this.items={},this.items[b]=a,this.gk=1,this.jg=!1)}};g.prototype.remove=function(a){if(!this.Bf())if(H)this.Ye.has(a)&&(this.Ye["delete"](a),this.jg=!1);else if(this.items){a=a.toString();var b=
this.items;b.hasOwnProperty(a)&&(delete b[a],this.gk--,this.jg=!1)}};g.prototype.clear=function(){this.Bf()||(H?this.Ye.clear():(this.items=null,this.gk=0),E(this.ij),this.jg=!0)};g.prototype.Bf=function(){return 0===this.count()};g.prototype.count=function(){return H?this.Ye.size:this.gk};var t=null,y=0;g.prototype.IE=function(){if(!this.jg){if(H)E(this.ij),t=this.ij,y=0,this.Ye.forEach(l),t=null,y=0;else{var a=this.ij;E(a);var b,d=0,f=this.items;if(f)for(b in f)f.hasOwnProperty(b)&&(a[d++]=f[b])}this.jg=
!0}};g.prototype.Wd=function(){this.IE();return this.ij};ca=g;new ca;bb=function(a,b){H?cb(a,b.Ye):db(a,b.Wd())};cb=function(a,b){var d,f,e,m;f=d=0;for(e=a.length;d<e;++d)m=a[d],b.has(m)||(a[f++]=m);Ea(a,f)};db=function(a,b){var d,f,e,m;f=d=0;for(e=a.length;d<e;++d)m=a[d],-1===Ia(b,m)&&(a[f++]=m);Ea(a,f)};k.prototype.add=function(a){this.y=a-this.zj;this.Pc=this.ba+this.y;this.zj=this.Pc-this.ba-this.y;this.ba=this.Pc};k.prototype.reset=function(){this.ba=this.Pc=this.y=this.zj=0};eb=k;fb=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,
"\\$&")};h.prototype.$k=function(a){this.vv=a;this.ue=a.length/2;this.Xb.length=a.length;this.fm=this.gm=-1;this.Vs=0};h.prototype.xi=function(){return!this.vv.length};h.prototype.Aa=function(){for(var a=this.Xb,b=a[0],d=b,f=a[1],e=f,m,v,L=1,r=this.ue;L<r;++L)v=2*L,m=a[v],v=a[v+1],m<b&&(b=m),m>d&&(d=m),v<f&&(f=v),v>e&&(e=v);this.am=b;this.cm=d;this.dm=f;this.$l=e};h.prototype.Zk=function(a,b,d){this.Xb.length=8;this.ue=4;var f=this.Xb;f[0]=a.left-b;f[1]=a.top-d;f[2]=a.right-b;f[3]=a.top-d;f[4]=a.right-
b;f[5]=a.bottom-d;f[6]=a.left-b;f[7]=a.bottom-d;this.gm=a.right-a.left;this.fm=a.bottom-a.top;this.Aa()};h.prototype.$i=function(a,b,d,f,e){this.Xb.length=8;this.ue=4;var m=this.Xb;m[0]=a.Za-b;m[1]=a.$a-d;m[2]=a.Lb-b;m[3]=a.Mb-d;m[4]=a.Ab-b;m[5]=a.Bb-d;m[6]=a.yb-b;m[7]=a.zb-d;this.gm=f;this.fm=e;this.Aa()};h.prototype.Mv=function(a){this.ue=a.ue;Fa(this.Xb,a.Xb);this.am=a.am;this.dm-a.dm;this.cm=a.cm;this.$l=a.$l};h.prototype.ai=function(a,b,d){if(this.gm!==a||this.fm!==b||this.Vs!==d){this.gm=a;
this.fm=b;this.Vs=d;var f,e,m,v,L,r=0,h=1,q=this.vv,g=this.Xb;0!==d&&(r=Math.sin(d),h=Math.cos(d));d=0;for(m=this.ue;d<m;d++)f=2*d,e=f+1,v=q[f]*a,L=q[e]*b,g[f]=v*h-L*r,g[e]=L*h+v*r;this.Aa()}};h.prototype.hc=function(a,b){var d=this.Xb;if(a===d[0]&&b===d[1])return!0;var f,e,m,v=this.ue,L=this.am-110,r=this.dm-101,h=this.cm+131,q=this.$l+120,g,c,F=0,l=0;for(f=0;f<v;f++)e=2*f,m=(f+1)%v*2,g=d[e],e=d[e+1],c=d[m],m=d[m+1],va(L,r,a,b,g,e,c,m)&&F++,va(h,q,a,b,g,e,c,m)&&l++;return 1===F%2||1===l%2};h.prototype.Xj=
function(a,b,d){var f=a.Xb,e=this.Xb;if(this.hc(f[0]+b,f[1]+d)||a.hc(e[0]-b,e[1]-d))return!0;var m,v,L,r,h,q,g,c,F,l,u,t;m=0;for(r=this.ue;m<r;m++)for(v=2*m,L=(m+1)%r*2,c=e[v],v=e[v+1],F=e[L],l=e[L+1],L=0,g=a.ue;L<g;L++)if(h=2*L,q=(L+1)%g*2,u=f[h]+b,h=f[h+1]+d,t=f[q]+b,q=f[q+1]+d,va(c,v,F,l,u,h,t,q))return!0;return!1};gb=h;b.prototype.ug=function(a,b,f){var e;e=this.cells[a];return e?(e=e[b])?e:f?(e=d(this,a,b),this.cells[a][b]=e):null:f?(e=d(this,a,b),this.cells[a]={},this.cells[a][b]=e):null};b.prototype.Hc=
function(a){return ta(a/this.ip)};b.prototype.Ic=function(a){return ta(a/this.hp)};b.prototype.update=function(a,b,d){var f,e,m,v,r;if(b)for(f=b.left,e=b.right;f<=e;++f)for(m=b.top,v=b.bottom;m<=v;++m)if(!d||!d.hc(f,m))if(r=this.ug(f,m,!1))r.remove(a),r.Bf()&&(r.ec.clear(),1E3>C.length&&C.push(r),this.cells[f][m]=null);if(d)for(f=d.left,e=d.right;f<=e;++f)for(m=d.top,v=d.bottom;m<=v;++m)b&&b.hc(f,m)||this.ug(f,m,!0).Yp(a)};b.prototype.Mn=function(a,b){var d,f,e,m,v,r;d=this.Hc(a.left);e=this.Ic(a.top);
f=this.Hc(a.right);for(v=this.Ic(a.bottom);d<=f;++d)for(m=e;m<=v;++m)(r=this.ug(d,m,!1))&&r.dump(b)};hb=b;e.prototype.ug=function(a,b,d){var e;e=this.cells[a];return e?(e=e[b])?e:d?(e=f(this,a,b),this.cells[a][b]=e):null:d?(e=f(this,a,b),this.cells[a]={},this.cells[a][b]=e):null};e.prototype.Hc=function(a){return ta(a/this.ip)};e.prototype.Ic=function(a){return ta(a/this.hp)};e.prototype.update=function(a,b,d){var f,e,m,v,r;if(b)for(f=b.left,e=b.right;f<=e;++f)for(m=b.top,v=b.bottom;m<=v;++m)if(!d||
!d.hc(f,m))if(r=this.ug(f,m,!1))r.remove(a),r.Bf()&&(r.reset(),1E3>N.length&&N.push(r),this.cells[f][m]=null);if(d)for(f=d.left,e=d.right;f<=e;++f)for(m=d.top,v=d.bottom;m<=v;++m)b&&b.hc(f,m)||this.ug(f,m,!0).Yp(a)};e.prototype.Mn=function(a,b,d,f,e){var m,v;a=this.Hc(a);b=this.Ic(b);d=this.Hc(d);for(m=this.Ic(f);a<=d;++a)for(f=b;f<=m;++f)(v=this.ug(a,f,!1))&&v.dump(e)};e.prototype.sD=function(a){var b,d,f,e,m;b=a.left;f=a.top;d=a.right;for(e=a.bottom;b<=d;++b)for(a=f;a<=e;++a)if(m=this.ug(b,a,!1))m.Ci=
!1};ib=e;var C=[];a.prototype.Bf=function(){return this.ec.Bf()};a.prototype.Yp=function(a){this.ec.add(a)};a.prototype.remove=function(a){this.ec.remove(a)};a.prototype.dump=function(a){Ga(a,this.ec.Wd())};ba=a;var N=[];m.prototype.Bf=function(){if(!this.ec.length)return!0;if(this.ec.length>this.Ve.count())return!1;this.zp();return!0};m.prototype.Yp=function(a){this.Ve.contains(a)?(this.Ve.remove(a),this.Ve.Bf()&&(this.wj=!1)):this.ec.length?(this.ec[this.ec.length-1].Id()>a.Id()&&(this.Ci=!1),this.ec.push(a)):
(this.ec.push(a),this.Ci=!0)};m.prototype.remove=function(a){this.Ve.add(a);this.wj=!0;30<=this.Ve.count()&&this.zp()};m.prototype.zp=function(){this.wj&&(this.Ve.count()===this.ec.length?this.reset():(bb(this.ec,this.Ve),this.Ve.clear(),this.wj=!1))};m.prototype.wB=function(){this.Ci||(this.ec.sort(r),this.Ci=!0)};m.prototype.reset=function(){E(this.ec);this.Ci=!0;this.Ve.clear();this.wj=!1};m.prototype.dump=function(a){this.zp();this.wB();this.ec.length&&a.push(this.ec)};da=m;var D="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");
jb=function(a){return 0>=a||11<=a?"source-over":D[a-1]};kb=function(a,b,d){if(d)switch(a.Ua=d.ONE,a.Sa=d.ONE_MINUS_SRC_ALPHA,b){case 1:a.Ua=d.ONE;a.Sa=d.ONE;break;case 3:a.Ua=d.ONE;a.Sa=d.ZERO;break;case 4:a.Ua=d.ONE_MINUS_DST_ALPHA;a.Sa=d.ONE;break;case 5:a.Ua=d.DST_ALPHA;a.Sa=d.ZERO;break;case 6:a.Ua=d.ZERO;a.Sa=d.SRC_ALPHA;break;case 7:a.Ua=d.ONE_MINUS_DST_ALPHA;a.Sa=d.ZERO;break;case 8:a.Ua=d.ZERO;a.Sa=d.ONE_MINUS_SRC_ALPHA;break;case 9:a.Ua=d.DST_ALPHA;a.Sa=d.ONE_MINUS_SRC_ALPHA;break;case 10:a.Ua=
d.ONE_MINUS_DST_ALPHA,a.Sa=d.SRC_ALPHA}};qb=function(a){return Math.round(1E6*a)/1E6};rb=function(a,b){return"string"!==typeof a||"string"!==typeof b||a.length!==b.length?!1:a===b?!0:a.toLowerCase()===b.toLowerCase()};sb=function(a){a=a.target;return!a||a===document||a===window||document&&document.body&&a===document.body||rb(a.tagName,"canvas")?!0:!1}})();var lc="undefined"!==typeof Float32Array?Float32Array:Array;function mc(c){var p=new lc(3);c&&(p[0]=c[0],p[1]=c[1],p[2]=c[2]);return p}
function nc(c){var p=new lc(16);c&&(p[0]=c[0],p[1]=c[1],p[2]=c[2],p[3]=c[3],p[4]=c[4],p[5]=c[5],p[6]=c[6],p[7]=c[7],p[8]=c[8],p[9]=c[9],p[10]=c[10],p[11]=c[11],p[12]=c[12],p[13]=c[13],p[14]=c[14],p[15]=c[15]);return p}function oc(c,p){p[0]=c[0];p[1]=c[1];p[2]=c[2];p[3]=c[3];p[4]=c[4];p[5]=c[5];p[6]=c[6];p[7]=c[7];p[8]=c[8];p[9]=c[9];p[10]=c[10];p[11]=c[11];p[12]=c[12];p[13]=c[13];p[14]=c[14];p[15]=c[15]}
function pc(c,p){var n=p[0],g=p[1];p=p[2];c[0]*=n;c[1]*=n;c[2]*=n;c[3]*=n;c[4]*=g;c[5]*=g;c[6]*=g;c[7]*=g;c[8]*=p;c[9]*=p;c[10]*=p;c[11]*=p}
function qc(c,p,n,g){g||(g=nc());var l,k,h,b,e,d,a,f,m=c[0],r=c[1];c=c[2];k=n[0];h=n[1];l=n[2];n=p[1];d=p[2];m===p[0]&&r===n&&c===d?(c=g,c[0]=1,c[1]=0,c[2]=0,c[3]=0,c[4]=0,c[5]=1,c[6]=0,c[7]=0,c[8]=0,c[9]=0,c[10]=1,c[11]=0,c[12]=0,c[13]=0,c[14]=0,c[15]=1):(n=m-p[0],d=r-p[1],a=c-p[2],f=1/Math.sqrt(n*n+d*d+a*a),n*=f,d*=f,a*=f,p=h*a-l*d,l=l*n-k*a,k=k*d-h*n,(f=Math.sqrt(p*p+l*l+k*k))?(f=1/f,p*=f,l*=f,k*=f):k=l=p=0,h=d*k-a*l,b=a*p-n*k,e=n*l-d*p,(f=Math.sqrt(h*h+b*b+e*e))?(f=1/f,h*=f,b*=f,e*=f):e=b=h=0,
g[0]=p,g[1]=h,g[2]=n,g[3]=0,g[4]=l,g[5]=b,g[6]=d,g[7]=0,g[8]=k,g[9]=e,g[10]=a,g[11]=0,g[12]=-(p*m+l*r+k*c),g[13]=-(h*m+b*r+e*c),g[14]=-(n*m+d*r+a*c),g[15]=1)}
(function(){function c(b,e,d){this.Cf=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.cb=!!d;this.Um=this.Zj=!1;this.np=0;this.Ao=1;this.Nr=1E3;this.TE=(this.Nr-this.Ao)/32768;this.ep=mc([0,0,100]);this.wu=mc([0,0,0]);this.lw=mc([0,1,0]);this.Bl=mc([1,1,1]);this.mt=!0;this.nn=nc();this.sd=nc();this.lq=nc();this.mp=nc();this.K=b;this.version=0===this.K.getParameter(this.K.VERSION).indexOf("WebGL 2")?2:1;this.Xt()}function p(b,e,d){this.K=b;this.al=
e;this.name=d;this.Ld=b.getAttribLocation(e,"aPos");this.Bg=b.getAttribLocation(e,"aTex");this.uu=b.getUniformLocation(e,"matP");this.jn=b.getUniformLocation(e,"matMV");this.Ki=b.getUniformLocation(e,"opacity");this.sq=b.getUniformLocation(e,"colorFill");this.vu=b.getUniformLocation(e,"samplerFront");this.nk=b.getUniformLocation(e,"samplerBack");this.zh=b.getUniformLocation(e,"destStart");this.yh=b.getUniformLocation(e,"destEnd");this.pk=b.getUniformLocation(e,"seconds");this.uq=b.getUniformLocation(e,
"pixelWidth");this.tq=b.getUniformLocation(e,"pixelHeight");this.mk=b.getUniformLocation(e,"layerScale");this.lk=b.getUniformLocation(e,"layerAngle");this.qk=b.getUniformLocation(e,"viewOrigin");this.ok=b.getUniformLocation(e,"scrollPos");this.PC=!!(this.uq||this.tq||this.pk||this.nk||this.zh||this.yh||this.mk||this.lk||this.qk||this.ok);this.Eu=this.Fu=-999;this.mn=1;this.Au=this.zu=0;this.Cu=this.yu=this.xu=1;this.Iu=this.Hu=this.Gu=this.Ku=this.Ju=this.Bu=0;this.kq=[];this.Du=nc();this.Ki&&b.uniform1f(this.Ki,
1);this.sq&&b.uniform4f(this.sq,1,1,1,1);this.vu&&b.uniform1i(this.vu,0);this.nk&&b.uniform1i(this.nk,1);this.zh&&b.uniform2f(this.zh,0,0);this.yh&&b.uniform2f(this.yh,1,1);this.mk&&b.uniform1f(this.mk,1);this.lk&&b.uniform1f(this.lk,0);this.qk&&b.uniform2f(this.qk,0,0);this.ok&&b.uniform2f(this.ok,0,0);this.pk&&b.uniform1f(this.pk,0);this.eh=!1}function n(b,e){return b[0]===e[0]&&b[1]===e[1]&&b[2]===e[2]&&b[3]===e[3]&&b[4]===e[4]&&b[5]===e[5]&&b[6]===e[6]&&b[7]===e[7]&&b[8]===e[8]&&b[9]===e[9]&&
b[10]===e[10]&&b[11]===e[11]&&b[12]===e[12]&&b[13]===e[13]&&b[14]===e[14]&&b[15]===e[15]}function g(b,e){this.type=b;this.F=e;this.K=e.K;this.Me=this.rb=this.dv=0;this.qa=this.Td=null;this.Ov=[]}var l=nc();c.prototype.Xt=function(){var b=this.K,e;this.ou=1;this.qh=this.yg=null;this.om=1;b.clearColor(0,0,0,0);b.clear(b.COLOR_BUFFER_BIT);b.enable(b.BLEND);b.blendFunc(b.ONE,b.ONE_MINUS_SRC_ALPHA);b.disable(b.CULL_FACE);b.disable(b.STENCIL_TEST);b.disable(b.DITHER);this.cb?(b.enable(b.DEPTH_TEST),b.depthFunc(b.LEQUAL)):
b.disable(b.DEPTH_TEST);this.pu=b.ONE;this.nu=b.ONE_MINUS_SRC_ALPHA;this.yo=new Float32Array(8E3*(this.cb?3:2));this.ko=new Float32Array(16E3);this.sv=new Float32Array(32E3);this.Rq=b.createBuffer();b.bindBuffer(b.ARRAY_BUFFER,this.Rq);b.bufferData(b.ARRAY_BUFFER,this.sv.byteLength,b.DYNAMIC_DRAW);this.wl=Array(4);this.hl=Array(4);for(e=0;4>e;e++)this.wl[e]=b.createBuffer(),b.bindBuffer(b.ARRAY_BUFFER,this.wl[e]),b.bufferData(b.ARRAY_BUFFER,this.yo.byteLength,b.DYNAMIC_DRAW),this.hl[e]=b.createBuffer(),
b.bindBuffer(b.ARRAY_BUFFER,this.hl[e]),b.bufferData(b.ARRAY_BUFFER,this.ko.byteLength,b.DYNAMIC_DRAW);this.pf=0;this.UC=b.createBuffer();b.bindBuffer(b.ELEMENT_ARRAY_BUFFER,this.UC);for(var d=new Uint16Array(12E3),a=e=0;12E3>e;)d[e++]=a,d[e++]=a+1,d[e++]=a+2,d[e++]=a,d[e++]=a+2,d[e++]=a+3,a+=4;b.bufferData(b.ELEMENT_ARRAY_BUFFER,d,b.STATIC_DRAW);this.Sq=this.dj=this.$f=0;this.qb=[];e=this.cb?"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.Dj({src:"varying mediump vec2 vTex;\nuniform lowp float opacity;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, vTex);\n\tgl_FragColor *= opacity;\n}"},e,"<default>");this.qb.push(d);d=this.Dj({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.qb.push(d);d=this.Dj({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},e,"<earlyz>");this.qb.push(d);d=this.Dj({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"},
e,"<fill>");this.qb.push(d);for(var f in rc)rc.hasOwnProperty(f)&&this.qb.push(this.Dj(rc[f],e,f));b.activeTexture(b.TEXTURE0);b.bindTexture(b.TEXTURE_2D,null);this.ig=[];this.of=0;this.zc=!1;this.ct=this.jk=-1;this.di=null;this.xp=b.createFramebuffer();this.um=this.Nn=null;this.Ps=!1;this.cb&&(this.um=b.createRenderbuffer());this.Lg=mc([0,0,0]);this.Lu=b.getParameter(b.ALIASED_POINT_SIZE_RANGE)[1];2048<this.Lu&&(this.Lu=2048);this.Oc(0)};p.prototype.Er=function(b){n(this.Du,b)||(oc(b,this.Du),this.K.uniformMatrix4fv(this.jn,
!1,b))};c.prototype.Dj=function(b,e,d){var a=this.K,f=a.createShader(a.FRAGMENT_SHADER);a.shaderSource(f,b.src);a.compileShader(f);if(!a.getShaderParameter(f,a.COMPILE_STATUS))return a.deleteShader(f),null;var m=a.createShader(a.VERTEX_SHADER);a.shaderSource(m,e);a.compileShader(m);if(!a.getShaderParameter(m,a.COMPILE_STATUS))return a.deleteShader(f),a.deleteShader(m),null;e=a.createProgram();a.attachShader(e,f);a.attachShader(e,m);a.linkProgram(e);if(!a.getProgramParameter(e,a.LINK_STATUS))return a.deleteShader(f),
a.deleteShader(m),a.deleteProgram(e),null;a.useProgram(e);a.deleteShader(f);a.deleteShader(m);d=new p(a,e,d);d.Ij=b.Ij||0;d.Jj=b.Jj||0;d.lm=!!b.lm;d.xd=!!b.xd;d.Yl=!!b.Yl;d.ca=b.ca||[];b=0;for(f=d.ca.length;b<f;b++)d.ca[b][1]=a.getUniformLocation(e,d.ca[b][0]),d.kq.push(0),a.uniform1f(d.ca[b][1],0);return d};c.prototype.Op=function(b){var e,d;e=0;for(d=this.qb.length;e<d;e++)if(this.qb[e].name===b)return e;return-1};c.prototype.uv=function(b,e,d){var a=this.sd,f=this.nn,m=[0,0,0,0,0,0,0,0];m[0]=a[0]*
b+a[4]*e+a[12];m[1]=a[1]*b+a[5]*e+a[13];m[2]=a[2]*b+a[6]*e+a[14];m[3]=a[3]*b+a[7]*e+a[15];m[4]=f[0]*m[0]+f[4]*m[1]+f[8]*m[2]+f[12]*m[3];m[5]=f[1]*m[0]+f[5]*m[1]+f[9]*m[2]+f[13]*m[3];m[6]=f[2]*m[0]+f[6]*m[1]+f[10]*m[2]+f[14]*m[3];m[7]=-m[2];0!==m[7]&&(m[7]=1/m[7],m[4]*=m[7],m[5]*=m[7],m[6]*=m[7],d[0]=(.5*m[4]+.5)*this.width,d[1]=(.5*m[5]+.5)*this.height)};c.prototype.Rf=function(b,e,d){if(this.width!==b||this.height!==e||d){this.sg();d=this.K;this.width=b;this.height=e;d.viewport(0,0,b,e);qc(this.ep,
this.wu,this.lw,this.sd);if(this.cb){var a=-b/2;b=b/2;var f=e/2;e=-e/2;var m=this.Ao,r=this.Nr,h=this.nn;h||(h=nc());var g=b-a,c=e-f,q=r-m;h[0]=2/g;h[1]=0;h[2]=0;h[3]=0;h[4]=0;h[5]=2/c;h[6]=0;h[7]=0;h[8]=0;h[9]=0;h[10]=-2/q;h[11]=0;h[12]=-(a+b)/g;h[13]=-(e+f)/c;h[14]=-(r+m)/q;h[15]=1;this.Bl[0]=1;this.Bl[1]=1}else e=b/e,a=this.Ao,b=this.Nr,h=this.nn,r=a*Math.tan(45*Math.PI/360),e*=r,f=-e,m=-r,h||(h=nc()),g=e-f,c=r-m,q=b-a,h[0]=2*a/g,h[1]=0,h[2]=0,h[3]=0,h[4]=0,h[5]=2*a/c,h[6]=0,h[7]=0,h[8]=(e+f)/
g,h[9]=(r+m)/c,h[10]=-(b+a)/q,h[11]=-1,h[12]=0,h[13]=0,h[14]=-(b*a*2)/q,h[15]=0,a=[0,0],b=[0,0],this.uv(0,0,a),this.uv(1,1,b),this.Bl[0]=1/(b[0]-a[0]),this.Bl[1]=-1/(b[1]-a[1]);a=0;for(b=this.qb.length;a<b;a++)f=this.qb[a],f.eh=!1,f.uu&&(d.useProgram(f.al),d.uniformMatrix4fv(f.uu,!1,this.nn));d.useProgram(this.qb[this.jk].al);d.bindTexture(d.TEXTURE_2D,null);d.activeTexture(d.TEXTURE1);d.bindTexture(d.TEXTURE_2D,null);d.activeTexture(d.TEXTURE0);this.qh=this.yg=null;this.um&&(d.bindFramebuffer(d.FRAMEBUFFER,
this.xp),d.bindRenderbuffer(d.RENDERBUFFER,this.um),d.renderbufferStorage(d.RENDERBUFFER,d.DEPTH_COMPONENT16,this.width,this.height),this.Ps||(d.framebufferRenderbuffer(d.FRAMEBUFFER,d.DEPTH_ATTACHMENT,d.RENDERBUFFER,this.um),this.Ps=!0),d.bindRenderbuffer(d.RENDERBUFFER,null),d.bindFramebuffer(d.FRAMEBUFFER,null),this.Nn=null)}};c.prototype.jd=function(){qc(this.ep,this.wu,this.lw,this.sd);pc(this.sd,this.Bl)};c.prototype.translate=function(b,e){if(0!==b||0!==e){this.Lg[0]=b;this.Lg[1]=e;this.Lg[2]=
0;var d=this.sd,a=this.Lg,f=a[0],m=a[1],a=a[2];d[12]=d[0]*f+d[4]*m+d[8]*a+d[12];d[13]=d[1]*f+d[5]*m+d[9]*a+d[13];d[14]=d[2]*f+d[6]*m+d[10]*a+d[14];d[15]=d[3]*f+d[7]*m+d[11]*a+d[15]}};c.prototype.scale=function(b,e){if(1!==b||1!==e)this.Lg[0]=b,this.Lg[1]=e,this.Lg[2]=1,pc(this.sd,this.Lg)};c.prototype.Vk=function(b){if(0!==b){var e=this.sd,d,a=Math.sin(b);b=Math.cos(b);var f=e[0],m=e[1],h=e[2],g=e[3],c=e[4],l=e[5],q=e[6],u=e[7];d?e!==d&&(d[8]=e[8],d[9]=e[9],d[10]=e[10],d[11]=e[11],d[12]=e[12],d[13]=
e[13],d[14]=e[14],d[15]=e[15]):d=e;d[0]=f*b+c*a;d[1]=m*b+l*a;d[2]=h*b+q*a;d[3]=g*b+u*a;d[4]=f*-a+c*b;d[5]=m*-a+l*b;d[6]=h*-a+q*b;d[7]=g*-a+u*b}};c.prototype.Rc=function(){if(!n(this.lq,this.sd)){var b=this.gd();b.type=5;b.qa?oc(this.sd,b.qa):b.qa=nc(this.sd);oc(this.sd,this.lq);this.zc=!1}};c.prototype.Vn=function(b){this.cb&&(32760<b&&(b=32760),this.np=this.ep[2]-this.Ao-b*this.TE)};g.prototype.dB=function(){var b=this.K,e=this.F;0!==this.rb?(b.depthMask(!0),b.colorMask(!1,!1,!1,!1),b.disable(b.BLEND),
b.bindFramebuffer(b.FRAMEBUFFER,e.xp),b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,null,0),b.clear(b.DEPTH_BUFFER_BIT),b.bindFramebuffer(b.FRAMEBUFFER,null),e.Um=!0):(b.depthMask(!1),b.colorMask(!0,!0,!0,!0),b.enable(b.BLEND),e.Um=!1)};g.prototype.hB=function(){this.K.bindTexture(this.K.TEXTURE_2D,this.Td)};g.prototype.iB=function(){var b=this.K;b.activeTexture(b.TEXTURE1);b.bindTexture(b.TEXTURE_2D,this.Td);b.activeTexture(b.TEXTURE0)};g.prototype.eB=function(){var b=this.dv,
e=this.F;e.om=b;e=e.di;e.Ki&&e.mn!==b&&(e.mn=b,this.K.uniform1f(e.Ki,b))};g.prototype.ZA=function(){this.K.drawElements(this.K.TRIANGLES,this.Me,this.K.UNSIGNED_SHORT,this.rb)};g.prototype.aB=function(){this.K.blendFunc(this.rb,this.Me)};g.prototype.jB=function(){var b,e,d,a=this.F.qb,f=this.F.ct;b=0;for(e=a.length;b<e;b++)d=a[b],b===f&&d.jn?(d.Er(this.qa),d.eh=!0):d.eh=!1;oc(this.qa,this.F.mp)};g.prototype.$A=function(){var b=this.K,e=this.F;this.Td?(e.qh===this.Td&&(b.activeTexture(b.TEXTURE1),
b.bindTexture(b.TEXTURE_2D,null),e.qh=null,b.activeTexture(b.TEXTURE0)),b.bindFramebuffer(b.FRAMEBUFFER,e.xp),e.Um||b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,this.Td,0)):(e.cb||b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,null,0),b.bindFramebuffer(b.FRAMEBUFFER,null))};g.prototype.WA=function(){var b=this.K,e=this.rb;0===e?(b.clearColor(this.qa[0],this.qa[1],this.qa[2],this.qa[3]),b.clear(b.COLOR_BUFFER_BIT)):1===e?(b.enable(b.SCISSOR_TEST),b.scissor(this.qa[0],
this.qa[1],this.qa[2],this.qa[3]),b.clearColor(0,0,0,0),b.clear(b.COLOR_BUFFER_BIT),b.disable(b.SCISSOR_TEST)):b.clear(b.DEPTH_BUFFER_BIT)};g.prototype.cB=function(){var b=this.K;0!==this.rb?b.enable(b.DEPTH_TEST):b.disable(b.DEPTH_TEST)};g.prototype.YA=function(){var b=this.K,e=this.F;e.cb&&b.disable(b.DEPTH_TEST);var d=e.qb[1];b.useProgram(d.al);!d.eh&&d.jn&&(d.Er(e.mp),d.eh=!0);b.enableVertexAttribArray(d.Ld);b.bindBuffer(b.ARRAY_BUFFER,e.Rq);b.vertexAttribPointer(d.Ld,4,b.FLOAT,!1,0,0);b.drawArrays(b.POINTS,
this.rb/4,this.Me);d=e.di;b.useProgram(d.al);0<=d.Ld&&(b.enableVertexAttribArray(d.Ld),b.bindBuffer(b.ARRAY_BUFFER,e.wl[e.pf]),b.vertexAttribPointer(d.Ld,e.cb?3:2,b.FLOAT,!1,0,0));0<=d.Bg&&(b.enableVertexAttribArray(d.Bg),b.bindBuffer(b.ARRAY_BUFFER,e.hl[e.pf]),b.vertexAttribPointer(d.Bg,2,b.FLOAT,!1,0,0));e.cb&&b.enable(b.DEPTH_TEST)};g.prototype.fB=function(){var b=this.K,e=this.F,d=e.qb[this.rb];e.ct=this.rb;e.di=d;b.useProgram(d.al);!d.eh&&d.jn&&(d.Er(e.mp),d.eh=!0);d.Ki&&d.mn!==e.om&&(d.mn=e.om,
b.uniform1f(d.Ki,e.om));0<=d.Ld&&(b.enableVertexAttribArray(d.Ld),b.bindBuffer(b.ARRAY_BUFFER,e.wl[e.pf]),b.vertexAttribPointer(d.Ld,e.cb?3:2,b.FLOAT,!1,0,0));0<=d.Bg&&(b.enableVertexAttribArray(d.Bg),b.bindBuffer(b.ARRAY_BUFFER,e.hl[e.pf]),b.vertexAttribPointer(d.Bg,2,b.FLOAT,!1,0,0))};g.prototype.bB=function(){var b=this.qa;this.K.uniform4f(this.F.di.sq,b[0],b[1],b[2],b[3])};g.prototype.gB=function(){var b,e,d=this.F.di,a=this.K;b=this.qa;d.nk&&this.F.qh!==this.Td&&(a.activeTexture(a.TEXTURE1),
a.bindTexture(a.TEXTURE_2D,this.Td),this.F.qh=this.Td,a.activeTexture(a.TEXTURE0));var f=b[0];d.uq&&f!==d.Fu&&(d.Fu=f,a.uniform1f(d.uq,f));f=b[1];d.tq&&f!==d.Eu&&(d.Eu=f,a.uniform1f(d.tq,f));f=b[2];e=b[3];!d.zh||f===d.zu&&e===d.Au||(d.zu=f,d.Au=e,a.uniform2f(d.zh,f,e));f=b[4];e=b[5];!d.yh||f===d.xu&&e===d.yu||(d.xu=f,d.yu=e,a.uniform2f(d.yh,f,e));f=b[6];d.mk&&f!==d.Cu&&(d.Cu=f,a.uniform1f(d.mk,f));f=b[7];d.lk&&f!==d.Bu&&(d.Bu=f,a.uniform1f(d.lk,f));f=b[8];e=b[9];!d.qk||f===d.Ju&&e===d.Ku||(d.Ju=f,
d.Ku=e,a.uniform2f(d.qk,f,e));f=b[10];e=b[11];!d.ok||f===d.Gu&&e===d.Hu||(d.Gu=f,d.Hu=e,a.uniform2f(d.ok,f,e));f=b[12];d.pk&&f!==d.Iu&&(d.Iu=f,a.uniform1f(d.pk,f));if(d.ca.length)for(b=0,e=d.ca.length;b<e;b++)f=this.Ov[b],f!==d.kq[b]&&(d.kq[b]=f,a.uniform1f(d.ca[b][1],f))};c.prototype.gd=function(){this.of===this.ig.length&&this.ig.push(new g(0,this));return this.ig[this.of++]};c.prototype.sg=function(){if(0!==this.of&&!this.K.isContextLost()){var b=this.K;0<this.Sq&&(b.bindBuffer(b.ARRAY_BUFFER,
this.Rq),b.bufferSubData(b.ARRAY_BUFFER,0,this.sv.subarray(0,this.Sq)),e&&0<=e.Ld&&"<point>"===e.name&&b.vertexAttribPointer(e.Ld,4,b.FLOAT,!1,0,0));if(0<this.$f){var e=this.di;b.bindBuffer(b.ARRAY_BUFFER,this.wl[this.pf]);b.bufferSubData(b.ARRAY_BUFFER,0,this.yo.subarray(0,this.$f));e&&0<=e.Ld&&"<point>"!==e.name&&b.vertexAttribPointer(e.Ld,this.cb?3:2,b.FLOAT,!1,0,0);b.bindBuffer(b.ARRAY_BUFFER,this.hl[this.pf]);b.bufferSubData(b.ARRAY_BUFFER,0,this.ko.subarray(0,this.dj));e&&0<=e.Bg&&"<point>"!==
e.name&&b.vertexAttribPointer(e.Bg,2,b.FLOAT,!1,0,0)}for(var d,b=0,e=this.of;b<e;b++)switch(d=this.ig[b],d.type){case 1:d.ZA();break;case 2:d.hB();break;case 3:d.eB();break;case 4:d.aB();break;case 5:d.jB();break;case 6:d.$A();break;case 7:d.WA();break;case 8:d.YA();break;case 9:d.fB();break;case 10:d.gB();break;case 11:d.iB();break;case 12:d.bB();break;case 13:d.cB();break;case 14:d.dB()}this.Sq=this.dj=this.$f=this.of=0;this.Um=this.zc=!1;this.pf++;4<=this.pf&&(this.pf=0)}};c.prototype.Ze=function(b){if(b!==
this.ou&&!this.Zj){var e=this.gd();e.type=3;this.ou=e.dv=b;this.zc=!1}};c.prototype.tc=function(b){if(b!==this.yg){var e=this.gd();e.type=2;this.yg=e.Td=b;this.zc=!1}};c.prototype.Qf=function(b,e){if((b!==this.pu||e!==this.nu)&&!this.Zj){var d=this.gd();d.type=4;d.rb=b;d.Me=e;this.pu=b;this.nu=e;this.zc=!1}};c.prototype.Dv=function(){this.Qf(this.K.ONE,this.K.ONE_MINUS_SRC_ALPHA)};c.prototype.Gh=function(b,e,d,a,f,m,h,g){15992<=this.$f&&this.sg();var c=this.$f,l=this.dj,q=this.yo,u=this.ko,k=this.np;
if(this.zc)this.ig[this.of-1].Me+=6;else{var p=this.gd();p.type=1;p.rb=this.cb?c:c/2*3;p.Me=6;this.zc=!0}this.cb?(q[c++]=b,q[c++]=e,q[c++]=k,q[c++]=d,q[c++]=a,q[c++]=k,q[c++]=f,q[c++]=m,q[c++]=k,q[c++]=h,q[c++]=g,q[c++]=k):(q[c++]=b,q[c++]=e,q[c++]=d,q[c++]=a,q[c++]=f,q[c++]=m,q[c++]=h,q[c++]=g);u[l++]=0;u[l++]=0;u[l++]=1;u[l++]=0;u[l++]=1;u[l++]=1;u[l++]=0;u[l++]=1;this.$f=c;this.dj=l};c.prototype.yd=function(b,e,d,a,f,m,h,g,c){15992<=this.$f&&this.sg();var l=this.$f,q=this.dj,u=this.yo,k=this.ko,
p=this.np;if(this.zc)this.ig[this.of-1].Me+=6;else{var t=this.gd();t.type=1;t.rb=this.cb?l:l/2*3;t.Me=6;this.zc=!0}var t=c.left,y=c.top,C=c.right;c=c.bottom;this.cb?(u[l++]=b,u[l++]=e,u[l++]=p,u[l++]=d,u[l++]=a,u[l++]=p,u[l++]=f,u[l++]=m,u[l++]=p,u[l++]=h,u[l++]=g,u[l++]=p):(u[l++]=b,u[l++]=e,u[l++]=d,u[l++]=a,u[l++]=f,u[l++]=m,u[l++]=h,u[l++]=g);k[q++]=t;k[q++]=y;k[q++]=C;k[q++]=y;k[q++]=C;k[q++]=c;k[q++]=t;k[q++]=c;this.$f=l;this.dj=q};c.prototype.Oc=function(b){if(this.jk!==b){if(!this.qb[b]){if(0===
this.jk)return;b=0}var e=this.gd();e.type=9;this.jk=e.rb=b;this.zc=!1}};c.prototype.Qk=function(b){b=this.qb[b];return!(!b.zh&&!b.yh)};c.prototype.Wq=function(b){b=this.qb[b];return!!(b.zh||b.yh||b.lm)};c.prototype.Vq=function(b){return this.qb[b].xd};c.prototype.UD=function(b){b=this.qb[b];return 0!==b.Ij||0!==b.Jj};c.prototype.uC=function(b){return this.qb[b].Ij};c.prototype.vC=function(b){return this.qb[b].Jj};c.prototype.wC=function(b,e){return this.qb[b].ca[e][2]};c.prototype.In=function(b){return this.qb[b].Yl};
c.prototype.Zi=function(b,e,d,a,f,m,h,c,g,l,q,u,k,p,t){var y=this.qb[this.jk],C,n;if(y.PC||t.length){C=this.gd();C.type=10;C.qa?oc(this.sd,C.qa):C.qa=nc();n=C.qa;n[0]=e;n[1]=d;n[2]=a;n[3]=f;n[4]=m;n[5]=h;n[6]=c;n[7]=g;n[8]=l;n[9]=q;n[10]=u;n[11]=k;n[12]=p;y.nk?C.Td=b:C.Td=null;if(t.length)for(d=C.Ov,d.length=t.length,b=0,e=t.length;b<e;b++)d[b]=t[b];this.zc=!1}};c.prototype.clear=function(b,e,d,a){var f=this.gd();f.type=7;f.rb=0;f.qa||(f.qa=nc());f.qa[0]=b;f.qa[1]=e;f.qa[2]=d;f.qa[3]=a;this.zc=!1};
c.prototype.clearRect=function(b,e,d,a){if(!(0>d||0>a)){var f=this.gd();f.type=7;f.rb=1;f.qa||(f.qa=nc());f.qa[0]=b;f.qa[1]=e;f.qa[2]=d;f.qa[3]=a;this.zc=!1}};c.prototype.Hv=function(b){if(this.cb&&(b=!!b,this.Zj!==b)){var e=this.gd();e.type=14;e.rb=b?1:0;this.zc=!1;this.Zj=b;this.Nn=null;this.Zj?this.Oc(2):this.Oc(0)}};c.prototype.Fv=function(b){if(this.cb){var e=this.gd();e.type=13;e.rb=b?1:0;this.zc=!1}};c.prototype.Bt=function(){oc(this.lq,l);this.jd();this.Rc();var b=this.width/2,e=this.height/
2;this.Gh(-b,e,b,e,b,-e,-b,-e);oc(l,this.sd);this.Rc()};c.prototype.Ev=function(b,e,d){this.Oc(3);var a=this.gd();a.type=12;a.qa||(a.qa=nc());a.qa[0]=b;a.qa[1]=e;a.qa[2]=d;a.qa[3]=1;this.zc=!1};c.prototype.uE=function(){this.Oc(0)};c.prototype.eE=function(){this.Oc(2)};c.prototype.TD=function(){this.sg();this.K.flush()};var k=[],h={};c.prototype.MA=function(){E(k);h={}};c.prototype.Kd=function(b,e,d,a,f){e=!!e;d=!!d;var m=b.src+","+e+","+d+(e?","+f:""),r=null;if("undefined"!==typeof b.src&&h.hasOwnProperty(m))return r=
h[m],r.em++,r;this.sg();var c=this.K,g=ja(b.width)&&ja(b.height),r=c.createTexture();c.bindTexture(c.TEXTURE_2D,r);c.pixelStorei(c.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var l=c.RGBA,q=c.RGBA,u=c.UNSIGNED_BYTE;if(a&&!this.Cf)switch(a){case 1:q=l=c.RGB;break;case 2:u=c.UNSIGNED_SHORT_4_4_4_4;break;case 3:u=c.UNSIGNED_SHORT_5_5_5_1;break;case 4:q=l=c.RGB,u=c.UNSIGNED_SHORT_5_6_5}if(1===this.version&&!g&&e){a=document.createElement("canvas");a.width=ka(b.width);a.height=ka(b.height);var p=a.getContext("2d");
"undefined"!==typeof p.imageSmoothingEnabled?p.imageSmoothingEnabled=d:(p.webkitImageSmoothingEnabled=d,p.mozImageSmoothingEnabled=d,p.msImageSmoothingEnabled=d);p.drawImage(b,0,0,b.width,b.height,0,0,a.width,a.height);c.texImage2D(c.TEXTURE_2D,0,l,q,u,a)}else c.texImage2D(c.TEXTURE_2D,0,l,q,u,b);e?"repeat-x"===f?(c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_S,c.REPEAT),c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_T,c.CLAMP_TO_EDGE)):("repeat-y"===f?c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_S,c.CLAMP_TO_EDGE):
c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_S,c.REPEAT),c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_T,c.REPEAT)):(c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_S,c.CLAMP_TO_EDGE),c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_T,c.CLAMP_TO_EDGE));d?(c.texParameteri(c.TEXTURE_2D,c.TEXTURE_MAG_FILTER,c.LINEAR),(g||2<=this.version)&&this.mt?(c.texParameteri(c.TEXTURE_2D,c.TEXTURE_MIN_FILTER,c.LINEAR_MIPMAP_LINEAR),c.generateMipmap(c.TEXTURE_2D)):c.texParameteri(c.TEXTURE_2D,c.TEXTURE_MIN_FILTER,c.LINEAR)):
(c.texParameteri(c.TEXTURE_2D,c.TEXTURE_MAG_FILTER,c.NEAREST),c.texParameteri(c.TEXTURE_2D,c.TEXTURE_MIN_FILTER,c.NEAREST));c.bindTexture(c.TEXTURE_2D,null);this.yg=null;r.he=b.width;r.ge=b.height;r.em=1;r.Us=m;k.push(r);return h[m]=r};c.prototype.Yc=function(b,e,d,a){this.sg();var f=this.K;this.Cf&&(a=!1);var m=f.createTexture();f.bindTexture(f.TEXTURE_2D,m);f.texImage2D(f.TEXTURE_2D,0,f.RGBA,b,e,0,f.RGBA,a?f.UNSIGNED_SHORT_4_4_4_4:f.UNSIGNED_BYTE,null);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_S,
f.CLAMP_TO_EDGE);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_T,f.CLAMP_TO_EDGE);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MAG_FILTER,d?f.LINEAR:f.NEAREST);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,d?f.LINEAR:f.NEAREST);f.bindTexture(f.TEXTURE_2D,null);this.yg=null;m.he=b;m.ge=e;k.push(m);return m};c.prototype.yw=function(b,e,d){this.sg();var a=this.K;this.Cf&&(d=!1);a.bindTexture(a.TEXTURE_2D,e);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,b)}catch(f){console&&console.error&&console.error("Error updating WebGL texture: ",f)}a.bindTexture(a.TEXTURE_2D,null);this.yg=null};c.prototype.deleteTexture=function(b){b&&("undefined"!==typeof b.em&&1<b.em?b.em--:(this.sg(),b===this.yg&&(this.K.bindTexture(this.K.TEXTURE_2D,null),this.yg=null),b===this.qh&&(this.K.activeTexture(this.K.TEXTURE1),this.K.bindTexture(this.K.TEXTURE_2D,null),this.K.activeTexture(this.K.TEXTURE0),this.qh=null),Ja(k,b),"undefined"!==
typeof b.Us&&delete h[b.Us],this.K.deleteTexture(b)))};c.prototype.Pd=function(b){if(b!==this.Nn){var e=this.gd();e.type=6;this.Nn=e.Td=b;this.zc=!1}};tb=c})();
(function(){function c(a){if(a&&(a.getContext||a.dc)&&!a.c2runtime){a.c2runtime=this;var b=this;this.od=(this.Vm=/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.ac=!!a.dc;this.cu="undefined"!==typeof window.AppMobi||
this.ac;this.ad=!!window.c2cocoonjs;this.me=!!window.c2ejecta;this.ad&&(CocoonJS.App.onSuspended.addEventListener(function(){b.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){b.setSuspended(!1)}));this.me&&(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.Da=this.ac||this.ad||this.me;this.ak=
/edge\//i.test(navigator.userAgent);this.Cf=(/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent))&&!this.ak;this.hu=/tizen/i.test(navigator.userAgent);this.jh=/android/i.test(navigator.userAgent)&&!this.hu&&!this.Cf&&!this.ak;this.lu=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&!this.Cf&&!this.ak;this.gD=/ipad/i.test(navigator.userAgent);this.Df=this.lu||this.gD||this.me;this.Yj=(/chrome/i.test(navigator.userAgent)||
/chromium/i.test(navigator.userAgent))&&!this.Cf&&!this.ak;this.bu=/amazonwebappplatform/i.test(navigator.userAgent);this.$C=/firefox/i.test(navigator.userAgent);this.cD=/safari/i.test(navigator.userAgent)&&!this.Yj&&!this.Cf&&!this.ak;this.dD=/windows/i.test(navigator.userAgent);this.gu=this.wg="undefined"!==typeof window.c2nodewebkit||"undefined"!==typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.hq=!("undefined"===typeof window.c2isWindows8||
!window.c2isWindows8);this.ju=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.wi=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.Xm=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.gq=!!window.cr_windows10;this.iu=this.hq||this.ju||this.Xm||this.gq;this.du=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.Tm=this.jh&&!this.Yj&&!this.Vm&&!this.$C&&!this.bu&&!this.Da;
this.devicePixelRatio=1;this.ne=this.od||this.Vm||this.cu||this.ad||this.jh||this.Df||this.wi||this.Xm||this.du||this.hu||this.me;this.ne||(this.ne=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));this.ck=!!(this.Df&&this.od&&window.webkit);this.Vp=null;this.SC="";this.ck&&(this.Vp=cordova&&cordova.plugins&&cordova.plugins.CorHttpd?cordova.plugins.CorHttpd:null);"undefined"===typeof cr_is_preview||this.wg||"?nw"!==window.location.search&&
!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||(this.wg=!0);this.eu="undefined"!==typeof cr_is_preview&&-1<window.location.search.indexOf("debug");this.canvas=a;this.fp=document.getElementById("c2canvasdiv");this.F=this.K=null;this.Rp="(unavailable)";this.cb=!1;this.Vg=0;this.Ja=null;this.Bp="";this.Em=!1;this.Zu=this.$u=0;this.canvas.oncontextmenu=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.onselectstart=function(a){a.preventDefault&&a.preventDefault();
return!1};this.ac&&(window.c2runtime=this);this.wg&&(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.Tm&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=a.width;this.height=a.height;this.aa=this.width;this.Z=this.height;this.mm=this.width;this.Fj=this.height;this.Gi=window.innerWidth;this.Fi=window.innerHeight;
this.N=!0;this.bk=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.L=[];this.lb=[];this.oq={};this.pe=[];this.wp={};this.uf=[];this.Nh=[];this.to=[];this.Xo=[];this.vA=[];this.Vv=null;this.Tg={};this.aq=this.vg=!1;this.qd=0;this.$p=this.fq=!1;this.ie=[];this.$j=!1;this.dn=this.hr="";this.Tb=null;this.Ef="";this.fl=this.Sv=!1;this.Dm=[];this.Ug=this.rg=0;this.Pu=30;this.lp=this.rk=0;this.df=1;this.tb=new eb;this.ag=new eb;this.rn=this.Hm=this.Yg=this.Qc=this.sh=
this.Ap=this.an=0;this.Bj=null;this.wm=[];this.vp=[];this.zm=-1;this.vq=[[]];this.Ar=this.kn=0;this.Kn(null);this.sk=[];this.tk=-1;this.Su=this.zk=0;this.nq=!0;this.Lj=0;this.gl=[];this.tr=this.Xq=-1;this.fk=!0;this.Ji=0;this.Ne=!1;this.yE=0;this.Zh=null;this.fb=this.Om=!1;this.Wu=new ca;this.Fq=new ca;this.Gq=new ca;this.Tk=[];this.xe=new gb([]);this.rr=new gb([]);this.Yh=[];this.pi={};this.kg={};this.gg={};this.jj={};this.Qs={};this.su=this.cn=this.Fb=this.Sb=this.ru=this.bn=this.ua=null;this.hj=
this.iq=!1;this.Cp=[null,null];this.wf=0;this.Mj="";this.Jf={};this.dl=this.zg=null;this.Uv="";this.qn=[];this.dE()}}function p(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 g(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function l(a,b,d,f){try{var e=indexedDB.open("_C2SaveStates");e.onupgradeneeded=g;e.onerror=f;e.onsuccess=function(e){e=e.target.result;e.onerror=f;e.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,
data:b}).onsuccess=d}}catch(m){f(m)}}function k(a,b,d){try{var f=indexedDB.open("_C2SaveStates");f.onupgradeneeded=g;f.onerror=d;f.onsuccess=function(f){f=f.target.result;f.onerror=d;var e=f.transaction(["saves"]).objectStore("saves").get(a);e.onsuccess=function(){e.result?b(e.result.data):b(null)}}}catch(e){d(e)}}function h(){ea("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?window.location.reload(!0):window.location=window.location+
"?continuous"}function b(a){var b,d={};for(b in a)!a.hasOwnProperty(b)||a[b]instanceof ca||a[b]&&"undefined"!==typeof a[b].vF||"spriteCreatedDestroyCallback"!==b&&(d[b]=a[b]);return d}var e=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;c.prototype.dE=function(){var a=this;if(this.ck)this.Vp?this.Vp.startServer({port:0,localhost_only:!0},function(b){a.SC=b;a.ut(function(b){a.Ii(JSON.parse(b))},
function(){alert("Error fetching data.js")})},function(a){alert("error starting local server: "+a)}):this.ut(function(b){a.Ii(JSON.parse(b))},function(){alert("Error fetching data.js")});else{var b;this.wi?b=new ActiveXObject("Microsoft.XMLHTTP"):b=new XMLHttpRequest;var d="data.js";if(this.hq||this.wi||this.Xm||this.gq)d="data.json";b.open("GET",d,!0);var f=!1;if(!this.Da&&"response"in b&&"responseType"in b)try{b.responseType="json",f="json"===b.responseType}catch(e){f=!1}if(!f&&"responseType"in
b)try{b.responseType="text"}catch(m){}if("overrideMimeType"in b)try{b.overrideMimeType("application/json; charset=utf-8")}catch(h){}this.wi?b.onreadystatechange=function(){4===b.readyState&&a.Ii(JSON.parse(b.responseText))}:(b.onload=function(){if(f)a.Ii(b.response);else if(a.me){var d=b.responseText,d=d.substr(d.indexOf("{"));a.Ii(JSON.parse(d))}else a.Ii(JSON.parse(b.responseText))},b.onerror=function(a){ga("Error requesting "+d+":");ga(a)});b.send()}};c.prototype.VC=function(){var a=this,b,d,f,
e,m,h,c,r,q;this.kh=(!this.Da||this.me||this.od)&&this.KE&&!this.Tm;0===this.xc&&this.Df&&(this.kh=!1);this.devicePixelRatio=this.kh?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.uc();0<this.xc&&this.setSize(window.innerWidth,window.innerHeight,!0);try{this.lt&&(this.ad||this.me||!this.Da)&&(b={alpha:!0,depth:!1,antialias:!1,failIfMajorPerformanceCaveat:!0},this.K=this.canvas.getContext("webgl2",b)||this.canvas.getContext("webgl",
b)||this.canvas.getContext("experimental-webgl",b))}catch(g){}if(this.K){if(b=this.K.getExtension("WEBGL_debug_renderer_info"))this.Rp=this.K.getParameter(b.UNMASKED_RENDERER_WEBGL)+" ["+this.K.getParameter(b.UNMASKED_VENDOR_WEBGL)+"]";this.cb&&(this.Rp+=" [front-to-back enabled]");this.Da||(this.oc=document.createElement("canvas"),jQuery(this.oc).appendTo(this.canvas.parentNode),this.oc.oncontextmenu=function(){return!1},this.oc.onselectstart=function(){return!1},this.oc.width=Math.round(this.mm*
this.devicePixelRatio),this.oc.height=Math.round(this.Fj*this.devicePixelRatio),jQuery(this.oc).css({width:this.mm+"px",height:this.Fj+"px"}),this.tv(),this.Oq=this.oc.getContext("2d"));this.F=new tb(this.K,this.ne,this.cb);this.F.Rf(this.canvas.width,this.canvas.height);this.F.mt=0!==this.kB;this.Ja=null;this.canvas.addEventListener("webglcontextlost",function(b){b.preventDefault();a.xD();ea("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",
function(){a.F.Xt();a.F.Rf(a.F.width,a.F.height,!0);a.Sb=null;a.Fb=null;a.Cp[0]=null;a.Cp[1]=null;a.yD();a.N=!0;ea("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);b=0;for(d=this.L.length;b<d;b++)for(m=this.L[b],f=0,e=m.ka.length;f<e;f++)c=m.ka[f],c.Ib=this.F.Op(c.id),c.xd=this.F.Vq(c.Ib),this.hj=this.hj||this.F.Qk(c.Ib);b=0;for(d=this.pe.length;b<d;b++){r=this.pe[b];f=0;for(e=r.ka.length;f<e;f++)c=r.ka[f],c.Ib=this.F.Op(c.id),c.xd=this.F.Vq(c.Ib);r.ze();f=0;for(e=r.na.length;f<
e;f++){q=r.na[f];m=0;for(h=q.ka.length;m<h;m++)c=q.ka[m],c.Ib=this.F.Op(c.id),c.xd=this.F.Vq(c.Ib),this.hj=this.hj||this.F.Qk(c.Ib);q.ze()}}}else{if(0<this.xc&&this.ac){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.Ja=AppMobi.canvas.getContext("2d");try{this.Ja.samplingMode=this.Qa?"smooth":"sharp",this.Ja.globalScale=1,this.Ja.HTML5CompatibilityMode=!0,this.Ja.imageSmoothingEnabled=this.Qa}catch(l){}0!==this.width&&0!==this.height&&
(this.Ja.width=this.width,this.Ja.height=this.height)}this.Ja||(this.ad?(b={antialias:!!this.Qa,alpha:!0},this.Ja=this.canvas.getContext("2d",b)):(b={alpha:!0},this.Ja=this.canvas.getContext("2d",b)),this.Un(this.Ja,this.Qa));this.Oq=this.oc=null}this.cw=function(b){a.Na(!1,b)};window==window.top||this.Da||this.iu||this.wi||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&
(this.ad&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(ea("Reloading for continuous preview"),this.dn="__c2_continuouspreview",this.fl=!0),this.KD&&!this.ne&&(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.Eh()});this.Da||(b=function(a){if(sb(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.xc&&this.kh&&1<this.devicePixelRatio&&this.setSize(this.Vb,this.Ub,!0);this.iw();this.MC();this.go();this.U={}};c.prototype.setSize=function(a,
b,d){var f=0,e=0,m=0,h=0,h=0;if(this.Gi!==a||this.Fi!==b||d){this.Gi=a;this.Fi=b;var c=this.xc,r=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.Ne)&&!this.od;if(r||0!==this.xc||d)r&&0<this.wf&&(c=this.wf),d=this.devicePixelRatio,4<=c?(m=this.Vb/this.Ub,a/b>m?(m*=b,5===c?(h=m*d/this.Vb,1<h?h=Math.floor(h):1>h&&(h=1/Math.ceil(1/h)),m=this.Vb*h/d,h=this.Ub*h/d,f=(a-m)/2,e=(b-h)/2,a=m,b=h):(f=(a-m)/2,a=m)):(h=a/m,5===c?(h=h*d/this.Ub,1<
h?h=Math.floor(h):1>h&&(h=1/Math.ceil(1/h)),m=this.Vb*h/d,h=this.Ub*h/d,f=(a-m)/2,e=(b-h)/2,a=m):e=(b-h)/2,b=h),r&&!this.wg&&(e=f=0)):this.wg&&this.Ne&&0===this.Ct&&(f=Math.floor((a-this.Vb)/2),e=Math.floor((b-this.Ub)/2),a=this.Vb,b=this.Ub),2>c&&(this.yj=d),this.mm=Math.round(a),this.Fj=Math.round(b),this.width=Math.round(a*d),this.height=Math.round(b*d),this.N=!0,this.zw?(this.aa=this.width,this.Z=this.height,this.ld=!0):this.width<this.Vb&&this.height<this.Ub||1===c?(this.aa=this.width,this.Z=
this.height,this.ld=!0):(this.aa=this.Vb,this.Z=this.Ub,this.ld=!1,2===c?(m=this.Vb/this.Ub,c=this.Gi/this.Fi,c<m?this.aa=this.Z*c:c>m&&(this.Z=this.aa/c)):3===c&&(m=this.Vb/this.Ub,c=this.Gi/this.Fi,c>m?this.aa=this.Z*c:c<m&&(this.Z=this.aa/c))),this.fp&&!this.Da&&(jQuery(this.fp).css({width:Math.round(a)+"px",height:Math.round(b)+"px","margin-left":Math.floor(f)+"px","margin-top":Math.floor(e)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(a)+"px",height:Math.round(b)+
"px"})),this.canvas&&(this.canvas.width=Math.round(a*d),this.canvas.height=Math.round(b*d),this.me?(this.canvas.style.left=Math.floor(f)+"px",this.canvas.style.top=Math.floor(e)+"px",this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(b)+"px"):this.kh&&!this.Da&&(this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(b)+"px")),this.oc&&(this.oc.width=Math.round(a*d),this.oc.height=Math.round(b*d),this.oc.style.width=this.mm+"px",this.oc.style.height=
this.Fj+"px"),this.F&&this.F.Rf(Math.round(a*d),Math.round(b*d)),this.ac&&this.Ja&&(this.Ja.width=Math.round(a),this.Ja.height=Math.round(b)),this.Ja&&this.Un(this.Ja,this.Qa),this.iw(),this.lu&&!this.od&&window.scrollTo(0,0)}};c.prototype.iw=function(){if(this.yA&&0!==this.Mq){var a="portrait";2===this.Mq&&(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)}}};c.prototype.xD=function(){this.F.MA();this.iq=!0;var a,b,d;a=0;for(b=this.L.length;a<b;a++)d=this.L[a],d.Ti&&d.Ti()};c.prototype.yD=function(){this.iq=!1;var a,b,d;a=0;for(b=this.L.length;a<b;a++)d=this.L[a],d.tn&&d.tn()};c.prototype.tv=function(){if(!this.Da){var a=(document.mozFullScreen||document.webkitIsFullScreen||
document.fullScreen||document.msFullscreenElement||this.Ne)&&!this.od?jQuery(this.canvas).offset():jQuery(this.canvas).position();a.position="absolute";jQuery(this.oc).css(a)}};var d=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;c.prototype.setSuspended=function(a){var b;if(a&&!this.bk)for(ea("[Construct 2] Suspending"),this.bk=!0,-1!==this.Xq&&d&&d(this.Xq),-1!==this.tr&&clearTimeout(this.tr),
a=0,b=this.gl.length;a<b;a++)this.gl[a](!0);else if(!a&&this.bk){ea("[Construct 2] Resuming");this.bk=!1;this.an=ab();this.sh=ab();a=this.rk=this.Hm=0;for(b=this.gl.length;a<b;a++)this.gl[a](!1);this.Na(!1)}};c.prototype.Ls=function(a){this.gl.push(a)};c.prototype.dg=function(a){return this.qn[a]};c.prototype.Ii=function(a){a&&a.project||ga("Project model unavailable");a=a.project;this.name=a[0];this.yt=a[1];this.xc=a[12];this.Ct=a[12];this.Vb=a[10];this.Ub=a[11];this.ov=this.Vb/2;this.pv=this.Ub/
2;this.Da&&!this.me&&(4<=a[12]||0===a[12])&&(ea("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.Ct=this.xc=3);this.Hr=a[18];this.Ag=a[19];if(0===this.Ag){var b=new Image;b.crossOrigin="anonymous";this.Iv(b,"loading-logo.png");this.zg={ln:b}}else if(4===this.Ag){b=new Image;b.src="";var d=new Image;d.src="";var f=new Image;f.src="";var e=new Image;e.src="";var m=new Image;m.src="";var h=new Image;h.src="";var c=new Image;c.src=
"";var r=new Image;r.src="";var q=new Image;q.src="";var g=new Image;g.src="";var l=new Image;l.src="";var u=new Image;u.src="";this.zg={ln:[b,d,f,e],QD:[m,h,c,r],SE:[q,g,l,u]}}this.zk=a[21];this.qn=sc();this.cf=new I(this);b=0;for(d=a[2].length;b<d;b++)c=a[2][b],f=this.dg(c[0]),ub(c,f.prototype),r=new f(this),r.ao=c[1],r.xg=c[2],r.BF=c[5],r.Ru=c[9],r.G&&r.G(),this.plugins.push(r);this.qn=sc();b=0;for(d=a[3].length;b<d;b++){c=a[3][b];m=this.dg(c[1]);r=null;f=0;for(e=this.plugins.length;f<e;f++)if(this.plugins[f]instanceof
m){r=this.plugins[f];break}q=new r.J(r);q.name=c[0];q.S=c[2];q.Zp=c[3].slice(0);q.ME=c[3].length;q.BA=c[4];q.fC=c[5];q.ta=c[11];q.S?(q.Bh=[],q.vf=this.Lj++,q.kb=null):(q.Bh=null,q.vf=-1,q.kb=[]);q.Bm=null;q.ji=null;q.nt=null;q.lc=!1;q.Xc=null;c[6]?(q.kl=c[6][0],q.ll=c[6][1],q.ej=c[6][2]):(q.kl=null,q.ll=0,q.ej=0);c[7]?q.Tc=c[7]:q.Tc=null;q.index=b;q.n=[];q.qm=[];q.Vf=[new vb(q)];q.De=0;q.Fd=null;q.RA=0;q.bj=!0;q.vo=wb;q.Jt=xb;q.sC=yb;q.R=zb;q.Rk=Ab;q.We=Bb;q.wd=Cb;q.Mm=Db;q.Dp=Fb;q.Gp=Gb;q.Uc=Hb;
q.Ip=Ib;q.Cj=new hb(this.Vb,this.Ub);q.Zl=!0;q.vj=!1;q.U={};q.toString=Jb;q.lb=[];f=0;for(e=c[8].length;f<e;f++){g=c[8][f];l=this.dg(g[1]);u=null;m=0;for(h=this.lb.length;m<h;m++)if(this.lb[m]instanceof l){u=this.lb[m];break}u||(u=new l(this),u.Cq=[],u.Ch=new ca,u.G&&u.G(),this.lb.push(u),kc.xE&&u instanceof kc.xE&&(this.Vv=u));-1===u.Cq.indexOf(q)&&u.Cq.push(q);m=new u.J(u,q);m.name=g[0];m.ta=g[2];m.G();q.lb.push(m)}q.global=c[9];q.dq=c[10];q.ka=[];f=0;for(e=c[12].length;f<e;f++)q.ka.push({id:c[12][f][0],
name:c[12][f][1],Ib:-1,xd:!1,gc:!0,index:f});q.SF=c[13];this.Hr&&!q.S&&!q.dq&&r.xg||q.G();q.name&&(this.types[q.name]=q);this.L.push(q);r.ao&&(f=new r.I(q),f.uid=this.zk++,f.wv=this.Su++,f.gh=0,f.Rj=Kb,f.toString=Lb,f.B=c[14],f.G(),q.n.push(f),this.Jf[f.uid.toString()]=f)}b=0;for(d=a[4].length;b<d;b++)for(m=a[4][b],h=this.L[m[0]],f=1,e=m.length;f<e;f++)c=this.L[m[f]],c.kb.push(h),h.Bh.push(c);b=0;for(d=a[28].length;b<d;b++){m=a[28][b];h=[];f=0;for(e=m.length;f<e;f++)h.push(this.L[m[f]]);f=0;for(e=
h.length;f<e;f++)h[f].lc=!0,h[f].Xc=h}if(0<this.Lj)for(b=0,d=this.L.length;b<d;b++)if(c=this.L[b],!c.S&&c.kb.length){c.Bm=Array(this.Lj);c.ji=Array(this.Lj);c.nt=Array(this.Lj);q=[];f=u=l=g=0;for(e=c.kb.length;f<e;f++)for(r=c.kb[f],c.Bm[r.vf]=g,g+=r.ME,c.ji[r.vf]=l,l+=r.BA,c.nt[r.vf]=u,u+=r.fC,m=0,h=r.ka.length;m<h;m++)q.push(Ca({},r.ka[m]));c.ka=q.concat(c.ka);f=0;for(e=c.ka.length;f<e;f++)c.ka[f].index=f}b=0;for(d=a[5].length;b<d;b++)c=a[5][b],f=new Mb(this,c),this.oq[f.name]=f,this.pe.push(f);
b=0;for(d=a[6].length;b<d;b++)c=a[6][b],f=new Nb(this,c),this.wp[f.name]=f,this.uf.push(f);b=0;for(d=this.uf.length;b<d;b++)this.uf[b].wb();b=0;for(d=this.uf.length;b<d;b++)this.uf[b].Dr();b=0;for(d=this.to.length;b<d;b++)this.to[b].wb();E(this.to);this.xA=a[7];this.Mj=a[8];this.Cc=a[9];this.yj=1;this.lt=a[13];this.Qa=a[14];this.Ys=a[15];this.NE=a[16];this.KE=a[17];this.Mq=a[20];this.yA=0<this.Mq;this.KD=a[22];this.ld=this.zw=a[23];this.kB=a[24];this.RD=a[25];this.cb=a[27]&&!this.Cf;this.eo=Date.now();
E(this.qn);this.VC()};var a=!1;c.prototype.Kr=function(b,d){b.cocoonLazyLoad=!0;b.onerror=function(d){a=b.Ts=!0;console&&console.error&&console.error("Error loading image '"+b.src+"': ",d)};this.me?b.src=d:b.src||("undefined"!==typeof XAPKReader?XAPKReader.get(d,function(a){b.src=a},function(f){a=b.Ts=!0;console&&console.error&&console.error("Error extracting image '"+d+"' from expansion file: ",f)}):(b.crossOrigin="anonymous",this.Iv(b,d)));this.Nh.push(b)};c.prototype.dC=function(a){var b,d;b=0;
for(d=this.Nh.length;b<d;b++)if(this.Nh[b].NA===a)return this.Nh[b];return null};var f=0,m=!1;c.prototype.MC=function(){this.Zh&&(f=this.Zh.sE(this.xA))};c.prototype.Os=function(){var a=f,b=0,d=0,e=!0,c,h,d=0;for(c=this.Nh.length;d<c;d++){h=this.Nh[d];var q=h.jm;if(!q||0>=q)q=5E4;a+=q;h.src&&(h.complete||h.loaded)&&!h.Ts?b+=q:e=!1}e&&this.RD&&this.Zh&&(m||(this.Zh.AE(),m=!0),d=this.Zh.tC(),b+=d,d<f&&(e=!1));this.qe=0==a?1:b/a;return e};var r=!1;c.prototype.go=function(){if(this.Ja||this.F){var b=
this.Ja||this.Oq;this.oc&&this.tv();var d=window.innerWidth,f=window.innerHeight;this.Gi===d&&this.Fi===f||this.setSize(d,f);this.qe=0;this.qu=-1;var m=this;if(this.Os()&&(4!==this.Ag||r))this.NC();else{f=Date.now()-this.eo;if(b){var c=this.width,h=this.height,d=this.devicePixelRatio;if(3>this.Ag&&(this.ad||500<=f&&this.qu!=this.qe)){b.clearRect(0,0,c,h);var f=c/2,h=h/2,c=0===this.Ag&&this.zg.ln.complete,q=40*d,g=0,l=80*d,u;if(c){var t=this.zg.ln,l=t.width*d;u=t.height*d;q=l/2;g=u/2;b.drawImage(t,
ta(f-q),ta(h-g),l,u)}1>=this.Ag?(f=ta(f-q)+.5,h=ta(h+(g+(c?12*d:0)))+.5,b.fillStyle=a?"red":"DodgerBlue",b.fillRect(f,h,Math.floor(l*this.qe),6*d),b.strokeStyle="black",b.strokeRect(f,h,l,6*d),b.strokeStyle="white",b.strokeRect(f-1*d,h-1*d,l+2*d,8*d)):2===this.Ag&&(b.font=this.me?"12pt ArialMT":"12pt Arial",b.fillStyle=a?"#f00":"#999",b.RF="middle",d=Math.round(100*this.qe)+"%",c=b.measureText?b.measureText(d):null,b.fillText(d,f-(c?c.width:0)/2,h));this.qu=this.qe}else if(4===this.Ag){this.rB(b);
e?e(function(){m.go()}):setTimeout(function(){m.go()},16);return}}setTimeout(function(){m.go()},this.ad?10:100)}}};var F=-1,z="undefined"===typeof cr_is_preview?200:0,w=!0,q=!1,u=0,B=0,H="undefined"===typeof cr_is_preview?3E3:0,t=null,y=null,C=0;c.prototype.rB=function(b){if(!r){for(var d=Math.ceil(this.width),f=Math.ceil(this.height),e=this.zg.ln,m=this.zg.QD,h=this.zg.SE,c=0;4>c;++c)if(!e[c].complete||!m[c].complete||!h[c].complete)return;0===C&&(F=Date.now());var c=Date.now(),g=!1,l=b,k,D;w||q?
(b.clearRect(0,0,d,f),t&&t.width===d&&t.height===f||(t=document.createElement("canvas"),t.width=d,t.height=f,y=t.getContext("2d")),l=y,g=!0,w&&1===C&&(F=Date.now())):b.globalAlpha=1;l.fillStyle="#333333";l.fillRect(0,0,d,f);256<this.Fj?(k=La(.22*f,105,.6*d),D=.25*k,l.drawImage(p(m,k),.5*d-k/2,.2*f-D/2,k,D),D=k=Math.min(.395*f,.95*d),l.drawImage(p(e,k),.5*d-k/2,.485*f-D/2,k,D),k=La(.22*f,105,.6*d),D=.25*k,l.drawImage(p(h,k),.5*d-k/2,.868*f-D/2,k,D),l.fillStyle="#3C3C3C",k=d,D=Math.max(.005*f,2),l.fillRect(0,
.8*f-D/2,k,D),l.fillStyle=a?"red":"#E0FF65",k=d*this.qe,l.fillRect(.5*d-k/2,.8*f-D/2,k,D)):(D=k=.55*f,l.drawImage(p(e,k),.5*d-k/2,.45*f-D/2,k,D),l.fillStyle="#3C3C3C",k=d,D=Math.max(.005*f,2),l.fillRect(0,.85*f-D/2,k,D),l.fillStyle=a?"red":"#E0FF65",k=d*this.qe,l.fillRect(.5*d-k/2,.85*f-D/2,k,D));g&&(w?b.globalAlpha=0===C?0:Math.min((c-F)/300,1):q&&(b.globalAlpha=Math.max(1-(c-B)/300,0)),b.drawImage(t,0,0,d,f));w&&300<=c-F&&2<=C&&(w=!1,u=c);!w&&c-u>=H&&!q&&1<=this.qe&&(q=!0,B=c);if(q&&c-B>=300+z||
"undefined"!==typeof cr_is_preview&&1<=this.qe&&500>Date.now()-F)r=!0,q=w=!1,this.zg=y=t=null;++C}};c.prototype.NC=function(){this.oc&&(this.canvas.parentNode.removeChild(this.oc),this.oc=this.Oq=null);this.eo=Date.now();this.sh=ab();var a,b,d;if(this.Hr)for(a=0,b=this.L.length;a<b;a++)d=this.L[a],d.S||d.dq||!d.V.xg||d.G();else this.fk=!1;a=0;for(b=this.pe.length;a<b;a++)this.pe[a].OA();2<=this.xc&&(a=this.Vb/this.Ub,b=this.width/this.height,this.yj=2!==this.xc&&b>a||2===this.xc&&b<a?this.height/
this.Ub:this.width/this.Vb);this.yt?this.oq[this.yt].pr():this.pe[0].pr();this.Hr||(this.Ji=1,this.trigger(I.prototype.j.ks,null),window.C2_RegisterSW&&window.C2_RegisterSW());navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();a=0;for(b=this.L.length;a<b;a++)d=this.L[a],d.av&&d.av();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.Na(!1);this.ac&&AppMobi.webview.execute("onGameReady();")};c.prototype.Na=function(a,
b,d){if(this.ua){var f=ab();if(d||!this.bk||a){a||(e?this.Xq=e(this.cw):this.tr=setTimeout(this.cw,this.ne?1:16));b=b||f;var m=this.xc;((d=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.od)||this.Ne)&&0<this.wf&&(m=this.wf);if(0<m){var m=window.innerWidth,c=window.innerHeight;this.Gi===m&&this.Fi===c||this.setSize(m,c)}this.Da||(d?(this.Em||(this.Bp=jQuery(this.canvas).css("margin")||"0",this.Em=!0),this.Yj||this.wg||jQuery(this.canvas).css({"margin-left":""+
Math.floor((screen.width-this.width/this.devicePixelRatio)/2)+"px","margin-top":""+Math.floor((screen.height-this.height/this.devicePixelRatio)/2)+"px"})):this.Em?(this.Yj||this.wg||jQuery(this.canvas).css("margin",this.Bp),this.Bp="",this.Em=!1,0===this.xc&&this.setSize(Math.round(this.$u/this.devicePixelRatio),Math.round(this.Zu/this.devicePixelRatio),!0)):(this.$u=this.width,this.Zu=this.height));this.fk&&(d=this.Os(),this.Ji=this.qe,d&&(this.fk=!1,this.qe=1,this.trigger(I.prototype.j.ks,null),
window.C2_RegisterSW&&window.C2_RegisterSW()));this.oD(b);!this.N&&!this.ad||this.iq||this.fl||a||(this.N=!1,this.F?this.Zb():this.wc(),this.dl&&(this.canvas&&this.canvas.toDataURL&&(this.Uv=this.canvas.toDataURL(this.dl[0],this.dl[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.Uv),this.trigger(I.prototype.j.iy,null)),this.dl=null));this.zF||(this.Qc++,this.Yg++,this.Hm++);this.rk+=ab()-f}}};c.prototype.oD=function(a){var b,d,f,e,m,c,h,q;1E3<=a-this.sh&&(this.sh+=1E3,1E3<=a-this.sh&&(this.sh=
a),this.Ap=this.Hm,this.Hm=0,this.lp=this.rk,this.rk=0);b=0;0!==this.an&&(b=a-this.an,0>b&&(b=0),this.Ug=b/=1E3,.5<this.Ug?this.Ug=0:this.Ug>1/this.Pu&&(this.Ug=1/this.Pu));this.an=a;this.rg=this.Ug*this.df;this.tb.add(this.rg);this.ag.add(b);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.Ne)&&!this.od;2<=this.xc||a&&0<this.wf?(b=this.Vb/this.Ub,d=this.width/this.height,f=this.xc,a&&0<this.wf&&(f=this.wf),this.yj=2!==f&&d>b||2===f&&
d<b?this.height/this.Ub:this.width/this.Vb,this.ua&&(this.ua.ir(this.ua.scrollX),this.ua.jr(this.ua.scrollY))):this.yj=this.kh?this.devicePixelRatio:1;this.uc();this.qd++;this.cf.iE();this.qd--;this.uc();this.qd++;d=this.Wu.Wd();a=0;for(b=d.length;a<b;a++)d[a].KF();a=0;for(b=this.L.length;a<b;a++)if(c=this.L[a],!c.S&&(c.lb.length||c.kb.length))for(d=0,f=c.n.length;d<f;d++)for(h=c.n[d],e=0,m=h.X.length;e<m;e++)h.X[e].Na();a=0;for(b=this.L.length;a<b;a++)if(c=this.L[a],!c.S&&(c.lb.length||c.kb.length))for(d=
0,f=c.n.length;d<f;d++)for(h=c.n[d],e=0,m=h.X.length;e<m;e++)q=h.X[e],q.PD&&q.PD();d=this.Fq.Wd();a=0;for(b=d.length;a<b;a++)d[a].Na();this.qd--;this.OC();for(a=0;this.Bj&&10>a++;)this.ht(this.Bj);a=0;for(b=this.uf.length;a<b;a++)this.uf[a].Up=!1;this.ua.Wg&&this.ua.Wg.Hb();E(this.Tk);this.nq=!1;this.qd++;a=0;for(b=this.L.length;a<b;a++)if(c=this.L[a],!c.S&&(c.lb.length||c.kb.length))for(d=0,f=c.n.length;d<f;d++)for(h=c.n[d],e=0,m=h.X.length;e<m;e++)q=h.X[e],q.fj&&q.fj();d=this.Gq.Wd();a=0;for(b=
d.length;a<b;a++)d[a].fj();this.qd--};c.prototype.Eh=function(){var a,b,d,f,e,m,c,h,q;a=0;for(b=this.L.length;a<b;a++)if(c=this.L[a],!c.S)for(d=0,f=c.n.length;d<f;d++)if(h=c.n[d],h.Eh&&h.Eh(),h.X)for(e=0,m=h.X.length;e<m;e++)q=h.X[e],q.Eh&&q.Eh()};c.prototype.ht=function(a){var b=this.ua;this.ua.BE();var d,f,e;if(this.F)for(d=0,f=this.L.length;d<f;d++)e=this.L[d],e.S||!e.uo||e.global&&0!==e.n.length||-1!==a.Wj.indexOf(e)||e.uo();b==a&&E(this.cf.Sc);E(this.Tk);this.Av(!0);a.pr();this.Av(!1);this.nq=
this.N=!0;this.uc()};c.prototype.Av=function(a){var b,d,f,e,m,c,h,q,r;b=0;for(d=this.lb.length;b<d;b++)f=this.lb[b],a?f.Ak&&f.Ak():f.Ck&&f.Ck();b=0;for(d=this.L.length;b<d;b++)if(f=this.L[b],f.global||f.V.ao)for(e=0,m=f.n.length;e<m;e++)if(c=f.n[e],a?c.Ak&&c.Ak():c.Ck&&c.Ck(),c.X)for(h=0,q=c.X.length;h<q;h++)r=c.X[h],a?r.Ak&&r.Ak():r.Ck&&r.Ck()};c.prototype.Xf=function(a){this.Fq.add(a)};c.prototype.DE=function(a){this.Gq.add(a)};c.prototype.Ke=function(a){return a&&-1!==a.yk?this.Ug*a.yk:this.rg};
c.prototype.wc=function(){this.ua.wc(this.Ja);this.ac&&this.Ja.present()};c.prototype.Zb=function(){this.cb&&(this.Vg=1,this.ua.qg(this.F));this.ua.Zb(this.F);this.F.TD()};c.prototype.Vl=function(a){a&&this.wm.push(a)};c.prototype.yv=function(a){Ja(this.wm,a)};c.prototype.ni=function(a){a=a.toString();return this.Jf.hasOwnProperty(a)?this.Jf[a]:null};var N=[];c.prototype.hf=function(a){var b,d;b=a.type.name;var f=null;if(this.Tg.hasOwnProperty(b)){if(f=this.Tg[b],f.contains(a))return}else f=N.length?
N.pop():new ca,this.Tg[b]=f;f.add(a);this.vg=!0;if(a.lc)for(b=0,d=a.siblings.length;b<d;b++)this.hf(a.siblings[b]);this.aq&&f.ij.push(a);this.$p||(this.qd++,this.trigger(Object.getPrototypeOf(a.type.V).j.Zr,a),this.qd--)};c.prototype.uc=function(){if(this.vg){var a,b,d,f,e,m;this.aq=!0;d=0;for(e=this.ie.length;d<e;++d)for(a=this.ie[d],b=a.type,b.n.push(a),f=0,m=b.kb.length;f<m;++f)b.kb[f].n.push(a),b.kb[f].bj=!0;E(this.ie);this.Nx();Za(this.Tg);this.vg=this.aq=!1}};c.prototype.Nx=function(){for(var a in this.Tg)this.Tg.hasOwnProperty(a)&&
this.Ow(this.Tg[a])};c.prototype.Ow=function(a){var b=a.Wd(),d=b[0].type,f,e,m,c,h,q;bb(d.n,a);d.bj=!0;0===d.n.length&&(d.vj=!1);f=0;for(e=d.kb.length;f<e;++f)q=d.kb[f],bb(q.n,a),q.bj=!0;f=0;for(e=this.cf.Sc.length;f<e;++f)if(h=this.cf.Sc[f],h.Gc.hasOwnProperty(d.index)&&bb(h.Gc[d.index].Af,a),!d.S)for(m=0,c=d.kb.length;m<c;++m)q=d.kb[m],h.Gc.hasOwnProperty(q.index)&&bb(h.Gc[q.index].Af,a);if(h=b[0].A){if(h.Ad)for(m=h.n,f=0,e=m.length;f<e;++f)c=m[f],a.contains(c)&&(c.Aa(),h.rc.update(c,c.Mc,null),
c.Mc.set(0,0,-1,-1));bb(h.n,a);h.Yk(0)}for(f=0;f<b.length;++f)this.Nw(b[f],d);a.clear();N.push(a);this.N=!0};c.prototype.Nw=function(a,b){var d,f,e;d=0;for(f=this.wm.length;d<f;++d)this.wm[d](a);a.Cd&&b.Cj.update(a,a.Cd,null);(d=a.A)&&d.Wi(a,!0);if(a.X)for(d=0,f=a.X.length;d<f;++d)e=a.X[d],e.Md&&e.Md(),e.behavior.Ch.remove(a);this.Wu.remove(a);this.Fq.remove(a);this.Gq.remove(a);a.Md&&a.Md();this.Jf.hasOwnProperty(a.uid.toString())&&delete this.Jf[a.uid.toString()];this.rn--;100>b.qm.length&&b.qm.push(a)};
c.prototype.km=function(a,b,d,f){if(a.S){var e=ta(Math.random()*a.Bh.length);return this.km(a.Bh[e],b,d,f)}return a.Fd?this.mg(a.Fd,b,!1,d,f,!1):null};var D=[];c.prototype.mg=function(a,b,d,f,e,m){var c,h,q,r;if(!a)return null;var g=this.L[a[1]],l=g.V.xg;if(this.fk&&l&&!g.dq||l&&!this.F&&11===a[0][11])return null;var u=b;l||(b=null);var k;g.qm.length?(k=g.qm.pop(),k.Yb=!0,g.V.I.call(k,g)):(k=new g.V.I(g),k.Yb=!1);!d||m||this.Jf.hasOwnProperty(a[2].toString())?k.uid=this.zk++:k.uid=a[2];this.Jf[k.uid.toString()]=
k;k.wv=this.Su++;k.gh=g.n.length;c=0;for(h=this.ie.length;c<h;++c)this.ie[c].type===g&&k.gh++;k.Rj=Kb;k.toString=Lb;q=a[3];if(k.Yb)Za(k.U);else{k.U={};if("undefined"!==typeof cr_is_preview)for(k.$t=[],k.$t.length=q.length,c=0,h=q.length;c<h;c++)k.$t[c]=q[c][1];k.Rb=[];k.Rb.length=q.length}c=0;for(h=q.length;c<h;c++)k.Rb[c]=q[c][0];if(l){var t=a[0];k.x=ha(f)?t[0]:f;k.y=ha(e)?t[1]:e;k.z=t[2];k.width=t[3];k.height=t[4];k.depth=t[5];k.u=t[6];k.opacity=t[7];k.Ac=t[8];k.Bc=t[9];k.xb=t[10];c=t[11];!this.F&&
g.ka.length&&(k.xb=c);k.Wc=jb(k.xb);this.K&&kb(k,k.xb,this.K);if(k.Yb){c=0;for(h=t[12].length;c<h;c++)for(q=0,r=t[12][c].length;q<r;q++)k.nb[c][q]=t[12][c][q];k.ab.set(0,0,0,0);k.Cd.set(0,0,-1,-1);k.Mc.set(0,0,-1,-1);k.mb.Zk(k.ab);E(k.cp)}else{k.nb=t[12].slice(0);c=0;for(h=k.nb.length;c<h;c++)k.nb[c]=t[12][c].slice(0);k.Ba=[];k.fg=[];k.fg.length=g.ka.length;k.ab=new wa(0,0,0,0);k.Cd=new wa(0,0,-1,-1);k.Mc=new wa(0,0,-1,-1);k.mb=new xa;k.cp=[];k.T=Ob;k.sF=Pb;k.hc=Qb;k.Aa=Rb;k.JE=Sb;k.uw=Tb;k.Id=Ub}k.nl=
!1;k.GE=0;k.FE=0;k.EE=null;14===t.length&&(k.nl=!0,k.GE=t[13][0],k.FE=t[13][1],k.EE=t[13][2]);c=0;for(h=g.ka.length;c<h;c++)k.fg[c]=!0;k.Tf=!0;k.ze=Vb;k.ze();k.ww=!!k.Ba.length;k.bp=!0;k.gp=!0;g.Zl=!0;k.visible=!0;k.yk=-1;k.A=b;k.Ae=b.n.length;k.Vg=0;"undefined"===typeof k.Ia&&(k.Ia=null);this.N=k.Dd=!0}var F;E(D);c=0;for(h=g.kb.length;c<h;c++)D.push.apply(D,g.kb[c].lb);D.push.apply(D,g.lb);if(k.Yb)for(c=0,h=D.length;c<h;c++){var w=D[c];F=k.X[c];F.Yb=!0;w.behavior.I.call(F,w,k);t=a[4][c];q=0;for(r=
t.length;q<r;q++)F.B[q]=t[q];F.G();w.behavior.Ch.add(k)}else for(k.X=[],c=0,h=D.length;c<h;c++)w=D[c],F=new w.behavior.I(w,k),F.Yb=!1,F.B=a[4][c].slice(0),F.G(),k.X.push(F),w.behavior.Ch.add(k);t=a[5];if(k.Yb)for(c=0,h=t.length;c<h;c++)k.B[c]=t[c];else k.B=t.slice(0);this.ie.push(k);this.vg=!0;b&&(b.xj(k,!0),1!==b.pc||1!==b.qc)&&(g.vj=!0);this.rn++;if(g.lc){if(k.lc=!0,k.Yb?E(k.siblings):k.siblings=[],!d&&!m){c=0;for(h=g.Xc.length;c<h;c++)if(g.Xc[c]!==g){if(!g.Xc[c].Fd)return null;k.siblings.push(this.mg(g.Xc[c].Fd,
u,!1,l?k.x:f,l?k.y:e,!0))}c=0;for(h=k.siblings.length;c<h;c++)for(k.siblings[c].siblings.push(k),q=0;q<h;q++)c!==q&&k.siblings[c].siblings.push(k.siblings[q])}}else k.lc=!1,k.siblings=null;k.G();c=0;for(h=k.X.length;c<h;c++)k.X[c].OD&&k.X[c].OD();return k};c.prototype.mi=function(a){var b,d;b=0;for(d=this.ua.na.length;b<d;b++){var f=this.ua.na[b];if(rb(f.name,a))return f}return null};c.prototype.Le=function(a){a=ta(a);0>a&&(a=0);a>=this.ua.na.length&&(a=this.ua.na.length-1);return this.ua.na[a]};
c.prototype.Oj=function(a){return A(a)?this.Le(a):this.mi(a.toString())};c.prototype.jp=function(a){var b,d;b=0;for(d=a.length;b<d;b++)a[b].R().W=!0};c.prototype.Rk=function(a){var b,d;b=0;for(d=a.length;b<d;b++)a[b].Rk()};c.prototype.We=function(a){var b,d;b=0;for(d=a.length;b<d;b++)a[b].We()};c.prototype.wd=function(a){var b,d;b=0;for(d=a.length;b<d;b++)a[b].wd()};c.prototype.ow=function(a){if(a.Zl){var b,d,f=a.n;b=0;for(d=f.length;b<d;++b)f[b].uw();f=this.ie;b=0;for(d=f.length;b<d;++b)f[b].type===
a&&f[b].uw();a.Zl=!1}};c.prototype.Ep=function(a,b,d,f){var e,c,m=a?1!==a.pc||1!==a.qc:!1;if(b.S)for(a=0,e=b.Bh.length;a<e;++a)c=b.Bh[a],m||c.vj?Ga(f,c.n):(this.ow(c),c.Cj.Mn(d,f));else m||b.vj?Ga(f,b.n):(this.ow(b),b.Cj.Mn(d,f))};c.prototype.Qp=function(a,b,d,f){var e,c;e=0;for(c=b.length;e<c;++e)this.Ep(a,b[e],d,f)};c.prototype.xC=function(a,b,d){var f=this.Vv;f&&this.Qp(a,f.Cq,b,d)};c.prototype.cj=function(a,b,d,f){var e=a.R(),c,m,h,q,r=this.eb().hb.ud,g,k,l;if(e.W)for(f||(e.W=!1,E(e.n)),c=0,q=
a.n.length;c<q;c++)if(h=a.n[c],h.Aa(),g=h.A.bb(b,d,!0),k=h.A.bb(b,d,!1),h.hc(g,k)){if(f)return!1;e.n.push(h)}else r&&e.ea.push(h);else{m=0;l=r?e.ea:e.n;c=0;for(q=l.length;c<q;c++)if(h=l[c],h.Aa(),g=h.A.bb(b,d,!0),k=h.A.bb(b,d,!1),h.hc(g,k)){if(f)return!1;r?e.n.push(h):(e.n[m]=e.n[c],m++)}f||(l.length=m)}a.Uc();return f?!0:e.Tp()};c.prototype.Wf=function(a,b){if(!(a&&b&&a!==b&&a.Dd&&b.Dd))return!1;a.Aa();b.Aa();var d=a.A,f=b.A,e,c,m,h,q,r,g,k;if(d===f||d.pc===f.pc&&f.qc===f.qc&&d.scale===f.scale&&
d.u===f.u&&d.Dc===f.Dc){if(!a.ab.WC(b.ab)||!a.mb.au(b.mb)||a.nl&&b.nl)return!1;if(a.nl)return this.aw(a,b);if(b.nl)return this.aw(b,a);g=a.Ia&&!a.Ia.xi();e=b.Ia&&!b.Ia.xi();if(!g&&!e)return!0;g?(a.Ia.ai(a.width,a.height,a.u),g=a.Ia):(this.xe.$i(a.mb,a.x,a.y,a.width,a.height),g=this.xe);e?(b.Ia.ai(b.width,b.height,b.u),k=b.Ia):(this.xe.$i(b.mb,b.x,b.y,b.width,b.height),k=this.xe);return g.Xj(k,b.x-a.x,b.y-a.y)}g=a.Ia&&!a.Ia.xi();e=b.Ia&&!b.Ia.xi();g?(a.Ia.ai(a.width,a.height,a.u),this.xe.Mv(a.Ia)):
this.xe.$i(a.mb,a.x,a.y,a.width,a.height);g=this.xe;e?(b.Ia.ai(b.width,b.height,b.u),this.rr.Mv(b.Ia)):this.rr.$i(b.mb,b.x,b.y,b.width,b.height);k=this.rr;e=0;for(c=g.ue;e<c;e++)m=2*e,h=m+1,q=g.Xb[m],r=g.Xb[h],g.Xb[m]=d.Ea(q+a.x,r+a.y,!0),g.Xb[h]=d.Ea(q+a.x,r+a.y,!1);g.Aa();e=0;for(c=k.ue;e<c;e++)m=2*e,h=m+1,q=k.Xb[m],r=k.Xb[h],k.Xb[m]=f.Ea(q+b.x,r+b.y,!0),k.Xb[h]=f.Ea(q+b.x,r+b.y,!1);k.Aa();return g.Xj(k,0,0)};var O=new xa;new wa(0,0,0,0);var x=[];c.prototype.aw=function(a,b){var d,f,e,c,m=b.ab,
h=a.x,q=a.y;a.xF(m,x);var r=b.Ia&&!b.Ia.xi();d=0;for(f=x.length;d<f;++d)if(e=x[d],c=e.OF,m.XC(c,h,q)&&(O.Zk(c),O.offset(h,q),O.au(b.mb)))if(r)if(b.Ia.ai(b.width,b.height,b.u),e.Tq){if(e.Tq.Xj(b.Ia,b.x-(h+c.left),b.y-(q+c.top)))return E(x),!0}else{if(this.xe.$i(O,0,0,c.right-c.left,c.bottom-c.top),this.xe.Xj(b.Ia,b.x,b.y))return E(x),!0}else if(e.Tq){if(this.xe.$i(b.mb,0,0,b.width,b.height),e.Tq.Xj(this.xe,-(h+c.left),-(q+c.top)))return E(x),!0}else return E(x),!0;E(x);return!1};c.prototype.jw=function(a,
b){if(!b)return!1;var d,f,e,c,m;d=0;for(f=a.lb.length;d<f;d++)if(a.lb[d].behavior instanceof b)return!0;if(!a.S)for(d=0,f=a.kb.length;d<f;d++)for(m=a.kb[d],e=0,c=m.lb.length;e<c;e++)if(m.lb[e].behavior instanceof b)return!0;return!1};c.prototype.Br=function(a){return this.jw(a,kc.fF)};c.prototype.Cr=function(a){return this.jw(a,kc.gF)};var X=[];c.prototype.Lh=function(a){var b,d,f;a.Aa();this.xC(a.A,a.ab,X);b=0;for(d=X.length;b<d;++b)if(f=X[b],f.U.solidEnabled&&this.Wf(a,f))return E(X),f;E(X);return null};
c.prototype.YD=function(a,b,d,f){f=f||50;var e=a.x,c=a.y,m,h=null,q=null;for(m=0;m<f;m++)if(a.x=e+b*m,a.y=c+d*m,a.T(),!this.Wf(a,h)&&((h=this.Lh(a))&&(q=h),!h&&!h))return q&&this.WD(a,b,d,q),!0;a.x=e;a.y=c;a.T();return!1};c.prototype.WD=function(a,b,d,f){var e=2,c,m=!1;c=!1;for(var h=a.x,q=a.y;16>=e;)c=1/e,e*=2,a.x+=b*c*(m?1:-1),a.y+=d*c*(m?1:-1),a.T(),this.Wf(a,f)?c=m=!0:(c=m=!1,h=a.x,q=a.y);c&&(a.x=h,a.y=q,a.T())};c.prototype.ZD=function(a){var b=0,d=a.x,f=a.y,e=0,c=0,m=0,h=this.Lh(a);if(h){for(;100>=
b;){switch(e){case 0:c=0;m=-1;b++;break;case 1:c=1;m=-1;break;case 2:c=1;m=0;break;case 3:m=c=1;break;case 4:c=0;m=1;break;case 5:c=-1;m=1;break;case 6:c=-1;m=0;break;case 7:m=c=-1}e=(e+1)%8;a.x=ta(d+c*b);a.y=ta(f+m*b);a.T();if(!this.Wf(a,h)&&(h=this.Lh(a),!h))return}a.x=d;a.y=f;a.T()}};c.prototype.aE=function(a,b){a.Dd&&b.Dd&&this.Tk.push([a,b])};c.prototype.KA=function(a,b){var d,f,e;d=0;for(f=this.Tk.length;d<f;d++)if(e=this.Tk[d],e[0]==a&&e[1]==b||e[0]==b&&e[1]==a)return!0;return!1};c.prototype.FA=
function(a,b,d){var f=a.x,e=a.y,c=na(10,Wa(b,d,f,e)),m=Ra(b,d,f,e),h=this.Lh(a);if(!h)return Oa(m+ra);var q=h,r,g,k,l,u=G(5);for(r=1;36>r;r++)if(g=m-r*u,a.x=b+Math.cos(g)*c,a.y=d+Math.sin(g)*c,a.T(),!this.Wf(a,q)&&(q=this.Lh(a),!q)){k=g;break}36===r&&(k=Oa(m+ra));q=h;for(r=1;36>r;r++)if(g=m+r*u,a.x=b+Math.cos(g)*c,a.y=d+Math.sin(g)*c,a.T(),!this.Wf(a,q)&&(q=this.Lh(a),!q)){l=g;break}36===r&&(l=Oa(m+ra));a.x=f;a.y=e;a.T();if(l===k)return l;a=Sa(l,k)/2;a=Ua(l,k)?Oa(k+a+ra):Oa(l+a);k=Math.cos(m);m=Math.sin(m);
l=Math.cos(a);a=Math.sin(a);b=k*l+m*a;return Ra(0,0,k-2*b*l,m-2*b*a)};var la=-1;c.prototype.trigger=function(a,b,d){if(!this.ua)return!1;var f=this.ua.Wg;if(!f)return!1;var e=!1,c,m,h;la++;var q=f.pp;m=0;for(h=q.length;m<h;++m)c=this.gw(a,b,q[m],d),e=e||c;c=this.gw(a,b,f,d);la--;return e||c};c.prototype.gw=function(a,b,d,f){var e=!1,c,m,h,q;if(b)for(h=this.yr(a,b,b.type.name,d,f),e=e||h,q=b.type.kb,c=0,m=q.length;c<m;++c)h=this.yr(a,b,q[c].name,d,f),e=e||h;else h=this.yr(a,b,"system",d,f),e=e||h;
return e};c.prototype.yr=function(a,b,d,f,e){var c,m=!1,h=!1,h="undefined"!==typeof e,q=(h?f.pt:f.hw)[d];if(!q)return m;var r=null;f=0;for(c=q.length;f<c;++f)if(q[f].method==a){r=q[f].Hj;break}if(!r)return m;var g;h?g=r[e]:g=r;if(!g)return null;f=0;for(c=g.length;f<c;f++)a=g[f][0],e=g[f][1],h=this.aC(b,d,a,e),m=m||h;return m};c.prototype.aC=function(a,b,d,f){var e,c,m=!1;this.Ar++;var h=this.eb().hb;h&&this.Rk(h.Kg);var q=1<this.Ar;this.Rk(d.Kg);q&&this.XD();var r=this.Kn(d);r.hb=d;a&&(e=this.types[b].R(),
e.W=!1,E(e.n),e.n[0]=a,this.types[b].Uc());a=!0;if(d.parent){b=r.$v;for(e=d.parent;e;)b.push(e),e=e.parent;b.reverse();e=0;for(c=b.length;e<c;e++)if(!b[e].kE()){a=!1;break}}a&&(this.Yg++,d.ud?d.jE(f):d.Hb(),m=m||r.rh);this.En();q&&this.ND();this.wd(d.Kg);h&&this.wd(h.Kg);this.vg&&0===this.qd&&0===la&&!this.fq&&this.uc();this.Ar--;return m};c.prototype.xf=function(){var a=this.eb();return a.hb.Nb[a.Cb]};c.prototype.ZC=function(){return 0===this.eb().Cb};c.prototype.lC=function(){var a=this.eb();return a.hb.Bd[a.Jc]};
c.prototype.XD=function(){this.kn++;this.kn>=this.vq.length&&this.vq.push([])};c.prototype.ND=function(){this.kn--};c.prototype.Et=function(){return this.vq[this.kn]};c.prototype.Kn=function(a){this.zm++;this.zm>=this.vp.length&&this.vp.push(new Wb);var b=this.eb();b.reset(a);return b};c.prototype.En=function(){this.zm--};c.prototype.eb=function(){return this.vp[this.zm]};c.prototype.Ln=function(a){this.tk++;this.tk>=this.sk.length&&this.sk.push(aa({name:a,index:0,Ya:!1}));var b=this.Ft();b.name=
a;b.index=0;b.Ya=!1;return b};c.prototype.Fn=function(){this.tk--};c.prototype.Ft=function(){return this.sk[this.tk]};c.prototype.It=function(a,b){for(var d,f,e,c,m,h;b;){d=0;for(f=b.Sd.length;d<f;d++)if(h=b.Sd[d],h instanceof Xb&&rb(a,h.name))return h;b=b.parent}d=0;for(f=this.uf.length;d<f;d++)for(m=this.uf[d],e=0,c=m.tg.length;e<c;e++)if(h=m.tg[e],h instanceof Xb&&rb(a,h.name))return h;return null};c.prototype.Mt=function(a){var b,d;b=0;for(d=this.pe.length;b<d;b++)if(this.pe[b].ta===a)return this.pe[b];
return null};c.prototype.Pj=function(a){var b,d;b=0;for(d=this.L.length;b<d;b++)if(this.L[b].ta===a)return this.L[b];return null};c.prototype.mC=function(a){var b,d;b=0;for(d=this.Yh.length;b<d;b++)if(this.Yh[b].ta===a)return this.Yh[b];return null};c.prototype.VA=function(a,b){this.dl=[a,b];this.N=!0};c.prototype.OC=function(){var a=this,b=this.hr,d=this.Ef,f=this.dn,e=!1;this.Sv&&(e=!0,b="__c2_continuouspreview",this.Sv=!1);if(b.length){this.uc();d=this.oE();if(n()&&!this.ad)l(b,d,function(){ea("Saved state to IndexedDB storage ("+
d.length+" bytes)");a.Ef=d;a.trigger(I.prototype.j.Go,null);a.Ef="";e&&h()},function(f){try{localStorage.setItem("__c2save_"+b,d),ea("Saved state to WebStorage ("+d.length+" bytes)"),a.Ef=d,a.trigger(I.prototype.j.Go,null),a.Ef="",e&&h()}catch(c){ea("Failed to save game state: "+f+"; "+c),a.trigger(I.prototype.j.ws,null)}});else try{localStorage.setItem("__c2save_"+b,d),ea("Saved state to WebStorage ("+d.length+" bytes)"),a.Ef=d,this.trigger(I.prototype.j.Go,null),a.Ef="",e&&h()}catch(c){ea("Error saving to WebStorage: "+
c),a.trigger(I.prototype.j.ws,null)}this.dn=this.hr="";this.Tb=null}if(f.length){if(n()&&!this.ad)k(f,function(b){b?(a.Tb=b,ea("Loaded state from IndexedDB storage ("+a.Tb.length+" bytes)")):(a.Tb=localStorage.getItem("__c2save_"+f)||"",ea("Loaded state from WebStorage ("+a.Tb.length+" bytes)"));a.fl=!1;a.Tb||(a.Tb=null,a.trigger(I.prototype.j.Kl,null))},function(){a.Tb=localStorage.getItem("__c2save_"+f)||"";ea("Loaded state from WebStorage ("+a.Tb.length+" bytes)");a.fl=!1;a.Tb||(a.Tb=null,a.trigger(I.prototype.j.Kl,
null))});else{try{this.Tb=localStorage.getItem("__c2save_"+f)||"",ea("Loaded state from WebStorage ("+this.Tb.length+" bytes)")}catch(m){this.Tb=null}this.fl=!1;a.Tb||(a.Tb=null,a.trigger(I.prototype.j.Kl,null))}this.hr=this.dn=""}null!==this.Tb&&(this.uc(),this.nD(this.Tb)?(this.Ef=this.Tb,this.trigger(I.prototype.j.Cy,null),this.Ef=""):a.trigger(I.prototype.j.Kl,null),this.Tb=null)};c.prototype.oE=function(){var a,d,f,e,c,m,h,q={c2save:!0,version:1,rt:{time:this.tb.ba,walltime:this.ag.ba,timescale:this.df,
tickcount:this.Qc,execcount:this.Yg,next_uid:this.zk,running_layout:this.ua.ta,start_time_offset:Date.now()-this.eo},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};a=0;for(d=this.L.length;a<d;a++)if(c=this.L[a],!c.S&&!this.Br(c)){m={instances:[]};Ya(c.U)&&(m.ex=b(c.U));f=0;for(e=c.n.length;f<e;f++)m.instances.push(this.gr(c.n[f]));q.types[c.ta.toString()]=m}a=0;for(d=this.pe.length;a<d;a++)f=this.pe[a],q.layouts[f.ta.toString()]=f.za();e=q.events.groups;a=0;for(d=this.Yh.length;a<
d;a++)f=this.Yh[a],e[f.ta.toString()]=this.pi[f.Sj].dh;d=q.events.cnds;for(h in this.kg)this.kg.hasOwnProperty(h)&&(a=this.kg[h],Ya(a.U)&&(d[h]={ex:b(a.U)}));d=q.events.acts;for(h in this.gg)this.gg.hasOwnProperty(h)&&(a=this.gg[h],Ya(a.U)&&(d[h]={ex:b(a.U)}));d=q.events.vars;for(h in this.jj)this.jj.hasOwnProperty(h)&&(a=this.jj[h],a.Ym||a.parent&&!a.ek||(d[h]=a.data));q.system=this.cf.za();return JSON.stringify(q)};c.prototype.xv=function(){var a,b,d,f,e,c;this.Jf={};a=0;for(b=this.L.length;a<b;a++)if(d=
this.L[a],!d.S)for(f=0,e=d.n.length;f<e;f++)c=d.n[f],this.Jf[c.uid.toString()]=c};c.prototype.nD=function(a){var b;try{b=JSON.parse(a)}catch(d){return!1}if(!b.c2save||1<b.version)return!1;this.$j=!0;a=b.rt;this.tb.reset();this.tb.ba=a.time;this.ag.reset();this.ag.ba=a.walltime||0;this.df=a.timescale;this.Qc=a.tickcount;this.Yg=a.execcount;this.eo=Date.now()-a.start_time_offset;var f=a.running_layout;if(f!==this.ua.ta)if(f=this.Mt(f))this.ht(f);else return;var e,c,m,h,q,r,g;r=b.types;for(c in r)if(r.hasOwnProperty(c)&&
(h=this.Pj(parseInt(c,10)))&&!h.S&&!this.Br(h)){r[c].ex?h.U=r[c].ex:Za(h.U);q=h.n;m=r[c].instances;f=0;for(e=pa(q.length,m.length);f<e;f++)this.gn(q[f],m[f]);f=m.length;for(e=q.length;f<e;f++)this.hf(q[f]);f=q.length;for(e=m.length;f<e;f++){q=null;if(h.V.xg&&(q=this.ua.Nm(m[f].w.l),!q))continue;q=this.mg(h.Fd,q,!1,0,0,!0);this.gn(q,m[f])}h.bj=!0}this.uc();this.xv();e=b.layouts;for(c in e)e.hasOwnProperty(c)&&(f=this.Mt(parseInt(c,10)))&&f.Ka(e[c]);e=b.events.groups;for(c in e)e.hasOwnProperty(c)&&
(f=this.mC(parseInt(c,10)))&&this.pi[f.Sj]&&this.pi[f.Sj].Wn(e[c]);f=b.events.cnds;for(c in this.kg)this.kg.hasOwnProperty(c)&&(f.hasOwnProperty(c)?this.kg[c].U=f[c].ex:this.kg[c].U={});f=b.events.acts;for(c in this.gg)this.gg.hasOwnProperty(c)&&(f.hasOwnProperty(c)?this.gg[c].U=f[c].ex:this.gg[c].U={});f=b.events.vars;for(c in f)f.hasOwnProperty(c)&&this.jj.hasOwnProperty(c)&&(this.jj[c].data=f[c]);this.zk=a.next_uid;this.$j=!1;f=0;for(e=this.Dm.length;f<e;++f)q=this.Dm[f],this.trigger(Object.getPrototypeOf(q.type.V).j.Sh,
q);E(this.Dm);this.cf.Ka(b.system);f=0;for(e=this.L.length;f<e;f++)if(h=this.L[f],!h.S&&!this.Br(h))for(b=0,c=h.n.length;b<c;b++){q=h.n[b];if(h.lc)for(r=q.Rj(),E(q.siblings),a=0,m=h.Xc.length;a<m;a++)g=h.Xc[a],h!==g&&q.siblings.push(g.n[r]);q.$d&&q.$d();if(q.X)for(a=0,m=q.X.length;a<m;a++)r=q.X[a],r.$d&&r.$d()}return this.N=!0};c.prototype.gr=function(a,d){var f,e,c,m,h;m=a.type;c=m.V;var q={};d?q.c2=!0:q.uid=a.uid;Ya(a.U)&&(q.ex=b(a.U));if(a.Rb&&a.Rb.length)for(q.ivs={},f=0,e=a.Rb.length;f<e;f++)q.ivs[a.type.Zp[f].toString()]=
a.Rb[f];if(c.xg){c={x:a.x,y:a.y,w:a.width,h:a.height,l:a.A.ta,zi:a.Id()};0!==a.u&&(c.a=a.u);1!==a.opacity&&(c.o=a.opacity);.5!==a.Ac&&(c.hX=a.Ac);.5!==a.Bc&&(c.hY=a.Bc);0!==a.xb&&(c.bm=a.xb);a.visible||(c.v=a.visible);a.Dd||(c.ce=a.Dd);-1!==a.yk&&(c.mts=a.yk);if(m.ka.length)for(c.fx=[],f=0,e=m.ka.length;f<e;f++)h=m.ka[f],c.fx.push({name:h.name,active:a.fg[h.index],params:a.nb[h.index]});q.w=c}if(a.X&&a.X.length)for(q.behs={},f=0,e=a.X.length;f<e;f++)m=a.X[f],m.za&&(q.behs[m.type.ta.toString()]=m.za());
a.za&&(q.data=a.za());return q};c.prototype.oC=function(a,b){var d,f;d=0;for(f=a.Zp.length;d<f;d++)if(a.Zp[d]===b)return d;return-1};c.prototype.jC=function(a,b){var d,f;d=0;for(f=a.X.length;d<f;d++)if(a.X[d].type.ta===b)return d;return-1};c.prototype.gn=function(a,b,d){var f,e,c,m,h;h=a.type;m=h.V;if(d){if(!b.c2)return}else a.uid=b.uid;b.ex?a.U=b.ex:Za(a.U);if(e=b.ivs)for(f in e)e.hasOwnProperty(f)&&(c=this.oC(h,parseInt(f,10)),0>c||c>=a.Rb.length||(a.Rb[c]=e[f]));if(m.xg){c=b.w;a.A.ta!==c.l&&(e=
a.A,a.A=this.ua.Nm(c.l),a.A?(e.Wi(a,!0),a.A.xj(a,!0),a.T(),a.A.Yk(0)):(a.A=e,d||this.hf(a)));a.x=c.x;a.y=c.y;a.width=c.w;a.height=c.h;a.Ae=c.zi;a.u=c.hasOwnProperty("a")?c.a:0;a.opacity=c.hasOwnProperty("o")?c.o:1;a.Ac=c.hasOwnProperty("hX")?c.hX:.5;a.Bc=c.hasOwnProperty("hY")?c.hY:.5;a.visible=c.hasOwnProperty("v")?c.v:!0;a.Dd=c.hasOwnProperty("ce")?c.ce:!0;a.yk=c.hasOwnProperty("mts")?c.mts:-1;a.xb=c.hasOwnProperty("bm")?c.bm:0;a.Wc=jb(a.xb);this.K&&kb(a,a.xb,this.K);a.T();if(c.hasOwnProperty("fx"))for(d=
0,e=c.fx.length;d<e;d++)m=h.Gp(c.fx[d].name),0>m||(a.fg[m]=c.fx[d].active,a.nb[m]=c.fx[d].params);a.ze()}if(h=b.behs)for(f in h)h.hasOwnProperty(f)&&(d=this.jC(a,parseInt(f,10)),0>d||a.X[d].Ka(h[f]));b.data&&a.Ka(b.data)};c.prototype.qt=function(a,b,d){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+"www/"+a,function(a){a.file(b,d)},d)};c.prototype.ut=function(a,b){this.qt("data.js",function(d){var f=new FileReader;f.onload=function(b){a(b.target.result)};f.onerror=b;f.readAsText(d)},
b)};var V=[],Q=0;c.prototype.zq=function(){if(V.length&&!(8<=Q)){Q++;var a=V.shift();this.XA(a.filename,a.CE,a.xB)}};c.prototype.tt=function(a,b,d){var f=this;V.push({filename:a,CE:function(a){Q--;f.zq();b(a)},xB:function(a){Q--;f.zq();d(a)}});this.zq()};c.prototype.XA=function(a,b,d){this.qt(a,function(a){var d=new FileReader;d.onload=function(a){b(a.target.result)};d.readAsArrayBuffer(a)},d)};c.prototype.cC=function(a,b,d){this.tt(a,function(a){a=URL.createObjectURL(new Blob([a]));b(a)},d)};c.prototype.YC=
function(a){return/^(?:[a-z]+:)?\/\//.test(a)||"data:"===a.substr(0,5)||"blob:"===a.substr(0,5)};c.prototype.Iv=function(a,b){this.ck&&!this.YC(b)?this.cC(b,function(b){a.src=b},function(a){alert("Failed to load image: "+a)}):a.src=b};c.prototype.Un=function(a,b){"undefined"!==typeof a.imageSmoothingEnabled?a.imageSmoothingEnabled=b:(a.webkitImageSmoothingEnabled=b,a.mozImageSmoothingEnabled=b,a.msImageSmoothingEnabled=b)};Yb=function(a){return new c(document.getElementById(a))};Zb=function(a,b){return new c({dc:!0,
width:a,height:b})};window.cr_createRuntime=Yb;window.cr_createDCRuntime=Zb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.nf=!0;document.body.appendChild(a);a=new c(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 c(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();window.cr_getC2Runtime=function(){var c=document.getElementById("c2canvas");return c?c.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(c,p){var n=window.cr_getC2Runtime();n&&n.VA(c,p)};window.cr_sizeCanvas=function(c,p){if(0!==c&&0!==p){var n=window.cr_getC2Runtime();n&&n.setSize(c,p)}};
window.cr_setSuspended=function(c){var p=window.cr_getC2Runtime();p&&p.setSuspended(c)};
(function(){function c(a,b){this.b=a;this.Wg=null;this.scrollX=this.b.Vb/2;this.scrollY=this.b.Ub/2;this.scale=1;this.u=0;this.li=!0;this.name=b[0];this.JD=b[1];this.ID=b[2];this.width=b[1];this.height=b[2];this.kw=b[3];this.Qv=b[4];this.ta=b[5];var d=b[6],e,c;this.na=[];this.Wj=[];e=0;for(c=d.length;e<c;e++){var h=new ac(this,d[e]);h.Uu=e;this.na.push(h)}d=b[7];this.ih=[];e=0;for(c=d.length;e<c;e++){var h=d[e],g=this.b.L[h[1]];g.Fd||(g.Fd=h);this.ih.push(h);-1===this.Wj.indexOf(g)&&this.Wj.push(g)}this.ka=
[];this.Ba=[];this.Tf=!0;this.nb=[];e=0;for(c=b[8].length;e<c;e++)this.ka.push({id:b[8][e][0],name:b[8][e][1],Ib:-1,xd:!1,gc:!0,index:e}),this.nb.push(b[8][e][2].slice(0));this.ze();this.Lc=new wa(0,0,1,1);this.Yq=new wa(0,0,1,1);this.Ig={}}function p(a,b){return a.Ae-b.Ae}function n(a,b){this.Eb=a;this.b=a.b;this.n=[];this.scale=1;this.u=0;this.sf=!1;this.Yf=new wa(0,0,0,0);this.dw=new xa;this.Oa=this.Ga=this.Pa=this.Fa=0;this.Ph=!1;this.bg=-1;this.kp=0;this.name=b[0];this.index=b[1];this.ta=b[2];
this.visible=b[3];this.ee=b[4];this.ye=b[5];this.pc=b[6];this.qc=b[7];this.opacity=b[8];this.Gm=b[9];this.Ad=b[10];this.Dc=b[11];this.xb=b[12];this.uB=b[13];this.Wc="source-over";this.Sa=this.Ua=0;this.rc=null;this.Ff=g();this.ve=!0;this.Hi=new wa(0,0,-1,-1);this.ic=new wa(0,0,-1,-1);this.Ad&&(this.rc=new ib(this.b.Vb,this.b.Ub));this.Xe=!1;var d=b[14],e,c;this.Yv=[];this.nd=[];this.Ej=[];e=0;for(c=d.length;e<c;e++){var h=d[e],k=this.b.L[h[1]];k.Fd||(k.Fd=h,k.RA=this.index);this.nd.push(h);-1===this.Eb.Wj.indexOf(k)&&
this.Eb.Wj.push(k)}Fa(this.Yv,this.nd);this.ka=[];this.Ba=[];this.Tf=!0;this.nb=[];e=0;for(c=b[15].length;e<c;e++)this.ka.push({id:b[15][e][0],name:b[15][e][1],Ib:-1,xd:!1,gc:!0,index:e}),this.nb.push(b[15][e][2].slice(0));this.ze();this.Lc=new wa(0,0,1,1);this.Yq=new wa(0,0,1,1)}function g(){return b.length?b.pop():[]}function l(a){E(a);b.push(a)}c.prototype.nE=function(a){var b=a.type.ta.toString();this.Ig.hasOwnProperty(b)||(this.Ig[b]=[]);this.Ig[b].push(this.b.gr(a))};c.prototype.Tt=function(){var a=
this.na[0];return!a.ye&&1===a.opacity&&!a.Gm&&a.visible};c.prototype.ze=function(){E(this.Ba);this.Tf=!0;var a,b,d;a=0;for(b=this.ka.length;a<b;a++)d=this.ka[a],d.gc&&(this.Ba.push(d),d.xd||(this.Tf=!1))};c.prototype.Fp=function(a){var b,d,e;b=0;for(d=this.ka.length;b<d;b++)if(e=this.ka[b],e.name===a)return e;return null};var k=[],h=!0;c.prototype.pr=function(){this.Qv&&(this.Wg=this.b.wp[this.Qv],this.Wg.Dr());this.b.ua=this;this.width=this.JD;this.height=this.ID;this.scrollX=this.b.Vb/2;this.scrollY=
this.b.Ub/2;var a,b,d,e,c,g,l;a=0;for(d=this.b.L.length;a<d;a++)if(b=this.b.L[a],!b.S)for(c=b.n,b=0,e=c.length;b<e;b++)if(g=c[b],g.A){var q=g.A.Uu;q>=this.na.length&&(q=this.na.length-1);g.A=this.na[q];-1===g.A.n.indexOf(g)&&g.A.n.push(g);g.A.Ph=!0}if(!h)for(a=0,d=this.na.length;a<d;++a)this.na[a].n.sort(p);E(k);this.DA();a=0;for(d=this.na.length;a<d;a++)g=this.na[a],g.PA(),g.xo();c=!1;if(!this.li){for(l in this.Ig)if(this.Ig.hasOwnProperty(l)&&(b=this.b.Pj(parseInt(l,10)))&&!b.S&&this.b.Cr(b)){e=
this.Ig[l];a=0;for(d=e.length;a<d;a++){g=null;if(b.V.xg&&(g=this.Nm(e[a].w.l),!g))continue;g=this.b.mg(b.Fd,g,!1,0,0,!0);this.b.gn(g,e[a]);c=!0;k.push(g)}E(e)}a=0;for(d=this.na.length;a<d;a++)this.na[a].n.sort(p),this.na[a].Ph=!0}c&&(this.b.uc(),this.b.xv());for(a=0;a<k.length;a++)if(g=k[a],g.type.lc)for(d=g.Rj(),b=0,e=g.type.Xc.length;b<e;b++)l=g.type.Xc[b],g.type!==l&&(l.n.length>d?g.siblings.push(l.n[d]):l.Fd&&(c=this.b.mg(l.Fd,g.A,!0,g.x,g.y,!0),this.b.uc(),l.vo(),g.siblings.push(c),k.push(c)));
a=0;for(d=this.ih.length;a<d;a++)this.b.mg(this.ih[a],null,!0);this.b.Bj=null;this.b.uc();if(this.b.Ja&&!this.b.Da)for(a=0,d=this.b.L.length;a<d;a++)l=this.b.L[a],!l.S&&l.n.length&&l.Uq&&l.Uq(this.b.Ja);if(this.b.$j)Fa(this.b.Dm,k);else for(a=0,d=k.length;a<d;a++)g=k[a],this.b.trigger(Object.getPrototypeOf(g.type.V).j.Sh,g);E(k);this.b.$j||this.b.trigger(I.prototype.j.js,null);this.li=!1};c.prototype.OA=function(){var a,b,d,e,c;b=a=0;for(d=this.ih.length;a<d;a++)e=this.ih[a],c=this.b.L[e[1]],c.global?
c.lc||this.b.mg(e,null,!0):(this.ih[b]=e,b++);Ea(this.ih,b)};c.prototype.BE=function(){this.b.$j||this.b.trigger(I.prototype.j.By,null);this.b.$p=!0;E(this.b.cf.Sc);var a,b,d,e,c,g;if(!this.li)for(a=0,b=this.na.length;a<b;a++)for(this.na[a].Fr(),c=this.na[a].n,d=0,e=c.length;d<e;d++)g=c[d],g.type.global||this.b.Cr(g.type)&&this.nE(g);a=0;for(b=this.na.length;a<b;a++){c=this.na[a].n;d=0;for(e=c.length;d<e;d++)g=c[d],g.type.global||this.b.hf(g);this.b.uc();E(c);this.na[a].Ph=!0}a=0;for(b=this.b.L.length;a<
b;a++)if(c=this.b.L[a],!(c.global||c.V.xg||c.V.ao||c.S)){d=0;for(e=c.n.length;d<e;d++)this.b.hf(c.n[d]);this.b.uc()}h=!1;this.b.$p=!1};new wa(0,0,0,0);c.prototype.wc=function(a){var b,d=a,e=!1,c=!this.b.ld;c&&(this.b.cn||(this.b.cn=document.createElement("canvas"),b=this.b.cn,b.width=this.b.aa,b.height=this.b.Z,this.b.su=b.getContext("2d"),e=!0),b=this.b.cn,d=this.b.su,b.width!==this.b.aa&&(b.width=this.b.aa,e=!0),b.height!==this.b.Z&&(b.height=this.b.Z,e=!0),e&&this.b.Un(d,this.b.Qa));d.globalAlpha=
1;d.globalCompositeOperation="source-over";this.b.Ys&&!this.Tt()&&d.clearRect(0,0,this.b.aa,this.b.Z);var h,g,e=0;for(h=this.na.length;e<h;e++)g=this.na[e],g.visible&&0<g.opacity&&11!==g.xb&&(g.n.length||!g.ye)?g.wc(d):g.xo();c&&a.drawImage(b,0,0,this.b.width,this.b.height)};c.prototype.qg=function(a){a.Hv(!0);this.b.Fb||(this.b.Fb=a.Yc(this.b.aa,this.b.Z,this.b.Qa));if(this.b.Fb.he!==this.b.aa||this.b.Fb.ge!==this.b.Z)a.deleteTexture(this.b.Fb),this.b.Fb=a.Yc(this.b.aa,this.b.Z,this.b.Qa);a.Pd(this.b.Fb);
this.b.ld||a.Rf(this.b.aa,this.b.Z);var b,d;for(b=this.na.length-1;0<=b;--b)d=this.na[b],d.visible&&1===d.opacity&&d.Tf&&0===d.xb&&(d.n.length||!d.ye)?d.qg(a):d.xo();a.Hv(!1)};c.prototype.Zb=function(a){var b=0<this.Ba.length||this.b.hj||!this.b.ld||this.b.cb;if(b){this.b.Fb||(this.b.Fb=a.Yc(this.b.aa,this.b.Z,this.b.Qa));if(this.b.Fb.he!==this.b.aa||this.b.Fb.ge!==this.b.Z)a.deleteTexture(this.b.Fb),this.b.Fb=a.Yc(this.b.aa,this.b.Z,this.b.Qa);a.Pd(this.b.Fb);this.b.ld||a.Rf(this.b.aa,this.b.Z)}else this.b.Fb&&
(a.Pd(null),a.deleteTexture(this.b.Fb),this.b.Fb=null);this.b.Ys&&!this.Tt()&&a.clear(0,0,0,0);var d,e,c;d=0;for(e=this.na.length;d<e;d++)c=this.na[d],c.visible&&0<c.opacity&&(c.n.length||!c.ye)?c.Zb(a):c.xo();b&&(0===this.Ba.length||1===this.Ba.length&&this.b.ld?(1===this.Ba.length?(b=this.Ba[0].index,a.Oc(this.Ba[0].Ib),a.Zi(null,1/this.b.aa,1/this.b.Z,0,0,1,1,this.scale,this.u,0,0,this.b.aa/2,this.b.Z/2,this.b.tb.ba,this.nb[b]),a.In(this.Ba[0].Ib)&&(this.b.N=!0)):a.Oc(0),this.b.ld||a.Rf(this.b.width,
this.b.height),a.Pd(null),a.Fv(!1),a.Ze(1),a.tc(this.b.Fb),a.Dv(),a.jd(),a.Rc(),b=this.b.width/2,d=this.b.height/2,a.Gh(-b,d,b,d,b,-d,-b,-d),a.tc(null),a.Fv(!0)):this.Zq(a,null,null,null))};c.prototype.Qj=function(){return 0<this.Ba.length||this.b.hj||!this.b.ld||this.b.cb?this.b.Fb:null};c.prototype.Ot=function(){var a=this.na[0].yc(),b,d,e;b=1;for(d=this.na.length;b<d;b++)e=this.na[b],(0!==e.pc||0!==e.qc)&&e.yc()<a&&(a=e.yc());return a};c.prototype.ir=function(a){if(!this.kw){var b=1/this.Ot()*
this.b.aa/2;a>this.width-b&&(a=this.width-b);a<b&&(a=b)}this.scrollX!==a&&(this.scrollX=a,this.b.N=!0)};c.prototype.jr=function(a){if(!this.kw){var b=1/this.Ot()*this.b.Z/2;a>this.height-b&&(a=this.height-b);a<b&&(a=b)}this.scrollY!==a&&(this.scrollY=a,this.b.N=!0)};c.prototype.DA=function(){this.ir(this.scrollX);this.jr(this.scrollY)};c.prototype.Zq=function(a,b,d,e){var c=d?d.Ba:b?b.Ba:this.Ba,h=1,g=0,q=0,k=0,l=this.b.aa,p=this.b.Z;d?(h=d.A.yc(),g=d.A.ob(),q=d.A.Fa,k=d.A.Ga,l=d.A.Pa,p=d.A.Oa):b&&
(h=b.yc(),g=b.ob(),q=b.Fa,k=b.Ga,l=b.Pa,p=b.Oa);var t=this.b.Cp,y,C,n,D,O=0,x=1,X,la,V=this.b.aa,Q=this.b.Z,v=V/2,L=Q/2,M=b?b.Lc:this.Lc,R=b?b.Yq:this.Yq,T=0,W=0,P=0,J=0,K=V,sa=V,S=Q,Z=Q,oa=n=0;D=d?d.A.ob():0;if(d){y=0;for(C=c.length;y<C;y++)n+=a.uC(c[y].Ib),oa+=a.vC(c[y].Ib);J=d.ab;T=b.Ea(J.left,J.top,!0,!0);P=b.Ea(J.left,J.top,!1,!0);K=b.Ea(J.right,J.bottom,!0,!0);S=b.Ea(J.right,J.bottom,!1,!0);0!==D&&(y=b.Ea(J.right,J.top,!0,!0),C=b.Ea(J.right,J.top,!1,!0),W=b.Ea(J.left,J.bottom,!0,!0),J=b.Ea(J.left,
J.bottom,!1,!0),D=Math.min(T,K,y,W),K=Math.max(T,K,y,W),T=D,D=Math.min(P,S,C,J),S=Math.max(P,S,C,J),P=D);T-=n;P-=oa;K+=n;S+=oa;R.left=T/V;R.top=1-P/Q;R.right=K/V;R.bottom=1-S/Q;W=T=ta(T);J=P=ta(P);sa=K=ua(K);Z=S=ua(S);W-=n;J-=oa;sa+=n;Z+=oa;0>T&&(T=0);0>P&&(P=0);K>V&&(K=V);S>Q&&(S=Q);0>W&&(W=0);0>J&&(J=0);sa>V&&(sa=V);Z>Q&&(Z=Q);M.left=T/V;M.top=1-P/Q;M.right=K/V;M.bottom=1-S/Q}else M.left=R.left=0,M.top=R.top=0,M.right=R.right=1,M.bottom=R.bottom=1;oa=d&&(a.Qk(c[0].Ib)||0!==n||0!==oa||1!==d.opacity||
d.type.V.Ru)||b&&!d&&1!==b.opacity;a.Dv();if(oa){t[O]||(t[O]=a.Yc(V,Q,this.b.Qa));if(t[O].he!==V||t[O].ge!==Q)a.deleteTexture(t[O]),t[O]=a.Yc(V,Q,this.b.Qa);a.Oc(0);a.Pd(t[O]);la=Z-J;a.clearRect(W,Q-J-la,sa-W,la);d?d.Zb(a):(a.tc(this.b.Sb),a.Ze(b.opacity),a.jd(),a.translate(-v,-L),a.Rc(),a.yd(T,S,K,S,K,P,T,P,M));R.left=R.top=0;R.right=R.bottom=1;d&&(D=M.top,M.top=M.bottom,M.bottom=D);O=1;x=0}a.Ze(1);n=c.length-1;var qa=a.Wq(c[n].Ib)||!b&&!d&&!this.b.ld;y=D=0;for(C=c.length;y<C;y++){t[O]||(t[O]=a.Yc(V,
Q,this.b.Qa));if(t[O].he!==V||t[O].ge!==Q)a.deleteTexture(t[O]),t[O]=a.Yc(V,Q,this.b.Qa);a.Oc(c[y].Ib);D=c[y].index;a.In(c[y].Ib)&&(this.b.N=!0);0!=y||oa?(a.Zi(e,1/V,1/Q,R.left,R.top,R.right,R.bottom,h,g,q,k,(q+l)/2,(k+p)/2,this.b.tb.ba,d?d.nb[D]:b?b.nb[D]:this.nb[D]),a.tc(null),y!==n||qa?(a.Pd(t[O]),la=Z-J,X=Q-J-la,a.clearRect(W,X,sa-W,la)):(d?a.Qf(d.Ua,d.Sa):b&&a.Qf(b.Ua,b.Sa),a.Pd(e)),a.tc(t[x]),a.jd(),a.translate(-v,-L),a.Rc(),a.yd(T,S,K,S,K,P,T,P,M),y!==n||qa||a.tc(null)):(a.Pd(t[O]),la=Z-J,
X=Q-J-la,a.clearRect(W,X,sa-W,la),d?(d.Ob&&d.Ob.M?(X=d.Ob.M,x=1/X.width,X=1/X.height):(x=1/d.width,X=1/d.height),a.Zi(e,x,X,R.left,R.top,R.right,R.bottom,h,g,q,k,(q+l)/2,(k+p)/2,this.b.tb.ba,d.nb[D]),d.Zb(a)):(a.Zi(e,1/V,1/Q,0,0,1,1,h,g,q,k,(q+l)/2,(k+p)/2,this.b.tb.ba,b?b.nb[D]:this.nb[D]),a.tc(b?this.b.Sb:this.b.Fb),a.jd(),a.translate(-v,-L),a.Rc(),a.yd(T,S,K,S,K,P,T,P,M)),R.left=R.top=0,R.right=R.bottom=1,d&&!qa&&(D=S,S=P,P=D));O=0===O?1:0;x=0===O?1:0}qa&&(a.Oc(0),d?a.Qf(d.Ua,d.Sa):b?a.Qf(b.Ua,
b.Sa):this.b.ld||(a.Rf(this.b.width,this.b.height),v=this.b.width/2,L=this.b.height/2,P=T=0,K=this.b.width,S=this.b.height),a.Pd(e),a.tc(t[x]),a.jd(),a.translate(-v,-L),a.Rc(),d&&1===c.length&&!oa?a.yd(T,P,K,P,K,S,T,S,M):a.yd(T,S,K,S,K,P,T,P,M),a.tc(null))};c.prototype.Nm=function(a){var b,d;b=0;for(d=this.na.length;b<d;b++)if(this.na[b].ta===a)return this.na[b];return null};c.prototype.za=function(){var a,b,d,e={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.u,w:this.width,h:this.height,fv:this.li,
persist:this.Ig,fx:[],layers:{}};a=0;for(b=this.ka.length;a<b;a++)d=this.ka[a],e.fx.push({name:d.name,active:d.gc,params:this.nb[d.index]});a=0;for(b=this.na.length;a<b;a++)d=this.na[a],e.layers[d.ta.toString()]=d.za();return e};c.prototype.Ka=function(a){var b,d,e,c;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.u=a.a;this.width=a.w;this.height=a.h;this.Ig=a.persist;"undefined"!==typeof a.fv&&(this.li=a.fv);var h=a.fx;b=0;for(d=h.length;b<d;b++)if(e=this.Fp(h[b].name))e.gc=h[b].active,this.nb[e.index]=
h[b].params;this.ze();b=a.layers;for(c in b)b.hasOwnProperty(c)&&(a=this.Nm(parseInt(c,10)))&&a.Ka(b[c])};Mb=c;n.prototype.ze=function(){E(this.Ba);this.Tf=!0;var a,b,d;a=0;for(b=this.ka.length;a<b;a++)d=this.ka[a],d.gc&&(this.Ba.push(d),d.xd||(this.Tf=!1))};n.prototype.Fp=function(a){var b,d,e;b=0;for(d=this.ka.length;b<d;b++)if(e=this.ka[b],e.name===a)return e;return null};n.prototype.PA=function(){var a,b,d,e,c,h;b=a=0;for(d=this.nd.length;a<d;a++){e=this.nd[a];c=this.b.L[e[1]];h=this.b.Cr(c);
c=!0;if(!h||this.Eb.li){e=this.b.mg(e,this,!0);if(!e)continue;k.push(e);e.type.global&&(c=!1,this.Ej.push(e.uid))}c&&(this.nd[b]=this.nd[a],b++)}this.nd.length=b;this.b.uc();!this.b.F&&this.ka.length&&(this.xb=this.uB);this.Wc=jb(this.xb);this.b.K&&kb(this,this.xb,this.b.K);this.ve=!0};n.prototype.Wi=function(a,b){var d=Ia(this.n,a);0>d||(b&&this.Ad&&a.Mc&&a.Mc.right>=a.Mc.left&&(a.Aa(),this.rc.update(a,a.Mc,null),a.Mc.set(0,0,-1,-1)),d===this.n.length-1?this.n.pop():(Da(this.n,d),this.Yk(d)),this.ve=
!0)};n.prototype.xj=function(a,b){a.Ae=this.n.length;this.n.push(a);b&&this.Ad&&a.Mc&&a.T();this.ve=!0};n.prototype.SD=function(a){this.n.unshift(a);this.Yk(0)};n.prototype.vD=function(a,b,d){var e=a.Id();b=b.Id();Da(this.n,e);e<b&&b--;d&&b++;b===this.n.length?this.n.push(a):this.n.splice(b,0,a);this.Yk(e<b?e:b)};n.prototype.Yk=function(a){-1===this.bg?this.bg=a:a<this.bg&&(this.bg=a);this.ve=this.Ph=!0};n.prototype.Fr=function(){if(this.Ph){-1===this.bg&&(this.bg=0);var a,b,d;if(this.Ad)for(a=this.bg,
b=this.n.length;a<b;++a)d=this.n[a],d.Ae=a,this.rc.sD(d.Mc);else for(a=this.bg,b=this.n.length;a<b;++a)this.n[a].Ae=a;this.Ph=!1;this.bg=-1}};n.prototype.yc=function(a){return this.rC()*(this.b.ld||a?this.b.yj:1)};n.prototype.rC=function(){return(this.scale*this.Eb.scale-1)*this.Dc+1};n.prototype.ob=function(){return this.sf?0:Oa(this.Eb.u+this.u)};var b=[],e=[],d=[];n.prototype.Np=function(){this.Fr();this.rc.Mn(this.Fa,this.Ga,this.Pa,this.Oa,d);if(!d.length)return g();if(1===d.length){var a=g();
Fa(a,d[0]);E(d);return a}for(var b=!0;1<d.length;){for(var a=d,c=void 0,h=void 0,k=void 0,p=void 0,w=void 0,c=0,h=a.length;c<h-1;c+=2){var k=a[c],p=a[c+1],w=g(),q=k,u=p,n=w,H=0,t=0,y=0,C=q.length,N=u.length,D=void 0,O=void 0;for(n.length=C+N;H<C&&t<N;++y)D=q[H],O=u[t],D.Ae<O.Ae?(n[y]=D,++H):(n[y]=O,++t);for(;H<C;++H,++y)n[y]=q[H];for(;t<N;++t,++y)n[y]=u[t];b||(l(k),l(p));e.push(w)}1===h%2&&(b?(k=g(),Fa(k,a[h-1]),e.push(k)):e.push(a[h-1]));Fa(a,e);E(e);b=!1}a=d[0];E(d);return a};n.prototype.wc=function(a){this.Xe=
this.Gm||1!==this.opacity||0!==this.xb;var b=this.b.canvas,d=a,e=!1;this.Xe&&(this.b.bn||(this.b.bn=document.createElement("canvas"),b=this.b.bn,b.width=this.b.aa,b.height=this.b.Z,this.b.ru=b.getContext("2d"),e=!0),b=this.b.bn,d=this.b.ru,b.width!==this.b.aa&&(b.width=this.b.aa,e=!0),b.height!==this.b.Z&&(b.height=this.b.Z,e=!0),e&&this.b.Un(d,this.b.Qa),this.ye&&d.clearRect(0,0,this.b.aa,this.b.Z));d.globalAlpha=1;d.globalCompositeOperation="source-over";this.ye||(d.fillStyle="rgb("+this.ee[0]+
","+this.ee[1]+","+this.ee[2]+")",d.fillRect(0,0,this.b.aa,this.b.Z));d.save();this.sf=!0;var e=this.bb(0,0,!0,!0),c=this.bb(0,0,!1,!0);this.sf=!1;this.b.Cc&&(e=Math.round(e),c=Math.round(c));this.Pn(e,c,d);var h=this.yc();d.scale(h,h);d.translate(-e,-c);this.Ad?(this.ic.left=this.rc.Hc(this.Fa),this.ic.top=this.rc.Ic(this.Ga),this.ic.right=this.rc.Hc(this.Pa),this.ic.bottom=this.rc.Ic(this.Oa),this.ve||!this.ic.Gj(this.Hi)?(l(this.Ff),e=this.Np(),this.ve=!1,this.Hi.lg(this.ic)):e=this.Ff):e=this.n;
for(var g,q=null,c=0,h=e.length;c<h;++c)g=e[c],g!==q&&(this.lB(g,d),q=g);this.Ad&&(this.Ff=e);d.restore();this.Xe&&(a.globalCompositeOperation=this.Wc,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};n.prototype.lB=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Aa();var d=a.ab;d.right<this.Fa||d.bottom<this.Ga||d.left>this.Pa||d.top>this.Oa||(b.globalCompositeOperation=a.Wc,a.wc(b))}};n.prototype.xo=function(){this.sf=!0;var a=this.bb(0,0,!0,!0),b=this.bb(0,0,!1,!0);this.sf=!1;this.b.Cc&&
(a=Math.round(a),b=Math.round(b));this.Pn(a,b,null)};n.prototype.Pn=function(a,b,d){var e=this.yc();this.Fa=a;this.Ga=b;this.Pa=a+1/e*this.b.aa;this.Oa=b+1/e*this.b.Z;this.Fa>this.Pa&&(a=this.Fa,this.Fa=this.Pa,this.Pa=a);this.Ga>this.Oa&&(a=this.Ga,this.Ga=this.Oa,this.Oa=a);a=this.ob();0!==a&&(d&&(d.translate(this.b.aa/2,this.b.Z/2),d.rotate(-a),d.translate(this.b.aa/-2,this.b.Z/-2)),this.Yf.set(this.Fa,this.Ga,this.Pa,this.Oa),this.Yf.offset((this.Fa+this.Pa)/-2,(this.Ga+this.Oa)/-2),this.dw.Nv(this.Yf,
a),this.dw.Ss(this.Yf),this.Yf.offset((this.Fa+this.Pa)/2,(this.Ga+this.Oa)/2),this.Fa=this.Yf.left,this.Ga=this.Yf.top,this.Pa=this.Yf.right,this.Oa=this.Yf.bottom)};n.prototype.qg=function(a){if(this.Xe=this.Gm){this.b.Sb||(this.b.Sb=a.Yc(this.b.aa,this.b.Z,this.b.Qa));if(this.b.Sb.he!==this.b.aa||this.b.Sb.ge!==this.b.Z)a.deleteTexture(this.b.Sb),this.b.Sb=a.Yc(this.b.aa,this.b.Z,this.b.Qa);a.Pd(this.b.Sb)}this.sf=!0;var b=this.bb(0,0,!0,!0),d=this.bb(0,0,!1,!0);this.sf=!1;this.b.Cc&&(b=Math.round(b),
d=Math.round(d));this.Pn(b,d,null);b=this.yc();a.jd();a.scale(b,b);a.Vk(-this.ob());a.translate((this.Fa+this.Pa)/-2,(this.Ga+this.Oa)/-2);a.Rc();this.Ad?(this.ic.left=this.rc.Hc(this.Fa),this.ic.top=this.rc.Ic(this.Ga),this.ic.right=this.rc.Hc(this.Pa),this.ic.bottom=this.rc.Ic(this.Oa),this.ve||!this.ic.Gj(this.Hi)?(l(this.Ff),b=this.Np(),this.ve=!1,this.Hi.lg(this.ic)):b=this.Ff):b=this.n;for(var e,c=null,d=b.length-1;0<=d;--d)e=b[d],e!==c&&(this.nB(b[d],a),c=e);this.Ad&&(this.Ff=b);this.ye||(this.kp=
this.b.Vg++,a.Vn(this.kp),a.Ev(1,1,1),a.Bt(),a.eE())};n.prototype.Zb=function(a){var b=0,d=0;if(this.Xe=this.Gm||1!==this.opacity||0<this.Ba.length||0!==this.xb){this.b.Sb||(this.b.Sb=a.Yc(this.b.aa,this.b.Z,this.b.Qa));if(this.b.Sb.he!==this.b.aa||this.b.Sb.ge!==this.b.Z)a.deleteTexture(this.b.Sb),this.b.Sb=a.Yc(this.b.aa,this.b.Z,this.b.Qa);a.Pd(this.b.Sb);this.ye&&a.clear(0,0,0,0)}this.ye||(this.b.cb?(a.Vn(this.kp),a.Ev(this.ee[0]/255,this.ee[1]/255,this.ee[2]/255),a.Bt(),a.uE()):a.clear(this.ee[0]/
255,this.ee[1]/255,this.ee[2]/255,1));this.sf=!0;var e=this.bb(0,0,!0,!0),b=this.bb(0,0,!1,!0);this.sf=!1;this.b.Cc&&(e=Math.round(e),b=Math.round(b));this.Pn(e,b,null);e=this.yc();a.jd();a.scale(e,e);a.Vk(-this.ob());a.translate((this.Fa+this.Pa)/-2,(this.Ga+this.Oa)/-2);a.Rc();this.Ad?(this.ic.left=this.rc.Hc(this.Fa),this.ic.top=this.rc.Ic(this.Ga),this.ic.right=this.rc.Hc(this.Pa),this.ic.bottom=this.rc.Ic(this.Oa),this.ve||!this.ic.Gj(this.Hi)?(l(this.Ff),b=this.Np(),this.ve=!1,this.Hi.lg(this.ic)):
b=this.Ff):b=this.n;var c,h,g=null,d=0;for(c=b.length;d<c;++d)h=b[d],h!==g&&(this.mB(b[d],a),g=h);this.Ad&&(this.Ff=b);this.Xe&&(b=this.Ba.length?this.Ba[0].Ib:0,d=this.Ba.length?this.Ba[0].index:0,0===this.Ba.length||1===this.Ba.length&&!a.Wq(b)&&1===this.opacity?(1===this.Ba.length?(a.Oc(b),a.Zi(this.Eb.Qj(),1/this.b.aa,1/this.b.Z,0,0,1,1,e,this.ob(),this.Fa,this.Ga,(this.Fa+this.Pa)/2,(this.Ga+this.Oa)/2,this.b.tb.ba,this.nb[d]),a.In(b)&&(this.b.N=!0)):a.Oc(0),a.Pd(this.Eb.Qj()),a.Ze(this.opacity),
a.tc(this.b.Sb),a.Qf(this.Ua,this.Sa),a.jd(),a.Rc(),e=this.b.aa/2,b=this.b.Z/2,a.Gh(-e,b,e,b,e,-b,-e,-b),a.tc(null)):this.Eb.Zq(a,this,null,this.Eb.Qj()))};n.prototype.mB=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Aa();var d=a.ab;d.right<this.Fa||d.bottom<this.Ga||d.left>this.Pa||d.top>this.Oa||(b.Vn(a.Vg),a.ww?this.oB(a,b):(b.Oc(0),b.Qf(a.Ua,a.Sa),a.Zb(b)))}};n.prototype.nB=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Aa();var d=a.ab;d.right<this.Fa||d.bottom<this.Ga||d.left>
this.Pa||d.top>this.Oa||(a.Vg=this.b.Vg++,0===a.xb&&1===a.opacity&&a.Tf&&a.qg&&(b.Vn(a.Vg),a.qg(b)))}};n.prototype.oB=function(a,b){var d=a.Ba[0].Ib,e=a.Ba[0].index,c=this.yc();if(1!==a.Ba.length||b.Wq(d)||b.UD(d)||(a.u||a.A.ob())&&b.Qk(d)||1!==a.opacity||a.type.V.Ru)this.Eb.Zq(b,this,a,this.Xe?this.b.Sb:this.Eb.Qj()),b.jd(),b.scale(c,c),b.Vk(-this.ob()),b.translate((this.Fa+this.Pa)/-2,(this.Ga+this.Oa)/-2),b.Rc();else{b.Oc(d);b.Qf(a.Ua,a.Sa);b.In(d)&&(this.b.N=!0);var h=0,g=0,q=0,k=0;b.Qk(d)&&(k=
a.ab,h=this.Ea(k.left,k.top,!0,!0),g=this.Ea(k.left,k.top,!1,!0),q=this.Ea(k.right,k.bottom,!0,!0),k=this.Ea(k.right,k.bottom,!1,!0),h=h/windowWidth,g=1-g/windowHeight,q=q/windowWidth,k=1-k/windowHeight);var l;a.Ob&&a.Ob.M?(l=a.Ob.M,d=1/l.width,l=1/l.height):(d=1/a.width,l=1/a.height);b.Zi(this.Xe?this.b.Sb:this.Eb.Qj(),d,l,h,g,q,k,c,this.ob(),this.Fa,this.Ga,(this.Fa+this.Pa)/2,(this.Ga+this.Oa)/2,this.b.tb.ba,a.nb[e]);a.Zb(b)}};n.prototype.bb=function(a,b,d,e){var c=this.b.devicePixelRatio;this.b.kh&&
(a*=c,b*=c);var c=this.b.ov,h=this.b.pv,c=(this.Eb.scrollX-c)*this.pc+c,h=(this.Eb.scrollY-h)*this.qc+h,g=c,q=h,k=1/this.yc(!e);e?(g-=this.b.aa*k/2,q-=this.b.Z*k/2):(g-=this.b.width*k/2,q-=this.b.height*k/2);g+=a*k;q+=b*k;b=this.ob();0!==b&&(g-=c,q-=h,a=Math.cos(b),b=Math.sin(b),e=g*a-q*b,q=q*a+g*b,g=e+c,q+=h);return d?g:q};n.prototype.Ea=function(a,b,d,e){var c=this.b.ov,h=this.b.pv,g=(this.Eb.scrollX-c)*this.pc+c,q=(this.Eb.scrollY-h)*this.qc+h,h=g,c=q,k=this.ob();if(0!==k){a-=g;b-=q;var l=Math.cos(-k),
k=Math.sin(-k),p=a*l-b*k;b=b*l+a*k;a=p+g;b+=q}g=1/this.yc(!e);e?(h-=this.b.aa*g/2,c-=this.b.Z*g/2):(h-=this.b.width*g/2,c-=this.b.height*g/2);h=(a-h)/g;c=(b-c)/g;a=this.b.devicePixelRatio;this.b.kh&&!e&&(h/=a,c/=a);return d?h:c};n.prototype.za=function(){var a,b,d,e={s:this.scale,a:this.u,vl:this.Fa,vt:this.Ga,vr:this.Pa,vb:this.Oa,v:this.visible,bc:this.ee,t:this.ye,px:this.pc,py:this.qc,o:this.opacity,zr:this.Dc,fx:[],cg:this.Ej,instances:[]};a=0;for(b=this.ka.length;a<b;a++)d=this.ka[a],e.fx.push({name:d.name,
active:d.gc,params:this.nb[d.index]});return e};n.prototype.Ka=function(a){var b,d,e;this.scale=a.s;this.u=a.a;this.Fa=a.vl;this.Ga=a.vt;this.Pa=a.vr;this.Oa=a.vb;this.visible=a.v;this.ee=a.bc;this.ye=a.t;this.pc=a.px;this.qc=a.py;this.opacity=a.o;this.Dc=a.zr;this.Ej=a.cg||[];Fa(this.nd,this.Yv);var c=new ca;b=0;for(e=this.Ej.length;b<e;++b)c.add(this.Ej[b]);d=b=0;for(e=this.nd.length;b<e;++b)c.contains(this.nd[b][2])||(this.nd[d]=this.nd[b],++d);Ea(this.nd,d);d=a.fx;b=0;for(e=d.length;b<e;b++)if(a=
this.Fp(d[b].name))a.gc=d[b].active,this.nb[a.index]=d[b].params;this.ze();this.n.sort(p);this.Ph=!0};ac=n})();
(function(){function c(a,b){var d,e=a.length;switch(e){case 0:return!0;case 1:return a[0]===b[0];case 2:return a[0]===b[0]&&a[1]===b[1];default:for(d=0;d<e;d++)if(a[d]!==b[d])return!1;return!0}}function p(a,b){return a.index-b.index}function n(a){var b,d,e,f;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(p);a.length>=F.length&&(F.length=a.length+1);F[a.length]||(F[a.length]=[]);f=F[a.length];b=0;for(d=f.length;b<d;b++)if(e=f[b],c(a,e))return e;f.push(a);return a}
function g(a,b){this.b=a;this.hw={};this.pt={};this.Up=!1;this.Wt=new ca;this.pp=[];this.Yo=[];this.name=b[0];var d=b[1];this.tg=[];var e,f;e=0;for(f=d.length;e<f;e++)this.Yt(d[e],null,this.tg)}function l(a){this.type=a;this.n=[];this.ea=[];this.W=!0}function k(a,b,d){this.sheet=a;this.parent=b;this.b=a.b;this.la=[];this.Kg=[];this.Ut=this.po=this.xr=this.Xp=this.group=this.or=!1;this.Nb=[];this.Bd=[];this.Sd=[];this.Sj="";this.dh=this.Xp=this.group=!1;this.hm=null;d[1]&&(this.Sj=d[1][1].toLowerCase(),
this.group=!0,this.Xp=!!d[1][0],this.hm=[],this.dh=this.Xp,this.b.Yh.push(this),this.b.pi[this.Sj]=this);this.ud=d[2];this.ta=d[4];this.group||(this.b.Qs[this.ta.toString()]=this);var e=d[5];a=0;for(b=e.length;a<b;a++){var f=new bc(this,e[a]);f.index=a;this.Nb.push(f);this.Ks(f.type)}e=d[6];a=0;for(b=e.length;a<b;a++)f=new cc(this,e[a]),f.index=a,this.Bd.push(f);if(8===d.length)for(d=d[7],a=0,b=d.length;a<b;a++)this.sheet.Yt(d[a],this,this.Sd);this.Zm=!1;this.Nb.length&&(this.Zm=null==this.Nb[0].type&&
this.Nb[0].kc==I.prototype.j.Ur)}function h(a,b){var d,e,f;if(a&&(-1===b.indexOf(a)&&b.push(a),a.lc))for(d=0,e=a.Xc.length;d<e;d++)f=a.Xc[d],a!==f&&-1===b.indexOf(f)&&b.push(f)}function b(a,b){this.kd=a;this.sheet=a.sheet;this.b=a.b;this.ca=[];this.pb=[];this.U={};this.index=-1;this.uj=!1;this.kc=this.b.dg(b[1]);this.trigger=0<b[3];this.ot=2===b[3];this.Te=b[4];this.si=b[5];this.hD=b[6];this.ta=b[7];this.b.kg[this.ta.toString()]=this;-1===b[0]?(this.type=null,this.Hb=this.fr,this.Rg=null,this.fe=
-1):(this.type=this.b.L[b[0]],this.Hb=this.hD?this.lE:this.er,b[2]?(this.Rg=this.type.Mm(b[2]),this.fe=this.type.Dp(b[2])):(this.Rg=null,this.fe=-1),this.kd.parent&&this.kd.parent.Yn());this.ot&&(this.Hb=this.mE);if(10===b.length){var d,e,f=b[9];d=0;for(e=f.length;d<e;d++){var c=new dc(this,f[d]);this.ca.push(c)}this.pb.length=f.length}}function e(a,b){this.kd=a;this.sheet=a.sheet;this.b=a.b;this.ca=[];this.pb=[];this.U={};this.index=-1;this.uj=!1;this.kc=this.b.dg(b[1]);-1===b[0]?(this.type=null,
this.Hb=this.fr,this.Rg=null,this.fe=-1):(this.type=this.b.L[b[0]],this.Hb=this.er,b[2]?(this.Rg=this.type.Mm(b[2]),this.fe=this.type.Dp(b[2])):(this.Rg=null,this.fe=-1));this.ta=b[3];this.b.gg[this.ta.toString()]=this;if(6===b.length){var d,e,f=b[5];d=0;for(e=f.length;d<e;d++){var c=new dc(this,f[d]);this.ca.push(c)}this.pb.length=f.length}}function d(){w++;z.length===w&&z.push(new ec);return z[w]}function a(a,b){this.Nd=a;this.kd=a.kd;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.Fe=null;this.Uf=
0;this.get=null;this.Zs=0;this.Eb=null;this.key=0;this.object=null;this.index=0;this.sl=this.Kh=this.sl=this.Kh=this.xt=this.Xg=this.tl=null;this.Xd=!1;var d,e,f;switch(b[0]){case 0:case 7:this.Fe=new fc(this,b[1]);this.Uf=0;this.get=this.DC;break;case 1:this.Fe=new fc(this,b[1]);this.Uf=0;this.get=this.EC;break;case 5:this.Fe=new fc(this,b[1]);this.Uf=0;this.get=this.IC;break;case 3:case 8:this.Zs=b[1];this.get=this.BC;break;case 6:this.Eb=this.b.oq[b[1]];this.get=this.JC;break;case 9:this.key=b[1];
this.get=this.HC;break;case 4:this.object=this.b.L[b[1]];this.get=this.KC;this.kd.Ks(this.object);this.Nd instanceof cc?this.kd.Yn():this.kd.parent&&this.kd.parent.Yn();break;case 10:this.index=b[1];a.type&&a.type.S?(this.get=this.FC,this.Xd=!0):this.get=this.GC;break;case 11:this.tl=b[1];this.Xg=null;this.get=this.CC;break;case 2:case 12:this.xt=b[1];this.get=this.AC;break;case 13:for(this.get=this.LC,this.Kh=[],this.sl=[],d=1,e=b.length;d<e;d++)f=new dc(this.Nd,b[d]),this.Kh.push(f),this.sl.push(0)}}
function f(a,b,d){this.sheet=a;this.parent=b;this.b=a.b;this.la=[];this.name=d[1];this.ul=d[2];this.Sm=d[3];this.ek=!!d[4];this.Ym=!!d[5];this.ta=d[6];this.b.jj[this.ta.toString()]=this;this.data=this.Sm;this.parent?(this.Ah=this.ek||this.Ym?-1:this.b.yE++,this.b.vA.push(this)):(this.Ah=-1,this.b.Xo.push(this))}function m(a,b,d){this.sheet=a;this.parent=b;this.b=a.b;this.la=[];this.Vj=null;this.TC=d[1];this.gc=!0}function r(){this.$v=[];this.reset(null)}var F=[];g.prototype.toString=function(){return this.name};
g.prototype.Yt=function(a,b,d){switch(a[0]){case 0:a=new gc(this,b,a);if(a.ud)for(d.push(a),d=0,b=a.Nb.length;d<b;d++)a.Nb[d].trigger&&this.Zt(a,d);else a.ku()?this.Zt(a,0):d.push(a);break;case 1:a=new Xb(this,b,a);d.push(a);break;case 2:a=new hc(this,b,a),d.push(a)}};g.prototype.wb=function(){var a,b;a=0;for(b=this.tg.length;a<b;a++)this.tg[a].wb(a<b-1&&this.tg[a+1].Zm)};g.prototype.Dr=function(){E(this.pp);E(this.Yo);this.Js(this);E(this.Yo)};g.prototype.Js=function(a){var b,d,e,f,c=a.pp,h=a.Yo,
g=this.Wt.Wd();b=0;for(d=g.length;b<d;++b)e=g[b],f=e.Vj,!e.gc||a===f||-1<h.indexOf(f)||(h.push(f),f.Js(a),c.push(f))};g.prototype.Hb=function(a){this.b.PF||(this.Up=!0,a||(this.b.fq=!0));var b,d;b=0;for(d=this.tg.length;b<d;b++){var e=this.tg[b];e.Hb();this.b.jp(e.la);this.b.vg&&this.b.uc()}a||(this.b.fq=!1)};g.prototype.Zt=function(a,b){a.ud||this.b.to.push(a);var d,e,f=a.Nb[b],c;f.type?c=f.type.name:c="system";var h=(d=f.ot)?this.pt:this.hw;h[c]||(h[c]=[]);c=h[c];h=f.kc;if(d){if(f.ca.length&&(f=
f.ca[0],1===f.type&&2===f.Fe.type)){f=f.Fe.value.toLowerCase();d=0;for(e=c.length;d<e;d++)if(c[d].method==h){d=c[d].Hj;d[f]?d[f].push([a,b]):d[f]=[[a,b]];return}d={};d[f]=[[a,b]];c.push({method:h,Hj:d})}}else{d=0;for(e=c.length;d<e;d++)if(c[d].method==h){c[d].Hj.push([a,b]);return}U&&h===U.prototype.j.Th?c.unshift({method:h,Hj:[[a,b]]}):c.push({method:h,Hj:[[a,b]]})}};Nb=g;l.prototype.Tp=function(){return this.W?this.type.n.length:this.n.length};l.prototype.$b=function(){return this.W?this.type.n:
this.n};l.prototype.Lk=function(a){a&&(a.b.eb().hb.ud?(this.W&&(E(this.n),Fa(this.ea,a.type.n),this.W=!1),a=this.ea.indexOf(a),-1!==a&&(this.n.push(this.ea[a]),this.ea.splice(a,1))):(this.W=!1,E(this.n),this.n[0]=a))};vb=l;window._c2hh_="DA39A3EE5E6B4B0D3255BFEF95601890AFD80709";k.prototype.wb=function(a){var b,d=this.parent;if(this.group)for(this.po=!0;d;){if(!d.group){this.po=!1;break}d=d.parent}this.xr=!this.ku()&&(!this.parent||this.parent.group&&this.parent.po);this.Ut=!!a;this.Kg=this.la.slice(0);
for(d=this.parent;d;){a=0;for(b=d.la.length;a<b;a++)this.tA(d.la[a]);d=d.parent}this.la=n(this.la);this.Kg=n(this.Kg);a=0;for(b=this.Nb.length;a<b;a++)this.Nb[a].wb();a=0;for(b=this.Bd.length;a<b;a++)this.Bd[a].wb();a=0;for(b=this.Sd.length;a<b;a++)this.Sd[a].wb(a<b-1&&this.Sd[a+1].Zm)};k.prototype.Wn=function(a){if(this.dh!==!!a){this.dh=!!a;var b;a=0;for(b=this.hm.length;a<b;++a)this.hm[a].mw();0<b&&this.b.ua.Wg&&this.b.ua.Wg.Dr()}};k.prototype.Ks=function(a){h(a,this.la)};k.prototype.tA=function(a){h(a,
this.Kg)};k.prototype.Yn=function(){this.or=!0;this.parent&&this.parent.Yn()};k.prototype.ku=function(){return this.Nb.length?this.Nb[0].trigger:!1};k.prototype.Hb=function(){var a,b,d=!1,e=this.b,f=this.b.eb();f.hb=this;var c=this.Nb;this.Zm||(f.up=!1);if(this.ud){0===c.length&&(d=!0);f.Cb=0;for(a=c.length;f.Cb<a;f.Cb++)b=c[f.Cb],b.trigger||(b=b.Hb())&&(d=!0);(f.rh=d)&&this.Qn()}else{f.Cb=0;for(a=c.length;f.Cb<a;f.Cb++)if(b=c[f.Cb].Hb(),!b){f.rh=!1;this.xr&&e.vg&&e.uc();return}f.rh=!0;this.Qn()}this.vB(f)};
k.prototype.vB=function(a){a.rh&&this.Ut&&(a.up=!0);this.xr&&this.b.vg&&this.b.uc()};k.prototype.jE=function(a){this.b.eb().hb=this;this.Nb[a].Hb()&&(this.Qn(),this.b.eb().rh=!0)};k.prototype.Qn=function(){var a=this.b.eb(),b;a.Jc=0;for(b=this.Bd.length;a.Jc<b;a.Jc++)if(this.Bd[a.Jc].Hb())return;this.Bv()};k.prototype.gE=function(){var a=this.b.eb(),b;for(b=this.Bd.length;a.Jc<b;a.Jc++)if(this.Bd[a.Jc].Hb())return;this.Bv()};k.prototype.Bv=function(){if(this.Sd.length){var a,b,d,e,f=this.Sd.length-
1;this.b.Kn(this);if(this.or)for(a=0,b=this.Sd.length;a<b;a++)d=this.Sd[a],(e=!this.po||!this.group&&a<f)&&this.b.We(d.la),d.Hb(),e?this.b.wd(d.la):this.b.jp(d.la);else for(a=0,b=this.Sd.length;a<b;a++)this.Sd[a].Hb();this.b.En()}};k.prototype.kE=function(){var a=this.b.eb();a.hb=this;var b=!1,d;a.Cb=0;for(d=this.Nb.length;a.Cb<d;a.Cb++)if(this.Nb[a.Cb].Hb())b=!0;else if(!this.ud)return!1;return this.ud?b:!0};k.prototype.Od=function(){this.b.Yg++;var a=this.b.eb().Cb,b=this.b.Kn(this);if(!this.ud)for(b.Cb=
a+1,a=this.Nb.length;b.Cb<a;b.Cb++)if(!this.Nb[b.Cb].Hb()){this.b.En();return}this.Qn();this.b.En()};k.prototype.aD=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.Nb[b].type===a.type)return!1;return!0};gc=k;b.prototype.wb=function(){var a,b,d;a=0;for(b=this.ca.length;a<b;a++)d=this.ca[a],d.wb(),d.Xd&&(this.uj=!0)};b.prototype.mE=function(){return!0};b.prototype.fr=function(){var a,b;a=0;for(b=this.ca.length;a<b;a++)this.pb[a]=this.ca[a].get();return Xa(this.kc.apply(this.b.cf,
this.pb),this.si)};b.prototype.lE=function(){var a,b;a=0;for(b=this.ca.length;a<b;a++)this.pb[a]=this.ca[a].get();a=this.kc.apply(this.Rg?this.Rg:this.type,this.pb);this.type.Uc();return a};b.prototype.er=function(){var a,b,d,e,f,c,h,g,m=this.type,k=m.R(),l=this.kd.ud&&!this.trigger;b=0;var r=m.lc,p=m.S,n=m.vf,w=this.fe,F=-1<w,z=this.uj,M=this.ca,R=this.pb,T=this.si,W=this.kc,P;if(z)for(b=0,f=M.length;b<f;++b)c=M[b],c.Xd||(R[b]=c.get(0));else for(b=0,f=M.length;b<f;++b)R[b]=M[b].get(0);if(k.W){E(k.n);
E(k.ea);P=m.n;a=0;for(e=P.length;a<e;++a){g=P[a];if(z)for(b=0,f=M.length;b<f;++b)c=M[b],c.Xd&&(R[b]=c.get(a));F?(b=0,p&&(b=g.type.ji[n]),b=W.apply(g.X[w+b],R)):b=W.apply(g,R);(h=Xa(b,T))?k.n.push(g):l&&k.ea.push(g)}m.finish&&m.finish(!0);k.W=!1;m.Uc();return k.Tp()}d=0;P=(h=l&&!this.kd.aD(this))?k.ea:k.n;var J=!1;a=0;for(e=P.length;a<e;++a){g=P[a];if(z)for(b=0,f=M.length;b<f;++b)c=M[b],c.Xd&&(R[b]=c.get(a));F?(b=0,p&&(b=g.type.ji[n]),b=W.apply(g.X[w+b],R)):b=W.apply(g,R);if(Xa(b,T))if(J=!0,h){if(k.n.push(g),
r)for(b=0,f=g.siblings.length;b<f;b++)c=g.siblings[b],c.type.R().n.push(c)}else{P[d]=g;if(r)for(b=0,f=g.siblings.length;b<f;b++)c=g.siblings[b],c.type.R().n[d]=c;d++}else if(h){P[d]=g;if(r)for(b=0,f=g.siblings.length;b<f;b++)c=g.siblings[b],c.type.R().ea[d]=c;d++}else if(l&&(k.ea.push(g),r))for(b=0,f=g.siblings.length;b<f;b++)c=g.siblings[b],c.type.R().ea.push(c)}Ea(P,d);if(r)for(p=m.Xc,a=0,e=p.length;a<e;a++)g=p[a].R(),h?Ea(g.ea,d):Ea(g.n,d);d=J;if(h&&!J)for(a=0,e=k.n.length;a<e;a++){g=k.n[a];if(z)for(b=
0,f=M.length;b<f;b++)c=M[b],c.Xd&&(R[b]=c.get(a));b=F?W.apply(g.X[w],R):W.apply(g,R);if(Xa(b,T)){J=!0;break}}m.finish&&m.finish(d||l);return l?J:k.Tp()};bc=b;e.prototype.wb=function(){var a,b,d;a=0;for(b=this.ca.length;a<b;a++)d=this.ca[a],d.wb(),d.Xd&&(this.uj=!0)};e.prototype.fr=function(){var a=this.b,b,d,e=this.ca,f=this.pb;b=0;for(d=e.length;b<d;++b)f[b]=e[b].get();return this.kc.apply(a.cf,f)};e.prototype.er=function(){var a=this.type,b=this.fe,d=a.vf,e=this.uj,f=this.ca,c=this.pb,h=this.kc,
g=a.R().$b(),a=a.S,m=-1<b,k,l,r,p,n,w;if(e)for(l=0,p=f.length;l<p;++l)n=f[l],n.Xd||(c[l]=n.get(0));else for(l=0,p=f.length;l<p;++l)c[l]=f[l].get(0);k=0;for(r=g.length;k<r;++k){w=g[k];if(e)for(l=0,p=f.length;l<p;++l)n=f[l],n.Xd&&(c[l]=n.get(k));m?(l=0,a&&(l=w.type.ji[d]),h.apply(w.X[b+l],c)):h.apply(w,c)}return!1};cc=e;var z=[],w=-1;a.prototype.wb=function(){var a,b;if(11===this.type)this.Xg=this.b.It(this.tl,this.kd.parent);else if(13===this.type)for(a=0,b=this.Kh.length;a<b;a++)this.Kh[a].wb();this.Fe&&
this.Fe.wb()};a.prototype.uD=function(a){this.Xd||!a||a.V.ao||(this.Xd=!0)};a.prototype.Lv=function(){this.Xd=!0};a.prototype.DC=function(a){this.Uf=a||0;a=d();this.Fe.get(a);w--;return a.data};a.prototype.EC=function(a){this.Uf=a||0;a=d();this.Fe.get(a);w--;return ia(a.data)?a.data:""};a.prototype.KC=function(){return this.object};a.prototype.BC=function(){return this.Zs};a.prototype.IC=function(a){this.Uf=a||0;a=d();this.Fe.get(a);w--;return a.cc()?this.b.Le(a.data):this.b.mi(a.data)};a.prototype.JC=
function(){return this.Eb};a.prototype.HC=function(){return this.key};a.prototype.GC=function(){return this.index};a.prototype.FC=function(a){a=a||0;var b=this.Nd.type,d=null,d=b.R(),e=d.$b();if(e.length)d=e[a%e.length].type;else if(d.ea.length)d=d.ea[a%d.ea.length].type;else if(b.n.length)d=b.n[a%b.n.length].type;else return 0;return this.index+d.Bm[b.vf]};a.prototype.CC=function(){return this.Xg};a.prototype.AC=function(){return this.xt};a.prototype.LC=function(){var a,b;a=0;for(b=this.Kh.length;a<
b;a++)this.sl[a]=this.Kh[a].get();return this.sl};dc=a;f.prototype.wb=function(){this.la=n(this.la)};f.prototype.Sf=function(a){var b=this.b.Et();this.parent&&!this.ek&&b?(this.Ah>=b.length&&(b.length=this.Ah+1),b[this.Ah]=a):this.data=a};f.prototype.bh=function(){var a=this.b.Et();return!this.parent||this.ek||!a||this.Ym?this.data:this.Ah>=a.length||"undefined"===typeof a[this.Ah]?this.Sm:a[this.Ah]};f.prototype.Hb=function(){!this.parent||this.ek||this.Ym||this.Sf(this.Sm)};Xb=f;m.prototype.toString=
function(){return"include:"+this.Vj.toString()};m.prototype.wb=function(){this.Vj=this.b.wp[this.TC];this.sheet.Wt.add(this);this.la=n(this.la);for(var a=this.parent;a;)a.group&&a.hm.push(this),a=a.parent;this.mw()};m.prototype.Hb=function(){this.parent&&this.b.Rk(this.b.L);this.Vj.Up||this.Vj.Hb(!0);this.parent&&this.b.wd(this.b.L)};m.prototype.mw=function(){for(var a=this.parent;a;){if(a.group&&!a.dh){this.gc=!1;return}a=a.parent}this.gc=!0};hc=m;r.prototype.reset=function(a){this.hb=a;this.Jc=
this.Cb=0;E(this.$v);this.up=this.rh=!1};r.prototype.Wm=function(){return this.hb.or?!0:this.Cb<this.hb.Nb.length-1?!!this.hb.la.length:!1};Wb=r})();
(function(){function c(c,b){this.Nd=c;this.b=c.b;this.type=b[0];this.get=[this.OB,this.KB,this.XB,this.$B,this.yB,this.YB,this.SB,this.HB,this.RB,this.WB,this.zB,this.VB,this.IB,this.TB,this.PB,this.QB,this.LB,this.MB,this.GB,this.ZB,this.UB,this.NB,this.EB,this.JB][this.type];var e=null;this.If=this.ca=this.pb=this.kc=this.oo=this.second=this.first=this.value=null;this.fe=-1;this.le=null;this.xw=-1;this.Xg=this.tl=null;this.Yi=!1;switch(this.type){case 0:case 1:case 2:this.value=b[1];break;case 3:this.first=
new fc(c,b[1]);break;case 18:this.first=new fc(c,b[1]);this.second=new fc(c,b[2]);this.oo=new fc(c,b[3]);break;case 19:this.kc=this.b.dg(b[1]);this.kc!==I.prototype.C.random&&this.kc!==I.prototype.C.Xs||this.Nd.Lv();this.pb=[];this.ca=[];3===b.length?(e=b[2],this.pb.length=e.length+1):this.pb.length=1;break;case 20:this.If=this.b.L[b[1]];this.fe=-1;this.kc=this.b.dg(b[2]);this.Yi=b[3];tc&&this.kc===tc.prototype.C.Rr&&this.Nd.Lv();b[4]?this.le=new fc(c,b[4]):this.le=null;this.pb=[];this.ca=[];6===
b.length?(e=b[5],this.pb.length=e.length+1):this.pb.length=1;break;case 21:this.If=this.b.L[b[1]];this.Yi=b[2];b[3]?this.le=new fc(c,b[3]):this.le=null;this.xw=b[4];break;case 22:this.If=this.b.L[b[1]];this.If.Mm(b[2]);this.fe=this.If.Dp(b[2]);this.kc=this.b.dg(b[3]);this.Yi=b[4];b[5]?this.le=new fc(c,b[5]):this.le=null;this.pb=[];this.ca=[];7===b.length?(e=b[6],this.pb.length=e.length+1):this.pb.length=1;break;case 23:this.tl=b[1],this.Xg=null}this.Nd.uD(this.If);4<=this.type&&17>=this.type&&(this.first=
new fc(c,b[1]),this.second=new fc(c,b[2]));if(e){var d,a;d=0;for(a=e.length;d<a;d++)this.ca.push(new fc(c,e[d]))}}function p(){++k;l.length===k&&l.push(new ec);return l[k]}function n(c,b,e){var d,a;d=0;for(a=c.length;d<a;++d)c[d].get(e),b[d+1]=e.data}function g(c,b){this.type=c||ic.Rh;this.data=b||0;this.Dh=null;this.type==ic.Rh&&(this.data=Math.floor(this.data))}c.prototype.wb=function(){23===this.type&&(this.Xg=this.Nd.b.It(this.tl,this.Nd.kd.parent));this.first&&this.first.wb();this.second&&this.second.wb();
this.oo&&this.oo.wb();this.le&&this.le.wb();if(this.ca){var c,b;c=0;for(b=this.ca.length;c<b;c++)this.ca[c].wb()}};var l=[],k=-1;c.prototype.ZB=function(c){var b=this.ca,e=this.pb;e[0]=c;c=p();n(b,e,c);--k;this.kc.apply(this.b.cf,e)};c.prototype.UB=function(c){var b=this.If,e=this.pb,d=this.ca,a=this.le,f=this.kc,g=this.Nd.Uf,l=b.R(),F=l.$b();if(!F.length)if(l.ea.length)F=l.ea;else{this.Yi?c.Ta(""):c.O(0);return}e[0]=c;c.Dh=b;c=p();n(d,e,c);a&&(a.get(c),c.cc()&&(g=c.data,F=b.n));--k;b=F.length;if(g>=
b||g<=-b)g%=b;0>g&&(g+=b);f.apply(F[g],e)};c.prototype.EB=function(c){var b=this.If,e=this.pb,d=this.ca,a=this.le,f=this.fe,g=this.kc,l=this.Nd.Uf,F=b.R(),z=F.$b();if(!z.length)if(F.ea.length)z=F.ea;else{this.Yi?c.Ta(""):c.O(0);return}e[0]=c;c.Dh=b;c=p();n(d,e,c);a&&(a.get(c),c.cc()&&(l=c.data,z=b.n));--k;d=z.length;if(l>=d||l<=-d)l%=d;0>l&&(l+=d);l=z[l];z=0;b.S&&(z=l.type.ji[b.vf]);g.apply(l.X[f+z],e)};c.prototype.NB=function(c){var b=this.le,e=this.If,d=this.xw,a=this.Nd.Uf,f=e.R(),g=f.$b();if(!g.length)if(f.ea.length)g=
f.ea;else{this.Yi?c.Ta(""):c.O(0);return}if(b){f=p();b.get(f);if(f.cc()){a=f.data;g=e.n;0!==g.length&&(a%=g.length,0>a&&(a+=g.length));a=e.Ip(a);e=a.Rb[d];ia(e)?c.Ta(e):c.H(e);--k;return}--k}b=g.length;if(a>=b||a<=-b)a%=b;0>a&&(a+=b);a=g[a];g=0;e.S&&(g=a.type.Bm[e.vf]);e=a.Rb[d+g];ia(e)?c.Ta(e):c.H(e)};c.prototype.OB=function(c){c.type=ic.Rh;c.data=this.value};c.prototype.KB=function(c){c.type=ic.Qh;c.data=this.value};c.prototype.XB=function(c){c.type=ic.String;c.data=this.value};c.prototype.$B=function(c){this.first.get(c);
c.cc()&&(c.data=-c.data)};c.prototype.yB=function(c){this.first.get(c);var b=p();this.second.get(b);c.cc()&&b.cc()&&(c.data+=b.data,b.yi()&&c.Li());--k};c.prototype.YB=function(c){this.first.get(c);var b=p();this.second.get(b);c.cc()&&b.cc()&&(c.data-=b.data,b.yi()&&c.Li());--k};c.prototype.SB=function(c){this.first.get(c);var b=p();this.second.get(b);c.cc()&&b.cc()&&(c.data*=b.data,b.yi()&&c.Li());--k};c.prototype.HB=function(c){this.first.get(c);var b=p();this.second.get(b);c.cc()&&b.cc()&&(c.data/=
b.data,c.Li());--k};c.prototype.RB=function(c){this.first.get(c);var b=p();this.second.get(b);c.cc()&&b.cc()&&(c.data%=b.data,b.yi()&&c.Li());--k};c.prototype.WB=function(c){this.first.get(c);var b=p();this.second.get(b);c.cc()&&b.cc()&&(c.data=Math.pow(c.data,b.data),b.yi()&&c.Li());--k};c.prototype.zB=function(c){this.first.get(c);var b=p();this.second.get(b);b.Di()||c.Di()?this.BB(c,b):this.AB(c,b);--k};c.prototype.BB=function(c,b){c.Di()&&b.Di()?this.DB(c,b):this.CB(c,b)};c.prototype.DB=function(c,
b){c.data+=b.data};c.prototype.CB=function(c,b){c.Di()?c.data+=(Math.round(1E10*b.data)/1E10).toString():c.Ta(c.data.toString()+b.data)};c.prototype.AB=function(c,b){c.O(c.data&&b.data?1:0)};c.prototype.VB=function(c){this.first.get(c);var b=p();this.second.get(b);c.cc()&&b.cc()&&(c.data||b.data?c.O(1):c.O(0));--k};c.prototype.GB=function(c){this.first.get(c);c.data?this.second.get(c):this.oo.get(c)};c.prototype.IB=function(c){this.first.get(c);var b=p();this.second.get(b);c.O(c.data===b.data?1:0);
--k};c.prototype.TB=function(c){this.first.get(c);var b=p();this.second.get(b);c.O(c.data!==b.data?1:0);--k};c.prototype.PB=function(c){this.first.get(c);var b=p();this.second.get(b);c.O(c.data<b.data?1:0);--k};c.prototype.QB=function(c){this.first.get(c);var b=p();this.second.get(b);c.O(c.data<=b.data?1:0);--k};c.prototype.LB=function(c){this.first.get(c);var b=p();this.second.get(b);c.O(c.data>b.data?1:0);--k};c.prototype.MB=function(c){this.first.get(c);var b=p();this.second.get(b);c.O(c.data>=
b.data?1:0);--k};c.prototype.JB=function(c){var b=this.Xg.bh();A(b)?c.H(b):c.Ta(b)};fc=c;g.prototype.yi=function(){return this.type===ic.Qh};g.prototype.cc=function(){return this.type===ic.Rh||this.type===ic.Qh};g.prototype.Di=function(){return this.type===ic.String};g.prototype.Li=function(){this.yi()||(this.Di()&&(this.data=parseFloat(this.data)),this.type=ic.Qh)};g.prototype.O=function(c){this.type=ic.Rh;this.data=Math.floor(c)};g.prototype.H=function(c){this.type=ic.Qh;this.data=c};g.prototype.Ta=
function(c){this.type=ic.String;this.data=c};g.prototype.Ih=function(c){A(c)?(this.type=ic.Qh,this.data=c):ia(c)?(this.type=ic.String,this.data=c.toString()):(this.type=ic.Rh,this.data=0)};ec=g;ic={Rh:0,Qh:1,String:2}})();function I(c){this.b=c;this.Sc=[]}
I.prototype.za=function(){var c={},p,n,g,l,k,h,b,e;c.waits=[];var d=c.waits,a;p=0;for(n=this.Sc.length;p<n;p++){h=this.Sc[p];a={t:h.time,st:h.Tv,s:h.nr,ev:h.hi.ta,sm:[],sols:{}};h.hi.Bd[h.Jc]&&(a.act=h.hi.Bd[h.Jc].ta);g=0;for(l=h.la.length;g<l;g++)a.sm.push(h.la[g].ta);for(k in h.Gc)if(h.Gc.hasOwnProperty(k)){b=this.b.L[parseInt(k,10)];e={sa:h.Gc[k].Rn,insts:[]};g=0;for(l=h.Gc[k].Af.length;g<l;g++)e.insts.push(h.Gc[k].Af[g].uid);a.sols[b.ta.toString()]=e}d.push(a)}return c};
I.prototype.Ka=function(c){c=c.waits;var p,n,g,l,k,h,b,e,d,a,f;E(this.Sc);p=0;for(n=c.length;p<n;p++)if(h=c[p],e=this.b.Qs[h.ev.toString()]){d=-1;g=0;for(l=e.Bd.length;g<l;g++)if(e.Bd[g].ta===h.act){d=g;break}if(-1!==d){b={Gc:{},la:[],qp:!1};b.time=h.t;b.Tv=h.st||"";b.nr=!!h.s;b.hi=e;b.Jc=d;g=0;for(l=h.sm.length;g<l;g++)(e=this.b.Pj(h.sm[g]))&&b.la.push(e);for(k in h.sols)if(h.sols.hasOwnProperty(k)&&(e=this.b.Pj(parseInt(k,10)))){d=h.sols[k];a={Rn:d.sa,Af:[]};g=0;for(l=d.insts.length;g<l;g++)(f=
this.b.ni(d.insts[g]))&&a.Af.push(f);b.Gc[e.index.toString()]=a}this.Sc.push(b)}}};
(function(){function c(){}function p(b,a){var c=b.U.c2_feo_val,e=a.U.c2_feo_val;if(A(c)&&A(e))return c-e;c=""+c;e=""+e;return c<e?-1:c>e?1:0}function n(){}function g(){}var l=I.prototype;c.prototype.ix=function(){return!0};c.prototype.js=function(){return!0};c.prototype.By=function(){return!0};c.prototype.Qw=function(b,a,c){return jc(b,a,c)};c.prototype.fz=function(b){var a=this.b.eb(),c=a.hb,e=a.Wm(),a=this.b.Ln();if(e)for(e=0;e<b&&!a.Ya;e++)this.b.We(c.la),a.index=e,c.Od(),this.b.wd(c.la);else for(e=
0;e<b&&!a.Ya;e++)a.index=e,c.Od();this.b.Fn();return!1};c.prototype.kx=function(b,a,c){var e=this.b.eb(),h=e.hb,e=e.Wm();b=this.b.Ln(b);if(c<a)if(e)for(;a>=c&&!b.Ya;--a)this.b.We(h.la),b.index=a,h.Od(),this.b.wd(h.la);else for(;a>=c&&!b.Ya;--a)b.index=a,h.Od();else if(e)for(;a<=c&&!b.Ya;++a)this.b.We(h.la),b.index=a,h.Od(),this.b.wd(h.la);else for(;a<=c&&!b.Ya;++a)b.index=a,h.Od();this.b.Fn();return!1};var k=[],h=-1;c.prototype.mx=function(b){var a=b.R();h++;k.length===h&&k.push([]);var c=k[h];Fa(c,
a.$b());var e=this.b.eb(),g=e.hb,l=e.Wm(),e=this.b.Ln(),p,n,q,u,B,H,t=b.lc;if(l)for(l=0,p=c.length;l<p&&!e.Ya;l++){this.b.We(g.la);u=c[l];a=b.R();a.W=!1;E(a.n);a.n[0]=u;if(t)for(n=0,q=u.siblings.length;n<q;n++)B=u.siblings[n],H=B.type.R(),H.W=!1,E(H.n),H.n[0]=B;e.index=l;g.Od();this.b.wd(g.la)}else for(a.W=!1,E(a.n),l=0,p=c.length;l<p&&!e.Ya;l++){u=c[l];a.n[0]=u;if(t)for(n=0,q=u.siblings.length;n<q;n++)B=u.siblings[n],H=B.type.R(),H.W=!1,E(H.n),H.n[0]=B;e.index=l;g.Od()}E(c);this.b.Fn();h--;return!1};
c.prototype.nx=function(b,a,c){a=b.R();h++;k.length===h&&k.push([]);var e=k[h];Fa(e,a.$b());var g=this.b.eb(),l=g.hb,n=this.b.xf(),w=g.Wm(),g=this.b.Ln(),q,u,B,H,t;q=0;for(u=e.length;q<u;q++)e[q].U.c2_feo_val=n.ca[1].get(q);e.sort(p);1===c&&e.reverse();c=b.lc;if(w)for(q=0,u=e.length;q<u&&!g.Ya;q++){this.b.We(l.la);B=e[q];a=b.R();a.W=!1;E(a.n);a.n[0]=B;if(c)for(n=0,w=B.siblings.length;n<w;n++)H=B.siblings[n],t=H.type.R(),t.W=!1,E(t.n),t.n[0]=H;g.index=q;l.Od();this.b.wd(l.la)}else for(a.W=!1,E(a.n),
q=0,u=e.length;q<u&&!g.Ya;q++){B=e[q];a.n[0]=B;if(c)for(n=0,w=B.siblings.length;n<w;n++)H=B.siblings[n],t=H.type.R(),t.W=!1,E(t.n),t.n[0]=H;g.index=q;l.Od()}E(e);this.b.Fn();h--;return!1};c.prototype.Yy=function(b,a,c,e){var g,l,p,n;if(b){h++;k.length===h&&k.push([]);var q=k[h],u=b.R();Fa(q,u.$b());u.W&&E(u.ea);var B=this.b.xf();p=g=0;for(l=q.length;g<l;g++)n=q[g],q[p]=n,a=B.ca[1].get(g),e=B.ca[3].get(g),jc(a,c,e)?p++:u.ea.push(n);Ea(q,p);u.W=!1;Fa(u.n,q);E(q);h--;b.Uc();return!!u.n.length}};c.prototype.Zy=
function(b,a){var c,e,g,l;if(b){h++;k.length===h&&k.push([]);var p=k[h],n=b.R();Fa(p,n.$b());n.W&&E(n.ea);var q=this.b.xf();g=c=0;for(e=p.length;c<e;c++)l=p[c],p[g]=l,(a=q.ca[1].get(c))?g++:n.ea.push(l);Ea(p,g);n.W=!1;Fa(n.n,p);E(p);h--;b.Uc();return!!n.n.length}};c.prototype.eA=function(){var b=this.b.xf().U;"undefined"===typeof b.TriggerOnce_lastTick&&(b.TriggerOnce_lastTick=-1);var a=b.TriggerOnce_lastTick,c=this.b.Qc;b.TriggerOnce_lastTick=c;return this.b.nq||a!==c-1};c.prototype.hx=function(b){var a=
this.b.xf(),c=a.U.Every_lastTime||0,e=this.b.tb.ba;"undefined"===typeof a.U.Every_seconds&&(a.U.Every_seconds=b);var h=a.U.Every_seconds;if(e>=c+h)return a.U.Every_lastTime=c+h,e>=a.U.Every_lastTime+.04&&(a.U.Every_lastTime=e),a.U.Every_seconds=b,!0;e<c-.1&&(a.U.Every_lastTime=e);return!1};c.prototype.Yw=function(b,a,c){return jc(b.bh(),a,c)};c.prototype.Fx=function(b){return(b=this.b.pi[b.toLowerCase()])&&b.dh};c.prototype.Sw=function(b,a,c){return b>=a&&b<=c};c.prototype.Ur=function(){var b=this.b.eb();
return b.up?!1:!b.rh};c.prototype.ks=function(){return!0};c.prototype.iy=function(){return!0};c.prototype.Go=function(){return!0};c.prototype.ws=function(){return!0};c.prototype.Cy=function(){return!0};c.prototype.Kl=function(){return!0};c.prototype.Pr=function(b,a,c){return Sa(G(b),G(c))<=G(a)};c.prototype.Cx=function(b,a){return Ua(G(b),G(a))};c.prototype.Ax=function(b,a,c){b=Qa(b);a=Qa(a);c=Qa(c);return Ua(c,a)?Ua(b,a)&&!Ua(b,c):!(!Ua(b,a)&&Ua(b,c))};l.j=new c;n.prototype.rx=function(b){this.b.fk||
this.b.Bj||(this.b.Bj=b)};n.prototype.bx=function(b,a,c,e){if(a&&b&&(a=this.b.km(b,a,c,e))){this.b.qd++;var h;this.b.trigger(Object.getPrototypeOf(b.V).j.Sh,a);if(a.lc)for(c=0,e=a.siblings.length;c<e;c++)h=a.siblings[c],this.b.trigger(Object.getPrototypeOf(h.type.V).j.Sh,h);this.b.qd--;b=b.R();b.W=!1;E(b.n);b.n[0]=a;if(a.lc)for(c=0,e=a.siblings.length;c<e;c++)h=a.siblings[c],b=h.type.R(),b.W=!1,E(b.n),b.n[0]=h}};n.prototype.Ez=function(b,a){b&&b.visible!==a&&(b.visible=a,this.b.N=!0)};n.prototype.Cz=
function(b,a){b&&(a=La(a/100,0,1),b.opacity!==a&&(b.opacity=a,this.b.N=!0))};n.prototype.Qz=function(b,a){0===b.ul?A(a)?b.Sf(a):b.Sf(parseFloat(a)):1===b.ul&&b.Sf(a.toString())};n.prototype.Fw=function(b,a){0===b.ul?A(a)?b.Sf(b.bh()+a):b.Sf(b.bh()+parseFloat(a)):1===b.ul&&b.Sf(b.bh()+a.toString())};n.prototype.bA=function(b,a){0===b.ul&&(A(a)?b.Sf(b.bh()-a):b.Sf(b.bh()-parseFloat(a)))};n.prototype.yz=function(b,a){var c=this.b.pi[b.toLowerCase()];if(c)switch(a){case 0:c.Wn(!1);break;case 1:c.Wn(!0);
break;case 2:c.Wn(!c.dh)}};n.prototype.Oz=function(b){0>b&&(b=0);this.b.df=b};var b=[],e=[];n.prototype.hA=function(d){if(!(0>d)){var a,c,h,g=this.b.eb(),l;b.length?l=b.pop():l={Gc:{},la:[]};l.qp=!1;l.time=this.b.tb.ba+d;l.Tv="";l.nr=!1;l.hi=g.hb;l.Jc=g.Jc+1;d=0;for(a=this.b.L.length;d<a;d++)h=this.b.L[d],c=h.R(),c.W&&-1===g.hb.la.indexOf(h)||(l.la.push(h),h=void 0,e.length?h=e.pop():h={Af:[]},h.Rn=!1,h.Rn=c.W,Fa(h.Af,c.n),l.Gc[d.toString()]=h);this.Sc.push(l);return!0}};n.prototype.iz=function(){var b,
a,c;b=0;for(a=this.b.Xo.length;b<a;b++)c=this.b.Xo[b],c.data=c.Sm};n.prototype.Fz=function(b){b=G(b);b=Oa(b);this.b.ua&&this.b.ua.u!==b&&(this.b.ua.u=b,this.b.N=!0)};n.prototype.Dz=function(b,a,c){if(b&&(b.pc!==a/100||b.qc!==c/100)){b.pc=a/100;b.qc=c/100;if(1!==b.pc||1!==b.qc)for(c=b.n,b=0,a=c.length;b<a;++b)c[b].type.vj=!0;this.b.N=!0}};l.q=new n;g.prototype["int"]=function(b,a){ia(a)?(b.O(parseInt(a,10)),isNaN(b.data)&&(b.data=0)):b.O(a)};g.prototype["float"]=function(b,a){ia(a)?(b.H(parseFloat(a)),
isNaN(b.data)&&(b.data=0)):b.H(a)};g.prototype.mD=function(b,a){b.O(a.length||0)};g.prototype.random=function(b,a,c){void 0===c?b.H(Math.random()*a):b.H(Math.random()*(c-a)+a)};g.prototype.sqrt=function(b,a){b.H(Math.sqrt(a))};g.prototype.abs=function(b,a){b.H(Math.abs(a))};g.prototype.round=function(b,a){b.O(Math.round(a))};g.prototype.floor=function(b,a){b.O(Math.floor(a))};g.prototype.ceil=function(b,a){b.O(Math.ceil(a))};g.prototype.sin=function(b,a){b.H(Math.sin(G(a)))};g.prototype.cos=function(b,
a){b.H(Math.cos(G(a)))};g.prototype.tan=function(b,a){b.H(Math.tan(G(a)))};g.prototype.asin=function(b,a){b.H(Ma(Math.asin(a)))};g.prototype.acos=function(b,a){b.H(Ma(Math.acos(a)))};g.prototype.atan=function(b,a){b.H(Ma(Math.atan(a)))};g.prototype.exp=function(b,a){b.H(Math.exp(a))};g.prototype.log10=function(b,a){b.H(Math.log(a)/Math.LN10)};g.prototype.max=function(b){var a=arguments[1];"number"!==typeof a&&(a=0);var c,e,h;c=2;for(e=arguments.length;c<e;c++)h=arguments[c],"number"===typeof h&&a<
h&&(a=h);b.H(a)};g.prototype.min=function(b){var a=arguments[1];"number"!==typeof a&&(a=0);var c,e,h;c=2;for(e=arguments.length;c<e;c++)h=arguments[c],"number"===typeof h&&a>h&&(a=h);b.H(a)};g.prototype.rg=function(b){b.H(this.b.rg)};g.prototype.df=function(b){b.H(this.b.df)};g.prototype.time=function(b){b.H(this.b.tb.ba)};g.prototype.Qc=function(b){b.O(this.b.Qc)};g.prototype.rn=function(b){b.O(this.b.rn)};g.prototype.Ap=function(b){b.O(this.b.Ap)};g.prototype.rD=function(b,a){var c,e;if(this.b.sk.length)if(a){for(e=
this.b.tk;0<=e;--e)if(c=this.b.sk[e],c.name===a){b.O(c.index);return}b.O(0)}else c=this.b.Ft(),b.O(c?c.index:-1);else b.O(0)};g.prototype.UA=function(b,a,c,e,h){b.H(Wa(a,c,e,h))};g.prototype.u=function(b,a,c,e,h){b.H(Ma(Ra(a,c,e,h)))};g.prototype.Qi=function(b){b.Ta("\n")};g.prototype.iD=function(b,a){var c=this.b.Oj(a);c?b.H(100*c.opacity):b.H(0)};g.prototype.lD=function(b){b.O(this.b.ua.width)};g.prototype.jD=function(b){b.O(this.b.ua.height)};g.prototype.left=function(b,a,c){b.Ta(ia(a)?a.substr(0,
c):"")};g.prototype.right=function(b,a,c){b.Ta(ia(a)?a.substr(a.length-c):"")};g.prototype.replace=function(b,a,c,e){ia(a)&&ia(c)&&ia(e)?b.Ta(a.replace(new RegExp(fb(c),"gi"),e)):b.Ta(ia(a)?a:"")};g.prototype.trim=function(b,a){b.Ta(ia(a)?a.trim():"")};g.prototype.kD=function(b){this.b.ua?b.Ta(this.b.ua.name):b.Ta("")};g.prototype.Xs=function(b){var a=ta(Math.random()*(arguments.length-1));b.Ih(arguments[a+1])};g.prototype.hE=function(b,a,c,e){b.O(ya(a,c,e))};g.prototype.VD=function(b){b.Ta(this.b.NE)};
g.prototype.UE=function(b,a,c){var e=0>a?"-":"";0>a&&(a=-a);c=c-a.toString().length;for(var h=0;h<c;h++)e+="0";b.Ta(e+a.toString())};g.prototype.lp=function(b){b.H(this.b.lp/1E3)};g.prototype.PE=function(b,a){var c=this.b.Oj(a);b.H(c?c.Fa:0)};g.prototype.RE=function(b,a){var c=this.b.Oj(a);b.H(c?c.Ga:0)};g.prototype.QE=function(b,a){var c=this.b.Oj(a);b.H(c?c.Pa:0)};g.prototype.OE=function(b,a){var c=this.b.Oj(a);b.H(c?c.Oa:0)};g.prototype.Ji=function(b){b.H(this.b.Ji)};l.C=new g;l.iE=function(){var d,
a,c,h,g,l,k=this.b.eb();d=0;for(c=this.Sc.length;d<c;d++){h=this.Sc[d];if(-1===h.time){if(!h.nr)continue}else if(h.time>this.b.tb.ba)continue;k.hb=h.hi;k.Jc=h.Jc;k.Cb=0;for(a in h.Gc)h.Gc.hasOwnProperty(a)&&(g=this.b.L[parseInt(a,10)].R(),l=h.Gc[a],g.W=l.Rn,Fa(g.n,l.Af),g=l,E(g.Af),e.push(g));h.hi.gE();this.b.jp(h.la);h.qp=!0}a=d=0;for(c=this.Sc.length;d<c;d++)h=this.Sc[d],this.Sc[a]=h,h.qp?(Za(h.Gc),E(h.la),b.push(h)):a++;Ea(this.Sc,a)}})();
(function(){ub=function(c,n){var g=c[1],l=c[3],k=c[4],h=c[5],b=c[6],e=c[7],d=c[8];n.j||(n.j={});n.q||(n.q={});n.C||(n.C={});var a=n.j,f=n.q,m=n.C;l&&(a.Dl=function(a,b){return jc(this.x,a,b)},a.Tr=function(a,b){return jc(this.y,a,b)},a.Hx=function(){var a=this.A;this.Aa();var b=this.ab;return!(b.right<a.Fa||b.bottom<a.Ga||b.left>a.Pa||b.top>a.Oa)},a.bF=function(){this.Aa();var a=this.ab,b=this.b.ua;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},a.az=function(a,b,d){var c=this.R(),e=
c.$b();if(!e.length)return!1;var f=e[0],h=f,g=Wa(f.x,f.y,b,d),l,k,m;l=1;for(k=e.length;l<k;l++)if(f=e[l],m=Wa(f.x,f.y,b,d),0===a&&m<g||1===a&&m>g)g=m,h=f;c.Lk(h);return!0},f.Po=function(a){this.x!==a&&(this.x=a,this.T())},f.Uz=function(a){this.y!==a&&(this.y=a,this.T())},f.Mo=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.T()},f.Iz=function(a,b){var d=a.sC(this);if(d){var c;d.ah?(c=d.ah(b,!0),d=d.ah(b,!1)):(c=d.x,d=d.y);if(this.x!==c||this.y!==d)this.x=c,this.y=d,this.T()}},f.eF=function(a){0!==
a&&(this.x+=Math.cos(this.u)*a,this.y+=Math.sin(this.u)*a,this.T())},f.Tx=function(a,b){0!==b&&(this.x+=Math.cos(G(a))*b,this.y+=Math.sin(G(a))*b,this.T())},m.Vh=function(a){a.H(this.x)},m.Wh=function(a){a.H(this.y)},m.rg=function(a){a.H(this.b.Ke(this))});k&&(a.Zw=function(a,b){return jc(this.width,a,b)},a.Vw=function(a,b){return jc(this.height,a,b)},f.Ol=function(a){this.width!==a&&(this.width=a,this.T())},f.zz=function(a){this.height!==a&&(this.height=a,this.T())},f.Ml=function(a,b){if(this.width!==
a||this.height!==b)this.width=a,this.height=b,this.T()},m.Ro=function(a){a.H(this.width)},m.Do=function(a){a.H(this.height)},m.WE=function(a){this.Aa();a.H(this.ab.left)},m.YE=function(a){this.Aa();a.H(this.ab.top)},m.XE=function(a){this.Aa();a.H(this.ab.right)},m.VE=function(a){this.Aa();a.H(this.ab.bottom)});h&&(a.Pr=function(a,b){return Sa(this.u,G(b))<=G(a)},a.Cx=function(a){return Ua(this.u,G(a))},a.Ax=function(a,b){var d=Qa(a),c=Qa(b),e=Oa(this.u);return Ua(c,d)?Ua(e,d)&&!Ua(e,c):!(!Ua(e,d)&&
Ua(e,c))},f.oz=function(a){a=G(Na(a));isNaN(a)||this.u===a||(this.u=a,this.T())},f.kF=function(a){0===a||isNaN(a)||(this.u+=G(a),this.u=Oa(this.u),this.T())},f.lF=function(a){0===a||isNaN(a)||(this.u-=G(a),this.u=Oa(this.u),this.T())},f.kz=function(a,b){var d=Ta(this.u,G(b),G(a));isNaN(d)||this.u===d||(this.u=d,this.T())},f.lz=function(a,b,d){a=Ta(this.u,Math.atan2(d-this.y,b-this.x),G(a));isNaN(a)||this.u===a||(this.u=a,this.T())},f.Pz=function(a,b){var d=Math.atan2(b-this.y,a-this.x);isNaN(d)||
this.u===d||(this.u=d,this.T())},m.Gw=function(a){a.H(Pa(this.u))});g||(a.Cl=function(a,b,d){return jc(this.Rb[a],b,d)},a.$E=function(a){return this.Rb[a]},a.hF=function(a,b){var d=this.R(),c=d.$b();if(!c.length)return!1;var e=c[0],f=e,h=e.Rb[b],g,l,k;g=1;for(l=c.length;g<l;g++)if(e=c[g],k=e.Rb[b],0===a&&k<h||1===a&&k>h)h=k,f=e;d.Lk(f);return!0},a.$y=function(a){var b,d,c,e,f;if(this.b.xf().si){f=this.R();if(f.W)for(f.W=!1,E(f.n),E(f.ea),c=this.n,b=0,d=c.length;b<d;b++)e=c[b],e.uid===a?f.ea.push(e):
f.n.push(e);else{c=b=0;for(d=f.n.length;b<d;b++)e=f.n[b],f.n[c]=e,e.uid===a?f.ea.push(e):c++;Ea(f.n,c)}this.Uc();return!!f.n.length}e=this.b.ni(a);if(!e)return!1;f=this.R();if(!f.W&&-1===f.n.indexOf(e))return!1;if(this.S)for(a=e.type.kb,b=0,d=a.length;b<d;b++){if(a[b]===this)return f.Lk(e),this.Uc(),!0}else if(e.type===this)return f.Lk(e),this.Uc(),!0;return!1},a.Sh=function(){return!0},a.Zr=function(){return!0},f.As=function(a,b){var d=this.Rb;A(d[a])?d[a]=A(b)?b:parseFloat(b):ia(d[a])&&(d[a]=ia(b)?
b:b.toString())},f.Bw=function(a,b){var d=this.Rb;A(d[a])?d[a]=A(b)?d[a]+b:d[a]+parseFloat(b):ia(d[a])&&(d[a]=ia(b)?d[a]+b:d[a]+b.toString())},f.Bs=function(a,b){var d=this.Rb;A(d[a])&&(d[a]=A(b)?d[a]-b:d[a]-parseFloat(b))},f.mF=function(a,b){this.Rb[a]=b?1:0},f.nF=function(a){this.Rb[a]=1-this.Rb[a]},f.El=function(){this.b.hf(this)},f.Qx||(f.Qx=function(a){var b,d;try{b=JSON.parse(a)}catch(c){return}this.b.gn(this,b,!0);this.$d&&this.$d();if(this.X)for(a=0,b=this.X.length;a<b;++a)d=this.X[a],d.$d&&
d.$d()}),m.ax=function(a){var b=a.Dh.n.length,d,c,e;d=0;for(c=this.b.ie.length;d<c;d++)e=this.b.ie[d],a.Dh.S?0<=e.type.kb.indexOf(a.Dh)&&b++:e.type===a.Dh&&b++;a.O(b)},m.jF=function(a){a.O(a.Dh.R().$b().length)},m.fA=function(a){a.O(this.uid)},m.ZE=function(a){a.O(this.Rj())},m.Og||(m.Og=function(a){a.Ta(JSON.stringify(this.b.gr(this,!0)))}));b&&(a.Eo=function(){return this.visible},f.Nl=function(a){!a!==!this.visible&&(this.visible=!!a,this.b.N=!0)},a.Ww=function(a,b){return jc(qb(100*this.opacity),
a,b)},f.Gz=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.N=!0)},m.Opacity=function(a){a.H(qb(100*this.opacity))});e&&(a.aF=function(a){return a?this.A===a:!1},a.iF=function(a){var b=this.R(),d=b.$b();if(!d.length)return!1;var c=d[0],e=c,f,h;f=1;for(h=d.length;f<h;f++)if(c=d[f],0===a){if(c.A.index>e.A.index||c.A.index===e.A.index&&c.Id()>e.Id())e=c}else if(c.A.index<e.A.index||c.A.index===e.A.index&&c.Id()<e.Id())e=c;b.Lk(e);return!0},f.Wx=function(){var a=this.A,
b=a.n;b.length&&b[b.length-1]===this||(a.Wi(this,!1),a.xj(this,!1),this.b.N=!0)},f.Ux=function(){var a=this.A,b=a.n;b.length&&b[0]===this||(a.Wi(this,!1),a.SD(this),this.b.N=!0)},f.Vx=function(a){a&&a!=this.A&&(this.A.Wi(this,!0),this.A=a,a.xj(this,!0),this.b.N=!0)},f.lA=function(a,b){var d=0===a;if(b){var c=b.Jt(this);c&&c.uid!==this.uid&&(this.A.index!==c.A.index&&(this.A.Wi(this,!0),this.A=c.A,c.A.xj(this,!0)),this.A.vD(this,c,d),this.b.N=!0)}},m.dF=function(a){a.O(this.A.Uu)},m.cF=function(a){a.Ta(this.A.name)},
m.qF=function(a){a.O(this.Id())});d&&(f.vz=function(a,b){if(this.b.F){var d=this.type.Gp(b);if(!(0>d)){var c=1===a;this.fg[d]!==c&&(this.fg[d]=c,this.ze(),this.b.N=!0)}}},f.Ko=function(a,b,d){if(this.b.F){var c=this.type.Gp(a);0>c||(a=this.type.ka[c],c=this.nb[c],b=Math.floor(b),0>b||b>=c.length||(1===this.b.F.wC(a.Ib,b)&&(d/=100),c[b]!==d&&(c[b]=d,a.gc&&(this.b.N=!0))))}})};Ob=function(){this.gp=this.bp=!0;this.type.Zl=!0;this.b.N=!0;var c,n,g=this.cp;c=0;for(n=g.length;c<n;++c)g[c](this);this.A.Ad&&
this.Aa()};Pb=function(c){c&&this.cp.push(c)};Rb=function(){if(this.bp){var c=this.ab,n=this.mb;c.set(this.x,this.y,this.x+this.width,this.y+this.height);c.offset(-this.Ac*this.width,-this.Bc*this.height);this.u?(c.offset(-this.x,-this.y),n.Nv(c,this.u),n.offset(this.x,this.y),n.Ss(c)):n.Zk(c);c.normalize();this.bp=!1;this.JE()}};var c=new wa(0,0,0,0);Sb=function(){if(this.A.Ad){var p=this.A.rc,n=this.ab;c.set(p.Hc(n.left),p.Ic(n.top),p.Hc(n.right),p.Ic(n.bottom));this.Mc.Gj(c)||(this.Mc.right<this.Mc.left?
p.update(this,null,c):p.update(this,this.Mc,c),this.Mc.lg(c),this.A.ve=!0)}};Tb=function(){if(this.gp&&this.Dd){this.Aa();var p=this.type.Cj,n=this.ab;c.set(p.Hc(n.left),p.Ic(n.top),p.Hc(n.right),p.Ic(n.bottom));this.Cd.Gj(c)||(this.Cd.right<this.Cd.left?p.update(this,null,c):p.update(this,this.Cd,c),this.Cd.lg(c),this.gp=!1)}};Qb=function(c,n){return this.ab.hc(c,n)&&this.mb.hc(c,n)?this.Ia&&!this.Ia.xi()?(this.Ia.ai(this.width,this.height,this.u),this.Ia.hc(c-this.x,n-this.y)):!0:!1};Kb=function(){this.type.vo();
return this.gh};Ub=function(){this.A.Fr();return this.Ae};Vb=function(){E(this.Ba);var c,n,g,l=!0;c=0;for(n=this.fg.length;c<n;c++)this.fg[c]&&(g=this.type.ka[c],this.Ba.push(g),g.xd||(l=!1));this.ww=!!this.Ba.length;this.Tf=l};Lb=function(){return"Inst"+this.wv};xb=function(c){if(c&&c.lc&&c.type!=this){var n,g,l;n=0;for(g=c.siblings.length;n<g;n++)if(l=c.siblings[n],l.type==this)return l}c=this.R().$b();return c.length?c[0]:null};yb=function(c){var n=this.R().$b();return n.length?n[c.Rj()%n.length]:
null};wb=function(){if(this.bj&&!this.S){var c,n;c=0;for(n=this.n.length;c<n;c++)this.n[c].gh=c;var g=c,l=this.b.ie;c=0;for(n=l.length;c<n;++c)l[c].type===this&&(l[c].gh=g++);this.bj=!1}};Ib=function(c){if(c<this.n.length)return this.n[c];c-=this.n.length;var n=this.b.ie,g,l;g=0;for(l=n.length;g<l;++g)if(n[g].type===this){if(0===c)return n[g];--c}return null};zb=function(){return this.Vf[this.De]};Ab=function(){this.De++;this.De===this.Vf.length?this.Vf.push(new vb(this)):(this.Vf[this.De].W=!0,E(this.Vf[this.De].ea))};
Bb=function(){this.De++;this.De===this.Vf.length&&this.Vf.push(new vb(this));var c=this.Vf[this.De],n=this.Vf[this.De-1];n.W?(c.W=!0,E(c.ea)):(c.W=!1,Fa(c.n,n.n),Fa(c.ea,n.ea))};Cb=function(){this.De--};Db=function(c){var n,g,l,k,h,b=0;if(!this.S)for(n=0,g=this.kb.length;n<g;n++)for(h=this.kb[n],l=0,k=h.lb.length;l<k;l++){if(c===h.lb[l].name)return this.U.lastBehIndex=b,h.lb[l];b++}n=0;for(g=this.lb.length;n<g;n++){if(c===this.lb[n].name)return this.U.lastBehIndex=b,this.lb[n];b++}return null};Fb=
function(c){return this.Mm(c)?this.U.lastBehIndex:-1};Gb=function(c){var n,g;n=0;for(g=this.ka.length;n<g;n++)if(this.ka[n].name===c)return n;return-1};Hb=function(){if(this.lc&&!this.S){var c,n,g,l,k,h,b;this.vo();h=this.R();var e=h.W,d=(c=this.b.eb())&&c.hb&&c.hb.ud;c=0;for(n=this.Xc.length;c<n;c++)if(k=this.Xc[c],k!==this&&(k.vo(),b=k.R(),b.W=e,!e)){E(b.n);g=0;for(l=h.n.length;g<l;++g)b.n[g]=k.Ip(h.n[g].gh);if(d)for(E(b.ea),g=0,l=h.ea.length;g<l;++g)b.ea[g]=k.Ip(h.ea[g].gh)}}};Jb=function(){return"Type"+
this.ta};jc=function(c,n,g){if("undefined"===typeof c||"undefined"===typeof g)return!1;switch(n){case 0:return c===g;case 1:return c!==g;case 2:return c<g;case 3:return c<=g;case 4:return c>g;case 5:return c>=g;default:return!1}}})();
var rc={hsladjust:{src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nprecision mediump float;\nuniform float huerotate;\nuniform float satadjust;\nuniform float lumadjust;\nvec3 rgb_to_hsl(vec3 color)\n{\nvec3 hsl = vec3(0.0, 0.0, 0.0);\nfloat fmin = min(min(color.r, color.g), color.b);\nfloat fmax = max(max(color.r, color.g), color.b);\nfloat delta = fmax - fmin;\nhsl.z = (fmax + fmin) / 2.0;\nif (delta == 0.0)\n{\nhsl.x = 0.0;\nhsl.y = 0.0;\n}\nelse\n{\nif (hsl.z < 0.5)\nhsl.y = delta / (fmax + fmin);\nelse\nhsl.y = delta / (2.0 - fmax - fmin);\nfloat dR = (((fmax - color.r) / 6.0) + (delta / 2.0)) / delta;\nfloat dG = (((fmax - color.g) / 6.0) + (delta / 2.0)) / delta;\nfloat dB = (((fmax - color.b) / 6.0) + (delta / 2.0)) / delta;\nif (color.r == fmax)\nhsl.x = dB - dG;\nelse if (color.g == fmax)\nhsl.x = (1.0 / 3.0) + dR - dB;\nelse if (color.b == fmax)\nhsl.x = (2.0 / 3.0) + dG - dR;\nif (hsl.x < 0.0)\nhsl.x += 1.0;\nelse if (hsl.x > 1.0)\nhsl.x -= 1.0;\n}\nreturn hsl;\n}\nfloat hue_to_rgb(float f1, float f2, float hue)\n{\nif (hue < 0.0)\nhue += 1.0;\nelse if (hue > 1.0)\nhue -= 1.0;\nfloat ret;\nif ((6.0 * hue) < 1.0)\nret = f1 + (f2 - f1) * 6.0 * hue;\nelse if ((2.0 * hue) < 1.0)\nret = f2;\nelse if ((3.0 * hue) < 2.0)\nret = f1 + (f2 - f1) * ((2.0 / 3.0) - hue) * 6.0;\nelse\nret = f1;\nreturn ret;\n}\nvec3 hsl_to_rgb(vec3 hsl)\n{\nvec3 rgb = vec3(hsl.z);\nif (hsl.y != 0.0)\n{\nfloat f2;\nif (hsl.z < 0.5)\nf2 = hsl.z * (1.0 + hsl.y);\nelse\nf2 = (hsl.z + hsl.y) - (hsl.y * hsl.z);\nfloat f1 = 2.0 * hsl.z - f2;\nrgb.r = hue_to_rgb(f1, f2, hsl.x + (1.0 / 3.0));\nrgb.g = hue_to_rgb(f1, f2, hsl.x);\nrgb.b = hue_to_rgb(f1, f2, hsl.x - (1.0 / 3.0));\n}\nreturn rgb;\n}\nvoid main(void)\n{\nvec4 front = texture2D(samplerFront, vTex);\nvec3 rgb = rgb_to_hsl(front.rgb) + vec3(huerotate, 0, (lumadjust - 1.0) * front.a);\nrgb.y *= satadjust;\nrgb = hsl_to_rgb(rgb);\ngl_FragColor = vec4(rgb, front.a);\n}",Ij:0,
Jj:0,lm:!1,xd:!0,Yl:!1,ca:[["huerotate",0,1],["satadjust",0,1],["lumadjust",0,1]]},warpmask:{src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nuniform lowp sampler2D samplerBack;\nuniform mediump vec2 destStart;\nuniform mediump vec2 destEnd;\nuniform mediump float seconds;\nuniform mediump float pixelWidth;\nuniform mediump float pixelHeight;\nuniform mediump float layerScale;\nuniform mediump float freqX;\nuniform mediump float freqY;\nuniform mediump float ampX;\nuniform mediump float ampY;\nuniform mediump float speedX;\nuniform mediump float speedY;\nvoid main(void)\n{\nlowp float fronta = texture2D(samplerFront, vTex).a;\nmediump float boxLeft = 0.0;\nmediump float boxTop = 0.0;\nmediump float aspect = pixelHeight / pixelWidth;\nmediump vec2 p = mix(destStart, destEnd, vTex);\np.x += (cos((vTex.y - boxTop) * freqX / layerScale / (pixelWidth * 750.0) + (seconds * speedX)) * ampX * pixelWidth * layerScale) * fronta;\np.y += (sin((vTex.x - boxLeft) * freqY * aspect / layerScale / (pixelHeight * 750.0) + (seconds * speedY)) * ampY * pixelHeight * layerScale) * fronta;\ngl_FragColor = texture2D(samplerBack, p);\n}",
Ij:25,Jj:25,lm:!0,xd:!1,Yl:!0,ca:[["freqX",0,0],["freqY",0,0],["ampX",0,0],["ampY",0,0],["speedX",0,0],["speedY",0,0]]}};function uc(c){this.b=c}
(function(){function c(){return b.length?b.pop():[]}function p(c){var d,a;d=0;for(a=c.length;d<a;d++)Array.isArray(c[d])&&p(c[d]);E(c);b.push(c)}function n(){}function g(){}function l(){}var k=uc.prototype;k.J=function(b){this.V=b;this.b=b.b};k.J.prototype.G=function(){};k.I=function(b){this.type=b;this.b=b.b};var h=k.I.prototype,b=[];Array.isArray||(Array.isArray=function(b){return"[object Array]"===Object.prototype.toString.call(b)});h.G=function(){this.jc=this.B[0];this.Ec=this.B[1];this.Zc=this.B[2];
this.Yb||(this.de=c());var b=this.de;b.length=this.jc;var d,a,f;for(d=0;d<this.jc;d++)for(b[d]||(b[d]=c()),b[d].length=this.Ec,a=0;a<this.Ec;a++)for(b[d][a]||(b[d][a]=c()),b[d][a].length=this.Zc,f=0;f<this.Zc;f++)b[d][a][f]=0;this.$c=[];this.He=[];this.Zg=[];this.Hd=-1};h.Md=function(){var b;for(b=0;b<this.jc;b++)p(this.de[b]);E(this.de)};h.Vc=function(b,d,a){b=Math.floor(b);d=Math.floor(d);a=Math.floor(a);return isNaN(b)||0>b||b>this.jc-1||isNaN(d)||0>d||d>this.Ec-1||isNaN(a)||0>a||a>this.Zc-1?0:
this.de[b][d][a]};h.set=function(b,d,a,c){b=Math.floor(b);d=Math.floor(d);a=Math.floor(a);isNaN(b)||0>b||b>this.jc-1||isNaN(d)||0>d||d>this.Ec-1||isNaN(a)||0>a||a>this.Zc-1||(this.de[b][d][a]=c)};h.iC=function(){return JSON.stringify({c2array:!0,size:[this.jc,this.Ec,this.Zc],data:this.de})};h.za=function(){return{size:[this.jc,this.Ec,this.Zc],data:this.de}};h.Ka=function(b){var d=b.size;this.jc=d[0];this.Ec=d[1];this.Zc=d[2];this.de=b.data};h.Rf=function(b,d,a){0>b&&(b=0);0>d&&(d=0);0>a&&(a=0);
if(this.jc!==b||this.Ec!==d||this.Zc!==a){this.jc=b;this.Ec=d;this.Zc=a;var f,h,g=this.de;g.length=b;for(b=0;b<this.jc;b++)for(ha(g[b])&&(g[b]=c()),g[b].length=d,f=0;f<this.Ec;f++)for(ha(g[b][f])&&(g[b][f]=c()),g[b][f].length=a,h=0;h<this.Zc;h++)ha(g[b][f][h])&&(g[b][f][h]=0)}};h.Hp=function(){return 0<=this.Hd&&this.Hd<this.$c.length?this.$c[this.Hd]:0};h.Kt=function(){return 0<=this.Hd&&this.Hd<this.He.length?this.He[this.Hd]:0};h.Lt=function(){return 0<=this.Hd&&this.Hd<this.Zg.length?this.Zg[this.Hd]:
0};n.prototype.Dl=function(b,d,a){return jc(this.Vc(b,0,0),d,a)};n.prototype.$w=function(b,d,a,c){return jc(this.Vc(b,d,0),a,c)};h.sp=function(b){this.b.We(b.la);b.Od();this.b.wd(b.la)};n.prototype.Iw=function(b){var d=this.b.eb().hb;this.Hd++;var a=this.Hd;a===this.$c.length?(this.$c.push(0),this.He.push(0),this.Zg.push(0)):(this.$c[a]=0,this.He[a]=0,this.Zg[a]=0);switch(b){case 0:for(this.$c[a]=0;this.$c[a]<this.jc;this.$c[a]++)for(this.He[a]=0;this.He[a]<this.Ec;this.He[a]++)for(this.Zg[a]=0;this.Zg[a]<
this.Zc;this.Zg[a]++)this.sp(d);break;case 1:for(this.$c[a]=0;this.$c[a]<this.jc;this.$c[a]++)for(this.He[a]=0;this.He[a]<this.Ec;this.He[a]++)this.sp(d);break;case 2:for(this.$c[a]=0;this.$c[a]<this.jc;this.$c[a]++)this.sp(d)}this.Hd--;return!1};n.prototype.Tw=function(b,d){return jc(this.Vc(this.Hp(),this.Kt(),this.Lt()),b,d)};n.prototype.Vr=function(){return 0===this.jc||0===this.Ec||0===this.Zc};k.j=new n;g.prototype.Co=function(){var b,d,a;for(b=0;b<this.jc;b++)for(d=0;d<this.Ec;d++)for(a=0;a<
this.Zc;a++)this.de[b][d][a]=0};g.prototype.Ml=function(b,d,a){this.Rf(b,d,a)};g.prototype.Po=function(b,d){this.set(b,0,0,d)};g.prototype.Tz=function(b,d,a){this.set(b,d,0,a)};g.prototype.Fl=function(b){var d;try{d=JSON.parse(b)}catch(a){return}d.c2array&&(b=d.size,this.jc=b[0],this.Ec=b[1],this.Zc=b[2],this.de=d.data)};k.q=new g;l.prototype.Jw=function(b,d,a,c){b.Ih(this.Vc(d,a||0,c||0))};l.prototype.Ro=function(b){b.O(this.jc)};l.prototype.Do=function(b){b.O(this.Ec)};l.prototype.gx=function(b){b.O(this.Hp())};
l.prototype.cx=function(b){b.Ih(this.Vc(this.Hp(),this.Kt(),this.Lt()))};l.prototype.Og=function(b){b.Ta(this.iC())};k.C=new l})();function vc(c){this.b=c}
(function(){function c(a){a=Math.pow(10,a/20);isFinite(a)||(a=0);0>a&&(a=0);1<a&&(a=1);return a}function p(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function n(a){a=a.toLowerCase();return fa.hasOwnProperty(a)&&fa[a].length?fa[a][0].md():v.destination}function g(){return v.createGain?v.createGain():v.createGainNode()}function l(a){return v.createDelay?v.createDelay(a):v.createDelayNode(a)}function k(a,b){a.start?a.start(b||0):a.noteOn(b||0)}function h(a,b,d,c){a.start?a.start(c||
0,b):a.noteGrainOn(c||0,b,d-b)}function b(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}function e(a,b,d,c,e,f){this.type="filter";this.ub=[a,b,d,c,e,f];this.xa=g();this.ja=g();this.ja.gain.value=f;this.fa=g();this.fa.gain.value=1-f;this.Db=v.createBiquadFilter();this.Db.type="number"===typeof this.Db.type?a:fd[a];this.Db.frequency.value=b;this.Db.detune&&(this.Db.detune.value=d);this.Db.Q.value=c;this.Db.gain.value=e;this.xa.connect(this.Db);this.xa.connect(this.fa);this.Db.connect(this.ja)}function d(a,
b,d){this.type="delay";this.ub=[a,b,d];this.xa=g();this.ja=g();this.ja.gain.value=d;this.fa=g();this.fa.gain.value=1-d;this.uk=g();this.Gd=l(a);this.Gd.delayTime.value=a;this.rm=g();this.rm.gain.value=b;this.xa.connect(this.uk);this.xa.connect(this.fa);this.uk.connect(this.ja);this.uk.connect(this.Gd);this.Gd.connect(this.rm);this.rm.connect(this.uk)}function a(a,b,d,c){this.type="convolve";this.ub=[b,d,c];this.xa=g();this.ja=g();this.ja.gain.value=d;this.fa=g();this.fa.gain.value=1-d;this.Sg=v.createConvolver();
a&&(this.Sg.normalize=b,this.Sg.buffer=a);this.xa.connect(this.Sg);this.xa.connect(this.fa);this.Sg.connect(this.ja)}function f(a,b,d,c,e){this.type="flanger";this.ub=[a,b,d,c,e];this.xa=g();this.fa=g();this.fa.gain.value=1-e/2;this.ja=g();this.ja.gain.value=e/2;this.Cm=g();this.Cm.gain.value=c;this.Gd=l(a+b);this.Gd.delayTime.value=a;this.fc=v.createOscillator();this.fc.frequency.value=d;this.ed=g();this.ed.gain.value=b;this.xa.connect(this.Gd);this.xa.connect(this.fa);this.Gd.connect(this.ja);this.Gd.connect(this.Cm);
this.Cm.connect(this.Gd);this.fc.connect(this.ed);this.ed.connect(this.Gd.delayTime);k(this.fc)}function m(a,b,d,c,e,f){this.type="phaser";this.ub=[a,b,d,c,e,f];this.xa=g();this.fa=g();this.fa.gain.value=1-f/2;this.ja=g();this.ja.gain.value=f/2;this.Db=v.createBiquadFilter();this.Db.type="number"===typeof this.Db.type?7:"allpass";this.Db.frequency.value=a;this.Db.detune&&(this.Db.detune.value=b);this.Db.Q.value=d;this.fc=v.createOscillator();this.fc.frequency.value=e;this.ed=g();this.ed.gain.value=
c;this.xa.connect(this.Db);this.xa.connect(this.fa);this.Db.connect(this.ja);this.fc.connect(this.ed);this.ed.connect(this.Db.frequency);k(this.fc)}function r(a){this.type="gain";this.ub=[a];this.ya=g();this.ya.gain.value=a}function F(a,b){this.type="tremolo";this.ub=[a,b];this.ya=g();this.ya.gain.value=1-b/2;this.fc=v.createOscillator();this.fc.frequency.value=a;this.ed=g();this.ed.gain.value=b/2;this.fc.connect(this.ed);this.ed.connect(this.ya.gain);k(this.fc)}function z(a,b){this.type="ringmod";
this.ub=[a,b];this.xa=g();this.ja=g();this.ja.gain.value=b;this.fa=g();this.fa.gain.value=1-b;this.Uk=g();this.Uk.gain.value=0;this.fc=v.createOscillator();this.fc.frequency.value=a;this.fc.connect(this.Uk.gain);k(this.fc);this.xa.connect(this.Uk);this.xa.connect(this.fa);this.Uk.connect(this.ja)}function w(a,b,d,c,e){this.type="distortion";this.ub=[a,b,d,c,e];this.xa=g();this.Hn=g();this.Gn=g();this.pE(d,Math.pow(10,c/20));this.ja=g();this.ja.gain.value=e;this.fa=g();this.fa.gain.value=1-e;this.zo=
v.createWaveShaper();this.pm=new Float32Array(65536);this.gC(a,b);this.zo.pm=this.pm;this.xa.connect(this.Hn);this.xa.connect(this.fa);this.Hn.connect(this.zo);this.zo.connect(this.Gn);this.Gn.connect(this.ja)}function q(a,b,d,c,e){this.type="compressor";this.ub=[a,b,d,c,e];this.ya=v.createDynamicsCompressor();try{this.ya.threshold.value=a,this.ya.knee.value=b,this.ya.ratio.value=d,this.ya.attack.value=c,this.ya.release.value=e}catch(f){}}function u(a,b){this.type="analyser";this.ub=[a,b];this.ya=
v.createAnalyser();this.ya.fftSize=a;this.ya.smoothingTimeConstant=b;this.eC=new Float32Array(this.ya.frequencyBinCount);this.Rv=new Uint8Array(a);this.Kk=0}function B(){this.La=null;this.hn=0}function H(a,b){this.src=a;this.ra=Q;this.Jd=b;this.Wl=!1;var d=this;this.Aq=this.Nq=null;this.Vi=[];this.Tn=0;this.Lr=this.Am=this.Zv=this.An=!1;1===Q&&b&&!lb&&(this.ra=0,this.Nq=g());this.mf=this.Ca=null;var c;switch(this.ra){case 0:this.Ca=new Audio;this.Ca.crossOrigin="anonymous";this.Ca.addEventListener("canplaythrough",
function(){d.Lr=!0});1===Q&&v.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.Zv=!0,this.Ca.addEventListener("canplay",function(){d.Aq||(d.Aq=v.createMediaElementSource(d.Ca),d.Aq.connect(d.Nq))}));this.Ca.autoplay=!1;this.Ca.JF="auto";this.Ca.src=a;break;case 1:x.ck?x.tt(a,function(a){d.mf=a;d.et()},function(){d.Am=!0}):(c=new XMLHttpRequest,c.open("GET",a,!0),c.responseType="arraybuffer",c.onload=function(){d.mf=c.response;d.et()},c.onerror=function(){d.Am=!0},c.send());break;
case 2:this.Ca=!0;break;case 3:this.Ca=!0}}function t(a,b){var d=this;this.tag=b;this.Ya=this.Je=!0;this.src=a.src;this.buffer=a;this.ra=Q;this.Jd=a.Jd;this.playbackRate=1;this.ri=!0;this.bd=this.zd=!1;this.Nc=0;this.dk=this.Bi=this.Te=!1;this.volume=1;this.Lq=function(a){if(!d.bd&&!d.zd){var b=this;b||(b=a.target);b===d.Ul&&(d.ri=!0,d.Ya=!0,la=d.tag,x.trigger(vc.prototype.j.Hl,X))}};this.Ul=null;this.vi=1===W&&!this.Jd||2===W;this.Mi=1;this.startTime=this.vi?x.tb.ba:x.ag.ba;this.Gb=this.Qb=null;
this.Ue=!1;this.nc=null;this.kv=this.jv=this.hv=this.gv=this.nv=this.lv=0;this.D=null;var c=!1;1!==this.ra||0!==this.buffer.ra||this.buffer.Zv||(this.ra=0);switch(this.ra){case 0:this.Jd?(this.D=a.Ca,c=!a.Wl,a.Wl=!0):(this.D=new Audio,this.D.crossOrigin="anonymous",this.D.autoplay=!1,this.D.src=a.Ca.src,c=!0);c&&this.D.addEventListener("ended",function(){la=d.tag;d.Ya=!0;x.trigger(vc.prototype.j.Hl,X)});break;case 1:this.Qb=g();this.Qb.connect(n(b));1===this.buffer.ra?a.Ca&&(this.D=v.createBufferSource(),
this.D.buffer=a.Ca,this.D.connect(this.Qb)):(this.D=this.buffer.Ca,this.buffer.Nq.connect(this.Qb),this.buffer.Wl||(this.buffer.Wl=!0,this.buffer.Ca.addEventListener("ended",function(){la=d.tag;d.Ya=!0;x.trigger(vc.prototype.j.Hl,X)})));break;case 2:this.D=new window.Media(V+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(d.ri=!0,d.Ya=!0,la=d.tag,x.trigger(vc.prototype.j.Hl,X))});break;case 3:this.D=!0}}function y(a){E(Ka);if(a.length){var b,d,c;b=0;for(d=M.length;b<d;b++)c=M[b],rb(a,
c.tag)&&Ka.push(c)}else R&&!R.fh()&&(E(Ka),Ka[0]=R)}function C(a,b){fa.hasOwnProperty(a)?fa[a].push(b):fa[a]=[b];var d,c,e,f,h=v.destination;if(fa.hasOwnProperty(a)&&(e=fa[a],e.length))for(h=e[0].md(),d=0,c=e.length;d<c;d++)f=e[d],d+1===c?f.Ed(v.destination):f.Ed(e[d+1].md());y(a);d=0;for(c=Ka.length;d<c;d++)Ka[d].$D(h);$a&&$b===a&&($a.disconnect(),$a.connect(h))}function N(){}function D(){}var O=vc.prototype;O.J=function(a){this.V=a;this.b=a.b};O.J.prototype.G=function(){};var x=null,X=null,la="",
V="",Q=0,v=null,L=[],M=[],R=null,T=!1,W=0,P=!1,J=1,K=0,sa=0,S=!1,Z=1,oa=1,qa=10,ad=1E4,bd=1,$a=null,$b="",mb=!1,nb=[],lb=!1,fa={},fd="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");e.prototype.Ed=function(a){this.ja.disconnect();this.ja.connect(a);this.fa.disconnect();this.fa.connect(a)};e.prototype.remove=function(){this.xa.disconnect();this.Db.disconnect();this.ja.disconnect();this.fa.disconnect()};e.prototype.md=function(){return this.xa};d.prototype.Ed=function(a){this.ja.disconnect();
this.ja.connect(a);this.fa.disconnect();this.fa.connect(a)};d.prototype.remove=function(){this.xa.disconnect();this.uk.disconnect();this.Gd.disconnect();this.rm.disconnect();this.ja.disconnect();this.fa.disconnect()};d.prototype.md=function(){return this.xa};a.prototype.Ed=function(a){this.ja.disconnect();this.ja.connect(a);this.fa.disconnect();this.fa.connect(a)};a.prototype.remove=function(){this.xa.disconnect();this.Sg.disconnect();this.ja.disconnect();this.fa.disconnect()};a.prototype.md=function(){return this.xa};
f.prototype.Ed=function(a){this.fa.disconnect();this.fa.connect(a);this.ja.disconnect();this.ja.connect(a)};f.prototype.remove=function(){this.xa.disconnect();this.Gd.disconnect();this.fc.disconnect();this.ed.disconnect();this.fa.disconnect();this.ja.disconnect();this.Cm.disconnect()};f.prototype.md=function(){return this.xa};m.prototype.Ed=function(a){this.fa.disconnect();this.fa.connect(a);this.ja.disconnect();this.ja.connect(a)};m.prototype.remove=function(){this.xa.disconnect();this.Db.disconnect();
this.fc.disconnect();this.ed.disconnect();this.fa.disconnect();this.ja.disconnect()};m.prototype.md=function(){return this.xa};r.prototype.Ed=function(a){this.ya.disconnect();this.ya.connect(a)};r.prototype.remove=function(){this.ya.disconnect()};r.prototype.md=function(){return this.ya};F.prototype.Ed=function(a){this.ya.disconnect();this.ya.connect(a)};F.prototype.remove=function(){this.fc.disconnect();this.ed.disconnect();this.ya.disconnect()};F.prototype.md=function(){return this.ya};z.prototype.Ed=
function(a){this.ja.disconnect();this.ja.connect(a);this.fa.disconnect();this.fa.connect(a)};z.prototype.remove=function(){this.fc.disconnect();this.Uk.disconnect();this.xa.disconnect();this.ja.disconnect();this.fa.disconnect()};z.prototype.md=function(){return this.xa};w.prototype.pE=function(a,b){.01>a&&(a=.01);this.Hn.gain.value=a;this.Gn.gain.value=Math.pow(1/a,.6)*b};w.prototype.shape=function(a,b,d){var c=1.05*d*b-b;d=0>a?-1:1;a=0>a?-a:a;b=a<b?a:b+c*(1-Math.exp(-(1/c)*(a-b)));return b*d};w.prototype.gC=
function(a,b){for(var d=Math.pow(10,a/20),c=Math.pow(10,b/20),e=0,f=0;32768>f;++f)e=f/32768,e=this.shape(e,d,c),this.pm[32768+f]=e,this.pm[32768-f-1]=-e};w.prototype.Ed=function(a){this.ja.disconnect();this.ja.connect(a);this.fa.disconnect();this.fa.connect(a)};w.prototype.remove=function(){this.xa.disconnect();this.Hn.disconnect();this.zo.disconnect();this.Gn.disconnect();this.ja.disconnect();this.fa.disconnect()};w.prototype.md=function(){return this.xa};q.prototype.Ed=function(a){this.ya.disconnect();
this.ya.connect(a)};q.prototype.remove=function(){this.ya.disconnect()};q.prototype.md=function(){return this.ya};u.prototype.Na=function(){this.ya.getFloatFrequencyData(this.eC);this.ya.getByteTimeDomainData(this.Rv);for(var a=this.ya.fftSize,b=0,d=this.Kk=0,c=0;b<a;b++)c=(this.Rv[b]-128)/128,0>c&&(c=-c),this.Kk<c&&(this.Kk=c),d+=c*c;this.Kk=p(this.Kk);p(Math.sqrt(d/a))};u.prototype.Ed=function(a){this.ya.disconnect();this.ya.connect(a)};u.prototype.remove=function(){this.ya.disconnect()};u.prototype.md=
function(){return this.ya};B.prototype.Xk=function(a){this.La=a};B.prototype.Qm=function(){return!!this.La};B.prototype.Na=function(){};var Eb=!1;H.prototype.bE=function(){var a,b,d,c;d=a=0;for(b=M.length;a<b;++a)c=M[a],M[d]=c,c.buffer===this?c.stop():++d;M.length=d;this.mf=this.Ca=null};H.prototype.et=function(){if(!this.Ca&&this.mf){var a=this;if(v.decodeAudioData)v.decodeAudioData(this.mf,function(b){a.Ca=b;a.mf=null;var d,c,e;if(ha(a.Cn)||P)ha(a.im)||(d=a.im.Sg,d.normalize=a.Tu,d.buffer=b);else if(a.Vi.length){d=
0;for(c=a.Vi.length;d<c;d++){b=a.Vi[d];e=new t(a,b.bw);e.Xn(!0);if("undefined"!==typeof b.Vu&&(b.La=x.ni(b.Vu),!b.La))continue;if(b.La){var f=Va(b.La.x,b.La.y,-b.La.A.ob(),K,sa,!0),h=Va(b.La.x,b.La.y,-b.La.A.ob(),K,sa,!1);e.kr(f,h,Ma(b.La.u-b.La.A.ob()),b.Wp,b.Eq,b.Hq);e.Xk(b.La)}else e.kr(b.x,b.y,b.pA,b.Wp,b.Eq,b.Hq);e.play(a.wq,a.Ir,a.Tn);a.An&&e.pause();M.push(e)}E(a.Vi)}else e=new t(a,a.Cn||""),e.play(a.wq,a.Ir,a.Tn),a.An&&e.pause(),M.push(e)},function(){a.Am=!0});else if(this.Ca=v.createBuffer(this.mf,
!1),this.mf=null,ha(this.Cn)||P)ha(this.im)||(b=this.im.Sg,b.normalize=this.Tu,b.buffer=this.Ca);else{var b=new t(this,this.Cn);b.play(this.wq,this.Ir,this.Tn);this.An&&b.pause();M.push(b)}}};H.prototype.fu=function(){switch(this.ra){case 0:var a=4<=this.Ca.readyState;a&&(this.Lr=!0);return a||this.Lr;case 1:return!!this.mf||!!this.Ca;case 2:return!0;case 3:return!0}return!1};H.prototype.bD=function(){switch(this.ra){case 0:return this.fu();case 1:return!!this.Ca;case 2:return!0;case 3:return!0}return!1};
H.prototype.QC=function(){switch(this.ra){case 0:return!!this.Ca.error;case 1:return this.Am}return!1};t.prototype.fh=function(){switch(this.ra){case 0:return this.D.ended;case 1:return 1===this.buffer.ra?!this.Je&&!this.Ya&&this.D.loop||this.bd?!1:this.ri:this.D.ended;case 2:return this.ri;case 3:!0}return!0};t.prototype.HA=function(){return this.Je||this.Ya?!0:this.fh()};t.prototype.Xn=function(a){1===Q&&(!this.Ue&&a?this.Qb&&(this.Gb||(this.Gb=v.createPanner(),this.Gb.panningModel="number"===typeof this.Gb.panningModel?
Z:["equalpower","HRTF","soundfield"][Z],this.Gb.distanceModel="number"===typeof this.Gb.distanceModel?oa:["linear","inverse","exponential"][oa],this.Gb.refDistance=qa,this.Gb.maxDistance=ad,this.Gb.rolloffFactor=bd),this.Qb.disconnect(),this.Qb.connect(this.Gb),this.Gb.connect(n(this.tag)),this.Ue=!0):this.Ue&&!a&&this.Qb&&(this.Gb.disconnect(),this.Qb.disconnect(),this.Qb.connect(n(this.tag)),this.Ue=!1))};t.prototype.kr=function(a,b,d,c,e,f){this.Ue&&1===Q&&(this.Gb.setPosition(a,b,0),this.Gb.setOrientation(Math.cos(G(d)),
Math.sin(G(d)),0),this.Gb.coneInnerAngle=c,this.Gb.coneOuterAngle=e,this.Gb.coneOuterGain=f,this.lv=a,this.nv=b,this.gv=d,this.hv=c,this.jv=e,this.kv=f)};t.prototype.Xk=function(a){this.Ue&&1===Q&&(this.nc||(this.nc=new B),this.nc.Xk(a))};t.prototype.Na=function(a){if(this.Ue&&1===Q&&this.nc&&this.nc.Qm()&&this.ti()){this.nc.Na(a);a=this.nc.La;var b=Va(a.x,a.y,-a.A.ob(),K,sa,!0),d=Va(a.x,a.y,-a.A.ob(),K,sa,!1);this.Gb.setPosition(b,d,0);b=0;"undefined"!==typeof this.nc.La.u&&(b=a.u-a.A.ob(),this.Gb.setOrientation(Math.cos(b),
Math.sin(b),0))}};t.prototype.play=function(a,b,d,c){var e=this.D;this.Te=a;this.volume=b;d=d||0;c=c||0;switch(this.ra){case 0:1!==e.playbackRate&&(e.playbackRate=1);e.volume!==b*J&&(e.volume=b*J);e.loop!==a&&(e.loop=a);e.muted&&(e.muted=!1);if(e.currentTime!==d)try{e.currentTime=d}catch(f){}if(this.Jd&&mb&&!x.fb)nb.push(this);else try{this.D.play()}catch(g){console&&console.log&&console.log("[C2] WARNING: exception trying to play audio '"+this.buffer.src+"': ",g)}break;case 1:this.muted=!1;this.Mi=
1;if(1===this.buffer.ra)this.Qb.gain.value=b*J,this.Je||(this.D=v.createBufferSource(),this.D.buffer=this.buffer.Ca,this.D.connect(this.Qb)),this.D.onended=this.Lq,this.Ul=this.D,this.D.loop=a,this.ri=!1,0===d?k(this.D,c):h(this.D,d,this.$g(),c);else{1!==e.playbackRate&&(e.playbackRate=1);e.loop!==a&&(e.loop=a);e.volume=b*J;if(e.currentTime!==d)try{e.currentTime=d}catch(l){}this.Jd&&mb&&!x.fb?nb.push(this):e.play()}break;case 2:(!this.Je&&this.Ya||0!==d)&&e.seekTo(d);e.play();this.ri=!1;break;case 3:x.ac?
AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=1;this.startTime=(this.vi?x.tb.ba:x.ag.ba)-d;this.bd=this.Ya=this.Je=!1};t.prototype.stop=function(){switch(this.ra){case 0:this.D.paused||this.D.pause();break;case 1:1===this.buffer.ra?b(this.D):this.D.paused||this.D.pause();break;case 2:this.D.stop();break;case 3:x.ac&&AppMobi.context.stopSound(this.src)}this.Ya=!0;this.bd=!1};t.prototype.pause=function(){if(!(this.Je||this.Ya||this.fh()||this.bd)){switch(this.ra){case 0:this.D.paused||
this.D.pause();break;case 1:1===this.buffer.ra?(this.Nc=this.Mp(!0),this.Te&&(this.Nc=this.Nc%this.$g()),this.bd=!0,b(this.D)):this.D.paused||this.D.pause();break;case 2:this.D.pause();break;case 3:x.ac&&AppMobi.context.stopSound(this.src)}this.bd=!0}};t.prototype.fE=function(){if(!(this.Je||this.Ya||this.fh())&&this.bd){switch(this.ra){case 0:this.D.play();break;case 1:1===this.buffer.ra?(this.D=v.createBufferSource(),this.D.buffer=this.buffer.Ca,this.D.connect(this.Qb),this.D.onended=this.Lq,this.Ul=
this.D,this.D.loop=this.Te,this.Qb.gain.value=J*this.volume*this.Mi,this.wo(),this.startTime=(this.vi?x.tb.ba:x.ag.ba)-this.Nc/(this.playbackRate||.001),h(this.D,this.Nc,this.$g())):this.D.play();break;case 2:this.D.play();break;case 3:x.ac&&AppMobi.context.resumeSound(this.src)}this.bd=!1}};t.prototype.seek=function(a){if(!(this.Je||this.Ya||this.fh()))switch(this.ra){case 0:try{this.D.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.ra)this.bd?this.Nc=a:(this.pause(),this.Nc=a,this.fE());
else try{this.D.currentTime=a}catch(d){}break;case 3:x.ac&&AppMobi.context.seekSound(this.src,a)}};t.prototype.$D=function(a){1===this.ra&&(this.Ue?(this.Gb.disconnect(),this.Gb.connect(a)):(this.Qb.disconnect(),this.Qb.connect(a)))};t.prototype.$g=function(){var a=0;switch(this.ra){case 0:"undefined"!==typeof this.D.duration&&(a=this.D.duration);break;case 1:a=this.buffer.Ca.duration;break;case 2:a=this.D.getDuration();break;case 3:x.ac&&(a=AppMobi.context.getDurationSound(this.src))}return a};t.prototype.Mp=
function(a){var b=this.$g(),d=0;switch(this.ra){case 0:"undefined"!==typeof this.D.currentTime&&(d=this.D.currentTime);break;case 1:if(1===this.buffer.ra){if(this.bd)return this.Nc;d=(this.vi?x.tb.ba:x.ag.ba)-this.startTime}else"undefined"!==typeof this.D.currentTime&&(d=this.D.currentTime);break;case 3:x.ac&&(d=AppMobi.context.getPlaybackTimeSound(this.src))}a&&(d*=this.playbackRate);!this.Te&&d>b&&(d=b);return d};t.prototype.ti=function(){return!this.bd&&!this.Je&&!this.Ya&&!this.fh()};t.prototype.wE=
function(){return!this.Je&&!this.Ya&&!this.fh()};t.prototype.vE=function(a){this.volume=a;this.sw()};t.prototype.sw=function(){var a=this.volume*J;isFinite(a)||(a=0);switch(this.ra){case 0:"undefined"!==typeof this.D.volume&&this.D.volume!==a&&(this.D.volume=a);break;case 1:1===this.buffer.ra?this.Qb.gain.value=a*this.Mi:"undefined"!==typeof this.D.volume&&this.D.volume!==a&&(this.D.volume=a)}};t.prototype.xm=function(a){switch(this.ra){case 0:this.D.muted!==!!a&&(this.D.muted=!!a);break;case 1:1===
this.buffer.ra?(this.Mi=a?0:1,this.Qb.gain.value=J*this.volume*this.Mi):this.D.muted!==!!a&&(this.D.muted=!!a)}};t.prototype.qE=function(){this.Bi=!0;this.xm(this.Bi||this.dk)};t.prototype.Kv=function(a){this.dk=!!a;this.xm(this.Bi||this.dk)};t.prototype.wo=function(){var a=this.playbackRate;this.vi&&(a*=x.df);switch(this.ra){case 0:this.D.playbackRate!==a&&(this.D.playbackRate=a);break;case 1:1===this.buffer.ra?this.D.playbackRate.value!==a&&(this.D.playbackRate.value=a):this.D.playbackRate!==a&&
(this.D.playbackRate=a)}};t.prototype.tE=function(a){switch(this.ra){case 0:a?this.ti()?(this.zd=!0,this.D.pause()):this.zd=!1:this.zd&&(this.D.play(),this.zd=!1);break;case 1:a?this.ti()?(this.zd=!0,1===this.buffer.ra?(this.Nc=this.Mp(!0),this.Te&&(this.Nc=this.Nc%this.$g()),b(this.D)):this.D.pause()):this.zd=!1:this.zd&&(1===this.buffer.ra?(this.D=v.createBufferSource(),this.D.buffer=this.buffer.Ca,this.D.connect(this.Qb),this.D.onended=this.Lq,this.Ul=this.D,this.D.loop=this.Te,this.Qb.gain.value=
J*this.volume*this.Mi,this.wo(),this.startTime=(this.vi?x.tb.ba:x.ag.ba)-this.Nc/(this.playbackRate||.001),h(this.D,this.Nc,this.$g())):this.D.play(),this.zd=!1);break;case 2:a?this.ti()?(this.D.pause(),this.zd=!0):this.zd=!1:this.zd&&(this.zd=!1,this.D.play())}};O.I=function(a){function b(){if(!S&&v.createBuffer){var a=v.createBuffer(1,220,22050),d=v.createBufferSource();d.buffer=a;d.connect(v.destination);k(d)}}this.type=a;x=this.b=a.b;X=this;this.dd=null;this.kk=-600;this.b.ck&&(lb=!0);!(this.b.Df||
this.b.jh&&(this.b.Yj||this.b.Tm))||this.b.Vm||this.b.Da||this.b.bu||lb||(mb=!0);v=null;"undefined"!==typeof AudioContext?(Q=1,v=new AudioContext):"undefined"!==typeof webkitAudioContext&&(Q=1,v=new webkitAudioContext);this.b.Df&&v&&(v.close&&v.close(),"undefined"!==typeof AudioContext?v=new AudioContext:"undefined"!==typeof webkitAudioContext&&(v=new webkitAudioContext));mb?document.addEventListener("touchend",function(){!Eb&&v&&(b(),Eb=!0);var a,d,c;if(mb){if(!P)for(a=0,d=nb.length;a<d;++a)c=nb[a],
c.Ya||c.bd||c.D.play();E(nb)}},!0):lb&&document.addEventListener("touchend",function(){!Eb&&v&&(b(),Eb=!0)},!0);1!==Q&&(this.b.od&&"undefined"!==typeof window.Media?Q=2:this.b.cu&&(Q=3));2===Q&&(V=location.href,a=V.lastIndexOf("/"),-1<a&&(V=V.substr(0,a+1)),V=V.replace("file://",""));if(this.b.cD&&this.b.dD&&"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.hf(this);else{if(this.b.ac)T=
this.b.jh;else try{T=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(d){T=!1}this.b.Xf(this)}};var Ha=O.I.prototype;Ha.G=function(){this.b.Zh=this;W=this.B[0];this.Pf=this.B[1];this.LD=0!==this.B[2];this.pn=0;Z=this.B[3];oa=this.B[4];this.kk=-this.B[5];qa=this.B[6];ad=this.B[7];bd=this.B[8];this.dd=new B;var a=this.b.aa||this.b.width,b=this.b.Z||this.b.height;1===Q&&(v.listener.setPosition(a/2,b/2,this.kk),v.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,
b){$a&&$a.disconnect();$b=b.toLowerCase();$a=v.createMediaStreamSource(a);$a.connect(n($b))});this.b.Ls(function(a){X.FD(a)});var d=this;this.b.Vl(function(a){d.Bk(a)})};Ha.Bk=function(a){var b,d,c;b=0;for(d=M.length;b<d;b++)c=M[b],c.nc&&c.nc.La===a&&(c.nc.La=null,c.Ue&&c.ti()&&c.Te&&c.stop());this.dd.La===a&&(this.dd.La=null)};Ha.za=function(){var a={silent:P,masterVolume:J,listenerZ:this.kk,listenerUid:this.dd.Qm()?this.dd.La.uid:-1,playing:[],effects:{}},b=a.playing,d,c,e,f,h,g;d=0;for(c=M.length;d<
c;d++)e=M[d],!e.wE()||3===this.Pf||e.Jd&&1===this.Pf||!e.Jd&&2===this.Pf||(f=e.Mp(),e.Te&&(f=f%e.$g()),f={tag:e.tag,buffersrc:e.buffer.src,is_music:e.Jd,playbackTime:f,volume:e.volume,looping:e.Te,muted:e.Bi,playbackRate:e.playbackRate,paused:e.bd,resume_position:e.Nc},e.Ue&&(f.pan={},g=f.pan,e.nc&&e.nc.Qm()?g.objUid=e.nc.La.uid:(g.x=e.lv,g.y=e.nv,g.a=e.gv),g.ia=e.hv,g.oa=e.jv,g.og=e.kv),b.push(f));b=a.effects;for(h in fa)if(fa.hasOwnProperty(h)){e=[];d=0;for(c=fa[h].length;d<c;d++)e.push({type:fa[h][d].type,
params:fa[h][d].ub});b[h]=e}return a};var ob=[];Ha.Ka=function(b){var c=b.silent;J=b.masterVolume;this.kk=b.listenerZ;this.dd.Xk(null);var h=b.listenerUid;-1!==h&&(this.dd.hn=h,ob.push(this.dd));var h=b.playing,g,l,k,D,n,t,p,O,y,x,v;if(3!==this.Pf)for(g=0,l=M.length;g<l;g++)y=M[g],y.Jd&&1===this.Pf||(y.Jd||2!==this.Pf)&&y.stop();for(n in fa)if(fa.hasOwnProperty(n))for(g=0,l=fa[n].length;g<l;g++)fa[n][g].remove();Za(fa);for(n in b.effects)if(b.effects.hasOwnProperty(n))for(t=b.effects[n],g=0,l=t.length;g<
l;g++)switch(k=t[g].type,x=t[g].params,k){case "filter":C(n,new e(x[0],x[1],x[2],x[3],x[4],x[5]));break;case "delay":C(n,new d(x[0],x[1],x[2]));break;case "convolve":k=x[2];y=this.Km(k,!1);y.Ca?k=new a(y.Ca,x[0],x[1],k):(k=new a(null,x[0],x[1],k),y.Tu=x[0],y.im=k);C(n,k);break;case "flanger":C(n,new f(x[0],x[1],x[2],x[3],x[4]));break;case "phaser":C(n,new m(x[0],x[1],x[2],x[3],x[4],x[5]));break;case "gain":C(n,new r(x[0]));break;case "tremolo":C(n,new F(x[0],x[1]));break;case "ringmod":C(n,new z(x[0],
x[1]));break;case "distortion":C(n,new w(x[0],x[1],x[2],x[3],x[4]));break;case "compressor":C(n,new q(x[0],x[1],x[2],x[3],x[4]));break;case "analyser":C(n,new u(x[0],x[1]))}g=0;for(l=h.length;g<l;g++)3===this.Pf||(b=h[g],k=b.buffersrc,D=b.is_music,n=b.tag,t=b.playbackTime,p=b.looping,O=b.volume,v=(x=b.pan)&&x.hasOwnProperty("objUid")?x.objUid:-1,D&&1===this.Pf)||!D&&2===this.Pf||((y=this.Lm(k,n,D,p,O))?(y.Nc=b.resume_position,y.Xn(!!x),y.play(p,O,t),y.wo(),y.sw(),y.xm(y.Bi||y.dk),b.paused&&y.pause(),
b.muted&&y.qE(),y.xm(y.Bi||y.dk),x&&(-1!==v?(y.nc=y.nc||new B,y.nc.hn=v,ob.push(y.nc)):y.kr(x.x,x.y,x.a,x.ia,x.oa,x.og))):(y=this.Km(k,D),y.Tn=t,y.An=b.paused,x&&(-1!==v?y.Vi.push({Vu:v,Wp:x.ia,Eq:x.oa,Hq:x.og,bw:n}):y.Vi.push({x:x.x,y:x.y,pA:x.a,Wp:x.ia,Eq:x.oa,Hq:x.og,bw:n}))));if(c&&!P){g=0;for(l=M.length;g<l;g++)M[g].Kv(!0);P=!0}else if(!c&&P){g=0;for(l=M.length;g<l;g++)M[g].Kv(!1);P=!1}};Ha.$d=function(){var a,b,d,c;a=0;for(b=ob.length;a<b;a++)d=ob[a],c=this.b.ni(d.hn),d.Xk(c),d.hn=-1,c&&(K=
c.x,sa=c.y);E(ob)};Ha.FD=function(a){if(!this.LD){!a&&v&&v.resume&&(v.resume(),S=!1);var b,d;b=0;for(d=M.length;b<d;b++)M[b].tE(a);a&&v&&v.suspend&&(v.suspend(),S=!0)}};Ha.Na=function(){var a=this.b.rg,b,d,c;b=0;for(d=M.length;b<d;b++)c=M[b],c.Na(a),0!==W&&c.wo();var e,f;for(e in fa)if(fa.hasOwnProperty(e))for(c=fa[e],b=0,d=c.length;b<d;b++)f=c[b],f.Na&&f.Na();1===Q&&this.dd.Qm()&&(this.dd.Na(a),K=this.dd.La.x,sa=this.dd.La.y,v.listener.setPosition(this.dd.La.x,this.dd.La.y,this.kk))};var pb=[];Ha.sE=
function(a){var b,d,c,e,f,h=0;b=0;for(d=a.length;b<d;++b)if(c=a[b],e=c[0],c=2*c[1],(f=4<e.length&&".ogg"===e.substr(e.length-4))&&T||!f&&!T)pb.push({filename:e,size:c,La:null}),h+=c;return h};Ha.AE=function(){var a,b,d,c;a=0;for(b=pb.length;a<b;++a)d=pb[a],c=this.b.Mj+d.filename,d.La=this.Km(c,!1)};Ha.tC=function(){var a=0,b,d,c;b=0;for(d=pb.length;b<d;++b)c=pb[b],c.La.bD()||c.La.QC()||this.b.Da||this.b.Tm?a+=c.size:c.La.fu()&&(a+=Math.floor(c.size/2));return a};Ha.cE=function(){var a,b,d,c;d=a=0;
for(b=L.length;a<b;++a)c=L[a],L[d]=c,c.Jd?c.bE():++d;L.length=d};Ha.Km=function(a,b){var d,c,e,f=null;d=0;for(c=L.length;d<c;d++)if(e=L[d],e.src===a){f=e;break}f||(lb&&b&&this.cE(),f=new H(a,b),L.push(f));return f};Ha.Lm=function(a,b,d,c,e){var f,h,g;f=0;for(h=M.length;f<h;f++)if(g=M[f],g.src===a&&(g.HA()||d))return g.tag=b,g;a=this.Km(a,d);if(!a.Ca)return"<preload>"!==b&&(a.Cn=b,a.wq=c,a.Ir=e),null;g=new t(a,b);M.push(g);return g};var Ka=[];N.prototype.Hl=function(a){return rb(la,a)};N.prototype.Kx=
function(a){y(a);var b;a=0;for(b=Ka.length;a<b;a++)if(Ka[a].ti())return!0;return!1};O.j=new N;D.prototype.Play=function(a,b,d,e){!P&&(d=c(d),R=this.Lm(this.b.Mj+a[0]+(T?".ogg":".m4a"),e,a[1],0!==b,d))&&(R.Xn(!1),R.play(0!==b,d,0,this.pn),this.pn=0)};D.prototype.cz=function(a,b,d,e,f){!P&&(e=c(e),R=this.Lm(this.b.Mj+b.toLowerCase()+(T?".ogg":".m4a"),f,1===a,0!==d,e))&&(R.Xn(!1),R.play(0!==d,e,0,this.pn),this.pn=0)};D.prototype.Rz=function(a,b){y(a);var d=c(b),e,f;e=0;for(f=Ka.length;e<f;e++)Ka[e].vE(d)};
D.prototype.dz=function(a){if(!P){var b=a[1];a=this.b.Mj+a[0]+(T?".ogg":".m4a");3===Q?this.b.ac?AppMobi.context.loadSound(a):AppMobi.player.loadSound(a):2!==Q&&this.Lm(a,"<preload>",b,!1)}};D.prototype.Ql=function(a){y(a);var b;a=0;for(b=Ka.length;a<b;a++)Ka[a].stop()};O.q=new D;O.C=new function(){}})();function wc(c){this.b=c}
(function(){function c(){h&&b&&window.OfflineClientInfo&&window.OfflineClientInfo.SetMessageCallback(function(a){e.ED(a)})}function p(){}function n(){}function g(b){console&&console.warn&&console.warn("Fullscreen request failed: ",b);a.setSize(window.innerWidth,window.innerHeight)}var l=wc.prototype;l.J=function(a){this.V=a;this.b=a.b};var k=l.J.prototype;k.G=function(){};var h=!1,b=!1;document.addEventListener("DOMContentLoaded",function(){if(window.C2_RegisterSW&&navigator.nf){var a=document.createElement("script");
a.onload=function(){h=!0;c()};a.src="offlineClient.js";document.head.appendChild(a)}});var e=null;k.av=function(){b=!0;c()};l.I=function(a){this.type=a;this.b=a.b};k=l.I.prototype;k.G=function(){var a=this;window.addEventListener("resize",function(){a.b.trigger(wc.prototype.j.Jy,a)});e=this;"undefined"!==typeof navigator.onLine&&(window.addEventListener("online",function(){a.b.trigger(wc.prototype.j.Fy,a)}),window.addEventListener("offline",function(){a.b.trigger(wc.prototype.j.Dy,a)}));"undefined"!==
typeof window.applicationCache&&(window.applicationCache.addEventListener("updateready",function(){a.b.Ji=1;a.b.trigger(wc.prototype.j.Ll,a)}),window.applicationCache.addEventListener("progress",function(b){a.b.Ji=b.loaded/b.total||0}));this.b.ac||(document.addEventListener("appMobi.device.update.available",function(){a.b.trigger(wc.prototype.j.Ll,a)}),document.addEventListener("backbutton",function(){a.b.trigger(wc.prototype.j.Gl,a)}),document.addEventListener("menubutton",function(){a.b.trigger(wc.prototype.j.ms,
a)}),document.addEventListener("searchbutton",function(){a.b.trigger(wc.prototype.j.Oy,a)}),document.addEventListener("tizenhwkey",function(b){var d;switch(b.keyName){case "back":d=a.b.trigger(wc.prototype.j.Gl,a);!d&&window.tizen&&window.tizen.application.getCurrentApplication().exit();break;case "menu":(d=a.b.trigger(wc.prototype.j.ms,a))||b.preventDefault()}}));this.b.gq&&"undefined"!==typeof Windows?Windows.UI.Core.SystemNavigationManager.getForCurrentView().addEventListener("backrequested",function(b){a.b.trigger(wc.prototype.j.Gl,
a)&&(b.Pm=!0)}):this.b.iu&&WinJS.Application&&(WinJS.Application.onbackclick=function(){return!!a.b.trigger(wc.prototype.j.Gl,a)});this.b.Ls(function(b){b?a.b.trigger(wc.prototype.j.Gy,a):a.b.trigger(wc.prototype.j.Hy,a)});this.fD="undefined"!==typeof window.is_scirra_arcade};k.ED=function(a){a=a.data.type;"downloading-update"===a?this.b.trigger(wc.prototype.j.Ry,this):"update-ready"===a||"update-pending"===a?this.b.trigger(wc.prototype.j.Ll,this):"offline-ready"===a&&this.b.trigger(wc.prototype.j.Ey,
this)};p.prototype.Fy=function(){return!0};p.prototype.Dy=function(){return!0};p.prototype.Ll=function(){return!0};p.prototype.Hy=function(){return!0};p.prototype.Gy=function(){return!0};p.prototype.Jy=function(){return!0};p.prototype.Ex=function(){return!!(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||this.b.Ne)};p.prototype.Gl=function(){return!0};p.prototype.ms=function(){return!0};p.prototype.Oy=function(){return!0};p.prototype.Ry=function(){return!0};p.prototype.Ll=
function(){return!0};p.prototype.Ey=function(){return!0};l.j=new p;n.prototype.Pw=function(){this.b.ad?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.fD||this.b.Da||window.close()};var d=!0,a=null;n.prototype.gz=function(b){this.b.Da?ea("[Construct 2] Requesting fullscreen is not supported on this platform - the request has been ignored"):
(2<=b&&(b+=1),6===b&&(b=2),this.b.gu?this.b.eu?debuggerFullscreen(!0):!this.b.Ne&&window.nwgui&&(window.nwgui.Window.get().enterFullscreen(),this.b.Ne=!0,this.b.wf=2<=b?b:0):document.mozFullScreen||document.webkitIsFullScreen||document.msFullscreenElement||document.fullScreen||document.fullScreenElement||(this.b.wf=2<=b?b:0,b=this.b.fp||this.b.canvas,d&&(d=!1,a=this.b,b.addEventListener("mozfullscreenerror",g),b.addEventListener("webkitfullscreenerror",g),b.addEventListener("MSFullscreenError",g),
b.addEventListener("fullscreenerror",g)),b.requestFullscreen?b.requestFullscreen():b.mozRequestFullScreen?b.mozRequestFullScreen():b.msRequestFullscreen?b.msRequestFullscreen():b.webkitRequestFullScreen&&("undefined"!==typeof Element&&"undefined"!==typeof Element.ALLOW_KEYBOARD_INPUT?b.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT):b.webkitRequestFullScreen())))};n.prototype.Lw=function(){this.b.Da?ea("[Construct 2] Exiting fullscreen is not supported on this platform - the request has been ignored"):
this.b.gu?this.b.eu?debuggerFullscreen(!1):this.b.Ne&&window.nwgui&&(window.nwgui.Window.get().leaveFullscreen(),this.b.Ne=!1):document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen?document.msExitFullscreen():document.webkitCancelFullScreen&&document.webkitCancelFullScreen()};l.q=new n;l.C=new function(){}})();function xc(c){this.b=c}
(function(){function c(){}function p(){}function n(){}var g=xc.prototype;g.J=function(c){this.V=c;this.b=c.b};g.J.prototype.G=function(){};g.I=function(c){this.type=c;this.b=c.b};var l=g.I.prototype;l.G=function(){this.vc={};this.ph=0};l.za=function(){return this.vc};l.Ka=function(c){this.vc=c;this.ph=0;for(var h in this.vc)this.vc.hasOwnProperty(h)&&this.ph++};c.prototype.Sr=function(c,h,b){return jc(this.vc[c],h,b)};c.prototype.ux=function(c){return this.vc.hasOwnProperty(c)};c.prototype.Vr=function(){return 0===
this.ph};g.j=new c;p.prototype.Cw=function(c,h){this.vc.hasOwnProperty(c)||this.ph++;this.vc[c]=h};p.prototype.Bz=function(c,h){this.vc.hasOwnProperty(c)&&(this.vc[c]=h)};p.prototype.Co=function(){Za(this.vc);this.ph=0};p.prototype.Fl=function(c){var h;try{h=JSON.parse(c)}catch(b){return}if(h.c2dictionary){this.vc=h.data;this.ph=0;for(var e in this.vc)this.vc.hasOwnProperty(e)&&this.ph++}};g.q=new p;n.prototype.qx=function(c,h){this.vc.hasOwnProperty(h)?c.Ih(this.vc[h]):c.O(0)};n.prototype.Og=function(c){c.Ta(JSON.stringify({c2dictionary:!0,
data:this.vc}))};g.C=new n})();function tc(c){this.b=c}
(function(){function c(){this.name="";this.Xi=0;this.ub=[]}function p(){e++;e===b.length&&b.push(new c);return b[e]}function n(){return 0>e?null:b[e]}function g(){}function l(){}function k(){}var h=tc.prototype;h.J=function(b){this.V=b;this.b=b.b};h.J.prototype.G=function(){};h.I=function(b){this.type=b;this.b=b.b};var b=[],e=-1;h.I.prototype.G=function(){var b=this;window.c2_callFunction=function(a,c){var h,g,l,k=p();k.name=a.toLowerCase();k.Xi=0;if(c)for(k.ub.length=c.length,h=0,g=c.length;h<g;++h)l=
c[h],k.ub[h]="number"===typeof l||"string"===typeof l?l:"boolean"===typeof l?l?1:0:0;else E(k.ub);b.b.trigger(tc.prototype.j.Jl,b,k.name);e--;return k.Xi}};g.prototype.Jl=function(b){var a=n();return a?rb(b,a.name):!1};g.prototype.Xw=function(b,a,c){var e=n();if(!e)return!1;b=ta(b);return 0>b||b>=e.ub.length?!1:jc(e.ub[b],a,c)};h.j=new g;l.prototype.CallFunction=function(b,a){var c=p();c.name=b.toLowerCase();c.Xi=0;Fa(c.ub,a);this.b.trigger(tc.prototype.j.Jl,this,c.name);e--};l.prototype.Mz=function(b){var a=
n();a&&(a.Xi=b)};h.q=new l;k.prototype.Xy=function(b,a){a=ta(a);var c=n();c?0<=a&&a<c.ub.length?b.Ih(c.ub[a]):b.O(0):b.O(0)};k.prototype.Rr=function(b,a){var c=p();c.name=a.toLowerCase();c.Xi=0;E(c.ub);var h,g;h=2;for(g=arguments.length;h<g;h++)c.ub.push(arguments[h]);this.b.trigger(tc.prototype.j.Jl,this,c.name);e--;b.Ih(c.Xi)};h.C=new k})();function yc(c){this.b=c}
(function(){function c(){}function p(){}function n(c){c=Math.floor(c);switch(c){case 8:return"backspace";case 9:return"tab";case 13:return"enter";case 16:return"shift";case 17:return"control";case 18:return"alt";case 19:return"pause";case 20:return"capslock";case 27:return"esc";case 33:return"pageup";case 34:return"pagedown";case 35:return"end";case 36:return"home";case 37:return"\u2190";case 38:return"\u2191";case 39:return"\u2192";case 40:return"\u2193";case 45:return"insert";case 46:return"del";
case 91:return"left window key";case 92:return"right window key";case 93:return"select";case 96:return"numpad 0";case 97:return"numpad 1";case 98:return"numpad 2";case 99:return"numpad 3";case 100:return"numpad 4";case 101:return"numpad 5";case 102:return"numpad 6";case 103:return"numpad 7";case 104:return"numpad 8";case 105:return"numpad 9";case 106:return"numpad *";case 107:return"numpad +";case 109:return"numpad -";case 110:return"numpad .";case 111:return"numpad /";case 112:return"F1";case 113:return"F2";
case 114:return"F3";case 115:return"F4";case 116:return"F5";case 117:return"F6";case 118:return"F7";case 119:return"F8";case 120:return"F9";case 121:return"F10";case 122:return"F11";case 123:return"F12";case 144:return"numlock";case 145:return"scroll lock";case 186:return";";case 187:return"=";case 188:return",";case 189:return"-";case 190:return".";case 191:return"/";case 192:return"'";case 219:return"[";case 220:return"\\";case 221:return"]";case 222:return"#";case 223:return"`";default:return String.fromCharCode(c)}}
var g=yc.prototype;g.J=function(c){this.V=c;this.b=c.b};g.J.prototype.G=function(){};g.I=function(c){this.type=c;this.b=c.b;this.oh=Array(256);this.rl=Array(256);this.ef=0};var l=g.I.prototype;l.G=function(){var c=this;this.b.Da||(jQuery(document).keydown(function(b){c.BD(b)}),jQuery(document).keyup(function(b){c.CD(b)}))};var k=[32,33,34,35,36,37,38,39,40,44];l.BD=function(c){var b=!1;window!=window.top&&-1<k.indexOf(c.which)&&(c.preventDefault(),b=!0,c.stopPropagation());if(this.oh[c.which])this.rl[c.which]&&
!b&&c.preventDefault();else{this.oh[c.which]=!0;this.ef=c.which;this.b.fb=!0;this.b.trigger(yc.prototype.j.Xr,this);var e=this.b.trigger(yc.prototype.j.es,this),d=this.b.trigger(yc.prototype.j.Ay,this);this.b.fb=!1;if(e||d)this.rl[c.which]=!0,b||c.preventDefault()}};l.CD=function(c){this.oh[c.which]=!1;this.ef=c.which;this.b.fb=!0;this.b.trigger(yc.prototype.j.Fo,this);var b=this.b.trigger(yc.prototype.j.hs,this),e=this.b.trigger(yc.prototype.j.gs,this);this.b.fb=!1;if(b||e||this.rl[c.which])this.rl[c.which]=
!0,c.preventDefault()};l.Eh=function(){var c;for(c=0;256>c;++c)if(this.oh[c]){this.oh[c]=!1;this.ef=c;this.b.trigger(yc.prototype.j.Fo,this);var b=this.b.trigger(yc.prototype.j.hs,this),e=this.b.trigger(yc.prototype.j.gs,this);if(b||e)this.rl[c]=!0}};l.za=function(){return{triggerKey:this.ef}};l.Ka=function(c){this.ef=c.triggerKey};c.prototype.es=function(c){return c===this.ef};c.prototype.Xr=function(){return!0};c.prototype.Fo=function(){return!0};c.prototype.hs=function(c){return c===this.ef};c.prototype.Gx=
function(c){c=Math.floor(c);return 0>c||c>=this.oh.length?!1:this.oh[c]};c.prototype.Ay=function(c){return c===this.ef};c.prototype.gs=function(c){return c===this.ef};g.j=new c;g.q=new function(){};p.prototype.Px=function(c){c.O(this.ef)};p.prototype.aA=function(c,b){c.Ta(n(b))};g.C=new p})();var zc=!1;
try{!function(){var c,p,n;!function(){var g={},l={};c=function(c,h,b){g[c]={SA:h,GA:b}};n=p=function(c){function h(a){if("."!==a.charAt(0))return a;a=a.split("/");for(var b=c.split("/").slice(0,-1),d=0,e=a.length;e>d;d++){var f=a[d];".."===f?b.pop():"."!==f&&b.push(f)}return b.join("/")}if(n.rF=g,l[c])return l[c];if(l[c]={},!g[c])throw Error("Could not find module "+c);for(var b,e=g[c],d=e.SA,e=e.GA,a=[],f=0,m=d.length;m>f;f++)"exports"===d[f]?a.push(b={}):a.push(p(h(d[f])));d=e.apply(this,a);return l[c]=
b||d}}();c("promise/all",["./utils","exports"],function(c,l){var k=c.isArray,h=c.isFunction;l.all=function(b){if(!k(b))throw new TypeError("You must pass an array to all.");return new this(function(c,d){function a(a){return function(b){g[a]=b;0===--l&&c(g)}}var f,g=[],l=b.length;0===l&&c([]);for(var k=0;k<b.length;k++)(f=b[k])&&h(f.then)?f.then(a(k),d):(g[k]=f,0===--l&&c(g))})}});c("promise/asap",["exports"],function(c){function l(){return function(){process.IF(b)}}function k(){var d=0,c=new a(b),
e=document.createTextNode("");return c.observe(e,{characterData:!0}),function(){e.data=d=++d%2}}function h(){return function(){f.setTimeout(b,1)}}function b(){for(var a=0;a<m.length;a++){var b=m[a];(0,b[0])(b[1])}m=[]}var e,d="undefined"!=typeof window?window:{},a=d.MutationObserver||d.WebKitMutationObserver,f="undefined"!=typeof global?global:void 0===this?window:this,m=[];e="undefined"!=typeof process&&"[object process]"==={}.toString.call(process)?l():a?k():h();c.wA=function(a,b){1===m.push([a,
b])&&e()}});c("promise/config",["exports"],function(c){var l={AF:!1};c.$s=l;c.LA=function(c,g){return 2!==arguments.length?l[c]:void(l[c]=g)}});c("promise/polyfill",["./promise","./utils","exports"],function(c,l,k){var h=c.Promise,b=l.isFunction;k.MD=function(){var c;c="undefined"!=typeof global?global:"undefined"!=typeof window&&window.document?window:self;"Promise"in c&&"resolve"in c.Promise&&"reject"in c.Promise&&"all"in c.Promise&&"race"in c.Promise&&function(){var d;return new c.Promise(function(a){d=
a}),b(d)}()||(c.Promise=h)}});c("promise/promise","./config ./utils ./all ./race ./resolve ./reject ./asap exports".split(" "),function(c,l,k,h,b,e,d,a){function f(a){if(!N(a))throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");if(!(this instanceof f))throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this.Tl=[];m(a,this)}function m(a,b){function d(a){q(b,
a)}function c(a){B(b,a)}try{a(d,c)}catch(e){c(e)}}function n(a,b,d,c){var e,f,g,h,l=N(d);if(l)try{e=d(c),g=!0}catch(k){h=!0,f=k}else e=c,g=!0;w(b,e)||(l&&g?q(b,e):h?B(b,f):a===x?q(b,e):a===X&&B(b,e))}function p(a,b,d,c){a=a.Tl;var e=a.length;a[e]=b;a[e+x]=d;a[e+X]=c}function z(a,b){for(var d,c,e=a.Tl,f=a.Sl,g=0;g<e.length;g+=3)d=e[g],c=e[g+b],n(b,d,c,f);a.Tl=null}function w(a,b){var d,c=null;try{if(a===b)throw new TypeError("A promises callback cannot return that same promise.");if(C(b)&&(c=b.then,
N(c)))return c.call(b,function(c){return d?!0:(d=!0,void(b!==c?q(a,c):u(a,c)))},function(b){return d?!0:(d=!0,void B(a,b))}),!0}catch(e){return d?!0:(B(a,e),!0)}return!1}function q(a,b){a===b?u(a,b):w(a,b)||u(a,b)}function u(a,b){a.jf===D&&(a.jf=O,a.Sl=b,y.async(H,a))}function B(a,b){a.jf===D&&(a.jf=O,a.Sl=b,y.async(t,a))}function H(a){z(a,a.jf=x)}function t(a){z(a,a.jf=X)}var y=c.$s,C=(c.LA,l.wD),N=l.isFunction;c=(l.now,k.all);h=h.race;b=b.resolve;e=e.reject;y.async=d.wA;var D=void 0,O=0,x=1,X=2;
f.prototype={constructor:f,jf:void 0,Sl:void 0,Tl:void 0,then:function(a,b){var d=this,c=new this.constructor(function(){});if(this.jf){var e=arguments;y.async(function(){n(d.jf,c,e[d.jf-1],d.Sl)})}else p(this,c,a,b);return c},"catch":function(a){return this.then(null,a)}};f.all=c;f.race=h;f.resolve=b;f.reject=e;a.Promise=f});c("promise/race",["./utils","exports"],function(c,l){var k=c.isArray;l.race=function(c){if(!k(c))throw new TypeError("You must pass an array to race.");return new this(function(b,
e){for(var d,a=0;a<c.length;a++)(d=c[a])&&"function"==typeof d.then?d.then(b,e):b(d)})}});c("promise/reject",["exports"],function(c){c.reject=function(c){return new this(function(g,h){h(c)})}});c("promise/resolve",["exports"],function(c){c.resolve=function(c){return c&&"object"==typeof c&&c.constructor===this?c:new this(function(g){g(c)})}});c("promise/utils",["exports"],function(c){function l(c){return"function"==typeof c}var k=Date.now||function(){return(new Date).getTime()};c.wD=function(c){return l(c)||
"object"==typeof c&&null!==c};c.isFunction=l;c.isArray=function(c){return"[object Array]"===Object.prototype.toString.call(c)};c.now=k});p("promise/polyfill").MD()}();var Ac=function(){return function(c){function p(g){if(n[g])return n[g].Ee;var l=n[g]={Ee:{},id:g,loaded:!1};return c[g].call(l.Ee,l,l.Ee,p),l.loaded=!0,l.Ee}var n={};return p.nf=c,p.zj=n,p.hk="",p(0)}([function(c,p,n){p.Rl=!0;var g=function(c){function g(a,b){a[b]=function(){var c=arguments;return a.ready().then(function(){return a[b].apply(a,
c)})}}function h(){for(var a=1;a<arguments.length;a++){var b=arguments[a];if(b)for(var c in b)b.hasOwnProperty(c)&&(p(b[c])?arguments[0][c]=b[c].slice():arguments[0][c]=b[c])}return arguments[0]}function b(a){for(var b in d)if(d.hasOwnProperty(b)&&d[b]===a)return!0;return!1}var e={},d={nj:"asyncStorage",oj:"localStorageWrapper",sj:"webSQLStorage"},a="clear getItem iterate key keys length removeItem setItem".split(" "),f={description:"",gi:[d.nj,d.sj,d.oj].slice(),name:"localforage",size:4980736,Ma:"keyvaluepairs",
version:1},m=function(a){var b={},c;try{var e=e||a.indexedDB||a.webkitIndexedDB||a.mozIndexedDB||a.jq||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.nj]=!!c;var g;try{g=a.openDatabase}catch(h){g=!1}b[d.sj]=!!g;var l;try{l=a.localStorage&&"setItem"in a.localStorage&&a.localStorage.setItem}catch(k){l=
!1}return b[d.oj]=!!l,b}(c),p=Array.isArray||function(a){return"[object Array]"===Object.prototype.toString.call(a)};return new (function(){function c(a){if(!(this instanceof c))throw new TypeError("Cannot call a class as a function");this.nj=d.nj;this.oj=d.oj;this.sj=d.sj;this.So=h({},f);this.Pg=h({},this.So,a);this.Ds=this.Ce=null;this.eg=!1;this.Ha=null;this.Fs();this.Gv(this.Pg.gi)}return c.prototype.$s=function(a){if("object"==typeof a){if(this.eg)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.Pg[b]=a[b];return"driver"in a&&a.gi&&this.Gv(this.Pg.gi),!0}return"string"==typeof a?this.Pg[a]:this.Pg},c.prototype.gi=function(){return this.tj||null},c.prototype.Gt=function(a,c,d){var f=this,g=function(){if(b(a))switch(a){case f.nj:return new Promise(function(a){a(n(1))});case f.oj:return new Promise(function(a){a(n(2))});case f.sj:return new Promise(function(a){a(n(4))})}else if(e[a])return Promise.resolve(e[a]);return Promise.reject(Error("Driver not found."))}();
return g.then(c,d),g},c.prototype.ready=function(a){var b=this,c=b.Ce.then(function(){return null===b.eg&&(b.eg=b.Ds()),b.eg});return c.then(a,a),c},c.prototype.Gv=function(a,b,c){function d(){f.Pg.gi=f.gi()}function e(a){return function(){function b(){for(;c<a.length;){var e=a[c];return c++,f.Ha=null,f.eg=null,f.Gt(e).then(function(a){return f.mA(a),d(),f.eg=f.Uo(f.Pg),f.eg})["catch"](b)}d();return f.Ce=Promise.reject(Error("No available storage method found.")),f.Ce}var c=0;return b()}}var f=this;
p(a)||(a=[a]);var g=this.nA(a);return this.Ce=(null!==this.Ce?this.Ce["catch"](function(){return Promise.resolve()}):Promise.resolve()).then(function(){var a=g[0];return f.Ha=null,f.eg=null,f.Gt(a).then(function(a){f.tj=a.tj;d();f.Fs();f.Ds=e(g)})})["catch"](function(){d();return f.Ce=Promise.reject(Error("No available storage method found.")),f.Ce}),this.Ce.then(b,c),this.Ce},c.prototype.supports=function(a){return!!m[a]},c.prototype.mA=function(a){h(this,a)},c.prototype.nA=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},c.prototype.Fs=function(){for(var b=0;b<a.length;b++)g(this,a[b])},c.prototype.km=function(a){return new c(a)},c}())}("undefined"!=typeof window?window:self);p["default"]=g;c.Ee=p["default"]},function(c,p){p.Rl=!0;p["default"]=function(c){function g(a,b){a=a||[];b=b||{};try{return new Blob(a,b)}catch(d){if("TypeError"!==d.name)throw d;for(var e=new (c.BlobBuilder||c.nf||c.hk||c.WebKitBlobBuilder),f=0;f<a.length;f+=1)e.append(a[f]);
return e.getBlob(b.type)}}function l(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 k(a){return(new Promise(function(b,c){var d=g([""],{type:"image/png"}),e=a.transaction([D],"readwrite");e.objectStore(D).put(d,
"key");e.oncomplete=function(){var d=a.transaction([D],"readwrite").objectStore(D).get("key");d.onerror=c;d.onsuccess=function(a){var c=URL.createObjectURL(a.target.result);l(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 h(a){return"boolean"==typeof C?Promise.resolve(C):k(a).then(function(a){return C=a})}function b(a){return new Promise(function(b,c){var d=new FileReader;
d.onerror=c;d.onloadend=function(c){b({Cs:!0,data:btoa(c.target.result||""),type:a.type})};d.readAsBinaryString(a)})}function e(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 g([d],{type:a.type})}function d(a){var b=this,c=b.To().then(function(){var a=N[b.Ha.name];return a&&a.ei?a.ei:void 0});return c.then(a,a),c}function a(a){a=N[a.name];var b={};b.promise=new Promise(function(a){b.resolve=a});a.ft.push(b);a.ei?a.ei=a.ei.then(function(){return b.promise}):
a.ei=b.promise}function f(a){function b(){return Promise.resolve()}var e=this,f={db:null};if(a)for(var g in a)f[g]=a[g];N||(N={});var h=N[f.name];h||(h={Fm:[],db:null,ei:null,ft:[]},N[f.name]=h);h.Fm.push(e);e.To||(e.To=e.ready,e.ready=d);a=[];for(g=0;g<h.Fm.length;g++){var l=h.Fm[g];l!==e&&a.push(l.To()["catch"](b))}var k=h.Fm.slice(0);return Promise.all(a).then(function(){return f.db=h.db,m(f,!1)}).then(function(a){f.db=a;var b;b=e.So.version;if(f.db){var d=!f.db.objectStoreNames.contains(f.Ma),
g=f.version>f.db.version;(f.version<f.db.version&&(f.version!==b&&c.console.warn('The database "'+f.name+"\" can't be downgraded from version "+f.db.version+" to version "+f.version+"."),f.version=f.db.version),g||d)?(d&&(b=f.db.version+1,b>f.version&&(f.version=b)),b=!0):b=!1}else b=!0;return b?m(f,!0):a}).then(function(a){f.db=h.db=a;e.Ha=f;for(a=0;a<k.length;a++){var b=k[a];b!==e&&(b.Ha.db=f.db,b.Ha.version=f.version)}})}function m(b,d){return new Promise(function(e,f){if(b.db){if(!d)return e(b.db);
a(b);b.db.close()}var g=[b.name];d&&g.push(b.version);var h=y.open.apply(y,g);d&&(h.onupgradeneeded=function(a){var d=h.result;try{d.createObjectStore(b.Ma),1>=a.oldVersion&&d.createObjectStore(D)}catch(e){if("ConstraintError"!==e.name)throw e;c.console.warn('The database "'+b.name+'" has been upgraded from version '+a.oldVersion+" to version "+a.newVersion+', but the storage "'+b.Ma+'" already exists.')}});h.onerror=function(){f(h.error)};h.onsuccess=function(){e(h.result);var a=N[b.name].ft.pop();
a&&a.resolve()}})}function p(a,b){var d=this;"string"!=typeof a&&(c.console.warn(a+" used as a key, but it is not a string."),a=String(a));var f=new Promise(function(b,c){d.ready().then(function(){var f=d.Ha,g=f.db.transaction(f.Ma,"readonly").objectStore(f.Ma).get(a);g.onsuccess=function(){var a=g.result;void 0===a&&(a=null);a&&a.Cs&&(a=e(a));b(a)};g.onerror=function(){c(g.error)}})["catch"](c)});return t(f,b),f}function F(a,b){var c=this,d=new Promise(function(b,d){c.ready().then(function(){var f=
c.Ha,g=f.db.transaction(f.Ma,"readonly").objectStore(f.Ma).openCursor(),h=1;g.onsuccess=function(){var c=g.result;if(c){var d=c.value;d&&d.Cs&&(d=e(d));d=a(d,c.key,h++);void 0!==d?b(d):c["continue"]()}else b()};g.onerror=function(){d(g.error)}})["catch"](d)});return t(d,b),d}function z(a,d,e){var f=this;"string"!=typeof a&&(c.console.warn(a+" used as a key, but it is not a string."),a=String(a));var g=new Promise(function(c,e){var g;f.ready().then(function(){return g=f.Ha,d instanceof Blob?h(g.db).then(function(a){return a?
d:b(d)}):d}).then(function(b){var d=g.db.transaction(g.Ma,"readwrite"),f=d.objectStore(g.Ma);null===b&&(b=void 0);d.oncomplete=function(){void 0===b&&(b=null);c(b)};d.onabort=d.onerror=function(){e(h.error?h.error:h.transaction.error)};var h=f.put(b,a)})["catch"](e)});return t(g,e),g}function w(a,b){var d=this;"string"!=typeof a&&(c.console.warn(a+" used as a key, but it is not a string."),a=String(a));var e=new Promise(function(b,c){d.ready().then(function(){var e=d.Ha,f=e.db.transaction(e.Ma,"readwrite"),
g=f.objectStore(e.Ma)["delete"](a);f.oncomplete=function(){b()};f.onerror=function(){c(g.error)};f.onabort=function(){c(g.error?g.error:g.transaction.error)}})["catch"](c)});return t(e,b),e}function q(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.Ha,e=d.db.transaction(d.Ma,"readwrite"),f=e.objectStore(d.Ma).clear();e.oncomplete=function(){a()};e.onabort=e.onerror=function(){c(f.error?f.error:f.transaction.error)}})["catch"](c)});return t(c,a),c}function u(a){var b=this,
c=new Promise(function(a,c){b.ready().then(function(){var d=b.Ha,e=d.db.transaction(d.Ma,"readonly").objectStore(d.Ma).count();e.onsuccess=function(){a(e.result)};e.onerror=function(){c(e.error)}})["catch"](c)});return t(c,a),c}function B(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.Ha,f=!1,g=e.db.transaction(e.Ma,"readonly").objectStore(e.Ma).openCursor();g.onsuccess=function(){var c=g.result;return c?void(0===a?b(c.key):f?b(c.key):(f=
!0,c.advance(a))):void b(null)};g.onerror=function(){d(g.error)}})["catch"](d)});return t(d,b),d}function H(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.Ha,e=d.db.transaction(d.Ma,"readonly").objectStore(d.Ma).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 t(c,a),c}function t(a,b){b&&a.then(function(a){b(null,a)},function(a){b(a)})}var y=y||c.indexedDB||
c.webkitIndexedDB||c.mozIndexedDB||c.jq||c.msIndexedDB;if(y){var C,N,D="local-forage-detect-blob-support";return{tj:"asyncStorage",Uo:f,mu:F,getItem:p,setItem:z,removeItem:w,clear:q,length:u,key:B,keys:H}}}("undefined"!=typeof window?window:self);c.Ee=p["default"]},function(c,p,n){p.Rl=!0;p["default"]=function(c){function l(b,c){c&&b.then(function(b){c(null,b)},function(b){c(b)})}var k=null;try{if(!(c.localStorage&&"setItem"in c.localStorage))return;k=c.localStorage}catch(h){return}return{tj:"localStorageWrapper",
Uo:function(b){var c={};if(b)for(var d in b)c[d]=b[d];return c.Pe=c.name+"/",c.Ma!==this.So.Ma&&(c.Pe+=c.Ma+"/"),this.Ha=c,(new Promise(function(a){a(n(3))})).then(function(a){return c.Hh=a,Promise.resolve()})},mu:function(b,c){var d=this,a=d.ready().then(function(){for(var a=d.Ha,c=a.Pe,e=c.length,g=k.length,h=1,l=0;g>l;l++){var q=k.key(l);if(0===q.indexOf(c)){var n=k.getItem(q);if(n&&(n=a.Hh.vm(n)),n=b(n,q.substring(e),h++),void 0!==n)return n}}});return l(a,c),a},getItem:function(b,e){var d=this;
"string"!=typeof b&&(c.console.warn(b+" used as a key, but it is not a string."),b=String(b));var a=d.ready().then(function(){var a=d.Ha,c=k.getItem(a.Pe+b);return c&&(c=a.Hh.vm(c)),c});return l(a,e),a},setItem:function(b,e,d){var a=this;"string"!=typeof b&&(c.console.warn(b+" used as a key, but it is not a string."),b=String(b));var f=a.ready().then(function(){void 0===e&&(e=null);var c=e;return new Promise(function(d,f){var g=a.Ha;g.Hh.serialize(e,function(a,e){if(e)f(e);else try{k.setItem(g.Pe+
b,a),d(c)}catch(h){"QuotaExceededError"!==h.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==h.name||f(h),f(h)}})})});return l(f,d),f},removeItem:function(b,e){var d=this;"string"!=typeof b&&(c.console.warn(b+" used as a key, but it is not a string."),b=String(b));var a=d.ready().then(function(){k.removeItem(d.Ha.Pe+b)});return l(a,e),a},clear:function(b){var c=this,d=c.ready().then(function(){for(var a=c.Ha.Pe,b=k.length-1;0<=b;b--){var d=k.key(b);0===d.indexOf(a)&&k.removeItem(d)}});return l(d,b),d},length:function(b){var c=
this.keys().then(function(b){return b.length});return l(c,b),c},key:function(b,c){var d=this,a=d.ready().then(function(){var a,c=d.Ha;try{a=k.key(b)}catch(e){a=null}return a&&(a=a.substring(c.Pe.length)),a});return l(a,c),a},keys:function(b){var c=this,d=c.ready().then(function(){for(var a=c.Ha,b=k.length,d=[],g=0;b>g;g++)0===k.key(g).indexOf(a.Pe)&&d.push(k.key(g).substring(a.Pe.length));return d});return l(d,b),d}}}("undefined"!=typeof window?window:self);c.Ee=p["default"]},function(c,p){p.Rl=!0;
p["default"]=function(c){function g(b){var c,d,a,f,g;c=.75*b.length;var h=b.length,l=0;"="===b[b.length-1]&&(c--,"="===b[b.length-2]&&c--);var n=new ArrayBuffer(c),p=new Uint8Array(n);for(c=0;h>c;c+=4)d=k.indexOf(b[c]),a=k.indexOf(b[c+1]),f=k.indexOf(b[c+2]),g=k.indexOf(b[c+3]),p[l++]=d<<2|a>>4,p[l++]=(15&a)<<4|f>>2,p[l++]=(3&f)<<6|63&g;return n}function l(b){var c=new Uint8Array(b),d="";for(b=0;b<c.length;b+=3)d+=k[c[b]>>2],d+=k[(3&c[b])<<4|c[b+1]>>4],d+=k[(15&c[b+1])<<2|c[b+2]>>6],d+=k[63&c[b+2]];
return 2===c.length%3?d=d.substring(0,d.length-1)+"=":1===c.length%3&&(d=d.substring(0,d.length-2)+"=="),d}var k="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h=/^~~local_forage_type~([^~]+)~/;return{serialize:function(b,c){var d="";if(b&&(d=b.toString()),b&&("[object ArrayBuffer]"===b.toString()||b.buffer&&"[object ArrayBuffer]"===b.buffer.toString())){var a,f="__lfsc__:";b instanceof ArrayBuffer?(a=b,f+="arbf"):(a=b.buffer,"[object Int8Array]"===d?f+="si08":"[object Uint8Array]"===
d?f+="ui08":"[object Uint8ClampedArray]"===d?f+="uic8":"[object Int16Array]"===d?f+="si16":"[object Uint16Array]"===d?f+="ur16":"[object Int32Array]"===d?f+="si32":"[object Uint32Array]"===d?f+="ui32":"[object Float32Array]"===d?f+="fl32":"[object Float64Array]"===d?f+="fl64":c(Error("Failed to get type for BinaryArray")));c(f+l(a))}else if("[object Blob]"===d)d=new FileReader,d.onload=function(){var a="~~local_forage_type~"+b.type+"~"+l(this.result);c("__lfsc__:blob"+a)},d.readAsArrayBuffer(b);else try{c(JSON.stringify(b))}catch(g){console.error("Couldn't convert value into a JSON string: ",
b),c(null,g)}},vm:function(b){if("__lfsc__:"!==b.substring(0,9))return JSON.parse(b);var e,d=b.substring(13);b=b.substring(9,13);if("blob"===b&&h.test(d)){var a=d.match(h);e=a[1];d=d.substring(a[0].length)}d=g(d);switch(b){case "arbf":return d;case "blob":var f;d=[d];e={type:e};d=d||[];e=e||{};try{f=new Blob(d,e)}catch(l){if("TypeError"!==l.name)throw l;f=new (c.BlobBuilder||c.nf||c.hk||c.WebKitBlobBuilder);for(b=0;b<d.length;b+=1)f.append(d[b]);f=f.getBlob(e.type)}return f;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: "+b);}},QF:g,uF:l}}("undefined"!=typeof window?window:self);c.Ee=p["default"]},function(c,p,n){p.Rl=!0;p["default"]=function(c){function l(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=F(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.Ma+" (id INTEGER PRIMARY KEY, key unique, value)",[],function(){b.Ha=c;a()},function(a,b){d(b)})})});return(new Promise(function(a){a(n(3))})).then(function(a){return c.Hh=a,e})}function k(a,b){var d=this;"string"!=typeof a&&(c.console.warn(a+" used as a key, but it is not a string."),
a=String(a));var e=new Promise(function(b,c){d.ready().then(function(){var e=d.Ha;e.db.transaction(function(d){d.executeSql("SELECT * FROM "+e.Ma+" WHERE key = ? LIMIT 1",[a],function(a,c){var d=c.rows.length?c.rows.item(0).value:null;d&&(d=e.Hh.vm(d));b(d)},function(a,b){c(b)})})})["catch"](c)});return p(e,b),e}function h(a,b){var c=this,d=new Promise(function(b,d){c.ready().then(function(){var e=c.Ha;e.db.transaction(function(c){c.executeSql("SELECT * FROM "+e.Ma,[],function(c,d){for(var f=d.rows,
g=f.length,h=0;g>h;h++){var l=f.item(h),k=l.value;if(k&&(k=e.Hh.vm(k)),k=a(k,l.key,h+1),void 0!==k)return void b(k)}b()},function(a,b){d(b)})})})["catch"](d)});return p(d,b),d}function b(a,b,d){var e=this;"string"!=typeof a&&(c.console.warn(a+" used as a key, but it is not a string."),a=String(a));var f=new Promise(function(c,d){e.ready().then(function(){void 0===b&&(b=null);var f=b,g=e.Ha;g.Hh.serialize(b,function(b,e){e?d(e):g.db.transaction(function(e){e.executeSql("INSERT OR REPLACE INTO "+g.Ma+
" (key, value) VALUES (?, ?)",[a,b],function(){c(f)},function(a,b){d(b)})},function(a){a.code===a.QUOTA_ERR&&d(a)})})})["catch"](d)});return p(f,d),f}function e(a,b){var d=this;"string"!=typeof a&&(c.console.warn(a+" used as a key, but it is not a string."),a=String(a));var e=new Promise(function(b,c){d.ready().then(function(){var e=d.Ha;e.db.transaction(function(d){d.executeSql("DELETE FROM "+e.Ma+" WHERE key = ?",[a],function(){b()},function(a,b){c(b)})})})["catch"](c)});return p(e,b),e}function d(a){var b=
this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.Ha;d.db.transaction(function(b){b.executeSql("DELETE FROM "+d.Ma,[],function(){a()},function(a,b){c(b)})})})["catch"](c)});return p(c,a),c}function a(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.Ha;d.db.transaction(function(b){b.executeSql("SELECT COUNT(key) as c FROM "+d.Ma,[],function(b,c){var d=c.rows.item(0).zj;a(d)},function(a,b){c(b)})})})["catch"](c)});return p(c,a),c}function f(a,b){var c=this,
d=new Promise(function(b,d){c.ready().then(function(){var e=c.Ha;e.db.transaction(function(c){c.executeSql("SELECT key FROM "+e.Ma+" 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 p(d,b),d}function m(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.Ha;d.db.transaction(function(b){b.executeSql("SELECT key FROM "+d.Ma,[],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 p(c,a),c}function p(a,b){b&&a.then(function(a){b(null,a)},function(a){b(a)})}var F=c.openDatabase;if(F)return{tj:"webSQLStorage",Uo:l,mu:h,getItem:k,setItem:b,removeItem:e,clear:d,length:a,key:f,keys:m}}("undefined"!=typeof window?window:self);c.Ee=p["default"]}])};"object"==typeof exports&&"object"==typeof module?module.Ee=Ac():"function"==typeof define&&define.tF?define([],Ac):"object"==typeof exports?exports.localforage=Ac():this.localforage=
Ac()}catch(Bc){zc=!0}function Cc(c){this.b=c}
(function(){function c(b){b.b.trigger(Cc.prototype.j.Il,b)}function p(){}function n(){}function g(){}var l="",k="",h="";"undefined"!==typeof window.is_scirra_arcade&&(h="sa"+window.scirra_arcade_id+"_");var b=Cc.prototype;b.J=function(b){this.V=b;this.b=b.b};b.J.prototype.G=function(){};b.I=function(b){this.type=b;this.b=b.b};var e=b.I.prototype;e.G=function(){this.Qq=0};e.Md=function(){};e.za=function(){return{}};e.Ka=function(){};p.prototype.zy=function(b){return l===b};p.prototype.ey=function(){return!0};
p.prototype.by=function(){return!0};p.prototype.yy=function(b){return l===b};p.prototype.cy=function(){return!0};p.prototype.Il=function(){return!0};p.prototype.cs=function(b){return l===b};p.prototype.ds=function(b){return l===b};p.prototype.Sr=function(b,a){return jc(k,b,a)};p.prototype.Xx=function(){return!0};b.j=new p;n.prototype.Az=function(b,a){if(zc)c(this);else{var e=h+b;this.Qq++;var g=this;localforage.setItem(e,a,function(a,c){g.Qq--;a?g.b.trigger(Cc.prototype.j.Il,g):(l=b,k=c,g.b.trigger(Cc.prototype.j.ey,
g),g.b.trigger(Cc.prototype.j.zy,g),k=l="");0===g.Qq&&g.b.trigger(Cc.prototype.j.Xx,g)})}};n.prototype.Mw=function(b){if(zc)c(this);else{var a=this;localforage.getItem(h+b,function(c,e){c?a.b.trigger(Cc.prototype.j.Il,a):(l=b,null===e?(k="",a.b.trigger(Cc.prototype.j.ds,a)):(k=e,a.b.trigger(Cc.prototype.j.cs,a)),k=l="")})}};n.prototype.ez=function(b){if(zc)c(this);else{var a=this;localforage.removeItem(h+b,function(c){c?a.b.trigger(Cc.prototype.j.Il,a):(l=b,k="",a.b.trigger(Cc.prototype.j.cy,a),a.b.trigger(Cc.prototype.j.yy,
a),l="")})}};b.q=new n;g.prototype.Mx=function(b){b.Ih(k)};b.C=new g})();function Dc(c){this.b=c}
(function(){function c(){}function p(){}function n(){}var g=Dc.prototype;g.J=function(b){this.V=b;this.b=b.b};g.J.prototype.G=function(){};g.I=function(b){this.type=b;this.b=b.b;this.$h=Array(4);this.fw=this.ro=this.Mh=this.Hf=this.Gf=0;this.Pm=!1};var l=g.I.prototype;l.G=function(){var b=this;if(!this.b.Da){jQuery(document).mousemove(function(c){b.Ek(c)});jQuery(document).mousedown(function(c){b.Dk(c)});jQuery(document).mouseup(function(c){b.Fk(c)});jQuery(document).dblclick(function(c){b.zD(c)});
var c=function(c){b.HD(c)};document.addEventListener("mousewheel",c,!1);document.addEventListener("DOMMouseScroll",c,!1)}};var k={left:0,top:0};l.Ek=function(b){var c=this.b.Da?k:jQuery(this.b.canvas).offset();this.Gf=b.pageX-c.left;this.Hf=b.pageY-c.top};l.Qu=function(){return 0<this.b.xc?!0:0<=this.Gf&&0<=this.Hf&&this.Gf<this.b.width&&this.Hf<this.b.height};l.Dk=function(b){this.Qu()&&(this.$h[b.which]=!0,this.b.fb=!0,this.b.trigger(Dc.prototype.j.ay,this),this.Mh=b.which-1,this.ro=0,this.b.trigger(Dc.prototype.j.Yr,
this),this.b.trigger(Dc.prototype.j.qs,this),this.b.fb=!1)};l.Fk=function(b){this.$h[b.which]&&(this.b.Om&&!this.b.ne&&b.preventDefault(),this.b.Om=!0,this.$h[b.which]=!1,this.b.fb=!0,this.Mh=b.which-1,this.b.trigger(Dc.prototype.j.us,this),this.b.fb=!1)};l.zD=function(b){this.Qu()&&(b.preventDefault(),this.b.fb=!0,this.Mh=b.which-1,this.ro=1,this.b.trigger(Dc.prototype.j.Yr,this),this.b.trigger(Dc.prototype.j.qs,this),this.b.fb=!1)};l.HD=function(b){this.fw=0>(b.wheelDelta?b.wheelDelta:b.detail?
-b.detail:0)?0:1;this.Pm=!1;this.b.fb=!0;this.b.trigger(Dc.prototype.j.Wy,this);this.b.fb=!1;this.Pm&&sb(b)&&b.preventDefault()};l.Eh=function(){var b,c;b=0;for(c=this.$h.length;b<c;++b)this.$h[b]&&(this.$h[b]=!1,this.Mh=b-1,this.b.trigger(Dc.prototype.j.us,this))};c.prototype.Yr=function(b,c){return b===this.Mh&&c===this.ro};c.prototype.ay=function(){return!0};c.prototype.us=function(b){return b===this.Mh};c.prototype.Ix=function(b){var c=this.b.xf();return Xa(this.b.cj(b,this.Gf,this.Hf,c.si),c.si)};
c.prototype.qs=function(b,c,d){return b!==this.Mh||c!==this.ro?!1:this.b.cj(d,this.Gf,this.Hf,!1)};c.prototype.Wy=function(b){this.Pm=!0;return b===this.fw};g.j=new c;var h=null;p.prototype.uz=function(b){this.b.Da||(b="auto pointer text crosshair move help wait none".split(" ")[b],h!==b&&(h=b,document.body.style.cursor=b))};g.q=new p;n.prototype.Vh=function(b,c){var d,a,f,g,h;ha(c)?(d=this.b.Le(0),a=d.scale,f=d.Dc,g=d.pc,h=d.u,d.scale=1,d.Dc=1,d.pc=1,d.u=0,b.H(d.bb(this.Gf,this.Hf,!0)),d.scale=a,
d.Dc=f,d.pc=g,d.u=h):(d=A(c)?this.b.Le(c):this.b.mi(c))?b.H(d.bb(this.Gf,this.Hf,!0)):b.H(0)};n.prototype.Wh=function(b,c){var d,a,f,g,h;ha(c)?(d=this.b.Le(0),a=d.scale,f=d.Dc,g=d.qc,h=d.u,d.scale=1,d.Dc=1,d.qc=1,d.u=0,b.H(d.bb(this.Gf,this.Hf,!1)),d.scale=a,d.Dc=f,d.qc=g,d.u=h):(d=A(c)?this.b.Le(c):this.b.mi(c))?b.H(d.bb(this.Gf,this.Hf,!1)):b.H(0)};g.C=new n})();function Ec(c){this.b=c}
(function(){function c(c,g,h,b,e,d,a,f,m,n){c.save();c.fillStyle=g;g=e%h;var p=d%b;0>g&&(g+=h);0>p&&(p+=b);c.translate(g+m,p+n);c.fillRect(e-g-m,d-p-n,a,f);c.restore()}function p(){}var n=Ec.prototype;n.J=function(c){this.V=c;this.b=c.b};var g=n.J.prototype;g.G=function(){this.S||(this.M=new Image,this.M.jm=this.ll,this.b.Kr(this.M,this.kl),this.xl=this.Al=this.zl=this.yl=this.mj=this.da=this.Rs=this.ew=this.zv=this.tu=this.yp=null)};g.Ti=function(){this.S||(this.xl=this.Al=this.zl=this.yl=this.mj=
this.da=null)};g.tn=function(){this.S||!this.n.length||this.da||(this.da=this.b.F.Kd(this.M,!0,this.b.Qa,this.ej))};g.uo=function(){this.S||this.n.length||!this.b.F||(this.b.F.deleteTexture(this.da),this.b.F.deleteTexture(this.mj),this.b.F.deleteTexture(this.yl),this.b.F.deleteTexture(this.zl),this.b.F.deleteTexture(this.Al),this.b.F.deleteTexture(this.xl),this.xl=this.Al=this.zl=this.yl=this.mj=this.da=null)};g.$e=function(c,g,h,b){var e=document.createElement("canvas");h=h-c;b=b-g;e.width=h;e.height=
b;e.getContext("2d").drawImage(this.M,c,g,h,b,0,0,h,b);return e};g.QA=function(c,g,h,b){var e=this.M.width,d=this.M.height,a=e-g,f=d-b;if(this.b.F){if(!this.mj){var m=this.b.F,n=this.b.Qa,p=this.ej;a>c&&f>h&&(this.mj=m.Kd(this.$e(c,h,a,f),!0,n,p));0<c&&f>h&&(this.yl=m.Kd(this.$e(0,h,c,f),!0,n,p,"repeat-y"));0<g&&f>h&&(this.zl=m.Kd(this.$e(a,h,e,f),!0,n,p,"repeat-y"));0<h&&a>c&&(this.Al=m.Kd(this.$e(c,0,a,h),!0,n,p,"repeat-x"));0<b&&a>c&&(this.xl=m.Kd(this.$e(c,f,a,d),!0,n,p,"repeat-x"))}}else this.yp||
(m=this.b.Ja,a>c&&f>h&&(this.yp=m.createPattern(this.$e(c,h,a,f),"repeat")),0<c&&f>h&&(this.tu=m.createPattern(this.$e(0,h,c,f),"repeat")),0<g&&f>h&&(this.zv=m.createPattern(this.$e(a,h,e,f),"repeat")),0<h&&a>c&&(this.ew=m.createPattern(this.$e(c,0,a,h),"repeat")),0<b&&a>c&&(this.Rs=m.createPattern(this.$e(c,f,a,d),"repeat")))};n.I=function(c){this.type=c;this.b=c.b};g=n.I.prototype;g.G=function(){this.pq=this.B[0];this.cr=this.B[1];this.ur=this.B[2];this.dp=this.B[3];this.ym=this.B[4];this.fill=
this.B[5];this.visible=0===this.B[6];this.Cv=0!==this.B[8];this.Yb?this.Lc.set(0,0,0,0):this.Lc=new wa(0,0,0,0);this.b.F&&!this.type.da&&(this.type.da=this.b.F.Kd(this.type.M,!1,this.b.Qa,this.type.ej));this.type.QA(this.pq,this.cr,this.ur,this.dp)};g.wc=function(g){var k=this.type.M,h=this.pq,b=this.cr,e=this.ur,d=this.dp,a=k.width,f=k.height,m=a-b,n=f-d;g.globalAlpha=this.opacity;g.save();var p=this.x,z=this.y,w=this.width,q=this.height;this.b.Cc&&(p=Math.round(p),z=Math.round(z));var u=-(this.Ac*
this.width),B=-(this.Bc*this.height),H=u%a,t=B%f;0>H&&(H+=a);0>t&&(t+=f);g.translate(p+H,z+t);a=u-H;B-=t;t=this.Cv?1:0;0<h&&0<e&&g.drawImage(k,0,0,h+t,e+t,a,B,h+t,e+t);0<b&&0<e&&g.drawImage(k,m-t,0,b+t,e+t,a+w-b-t,B,b+t,e+t);0<b&&0<d&&g.drawImage(k,m-t,n-t,b+t,d+t,a+w-b-t,B+q-d-t,b+t,d+t);0<h&&0<d&&g.drawImage(k,0,n-t,h+t,d+t,a,B+q-d-t,h+t,d+t);0===this.ym?(t=2===this.fill?0:t,0<h&&n>e&&c(g,this.type.tu,h,n-e,a,B+e,h+t,q-e-d,0,0),0<b&&n>e&&c(g,this.type.zv,b,n-e,a+w-b-t,B+e,b+t,q-e-d,t,0),0<e&&m>
h&&c(g,this.type.ew,m-h,e,a+h,B,w-h-b,e+t,0,0),0<d&&m>h&&c(g,this.type.Rs,m-h,d,a+h,B+q-d-t,w-h-b,d+t,0,t)):1===this.ym&&(0<h&&n>e&&0<q-e-d&&g.drawImage(k,0,e,h,n-e,a,B+e,h,q-e-d),0<b&&n>e&&0<q-e-d&&g.drawImage(k,m,e,b,n-e,a+w-b,B+e,b,q-e-d),0<e&&m>h&&0<w-h-b&&g.drawImage(k,h,0,m-h,e,a+h,B,w-h-b,e),0<d&&m>h&&0<w-h-b&&g.drawImage(k,h,n,m-h,d,a+h,B+q-d,w-h-b,d));n>e&&m>h&&(0===this.fill?c(g,this.type.yp,m-h,n-e,a+h,B+e,w-h-b,q-e-d,0,0):1===this.fill&&0<w-h-b&&0<q-e-d&&g.drawImage(k,h,e,m-h,n-e,a+h,
B+e,w-h-b,q-e-d));g.restore()};g.tf=function(c,g,h,b,e,d,a,f,m,n){c.tc(g);var p=this.Lc;p.left=h/g.he;p.top=b/g.ge;p.right=(h+e)/g.he;p.bottom=(b+d)/g.ge;c.yd(a,f,a+m,f,a+m,f+n,a,f+n,p)};g.ml=function(c,g,h,b,e,d,a,f){c.tc(g);var m=this.Lc;m.left=-a/g.he;m.top=-f/g.ge;m.right=(e-a)/g.he;m.bottom=(d-f)/g.ge;c.yd(h,b,h+e,b,h+e,b+d,h,b+d,m)};g.qg=function(c){this.Zb(c)};g.Zb=function(c){var g=this.pq,h=this.cr,b=this.ur,e=this.dp,d=this.type.M.width-h,a=this.type.M.height-e;c.Ze(this.opacity);var f=
this.mb,m=f.Za,f=f.$a,n=this.width,p=this.height;this.b.Cc&&(m=Math.round(m),f=Math.round(f));var z=this.Cv?1:0;0<g&&0<b&&this.tf(c,this.type.da,0,0,g+z,b+z,m,f,g+z,b+z);0<h&&0<b&&this.tf(c,this.type.da,d-z,0,h+z,b+z,m+n-h-z,f,h+z,b+z);0<h&&0<e&&this.tf(c,this.type.da,d-z,a-z,h+z,e+z,m+n-h-z,f+p-e-z,h+z,e+z);0<g&&0<e&&this.tf(c,this.type.da,0,a-z,g+z,e+z,m,f+p-e-z,g+z,e+z);0===this.ym?(z=2===this.fill?0:z,0<g&&a>b&&this.ml(c,this.type.yl,m,f+b,g+z,p-b-e,0,0),0<h&&a>b&&this.ml(c,this.type.zl,m+n-h-
z,f+b,h+z,p-b-e,z,0),0<b&&d>g&&this.ml(c,this.type.Al,m+g,f,n-g-h,b+z,0,0),0<e&&d>g&&this.ml(c,this.type.xl,m+g,f+p-e-z,n-g-h,e+z,0,z)):1===this.ym&&(0<g&&a>b&&this.tf(c,this.type.da,0,b,g,a-b,m,f+b,g,p-b-e),0<h&&a>b&&this.tf(c,this.type.da,d,b,h,a-b,m+n-h,f+b,h,p-b-e),0<b&&d>g&&this.tf(c,this.type.da,g,0,d-g,b,m+g,f,n-g-h,b),0<e&&d>g&&this.tf(c,this.type.da,g,a,d-g,e,m+g,f+p-e,n-g-h,e));a>b&&d>g&&(0===this.fill?this.ml(c,this.type.mj,m+g,f+b,n-g-h,p-b-e,0,0):1===this.fill&&this.tf(c,this.type.da,
g,b,d-g,a-b,m+g,f+b,n-g-h,p-b-e))};n.j=new function(){};p.prototype.pj=function(c){this.xb=c;this.Wc=jb(c);kb(this,c,this.b.K);this.b.N=!0};n.q=new p;n.C=new function(){}})();function Fc(c){this.b=c}
(function(){function c(){}var p=Fc.prototype;p.J=function(c){this.V=c;this.b=c.b};p.J.prototype.G=function(){};p.I=function(c){this.type=c;this.b=c.b};var n=p.I.prototype;n.G=function(){this.Es={}};n.za=function(){return{tims:this.Es}};n.Ka=function(c){this.Es=c.tims};p.j=new function(){};p.q=new function(){};p.C=new c;c.prototype.kA=function(c,l){c.O((null!=l?new Date(l):new Date).getFullYear())};c.prototype.Sx=function(c,l){c.O((null!=l?new Date(l):new Date).getMonth()+1)};c.prototype.Date=function(c,
l){c.O((null!=l?new Date(l):new Date).getDate())};c.prototype.vx=function(c,l){c.O((null!=l?new Date(l):new Date).getHours())};c.prototype.Rx=function(c,l){c.O((null!=l?new Date(l):new Date).getMinutes())};c.prototype.mz=function(c,l){c.O((null!=l?new Date(l):new Date).getSeconds())}})();function U(c){this.b=c}
(function(){function c(){if(0===this.op.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.aj?b.drawImage(this.M,this.Ri,this.Si,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.M,0,0,this.width,this.height);this.op=a.toDataURL("image/png")}return this.op}function p(){}function n(a){a[0]=0;a[1]=0;a[2]=0;r.push(a)}function g(a,b){return a<b?""+a+","+b:""+b+","+a}function l(a,b,c,d){b=b.uid;c=c.uid;var e=g(b,c);if(a.hasOwnProperty(e))a[e][2]=
d;else{var f=r.length?r.pop():[0,0,0];f[0]=b;f[1]=c;f[2]=d;a[e]=f}}function k(a,b,c){b=g(b.uid,c.uid);a.hasOwnProperty(b)&&(n(a[b]),delete a[b])}function h(a,b,c){b=g(b.uid,c.uid);if(a.hasOwnProperty(b))return F=a[b][2],!0;F=-2;return!1}function b(){}function e(){}var d=U.prototype;d.J=function(a){this.V=a;this.b=a.b};var a=d.J.prototype;a.G=function(){if(!this.S){var a,b,d,e,f,g,h,l,k;this.ae=[];this.Tj=!1;a=0;for(b=this.Tc.length;a<b;a++){f=this.Tc[a];h={};h.name=f[0];h.speed=f[1];h.loop=f[2];h.$q=
f[3];h.br=f[4];h.qv=f[5];h.ta=f[6];h.frames=[];d=0;for(e=f[7].length;d<e;d++)g=f[7][d],l={},l.kl=g[0],l.ll=g[1],l.Ri=g[2],l.Si=g[3],l.width=g[4],l.height=g[5],l.duration=g[6],l.Ac=g[7],l.Bc=g[8],l.Rm=g[9],l.Dn=g[10],l.rv=g[11],l.aj=0!==l.width,l.op="",l.yF=c,k={left:0,top:0,right:1,bottom:1},l.mr=k,l.da=null,(k=this.b.dC(g[0]))?l.M=k:(l.M=new Image,l.M.NA=g[0],l.M.jm=g[1],l.M.EA=null,this.b.Kr(l.M,g[0])),h.frames.push(l),this.ae.push(l);this.Tc[a]=h}}};a.pw=function(){var a,b,c;a=0;for(b=this.n.length;a<
b;a++)c=this.n[a],c.nm=c.Ob.da};a.Ti=function(){if(!this.S){var a,b,c;a=0;for(b=this.ae.length;a<b;++a)c=this.ae[a],c.M.EA=null,c.da=null;this.Tj=!1;this.pw()}};a.tn=function(){if(!this.S&&this.n.length){var a,b,c;a=0;for(b=this.ae.length;a<b;++a)c=this.ae[a],c.da=this.b.F.Kd(c.M,!1,this.b.Qa,c.rv);this.pw()}};a.rq=function(){if(!this.S&&!this.Tj&&this.b.F){var a,b,c;a=0;for(b=this.ae.length;a<b;++a)c=this.ae[a],c.da=this.b.F.Kd(c.M,!1,this.b.Qa,c.rv);this.Tj=!0}};a.uo=function(){if(!this.S&&!this.n.length&&
this.Tj){var a,b,c;a=0;for(b=this.ae.length;a<b;++a)c=this.ae[a],this.b.F.deleteTexture(c.da),c.da=null;this.Tj=!1}};var f=[];a.Uq=function(a){var b,c,d;E(f);b=0;for(c=this.ae.length;b<c;++b)d=this.ae[b].M,-1===f.indexOf(d)&&(a.drawImage(d,0,0),f.push(d))};d.I=function(a){this.type=a;this.b=a.b;a=this.type.Tc[0].frames[0].Dn;this.Yb?this.Ia.$k(a):this.Ia=new gb(a)};var m=d.I.prototype;m.G=function(){this.visible=0===this.B[0];this.Uj=this.mh=!1;this.Dd=0!==this.B[3];this.Va=this.Dt(this.B[1])||this.type.Tc[0];
this.P=this.B[2];0>this.P&&(this.P=0);this.P>=this.Va.frames.length&&(this.P=this.Va.frames.length-1);var a=this.Va.frames[this.P];this.Ia.$k(a.Dn);this.Ac=a.Ac;this.Bc=a.Bc;this.ci=this.Va.speed;this.ng=this.Va.br;1===this.type.Tc.length&&1===this.type.Tc[0].frames.length||0===this.ci||(this.b.Xf(this),this.mh=!0);this.Yb?this.be.reset():this.be=new eb;this.Ie=this.be.ba;this.hg=!0;this.lf=0;this.Qg=!0;this.bi=this.Ms="";this.Ws=0;this.Aj=-1;this.type.rq();var b,c,d,e,f,g,h,a=0;for(b=this.type.Tc.length;a<
b;a++)for(e=this.type.Tc[a],c=0,d=e.frames.length;c<d;c++)f=e.frames[c],0===f.width&&(f.width=f.M.width,f.height=f.M.height),f.aj&&(h=f.M,g=f.mr,g.left=f.Ri/h.width,g.top=f.Si/h.height,g.right=(f.Ri+f.width)/h.width,g.bottom=(f.Si+f.height)/h.height,0===f.Ri&&0===f.Si&&f.width===h.width&&f.height===h.height&&(f.aj=!1));this.Ob=this.Va.frames[this.P];this.nm=this.Ob.da};m.za=function(){var a={a:this.Va.ta,f:this.P,cas:this.ci,fs:this.Ie,ar:this.lf,at:this.be.ba,rt:this.ng};this.hg||(a.ap=this.hg);
this.Qg||(a.af=this.Qg);return a};m.Ka=function(a){var b=this.hC(a.a);b&&(this.Va=b);this.P=a.f;0>this.P&&(this.P=0);this.P>=this.Va.frames.length&&(this.P=this.Va.frames.length-1);this.ci=a.cas;this.Ie=a.fs;this.lf=a.ar;this.be.reset();this.be.ba=a.at;this.hg=a.hasOwnProperty("ap")?a.ap:!0;this.Qg=a.hasOwnProperty("af")?a.af:!0;a.hasOwnProperty("rt")?this.ng=a.rt:this.ng=this.Va.br;this.Ob=this.Va.frames[this.P];this.nm=this.Ob.da;this.Ia.$k(this.Ob.Dn);this.Ac=this.Ob.Ac;this.Bc=this.Ob.Bc};m.Zo=
function(a){this.P=a?0:this.Va.frames.length-1;this.hg=!1;this.Ms=this.Va.name;this.Uj=!0;this.b.trigger(U.prototype.j.Wr,this);this.b.trigger(U.prototype.j.Yx,this);this.Uj=!1;this.lf=0};m.nf=function(){return this.be.ba};m.Na=function(){this.be.add(this.b.Ke(this));this.bi.length&&this.gt();0<=this.Aj&&this.rp();var a=this.be.ba,b=this.Va,c=b.frames[this.P],d=c.duration/this.ci;this.hg&&a>=this.Ie+d&&(this.Qg?this.P++:this.P--,this.Ie+=d,this.P>=b.frames.length&&(b.qv?(this.Qg=!1,this.P=b.frames.length-
2):b.loop?this.P=this.ng:(this.lf++,this.lf>=b.$q?this.Zo(!1):this.P=this.ng)),0>this.P&&(b.qv?(this.P=1,this.Qg=!0,b.loop||(this.lf++,this.lf>=b.$q&&this.Zo(!0))):b.loop?this.P=this.ng:(this.lf++,this.lf>=b.$q?this.Zo(!0):this.P=this.ng)),0>this.P?this.P=0:this.P>=b.frames.length&&(this.P=b.frames.length-1),a>this.Ie+b.frames[this.P].duration/this.ci&&(this.Ie=a),a=b.frames[this.P],this.Th(c,a),this.b.N=!0)};m.Dt=function(a){var b,c,d;b=0;for(c=this.type.Tc.length;b<c;b++)if(d=this.type.Tc[b],rb(d.name,
a))return d;return null};m.hC=function(a){var b,c,d;b=0;for(c=this.type.Tc.length;b<c;b++)if(d=this.type.Tc[b],d.ta===a)return d;return null};m.gt=function(){var a=this.Va.frames[this.P],b=this.Dt(this.bi);this.bi="";!b||rb(b.name,this.Va.name)&&this.hg||(this.Va=b,this.ci=b.speed,this.ng=b.br,0>this.P&&(this.P=0),this.P>=this.Va.frames.length&&(this.P=this.Va.frames.length-1),1===this.Ws&&(this.P=0),this.hg=!0,this.Ie=this.be.ba,this.Qg=!0,this.Th(a,this.Va.frames[this.P]),this.b.N=!0)};m.rp=function(){var a=
this.Va.frames[this.P],b=this.P;this.P=ta(this.Aj);0>this.P&&(this.P=0);this.P>=this.Va.frames.length&&(this.P=this.Va.frames.length-1);b!==this.P&&(this.Th(a,this.Va.frames[this.P]),this.Ie=this.be.ba,this.b.N=!0);this.Aj=-1};m.Th=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.Ac=b.Ac;this.Bc=b.Bc;this.Ia.$k(b.Dn);this.T();this.Ob=b;this.nm=b.da;c=0;for(d=this.X.length;c<d;c++)e=this.X[c],e.cv&&e.cv(a,b);this.b.trigger(U.prototype.j.Th,
this)};m.wc=function(a){a.globalAlpha=this.opacity;var b=this.Ob,c=b.aj,d=b.M,e=this.x,f=this.y,g=this.width,h=this.height;if(0===this.u&&0<=g&&0<=h)e-=this.Ac*g,f-=this.Bc*h,this.b.Cc&&(e=Math.round(e),f=Math.round(f)),c?a.drawImage(d,b.Ri,b.Si,b.width,b.height,e,f,g,h):a.drawImage(d,e,f,g,h);else{this.b.Cc&&(e=Math.round(e),f=Math.round(f));a.save();var l=0<g?1:-1,k=0<h?1:-1;a.translate(e,f);1===l&&1===k||a.scale(l,k);a.rotate(this.u*l*k);e=0-this.Ac*ma(g);f=0-this.Bc*ma(h);c?a.drawImage(d,b.Ri,
b.Si,b.width,b.height,e,f,ma(g),ma(h)):a.drawImage(d,e,f,ma(g),ma(h));a.restore()}};m.qg=function(a){this.Zb(a)};m.Zb=function(a){a.tc(this.nm);a.Ze(this.opacity);var b=this.Ob,c=this.mb;if(this.b.Cc){var d=Math.round(this.x)-this.x,e=Math.round(this.y)-this.y;b.aj?a.yd(c.Za+d,c.$a+e,c.Lb+d,c.Mb+e,c.Ab+d,c.Bb+e,c.yb+d,c.zb+e,b.mr):a.Gh(c.Za+d,c.$a+e,c.Lb+d,c.Mb+e,c.Ab+d,c.Bb+e,c.yb+d,c.zb+e)}else b.aj?a.yd(c.Za,c.$a,c.Lb,c.Mb,c.Ab,c.Bb,c.yb,c.zb,b.mr):a.Gh(c.Za,c.$a,c.Lb,c.Mb,c.Ab,c.Bb,c.yb,c.zb)};
m.nC=function(a){var b=this.Ob,c,d;c=0;for(d=b.Rm.length;c<d;c++)if(rb(a,b.Rm[c][0]))return c;return-1};m.ah=function(a,b){var c=this.Ob,d=c.Rm,e;ia(a)?e=this.nC(a):e=a-1;e=ta(e);if(0>e||e>=d.length)return b?this.x:this.y;var f=(d[e][1]-c.Ac)*this.width,d=d[e][2],d=(d-c.Bc)*this.height,c=Math.cos(this.u);e=Math.sin(this.u);var g=f*c-d*e,d=d*c+f*e,f=g+this.x,d=d+this.y;return b?f:d};var r=[],F=-2,z=[];p.prototype.jy=function(a){if(!a)return!1;var b=this.b,c=b.xf(),d=c.type,e=null;c.U.collmemory?e=
c.U.collmemory:(e={},c.U.collmemory=e);c.U.spriteCreatedDestroyCallback||(c.U.spriteCreatedDestroyCallback=!0,b.Vl(function(a){var b=c.U.collmemory;a=a.uid;var d,e;for(d in b)b.hasOwnProperty(d)&&(e=b[d],e[0]===a||e[1]===a)&&(n(b[d]),delete b[d])}));var f=d.R(),g=a.R(),f=f.$b(),m,q,p,w,r,u,B,H=this.b.Qc,T=H-1,W=b.eb().hb;for(q=0;q<f.length;q++){p=f[q];g.W?(p.Aa(),this.b.Ep(p.A,a,p.ab,z),m=z):m=g.$b();for(w=0;w<m.length;w++)r=m[w],b.Wf(p,r)||b.KA(p,r)?(u=h(e,p,r),u=!u||F<T,l(e,p,r,H),u&&(b.We(W.la),
u=d.R(),B=a.R(),u.W=!1,B.W=!1,d===a?(u.n.length=2,u.n[0]=p,u.n[1]=r,d.Uc()):(u.n.length=1,B.n.length=1,u.n[0]=p,B.n[0]=r,d.Uc(),a.Uc()),W.Od(),b.wd(W.la))):k(e,p,r);E(z)}return!1};var w=null,q=new ca,u=!1,B=[],H=new wa(0,0,0,0);a.finish=function(a){if(u){if(a){var b=this.b.eb().hb.ud;a=w.R();var c=q.Wd(),d,e;if(a.W){a.W=!1;E(a.n);d=0;for(e=c.length;d<e;++d)a.n[d]=c[d];if(b)for(E(a.ea),d=0,e=w.n.length;d<e;++d)c=w.n[d],q.contains(c)||a.ea.push(c)}else if(b)for(b=a.n.length,d=0,e=c.length;d<e;++d)a.n[b+
d]=c[d],Ja(a.ea,c[d]);else Fa(a.n,c);w.Uc()}q.clear();u=!1}};p.prototype.Jx=function(a){if(a){var b=!1,c,d,e,f=this.b.xf(),g=f.type,f=f.si;c=a.R();d=this.b.eb().hb.ud;var h;c.W?(this.Aa(),H.lg(this.ab),H.offset(0,0),this.b.Ep(this.A,a,H,B),h=B):h=d?this.b.ZC()&&!c.ea.length&&c.n.length?c.n:c.ea:c.n;w=a;u=g!==a&&!f;c=0;for(d=h.length;c<d;c++)if(e=h[c],this.b.Wf(this,e)){b=!0;if(f)break;g!==a&&q.add(e)}E(B);a=b}else a=!1;return a};p.prototype.zx=function(a){return this.bi.length?rb(this.bi,a):rb(this.Va.name,
a)};p.prototype.Uw=function(a,b){return jc(this.P,a,b)};p.prototype.Yx=function(a){return rb(this.Ms,a)};p.prototype.Wr=function(){return!0};p.prototype.Th=function(){return!0};d.j=new p;b.prototype.Xz=function(a,b,c){if(a&&b&&(b=this.b.km(a,b,this.ah(c,!0),this.ah(c,!1)))){"undefined"!==typeof b.u&&(b.u=this.u,b.T());this.b.qd++;var d,e,f;this.b.trigger(Object.getPrototypeOf(a.V).j.Sh,b);if(b.lc)for(d=0,e=b.siblings.length;d<e;d++)f=b.siblings[d],this.b.trigger(Object.getPrototypeOf(f.type.V).j.Sh,
f);this.b.qd--;d=this.b.lC();c=!1;if(ha(d.U.Spawn_LastExec)||d.U.Spawn_LastExec<this.b.Yg)c=!0,d.U.Spawn_LastExec=this.b.Yg;if(a!=this.type&&(a=a.R(),a.W=!1,c?(E(a.n),a.n[0]=b):a.n.push(b),b.lc))for(d=0,e=b.siblings.length;d<e;d++)f=b.siblings[d],a=f.type.R(),a.W=!1,c?(E(a.n),a.n[0]=f):a.n.push(f)}};b.prototype.pj=function(a){this.xb=a;this.Wc=jb(a);kb(this,a,this.b.K);this.b.N=!0};b.prototype.Yz=function(a){this.hg=!0;this.Ie=this.be.ba;1===a&&0!==this.P&&(this.Aj=0,this.Uj||this.rp());this.mh||
(this.b.Xf(this),this.mh=!0)};b.prototype.qz=function(a,b){this.bi=a;this.Ws=b;this.mh||(this.b.Xf(this),this.mh=!0);this.Uj||this.gt()};b.prototype.rz=function(a){this.Aj=a;this.mh||(this.b.Xf(this),this.mh=!0);this.Uj||this.rp()};b.prototype.Nz=function(a){var b=this.Ob,c=b.width*a*(0>this.width?-1:1);a=b.height*a*(0>this.height?-1:1);if(this.width!==c||this.height!==a)this.width=c,this.height=a,this.T()};b.prototype.sz=function(a){this.Dd!==(0!==a)&&((this.Dd=0!==a)?this.T():(this.Cd.right>=this.Cd.left&&
this.type.Cj.update(this,this.Cd,null),this.Cd.set(0,0,-1,-1)))};d.q=new b;e.prototype.Hw=function(a){a.Ta(this.Va.name)};e.prototype.xx=function(a,b){a.H(this.ah(b,!0))};e.prototype.yx=function(a,b){a.H(this.ah(b,!1))};e.prototype.wx=function(a){a.O(this.Ob.Rm.length)};d.C=new e})();function Gc(c){this.b=c}
(function(){function c(){return d.length?d.pop():{}}function p(a){var b,c;b=0;for(c=a.length;b<c;b++)d.push(a[b]);E(a)}function n(a){return a.length&&" "===a.charAt(a.length-1)?a.substring(0,a.length-1):a}function g(){}function l(){}var k=Gc.prototype;k.G=function(){k.q.Ol=function(a){this.width!==a&&(this.width=a,this.Kb=!0,this.T())}};k.J=function(a){this.V=a;this.b=a.b};var h=k.J.prototype;h.G=function(){};h.Ti=function(){if(!this.S){var a,b,c;a=0;for(b=this.n.length;a<b;a++)c=this.n[a],c.jb=null,
c.mc=null,c.Ra=null}};k.I=function(a){this.type=a;this.b=a.b;this.Yb?E(this.Xa):this.Xa=[];this.Kb=!0};var h=k.I.prototype,b={};h.G=function(){this.text=this.B[0];this.visible=0===this.B[1];this.font=this.B[2];this.color=this.B[3];this.zf=this.B[4];this.Zf=this.B[5];this.Oh=0===this.B[7];this.uh=this.Se=this.width;this.Re=this.height;this.xh=this.B[8];this.Ge=this.Pb="";this.il=this.jl=this.Kc=0;this.Pq();this.Ra=this.mc=this.jb=null;this.Oi=!1;this.oe=this.b.Qc;this.Yb?this.Lc.set(0,0,1,1):this.Lc=
new wa(0,0,1,1);this.b.F&&this.b.Xf(this)};h.Pq=function(){var a=this.font.split(" "),b;for(b=0;b<a.length;b++)if("pt"===a[b].substr(a[b].length-2,2)){this.Kc=parseInt(a[b].substr(0,a[b].length-2));this.Fh=Math.ceil(this.Kc/72*96)+4;0<b&&(this.Ge=a[b-1]);this.Pb=a[b+1];for(b+=2;b<a.length;b++)this.Pb+=" "+a[b];break}};h.za=function(){return{t:this.text,f:this.font,c:this.color,ha:this.zf,va:this.Zf,wr:this.Oh,lho:this.xh,fn:this.Pb,fs:this.Ge,ps:this.Kc,pxh:this.Fh,tw:this.jl,th:this.il,lrt:this.oe}};
h.Ka=function(a){this.text=a.t;this.font=a.f;this.color=a.c;this.zf=a.ha;this.Zf=a.va;this.Oh=a.wr;this.xh=a.lho;this.Pb=a.fn;this.Ge=a.fs;this.Kc=a.ps;this.Fh=a.pxh;this.jl=a.tw;this.il=a.th;this.oe=a.lrt;this.Kb=!0;this.uh=this.Se=this.width;this.Re=this.height};h.Na=function(){if(this.b.F&&this.Ra&&300<=this.b.Qc-this.oe){var a=this.A;this.Aa();var b=this.ab;if(b.right<a.Fa||b.bottom<a.Ga||b.left>a.Pa||b.top>a.Oa)this.b.F.deleteTexture(this.Ra),this.jb=this.mc=this.Ra=null}};h.Md=function(){this.jb=
this.mc=null;this.b.F&&this.Ra&&this.b.F.deleteTexture(this.Ra);this.Ra=null};h.ql=function(){this.font=this.Ge+" "+this.Kc.toString()+"pt "+this.Pb;this.Kb=!0;this.b.N=!0};h.wc=function(a,b){a.font=this.font;a.textBaseline="top";a.fillStyle=this.color;a.globalAlpha=b?1:this.opacity;var c=1;b&&(c=Math.abs(this.A.yc()),a.save(),a.scale(c,c));if(this.Kb||this.width!==this.uh)this.type.V.iA(this.text,this.Xa,a,this.width,this.Oh),this.Kb=!1,this.uh=this.width;this.Aa();var c=b?0:this.mb.Za,d=b?0:this.mb.$a;
this.b.Cc&&(c=c+.5|0,d=d+.5|0);0===this.u||b||(a.save(),a.translate(c,d),a.rotate(this.u),d=c=0);var e=d+this.height,g=this.Fh,g=g+this.xh,h,l;1===this.Zf?d+=Math.max(this.height/2-this.Xa.length*g/2,0):2===this.Zf&&(d+=Math.max(this.height-this.Xa.length*g-2,0));for(l=0;l<this.Xa.length&&!(h=c,1===this.zf?h=c+(this.width-this.Xa[l].width)/2:2===this.zf&&(h=c+(this.width-this.Xa[l].width)),a.fillText(this.Xa[l].text,h,d),d+=g,d>=e-g);l++);(0!==this.u||b)&&a.restore();this.oe=this.b.Qc};h.Zb=function(a){if(!(1>
this.width||1>this.height)){var b=this.Kb||this.Oi;this.Oi=!1;var c=this.A.yc(),d=this.A.ob(),e=this.Lc,g=c*this.width,h=c*this.height,l=Math.ceil(g),k=Math.ceil(h),n=Math.abs(l),p=Math.abs(k),t=this.b.aa/2,y=this.b.Z/2;this.mc||(this.jb=document.createElement("canvas"),this.jb.width=n,this.jb.height=p,this.Se=n,this.Re=p,b=!0,this.mc=this.jb.getContext("2d"));if(n!==this.Se||p!==this.Re)this.jb.width=n,this.jb.height=p,this.Ra&&(a.deleteTexture(this.Ra),this.Ra=null),b=!0;b&&(this.mc.clearRect(0,
0,n,p),this.wc(this.mc,!0),this.Ra||(this.Ra=a.Yc(n,p,this.b.Qa,this.b.ne)),a.yw(this.jb,this.Ra,this.b.ne));this.Se=n;this.Re=p;a.tc(this.Ra);a.Ze(this.opacity);a.jd();a.translate(-t,-y);a.Rc();var C=this.mb,b=this.A.Ea(C.Za,C.$a,!0,!0),n=this.A.Ea(C.Za,C.$a,!1,!0),p=this.A.Ea(C.Lb,C.Mb,!0,!0),t=this.A.Ea(C.Lb,C.Mb,!1,!0),y=this.A.Ea(C.Ab,C.Bb,!0,!0),N=this.A.Ea(C.Ab,C.Bb,!1,!0),D=this.A.Ea(C.yb,C.zb,!0,!0),C=this.A.Ea(C.yb,C.zb,!1,!0);if(this.b.Cc||0===this.u&&0===d)var O=(b+.5|0)-b,x=(n+.5|0)-
n,b=b+O,n=n+x,p=p+O,t=t+x,y=y+O,N=N+x,D=D+O,C=C+x;0===this.u&&0===d?(p=b+l,t=n,y=p,N=n+k,D=b,C=N,e.right=1,e.bottom=1):(e.right=g/l,e.bottom=h/k);a.yd(b,n,p,t,y,N,D,C,e);a.jd();a.scale(c,c);a.Vk(-this.A.ob());a.translate((this.A.Fa+this.A.Pa)/-2,(this.A.Ga+this.A.Oa)/-2);a.Rc();this.oe=this.b.Qc}};var e=[];k.dA=function(a){E(e);for(var b="",c,d=0;d<a.length;)if(c=a.charAt(d),"\n"===c)b.length&&(e.push(b),b=""),e.push("\n"),++d;else if(" "===c||"\t"===c||"-"===c){do b+=a.charAt(d),d++;while(d<a.length&&
(" "===a.charAt(d)||"\t"===a.charAt(d)));e.push(b);b=""}else d<a.length&&(b+=c,d++);b.length&&e.push(b)};var d=[];k.iA=function(a,b,d,e,g){if(a&&a.length)if(2>=e)p(b);else{if(100>=a.length&&-1===a.indexOf("\n")){var h=d.measureText(a).width;if(h<=e){p(b);b.push(c());b[0].text=a;b[0].width=h;return}}this.jA(a,b,d,e,g)}else p(b)};k.jA=function(a,b,g,h,l){l&&(this.dA(a),a=e);var k="",p,q,u,B=0;for(u=0;u<a.length;u++)"\n"===a[u]?(B>=b.length&&b.push(c()),k=n(k),q=b[B],q.text=k,q.width=g.measureText(k).width,
B++,k=""):(p=k,k+=a[u],q=g.measureText(k).width,q>=h&&(B>=b.length&&b.push(c()),p=n(p),q=b[B],q.text=p,q.width=g.measureText(p).width,B++,k=a[u],l||" "!==k||(k="")));k.length&&(B>=b.length&&b.push(c()),k=n(k),q=b[B],q.text=k,q.width=g.measureText(k).width,B++);for(u=B;u<b.length;u++)d.push(b[u]);b.length=B};k.j=new function(){};g.prototype.No=function(a){A(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.Kb=!0,this.b.N=!0)};g.prototype.Bo=function(a){A(a)&&(a=
Math.round(1E10*a)/1E10);if(a=a.toString())this.text+=a,this.Kb=!0,this.b.N=!0};g.prototype.Lo=function(a){a="rgb("+za(a).toString()+","+Aa(a).toString()+","+Ba(a).toString()+")";a!==this.color&&(this.color=a,this.Oi=!0,this.b.N=!0)};g.prototype.Oo=function(a,c){if(this.b.Da)ea("[Construct 2] Text plugin: 'Set web font' not supported on this platform - the action has been ignored");else{var d=this,e=function(){d.b.N=!0;d.Kb=!0};if(b.hasOwnProperty(c)){var g="'"+a+"'";if(this.Pb!==g)for(this.Pb=g,
this.ql(),g=1;10>g;g++)setTimeout(e,100*g),setTimeout(e,1E3*g)}else for(g=document.createElement("link"),g.href=c,g.rel="stylesheet",g.type="text/css",g.onload=e,document.getElementsByTagName("head")[0].appendChild(g),b[c]=!0,this.Pb="'"+a+"'",this.ql(),g=1;10>g;g++)setTimeout(e,100*g),setTimeout(e,1E3*g)}};g.prototype.pj=function(a){this.xb=a;this.Wc=jb(a);kb(this,a,this.b.K);this.b.N=!0};k.q=new g;l.prototype.Text=function(a){a.Ta(this.text)};k.C=new l})();function Hc(c){this.b=c}
(function(){function c(){}var p=Hc.prototype;p.J=function(c){this.V=c;this.b=c.b};var n=p.J.prototype;n.G=function(){this.S||(this.M=new Image,this.M.jm=this.ll,this.b.Kr(this.M,this.kl),this.da=this.pattern=null)};n.Ti=function(){this.S||(this.da=null)};n.tn=function(){if(!this.S&&this.n.length){this.da||(this.da=this.b.F.Kd(this.M,!0,this.b.Qa,this.ej));var c,l;c=0;for(l=this.n.length;c<l;c++)this.n[c].da=this.da}};n.rq=function(){this.S||this.da||!this.b.F||(this.da=this.b.F.Kd(this.M,!0,this.b.Qa,
this.ej))};n.uo=function(){this.S||this.n.length||!this.da||(this.b.F.deleteTexture(this.da),this.da=null)};n.Uq=function(c){c.drawImage(this.M,0,0)};p.I=function(c){this.type=c;this.b=c.b};n=p.I.prototype;n.G=function(){this.visible=0===this.B[0];this.Lc=new wa(0,0,0,0);this.Vt=!1;this.M=this.type.M;this.b.F?(this.type.rq(),this.da=this.type.da):(this.type.pattern||(this.type.pattern=this.b.Ja.createPattern(this.type.M,"repeat")),this.pattern=this.type.pattern)};n.$d=function(){this.Vt=!1;this.M=
this.type.M};n.Md=function(){this.b.F&&this.Vt&&this.da&&(this.b.F.deleteTexture(this.da),this.da=null)};n.wc=function(c){c.globalAlpha=this.opacity;c.save();c.fillStyle=this.pattern;var l=this.x,k=this.y;this.b.Cc&&(l=Math.round(l),k=Math.round(k));var h=-(this.Ac*this.width),b=-(this.Bc*this.height),e=h%this.M.width,d=b%this.M.height;0>e&&(e+=this.M.width);0>d&&(d+=this.M.height);c.translate(l,k);c.rotate(this.u);c.translate(e,d);c.fillRect(h-e,b-d,this.width,this.height);c.restore()};n.qg=function(c){this.Zb(c)};
n.Zb=function(c){c.tc(this.da);c.Ze(this.opacity);var l=this.Lc;l.right=this.width/this.M.width;l.bottom=this.height/this.M.height;var k=this.mb;if(this.b.Cc){var h=Math.round(this.x)-this.x,b=Math.round(this.y)-this.y;c.yd(k.Za+h,k.$a+b,k.Lb+h,k.Mb+b,k.Ab+h,k.Bb+b,k.yb+h,k.zb+b,l)}else c.yd(k.Za,k.$a,k.Lb,k.Mb,k.Ab,k.Bb,k.yb,k.zb,l)};p.j=new function(){};c.prototype.pj=function(c){this.xb=c;this.Wc=jb(c);kb(this,c,this.b.K);this.b.N=!0};p.q=new c;p.C=new function(){}})();
function Ic(c){this.b=c}
(function(){function c(b){e=b.x;d=b.y;a=b.z}function p(a,b,c,d){var e;e=f.length?f.pop():new n;e.init(a,b,c,d);return e}function n(){this.el=this.id=this.wh=this.vh=this.y=this.x=this.ho=this.fo=this.mq=this.time=this.qr=0;this.ol=this.so=!1}function g(){}function l(){}var k=Ic.prototype;k.J=function(a){this.V=a;this.b=a.b};k.J.prototype.G=function(){};k.I=function(a){this.type=a;this.b=a.b;this.touches=[];this.Bq=!1};var h=k.I.prototype,b={left:0,top:0};h.Nj=function(a){var b,c;b=0;for(c=this.touches.length;b<
c;b++)if(this.touches[b].id===a)return b;return-1};var e=0,d=0,a=0,f=[];n.prototype.init=function(a,b,c,d){var e=ab();this.qr=this.mq=this.time=e;this.fo=a;this.ho=b;this.x=a;this.y=b;this.vh=a;this.wh=b;this.pressure=this.height=this.width=0;this.id=c;this.el=d;this.ol=this.so=!1};n.prototype.update=function(a,b,c,d,e,f){this.mq=this.time;this.time=a;this.vh=this.x;this.wh=this.y;this.x=b;this.y=c;this.width=d;this.height=e;this.pressure=f;!this.ol&&15<=Wa(this.fo,this.ho,this.x,this.y)&&(this.ol=
!0)};n.prototype.tD=function(a,b){!this.so&&500<=ab()-this.qr&&!this.ol&&15>Wa(this.fo,this.ho,this.x,this.y)&&(this.so=!0,a.ff=this.el,a.gj=this.id,a.oi=b,a.b.trigger(Ic.prototype.j.wy,a),a.qf=this.x,a.rf=this.y,a.b.trigger(Ic.prototype.j.xy,a),a.oi=0)};var m=-1E3,r=-1E3,F=-1E4;n.prototype.Mu=function(a,b){if(!this.so){var c=ab();333>=c-this.qr&&!this.ol&&15>Wa(this.fo,this.ho,this.x,this.y)&&(a.ff=this.el,a.gj=this.id,a.oi=b,666>=c-F&&25>Wa(m,r,this.x,this.y)?(a.b.trigger(Ic.prototype.j.ky,a),a.qf=
this.x,a.rf=this.y,a.b.trigger(Ic.prototype.j.my,a),r=m=-1E3,F=-1E4):(a.b.trigger(Ic.prototype.j.Qy,a),a.qf=this.x,a.rf=this.y,a.b.trigger(Ic.prototype.j.ys,a),m=this.x,r=this.y,F=c),a.oi=0)}};h.G=function(){this.eD=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.oi=this.gj=this.ff=this.rf=this.qf=this.Is=this.Hs=this.Gs=this.sA=this.rA=this.qA=this.zn=this.yn=this.xn=0;this.LE=0!==this.B[0];var a=0<this.b.xc?document:this.b.canvas,b=document;this.b.ac?b=a=window.Canvas:this.b.ad&&
(b=a=window);var d=this;"undefined"!==typeof PointerEvent?(a.addEventListener("pointerdown",function(a){d.Hk(a)},!1),a.addEventListener("pointermove",function(a){d.Gk(a)},!1),b.addEventListener("pointerup",function(a){d.Kf(a,!1)},!1),b.addEventListener("pointercancel",function(a){d.Kf(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){d.Hk(a)},!1),a.addEventListener("MSPointerMove",function(a){d.Gk(a)},!1),b.addEventListener("MSPointerUp",function(a){d.Kf(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){d.Kf(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){d.vn(a)},!1),a.addEventListener("touchmove",function(a){d.un(a)},!1),b.addEventListener("touchend",function(a){d.Ui(a,!1)},!1),b.addEventListener("touchcancel",function(a){d.Ui(a,!0)},!1));if(this.eD){var e=function(a){a=a.reading;d.Gs=a.accelerationX;d.Hs=a.accelerationY;d.Is=a.accelerationZ},f=function(a){a=a.reading;d.xn=a.yawDegrees;d.yn=a.pitchDegrees;d.zn=a.rollDegrees},g=Windows.Devices.Sensors.Accelerometer.getDefault();
g&&(g.reportInterval=Math.max(g.minimumReportInterval,16),g.addEventListener("readingchanged",e));var h=Windows.Devices.Sensors.Inclinometer.getDefault();h&&(h.reportInterval=Math.max(h.minimumReportInterval,16),h.addEventListener("readingchanged",f));document.addEventListener("visibilitychange",function(){document.hidden||document.msHidden?(g&&g.removeEventListener("readingchanged",e),h&&h.removeEventListener("readingchanged",f)):(g&&g.addEventListener("readingchanged",e),h&&h.addEventListener("readingchanged",
f))},!1)}else window.addEventListener("deviceorientation",function(a){d.xn=a.alpha||0;d.yn=a.beta||0;d.zn=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(d.qA=a.accelerationIncludingGravity.x||0,d.rA=a.accelerationIncludingGravity.y||0,d.sA=a.accelerationIncludingGravity.z||0);a.acceleration&&(d.Gs=a.acceleration.x||0,d.Hs=a.acceleration.y||0,d.Is=a.acceleration.z||0)},!1);this.LE&&!this.b.Da&&(jQuery(document).mousemove(function(a){d.Ek(a)}),jQuery(document).mousedown(function(a){d.Dk(a)}),
jQuery(document).mouseup(function(a){d.Fk(a)}));!this.b.Df&&this.b.od&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(c,null,{frequency:40});this.b.DE(this)};h.Gk=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var c=this.Nj(a.pointerId),d=ab();if(0<=c){var e=this.b.Da?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)}}};h.Hk=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&sb(a)&&a.preventDefault();var c=this.b.Da?b:jQuery(this.b.canvas).offset(),d=a.pageX-c.left,c=a.pageY-c.top;ab();this.ff=this.touches.length;this.gj=a.pointerId;this.touches.push(p(d,c,a.pointerId,this.ff));this.b.fb=!0;this.b.trigger(Ic.prototype.j.os,this);this.b.trigger(Ic.prototype.j.Jo,this);this.qf=d;this.rf=c;this.b.trigger(Ic.prototype.j.zs,this);
this.b.fb=!1}};h.Kf=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&sb(a)&&a.preventDefault();var c=this.Nj(a.pointerId);this.ff=0<=c?this.touches[c].el:-1;this.gj=0<=c?this.touches[c].id:-1;this.b.fb=!0;this.b.trigger(Ic.prototype.j.ns,this);this.b.trigger(Ic.prototype.j.Io,this);0<=c&&(b||this.touches[c].Mu(this,c),100>f.length&&f.push(this.touches[c]),this.touches.splice(c,1));this.b.fb=!1}};h.un=function(a){a.preventDefault&&a.preventDefault();
var c=ab(),d,e,f,g;d=0;for(e=a.changedTouches.length;d<e;d++)if(f=a.changedTouches[d],g=this.Nj(f.identifier),0<=g){var h=this.b.Da?b:jQuery(this.b.canvas).offset();g=this.touches[g];2>c-g.time||g.update(c,f.pageX-h.left,f.pageY-h.top,2*(f.MF||f.UF||f.DF||f.GF||0),2*(f.NF||f.VF||f.EF||f.HF||0),f.wF||f.TF||f.CF||f.FF||0)}};h.vn=function(a){a.preventDefault&&sb(a)&&a.preventDefault();var c=this.b.Da?b:jQuery(this.b.canvas).offset();ab();this.b.fb=!0;var d,e,f,g;d=0;for(e=a.changedTouches.length;d<e;d++)if(f=
a.changedTouches[d],g=this.Nj(f.identifier),-1===g){g=f.pageX-c.left;var h=f.pageY-c.top;this.ff=this.touches.length;this.gj=f.identifier;this.touches.push(p(g,h,f.identifier,this.ff));this.b.trigger(Ic.prototype.j.os,this);this.b.trigger(Ic.prototype.j.Jo,this);this.qf=g;this.rf=h;this.b.trigger(Ic.prototype.j.zs,this)}this.b.fb=!1};h.Ui=function(a,b){a.preventDefault&&sb(a)&&a.preventDefault();this.b.fb=!0;var c,d,e;c=0;for(d=a.changedTouches.length;c<d;c++)e=a.changedTouches[c],e=this.Nj(e.identifier),
0<=e&&(this.ff=this.touches[e].el,this.gj=this.touches[e].id,this.b.trigger(Ic.prototype.j.ns,this),this.b.trigger(Ic.prototype.j.Io,this),b||this.touches[e].Mu(this,e),100>f.length&&f.push(this.touches[e]),this.touches.splice(e,1));this.b.fb=!1};h.nf=function(){return this.b.od&&0===this.xn&&0!==a?90*a:this.xn};h.hk=function(){return this.b.od&&0===this.yn&&0!==d?90*d:this.yn};h.jq=function(){return this.b.od&&0===this.zn&&0!==e?90*e:this.zn};h.Dk=function(a){this.vn({changedTouches:[{pageX:a.pageX,
pageY:a.pageY,identifier:0}]});this.Bq=!0};h.Ek=function(a){this.Bq&&this.un({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};h.Fk=function(a){a.preventDefault&&this.b.Om&&!this.b.ne&&a.preventDefault();this.b.Om=!0;this.Ui({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.Bq=!1};h.fj=function(){var a,b,c,d=ab();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=d-50&&(c.mq=d),c.tD(this,a)};g.prototype.Jo=function(){return!0};g.prototype.Io=function(){return!0};
g.prototype.zs=function(a){return a?this.b.cj(a,this.qf,this.rf,!1):!1};var z=[];g.prototype.Lx=function(a){if(!a)return!1;var b=a.R(),c=b.$b(),d,e,f,g,h,l;f=0;for(g=c.length;f<g;f++){var k=c[f];k.Aa();h=0;for(l=this.touches.length;h<l;h++)if(e=this.touches[h],d=k.A.bb(e.x,e.y,!0),e=k.A.bb(e.x,e.y,!1),k.hc(d,e)){z.push(k);break}}return z.length?(b.W=!1,Fa(b.n,z),a.Uc(),E(z),!0):!1};g.prototype.os=function(a){a=Math.floor(a);return a===this.ff};g.prototype.ns=function(a){a=Math.floor(a);return a===
this.ff};g.prototype.wy=function(){return!0};g.prototype.Qy=function(){return!0};g.prototype.ky=function(){return!0};g.prototype.xy=function(a){return a?this.b.cj(a,this.qf,this.rf,!1):!1};g.prototype.ys=function(a){return a?this.b.cj(a,this.qf,this.rf,!1):!1};g.prototype.my=function(a){return a?this.b.cj(a,this.qf,this.rf,!1):!1};k.j=new g;l.prototype.Vh=function(a,b){var c=this.oi;if(0>c||c>=this.touches.length)a.H(0);else{var d,e,f,g,h;ha(b)?(d=this.b.Le(0),e=d.scale,f=d.Dc,g=d.pc,h=d.u,d.scale=
1,d.Dc=1,d.pc=1,d.u=0,a.H(d.bb(this.touches[c].x,this.touches[c].y,!0)),d.scale=e,d.Dc=f,d.pc=g,d.u=h):(d=A(b)?this.b.Le(b):this.b.mi(b))?a.H(d.bb(this.touches[c].x,this.touches[c].y,!0)):a.H(0)}};l.prototype.Wh=function(a,b){var c=this.oi;if(0>c||c>=this.touches.length)a.H(0);else{var d,e,f,g,h;ha(b)?(d=this.b.Le(0),e=d.scale,f=d.Dc,g=d.qc,h=d.u,d.scale=1,d.Dc=1,d.qc=1,d.u=0,a.H(d.bb(this.touches[c].x,this.touches[c].y,!1)),d.scale=e,d.Dc=f,d.qc=g,d.u=h):(d=A(b)?this.b.Le(b):this.b.mi(b))?a.H(d.bb(this.touches[c].x,
this.touches[c].y,!1)):a.H(0)}};k.C=new l})();function Jc(c){this.b=c}
(function(){function c(){}function p(){}function n(){}var g=Jc.prototype;g.J=function(b){this.V=b;this.b=b.b};g.J.prototype.G=function(){};g.I=function(b){this.type=b;this.b=b.b};var l=g.I.prototype,k="",h="undefined"!==typeof window.is_scirra_arcade;h&&(k="arcade"+window.scirra_arcade_id);var b=!1;try{localStorage.getItem("test"),b=!0}catch(e){b=!1}l.G=function(){b||ea("[Construct 2] Webstorage plugin: local storage is not supported on this platform.")};c.prototype.Iy=function(){return!0};g.j=new c;
p.prototype.Fl=function(c,a){if(b){var e;try{e=JSON.parse(c)}catch(g){return}if(e.c2dictionary){e=e.data;0!==a||h||localStorage.clear();for(var l in e)if(e.hasOwnProperty(l))try{localStorage.setItem(k+l,e[l])}catch(n){this.b.trigger(Jc.prototype.j.Iy,this);break}}}};g.q=new p;n.prototype.Og=function(c){if(b){var a={},e,g,l;e=0;for(g=localStorage.length;e<g;e++)l=localStorage.key(e),h?l.substr(0,k.length)===k&&(a[l.substr(k.length)]=localStorage.getItem(l)):a[l]=localStorage.getItem(l);c.Ta(JSON.stringify({c2dictionary:!0,
data:a}))}else c.Ta("")};g.C=new n})();var Y,Kc=0,Lc,Mc,Nc,Oc;function Pc(c){this.b=c}
(function(){var c=Pc.prototype;c.J=function(c){this.V=c;this.b=c.b};c.J.prototype.G=function(){this.M=new Image;this.M.src=this.kl;this.M.jm=this.ll;this.b.Nh.push(this.M)};c.I=function(c){this.type=c;this.b=c.b};var p=c.I.prototype,n="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");p.kt=function(c){return 0>=c||11<=c?"source-over":n[c-1]};p.HE=function(c){var l=this.b.K;if(l)switch(this.Ua=l.ONE,this.Sa=l.ONE_MINUS_SRC_ALPHA,
c){case 1:this.Sa=this.Ua=l.ONE;break;case 3:this.Ua=l.ONE;this.Sa=l.ZERO;break;case 4:this.Ua=l.ONE_MINUS_DST_ALPHA;this.Sa=l.ONE;break;case 5:this.Ua=l.DST_ALPHA;this.Sa=l.ZERO;break;case 6:this.Ua=l.ZERO;this.Sa=l.SRC_ALPHA;break;case 7:this.Ua=l.ONE_MINUS_DST_ALPHA;this.Sa=l.ZERO;break;case 8:this.Ua=l.ZERO;this.Sa=l.ONE_MINUS_SRC_ALPHA;break;case 9:this.Ua=l.DST_ALPHA;this.Sa=l.ONE_MINUS_SRC_ALPHA;break;case 10:this.Ua=l.ONE_MINUS_DST_ALPHA,this.Sa=l.SRC_ALPHA}};p.G=function(){this.visible=0===
this.B[1];this.Wc=this.kt(this.B[0]);this.HE(this.B[0]);this.canvas=document.createElement("canvas");this.canvas.width=this.width;this.canvas.height=this.height;this.Ja=this.canvas.getContext("2d");var c=this.canvas.width,l=this.canvas.height;Lc=this.B[6];Kc=this.B[3];Mc=this.B[2];Nc=this.B[4];Oc=this.B[5];Y=new Qc(c,l,c/2,l/2-Oc);this.b.Xf(this)};p.Na=function(){var c=this.Ja,l=this.canvas.width,k=this.canvas.height,h=c.strokeStyle,b=c.globalAlpha,e=c.lineWidth,d=c.fillStyle,a=c.globalAlpha;c.globalAlpha=
1;c.fillStyle="AAA000";c.fillRect(0,0,l,k);c.fillStyle=d;c.globalAlpha=a;c.globalAlpha=1;c.strokeStyle=Y.color;l=0;for(k=Y.Dq;l<k;l++)Y.test=!0,Y.bo=Y.ga[l][3],Y.co=Y.ga[l][4],Y.ga[l][0]+=Y.IA-Y.x-Nc>>4,Y.ga[l][0]>Y.x<<1&&(Y.ga[l][0]-=Y.kj<<1,Y.test=!1),Y.ga[l][0]<-Y.x<<1&&(Y.ga[l][0]+=Y.kj<<1,Y.test=!1),Y.ga[l][1]+=Y.JA-Y.y-Oc>>4,Y.ga[l][1]>Y.y<<1&&(Y.ga[l][1]-=Y.qi<<1,Y.test=!1),Y.ga[l][1]<-Y.y<<1&&(Y.ga[l][1]+=Y.qi<<1,Y.test=!1),Y.ga[l][2]-=Y.zE*Kc,Y.ga[l][2]>Y.z&&(Y.ga[l][2]-=Y.z,Y.test=!1),0>
Y.ga[l][2]&&(Y.ga[l][2]+=Y.z,Y.test=!1),Y.ga[l][3]=Y.x+Y.ga[l][0]/Y.ga[l][2]*Y.Xv,Y.ga[l][4]=Y.y+Y.ga[l][1]/Y.ga[l][2]*Y.Xv,0<Y.bo&&Y.bo<Y.kj&&0<Y.co&&Y.co<Y.qi&&Y.test&&(c.lineWidth=2*(1-Y.Wv*Y.ga[l][2]),c.beginPath(),c.moveTo(Y.bo+Y.Xu,Y.co+Y.Yu),c.lineTo(Y.ga[l][3]+Y.Xu,Y.ga[l][4]+Y.Yu),c.stroke(),c.closePath());c.strokeStyle=h;c.globalAlpha=b;c.lineWidth=e;this.Gr=this.b.N=!0};p.Md=function(){};p.za=function(){return{canvas_w:this.canvas.width,canvas_h:this.canvas.height,image:this.Ja.getImageData(0,
0,this.canvas.width,this.canvas.height).data}};p.Ka=function(c){for(var l=this.canvas.width=c.canvas_w,k=this.canvas.height=c.canvas_h,h=this.Ja.getImageData(0,0,this.canvas.width,this.canvas.height).data,b=0;b<k;++b)for(var e=0;e<l;++e)for(var d=4*(b*l+e),a=0;4>a;++a)h[d+a]=c.image[d+a]};p.nf=function(c,l){for(var k in c)if(0!=c[k].visible||0!=this.b.Wf(this,c[k]))l.save(),l.scale(this.canvas.width/this.width,this.canvas.height/this.height),l.rotate(-this.u),l.translate(-this.mb.Za,-this.mb.$a),
l.globalCompositeOperation=c[k].Wc,void 0!==c[k].type.pattern&&void 0!==c[k].type.M&&(c[k].pattern=l.createPattern(c[k].type.M,"repeat")),c[k].wc(l),l.restore()};p.wc=function(c){c.save();c.globalAlpha=this.opacity;c.globalCompositeOperation=this.Wc;var l=this.x,k=this.y;this.b.Cc&&(l=Math.round(l),k=Math.round(k));c.translate(l,k);c.rotate(this.u);c.drawImage(this.canvas,0-this.Ac*this.width,0-this.Bc*this.height,this.width,this.height);c.restore()};p.Zb=function(c){c.Qf(this.Ua,this.Sa);this.Gr&&
(this.sr&&c.deleteTexture(this.sr),this.sr=c.Kd(this.canvas,!1,this.b.Qa),this.Gr=!1);c.tc(this.sr);c.Ze(this.opacity);var l=this.mb;if(this.b.Cc){var k=Math.round(this.x)-this.x,h=Math.round(this.y)-this.y;c.Gh(l.Za+k,l.$a+h,l.Lb+k,l.Mb+h,l.Ab+k,l.Bb+h,l.yb+k,l.zb+h)}else c.Gh(l.Za,l.$a,l.Lb,l.Mb,l.Ab,l.Bb,l.yb,l.zb)};c.j={};c.q={};p=c.q;p.pj=function(c){this.Wc=this.kt(c);this.Gr=this.b.N=!0};p.Uh=function(c){Kc=c};p.oF=function(c){Nc=c};p.pF=function(c){Oc=c};c.C={};c.C.Og=function(c){c.Ta(JSON.stringify({c2array:!0,
size:[1,1,this.canvas.width*this.canvas.height*4],data:[[this.Ja.getImageData(0,0,this.canvas.width,this.canvas.height).data]]}))}})();
function Qc(c,p,n,g){var l=Mc,k=Kc,h=Lc;this.test=!0;this.Dq=l;this.ga=Array(this.Dq);this.kj=c;this.qi=p;this.Yu=this.Xu=this.z=this.y=this.x=0;this.IA=n;this.JA=g;this.color=h;this.bo;this.co;this.zE=k;this.Xv=100;this.Wv=0;this.x=Math.round(this.kj/2);this.y=Math.round(this.qi/2);this.z=(this.kj+this.qi)/2;this.Wv=1/this.z;for(c=0;c<this.Dq;c++)this.ga[c]=Array(5),this.ga[c][0]=Math.random()*this.kj*2-2*this.x,this.ga[c][1]=Math.random()*this.qi*2-2*this.y,this.ga[c][2]=Math.round(Math.random()*
this.z),this.ga[c][3]=0,this.ga[c][4]=0;return this}function Rc(c){this.b=c}
(function(){function c(){}function p(){}var n=Rc.prototype;n.J=function(a){this.V=a;this.b=a.b};var g="",l="",k="",h=!0,b="",e="";n.J.prototype.G=function(){if(this.b.du||this.b.hq||this.b.wi||this.b.Xm){for(var a=document.getElementsByTagName("script"),b=!1,c=0;c<a.length;c++)if(-1!=a[c].src.indexOf("cordova.js")||-1!=a[c].src.indexOf("phonegap.js")){b=!0;break}b||(a=document.createElement("script"),a.setAttribute("type","text/javascript"),a.setAttribute("src","cordova.js"),document.getElementsByTagName("head")[0].appendChild(a))}};
n.I=function(a){this.type=a;this.b=a.b};var d=n.I.prototype;d.G=function(){if((this.b.jh||this.b.Df)&&"undefined"!=typeof window.unityads&&(this.b.jh?(g=this.B[0],l=this.B[1],k=this.B[2]):this.b.Df&&(g=this.B[3],l=this.B[4],k=this.B[5]),h=0==this.B[6]?!1:!0,b="cranberrygame@yahoo.com",e="ac06b5af2f9d0e5daa5210bb8e394681",""!=g)){var a=this;window.unityads.setLicenseKey(b,e);window.unityads.setUp(g,l,k,h);window.unityads.onVideoAdLoaded=function(){a.b.trigger(Rc.prototype.j.Ty,a)};window.unityads.onVideoAdShown=
function(){a.b.trigger(Rc.prototype.j.Uy,a)};window.unityads.onVideoAdHidden=function(){a.b.trigger(Rc.prototype.j.Sy,a)};window.unityads.onRewardedVideoAdLoaded=function(){a.b.trigger(Rc.prototype.j.My,a)};window.unityads.onRewardedVideoAdShown=function(){a.b.trigger(Rc.prototype.j.Ny,a)};window.unityads.onRewardedVideoAdHidden=function(){a.b.trigger(Rc.prototype.j.Ly,a)};window.unityads.onRewardedVideoAdCompleted=function(){a.b.trigger(Rc.prototype.j.Ky,a)}}};d.wc=function(){};d.Zb=function(){};
c.prototype.Ty=function(){return!0};c.prototype.Uy=function(){return!0};c.prototype.Sy=function(){return!0};c.prototype.My=function(){return!0};c.prototype.Ny=function(){return!0};c.prototype.Ly=function(){return!0};c.prototype.Ky=function(){return!0};n.j=new c;p.prototype.Wz=function(){(this.b.jh||this.b.Df)&&"undefined"!=typeof window.unityads&&""!=g&&window.unityads.showRewardedVideoAd()};n.q=new p;n.C=new function(){}})();function Sc(c){this.b=c}
(function(){function c(a){var b;if(!f[a])for(f[a]=Array(20),b=0;20>b;++b)f[a][b]=0;return f[a]}function p(a){var b;if(!m[a])for(m[a]=Array(20),b=0;20>b;++b)m[a][b]=0;return m[a]}function n(a,b){return b?4<=a?-1:a+16:16<=a?-1:a}function g(b){a[b.gamepad.index]=b.gamepad;e.trigger(Sc.prototype.j.ry,d)}function l(b){e.trigger(Sc.prototype.j.ty,d);a[b.gamepad.index]=null}function k(){}function h(){}var b=Sc.prototype;b.J=function(a){this.V=a;this.b=a.b};b.J.prototype.G=function(){};var e=null,d=null,
a=Array(16),f=Array(16),m=Array(16),r="",F="",z=null,w={windows:{}};w.windows.firefox={};var q=[0,1,2,3,4,5,8,9,10,11],u=[0,1,[7,6],2,3,[14,15],[12,13]];w.windows.firefox.xbox360=function(a,b){return b?a>=u.length?-1:A(u[a])?u[a]+16:u[a]:a>=q.length?-1:q[a]};var B=[2,0,1,3,4,6,5,7,8,9],H=[0,1,2,3,[14,15],[12,13]];w.windows.firefox.logitechdualaction=function(a,b){return b?a>=H.length?-1:A(H[a])?H[a]+16:H[a]:a>=B.length?-1:B[a]};b.I=function(a){this.type=a;e=this.b=a.b;d=this};var t=b.I.prototype;
t.G=function(){this.dt=this.B[0];this.Qe=0;var a=navigator.userAgent;r="windows";/mac/i.test(a)&&(r="mac");z=w[r];F="chrome";/firefox/i.test(a)&&(F="firefox");z&&(z=z[F]);window.addEventListener("webkitgamepadconnected",g,!1);window.addEventListener("webkitgamepaddisconnected",l,!1);window.addEventListener("MozGamepadConnected",g,!1);window.addEventListener("MozGamepadDisconnected",l,!1);window.addEventListener("gamepadconnected",g,!1);window.addEventListener("gamepaddisconnected",l,!1);this.b.Xf(this);
this.Zd=[]};t.Na=function(){this.Zd.length=0;var b=null,d=!1;navigator.getGamepads?b=navigator.getGamepads():navigator.webkitGetGamepads?b=navigator.webkitGetGamepads():navigator.mozGetGamepads?b=navigator.mozGetGamepads():navigator.msGetGamepads?b=navigator.msGetGamepads():this.b.ju&&window.cr_getGamepads?(b=window.cr_getGamepads(),d=!0):b=navigator.gamepads||navigator.webkitGamepads||navigator.MozGamepads||a;if(b){var e,g,h,l,k,q,r;e=0;for(g=b.length;e<g;e++){var t=b[e];if(t){var v=c(e),u=p(e);
l=e;h=c(l);l=p(l);k=void 0;for(k=0;20>k;++k)l[k]=h[k];d?h=n:z?(h="",l=t.id.toLowerCase(),-1<l.indexOf("xbox 360")?h="xbox360":-1<l.indexOf("logitech dual action")&&(h="logitechdualaction"),h=z[h]||n):h=n;k=h;h=0;for(l=t.buttons.length;h<l;h++)r="undefined"!==typeof t.buttons[h].value?t.buttons[h].value:t.buttons[h],q=k(h,!1,r),0<=q&&20>q&&(v[q]=100*r,50<=v[q]&&50>u[q]&&(this.Qe=q));h=0;for(l=t.axes.length;h<l;h++)r=t.axes[h],q=k(h,!0,r),A(q)?0<=q&&20>q&&(v[q]=100*r):(v[q[0]]=0,v[q[1]]=0,0>=r?v[q[0]]=
Math.abs(100*r):v[q[1]]=Math.abs(100*r));this.Zd.push(t)}else t=e,f[t]=null,m[t]=null}for(;20>e;++e)b=e,f[b]=null,m[b]=null}};t.za=function(){return{lastButton:this.Qe}};t.Ka=function(a){this.Qe=a.lastButton};k.prototype.ry=function(){return!0};k.prototype.ty=function(){return!0};k.prototype.fy=function(a,b){a=Math.floor(a);if(0>a||a>=this.Zd.length)return!1;var d=c(a),e=p(a);if(!d||!e)return!1;if(d=50<=d[b]&&50>e[b])this.Qe=b;return d};k.prototype.tx=function(){return 0<this.Zd.length};k.prototype.Rw=
function(a,b,d,e){a=Math.floor(a);b=Math.floor(b);if(0>a||a>=this.Zd.length)return!1;if(a=c(a)){var f=a[b+16],g=0,g=0===b%2?a[b+16+1]:a[b+16-1];Math.sqrt(f*f+g*g)<=this.dt&&(f=0);return jc(f,d,e)}};k.prototype.Zx=function(a){a=Math.floor(a);if(0>a||a>=this.Zd.length)return!1;var b=c(a);a=p(a);if(!b||!a)return!1;var d,e;d=0;for(e=b.length;d<e;d++)if(50<=b[d]&&50>a[d])return this.Qe=d,!0;return!1};k.prototype.$x=function(a){a=Math.floor(a);if(0>a||a>=this.Zd.length)return!1;var b=c(a);a=p(a);if(!b||
!a)return!1;var d,e;d=0;for(e=b.length;d<e;d++)if(50>b[d]&&50<=a[d])return this.Qe=d,!0;return!1};k.prototype.Bx=function(a,b){a=Math.floor(a);if(0>a||a>=this.Zd.length)return!1;var d=c(a);if(!d)return!1;b=Math.floor(b);if(0>b||b>=d.length)return!1;if(d=50<=d[b])this.Qe=b;return d};k.prototype.gy=function(a,b){a=Math.floor(a);if(0>a||a>=this.Zd.length)return!1;var d=c(a),e=p(a);if(!d||!e)return!1;b=Math.floor(b);if(0>b||b>=d.length)return!1;if(d=50<=d[b]&&50>e[b])this.Qe=b;return d};k.prototype.hy=
function(a,b){a=Math.floor(a);if(0>a||a>=this.Zd.length)return!1;var d=c(a),e=p(a);if(!d||!e)return!1;b=Math.floor(b);if(0>b||b>=d.length)return!1;if(d=50>d[b]&&50<=e[b])this.Qe=b;return d};b.j=new k;b.q=new function(){};h.prototype.Kw=function(a,b,d){b=Math.floor(b);d=Math.floor(d);if(0>b||b>=this.Zd.length)a.H(0);else if(b=c(b),!b||0>d||4<=d)a.H(0);else{var e=b[d+16],f=0,f=0===d%2?b[d+16+1]:b[d+16-1];Math.sqrt(e*e+f*f)<=this.dt&&(e=0);a.H(e)}};h.prototype.Ox=function(a){a.O(this.Qe)};b.C=new h})();
function Tc(c){this.b=c}
(function(){function c(){this.width=this.y=this.x=this.text=null;this.prop={};this.rb=this.Pi=null}function p(){this.vd=[];this.Xa=[]}function n(a){a=a.replace(/^\s+|\s+$/,"");return 0==a.length}function g(a){a=a.split(";");var b,c=a.length,d={},e,f;for(b=0;b<c;b++)e=a[b].split(":"),f=e[0],e=e[1],n(f)||n(e)||(d[f]=e);return d}function l(a,b){var c=/<\s*class=["|']([^"|']+)["|']\s*\>(.*?)<\s*\/class\s*\>|<\s*style=["|']([^"|']+)["|']\s*\>(.*?)<\s*\/style\s*\>/g;w.length=0;for(var d,e=0,f=a.length,
g=f;;){d=c.exec(a);if(!d)break;d=d[0];g=c.lastIndex-d.length;e<g&&w.push(a.substring(e,g));null==b?w.push(d):1===b&&(m.test(d)?(e=d.match(r),w.push(e[2])):F.test(d)&&(e=d.match(z),w.push(e[2])));e=c.lastIndex}e<f&&w.push(a.substring(e,f));return w}function k(){this.context=this.canvas=null;this.Sn={};this.Ud={text:"",x:0,y:0,boxWidth:0,boxHeight:0,ignore:null};this.Hg=new p;this.Kb=!0;this.je={family:"Verdana",weight:"normal",Kc:"12pt",color:"#000000",style:"normal",Pv:""};this.Mg={no:1,offset:0};
this.textAlign="start";this.lineHeight="16";this.textBaseline="alphabetic"}function h(){this.Xa=[]}function b(){}function e(){}var d=Tc.prototype;d.G=function(){d.q.Ol=function(a){this.width!==a&&(this.width=a,this.T(),this.Of(this.Ai))}};d.J=function(a){this.V=a;this.b=a.b};var a=d.J.prototype;a.G=function(){};a.Ti=function(){if(!this.S){var a,b,c;a=0;for(b=this.n.length;a<b;a++)c=this.n[a],c.jb=null,c.mc=null,c.Ra=null}};d.I=function(a){this.type=a;this.b=a.b;this.Kb=!0};var a=d.I.prototype,f={};
a.G=function(){this.text="";this.lr(this.B[0]);this.visible=0===this.B[1];this.font=this.B[2];this.color=this.B[3];this.zf=this.B[4];this.Zf=this.B[5];this.textShadow="";this.Oh=0===this.B[7];this.uh=this.Se=this.width;this.Re=this.height;this.xh=this.B[8];this.zA=this.B[9];this.Jr=this.B[10]*this.b.devicePixelRatio;this.Ai=1===this.B[11];this.Ge=this.Pb="";this.il=this.jl=this.Kc=0;this.Pq();this.Ra=this.mc=this.jb=null;this.Oi=!1;this.oe=this.b.Qc;this.Yb?this.Lc.set(0,0,1,1):this.Lc=new wa(0,0,
1,1);this.b.F&&this.b.Xf(this);this.Xh=null;this.Yb||(this.gb=new k);this.gb.hz(this);this.gb.textBaseline=0===this.zA?"alphabetic":"top";this.text&&this.Of(this.Ai)};a.Pq=function(){var a=this.font.split(" "),b;for(b=0;b<a.length;b++)if("pt"===a[b].substr(a[b].length-2,2)){this.Kc=parseInt(a[b].substr(0,a[b].length-2));this.Fh=Math.ceil(this.Kc/72*96)+4;0<b&&(this.Ge=a[b-1]);this.Pb=a[b+1];for(b+=2;b<a.length;b++)this.Pb+=" "+a[b];break}};a.za=function(){return{t:this.text,f:this.font,c:this.color,
ha:this.zf,va:this.Zf,wr:this.Oh,lho:this.xh,vs:this.Jr,fn:this.Pb,fs:this.Ge,ps:this.Kc,pxh:this.Fh,tw:this.jl,th:this.il,ts:this.textShadow,lrt:this.oe,bl:this.gb.textBaseline,txtObj:this.gb.za()}};a.Ka=function(a){this.text=a.t;this.font=a.f;this.color=a.c;this.zf=a.ha;this.Zf=a.va;this.Oh=a.wr;this.xh=a.lho;this.Jr=a.vs;this.Pb=a.fn;this.Ge=a.fs;this.Kc=a.ps;this.Fh=a.pxh;this.jl=a.tw;this.il=a.th;this.textShadow=a.ts;this.oe=a.lrt;this.Kb=!0;this.uh=this.Se=this.width;this.Re=this.height;this.gb.textBaseline=
a.bl;this.gb.Ka(a.txtObj)};a.Na=function(){if(this.b.F&&this.Ra&&300<=this.b.Qc-this.oe){var a=this.A;this.Aa();var b=this.ab;if(b.right<a.Fa||b.bottom<a.Ga||b.left>a.Pa||b.top>a.Oa)this.b.F.deleteTexture(this.Ra),this.jb=this.mc=this.Ra=null}};a.Md=function(){this.jb=this.mc=null;this.b.F&&this.Ra&&this.b.F.deleteTexture(this.Ra);this.Ra=null};a.ql=function(){this.font=this.Ge+" "+this.Kc.toString()+"pt "+this.Pb;this.Of(this.Ai)};a.wc=function(a,b,c){a.globalAlpha=b?1:this.opacity;var d=1;b&&(d=
this.A.yc(),a.save(),a.scale(d,d));if(this.Kb||this.width!==this.uh)this.gb.Kb=!0,this.Kb=!1,this.uh=this.width;this.Aa();var d=b?0:this.mb.Za,e=b?0:this.mb.$a;this.b.Cc&&(d=d+.5|0,e=e+.5|0);0===this.u||b||(a.save(),a.translate(d,e),a.rotate(this.u),e=d=0);var f=this.Fh,f=f+this.xh*this.b.devicePixelRatio;this.gb.canvas=a.canvas;this.gb.context=a;this.gb.je.family=this.Pb;this.gb.je.Kc=this.Kc.toString()+"pt";this.gb.je.style=this.Ge;this.gb.je.color=this.color;this.gb.je.Pv=this.textShadow;this.gb.lineHeight=
f;this.gb.Ud.text=this.text;this.gb.Ud.x=d;this.gb.Ud.y=e;this.gb.Ud.boxWidth=this.width;this.gb.Ud.boxHeight=this.height;this.gb.Ud.ignore=c;this.gb.qB();(0!==this.u||b)&&a.restore();this.oe=this.b.Qc};a.Zb=function(a){if(!(1>this.width||1>this.height)){var b=this.Kb||this.Oi;this.Oi=!1;var c=this.A.yc(),d=this.A.ob(),e=this.Lc,f=c*this.width,g=c*this.height,h=Math.ceil(f),l=Math.ceil(g),k=this.b.aa/2,m=this.b.Z/2;this.mc||(this.jb=document.createElement("canvas"),this.jb.width=h,this.jb.height=
l,this.Se=h,this.Re=l,b=!0,this.mc=this.jb.getContext("2d"));if(h!==this.Se||l!==this.Re)this.jb.width=h,this.jb.height=l,this.Ra&&(a.deleteTexture(this.Ra),this.Ra=null),b=!0;b&&(this.mc.clearRect(0,0,h,l),this.wc(this.mc,!0),this.Ra||(this.Ra=a.Yc(h,l,this.b.Qa,this.b.ne)),a.yw(this.jb,this.Ra,this.b.ne));this.Se=h;this.Re=l;a.tc(this.Ra);a.Ze(this.opacity);a.jd();a.translate(-k,-m);a.Rc();var n=this.mb,b=this.A.Ea(n.Za,n.$a,!0,!0),k=this.A.Ea(n.Za,n.$a,!1,!0),m=this.A.Ea(n.Lb,n.Mb,!0,!0),p=this.A.Ea(n.Lb,
n.Mb,!1,!0),q=this.A.Ea(n.Ab,n.Bb,!0,!0),r=this.A.Ea(n.Ab,n.Bb,!1,!0),t=this.A.Ea(n.yb,n.zb,!0,!0),n=this.A.Ea(n.yb,n.zb,!1,!0);if(this.b.Cc||0===this.u&&0===d)var u=(b+.5|0)-b,w=(k+.5|0)-k,b=b+u,k=k+w,m=m+u,p=p+w,q=q+u,r=r+w,t=t+u,n=n+w;0===this.u&&0===d?(m=b+h,p=k,q=m,r=k+l,t=b,n=r,e.right=1,e.bottom=1):(e.right=f/h,e.bottom=g/l);a.yd(b,k,m,p,q,r,t,n,e);a.jd();a.scale(c,c);a.Vk(-this.A.ob());a.translate((this.A.Fa+this.A.Pa)/-2,(this.A.Ga+this.A.Oa)/-2);a.Rc();this.oe=this.b.Qc}};a.oA=function(){var a=
this.mc;if(!a){this.jb=document.createElement("canvas");var a=Math.ceil(this.A.yc()*this.width),b=Math.ceil(this.A.ob()*this.height);this.jb.width=a;this.jb.height=b;this.Se=a;this.Re=b;a=this.mc=this.jb.getContext("2d")}return a};a.bC=function(){var a=this.b.lt?this.oA():this.b.Ja;this.wc(a,null,!0)};a.Of=function(a){a&&(this.Kb=!0,this.bC());this.Kb=!0;this.b.N=!0};a.lr=function(a){a=a.replace(/<\s*br\s*\/>/g,"\n");this.text!==a&&(this.text=a,this.Of(this.Ai))};a.yf=function(a){return this.gb.yf(a)};
a.Pp=function(a,b,c){return this.gb.Pp(a,b,c)};a.bt=function(a){return this.gb.bt(a)};d.j=new function(){};d.q=new b;b.prototype.No=function(a){A(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);this.lr(a.toString())};b.prototype.Bo=function(a){A(a)&&(a=Math.round(1E10*a)/1E10);a=a.toString();0<a.length&&this.lr(this.text+a)};b.prototype.Lo=function(a){var b;"number"==typeof a?b="rgb("+za(a).toString()+","+Aa(a).toString()+","+Ba(a).toString()+")":b=a;null!=this.Xh?(this.Xh.color=b,this.Of(!1)):b!==this.color&&
(this.color=b,this.Of(this.Ai))};b.prototype.Oo=function(a,b){if(this.b.Da)ea("[Construct 2] TagText plugin: 'Set web font' not supported on this platform - the action has been ignored");else{var c=this,d=function(){c.b.N=!0;c.Kb=!0},e="'"+a+"'";if(f.hasOwnProperty(b))if(null!=this.Xh)this.Xh["font-family"]=e,this.Of(!1);else{if(this.Pb===e)return;this.Pb=e;this.ql()}else{var g=document.createElement("link");g.href=b;g.rel="stylesheet";g.type="text/css";g.onload=d;document.getElementsByTagName("head")[0].appendChild(g);
f[b]=!0;null!=this.Xh?(this.Xh["font-family"]=e,this.Of(!1)):(this.Pb="'"+a+"'",this.ql())}for(e=1;10>e;e++)setTimeout(d,100*e),setTimeout(d,1E3*e)}};b.prototype.pj=function(a){this.Wc=jb(a);kb(this,a,this.b.K);this.Of(this.Ai)};d.C=new e;e.prototype.Text=function(a,b,c){b=null==b&&null==c?this.text:this.Pp(b,c);a.Ta(b)};a=h.prototype;a.Xl=function(){return 0<this.Xa.length?this.Xa.pop():null};a.zt=function(a){this.Xa.push(a)};a.Im=function(a){var b,c;b=0;for(c=a.length;b<c;b++)this.zt(a[b]);a.length=
0};a=k.prototype;a.hz=function(a){this.V=a};a.Kp=function(){return this.Hg.Kp()};a.St=function(a){var b={};if(null!=a)for(var c in a)switch(c){case "font":b.font=a[c];break;case "font-family":b.family=a[c];break;case "font-weight":b.weight=a[c];break;case "font-size":b.ptSize=a[c];break;case "color":b.color=a[c];break;case "font-style":b.style=a[c];break;case "text-shadow":b.shadow=a[c];break;case "underline":b.underline=a[c];break;default:b[c]=a[c]}return b};a.Ns=function(a){var b=a.font;b?this.context.font=
b:this.context.font=(a.style||this.je.style)+" "+(a.weight||this.je.weight)+" "+this.Rt(a)+" "+(a.family||this.je.family);this.context.fillStyle=this.zC(a);a=a.shadow||this.je.Pv;""!==a&&(a=a.split(" "),this.context.shadowOffsetX=parseFloat(a[0].replace("px","")),this.context.shadowOffsetY=parseFloat(a[1].replace("px","")),this.context.shadowBlur=parseFloat(a[2].replace("px","")),this.context.shadowColor=a[3])};a.Rt=function(a){return a.ptSize||this.je.Kc};a.zC=function(a){return a.color||this.je.color};
a.sB=function(a,b,c){this.context.save();this.Ns(a.prop);b+=a.x;c+=a.y;var d=a.prop.underline;if(d){var d=d.split(" "),e=d[0],f=this.Mg.no;null!=d[1]&&(this.Mg.no=parseFloat(d[1].replace("px","")));var g=this.Mg.offset;null!=d[2]&&(this.Mg.offset=parseFloat(d[2].replace("px","")));this.tB(a.text,b,c,this.Rt(a.prop),e);this.Mg.no=f;this.Mg.offset=g}this.context.fillText(a.text,b,c);this.context.restore()};a.pB=function(a,b){var c=b.boxWidth,d=b.boxHeight,e=b.x,f=b.y,g=a.Kp(),h=g.length,l,d=1===this.V.Zf?
Math.max((d-h*this.lineHeight)/2,0):2===this.V.Zf?Math.max(d-h*this.lineHeight-2,0):0,d=d+f;"alphabetic"==this.textBaseline&&(d+=this.V.Jr);for(var k,m,n,p,f=0;f<h;f++)if(l=a.Nt(f),0!==l)for(l=1===this.V.zf?(c-l)/2:2===this.V.zf?c-l:0,l+=e,n=g[f],m=n.length,k=0;k<m;k++)p=n[k],""!==p.text&&this.sB(p,l,d)};a.tB=function(a,b,c,d,e){var f=this.context;a=f.measureText(a).width;c+=this.Mg.offset;"top"===this.textBaseline&&(c+=parseInt(d));f.beginPath();f.strokeStyle=e;f.lineWidth=this.Mg.no;f.moveTo(b,
c);f.lineTo(b+a,c);f.stroke()};var m=/<\s*class=/i,r=/<\s*class=["|']([^"|']+)["|']\s*\>(.*?)<\s*\/class\s*\>/,F=/<\s*style=/i,z=/<\s*style=["|']([^"|']+)["|']\s*\>(.*?)<\s*\/style\s*\>/,w=[];a.rw=function(a,b,c){null==b&&(b=this.Ud);a.At();var d=b.text;b=b.boxWidth;if(""!==d){var e=0,f=0,h,k,d=l(d);if(0!==d.length){var n,p=d.length;k=null;for(n=0;n<p;n++)if(h=d[n],m.test(h)?(k=h.match(r),h=this.St(this.kC(k[1])),h["class"]=k[1],k=k[2]):F.test(h)?(k=h.match(z),h=this.St(g(k[1])),k=k[2]):(k=h,h={}),
c)a.Wo(k,null,null,null,h,0);else{this.context.save();this.Ns(h);a:{var q=this.context,w=b,y=this.V.Oh,C=e-0;B.Im(H);if(!k||!k.length||2>=w)k=H;else{if(100>=k.length&&-1===k.indexOf("\n")){var J=q.measureText(k).width;if(J<=w-C){B.Im(H);H.push(B.Qi(k,J,u));k=H;break a}}J=k;k=H;var K=void 0;if(y){t.length=0;for(var K="",N=void 0,S=0;S<J.length;)if(N=J.charAt(S),"\n"===N)K.length&&(t.push(K),K=""),t.push("\n"),++S;else if(" "===N||"\t"===N||"-"===N){do K+=J.charAt(S),S++;while(S<J.length&&(" "===J.charAt(S)||
"\t"===J.charAt(S)));t.push(K);K=""}else S<J.length&&(K+=N,S++);K.length&&t.push(K);K=t}else K=J;for(var J=K,K="",Z=S=N=void 0,oa=J.length,qa=0,Z=0;Z<oa;Z++)"\n"===J[Z]?(qa>=k.length&&k.push(B.Qi(K,q.measureText(K).width,1)),qa++,K="",C=0):(N=K,K+=J[Z],S=q.measureText(K).width,S>=w-C&&(qa>=k.length&&k.push(B.Qi(N,q.measureText(N).width,2)),qa++,K=J[Z],y||" "!==K||(K=""),C=0));K.length&&(qa>=k.length&&k.push(B.Qi(K,q.measureText(K).width,u)),qa++);for(Z=qa;Z<k.length;Z++)B.zt(k[Z]);k.length=qa}}q=
k.length;for(w=0;w<q;w++)y=k[w],a.Wo(y.text,e,f,y.width,h,y.Pi),y.Pi!==u?(e=0,f+=this.lineHeight):e+=y.width;this.context.restore()}}}};a.qB=function(){var a=this.Ud;this.Kb&&(this.rw(this.Hg,a),this.Kb=!1);a.ignore||(this.context.textBaseline=this.textBaseline,this.context.textAlign=this.textAlign,this.pB(this.Hg,a))};var q=null;a.Pp=function(a,b,c){if(null==c)return this.Hg.Qt(a,b);null===q&&(q=new p);var d=this.Ud.text;this.Ud.text=c;this.rw(q,this.Ud,!0);this.Ud.text=d;return q.Qt(a,b)};a.yf=
function(a){if(null==a)return this.Hg.yf();a=l(a,1);if(0===a.length)return"";var b,c=a.length,d="";for(b=0;b<c;b++)d+=a[b];return d};a.bt=function(a){return this.Hg.lg(a)};a.hk=function(a){null==a&&(a=this.Hg);return a.qC()};a.Jp=function(a){null==a&&(a=this.Hg);return a.Jp()};a.nf=function(a,b){this.Sn[a]=b;return!0};a.kC=function(a){return this.Sn[a]};a.trim=function(a){var b,c;a=a.replace(/^\s\s*/,"");b=/\s/;for(c=a.length;b.test(a.charAt(--c)););return a.slice(0,c+1)};a.za=function(){return{cls:this.Sn}};
a.Ka=function(a){this.Sn=a.cls};var u=0,B=new h;B.Qi=function(a,b,c){var d=this.Xl()||{};d.text=a;d.width=b;d.Pi=c;return d};var H=[],t=[],y=new h,C=new h,a=p.prototype;a.At=function(){var a,b=this.Xa.length;for(a=0;a<b;a++)this.Xa[a].length=0;y.Im(this.vd);C.Im(this.Xa)};a.Wo=function(a,b,d,e,f,g){var h=y.Xl();null===h&&(h=new c);h.rE(a,b,d,e,f,g);a=this.vd[this.vd.length-1];null==a?h.rb=0:h.rb=a.Lp();this.vd.push(h);a=this.Xa[this.Xa.length-1];null==a&&(a=C.Xl()||[],this.Xa.push(a));a.push(h);g!==
u&&(a=C.Xl()||[],this.Xa.push(a))};a.jq=function(){return this.vd};a.Jp=function(){return this.vd[this.vd.length-1]};a.Kp=function(){return this.Xa};a.hk=function(a){a=this.Xa[a];return null==a?0:a[0].rb};a.nf=function(a){for(var b=!1,c;0<=a&&!(c=this.Xa[a],b=null!=c&&0<c.length);a--);return b?c[c.length-1].Ht():0};a.lg=function(a){null==a&&(a=new p);a.At();var b,c=this.Xa.length,d,e,f,g;for(b=0;b<c;b++)for(d=this.Xa[b],f=d.length,e=0;e<f;e++)g=d[e],a.Wo(g.text,g.x,g.y,g.width,g.prop,g.Pi);return a};
a.Nt=function(a){a=this.Xa[a];return a?(a=a[a.length-1])?a.pC():0:0};a.qC=function(){var a,b=0,c,d=this.Xa.length;for(c=0;c<d;c++)a=this.Nt(c),a>b&&(b=a);return b};a.yf=function(){var a="",b,c=this.vd.length;for(b=0;b<c;b++)a+=this.vd[b].yf();return a};a.LF=function(){var a=0,b,c=this.vd.length;for(b=0;b<c;b++)a+=this.vd[b].yf().length;return a};a.Qt=function(a,b){null==a&&(a=0);if(null==b){var c=this.Jp();if(null==c)return"";b=c.Ht()}for(var d="",e=this.vd.length,f,g,h,l,k,c=0;c<e;c++)if(f=this.vd[c],
g=f.yf(),h=f.rb,l=f.Lp(),!(l<=a)){(k=h>=a&&l<b)||(g=g.substring(a-h,b-h));f=f.prop;if(f["class"])g="<class='"+f["class"]+"'>"+g+"</class>";else{N.length=0;h=void 0;for(h in f)N.push(h+":"+f[h]);0<N.length&&(g="<style='"+N.join(";")+"'>"+g+"</style>")}d=d+g;if(l>=b)break}return d};var N=[],a=c.prototype;a.rE=function(a,b,c,d,e,f){this.text=a;this.x=b;this.y=c;this.width=d;a=this.prop;null==a&&(a={});for(var g in a)e.hasOwnProperty(g)||delete a[g];for(g in e)a[g]=e[g];this.Pi=f;this.rb=void 0};a.yf=
function(){var a=this.text;1==this.Pi&&(a+="\n");return a};a.Lp=function(){return this.rb+this.yf().length};a.Ht=function(){return this.Lp()-1};a.pC=function(){return this.x+this.width}})();function Uc(c){this.b=c}
(function(){function c(){}function p(){}var n=Uc.prototype;n.J=function(c){this.behavior=c;this.b=c.b};n.J.prototype.G=function(){};n.I=function(c,g){this.type=c;this.behavior=c.behavior;this.k=g;this.b=c.b};var g=n.I.prototype;g.G=function(){var c=this.B[0];this.kf=this.B[1];this.Jm=this.B[2];this.CA=0!==this.B[3];this.Wk=0!==this.B[4];this.ib=Math.cos(this.k.u)*c;this.Wa=Math.sin(this.k.u)*c;this.vh=this.k.x;this.wh=this.k.y;this.rd=this.k.u;this.qo=0;this.enabled=0!==this.B[5]};g.za=function(){return{acc:this.kf,
g:this.Jm,dx:this.ib,dy:this.Wa,lx:this.vh,ly:this.wh,lka:this.rd,t:this.qo,e:this.enabled}};g.Ka=function(c){this.kf=c.acc;this.Jm=c.g;this.ib=c.dx;this.Wa=c.dy;this.vh=c.lx;this.wh=c.ly;this.rd=c.lka;this.qo=c.t;this.enabled=c.e};g.Na=function(){if(this.enabled){var c=this.b.Ke(this.k),g,h;this.k.u!==this.rd&&(this.Wk&&(g=Wa(0,0,this.ib,this.Wa),this.ib=Math.cos(this.k.u)*g,this.Wa=Math.sin(this.k.u)*g),this.rd=this.k.u);0!==this.kf&&(g=Wa(0,0,this.ib,this.Wa),h=0===this.ib&&0===this.Wa?this.k.u:
Ra(0,0,this.ib,this.Wa),g+=this.kf*c,0>g&&(g=0),this.ib=Math.cos(h)*g,this.Wa=Math.sin(h)*g);0!==this.Jm&&(this.Wa+=this.Jm*c);this.vh=this.k.x;this.wh=this.k.y;if(0!==this.ib||0!==this.Wa)if(this.k.x+=this.ib*c,this.k.y+=this.Wa*c,this.qo+=Wa(0,0,this.ib*c,this.Wa*c),this.Wk&&(this.k.u=Ra(0,0,this.ib,this.Wa),this.k.T(),this.rd=this.k.u),this.k.T(),this.CA&&(g=this.b.Lh(this.k)))this.b.aE(this.k,g),g=Wa(0,0,this.ib,this.Wa),h=this.b.FA(this.k,this.vh,this.wh),this.ib=Math.cos(h)*g,this.Wa=Math.sin(h)*
g,this.k.x+=this.ib*c,this.k.y+=this.Wa*c,this.k.T(),this.Wk&&(this.rd=this.k.u=h,this.k.T()),this.b.YD(this.k,this.ib/g,this.Wa/g,Math.max(2.5*g*c,30))||this.b.ZD(this.k)}};n.j=new function(){};c.prototype.Uh=function(c){var g=Ra(0,0,this.ib,this.Wa);this.ib=Math.cos(g)*c;this.Wa=Math.sin(g)*c};c.prototype.pz=function(c){c=G(c);var g=Wa(0,0,this.ib,this.Wa);this.ib=Math.cos(c)*g;this.Wa=Math.sin(c)*g};c.prototype.qj=function(c){this.enabled=1===c};n.q=new c;p.prototype.rj=function(c){var g=Wa(0,
0,this.ib,this.Wa),g=qb(g);c.H(g)};p.prototype.Or=function(c){c.H(Ma(Ra(0,0,this.ib,this.Wa)))};n.C=new p})();
function Vc(c){this.b=c;var p=this;this.b.Da||(jQuery(document).mousemove(function(c){p.Ek(c)}),jQuery(document).mousedown(function(c){p.Dk(c)}),jQuery(document).mouseup(function(c){p.Fk(c)}));c=0<this.b.xc?document:this.b.canvas;this.b.ac?c=window.Canvas:this.b.ad&&(c=window);"undefined"!==typeof PointerEvent?(c.addEventListener("pointerdown",function(c){p.Hk(c)},!1),c.addEventListener("pointermove",function(c){p.Gk(c)},!1),c.addEventListener("pointerup",function(c){p.Kf(c)},!1),c.addEventListener("pointercancel",
function(c){p.Kf(c)},!1)):window.navigator.msPointerEnabled?(c.addEventListener("MSPointerDown",function(c){p.Hk(c)},!1),c.addEventListener("MSPointerMove",function(c){p.Gk(c)},!1),c.addEventListener("MSPointerUp",function(c){p.Kf(c)},!1),c.addEventListener("MSPointerCancel",function(c){p.Kf(c)},!1)):(c.addEventListener("touchstart",function(c){p.vn(c)},!1),c.addEventListener("touchmove",function(c){p.un(c)},!1),c.addEventListener("touchend",function(c){p.Ui(c)},!1),c.addEventListener("touchcancel",
function(c){p.Ui(c)},!1))}
(function(){function c(c){var b,e;b=0;for(e=c.X.length;b<e;b++)if(c.X[b]instanceof g.I)return c.X[b];return null}function p(){}function n(){}var g=Vc.prototype,l={left:0,top:0};g.Dk=function(c){1===c.which&&this.Iq("leftmouse",c.pageX,c.pageY)};g.Ek=function(c){1===c.which&&this.Jq("leftmouse",c.pageX,c.pageY)};g.Fk=function(c){1===c.which&&this.Kq("leftmouse")};g.vn=function(c){c.preventDefault&&sb(c)&&c.preventDefault();var b,e,d,a;b=0;for(e=c.changedTouches.length;b<e;b++)d=c.changedTouches[b],
a=d.identifier,this.Iq(a?a.toString():"<none>",d.pageX,d.pageY)};g.un=function(c){c.preventDefault&&c.preventDefault();var b,e,d,a;b=0;for(e=c.changedTouches.length;b<e;b++)d=c.changedTouches[b],a=d.identifier,this.Jq(a?a.toString():"<none>",d.pageX,d.pageY)};g.Ui=function(c){c.preventDefault&&sb(c)&&c.preventDefault();var b,e,d;b=0;for(e=c.changedTouches.length;b<e;b++)d=c.changedTouches[b],d=d.identifier,this.Kq(d?d.toString():"<none>")};g.Hk=function(c){c.pointerType!==c.MSPOINTER_TYPE_MOUSE&&
"mouse"!==c.pointerType&&(c.preventDefault&&sb(c)&&c.preventDefault(),this.Iq(c.pointerId.toString(),c.pageX,c.pageY))};g.Gk=function(c){c.pointerType!==c.MSPOINTER_TYPE_MOUSE&&"mouse"!==c.pointerType&&(c.preventDefault&&c.preventDefault(),this.Jq(c.pointerId.toString(),c.pageX,c.pageY))};g.Kf=function(c){c.pointerType!==c.MSPOINTER_TYPE_MOUSE&&"mouse"!==c.pointerType&&(c.preventDefault&&sb(c)&&c.preventDefault(),this.Kq(c.pointerId.toString()))};g.Iq=function(g,b,e){var d=this.b.Da?l:jQuery(this.b.canvas).offset();
b=b-d.left;e=e-d.top;var a,f,k,n,d=this.Ch.Wd(),p,z,w,q=null;p=0;for(z=d.length;p<z;p++)if(w=d[p],a=c(w),a.enabled&&!a.pg&&(a=w.A.bb(b,e,!0),f=w.A.bb(b,e,!1),w.Aa(),w.hc(a,f)))q?w.A.index>q.A.index?(q=w,k=a,n=f):w.A.index===q.A.index&&w.Id()>q.Id()&&(q=w,k=a,n=f):(q=w,k=a,n=f);q&&c(q).AD(g,k,n)};g.Jq=function(g,b,e){var d=this.b.Da?l:jQuery(this.b.canvas).offset();b=b-d.left;e=e-d.top;var a,f=this.Ch.Wd(),k,n,p;k=0;for(n=f.length;k<n;k++)a=f[k],p=c(a),!p.enabled||!p.pg||p.pg&&p.tp!==g||(d=a.A.bb(b,
e,!0),a=a.A.bb(b,e,!1),p.DD(d,a))};g.Kq=function(g){var b=this.Ch.Wd(),e,d,a;e=0;for(d=b.length;e<d;e++)a=b[e],a=c(a),a.pg&&a.tp===g&&a.GD()};g.J=function(c){this.behavior=c;this.b=c.b};g.J.prototype.G=function(){};g.I=function(c,b){this.type=c;this.behavior=c.behavior;this.k=b;this.b=c.b};var k=g.I.prototype;k.G=function(){this.pg=!1;this.Wa=this.ib=0;this.tp="<none>";this.$o=this.B[0];this.enabled=0!==this.B[1]};k.za=function(){return{enabled:this.enabled}};k.Ka=function(c){this.enabled=c.enabled;
this.pg=!1};k.AD=function(c,b,e){this.ib=b-this.k.x;this.Wa=e-this.k.y;this.pg=!0;this.tp=c;this.b.fb=!0;this.b.trigger(Vc.prototype.j.ny,this.k);this.b.fb=!1};k.DD=function(c,b){var e=c-this.ib,d=b-this.Wa;if(0===this.$o){if(this.k.x!==e||this.k.y!==d)this.k.x=e,this.k.y=d,this.k.T()}else 1===this.$o?this.k.x!==e&&(this.k.x=e,this.k.T()):2===this.$o&&this.k.y!==d&&(this.k.y=d,this.k.T())};k.GD=function(){this.pg=!1;this.b.fb=!0;this.b.trigger(Vc.prototype.j.qy,this.k);this.b.fb=!1};k.Na=function(){};
p.prototype.ny=function(){return!0};p.prototype.qy=function(){return!0};g.j=new p;n.prototype.qj=function(c){this.enabled=0!==c;this.enabled||(this.pg=!1)};g.q=new n;g.C=new function(){}})();function Wc(c){this.b=c}
(function(){function c(){}function p(){}var n=Wc.prototype;n.J=function(c){this.behavior=c;this.b=c.b};n.J.prototype.G=function(){};n.I=function(c,g){this.type=c;this.behavior=c.behavior;this.k=g;this.b=c.b};var g=n.I.prototype;g.G=function(){this.Vo=1===this.B[0];this.Jv=!1;this.ii=this.B[1];this.lj=this.B[2];this.Kj=this.B[3];this.TA=this.B[4];this.Jb=this.Vo?0:3;this.Yb?this.Rd.reset():this.Rd=new eb;this.Cg=this.k.opacity?this.k.opacity:1;this.Vo&&(0===this.ii?(this.Jb=1,0===this.lj&&(this.Jb=
2)):(this.k.opacity=0,this.b.N=!0))};g.za=function(){return{fit:this.ii,wt:this.lj,fot:this.Kj,s:this.Jb,st:this.Rd.ba,mo:this.Cg}};g.Ka=function(c){this.ii=c.fit;this.lj=c.wt;this.Kj=c.fot;this.Jb=c.s;this.Rd.reset();this.Rd.ba=c.st;this.Cg=c.mo};g.Na=function(){this.Rd.add(this.b.Ke(this.k));0===this.Jb&&(this.k.opacity=this.Rd.ba/this.ii*this.Cg,this.b.N=!0,this.k.opacity>=this.Cg&&(this.k.opacity=this.Cg,this.Jb=1,this.Rd.reset(),this.b.trigger(Wc.prototype.j.$r,this.k)));1===this.Jb&&this.Rd.ba>=
this.lj&&(this.Jb=2,this.Rd.reset(),this.b.trigger(Wc.prototype.j.Vy,this.k));2===this.Jb&&0!==this.Kj&&(this.k.opacity=this.Cg-this.Rd.ba/this.Kj*this.Cg,this.b.N=!0,0>this.k.opacity&&(this.k.opacity=0,this.Jb=3,this.Rd.reset(),this.b.trigger(Wc.prototype.j.as,this.k),1===this.TA&&this.b.hf(this.k)))};g.it=function(){this.Jb=0;this.Rd.reset();0===this.ii?(this.Jb=1,0===this.lj&&(this.Jb=2)):(this.k.opacity=0,this.b.N=!0)};c.prototype.as=function(){return!0};c.prototype.$r=function(){return!0};c.prototype.Vy=
function(){return!0};n.j=new c;p.prototype.Zz=function(){this.Vo||this.Jv||(this.Cg=this.k.opacity?this.k.opacity:1,this.Jv=!0);3===this.Jb&&this.it()};p.prototype.jz=function(){this.it()};p.prototype.wz=function(c){0>c&&(c=0);this.ii=c};p.prototype.Sz=function(c){0>c&&(c=0);this.lj=c};p.prototype.xz=function(c){0>c&&(c=0);this.Kj=c};n.q=new p;n.C=new function(){}})();function Xc(c){this.b=c}
(function(){function c(){}function p(){}var n=Xc.prototype;n.J=function(c){this.behavior=c;this.b=c.b};n.J.prototype.G=function(){};n.I=function(c,g){this.type=c;this.behavior=c.behavior;this.k=g;this.b=c.b};var g=n.I.prototype;g.G=function(){this.Vd=this.bf=this.Jb=this.sn=this.wn=0};g.za=function(){return{ontime:this.wn,offtime:this.sn,stage:this.Jb,stagetimeleft:this.bf,timeleft:this.Vd}};g.Ka=function(c){this.wn=c.ontime;this.sn=c.offtime;this.Jb=c.stage;this.bf=c.stagetimeleft;this.Vd=c.timeleft;
null===this.Vd&&(this.Vd=Infinity)};g.Na=function(){if(!(0>=this.Vd)){var c=this.b.Ke(this.k);this.Vd-=c;0>=this.Vd?(this.Vd=0,this.k.visible=!0,this.b.N=!0,this.b.trigger(Xc.prototype.j.bs,this.k)):(this.bf-=c,0>=this.bf&&(0===this.Jb?(this.k.visible=!1,this.Jb=1,this.bf+=this.sn):(this.k.visible=!0,this.Jb=0,this.bf+=this.wn),this.b.N=!0))}};c.prototype.Dx=function(){return 0<this.Vd};c.prototype.bs=function(){return!0};n.j=new c;p.prototype.jx=function(c,g,h){this.wn=c;this.sn=g;this.Jb=1;this.bf=
g;this.Vd=h;this.k.visible=!1;this.b.N=!0};p.prototype.$z=function(){this.Vd=0;this.k.visible=!0;this.b.N=!0};n.q=new p;n.C=new function(){}})();function Yc(c){this.b=c}
(function(){function c(){}var p=Yc.prototype;p.J=function(c){this.behavior=c;this.b=c.b};p.J.prototype.G=function(){};p.I=function(c,l){this.type=c;this.behavior=c.behavior;this.k=l;this.b=c.b};var n=p.I.prototype;n.G=function(){this.Wb=null;this.Bn=-1;this.mode=this.rd=this.lo=this.Ni=this.Mf=this.Mk=0;var c=this;this.Yb||(this.xk=function(l){c.Bk(l)});this.b.Vl(this.xk)};n.za=function(){return{uid:this.Wb?this.Wb.uid:-1,pa:this.Mk,pd:this.Mf,msa:this.Ni,tsa:this.lo,lka:this.rd,m:this.mode}};n.Ka=
function(c){this.Bn=c.uid;this.Mk=c.pa;this.Mf=c.pd;this.Ni=c.msa;this.lo=c.tsa;this.rd=c.lka;this.mode=c.m};n.$d=function(){-1===this.Bn?this.Wb=null:this.Wb=this.b.ni(this.Bn);this.Bn=-1};n.Bk=function(c){this.Wb==c&&(this.Wb=null)};n.Md=function(){this.Wb=null;this.b.yv(this.xk)};n.Na=function(){};n.fj=function(){if(this.Wb){this.rd!==this.k.u&&(this.Ni=Oa(this.Ni+(this.k.u-this.rd)));var c=this.k.x,l=this.k.y;if(3===this.mode||4===this.mode){var k=Wa(this.k.x,this.k.y,this.Wb.x,this.Wb.y);if(k>
this.Mf||4===this.mode&&k<this.Mf)l=Ra(this.Wb.x,this.Wb.y,this.k.x,this.k.y),c=this.Wb.x+Math.cos(l)*this.Mf,l=this.Wb.y+Math.sin(l)*this.Mf}else c=this.Wb.x+Math.cos(this.Wb.u+this.Mk)*this.Mf,l=this.Wb.y+Math.sin(this.Wb.u+this.Mk)*this.Mf;this.rd=k=Oa(this.Ni+(this.Wb.u-this.lo));0!==this.mode&&1!==this.mode&&3!==this.mode&&4!==this.mode||this.k.x===c&&this.k.y===l||(this.k.x=c,this.k.y=l,this.k.T());0!==this.mode&&2!==this.mode||this.k.u===k||(this.k.u=k,this.k.T())}};p.j=new function(){};c.prototype.bz=
function(c,l){if(c){var k=c.Jt(this.k);k&&(this.Wb=k,this.Mk=Ra(k.x,k.y,this.k.x,this.k.y)-k.u,this.Mf=Wa(k.x,k.y,this.k.x,this.k.y),this.rd=this.Ni=this.k.u,this.lo=k.u,this.mode=l)}};p.q=new c;p.C=new function(){}})();function Zc(c){this.b=c}
(function(){function c(){}function p(){}function n(){}var g=Zc.prototype;g.J=function(c){this.behavior=c;this.b=c.b};g.J.prototype.G=function(){};g.I=function(c,g){this.type=c;this.behavior=c.behavior;this.k=g;this.b=c.b};var l=g.I.prototype;l.G=function(){this.enabled=0!==this.B[0];var c=this.B[1];this.jt=0===c;this.AA=1===c;this.duration=this.B[2];this.yq=this.B[3];this.xq=this.B[4];this.lh=!1;this.Be=this.Yd=null;this.Jg=0;this.Oe=!1};l.Na=function(){this.jt?this.Qr():this.AA&&(this.Qr(!0),this.Pl())};
l.fj=function(){this.jt&&this.Pl()};l.Pl=function(){if(this.enabled&&this.lh){var c=this.b.Ke(this.k);0!==c&&(this.Yd=this.k.x,this.Be=this.k.y,this.Vz(c)&&(this.lh=!1,this.Oe=!0,this.b.trigger(Zc.prototype.j.Py,this.k),this.Oe=!1))}};l.Vz=function(c){var g=this.Jg<=c,b,e;if(g)e=b=0;else{e=this.yq*Math.min(this.b.df,1);1===this.xq&&(e*=this.Jg/this.duration);var d=Math.random()*Math.PI*2;b=Math.cos(d)*e;e*=Math.sin(d)}b=this.Yd+b;e=this.Be+e;if(b!==this.k.x||e!==this.k.y)this.k.x=b,this.k.y=e,this.k.T();
this.Jg-=c;return g};l.Qr=function(c){this.enabled&&this.lh&&null!==this.Yd&&(this.Yd!==this.k.x||this.Be!==this.k.y)&&(this.k.x=this.Yd,this.k.y=this.Be,this.Be=this.Yd=null,c||this.k.T())};l.za=function(){return{e:this.enable,dur:this.duration,mag:this.yq,magMode:this.xq,isShake:this.lh,ox:this.Yd,oy:this.Be,rem:this.Jg}};l.Ka=function(c){this.enable=c.e;this.duration=c.dur;this.yq=c.mag;this.xq=c.magMode;this.lh=c.isShake;this.Yd=c.ox;this.Be=c.oy;this.Jg=c.rem};g.j=new c;c.prototype.Py=function(){return this.Oe};
g.q=new p;p.prototype.Qo=function(){this.lh=!0;this.Jg=this.duration};p.prototype.Ql=function(){this.lh=!1;this.Jg=0};g.C=new n;n.prototype.Yd=function(c){c.H(null!==this.Yd?this.Yd:this.k.x)};n.prototype.Be=function(c){c.H(null!==this.Be?this.Be:this.k.y)}})();function $c(c){this.b=c}
(function(){function c(c,a,f){var g=c.Fg[a],l=c.Gg[a],k=c.Pc,n=c.Ik?c.Ik[a]:g+(g-l);c=c.Jk?c.Jk[a]:l+(l-g);var p;k===h?(k=h,a=b,p=e):(h=k,b=a=k*k,e=p=a*k);return(-f*k+2*f*a-f*p)*n+(1+(f-3)*a+(2-f)*p)*g+(+f*k+(3-2*f)*a+(f-2)*p)*l+(-f*a+f*p)*c}function p(){}function n(){}function g(){}var l=$c.prototype;l.J=function(b){this.behavior=b;this.b=b.b};l.J.prototype.G=function(){};l.I=function(b,a){this.type=b;this.behavior=b.behavior;this.k=a;this.b=b.b};var k=l.I.prototype;k.G=function(){this.enabled=1===
this.B[0];this.speed=this.B[1];this.Wk=0!==this.B[2];this.cq=1===this.B[3];this.jo=this.B[4];this.Yb||(this.fd=[],this.Y={te:-1,Pc:1,Ik:null,Fg:null,Gg:null,Jk:null,fi:0,Nk:0,Ok:0});this.wk=this.pl=0;this.Oe=this.nh=!1};k.Md=function(){this.Y.Ik=null;this.Y.Fg=null;this.Y.Gg=null;this.Y.Jk=null;this.fd.length=0};k.Na=function(){this.enabled&&this.nh&&this.move()};k.move=function(b){null==b&&(b=this.b.Ke(this.k));if(0!==b){b=this.speed*b;for(var a=b/3,e=null,g,h=this.k.x,l=this.k.y,k,n,p,u;0<b;){k=
this.Pt();if(null==k)break;0!==k.fi&&(e!==k.fi&&(e=k.fi,g=a/e,.34<g&&(g=.34)),k.Pc+=g,1<=k.Pc?(k.Pc=1,n=k.Gg[0],p=k.Gg[1]):(n=c(k,0,this.jo),p=c(k,1,this.jo)),u=Wa(k.Nk,k.Ok,n,p),this.pl+=u,b-=u,this.k.x=n,this.k.y=p)}this.wk=h===this.k.x&&l===this.k.y?this.k.u:Ra(h,l,this.k.x,this.k.y);this.Wk&&(this.k.u=this.wk);0!==this.speed&&(this.k.T(),null==k?this.bv():(k.Nk=n,k.Ok=p))}};k.start=function(){this.Y.te=-1;this.Y.Pc=1;this.pl=0;this.nh=!0;null===this.Pt()&&this.bv()};k.bv=function(){this.nh&&(this.nh=
!1,this.Oe=!0,this.b.trigger($c.prototype.j.vy,this.k),this.Oe=!1)};k.RC=function(){this.Oe=!0;this.b.trigger($c.prototype.j.uy,this.k);this.Oe=!1};k.Ng=function(b){if(this.cq){var a=this.fd.length;b=b%a;0>b&&(b=a+b)}return b};k.Pt=function(){if(1===this.Y.Pc){this.Y.te=this.Ng(this.Y.te+1);var b=this.Y.te,a=this.Ng(b+1);if(a>=this.fd.length)return null;var c=this.Ng(a+1);this.Y.Ik=this.fd[this.Ng(b-1)];this.Y.Fg=this.fd[b];this.Y.Gg=this.fd[a];this.Y.Jk=this.fd[c];this.Y.fi=Wa(this.Y.Fg[0],this.Y.Fg[1],
this.Y.Gg[0],this.Y.Gg[1]);this.Y.Pc=0;this.Y.Nk=this.Y.Fg[0];this.Y.Ok=this.Y.Fg[1];this.RC()}return this.Y};var h,b,e;k.za=function(){return{en:this.enabled,spd:this.speed,lop:this.cq,ts:this.jo,ps:this.fd,ptr:this.Y.te,seg:{ptr:this.Y.te,t:this.Y.Pc,d:this.Y.fi,pX:this.Y.Nk,pY:this.Y.Ok},td:this.pl,ma:this.wk,mov:this.nh}};k.Ka=function(b){this.enabled=b.en;this.speed=b.spd;this.cq=b.lop;this.jo=b.ts;this.fd=b.ps;this.Y=b.seg;this.Y.te=b.seg.ptr;this.Y.Pc=b.seg.t;this.Y.fi=b.seg.d;this.Y.Nk=b.seg.pX;
this.Y.Ok=b.seg.pY;this.Y.Ik=this.fd[this.Ng(this.Y.te-1)];this.Y.Fg=this.fd[this.Ng(this.Y.te)];this.Y.Gg=this.fd[this.Ng(this.Y.te+1)];this.Y.Jk=this.fd[this.Ng(this.Y.te+2)];this.pl=b.td;this.wk=b.ma;this.nh=b.mov};l.j=new p;p.prototype.vy=function(){return this.Oe};p.prototype.uy=function(){return this.Oe};l.q=new n;n.prototype.qj=function(b){this.enabled=1===b};n.prototype.Dw=function(b,a){this.fd.push([b,a])};n.prototype.Qo=function(){this.start()};n.prototype.Ql=function(){this.nh=!1};n.prototype.Uh=
function(b){this.speed=b};l.C=new g;g.prototype.rj=function(b){b.H(this.speed)};g.prototype.Or=function(b){b.H(Pa(this.wk))}})();function cd(c){this.b=c}
(function(){function c(){}function p(){}var n=cd.prototype;n.J=function(c){this.behavior=c;this.b=c.b};n.J.prototype.G=function(){};n.I=function(c,g){this.type=c;this.behavior=c.behavior;this.k=g;this.b=c.b};var g=n.I.prototype;g.G=function(){this.speed=G(this.B[0]);this.kf=G(this.B[1])};g.za=function(){return{speed:this.speed,acc:this.kf}};g.Ka=function(c){this.speed=c.speed;this.kf=c.acc};g.Na=function(){var c=this.b.Ke(this.k);0!==c&&(0!==this.kf&&(this.speed+=this.kf*c),0!==this.speed&&(this.k.u=
Oa(this.k.u+this.speed*c),this.k.T()))};n.j=new function(){};c.prototype.Uh=function(c){this.speed=G(c)};n.q=new c;p.prototype.rj=function(c){c.H(Ma(this.speed))};n.C=new p})();function dd(c){this.b=c}
(function(){function c(){}function p(){}var n=dd.prototype;n.J=function(b){this.behavior=b;this.b=b.b};n.J.prototype.G=function(){};n.I=function(b,c){this.type=b;this.behavior=b.behavior;this.k=c;this.b=b.b;this.sb=0};var g=n.I.prototype,l=2*Math.PI,k=Math.PI/2,h=3*Math.PI/2;g.G=function(){this.gc=1===this.B[0];this.vk=this.B[1];this.Mr=this.B[2];this.Lf=this.B[3];this.Lf+=Math.random()*this.B[4];0===this.Lf?this.sb=0:(this.sb=this.B[5]/this.Lf*l,this.sb+=Math.random()*this.B[6]/this.Lf*l);this.Fc=
this.B[7];this.Fc+=Math.random()*this.B[8];this.Sk=this.hh=this.wa=0;this.init()};g.za=function(){return{i:this.sb,a:this.gc,mv:this.vk,w:this.Mr,p:this.Lf,mag:this.Fc,iv:this.wa,iv2:this.hh,r:this.Sk,lkv:this.cd,lkv2:this.ik}};g.Ka=function(b){this.sb=b.i;this.gc=b.a;this.vk=b.mv;this.Mr=b.w;this.Lf=b.p;this.Fc=b.mag;this.wa=b.iv;this.hh=b.iv2||0;this.Sk=b.r;this.cd=b.lkv;this.ik=b.lkv2||0};g.init=function(){switch(this.vk){case 0:this.wa=this.k.x;break;case 1:this.wa=this.k.y;break;case 2:this.wa=
this.k.width;this.Sk=this.k.height/this.k.width;break;case 3:this.wa=this.k.width;break;case 4:this.wa=this.k.height;break;case 5:this.wa=this.k.u;this.Fc=G(this.Fc);break;case 6:this.wa=this.k.opacity;break;case 7:this.wa=0;break;case 8:this.wa=this.k.x,this.hh=this.k.y}this.cd=this.wa;this.ik=this.hh};g.gf=function(b){b=b%l;switch(this.Mr){case 0:return Math.sin(b);case 1:return b<=k?b/k:b<=h?1-2*(b-k)/Math.PI:(b-h)/k-1;case 2:return 2*b/l-1;case 3:return-2*b/l+1;case 4:return b<Math.PI?-1:1}return 0};
g.Na=function(){var b=this.b.Ke(this.k);this.gc&&0!==b&&(0===this.Lf?this.sb=0:(this.sb+=b/this.Lf*l,this.sb=this.sb%l),this.qw())};g.qw=function(){switch(this.vk){case 0:this.k.x!==this.cd&&(this.wa+=this.k.x-this.cd);this.k.x=this.wa+this.gf(this.sb)*this.Fc;this.cd=this.k.x;break;case 1:this.k.y!==this.cd&&(this.wa+=this.k.y-this.cd);this.k.y=this.wa+this.gf(this.sb)*this.Fc;this.cd=this.k.y;break;case 2:this.k.width=this.wa+this.gf(this.sb)*this.Fc;this.k.height=this.k.width*this.Sk;break;case 3:this.k.width=
this.wa+this.gf(this.sb)*this.Fc;break;case 4:this.k.height=this.wa+this.gf(this.sb)*this.Fc;break;case 5:this.k.u!==this.cd&&(this.wa=Oa(this.wa+(this.k.u-this.cd)));this.k.u=Oa(this.wa+this.gf(this.sb)*this.Fc);this.cd=this.k.u;break;case 6:this.k.opacity=this.wa+this.gf(this.sb)*this.Fc/100;0>this.k.opacity?this.k.opacity=0:1<this.k.opacity&&(this.k.opacity=1);break;case 8:this.k.x!==this.cd&&(this.wa+=this.k.x-this.cd),this.k.y!==this.ik&&(this.hh+=this.k.y-this.ik),this.k.x=this.wa+Math.cos(this.k.u)*
this.gf(this.sb)*this.Fc,this.k.y=this.hh+Math.sin(this.k.u)*this.gf(this.sb)*this.Fc,this.cd=this.k.x,this.ik=this.k.y}this.k.T()};g.cv=function(b,c){switch(this.vk){case 2:this.wa*=c.width/b.width;this.Sk=c.height/c.width;break;case 3:this.wa*=c.width/b.width;break;case 4:this.wa*=c.height/b.height}};n.j=new function(){};c.prototype.nz=function(b){this.gc=1===b};c.prototype.Hz=function(b){this.sb=b*l%l;this.qw()};n.q=new c;p.prototype.gA=function(b){b.H(this.gf(this.sb)*this.Fc)};n.C=new p})();
function ed(c){this.b=c}
(function(){function c(){}function p(){}function n(){}var g=ed.prototype;g.J=function(b){this.behavior=b;this.b=b.b};g.J.prototype.G=function(){this.we=[]};g.I=function(b,c){this.type=b;this.behavior=b.behavior;this.k=c;this.b=b.b};var l=g.I.prototype;l.G=function(){this.hd=this.B[0];this.Nf=this.B[1];this.On=0!==this.B[2];this.dr=G(this.B[3]);this.io=this.B[4];this.Pk=0!==this.B[5];this.Jn=this.B[6];this.enabled=0!==this.B[7];this.vw=0!==this.B[8];this.$m=0;this.ke=this.Nf;this.currentTarget=null;
this.qq=-1;this.Eg=this.Dg=0;this.Ei=[0,0,0,0];this.Qd=0;this.ki=!0;var b=this;this.Yb||(this.xk=function(c){b.Bk(c)});this.b.Vl(this.xk)};l.za=function(){var b={r:this.hd,rof:this.Nf,re:this.On,rs:this.dr,tm:this.io,pa:this.Pk,ps:this.Jn,en:this.enabled,lct:this.$m,ftc:this.ke,target:this.currentTarget?this.currentTarget.uid:-1,ox:this.Dg,oy:this.Eg,ls:this.Ei,sc:this.Qd,targs:[]},c,d;c=0;for(d=this.type.we.length;c<d;c++)b.targs.push(this.type.we[c].ta);return b};l.Ka=function(b){this.hd=b.r;this.Nf=
b.rof;this.On=b.re;this.dr=b.rs;this.io=b.tm;this.Pk=b.pa;this.Jn=b.ps;this.enabled=b.en;this.$m=b.lct;this.ke=b.ftc||0;this.qq=b.target;this.Dg=b.ox;this.Eg=b.oy;this.Ei=b.ls;this.Qd=b.sc;E(this.type.we);var c,d,a;c=0;for(d=b.targs.length;c<d;c++)(a=this.b.Pj(b.targs[c]))&&this.type.we.push(a)};l.$d=function(){-1===this.qq?this.currentTarget=null:this.currentTarget=this.b.ni(this.qq)};l.Bk=function(b){this.currentTarget==b&&(this.currentTarget=null)};l.Md=function(){this.currentTarget=null;this.b.yv(this.xk)};
l.uA=function(b){4>this.Qd?(this.Ei[this.Qd]=b,this.Qd++):(this.Ei.shift(),this.Ei.push(b))};l.yC=function(){for(var b=0,c=0;c<this.Qd;c++)b+=this.Ei[c];return b/this.Qd};l.bq=function(b){var c=this.k,d=b.x-c.x;b=b.y-c.y;return d*d+b*b<=this.hd*this.hd};var k=new wa(0,0,0,0),h=[];l.pD=function(){var b,c,d;k.left=this.k.x-this.hd;k.top=this.k.y-this.hd;k.right=this.k.x+this.hd;k.bottom=this.k.y+this.hd;if(this.vw)this.b.Qp(null,this.type.we,k,h);else for(b=0,c=this.type.we.length;b<c;++b)Ga(h,this.type.we[b].n);
b=0;for(c=h.length;b<c;++b)if(d=h[b],this.bq(d)){this.currentTarget=d;E(h);return}E(h)};l.qD=function(){var b,c,d,a,f,g=this.k.x,l=this.k.y,n=this.hd*this.hd;this.currentTarget=null;k.left=g-this.hd;k.top=l-this.hd;k.right=g+this.hd;k.bottom=l+this.hd;if(this.vw)this.b.Qp(null,this.type.we,k,h);else for(b=0,c=this.type.we.length;b<c;++b)Ga(h,this.type.we[b].n);b=0;for(c=h.length;b<c;++b)d=h[b],a=g-d.x,f=l-d.y,a=a*a+f*f,a<n&&(this.currentTarget=d,n=a);h.length=0};l.Na=function(){var b=this.b.Ke(this.k),
c=this.b.tb.ba,d=this.k;if(this.enabled){this.currentTarget&&!this.bq(this.currentTarget)&&(this.currentTarget=null,this.Qd=0,this.ki=!0);c>=this.$m+.1&&((this.$m=c,0!==this.io||this.currentTarget)?1===this.io&&(c=this.currentTarget,this.qD(),this.currentTarget&&this.currentTarget!==c&&(this.Qd=0,this.ki=!0,this.Dg=this.currentTarget.x,this.Eg=this.currentTarget.y,this.b.trigger(ed.prototype.j.Ho,this.k))):(this.pD(),this.currentTarget&&(this.Qd=0,this.ki=!0,this.Dg=this.currentTarget.x,this.Eg=this.currentTarget.y,
this.b.trigger(ed.prototype.j.Ho,this.k))));this.ke+=b;if(this.currentTarget){c=Ra(d.x,d.y,this.currentTarget.x,this.currentTarget.y);if(this.Pk){var a=d.x,f=d.y,g=this.currentTarget.x,h=this.currentTarget.y,k=Ra(g,h,this.Dg,this.Eg);this.ki||this.uA(Wa(g,h,this.Dg,this.Eg)/b);var l=this.yC(),n=h-f,p=g-a,a=(l*Math.sin(k)*(a-g)-l*Math.cos(k)*(f-h))/this.Jn,n=Math.asin(a/Math.sqrt(n*n+p*p))-Math.atan2(n,-p)+Math.PI;isNaN(n)||(c=n)}this.On&&(d.u=Ta(d.u,c,this.dr*b),d.T());this.ke>=this.Nf&&(!this.On||
.1>=Ma(Sa(d.u,c)))&&(!this.Pk||4<=this.Qd)&&(this.ke-=this.Nf,this.ke>=this.Nf&&(this.ke=0),this.b.trigger(ed.prototype.j.xs,this.k));this.currentTarget&&(this.Dg=this.currentTarget.x,this.Eg=this.currentTarget.y);this.ki=!1}this.ke>this.Nf&&(this.ke=this.Nf)}};c.prototype.xs=function(){return!0};c.prototype.Ho=function(){return!0};g.j=new c;p.prototype.Aw=function(b){if(b){b=b.R().$b();var c,d,a;c=0;for(d=b.length;c<d;++c)if(a=b[c],this.currentTarget!==a&&this.bq(a)){this.currentTarget=a;this.Qd=
0;this.ki=!0;this.Dg=this.currentTarget.x;this.Eg=this.currentTarget.y;this.b.trigger(ed.prototype.j.Ho,this.k);break}}};p.prototype.Ew=function(b){var c=this.type.we;if(-1===c.indexOf(b)){var d,a,f;d=0;for(a=c.length;d<a;d++)if(f=c[d],f.S&&-1!==f.Bh.indexOf(b))return;c.push(b)}};p.prototype.qj=function(b){this.enabled=0!==b};p.prototype.Lz=function(b){this.Nf=b};p.prototype.Jz=function(b){this.Pk=0!==b};p.prototype.Kz=function(b){this.Jn=b};g.q=new p;n.prototype.cA=function(b){b.O(this.currentTarget?
this.currentTarget.uid:0)};g.C=new n})();function gd(c){this.b=c}(function(){var c=gd.prototype;c.J=function(c){this.behavior=c;this.b=c.b};c.J.prototype.G=function(){};c.I=function(c,n){this.type=c;this.behavior=c.behavior;this.k=n;this.b=c.b};c=c.I.prototype;c.G=function(){};c.Na=function(){this.k.Aa();var c=this.k.ab,n=this.k.A.Eb;(0>c.right||0>c.bottom||c.left>n.width||c.top>n.height)&&this.b.hf(this.k)}})();function hd(c){this.b=c;this.$n=this.cl=this.Jh=this.Zn=0}
(function(){function c(){}var p=hd.prototype;p.J=function(c){this.behavior=c;this.b=c.b};p.J.prototype.G=function(){};p.I=function(c,l){this.type=c;this.behavior=c.behavior;this.k=l;this.b=c.b};var n=p.I.prototype;n.G=function(){this.enabled=0!==this.B[0]};n.za=function(){return{smg:this.behavior.Zn,ss:this.behavior.Jh,se:this.behavior.cl,smd:this.behavior.$n}};n.Ka=function(c){this.behavior.Zn=c.smg;this.behavior.Jh=c.ss;this.behavior.cl=c.se;this.behavior.$n=c.smd};n.Na=function(){};n.fj=function(){if(this.enabled){var c=
this.behavior.Ch.Wd(),l=0,k=0,h,b,e,d=0;h=0;for(b=c.length;h<b;h++){a:{e=c[h];for(var a=void 0,f=void 0,m=void 0,a=0,f=e.X.length;a<f;++a)if(m=e.X[a],m.behavior instanceof hd){e=m;break a}e=null}e&&e.enabled&&(l+=c[h].x,k+=c[h].y,++d)}c=this.k.A.Eb;b=this.b.tb.ba;e=h=0;b>=this.behavior.Jh&&b<this.behavior.cl&&(h=this.behavior.Zn*Math.min(this.b.df,1),0===this.behavior.$n&&(h*=1-(b-this.behavior.Jh)/(this.behavior.cl-this.behavior.Jh)),b=Math.random()*Math.PI*2,e=Math.random()*h,h=Math.cos(b)*e,e*=
Math.sin(b));c.ir(l/d+h);c.jr(k/d+e)}};c.prototype.Pl=function(c,l,k){this.behavior.Zn=c;this.behavior.Jh=this.b.tb.ba;this.behavior.cl=this.behavior.Jh+l;this.behavior.$n=k};c.prototype.qj=function(c){this.enabled=0!==c};p.q=new c})();
function sc(){return[Pc,Ec,vc,uc,Rc,wc,xc,tc,Sc,Tc,Cc,Fc,U,Dc,yc,Gc,Hc,Ic,Jc,Uc,gd,Xc,Vc,dd,cd,Yc,Wc,ed,Zc,hd,$c,I.prototype.j.js,Gc.prototype.q.Oo,Tc.prototype.q.Oo,Tc.prototype.q.No,I.prototype.q.Qz,I.prototype.q.Cz,Gc.prototype.q.Lo,I.prototype.C.hE,Tc.prototype.q.Lo,uc.prototype.q.Fl,xc.prototype.C.qx,I.prototype.q.Ez,xc.prototype.j.ux,U.prototype.q.Nl,I.prototype.j.Yy,Gc.prototype.q.No,I.prototype.j.mx,U.prototype.q.As,U.prototype.C.Vh,Ec.prototype.q.As,Ec.prototype.C.Vh,I.prototype.j.kx,I.prototype.q.bx,
I.prototype.C.rD,Ec.prototype.C.Wh,U.prototype.q.qz,Yc.prototype.q.bz,U.prototype.q.Ml,Ec.prototype.q.Ol,U.prototype.q.Gz,U.prototype.q.rz,I.prototype.C["int"],I.prototype.j.Ur,vc.prototype.j.Kx,xc.prototype.j.Sr,vc.prototype.q.Play,vc.prototype.q.Ql,U.prototype.q.Uz,I.prototype.C.OE,xc.prototype.q.Cw,U.prototype.q.El,I.prototype.j.Yw,Gc.prototype.q.Nl,U.prototype.q.Iz,U.prototype.q.oz,I.prototype.j.ix,I.prototype.j.Qw,I.prototype.C.iD,I.prototype.C.rg,dd.prototype.C.gA,U.prototype.q.Nz,U.prototype.C.Opacity,
U.prototype.q.Mo,I.prototype.C.PE,I.prototype.C.RE,U.prototype.q.Po,I.prototype.C.QE,U.prototype.C.ax,tc.prototype.q.CallFunction,I.prototype.q.bA,U.prototype.j.Jx,U.prototype.j.Eo,U.prototype.C.Wh,Ic.prototype.j.Io,yc.prototype.j.es,tc.prototype.j.Jl,Fc.prototype.C.kA,Fc.prototype.C.Sx,Fc.prototype.C.Date,Fc.prototype.C.vx,Fc.prototype.C.Rx,Fc.prototype.C.mz,Cc.prototype.q.Az,xc.prototype.C.Og,Xc.prototype.q.$z,Ec.prototype.j.Cl,Ec.prototype.q.Nl,Gc.prototype.j.Cl,U.prototype.j.Cl,Sc.prototype.j.gy,
Wc.prototype.q.wz,Wc.prototype.q.Zz,I.prototype.q.hA,I.prototype.q.rx,I.prototype.q.iz,Xc.prototype.q.jx,U.prototype.j.Ww,tc.prototype.C.Rr,Tc.prototype.q.Bo,Zc.prototype.q.Qo,ed.prototype.q.Ew,I.prototype.q.yz,U.prototype.C.Ro,vc.prototype.q.cz,I.prototype.C.Xs,U.prototype.j.zx,I.prototype.C.random,U.prototype.C.wx,U.prototype.C.xx,U.prototype.C.yx,U.prototype.C.fA,ed.prototype.q.Jz,ed.prototype.q.Kz,I.prototype.j.fz,I.prototype.C.jD,Uc.prototype.q.Uh,Uc.prototype.q.pz,Uc.prototype.C.rj,Gc.prototype.q.El,
U.prototype.q.Vx,I.prototype.C.Qi,U.prototype.q.Ol,U.prototype.j.Dl,I.prototype.C.cos,I.prototype.C.sin,U.prototype.q.Bw,I.prototype.q.Fw,U.prototype.q.Bs,yc.prototype.j.Gx,Sc.prototype.j.Bx,U.prototype.j.az,I.prototype.C.UA,U.prototype.j.Tr,U.prototype.q.kz,I.prototype.C.u,U.prototype.C.Gw,Dc.prototype.C.Wh,I.prototype.j.Zy,U.prototype.j.$y,ed.prototype.C.cA,U.prototype.q.lz,U.prototype.j.Zw,U.prototype.j.Hx,U.prototype.q.Xz,U.prototype.j.Vw,U.prototype.q.zz,U.prototype.C.Do,Wc.prototype.q.xz,Sc.prototype.j.Rw,
U.prototype.q.Tx,Sc.prototype.C.Kw,hd.prototype.q.Pl,I.prototype.j.eA,U.prototype.j.jy,U.prototype.j.Wr,I.prototype.q.Dz,U.prototype.q.Wx,U.prototype.q.Yz,Tc.prototype.q.El,I.prototype.C.df,I.prototype.q.Oz,wc.prototype.j.Ex,wc.prototype.q.gz,wc.prototype.q.Lw,Xc.prototype.j.bs,tc.prototype.C.Xy,U.prototype.q.Ux,Uc.prototype.C.Or,vc.prototype.q.dz,Cc.prototype.q.Mw,Cc.prototype.j.by,Cc.prototype.j.ds,Cc.prototype.j.cs,Ic.prototype.j.Jo,xc.prototype.q.Co,I.prototype.C.VD,I.prototype.j.hx,Ec.prototype.q.El,
Ic.prototype.j.Lx,Gc.prototype.j.Eo,Gc.prototype.C.Text,Sc.prototype.j.hy,tc.prototype.j.Xw,Tc.prototype.q.Nl,Tc.prototype.j.Cl,tc.prototype.q.Mz,uc.prototype.j.Iw,Gc.prototype.q.Bo,uc.prototype.C.cx,uc.prototype.C.Jw,uc.prototype.C.gx,uc.prototype.j.Tw,I.prototype.q.Fz,Hc.prototype.C.Vh,U.prototype.q.Ko,Dc.prototype.j.Ix,vc.prototype.q.Rz,Wc.prototype.q.jz,yc.prototype.j.Fo,xc.prototype.q.Bz,yc.prototype.C.Px,Ic.prototype.j.ys,U.prototype.j.Uw,Dc.prototype.q.uz,Wc.prototype.j.$r,yc.prototype.C.aA,
Sc.prototype.j.$x,Sc.prototype.C.Ox,Sc.prototype.j.Zx,yc.prototype.j.Xr,U.prototype.q.vz,Xc.prototype.j.Dx,dd.prototype.q.nz,dd.prototype.q.Hz,ed.prototype.q.qj,Wc.prototype.q.Sz,U.prototype.q.sz,$c.prototype.q.Ql,cd.prototype.C.rj,cd.prototype.q.Uh,ed.prototype.j.xs,Wc.prototype.j.as,I.prototype.C.lD,ed.prototype.q.Lz,ed.prototype.q.Aw,I.prototype.C.right,I.prototype.C.left,$c.prototype.q.Uh,$c.prototype.C.rj,I.prototype.j.nx,$c.prototype.q.Dw,$c.prototype.q.Qo,I.prototype.C.max,U.prototype.q.Pz,
U.prototype.j.Zr,I.prototype.j.Fx,U.prototype.q.lA,Tc.prototype.q.Mo,Tc.prototype.C.Wh,U.prototype.C.Hw,Rc.prototype.q.Wz,xc.prototype.j.Vr,Cc.prototype.q.ez,xc.prototype.q.Fl,Cc.prototype.C.Mx,I.prototype.C.UE,wc.prototype.q.Pw,uc.prototype.q.Ml,uc.prototype.q.Co,uc.prototype.q.Po,uc.prototype.q.Tz,uc.prototype.C.Og,Sc.prototype.j.fy,Dc.prototype.C.Vh,I.prototype.C.kD,U.prototype.j.Pr,Pc.prototype.q.Ml,Sc.prototype.j.tx,Tc.prototype.j.Eo,Tc.prototype.q.Ko,Gc.prototype.q.Ko,Ec.prototype.q.Bs,Ec.prototype.q.Mo,
Ec.prototype.j.Dl,Ec.prototype.C.Ro,Ec.prototype.j.Tr,Ec.prototype.C.Do,I.prototype.j.Sw,I.prototype.C.mD,uc.prototype.j.$w,uc.prototype.j.Dl]};
