Browse Source

DeLucaRun4 first commit, as downloaded from website

master
giomba 2 years ago
parent
commit
d3261ca717
  1. 454
      digilabsoftware.altervista.org/DeLucaRun4/c2runtime.js
  2. 1
      digilabsoftware.altervista.org/DeLucaRun4/data.js
  3. BIN
      digilabsoftware.altervista.org/DeLucaRun4/icon-256.png
  4. BIN
      digilabsoftware.altervista.org/DeLucaRun4/images/avanti-sheet0.png
  5. BIN
      digilabsoftware.altervista.org/DeLucaRun4/images/deluca-sheet0.png
  6. BIN
      digilabsoftware.altervista.org/DeLucaRun4/images/deluca-sheet1.png
  7. BIN
      digilabsoftware.altervista.org/DeLucaRun4/images/deluca-sheet2.png
  8. BIN
      digilabsoftware.altervista.org/DeLucaRun4/images/ground-sheet0.png
  9. BIN
      digilabsoftware.altervista.org/DeLucaRun4/images/indietro-sheet0.png
  10. BIN
      digilabsoftware.altervista.org/DeLucaRun4/images/snd_conte-sheet0.png
  11. BIN
      digilabsoftware.altervista.org/DeLucaRun4/images/snd_conte2-sheet0.png
  12. BIN
      digilabsoftware.altervista.org/DeLucaRun4/images/snd_feltri-sheet0.png
  13. BIN
      digilabsoftware.altervista.org/DeLucaRun4/images/snd_runner-sheet0.png
  14. BIN
      digilabsoftware.altervista.org/DeLucaRun4/images/snd_salvini1-sheet0.png
  15. BIN
      digilabsoftware.altervista.org/DeLucaRun4/images/snd_sgarbi-sheet0.png
  16. BIN
      digilabsoftware.altervista.org/DeLucaRun4/images/spr_conte-sheet0.png
  17. BIN
      digilabsoftware.altervista.org/DeLucaRun4/images/spr_corona-sheet0.png
  18. BIN
      digilabsoftware.altervista.org/DeLucaRun4/images/spr_falllose-sheet0.png
  19. BIN
      digilabsoftware.altervista.org/DeLucaRun4/images/spr_feltri-sheet0.png
  20. BIN
      digilabsoftware.altervista.org/DeLucaRun4/images/spr_jumpbutton-sheet0.png
  21. BIN
      digilabsoftware.altervista.org/DeLucaRun4/images/spr_logo-sheet0.png
  22. BIN
      digilabsoftware.altervista.org/DeLucaRun4/images/spr_losescreen-sheet0.png
  23. BIN
      digilabsoftware.altervista.org/DeLucaRun4/images/spr_losescreen-sheet1.png
  24. BIN
      digilabsoftware.altervista.org/DeLucaRun4/images/spr_mascherine-sheet0.png
  25. BIN
      digilabsoftware.altervista.org/DeLucaRun4/images/spr_mascherine-sheet1.png
  26. BIN
      digilabsoftware.altervista.org/DeLucaRun4/images/spr_mascherine-sheet2.png
  27. BIN
      digilabsoftware.altervista.org/DeLucaRun4/images/spr_platform-sheet0.png
  28. BIN
      digilabsoftware.altervista.org/DeLucaRun4/images/spr_riprova-sheet0.png
  29. BIN
      digilabsoftware.altervista.org/DeLucaRun4/images/spr_runner-sheet0.png
  30. BIN
      digilabsoftware.altervista.org/DeLucaRun4/images/spr_runner-sheet1.png
  31. BIN
      digilabsoftware.altervista.org/DeLucaRun4/images/spr_salvini-sheet0.png
  32. BIN
      digilabsoftware.altervista.org/DeLucaRun4/images/spr_salvini-sheet1.png
  33. BIN
      digilabsoftware.altervista.org/DeLucaRun4/images/spr_sgarbi-sheet0.png
  34. BIN
      digilabsoftware.altervista.org/DeLucaRun4/images/spr_tamponi-sheet0.png
  35. BIN
      digilabsoftware.altervista.org/DeLucaRun4/images/sprite-sheet0.png
  36. BIN
      digilabsoftware.altervista.org/DeLucaRun4/images/sprite2-sheet0.png
  37. BIN
      digilabsoftware.altervista.org/DeLucaRun4/images/sprite3-sheet0.png
  38. BIN
      digilabsoftware.altervista.org/DeLucaRun4/images/sprite6-sheet0.png
  39. BIN
      digilabsoftware.altervista.org/DeLucaRun4/images/tiledbackground.png
  40. BIN
      digilabsoftware.altervista.org/DeLucaRun4/images/tiledbackground2.png
  41. 136
      digilabsoftware.altervista.org/DeLucaRun4/index.html
  42. 2
      digilabsoftware.altervista.org/DeLucaRun4/jquery-3.4.1.min.js
  43. BIN
      digilabsoftware.altervista.org/DeLucaRun4/loading-logo.png
  44. BIN
      digilabsoftware.altervista.org/DeLucaRun4/media/bgm1.ogg
  45. BIN
      digilabsoftware.altervista.org/DeLucaRun4/media/conte1.ogg
  46. BIN
      digilabsoftware.altervista.org/DeLucaRun4/media/conte2.ogg
  47. BIN
      digilabsoftware.altervista.org/DeLucaRun4/media/conte3.ogg
  48. BIN
      digilabsoftware.altervista.org/DeLucaRun4/media/delucalose1.ogg
  49. BIN
      digilabsoftware.altervista.org/DeLucaRun4/media/delucalose2.ogg
  50. BIN
      digilabsoftware.altervista.org/DeLucaRun4/media/delucalose3.ogg
  51. BIN
      digilabsoftware.altervista.org/DeLucaRun4/media/delucalose4.ogg
  52. BIN
      digilabsoftware.altervista.org/DeLucaRun4/media/delucalose5.ogg
  53. BIN
      digilabsoftware.altervista.org/DeLucaRun4/media/delucawin.ogg
  54. BIN
      digilabsoftware.altervista.org/DeLucaRun4/media/feltri1.ogg
  55. BIN
      digilabsoftware.altervista.org/DeLucaRun4/media/feltri2.ogg
  56. BIN
      digilabsoftware.altervista.org/DeLucaRun4/media/jump.ogg
  57. BIN
      digilabsoftware.altervista.org/DeLucaRun4/media/mascherina1.ogg
  58. BIN
      digilabsoftware.altervista.org/DeLucaRun4/media/mascherina2.ogg
  59. BIN
      digilabsoftware.altervista.org/DeLucaRun4/media/mascherina3.ogg
  60. BIN
      digilabsoftware.altervista.org/DeLucaRun4/media/mascherina4.ogg
  61. BIN
      digilabsoftware.altervista.org/DeLucaRun4/media/mascherina5.ogg
  62. BIN
      digilabsoftware.altervista.org/DeLucaRun4/media/runner.ogg
  63. BIN
      digilabsoftware.altervista.org/DeLucaRun4/media/salvini1short.ogg
  64. BIN
      digilabsoftware.altervista.org/DeLucaRun4/media/salvinideath.ogg
  65. BIN
      digilabsoftware.altervista.org/DeLucaRun4/media/sgarbi1.ogg

454
digilabsoftware.altervista.org/DeLucaRun4/c2runtime.js

@ -0,0 +1,454 @@
// Generated by Construct 2, the HTML5 game and app creator :: https://www.construct.net
'use strict';var ca,da,ga,ha,ja,ka,la,z,ma,na,oa,pa,qa,ra,K,ua,va,wa,ya,za,Aa,Ba,R,Ca,Da,Fa,Ga,Ha,T,Ia,Ja,La,Ma,Na,Oa,Pa,Qa,Ra,Sa,Va,Wa,Xa,Ya,Za,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,nb,ob,pb,qb,rb,sb,tb,ub,vb,wb,xb,yb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,Xb,Yb,Zb,$b,ac,bc,cc,dc,ec,fc,gc,hc={},ic={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(e){return e.__proto__}:function(e){return e.constructor.prototype});
(function(){function e(a,c,d,k){this.set(a,c,d,k)}function n(){this.Lb=this.Kb=this.Nb=this.Mb=this.Wb=this.Vb=this.qb=this.pb=0}function q(a,c,d,k){a<c?d<k?(x=a<d?a:d,H=c>k?c:k):(x=a<k?a:k,H=c>d?c:d):d<k?(x=c<d?c:d,H=a>k?a:k):(x=c<k?c:k,H=a>d?a:d)}function m(){this.items=this.Td=null;this.ci=0;L&&(this.Td=new Set);this.kh=[];this.Me=!0}function h(a){C[S++]=a}function r(){this.ba=this.ol=this.y=this.Sl=0}function b(a){this.nb=[];this.qj=this.sj=this.tj=this.rj=0;this.Qi(a)}function a(a,c){this.Xl=
a;this.Wl=c;this.cells={}}function f(a,c){this.Xl=a;this.Wl=c;this.cells={}}function t(a,c,d){var k;return P.length?(k=P.pop(),k.Em=a,k.x=c,k.y=d,k):new ca(a,c,d)}function c(a,c,d){this.Em=a;this.x=c;this.y=d;this.wb=new da}function d(a,c,d){var k;return w.length?(k=w.pop(),k.Em=a,k.x=c,k.y=d,k):new ga(a,c,d)}function l(a,c,d){this.Em=a;this.x=c;this.y=d;this.wb=[];this.Gg=!0;this.Pd=new da;this.qh=!1}function g(a,c){return a.Cd-c.Cd}ha=function(a){window.console&&window.console.log&&window.console.log(a)};
ja=function(a){window.console&&window.console.error&&window.console.error(a)};ka=function(a){return"undefined"===typeof a};la=function(a){return"number"===typeof a};z=function(a){return"string"===typeof a};ma=function(a){return 0<a&&0===(a-1&a)};na=function(a){--a;for(var c=1;32>c;c<<=1)a=a|a>>c;return a+1};oa=function(a){return 0>a?-a:a};pa=function(a,c){return a>c?a:c};qa=function(a,c){return a<c?a:c};ra=Math.PI;K=function(a){return 0<=a?a|0:(a|0)-1};ua=function(a){var c=a|0;return c===a?c:c+1};
va=function(a,c,d,k,p,f,g,b){var l,y,v,F;a<d?(y=a,l=d):(y=d,l=a);p<g?(F=p,v=g):(F=g,v=p);if(l<F||y>v)return!1;c<k?(y=c,l=k):(y=k,l=c);f<b?(F=f,v=b):(F=b,v=f);if(l<F||y>v)return!1;l=p-a+g-d;y=f-c+b-k;a=d-a;c=k-c;p=g-p;f=b-f;b=oa(c*p-f*a);return oa(p*y-f*l)>b?!1:oa(a*y-c*l)<=b};e.prototype.set=function(a,c,d,k){this.left=a;this.top=c;this.right=d;this.bottom=k};e.prototype.xh=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};e.prototype.width=function(){return this.right-
this.left};e.prototype.height=function(){return this.bottom-this.top};e.prototype.offset=function(a,c){this.left+=a;this.top+=c;this.right+=a;this.bottom+=c;return this};e.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)};e.prototype.mw=function(a){return!(a.right<this.left||a.bottom<this.top||a.left>this.right||a.top>this.bottom)};e.prototype.ow=function(a,c,d){return!(a.right+
c<this.left||a.bottom+d<this.top||a.left+c>this.right||a.top+d>this.bottom)};e.prototype.Ob=function(a,c){return a>=this.left&&a<=this.right&&c>=this.top&&c<=this.bottom};e.prototype.Ch=function(a){return this.left===a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};wa=e;n.prototype.Pi=function(a){this.pb=a.left;this.qb=a.top;this.Vb=a.right;this.Wb=a.top;this.Mb=a.right;this.Nb=a.bottom;this.Kb=a.left;this.Lb=a.bottom};n.prototype.yr=function(a,c){if(0===c)this.Pi(a);else{var d=
Math.sin(c),k=Math.cos(c),p=a.left*d,f=a.top*d,g=a.right*d,d=a.bottom*d,b=a.left*k,l=a.top*k,y=a.right*k,k=a.bottom*k;this.pb=b-f;this.qb=l+p;this.Vb=y-f;this.Wb=l+g;this.Mb=y-d;this.Nb=k+g;this.Kb=b-d;this.Lb=k+p}};n.prototype.offset=function(a,c){this.pb+=a;this.qb+=c;this.Vb+=a;this.Wb+=c;this.Mb+=a;this.Nb+=c;this.Kb+=a;this.Lb+=c;return this};var x=0,H=0;n.prototype.Zo=function(a){q(this.pb,this.Vb,this.Mb,this.Kb);a.left=x;a.right=H;q(this.qb,this.Wb,this.Nb,this.Lb);a.top=x;a.bottom=H};n.prototype.Ob=
function(a,c){var d=this.pb,k=this.qb,p=this.Vb-d,f=this.Wb-k,g=this.Mb-d,b=this.Nb-k,l=a-d,y=c-k,v=p*p+f*f,F=p*g+f*b,f=p*l+f*y,t=g*g+b*b,e=g*l+b*y,u=1/(v*t-F*F),p=(t*f-F*e)*u,v=(v*e-F*f)*u;if(0<=p&&0<v&&1>p+v)return!0;p=this.Kb-d;f=this.Lb-k;v=p*p+f*f;F=p*g+f*b;f=p*l+f*y;u=1/(v*t-F*F);p=(t*f-F*e)*u;v=(v*e-F*f)*u;return 0<=p&&0<v&&1>p+v};n.prototype.Ke=function(a,c){if(c)switch(a){case 0:return this.pb;case 1:return this.Vb;case 2:return this.Mb;case 3:return this.Kb;case 4:return this.pb;default:return this.pb}else switch(a){case 0:return this.qb;
case 1:return this.Wb;case 2:return this.Nb;case 3:return this.Lb;case 4:return this.qb;default:return this.qb}};n.prototype.Aq=function(){return(this.pb+this.Vb+this.Mb+this.Kb)/4};n.prototype.Bq=function(){return(this.qb+this.Wb+this.Nb+this.Lb)/4};n.prototype.Pp=function(a){var c=a.Aq(),d=a.Bq();if(this.Ob(c,d))return!0;c=this.Aq();d=this.Bq();if(a.Ob(c,d))return!0;var k,p,f,g,b,l,y,v;for(y=0;4>y;y++)for(v=0;4>v;v++)if(c=this.Ke(y,!0),d=this.Ke(y,!1),k=this.Ke(y+1,!0),p=this.Ke(y+1,!1),f=a.Ke(v,
!0),g=a.Ke(v,!1),b=a.Ke(v+1,!0),l=a.Ke(v+1,!1),va(c,d,k,p,f,g,b,l))return!0;return!1};ya=n;za=function(a,c){for(var d in c)c.hasOwnProperty(d)&&(a[d]=c[d]);return a};Aa=function(a,c){var d,k;c=K(c);if(!(0>c||c>=a.length)){d=c;for(k=a.length-1;d<k;d++)a[d]=a[d+1];Ba(a,k)}};Ba=function(a,c){a.length=c};R=function(a){Ba(a,0)};Ca=function(a,c){R(a);var d,k;d=0;for(k=c.length;d<k;++d)a[d]=c[d]};Da=function(a,c){a.push.apply(a,c)};Fa=function(a,c){var d,k;d=0;for(k=a.length;d<k;++d)if(a[d]===c)return d;
return-1};Ga=function(a,c){var d=Fa(a,c);-1!==d&&Aa(a,d)};Ha=function(a,c,d){return a<c?c:a>d?d:a};T=function(a){return a/(180/ra)};Ia=function(a){return 180/ra*a};Ja=function(a){a%=360;0>a&&(a+=360);return a};La=function(a){a%=2*ra;0>a&&(a+=2*ra);return a};Ma=function(a){return Ja(Ia(a))};Na=function(a){return La(T(a))};Oa=function(a,c,d,k){return Math.atan2(k-c,d-a)};Pa=function(a,c){if(a===c)return 0;var d=Math.sin(a),k=Math.cos(a),p=Math.sin(c),f=Math.cos(c),d=d*p+k*f;return 1<=d?0:-1>=d?ra:Math.acos(d)};
Qa=function(a,c,d){var k=Math.sin(a),p=Math.cos(a),f=Math.sin(c),g=Math.cos(c);return Math.acos(k*f+p*g)>d?0<p*f-k*g?La(a+d):La(a-d):La(c)};Ra=function(a,c){var d=Math.sin(a),k=Math.cos(a),p=Math.sin(c),f=Math.cos(c);return 0>=k*p-d*f};Sa=function(a,c,d,k,p,f){if(0===d)return f?a:c;var g=Math.sin(d);d=Math.cos(d);a-=k;c-=p;var b=a*g;a=a*d-c*g;c=c*d+b;return f?a+k:c+p};Va=function(a,c,d,k){a=d-a;c=k-c;return Math.sqrt(a*a+c*c)};Wa=function(a,c){return!a!==!c};Xa=function(a){for(var c in a)if(a.hasOwnProperty(c))return!0;
return!1};Ya=function(a){for(var c in a)a.hasOwnProperty(c)&&delete a[c]};var A=+new Date;Za=function(){if("undefined"!==typeof window.performance){var a=window.performance;if("undefined"!==typeof a.now)return a.now();if("undefined"!==typeof a.webkitNow)return a.webkitNow();if("undefined"!==typeof a.mozNow)return a.mozNow();if("undefined"!==typeof a.msNow)return a.msNow()}return Date.now()-A};var k=!1,p=k=!1,u=!1;"undefined"!==typeof window&&(k=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),
k=!k&&/safari/i.test(navigator.userAgent),p=/(iphone|ipod|ipad)/i.test(navigator.userAgent),u=window.c2ejecta);var L=!k&&!u&&!p&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;m.prototype.contains=function(a){return this.je()?!1:L?this.Td.has(a):this.items&&this.items.hasOwnProperty(a)};m.prototype.add=function(a){if(L)this.Td.has(a)||(this.Td.add(a),this.Me=!1);else{var c=a.toString(),d=this.items;d?d.hasOwnProperty(c)||(d[c]=a,this.ci++,this.Me=!1):(this.items={},this.items[c]=
a,this.ci=1,this.Me=!1)}};m.prototype.remove=function(a){if(!this.je())if(L)this.Td.has(a)&&(this.Td["delete"](a),this.Me=!1);else if(this.items){a=a.toString();var c=this.items;c.hasOwnProperty(a)&&(delete c[a],this.ci--,this.Me=!1)}};m.prototype.clear=function(){this.je()||(L?this.Td.clear():(this.items=null,this.ci=0),R(this.kh),this.Me=!0)};m.prototype.je=function(){return 0===this.count()};m.prototype.count=function(){return L?this.Td.size:this.ci};var C=null,S=0;m.prototype.Rx=function(){if(!this.Me){if(L)R(this.kh),
C=this.kh,S=0,this.Td.forEach(h),C=null,S=0;else{var a=this.kh;R(a);var c,d=0,k=this.items;if(k)for(c in k)k.hasOwnProperty(c)&&(a[d++]=k[c])}this.Me=!0}};m.prototype.Ae=function(){this.Rx();return this.kh};da=m;new da;$a=function(a,c){L?ab(a,c.Td):bb(a,c.Ae())};ab=function(a,c){var d,k,p,f;k=d=0;for(p=a.length;d<p;++d)f=a[d],c.has(f)||(a[k++]=f);Ba(a,k)};bb=function(a,c){var d,k,p,f;k=d=0;for(p=a.length;d<p;++d)f=a[d],-1===Fa(c,f)&&(a[k++]=f);Ba(a,k)};r.prototype.add=function(a){this.y=a-this.Sl;
this.ol=this.ba+this.y;this.Sl=this.ol-this.ba-this.y;this.ba=this.ol};r.prototype.reset=function(){this.ba=this.ol=this.y=this.Sl=0};cb=r;db=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};b.prototype.Qi=function(a){this.hr=a;this.xd=a.length/2;this.nb.length=a.length;this.wj=this.xj=-1;this.cp=0};b.prototype.Dg=function(){return!this.hr.length};b.prototype.Z=function(){for(var a=this.nb,c=a[0],d=c,k=a[1],p=k,f,g,b=1,l=this.xd;b<l;++b)g=2*b,f=a[g],g=a[g+1],f<c&&(c=f),f>d&&(d=f),
g<k&&(k=g),g>p&&(p=g);this.rj=c;this.sj=d;this.tj=k;this.qj=p};b.prototype.Pi=function(a,c,d){this.nb.length=8;this.xd=4;var k=this.nb;k[0]=a.left-c;k[1]=a.top-d;k[2]=a.right-c;k[3]=a.top-d;k[4]=a.right-c;k[5]=a.bottom-d;k[6]=a.left-c;k[7]=a.bottom-d;this.xj=a.right-a.left;this.wj=a.bottom-a.top;this.Z()};b.prototype.bh=function(a,c,d,k,p){this.nb.length=8;this.xd=4;var f=this.nb;f[0]=a.pb-c;f[1]=a.qb-d;f[2]=a.Vb-c;f[3]=a.Wb-d;f[4]=a.Mb-c;f[5]=a.Nb-d;f[6]=a.Kb-c;f[7]=a.Lb-d;this.xj=k;this.wj=p;this.Z()};
b.prototype.xr=function(a){this.xd=a.xd;Ca(this.nb,a.nb);this.rj=a.rj;this.tj-a.tj;this.sj=a.sj;this.qj=a.qj};b.prototype.qg=function(a,c,d){if(this.xj!==a||this.wj!==c||this.cp!==d){this.xj=a;this.wj=c;this.cp=d;var k,p,f,g,b,l=0,y=1,v=this.hr,F=this.nb;0!==d&&(l=Math.sin(d),y=Math.cos(d));d=0;for(f=this.xd;d<f;d++)k=2*d,p=k+1,g=v[k]*a,b=v[p]*c,F[k]=g*y-b*l,F[p]=b*y+g*l;this.Z()}};b.prototype.Ob=function(a,c){var d=this.nb;if(a===d[0]&&c===d[1])return!0;var k,p,f,g=this.xd,b=this.rj-110,l=this.tj-
101,y=this.sj+131,v=this.qj+120,F,t,e=0,u=0;for(k=0;k<g;k++)p=2*k,f=(k+1)%g*2,F=d[p],p=d[p+1],t=d[f],f=d[f+1],va(b,l,a,c,F,p,t,f)&&e++,va(y,v,a,c,F,p,t,f)&&u++;return 1===e%2||1===u%2};b.prototype.Sh=function(a,c,d){var k=a.nb,p=this.nb;if(this.Ob(k[0]+c,k[1]+d)||a.Ob(p[0]-c,p[1]-d))return!0;var f,g,b,l,y,v,F,t,e,u,x,m;f=0;for(l=this.xd;f<l;f++)for(g=2*f,b=(f+1)%l*2,t=p[g],g=p[g+1],e=p[b],u=p[b+1],b=0,F=a.xd;b<F;b++)if(y=2*b,v=(b+1)%F*2,x=k[y]+c,y=k[y+1]+d,m=k[v]+c,v=k[v+1]+d,va(t,g,e,u,x,y,m,v))return!0;
return!1};eb=b;a.prototype.Ue=function(a,c,d){var k;k=this.cells[a];return k?(k=k[c])?k:d?(k=t(this,a,c),this.cells[a][c]=k):null:d?(k=t(this,a,c),this.cells[a]={},this.cells[a][c]=k):null};a.prototype.$b=function(a){return K(a/this.Xl)};a.prototype.ac=function(a){return K(a/this.Wl)};a.prototype.update=function(a,c,d){var k,p,f,g,b;if(c)for(k=c.left,p=c.right;k<=p;++k)for(f=c.top,g=c.bottom;f<=g;++f)if(!d||!d.Ob(k,f))if(b=this.Ue(k,f,!1))b.remove(a),b.je()&&(b.wb.clear(),1E3>P.length&&P.push(b),
this.cells[k][f]=null);if(d)for(k=d.left,p=d.right;k<=p;++k)for(f=d.top,g=d.bottom;f<=g;++f)c&&c.Ob(k,f)||this.Ue(k,f,!0).Lm(a)};a.prototype.Wk=function(a,c){var d,k,p,f,g,b;d=this.$b(a.left);p=this.ac(a.top);k=this.$b(a.right);for(g=this.ac(a.bottom);d<=k;++d)for(f=p;f<=g;++f)(b=this.Ue(d,f,!1))&&b.dump(c)};fb=a;f.prototype.Ue=function(a,c,k){var p;p=this.cells[a];return p?(p=p[c])?p:k?(p=d(this,a,c),this.cells[a][c]=p):null:k?(p=d(this,a,c),this.cells[a]={},this.cells[a][c]=p):null};f.prototype.$b=
function(a){return K(a/this.Xl)};f.prototype.ac=function(a){return K(a/this.Wl)};f.prototype.update=function(a,c,d){var k,p,f,g,b;if(c)for(k=c.left,p=c.right;k<=p;++k)for(f=c.top,g=c.bottom;f<=g;++f)if(!d||!d.Ob(k,f))if(b=this.Ue(k,f,!1))b.remove(a),b.je()&&(b.reset(),1E3>w.length&&w.push(b),this.cells[k][f]=null);if(d)for(k=d.left,p=d.right;k<=p;++k)for(f=d.top,g=d.bottom;f<=g;++f)c&&c.Ob(k,f)||this.Ue(k,f,!0).Lm(a)};f.prototype.Wk=function(a,c,d,k,p){var f,g;a=this.$b(a);c=this.ac(c);d=this.$b(d);
for(f=this.ac(k);a<=d;++a)for(k=c;k<=f;++k)(g=this.Ue(a,k,!1))&&g.dump(p)};f.prototype.Fw=function(a){var c,d,k,p,f;c=a.left;k=a.top;d=a.right;for(p=a.bottom;c<=d;++c)for(a=k;a<=p;++a)if(f=this.Ue(c,a,!1))f.Gg=!1};gb=f;var P=[];c.prototype.je=function(){return this.wb.je()};c.prototype.Lm=function(a){this.wb.add(a)};c.prototype.remove=function(a){this.wb.remove(a)};c.prototype.dump=function(a){Da(a,this.wb.Ae())};ca=c;var w=[];l.prototype.je=function(){if(!this.wb.length)return!0;if(this.wb.length>
this.Pd.count())return!1;this.om();return!0};l.prototype.Lm=function(a){this.Pd.contains(a)?(this.Pd.remove(a),this.Pd.je()&&(this.qh=!1)):this.wb.length?(this.wb[this.wb.length-1].Jd()>a.Jd()&&(this.Gg=!1),this.wb.push(a)):(this.wb.push(a),this.Gg=!0)};l.prototype.remove=function(a){this.Pd.add(a);this.qh=!0;30<=this.Pd.count()&&this.om()};l.prototype.om=function(){this.qh&&(this.Pd.count()===this.wb.length?this.reset():($a(this.wb,this.Pd),this.Pd.clear(),this.qh=!1))};l.prototype.Su=function(){this.Gg||
(this.wb.sort(g),this.Gg=!0)};l.prototype.reset=function(){R(this.wb);this.Gg=!0;this.Pd.clear();this.qh=!1};l.prototype.dump=function(a){this.om();this.Su();this.wb.length&&a.push(this.wb)};ga=l;var D="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");hb=function(a){return 0>=a||11<=a?"source-over":D[a-1]};ib=function(a,c,d){if(d)switch(a.Tb=d.ONE,a.Pb=d.ONE_MINUS_SRC_ALPHA,c){case 1:a.Tb=d.ONE;a.Pb=d.ONE;break;case 3:a.Tb=
d.ONE;a.Pb=d.ZERO;break;case 4:a.Tb=d.ONE_MINUS_DST_ALPHA;a.Pb=d.ONE;break;case 5:a.Tb=d.DST_ALPHA;a.Pb=d.ZERO;break;case 6:a.Tb=d.ZERO;a.Pb=d.SRC_ALPHA;break;case 7:a.Tb=d.ONE_MINUS_DST_ALPHA;a.Pb=d.ZERO;break;case 8:a.Tb=d.ZERO;a.Pb=d.ONE_MINUS_SRC_ALPHA;break;case 9:a.Tb=d.DST_ALPHA;a.Pb=d.ONE_MINUS_SRC_ALPHA;break;case 10:a.Tb=d.ONE_MINUS_DST_ALPHA,a.Pb=d.SRC_ALPHA}};jb=function(a){return Math.round(1E6*a)/1E6};kb=function(a,c){return"string"!==typeof a||"string"!==typeof c||a.length!==c.length?
!1:a===c?!0:a.toLowerCase()===c.toLowerCase()};nb=function(a){a=a.target;return!a||a===document||a===window||document&&document.body&&a===document.body||kb(a.tagName,"canvas")?!0:!1}})();var jc="undefined"!==typeof Float32Array?Float32Array:Array;function kc(e){var n=new jc(3);e&&(n[0]=e[0],n[1]=e[1],n[2]=e[2]);return n}
function lc(e){var n=new jc(16);e&&(n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=e[4],n[5]=e[5],n[6]=e[6],n[7]=e[7],n[8]=e[8],n[9]=e[9],n[10]=e[10],n[11]=e[11],n[12]=e[12],n[13]=e[13],n[14]=e[14],n[15]=e[15]);return n}function mc(e,n){n[0]=e[0];n[1]=e[1];n[2]=e[2];n[3]=e[3];n[4]=e[4];n[5]=e[5];n[6]=e[6];n[7]=e[7];n[8]=e[8];n[9]=e[9];n[10]=e[10];n[11]=e[11];n[12]=e[12];n[13]=e[13];n[14]=e[14];n[15]=e[15]}
function nc(e,n){var q=n[0],m=n[1];n=n[2];e[0]*=q;e[1]*=q;e[2]*=q;e[3]*=q;e[4]*=m;e[5]*=m;e[6]*=m;e[7]*=m;e[8]*=n;e[9]*=n;e[10]*=n;e[11]*=n}
function oc(e,n,q,m){m||(m=lc());var h,r,b,a,f,t,c,d,l=e[0],g=e[1];e=e[2];r=q[0];b=q[1];h=q[2];q=n[1];t=n[2];l===n[0]&&g===q&&e===t?(e=m,e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1):(q=l-n[0],t=g-n[1],c=e-n[2],d=1/Math.sqrt(q*q+t*t+c*c),q*=d,t*=d,c*=d,n=b*c-h*t,h=h*q-r*c,r=r*t-b*q,(d=Math.sqrt(n*n+h*h+r*r))?(d=1/d,n*=d,h*=d,r*=d):r=h=n=0,b=t*r-c*h,a=c*n-q*r,f=q*h-t*n,(d=Math.sqrt(b*b+a*a+f*f))?(d=1/d,b*=d,a*=d,f*=d):f=a=b=0,
m[0]=n,m[1]=b,m[2]=q,m[3]=0,m[4]=h,m[5]=a,m[6]=t,m[7]=0,m[8]=r,m[9]=f,m[10]=c,m[11]=0,m[12]=-(n*l+h*g+r*e),m[13]=-(b*l+a*g+f*e),m[14]=-(q*l+t*g+c*e),m[15]=1)}
(function(){function e(a,f,b){this.ke=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.Fa=!!b;this.ek=this.Uh=!1;this.dm=0;this.Jl=1;this.xo=1E3;this.Yx=(this.xo-this.Jl)/32768;this.Tl=kc([0,0,100]);this.iq=kc([0,0,0]);this.Vr=kc([0,1,0]);this.fj=kc([1,1,1]);this.pp=!0;this.zk=lc();this.Nc=lc();this.Ym=lc();this.cm=lc();this.G=a;this.version=0===this.G.getParameter(this.G.VERSION).indexOf("WebGL 2")?2:1;this.Lp()}function n(a,f,b){this.G=a;this.Ri=
f;this.name=b;this.Wc=a.getAttribLocation(f,"aPos");this.ef=a.getAttribLocation(f,"aTex");this.gq=a.getUniformLocation(f,"matP");this.vk=a.getUniformLocation(f,"matMV");this.Og=a.getUniformLocation(f,"opacity");this.hn=a.getUniformLocation(f,"colorFill");this.hq=a.getUniformLocation(f,"samplerFront");this.oi=a.getUniformLocation(f,"samplerBack");this.Tf=a.getUniformLocation(f,"destStart");this.Sf=a.getUniformLocation(f,"destEnd");this.qi=a.getUniformLocation(f,"seconds");this.kn=a.getUniformLocation(f,
"pixelWidth");this.jn=a.getUniformLocation(f,"pixelHeight");this.ni=a.getUniformLocation(f,"layerScale");this.mi=a.getUniformLocation(f,"layerAngle");this.ri=a.getUniformLocation(f,"viewOrigin");this.pi=a.getUniformLocation(f,"scrollPos");this.hw=!!(this.kn||this.jn||this.qi||this.oi||this.Tf||this.Sf||this.ni||this.mi||this.ri||this.pi);this.qq=this.rq=-999;this.yk=1;this.mq=this.lq=0;this.oq=this.kq=this.jq=1;this.uq=this.tq=this.sq=this.wq=this.vq=this.nq=0;this.Xm=[];this.pq=lc();this.Og&&a.uniform1f(this.Og,
1);this.hn&&a.uniform4f(this.hn,1,1,1,1);this.hq&&a.uniform1i(this.hq,0);this.oi&&a.uniform1i(this.oi,1);this.Tf&&a.uniform2f(this.Tf,0,0);this.Sf&&a.uniform2f(this.Sf,1,1);this.ni&&a.uniform1f(this.ni,1);this.mi&&a.uniform1f(this.mi,0);this.ri&&a.uniform2f(this.ri,0,0);this.pi&&a.uniform2f(this.pi,0,0);this.qi&&a.uniform1f(this.qi,0);this.Gf=!1}function q(a,f){return a[0]===f[0]&&a[1]===f[1]&&a[2]===f[2]&&a[3]===f[3]&&a[4]===f[4]&&a[5]===f[5]&&a[6]===f[6]&&a[7]===f[7]&&a[8]===f[8]&&a[9]===f[9]&&
a[10]===f[10]&&a[11]===f[11]&&a[12]===f[12]&&a[13]===f[13]&&a[14]===f[14]&&a[15]===f[15]}function m(a,f){this.type=a;this.F=f;this.G=f.G;this.Kd=this.Zb=this.Sq=0;this.X=this.ed=null;this.Ar=[]}var h=lc();e.prototype.Lp=function(){var a=this.G,f;this.aq=1;this.Nf=this.$e=null;this.Ej=1;a.clearColor(0,0,0,0);a.clear(a.COLOR_BUFFER_BIT);a.enable(a.BLEND);a.blendFunc(a.ONE,a.ONE_MINUS_SRC_ALPHA);a.disable(a.CULL_FACE);a.disable(a.STENCIL_TEST);a.disable(a.DITHER);this.Fa?(a.enable(a.DEPTH_TEST),a.depthFunc(a.LEQUAL)):
a.disable(a.DEPTH_TEST);this.bq=a.ONE;this.$p=a.ONE_MINUS_SRC_ALPHA;this.Dl=new Float32Array(8E3*(this.Fa?3:2));this.ql=new Float32Array(16E3);this.dr=new Float32Array(32E3);this.Bn=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.Bn);a.bufferData(a.ARRAY_BUFFER,this.dr.byteLength,a.DYNAMIC_DRAW);this.ej=Array(4);this.Yi=Array(4);for(f=0;4>f;f++)this.ej[f]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.ej[f]),a.bufferData(a.ARRAY_BUFFER,this.Dl.byteLength,a.DYNAMIC_DRAW),this.Yi[f]=a.createBuffer(),
a.bindBuffer(a.ARRAY_BUFFER,this.Yi[f]),a.bufferData(a.ARRAY_BUFFER,this.ql.byteLength,a.DYNAMIC_DRAW);this.ae=0;this.kw=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.kw);for(var b=new Uint16Array(12E3),c=f=0;12E3>f;)b[f++]=c,b[f++]=c+1,b[f++]=c+2,b[f++]=c,b[f++]=c+2,b[f++]=c+3,c+=4;a.bufferData(a.ELEMENT_ARRAY_BUFFER,b,a.STATIC_DRAW);this.Cn=this.fh=this.Be=0;this.Va=[];f=this.Fa?"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}";b=this.yh({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}"},f,"<default>");this.Va.push(b);b=this.yh({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.Va.push(b);b=this.yh({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},f,"<earlyz>");this.Va.push(b);b=this.yh({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"},
f,"<fill>");this.Va.push(b);for(var d in pc)pc.hasOwnProperty(d)&&this.Va.push(this.yh(pc[d],f,d));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,null);this.Le=[];this.Zd=0;this.Qb=!1;this.kp=this.gi=-1;this.sg=null;this.nm=a.createFramebuffer();this.Ij=this.Yk=null;this.Xo=!1;this.Fa&&(this.Ij=a.createRenderbuffer());this.nf=kc([0,0,0]);this.xq=a.getParameter(a.ALIASED_POINT_SIZE_RANGE)[1];2048<this.xq&&(this.xq=2048);this.mc(0)};n.prototype.qo=function(a){q(this.pq,a)||(mc(a,this.pq),this.G.uniformMatrix4fv(this.vk,
!1,a))};e.prototype.yh=function(a,f,b){var c=this.G,d=c.createShader(c.FRAGMENT_SHADER);c.shaderSource(d,a.src);c.compileShader(d);if(!c.getShaderParameter(d,c.COMPILE_STATUS))throw a=c.getShaderInfoLog(d),c.deleteShader(d),Error("error compiling fragment shader: "+a);var l=c.createShader(c.VERTEX_SHADER);c.shaderSource(l,f);c.compileShader(l);if(!c.getShaderParameter(l,c.COMPILE_STATUS))throw a=c.getShaderInfoLog(l),c.deleteShader(d),c.deleteShader(l),Error("error compiling vertex shader: "+a);f=
c.createProgram();c.attachShader(f,d);c.attachShader(f,l);c.linkProgram(f);if(!c.getProgramParameter(f,c.LINK_STATUS))throw a=c.getProgramInfoLog(f),c.deleteShader(d),c.deleteShader(l),c.deleteProgram(f),Error("error linking shader program: "+a);c.useProgram(f);c.deleteShader(d);c.deleteShader(l);d=new n(c,f,b);d.lm=a.lm||0;d.mm=a.mm||0;d.jp=!!a.jp;d.vd=!!a.vd;d.Vo=!!a.Vo;d.Y=a.Y||[];a=0;for(l=d.Y.length;a<l;a++)d.Y[a][1]=c.getUniformLocation(f,d.Y[a][0]),d.Xm.push(0),c.uniform1f(d.Y[a][1],0);return d};
e.prototype.Cm=function(a){var f,b;f=0;for(b=this.Va.length;f<b;f++)if(this.Va[f].name===a)return f;return-1};e.prototype.gr=function(a,f,b){var c=this.Nc,d=this.zk,l=[0,0,0,0,0,0,0,0];l[0]=c[0]*a+c[4]*f+c[12];l[1]=c[1]*a+c[5]*f+c[13];l[2]=c[2]*a+c[6]*f+c[14];l[3]=c[3]*a+c[7]*f+c[15];l[4]=d[0]*l[0]+d[4]*l[1]+d[8]*l[2]+d[12]*l[3];l[5]=d[1]*l[0]+d[5]*l[1]+d[9]*l[2]+d[13]*l[3];l[6]=d[2]*l[0]+d[6]*l[1]+d[10]*l[2]+d[14]*l[3];l[7]=-l[2];0!==l[7]&&(l[7]=1/l[7],l[4]*=l[7],l[5]*=l[7],l[6]*=l[7],b[0]=(.5*l[4]+
.5)*this.width,b[1]=(.5*l[5]+.5)*this.height)};e.prototype.dg=function(a,f,b){if(this.width!==a||this.height!==f||b){this.Re();b=this.G;this.width=a;this.height=f;b.viewport(0,0,a,f);oc(this.Tl,this.iq,this.Vr,this.Nc);if(this.Fa){var c=-a/2;a=a/2;var d=f/2;f=-f/2;var l=this.Jl,g=this.xo,e=this.zk;e||(e=lc());var m=a-c,n=f-d,k=g-l;e[0]=2/m;e[1]=0;e[2]=0;e[3]=0;e[4]=0;e[5]=2/n;e[6]=0;e[7]=0;e[8]=0;e[9]=0;e[10]=-2/k;e[11]=0;e[12]=-(c+a)/m;e[13]=-(f+d)/n;e[14]=-(g+l)/k;e[15]=1;this.fj[0]=1;this.fj[1]=
1}else f=a/f,c=this.Jl,a=this.xo,e=this.zk,g=c*Math.tan(45*Math.PI/360),f*=g,d=-f,l=-g,e||(e=lc()),m=f-d,n=g-l,k=a-c,e[0]=2*c/m,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=2*c/n,e[6]=0,e[7]=0,e[8]=(f+d)/m,e[9]=(g+l)/n,e[10]=-(a+c)/k,e[11]=-1,e[12]=0,e[13]=0,e[14]=-(a*c*2)/k,e[15]=0,c=[0,0],a=[0,0],this.gr(0,0,c),this.gr(1,1,a),this.fj[0]=1/(a[0]-c[0]),this.fj[1]=-1/(a[1]-c[1]);c=0;for(a=this.Va.length;c<a;c++)d=this.Va[c],d.Gf=!1,d.gq&&(b.useProgram(d.Ri),b.uniformMatrix4fv(d.gq,!1,this.zk));b.useProgram(this.Va[this.gi].Ri);
b.bindTexture(b.TEXTURE_2D,null);b.activeTexture(b.TEXTURE1);b.bindTexture(b.TEXTURE_2D,null);b.activeTexture(b.TEXTURE0);this.Nf=this.$e=null;this.Ij&&(b.bindFramebuffer(b.FRAMEBUFFER,this.nm),b.bindRenderbuffer(b.RENDERBUFFER,this.Ij),b.renderbufferStorage(b.RENDERBUFFER,b.DEPTH_COMPONENT16,this.width,this.height),this.Xo||(b.framebufferRenderbuffer(b.FRAMEBUFFER,b.DEPTH_ATTACHMENT,b.RENDERBUFFER,this.Ij),this.Xo=!0),b.bindRenderbuffer(b.RENDERBUFFER,null),b.bindFramebuffer(b.FRAMEBUFFER,null),
this.Yk=null)}};e.prototype.bd=function(){oc(this.Tl,this.iq,this.Vr,this.Nc);nc(this.Nc,this.fj)};e.prototype.translate=function(a,f){if(0!==a||0!==f){this.nf[0]=a;this.nf[1]=f;this.nf[2]=0;var b=this.Nc,c=this.nf,d=c[0],l=c[1],c=c[2];b[12]=b[0]*d+b[4]*l+b[8]*c+b[12];b[13]=b[1]*d+b[5]*l+b[9]*c+b[13];b[14]=b[2]*d+b[6]*l+b[10]*c+b[14];b[15]=b[3]*d+b[7]*l+b[11]*c+b[15]}};e.prototype.scale=function(a,f){if(1!==a||1!==f)this.nf[0]=a,this.nf[1]=f,this.nf[2]=1,nc(this.Nc,this.nf)};e.prototype.$k=function(a){if(0!==
a){var f=this.Nc,b,c=Math.sin(a);a=Math.cos(a);var d=f[0],l=f[1],g=f[2],e=f[3],m=f[4],n=f[5],k=f[6],p=f[7];b?f!==b&&(b[8]=f[8],b[9]=f[9],b[10]=f[10],b[11]=f[11],b[12]=f[12],b[13]=f[13],b[14]=f[14],b[15]=f[15]):b=f;b[0]=d*a+m*c;b[1]=l*a+n*c;b[2]=g*a+k*c;b[3]=e*a+p*c;b[4]=d*-c+m*a;b[5]=l*-c+n*a;b[6]=g*-c+k*a;b[7]=e*-c+p*a}};e.prototype.Pc=function(){if(!q(this.Ym,this.Nc)){var a=this.Bc();a.type=5;a.X?mc(this.Nc,a.X):a.X=lc(this.Nc);mc(this.Nc,this.Ym);this.Qb=!1}};e.prototype.el=function(a){this.Fa&&
(32760<a&&(a=32760),this.dm=this.Tl[2]-this.Jl-a*this.Yx)};m.prototype.Cu=function(){var a=this.G,f=this.F;0!==this.Zb?(a.depthMask(!0),a.colorMask(!1,!1,!1,!1),a.disable(a.BLEND),a.bindFramebuffer(a.FRAMEBUFFER,f.nm),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.clear(a.DEPTH_BUFFER_BIT),a.bindFramebuffer(a.FRAMEBUFFER,null),f.ek=!0):(a.depthMask(!1),a.colorMask(!0,!0,!0,!0),a.enable(a.BLEND),f.ek=!1)};m.prototype.Gu=function(){this.G.bindTexture(this.G.TEXTURE_2D,
this.ed)};m.prototype.Hu=function(){var a=this.G;a.activeTexture(a.TEXTURE1);a.bindTexture(a.TEXTURE_2D,this.ed);a.activeTexture(a.TEXTURE0)};m.prototype.Du=function(){var a=this.Sq,f=this.F;f.Ej=a;f=f.sg;f.Og&&f.yk!==a&&(f.yk=a,this.G.uniform1f(f.Og,a))};m.prototype.xu=function(){this.G.drawElements(this.G.TRIANGLES,this.Kd,this.G.UNSIGNED_SHORT,this.Zb)};m.prototype.zu=function(){this.G.blendFunc(this.Zb,this.Kd)};m.prototype.Iu=function(){var a,f,b,c=this.F.Va,d=this.F.kp;a=0;for(f=c.length;a<
f;a++)b=c[a],a===d&&b.vk?(b.qo(this.X),b.Gf=!0):b.Gf=!1;mc(this.X,this.F.cm)};m.prototype.yu=function(){var a=this.G,f=this.F;this.ed?(f.Nf===this.ed&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,null),f.Nf=null,a.activeTexture(a.TEXTURE0)),a.bindFramebuffer(a.FRAMEBUFFER,f.nm),f.ek||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,this.ed,0)):(f.Fa||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.bindFramebuffer(a.FRAMEBUFFER,null))};
m.prototype.uu=function(){var a=this.G,f=this.Zb;0===f?(a.clearColor(this.X[0],this.X[1],this.X[2],this.X[3]),a.clear(a.COLOR_BUFFER_BIT)):1===f?(a.enable(a.SCISSOR_TEST),a.scissor(this.X[0],this.X[1],this.X[2],this.X[3]),a.clearColor(0,0,0,0),a.clear(a.COLOR_BUFFER_BIT),a.disable(a.SCISSOR_TEST)):a.clear(a.DEPTH_BUFFER_BIT)};m.prototype.Bu=function(){var a=this.G;0!==this.Zb?a.enable(a.DEPTH_TEST):a.disable(a.DEPTH_TEST)};m.prototype.wu=function(){var a=this.G,f=this.F;f.Fa&&a.disable(a.DEPTH_TEST);
var b=f.Va[1];a.useProgram(b.Ri);!b.Gf&&b.vk&&(b.qo(f.cm),b.Gf=!0);a.enableVertexAttribArray(b.Wc);a.bindBuffer(a.ARRAY_BUFFER,f.Bn);a.vertexAttribPointer(b.Wc,4,a.FLOAT,!1,0,0);a.drawArrays(a.POINTS,this.Zb/4,this.Kd);b=f.sg;a.useProgram(b.Ri);0<=b.Wc&&(a.enableVertexAttribArray(b.Wc),a.bindBuffer(a.ARRAY_BUFFER,f.ej[f.ae]),a.vertexAttribPointer(b.Wc,f.Fa?3:2,a.FLOAT,!1,0,0));0<=b.ef&&(a.enableVertexAttribArray(b.ef),a.bindBuffer(a.ARRAY_BUFFER,f.Yi[f.ae]),a.vertexAttribPointer(b.ef,2,a.FLOAT,!1,
0,0));f.Fa&&a.enable(a.DEPTH_TEST)};m.prototype.Eu=function(){var a=this.G,f=this.F,b=f.Va[this.Zb];f.kp=this.Zb;f.sg=b;a.useProgram(b.Ri);!b.Gf&&b.vk&&(b.qo(f.cm),b.Gf=!0);b.Og&&b.yk!==f.Ej&&(b.yk=f.Ej,a.uniform1f(b.Og,f.Ej));0<=b.Wc&&(a.enableVertexAttribArray(b.Wc),a.bindBuffer(a.ARRAY_BUFFER,f.ej[f.ae]),a.vertexAttribPointer(b.Wc,f.Fa?3:2,a.FLOAT,!1,0,0));0<=b.ef&&(a.enableVertexAttribArray(b.ef),a.bindBuffer(a.ARRAY_BUFFER,f.Yi[f.ae]),a.vertexAttribPointer(b.ef,2,a.FLOAT,!1,0,0))};m.prototype.Au=
function(){var a=this.X;this.G.uniform4f(this.F.sg.hn,a[0],a[1],a[2],a[3])};m.prototype.Fu=function(){var a,f,b=this.F.sg,c=this.G;a=this.X;b.oi&&this.F.Nf!==this.ed&&(c.activeTexture(c.TEXTURE1),c.bindTexture(c.TEXTURE_2D,this.ed),this.F.Nf=this.ed,c.activeTexture(c.TEXTURE0));var d=a[0];b.kn&&d!==b.rq&&(b.rq=d,c.uniform1f(b.kn,d));d=a[1];b.jn&&d!==b.qq&&(b.qq=d,c.uniform1f(b.jn,d));d=a[2];f=a[3];!b.Tf||d===b.lq&&f===b.mq||(b.lq=d,b.mq=f,c.uniform2f(b.Tf,d,f));d=a[4];f=a[5];!b.Sf||d===b.jq&&f===
b.kq||(b.jq=d,b.kq=f,c.uniform2f(b.Sf,d,f));d=a[6];b.ni&&d!==b.oq&&(b.oq=d,c.uniform1f(b.ni,d));d=a[7];b.mi&&d!==b.nq&&(b.nq=d,c.uniform1f(b.mi,d));d=a[8];f=a[9];!b.ri||d===b.vq&&f===b.wq||(b.vq=d,b.wq=f,c.uniform2f(b.ri,d,f));d=a[10];f=a[11];!b.pi||d===b.sq&&f===b.tq||(b.sq=d,b.tq=f,c.uniform2f(b.pi,d,f));d=a[12];b.qi&&d!==b.uq&&(b.uq=d,c.uniform1f(b.qi,d));if(b.Y.length)for(a=0,f=b.Y.length;a<f;a++)d=this.Ar[a],d!==b.Xm[a]&&(b.Xm[a]=d,c.uniform1f(b.Y[a][1],d))};e.prototype.Bc=function(){this.Zd===
this.Le.length&&this.Le.push(new m(0,this));return this.Le[this.Zd++]};e.prototype.Re=function(){if(0!==this.Zd&&!this.G.isContextLost()){var a=this.G;0<this.Cn&&(a.bindBuffer(a.ARRAY_BUFFER,this.Bn),a.bufferSubData(a.ARRAY_BUFFER,0,this.dr.subarray(0,this.Cn)),b&&0<=b.Wc&&"<point>"===b.name&&a.vertexAttribPointer(b.Wc,4,a.FLOAT,!1,0,0));if(0<this.Be){var b=this.sg;a.bindBuffer(a.ARRAY_BUFFER,this.ej[this.ae]);a.bufferSubData(a.ARRAY_BUFFER,0,this.Dl.subarray(0,this.Be));b&&0<=b.Wc&&"<point>"!==b.name&&
a.vertexAttribPointer(b.Wc,this.Fa?3:2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.Yi[this.ae]);a.bufferSubData(a.ARRAY_BUFFER,0,this.ql.subarray(0,this.fh));b&&0<=b.ef&&"<point>"!==b.name&&a.vertexAttribPointer(b.ef,2,a.FLOAT,!1,0,0)}for(var e,a=0,b=this.Zd;a<b;a++)switch(e=this.Le[a],e.type){case 1:e.xu();break;case 2:e.Gu();break;case 3:e.Du();break;case 4:e.zu();break;case 5:e.Iu();break;case 6:e.yu();break;case 7:e.uu();break;case 8:e.wu();break;case 9:e.Eu();break;case 10:e.Fu();break;
case 11:e.Hu();break;case 12:e.Au();break;case 13:e.Bu();break;case 14:e.Cu()}this.Cn=this.fh=this.Be=this.Zd=0;this.ek=this.Qb=!1;this.ae++;4<=this.ae&&(this.ae=0)}};e.prototype.bg=function(a){if(a!==this.aq&&!this.Uh){var b=this.Bc();b.type=3;this.aq=b.Sq=a;this.Qb=!1}};e.prototype.Dc=function(a){if(a!==this.$e){var b=this.Bc();b.type=2;this.$e=b.ed=a;this.Qb=!1}};e.prototype.kf=function(a,b){if((a!==this.bq||b!==this.$p)&&!this.Uh){var e=this.Bc();e.type=4;e.Zb=a;e.Kd=b;this.bq=a;this.$p=b;this.Qb=
!1}};e.prototype.or=function(){this.kf(this.G.ONE,this.G.ONE_MINUS_SRC_ALPHA)};e.prototype.Ii=function(a,b,e,c,d,l,g,m){15992<=this.Be&&this.Re();var n=this.Be,h=this.fh,k=this.Dl,p=this.ql,u=this.dm;if(this.Qb)this.Le[this.Zd-1].Kd+=6;else{var L=this.Bc();L.type=1;L.Zb=this.Fa?n:n/2*3;L.Kd=6;this.Qb=!0}this.Fa?(k[n++]=a,k[n++]=b,k[n++]=u,k[n++]=e,k[n++]=c,k[n++]=u,k[n++]=d,k[n++]=l,k[n++]=u,k[n++]=g,k[n++]=m,k[n++]=u):(k[n++]=a,k[n++]=b,k[n++]=e,k[n++]=c,k[n++]=d,k[n++]=l,k[n++]=g,k[n++]=m);p[h++]=
0;p[h++]=0;p[h++]=1;p[h++]=0;p[h++]=1;p[h++]=1;p[h++]=0;p[h++]=1;this.Be=n;this.fh=h};e.prototype.Rd=function(a,b,e,c,d,l,g,n,m){15992<=this.Be&&this.Re();var h=this.Be,k=this.fh,p=this.Dl,u=this.ql,L=this.dm;if(this.Qb)this.Le[this.Zd-1].Kd+=6;else{var C=this.Bc();C.type=1;C.Zb=this.Fa?h:h/2*3;C.Kd=6;this.Qb=!0}var C=m.left,q=m.top,r=m.right;m=m.bottom;this.Fa?(p[h++]=a,p[h++]=b,p[h++]=L,p[h++]=e,p[h++]=c,p[h++]=L,p[h++]=d,p[h++]=l,p[h++]=L,p[h++]=g,p[h++]=n,p[h++]=L):(p[h++]=a,p[h++]=b,p[h++]=e,
p[h++]=c,p[h++]=d,p[h++]=l,p[h++]=g,p[h++]=n);u[k++]=C;u[k++]=q;u[k++]=r;u[k++]=q;u[k++]=r;u[k++]=m;u[k++]=C;u[k++]=m;this.Be=h;this.fh=k};e.prototype.mc=function(a){if(this.gi!==a){if(!this.Va[a]){if(0===this.gi)return;a=0}var b=this.Bc();b.type=9;this.gi=b.Zb=a;this.Qb=!1}};e.prototype.Fi=function(a){a=this.Va[a];return!(!a.Tf&&!a.Sf)};e.prototype.Gn=function(a){a=this.Va[a];return!!(a.Tf||a.Sf||a.jp)};e.prototype.Fn=function(a){return this.Va[a].vd};e.prototype.ax=function(a){a=this.Va[a];return 0!==
a.lm||0!==a.mm};e.prototype.Pv=function(a){return this.Va[a].lm};e.prototype.Qv=function(a){return this.Va[a].mm};e.prototype.Rv=function(a,b){return this.Va[a].Y[b][2]};e.prototype.Sk=function(a){return this.Va[a].Vo};e.prototype.ah=function(a,b,e,c,d,l,g,n,m,h,k,p,u,L,C){var q=this.Va[this.gi],r,w;if(q.hw||C.length){r=this.Bc();r.type=10;r.X?mc(this.Nc,r.X):r.X=lc();w=r.X;w[0]=b;w[1]=e;w[2]=c;w[3]=d;w[4]=l;w[5]=g;w[6]=n;w[7]=m;w[8]=h;w[9]=k;w[10]=p;w[11]=u;w[12]=L;q.oi?r.ed=a:r.ed=null;if(C.length)for(e=
r.Ar,e.length=C.length,a=0,b=C.length;a<b;a++)e[a]=C[a];this.Qb=!1}};e.prototype.clear=function(a,b,e,c){var d=this.Bc();d.type=7;d.Zb=0;d.X||(d.X=lc());d.X[0]=a;d.X[1]=b;d.X[2]=e;d.X[3]=c;this.Qb=!1};e.prototype.clearRect=function(a,b,e,c){if(!(0>e||0>c)){var d=this.Bc();d.type=7;d.Zb=1;d.X||(d.X=lc());d.X[0]=a;d.X[1]=b;d.X[2]=e;d.X[3]=c;this.Qb=!1}};e.prototype.rr=function(a){if(this.Fa&&(a=!!a,this.Uh!==a)){var b=this.Bc();b.type=14;b.Zb=a?1:0;this.Qb=!1;this.Uh=a;this.Yk=null;this.Uh?this.mc(2):
this.mc(0)}};e.prototype.qr=function(a){if(this.Fa){var b=this.Bc();b.type=13;b.Zb=a?1:0;this.Qb=!1}};e.prototype.xp=function(){mc(this.Ym,h);this.bd();this.Pc();var a=this.width/2,b=this.height/2;this.Ii(-a,b,a,b,a,-b,-a,-b);mc(h,this.Nc);this.Pc()};e.prototype.pr=function(a,b,e){this.mc(3);var c=this.Bc();c.type=12;c.X||(c.X=lc());c.X[0]=a;c.X[1]=b;c.X[2]=e;c.X[3]=1;this.Qb=!1};e.prototype.Ex=function(){this.mc(0)};e.prototype.kx=function(){this.mc(2)};e.prototype.$w=function(){this.Re();this.G.flush()};
var r=[],b={};e.prototype.nu=function(){R(r);b={}};e.prototype.sk=function(a,f,e,c){f=!!f;e=!!e;var d=a.src+","+f+","+e+(f?",undefined":""),l=null;if("undefined"!==typeof a.src&&b.hasOwnProperty(d))return l=b[d],l.vj++,l;this.Re();var g=this.G,n=ma(a.width)&&ma(a.height),l=g.createTexture();g.bindTexture(g.TEXTURE_2D,l);g.pixelStorei(g.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var m=g.RGBA,h=g.RGBA,k=g.UNSIGNED_BYTE;if(c&&!this.ke)switch(c){case 1:h=m=g.RGB;break;case 2:k=g.UNSIGNED_SHORT_4_4_4_4;break;
case 3:k=g.UNSIGNED_SHORT_5_5_5_1;break;case 4:h=m=g.RGB,k=g.UNSIGNED_SHORT_5_6_5}if(1===this.version&&!n&&f){c=document.createElement("canvas");c.width=na(a.width);c.height=na(a.height);var p=c.getContext("2d");"undefined"!==typeof p.imageSmoothingEnabled?p.imageSmoothingEnabled=e:(p.webkitImageSmoothingEnabled=e,p.mozImageSmoothingEnabled=e,p.msImageSmoothingEnabled=e);p.drawImage(a,0,0,a.width,a.height,0,0,c.width,c.height);g.texImage2D(g.TEXTURE_2D,0,m,h,k,c)}else g.texImage2D(g.TEXTURE_2D,0,
m,h,k,a);f?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_S,g.REPEAT),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,g.REPEAT)):(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_S,g.CLAMP_TO_EDGE),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,g.CLAMP_TO_EDGE));e?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,g.LINEAR),(n||2<=this.version)&&this.pp?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,g.LINEAR_MIPMAP_LINEAR),g.generateMipmap(g.TEXTURE_2D)):g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,
g.LINEAR)):(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,g.NEAREST),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,g.NEAREST));g.bindTexture(g.TEXTURE_2D,null);this.$e=null;l.sf=a.width;l.rf=a.height;l.vj=1;l.bp=d;r.push(l);return b[d]=l};e.prototype.Gc=function(a,b,e,c){this.Re();var d=this.G;this.ke&&(c=!1);var l=d.createTexture();d.bindTexture(d.TEXTURE_2D,l);d.texImage2D(d.TEXTURE_2D,0,d.RGBA,a,b,0,d.RGBA,c?d.UNSIGNED_SHORT_4_4_4_4:d.UNSIGNED_BYTE,null);d.texParameteri(d.TEXTURE_2D,d.TEXTURE_WRAP_S,
d.CLAMP_TO_EDGE);d.texParameteri(d.TEXTURE_2D,d.TEXTURE_WRAP_T,d.CLAMP_TO_EDGE);d.texParameteri(d.TEXTURE_2D,d.TEXTURE_MAG_FILTER,e?d.LINEAR:d.NEAREST);d.texParameteri(d.TEXTURE_2D,d.TEXTURE_MIN_FILTER,e?d.LINEAR:d.NEAREST);d.bindTexture(d.TEXTURE_2D,null);this.$e=null;l.sf=a;l.rf=b;r.push(l);return l};e.prototype.Wx=function(a,b,e){this.Re();var c=this.G;this.ke&&(e=!1);c.bindTexture(c.TEXTURE_2D,b);c.pixelStorei(c.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);try{c.texImage2D(c.TEXTURE_2D,0,c.RGBA,c.RGBA,
e?c.UNSIGNED_SHORT_4_4_4_4:c.UNSIGNED_BYTE,a)}catch(d){console&&console.error&&console.error("Error updating WebGL texture: ",d)}c.bindTexture(c.TEXTURE_2D,null);this.$e=null};e.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.vj&&1<a.vj?a.vj--:(this.Re(),a===this.$e&&(this.G.bindTexture(this.G.TEXTURE_2D,null),this.$e=null),a===this.Nf&&(this.G.activeTexture(this.G.TEXTURE1),this.G.bindTexture(this.G.TEXTURE_2D,null),this.G.activeTexture(this.G.TEXTURE0),this.Nf=null),Ga(r,a),"undefined"!==
typeof a.bp&&delete b[a.bp],this.G.deleteTexture(a)))};e.prototype.cd=function(a){if(a!==this.Yk){var b=this.Bc();b.type=6;this.Yk=b.ed=a;this.Qb=!1}};ob=e})();
(function(){function e(a){if(a&&(a.getContext||a.dc)&&!a.c2runtime){a.c2runtime=this;var c=this;this.vc=(this.fk=/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.Rb=!!a.dc;this.Rp="undefined"!==typeof window.AppMobi||
this.Rb;this.Kc=!!window.c2cocoonjs;this.Vc=!!window.c2ejecta;this.Kc&&(CocoonJS.App.onSuspended.addEventListener(function(){c.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){c.setSuspended(!1)}));this.Vc&&(document.addEventListener("pagehide",function(){c.setSuspended(!0)}),document.addEventListener("pageshow",function(){c.setSuspended(!1)}),document.addEventListener("resize",function(){c.setSize(window.innerWidth,window.innerHeight)}));this.La=this.Rb||this.Kc||this.Vc;this.Wh=
/edge\//i.test(navigator.userAgent);this.ke=(/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent))&&!this.Wh;this.Vp=/tizen/i.test(navigator.userAgent);this.Th=/android/i.test(navigator.userAgent)&&!this.Vp&&!this.ke&&!this.Wh;this.Yp=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&!this.ke&&!this.Wh;this.Bw=/ipad/i.test(navigator.userAgent);this.Ig=this.Yp||this.Bw||this.Vc;this.Om=(/chrome/i.test(navigator.userAgent)||
/chromium/i.test(navigator.userAgent))&&!this.ke&&!this.Wh;this.Qp=/amazonwebappplatform/i.test(navigator.userAgent);this.sw=/firefox/i.test(navigator.userAgent);this.ww=/safari/i.test(navigator.userAgent)&&!this.Om&&!this.ke&&!this.Wh;this.xw=/windows/i.test(navigator.userAgent);this.Tp=this.gk="undefined"!==typeof window.c2nodewebkit||"undefined"!==typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.Wp=!("undefined"===typeof window.c2isWindows8||
!window.c2isWindows8);this.zw=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.Zh=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.Um=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.ik=!!window.cr_windows10;this.Tm=this.Wp||this.zw||this.Um||this.ik;this.qw=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.dk=this.Th&&!this.Om&&!this.fk&&!this.sw&&!this.Qp&&!this.La;
this.devicePixelRatio=1;this.le=this.vc||this.fk||this.Rp||this.Kc||this.Th||this.Ig||this.Zh||this.Um||this.qw||this.Vp||this.Vc;this.le||(this.le=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));this.hk=!!(this.Ig&&this.vc&&window.webkit);"undefined"===typeof cr_is_preview||this.gk||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||(this.gk=!0);this.rw="undefined"!==
typeof cr_is_preview&&-1<window.location.search.indexOf("debug");this.canvas=a;this.Ul=document.getElementById("c2canvasdiv");this.F=this.G=null;this.Dm="(unavailable)";this.Fa=!1;this.zf=0;this.Ja=null;this.Rj=!1;this.Kq=this.Lq=0;this.canvas.oncontextmenu=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.onselectstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.ontouchstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.Rb&&(window.c2runtime=
this);this.gk&&(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.dk&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=a.width;this.height=a.height;this.N=this.width;this.M=this.height;this.Cj=this.width;this.Ah=this.height;this.Mg=window.innerWidth;this.Lg=window.innerHeight;this.ya=!0;this.Yh=!1;Date.now||(Date.now=
function(){return+new Date});this.plugins=[];this.types={};this.B=[];this.Ra=[];this.an={};this.sd=[];this.km={};this.fe=[];this.mh=[];this.xl=[];this.au=[];this.bu=[];this.Zp=this.Hr=null;this.vf={};this.Qm=this.Ve=!1;this.rd=0;this.Pm=this.Sm=!1;this.od=[];this.Vh=!1;this.qk=this.Rn="";this.lb=null;this.me="";this.Wi=this.Dr=!1;this.Qj=[];this.yf=this.xf=0;this.Cq=30;this.$l=this.si=0;this.ig=1;this.ib=new cb;this.Ce=new cb;this.Fk=this.Vj=this.Eh=this.Vd=this.Pf=this.pm=this.lk=0;this.vh=null;
this.Jj=[];this.jm=[];this.Lj=-1;this.ln=[[]];this.ko=this.wk=0;this.Uk(null);this.Fh=this.Fq=this.xi=0;this.Xi=[];this.ho=this.Jn=-1;this.bi=!0;this.uk=0;this.Kf=!1;this.Hx=0;this.pg=null;this.Lc=this.Gp=!1;this.Jq=new da;this.rn=new da;this.sn=new da;this.ag=[];this.zd=new eb([]);this.bo=new eb([]);this.Ie=[];this.Ag={};this.Ne={};this.He={};this.lh={};this.Yo={};this.fq=this.pk=this.$a=this.jb=this.dq=this.ok=this.ra=null;this.jh=this.Vm=!1;this.qm=[null,null];this.Te=0;this.Pj="";this.pe={};this.Ui=
this.cf=null;this.Fr="";this.Ek=[];this.jx()}}function n(a,c){return 128>=c?a[3]:256>=c?a[2]:512>=c?a[1]:a[0]}function q(){try{return!!window.indexedDB}catch(a){return!1}}function m(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function h(a,c,d,k){try{var b=indexedDB.open("_C2SaveStates");b.onupgradeneeded=m;b.onerror=k;b.onsuccess=function(b){b=b.target.result;b.onerror=k;b.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,data:c}).onsuccess=d}}catch(p){k(p)}}function r(a,
c,d){try{var b=indexedDB.open("_C2SaveStates");b.onupgradeneeded=m;b.onerror=d;b.onsuccess=function(b){b=b.target.result;b.onerror=d;var k=b.transaction(["saves"]).objectStore("saves").get(a);k.onsuccess=function(){k.result?c(k.result.data):c(null)}}}catch(k){d(k)}}function b(){ha("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?window.location.reload(!0):window.location=window.location+"?continuous"}function a(a){var c,d=
{};for(c in a)!a.hasOwnProperty(c)||a[c]instanceof da||a[c]&&"undefined"!==typeof a[c].$y||"spriteCreatedDestroyCallback"!==c&&(d[c]=a[c]);return d}var f=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;e.prototype.jx=function(){var a=this;if(this.hk)this.Av(function(c){a.li(JSON.parse(c))},function(){alert("Error fetching data.js")});else{var c;this.Zh?c=new ActiveXObject("Microsoft.XMLHTTP"):
c=new XMLHttpRequest;var d="data.js";if(this.Wp||this.Zh||this.Um||this.ik)d="data.json";c.open("GET",d,!0);var b=!1;if(!this.La&&"response"in c&&"responseType"in c)try{c.responseType="json",b="json"===c.responseType}catch(k){b=!1}if(!b&&"responseType"in c)try{c.responseType="text"}catch(p){}if("overrideMimeType"in c)try{c.overrideMimeType("application/json; charset=utf-8")}catch(f){}this.Zh?c.onreadystatechange=function(){4===c.readyState&&a.li(JSON.parse(c.responseText))}:(c.onload=function(){if(b)a.li(c.response);
else if(a.Vc){var d=c.responseText,d=d.substr(d.indexOf("{"));a.li(JSON.parse(d))}else a.li(JSON.parse(c.responseText))},c.onerror=function(a){ja("Error requesting "+d+":");ja(a)});c.send()}};e.prototype.lw=function(){var a=this,c,d,b,k,p,f,g,e,l;this.Lf=(!this.La||this.Vc||this.vc)&&this.Tx&&!this.dk;0===this.ec&&this.Ig&&(this.Lf=!1);this.devicePixelRatio=this.Lf?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;"object"===typeof window.StatusBar&&
window.StatusBar.hide();this.Ib();0<this.ec&&this.setSize(window.innerWidth,window.innerHeight,!0);this.canvas.addEventListener("webglcontextlost",function(c){c.preventDefault();a.Jw();ha("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){a.F.Lp();a.F.dg(a.F.width,a.F.height,!0);a.jb=null;a.$a=null;a.qm[0]=null;a.qm[1]=null;a.Kw();a.ya=!0;ha("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);try{this.Qu&&
(this.Kc||this.Vc||!this.La)&&(c={alpha:!0,depth:!1,antialias:!1,powerPreference:"high-performance",failIfMajorPerformanceCaveat:!0},this.Th||(this.G=this.canvas.getContext("webgl2",c)),this.G||(this.G=this.canvas.getContext("webgl",c)||this.canvas.getContext("experimental-webgl",c)))}catch(u){}if(this.G){if(c=this.G.getExtension("WEBGL_debug_renderer_info"))this.Dm=this.G.getParameter(c.UNMASKED_RENDERER_WEBGL)+" ["+this.G.getParameter(c.UNMASKED_VENDOR_WEBGL)+"]";this.Fa&&(this.Dm+=" [front-to-back enabled]");
this.La||(this.Gb=document.createElement("canvas"),jQuery(this.Gb).appendTo(this.canvas.parentNode),this.Gb.oncontextmenu=function(){return!1},this.Gb.onselectstart=function(){return!1},this.Gb.width=Math.round(this.Cj*this.devicePixelRatio),this.Gb.height=Math.round(this.Ah*this.devicePixelRatio),jQuery(this.Gb).css({width:this.Cj+"px",height:this.Ah+"px"}),this.er(),this.An=this.Gb.getContext("2d"));this.F=new ob(this.G,this.le,this.Fa);this.F.dg(this.canvas.width,this.canvas.height);this.F.pp=
0!==this.Ju;this.Ja=null;c=0;for(d=this.B.length;c<d;c++)for(p=this.B[c],b=0,k=p.U.length;b<k;b++)g=p.U[b],g.cb=this.F.Cm(g.id),g.vd=this.F.Fn(g.cb),this.jh=this.jh||this.F.Fi(g.cb);c=0;for(d=this.sd.length;c<d;c++){e=this.sd[c];b=0;for(k=e.U.length;b<k;b++)g=e.U[b],g.cb=this.F.Cm(g.id),g.vd=this.F.Fn(g.cb);e.Bd();b=0;for(k=e.V.length;b<k;b++){l=e.V[b];p=0;for(f=l.U.length;p<f;p++)g=l.U[p],g.cb=this.F.Cm(g.id),g.vd=this.F.Fn(g.cb),this.jh=this.jh||this.F.Fi(g.cb);l.Bd()}}}else{if(0<this.ec&&this.Rb){this.canvas=
null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.Ja=AppMobi.canvas.getContext("2d");try{this.Ja.samplingMode=this.Na?"smooth":"sharp",this.Ja.globalScale=1,this.Ja.HTML5CompatibilityMode=!0,this.Ja.imageSmoothingEnabled=this.Na}catch(n){}0!==this.width&&0!==this.height&&(this.Ja.width=this.width,this.Ja.height=this.height)}this.Ja||(this.Kc?(c={antialias:!!this.Na,alpha:!0},this.Ja=this.canvas.getContext("2d",c)):(c={alpha:!0},this.Ja=this.canvas.getContext("2d",
c)),this.dl(this.Ja,this.Na));this.An=this.Gb=null}this.Pr=function(c){a.Qa(!1,c)};window==window.top||this.La||this.Tm||this.Zh||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.Kc&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(ha("Reloading for continuous preview"),this.qk="__c2_continuouspreview",
this.Wi=!0),this.Tw&&!this.le&&(jQuery(window).focus(function(){a.setSuspended(!1)}),jQuery(window).blur(function(){var c=window.parent;c&&c.document.hasFocus()||a.setSuspended(!0)})));window.addEventListener("blur",function(){a.Zf()});this.La||(c=function(a){if(nb(a)&&document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(c){}},"undefined"!==typeof PointerEvent?document.addEventListener("pointerdown",
c):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",c):document.addEventListener("touchstart",c),document.addEventListener("mousedown",c));0===this.ec&&this.Lf&&1<this.devicePixelRatio&&this.setSize(this.Pa,this.Oa,!0);this.Tr();this.ew();this.go();this.J={}};e.prototype.setSize=function(a,c,d){var b=0,k=0,p=0,f=0,f=0;if(this.Mg!==a||this.Lg!==c||d){this.Mg=a;this.Lg=c;var g=this.ec;if((p=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||
document.fullScreen||this.Kf)&&!this.vc)||0!==this.ec||d)p&&(g=this.Te),d=this.devicePixelRatio,4<=g?(5===g&&1!==d&&(a+=1,c+=1),p=this.Pa/this.Oa,a/c>p?(p*=c,5===g?(f=p*d/this.Pa,1<f?f=Math.floor(f):1>f&&(f=1/Math.ceil(1/f)),p=this.Pa*f/d,f=this.Oa*f/d,b=(a-p)/2,k=(c-f)/2,a=p,c=f):(b=(a-p)/2,a=p)):(f=a/p,5===g?(f=f*d/this.Oa,1<f?f=Math.floor(f):1>f&&(f=1/Math.ceil(1/f)),p=this.Pa*f/d,f=this.Oa*f/d,b=(a-p)/2,k=(c-f)/2,a=p):k=(c-f)/2,c=f)):p&&0===g&&(b=Math.floor((a-this.Pa)/2),k=Math.floor((c-this.Oa)/
2),a=this.Pa,c=this.Oa),2>g&&(this.sh=d),this.Cj=Math.round(a),this.Ah=Math.round(c),this.width=Math.round(a*d),this.height=Math.round(c*d),this.ya=!0,this.ds?(this.N=this.width,this.M=this.height,this.Hc=!0):this.width<this.Pa&&this.height<this.Oa||1===g?(this.N=this.width,this.M=this.height,this.Hc=!0):(this.N=this.Pa,this.M=this.Oa,this.Hc=!1,2===g?(p=this.Pa/this.Oa,g=this.Mg/this.Lg,g<p?this.N=this.M*g:g>p&&(this.M=this.N/g)):3===g&&(p=this.Pa/this.Oa,g=this.Mg/this.Lg,g>p?this.N=this.M*g:g<
p&&(this.M=this.N/g))),this.Ul&&!this.La&&(jQuery(this.Ul).css({width:Math.round(a)+"px",height:Math.round(c)+"px","margin-left":Math.floor(b)+"px","margin-top":Math.floor(k)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(a)+"px",height:Math.round(c)+"px"})),this.canvas&&(this.canvas.width=Math.round(a*d),this.canvas.height=Math.round(c*d),this.Vc?(this.canvas.style.left=Math.floor(b)+"px",this.canvas.style.top=Math.floor(k)+"px",this.canvas.style.width=Math.round(a)+
"px",this.canvas.style.height=Math.round(c)+"px"):this.Lf&&!this.La&&(this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(c)+"px")),this.Gb&&(this.Gb.width=Math.round(a*d),this.Gb.height=Math.round(c*d),this.Gb.style.width=this.Cj+"px",this.Gb.style.height=this.Ah+"px"),this.F&&this.F.dg(Math.round(a*d),Math.round(c*d)),this.Rb&&this.Ja&&(this.Ja.width=Math.round(a),this.Ja.height=Math.round(c)),this.Ja&&this.dl(this.Ja,this.Na),this.Tr(),this.Yp&&!this.vc&&window.scrollTo(0,
0)}};e.prototype.Tr=function(){if(this.fu&&0!==this.zn){var a="portrait";2===this.zn&&(a="landscape");try{screen.orientation&&screen.orientation.lock?screen.orientation.lock(a).catch(function(){}):screen.lockOrientation?screen.lockOrientation(a):screen.webkitLockOrientation?screen.webkitLockOrientation(a):screen.mozLockOrientation?screen.mozLockOrientation(a):screen.msLockOrientation&&screen.msLockOrientation(a)}catch(c){console&&console.warn&&console.warn("Failed to lock orientation: ",c)}}};e.prototype.Jw=
function(){this.F.nu();this.Vm=!0;var a,c,d;a=0;for(c=this.B.length;a<c;a++)d=this.B[a],d.Gk&&d.Gk()};e.prototype.Kw=function(){this.Vm=!1;var a,c,d;a=0;for(c=this.B.length;a<c;a++)d=this.B[a],d.wn&&d.wn()};e.prototype.er=function(){if(!this.La){var a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.Kf)&&!this.vc?jQuery(this.canvas).offset():jQuery(this.canvas).position();a.position="absolute";jQuery(this.Gb).css(a)}};var t=window.cancelAnimationFrame||
window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;e.prototype.setSuspended=function(a){var c;if(a&&!this.Yh)for(ha("[Construct 2] Suspending"),this.Yh=!0,-1!==this.Jn&&t&&t(this.Jn),-1!==this.ho&&clearTimeout(this.ho),a=0,c=this.Xi.length;a<c;a++)this.Xi[a](!0);else if(!a&&this.Yh){ha("[Construct 2] Resuming");this.Yh=!1;this.lk=Za();this.Pf=Za();a=this.si=this.Vj=0;for(c=this.Xi.length;a<c;a++)this.Xi[a](!1);this.Qa(!1)}};
e.prototype.Ro=function(a){this.Xi.push(a)};e.prototype.Fe=function(a){return this.Ek[a]};e.prototype.li=function(a){a&&a.project||ja("Project model unavailable");a=a.project;this.name=a[0];this.wp=a[1];this.ec=a[12];this.Pa=a[10];this.Oa=a[11];this.Zq=this.Pa/2;this.$q=this.Oa/2;this.La&&!this.Vc&&(4<=a[12]||0===a[12])&&(ha("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.ec=3);this.so=a[18];this.df=a[19];if(0===this.df){var c=
new Image;c.crossOrigin="anonymous";this.sr(c,"loading-logo.png");this.cf={xk:c}}else if(4===this.df){c=new Image;c.src="";var d=new Image;d.src="";var b=new Image;b.src="";var k=new Image;k.src="";var p=new Image;p.src="";var f=new Image;f.src="";var g=new Image;g.src="";var e=new Image;e.src="";var l=new Image;l.src="";var u=new Image;u.src="";var n=new Image;n.src="";var m=new Image;m.src="";this.cf={xk:[c,d,b,k],Xw:[p,f,g,e],Xx:[l,u,n,m]}}this.xi=a[21];this.Ek=qc();this.Ud=new V(this);c=0;for(d=
a[2].length;c<d;c++)g=a[2][c],b=this.Fe(g[0]),pb(g,b.prototype),e=new b(this),e.kl=g[1],e.Xe=g[2],e.fz=g[5],e.Dq=g[9],e.S&&e.S(),this.plugins.push(e);this.Ek=qc();c=0;for(d=a[3].length;c<d;c++){g=a[3][c];p=this.Fe(g[1]);e=null;b=0;for(k=this.plugins.length;b<k;b++)if(this.plugins[b]instanceof p){e=this.plugins[b];break}l=new e.ta(e);l.name=g[0];l.O=g[2];l.Mm=g[3].slice(0);l.Vx=g[3].length;l.gu=g[4];l.Ev=g[5];l.da=g[11];l.O?(l.Vf=[],l.ge=this.Fh++,l.Ka=null):(l.Vf=null,l.ge=-1,l.Ka=[]);l.Nj=null;l.wg=
null;l.qp=null;l.hc=!1;l.qc=null;g[6]?(l.co=g[6][0],l.eo=g[6][1],l.fo=g[6][2]):(l.co=null,l.eo=0,l.fo=0);g[7]?l.pc=g[7]:l.pc=null;l.index=c;l.j=[];l.Gj=[];l.we=[new qb(l)];l.Fd=0;l.Tc=null;l.su=0;l.eh=!0;l.yl=rb;l.Cp=sb;l.Nv=tb;l.ja=ub;l.Hi=vb;l.Tk=wb;l.$f=xb;l.Xj=yb;l.um=Db;l.xm=Eb;l.Rc=Fb;l.ym=Gb;l.zj=new fb(this.Pa,this.Oa);l.nj=!0;l.oj=!1;l.J={};l.toString=Hb;l.Ra=[];b=0;for(k=g[8].length;b<k;b++){u=g[8][b];n=this.Fe(u[1]);m=null;p=0;for(f=this.Ra.length;p<f;p++)if(this.Ra[p]instanceof n){m=this.Ra[p];
break}m||(m=new n(this),m.Ck=[],m.Bk=new da,m.S&&m.S(),this.Ra.push(m),rc&&m instanceof rc&&(this.Hr=m),sc&&m instanceof sc&&(this.Zp=m));-1===m.Ck.indexOf(l)&&m.Ck.push(l);p=new m.ta(m,l);p.name=u[0];p.da=u[2];p.S();l.Ra.push(p)}l.global=g[9];l.Rm=g[10];l.U=[];b=0;for(k=g[12].length;b<k;b++)l.U.push({id:g[12][b][0],name:g[12][b][1],cb:-1,vd:!1,rb:!0,index:b});l.wz=g[13];this.so&&!l.O&&!l.Rm&&e.Xe||l.S();l.name&&(this.types[l.name]=l);this.B.push(l);e.kl&&(b=new e.ea(l),b.uid=this.xi++,b.ir=this.Fq++,
b.If=0,b.Nh=Ib,b.toString=Jb,b.C=g[14],b.S(),l.j.push(b),this.pe[b.uid.toString()]=b)}c=0;for(d=a[4].length;c<d;c++)for(p=a[4][c],f=this.B[p[0]],b=1,k=p.length;b<k;b++)g=this.B[p[b]],g.Ka.push(f),f.Vf.push(g);c=0;for(d=a[28].length;c<d;c++){p=a[28][c];f=[];b=0;for(k=p.length;b<k;b++)f.push(this.B[p[b]]);b=0;for(k=f.length;b<k;b++)f[b].hc=!0,f[b].qc=f}if(0<this.Fh)for(c=0,d=this.B.length;c<d;c++)if(g=this.B[c],!g.O&&g.Ka.length){g.Nj=Array(this.Fh);g.wg=Array(this.Fh);g.qp=Array(this.Fh);l=[];b=m=
n=u=0;for(k=g.Ka.length;b<k;b++)for(e=g.Ka[b],g.Nj[e.ge]=u,u+=e.Vx,g.wg[e.ge]=n,n+=e.gu,g.qp[e.ge]=m,m+=e.Ev,p=0,f=e.U.length;p<f;p++)l.push(za({},e.U[p]));g.U=l.concat(g.U);b=0;for(k=g.U.length;b<k;b++)g.U[b].index=b}c=0;for(d=a[5].length;c<d;c++)g=a[5][c],b=new Kb(this,g),this.an[b.name]=b,this.sd.push(b);c=0;for(d=a[6].length;c<d;c++)g=a[6][c],b=new Lb(this,g),this.km[b.name]=b,this.fe.push(b);c=0;for(d=this.fe.length;c<d;c++)this.fe[c].Ya();c=0;for(d=this.fe.length;c<d;c++)this.fe[c].po();c=0;
for(d=this.xl.length;c<d;c++)this.xl[c].Ya();R(this.xl);this.eu=a[7];this.Pj=a[8];this.ud=a[9];this.sh=1;this.Qu=a[13];this.Na=a[14];this.fp=a[15];this.Tx=a[17];this.zn=a[20];this.fu=0<this.zn;this.Tw=a[22];this.Hc=this.ds=a[23];this.Ju=a[24];this.Yw=a[25];this.Fa=a[27]&&!this.ke;this.ll=Date.now();R(this.Ek);this.lw()};var c=!1,d=0,l=[];e.prototype.cx=function(a,c){function b(){d--;k.yq()}var k=this;a.addEventListener("load",b);a.addEventListener("error",b);l.push([a,c]);this.yq()};e.prototype.yq=
function(){for(var a;l.length&&100>d;)d++,a=l.shift(),this.sr(a[0],a[1])};e.prototype.cs=function(a,d){a.cocoonLazyLoad=!0;a.onerror=function(d){c=a.$o=!0;console&&console.error&&console.error("Error loading image '"+a.src+"': ",d)};this.Vc?a.src=d:a.src||("undefined"!==typeof XAPKReader?XAPKReader.get(d,function(c){a.src=c},function(b){c=a.$o=!0;console&&console.error&&console.error("Error extracting image '"+d+"' from expansion file: ",b)}):(a.crossOrigin="anonymous",this.cx(a,d)));this.mh.push(a)};
e.prototype.Cv=function(a){var c,d;c=0;for(d=this.mh.length;c<d;c++)if(this.mh[c].ou===a)return this.mh[c];return null};var g=0,x=!1;e.prototype.ew=function(){this.pg&&(g=this.pg.Cx(this.eu))};e.prototype.Wo=function(){var a=g,c=0,d=0,b=!0,k,p,d=0;for(k=this.mh.length;d<k;d++){p=this.mh[d];var f=p.hp;if(!f||0>=f)f=5E4;a+=f;p.src&&(p.complete||p.loaded)&&!p.$o?c+=f:b=!1}b&&this.Yw&&this.pg&&(x||(this.pg.Ix(),x=!0),d=this.pg.Ov(),c+=d,d<g&&(b=!1));this.wd=0==a?1:c/a;return b};var H=!1;e.prototype.go=
function(){if(this.Ja||this.F){var a=this.Ja||this.An;this.Gb&&this.er();var d=window.innerWidth,b=window.innerHeight;this.Mg===d&&this.Lg===b||this.setSize(d,b);this.wd=0;this.cq=-1;var k=this;if(this.Wo()&&(4!==this.df||H))this.fw();else{b=Date.now()-this.ll;if(a){var p=this.width,g=this.height,d=this.devicePixelRatio;if(3>this.df&&(this.Kc||500<=b&&this.cq!=this.wd)){a.clearRect(0,0,p,g);var b=p/2,g=g/2,p=0===this.df&&this.cf.xk.complete,l=40*d,e=0,u=80*d,m;if(p){var n=this.cf.xk,u=n.width*d;m=
n.height*d;l=u/2;e=m/2;a.drawImage(n,K(b-l),K(g-e),u,m)}1>=this.df?(b=K(b-l)+.5,g=K(g+(e+(p?12*d:0)))+.5,a.fillStyle=c?"red":"DodgerBlue",a.fillRect(b,g,Math.floor(u*this.wd),6*d),a.strokeStyle="black",a.strokeRect(b,g,u,6*d),a.strokeStyle="white",a.strokeRect(b-1*d,g-1*d,u+2*d,8*d)):2===this.df&&(a.font=this.Vc?"12pt ArialMT":"12pt Arial",a.fillStyle=c?"#f00":"#999",a.vz="middle",d=Math.round(100*this.wd)+"%",p=a.measureText?a.measureText(d):null,a.fillText(d,b-(p?p.width:0)/2,g));this.cq=this.wd}else if(4===
this.df){this.Ou(a);f?f(function(){k.go()}):setTimeout(function(){k.go()},16);return}}setTimeout(function(){k.go()},this.Kc?10:100)}}};var A=-1,k="undefined"===typeof cr_is_preview?200:0,p=!0,u=!1,L=0,C=0,S="undefined"===typeof cr_is_preview?3E3:0,P=null,w=null,D=0;e.prototype.Ou=function(a){if(!H){for(var d=Math.ceil(this.width),b=Math.ceil(this.height),g=this.cf.xk,f=this.cf.Xw,l=this.cf.Xx,e=0;4>e;++e)if(!g[e].complete||!f[e].complete||!l[e].complete)return;0===D&&(A=Date.now());var e=Date.now(),
m=!1,h=a,x,q;p||u?(a.clearRect(0,0,d,b),P&&P.width===d&&P.height===b||(P=document.createElement("canvas"),P.width=d,P.height=b,w=P.getContext("2d")),h=w,m=!0,p&&1===D&&(A=Date.now())):a.globalAlpha=1;h.fillStyle="#333333";h.fillRect(0,0,d,b);256<this.Ah?(x=Ha(.22*b,105,.6*d),q=.25*x,h.drawImage(n(f,x),.5*d-x/2,.2*b-q/2,x,q),q=x=Math.min(.395*b,.95*d),h.drawImage(n(g,x),.5*d-x/2,.485*b-q/2,x,q),x=Ha(.22*b,105,.6*d),q=.25*x,h.drawImage(n(l,x),.5*d-x/2,.868*b-q/2,x,q),h.fillStyle="#3C3C3C",x=d,q=Math.max(.005*
b,2),h.fillRect(0,.8*b-q/2,x,q),h.fillStyle=c?"red":"#E0FF65",x=d*this.wd,h.fillRect(.5*d-x/2,.8*b-q/2,x,q)):(q=x=.55*b,h.drawImage(n(g,x),.5*d-x/2,.45*b-q/2,x,q),h.fillStyle="#3C3C3C",x=d,q=Math.max(.005*b,2),h.fillRect(0,.85*b-q/2,x,q),h.fillStyle=c?"red":"#E0FF65",x=d*this.wd,h.fillRect(.5*d-x/2,.85*b-q/2,x,q));m&&(p?a.globalAlpha=0===D?0:Math.min((e-A)/300,1):u&&(a.globalAlpha=Math.max(1-(e-C)/300,0)),a.drawImage(P,0,0,d,b));p&&300<=e-A&&2<=D&&(p=!1,L=e);!p&&e-L>=S&&!u&&1<=this.wd&&(u=!0,C=e);
if(u&&e-C>=300+k||"undefined"!==typeof cr_is_preview&&1<=this.wd&&500>Date.now()-A)H=!0,u=p=!1,this.cf=w=P=null;++D}};e.prototype.fw=function(){this.Gb&&(this.canvas.parentNode.removeChild(this.Gb),this.Gb=this.An=null);this.ll=Date.now();this.Pf=Za();var a,c,d;if(this.so)for(a=0,c=this.B.length;a<c;a++)d=this.B[a],d.O||d.Rm||!d.Ga.Xe||d.S();else this.bi=!1;a=0;for(c=this.sd.length;a<c;a++)this.sd[a].pu();2<=this.ec&&(a=this.Pa/this.Oa,c=this.width/this.height,this.sh=2!==this.ec&&c>a||2===this.ec&&
c<a?this.height/this.Oa:this.width/this.Pa);this.wp?this.an[this.wp].$n():this.sd[0].$n();this.so||(this.uk=1,this.trigger(V.prototype.k.Fo,null),window.C2_RegisterSW&&window.C2_RegisterSW());navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();a=0;for(c=this.B.length;a<c;a++)d=this.B[a],d.Mq&&d.Mq();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.Qa(!1);this.Rb&&AppMobi.webview.execute("onGameReady();")};
e.prototype.Qa=function(a,c,d){if(this.ra){var b=Za();if(d||!this.Yh||a){a||(f?this.Jn=f(this.Pr):this.ho=setTimeout(this.Pr,this.le?1:16));c=c||b;var k=this.ec;((d=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.vc)||this.Kf)&&0<this.Te&&(k=this.Te);if(0<k){var k=window.innerWidth,p=window.innerHeight;this.Mg===k&&this.Lg===p||this.setSize(k,p)}this.La||(d?this.Rj||(this.Rj=!0):this.Rj?(this.Rj=!1,0===this.ec&&this.setSize(Math.round(this.Lq/
this.devicePixelRatio),Math.round(this.Kq/this.devicePixelRatio),!0)):(this.Lq=this.width,this.Kq=this.height));this.bi&&(d=this.Wo(),this.uk=this.wd,d&&(this.bi=!1,this.wd=1,this.trigger(V.prototype.k.Fo,null),window.C2_RegisterSW&&window.C2_RegisterSW()));this.Ew(c);!this.ya&&!this.Kc||this.Vm||this.Wi||a||(this.ya=!1,this.F?this.rc():this.Gd(),this.Ui&&(this.canvas&&this.canvas.toDataURL&&(this.Fr=this.canvas.toDataURL(this.Ui[0],this.Ui[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.Fr),
this.trigger(V.prototype.k.Qs,null)),this.Ui=null));this.ez||(this.Vd++,this.Eh++,this.Vj++);this.si+=Za()-b}}};e.prototype.Ew=function(a){var c,d,b,k,p,g,f,l;1E3<=a-this.Pf&&(this.Pf+=1E3,1E3<=a-this.Pf&&(this.Pf=a),this.pm=this.Vj,this.Vj=0,this.$l=this.si,this.si=0);c=0;0!==this.lk&&(c=a-this.lk,0>c&&(c=0),this.yf=c/=1E3,.5<this.yf?this.yf=0:this.yf>1/this.Cq&&(this.yf=1/this.Cq));this.lk=a;this.xf=this.yf*this.ig;this.ib.add(this.xf);this.Ce.add(c);a=(document.mozFullScreen||document.webkitIsFullScreen||
document.fullScreen||!!document.msFullscreenElement||this.Kf)&&!this.vc;2<=this.ec||a&&0<this.Te?(c=this.Pa/this.Oa,d=this.width/this.height,b=this.ec,a&&0<this.Te&&(b=this.Te),this.sh=2!==b&&d>c||2===b&&d<c?this.height/this.Oa:this.width/this.Pa,this.ra&&(this.ra.Sn(this.ra.scrollX),this.ra.Tn(this.ra.scrollY))):this.sh=this.Lf?this.devicePixelRatio:1;this.Ib();this.rd++;this.Ud.qx();this.rd--;this.Ib();this.rd++;d=this.Jq.Ae();a=0;for(c=d.length;a<c;a++)d[a].oz();a=0;for(c=this.B.length;a<c;a++)if(g=
this.B[a],!g.O&&(g.Ra.length||g.Ka.length))for(d=0,b=g.j.length;d<b;d++)for(f=g.j[d],k=0,p=f.P.length;k<p;k++)f.P[k].Qa();a=0;for(c=this.B.length;a<c;a++)if(g=this.B[a],!g.O&&(g.Ra.length||g.Ka.length))for(d=0,b=g.j.length;d<b;d++)for(f=g.j[d],k=0,p=f.P.length;k<p;k++)l=f.P[k],l.fr&&l.fr();d=this.rn.Ae();a=0;for(c=d.length;a<c;a++)d[a].Qa();this.rd--;this.gw();for(a=0;this.vh&&10>a++;)this.op(this.vh);a=0;for(c=this.fe.length;a<c;a++)this.fe[a].Gm=!1;this.ra.Af&&this.ra.Af.bb();R(this.ag);this.rd++;
a=0;for(c=this.B.length;a<c;a++)if(g=this.B[a],!g.O&&(g.Ra.length||g.Ka.length))for(d=0,b=g.j.length;d<b;d++)for(f=g.j[d],k=0,p=f.P.length;k<p;k++)l=f.P[k],l.Zi&&l.Zi();d=this.sn.Ae();a=0;for(c=d.length;a<c;a++)d[a].Zi();this.rd--};e.prototype.Zf=function(){var a,c,d,b,k,p,g,f,l;a=0;for(c=this.B.length;a<c;a++)if(g=this.B[a],!g.O)for(d=0,b=g.j.length;d<b;d++)if(f=g.j[d],f.Zf&&f.Zf(),f.P)for(k=0,p=f.P.length;k<p;k++)l=f.P[k],l.Zf&&l.Zf()};e.prototype.op=function(a){var c=this.ra;this.ra.Jx();var d,
b,k;if(this.F)for(d=0,b=this.B.length;d<b;d++)k=this.B[d],k.O||!k.oo||k.global&&0!==k.j.length||-1!==a.Rh.indexOf(k)||k.oo();c==a&&R(this.Ud.nc);R(this.ag);this.mr(!0);a.$n();this.mr(!1);this.ya=!0;this.Ib()};e.prototype.mr=function(a){var c,d,b,k,p,g,f,l,e;c=0;for(d=this.Ra.length;c<d;c++)b=this.Ra[c],a?b.yi&&b.yi():b.Bi&&b.Bi();c=0;for(d=this.B.length;c<d;c++)if(b=this.B[c],b.global||b.Ga.kl)for(k=0,p=b.j.length;k<p;k++)if(g=b.j[k],a?g.yi&&g.yi():g.Bi&&g.Bi(),g.P)for(f=0,l=g.P.length;f<l;f++)e=
g.P[f],a?e.yi&&e.yi():e.Bi&&e.Bi()};e.prototype.gh=function(a){this.rn.add(a)};e.prototype.Lx=function(a){this.sn.add(a)};e.prototype.Ih=function(a){return a&&-1!==a.wi?this.yf*a.wi:this.xf};e.prototype.Gd=function(){this.ra.Gd(this.Ja);this.Rb&&this.Ja.present()};e.prototype.rc=function(){this.Fa&&(this.zf=1,this.ra.wf(this.F));this.ra.rc(this.F);this.F.$w()};e.prototype.lj=function(a){a&&this.Jj.push(a)};e.prototype.lr=function(a){Ga(this.Jj,a)};e.prototype.Ef=function(a){a=a.toString();return this.pe.hasOwnProperty(a)?
this.pe[a]:null};var O=[];e.prototype.of=function(a){var c,d;c=a.type.name;var b=null;if(this.vf.hasOwnProperty(c)){if(b=this.vf[c],b.contains(a))return}else b=O.length?O.pop():new da,this.vf[c]=b;b.add(a);this.Ve=!0;if(a.hc)for(c=0,d=a.siblings.length;c<d;c++)this.of(a.siblings[c]);this.Qm&&b.kh.push(a);this.Pm||(this.rd++,this.trigger(Object.getPrototypeOf(a.type.Ga).k.Ss,a),this.rd--)};e.prototype.Ib=function(){if(this.Ve){var a,c,d,b,k,p;this.Qm=!0;d=0;for(k=this.od.length;d<k;++d)for(a=this.od[d],
c=a.type,c.j.push(a),b=0,p=c.Ka.length;b<p;++b)c.Ka[b].j.push(a),c.Ka[b].eh=!0;R(this.od);this.Ks();Ya(this.vf);this.Ve=this.Qm=!1}};e.prototype.Ks=function(){for(var a in this.vf)this.vf.hasOwnProperty(a)&&this.ns(this.vf[a])};e.prototype.ns=function(a){var c=a.Ae(),d=c[0].type,b,k,p,g,f,l;$a(d.j,a);d.eh=!0;0===d.j.length&&(d.oj=!1);b=0;for(k=d.Ka.length;b<k;++b)l=d.Ka[b],$a(l.j,a),l.eh=!0;b=0;for(k=this.Ud.nc.length;b<k;++b)if(f=this.Ud.nc[b],f.Yb.hasOwnProperty(d.index)&&$a(f.Yb[d.index].ie,a),
!d.O)for(p=0,g=d.Ka.length;p<g;++p)l=d.Ka[p],f.Yb.hasOwnProperty(l.index)&&$a(f.Yb[l.index].ie,a);if(f=c[0].q){if(f.Qc)for(p=f.j,b=0,k=p.length;b<k;++b)g=p[b],a.contains(g)&&(g.Z(),f.Hb.update(g,g.jc,null),g.jc.set(0,0,-1,-1));$a(f.j,a);f.Oi(0)}for(b=0;b<c.length;++b)this.ls(c[b],d);a.clear();O.push(a);this.ya=!0};e.prototype.ls=function(a,c){var d,b,k;d=0;for(b=this.Jj.length;d<b;++d)this.Jj[d](a);a.Oe&&c.zj.update(a,a.Oe,null);(d=a.q)&&d.Zg(a,!0);if(a.P)for(d=0,b=a.P.length;d<b;++d)k=a.P[d],k.Yf&&
k.Yf(),k.behavior.Bk.remove(a);this.Jq.remove(a);this.rn.remove(a);this.sn.remove(a);a.Yf&&a.Yf();this.pe.hasOwnProperty(a.uid.toString())&&delete this.pe[a.uid.toString()];this.Fk--;100>c.Gj.length&&c.Gj.push(a)};e.prototype.ip=function(a,c,d,b){if(a.O){var k=K(Math.random()*a.Vf.length);return this.ip(a.Vf[k],c,d,b)}return a.Tc?this.Pe(a.Tc,c,!1,d,b,!1):null};var Q=[];e.prototype.Pe=function(a,c,d,b,k,p){var g,f,l,e;if(!a)return null;var u=this.B[a[1]],m=u.Ga.Xe;if(this.bi&&m&&!u.Rm||m&&!this.F&&
11===a[0][11])return null;var n=c;m||(c=null);var h;u.Gj.length?(h=u.Gj.pop(),h.Cc=!0,u.Ga.ea.call(h,u)):(h=new u.Ga.ea(u),h.Cc=!1);!d||p||this.pe.hasOwnProperty(a[2].toString())?h.uid=this.xi++:h.uid=a[2];this.pe[h.uid.toString()]=h;h.ir=this.Fq++;h.If=u.j.length;g=0;for(f=this.od.length;g<f;++g)this.od[g].type===u&&h.If++;h.Nh=Ib;h.toString=Jb;l=a[3];if(h.Cc)Ya(h.J);else{h.J={};if("undefined"!==typeof cr_is_preview)for(h.Op=[],h.Op.length=l.length,g=0,f=l.length;g<f;g++)h.Op[g]=l[g][1];h.hb=[];
h.hb.length=l.length}g=0;for(f=l.length;g<f;g++)h.hb[g]=l[g][0];if(m){var x=a[0];h.x=ka(b)?x[0]:b;h.y=ka(k)?x[1]:k;h.z=x[2];h.width=x[3];h.height=x[4];h.depth=x[5];h.n=x[6];h.opacity=x[7];h.fc=x[8];h.gc=x[9];h.Jb=x[10];g=x[11];!this.F&&u.U.length&&(h.Jb=g);h.wh=hb(h.Jb);this.G&&ib(h,h.Jb,this.G);if(h.Cc){g=0;for(f=x[12].length;g<f;g++)for(l=0,e=x[12][g].length;l<e;l++)h.Sa[g][l]=x[12][g][l];h.W.set(0,0,0,0);h.Oe.set(0,0,-1,-1);h.jc.set(0,0,-1,-1);h.Xb.Pi(h.W);R(h.Rl)}else{h.Sa=x[12].slice(0);g=0;
for(f=h.Sa.length;g<f;g++)h.Sa[g]=x[12][g].slice(0);h.qa=[];h.Ge=[];h.Ge.length=u.U.length;h.W=new wa(0,0,0,0);h.Oe=new wa(0,0,-1,-1);h.jc=new wa(0,0,-1,-1);h.Xb=new ya;h.Rl=[];h.A=Mb;h.Zy=Nb;h.Ob=Ob;h.Z=Pb;h.Sx=Qb;h.$r=Rb;h.Jd=Sb}h.hh=!1;h.Ox=0;h.Nx=0;h.Mx=null;14===x.length&&(h.hh=!0,h.Ox=x[13][0],h.Nx=x[13][1],h.Mx=x[13][2]);g=0;for(f=u.U.length;g<f;g++)h.Ge[g]=!0;h.ue=!0;h.Bd=Tb;h.Bd();h.as=!!h.qa.length;h.Ql=!0;h.Vl=!0;u.nj=!0;h.visible=!0;h.wi=-1;h.q=c;h.Cd=c.j.length;h.zf=0;"undefined"===typeof h.ua&&
(h.ua=null);this.ya=h.$d=!0}var q;R(Q);g=0;for(f=u.Ka.length;g<f;g++)Q.push.apply(Q,u.Ka[g].Ra);Q.push.apply(Q,u.Ra);if(h.Cc)for(g=0,f=Q.length;g<f;g++){var C=Q[g];q=h.P[g];q.Cc=!0;C.behavior.ea.call(q,C,h);x=a[4][g];l=0;for(e=x.length;l<e;l++)q.C[l]=x[l];q.S();C.behavior.Bk.add(h)}else for(h.P=[],g=0,f=Q.length;g<f;g++)C=Q[g],q=new C.behavior.ea(C,h),q.Cc=!1,q.C=a[4][g].slice(0),q.S(),h.P.push(q),C.behavior.Bk.add(h);x=a[5];if(h.Cc)for(g=0,f=x.length;g<f;g++)h.C[g]=x[g];else h.C=x.slice(0);this.od.push(h);
this.Ve=!0;c&&(c.rh(h,!0),1!==c.Zc||1!==c.$c)&&(u.oj=!0);this.Fk++;if(u.hc){if(h.hc=!0,h.Cc?R(h.siblings):h.siblings=[],!d&&!p){g=0;for(f=u.qc.length;g<f;g++)if(u.qc[g]!==u){if(!u.qc[g].Tc)return null;h.siblings.push(this.Pe(u.qc[g].Tc,n,!1,m?h.x:b,m?h.y:k,!0))}g=0;for(f=h.siblings.length;g<f;g++)for(h.siblings[g].siblings.push(h),l=0;l<f;l++)g!==l&&h.siblings[g].siblings.push(h.siblings[l])}}else h.hc=!1,h.siblings=null;h.S();g=0;for(f=h.P.length;g<f;g++)h.P[g].Ww&&h.P[g].Ww();return h};e.prototype.zm=
function(a){var c,d;c=0;for(d=this.ra.V.length;c<d;c++){var b=this.ra.V[c];if(kb(b.name,a))return b}return null};e.prototype.Kh=function(a){a=K(a);0>a&&(a=0);a>=this.ra.V.length&&(a=this.ra.V.length-1);return this.ra.V[a]};e.prototype.Yl=function(a){var c,d;c=0;for(d=a.length;c<d;c++)a[c].ja().xa=!0};e.prototype.Hi=function(a){var c,d;c=0;for(d=a.length;c<d;c++)a[c].Hi()};e.prototype.Tk=function(a){var c,d;c=0;for(d=a.length;c<d;c++)a[c].Tk()};e.prototype.$f=function(a){var c,d;c=0;for(d=a.length;c<
d;c++)a[c].$f()};e.prototype.Xr=function(a){if(a.nj){var c,d,b=a.j;c=0;for(d=b.length;c<d;++c)b[c].$r();b=this.od;c=0;for(d=b.length;c<d;++c)b[c].type===a&&b[c].$r();a.nj=!1}};e.prototype.zp=function(a,c,d,b){var k,p,g=a?1!==a.Zc||1!==a.$c:!1;if(c.O)for(a=0,k=c.Vf.length;a<k;++a)p=c.Vf[a],g||p.oj?Da(b,p.j):(this.Xr(p),p.zj.Wk(d,b));else g||c.oj?Da(b,c.j):(this.Xr(c),c.zj.Wk(d,b))};e.prototype.Fp=function(a,c,d,b){var k,p;k=0;for(p=c.length;k<p;++k)this.zp(a,c[k],d,b)};e.prototype.Sv=function(a,c,
d){var b=this.Hr;b&&this.Fp(a,b.Ck,c,d)};e.prototype.Lv=function(a,c,d){var b=this.Zp;b&&this.Fp(a,b.Ck,c,d)};e.prototype.pl=function(a,c,d){var b=a.ja(),k,p,g,f,l=this.Db().cc.Xc,e,h,u;if(b.xa)for(b.