-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoffline.html
10 lines (9 loc) · 34.1 KB
/
offline.html
1
2
3
4
5
6
7
8
9
10
---
layout: offline
title: "Fabricio Ziliotti - Offline Page"
permalink: /offline/index.html
image: "/assets/img/offline-game.jpg"
description: "Ops, parece que você está sem internet, aproveite um joguinho."
---
<style>#t,body,canvas{width:100%}*{margin:0}body{background-color:#000}#t{display:table}#c{display:table-cell;vertical-align:middle}#cc{margin:auto;}canvas{display:block}</style><div id="t"><div id="c"><div id="cc" style="width: 375px; height: 539.062px;"><canvas width="640" height="920"></canvas></div></div></div><script>function B(s){return s.split(",").map(function(r){return r.split("").map(function(v){return parseInt(v)})})}function e$(){this.el=function(values){for(var i=0;i<24;i++)this[String.fromCharCode(97+i)]=values[i]||0;this.c<.01&&(this.c=.01);var aJ=this.b+this.c+this.e;if(aJ<.18){var cn=.18/aJ;this.b*=cn,this.c*=cn,this.e*=cn}}}function eY(){this.bq=new e$;var bp,bo,bn,_W,cm,ci,cG,cE,cr,bj,_N,dC;this.dB=function(){var p=this.bq;_W=100/(p.f*p.f+.001),cm=100/(p.g*p.g+.001),ci=1-p.h*p.h*p.h*.01,cG=-p.i*p.i*p.i*1e-6,p.a||(_N=.5-p.n/2,dC=5e-5*-p.o),cE=1+p.l*p.l*(p.l>0?-.9:10),cr=0,bj=1==p.m?0:(1-p.m)*(1-p.m)*2e4+32},this.fd=function(){this.dB();var p=this.bq;return bp=p.b*p.b*1e5,bo=p.c*p.c*1e5,bn=p.e*p.e*1e5+12,3*((bp+bo+bn)/3|0)},this.fb=function(buffer,l){var p=this.bq,dt=1!=p.s||p.v,ad=p.v*p.v*.1,cU=1+3e-4*p.w,_Q=p.s*p.s*p.s*.1,fO=1+1e-4*p.t,fN=1!=p.s,fM=p.x*p.x,fL=p.g,cB=p.q||p.r,fK=p.r*p.r*p.r*.2,dR=p.q*p.q*(p.q<0?-1020:1020),dQ=p.p?((1-p.p)*(1-p.p)*2e4|0)+32:0,fJ=p.d,dG=p.j/2,fI=p.k*p.k*.01,ch=p.a,ce=bp,fF=1/bp,fE=1/bo,fD=1/bn,at=5/(1+p.u*p.u*20)*(.01+_Q);at>.8&&(at=.8),at=1-at;for(var cR,_n,_P,_B,__,a_,cd=0,dc=0,aq=0,aM=0,cb=0,bb=0,ak=0,_J=0,ca=0,cJ=0,cF=0,b$=Array(1024),aC=Array(32),i=b$.length;i--;)b$[i]=0;for(i=aC.length;i--;)aC[i]=A(-1,1);for(i=0;i<l;i++){if(cd)return i;if(dQ&&++cJ>=dQ&&(cJ=0,this.dB()),bj&&++cr>=bj&&(bj=0,_W*=cE),ci+=cG,_W*=ci,_W>cm&&(_W=cm,fL>0&&(cd=1)),_n=_W,dG>0&&(cF+=fI,_n*=1+sin(cF)*dG),_n|=0,_n<8&&(_n=8),ch||(_N+=dC,_N<0?_N=0:_N>.5&&(_N=.5)),++aq>ce)switch(aq=0,++dc){case 1:ce=bo;break;case 2:ce=bn}switch(dc){case 0:aM=aq*fF;break;case 1:aM=1+2*(1-aq*fE)*fJ;break;case 2:aM=1-aq*fD;break;case 3:aM=0,cd=1}cB&&(dR+=fK,_P=0|dR,_P<0?_P=-_P:_P>1023&&(_P=1023)),dt&&cU&&(ad*=cU,ad<1e-5?ad=1e-5:ad>.1&&(ad=.1)),a_=0;for(var j=8;j--;){if(_J++,_J>=_n&&(_J%=_n,3==ch))for(var n=aC.length;n--;)aC[n]=A(-1,1);switch(ch){case 0:__=_J/_n<_N?.5:-.5;break;case 1:__=1-_J/_n*2;break;case 2:_B=_J/_n,_B=6.28318531*(_B>.5?_B-1:_B),__=1.27323954*_B+.405284735*_B*_B*(_B<0?1:-1),__=.225*((__<0?-1:1)*__*__-__)+__;break;case 3:__=aC[abs(32*_J/_n|0)]}dt&&(cR=ak,_Q*=fO,_Q<0?_Q=0:_Q>.1&&(_Q=.1),fN?(bb+=(__-ak)*_Q,bb*=at):(ak=__,bb=0),ak+=bb,cb+=ak-cR,cb*=1-ad,__=cb),cB&&(b$[ca%1024]=__,__+=b$[(ca-_P+1024)%1024],ca++),a_+=__}a_*=.125*aM*fM,buffer[i]=a_>=1?32767:a_<=-1?-32768:32767*a_|0}return l}}function _a(w,h,f){var c=D.createElement("canvas");return c.width=w,c.height=h,f(c.getContext("2d"),c),c}function dz(w,h,f){var c=_a(w,h,f);return c.getContext("2d").createPattern(c,"repeat")}function dy(m,n){for(var r=[],$=0;$<m.length+2*n;$++){r.push([]);for(var z=0;z<m[0].length+2*n;z++)$<n||$>=m.length+n||z<n||z>=m[0].length+n?r[$][z]=2:r[$][z]=m[$-n][z-n]}return r}function du(m){var bN=[];return m.forEach(function($){bN=bN.concat($)}),bN}function dq(o){var r={};for(var i in o)o[i].call&&(r[i]=o[i].bind(o));return r}function _x(s,c,eT,eS){var p,n=Q([0,1]);G._g(p={s:s,c:c,_c:function(){V.ba(this.x,this.y,this.s)&&(R.fillStyle=p.c,eS?fillText(""+n,p.x,p.y):fillRect(p.x-p.s/2,p.y-p.s/2,p.s,p.s))}},1),eT.forEach(function(a,id){var dV=[p].concat(a);id||(dV[7]=function(){G._p(p)}),I.apply(0,dV)})}function aj(s,eP,eO){return _a(s,s,function(r){with(r){var g=createRadialGradient(s/2,s/2,0,s/2,s/2,s/2);g.addColorStop(0,eP),g.addColorStop(1,eO),fillStyle=g,fillRect(0,0,s,s)}})}function Z(r,t,x,y,s,c){for(var i=0;i<t.length;i++){var dD=eG(t.charAt(i),s,c);r.drawImage(dD,x,y),x+=dD.width+s}}function bi(r,t,x,y,s,c){var key=t+s+c;bC[key]||(bC[key]=_a(s*_H(t,s),5*s,function(r){Z(r,t,0,0,s,c)})),r.drawImage(bC[key],x,y)}function _H(t,s){for(var r=0,i=0;i<t.length;i++)r+=bE[t.charAt(i)][0].length+1;return r-1}function eG(t,s,c){var key=t+s+c;if(!bz[key]){var aE=bE[t];bz[key]=_a(aE[0].length*s,aE.length*s,function(r){r.fillStyle=c;for(var $=0;$<aE.length;$++)for(var z=0;z<aE[$].length;z++)aE[$][z]&&r.fillRect(z*s,$*s,s,s)})}return bz[key]}function eA(){this._u=1,this.ez=400,this._c=function(){R.globalAlpha=this._u,R.fillStyle="#fff",beginPath(),arc(P.x,P.y,this.ez,0,2*PI,1),fill(),R.globalAlpha=1};I(this,"ez",320,0,.4,1),I(this,"_u",0,1,.4,1,0,function(){P.by=1;for(var i=0;i<50;i++){var t=A(.5,1.5),a=A(-PI,PI),l=A(8,80),x=cos(a)*l+P.x,y=sin(a)*l+P.y-40;_x(4,"#fff",[["x",x,x,t,0,ds],["y",y,y+A(80,240),t,0],["s",A(8,16),0,t]],1)}}),P.by=P._l=0,P.bw=1,G.a$=1;var dn=500;G._F||(_k(function(){P._b(["Hello there!","This code is falling apart!","Let's fix the glitches before it's too late!"])},2e3),dn=9e3),_k(function(){eZ()},500),_k(function(){P.bw=0,P._l=1,dk()},dn)}function dj(f){for(var aH=V.x+E,aG=V.y+X,$=~~(V.y/80);$<~~(aG/80)+1;$++)for(var z=~~(V.x/80);z<~~(aH/80)+1;z++)W.O[$]&&W.O[$][z]&&f(W.O[$][z])}function dk(){G.a$=0,dj(function(t){var r=_v(t._f,P);t.bk=.5,I(t,"bk",0,1,r/E,0,bh)})}function et(){G.a$=0,dj(function(t){var r=_v(t._f,P);t.bk=.5,I(t,"bk",1,0,r/E,0,bh)})}function F(t,end){return _a(440,100,function(r){with(r)fillStyle="#444",fillRect(0,90,440,10),fillStyle="#fff",fillRect(0,0,440,90),Z(r,"."+t+(end||"()"),100,20,10,"#000"),fillStyle="#000",beginPath(),moveTo(40,20),lineTo(80,45),lineTo(40,70),fill()})}function A(a,b){return random()*((a||1)-~~b)+~~b}function _v(a,b){return sqrt(pow(a.x-b.x,2)+pow(a.y-b.y,2))}function Q(aU,aT,ep){aU=aU.slice(0),aT=aT||1;for(var am=[];am.length<aT;)am=am.concat(aU.splice(~~(random()*aU.length),1));return 1!==aT||ep?am:am[0]}function bO(a,b,c){return b<a?a:b>c?c:b}function _p(l,e){var i=l.indexOf(e);i>=0&&l.splice(i,1)}function em(t,b,c,d){return t/d*c+b}function fi(t,b,c,d){return s=1.70158,c*((t=t/d-1)*t*((s+1)*t+s)+1)+b}function ds(t,b,c,d){return sin(t/d*PI*4)*c+b}function bh(t,b,c,d){return(t/=d)<1/2.75?c*(7.5625*t*t)+b:t<2/2.75?c*(7.5625*(t-=1.5/2.75)*t+.75)+b:t<2.5/2.75?c*(7.5625*(t-=2.25/2.75)*t+.9375)+b:c*(7.5625*(t-=2.625/2.75)*t+.984375)+b}function I(o,p,a,b,d,l,f,e){var i={o:o,p:p,a:a,b:b,d:d,l:l||0,f:f||em,e:e,t:0,Y:function(e){i.l>0?(i.l-=e,i.o[i.p]=i.a):(i.t=min(i.d,i.t+e),i.o[i.p]=i.f(i.t,i.a,i.b-i.a,i.d),i.t==i.d&&(i.e&&i.e(),_p(G._T,i)))}};G._g(i,2)}function ei(n,l){for(n=""+n;n.length<l;)n="0"+n;return n}function cL(t,fQ){var m=~~(t/60),s=~~(t%60);return ei(m,2)+":"+ei(s,2)+(fQ?"."+ei(~~(t%1*100),2):"")}function bW(){this.ah=[],this._u=1,this.cH=db,this.F=function(d,x,y,a){var b={d:d,x:x,y:y,a:a,o:1};return this.ah.push(b),b},this.click=function(x,y){1==this._u&&this.ah.forEach(function(b){x>b.x&&y>b.y&&x<b.x+b.d.width&&y<b.y+b.d.height&&(b.a.call(b),eX())})},this._c=function(){R.globalAlpha=this._u,R.fillStyle=this.cH,fillRect(0,0,E,X);var a=this._u;this.ah.forEach(function(b){R.globalAlpha=a*b.o,drawImage(b.d,b.x,b.y)}),R.globalAlpha=1},this.bY=function(){this.ah.forEach(function(b,i){I(b,"x",-b.d.width,0,.25,.25*i+.5)})}}function bZ(c_){bW.call(this);var bd=[["critical","mental health"],["time","expired"],["code fixed","!!!"]][c_],t=cL(G.aJ);this.F(F("retry"),0,420,G.cC),this.F(F("back"),0,560,G.cf),this.F(F("share"),0,700,function(){open("//twitter.com/intent/tweet?hashtags=devk&via=Willian_justen&url="+encodeURIComponent("https://willianjusten.com.br/offline/")+"&text="+encodeURIComponent((2==c_?"I fixed all glitches in "+t:"I fixed "+(G._F-1)+"/13 glitches")+" on Glitchbuster playing offline!"))}),this.bY(),bd.push(2==c_?"time: "+t:"fixed "+(G._F-1)+"/13");var cg=bd[0],bl=10,cy=_H(cg)*bl,cj=bd[1],bs=10,cv=_H(cj)*bs,bv=bd[2],aX=5,cs=_H(bv)*aX;this.F(_a(cy,5*bl+5,function(r){Z(r,cg,0,5,bl,"#444"),Z(r,cg,0,0,bl,"#fff")}),(E-cy)/2,120),this.F(_a(cv,5*bs+5,function(r){Z(r,cj,0,5,bs,"#444"),Z(r,cj,0,0,bs,"#fff")}),(E-cv)/2,200),this.F(_a(cs,5*aX+5,function(r){Z(r,bv,0,5,aX,"#444"),Z(r,bv,0,0,aX,"#fff")}),(E-cs)/2,280)}function dW(){bW.call(this),this.F(F("start"),0,420,G.cC),this.F(N.F(),0,560,function(){N.aL=!N.aL,this.d=N.F()}),this.F(F("hires","?"),0,700,function(){G.cq(!T),this.o=T?.5:1}).o=T?.5:1,this.bY();var co=(E-460)/2;this.F(_a(460,230,function(r){Z(r,"glitch",0,10,20,"#444"),Z(r,"glitch",0,0,20,"#fff"),Z(r,"buster",0,130,20,"#444"),Z(r,"buster",0,120,20,"#fff")}),co,90,function(){I(this,"o",0,1,.4)}),I(this.ah[this.ah.length-1],"o",0,1,.25,.5)}function dZ(){bW.call(this),this.cH="rgba(0,0,0,.5)",this.F(F("resume"),0,280,G.resume),this.F(N.F(),0,420,function(){N.aL=!N.aL,this.d=N.F()}),this.F(F("hires","?"),0,560,function(){G.cq(!T),this.o=T?.5:1}).o=T?.5:1,this.F(F("menu"),0,700,function(){confirm("Quit?")&&G.cf()}),this.bY();var co=(E-460)/2;this.F(_a(460,110,function(r){Z(r,"paused",0,10,20,"#444"),Z(r,"paused",0,0,20,"#fff")}),co,90)}function cw(x,y,H){this.x=x,this.y=y,this.H=H,this._c=function(){if(V.ba(this.x,this.y,80)){save(),translate(x,y),T||drawImage(bG,-80,-80);var cl=10*sin(G.az*PI*2*.5)+-40;R.fillStyle="#fff",beginPath(),moveTo(-10,-10+cl),lineTo(10,-10+cl),lineTo(0,cl),fill(),this.cx(),restore()}},this.Y=function(){_v(this,P)<40&&!this.e_&&(G._p(this),this.be(),this.e_=1,f$(),this.cA())},this.be=function(){for(var i=0;i<10;i++){var x=A(this.x-20,this.x+20),y=A(this.y-20,this.y+20);A(.2,.5);_x(3,"#fff",[["x",x,x,.5],["y",y,y-A(40,80),.5],["s",12,0,.5]])}}}function ea(x,y){cw.call(this,x,y,2),this.cx=function(){R.fillStyle="red",rotate(PI/4),fillRect(-8,-8,16,16)},this.cA=function(){P.af++,P._b([Q(["Here's a breakpoint!","You found a breakpoint!","That's a breakpoint!"]),G.ag?"Hold the circle button to throw it":"Hold SPACE to throw it"])}}function eb(x,y){cw.call(this,x,y,1),this.cx=function(){var o=5*-_H("!",5)/2;Z(R,"!",o,o,5,"#f00")},this.cA=function(){P._O++,P._b("health++")}}function ec(_o){var _C=_o._C;return 8&_o._C?_C|=4:_C^=4,4&_o._C?_C|=8:_C^=8,{_o:_o._o.map(function(r){return r.slice(0).reverse()}),_C:_C}}function ed(bc,ee){return Q(bc.filter(function(m){return m._C==ee}))}function ef(id){function ek(J,_o,en,eo){for(var $=0;$<10;$++)for(var z=0;z<10;z++)J[$+en][z+eo]=_o[$][z]}if(!id)return dy(es,5);var z,$,eg=bc.concat(bc.map(ec)),aZ=id<0?4:round(.4*(id-1)+2),aV=id<0?5:round(.2*(id-1)+3),_K=[],bS=[],aF=[];for(z=0;z<aV;z++)aF.push(z);for($=0;$<aZ;$++){for(_K.push([]),z=0;z<aV;z++)_K[$][z]=0,bS.indexOf(z)>=0&&(_K[$][z]|=1),z>0&&(_K[$][z]|=4),z<aV-1&&(_K[$][z]|=8);$<aZ-1&&(bS=Q(aF,Q([1,2,3]),1),bS.forEach(function(z){_K[$][z]|=2}))}var J=[];for($=0;$<10*aZ;$++)J[$]=[];for($=0;$<aZ;$++)for(z=0;z<aV;z++){var _o=ed(eg,_K[$][z])._o;ek(J,_o,10*$,10*z)}var _d=[],cV=[],cW=[],aY=[];for($=0;$<J.length;$++)for(_d.push([]),aY.push([]),J[$][z]=parseInt(J[$][z]),z=0;z<J[$].length;z++)if(_d[$].push(J[$][z]),3==J[$][z]&&(_d[$][z]=A()<.5?1:0),$>0){if(1==_d[$][z]&&0==_d[$-1][z]){var f=[$,z];cV.push(f),aY[$].push(f)}0==_d[$][z]&&1==_d[$-1][z]&&cW.push([$-1,z])}var _L=Q(du(aY.slice(0,10))),_q=Q(du(aY.slice(_d.length-6)));return _d[_L[0]-1][_L[1]]=4,_d[_q[0]-1][_q[1]]=5,_d[_q[0]][_q[1]]=2,cV.forEach(function(f){f!=_q&&f!=_L&&A()<.05&&(_d[f[0]][f[1]]=7)}),cW.forEach(function(c){c!=_q&&c!=_L&&A()<.05&&(_d[c[0]][c[1]]=6)}),dy(_d,5)}function d_(x,y,angle,aw,bf){this.x=x,this.y=y,this.da=2,this.dd=0,this.S=cos(angle)*aw,this.U=sin(angle)*aw,this.Y=function(e){var ay={x:this.x,y:this.y};if(!this._U||this._U.ev){this._U=0,this.U+=7500*e*.5,this.x+=this.S*e,this.y+=this.U*e,this.dd+=4*PI*e;var di={x:this.x,y:this.y};if(!T&&!bf){var t={_u:1,_c:function(){R.strokeStyle="rgba(255, 0, 0, "+this._u+")",R.lineWidth=8,beginPath(),moveTo(ay.x,ay.y),lineTo(di.x,di.y),stroke()}};G._g(t,1),I(t,"_u",1,0,.3,0,0,function(){G._p(t)})}}if(!bf)if(this.da-=e,this.da<=0)this.dm();else for(var i in G._y)if(G._y[i]!=P&&_v(G._y[i],this)<20)return this.dm();var M=W._w(this.x,this.y);if(M&&!this._U){this.S*=.5,this.U*=.5;var _r,ex=0;do if(_r=M._t(this,16,16),bf&&(this._U|=_r),1&_r&&(this.U=-abs(this.U)),2&_r&&(this.U=abs(this.U)),4&_r&&(this.S=-abs(this.S)),8&_r&&(this.S=abs(this.S)),max(abs(this.S),abs(this.U))<150)this._U=M,this.S=this.U=0;else if(_r&&!T&&!bf)for(var i=0;i<2;i++){var x=this.x+A(-8,8),y=this.y+A(-8,8),d=A(.2,.5);_x(3,"#fff",[["x",x,x,d],["y",y,y-A(40,80),d],["s",12,0,d]])}while(_r&&ex++<5)}},this.dm=function(){if(!this.ey){this.ey=1,[[this.x-80,this.y+80],[this.x,this.y+80],[this.x+80,this.y+80],[this.x-80,this.y],[this.x,this.y],[this.x+80,this.y],[this.x-80,this.y-80],[this.x,this.y-80],[this.x+80,this.y-80]].forEach(function(p){W.eB(p[0],p[1])});for(var i=0;i<40;i++){var d=A(.5,1.5),x=A(-80,80)+this.x,y=A(-80,80)+this.y;_x(3,Q(["#f00","#f80","#ff0"]),[["x",x,x+8,d,0,ds],["y",y,y-A(80,240),d,0],["s",A(24,40),0,d]])}for(i=G._y.length;--i>=0;)_v(this,G._y[i])<160&&G._y[i].aD(this,3);G._p(this);var m=this;_k(function(){V._X==m&&(V._X=0)},1e3),fP()}},this._c=function(){save(),translate(this.x,this.y),rotate(this.dd),R.fillStyle="red",fillRect(-8,-8,16,16),restore()}}function eC(J){this.O=[],this.J=J,this.bB=J.length,this.aF=J[0].length;for(var $=0;$<J.length;$++){this.O.push([]);for(var z=0;z<J[$].length;z++)this.O[$][z]=0,J[$][z]>0&&(this.O[$][z]=new eD($,z,J[$][z]),4==J[$][z]?this._L=this.O[$][z]:5==J[$][z]&&(this._q=this.O[$][z]))}this._w=function(x,y){var $=~~(y/80),t=this.O[$]&&this.O[$][~~(x/80)];return t&&t.eE&&t},this.eF=function(M){if(M&&2!=M.H){for(var i=0;i<50;i++){var d=A(.5,2),x=M.x+A(80);_x(4,"#fff",[["x",x,x,d],["y",M.y+A(80),this.dH(x,M._f.y),d,0,bh],["s",12,0,d]])}M.ev=1,this.O[M.$][M.z]=0}},this.eB=function(x,y){this.eF(this._w(x,y))},this.dL=function(l){for(var al=0,dO=[],$=0;$<this.bB-1;$++){al=0;for(var z=0;z<this.aF;z++){var eQ=0!=this.J[$][z],eR=1==this.J[$+1][z]||2==this.J[$+1][z];!eR||eQ?(al>=l&&dO.push({$:$,cz:z-al,cO:z-1}),al=0):al++}}return dO},this.dH=function(x,y){do y+=80;while(y<80*this.bB&&!this._w(x,y));return 80*~~(y/80)},this._c=function(){R.fillStyle=G.a$||T?"#000":"#fff",fillRect(0,0,E,X),save(),translate(-V.x,-V.y),R.fillStyle=T?"#000":db,fillRect(0,0,80*this.aF,80*this.bB);for(var aH=V.x+E,aG=V.y+X,$=~~(V.y/80);$<~~(aG/80)+1;$++)for(var z=~~(V.x/80);z<~~(aH/80)+1;z++)this.O[$]&&this.O[$][z]&&this.O[$][z]._c();P._c();for(var i in G.aB)G.aB[i]._c();if(!T){var px=P.x,cS=P.y+(P.cp?200:0);px=V.x+E/2,cS=V.y+X/2;var aW=~~px-500,_V=~~cS-500,bL=aW+1e3,bM=_V+1e3;R.fillStyle="#000",aW>V.x&&fillRect(V.x,_V,aW-V.x,1e3),bL<aH&&fillRect(bL,_V,aH-bL,1e3),_V>V.y&&fillRect(V.x,V.y,E,_V-V.y),bM<aG&&fillRect(V.x,bM,E,aG-bM),drawImage(eM,aW,_V)}restore()}}function fj(){this.aR=this.aQ=this.x=this.y=0,this.ab=function(_$){var x,y;return this._X?(x=this._X.x,y=this._X.y):(x=P.x+(P._l&&_$?50*P._$:0),y=P.y+(P._l&&P.cp&&_$?400:0)),{x:~~(x-E/2),y:~~(y-X/2)}},this.fm=function(e){var t=this.ab();this.aR=this.x=t.x,this.aQ=this.y=t.y},this.ba=function(x,y,d){return x+d>this.x&&y+d>this.y&&x-d<this.x+E&&y-d<this.y+X},this.Y=function(e){var ab=this.ab(1),d=_v(ab,this),_s=max(1,d/.2),angle=atan2(ab.y-this.aQ,ab.x-this.aR),dK=min(_s*e,d),px=1/G.aK;d>px&&(this.aR+=cos(angle)*dK,this.aQ+=sin(angle)*dK),this.x=~~(this.aR/px)*px,this.y=~~(this.aQ/px)*px}}function eD($,z,H){this.x=80*(this.z=z),this.y=80*(this.$=$),this.eE=[4,5].indexOf(H)<0,this.H=H,this._u=1,this.bk=1,this._f={x:this.x+40,y:this.y+40},this._t=function(_G,w,h){var closest,dN,_r=[{x:this.x-(w||40)/2,y:_G.y,H:4},{x:this.x+80+(w||40)/2,y:_G.y,H:8},{x:_G.x,y:this.y-(h||52)/2,H:1},{x:_G.x,y:this.y+80+(h||52)/2,H:2}];return _r.forEach(function(bP){var d=sqrt(pow(bP.x-_G.x,2)+pow(bP.y-_G.y,2));(!closest||d<dN)&&(closest=bP,dN=d)}),_G.x=closest.x,_G.y=closest.y,closest.H},this._c=function(){if(!G.a$&&!this.hidden){if(R.fillStyle="#fff",T){var bQ=~~(15*bO(0,1-_v(this._f,P)/800,1));R.fillStyle="#"+bQ.toString(16)+bQ.toString(16)+bQ.toString(16)}if(save(),translate(this._f.x,this._f.y),scale(this.bk,this.bk),translate(-40,-40),1!=H&&2!=H||fillRect(0,0,80,80),7==H||6==H){6==H&&(translate(0,80),scale(1,-1)),fillRect(0,24,80,56),beginPath(),moveTo(0,24);for(var step=20,x=step/2;x<80;x+=step)lineTo(x,0),lineTo(x+step/2,24);lineTo(80,24),fill()}if(5==H){T||drawImage(bG,-40,-40),1==this._u&&(R.font="14pt Courier New",fillText("Glitch #"+G._F,40,-40),beginPath(),moveTo(30,-20),lineTo(50,-20),lineTo(40,-10),fill()),R.globalAlpha=this._u,R.fillStyle=dS;var x=A(400),y=A(400);translate(x,y),fillRect(-x,-y,80,80)}restore()}},this.fs=function(c){7===H&&c.aD(this._f)},this.fu=function(c){6==H&&c.aD(this._f)}}function bD(){this.x=this.y=0,this.K=0,this._$=1,this.by=1,this.offsetY=0,this.cD=0,this.bV=0,this._Y=[],this.bu=0,this.fw=1,this.fx=1,this.ae=0,this.av=4,this.S=0,this.U=0,this.au=0;var bX,_M=0;return this._c=function(){if(!(this.ae>0&&~~(2*this.ae*4%2)&&!this._e||!this.by)&&V.ba(this.x,this.y,20)){if(save(),translate(~~this.x,~~this.y+this.offsetY),T||this._e||drawImage(this.aj,-80,-80),this.bu>0&&this._Y.length){R.font="16pt Arial";var t=this._Y[0],w=measureText(t).width+8;R.fillStyle="#000",R.globalAlpha=.5,fillRect(-w/2,-68-this.bV,w,24),R.globalAlpha=1,R.fillStyle=this.c$,fillRect(-2,-40,4,-this.bV),fillText(t,0,-56-this.bV)}if(scale(this._$*this.fw,this.fx),!this._e){save(),translate(-18,-26);var an=7,fy=.3,cM=sin(G.t*PI*2/fy)/2*an+an/2,fz=this.K||_M>0?cM:an,fA=this.K||_M>0?an-cM:an;R.fillStyle=this.cT,fillRect(0,45,6,fz),fillRect(30,45,6,fA),restore()}var fB=PI/16,fC=.5,ap=sin(G.t*PI*2/fC)/2*fB;this.ap?ap=this.ap:this.K||this.aa||(ap=0),translate(0,this.cD),rotate(ap),save(),translate(-23,-26),R.fillStyle=this.c$,fillRect(0,0,46,45);var p=4,d$=.3,mt=G.t%p,de=p-d$/2,s=min(1,max(-mt+de,mt-de)/(d$/2)),h=4*s;this._e&&(h=1);var dh=this.cp?24:10;if(!this.aa){R.fillStyle="#000";var offset=this.bw?-10:0;fillRect(27+offset,dh,4,h),fillRect(37+offset,dh,4,h)}restore(),restore()}},this.Y=function(e){var ay={x:this.x,y:this.y};this.ae-=e,(this.bu-=e)<=0&&this._b(this._Y.slice(1)),this._e&&(this.K=0);var av=this.av*this._s,fG=this.K*this._s,fH=fG-this.S,eh=bO(-av*e,fH,av*e);this.S=bO(-this._s,this.S+eh,this._s),this.x+=this.S*e,this.K==-this._$&&I(this,"fw",-1,1,.1),this._$=this.K||this._$,this.U+=7500*e,this.y+=this.U*e,this.au=this.eI(ay),2&this.au||1&this.au||(_M=max(1,_M))},this.ac=function(p,f){if(f&&(_M=0),_M++<=1){this.U=p*-1700,bX=-1;for(var y=this.y+26,i=0;i<5;i++){var x=A(this.x-20,this.x+20);_x(3,"#888",[["x",x,x,.3],["y",y,y-A(40,80),.3],["s",12,0,.3]])}return 1}},this.fe=function(angle,aw){this.S=cos(angle)*aw,this.U=sin(angle)*aw,this._$=this.S<0?-1:1},this.aD=function(source,ff){var _$=this._$;this.ae<=0&&!this._e&&!this.aa&&(f_(),this.fe(atan2(this.y-source.y,this.x-source.x),1500),this.ae=2,(this._O-=ff||1)<=0?(this.ai(),this._$=_$):this._b(Q(["Ouch!","health--"])))},this.ax=function(O){this.U=0,_M=0;var M=O.sort(function(a,b){return abs(a._f.x-P.x)-abs(b._f.x-P.x)})[0];if(M.fs(this),M.y!==bX){if(!this._e){I(this,"cD",0,8,.1),I(this,"cD",8,0,.1,.1);for(var i=0;i<5;i++){var x=A(this.x-20,this.x+20);_x(3,"#888",[["x",x,x,.3],["y",M.y,M.y-A(40,80),.3],["s",12,0,.3]])}}return bX=M.y,1}},this.fg=function(O){this.U=0;var M=O.sort(function(a,b){return abs(a._f.x-P.x)-abs(b._f.x-P.x)})[0];M.fu(this)},this.eI=function(ay){var _S=this.x-20,_R=this.x+20,ck=this.y-26,_Z=this.y+26,_E=W._w(_S,ck),_D=W._w(_R,ck),_h=W._w(_S,_Z),_j=W._w(_R,_Z),t=0;return _D&&_h&&!_j&&!_E?(t|=_D._t(this),t|=_h._t(this)):_E&&_j&&!_D&&!_h?(t|=_E._t(this),t|=_j._t(this)):_E&&_D?(this.y=80*ceil(ck/80)+26,t|=2,_h?(this.x=80*ceil(_S/80)+20,t|=8):_j&&(this.x=80*floor(_R/80)-20,t|=4)):_h&&_j?(this.y=80*floor(_Z/80)-26,t|=1,_E?(this.x=80*ceil(_S/80)+20,t|=8):_D&&(this.x=80*floor(_R/80)-20,t|=4)):_E&&_h?(this.x=80*ceil(_S/80)+20,t|=8):_D&&_j?(this.x=80*floor(_R/80)-20,t|=4):_h?t|=_h._t(this):_j?t|=_j._t(this):_E?t|=_E._t(this):_D&&(t|=_D._t(this)),1&t?this.ax([_h,_j].filter(Boolean)):2&t&&this.fg([_E,_D].filter(Boolean)),t},this.ai=function(){if(!this._e&&!this.aa){this._l=0,this._e=1,this._O=0;for(var i=0;i<40;i++){var x=A(this.x-20,this.x+20),y=A(this.y-26,this.y+26),fh=W.dH(x,this.y),d=A(.5,1);_x(3,"#900",[["x",x,x,.5],["y",y,y-A(40,80),.5],["s",12,0,.5]]),_x(3,"#900",[["x",x,x,d],["y",y,fh,d,0,bh],["s",12,0,d]])}this.cD=8,I(this,"ap",0,-PI/2,.3),this._b(Q(["...","exit(1)","NULL","Fatal error"]))}},this._b=function(s){this._Y=s.push?s:[s],this.bu=this._Y.length?3:0,this._Y.length&&I(this,"bV",0,56,.3,0,fi)},dq(this)}function cX(x,y){var sup=bD.call(this);return this.x=x,this.y=y,this.c$="#f00",this.cT="#b22",this.aj=eN,this._O=1,this._s=0,this.Y=function(e){if(V.ba(this.x,this.y,20)&&(sup.Y(e),!this._e)){var dx=abs(P.x-this.x),dA=abs(P.y-this.y);dx<40&&dA<52&&(dx<dA&&P.y<this.y&&P.U>0?(P.ac(.8,1),this.aD(P)):(P.aD(this),this.K=this.x>P.x?1:-1)),this.bu<=0&&this._b("0x"+(~~A(1048576,16777215)).toString(16))}},this.ai=function(){if(!this._e){sup.ai();var s=this;_k(function(){s._b([]),I(s,"fw",1,0,.4),I(s,"fx",1,5,.3,.1),I(s,"offsetY",0,-400,.3,.1,0,function(){_k(function(){G._p(s)},0)}),G.dE(s.x,s.y,.5,1)},500)}},dq(this)}function cK(x,y){var sup=cX.call(this,x,y);this._s=120,this.K=Q([-1,1]),this.Y=function(e){if(sup.Y(e),!this._e){var _S=this.x-40,_R=this.x+40,_Z=this.y+26,_h=W._w(_S,_Z),_j=W._w(_R,_Z);(4&this.au||!_j||_j.H>6)&&(this.K=-1),(8&this.au||!_h||_h.H>6)&&(this.K=1)}}}function cQ(x,y){var sup=cX.call(this,x,y);this.dM=4,this.av=0,this._s=480,this.Y=function(e){sup.Y(e),(this.dM-=e)<=0&&!this._e&&(this.S=(this.K=this._$=Q([-1,1]))*this._s,this.ac(.8),this.dM=A(1.5,2.5))},this.ax=function(t){sup.ax(t),this.S=0,this.K=0}}function cN(){var sup=bD.call(this);this._l=1,this.af=0,this._O=5,this.c$="#fff",this.cT="#aaa",this.aj=bG,this._s=560,this.aA=0,this.b_=0,this.Y=function(e){if(this._l){this.K&&(V._X=0);var d=_v(this,W._q._f);d<40?(this._l=0,this.aa=1,this._b(["Let's fix this...","Done!"]),I(this,"x",this.x,W._q._f.x,1),I(W._q,"_u",1,0,3),_k(function(){eU(),G.fv()},3500)):d<E/2&&!this.fo&&(this.fo=1,this._b("You found the glitch!"))}else this.K=0;this.b_=(this.b_+e/4)%1,sup.Y(e)},this.ai=function(){sup.ai(),G.fk()},this.ac=function(p,f){this._l&&sup.ac(p,f)&&fa()},this.dr=function(){this.af?(this.aA=1,this.b_=0):P._b(Q(["You don't have any breakpoints","breakpoints.count == 0","NoBreakpointException"]))},this.dp=function(){return 500+1500*(1-abs(2*(this.b_-.5)))},this.dg=function(){if(this.aA&&!this._e){var g=new d_(this.x,this.y,-PI/2+this._$*PI/4,this.dp());G._g(g,3),V._X=g,this.aA=0,this.af=max(0,this.af-1)}},this._b=function(a){sup._b(a),a&&a.length&&eW()},this.ax=function(t){sup.ax(t)&&eV()},this._c=function(e){if(sup._c(e),this.aA&&!this._e){var g=new d_(this.x,this.y,-PI/2+this._$*PI/4,this.dp(),1);R.fillStyle="#fff";for(var i=0;i<40&&!g._U;i++)g.Y(1/60),i%2&&fillRect(~~g.x-2,~~g.y-2,4,4)}}}function eu(){var bH=X/10;drawImage(_a(E,X,function(r){for(var y=0;y<X;y+=bH)r.drawImage(C,0,y,E,bH,A(-100,100),y,E,bH)}),0,0)}function eq(){R.fillStyle=dS;var x=~~A(-400,400),y=~~A(-400,400);save(),translate(x,y),R.globalAlpha=A(.5),fillRect(-x,-y,E,X),restore()}function ej(){G=this;var ao,bm=0,aP=0;G.paused=0,G._F=0,G.aK=1,G.t=0,V=new fj,P=new cN,P._l=0,G.cC=function(){P=new cN;var df;try{df=localStorage._}catch(e){}G._F=df?0:-1,G.aJ=0,G.bA(),I(G.L,"_u",1,0,.5,0,0,function(){G.L=0}),G._g(new eA(P.x,P.y),1)},G.bA=function(ew){if(G._T=[],G._y=[],G.aB=[],G.az=105,G.paused=0,G.bx(0,.5),!ew)if(W=new eC(ef(++G._F)),W.eH={1:8-P._O,2:10-P.af},G.a$=0,P.x=W._L.x+40,P.y=W._L.y+80-20,P._l=1,P.aa=0,G._g(V,2),G._g(P,7),V.fm(),G._F){_k(function(){P._b(Q(["There's more?!","Yay more glitches","Okay one more glitch..."]))},500),W.dL(2).forEach(function(path){var ct=new(Q([cK,cQ]))(80*A(path.cz,path.cO),80*(path.$+1)-26);A()<.2&&_v(ct,P)>E/2&&G._g(ct,7)});var cu=W.dL(1);Q(cu,cu.length).forEach(function(path){G.dE(80*(~~A(path.cz,path.cO)+.5),80*(path.$+.5),.05)})}else{var dT;G._g(dT=new cK(4500,800),7),G._g(new cQ(5700,800),7);var dU;G._g({Y:function(){!dU&&abs(P.x-dT.x)<E&&(dU=1,P._b(["Watch out for the pointers!","They're super dangerous!","Either avoid them or kill them"]))}},2)}},G.Y=function(e){this.paused||(G.t+=e),aP-=e,aP<=0&&(ao=0,bm-=e,bm<=0&&G.bx());for(var bI=1/120;e>0;)G.fc(min(e,bI)),e-=bI;if(save(),scale(G.aK,G.aK),R.textAlign="center",R.textBaseline="middle",W&&W._c(),G.L)G.L._c();else{var bJ="";for(i=0;i<P._O;i++)bJ+="!";var dl=cL(G.az,1),dw="progress: "+G._F+"/13",fl="breakpoints: "+P.af;Z(R,dl,(E-10*_H(dl))/2,aS?50:10,10,G.az>30?"#fff":"#f00"),bi(R,bJ,(E-5*_H(bJ))/2,aS?120:80,5,P._O<3||P.ae>1.8?"#f00":"#fff"),bi(R,dw,E-4*_H(dw)-10,10,4,"#fff"),bi(R,fl,10,10,4,"#fff"),G.ag?([eL,bF,eJ,eK].forEach(function(b,i){R.globalAlpha=aN[i]?1:.5,drawImage(b,(i+.5)*E/4-40,X-100)}),R.globalAlpha=1,R.fillStyle="#fff",fillRect(E/2-4,10,-8,20),fillRect(E/2+4,10,8,20)):bi(R,"(arrows keys) move (space) use breakpoint (p) pause",E/2-315,X-20,3,"#888")}restore(),ao&&ao()},G.fc=function(e){G.paused&&(_i={});for(var i=G._T.length;--i>=0;)G.paused&&!G._T[i].o||G._T[i].Y(e);!G.L&&P._l&&((G.az-=e)<=0&&(G.az=0,G.L=new bZ(1),I(G.L,"_u",0,1,.5),G.paused=1),G._F&&(G.aJ+=e))},G.bx=function(id,t){var l=[function(){ao=eq}];G.L||T||l.push(function(){ao=eu}),isNaN(id)?Q(l)():l[id](),aP=t||A(.1,.3),bm=G._F?A(4,8):99},G.fk=function(){_k(function(){G.L=new bZ(0),I(G.L,"_u",0,1,.5)},2e3)},G.fv=function(){try{localStorage._=1}catch(e){}13==G._F?(G.L=new bZ(2),I(G.L,"_u",0,1,.5)):(G.bx(0,.5),et(),_k(function(){G.bA(),G.a$=1,_k(dk,500)},500))},G.cf=function(){G.L=new dW},G.fq=function(r){G.aK=r,C.width=E*r,C.height=X*r},G._g=function(e,H){1&H&&G.aB.push(e),2&H&&G._T.push(e),4&H&&G._y.push(e)},G._p=function(e){_p(G._T,e),_p(G._y,e),_p(G.aB,e)},G.dE=function(x,y,fr,be){if(A()<fr){var bU=new(Q([ea,eb]))(x,y);--W.eH[bU.H]>0&&(G._g(bU,3),be&&bU.be())}},G.pause=function(){G.paused||G.L||P.bw||P.aa||(G.paused=1,G.L=new dZ,I(G.L,"_u",0,1,.3))},G.resume=function(){G.paused&&(G.paused=0,I(G.L,"_u",0,1,.3,0,function(){G.L=0}))},G.cq=function(b){T=b,G.fq(b?.5:1)},G.bA(1),G.cf(),aP=0,bm=1;var cI=Date.now();!function(){var n=Date.now(),e=(n-cI)/1e3;cI=n,G.Y(e),(requestAnimationFrame||webkitRequestAnimationFrame||mozRequestAnimationFrame)(arguments.callee)}()}function cP(e){P.K=0,(_i[37]||_i[65])&&(P.K=-1),(_i[39]||_i[68])&&(P.K=1),P.cp=_i[40]||_i[83]}var bT=new eY,ft=function(bR){bT.bq.el(bR);var dP=bT.fd(),aI=new Uint8Array(4*((dP+1)/2|0)+44),_A=2*bT.fb(new Uint16Array(aI.buffer,44),dP),_m=new Uint32Array(aI.buffer,0,44);_m[0]=1179011410,_m[1]=_A+36,_m[2]=1163280727,_m[3]=544501094,_m[4]=16,_m[5]=65537,_m[6]=44100,_m[7]=88200,_m[8]=1048578,_m[9]=1635017060,_m[10]=_A,_A+=44;for(var i=0,aO="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",dJ="data:audio/wav;base64,";i<_A;i+=3){var a=aI[i]<<16|aI[i+1]<<8|aI[i+2];dJ+=aO[a>>18]+aO[a>>12&63]+aO[a>>6&63]+aO[63&a]}var dI=new Audio;return dI.src=dJ,dI},N={aL:0,_I:function(bR){var fp=ft(bR);return function(){N.aL||fp.play()}},F:function(){return F(N.aL?"unmute":"mute")}};Object.getOwnPropertyNames(Math).forEach(function(n){Math[n].call&&(this[n]=Math[n])});var D=document,w=window,_k=setTimeout,C,R,W,P,V,PI=Math.PI,aS=navigator.userAgent.match(/andro|ipho|ipa|ipo|windows ph/i),T=aS,E=aS?640:920,X=920,fa=N._I([0,,.1434,,.1212,.4471,,.2511,,,,,,.0426,,,,,.8862,,,,,.5]),f_=N._I([1,,.0713,,.1467,.5483,,-.4465,,,,,,,,,,,1,,,.0639,,.5]),f$=N._I([0,,.0224,.441,.1886,.6932,,,,,,,,,,,,,1,,,,,.5]),eZ=N._I([2,.28,.45,,.56,.35,,.4088,,,,,.03,.1557,,.5565,-.02,-.02,1,,,,,.5]),fP=N._I([3,,.244,.6411,.2242,.7416,,-.2717,,,,.0171,.0346,,,,-.0305,.0244,1,,,.0275,-.0076,.5]),eX=N._I([0,,.1394,,.0864,.48,,,,,,,,.5326,,,,,1,,,.1,,.5]),eW=N._I([2,.03,.1,.14,.25,.54,.3167,-.02,.3999,,.05,,,.1021,.0684,,.1287,-.1816,1,,,,,.46]),eV=N._I([3,,.0118,.03,.1681,.565,,-.2343,,,,.26,.6855,,,,,,1,,,,,.2]),eU=N._I([0,,.2098,,.4725,.3665,,.1895,,,,,,.0067,,.5437,,,1,,,,,.45]),dS=dz(400,400,function(r){with(r){fillStyle="#fff";for(var x=0;x<400;x+=4)for(var y=0;y<400;y+=4)globalAlpha=A(),fillRect(x,y,4,4)}}),bG=aj(160,"rgba(255,255,255,.25)","rgba(255,255,255,0)"),eN=aj(160,"rgba(255,0,0,.25)","rgba(255,0,0,0)"),eM=aj(1e3,"rgba(0,0,0,0)","rgba(0,0,0,1)"),bF=_a(80,80,function(r){with(r)fillStyle="#fff",beginPath(),moveTo(0,0),lineTo(80,40),lineTo(0,80),fill()}),eL=_a(80,80,function(r){with(r)translate(80,0),scale(-1,1),drawImage(bF,0,0)}),eK=_a(80,80,function(r){with(r)translate(0,80),rotate(-PI/2),drawImage(bF,0,0)}),eJ=_a(80,80,function(r){with(r)fillStyle="#fff",beginPath(),arc(40,40,40,0,2*PI,1),fill()}),bE={a:B("111,101,111,101,101"),b:B("111,101,110,101,111"),c:B("111,100,100,100,111"),d:B("110,101,101,101,111"),e:B("111,100,110,100,111"),f:B("111,100,110,100,100"),g:B("111,100,100,101,111"),h:B("101,101,111,101,101"),i:B("111,010,010,010,111"),k:B("101,101,110,101,101"),l:B("100,100,100,100,111"),m:B("101,111,101,101,101"),n:B("111,101,101,101,101"),o:B("111,101,101,101,111"),p:B("111,101,111,100,100"),q:B("111,101,101,111,001"),r:B("111,101,110,101,101"),s:B("111,100,111,001,111"),t:B("111,010,010,010,010"),u:B("101,101,101,101,111"),v:B("101,101,101,101,010"),w:B("10101,10101,10101,10101,01010"),x:B("101,101,010,101,101"),y:B("101,101,111,010,010"),".":B("0,0,0,0,1")," ":B("00,00,00,00,00"),"-":[[0,0],[0,0],[1,1],[0,0],[0,0]],":":B("0,1,,1,"),"?":B("111,001,011,000,010"),"!":B("01010,11111,11111,01110,00100"),"/":B("001,001,010,100,100"),1:B("110,010,010,010,111"),2:B("111,001,111,100,111"),3:B("111,001,011,001,111"),4:B("100,100,101,111,001"),5:B("111,100,110,001,110"),6:B("111,100,111,101,111"),7:B("111,001,010,010,010"),8:B("111,101,111,101,111"),9:B("111,101,111,001,111"),0:B("111,101,101,101,111"),"(":B("01,1,1,1,01"),")":B("10,01,01,01,1")},bC={},bz={},db=dz(400,400,function(r){var y=10;with(r)fillStyle="#000",fillRect(0,0,400,400),fillStyle="#fff",globalAlpha=.1,font="14pt Courier New",(""+bD).split(";").slice(0,20).forEach(function(l){fillText(l,0,y),y+=20})}),bc=[{_o:B("0000000000,1103113011,1100000011,1100000011,1110000111,0000000000,0030000300,1110110111,1110000111,1110000111"),_C:15},{_o:B("1111111111,1111111111,1111111111,0330000330,0000000000,0000000000,0330000330,1113003111,1110000111,1110000111"),_C:14},{_o:B("1001111001,1000000001,1111001111,1000000001,1000000001,1000000000,1001111000,1001111001,1001111001,1111111111"),_C:9},{_o:B("1111111111,1000000000,1000000000,1000000000,1001100300,1001100110,1001100110,1111111111,1111111111,1111111111"),_C:8},{_o:B("1110000001,1111000011,0011000011,0000000001,0003000001,0011000011,0011000011,1111301111,1000000001,1000000001"),_C:7},{_o:B("0000000000,0030000300,0111331110,0000000000,0000000000,0030000300,0111331110,0000000000,0000000000,0000000000"),_C:15},{_o:B("1100000011,1100000011,0000000000,0000330000,0000110000,0000110000,0011111100,0000330000,0000000000,0000000000"),_C:15},{_o:B("1000000001,1000000001,1000000001,1111001111,0000000000,0000000000,1110110111,1000000001,1000000001,1111111111"),_C:13},{_o:B("0000000000,0000000000,0000000000,0000000000,0000330000,0110110110,0110000110,0110000110,1111111111,1111111111"),_C:13},{_o:B("1300000011,1300000011,1000000011,1000000011,1100000011,1100000030,1100110000,1100110030,1100110011,1111111111"),_C:9},{_o:B("1111111111,1111111111,1111111111,0000110000,0000110000,0000000000,0000000000,1110000111,1110330111,1111111111"),_C:12},{_o:B("1111111111,0000000001,0000000001,0000000011,0000000001,0033000001,1111303111,1111000001,1111000001,1111000001"),_C:6},{_o:B("0000000001,0000311301,0000000001,0000000001,0000000001,1110000301,1110000111,1110000001,1113300001,1111111111"),_C:5},{_o:B("1111111111,0000000000,0000000000,0000110000,0000110000,0001111000,0000000000,0030000300,0110000110,1111111111"),_C:12},{_o:B("1111111111,1110000111,1110000111,0000000000,0000000000,0000110000,0300110030,1100110011,1100110011,1111111111"),_C:12},{_o:B("1111111111,1111111111,0000000000,0000000000,0000110000,0000000000,0110000110,0110000110,1110000111,1111111111"),_C:12},{_o:B("1111111111,0000000000,0000000000,0000000000,0000000110,0000000110,0001100113,0001100111,1001100111,1111111111"),_C:12},{_o:B("1111111111,0000000000,0000000000,1103113011,0000000000,0000000000,1103113011,0000000000,0000000000,1111111111"),_C:12},{_o:B("1000000001,1113111001,1000000001,1000000001,1001111111,1000000000,1000000000,1111311001,1000000001,1000000001"),_C:11},{_o:B("1111111111,1001111111,1000000000,1001000300,1111001110,1000001110,1000001111,1001111111,1001111111,1111111111"),_C:8},{_o:B("1111111111,1000000001,1000000001,1113300111,1000000000,1000000000,1110033111,1000000001,1000000001,1111111111"),_C:8},{_o:B("1110000111,1110000111,1110000111,0000000000,0030000300,0110000110,0110110110,1110000111,1110000111,1111111111"),
_C:13},{_o:B("1111111111,0000000001,0000000001,0111111001,0100000001,1100000001,1100113111,1100000001,1100000001,1111111001"),_C:6},{_o:B("1100000011,0000110000,0000110000,0011111100,0011111100,0000110000,3300110033,0000000000,0000000000,1111111111"),_C:13}],es=B("11111111111111111111111111111111111111111111111111111111111111111111111111111111,11111111111111111111111111111000000000111111111111111111111111111111111111111111,11111111111111111111111111111000000000111111111111111111111111111111111111111111,10000000000000000000000001100000000000001100000000000000000000000000000000000001,10000000000000000000000001100000111000001100000000000000000000000000000000000001,10000000000000000000000006600000111000006600000000000000000000000000000000000001,10000000000000110000000000000111111111000000000111111100000000100000010000000001,10400000001100110011000000000111111111000000000111111100000000100000010000050001,11111111111177117711111111111111111111111111111111111111111111111111111111111111");onresize=function(){var w,h,cZ=innerWidth,cY=innerHeight,er=cZ/cY,bK=E/X,s=D.querySelector("#cc").style;er<=bK?(w=cZ,h=w/bK):(h=cY,w=h*bK),s.width=(w-100)+"px",s.height=(h-100)+"px"};var aN={},_i={};onkeydown=function(e){e.preventDefault();G.paused||((!_i[38]&&38==e.keyCode||!_i[87]&&87==e.keyCode)&&P.ac(1),_i[32]||32!=e.keyCode||P.dr(),80===e.keyCode&&G.pause(),_i[e.keyCode]=1,cP(e))},onkeyup=function(e){G.paused||(32==e.keyCode&&P.dg(),_i[e.keyCode]=0,cP(e))},onclick=function(e){var _z=C.getBoundingClientRect();if(G.L){var x=E*(e.pageX-_z.left)/_z.width,y=X*(e.pageY-_z.top)/_z.height;G.L.click(x,y)}};var ag=function(e){P.K=0,G.ag=1,aN={};for(var _z=C.getBoundingClientRect(),i=0;i<e.touches.length;i++){var x=E*(e.touches[i].pageX-_z.left)/_z.width,y=X*(e.touches[i].pageY-_z.top)/_z.height,z=~~(x/(E/4));G.L||(y<50?G.pause():z?1==z?P.K=1:2==z?P.dr():3==z&&P.ac(1):P.K=-1,aN[z]=1)}P.aA&&!aN[2]&&P.dg()};addEventListener("touchstart",function(e){onclick(e.touches[0])}),addEventListener("touchstart",ag),addEventListener("touchmove",ag),addEventListener("touchend",ag),onload=function(){C=D.querySelector("canvas"),C.width=E,C.height=X,R=C.getContext("2d");var p=CanvasRenderingContext2D.prototype;Object.getOwnPropertyNames(p).forEach(function(n){R[n]&&R[n].call&&(w[n]=p[n].bind(R))}),onresize(),new ej,onblur=G.pause};</script>