diff --git a/docs/pcjs/demos/pc-dbg.js b/docs/pcjs/demos/pc-dbg.js index 9043f45bf4..92c0073463 100644 --- a/docs/pcjs/demos/pc-dbg.js +++ b/docs/pcjs/demos/pc-dbg.js @@ -10,178 +10,178 @@ function Ba(){if(null==Aa){var a=!1;if(window)try{window.localStorage.setItem("P function Ea(a){if(window){var b=window?window.navigator.userAgent:"";return"iOS"==a&&b.match(/(iPod|iPhone|iPad)/)&&b.match(/AppleWebKit/)||"MSIE"==a&&b.match(/(MSIE|Trident)/)||0<=b.indexOf(a)?!0:!1}return!1}function Fa(a,b,c){function d(){--a;0<=a&&(b()||(a=0));0=this.x&&a=this.y&&b=c>>2);d?(b=new pb(a.x,a.y,a.Kc,a.Uc*b/c|0),a.y+=b.Uc,a.Uc-=b.Uc):(b=new pb(a.x,a.y,a.Kc*b/c|0,a.Uc),a.x+=b.Kc,a.Kc-=b.Kc);return b}k=nb.prototype; -k.Fb=function(a,b,c){return this.Ba&&this.Ba.Fb(a,b,c)||this.N&&this.N.Fb(a,b,c)||this.Ha&&this.Ha.Fb(a,b,c)||this.Z&&this.Z.Fb(a,b,c)?!0:this.parent.Fb.call(this,a,b,c)};k.xc=function(a,b,c,d){this.Ba=a;this.ha=b;this.N=c;this.Z=d;this.Ha=rb(a,"Keyboard")};k.fc=function(a,b){b||tb();return!0};k.ec=function(){return!0};k.lj=function(a,b){a.button||(this.Yg=b?0:-1,ub(this,a,b))};k.Zl=function(a){ub(this,a)}; -function ub(a,b,c){var d=1280/a.canvas.offsetWidth,e=720/a.canvas.offsetHeight,f=a.canvas.getBoundingClientRect(),d=(b.clientX-f.left)*d|0;b=(b.clientY-f.top)*e|0;null==c&&(a.Yg||(a.Yg=Math.abs(a.ie-d)>Math.abs(a.je-b)?1:2),1==a.Yg?b=a.je:2==a.Yg&&(d=a.ie));a.ie=d;a.je=b;if(0<=d&&1280>d&&0<=b&&720>b){a:{c=d;if(960>c&&a.Za&&a.Za.Ff)for(f=0;f>xb&yb))*a.ha.Bb-1;0d&&(f=d);c=f;break a}c=q}c!=q&&(c&=-16,c!=a.il&&(zb(a,c,!0),a.il=c))}} -k.dd=function(){if(this.canvas&&this.Yh&&this.ve&&this.ef){var a=this.ve.width,b=this.ve.height;this.ef.fillStyle="black";this.ef.fillRect(0,0,a,b);Ab(this,18,this.ve,this.ef,this.canvas.style.color);Bb(this,3);u(this,"CPU");u(this,"Target");u(this,"Current");Cb(this);u(this,this.N.za);u(this,Db(this.N));u(this,Eb(this.N));Cb(this,2);Bb(this,8);this.xp=16;this.yp=4;u(this,"AX",this.N.G,2);u(this,"DS",this.N.Ya.va,0,1);u(this,"DX",this.N.J,2);u(this,"SI",this.N.F,0,1.5);u(this,"BX",this.N.C,2);u(this, -"ES",this.N.Ja.va,0,1);u(this,"CX",this.N.I,2);u(this,"DI",this.N.D,0,1.5);u(this,"CS",Fb(this.N),2);u(this,"SS",this.N.xa.va,0,1);u(this,"IP",v(this.N),2);u(this,"SP",w(this.N),0,1.5);var c;u(this,"PS",c=Gb(this.N),2);u(this,"BP",this.N.H,0,1.5);Bb(this,9);u(this,"V"+(c&Hb?1:0));u(this,"D"+(c&Ib?1:0));u(this,"I"+(c&Jb?1:0));u(this,"T"+(c&Kb?1:0));u(this,"S"+(c&Lb?1:0));u(this,"Z"+(c&Mb?1:0));u(this,"A"+(c&Nb?1:0));u(this,"P"+(c&Ob?1:0));u(this,"C"+(c&Pb?1:0),0,2);zb(this,this.il);this.Yh.drawImage(this.ve, -0,0,a,b,this.qs,this.ts,this.Ir,this.Lr)}};function zb(a,b,c){if(a.Yh&&a.ve&&a.ef){var d=a.ve.width;a.ef.fillStyle="black";a.ef.fillRect(0,360,d,360);Ab(a,378,a.ve,a.ef,a.canvas.style.color);Bb(a,24);if(null==b)u(a,"Mouse over memory to dump");else{u(a,"0x"+ea(b),null,0,1);for(var e=1;16>=e;e++){for(var f="",g=1;8>=g;g++){var h=Qb(a.ha,b++);u(a,l(h),null,1);f+=32<=h&&128>h?String.fromCharCode(h):"."}u(a,f,null,0,1)}}c&&a.Yh.drawImage(a.ve,0,360,d,360,a.os,a.rs,a.Gr,a.Jr)}} -function Ab(a,b,c,d,e){var f,g=a.Hq=10;a.ed=g;a.Df=b;a.Yf=a.Rl=18;f||(f=a.Nl||a.Rl+"px Monaco, Lucida Console, Courier New");a.li=a.Nl=f;c&&(a.On=c);d&&(a.Cd=d,a.Qn=e||"white")}function Bb(a,b){a.nj=a.On.width/b|0}function Cb(a,b){a.ed=a.Hq;a.Df+=(a.Yf+2)*(b||1)}function u(a,b,c,d,e){a.Cd.font=a.li;a.Cd.fillStyle=a.Qn;a.Cd.fillText(b,a.ed,a.Df);a.ed+=a.nj;null!=c&&(b=c.toString(),16==a.xp&&(b="0x"+ea(c,a.yp)),a.Cd.fillText(b,a.ed,a.Df),a.ed+=a.nj);d&&(a.ed+=a.nj*d);e&&Cb(a,e)} +n.prototype={constructor:n,parent:null,toString:function(){return this.name?this.name:this.id||this.type},Fb:function(a,b,c){switch(b){case "clear":return this.qa[b]||(this.qa[b]=c,c.onclick=function(a){return function(){a.qa.print&&(a.qa.print.value="")}}(this)),!0;case "print":return this.qa[b]||(this.Ng=this.qa[b]=c,c.value="",this.R=function(a){return function(b,c){8192=this.x&&a=this.y&&b=c>>2);d?(b=new pb(a.x,a.y,a.Lc,a.Vc*b/c|0),a.y+=b.Vc,a.Vc-=b.Vc):(b=new pb(a.x,a.y,a.Lc*b/c|0,a.Vc),a.x+=b.Lc,a.Lc-=b.Lc);return b}k=nb.prototype; +k.Fb=function(a,b,c){return this.Ba&&this.Ba.Fb(a,b,c)||this.N&&this.N.Fb(a,b,c)||this.Ha&&this.Ha.Fb(a,b,c)||this.Z&&this.Z.Fb(a,b,c)?!0:this.parent.Fb.call(this,a,b,c)};k.yc=function(a,b,c,d){this.Ba=a;this.ha=b;this.N=c;this.Z=d;this.Ha=rb(a,"Keyboard")};k.fc=function(a,b){b||tb();return!0};k.ec=function(){return!0};k.nj=function(a,b){a.button||(this.Zg=b?0:-1,ub(this,a,b))};k.$l=function(a){ub(this,a)}; +function ub(a,b,c){var d=1280/a.canvas.offsetWidth,e=720/a.canvas.offsetHeight,f=a.canvas.getBoundingClientRect(),d=(b.clientX-f.left)*d|0;b=(b.clientY-f.top)*e|0;null==c&&(a.Zg||(a.Zg=Math.abs(a.ie-d)>Math.abs(a.je-b)?1:2),1==a.Zg?b=a.je:2==a.Zg&&(d=a.ie));a.ie=d;a.je=b;if(0<=d&&1280>d&&0<=b&&720>b){a:{c=d;if(960>c&&a.Za&&a.Za.Ff)for(f=0;f>xb&yb))*a.ha.Bb-1;0d&&(f=d);c=f;break a}c=q}c!=q&&(c&=-16,c!=a.jl&&(zb(a,c,!0),a.jl=c))}} +k.ed=function(){if(this.canvas&&this.Zh&&this.ve&&this.ef){var a=this.ve.width,b=this.ve.height;this.ef.fillStyle="black";this.ef.fillRect(0,0,a,b);Ab(this,18,this.ve,this.ef,this.canvas.style.color);Bb(this,3);u(this,"CPU");u(this,"Target");u(this,"Current");Cb(this);u(this,this.N.za);u(this,Db(this.N));u(this,Eb(this.N));Cb(this,2);Bb(this,8);this.yp=16;this.zp=4;u(this,"AX",this.N.G,2);u(this,"DS",this.N.Ya.va,0,1);u(this,"DX",this.N.J,2);u(this,"SI",this.N.F,0,1.5);u(this,"BX",this.N.C,2);u(this, +"ES",this.N.Ja.va,0,1);u(this,"CX",this.N.I,2);u(this,"DI",this.N.D,0,1.5);u(this,"CS",Fb(this.N),2);u(this,"SS",this.N.xa.va,0,1);u(this,"IP",v(this.N),2);u(this,"SP",w(this.N),0,1.5);var c;u(this,"PS",c=Gb(this.N),2);u(this,"BP",this.N.H,0,1.5);Bb(this,9);u(this,"V"+(c&Hb?1:0));u(this,"D"+(c&Ib?1:0));u(this,"I"+(c&Jb?1:0));u(this,"T"+(c&Kb?1:0));u(this,"S"+(c&Lb?1:0));u(this,"Z"+(c&Mb?1:0));u(this,"A"+(c&Nb?1:0));u(this,"P"+(c&Ob?1:0));u(this,"C"+(c&Pb?1:0),0,2);zb(this,this.jl);this.Zh.drawImage(this.ve, +0,0,a,b,this.rs,this.us,this.Jr,this.Mr)}};function zb(a,b,c){if(a.Zh&&a.ve&&a.ef){var d=a.ve.width;a.ef.fillStyle="black";a.ef.fillRect(0,360,d,360);Ab(a,378,a.ve,a.ef,a.canvas.style.color);Bb(a,24);if(null==b)u(a,"Mouse over memory to dump");else{u(a,"0x"+ea(b),null,0,1);for(var e=1;16>=e;e++){for(var f="",g=1;8>=g;g++){var h=Qb(a.ha,b++);u(a,l(h),null,1);f+=32<=h&&128>h?String.fromCharCode(h):"."}u(a,f,null,0,1)}}c&&a.Zh.drawImage(a.ve,0,360,d,360,a.ps,a.ss,a.Hr,a.Kr)}} +function Ab(a,b,c,d,e){var f,g=a.Iq=10;a.fd=g;a.Df=b;a.Yf=a.Sl=18;f||(f=a.Ol||a.Sl+"px Monaco, Lucida Console, Courier New");a.mi=a.Ol=f;c&&(a.Pn=c);d&&(a.Dd=d,a.Rn=e||"white")}function Bb(a,b){a.oj=a.Pn.width/b|0}function Cb(a,b){a.fd=a.Iq;a.Df+=(a.Yf+2)*(b||1)}function u(a,b,c,d,e){a.Dd.font=a.mi;a.Dd.fillStyle=a.Rn;a.Dd.fillText(b,a.fd,a.Df);a.fd+=a.oj;null!=c&&(b=c.toString(),16==a.yp&&(b="0x"+ea(c,a.zp)),a.Dd.fillText(b,a.fd,a.Df),a.fd+=a.oj);d&&(a.fd+=a.oj*d);e&&Cb(a,e)} function tb(){for(var a=!1,b=db(window.document,"pcjs","panel"),c=0;c=this.of?12:24>=this.of?14:15;this.Bb=1<>2;this.Da=this.Bb-1;this.Cg=this.Xi/this.Bb|0;this.sc=this.Cg-1;this.Md=[];this.Nd=[];this.Sg=this.Tg=!1;this.Lj();jb(this)}Ya(n,Rb);var wb=131071,xb=18,yb=1023;k=Rb.prototype; -k.Lj=function(){this.ma=Array(this.Cg);for(var a=0;a>>a.Ga;0a.Bb?a.Bb:c;if(g&&g.size){if(g.type==d&&g.X==e){if(b+c<=g.ub)return g.Pi+=g.ub-b,g.ub=b,!0;if(b>=g.ub+g.Pi){t=g.size-(b-h);t>c&&(t=c);g.Pi=b-g.ub+t;c-=t;b=h+a.Bb;continue}}return Wb(1,b,c)}g=a.ma[f++]=new Tb(b,t,a.Bb,d,e);Sb(g,a.N,a.Z,a.Bb);c-=t;b=h+a.Bb}return 0>>this.Ga;0>>a.Ga;0>>this.Ga].Eb(a&this.Da)};function Qb(a,b){return a.ma[(b&a.Wa)>>>a.Ga].sh(b&a.Da)} -k.la=function(a){var b=a&this.Da;a=(a&this.Wa)>>>this.Ga;return b!=this.Da?this.ma[a].Lk(b):this.ma[a++].Eb(b)|this.ma[a&this.sc].Eb(0)<<8};function Yb(a,b){var c=b&a.Da,d=(b&a.Wa)>>>a.Ga;return c!=a.Da?a.ma[d].Mk(c):a.ma[d++].sh(c)|a.ma[d&a.sc].sh(0)<<8}k.Ug=function(a){var b=a&this.Da;a=(a&this.Wa)>>>this.Ga;if(b>>c|this.ma[a+1&this.sc].td(0)<<32-c};k.ud=function(a,b){this.ma[(a&this.Wa)>>>this.Ga].Ib(a&this.Da,b&255)}; -k.Qa=function(a,b){var c=a&this.Da,d=(a&this.Wa)>>>this.Ga;c!=this.Da?this.ma[d].Wk(c,b&65535):(this.ma[d++].Ib(c,b&255),this.ma[d&this.sc].Ib(0,b>>8&255))};function Zb(a,b,c){var d=b&a.Da;b=(b&a.Wa)>>>a.Ga;d!=a.Da?a.ma[b].Xk(d,c&65535):(a.ma[b++].og(d,c&255),a.ma[b&a.sc].og(0,c>>8&255))} -k.yn=function(a,b){var c=a&this.Da,d=(a&this.Wa)>>>this.Ga;if(c>>32-f)}}; -function $b(a){for(var b=0,c=[],d=0;d>1),this.oa=new Int32Array(this.buffer,0,c>>2),this.Pe(lc?oc:pc);else{this.oa=Array(c>>2);for(e=0;e=this.of?12:24>=this.of?14:15;this.Bb=1<>2;this.Ea=this.Bb-1;this.Cg=this.Yi/this.Bb|0;this.tc=this.Cg-1;this.Md=[];this.Nd=[];this.Tg=this.Ug=!1;this.Mj();jb(this)}Ya(n,Rb);var wb=131071,xb=18,yb=1023;k=Rb.prototype; +k.Mj=function(){this.ma=Array(this.Cg);for(var a=0;a>>a.Ga;0a.Bb?a.Bb:c;if(g&&g.size){if(g.type==d&&g.X==e){if(b+c<=g.ub)return g.Qi+=g.ub-b,g.ub=b,!0;if(b>=g.ub+g.Qi){t=g.size-(b-h);t>c&&(t=c);g.Qi=b-g.ub+t;c-=t;b=h+a.Bb;continue}}return Wb(1,b,c)}g=a.ma[f++]=new Tb(b,t,a.Bb,d,e);Sb(g,a.N,a.Z,a.Bb);c-=t;b=h+a.Bb}return 0>>this.Ga;0>>a.Ga;0>>this.Ga].Eb(a&this.Ea)};function Qb(a,b){return a.ma[(b&a.Wa)>>>a.Ga].th(b&a.Ea)} +k.la=function(a){var b=a&this.Ea;a=(a&this.Wa)>>>this.Ga;return b!=this.Ea?this.ma[a].Mk(b):this.ma[a++].Eb(b)|this.ma[a&this.tc].Eb(0)<<8};function Yb(a,b){var c=b&a.Ea,d=(b&a.Wa)>>>a.Ga;return c!=a.Ea?a.ma[d].Nk(c):a.ma[d++].th(c)|a.ma[d&a.tc].th(0)<<8}k.Vg=function(a){var b=a&this.Ea;a=(a&this.Wa)>>>this.Ga;if(b>>c|this.ma[a+1&this.tc].ud(0)<<32-c};k.vd=function(a,b){this.ma[(a&this.Wa)>>>this.Ga].Ib(a&this.Ea,b&255)}; +k.Qa=function(a,b){var c=a&this.Ea,d=(a&this.Wa)>>>this.Ga;c!=this.Ea?this.ma[d].Xk(c,b&65535):(this.ma[d++].Ib(c,b&255),this.ma[d&this.tc].Ib(0,b>>8&255))};function Zb(a,b,c){var d=b&a.Ea;b=(b&a.Wa)>>>a.Ga;d!=a.Ea?a.ma[b].Yk(d,c&65535):(a.ma[b++].og(d,c&255),a.ma[b&a.tc].og(0,c>>8&255))} +k.zn=function(a,b){var c=a&this.Ea,d=(a&this.Wa)>>>this.Ga;if(c>>32-f)}}; +function $b(a){for(var b=0,c=[],d=0;d>1),this.oa=new Int32Array(this.buffer,0,c>>2),this.Pe(lc?oc:pc);else{this.oa=Array(c>>2);for(e=0;e>1]}function Ac(a){return this.Of.getInt32(a,!0)}function Bc(a){return a&3?this.ic[a]|this.ic[a+1]<<8|this.ic[a+2]<<16|this.ic[a+3]<<24:this.oa[a>>2]}function Cc(a,b){this.ic[a]=b;this.Ra=!0}function Dc(a,b){this.ic[a]=b;this.Ra=!0}function Ec(a,b){this.Of.setUint16(a,b,!0);this.Ra=!0}function Fc(a,b){a&1?(this.ic[a]=b,this.ic[a+1]=b>>8):this.ll[a>>1]=b;this.Ra=!0}function Ic(a,b){this.Of.setInt32(a,b,!0);this.Ra=!0} +function zc(a){return a&1?this.ic[a]|this.ic[a+1]<<8:this.ml[a>>1]}function Ac(a){return this.Of.getInt32(a,!0)}function Bc(a){return a&3?this.ic[a]|this.ic[a+1]<<8|this.ic[a+2]<<16|this.ic[a+3]<<24:this.oa[a>>2]}function Cc(a,b){this.ic[a]=b;this.Ra=!0}function Dc(a,b){this.ic[a]=b;this.Ra=!0}function Ec(a,b){this.Of.setUint16(a,b,!0);this.Ra=!0}function Fc(a,b){a&1?(this.ic[a]=b,this.ic[a+1]=b>>8):this.ml[a>>1]=b;this.Ra=!0}function Ic(a,b){this.Of.setInt32(a,b,!0);this.Ra=!0} function Kc(a,b){a&3?(this.ic[a]=b,this.ic[a+1]=b>>8,this.ic[a+2]=b>>16,this.ic[a+3]=b>>24):this.oa[a>>2]=b;this.Ra=!0} var qc=[function(a){return this.oa[a>>2]>>>((a&3)<<3)&255},function(a){var b=a>>2;a=(a&3)<<3;var c=this.oa[b]>>a;return 24>a?c&65535:c&255|(this.oa[b+1]&255)<<8},function(a){var b=a>>2;a=(a&3)<<3;var c=this.oa[b];a&&(c=c>>>a|this.oa[b+1]<<32-a);return c},function(a,b){var c=a>>2,d=(a&3)<<3;this.oa[c]=this.oa[c]&~(255<>2,d=(a&3)<<3;24>d?this.oa[c]=this.oa[c]&~(65535<>8);this.Ra= -!0},function(a,b){var c=a>>2,d=(a&3)<<3;if(d){var e=-1<>>32-d}else this.oa[c]=b;this.Ra=!0}],Nc=[function(a){Lc(this.Z,this.ub+a);return this.sh(a)},function(a){Lc(this.Z,this.ub+a)||Lc(this.Z,this.ub+a+1);return this.Mk(a)},function(a){Lc(this.Z,this.ub+a)||Lc(this.Z,this.ub+a+1)||Lc(this.Z,this.ub+a+2)||Lc(this.Z,this.ub+a+3);return this.th(a)},function(a,b){Mc(this.Z,this.ub+a);this.og(a,b)},function(a,b){Mc(this.Z,this.ub+a)||Mc(this.Z, -this.ub+a+1);this.Xk(a,b)},function(a,b){Mc(this.Z,this.ub+a)||Mc(this.Z,this.ub+a+1)||Mc(this.Z,this.ub+a+2)||Mc(this.Z,this.ub+a+3);this.Cn(a,b)}];if(mb)var pc=[wc,yc,Ac,Cc,Ec,Ic],oc=[xc,zc,Bc,Dc,Fc,Kc]; -Tb.prototype={constructor:Tb,parent:null,save:function(){var a,b;if(this.X)a=null;else if(mb)for(a=Array(this.size>>2),b=0;b=a.U.cg&&(a.U.cg+=a.U.bg,c=!0);0<=a.U.dg&&a.U.dg<=Yc(a)&&(a.U.bg=a.U.dg=-1,Uc(a),a.lb(),c=!0);c&&a.R(Yc(a)+" cycles: checksum="+ea(a.U.ah))}} -function Zc(a,b,c,d){a.qa[b]&&(void 0===d&&(d=4),void 0===c&&(lb(a,"Register "+b+" is invalid"),a.lb()),c=!a.da.jb||a.da.Fl?ea(c,d):"----".substr(0,d),a.qa[b].textContent!=c&&(a.qa[b].textContent=c))}k.dd=function(){this.Ba&&this.Ba.ee&&this.Ba.ee.dd()}; -function $c(a){a.video&&ad(a.video);if(a.Ba&&a.Ba.ee&&(a=a.Ba.ee,a.fo)){Ab(a,18,a.Gg,a.Rn,a.canvas.style.color);if(a.Pr){var b=a.ha,c=a.Za,d,e;null==d&&(d=0);null==e&&(e=b.Xi-d|0);null==c&&(c={kj:0,Dg:0,Si:Array(b.Cg)});var f=d>>>b.Ga;d=d+e-1>>>b.Ga;c.kj=0;for(c.Dg=0;f<=d;){e=b.ma[f];c.kj+=e.size;if(e.size){var g=f,g=g|e.type<<28;c.Si[c.Dg++]=g}f++}a.Za=c;a.kn=a.Za.Dg*a.ha.Bb/691200;e=0;a.Za.hj=0;a.Za.Gf||(a.Za.Gf=[]);d=-1;for(var g=0,h=-1,b=0;b>>28;f&=wb;if(c!=d||f!= -h+1){if(h=b-g)d=a.Za.Gf[a.Za.hj++]=g|h<>xb&yb,a.Za.Ff.push(qb(c,d,f,0==b)),f-=d;for(b=0;b>28&7;f=f>>xb&yb;d=e=a.Za.Ff[b];g=a.Rn;(h=sc[c])||(h=new ob);g.strokeStyle="black";g.strokeRect(d.x,d.y,d.Kc,d.Uc);g.fillStyle="string"==typeof h?h:h.toString();g.fillRect(d.x,d.y,d.Kc, -d.Uc);d=a;g=e;d.li=d.Nl;d.Yf=d.Rl;e=g.x+(g.Kc>>1);var h=g.y+(g.Uc>>1),t=g.Uc;g.Kc>1;d.Df+=(d.Yf>>1)-2;u(d,c);d.Ll&&(d.Cd.restore(),d.Ll=!1)}}}else u(a,"This space intentionally left blank");a.Yh.drawImage(a.Gg,0,0,a.Gg.width,a.Gg.height,a.ps, -a.ss,a.Hr,a.Kr);a.fo=!1}}k.Nc=function(){this.video&&this.video.Nc()}; -k.Fb=function(a,b,c){var d=this;a=!1;switch(b){case "run":this.qa[b]=c;c.onclick=function(){var a;if(a=d.Ba)if(a=d.Ba,a.da.$b)a=!0;else{var b=null,c,h=Za(a.id);for(c=0;cc&&(c=60);2>c&&(c=2);var d=1;b&&1a.U.oi&&(c=Math.round(c/a.U.be));return c}function Tc(a){a.U.Ge=0;a.rf=a.Ke=a.Yc=a.A=0;Uc(a);cd(a,1)} -function Eb(a){return a.da.jb&&a.U.Ge?a.U.Ge.toFixed(2)+"Mhz":"Stopped"}function Db(a){return a.U.Zg.toFixed(2)+"Mhz"}function cd(a,b,c){if(void 0!==b){.8>a.U.Ge/a.U.Zg&&(b=1);a.U.be=b;b=a.U.oi*a.U.be;if(a.U.Zg!=b){a.U.Zg=b;b=Db(a);var d=a.qa.setSpeed;d&&(d.textContent=b);a.R("target speed: "+b)}c&&a.Nc()}hd(a,a.Ke);a.Ke=0;a.U.ag=pa();a.U.nf=0;id(a)} -k.uf=function(a){if(fb(this,!0)){if(!this.da.jb){cd(this);this.Ba&&this.Ba.start(this.U.ag,Yc(this));this.da.jb=!0;this.da.Cj=!0;this.fa&&jd(this.fa);var b=this.qa.run;b&&(b.textContent="Halt");this.dd(!0);a&&this.Nc()}this.U.Sj>=this.U.Gd&&id(this,!0);this.U.fh=0;this.U.pi=pa();this.U.nf&&(a=this.U.pi-this.U.nf,a>this.U.$l&&(this.U.ag+=a,this.U.ag>this.U.pi&&(this.U.ag=this.U.pi)));try{do{var c=this.da.Rf?1:this.U.vp;if(this.fa){kd(this.fa);var d=this.fa;a=c;var e=d.Jb[0];if(e.kf){var f=(Yc(d.N, -d.Ce)-e.sd)/d.yi|0,g=ld(d,0)-f;6==e.mode&&(g-=f);var h=g*d.yi|0;6==e.mode&&(h>>=1);a>h&&(a=h)}var c=a,t=this.fa;a=c;if(t.ea&&t.ea[11]&64){var r=t.hg-Yc(t.N,t.Ce);0r&&(a=r)}c=a}this.ng(c);var B=this.Yc-this.A;this.Ke+=B;this.U.fh+=B;hd(this,0,!0);Xc(this,B);this.U.eh-=B;0>=this.U.eh&&(this.U.eh+=this.U.dm,$c(this));this.U.dh-=B;0>=this.U.dh&&(this.U.dh+=this.U.cm,this.dd());this.U.eg-=B;if(0>=this.U.eg){this.U.eg+=this.U.Rj;break}}while(this.da.jb)}catch(J){this.lb();Vc(this);this.Ba&&this.Ba.stop(pa(), -Yc(this));fb(this,!1);lb(this,J.message);return}c=setTimeout;d=this.Cp;this.U.nf=pa();e=this.U.$l;this.U.fh&&(e=Math.round(e*this.U.fh/this.U.Rj));e-=this.U.nf-this.U.pi;if(f=this.U.nf-this.U.ag)this.U.Ge=Math.round(this.Ke/(10*f))/100,864E5<=f&&(this.rf=0,this.fa&&kd(this.fa,!0),cd(this));if(0>e||this.U.Gethis.rb?this.ta+a:Cd.call(this,0,0,c)}function Cd(a,b,c){c||wd.call(this.N,13,0);return q} +!0},function(a,b){var c=a>>2,d=(a&3)<<3;if(d){var e=-1<>>32-d}else this.oa[c]=b;this.Ra=!0}],Nc=[function(a){Lc(this.Z,this.ub+a);return this.th(a)},function(a){Lc(this.Z,this.ub+a)||Lc(this.Z,this.ub+a+1);return this.Nk(a)},function(a){Lc(this.Z,this.ub+a)||Lc(this.Z,this.ub+a+1)||Lc(this.Z,this.ub+a+2)||Lc(this.Z,this.ub+a+3);return this.uh(a)},function(a,b){Mc(this.Z,this.ub+a);this.og(a,b)},function(a,b){Mc(this.Z,this.ub+a)||Mc(this.Z, +this.ub+a+1);this.Yk(a,b)},function(a,b){Mc(this.Z,this.ub+a)||Mc(this.Z,this.ub+a+1)||Mc(this.Z,this.ub+a+2)||Mc(this.Z,this.ub+a+3);this.Dn(a,b)}];if(mb)var pc=[wc,yc,Ac,Cc,Ec,Ic],oc=[xc,zc,Bc,Dc,Fc,Kc]; +Tb.prototype={constructor:Tb,parent:null,save:function(){var a,b;if(this.X)a=null;else if(mb)for(a=Array(this.size>>2),b=0;b=a.U.cg&&(a.U.cg+=a.U.bg,c=!0);0<=a.U.dg&&a.U.dg<=Yc(a)&&(a.U.bg=a.U.dg=-1,Uc(a),a.lb(),c=!0);c&&a.R(Yc(a)+" cycles: checksum="+ea(a.U.bh))}} +function Zc(a,b,c,d){a.qa[b]&&(void 0===d&&(d=4),void 0===c&&(lb(a,"Register "+b+" is invalid"),a.lb()),c=!a.da.jb||a.da.Gl?ea(c,d):"----".substr(0,d),a.qa[b].textContent!=c&&(a.qa[b].textContent=c))}k.ed=function(){this.Ba&&this.Ba.ee&&this.Ba.ee.ed()}; +function $c(a){a.video&&ad(a.video);if(a.Ba&&a.Ba.ee&&(a=a.Ba.ee,a.ho)){Ab(a,18,a.Gg,a.Sn,a.canvas.style.color);if(a.Qr){var b=a.ha,c=a.Za,d,e;null==d&&(d=0);null==e&&(e=b.Yi-d|0);null==c&&(c={lj:0,Dg:0,Ti:Array(b.Cg)});var f=d>>>b.Ga;d=d+e-1>>>b.Ga;c.lj=0;for(c.Dg=0;f<=d;){e=b.ma[f];c.lj+=e.size;if(e.size){var g=f,g=g|e.type<<28;c.Ti[c.Dg++]=g}f++}a.Za=c;a.ln=a.Za.Dg*a.ha.Bb/691200;e=0;a.Za.ij=0;a.Za.Gf||(a.Za.Gf=[]);d=-1;for(var g=0,h=-1,b=0;b>>28;f&=wb;if(c!=d||f!= +h+1){if(h=b-g)d=a.Za.Gf[a.Za.ij++]=g|h<>xb&yb,a.Za.Ff.push(qb(c,d,f,0==b)),f-=d;for(b=0;b>28&7;f=f>>xb&yb;d=e=a.Za.Ff[b];g=a.Sn;(h=sc[c])||(h=new ob);g.strokeStyle="black";g.strokeRect(d.x,d.y,d.Lc,d.Vc);g.fillStyle="string"==typeof h?h:h.toString();g.fillRect(d.x,d.y,d.Lc, +d.Vc);d=a;g=e;d.mi=d.Ol;d.Yf=d.Sl;e=g.x+(g.Lc>>1);var h=g.y+(g.Vc>>1),t=g.Vc;g.Lc>1;d.Df+=(d.Yf>>1)-2;u(d,c);d.Ml&&(d.Dd.restore(),d.Ml=!1)}}}else u(a,"This space intentionally left blank");a.Zh.drawImage(a.Gg,0,0,a.Gg.width,a.Gg.height,a.qs, +a.ts,a.Ir,a.Lr);a.ho=!1}}k.Oc=function(){this.video&&this.video.Oc()}; +k.Fb=function(a,b,c){var d=this;a=!1;switch(b){case "run":this.qa[b]=c;c.onclick=function(){var a;if(a=d.Ba)if(a=d.Ba,a.da.$b)a=!0;else{var b=null,c,h=Za(a.id);for(c=0;cc&&(c=60);2>c&&(c=2);var d=1;b&&1a.U.pi&&(c=Math.round(c/a.U.be));return c}function Tc(a){a.U.Ge=0;a.rf=a.Ke=a.Zc=a.A=0;Uc(a);cd(a,1)} +function Eb(a){return a.da.jb&&a.U.Ge?a.U.Ge.toFixed(2)+"Mhz":"Stopped"}function Db(a){return a.U.$g.toFixed(2)+"Mhz"}function cd(a,b,c){if(void 0!==b){.8>a.U.Ge/a.U.$g&&(b=1);a.U.be=b;b=a.U.pi*a.U.be;if(a.U.$g!=b){a.U.$g=b;b=Db(a);var d=a.qa.setSpeed;d&&(d.textContent=b);a.R("target speed: "+b)}c&&a.Oc()}hd(a,a.Ke);a.Ke=0;a.U.ag=pa();a.U.nf=0;id(a)} +k.uf=function(a){if(fb(this,!0)){if(!this.da.jb){cd(this);this.Ba&&this.Ba.start(this.U.ag,Yc(this));this.da.jb=!0;this.da.Dj=!0;this.fa&&jd(this.fa);var b=this.qa.run;b&&(b.textContent="Halt");this.ed(!0);a&&this.Oc()}this.U.Tj>=this.U.Hd&&id(this,!0);this.U.gh=0;this.U.qi=pa();this.U.nf&&(a=this.U.qi-this.U.nf,a>this.U.am&&(this.U.ag+=a,this.U.ag>this.U.qi&&(this.U.ag=this.U.qi)));try{do{var c=this.da.Rf?1:this.U.wp;if(this.fa){kd(this.fa);var d=this.fa;a=c;var e=d.Jb[0];if(e.kf){var f=(Yc(d.N, +d.Ce)-e.td)/d.zi|0,g=ld(d,0)-f;6==e.mode&&(g-=f);var h=g*d.zi|0;6==e.mode&&(h>>=1);a>h&&(a=h)}var c=a,t=this.fa;a=c;if(t.ea&&t.ea[11]&64){var r=t.hg-Yc(t.N,t.Ce);0r&&(a=r)}c=a}this.ng(c);var B=this.Zc-this.A;this.Ke+=B;this.U.gh+=B;hd(this,0,!0);Xc(this,B);this.U.fh-=B;0>=this.U.fh&&(this.U.fh+=this.U.em,$c(this));this.U.eh-=B;0>=this.U.eh&&(this.U.eh+=this.U.dm,this.ed());this.U.eg-=B;if(0>=this.U.eg){this.U.eg+=this.U.Sj;break}}while(this.da.jb)}catch(J){this.lb();Vc(this);this.Ba&&this.Ba.stop(pa(), +Yc(this));fb(this,!1);lb(this,J.message);return}c=setTimeout;d=this.Dp;this.U.nf=pa();e=this.U.am;this.U.gh&&(e=Math.round(e*this.U.gh/this.U.Sj));e-=this.U.nf-this.U.qi;if(f=this.U.nf-this.U.ag)this.U.Ge=Math.round(this.Ke/(10*f))/100,864E5<=f&&(this.rf=0,this.fa&&kd(this.fa,!0),cd(this));if(0>e||this.U.Gethis.rb?this.ta+a:Cd.call(this,0,0,c)}function Cd(a,b,c){c||wd.call(this.N,13,0);return q} function Ed(a,b,c){return a+b<=this.rb?this.ta+a:Fd.call(this,0,0,c)}function Gd(a,b,c){return a+b>this.rb?this.ta+a:Fd.call(this,0,0,c)}function Fd(a,b,c){c||wd.call(this.N,13,0);return q} function Hd(a,b){var c=this.N,d=c.eb.ta,e=this.bb,f=c.eb.va;if(!b){if(768!=c.eb.type)return wd.call(c,10,a,!0),!1;c.Qa(c.eb.Pd+4,c.eb.nb&-769|256)}if(c.eb.load(a)==q)return!1;var g=c.eb.ta;if(b){if(768==c.eb.type)return wd.call(c,13,a,!0),!1;c.Qa(c.eb.Pd+4,c.eb.nb|=768);c.eb.type=768}c.Qa(d+14,v(c));c.Qa(d+16,Gb(c));c.Qa(d+18,c.G);c.Qa(d+20,c.I);c.Qa(d+22,c.J);c.Qa(d+24,c.C);c.Qa(d+26,w(c));c.Qa(d+28,c.H);c.Qa(d+30,c.F);c.Qa(d+32,c.D);c.Qa(d+34,c.Ja.va);c.Qa(d+36,c.ra.va);c.Qa(d+38,c.xa.va);c.Qa(d+ -40,c.Ya.va);var d=38,h=26;Id(c,c.la(g+16)|(b?16384:0));c.G=c.la(g+18);c.I=c.la(g+20);c.J=c.la(g+22);c.C=c.la(g+24);c.H=c.la(g+28);c.F=c.la(g+30);c.D=c.la(g+32);c.Ja.load(c.la(g+34));c.Ya.load(c.la(g+40));Jd(c,c.la(g+14),c.la(g+36));this.bb>13;if(6144<=h){M=c&3;if(M>a.bb){if(!1!==B&&!(N==a.bb||g&1024&&N<=a.bb)){t=q;break}C=e.Ka();Kd(e,e.Ka(),!0);x(e,C);a.ii=!0}C=!1}else if(1024==h)C=!0,E=-1,J=c,Mh||2048==(h&2560))){d||wd.call(e,13,c,!!g);t=q;break}}else if(3==a.id){if(!B||4096>h||2048==(h&2560)){d|| -wd.call(e,13,c,!0);t=q;break}}else if(4==a.id){if(!B||256!=h&&768!=h){d||wd.call(e,10,c,!0);t=q;break}}else if(6==a.id&&!(g&4096)&&768>13;80386>a.N.za||!(a.$h&64)?(a.qe=2,a.ja=65535):(a.qe=4,a.ja=-1)}else a.load=td,a.Xl=xd,a.Ic=zd,a.jc=Ad,a.rb=65535,a.bb=a.pc=0,a.Pd=q,a.qe=2,a.ja=65535;a.Vc=a.qe;a.na=a.ja} -function Nd(a){this.za=a.model||8088;var b=0;switch(this.za){default:b=4772727;break;case 80286:b=6E6;break;case 80386:b=16E6}Sc.call(this,a,b);this.bl=61442;this.Ah=nd;this.zh=4;this.ig=255;this.B=80286<=this.za?Od:Pd;this.Ua=Qd;this.el=Rd;this.fl=Sd;this.gl=Td;80186<=this.za&&(this.Ua=Qd.slice(),this.el=Rd.slice(),this.fl=Sd.slice(),this.ig=31,this.Ua[15]=Ud,this.Ua[96]=Vd,this.Ua[97]=Wd,this.Ua[98]=Xd,this.Ua[99]=Ud,this.Ua[100]=Ud,this.Ua[101]=Ud,this.Ua[102]=Ud,this.Ua[103]=Ud,this.Ua[104]=Yd, -this.Ua[105]=Zd,this.Ua[106]=$d,this.Ua[107]=ae,this.Ua[108]=be,this.Ua[109]=ce,this.Ua[110]=de,this.Ua[111]=ee,this.Ua[192]=fe,this.Ua[193]=ge,this.Ua[200]=he,this.Ua[201]=ie,this.Ua[241]=je,this.el[7]=ke,this.fl[7]=ke,80286<=this.za&&(this.bl=2,this.Ah|=28672,this.zh=0,this.Jn=le,this.Ua[15]=me,this.Ua[99]=ne,this.Ua[84]=oe));this.Ch=[];this.Dh=[];this.Yc=this.Eg=0;this.da.Pg=this.da.Dl=!1;this.tl=0;this.ma=[];this.Wa=this.Ga=this.Da=this.sc=0;pe(this)}Ya(Sc,Nd); -var Pd={zi:4,T:5,ua:6,aa:7,ba:8,M:9,O:11,P:12,pf:4,fm:60,gm:83,bc:3,Cb:9,qc:16,vi:1,km:19,mm:28,om:16,nm:21,lm:37,im:2,ak:9,jm:5,hm:33,ck:10,bk:8,kh:3,jh:15,Cm:51,Dm:1,Em:2,Fm:4,Bm:32,dk:15,Hm:15,cc:16,dc:4,Jm:11,Im:18,Gm:24,Nb:4,Km:2,ek:16,Lm:17,jk:18,Mm:19,ik:5,kk:6,Rm:2,Qm:8,Om:9,Pm:10,Nm:10,lk:10,mk:10,qm:80,sm:144,pm:86,rm:154,um:101,wm:165,tm:107,vm:171,Tm:70,Vm:113,Sm:76,Um:124,ym:80,Am:128,xm:86,zm:134,mh:3,lh:16,rk:10,qk:8,Wm:51,rc:8,Xm:17,Ym:36,yc:11,Zm:16,nh:10,Je:2,Yj:18,Zj:7,$j:15,fk:12, -gk:7,hk:11,nk:18,ok:7,pk:15,sk:15,tk:7,uk:13,yk:11,zk:7,Ak:8,$m:8,cn:12,an:18,bn:17,dn:15,wk:8,vk:20,xk:2,Dk:3,oh:9,Ck:5,Bk:11,Fk:4,Ek:17,en:11},Od={zi:0,T:0,ua:0,aa:0,ba:0,M:0,O:1,P:1,pf:3,fm:14,gm:16,bc:2,Cb:7,qc:7,vi:0,km:7,mm:13,om:7,nm:11,lm:16,im:3,ak:6,jm:2,hm:13,ck:5,bk:5,kh:2,jh:7,Cm:23,Dm:0,Em:1,Fm:3,Bm:17,dk:7,Hm:11,cc:7,dc:3,Jm:7,Im:11,Gm:15,Nb:2,Km:3,ek:7,Lm:8,jk:8,Mm:8,ik:4,kk:4,Rm:2,Qm:3,Om:5,Pm:2,Nm:3,lk:5,mk:3,qm:14,sm:22,pm:17,rm:25,um:17,wm:25,tm:20,vm:28,Tm:13,Vm:21,Sm:16,Um:24, -ym:13,Am:21,xm:16,zm:24,mh:2,lh:7,rk:5,qk:5,Wm:19,rc:5,Xm:5,Ym:17,yc:3,Zm:5,nh:3,Je:0,Yj:8,Zj:5,$j:9,fk:5,gk:5,hk:4,nk:5,ok:5,pk:4,sk:7,tk:5,uk:8,yk:3,zk:4,Ak:3,$m:11,cn:11,an:15,bn:15,dn:7,wk:5,vk:8,xk:0,Dk:2,oh:6,Ck:3,Bk:6,Fk:3,Ek:5,en:5};k=Nd.prototype;k.Lj=function(a,b,c,d){this.ma=a;this.Ga=b;this.Da=c;this.sc=d};k.reset=function(){this.da.jb&&this.lb();pe(this);Tc(this);this.da.pd=!1}; -function pe(a){a.G=0;a.C=0;a.I=0;a.J=0;a.H=0;a.F=0;a.D=0;a.Pb=a.uh=-1;a.Nh=0;a.gc=65520;a.Sc=0;a.Xe=1023;a.gg=0;a.ui=-1;a.ra=new qd(a,rd,"CS");a.Ya=new qd(a,2,"DS");a.Ja=new qd(a,2,"ES");a.xa=new qd(a,3,"SS");x(a,0);Kd(a,0);a.wn=new qd(a,0,"NULL");a.tb=a.Ya;a.cd=a.xa;a.S=a.Ca=0;a.ca=a.La=q;a.wb=0;Jd(a,0,65535);a.qe=a.ra.qe;a.ja=a.ra.ja;a.xd=z;a.wd=se;a.Ve=te;a.Gb=A;a.Pc=ue;a.gd=ve;a.Vc=a.ra.Vc;a.na=a.ra.na;2==a.Vc?(a.Vg=a.la,a.zn=a.Qa):(a.Vg=a.Ug,a.zn=a.yn);a.Ca&=-12289;if(80286<=a.za){a.Ec=0;a.We= -65535;a.bd=new qd(a,5,"LDT",!0);a.eb=new qd(a,4,"TSS",!0);a.Tb=new qd(a,6,"VER",!0);Jd(a,65520,61440);var b,c=v(a);b=a.ra;var d=-65536;80386>b.N.za&&(d&=16777215);b=b.ta=d;a.ka=b+c;a.sf=b+a.ra.rb}Id(a,0);we(a)}k.Ol=function(){var a=this.G+this.C+this.I+this.J+w(this)+this.H+this.F+this.D|0;return a=a+v(this)+Fb(this)+this.Ya.va+this.xa.va+this.Ja.va+Gb(this)|0};function xe(a,b,c,d){void 0!==d&&(void 0===a.Ch[b]&&(a.Ch[b]=[]),a.Ch[b].push([c,d]))} -function ye(a,b){var c=a.Ch[b];if(void 0!==c)for(var d=0;d>((a^a>>4)&15)&1?0:Ob}function Me(a){return(a.W^a.ia)&16?Nb:0} +40,c.Ya.va);var d=38,h=26;Id(c,c.la(g+16)|(b?16384:0));c.G=c.la(g+18);c.I=c.la(g+20);c.J=c.la(g+22);c.C=c.la(g+24);c.H=c.la(g+28);c.F=c.la(g+30);c.D=c.la(g+32);c.Ja.load(c.la(g+34));c.Ya.load(c.la(g+40));Jd(c,c.la(g+14),c.la(g+36));this.bb>13;if(6144<=h){M=c&3;if(M>a.bb){if(!1!==B&&!(N==a.bb||g&1024&&N<=a.bb)){t=q;break}C=e.Ka();Kd(e,e.Ka(),!0);x(e,C);a.ji=!0}C=!1}else if(1024==h)C=!0,E=-1,J=c,Mh||2048==(h&2560))){d||wd.call(e,13,c,!!g);t=q;break}}else if(3==a.id){if(!B||4096>h||2048==(h&2560)){d|| +wd.call(e,13,c,!0);t=q;break}}else if(4==a.id){if(!B||256!=h&&768!=h){d||wd.call(e,10,c,!0);t=q;break}}else if(6==a.id&&!(g&4096)&&768>13;80386>a.N.za||!(a.ai&64)?(a.qe=2,a.ja=65535):(a.qe=4,a.ja=-1)}else a.load=td,a.Yl=xd,a.Jc=zd,a.jc=Ad,a.rb=65535,a.bb=a.qc=0,a.Pd=q,a.qe=2,a.ja=65535;a.Wc=a.qe;a.na=a.ja} +function Nd(a){this.za=a.model||8088;var b=0;switch(this.za){default:b=4772727;break;case 80286:b=6E6;break;case 80386:b=16E6}Sc.call(this,a,b);this.cl=61442;this.Bh=nd;this.Ah=4;this.ig=255;this.B=80286<=this.za?Od:Pd;this.Ua=Qd;this.fl=Rd;this.gl=Sd;this.hl=Td;80186<=this.za&&(this.Ua=Qd.slice(),this.fl=Rd.slice(),this.gl=Sd.slice(),this.ig=31,this.Ua[15]=Ud,this.Ua[96]=Vd,this.Ua[97]=Wd,this.Ua[98]=Xd,this.Ua[99]=Ud,this.Ua[100]=Ud,this.Ua[101]=Ud,this.Ua[102]=Ud,this.Ua[103]=Ud,this.Ua[104]=Yd, +this.Ua[105]=Zd,this.Ua[106]=$d,this.Ua[107]=ae,this.Ua[108]=be,this.Ua[109]=ce,this.Ua[110]=de,this.Ua[111]=ee,this.Ua[192]=fe,this.Ua[193]=ge,this.Ua[200]=he,this.Ua[201]=ie,this.Ua[241]=je,this.fl[7]=ke,this.gl[7]=ke,80286<=this.za&&(this.cl=2,this.Bh|=28672,this.Ah=0,this.Kn=le,this.Ua[15]=me,this.Ua[99]=ne,this.Ua[84]=oe));this.Dh=[];this.Eh=[];this.Zc=this.Eg=0;this.da.Qg=this.da.El=!1;this.ul=0;this.ma=[];this.Wa=this.Ga=this.Ea=this.tc=0;pe(this)}Ya(Sc,Nd); +var Pd={Ai:4,T:5,ua:6,aa:7,ba:8,M:9,O:11,P:12,pf:4,gm:60,hm:83,bc:3,Cb:9,rc:16,wi:1,lm:19,nm:28,pm:16,om:21,mm:37,jm:2,bk:9,km:5,im:33,dk:10,ck:8,lh:3,kh:15,Dm:51,Em:1,Fm:2,Gm:4,Cm:32,ek:15,Im:15,cc:16,dc:4,Km:11,Jm:18,Hm:24,Nb:4,Lm:2,fk:16,Mm:17,kk:18,Nm:19,jk:5,lk:6,Sm:2,Rm:8,Pm:9,Qm:10,Om:10,mk:10,nk:10,rm:80,tm:144,qm:86,sm:154,vm:101,xm:165,um:107,wm:171,Um:70,Wm:113,Tm:76,Vm:124,zm:80,Bm:128,ym:86,Am:134,nh:3,mh:16,sk:10,rk:8,Xm:51,sc:8,Ym:17,Zm:36,zc:11,$m:16,oh:10,Je:2,Zj:18,$j:7,ak:15,gk:12, +hk:7,ik:11,ok:18,pk:7,qk:15,tk:15,uk:7,vk:13,zk:11,Ak:7,Bk:8,an:8,dn:12,bn:18,cn:17,en:15,xk:8,wk:20,yk:2,Ek:3,ph:9,Dk:5,Ck:11,Gk:4,Fk:17,fn:11},Od={Ai:0,T:0,ua:0,aa:0,ba:0,M:0,O:1,P:1,pf:3,gm:14,hm:16,bc:2,Cb:7,rc:7,wi:0,lm:7,nm:13,pm:7,om:11,mm:16,jm:3,bk:6,km:2,im:13,dk:5,ck:5,lh:2,kh:7,Dm:23,Em:0,Fm:1,Gm:3,Cm:17,ek:7,Im:11,cc:7,dc:3,Km:7,Jm:11,Hm:15,Nb:2,Lm:3,fk:7,Mm:8,kk:8,Nm:8,jk:4,lk:4,Sm:2,Rm:3,Pm:5,Qm:2,Om:3,mk:5,nk:3,rm:14,tm:22,qm:17,sm:25,vm:17,xm:25,um:20,wm:28,Um:13,Wm:21,Tm:16,Vm:24, +zm:13,Bm:21,ym:16,Am:24,nh:2,mh:7,sk:5,rk:5,Xm:19,sc:5,Ym:5,Zm:17,zc:3,$m:5,oh:3,Je:0,Zj:8,$j:5,ak:9,gk:5,hk:5,ik:4,ok:5,pk:5,qk:4,tk:7,uk:5,vk:8,zk:3,Ak:4,Bk:3,an:11,dn:11,bn:15,cn:15,en:7,xk:5,wk:8,yk:0,Ek:2,ph:6,Dk:3,Ck:6,Gk:3,Fk:5,fn:5};k=Nd.prototype;k.Mj=function(a,b,c,d){this.ma=a;this.Ga=b;this.Ea=c;this.tc=d};k.reset=function(){this.da.jb&&this.lb();pe(this);Tc(this);this.da.qd=!1}; +function pe(a){a.G=0;a.C=0;a.I=0;a.J=0;a.H=0;a.F=0;a.D=0;a.Pb=a.vh=-1;a.Oh=0;a.gc=65520;a.Tc=0;a.Xe=1023;a.gg=0;a.vi=-1;a.ra=new qd(a,rd,"CS");a.Ya=new qd(a,2,"DS");a.Ja=new qd(a,2,"ES");a.xa=new qd(a,3,"SS");x(a,0);Kd(a,0);a.xn=new qd(a,0,"NULL");a.tb=a.Ya;a.dd=a.xa;a.S=a.Da=0;a.ca=a.La=q;a.wb=0;Jd(a,0,65535);a.qe=a.ra.qe;a.ja=a.ra.ja;a.yd=z;a.xd=se;a.Ve=te;a.Gb=A;a.Qc=ue;a.hd=ve;a.Wc=a.ra.Wc;a.na=a.ra.na;2==a.Wc?(a.Wg=a.la,a.An=a.Qa):(a.Wg=a.Vg,a.An=a.zn);a.Da&=-12289;if(80286<=a.za){a.Fc=0;a.We= +65535;a.cd=new qd(a,5,"LDT",!0);a.eb=new qd(a,4,"TSS",!0);a.Tb=new qd(a,6,"VER",!0);Jd(a,65520,61440);var b,c=v(a);b=a.ra;var d=-65536;80386>b.N.za&&(d&=16777215);b=b.ta=d;a.ka=b+c;a.sf=b+a.ra.rb}Id(a,0);we(a)}k.Pl=function(){var a=this.G+this.C+this.I+this.J+w(this)+this.H+this.F+this.D|0;return a=a+v(this)+Fb(this)+this.Ya.va+this.xa.va+this.Ja.va+Gb(this)|0};function xe(a,b,c,d){void 0!==d&&(void 0===a.Dh[b]&&(a.Dh[b]=[]),a.Dh[b].push([c,d]))} +function ye(a,b){var c=a.Dh[b];if(void 0!==c)for(var d=0;d>((a^a>>4)&15)&1?0:Ob}function Me(a){return(a.W^a.ia)&16?Nb:0} function Ne(a){return a.Q&a.V-1?0:Mb}function Oe(a){return a.W&a.V>>1?Lb:0}function Pe(a){return(a.W^a.ia^a.W>>1)&a.V>>1?Hb:0}function Qe(a){a.Q&=~a.V}function Re(a){a.ia=a.W&16|a.ia&-17}function Se(a){a.Q|=a.V-1}function Te(a){Oe(a)&&(a.W^=a.V>>1|a.V>>2,a.ia^=32896)}function Ue(a){a.W&=~a.V;a.ia=a.W&32896|a.ia&-32897}function Ve(a){a.Q|=a.V}function We(a){a.ia=~(a.W&16)&16|a.ia&-17}function Xe(a){a.Q&=~(a.V-1)}function Ye(a){Oe(a)||(a.W^=a.V>>1|a.V>>2,a.ia^=32896)} -function Ze(a){a.W|=a.V;a.ia=a.W&32896|a.ia&-32897}function Gb(a){return a.wa&~od|Ke(a)|Le(a)|Me(a)|Ne(a)|Oe(a)|Pe(a)}function $e(a,b){b=b|a.gc&1|65520;a.gc=a.gc&-65536|b&65535;a.gc&1&&we(a,!0)}function Id(a,b,c){a.V=256;a.Q=a.W=a.ia=0;b&Pb&&Ve(a);b&Ob||(a.W|=1);b&Nb&&(a.ia|=16);b&Mb||Se(a);b&Lb&&Ye(a);b&Hb&&Ze(a);a.gc&1||(b&=-61441);void 0===c&&(c=a.ra.bb);c?b=b&-12289|a.wa&12288:a.gg=(b&12288)>>12;c>a.gg&&(b=b&~Jb|a.wa&Jb);a.wa=a.wa&~a.Ah|b&a.Ah|a.bl;a.wa&Kb&&(a.wb|=2,a.S|=4)} -k.Fb=function(a,b,c){var d=!1;switch(b){case "AX":case "BX":case "CX":case "DX":case "SP":case "BP":case "SI":case "DI":case "CS":case "DS":case "SS":case "ES":case "IP":case "PC":case "PS":case "C":case "P":case "A":case "Z":case "S":case "T":case "I":case "D":case "V":this.qa[b]=c;this.tl++;d=!0;break;default:d=this.parent.Fb.call(this,a,b,c)}return d};k.Oa=function(a){return this.ma[(a&this.Wa)>>>this.Ga].Eb(a&this.Da)}; -k.la=function(a){var b=a&this.Da;a=(a&this.Wa)>>>this.Ga;this.A-=this.B.zi;return b>>this.Ga;if(b>>c|this.ma[a+1&this.sc].td(0)<<32-c};k.ud=function(a,b){this.ma[(a&this.Wa)>>>this.Ga].Ib(a&this.Da,b&255)}; -k.Qa=function(a,b){var c=a&this.Da,d=(a&this.Wa)>>>this.Ga;this.A-=this.B.zi;c>8&255))};k.yn=function(a,b){var c=a&this.Da,d=(a&this.Wa)>>>this.Ga;this.A-=this.B.zi;if(c>>32-f)}}; -function af(a,b,c){a.yh=b;a.ca=b.Ic(a.rh=c,0);return a.S&1?0:a.Oa(a.ca)}function F(a,b){return af(a,a.tb,b&65535)}function G(a,b){return af(a,a.cd,b&65535)}function bf(a,b,c){a.yh=b;a.ca=b.Ic(a.rh=c,1);return a.S&1?0:a.Vg(a.ca)}function H(a,b){return bf(a,a.tb,b&65535)}function I(a,b){return bf(a,a.cd,b&65535)}function cf(a,b,c){a.yh=b;a.La=a.ca=b.Ic(a.rh=c,0);return a.S&1?0:a.Oa(a.ca)}function K(a,b){return cf(a,a.tb,b&65535)}function L(a,b){return cf(a,a.cd,b&65535)} -function df(a,b,c){a.yh=b;a.La=a.ca=b.Ic(a.rh=c,1);return a.S&1?0:a.Vg(a.ca)}function O(a,b){return df(a,a.tb,b&65535)}function P(a,b){return df(a,a.cd,b&65535)}function Q(a,b){a.S&2||a.ud(a.yh.jc(a.rh,0),b)}function R(a,b){a.S&2||a.Qa(a.yh.jc(a.rh,1),b)}function Md(a,b,c){return a.la(b.Ic(c,1))}k.Y=function(){var a=this.Oa(this.ka);++this.ka>this.sf&&D(this,this.ka-this.ra.ta);return a};k.L=function(){var a=this.Oa(this.ka)<<24>>24;++this.ka>this.sf&&D(this,this.ka-this.ra.ta);return a&65535}; -function ef(a){var b=a.la(a.ka);a.ka+=2;a.ka>a.sf&&D(a,a.ka-a.ra.ta);return b}k.K=function(){var a=this.Vg(this.ka);this.ka+=this.qe;this.ka>this.sf&&D(this,this.ka-this.ra.ta);return a};k.Ka=function(){var a=this.Vg(this.Zc);this.Zc+=2;this.Zc>this.mn&&x(this,this.Zc-this.xa.ta);return a};function y(a,b){a.Zc-=2;a.Zcthis.La?0>this.ca?this.B.bc:this.B.Cb:this.B.qc;return this.Q&255}function mf(a,b){this.ia=a^b;this.Q=this.W=a+b+(this.Q&this.V?1:0);this.V=65536;this.A-=0>this.La?0>this.ca?this.B.bc:this.B.Cb:this.B.qc;return this.Q&65535} -function nf(a,b){this.ia=a^b;this.V=256;this.A-=0>this.La?0>this.ca?this.B.bc:this.B.Cb:this.B.qc;return(this.Q=this.W=a+b)&255}function of(a,b){this.ia=a^b;this.V=65536;this.A-=0>this.La?0>this.ca?this.B.bc:this.B.Cb:this.B.qc;return(this.Q=this.W=a+b)&65535}function pf(a,b){this.V=256;this.A-=0>this.La?0>this.ca?this.B.bc:this.B.Cb:this.B.qc;return(this.Q=this.W=this.ia=a&b)&255} -function qf(a,b){this.V=65536;this.A-=0>this.La?0>this.ca?this.B.bc:this.B.Cb:this.B.qc;return(this.Q=this.W=this.ia=a&b)&65535}function rf(a,b){this.A-=10+(0>this.ca?0:1);if((a&3)<(b&3))return a=a&-4|b&3,Xe(this),a;Se(this);return a}function sf(a){if(0>this.ca)return Ud.call(this),a;var b=a<<16>>16,c=this.la(this.ca)<<16>>16,d=this.la(this.ca+2)<<16>>16;this.A-=this.B.hm;if(bd)D(this,this.Ob-this.ra.ta),hf.call(this,5,null,0);this.S|=2;return a} -function tf(a,b){var c=Fb(this),d=v(this);null!=Jd(this,a,b,!0)&&(y(this,c),y(this,d))}function uf(a,b){this.ia=a^b;this.V=256;this.Q=this.W=a-b;this.A-=0>this.La?0>this.ca?this.B.bc:this.B.ak:this.B.Cb;this.S|=2;return a}function vf(a,b){this.ia=a^b;this.V=65536;this.Q=this.W=a-b;this.A-=0>this.La?0>this.ca?this.B.bc:this.B.ak:this.B.Cb;this.S|=2;return a}function wf(a){return a} +function Ze(a){a.W|=a.V;a.ia=a.W&32896|a.ia&-32897}function Gb(a){return a.wa&~od|Ke(a)|Le(a)|Me(a)|Ne(a)|Oe(a)|Pe(a)}function $e(a,b){b=b|a.gc&1|65520;a.gc=a.gc&-65536|b&65535;a.gc&1&&we(a,!0)}function Id(a,b,c){a.V=256;a.Q=a.W=a.ia=0;b&Pb&&Ve(a);b&Ob||(a.W|=1);b&Nb&&(a.ia|=16);b&Mb||Se(a);b&Lb&&Ye(a);b&Hb&&Ze(a);a.gc&1||(b&=-61441);void 0===c&&(c=a.ra.bb);c?b=b&-12289|a.wa&12288:a.gg=(b&12288)>>12;c>a.gg&&(b=b&~Jb|a.wa&Jb);a.wa=a.wa&~a.Bh|b&a.Bh|a.cl;a.wa&Kb&&(a.wb|=2,a.S|=4)} +k.Fb=function(a,b,c){var d=!1;switch(b){case "AX":case "BX":case "CX":case "DX":case "SP":case "BP":case "SI":case "DI":case "CS":case "DS":case "SS":case "ES":case "IP":case "PC":case "PS":case "C":case "P":case "A":case "Z":case "S":case "T":case "I":case "D":case "V":this.qa[b]=c;this.ul++;d=!0;break;default:d=this.parent.Fb.call(this,a,b,c)}return d};k.Oa=function(a){return this.ma[(a&this.Wa)>>>this.Ga].Eb(a&this.Ea)}; +k.la=function(a){var b=a&this.Ea;a=(a&this.Wa)>>>this.Ga;this.A-=this.B.Ai;return b>>this.Ga;if(b>>c|this.ma[a+1&this.tc].ud(0)<<32-c};k.vd=function(a,b){this.ma[(a&this.Wa)>>>this.Ga].Ib(a&this.Ea,b&255)}; +k.Qa=function(a,b){var c=a&this.Ea,d=(a&this.Wa)>>>this.Ga;this.A-=this.B.Ai;c>8&255))};k.zn=function(a,b){var c=a&this.Ea,d=(a&this.Wa)>>>this.Ga;this.A-=this.B.Ai;if(c>>32-f)}}; +function af(a,b,c){a.zh=b;a.ca=b.Jc(a.sh=c,0);return a.S&1?0:a.Oa(a.ca)}function F(a,b){return af(a,a.tb,b&65535)}function G(a,b){return af(a,a.dd,b&65535)}function bf(a,b,c){a.zh=b;a.ca=b.Jc(a.sh=c,1);return a.S&1?0:a.Wg(a.ca)}function H(a,b){return bf(a,a.tb,b&65535)}function I(a,b){return bf(a,a.dd,b&65535)}function cf(a,b,c){a.zh=b;a.La=a.ca=b.Jc(a.sh=c,0);return a.S&1?0:a.Oa(a.ca)}function K(a,b){return cf(a,a.tb,b&65535)}function L(a,b){return cf(a,a.dd,b&65535)} +function df(a,b,c){a.zh=b;a.La=a.ca=b.Jc(a.sh=c,1);return a.S&1?0:a.Wg(a.ca)}function O(a,b){return df(a,a.tb,b&65535)}function P(a,b){return df(a,a.dd,b&65535)}function Q(a,b){a.S&2||a.vd(a.zh.jc(a.sh,0),b)}function R(a,b){a.S&2||a.Qa(a.zh.jc(a.sh,1),b)}function Md(a,b,c){return a.la(b.Jc(c,1))}k.Y=function(){var a=this.Oa(this.ka);++this.ka>this.sf&&D(this,this.ka-this.ra.ta);return a};k.L=function(){var a=this.Oa(this.ka)<<24>>24;++this.ka>this.sf&&D(this,this.ka-this.ra.ta);return a&65535}; +function ef(a){var b=a.la(a.ka);a.ka+=2;a.ka>a.sf&&D(a,a.ka-a.ra.ta);return b}k.K=function(){var a=this.Wg(this.ka);this.ka+=this.qe;this.ka>this.sf&&D(this,this.ka-this.ra.ta);return a};k.Ka=function(){var a=this.Wg(this.$c);this.$c+=2;this.$c>this.nn&&x(this,this.$c-this.xa.ta);return a};function y(a,b){a.$c-=2;a.$cthis.La?0>this.ca?this.B.bc:this.B.Cb:this.B.rc;return this.Q&255}function mf(a,b){this.ia=a^b;this.Q=this.W=a+b+(this.Q&this.V?1:0);this.V=65536;this.A-=0>this.La?0>this.ca?this.B.bc:this.B.Cb:this.B.rc;return this.Q&65535} +function nf(a,b){this.ia=a^b;this.V=256;this.A-=0>this.La?0>this.ca?this.B.bc:this.B.Cb:this.B.rc;return(this.Q=this.W=a+b)&255}function of(a,b){this.ia=a^b;this.V=65536;this.A-=0>this.La?0>this.ca?this.B.bc:this.B.Cb:this.B.rc;return(this.Q=this.W=a+b)&65535}function pf(a,b){this.V=256;this.A-=0>this.La?0>this.ca?this.B.bc:this.B.Cb:this.B.rc;return(this.Q=this.W=this.ia=a&b)&255} +function qf(a,b){this.V=65536;this.A-=0>this.La?0>this.ca?this.B.bc:this.B.Cb:this.B.rc;return(this.Q=this.W=this.ia=a&b)&65535}function rf(a,b){this.A-=10+(0>this.ca?0:1);if((a&3)<(b&3))return a=a&-4|b&3,Xe(this),a;Se(this);return a}function sf(a){if(0>this.ca)return Ud.call(this),a;var b=a<<16>>16,c=this.la(this.ca)<<16>>16,d=this.la(this.ca+2)<<16>>16;this.A-=this.B.im;if(bd)D(this,this.Ob-this.ra.ta),hf.call(this,5,null,0);this.S|=2;return a} +function tf(a,b){var c=Fb(this),d=v(this);null!=Jd(this,a,b,!0)&&(y(this,c),y(this,d))}function uf(a,b){this.ia=a^b;this.V=256;this.Q=this.W=a-b;this.A-=0>this.La?0>this.ca?this.B.bc:this.B.bk:this.B.Cb;this.S|=2;return a}function vf(a,b){this.ia=a^b;this.V=65536;this.Q=this.W=a-b;this.A-=0>this.La?0>this.ca?this.B.bc:this.B.bk:this.B.Cb;this.S|=2;return a}function wf(a){return a} function xf(a,b){var c=(b<<16>>16)*(this.Y()<<24>>24);this.Q=this.ia=this.W=c;this.V=256;32767c?(Ve(this),Ze(this)):(Qe(this),Ue(this));this.A-=0>this.ca?21:24;return c&65535}function yf(a,b){var c=(b<<16>>16)*(this.K()<<16>>16);this.Q=this.ia=this.W=c;this.V=65536;32767c?(Ve(this),Ze(this)):(Qe(this),Ue(this));this.A-=0>this.ca?21:24;return c&65535} -function hf(a,b,c){this.A-=this.B.Cm+c;this.ra.uj=!0;c=Gb(this);var d=Fb(this),e=v(this);a=this.ra.Xl(a);a!=q&&(this.ka=a,y(this,c),y(this,d),y(this,e),null!=b&&y(this,b),this.ui=-1)}function zf(a,b){this.A-=14+(0>this.ca?0:2);if(this.Tb.load(b,!0)!=q&&this.Tb.pc>=this.ra.bb&&this.Tb.pc>=(b&3))return Xe(this),this.Tb.nb&65280;Se(this);return a}function Af(a,b){if(0>this.ca)return U.call(this),a;He(this,this.la(this.ca+2));this.A-=this.B.ek;return b} -function Bf(a){if(0>this.ca)return U.call(this),a;this.A-=this.B.Km;return this.ca}function Cf(a,b){if(0>this.ca)return U.call(this),a;Ie(this,this.la(this.ca+2));this.A-=this.B.ek;return b}function Df(a,b){this.A-=14+(0>this.ca?0:2);if(b&65528&&this.Tb.load(b,!0)!=q&&(7168==(this.Tb.nb&7168)||this.Tb.pc>=this.ra.bb)&&this.Tb.pc>=(b&3))return Xe(this),this.Tb.rb;Se(this);return a}function Ef(a,b){this.A-=0>this.La?0>this.ca?this.B.Rm:this.B.Qm:this.B.Om;return b} -function Ff(){return Ef.call(this,0,this.Pb)}function Gf(a,b){this.V=256;this.A-=0>this.La?0>this.ca?this.B.bc:this.B.Cb:this.B.qc;return(this.Q=this.W=this.ia=a|b)&255}function Hf(a,b){this.V=65536;this.A-=0>this.La?0>this.ca?this.B.bc:this.B.Cb:this.B.qc;return(this.Q=this.W=this.ia=a|b)&65535} -function If(a){var b=this.Ka(),c=this.Ka();(a<<=this.Vc>>2)&&x(this,w(this)+a);Jd(this,b,c,!1)&&(a&&x(this,w(this)+a),this.Ya.va&65528&&this.Ya.pcthis.La?0>this.ca?this.B.bc:this.B.Cb:this.B.qc;return this.Q&255} -function Kf(a,b){this.ia=a^b;this.Q=this.W=a-b-(this.Q&this.V?1:0);this.V=65536;this.A-=0>this.La?0>this.ca?this.B.bc:this.B.Cb:this.B.qc;return this.Q&65535}function Lf(a,b){this.ia=a^b;this.V=256;this.A-=0>this.La?0>this.ca?this.B.bc:this.B.Cb:this.B.qc;return(this.Q=this.W=a-b)&255}function Pf(a,b){this.ia=a^b;this.V=65536;this.A-=0>this.La?0>this.ca?this.B.bc:this.B.Cb:this.B.qc;return(this.Q=this.W=a-b)&65535} -function Qf(a,b){this.Q=this.W=this.ia=a&b;this.V=256;this.A-=0>this.La?0>this.ca?this.B.Dk:this.B.oh:this.B.oh;this.S|=2;return a}function Rf(a,b){this.Q=this.W=this.ia=a&b;this.V=65536;this.A-=0>this.La?0>this.ca?this.B.Dk:this.B.oh:this.B.oh;this.S|=2;return a} -function Sf(a,b){if(0>this.ca){switch(this.Nh&7){case 0:this.G=this.G&-256|a;break;case 1:this.I=this.I&-256|a;break;case 2:this.J=this.J&-256|a;break;case 3:this.C=this.C&-256|a;break;case 4:this.G=this.G&255|a<<8;break;case 5:this.I=this.I&255|a<<8;break;case 6:this.J=this.J&255|a<<8;break;case 7:this.C=this.C&255|a<<8}this.A-=this.B.Fk}else this.La=this.ca,Q(this,a),this.A-=this.B.Ek;return b} -function Tf(a,b){if(0>this.ca){switch(this.Nh&7){case 0:this.G=a;break;case 1:this.I=a;break;case 2:this.J=a;break;case 3:this.C=a;break;case 4:x(this,a);break;case 5:this.H=a;break;case 6:this.F=a;break;case 7:this.D=a}this.A-=this.B.Fk}else this.La=this.ca,R(this,a),this.A-=this.B.Ek;return b}function Uf(a,b){this.V=256;this.A-=0>this.La?0>this.ca?this.B.bc:this.B.Cb:this.B.qc;return(this.Q=this.W=this.ia=a^b)&255} -function Vf(a,b){this.V=65536;this.A-=0>this.La?0>this.ca?this.B.bc:this.B.Cb:this.B.qc;return(this.Q=this.W=this.ia=a^b)&65535}function Wf(a,b){this.Q=this.Q&this.V-1|(a&b?this.V:0);(a^a>>1)&b>>1?Ze(this):Ue(this)}function Xf(){this.A-=0>this.ca?2:this.B.dn;return 1}function Yf(){var a=this.I&this.ig;this.A-=(0>this.ca?this.B.wk:this.B.vk)+(a<this.ca?this.B.wk:this.B.vk)+(a<this.ca?0:2);if(this.Tb.load(b,!0)!=q&&this.Tb.qc>=this.ra.bb&&this.Tb.qc>=(b&3))return Xe(this),this.Tb.nb&65280;Se(this);return a}function Af(a,b){if(0>this.ca)return U.call(this),a;He(this,this.la(this.ca+2));this.A-=this.B.fk;return b} +function Bf(a){if(0>this.ca)return U.call(this),a;this.A-=this.B.Lm;return this.ca}function Cf(a,b){if(0>this.ca)return U.call(this),a;Ie(this,this.la(this.ca+2));this.A-=this.B.fk;return b}function Df(a,b){this.A-=14+(0>this.ca?0:2);if(b&65528&&this.Tb.load(b,!0)!=q&&(7168==(this.Tb.nb&7168)||this.Tb.qc>=this.ra.bb)&&this.Tb.qc>=(b&3))return Xe(this),this.Tb.rb;Se(this);return a}function Ef(a,b){this.A-=0>this.La?0>this.ca?this.B.Sm:this.B.Rm:this.B.Pm;return b} +function Ff(){return Ef.call(this,0,this.Pb)}function Gf(a,b){this.V=256;this.A-=0>this.La?0>this.ca?this.B.bc:this.B.Cb:this.B.rc;return(this.Q=this.W=this.ia=a|b)&255}function Hf(a,b){this.V=65536;this.A-=0>this.La?0>this.ca?this.B.bc:this.B.Cb:this.B.rc;return(this.Q=this.W=this.ia=a|b)&65535} +function If(a){var b=this.Ka(),c=this.Ka();(a<<=this.Wc>>2)&&x(this,w(this)+a);Jd(this,b,c,!1)&&(a&&x(this,w(this)+a),this.Ya.va&65528&&this.Ya.qcthis.La?0>this.ca?this.B.bc:this.B.Cb:this.B.rc;return this.Q&255} +function Kf(a,b){this.ia=a^b;this.Q=this.W=a-b-(this.Q&this.V?1:0);this.V=65536;this.A-=0>this.La?0>this.ca?this.B.bc:this.B.Cb:this.B.rc;return this.Q&65535}function Lf(a,b){this.ia=a^b;this.V=256;this.A-=0>this.La?0>this.ca?this.B.bc:this.B.Cb:this.B.rc;return(this.Q=this.W=a-b)&255}function Pf(a,b){this.ia=a^b;this.V=65536;this.A-=0>this.La?0>this.ca?this.B.bc:this.B.Cb:this.B.rc;return(this.Q=this.W=a-b)&65535} +function Qf(a,b){this.Q=this.W=this.ia=a&b;this.V=256;this.A-=0>this.La?0>this.ca?this.B.Ek:this.B.ph:this.B.ph;this.S|=2;return a}function Rf(a,b){this.Q=this.W=this.ia=a&b;this.V=65536;this.A-=0>this.La?0>this.ca?this.B.Ek:this.B.ph:this.B.ph;this.S|=2;return a} +function Sf(a,b){if(0>this.ca){switch(this.Oh&7){case 0:this.G=this.G&-256|a;break;case 1:this.I=this.I&-256|a;break;case 2:this.J=this.J&-256|a;break;case 3:this.C=this.C&-256|a;break;case 4:this.G=this.G&255|a<<8;break;case 5:this.I=this.I&255|a<<8;break;case 6:this.J=this.J&255|a<<8;break;case 7:this.C=this.C&255|a<<8}this.A-=this.B.Gk}else this.La=this.ca,Q(this,a),this.A-=this.B.Fk;return b} +function Tf(a,b){if(0>this.ca){switch(this.Oh&7){case 0:this.G=a;break;case 1:this.I=a;break;case 2:this.J=a;break;case 3:this.C=a;break;case 4:x(this,a);break;case 5:this.H=a;break;case 6:this.F=a;break;case 7:this.D=a}this.A-=this.B.Gk}else this.La=this.ca,R(this,a),this.A-=this.B.Fk;return b}function Uf(a,b){this.V=256;this.A-=0>this.La?0>this.ca?this.B.bc:this.B.Cb:this.B.rc;return(this.Q=this.W=this.ia=a^b)&255} +function Vf(a,b){this.V=65536;this.A-=0>this.La?0>this.ca?this.B.bc:this.B.Cb:this.B.rc;return(this.Q=this.W=this.ia=a^b)&65535}function Wf(a,b){this.Q=this.Q&this.V-1|(a&b?this.V:0);(a^a>>1)&b>>1?Ze(this):Ue(this)}function Xf(){this.A-=0>this.ca?2:this.B.en;return 1}function Yf(){var a=this.I&this.ig;this.A-=(0>this.ca?this.B.xk:this.B.wk)+(a<this.ca?this.B.xk:this.B.wk)+(a<this.ui)D(this,this.Ob-this.ra.ta),d=!0;else if(8!=this.ui)b=0,a=8,d=!0;else{dg.call(this,-1,0,c);pe(this);return}dg.call(this,a,b,c)&&(d=!1);d&&hf.call(this,this.ui=a,b,0);this.S&=-4}else this.Xa("Fault "+l(a)+" blocked by Debugger",536870912),D(this,this.Ob-this.ra.ta)} -function dg(a,b,c){var d=32,e=Qb(this.ha,this.ka);204==e&&(c=!1,d|=1);983040<=this.ka&&1048575>=this.ka&&(c=!1);this.pa(d|1073741824)&&(c=!0);if(this.pa(d)||c)a=(c?"\n":"")+"Fault "+l(a)+(null!=b?" ("+m(b)+")":"")+" on opcode 0x"+l(e)+" at "+uc(this.Z,v(this),Fb(this))+" (%"+ea(this.ka,6)+")",b=this.da.jb,this.Xa(a,d)?c&&(c=b,this.Z.lb()):(this.Ea(a),this.lb());return c}function me(){this.Jn[this.Y()].call(this)}function oe(){y(this,w(this)&this.na);this.A-=this.B.yc} -function Vd(){var a=w(this)&this.na;y(this,this.G&this.na);y(this,this.I&this.na);y(this,this.J&this.na);y(this,this.C&this.na);y(this,a);y(this,this.H&this.na);y(this,this.F&this.na);y(this,this.D&this.na);this.A-=this.B.Ym} -function Wd(){this.D=this.D&~this.na|this.Ka();this.F=this.F&~this.na|this.Ka();this.H=this.H&~this.na|this.Ka();x(this,w(this)+this.Vc);this.C=this.C&~this.na|this.Ka();this.J=this.J&~this.na|this.Ka();this.I=this.I&~this.na|this.Ka();this.G=this.G&~this.na|this.Ka();this.A-=this.B.Wm}function Xd(){this.Gb[this.Y()].call(this,sf)}function ne(){this.Pc[this.Y()].call(this,rf)}function Yd(){y(this,this.K());this.A-=this.B.yc}function Zd(){this.Gb[this.Y()].call(this,yf)} -function $d(){y(this,this.Y());this.A-=this.B.yc}function ae(){this.Gb[this.Y()].call(this,xf)}function be(){var a=1,b=0,c=5;this.Ca&192&&(a=this.I,b=1,this.Ca&256&&(c=4));if(a--){var d=cc(this.ha,this.J,this.ka-b-1);this.ud(this.Ja.jc(this.D&this.ja,0),d);this.D=this.D&~this.ja|this.D+(this.wa&Ib?-1:1)&this.ja;this.A-=c;this.I-=b;a&&(this.ka=this.Ob,this.S|=256)}} -function ce(){var a=1,b=0,c=5;this.Ca&192&&(a=this.I,b=1,this.Ca&256&&(c=4));if(a--){var d=this.ka-b-1,e=cc(this.ha,this.J,d),d=e|=cc(this.ha,this.J,d)<<8;this.Qa(this.Ja.jc(this.D&this.ja,1),d);this.D=this.D&~this.ja|this.D+(this.wa&Ib?-2:2)&this.ja;this.A-=c;this.I-=b;a&&(this.ka=this.Ob,this.S|=256)}} -function de(){var a=1,b=0,c=5;this.Ca&192&&(a=this.I,b=1,this.Ca&256&&(c=4));if(a--){var d=this.Oa(this.Ya.Ic(this.F&this.ja,0));this.F=this.F&~this.ja|this.F+(this.wa&Ib?-1:1)&this.ja;this.A-=c;this.I-=b;gc(this.ha,this.J,d,this.ka-b-1);a&&(this.ka=this.Ob,this.S|=256)}} -function ee(){var a=1,b=0,c=5;this.Ca&192&&(a=this.I,b=1,this.Ca&256&&(c=4));if(a--){var d=Md(this,this.Ya,this.F&this.ja);this.F=this.F&~this.ja|this.F+(this.wa&Ib?-2:2)&this.ja;this.A-=c;this.I-=b;b=this.ka-b-1;gc(this.ha,this.J,d&255,b);gc(this.ha,this.J,d>>8,b);a&&(this.ka=this.Ob,this.S|=256)}}function eg(){var a=this.L();Pe(this)?(D(this,v(this)+a),this.A-=this.B.cc):this.A-=this.B.dc}function fg(){var a=this.L();Pe(this)?this.A-=this.B.dc:(D(this,v(this)+a),this.A-=this.B.cc)} +function wd(a,b,c){if(this.da.Qg){var d=!1;if(80186<=this.za)if(0>this.vi)D(this,this.Ob-this.ra.ta),d=!0;else if(8!=this.vi)b=0,a=8,d=!0;else{dg.call(this,-1,0,c);pe(this);return}dg.call(this,a,b,c)&&(d=!1);d&&hf.call(this,this.vi=a,b,0);this.S&=-4}else this.Xa("Fault "+l(a)+" blocked by Debugger",536870912),D(this,this.Ob-this.ra.ta)} +function dg(a,b,c){var d=32,e=Qb(this.ha,this.ka);204==e&&(c=!1,d|=1);983040<=this.ka&&1048575>=this.ka&&(c=!1);this.pa(d|1073741824)&&(c=!0);if(this.pa(d)||c)a=(c?"\n":"")+"Fault "+l(a)+(null!=b?" ("+m(b)+")":"")+" on opcode 0x"+l(e)+" at "+uc(this.Z,v(this),Fb(this))+" (%"+ea(this.ka,6)+")",b=this.da.jb,this.Xa(a,d)?c&&(c=b,this.Z.lb()):(this.Ca(a),this.lb());return c}function me(){this.Kn[this.Y()].call(this)}function oe(){y(this,w(this)&this.na);this.A-=this.B.zc} +function Vd(){var a=w(this)&this.na;y(this,this.G&this.na);y(this,this.I&this.na);y(this,this.J&this.na);y(this,this.C&this.na);y(this,a);y(this,this.H&this.na);y(this,this.F&this.na);y(this,this.D&this.na);this.A-=this.B.Zm} +function Wd(){this.D=this.D&~this.na|this.Ka();this.F=this.F&~this.na|this.Ka();this.H=this.H&~this.na|this.Ka();x(this,w(this)+this.Wc);this.C=this.C&~this.na|this.Ka();this.J=this.J&~this.na|this.Ka();this.I=this.I&~this.na|this.Ka();this.G=this.G&~this.na|this.Ka();this.A-=this.B.Xm}function Xd(){this.Gb[this.Y()].call(this,sf)}function ne(){this.Qc[this.Y()].call(this,rf)}function Yd(){y(this,this.K());this.A-=this.B.zc}function Zd(){this.Gb[this.Y()].call(this,yf)} +function $d(){y(this,this.Y());this.A-=this.B.zc}function ae(){this.Gb[this.Y()].call(this,xf)}function be(){var a=1,b=0,c=5;this.Da&192&&(a=this.I,b=1,this.Da&256&&(c=4));if(a--){var d=cc(this.ha,this.J,this.ka-b-1);this.vd(this.Ja.jc(this.D&this.ja,0),d);this.D=this.D&~this.ja|this.D+(this.wa&Ib?-1:1)&this.ja;this.A-=c;this.I-=b;a&&(this.ka=this.Ob,this.S|=256)}} +function ce(){var a=1,b=0,c=5;this.Da&192&&(a=this.I,b=1,this.Da&256&&(c=4));if(a--){var d=this.ka-b-1,e=cc(this.ha,this.J,d),d=e|=cc(this.ha,this.J,d)<<8;this.Qa(this.Ja.jc(this.D&this.ja,1),d);this.D=this.D&~this.ja|this.D+(this.wa&Ib?-2:2)&this.ja;this.A-=c;this.I-=b;a&&(this.ka=this.Ob,this.S|=256)}} +function de(){var a=1,b=0,c=5;this.Da&192&&(a=this.I,b=1,this.Da&256&&(c=4));if(a--){var d=this.Oa(this.Ya.Jc(this.F&this.ja,0));this.F=this.F&~this.ja|this.F+(this.wa&Ib?-1:1)&this.ja;this.A-=c;this.I-=b;gc(this.ha,this.J,d,this.ka-b-1);a&&(this.ka=this.Ob,this.S|=256)}} +function ee(){var a=1,b=0,c=5;this.Da&192&&(a=this.I,b=1,this.Da&256&&(c=4));if(a--){var d=Md(this,this.Ya,this.F&this.ja);this.F=this.F&~this.ja|this.F+(this.wa&Ib?-2:2)&this.ja;this.A-=c;this.I-=b;b=this.ka-b-1;gc(this.ha,this.J,d&255,b);gc(this.ha,this.J,d>>8,b);a&&(this.ka=this.Ob,this.S|=256)}}function eg(){var a=this.L();Pe(this)?(D(this,v(this)+a),this.A-=this.B.cc):this.A-=this.B.dc}function fg(){var a=this.L();Pe(this)?this.A-=this.B.dc:(D(this,v(this)+a),this.A-=this.B.cc)} function gg(){var a=this.L();Ke(this)?(D(this,v(this)+a),this.A-=this.B.cc):this.A-=this.B.dc}function hg(){var a=this.L();Ke(this)?this.A-=this.B.dc:(D(this,v(this)+a),this.A-=this.B.cc)}function ig(){var a=this.L();Ne(this)?(D(this,v(this)+a),this.A-=this.B.cc):this.A-=this.B.dc}function jg(){var a=this.L();Ne(this)?this.A-=this.B.dc:(D(this,v(this)+a),this.A-=this.B.cc)}function kg(){var a=this.L();Ke(this)||Ne(this)?(D(this,v(this)+a),this.A-=this.B.cc):this.A-=this.B.dc} function lg(){var a=this.L();Ke(this)||Ne(this)?this.A-=this.B.dc:(D(this,v(this)+a),this.A-=this.B.cc)}function mg(){var a=this.L();Oe(this)?(D(this,v(this)+a),this.A-=this.B.cc):this.A-=this.B.dc}function ng(){var a=this.L();Oe(this)?this.A-=this.B.dc:(D(this,v(this)+a),this.A-=this.B.cc)}function og(){var a=this.L();Le(this)?(D(this,v(this)+a),this.A-=this.B.cc):this.A-=this.B.dc}function pg(){var a=this.L();Le(this)?this.A-=this.B.dc:(D(this,v(this)+a),this.A-=this.B.cc)} function qg(){var a=this.L();!Oe(this)!=!Pe(this)?(D(this,v(this)+a),this.A-=this.B.cc):this.A-=this.B.dc}function rg(){var a=this.L();!Oe(this)==!Pe(this)?(D(this,v(this)+a),this.A-=this.B.cc):this.A-=this.B.dc}function sg(){var a=this.L();Ne(this)||!Oe(this)!=!Pe(this)?(D(this,v(this)+a),this.A-=this.B.cc):this.A-=this.B.dc}function tg(){var a=this.L();Ne(this)||!Oe(this)!=!Pe(this)?this.A-=this.B.dc:(D(this,v(this)+a),this.A-=this.B.cc)} -function ug(){this.Ve[this.Y()].call(this,vg,this.Y);this.A-=0>this.La?1:this.B.vi}function fe(){this.Ve[this.Y()].call(this,wg,Zf)}function ge(){this.gd[this.Y()].call(this,xg,Zf)}function yg(){var a=this.K()<<(this.Vc>>2);D(this,this.Ka());a&&x(this,w(this)+a);this.A-=this.B.cn}function zg(){D(this,this.Ka());this.A-=this.B.$m} -function he(){var a=this.K(),b=this.Y()&31;this.A-=11;y(this,this.H);var c=w(this)&this.xa.ja;if(0>8,c,d=Me(this);9<(a&15)||d?(a=a+6&15,b=b+1&255,c=d=!0):c=d=!1;this.G=this.G&-65536|b<<8|(this.Q=a);this.V=65536;c&&(this.Q|=this.V);d?We(this):Re(this);this.A-=this.B.pf},function(){this.wd[this.Y()].call(this, -uf)},function(){this.Pc[this.Y()].call(this,vf)},function(){this.xd[this.Y()].call(this,uf)},function(){this.Gb[this.Y()].call(this,vf)},function(){uf.call(this,this.G&255,this.Y());this.A--},function(){vf.call(this,this.G&this.na,this.K());this.A--},function(){this.S|=20;this.tb=this.cd=this.Ya;this.A-=this.B.Je},function(){var a=this.G&255,b=this.G>>8,c,d=Me(this);9<(a&15)||d?(a=a-6&15,b=b-1&255,c=d=!0):c=d=!1;this.G=this.G&-65536|b<<8|(this.Q=a);this.V=65536;c&&(this.Q|=this.V);d?We(this):Re(this); +function ug(){this.Ve[this.Y()].call(this,vg,this.Y);this.A-=0>this.La?1:this.B.wi}function fe(){this.Ve[this.Y()].call(this,wg,Zf)}function ge(){this.hd[this.Y()].call(this,xg,Zf)}function yg(){var a=this.K()<<(this.Wc>>2);D(this,this.Ka());a&&x(this,w(this)+a);this.A-=this.B.dn}function zg(){D(this,this.Ka());this.A-=this.B.an} +function he(){var a=this.K(),b=this.Y()&31;this.A-=11;y(this,this.H);var c=w(this)&this.xa.ja;if(0>8,c,d=Me(this);9<(a&15)||d?(a=a+6&15,b=b+1&255,c=d=!0):c=d=!1;this.G=this.G&-65536|b<<8|(this.Q=a);this.V=65536;c&&(this.Q|=this.V);d?We(this):Re(this);this.A-=this.B.pf},function(){this.xd[this.Y()].call(this, +uf)},function(){this.Qc[this.Y()].call(this,vf)},function(){this.yd[this.Y()].call(this,uf)},function(){this.Gb[this.Y()].call(this,vf)},function(){uf.call(this,this.G&255,this.Y());this.A--},function(){vf.call(this,this.G&this.na,this.K());this.A--},function(){this.S|=20;this.tb=this.dd=this.Ya;this.A-=this.B.Je},function(){var a=this.G&255,b=this.G>>8,c,d=Me(this);9<(a&15)||d?(a=a-6&15,b=b-1&255,c=d=!0):c=d=!1;this.G=this.G&-65536|b<<8|(this.Q=a);this.V=65536;c&&(this.Q|=this.V);d?We(this):Re(this); this.A-=this.B.pf},function(){this.W=(this.ia=this.G)+1;this.G=this.W&65535;this.Q=this.G|(this.Q&this.V?1:0)<<16;this.V=65536;this.A-=2},function(){this.W=(this.ia=this.I)+1;this.I=this.W&65535;this.Q=this.I|(this.Q&this.V?1:0)<<16;this.V=65536;this.A-=2},function(){this.W=(this.ia=this.J)+1;this.J=this.W&65535;this.Q=this.J|(this.Q&this.V?1:0)<<16;this.V=65536;this.A-=2},function(){this.W=(this.ia=this.C)+1;this.C=this.W&65535;this.Q=this.C|(this.Q&this.V?1:0)<<16;this.V=65536;this.A-=2},function(){var a; this.W=(this.ia=w(this))+1;x(this,a=this.ia&~this.na|this.W&this.na);this.Q=(a&this.na)>>>16|a&65535|(this.Q&this.V?1:0)<<16;this.V=65536;this.A-=2},function(){this.W=(this.ia=this.H)+1;this.H=this.W&65535;this.Q=this.H|(this.Q&this.V?1:0)<<16;this.V=65536;this.A-=2},function(){this.W=(this.ia=this.F)+1;this.F=this.W&65535;this.Q=this.F|(this.Q&this.V?1:0)<<16;this.V=65536;this.A-=2},function(){this.W=(this.ia=this.D)+1;this.D=this.W&65535;this.Q=this.D|(this.Q&this.V?1:0)<<16;this.V=65536;this.A-= 2},function(){this.W=(this.ia=this.G)-1;this.G=this.W&65535;this.Q=this.G|(this.Q&this.V?1:0)<<16;this.V=65536;this.A-=2},function(){this.W=(this.ia=this.I)-1;this.I=this.W&65535;this.Q=this.I|(this.Q&this.V?1:0)<<16;this.V=65536;this.A-=2},function(){this.W=(this.ia=this.J)-1;this.J=this.W&65535;this.Q=this.J|(this.Q&this.V?1:0)<<16;this.V=65536;this.A-=2},function(){this.W=(this.ia=this.C)-1;this.C=this.W&65535;this.Q=this.C|(this.Q&this.V?1:0)<<16;this.V=65536;this.A-=2},function(){var a;this.W= (this.ia=w(this))-1;x(this,a=this.ia&~this.na|this.W&this.na);this.Q=(a&this.na)>>>16|a&65535|(this.Q&this.V?1:0)<<16;this.V=65536;this.A-=2},function(){this.W=(this.ia=this.H)-1;this.H=this.W&65535;this.Q=this.H|(this.Q&this.V?1:0)<<16;this.V=65536;this.A-=2},function(){this.W=(this.ia=this.F)-1;this.F=this.W&65535;this.Q=this.F|(this.Q&this.V?1:0)<<16;this.V=65536;this.A-=2},function(){this.W=(this.ia=this.D)-1;this.D=this.W&65535;this.Q=this.D|(this.Q&this.V?1:0)<<16;this.V=65536;this.A-=2},function(){y(this, -this.G&this.na);this.A-=this.B.yc},function(){y(this,this.I&this.na);this.A-=this.B.yc},function(){y(this,this.J&this.na);this.A-=this.B.yc},function(){y(this,this.C&this.na);this.A-=this.B.yc},function(){y(this,w(this)-this.Vc&this.na);this.A-=this.B.yc},function(){y(this,this.H&this.na);this.A-=this.B.yc},function(){y(this,this.F&this.na);this.A-=this.B.yc},function(){y(this,this.D&this.na);this.A-=this.B.yc},function(){this.G=this.G&~this.na|this.Ka();this.A-=this.B.rc},function(){this.I=this.I& -~this.na|this.Ka();this.A-=this.B.rc},function(){this.J=this.J&~this.na|this.Ka();this.A-=this.B.rc},function(){this.C=this.C&~this.na|this.Ka();this.A-=this.B.rc},function(){x(this,w(this)&~this.na|this.Ka());this.A-=this.B.rc},function(){this.H=this.H&~this.na|this.Ka();this.A-=this.B.rc},function(){this.F=this.F&~this.na|this.Ka();this.A-=this.B.rc},function(){this.D=this.D&~this.na|this.Ka();this.A-=this.B.rc},eg,fg,gg,hg,ig,jg,kg,lg,mg,ng,og,pg,qg,rg,sg,tg,eg,fg,gg,hg,ig,jg,kg,lg,mg,ng,og,pg, -qg,rg,sg,tg,ug,function(){this.gd[this.Y()].call(this,Eg,this.K);this.A-=0>this.La?1:this.B.vi},ug,function(){this.gd[this.Y()].call(this,Eg,this.L);this.A-=0>this.La?1:this.B.vi},function(){this.wd[this.Y()].call(this,Qf)},function(){this.Pc[this.Y()].call(this,Rf)},function(){this.xd[this.Nh=this.Y()].call(this,Sf)},function(){this.Gb[this.Nh=this.Y()].call(this,Tf)},function(){this.S|=1;this.wd[this.Y()].call(this,Ef)},function(){this.S|=1;this.Pc[this.Y()].call(this,Ef)},function(){this.xd[this.Y()].call(this, -Ef)},function(){this.Gb[this.Y()].call(this,Ef)},function(){var a=this.Y();switch((a&56)>>3){case 0:this.Pb=this.Ja.va;break;case 1:this.Pb=this.ra.va;break;case 2:this.Pb=this.xa.va;break;case 3:this.Pb=this.Ya.va;break;default:U.call(this);return}this.S|=1;this.Pc[a].call(this,Ff)},function(){this.S|=1;this.tb=this.cd=this.wn;this.Gb[this.Y()].call(this,Bf)},function(){var a,b=this.Y(),c=(b&56)>>3;switch(c){case 0:a=this.G;break;case 2:a=this.J;break;case 3:a=this.C;break;default:if(80286==this.za|| +this.G&this.na);this.A-=this.B.zc},function(){y(this,this.I&this.na);this.A-=this.B.zc},function(){y(this,this.J&this.na);this.A-=this.B.zc},function(){y(this,this.C&this.na);this.A-=this.B.zc},function(){y(this,w(this)-this.Wc&this.na);this.A-=this.B.zc},function(){y(this,this.H&this.na);this.A-=this.B.zc},function(){y(this,this.F&this.na);this.A-=this.B.zc},function(){y(this,this.D&this.na);this.A-=this.B.zc},function(){this.G=this.G&~this.na|this.Ka();this.A-=this.B.sc},function(){this.I=this.I& +~this.na|this.Ka();this.A-=this.B.sc},function(){this.J=this.J&~this.na|this.Ka();this.A-=this.B.sc},function(){this.C=this.C&~this.na|this.Ka();this.A-=this.B.sc},function(){x(this,w(this)&~this.na|this.Ka());this.A-=this.B.sc},function(){this.H=this.H&~this.na|this.Ka();this.A-=this.B.sc},function(){this.F=this.F&~this.na|this.Ka();this.A-=this.B.sc},function(){this.D=this.D&~this.na|this.Ka();this.A-=this.B.sc},eg,fg,gg,hg,ig,jg,kg,lg,mg,ng,og,pg,qg,rg,sg,tg,eg,fg,gg,hg,ig,jg,kg,lg,mg,ng,og,pg, +qg,rg,sg,tg,ug,function(){this.hd[this.Y()].call(this,Eg,this.K);this.A-=0>this.La?1:this.B.wi},ug,function(){this.hd[this.Y()].call(this,Eg,this.L);this.A-=0>this.La?1:this.B.wi},function(){this.xd[this.Y()].call(this,Qf)},function(){this.Qc[this.Y()].call(this,Rf)},function(){this.yd[this.Oh=this.Y()].call(this,Sf)},function(){this.Gb[this.Oh=this.Y()].call(this,Tf)},function(){this.S|=1;this.xd[this.Y()].call(this,Ef)},function(){this.S|=1;this.Qc[this.Y()].call(this,Ef)},function(){this.yd[this.Y()].call(this, +Ef)},function(){this.Gb[this.Y()].call(this,Ef)},function(){var a=this.Y();switch((a&56)>>3){case 0:this.Pb=this.Ja.va;break;case 1:this.Pb=this.ra.va;break;case 2:this.Pb=this.xa.va;break;case 3:this.Pb=this.Ya.va;break;default:U.call(this);return}this.S|=1;this.Qc[a].call(this,Ff)},function(){this.S|=1;this.tb=this.dd=this.xn;this.Gb[this.Y()].call(this,Bf)},function(){var a,b=this.Y(),c=(b&56)>>3;switch(c){case 0:a=this.G;break;case 2:a=this.J;break;case 3:a=this.C;break;default:if(80286==this.za|| 80386==this.za&&4!=c&&5!=c){Ud.call(this);return}switch(c){case 1:a=this.I;break;case 4:a=w(this);break;case 5:a=this.H;break;case 6:a=this.F;break;case 7:a=this.D}}this.Gb[b].call(this,Ef);switch(c){case 0:Ie(this,this.G);this.G=a;break;case 1:Ge(this,this.I);this.I=a;break;case 2:Kd(this,this.J);this.J=a;break;case 3:He(this,this.C);this.C=a;break;case 4:Ie(this,w(this));x(this,a);break;case 5:Ge(this,this.H);this.H=a;break;case 6:Kd(this,this.F);this.F=a;break;case 7:He(this,this.D),this.D=a}}, -function(){this.S|=1;this.gd[this.Y()].call(this,Fg,this.Ka)},function(){this.A-=3},function(){var a=this.G;this.G=this.I;this.I=a;this.A-=3},function(){var a=this.G;this.G=this.J;this.J=a;this.A-=3},function(){var a=this.G;this.G=this.C;this.C=a;this.A-=3},function(){var a=this.G;this.G=w(this);x(this,a);this.A-=3},function(){var a=this.G;this.G=this.H;this.H=a;this.A-=3},function(){var a=this.G;this.G=this.F;this.F=a;this.A-=3},function(){var a=this.G;this.G=this.D;this.D=a;this.A-=3},function(){this.G= -2==this.Vc?this.G&-65536|this.G<<24>>24&65535:this.G<<16>>16;this.A-=2},function(){this.J=2==this.Vc?this.J&-65536|(this.G&32768?65535:0):this.G&-2147483648?-1:0;this.A-=this.B.jm},function(){tf.call(this,this.K(),ef(this));this.A-=this.B.mm},function(){this.Xa("WAIT not implemented",1);this.A--},function(){y(this,Gb(this));this.A-=this.B.yc},function(){Id(this,this.Ka());this.A-=this.B.rc},function(){var a=this.G>>8;a&Pb?Ve(this):Qe(this);a&Ob?Le(this)||(this.W^=1):Le(this)&&(this.W^=1);a&Nb?We(this): -Re(this);a&Mb?Xe(this):Se(this);a&Lb?Ye(this):Te(this);this.A-=this.B.Nb},function(){this.G=this.G&255|(Gb(this)&pd)<<8;this.A-=this.B.Nb},function(){var a=this.G&-256,b;b=this.K();b=this.Oa(this.tb.Ic(b,0));this.G=a|b;this.A-=this.B.lk},function(){this.G=this.G&~this.na|Md(this,this.tb,this.K());this.A-=this.B.lk},function(){var a=this.K(),b=this.G;this.ud(this.tb.jc(a,0),b);this.A-=this.B.mk},function(){var a=this.K(),b=this.G;this.Qa(this.tb.jc(a,1),b);this.A-=this.B.mk},function(){var a=1,b=0, -c=this.B.nk;this.Ca&192&&(a=this.I,b=1,c=this.B.pk,this.Ca&256||(this.A-=this.B.ok));if(a--){var d=this.wa&Ib?-1:1,e=this.Oa(this.tb.Ic(this.F,0));this.ud(this.Ja.jc(this.D&this.ja,0),e);this.F=this.F&~this.ja|this.F+d&this.ja;this.D=this.D&~this.ja|this.D+d&this.ja;this.A-=c;this.I-=b;a&&(this.ka=this.Ob,this.S|=256)}},function(){var a=1,b=0,c=this.B.nk;this.Ca&192&&(a=this.I,b=1,c=this.B.pk,this.Ca&256||(this.A-=this.B.ok));if(a--){var d=this.wa&Ib?-2:2,e=Md(this,this.tb,this.F);this.Qa(this.Ja.jc(this.D& -this.ja,1),e);this.F=this.F&~this.ja|this.F+d&this.ja;this.D=this.D&~this.ja|this.D+d&this.ja;this.A-=c;this.I-=b;a&&(this.ka=this.Ob,this.S|=256)}},function(){var a=1,b=0,c=this.B.Yj;this.Ca&192&&(a=this.I,b=1,c=this.B.$j,this.Ca&256||(this.A-=this.B.Zj));if(a--){var d=this.wa&Ib?-1:1,e=af(this,this.tb,this.F&this.ja),f=cf(this,this.Ja,this.D&this.ja);uf.call(this,e,f);this.F=this.F&~this.ja|this.F+d&this.ja;this.D=this.D&~this.ja|this.D+d&this.ja;this.A-=c-this.B.Cb;this.I-=b;a&&Ne(this)==(this.Ca& -64)&&(this.ka=this.Ob,this.S|=256)}},function(){var a=1,b=0,c=this.B.Yj;this.Ca&192&&(a=this.I,b=1,c=this.B.$j,this.Ca&256||(this.A-=this.B.Zj));if(a--){var d=this.wa&Ib?-2:2,e=bf(this,this.tb,this.F&this.ja),f=df(this,this.Ja,this.D&this.ja);vf.call(this,e,f);this.F=this.F&~this.ja|this.F+d&this.ja;this.D=this.D&~this.ja|this.D+d&this.ja;this.A-=c-this.B.Cb;this.I-=b;a&&Ne(this)==(this.Ca&64)&&(this.ka=this.Ob,this.S|=256)}},function(){this.Q=this.W=this.ia=this.G&this.Y();this.V=256;this.A-=this.B.pf}, -function(){this.Q=this.W=this.ia=this.G&this.K();this.V=65536;this.A-=this.B.pf},function(){var a=1,b=0,c=this.B.yk;this.Ca&192&&(a=this.I,b=1,c=this.B.Ak,this.Ca&256||(this.A-=this.B.zk));if(a--){var d=this.G;this.ud(this.Ja.jc(this.D&this.ja,0),d);this.D=this.D&~this.ja|this.D+(this.wa&Ib?-1:1)&this.ja;this.A-=c;this.I-=b;a&&(this.ka=this.Ob,this.S|=256)}},function(){var a=1,b=0,c=this.B.yk;this.Ca&192&&(a=this.I,b=1,c=this.B.Ak,this.Ca&256||(this.A-=this.B.zk));if(a--){var d=this.G;this.Qa(this.Ja.jc(this.D& -this.ja,1),d);this.D=this.D&~this.ja|this.D+(this.wa&Ib?-2:2)&this.ja;this.A-=c;this.I-=b;a&&(this.ka=this.Ob,this.S|=256)}},function(){var a=1,b=0,c=this.B.fk;this.Ca&192&&(a=this.I,b=1,c=this.B.hk,this.Ca&256||(this.A-=this.B.gk));a--&&(this.G=this.G&-256|this.Oa(this.tb.Ic(this.F&this.ja,0)),this.F=this.F&~this.ja|this.F+(this.wa&Ib?-1:1)&this.ja,this.A-=c,this.I-=b,a&&(this.ka=this.Ob,this.S|=256))},function(){var a=1,b=0,c=this.B.fk;this.Ca&192&&(a=this.I,b=1,c=this.B.hk,this.Ca&256||(this.A-= -this.B.gk));a--&&(this.G=Md(this,this.tb,this.F&this.ja),this.F=this.F&~this.ja|this.F+(this.wa&Ib?-2:2)&this.ja,this.A-=c,this.I-=b,a&&(this.ka=this.Ob,this.S|=256))},function(){var a=1,b=0,c=this.B.sk;this.Ca&192&&(a=this.I,b=1,c=this.B.uk,this.Ca&256||(this.A-=this.B.tk));a--&&(uf.call(this,this.G&255,cf(this,this.Ja,this.D&this.ja)),this.D=this.D&~this.ja|this.D+(this.wa&Ib?-1:1)&this.ja,this.A-=c-this.B.Cb,this.I-=b,a&&Ne(this)==(this.Ca&64)&&(this.ka=this.Ob,this.S|=256))},function(){var a= -1,b=0,c=this.B.sk;this.Ca&192&&(a=this.I,b=1,c=this.B.uk,this.Ca&256||(this.A-=this.B.tk));a--&&(vf.call(this,this.G,df(this,this.Ja,this.D&this.ja)),this.D=this.D&~this.ja|this.D+(this.wa&Ib?-2:2)&this.ja,this.A-=c-this.B.Cb,this.I-=b,a&&Ne(this)==(this.Ca&64)&&(this.ka=this.Ob,this.S|=256))},function(){this.G=this.G&-256|this.Y();this.A-=this.B.Nb},function(){this.I=this.I&-256|this.Y();this.A-=this.B.Nb},function(){this.J=this.J&-256|this.Y();this.A-=this.B.Nb},function(){this.C=this.C&-256|this.Y(); +function(){this.S|=1;this.hd[this.Y()].call(this,Fg,this.Ka)},function(){this.A-=3},function(){var a=this.G;this.G=this.I;this.I=a;this.A-=3},function(){var a=this.G;this.G=this.J;this.J=a;this.A-=3},function(){var a=this.G;this.G=this.C;this.C=a;this.A-=3},function(){var a=this.G;this.G=w(this);x(this,a);this.A-=3},function(){var a=this.G;this.G=this.H;this.H=a;this.A-=3},function(){var a=this.G;this.G=this.F;this.F=a;this.A-=3},function(){var a=this.G;this.G=this.D;this.D=a;this.A-=3},function(){this.G= +2==this.Wc?this.G&-65536|this.G<<24>>24&65535:this.G<<16>>16;this.A-=2},function(){this.J=2==this.Wc?this.J&-65536|(this.G&32768?65535:0):this.G&-2147483648?-1:0;this.A-=this.B.km},function(){tf.call(this,this.K(),ef(this));this.A-=this.B.nm},function(){this.Xa("WAIT not implemented",1);this.A--},function(){y(this,Gb(this));this.A-=this.B.zc},function(){Id(this,this.Ka());this.A-=this.B.sc},function(){var a=this.G>>8;a&Pb?Ve(this):Qe(this);a&Ob?Le(this)||(this.W^=1):Le(this)&&(this.W^=1);a&Nb?We(this): +Re(this);a&Mb?Xe(this):Se(this);a&Lb?Ye(this):Te(this);this.A-=this.B.Nb},function(){this.G=this.G&255|(Gb(this)&pd)<<8;this.A-=this.B.Nb},function(){var a=this.G&-256,b;b=this.K();b=this.Oa(this.tb.Jc(b,0));this.G=a|b;this.A-=this.B.mk},function(){this.G=this.G&~this.na|Md(this,this.tb,this.K());this.A-=this.B.mk},function(){var a=this.K(),b=this.G;this.vd(this.tb.jc(a,0),b);this.A-=this.B.nk},function(){var a=this.K(),b=this.G;this.Qa(this.tb.jc(a,1),b);this.A-=this.B.nk},function(){var a=1,b=0, +c=this.B.ok;this.Da&192&&(a=this.I,b=1,c=this.B.qk,this.Da&256||(this.A-=this.B.pk));if(a--){var d=this.wa&Ib?-1:1,e=this.Oa(this.tb.Jc(this.F,0));this.vd(this.Ja.jc(this.D&this.ja,0),e);this.F=this.F&~this.ja|this.F+d&this.ja;this.D=this.D&~this.ja|this.D+d&this.ja;this.A-=c;this.I-=b;a&&(this.ka=this.Ob,this.S|=256)}},function(){var a=1,b=0,c=this.B.ok;this.Da&192&&(a=this.I,b=1,c=this.B.qk,this.Da&256||(this.A-=this.B.pk));if(a--){var d=this.wa&Ib?-2:2,e=Md(this,this.tb,this.F);this.Qa(this.Ja.jc(this.D& +this.ja,1),e);this.F=this.F&~this.ja|this.F+d&this.ja;this.D=this.D&~this.ja|this.D+d&this.ja;this.A-=c;this.I-=b;a&&(this.ka=this.Ob,this.S|=256)}},function(){var a=1,b=0,c=this.B.Zj;this.Da&192&&(a=this.I,b=1,c=this.B.ak,this.Da&256||(this.A-=this.B.$j));if(a--){var d=this.wa&Ib?-1:1,e=af(this,this.tb,this.F&this.ja),f=cf(this,this.Ja,this.D&this.ja);uf.call(this,e,f);this.F=this.F&~this.ja|this.F+d&this.ja;this.D=this.D&~this.ja|this.D+d&this.ja;this.A-=c-this.B.Cb;this.I-=b;a&&Ne(this)==(this.Da& +64)&&(this.ka=this.Ob,this.S|=256)}},function(){var a=1,b=0,c=this.B.Zj;this.Da&192&&(a=this.I,b=1,c=this.B.ak,this.Da&256||(this.A-=this.B.$j));if(a--){var d=this.wa&Ib?-2:2,e=bf(this,this.tb,this.F&this.ja),f=df(this,this.Ja,this.D&this.ja);vf.call(this,e,f);this.F=this.F&~this.ja|this.F+d&this.ja;this.D=this.D&~this.ja|this.D+d&this.ja;this.A-=c-this.B.Cb;this.I-=b;a&&Ne(this)==(this.Da&64)&&(this.ka=this.Ob,this.S|=256)}},function(){this.Q=this.W=this.ia=this.G&this.Y();this.V=256;this.A-=this.B.pf}, +function(){this.Q=this.W=this.ia=this.G&this.K();this.V=65536;this.A-=this.B.pf},function(){var a=1,b=0,c=this.B.zk;this.Da&192&&(a=this.I,b=1,c=this.B.Bk,this.Da&256||(this.A-=this.B.Ak));if(a--){var d=this.G;this.vd(this.Ja.jc(this.D&this.ja,0),d);this.D=this.D&~this.ja|this.D+(this.wa&Ib?-1:1)&this.ja;this.A-=c;this.I-=b;a&&(this.ka=this.Ob,this.S|=256)}},function(){var a=1,b=0,c=this.B.zk;this.Da&192&&(a=this.I,b=1,c=this.B.Bk,this.Da&256||(this.A-=this.B.Ak));if(a--){var d=this.G;this.Qa(this.Ja.jc(this.D& +this.ja,1),d);this.D=this.D&~this.ja|this.D+(this.wa&Ib?-2:2)&this.ja;this.A-=c;this.I-=b;a&&(this.ka=this.Ob,this.S|=256)}},function(){var a=1,b=0,c=this.B.gk;this.Da&192&&(a=this.I,b=1,c=this.B.ik,this.Da&256||(this.A-=this.B.hk));a--&&(this.G=this.G&-256|this.Oa(this.tb.Jc(this.F&this.ja,0)),this.F=this.F&~this.ja|this.F+(this.wa&Ib?-1:1)&this.ja,this.A-=c,this.I-=b,a&&(this.ka=this.Ob,this.S|=256))},function(){var a=1,b=0,c=this.B.gk;this.Da&192&&(a=this.I,b=1,c=this.B.ik,this.Da&256||(this.A-= +this.B.hk));a--&&(this.G=Md(this,this.tb,this.F&this.ja),this.F=this.F&~this.ja|this.F+(this.wa&Ib?-2:2)&this.ja,this.A-=c,this.I-=b,a&&(this.ka=this.Ob,this.S|=256))},function(){var a=1,b=0,c=this.B.tk;this.Da&192&&(a=this.I,b=1,c=this.B.vk,this.Da&256||(this.A-=this.B.uk));a--&&(uf.call(this,this.G&255,cf(this,this.Ja,this.D&this.ja)),this.D=this.D&~this.ja|this.D+(this.wa&Ib?-1:1)&this.ja,this.A-=c-this.B.Cb,this.I-=b,a&&Ne(this)==(this.Da&64)&&(this.ka=this.Ob,this.S|=256))},function(){var a= +1,b=0,c=this.B.tk;this.Da&192&&(a=this.I,b=1,c=this.B.vk,this.Da&256||(this.A-=this.B.uk));a--&&(vf.call(this,this.G,df(this,this.Ja,this.D&this.ja)),this.D=this.D&~this.ja|this.D+(this.wa&Ib?-2:2)&this.ja,this.A-=c-this.B.Cb,this.I-=b,a&&Ne(this)==(this.Da&64)&&(this.ka=this.Ob,this.S|=256))},function(){this.G=this.G&-256|this.Y();this.A-=this.B.Nb},function(){this.I=this.I&-256|this.Y();this.A-=this.B.Nb},function(){this.J=this.J&-256|this.Y();this.A-=this.B.Nb},function(){this.C=this.C&-256|this.Y(); this.A-=this.B.Nb},function(){this.G=this.G&255|this.Y()<<8;this.A-=this.B.Nb},function(){this.I=this.I&255|this.Y()<<8;this.A-=this.B.Nb},function(){this.J=this.J&255|this.Y()<<8;this.A-=this.B.Nb},function(){this.C=this.C&255|this.Y()<<8;this.A-=this.B.Nb},function(){this.G=this.G&~this.na|this.K();this.A-=this.B.Nb},function(){this.I=this.I&~this.na|this.K();this.A-=this.B.Nb},function(){this.J=this.J&~this.na|this.K();this.A-=this.B.Nb},function(){this.C=this.C&~this.na|this.K();this.A-=this.B.Nb}, -function(){x(this,w(this)&~this.na|this.K());this.A-=this.B.Nb},function(){this.H=this.H&~this.na|this.K();this.A-=this.B.Nb},function(){this.F=this.F&~this.na|this.K();this.A-=this.B.Nb},function(){this.D=this.D&~this.na|this.K();this.A-=this.B.Nb},yg,zg,yg,zg,function(){this.Gb[this.Y()].call(this,Cf)},function(){this.Gb[this.Y()].call(this,Af)},function(){this.S|=1;this.Ve[this.Y()].call(this,Gg,this.Y)},function(){this.S|=1;this.gd[this.Y()].call(this,Gg,this.K)},Ag,Bg,Ag,Bg,function(){hf.call(this, -3,null,this.B.Dm)},function(){var a=this.Y();ye(this,a)?hf.call(this,a,null,0):this.A--},function(){Pe(this)?hf.call(this,4,null,this.B.Em):this.A-=this.B.Fm},function(){this.A-=this.B.Bm;if(this.gc&1&&this.wa&16384){var a=this.la(this.eb.ta+0);Hd.call(this.ra,a,!1)}else{var a=this.ra.bb,b=this.Ka(),c=this.Ka(),d=this.Ka();null!=Jd(this,b,c,!1)&&(Id(this,d,a),this.Eg&&Ce(this,this.ka))}},function(){this.Ve[this.Y()].call(this,wg,Xf)},function(){this.gd[this.Y()].call(this,xg,Xf)},function(){this.Ve[this.Y()].call(this, -wg,Yf)},function(){this.gd[this.Y()].call(this,xg,Yf)},function(){var a=this.Y(),b=this.G&255;this.G=(b/a&255)<<8|b%a;this.V=256;this.Q=this.W=b;this.A-=this.B.gm},function(){var a=this.Y();this.Q=this.W=this.G=(this.G>>8)*a+this.G&255;this.V=256;this.A-=this.B.fm},function(){this.G=this.G&-256|(Ke(this)?255:0);this.A-=2},function(){this.G=this.G&-256|af(this,this.tb,this.C+(this.G&255)&65535);this.A-=this.B.en},Cg,Cg,Cg,Cg,Cg,Cg,Cg,Cg,function(){var a=this.L();(this.I=this.I-1&this.ja)&&this.Q&this.V- -1?(D(this,v(this)+a),this.A-=this.B.Mm):this.A-=this.B.ik},function(){var a=this.L();!(this.I=this.I-1&this.ja)||this.Q&this.V-1?this.A-=this.B.kk:(D(this,v(this)+a),this.A-=this.B.jk)},function(){var a=this.L();(this.I=this.I-1&this.ja)?(D(this,v(this)+a),this.A-=this.B.Lm):this.A-=this.B.ik},function(){var a=this.L();this.I?this.A-=this.B.kk:(D(this,v(this)+a),this.A-=this.B.jk)},function(){var a=this.Y();this.G=this.G&-256|cc(this.ha,a,this.ka-2);this.A-=this.B.ck},function(){var a=this.Y();this.G= -cc(this.ha,a,this.ka-2);this.G|=cc(this.ha,a+1&65535,this.ka-2)<<8;this.A-=this.B.ck},function(){var a=this.Y();gc(this.ha,a,this.G&255,this.ka-2);this.A-=this.B.rk},function(){var a=this.Y();gc(this.ha,a,this.G&255,this.ka-2);gc(this.ha,a+1&65535,this.G>>8,this.ka-2);this.A-=this.B.rk},function(){var a=this.K();y(this,v(this));D(this,v(this)+a);this.A-=this.B.km},function(){var a=this.K();D(this,v(this)+a);this.A-=this.B.dk},function(){Jd(this,this.K(),ef(this));this.A-=this.B.Hm},function(){var a= -this.L();D(this,v(this)+a);this.A-=this.B.dk},function(){this.G=this.G&-256|cc(this.ha,this.J,this.ka-1);this.A-=this.B.bk},function(){this.G=cc(this.ha,this.J,this.ka-1);this.G|=cc(this.ha,this.J+1&65535,this.ka-1)<<8;this.A-=this.B.bk},function(){gc(this.ha,this.J,this.G&255,this.ka-1);this.A-=this.B.qk},function(){gc(this.ha,this.J,this.G&255,this.ka-1);gc(this.ha,this.J+1&65535,this.G>>8,this.ka-1);this.A-=this.B.qk},Dg,Dg,function(){this.S|=132;this.A-=this.B.Je},function(){this.S|=68;this.A-= -this.B.Je},function(){this.wb|=4;this.A-=2;this.Z&&ff(this.Z)?(Je(this),this.lb()):this.wa&Jb||(this.Z&&Je(this),this.lb())},function(){Ke(this)?Qe(this):Ve(this);this.A-=2},function(){this.Pb=-1;this.Ve[this.Y()].call(this,Hg,$f);0<=this.Pb&&(this.G=this.Pb)},function(){this.Pb=-1;this.gd[this.Y()].call(this,Ig,$f);0<=this.Pb&&(this.G=this.Pb,this.J=this.uh)},function(){this.Q&=~this.V;this.A-=2},function(){this.Q|=this.V;this.A-=2},function(){this.wa&=~Jb;this.A-=this.B.im},function(){this.wa|= -Jb;this.S|=4;this.A-=2},function(){this.wa&=~Ib;this.A-=2},function(){this.wa|=Ib;this.A-=2},function(){this.Ve[this.Y()].call(this,Rd,$f)},function(){this.gd[this.Y()].call(this,Sd,$f)}],vg=[nf,Gf,lf,Jf,pf,Lf,Uf,uf],Eg=[of,Hf,mf,Kf,qf,Pf,Vf,vf],Fg=[function(a,b){this.A-=0>this.La?this.B.rc:this.B.Xm;return b},ag,ag,ag,ag,ag,ag,ag],Gg=[function(a,b){this.A-=0>this.La?this.B.Pm:this.B.Nm;return b},bg,bg,bg,bg,bg,bg,bg],wg=[function(a,b){var c=a;if(b){var d,e=b&7;e?c=(d=a<>8-e)&255:d=a<<8;Wf.call(this, +function(){x(this,w(this)&~this.na|this.K());this.A-=this.B.Nb},function(){this.H=this.H&~this.na|this.K();this.A-=this.B.Nb},function(){this.F=this.F&~this.na|this.K();this.A-=this.B.Nb},function(){this.D=this.D&~this.na|this.K();this.A-=this.B.Nb},yg,zg,yg,zg,function(){this.Gb[this.Y()].call(this,Cf)},function(){this.Gb[this.Y()].call(this,Af)},function(){this.S|=1;this.Ve[this.Y()].call(this,Gg,this.Y)},function(){this.S|=1;this.hd[this.Y()].call(this,Gg,this.K)},Ag,Bg,Ag,Bg,function(){hf.call(this, +3,null,this.B.Em)},function(){var a=this.Y();ye(this,a)?hf.call(this,a,null,0):this.A--},function(){Pe(this)?hf.call(this,4,null,this.B.Fm):this.A-=this.B.Gm},function(){this.A-=this.B.Cm;if(this.gc&1&&this.wa&16384){var a=this.la(this.eb.ta+0);Hd.call(this.ra,a,!1)}else{var a=this.ra.bb,b=this.Ka(),c=this.Ka(),d=this.Ka();null!=Jd(this,b,c,!1)&&(Id(this,d,a),this.Eg&&Ce(this,this.ka))}},function(){this.Ve[this.Y()].call(this,wg,Xf)},function(){this.hd[this.Y()].call(this,xg,Xf)},function(){this.Ve[this.Y()].call(this, +wg,Yf)},function(){this.hd[this.Y()].call(this,xg,Yf)},function(){var a=this.Y(),b=this.G&255;this.G=(b/a&255)<<8|b%a;this.V=256;this.Q=this.W=b;this.A-=this.B.hm},function(){var a=this.Y();this.Q=this.W=this.G=(this.G>>8)*a+this.G&255;this.V=256;this.A-=this.B.gm},function(){this.G=this.G&-256|(Ke(this)?255:0);this.A-=2},function(){this.G=this.G&-256|af(this,this.tb,this.C+(this.G&255)&65535);this.A-=this.B.fn},Cg,Cg,Cg,Cg,Cg,Cg,Cg,Cg,function(){var a=this.L();(this.I=this.I-1&this.ja)&&this.Q&this.V- +1?(D(this,v(this)+a),this.A-=this.B.Nm):this.A-=this.B.jk},function(){var a=this.L();!(this.I=this.I-1&this.ja)||this.Q&this.V-1?this.A-=this.B.lk:(D(this,v(this)+a),this.A-=this.B.kk)},function(){var a=this.L();(this.I=this.I-1&this.ja)?(D(this,v(this)+a),this.A-=this.B.Mm):this.A-=this.B.jk},function(){var a=this.L();this.I?this.A-=this.B.lk:(D(this,v(this)+a),this.A-=this.B.kk)},function(){var a=this.Y();this.G=this.G&-256|cc(this.ha,a,this.ka-2);this.A-=this.B.dk},function(){var a=this.Y();this.G= +cc(this.ha,a,this.ka-2);this.G|=cc(this.ha,a+1&65535,this.ka-2)<<8;this.A-=this.B.dk},function(){var a=this.Y();gc(this.ha,a,this.G&255,this.ka-2);this.A-=this.B.sk},function(){var a=this.Y();gc(this.ha,a,this.G&255,this.ka-2);gc(this.ha,a+1&65535,this.G>>8,this.ka-2);this.A-=this.B.sk},function(){var a=this.K();y(this,v(this));D(this,v(this)+a);this.A-=this.B.lm},function(){var a=this.K();D(this,v(this)+a);this.A-=this.B.ek},function(){Jd(this,this.K(),ef(this));this.A-=this.B.Im},function(){var a= +this.L();D(this,v(this)+a);this.A-=this.B.ek},function(){this.G=this.G&-256|cc(this.ha,this.J,this.ka-1);this.A-=this.B.ck},function(){this.G=cc(this.ha,this.J,this.ka-1);this.G|=cc(this.ha,this.J+1&65535,this.ka-1)<<8;this.A-=this.B.ck},function(){gc(this.ha,this.J,this.G&255,this.ka-1);this.A-=this.B.rk},function(){gc(this.ha,this.J,this.G&255,this.ka-1);gc(this.ha,this.J+1&65535,this.G>>8,this.ka-1);this.A-=this.B.rk},Dg,Dg,function(){this.S|=132;this.A-=this.B.Je},function(){this.S|=68;this.A-= +this.B.Je},function(){this.wb|=4;this.A-=2;this.Z&&ff(this.Z)?(Je(this),this.lb()):this.wa&Jb||(this.Z&&Je(this),this.lb())},function(){Ke(this)?Qe(this):Ve(this);this.A-=2},function(){this.Pb=-1;this.Ve[this.Y()].call(this,Hg,$f);0<=this.Pb&&(this.G=this.Pb)},function(){this.Pb=-1;this.hd[this.Y()].call(this,Ig,$f);0<=this.Pb&&(this.G=this.Pb,this.J=this.vh)},function(){this.Q&=~this.V;this.A-=2},function(){this.Q|=this.V;this.A-=2},function(){this.wa&=~Jb;this.A-=this.B.jm},function(){this.wa|= +Jb;this.S|=4;this.A-=2},function(){this.wa&=~Ib;this.A-=2},function(){this.wa|=Ib;this.A-=2},function(){this.Ve[this.Y()].call(this,Rd,$f)},function(){this.hd[this.Y()].call(this,Sd,$f)}],vg=[nf,Gf,lf,Jf,pf,Lf,Uf,uf],Eg=[of,Hf,mf,Kf,qf,Pf,Vf,vf],Fg=[function(a,b){this.A-=0>this.La?this.B.sc:this.B.Ym;return b},ag,ag,ag,ag,ag,ag,ag],Gg=[function(a,b){this.A-=0>this.La?this.B.Qm:this.B.Om;return b},bg,bg,bg,bg,bg,bg,bg],wg=[function(a,b){var c=a;if(b){var d,e=b&7;e?c=(d=a<>8-e)&255:d=a<<8;Wf.call(this, d,256)}return c},function(a,b){var c=a;if(b){var d,c=b&7,c=d=(a>>c|a<<8-c)&255;d&128&&(d|=256);Wf.call(this,d,256)}return c},function(a,b){var c=a;if(b){var d;(d=(b&this.ig)%9)?(d=a<>9-d,c=d&255):d=a|(this.Q&this.V?1:0)<<8;Wf.call(this,d,256)}return c},function(a,b){var c=a;b&&(c=(b&this.ig)%9,c=a>>c|(this.Q&this.V?1:0)<<8-c|a<<9-c,Wf.call(this,c,256),c&=255);return c},function(a,b){var c=a;b&&(c=8>b-1;this.Q=this.W=c>>1;this.Q=c&1?this.Q|256:this.Q&-257;this.ia=a^this.Q;this.V=256;a=this.Q}return a&255},bg,function(a,b){if(b){8>24>>b-1;this.Q=this.W=c>>1;this.Q=c&1?this.Q|256:this.Q&-257;this.ia=a^this.Q;this.V=256;a=this.Q}return a&255}],xg=[function(a,b){var c=a;if(b){var d,e=b&15;e?c=(d=a<>16-e)&65535:d=a<<16;Wf.call(this,d,65536)}return c},function(a,b){var c=a;if(b){var d,c=b&15,c=d=(a>>c|a<<16-c)&65535;d&32768&&(d|=65536); Wf.call(this,d,65536)}return c},function(a,b){var c=a;if(b){var d;(d=(b&this.ig)%17)?(d=a<>17-d,c=d&65535):d=a|(this.Q&this.V?1:0)<<16;Wf.call(this,d,65536)}return c},function(a,b){var c=a;b&&(c=(b&this.ig)%17,c=a>>c|(this.Q&this.V?1:0)<<16-c|a<<17-c,Wf.call(this,c,65536),c&=65535);return c},function(a,b){var c=a;b&&(c=16>b-1;this.Q=this.W=c>>1;this.Q=c& -1?this.Q|65536:this.Q&-65537;this.ia=a^this.Q;this.V=65536;a=this.Q}return a&65535},bg,function(a,b){if(b){16>16>>b-1;this.Q=this.W=c>>1;this.Q=c&1?this.Q|65536:this.Q&-65537;this.ia=a^this.Q;this.V=65536;a=this.Q}return a&65535}],Hg=[function(a,b){b=this.Y();this.Q=this.W=this.ia=a&b;this.V=256;this.A-=0>this.ca?this.B.Ck:this.B.Bk;this.S|=2;return a},bg,function(a){this.A-=0>this.ca?this.B.mh:this.B.lh;return a^255},function(a,b){b=0;this.ia=a^b;this.V=256;this.A-=0>this.ca? -this.B.mh:this.B.lh;return(this.Q=this.W=b-a)&255},function(a){this.G=this.Pb=(this.Q=(this.G&255)*a)&65535;this.ia=this.W=this.Q;this.V=256;this.G&65280?(Ve(this),Ze(this)):(Qe(this),Ue(this));this.A-=0>this.ca?this.B.Tm:this.B.Sm;this.S|=2;return a},function(a){var b=(this.G<<24>>24)*(a<<24>>24);this.G=this.Pb=b&65535;this.Q=this.ia=this.W=b;this.V=256;127b?(Ve(this),Ze(this)):(Qe(this),Ue(this));this.A-=0>this.ca?this.B.ym:this.B.xm;this.S|=2;return a},function(a){if(!a)return cg.call(this), -a;var b=this.G/a;if(255this.ca?this.B.qm:this.B.pm;this.S|=2;return a},function(a){if(!a)return cg.call(this),a;var b=(this.G<<16>>16)/(a<<24>>24);if(b>b<<24>>24&65535)return cg.call(this),a;this.Pb=this.G=b&255|((this.G<<16>>16)%(a<<24>>24)&255)<<8;this.W=this.ia=this.Q=b|256;this.V=256;this.A-=0>this.ca?this.B.um:this.B.tm;this.S|=2;return a}],Ig=[function(a,b){b=this.K();this.Q=this.W= -this.ia=a&b;this.V=65536;this.A-=0>this.ca?this.B.Ck:this.B.Bk;this.S|=2;return a},bg,function(a){this.A-=0>this.ca?this.B.mh:this.B.lh;return a^65535},function(a,b){b=0;this.ia=a^b;this.V=65536;this.A-=0>this.ca?this.B.mh:this.B.lh;return(this.Q=this.W=b-a)&65535},function(a){this.Pb=this.G=(this.Q=this.G*a)&65535;this.uh=this.J=this.Q>>16&65535;this.ia=this.W=this.Q;this.V=65536;this.J?(Ve(this),Ze(this)):(Qe(this),Ue(this));this.A-=0>this.ca?this.B.Vm:this.B.Um;this.S|=2;return a},function(a){var b= -(this.G<<16>>16)*(a<<16>>16);this.G=this.Pb=b&65535;this.J=this.uh=b>>16&65535;this.Q=this.ia=this.W=b;this.V=65536;32767b?(Ve(this),Ze(this)):(Qe(this),Ue(this));this.A-=0>this.ca?this.B.Am:this.B.zm;this.S|=2;return a},function(a,b){if(!a)return cg.call(this),a;b=this.G+65536*this.J;var c=Math.floor(b/a);if(65536<=c)return cg.call(this),a;this.Pb=this.G=c&65535;this.uh=this.J=b%a&65535;this.W=this.ia=this.Q=c|65536;this.V=65536;this.A-=0>this.ca?this.B.sm:this.B.rm;this.S|=2;return a}, -function(a,b){if(!a)return cg.call(this),a;var c=a<<16>>16;b=this.J<<16|this.G;var d=Math.floor(b/c);if(d!=(d&65535)<<16>>16)return cg.call(this),a;this.Pb=this.G=d&65535;this.uh=this.J=b%c&65535;this.W=this.ia=this.Q=d|65536;this.V=65536;this.A-=0>this.ca?this.B.wm:this.B.vm;this.S|=2;return a}],Rd=[function(a){this.ia=a;a=(this.W=a+1)&255;this.Q=a|(this.Q&this.V?1:0)<<8;this.V=256;this.A-=0>this.ca?this.B.kh:this.B.jh;return a},function(a){this.ia=a;a=(this.W=a-1)&255;this.Q=a|(this.Q&this.V?1: -0)<<8;this.V=256;this.A-=0>this.ca?this.B.kh:this.B.jh;return a},bg,bg,bg,bg,bg,bg],Sd=[function(a){this.ia=a;a=(this.W=a+1)&65535;this.Q=a|(this.Q&this.V?1:0)<<16;this.V=65536;this.A-=0>this.ca?this.B.kh:this.B.jh;return a},function(a){this.ia=a;a=(this.W=a-1)&65535;this.Q=a|(this.Q&this.V?1:0)<<16;this.V=65536;this.A-=0>this.ca?this.B.kh:this.B.jh;return a},function(a){y(this,v(this));D(this,a);this.A-=0>this.ca?this.B.om:this.B.nm;this.S|=2;return a},function(a){if(0>this.ca)return bg.call(this, -a);tf.call(this,a,this.la(this.ca+2));this.A-=this.B.lm;this.S|=2;return a},function(a){D(this,a);this.A-=0>this.ca?this.B.Jm:this.B.Im;this.S|=2;return a},function(a){if(0>this.ca)return bg.call(this,a);Jd(this,a,this.la(this.ca+2));this.Eg&&Ce(this,this.ka);this.A-=this.B.Gm;this.S|=2;return a},function(a){var b=a;this.S&512&&(a=a-2&65535,80286>this.za&&(b=a));y(this,b);this.A-=0>this.ca?this.B.yc:this.B.Zm;this.S|=2;return a},ag],le=[function(){var a=this.Y();16>(a&56)&&(this.S|=1);this.gd[a].call(this, -this.gl,$f)},function(){var a=this.Y();a&16||(this.S|=1);this.gd[a].call(this,Jg,$f)},function(){this.Gb[this.Y()].call(this,zf)},function(){this.Gb[this.Y()].call(this,Df)},U,function(){this.ra.bb?wd.call(this,13,0,!0):($e(this,this.la(2054)),this.D=this.la(2086),this.F=this.la(2088),this.H=this.la(2090),this.C=this.la(2094),this.J=this.la(2096),this.I=this.la(2098),this.G=this.la(2100),Ld(this.Ja,2102,this.la(2084)),Ld(this.ra,2108,this.la(2082)),Ld(this.xa,2114,this.la(2080)),Ld(this.Ya,2120,this.la(2078)), -Id(this,this.la(2072)),D(this,this.la(2074)),x(this,this.la(2092)),this.Ec=this.la(2126)|this.Oa(2128)<<16,this.We=this.Ec+this.la(2130),Ld(this.bd,2132,this.la(2076)),this.Sc=this.la(2138)|this.Oa(2140)<<16,this.Xe=this.Sc+this.la(2142),Ld(this.eb,2144,this.la(2070)),this.A-=195)},function(){this.ra.bb?wd.call(this,13,0,!0):(this.gc&=-9,this.A-=2)},U,U,U,U,Ud,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U, -U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U],De=[function(){this.A-=2+(0>this.ca?0:1);return this.bd.va},function(){this.A-=2+(0>this.ca?0:1);return this.eb.va},function(a){this.S|=2;this.bd.load(a); -this.A-=17+(0>this.ca?0:2);return a},function(a){this.S|=2;this.eb.load(a)!=q&&(this.Qa(this.eb.Pd+4,this.eb.nb|=512),this.eb.type=768);this.A-=17+(0>this.ca?0:2);return a},function(a){this.S|=2;this.A-=14+(0>this.ca?0:2);if(this.Tb.load(a,!0)!=q&&2048!=(this.Tb.nb&2560)&&(this.Tb.pc>=this.ra.bb&&this.Tb.pc>=(a&3)||7168==(this.Tb.nb&7168)))return Xe(this),a;Se(this);return a},function(a){this.S|=2;this.A-=14+(0>this.ca?0:2);if(this.Tb.load(a,!0)!=q&&512==(this.Tb.nb&2560)&&this.Tb.pc>=this.ra.bb&& -this.Tb.pc>=(a&3))return Xe(this),a;Se(this);return a},bg,bg],Td=[ke,ke,ke,ke,ke,ke,bg,bg],Jg=[function(a){0>this.ca?Ud.call(this):(a=this.We-this.Ec,this.Qa(this.ca+2,this.Ec),this.Qa(this.ca+4,65280|this.Ec>>16),this.A-=11);return a},function(a){0>this.ca?Ud.call(this):(a=this.Xe-this.Sc,this.Qa(this.ca+2,this.Sc),this.Qa(this.ca+4,65280|this.Sc>>16),this.A-=12);return a},function(a){0>this.ca?Ud.call(this):(this.Ec=this.la(this.ca+2)|this.Oa(this.ca+4)<<16,this.We=this.Ec+a,this.S|=2,this.A-=11); -return a},function(a){0>this.ca?Ud.call(this):(this.Sc=this.la(this.ca+2)|this.Oa(this.ca+4)<<16,this.Xe=this.Sc+a,this.S|=2,this.A-=12);return a},function(){this.A-=2+(0>this.ca?0:1);return this.gc},bg,function(a){$e(this,a);this.A-=0>this.ca?3:6;this.S|=2;return a},bg],z=[function(a){a=a.call(this,this.G&255,F(this,this.C+this.F));this.G=this.G&-256|a;this.A-=this.B.aa},function(a){a=a.call(this,this.G&255,F(this,this.C+this.D));this.G=this.G&-256|a;this.A-=this.B.ba},function(a){a=a.call(this, +1?this.Q|65536:this.Q&-65537;this.ia=a^this.Q;this.V=65536;a=this.Q}return a&65535},bg,function(a,b){if(b){16>16>>b-1;this.Q=this.W=c>>1;this.Q=c&1?this.Q|65536:this.Q&-65537;this.ia=a^this.Q;this.V=65536;a=this.Q}return a&65535}],Hg=[function(a,b){b=this.Y();this.Q=this.W=this.ia=a&b;this.V=256;this.A-=0>this.ca?this.B.Dk:this.B.Ck;this.S|=2;return a},bg,function(a){this.A-=0>this.ca?this.B.nh:this.B.mh;return a^255},function(a,b){b=0;this.ia=a^b;this.V=256;this.A-=0>this.ca? +this.B.nh:this.B.mh;return(this.Q=this.W=b-a)&255},function(a){this.G=this.Pb=(this.Q=(this.G&255)*a)&65535;this.ia=this.W=this.Q;this.V=256;this.G&65280?(Ve(this),Ze(this)):(Qe(this),Ue(this));this.A-=0>this.ca?this.B.Um:this.B.Tm;this.S|=2;return a},function(a){var b=(this.G<<24>>24)*(a<<24>>24);this.G=this.Pb=b&65535;this.Q=this.ia=this.W=b;this.V=256;127b?(Ve(this),Ze(this)):(Qe(this),Ue(this));this.A-=0>this.ca?this.B.zm:this.B.ym;this.S|=2;return a},function(a){if(!a)return cg.call(this), +a;var b=this.G/a;if(255this.ca?this.B.rm:this.B.qm;this.S|=2;return a},function(a){if(!a)return cg.call(this),a;var b=(this.G<<16>>16)/(a<<24>>24);if(b>b<<24>>24&65535)return cg.call(this),a;this.Pb=this.G=b&255|((this.G<<16>>16)%(a<<24>>24)&255)<<8;this.W=this.ia=this.Q=b|256;this.V=256;this.A-=0>this.ca?this.B.vm:this.B.um;this.S|=2;return a}],Ig=[function(a,b){b=this.K();this.Q=this.W= +this.ia=a&b;this.V=65536;this.A-=0>this.ca?this.B.Dk:this.B.Ck;this.S|=2;return a},bg,function(a){this.A-=0>this.ca?this.B.nh:this.B.mh;return a^65535},function(a,b){b=0;this.ia=a^b;this.V=65536;this.A-=0>this.ca?this.B.nh:this.B.mh;return(this.Q=this.W=b-a)&65535},function(a){this.Pb=this.G=(this.Q=this.G*a)&65535;this.vh=this.J=this.Q>>16&65535;this.ia=this.W=this.Q;this.V=65536;this.J?(Ve(this),Ze(this)):(Qe(this),Ue(this));this.A-=0>this.ca?this.B.Wm:this.B.Vm;this.S|=2;return a},function(a){var b= +(this.G<<16>>16)*(a<<16>>16);this.G=this.Pb=b&65535;this.J=this.vh=b>>16&65535;this.Q=this.ia=this.W=b;this.V=65536;32767b?(Ve(this),Ze(this)):(Qe(this),Ue(this));this.A-=0>this.ca?this.B.Bm:this.B.Am;this.S|=2;return a},function(a,b){if(!a)return cg.call(this),a;b=this.G+65536*this.J;var c=Math.floor(b/a);if(65536<=c)return cg.call(this),a;this.Pb=this.G=c&65535;this.vh=this.J=b%a&65535;this.W=this.ia=this.Q=c|65536;this.V=65536;this.A-=0>this.ca?this.B.tm:this.B.sm;this.S|=2;return a}, +function(a,b){if(!a)return cg.call(this),a;var c=a<<16>>16;b=this.J<<16|this.G;var d=Math.floor(b/c);if(d!=(d&65535)<<16>>16)return cg.call(this),a;this.Pb=this.G=d&65535;this.vh=this.J=b%c&65535;this.W=this.ia=this.Q=d|65536;this.V=65536;this.A-=0>this.ca?this.B.xm:this.B.wm;this.S|=2;return a}],Rd=[function(a){this.ia=a;a=(this.W=a+1)&255;this.Q=a|(this.Q&this.V?1:0)<<8;this.V=256;this.A-=0>this.ca?this.B.lh:this.B.kh;return a},function(a){this.ia=a;a=(this.W=a-1)&255;this.Q=a|(this.Q&this.V?1: +0)<<8;this.V=256;this.A-=0>this.ca?this.B.lh:this.B.kh;return a},bg,bg,bg,bg,bg,bg],Sd=[function(a){this.ia=a;a=(this.W=a+1)&65535;this.Q=a|(this.Q&this.V?1:0)<<16;this.V=65536;this.A-=0>this.ca?this.B.lh:this.B.kh;return a},function(a){this.ia=a;a=(this.W=a-1)&65535;this.Q=a|(this.Q&this.V?1:0)<<16;this.V=65536;this.A-=0>this.ca?this.B.lh:this.B.kh;return a},function(a){y(this,v(this));D(this,a);this.A-=0>this.ca?this.B.pm:this.B.om;this.S|=2;return a},function(a){if(0>this.ca)return bg.call(this, +a);tf.call(this,a,this.la(this.ca+2));this.A-=this.B.mm;this.S|=2;return a},function(a){D(this,a);this.A-=0>this.ca?this.B.Km:this.B.Jm;this.S|=2;return a},function(a){if(0>this.ca)return bg.call(this,a);Jd(this,a,this.la(this.ca+2));this.Eg&&Ce(this,this.ka);this.A-=this.B.Hm;this.S|=2;return a},function(a){var b=a;this.S&512&&(a=a-2&65535,80286>this.za&&(b=a));y(this,b);this.A-=0>this.ca?this.B.zc:this.B.$m;this.S|=2;return a},ag],le=[function(){var a=this.Y();16>(a&56)&&(this.S|=1);this.hd[a].call(this, +this.hl,$f)},function(){var a=this.Y();a&16||(this.S|=1);this.hd[a].call(this,Jg,$f)},function(){this.Gb[this.Y()].call(this,zf)},function(){this.Gb[this.Y()].call(this,Df)},U,function(){this.ra.bb?wd.call(this,13,0,!0):($e(this,this.la(2054)),this.D=this.la(2086),this.F=this.la(2088),this.H=this.la(2090),this.C=this.la(2094),this.J=this.la(2096),this.I=this.la(2098),this.G=this.la(2100),Ld(this.Ja,2102,this.la(2084)),Ld(this.ra,2108,this.la(2082)),Ld(this.xa,2114,this.la(2080)),Ld(this.Ya,2120,this.la(2078)), +Id(this,this.la(2072)),D(this,this.la(2074)),x(this,this.la(2092)),this.Fc=this.la(2126)|this.Oa(2128)<<16,this.We=this.Fc+this.la(2130),Ld(this.cd,2132,this.la(2076)),this.Tc=this.la(2138)|this.Oa(2140)<<16,this.Xe=this.Tc+this.la(2142),Ld(this.eb,2144,this.la(2070)),this.A-=195)},function(){this.ra.bb?wd.call(this,13,0,!0):(this.gc&=-9,this.A-=2)},U,U,U,U,Ud,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U, +U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U],De=[function(){this.A-=2+(0>this.ca?0:1);return this.cd.va},function(){this.A-=2+(0>this.ca?0:1);return this.eb.va},function(a){this.S|=2;this.cd.load(a); +this.A-=17+(0>this.ca?0:2);return a},function(a){this.S|=2;this.eb.load(a)!=q&&(this.Qa(this.eb.Pd+4,this.eb.nb|=512),this.eb.type=768);this.A-=17+(0>this.ca?0:2);return a},function(a){this.S|=2;this.A-=14+(0>this.ca?0:2);if(this.Tb.load(a,!0)!=q&&2048!=(this.Tb.nb&2560)&&(this.Tb.qc>=this.ra.bb&&this.Tb.qc>=(a&3)||7168==(this.Tb.nb&7168)))return Xe(this),a;Se(this);return a},function(a){this.S|=2;this.A-=14+(0>this.ca?0:2);if(this.Tb.load(a,!0)!=q&&512==(this.Tb.nb&2560)&&this.Tb.qc>=this.ra.bb&& +this.Tb.qc>=(a&3))return Xe(this),a;Se(this);return a},bg,bg],Td=[ke,ke,ke,ke,ke,ke,bg,bg],Jg=[function(a){0>this.ca?Ud.call(this):(a=this.We-this.Fc,this.Qa(this.ca+2,this.Fc),this.Qa(this.ca+4,65280|this.Fc>>16),this.A-=11);return a},function(a){0>this.ca?Ud.call(this):(a=this.Xe-this.Tc,this.Qa(this.ca+2,this.Tc),this.Qa(this.ca+4,65280|this.Tc>>16),this.A-=12);return a},function(a){0>this.ca?Ud.call(this):(this.Fc=this.la(this.ca+2)|this.Oa(this.ca+4)<<16,this.We=this.Fc+a,this.S|=2,this.A-=11); +return a},function(a){0>this.ca?Ud.call(this):(this.Tc=this.la(this.ca+2)|this.Oa(this.ca+4)<<16,this.Xe=this.Tc+a,this.S|=2,this.A-=12);return a},function(){this.A-=2+(0>this.ca?0:1);return this.gc},bg,function(a){$e(this,a);this.A-=0>this.ca?3:6;this.S|=2;return a},bg],z=[function(a){a=a.call(this,this.G&255,F(this,this.C+this.F));this.G=this.G&-256|a;this.A-=this.B.aa},function(a){a=a.call(this,this.G&255,F(this,this.C+this.D));this.G=this.G&-256|a;this.A-=this.B.ba},function(a){a=a.call(this, this.G&255,G(this,this.H+this.F));this.G=this.G&-256|a;this.A-=this.B.ba},function(a){a=a.call(this,this.G&255,G(this,this.H+this.D));this.G=this.G&-256|a;this.A-=this.B.aa},function(a){a=a.call(this,this.G&255,F(this,this.F));this.G=this.G&-256|a;this.A-=this.B.T},function(a){a=a.call(this,this.G&255,F(this,this.D));this.G=this.G&-256|a;this.A-=this.B.T},function(a){a=a.call(this,this.G&255,F(this,this.K()));this.G=this.G&-256|a;this.A-=this.B.ua},function(a){a=a.call(this,this.G&255,F(this,this.C)); this.G=this.G&-256|a;this.A-=this.B.T},function(a){a=a.call(this,this.I&255,F(this,this.C+this.F));this.I=this.I&-256|a;this.A-=this.B.aa},function(a){a=a.call(this,this.I&255,F(this,this.C+this.D));this.I=this.I&-256|a;this.A-=this.B.ba},function(a){a=a.call(this,this.I&255,G(this,this.H+this.F));this.I=this.I&-256|a;this.A-=this.B.ba},function(a){a=a.call(this,this.I&255,G(this,this.H+this.D));this.I=this.I&-256|a;this.A-=this.B.aa},function(a){a=a.call(this,this.I&255,F(this,this.F));this.I=this.I& -256|a;this.A-=this.B.T},function(a){a=a.call(this,this.I&255,F(this,this.D));this.I=this.I&-256|a;this.A-=this.B.T},function(a){a=a.call(this,this.I&255,F(this,this.K()));this.I=this.I&-256|a;this.A-=this.B.ua},function(a){a=a.call(this,this.I&255,F(this,this.C));this.I=this.I&-256|a;this.A-=this.B.T},function(a){a=a.call(this,this.J&255,F(this,this.C+this.F));this.J=this.J&-256|a;this.A-=this.B.aa},function(a){a=a.call(this,this.J&255,F(this,this.C+this.D));this.J=this.J&-256|a;this.A-=this.B.ba}, @@ -431,73 +431,74 @@ this.H,b.call(this))},function(a,b){this.F=a[3].call(this,this.F,b.call(this))}, a[4].call(this,this.F,b.call(this))},function(a,b){this.D=a[4].call(this,this.D,b.call(this))},function(a,b){this.G=a[5].call(this,this.G,b.call(this))},function(a,b){this.I=a[5].call(this,this.I,b.call(this))},function(a,b){this.J=a[5].call(this,this.J,b.call(this))},function(a,b){this.C=a[5].call(this,this.C,b.call(this))},function(a,b){x(this,a[5].call(this,w(this),b.call(this)))},function(a,b){this.H=a[5].call(this,this.H,b.call(this))},function(a,b){this.F=a[5].call(this,this.F,b.call(this))}, function(a,b){this.D=a[5].call(this,this.D,b.call(this))},function(a,b){this.G=a[6].call(this,this.G,b.call(this))},function(a,b){this.I=a[6].call(this,this.I,b.call(this))},function(a,b){this.J=a[6].call(this,this.J,b.call(this))},function(a,b){this.C=a[6].call(this,this.C,b.call(this))},function(a,b){x(this,a[6].call(this,w(this),b.call(this)))},function(a,b){this.H=a[6].call(this,this.H,b.call(this))},function(a,b){this.F=a[6].call(this,this.F,b.call(this))},function(a,b){this.D=a[6].call(this, this.D,b.call(this))},function(a,b){this.G=a[7].call(this,this.G,b.call(this))},function(a,b){this.I=a[7].call(this,this.I,b.call(this))},function(a,b){this.J=a[7].call(this,this.J,b.call(this))},function(a,b){this.C=a[7].call(this,this.C,b.call(this))},function(a,b){x(this,a[7].call(this,w(this),b.call(this)))},function(a,b){this.H=a[7].call(this,this.H,b.call(this))},function(a,b){this.F=a[7].call(this,this.F,b.call(this))},function(a,b){this.D=a[7].call(this,this.D,b.call(this))}]; -function Kg(a){n.call(this,"ChipSet",a,Kg,16384);this.za=(this.za=a.model)?parseInt(this.za,10):Lg;this.hc=0;var b=a.sw1;if(b)this.hc=Mg(b,Ng|Og.Hn);else{this.me=[360,360];(b=a.floppies)&&b.length&&(this.me=b);if(b=this.me.length)this.hc|=Pg.Qi,b--,this.hc|=(b&3)<=Qg&&(this.Th=this.Fg=2);this.Ce=a.scaleTimers||!1;this.Fq=a.rtcDate; -this.Kl=!1;a.sound&&window&&"webkitAudioContext"in window&&(this.mj=new window.webkitAudioContext);this.reset(!0);jb(this)}Ya(n,Kg);var Lg=5150,Qg=5170,Rg={none:0,tv:1,color:2,mono:3,ega:0},Pg={Qi:1,ONE:0,ur:64,sr:128,Sq:192,qg:192,rg:6},Ng=12,Og={tr:16,Kq:32,Hn:48,qg:48,rg:4};k=Kg.prototype; +function Kg(a){n.call(this,"ChipSet",a,Kg,16384);this.za=(this.za=a.model)?parseInt(this.za,10):Lg;this.hc=0;var b=a.sw1;if(b)this.hc=Mg(b,Ng|Og.In);else{this.me=[360,360];(b=a.floppies)&&b.length&&(this.me=b);if(b=this.me.length)this.hc|=Pg.Ri,b--,this.hc|=(b&3)<=Qg&&(this.Uh=this.Fg=2);this.Ce=a.scaleTimers||!1;this.Gq=a.rtcDate; +this.Ll=!1;a.sound&&(this.mj=this.Lg=null,window&&(this.mj=window.AudioContext||window.webkitAudioContext),this.mj&&(this.Lg=new this.mj));this.reset(!0);jb(this)}Ya(n,Kg);var Lg=5150,Qg=5170,Rg={none:0,tv:1,color:2,mono:3,ega:0},Pg={Ri:1,ONE:0,vr:64,tr:128,Tq:192,qg:192,rg:6},Ng=12,Og={ur:16,Lq:32,In:48,qg:48,rg:4};k=Kg.prototype; k.Fb=function(a,b,c){switch(b){case "sw1":return this.qa[b]=c,Sg(this,b,c,this.hc,{0:this.za==Lg?"Bootable Floppy Drive":"Loop on POST",1:this.za==Lg?"Reserved":"Coprocessor",2:"Base Memory Size",4:"Monitor Type",6:"Number of Floppy Drives"}),!0;case "sw2":if(this.za==Lg)return this.qa[b]=c,Sg(this,b,c,this.Re,{0:"Expansion Memory Size",4:"Reserved"}),!0;break;case "swdesc":return this.qa[b]=c,!0}return!1}; -k.xc=function(a,b,c,d){this.ha=b;this.N=c;this.Z=d;this.Ba=a;this.Ha=rb(a,"Keyboard");this.yi=c.U.Gd/1193181;bc(b,this,Tg);fc(b,this,Ug);this.zab;b++){var c=13>=b?ah(e,b):e.ea[b];a&&(a+="\n");a+="CMOS[0x"+l(b)+"]: 0x"+l(c)}e.Z.R(a)})}xe(c,26,this,this.mp)};k.fc=function(a,b){if(!b)if(!a)this.reset();else if(!this.restore(a))return!1;return!0};k.ec=function(a){return a&&this.save?this.save():!0}; -k.reset=function(a){var b;this.vd=this.hc;this.yf=this.Re;bh(this);this.mb=Array(this.Th);for(b=0;b=Qg){this.ob=16;this.Rd=0;this.Qd=16;this.Kh=0;this.Ye=160;512<=fh(this)&&(this.Ye|=16);3==gh(this)&&(this.Ye|=64);this.bj=3;this.zg=0;this.Eh=Array(7);this.Ze=0;a&&(this.ea=Array(64));hh(this, -this.Fq);for(a=21;24>=a;a++)this.ea[a]=0;for(a=14;46>a;a++)void 0===this.ea[a]&&(this.ea[a]=0);this.ea[20]=this.vd&(Og.qg|2|Pg.Qi|Pg.qg);this.ea[16]=ih(this,0)<<4|ih(this,1);jh(this)}}; -function hh(a,b){var c=b?new Date(b):new Date;"[object Date]"!==Object.prototype.toString.call(c)||isNaN(c.getTime())?(c=new Date,a.R("CMOS date invalid ("+b+"), using "+c)):b&&a.R("CMOS date: "+c);a.ea[0]=c.getSeconds();a.ea[1]=0;a.ea[2]=c.getMinutes();a.ea[3]=0;a.ea[4]=c.getHours();a.ea[5]=0;a.ea[6]=c.getDay()+1;a.ea[7]=c.getDate();a.ea[8]=c.getMonth()+1;c=c.getFullYear();a.ea[9]=c%100;c/=100;a.ea[50]=c%10|c/10<<4;a.ea[10]=38;a.ea[11]=2;a.ea[12]=0;a.ea[13]=128;a.ph=a.hg=0;a.fn=a.wi=null} -function ah(a,b){var c=a.ea[b];if(10>b){var d=!1;4!=b&&5!=b||a.ea[11]&2||(c=12>c?c?c:12:(c-=12)?c+128:140,d=!0);a.ea[11]&4||(d&&128c;c++)b+=a.ea[c];a.ea[47]=b&255;a.ea[46]=b>>8} -k.save=function(){var a=new Ee(this);a.set(0,[this.hc,this.Re,this.vd,this.yf]);for(var b=[],c=0;c=Qg&&(a.set(5,[this.ob,this.Rd,this.Qd,this.Kh,this.Ye,this.bj]),a.set(6,[this.zg,this.Eh,this.Ze,this.ea,this.ph,this.hg]));return a.data()}; -k.restore=function(a){var b,c;b=a[0];this.hc=b[0];this.Re=b[1];this.vd=b[2];this.yf=b[3];b=a[1];for(c=0;c>2)+1)*a.np+32*((b?a.Re:a.yf)&15)}function rh(a,b){var c=b?a.hc:a.vd;return a.za!=Lg||c&Pg.Qi?((c&Pg.qg)>>Pg.rg)+1:0} -function ih(a,b){if(b>Og.rg} +k.yc=function(a,b,c,d){this.ha=b;this.N=c;this.Z=d;this.Ba=a;this.Ha=rb(a,"Keyboard");this.zi=c.U.Hd/1193181;bc(b,this,Tg);fc(b,this,Ug);this.zab;b++){var c=13>=b?ah(e,b):e.ea[b];a&&(a+="\n");a+="CMOS[0x"+l(b)+"]: 0x"+l(c)}e.Z.R(a)})}xe(c,26,this,this.np)};k.fc=function(a,b){if(!b)if(!a)this.reset();else if(!this.restore(a))return!1;return!0};k.ec=function(a){return a&&this.save?this.save():!0}; +k.reset=function(a){var b;this.wd=this.hc;this.yf=this.Re;bh(this);this.mb=Array(this.Uh);for(b=0;b=Qg){this.ob=16;this.Rd=0;this.Qd=16;this.Lh=0;this.Ye=160;512<=fh(this)&&(this.Ye|=16);3==gh(this)&&(this.Ye|=64);this.cj=3;this.zg=0;this.Fh=Array(7);this.Ze=0;a&&(this.ea=Array(64));hh(this, +this.Gq);for(a=21;24>=a;a++)this.ea[a]=0;for(a=14;46>a;a++)void 0===this.ea[a]&&(this.ea[a]=0);this.ea[20]=this.wd&(Og.qg|2|Pg.Ri|Pg.qg);this.ea[16]=ih(this,0)<<4|ih(this,1);jh(this)}}; +function hh(a,b){var c=b?new Date(b):new Date;"[object Date]"!==Object.prototype.toString.call(c)||isNaN(c.getTime())?(c=new Date,a.R("CMOS date invalid ("+b+"), using "+c)):b&&a.R("CMOS date: "+c);a.ea[0]=c.getSeconds();a.ea[1]=0;a.ea[2]=c.getMinutes();a.ea[3]=0;a.ea[4]=c.getHours();a.ea[5]=0;a.ea[6]=c.getDay()+1;a.ea[7]=c.getDate();a.ea[8]=c.getMonth()+1;c=c.getFullYear();a.ea[9]=c%100;c/=100;a.ea[50]=c%10|c/10<<4;a.ea[10]=38;a.ea[11]=2;a.ea[12]=0;a.ea[13]=128;a.qh=a.hg=0;a.gn=a.xi=null} +function ah(a,b){var c=a.ea[b];if(10>b){var d=!1;4!=b&&5!=b||a.ea[11]&2||(c=12>c?c?c:12:(c-=12)?c+128:140,d=!0);a.ea[11]&4||(d&&128c;c++)b+=a.ea[c];a.ea[47]=b&255;a.ea[46]=b>>8} +k.save=function(){var a=new Ee(this);a.set(0,[this.hc,this.Re,this.wd,this.yf]);for(var b=[],c=0;c=Qg&&(a.set(5,[this.ob,this.Rd,this.Qd,this.Lh,this.Ye,this.cj]),a.set(6,[this.zg,this.Fh,this.Ze,this.ea,this.qh,this.hg]));return a.data()}; +k.restore=function(a){var b,c;b=a[0];this.hc=b[0];this.Re=b[1];this.wd=b[2];this.yf=b[3];b=a[1];for(c=0;c>2)+1)*a.op+32*((b?a.Re:a.yf)&15)}function rh(a,b){var c=b?a.hc:a.wd;return a.za!=Lg||c&Pg.Ri?((c&Pg.qg)>>Pg.rg)+1:0} +function ih(a,b){if(b>Og.rg} function Sg(a,b,c,d,e){for(var f="",g=1;8>=g;g++){var h="pcjs-bitCell";g||(h+=" pcjs-bitCellLeft");f+='
'+g+"
\n"}c.innerHTML=f;b=db(c,"pcjs-bitCell");c=null;for(g=0;gg.ab[0]&&(g.ab[0]=255,g.ab[1]--,0>g.ab[1]&&(g.ab[1]=255)));return h}function wh(a,b,c,d,e,f){var g=a.mb[b];a.pa(384)&&p(a,d,e,f,"DMA"+b+".CHANNEL"+c+".COUNT["+g.pb+"]",null,!0);a=g.Qb[c];a.ab[g.pb]=a.kc[g.pb]=e;g.pb^=1}function xh(a,b,c,d){var e=a.mb[b],f=e.ue|1;e.ue&=-16;a.pa(384)&&p(a,c,null,d,"DMA"+b+".STATUS",f,!0);return f} -function yh(a,b,c,d,e){var f=a.mb[b];a.pa(384)&&p(a,c,d,e,"DMA"+b+".REQ",null,!0);a=d&3;f.ue=f.ue&~(16<>2].Qb[b&3],c,d,e)} -function Ah(a,b,c){b=a.mb[b>>2].Qb[b&3];b.Xh&&b.Fj&&b.Ai?(c&&(b.Zh=c),b.ae||jf(a,b,!0)):c&&c(!0)}function jf(a,b,c){c&&(b.count=b.ab[1]<<8|b.ab[0],b.Dn=b.mode&12,b.Ml=b.pd=!1);for(var d=!1;0<=b.count&&(c=b.Qh<<16|b.gb[1]<<8|b.gb[0],4==b.Dn?(d=!0,function(c){b.Fj.call(b.Xh,b.Ai,-1,function(f,g){0>f&&(b.Ml||(b.Ml=!0),f=255);b.ae||a.ha.ud(c,f);(d=g)&&setTimeout(function(){Ih(b)||jf(a,b)},0)})}(c)):8==b.Dn?(c=a.ha.Oa(c),0>b.Fj.call(b.Xh,b.Ai,c)&&(b.pd=!0)):b.pd=!0),!d&&!Ih(b););} -function Ih(a){if(!a.pd&&0<=--a.count&&(a.mode&32?(a.gb[0]--,0>a.gb[0]&&(a.gb[0]=255,a.gb[1]--,0>a.gb[1]&&(a.gb[1]=255))):(a.gb[0]++,255>3];b=1<<(b&7);d.Sb&b||(d.Sb|=b,d.fg=c||0,Lh(a))} -function Ph(a,b){var c=a.Vb[b>>3],d=1<<(b&7);c.Sb&d&&(c.Sb&=~d,Lh(a))}function Lh(a,b){var c,d=-1;1>=1),dd(a.N,c))),2==b&&jd(a))}k=Kg.prototype; -k.fp=function(a,b){p(this,a,null,b,"TIMER_CTRL",null,1024);return null}; -k.tq=function(a,b,c){this.gj=b;p(this,a,b,c,"TIMER_CTRL",null,1024);a=(b&192)>>6;if(3!=a){c=b&1;var d=b&14;if(b&=48){var e=this.Jb[a];e.Hi=b;e.mode=d;e.rl=c;e.kc=[0,0];e.ab=[0,0];e.ff=[0,0];e.Fd=!1;e.Rg=!1;e.kf=!1;Rh(this,a);0==a&&Ph(this,0);2==a&&255==this.Vb[0].zd&&77==this.Gc&&(a=this.Jb[0],a.Jc[0]=a.kc[0],a.Jc[1]=a.kc[1],a.sd=Yc(this.N,this.Ce))}else $g(this,a),b=this.Jb[a],b.ff[0]=b.ab[0],b.ff[1]=b.ab[1],b.Rg=!0,Rh(this,a)}}; -function Th(a,b){var c=a.Jb[b],d=c.kc[1]<<8|c.kc[0];d||(d=1==c.Dd?256:65536);return d}function ld(a,b){var c=a.Jb[b],d=c.Jc[1]<<8|c.Jc[0];d||(d=1==c.Dd?256:65536);return d}function Rh(a,b){var c=a.Jb[b];c.ze=32==c.Hi?1:0;c.Dd=48==c.Hi?2:1} -function $g(a,b,c){var d=a.Jb[b];if(d.kf&&(2!=b||a.Gc&1)){var e=Yc(a.N,a.Ce),f=(e-d.sd)/a.yi|0;0>f&&(d.sd=e,f=0);var g=Th(a,b),h=ld(a,b)-f;0==d.mode?(0>=h&&(h=0),h||(d.Fd=!0,d.kf=!1,b||Oh(a,0))):4==d.mode?(d.Fd=1!=h,0>=h&&(h=g+h,0>=h&&(h=g),d.Jc[0]=h&255,d.Jc[1]=h>>8,d.sd=e,!b&&d.Fd&&Oh(a,0))):6==d.mode&&(h-=f,0>=h&&(d.Fd=!d.Fd,h=g+h,0>=h&&(h=g),d.Jc[0]=h&255,d.Jc[1]=h>>8,d.sd=e,!b&&d.Fd&&Oh(a,0)));d.ab[0]=h&255;d.ab[1]=h>>8;c&&(a.sd=0)}return d} -function kd(a,b){for(var c=0;c=Qg){var c=a.N.U.Gd,d=Yc(a.N,a.Ce);null==a.wi&&(a.ph=Yc(a.N,a.Ce),a.fn=1024,a.wi=Math.floor(a.N.U.Gd/a.fn),kh(a));d>=a.hg&&(a.ea[12]|=64,a.ea[11]&64&&(a.ea[12]|=128,Oh(a,8)),a.hg=d+a.wi);a.ea[0]==a.ea[1]&&a.ea[2]==a.ea[3]&&a.ea[4]==a.ea[5]&&(a.ea[12]|=32,a.ea[11]&32&&(a.ea[12]|=128,Oh(a,8)));var e=d-a.ph,f=Math.floor(e/c);if(f&&!(a.ea[11]&128)){for(;f--;)if(60<=++a.ea[0]&&(a.ea[0]=0,60<=++a.ea[2]&&(a.ea[2]=0,24<=++a.ea[4]))){a.ea[4]= -0;a.ea[6]=a.ea[6]%7+1;var g;g=a.ea[9];var h=ua[a.ea[8]-1];28==h&&0===g%4&&(g%100||0===g%400)&&h++;g=h;++a.ea[7]>g&&(a.ea[7]=1,12<++a.ea[8]&&(a.ea[8]=1,a.ea[9]=(a.ea[9]+1)%100))}a.ea[12]|=16;a.ea[11]&16&&(a.ea[12]|=128,Oh(a,8))}a.ph=d-e%c}}k.Yo=function(a,b){var c=this.Ph;if(this.Bg&16)if(this.Gc&128)c=this.vd;else if(this.Ha){var c=this.Ha,d=0;c.Wb.length&&(d=c.Wb[0]);c.pa()&&c.Xa("scan code 0x"+l(d)+" delivered");c=d}p(this,a,null,b,"PPI_A",c);return c}; -k.mq=function(a,b,c){p(this,a,b,c,"PPI_A");this.Ph=b};k.Zo=function(a,b){var c=this.Gc;p(this,a,null,b,"PPI_B",c);return c};k.nq=function(a,b,c){p(this,a,b,c,"PPI_B");Uh(this,b);this.Ha&&Vh(this.Ha,b&128?!1:!0,b&64?!0:!1)};function Uh(a,b){var c=!!(b&2),d=!!(a.Gc&2);a.Gc=b;c!=d&&jd(a,c)}k.$o=function(a,b){var c=0,c=this.za==Lg?this.Gc&4?c|this.yf&15:c|this.yf>>4&1:this.Gc&8?c|this.vd>>4:c|this.vd&15;this.Gc&1&&$g(this,2).Fd&&(c=this.Gc&2?c|32:c|16);p(this,a,null,b,"PPI_C",c,16448);return c}; -k.oq=function(a,b,c){p(this,a,b,c,"PPI_C");this.ej=b};k.ap=function(a,b){var c=this.Bg;p(this,a,null,b,"PPI_CTRL",c);return c};k.pq=function(a,b,c){p(this,a,b,c,"PPI_CTRL");this.Bg=b};k.oo=function(a,b){var c=this.Kh;p(this,a,null,b,"8042_OUTBUFF",c,8192);this.ob&=-258;this.Ha&&Wh(this.Ha);return c}; -k.Ep=function(a,b,c){p(this,a,b,c,"8042_INBUF.DATA",null,8192);if(this.ob&8)switch(this.Rd){case 96:Xh(this,b);break;case 209:Yh(this,b);break;default:if(Xh(this,this.Qd&-17),this.Ha){a=-1;switch(b){case 255:a=250,Zh(this.Ha)}$h(this,a)}}this.Rd=b;this.ob&=-9};k.po=function(a,b){var c=this.Gc&-209|(Yc(this.N)&64?16:0);p(this,a,null,b,"8042_RWREG",c,8192);return c};k.Fp=function(a,b,c){p(this,a,b,c,"8042_RWREG",null,8192);Uh(this,b)}; -k.qo=function(a,b){p(this,a,null,b,"8042_STATUS",this.ob,8192);var c=this.ob&255;this.ob&256&&(this.ob|=1,this.ob&=-257);return c}; -k.Dp=function(a,b,c){p(this,a,b,c,"8042_INBUFF.CMD",null,8192);this.Rd=b;this.ob|=8;a=0;240<=this.Rd&&(a=this.Rd^15,this.Rd=240);switch(this.Rd){case 192:$h(this,this.Ye);break;case 173:Xh(this,this.Qd|16);break;case 174:Xh(this,this.Qd&-17);this.Ha&&Wh(this.Ha);break;case 170:this.Ha&&(a=this.Ha,a.Wb=[],a.pa()&&a.Xa("scan codes flushed"));Xh(this,this.Qd|16);$h(this,85);Yh(this,3);break;case 224:$h(this,this.Qd&16?0:1);break;case 240:a&1&&pe(this.N)}}; -function Xh(a,b){a.Qd=b;a.ob=a.ob&-5|b&4;a.Ha&&Vh(a.Ha,!!(b&8),!(b&16))}function $h(a,b){0<=b&&(a.Kh=b,a.ob&=-2,a.ob|=256)}function Yh(a,b){a.bj=b;Ub(a.ha,!!(b&2));b&1||pe(a.N)}function ai(a,b){a.za=c?ah(this,c):this.ea[c];this.pa(2176)&&p(this,a,null,b,"CMOS.DATA["+l(c)+"]",d,!0);null!=b&&12==c&&(this.ea[c]&=15,d&128&&Ph(this,8),d&64&&this.ea[11]&64&&kh(this));return d}; -k.Up=function(a,b,c){var d=this.Ze&63;this.pa(2176)&&p(this,a,b,c,"CMOS.DATA["+l(d)+"]",null,!0);a=b^this.ea[d];if(13>=d){if(c=b,10>d){var e=!1;this.ea[11]&4||(c=10*(c>>4)+(c&15),e=!0);if(4==d||5==d)e&&23=c?c=12==c?0:c:(c-=116,c=24==c?12:c))}}else c=b;this.ea[d]=c;11==d&&a&64&&b&64&&kh(this)};k.Wo=function(a,b){p(this,a,null,b,"MFG_DATA",this.zg);return this.zg};k.jq=function(a,b,c){p(this,a,b,c,"MFG_DATA");this.zg=b}; -k.lq=function(a,b,c){p(this,a,b,c,"NMI");this.Oh=b};k.Vp=function(a,b,c){p(this,a,b,c,"COPROC.CLEAR")};k.Wp=function(a,b,c){p(this,a,b,c,"COPROC.RESET")}; -k.mp=function(a){if(this.pa(4096)&&ze(this.Z,26,a)){var b=this.N.G>>8;Ae(this.N,a,function(a,d){return function(e){d=Yc(a.N)-d;var f,g=a.N.J&255,h=a.N.J>>8,t=a.N.J&255,r=a.N.J>>8;if(2==b||3==b)f=" CH(hour)="+m(h)+" CL(min)="+l(g)+" DH(sec)="+l(r);else if(4==b||5==b)f=" CX(year)="+m(a.N.I)+" DH(month)="+l(r)+" DL(day)="+l(t);Be(a.Z,26,e,d,f)}}(this,Yc(this.N)))}return!0};function Mg(a,b){if(void 0===a)return b;for(var c=0,d=1,e=0;ec||2E4>2].Qb[b&3],c,d,e)} +function Ah(a,b,c){b=a.mb[b>>2].Qb[b&3];b.Yh&&b.Gj&&b.Bi?(c&&(b.$h=c),b.ae||jf(a,b,!0)):c&&c(!0)}function jf(a,b,c){c&&(b.count=b.ab[1]<<8|b.ab[0],b.En=b.mode&12,b.Nl=b.qd=!1);for(var d=!1;0<=b.count&&(c=b.Rh<<16|b.gb[1]<<8|b.gb[0],4==b.En?(d=!0,function(c){b.Gj.call(b.Yh,b.Bi,-1,function(f,g){0>f&&(b.Nl||(b.Nl=!0),f=255);b.ae||a.ha.vd(c,f);(d=g)&&setTimeout(function(){Ih(b)||jf(a,b)},0)})}(c)):8==b.En?(c=a.ha.Oa(c),0>b.Gj.call(b.Yh,b.Bi,c)&&(b.qd=!0)):b.qd=!0),!d&&!Ih(b););} +function Ih(a){if(!a.qd&&0<=--a.count&&(a.mode&32?(a.gb[0]--,0>a.gb[0]&&(a.gb[0]=255,a.gb[1]--,0>a.gb[1]&&(a.gb[1]=255))):(a.gb[0]++,255>3];b=1<<(b&7);d.Sb&b||(d.Sb|=b,d.fg=c||0,Lh(a))} +function Ph(a,b){var c=a.Vb[b>>3],d=1<<(b&7);c.Sb&d&&(c.Sb&=~d,Lh(a))}function Lh(a,b){var c,d=-1;1>=1),dd(a.N,c))),2==b&&jd(a))}k=Kg.prototype; +k.gp=function(a,b){p(this,a,null,b,"TIMER_CTRL",null,1024);return null}; +k.uq=function(a,b,c){this.hj=b;p(this,a,b,c,"TIMER_CTRL",null,1024);a=(b&192)>>6;if(3!=a){c=b&1;var d=b&14;if(b&=48){var e=this.Jb[a];e.Ii=b;e.mode=d;e.sl=c;e.kc=[0,0];e.ab=[0,0];e.ff=[0,0];e.Gd=!1;e.Sg=!1;e.kf=!1;Rh(this,a);0==a&&Ph(this,0);2==a&&255==this.Vb[0].Ad&&77==this.Hc&&(a=this.Jb[0],a.Kc[0]=a.kc[0],a.Kc[1]=a.kc[1],a.td=Yc(this.N,this.Ce))}else $g(this,a),b=this.Jb[a],b.ff[0]=b.ab[0],b.ff[1]=b.ab[1],b.Sg=!0,Rh(this,a)}}; +function Th(a,b){var c=a.Jb[b],d=c.kc[1]<<8|c.kc[0];d||(d=1==c.Ed?256:65536);return d}function ld(a,b){var c=a.Jb[b],d=c.Kc[1]<<8|c.Kc[0];d||(d=1==c.Ed?256:65536);return d}function Rh(a,b){var c=a.Jb[b];c.ze=32==c.Ii?1:0;c.Ed=48==c.Ii?2:1} +function $g(a,b,c){var d=a.Jb[b];if(d.kf&&(2!=b||a.Hc&1)){var e=Yc(a.N,a.Ce),f=(e-d.td)/a.zi|0;0>f&&(d.td=e,f=0);var g=Th(a,b),h=ld(a,b)-f;0==d.mode?(0>=h&&(h=0),h||(d.Gd=!0,d.kf=!1,b||Oh(a,0))):4==d.mode?(d.Gd=1!=h,0>=h&&(h=g+h,0>=h&&(h=g),d.Kc[0]=h&255,d.Kc[1]=h>>8,d.td=e,!b&&d.Gd&&Oh(a,0))):6==d.mode&&(h-=f,0>=h&&(d.Gd=!d.Gd,h=g+h,0>=h&&(h=g),d.Kc[0]=h&255,d.Kc[1]=h>>8,d.td=e,!b&&d.Gd&&Oh(a,0)));d.ab[0]=h&255;d.ab[1]=h>>8;c&&(a.td=0)}return d} +function kd(a,b){for(var c=0;c=Qg){var c=a.N.U.Hd,d=Yc(a.N,a.Ce);null==a.xi&&(a.qh=Yc(a.N,a.Ce),a.gn=1024,a.xi=Math.floor(a.N.U.Hd/a.gn),kh(a));d>=a.hg&&(a.ea[12]|=64,a.ea[11]&64&&(a.ea[12]|=128,Oh(a,8)),a.hg=d+a.xi);a.ea[0]==a.ea[1]&&a.ea[2]==a.ea[3]&&a.ea[4]==a.ea[5]&&(a.ea[12]|=32,a.ea[11]&32&&(a.ea[12]|=128,Oh(a,8)));var e=d-a.qh,f=Math.floor(e/c);if(f&&!(a.ea[11]&128)){for(;f--;)if(60<=++a.ea[0]&&(a.ea[0]=0,60<=++a.ea[2]&&(a.ea[2]=0,24<=++a.ea[4]))){a.ea[4]= +0;a.ea[6]=a.ea[6]%7+1;var g;g=a.ea[9];var h=ua[a.ea[8]-1];28==h&&0===g%4&&(g%100||0===g%400)&&h++;g=h;++a.ea[7]>g&&(a.ea[7]=1,12<++a.ea[8]&&(a.ea[8]=1,a.ea[9]=(a.ea[9]+1)%100))}a.ea[12]|=16;a.ea[11]&16&&(a.ea[12]|=128,Oh(a,8))}a.qh=d-e%c}}k.Zo=function(a,b){var c=this.Qh;if(this.Bg&16)if(this.Hc&128)c=this.wd;else if(this.Ha){var c=this.Ha,d=0;c.Wb.length&&(d=c.Wb[0]);c.pa()&&c.Xa("scan code 0x"+l(d)+" delivered");c=d}p(this,a,null,b,"PPI_A",c);return c}; +k.nq=function(a,b,c){p(this,a,b,c,"PPI_A");this.Qh=b};k.$o=function(a,b){var c=this.Hc;p(this,a,null,b,"PPI_B",c);return c};k.oq=function(a,b,c){p(this,a,b,c,"PPI_B");Uh(this,b);this.Ha&&Vh(this.Ha,b&128?!1:!0,b&64?!0:!1)};function Uh(a,b){var c=!!(b&2),d=!!(a.Hc&2);a.Hc=b;c!=d&&jd(a,c)}k.ap=function(a,b){var c=0,c=this.za==Lg?this.Hc&4?c|this.yf&15:c|this.yf>>4&1:this.Hc&8?c|this.wd>>4:c|this.wd&15;this.Hc&1&&$g(this,2).Gd&&(c=this.Hc&2?c|32:c|16);p(this,a,null,b,"PPI_C",c,16448);return c}; +k.pq=function(a,b,c){p(this,a,b,c,"PPI_C");this.fj=b};k.bp=function(a,b){var c=this.Bg;p(this,a,null,b,"PPI_CTRL",c);return c};k.qq=function(a,b,c){p(this,a,b,c,"PPI_CTRL");this.Bg=b};k.po=function(a,b){var c=this.Lh;p(this,a,null,b,"8042_OUTBUFF",c,8192);this.ob&=-258;this.Ha&&Wh(this.Ha);return c}; +k.Fp=function(a,b,c){p(this,a,b,c,"8042_INBUF.DATA",null,8192);if(this.ob&8)switch(this.Rd){case 96:Xh(this,b);break;case 209:Yh(this,b);break;default:if(Xh(this,this.Qd&-17),this.Ha){a=-1;switch(b){case 255:a=250,Zh(this.Ha)}$h(this,a)}}this.Rd=b;this.ob&=-9};k.qo=function(a,b){var c=this.Hc&-209|(Yc(this.N)&64?16:0);p(this,a,null,b,"8042_RWREG",c,8192);return c};k.Gp=function(a,b,c){p(this,a,b,c,"8042_RWREG",null,8192);Uh(this,b)}; +k.ro=function(a,b){p(this,a,null,b,"8042_STATUS",this.ob,8192);var c=this.ob&255;this.ob&256&&(this.ob|=1,this.ob&=-257);return c}; +k.Ep=function(a,b,c){p(this,a,b,c,"8042_INBUFF.CMD",null,8192);this.Rd=b;this.ob|=8;a=0;240<=this.Rd&&(a=this.Rd^15,this.Rd=240);switch(this.Rd){case 192:$h(this,this.Ye);break;case 173:Xh(this,this.Qd|16);break;case 174:Xh(this,this.Qd&-17);this.Ha&&Wh(this.Ha);break;case 170:this.Ha&&(a=this.Ha,a.Wb=[],a.pa()&&a.Xa("scan codes flushed"));Xh(this,this.Qd|16);$h(this,85);Yh(this,3);break;case 224:$h(this,this.Qd&16?0:1);break;case 240:a&1&&pe(this.N)}}; +function Xh(a,b){a.Qd=b;a.ob=a.ob&-5|b&4;a.Ha&&Vh(a.Ha,!!(b&8),!(b&16))}function $h(a,b){0<=b&&(a.Lh=b,a.ob&=-2,a.ob|=256)}function Yh(a,b){a.cj=b;Ub(a.ha,!!(b&2));b&1||pe(a.N)}function ai(a,b){a.za=c?ah(this,c):this.ea[c];this.pa(2176)&&p(this,a,null,b,"CMOS.DATA["+l(c)+"]",d,!0);null!=b&&12==c&&(this.ea[c]&=15,d&128&&Ph(this,8),d&64&&this.ea[11]&64&&kh(this));return d}; +k.Vp=function(a,b,c){var d=this.Ze&63;this.pa(2176)&&p(this,a,b,c,"CMOS.DATA["+l(d)+"]",null,!0);a=b^this.ea[d];if(13>=d){if(c=b,10>d){var e=!1;this.ea[11]&4||(c=10*(c>>4)+(c&15),e=!0);if(4==d||5==d)e&&23=c?c=12==c?0:c:(c-=116,c=24==c?12:c))}}else c=b;this.ea[d]=c;11==d&&a&64&&b&64&&kh(this)};k.Xo=function(a,b){p(this,a,null,b,"MFG_DATA",this.zg);return this.zg};k.kq=function(a,b,c){p(this,a,b,c,"MFG_DATA");this.zg=b}; +k.mq=function(a,b,c){p(this,a,b,c,"NMI");this.Ph=b};k.Wp=function(a,b,c){p(this,a,b,c,"COPROC.CLEAR")};k.Xp=function(a,b,c){p(this,a,b,c,"COPROC.RESET")}; +k.np=function(a){if(this.pa(4096)&&ze(this.Z,26,a)){var b=this.N.G>>8;Ae(this.N,a,function(a,d){return function(e){d=Yc(a.N)-d;var f,g=a.N.J&255,h=a.N.J>>8,t=a.N.J&255,r=a.N.J>>8;if(2==b||3==b)f=" CH(hour)="+m(h)+" CL(min)="+l(g)+" DH(sec)="+l(r);else if(4==b||5==b)f=" CX(year)="+m(a.N.I)+" DH(month)="+l(r)+" DL(day)="+l(t);Be(a.Z,26,e,d,f)}}(this,Yc(this.N)))}return!0};function Mg(a,b){if(void 0===a)return b;for(var c=0,d=1,e=0;ec||2E4>8&255,this.Kb[c++]=f[b]>>16&255,this.Kb[c++]=f[b]>>24&255;else this.Kb=d;this.Wi=d.symbols;if(!this.Kb.length){ya("Empty ROM: "+a);return}if(1==this.Kb.length){ya(this.Kb[0]);return}}catch(g){this.Ea("ROM data error: "+ +ci.prototype.Ap=function(a,b,c){if(c)this.Ca("Unable to load system ROM (error "+c+")");else{if("["==b.charAt(0)||"{"==b.charAt(0))try{var d=eval("("+b+")"),e=d.bytes,f=d.data;if(e)this.Kb=e;else if(f)for(this.Kb=Array(4*f.length),c=b=0;b>8&255,this.Kb[c++]=f[b]>>16&255,this.Kb[c++]=f[b]>>24&255;else this.Kb=d;this.Xi=d.symbols;if(!this.Kb.length){ya("Empty ROM: "+a);return}if(1==this.Kb.length){ya(this.Kb[0]);return}}catch(g){this.Ca("ROM data error: "+ g.message);return}else for(a=b.replace(/\n/gm," ").replace(/ +$/,"").split(" "),this.Kb=Array(a.length),d=0;d>>d.Ga].og(e&d.Da,a.Kb[c]&255)}return!0}return!1}Ma(function(){for(var a=db(window.document,"pcjs","rom"),b=0;b>>d.Ga].og(e&d.Ea,a.Kb[c]&255)}return!0}return!1}Ma(function(){for(var a=db(window.document,"pcjs","rom"),b=0;bthis.Hh?21:23,c=a.ea[b]|a.ea[b+1]<<8,c=c+(this.fe>> -10);a.ea[b]=c&255;a.ea[b+1]=c>>8;jh(a)}}else ya("No RAM allocated")};function ii(){this.Kn=ki;this.Ln=li}var ji=2160066560,ki=255,li=0;function mi(){return this.X.Ln}function ni(a,b){this.X.Kn=b}var oi=[mi,mi,mi,ni,ni,ni];ii.prototype.Pl=function(){return[null,0]};ii.prototype.Gj=function(){return oi};Ma(function(){for(var a=db(window.document,"pcjs","ram"),b=0;b":62,"?":63,"@":64,Iq:65,Jq:66,$k:67,Fn:68,E:69,Qq:70,Tq:71,al:72,Vq:73,Wq:74,Xq:75,Yq:76,Zq:77,Ri:78,ar:79,br:80,dr:81,cl:82,hr:83,rr:84,vr:85,wr:86,xr:87,zr:88,Ar:89,Br:90,"[":91,"\\":92,"]":93,"^":94,_:95,"`":96,Cr:97,Dr:98,Fr:99,Mr:100,Nr:101,Or:102,Qr:103,Rr:104,Sr:105,Tr:106,Ur:107, -Vr:108,Wr:109,Xr:110,Zr:111,$r:112,as:113,cs:114,gs:115,ks:116,ls:117,ms:118,ns:119,x:120,y:121,z:122,"{":123,"|":124,"}":125,"~":126},qi={};qi[186]=V[";"];qi[187]=V["="];qi[188]=V[","];qi[189]=V["-"];qi[190]=V["."];qi[191]=V["/"];qi[192]=V["`"];qi[219]=V["["];qi[220]=V["\\"];qi[221]=V["]"];qi[222]=V["'"];qi[173]=V["-"];var ri={};ri[V["1"]]=V["!"];ri[V["2"]]=V["@"];ri[V["3"]]=V["#"];ri[V["4"]]=V.$;ri[V["5"]]=V["%"];ri[V["6"]]=V["^"];ri[V["7"]]=V["&"];ri[V["8"]]=V["*"];ri[V["9"]]=V["("]; +hi.prototype.reset=function(){if(!this.Ih&&!this.eo&&this.fa){var a=1024*fh(this.fa);this.fe&&a!=this.fe&&(Xb(this.ha,this.Ih,this.fe),this.bi=!1);this.fe=a}!this.bi&&this.fe&&Vb(this.ha,this.Ih,this.fe,1)&&(this.bi=!0,a=Math.floor(this.fe/1024)+"Kb",this.Jg&&(a+=" ("+this.Jg+")",this.Jg=null),this.status(a),"ramCPQ"==this.Yg&&(this.X=new ii,Vb(this.ha,ji,1,4,this.X)));if(this.bi){if(this.jo||Zb(this.ha,1138,4660),this.fa&&(a=this.fa,a.ea)){var b=1048576>this.Ih?21:23,c=a.ea[b]|a.ea[b+1]<<8,c=c+(this.fe>> +10);a.ea[b]=c&255;a.ea[b+1]=c>>8;jh(a)}}else ya("No RAM allocated")};function ii(){this.Ln=ki;this.Mn=li}var ji=2160066560,ki=255,li=0;function mi(){return this.X.Mn}function ni(a,b){this.X.Ln=b}var oi=[mi,mi,mi,ni,ni,ni];ii.prototype.Ql=function(){return[null,0]};ii.prototype.Hj=function(){return oi};Ma(function(){for(var a=db(window.document,"pcjs","ram"),b=0;b":62,"?":63,"@":64,Jq:65,Kq:66,al:67,Gn:68,E:69,Rq:70,Uq:71,bl:72,Wq:73,Xq:74,Yq:75,Zq:76,$q:77,Si:78,br:79,cr:80,er:81,dl:82,ir:83,sr:84,wr:85,xr:86,yr:87,Ar:88,Br:89,Cr:90,"[":91,"\\":92,"]":93,"^":94,_:95,"`":96,Dr:97,Er:98,Gr:99,Nr:100,Or:101,Pr:102,Rr:103,Sr:104,Tr:105,Ur:106,Vr:107, +Wr:108,Xr:109,Yr:110,$r:111,as:112,cs:113,ds:114,hs:115,ls:116,ms:117,ns:118,os:119,x:120,y:121,z:122,"{":123,"|":124,"}":125,"~":126},qi={};qi[186]=V[";"];qi[187]=V["="];qi[188]=V[","];qi[189]=V["-"];qi[190]=V["."];qi[191]=V["/"];qi[192]=V["`"];qi[219]=V["["];qi[220]=V["\\"];qi[221]=V["]"];qi[222]=V["'"];qi[173]=V["-"];var ri={};ri[V["1"]]=V["!"];ri[V["2"]]=V["@"];ri[V["3"]]=V["#"];ri[V["4"]]=V.$;ri[V["5"]]=V["%"];ri[V["6"]]=V["^"];ri[V["7"]]=V["&"];ri[V["8"]]=V["*"];ri[V["9"]]=V["("]; ri[V["0"]]=V[")"];ri[186]=V[":"];ri[187]=V["+"];ri[188]=V["<"];ri[189]=V._;ri[190]=V[">"];ri[191]=V["?"];ri[192]=V["~"];ri[219]=V["{"];ri[220]=V["|"];ri[221]=V["}"];ri[222]=V['"'];ri[173]=V._;ri[61]=V["+"];ri[59]=V[":"]; var si={3016:1,1016:2,1017:8,1018:32,1091:128,1093:64,1224:128,1020:512,1144:1024,1145:2048},ti={TAB:1009,ESC:1027,F1:1112,F2:1113,F3:1114,F4:1115,F5:1116,F6:1117,F7:1118,F8:1119,F9:1120,F10:1121,LEFT:1037,UP:1038,RIGHT:1039,DOWN:1040,CTRL_C:4003,CTRL_BREAK:4008,CTRL_ALT_DEL:4046},ui={esc:1027,1:V["1"],2:V["2"],3:V["3"],4:V["4"],5:V["5"],6:V["6"],7:V["7"],8:V["8"],9:V["9"],0:V["0"],"-":V["-"],"=":V["="],bs:1008,tab:1009,q:81,w:87,e:69,r:82,t:84,y:89,u:85,i:73,o:79,p:80,"[":V["["],"]":V["]"],enter:13, ctrl:1017,a:65,s:83,d:68,f:70,g:71,h:72,j:74,k:75,l:76,";":V[";"],quote:V["'"],"`":V["`"],shift:1016,"\\":V["\\"],z:90,x:88,c:67,v:86,b:66,n:78,m:77,",":V[","],".":V["."],"/":V["/"],"right-shift":3016,prtsc:1044,alt:1018,space:V[" "],"caps-lock":1020,f1:1112,f2:1113,f3:1114,f4:1115,f5:1116,f6:1117,f7:1118,f8:1119,f9:1120,f10:1121,"num-lock":1144,"scroll-lock":1145,"num-home":1036,"num-up":1038,"num-pgup":1033,"num-sub":1109,"num-left":1037,"num-center":1101,"num-right":1039,"num-add":1107,"num-end":1035, @@ -505,177 +506,177 @@ ctrl:1017,a:65,s:83,d:68,f:70,g:71,h:72,j:74,k:75,l:76,";":V[";"],quote:V["'"]," X[81]=10768;X[119]=17;X[87]=10769;X[101]=18;X[69]=10770;X[114]=19;X[82]=10771;X[116]=20;X[84]=10772;X[121]=21;X[89]=10773;X[117]=22;X[85]=10774;X[105]=23;X[73]=10775;X[111]=24;X[79]=10776;X[112]=25;X[80]=10777;X[V["["]]=26;X[V["{"]]=10778;X[V["]"]]=27;X[V["}"]]=10779;X[13]=28;X[1017]=29;X[97]=30;X[65]=10782;X[115]=31;X[83]=10783;X[100]=32;X[68]=10784;X[102]=33;X[70]=10785;X[103]=34;X[71]=10786;X[104]=35;X[72]=10787;X[106]=36;X[74]=10788;X[107]=37;X[75]=10789;X[108]=38;X[76]=10790;X[V[";"]]=39; X[V[":"]]=10791;X[V["'"]]=40;X[V['"']]=10792;X[V["`"]]=41;X[V["~"]]=10793;X[1016]=42;X[V["\\"]]=43;X[V["|"]]=10795;X[122]=44;X[90]=10796;X[120]=45;X[88]=10797;X[99]=46;X[67]=10798;X[118]=47;X[86]=10799;X[98]=48;X[66]=10800;X[110]=49;X[78]=10801;X[109]=50;X[77]=10802;X[V[","]]=51;X[V["<"]]=10803;X[V["."]]=52;X[V[">"]]=10804;X[V["/"]]=53;X[V["?"]]=10805;X[3016]=54;X[1044]=55;X[1018]=56;X[V[" "]]=57;X[1020]=58;X[1112]=59;X[1113]=60;X[1114]=61;X[1115]=62;X[1116]=63;X[1117]=64;X[1118]=65;X[1119]=66; X[1120]=67;X[1121]=68;X[1144]=69;X[1145]=70;X[1036]=71;X[1038]=72;X[1033]=73;X[1109]=74;X[1037]=75;X[1101]=76;X[1039]=77;X[1107]=78;X[1035]=79;X[1040]=80;X[1034]=81;X[1045]=82;X[1046]=83;X[1122]=87;X[1123]=88;X[1091]=91;X[1093]=93;X[1224]=91;X[4003]=7470;X[4008]=7494;X[4046]=3677523;k=pi.prototype; -k.Fb=function(a,b,c){var d=this,e=a+"-"+b;if(void 0===this.qa[e])switch(b){case "kbd":return this.qa[e]=c,c.onkeydown=function(a){return wi(d,a,!0)},c.onkeypress=function(a){a=a||window.event;a=a.which||a.keyCode;if(d.Cl){var b=d.Rb.length?d.Rb[0].Qe:0;b&&(65<=b&&90>=b||97<=b&&122>=b)&&(65<=a&&90>=a||97<=a&&122>=a)&&b!=a&&(d.Dj=!0,a=b)}(b=!X[a]||!!(d.Zb&128))||xi(d,a,!0);return b},c.onkeyup=function(a){return wi(d,a,!1)},!0;case "caps-lock":return this.qa[e]=c,c.onclick=function(){d.N&&d.N.Nc();xi(d, -1020,!0)},!0;case "num-lock":return this.qa[e]=c,c.onclick=function(){d.N&&d.N.Nc();xi(d,1144,!0)},!0;case "scroll-lock":return this.qa[e]=c,c.onclick=function(){d.N&&d.N.Nc();xi(d,1145,!0)},!0;default:var f=b.toUpperCase().replace(/-/g,"_");if(void 0!==ti[f]&&"button"==a)return this.qa[e]=c,c.onclick=function(a,b,c){return function(){a.N&&a.N.Nc();yi(a,c,!0);xi(a,c,!0)}}(this,f,ti[f]),!0;if(void 0!==ui[b])return this.vl++,this.qa[e]=c,a=function(a,b,c){return function(){xi(a,c)}}(this,b,ui[b]),b= -function(a,b,c){return function(){zi(a,c)}}(this,b,ui[b]),"ontouchstart"in window?(c.ontouchstart=a,c.ontouchend=b):(c.onmousedown=a,c.onmouseup=c.onmouseout=b),!0}return!1};function Ai(a,b,c){if(a.vl){for(var d in ri)if(b==ri[d]){b=parseInt(d,10);(d=qi[d])&&(b=d);break}for(var e in ui)if((d=ui[e]==b)||(d=b,97<=d&&122>=d&&(d-=32),d=ui[e]==d),d){(a=a.qa["key-"+e])&&void 0!==c&&(a.style.color=c?"#ffffff":"#000000",a.style.backgroundColor=c?"#000000":"#ffffff");break}}} -k.xc=function(a,b,c,d){this.ha=b;this.N=c;this.Z=d;this.fa=rb(a,"ChipSet")};function Zh(a,b){a.Xa("keyboard reset",32896);a.Wb=[170];b&&a.fa&&ai(a.fa,a.Wb[0])}function Vh(a,b,c){a.wj!==c&&(a.wj=a.Bj=c);a.di!==b&&(a.di=b)&&!a.Bj&&bi(a,!0);a.di&&a.Bj&&(Zh(a,!0),a.Bj=!1)}function Wh(a){var b=0;a.Wb.length&&(b=a.Wb[0],a.fa&&ai(a.fa,b));a.pa()&&a.Xa("scan code 0x"+l(b)+" available")} -function bi(a,b){0>=1);if(b&3584){if(!1===d)return!0;d=null}null==d?d=!((c?a.Bd:a.Zb)&b):d||b&255&&(b=255);if(c){a.Bd&=~b;d&&(a.Bd|=b);c=b;var f,g;for(g in vi)d="led-"+g,e=vi[g],c&&c!=e||!(f=a.qa[d])||(f.style.backgroundColor=a.Bd&e?"#00ff00":"#000000")}else a.Zb&=~b,d&&(a.Zb|=b);return!0}}return!1} -function xi(a,b,c){if(X[b]&&a.N&&a.N.da.jb){si[b]&&a.Rb.length&&0e||(e==a.Rb.length&&(d={},d.Qe=b,d.Zb=a.Zb,Ai(a,b,!0),e++),0b.Jd){if(!b.Qg){zi(a,b.Qe);return}b.Qg=!1;c=a.pp}else c=1==b.Jd++?a.qp:a.rp;b.An=setTimeout(function(a){return function(){Bi(a,b)}}(a),c)}}else zi(a,b.Qe,!0)}function Hi(a,b,c){var d=b;if(65<=b&&90>=b)!(a.Zb&515)==c&&(d=b+32);else if(97<=b&&122>=b)!!(a.Zb&515)==c&&(d=b-32);else if(!!(a.Zb&3)==c){if(a=ri[b])d=a}else if(a=qi[b])d=a;return d}k.Bi=function(a){this.ei=a;a||(this.Zb&=-256)}; -function wi(a,b,c){var d=!0,e=!1,f=!1,g=b.keyCode,h=Hi(a,g,!0);a.xj&&h==V["`"]&&(g=h=27);if(X[g+1E3])if(h+=1E3,2==b.location&&(h+=2E3),yi(a,h,!1,c)){if(20==g||144==g||145==g)a.eo||(c=e=!0);if(!(c||91!=g&&93!=g))for(var t=0;t=b||97<=b&&122>=b;d>>>=8;){var g=0,h=d&255;224==f||225==f?e.push(f|(c?0:128)):(42==h?a.Bd&3||a.Bd&512&&b||(g=h):29==h?a.Bd&12||(g=h):56==h?a.Bd&48||(g=h):e.push(f|(c?0:128)),g&&(c?e.unshift(g):e.push(g|128)))}for(c=0;cd.Wb.length?(d.pa()&&d.Xa("scan code 0x"+l(f)+" buffered"),d.Wb.push(f),1==d.Wb.length&&d.fa&&ai(d.fa, +k.Fb=function(a,b,c){var d=this,e=a+"-"+b;if(void 0===this.qa[e])switch(b){case "kbd":return this.qa[e]=c,c.onkeydown=function(a){return wi(d,a,!0)},c.onkeypress=function(a){a=a||window.event;a=a.which||a.keyCode;if(d.Dl){var b=d.Rb.length?d.Rb[0].Qe:0;b&&(65<=b&&90>=b||97<=b&&122>=b)&&(65<=a&&90>=a||97<=a&&122>=a)&&b!=a&&(d.Ej=!0,a=b)}(b=!X[a]||!!(d.Zb&128))||xi(d,a,!0);return b},c.onkeyup=function(a){return wi(d,a,!1)},!0;case "caps-lock":return this.qa[e]=c,c.onclick=function(){d.N&&d.N.Oc();xi(d, +1020,!0)},!0;case "num-lock":return this.qa[e]=c,c.onclick=function(){d.N&&d.N.Oc();xi(d,1144,!0)},!0;case "scroll-lock":return this.qa[e]=c,c.onclick=function(){d.N&&d.N.Oc();xi(d,1145,!0)},!0;default:var f=b.toUpperCase().replace(/-/g,"_");if(void 0!==ti[f]&&"button"==a)return this.qa[e]=c,c.onclick=function(a,b,c){return function(){a.N&&a.N.Oc();yi(a,c,!0);xi(a,c,!0)}}(this,f,ti[f]),!0;if(void 0!==ui[b])return this.wl++,this.qa[e]=c,a=function(a,b,c){return function(){xi(a,c)}}(this,b,ui[b]),b= +function(a,b,c){return function(){zi(a,c)}}(this,b,ui[b]),"ontouchstart"in window?(c.ontouchstart=a,c.ontouchend=b):(c.onmousedown=a,c.onmouseup=c.onmouseout=b),!0}return!1};function Ai(a,b,c){if(a.wl){for(var d in ri)if(b==ri[d]){b=parseInt(d,10);(d=qi[d])&&(b=d);break}for(var e in ui)if((d=ui[e]==b)||(d=b,97<=d&&122>=d&&(d-=32),d=ui[e]==d),d){(a=a.qa["key-"+e])&&void 0!==c&&(a.style.color=c?"#ffffff":"#000000",a.style.backgroundColor=c?"#000000":"#ffffff");break}}} +k.yc=function(a,b,c,d){this.ha=b;this.N=c;this.Z=d;this.fa=rb(a,"ChipSet")};function Zh(a,b){a.Xa("keyboard reset",32896);a.Wb=[170];b&&a.fa&&ai(a.fa,a.Wb[0])}function Vh(a,b,c){a.xj!==c&&(a.xj=a.Cj=c);a.ei!==b&&(a.ei=b)&&!a.Cj&&bi(a,!0);a.ei&&a.Cj&&(Zh(a,!0),a.Cj=!1)}function Wh(a){var b=0;a.Wb.length&&(b=a.Wb[0],a.fa&&ai(a.fa,b));a.pa()&&a.Xa("scan code 0x"+l(b)+" available")} +function bi(a,b){0>=1);if(b&3584){if(!1===d)return!0;d=null}null==d?d=!((c?a.Cd:a.Zb)&b):d||b&255&&(b=255);if(c){a.Cd&=~b;d&&(a.Cd|=b);c=b;var f,g;for(g in vi)d="led-"+g,e=vi[g],c&&c!=e||!(f=a.qa[d])||(f.style.backgroundColor=a.Cd&e?"#00ff00":"#000000")}else a.Zb&=~b,d&&(a.Zb|=b);return!0}}return!1} +function xi(a,b,c){if(X[b]&&a.N&&a.N.da.jb){si[b]&&a.Rb.length&&0e||(e==a.Rb.length&&(d={},d.Qe=b,d.Zb=a.Zb,Ai(a,b,!0),e++),0b.Kd){if(!b.Rg){zi(a,b.Qe);return}b.Rg=!1;c=a.qp}else c=1==b.Kd++?a.rp:a.sp;b.Bn=setTimeout(function(a){return function(){Bi(a,b)}}(a),c)}}else zi(a,b.Qe,!0)}function Hi(a,b,c){var d=b;if(65<=b&&90>=b)!(a.Zb&515)==c&&(d=b+32);else if(97<=b&&122>=b)!!(a.Zb&515)==c&&(d=b-32);else if(!!(a.Zb&3)==c){if(a=ri[b])d=a}else if(a=qi[b])d=a;return d}k.Ci=function(a){this.fi=a;a||(this.Zb&=-256)}; +function wi(a,b,c){var d=!0,e=!1,f=!1,g=b.keyCode,h=Hi(a,g,!0);a.yj&&h==V["`"]&&(g=h=27);if(X[g+1E3])if(h+=1E3,2==b.location&&(h+=2E3),yi(a,h,!1,c)){if(20==g||144==g||145==g)a.fo||(c=e=!0);if(!(c||91!=g&&93!=g))for(var t=0;t=b||97<=b&&122>=b;d>>>=8;){var g=0,h=d&255;224==f||225==f?e.push(f|(c?0:128)):(42==h?a.Cd&3||a.Cd&512&&b||(g=h):29==h?a.Cd&12||(g=h):56==h?a.Cd&48||(g=h):e.push(f|(c?0:128)),g&&(c?e.unshift(g):e.push(g|128)))}for(c=0;cd.Wb.length?(d.pa()&&d.Xa("scan code 0x"+l(f)+" buffered"),d.Wb.push(f),1==d.Wb.length&&d.fa&&ai(d.fa, f)):(20==d.Wb.length&&d.Wb.push(255),d.Xa("scan code buffer overflow")))}}Ma(function(){for(var a=db(window.document,"pcjs","keyboard"),b=0;bc.length)c=[!1,0,null,null,0,Array(Wi)];this.Z=a.Z;this.type=e[0];this.port=e[1];this.Ee=b;this.Va=e[2];this.Ub=e[3];this.ld=d||e[4];65536<=this.ld&&720896<=this.Va&&(this.Ub=Math.min(this.ld>>2,32768));this.od=c[0];this.Mc=c[1];this.Lf=c[2];this.mg=c[3];this.wc=c[4]&255;this.mi=c[4]>>8&255;this.nc=c[5];this.Mj=Wi;this.Jh=Xi;if(5==b){this.Mj=Yi;this.Jh=Zi;b=c[6];void 0===b&&(b=[!1,0,Array(20),0,3==f?0:1,0,0,Array(5), -0,0,0,Array(9),0,[this.Va,this.Ub,this.ld],Array(this.ld>>2),771,0,-1,0,-1,0,-1,0,0,0]);this.Ed=b[0];this.Xd=b[1];this.ke=b[2];this.Zi=$i;this.Oi=b[3];this.$g=b[4];this.ji=b[5];this.Zd=b[6];this.tg=b[7];this.aj=aj;this.Hj=b[8];this.Ij=b[9];this.Yd=b[10];this.Ue=b[11];this.$i=bj;this.Hb=b[12];d=b[13];"number"==typeof d&&(d=[this.Va,this.Ub,d]);this.Va=d[0];this.Ub=d[1];d=this.ld>>2;if((this.yd=b[14])&&this.yd.lengthc.length)c=[!1,0,null,null,0,Array(Wi)];this.Z=a.Z;this.type=e[0];this.port=e[1];this.Ee=b;this.Va=e[2];this.Ub=e[3];this.md=d||e[4];65536<=this.md&&720896<=this.Va&&(this.Ub=Math.min(this.md>>2,32768));this.pd=c[0];this.Nc=c[1];this.Lf=c[2];this.mg=c[3];this.xc=c[4]&255;this.ni=c[4]>>8&255;this.oc=c[5];this.Nj=Wi;this.Kh=Xi;if(5==b){this.Nj=Yi;this.Kh=Zi;b=c[6];void 0===b&&(b=[!1,0,Array(20),0,3==f?0:1,0,0,Array(5), +0,0,0,Array(9),0,[this.Va,this.Ub,this.md],Array(this.md>>2),771,0,-1,0,-1,0,-1,0,0,0]);this.Fd=b[0];this.Xd=b[1];this.ke=b[2];this.$i=$i;this.Pi=b[3];this.ah=b[4];this.ki=b[5];this.Zd=b[6];this.tg=b[7];this.bj=aj;this.Ij=b[8];this.Jj=b[9];this.Yd=b[10];this.Ue=b[11];this.aj=bj;this.Hb=b[12];d=b[13];"number"==typeof d&&(d=[this.Va,this.Ub,d]);this.Va=d[0];this.Ub=d[1];d=this.md>>2;if((this.zd=b[14])&&this.zd.length>8)} -function fj(a,b){this.Ib(a,b&255);this.Ib(a+1,b>>8&255);this.Ib(a+2,b>>16&255);this.Ib(a+3,b>>>24)}var gj=[,,function(a){a+=this.offset;return(this.X.Hb=this.oa[a])>>this.X.Gk&255},function(a){a+=this.offset;var b=a&-2;return(a&1?this.oa[b]>>8:this.oa[b])&255}];gj[16]=function(a){a+=this.offset;a=this.oa[a];for(var b=this.X.Oj&this.X.Pj,c=0,d=128;d;)(a&b)==b&&(c|=d),b>>>=1,d>>=1;return c}; -gj[512]=function(a,b){var c=a+this.offset,d;d=this.oa[c]&~this.X.sb|(b|b<<8|b<<16|b<<24)&this.X.sb;d=d&this.X.xb|this.X.Hb&~this.X.xb;this.oa[c]!=d&&(this.oa[c]=d,this.Ra=!0)};gj[1024]=function(a,b){var c=a+this.offset;b=b>>this.X.Hd|b<<8-this.X.Hd&255;var d;d=(b|b<<8|b<<16|b<<24)&this.X.Le|this.X.qf;d=d&this.X.sb|this.oa[c]&~this.X.sb;d=d&this.X.xb|this.X.Hb&~this.X.xb;this.oa[c]!=d&&(this.oa[c]=d,this.Ra=!0)}; -gj[1536]=function(a,b){var c=a+this.offset;b=b>>this.X.Hd|b<<8-this.X.Hd&255;var d;d=(b|b<<8|b<<16|b<<24)&this.X.Le|this.X.qf;d&=this.X.Hb;d=d&this.X.sb|this.oa[c]&~this.X.sb;d=d&this.X.xb|this.X.Hb&~this.X.xb;this.oa[c]!=d&&(this.oa[c]=d,this.Ra=!0)};gj[2560]=function(a,b){var c=a+this.offset;b=b>>this.X.Hd|b<<8-this.X.Hd&255;var d;d=(b|b<<8|b<<16|b<<24)&this.X.Le|this.X.qf;d|=this.X.Hb;d=d&this.X.sb|this.oa[c]&~this.X.sb;d=d&this.X.xb|this.X.Hb&~this.X.xb;this.oa[c]!=d&&(this.oa[c]=d,this.Ra=!0)}; -gj[3584]=function(a,b){var c=a+this.offset;b=b>>this.X.Hd|b<<8-this.X.Hd&255;var d;d=(b|b<<8|b<<16|b<<24)&this.X.Le|this.X.qf;d^=this.X.Hb;d=d&this.X.sb|this.oa[c]&~this.X.sb;d=d&this.X.xb|this.X.Hb&~this.X.xb;this.oa[c]!=d&&(this.oa[c]=d,this.Ra=!0)};gj[768]=function(a,b){a+=this.offset;var c,d=a&-2;c=this.X.sb&(d==a?16711935:-16711936);c=(b|b<<8|b<<16|b<<24)&c|this.oa[d]&~c;c=c&this.X.xb|this.X.Hb&~this.X.xb;this.oa[d]!=c&&(this.oa[d]=c,this.Ra=!0)}; +function fj(a,b){this.Ib(a,b&255);this.Ib(a+1,b>>8&255);this.Ib(a+2,b>>16&255);this.Ib(a+3,b>>>24)}var gj=[,,function(a){a+=this.offset;return(this.X.Hb=this.oa[a])>>this.X.Hk&255},function(a){a+=this.offset;var b=a&-2;return(a&1?this.oa[b]>>8:this.oa[b])&255}];gj[16]=function(a){a+=this.offset;a=this.oa[a];for(var b=this.X.Pj&this.X.Qj,c=0,d=128;d;)(a&b)==b&&(c|=d),b>>>=1,d>>=1;return c}; +gj[512]=function(a,b){var c=a+this.offset,d;d=this.oa[c]&~this.X.sb|(b|b<<8|b<<16|b<<24)&this.X.sb;d=d&this.X.xb|this.X.Hb&~this.X.xb;this.oa[c]!=d&&(this.oa[c]=d,this.Ra=!0)};gj[1024]=function(a,b){var c=a+this.offset;b=b>>this.X.Id|b<<8-this.X.Id&255;var d;d=(b|b<<8|b<<16|b<<24)&this.X.Le|this.X.qf;d=d&this.X.sb|this.oa[c]&~this.X.sb;d=d&this.X.xb|this.X.Hb&~this.X.xb;this.oa[c]!=d&&(this.oa[c]=d,this.Ra=!0)}; +gj[1536]=function(a,b){var c=a+this.offset;b=b>>this.X.Id|b<<8-this.X.Id&255;var d;d=(b|b<<8|b<<16|b<<24)&this.X.Le|this.X.qf;d&=this.X.Hb;d=d&this.X.sb|this.oa[c]&~this.X.sb;d=d&this.X.xb|this.X.Hb&~this.X.xb;this.oa[c]!=d&&(this.oa[c]=d,this.Ra=!0)};gj[2560]=function(a,b){var c=a+this.offset;b=b>>this.X.Id|b<<8-this.X.Id&255;var d;d=(b|b<<8|b<<16|b<<24)&this.X.Le|this.X.qf;d|=this.X.Hb;d=d&this.X.sb|this.oa[c]&~this.X.sb;d=d&this.X.xb|this.X.Hb&~this.X.xb;this.oa[c]!=d&&(this.oa[c]=d,this.Ra=!0)}; +gj[3584]=function(a,b){var c=a+this.offset;b=b>>this.X.Id|b<<8-this.X.Id&255;var d;d=(b|b<<8|b<<16|b<<24)&this.X.Le|this.X.qf;d^=this.X.Hb;d=d&this.X.sb|this.oa[c]&~this.X.sb;d=d&this.X.xb|this.X.Hb&~this.X.xb;this.oa[c]!=d&&(this.oa[c]=d,this.Ra=!0)};gj[768]=function(a,b){a+=this.offset;var c,d=a&-2;c=this.X.sb&(d==a?16711935:-16711936);c=(b|b<<8|b<<16|b<<24)&c|this.oa[d]&~c;c=c&this.X.xb|this.X.Hb&~this.X.xb;this.oa[d]!=c&&(this.oa[d]=c,this.Ra=!0)}; gj[4096]=function(a){a+=this.offset;var b=this.oa[a]&~this.X.sb|this.X.Hb&this.X.sb;this.oa[a]!=b&&(this.oa[a]=b,this.Ra=!0)};gj[8192]=function(a,b){var c=a+this.offset,d=Si[b&15],d=d&this.X.sb|this.oa[c]&~this.X.sb,d=d&this.X.xb|this.X.Hb&~this.X.xb;this.oa[c]!=d&&(this.oa[c]=d,this.Ra=!0)};gj[24576]=function(a,b){var c=a+this.offset,d=Si[b&15],d=d&this.X.Hb,d=d&this.X.sb|this.oa[c]&~this.X.sb,d=d&this.X.xb|this.X.Hb&~this.X.xb;this.oa[c]!=d&&(this.oa[c]=d,this.Ra=!0)}; gj[40960]=function(a,b){var c=a+this.offset,d=Si[b&15],d=d|this.X.Hb,d=d&this.X.sb|this.oa[c]&~this.X.sb,d=d&this.X.xb|this.X.Hb&~this.X.xb;this.oa[c]!=d&&(this.oa[c]=d,this.Ra=!0)};gj[57344]=function(a,b){var c=a+this.offset,d=Si[b&15],d=d^this.X.Hb,d=d&this.X.sb|this.oa[c]&~this.X.sb,d=d&this.X.xb|this.X.Hb&~this.X.xb;this.oa[c]!=d&&(this.oa[c]=d,this.Ra=!0)}; -function hj(a){var b=[];if(void 0!==a.Ee){b[0]=a.od;b[1]=a.Mc;b[2]=a.Lf;b[3]=a.mg;b[4]=a.wc|a.mi<<8;b[5]=a.nc;if(5==a.Ee){var c=[];c[0]=a.Ed;c[1]=a.Xd;c[2]=a.ke;c[3]=a.Oi;c[4]=a.$g;c[5]=a.ji;c[6]=a.Zd;c[7]=a.tg;c[8]=a.Hj;c[9]=a.Ij;c[10]=a.Yd;c[11]=a.Ue;c[12]=a.Hb;c[13]=[a.Va,a.Ub,a.ld];var d;a:if(d=a.yd){var e=0,f=[];if(void 0!==d[0])for(var g=0;2>g;g++)for(var h=g;h>1;f[e++]=t;h=r}if(f.lengtha&&(a=0);for(var c="",d=0;8>d;d++){for(var f=ea(b.Va+a)+":",J=0;8>J&&ag;g++)for(var h=g;h>1;f[e++]=t;h=r}if(f.lengtha&&(a=0);for(var c="",d=0;8>d;d++){for(var f=ea(b.Va+a)+":",J=0;8>J&&a>1&255,d=d>>8&-129,d>>4==(d&15)&&(d^=15)):(c=d&255,d=(d&256?7:112)|8&d>>8),Zb(this.ha,b,c|d<<8);ad(this,!0)}};function pj(a){a.ga.$g&1?(a.kd=a.ij,a.Lb=a.ga):(a.kd=a.ga,a.Lb=a.Wh)}k.save=function(){var a=new Ee(this);a.set(0,hj(this.ij));a.set(1,hj(this.Wh));a.set(2,[this.Ie,this.Id,this.de]);a.set(3,hj(this.ga));return a.data()}; -k.restore=function(a){var b=a[2];this.Ie=b[0];this.Id=b[1];this.de=b[2];this.Fa=null;this.kd=this.ij=new Ui(this,1,a[0]);this.Lb=this.Wh=new Ui(this,3,a[1]);this.ga=new Ui(this,5,a[3],this.ld);this.ga.od&&pj(this);qj(this);if(!sj(this))return!1;tj(this);return!0}; -k.Ap=function(a,b,c){if(c)this.Ea("Unable to load font ROM image (error "+c+")");else{try{var d=eval("("+b+")");if(!d.length){ya("Empty font ROM image: "+a);return}if(1==d.length){ya(d[0]);return}if(8192==d.length)gi(this,d,[0,6144]);else{this.Ea("Unrecognized font data length ("+d.length+")");return}}catch(e){this.Ea("Font ROM data error: "+e.message);return}jb(this)}}; -function uj(a,b){if(1==b)return a.Od[0]=Oi[0],a.Od[1]=Oi[7],a.Od;if(2==b){var c=a.Fa.Lf;if(a.Fa===a.ga){var d=a.ga.ke[0],c=d&7;d&16&&(c|=8);18!=a.ga.ke[1]&&(c|=32)}a.Od[0]=Oi[c&15];c=c&32?Qi:Pi;for(d=0;dqa||!T?qa:8,Qa=ed.createImageData(r.tc,r.uc),Z=0;256>Z;Z++){for(W=0;W< -qa;W++)for(var sa=r.sg&&E&1&&W>=qa-2,va=Ia[W>(8<=ja&&176<=Z&&223>=Z?7:ja)?C:ra;xj(Qa,Hc,fd,gd);M&&xj(Qa,Hc+1,fd,gd)}ed.putImageData(Qa,(Z&15)*r.tc,(Z>>4)*r.uc)}r.Ef[E]="#"+l(C[0])+l(C[1])+l(C[2]);r.hl[E]=C;r.Ti[E]=kc;r=!0}}a.ne[b]=J;return r}function yj(a){0a.cf&&(a.cf=0):a.cf=-1} -function tj(a){if(a.ac){for(var b=10;15>=b;b++)if(null==a.Fa.nc[b])return;var c=a.Fa.nc[10],b=c&31,d=a.Fa.nc[11]&31,e=a.Fa.nc[9]&31,f=!1;a.Fa===a.ga&&(f=!0,7!=e||4!=b||d||(d=7));if(c&32||b>d&&!f||b>e)zj(a);else{c=a.Fa.nc[15]+((a.Fa.nc[14]&63)<<8);a.Wc!=c&&(zj(a),a.Wc=c);d=d-b+1;if(a.En!=b||a.zl!=d)a.En=b,a.zl=d;a.Ae=e+1;yj(a)}}} -function zj(a){if(0<=a.Wc){if(void 0!==a.oc){var b=a.oc[a.Wc];if(b&131072){var b=b&-131073,c=a.Wc%a.Mb,d=Math.floor(a.Wc/a.Mb);a.ac&&a.ne[a.ac]&&(a.Mf&&Aj(a,c,d,b,a.Mf),Aj(a,c,d,b));a.oc[a.Wc]=b}}a.Wc=-1}} -function Bj(a){var b;a=a.Fa;var c=a.Ue[5];if(null!=c){b=2;var d=512,e=a.Ue[3]&31;switch(c&3){case 0:if(e){d=1024;switch(e&24){case 8:d=1536;break;case 16:d=2560;break;case 24:d=3584}a.Hd=e&7}break;case 1:d=4096;break;case 2:switch(e&24){default:d=8192;break;case 8:d=24576;break;case 16:d=40960;break;case 24:d=57344}}c&8&&(b=16);c&16&&(b|=1,d|=256);b|=d}return b}k.Pe=function(a){var b=this.Fa;null!=a&&b&&a!=b.qi&&(b.Li(a),this.ha.Li(b.Va,b.Ub,b.Gj()))}; -function sj(a,b){var c,d=a.de,e=a.Fa;if(e)if(1==e.Ee)d=Ji;else if(5==e.Ee){var d=null,f=e.ld>>2,g=32768f&&(d=c?13:14):c&&(d-=2));c=Bj(a)}}else e.Mc&8&&(e.Mc&2?(d=e.Mc&16?6:5,e.Mc&4||--d):(d=e.Mc&1?3:1,e.Mc&4&&--d)); -else a.de=null,null==d&&(d=a.Id);if(!rj(a,d,b))return!1;a.Pe(c);return!0} -function rj(a,b,c){if(null!=b&&(b!=a.de||c)){a.Nn=0;a.de=b;b=a.Fa||(b==Ji?a.kd:a.Lb);if(b!=a.Fa||b.Va!=a.Va||b.Ub!=a.Ub){zj(a);if(a.Va){if(!Xb(a.ha,a.Va,a.Ub))return!1;a.Fa&&(a.Fa.od=!1)}a.Fa=b;b.od=!0;a.Va=b.Va;a.Ub=b.Ub;if(!Vb(a.ha,b.Va,b.Ub,3,b===a.ga?b:null))return!1}a.ac=0;a.Mb=a.si;a.zc=a.Tj;a.Nj=Ii[Ji][2];b=0;var d=Ii[a.de];d&&(a.Mb=d[0],a.zc=d[1],a.Nj=d[2],b=d[3]||0,a.ac=d[4],4==a.Ie&&a.Fa===a.ga&&3==a.ac&&(7==a.ga.nc[9]?a.zc=43:a.ac=5));a.bm=a.Mb*a.zc;a.ri=a.bm/a.Nj;a.jj=(a.ri<<1)+b;a.xl= -b?a.jj+b>>1:0;13<=a.de&&(a.ri<<=1);a.ne.length&&(a.Ud=Math.floor(a.Td/a.Mb),a.Vd=Math.floor(a.Be/a.zc),a.ac?(b=a.ne[a.ac],d=a.ne[a.ac<<1],a.ho&&80==a.Mb?d&&a.Ud>=3*d.tc>>2&&(a.ac<<=1,b=d):(d&&a.Ud>=d.tc&&(a.ac<<=1,b=d),b&&(a.Ud=b.tc,a.Vd=b.uc)),a.Ng=a.Og=0,b&&(a.Ng=a.Mb*b.tc,a.Og=a.zc*b.uc)):(a.Ud=a.Vd=1,a.Ng=a.Mb,a.Og=a.zc),a.ni=a.nd.createImageData(a.Ng,a.Og),a.Jf=window.document.createElement("canvas"),a.Jf.width=a.Ng,a.Jf.height=a.Og,a.Mf=a.Jf.getContext("2d"),a.Yk=a.Zk=0,a.oj=a.Td,a.pj=a.Be, -b=a.Td-a.Mb*a.Ud,d=a.Be-a.zc*a.Vd,0>1,a.oj-=b),0>1,a.pj-=d),b||d)&&(a.nd.fillStyle=a.Hg.style.backgroundColor,a.nd.fillRect(0,0,a.Td,a.Be));!1!==c?ad(a,!0):Cj(a,!0)}return!0}function xj(a,b,c,d){b=(b+c*a.width)*d.length;a.data[b]=d[0];a.data[b+1]=d[1];a.data[b+2]=d[2];a.data[b+3]=d[3]}function Cj(a,b){var c;if(b){if(c=a.ri,void 0===a.oc||a.oc.length!=c)a.oc=Array(c)}else{if(void 0===a.oc)return;c=a.oc.length}for(var d=0;d>8;d=g&15;var h=a.ne[a.ac];h.sg&&(d=h.sg[d]);var t=g>>4&15;h.sg&&(t=h.sg[t]);e?(b*=h.tc,c*=h.uc,e.fillStyle=h.Ef[t],e.fillRect(b,c,h.tc,h.uc)):(b=b*a.Ud+a.Yk,c=c*a.Vd+a.Zk,a.nd.fillStyle=h.Ef[t],a.nd.fillRect(b,c,a.Ud,a.Vd));g&256&&(t=(f&15)*h.tc,f=(f>>4)*h.uc,e?e.drawImage(h.Ti[d],t,f,h.tc,h.uc,b,c,h.tc,h.uc):a.nd.drawImage(h.Ti[d],t,f,h.tc,h.uc,b,c,a.Ud,a.Vd));g&512&&(f=a.En,g=a.zl,e?(a.Ae&&a.Ae!==h.uc&&(f=Math.floor(f*h.uc/a.Ae),g=Math.floor(g*h.uc/a.Ae)), -e.fillStyle=h.Ef[d],e.fillRect(b,c+f,h.tc,g)):(a.Ae&&a.Ae!==a.Vd&&(f=Math.floor(f*a.Vd/a.Ae),g=Math.floor(g*a.Vd/a.Ae)),a.nd.fillStyle=h.Ef[d],a.nd.fillRect(b,c+f,a.Ud,g)))} -function ad(a,b){if(a.da.$b){var c=!1;a.Fa&&(a.Fa===a.ga?a.ga.Xd&32&&(c=!0):a.Fa.Mc&8&&(c=!0));if(c||b){if(b)Cj(a,!0);else if(void 0===a.oc)return;var d=!1;!(b||++a.Nn&15)&&0<=a.cf&&(a.cf++,d=!0);var e=0,f=a.bm,c=a.Fa.Va,g=c+a.Fa.Ub,h=(a.Fa.nc[12]<<8)+a.Fa.nc[13];a.ac&&(h<<=1);var c=c+h,t=a.jj;c+t>g&&(t=g-c,0>t&&(t=0));g=c+t;if(h=!b){for(var h=a.ha,r=!0,B=c>>>h.Ga;0a.Wc)return;e=a.Wc;f= -e+1}}if(a.ac){if(a.ne[a.ac]){d=0;h=a.bf=0;t=1048575;a.Fa.Mc&32&&(h=32768,t&=~h,a.cf&2||(t&=-65537));for(c+=e<<1;c>8|(J&255)<<8;C=h;var qa=16;B>=t))>>(qa-=t);xj(a.ni,B++,E,r[ra])}B>N&&(N=B);E=S&&(S=E+1)}e+=2;g++;if(B>=a.Mb){B=0;E+=2;if(E>a.zc)break;E==a.zc&&(E=1,e=c+a.xl)}}MT;T++)S= -Ti[N&-2139062144]||0,xj(a.ni,h++,t,g[S]),N<<=1;h>B&&(B=h);t=M&&(M=t+1)}e++;if(h>=a.Mb&&(h=0,++t>a.zc))break}r>2),c=this.ga.Oi&-17|(this.Lh&1<f&&(f=0);f%b.Qj>b.up&&(d|=1);f%=b.em;f>b.wp&&(d|=8);b.Xj=e-f;b===a.ga?(d|=b.mg&48^48,b.Ed=!1):d=(b.mg^=9)|240;b.mg=d;p(a,b.port+6,null,c,b===a.ga?"STATUS1":"STATUS",d);return d} -var jj={948:Y.prototype.To,949:Y.prototype.So,952:Y.prototype.Uo,954:Y.prototype.Vo,980:Y.prototype.Bo,981:Y.prototype.Ao,984:Y.prototype.Co,985:Y.prototype.zo,986:Y.prototype.Do},kj={948:Y.prototype.hq,949:Y.prototype.gq,952:Y.prototype.iq,980:Y.prototype.Rp,981:Y.prototype.Qp,984:Y.prototype.Sp,985:Y.prototype.Pp},lj={960:Y.prototype.Wl,961:Y.prototype.Wl,962:Y.prototype.ep,964:Y.prototype.dp,965:Y.prototype.cp,970:Y.prototype.Mo,972:Y.prototype.Lo,974:Y.prototype.Ko,975:Y.prototype.Jo},mj={954:Y.prototype.jn, -960:Y.prototype.hn,961:Y.prototype.hn,962:Y.prototype.kq,964:Y.prototype.rq,965:Y.prototype.qq,970:Y.prototype.cq,972:Y.prototype.bq,974:Y.prototype.aq,975:Y.prototype.$p,986:Y.prototype.jn}; +k.reset=function(){var a=!0,b=0;this.fa&&(b=gh(this.fa));var c=!1;if(this.za)switch(this.za){case "ega":var c=!0,d=Li[this.Mh];d&&(b=d[0]);b||(b=4);break;case "mda":b=3;break;default:b=2}this.Ie!==b&&(this.Ie=b,a=!0);this.Fa=null;this.ld=this.jj=new Ui(this,1);this.Lb=this.Xh=new Ui(this,3);c?(this.ga=new Ui(this,5,null,this.md),pj(this)):this.ga=new Ui;qj(this);this.de=null;this.Jd=3==b?Ji:3;this.cf=this.Xc=-1;this.bf=0;rj(this,this.Jd);if(this.Fa.Va&&a){a=this.Fa.Va+this.kj;for(b=this.Fa.Va;b>1&255,d=d>>8&-129,d>>4==(d&15)&&(d^=15)):(c=d&255,d=(d&256?7:112)|8&d>>8),Zb(this.ha,b,c|d<<8);ad(this,!0)}};function pj(a){a.ga.ah&1?(a.ld=a.jj,a.Lb=a.ga):(a.ld=a.ga,a.Lb=a.Xh)}k.save=function(){var a=new Ee(this);a.set(0,hj(this.jj));a.set(1,hj(this.Xh));a.set(2,[this.Ie,this.Jd,this.de]);a.set(3,hj(this.ga));return a.data()}; +k.restore=function(a){var b=a[2];this.Ie=b[0];this.Jd=b[1];this.de=b[2];this.Fa=null;this.ld=this.jj=new Ui(this,1,a[0]);this.Lb=this.Xh=new Ui(this,3,a[1]);this.ga=new Ui(this,5,a[3],this.md);this.ga.pd&&pj(this);qj(this);if(!sj(this))return!1;tj(this);return!0}; +k.Bp=function(a,b,c){if(c)this.Ca("Unable to load font ROM image (error "+c+")");else{try{var d=eval("("+b+")");if(!d.length){ya("Empty font ROM image: "+a);return}if(1==d.length){ya(d[0]);return}if(8192==d.length)gi(this,d,[0,6144]);else{this.Ca("Unrecognized font data length ("+d.length+")");return}}catch(e){this.Ca("Font ROM data error: "+e.message);return}jb(this)}}; +function uj(a,b){if(1==b)return a.Od[0]=Oi[0],a.Od[1]=Oi[7],a.Od;if(2==b){var c=a.Fa.Lf;if(a.Fa===a.ga){var d=a.ga.ke[0],c=d&7;d&16&&(c|=8);18!=a.ga.ke[1]&&(c|=32)}a.Od[0]=Oi[c&15];c=c&32?Qi:Pi;for(d=0;dqa||!T?qa:8,Qa=ed.createImageData(r.uc,r.vc),Z=0;256>Z;Z++){for(W=0;W< +qa;W++)for(var sa=r.sg&&E&1&&W>=qa-2,va=Ia[W>(8<=ja&&176<=Z&&223>=Z?7:ja)?C:ra;xj(Qa,Hc,fd,gd);M&&xj(Qa,Hc+1,fd,gd)}ed.putImageData(Qa,(Z&15)*r.uc,(Z>>4)*r.vc)}r.Ef[E]="#"+l(C[0])+l(C[1])+l(C[2]);r.il[E]=C;r.Ui[E]=kc;r=!0}}a.ne[b]=J;return r}function yj(a){0a.cf&&(a.cf=0):a.cf=-1} +function tj(a){if(a.ac){for(var b=10;15>=b;b++)if(null==a.Fa.oc[b])return;var c=a.Fa.oc[10],b=c&31,d=a.Fa.oc[11]&31,e=a.Fa.oc[9]&31,f=!1;a.Fa===a.ga&&(f=!0,7!=e||4!=b||d||(d=7));if(c&32||b>d&&!f||b>e)zj(a);else{c=a.Fa.oc[15]+((a.Fa.oc[14]&63)<<8);a.Xc!=c&&(zj(a),a.Xc=c);d=d-b+1;if(a.Fn!=b||a.Al!=d)a.Fn=b,a.Al=d;a.Ae=e+1;yj(a)}}} +function zj(a){if(0<=a.Xc){if(void 0!==a.pc){var b=a.pc[a.Xc];if(b&131072){var b=b&-131073,c=a.Xc%a.Mb,d=Math.floor(a.Xc/a.Mb);a.ac&&a.ne[a.ac]&&(a.Mf&&Aj(a,c,d,b,a.Mf),Aj(a,c,d,b));a.pc[a.Xc]=b}}a.Xc=-1}} +function Bj(a){var b;a=a.Fa;var c=a.Ue[5];if(null!=c){b=2;var d=512,e=a.Ue[3]&31;switch(c&3){case 0:if(e){d=1024;switch(e&24){case 8:d=1536;break;case 16:d=2560;break;case 24:d=3584}a.Id=e&7}break;case 1:d=4096;break;case 2:switch(e&24){default:d=8192;break;case 8:d=24576;break;case 16:d=40960;break;case 24:d=57344}}c&8&&(b=16);c&16&&(b|=1,d|=256);b|=d}return b}k.Pe=function(a){var b=this.Fa;null!=a&&b&&a!=b.ri&&(b.Mi(a),this.ha.Mi(b.Va,b.Ub,b.Hj()))}; +function sj(a,b){var c,d=a.de,e=a.Fa;if(e)if(1==e.Ee)d=Ji;else if(5==e.Ee){var d=null,f=e.md>>2,g=32768f&&(d=c?13:14):c&&(d-=2));c=Bj(a)}}else e.Nc&8&&(e.Nc&2?(d=e.Nc&16?6:5,e.Nc&4||--d):(d=e.Nc&1?3:1,e.Nc&4&&--d)); +else a.de=null,null==d&&(d=a.Jd);if(!rj(a,d,b))return!1;a.Pe(c);return!0} +function rj(a,b,c){if(null!=b&&(b!=a.de||c)){a.On=0;a.de=b;b=a.Fa||(b==Ji?a.ld:a.Lb);if(b!=a.Fa||b.Va!=a.Va||b.Ub!=a.Ub){zj(a);if(a.Va){if(!Xb(a.ha,a.Va,a.Ub))return!1;a.Fa&&(a.Fa.pd=!1)}a.Fa=b;b.pd=!0;a.Va=b.Va;a.Ub=b.Ub;if(!Vb(a.ha,b.Va,b.Ub,3,b===a.ga?b:null))return!1}a.ac=0;a.Mb=a.ti;a.Ac=a.Uj;a.Oj=Ii[Ji][2];b=0;var d=Ii[a.de];d&&(a.Mb=d[0],a.Ac=d[1],a.Oj=d[2],b=d[3]||0,a.ac=d[4],4==a.Ie&&a.Fa===a.ga&&3==a.ac&&(7==a.ga.oc[9]?a.Ac=43:a.ac=5));a.cm=a.Mb*a.Ac;a.si=a.cm/a.Oj;a.kj=(a.si<<1)+b;a.yl= +b?a.kj+b>>1:0;13<=a.de&&(a.si<<=1);a.ne.length&&(a.Ud=Math.floor(a.Td/a.Mb),a.Vd=Math.floor(a.Be/a.Ac),a.ac?(b=a.ne[a.ac],d=a.ne[a.ac<<1],a.io&&80==a.Mb?d&&a.Ud>=3*d.uc>>2&&(a.ac<<=1,b=d):(d&&a.Ud>=d.uc&&(a.ac<<=1,b=d),b&&(a.Ud=b.uc,a.Vd=b.vc)),a.Og=a.Pg=0,b&&(a.Og=a.Mb*b.uc,a.Pg=a.Ac*b.vc)):(a.Ud=a.Vd=1,a.Og=a.Mb,a.Pg=a.Ac),a.oi=a.od.createImageData(a.Og,a.Pg),a.Jf=window.document.createElement("canvas"),a.Jf.width=a.Og,a.Jf.height=a.Pg,a.Mf=a.Jf.getContext("2d"),a.Zk=a.$k=0,a.pj=a.Td,a.qj=a.Be, +b=a.Td-a.Mb*a.Ud,d=a.Be-a.Ac*a.Vd,0>1,a.pj-=b),0>1,a.qj-=d),b||d)&&(a.od.fillStyle=a.Hg.style.backgroundColor,a.od.fillRect(0,0,a.Td,a.Be));!1!==c?ad(a,!0):Cj(a,!0)}return!0}function xj(a,b,c,d){b=(b+c*a.width)*d.length;a.data[b]=d[0];a.data[b+1]=d[1];a.data[b+2]=d[2];a.data[b+3]=d[3]}function Cj(a,b){var c;if(b){if(c=a.si,void 0===a.pc||a.pc.length!=c)a.pc=Array(c)}else{if(void 0===a.pc)return;c=a.pc.length}for(var d=0;d>8;d=g&15;var h=a.ne[a.ac];h.sg&&(d=h.sg[d]);var t=g>>4&15;h.sg&&(t=h.sg[t]);e?(b*=h.uc,c*=h.vc,e.fillStyle=h.Ef[t],e.fillRect(b,c,h.uc,h.vc)):(b=b*a.Ud+a.Zk,c=c*a.Vd+a.$k,a.od.fillStyle=h.Ef[t],a.od.fillRect(b,c,a.Ud,a.Vd));g&256&&(t=(f&15)*h.uc,f=(f>>4)*h.vc,e?e.drawImage(h.Ui[d],t,f,h.uc,h.vc,b,c,h.uc,h.vc):a.od.drawImage(h.Ui[d],t,f,h.uc,h.vc,b,c,a.Ud,a.Vd));g&512&&(f=a.Fn,g=a.Al,e?(a.Ae&&a.Ae!==h.vc&&(f=Math.floor(f*h.vc/a.Ae),g=Math.floor(g*h.vc/a.Ae)), +e.fillStyle=h.Ef[d],e.fillRect(b,c+f,h.uc,g)):(a.Ae&&a.Ae!==a.Vd&&(f=Math.floor(f*a.Vd/a.Ae),g=Math.floor(g*a.Vd/a.Ae)),a.od.fillStyle=h.Ef[d],a.od.fillRect(b,c+f,a.Ud,g)))} +function ad(a,b){if(a.da.$b){var c=!1;a.Fa&&(a.Fa===a.ga?a.ga.Xd&32&&(c=!0):a.Fa.Nc&8&&(c=!0));if(c||b){if(b)Cj(a,!0);else if(void 0===a.pc)return;var d=!1;!(b||++a.On&15)&&0<=a.cf&&(a.cf++,d=!0);var e=0,f=a.cm,c=a.Fa.Va,g=c+a.Fa.Ub,h=(a.Fa.oc[12]<<8)+a.Fa.oc[13];a.ac&&(h<<=1);var c=c+h,t=a.kj;c+t>g&&(t=g-c,0>t&&(t=0));g=c+t;if(h=!b){for(var h=a.ha,r=!0,B=c>>>h.Ga;0a.Xc)return;e=a.Xc;f= +e+1}}if(a.ac){if(a.ne[a.ac]){d=0;h=a.bf=0;t=1048575;a.Fa.Nc&32&&(h=32768,t&=~h,a.cf&2||(t&=-65537));for(c+=e<<1;c>8|(J&255)<<8;C=h;var qa=16;B>=t))>>(qa-=t);xj(a.oi,B++,E,r[ra])}B>N&&(N=B);E=S&&(S=E+1)}e+=2;g++;if(B>=a.Mb){B=0;E+=2;if(E>a.Ac)break;E==a.Ac&&(E=1,e=c+a.yl)}}MT;T++)S= +Ti[N&-2139062144]||0,xj(a.oi,h++,t,g[S]),N<<=1;h>B&&(B=h);t=M&&(M=t+1)}e++;if(h>=a.Mb&&(h=0,++t>a.Ac))break}r>2),c=this.ga.Pi&-17|(this.Mh&1<f&&(f=0);f%b.Rj>b.vp&&(d|=1);f%=b.fm;f>b.xp&&(d|=8);b.Yj=e-f;b===a.ga?(d|=b.mg&48^48,b.Fd=!1):d=(b.mg^=9)|240;b.mg=d;p(a,b.port+6,null,c,b===a.ga?"STATUS1":"STATUS",d);return d} +var jj={948:Y.prototype.Uo,949:Y.prototype.To,952:Y.prototype.Vo,954:Y.prototype.Wo,980:Y.prototype.Co,981:Y.prototype.Bo,984:Y.prototype.Do,985:Y.prototype.Ao,986:Y.prototype.Eo},kj={948:Y.prototype.iq,949:Y.prototype.hq,952:Y.prototype.jq,980:Y.prototype.Sp,981:Y.prototype.Rp,984:Y.prototype.Tp,985:Y.prototype.Qp},lj={960:Y.prototype.Xl,961:Y.prototype.Xl,962:Y.prototype.fp,964:Y.prototype.ep,965:Y.prototype.dp,970:Y.prototype.No,972:Y.prototype.Mo,974:Y.prototype.Lo,975:Y.prototype.Ko},mj={954:Y.prototype.kn, +960:Y.prototype.jn,961:Y.prototype.jn,962:Y.prototype.lq,964:Y.prototype.sq,965:Y.prototype.rq,970:Y.prototype.dq,972:Y.prototype.cq,974:Y.prototype.bq,975:Y.prototype.aq,986:Y.prototype.kn}; Ma(function(){for(var a=db(window.document,"pcjs","video"),b=0;bMissing <canvas> support; try a new web browser.";break}e.setAttribute("class","pcjs-canvas");e.setAttribute("width",d.screenWidth);e.setAttribute("height",d.screenHeight);e.style.backgroundColor=d.screenColor;e.style.height="auto";0<=(window?window.navigator.userAgent:"").indexOf("MSIE")&&(c.onresize=function(a,b,c,d){return function(){b.style.height= (a.clientWidth*d/c|0)+"px"}}(c,e,d.screenWidth,d.screenHeight),c.onresize());c.appendChild(e);var f=window.document.createElement("textarea");Ea("iOS")&&(f.setAttribute("autocapitalize","off"),f.setAttribute("autocorrect","off"));c.appendChild(f);var g=e.getContext("2d"),d=new Y(d,e,g,f,c);cb(d,c)}}); -function Ij(a){this.Sl=a.adapter;switch(this.Sl){case 1:this.Kk=1016;this.ih=4;break;case 2:this.Kk=760;this.ih=3;break;default:ya("Unrecognized serial adapter #"+this.Sl);return}this.ye=null;n.call(this,"SerialPort",a,Ij,2097152);var b=a.binding,c;a=Jj;b&&(void 0===c&&(c="Panel"),(c=ab(c,this.id))&&(b=c.qa[b])&&this.Fb(null,a,b))}Ya(n,Ij);var Jj="buffer";k=Ij.prototype;k.kl=function(a,b){return a==this.Xg?(this.He=b,this):null}; -k.Fb=function(a,b,c){var d=this;switch(b){case Jj:return this.qa[b]=this.ye=c,c.onkeydown=function(a){a=a||window.event;var b=a.keyCode;8===b&&(a.preventDefault&&a.preventDefault(),Kj(d,[b]))},c.onkeypress=function(a){a=a||window.event;Kj(d,[a.which||a.keyCode])},!0}return!1};k.xc=function(a,b,c,d){this.ha=b;this.N=c;this.Z=d;this.fa=rb(a,"ChipSet");bc(b,this,Lj,this.Kk);fc(b,this,Mj,this.Kk);jb(this)};k.fc=function(a,b){if(!b)if(!a||!this.restore)this.reset();else if(!this.restore(a))return!1;return!0}; -k.ec=function(a){return a&&this.save?this.save():!0};k.reset=function(){this.Fe()};k.save=function(){var a=new Ee(this),b=0,c=[];c[b++]=this.fj;c[b++]=this.ql;c[b++]=this.zf;c[b++]=this.Mh;c[b++]=this.se;c[b++]=this.jd;c[b++]=this.Ad;c[b++]=this.Tc;c[b++]=this.ol;c[b]=this.vg;a.set(0,c);return a.data()};k.restore=function(a){return this.Fe(a[0])}; -k.Fe=function(a){var b=0;void 0===a&&(a=[0,0,384,0,1,0,0,96,48,[]]);this.fj=a[b++];this.ql=a[b++];this.zf=a[b++];this.Mh=a[b++];this.se=a[b++];this.jd=a[b++];this.Ad=a[b++];this.Tc=a[b++];this.ol=a[b++];this.vg=a[b];return!0};function Kj(a,b){a.vg=a.vg.concat(b);Nj(a)}function Nj(a){0>8:this.Mh;p(this,a,null,b,this.jd&128?"DLM":"IER",c);return c};k.Oo=function(a,b){var c=this.se;p(this,a,null,b,"IIR",c);return c};k.Po=function(a,b){var c=this.jd;p(this,a,null,b,"LCR",c);return c};k.Ro=function(a,b){var c=this.Ad;p(this,a,null,b,"MCR",c);return c}; -k.Qo=function(a,b){var c=this.Tc;p(this,a,null,b,"LSR",c);return c};k.Xo=function(a,b){var c=this.ol;p(this,a,null,b,"MSR",c);return c};k.sq=function(a,b,c){p(this,a,b,c,this.jd&128?"DLL":"THR");this.jd&128?this.zf=this.zf&-256|b:(this.ql=b,this.Tc&=-97,this.ye?(13!=b&&(8==b?this.ye.value=this.ye.value.slice(0,-1):(this.ye.value+=String.fromCharCode(b),this.ye.scrollTop=this.ye.scrollHeight)),a=!0):a=!1,a&&(this.Tc|=96))}; -k.dq=function(a,b,c){p(this,a,b,c,this.jd&128?"DLM":"IER");this.jd&128?this.zf=this.zf&255|b<<8:this.Mh=b};k.eq=function(a,b,c){p(this,a,b,c,"LCR");this.jd=b}; -k.fq=function(a,b,c){var d=this.Ad;p(this,a,b,c,"MCR");this.Ad=b;this.He&&(d^b)&3&&(a=this.He,b=this.Ad,(c=3==(b&3))?a.od||(d=!1,a.Ad&2||(a.reset(),a.Xa("serial mouse reset"),d=!0),a.Ad&1||(a.Xa("serial mouse ID requested"),d=!0),d&&(Kj(a.Kg,[77,77]),a.Xa("serial mouse ID sent")),Oj(a,a.Ia),a.setActive(c)):a.od&&(a.Xa("serial mouse inactive"),Pj(a.Ia),a.setActive(c)),a.Ad=b)}; -var Lj={0:Ij.prototype.bp,1:Ij.prototype.No,2:Ij.prototype.Oo,3:Ij.prototype.Po,4:Ij.prototype.Ro,5:Ij.prototype.Qo,6:Ij.prototype.Xo},Mj={0:Ij.prototype.sq,1:Ij.prototype.dq,3:Ij.prototype.eq,4:Ij.prototype.fq};Ma(function(){for(var a=db(window.document,"pcjs","serial"),b=0;bthis.ie||0>this.je)this.ie=a.clientX,this.je=a.clientY;this.fi?(this.Bf=a.movementX||a.mozMovementX||a.webkitMovementX||0,this.Cf=a.movementY||a.mozMovementY||a.webkitMovementY||0):(this.Bf=a.clientX-this.ie,this.Cf=a.clientY-this.je);(this.Bf||this.Cf)&&Rj(this,null,a.clientX,a.clientY);this.ie=a.clientX;this.je=a.clientY}}; -k.lj=function(a,b){if(this.od&&this.N&&this.N.da.jb){var c;!(c=!1!==this.fi)&&(c=this.video)&&(c=this.video,c=c.ao?c.mf(!0):!1);c||(this.fi=null);switch(a){case 0:this.bi!=b&&(this.bi=b,Rj(this,"mouse button1 "+(b?"dn":"up")));break;case 2:this.ci!=b&&(this.ci=b,Rj(this,"mouse button2 "+(b?"dn":"up")))}}}; -function Rj(a,b,c,d){var e=64|(a.bi?32:0)|(a.ci?16:0)|(a.Cf&192)>>4|(a.Bf&192)>>6,f=a.Bf&63,g=a.Cf&63;a.pa(2097152)&&a.Xa((b?b+": ":"")+(void 0!==d?"mouse ("+c+","+d+"): ":"")+"serial packet ["+l(e)+","+l(f)+","+l(g)+"]",0,!0);Kj(a.Kg,[e,f,g]);a.Bf=a.Cf=0}Ma(function(){for(var a=db(window.document,"pcjs","mouse"),b=0;b>8:this.Nh;p(this,a,null,b,this.kd&128?"DLM":"IER",c);return c};k.Po=function(a,b){var c=this.se;p(this,a,null,b,"IIR",c);return c};k.Qo=function(a,b){var c=this.kd;p(this,a,null,b,"LCR",c);return c};k.So=function(a,b){var c=this.Bd;p(this,a,null,b,"MCR",c);return c}; +k.Ro=function(a,b){var c=this.Uc;p(this,a,null,b,"LSR",c);return c};k.Yo=function(a,b){var c=this.pl;p(this,a,null,b,"MSR",c);return c};k.tq=function(a,b,c){p(this,a,b,c,this.kd&128?"DLL":"THR");this.kd&128?this.zf=this.zf&-256|b:(this.rl=b,this.Uc&=-97,this.ye?(13!=b&&(8==b?this.ye.value=this.ye.value.slice(0,-1):(this.ye.value+=String.fromCharCode(b),this.ye.scrollTop=this.ye.scrollHeight)),a=!0):a=!1,a&&(this.Uc|=96))}; +k.eq=function(a,b,c){p(this,a,b,c,this.kd&128?"DLM":"IER");this.kd&128?this.zf=this.zf&255|b<<8:this.Nh=b};k.fq=function(a,b,c){p(this,a,b,c,"LCR");this.kd=b}; +k.gq=function(a,b,c){var d=this.Bd;p(this,a,b,c,"MCR");this.Bd=b;this.He&&(d^b)&3&&(a=this.He,b=this.Bd,(c=3==(b&3))?a.pd||(d=!1,a.Bd&2||(a.reset(),a.Xa("serial mouse reset"),d=!0),a.Bd&1||(a.Xa("serial mouse ID requested"),d=!0),d&&(Kj(a.Kg,[77,77]),a.Xa("serial mouse ID sent")),Oj(a,a.Ia),a.setActive(c)):a.pd&&(a.Xa("serial mouse inactive"),Pj(a.Ia),a.setActive(c)),a.Bd=b)}; +var Lj={0:Ij.prototype.cp,1:Ij.prototype.Oo,2:Ij.prototype.Po,3:Ij.prototype.Qo,4:Ij.prototype.So,5:Ij.prototype.Ro,6:Ij.prototype.Yo},Mj={0:Ij.prototype.tq,1:Ij.prototype.eq,3:Ij.prototype.fq,4:Ij.prototype.gq};Ma(function(){for(var a=db(window.document,"pcjs","serial"),b=0;bthis.ie||0>this.je)this.ie=a.clientX,this.je=a.clientY;this.gi?(this.Bf=a.movementX||a.mozMovementX||a.webkitMovementX||0,this.Cf=a.movementY||a.mozMovementY||a.webkitMovementY||0):(this.Bf=a.clientX-this.ie,this.Cf=a.clientY-this.je);(this.Bf||this.Cf)&&Rj(this,null,a.clientX,a.clientY);this.ie=a.clientX;this.je=a.clientY}}; +k.nj=function(a,b){if(this.pd&&this.N&&this.N.da.jb){var c;!(c=!1!==this.gi)&&(c=this.video)&&(c=this.video,c=c.bo?c.mf(!0):!1);c||(this.gi=null);switch(a){case 0:this.ci!=b&&(this.ci=b,Rj(this,"mouse button1 "+(b?"dn":"up")));break;case 2:this.di!=b&&(this.di=b,Rj(this,"mouse button2 "+(b?"dn":"up")))}}}; +function Rj(a,b,c,d){var e=64|(a.ci?32:0)|(a.di?16:0)|(a.Cf&192)>>4|(a.Bf&192)>>6,f=a.Bf&63,g=a.Cf&63;a.pa(2097152)&&a.Xa((b?b+": ":"")+(void 0!==d?"mouse ("+c+","+d+"): ":"")+"serial packet ["+l(e)+","+l(f)+","+l(g)+"]",0,!0);Kj(a.Kg,[e,f,g]);a.Bf=a.Cf=0}Ma(function(){for(var a=db(window.document,"pcjs","mouse"),b=0;b>2;var e=d=0,a=new DataView(a,0,c);g.fb=Array(g.yb);for(c=0;cb.indexOf("/api/v1/dump")&&(a=ga(b),"json"==a?f=encodeURI(b):"demandrw"==this.mode||"demandro"==this.mode?(f=Wj(this,b),this.gi=!0):(c="path",d="&mbhd=10",!b.indexOf("http:")||!b.indexOf("ftp:")||0<="dsk ima img 360 720 12 144".split(" ").indexOf(a)?(c="disk",d="&mbhd=0"):-1!==b.indexOf("/",b.length-1)&&(c="dir"),f=xa()+"/api/v1/dump?"+ -c+"="+encodeURIComponent(b)+(this.Vf?"":d)+"&format=json")),wa(f,!0,null,this,this.Wn,b)}; -k.Wn=function(a,b,c,d){var e=null;this.Wf=!1;var f=0>c&&this.Ba&&!this.Ba.da.$b;if(this.gi)c?this.X.Ea('Unable to connect to disk "'+d+'" (error '+c+": "+b+")",f):(this.Wd=!0,e=this);else if(c)this.X.Ea('Unable to load disk "'+this.Kd+'" (error '+c+")",f);else try{if(0g&&0b.indexOf("0x")&& +k.load=function(a,b,c,d,e){var f=b;if(!this.lf)if(this.Ld=a,this.vf=b,this.lf=d,this.Tn=e||this.X,c){var g=this,h=new FileReader;h.onload=function(){var a=h.result,b,c=a?a.byteLength:0,d=ca[c];if(d){g.yb=d[0];g.zb=d[1];g.Db=d[2];g.qb=512;b=g.qb>>2;var e=d=0,a=new DataView(a,0,c);g.fb=Array(g.yb);for(c=0;cb.indexOf("/api/v1/dump")&&(a=ga(b),"json"==a?f=encodeURI(b):"demandrw"==this.mode||"demandro"==this.mode?(f=Wj(this,b),this.hi=!0):(c="path",d="&mbhd=10",!b.indexOf("http:")||!b.indexOf("ftp:")||0<="dsk ima img 360 720 12 144".split(" ").indexOf(a)?(c="disk",d="&mbhd=0"):-1!==b.indexOf("/",b.length-1)&&(c="dir"),f=xa()+"/api/v1/dump?"+ +c+"="+encodeURIComponent(b)+(this.Vf?"":d)+"&format=json")),wa(f,!0,null,this,this.Xn,b)}; +k.Xn=function(a,b,c,d){var e=null;this.Wf=!1;var f=0>c&&this.Ba&&!this.Ba.da.$b;if(this.hi)c?this.X.Ca('Unable to connect to disk "'+d+'" (error '+c+": "+b+")",f):(this.Wd=!0,e=this);else if(c)this.X.Ca('Unable to load disk "'+this.Ld+'" (error '+c+")",f);else try{if(0g&&0b.indexOf("0x")&& '["'!=b.substr(0,2)?JSON.parse(b.replace(/([a-z]+):/gm,'"$1":').replace(/\/\/[^\n]*/gm,"")):eval("("+b+")");if(h.length)if(1==h.length)ya(h[0]);else{this.yb=h.length;this.zb=h[0].length;this.Db=h[0][0].length;var t=h[0][0][0];this.qb=t&&t.length||512;for(b=a=0;b>2,B=t.pattern;void 0===B&&(B=t.pattern=0);var J=t.data;if(void 0===J){var C=t.bytes;if(void 0!==C&&C.length){for(var f= -r<<2,E=C.length;Eb&&(b=0);2E3b&&(b=0);2E3>2,e=Array(d),f=0;f>2,e=a.data;a=a.pattern;for(var f=0;f>8&255;c[d++]=g>>16&255;c[d++]=g>>24&255}return c}function bk(a,b){var c=-1;if(a&&b>2,c=(d>((b&3)<<3)&255;return c} -k.write=function(a,b,c){if(this.Wf)return!1;if(b>2;b=(b&3)<<3;for(var g=d.length;g<=f;g++)d[g]=e;a.Hc?f=a.qd+a.Hc&&(a.Hc+=f-(a.qd+a.Hc)+1):(a.qd=f,a.Hc=1);d[f]=d[f]&~(255<>2;b=(b&3)<<3;for(var g=d.length;g<=f;g++)d[g]=e;a.Ic?f=a.rd+a.Ic&&(a.Ic+=f-(a.rd+a.Ic)+1):(a.rd=f,a.Ic=1);d[f]=d[f]&~(255<=this.fb.length||t>=this.fb[h].length||r>=this.fb[h][t].length){c="sector (CHS="+h+":"+t+":"+r+") out of range ("+ -b+" changes applied)";b=-1;break}if(this.Wf){c="unable to modify write-protected disk";b=-1;break}e=g[f++];f=g[f++];g=e+f.length;if(h=this.fb[h][t][r]){for(t=h.data.length;tb&&-2!=b&&this.X.Ea("Unable to restore disk '"+this.Kd+": "+c);return b}; +b+" changes applied)";b=-1;break}if(this.Wf){c="unable to modify write-protected disk";b=-1;break}e=g[f++];f=g[f++];g=e+f.length;if(h=this.fb[h][t][r]){for(t=h.data.length;tb&&-2!=b&&this.X.Ca("Unable to restore disk '"+this.Ld+": "+c);return b}; k.toJSON=function(){var a=JSON.stringify(this.fb),a=a.replace(/,"length":512/gm,"").replace(/,"pattern":0/gm,""),a=a.replace(/"(sector|length|data|pattern)":/gm,"$1:"),a=a.replace(/,"[^"]*":([0-9]+|true|false)/gm,"");return a=a.replace(/(sector|length|data|pattern):/gm,'"$1":')}; -function ck(a){n.call(this,"FDC",a,ck,262144);this.dmaRead=this.qj;this.dmaWrite=this.rj;this.dmaFormat=this.Tn;this.df=null;if(a.autoMount&&(this.df=a.autoMount,"string"==typeof this.df))try{this.df=eval("("+a.autoMount+")")}catch(b){ya("FDC auto-mount error: "+b.message+" ("+a.autoMount+")"),this.df=null}this.Bc=[];this.Hl=!Ea("Mobi")&&window&&"FileReader"in window}Ya(n,ck);ba={};aa={}; -var dk={3:{Sd:3,we:0,name:aa.mr},4:{Sd:2,we:1,name:aa.kr},5:{Sd:9,we:7,name:aa.yr},6:{Sd:9,we:7,name:aa.er},7:{Sd:2,we:0,name:aa.gr},8:{Sd:1,we:2,name:aa.lr},10:{Sd:2,we:7,name:aa.fr},13:{Sd:6,we:7,name:aa.Rq},15:{Sd:3,we:0,name:aa.jr}};k=ck.prototype; +function ck(a){n.call(this,"FDC",a,ck,262144);this.dmaRead=this.rj;this.dmaWrite=this.sj;this.dmaFormat=this.Un;this.df=null;if(a.autoMount&&(this.df=a.autoMount,"string"==typeof this.df))try{this.df=eval("("+a.autoMount+")")}catch(b){ya("FDC auto-mount error: "+b.message+" ("+a.autoMount+")"),this.df=null}this.Cc=[];this.Il=!Ea("Mobi")&&window&&"FileReader"in window}Ya(n,ck);ba={};aa={}; +var dk={3:{Sd:3,we:0,name:aa.nr},4:{Sd:2,we:1,name:aa.lr},5:{Sd:9,we:7,name:aa.zr},6:{Sd:9,we:7,name:aa.fr},7:{Sd:2,we:0,name:aa.hr},8:{Sd:1,we:2,name:aa.mr},10:{Sd:2,we:7,name:aa.gr},13:{Sd:6,we:7,name:aa.Sq},15:{Sd:3,we:0,name:aa.kr}};k=ck.prototype; k.Fb=function(a,b,c){var d=this;switch(b){case "listDisks":return this.qa[b]=c,c.onchange=function(){var a=d.qa.descDisk,b=c.options[c.selectedIndex];if(a&&b){var g={};if(b=b.getAttribute("data-value"))try{g=eval("({"+b+"})")}catch(h){ya("FDC option error: "+h.message)}b=g.desc;void 0===b&&(b="");g=g.href;void 0!==g&&(b=''+b+"");a.innerHTML=b}},!0;case "descDisk":case "listDrives":return this.qa[b]=c,c.onchange=function(){var a=da(c.value,10);null!=a&&ek(d,a)}, -!0;case "loadDrive":return this.qa[b]=c,c.onclick=function(){var a=d.qa.listDisks;a&&fk(d,a.options[a.selectedIndex].text,a.value)},!0;case "mountDrive":return this.Hl?(this.qa[b]=c,c.addEventListener("change",function(){var a=c.children[0];a.children[1].disabled=!a.children[0].files.length}),c.onsubmit=function(a){if(a=a.currentTarget[1].files[0]){var b=a.name;fk(d,fa(b,!0),b,a)}return!1}):c.parentNode.removeChild(c),!0}return!1}; -k.xc=function(a,b,c,d){this.ha=b;this.N=c;this.Z=d;this.Ba=a;this.fa=rb(a,"ChipSet");this.$d();bc(b,this,gk);fc(b,this,hk);this.Hl&&ik(this,"Local Disk","?");ik(this,"Remote Disk","??");this.yg()||jb(this)}; -k.fc=function(a,b){if(!b){if(!a||!this.restore){if(this.reset(),this.Ba.Aj){this.Bc=[];for(var c=0;ca.sa.restore(g)&&(e=!1);e&&a.sa&&void 0!==a.Pa&&(a.Ta=a.sa.seek(a.vb,a.Ma,a.$a));return e};k.Tk=function(){for(var a=0,b=[],c=0;ca.yb||f[1]>a.zb)&&(this.Ea('Diskette "'+c+'" too large for drive '+String.fromCharCode(65+a.kb)),b=null);b?(a.sa=b,a.sn=c,a.wf=d,mk(this,c,d,b),f=b.info(),this.Ne|=128,this.Ea('Mounted diskette "'+c+'" in drive '+String.fromCharCode(65+a.kb),a.jf||e),a.ti=f[0],a.gh=f[1],a.hh=f[2]):a.Sf=!1;a.jf&&(a.jf=!1,--this.af||jb(this));ek(this,a.kb)}; +!0;case "loadDrive":return this.qa[b]=c,c.onclick=function(){var a=d.qa.listDisks;a&&fk(d,a.options[a.selectedIndex].text,a.value)},!0;case "mountDrive":return this.Il?(this.qa[b]=c,c.addEventListener("change",function(){var a=c.children[0];a.children[1].disabled=!a.children[0].files.length}),c.onsubmit=function(a){if(a=a.currentTarget[1].files[0]){var b=a.name;fk(d,fa(b,!0),b,a)}return!1}):c.parentNode.removeChild(c),!0}return!1}; +k.yc=function(a,b,c,d){this.ha=b;this.N=c;this.Z=d;this.Ba=a;this.fa=rb(a,"ChipSet");this.$d();bc(b,this,gk);fc(b,this,hk);this.Il&&ik(this,"Local Disk","?");ik(this,"Remote Disk","??");this.yg()||jb(this)}; +k.fc=function(a,b){if(!b){if(!a||!this.restore){if(this.reset(),this.Ba.Bj){this.Cc=[];for(var c=0;ca.sa.restore(g)&&(e=!1);e&&a.sa&&void 0!==a.Pa&&(a.Ta=a.sa.seek(a.vb,a.Ma,a.$a));return e};k.Uk=function(){for(var a=0,b=[],c=0;ca.yb||f[1]>a.zb)&&(this.Ca('Diskette "'+c+'" too large for drive '+String.fromCharCode(65+a.kb)),b=null);b?(a.sa=b,a.tn=c,a.wf=d,mk(this,c,d,b),f=b.info(),this.Ne|=128,this.Ca('Mounted diskette "'+c+'" in drive '+String.fromCharCode(65+a.kb),a.jf||e),a.ui=f[0],a.hh=f[1],a.ih=f[2]):a.Sf=!1;a.jf&&(a.jf=!1,--this.af||jb(this));ek(this,a.kb)}; function ik(a,b,c){if(a=a.qa.listDisks){for(var d=0;d=this.ib&&(this.ya&=-81,this.Ab=this.ib=0);return c}; -k.Yp=function(a,b,c){this.pa()&&p(this,a,b,c,"DATA["+this.ib+"]");this.ib=dk[a].Sd){b=!1;this.Ab=0;a=this.Sa();var d,e,f,g,h=a&31;switch(h){case 3:this.Sa(ba.nr);this.Sa(ba.Uq);this.Xb();break;case 4:c=this.Sa(ba.pg);this.kb=c&3;d=this.Aa[this.kb];this.Xb();this.lc((d.cb&-16777216)>>>24,ba.qr);break;case 5:case 6:c=this.Sa(ba.pg);b=c>>2&1;this.kb=c&3;d=this.Aa[this.kb];d.Ma=b;c=d.vb=this.Sa(ba.$k);e=this.Sa(ba.al); -f=d.$a=this.Sa(ba.cl);g=this.Sa(ba.Ri);d.hb=128<>2&1;this.kb=c&3;d=this.Aa[this.kb];c=d.vb;e=d.Ma=b;f=d.$a=1;g=0;d.cb=0;d.sa&&(d.Ta=d.sa.seek(d.vb,d.Ma,d.$a))?g=d.Ta.length:d.cb=72;nk(this,d,a,b,c,e,f,g);b=!0;break;case 13:c=this.Sa(ba.pg);b=c>>2&1;this.kb=c&3;d=this.Aa[this.kb];c=d.vb;e=d.Ma=b;f=1;g=this.Sa(ba.Ri);d.hb=128<>2&1,c=this.Sa(ba.$q),d.vb+=c-d.re,0>d.vb&&(d.vb=0),d.vb>=d.yb&&(d.vb=d.yb-1),d.re=c,d.cb=32,d.vb||(d.cb|=268435456),this.Xb(),b=!0}0>>8,ba.or);a.lc((b.cb&16711680)>>>16,ba.pr);var t=0;if(e!=b.vb||f!=b.Ma)t=g=1;c&128&&(f^=t,d||(t=0));a.lc(e+t,ba.$k);a.lc(f,ba.al);a.lc(g,ba.cl);a.lc(h,ba.Ri)}k.Sa=function(){var a=this.mc[this.Ab];this.Ab++;return a};k.Xb=function(){this.Ab=this.ib=0};k.lc=function(a){this.mc[this.ib++]=a};k.qj=function(a,b,c){void 0===b||0>b?this.Eb(a,c):c(-1,!1)}; -k.rj=function(a,b){return void 0!==b&&0<=b?this.Ib(a,b):-1};k.Tn=function(a,b){return void 0!==b&&0<=b?this.Vk(a,b):-1};k.Eb=function(a,b){var c=-1,d=null,e=0;if(!a.cb&&a.sa){do{if(a.Ta&&(e=a.Pa,0<=(c=bk(a.Ta,a.Pa++)))){d=a.Ta;break}a.Ta=a.sa.seek(a.vb,a.Ma,a.$a);if(!a.Ta){a.cb=1088;break}a.Pa=0;this.xg(a)}while(1)}b(c,!1,d,e)}; -k.Ib=function(a,b){if(a.cb||!a.sa)return-1;do{if(a.Ta&&a.sa.write(a.Ta,a.Pa++,b))break;a.Ta=a.sa.seek(a.vb,a.Ma,a.$a);if(!a.Ta){a.cb=8256;b=-1;break}a.Pa=0;this.xg(a)}while(1);return b};k.xg=function(a){a.$a++;a.$a>=a.hh+1&&(a.$a=1,a.Ma++,a.Ma>=a.gh&&(a.Ma=0,a.vb++))};k.Vk=function(a,b){if(a.cb)return-1;a.Rc[a.Kf++]=b;if(a.Kf==a.Rc.length){a.vb=a.Rc[0];a.Ma=a.Rc[1];a.$a=a.Rc[2];a.hb=128<this.Ib(a,a.nl))return-1;a.Vh++}a.Vh>=a.te&&(b=-1);return b}; -var gk={1012:ck.prototype.Io,1013:ck.prototype.Go,1015:ck.prototype.Ho},hk={1010:ck.prototype.Zp,1013:ck.prototype.Yp,1015:ck.prototype.Xp};Ma(function(){for(var a=db(window.document,"pcjs","fdc"),b=0;b=e&&(this.jg|=(f.type&3)<<(1-e<<1))}return d}; -k.Rk=function(){var a=0,b=[];this.hf?(b[a++]=this.Me,b[a++]=this.rn,b[a++]=this.Oe,b[a++]=this.Gi,b[a++]=this.Ei,b[a++]=this.Di,b[a++]=this.kg,b[a++]=this.ya,b[a++]=this.Nk,b[a++]=this.Fi):(b[a++]=this.jg,b[a++]=this.ya,b[a++]=this.mc,b[a++]=this.Ab,b[a++]=this.ib,b[a++]=this.qn,b[a++]=this.pn,b[a++]=this.on,b[a++]=this.Zf);b[a]=this.Tk();return b}; -k.Kj=function(a,b,c,d,e){var f=0,g=!0;void 0===d&&(d=[0,0,!1,Array(8)]);b.kb=a;b.errorCode=d[f++];b.xn=d[f++];b.Vf=d[f++];b.Hf=d[f++];b.If=d[f++];b.Ma=d[f++];b.zb=d[f++];b.he=d[f++];b.$a=d[f++];b.te=d[f++];b.hb=d[f++];b.Rh=this.hf?0:1;b.name=c.name;void 0===b.name&&(b.name="Hard Drive");b.path=c.path;b.mode=c.mode||(b.path?"preload":"local");"demandro"!=b.mode&&"demandrw"!=b.mode||this.De()||(b.mode="local");b.type=c.type;if(void 0===b.type||void 0===pk[this.Wg][b.type])b.type=this.mo;c=pk[this.Wg][b.type]; -b.Db=c[2]||17;b.qb=c[3]||512;if(e&&this.fa&&(e=this.fa,c=b.type,e.ea)){var h=e.ea[18],h=a?h&240|c:h&15|c<<4;e.ea&&(e.ea[18]=h,jh(e))}void 0===b.sa&&(b.sa=null,this.Ea("Type "+b.type+' "'+b.name+'" is fixed disk '+a,!0));uk(this,b);b.Pa=d[f++];b.Ta=null;b.sa&&(a=d[f],void 0!==a&&0>b.sa.restore(a)&&(g=!1),g&&void 0!==b.Pa&&(b.Ta=b.sa.seek(b.he,b.Ma,b.$a+b.Rh)));return g};k.Tk=function(){for(var a=0,b=[],c=0;c=this.ib&&(this.Ab=this.ib=0,this.ya&=-15);return c}; -k.uq=function(a,b,c){p(this,a,b,c,"DATA["+this.ib+"]");this.ib=a&&(this.ya|=2,this.ya&=-2,vk(this))};k.ip=function(a,b){var c=this.ya;p(this,a,null,b,"STATUS",c);this.Ab=this.Na.qb?(d.ya=136,this.Eb(this.Na,function(a){0<=a?(wk(d),d.ya=80):(d.ya=1,d.Me=16)},!1)):this.ya=80)}return c}; -k.Jp=function(a,b,c){this.Na&&this.Na.hb>=this.Na.qb&&(0>this.Ib(this.Na,b)?(this.ya=1,this.Me=16):1==this.Na.Pa?this.pa(524416)&&p(this,a,b,c,"DATA["+this.Na.Pa+"]"):this.Na.Pa==this.Na.qb&&(this.Na.hb-=this.Na.qb,this.Oe=this.Oe-1&255,wk(this),this.ya=80,this.Na.hb>=this.Na.qb&&(this.ya|=8)))};k.vo=function(a,b){var c=this.Me;p(this,a,null,b,"ERROR",c);return c};k.Op=function(a,b,c){p(this,a,b,c,"WPREC");this.rn=b};k.wo=function(a,b){var c=this.Oe;p(this,a,null,b,"SECCNT",c);return c}; -k.Mp=function(a,b,c){p(this,a,b,c,"SECCNT");this.Oe=b};k.xo=function(a,b){var c=this.Gi;p(this,a,null,b,"SECNUM",c);return c};k.Np=function(a,b,c){p(this,a,b,c,"SECNUM");this.Gi=b};k.so=function(a,b){var c=this.Ei;p(this,a,null,b,"CYLLO",c);return c};k.Ip=function(a,b,c){p(this,a,b,c,"CYLLO");this.Ei=b};k.ro=function(a,b){var c=this.Di;p(this,a,null,b,"CYLHI",c);return c};k.Hp=function(a,b,c){p(this,a,b,c,"CYLHI");this.Di=b};k.uo=function(a,b){var c=this.kg;p(this,a,null,b,"DRVHD",c);return c}; -k.Kp=function(a,b,c){p(this,a,b,c,"DRVHD");this.kg=b;this.ya=this.Aa[this.kg&16?1:0]?this.ya|64:this.ya&-65};k.yo=function(a,b){var c=this.ya;p(this,a,null,b,"STATUS",c);return c};k.Gp=function(a,b,c){p(this,a,b,c,"COMMAND");this.Nk=b;this.fa&&Ph(this.fa,14);xk(this)};k.Lp=function(a,b,c){p(this,a,b,c,"FDR");this.Fi&4&&!(b&4)&&(this.Me=1);this.Fi=b}; -function xk(a){var b=!1,c=a.Nk,d=a.kg&16?1:0,e=a.kg&15,f=a.Ei|(a.Di&3)<<8,g=a.Gi,h=a.Oe||256;a.Na=null;a.Me=0;a.ya=80;(d=a.Aa[d])?(d.he=f,d.Ma=e,d.$a=g,d.hb=h*d.qb,c=144<=c?c:c&240,d.Ta=null,d.Pa=0,d.errorCode=0,a.Na=d):c=-1;switch(c&240){case 32:a.ya=136;a.Eb(d,function(b){0<=b&&a.fa?(wk(a),a.ya=80):(a.ya=1,a.Me=16)},!1);break;case 48:a.ya=8;break;case 16:b=!0;break;case 64:b=!0;break;case 144:a.Me=1;b=!0;break;case 145:d.zb=e+1,d.Db=h,b=!0}b&&wk(a)} -function wk(a){!a.fa||a.Fi&2||Oh(a.fa,14,120)} -function vk(a){a.Ab=0;var b=a.Sa(),c=a.Sa(),d=c&32,e=d>>5,f=c&31,g=a.Sa(),h=a.Sa(),t=g<<2&768|h,r=g&63,B=a.Sa(),J=a.Sa(),C=a.Aa[e];C&&(C.he=t,C.Ma=f,C.$a=r,C.hb=B*C.qb);switch(b){case 3:a.Xb(C?C.errorCode:4);a.lc(c);a.lc(g);a.lc(h);a.lc(0|d);b=-1;break;case 12:for(c=0;0<=(b=a.Sa());)C&&cb?this.Eb(a,c):c(-1,!1)}; -k.rj=function(a,b){return void 0!==b&&0<=b?this.Ib(a,b):-1};k.Un=function(a,b){var c;void 0!==b&&0<=b?(c=b,a.Pa=this.ib&&(this.ya&=-81,this.Ab=this.ib=0);return c}; +k.Zp=function(a,b,c){this.pa()&&p(this,a,b,c,"DATA["+this.ib+"]");this.ib=dk[a].Sd){b=!1;this.Ab=0;a=this.Sa();var d,e,f,g,h=a&31;switch(h){case 3:this.Sa(ba.or);this.Sa(ba.Vq);this.Xb();break;case 4:c=this.Sa(ba.pg);this.kb=c&3;d=this.Aa[this.kb];this.Xb();this.lc((d.cb&-16777216)>>>24,ba.rr);break;case 5:case 6:c=this.Sa(ba.pg);b=c>>2&1;this.kb=c&3;d=this.Aa[this.kb];d.Ma=b;c=d.vb=this.Sa(ba.al);e=this.Sa(ba.bl); +f=d.$a=this.Sa(ba.dl);g=this.Sa(ba.Si);d.hb=128<>2&1;this.kb=c&3;d=this.Aa[this.kb];c=d.vb;e=d.Ma=b;f=d.$a=1;g=0;d.cb=0;d.sa&&(d.Ta=d.sa.seek(d.vb,d.Ma,d.$a))?g=d.Ta.length:d.cb=72;nk(this,d,a,b,c,e,f,g);b=!0;break;case 13:c=this.Sa(ba.pg);b=c>>2&1;this.kb=c&3;d=this.Aa[this.kb];c=d.vb;e=d.Ma=b;f=1;g=this.Sa(ba.Si);d.hb=128<>2&1,c=this.Sa(ba.ar),d.vb+=c-d.re,0>d.vb&&(d.vb=0),d.vb>=d.yb&&(d.vb=d.yb-1),d.re=c,d.cb=32,d.vb||(d.cb|=268435456),this.Xb(),b=!0}0>>8,ba.pr);a.lc((b.cb&16711680)>>>16,ba.qr);var t=0;if(e!=b.vb||f!=b.Ma)t=g=1;c&128&&(f^=t,d||(t=0));a.lc(e+t,ba.al);a.lc(f,ba.bl);a.lc(g,ba.dl);a.lc(h,ba.Si)}k.Sa=function(){var a=this.mc[this.Ab];this.Ab++;return a};k.Xb=function(){this.Ab=this.ib=0};k.lc=function(a){this.mc[this.ib++]=a};k.rj=function(a,b,c){void 0===b||0>b?this.Eb(a,c):c(-1,!1)}; +k.sj=function(a,b){return void 0!==b&&0<=b?this.Ib(a,b):-1};k.Un=function(a,b){return void 0!==b&&0<=b?this.Wk(a,b):-1};k.Eb=function(a,b){var c=-1,d=null,e=0;if(!a.cb&&a.sa){do{if(a.Ta&&(e=a.Pa,0<=(c=bk(a.Ta,a.Pa++)))){d=a.Ta;break}a.Ta=a.sa.seek(a.vb,a.Ma,a.$a);if(!a.Ta){a.cb=1088;break}a.Pa=0;this.xg(a)}while(1)}b(c,!1,d,e)}; +k.Ib=function(a,b){if(a.cb||!a.sa)return-1;do{if(a.Ta&&a.sa.write(a.Ta,a.Pa++,b))break;a.Ta=a.sa.seek(a.vb,a.Ma,a.$a);if(!a.Ta){a.cb=8256;b=-1;break}a.Pa=0;this.xg(a)}while(1);return b};k.xg=function(a){a.$a++;a.$a>=a.ih+1&&(a.$a=1,a.Ma++,a.Ma>=a.hh&&(a.Ma=0,a.vb++))};k.Wk=function(a,b){if(a.cb)return-1;a.Sc[a.Kf++]=b;if(a.Kf==a.Sc.length){a.vb=a.Sc[0];a.Ma=a.Sc[1];a.$a=a.Sc[2];a.hb=128<this.Ib(a,a.ol))return-1;a.Wh++}a.Wh>=a.te&&(b=-1);return b}; +var gk={1012:ck.prototype.Jo,1013:ck.prototype.Ho,1015:ck.prototype.Io},hk={1010:ck.prototype.$p,1013:ck.prototype.Zp,1015:ck.prototype.Yp};Ma(function(){for(var a=db(window.document,"pcjs","fdc"),b=0;b=e&&(this.jg|=(f.type&3)<<(1-e<<1))}return d}; +k.Sk=function(){var a=0,b=[];this.hf?(b[a++]=this.Me,b[a++]=this.sn,b[a++]=this.Oe,b[a++]=this.Hi,b[a++]=this.Fi,b[a++]=this.Ei,b[a++]=this.kg,b[a++]=this.ya,b[a++]=this.Ok,b[a++]=this.Gi):(b[a++]=this.jg,b[a++]=this.ya,b[a++]=this.mc,b[a++]=this.Ab,b[a++]=this.ib,b[a++]=this.rn,b[a++]=this.qn,b[a++]=this.pn,b[a++]=this.Zf);b[a]=this.Uk();return b}; +k.Lj=function(a,b,c,d,e){var f=0,g=!0;void 0===d&&(d=[0,0,!1,Array(8)]);b.kb=a;b.errorCode=d[f++];b.yn=d[f++];b.Vf=d[f++];b.Hf=d[f++];b.If=d[f++];b.Ma=d[f++];b.zb=d[f++];b.he=d[f++];b.$a=d[f++];b.te=d[f++];b.hb=d[f++];b.Sh=this.hf?0:1;b.name=c.name;void 0===b.name&&(b.name="Hard Drive");b.path=c.path;b.mode=c.mode||(b.path?"preload":"local");"demandro"!=b.mode&&"demandrw"!=b.mode||this.De()||(b.mode="local");b.type=c.type;if(void 0===b.type||void 0===pk[this.Xg][b.type])b.type=this.no;c=pk[this.Xg][b.type]; +b.Db=c[2]||17;b.qb=c[3]||512;if(e&&this.fa&&(e=this.fa,c=b.type,e.ea)){var h=e.ea[18],h=a?h&240|c:h&15|c<<4;e.ea&&(e.ea[18]=h,jh(e))}void 0===b.sa&&(b.sa=null,this.Ca("Type "+b.type+' "'+b.name+'" is fixed disk '+a,!0));uk(this,b);b.Pa=d[f++];b.Ta=null;b.sa&&(a=d[f],void 0!==a&&0>b.sa.restore(a)&&(g=!1),g&&void 0!==b.Pa&&(b.Ta=b.sa.seek(b.he,b.Ma,b.$a+b.Sh)));return g};k.Uk=function(){for(var a=0,b=[],c=0;c=this.ib&&(this.Ab=this.ib=0,this.ya&=-15);return c}; +k.vq=function(a,b,c){p(this,a,b,c,"DATA["+this.ib+"]");this.ib=a&&(this.ya|=2,this.ya&=-2,vk(this))};k.jp=function(a,b){var c=this.ya;p(this,a,null,b,"STATUS",c);this.Ab=this.Na.qb?(d.ya=136,this.Eb(this.Na,function(a){0<=a?(wk(d),d.ya=80):(d.ya=1,d.Me=16)},!1)):this.ya=80)}return c}; +k.Kp=function(a,b,c){this.Na&&this.Na.hb>=this.Na.qb&&(0>this.Ib(this.Na,b)?(this.ya=1,this.Me=16):1==this.Na.Pa?this.pa(524416)&&p(this,a,b,c,"DATA["+this.Na.Pa+"]"):this.Na.Pa==this.Na.qb&&(this.Na.hb-=this.Na.qb,this.Oe=this.Oe-1&255,wk(this),this.ya=80,this.Na.hb>=this.Na.qb&&(this.ya|=8)))};k.wo=function(a,b){var c=this.Me;p(this,a,null,b,"ERROR",c);return c};k.Pp=function(a,b,c){p(this,a,b,c,"WPREC");this.sn=b};k.xo=function(a,b){var c=this.Oe;p(this,a,null,b,"SECCNT",c);return c}; +k.Np=function(a,b,c){p(this,a,b,c,"SECCNT");this.Oe=b};k.yo=function(a,b){var c=this.Hi;p(this,a,null,b,"SECNUM",c);return c};k.Op=function(a,b,c){p(this,a,b,c,"SECNUM");this.Hi=b};k.to=function(a,b){var c=this.Fi;p(this,a,null,b,"CYLLO",c);return c};k.Jp=function(a,b,c){p(this,a,b,c,"CYLLO");this.Fi=b};k.so=function(a,b){var c=this.Ei;p(this,a,null,b,"CYLHI",c);return c};k.Ip=function(a,b,c){p(this,a,b,c,"CYLHI");this.Ei=b};k.vo=function(a,b){var c=this.kg;p(this,a,null,b,"DRVHD",c);return c}; +k.Lp=function(a,b,c){p(this,a,b,c,"DRVHD");this.kg=b;this.ya=this.Aa[this.kg&16?1:0]?this.ya|64:this.ya&-65};k.zo=function(a,b){var c=this.ya;p(this,a,null,b,"STATUS",c);return c};k.Hp=function(a,b,c){p(this,a,b,c,"COMMAND");this.Ok=b;this.fa&&Ph(this.fa,14);xk(this)};k.Mp=function(a,b,c){p(this,a,b,c,"FDR");this.Gi&4&&!(b&4)&&(this.Me=1);this.Gi=b}; +function xk(a){var b=!1,c=a.Ok,d=a.kg&16?1:0,e=a.kg&15,f=a.Fi|(a.Ei&3)<<8,g=a.Hi,h=a.Oe||256;a.Na=null;a.Me=0;a.ya=80;(d=a.Aa[d])?(d.he=f,d.Ma=e,d.$a=g,d.hb=h*d.qb,c=144<=c?c:c&240,d.Ta=null,d.Pa=0,d.errorCode=0,a.Na=d):c=-1;switch(c&240){case 32:a.ya=136;a.Eb(d,function(b){0<=b&&a.fa?(wk(a),a.ya=80):(a.ya=1,a.Me=16)},!1);break;case 48:a.ya=8;break;case 16:b=!0;break;case 64:b=!0;break;case 144:a.Me=1;b=!0;break;case 145:d.zb=e+1,d.Db=h,b=!0}b&&wk(a)} +function wk(a){!a.fa||a.Gi&2||Oh(a.fa,14,120)} +function vk(a){a.Ab=0;var b=a.Sa(),c=a.Sa(),d=c&32,e=d>>5,f=c&31,g=a.Sa(),h=a.Sa(),t=g<<2&768|h,r=g&63,B=a.Sa(),J=a.Sa(),C=a.Aa[e];C&&(C.he=t,C.Ma=f,C.$a=r,C.hb=B*C.qb);switch(b){case 3:a.Xb(C?C.errorCode:4);a.lc(c);a.lc(g);a.lc(h);a.lc(0|d);b=-1;break;case 12:for(c=0;0<=(b=a.Sa());)C&&cb?this.Eb(a,c):c(-1,!1)}; +k.sj=function(a,b){return void 0!==b&&0<=b?this.Ib(a,b):-1};k.Vn=function(a,b){var c;void 0!==b&&0<=b?(c=b,a.Pa=a.Db+b&&(a.$a=b,a.Ma++,a.Ma>=a.zb&&(a.Ma=0,a.he++))}; -k.Vk=function(a,b){if(a.errorCode)return-1;a.Rc[a.Kf++]=b;if(a.Kf==a.Rc.length){a.he=a.Rc[0];a.Ma=a.Rc[1];a.$a=a.Rc[2];a.hb=128<this.Ib(a,a.nl))return-1;a.Vh++}a.Vh>=a.te&&(b=-1);return b};k.kp=function(){var a=this.N.J&255;!(this.N.G>>8)&&128>8||!this.fa)||(a=!(this.fa.Vb[0].zd&64));return a?!0:!1}; -var rk={800:ok.prototype.hp,801:ok.prototype.ip,802:ok.prototype.gp},qk={496:ok.prototype.to,497:ok.prototype.vo,498:ok.prototype.wo,499:ok.prototype.xo,500:ok.prototype.so,501:ok.prototype.ro,502:ok.prototype.uo,503:ok.prototype.yo},tk={800:ok.prototype.uq,801:ok.prototype.xq,802:ok.prototype.wq,803:ok.prototype.vq,807:ok.prototype.Hk,811:ok.prototype.Hk,815:ok.prototype.Hk},sk={496:ok.prototype.Jp,497:ok.prototype.Op,498:ok.prototype.Mp,499:ok.prototype.Np,500:ok.prototype.Ip,501:ok.prototype.Hp, -502:ok.prototype.Kp,503:ok.prototype.Gp,1014:ok.prototype.Lp};Ma(function(){for(var a=db(window.document,"pcjs","hdc"),b=0;b=a.Db+b&&(a.$a=b,a.Ma++,a.Ma>=a.zb&&(a.Ma=0,a.he++))}; +k.Wk=function(a,b){if(a.errorCode)return-1;a.Sc[a.Kf++]=b;if(a.Kf==a.Sc.length){a.he=a.Sc[0];a.Ma=a.Sc[1];a.$a=a.Sc[2];a.hb=128<this.Ib(a,a.ol))return-1;a.Wh++}a.Wh>=a.te&&(b=-1);return b};k.lp=function(){var a=this.N.J&255;!(this.N.G>>8)&&128>8||!this.fa)||(a=!(this.fa.Vb[0].Ad&64));return a?!0:!1}; +var rk={800:ok.prototype.ip,801:ok.prototype.jp,802:ok.prototype.hp},qk={496:ok.prototype.uo,497:ok.prototype.wo,498:ok.prototype.xo,499:ok.prototype.yo,500:ok.prototype.to,501:ok.prototype.so,502:ok.prototype.vo,503:ok.prototype.zo},tk={800:ok.prototype.vq,801:ok.prototype.yq,802:ok.prototype.xq,803:ok.prototype.wq,807:ok.prototype.Ik,811:ok.prototype.Ik,815:ok.prototype.Ik},sk={496:ok.prototype.Kp,497:ok.prototype.Pp,498:ok.prototype.Np,499:ok.prototype.Op,500:ok.prototype.Jp,501:ok.prototype.Ip, +502:ok.prototype.Lp,503:ok.prototype.Hp,1014:ok.prototype.Mp};Ma(function(){for(var a=db(window.document,"pcjs","hdc"),b=0;b>2;this.Yl=b.Sh;this.ug=Pk;80186<=this.N.za&&(this.ug=Pk.slice(),this.ug[15]=Nk,80286<=this.N.za&&(this.ug[15]=Ok));Zg(this,4,function(a){if(a){var b=Tk(d,a);if(void 0===b)d.R("invalid selector: "+a);else{a=Uk(d,b);d.R("dumpDesc("+m(a.va)+"): %"+ea(a.Pd,d.xe));var c,b=!1;if(a.type&4096)a.type&2048?(c="code"+(a.type&512?",readable":",execonly"),a.type&1024&&(c+=",conforming")):(c="data"+ -(a.type&512?",writable":",readonly"),a.type&1024&&(c+=",expdown")),a.type&256&&(c+=",accessed");else switch(a.type){case 256:c="tss";break;case 512:c="ldt";break;case 768:c="busy tss";break;case 1024:c="call gate";b=!0;break;case 1280:c="task gate";b=!0;break;case 1536:c="int gate";b=!0;break;case 1792:c="trap gate",b=!0}!c||a.nb&32768||(c+=",not present");d.R((b?"seg="+m(a.ta&65535)+" off="+m(a.rb):"base="+ea(a.ta,d.xe)+" limit="+ea(a.rb,a.rb&-65536?8:4))+" dpl="+l(a.pc)+" type="+l(a.type>>8)+" ("+ -c+") ext="+m(a.$h&-65296))}}else d.R("no selector")});Zg(this,8,function(a){a:{if(a){var b=Tk(d,a);if(void 0===b){d.R("invalid task selector: "+a);break a}a=Uk(d,b)}else a=d.N.eb;d.R("dumpTSS("+m(a.va)+"): %"+ea(a.ta,d.xe));var b="",c;for(c in Vk){var e=Vk[c],r=8>c.length?" ":"",B=Yb(d.ha,a.ta+e);b&&(b+="\n");b+=m(e)+" "+c+": "+r+m(B)}d.R(b)}});Zg(this,67108864,function(a){if(a)for(d.R("dumpDOS("+a+")"),a=Tk(d,a);a;){var b=[0,a,void 0],c=d.Oa(b,1),e=d.la(b,2),r=d.la(b,5);if(77!=c&&90!=c)break;d.R(uc(d, -0,a)+": '"+String.fromCharCode(c)+"' PID="+m(e)+" LEN="+m(r)+' "'+Wk(d,b)+'"');a+=1+r}else d.R("no MCB")});jb(this);if(this.Qk){a=Xk(this,this.Qk);delete this.Qk;for(var e in a)Fk(this,a[e])}}; -Bk.prototype.Fb=function(a,b,c){var d=this;switch(b){case "debugInput":return this.Lg=this.qa[b]=c,c.onkeydown=function(a){var b;if(13==a.keyCode){b=c.value;c.value="";var g=Xk(d,b,!0),h;for(h in g)Fk(d,g[h])}else 27==a.keyCode?c.value=b="":(38==a.keyCode?d.Xc>2;this.Zl=b.Th;this.ug=Pk;80186<=this.N.za&&(this.ug=Pk.slice(),this.ug[15]=Nk,80286<=this.N.za&&(this.ug[15]=Ok));Zg(this,4,function(a){if(a){var b=Tk(d,a);if(void 0===b)d.R("invalid selector: "+a);else{a=Uk(d,b);d.R("dumpDesc("+m(a.va)+"): %"+ea(a.Pd,d.xe));var c,b=!1;if(a.type&4096)a.type&2048?(c="code"+(a.type&512?",readable":",execonly"),a.type&1024&&(c+=",conforming")):(c="data"+ +(a.type&512?",writable":",readonly"),a.type&1024&&(c+=",expdown")),a.type&256&&(c+=",accessed");else switch(a.type){case 256:c="tss";break;case 512:c="ldt";break;case 768:c="busy tss";break;case 1024:c="call gate";b=!0;break;case 1280:c="task gate";b=!0;break;case 1536:c="int gate";b=!0;break;case 1792:c="trap gate",b=!0}!c||a.nb&32768||(c+=",not present");d.R((b?"seg="+m(a.ta&65535)+" off="+m(a.rb):"base="+ea(a.ta,d.xe)+" limit="+ea(a.rb,a.rb&-65536?8:4))+" dpl="+l(a.qc)+" type="+l(a.type>>8)+" ("+ +c+") ext="+m(a.ai&-65296))}}else d.R("no selector")});Zg(this,8,function(a){a:{if(a){var b=Tk(d,a);if(void 0===b){d.R("invalid task selector: "+a);break a}a=Uk(d,b)}else a=d.N.eb;d.R("dumpTSS("+m(a.va)+"): %"+ea(a.ta,d.xe));var b="",c;for(c in Vk){var e=Vk[c],r=8>c.length?" ":"",B=Yb(d.ha,a.ta+e);b&&(b+="\n");b+=m(e)+" "+c+": "+r+m(B)}d.R(b)}});Zg(this,67108864,function(a){if(a)for(d.R("dumpDOS("+a+")"),a=Tk(d,a);a;){var b=[0,a,void 0],c=d.Oa(b,1),e=d.la(b,2),r=d.la(b,5);if(77!=c&&90!=c)break;d.R(uc(d, +0,a)+": '"+String.fromCharCode(c)+"' PID="+m(e)+" LEN="+m(r)+' "'+Wk(d,b)+'"');a+=1+r}else d.R("no MCB")});jb(this);if(this.Rk){a=Xk(this,this.Rk);delete this.Rk;for(var e in a)Fk(this,a[e])}}; +Bk.prototype.Fb=function(a,b,c){var d=this;switch(b){case "debugInput":return this.Mg=this.qa[b]=c,c.onkeydown=function(a){var b;if(13==a.keyCode){b=c.value;c.value="";var g=Xk(d,b,!0),h;for(h in g)Fk(d,g[h])}else 27==a.keyCode?c.value=b="":(38==a.keyCode?d.Yce?String.fromCharCode(e):"."}return d} -function Ek(a,b){a.Z=a;a.Yb=a.Mn=536870912;a.Ii=null;a.Yi=[];var c=Xk(a,b.replace("keys","key").replace("kbd","keyboard"));if(c.length)for(var d in Mk)0<=c.indexOf(d)&&(a.Yb|=Mk[d],a.R(d+" messages enabled"))}function Zg(a,b,c){for(var d in Mk)if(b==Mk[d]){a.Yi[d]=c;break}} +function Ek(a,b){a.Z=a;a.Yb=a.Nn=536870912;a.Ji=null;a.Zi=[];var c=Xk(a,b.replace("keys","key").replace("kbd","keyboard"));if(c.length)for(var d in Mk)0<=c.indexOf(d)&&(a.Yb|=Mk[d],a.R(d+" messages enabled"))}function Zg(a,b,c){for(var d in Mk)if(b==Mk[d]){a.Zi[d]=c;break}} function Yk(a,b){var c="??";if(0<=b){var d,e,f=a.N;switch(b){case 0:d=f.G;e=2;break;case 1:d=f.I;e=2;break;case 2:d=f.J;e=2;break;case 3:d=f.C;e=2;break;case 4:d=f.G>>8;e=2;break;case 5:d=f.I>>8;e=2;break;case 6:d=f.J>>8;e=2;break;case 7:d=f.C>>8;e=2;break;case 8:d=f.G;e=4;break;case 9:d=f.I;e=4;break;case 10:d=f.J;e=4;break;case 11:d=f.C;e=4;break;case 12:d=w(f);e=4;break;case 13:d=f.H;e=4;break;case 14:d=f.F;e=4;break;case 15:d=f.D;e=4;break;case 16:d=f.Ja.va;e=4;break;case 17:d=Fb(f);e=4;break; -case 18:d=f.xa.va;e=4;break;case 19:d=f.Ya.va;e=4;break;case 20:d=f.hs.va;e=4;break;case 21:d=f.js.va;e=4;break;case 22:d=v(f);e=a.Ig;break;case 23:d=Gb(f);e=a.Ig;break;case 24:d=f.G;e=8;break;case 25:d=f.I;e=8;break;case 26:d=f.J;e=8;break;case 27:d=f.C;e=8;break;case 28:d=w(f);e=8;break;case 29:d=f.H;e=8;break;case 30:d=f.F;e=8;break;case 31:d=f.D;e=8;break;case 32:d=f.gc;e=8;break;case 33:d=f.ds;e=8;break;case 34:d=f.es;e=8;break;case 35:d=f.fs,e=8}e&&(c=ea(d,e))}return c}k=Bk.prototype; -k.message=function(a,b){b&&(a+=" @"+uc(this,v(this.N),Fb(this.N)));if(!this.Ii||a!=this.Ii)if(this.R(a),this.Ii=a,this.N){this.Yb&1073741824&&this.N.lb();var c=this.N;c.U.eg=0;c.Yc-=c.A;c.A=0;Vc(c)}}; +case 18:d=f.xa.va;e=4;break;case 19:d=f.Ya.va;e=4;break;case 20:d=f.js.va;e=4;break;case 21:d=f.ks.va;e=4;break;case 22:d=v(f);e=a.Ig;break;case 23:d=Gb(f);e=a.Ig;break;case 24:d=f.G;e=8;break;case 25:d=f.I;e=8;break;case 26:d=f.J;e=8;break;case 27:d=f.C;e=8;break;case 28:d=w(f);e=8;break;case 29:d=f.H;e=8;break;case 30:d=f.F;e=8;break;case 31:d=f.D;e=8;break;case 32:d=f.gc;e=8;break;case 33:d=f.es;e=8;break;case 34:d=f.fs;e=8;break;case 35:d=f.gs,e=8}e&&(c=ea(d,e))}return c}k=Bk.prototype; +k.message=function(a,b){b&&(a+=" @"+uc(this,v(this.N),Fb(this.N)));if(!this.Ji||a!=this.Ji)if(this.R(a),this.Ji=a,this.N){this.Yb&1073741824&&this.N.lb();var c=this.N;c.U.eg=0;c.Zc-=c.A;c.A=0;Vc(c)}}; function ze(a,b,c){var d,e=!1,f=Gk[b];f&&(d=a.N.G>>8,e=a.pa(f)?!0:262144==f&&a.pa(f=524288));if(e){var g=a.N.J&255;if(33==b&&11==d||262144==f&&128<=g||524288==f&&128>g)e=!1}if(e){if(f=(f=Sk[b])&&f[d]||""){for(var h=f,f=0;fa&&(b[0]=0,b[2]=null))}function dl(a,b){return null==b[1]?"%"+ea(b[2]):uc(a,b[0],b[1])}function uc(a,b,c){return void 0!==c?m(c)+":"+ea(b,8>a.xe?4:8):ea(b)}function ff(a){return 1>>c.Ga;if(e>>f|c.ma[d+1&c.sc].th(0)<<32-f;void 0!==b&&cl(this,a,b)}return c};k.ud=function(a,b,c){var d=fl(this,a,!0,0);if(d!=q){var e=this.ha;e.ma[(d&e.Wa)>>>e.Ga].og(d&e.Da,b&255);void 0!==c&&cl(this,a,c);Vc(this.N)}}; -k.Qa=function(a,b,c){var d=fl(this,a,!0,1);d!=q&&(Zb(this.ha,d,b),void 0!==c&&cl(this,a,c),Vc(this.N))};function Ck(a){var b;a.Ac=["exec"];if(void 0!==a.le)for(b=1;b>>c.Ga],!1)}a.le=["read"];if(void 0!==a.fd)for(b=1;b>>c.Ga],!0);a.fd=["write"]} -k.pe=function(a,b,c){if(!gl(this,a,b)){b[3]=c;a.push(b);if(a!=this.Ac){var d=this.ha,e=fl(this,b);d.ma[e>>>d.Ga].pe(e&d.Da,a==this.fd)}c||this.R("breakpoint enabled: "+dl(this,b)+" ("+a[0]+")");Dk(this);return!0}return!1}; -function gl(a,b,c,d){var e=!1;c=hl(a,fl(a,c));for(var f=1;f>>d.Ga],b==a.fd));g[3]||a.R("breakpoint cleared: "+dl(a,g)+" ("+b[0]+")");Dk(a);break}a.R("breakpoint exists: "+dl(a,g)+" ("+b[0]+")");break}}return e}function il(a,b){for(var c=1;c=b&&f>>g.Ga].pe(f&g.Da,d==a.fd)}}}function bl(a,b){if(void 0!==b)el(a,b,a.Ac,!0),a.vc=0;else for(var c=1;ca&&(b[0]=0,b[2]=null))}function dl(a,b){return null==b[1]?"%"+ea(b[2]):uc(a,b[0],b[1])}function uc(a,b,c){return void 0!==c?m(c)+":"+ea(b,8>a.xe?4:8):ea(b)}function ff(a){return 1>>c.Ga;if(e>>f|c.ma[d+1&c.tc].uh(0)<<32-f;void 0!==b&&cl(this,a,b)}return c};k.vd=function(a,b,c){var d=fl(this,a,!0,0);if(d!=q){var e=this.ha;e.ma[(d&e.Wa)>>>e.Ga].og(d&e.Ea,b&255);void 0!==c&&cl(this,a,c);Vc(this.N)}}; +k.Qa=function(a,b,c){var d=fl(this,a,!0,1);d!=q&&(Zb(this.ha,d,b),void 0!==c&&cl(this,a,c),Vc(this.N))};function Ck(a){var b;a.Bc=["exec"];if(void 0!==a.le)for(b=1;b>>c.Ga],!1)}a.le=["read"];if(void 0!==a.gd)for(b=1;b>>c.Ga],!0);a.gd=["write"]} +k.pe=function(a,b,c){if(!gl(this,a,b)){b[3]=c;a.push(b);if(a!=this.Bc){var d=this.ha,e=fl(this,b);d.ma[e>>>d.Ga].pe(e&d.Ea,a==this.gd)}c||this.R("breakpoint enabled: "+dl(this,b)+" ("+a[0]+")");Dk(this);return!0}return!1}; +function gl(a,b,c,d){var e=!1;c=hl(a,fl(a,c));for(var f=1;f>>d.Ga],b==a.gd));g[3]||a.R("breakpoint cleared: "+dl(a,g)+" ("+b[0]+")");Dk(a);break}a.R("breakpoint exists: "+dl(a,g)+" ("+b[0]+")");break}}return e}function il(a,b){for(var c=1;c=b&&f>>g.Ga].pe(f&g.Ea,d==a.gd)}}}function bl(a,b){if(void 0!==b)el(a,b,a.Bc,!0),a.wc=0;else for(var c=1;c=Ik.length&&(t=a.Oa(b,1),g=Rk[h-Ik.length][t>>3&7]);var h=Ik[g[0]],r=2,B="";(164<=f&&167>=f||170<=f&&175>=f)&&(r=0);for(var f=null,J=1;J<=r;J++){var C="",E=g[J];if(void 0!==E){null==f&&(f=E>>14);var M=E&15;if(0!=M&&15!=M){var N=E&240;if(128<=N)if(0>t&&(t=a.Oa(b,1)),160<=N)C=kl(a,t>>3&7,E,b);else{var C=a,T=E,E=b,S="",M=t>>6,N=t&7;if(3>M){T=void 0;if(!M&&(!E[5]&&6==N||E[5]&& -5==N))M=2;else{if(E[5])if(4!=N)N+=8;else{var S=M,qa=C.Oa(E,1),T=qa>>6,Ia=qa>>3&7,qa=qa&7,ra="";if(S||5!=qa)ra=Lk[qa+8];4!=Ia&&(ra&&(ra+="+"),ra+=Lk[Ia+8],T&&(ra+="*"+(1<>24,S+="-"+l(-T)):S+="+"+l(T)):2==M&&(S&&(S+="+"),E[5]?(T=C.Ug(E,4),S+=ea(T)):(T=C.la(E,2),S+=m(T)));S="["+S+"]"}else S=kl(C,N,T,E);C=S}else if(16==N)C="1";else if(0==N){C=a;M=E;E=b;N=" ";switch(M&15){case 1:M&12288&&(N=l(C.Oa(E,1)));break;case 2:N=m(C.Oa(E,1)<<24>>24);break; -case 4:if(E[4]){N=ea(C.Ug(E,4));break}case 3:N=m(C.la(E,2));break;case 6:M=C;N=C.la(E,2);C=C.la(E,2);N=dl(M,[N,C,void 0]);break;default:N="imm("+m(M)+")"}C=N}else 32==N?C="["+m(a.la(b,2))+"]":48==N?(1==M?(C=a.Oa(b,1),C=C<<24>>24):C=a.la(b,2),C=b[0]+C&65535,C=ll(a,[C,b[1],void 0])[0]||m(C)):96==N?C=kl(a,(E&3840)>>8,E,b):112==N?C=kl(a,(E&3840)>>8,176,b):64==N?C="DS:[SI]":80==N&&(C="ES:[DI]");if(!C||!C.length){B="INVALID";break}0a.N.za)return"??";b+=16}else if(208==e)b+=32;else if(a=c&15,3<=a&&(8>b&&(b+=8),5==a||4==a&&d[4]))b+=16;return Kk[b]} -function ml(a,b){var c;switch(b){case "V":c=Pe(a.N);break;case "D":c=a.N.wa&Ib;break;case "I":c=a.N.wa&Jb;break;case "T":c=a.N.wa&Kb;break;case "S":c=Oe(a.N);break;case "Z":c=Ne(a.N);break;case "A":c=Me(a.N);break;case "P":c=Le(a.N);break;case "C":c=Ke(a.N);break;default:c=0}return b+(c?"1":"0")+" "}function nl(a,b){8<=b&&15>=b&&4>6,Ia=qa>>3&7,qa=qa&7,ra="";if(S||5!=qa)ra=Lk[qa+8];4!=Ia&&(ra&&(ra+="+"),ra+=Lk[Ia+8],T&&(ra+="*"+(1<>24,S+="-"+l(-T)):S+="+"+l(T)):2==M&&(S&&(S+="+"),E[5]?(T=C.Vg(E,4),S+=ea(T)):(T=C.la(E,2),S+=m(T)));S="["+S+"]"}else S=kl(C,N,T,E);C=S}else if(16==N)C="1";else if(0==N){C=a;M=E;E=b;N=" ";switch(M&15){case 1:M&12288&&(N=l(C.Oa(E,1)));break;case 2:N=m(C.Oa(E,1)<<24>>24);break; +case 4:if(E[4]){N=ea(C.Vg(E,4));break}case 3:N=m(C.la(E,2));break;case 6:M=C;N=C.la(E,2);C=C.la(E,2);N=dl(M,[N,C,void 0]);break;default:N="imm("+m(M)+")"}C=N}else 32==N?C="["+m(a.la(b,2))+"]":48==N?(1==M?(C=a.Oa(b,1),C=C<<24>>24):C=a.la(b,2),C=b[0]+C&65535,C=ll(a,[C,b[1],void 0])[0]||m(C)):96==N?C=kl(a,(E&3840)>>8,E,b):112==N?C=kl(a,(E&3840)>>8,176,b):64==N?C="DS:[SI]":80==N&&(C="ES:[DI]");if(!C||!C.length){B="INVALID";break}0a.N.za)return"??";b+=16}else if(208==e)b+=32;else if(a=c&15,3<=a&&(8>b&&(b+=8),5==a||4==a&&d[4]))b+=16;return Kk[b]} +function ml(a,b){var c;switch(b){case "V":c=Pe(a.N);break;case "D":c=a.N.wa&Ib;break;case "I":c=a.N.wa&Jb;break;case "T":c=a.N.wa&Kb;break;case "S":c=Oe(a.N);break;case "Z":c=Ne(a.N);break;case "A":c=Me(a.N);break;case "P":c=Le(a.N);break;case "C":c=Ke(a.N);break;default:c=0}return b+(c?"1":"0")+" "}function nl(a,b){8<=b&&15>=b&&4>>4),d[0]=g,d[1]=h,void 0!==t.p&&(d[2]=t.p));break}}if(d&&d.length)return d;d=b.indexOf(":");0>d?null!=e?(c=Tk(a,b),d=null):d=Tk(a,b):(e=Tk(a,b.substring(0,d)),c=Tk(a,b.substring(d+1)), -d=null)}return[c,e,d]}function Tk(a,b,c){var d;void 0!==b?(d=Kk.indexOf(b.toUpperCase()),0<=d&&(b=Yk(a,d)),d=da(b),void 0===d&&a.R("invalid "+(c?c:"value")+": "+b)):a.R("missing "+(c||"value"));return d}function ei(a,b,c,d){function e(a,b){return a[0]>b[0]?1:a[0]=g&&eb[0]?1:a[0]>>4),d[0]=g,d[1]=h,void 0!==t.p&&(d[2]=t.p));break}}if(d&&d.length)return d;d=b.indexOf(":");0>d?null!=e?(c=Tk(a,b),d=null):d=Tk(a,b):(e=Tk(a,b.substring(0,d)),c=Tk(a,b.substring(d+1)), +d=null)}return[c,e,d]}function Tk(a,b,c){var d;void 0!==b?(d=Kk.indexOf(b.toUpperCase()),0<=d&&(b=Yk(a,d)),d=da(b),void 0===d&&a.R("invalid "+(c?c:"value")+": "+b)):a.R("missing "+(c||"value"));return d}function ei(a,b,c,d){function e(a,b){return a[0]>b[0]?1:a[0]=g&&eb[0]?1:a[0]c?(a.R("out of data at address "+dl(a,b)),B=!0):(a.ud(b,c,1),r++)})})(a,g);a.R(r+" bytes read at "+c)}else a.R("sector "+e+" request out of range");else a.R("drive "+d+" not loaded");else a.R("invalid drive: "+d)}else a.R("disk controller not present")}}} -function $k(a,b,c){if(b&&"?"==b[1])a.R("\nregister commands:"),a.R("\tr\t\tdisplay all registers"),a.R("\tr [target=#]\tmodify target register"),a.R("supported targets:"),a.R("\tall registers and flags V,D,I,S,Z,A,P,C");else{var d;if(null!=b&&1c?(a.R("out of data at address "+dl(a,b)),B=!0):(a.vd(b,c,1),r++)})})(a,g);a.R(r+" bytes read at "+c)}else a.R("sector "+e+" request out of range");else a.R("drive "+d+" not loaded");else a.R("invalid drive: "+d)}else a.R("disk controller not present")}}} +function $k(a,b,c){if(b&&"?"==b[1])a.R("\nregister commands:"),a.R("\tr\t\tdisplay all registers"),a.R("\tr [target=#]\tmodify target register"),a.R("supported targets:"),a.R("\tall registers and flags V,D,I,S,Z,A,P,C");else{var d;if(null!=b&&1=a.Ig&&(c=null);switch(c){case "AL":a.N.G=a.N.G&-256|b&255;break;case "AH":a.N.G=a.N.G&-65281|b<<8&255;break;case "AX":a.N.G=a.N.G&-65536|b&65535;break;case "EAX":a.N.G=b;break;case "BL":a.N.C=a.N.C&-256|b&255;break;case "BH":a.N.C=a.N.C&-65281|b<<8&255;break;case "BX":a.N.C=a.N.C&-65536|b&65535;break;case "EBX":a.N.C=b;break;case "CL":a.N.I=a.N.I&-256|b&255;break;case "CH":a.N.I=a.N.I&-65281|b<<8&255;break;case "CX":a.N.I=a.N.I&-65536|b&65535;break;case "ECX":a.N.I=b;break;case "DL":a.N.J= a.N.J&-256|b&255;break;case "DH":a.N.J=a.N.J&-65281|b<<8&255;break;case "DX":a.N.J=a.N.J&-65536|b&65535;break;case "EDX":a.N.J=b;break;case "SP":x(a.N,w(a.N)&-65536|b&65535);break;case "ESP":x(a.N,b);break;case "BP":a.N.H=a.N.H&-65536|b&65535;break;case "EBP":a.N.H=b;break;case "SI":a.N.F=a.N.F&-65536|b&65535;break;case "ESI":a.N.F=b;break;case "DI":a.N.D=a.N.D&-65536|b&65535;break;case "EDI":a.N.D=b;break;case "DS":He(a.N,b);break;case "ES":Ie(a.N,b);break;case "SS":Kd(a.N,b);break;case "CS":Ge(a.N, -b);a.Oc=[v(a.N),Fb(a.N),void 0];break;case "IP":D(a.N,b);a.Oc=[v(a.N),Fb(a.N),void 0];break;case "PC":case "PS":Id(a.N,b);break;case "C":b?Ve(a.N):Qe(a.N);break;case "P":b?(c=a.N,Le(c)||(c.W^=1)):(c=a.N,Le(c)&&(c.W^=1));break;case "A":b?We(a.N):Re(a.N);break;case "Z":b?Xe(a.N):Se(a.N);break;case "S":b?Ye(a.N):Te(a.N);break;case "I":b?(c=a.N,c.wa|=Jb):(c=a.N,c.wa&=~Jb);break;case "D":b?(c=a.N,c.wa|=Ib):(c=a.N,c.wa&=~Ib);break;case "V":b?Ze(a.N):Ue(a.N);break;default:f=!0;if(80286<=a.N.za)switch(f= -!1,c){case "MS":$e(a.N,b);break;case "TR":a.N.eb.load(b);break;default:f=!0}if(f){a.R("unknown register: "+e);return}}Vc(a.N);a.R("\nupdated registers:");c=!0}}void 0===d&&(d=!!(a.N.gc&1));e=nl(a,8)+nl(a,11)+nl(a,9)+nl(a,10)+(4a.N.za&&(b="\n"+b,e+=f,f=""),e+="\n"+ol(a,a.N.ra,d)+" ",e+=pl(a,"LD",a.N.bd.va,a.N.bd.ta, -a.N.bd.ta+a.N.bd.rb)+" "+pl(a,"GD",null,a.N.Ec,a.N.We)+" "+pl(a,"ID",null,a.N.Sc,a.N.Xe)+" ",e=e+(b+" "+f)+nl(a,32));e+=nl(a,23)+ml(a,"V")+ml(a,"D")+ml(a,"I")+ml(a,"T")+ml(a,"S")+ml(a,"Z")+ml(a,"A")+ml(a,"P")+ml(a,"C");a.R((c?"":"\n")+e);a.Oc=[v(a.N),Fb(a.N),void 0];al(a,dl(a,a.Oc))}}function vl(a,b,c){var d="tr"==b;b=null!=c?parseInt(c,10):1;var e=1==b?0:1;Fa(b,function(){return fb(a,!0)&&a.ng(e,d,!1)},function(){Vc(a.N);fb(a,!1)})} -function al(a,b,c,d){b=ql(a,b,1);if(null!=b[0]){void 0===d&&(d=1);var e=[a.op,b[1],a.ha.Sh],e=256;if(void 0!==c){e=ql(a,c,1);if(null==e[0]||e[0]a.Xc&&a.Qc.length&&(a.Xc=0);if(0>a.Xc||b!=a.Qc[a.Xc])a.Qc.splice(0,0,b),a.Xc=0;a.Xc--}else b=a.Qc[a.Xc+1];a=b?b.split(0<=b.indexOf("|")?"|":";"):[""];for(var d in a)a[d]=ma(a[d]);return a} -function Fk(a,b){var c=!0;try{if(b.length||(a.Qf?(a.R("ended assemble @"+dl(a,a.Se)),a.Oc=a.Se,a.Qf=!1):b="?"),b=b.toLowerCase(),kb(a)&&0d||"z">>4);var kc=T[S].l;kc&&(S=kc);a.R(uc(a,Ia,ra)+" "+S)}}}else{"ds"==C&&(C="d",E=r,r="desc");for(M in Mk)if(r==M){var ed=a.Yi[M];ed?ed(E):a.R("no dump registered for "+ -r);break a}var Z=ql(a,r,2);if(null!=Z[0]){var ja="",W=0,sb="dw"==C;void 0!==E&&("l"==E.charAt(0)&&(E=E.substr(1)),(W=parseInt(E,10))&&(W=sb?W+7>>3:W+15>>4));W||(W=8);for(g=0;gsa;sa++){var va=a.Oa(Z,1);sb?sa&1&&(C+=m(E|va<<8)+(7==sa?" - ":" ")):C+=l(va)+(7==sa?"-":" ");Qa+=32<=va&&128>va?String.fromCharCode(va):".";E=va}ja&&(ja+="\n");ja+=r+" "+C+" "+Qa}ja&&a.R(ja);a.dl=Z}}}break;case "e":var Gc=g[1];if(void 0===Gc)a.R("missing address");else{var Hc= -ql(a,Gc,2);if(null!=Hc[0])for(r=2;r -vb.length&&(a.R("note: only "+vb.length+" available"),gb=vb.length);sa-=gb;0>sa&&(null!=vb[vb.length-1][1]?sa+=vb.length:(gb=sa+gb,sa=0));for(void 0!==Qa&&a.R(gb+" instructions earlier:");Z&&sa!=a.$f;){var Jc=vb[sa];if(null==Jc[1])break;Jc=[Jc[0],Jc[1],Jc[2]];a.R(jl(a,Jc,"history",-gb));++sa==vb.length&&(sa=0);a.gn=--gb;Z--}}10==Z&&(a.R("no "+r+"history available"),a.gn=void 0)}break;case "i":var Mf=g[1];if(Mf&&"?"!=Mf){var Nf=Tk(a,Mf);if(void 0!==Nf){var Ml=cc(a.ha,Nf);a.R(m(Nf)+": "+l(Ml))}}else a.R("\ninput commands:"), +b);a.Pc=[v(a.N),Fb(a.N),void 0];break;case "IP":D(a.N,b);a.Pc=[v(a.N),Fb(a.N),void 0];break;case "PC":case "PS":Id(a.N,b);break;case "C":b?Ve(a.N):Qe(a.N);break;case "P":b?(c=a.N,Le(c)||(c.W^=1)):(c=a.N,Le(c)&&(c.W^=1));break;case "A":b?We(a.N):Re(a.N);break;case "Z":b?Xe(a.N):Se(a.N);break;case "S":b?Ye(a.N):Te(a.N);break;case "I":b?(c=a.N,c.wa|=Jb):(c=a.N,c.wa&=~Jb);break;case "D":b?(c=a.N,c.wa|=Ib):(c=a.N,c.wa&=~Ib);break;case "V":b?Ze(a.N):Ue(a.N);break;default:f=!0;if(80286<=a.N.za)switch(f= +!1,c){case "MS":$e(a.N,b);break;case "TR":a.N.eb.load(b);break;default:f=!0}if(f){a.R("unknown register: "+e);return}}Vc(a.N);a.R("\nupdated registers:");c=!0}}void 0===d&&(d=!!(a.N.gc&1));e=nl(a,8)+nl(a,11)+nl(a,9)+nl(a,10)+(4a.N.za&&(b="\n"+b,e+=f,f=""),e+="\n"+ol(a,a.N.ra,d)+" ",e+=pl(a,"LD",a.N.cd.va,a.N.cd.ta, +a.N.cd.ta+a.N.cd.rb)+" "+pl(a,"GD",null,a.N.Fc,a.N.We)+" "+pl(a,"ID",null,a.N.Tc,a.N.Xe)+" ",e=e+(b+" "+f)+nl(a,32));e+=nl(a,23)+ml(a,"V")+ml(a,"D")+ml(a,"I")+ml(a,"T")+ml(a,"S")+ml(a,"Z")+ml(a,"A")+ml(a,"P")+ml(a,"C");a.R((c?"":"\n")+e);a.Pc=[v(a.N),Fb(a.N),void 0];al(a,dl(a,a.Pc))}}function vl(a,b,c){var d="tr"==b;b=null!=c?parseInt(c,10):1;var e=1==b?0:1;Fa(b,function(){return fb(a,!0)&&a.ng(e,d,!1)},function(){Vc(a.N);fb(a,!1)})} +function al(a,b,c,d){b=ql(a,b,1);if(null!=b[0]){void 0===d&&(d=1);var e=[a.pp,b[1],a.ha.Th],e=256;if(void 0!==c){e=ql(a,c,1);if(null==e[0]||e[0]a.Yc&&a.Rc.length&&(a.Yc=0);if(0>a.Yc||b!=a.Rc[a.Yc])a.Rc.splice(0,0,b),a.Yc=0;a.Yc--}else b=a.Rc[a.Yc+1];a=b?b.split(0<=b.indexOf("|")?"|":";"):[""];for(var d in a)a[d]=ma(a[d]);return a} +function Fk(a,b){var c=!0;try{if(b.length||(a.Qf?(a.R("ended assemble @"+dl(a,a.Se)),a.Pc=a.Se,a.Qf=!1):b="?"),b=b.toLowerCase(),kb(a)&&0d||"z">>4);var kc=T[S].l;kc&&(S=kc);a.R(uc(a,Ia,ra)+" "+S)}}}else{"ds"==C&&(C="d",E=r,r="desc");for(M in Mk)if(r==M){var ed=a.Zi[M];ed?ed(E):a.R("no dump registered for "+ +r);break a}var Z=ql(a,r,2);if(null!=Z[0]){var ja="",W=0,sb="dw"==C;void 0!==E&&("l"==E.charAt(0)&&(E=E.substr(1)),(W=parseInt(E,10))&&(W=sb?W+7>>3:W+15>>4));W||(W=8);for(g=0;gsa;sa++){var va=a.Oa(Z,1);sb?sa&1&&(C+=m(E|va<<8)+(7==sa?" - ":" ")):C+=l(va)+(7==sa?"-":" ");Qa+=32<=va&&128>va?String.fromCharCode(va):".";E=va}ja&&(ja+="\n");ja+=r+" "+C+" "+Qa}ja&&a.R(ja);a.el=Z}}}break;case "e":var Gc=g[1];if(void 0===Gc)a.R("missing address");else{var Hc= +ql(a,Gc,2);if(null!=Hc[0])for(r=2;r +vb.length&&(a.R("note: only "+vb.length+" available"),gb=vb.length);sa-=gb;0>sa&&(null!=vb[vb.length-1][1]?sa+=vb.length:(gb=sa+gb,sa=0));for(void 0!==Qa&&a.R(gb+" instructions earlier:");Z&&sa!=a.$f;){var Jc=vb[sa];if(null==Jc[1])break;Jc=[Jc[0],Jc[1],Jc[2]];a.R(jl(a,Jc,"history",-gb));++sa==vb.length&&(sa=0);a.hn=--gb;Z--}}10==Z&&(a.R("no "+r+"history available"),a.hn=void 0)}break;case "i":var Mf=g[1];if(Mf&&"?"!=Mf){var Nf=Tk(a,Mf);if(void 0!==Nf){var Ml=cc(a.ha,Nf);a.R(m(Nf)+": "+l(Ml))}}else a.R("\ninput commands:"), a.R("\ti [p]\tread port [p]"),a.R("warning: port accesses can affect hardware state");break;case "l":ul(a,g);break;case "m":a:{r=null;W=g[1];"?"==W&&(W=void 0);if(void 0!==W){Z=0;if("all"==W)Z=-1342177281,W=null;else if("on"==W)r=!0,W=null;else if("off"==W)r=!1,W=null;else{"keys"==W&&(W="key");"kbd"==W&&(W="keyboard");for(ja in Mk)if(W==ja){Z=Mk[ja];r=!!(a.Yb&Z);break}if(!Z){a.R("unknown message category: "+W);break a}}Z&&("on"==g[2]?(a.Yb|=Z,r=!0):"off"==g[2]&&(a.Yb&=~Z,r=!1))}Z=0;va="";for(ja in Mk)if(!W|| W==ja)if(sb=!!(a.Yb&Mk[ja]),null===r||r==sb)va&&(va+=","),++Z%10||(va+="\n\t"),"key"==ja&&(ja="keys"),va+=ja;void 0===W&&a.R("\nmessage commands:\n\tm [category] [on|off]\tturn categories on/off");a.R((null!==r?r?"messages on: ":"messages off: ":"message categories:\n\t")+(va||"none"))}break;case "o":var Of=g[1],Nl=g[2];if(Of&&"?"!=Of){var Ei=Tk(a,Of,"port #"),Fi=Tk(a,Nl);void 0!==Ei&&void 0!==Fi&&gc(a.ha,Ei,Fi)}else a.R("\noutput commands:"),a.R("\to [p] [d]\twrite data [d] to port [p]"),a.R("warning: port accesses can affect hardware state"); -break;case "p":case "pr":var Gi="pr"==g[0]?1:0,r=1+Gi;if(a.vc)a.R("step in progress");else{var qe,Z=!1,hb=[v(a.N),Fb(a.N),void 0];do switch(qe=!1,a.Oa(hb)){case 38:case 46:case 54:case 62:case 240:cl(a,hb,1);qe=!0;break;case 204:case 206:a.vc=r;cl(a,hb,1);break;case 205:case 224:case 225:case 226:a.vc=r;cl(a,hb,2);break;case 232:a.vc=r;cl(a,hb,3);break;case 154:a.vc=r;cl(a,hb,5);break;case 255:a.vc=0<=jl(a,hb).indexOf("CALL")?r:0;break;case 243:case 242:cl(a,hb,1);Z=qe=!0;break;case 108:case 109:case 110:case 111:case 164:case 165:case 166:case 167:case 170:case 171:case 172:case 173:case 174:case 175:Z&& -(a.vc=r,cl(a,hb,1))}while(qe);a.vc?(a.pe(a.Ac,hb,!0),a.uf()||(a.N.Nc(),a.vc=0)):vl(a,Gi?"tr":"t")}break;case "r":$k(a,g);break;case "t":case "tr":vl(a,g[0],g[1]);break;case "u":al(a,g[1],g[2],8);break;case "x":a:if(void 0===g[1]||"?"==g[1])a.R("\nexecution options:"),a.R("\tcs int #\tset checksum cycle interval to #"),a.R("\tcs start #\tset checksum cycle start count to #"),a.R("\tcs stop #\tset checksum cycle stop count to #"),a.R("\tsp #\t\tset speed multiplier to #");else switch(g[1]){case "cs":var md; -void 0!==g[3]&&(md=parseInt(g[3],10));switch(g[2]){case "int":a.N.U.bg=md;break;case "start":a.N.U.bh=md;break;case "stop":a.N.U.dg=md;break;default:a.R("unknown cs option");break a}void 0!==md&&Uc(a.N);a.R("checksums "+(a.N.da.Rf?"enabled":"disabled"));break;case "sp":void 0!==g[2]&&cd(a.N,parseInt(g[2],10));a.R("target speed: "+Db(a.N)+" ("+a.N.U.be+"x)");break;default:a.R("unknown option: "+g[1])}break;case "?":var r="commands:",re;for(re in Hk)r+="\n"+re+" ".substr(0,7-re.length)+Hk[re]; -ff(a)||(r+="\nnote: frequency/history disabled if no exec breakpoints");a.R(r);break;default:a.R("unknown command: "+b),c=!1}}}catch(Ol){a.R("debugger sad: "+Ol.message),c=!1}return c}Ma(function(){for(var a=db(window.document,"pcjs","debugger"),b=0;bBl){if(d.load(this.xh)){this.xf=new Ee(this,"1.17.2","failsafe");this.xf.load()&&(Fl(this,d),a=2,yl(this.xf));this.xf.set("timestamp",ta());zl(this.xf);var e=this.$c&&!this.hi;if(1==a||za("Click OK to restore the previous PCjs machine state, or CANCEL to reset the machine.")){if(c=d.parse()){var f=d.get("code"),g=d.get("data");f&&("ok"==f?d.load(g):("error"== -f&&"no machine state"!=g?(this.Ea("Error: "+g),"unable to verify user"==g&&(Da("user",""),this.ad=null)):this.R(f+": "+g),yl(d),d.load()?(c=d.parse(),e=!0):c=!1))}e&&El(this,c?d:null)}else 2==a&&d.clear()}else El(this);delete this.xh;delete this.Ni}e=Za(this.id);for(f=0;fa[1];a=a[2];this.da.$b=!0;this.Gl||(this.R("PCjs v1.17.2\nCopyright \u00a9 2012-2015 Jeff Parsons \nLicense: GPL version 3 or later "),this.Gl=!0);this.N&&(Gl(this,this.N,b,c,a),Wc(this.N));this.Jl&&(Fl(this,b),b.clear());!c&&this.xf&&(this.xf.clear(),delete this.xf)}; +function Al(a,b,c){n.call(this,"Computer",a,Al,33554432);this.da.$b=!1;this.of=a.buswidth;this.ad=Bl;this.yh=null;this.ii=!1;this.url=b?b.url:null;this.Fq=(Math.random()+.1).toString(36).substr(2,12);this.bd=Cl(this);if(this.N=ab("CPU",this.id)){this.Z=ab("Debugger",this.id);this.ha=new Rb({id:this.Vl+".bus",buswidth:this.of},this.N,this.Z);var d,e=Za(this.id);if((this.ee=ab("Panel",this.id))&&this.ee.Ng)for(b=0;bBl){if(d.load(this.yh)){this.xf=new Ee(this,"1.17.2","failsafe");this.xf.load()&&(Fl(this,d),a=2,yl(this.xf));this.xf.set("timestamp",ta());zl(this.xf);var e=this.ad&&!this.ii;if(1==a||za("Click OK to restore the previous PCjs machine state, or CANCEL to reset the machine.")){if(c=d.parse()){var f=d.get("code"),g=d.get("data");f&&("ok"==f?d.load(g):("error"== +f&&"no machine state"!=g?(this.Ca("Error: "+g),"unable to verify user"==g&&(Da("user",""),this.bd=null)):this.R(f+": "+g),yl(d),d.load()?(c=d.parse(),e=!0):c=!1))}e&&El(this,c?d:null)}else 2==a&&d.clear()}else El(this);delete this.yh;delete this.Oi}e=Za(this.id);for(f=0;fa[1];a=a[2];this.da.$b=!0;this.Hl||(this.R("PCjs v1.17.2\nCopyright \u00a9 2012-2015 Jeff Parsons \nLicense: GPL version 3 or later "),this.Hl=!0);this.N&&(Gl(this,this.N,b,c,a),Wc(this.N));this.Kl&&(Fl(this,b),b.clear());!c&&this.xf&&(this.xf.clear(),delete this.xf)}; function Fl(a,b){if(za("There may be a problem with your PCjs machine.\n\nTo help us diagnose it, click OK to send this PCjs machine state to http://www.pcjs.org.")){var c=a.De(),d=b.toString(),e={app:"PCjs",ver:"1.17.2"};e.url=a.url;e.user=c;e.type="bug";e.data=d;wa("http://www.pcjs.org/api/v1/report",!0,e)}} function wl(a,b,c){var d,e="none",f=new Ee(a,"1.17.2"),g=new Ee(a,"1.17.2","validate"),h=ta();g.set("timestamp",h);f.set("timestamp",h);f.set("version","1.17.2");f.set("url",window?window.location.href:null);f.set("browser",window?window.navigator.userAgent:"");a.N&&a.N.ec&&(c&&a.N.lb(),d=a.N.ec(b,c),"object"===typeof d&&f.set(a.N.id,d),c&&(a.N.da.$b=!1,!1===d&&(e=null)));for(var h=Za(a.id),t=0;th.indexOf("/")&&(h=window.location.pathname+h);a=a.replace(/(]*\sid=)(['"]).*?\2/,"$1$2"+c+"$2"+(d?" state=$2"+d+"$2":"")+(h?" url=$2"+h+"$2":""))}h=null;if("<"==a.charAt(0))try{window.ActiveXObject||"ActiveXObject"in window?(e||(a=a.replace(/\s*/g,"")),h=new window.ActiveXObject("Microsoft.XMLDOM"),h.async=!1,h.loadXML(a)):h=(new window.DOMParser).parseFromString(a,"text/xml")}catch(J){h= null,a=J.message}else a="unrecognized XML: "+(255/g.exec(a)){var e=d[2];b("Loading "+e+"...");wa(e,!0,null,null,function(f,g,h){if(h||!g)c(a,"unable to resolve XML reference: "+d[0]+" ("+h+")");else{if(f=d[3])if(h=g.match(new RegExp("<"+d[1]+"[^>]*>"))){for(var t=h[0],r,B=/( [a-z]+=)(['"])(.*?)\2/g;r=B.exec(f);)t=0>t.indexOf(r[1])?t.replace(">",r[0]+">"):t.replace(new RegExp(r[1]+"(['\"])(.*?)\\1"),r[0]);h[0]!=t&&(g=g.replace(h[0],t))}else{c(a,"missing <"+d[1]+"> in "+e);return}g=g.replace(/<\?xml[^>]*>[\r\n]*/, diff --git a/docs/pcjs/demos/pc.js b/docs/pcjs/demos/pc.js index 30ae5ef44c..7d19bfbd9c 100644 --- a/docs/pcjs/demos/pc.js +++ b/docs/pcjs/demos/pc.js @@ -6,174 +6,174 @@ a,b);t.setRequestHeader("Content-type","application/x-www-form-urlencoded");t.se function ra(){if(null==qa){var a=!1;if(window)try{window.localStorage.setItem("PCjs.localStorage","PCjs.localStorage"),a="PCjs.localStorage"==window.localStorage.getItem("PCjs.localStorage"),window.localStorage.removeItem("PCjs.localStorage")}catch(b){a=!1}qa=a}return qa}function sa(a){var b;if(window)try{b=window.localStorage.getItem(a)}catch(c){}return b}function ta(a,b){try{return window.localStorage.setItem(a,b),!0}catch(c){}return!1} function ua(a){if(window){var b=window?window.navigator.userAgent:"";return"iOS"==a&&b.match(/(iPod|iPhone|iPad)/)&&b.match(/AppleWebKit/)||"MSIE"==a&&b.match(/(MSIE|Trident)/)||0<=b.indexOf(a)?!0:!1}return!1}var va={init:[],show:[],exit:[]},wa=!1,xa=!0;function ya(a,b){if(window){var c=window[a];window[a]="function"!==typeof c?b:function(){c&&c();b()}}}function za(a){va.init.push(a)} function Aa(a){if(xa)try{for(var b=0;b=this.x&&a=this.y&&b=c>>2);d?(b=new $a(a.x,a.y,a.yc,a.Gc*b/c|0),a.y+=b.Gc,a.Gc-=b.Gc):(b=new $a(a.x,a.y,a.yc*b/c|0,a.Gc),a.x+=b.yc,a.yc-=b.yc);return b}k=Ya.prototype;k.Eb=function(a,b,c){return this.ya&&this.ya.Eb(a,b,c)||this.U&&this.U.Eb(a,b,c)||this.Ca&&this.Ca.Eb(a,b,c)?!0:this.parent.Eb.call(this,a,b,c)};k.zc=function(a,b,c,d){this.ya=a;this.ja=b;this.U=c;this.Xa=d;this.Ca=bb(a,"Keyboard")};k.bc=function(a,b){b||cb();return!0};k.ac=function(){return!0}; -k.ti=function(a,b){a.button||(this.ig=b?0:-1,db(this,a,b))};k.el=function(a){db(this,a)}; -function db(a,b,c){var d=1280/a.canvas.offsetWidth,e=720/a.canvas.offsetHeight,f=a.canvas.getBoundingClientRect(),d=(b.clientX-f.left)*d|0;b=(b.clientY-f.top)*e|0;null==c&&(a.ig||(a.ig=Math.abs(a.Id-d)>Math.abs(a.Jd-b)?1:2),1==a.ig?b=a.Jd:2==a.ig&&(d=a.Id));a.Id=d;a.Jd=b;if(0<=d&&1280>d&&0<=b&&720>b){a:{c=d;if(960>c&&a.Qa&&a.Qa.cf)for(f=0;f>fb&gb))*a.ja.Hb-1;0d&&(f=d);c=f;break a}c=q}c!=q&&(c&=-16,c!=a.sk&&(hb(a,c,!0),a.sk=c))}} -k.Hd=function(){if(this.canvas&&this.hh&&this.Rd&&this.Ce){var a=this.Rd.width,b=this.Rd.height;this.Ce.fillStyle="black";this.Ce.fillRect(0,0,a,b);ib(this,18,this.Rd,this.Ce,this.canvas.style.color);jb(this,3);u(this,"CPU");u(this,"Target");u(this,"Current");kb(this);u(this,this.U.za);u(this,this.U.S.Me.toFixed(2)+"Mhz");u(this,lb(this.U));kb(this,2);jb(this,8);this.zo=16;this.Ao=4;u(this,"AX",this.U.G,2);u(this,"DS",this.U.gb.ta,0,1);u(this,"DX",this.U.J,2);u(this,"SI",this.U.F,0,1.5);u(this,"BX", -this.U.C,2);u(this,"ES",this.U.Oa.ta,0,1);u(this,"CX",this.U.I,2);u(this,"DI",this.U.D,0,1.5);u(this,"CS",this.U.na.ta,2);u(this,"SS",this.U.sa.ta,0,1);u(this,"IP",v(this.U),2);u(this,"SP",w(this.U),0,1.5);var c;u(this,"PS",c=ob(this.U),2);u(this,"BP",this.U.H,0,1.5);jb(this,9);u(this,"V"+(c&pb?1:0));u(this,"D"+(c&qb?1:0));u(this,"I"+(c&rb?1:0));u(this,"T"+(c&sb?1:0));u(this,"S"+(c&tb?1:0));u(this,"Z"+(c&ub?1:0));u(this,"A"+(c&vb?1:0));u(this,"P"+(c&wb?1:0));u(this,"C"+(c&xb?1:0),0,2);hb(this,this.sk); -this.hh.drawImage(this.Rd,0,0,a,b,this.or,this.rr,this.Mq,this.Pq)}}; -function hb(a,b,c){if(a.hh&&a.Rd&&a.Ce){var d=a.Rd.width;a.Ce.fillStyle="black";a.Ce.fillRect(0,360,d,360);ib(a,378,a.Rd,a.Ce,a.canvas.style.color);jb(a,24);if(null==b)u(a,"Mouse over memory to dump");else{u(a,"0x"+da(b),null,0,1);for(var e=1;16>=e;e++){for(var f="",g=1;8>=g;g++){var h=yb(a.ja,b++);u(a,ea(h),null,1);f+=32<=h&&128>h?String.fromCharCode(h):"."}u(a,f,null,0,1)}}c&&a.hh.drawImage(a.Rd,0,360,d,360,a.mr,a.pr,a.Kq,a.Nq)}} -function ib(a,b,c,d,e){var f,g=a.Kp=10;a.Oc=g;a.$e=b;a.vf=a.Yk=18;f||(f=a.Uk||a.Yk+"px Monaco, Lucida Console, Courier New");a.uh=a.Uk=f;c&&(a.Tm=c);d&&(a.fd=d,a.Vm=e||"white")}function jb(a,b){a.wi=a.Tm.width/b|0}function kb(a,b){a.Oc=a.Kp;a.$e+=(a.vf+2)*(b||1)}function u(a,b,c,d,e){a.fd.font=a.uh;a.fd.fillStyle=a.Vm;a.fd.fillText(b,a.Oc,a.$e);a.Oc+=a.wi;null!=c&&(b=c.toString(),16==a.zo&&(b="0x"+da(c,a.Ao)),a.fd.fillText(b,a.Oc,a.$e),a.Oc+=a.wi);d&&(a.Oc+=a.wi*d);e&&kb(a,e)} -function cb(){for(var a=!1,b=Ta(window.document,"pcjs","panel"),c=0;c=this.Af?12:24>=this.Af?14:15;this.Hb=1<>2;this.Ba=this.Hb-1;this.Uf=this.ii/this.Hb|0;this.vc=this.Uf-1;this.Mg=[];this.Ng=[];this.Wi();p(this)}La(n,zb); -var eb=131071,fb=18,gb=1023;k=zb.prototype;k.Wi=function(){this.ma=Array(this.Uf);for(var a=0;a>>a.Ra;0a.Hb?a.Hb:c;if(g&&g.size){if(g.type==d&&g.V==e){if(b+c<=g.Of)return g.ai+=g.Of-b,g.Of=b,!0;if(b>=g.Of+g.ai){r=g.size-(b-h);r>c&&(r=c);g.ai=b-g.Of+r;c-=r;b=h+a.Hb;continue}}return Db(1,b,c)}a.ma[f++]=new Ab(b,r,a.Hb,d,e);c-=r;b=h+a.Hb}return 0>>this.Ra;0>>a.Ra;0>>this.Ra].Cb(a&this.Ba)};function yb(a,b){return a.ma[(b&a.ab)>>>a.Ra].Xj(b&a.Ba)} -k.la=function(a){var b=a&this.Ba;a=(a&this.ab)>>>this.Ra;return b!=this.Ba?this.ma[a].pm(b):this.ma[a++].Cb(b)|this.ma[a&this.vc].Cb(0)<<8};function Fb(a,b){var c=b&a.Ba,d=(b&a.ab)>>>a.Ra;return c!=a.Ba?a.ma[d].Bp(c):a.ma[d++].Xj(c)|a.ma[d&a.vc].Xj(0)<<8}k.Wk=function(a){var b=a&this.Ba;a=(a&this.ab)>>>this.Ra;if(b>>c|this.ma[a+1&this.vc].od(0)<<32-c};k.Ue=function(a,b){this.ma[(a&this.ab)>>>this.Ra].Fb(a&this.Ba,b&255)}; -k.Ka=function(a,b){var c=a&this.Ba,d=(a&this.ab)>>>this.Ra;c!=this.Ba?this.ma[d].Hm(c,b&65535):(this.ma[d++].Fb(c,b&255),this.ma[d&this.vc].Fb(0,b>>8&255))};function Gb(a,b,c){var d=b&a.Ba;b=(b&a.ab)>>>a.Ra;d!=a.Ba?a.ma[b].Jp(d,c&65535):(a.ma[b++].fk(d,c&255),a.ma[b&a.vc].fk(0,c>>8&255))} -k.Cm=function(a,b){var c=a&this.Ba,d=(a&this.ab)>>>this.Ra;if(c>>32-f)}}; -function Hb(a){for(var b=0,c=[],d=0;d=this.x&&a=this.y&&b=c>>2);d?(b=new $a(a.x,a.y,a.zc,a.Hc*b/c|0),a.y+=b.Hc,a.Hc-=b.Hc):(b=new $a(a.x,a.y,a.zc*b/c|0,a.Hc),a.x+=b.zc,a.zc-=b.zc);return b}k=Ya.prototype;k.Eb=function(a,b,c){return this.ya&&this.ya.Eb(a,b,c)||this.U&&this.U.Eb(a,b,c)||this.Ca&&this.Ca.Eb(a,b,c)?!0:this.parent.Eb.call(this,a,b,c)};k.Ac=function(a,b,c,d){this.ya=a;this.ja=b;this.U=c;this.Xa=d;this.Ca=bb(a,"Keyboard")};k.bc=function(a,b){b||cb();return!0};k.ac=function(){return!0}; +k.vi=function(a,b){a.button||(this.jg=b?0:-1,db(this,a,b))};k.fl=function(a){db(this,a)}; +function db(a,b,c){var d=1280/a.canvas.offsetWidth,e=720/a.canvas.offsetHeight,f=a.canvas.getBoundingClientRect(),d=(b.clientX-f.left)*d|0;b=(b.clientY-f.top)*e|0;null==c&&(a.jg||(a.jg=Math.abs(a.Id-d)>Math.abs(a.Jd-b)?1:2),1==a.jg?b=a.Jd:2==a.jg&&(d=a.Id));a.Id=d;a.Jd=b;if(0<=d&&1280>d&&0<=b&&720>b){a:{c=d;if(960>c&&a.Qa&&a.Qa.cf)for(f=0;f>fb&gb))*a.ja.Hb-1;0d&&(f=d);c=f;break a}c=q}c!=q&&(c&=-16,c!=a.tk&&(hb(a,c,!0),a.tk=c))}} +k.Hd=function(){if(this.canvas&&this.ih&&this.Rd&&this.Ce){var a=this.Rd.width,b=this.Rd.height;this.Ce.fillStyle="black";this.Ce.fillRect(0,0,a,b);ib(this,18,this.Rd,this.Ce,this.canvas.style.color);jb(this,3);u(this,"CPU");u(this,"Target");u(this,"Current");kb(this);u(this,this.U.za);u(this,this.U.S.Me.toFixed(2)+"Mhz");u(this,lb(this.U));kb(this,2);jb(this,8);this.Ao=16;this.Bo=4;u(this,"AX",this.U.G,2);u(this,"DS",this.U.gb.ta,0,1);u(this,"DX",this.U.J,2);u(this,"SI",this.U.F,0,1.5);u(this,"BX", +this.U.C,2);u(this,"ES",this.U.Oa.ta,0,1);u(this,"CX",this.U.I,2);u(this,"DI",this.U.D,0,1.5);u(this,"CS",this.U.na.ta,2);u(this,"SS",this.U.sa.ta,0,1);u(this,"IP",v(this.U),2);u(this,"SP",w(this.U),0,1.5);var c;u(this,"PS",c=ob(this.U),2);u(this,"BP",this.U.H,0,1.5);jb(this,9);u(this,"V"+(c&pb?1:0));u(this,"D"+(c&qb?1:0));u(this,"I"+(c&rb?1:0));u(this,"T"+(c&sb?1:0));u(this,"S"+(c&tb?1:0));u(this,"Z"+(c&ub?1:0));u(this,"A"+(c&vb?1:0));u(this,"P"+(c&wb?1:0));u(this,"C"+(c&xb?1:0),0,2);hb(this,this.tk); +this.ih.drawImage(this.Rd,0,0,a,b,this.pr,this.sr,this.Nq,this.Qq)}}; +function hb(a,b,c){if(a.ih&&a.Rd&&a.Ce){var d=a.Rd.width;a.Ce.fillStyle="black";a.Ce.fillRect(0,360,d,360);ib(a,378,a.Rd,a.Ce,a.canvas.style.color);jb(a,24);if(null==b)u(a,"Mouse over memory to dump");else{u(a,"0x"+da(b),null,0,1);for(var e=1;16>=e;e++){for(var f="",g=1;8>=g;g++){var h=yb(a.ja,b++);u(a,ea(h),null,1);f+=32<=h&&128>h?String.fromCharCode(h):"."}u(a,f,null,0,1)}}c&&a.ih.drawImage(a.Rd,0,360,d,360,a.nr,a.qr,a.Lq,a.Oq)}} +function ib(a,b,c,d,e){var f,g=a.Lp=10;a.Pc=g;a.$e=b;a.vf=a.Zk=18;f||(f=a.Vk||a.Zk+"px Monaco, Lucida Console, Courier New");a.vh=a.Vk=f;c&&(a.Um=c);d&&(a.gd=d,a.Wm=e||"white")}function jb(a,b){a.xi=a.Um.width/b|0}function kb(a,b){a.Pc=a.Lp;a.$e+=(a.vf+2)*(b||1)}function u(a,b,c,d,e){a.gd.font=a.vh;a.gd.fillStyle=a.Wm;a.gd.fillText(b,a.Pc,a.$e);a.Pc+=a.xi;null!=c&&(b=c.toString(),16==a.Ao&&(b="0x"+da(c,a.Bo)),a.gd.fillText(b,a.Pc,a.$e),a.Pc+=a.xi);d&&(a.Pc+=a.xi*d);e&&kb(a,e)} +function cb(){for(var a=!1,b=Ta(window.document,"pcjs","panel"),c=0;c=this.Af?12:24>=this.Af?14:15;this.Hb=1<>2;this.Ba=this.Hb-1;this.Uf=this.ji/this.Hb|0;this.wc=this.Uf-1;this.Ng=[];this.Og=[];this.Xi();p(this)}La(n,zb); +var eb=131071,fb=18,gb=1023;k=zb.prototype;k.Xi=function(){this.ma=Array(this.Uf);for(var a=0;a>>a.Ra;0a.Hb?a.Hb:c;if(g&&g.size){if(g.type==d&&g.V==e){if(b+c<=g.Of)return g.bi+=g.Of-b,g.Of=b,!0;if(b>=g.Of+g.bi){r=g.size-(b-h);r>c&&(r=c);g.bi=b-g.Of+r;c-=r;b=h+a.Hb;continue}}return Db(1,b,c)}a.ma[f++]=new Ab(b,r,a.Hb,d,e);c-=r;b=h+a.Hb}return 0>>this.Ra;0>>a.Ra;0>>this.Ra].Cb(a&this.Ba)};function yb(a,b){return a.ma[(b&a.ab)>>>a.Ra].Yj(b&a.Ba)} +k.la=function(a){var b=a&this.Ba;a=(a&this.ab)>>>this.Ra;return b!=this.Ba?this.ma[a].qm(b):this.ma[a++].Cb(b)|this.ma[a&this.wc].Cb(0)<<8};function Fb(a,b){var c=b&a.Ba,d=(b&a.ab)>>>a.Ra;return c!=a.Ba?a.ma[d].Cp(c):a.ma[d++].Yj(c)|a.ma[d&a.wc].Yj(0)<<8}k.Xk=function(a){var b=a&this.Ba;a=(a&this.ab)>>>this.Ra;if(b>>c|this.ma[a+1&this.wc].pd(0)<<32-c};k.Ue=function(a,b){this.ma[(a&this.ab)>>>this.Ra].Fb(a&this.Ba,b&255)}; +k.Ka=function(a,b){var c=a&this.Ba,d=(a&this.ab)>>>this.Ra;c!=this.Ba?this.ma[d].Im(c,b&65535):(this.ma[d++].Fb(c,b&255),this.ma[d&this.wc].Fb(0,b>>8&255))};function Gb(a,b,c){var d=b&a.Ba;b=(b&a.ab)>>>a.Ra;d!=a.Ba?a.ma[b].Kp(d,c&65535):(a.ma[b++].gk(d,c&255),a.ma[b&a.wc].gk(0,c>>8&255))} +k.Dm=function(a,b){var c=a&this.Ba,d=(a&this.ab)>>>this.Ra;if(c>>32-f)}}; +function Hb(a){for(var b=0,c=[],d=0;d>1),this.ia=new Int32Array(this.buffer,0,c>>2),this.me(Ob?Rb:Sb);else{this.ia=Array(c>>2);for(e=0;e>1]}function cc(a){return this.of.getInt32(a,!0)}function dc(a){return a&3?this.Wb[a]|this.Wb[a+1]<<8|this.Wb[a+2]<<16|this.Wb[a+3]<<24:this.ia[a>>2]} -function ec(a,b){this.Wb[a]=b;this.Ha=!0}function fc(a,b){this.Wb[a]=b;this.Ha=!0}function gc(a,b){this.of.setUint16(a,b,!0);this.Ha=!0}function hc(a,b){a&1?(this.Wb[a]=b,this.Wb[a+1]=b>>8):this.vk[a>>1]=b;this.Ha=!0}function ic(a,b){this.of.setInt32(a,b,!0);this.Ha=!0}function jc(a,b){a&3?(this.Wb[a]=b,this.Wb[a+1]=b>>8,this.Wb[a+2]=b>>16,this.Wb[a+3]=b>>24):this.ia[a>>2]=b;this.Ha=!0} +function Ab(a,b,c,d,e){this.ia=null;this.offset=0;this.Of=a;this.bi=b;this.size=c||0;this.type=d||Pb;this.Li=d==Qb;this.V=null;this.Ha=this.Lk=!1;if(c)if(e)this.V=e,a=e.Yk(a),this.ia=a[0],this.offset=a[1],this.me(e.Si());else if(Xa)this.buffer=new ArrayBuffer(c),this.of=new DataView(this.buffer,0,c),this.Wb=new Uint8Array(this.buffer,0,c),this.wk=new Uint16Array(this.buffer,0,c>>1),this.ia=new Int32Array(this.buffer,0,c>>2),this.me(Ob?Rb:Sb);else{this.ia=Array(c>>2);for(e=0;e>1]}function cc(a){return this.of.getInt32(a,!0)}function dc(a){return a&3?this.Wb[a]|this.Wb[a+1]<<8|this.Wb[a+2]<<16|this.Wb[a+3]<<24:this.ia[a>>2]} +function ec(a,b){this.Wb[a]=b;this.Ha=!0}function fc(a,b){this.Wb[a]=b;this.Ha=!0}function gc(a,b){this.of.setUint16(a,b,!0);this.Ha=!0}function hc(a,b){a&1?(this.Wb[a]=b,this.Wb[a+1]=b>>8):this.wk[a>>1]=b;this.Ha=!0}function ic(a,b){this.of.setInt32(a,b,!0);this.Ha=!0}function jc(a,b){a&3?(this.Wb[a]=b,this.Wb[a+1]=b>>8,this.Wb[a+2]=b>>16,this.Wb[a+3]=b>>24):this.ia[a>>2]=b;this.Ha=!0} var Ub=[function(a){return this.ia[a>>2]>>>((a&3)<<3)&255},function(a){var b=a>>2;a=(a&3)<<3;var c=this.ia[b]>>a;return 24>a?c&65535:c&255|(this.ia[b+1]&255)<<8},function(a){var b=a>>2;a=(a&3)<<3;var c=this.ia[b];a&&(c=c>>>a|this.ia[b+1]<<32-a);return c},function(a,b){var c=a>>2,d=(a&3)<<3;this.ia[c]=this.ia[c]&~(255<>2,d=(a&3)<<3;24>d?this.ia[c]=this.ia[c]&~(65535<>8);this.Ha= !0},function(a,b){var c=a>>2,d=(a&3)<<3;if(d){var e=-1<>>32-d}else this.ia[c]=b;this.Ha=!0}];if(Xa)var Sb=[Zb,ac,cc,ec,gc,ic],Rb=[$b,bc,dc,fc,hc,jc]; -Ab.prototype={constructor:Ab,parent:null,save:function(){var a,b;if(this.V)a=null;else if(Xa)for(a=Array(this.size>>2),b=0;b>>b.Ra;d=d+e-1>>>b.Ra;c.si=0;for(c.Vf=0;f<=d;){e=b.ma[f];c.si+=e.size;if(e.size){var g=f,g=g|e.type<<28;c.di[c.Vf++]=g}f++}a.Qa=c;a.om=a.Qa.Vf*a.ja.Hb/691200;e=0;a.Qa.pi=0;a.Qa.df||(a.Qa.df=[]);d=-1;for(var g=0,h=-1,b=0;b>>28;f&=eb;if(c!=d||f!= -h+1){if(h=b-g)d=a.Qa.df[a.Qa.pi++]=g|h<>fb&gb,a.Qa.cf.push(ab(c,d,f,0==b)),f-=d;for(b=0;b>28&7;f=f>>fb&gb;d=e=a.Qa.cf[b];g=a.Wm;(h=Wb[c])||(h=new Za);g.strokeStyle="black";g.strokeRect(d.x,d.y,d.yc,d.Gc);g.fillStyle="string"==typeof h?h:h.toString();g.fillRect(d.x,d.y,d.yc, -d.Gc);d=a;g=e;d.uh=d.Uk;d.vf=d.Yk;e=g.x+(g.yc>>1);var h=g.y+(g.Gc>>1),r=g.Gc;g.yc>1;d.$e+=(d.vf>>1)-2;u(d,c);d.Sk&&(d.fd.restore(),d.Sk=!1)}}}else u(a,"This space intentionally left blank");a.hh.drawImage(a.Xf,0,0,a.Xf.width,a.Xf.height,a.nr, -a.qr,a.Lq,a.Oq);a.ln=!1}}k.qd=function(){this.video&&this.video.qd()}; -k.Eb=function(a,b,c){var d=this;a=!1;switch(b){case "run":this.oa[b]=c;c.onclick=function(){var a;if(a=d.ya)if(a=d.ya,a.ea.Zb)a=!0;else{var b=null,c,h=Ma(a.id);for(c=0;cc&&(c=60);2>c&&(c=2);var d=1;b&&1a.S.zh&&(c=Math.round(c/a.S.ce));return c}function mc(a){a.S.ae=0;a.Qe=a.ge=a.jd=a.A=0;nc(a);uc(a,1)} -function lb(a){return a.ea.Ib&&a.S.ae?a.S.ae.toFixed(2)+"Mhz":"Stopped"}function uc(a,b,c){if(void 0!==b){.8>a.S.ae/a.S.Me&&(b=1);a.S.ce=b;b=a.S.zh*a.S.ce;if(a.S.Me!=b){a.S.Me=b;b=a.S.Me.toFixed(2)+"Mhz";var d=a.oa.setSpeed;d&&(d.textContent=b);a.kc("target speed: "+b)}c&&a.qd()}wc(a,a.ge);a.ge=0;a.S.zf=ka();a.S.Ne=0;xc(a)} -function lc(a,b){if(Ua(a,!0)){if(!a.ea.Ib){uc(a);a.ya&&a.ya.start(a.S.zf,yc(a));a.ea.Ib=!0;a.ea.Rk=!0;a.ca&&zc(a.ca);var c=a.oa.run;c&&(c.textContent="Halt");a.Hd(!0);b&&a.qd()}a.S.dj>=a.S.kd&&xc(a,!0);a.S.og=0;a.S.Bh=ka();a.S.Ne&&(c=a.S.Bh-a.S.Ne,c>a.S.fl&&(a.S.zf+=c,a.S.zf>a.S.Bh&&(a.S.zf=a.S.Bh)));try{do{var d=a.ea.mh?1:a.S.xo;if(a.ca){Ac(a.ca);var e=a.ca,c=d,f=e.Lb[0];if(f.Ie){var g=(yc(e.U,e.Yd)-f.Cd)/e.Lh|0,h=Bc(e,0)-g;6==f.mode&&(h-=g);var r=h*e.Lh|0;6==f.mode&&(r>>=1);c>r&&(c=r)}var d=c,t= -a.ca,c=d;if(t.ba&&t.ba[11]&64){var B=t.Df-yc(t.U,t.Yd);0B&&(c=B)}d=c}a.Em(d);var I=a.jd-a.A;a.ge+=I;a.S.og+=I;wc(a,0,!0);var c=a,H=I;if(c.ea.mh){var L=!1;c.S.Dh=c.S.Dh+c.Vk()|0;c.S.Bf-=H;0>=c.S.Bf&&(c.S.Bf+=c.S.jg,L=!0);0<=c.S.kg&&c.S.kg<=yc(c)&&(c.S.jg=c.S.kg=-1,nc(c),rc(c),L=!0);L&&c.kc(yc(c)+" cycles: checksum="+da(c.S.Dh))}a.S.mg-=I;0>=a.S.mg&&(a.S.mg+=a.S.jl,oc(a));a.S.lg-=I;0>=a.S.lg&&(a.S.lg+=a.S.il,a.Hd());a.S.ng-=I;if(0>=a.S.ng){a.S.ng+=a.S.cj;break}}while(a.ea.Ib)}catch(U){rc(a);oc(a); -a.Hd();a.ya&&a.ya.stop(ka(),yc(a));Ua(a,!1);Wa(a,U.message);return}d=setTimeout;e=a.Eo;a.S.Ne=ka();f=a.S.fl;a.S.og&&(f=Math.round(f*a.S.og/a.S.cj));f-=a.S.Ne-a.S.Bh;if(g=a.S.Ne-a.S.zf)a.S.ae=Math.round(a.ge/(10*g))/100,864E5<=g&&(a.Qe=0,a.ca&&Ac(a.ca,!0),uc(a));if(0>f||a.S.aethis.$b?this.ua+a:Rc.call(this,0,0,c)}function Rc(a,b,c){c||Lc.call(this.U,13,0);return q} +Ab.prototype={constructor:Ab,parent:null,save:function(){var a,b;if(this.V)a=null;else if(Xa)for(a=Array(this.size>>2),b=0;b>>b.Ra;d=d+e-1>>>b.Ra;c.ti=0;for(c.Vf=0;f<=d;){e=b.ma[f];c.ti+=e.size;if(e.size){var g=f,g=g|e.type<<28;c.ei[c.Vf++]=g}f++}a.Qa=c;a.pm=a.Qa.Vf*a.ja.Hb/691200;e=0;a.Qa.qi=0;a.Qa.df||(a.Qa.df=[]);d=-1;for(var g=0,h=-1,b=0;b>>28;f&=eb;if(c!=d||f!= +h+1){if(h=b-g)d=a.Qa.df[a.Qa.qi++]=g|h<>fb&gb,a.Qa.cf.push(ab(c,d,f,0==b)),f-=d;for(b=0;b>28&7;f=f>>fb&gb;d=e=a.Qa.cf[b];g=a.Xm;(h=Wb[c])||(h=new Za);g.strokeStyle="black";g.strokeRect(d.x,d.y,d.zc,d.Hc);g.fillStyle="string"==typeof h?h:h.toString();g.fillRect(d.x,d.y,d.zc, +d.Hc);d=a;g=e;d.vh=d.Vk;d.vf=d.Zk;e=g.x+(g.zc>>1);var h=g.y+(g.Hc>>1),r=g.Hc;g.zc>1;d.$e+=(d.vf>>1)-2;u(d,c);d.Tk&&(d.gd.restore(),d.Tk=!1)}}}else u(a,"This space intentionally left blank");a.ih.drawImage(a.Xf,0,0,a.Xf.width,a.Xf.height,a.or, +a.rr,a.Mq,a.Pq);a.mn=!1}}k.rd=function(){this.video&&this.video.rd()}; +k.Eb=function(a,b,c){var d=this;a=!1;switch(b){case "run":this.oa[b]=c;c.onclick=function(){var a;if(a=d.ya)if(a=d.ya,a.ea.Zb)a=!0;else{var b=null,c,h=Ma(a.id);for(c=0;cc&&(c=60);2>c&&(c=2);var d=1;b&&1a.S.Ah&&(c=Math.round(c/a.S.ce));return c}function mc(a){a.S.ae=0;a.Qe=a.ge=a.kd=a.A=0;nc(a);uc(a,1)} +function lb(a){return a.ea.Ib&&a.S.ae?a.S.ae.toFixed(2)+"Mhz":"Stopped"}function uc(a,b,c){if(void 0!==b){.8>a.S.ae/a.S.Me&&(b=1);a.S.ce=b;b=a.S.Ah*a.S.ce;if(a.S.Me!=b){a.S.Me=b;b=a.S.Me.toFixed(2)+"Mhz";var d=a.oa.setSpeed;d&&(d.textContent=b);a.lc("target speed: "+b)}c&&a.rd()}wc(a,a.ge);a.ge=0;a.S.zf=ka();a.S.Ne=0;xc(a)} +function lc(a,b){if(Ua(a,!0)){if(!a.ea.Ib){uc(a);a.ya&&a.ya.start(a.S.zf,yc(a));a.ea.Ib=!0;a.ea.Sk=!0;a.ca&&zc(a.ca);var c=a.oa.run;c&&(c.textContent="Halt");a.Hd(!0);b&&a.rd()}a.S.ej>=a.S.ld&&xc(a,!0);a.S.pg=0;a.S.Ch=ka();a.S.Ne&&(c=a.S.Ch-a.S.Ne,c>a.S.gl&&(a.S.zf+=c,a.S.zf>a.S.Ch&&(a.S.zf=a.S.Ch)));try{do{var d=a.ea.nh?1:a.S.yo;if(a.ca){Ac(a.ca);var e=a.ca,c=d,f=e.Lb[0];if(f.Ie){var g=(yc(e.U,e.Yd)-f.Cd)/e.Mh|0,h=Bc(e,0)-g;6==f.mode&&(h-=g);var r=h*e.Mh|0;6==f.mode&&(r>>=1);c>r&&(c=r)}var d=c,t= +a.ca,c=d;if(t.ba&&t.ba[11]&64){var B=t.Df-yc(t.U,t.Yd);0B&&(c=B)}d=c}a.Fm(d);var I=a.kd-a.A;a.ge+=I;a.S.pg+=I;wc(a,0,!0);var c=a,H=I;if(c.ea.nh){var L=!1;c.S.Eh=c.S.Eh+c.Wk()|0;c.S.Bf-=H;0>=c.S.Bf&&(c.S.Bf+=c.S.kg,L=!0);0<=c.S.lg&&c.S.lg<=yc(c)&&(c.S.kg=c.S.lg=-1,nc(c),rc(c),L=!0);L&&c.lc(yc(c)+" cycles: checksum="+da(c.S.Eh))}a.S.ng-=I;0>=a.S.ng&&(a.S.ng+=a.S.kl,oc(a));a.S.mg-=I;0>=a.S.mg&&(a.S.mg+=a.S.jl,a.Hd());a.S.og-=I;if(0>=a.S.og){a.S.og+=a.S.dj;break}}while(a.ea.Ib)}catch(U){rc(a);oc(a); +a.Hd();a.ya&&a.ya.stop(ka(),yc(a));Ua(a,!1);Wa(a,U.message);return}d=setTimeout;e=a.Fo;a.S.Ne=ka();f=a.S.gl;a.S.pg&&(f=Math.round(f*a.S.pg/a.S.dj));f-=a.S.Ne-a.S.Ch;if(g=a.S.Ne-a.S.zf)a.S.ae=Math.round(a.ge/(10*g))/100,864E5<=g&&(a.Qe=0,a.ca&&Ac(a.ca,!0),uc(a));if(0>f||a.S.aethis.$b?this.ua+a:Rc.call(this,0,0,c)}function Rc(a,b,c){c||Lc.call(this.U,13,0);return q} function Tc(a,b,c){return a+b<=this.$b?this.ua+a:Uc.call(this,0,0,c)}function Vc(a,b,c){return a+b>this.$b?this.ua+a:Uc.call(this,0,0,c)}function Uc(a,b,c){c||Lc.call(this.U,13,0);return q} function Wc(a,b){var c=this.U,d=c.ib.ua,e=this.Wa,f=c.ib.ta;if(!b){if(768!=c.ib.type)return Lc.call(c,10,a,!0),!1;c.Ka(c.ib.Md+4,c.ib.jb&-769|256)}if(c.ib.load(a)==q)return!1;var g=c.ib.ua;if(b){if(768==c.ib.type)return Lc.call(c,13,a,!0),!1;c.Ka(c.ib.Md+4,c.ib.jb|=768);c.ib.type=768}c.Ka(d+14,v(c));c.Ka(d+16,ob(c));c.Ka(d+18,c.G);c.Ka(d+20,c.I);c.Ka(d+22,c.J);c.Ka(d+24,c.C);c.Ka(d+26,w(c));c.Ka(d+28,c.H);c.Ka(d+30,c.F);c.Ka(d+32,c.D);c.Ka(d+34,c.Oa.ta);c.Ka(d+36,c.na.ta);c.Ka(d+38,c.sa.ta);c.Ka(d+ -40,c.gb.ta);var d=38,h=26;Xc(c,c.la(g+16)|(b?16384:0));c.G=c.la(g+18);c.I=c.la(g+20);c.J=c.la(g+22);c.C=c.la(g+24);c.H=c.la(g+28);c.F=c.la(g+30);c.D=c.la(g+32);c.Oa.load(c.la(g+34));c.gb.load(c.la(g+40));Yc(c,c.la(g+14),c.la(g+36));this.Wa>13;if(6144<=h){U=c&3;if(U>a.Wa){if(!1!==B&&!(ba==a.Wa||g&1024&&ba<=a.Wa)){r=q;break}H=e.Fa();Zc(e,e.Fa(),!0);y(e,H);a.sh=!0}H=!1}else if(1024==h)H=!0,L=-1,I=c,Uh||2048==(h&2560))){d||Lc.call(e,13,c,!!g);r=q;break}}else if(3==a.id){if(!B||4096>h||2048==(h&2560)){d|| -Lc.call(e,13,c,!0);r=q;break}}else if(4==a.id){if(!B||256!=h&&768!=h){d||Lc.call(e,10,c,!0);r=q;break}}else if(6==a.id&&!(g&4096)&&768>13;80386>a.U.za||!(a.Bi&64)?(a.te=2,a.fa=65535):(a.te=4,a.fa=-1)}else a.load=Ic,a.dl=Mc,a.Fc=Oc,a.hc=Pc,a.$b=65535,a.Wa=a.pc=0,a.Md=q,a.te=2,a.fa=65535;a.Xc=a.te;a.ha=a.fa} -function bd(a){this.za=a.model||8088;var b=0;switch(this.za){default:b=4772727;break;case 80286:b=6E6;break;case 80386:b=16E6}kc.call(this,a,b);this.lk=61442;this.Jg=Cc;this.Ig=4;this.Ef=255;this.B=80286<=this.za?cd:dd;this.Pa=ed;this.ok=fd;this.pk=id;this.qk=jd;80186<=this.za&&(this.Pa=ed.slice(),this.ok=fd.slice(),this.pk=id.slice(),this.Ef=31,this.Pa[15]=kd,this.Pa[96]=ld,this.Pa[97]=md,this.Pa[98]=nd,this.Pa[99]=kd,this.Pa[100]=kd,this.Pa[101]=kd,this.Pa[102]=kd,this.Pa[103]=kd,this.Pa[104]=od, -this.Pa[105]=pd,this.Pa[106]=qd,this.Pa[107]=rd,this.Pa[108]=sd,this.Pa[109]=td,this.Pa[110]=ud,this.Pa[111]=vd,this.Pa[192]=wd,this.Pa[193]=xd,this.Pa[200]=yd,this.Pa[201]=zd,this.Pa[241]=Ad,this.ok[7]=Bd,this.pk[7]=Bd,80286<=this.za&&(this.lk=2,this.Jg|=28672,this.Ig=0,this.Om=Cd,this.Pa[15]=Dd,this.Pa[99]=Ed,this.Pa[84]=Fd));this.Lg=[];this.nk=[];this.jd=this.dh=0;this.ea.dg=this.ea.gn=!1;this.Dk=0;this.ma=[];this.ab=this.Ra=this.Ba=this.vc=0;Gd(this)}La(kc,bd); -var dd={Mh:4,R:5,pa:6,Y:7,Z:8,M:9,N:11,O:12,Oe:4,ll:60,ml:83,Rb:3,rb:9,ic:16,Ih:1,ql:19,sl:28,ul:16,tl:21,rl:37,ol:2,mj:9,pl:5,nl:33,oj:10,nj:8,ug:3,tg:15,Il:51,Jl:1,Kl:2,Ll:4,Hl:32,pj:15,Nl:15,Sb:16,Tb:4,Pl:11,Ol:18,Ml:24,Ab:4,Ql:2,qj:16,Rl:17,vj:18,Sl:19,uj:5,wj:6,Xl:2,Wl:8,Ul:9,Vl:10,Tl:10,xj:10,yj:10,wl:80,yl:144,vl:86,xl:154,Al:101,Cl:165,zl:107,Bl:171,Zl:70,am:113,Yl:76,$l:124,El:80,Gl:128,Dl:86,Fl:134,wg:3,vg:16,Dj:10,Cj:8,bm:51,jc:8,cm:17,dm:36,rc:11,em:16,xg:10,fe:2,jj:18,kj:7,lj:15,rj:12, -sj:7,tj:11,zj:18,Aj:7,Bj:15,Ej:15,Fj:7,Gj:13,Kj:11,Lj:7,Mj:8,fm:8,im:12,gm:18,hm:17,jm:15,Ij:8,Hj:20,Jj:2,Pj:3,yg:9,Oj:5,Nj:11,Rj:4,Qj:17,km:11},cd={Mh:0,R:0,pa:0,Y:0,Z:0,M:0,N:1,O:1,Oe:3,ll:14,ml:16,Rb:2,rb:7,ic:7,Ih:0,ql:7,sl:13,ul:7,tl:11,rl:16,ol:3,mj:6,pl:2,nl:13,oj:5,nj:5,ug:2,tg:7,Il:23,Jl:0,Kl:1,Ll:3,Hl:17,pj:7,Nl:11,Sb:7,Tb:3,Pl:7,Ol:11,Ml:15,Ab:2,Ql:3,qj:7,Rl:8,vj:8,Sl:8,uj:4,wj:4,Xl:2,Wl:3,Ul:5,Vl:2,Tl:3,xj:5,yj:3,wl:14,yl:22,vl:17,xl:25,Al:17,Cl:25,zl:20,Bl:28,Zl:13,am:21,Yl:16,$l:24, -El:13,Gl:21,Dl:16,Fl:24,wg:2,vg:7,Dj:5,Cj:5,bm:19,jc:5,cm:5,dm:17,rc:3,em:5,xg:3,fe:0,jj:8,kj:5,lj:9,rj:5,sj:5,tj:4,zj:5,Aj:5,Bj:4,Ej:7,Fj:5,Gj:8,Kj:3,Lj:4,Mj:3,fm:11,im:11,gm:15,hm:15,jm:7,Ij:5,Hj:8,Jj:0,Pj:2,yg:6,Oj:3,Nj:6,Rj:3,Qj:5,km:5};k=bd.prototype;k.Wi=function(a,b,c,d){this.ma=a;this.Ra=b;this.Ba=c;this.vc=d};k.reset=function(){this.ea.Ib&&rc(this);Gd(this);mc(this);this.ea.gd=!1}; -function Gd(a){a.G=0;a.C=0;a.I=0;a.J=0;a.H=0;a.F=0;a.D=0;a.Db=a.Dg=-1;a.Xg=0;a.lc=65520;a.Sc=0;a.hf=1023;a.Cf=0;a.Hh=-1;a.na=new Fc(a,Gc,"CS");a.gb=new Fc(a,2,"DS");a.Oa=new Fc(a,2,"ES");a.sa=new Fc(a,3,"SS");y(a,0);Zc(a,0);a.Am=new Fc(a,0,"NULL");a.hb=a.gb;a.Nc=a.sa;a.Q=a.va=0;a.aa=a.Ga=q;a.lb=0;Yc(a,0,65535);a.te=a.na.te;a.fa=a.na.fa;a.bd=A;a.ad=Hd;a.se=Id;a.tb=C;a.Bc=Jd;a.Qc=Kd;a.Xc=a.na.Xc;a.ha=a.na.ha;2==a.Xc?(a.gg=a.la,a.Dm=a.Ka):(a.gg=a.Wk,a.Dm=a.Cm);a.va&=-12289;if(80286<=a.za){a.Rc=0;a.gf= -65535;a.le=new Fc(a,5,"LDT",!0);a.ib=new Fc(a,4,"TSS",!0);a.Jb=new Fc(a,6,"VER",!0);Yc(a,65520,61440);var b,c=v(a);b=a.na;var d=-65536;80386>b.U.za&&(d&=16777215);b=b.ua=d;a.ka=b+c;a.Gf=b+a.na.$b}Xc(a,0);Ld(a)}k.Vk=function(){var a=this.G+this.C+this.I+this.J+w(this)+this.H+this.F+this.D|0;return a=a+v(this)+this.na.ta+this.gb.ta+this.sa.ta+this.Oa.ta+ob(this)|0};function Md(a,b,c,d){void 0!==d&&(void 0===a.Lg[b]&&(a.Lg[b]=[]),a.Lg[b].push([c,d]))} -function Nd(a,b){var c=a.nk[b];null!=c&&(c(--a.dh),delete a.nk[b])}function Ld(a,b){void 0===b&&(b=!!(a.lc&1));b||a.cc("returning to real-mode");a.qk=b?Od:jd;Hc(a.na,b);Hc(a.gb,b);Hc(a.sa,b);Hc(a.Oa,b)} -k.save=function(){var a=new Pd(this);a.set(0,[this.G,this.C,this.I,this.J,w(this),this.H,this.F,this.D,this.Cf]);a.set(1,[v(this),this.na.save(),this.gb.save(),this.sa.save(),this.Oa.save(),null!=this.Rc?[this.lc,this.Rc,this.gf,this.Sc,this.hf,this.le.save(),this.ib.save(),this.Cf]:null,ob(this)]);a.set(2,[this.hb.Vh,this.Nc.Vh,this.Q,this.va,this.lb,this.aa,this.Ga]);a.set(3,[0,this.Qe,this.S.ce]);a.set(4,Hb(this.ja));return a.data()}; -k.restore=function(a){var b=a[0];this.G=b[0];this.C=b[1];this.I=b[2];this.J=b[3];var c=b[4];this.H=b[5];this.F=b[6];this.D=b[7];this.Cf=b[8]||0;b=a[1];this.na.restore(b[1]);this.gb.restore(b[2]);this.sa.restore(b[3]);this.Oa.restore(b[4]);var d=b[5];d&&d.length&&(this.lc=d[0],this.Rc=d[1],this.gf=d[2],this.Sc=d[3],this.hf=d[4],this.le.restore(d[5]),this.ib.restore(d[6]),this.Cf=d[7],Ld(this));Xc(this,b[6]);Yc(this,b[0],this.na.ta);y(this,c);Zc(this,this.sa.ta);b=a[2];this.hb=null!=b[0]&&Qd(this,b[0])|| -this.gb;this.Nc=null!=b[1]&&Qd(this,b[1])||this.sa;this.Q=b[2];this.va=b[3];this.lb=b[4];this.aa=b[5];this.Ga=b[6];b=a[3];this.Qe=b[1];uc(this,b[2]);a:{b=this.ja;a=a[4];for(c=0;c>((a^a>>4)&15)&1?0:wb}function Wd(a){return(a.W^a.da)&16?vb:0}function Xd(a){return a.P&a.T-1?0:ub}function Yd(a){return a.W&a.T>>1?tb:0} +40,c.gb.ta);var d=38,h=26;Xc(c,c.la(g+16)|(b?16384:0));c.G=c.la(g+18);c.I=c.la(g+20);c.J=c.la(g+22);c.C=c.la(g+24);c.H=c.la(g+28);c.F=c.la(g+30);c.D=c.la(g+32);c.Oa.load(c.la(g+34));c.gb.load(c.la(g+40));Yc(c,c.la(g+14),c.la(g+36));this.Wa>13;if(6144<=h){U=c&3;if(U>a.Wa){if(!1!==B&&!(ba==a.Wa||g&1024&&ba<=a.Wa)){r=q;break}H=e.Fa();Zc(e,e.Fa(),!0);y(e,H);a.th=!0}H=!1}else if(1024==h)H=!0,L=-1,I=c,Uh||2048==(h&2560))){d||Lc.call(e,13,c,!!g);r=q;break}}else if(3==a.id){if(!B||4096>h||2048==(h&2560)){d|| +Lc.call(e,13,c,!0);r=q;break}}else if(4==a.id){if(!B||256!=h&&768!=h){d||Lc.call(e,10,c,!0);r=q;break}}else if(6==a.id&&!(g&4096)&&768>13;80386>a.U.za||!(a.Ci&64)?(a.te=2,a.fa=65535):(a.te=4,a.fa=-1)}else a.load=Ic,a.el=Mc,a.Gc=Oc,a.ic=Pc,a.$b=65535,a.Wa=a.qc=0,a.Md=q,a.te=2,a.fa=65535;a.Yc=a.te;a.ha=a.fa} +function bd(a){this.za=a.model||8088;var b=0;switch(this.za){default:b=4772727;break;case 80286:b=6E6;break;case 80386:b=16E6}kc.call(this,a,b);this.mk=61442;this.Kg=Cc;this.Jg=4;this.Ef=255;this.B=80286<=this.za?cd:dd;this.Pa=ed;this.pk=fd;this.qk=id;this.rk=jd;80186<=this.za&&(this.Pa=ed.slice(),this.pk=fd.slice(),this.qk=id.slice(),this.Ef=31,this.Pa[15]=kd,this.Pa[96]=ld,this.Pa[97]=md,this.Pa[98]=nd,this.Pa[99]=kd,this.Pa[100]=kd,this.Pa[101]=kd,this.Pa[102]=kd,this.Pa[103]=kd,this.Pa[104]=od, +this.Pa[105]=pd,this.Pa[106]=qd,this.Pa[107]=rd,this.Pa[108]=sd,this.Pa[109]=td,this.Pa[110]=ud,this.Pa[111]=vd,this.Pa[192]=wd,this.Pa[193]=xd,this.Pa[200]=yd,this.Pa[201]=zd,this.Pa[241]=Ad,this.pk[7]=Bd,this.qk[7]=Bd,80286<=this.za&&(this.mk=2,this.Kg|=28672,this.Jg=0,this.Pm=Cd,this.Pa[15]=Dd,this.Pa[99]=Ed,this.Pa[84]=Fd));this.Mg=[];this.ok=[];this.kd=this.eh=0;this.ea.eg=this.ea.hn=!1;this.Ek=0;this.ma=[];this.ab=this.Ra=this.Ba=this.wc=0;Gd(this)}La(kc,bd); +var dd={Nh:4,R:5,pa:6,Y:7,Z:8,M:9,N:11,O:12,Oe:4,ml:60,nl:83,Rb:3,rb:9,jc:16,Jh:1,rl:19,tl:28,vl:16,ul:21,sl:37,pl:2,nj:9,ql:5,ol:33,pj:10,oj:8,vg:3,ug:15,Jl:51,Kl:1,Ll:2,Ml:4,Il:32,qj:15,Ol:15,Sb:16,Tb:4,Ql:11,Pl:18,Nl:24,Ab:4,Rl:2,rj:16,Sl:17,wj:18,Tl:19,vj:5,xj:6,Yl:2,Xl:8,Vl:9,Wl:10,Ul:10,yj:10,zj:10,xl:80,zl:144,wl:86,yl:154,Bl:101,Dl:165,Al:107,Cl:171,$l:70,bm:113,Zl:76,am:124,Fl:80,Hl:128,El:86,Gl:134,xg:3,wg:16,Ej:10,Dj:8,cm:51,kc:8,dm:17,em:36,sc:11,fm:16,yg:10,fe:2,kj:18,lj:7,mj:15,sj:12, +tj:7,uj:11,Aj:18,Bj:7,Cj:15,Fj:15,Gj:7,Hj:13,Lj:11,Mj:7,Nj:8,gm:8,jm:12,hm:18,im:17,km:15,Jj:8,Ij:20,Kj:2,Qj:3,zg:9,Pj:5,Oj:11,Sj:4,Rj:17,lm:11},cd={Nh:0,R:0,pa:0,Y:0,Z:0,M:0,N:1,O:1,Oe:3,ml:14,nl:16,Rb:2,rb:7,jc:7,Jh:0,rl:7,tl:13,vl:7,ul:11,sl:16,pl:3,nj:6,ql:2,ol:13,pj:5,oj:5,vg:2,ug:7,Jl:23,Kl:0,Ll:1,Ml:3,Il:17,qj:7,Ol:11,Sb:7,Tb:3,Ql:7,Pl:11,Nl:15,Ab:2,Rl:3,rj:7,Sl:8,wj:8,Tl:8,vj:4,xj:4,Yl:2,Xl:3,Vl:5,Wl:2,Ul:3,yj:5,zj:3,xl:14,zl:22,wl:17,yl:25,Bl:17,Dl:25,Al:20,Cl:28,$l:13,bm:21,Zl:16,am:24, +Fl:13,Hl:21,El:16,Gl:24,xg:2,wg:7,Ej:5,Dj:5,cm:19,kc:5,dm:5,em:17,sc:3,fm:5,yg:3,fe:0,kj:8,lj:5,mj:9,sj:5,tj:5,uj:4,Aj:5,Bj:5,Cj:4,Fj:7,Gj:5,Hj:8,Lj:3,Mj:4,Nj:3,gm:11,jm:11,hm:15,im:15,km:7,Jj:5,Ij:8,Kj:0,Qj:2,zg:6,Pj:3,Oj:6,Sj:3,Rj:5,lm:5};k=bd.prototype;k.Xi=function(a,b,c,d){this.ma=a;this.Ra=b;this.Ba=c;this.wc=d};k.reset=function(){this.ea.Ib&&rc(this);Gd(this);mc(this);this.ea.hd=!1}; +function Gd(a){a.G=0;a.C=0;a.I=0;a.J=0;a.H=0;a.F=0;a.D=0;a.Db=a.Eg=-1;a.Yg=0;a.mc=65520;a.Tc=0;a.hf=1023;a.Cf=0;a.Ih=-1;a.na=new Fc(a,Gc,"CS");a.gb=new Fc(a,2,"DS");a.Oa=new Fc(a,2,"ES");a.sa=new Fc(a,3,"SS");y(a,0);Zc(a,0);a.Bm=new Fc(a,0,"NULL");a.hb=a.gb;a.Oc=a.sa;a.Q=a.wa=0;a.aa=a.Ga=q;a.lb=0;Yc(a,0,65535);a.te=a.na.te;a.fa=a.na.fa;a.cd=A;a.bd=Hd;a.se=Id;a.tb=C;a.Cc=Jd;a.Rc=Kd;a.Yc=a.na.Yc;a.ha=a.na.ha;2==a.Yc?(a.hg=a.la,a.Em=a.Ka):(a.hg=a.Xk,a.Em=a.Dm);a.wa&=-12289;if(80286<=a.za){a.Sc=0;a.gf= +65535;a.le=new Fc(a,5,"LDT",!0);a.ib=new Fc(a,4,"TSS",!0);a.Jb=new Fc(a,6,"VER",!0);Yc(a,65520,61440);var b,c=v(a);b=a.na;var d=-65536;80386>b.U.za&&(d&=16777215);b=b.ua=d;a.ka=b+c;a.Gf=b+a.na.$b}Xc(a,0);Ld(a)}k.Wk=function(){var a=this.G+this.C+this.I+this.J+w(this)+this.H+this.F+this.D|0;return a=a+v(this)+this.na.ta+this.gb.ta+this.sa.ta+this.Oa.ta+ob(this)|0};function Md(a,b,c,d){void 0!==d&&(void 0===a.Mg[b]&&(a.Mg[b]=[]),a.Mg[b].push([c,d]))} +function Nd(a,b){var c=a.ok[b];null!=c&&(c(--a.eh),delete a.ok[b])}function Ld(a,b){void 0===b&&(b=!!(a.mc&1));b||a.cc("returning to real-mode");a.rk=b?Od:jd;Hc(a.na,b);Hc(a.gb,b);Hc(a.sa,b);Hc(a.Oa,b)} +k.save=function(){var a=new Pd(this);a.set(0,[this.G,this.C,this.I,this.J,w(this),this.H,this.F,this.D,this.Cf]);a.set(1,[v(this),this.na.save(),this.gb.save(),this.sa.save(),this.Oa.save(),null!=this.Sc?[this.mc,this.Sc,this.gf,this.Tc,this.hf,this.le.save(),this.ib.save(),this.Cf]:null,ob(this)]);a.set(2,[this.hb.Wh,this.Oc.Wh,this.Q,this.wa,this.lb,this.aa,this.Ga]);a.set(3,[0,this.Qe,this.S.ce]);a.set(4,Hb(this.ja));return a.data()}; +k.restore=function(a){var b=a[0];this.G=b[0];this.C=b[1];this.I=b[2];this.J=b[3];var c=b[4];this.H=b[5];this.F=b[6];this.D=b[7];this.Cf=b[8]||0;b=a[1];this.na.restore(b[1]);this.gb.restore(b[2]);this.sa.restore(b[3]);this.Oa.restore(b[4]);var d=b[5];d&&d.length&&(this.mc=d[0],this.Sc=d[1],this.gf=d[2],this.Tc=d[3],this.hf=d[4],this.le.restore(d[5]),this.ib.restore(d[6]),this.Cf=d[7],Ld(this));Xc(this,b[6]);Yc(this,b[0],this.na.ta);y(this,c);Zc(this,this.sa.ta);b=a[2];this.hb=null!=b[0]&&Qd(this,b[0])|| +this.gb;this.Oc=null!=b[1]&&Qd(this,b[1])||this.sa;this.Q=b[2];this.wa=b[3];this.lb=b[4];this.aa=b[5];this.Ga=b[6];b=a[3];this.Qe=b[1];uc(this,b[2]);a:{b=this.ja;a=a[4];for(c=0;c>((a^a>>4)&15)&1?0:wb}function Wd(a){return(a.W^a.da)&16?vb:0}function Xd(a){return a.P&a.T-1?0:ub}function Yd(a){return a.W&a.T>>1?tb:0} function Zd(a){return(a.W^a.da^a.W>>1)&a.T>>1?pb:0}function $d(a){a.P&=~a.T}function ae(a){a.da=a.W&16|a.da&-17}function be(a){a.P|=a.T-1}function ce(a){a.W&=~a.T;a.da=a.W&32896|a.da&-32897}function de(a){a.P|=a.T}function ee(a){a.da=~(a.W&16)&16|a.da&-17}function fe(a){a.P&=~(a.T-1)}function ge(a){Yd(a)||(a.W^=a.T>>1|a.T>>2,a.da^=32896)}function he(a){a.W|=a.T;a.da=a.W&32896|a.da&-32897}function ob(a){return a.Aa&~Dc|Ud(a)|Vd(a)|Wd(a)|Xd(a)|Yd(a)|Zd(a)} -function ie(a,b){b=b|a.lc&1|65520;a.lc=a.lc&-65536|b&65535;a.lc&1&&Ld(a,!0)}function Xc(a,b,c){a.T=256;a.P=a.W=a.da=0;b&xb&&de(a);b&wb||(a.W|=1);b&vb&&(a.da|=16);b&ub||be(a);b&tb&&ge(a);b&pb&&he(a);a.lc&1||(b&=-61441);void 0===c&&(c=a.na.Wa);c?b=b&-12289|a.Aa&12288:a.Cf=(b&12288)>>12;c>a.Cf&&(b=b&~rb|a.Aa&rb);a.Aa=a.Aa&~a.Jg|b&a.Jg|a.lk;a.Aa&sb&&(a.lb|=2,a.Q|=4)} -k.Eb=function(a,b,c){var d=!1;switch(b){case "AX":case "BX":case "CX":case "DX":case "SP":case "BP":case "SI":case "DI":case "CS":case "DS":case "SS":case "ES":case "IP":case "PC":case "PS":case "C":case "P":case "A":case "Z":case "S":case "T":case "I":case "D":case "V":this.oa[b]=c;this.Dk++;d=!0;break;default:d=this.parent.Eb.call(this,a,b,c)}return d};k.qc=function(a){return this.ma[(a&this.ab)>>>this.Ra].Cb(a&this.Ba)}; -k.la=function(a){var b=a&this.Ba;a=(a&this.ab)>>>this.Ra;this.A-=this.B.Mh;return b>>this.Ra;if(b>>c|this.ma[a+1&this.vc].od(0)<<32-c};k.Ue=function(a,b){this.ma[(a&this.ab)>>>this.Ra].Fb(a&this.Ba,b&255)}; -k.Ka=function(a,b){var c=a&this.Ba,d=(a&this.ab)>>>this.Ra;this.A-=this.B.Mh;c>8&255))};k.Cm=function(a,b){var c=a&this.Ba,d=(a&this.ab)>>>this.Ra;this.A-=this.B.Mh;if(c>>32-f)}}; -function je(a,b,c){a.Gg=b;a.aa=b.Fc(a.Bg=c,0);return a.Q&1?0:a.qc(a.aa)}function E(a,b){return je(a,a.hb,b&65535)}function F(a,b){return je(a,a.Nc,b&65535)}function ke(a,b,c){a.Gg=b;a.aa=b.Fc(a.Bg=c,1);return a.Q&1?0:a.gg(a.aa)}function G(a,b){return ke(a,a.hb,b&65535)}function J(a,b){return ke(a,a.Nc,b&65535)}function le(a,b,c){a.Gg=b;a.Ga=a.aa=b.Fc(a.Bg=c,0);return a.Q&1?0:a.qc(a.aa)}function K(a,b){return le(a,a.hb,b&65535)}function M(a,b){return le(a,a.Nc,b&65535)} -function me(a,b,c){a.Gg=b;a.Ga=a.aa=b.Fc(a.Bg=c,1);return a.Q&1?0:a.gg(a.aa)}function N(a,b){return me(a,a.hb,b&65535)}function O(a,b){return me(a,a.Nc,b&65535)}function P(a,b){a.Q&2||a.Ue(a.Gg.hc(a.Bg,0),b)}function Q(a,b){a.Q&2||a.Ka(a.Gg.hc(a.Bg,1),b)}function ad(a,b,c){return a.la(b.Fc(c,1))}k.X=function(){var a=this.qc(this.ka);++this.ka>this.Gf&&D(this,this.ka-this.na.ua);return a};k.L=function(){var a=this.qc(this.ka)<<24>>24;++this.ka>this.Gf&&D(this,this.ka-this.na.ua);return a&65535}; -function ne(a){var b=a.la(a.ka);a.ka+=2;a.ka>a.Gf&&D(a,a.ka-a.na.ua);return b}k.K=function(){var a=this.gg(this.ka);this.ka+=this.te;this.ka>this.Gf&&D(this,this.ka-this.na.ua);return a};k.Fa=function(){var a=this.gg(this.Kc);this.Kc+=2;this.Kc>this.rm&&y(this,this.Kc-this.sa.ua);return a};function z(a,b){a.Kc-=2;a.Kc>12;c>a.Cf&&(b=b&~rb|a.Aa&rb);a.Aa=a.Aa&~a.Kg|b&a.Kg|a.mk;a.Aa&sb&&(a.lb|=2,a.Q|=4)} +k.Eb=function(a,b,c){var d=!1;switch(b){case "AX":case "BX":case "CX":case "DX":case "SP":case "BP":case "SI":case "DI":case "CS":case "DS":case "SS":case "ES":case "IP":case "PC":case "PS":case "C":case "P":case "A":case "Z":case "S":case "T":case "I":case "D":case "V":this.oa[b]=c;this.Ek++;d=!0;break;default:d=this.parent.Eb.call(this,a,b,c)}return d};k.rc=function(a){return this.ma[(a&this.ab)>>>this.Ra].Cb(a&this.Ba)}; +k.la=function(a){var b=a&this.Ba;a=(a&this.ab)>>>this.Ra;this.A-=this.B.Nh;return b>>this.Ra;if(b>>c|this.ma[a+1&this.wc].pd(0)<<32-c};k.Ue=function(a,b){this.ma[(a&this.ab)>>>this.Ra].Fb(a&this.Ba,b&255)}; +k.Ka=function(a,b){var c=a&this.Ba,d=(a&this.ab)>>>this.Ra;this.A-=this.B.Nh;c>8&255))};k.Dm=function(a,b){var c=a&this.Ba,d=(a&this.ab)>>>this.Ra;this.A-=this.B.Nh;if(c>>32-f)}}; +function je(a,b,c){a.Hg=b;a.aa=b.Gc(a.Cg=c,0);return a.Q&1?0:a.rc(a.aa)}function E(a,b){return je(a,a.hb,b&65535)}function F(a,b){return je(a,a.Oc,b&65535)}function ke(a,b,c){a.Hg=b;a.aa=b.Gc(a.Cg=c,1);return a.Q&1?0:a.hg(a.aa)}function G(a,b){return ke(a,a.hb,b&65535)}function J(a,b){return ke(a,a.Oc,b&65535)}function le(a,b,c){a.Hg=b;a.Ga=a.aa=b.Gc(a.Cg=c,0);return a.Q&1?0:a.rc(a.aa)}function K(a,b){return le(a,a.hb,b&65535)}function M(a,b){return le(a,a.Oc,b&65535)} +function me(a,b,c){a.Hg=b;a.Ga=a.aa=b.Gc(a.Cg=c,1);return a.Q&1?0:a.hg(a.aa)}function N(a,b){return me(a,a.hb,b&65535)}function O(a,b){return me(a,a.Oc,b&65535)}function P(a,b){a.Q&2||a.Ue(a.Hg.ic(a.Cg,0),b)}function Q(a,b){a.Q&2||a.Ka(a.Hg.ic(a.Cg,1),b)}function ad(a,b,c){return a.la(b.Gc(c,1))}k.X=function(){var a=this.rc(this.ka);++this.ka>this.Gf&&D(this,this.ka-this.na.ua);return a};k.L=function(){var a=this.rc(this.ka)<<24>>24;++this.ka>this.Gf&&D(this,this.ka-this.na.ua);return a&65535}; +function ne(a){var b=a.la(a.ka);a.ka+=2;a.ka>a.Gf&&D(a,a.ka-a.na.ua);return b}k.K=function(){var a=this.hg(this.ka);this.ka+=this.te;this.ka>this.Gf&&D(this,this.ka-this.na.ua);return a};k.Fa=function(){var a=this.hg(this.Lc);this.Lc+=2;this.Lc>this.sm&&y(this,this.Lc-this.sa.ua);return a};function z(a,b){a.Lc-=2;a.Lcthis.Ga?0>this.aa?this.B.Rb:this.B.rb:this.B.ic;return this.P&255}function ue(a,b){this.da=a^b;this.P=this.W=a+b+(this.P&this.T?1:0);this.T=65536;this.A-=0>this.Ga?0>this.aa?this.B.Rb:this.B.rb:this.B.ic;return this.P&65535}function ve(a,b){this.da=a^b;this.T=256;this.A-=0>this.Ga?0>this.aa?this.B.Rb:this.B.rb:this.B.ic;return(this.P=this.W=a+b)&255} -function we(a,b){this.da=a^b;this.T=65536;this.A-=0>this.Ga?0>this.aa?this.B.Rb:this.B.rb:this.B.ic;return(this.P=this.W=a+b)&65535}function xe(a,b){this.T=256;this.A-=0>this.Ga?0>this.aa?this.B.Rb:this.B.rb:this.B.ic;return(this.P=this.W=this.da=a&b)&255}function ye(a,b){this.T=65536;this.A-=0>this.Ga?0>this.aa?this.B.Rb:this.B.rb:this.B.ic;return(this.P=this.W=this.da=a&b)&65535}function ze(a,b){this.A-=10+(0>this.aa?0:1);if((a&3)<(b&3))return a=a&-4|b&3,fe(this),a;be(this);return a} -function Ae(a){if(0>this.aa)return kd.call(this),a;var b=a<<16>>16,c=this.la(this.aa)<<16>>16,d=this.la(this.aa+2)<<16>>16;this.A-=this.B.nl;if(bd)D(this,this.Bb-this.na.ua),pe.call(this,5,null,0);this.Q|=2;return a}function Be(a,b){var c=this.na.ta,d=v(this);null!=Yc(this,a,b,!0)&&(z(this,c),z(this,d))}function Ce(a,b){this.da=a^b;this.T=256;this.P=this.W=a-b;this.A-=0>this.Ga?0>this.aa?this.B.Rb:this.B.mj:this.B.rb;this.Q|=2;return a} -function De(a,b){this.da=a^b;this.T=65536;this.P=this.W=a-b;this.A-=0>this.Ga?0>this.aa?this.B.Rb:this.B.mj:this.B.rb;this.Q|=2;return a}function Ee(a){return a}function Fe(a,b){var c=(b<<16>>16)*(this.X()<<24>>24);this.P=this.da=this.W=c;this.T=256;32767c?(de(this),he(this)):($d(this),ce(this));this.A-=0>this.aa?21:24;return c&65535} -function Ge(a,b){var c=(b<<16>>16)*(this.K()<<16>>16);this.P=this.da=this.W=c;this.T=65536;32767c?(de(this),he(this)):($d(this),ce(this));this.A-=0>this.aa?21:24;return c&65535}function pe(a,b,c){this.A-=this.B.Il+c;this.na.Ei=!0;c=ob(this);var d=this.na.ta,e=v(this);a=this.na.dl(a);a!=q&&(this.ka=a,z(this,c),z(this,d),z(this,e),null!=b&&z(this,b),this.Hh=-1)} -function He(a,b){this.A-=14+(0>this.aa?0:2);if(this.Jb.load(b,!0)!=q&&this.Jb.pc>=this.na.Wa&&this.Jb.pc>=(b&3))return fe(this),this.Jb.jb&65280;be(this);return a}function Ie(a,b){if(0>this.aa)return R.call(this),a;Sd(this,this.la(this.aa+2));this.A-=this.B.qj;return b}function Je(a){if(0>this.aa)return R.call(this),a;this.A-=this.B.Ql;return this.aa}function Ke(a,b){if(0>this.aa)return R.call(this),a;Td(this,this.la(this.aa+2));this.A-=this.B.qj;return b} -function Le(a,b){this.A-=14+(0>this.aa?0:2);if(b&65528&&this.Jb.load(b,!0)!=q&&(7168==(this.Jb.jb&7168)||this.Jb.pc>=this.na.Wa)&&this.Jb.pc>=(b&3))return fe(this),this.Jb.$b;be(this);return a}function Me(a,b){this.A-=0>this.Ga?0>this.aa?this.B.Xl:this.B.Wl:this.B.Ul;return b}function Ne(){return Me.call(this,0,this.Db)}function Oe(a,b){this.T=256;this.A-=0>this.Ga?0>this.aa?this.B.Rb:this.B.rb:this.B.ic;return(this.P=this.W=this.da=a|b)&255} -function Pe(a,b){this.T=65536;this.A-=0>this.Ga?0>this.aa?this.B.Rb:this.B.rb:this.B.ic;return(this.P=this.W=this.da=a|b)&65535}function Qe(a){var b=this.Fa(),c=this.Fa();(a<<=this.Xc>>2)&&y(this,w(this)+a);Yc(this,b,c,!1)&&(a&&y(this,w(this)+a),this.gb.ta&65528&&this.gb.pcthis.Ga?0>this.aa?this.B.Rb:this.B.rb:this.B.ic;return this.P&255}function Se(a,b){this.da=a^b;this.P=this.W=a-b-(this.P&this.T?1:0);this.T=65536;this.A-=0>this.Ga?0>this.aa?this.B.Rb:this.B.rb:this.B.ic;return this.P&65535}function Te(a,b){this.da=a^b;this.T=256;this.A-=0>this.Ga?0>this.aa?this.B.Rb:this.B.rb:this.B.ic;return(this.P=this.W=a-b)&255} -function Ue(a,b){this.da=a^b;this.T=65536;this.A-=0>this.Ga?0>this.aa?this.B.Rb:this.B.rb:this.B.ic;return(this.P=this.W=a-b)&65535}function Ve(a,b){this.P=this.W=this.da=a&b;this.T=256;this.A-=0>this.Ga?0>this.aa?this.B.Pj:this.B.yg:this.B.yg;this.Q|=2;return a}function We(a,b){this.P=this.W=this.da=a&b;this.T=65536;this.A-=0>this.Ga?0>this.aa?this.B.Pj:this.B.yg:this.B.yg;this.Q|=2;return a} -function Xe(a,b){if(0>this.aa){switch(this.Xg&7){case 0:this.G=this.G&-256|a;break;case 1:this.I=this.I&-256|a;break;case 2:this.J=this.J&-256|a;break;case 3:this.C=this.C&-256|a;break;case 4:this.G=this.G&255|a<<8;break;case 5:this.I=this.I&255|a<<8;break;case 6:this.J=this.J&255|a<<8;break;case 7:this.C=this.C&255|a<<8}this.A-=this.B.Rj}else this.Ga=this.aa,P(this,a),this.A-=this.B.Qj;return b} -function Ye(a,b){if(0>this.aa){switch(this.Xg&7){case 0:this.G=a;break;case 1:this.I=a;break;case 2:this.J=a;break;case 3:this.C=a;break;case 4:y(this,a);break;case 5:this.H=a;break;case 6:this.F=a;break;case 7:this.D=a}this.A-=this.B.Rj}else this.Ga=this.aa,Q(this,a),this.A-=this.B.Qj;return b}function Ze(a,b){this.T=256;this.A-=0>this.Ga?0>this.aa?this.B.Rb:this.B.rb:this.B.ic;return(this.P=this.W=this.da=a^b)&255} -function $e(a,b){this.T=65536;this.A-=0>this.Ga?0>this.aa?this.B.Rb:this.B.rb:this.B.ic;return(this.P=this.W=this.da=a^b)&65535}function af(a,b){this.P=this.P&this.T-1|(a&b?this.T:0);(a^a>>1)&b>>1?he(this):ce(this)}function bf(){this.A-=0>this.aa?2:this.B.jm;return 1}function cf(){var a=this.I&this.Ef;this.A-=(0>this.aa?this.B.Ij:this.B.Hj)+(a<this.aa?this.B.Ij:this.B.Hj)+(a<this.Ga?0>this.aa?this.B.Rb:this.B.rb:this.B.jc;return this.P&255}function ue(a,b){this.da=a^b;this.P=this.W=a+b+(this.P&this.T?1:0);this.T=65536;this.A-=0>this.Ga?0>this.aa?this.B.Rb:this.B.rb:this.B.jc;return this.P&65535}function ve(a,b){this.da=a^b;this.T=256;this.A-=0>this.Ga?0>this.aa?this.B.Rb:this.B.rb:this.B.jc;return(this.P=this.W=a+b)&255} +function we(a,b){this.da=a^b;this.T=65536;this.A-=0>this.Ga?0>this.aa?this.B.Rb:this.B.rb:this.B.jc;return(this.P=this.W=a+b)&65535}function xe(a,b){this.T=256;this.A-=0>this.Ga?0>this.aa?this.B.Rb:this.B.rb:this.B.jc;return(this.P=this.W=this.da=a&b)&255}function ye(a,b){this.T=65536;this.A-=0>this.Ga?0>this.aa?this.B.Rb:this.B.rb:this.B.jc;return(this.P=this.W=this.da=a&b)&65535}function ze(a,b){this.A-=10+(0>this.aa?0:1);if((a&3)<(b&3))return a=a&-4|b&3,fe(this),a;be(this);return a} +function Ae(a){if(0>this.aa)return kd.call(this),a;var b=a<<16>>16,c=this.la(this.aa)<<16>>16,d=this.la(this.aa+2)<<16>>16;this.A-=this.B.ol;if(bd)D(this,this.Bb-this.na.ua),pe.call(this,5,null,0);this.Q|=2;return a}function Be(a,b){var c=this.na.ta,d=v(this);null!=Yc(this,a,b,!0)&&(z(this,c),z(this,d))}function Ce(a,b){this.da=a^b;this.T=256;this.P=this.W=a-b;this.A-=0>this.Ga?0>this.aa?this.B.Rb:this.B.nj:this.B.rb;this.Q|=2;return a} +function De(a,b){this.da=a^b;this.T=65536;this.P=this.W=a-b;this.A-=0>this.Ga?0>this.aa?this.B.Rb:this.B.nj:this.B.rb;this.Q|=2;return a}function Ee(a){return a}function Fe(a,b){var c=(b<<16>>16)*(this.X()<<24>>24);this.P=this.da=this.W=c;this.T=256;32767c?(de(this),he(this)):($d(this),ce(this));this.A-=0>this.aa?21:24;return c&65535} +function Ge(a,b){var c=(b<<16>>16)*(this.K()<<16>>16);this.P=this.da=this.W=c;this.T=65536;32767c?(de(this),he(this)):($d(this),ce(this));this.A-=0>this.aa?21:24;return c&65535}function pe(a,b,c){this.A-=this.B.Jl+c;this.na.Fi=!0;c=ob(this);var d=this.na.ta,e=v(this);a=this.na.el(a);a!=q&&(this.ka=a,z(this,c),z(this,d),z(this,e),null!=b&&z(this,b),this.Ih=-1)} +function He(a,b){this.A-=14+(0>this.aa?0:2);if(this.Jb.load(b,!0)!=q&&this.Jb.qc>=this.na.Wa&&this.Jb.qc>=(b&3))return fe(this),this.Jb.jb&65280;be(this);return a}function Ie(a,b){if(0>this.aa)return R.call(this),a;Sd(this,this.la(this.aa+2));this.A-=this.B.rj;return b}function Je(a){if(0>this.aa)return R.call(this),a;this.A-=this.B.Rl;return this.aa}function Ke(a,b){if(0>this.aa)return R.call(this),a;Td(this,this.la(this.aa+2));this.A-=this.B.rj;return b} +function Le(a,b){this.A-=14+(0>this.aa?0:2);if(b&65528&&this.Jb.load(b,!0)!=q&&(7168==(this.Jb.jb&7168)||this.Jb.qc>=this.na.Wa)&&this.Jb.qc>=(b&3))return fe(this),this.Jb.$b;be(this);return a}function Me(a,b){this.A-=0>this.Ga?0>this.aa?this.B.Yl:this.B.Xl:this.B.Vl;return b}function Ne(){return Me.call(this,0,this.Db)}function Oe(a,b){this.T=256;this.A-=0>this.Ga?0>this.aa?this.B.Rb:this.B.rb:this.B.jc;return(this.P=this.W=this.da=a|b)&255} +function Pe(a,b){this.T=65536;this.A-=0>this.Ga?0>this.aa?this.B.Rb:this.B.rb:this.B.jc;return(this.P=this.W=this.da=a|b)&65535}function Qe(a){var b=this.Fa(),c=this.Fa();(a<<=this.Yc>>2)&&y(this,w(this)+a);Yc(this,b,c,!1)&&(a&&y(this,w(this)+a),this.gb.ta&65528&&this.gb.qcthis.Ga?0>this.aa?this.B.Rb:this.B.rb:this.B.jc;return this.P&255}function Se(a,b){this.da=a^b;this.P=this.W=a-b-(this.P&this.T?1:0);this.T=65536;this.A-=0>this.Ga?0>this.aa?this.B.Rb:this.B.rb:this.B.jc;return this.P&65535}function Te(a,b){this.da=a^b;this.T=256;this.A-=0>this.Ga?0>this.aa?this.B.Rb:this.B.rb:this.B.jc;return(this.P=this.W=a-b)&255} +function Ue(a,b){this.da=a^b;this.T=65536;this.A-=0>this.Ga?0>this.aa?this.B.Rb:this.B.rb:this.B.jc;return(this.P=this.W=a-b)&65535}function Ve(a,b){this.P=this.W=this.da=a&b;this.T=256;this.A-=0>this.Ga?0>this.aa?this.B.Qj:this.B.zg:this.B.zg;this.Q|=2;return a}function We(a,b){this.P=this.W=this.da=a&b;this.T=65536;this.A-=0>this.Ga?0>this.aa?this.B.Qj:this.B.zg:this.B.zg;this.Q|=2;return a} +function Xe(a,b){if(0>this.aa){switch(this.Yg&7){case 0:this.G=this.G&-256|a;break;case 1:this.I=this.I&-256|a;break;case 2:this.J=this.J&-256|a;break;case 3:this.C=this.C&-256|a;break;case 4:this.G=this.G&255|a<<8;break;case 5:this.I=this.I&255|a<<8;break;case 6:this.J=this.J&255|a<<8;break;case 7:this.C=this.C&255|a<<8}this.A-=this.B.Sj}else this.Ga=this.aa,P(this,a),this.A-=this.B.Rj;return b} +function Ye(a,b){if(0>this.aa){switch(this.Yg&7){case 0:this.G=a;break;case 1:this.I=a;break;case 2:this.J=a;break;case 3:this.C=a;break;case 4:y(this,a);break;case 5:this.H=a;break;case 6:this.F=a;break;case 7:this.D=a}this.A-=this.B.Sj}else this.Ga=this.aa,Q(this,a),this.A-=this.B.Rj;return b}function Ze(a,b){this.T=256;this.A-=0>this.Ga?0>this.aa?this.B.Rb:this.B.rb:this.B.jc;return(this.P=this.W=this.da=a^b)&255} +function $e(a,b){this.T=65536;this.A-=0>this.Ga?0>this.aa?this.B.Rb:this.B.rb:this.B.jc;return(this.P=this.W=this.da=a^b)&65535}function af(a,b){this.P=this.P&this.T-1|(a&b?this.T:0);(a^a>>1)&b>>1?he(this):ce(this)}function bf(){this.A-=0>this.aa?2:this.B.km;return 1}function cf(){var a=this.I&this.Ef;this.A-=(0>this.aa?this.B.Jj:this.B.Ij)+(a<this.aa?this.B.Jj:this.B.Ij)+(a<this.Hh)D(this,this.Bb-this.na.ua),d=!0;else if(8!=this.Hh)b=0,a=8,d=!0;else{hf.call(this,-1,0,c);Gd(this);return}hf.call(this,a,b,c)&&(d=!1);d&&pe.call(this,this.Hh=a,b,0);this.Q&=-4}else this.cc("Fault "+ea(a)+" blocked by Debugger",536870912),D(this,this.Bb-this.na.ua)} -function hf(a,b,c){var d=32,e=yb(this.ja,this.ka);204==e&&(c=!1,d|=1);983040<=this.ka&&1048575>=this.ka&&(c=!1);c&&(a=(c?"\n":"")+"Fault "+ea(a)+(null!=b?" ("+da(b,4)+")":"")+" on opcode 0x"+ea(e)+" at "+this.Xa.Wq(v(this),this.na.ta)+" (%"+da(this.ka,6)+")",b=this.ea.Ib,this.cc(a,d)?c&&(c=b,rc(this.Xa)):(this.wa(a),rc(this)));return c}function Dd(){this.Om[this.X()].call(this)}function Fd(){z(this,w(this)&this.ha);this.A-=this.B.rc} -function ld(){var a=w(this)&this.ha;z(this,this.G&this.ha);z(this,this.I&this.ha);z(this,this.J&this.ha);z(this,this.C&this.ha);z(this,a);z(this,this.H&this.ha);z(this,this.F&this.ha);z(this,this.D&this.ha);this.A-=this.B.dm} -function md(){this.D=this.D&~this.ha|this.Fa();this.F=this.F&~this.ha|this.Fa();this.H=this.H&~this.ha|this.Fa();y(this,w(this)+this.Xc);this.C=this.C&~this.ha|this.Fa();this.J=this.J&~this.ha|this.Fa();this.I=this.I&~this.ha|this.Fa();this.G=this.G&~this.ha|this.Fa();this.A-=this.B.bm}function nd(){this.tb[this.X()].call(this,Ae)}function Ed(){this.Bc[this.X()].call(this,ze)}function od(){z(this,this.K());this.A-=this.B.rc}function pd(){this.tb[this.X()].call(this,Ge)} -function qd(){z(this,this.X());this.A-=this.B.rc}function rd(){this.tb[this.X()].call(this,Fe)}function sd(){var a=1,b=0,c=5;this.va&192&&(a=this.I,b=1,this.va&256&&(c=4));if(a--){var d=Jb(this.ja,this.J,this.ka-b-1);this.Ue(this.Oa.hc(this.D&this.fa,0),d);this.D=this.D&~this.fa|this.D+(this.Aa&qb?-1:1)&this.fa;this.A-=c;this.I-=b;a&&(this.ka=this.Bb,this.Q|=256)}} -function td(){var a=1,b=0,c=5;this.va&192&&(a=this.I,b=1,this.va&256&&(c=4));if(a--){var d=this.ka-b-1,e=Jb(this.ja,this.J,d),d=e|=Jb(this.ja,this.J,d)<<8;this.Ka(this.Oa.hc(this.D&this.fa,1),d);this.D=this.D&~this.fa|this.D+(this.Aa&qb?-2:2)&this.fa;this.A-=c;this.I-=b;a&&(this.ka=this.Bb,this.Q|=256)}} -function ud(){var a=1,b=0,c=5;this.va&192&&(a=this.I,b=1,this.va&256&&(c=4));if(a--){var d=this.qc(this.gb.Fc(this.F&this.fa,0));this.F=this.F&~this.fa|this.F+(this.Aa&qb?-1:1)&this.fa;this.A-=c;this.I-=b;Lb(this.ja,this.J,d,this.ka-b-1);a&&(this.ka=this.Bb,this.Q|=256)}} -function vd(){var a=1,b=0,c=5;this.va&192&&(a=this.I,b=1,this.va&256&&(c=4));if(a--){var d=ad(this,this.gb,this.F&this.fa);this.F=this.F&~this.fa|this.F+(this.Aa&qb?-2:2)&this.fa;this.A-=c;this.I-=b;b=this.ka-b-1;Lb(this.ja,this.J,d&255,b);Lb(this.ja,this.J,d>>8,b);a&&(this.ka=this.Bb,this.Q|=256)}}function jf(){var a=this.L();Zd(this)?(D(this,v(this)+a),this.A-=this.B.Sb):this.A-=this.B.Tb}function kf(){var a=this.L();Zd(this)?this.A-=this.B.Tb:(D(this,v(this)+a),this.A-=this.B.Sb)} +function Lc(a,b,c){if(this.ea.eg){var d=!1;if(80186<=this.za)if(0>this.Ih)D(this,this.Bb-this.na.ua),d=!0;else if(8!=this.Ih)b=0,a=8,d=!0;else{hf.call(this,-1,0,c);Gd(this);return}hf.call(this,a,b,c)&&(d=!1);d&&pe.call(this,this.Ih=a,b,0);this.Q&=-4}else this.cc("Fault "+ea(a)+" blocked by Debugger",536870912),D(this,this.Bb-this.na.ua)} +function hf(a,b,c){var d=32,e=yb(this.ja,this.ka);204==e&&(c=!1,d|=1);983040<=this.ka&&1048575>=this.ka&&(c=!1);c&&(a=(c?"\n":"")+"Fault "+ea(a)+(null!=b?" ("+da(b,4)+")":"")+" on opcode 0x"+ea(e)+" at "+this.Xa.Xq(v(this),this.na.ta)+" (%"+da(this.ka,6)+")",b=this.ea.Ib,this.cc(a,d)?c&&(c=b,rc(this.Xa)):(this.va(a),rc(this)));return c}function Dd(){this.Pm[this.X()].call(this)}function Fd(){z(this,w(this)&this.ha);this.A-=this.B.sc} +function ld(){var a=w(this)&this.ha;z(this,this.G&this.ha);z(this,this.I&this.ha);z(this,this.J&this.ha);z(this,this.C&this.ha);z(this,a);z(this,this.H&this.ha);z(this,this.F&this.ha);z(this,this.D&this.ha);this.A-=this.B.em} +function md(){this.D=this.D&~this.ha|this.Fa();this.F=this.F&~this.ha|this.Fa();this.H=this.H&~this.ha|this.Fa();y(this,w(this)+this.Yc);this.C=this.C&~this.ha|this.Fa();this.J=this.J&~this.ha|this.Fa();this.I=this.I&~this.ha|this.Fa();this.G=this.G&~this.ha|this.Fa();this.A-=this.B.cm}function nd(){this.tb[this.X()].call(this,Ae)}function Ed(){this.Cc[this.X()].call(this,ze)}function od(){z(this,this.K());this.A-=this.B.sc}function pd(){this.tb[this.X()].call(this,Ge)} +function qd(){z(this,this.X());this.A-=this.B.sc}function rd(){this.tb[this.X()].call(this,Fe)}function sd(){var a=1,b=0,c=5;this.wa&192&&(a=this.I,b=1,this.wa&256&&(c=4));if(a--){var d=Jb(this.ja,this.J,this.ka-b-1);this.Ue(this.Oa.ic(this.D&this.fa,0),d);this.D=this.D&~this.fa|this.D+(this.Aa&qb?-1:1)&this.fa;this.A-=c;this.I-=b;a&&(this.ka=this.Bb,this.Q|=256)}} +function td(){var a=1,b=0,c=5;this.wa&192&&(a=this.I,b=1,this.wa&256&&(c=4));if(a--){var d=this.ka-b-1,e=Jb(this.ja,this.J,d),d=e|=Jb(this.ja,this.J,d)<<8;this.Ka(this.Oa.ic(this.D&this.fa,1),d);this.D=this.D&~this.fa|this.D+(this.Aa&qb?-2:2)&this.fa;this.A-=c;this.I-=b;a&&(this.ka=this.Bb,this.Q|=256)}} +function ud(){var a=1,b=0,c=5;this.wa&192&&(a=this.I,b=1,this.wa&256&&(c=4));if(a--){var d=this.rc(this.gb.Gc(this.F&this.fa,0));this.F=this.F&~this.fa|this.F+(this.Aa&qb?-1:1)&this.fa;this.A-=c;this.I-=b;Lb(this.ja,this.J,d,this.ka-b-1);a&&(this.ka=this.Bb,this.Q|=256)}} +function vd(){var a=1,b=0,c=5;this.wa&192&&(a=this.I,b=1,this.wa&256&&(c=4));if(a--){var d=ad(this,this.gb,this.F&this.fa);this.F=this.F&~this.fa|this.F+(this.Aa&qb?-2:2)&this.fa;this.A-=c;this.I-=b;b=this.ka-b-1;Lb(this.ja,this.J,d&255,b);Lb(this.ja,this.J,d>>8,b);a&&(this.ka=this.Bb,this.Q|=256)}}function jf(){var a=this.L();Zd(this)?(D(this,v(this)+a),this.A-=this.B.Sb):this.A-=this.B.Tb}function kf(){var a=this.L();Zd(this)?this.A-=this.B.Tb:(D(this,v(this)+a),this.A-=this.B.Sb)} function lf(){var a=this.L();Ud(this)?(D(this,v(this)+a),this.A-=this.B.Sb):this.A-=this.B.Tb}function mf(){var a=this.L();Ud(this)?this.A-=this.B.Tb:(D(this,v(this)+a),this.A-=this.B.Sb)}function nf(){var a=this.L();Xd(this)?(D(this,v(this)+a),this.A-=this.B.Sb):this.A-=this.B.Tb}function of(){var a=this.L();Xd(this)?this.A-=this.B.Tb:(D(this,v(this)+a),this.A-=this.B.Sb)}function pf(){var a=this.L();Ud(this)||Xd(this)?(D(this,v(this)+a),this.A-=this.B.Sb):this.A-=this.B.Tb} function qf(){var a=this.L();Ud(this)||Xd(this)?this.A-=this.B.Tb:(D(this,v(this)+a),this.A-=this.B.Sb)}function rf(){var a=this.L();Yd(this)?(D(this,v(this)+a),this.A-=this.B.Sb):this.A-=this.B.Tb}function sf(){var a=this.L();Yd(this)?this.A-=this.B.Tb:(D(this,v(this)+a),this.A-=this.B.Sb)}function tf(){var a=this.L();Vd(this)?(D(this,v(this)+a),this.A-=this.B.Sb):this.A-=this.B.Tb}function uf(){var a=this.L();Vd(this)?this.A-=this.B.Tb:(D(this,v(this)+a),this.A-=this.B.Sb)} function vf(){var a=this.L();!Yd(this)!=!Zd(this)?(D(this,v(this)+a),this.A-=this.B.Sb):this.A-=this.B.Tb}function wf(){var a=this.L();!Yd(this)==!Zd(this)?(D(this,v(this)+a),this.A-=this.B.Sb):this.A-=this.B.Tb}function xf(){var a=this.L();Xd(this)||!Yd(this)!=!Zd(this)?(D(this,v(this)+a),this.A-=this.B.Sb):this.A-=this.B.Tb}function yf(){var a=this.L();Xd(this)||!Yd(this)!=!Zd(this)?this.A-=this.B.Tb:(D(this,v(this)+a),this.A-=this.B.Sb)} -function zf(){this.se[this.X()].call(this,Af,this.X);this.A-=0>this.Ga?1:this.B.Ih}function wd(){this.se[this.X()].call(this,Bf,df)}function xd(){this.Qc[this.X()].call(this,Cf,df)}function Df(){var a=this.K()<<(this.Xc>>2);D(this,this.Fa());a&&y(this,w(this)+a);this.A-=this.B.im}function Ef(){D(this,this.Fa());this.A-=this.B.fm} -function yd(){var a=this.K(),b=this.X()&31;this.A-=11;z(this,this.H);var c=w(this)&this.sa.fa;if(0>8,c,d=Wd(this);9<(a&15)||d?(a=a+6&15,b=b+1&255,c=d=!0):c=d=!1;this.G=this.G&-65536|b<<8|(this.P=a);this.T=65536;c&&(this.P|=this.T);d?ee(this):ae(this);this.A-=this.B.Oe},function(){this.ad[this.X()].call(this, -Ce)},function(){this.Bc[this.X()].call(this,De)},function(){this.bd[this.X()].call(this,Ce)},function(){this.tb[this.X()].call(this,De)},function(){Ce.call(this,this.G&255,this.X());this.A--},function(){De.call(this,this.G&this.ha,this.K());this.A--},function(){this.Q|=20;this.hb=this.Nc=this.gb;this.A-=this.B.fe},function(){var a=this.G&255,b=this.G>>8,c,d=Wd(this);9<(a&15)||d?(a=a-6&15,b=b-1&255,c=d=!0):c=d=!1;this.G=this.G&-65536|b<<8|(this.P=a);this.T=65536;c&&(this.P|=this.T);d?ee(this):ae(this); +function zf(){this.se[this.X()].call(this,Af,this.X);this.A-=0>this.Ga?1:this.B.Jh}function wd(){this.se[this.X()].call(this,Bf,df)}function xd(){this.Rc[this.X()].call(this,Cf,df)}function Df(){var a=this.K()<<(this.Yc>>2);D(this,this.Fa());a&&y(this,w(this)+a);this.A-=this.B.jm}function Ef(){D(this,this.Fa());this.A-=this.B.gm} +function yd(){var a=this.K(),b=this.X()&31;this.A-=11;z(this,this.H);var c=w(this)&this.sa.fa;if(0>8,c,d=Wd(this);9<(a&15)||d?(a=a+6&15,b=b+1&255,c=d=!0):c=d=!1;this.G=this.G&-65536|b<<8|(this.P=a);this.T=65536;c&&(this.P|=this.T);d?ee(this):ae(this);this.A-=this.B.Oe},function(){this.bd[this.X()].call(this, +Ce)},function(){this.Cc[this.X()].call(this,De)},function(){this.cd[this.X()].call(this,Ce)},function(){this.tb[this.X()].call(this,De)},function(){Ce.call(this,this.G&255,this.X());this.A--},function(){De.call(this,this.G&this.ha,this.K());this.A--},function(){this.Q|=20;this.hb=this.Oc=this.gb;this.A-=this.B.fe},function(){var a=this.G&255,b=this.G>>8,c,d=Wd(this);9<(a&15)||d?(a=a-6&15,b=b-1&255,c=d=!0):c=d=!1;this.G=this.G&-65536|b<<8|(this.P=a);this.T=65536;c&&(this.P|=this.T);d?ee(this):ae(this); this.A-=this.B.Oe},function(){this.W=(this.da=this.G)+1;this.G=this.W&65535;this.P=this.G|(this.P&this.T?1:0)<<16;this.T=65536;this.A-=2},function(){this.W=(this.da=this.I)+1;this.I=this.W&65535;this.P=this.I|(this.P&this.T?1:0)<<16;this.T=65536;this.A-=2},function(){this.W=(this.da=this.J)+1;this.J=this.W&65535;this.P=this.J|(this.P&this.T?1:0)<<16;this.T=65536;this.A-=2},function(){this.W=(this.da=this.C)+1;this.C=this.W&65535;this.P=this.C|(this.P&this.T?1:0)<<16;this.T=65536;this.A-=2},function(){var a; this.W=(this.da=w(this))+1;y(this,a=this.da&~this.ha|this.W&this.ha);this.P=(a&this.ha)>>>16|a&65535|(this.P&this.T?1:0)<<16;this.T=65536;this.A-=2},function(){this.W=(this.da=this.H)+1;this.H=this.W&65535;this.P=this.H|(this.P&this.T?1:0)<<16;this.T=65536;this.A-=2},function(){this.W=(this.da=this.F)+1;this.F=this.W&65535;this.P=this.F|(this.P&this.T?1:0)<<16;this.T=65536;this.A-=2},function(){this.W=(this.da=this.D)+1;this.D=this.W&65535;this.P=this.D|(this.P&this.T?1:0)<<16;this.T=65536;this.A-= 2},function(){this.W=(this.da=this.G)-1;this.G=this.W&65535;this.P=this.G|(this.P&this.T?1:0)<<16;this.T=65536;this.A-=2},function(){this.W=(this.da=this.I)-1;this.I=this.W&65535;this.P=this.I|(this.P&this.T?1:0)<<16;this.T=65536;this.A-=2},function(){this.W=(this.da=this.J)-1;this.J=this.W&65535;this.P=this.J|(this.P&this.T?1:0)<<16;this.T=65536;this.A-=2},function(){this.W=(this.da=this.C)-1;this.C=this.W&65535;this.P=this.C|(this.P&this.T?1:0)<<16;this.T=65536;this.A-=2},function(){var a;this.W= (this.da=w(this))-1;y(this,a=this.da&~this.ha|this.W&this.ha);this.P=(a&this.ha)>>>16|a&65535|(this.P&this.T?1:0)<<16;this.T=65536;this.A-=2},function(){this.W=(this.da=this.H)-1;this.H=this.W&65535;this.P=this.H|(this.P&this.T?1:0)<<16;this.T=65536;this.A-=2},function(){this.W=(this.da=this.F)-1;this.F=this.W&65535;this.P=this.F|(this.P&this.T?1:0)<<16;this.T=65536;this.A-=2},function(){this.W=(this.da=this.D)-1;this.D=this.W&65535;this.P=this.D|(this.P&this.T?1:0)<<16;this.T=65536;this.A-=2},function(){z(this, -this.G&this.ha);this.A-=this.B.rc},function(){z(this,this.I&this.ha);this.A-=this.B.rc},function(){z(this,this.J&this.ha);this.A-=this.B.rc},function(){z(this,this.C&this.ha);this.A-=this.B.rc},function(){z(this,w(this)-this.Xc&this.ha);this.A-=this.B.rc},function(){z(this,this.H&this.ha);this.A-=this.B.rc},function(){z(this,this.F&this.ha);this.A-=this.B.rc},function(){z(this,this.D&this.ha);this.A-=this.B.rc},function(){this.G=this.G&~this.ha|this.Fa();this.A-=this.B.jc},function(){this.I=this.I& -~this.ha|this.Fa();this.A-=this.B.jc},function(){this.J=this.J&~this.ha|this.Fa();this.A-=this.B.jc},function(){this.C=this.C&~this.ha|this.Fa();this.A-=this.B.jc},function(){y(this,w(this)&~this.ha|this.Fa());this.A-=this.B.jc},function(){this.H=this.H&~this.ha|this.Fa();this.A-=this.B.jc},function(){this.F=this.F&~this.ha|this.Fa();this.A-=this.B.jc},function(){this.D=this.D&~this.ha|this.Fa();this.A-=this.B.jc},jf,kf,lf,mf,nf,of,pf,qf,rf,sf,tf,uf,vf,wf,xf,yf,jf,kf,lf,mf,nf,of,pf,qf,rf,sf,tf,uf, -vf,wf,xf,yf,zf,function(){this.Qc[this.X()].call(this,Jf,this.K);this.A-=0>this.Ga?1:this.B.Ih},zf,function(){this.Qc[this.X()].call(this,Jf,this.L);this.A-=0>this.Ga?1:this.B.Ih},function(){this.ad[this.X()].call(this,Ve)},function(){this.Bc[this.X()].call(this,We)},function(){this.bd[this.Xg=this.X()].call(this,Xe)},function(){this.tb[this.Xg=this.X()].call(this,Ye)},function(){this.Q|=1;this.ad[this.X()].call(this,Me)},function(){this.Q|=1;this.Bc[this.X()].call(this,Me)},function(){this.bd[this.X()].call(this, -Me)},function(){this.tb[this.X()].call(this,Me)},function(){var a=this.X();switch((a&56)>>3){case 0:this.Db=this.Oa.ta;break;case 1:this.Db=this.na.ta;break;case 2:this.Db=this.sa.ta;break;case 3:this.Db=this.gb.ta;break;default:R.call(this);return}this.Q|=1;this.Bc[a].call(this,Ne)},function(){this.Q|=1;this.hb=this.Nc=this.Am;this.tb[this.X()].call(this,Je)},function(){var a,b=this.X(),c=(b&56)>>3;switch(c){case 0:a=this.G;break;case 2:a=this.J;break;case 3:a=this.C;break;default:if(80286==this.za|| +this.G&this.ha);this.A-=this.B.sc},function(){z(this,this.I&this.ha);this.A-=this.B.sc},function(){z(this,this.J&this.ha);this.A-=this.B.sc},function(){z(this,this.C&this.ha);this.A-=this.B.sc},function(){z(this,w(this)-this.Yc&this.ha);this.A-=this.B.sc},function(){z(this,this.H&this.ha);this.A-=this.B.sc},function(){z(this,this.F&this.ha);this.A-=this.B.sc},function(){z(this,this.D&this.ha);this.A-=this.B.sc},function(){this.G=this.G&~this.ha|this.Fa();this.A-=this.B.kc},function(){this.I=this.I& +~this.ha|this.Fa();this.A-=this.B.kc},function(){this.J=this.J&~this.ha|this.Fa();this.A-=this.B.kc},function(){this.C=this.C&~this.ha|this.Fa();this.A-=this.B.kc},function(){y(this,w(this)&~this.ha|this.Fa());this.A-=this.B.kc},function(){this.H=this.H&~this.ha|this.Fa();this.A-=this.B.kc},function(){this.F=this.F&~this.ha|this.Fa();this.A-=this.B.kc},function(){this.D=this.D&~this.ha|this.Fa();this.A-=this.B.kc},jf,kf,lf,mf,nf,of,pf,qf,rf,sf,tf,uf,vf,wf,xf,yf,jf,kf,lf,mf,nf,of,pf,qf,rf,sf,tf,uf, +vf,wf,xf,yf,zf,function(){this.Rc[this.X()].call(this,Jf,this.K);this.A-=0>this.Ga?1:this.B.Jh},zf,function(){this.Rc[this.X()].call(this,Jf,this.L);this.A-=0>this.Ga?1:this.B.Jh},function(){this.bd[this.X()].call(this,Ve)},function(){this.Cc[this.X()].call(this,We)},function(){this.cd[this.Yg=this.X()].call(this,Xe)},function(){this.tb[this.Yg=this.X()].call(this,Ye)},function(){this.Q|=1;this.bd[this.X()].call(this,Me)},function(){this.Q|=1;this.Cc[this.X()].call(this,Me)},function(){this.cd[this.X()].call(this, +Me)},function(){this.tb[this.X()].call(this,Me)},function(){var a=this.X();switch((a&56)>>3){case 0:this.Db=this.Oa.ta;break;case 1:this.Db=this.na.ta;break;case 2:this.Db=this.sa.ta;break;case 3:this.Db=this.gb.ta;break;default:R.call(this);return}this.Q|=1;this.Cc[a].call(this,Ne)},function(){this.Q|=1;this.hb=this.Oc=this.Bm;this.tb[this.X()].call(this,Je)},function(){var a,b=this.X(),c=(b&56)>>3;switch(c){case 0:a=this.G;break;case 2:a=this.J;break;case 3:a=this.C;break;default:if(80286==this.za|| 80386==this.za&&4!=c&&5!=c){kd.call(this);return}switch(c){case 1:a=this.I;break;case 4:a=w(this);break;case 5:a=this.H;break;case 6:a=this.F;break;case 7:a=this.D}}this.tb[b].call(this,Me);switch(c){case 0:Td(this,this.G);this.G=a;break;case 1:Rd(this,this.I);this.I=a;break;case 2:Zc(this,this.J);this.J=a;break;case 3:Sd(this,this.C);this.C=a;break;case 4:Td(this,w(this));y(this,a);break;case 5:Rd(this,this.H);this.H=a;break;case 6:Zc(this,this.F);this.F=a;break;case 7:Sd(this,this.D),this.D=a}}, -function(){this.Q|=1;this.Qc[this.X()].call(this,Kf,this.Fa)},function(){this.A-=3},function(){var a=this.G;this.G=this.I;this.I=a;this.A-=3},function(){var a=this.G;this.G=this.J;this.J=a;this.A-=3},function(){var a=this.G;this.G=this.C;this.C=a;this.A-=3},function(){var a=this.G;this.G=w(this);y(this,a);this.A-=3},function(){var a=this.G;this.G=this.H;this.H=a;this.A-=3},function(){var a=this.G;this.G=this.F;this.F=a;this.A-=3},function(){var a=this.G;this.G=this.D;this.D=a;this.A-=3},function(){this.G= -2==this.Xc?this.G&-65536|this.G<<24>>24&65535:this.G<<16>>16;this.A-=2},function(){this.J=2==this.Xc?this.J&-65536|(this.G&32768?65535:0):this.G&-2147483648?-1:0;this.A-=this.B.pl},function(){Be.call(this,this.K(),ne(this));this.A-=this.B.sl},function(){this.cc("WAIT not implemented",1);this.A--},function(){z(this,ob(this));this.A-=this.B.rc},function(){Xc(this,this.Fa());this.A-=this.B.jc},function(){var a=this.G>>8;a&xb?de(this):$d(this);a&wb?Vd(this)||(this.W^=1):Vd(this)&&(this.W^=1);a&vb?ee(this): -ae(this);a&ub?fe(this):be(this);a&tb?ge(this):Yd(this)&&(this.W^=this.T>>1|this.T>>2,this.da^=32896);this.A-=this.B.Ab},function(){this.G=this.G&255|(ob(this)&Ec)<<8;this.A-=this.B.Ab},function(){var a=this.G&-256,b;b=this.K();b=this.qc(this.hb.Fc(b,0));this.G=a|b;this.A-=this.B.xj},function(){this.G=this.G&~this.ha|ad(this,this.hb,this.K());this.A-=this.B.xj},function(){var a=this.K(),b=this.G;this.Ue(this.hb.hc(a,0),b);this.A-=this.B.yj},function(){var a=this.K(),b=this.G;this.Ka(this.hb.hc(a,1), -b);this.A-=this.B.yj},function(){var a=1,b=0,c=this.B.zj;this.va&192&&(a=this.I,b=1,c=this.B.Bj,this.va&256||(this.A-=this.B.Aj));if(a--){var d=this.Aa&qb?-1:1,e=this.qc(this.hb.Fc(this.F,0));this.Ue(this.Oa.hc(this.D&this.fa,0),e);this.F=this.F&~this.fa|this.F+d&this.fa;this.D=this.D&~this.fa|this.D+d&this.fa;this.A-=c;this.I-=b;a&&(this.ka=this.Bb,this.Q|=256)}},function(){var a=1,b=0,c=this.B.zj;this.va&192&&(a=this.I,b=1,c=this.B.Bj,this.va&256||(this.A-=this.B.Aj));if(a--){var d=this.Aa&qb?-2: -2,e=ad(this,this.hb,this.F);this.Ka(this.Oa.hc(this.D&this.fa,1),e);this.F=this.F&~this.fa|this.F+d&this.fa;this.D=this.D&~this.fa|this.D+d&this.fa;this.A-=c;this.I-=b;a&&(this.ka=this.Bb,this.Q|=256)}},function(){var a=1,b=0,c=this.B.jj;this.va&192&&(a=this.I,b=1,c=this.B.lj,this.va&256||(this.A-=this.B.kj));if(a--){var d=this.Aa&qb?-1:1,e=je(this,this.hb,this.F&this.fa),f=le(this,this.Oa,this.D&this.fa);Ce.call(this,e,f);this.F=this.F&~this.fa|this.F+d&this.fa;this.D=this.D&~this.fa|this.D+d&this.fa; -this.A-=c-this.B.rb;this.I-=b;a&&Xd(this)==(this.va&64)&&(this.ka=this.Bb,this.Q|=256)}},function(){var a=1,b=0,c=this.B.jj;this.va&192&&(a=this.I,b=1,c=this.B.lj,this.va&256||(this.A-=this.B.kj));if(a--){var d=this.Aa&qb?-2:2,e=ke(this,this.hb,this.F&this.fa),f=me(this,this.Oa,this.D&this.fa);De.call(this,e,f);this.F=this.F&~this.fa|this.F+d&this.fa;this.D=this.D&~this.fa|this.D+d&this.fa;this.A-=c-this.B.rb;this.I-=b;a&&Xd(this)==(this.va&64)&&(this.ka=this.Bb,this.Q|=256)}},function(){this.P=this.W= -this.da=this.G&this.X();this.T=256;this.A-=this.B.Oe},function(){this.P=this.W=this.da=this.G&this.K();this.T=65536;this.A-=this.B.Oe},function(){var a=1,b=0,c=this.B.Kj;this.va&192&&(a=this.I,b=1,c=this.B.Mj,this.va&256||(this.A-=this.B.Lj));if(a--){var d=this.G;this.Ue(this.Oa.hc(this.D&this.fa,0),d);this.D=this.D&~this.fa|this.D+(this.Aa&qb?-1:1)&this.fa;this.A-=c;this.I-=b;a&&(this.ka=this.Bb,this.Q|=256)}},function(){var a=1,b=0,c=this.B.Kj;this.va&192&&(a=this.I,b=1,c=this.B.Mj,this.va&256|| -(this.A-=this.B.Lj));if(a--){var d=this.G;this.Ka(this.Oa.hc(this.D&this.fa,1),d);this.D=this.D&~this.fa|this.D+(this.Aa&qb?-2:2)&this.fa;this.A-=c;this.I-=b;a&&(this.ka=this.Bb,this.Q|=256)}},function(){var a=1,b=0,c=this.B.rj;this.va&192&&(a=this.I,b=1,c=this.B.tj,this.va&256||(this.A-=this.B.sj));a--&&(this.G=this.G&-256|this.qc(this.hb.Fc(this.F&this.fa,0)),this.F=this.F&~this.fa|this.F+(this.Aa&qb?-1:1)&this.fa,this.A-=c,this.I-=b,a&&(this.ka=this.Bb,this.Q|=256))},function(){var a=1,b=0,c=this.B.rj; -this.va&192&&(a=this.I,b=1,c=this.B.tj,this.va&256||(this.A-=this.B.sj));a--&&(this.G=ad(this,this.hb,this.F&this.fa),this.F=this.F&~this.fa|this.F+(this.Aa&qb?-2:2)&this.fa,this.A-=c,this.I-=b,a&&(this.ka=this.Bb,this.Q|=256))},function(){var a=1,b=0,c=this.B.Ej;this.va&192&&(a=this.I,b=1,c=this.B.Gj,this.va&256||(this.A-=this.B.Fj));a--&&(Ce.call(this,this.G&255,le(this,this.Oa,this.D&this.fa)),this.D=this.D&~this.fa|this.D+(this.Aa&qb?-1:1)&this.fa,this.A-=c-this.B.rb,this.I-=b,a&&Xd(this)==(this.va& -64)&&(this.ka=this.Bb,this.Q|=256))},function(){var a=1,b=0,c=this.B.Ej;this.va&192&&(a=this.I,b=1,c=this.B.Gj,this.va&256||(this.A-=this.B.Fj));a--&&(De.call(this,this.G,me(this,this.Oa,this.D&this.fa)),this.D=this.D&~this.fa|this.D+(this.Aa&qb?-2:2)&this.fa,this.A-=c-this.B.rb,this.I-=b,a&&Xd(this)==(this.va&64)&&(this.ka=this.Bb,this.Q|=256))},function(){this.G=this.G&-256|this.X();this.A-=this.B.Ab},function(){this.I=this.I&-256|this.X();this.A-=this.B.Ab},function(){this.J=this.J&-256|this.X(); +function(){this.Q|=1;this.Rc[this.X()].call(this,Kf,this.Fa)},function(){this.A-=3},function(){var a=this.G;this.G=this.I;this.I=a;this.A-=3},function(){var a=this.G;this.G=this.J;this.J=a;this.A-=3},function(){var a=this.G;this.G=this.C;this.C=a;this.A-=3},function(){var a=this.G;this.G=w(this);y(this,a);this.A-=3},function(){var a=this.G;this.G=this.H;this.H=a;this.A-=3},function(){var a=this.G;this.G=this.F;this.F=a;this.A-=3},function(){var a=this.G;this.G=this.D;this.D=a;this.A-=3},function(){this.G= +2==this.Yc?this.G&-65536|this.G<<24>>24&65535:this.G<<16>>16;this.A-=2},function(){this.J=2==this.Yc?this.J&-65536|(this.G&32768?65535:0):this.G&-2147483648?-1:0;this.A-=this.B.ql},function(){Be.call(this,this.K(),ne(this));this.A-=this.B.tl},function(){this.cc("WAIT not implemented",1);this.A--},function(){z(this,ob(this));this.A-=this.B.sc},function(){Xc(this,this.Fa());this.A-=this.B.kc},function(){var a=this.G>>8;a&xb?de(this):$d(this);a&wb?Vd(this)||(this.W^=1):Vd(this)&&(this.W^=1);a&vb?ee(this): +ae(this);a&ub?fe(this):be(this);a&tb?ge(this):Yd(this)&&(this.W^=this.T>>1|this.T>>2,this.da^=32896);this.A-=this.B.Ab},function(){this.G=this.G&255|(ob(this)&Ec)<<8;this.A-=this.B.Ab},function(){var a=this.G&-256,b;b=this.K();b=this.rc(this.hb.Gc(b,0));this.G=a|b;this.A-=this.B.yj},function(){this.G=this.G&~this.ha|ad(this,this.hb,this.K());this.A-=this.B.yj},function(){var a=this.K(),b=this.G;this.Ue(this.hb.ic(a,0),b);this.A-=this.B.zj},function(){var a=this.K(),b=this.G;this.Ka(this.hb.ic(a,1), +b);this.A-=this.B.zj},function(){var a=1,b=0,c=this.B.Aj;this.wa&192&&(a=this.I,b=1,c=this.B.Cj,this.wa&256||(this.A-=this.B.Bj));if(a--){var d=this.Aa&qb?-1:1,e=this.rc(this.hb.Gc(this.F,0));this.Ue(this.Oa.ic(this.D&this.fa,0),e);this.F=this.F&~this.fa|this.F+d&this.fa;this.D=this.D&~this.fa|this.D+d&this.fa;this.A-=c;this.I-=b;a&&(this.ka=this.Bb,this.Q|=256)}},function(){var a=1,b=0,c=this.B.Aj;this.wa&192&&(a=this.I,b=1,c=this.B.Cj,this.wa&256||(this.A-=this.B.Bj));if(a--){var d=this.Aa&qb?-2: +2,e=ad(this,this.hb,this.F);this.Ka(this.Oa.ic(this.D&this.fa,1),e);this.F=this.F&~this.fa|this.F+d&this.fa;this.D=this.D&~this.fa|this.D+d&this.fa;this.A-=c;this.I-=b;a&&(this.ka=this.Bb,this.Q|=256)}},function(){var a=1,b=0,c=this.B.kj;this.wa&192&&(a=this.I,b=1,c=this.B.mj,this.wa&256||(this.A-=this.B.lj));if(a--){var d=this.Aa&qb?-1:1,e=je(this,this.hb,this.F&this.fa),f=le(this,this.Oa,this.D&this.fa);Ce.call(this,e,f);this.F=this.F&~this.fa|this.F+d&this.fa;this.D=this.D&~this.fa|this.D+d&this.fa; +this.A-=c-this.B.rb;this.I-=b;a&&Xd(this)==(this.wa&64)&&(this.ka=this.Bb,this.Q|=256)}},function(){var a=1,b=0,c=this.B.kj;this.wa&192&&(a=this.I,b=1,c=this.B.mj,this.wa&256||(this.A-=this.B.lj));if(a--){var d=this.Aa&qb?-2:2,e=ke(this,this.hb,this.F&this.fa),f=me(this,this.Oa,this.D&this.fa);De.call(this,e,f);this.F=this.F&~this.fa|this.F+d&this.fa;this.D=this.D&~this.fa|this.D+d&this.fa;this.A-=c-this.B.rb;this.I-=b;a&&Xd(this)==(this.wa&64)&&(this.ka=this.Bb,this.Q|=256)}},function(){this.P=this.W= +this.da=this.G&this.X();this.T=256;this.A-=this.B.Oe},function(){this.P=this.W=this.da=this.G&this.K();this.T=65536;this.A-=this.B.Oe},function(){var a=1,b=0,c=this.B.Lj;this.wa&192&&(a=this.I,b=1,c=this.B.Nj,this.wa&256||(this.A-=this.B.Mj));if(a--){var d=this.G;this.Ue(this.Oa.ic(this.D&this.fa,0),d);this.D=this.D&~this.fa|this.D+(this.Aa&qb?-1:1)&this.fa;this.A-=c;this.I-=b;a&&(this.ka=this.Bb,this.Q|=256)}},function(){var a=1,b=0,c=this.B.Lj;this.wa&192&&(a=this.I,b=1,c=this.B.Nj,this.wa&256|| +(this.A-=this.B.Mj));if(a--){var d=this.G;this.Ka(this.Oa.ic(this.D&this.fa,1),d);this.D=this.D&~this.fa|this.D+(this.Aa&qb?-2:2)&this.fa;this.A-=c;this.I-=b;a&&(this.ka=this.Bb,this.Q|=256)}},function(){var a=1,b=0,c=this.B.sj;this.wa&192&&(a=this.I,b=1,c=this.B.uj,this.wa&256||(this.A-=this.B.tj));a--&&(this.G=this.G&-256|this.rc(this.hb.Gc(this.F&this.fa,0)),this.F=this.F&~this.fa|this.F+(this.Aa&qb?-1:1)&this.fa,this.A-=c,this.I-=b,a&&(this.ka=this.Bb,this.Q|=256))},function(){var a=1,b=0,c=this.B.sj; +this.wa&192&&(a=this.I,b=1,c=this.B.uj,this.wa&256||(this.A-=this.B.tj));a--&&(this.G=ad(this,this.hb,this.F&this.fa),this.F=this.F&~this.fa|this.F+(this.Aa&qb?-2:2)&this.fa,this.A-=c,this.I-=b,a&&(this.ka=this.Bb,this.Q|=256))},function(){var a=1,b=0,c=this.B.Fj;this.wa&192&&(a=this.I,b=1,c=this.B.Hj,this.wa&256||(this.A-=this.B.Gj));a--&&(Ce.call(this,this.G&255,le(this,this.Oa,this.D&this.fa)),this.D=this.D&~this.fa|this.D+(this.Aa&qb?-1:1)&this.fa,this.A-=c-this.B.rb,this.I-=b,a&&Xd(this)==(this.wa& +64)&&(this.ka=this.Bb,this.Q|=256))},function(){var a=1,b=0,c=this.B.Fj;this.wa&192&&(a=this.I,b=1,c=this.B.Hj,this.wa&256||(this.A-=this.B.Gj));a--&&(De.call(this,this.G,me(this,this.Oa,this.D&this.fa)),this.D=this.D&~this.fa|this.D+(this.Aa&qb?-2:2)&this.fa,this.A-=c-this.B.rb,this.I-=b,a&&Xd(this)==(this.wa&64)&&(this.ka=this.Bb,this.Q|=256))},function(){this.G=this.G&-256|this.X();this.A-=this.B.Ab},function(){this.I=this.I&-256|this.X();this.A-=this.B.Ab},function(){this.J=this.J&-256|this.X(); this.A-=this.B.Ab},function(){this.C=this.C&-256|this.X();this.A-=this.B.Ab},function(){this.G=this.G&255|this.X()<<8;this.A-=this.B.Ab},function(){this.I=this.I&255|this.X()<<8;this.A-=this.B.Ab},function(){this.J=this.J&255|this.X()<<8;this.A-=this.B.Ab},function(){this.C=this.C&255|this.X()<<8;this.A-=this.B.Ab},function(){this.G=this.G&~this.ha|this.K();this.A-=this.B.Ab},function(){this.I=this.I&~this.ha|this.K();this.A-=this.B.Ab},function(){this.J=this.J&~this.ha|this.K();this.A-=this.B.Ab}, -function(){this.C=this.C&~this.ha|this.K();this.A-=this.B.Ab},function(){y(this,w(this)&~this.ha|this.K());this.A-=this.B.Ab},function(){this.H=this.H&~this.ha|this.K();this.A-=this.B.Ab},function(){this.F=this.F&~this.ha|this.K();this.A-=this.B.Ab},function(){this.D=this.D&~this.ha|this.K();this.A-=this.B.Ab},Df,Ef,Df,Ef,function(){this.tb[this.X()].call(this,Ke)},function(){this.tb[this.X()].call(this,Ie)},function(){this.Q|=1;this.se[this.X()].call(this,Lf,this.X)},function(){this.Q|=1;this.Qc[this.X()].call(this, -Lf,this.K)},Ff,Gf,Ff,Gf,function(){pe.call(this,3,null,this.B.Jl)},function(){var a=this.X(),b;a:{b=this.Lg[a];if(void 0!==b)for(var c=0;c>8)*a+this.G&255;this.T=256;this.A-=this.B.ll},function(){this.G=this.G&-256|(Ud(this)?255:0);this.A-=2},function(){this.G= -this.G&-256|je(this,this.hb,this.C+(this.G&255)&65535);this.A-=this.B.km},Hf,Hf,Hf,Hf,Hf,Hf,Hf,Hf,function(){var a=this.L();(this.I=this.I-1&this.fa)&&this.P&this.T-1?(D(this,v(this)+a),this.A-=this.B.Sl):this.A-=this.B.uj},function(){var a=this.L();!(this.I=this.I-1&this.fa)||this.P&this.T-1?this.A-=this.B.wj:(D(this,v(this)+a),this.A-=this.B.vj)},function(){var a=this.L();(this.I=this.I-1&this.fa)?(D(this,v(this)+a),this.A-=this.B.Rl):this.A-=this.B.uj},function(){var a=this.L();this.I?this.A-= -this.B.wj:(D(this,v(this)+a),this.A-=this.B.vj)},function(){var a=this.X();this.G=this.G&-256|Jb(this.ja,a,this.ka-2);this.A-=this.B.oj},function(){var a=this.X();this.G=Jb(this.ja,a,this.ka-2);this.G|=Jb(this.ja,a+1&65535,this.ka-2)<<8;this.A-=this.B.oj},function(){var a=this.X();Lb(this.ja,a,this.G&255,this.ka-2);this.A-=this.B.Dj},function(){var a=this.X();Lb(this.ja,a,this.G&255,this.ka-2);Lb(this.ja,a+1&65535,this.G>>8,this.ka-2);this.A-=this.B.Dj},function(){var a=this.K();z(this,v(this));D(this, -v(this)+a);this.A-=this.B.ql},function(){var a=this.K();D(this,v(this)+a);this.A-=this.B.pj},function(){Yc(this,this.K(),ne(this));this.A-=this.B.Nl},function(){var a=this.L();D(this,v(this)+a);this.A-=this.B.pj},function(){this.G=this.G&-256|Jb(this.ja,this.J,this.ka-1);this.A-=this.B.nj},function(){this.G=Jb(this.ja,this.J,this.ka-1);this.G|=Jb(this.ja,this.J+1&65535,this.ka-1)<<8;this.A-=this.B.nj},function(){Lb(this.ja,this.J,this.G&255,this.ka-1);this.A-=this.B.Cj},function(){Lb(this.ja,this.J, -this.G&255,this.ka-1);Lb(this.ja,this.J+1&65535,this.G>>8,this.ka-1);this.A-=this.B.Cj},If,If,function(){this.Q|=132;this.A-=this.B.fe},function(){this.Q|=68;this.A-=this.B.fe},function(){this.lb|=4;this.A-=2;this.Aa&rb||rc(this)},function(){Ud(this)?$d(this):de(this);this.A-=2},function(){this.Db=-1;this.se[this.X()].call(this,Mf,ef);0<=this.Db&&(this.G=this.Db)},function(){this.Db=-1;this.Qc[this.X()].call(this,Nf,ef);0<=this.Db&&(this.G=this.Db,this.J=this.Dg)},function(){this.P&=~this.T;this.A-= -2},function(){this.P|=this.T;this.A-=2},function(){this.Aa&=~rb;this.A-=this.B.ol},function(){this.Aa|=rb;this.Q|=4;this.A-=2},function(){this.Aa&=~qb;this.A-=2},function(){this.Aa|=qb;this.A-=2},function(){this.se[this.X()].call(this,fd,ef)},function(){this.Qc[this.X()].call(this,id,ef)}],Af=[ve,Oe,te,Re,xe,Te,Ze,Ce],Jf=[we,Pe,ue,Se,ye,Ue,$e,De],Kf=[function(a,b){this.A-=0>this.Ga?this.B.jc:this.B.cm;return b},ff,ff,ff,ff,ff,ff,ff],Lf=[function(a,b){this.A-=0>this.Ga?this.B.Vl:this.B.Tl;return b}, +function(){this.C=this.C&~this.ha|this.K();this.A-=this.B.Ab},function(){y(this,w(this)&~this.ha|this.K());this.A-=this.B.Ab},function(){this.H=this.H&~this.ha|this.K();this.A-=this.B.Ab},function(){this.F=this.F&~this.ha|this.K();this.A-=this.B.Ab},function(){this.D=this.D&~this.ha|this.K();this.A-=this.B.Ab},Df,Ef,Df,Ef,function(){this.tb[this.X()].call(this,Ke)},function(){this.tb[this.X()].call(this,Ie)},function(){this.Q|=1;this.se[this.X()].call(this,Lf,this.X)},function(){this.Q|=1;this.Rc[this.X()].call(this, +Lf,this.K)},Ff,Gf,Ff,Gf,function(){pe.call(this,3,null,this.B.Kl)},function(){var a=this.X(),b;a:{b=this.Mg[a];if(void 0!==b)for(var c=0;c>8)*a+this.G&255;this.T=256;this.A-=this.B.ml},function(){this.G=this.G&-256|(Ud(this)?255:0);this.A-=2},function(){this.G= +this.G&-256|je(this,this.hb,this.C+(this.G&255)&65535);this.A-=this.B.lm},Hf,Hf,Hf,Hf,Hf,Hf,Hf,Hf,function(){var a=this.L();(this.I=this.I-1&this.fa)&&this.P&this.T-1?(D(this,v(this)+a),this.A-=this.B.Tl):this.A-=this.B.vj},function(){var a=this.L();!(this.I=this.I-1&this.fa)||this.P&this.T-1?this.A-=this.B.xj:(D(this,v(this)+a),this.A-=this.B.wj)},function(){var a=this.L();(this.I=this.I-1&this.fa)?(D(this,v(this)+a),this.A-=this.B.Sl):this.A-=this.B.vj},function(){var a=this.L();this.I?this.A-= +this.B.xj:(D(this,v(this)+a),this.A-=this.B.wj)},function(){var a=this.X();this.G=this.G&-256|Jb(this.ja,a,this.ka-2);this.A-=this.B.pj},function(){var a=this.X();this.G=Jb(this.ja,a,this.ka-2);this.G|=Jb(this.ja,a+1&65535,this.ka-2)<<8;this.A-=this.B.pj},function(){var a=this.X();Lb(this.ja,a,this.G&255,this.ka-2);this.A-=this.B.Ej},function(){var a=this.X();Lb(this.ja,a,this.G&255,this.ka-2);Lb(this.ja,a+1&65535,this.G>>8,this.ka-2);this.A-=this.B.Ej},function(){var a=this.K();z(this,v(this));D(this, +v(this)+a);this.A-=this.B.rl},function(){var a=this.K();D(this,v(this)+a);this.A-=this.B.qj},function(){Yc(this,this.K(),ne(this));this.A-=this.B.Ol},function(){var a=this.L();D(this,v(this)+a);this.A-=this.B.qj},function(){this.G=this.G&-256|Jb(this.ja,this.J,this.ka-1);this.A-=this.B.oj},function(){this.G=Jb(this.ja,this.J,this.ka-1);this.G|=Jb(this.ja,this.J+1&65535,this.ka-1)<<8;this.A-=this.B.oj},function(){Lb(this.ja,this.J,this.G&255,this.ka-1);this.A-=this.B.Dj},function(){Lb(this.ja,this.J, +this.G&255,this.ka-1);Lb(this.ja,this.J+1&65535,this.G>>8,this.ka-1);this.A-=this.B.Dj},If,If,function(){this.Q|=132;this.A-=this.B.fe},function(){this.Q|=68;this.A-=this.B.fe},function(){this.lb|=4;this.A-=2;this.Aa&rb||rc(this)},function(){Ud(this)?$d(this):de(this);this.A-=2},function(){this.Db=-1;this.se[this.X()].call(this,Mf,ef);0<=this.Db&&(this.G=this.Db)},function(){this.Db=-1;this.Rc[this.X()].call(this,Nf,ef);0<=this.Db&&(this.G=this.Db,this.J=this.Eg)},function(){this.P&=~this.T;this.A-= +2},function(){this.P|=this.T;this.A-=2},function(){this.Aa&=~rb;this.A-=this.B.pl},function(){this.Aa|=rb;this.Q|=4;this.A-=2},function(){this.Aa&=~qb;this.A-=2},function(){this.Aa|=qb;this.A-=2},function(){this.se[this.X()].call(this,fd,ef)},function(){this.Rc[this.X()].call(this,id,ef)}],Af=[ve,Oe,te,Re,xe,Te,Ze,Ce],Jf=[we,Pe,ue,Se,ye,Ue,$e,De],Kf=[function(a,b){this.A-=0>this.Ga?this.B.kc:this.B.dm;return b},ff,ff,ff,ff,ff,ff,ff],Lf=[function(a,b){this.A-=0>this.Ga?this.B.Wl:this.B.Ul;return b}, S,S,S,S,S,S,S],Bf=[function(a,b){var c=a;if(b){var d,e=b&7;e?c=(d=a<>8-e)&255:d=a<<8;af.call(this,d,256)}return c},function(a,b){var c=a;if(b){var d,c=b&7,c=d=(a>>c|a<<8-c)&255;d&128&&(d|=256);af.call(this,d,256)}return c},function(a,b){var c=a;if(b){var d;(d=(b&this.Ef)%9)?(d=a<>9-d,c=d&255):d=a|(this.P&this.T?1:0)<<8;af.call(this,d,256)}return c},function(a,b){var c=a;b&&(c=(b&this.Ef)%9,c=a>>c|(this.P&this.T?1:0)<<8-c|a<<9-c,af.call(this,c,256),c&=255);return c}, function(a,b){var c=a;b&&(c=8>b-1;this.P=this.W=c>>1;this.P=c&1?this.P|256:this.P&-257;this.da=a^this.P;this.T=256;a=this.P}return a&255},S,function(a,b){if(b){8>24>>b-1;this.P=this.W=c>>1;this.P=c&1?this.P|256:this.P&-257;this.da=a^this.P;this.T=256;a=this.P}return a&255}],Cf=[function(a,b){var c=a;if(b){var d,e=b&15;e?c=(d=a<>16-e)&65535:d=a<<16;af.call(this,d, 65536)}return c},function(a,b){var c=a;if(b){var d,c=b&15,c=d=(a>>c|a<<16-c)&65535;d&32768&&(d|=65536);af.call(this,d,65536)}return c},function(a,b){var c=a;if(b){var d;(d=(b&this.Ef)%17)?(d=a<>17-d,c=d&65535):d=a|(this.P&this.T?1:0)<<16;af.call(this,d,65536)}return c},function(a,b){var c=a;b&&(c=(b&this.Ef)%17,c=a>>c|(this.P&this.T?1:0)<<16-c|a<<17-c,af.call(this,c,65536),c&=65535);return c},function(a,b){var c=a;b&&(c=16>b-1;this.P=this.W=c>>1;this.P=c&1?this.P|65536:this.P&-65537;this.da=a^this.P;this.T=65536;a=this.P}return a&65535},S,function(a,b){if(b){16>16>>b-1;this.P=this.W=c>>1;this.P=c&1?this.P|65536:this.P&-65537;this.da=a^this.P;this.T=65536;a=this.P}return a&65535}],Mf=[function(a,b){b=this.X();this.P=this.W=this.da=a&b;this.T=256;this.A-=0>this.aa?this.B.Oj:this.B.Nj;this.Q|=2;return a},S,function(a){this.A-= -0>this.aa?this.B.wg:this.B.vg;return a^255},function(a,b){b=0;this.da=a^b;this.T=256;this.A-=0>this.aa?this.B.wg:this.B.vg;return(this.P=this.W=b-a)&255},function(a){this.G=this.Db=(this.P=(this.G&255)*a)&65535;this.da=this.W=this.P;this.T=256;this.G&65280?(de(this),he(this)):($d(this),ce(this));this.A-=0>this.aa?this.B.Zl:this.B.Yl;this.Q|=2;return a},function(a){var b=(this.G<<24>>24)*(a<<24>>24);this.G=this.Db=b&65535;this.P=this.da=this.W=b;this.T=256;127b?(de(this),he(this)):($d(this), -ce(this));this.A-=0>this.aa?this.B.El:this.B.Dl;this.Q|=2;return a},function(a){if(!a)return gf.call(this),a;var b=this.G/a;if(255this.aa?this.B.wl:this.B.vl;this.Q|=2;return a},function(a){if(!a)return gf.call(this),a;var b=(this.G<<16>>16)/(a<<24>>24);if(b>b<<24>>24&65535)return gf.call(this),a;this.Db=this.G=b&255|((this.G<<16>>16)%(a<<24>>24)&255)<<8;this.W=this.da=this.P=b|256;this.T= -256;this.A-=0>this.aa?this.B.Al:this.B.zl;this.Q|=2;return a}],Nf=[function(a,b){b=this.K();this.P=this.W=this.da=a&b;this.T=65536;this.A-=0>this.aa?this.B.Oj:this.B.Nj;this.Q|=2;return a},S,function(a){this.A-=0>this.aa?this.B.wg:this.B.vg;return a^65535},function(a,b){b=0;this.da=a^b;this.T=65536;this.A-=0>this.aa?this.B.wg:this.B.vg;return(this.P=this.W=b-a)&65535},function(a){this.Db=this.G=(this.P=this.G*a)&65535;this.Dg=this.J=this.P>>16&65535;this.da=this.W=this.P;this.T=65536;this.J?(de(this), -he(this)):($d(this),ce(this));this.A-=0>this.aa?this.B.am:this.B.$l;this.Q|=2;return a},function(a){var b=(this.G<<16>>16)*(a<<16>>16);this.G=this.Db=b&65535;this.J=this.Dg=b>>16&65535;this.P=this.da=this.W=b;this.T=65536;32767b?(de(this),he(this)):($d(this),ce(this));this.A-=0>this.aa?this.B.Gl:this.B.Fl;this.Q|=2;return a},function(a,b){if(!a)return gf.call(this),a;b=this.G+65536*this.J;var c=Math.floor(b/a);if(65536<=c)return gf.call(this),a;this.Db=this.G=c&65535;this.Dg=this.J=b%a& -65535;this.W=this.da=this.P=c|65536;this.T=65536;this.A-=0>this.aa?this.B.yl:this.B.xl;this.Q|=2;return a},function(a,b){if(!a)return gf.call(this),a;var c=a<<16>>16;b=this.J<<16|this.G;var d=Math.floor(b/c);if(d!=(d&65535)<<16>>16)return gf.call(this),a;this.Db=this.G=d&65535;this.Dg=this.J=b%c&65535;this.W=this.da=this.P=d|65536;this.T=65536;this.A-=0>this.aa?this.B.Cl:this.B.Bl;this.Q|=2;return a}],fd=[function(a){this.da=a;a=(this.W=a+1)&255;this.P=a|(this.P&this.T?1:0)<<8;this.T=256;this.A-= -0>this.aa?this.B.ug:this.B.tg;return a},function(a){this.da=a;a=(this.W=a-1)&255;this.P=a|(this.P&this.T?1:0)<<8;this.T=256;this.A-=0>this.aa?this.B.ug:this.B.tg;return a},S,S,S,S,S,S],id=[function(a){this.da=a;a=(this.W=a+1)&65535;this.P=a|(this.P&this.T?1:0)<<16;this.T=65536;this.A-=0>this.aa?this.B.ug:this.B.tg;return a},function(a){this.da=a;a=(this.W=a-1)&65535;this.P=a|(this.P&this.T?1:0)<<16;this.T=65536;this.A-=0>this.aa?this.B.ug:this.B.tg;return a},function(a){z(this,v(this));D(this,a); -this.A-=0>this.aa?this.B.ul:this.B.tl;this.Q|=2;return a},function(a){if(0>this.aa)return S.call(this,a);Be.call(this,a,this.la(this.aa+2));this.A-=this.B.rl;this.Q|=2;return a},function(a){D(this,a);this.A-=0>this.aa?this.B.Pl:this.B.Ol;this.Q|=2;return a},function(a){if(0>this.aa)return S.call(this,a);Yc(this,a,this.la(this.aa+2));this.dh&&Nd(this,this.ka);this.A-=this.B.Ml;this.Q|=2;return a},function(a){var b=a;this.Q&512&&(a=a-2&65535,80286>this.za&&(b=a));z(this,b);this.A-=0>this.aa?this.B.rc: -this.B.em;this.Q|=2;return a},ff],Cd=[function(){var a=this.X();16>(a&56)&&(this.Q|=1);this.Qc[a].call(this,this.qk,ef)},function(){var a=this.X();a&16||(this.Q|=1);this.Qc[a].call(this,Of,ef)},function(){this.tb[this.X()].call(this,He)},function(){this.tb[this.X()].call(this,Le)},R,function(){this.na.Wa?Lc.call(this,13,0,!0):(ie(this,this.la(2054)),this.D=this.la(2086),this.F=this.la(2088),this.H=this.la(2090),this.C=this.la(2094),this.J=this.la(2096),this.I=this.la(2098),this.G=this.la(2100),$c(this.Oa, -2102,this.la(2084)),$c(this.na,2108,this.la(2082)),$c(this.sa,2114,this.la(2080)),$c(this.gb,2120,this.la(2078)),Xc(this,this.la(2072)),D(this,this.la(2074)),y(this,this.la(2092)),this.Rc=this.la(2126)|this.qc(2128)<<16,this.gf=this.Rc+this.la(2130),$c(this.le,2132,this.la(2076)),this.Sc=this.la(2138)|this.qc(2140)<<16,this.hf=this.Sc+this.la(2142),$c(this.ib,2144,this.la(2070)),this.A-=195)},function(){this.na.Wa?Lc.call(this,13,0,!0):(this.lc&=-9,this.A-=2)},R,R,R,R,kd,R,R,R,R,R,R,R,R,R,R,R,R,R, +this.da=0,this.T=65536);return c},function(a,b){if(b){var c=16>b-1;this.P=this.W=c>>1;this.P=c&1?this.P|65536:this.P&-65537;this.da=a^this.P;this.T=65536;a=this.P}return a&65535},S,function(a,b){if(b){16>16>>b-1;this.P=this.W=c>>1;this.P=c&1?this.P|65536:this.P&-65537;this.da=a^this.P;this.T=65536;a=this.P}return a&65535}],Mf=[function(a,b){b=this.X();this.P=this.W=this.da=a&b;this.T=256;this.A-=0>this.aa?this.B.Pj:this.B.Oj;this.Q|=2;return a},S,function(a){this.A-= +0>this.aa?this.B.xg:this.B.wg;return a^255},function(a,b){b=0;this.da=a^b;this.T=256;this.A-=0>this.aa?this.B.xg:this.B.wg;return(this.P=this.W=b-a)&255},function(a){this.G=this.Db=(this.P=(this.G&255)*a)&65535;this.da=this.W=this.P;this.T=256;this.G&65280?(de(this),he(this)):($d(this),ce(this));this.A-=0>this.aa?this.B.$l:this.B.Zl;this.Q|=2;return a},function(a){var b=(this.G<<24>>24)*(a<<24>>24);this.G=this.Db=b&65535;this.P=this.da=this.W=b;this.T=256;127b?(de(this),he(this)):($d(this), +ce(this));this.A-=0>this.aa?this.B.Fl:this.B.El;this.Q|=2;return a},function(a){if(!a)return gf.call(this),a;var b=this.G/a;if(255this.aa?this.B.xl:this.B.wl;this.Q|=2;return a},function(a){if(!a)return gf.call(this),a;var b=(this.G<<16>>16)/(a<<24>>24);if(b>b<<24>>24&65535)return gf.call(this),a;this.Db=this.G=b&255|((this.G<<16>>16)%(a<<24>>24)&255)<<8;this.W=this.da=this.P=b|256;this.T= +256;this.A-=0>this.aa?this.B.Bl:this.B.Al;this.Q|=2;return a}],Nf=[function(a,b){b=this.K();this.P=this.W=this.da=a&b;this.T=65536;this.A-=0>this.aa?this.B.Pj:this.B.Oj;this.Q|=2;return a},S,function(a){this.A-=0>this.aa?this.B.xg:this.B.wg;return a^65535},function(a,b){b=0;this.da=a^b;this.T=65536;this.A-=0>this.aa?this.B.xg:this.B.wg;return(this.P=this.W=b-a)&65535},function(a){this.Db=this.G=(this.P=this.G*a)&65535;this.Eg=this.J=this.P>>16&65535;this.da=this.W=this.P;this.T=65536;this.J?(de(this), +he(this)):($d(this),ce(this));this.A-=0>this.aa?this.B.bm:this.B.am;this.Q|=2;return a},function(a){var b=(this.G<<16>>16)*(a<<16>>16);this.G=this.Db=b&65535;this.J=this.Eg=b>>16&65535;this.P=this.da=this.W=b;this.T=65536;32767b?(de(this),he(this)):($d(this),ce(this));this.A-=0>this.aa?this.B.Hl:this.B.Gl;this.Q|=2;return a},function(a,b){if(!a)return gf.call(this),a;b=this.G+65536*this.J;var c=Math.floor(b/a);if(65536<=c)return gf.call(this),a;this.Db=this.G=c&65535;this.Eg=this.J=b%a& +65535;this.W=this.da=this.P=c|65536;this.T=65536;this.A-=0>this.aa?this.B.zl:this.B.yl;this.Q|=2;return a},function(a,b){if(!a)return gf.call(this),a;var c=a<<16>>16;b=this.J<<16|this.G;var d=Math.floor(b/c);if(d!=(d&65535)<<16>>16)return gf.call(this),a;this.Db=this.G=d&65535;this.Eg=this.J=b%c&65535;this.W=this.da=this.P=d|65536;this.T=65536;this.A-=0>this.aa?this.B.Dl:this.B.Cl;this.Q|=2;return a}],fd=[function(a){this.da=a;a=(this.W=a+1)&255;this.P=a|(this.P&this.T?1:0)<<8;this.T=256;this.A-= +0>this.aa?this.B.vg:this.B.ug;return a},function(a){this.da=a;a=(this.W=a-1)&255;this.P=a|(this.P&this.T?1:0)<<8;this.T=256;this.A-=0>this.aa?this.B.vg:this.B.ug;return a},S,S,S,S,S,S],id=[function(a){this.da=a;a=(this.W=a+1)&65535;this.P=a|(this.P&this.T?1:0)<<16;this.T=65536;this.A-=0>this.aa?this.B.vg:this.B.ug;return a},function(a){this.da=a;a=(this.W=a-1)&65535;this.P=a|(this.P&this.T?1:0)<<16;this.T=65536;this.A-=0>this.aa?this.B.vg:this.B.ug;return a},function(a){z(this,v(this));D(this,a); +this.A-=0>this.aa?this.B.vl:this.B.ul;this.Q|=2;return a},function(a){if(0>this.aa)return S.call(this,a);Be.call(this,a,this.la(this.aa+2));this.A-=this.B.sl;this.Q|=2;return a},function(a){D(this,a);this.A-=0>this.aa?this.B.Ql:this.B.Pl;this.Q|=2;return a},function(a){if(0>this.aa)return S.call(this,a);Yc(this,a,this.la(this.aa+2));this.eh&&Nd(this,this.ka);this.A-=this.B.Nl;this.Q|=2;return a},function(a){var b=a;this.Q&512&&(a=a-2&65535,80286>this.za&&(b=a));z(this,b);this.A-=0>this.aa?this.B.sc: +this.B.fm;this.Q|=2;return a},ff],Cd=[function(){var a=this.X();16>(a&56)&&(this.Q|=1);this.Rc[a].call(this,this.rk,ef)},function(){var a=this.X();a&16||(this.Q|=1);this.Rc[a].call(this,Of,ef)},function(){this.tb[this.X()].call(this,He)},function(){this.tb[this.X()].call(this,Le)},R,function(){this.na.Wa?Lc.call(this,13,0,!0):(ie(this,this.la(2054)),this.D=this.la(2086),this.F=this.la(2088),this.H=this.la(2090),this.C=this.la(2094),this.J=this.la(2096),this.I=this.la(2098),this.G=this.la(2100),$c(this.Oa, +2102,this.la(2084)),$c(this.na,2108,this.la(2082)),$c(this.sa,2114,this.la(2080)),$c(this.gb,2120,this.la(2078)),Xc(this,this.la(2072)),D(this,this.la(2074)),y(this,this.la(2092)),this.Sc=this.la(2126)|this.rc(2128)<<16,this.gf=this.Sc+this.la(2130),$c(this.le,2132,this.la(2076)),this.Tc=this.la(2138)|this.rc(2140)<<16,this.hf=this.Tc+this.la(2142),$c(this.ib,2144,this.la(2070)),this.A-=195)},function(){this.na.Wa?Lc.call(this,13,0,!0):(this.mc&=-9,this.A-=2)},R,R,R,R,kd,R,R,R,R,R,R,R,R,R,R,R,R,R, R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R],Od=[function(){this.A-=2+(0>this.aa?0: -1);return this.le.ta},function(){this.A-=2+(0>this.aa?0:1);return this.ib.ta},function(a){this.Q|=2;this.le.load(a);this.A-=17+(0>this.aa?0:2);return a},function(a){this.Q|=2;this.ib.load(a)!=q&&(this.Ka(this.ib.Md+4,this.ib.jb|=512),this.ib.type=768);this.A-=17+(0>this.aa?0:2);return a},function(a){this.Q|=2;this.A-=14+(0>this.aa?0:2);if(this.Jb.load(a,!0)!=q&&2048!=(this.Jb.jb&2560)&&(this.Jb.pc>=this.na.Wa&&this.Jb.pc>=(a&3)||7168==(this.Jb.jb&7168)))return fe(this),a;be(this);return a},function(a){this.Q|= -2;this.A-=14+(0>this.aa?0:2);if(this.Jb.load(a,!0)!=q&&512==(this.Jb.jb&2560)&&this.Jb.pc>=this.na.Wa&&this.Jb.pc>=(a&3))return fe(this),a;be(this);return a},S,S],jd=[Bd,Bd,Bd,Bd,Bd,Bd,S,S],Of=[function(a){0>this.aa?kd.call(this):(a=this.gf-this.Rc,this.Ka(this.aa+2,this.Rc),this.Ka(this.aa+4,65280|this.Rc>>16),this.A-=11);return a},function(a){0>this.aa?kd.call(this):(a=this.hf-this.Sc,this.Ka(this.aa+2,this.Sc),this.Ka(this.aa+4,65280|this.Sc>>16),this.A-=12);return a},function(a){0>this.aa?kd.call(this): -(this.Rc=this.la(this.aa+2)|this.qc(this.aa+4)<<16,this.gf=this.Rc+a,this.Q|=2,this.A-=11);return a},function(a){0>this.aa?kd.call(this):(this.Sc=this.la(this.aa+2)|this.qc(this.aa+4)<<16,this.hf=this.Sc+a,this.Q|=2,this.A-=12);return a},function(){this.A-=2+(0>this.aa?0:1);return this.lc},S,function(a){ie(this,a);this.A-=0>this.aa?3:6;this.Q|=2;return a},S],A=[function(a){a=a.call(this,this.G&255,E(this,this.C+this.F));this.G=this.G&-256|a;this.A-=this.B.Y},function(a){a=a.call(this,this.G&255,E(this, +1);return this.le.ta},function(){this.A-=2+(0>this.aa?0:1);return this.ib.ta},function(a){this.Q|=2;this.le.load(a);this.A-=17+(0>this.aa?0:2);return a},function(a){this.Q|=2;this.ib.load(a)!=q&&(this.Ka(this.ib.Md+4,this.ib.jb|=512),this.ib.type=768);this.A-=17+(0>this.aa?0:2);return a},function(a){this.Q|=2;this.A-=14+(0>this.aa?0:2);if(this.Jb.load(a,!0)!=q&&2048!=(this.Jb.jb&2560)&&(this.Jb.qc>=this.na.Wa&&this.Jb.qc>=(a&3)||7168==(this.Jb.jb&7168)))return fe(this),a;be(this);return a},function(a){this.Q|= +2;this.A-=14+(0>this.aa?0:2);if(this.Jb.load(a,!0)!=q&&512==(this.Jb.jb&2560)&&this.Jb.qc>=this.na.Wa&&this.Jb.qc>=(a&3))return fe(this),a;be(this);return a},S,S],jd=[Bd,Bd,Bd,Bd,Bd,Bd,S,S],Of=[function(a){0>this.aa?kd.call(this):(a=this.gf-this.Sc,this.Ka(this.aa+2,this.Sc),this.Ka(this.aa+4,65280|this.Sc>>16),this.A-=11);return a},function(a){0>this.aa?kd.call(this):(a=this.hf-this.Tc,this.Ka(this.aa+2,this.Tc),this.Ka(this.aa+4,65280|this.Tc>>16),this.A-=12);return a},function(a){0>this.aa?kd.call(this): +(this.Sc=this.la(this.aa+2)|this.rc(this.aa+4)<<16,this.gf=this.Sc+a,this.Q|=2,this.A-=11);return a},function(a){0>this.aa?kd.call(this):(this.Tc=this.la(this.aa+2)|this.rc(this.aa+4)<<16,this.hf=this.Tc+a,this.Q|=2,this.A-=12);return a},function(){this.A-=2+(0>this.aa?0:1);return this.mc},S,function(a){ie(this,a);this.A-=0>this.aa?3:6;this.Q|=2;return a},S],A=[function(a){a=a.call(this,this.G&255,E(this,this.C+this.F));this.G=this.G&-256|a;this.A-=this.B.Y},function(a){a=a.call(this,this.G&255,E(this, this.C+this.D));this.G=this.G&-256|a;this.A-=this.B.Z},function(a){a=a.call(this,this.G&255,F(this,this.H+this.F));this.G=this.G&-256|a;this.A-=this.B.Z},function(a){a=a.call(this,this.G&255,F(this,this.H+this.D));this.G=this.G&-256|a;this.A-=this.B.Y},function(a){a=a.call(this,this.G&255,E(this,this.F));this.G=this.G&-256|a;this.A-=this.B.R},function(a){a=a.call(this,this.G&255,E(this,this.D));this.G=this.G&-256|a;this.A-=this.B.R},function(a){a=a.call(this,this.G&255,E(this,this.K()));this.G=this.G& -256|a;this.A-=this.B.pa},function(a){a=a.call(this,this.G&255,E(this,this.C));this.G=this.G&-256|a;this.A-=this.B.R},function(a){a=a.call(this,this.I&255,E(this,this.C+this.F));this.I=this.I&-256|a;this.A-=this.B.Y},function(a){a=a.call(this,this.I&255,E(this,this.C+this.D));this.I=this.I&-256|a;this.A-=this.B.Z},function(a){a=a.call(this,this.I&255,F(this,this.H+this.F));this.I=this.I&-256|a;this.A-=this.B.Z},function(a){a=a.call(this,this.I&255,F(this,this.H+this.D));this.I=this.I&-256|a;this.A-= this.B.Y},function(a){a=a.call(this,this.I&255,E(this,this.F));this.I=this.I&-256|a;this.A-=this.B.R},function(a){a=a.call(this,this.I&255,E(this,this.D));this.I=this.I&-256|a;this.A-=this.B.R},function(a){a=a.call(this,this.I&255,E(this,this.K()));this.I=this.I&-256|a;this.A-=this.B.pa},function(a){a=a.call(this,this.I&255,E(this,this.C));this.I=this.I&-256|a;this.A-=this.B.R},function(a){a=a.call(this,this.J&255,E(this,this.C+this.F));this.J=this.J&-256|a;this.A-=this.B.Y},function(a){a=a.call(this, @@ -423,63 +423,65 @@ a[4].call(this,this.G,b.call(this))},function(a,b){this.I=a[4].call(this,this.I, function(a,b){this.I=a[5].call(this,this.I,b.call(this))},function(a,b){this.J=a[5].call(this,this.J,b.call(this))},function(a,b){this.C=a[5].call(this,this.C,b.call(this))},function(a,b){y(this,a[5].call(this,w(this),b.call(this)))},function(a,b){this.H=a[5].call(this,this.H,b.call(this))},function(a,b){this.F=a[5].call(this,this.F,b.call(this))},function(a,b){this.D=a[5].call(this,this.D,b.call(this))},function(a,b){this.G=a[6].call(this,this.G,b.call(this))},function(a,b){this.I=a[6].call(this, this.I,b.call(this))},function(a,b){this.J=a[6].call(this,this.J,b.call(this))},function(a,b){this.C=a[6].call(this,this.C,b.call(this))},function(a,b){y(this,a[6].call(this,w(this),b.call(this)))},function(a,b){this.H=a[6].call(this,this.H,b.call(this))},function(a,b){this.F=a[6].call(this,this.F,b.call(this))},function(a,b){this.D=a[6].call(this,this.D,b.call(this))},function(a,b){this.G=a[7].call(this,this.G,b.call(this))},function(a,b){this.I=a[7].call(this,this.I,b.call(this))},function(a,b){this.J= a[7].call(this,this.J,b.call(this))},function(a,b){this.C=a[7].call(this,this.C,b.call(this))},function(a,b){y(this,a[7].call(this,w(this),b.call(this)))},function(a,b){this.H=a[7].call(this,this.H,b.call(this))},function(a,b){this.F=a[7].call(this,this.F,b.call(this))},function(a,b){this.D=a[7].call(this,this.D,b.call(this))}]; -function T(a){n.call(this,"ChipSet",a,T);this.za=(this.za=a.model)?parseInt(this.za,10):Pf;this.Ub=0;var b=a.sw1;if(b)this.Ub=Qf(b,Rf|Sf.Mm);else{this.Kd=[360,360];(b=a.floppies)&&b.length&&(this.Kd=b);if(b=this.Kd.length)this.Ub|=Tf.bi,b--,this.Ub|=(b&3)<=Uf&&(this.bh=this.Wf=2);this.Yd=a.scaleTimers||!1;this.Hp=a.rtcDate;this.Qk= -!1;a.sound&&window&&"webkitAudioContext"in window&&(this.ui=new window.webkitAudioContext);this.reset(!0);p(this)}La(n,T);var Pf=5150,Uf=5170,Vf={none:0,tv:1,color:2,mono:3,ega:0},Tf={bi:1,ONE:0,xq:64,vq:128,Vp:192,Kf:192,Lf:6},Rf=12,Sf={wq:16,Np:32,Mm:48,Kf:48,Lf:4};k=T.prototype; +function T(a){n.call(this,"ChipSet",a,T);this.za=(this.za=a.model)?parseInt(this.za,10):Pf;this.Ub=0;var b=a.sw1;if(b)this.Ub=Qf(b,Rf|Sf.Nm);else{this.Kd=[360,360];(b=a.floppies)&&b.length&&(this.Kd=b);if(b=this.Kd.length)this.Ub|=Tf.ci,b--,this.Ub|=(b&3)<=Uf&&(this.dh=this.Wf=2);this.Yd=a.scaleTimers||!1;this.Ip=a.rtcDate;this.Rk= +!1;a.sound&&(this.ui=this.bg=null,window&&(this.ui=window.AudioContext||window.webkitAudioContext),this.ui&&(this.bg=new this.ui));this.reset(!0);p(this)}La(n,T);var Pf=5150,Uf=5170,Vf={none:0,tv:1,color:2,mono:3,ega:0},Tf={ci:1,ONE:0,yq:64,wq:128,Wp:192,Kf:192,Lf:6},Rf=12,Sf={xq:16,Op:32,Nm:48,Kf:48,Lf:4};k=T.prototype; k.Eb=function(a,b,c){switch(b){case "sw1":return this.oa[b]=c,Wf(this,b,c,this.Ub,{0:this.za==Pf?"Bootable Floppy Drive":"Loop on POST",1:this.za==Pf?"Reserved":"Coprocessor",2:"Base Memory Size",4:"Monitor Type",6:"Number of Floppy Drives"}),!0;case "sw2":if(this.za==Pf)return this.oa[b]=c,Wf(this,b,c,this.oe,{0:"Expansion Memory Size",4:"Reserved"}),!0;break;case "swdesc":return this.oa[b]=c,!0}return!1}; -k.zc=function(a,b,c,d){this.ja=b;this.U=c;this.Xa=d;this.ya=a;this.Ca=bb(a,"Keyboard");this.Lh=c.S.kd/1193181;Ib(b,this,Xf);Kb(b,this,Yf);this.za=Uf){this.kb=16;this.ud=0;this.td=16;this.Tg=0;this.ve=160;512<=gg(this)&&(this.ve|=16);3==hg(this)&&(this.ve|=64);this.ji=3;this.Wg=0;this.Xb=Array(7);this.jf=0;a&&(this.ba=Array(64));ig(this, -this.Hp);for(a=21;24>=a;a++)this.ba[a]=0;for(a=14;46>a;a++)void 0===this.ba[a]&&(this.ba[a]=0);this.ba[20]=this.$c&(Sf.Kf|2|Tf.bi|Tf.Kf);this.ba[16]=jg(this,0)<<4|jg(this,1);kg(this)}}; -function ig(a,b){var c=b?new Date(b):new Date;"[object Date]"!==Object.prototype.toString.call(c)||isNaN(c.getTime())?(c=new Date,a.kc("CMOS date invalid ("+b+"), using "+c)):b&&a.kc("CMOS date: "+c);a.ba[0]=c.getSeconds();a.ba[1]=0;a.ba[2]=c.getMinutes();a.ba[3]=0;a.ba[4]=c.getHours();a.ba[5]=0;a.ba[6]=c.getDay()+1;a.ba[7]=c.getDate();a.ba[8]=c.getMonth()+1;c=c.getFullYear();a.ba[9]=c%100;c/=100;a.ba[50]=c%10|c/10<<4;a.ba[10]=38;a.ba[11]=2;a.ba[12]=0;a.ba[13]=128;a.zg=a.Df=0;a.lm=a.Jh=null} -function lg(a){var b;void 0===b&&(b=a.Jh);a.Df=yc(a.U,a.Yd)+b;a.ba[11]&64&&vc(a.U,b)}function kg(a){for(var b=0,c=16;46>c;c++)b+=a.ba[c];a.ba[47]=b&255;a.ba[46]=b>>8} -k.save=function(){var a=new Pd(this);a.set(0,[this.Ub,this.oe,this.$c,this.We]);for(var b=[],c=0;c=Uf&&(a.set(5,[this.kb,this.ud,this.td,this.Tg,this.ve,this.ji]),a.set(6,[this.Wg,this.Xb,this.jf,this.ba,this.zg,this.Df]));return a.data()}; -k.restore=function(a){var b,c;b=a[0];this.Ub=b[0];this.oe=b[1];this.$c=b[2];this.We=b[3];b=a[1];for(c=0;c>2)+1)*a.ro+32*((b?a.oe:a.We)&15)}function sg(a,b){var c=b?a.Ub:a.$c;return a.za!=Pf||c&Tf.bi?((c&Tf.Kf)>>Tf.Lf)+1:0} -function jg(a,b){if(b>Sf.Lf} +k.Ac=function(a,b,c,d){this.ja=b;this.U=c;this.Xa=d;this.ya=a;this.Ca=bb(a,"Keyboard");this.Mh=c.S.ld/1193181;Ib(b,this,Xf);Kb(b,this,Yf);this.za=Uf){this.kb=16;this.ud=0;this.td=16;this.Ug=0;this.ve=160;512<=gg(this)&&(this.ve|=16);3==hg(this)&&(this.ve|=64);this.ki=3;this.Xg=0;this.Xb=Array(7);this.jf=0;a&&(this.ba=Array(64));ig(this, +this.Ip);for(a=21;24>=a;a++)this.ba[a]=0;for(a=14;46>a;a++)void 0===this.ba[a]&&(this.ba[a]=0);this.ba[20]=this.ad&(Sf.Kf|2|Tf.ci|Tf.Kf);this.ba[16]=jg(this,0)<<4|jg(this,1);kg(this)}}; +function ig(a,b){var c=b?new Date(b):new Date;"[object Date]"!==Object.prototype.toString.call(c)||isNaN(c.getTime())?(c=new Date,a.lc("CMOS date invalid ("+b+"), using "+c)):b&&a.lc("CMOS date: "+c);a.ba[0]=c.getSeconds();a.ba[1]=0;a.ba[2]=c.getMinutes();a.ba[3]=0;a.ba[4]=c.getHours();a.ba[5]=0;a.ba[6]=c.getDay()+1;a.ba[7]=c.getDate();a.ba[8]=c.getMonth()+1;c=c.getFullYear();a.ba[9]=c%100;c/=100;a.ba[50]=c%10|c/10<<4;a.ba[10]=38;a.ba[11]=2;a.ba[12]=0;a.ba[13]=128;a.Ag=a.Df=0;a.mm=a.Kh=null} +function lg(a){var b;void 0===b&&(b=a.Kh);a.Df=yc(a.U,a.Yd)+b;a.ba[11]&64&&vc(a.U,b)}function kg(a){for(var b=0,c=16;46>c;c++)b+=a.ba[c];a.ba[47]=b&255;a.ba[46]=b>>8} +k.save=function(){var a=new Pd(this);a.set(0,[this.Ub,this.oe,this.ad,this.We]);for(var b=[],c=0;c=Uf&&(a.set(5,[this.kb,this.ud,this.td,this.Ug,this.ve,this.ki]),a.set(6,[this.Xg,this.Xb,this.jf,this.ba,this.Ag,this.Df]));return a.data()}; +k.restore=function(a){var b,c;b=a[0];this.Ub=b[0];this.oe=b[1];this.ad=b[2];this.We=b[3];b=a[1];for(c=0;c>2)+1)*a.so+32*((b?a.oe:a.We)&15)}function sg(a,b){var c=b?a.Ub:a.ad;return a.za!=Pf||c&Tf.ci?((c&Tf.Kf)>>Tf.Lf)+1:0} +function jg(a,b){if(b>Sf.Lf} function Wf(a,b,c,d,e){for(var f="",g=1;8>=g;g++){var h="pcjs-bitCell";g||(h+=" pcjs-bitCellLeft");f+='
'+g+"
\n"}c.innerHTML=f;b=Ta(c,"pcjs-bitCell");c=null;for(g=0;gd.Va[0]&&(d.Va[0]=255,d.Va[1]--,0>d.Va[1]&&(d.Va[1]=255)));return e}function xg(a,b,c,d){a=a.Za[b];c=a.vb[c];c.Va[a.xb]=c.Yb[a.xb]=d;a.xb^=1} -function yg(a,b){var c=a.Za[b],d=c.Qd|1;c.Qd&=-16;return d}function zg(a,b,c){a=a.Za[b];b=c&3;a.Qd=a.Qd&~(16<>2].vb[b&3],c,d,e)} -function Fg(a,b,c){b=a.Za[b>>2].vb[b&3];b.gh&&b.Qi&&b.Nh?(c&&(b.ih=c),b.Bd||se(a,b,!0)):c&&c(!0)}function se(a,b,c){c&&(b.count=b.Va[1]<<8|b.Va[0],b.Im=b.mode&12,b.Tk=b.gd=!1);for(var d=!1;0<=b.count&&(c=b.$g<<16|b.Ua[1]<<8|b.Ua[0],4==b.Im?(d=!0,function(c){b.Qi.call(b.gh,b.Nh,-1,function(f,g){0>f&&(b.Tk||(b.Tk=!0),f=255);b.Bd||a.ja.Ue(c,f);(d=g)&&setTimeout(function(){Kg(b)||se(a,b)},0)})}(c)):8==b.Im?(c=a.ja.qc(c),0>b.Qi.call(b.gh,b.Nh,c)&&(b.gd=!0)):b.gd=!0),!d&&!Kg(b););} -function Kg(a){if(!a.gd&&0<=--a.count&&(a.mode&32?(a.Ua[0]--,0>a.Ua[0]&&(a.Ua[0]=255,a.Ua[1]--,0>a.Ua[1]&&(a.Ua[1]=255))):(a.Ua[0]++,255>3];b=1<<(b&7);d.Nb&b||(d.Nb|=b,d.pg=c||0,Ng(a))}function Qg(a,b){var c=a.Vb[b>>3],d=1<<(b&7);c.Nb&d&&(c.Nb&=~d,Ng(a))} -function Ng(a,b){var c,d=-1;1>=1),vc(a.U,c))),2==b&&zc(a))}k=T.prototype;k.lo=function(){return null}; -k.vp=function(a,b){this.oi=b;var c=(b&192)>>6;if(3!=c){var d=b&1,e=b&14,f=b&48;if(f){var g=this.Lb[c];g.Uh=f;g.mode=e;g.Bk=d;g.Yb=[0,0];g.Va=[0,0];g.Ee=[0,0];g.hd=!1;g.fg=!1;g.Ie=!1;Sg(this,c);0==c&&Qg(this,0);2==c&&255==this.Vb[0].cd&&77==this.uc&&(c=this.Lb[0],c.xc[0]=c.Yb[0],c.xc[1]=c.Yb[1],c.Cd=yc(this.U,this.Yd))}else Tg(this,c),d=this.Lb[c],d.Ee[0]=d.Va[0],d.Ee[1]=d.Va[1],d.fg=!0,Sg(this,c)}};function Vg(a,b){var c=a.Lb[b],d=c.Yb[1]<<8|c.Yb[0];d||(d=1==c.De?256:65536);return d} -function Bc(a,b){var c=a.Lb[b],d=c.xc[1]<<8|c.xc[0];d||(d=1==c.De?256:65536);return d}function Sg(a,b){var c=a.Lb[b];c.Ud=32==c.Uh?1:0;c.De=48==c.Uh?2:1} -function Tg(a,b,c){var d=a.Lb[b];if(d.Ie&&(2!=b||a.uc&1)){var e=yc(a.U,a.Yd),f=(e-d.Cd)/a.Lh|0;0>f&&(d.Cd=e,f=0);var g=Vg(a,b),h=Bc(a,b)-f;0==d.mode?(0>=h&&(h=0),h||(d.hd=!0,d.Ie=!1,b||Pg(a,0))):4==d.mode?(d.hd=1!=h,0>=h&&(h=g+h,0>=h&&(h=g),d.xc[0]=h&255,d.xc[1]=h>>8,d.Cd=e,!b&&d.hd&&Pg(a,0))):6==d.mode&&(h-=f,0>=h&&(d.hd=!d.hd,h=g+h,0>=h&&(h=g),d.xc[0]=h&255,d.xc[1]=h>>8,d.Cd=e,!b&&d.hd&&Pg(a,0)));d.Va[0]=h&255;d.Va[1]=h>>8;c&&(a.Cd=0)}return d} -function Ac(a,b){for(var c=0;c=Uf){var c=a.U.S.kd,d=yc(a.U,a.Yd);null==a.Jh&&(a.zg=yc(a.U,a.Yd),a.lm=1024,a.Jh=Math.floor(a.U.S.kd/a.lm),lg(a));d>=a.Df&&(a.ba[12]|=64,a.ba[11]&64&&(a.ba[12]|=128,Pg(a,8)),a.Df=d+a.Jh);a.ba[0]==a.ba[1]&&a.ba[2]==a.ba[3]&&a.ba[4]==a.ba[5]&&(a.ba[12]|=32,a.ba[11]&32&&(a.ba[12]|=128,Pg(a,8)));var e=d-a.zg,f=Math.floor(e/c);if(f&&!(a.ba[11]&128)){for(;f--;)if(60<=++a.ba[0]&&(a.ba[0]=0,60<=++a.ba[2]&&(a.ba[2]=0,24<=++a.ba[4]))){a.ba[4]= -0;a.ba[6]=a.ba[6]%7+1;var g;g=a.ba[9];var h=ma[a.ba[8]-1];28==h&&0===g%4&&(g%100||0===g%400)&&h++;g=h;++a.ba[7]>g&&(a.ba[7]=1,12<++a.ba[8]&&(a.ba[8]=1,a.ba[9]=(a.ba[9]+1)%100))}a.ba[12]|=16;a.ba[11]&16&&(a.ba[12]|=128,Pg(a,8))}a.zg=d-e%c}}k.bo=function(){var a=this.Zg;if(this.Tf&16)if(this.uc&128)a=this.$c;else if(this.Ca){var a=this.Ca,b=0;a.Mb.length&&(b=a.Mb[0]);a=b}return a};k.op=function(a,b){this.Zg=b};k.co=function(){return this.uc}; -k.pp=function(a,b){Wg(this,b);this.Ca&&Xg(this.Ca,b&128?!1:!0,b&64?!0:!1)};function Wg(a,b){var c=!!(b&2),d=!!(a.uc&2);a.uc=b;c!=d&&zc(a,c)}k.eo=function(){var a=0,a=this.za==Pf?this.uc&4?a|this.We&15:a|this.We>>4&1:this.uc&8?a|this.$c>>4:a|this.$c&15;this.uc&1&&Tg(this,2).hd&&(a=this.uc&2?a|32:a|16);return a};k.qp=function(a,b){this.mi=b};k.fo=function(){return this.Tf};k.rp=function(a,b){this.Tf=b};k.sn=function(){var a=this.Tg;this.kb&=-258;this.Ca&&Yg(this.Ca);return a}; -k.Go=function(a,b){if(this.kb&8)switch(this.ud){case 96:Zg(this,b);break;case 209:$g(this,b);break;default:if(Zg(this,this.td&-17),this.Ca){var c=-1;switch(b){case 255:c=250,ah(this.Ca)}bh(this,c)}}this.ud=b;this.kb&=-9};k.tn=function(){return this.uc&-209|(yc(this.U)&64?16:0)};k.Ho=function(a,b){Wg(this,b)};k.un=function(){var a=this.kb&255;this.kb&256&&(this.kb|=1,this.kb&=-257);return a}; -k.Fo=function(a,b){this.ud=b;this.kb|=8;var c=0;240<=this.ud&&(c=this.ud^15,this.ud=240);switch(this.ud){case 192:bh(this,this.ve);break;case 173:Zg(this,this.td|16);break;case 174:Zg(this,this.td&-17);this.Ca&&Yg(this.Ca);break;case 170:this.Ca&&(this.Ca.Mb=[]);Zg(this,this.td|16);bh(this,85);$g(this,3);break;case 224:bh(this,this.td&16?0:1);break;case 240:c&1&&Gd(this.U)}};function Zg(a,b){a.td=b;a.kb=a.kb&-5|b&4;a.Ca&&Xg(a.Ca,!!(b&8),!(b&16))} -function bh(a,b){0<=b&&(a.Tg=b,a.kb&=-2,a.kb|=256)}function $g(a,b){a.ji=b;Bb(a.ja,!!(b&2));b&1||Gd(a.U)}function ch(a,b){a.za=c)if(d=this.ba[c],10>c){var e=!1;4!=c&&5!=c||this.ba[11]&2||(d=12>d?d?d:12:(d-=12)?d+128:140,e=!0);this.ba[11]&4||(e&&128=c){if(e=b,10>c){var f=!1;this.ba[11]&4||(e=10*(e>>4)+(e&15),f=!0);if(4==c||5==c)f&&23=e?e=12==e?0:e:(e-=116,e=24==e?12:e))}}else e=b;this.ba[c]=e;11==c&&d&64&&b&64&&lg(this)};k.$n=function(){return this.Wg};k.lp=function(a,b){this.Wg=b};k.np=function(a,b){this.Yg=b};k.Xo=function(){};k.Yo=function(){}; -function Qf(a,b){if(void 0===a)return b;for(var c=0,d=1,e=0;ec||2E4>8&255,this.wb[c++]=f[b]>>16&255,this.wb[c++]=f[b]>>24&255;else this.wb=d;this.hi=d.symbols;if(!this.wb.length){m("Empty ROM: "+a);return}if(1==this.wb.length){m(this.wb[0]);return}}catch(g){this.wa("ROM data error: "+ +a.Ub&~e|(c?0:e);break;case "sw2":a.oe=a.oe&~e|(c?0:e)}cg(a)}}(a,b[g])}function tg(a,b){a.setAttribute("data-value",b?"1":"0");a.style.color=b?"#ffffff":"#000000";a.style.backgroundColor=b?"#000000":"#ffffff"}function cg(a){var b=a.oa.swdesc,c={0:"Enhanced Color",1:"TV",2:"Color",3:"Monochrome"};if(null!=b){var d;d=""+(gg(a,!0)+"Kb");d+=", "+c[hg(a,!0)]+" Monitor";d+=", "+sg(a,!0)+" Floppy Drives";if(null!=a.ad&&a.ad!=a.Ub||null!=a.We&&a.We!=a.oe)d+=" (Reset required)";b.textContent=d}} +function ug(a,b,c){a=a.Za[b];var d=a.vb[c],e=d.Ua[a.xb];a.xb^=1;b||0!=c||a.xb||(d.Ua[0]++,255d.Va[0]&&(d.Va[0]=255,d.Va[1]--,0>d.Va[1]&&(d.Va[1]=255)));return e}function xg(a,b,c,d){a=a.Za[b];c=a.vb[c];c.Va[a.xb]=c.Yb[a.xb]=d;a.xb^=1} +function yg(a,b){var c=a.Za[b],d=c.Qd|1;c.Qd&=-16;return d}function zg(a,b,c){a=a.Za[b];b=c&3;a.Qd=a.Qd&~(16<>2].vb[b&3],c,d,e)} +function Fg(a,b,c){b=a.Za[b>>2].vb[b&3];b.hh&&b.Ri&&b.Oh?(c&&(b.jh=c),b.Bd||se(a,b,!0)):c&&c(!0)}function se(a,b,c){c&&(b.count=b.Va[1]<<8|b.Va[0],b.Jm=b.mode&12,b.Uk=b.hd=!1);for(var d=!1;0<=b.count&&(c=b.ah<<16|b.Ua[1]<<8|b.Ua[0],4==b.Jm?(d=!0,function(c){b.Ri.call(b.hh,b.Oh,-1,function(f,g){0>f&&(b.Uk||(b.Uk=!0),f=255);b.Bd||a.ja.Ue(c,f);(d=g)&&setTimeout(function(){Kg(b)||se(a,b)},0)})}(c)):8==b.Jm?(c=a.ja.rc(c),0>b.Ri.call(b.hh,b.Oh,c)&&(b.hd=!0)):b.hd=!0),!d&&!Kg(b););} +function Kg(a){if(!a.hd&&0<=--a.count&&(a.mode&32?(a.Ua[0]--,0>a.Ua[0]&&(a.Ua[0]=255,a.Ua[1]--,0>a.Ua[1]&&(a.Ua[1]=255))):(a.Ua[0]++,255>3];b=1<<(b&7);d.Nb&b||(d.Nb|=b,d.qg=c||0,Ng(a))}function Qg(a,b){var c=a.Vb[b>>3],d=1<<(b&7);c.Nb&d&&(c.Nb&=~d,Ng(a))} +function Ng(a,b){var c,d=-1;1>=1),vc(a.U,c))),2==b&&zc(a))}k=T.prototype;k.mo=function(){return null}; +k.wp=function(a,b){this.pi=b;var c=(b&192)>>6;if(3!=c){var d=b&1,e=b&14,f=b&48;if(f){var g=this.Lb[c];g.Vh=f;g.mode=e;g.Ck=d;g.Yb=[0,0];g.Va=[0,0];g.Ee=[0,0];g.jd=!1;g.gg=!1;g.Ie=!1;Sg(this,c);0==c&&Qg(this,0);2==c&&255==this.Vb[0].dd&&77==this.vc&&(c=this.Lb[0],c.yc[0]=c.Yb[0],c.yc[1]=c.Yb[1],c.Cd=yc(this.U,this.Yd))}else Tg(this,c),d=this.Lb[c],d.Ee[0]=d.Va[0],d.Ee[1]=d.Va[1],d.gg=!0,Sg(this,c)}};function Vg(a,b){var c=a.Lb[b],d=c.Yb[1]<<8|c.Yb[0];d||(d=1==c.De?256:65536);return d} +function Bc(a,b){var c=a.Lb[b],d=c.yc[1]<<8|c.yc[0];d||(d=1==c.De?256:65536);return d}function Sg(a,b){var c=a.Lb[b];c.Ud=32==c.Vh?1:0;c.De=48==c.Vh?2:1} +function Tg(a,b,c){var d=a.Lb[b];if(d.Ie&&(2!=b||a.vc&1)){var e=yc(a.U,a.Yd),f=(e-d.Cd)/a.Mh|0;0>f&&(d.Cd=e,f=0);var g=Vg(a,b),h=Bc(a,b)-f;0==d.mode?(0>=h&&(h=0),h||(d.jd=!0,d.Ie=!1,b||Pg(a,0))):4==d.mode?(d.jd=1!=h,0>=h&&(h=g+h,0>=h&&(h=g),d.yc[0]=h&255,d.yc[1]=h>>8,d.Cd=e,!b&&d.jd&&Pg(a,0))):6==d.mode&&(h-=f,0>=h&&(d.jd=!d.jd,h=g+h,0>=h&&(h=g),d.yc[0]=h&255,d.yc[1]=h>>8,d.Cd=e,!b&&d.jd&&Pg(a,0)));d.Va[0]=h&255;d.Va[1]=h>>8;c&&(a.Cd=0)}return d} +function Ac(a,b){for(var c=0;c=Uf){var c=a.U.S.ld,d=yc(a.U,a.Yd);null==a.Kh&&(a.Ag=yc(a.U,a.Yd),a.mm=1024,a.Kh=Math.floor(a.U.S.ld/a.mm),lg(a));d>=a.Df&&(a.ba[12]|=64,a.ba[11]&64&&(a.ba[12]|=128,Pg(a,8)),a.Df=d+a.Kh);a.ba[0]==a.ba[1]&&a.ba[2]==a.ba[3]&&a.ba[4]==a.ba[5]&&(a.ba[12]|=32,a.ba[11]&32&&(a.ba[12]|=128,Pg(a,8)));var e=d-a.Ag,f=Math.floor(e/c);if(f&&!(a.ba[11]&128)){for(;f--;)if(60<=++a.ba[0]&&(a.ba[0]=0,60<=++a.ba[2]&&(a.ba[2]=0,24<=++a.ba[4]))){a.ba[4]= +0;a.ba[6]=a.ba[6]%7+1;var g;g=a.ba[9];var h=ma[a.ba[8]-1];28==h&&0===g%4&&(g%100||0===g%400)&&h++;g=h;++a.ba[7]>g&&(a.ba[7]=1,12<++a.ba[8]&&(a.ba[8]=1,a.ba[9]=(a.ba[9]+1)%100))}a.ba[12]|=16;a.ba[11]&16&&(a.ba[12]|=128,Pg(a,8))}a.Ag=d-e%c}}k.co=function(){var a=this.$g;if(this.Tf&16)if(this.vc&128)a=this.ad;else if(this.Ca){var a=this.Ca,b=0;a.Mb.length&&(b=a.Mb[0]);a=b}return a};k.pp=function(a,b){this.$g=b};k.eo=function(){return this.vc}; +k.qp=function(a,b){Wg(this,b);this.Ca&&Xg(this.Ca,b&128?!1:!0,b&64?!0:!1)};function Wg(a,b){var c=!!(b&2),d=!!(a.vc&2);a.vc=b;c!=d&&zc(a,c)}k.fo=function(){var a=0,a=this.za==Pf?this.vc&4?a|this.We&15:a|this.We>>4&1:this.vc&8?a|this.ad>>4:a|this.ad&15;this.vc&1&&Tg(this,2).jd&&(a=this.vc&2?a|32:a|16);return a};k.rp=function(a,b){this.ni=b};k.ho=function(){return this.Tf};k.sp=function(a,b){this.Tf=b};k.tn=function(){var a=this.Ug;this.kb&=-258;this.Ca&&Yg(this.Ca);return a}; +k.Ho=function(a,b){if(this.kb&8)switch(this.ud){case 96:Zg(this,b);break;case 209:$g(this,b);break;default:if(Zg(this,this.td&-17),this.Ca){var c=-1;switch(b){case 255:c=250,ah(this.Ca)}bh(this,c)}}this.ud=b;this.kb&=-9};k.un=function(){return this.vc&-209|(yc(this.U)&64?16:0)};k.Io=function(a,b){Wg(this,b)};k.vn=function(){var a=this.kb&255;this.kb&256&&(this.kb|=1,this.kb&=-257);return a}; +k.Go=function(a,b){this.ud=b;this.kb|=8;var c=0;240<=this.ud&&(c=this.ud^15,this.ud=240);switch(this.ud){case 192:bh(this,this.ve);break;case 173:Zg(this,this.td|16);break;case 174:Zg(this,this.td&-17);this.Ca&&Yg(this.Ca);break;case 170:this.Ca&&(this.Ca.Mb=[]);Zg(this,this.td|16);bh(this,85);$g(this,3);break;case 224:bh(this,this.td&16?0:1);break;case 240:c&1&&Gd(this.U)}};function Zg(a,b){a.td=b;a.kb=a.kb&-5|b&4;a.Ca&&Xg(a.Ca,!!(b&8),!(b&16))} +function bh(a,b){0<=b&&(a.Ug=b,a.kb&=-2,a.kb|=256)}function $g(a,b){a.ki=b;Bb(a.ja,!!(b&2));b&1||Gd(a.U)}function ch(a,b){a.za=c)if(d=this.ba[c],10>c){var e=!1;4!=c&&5!=c||this.ba[11]&2||(d=12>d?d?d:12:(d-=12)?d+128:140,e=!0);this.ba[11]&4||(e&&128=c){if(e=b,10>c){var f=!1;this.ba[11]&4||(e=10*(e>>4)+(e&15),f=!0);if(4==c||5==c)f&&23=e?e=12==e?0:e:(e-=116,e=24==e?12:e))}}else e=b;this.ba[c]=e;11==c&&d&64&&b&64&&lg(this)};k.ao=function(){return this.Xg};k.mp=function(a,b){this.Xg=b};k.op=function(a,b){this.Zg=b};k.Yo=function(){};k.Zo=function(){}; +function Qf(a,b){if(void 0===a)return b;for(var c=0,d=1,e=0;ec||2E4>8&255,this.wb[c++]=f[b]>>16&255,this.wb[c++]=f[b]>>24&255;else this.wb=d;this.ii=d.symbols;if(!this.wb.length){m("Empty ROM: "+a);return}if(1==this.wb.length){m(this.wb[0]);return}}catch(g){this.va("ROM data error: "+ g.message);return}else for(a=b.replace(/\n/gm," ").replace(/ +$/,"").split(" "),this.wb=Array(a.length),d=0;d>>d.Ra].fk(e&d.Ba,a.wb[c]&255)}return!0}return!1}za(function(){for(var a=Ta(window.document,"pcjs","rom"),b=0;b>>d.Ra].gk(e&d.Ba,a.wb[c]&255)}return!0}return!1}za(function(){for(var a=Ta(window.document,"pcjs","rom"),b=0;bthis.Rg?21:23,c=a.ba[b]|a.ba[b+1]<<8,c=c+(this.Fd>> -10);a.ba[b]=c&255;a.ba[b+1]=c>>8;kg(a)}}else m("No RAM allocated")};function jh(){this.Pm=lh;this.Qm=mh}var kh=2160066560,lh=255,mh=0;function nh(){return this.V.Qm}function oh(a,b){this.V.Pm=b}var ph=[nh,nh,nh,oh,oh,oh];jh.prototype.Xk=function(){return[null,0]};jh.prototype.Ri=function(){return ph};za(function(){for(var a=Ta(window.document,"pcjs","ram"),b=0;b":62,"?":63,"@":64,Lp:65,Mp:66,jk:67,Km:68,E:69,Tp:70,Wp:71,kk:72,Yp:73,Zp:74,$p:75,aq:76,bq:77,ci:78,dq:79,eq:80,gq:81,mk:82,kq:83,uq:84,yq:85,zq:86,Aq:87,Cq:88,Dq:89,Eq:90,"[":91,"\\":92,"]":93,"^":94,_:95,"`":96,Fq:97,Hq:98,Jq:99,Qq:100,Rq:101,Sq:102,Uq:103,Vq:104,Xq:105,Yq:106,Zq:107, -$q:108,ar:109,br:110,dr:111,er:112,fr:113,gr:114,hr:115,ir:116,jr:117,kr:118,lr:119,x:120,y:121,z:122,"{":123,"|":124,"}":125,"~":126},rh={};rh[186]=V[";"];rh[187]=V["="];rh[188]=V[","];rh[189]=V["-"];rh[190]=V["."];rh[191]=V["/"];rh[192]=V["`"];rh[219]=V["["];rh[220]=V["\\"];rh[221]=V["]"];rh[222]=V["'"];rh[173]=V["-"];var W={};W[V["1"]]=V["!"];W[V["2"]]=V["@"];W[V["3"]]=V["#"];W[V["4"]]=V.$;W[V["5"]]=V["%"];W[V["6"]]=V["^"];W[V["7"]]=V["&"];W[V["8"]]=V["*"];W[V["9"]]=V["("];W[V["0"]]=V[")"]; +ih.prototype.reset=function(){if(!this.Sg&&!this.kn&&this.ca){var a=1024*gg(this.ca);this.Fd&&a!=this.Fd&&(Eb(this.ja,this.Sg,this.Fd),this.kh=!1);this.Fd=a}!this.kh&&this.Fd&&Cb(this.ja,this.Sg,this.Fd,1)&&(this.kh=!0,a=Math.floor(this.Fd/1024)+"Kb",this.$f&&(a+=" ("+this.$f+")",this.$f=null),this.status(a),"ramCPQ"==this.yh&&(this.V=new jh,Cb(this.ja,kh,1,4,this.V)));if(this.kh){if(this.on||Gb(this.ja,1138,4660),this.ca&&(a=this.ca,a.ba)){var b=1048576>this.Sg?21:23,c=a.ba[b]|a.ba[b+1]<<8,c=c+(this.Fd>> +10);a.ba[b]=c&255;a.ba[b+1]=c>>8;kg(a)}}else m("No RAM allocated")};function jh(){this.Qm=lh;this.Rm=mh}var kh=2160066560,lh=255,mh=0;function nh(){return this.V.Rm}function oh(a,b){this.V.Qm=b}var ph=[nh,nh,nh,oh,oh,oh];jh.prototype.Yk=function(){return[null,0]};jh.prototype.Si=function(){return ph};za(function(){for(var a=Ta(window.document,"pcjs","ram"),b=0;b":62,"?":63,"@":64,Mp:65,Np:66,kk:67,Lm:68,E:69,Up:70,Xp:71,lk:72,Zp:73,$p:74,aq:75,bq:76,cq:77,di:78,eq:79,fq:80,hq:81,nk:82,lq:83,vq:84,zq:85,Aq:86,Bq:87,Dq:88,Eq:89,Fq:90,"[":91,"\\":92,"]":93,"^":94,_:95,"`":96,Gq:97,Iq:98,Kq:99,Rq:100,Sq:101,Tq:102,Vq:103,Wq:104,Yq:105,Zq:106,$q:107, +ar:108,br:109,cr:110,er:111,fr:112,gr:113,hr:114,ir:115,jr:116,kr:117,lr:118,mr:119,x:120,y:121,z:122,"{":123,"|":124,"}":125,"~":126},rh={};rh[186]=V[";"];rh[187]=V["="];rh[188]=V[","];rh[189]=V["-"];rh[190]=V["."];rh[191]=V["/"];rh[192]=V["`"];rh[219]=V["["];rh[220]=V["\\"];rh[221]=V["]"];rh[222]=V["'"];rh[173]=V["-"];var W={};W[V["1"]]=V["!"];W[V["2"]]=V["@"];W[V["3"]]=V["#"];W[V["4"]]=V.$;W[V["5"]]=V["%"];W[V["6"]]=V["^"];W[V["7"]]=V["&"];W[V["8"]]=V["*"];W[V["9"]]=V["("];W[V["0"]]=V[")"]; W[186]=V[":"];W[187]=V["+"];W[188]=V["<"];W[189]=V._;W[190]=V[">"];W[191]=V["?"];W[192]=V["~"];W[219]=V["{"];W[220]=V["|"];W[221]=V["}"];W[222]=V['"'];W[173]=V._;W[61]=V["+"];W[59]=V[":"]; var sh={3016:1,1016:2,1017:8,1018:32,1091:128,1093:64,1224:128,1020:512,1144:1024,1145:2048},th={TAB:1009,ESC:1027,F1:1112,F2:1113,F3:1114,F4:1115,F5:1116,F6:1117,F7:1118,F8:1119,F9:1120,F10:1121,LEFT:1037,UP:1038,RIGHT:1039,DOWN:1040,CTRL_C:4003,CTRL_BREAK:4008,CTRL_ALT_DEL:4046},uh={esc:1027,1:V["1"],2:V["2"],3:V["3"],4:V["4"],5:V["5"],6:V["6"],7:V["7"],8:V["8"],9:V["9"],0:V["0"],"-":V["-"],"=":V["="],bs:1008,tab:1009,q:81,w:87,e:69,r:82,t:84,y:89,u:85,i:73,o:79,p:80,"[":V["["],"]":V["]"],enter:13, ctrl:1017,a:65,s:83,d:68,f:70,g:71,h:72,j:74,k:75,l:76,";":V[";"],quote:V["'"],"`":V["`"],shift:1016,"\\":V["\\"],z:90,x:88,c:67,v:86,b:66,n:78,m:77,",":V[","],".":V["."],"/":V["/"],"right-shift":3016,prtsc:1044,alt:1018,space:V[" "],"caps-lock":1020,f1:1112,f2:1113,f3:1114,f4:1115,f5:1116,f6:1117,f7:1118,f8:1119,f9:1120,f10:1121,"num-lock":1144,"scroll-lock":1145,"num-home":1036,"num-up":1038,"num-pgup":1033,"num-sub":1109,"num-left":1037,"num-center":1101,"num-right":1039,"num-add":1107,"num-end":1035, @@ -487,183 +489,183 @@ ctrl:1017,a:65,s:83,d:68,f:70,g:71,h:72,j:74,k:75,l:76,";":V[";"],quote:V["'"]," X[81]=10768;X[119]=17;X[87]=10769;X[101]=18;X[69]=10770;X[114]=19;X[82]=10771;X[116]=20;X[84]=10772;X[121]=21;X[89]=10773;X[117]=22;X[85]=10774;X[105]=23;X[73]=10775;X[111]=24;X[79]=10776;X[112]=25;X[80]=10777;X[V["["]]=26;X[V["{"]]=10778;X[V["]"]]=27;X[V["}"]]=10779;X[13]=28;X[1017]=29;X[97]=30;X[65]=10782;X[115]=31;X[83]=10783;X[100]=32;X[68]=10784;X[102]=33;X[70]=10785;X[103]=34;X[71]=10786;X[104]=35;X[72]=10787;X[106]=36;X[74]=10788;X[107]=37;X[75]=10789;X[108]=38;X[76]=10790;X[V[";"]]=39; X[V[":"]]=10791;X[V["'"]]=40;X[V['"']]=10792;X[V["`"]]=41;X[V["~"]]=10793;X[1016]=42;X[V["\\"]]=43;X[V["|"]]=10795;X[122]=44;X[90]=10796;X[120]=45;X[88]=10797;X[99]=46;X[67]=10798;X[118]=47;X[86]=10799;X[98]=48;X[66]=10800;X[110]=49;X[78]=10801;X[109]=50;X[77]=10802;X[V[","]]=51;X[V["<"]]=10803;X[V["."]]=52;X[V[">"]]=10804;X[V["/"]]=53;X[V["?"]]=10805;X[3016]=54;X[1044]=55;X[1018]=56;X[V[" "]]=57;X[1020]=58;X[1112]=59;X[1113]=60;X[1114]=61;X[1115]=62;X[1116]=63;X[1117]=64;X[1118]=65;X[1119]=66; X[1120]=67;X[1121]=68;X[1144]=69;X[1145]=70;X[1036]=71;X[1038]=72;X[1033]=73;X[1109]=74;X[1037]=75;X[1101]=76;X[1039]=77;X[1107]=78;X[1035]=79;X[1040]=80;X[1034]=81;X[1045]=82;X[1046]=83;X[1122]=87;X[1123]=88;X[1091]=91;X[1093]=93;X[1224]=91;X[4003]=7470;X[4008]=7494;X[4046]=3677523;k=qh.prototype; -k.Eb=function(a,b,c){var d=this,e=a+"-"+b;if(void 0===this.oa[e])switch(b){case "kbd":return this.oa[e]=c,c.onkeydown=function(a){return wh(d,a,!0)},c.onkeypress=function(a){a=a||window.event;a=a.which||a.keyCode;if(d.Jk){var b=d.Gb.length?d.Gb[0].ne:0;b&&(65<=b&&90>=b||97<=b&&122>=b)&&(65<=a&&90>=a||97<=a&&122>=a)&&b!=a&&(d.Ni=!0,a=b)}(b=!X[a]||!!(d.Pb&128))||xh(d,a,!0);return b},c.onkeyup=function(a){return wh(d,a,!1)},!0;case "caps-lock":return this.oa[e]=c,c.onclick=function(){d.U&&d.U.qd();xh(d, -1020,!0)},!0;case "num-lock":return this.oa[e]=c,c.onclick=function(){d.U&&d.U.qd();xh(d,1144,!0)},!0;case "scroll-lock":return this.oa[e]=c,c.onclick=function(){d.U&&d.U.qd();xh(d,1145,!0)},!0;default:var f=b.toUpperCase().replace(/-/g,"_");if(void 0!==th[f]&&"button"==a)return this.oa[e]=c,c.onclick=function(a,b,c){return function(){a.U&&a.U.qd();yh(a,c,!0);xh(a,c,!0)}}(this,f,th[f]),!0;if(void 0!==uh[b])return this.Ek++,this.oa[e]=c,a=function(a,b,c){return function(){xh(a,c)}}(this,b,uh[b]),b= -function(a,b,c){return function(){zh(a,c)}}(this,b,uh[b]),"ontouchstart"in window?(c.ontouchstart=a,c.ontouchend=b):(c.onmousedown=a,c.onmouseup=c.onmouseout=b),!0}return!1};function Ah(a,b,c){if(a.Ek){for(var d in W)if(b==W[d]){b=parseInt(d,10);(d=rh[d])&&(b=d);break}for(var e in uh)if((d=uh[e]==b)||(d=b,97<=d&&122>=d&&(d-=32),d=uh[e]==d),d){(a=a.oa["key-"+e])&&void 0!==c&&(a.style.color=c?"#ffffff":"#000000",a.style.backgroundColor=c?"#000000":"#ffffff");break}}} -k.zc=function(a,b,c,d){this.ja=b;this.U=c;this.Xa=d;this.ca=bb(a,"ChipSet")};function ah(a,b){a.cc("keyboard reset",32896);a.Mb=[170];b&&a.ca&&ch(a.ca,a.Mb[0])}function Xg(a,b,c){a.Gi!==c&&(a.Gi=a.Mi=c);a.nh!==b&&(a.nh=b)&&!a.Mi&&dh(a,!0);a.nh&&a.Mi&&(ah(a,!0),a.Mi=!1)}function Yg(a){var b=0;a.Mb.length&&(b=a.Mb[0],a.ca&&ch(a.ca,b))}function dh(a,b){0>=1);if(b&3584){if(!1===d)return!0;d=null}null==d?d=!((c?a.ed:a.Pb)&b):d||b&255&&(b=255);if(c){a.ed&=~b;d&&(a.ed|=b);c=b;var f,g;for(g in vh)d="led-"+g,e=vh[g],c&&c!=e||!(f=a.oa[d])||(f.style.backgroundColor=a.ed&e?"#00ff00":"#000000")}else a.Pb&=~b,d&&(a.Pb|=b);return!0}}return!1} -function xh(a,b,c){if(X[b]&&a.U&&a.U.ea.Ib){sh[b]&&a.Gb.length&&0e||(e==a.Gb.length&&(d={},d.ne=b,d.Pb=a.Pb,Ah(a,b,!0),e++),0b.nd){if(!b.eg){zh(a,b.ne);return}b.eg=!1;c=a.so}else c=1==b.nd++?a.to:a.uo;b.Fm=setTimeout(function(a){return function(){Bh(a,b)}}(a),c)}}else zh(a,b.ne,!0)}function Dh(a,b,c){var d=b;if(65<=b&&90>=b)!(a.Pb&515)==c&&(d=b+32);else if(97<=b&&122>=b)!!(a.Pb&515)==c&&(d=b-32);else if(!!(a.Pb&3)==c){if(a=W[b])d=a}else if(a=rh[b])d=a;return d}k.Oh=function(a){this.oh=a;a||(this.Pb&=-256)}; -function wh(a,b,c){var d=!0,e=!1,f=!1,g=b.keyCode,h=Dh(a,g,!0);a.Hi&&h==V["`"]&&(g=h=27);if(X[g+1E3])if(h+=1E3,2==b.location&&(h+=2E3),yh(a,h,!1,c)){if(20==g||144==g||145==g)a.kn||(c=e=!0);if(!(c||91!=g&&93!=g))for(var r=0;r=b||97<=b&&122>=b;d>>>=8;){var g=0,h=d&255;224==f||225==f?e.push(f|(c?0:128)):(42==h?a.ed&3||a.ed&512&&b||(g=h):29==h?a.ed&12||(g=h):56==h?a.ed&48||(g=h):e.push(f|(c?0:128)),g&&(c?e.unshift(g):e.push(g|128)))}for(c=0;cd.Mb.length?(d.Mb.push(f),1==d.Mb.length&&d.ca&&ch(d.ca,f)):(20==d.Mb.length&&d.Mb.push(255),d.cc("scan code buffer overflow")))}} +k.Eb=function(a,b,c){var d=this,e=a+"-"+b;if(void 0===this.oa[e])switch(b){case "kbd":return this.oa[e]=c,c.onkeydown=function(a){return wh(d,a,!0)},c.onkeypress=function(a){a=a||window.event;a=a.which||a.keyCode;if(d.Kk){var b=d.Gb.length?d.Gb[0].ne:0;b&&(65<=b&&90>=b||97<=b&&122>=b)&&(65<=a&&90>=a||97<=a&&122>=a)&&b!=a&&(d.Oi=!0,a=b)}(b=!X[a]||!!(d.Pb&128))||xh(d,a,!0);return b},c.onkeyup=function(a){return wh(d,a,!1)},!0;case "caps-lock":return this.oa[e]=c,c.onclick=function(){d.U&&d.U.rd();xh(d, +1020,!0)},!0;case "num-lock":return this.oa[e]=c,c.onclick=function(){d.U&&d.U.rd();xh(d,1144,!0)},!0;case "scroll-lock":return this.oa[e]=c,c.onclick=function(){d.U&&d.U.rd();xh(d,1145,!0)},!0;default:var f=b.toUpperCase().replace(/-/g,"_");if(void 0!==th[f]&&"button"==a)return this.oa[e]=c,c.onclick=function(a,b,c){return function(){a.U&&a.U.rd();yh(a,c,!0);xh(a,c,!0)}}(this,f,th[f]),!0;if(void 0!==uh[b])return this.Fk++,this.oa[e]=c,a=function(a,b,c){return function(){xh(a,c)}}(this,b,uh[b]),b= +function(a,b,c){return function(){zh(a,c)}}(this,b,uh[b]),"ontouchstart"in window?(c.ontouchstart=a,c.ontouchend=b):(c.onmousedown=a,c.onmouseup=c.onmouseout=b),!0}return!1};function Ah(a,b,c){if(a.Fk){for(var d in W)if(b==W[d]){b=parseInt(d,10);(d=rh[d])&&(b=d);break}for(var e in uh)if((d=uh[e]==b)||(d=b,97<=d&&122>=d&&(d-=32),d=uh[e]==d),d){(a=a.oa["key-"+e])&&void 0!==c&&(a.style.color=c?"#ffffff":"#000000",a.style.backgroundColor=c?"#000000":"#ffffff");break}}} +k.Ac=function(a,b,c,d){this.ja=b;this.U=c;this.Xa=d;this.ca=bb(a,"ChipSet")};function ah(a,b){a.cc("keyboard reset",32896);a.Mb=[170];b&&a.ca&&ch(a.ca,a.Mb[0])}function Xg(a,b,c){a.Hi!==c&&(a.Hi=a.Ni=c);a.oh!==b&&(a.oh=b)&&!a.Ni&&dh(a,!0);a.oh&&a.Ni&&(ah(a,!0),a.Ni=!1)}function Yg(a){var b=0;a.Mb.length&&(b=a.Mb[0],a.ca&&ch(a.ca,b))}function dh(a,b){0>=1);if(b&3584){if(!1===d)return!0;d=null}null==d?d=!((c?a.fd:a.Pb)&b):d||b&255&&(b=255);if(c){a.fd&=~b;d&&(a.fd|=b);c=b;var f,g;for(g in vh)d="led-"+g,e=vh[g],c&&c!=e||!(f=a.oa[d])||(f.style.backgroundColor=a.fd&e?"#00ff00":"#000000")}else a.Pb&=~b,d&&(a.Pb|=b);return!0}}return!1} +function xh(a,b,c){if(X[b]&&a.U&&a.U.ea.Ib){sh[b]&&a.Gb.length&&0e||(e==a.Gb.length&&(d={},d.ne=b,d.Pb=a.Pb,Ah(a,b,!0),e++),0b.od){if(!b.fg){zh(a,b.ne);return}b.fg=!1;c=a.to}else c=1==b.od++?a.uo:a.vo;b.Gm=setTimeout(function(a){return function(){Bh(a,b)}}(a),c)}}else zh(a,b.ne,!0)}function Dh(a,b,c){var d=b;if(65<=b&&90>=b)!(a.Pb&515)==c&&(d=b+32);else if(97<=b&&122>=b)!!(a.Pb&515)==c&&(d=b-32);else if(!!(a.Pb&3)==c){if(a=W[b])d=a}else if(a=rh[b])d=a;return d}k.Ph=function(a){this.ph=a;a||(this.Pb&=-256)}; +function wh(a,b,c){var d=!0,e=!1,f=!1,g=b.keyCode,h=Dh(a,g,!0);a.Ii&&h==V["`"]&&(g=h=27);if(X[g+1E3])if(h+=1E3,2==b.location&&(h+=2E3),yh(a,h,!1,c)){if(20==g||144==g||145==g)a.ln||(c=e=!0);if(!(c||91!=g&&93!=g))for(var r=0;r=b||97<=b&&122>=b;d>>>=8;){var g=0,h=d&255;224==f||225==f?e.push(f|(c?0:128)):(42==h?a.fd&3||a.fd&512&&b||(g=h):29==h?a.fd&12||(g=h):56==h?a.fd&48||(g=h):e.push(f|(c?0:128)),g&&(c?e.unshift(g):e.push(g|128)))}for(c=0;cd.Mb.length?(d.Mb.push(f),1==d.Mb.length&&d.ca&&ch(d.ca,f)):(20==d.Mb.length&&d.Mb.push(255),d.cc("scan code buffer overflow")))}} za(function(){for(var a=Ta(window.document,"pcjs","keyboard"),b=0;bc.length)c=[!1,0,null,null,0,Array(Sh)];this.wh=b;this.Ta=e[2];this.Kb=e[3];this.Uc=d||e[4];65536<=this.Uc&&720896<=this.Ta&&(this.Kb=Math.min(this.Uc>>2,32768));this.Yc=c[0];this.Ac=c[1];this.Zf=c[2];this.Hg=c[3];this.Ic=c[4]&255;this.vh=c[4]>>8&255;this.mc=c[5];this.Yi=Sh;if(5==b){this.Yi=Th;b=c[6];void 0===b&&(b=[!1,0,Array(20),0,3==f?0:1,0,0,Array(5),0,0,0,Array(9),0,[this.Ta,this.Kb,this.Uc],Array(this.Uc>> -2),771,0,-1,0,-1,0,-1,0,0,0]);this.Xd=b[0];this.Ke=b[1];this.qe=b[2];this.ek=b[3];this.Ah=b[4];this.Pi=b[5];this.yf=b[6];this.Og=b[7];this.Si=b[8];this.Ti=b[9];this.xf=b[10];this.bf=b[11];this.yb=b[12];d=b[13];"number"==typeof d&&(d=[this.Ta,this.Kb,d]);this.Ta=d[0];this.Kb=d[1];d=this.Uc>>2;if((this.ue=b[14])&&this.ue.length>8)} -function Xh(a,b){this.Fb(a,b&255);this.Fb(a+1,b>>8&255);this.Fb(a+2,b>>16&255);this.Fb(a+3,b>>>24)}var Yh=[,,function(a){a+=this.offset;return(this.V.yb=this.ia[a])>>this.V.Sj&255},function(a){a+=this.offset;var b=a&-2;return(a&1?this.ia[b]>>8:this.ia[b])&255}];Yh[16]=function(a){a+=this.offset;a=this.ia[a];for(var b=this.V.$i&this.V.aj,c=0,d=128;d;)(a&b)==b&&(c|=d),b>>>=1,d>>=1;return c}; -Yh[512]=function(a,b){var c=a+this.offset,d;d=this.ia[c]&~this.V.eb|(b|b<<8|b<<16|b<<24)&this.V.eb;d=d&this.V.mb|this.V.yb&~this.V.mb;this.ia[c]!=d&&(this.ia[c]=d,this.Ha=!0)};Yh[1024]=function(a,b){var c=a+this.offset;b=b>>this.V.ld|b<<8-this.V.ld&255;var d;d=(b|b<<8|b<<16|b<<24)&this.V.he|this.V.Pe;d=d&this.V.eb|this.ia[c]&~this.V.eb;d=d&this.V.mb|this.V.yb&~this.V.mb;this.ia[c]!=d&&(this.ia[c]=d,this.Ha=!0)}; -Yh[1536]=function(a,b){var c=a+this.offset;b=b>>this.V.ld|b<<8-this.V.ld&255;var d;d=(b|b<<8|b<<16|b<<24)&this.V.he|this.V.Pe;d&=this.V.yb;d=d&this.V.eb|this.ia[c]&~this.V.eb;d=d&this.V.mb|this.V.yb&~this.V.mb;this.ia[c]!=d&&(this.ia[c]=d,this.Ha=!0)};Yh[2560]=function(a,b){var c=a+this.offset;b=b>>this.V.ld|b<<8-this.V.ld&255;var d;d=(b|b<<8|b<<16|b<<24)&this.V.he|this.V.Pe;d|=this.V.yb;d=d&this.V.eb|this.ia[c]&~this.V.eb;d=d&this.V.mb|this.V.yb&~this.V.mb;this.ia[c]!=d&&(this.ia[c]=d,this.Ha=!0)}; -Yh[3584]=function(a,b){var c=a+this.offset;b=b>>this.V.ld|b<<8-this.V.ld&255;var d;d=(b|b<<8|b<<16|b<<24)&this.V.he|this.V.Pe;d^=this.V.yb;d=d&this.V.eb|this.ia[c]&~this.V.eb;d=d&this.V.mb|this.V.yb&~this.V.mb;this.ia[c]!=d&&(this.ia[c]=d,this.Ha=!0)};Yh[768]=function(a,b){a+=this.offset;var c,d=a&-2;c=this.V.eb&(d==a?16711935:-16711936);c=(b|b<<8|b<<16|b<<24)&c|this.ia[d]&~c;c=c&this.V.mb|this.V.yb&~this.V.mb;this.ia[d]!=c&&(this.ia[d]=c,this.Ha=!0)}; +function Qh(a,b,c,d){if(void 0!==b&&(!c||c.length)){var e=Rh[b],f=a.ee||e[5];if(!c||6>c.length)c=[!1,0,null,null,0,Array(Sh)];this.xh=b;this.Ta=e[2];this.Kb=e[3];this.Vc=d||e[4];65536<=this.Vc&&720896<=this.Ta&&(this.Kb=Math.min(this.Vc>>2,32768));this.Zc=c[0];this.Bc=c[1];this.Zf=c[2];this.Ig=c[3];this.Jc=c[4]&255;this.wh=c[4]>>8&255;this.nc=c[5];this.Zi=Sh;if(5==b){this.Zi=Th;b=c[6];void 0===b&&(b=[!1,0,Array(20),0,3==f?0:1,0,0,Array(5),0,0,0,Array(9),0,[this.Ta,this.Kb,this.Vc],Array(this.Vc>> +2),771,0,-1,0,-1,0,-1,0,0,0]);this.Xd=b[0];this.Ke=b[1];this.qe=b[2];this.fk=b[3];this.Bh=b[4];this.Qi=b[5];this.yf=b[6];this.Pg=b[7];this.Ti=b[8];this.Ui=b[9];this.xf=b[10];this.bf=b[11];this.yb=b[12];d=b[13];"number"==typeof d&&(d=[this.Ta,this.Kb,d]);this.Ta=d[0];this.Kb=d[1];d=this.Vc>>2;if((this.ue=b[14])&&this.ue.length>8)} +function Xh(a,b){this.Fb(a,b&255);this.Fb(a+1,b>>8&255);this.Fb(a+2,b>>16&255);this.Fb(a+3,b>>>24)}var Yh=[,,function(a){a+=this.offset;return(this.V.yb=this.ia[a])>>this.V.Tj&255},function(a){a+=this.offset;var b=a&-2;return(a&1?this.ia[b]>>8:this.ia[b])&255}];Yh[16]=function(a){a+=this.offset;a=this.ia[a];for(var b=this.V.aj&this.V.bj,c=0,d=128;d;)(a&b)==b&&(c|=d),b>>>=1,d>>=1;return c}; +Yh[512]=function(a,b){var c=a+this.offset,d;d=this.ia[c]&~this.V.eb|(b|b<<8|b<<16|b<<24)&this.V.eb;d=d&this.V.mb|this.V.yb&~this.V.mb;this.ia[c]!=d&&(this.ia[c]=d,this.Ha=!0)};Yh[1024]=function(a,b){var c=a+this.offset;b=b>>this.V.md|b<<8-this.V.md&255;var d;d=(b|b<<8|b<<16|b<<24)&this.V.he|this.V.Pe;d=d&this.V.eb|this.ia[c]&~this.V.eb;d=d&this.V.mb|this.V.yb&~this.V.mb;this.ia[c]!=d&&(this.ia[c]=d,this.Ha=!0)}; +Yh[1536]=function(a,b){var c=a+this.offset;b=b>>this.V.md|b<<8-this.V.md&255;var d;d=(b|b<<8|b<<16|b<<24)&this.V.he|this.V.Pe;d&=this.V.yb;d=d&this.V.eb|this.ia[c]&~this.V.eb;d=d&this.V.mb|this.V.yb&~this.V.mb;this.ia[c]!=d&&(this.ia[c]=d,this.Ha=!0)};Yh[2560]=function(a,b){var c=a+this.offset;b=b>>this.V.md|b<<8-this.V.md&255;var d;d=(b|b<<8|b<<16|b<<24)&this.V.he|this.V.Pe;d|=this.V.yb;d=d&this.V.eb|this.ia[c]&~this.V.eb;d=d&this.V.mb|this.V.yb&~this.V.mb;this.ia[c]!=d&&(this.ia[c]=d,this.Ha=!0)}; +Yh[3584]=function(a,b){var c=a+this.offset;b=b>>this.V.md|b<<8-this.V.md&255;var d;d=(b|b<<8|b<<16|b<<24)&this.V.he|this.V.Pe;d^=this.V.yb;d=d&this.V.eb|this.ia[c]&~this.V.eb;d=d&this.V.mb|this.V.yb&~this.V.mb;this.ia[c]!=d&&(this.ia[c]=d,this.Ha=!0)};Yh[768]=function(a,b){a+=this.offset;var c,d=a&-2;c=this.V.eb&(d==a?16711935:-16711936);c=(b|b<<8|b<<16|b<<24)&c|this.ia[d]&~c;c=c&this.V.mb|this.V.yb&~this.V.mb;this.ia[d]!=c&&(this.ia[d]=c,this.Ha=!0)}; Yh[4096]=function(a){a+=this.offset;var b=this.ia[a]&~this.V.eb|this.V.yb&this.V.eb;this.ia[a]!=b&&(this.ia[a]=b,this.Ha=!0)};Yh[8192]=function(a,b){var c=a+this.offset,d=Oh[b&15],d=d&this.V.eb|this.ia[c]&~this.V.eb,d=d&this.V.mb|this.V.yb&~this.V.mb;this.ia[c]!=d&&(this.ia[c]=d,this.Ha=!0)};Yh[24576]=function(a,b){var c=a+this.offset,d=Oh[b&15],d=d&this.V.yb,d=d&this.V.eb|this.ia[c]&~this.V.eb,d=d&this.V.mb|this.V.yb&~this.V.mb;this.ia[c]!=d&&(this.ia[c]=d,this.Ha=!0)}; Yh[40960]=function(a,b){var c=a+this.offset,d=Oh[b&15],d=d|this.V.yb,d=d&this.V.eb|this.ia[c]&~this.V.eb,d=d&this.V.mb|this.V.yb&~this.V.mb;this.ia[c]!=d&&(this.ia[c]=d,this.Ha=!0)};Yh[57344]=function(a,b){var c=a+this.offset,d=Oh[b&15],d=d^this.V.yb,d=d&this.V.eb|this.ia[c]&~this.V.eb,d=d&this.V.mb|this.V.yb&~this.V.mb;this.ia[c]!=d&&(this.ia[c]=d,this.Ha=!0)}; -function Zh(a){var b=[];if(void 0!==a.wh){b[0]=a.Yc;b[1]=a.Ac;b[2]=a.Zf;b[3]=a.Hg;b[4]=a.Ic|a.vh<<8;b[5]=a.mc;if(5==a.wh){var c=[];c[0]=a.Xd;c[1]=a.Ke;c[2]=a.qe;c[3]=a.ek;c[4]=a.Ah;c[5]=a.Pi;c[6]=a.yf;c[7]=a.Og;c[8]=a.Si;c[9]=a.Ti;c[10]=a.xf;c[11]=a.bf;c[12]=a.yb;c[13]=[a.Ta,a.Kb,a.Uc];var d;a:if(d=a.ue){var e=0,f=[];if(void 0!==d[0])for(var g=0;2>g;g++)for(var h=g;h>1;f[e++]=r;h=t}if(f.lengthg;g++)for(var h=g;h>1;f[e++]=r;h=t}if(f.length>1&255,d=d>>8&-129,d>>4==(d&15)&&(d^=15)):(c=d&255,d=(d&256?7:112)|8&d>>8),Gb(this.ja,b,c|d<<8);sc(this,!0)}};function fi(a){a.ga.Ah&1?(a.Tc=a.qi,a.gc=a.ga):(a.Tc=a.ga,a.gc=a.fh)}k.save=function(){var a=new Pd(this);a.set(0,Zh(this.qi));a.set(1,Zh(this.fh));a.set(2,[this.ee,this.md,this.de]);a.set(3,Zh(this.ga));return a.data()}; -k.restore=function(a){var b=a[2];this.ee=b[0];this.md=b[1];this.de=b[2];this.Ea=null;this.Tc=this.qi=new Qh(this,1,a[0]);this.gc=this.fh=new Qh(this,3,a[1]);this.ga=new Qh(this,5,a[3],this.Uc);this.ga.Yc&&fi(this);gi(this);if(!ii(this))return!1;ji(this);return!0}; -k.Co=function(a,b,c){if(c)this.wa("Unable to load font ROM image (error "+c+")");else{try{var d=eval("("+b+")");if(!d.length){m("Empty font ROM image: "+a);return}if(1==d.length){m(d[0]);return}if(8192==d.length)hh(this,d,[0,6144]);else{this.wa("Unrecognized font data length ("+d.length+")");return}}catch(e){this.wa("Font ROM data error: "+e.message);return}p(this)}}; -function ki(a,b){if(1==b)return a.sd[0]=Kh[0],a.sd[1]=Kh[7],a.sd;if(2==b){var c=a.Ea.Zf;if(a.Ea===a.ga){var d=a.ga.qe[0],c=d&7;d&16&&(c|=8);18!=a.ga.qe[1]&&(c|=32)}a.sd[0]=Kh[c&15];c=c&32?Mh:Lh;for(d=0;dPa||!fa?Pa:8,qe=Ag.createImageData(t.nc,t.oc),Qa=0;256>Qa;Qa++){for(nb= -0;nb=Pa-2,nj=mb[nb>(8<=Tb&&176<=Qa&&223>=Qa?7:Tb)?H:qc;ni(qe,Bg,Cg,Dg);U&&ni(qe,Bg+1,Cg,Dg)}Ag.putImageData(qe,(Qa&15)*t.nc,(Qa>>4)*t.oc)}t.af[L]="#"+ea(H[0])+ea(H[1])+ea(H[2]);t.rk[L]=H;t.ei[L]=gd;t=!0}}a.Ld[b]=I;return t}function oi(a){0a.Ae&&(a.Ae=0):a.Ae=-1} -function ji(a){if(a.Qb){for(var b=10;15>=b;b++)if(null==a.Ea.mc[b])return;var c=a.Ea.mc[10],b=c&31,d=a.Ea.mc[11]&31,e=a.Ea.mc[9]&31,f=!1;a.Ea===a.ga&&(f=!0,7!=e||4!=b||d||(d=7));if(c&32||b>d&&!f||b>e)pi(a);else{c=a.Ea.mc[15]+((a.Ea.mc[14]&63)<<8);a.Jc!=c&&(pi(a),a.Jc=c);d=d-b+1;if(a.Jm!=b||a.Gk!=d)a.Jm=b,a.Gk=d;a.Vd=e+1;oi(a)}}} -function pi(a){if(0<=a.Jc){if(void 0!==a.fc){var b=a.fc[a.Jc];if(b&131072){var b=b&-131073,c=a.Jc%a.zb,d=Math.floor(a.Jc/a.zb);a.Qb&&a.Ld[a.Qb]&&(a.mf&&qi(a,c,d,b,a.mf),qi(a,c,d,b));a.fc[a.Jc]=b}}a.Jc=-1}} -function ri(a){var b;a=a.Ea;var c=a.bf[5];if(null!=c){b=2;var d=512,e=a.bf[3]&31;switch(c&3){case 0:if(e){d=1024;switch(e&24){case 8:d=1536;break;case 16:d=2560;break;case 24:d=3584}a.ld=e&7}break;case 1:d=4096;break;case 2:switch(e&24){default:d=8192;break;case 8:d=24576;break;case 16:d=40960;break;case 24:d=57344}}c&8&&(b=16);c&16&&(b|=1,d|=256);b|=d}return b}k.me=function(a){var b=this.Ea;null!=a&&b&&a!=b.Xi&&(b.Yh(a),this.ja.Yh(b.Ta,b.Kb,b.Ri()))}; -function ii(a,b){var c,d=a.de,e=a.Ea;if(e)if(1==e.wh)d=Fh;else if(5==e.wh){var d=null,f=e.Uc>>2,g=32768f&&(d=c?13:14):c&&(d-=2));c=ri(a)}}else e.Ac&8&&(e.Ac&2?(d=e.Ac&16?6:5,e.Ac&4||--d):(d=e.Ac&1?3:1,e.Ac&4&&--d)); -else a.de=null,null==d&&(d=a.md);if(!hi(a,d,b))return!1;a.me(c);return!0} -function hi(a,b,c){if(null!=b&&(b!=a.de||c)){a.Sm=0;a.de=b;b=a.Ea||(b==Fh?a.Tc:a.gc);if(b!=a.Ea||b.Ta!=a.Ta||b.Kb!=a.Kb){pi(a);if(a.Ta){if(!Eb(a.ja,a.Ta,a.Kb))return!1;a.Ea&&(a.Ea.Yc=!1)}a.Ea=b;b.Yc=!0;a.Ta=b.Ta;a.Kb=b.Kb;if(!Cb(a.ja,b.Ta,b.Kb,3,b===a.ga?b:null))return!1}a.Qb=0;a.zb=a.Fh;a.sc=a.ej;a.Zi=Eh[Fh][2];b=0;var d=Eh[a.de];d&&(a.zb=d[0],a.sc=d[1],a.Zi=d[2],b=d[3]||0,a.Qb=d[4],4==a.ee&&a.Ea===a.ga&&3==a.Qb&&(7==a.ga.mc[9]?a.sc=43:a.Qb=5));a.hl=a.zb*a.sc;a.Ch=a.hl/a.Zi;a.ri=(a.Ch<<1)+b;a.Fk= -b?a.ri+b>>1:0;13<=a.de&&(a.Ch<<=1);a.Ld.length&&(a.xd=Math.floor(a.wd/a.zb),a.yd=Math.floor(a.Wd/a.sc),a.Qb?(b=a.Ld[a.Qb],d=a.Ld[a.Qb<<1],a.mn&&80==a.zb?d&&a.xd>=3*d.nc>>2&&(a.Qb<<=1,b=d):(d&&a.xd>=d.nc&&(a.Qb<<=1,b=d),b&&(a.xd=b.nc,a.yd=b.oc)),a.bg=a.cg=0,b&&(a.bg=a.zb*b.nc,a.cg=a.sc*b.oc)):(a.xd=a.yd=1,a.bg=a.zb,a.cg=a.sc),a.yh=a.Wc.createImageData(a.bg,a.cg),a.kf=window.document.createElement("canvas"),a.kf.width=a.bg,a.kf.height=a.cg,a.mf=a.kf.getContext("2d"),a.hk=a.ik=0,a.xi=a.wd,a.yi=a.Wd, -b=a.wd-a.zb*a.xd,d=a.Wd-a.sc*a.yd,0>1,a.xi-=b),0>1,a.yi-=d),b||d)&&(a.Wc.fillStyle=a.Yf.style.backgroundColor,a.Wc.fillRect(0,0,a.wd,a.Wd));!1!==c?sc(a,!0):si(a,!0)}return!0}function ni(a,b,c,d){b=(b+c*a.width)*d.length;a.data[b]=d[0];a.data[b+1]=d[1];a.data[b+2]=d[2];a.data[b+3]=d[3]}function si(a,b){var c;if(b){if(c=a.Ch,void 0===a.fc||a.fc.length!=c)a.fc=Array(c)}else{if(void 0===a.fc)return;c=a.fc.length}for(var d=0;d>8;d=g&15;var h=a.Ld[a.Qb];h.Mf&&(d=h.Mf[d]);var r=g>>4&15;h.Mf&&(r=h.Mf[r]);e?(b*=h.nc,c*=h.oc,e.fillStyle=h.af[r],e.fillRect(b,c,h.nc,h.oc)):(b=b*a.xd+a.hk,c=c*a.yd+a.ik,a.Wc.fillStyle=h.af[r],a.Wc.fillRect(b,c,a.xd,a.yd));g&256&&(r=(f&15)*h.nc,f=(f>>4)*h.oc,e?e.drawImage(h.ei[d],r,f,h.nc,h.oc,b,c,h.nc,h.oc):a.Wc.drawImage(h.ei[d],r,f,h.nc,h.oc,b,c,a.xd,a.yd));g&512&&(f=a.Jm,g=a.Gk,e?(a.Vd&&a.Vd!==h.oc&&(f=Math.floor(f*h.oc/a.Vd),g=Math.floor(g*h.oc/a.Vd)), -e.fillStyle=h.af[d],e.fillRect(b,c+f,h.nc,g)):(a.Vd&&a.Vd!==a.yd&&(f=Math.floor(f*a.yd/a.Vd),g=Math.floor(g*a.yd/a.Vd)),a.Wc.fillStyle=h.af[d],a.Wc.fillRect(b,c+f,a.xd,g)))} -function sc(a,b){if(a.ea.Zb){var c=!1;a.Ea&&(a.Ea===a.ga?a.ga.Ke&32&&(c=!0):a.Ea.Ac&8&&(c=!0));if(c||b){if(b)si(a,!0);else if(void 0===a.fc)return;var d=!1;!(b||++a.Sm&15)&&0<=a.Ae&&(a.Ae++,d=!0);var e=0,f=a.hl,c=a.Ea.Ta,g=c+a.Ea.Kb,h=(a.Ea.mc[12]<<8)+a.Ea.mc[13];a.Qb&&(h<<=1);var c=c+h,r=a.ri;c+r>g&&(r=g-c,0>r&&(r=0));g=c+r;if(h=!b){for(var h=a.ja,t=!0,B=c>>>h.Ra;0a.Jc)return;e=a.Jc;f= -e+1}}if(a.Qb){if(a.Ld[a.Qb]){d=0;h=a.ze=0;r=1048575;a.Ea.Ac&32&&(h=32768,r&=~h,a.Ae&2||(r&=-65537));for(c+=e<<1;c>8|(I&255)<<8;H=h;var Pa=16;B>=r))>>(Pa-=r);ni(a.yh,B++,L,t[qc])}B>ba&&(ba=B);L=Ca&&(Ca=L+1)}e+=2;g++;if(B>=a.zb){B=0;L+=2;if(L>a.sc)break;L==a.sc&&(L=1,e=c+a.Fk)}}Ufa;fa++)Ca=Ph[ba&-2139062144]||0,ni(a.yh,h++,r,g[Ca]),ba<<=1;h>B&&(B=h);r=U&&(U=r+1)}e++;if(h>=a.zb&&(h=0,++r>a.sc))break}t>2),a=this.ga.ek&-17|(this.Ug&1<e&&(e=0);e%b.bj>b.wo&&(c|=1);e%=b.kl;e>b.yo&&(c|=8);b.ij=d-e;b===a.ga?(c|=b.Hg&48^48,b.Xd=!1):c=(b.Hg^=9)|240;return b.Hg=c} -var $h={948:Y.prototype.Xn,949:Y.prototype.Wn,952:Y.prototype.Yn,954:Y.prototype.Zn,980:Y.prototype.Fn,981:Y.prototype.En,984:Y.prototype.Gn,985:Y.prototype.Dn,986:Y.prototype.Hn},ai={948:Y.prototype.jp,949:Y.prototype.ip,952:Y.prototype.kp,980:Y.prototype.To,981:Y.prototype.So,984:Y.prototype.Uo,985:Y.prototype.Ro},bi={960:Y.prototype.cl,961:Y.prototype.cl,962:Y.prototype.ko,964:Y.prototype.jo,965:Y.prototype.io,970:Y.prototype.Qn,972:Y.prototype.Pn,974:Y.prototype.On,975:Y.prototype.Nn},ci={954:Y.prototype.nm, -960:Y.prototype.mm,961:Y.prototype.mm,962:Y.prototype.mp,964:Y.prototype.tp,965:Y.prototype.sp,970:Y.prototype.ep,972:Y.prototype.dp,974:Y.prototype.cp,975:Y.prototype.bp,986:Y.prototype.nm}; +k.reset=function(){var a=!0,b=0;this.ca&&(b=hg(this.ca));var c=!1;if(this.za)switch(this.za){case "ega":var c=!0,d=Hh[this.Vg];d&&(b=d[0]);b||(b=4);break;case "mda":b=3;break;default:b=2}this.ee!==b&&(this.ee=b,a=!0);this.Ea=null;this.Uc=this.ri=new Qh(this,1);this.hc=this.gh=new Qh(this,3);c?(this.ga=new Qh(this,5,null,this.Vc),fi(this)):this.ga=new Qh;gi(this);this.de=null;this.nd=3==b?Fh:3;this.Ae=this.Kc=-1;this.ze=0;hi(this,this.nd);if(this.Ea.Ta&&a){a=this.Ea.Ta+this.si;for(b=this.Ea.Ta;b>1&255,d=d>>8&-129,d>>4==(d&15)&&(d^=15)):(c=d&255,d=(d&256?7:112)|8&d>>8),Gb(this.ja,b,c|d<<8);sc(this,!0)}};function fi(a){a.ga.Bh&1?(a.Uc=a.ri,a.hc=a.ga):(a.Uc=a.ga,a.hc=a.gh)}k.save=function(){var a=new Pd(this);a.set(0,Zh(this.ri));a.set(1,Zh(this.gh));a.set(2,[this.ee,this.nd,this.de]);a.set(3,Zh(this.ga));return a.data()}; +k.restore=function(a){var b=a[2];this.ee=b[0];this.nd=b[1];this.de=b[2];this.Ea=null;this.Uc=this.ri=new Qh(this,1,a[0]);this.hc=this.gh=new Qh(this,3,a[1]);this.ga=new Qh(this,5,a[3],this.Vc);this.ga.Zc&&fi(this);gi(this);if(!ii(this))return!1;ji(this);return!0}; +k.Do=function(a,b,c){if(c)this.va("Unable to load font ROM image (error "+c+")");else{try{var d=eval("("+b+")");if(!d.length){m("Empty font ROM image: "+a);return}if(1==d.length){m(d[0]);return}if(8192==d.length)hh(this,d,[0,6144]);else{this.va("Unrecognized font data length ("+d.length+")");return}}catch(e){this.va("Font ROM data error: "+e.message);return}p(this)}}; +function ki(a,b){if(1==b)return a.sd[0]=Kh[0],a.sd[1]=Kh[7],a.sd;if(2==b){var c=a.Ea.Zf;if(a.Ea===a.ga){var d=a.ga.qe[0],c=d&7;d&16&&(c|=8);18!=a.ga.qe[1]&&(c|=32)}a.sd[0]=Kh[c&15];c=c&32?Mh:Lh;for(d=0;dPa||!fa?Pa:8,qe=Ag.createImageData(t.oc,t.pc),Qa=0;256>Qa;Qa++){for(nb= +0;nb=Pa-2,nj=mb[nb>(8<=Tb&&176<=Qa&&223>=Qa?7:Tb)?H:qc;ni(qe,Bg,Cg,Dg);U&&ni(qe,Bg+1,Cg,Dg)}Ag.putImageData(qe,(Qa&15)*t.oc,(Qa>>4)*t.pc)}t.af[L]="#"+ea(H[0])+ea(H[1])+ea(H[2]);t.sk[L]=H;t.fi[L]=gd;t=!0}}a.Ld[b]=I;return t}function oi(a){0a.Ae&&(a.Ae=0):a.Ae=-1} +function ji(a){if(a.Qb){for(var b=10;15>=b;b++)if(null==a.Ea.nc[b])return;var c=a.Ea.nc[10],b=c&31,d=a.Ea.nc[11]&31,e=a.Ea.nc[9]&31,f=!1;a.Ea===a.ga&&(f=!0,7!=e||4!=b||d||(d=7));if(c&32||b>d&&!f||b>e)pi(a);else{c=a.Ea.nc[15]+((a.Ea.nc[14]&63)<<8);a.Kc!=c&&(pi(a),a.Kc=c);d=d-b+1;if(a.Km!=b||a.Hk!=d)a.Km=b,a.Hk=d;a.Vd=e+1;oi(a)}}} +function pi(a){if(0<=a.Kc){if(void 0!==a.gc){var b=a.gc[a.Kc];if(b&131072){var b=b&-131073,c=a.Kc%a.zb,d=Math.floor(a.Kc/a.zb);a.Qb&&a.Ld[a.Qb]&&(a.mf&&qi(a,c,d,b,a.mf),qi(a,c,d,b));a.gc[a.Kc]=b}}a.Kc=-1}} +function ri(a){var b;a=a.Ea;var c=a.bf[5];if(null!=c){b=2;var d=512,e=a.bf[3]&31;switch(c&3){case 0:if(e){d=1024;switch(e&24){case 8:d=1536;break;case 16:d=2560;break;case 24:d=3584}a.md=e&7}break;case 1:d=4096;break;case 2:switch(e&24){default:d=8192;break;case 8:d=24576;break;case 16:d=40960;break;case 24:d=57344}}c&8&&(b=16);c&16&&(b|=1,d|=256);b|=d}return b}k.me=function(a){var b=this.Ea;null!=a&&b&&a!=b.Yi&&(b.Zh(a),this.ja.Zh(b.Ta,b.Kb,b.Si()))}; +function ii(a,b){var c,d=a.de,e=a.Ea;if(e)if(1==e.xh)d=Fh;else if(5==e.xh){var d=null,f=e.Vc>>2,g=32768f&&(d=c?13:14):c&&(d-=2));c=ri(a)}}else e.Bc&8&&(e.Bc&2?(d=e.Bc&16?6:5,e.Bc&4||--d):(d=e.Bc&1?3:1,e.Bc&4&&--d)); +else a.de=null,null==d&&(d=a.nd);if(!hi(a,d,b))return!1;a.me(c);return!0} +function hi(a,b,c){if(null!=b&&(b!=a.de||c)){a.Tm=0;a.de=b;b=a.Ea||(b==Fh?a.Uc:a.hc);if(b!=a.Ea||b.Ta!=a.Ta||b.Kb!=a.Kb){pi(a);if(a.Ta){if(!Eb(a.ja,a.Ta,a.Kb))return!1;a.Ea&&(a.Ea.Zc=!1)}a.Ea=b;b.Zc=!0;a.Ta=b.Ta;a.Kb=b.Kb;if(!Cb(a.ja,b.Ta,b.Kb,3,b===a.ga?b:null))return!1}a.Qb=0;a.zb=a.Gh;a.tc=a.fj;a.$i=Eh[Fh][2];b=0;var d=Eh[a.de];d&&(a.zb=d[0],a.tc=d[1],a.$i=d[2],b=d[3]||0,a.Qb=d[4],4==a.ee&&a.Ea===a.ga&&3==a.Qb&&(7==a.ga.nc[9]?a.tc=43:a.Qb=5));a.il=a.zb*a.tc;a.Dh=a.il/a.$i;a.si=(a.Dh<<1)+b;a.Gk= +b?a.si+b>>1:0;13<=a.de&&(a.Dh<<=1);a.Ld.length&&(a.xd=Math.floor(a.wd/a.zb),a.yd=Math.floor(a.Wd/a.tc),a.Qb?(b=a.Ld[a.Qb],d=a.Ld[a.Qb<<1],a.nn&&80==a.zb?d&&a.xd>=3*d.oc>>2&&(a.Qb<<=1,b=d):(d&&a.xd>=d.oc&&(a.Qb<<=1,b=d),b&&(a.xd=b.oc,a.yd=b.pc)),a.cg=a.dg=0,b&&(a.cg=a.zb*b.oc,a.dg=a.tc*b.pc)):(a.xd=a.yd=1,a.cg=a.zb,a.dg=a.tc),a.zh=a.Xc.createImageData(a.cg,a.dg),a.kf=window.document.createElement("canvas"),a.kf.width=a.cg,a.kf.height=a.dg,a.mf=a.kf.getContext("2d"),a.ik=a.jk=0,a.yi=a.wd,a.zi=a.Wd, +b=a.wd-a.zb*a.xd,d=a.Wd-a.tc*a.yd,0>1,a.yi-=b),0>1,a.zi-=d),b||d)&&(a.Xc.fillStyle=a.Yf.style.backgroundColor,a.Xc.fillRect(0,0,a.wd,a.Wd));!1!==c?sc(a,!0):si(a,!0)}return!0}function ni(a,b,c,d){b=(b+c*a.width)*d.length;a.data[b]=d[0];a.data[b+1]=d[1];a.data[b+2]=d[2];a.data[b+3]=d[3]}function si(a,b){var c;if(b){if(c=a.Dh,void 0===a.gc||a.gc.length!=c)a.gc=Array(c)}else{if(void 0===a.gc)return;c=a.gc.length}for(var d=0;d>8;d=g&15;var h=a.Ld[a.Qb];h.Mf&&(d=h.Mf[d]);var r=g>>4&15;h.Mf&&(r=h.Mf[r]);e?(b*=h.oc,c*=h.pc,e.fillStyle=h.af[r],e.fillRect(b,c,h.oc,h.pc)):(b=b*a.xd+a.ik,c=c*a.yd+a.jk,a.Xc.fillStyle=h.af[r],a.Xc.fillRect(b,c,a.xd,a.yd));g&256&&(r=(f&15)*h.oc,f=(f>>4)*h.pc,e?e.drawImage(h.fi[d],r,f,h.oc,h.pc,b,c,h.oc,h.pc):a.Xc.drawImage(h.fi[d],r,f,h.oc,h.pc,b,c,a.xd,a.yd));g&512&&(f=a.Km,g=a.Hk,e?(a.Vd&&a.Vd!==h.pc&&(f=Math.floor(f*h.pc/a.Vd),g=Math.floor(g*h.pc/a.Vd)), +e.fillStyle=h.af[d],e.fillRect(b,c+f,h.oc,g)):(a.Vd&&a.Vd!==a.yd&&(f=Math.floor(f*a.yd/a.Vd),g=Math.floor(g*a.yd/a.Vd)),a.Xc.fillStyle=h.af[d],a.Xc.fillRect(b,c+f,a.xd,g)))} +function sc(a,b){if(a.ea.Zb){var c=!1;a.Ea&&(a.Ea===a.ga?a.ga.Ke&32&&(c=!0):a.Ea.Bc&8&&(c=!0));if(c||b){if(b)si(a,!0);else if(void 0===a.gc)return;var d=!1;!(b||++a.Tm&15)&&0<=a.Ae&&(a.Ae++,d=!0);var e=0,f=a.il,c=a.Ea.Ta,g=c+a.Ea.Kb,h=(a.Ea.nc[12]<<8)+a.Ea.nc[13];a.Qb&&(h<<=1);var c=c+h,r=a.si;c+r>g&&(r=g-c,0>r&&(r=0));g=c+r;if(h=!b){for(var h=a.ja,t=!0,B=c>>>h.Ra;0a.Kc)return;e=a.Kc;f= +e+1}}if(a.Qb){if(a.Ld[a.Qb]){d=0;h=a.ze=0;r=1048575;a.Ea.Bc&32&&(h=32768,r&=~h,a.Ae&2||(r&=-65537));for(c+=e<<1;c>8|(I&255)<<8;H=h;var Pa=16;B>=r))>>(Pa-=r);ni(a.zh,B++,L,t[qc])}B>ba&&(ba=B);L=Ca&&(Ca=L+1)}e+=2;g++;if(B>=a.zb){B=0;L+=2;if(L>a.tc)break;L==a.tc&&(L=1,e=c+a.Gk)}}Ufa;fa++)Ca=Ph[ba&-2139062144]||0,ni(a.zh,h++,r,g[Ca]),ba<<=1;h>B&&(B=h);r=U&&(U=r+1)}e++;if(h>=a.zb&&(h=0,++r>a.tc))break}t>2),a=this.ga.fk&-17|(this.Vg&1<e&&(e=0);e%b.cj>b.xo&&(c|=1);e%=b.ll;e>b.zo&&(c|=8);b.jj=d-e;b===a.ga?(c|=b.Ig&48^48,b.Xd=!1):c=(b.Ig^=9)|240;return b.Ig=c} +var $h={948:Y.prototype.Yn,949:Y.prototype.Xn,952:Y.prototype.Zn,954:Y.prototype.$n,980:Y.prototype.Gn,981:Y.prototype.Fn,984:Y.prototype.Hn,985:Y.prototype.En,986:Y.prototype.In},ai={948:Y.prototype.kp,949:Y.prototype.jp,952:Y.prototype.lp,980:Y.prototype.Uo,981:Y.prototype.To,984:Y.prototype.Vo,985:Y.prototype.So},bi={960:Y.prototype.dl,961:Y.prototype.dl,962:Y.prototype.lo,964:Y.prototype.ko,965:Y.prototype.jo,970:Y.prototype.Rn,972:Y.prototype.Qn,974:Y.prototype.Pn,975:Y.prototype.On},ci={954:Y.prototype.om, +960:Y.prototype.nm,961:Y.prototype.nm,962:Y.prototype.np,964:Y.prototype.up,965:Y.prototype.tp,970:Y.prototype.fp,972:Y.prototype.ep,974:Y.prototype.dp,975:Y.prototype.cp,986:Y.prototype.om}; za(function(){for(var a=Ta(window.document,"pcjs","video"),b=0;bMissing <canvas> support; try a new web browser.";break}e.setAttribute("class","pcjs-canvas");e.setAttribute("width",d.screenWidth);e.setAttribute("height",d.screenHeight);e.style.backgroundColor=d.screenColor;e.style.height="auto";0<=(window?window.navigator.userAgent:"").indexOf("MSIE")&&(c.onresize=function(a,b,c,d){return function(){b.style.height= (a.clientWidth*d/c|0)+"px"}}(c,e,d.screenWidth,d.screenHeight),c.onresize());c.appendChild(e);var f=window.document.createElement("textarea");ua("iOS")&&(f.setAttribute("autocapitalize","off"),f.setAttribute("autocorrect","off"));c.appendChild(f);var g=e.getContext("2d"),d=new Y(d,e,g,f,c);Sa(d,c)}}); -function wi(a){this.Zk=a.adapter;switch(this.Zk){case 1:this.Wj=1016;this.sg=4;break;case 2:this.Wj=760;this.sg=3;break;default:m("Unrecognized serial adapter #"+this.Zk);return}this.Td=null;n.call(this,"SerialPort",a,wi);var b=a.binding,c;a=xi;b&&(void 0===c&&(c="Panel"),(c=Oa(c,this.id))&&(b=c.oa[b])&&this.Eb(null,a,b))}La(n,wi);var xi="buffer";k=wi.prototype;k.uk=function(a,b){return a==this.xh?(this.be=b,this):null}; -k.Eb=function(a,b,c){var d=this;switch(b){case xi:return this.oa[b]=this.Td=c,c.onkeydown=function(a){a=a||window.event;var b=a.keyCode;8===b&&(a.preventDefault&&a.preventDefault(),yi(d,[b]))},c.onkeypress=function(a){a=a||window.event;yi(d,[a.which||a.keyCode])},!0}return!1};k.zc=function(a,b,c,d){this.ja=b;this.U=c;this.Xa=d;this.ca=bb(a,"ChipSet");Ib(b,this,zi,this.Wj);Kb(b,this,Ai,this.Wj);p(this)};k.bc=function(a,b){if(!b)if(!a||!this.restore)this.reset();else if(!this.restore(a))return!1;return!0}; -k.ac=function(a){return a&&this.save?this.save():!0};k.reset=function(){this.$d()};k.save=function(){var a=new Pd(this),b=0,c=[];c[b++]=this.ni;c[b++]=this.Ak;c[b++]=this.Xe;c[b++]=this.Vg;c[b++]=this.Od;c[b++]=this.xe;c[b++]=this.dd;c[b++]=this.Ec;c[b++]=this.yk;c[b]=this.Nf;a.set(0,c);return a.data()};k.restore=function(a){return this.$d(a[0])}; -k.$d=function(a){var b=0;void 0===a&&(a=[0,0,384,0,1,0,0,96,48,[]]);this.ni=a[b++];this.Ak=a[b++];this.Xe=a[b++];this.Vg=a[b++];this.Od=a[b++];this.xe=a[b++];this.dd=a[b++];this.Ec=a[b++];this.yk=a[b++];this.Nf=a[b];return!0};function yi(a,b){a.Nf=a.Nf.concat(b);Bi(a)}function Bi(a){0>8:this.Vg};k.Sn=function(){return this.Od};k.Tn=function(){return this.xe};k.Vn=function(){return this.dd};k.Un=function(){return this.Ec};k.ao=function(){return this.yk}; -k.up=function(a,b){if(this.xe&128)this.Xe=this.Xe&-256|b;else{this.Ak=b;this.Ec&=-97;var c;this.Td?(13!=b&&(8==b?this.Td.value=this.Td.value.slice(0,-1):(this.Td.value+=String.fromCharCode(b),this.Td.scrollTop=this.Td.scrollHeight)),c=!0):c=!1;c&&(this.Ec|=96)}};k.fp=function(a,b){this.xe&128?this.Xe=this.Xe&255|b<<8:this.Vg=b};k.gp=function(a,b){this.xe=b}; -k.hp=function(a,b){var c=this.dd;this.dd=b;if(this.be&&(c^b)&3){var c=this.be,d=this.dd,e=3==(d&3);if(e){if(!c.Yc){var f=!1;c.dd&2||(c.reset(),c.cc("serial mouse reset"),f=!0);c.dd&1||(c.cc("serial mouse ID requested"),f=!0);f&&(yi(c.ag,[77,77]),c.cc("serial mouse ID sent"));Ci(c,c.Da);c.setActive(e)}}else c.Yc&&(c.cc("serial mouse inactive"),Di(c.Da),c.setActive(e));c.dd=d}}; -var zi={0:wi.prototype.ho,1:wi.prototype.Rn,2:wi.prototype.Sn,3:wi.prototype.Tn,4:wi.prototype.Vn,5:wi.prototype.Un,6:wi.prototype.ao},Ai={0:wi.prototype.up,1:wi.prototype.fp,3:wi.prototype.gp,4:wi.prototype.hp};za(function(){for(var a=Ta(window.document,"pcjs","serial"),b=0;bthis.Id||0>this.Jd)this.Id=a.clientX,this.Jd=a.clientY;this.ph?(this.Ye=a.movementX||a.mozMovementX||a.webkitMovementX||0,this.Ze=a.movementY||a.mozMovementY||a.webkitMovementY||0):(this.Ye=a.clientX-this.Id,this.Ze=a.clientY-this.Jd);(this.Ye||this.Ze)&&Fi(this);this.Id=a.clientX;this.Jd=a.clientY}}; -k.ti=function(a,b){if(this.Yc&&this.U&&this.U.ea.Ib){var c;!(c=!1!==this.ph)&&(c=this.video)&&(c=this.video,c=c.fn?c.Le(!0):!1);c||(this.ph=null);switch(a){case 0:this.kh!=b&&(this.kh=b,Fi(this));break;case 2:this.lh!=b&&(this.lh=b,Fi(this))}}};function Fi(a){yi(a.ag,[64|(a.kh?32:0)|(a.lh?16:0)|(a.Ze&192)>>4|(a.Ye&192)>>6,a.Ye&63,a.Ze&63]);a.Ye=a.Ze=0}za(function(){for(var a=Ta(window.document,"pcjs","mouse"),b=0;b>8:this.Wg};k.Tn=function(){return this.Od};k.Un=function(){return this.xe};k.Wn=function(){return this.ed};k.Vn=function(){return this.Fc};k.bo=function(){return this.zk}; +k.vp=function(a,b){if(this.xe&128)this.Xe=this.Xe&-256|b;else{this.Bk=b;this.Fc&=-97;var c;this.Td?(13!=b&&(8==b?this.Td.value=this.Td.value.slice(0,-1):(this.Td.value+=String.fromCharCode(b),this.Td.scrollTop=this.Td.scrollHeight)),c=!0):c=!1;c&&(this.Fc|=96)}};k.gp=function(a,b){this.xe&128?this.Xe=this.Xe&255|b<<8:this.Wg=b};k.hp=function(a,b){this.xe=b}; +k.ip=function(a,b){var c=this.ed;this.ed=b;if(this.be&&(c^b)&3){var c=this.be,d=this.ed,e=3==(d&3);if(e){if(!c.Zc){var f=!1;c.ed&2||(c.reset(),c.cc("serial mouse reset"),f=!0);c.ed&1||(c.cc("serial mouse ID requested"),f=!0);f&&(yi(c.ag,[77,77]),c.cc("serial mouse ID sent"));Ci(c,c.Da);c.setActive(e)}}else c.Zc&&(c.cc("serial mouse inactive"),Di(c.Da),c.setActive(e));c.ed=d}}; +var zi={0:wi.prototype.io,1:wi.prototype.Sn,2:wi.prototype.Tn,3:wi.prototype.Un,4:wi.prototype.Wn,5:wi.prototype.Vn,6:wi.prototype.bo},Ai={0:wi.prototype.vp,1:wi.prototype.gp,3:wi.prototype.hp,4:wi.prototype.ip};za(function(){for(var a=Ta(window.document,"pcjs","serial"),b=0;bthis.Id||0>this.Jd)this.Id=a.clientX,this.Jd=a.clientY;this.qh?(this.Ye=a.movementX||a.mozMovementX||a.webkitMovementX||0,this.Ze=a.movementY||a.mozMovementY||a.webkitMovementY||0):(this.Ye=a.clientX-this.Id,this.Ze=a.clientY-this.Jd);(this.Ye||this.Ze)&&Fi(this);this.Id=a.clientX;this.Jd=a.clientY}}; +k.vi=function(a,b){if(this.Zc&&this.U&&this.U.ea.Ib){var c;!(c=!1!==this.qh)&&(c=this.video)&&(c=this.video,c=c.gn?c.Le(!0):!1);c||(this.qh=null);switch(a){case 0:this.lh!=b&&(this.lh=b,Fi(this));break;case 2:this.mh!=b&&(this.mh=b,Fi(this))}}};function Fi(a){yi(a.ag,[64|(a.lh?32:0)|(a.mh?16:0)|(a.Ze&192)>>4|(a.Ye&192)>>6,a.Ye&63,a.Ze&63]);a.Ye=a.Ze=0}za(function(){for(var a=Ta(window.document,"pcjs","mouse"),b=0;b>2;var e=d=0,a=new DataView(a,0,c);g.Sa=Array(g.ob);for(c=0;cb.indexOf("/api/v1/dump")&&(a=ha(b),"json"==a?f=encodeURI(b):"demandrw"==this.mode||"demandro"==this.mode?(f=Ki(this,b),this.qh=!0):(c="path",d="&mbhd=10",!b.indexOf("http:")||!b.indexOf("ftp:")||0<="dsk ima img 360 720 12 144".split(" ").indexOf(a)?(c="disk",d="&mbhd=0"):-1!==b.indexOf("/",b.length-1)&&(c= -"dir"),f=oa()+"/api/v1/dump?"+c+"="+encodeURIComponent(b)+(this.sf?"":d)+"&format=json")),na(f,!0,null,this,this.an,b)}; -k.an=function(a,b,c,d){var e=null;this.tf=!1;var f=0>c&&this.ya&&!this.ya.ea.Zb;if(this.qh)c?this.V.wa('Unable to connect to disk "'+d+'" (error '+c+": "+b+")",f):(this.zd=!0,e=this);else if(c)this.V.wa('Unable to load disk "'+this.pd+'" (error '+c+")",f);else try{if(0g&&0b.indexOf("0x")&& +k.load=function(a,b,c,d,e){var f=b;if(!this.Je)if(this.qd=a,this.Se=b,this.Je=d,this.Ym=e||this.V,c){var g=this,h=new FileReader;h.onload=function(){var a=h.result,b,c=a?a.byteLength:0,d=ca[c];if(d){g.ob=d[0];g.pb=d[1];g.sb=d[2];g.cb=512;b=g.cb>>2;var e=d=0,a=new DataView(a,0,c);g.Sa=Array(g.ob);for(c=0;cb.indexOf("/api/v1/dump")&&(a=ha(b),"json"==a?f=encodeURI(b):"demandrw"==this.mode||"demandro"==this.mode?(f=Ki(this,b),this.rh=!0):(c="path",d="&mbhd=10",!b.indexOf("http:")||!b.indexOf("ftp:")||0<="dsk ima img 360 720 12 144".split(" ").indexOf(a)?(c="disk",d="&mbhd=0"):-1!==b.indexOf("/",b.length-1)&&(c= +"dir"),f=oa()+"/api/v1/dump?"+c+"="+encodeURIComponent(b)+(this.sf?"":d)+"&format=json")),na(f,!0,null,this,this.bn,b)}; +k.bn=function(a,b,c,d){var e=null;this.tf=!1;var f=0>c&&this.ya&&!this.ya.ea.Zb;if(this.rh)c?this.V.va('Unable to connect to disk "'+d+'" (error '+c+": "+b+")",f):(this.zd=!0,e=this);else if(c)this.V.va('Unable to load disk "'+this.qd+'" (error '+c+")",f);else try{if(0g&&0b.indexOf("0x")&& '["'!=b.substr(0,2)?JSON.parse(b.replace(/([a-z]+):/gm,'"$1":').replace(/\/\/[^\n]*/gm,"")):eval("("+b+")");if(h.length)if(1==h.length)m(h[0]);else{this.ob=h.length;this.pb=h[0].length;this.sb=h[0][0].length;var r=h[0][0][0];this.cb=r&&r.length||512;for(b=a=0;b>2,B=r.pattern;void 0===B&&(B=r.pattern=0);var I=r.data;if(void 0===I){var H=r.bytes;if(void 0!==H&&H.length){for(var f= -t<<2,L=H.length;Lb&&(b=0);2E3b&&(b=0);2E3>2,e=Array(d),f=0;f>2,e=a.data;a=a.pattern;for(var f=0;f>8&255;c[d++]=g>>16&255;c[d++]=g>>24&255}return c}function Pi(a,b){var c=-1;if(a&&b>2,c=(d>((b&3)<<3)&255;return c} -k.write=function(a,b,c){if(this.tf)return!1;if(b>2;b=(b&3)<<3;for(var g=d.length;g<=f;g++)d[g]=e;a.wc?f=a.Zc+a.wc&&(a.wc+=f-(a.Zc+a.wc)+1):(a.Zc=f,a.wc=1);d[f]=d[f]&~(255<>2;b=(b&3)<<3;for(var g=d.length;g<=f;g++)d[g]=e;a.xc?f=a.$c+a.xc&&(a.xc+=f-(a.$c+a.xc)+1):(a.$c=f,a.xc=1);d[f]=d[f]&~(255<=this.Sa.length||r>=this.Sa[h].length||t>=this.Sa[h][r].length){c="sector (CHS="+h+":"+r+":"+t+") out of range ("+ -b+" changes applied)";b=-1;break}if(this.tf){c="unable to modify write-protected disk";b=-1;break}e=g[f++];f=g[f++];g=e+f.length;if(h=this.Sa[h][r][t]){for(r=h.data.length;rb&&-2!=b&&this.V.wa("Unable to restore disk '"+this.pd+": "+c);return b}; +b+" changes applied)";b=-1;break}if(this.tf){c="unable to modify write-protected disk";b=-1;break}e=g[f++];f=g[f++];g=e+f.length;if(h=this.Sa[h][r][t]){for(r=h.data.length;rb&&-2!=b&&this.V.va("Unable to restore disk '"+this.qd+": "+c);return b}; k.toJSON=function(){var a=JSON.stringify(this.Sa),a=a.replace(/,"length":512/gm,"").replace(/,"pattern":0/gm,""),a=a.replace(/"(sector|length|data|pattern)":/gm,"$1:"),a=a.replace(/,"[^"]*":([0-9]+|true|false)/gm,"");return a=a.replace(/(sector|length|data|pattern):/gm,'"$1":')}; -function Qi(a){n.call(this,"FDC",a,Qi);this.dmaRead=this.zi;this.dmaWrite=this.Ai;this.dmaFormat=this.Ym;this.Be=null;if(a.autoMount&&(this.Be=a.autoMount,"string"==typeof this.Be))try{this.Be=eval("("+a.autoMount+")")}catch(b){m("FDC auto-mount error: "+b.message+" ("+a.autoMount+")"),this.Be=null}this.tc=[];this.Nk=!ua("Mobi")&&window&&"FileReader"in window}La(n,Qi);l={};aa={}; -var Ri={3:{vd:3,Sd:0,name:aa.pq},4:{vd:2,Sd:1,name:aa.nq},5:{vd:9,Sd:7,name:aa.Bq},6:{vd:9,Sd:7,name:aa.hq},7:{vd:2,Sd:0,name:aa.jq},8:{vd:1,Sd:2,name:aa.oq},10:{vd:2,Sd:7,name:aa.iq},13:{vd:6,Sd:7,name:aa.Up},15:{vd:3,Sd:0,name:aa.mq}};k=Qi.prototype; +function Qi(a){n.call(this,"FDC",a,Qi);this.dmaRead=this.Ai;this.dmaWrite=this.Bi;this.dmaFormat=this.Zm;this.Be=null;if(a.autoMount&&(this.Be=a.autoMount,"string"==typeof this.Be))try{this.Be=eval("("+a.autoMount+")")}catch(b){m("FDC auto-mount error: "+b.message+" ("+a.autoMount+")"),this.Be=null}this.uc=[];this.Ok=!ua("Mobi")&&window&&"FileReader"in window}La(n,Qi);l={};aa={}; +var Ri={3:{vd:3,Sd:0,name:aa.qq},4:{vd:2,Sd:1,name:aa.oq},5:{vd:9,Sd:7,name:aa.Cq},6:{vd:9,Sd:7,name:aa.iq},7:{vd:2,Sd:0,name:aa.kq},8:{vd:1,Sd:2,name:aa.pq},10:{vd:2,Sd:7,name:aa.jq},13:{vd:6,Sd:7,name:aa.Vp},15:{vd:3,Sd:0,name:aa.nq}};k=Qi.prototype; k.Eb=function(a,b,c){var d=this;switch(b){case "listDisks":return this.oa[b]=c,c.onchange=function(){var a=d.oa.descDisk,b=c.options[c.selectedIndex];if(a&&b){var g={};if(b=b.getAttribute("data-value"))try{g=eval("({"+b+"})")}catch(h){m("FDC option error: "+h.message)}b=g.desc;void 0===b&&(b="");g=g.href;void 0!==g&&(b=''+b+"");a.innerHTML=b}},!0;case "descDisk":case "listDrives":return this.oa[b]=c,c.onchange=function(){var a;a=c.value;var b=10,g;if(a){b||(b=16); -if("$"==a.charAt(0))b=16,a=a.substr(1);else if("0x"==a.substr(0,2))b=16,a=a.substr(2);else{var h=a.charAt(a.length-1).toLowerCase();"h"==h?(b=16,h=null):"."==h&&(b=10,h=null);null===h&&(a=a.substr(0,a.length-1))}var r,h=a;(b&&10!=b?16==b?null!==h.match(/^[0-9a-f]+$/i):1:null!==h.match(/^[0-9]+$/))&&!isNaN(r=parseInt(a,b))&&(g=r|0)}a=g;null!=a&&Si(d,a)},!0;case "loadDrive":return this.oa[b]=c,c.onclick=function(){var a=d.oa.listDisks;a&&Ti(d,a.options[a.selectedIndex].text,a.value)},!0;case "mountDrive":return this.Nk? -(this.oa[b]=c,c.addEventListener("change",function(){var a=c.children[0];a.children[1].disabled=!a.children[0].files.length}),c.onsubmit=function(a){if(a=a.currentTarget[1].files[0]){var b=a.name;Ti(d,ga(b,!0),b,a)}return!1}):c.parentNode.removeChild(c),!0}return!1};k.zc=function(a,b,c,d){this.ja=b;this.U=c;this.Xa=d;this.ya=a;this.ca=bb(a,"ChipSet");this.Ad();Ib(b,this,Ui);Kb(b,this,Vi);this.Nk&&Wi(this,"Local Disk","?");Wi(this,"Remote Disk","??");this.Rf()||p(this)}; -k.bc=function(a,b){if(!b){if(!a||!this.restore){if(this.reset(),this.ya.Li){this.tc=[];for(var c=0;ca.qa.restore(g)&&(e=!1);e&&a.qa&&void 0!==a.Na&&(a.Ja=a.qa.seek(a.qb,a.La,a.$a));return e};k.ck=function(){for(var a=0,b=[],c=0;ca.ob||f[1]>a.pb)&&(this.wa('Diskette "'+c+'" too large for drive '+String.fromCharCode(65+a.bb)),b=null);b?(a.qa=b,a.xm=c,a.Te=d,$i(this,c,d,b),f=b.info(),this.je|=128,this.wa('Mounted diskette "'+c+'" in drive '+String.fromCharCode(65+a.bb),a.He||e),a.Gh=f[0],a.qg=f[1],a.rg=f[2]):a.qf=!1;a.He&&(a.He=!1,--this.ye||p(this));Si(this,a.bb)}; +if("$"==a.charAt(0))b=16,a=a.substr(1);else if("0x"==a.substr(0,2))b=16,a=a.substr(2);else{var h=a.charAt(a.length-1).toLowerCase();"h"==h?(b=16,h=null):"."==h&&(b=10,h=null);null===h&&(a=a.substr(0,a.length-1))}var r,h=a;(b&&10!=b?16==b?null!==h.match(/^[0-9a-f]+$/i):1:null!==h.match(/^[0-9]+$/))&&!isNaN(r=parseInt(a,b))&&(g=r|0)}a=g;null!=a&&Si(d,a)},!0;case "loadDrive":return this.oa[b]=c,c.onclick=function(){var a=d.oa.listDisks;a&&Ti(d,a.options[a.selectedIndex].text,a.value)},!0;case "mountDrive":return this.Ok? +(this.oa[b]=c,c.addEventListener("change",function(){var a=c.children[0];a.children[1].disabled=!a.children[0].files.length}),c.onsubmit=function(a){if(a=a.currentTarget[1].files[0]){var b=a.name;Ti(d,ga(b,!0),b,a)}return!1}):c.parentNode.removeChild(c),!0}return!1};k.Ac=function(a,b,c,d){this.ja=b;this.U=c;this.Xa=d;this.ya=a;this.ca=bb(a,"ChipSet");this.Ad();Ib(b,this,Ui);Kb(b,this,Vi);this.Ok&&Wi(this,"Local Disk","?");Wi(this,"Remote Disk","??");this.Rf()||p(this)}; +k.bc=function(a,b){if(!b){if(!a||!this.restore){if(this.reset(),this.ya.Mi){this.uc=[];for(var c=0;ca.qa.restore(g)&&(e=!1);e&&a.qa&&void 0!==a.Na&&(a.Ja=a.qa.seek(a.qb,a.La,a.$a));return e};k.dk=function(){for(var a=0,b=[],c=0;ca.ob||f[1]>a.pb)&&(this.va('Diskette "'+c+'" too large for drive '+String.fromCharCode(65+a.bb)),b=null);b?(a.qa=b,a.ym=c,a.Te=d,$i(this,c,d,b),f=b.info(),this.je|=128,this.va('Mounted diskette "'+c+'" in drive '+String.fromCharCode(65+a.bb),a.He||e),a.Hh=f[0],a.rg=f[1],a.sg=f[2]):a.qf=!1;a.He&&(a.He=!1,--this.ye||p(this));Si(this,a.bb)}; function Wi(a,b,c){if(a=a.oa.listDisks){for(var d=0;d=this.fb&&(this.ra&=-81,this.ub=this.fb=0);return a}; -k.$o=function(a,b){this.fb=Ri[c].vd){var d=!1;this.ub=0;var c=this.Ia(),e,f,g,h,r,t=c&31;switch(t){case 3:this.Ia(l.qq);this.Ia(l.Xp);this.Ob();break;case 4:f=this.Ia(l.Jf);this.bb=f&3;e=this.xa[this.bb];this.Ob();this.dc((e.Ya&-16777216)>>>24,l.tq);break;case 5:case 6:f=this.Ia(l.Jf);d=f>>2&1;this.bb=f&3;e=this.xa[this.bb];e.La=d;f=e.qb=this.Ia(l.jk);g=this.Ia(l.kk);h=e.$a=this.Ia(l.mk);r=this.Ia(l.ci);e.nb=128<< -r;e.Pd=this.Ia(l.Sp);this.Ia(l.Lm);this.Ia(l.Rp);6==t?(t=e,t.Ya=72,t.qa&&(t.Ja=null,t.Ya=0,this.ca&&(Jg(this.ca,2,this,"dmaRead",t),Fg(this.ca,2)))):(t=e,t.Ya=72,t.qa&&(t.qa.tf?t.Ya=576:(t.Ja=null,t.Ya=0,this.ca&&(Jg(this.ca,2,this,"dmaWrite",t),Fg(this.ca,2)))));aj(this,e,c,d,f,g,h,r);d=!0;break;case 7:f=this.Ia(l.Jf);this.bb=f&3;e=this.xa[this.bb];e.qb=e.Nd=0;e.Ya=268435488;this.Ob();d=!0;break;case 8:e=this.xa[this.bb];e.La=0;this.Ob();this.dc(e.bb|e.La<<2|e.Ya&255,l.Nm);this.dc(e.qb,l.fq);this.bb= -this.bb+1&3;break;case 10:f=this.Ia(l.Jf);d=f>>2&1;this.bb=f&3;e=this.xa[this.bb];f=e.qb;g=e.La=d;h=e.$a=1;r=0;e.Ya=0;e.qa&&(e.Ja=e.qa.seek(e.qb,e.La,e.$a))?r=e.Ja.length:e.Ya=72;aj(this,e,c,d,f,g,h,r);d=!0;break;case 13:f=this.Ia(l.Jf);d=f>>2&1;this.bb=f&3;e=this.xa[this.bb];f=e.qb;g=e.La=d;h=1;r=this.Ia(l.ci);e.nb=128<>2&1,f=this.Ia(l.cq),e.qb+=f-e.Nd,0>e.qb&&(e.qb=0),e.qb>=e.ob&&(e.qb=e.ob-1),e.Nd=f,e.Ya=32,e.qb||(e.Ya|=268435456),this.Ob(),d=!0}0>>8,l.rq);a.dc((b.Ya&16711680)>>>16,l.sq);var r=0;if(e!=b.qb||f!=b.La)r=g=1;c&128&&(f^=r,d||(r=0));a.dc(e+r,l.jk);a.dc(f,l.kk);a.dc(g,l.mk);a.dc(h,l.ci)}k.Ia=function(){var a=this.ec[this.ub];this.ub++;return a};k.Ob=function(){this.ub=this.fb=0};k.dc=function(a){this.ec[this.fb++]=a};k.zi=function(a,b,c){void 0===b||0>b?this.Cb(a,c):c(-1,!1)};k.Ai=function(a,b){return void 0!==b&&0<=b?this.Fb(a,b):-1}; -k.Ym=function(a,b){return void 0!==b&&0<=b?this.gk(a,b):-1};k.Cb=function(a,b){var c=-1,d=null,e=0;if(!a.Ya&&a.qa){do{if(a.Ja&&(e=a.Na,0<=(c=Pi(a.Ja,a.Na++)))){d=a.Ja;break}a.Ja=a.qa.seek(a.qb,a.La,a.$a);if(!a.Ja){a.Ya=1088;break}a.Na=0;this.Qf(a)}while(1)}b(c,!1,d,e)};k.Fb=function(a,b){if(a.Ya||!a.qa)return-1;do{if(a.Ja&&a.qa.write(a.Ja,a.Na++,b))break;a.Ja=a.qa.seek(a.qb,a.La,a.$a);if(!a.Ja){a.Ya=8256;b=-1;break}a.Na=0;this.Qf(a)}while(1);return b}; -k.Qf=function(a){a.$a++;a.$a>=a.rg+1&&(a.$a=1,a.La++,a.La>=a.qg&&(a.La=0,a.qb++))};k.gk=function(a,b){if(a.Ya)return-1;a.Cc[a.lf++]=b;if(a.lf==a.Cc.length){a.qb=a.Cc[0];a.La=a.Cc[1];a.$a=a.Cc[2];a.nb=128<this.Fb(a,a.xk))return-1;a.eh++}a.eh>=a.Pd&&(b=-1);return b};var Ui={1012:Qi.prototype.Mn,1013:Qi.prototype.Kn,1015:Qi.prototype.Ln},Vi={1010:Qi.prototype.ap,1013:Qi.prototype.$o,1015:Qi.prototype.Zo}; -za(function(){for(var a=Ta(window.document,"pcjs","fdc"),b=0;b=e&&(this.Cg|=(f.type&3)<<(1-e<<1))}return d}; -k.ak=function(){var a=0,b=[];this.Ge?(b[a++]=this.ie,b[a++]=this.wm,b[a++]=this.ke,b[a++]=this.Th,b[a++]=this.Rh,b[a++]=this.Qh,b[a++]=this.Ff,b[a++]=this.ra,b[a++]=this.Yj,b[a++]=this.Sh):(b[a++]=this.Cg,b[a++]=this.ra,b[a++]=this.ec,b[a++]=this.ub,b[a++]=this.fb,b[a++]=this.vm,b[a++]=this.um,b[a++]=this.tm,b[a++]=this.wf);b[a]=this.ck();return b}; -k.Vi=function(a,b,c,d,e){var f=0,g=!0;void 0===d&&(d=[0,0,!1,Array(8)]);b.bb=a;b.errorCode=d[f++];b.Bm=d[f++];b.sf=d[f++];b.ef=d[f++];b.ff=d[f++];b.La=d[f++];b.pb=d[f++];b.pe=d[f++];b.$a=d[f++];b.Pd=d[f++];b.nb=d[f++];b.ah=this.Ge?0:1;b.name=c.name;void 0===b.name&&(b.name="Hard Drive");b.path=c.path;b.mode=c.mode||(b.path?"preload":"local");"demandro"!=b.mode&&"demandrw"!=b.mode||this.Zd()||(b.mode="local");b.type=c.type;if(void 0===b.type||void 0===bj[this.hg][b.type])b.type=this.qn;c=bj[this.hg][b.type]; -b.sb=c[2]||17;b.cb=c[3]||512;if(e&&this.ca&&(e=this.ca,c=b.type,e.ba)){var h=e.ba[18],h=a?h&240|c:h&15|c<<4;e.ba&&(e.ba[18]=h,kg(e))}void 0===b.qa&&(b.qa=null,this.wa("Type "+b.type+' "'+b.name+'" is fixed disk '+a,!0));gj(this,b);b.Na=d[f++];b.Ja=null;b.qa&&(a=d[f],void 0!==a&&0>b.qa.restore(a)&&(g=!1),g&&void 0!==b.Na&&(b.Ja=b.qa.seek(b.pe,b.La,b.$a+b.ah)));return g};k.ck=function(){for(var a=0,b=[],c=0;c=this.fb&&(this.ub=this.fb=0,this.ra&=-15);return a};k.wp=function(a,b){this.fb=c&&(this.ra|=2,this.ra&=-2,hj(this))}; -k.oo=function(){var a=this.ra;this.ub=this.Ma.cb?(b.ra=136,this.Cb(this.Ma,function(a){0<=a?(ij(b),b.ra=80):(b.ra=1,b.ie=16)},!1)):this.ra=80)}return a}; -k.Lo=function(a,b){this.Ma&&this.Ma.nb>=this.Ma.cb&&(0>this.Fb(this.Ma,b)?(this.ra=1,this.ie=16):1!=this.Ma.Na&&this.Ma.Na==this.Ma.cb&&(this.Ma.nb-=this.Ma.cb,this.ke=this.ke-1&255,ij(this),this.ra=80,this.Ma.nb>=this.Ma.cb&&(this.ra|=8)))};k.zn=function(){return this.ie};k.Qo=function(a,b){this.wm=b};k.An=function(){return this.ke};k.Oo=function(a,b){this.ke=b};k.Bn=function(){return this.Th};k.Po=function(a,b){this.Th=b};k.wn=function(){return this.Rh};k.Ko=function(a,b){this.Rh=b};k.vn=function(){return this.Qh}; -k.Jo=function(a,b){this.Qh=b};k.yn=function(){return this.Ff};k.Mo=function(a,b){this.Ff=b;this.ra=this.xa[this.Ff&16?1:0]?this.ra|64:this.ra&-65};k.Cn=function(){return this.ra};k.Io=function(a,b){this.Yj=b;this.ca&&Qg(this.ca,14);jj(this)};k.No=function(a,b){this.Sh&4&&!(b&4)&&(this.ie=1);this.Sh=b}; -function jj(a){var b=!1,c=a.Yj,d=a.Ff&16?1:0,e=a.Ff&15,f=a.Rh|(a.Qh&3)<<8,g=a.Th,h=a.ke||256;a.Ma=null;a.ie=0;a.ra=80;(d=a.xa[d])?(d.pe=f,d.La=e,d.$a=g,d.nb=h*d.cb,c=144<=c?c:c&240,d.Ja=null,d.Na=0,d.errorCode=0,a.Ma=d):c=-1;switch(c&240){case 32:a.ra=136;a.Cb(d,function(b){0<=b&&a.ca?(ij(a),a.ra=80):(a.ra=1,a.ie=16)},!1);break;case 48:a.ra=8;break;case 16:b=!0;break;case 64:b=!0;break;case 144:a.ie=1;b=!0;break;case 145:d.pb=e+1,d.sb=h,b=!0}b&&ij(a)} -function ij(a){!a.ca||a.Sh&2||Pg(a.ca,14,120)} -function hj(a){a.ub=0;var b=a.Ia(),c=a.Ia(),d=c&32,e=d>>5,f=c&31,g=a.Ia(),h=a.Ia(),r=g<<2&768|h,t=g&63,B=a.Ia(),I=a.Ia(),H=a.xa[e];H&&(H.pe=r,H.La=f,H.$a=t,H.nb=B*H.cb);switch(b){case 3:a.Ob(H?H.errorCode:4);a.dc(c);a.dc(g);a.dc(h);a.dc(0|d);b=-1;break;case 12:for(c=0;0<=(b=a.Ia());)H&&cb?this.Cb(a,c):c(-1,!1)}; -k.Ai=function(a,b){return void 0!==b&&0<=b?this.Fb(a,b):-1};k.Zm=function(a,b){var c;void 0!==b&&0<=b?(c=b,a.Na=this.fb&&(this.ra&=-81,this.ub=this.fb=0);return a}; +k.ap=function(a,b){this.fb=Ri[c].vd){var d=!1;this.ub=0;var c=this.Ia(),e,f,g,h,r,t=c&31;switch(t){case 3:this.Ia(l.rq);this.Ia(l.Yp);this.Ob();break;case 4:f=this.Ia(l.Jf);this.bb=f&3;e=this.xa[this.bb];this.Ob();this.dc((e.Ya&-16777216)>>>24,l.uq);break;case 5:case 6:f=this.Ia(l.Jf);d=f>>2&1;this.bb=f&3;e=this.xa[this.bb];e.La=d;f=e.qb=this.Ia(l.kk);g=this.Ia(l.lk);h=e.$a=this.Ia(l.nk);r=this.Ia(l.di);e.nb=128<< +r;e.Pd=this.Ia(l.Tp);this.Ia(l.Mm);this.Ia(l.Sp);6==t?(t=e,t.Ya=72,t.qa&&(t.Ja=null,t.Ya=0,this.ca&&(Jg(this.ca,2,this,"dmaRead",t),Fg(this.ca,2)))):(t=e,t.Ya=72,t.qa&&(t.qa.tf?t.Ya=576:(t.Ja=null,t.Ya=0,this.ca&&(Jg(this.ca,2,this,"dmaWrite",t),Fg(this.ca,2)))));aj(this,e,c,d,f,g,h,r);d=!0;break;case 7:f=this.Ia(l.Jf);this.bb=f&3;e=this.xa[this.bb];e.qb=e.Nd=0;e.Ya=268435488;this.Ob();d=!0;break;case 8:e=this.xa[this.bb];e.La=0;this.Ob();this.dc(e.bb|e.La<<2|e.Ya&255,l.Om);this.dc(e.qb,l.gq);this.bb= +this.bb+1&3;break;case 10:f=this.Ia(l.Jf);d=f>>2&1;this.bb=f&3;e=this.xa[this.bb];f=e.qb;g=e.La=d;h=e.$a=1;r=0;e.Ya=0;e.qa&&(e.Ja=e.qa.seek(e.qb,e.La,e.$a))?r=e.Ja.length:e.Ya=72;aj(this,e,c,d,f,g,h,r);d=!0;break;case 13:f=this.Ia(l.Jf);d=f>>2&1;this.bb=f&3;e=this.xa[this.bb];f=e.qb;g=e.La=d;h=1;r=this.Ia(l.di);e.nb=128<>2&1,f=this.Ia(l.dq),e.qb+=f-e.Nd,0>e.qb&&(e.qb=0),e.qb>=e.ob&&(e.qb=e.ob-1),e.Nd=f,e.Ya=32,e.qb||(e.Ya|=268435456),this.Ob(),d=!0}0>>8,l.sq);a.dc((b.Ya&16711680)>>>16,l.tq);var r=0;if(e!=b.qb||f!=b.La)r=g=1;c&128&&(f^=r,d||(r=0));a.dc(e+r,l.kk);a.dc(f,l.lk);a.dc(g,l.nk);a.dc(h,l.di)}k.Ia=function(){var a=this.ec[this.ub];this.ub++;return a};k.Ob=function(){this.ub=this.fb=0};k.dc=function(a){this.ec[this.fb++]=a};k.Ai=function(a,b,c){void 0===b||0>b?this.Cb(a,c):c(-1,!1)};k.Bi=function(a,b){return void 0!==b&&0<=b?this.Fb(a,b):-1}; +k.Zm=function(a,b){return void 0!==b&&0<=b?this.hk(a,b):-1};k.Cb=function(a,b){var c=-1,d=null,e=0;if(!a.Ya&&a.qa){do{if(a.Ja&&(e=a.Na,0<=(c=Pi(a.Ja,a.Na++)))){d=a.Ja;break}a.Ja=a.qa.seek(a.qb,a.La,a.$a);if(!a.Ja){a.Ya=1088;break}a.Na=0;this.Qf(a)}while(1)}b(c,!1,d,e)};k.Fb=function(a,b){if(a.Ya||!a.qa)return-1;do{if(a.Ja&&a.qa.write(a.Ja,a.Na++,b))break;a.Ja=a.qa.seek(a.qb,a.La,a.$a);if(!a.Ja){a.Ya=8256;b=-1;break}a.Na=0;this.Qf(a)}while(1);return b}; +k.Qf=function(a){a.$a++;a.$a>=a.sg+1&&(a.$a=1,a.La++,a.La>=a.rg&&(a.La=0,a.qb++))};k.hk=function(a,b){if(a.Ya)return-1;a.Dc[a.lf++]=b;if(a.lf==a.Dc.length){a.qb=a.Dc[0];a.La=a.Dc[1];a.$a=a.Dc[2];a.nb=128<this.Fb(a,a.yk))return-1;a.fh++}a.fh>=a.Pd&&(b=-1);return b};var Ui={1012:Qi.prototype.Nn,1013:Qi.prototype.Ln,1015:Qi.prototype.Mn},Vi={1010:Qi.prototype.bp,1013:Qi.prototype.ap,1015:Qi.prototype.$o}; +za(function(){for(var a=Ta(window.document,"pcjs","fdc"),b=0;b=e&&(this.Dg|=(f.type&3)<<(1-e<<1))}return d}; +k.bk=function(){var a=0,b=[];this.Ge?(b[a++]=this.ie,b[a++]=this.xm,b[a++]=this.ke,b[a++]=this.Uh,b[a++]=this.Sh,b[a++]=this.Rh,b[a++]=this.Ff,b[a++]=this.ra,b[a++]=this.Zj,b[a++]=this.Th):(b[a++]=this.Dg,b[a++]=this.ra,b[a++]=this.ec,b[a++]=this.ub,b[a++]=this.fb,b[a++]=this.wm,b[a++]=this.vm,b[a++]=this.um,b[a++]=this.wf);b[a]=this.dk();return b}; +k.Wi=function(a,b,c,d,e){var f=0,g=!0;void 0===d&&(d=[0,0,!1,Array(8)]);b.bb=a;b.errorCode=d[f++];b.Cm=d[f++];b.sf=d[f++];b.ef=d[f++];b.ff=d[f++];b.La=d[f++];b.pb=d[f++];b.pe=d[f++];b.$a=d[f++];b.Pd=d[f++];b.nb=d[f++];b.bh=this.Ge?0:1;b.name=c.name;void 0===b.name&&(b.name="Hard Drive");b.path=c.path;b.mode=c.mode||(b.path?"preload":"local");"demandro"!=b.mode&&"demandrw"!=b.mode||this.Zd()||(b.mode="local");b.type=c.type;if(void 0===b.type||void 0===bj[this.ig][b.type])b.type=this.rn;c=bj[this.ig][b.type]; +b.sb=c[2]||17;b.cb=c[3]||512;if(e&&this.ca&&(e=this.ca,c=b.type,e.ba)){var h=e.ba[18],h=a?h&240|c:h&15|c<<4;e.ba&&(e.ba[18]=h,kg(e))}void 0===b.qa&&(b.qa=null,this.va("Type "+b.type+' "'+b.name+'" is fixed disk '+a,!0));gj(this,b);b.Na=d[f++];b.Ja=null;b.qa&&(a=d[f],void 0!==a&&0>b.qa.restore(a)&&(g=!1),g&&void 0!==b.Na&&(b.Ja=b.qa.seek(b.pe,b.La,b.$a+b.bh)));return g};k.dk=function(){for(var a=0,b=[],c=0;c=this.fb&&(this.ub=this.fb=0,this.ra&=-15);return a};k.xp=function(a,b){this.fb=c&&(this.ra|=2,this.ra&=-2,hj(this))}; +k.po=function(){var a=this.ra;this.ub=this.Ma.cb?(b.ra=136,this.Cb(this.Ma,function(a){0<=a?(ij(b),b.ra=80):(b.ra=1,b.ie=16)},!1)):this.ra=80)}return a}; +k.Mo=function(a,b){this.Ma&&this.Ma.nb>=this.Ma.cb&&(0>this.Fb(this.Ma,b)?(this.ra=1,this.ie=16):1!=this.Ma.Na&&this.Ma.Na==this.Ma.cb&&(this.Ma.nb-=this.Ma.cb,this.ke=this.ke-1&255,ij(this),this.ra=80,this.Ma.nb>=this.Ma.cb&&(this.ra|=8)))};k.An=function(){return this.ie};k.Ro=function(a,b){this.xm=b};k.Bn=function(){return this.ke};k.Po=function(a,b){this.ke=b};k.Cn=function(){return this.Uh};k.Qo=function(a,b){this.Uh=b};k.xn=function(){return this.Sh};k.Lo=function(a,b){this.Sh=b};k.wn=function(){return this.Rh}; +k.Ko=function(a,b){this.Rh=b};k.zn=function(){return this.Ff};k.No=function(a,b){this.Ff=b;this.ra=this.xa[this.Ff&16?1:0]?this.ra|64:this.ra&-65};k.Dn=function(){return this.ra};k.Jo=function(a,b){this.Zj=b;this.ca&&Qg(this.ca,14);jj(this)};k.Oo=function(a,b){this.Th&4&&!(b&4)&&(this.ie=1);this.Th=b}; +function jj(a){var b=!1,c=a.Zj,d=a.Ff&16?1:0,e=a.Ff&15,f=a.Sh|(a.Rh&3)<<8,g=a.Uh,h=a.ke||256;a.Ma=null;a.ie=0;a.ra=80;(d=a.xa[d])?(d.pe=f,d.La=e,d.$a=g,d.nb=h*d.cb,c=144<=c?c:c&240,d.Ja=null,d.Na=0,d.errorCode=0,a.Ma=d):c=-1;switch(c&240){case 32:a.ra=136;a.Cb(d,function(b){0<=b&&a.ca?(ij(a),a.ra=80):(a.ra=1,a.ie=16)},!1);break;case 48:a.ra=8;break;case 16:b=!0;break;case 64:b=!0;break;case 144:a.ie=1;b=!0;break;case 145:d.pb=e+1,d.sb=h,b=!0}b&&ij(a)} +function ij(a){!a.ca||a.Th&2||Pg(a.ca,14,120)} +function hj(a){a.ub=0;var b=a.Ia(),c=a.Ia(),d=c&32,e=d>>5,f=c&31,g=a.Ia(),h=a.Ia(),r=g<<2&768|h,t=g&63,B=a.Ia(),I=a.Ia(),H=a.xa[e];H&&(H.pe=r,H.La=f,H.$a=t,H.nb=B*H.cb);switch(b){case 3:a.Ob(H?H.errorCode:4);a.dc(c);a.dc(g);a.dc(h);a.dc(0|d);b=-1;break;case 12:for(c=0;0<=(b=a.Ia());)H&&cb?this.Cb(a,c):c(-1,!1)}; +k.Bi=function(a,b){return void 0!==b&&0<=b?this.Fb(a,b):-1};k.$m=function(a,b){var c;void 0!==b&&0<=b?(c=b,a.Na=a.sb+b&&(a.$a=b,a.La++,a.La>=a.pb&&(a.La=0,a.pe++))}; -k.gk=function(a,b){if(a.errorCode)return-1;a.Cc[a.lf++]=b;if(a.lf==a.Cc.length){a.pe=a.Cc[0];a.La=a.Cc[1];a.$a=a.Cc[2];a.nb=128<this.Fb(a,a.xk))return-1;a.eh++}a.eh>=a.Pd&&(b=-1);return b};k.po=function(){var a=this.U.J&255;!(this.U.G>>8)&&128>8||!this.ca)||(a=!(this.ca.Vb[0].cd&64));return a?!0:!1}; -var dj={800:Z.prototype.no,801:Z.prototype.oo,802:Z.prototype.mo},cj={496:Z.prototype.xn,497:Z.prototype.zn,498:Z.prototype.An,499:Z.prototype.Bn,500:Z.prototype.wn,501:Z.prototype.vn,502:Z.prototype.yn,503:Z.prototype.Cn},fj={800:Z.prototype.wp,801:Z.prototype.zp,802:Z.prototype.yp,803:Z.prototype.xp,807:Z.prototype.Tj,811:Z.prototype.Tj,815:Z.prototype.Tj},ej={496:Z.prototype.Lo,497:Z.prototype.Qo,498:Z.prototype.Oo,499:Z.prototype.Po,500:Z.prototype.Ko,501:Z.prototype.Jo,502:Z.prototype.Mo,503:Z.prototype.Io, -1014:Z.prototype.No};za(function(){for(var a=Ta(window.document,"pcjs","hdc"),b=0;b=a.sb+b&&(a.$a=b,a.La++,a.La>=a.pb&&(a.La=0,a.pe++))}; +k.hk=function(a,b){if(a.errorCode)return-1;a.Dc[a.lf++]=b;if(a.lf==a.Dc.length){a.pe=a.Dc[0];a.La=a.Dc[1];a.$a=a.Dc[2];a.nb=128<this.Fb(a,a.yk))return-1;a.fh++}a.fh>=a.Pd&&(b=-1);return b};k.qo=function(){var a=this.U.J&255;!(this.U.G>>8)&&128>8||!this.ca)||(a=!(this.ca.Vb[0].dd&64));return a?!0:!1}; +var dj={800:Z.prototype.oo,801:Z.prototype.po,802:Z.prototype.no},cj={496:Z.prototype.yn,497:Z.prototype.An,498:Z.prototype.Bn,499:Z.prototype.Cn,500:Z.prototype.xn,501:Z.prototype.wn,502:Z.prototype.zn,503:Z.prototype.Dn},fj={800:Z.prototype.xp,801:Z.prototype.Ap,802:Z.prototype.zp,803:Z.prototype.yp,807:Z.prototype.Uj,811:Z.prototype.Uj,815:Z.prototype.Uj},ej={496:Z.prototype.Mo,497:Z.prototype.Ro,498:Z.prototype.Po,499:Z.prototype.Qo,500:Z.prototype.Lo,501:Z.prototype.Ko,502:Z.prototype.No,503:Z.prototype.Jo, +1014:Z.prototype.Oo};za(function(){for(var a=Ta(window.document,"pcjs","hdc"),b=0;btj){if(d.load(this.Fg)){this.Ve=new Pd(this,"1.17.2","failsafe");this.Ve.load()&&(xj(this,d),a=2,qj(this.Ve));this.Ve.set("timestamp",la());rj(this.Ve);var e=this.Lc&&!this.rh;if(1==a||pa("Click OK to restore the previous PCjs machine state, or CANCEL to reset the machine.")){if(c=d.parse()){var f=d.get("code"),g=d.get("data");f&&("ok"==f?d.load(g):("error"== -f&&"no machine state"!=g?(this.wa("Error: "+g),"unable to verify user"==g&&(ta("user",""),this.Mc=null)):this.kc(f+": "+g),qj(d),d.load()?(c=d.parse(),e=!0):c=!1))}e&&wj(this,c?d:null)}else 2==a&&d.clear()}else wj(this);delete this.Fg;delete this.$h}e=Ma(this.id);for(f=0;fa[1];a=a[2];this.ea.Zb=!0;this.Mk||(this.kc("PCjs v1.17.2\nCopyright \u00a9 2012-2015 Jeff Parsons \nLicense: GPL version 3 or later "),this.Mk=!0);this.U&&(yj(this,this.U,b,c,a),pc(this.U));this.Pk&&(xj(this,b),b.clear());!c&&this.Ve&&(this.Ve.clear(),delete this.Ve)}; +function sj(a,b,c){n.call(this,"Computer",a,sj);this.ea.Zb=!1;this.Af=a.buswidth;this.Mc=tj;this.Gg=null;this.sh=!1;this.url=b?b.url:null;this.Hp=(Math.random()+.1).toString(36).substr(2,12);this.Nc=uj(this);if(this.U=Oa("CPU",this.id)){this.Xa=Oa("Debugger",this.id);this.ja=new zb({id:this.bl+".bus",buswidth:this.Af},this.U,this.Xa);var d,e=Ma(this.id);if((this.Ed=Oa("Panel",this.id))&&this.Ed.wi)for(b=0;btj){if(d.load(this.Gg)){this.Ve=new Pd(this,"1.17.2","failsafe");this.Ve.load()&&(xj(this,d),a=2,qj(this.Ve));this.Ve.set("timestamp",la());rj(this.Ve);var e=this.Mc&&!this.sh;if(1==a||pa("Click OK to restore the previous PCjs machine state, or CANCEL to reset the machine.")){if(c=d.parse()){var f=d.get("code"),g=d.get("data");f&&("ok"==f?d.load(g):("error"== +f&&"no machine state"!=g?(this.va("Error: "+g),"unable to verify user"==g&&(ta("user",""),this.Nc=null)):this.lc(f+": "+g),qj(d),d.load()?(c=d.parse(),e=!0):c=!1))}e&&wj(this,c?d:null)}else 2==a&&d.clear()}else wj(this);delete this.Gg;delete this.ai}e=Ma(this.id);for(f=0;fa[1];a=a[2];this.ea.Zb=!0;this.Nk||(this.lc("PCjs v1.17.2\nCopyright \u00a9 2012-2015 Jeff Parsons \nLicense: GPL version 3 or later "),this.Nk=!0);this.U&&(yj(this,this.U,b,c,a),pc(this.U));this.Qk&&(xj(this,b),b.clear());!c&&this.Ve&&(this.Ve.clear(),delete this.Ve)}; function xj(a,b){if(pa("There may be a problem with your PCjs machine.\n\nTo help us diagnose it, click OK to send this PCjs machine state to http://www.pcjs.org.")){var c=a.Zd(),d=b.toString(),e={app:"PCjs",ver:"1.17.2"};e.url=a.url;e.user=c;e.type="bug";e.data=d;na("http://www.pcjs.org/api/v1/report",!0,e)}} function zj(a,b,c){var d,e="none",f=new Pd(a,"1.17.2"),g=new Pd(a,"1.17.2","validate"),h=la();g.set("timestamp",h);f.set("timestamp",h);f.set("version","1.17.2");f.set("url",window?window.location.href:null);f.set("browser",window?window.navigator.userAgent:"");a.U&&a.U.ac&&(c&&rc(a.U),d=a.U.ac(b,c),"object"===typeof d&&f.set(a.U.id,d),c&&(a.U.ea.Zb=!1,!1===d&&(e=null)));for(var h=Ma(a.id),r=0;rh.indexOf("/")&&(h=window.location.pathname+h);a=a.replace(/(]*\sid=)(['"]).*?\2/,"$1$2"+c+"$2"+(d?" state=$2"+d+"$2":"")+(h?" url=$2"+h+"$2":""))}h=null;if("<"==a.charAt(0))try{window.ActiveXObject||"ActiveXObject"in window?(e||(a=a.replace(/\s*/g,"")),h=new window.ActiveXObject("Microsoft.XMLDOM"),h.async=!1,h.loadXML(a)):h=(new window.DOMParser).parseFromString(a,"text/xml")}catch(I){h= null,a=I.message}else a="unrecognized XML: "+(255/g.exec(a)){var e=d[2];b("Loading "+e+"...");na(e,!0,null,null,function(f,g,h){if(h||!g)c(a,"unable to resolve XML reference: "+d[0]+" ("+h+")");else{if(f=d[3])if(h=g.match(new RegExp("<"+d[1]+"[^>]*>"))){for(var r=h[0],t,B=/( [a-z]+=)(['"])(.*?)\2/g;t=B.exec(f);)r=0>r.indexOf(t[1])?r.replace(">",t[0]+">"):r.replace(new RegExp(t[1]+"(['\"])(.*?)\\1"),t[0]);h[0]!=r&&(g=g.replace(h[0],r))}else{c(a,"missing <"+d[1]+"> in "+e);return}g=g.replace(/<\?xml[^>]*>[\r\n]*/, diff --git a/modules/pcjs/lib/README.md b/modules/pcjs/lib/README.md index b13f1bab81..dbc1306e4d 100644 --- a/modules/pcjs/lib/README.md +++ b/modules/pcjs/lib/README.md @@ -3,20 +3,22 @@ PCjs Sources Structure --- -All the code for PCjs is contained in the following JavaScript files, which roughly divide the -functionality into major PC components, aka "devices". However, not every file implements a device, -and "component" is an overloaded term, since *[Component](/docs/pcjs/component/)* is also the name of -the shared base class used for most PCjs devices (see [component.js](../../shared/lib/component.js)). -So it's best to refer to these files generically as "modules", and more specifically as "device modules" -whenever they implement a specific device (or set of devices, in the case of [*ChipSet*](/docs/pcjs/chipset/)). +These JavaScript files divide PCjs functionality into major PC components. Most of the files are device +components, implementing a specific device (or set of devices, in the case of [chipset.js](chipset.js)). -Examples of non-device modules include UI modules like [panel.js](panel.js) and [debugger.js](debugger.js), -and sub-modules like [x86opxx.js](x86opxx.js) and [x86func.js](x86func.js) that separate the CPU functionality -of [x86.js](x86.js) into more manageable pieces. +Be aware that *component* is an overloaded term, since **Component** is also the name of the +shared base class in [component.js](../../shared/lib/component.js) used by most machine components. +A few low-level components (eg, the **Memory** and **State** components, the Card class of the **Video** +component, the Color and Rectangle classes of the **Panel** component, etc) do not extend **Component**, +so don't assume that every PCjs object has access to [component.js](../../shared/lib/component.js) methods. -These modules should always be loaded or compiled in the order listed by the *pcJSFiles* property in -[package.json](../../../package.json), which includes all the necessary *shared* modules as well. -At the time of this writing, the order is: +Examples of non-device components include UI components like [panel.js](panel.js) and [debugger.js](debugger.js), +and sub-components like [x86opxx.js](x86opxx.js) and [x86func.js](x86func.js) that separate the CPU +functionality of [x86.js](x86.js) into more manageable pieces. + +These components should always be loaded or compiled in the order listed by the *pcJSFiles* property in +[package.json](../../../package.json), which includes all the necessary *shared* components as well. +At the time of this writing, the recommended order is: * [shared/defines.js](../../shared/lib/defines.js) * [shared/diskapi.js](../../shared/lib/diskapi.js) @@ -38,6 +40,8 @@ At the time of this writing, the order is: * [pcjs/x86seg.js](x86seg.js) * [pcjs/x86cpu.js](x86cpu.js) * [pcjs/x86func.js](x86func.js) +* [pcjs/x86opxx.js](x86opxx.js) +* [pcjs/x86op0f.js](x86op0f.js) * [pcjs/x86modb.js](x86modb.js) * [pcjs/x86modw.js](x86modw.js) * [pcjs/x86modb16.js](x86modb16.js) @@ -45,8 +49,6 @@ At the time of this writing, the order is: * [pcjs/x86modb32.js](x86modb32.js) * [pcjs/x86modw32.js](x86modw32.js) * [pcjs/x86modsib.js](x86modsib.js) -* [pcjs/x86opxx.js](x86opxx.js) -* [pcjs/x86op0f.js](x86op0f.js) * [pcjs/chipset.js](chipset.js) * [pcjs/rom.js](rom.js) * [pcjs/ram.js](ram.js) @@ -62,16 +64,16 @@ At the time of this writing, the order is: * [pcjs/computer.js](computer.js) * [shared/embed.js](../../shared/lib/embed.js) -Some of the modules *can* be reordered or even omitted (eg, [debugger.js](debugger.js) or +Some of the components *can* be reordered or even omitted (eg, [debugger.js](debugger.js) or [embed.js](../../shared/lib/embed.js)), but you should observe the following: -* [component.js](../../shared/lib/component.js) must be listed before any module that extends [*Component*](/docs/pcjs/component/) +* [component.js](../../shared/lib/component.js) must be listed before any component that extends **Component** * [panel.js](panel.js) should be loaded early to initialize the Control Panel (if any) as soon as possible -* [computer.js](computer.js) should be the last device module, as it supervises and notifies all the other device modules +* [computer.js](computer.js) should be the last device component, as it supervises and notifies all the other device components -To minimize ordering requirements, the init() handlers and constructors of all modules should avoid -referencing other modules. Device modules should define an initBus() notification handler, which the -[*Computer*](/docs/pcjs/computer/) will call after it has created/initialized the *Bus* object. +To minimize ordering requirements, the init() handlers and constructors of all components should avoid +referencing other components. Device components should define an initBus() notification handler, which the +*Computer* component will call after it has created/initialized the *Bus* component. Features --- diff --git a/modules/pcjs/lib/chipset.js b/modules/pcjs/lib/chipset.js index 4401097a5e..153e38abf0 100644 --- a/modules/pcjs/lib/chipset.js +++ b/modules/pcjs/lib/chipset.js @@ -233,10 +233,14 @@ function ChipSet(parmsChipSet) */ this.fSpeaker = false; if (parmsChipSet['sound']) { - if (window && 'webkitAudioContext' in window) { - this.contextAudio = new window['webkitAudioContext'](); + this.classAudio = this.contextAudio = null; + if (window) { + this.classAudio = window['AudioContext'] || window['webkitAudioContext']; + } + if (this.classAudio) { + this.contextAudio = new this.classAudio(); } else { - if (DEBUG) this.log("webkitAudioContext not available"); + if (DEBUG) this.log("AudioContext not available"); } } @@ -4771,37 +4775,56 @@ ChipSet.prototype.parseSwitches = function(s, def) ChipSet.prototype.setSpeaker = function(fOn) { if (this.contextAudio) { - if (fOn !== undefined) { - this.fSpeaker = fOn; - } else { - fOn = this.fSpeaker && this.cpu && this.cpu.isRunning(); - } - var freq = Math.round(ChipSet.TIMER_TICKS_PER_SEC / this.getTimerInit(ChipSet.TIMER2.INDEX)); - /* - * Treat frequencies outside the normal hearing range (below 20hz or above 20Khz) as a clever attempt - * to turn sound off; we have to explicitly turn the sound off in those cases, to prevent the Audio API - * from "easing" the audio to the target frequency and creating odd sound effects. - */ - if (freq < 20 || freq > 20000) fOn = false; - if (fOn) { - if (this.sourceAudio) { - this.sourceAudio['frequency']['value'] = freq; - if (this.messageEnabled(Messages.SPEAKER)) this.printMessage("speaker set to " + freq + "hz", true); + try { + if (fOn !== undefined) { + this.fSpeaker = fOn; } else { - this.sourceAudio = this.contextAudio['createOscillator'](); - this.sourceAudio['type'] = "square"; // any of: "sine", "square", "sawtooth", "triangle", "custom" - this.sourceAudio['connect'](this.contextAudio['destination']); - this.sourceAudio['frequency']['value'] = freq; - if (this.messageEnabled(Messages.SPEAKER)) this.printMessage("speaker on at " + freq + "hz", true); - this.sourceAudio['start'](0); + fOn = this.fSpeaker && this.cpu && this.cpu.isRunning(); } - } else { - if (this.sourceAudio) { - this.sourceAudio['stop'](0); - this.sourceAudio['disconnect'](); // QUESTION: is this automatic following a stop(), since this particular source cannot be started again? - delete this.sourceAudio; // QUESTION: ditto? - if (this.messageEnabled(Messages.SPEAKER)) this.printMessage("speaker off at " + freq + "hz", true); + var freq = Math.round(ChipSet.TIMER_TICKS_PER_SEC / this.getTimerInit(ChipSet.TIMER2.INDEX)); + /* + * Treat frequencies outside the normal hearing range (below 20hz or above 20Khz) as a clever attempt + * to turn sound off; we have to explicitly turn the sound off in those cases, to prevent the Audio API + * from "easing" the audio to the target frequency and creating odd sound effects. + */ + if (freq < 20 || freq > 20000) fOn = false; + if (fOn) { + if (this.sourceAudio) { + this.sourceAudio['frequency']['value'] = freq; + if (this.messageEnabled(Messages.SPEAKER)) this.printMessage("speaker set to " + freq + "hz", true); + } else { + this.sourceAudio = this.contextAudio['createOscillator'](); + if (this.sourceAudio) { + if (typeof this.sourceAudio['type'] == "number") { + this.sourceAudio['type'] = 1; // deprecated: 0: "sine", 1: "square", 2: "sawtooth", 3: "triangle" + } else { + this.sourceAudio['type'] = "square"; + } + this.sourceAudio['connect'](this.contextAudio['destination']); + this.sourceAudio['frequency']['value'] = freq; + if ('start' in this.sourceAudio) { + this.sourceAudio['start'](0); + } else { + this.sourceAudio['noteOn'](0); // deprecated: this.sourceAudio['noteOn'](0) + } + if (this.messageEnabled(Messages.SPEAKER)) this.printMessage("speaker on at " + freq + "hz", true); + } + } + } else { + if (this.sourceAudio) { + if ('stop' in this.sourceAudio) { + this.sourceAudio['stop'](0); + } else { + this.sourceAudio['noteOff'](0); // deprecated: this.sourceAudio['noteOff'](0) + } + this.sourceAudio['disconnect'](); // QUESTION: is this automatic following a stop(), since this particular source cannot be started again? + delete this.sourceAudio; // QUESTION: ditto? + if (this.messageEnabled(Messages.SPEAKER)) this.printMessage("speaker off at " + freq + "hz", true); + } } + } catch(e) { + this.notice("AudioContext exception: " + e.message); + this.contextAudio = null; } } else if (fOn) { this.printMessage("BEEP", Messages.SPEAKER); diff --git a/versions/pcjs/1.17.2/pc-dbg.js b/versions/pcjs/1.17.2/pc-dbg.js index 9043f45bf4..92c0073463 100644 --- a/versions/pcjs/1.17.2/pc-dbg.js +++ b/versions/pcjs/1.17.2/pc-dbg.js @@ -10,178 +10,178 @@ function Ba(){if(null==Aa){var a=!1;if(window)try{window.localStorage.setItem("P function Ea(a){if(window){var b=window?window.navigator.userAgent:"";return"iOS"==a&&b.match(/(iPod|iPhone|iPad)/)&&b.match(/AppleWebKit/)||"MSIE"==a&&b.match(/(MSIE|Trident)/)||0<=b.indexOf(a)?!0:!1}return!1}function Fa(a,b,c){function d(){--a;0<=a&&(b()||(a=0));0=this.x&&a=this.y&&b=c>>2);d?(b=new pb(a.x,a.y,a.Kc,a.Uc*b/c|0),a.y+=b.Uc,a.Uc-=b.Uc):(b=new pb(a.x,a.y,a.Kc*b/c|0,a.Uc),a.x+=b.Kc,a.Kc-=b.Kc);return b}k=nb.prototype; -k.Fb=function(a,b,c){return this.Ba&&this.Ba.Fb(a,b,c)||this.N&&this.N.Fb(a,b,c)||this.Ha&&this.Ha.Fb(a,b,c)||this.Z&&this.Z.Fb(a,b,c)?!0:this.parent.Fb.call(this,a,b,c)};k.xc=function(a,b,c,d){this.Ba=a;this.ha=b;this.N=c;this.Z=d;this.Ha=rb(a,"Keyboard")};k.fc=function(a,b){b||tb();return!0};k.ec=function(){return!0};k.lj=function(a,b){a.button||(this.Yg=b?0:-1,ub(this,a,b))};k.Zl=function(a){ub(this,a)}; -function ub(a,b,c){var d=1280/a.canvas.offsetWidth,e=720/a.canvas.offsetHeight,f=a.canvas.getBoundingClientRect(),d=(b.clientX-f.left)*d|0;b=(b.clientY-f.top)*e|0;null==c&&(a.Yg||(a.Yg=Math.abs(a.ie-d)>Math.abs(a.je-b)?1:2),1==a.Yg?b=a.je:2==a.Yg&&(d=a.ie));a.ie=d;a.je=b;if(0<=d&&1280>d&&0<=b&&720>b){a:{c=d;if(960>c&&a.Za&&a.Za.Ff)for(f=0;f>xb&yb))*a.ha.Bb-1;0d&&(f=d);c=f;break a}c=q}c!=q&&(c&=-16,c!=a.il&&(zb(a,c,!0),a.il=c))}} -k.dd=function(){if(this.canvas&&this.Yh&&this.ve&&this.ef){var a=this.ve.width,b=this.ve.height;this.ef.fillStyle="black";this.ef.fillRect(0,0,a,b);Ab(this,18,this.ve,this.ef,this.canvas.style.color);Bb(this,3);u(this,"CPU");u(this,"Target");u(this,"Current");Cb(this);u(this,this.N.za);u(this,Db(this.N));u(this,Eb(this.N));Cb(this,2);Bb(this,8);this.xp=16;this.yp=4;u(this,"AX",this.N.G,2);u(this,"DS",this.N.Ya.va,0,1);u(this,"DX",this.N.J,2);u(this,"SI",this.N.F,0,1.5);u(this,"BX",this.N.C,2);u(this, -"ES",this.N.Ja.va,0,1);u(this,"CX",this.N.I,2);u(this,"DI",this.N.D,0,1.5);u(this,"CS",Fb(this.N),2);u(this,"SS",this.N.xa.va,0,1);u(this,"IP",v(this.N),2);u(this,"SP",w(this.N),0,1.5);var c;u(this,"PS",c=Gb(this.N),2);u(this,"BP",this.N.H,0,1.5);Bb(this,9);u(this,"V"+(c&Hb?1:0));u(this,"D"+(c&Ib?1:0));u(this,"I"+(c&Jb?1:0));u(this,"T"+(c&Kb?1:0));u(this,"S"+(c&Lb?1:0));u(this,"Z"+(c&Mb?1:0));u(this,"A"+(c&Nb?1:0));u(this,"P"+(c&Ob?1:0));u(this,"C"+(c&Pb?1:0),0,2);zb(this,this.il);this.Yh.drawImage(this.ve, -0,0,a,b,this.qs,this.ts,this.Ir,this.Lr)}};function zb(a,b,c){if(a.Yh&&a.ve&&a.ef){var d=a.ve.width;a.ef.fillStyle="black";a.ef.fillRect(0,360,d,360);Ab(a,378,a.ve,a.ef,a.canvas.style.color);Bb(a,24);if(null==b)u(a,"Mouse over memory to dump");else{u(a,"0x"+ea(b),null,0,1);for(var e=1;16>=e;e++){for(var f="",g=1;8>=g;g++){var h=Qb(a.ha,b++);u(a,l(h),null,1);f+=32<=h&&128>h?String.fromCharCode(h):"."}u(a,f,null,0,1)}}c&&a.Yh.drawImage(a.ve,0,360,d,360,a.os,a.rs,a.Gr,a.Jr)}} -function Ab(a,b,c,d,e){var f,g=a.Hq=10;a.ed=g;a.Df=b;a.Yf=a.Rl=18;f||(f=a.Nl||a.Rl+"px Monaco, Lucida Console, Courier New");a.li=a.Nl=f;c&&(a.On=c);d&&(a.Cd=d,a.Qn=e||"white")}function Bb(a,b){a.nj=a.On.width/b|0}function Cb(a,b){a.ed=a.Hq;a.Df+=(a.Yf+2)*(b||1)}function u(a,b,c,d,e){a.Cd.font=a.li;a.Cd.fillStyle=a.Qn;a.Cd.fillText(b,a.ed,a.Df);a.ed+=a.nj;null!=c&&(b=c.toString(),16==a.xp&&(b="0x"+ea(c,a.yp)),a.Cd.fillText(b,a.ed,a.Df),a.ed+=a.nj);d&&(a.ed+=a.nj*d);e&&Cb(a,e)} +n.prototype={constructor:n,parent:null,toString:function(){return this.name?this.name:this.id||this.type},Fb:function(a,b,c){switch(b){case "clear":return this.qa[b]||(this.qa[b]=c,c.onclick=function(a){return function(){a.qa.print&&(a.qa.print.value="")}}(this)),!0;case "print":return this.qa[b]||(this.Ng=this.qa[b]=c,c.value="",this.R=function(a){return function(b,c){8192=this.x&&a=this.y&&b=c>>2);d?(b=new pb(a.x,a.y,a.Lc,a.Vc*b/c|0),a.y+=b.Vc,a.Vc-=b.Vc):(b=new pb(a.x,a.y,a.Lc*b/c|0,a.Vc),a.x+=b.Lc,a.Lc-=b.Lc);return b}k=nb.prototype; +k.Fb=function(a,b,c){return this.Ba&&this.Ba.Fb(a,b,c)||this.N&&this.N.Fb(a,b,c)||this.Ha&&this.Ha.Fb(a,b,c)||this.Z&&this.Z.Fb(a,b,c)?!0:this.parent.Fb.call(this,a,b,c)};k.yc=function(a,b,c,d){this.Ba=a;this.ha=b;this.N=c;this.Z=d;this.Ha=rb(a,"Keyboard")};k.fc=function(a,b){b||tb();return!0};k.ec=function(){return!0};k.nj=function(a,b){a.button||(this.Zg=b?0:-1,ub(this,a,b))};k.$l=function(a){ub(this,a)}; +function ub(a,b,c){var d=1280/a.canvas.offsetWidth,e=720/a.canvas.offsetHeight,f=a.canvas.getBoundingClientRect(),d=(b.clientX-f.left)*d|0;b=(b.clientY-f.top)*e|0;null==c&&(a.Zg||(a.Zg=Math.abs(a.ie-d)>Math.abs(a.je-b)?1:2),1==a.Zg?b=a.je:2==a.Zg&&(d=a.ie));a.ie=d;a.je=b;if(0<=d&&1280>d&&0<=b&&720>b){a:{c=d;if(960>c&&a.Za&&a.Za.Ff)for(f=0;f>xb&yb))*a.ha.Bb-1;0d&&(f=d);c=f;break a}c=q}c!=q&&(c&=-16,c!=a.jl&&(zb(a,c,!0),a.jl=c))}} +k.ed=function(){if(this.canvas&&this.Zh&&this.ve&&this.ef){var a=this.ve.width,b=this.ve.height;this.ef.fillStyle="black";this.ef.fillRect(0,0,a,b);Ab(this,18,this.ve,this.ef,this.canvas.style.color);Bb(this,3);u(this,"CPU");u(this,"Target");u(this,"Current");Cb(this);u(this,this.N.za);u(this,Db(this.N));u(this,Eb(this.N));Cb(this,2);Bb(this,8);this.yp=16;this.zp=4;u(this,"AX",this.N.G,2);u(this,"DS",this.N.Ya.va,0,1);u(this,"DX",this.N.J,2);u(this,"SI",this.N.F,0,1.5);u(this,"BX",this.N.C,2);u(this, +"ES",this.N.Ja.va,0,1);u(this,"CX",this.N.I,2);u(this,"DI",this.N.D,0,1.5);u(this,"CS",Fb(this.N),2);u(this,"SS",this.N.xa.va,0,1);u(this,"IP",v(this.N),2);u(this,"SP",w(this.N),0,1.5);var c;u(this,"PS",c=Gb(this.N),2);u(this,"BP",this.N.H,0,1.5);Bb(this,9);u(this,"V"+(c&Hb?1:0));u(this,"D"+(c&Ib?1:0));u(this,"I"+(c&Jb?1:0));u(this,"T"+(c&Kb?1:0));u(this,"S"+(c&Lb?1:0));u(this,"Z"+(c&Mb?1:0));u(this,"A"+(c&Nb?1:0));u(this,"P"+(c&Ob?1:0));u(this,"C"+(c&Pb?1:0),0,2);zb(this,this.jl);this.Zh.drawImage(this.ve, +0,0,a,b,this.rs,this.us,this.Jr,this.Mr)}};function zb(a,b,c){if(a.Zh&&a.ve&&a.ef){var d=a.ve.width;a.ef.fillStyle="black";a.ef.fillRect(0,360,d,360);Ab(a,378,a.ve,a.ef,a.canvas.style.color);Bb(a,24);if(null==b)u(a,"Mouse over memory to dump");else{u(a,"0x"+ea(b),null,0,1);for(var e=1;16>=e;e++){for(var f="",g=1;8>=g;g++){var h=Qb(a.ha,b++);u(a,l(h),null,1);f+=32<=h&&128>h?String.fromCharCode(h):"."}u(a,f,null,0,1)}}c&&a.Zh.drawImage(a.ve,0,360,d,360,a.ps,a.ss,a.Hr,a.Kr)}} +function Ab(a,b,c,d,e){var f,g=a.Iq=10;a.fd=g;a.Df=b;a.Yf=a.Sl=18;f||(f=a.Ol||a.Sl+"px Monaco, Lucida Console, Courier New");a.mi=a.Ol=f;c&&(a.Pn=c);d&&(a.Dd=d,a.Rn=e||"white")}function Bb(a,b){a.oj=a.Pn.width/b|0}function Cb(a,b){a.fd=a.Iq;a.Df+=(a.Yf+2)*(b||1)}function u(a,b,c,d,e){a.Dd.font=a.mi;a.Dd.fillStyle=a.Rn;a.Dd.fillText(b,a.fd,a.Df);a.fd+=a.oj;null!=c&&(b=c.toString(),16==a.yp&&(b="0x"+ea(c,a.zp)),a.Dd.fillText(b,a.fd,a.Df),a.fd+=a.oj);d&&(a.fd+=a.oj*d);e&&Cb(a,e)} function tb(){for(var a=!1,b=db(window.document,"pcjs","panel"),c=0;c=this.of?12:24>=this.of?14:15;this.Bb=1<>2;this.Da=this.Bb-1;this.Cg=this.Xi/this.Bb|0;this.sc=this.Cg-1;this.Md=[];this.Nd=[];this.Sg=this.Tg=!1;this.Lj();jb(this)}Ya(n,Rb);var wb=131071,xb=18,yb=1023;k=Rb.prototype; -k.Lj=function(){this.ma=Array(this.Cg);for(var a=0;a>>a.Ga;0a.Bb?a.Bb:c;if(g&&g.size){if(g.type==d&&g.X==e){if(b+c<=g.ub)return g.Pi+=g.ub-b,g.ub=b,!0;if(b>=g.ub+g.Pi){t=g.size-(b-h);t>c&&(t=c);g.Pi=b-g.ub+t;c-=t;b=h+a.Bb;continue}}return Wb(1,b,c)}g=a.ma[f++]=new Tb(b,t,a.Bb,d,e);Sb(g,a.N,a.Z,a.Bb);c-=t;b=h+a.Bb}return 0>>this.Ga;0>>a.Ga;0>>this.Ga].Eb(a&this.Da)};function Qb(a,b){return a.ma[(b&a.Wa)>>>a.Ga].sh(b&a.Da)} -k.la=function(a){var b=a&this.Da;a=(a&this.Wa)>>>this.Ga;return b!=this.Da?this.ma[a].Lk(b):this.ma[a++].Eb(b)|this.ma[a&this.sc].Eb(0)<<8};function Yb(a,b){var c=b&a.Da,d=(b&a.Wa)>>>a.Ga;return c!=a.Da?a.ma[d].Mk(c):a.ma[d++].sh(c)|a.ma[d&a.sc].sh(0)<<8}k.Ug=function(a){var b=a&this.Da;a=(a&this.Wa)>>>this.Ga;if(b>>c|this.ma[a+1&this.sc].td(0)<<32-c};k.ud=function(a,b){this.ma[(a&this.Wa)>>>this.Ga].Ib(a&this.Da,b&255)}; -k.Qa=function(a,b){var c=a&this.Da,d=(a&this.Wa)>>>this.Ga;c!=this.Da?this.ma[d].Wk(c,b&65535):(this.ma[d++].Ib(c,b&255),this.ma[d&this.sc].Ib(0,b>>8&255))};function Zb(a,b,c){var d=b&a.Da;b=(b&a.Wa)>>>a.Ga;d!=a.Da?a.ma[b].Xk(d,c&65535):(a.ma[b++].og(d,c&255),a.ma[b&a.sc].og(0,c>>8&255))} -k.yn=function(a,b){var c=a&this.Da,d=(a&this.Wa)>>>this.Ga;if(c>>32-f)}}; -function $b(a){for(var b=0,c=[],d=0;d>1),this.oa=new Int32Array(this.buffer,0,c>>2),this.Pe(lc?oc:pc);else{this.oa=Array(c>>2);for(e=0;e=this.of?12:24>=this.of?14:15;this.Bb=1<>2;this.Ea=this.Bb-1;this.Cg=this.Yi/this.Bb|0;this.tc=this.Cg-1;this.Md=[];this.Nd=[];this.Tg=this.Ug=!1;this.Mj();jb(this)}Ya(n,Rb);var wb=131071,xb=18,yb=1023;k=Rb.prototype; +k.Mj=function(){this.ma=Array(this.Cg);for(var a=0;a>>a.Ga;0a.Bb?a.Bb:c;if(g&&g.size){if(g.type==d&&g.X==e){if(b+c<=g.ub)return g.Qi+=g.ub-b,g.ub=b,!0;if(b>=g.ub+g.Qi){t=g.size-(b-h);t>c&&(t=c);g.Qi=b-g.ub+t;c-=t;b=h+a.Bb;continue}}return Wb(1,b,c)}g=a.ma[f++]=new Tb(b,t,a.Bb,d,e);Sb(g,a.N,a.Z,a.Bb);c-=t;b=h+a.Bb}return 0>>this.Ga;0>>a.Ga;0>>this.Ga].Eb(a&this.Ea)};function Qb(a,b){return a.ma[(b&a.Wa)>>>a.Ga].th(b&a.Ea)} +k.la=function(a){var b=a&this.Ea;a=(a&this.Wa)>>>this.Ga;return b!=this.Ea?this.ma[a].Mk(b):this.ma[a++].Eb(b)|this.ma[a&this.tc].Eb(0)<<8};function Yb(a,b){var c=b&a.Ea,d=(b&a.Wa)>>>a.Ga;return c!=a.Ea?a.ma[d].Nk(c):a.ma[d++].th(c)|a.ma[d&a.tc].th(0)<<8}k.Vg=function(a){var b=a&this.Ea;a=(a&this.Wa)>>>this.Ga;if(b>>c|this.ma[a+1&this.tc].ud(0)<<32-c};k.vd=function(a,b){this.ma[(a&this.Wa)>>>this.Ga].Ib(a&this.Ea,b&255)}; +k.Qa=function(a,b){var c=a&this.Ea,d=(a&this.Wa)>>>this.Ga;c!=this.Ea?this.ma[d].Xk(c,b&65535):(this.ma[d++].Ib(c,b&255),this.ma[d&this.tc].Ib(0,b>>8&255))};function Zb(a,b,c){var d=b&a.Ea;b=(b&a.Wa)>>>a.Ga;d!=a.Ea?a.ma[b].Yk(d,c&65535):(a.ma[b++].og(d,c&255),a.ma[b&a.tc].og(0,c>>8&255))} +k.zn=function(a,b){var c=a&this.Ea,d=(a&this.Wa)>>>this.Ga;if(c>>32-f)}}; +function $b(a){for(var b=0,c=[],d=0;d>1),this.oa=new Int32Array(this.buffer,0,c>>2),this.Pe(lc?oc:pc);else{this.oa=Array(c>>2);for(e=0;e>1]}function Ac(a){return this.Of.getInt32(a,!0)}function Bc(a){return a&3?this.ic[a]|this.ic[a+1]<<8|this.ic[a+2]<<16|this.ic[a+3]<<24:this.oa[a>>2]}function Cc(a,b){this.ic[a]=b;this.Ra=!0}function Dc(a,b){this.ic[a]=b;this.Ra=!0}function Ec(a,b){this.Of.setUint16(a,b,!0);this.Ra=!0}function Fc(a,b){a&1?(this.ic[a]=b,this.ic[a+1]=b>>8):this.ll[a>>1]=b;this.Ra=!0}function Ic(a,b){this.Of.setInt32(a,b,!0);this.Ra=!0} +function zc(a){return a&1?this.ic[a]|this.ic[a+1]<<8:this.ml[a>>1]}function Ac(a){return this.Of.getInt32(a,!0)}function Bc(a){return a&3?this.ic[a]|this.ic[a+1]<<8|this.ic[a+2]<<16|this.ic[a+3]<<24:this.oa[a>>2]}function Cc(a,b){this.ic[a]=b;this.Ra=!0}function Dc(a,b){this.ic[a]=b;this.Ra=!0}function Ec(a,b){this.Of.setUint16(a,b,!0);this.Ra=!0}function Fc(a,b){a&1?(this.ic[a]=b,this.ic[a+1]=b>>8):this.ml[a>>1]=b;this.Ra=!0}function Ic(a,b){this.Of.setInt32(a,b,!0);this.Ra=!0} function Kc(a,b){a&3?(this.ic[a]=b,this.ic[a+1]=b>>8,this.ic[a+2]=b>>16,this.ic[a+3]=b>>24):this.oa[a>>2]=b;this.Ra=!0} var qc=[function(a){return this.oa[a>>2]>>>((a&3)<<3)&255},function(a){var b=a>>2;a=(a&3)<<3;var c=this.oa[b]>>a;return 24>a?c&65535:c&255|(this.oa[b+1]&255)<<8},function(a){var b=a>>2;a=(a&3)<<3;var c=this.oa[b];a&&(c=c>>>a|this.oa[b+1]<<32-a);return c},function(a,b){var c=a>>2,d=(a&3)<<3;this.oa[c]=this.oa[c]&~(255<>2,d=(a&3)<<3;24>d?this.oa[c]=this.oa[c]&~(65535<>8);this.Ra= -!0},function(a,b){var c=a>>2,d=(a&3)<<3;if(d){var e=-1<>>32-d}else this.oa[c]=b;this.Ra=!0}],Nc=[function(a){Lc(this.Z,this.ub+a);return this.sh(a)},function(a){Lc(this.Z,this.ub+a)||Lc(this.Z,this.ub+a+1);return this.Mk(a)},function(a){Lc(this.Z,this.ub+a)||Lc(this.Z,this.ub+a+1)||Lc(this.Z,this.ub+a+2)||Lc(this.Z,this.ub+a+3);return this.th(a)},function(a,b){Mc(this.Z,this.ub+a);this.og(a,b)},function(a,b){Mc(this.Z,this.ub+a)||Mc(this.Z, -this.ub+a+1);this.Xk(a,b)},function(a,b){Mc(this.Z,this.ub+a)||Mc(this.Z,this.ub+a+1)||Mc(this.Z,this.ub+a+2)||Mc(this.Z,this.ub+a+3);this.Cn(a,b)}];if(mb)var pc=[wc,yc,Ac,Cc,Ec,Ic],oc=[xc,zc,Bc,Dc,Fc,Kc]; -Tb.prototype={constructor:Tb,parent:null,save:function(){var a,b;if(this.X)a=null;else if(mb)for(a=Array(this.size>>2),b=0;b=a.U.cg&&(a.U.cg+=a.U.bg,c=!0);0<=a.U.dg&&a.U.dg<=Yc(a)&&(a.U.bg=a.U.dg=-1,Uc(a),a.lb(),c=!0);c&&a.R(Yc(a)+" cycles: checksum="+ea(a.U.ah))}} -function Zc(a,b,c,d){a.qa[b]&&(void 0===d&&(d=4),void 0===c&&(lb(a,"Register "+b+" is invalid"),a.lb()),c=!a.da.jb||a.da.Fl?ea(c,d):"----".substr(0,d),a.qa[b].textContent!=c&&(a.qa[b].textContent=c))}k.dd=function(){this.Ba&&this.Ba.ee&&this.Ba.ee.dd()}; -function $c(a){a.video&&ad(a.video);if(a.Ba&&a.Ba.ee&&(a=a.Ba.ee,a.fo)){Ab(a,18,a.Gg,a.Rn,a.canvas.style.color);if(a.Pr){var b=a.ha,c=a.Za,d,e;null==d&&(d=0);null==e&&(e=b.Xi-d|0);null==c&&(c={kj:0,Dg:0,Si:Array(b.Cg)});var f=d>>>b.Ga;d=d+e-1>>>b.Ga;c.kj=0;for(c.Dg=0;f<=d;){e=b.ma[f];c.kj+=e.size;if(e.size){var g=f,g=g|e.type<<28;c.Si[c.Dg++]=g}f++}a.Za=c;a.kn=a.Za.Dg*a.ha.Bb/691200;e=0;a.Za.hj=0;a.Za.Gf||(a.Za.Gf=[]);d=-1;for(var g=0,h=-1,b=0;b>>28;f&=wb;if(c!=d||f!= -h+1){if(h=b-g)d=a.Za.Gf[a.Za.hj++]=g|h<>xb&yb,a.Za.Ff.push(qb(c,d,f,0==b)),f-=d;for(b=0;b>28&7;f=f>>xb&yb;d=e=a.Za.Ff[b];g=a.Rn;(h=sc[c])||(h=new ob);g.strokeStyle="black";g.strokeRect(d.x,d.y,d.Kc,d.Uc);g.fillStyle="string"==typeof h?h:h.toString();g.fillRect(d.x,d.y,d.Kc, -d.Uc);d=a;g=e;d.li=d.Nl;d.Yf=d.Rl;e=g.x+(g.Kc>>1);var h=g.y+(g.Uc>>1),t=g.Uc;g.Kc>1;d.Df+=(d.Yf>>1)-2;u(d,c);d.Ll&&(d.Cd.restore(),d.Ll=!1)}}}else u(a,"This space intentionally left blank");a.Yh.drawImage(a.Gg,0,0,a.Gg.width,a.Gg.height,a.ps, -a.ss,a.Hr,a.Kr);a.fo=!1}}k.Nc=function(){this.video&&this.video.Nc()}; -k.Fb=function(a,b,c){var d=this;a=!1;switch(b){case "run":this.qa[b]=c;c.onclick=function(){var a;if(a=d.Ba)if(a=d.Ba,a.da.$b)a=!0;else{var b=null,c,h=Za(a.id);for(c=0;cc&&(c=60);2>c&&(c=2);var d=1;b&&1a.U.oi&&(c=Math.round(c/a.U.be));return c}function Tc(a){a.U.Ge=0;a.rf=a.Ke=a.Yc=a.A=0;Uc(a);cd(a,1)} -function Eb(a){return a.da.jb&&a.U.Ge?a.U.Ge.toFixed(2)+"Mhz":"Stopped"}function Db(a){return a.U.Zg.toFixed(2)+"Mhz"}function cd(a,b,c){if(void 0!==b){.8>a.U.Ge/a.U.Zg&&(b=1);a.U.be=b;b=a.U.oi*a.U.be;if(a.U.Zg!=b){a.U.Zg=b;b=Db(a);var d=a.qa.setSpeed;d&&(d.textContent=b);a.R("target speed: "+b)}c&&a.Nc()}hd(a,a.Ke);a.Ke=0;a.U.ag=pa();a.U.nf=0;id(a)} -k.uf=function(a){if(fb(this,!0)){if(!this.da.jb){cd(this);this.Ba&&this.Ba.start(this.U.ag,Yc(this));this.da.jb=!0;this.da.Cj=!0;this.fa&&jd(this.fa);var b=this.qa.run;b&&(b.textContent="Halt");this.dd(!0);a&&this.Nc()}this.U.Sj>=this.U.Gd&&id(this,!0);this.U.fh=0;this.U.pi=pa();this.U.nf&&(a=this.U.pi-this.U.nf,a>this.U.$l&&(this.U.ag+=a,this.U.ag>this.U.pi&&(this.U.ag=this.U.pi)));try{do{var c=this.da.Rf?1:this.U.vp;if(this.fa){kd(this.fa);var d=this.fa;a=c;var e=d.Jb[0];if(e.kf){var f=(Yc(d.N, -d.Ce)-e.sd)/d.yi|0,g=ld(d,0)-f;6==e.mode&&(g-=f);var h=g*d.yi|0;6==e.mode&&(h>>=1);a>h&&(a=h)}var c=a,t=this.fa;a=c;if(t.ea&&t.ea[11]&64){var r=t.hg-Yc(t.N,t.Ce);0r&&(a=r)}c=a}this.ng(c);var B=this.Yc-this.A;this.Ke+=B;this.U.fh+=B;hd(this,0,!0);Xc(this,B);this.U.eh-=B;0>=this.U.eh&&(this.U.eh+=this.U.dm,$c(this));this.U.dh-=B;0>=this.U.dh&&(this.U.dh+=this.U.cm,this.dd());this.U.eg-=B;if(0>=this.U.eg){this.U.eg+=this.U.Rj;break}}while(this.da.jb)}catch(J){this.lb();Vc(this);this.Ba&&this.Ba.stop(pa(), -Yc(this));fb(this,!1);lb(this,J.message);return}c=setTimeout;d=this.Cp;this.U.nf=pa();e=this.U.$l;this.U.fh&&(e=Math.round(e*this.U.fh/this.U.Rj));e-=this.U.nf-this.U.pi;if(f=this.U.nf-this.U.ag)this.U.Ge=Math.round(this.Ke/(10*f))/100,864E5<=f&&(this.rf=0,this.fa&&kd(this.fa,!0),cd(this));if(0>e||this.U.Gethis.rb?this.ta+a:Cd.call(this,0,0,c)}function Cd(a,b,c){c||wd.call(this.N,13,0);return q} +!0},function(a,b){var c=a>>2,d=(a&3)<<3;if(d){var e=-1<>>32-d}else this.oa[c]=b;this.Ra=!0}],Nc=[function(a){Lc(this.Z,this.ub+a);return this.th(a)},function(a){Lc(this.Z,this.ub+a)||Lc(this.Z,this.ub+a+1);return this.Nk(a)},function(a){Lc(this.Z,this.ub+a)||Lc(this.Z,this.ub+a+1)||Lc(this.Z,this.ub+a+2)||Lc(this.Z,this.ub+a+3);return this.uh(a)},function(a,b){Mc(this.Z,this.ub+a);this.og(a,b)},function(a,b){Mc(this.Z,this.ub+a)||Mc(this.Z, +this.ub+a+1);this.Yk(a,b)},function(a,b){Mc(this.Z,this.ub+a)||Mc(this.Z,this.ub+a+1)||Mc(this.Z,this.ub+a+2)||Mc(this.Z,this.ub+a+3);this.Dn(a,b)}];if(mb)var pc=[wc,yc,Ac,Cc,Ec,Ic],oc=[xc,zc,Bc,Dc,Fc,Kc]; +Tb.prototype={constructor:Tb,parent:null,save:function(){var a,b;if(this.X)a=null;else if(mb)for(a=Array(this.size>>2),b=0;b=a.U.cg&&(a.U.cg+=a.U.bg,c=!0);0<=a.U.dg&&a.U.dg<=Yc(a)&&(a.U.bg=a.U.dg=-1,Uc(a),a.lb(),c=!0);c&&a.R(Yc(a)+" cycles: checksum="+ea(a.U.bh))}} +function Zc(a,b,c,d){a.qa[b]&&(void 0===d&&(d=4),void 0===c&&(lb(a,"Register "+b+" is invalid"),a.lb()),c=!a.da.jb||a.da.Gl?ea(c,d):"----".substr(0,d),a.qa[b].textContent!=c&&(a.qa[b].textContent=c))}k.ed=function(){this.Ba&&this.Ba.ee&&this.Ba.ee.ed()}; +function $c(a){a.video&&ad(a.video);if(a.Ba&&a.Ba.ee&&(a=a.Ba.ee,a.ho)){Ab(a,18,a.Gg,a.Sn,a.canvas.style.color);if(a.Qr){var b=a.ha,c=a.Za,d,e;null==d&&(d=0);null==e&&(e=b.Yi-d|0);null==c&&(c={lj:0,Dg:0,Ti:Array(b.Cg)});var f=d>>>b.Ga;d=d+e-1>>>b.Ga;c.lj=0;for(c.Dg=0;f<=d;){e=b.ma[f];c.lj+=e.size;if(e.size){var g=f,g=g|e.type<<28;c.Ti[c.Dg++]=g}f++}a.Za=c;a.ln=a.Za.Dg*a.ha.Bb/691200;e=0;a.Za.ij=0;a.Za.Gf||(a.Za.Gf=[]);d=-1;for(var g=0,h=-1,b=0;b>>28;f&=wb;if(c!=d||f!= +h+1){if(h=b-g)d=a.Za.Gf[a.Za.ij++]=g|h<>xb&yb,a.Za.Ff.push(qb(c,d,f,0==b)),f-=d;for(b=0;b>28&7;f=f>>xb&yb;d=e=a.Za.Ff[b];g=a.Sn;(h=sc[c])||(h=new ob);g.strokeStyle="black";g.strokeRect(d.x,d.y,d.Lc,d.Vc);g.fillStyle="string"==typeof h?h:h.toString();g.fillRect(d.x,d.y,d.Lc, +d.Vc);d=a;g=e;d.mi=d.Ol;d.Yf=d.Sl;e=g.x+(g.Lc>>1);var h=g.y+(g.Vc>>1),t=g.Vc;g.Lc>1;d.Df+=(d.Yf>>1)-2;u(d,c);d.Ml&&(d.Dd.restore(),d.Ml=!1)}}}else u(a,"This space intentionally left blank");a.Zh.drawImage(a.Gg,0,0,a.Gg.width,a.Gg.height,a.qs, +a.ts,a.Ir,a.Lr);a.ho=!1}}k.Oc=function(){this.video&&this.video.Oc()}; +k.Fb=function(a,b,c){var d=this;a=!1;switch(b){case "run":this.qa[b]=c;c.onclick=function(){var a;if(a=d.Ba)if(a=d.Ba,a.da.$b)a=!0;else{var b=null,c,h=Za(a.id);for(c=0;cc&&(c=60);2>c&&(c=2);var d=1;b&&1a.U.pi&&(c=Math.round(c/a.U.be));return c}function Tc(a){a.U.Ge=0;a.rf=a.Ke=a.Zc=a.A=0;Uc(a);cd(a,1)} +function Eb(a){return a.da.jb&&a.U.Ge?a.U.Ge.toFixed(2)+"Mhz":"Stopped"}function Db(a){return a.U.$g.toFixed(2)+"Mhz"}function cd(a,b,c){if(void 0!==b){.8>a.U.Ge/a.U.$g&&(b=1);a.U.be=b;b=a.U.pi*a.U.be;if(a.U.$g!=b){a.U.$g=b;b=Db(a);var d=a.qa.setSpeed;d&&(d.textContent=b);a.R("target speed: "+b)}c&&a.Oc()}hd(a,a.Ke);a.Ke=0;a.U.ag=pa();a.U.nf=0;id(a)} +k.uf=function(a){if(fb(this,!0)){if(!this.da.jb){cd(this);this.Ba&&this.Ba.start(this.U.ag,Yc(this));this.da.jb=!0;this.da.Dj=!0;this.fa&&jd(this.fa);var b=this.qa.run;b&&(b.textContent="Halt");this.ed(!0);a&&this.Oc()}this.U.Tj>=this.U.Hd&&id(this,!0);this.U.gh=0;this.U.qi=pa();this.U.nf&&(a=this.U.qi-this.U.nf,a>this.U.am&&(this.U.ag+=a,this.U.ag>this.U.qi&&(this.U.ag=this.U.qi)));try{do{var c=this.da.Rf?1:this.U.wp;if(this.fa){kd(this.fa);var d=this.fa;a=c;var e=d.Jb[0];if(e.kf){var f=(Yc(d.N, +d.Ce)-e.td)/d.zi|0,g=ld(d,0)-f;6==e.mode&&(g-=f);var h=g*d.zi|0;6==e.mode&&(h>>=1);a>h&&(a=h)}var c=a,t=this.fa;a=c;if(t.ea&&t.ea[11]&64){var r=t.hg-Yc(t.N,t.Ce);0r&&(a=r)}c=a}this.ng(c);var B=this.Zc-this.A;this.Ke+=B;this.U.gh+=B;hd(this,0,!0);Xc(this,B);this.U.fh-=B;0>=this.U.fh&&(this.U.fh+=this.U.em,$c(this));this.U.eh-=B;0>=this.U.eh&&(this.U.eh+=this.U.dm,this.ed());this.U.eg-=B;if(0>=this.U.eg){this.U.eg+=this.U.Sj;break}}while(this.da.jb)}catch(J){this.lb();Vc(this);this.Ba&&this.Ba.stop(pa(), +Yc(this));fb(this,!1);lb(this,J.message);return}c=setTimeout;d=this.Dp;this.U.nf=pa();e=this.U.am;this.U.gh&&(e=Math.round(e*this.U.gh/this.U.Sj));e-=this.U.nf-this.U.qi;if(f=this.U.nf-this.U.ag)this.U.Ge=Math.round(this.Ke/(10*f))/100,864E5<=f&&(this.rf=0,this.fa&&kd(this.fa,!0),cd(this));if(0>e||this.U.Gethis.rb?this.ta+a:Cd.call(this,0,0,c)}function Cd(a,b,c){c||wd.call(this.N,13,0);return q} function Ed(a,b,c){return a+b<=this.rb?this.ta+a:Fd.call(this,0,0,c)}function Gd(a,b,c){return a+b>this.rb?this.ta+a:Fd.call(this,0,0,c)}function Fd(a,b,c){c||wd.call(this.N,13,0);return q} function Hd(a,b){var c=this.N,d=c.eb.ta,e=this.bb,f=c.eb.va;if(!b){if(768!=c.eb.type)return wd.call(c,10,a,!0),!1;c.Qa(c.eb.Pd+4,c.eb.nb&-769|256)}if(c.eb.load(a)==q)return!1;var g=c.eb.ta;if(b){if(768==c.eb.type)return wd.call(c,13,a,!0),!1;c.Qa(c.eb.Pd+4,c.eb.nb|=768);c.eb.type=768}c.Qa(d+14,v(c));c.Qa(d+16,Gb(c));c.Qa(d+18,c.G);c.Qa(d+20,c.I);c.Qa(d+22,c.J);c.Qa(d+24,c.C);c.Qa(d+26,w(c));c.Qa(d+28,c.H);c.Qa(d+30,c.F);c.Qa(d+32,c.D);c.Qa(d+34,c.Ja.va);c.Qa(d+36,c.ra.va);c.Qa(d+38,c.xa.va);c.Qa(d+ -40,c.Ya.va);var d=38,h=26;Id(c,c.la(g+16)|(b?16384:0));c.G=c.la(g+18);c.I=c.la(g+20);c.J=c.la(g+22);c.C=c.la(g+24);c.H=c.la(g+28);c.F=c.la(g+30);c.D=c.la(g+32);c.Ja.load(c.la(g+34));c.Ya.load(c.la(g+40));Jd(c,c.la(g+14),c.la(g+36));this.bb>13;if(6144<=h){M=c&3;if(M>a.bb){if(!1!==B&&!(N==a.bb||g&1024&&N<=a.bb)){t=q;break}C=e.Ka();Kd(e,e.Ka(),!0);x(e,C);a.ii=!0}C=!1}else if(1024==h)C=!0,E=-1,J=c,Mh||2048==(h&2560))){d||wd.call(e,13,c,!!g);t=q;break}}else if(3==a.id){if(!B||4096>h||2048==(h&2560)){d|| -wd.call(e,13,c,!0);t=q;break}}else if(4==a.id){if(!B||256!=h&&768!=h){d||wd.call(e,10,c,!0);t=q;break}}else if(6==a.id&&!(g&4096)&&768>13;80386>a.N.za||!(a.$h&64)?(a.qe=2,a.ja=65535):(a.qe=4,a.ja=-1)}else a.load=td,a.Xl=xd,a.Ic=zd,a.jc=Ad,a.rb=65535,a.bb=a.pc=0,a.Pd=q,a.qe=2,a.ja=65535;a.Vc=a.qe;a.na=a.ja} -function Nd(a){this.za=a.model||8088;var b=0;switch(this.za){default:b=4772727;break;case 80286:b=6E6;break;case 80386:b=16E6}Sc.call(this,a,b);this.bl=61442;this.Ah=nd;this.zh=4;this.ig=255;this.B=80286<=this.za?Od:Pd;this.Ua=Qd;this.el=Rd;this.fl=Sd;this.gl=Td;80186<=this.za&&(this.Ua=Qd.slice(),this.el=Rd.slice(),this.fl=Sd.slice(),this.ig=31,this.Ua[15]=Ud,this.Ua[96]=Vd,this.Ua[97]=Wd,this.Ua[98]=Xd,this.Ua[99]=Ud,this.Ua[100]=Ud,this.Ua[101]=Ud,this.Ua[102]=Ud,this.Ua[103]=Ud,this.Ua[104]=Yd, -this.Ua[105]=Zd,this.Ua[106]=$d,this.Ua[107]=ae,this.Ua[108]=be,this.Ua[109]=ce,this.Ua[110]=de,this.Ua[111]=ee,this.Ua[192]=fe,this.Ua[193]=ge,this.Ua[200]=he,this.Ua[201]=ie,this.Ua[241]=je,this.el[7]=ke,this.fl[7]=ke,80286<=this.za&&(this.bl=2,this.Ah|=28672,this.zh=0,this.Jn=le,this.Ua[15]=me,this.Ua[99]=ne,this.Ua[84]=oe));this.Ch=[];this.Dh=[];this.Yc=this.Eg=0;this.da.Pg=this.da.Dl=!1;this.tl=0;this.ma=[];this.Wa=this.Ga=this.Da=this.sc=0;pe(this)}Ya(Sc,Nd); -var Pd={zi:4,T:5,ua:6,aa:7,ba:8,M:9,O:11,P:12,pf:4,fm:60,gm:83,bc:3,Cb:9,qc:16,vi:1,km:19,mm:28,om:16,nm:21,lm:37,im:2,ak:9,jm:5,hm:33,ck:10,bk:8,kh:3,jh:15,Cm:51,Dm:1,Em:2,Fm:4,Bm:32,dk:15,Hm:15,cc:16,dc:4,Jm:11,Im:18,Gm:24,Nb:4,Km:2,ek:16,Lm:17,jk:18,Mm:19,ik:5,kk:6,Rm:2,Qm:8,Om:9,Pm:10,Nm:10,lk:10,mk:10,qm:80,sm:144,pm:86,rm:154,um:101,wm:165,tm:107,vm:171,Tm:70,Vm:113,Sm:76,Um:124,ym:80,Am:128,xm:86,zm:134,mh:3,lh:16,rk:10,qk:8,Wm:51,rc:8,Xm:17,Ym:36,yc:11,Zm:16,nh:10,Je:2,Yj:18,Zj:7,$j:15,fk:12, -gk:7,hk:11,nk:18,ok:7,pk:15,sk:15,tk:7,uk:13,yk:11,zk:7,Ak:8,$m:8,cn:12,an:18,bn:17,dn:15,wk:8,vk:20,xk:2,Dk:3,oh:9,Ck:5,Bk:11,Fk:4,Ek:17,en:11},Od={zi:0,T:0,ua:0,aa:0,ba:0,M:0,O:1,P:1,pf:3,fm:14,gm:16,bc:2,Cb:7,qc:7,vi:0,km:7,mm:13,om:7,nm:11,lm:16,im:3,ak:6,jm:2,hm:13,ck:5,bk:5,kh:2,jh:7,Cm:23,Dm:0,Em:1,Fm:3,Bm:17,dk:7,Hm:11,cc:7,dc:3,Jm:7,Im:11,Gm:15,Nb:2,Km:3,ek:7,Lm:8,jk:8,Mm:8,ik:4,kk:4,Rm:2,Qm:3,Om:5,Pm:2,Nm:3,lk:5,mk:3,qm:14,sm:22,pm:17,rm:25,um:17,wm:25,tm:20,vm:28,Tm:13,Vm:21,Sm:16,Um:24, -ym:13,Am:21,xm:16,zm:24,mh:2,lh:7,rk:5,qk:5,Wm:19,rc:5,Xm:5,Ym:17,yc:3,Zm:5,nh:3,Je:0,Yj:8,Zj:5,$j:9,fk:5,gk:5,hk:4,nk:5,ok:5,pk:4,sk:7,tk:5,uk:8,yk:3,zk:4,Ak:3,$m:11,cn:11,an:15,bn:15,dn:7,wk:5,vk:8,xk:0,Dk:2,oh:6,Ck:3,Bk:6,Fk:3,Ek:5,en:5};k=Nd.prototype;k.Lj=function(a,b,c,d){this.ma=a;this.Ga=b;this.Da=c;this.sc=d};k.reset=function(){this.da.jb&&this.lb();pe(this);Tc(this);this.da.pd=!1}; -function pe(a){a.G=0;a.C=0;a.I=0;a.J=0;a.H=0;a.F=0;a.D=0;a.Pb=a.uh=-1;a.Nh=0;a.gc=65520;a.Sc=0;a.Xe=1023;a.gg=0;a.ui=-1;a.ra=new qd(a,rd,"CS");a.Ya=new qd(a,2,"DS");a.Ja=new qd(a,2,"ES");a.xa=new qd(a,3,"SS");x(a,0);Kd(a,0);a.wn=new qd(a,0,"NULL");a.tb=a.Ya;a.cd=a.xa;a.S=a.Ca=0;a.ca=a.La=q;a.wb=0;Jd(a,0,65535);a.qe=a.ra.qe;a.ja=a.ra.ja;a.xd=z;a.wd=se;a.Ve=te;a.Gb=A;a.Pc=ue;a.gd=ve;a.Vc=a.ra.Vc;a.na=a.ra.na;2==a.Vc?(a.Vg=a.la,a.zn=a.Qa):(a.Vg=a.Ug,a.zn=a.yn);a.Ca&=-12289;if(80286<=a.za){a.Ec=0;a.We= -65535;a.bd=new qd(a,5,"LDT",!0);a.eb=new qd(a,4,"TSS",!0);a.Tb=new qd(a,6,"VER",!0);Jd(a,65520,61440);var b,c=v(a);b=a.ra;var d=-65536;80386>b.N.za&&(d&=16777215);b=b.ta=d;a.ka=b+c;a.sf=b+a.ra.rb}Id(a,0);we(a)}k.Ol=function(){var a=this.G+this.C+this.I+this.J+w(this)+this.H+this.F+this.D|0;return a=a+v(this)+Fb(this)+this.Ya.va+this.xa.va+this.Ja.va+Gb(this)|0};function xe(a,b,c,d){void 0!==d&&(void 0===a.Ch[b]&&(a.Ch[b]=[]),a.Ch[b].push([c,d]))} -function ye(a,b){var c=a.Ch[b];if(void 0!==c)for(var d=0;d>((a^a>>4)&15)&1?0:Ob}function Me(a){return(a.W^a.ia)&16?Nb:0} +40,c.Ya.va);var d=38,h=26;Id(c,c.la(g+16)|(b?16384:0));c.G=c.la(g+18);c.I=c.la(g+20);c.J=c.la(g+22);c.C=c.la(g+24);c.H=c.la(g+28);c.F=c.la(g+30);c.D=c.la(g+32);c.Ja.load(c.la(g+34));c.Ya.load(c.la(g+40));Jd(c,c.la(g+14),c.la(g+36));this.bb>13;if(6144<=h){M=c&3;if(M>a.bb){if(!1!==B&&!(N==a.bb||g&1024&&N<=a.bb)){t=q;break}C=e.Ka();Kd(e,e.Ka(),!0);x(e,C);a.ji=!0}C=!1}else if(1024==h)C=!0,E=-1,J=c,Mh||2048==(h&2560))){d||wd.call(e,13,c,!!g);t=q;break}}else if(3==a.id){if(!B||4096>h||2048==(h&2560)){d|| +wd.call(e,13,c,!0);t=q;break}}else if(4==a.id){if(!B||256!=h&&768!=h){d||wd.call(e,10,c,!0);t=q;break}}else if(6==a.id&&!(g&4096)&&768>13;80386>a.N.za||!(a.ai&64)?(a.qe=2,a.ja=65535):(a.qe=4,a.ja=-1)}else a.load=td,a.Yl=xd,a.Jc=zd,a.jc=Ad,a.rb=65535,a.bb=a.qc=0,a.Pd=q,a.qe=2,a.ja=65535;a.Wc=a.qe;a.na=a.ja} +function Nd(a){this.za=a.model||8088;var b=0;switch(this.za){default:b=4772727;break;case 80286:b=6E6;break;case 80386:b=16E6}Sc.call(this,a,b);this.cl=61442;this.Bh=nd;this.Ah=4;this.ig=255;this.B=80286<=this.za?Od:Pd;this.Ua=Qd;this.fl=Rd;this.gl=Sd;this.hl=Td;80186<=this.za&&(this.Ua=Qd.slice(),this.fl=Rd.slice(),this.gl=Sd.slice(),this.ig=31,this.Ua[15]=Ud,this.Ua[96]=Vd,this.Ua[97]=Wd,this.Ua[98]=Xd,this.Ua[99]=Ud,this.Ua[100]=Ud,this.Ua[101]=Ud,this.Ua[102]=Ud,this.Ua[103]=Ud,this.Ua[104]=Yd, +this.Ua[105]=Zd,this.Ua[106]=$d,this.Ua[107]=ae,this.Ua[108]=be,this.Ua[109]=ce,this.Ua[110]=de,this.Ua[111]=ee,this.Ua[192]=fe,this.Ua[193]=ge,this.Ua[200]=he,this.Ua[201]=ie,this.Ua[241]=je,this.fl[7]=ke,this.gl[7]=ke,80286<=this.za&&(this.cl=2,this.Bh|=28672,this.Ah=0,this.Kn=le,this.Ua[15]=me,this.Ua[99]=ne,this.Ua[84]=oe));this.Dh=[];this.Eh=[];this.Zc=this.Eg=0;this.da.Qg=this.da.El=!1;this.ul=0;this.ma=[];this.Wa=this.Ga=this.Ea=this.tc=0;pe(this)}Ya(Sc,Nd); +var Pd={Ai:4,T:5,ua:6,aa:7,ba:8,M:9,O:11,P:12,pf:4,gm:60,hm:83,bc:3,Cb:9,rc:16,wi:1,lm:19,nm:28,pm:16,om:21,mm:37,jm:2,bk:9,km:5,im:33,dk:10,ck:8,lh:3,kh:15,Dm:51,Em:1,Fm:2,Gm:4,Cm:32,ek:15,Im:15,cc:16,dc:4,Km:11,Jm:18,Hm:24,Nb:4,Lm:2,fk:16,Mm:17,kk:18,Nm:19,jk:5,lk:6,Sm:2,Rm:8,Pm:9,Qm:10,Om:10,mk:10,nk:10,rm:80,tm:144,qm:86,sm:154,vm:101,xm:165,um:107,wm:171,Um:70,Wm:113,Tm:76,Vm:124,zm:80,Bm:128,ym:86,Am:134,nh:3,mh:16,sk:10,rk:8,Xm:51,sc:8,Ym:17,Zm:36,zc:11,$m:16,oh:10,Je:2,Zj:18,$j:7,ak:15,gk:12, +hk:7,ik:11,ok:18,pk:7,qk:15,tk:15,uk:7,vk:13,zk:11,Ak:7,Bk:8,an:8,dn:12,bn:18,cn:17,en:15,xk:8,wk:20,yk:2,Ek:3,ph:9,Dk:5,Ck:11,Gk:4,Fk:17,fn:11},Od={Ai:0,T:0,ua:0,aa:0,ba:0,M:0,O:1,P:1,pf:3,gm:14,hm:16,bc:2,Cb:7,rc:7,wi:0,lm:7,nm:13,pm:7,om:11,mm:16,jm:3,bk:6,km:2,im:13,dk:5,ck:5,lh:2,kh:7,Dm:23,Em:0,Fm:1,Gm:3,Cm:17,ek:7,Im:11,cc:7,dc:3,Km:7,Jm:11,Hm:15,Nb:2,Lm:3,fk:7,Mm:8,kk:8,Nm:8,jk:4,lk:4,Sm:2,Rm:3,Pm:5,Qm:2,Om:3,mk:5,nk:3,rm:14,tm:22,qm:17,sm:25,vm:17,xm:25,um:20,wm:28,Um:13,Wm:21,Tm:16,Vm:24, +zm:13,Bm:21,ym:16,Am:24,nh:2,mh:7,sk:5,rk:5,Xm:19,sc:5,Ym:5,Zm:17,zc:3,$m:5,oh:3,Je:0,Zj:8,$j:5,ak:9,gk:5,hk:5,ik:4,ok:5,pk:5,qk:4,tk:7,uk:5,vk:8,zk:3,Ak:4,Bk:3,an:11,dn:11,bn:15,cn:15,en:7,xk:5,wk:8,yk:0,Ek:2,ph:6,Dk:3,Ck:6,Gk:3,Fk:5,fn:5};k=Nd.prototype;k.Mj=function(a,b,c,d){this.ma=a;this.Ga=b;this.Ea=c;this.tc=d};k.reset=function(){this.da.jb&&this.lb();pe(this);Tc(this);this.da.qd=!1}; +function pe(a){a.G=0;a.C=0;a.I=0;a.J=0;a.H=0;a.F=0;a.D=0;a.Pb=a.vh=-1;a.Oh=0;a.gc=65520;a.Tc=0;a.Xe=1023;a.gg=0;a.vi=-1;a.ra=new qd(a,rd,"CS");a.Ya=new qd(a,2,"DS");a.Ja=new qd(a,2,"ES");a.xa=new qd(a,3,"SS");x(a,0);Kd(a,0);a.xn=new qd(a,0,"NULL");a.tb=a.Ya;a.dd=a.xa;a.S=a.Da=0;a.ca=a.La=q;a.wb=0;Jd(a,0,65535);a.qe=a.ra.qe;a.ja=a.ra.ja;a.yd=z;a.xd=se;a.Ve=te;a.Gb=A;a.Qc=ue;a.hd=ve;a.Wc=a.ra.Wc;a.na=a.ra.na;2==a.Wc?(a.Wg=a.la,a.An=a.Qa):(a.Wg=a.Vg,a.An=a.zn);a.Da&=-12289;if(80286<=a.za){a.Fc=0;a.We= +65535;a.cd=new qd(a,5,"LDT",!0);a.eb=new qd(a,4,"TSS",!0);a.Tb=new qd(a,6,"VER",!0);Jd(a,65520,61440);var b,c=v(a);b=a.ra;var d=-65536;80386>b.N.za&&(d&=16777215);b=b.ta=d;a.ka=b+c;a.sf=b+a.ra.rb}Id(a,0);we(a)}k.Pl=function(){var a=this.G+this.C+this.I+this.J+w(this)+this.H+this.F+this.D|0;return a=a+v(this)+Fb(this)+this.Ya.va+this.xa.va+this.Ja.va+Gb(this)|0};function xe(a,b,c,d){void 0!==d&&(void 0===a.Dh[b]&&(a.Dh[b]=[]),a.Dh[b].push([c,d]))} +function ye(a,b){var c=a.Dh[b];if(void 0!==c)for(var d=0;d>((a^a>>4)&15)&1?0:Ob}function Me(a){return(a.W^a.ia)&16?Nb:0} function Ne(a){return a.Q&a.V-1?0:Mb}function Oe(a){return a.W&a.V>>1?Lb:0}function Pe(a){return(a.W^a.ia^a.W>>1)&a.V>>1?Hb:0}function Qe(a){a.Q&=~a.V}function Re(a){a.ia=a.W&16|a.ia&-17}function Se(a){a.Q|=a.V-1}function Te(a){Oe(a)&&(a.W^=a.V>>1|a.V>>2,a.ia^=32896)}function Ue(a){a.W&=~a.V;a.ia=a.W&32896|a.ia&-32897}function Ve(a){a.Q|=a.V}function We(a){a.ia=~(a.W&16)&16|a.ia&-17}function Xe(a){a.Q&=~(a.V-1)}function Ye(a){Oe(a)||(a.W^=a.V>>1|a.V>>2,a.ia^=32896)} -function Ze(a){a.W|=a.V;a.ia=a.W&32896|a.ia&-32897}function Gb(a){return a.wa&~od|Ke(a)|Le(a)|Me(a)|Ne(a)|Oe(a)|Pe(a)}function $e(a,b){b=b|a.gc&1|65520;a.gc=a.gc&-65536|b&65535;a.gc&1&&we(a,!0)}function Id(a,b,c){a.V=256;a.Q=a.W=a.ia=0;b&Pb&&Ve(a);b&Ob||(a.W|=1);b&Nb&&(a.ia|=16);b&Mb||Se(a);b&Lb&&Ye(a);b&Hb&&Ze(a);a.gc&1||(b&=-61441);void 0===c&&(c=a.ra.bb);c?b=b&-12289|a.wa&12288:a.gg=(b&12288)>>12;c>a.gg&&(b=b&~Jb|a.wa&Jb);a.wa=a.wa&~a.Ah|b&a.Ah|a.bl;a.wa&Kb&&(a.wb|=2,a.S|=4)} -k.Fb=function(a,b,c){var d=!1;switch(b){case "AX":case "BX":case "CX":case "DX":case "SP":case "BP":case "SI":case "DI":case "CS":case "DS":case "SS":case "ES":case "IP":case "PC":case "PS":case "C":case "P":case "A":case "Z":case "S":case "T":case "I":case "D":case "V":this.qa[b]=c;this.tl++;d=!0;break;default:d=this.parent.Fb.call(this,a,b,c)}return d};k.Oa=function(a){return this.ma[(a&this.Wa)>>>this.Ga].Eb(a&this.Da)}; -k.la=function(a){var b=a&this.Da;a=(a&this.Wa)>>>this.Ga;this.A-=this.B.zi;return b>>this.Ga;if(b>>c|this.ma[a+1&this.sc].td(0)<<32-c};k.ud=function(a,b){this.ma[(a&this.Wa)>>>this.Ga].Ib(a&this.Da,b&255)}; -k.Qa=function(a,b){var c=a&this.Da,d=(a&this.Wa)>>>this.Ga;this.A-=this.B.zi;c>8&255))};k.yn=function(a,b){var c=a&this.Da,d=(a&this.Wa)>>>this.Ga;this.A-=this.B.zi;if(c>>32-f)}}; -function af(a,b,c){a.yh=b;a.ca=b.Ic(a.rh=c,0);return a.S&1?0:a.Oa(a.ca)}function F(a,b){return af(a,a.tb,b&65535)}function G(a,b){return af(a,a.cd,b&65535)}function bf(a,b,c){a.yh=b;a.ca=b.Ic(a.rh=c,1);return a.S&1?0:a.Vg(a.ca)}function H(a,b){return bf(a,a.tb,b&65535)}function I(a,b){return bf(a,a.cd,b&65535)}function cf(a,b,c){a.yh=b;a.La=a.ca=b.Ic(a.rh=c,0);return a.S&1?0:a.Oa(a.ca)}function K(a,b){return cf(a,a.tb,b&65535)}function L(a,b){return cf(a,a.cd,b&65535)} -function df(a,b,c){a.yh=b;a.La=a.ca=b.Ic(a.rh=c,1);return a.S&1?0:a.Vg(a.ca)}function O(a,b){return df(a,a.tb,b&65535)}function P(a,b){return df(a,a.cd,b&65535)}function Q(a,b){a.S&2||a.ud(a.yh.jc(a.rh,0),b)}function R(a,b){a.S&2||a.Qa(a.yh.jc(a.rh,1),b)}function Md(a,b,c){return a.la(b.Ic(c,1))}k.Y=function(){var a=this.Oa(this.ka);++this.ka>this.sf&&D(this,this.ka-this.ra.ta);return a};k.L=function(){var a=this.Oa(this.ka)<<24>>24;++this.ka>this.sf&&D(this,this.ka-this.ra.ta);return a&65535}; -function ef(a){var b=a.la(a.ka);a.ka+=2;a.ka>a.sf&&D(a,a.ka-a.ra.ta);return b}k.K=function(){var a=this.Vg(this.ka);this.ka+=this.qe;this.ka>this.sf&&D(this,this.ka-this.ra.ta);return a};k.Ka=function(){var a=this.Vg(this.Zc);this.Zc+=2;this.Zc>this.mn&&x(this,this.Zc-this.xa.ta);return a};function y(a,b){a.Zc-=2;a.Zcthis.La?0>this.ca?this.B.bc:this.B.Cb:this.B.qc;return this.Q&255}function mf(a,b){this.ia=a^b;this.Q=this.W=a+b+(this.Q&this.V?1:0);this.V=65536;this.A-=0>this.La?0>this.ca?this.B.bc:this.B.Cb:this.B.qc;return this.Q&65535} -function nf(a,b){this.ia=a^b;this.V=256;this.A-=0>this.La?0>this.ca?this.B.bc:this.B.Cb:this.B.qc;return(this.Q=this.W=a+b)&255}function of(a,b){this.ia=a^b;this.V=65536;this.A-=0>this.La?0>this.ca?this.B.bc:this.B.Cb:this.B.qc;return(this.Q=this.W=a+b)&65535}function pf(a,b){this.V=256;this.A-=0>this.La?0>this.ca?this.B.bc:this.B.Cb:this.B.qc;return(this.Q=this.W=this.ia=a&b)&255} -function qf(a,b){this.V=65536;this.A-=0>this.La?0>this.ca?this.B.bc:this.B.Cb:this.B.qc;return(this.Q=this.W=this.ia=a&b)&65535}function rf(a,b){this.A-=10+(0>this.ca?0:1);if((a&3)<(b&3))return a=a&-4|b&3,Xe(this),a;Se(this);return a}function sf(a){if(0>this.ca)return Ud.call(this),a;var b=a<<16>>16,c=this.la(this.ca)<<16>>16,d=this.la(this.ca+2)<<16>>16;this.A-=this.B.hm;if(bd)D(this,this.Ob-this.ra.ta),hf.call(this,5,null,0);this.S|=2;return a} -function tf(a,b){var c=Fb(this),d=v(this);null!=Jd(this,a,b,!0)&&(y(this,c),y(this,d))}function uf(a,b){this.ia=a^b;this.V=256;this.Q=this.W=a-b;this.A-=0>this.La?0>this.ca?this.B.bc:this.B.ak:this.B.Cb;this.S|=2;return a}function vf(a,b){this.ia=a^b;this.V=65536;this.Q=this.W=a-b;this.A-=0>this.La?0>this.ca?this.B.bc:this.B.ak:this.B.Cb;this.S|=2;return a}function wf(a){return a} +function Ze(a){a.W|=a.V;a.ia=a.W&32896|a.ia&-32897}function Gb(a){return a.wa&~od|Ke(a)|Le(a)|Me(a)|Ne(a)|Oe(a)|Pe(a)}function $e(a,b){b=b|a.gc&1|65520;a.gc=a.gc&-65536|b&65535;a.gc&1&&we(a,!0)}function Id(a,b,c){a.V=256;a.Q=a.W=a.ia=0;b&Pb&&Ve(a);b&Ob||(a.W|=1);b&Nb&&(a.ia|=16);b&Mb||Se(a);b&Lb&&Ye(a);b&Hb&&Ze(a);a.gc&1||(b&=-61441);void 0===c&&(c=a.ra.bb);c?b=b&-12289|a.wa&12288:a.gg=(b&12288)>>12;c>a.gg&&(b=b&~Jb|a.wa&Jb);a.wa=a.wa&~a.Bh|b&a.Bh|a.cl;a.wa&Kb&&(a.wb|=2,a.S|=4)} +k.Fb=function(a,b,c){var d=!1;switch(b){case "AX":case "BX":case "CX":case "DX":case "SP":case "BP":case "SI":case "DI":case "CS":case "DS":case "SS":case "ES":case "IP":case "PC":case "PS":case "C":case "P":case "A":case "Z":case "S":case "T":case "I":case "D":case "V":this.qa[b]=c;this.ul++;d=!0;break;default:d=this.parent.Fb.call(this,a,b,c)}return d};k.Oa=function(a){return this.ma[(a&this.Wa)>>>this.Ga].Eb(a&this.Ea)}; +k.la=function(a){var b=a&this.Ea;a=(a&this.Wa)>>>this.Ga;this.A-=this.B.Ai;return b>>this.Ga;if(b>>c|this.ma[a+1&this.tc].ud(0)<<32-c};k.vd=function(a,b){this.ma[(a&this.Wa)>>>this.Ga].Ib(a&this.Ea,b&255)}; +k.Qa=function(a,b){var c=a&this.Ea,d=(a&this.Wa)>>>this.Ga;this.A-=this.B.Ai;c>8&255))};k.zn=function(a,b){var c=a&this.Ea,d=(a&this.Wa)>>>this.Ga;this.A-=this.B.Ai;if(c>>32-f)}}; +function af(a,b,c){a.zh=b;a.ca=b.Jc(a.sh=c,0);return a.S&1?0:a.Oa(a.ca)}function F(a,b){return af(a,a.tb,b&65535)}function G(a,b){return af(a,a.dd,b&65535)}function bf(a,b,c){a.zh=b;a.ca=b.Jc(a.sh=c,1);return a.S&1?0:a.Wg(a.ca)}function H(a,b){return bf(a,a.tb,b&65535)}function I(a,b){return bf(a,a.dd,b&65535)}function cf(a,b,c){a.zh=b;a.La=a.ca=b.Jc(a.sh=c,0);return a.S&1?0:a.Oa(a.ca)}function K(a,b){return cf(a,a.tb,b&65535)}function L(a,b){return cf(a,a.dd,b&65535)} +function df(a,b,c){a.zh=b;a.La=a.ca=b.Jc(a.sh=c,1);return a.S&1?0:a.Wg(a.ca)}function O(a,b){return df(a,a.tb,b&65535)}function P(a,b){return df(a,a.dd,b&65535)}function Q(a,b){a.S&2||a.vd(a.zh.jc(a.sh,0),b)}function R(a,b){a.S&2||a.Qa(a.zh.jc(a.sh,1),b)}function Md(a,b,c){return a.la(b.Jc(c,1))}k.Y=function(){var a=this.Oa(this.ka);++this.ka>this.sf&&D(this,this.ka-this.ra.ta);return a};k.L=function(){var a=this.Oa(this.ka)<<24>>24;++this.ka>this.sf&&D(this,this.ka-this.ra.ta);return a&65535}; +function ef(a){var b=a.la(a.ka);a.ka+=2;a.ka>a.sf&&D(a,a.ka-a.ra.ta);return b}k.K=function(){var a=this.Wg(this.ka);this.ka+=this.qe;this.ka>this.sf&&D(this,this.ka-this.ra.ta);return a};k.Ka=function(){var a=this.Wg(this.$c);this.$c+=2;this.$c>this.nn&&x(this,this.$c-this.xa.ta);return a};function y(a,b){a.$c-=2;a.$cthis.La?0>this.ca?this.B.bc:this.B.Cb:this.B.rc;return this.Q&255}function mf(a,b){this.ia=a^b;this.Q=this.W=a+b+(this.Q&this.V?1:0);this.V=65536;this.A-=0>this.La?0>this.ca?this.B.bc:this.B.Cb:this.B.rc;return this.Q&65535} +function nf(a,b){this.ia=a^b;this.V=256;this.A-=0>this.La?0>this.ca?this.B.bc:this.B.Cb:this.B.rc;return(this.Q=this.W=a+b)&255}function of(a,b){this.ia=a^b;this.V=65536;this.A-=0>this.La?0>this.ca?this.B.bc:this.B.Cb:this.B.rc;return(this.Q=this.W=a+b)&65535}function pf(a,b){this.V=256;this.A-=0>this.La?0>this.ca?this.B.bc:this.B.Cb:this.B.rc;return(this.Q=this.W=this.ia=a&b)&255} +function qf(a,b){this.V=65536;this.A-=0>this.La?0>this.ca?this.B.bc:this.B.Cb:this.B.rc;return(this.Q=this.W=this.ia=a&b)&65535}function rf(a,b){this.A-=10+(0>this.ca?0:1);if((a&3)<(b&3))return a=a&-4|b&3,Xe(this),a;Se(this);return a}function sf(a){if(0>this.ca)return Ud.call(this),a;var b=a<<16>>16,c=this.la(this.ca)<<16>>16,d=this.la(this.ca+2)<<16>>16;this.A-=this.B.im;if(bd)D(this,this.Ob-this.ra.ta),hf.call(this,5,null,0);this.S|=2;return a} +function tf(a,b){var c=Fb(this),d=v(this);null!=Jd(this,a,b,!0)&&(y(this,c),y(this,d))}function uf(a,b){this.ia=a^b;this.V=256;this.Q=this.W=a-b;this.A-=0>this.La?0>this.ca?this.B.bc:this.B.bk:this.B.Cb;this.S|=2;return a}function vf(a,b){this.ia=a^b;this.V=65536;this.Q=this.W=a-b;this.A-=0>this.La?0>this.ca?this.B.bc:this.B.bk:this.B.Cb;this.S|=2;return a}function wf(a){return a} function xf(a,b){var c=(b<<16>>16)*(this.Y()<<24>>24);this.Q=this.ia=this.W=c;this.V=256;32767c?(Ve(this),Ze(this)):(Qe(this),Ue(this));this.A-=0>this.ca?21:24;return c&65535}function yf(a,b){var c=(b<<16>>16)*(this.K()<<16>>16);this.Q=this.ia=this.W=c;this.V=65536;32767c?(Ve(this),Ze(this)):(Qe(this),Ue(this));this.A-=0>this.ca?21:24;return c&65535} -function hf(a,b,c){this.A-=this.B.Cm+c;this.ra.uj=!0;c=Gb(this);var d=Fb(this),e=v(this);a=this.ra.Xl(a);a!=q&&(this.ka=a,y(this,c),y(this,d),y(this,e),null!=b&&y(this,b),this.ui=-1)}function zf(a,b){this.A-=14+(0>this.ca?0:2);if(this.Tb.load(b,!0)!=q&&this.Tb.pc>=this.ra.bb&&this.Tb.pc>=(b&3))return Xe(this),this.Tb.nb&65280;Se(this);return a}function Af(a,b){if(0>this.ca)return U.call(this),a;He(this,this.la(this.ca+2));this.A-=this.B.ek;return b} -function Bf(a){if(0>this.ca)return U.call(this),a;this.A-=this.B.Km;return this.ca}function Cf(a,b){if(0>this.ca)return U.call(this),a;Ie(this,this.la(this.ca+2));this.A-=this.B.ek;return b}function Df(a,b){this.A-=14+(0>this.ca?0:2);if(b&65528&&this.Tb.load(b,!0)!=q&&(7168==(this.Tb.nb&7168)||this.Tb.pc>=this.ra.bb)&&this.Tb.pc>=(b&3))return Xe(this),this.Tb.rb;Se(this);return a}function Ef(a,b){this.A-=0>this.La?0>this.ca?this.B.Rm:this.B.Qm:this.B.Om;return b} -function Ff(){return Ef.call(this,0,this.Pb)}function Gf(a,b){this.V=256;this.A-=0>this.La?0>this.ca?this.B.bc:this.B.Cb:this.B.qc;return(this.Q=this.W=this.ia=a|b)&255}function Hf(a,b){this.V=65536;this.A-=0>this.La?0>this.ca?this.B.bc:this.B.Cb:this.B.qc;return(this.Q=this.W=this.ia=a|b)&65535} -function If(a){var b=this.Ka(),c=this.Ka();(a<<=this.Vc>>2)&&x(this,w(this)+a);Jd(this,b,c,!1)&&(a&&x(this,w(this)+a),this.Ya.va&65528&&this.Ya.pcthis.La?0>this.ca?this.B.bc:this.B.Cb:this.B.qc;return this.Q&255} -function Kf(a,b){this.ia=a^b;this.Q=this.W=a-b-(this.Q&this.V?1:0);this.V=65536;this.A-=0>this.La?0>this.ca?this.B.bc:this.B.Cb:this.B.qc;return this.Q&65535}function Lf(a,b){this.ia=a^b;this.V=256;this.A-=0>this.La?0>this.ca?this.B.bc:this.B.Cb:this.B.qc;return(this.Q=this.W=a-b)&255}function Pf(a,b){this.ia=a^b;this.V=65536;this.A-=0>this.La?0>this.ca?this.B.bc:this.B.Cb:this.B.qc;return(this.Q=this.W=a-b)&65535} -function Qf(a,b){this.Q=this.W=this.ia=a&b;this.V=256;this.A-=0>this.La?0>this.ca?this.B.Dk:this.B.oh:this.B.oh;this.S|=2;return a}function Rf(a,b){this.Q=this.W=this.ia=a&b;this.V=65536;this.A-=0>this.La?0>this.ca?this.B.Dk:this.B.oh:this.B.oh;this.S|=2;return a} -function Sf(a,b){if(0>this.ca){switch(this.Nh&7){case 0:this.G=this.G&-256|a;break;case 1:this.I=this.I&-256|a;break;case 2:this.J=this.J&-256|a;break;case 3:this.C=this.C&-256|a;break;case 4:this.G=this.G&255|a<<8;break;case 5:this.I=this.I&255|a<<8;break;case 6:this.J=this.J&255|a<<8;break;case 7:this.C=this.C&255|a<<8}this.A-=this.B.Fk}else this.La=this.ca,Q(this,a),this.A-=this.B.Ek;return b} -function Tf(a,b){if(0>this.ca){switch(this.Nh&7){case 0:this.G=a;break;case 1:this.I=a;break;case 2:this.J=a;break;case 3:this.C=a;break;case 4:x(this,a);break;case 5:this.H=a;break;case 6:this.F=a;break;case 7:this.D=a}this.A-=this.B.Fk}else this.La=this.ca,R(this,a),this.A-=this.B.Ek;return b}function Uf(a,b){this.V=256;this.A-=0>this.La?0>this.ca?this.B.bc:this.B.Cb:this.B.qc;return(this.Q=this.W=this.ia=a^b)&255} -function Vf(a,b){this.V=65536;this.A-=0>this.La?0>this.ca?this.B.bc:this.B.Cb:this.B.qc;return(this.Q=this.W=this.ia=a^b)&65535}function Wf(a,b){this.Q=this.Q&this.V-1|(a&b?this.V:0);(a^a>>1)&b>>1?Ze(this):Ue(this)}function Xf(){this.A-=0>this.ca?2:this.B.dn;return 1}function Yf(){var a=this.I&this.ig;this.A-=(0>this.ca?this.B.wk:this.B.vk)+(a<this.ca?this.B.wk:this.B.vk)+(a<this.ca?0:2);if(this.Tb.load(b,!0)!=q&&this.Tb.qc>=this.ra.bb&&this.Tb.qc>=(b&3))return Xe(this),this.Tb.nb&65280;Se(this);return a}function Af(a,b){if(0>this.ca)return U.call(this),a;He(this,this.la(this.ca+2));this.A-=this.B.fk;return b} +function Bf(a){if(0>this.ca)return U.call(this),a;this.A-=this.B.Lm;return this.ca}function Cf(a,b){if(0>this.ca)return U.call(this),a;Ie(this,this.la(this.ca+2));this.A-=this.B.fk;return b}function Df(a,b){this.A-=14+(0>this.ca?0:2);if(b&65528&&this.Tb.load(b,!0)!=q&&(7168==(this.Tb.nb&7168)||this.Tb.qc>=this.ra.bb)&&this.Tb.qc>=(b&3))return Xe(this),this.Tb.rb;Se(this);return a}function Ef(a,b){this.A-=0>this.La?0>this.ca?this.B.Sm:this.B.Rm:this.B.Pm;return b} +function Ff(){return Ef.call(this,0,this.Pb)}function Gf(a,b){this.V=256;this.A-=0>this.La?0>this.ca?this.B.bc:this.B.Cb:this.B.rc;return(this.Q=this.W=this.ia=a|b)&255}function Hf(a,b){this.V=65536;this.A-=0>this.La?0>this.ca?this.B.bc:this.B.Cb:this.B.rc;return(this.Q=this.W=this.ia=a|b)&65535} +function If(a){var b=this.Ka(),c=this.Ka();(a<<=this.Wc>>2)&&x(this,w(this)+a);Jd(this,b,c,!1)&&(a&&x(this,w(this)+a),this.Ya.va&65528&&this.Ya.qcthis.La?0>this.ca?this.B.bc:this.B.Cb:this.B.rc;return this.Q&255} +function Kf(a,b){this.ia=a^b;this.Q=this.W=a-b-(this.Q&this.V?1:0);this.V=65536;this.A-=0>this.La?0>this.ca?this.B.bc:this.B.Cb:this.B.rc;return this.Q&65535}function Lf(a,b){this.ia=a^b;this.V=256;this.A-=0>this.La?0>this.ca?this.B.bc:this.B.Cb:this.B.rc;return(this.Q=this.W=a-b)&255}function Pf(a,b){this.ia=a^b;this.V=65536;this.A-=0>this.La?0>this.ca?this.B.bc:this.B.Cb:this.B.rc;return(this.Q=this.W=a-b)&65535} +function Qf(a,b){this.Q=this.W=this.ia=a&b;this.V=256;this.A-=0>this.La?0>this.ca?this.B.Ek:this.B.ph:this.B.ph;this.S|=2;return a}function Rf(a,b){this.Q=this.W=this.ia=a&b;this.V=65536;this.A-=0>this.La?0>this.ca?this.B.Ek:this.B.ph:this.B.ph;this.S|=2;return a} +function Sf(a,b){if(0>this.ca){switch(this.Oh&7){case 0:this.G=this.G&-256|a;break;case 1:this.I=this.I&-256|a;break;case 2:this.J=this.J&-256|a;break;case 3:this.C=this.C&-256|a;break;case 4:this.G=this.G&255|a<<8;break;case 5:this.I=this.I&255|a<<8;break;case 6:this.J=this.J&255|a<<8;break;case 7:this.C=this.C&255|a<<8}this.A-=this.B.Gk}else this.La=this.ca,Q(this,a),this.A-=this.B.Fk;return b} +function Tf(a,b){if(0>this.ca){switch(this.Oh&7){case 0:this.G=a;break;case 1:this.I=a;break;case 2:this.J=a;break;case 3:this.C=a;break;case 4:x(this,a);break;case 5:this.H=a;break;case 6:this.F=a;break;case 7:this.D=a}this.A-=this.B.Gk}else this.La=this.ca,R(this,a),this.A-=this.B.Fk;return b}function Uf(a,b){this.V=256;this.A-=0>this.La?0>this.ca?this.B.bc:this.B.Cb:this.B.rc;return(this.Q=this.W=this.ia=a^b)&255} +function Vf(a,b){this.V=65536;this.A-=0>this.La?0>this.ca?this.B.bc:this.B.Cb:this.B.rc;return(this.Q=this.W=this.ia=a^b)&65535}function Wf(a,b){this.Q=this.Q&this.V-1|(a&b?this.V:0);(a^a>>1)&b>>1?Ze(this):Ue(this)}function Xf(){this.A-=0>this.ca?2:this.B.en;return 1}function Yf(){var a=this.I&this.ig;this.A-=(0>this.ca?this.B.xk:this.B.wk)+(a<this.ca?this.B.xk:this.B.wk)+(a<this.ui)D(this,this.Ob-this.ra.ta),d=!0;else if(8!=this.ui)b=0,a=8,d=!0;else{dg.call(this,-1,0,c);pe(this);return}dg.call(this,a,b,c)&&(d=!1);d&&hf.call(this,this.ui=a,b,0);this.S&=-4}else this.Xa("Fault "+l(a)+" blocked by Debugger",536870912),D(this,this.Ob-this.ra.ta)} -function dg(a,b,c){var d=32,e=Qb(this.ha,this.ka);204==e&&(c=!1,d|=1);983040<=this.ka&&1048575>=this.ka&&(c=!1);this.pa(d|1073741824)&&(c=!0);if(this.pa(d)||c)a=(c?"\n":"")+"Fault "+l(a)+(null!=b?" ("+m(b)+")":"")+" on opcode 0x"+l(e)+" at "+uc(this.Z,v(this),Fb(this))+" (%"+ea(this.ka,6)+")",b=this.da.jb,this.Xa(a,d)?c&&(c=b,this.Z.lb()):(this.Ea(a),this.lb());return c}function me(){this.Jn[this.Y()].call(this)}function oe(){y(this,w(this)&this.na);this.A-=this.B.yc} -function Vd(){var a=w(this)&this.na;y(this,this.G&this.na);y(this,this.I&this.na);y(this,this.J&this.na);y(this,this.C&this.na);y(this,a);y(this,this.H&this.na);y(this,this.F&this.na);y(this,this.D&this.na);this.A-=this.B.Ym} -function Wd(){this.D=this.D&~this.na|this.Ka();this.F=this.F&~this.na|this.Ka();this.H=this.H&~this.na|this.Ka();x(this,w(this)+this.Vc);this.C=this.C&~this.na|this.Ka();this.J=this.J&~this.na|this.Ka();this.I=this.I&~this.na|this.Ka();this.G=this.G&~this.na|this.Ka();this.A-=this.B.Wm}function Xd(){this.Gb[this.Y()].call(this,sf)}function ne(){this.Pc[this.Y()].call(this,rf)}function Yd(){y(this,this.K());this.A-=this.B.yc}function Zd(){this.Gb[this.Y()].call(this,yf)} -function $d(){y(this,this.Y());this.A-=this.B.yc}function ae(){this.Gb[this.Y()].call(this,xf)}function be(){var a=1,b=0,c=5;this.Ca&192&&(a=this.I,b=1,this.Ca&256&&(c=4));if(a--){var d=cc(this.ha,this.J,this.ka-b-1);this.ud(this.Ja.jc(this.D&this.ja,0),d);this.D=this.D&~this.ja|this.D+(this.wa&Ib?-1:1)&this.ja;this.A-=c;this.I-=b;a&&(this.ka=this.Ob,this.S|=256)}} -function ce(){var a=1,b=0,c=5;this.Ca&192&&(a=this.I,b=1,this.Ca&256&&(c=4));if(a--){var d=this.ka-b-1,e=cc(this.ha,this.J,d),d=e|=cc(this.ha,this.J,d)<<8;this.Qa(this.Ja.jc(this.D&this.ja,1),d);this.D=this.D&~this.ja|this.D+(this.wa&Ib?-2:2)&this.ja;this.A-=c;this.I-=b;a&&(this.ka=this.Ob,this.S|=256)}} -function de(){var a=1,b=0,c=5;this.Ca&192&&(a=this.I,b=1,this.Ca&256&&(c=4));if(a--){var d=this.Oa(this.Ya.Ic(this.F&this.ja,0));this.F=this.F&~this.ja|this.F+(this.wa&Ib?-1:1)&this.ja;this.A-=c;this.I-=b;gc(this.ha,this.J,d,this.ka-b-1);a&&(this.ka=this.Ob,this.S|=256)}} -function ee(){var a=1,b=0,c=5;this.Ca&192&&(a=this.I,b=1,this.Ca&256&&(c=4));if(a--){var d=Md(this,this.Ya,this.F&this.ja);this.F=this.F&~this.ja|this.F+(this.wa&Ib?-2:2)&this.ja;this.A-=c;this.I-=b;b=this.ka-b-1;gc(this.ha,this.J,d&255,b);gc(this.ha,this.J,d>>8,b);a&&(this.ka=this.Ob,this.S|=256)}}function eg(){var a=this.L();Pe(this)?(D(this,v(this)+a),this.A-=this.B.cc):this.A-=this.B.dc}function fg(){var a=this.L();Pe(this)?this.A-=this.B.dc:(D(this,v(this)+a),this.A-=this.B.cc)} +function wd(a,b,c){if(this.da.Qg){var d=!1;if(80186<=this.za)if(0>this.vi)D(this,this.Ob-this.ra.ta),d=!0;else if(8!=this.vi)b=0,a=8,d=!0;else{dg.call(this,-1,0,c);pe(this);return}dg.call(this,a,b,c)&&(d=!1);d&&hf.call(this,this.vi=a,b,0);this.S&=-4}else this.Xa("Fault "+l(a)+" blocked by Debugger",536870912),D(this,this.Ob-this.ra.ta)} +function dg(a,b,c){var d=32,e=Qb(this.ha,this.ka);204==e&&(c=!1,d|=1);983040<=this.ka&&1048575>=this.ka&&(c=!1);this.pa(d|1073741824)&&(c=!0);if(this.pa(d)||c)a=(c?"\n":"")+"Fault "+l(a)+(null!=b?" ("+m(b)+")":"")+" on opcode 0x"+l(e)+" at "+uc(this.Z,v(this),Fb(this))+" (%"+ea(this.ka,6)+")",b=this.da.jb,this.Xa(a,d)?c&&(c=b,this.Z.lb()):(this.Ca(a),this.lb());return c}function me(){this.Kn[this.Y()].call(this)}function oe(){y(this,w(this)&this.na);this.A-=this.B.zc} +function Vd(){var a=w(this)&this.na;y(this,this.G&this.na);y(this,this.I&this.na);y(this,this.J&this.na);y(this,this.C&this.na);y(this,a);y(this,this.H&this.na);y(this,this.F&this.na);y(this,this.D&this.na);this.A-=this.B.Zm} +function Wd(){this.D=this.D&~this.na|this.Ka();this.F=this.F&~this.na|this.Ka();this.H=this.H&~this.na|this.Ka();x(this,w(this)+this.Wc);this.C=this.C&~this.na|this.Ka();this.J=this.J&~this.na|this.Ka();this.I=this.I&~this.na|this.Ka();this.G=this.G&~this.na|this.Ka();this.A-=this.B.Xm}function Xd(){this.Gb[this.Y()].call(this,sf)}function ne(){this.Qc[this.Y()].call(this,rf)}function Yd(){y(this,this.K());this.A-=this.B.zc}function Zd(){this.Gb[this.Y()].call(this,yf)} +function $d(){y(this,this.Y());this.A-=this.B.zc}function ae(){this.Gb[this.Y()].call(this,xf)}function be(){var a=1,b=0,c=5;this.Da&192&&(a=this.I,b=1,this.Da&256&&(c=4));if(a--){var d=cc(this.ha,this.J,this.ka-b-1);this.vd(this.Ja.jc(this.D&this.ja,0),d);this.D=this.D&~this.ja|this.D+(this.wa&Ib?-1:1)&this.ja;this.A-=c;this.I-=b;a&&(this.ka=this.Ob,this.S|=256)}} +function ce(){var a=1,b=0,c=5;this.Da&192&&(a=this.I,b=1,this.Da&256&&(c=4));if(a--){var d=this.ka-b-1,e=cc(this.ha,this.J,d),d=e|=cc(this.ha,this.J,d)<<8;this.Qa(this.Ja.jc(this.D&this.ja,1),d);this.D=this.D&~this.ja|this.D+(this.wa&Ib?-2:2)&this.ja;this.A-=c;this.I-=b;a&&(this.ka=this.Ob,this.S|=256)}} +function de(){var a=1,b=0,c=5;this.Da&192&&(a=this.I,b=1,this.Da&256&&(c=4));if(a--){var d=this.Oa(this.Ya.Jc(this.F&this.ja,0));this.F=this.F&~this.ja|this.F+(this.wa&Ib?-1:1)&this.ja;this.A-=c;this.I-=b;gc(this.ha,this.J,d,this.ka-b-1);a&&(this.ka=this.Ob,this.S|=256)}} +function ee(){var a=1,b=0,c=5;this.Da&192&&(a=this.I,b=1,this.Da&256&&(c=4));if(a--){var d=Md(this,this.Ya,this.F&this.ja);this.F=this.F&~this.ja|this.F+(this.wa&Ib?-2:2)&this.ja;this.A-=c;this.I-=b;b=this.ka-b-1;gc(this.ha,this.J,d&255,b);gc(this.ha,this.J,d>>8,b);a&&(this.ka=this.Ob,this.S|=256)}}function eg(){var a=this.L();Pe(this)?(D(this,v(this)+a),this.A-=this.B.cc):this.A-=this.B.dc}function fg(){var a=this.L();Pe(this)?this.A-=this.B.dc:(D(this,v(this)+a),this.A-=this.B.cc)} function gg(){var a=this.L();Ke(this)?(D(this,v(this)+a),this.A-=this.B.cc):this.A-=this.B.dc}function hg(){var a=this.L();Ke(this)?this.A-=this.B.dc:(D(this,v(this)+a),this.A-=this.B.cc)}function ig(){var a=this.L();Ne(this)?(D(this,v(this)+a),this.A-=this.B.cc):this.A-=this.B.dc}function jg(){var a=this.L();Ne(this)?this.A-=this.B.dc:(D(this,v(this)+a),this.A-=this.B.cc)}function kg(){var a=this.L();Ke(this)||Ne(this)?(D(this,v(this)+a),this.A-=this.B.cc):this.A-=this.B.dc} function lg(){var a=this.L();Ke(this)||Ne(this)?this.A-=this.B.dc:(D(this,v(this)+a),this.A-=this.B.cc)}function mg(){var a=this.L();Oe(this)?(D(this,v(this)+a),this.A-=this.B.cc):this.A-=this.B.dc}function ng(){var a=this.L();Oe(this)?this.A-=this.B.dc:(D(this,v(this)+a),this.A-=this.B.cc)}function og(){var a=this.L();Le(this)?(D(this,v(this)+a),this.A-=this.B.cc):this.A-=this.B.dc}function pg(){var a=this.L();Le(this)?this.A-=this.B.dc:(D(this,v(this)+a),this.A-=this.B.cc)} function qg(){var a=this.L();!Oe(this)!=!Pe(this)?(D(this,v(this)+a),this.A-=this.B.cc):this.A-=this.B.dc}function rg(){var a=this.L();!Oe(this)==!Pe(this)?(D(this,v(this)+a),this.A-=this.B.cc):this.A-=this.B.dc}function sg(){var a=this.L();Ne(this)||!Oe(this)!=!Pe(this)?(D(this,v(this)+a),this.A-=this.B.cc):this.A-=this.B.dc}function tg(){var a=this.L();Ne(this)||!Oe(this)!=!Pe(this)?this.A-=this.B.dc:(D(this,v(this)+a),this.A-=this.B.cc)} -function ug(){this.Ve[this.Y()].call(this,vg,this.Y);this.A-=0>this.La?1:this.B.vi}function fe(){this.Ve[this.Y()].call(this,wg,Zf)}function ge(){this.gd[this.Y()].call(this,xg,Zf)}function yg(){var a=this.K()<<(this.Vc>>2);D(this,this.Ka());a&&x(this,w(this)+a);this.A-=this.B.cn}function zg(){D(this,this.Ka());this.A-=this.B.$m} -function he(){var a=this.K(),b=this.Y()&31;this.A-=11;y(this,this.H);var c=w(this)&this.xa.ja;if(0>8,c,d=Me(this);9<(a&15)||d?(a=a+6&15,b=b+1&255,c=d=!0):c=d=!1;this.G=this.G&-65536|b<<8|(this.Q=a);this.V=65536;c&&(this.Q|=this.V);d?We(this):Re(this);this.A-=this.B.pf},function(){this.wd[this.Y()].call(this, -uf)},function(){this.Pc[this.Y()].call(this,vf)},function(){this.xd[this.Y()].call(this,uf)},function(){this.Gb[this.Y()].call(this,vf)},function(){uf.call(this,this.G&255,this.Y());this.A--},function(){vf.call(this,this.G&this.na,this.K());this.A--},function(){this.S|=20;this.tb=this.cd=this.Ya;this.A-=this.B.Je},function(){var a=this.G&255,b=this.G>>8,c,d=Me(this);9<(a&15)||d?(a=a-6&15,b=b-1&255,c=d=!0):c=d=!1;this.G=this.G&-65536|b<<8|(this.Q=a);this.V=65536;c&&(this.Q|=this.V);d?We(this):Re(this); +function ug(){this.Ve[this.Y()].call(this,vg,this.Y);this.A-=0>this.La?1:this.B.wi}function fe(){this.Ve[this.Y()].call(this,wg,Zf)}function ge(){this.hd[this.Y()].call(this,xg,Zf)}function yg(){var a=this.K()<<(this.Wc>>2);D(this,this.Ka());a&&x(this,w(this)+a);this.A-=this.B.dn}function zg(){D(this,this.Ka());this.A-=this.B.an} +function he(){var a=this.K(),b=this.Y()&31;this.A-=11;y(this,this.H);var c=w(this)&this.xa.ja;if(0>8,c,d=Me(this);9<(a&15)||d?(a=a+6&15,b=b+1&255,c=d=!0):c=d=!1;this.G=this.G&-65536|b<<8|(this.Q=a);this.V=65536;c&&(this.Q|=this.V);d?We(this):Re(this);this.A-=this.B.pf},function(){this.xd[this.Y()].call(this, +uf)},function(){this.Qc[this.Y()].call(this,vf)},function(){this.yd[this.Y()].call(this,uf)},function(){this.Gb[this.Y()].call(this,vf)},function(){uf.call(this,this.G&255,this.Y());this.A--},function(){vf.call(this,this.G&this.na,this.K());this.A--},function(){this.S|=20;this.tb=this.dd=this.Ya;this.A-=this.B.Je},function(){var a=this.G&255,b=this.G>>8,c,d=Me(this);9<(a&15)||d?(a=a-6&15,b=b-1&255,c=d=!0):c=d=!1;this.G=this.G&-65536|b<<8|(this.Q=a);this.V=65536;c&&(this.Q|=this.V);d?We(this):Re(this); this.A-=this.B.pf},function(){this.W=(this.ia=this.G)+1;this.G=this.W&65535;this.Q=this.G|(this.Q&this.V?1:0)<<16;this.V=65536;this.A-=2},function(){this.W=(this.ia=this.I)+1;this.I=this.W&65535;this.Q=this.I|(this.Q&this.V?1:0)<<16;this.V=65536;this.A-=2},function(){this.W=(this.ia=this.J)+1;this.J=this.W&65535;this.Q=this.J|(this.Q&this.V?1:0)<<16;this.V=65536;this.A-=2},function(){this.W=(this.ia=this.C)+1;this.C=this.W&65535;this.Q=this.C|(this.Q&this.V?1:0)<<16;this.V=65536;this.A-=2},function(){var a; this.W=(this.ia=w(this))+1;x(this,a=this.ia&~this.na|this.W&this.na);this.Q=(a&this.na)>>>16|a&65535|(this.Q&this.V?1:0)<<16;this.V=65536;this.A-=2},function(){this.W=(this.ia=this.H)+1;this.H=this.W&65535;this.Q=this.H|(this.Q&this.V?1:0)<<16;this.V=65536;this.A-=2},function(){this.W=(this.ia=this.F)+1;this.F=this.W&65535;this.Q=this.F|(this.Q&this.V?1:0)<<16;this.V=65536;this.A-=2},function(){this.W=(this.ia=this.D)+1;this.D=this.W&65535;this.Q=this.D|(this.Q&this.V?1:0)<<16;this.V=65536;this.A-= 2},function(){this.W=(this.ia=this.G)-1;this.G=this.W&65535;this.Q=this.G|(this.Q&this.V?1:0)<<16;this.V=65536;this.A-=2},function(){this.W=(this.ia=this.I)-1;this.I=this.W&65535;this.Q=this.I|(this.Q&this.V?1:0)<<16;this.V=65536;this.A-=2},function(){this.W=(this.ia=this.J)-1;this.J=this.W&65535;this.Q=this.J|(this.Q&this.V?1:0)<<16;this.V=65536;this.A-=2},function(){this.W=(this.ia=this.C)-1;this.C=this.W&65535;this.Q=this.C|(this.Q&this.V?1:0)<<16;this.V=65536;this.A-=2},function(){var a;this.W= (this.ia=w(this))-1;x(this,a=this.ia&~this.na|this.W&this.na);this.Q=(a&this.na)>>>16|a&65535|(this.Q&this.V?1:0)<<16;this.V=65536;this.A-=2},function(){this.W=(this.ia=this.H)-1;this.H=this.W&65535;this.Q=this.H|(this.Q&this.V?1:0)<<16;this.V=65536;this.A-=2},function(){this.W=(this.ia=this.F)-1;this.F=this.W&65535;this.Q=this.F|(this.Q&this.V?1:0)<<16;this.V=65536;this.A-=2},function(){this.W=(this.ia=this.D)-1;this.D=this.W&65535;this.Q=this.D|(this.Q&this.V?1:0)<<16;this.V=65536;this.A-=2},function(){y(this, -this.G&this.na);this.A-=this.B.yc},function(){y(this,this.I&this.na);this.A-=this.B.yc},function(){y(this,this.J&this.na);this.A-=this.B.yc},function(){y(this,this.C&this.na);this.A-=this.B.yc},function(){y(this,w(this)-this.Vc&this.na);this.A-=this.B.yc},function(){y(this,this.H&this.na);this.A-=this.B.yc},function(){y(this,this.F&this.na);this.A-=this.B.yc},function(){y(this,this.D&this.na);this.A-=this.B.yc},function(){this.G=this.G&~this.na|this.Ka();this.A-=this.B.rc},function(){this.I=this.I& -~this.na|this.Ka();this.A-=this.B.rc},function(){this.J=this.J&~this.na|this.Ka();this.A-=this.B.rc},function(){this.C=this.C&~this.na|this.Ka();this.A-=this.B.rc},function(){x(this,w(this)&~this.na|this.Ka());this.A-=this.B.rc},function(){this.H=this.H&~this.na|this.Ka();this.A-=this.B.rc},function(){this.F=this.F&~this.na|this.Ka();this.A-=this.B.rc},function(){this.D=this.D&~this.na|this.Ka();this.A-=this.B.rc},eg,fg,gg,hg,ig,jg,kg,lg,mg,ng,og,pg,qg,rg,sg,tg,eg,fg,gg,hg,ig,jg,kg,lg,mg,ng,og,pg, -qg,rg,sg,tg,ug,function(){this.gd[this.Y()].call(this,Eg,this.K);this.A-=0>this.La?1:this.B.vi},ug,function(){this.gd[this.Y()].call(this,Eg,this.L);this.A-=0>this.La?1:this.B.vi},function(){this.wd[this.Y()].call(this,Qf)},function(){this.Pc[this.Y()].call(this,Rf)},function(){this.xd[this.Nh=this.Y()].call(this,Sf)},function(){this.Gb[this.Nh=this.Y()].call(this,Tf)},function(){this.S|=1;this.wd[this.Y()].call(this,Ef)},function(){this.S|=1;this.Pc[this.Y()].call(this,Ef)},function(){this.xd[this.Y()].call(this, -Ef)},function(){this.Gb[this.Y()].call(this,Ef)},function(){var a=this.Y();switch((a&56)>>3){case 0:this.Pb=this.Ja.va;break;case 1:this.Pb=this.ra.va;break;case 2:this.Pb=this.xa.va;break;case 3:this.Pb=this.Ya.va;break;default:U.call(this);return}this.S|=1;this.Pc[a].call(this,Ff)},function(){this.S|=1;this.tb=this.cd=this.wn;this.Gb[this.Y()].call(this,Bf)},function(){var a,b=this.Y(),c=(b&56)>>3;switch(c){case 0:a=this.G;break;case 2:a=this.J;break;case 3:a=this.C;break;default:if(80286==this.za|| +this.G&this.na);this.A-=this.B.zc},function(){y(this,this.I&this.na);this.A-=this.B.zc},function(){y(this,this.J&this.na);this.A-=this.B.zc},function(){y(this,this.C&this.na);this.A-=this.B.zc},function(){y(this,w(this)-this.Wc&this.na);this.A-=this.B.zc},function(){y(this,this.H&this.na);this.A-=this.B.zc},function(){y(this,this.F&this.na);this.A-=this.B.zc},function(){y(this,this.D&this.na);this.A-=this.B.zc},function(){this.G=this.G&~this.na|this.Ka();this.A-=this.B.sc},function(){this.I=this.I& +~this.na|this.Ka();this.A-=this.B.sc},function(){this.J=this.J&~this.na|this.Ka();this.A-=this.B.sc},function(){this.C=this.C&~this.na|this.Ka();this.A-=this.B.sc},function(){x(this,w(this)&~this.na|this.Ka());this.A-=this.B.sc},function(){this.H=this.H&~this.na|this.Ka();this.A-=this.B.sc},function(){this.F=this.F&~this.na|this.Ka();this.A-=this.B.sc},function(){this.D=this.D&~this.na|this.Ka();this.A-=this.B.sc},eg,fg,gg,hg,ig,jg,kg,lg,mg,ng,og,pg,qg,rg,sg,tg,eg,fg,gg,hg,ig,jg,kg,lg,mg,ng,og,pg, +qg,rg,sg,tg,ug,function(){this.hd[this.Y()].call(this,Eg,this.K);this.A-=0>this.La?1:this.B.wi},ug,function(){this.hd[this.Y()].call(this,Eg,this.L);this.A-=0>this.La?1:this.B.wi},function(){this.xd[this.Y()].call(this,Qf)},function(){this.Qc[this.Y()].call(this,Rf)},function(){this.yd[this.Oh=this.Y()].call(this,Sf)},function(){this.Gb[this.Oh=this.Y()].call(this,Tf)},function(){this.S|=1;this.xd[this.Y()].call(this,Ef)},function(){this.S|=1;this.Qc[this.Y()].call(this,Ef)},function(){this.yd[this.Y()].call(this, +Ef)},function(){this.Gb[this.Y()].call(this,Ef)},function(){var a=this.Y();switch((a&56)>>3){case 0:this.Pb=this.Ja.va;break;case 1:this.Pb=this.ra.va;break;case 2:this.Pb=this.xa.va;break;case 3:this.Pb=this.Ya.va;break;default:U.call(this);return}this.S|=1;this.Qc[a].call(this,Ff)},function(){this.S|=1;this.tb=this.dd=this.xn;this.Gb[this.Y()].call(this,Bf)},function(){var a,b=this.Y(),c=(b&56)>>3;switch(c){case 0:a=this.G;break;case 2:a=this.J;break;case 3:a=this.C;break;default:if(80286==this.za|| 80386==this.za&&4!=c&&5!=c){Ud.call(this);return}switch(c){case 1:a=this.I;break;case 4:a=w(this);break;case 5:a=this.H;break;case 6:a=this.F;break;case 7:a=this.D}}this.Gb[b].call(this,Ef);switch(c){case 0:Ie(this,this.G);this.G=a;break;case 1:Ge(this,this.I);this.I=a;break;case 2:Kd(this,this.J);this.J=a;break;case 3:He(this,this.C);this.C=a;break;case 4:Ie(this,w(this));x(this,a);break;case 5:Ge(this,this.H);this.H=a;break;case 6:Kd(this,this.F);this.F=a;break;case 7:He(this,this.D),this.D=a}}, -function(){this.S|=1;this.gd[this.Y()].call(this,Fg,this.Ka)},function(){this.A-=3},function(){var a=this.G;this.G=this.I;this.I=a;this.A-=3},function(){var a=this.G;this.G=this.J;this.J=a;this.A-=3},function(){var a=this.G;this.G=this.C;this.C=a;this.A-=3},function(){var a=this.G;this.G=w(this);x(this,a);this.A-=3},function(){var a=this.G;this.G=this.H;this.H=a;this.A-=3},function(){var a=this.G;this.G=this.F;this.F=a;this.A-=3},function(){var a=this.G;this.G=this.D;this.D=a;this.A-=3},function(){this.G= -2==this.Vc?this.G&-65536|this.G<<24>>24&65535:this.G<<16>>16;this.A-=2},function(){this.J=2==this.Vc?this.J&-65536|(this.G&32768?65535:0):this.G&-2147483648?-1:0;this.A-=this.B.jm},function(){tf.call(this,this.K(),ef(this));this.A-=this.B.mm},function(){this.Xa("WAIT not implemented",1);this.A--},function(){y(this,Gb(this));this.A-=this.B.yc},function(){Id(this,this.Ka());this.A-=this.B.rc},function(){var a=this.G>>8;a&Pb?Ve(this):Qe(this);a&Ob?Le(this)||(this.W^=1):Le(this)&&(this.W^=1);a&Nb?We(this): -Re(this);a&Mb?Xe(this):Se(this);a&Lb?Ye(this):Te(this);this.A-=this.B.Nb},function(){this.G=this.G&255|(Gb(this)&pd)<<8;this.A-=this.B.Nb},function(){var a=this.G&-256,b;b=this.K();b=this.Oa(this.tb.Ic(b,0));this.G=a|b;this.A-=this.B.lk},function(){this.G=this.G&~this.na|Md(this,this.tb,this.K());this.A-=this.B.lk},function(){var a=this.K(),b=this.G;this.ud(this.tb.jc(a,0),b);this.A-=this.B.mk},function(){var a=this.K(),b=this.G;this.Qa(this.tb.jc(a,1),b);this.A-=this.B.mk},function(){var a=1,b=0, -c=this.B.nk;this.Ca&192&&(a=this.I,b=1,c=this.B.pk,this.Ca&256||(this.A-=this.B.ok));if(a--){var d=this.wa&Ib?-1:1,e=this.Oa(this.tb.Ic(this.F,0));this.ud(this.Ja.jc(this.D&this.ja,0),e);this.F=this.F&~this.ja|this.F+d&this.ja;this.D=this.D&~this.ja|this.D+d&this.ja;this.A-=c;this.I-=b;a&&(this.ka=this.Ob,this.S|=256)}},function(){var a=1,b=0,c=this.B.nk;this.Ca&192&&(a=this.I,b=1,c=this.B.pk,this.Ca&256||(this.A-=this.B.ok));if(a--){var d=this.wa&Ib?-2:2,e=Md(this,this.tb,this.F);this.Qa(this.Ja.jc(this.D& -this.ja,1),e);this.F=this.F&~this.ja|this.F+d&this.ja;this.D=this.D&~this.ja|this.D+d&this.ja;this.A-=c;this.I-=b;a&&(this.ka=this.Ob,this.S|=256)}},function(){var a=1,b=0,c=this.B.Yj;this.Ca&192&&(a=this.I,b=1,c=this.B.$j,this.Ca&256||(this.A-=this.B.Zj));if(a--){var d=this.wa&Ib?-1:1,e=af(this,this.tb,this.F&this.ja),f=cf(this,this.Ja,this.D&this.ja);uf.call(this,e,f);this.F=this.F&~this.ja|this.F+d&this.ja;this.D=this.D&~this.ja|this.D+d&this.ja;this.A-=c-this.B.Cb;this.I-=b;a&&Ne(this)==(this.Ca& -64)&&(this.ka=this.Ob,this.S|=256)}},function(){var a=1,b=0,c=this.B.Yj;this.Ca&192&&(a=this.I,b=1,c=this.B.$j,this.Ca&256||(this.A-=this.B.Zj));if(a--){var d=this.wa&Ib?-2:2,e=bf(this,this.tb,this.F&this.ja),f=df(this,this.Ja,this.D&this.ja);vf.call(this,e,f);this.F=this.F&~this.ja|this.F+d&this.ja;this.D=this.D&~this.ja|this.D+d&this.ja;this.A-=c-this.B.Cb;this.I-=b;a&&Ne(this)==(this.Ca&64)&&(this.ka=this.Ob,this.S|=256)}},function(){this.Q=this.W=this.ia=this.G&this.Y();this.V=256;this.A-=this.B.pf}, -function(){this.Q=this.W=this.ia=this.G&this.K();this.V=65536;this.A-=this.B.pf},function(){var a=1,b=0,c=this.B.yk;this.Ca&192&&(a=this.I,b=1,c=this.B.Ak,this.Ca&256||(this.A-=this.B.zk));if(a--){var d=this.G;this.ud(this.Ja.jc(this.D&this.ja,0),d);this.D=this.D&~this.ja|this.D+(this.wa&Ib?-1:1)&this.ja;this.A-=c;this.I-=b;a&&(this.ka=this.Ob,this.S|=256)}},function(){var a=1,b=0,c=this.B.yk;this.Ca&192&&(a=this.I,b=1,c=this.B.Ak,this.Ca&256||(this.A-=this.B.zk));if(a--){var d=this.G;this.Qa(this.Ja.jc(this.D& -this.ja,1),d);this.D=this.D&~this.ja|this.D+(this.wa&Ib?-2:2)&this.ja;this.A-=c;this.I-=b;a&&(this.ka=this.Ob,this.S|=256)}},function(){var a=1,b=0,c=this.B.fk;this.Ca&192&&(a=this.I,b=1,c=this.B.hk,this.Ca&256||(this.A-=this.B.gk));a--&&(this.G=this.G&-256|this.Oa(this.tb.Ic(this.F&this.ja,0)),this.F=this.F&~this.ja|this.F+(this.wa&Ib?-1:1)&this.ja,this.A-=c,this.I-=b,a&&(this.ka=this.Ob,this.S|=256))},function(){var a=1,b=0,c=this.B.fk;this.Ca&192&&(a=this.I,b=1,c=this.B.hk,this.Ca&256||(this.A-= -this.B.gk));a--&&(this.G=Md(this,this.tb,this.F&this.ja),this.F=this.F&~this.ja|this.F+(this.wa&Ib?-2:2)&this.ja,this.A-=c,this.I-=b,a&&(this.ka=this.Ob,this.S|=256))},function(){var a=1,b=0,c=this.B.sk;this.Ca&192&&(a=this.I,b=1,c=this.B.uk,this.Ca&256||(this.A-=this.B.tk));a--&&(uf.call(this,this.G&255,cf(this,this.Ja,this.D&this.ja)),this.D=this.D&~this.ja|this.D+(this.wa&Ib?-1:1)&this.ja,this.A-=c-this.B.Cb,this.I-=b,a&&Ne(this)==(this.Ca&64)&&(this.ka=this.Ob,this.S|=256))},function(){var a= -1,b=0,c=this.B.sk;this.Ca&192&&(a=this.I,b=1,c=this.B.uk,this.Ca&256||(this.A-=this.B.tk));a--&&(vf.call(this,this.G,df(this,this.Ja,this.D&this.ja)),this.D=this.D&~this.ja|this.D+(this.wa&Ib?-2:2)&this.ja,this.A-=c-this.B.Cb,this.I-=b,a&&Ne(this)==(this.Ca&64)&&(this.ka=this.Ob,this.S|=256))},function(){this.G=this.G&-256|this.Y();this.A-=this.B.Nb},function(){this.I=this.I&-256|this.Y();this.A-=this.B.Nb},function(){this.J=this.J&-256|this.Y();this.A-=this.B.Nb},function(){this.C=this.C&-256|this.Y(); +function(){this.S|=1;this.hd[this.Y()].call(this,Fg,this.Ka)},function(){this.A-=3},function(){var a=this.G;this.G=this.I;this.I=a;this.A-=3},function(){var a=this.G;this.G=this.J;this.J=a;this.A-=3},function(){var a=this.G;this.G=this.C;this.C=a;this.A-=3},function(){var a=this.G;this.G=w(this);x(this,a);this.A-=3},function(){var a=this.G;this.G=this.H;this.H=a;this.A-=3},function(){var a=this.G;this.G=this.F;this.F=a;this.A-=3},function(){var a=this.G;this.G=this.D;this.D=a;this.A-=3},function(){this.G= +2==this.Wc?this.G&-65536|this.G<<24>>24&65535:this.G<<16>>16;this.A-=2},function(){this.J=2==this.Wc?this.J&-65536|(this.G&32768?65535:0):this.G&-2147483648?-1:0;this.A-=this.B.km},function(){tf.call(this,this.K(),ef(this));this.A-=this.B.nm},function(){this.Xa("WAIT not implemented",1);this.A--},function(){y(this,Gb(this));this.A-=this.B.zc},function(){Id(this,this.Ka());this.A-=this.B.sc},function(){var a=this.G>>8;a&Pb?Ve(this):Qe(this);a&Ob?Le(this)||(this.W^=1):Le(this)&&(this.W^=1);a&Nb?We(this): +Re(this);a&Mb?Xe(this):Se(this);a&Lb?Ye(this):Te(this);this.A-=this.B.Nb},function(){this.G=this.G&255|(Gb(this)&pd)<<8;this.A-=this.B.Nb},function(){var a=this.G&-256,b;b=this.K();b=this.Oa(this.tb.Jc(b,0));this.G=a|b;this.A-=this.B.mk},function(){this.G=this.G&~this.na|Md(this,this.tb,this.K());this.A-=this.B.mk},function(){var a=this.K(),b=this.G;this.vd(this.tb.jc(a,0),b);this.A-=this.B.nk},function(){var a=this.K(),b=this.G;this.Qa(this.tb.jc(a,1),b);this.A-=this.B.nk},function(){var a=1,b=0, +c=this.B.ok;this.Da&192&&(a=this.I,b=1,c=this.B.qk,this.Da&256||(this.A-=this.B.pk));if(a--){var d=this.wa&Ib?-1:1,e=this.Oa(this.tb.Jc(this.F,0));this.vd(this.Ja.jc(this.D&this.ja,0),e);this.F=this.F&~this.ja|this.F+d&this.ja;this.D=this.D&~this.ja|this.D+d&this.ja;this.A-=c;this.I-=b;a&&(this.ka=this.Ob,this.S|=256)}},function(){var a=1,b=0,c=this.B.ok;this.Da&192&&(a=this.I,b=1,c=this.B.qk,this.Da&256||(this.A-=this.B.pk));if(a--){var d=this.wa&Ib?-2:2,e=Md(this,this.tb,this.F);this.Qa(this.Ja.jc(this.D& +this.ja,1),e);this.F=this.F&~this.ja|this.F+d&this.ja;this.D=this.D&~this.ja|this.D+d&this.ja;this.A-=c;this.I-=b;a&&(this.ka=this.Ob,this.S|=256)}},function(){var a=1,b=0,c=this.B.Zj;this.Da&192&&(a=this.I,b=1,c=this.B.ak,this.Da&256||(this.A-=this.B.$j));if(a--){var d=this.wa&Ib?-1:1,e=af(this,this.tb,this.F&this.ja),f=cf(this,this.Ja,this.D&this.ja);uf.call(this,e,f);this.F=this.F&~this.ja|this.F+d&this.ja;this.D=this.D&~this.ja|this.D+d&this.ja;this.A-=c-this.B.Cb;this.I-=b;a&&Ne(this)==(this.Da& +64)&&(this.ka=this.Ob,this.S|=256)}},function(){var a=1,b=0,c=this.B.Zj;this.Da&192&&(a=this.I,b=1,c=this.B.ak,this.Da&256||(this.A-=this.B.$j));if(a--){var d=this.wa&Ib?-2:2,e=bf(this,this.tb,this.F&this.ja),f=df(this,this.Ja,this.D&this.ja);vf.call(this,e,f);this.F=this.F&~this.ja|this.F+d&this.ja;this.D=this.D&~this.ja|this.D+d&this.ja;this.A-=c-this.B.Cb;this.I-=b;a&&Ne(this)==(this.Da&64)&&(this.ka=this.Ob,this.S|=256)}},function(){this.Q=this.W=this.ia=this.G&this.Y();this.V=256;this.A-=this.B.pf}, +function(){this.Q=this.W=this.ia=this.G&this.K();this.V=65536;this.A-=this.B.pf},function(){var a=1,b=0,c=this.B.zk;this.Da&192&&(a=this.I,b=1,c=this.B.Bk,this.Da&256||(this.A-=this.B.Ak));if(a--){var d=this.G;this.vd(this.Ja.jc(this.D&this.ja,0),d);this.D=this.D&~this.ja|this.D+(this.wa&Ib?-1:1)&this.ja;this.A-=c;this.I-=b;a&&(this.ka=this.Ob,this.S|=256)}},function(){var a=1,b=0,c=this.B.zk;this.Da&192&&(a=this.I,b=1,c=this.B.Bk,this.Da&256||(this.A-=this.B.Ak));if(a--){var d=this.G;this.Qa(this.Ja.jc(this.D& +this.ja,1),d);this.D=this.D&~this.ja|this.D+(this.wa&Ib?-2:2)&this.ja;this.A-=c;this.I-=b;a&&(this.ka=this.Ob,this.S|=256)}},function(){var a=1,b=0,c=this.B.gk;this.Da&192&&(a=this.I,b=1,c=this.B.ik,this.Da&256||(this.A-=this.B.hk));a--&&(this.G=this.G&-256|this.Oa(this.tb.Jc(this.F&this.ja,0)),this.F=this.F&~this.ja|this.F+(this.wa&Ib?-1:1)&this.ja,this.A-=c,this.I-=b,a&&(this.ka=this.Ob,this.S|=256))},function(){var a=1,b=0,c=this.B.gk;this.Da&192&&(a=this.I,b=1,c=this.B.ik,this.Da&256||(this.A-= +this.B.hk));a--&&(this.G=Md(this,this.tb,this.F&this.ja),this.F=this.F&~this.ja|this.F+(this.wa&Ib?-2:2)&this.ja,this.A-=c,this.I-=b,a&&(this.ka=this.Ob,this.S|=256))},function(){var a=1,b=0,c=this.B.tk;this.Da&192&&(a=this.I,b=1,c=this.B.vk,this.Da&256||(this.A-=this.B.uk));a--&&(uf.call(this,this.G&255,cf(this,this.Ja,this.D&this.ja)),this.D=this.D&~this.ja|this.D+(this.wa&Ib?-1:1)&this.ja,this.A-=c-this.B.Cb,this.I-=b,a&&Ne(this)==(this.Da&64)&&(this.ka=this.Ob,this.S|=256))},function(){var a= +1,b=0,c=this.B.tk;this.Da&192&&(a=this.I,b=1,c=this.B.vk,this.Da&256||(this.A-=this.B.uk));a--&&(vf.call(this,this.G,df(this,this.Ja,this.D&this.ja)),this.D=this.D&~this.ja|this.D+(this.wa&Ib?-2:2)&this.ja,this.A-=c-this.B.Cb,this.I-=b,a&&Ne(this)==(this.Da&64)&&(this.ka=this.Ob,this.S|=256))},function(){this.G=this.G&-256|this.Y();this.A-=this.B.Nb},function(){this.I=this.I&-256|this.Y();this.A-=this.B.Nb},function(){this.J=this.J&-256|this.Y();this.A-=this.B.Nb},function(){this.C=this.C&-256|this.Y(); this.A-=this.B.Nb},function(){this.G=this.G&255|this.Y()<<8;this.A-=this.B.Nb},function(){this.I=this.I&255|this.Y()<<8;this.A-=this.B.Nb},function(){this.J=this.J&255|this.Y()<<8;this.A-=this.B.Nb},function(){this.C=this.C&255|this.Y()<<8;this.A-=this.B.Nb},function(){this.G=this.G&~this.na|this.K();this.A-=this.B.Nb},function(){this.I=this.I&~this.na|this.K();this.A-=this.B.Nb},function(){this.J=this.J&~this.na|this.K();this.A-=this.B.Nb},function(){this.C=this.C&~this.na|this.K();this.A-=this.B.Nb}, -function(){x(this,w(this)&~this.na|this.K());this.A-=this.B.Nb},function(){this.H=this.H&~this.na|this.K();this.A-=this.B.Nb},function(){this.F=this.F&~this.na|this.K();this.A-=this.B.Nb},function(){this.D=this.D&~this.na|this.K();this.A-=this.B.Nb},yg,zg,yg,zg,function(){this.Gb[this.Y()].call(this,Cf)},function(){this.Gb[this.Y()].call(this,Af)},function(){this.S|=1;this.Ve[this.Y()].call(this,Gg,this.Y)},function(){this.S|=1;this.gd[this.Y()].call(this,Gg,this.K)},Ag,Bg,Ag,Bg,function(){hf.call(this, -3,null,this.B.Dm)},function(){var a=this.Y();ye(this,a)?hf.call(this,a,null,0):this.A--},function(){Pe(this)?hf.call(this,4,null,this.B.Em):this.A-=this.B.Fm},function(){this.A-=this.B.Bm;if(this.gc&1&&this.wa&16384){var a=this.la(this.eb.ta+0);Hd.call(this.ra,a,!1)}else{var a=this.ra.bb,b=this.Ka(),c=this.Ka(),d=this.Ka();null!=Jd(this,b,c,!1)&&(Id(this,d,a),this.Eg&&Ce(this,this.ka))}},function(){this.Ve[this.Y()].call(this,wg,Xf)},function(){this.gd[this.Y()].call(this,xg,Xf)},function(){this.Ve[this.Y()].call(this, -wg,Yf)},function(){this.gd[this.Y()].call(this,xg,Yf)},function(){var a=this.Y(),b=this.G&255;this.G=(b/a&255)<<8|b%a;this.V=256;this.Q=this.W=b;this.A-=this.B.gm},function(){var a=this.Y();this.Q=this.W=this.G=(this.G>>8)*a+this.G&255;this.V=256;this.A-=this.B.fm},function(){this.G=this.G&-256|(Ke(this)?255:0);this.A-=2},function(){this.G=this.G&-256|af(this,this.tb,this.C+(this.G&255)&65535);this.A-=this.B.en},Cg,Cg,Cg,Cg,Cg,Cg,Cg,Cg,function(){var a=this.L();(this.I=this.I-1&this.ja)&&this.Q&this.V- -1?(D(this,v(this)+a),this.A-=this.B.Mm):this.A-=this.B.ik},function(){var a=this.L();!(this.I=this.I-1&this.ja)||this.Q&this.V-1?this.A-=this.B.kk:(D(this,v(this)+a),this.A-=this.B.jk)},function(){var a=this.L();(this.I=this.I-1&this.ja)?(D(this,v(this)+a),this.A-=this.B.Lm):this.A-=this.B.ik},function(){var a=this.L();this.I?this.A-=this.B.kk:(D(this,v(this)+a),this.A-=this.B.jk)},function(){var a=this.Y();this.G=this.G&-256|cc(this.ha,a,this.ka-2);this.A-=this.B.ck},function(){var a=this.Y();this.G= -cc(this.ha,a,this.ka-2);this.G|=cc(this.ha,a+1&65535,this.ka-2)<<8;this.A-=this.B.ck},function(){var a=this.Y();gc(this.ha,a,this.G&255,this.ka-2);this.A-=this.B.rk},function(){var a=this.Y();gc(this.ha,a,this.G&255,this.ka-2);gc(this.ha,a+1&65535,this.G>>8,this.ka-2);this.A-=this.B.rk},function(){var a=this.K();y(this,v(this));D(this,v(this)+a);this.A-=this.B.km},function(){var a=this.K();D(this,v(this)+a);this.A-=this.B.dk},function(){Jd(this,this.K(),ef(this));this.A-=this.B.Hm},function(){var a= -this.L();D(this,v(this)+a);this.A-=this.B.dk},function(){this.G=this.G&-256|cc(this.ha,this.J,this.ka-1);this.A-=this.B.bk},function(){this.G=cc(this.ha,this.J,this.ka-1);this.G|=cc(this.ha,this.J+1&65535,this.ka-1)<<8;this.A-=this.B.bk},function(){gc(this.ha,this.J,this.G&255,this.ka-1);this.A-=this.B.qk},function(){gc(this.ha,this.J,this.G&255,this.ka-1);gc(this.ha,this.J+1&65535,this.G>>8,this.ka-1);this.A-=this.B.qk},Dg,Dg,function(){this.S|=132;this.A-=this.B.Je},function(){this.S|=68;this.A-= -this.B.Je},function(){this.wb|=4;this.A-=2;this.Z&&ff(this.Z)?(Je(this),this.lb()):this.wa&Jb||(this.Z&&Je(this),this.lb())},function(){Ke(this)?Qe(this):Ve(this);this.A-=2},function(){this.Pb=-1;this.Ve[this.Y()].call(this,Hg,$f);0<=this.Pb&&(this.G=this.Pb)},function(){this.Pb=-1;this.gd[this.Y()].call(this,Ig,$f);0<=this.Pb&&(this.G=this.Pb,this.J=this.uh)},function(){this.Q&=~this.V;this.A-=2},function(){this.Q|=this.V;this.A-=2},function(){this.wa&=~Jb;this.A-=this.B.im},function(){this.wa|= -Jb;this.S|=4;this.A-=2},function(){this.wa&=~Ib;this.A-=2},function(){this.wa|=Ib;this.A-=2},function(){this.Ve[this.Y()].call(this,Rd,$f)},function(){this.gd[this.Y()].call(this,Sd,$f)}],vg=[nf,Gf,lf,Jf,pf,Lf,Uf,uf],Eg=[of,Hf,mf,Kf,qf,Pf,Vf,vf],Fg=[function(a,b){this.A-=0>this.La?this.B.rc:this.B.Xm;return b},ag,ag,ag,ag,ag,ag,ag],Gg=[function(a,b){this.A-=0>this.La?this.B.Pm:this.B.Nm;return b},bg,bg,bg,bg,bg,bg,bg],wg=[function(a,b){var c=a;if(b){var d,e=b&7;e?c=(d=a<>8-e)&255:d=a<<8;Wf.call(this, +function(){x(this,w(this)&~this.na|this.K());this.A-=this.B.Nb},function(){this.H=this.H&~this.na|this.K();this.A-=this.B.Nb},function(){this.F=this.F&~this.na|this.K();this.A-=this.B.Nb},function(){this.D=this.D&~this.na|this.K();this.A-=this.B.Nb},yg,zg,yg,zg,function(){this.Gb[this.Y()].call(this,Cf)},function(){this.Gb[this.Y()].call(this,Af)},function(){this.S|=1;this.Ve[this.Y()].call(this,Gg,this.Y)},function(){this.S|=1;this.hd[this.Y()].call(this,Gg,this.K)},Ag,Bg,Ag,Bg,function(){hf.call(this, +3,null,this.B.Em)},function(){var a=this.Y();ye(this,a)?hf.call(this,a,null,0):this.A--},function(){Pe(this)?hf.call(this,4,null,this.B.Fm):this.A-=this.B.Gm},function(){this.A-=this.B.Cm;if(this.gc&1&&this.wa&16384){var a=this.la(this.eb.ta+0);Hd.call(this.ra,a,!1)}else{var a=this.ra.bb,b=this.Ka(),c=this.Ka(),d=this.Ka();null!=Jd(this,b,c,!1)&&(Id(this,d,a),this.Eg&&Ce(this,this.ka))}},function(){this.Ve[this.Y()].call(this,wg,Xf)},function(){this.hd[this.Y()].call(this,xg,Xf)},function(){this.Ve[this.Y()].call(this, +wg,Yf)},function(){this.hd[this.Y()].call(this,xg,Yf)},function(){var a=this.Y(),b=this.G&255;this.G=(b/a&255)<<8|b%a;this.V=256;this.Q=this.W=b;this.A-=this.B.hm},function(){var a=this.Y();this.Q=this.W=this.G=(this.G>>8)*a+this.G&255;this.V=256;this.A-=this.B.gm},function(){this.G=this.G&-256|(Ke(this)?255:0);this.A-=2},function(){this.G=this.G&-256|af(this,this.tb,this.C+(this.G&255)&65535);this.A-=this.B.fn},Cg,Cg,Cg,Cg,Cg,Cg,Cg,Cg,function(){var a=this.L();(this.I=this.I-1&this.ja)&&this.Q&this.V- +1?(D(this,v(this)+a),this.A-=this.B.Nm):this.A-=this.B.jk},function(){var a=this.L();!(this.I=this.I-1&this.ja)||this.Q&this.V-1?this.A-=this.B.lk:(D(this,v(this)+a),this.A-=this.B.kk)},function(){var a=this.L();(this.I=this.I-1&this.ja)?(D(this,v(this)+a),this.A-=this.B.Mm):this.A-=this.B.jk},function(){var a=this.L();this.I?this.A-=this.B.lk:(D(this,v(this)+a),this.A-=this.B.kk)},function(){var a=this.Y();this.G=this.G&-256|cc(this.ha,a,this.ka-2);this.A-=this.B.dk},function(){var a=this.Y();this.G= +cc(this.ha,a,this.ka-2);this.G|=cc(this.ha,a+1&65535,this.ka-2)<<8;this.A-=this.B.dk},function(){var a=this.Y();gc(this.ha,a,this.G&255,this.ka-2);this.A-=this.B.sk},function(){var a=this.Y();gc(this.ha,a,this.G&255,this.ka-2);gc(this.ha,a+1&65535,this.G>>8,this.ka-2);this.A-=this.B.sk},function(){var a=this.K();y(this,v(this));D(this,v(this)+a);this.A-=this.B.lm},function(){var a=this.K();D(this,v(this)+a);this.A-=this.B.ek},function(){Jd(this,this.K(),ef(this));this.A-=this.B.Im},function(){var a= +this.L();D(this,v(this)+a);this.A-=this.B.ek},function(){this.G=this.G&-256|cc(this.ha,this.J,this.ka-1);this.A-=this.B.ck},function(){this.G=cc(this.ha,this.J,this.ka-1);this.G|=cc(this.ha,this.J+1&65535,this.ka-1)<<8;this.A-=this.B.ck},function(){gc(this.ha,this.J,this.G&255,this.ka-1);this.A-=this.B.rk},function(){gc(this.ha,this.J,this.G&255,this.ka-1);gc(this.ha,this.J+1&65535,this.G>>8,this.ka-1);this.A-=this.B.rk},Dg,Dg,function(){this.S|=132;this.A-=this.B.Je},function(){this.S|=68;this.A-= +this.B.Je},function(){this.wb|=4;this.A-=2;this.Z&&ff(this.Z)?(Je(this),this.lb()):this.wa&Jb||(this.Z&&Je(this),this.lb())},function(){Ke(this)?Qe(this):Ve(this);this.A-=2},function(){this.Pb=-1;this.Ve[this.Y()].call(this,Hg,$f);0<=this.Pb&&(this.G=this.Pb)},function(){this.Pb=-1;this.hd[this.Y()].call(this,Ig,$f);0<=this.Pb&&(this.G=this.Pb,this.J=this.vh)},function(){this.Q&=~this.V;this.A-=2},function(){this.Q|=this.V;this.A-=2},function(){this.wa&=~Jb;this.A-=this.B.jm},function(){this.wa|= +Jb;this.S|=4;this.A-=2},function(){this.wa&=~Ib;this.A-=2},function(){this.wa|=Ib;this.A-=2},function(){this.Ve[this.Y()].call(this,Rd,$f)},function(){this.hd[this.Y()].call(this,Sd,$f)}],vg=[nf,Gf,lf,Jf,pf,Lf,Uf,uf],Eg=[of,Hf,mf,Kf,qf,Pf,Vf,vf],Fg=[function(a,b){this.A-=0>this.La?this.B.sc:this.B.Ym;return b},ag,ag,ag,ag,ag,ag,ag],Gg=[function(a,b){this.A-=0>this.La?this.B.Qm:this.B.Om;return b},bg,bg,bg,bg,bg,bg,bg],wg=[function(a,b){var c=a;if(b){var d,e=b&7;e?c=(d=a<>8-e)&255:d=a<<8;Wf.call(this, d,256)}return c},function(a,b){var c=a;if(b){var d,c=b&7,c=d=(a>>c|a<<8-c)&255;d&128&&(d|=256);Wf.call(this,d,256)}return c},function(a,b){var c=a;if(b){var d;(d=(b&this.ig)%9)?(d=a<>9-d,c=d&255):d=a|(this.Q&this.V?1:0)<<8;Wf.call(this,d,256)}return c},function(a,b){var c=a;b&&(c=(b&this.ig)%9,c=a>>c|(this.Q&this.V?1:0)<<8-c|a<<9-c,Wf.call(this,c,256),c&=255);return c},function(a,b){var c=a;b&&(c=8>b-1;this.Q=this.W=c>>1;this.Q=c&1?this.Q|256:this.Q&-257;this.ia=a^this.Q;this.V=256;a=this.Q}return a&255},bg,function(a,b){if(b){8>24>>b-1;this.Q=this.W=c>>1;this.Q=c&1?this.Q|256:this.Q&-257;this.ia=a^this.Q;this.V=256;a=this.Q}return a&255}],xg=[function(a,b){var c=a;if(b){var d,e=b&15;e?c=(d=a<>16-e)&65535:d=a<<16;Wf.call(this,d,65536)}return c},function(a,b){var c=a;if(b){var d,c=b&15,c=d=(a>>c|a<<16-c)&65535;d&32768&&(d|=65536); Wf.call(this,d,65536)}return c},function(a,b){var c=a;if(b){var d;(d=(b&this.ig)%17)?(d=a<>17-d,c=d&65535):d=a|(this.Q&this.V?1:0)<<16;Wf.call(this,d,65536)}return c},function(a,b){var c=a;b&&(c=(b&this.ig)%17,c=a>>c|(this.Q&this.V?1:0)<<16-c|a<<17-c,Wf.call(this,c,65536),c&=65535);return c},function(a,b){var c=a;b&&(c=16>b-1;this.Q=this.W=c>>1;this.Q=c& -1?this.Q|65536:this.Q&-65537;this.ia=a^this.Q;this.V=65536;a=this.Q}return a&65535},bg,function(a,b){if(b){16>16>>b-1;this.Q=this.W=c>>1;this.Q=c&1?this.Q|65536:this.Q&-65537;this.ia=a^this.Q;this.V=65536;a=this.Q}return a&65535}],Hg=[function(a,b){b=this.Y();this.Q=this.W=this.ia=a&b;this.V=256;this.A-=0>this.ca?this.B.Ck:this.B.Bk;this.S|=2;return a},bg,function(a){this.A-=0>this.ca?this.B.mh:this.B.lh;return a^255},function(a,b){b=0;this.ia=a^b;this.V=256;this.A-=0>this.ca? -this.B.mh:this.B.lh;return(this.Q=this.W=b-a)&255},function(a){this.G=this.Pb=(this.Q=(this.G&255)*a)&65535;this.ia=this.W=this.Q;this.V=256;this.G&65280?(Ve(this),Ze(this)):(Qe(this),Ue(this));this.A-=0>this.ca?this.B.Tm:this.B.Sm;this.S|=2;return a},function(a){var b=(this.G<<24>>24)*(a<<24>>24);this.G=this.Pb=b&65535;this.Q=this.ia=this.W=b;this.V=256;127b?(Ve(this),Ze(this)):(Qe(this),Ue(this));this.A-=0>this.ca?this.B.ym:this.B.xm;this.S|=2;return a},function(a){if(!a)return cg.call(this), -a;var b=this.G/a;if(255this.ca?this.B.qm:this.B.pm;this.S|=2;return a},function(a){if(!a)return cg.call(this),a;var b=(this.G<<16>>16)/(a<<24>>24);if(b>b<<24>>24&65535)return cg.call(this),a;this.Pb=this.G=b&255|((this.G<<16>>16)%(a<<24>>24)&255)<<8;this.W=this.ia=this.Q=b|256;this.V=256;this.A-=0>this.ca?this.B.um:this.B.tm;this.S|=2;return a}],Ig=[function(a,b){b=this.K();this.Q=this.W= -this.ia=a&b;this.V=65536;this.A-=0>this.ca?this.B.Ck:this.B.Bk;this.S|=2;return a},bg,function(a){this.A-=0>this.ca?this.B.mh:this.B.lh;return a^65535},function(a,b){b=0;this.ia=a^b;this.V=65536;this.A-=0>this.ca?this.B.mh:this.B.lh;return(this.Q=this.W=b-a)&65535},function(a){this.Pb=this.G=(this.Q=this.G*a)&65535;this.uh=this.J=this.Q>>16&65535;this.ia=this.W=this.Q;this.V=65536;this.J?(Ve(this),Ze(this)):(Qe(this),Ue(this));this.A-=0>this.ca?this.B.Vm:this.B.Um;this.S|=2;return a},function(a){var b= -(this.G<<16>>16)*(a<<16>>16);this.G=this.Pb=b&65535;this.J=this.uh=b>>16&65535;this.Q=this.ia=this.W=b;this.V=65536;32767b?(Ve(this),Ze(this)):(Qe(this),Ue(this));this.A-=0>this.ca?this.B.Am:this.B.zm;this.S|=2;return a},function(a,b){if(!a)return cg.call(this),a;b=this.G+65536*this.J;var c=Math.floor(b/a);if(65536<=c)return cg.call(this),a;this.Pb=this.G=c&65535;this.uh=this.J=b%a&65535;this.W=this.ia=this.Q=c|65536;this.V=65536;this.A-=0>this.ca?this.B.sm:this.B.rm;this.S|=2;return a}, -function(a,b){if(!a)return cg.call(this),a;var c=a<<16>>16;b=this.J<<16|this.G;var d=Math.floor(b/c);if(d!=(d&65535)<<16>>16)return cg.call(this),a;this.Pb=this.G=d&65535;this.uh=this.J=b%c&65535;this.W=this.ia=this.Q=d|65536;this.V=65536;this.A-=0>this.ca?this.B.wm:this.B.vm;this.S|=2;return a}],Rd=[function(a){this.ia=a;a=(this.W=a+1)&255;this.Q=a|(this.Q&this.V?1:0)<<8;this.V=256;this.A-=0>this.ca?this.B.kh:this.B.jh;return a},function(a){this.ia=a;a=(this.W=a-1)&255;this.Q=a|(this.Q&this.V?1: -0)<<8;this.V=256;this.A-=0>this.ca?this.B.kh:this.B.jh;return a},bg,bg,bg,bg,bg,bg],Sd=[function(a){this.ia=a;a=(this.W=a+1)&65535;this.Q=a|(this.Q&this.V?1:0)<<16;this.V=65536;this.A-=0>this.ca?this.B.kh:this.B.jh;return a},function(a){this.ia=a;a=(this.W=a-1)&65535;this.Q=a|(this.Q&this.V?1:0)<<16;this.V=65536;this.A-=0>this.ca?this.B.kh:this.B.jh;return a},function(a){y(this,v(this));D(this,a);this.A-=0>this.ca?this.B.om:this.B.nm;this.S|=2;return a},function(a){if(0>this.ca)return bg.call(this, -a);tf.call(this,a,this.la(this.ca+2));this.A-=this.B.lm;this.S|=2;return a},function(a){D(this,a);this.A-=0>this.ca?this.B.Jm:this.B.Im;this.S|=2;return a},function(a){if(0>this.ca)return bg.call(this,a);Jd(this,a,this.la(this.ca+2));this.Eg&&Ce(this,this.ka);this.A-=this.B.Gm;this.S|=2;return a},function(a){var b=a;this.S&512&&(a=a-2&65535,80286>this.za&&(b=a));y(this,b);this.A-=0>this.ca?this.B.yc:this.B.Zm;this.S|=2;return a},ag],le=[function(){var a=this.Y();16>(a&56)&&(this.S|=1);this.gd[a].call(this, -this.gl,$f)},function(){var a=this.Y();a&16||(this.S|=1);this.gd[a].call(this,Jg,$f)},function(){this.Gb[this.Y()].call(this,zf)},function(){this.Gb[this.Y()].call(this,Df)},U,function(){this.ra.bb?wd.call(this,13,0,!0):($e(this,this.la(2054)),this.D=this.la(2086),this.F=this.la(2088),this.H=this.la(2090),this.C=this.la(2094),this.J=this.la(2096),this.I=this.la(2098),this.G=this.la(2100),Ld(this.Ja,2102,this.la(2084)),Ld(this.ra,2108,this.la(2082)),Ld(this.xa,2114,this.la(2080)),Ld(this.Ya,2120,this.la(2078)), -Id(this,this.la(2072)),D(this,this.la(2074)),x(this,this.la(2092)),this.Ec=this.la(2126)|this.Oa(2128)<<16,this.We=this.Ec+this.la(2130),Ld(this.bd,2132,this.la(2076)),this.Sc=this.la(2138)|this.Oa(2140)<<16,this.Xe=this.Sc+this.la(2142),Ld(this.eb,2144,this.la(2070)),this.A-=195)},function(){this.ra.bb?wd.call(this,13,0,!0):(this.gc&=-9,this.A-=2)},U,U,U,U,Ud,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U, -U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U],De=[function(){this.A-=2+(0>this.ca?0:1);return this.bd.va},function(){this.A-=2+(0>this.ca?0:1);return this.eb.va},function(a){this.S|=2;this.bd.load(a); -this.A-=17+(0>this.ca?0:2);return a},function(a){this.S|=2;this.eb.load(a)!=q&&(this.Qa(this.eb.Pd+4,this.eb.nb|=512),this.eb.type=768);this.A-=17+(0>this.ca?0:2);return a},function(a){this.S|=2;this.A-=14+(0>this.ca?0:2);if(this.Tb.load(a,!0)!=q&&2048!=(this.Tb.nb&2560)&&(this.Tb.pc>=this.ra.bb&&this.Tb.pc>=(a&3)||7168==(this.Tb.nb&7168)))return Xe(this),a;Se(this);return a},function(a){this.S|=2;this.A-=14+(0>this.ca?0:2);if(this.Tb.load(a,!0)!=q&&512==(this.Tb.nb&2560)&&this.Tb.pc>=this.ra.bb&& -this.Tb.pc>=(a&3))return Xe(this),a;Se(this);return a},bg,bg],Td=[ke,ke,ke,ke,ke,ke,bg,bg],Jg=[function(a){0>this.ca?Ud.call(this):(a=this.We-this.Ec,this.Qa(this.ca+2,this.Ec),this.Qa(this.ca+4,65280|this.Ec>>16),this.A-=11);return a},function(a){0>this.ca?Ud.call(this):(a=this.Xe-this.Sc,this.Qa(this.ca+2,this.Sc),this.Qa(this.ca+4,65280|this.Sc>>16),this.A-=12);return a},function(a){0>this.ca?Ud.call(this):(this.Ec=this.la(this.ca+2)|this.Oa(this.ca+4)<<16,this.We=this.Ec+a,this.S|=2,this.A-=11); -return a},function(a){0>this.ca?Ud.call(this):(this.Sc=this.la(this.ca+2)|this.Oa(this.ca+4)<<16,this.Xe=this.Sc+a,this.S|=2,this.A-=12);return a},function(){this.A-=2+(0>this.ca?0:1);return this.gc},bg,function(a){$e(this,a);this.A-=0>this.ca?3:6;this.S|=2;return a},bg],z=[function(a){a=a.call(this,this.G&255,F(this,this.C+this.F));this.G=this.G&-256|a;this.A-=this.B.aa},function(a){a=a.call(this,this.G&255,F(this,this.C+this.D));this.G=this.G&-256|a;this.A-=this.B.ba},function(a){a=a.call(this, +1?this.Q|65536:this.Q&-65537;this.ia=a^this.Q;this.V=65536;a=this.Q}return a&65535},bg,function(a,b){if(b){16>16>>b-1;this.Q=this.W=c>>1;this.Q=c&1?this.Q|65536:this.Q&-65537;this.ia=a^this.Q;this.V=65536;a=this.Q}return a&65535}],Hg=[function(a,b){b=this.Y();this.Q=this.W=this.ia=a&b;this.V=256;this.A-=0>this.ca?this.B.Dk:this.B.Ck;this.S|=2;return a},bg,function(a){this.A-=0>this.ca?this.B.nh:this.B.mh;return a^255},function(a,b){b=0;this.ia=a^b;this.V=256;this.A-=0>this.ca? +this.B.nh:this.B.mh;return(this.Q=this.W=b-a)&255},function(a){this.G=this.Pb=(this.Q=(this.G&255)*a)&65535;this.ia=this.W=this.Q;this.V=256;this.G&65280?(Ve(this),Ze(this)):(Qe(this),Ue(this));this.A-=0>this.ca?this.B.Um:this.B.Tm;this.S|=2;return a},function(a){var b=(this.G<<24>>24)*(a<<24>>24);this.G=this.Pb=b&65535;this.Q=this.ia=this.W=b;this.V=256;127b?(Ve(this),Ze(this)):(Qe(this),Ue(this));this.A-=0>this.ca?this.B.zm:this.B.ym;this.S|=2;return a},function(a){if(!a)return cg.call(this), +a;var b=this.G/a;if(255this.ca?this.B.rm:this.B.qm;this.S|=2;return a},function(a){if(!a)return cg.call(this),a;var b=(this.G<<16>>16)/(a<<24>>24);if(b>b<<24>>24&65535)return cg.call(this),a;this.Pb=this.G=b&255|((this.G<<16>>16)%(a<<24>>24)&255)<<8;this.W=this.ia=this.Q=b|256;this.V=256;this.A-=0>this.ca?this.B.vm:this.B.um;this.S|=2;return a}],Ig=[function(a,b){b=this.K();this.Q=this.W= +this.ia=a&b;this.V=65536;this.A-=0>this.ca?this.B.Dk:this.B.Ck;this.S|=2;return a},bg,function(a){this.A-=0>this.ca?this.B.nh:this.B.mh;return a^65535},function(a,b){b=0;this.ia=a^b;this.V=65536;this.A-=0>this.ca?this.B.nh:this.B.mh;return(this.Q=this.W=b-a)&65535},function(a){this.Pb=this.G=(this.Q=this.G*a)&65535;this.vh=this.J=this.Q>>16&65535;this.ia=this.W=this.Q;this.V=65536;this.J?(Ve(this),Ze(this)):(Qe(this),Ue(this));this.A-=0>this.ca?this.B.Wm:this.B.Vm;this.S|=2;return a},function(a){var b= +(this.G<<16>>16)*(a<<16>>16);this.G=this.Pb=b&65535;this.J=this.vh=b>>16&65535;this.Q=this.ia=this.W=b;this.V=65536;32767b?(Ve(this),Ze(this)):(Qe(this),Ue(this));this.A-=0>this.ca?this.B.Bm:this.B.Am;this.S|=2;return a},function(a,b){if(!a)return cg.call(this),a;b=this.G+65536*this.J;var c=Math.floor(b/a);if(65536<=c)return cg.call(this),a;this.Pb=this.G=c&65535;this.vh=this.J=b%a&65535;this.W=this.ia=this.Q=c|65536;this.V=65536;this.A-=0>this.ca?this.B.tm:this.B.sm;this.S|=2;return a}, +function(a,b){if(!a)return cg.call(this),a;var c=a<<16>>16;b=this.J<<16|this.G;var d=Math.floor(b/c);if(d!=(d&65535)<<16>>16)return cg.call(this),a;this.Pb=this.G=d&65535;this.vh=this.J=b%c&65535;this.W=this.ia=this.Q=d|65536;this.V=65536;this.A-=0>this.ca?this.B.xm:this.B.wm;this.S|=2;return a}],Rd=[function(a){this.ia=a;a=(this.W=a+1)&255;this.Q=a|(this.Q&this.V?1:0)<<8;this.V=256;this.A-=0>this.ca?this.B.lh:this.B.kh;return a},function(a){this.ia=a;a=(this.W=a-1)&255;this.Q=a|(this.Q&this.V?1: +0)<<8;this.V=256;this.A-=0>this.ca?this.B.lh:this.B.kh;return a},bg,bg,bg,bg,bg,bg],Sd=[function(a){this.ia=a;a=(this.W=a+1)&65535;this.Q=a|(this.Q&this.V?1:0)<<16;this.V=65536;this.A-=0>this.ca?this.B.lh:this.B.kh;return a},function(a){this.ia=a;a=(this.W=a-1)&65535;this.Q=a|(this.Q&this.V?1:0)<<16;this.V=65536;this.A-=0>this.ca?this.B.lh:this.B.kh;return a},function(a){y(this,v(this));D(this,a);this.A-=0>this.ca?this.B.pm:this.B.om;this.S|=2;return a},function(a){if(0>this.ca)return bg.call(this, +a);tf.call(this,a,this.la(this.ca+2));this.A-=this.B.mm;this.S|=2;return a},function(a){D(this,a);this.A-=0>this.ca?this.B.Km:this.B.Jm;this.S|=2;return a},function(a){if(0>this.ca)return bg.call(this,a);Jd(this,a,this.la(this.ca+2));this.Eg&&Ce(this,this.ka);this.A-=this.B.Hm;this.S|=2;return a},function(a){var b=a;this.S&512&&(a=a-2&65535,80286>this.za&&(b=a));y(this,b);this.A-=0>this.ca?this.B.zc:this.B.$m;this.S|=2;return a},ag],le=[function(){var a=this.Y();16>(a&56)&&(this.S|=1);this.hd[a].call(this, +this.hl,$f)},function(){var a=this.Y();a&16||(this.S|=1);this.hd[a].call(this,Jg,$f)},function(){this.Gb[this.Y()].call(this,zf)},function(){this.Gb[this.Y()].call(this,Df)},U,function(){this.ra.bb?wd.call(this,13,0,!0):($e(this,this.la(2054)),this.D=this.la(2086),this.F=this.la(2088),this.H=this.la(2090),this.C=this.la(2094),this.J=this.la(2096),this.I=this.la(2098),this.G=this.la(2100),Ld(this.Ja,2102,this.la(2084)),Ld(this.ra,2108,this.la(2082)),Ld(this.xa,2114,this.la(2080)),Ld(this.Ya,2120,this.la(2078)), +Id(this,this.la(2072)),D(this,this.la(2074)),x(this,this.la(2092)),this.Fc=this.la(2126)|this.Oa(2128)<<16,this.We=this.Fc+this.la(2130),Ld(this.cd,2132,this.la(2076)),this.Tc=this.la(2138)|this.Oa(2140)<<16,this.Xe=this.Tc+this.la(2142),Ld(this.eb,2144,this.la(2070)),this.A-=195)},function(){this.ra.bb?wd.call(this,13,0,!0):(this.gc&=-9,this.A-=2)},U,U,U,U,Ud,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U, +U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U],De=[function(){this.A-=2+(0>this.ca?0:1);return this.cd.va},function(){this.A-=2+(0>this.ca?0:1);return this.eb.va},function(a){this.S|=2;this.cd.load(a); +this.A-=17+(0>this.ca?0:2);return a},function(a){this.S|=2;this.eb.load(a)!=q&&(this.Qa(this.eb.Pd+4,this.eb.nb|=512),this.eb.type=768);this.A-=17+(0>this.ca?0:2);return a},function(a){this.S|=2;this.A-=14+(0>this.ca?0:2);if(this.Tb.load(a,!0)!=q&&2048!=(this.Tb.nb&2560)&&(this.Tb.qc>=this.ra.bb&&this.Tb.qc>=(a&3)||7168==(this.Tb.nb&7168)))return Xe(this),a;Se(this);return a},function(a){this.S|=2;this.A-=14+(0>this.ca?0:2);if(this.Tb.load(a,!0)!=q&&512==(this.Tb.nb&2560)&&this.Tb.qc>=this.ra.bb&& +this.Tb.qc>=(a&3))return Xe(this),a;Se(this);return a},bg,bg],Td=[ke,ke,ke,ke,ke,ke,bg,bg],Jg=[function(a){0>this.ca?Ud.call(this):(a=this.We-this.Fc,this.Qa(this.ca+2,this.Fc),this.Qa(this.ca+4,65280|this.Fc>>16),this.A-=11);return a},function(a){0>this.ca?Ud.call(this):(a=this.Xe-this.Tc,this.Qa(this.ca+2,this.Tc),this.Qa(this.ca+4,65280|this.Tc>>16),this.A-=12);return a},function(a){0>this.ca?Ud.call(this):(this.Fc=this.la(this.ca+2)|this.Oa(this.ca+4)<<16,this.We=this.Fc+a,this.S|=2,this.A-=11); +return a},function(a){0>this.ca?Ud.call(this):(this.Tc=this.la(this.ca+2)|this.Oa(this.ca+4)<<16,this.Xe=this.Tc+a,this.S|=2,this.A-=12);return a},function(){this.A-=2+(0>this.ca?0:1);return this.gc},bg,function(a){$e(this,a);this.A-=0>this.ca?3:6;this.S|=2;return a},bg],z=[function(a){a=a.call(this,this.G&255,F(this,this.C+this.F));this.G=this.G&-256|a;this.A-=this.B.aa},function(a){a=a.call(this,this.G&255,F(this,this.C+this.D));this.G=this.G&-256|a;this.A-=this.B.ba},function(a){a=a.call(this, this.G&255,G(this,this.H+this.F));this.G=this.G&-256|a;this.A-=this.B.ba},function(a){a=a.call(this,this.G&255,G(this,this.H+this.D));this.G=this.G&-256|a;this.A-=this.B.aa},function(a){a=a.call(this,this.G&255,F(this,this.F));this.G=this.G&-256|a;this.A-=this.B.T},function(a){a=a.call(this,this.G&255,F(this,this.D));this.G=this.G&-256|a;this.A-=this.B.T},function(a){a=a.call(this,this.G&255,F(this,this.K()));this.G=this.G&-256|a;this.A-=this.B.ua},function(a){a=a.call(this,this.G&255,F(this,this.C)); this.G=this.G&-256|a;this.A-=this.B.T},function(a){a=a.call(this,this.I&255,F(this,this.C+this.F));this.I=this.I&-256|a;this.A-=this.B.aa},function(a){a=a.call(this,this.I&255,F(this,this.C+this.D));this.I=this.I&-256|a;this.A-=this.B.ba},function(a){a=a.call(this,this.I&255,G(this,this.H+this.F));this.I=this.I&-256|a;this.A-=this.B.ba},function(a){a=a.call(this,this.I&255,G(this,this.H+this.D));this.I=this.I&-256|a;this.A-=this.B.aa},function(a){a=a.call(this,this.I&255,F(this,this.F));this.I=this.I& -256|a;this.A-=this.B.T},function(a){a=a.call(this,this.I&255,F(this,this.D));this.I=this.I&-256|a;this.A-=this.B.T},function(a){a=a.call(this,this.I&255,F(this,this.K()));this.I=this.I&-256|a;this.A-=this.B.ua},function(a){a=a.call(this,this.I&255,F(this,this.C));this.I=this.I&-256|a;this.A-=this.B.T},function(a){a=a.call(this,this.J&255,F(this,this.C+this.F));this.J=this.J&-256|a;this.A-=this.B.aa},function(a){a=a.call(this,this.J&255,F(this,this.C+this.D));this.J=this.J&-256|a;this.A-=this.B.ba}, @@ -431,73 +431,74 @@ this.H,b.call(this))},function(a,b){this.F=a[3].call(this,this.F,b.call(this))}, a[4].call(this,this.F,b.call(this))},function(a,b){this.D=a[4].call(this,this.D,b.call(this))},function(a,b){this.G=a[5].call(this,this.G,b.call(this))},function(a,b){this.I=a[5].call(this,this.I,b.call(this))},function(a,b){this.J=a[5].call(this,this.J,b.call(this))},function(a,b){this.C=a[5].call(this,this.C,b.call(this))},function(a,b){x(this,a[5].call(this,w(this),b.call(this)))},function(a,b){this.H=a[5].call(this,this.H,b.call(this))},function(a,b){this.F=a[5].call(this,this.F,b.call(this))}, function(a,b){this.D=a[5].call(this,this.D,b.call(this))},function(a,b){this.G=a[6].call(this,this.G,b.call(this))},function(a,b){this.I=a[6].call(this,this.I,b.call(this))},function(a,b){this.J=a[6].call(this,this.J,b.call(this))},function(a,b){this.C=a[6].call(this,this.C,b.call(this))},function(a,b){x(this,a[6].call(this,w(this),b.call(this)))},function(a,b){this.H=a[6].call(this,this.H,b.call(this))},function(a,b){this.F=a[6].call(this,this.F,b.call(this))},function(a,b){this.D=a[6].call(this, this.D,b.call(this))},function(a,b){this.G=a[7].call(this,this.G,b.call(this))},function(a,b){this.I=a[7].call(this,this.I,b.call(this))},function(a,b){this.J=a[7].call(this,this.J,b.call(this))},function(a,b){this.C=a[7].call(this,this.C,b.call(this))},function(a,b){x(this,a[7].call(this,w(this),b.call(this)))},function(a,b){this.H=a[7].call(this,this.H,b.call(this))},function(a,b){this.F=a[7].call(this,this.F,b.call(this))},function(a,b){this.D=a[7].call(this,this.D,b.call(this))}]; -function Kg(a){n.call(this,"ChipSet",a,Kg,16384);this.za=(this.za=a.model)?parseInt(this.za,10):Lg;this.hc=0;var b=a.sw1;if(b)this.hc=Mg(b,Ng|Og.Hn);else{this.me=[360,360];(b=a.floppies)&&b.length&&(this.me=b);if(b=this.me.length)this.hc|=Pg.Qi,b--,this.hc|=(b&3)<=Qg&&(this.Th=this.Fg=2);this.Ce=a.scaleTimers||!1;this.Fq=a.rtcDate; -this.Kl=!1;a.sound&&window&&"webkitAudioContext"in window&&(this.mj=new window.webkitAudioContext);this.reset(!0);jb(this)}Ya(n,Kg);var Lg=5150,Qg=5170,Rg={none:0,tv:1,color:2,mono:3,ega:0},Pg={Qi:1,ONE:0,ur:64,sr:128,Sq:192,qg:192,rg:6},Ng=12,Og={tr:16,Kq:32,Hn:48,qg:48,rg:4};k=Kg.prototype; +function Kg(a){n.call(this,"ChipSet",a,Kg,16384);this.za=(this.za=a.model)?parseInt(this.za,10):Lg;this.hc=0;var b=a.sw1;if(b)this.hc=Mg(b,Ng|Og.In);else{this.me=[360,360];(b=a.floppies)&&b.length&&(this.me=b);if(b=this.me.length)this.hc|=Pg.Ri,b--,this.hc|=(b&3)<=Qg&&(this.Uh=this.Fg=2);this.Ce=a.scaleTimers||!1;this.Gq=a.rtcDate; +this.Ll=!1;a.sound&&(this.mj=this.Lg=null,window&&(this.mj=window.AudioContext||window.webkitAudioContext),this.mj&&(this.Lg=new this.mj));this.reset(!0);jb(this)}Ya(n,Kg);var Lg=5150,Qg=5170,Rg={none:0,tv:1,color:2,mono:3,ega:0},Pg={Ri:1,ONE:0,vr:64,tr:128,Tq:192,qg:192,rg:6},Ng=12,Og={ur:16,Lq:32,In:48,qg:48,rg:4};k=Kg.prototype; k.Fb=function(a,b,c){switch(b){case "sw1":return this.qa[b]=c,Sg(this,b,c,this.hc,{0:this.za==Lg?"Bootable Floppy Drive":"Loop on POST",1:this.za==Lg?"Reserved":"Coprocessor",2:"Base Memory Size",4:"Monitor Type",6:"Number of Floppy Drives"}),!0;case "sw2":if(this.za==Lg)return this.qa[b]=c,Sg(this,b,c,this.Re,{0:"Expansion Memory Size",4:"Reserved"}),!0;break;case "swdesc":return this.qa[b]=c,!0}return!1}; -k.xc=function(a,b,c,d){this.ha=b;this.N=c;this.Z=d;this.Ba=a;this.Ha=rb(a,"Keyboard");this.yi=c.U.Gd/1193181;bc(b,this,Tg);fc(b,this,Ug);this.zab;b++){var c=13>=b?ah(e,b):e.ea[b];a&&(a+="\n");a+="CMOS[0x"+l(b)+"]: 0x"+l(c)}e.Z.R(a)})}xe(c,26,this,this.mp)};k.fc=function(a,b){if(!b)if(!a)this.reset();else if(!this.restore(a))return!1;return!0};k.ec=function(a){return a&&this.save?this.save():!0}; -k.reset=function(a){var b;this.vd=this.hc;this.yf=this.Re;bh(this);this.mb=Array(this.Th);for(b=0;b=Qg){this.ob=16;this.Rd=0;this.Qd=16;this.Kh=0;this.Ye=160;512<=fh(this)&&(this.Ye|=16);3==gh(this)&&(this.Ye|=64);this.bj=3;this.zg=0;this.Eh=Array(7);this.Ze=0;a&&(this.ea=Array(64));hh(this, -this.Fq);for(a=21;24>=a;a++)this.ea[a]=0;for(a=14;46>a;a++)void 0===this.ea[a]&&(this.ea[a]=0);this.ea[20]=this.vd&(Og.qg|2|Pg.Qi|Pg.qg);this.ea[16]=ih(this,0)<<4|ih(this,1);jh(this)}}; -function hh(a,b){var c=b?new Date(b):new Date;"[object Date]"!==Object.prototype.toString.call(c)||isNaN(c.getTime())?(c=new Date,a.R("CMOS date invalid ("+b+"), using "+c)):b&&a.R("CMOS date: "+c);a.ea[0]=c.getSeconds();a.ea[1]=0;a.ea[2]=c.getMinutes();a.ea[3]=0;a.ea[4]=c.getHours();a.ea[5]=0;a.ea[6]=c.getDay()+1;a.ea[7]=c.getDate();a.ea[8]=c.getMonth()+1;c=c.getFullYear();a.ea[9]=c%100;c/=100;a.ea[50]=c%10|c/10<<4;a.ea[10]=38;a.ea[11]=2;a.ea[12]=0;a.ea[13]=128;a.ph=a.hg=0;a.fn=a.wi=null} -function ah(a,b){var c=a.ea[b];if(10>b){var d=!1;4!=b&&5!=b||a.ea[11]&2||(c=12>c?c?c:12:(c-=12)?c+128:140,d=!0);a.ea[11]&4||(d&&128c;c++)b+=a.ea[c];a.ea[47]=b&255;a.ea[46]=b>>8} -k.save=function(){var a=new Ee(this);a.set(0,[this.hc,this.Re,this.vd,this.yf]);for(var b=[],c=0;c=Qg&&(a.set(5,[this.ob,this.Rd,this.Qd,this.Kh,this.Ye,this.bj]),a.set(6,[this.zg,this.Eh,this.Ze,this.ea,this.ph,this.hg]));return a.data()}; -k.restore=function(a){var b,c;b=a[0];this.hc=b[0];this.Re=b[1];this.vd=b[2];this.yf=b[3];b=a[1];for(c=0;c>2)+1)*a.np+32*((b?a.Re:a.yf)&15)}function rh(a,b){var c=b?a.hc:a.vd;return a.za!=Lg||c&Pg.Qi?((c&Pg.qg)>>Pg.rg)+1:0} -function ih(a,b){if(b>Og.rg} +k.yc=function(a,b,c,d){this.ha=b;this.N=c;this.Z=d;this.Ba=a;this.Ha=rb(a,"Keyboard");this.zi=c.U.Hd/1193181;bc(b,this,Tg);fc(b,this,Ug);this.zab;b++){var c=13>=b?ah(e,b):e.ea[b];a&&(a+="\n");a+="CMOS[0x"+l(b)+"]: 0x"+l(c)}e.Z.R(a)})}xe(c,26,this,this.np)};k.fc=function(a,b){if(!b)if(!a)this.reset();else if(!this.restore(a))return!1;return!0};k.ec=function(a){return a&&this.save?this.save():!0}; +k.reset=function(a){var b;this.wd=this.hc;this.yf=this.Re;bh(this);this.mb=Array(this.Uh);for(b=0;b=Qg){this.ob=16;this.Rd=0;this.Qd=16;this.Lh=0;this.Ye=160;512<=fh(this)&&(this.Ye|=16);3==gh(this)&&(this.Ye|=64);this.cj=3;this.zg=0;this.Fh=Array(7);this.Ze=0;a&&(this.ea=Array(64));hh(this, +this.Gq);for(a=21;24>=a;a++)this.ea[a]=0;for(a=14;46>a;a++)void 0===this.ea[a]&&(this.ea[a]=0);this.ea[20]=this.wd&(Og.qg|2|Pg.Ri|Pg.qg);this.ea[16]=ih(this,0)<<4|ih(this,1);jh(this)}}; +function hh(a,b){var c=b?new Date(b):new Date;"[object Date]"!==Object.prototype.toString.call(c)||isNaN(c.getTime())?(c=new Date,a.R("CMOS date invalid ("+b+"), using "+c)):b&&a.R("CMOS date: "+c);a.ea[0]=c.getSeconds();a.ea[1]=0;a.ea[2]=c.getMinutes();a.ea[3]=0;a.ea[4]=c.getHours();a.ea[5]=0;a.ea[6]=c.getDay()+1;a.ea[7]=c.getDate();a.ea[8]=c.getMonth()+1;c=c.getFullYear();a.ea[9]=c%100;c/=100;a.ea[50]=c%10|c/10<<4;a.ea[10]=38;a.ea[11]=2;a.ea[12]=0;a.ea[13]=128;a.qh=a.hg=0;a.gn=a.xi=null} +function ah(a,b){var c=a.ea[b];if(10>b){var d=!1;4!=b&&5!=b||a.ea[11]&2||(c=12>c?c?c:12:(c-=12)?c+128:140,d=!0);a.ea[11]&4||(d&&128c;c++)b+=a.ea[c];a.ea[47]=b&255;a.ea[46]=b>>8} +k.save=function(){var a=new Ee(this);a.set(0,[this.hc,this.Re,this.wd,this.yf]);for(var b=[],c=0;c=Qg&&(a.set(5,[this.ob,this.Rd,this.Qd,this.Lh,this.Ye,this.cj]),a.set(6,[this.zg,this.Fh,this.Ze,this.ea,this.qh,this.hg]));return a.data()}; +k.restore=function(a){var b,c;b=a[0];this.hc=b[0];this.Re=b[1];this.wd=b[2];this.yf=b[3];b=a[1];for(c=0;c>2)+1)*a.op+32*((b?a.Re:a.yf)&15)}function rh(a,b){var c=b?a.hc:a.wd;return a.za!=Lg||c&Pg.Ri?((c&Pg.qg)>>Pg.rg)+1:0} +function ih(a,b){if(b>Og.rg} function Sg(a,b,c,d,e){for(var f="",g=1;8>=g;g++){var h="pcjs-bitCell";g||(h+=" pcjs-bitCellLeft");f+='
'+g+"
\n"}c.innerHTML=f;b=db(c,"pcjs-bitCell");c=null;for(g=0;gg.ab[0]&&(g.ab[0]=255,g.ab[1]--,0>g.ab[1]&&(g.ab[1]=255)));return h}function wh(a,b,c,d,e,f){var g=a.mb[b];a.pa(384)&&p(a,d,e,f,"DMA"+b+".CHANNEL"+c+".COUNT["+g.pb+"]",null,!0);a=g.Qb[c];a.ab[g.pb]=a.kc[g.pb]=e;g.pb^=1}function xh(a,b,c,d){var e=a.mb[b],f=e.ue|1;e.ue&=-16;a.pa(384)&&p(a,c,null,d,"DMA"+b+".STATUS",f,!0);return f} -function yh(a,b,c,d,e){var f=a.mb[b];a.pa(384)&&p(a,c,d,e,"DMA"+b+".REQ",null,!0);a=d&3;f.ue=f.ue&~(16<>2].Qb[b&3],c,d,e)} -function Ah(a,b,c){b=a.mb[b>>2].Qb[b&3];b.Xh&&b.Fj&&b.Ai?(c&&(b.Zh=c),b.ae||jf(a,b,!0)):c&&c(!0)}function jf(a,b,c){c&&(b.count=b.ab[1]<<8|b.ab[0],b.Dn=b.mode&12,b.Ml=b.pd=!1);for(var d=!1;0<=b.count&&(c=b.Qh<<16|b.gb[1]<<8|b.gb[0],4==b.Dn?(d=!0,function(c){b.Fj.call(b.Xh,b.Ai,-1,function(f,g){0>f&&(b.Ml||(b.Ml=!0),f=255);b.ae||a.ha.ud(c,f);(d=g)&&setTimeout(function(){Ih(b)||jf(a,b)},0)})}(c)):8==b.Dn?(c=a.ha.Oa(c),0>b.Fj.call(b.Xh,b.Ai,c)&&(b.pd=!0)):b.pd=!0),!d&&!Ih(b););} -function Ih(a){if(!a.pd&&0<=--a.count&&(a.mode&32?(a.gb[0]--,0>a.gb[0]&&(a.gb[0]=255,a.gb[1]--,0>a.gb[1]&&(a.gb[1]=255))):(a.gb[0]++,255>3];b=1<<(b&7);d.Sb&b||(d.Sb|=b,d.fg=c||0,Lh(a))} -function Ph(a,b){var c=a.Vb[b>>3],d=1<<(b&7);c.Sb&d&&(c.Sb&=~d,Lh(a))}function Lh(a,b){var c,d=-1;1>=1),dd(a.N,c))),2==b&&jd(a))}k=Kg.prototype; -k.fp=function(a,b){p(this,a,null,b,"TIMER_CTRL",null,1024);return null}; -k.tq=function(a,b,c){this.gj=b;p(this,a,b,c,"TIMER_CTRL",null,1024);a=(b&192)>>6;if(3!=a){c=b&1;var d=b&14;if(b&=48){var e=this.Jb[a];e.Hi=b;e.mode=d;e.rl=c;e.kc=[0,0];e.ab=[0,0];e.ff=[0,0];e.Fd=!1;e.Rg=!1;e.kf=!1;Rh(this,a);0==a&&Ph(this,0);2==a&&255==this.Vb[0].zd&&77==this.Gc&&(a=this.Jb[0],a.Jc[0]=a.kc[0],a.Jc[1]=a.kc[1],a.sd=Yc(this.N,this.Ce))}else $g(this,a),b=this.Jb[a],b.ff[0]=b.ab[0],b.ff[1]=b.ab[1],b.Rg=!0,Rh(this,a)}}; -function Th(a,b){var c=a.Jb[b],d=c.kc[1]<<8|c.kc[0];d||(d=1==c.Dd?256:65536);return d}function ld(a,b){var c=a.Jb[b],d=c.Jc[1]<<8|c.Jc[0];d||(d=1==c.Dd?256:65536);return d}function Rh(a,b){var c=a.Jb[b];c.ze=32==c.Hi?1:0;c.Dd=48==c.Hi?2:1} -function $g(a,b,c){var d=a.Jb[b];if(d.kf&&(2!=b||a.Gc&1)){var e=Yc(a.N,a.Ce),f=(e-d.sd)/a.yi|0;0>f&&(d.sd=e,f=0);var g=Th(a,b),h=ld(a,b)-f;0==d.mode?(0>=h&&(h=0),h||(d.Fd=!0,d.kf=!1,b||Oh(a,0))):4==d.mode?(d.Fd=1!=h,0>=h&&(h=g+h,0>=h&&(h=g),d.Jc[0]=h&255,d.Jc[1]=h>>8,d.sd=e,!b&&d.Fd&&Oh(a,0))):6==d.mode&&(h-=f,0>=h&&(d.Fd=!d.Fd,h=g+h,0>=h&&(h=g),d.Jc[0]=h&255,d.Jc[1]=h>>8,d.sd=e,!b&&d.Fd&&Oh(a,0)));d.ab[0]=h&255;d.ab[1]=h>>8;c&&(a.sd=0)}return d} -function kd(a,b){for(var c=0;c=Qg){var c=a.N.U.Gd,d=Yc(a.N,a.Ce);null==a.wi&&(a.ph=Yc(a.N,a.Ce),a.fn=1024,a.wi=Math.floor(a.N.U.Gd/a.fn),kh(a));d>=a.hg&&(a.ea[12]|=64,a.ea[11]&64&&(a.ea[12]|=128,Oh(a,8)),a.hg=d+a.wi);a.ea[0]==a.ea[1]&&a.ea[2]==a.ea[3]&&a.ea[4]==a.ea[5]&&(a.ea[12]|=32,a.ea[11]&32&&(a.ea[12]|=128,Oh(a,8)));var e=d-a.ph,f=Math.floor(e/c);if(f&&!(a.ea[11]&128)){for(;f--;)if(60<=++a.ea[0]&&(a.ea[0]=0,60<=++a.ea[2]&&(a.ea[2]=0,24<=++a.ea[4]))){a.ea[4]= -0;a.ea[6]=a.ea[6]%7+1;var g;g=a.ea[9];var h=ua[a.ea[8]-1];28==h&&0===g%4&&(g%100||0===g%400)&&h++;g=h;++a.ea[7]>g&&(a.ea[7]=1,12<++a.ea[8]&&(a.ea[8]=1,a.ea[9]=(a.ea[9]+1)%100))}a.ea[12]|=16;a.ea[11]&16&&(a.ea[12]|=128,Oh(a,8))}a.ph=d-e%c}}k.Yo=function(a,b){var c=this.Ph;if(this.Bg&16)if(this.Gc&128)c=this.vd;else if(this.Ha){var c=this.Ha,d=0;c.Wb.length&&(d=c.Wb[0]);c.pa()&&c.Xa("scan code 0x"+l(d)+" delivered");c=d}p(this,a,null,b,"PPI_A",c);return c}; -k.mq=function(a,b,c){p(this,a,b,c,"PPI_A");this.Ph=b};k.Zo=function(a,b){var c=this.Gc;p(this,a,null,b,"PPI_B",c);return c};k.nq=function(a,b,c){p(this,a,b,c,"PPI_B");Uh(this,b);this.Ha&&Vh(this.Ha,b&128?!1:!0,b&64?!0:!1)};function Uh(a,b){var c=!!(b&2),d=!!(a.Gc&2);a.Gc=b;c!=d&&jd(a,c)}k.$o=function(a,b){var c=0,c=this.za==Lg?this.Gc&4?c|this.yf&15:c|this.yf>>4&1:this.Gc&8?c|this.vd>>4:c|this.vd&15;this.Gc&1&&$g(this,2).Fd&&(c=this.Gc&2?c|32:c|16);p(this,a,null,b,"PPI_C",c,16448);return c}; -k.oq=function(a,b,c){p(this,a,b,c,"PPI_C");this.ej=b};k.ap=function(a,b){var c=this.Bg;p(this,a,null,b,"PPI_CTRL",c);return c};k.pq=function(a,b,c){p(this,a,b,c,"PPI_CTRL");this.Bg=b};k.oo=function(a,b){var c=this.Kh;p(this,a,null,b,"8042_OUTBUFF",c,8192);this.ob&=-258;this.Ha&&Wh(this.Ha);return c}; -k.Ep=function(a,b,c){p(this,a,b,c,"8042_INBUF.DATA",null,8192);if(this.ob&8)switch(this.Rd){case 96:Xh(this,b);break;case 209:Yh(this,b);break;default:if(Xh(this,this.Qd&-17),this.Ha){a=-1;switch(b){case 255:a=250,Zh(this.Ha)}$h(this,a)}}this.Rd=b;this.ob&=-9};k.po=function(a,b){var c=this.Gc&-209|(Yc(this.N)&64?16:0);p(this,a,null,b,"8042_RWREG",c,8192);return c};k.Fp=function(a,b,c){p(this,a,b,c,"8042_RWREG",null,8192);Uh(this,b)}; -k.qo=function(a,b){p(this,a,null,b,"8042_STATUS",this.ob,8192);var c=this.ob&255;this.ob&256&&(this.ob|=1,this.ob&=-257);return c}; -k.Dp=function(a,b,c){p(this,a,b,c,"8042_INBUFF.CMD",null,8192);this.Rd=b;this.ob|=8;a=0;240<=this.Rd&&(a=this.Rd^15,this.Rd=240);switch(this.Rd){case 192:$h(this,this.Ye);break;case 173:Xh(this,this.Qd|16);break;case 174:Xh(this,this.Qd&-17);this.Ha&&Wh(this.Ha);break;case 170:this.Ha&&(a=this.Ha,a.Wb=[],a.pa()&&a.Xa("scan codes flushed"));Xh(this,this.Qd|16);$h(this,85);Yh(this,3);break;case 224:$h(this,this.Qd&16?0:1);break;case 240:a&1&&pe(this.N)}}; -function Xh(a,b){a.Qd=b;a.ob=a.ob&-5|b&4;a.Ha&&Vh(a.Ha,!!(b&8),!(b&16))}function $h(a,b){0<=b&&(a.Kh=b,a.ob&=-2,a.ob|=256)}function Yh(a,b){a.bj=b;Ub(a.ha,!!(b&2));b&1||pe(a.N)}function ai(a,b){a.za=c?ah(this,c):this.ea[c];this.pa(2176)&&p(this,a,null,b,"CMOS.DATA["+l(c)+"]",d,!0);null!=b&&12==c&&(this.ea[c]&=15,d&128&&Ph(this,8),d&64&&this.ea[11]&64&&kh(this));return d}; -k.Up=function(a,b,c){var d=this.Ze&63;this.pa(2176)&&p(this,a,b,c,"CMOS.DATA["+l(d)+"]",null,!0);a=b^this.ea[d];if(13>=d){if(c=b,10>d){var e=!1;this.ea[11]&4||(c=10*(c>>4)+(c&15),e=!0);if(4==d||5==d)e&&23=c?c=12==c?0:c:(c-=116,c=24==c?12:c))}}else c=b;this.ea[d]=c;11==d&&a&64&&b&64&&kh(this)};k.Wo=function(a,b){p(this,a,null,b,"MFG_DATA",this.zg);return this.zg};k.jq=function(a,b,c){p(this,a,b,c,"MFG_DATA");this.zg=b}; -k.lq=function(a,b,c){p(this,a,b,c,"NMI");this.Oh=b};k.Vp=function(a,b,c){p(this,a,b,c,"COPROC.CLEAR")};k.Wp=function(a,b,c){p(this,a,b,c,"COPROC.RESET")}; -k.mp=function(a){if(this.pa(4096)&&ze(this.Z,26,a)){var b=this.N.G>>8;Ae(this.N,a,function(a,d){return function(e){d=Yc(a.N)-d;var f,g=a.N.J&255,h=a.N.J>>8,t=a.N.J&255,r=a.N.J>>8;if(2==b||3==b)f=" CH(hour)="+m(h)+" CL(min)="+l(g)+" DH(sec)="+l(r);else if(4==b||5==b)f=" CX(year)="+m(a.N.I)+" DH(month)="+l(r)+" DL(day)="+l(t);Be(a.Z,26,e,d,f)}}(this,Yc(this.N)))}return!0};function Mg(a,b){if(void 0===a)return b;for(var c=0,d=1,e=0;ec||2E4>2].Qb[b&3],c,d,e)} +function Ah(a,b,c){b=a.mb[b>>2].Qb[b&3];b.Yh&&b.Gj&&b.Bi?(c&&(b.$h=c),b.ae||jf(a,b,!0)):c&&c(!0)}function jf(a,b,c){c&&(b.count=b.ab[1]<<8|b.ab[0],b.En=b.mode&12,b.Nl=b.qd=!1);for(var d=!1;0<=b.count&&(c=b.Rh<<16|b.gb[1]<<8|b.gb[0],4==b.En?(d=!0,function(c){b.Gj.call(b.Yh,b.Bi,-1,function(f,g){0>f&&(b.Nl||(b.Nl=!0),f=255);b.ae||a.ha.vd(c,f);(d=g)&&setTimeout(function(){Ih(b)||jf(a,b)},0)})}(c)):8==b.En?(c=a.ha.Oa(c),0>b.Gj.call(b.Yh,b.Bi,c)&&(b.qd=!0)):b.qd=!0),!d&&!Ih(b););} +function Ih(a){if(!a.qd&&0<=--a.count&&(a.mode&32?(a.gb[0]--,0>a.gb[0]&&(a.gb[0]=255,a.gb[1]--,0>a.gb[1]&&(a.gb[1]=255))):(a.gb[0]++,255>3];b=1<<(b&7);d.Sb&b||(d.Sb|=b,d.fg=c||0,Lh(a))} +function Ph(a,b){var c=a.Vb[b>>3],d=1<<(b&7);c.Sb&d&&(c.Sb&=~d,Lh(a))}function Lh(a,b){var c,d=-1;1>=1),dd(a.N,c))),2==b&&jd(a))}k=Kg.prototype; +k.gp=function(a,b){p(this,a,null,b,"TIMER_CTRL",null,1024);return null}; +k.uq=function(a,b,c){this.hj=b;p(this,a,b,c,"TIMER_CTRL",null,1024);a=(b&192)>>6;if(3!=a){c=b&1;var d=b&14;if(b&=48){var e=this.Jb[a];e.Ii=b;e.mode=d;e.sl=c;e.kc=[0,0];e.ab=[0,0];e.ff=[0,0];e.Gd=!1;e.Sg=!1;e.kf=!1;Rh(this,a);0==a&&Ph(this,0);2==a&&255==this.Vb[0].Ad&&77==this.Hc&&(a=this.Jb[0],a.Kc[0]=a.kc[0],a.Kc[1]=a.kc[1],a.td=Yc(this.N,this.Ce))}else $g(this,a),b=this.Jb[a],b.ff[0]=b.ab[0],b.ff[1]=b.ab[1],b.Sg=!0,Rh(this,a)}}; +function Th(a,b){var c=a.Jb[b],d=c.kc[1]<<8|c.kc[0];d||(d=1==c.Ed?256:65536);return d}function ld(a,b){var c=a.Jb[b],d=c.Kc[1]<<8|c.Kc[0];d||(d=1==c.Ed?256:65536);return d}function Rh(a,b){var c=a.Jb[b];c.ze=32==c.Ii?1:0;c.Ed=48==c.Ii?2:1} +function $g(a,b,c){var d=a.Jb[b];if(d.kf&&(2!=b||a.Hc&1)){var e=Yc(a.N,a.Ce),f=(e-d.td)/a.zi|0;0>f&&(d.td=e,f=0);var g=Th(a,b),h=ld(a,b)-f;0==d.mode?(0>=h&&(h=0),h||(d.Gd=!0,d.kf=!1,b||Oh(a,0))):4==d.mode?(d.Gd=1!=h,0>=h&&(h=g+h,0>=h&&(h=g),d.Kc[0]=h&255,d.Kc[1]=h>>8,d.td=e,!b&&d.Gd&&Oh(a,0))):6==d.mode&&(h-=f,0>=h&&(d.Gd=!d.Gd,h=g+h,0>=h&&(h=g),d.Kc[0]=h&255,d.Kc[1]=h>>8,d.td=e,!b&&d.Gd&&Oh(a,0)));d.ab[0]=h&255;d.ab[1]=h>>8;c&&(a.td=0)}return d} +function kd(a,b){for(var c=0;c=Qg){var c=a.N.U.Hd,d=Yc(a.N,a.Ce);null==a.xi&&(a.qh=Yc(a.N,a.Ce),a.gn=1024,a.xi=Math.floor(a.N.U.Hd/a.gn),kh(a));d>=a.hg&&(a.ea[12]|=64,a.ea[11]&64&&(a.ea[12]|=128,Oh(a,8)),a.hg=d+a.xi);a.ea[0]==a.ea[1]&&a.ea[2]==a.ea[3]&&a.ea[4]==a.ea[5]&&(a.ea[12]|=32,a.ea[11]&32&&(a.ea[12]|=128,Oh(a,8)));var e=d-a.qh,f=Math.floor(e/c);if(f&&!(a.ea[11]&128)){for(;f--;)if(60<=++a.ea[0]&&(a.ea[0]=0,60<=++a.ea[2]&&(a.ea[2]=0,24<=++a.ea[4]))){a.ea[4]= +0;a.ea[6]=a.ea[6]%7+1;var g;g=a.ea[9];var h=ua[a.ea[8]-1];28==h&&0===g%4&&(g%100||0===g%400)&&h++;g=h;++a.ea[7]>g&&(a.ea[7]=1,12<++a.ea[8]&&(a.ea[8]=1,a.ea[9]=(a.ea[9]+1)%100))}a.ea[12]|=16;a.ea[11]&16&&(a.ea[12]|=128,Oh(a,8))}a.qh=d-e%c}}k.Zo=function(a,b){var c=this.Qh;if(this.Bg&16)if(this.Hc&128)c=this.wd;else if(this.Ha){var c=this.Ha,d=0;c.Wb.length&&(d=c.Wb[0]);c.pa()&&c.Xa("scan code 0x"+l(d)+" delivered");c=d}p(this,a,null,b,"PPI_A",c);return c}; +k.nq=function(a,b,c){p(this,a,b,c,"PPI_A");this.Qh=b};k.$o=function(a,b){var c=this.Hc;p(this,a,null,b,"PPI_B",c);return c};k.oq=function(a,b,c){p(this,a,b,c,"PPI_B");Uh(this,b);this.Ha&&Vh(this.Ha,b&128?!1:!0,b&64?!0:!1)};function Uh(a,b){var c=!!(b&2),d=!!(a.Hc&2);a.Hc=b;c!=d&&jd(a,c)}k.ap=function(a,b){var c=0,c=this.za==Lg?this.Hc&4?c|this.yf&15:c|this.yf>>4&1:this.Hc&8?c|this.wd>>4:c|this.wd&15;this.Hc&1&&$g(this,2).Gd&&(c=this.Hc&2?c|32:c|16);p(this,a,null,b,"PPI_C",c,16448);return c}; +k.pq=function(a,b,c){p(this,a,b,c,"PPI_C");this.fj=b};k.bp=function(a,b){var c=this.Bg;p(this,a,null,b,"PPI_CTRL",c);return c};k.qq=function(a,b,c){p(this,a,b,c,"PPI_CTRL");this.Bg=b};k.po=function(a,b){var c=this.Lh;p(this,a,null,b,"8042_OUTBUFF",c,8192);this.ob&=-258;this.Ha&&Wh(this.Ha);return c}; +k.Fp=function(a,b,c){p(this,a,b,c,"8042_INBUF.DATA",null,8192);if(this.ob&8)switch(this.Rd){case 96:Xh(this,b);break;case 209:Yh(this,b);break;default:if(Xh(this,this.Qd&-17),this.Ha){a=-1;switch(b){case 255:a=250,Zh(this.Ha)}$h(this,a)}}this.Rd=b;this.ob&=-9};k.qo=function(a,b){var c=this.Hc&-209|(Yc(this.N)&64?16:0);p(this,a,null,b,"8042_RWREG",c,8192);return c};k.Gp=function(a,b,c){p(this,a,b,c,"8042_RWREG",null,8192);Uh(this,b)}; +k.ro=function(a,b){p(this,a,null,b,"8042_STATUS",this.ob,8192);var c=this.ob&255;this.ob&256&&(this.ob|=1,this.ob&=-257);return c}; +k.Ep=function(a,b,c){p(this,a,b,c,"8042_INBUFF.CMD",null,8192);this.Rd=b;this.ob|=8;a=0;240<=this.Rd&&(a=this.Rd^15,this.Rd=240);switch(this.Rd){case 192:$h(this,this.Ye);break;case 173:Xh(this,this.Qd|16);break;case 174:Xh(this,this.Qd&-17);this.Ha&&Wh(this.Ha);break;case 170:this.Ha&&(a=this.Ha,a.Wb=[],a.pa()&&a.Xa("scan codes flushed"));Xh(this,this.Qd|16);$h(this,85);Yh(this,3);break;case 224:$h(this,this.Qd&16?0:1);break;case 240:a&1&&pe(this.N)}}; +function Xh(a,b){a.Qd=b;a.ob=a.ob&-5|b&4;a.Ha&&Vh(a.Ha,!!(b&8),!(b&16))}function $h(a,b){0<=b&&(a.Lh=b,a.ob&=-2,a.ob|=256)}function Yh(a,b){a.cj=b;Ub(a.ha,!!(b&2));b&1||pe(a.N)}function ai(a,b){a.za=c?ah(this,c):this.ea[c];this.pa(2176)&&p(this,a,null,b,"CMOS.DATA["+l(c)+"]",d,!0);null!=b&&12==c&&(this.ea[c]&=15,d&128&&Ph(this,8),d&64&&this.ea[11]&64&&kh(this));return d}; +k.Vp=function(a,b,c){var d=this.Ze&63;this.pa(2176)&&p(this,a,b,c,"CMOS.DATA["+l(d)+"]",null,!0);a=b^this.ea[d];if(13>=d){if(c=b,10>d){var e=!1;this.ea[11]&4||(c=10*(c>>4)+(c&15),e=!0);if(4==d||5==d)e&&23=c?c=12==c?0:c:(c-=116,c=24==c?12:c))}}else c=b;this.ea[d]=c;11==d&&a&64&&b&64&&kh(this)};k.Xo=function(a,b){p(this,a,null,b,"MFG_DATA",this.zg);return this.zg};k.kq=function(a,b,c){p(this,a,b,c,"MFG_DATA");this.zg=b}; +k.mq=function(a,b,c){p(this,a,b,c,"NMI");this.Ph=b};k.Wp=function(a,b,c){p(this,a,b,c,"COPROC.CLEAR")};k.Xp=function(a,b,c){p(this,a,b,c,"COPROC.RESET")}; +k.np=function(a){if(this.pa(4096)&&ze(this.Z,26,a)){var b=this.N.G>>8;Ae(this.N,a,function(a,d){return function(e){d=Yc(a.N)-d;var f,g=a.N.J&255,h=a.N.J>>8,t=a.N.J&255,r=a.N.J>>8;if(2==b||3==b)f=" CH(hour)="+m(h)+" CL(min)="+l(g)+" DH(sec)="+l(r);else if(4==b||5==b)f=" CX(year)="+m(a.N.I)+" DH(month)="+l(r)+" DL(day)="+l(t);Be(a.Z,26,e,d,f)}}(this,Yc(this.N)))}return!0};function Mg(a,b){if(void 0===a)return b;for(var c=0,d=1,e=0;ec||2E4>8&255,this.Kb[c++]=f[b]>>16&255,this.Kb[c++]=f[b]>>24&255;else this.Kb=d;this.Wi=d.symbols;if(!this.Kb.length){ya("Empty ROM: "+a);return}if(1==this.Kb.length){ya(this.Kb[0]);return}}catch(g){this.Ea("ROM data error: "+ +ci.prototype.Ap=function(a,b,c){if(c)this.Ca("Unable to load system ROM (error "+c+")");else{if("["==b.charAt(0)||"{"==b.charAt(0))try{var d=eval("("+b+")"),e=d.bytes,f=d.data;if(e)this.Kb=e;else if(f)for(this.Kb=Array(4*f.length),c=b=0;b>8&255,this.Kb[c++]=f[b]>>16&255,this.Kb[c++]=f[b]>>24&255;else this.Kb=d;this.Xi=d.symbols;if(!this.Kb.length){ya("Empty ROM: "+a);return}if(1==this.Kb.length){ya(this.Kb[0]);return}}catch(g){this.Ca("ROM data error: "+ g.message);return}else for(a=b.replace(/\n/gm," ").replace(/ +$/,"").split(" "),this.Kb=Array(a.length),d=0;d>>d.Ga].og(e&d.Da,a.Kb[c]&255)}return!0}return!1}Ma(function(){for(var a=db(window.document,"pcjs","rom"),b=0;b>>d.Ga].og(e&d.Ea,a.Kb[c]&255)}return!0}return!1}Ma(function(){for(var a=db(window.document,"pcjs","rom"),b=0;bthis.Hh?21:23,c=a.ea[b]|a.ea[b+1]<<8,c=c+(this.fe>> -10);a.ea[b]=c&255;a.ea[b+1]=c>>8;jh(a)}}else ya("No RAM allocated")};function ii(){this.Kn=ki;this.Ln=li}var ji=2160066560,ki=255,li=0;function mi(){return this.X.Ln}function ni(a,b){this.X.Kn=b}var oi=[mi,mi,mi,ni,ni,ni];ii.prototype.Pl=function(){return[null,0]};ii.prototype.Gj=function(){return oi};Ma(function(){for(var a=db(window.document,"pcjs","ram"),b=0;b":62,"?":63,"@":64,Iq:65,Jq:66,$k:67,Fn:68,E:69,Qq:70,Tq:71,al:72,Vq:73,Wq:74,Xq:75,Yq:76,Zq:77,Ri:78,ar:79,br:80,dr:81,cl:82,hr:83,rr:84,vr:85,wr:86,xr:87,zr:88,Ar:89,Br:90,"[":91,"\\":92,"]":93,"^":94,_:95,"`":96,Cr:97,Dr:98,Fr:99,Mr:100,Nr:101,Or:102,Qr:103,Rr:104,Sr:105,Tr:106,Ur:107, -Vr:108,Wr:109,Xr:110,Zr:111,$r:112,as:113,cs:114,gs:115,ks:116,ls:117,ms:118,ns:119,x:120,y:121,z:122,"{":123,"|":124,"}":125,"~":126},qi={};qi[186]=V[";"];qi[187]=V["="];qi[188]=V[","];qi[189]=V["-"];qi[190]=V["."];qi[191]=V["/"];qi[192]=V["`"];qi[219]=V["["];qi[220]=V["\\"];qi[221]=V["]"];qi[222]=V["'"];qi[173]=V["-"];var ri={};ri[V["1"]]=V["!"];ri[V["2"]]=V["@"];ri[V["3"]]=V["#"];ri[V["4"]]=V.$;ri[V["5"]]=V["%"];ri[V["6"]]=V["^"];ri[V["7"]]=V["&"];ri[V["8"]]=V["*"];ri[V["9"]]=V["("]; +hi.prototype.reset=function(){if(!this.Ih&&!this.eo&&this.fa){var a=1024*fh(this.fa);this.fe&&a!=this.fe&&(Xb(this.ha,this.Ih,this.fe),this.bi=!1);this.fe=a}!this.bi&&this.fe&&Vb(this.ha,this.Ih,this.fe,1)&&(this.bi=!0,a=Math.floor(this.fe/1024)+"Kb",this.Jg&&(a+=" ("+this.Jg+")",this.Jg=null),this.status(a),"ramCPQ"==this.Yg&&(this.X=new ii,Vb(this.ha,ji,1,4,this.X)));if(this.bi){if(this.jo||Zb(this.ha,1138,4660),this.fa&&(a=this.fa,a.ea)){var b=1048576>this.Ih?21:23,c=a.ea[b]|a.ea[b+1]<<8,c=c+(this.fe>> +10);a.ea[b]=c&255;a.ea[b+1]=c>>8;jh(a)}}else ya("No RAM allocated")};function ii(){this.Ln=ki;this.Mn=li}var ji=2160066560,ki=255,li=0;function mi(){return this.X.Mn}function ni(a,b){this.X.Ln=b}var oi=[mi,mi,mi,ni,ni,ni];ii.prototype.Ql=function(){return[null,0]};ii.prototype.Hj=function(){return oi};Ma(function(){for(var a=db(window.document,"pcjs","ram"),b=0;b":62,"?":63,"@":64,Jq:65,Kq:66,al:67,Gn:68,E:69,Rq:70,Uq:71,bl:72,Wq:73,Xq:74,Yq:75,Zq:76,$q:77,Si:78,br:79,cr:80,er:81,dl:82,ir:83,sr:84,wr:85,xr:86,yr:87,Ar:88,Br:89,Cr:90,"[":91,"\\":92,"]":93,"^":94,_:95,"`":96,Dr:97,Er:98,Gr:99,Nr:100,Or:101,Pr:102,Rr:103,Sr:104,Tr:105,Ur:106,Vr:107, +Wr:108,Xr:109,Yr:110,$r:111,as:112,cs:113,ds:114,hs:115,ls:116,ms:117,ns:118,os:119,x:120,y:121,z:122,"{":123,"|":124,"}":125,"~":126},qi={};qi[186]=V[";"];qi[187]=V["="];qi[188]=V[","];qi[189]=V["-"];qi[190]=V["."];qi[191]=V["/"];qi[192]=V["`"];qi[219]=V["["];qi[220]=V["\\"];qi[221]=V["]"];qi[222]=V["'"];qi[173]=V["-"];var ri={};ri[V["1"]]=V["!"];ri[V["2"]]=V["@"];ri[V["3"]]=V["#"];ri[V["4"]]=V.$;ri[V["5"]]=V["%"];ri[V["6"]]=V["^"];ri[V["7"]]=V["&"];ri[V["8"]]=V["*"];ri[V["9"]]=V["("]; ri[V["0"]]=V[")"];ri[186]=V[":"];ri[187]=V["+"];ri[188]=V["<"];ri[189]=V._;ri[190]=V[">"];ri[191]=V["?"];ri[192]=V["~"];ri[219]=V["{"];ri[220]=V["|"];ri[221]=V["}"];ri[222]=V['"'];ri[173]=V._;ri[61]=V["+"];ri[59]=V[":"]; var si={3016:1,1016:2,1017:8,1018:32,1091:128,1093:64,1224:128,1020:512,1144:1024,1145:2048},ti={TAB:1009,ESC:1027,F1:1112,F2:1113,F3:1114,F4:1115,F5:1116,F6:1117,F7:1118,F8:1119,F9:1120,F10:1121,LEFT:1037,UP:1038,RIGHT:1039,DOWN:1040,CTRL_C:4003,CTRL_BREAK:4008,CTRL_ALT_DEL:4046},ui={esc:1027,1:V["1"],2:V["2"],3:V["3"],4:V["4"],5:V["5"],6:V["6"],7:V["7"],8:V["8"],9:V["9"],0:V["0"],"-":V["-"],"=":V["="],bs:1008,tab:1009,q:81,w:87,e:69,r:82,t:84,y:89,u:85,i:73,o:79,p:80,"[":V["["],"]":V["]"],enter:13, ctrl:1017,a:65,s:83,d:68,f:70,g:71,h:72,j:74,k:75,l:76,";":V[";"],quote:V["'"],"`":V["`"],shift:1016,"\\":V["\\"],z:90,x:88,c:67,v:86,b:66,n:78,m:77,",":V[","],".":V["."],"/":V["/"],"right-shift":3016,prtsc:1044,alt:1018,space:V[" "],"caps-lock":1020,f1:1112,f2:1113,f3:1114,f4:1115,f5:1116,f6:1117,f7:1118,f8:1119,f9:1120,f10:1121,"num-lock":1144,"scroll-lock":1145,"num-home":1036,"num-up":1038,"num-pgup":1033,"num-sub":1109,"num-left":1037,"num-center":1101,"num-right":1039,"num-add":1107,"num-end":1035, @@ -505,177 +506,177 @@ ctrl:1017,a:65,s:83,d:68,f:70,g:71,h:72,j:74,k:75,l:76,";":V[";"],quote:V["'"]," X[81]=10768;X[119]=17;X[87]=10769;X[101]=18;X[69]=10770;X[114]=19;X[82]=10771;X[116]=20;X[84]=10772;X[121]=21;X[89]=10773;X[117]=22;X[85]=10774;X[105]=23;X[73]=10775;X[111]=24;X[79]=10776;X[112]=25;X[80]=10777;X[V["["]]=26;X[V["{"]]=10778;X[V["]"]]=27;X[V["}"]]=10779;X[13]=28;X[1017]=29;X[97]=30;X[65]=10782;X[115]=31;X[83]=10783;X[100]=32;X[68]=10784;X[102]=33;X[70]=10785;X[103]=34;X[71]=10786;X[104]=35;X[72]=10787;X[106]=36;X[74]=10788;X[107]=37;X[75]=10789;X[108]=38;X[76]=10790;X[V[";"]]=39; X[V[":"]]=10791;X[V["'"]]=40;X[V['"']]=10792;X[V["`"]]=41;X[V["~"]]=10793;X[1016]=42;X[V["\\"]]=43;X[V["|"]]=10795;X[122]=44;X[90]=10796;X[120]=45;X[88]=10797;X[99]=46;X[67]=10798;X[118]=47;X[86]=10799;X[98]=48;X[66]=10800;X[110]=49;X[78]=10801;X[109]=50;X[77]=10802;X[V[","]]=51;X[V["<"]]=10803;X[V["."]]=52;X[V[">"]]=10804;X[V["/"]]=53;X[V["?"]]=10805;X[3016]=54;X[1044]=55;X[1018]=56;X[V[" "]]=57;X[1020]=58;X[1112]=59;X[1113]=60;X[1114]=61;X[1115]=62;X[1116]=63;X[1117]=64;X[1118]=65;X[1119]=66; X[1120]=67;X[1121]=68;X[1144]=69;X[1145]=70;X[1036]=71;X[1038]=72;X[1033]=73;X[1109]=74;X[1037]=75;X[1101]=76;X[1039]=77;X[1107]=78;X[1035]=79;X[1040]=80;X[1034]=81;X[1045]=82;X[1046]=83;X[1122]=87;X[1123]=88;X[1091]=91;X[1093]=93;X[1224]=91;X[4003]=7470;X[4008]=7494;X[4046]=3677523;k=pi.prototype; -k.Fb=function(a,b,c){var d=this,e=a+"-"+b;if(void 0===this.qa[e])switch(b){case "kbd":return this.qa[e]=c,c.onkeydown=function(a){return wi(d,a,!0)},c.onkeypress=function(a){a=a||window.event;a=a.which||a.keyCode;if(d.Cl){var b=d.Rb.length?d.Rb[0].Qe:0;b&&(65<=b&&90>=b||97<=b&&122>=b)&&(65<=a&&90>=a||97<=a&&122>=a)&&b!=a&&(d.Dj=!0,a=b)}(b=!X[a]||!!(d.Zb&128))||xi(d,a,!0);return b},c.onkeyup=function(a){return wi(d,a,!1)},!0;case "caps-lock":return this.qa[e]=c,c.onclick=function(){d.N&&d.N.Nc();xi(d, -1020,!0)},!0;case "num-lock":return this.qa[e]=c,c.onclick=function(){d.N&&d.N.Nc();xi(d,1144,!0)},!0;case "scroll-lock":return this.qa[e]=c,c.onclick=function(){d.N&&d.N.Nc();xi(d,1145,!0)},!0;default:var f=b.toUpperCase().replace(/-/g,"_");if(void 0!==ti[f]&&"button"==a)return this.qa[e]=c,c.onclick=function(a,b,c){return function(){a.N&&a.N.Nc();yi(a,c,!0);xi(a,c,!0)}}(this,f,ti[f]),!0;if(void 0!==ui[b])return this.vl++,this.qa[e]=c,a=function(a,b,c){return function(){xi(a,c)}}(this,b,ui[b]),b= -function(a,b,c){return function(){zi(a,c)}}(this,b,ui[b]),"ontouchstart"in window?(c.ontouchstart=a,c.ontouchend=b):(c.onmousedown=a,c.onmouseup=c.onmouseout=b),!0}return!1};function Ai(a,b,c){if(a.vl){for(var d in ri)if(b==ri[d]){b=parseInt(d,10);(d=qi[d])&&(b=d);break}for(var e in ui)if((d=ui[e]==b)||(d=b,97<=d&&122>=d&&(d-=32),d=ui[e]==d),d){(a=a.qa["key-"+e])&&void 0!==c&&(a.style.color=c?"#ffffff":"#000000",a.style.backgroundColor=c?"#000000":"#ffffff");break}}} -k.xc=function(a,b,c,d){this.ha=b;this.N=c;this.Z=d;this.fa=rb(a,"ChipSet")};function Zh(a,b){a.Xa("keyboard reset",32896);a.Wb=[170];b&&a.fa&&ai(a.fa,a.Wb[0])}function Vh(a,b,c){a.wj!==c&&(a.wj=a.Bj=c);a.di!==b&&(a.di=b)&&!a.Bj&&bi(a,!0);a.di&&a.Bj&&(Zh(a,!0),a.Bj=!1)}function Wh(a){var b=0;a.Wb.length&&(b=a.Wb[0],a.fa&&ai(a.fa,b));a.pa()&&a.Xa("scan code 0x"+l(b)+" available")} -function bi(a,b){0>=1);if(b&3584){if(!1===d)return!0;d=null}null==d?d=!((c?a.Bd:a.Zb)&b):d||b&255&&(b=255);if(c){a.Bd&=~b;d&&(a.Bd|=b);c=b;var f,g;for(g in vi)d="led-"+g,e=vi[g],c&&c!=e||!(f=a.qa[d])||(f.style.backgroundColor=a.Bd&e?"#00ff00":"#000000")}else a.Zb&=~b,d&&(a.Zb|=b);return!0}}return!1} -function xi(a,b,c){if(X[b]&&a.N&&a.N.da.jb){si[b]&&a.Rb.length&&0e||(e==a.Rb.length&&(d={},d.Qe=b,d.Zb=a.Zb,Ai(a,b,!0),e++),0b.Jd){if(!b.Qg){zi(a,b.Qe);return}b.Qg=!1;c=a.pp}else c=1==b.Jd++?a.qp:a.rp;b.An=setTimeout(function(a){return function(){Bi(a,b)}}(a),c)}}else zi(a,b.Qe,!0)}function Hi(a,b,c){var d=b;if(65<=b&&90>=b)!(a.Zb&515)==c&&(d=b+32);else if(97<=b&&122>=b)!!(a.Zb&515)==c&&(d=b-32);else if(!!(a.Zb&3)==c){if(a=ri[b])d=a}else if(a=qi[b])d=a;return d}k.Bi=function(a){this.ei=a;a||(this.Zb&=-256)}; -function wi(a,b,c){var d=!0,e=!1,f=!1,g=b.keyCode,h=Hi(a,g,!0);a.xj&&h==V["`"]&&(g=h=27);if(X[g+1E3])if(h+=1E3,2==b.location&&(h+=2E3),yi(a,h,!1,c)){if(20==g||144==g||145==g)a.eo||(c=e=!0);if(!(c||91!=g&&93!=g))for(var t=0;t=b||97<=b&&122>=b;d>>>=8;){var g=0,h=d&255;224==f||225==f?e.push(f|(c?0:128)):(42==h?a.Bd&3||a.Bd&512&&b||(g=h):29==h?a.Bd&12||(g=h):56==h?a.Bd&48||(g=h):e.push(f|(c?0:128)),g&&(c?e.unshift(g):e.push(g|128)))}for(c=0;cd.Wb.length?(d.pa()&&d.Xa("scan code 0x"+l(f)+" buffered"),d.Wb.push(f),1==d.Wb.length&&d.fa&&ai(d.fa, +k.Fb=function(a,b,c){var d=this,e=a+"-"+b;if(void 0===this.qa[e])switch(b){case "kbd":return this.qa[e]=c,c.onkeydown=function(a){return wi(d,a,!0)},c.onkeypress=function(a){a=a||window.event;a=a.which||a.keyCode;if(d.Dl){var b=d.Rb.length?d.Rb[0].Qe:0;b&&(65<=b&&90>=b||97<=b&&122>=b)&&(65<=a&&90>=a||97<=a&&122>=a)&&b!=a&&(d.Ej=!0,a=b)}(b=!X[a]||!!(d.Zb&128))||xi(d,a,!0);return b},c.onkeyup=function(a){return wi(d,a,!1)},!0;case "caps-lock":return this.qa[e]=c,c.onclick=function(){d.N&&d.N.Oc();xi(d, +1020,!0)},!0;case "num-lock":return this.qa[e]=c,c.onclick=function(){d.N&&d.N.Oc();xi(d,1144,!0)},!0;case "scroll-lock":return this.qa[e]=c,c.onclick=function(){d.N&&d.N.Oc();xi(d,1145,!0)},!0;default:var f=b.toUpperCase().replace(/-/g,"_");if(void 0!==ti[f]&&"button"==a)return this.qa[e]=c,c.onclick=function(a,b,c){return function(){a.N&&a.N.Oc();yi(a,c,!0);xi(a,c,!0)}}(this,f,ti[f]),!0;if(void 0!==ui[b])return this.wl++,this.qa[e]=c,a=function(a,b,c){return function(){xi(a,c)}}(this,b,ui[b]),b= +function(a,b,c){return function(){zi(a,c)}}(this,b,ui[b]),"ontouchstart"in window?(c.ontouchstart=a,c.ontouchend=b):(c.onmousedown=a,c.onmouseup=c.onmouseout=b),!0}return!1};function Ai(a,b,c){if(a.wl){for(var d in ri)if(b==ri[d]){b=parseInt(d,10);(d=qi[d])&&(b=d);break}for(var e in ui)if((d=ui[e]==b)||(d=b,97<=d&&122>=d&&(d-=32),d=ui[e]==d),d){(a=a.qa["key-"+e])&&void 0!==c&&(a.style.color=c?"#ffffff":"#000000",a.style.backgroundColor=c?"#000000":"#ffffff");break}}} +k.yc=function(a,b,c,d){this.ha=b;this.N=c;this.Z=d;this.fa=rb(a,"ChipSet")};function Zh(a,b){a.Xa("keyboard reset",32896);a.Wb=[170];b&&a.fa&&ai(a.fa,a.Wb[0])}function Vh(a,b,c){a.xj!==c&&(a.xj=a.Cj=c);a.ei!==b&&(a.ei=b)&&!a.Cj&&bi(a,!0);a.ei&&a.Cj&&(Zh(a,!0),a.Cj=!1)}function Wh(a){var b=0;a.Wb.length&&(b=a.Wb[0],a.fa&&ai(a.fa,b));a.pa()&&a.Xa("scan code 0x"+l(b)+" available")} +function bi(a,b){0>=1);if(b&3584){if(!1===d)return!0;d=null}null==d?d=!((c?a.Cd:a.Zb)&b):d||b&255&&(b=255);if(c){a.Cd&=~b;d&&(a.Cd|=b);c=b;var f,g;for(g in vi)d="led-"+g,e=vi[g],c&&c!=e||!(f=a.qa[d])||(f.style.backgroundColor=a.Cd&e?"#00ff00":"#000000")}else a.Zb&=~b,d&&(a.Zb|=b);return!0}}return!1} +function xi(a,b,c){if(X[b]&&a.N&&a.N.da.jb){si[b]&&a.Rb.length&&0e||(e==a.Rb.length&&(d={},d.Qe=b,d.Zb=a.Zb,Ai(a,b,!0),e++),0b.Kd){if(!b.Rg){zi(a,b.Qe);return}b.Rg=!1;c=a.qp}else c=1==b.Kd++?a.rp:a.sp;b.Bn=setTimeout(function(a){return function(){Bi(a,b)}}(a),c)}}else zi(a,b.Qe,!0)}function Hi(a,b,c){var d=b;if(65<=b&&90>=b)!(a.Zb&515)==c&&(d=b+32);else if(97<=b&&122>=b)!!(a.Zb&515)==c&&(d=b-32);else if(!!(a.Zb&3)==c){if(a=ri[b])d=a}else if(a=qi[b])d=a;return d}k.Ci=function(a){this.fi=a;a||(this.Zb&=-256)}; +function wi(a,b,c){var d=!0,e=!1,f=!1,g=b.keyCode,h=Hi(a,g,!0);a.yj&&h==V["`"]&&(g=h=27);if(X[g+1E3])if(h+=1E3,2==b.location&&(h+=2E3),yi(a,h,!1,c)){if(20==g||144==g||145==g)a.fo||(c=e=!0);if(!(c||91!=g&&93!=g))for(var t=0;t=b||97<=b&&122>=b;d>>>=8;){var g=0,h=d&255;224==f||225==f?e.push(f|(c?0:128)):(42==h?a.Cd&3||a.Cd&512&&b||(g=h):29==h?a.Cd&12||(g=h):56==h?a.Cd&48||(g=h):e.push(f|(c?0:128)),g&&(c?e.unshift(g):e.push(g|128)))}for(c=0;cd.Wb.length?(d.pa()&&d.Xa("scan code 0x"+l(f)+" buffered"),d.Wb.push(f),1==d.Wb.length&&d.fa&&ai(d.fa, f)):(20==d.Wb.length&&d.Wb.push(255),d.Xa("scan code buffer overflow")))}}Ma(function(){for(var a=db(window.document,"pcjs","keyboard"),b=0;bc.length)c=[!1,0,null,null,0,Array(Wi)];this.Z=a.Z;this.type=e[0];this.port=e[1];this.Ee=b;this.Va=e[2];this.Ub=e[3];this.ld=d||e[4];65536<=this.ld&&720896<=this.Va&&(this.Ub=Math.min(this.ld>>2,32768));this.od=c[0];this.Mc=c[1];this.Lf=c[2];this.mg=c[3];this.wc=c[4]&255;this.mi=c[4]>>8&255;this.nc=c[5];this.Mj=Wi;this.Jh=Xi;if(5==b){this.Mj=Yi;this.Jh=Zi;b=c[6];void 0===b&&(b=[!1,0,Array(20),0,3==f?0:1,0,0,Array(5), -0,0,0,Array(9),0,[this.Va,this.Ub,this.ld],Array(this.ld>>2),771,0,-1,0,-1,0,-1,0,0,0]);this.Ed=b[0];this.Xd=b[1];this.ke=b[2];this.Zi=$i;this.Oi=b[3];this.$g=b[4];this.ji=b[5];this.Zd=b[6];this.tg=b[7];this.aj=aj;this.Hj=b[8];this.Ij=b[9];this.Yd=b[10];this.Ue=b[11];this.$i=bj;this.Hb=b[12];d=b[13];"number"==typeof d&&(d=[this.Va,this.Ub,d]);this.Va=d[0];this.Ub=d[1];d=this.ld>>2;if((this.yd=b[14])&&this.yd.lengthc.length)c=[!1,0,null,null,0,Array(Wi)];this.Z=a.Z;this.type=e[0];this.port=e[1];this.Ee=b;this.Va=e[2];this.Ub=e[3];this.md=d||e[4];65536<=this.md&&720896<=this.Va&&(this.Ub=Math.min(this.md>>2,32768));this.pd=c[0];this.Nc=c[1];this.Lf=c[2];this.mg=c[3];this.xc=c[4]&255;this.ni=c[4]>>8&255;this.oc=c[5];this.Nj=Wi;this.Kh=Xi;if(5==b){this.Nj=Yi;this.Kh=Zi;b=c[6];void 0===b&&(b=[!1,0,Array(20),0,3==f?0:1,0,0,Array(5), +0,0,0,Array(9),0,[this.Va,this.Ub,this.md],Array(this.md>>2),771,0,-1,0,-1,0,-1,0,0,0]);this.Fd=b[0];this.Xd=b[1];this.ke=b[2];this.$i=$i;this.Pi=b[3];this.ah=b[4];this.ki=b[5];this.Zd=b[6];this.tg=b[7];this.bj=aj;this.Ij=b[8];this.Jj=b[9];this.Yd=b[10];this.Ue=b[11];this.aj=bj;this.Hb=b[12];d=b[13];"number"==typeof d&&(d=[this.Va,this.Ub,d]);this.Va=d[0];this.Ub=d[1];d=this.md>>2;if((this.zd=b[14])&&this.zd.length>8)} -function fj(a,b){this.Ib(a,b&255);this.Ib(a+1,b>>8&255);this.Ib(a+2,b>>16&255);this.Ib(a+3,b>>>24)}var gj=[,,function(a){a+=this.offset;return(this.X.Hb=this.oa[a])>>this.X.Gk&255},function(a){a+=this.offset;var b=a&-2;return(a&1?this.oa[b]>>8:this.oa[b])&255}];gj[16]=function(a){a+=this.offset;a=this.oa[a];for(var b=this.X.Oj&this.X.Pj,c=0,d=128;d;)(a&b)==b&&(c|=d),b>>>=1,d>>=1;return c}; -gj[512]=function(a,b){var c=a+this.offset,d;d=this.oa[c]&~this.X.sb|(b|b<<8|b<<16|b<<24)&this.X.sb;d=d&this.X.xb|this.X.Hb&~this.X.xb;this.oa[c]!=d&&(this.oa[c]=d,this.Ra=!0)};gj[1024]=function(a,b){var c=a+this.offset;b=b>>this.X.Hd|b<<8-this.X.Hd&255;var d;d=(b|b<<8|b<<16|b<<24)&this.X.Le|this.X.qf;d=d&this.X.sb|this.oa[c]&~this.X.sb;d=d&this.X.xb|this.X.Hb&~this.X.xb;this.oa[c]!=d&&(this.oa[c]=d,this.Ra=!0)}; -gj[1536]=function(a,b){var c=a+this.offset;b=b>>this.X.Hd|b<<8-this.X.Hd&255;var d;d=(b|b<<8|b<<16|b<<24)&this.X.Le|this.X.qf;d&=this.X.Hb;d=d&this.X.sb|this.oa[c]&~this.X.sb;d=d&this.X.xb|this.X.Hb&~this.X.xb;this.oa[c]!=d&&(this.oa[c]=d,this.Ra=!0)};gj[2560]=function(a,b){var c=a+this.offset;b=b>>this.X.Hd|b<<8-this.X.Hd&255;var d;d=(b|b<<8|b<<16|b<<24)&this.X.Le|this.X.qf;d|=this.X.Hb;d=d&this.X.sb|this.oa[c]&~this.X.sb;d=d&this.X.xb|this.X.Hb&~this.X.xb;this.oa[c]!=d&&(this.oa[c]=d,this.Ra=!0)}; -gj[3584]=function(a,b){var c=a+this.offset;b=b>>this.X.Hd|b<<8-this.X.Hd&255;var d;d=(b|b<<8|b<<16|b<<24)&this.X.Le|this.X.qf;d^=this.X.Hb;d=d&this.X.sb|this.oa[c]&~this.X.sb;d=d&this.X.xb|this.X.Hb&~this.X.xb;this.oa[c]!=d&&(this.oa[c]=d,this.Ra=!0)};gj[768]=function(a,b){a+=this.offset;var c,d=a&-2;c=this.X.sb&(d==a?16711935:-16711936);c=(b|b<<8|b<<16|b<<24)&c|this.oa[d]&~c;c=c&this.X.xb|this.X.Hb&~this.X.xb;this.oa[d]!=c&&(this.oa[d]=c,this.Ra=!0)}; +function fj(a,b){this.Ib(a,b&255);this.Ib(a+1,b>>8&255);this.Ib(a+2,b>>16&255);this.Ib(a+3,b>>>24)}var gj=[,,function(a){a+=this.offset;return(this.X.Hb=this.oa[a])>>this.X.Hk&255},function(a){a+=this.offset;var b=a&-2;return(a&1?this.oa[b]>>8:this.oa[b])&255}];gj[16]=function(a){a+=this.offset;a=this.oa[a];for(var b=this.X.Pj&this.X.Qj,c=0,d=128;d;)(a&b)==b&&(c|=d),b>>>=1,d>>=1;return c}; +gj[512]=function(a,b){var c=a+this.offset,d;d=this.oa[c]&~this.X.sb|(b|b<<8|b<<16|b<<24)&this.X.sb;d=d&this.X.xb|this.X.Hb&~this.X.xb;this.oa[c]!=d&&(this.oa[c]=d,this.Ra=!0)};gj[1024]=function(a,b){var c=a+this.offset;b=b>>this.X.Id|b<<8-this.X.Id&255;var d;d=(b|b<<8|b<<16|b<<24)&this.X.Le|this.X.qf;d=d&this.X.sb|this.oa[c]&~this.X.sb;d=d&this.X.xb|this.X.Hb&~this.X.xb;this.oa[c]!=d&&(this.oa[c]=d,this.Ra=!0)}; +gj[1536]=function(a,b){var c=a+this.offset;b=b>>this.X.Id|b<<8-this.X.Id&255;var d;d=(b|b<<8|b<<16|b<<24)&this.X.Le|this.X.qf;d&=this.X.Hb;d=d&this.X.sb|this.oa[c]&~this.X.sb;d=d&this.X.xb|this.X.Hb&~this.X.xb;this.oa[c]!=d&&(this.oa[c]=d,this.Ra=!0)};gj[2560]=function(a,b){var c=a+this.offset;b=b>>this.X.Id|b<<8-this.X.Id&255;var d;d=(b|b<<8|b<<16|b<<24)&this.X.Le|this.X.qf;d|=this.X.Hb;d=d&this.X.sb|this.oa[c]&~this.X.sb;d=d&this.X.xb|this.X.Hb&~this.X.xb;this.oa[c]!=d&&(this.oa[c]=d,this.Ra=!0)}; +gj[3584]=function(a,b){var c=a+this.offset;b=b>>this.X.Id|b<<8-this.X.Id&255;var d;d=(b|b<<8|b<<16|b<<24)&this.X.Le|this.X.qf;d^=this.X.Hb;d=d&this.X.sb|this.oa[c]&~this.X.sb;d=d&this.X.xb|this.X.Hb&~this.X.xb;this.oa[c]!=d&&(this.oa[c]=d,this.Ra=!0)};gj[768]=function(a,b){a+=this.offset;var c,d=a&-2;c=this.X.sb&(d==a?16711935:-16711936);c=(b|b<<8|b<<16|b<<24)&c|this.oa[d]&~c;c=c&this.X.xb|this.X.Hb&~this.X.xb;this.oa[d]!=c&&(this.oa[d]=c,this.Ra=!0)}; gj[4096]=function(a){a+=this.offset;var b=this.oa[a]&~this.X.sb|this.X.Hb&this.X.sb;this.oa[a]!=b&&(this.oa[a]=b,this.Ra=!0)};gj[8192]=function(a,b){var c=a+this.offset,d=Si[b&15],d=d&this.X.sb|this.oa[c]&~this.X.sb,d=d&this.X.xb|this.X.Hb&~this.X.xb;this.oa[c]!=d&&(this.oa[c]=d,this.Ra=!0)};gj[24576]=function(a,b){var c=a+this.offset,d=Si[b&15],d=d&this.X.Hb,d=d&this.X.sb|this.oa[c]&~this.X.sb,d=d&this.X.xb|this.X.Hb&~this.X.xb;this.oa[c]!=d&&(this.oa[c]=d,this.Ra=!0)}; gj[40960]=function(a,b){var c=a+this.offset,d=Si[b&15],d=d|this.X.Hb,d=d&this.X.sb|this.oa[c]&~this.X.sb,d=d&this.X.xb|this.X.Hb&~this.X.xb;this.oa[c]!=d&&(this.oa[c]=d,this.Ra=!0)};gj[57344]=function(a,b){var c=a+this.offset,d=Si[b&15],d=d^this.X.Hb,d=d&this.X.sb|this.oa[c]&~this.X.sb,d=d&this.X.xb|this.X.Hb&~this.X.xb;this.oa[c]!=d&&(this.oa[c]=d,this.Ra=!0)}; -function hj(a){var b=[];if(void 0!==a.Ee){b[0]=a.od;b[1]=a.Mc;b[2]=a.Lf;b[3]=a.mg;b[4]=a.wc|a.mi<<8;b[5]=a.nc;if(5==a.Ee){var c=[];c[0]=a.Ed;c[1]=a.Xd;c[2]=a.ke;c[3]=a.Oi;c[4]=a.$g;c[5]=a.ji;c[6]=a.Zd;c[7]=a.tg;c[8]=a.Hj;c[9]=a.Ij;c[10]=a.Yd;c[11]=a.Ue;c[12]=a.Hb;c[13]=[a.Va,a.Ub,a.ld];var d;a:if(d=a.yd){var e=0,f=[];if(void 0!==d[0])for(var g=0;2>g;g++)for(var h=g;h>1;f[e++]=t;h=r}if(f.lengtha&&(a=0);for(var c="",d=0;8>d;d++){for(var f=ea(b.Va+a)+":",J=0;8>J&&ag;g++)for(var h=g;h>1;f[e++]=t;h=r}if(f.lengtha&&(a=0);for(var c="",d=0;8>d;d++){for(var f=ea(b.Va+a)+":",J=0;8>J&&a>1&255,d=d>>8&-129,d>>4==(d&15)&&(d^=15)):(c=d&255,d=(d&256?7:112)|8&d>>8),Zb(this.ha,b,c|d<<8);ad(this,!0)}};function pj(a){a.ga.$g&1?(a.kd=a.ij,a.Lb=a.ga):(a.kd=a.ga,a.Lb=a.Wh)}k.save=function(){var a=new Ee(this);a.set(0,hj(this.ij));a.set(1,hj(this.Wh));a.set(2,[this.Ie,this.Id,this.de]);a.set(3,hj(this.ga));return a.data()}; -k.restore=function(a){var b=a[2];this.Ie=b[0];this.Id=b[1];this.de=b[2];this.Fa=null;this.kd=this.ij=new Ui(this,1,a[0]);this.Lb=this.Wh=new Ui(this,3,a[1]);this.ga=new Ui(this,5,a[3],this.ld);this.ga.od&&pj(this);qj(this);if(!sj(this))return!1;tj(this);return!0}; -k.Ap=function(a,b,c){if(c)this.Ea("Unable to load font ROM image (error "+c+")");else{try{var d=eval("("+b+")");if(!d.length){ya("Empty font ROM image: "+a);return}if(1==d.length){ya(d[0]);return}if(8192==d.length)gi(this,d,[0,6144]);else{this.Ea("Unrecognized font data length ("+d.length+")");return}}catch(e){this.Ea("Font ROM data error: "+e.message);return}jb(this)}}; -function uj(a,b){if(1==b)return a.Od[0]=Oi[0],a.Od[1]=Oi[7],a.Od;if(2==b){var c=a.Fa.Lf;if(a.Fa===a.ga){var d=a.ga.ke[0],c=d&7;d&16&&(c|=8);18!=a.ga.ke[1]&&(c|=32)}a.Od[0]=Oi[c&15];c=c&32?Qi:Pi;for(d=0;dqa||!T?qa:8,Qa=ed.createImageData(r.tc,r.uc),Z=0;256>Z;Z++){for(W=0;W< -qa;W++)for(var sa=r.sg&&E&1&&W>=qa-2,va=Ia[W>(8<=ja&&176<=Z&&223>=Z?7:ja)?C:ra;xj(Qa,Hc,fd,gd);M&&xj(Qa,Hc+1,fd,gd)}ed.putImageData(Qa,(Z&15)*r.tc,(Z>>4)*r.uc)}r.Ef[E]="#"+l(C[0])+l(C[1])+l(C[2]);r.hl[E]=C;r.Ti[E]=kc;r=!0}}a.ne[b]=J;return r}function yj(a){0a.cf&&(a.cf=0):a.cf=-1} -function tj(a){if(a.ac){for(var b=10;15>=b;b++)if(null==a.Fa.nc[b])return;var c=a.Fa.nc[10],b=c&31,d=a.Fa.nc[11]&31,e=a.Fa.nc[9]&31,f=!1;a.Fa===a.ga&&(f=!0,7!=e||4!=b||d||(d=7));if(c&32||b>d&&!f||b>e)zj(a);else{c=a.Fa.nc[15]+((a.Fa.nc[14]&63)<<8);a.Wc!=c&&(zj(a),a.Wc=c);d=d-b+1;if(a.En!=b||a.zl!=d)a.En=b,a.zl=d;a.Ae=e+1;yj(a)}}} -function zj(a){if(0<=a.Wc){if(void 0!==a.oc){var b=a.oc[a.Wc];if(b&131072){var b=b&-131073,c=a.Wc%a.Mb,d=Math.floor(a.Wc/a.Mb);a.ac&&a.ne[a.ac]&&(a.Mf&&Aj(a,c,d,b,a.Mf),Aj(a,c,d,b));a.oc[a.Wc]=b}}a.Wc=-1}} -function Bj(a){var b;a=a.Fa;var c=a.Ue[5];if(null!=c){b=2;var d=512,e=a.Ue[3]&31;switch(c&3){case 0:if(e){d=1024;switch(e&24){case 8:d=1536;break;case 16:d=2560;break;case 24:d=3584}a.Hd=e&7}break;case 1:d=4096;break;case 2:switch(e&24){default:d=8192;break;case 8:d=24576;break;case 16:d=40960;break;case 24:d=57344}}c&8&&(b=16);c&16&&(b|=1,d|=256);b|=d}return b}k.Pe=function(a){var b=this.Fa;null!=a&&b&&a!=b.qi&&(b.Li(a),this.ha.Li(b.Va,b.Ub,b.Gj()))}; -function sj(a,b){var c,d=a.de,e=a.Fa;if(e)if(1==e.Ee)d=Ji;else if(5==e.Ee){var d=null,f=e.ld>>2,g=32768f&&(d=c?13:14):c&&(d-=2));c=Bj(a)}}else e.Mc&8&&(e.Mc&2?(d=e.Mc&16?6:5,e.Mc&4||--d):(d=e.Mc&1?3:1,e.Mc&4&&--d)); -else a.de=null,null==d&&(d=a.Id);if(!rj(a,d,b))return!1;a.Pe(c);return!0} -function rj(a,b,c){if(null!=b&&(b!=a.de||c)){a.Nn=0;a.de=b;b=a.Fa||(b==Ji?a.kd:a.Lb);if(b!=a.Fa||b.Va!=a.Va||b.Ub!=a.Ub){zj(a);if(a.Va){if(!Xb(a.ha,a.Va,a.Ub))return!1;a.Fa&&(a.Fa.od=!1)}a.Fa=b;b.od=!0;a.Va=b.Va;a.Ub=b.Ub;if(!Vb(a.ha,b.Va,b.Ub,3,b===a.ga?b:null))return!1}a.ac=0;a.Mb=a.si;a.zc=a.Tj;a.Nj=Ii[Ji][2];b=0;var d=Ii[a.de];d&&(a.Mb=d[0],a.zc=d[1],a.Nj=d[2],b=d[3]||0,a.ac=d[4],4==a.Ie&&a.Fa===a.ga&&3==a.ac&&(7==a.ga.nc[9]?a.zc=43:a.ac=5));a.bm=a.Mb*a.zc;a.ri=a.bm/a.Nj;a.jj=(a.ri<<1)+b;a.xl= -b?a.jj+b>>1:0;13<=a.de&&(a.ri<<=1);a.ne.length&&(a.Ud=Math.floor(a.Td/a.Mb),a.Vd=Math.floor(a.Be/a.zc),a.ac?(b=a.ne[a.ac],d=a.ne[a.ac<<1],a.ho&&80==a.Mb?d&&a.Ud>=3*d.tc>>2&&(a.ac<<=1,b=d):(d&&a.Ud>=d.tc&&(a.ac<<=1,b=d),b&&(a.Ud=b.tc,a.Vd=b.uc)),a.Ng=a.Og=0,b&&(a.Ng=a.Mb*b.tc,a.Og=a.zc*b.uc)):(a.Ud=a.Vd=1,a.Ng=a.Mb,a.Og=a.zc),a.ni=a.nd.createImageData(a.Ng,a.Og),a.Jf=window.document.createElement("canvas"),a.Jf.width=a.Ng,a.Jf.height=a.Og,a.Mf=a.Jf.getContext("2d"),a.Yk=a.Zk=0,a.oj=a.Td,a.pj=a.Be, -b=a.Td-a.Mb*a.Ud,d=a.Be-a.zc*a.Vd,0>1,a.oj-=b),0>1,a.pj-=d),b||d)&&(a.nd.fillStyle=a.Hg.style.backgroundColor,a.nd.fillRect(0,0,a.Td,a.Be));!1!==c?ad(a,!0):Cj(a,!0)}return!0}function xj(a,b,c,d){b=(b+c*a.width)*d.length;a.data[b]=d[0];a.data[b+1]=d[1];a.data[b+2]=d[2];a.data[b+3]=d[3]}function Cj(a,b){var c;if(b){if(c=a.ri,void 0===a.oc||a.oc.length!=c)a.oc=Array(c)}else{if(void 0===a.oc)return;c=a.oc.length}for(var d=0;d>8;d=g&15;var h=a.ne[a.ac];h.sg&&(d=h.sg[d]);var t=g>>4&15;h.sg&&(t=h.sg[t]);e?(b*=h.tc,c*=h.uc,e.fillStyle=h.Ef[t],e.fillRect(b,c,h.tc,h.uc)):(b=b*a.Ud+a.Yk,c=c*a.Vd+a.Zk,a.nd.fillStyle=h.Ef[t],a.nd.fillRect(b,c,a.Ud,a.Vd));g&256&&(t=(f&15)*h.tc,f=(f>>4)*h.uc,e?e.drawImage(h.Ti[d],t,f,h.tc,h.uc,b,c,h.tc,h.uc):a.nd.drawImage(h.Ti[d],t,f,h.tc,h.uc,b,c,a.Ud,a.Vd));g&512&&(f=a.En,g=a.zl,e?(a.Ae&&a.Ae!==h.uc&&(f=Math.floor(f*h.uc/a.Ae),g=Math.floor(g*h.uc/a.Ae)), -e.fillStyle=h.Ef[d],e.fillRect(b,c+f,h.tc,g)):(a.Ae&&a.Ae!==a.Vd&&(f=Math.floor(f*a.Vd/a.Ae),g=Math.floor(g*a.Vd/a.Ae)),a.nd.fillStyle=h.Ef[d],a.nd.fillRect(b,c+f,a.Ud,g)))} -function ad(a,b){if(a.da.$b){var c=!1;a.Fa&&(a.Fa===a.ga?a.ga.Xd&32&&(c=!0):a.Fa.Mc&8&&(c=!0));if(c||b){if(b)Cj(a,!0);else if(void 0===a.oc)return;var d=!1;!(b||++a.Nn&15)&&0<=a.cf&&(a.cf++,d=!0);var e=0,f=a.bm,c=a.Fa.Va,g=c+a.Fa.Ub,h=(a.Fa.nc[12]<<8)+a.Fa.nc[13];a.ac&&(h<<=1);var c=c+h,t=a.jj;c+t>g&&(t=g-c,0>t&&(t=0));g=c+t;if(h=!b){for(var h=a.ha,r=!0,B=c>>>h.Ga;0a.Wc)return;e=a.Wc;f= -e+1}}if(a.ac){if(a.ne[a.ac]){d=0;h=a.bf=0;t=1048575;a.Fa.Mc&32&&(h=32768,t&=~h,a.cf&2||(t&=-65537));for(c+=e<<1;c>8|(J&255)<<8;C=h;var qa=16;B>=t))>>(qa-=t);xj(a.ni,B++,E,r[ra])}B>N&&(N=B);E=S&&(S=E+1)}e+=2;g++;if(B>=a.Mb){B=0;E+=2;if(E>a.zc)break;E==a.zc&&(E=1,e=c+a.xl)}}MT;T++)S= -Ti[N&-2139062144]||0,xj(a.ni,h++,t,g[S]),N<<=1;h>B&&(B=h);t=M&&(M=t+1)}e++;if(h>=a.Mb&&(h=0,++t>a.zc))break}r>2),c=this.ga.Oi&-17|(this.Lh&1<f&&(f=0);f%b.Qj>b.up&&(d|=1);f%=b.em;f>b.wp&&(d|=8);b.Xj=e-f;b===a.ga?(d|=b.mg&48^48,b.Ed=!1):d=(b.mg^=9)|240;b.mg=d;p(a,b.port+6,null,c,b===a.ga?"STATUS1":"STATUS",d);return d} -var jj={948:Y.prototype.To,949:Y.prototype.So,952:Y.prototype.Uo,954:Y.prototype.Vo,980:Y.prototype.Bo,981:Y.prototype.Ao,984:Y.prototype.Co,985:Y.prototype.zo,986:Y.prototype.Do},kj={948:Y.prototype.hq,949:Y.prototype.gq,952:Y.prototype.iq,980:Y.prototype.Rp,981:Y.prototype.Qp,984:Y.prototype.Sp,985:Y.prototype.Pp},lj={960:Y.prototype.Wl,961:Y.prototype.Wl,962:Y.prototype.ep,964:Y.prototype.dp,965:Y.prototype.cp,970:Y.prototype.Mo,972:Y.prototype.Lo,974:Y.prototype.Ko,975:Y.prototype.Jo},mj={954:Y.prototype.jn, -960:Y.prototype.hn,961:Y.prototype.hn,962:Y.prototype.kq,964:Y.prototype.rq,965:Y.prototype.qq,970:Y.prototype.cq,972:Y.prototype.bq,974:Y.prototype.aq,975:Y.prototype.$p,986:Y.prototype.jn}; +k.reset=function(){var a=!0,b=0;this.fa&&(b=gh(this.fa));var c=!1;if(this.za)switch(this.za){case "ega":var c=!0,d=Li[this.Mh];d&&(b=d[0]);b||(b=4);break;case "mda":b=3;break;default:b=2}this.Ie!==b&&(this.Ie=b,a=!0);this.Fa=null;this.ld=this.jj=new Ui(this,1);this.Lb=this.Xh=new Ui(this,3);c?(this.ga=new Ui(this,5,null,this.md),pj(this)):this.ga=new Ui;qj(this);this.de=null;this.Jd=3==b?Ji:3;this.cf=this.Xc=-1;this.bf=0;rj(this,this.Jd);if(this.Fa.Va&&a){a=this.Fa.Va+this.kj;for(b=this.Fa.Va;b>1&255,d=d>>8&-129,d>>4==(d&15)&&(d^=15)):(c=d&255,d=(d&256?7:112)|8&d>>8),Zb(this.ha,b,c|d<<8);ad(this,!0)}};function pj(a){a.ga.ah&1?(a.ld=a.jj,a.Lb=a.ga):(a.ld=a.ga,a.Lb=a.Xh)}k.save=function(){var a=new Ee(this);a.set(0,hj(this.jj));a.set(1,hj(this.Xh));a.set(2,[this.Ie,this.Jd,this.de]);a.set(3,hj(this.ga));return a.data()}; +k.restore=function(a){var b=a[2];this.Ie=b[0];this.Jd=b[1];this.de=b[2];this.Fa=null;this.ld=this.jj=new Ui(this,1,a[0]);this.Lb=this.Xh=new Ui(this,3,a[1]);this.ga=new Ui(this,5,a[3],this.md);this.ga.pd&&pj(this);qj(this);if(!sj(this))return!1;tj(this);return!0}; +k.Bp=function(a,b,c){if(c)this.Ca("Unable to load font ROM image (error "+c+")");else{try{var d=eval("("+b+")");if(!d.length){ya("Empty font ROM image: "+a);return}if(1==d.length){ya(d[0]);return}if(8192==d.length)gi(this,d,[0,6144]);else{this.Ca("Unrecognized font data length ("+d.length+")");return}}catch(e){this.Ca("Font ROM data error: "+e.message);return}jb(this)}}; +function uj(a,b){if(1==b)return a.Od[0]=Oi[0],a.Od[1]=Oi[7],a.Od;if(2==b){var c=a.Fa.Lf;if(a.Fa===a.ga){var d=a.ga.ke[0],c=d&7;d&16&&(c|=8);18!=a.ga.ke[1]&&(c|=32)}a.Od[0]=Oi[c&15];c=c&32?Qi:Pi;for(d=0;dqa||!T?qa:8,Qa=ed.createImageData(r.uc,r.vc),Z=0;256>Z;Z++){for(W=0;W< +qa;W++)for(var sa=r.sg&&E&1&&W>=qa-2,va=Ia[W>(8<=ja&&176<=Z&&223>=Z?7:ja)?C:ra;xj(Qa,Hc,fd,gd);M&&xj(Qa,Hc+1,fd,gd)}ed.putImageData(Qa,(Z&15)*r.uc,(Z>>4)*r.vc)}r.Ef[E]="#"+l(C[0])+l(C[1])+l(C[2]);r.il[E]=C;r.Ui[E]=kc;r=!0}}a.ne[b]=J;return r}function yj(a){0a.cf&&(a.cf=0):a.cf=-1} +function tj(a){if(a.ac){for(var b=10;15>=b;b++)if(null==a.Fa.oc[b])return;var c=a.Fa.oc[10],b=c&31,d=a.Fa.oc[11]&31,e=a.Fa.oc[9]&31,f=!1;a.Fa===a.ga&&(f=!0,7!=e||4!=b||d||(d=7));if(c&32||b>d&&!f||b>e)zj(a);else{c=a.Fa.oc[15]+((a.Fa.oc[14]&63)<<8);a.Xc!=c&&(zj(a),a.Xc=c);d=d-b+1;if(a.Fn!=b||a.Al!=d)a.Fn=b,a.Al=d;a.Ae=e+1;yj(a)}}} +function zj(a){if(0<=a.Xc){if(void 0!==a.pc){var b=a.pc[a.Xc];if(b&131072){var b=b&-131073,c=a.Xc%a.Mb,d=Math.floor(a.Xc/a.Mb);a.ac&&a.ne[a.ac]&&(a.Mf&&Aj(a,c,d,b,a.Mf),Aj(a,c,d,b));a.pc[a.Xc]=b}}a.Xc=-1}} +function Bj(a){var b;a=a.Fa;var c=a.Ue[5];if(null!=c){b=2;var d=512,e=a.Ue[3]&31;switch(c&3){case 0:if(e){d=1024;switch(e&24){case 8:d=1536;break;case 16:d=2560;break;case 24:d=3584}a.Id=e&7}break;case 1:d=4096;break;case 2:switch(e&24){default:d=8192;break;case 8:d=24576;break;case 16:d=40960;break;case 24:d=57344}}c&8&&(b=16);c&16&&(b|=1,d|=256);b|=d}return b}k.Pe=function(a){var b=this.Fa;null!=a&&b&&a!=b.ri&&(b.Mi(a),this.ha.Mi(b.Va,b.Ub,b.Hj()))}; +function sj(a,b){var c,d=a.de,e=a.Fa;if(e)if(1==e.Ee)d=Ji;else if(5==e.Ee){var d=null,f=e.md>>2,g=32768f&&(d=c?13:14):c&&(d-=2));c=Bj(a)}}else e.Nc&8&&(e.Nc&2?(d=e.Nc&16?6:5,e.Nc&4||--d):(d=e.Nc&1?3:1,e.Nc&4&&--d)); +else a.de=null,null==d&&(d=a.Jd);if(!rj(a,d,b))return!1;a.Pe(c);return!0} +function rj(a,b,c){if(null!=b&&(b!=a.de||c)){a.On=0;a.de=b;b=a.Fa||(b==Ji?a.ld:a.Lb);if(b!=a.Fa||b.Va!=a.Va||b.Ub!=a.Ub){zj(a);if(a.Va){if(!Xb(a.ha,a.Va,a.Ub))return!1;a.Fa&&(a.Fa.pd=!1)}a.Fa=b;b.pd=!0;a.Va=b.Va;a.Ub=b.Ub;if(!Vb(a.ha,b.Va,b.Ub,3,b===a.ga?b:null))return!1}a.ac=0;a.Mb=a.ti;a.Ac=a.Uj;a.Oj=Ii[Ji][2];b=0;var d=Ii[a.de];d&&(a.Mb=d[0],a.Ac=d[1],a.Oj=d[2],b=d[3]||0,a.ac=d[4],4==a.Ie&&a.Fa===a.ga&&3==a.ac&&(7==a.ga.oc[9]?a.Ac=43:a.ac=5));a.cm=a.Mb*a.Ac;a.si=a.cm/a.Oj;a.kj=(a.si<<1)+b;a.yl= +b?a.kj+b>>1:0;13<=a.de&&(a.si<<=1);a.ne.length&&(a.Ud=Math.floor(a.Td/a.Mb),a.Vd=Math.floor(a.Be/a.Ac),a.ac?(b=a.ne[a.ac],d=a.ne[a.ac<<1],a.io&&80==a.Mb?d&&a.Ud>=3*d.uc>>2&&(a.ac<<=1,b=d):(d&&a.Ud>=d.uc&&(a.ac<<=1,b=d),b&&(a.Ud=b.uc,a.Vd=b.vc)),a.Og=a.Pg=0,b&&(a.Og=a.Mb*b.uc,a.Pg=a.Ac*b.vc)):(a.Ud=a.Vd=1,a.Og=a.Mb,a.Pg=a.Ac),a.oi=a.od.createImageData(a.Og,a.Pg),a.Jf=window.document.createElement("canvas"),a.Jf.width=a.Og,a.Jf.height=a.Pg,a.Mf=a.Jf.getContext("2d"),a.Zk=a.$k=0,a.pj=a.Td,a.qj=a.Be, +b=a.Td-a.Mb*a.Ud,d=a.Be-a.Ac*a.Vd,0>1,a.pj-=b),0>1,a.qj-=d),b||d)&&(a.od.fillStyle=a.Hg.style.backgroundColor,a.od.fillRect(0,0,a.Td,a.Be));!1!==c?ad(a,!0):Cj(a,!0)}return!0}function xj(a,b,c,d){b=(b+c*a.width)*d.length;a.data[b]=d[0];a.data[b+1]=d[1];a.data[b+2]=d[2];a.data[b+3]=d[3]}function Cj(a,b){var c;if(b){if(c=a.si,void 0===a.pc||a.pc.length!=c)a.pc=Array(c)}else{if(void 0===a.pc)return;c=a.pc.length}for(var d=0;d>8;d=g&15;var h=a.ne[a.ac];h.sg&&(d=h.sg[d]);var t=g>>4&15;h.sg&&(t=h.sg[t]);e?(b*=h.uc,c*=h.vc,e.fillStyle=h.Ef[t],e.fillRect(b,c,h.uc,h.vc)):(b=b*a.Ud+a.Zk,c=c*a.Vd+a.$k,a.od.fillStyle=h.Ef[t],a.od.fillRect(b,c,a.Ud,a.Vd));g&256&&(t=(f&15)*h.uc,f=(f>>4)*h.vc,e?e.drawImage(h.Ui[d],t,f,h.uc,h.vc,b,c,h.uc,h.vc):a.od.drawImage(h.Ui[d],t,f,h.uc,h.vc,b,c,a.Ud,a.Vd));g&512&&(f=a.Fn,g=a.Al,e?(a.Ae&&a.Ae!==h.vc&&(f=Math.floor(f*h.vc/a.Ae),g=Math.floor(g*h.vc/a.Ae)), +e.fillStyle=h.Ef[d],e.fillRect(b,c+f,h.uc,g)):(a.Ae&&a.Ae!==a.Vd&&(f=Math.floor(f*a.Vd/a.Ae),g=Math.floor(g*a.Vd/a.Ae)),a.od.fillStyle=h.Ef[d],a.od.fillRect(b,c+f,a.Ud,g)))} +function ad(a,b){if(a.da.$b){var c=!1;a.Fa&&(a.Fa===a.ga?a.ga.Xd&32&&(c=!0):a.Fa.Nc&8&&(c=!0));if(c||b){if(b)Cj(a,!0);else if(void 0===a.pc)return;var d=!1;!(b||++a.On&15)&&0<=a.cf&&(a.cf++,d=!0);var e=0,f=a.cm,c=a.Fa.Va,g=c+a.Fa.Ub,h=(a.Fa.oc[12]<<8)+a.Fa.oc[13];a.ac&&(h<<=1);var c=c+h,t=a.kj;c+t>g&&(t=g-c,0>t&&(t=0));g=c+t;if(h=!b){for(var h=a.ha,r=!0,B=c>>>h.Ga;0a.Xc)return;e=a.Xc;f= +e+1}}if(a.ac){if(a.ne[a.ac]){d=0;h=a.bf=0;t=1048575;a.Fa.Nc&32&&(h=32768,t&=~h,a.cf&2||(t&=-65537));for(c+=e<<1;c>8|(J&255)<<8;C=h;var qa=16;B>=t))>>(qa-=t);xj(a.oi,B++,E,r[ra])}B>N&&(N=B);E=S&&(S=E+1)}e+=2;g++;if(B>=a.Mb){B=0;E+=2;if(E>a.Ac)break;E==a.Ac&&(E=1,e=c+a.yl)}}MT;T++)S= +Ti[N&-2139062144]||0,xj(a.oi,h++,t,g[S]),N<<=1;h>B&&(B=h);t=M&&(M=t+1)}e++;if(h>=a.Mb&&(h=0,++t>a.Ac))break}r>2),c=this.ga.Pi&-17|(this.Mh&1<f&&(f=0);f%b.Rj>b.vp&&(d|=1);f%=b.fm;f>b.xp&&(d|=8);b.Yj=e-f;b===a.ga?(d|=b.mg&48^48,b.Fd=!1):d=(b.mg^=9)|240;b.mg=d;p(a,b.port+6,null,c,b===a.ga?"STATUS1":"STATUS",d);return d} +var jj={948:Y.prototype.Uo,949:Y.prototype.To,952:Y.prototype.Vo,954:Y.prototype.Wo,980:Y.prototype.Co,981:Y.prototype.Bo,984:Y.prototype.Do,985:Y.prototype.Ao,986:Y.prototype.Eo},kj={948:Y.prototype.iq,949:Y.prototype.hq,952:Y.prototype.jq,980:Y.prototype.Sp,981:Y.prototype.Rp,984:Y.prototype.Tp,985:Y.prototype.Qp},lj={960:Y.prototype.Xl,961:Y.prototype.Xl,962:Y.prototype.fp,964:Y.prototype.ep,965:Y.prototype.dp,970:Y.prototype.No,972:Y.prototype.Mo,974:Y.prototype.Lo,975:Y.prototype.Ko},mj={954:Y.prototype.kn, +960:Y.prototype.jn,961:Y.prototype.jn,962:Y.prototype.lq,964:Y.prototype.sq,965:Y.prototype.rq,970:Y.prototype.dq,972:Y.prototype.cq,974:Y.prototype.bq,975:Y.prototype.aq,986:Y.prototype.kn}; Ma(function(){for(var a=db(window.document,"pcjs","video"),b=0;bMissing <canvas> support; try a new web browser.";break}e.setAttribute("class","pcjs-canvas");e.setAttribute("width",d.screenWidth);e.setAttribute("height",d.screenHeight);e.style.backgroundColor=d.screenColor;e.style.height="auto";0<=(window?window.navigator.userAgent:"").indexOf("MSIE")&&(c.onresize=function(a,b,c,d){return function(){b.style.height= (a.clientWidth*d/c|0)+"px"}}(c,e,d.screenWidth,d.screenHeight),c.onresize());c.appendChild(e);var f=window.document.createElement("textarea");Ea("iOS")&&(f.setAttribute("autocapitalize","off"),f.setAttribute("autocorrect","off"));c.appendChild(f);var g=e.getContext("2d"),d=new Y(d,e,g,f,c);cb(d,c)}}); -function Ij(a){this.Sl=a.adapter;switch(this.Sl){case 1:this.Kk=1016;this.ih=4;break;case 2:this.Kk=760;this.ih=3;break;default:ya("Unrecognized serial adapter #"+this.Sl);return}this.ye=null;n.call(this,"SerialPort",a,Ij,2097152);var b=a.binding,c;a=Jj;b&&(void 0===c&&(c="Panel"),(c=ab(c,this.id))&&(b=c.qa[b])&&this.Fb(null,a,b))}Ya(n,Ij);var Jj="buffer";k=Ij.prototype;k.kl=function(a,b){return a==this.Xg?(this.He=b,this):null}; -k.Fb=function(a,b,c){var d=this;switch(b){case Jj:return this.qa[b]=this.ye=c,c.onkeydown=function(a){a=a||window.event;var b=a.keyCode;8===b&&(a.preventDefault&&a.preventDefault(),Kj(d,[b]))},c.onkeypress=function(a){a=a||window.event;Kj(d,[a.which||a.keyCode])},!0}return!1};k.xc=function(a,b,c,d){this.ha=b;this.N=c;this.Z=d;this.fa=rb(a,"ChipSet");bc(b,this,Lj,this.Kk);fc(b,this,Mj,this.Kk);jb(this)};k.fc=function(a,b){if(!b)if(!a||!this.restore)this.reset();else if(!this.restore(a))return!1;return!0}; -k.ec=function(a){return a&&this.save?this.save():!0};k.reset=function(){this.Fe()};k.save=function(){var a=new Ee(this),b=0,c=[];c[b++]=this.fj;c[b++]=this.ql;c[b++]=this.zf;c[b++]=this.Mh;c[b++]=this.se;c[b++]=this.jd;c[b++]=this.Ad;c[b++]=this.Tc;c[b++]=this.ol;c[b]=this.vg;a.set(0,c);return a.data()};k.restore=function(a){return this.Fe(a[0])}; -k.Fe=function(a){var b=0;void 0===a&&(a=[0,0,384,0,1,0,0,96,48,[]]);this.fj=a[b++];this.ql=a[b++];this.zf=a[b++];this.Mh=a[b++];this.se=a[b++];this.jd=a[b++];this.Ad=a[b++];this.Tc=a[b++];this.ol=a[b++];this.vg=a[b];return!0};function Kj(a,b){a.vg=a.vg.concat(b);Nj(a)}function Nj(a){0>8:this.Mh;p(this,a,null,b,this.jd&128?"DLM":"IER",c);return c};k.Oo=function(a,b){var c=this.se;p(this,a,null,b,"IIR",c);return c};k.Po=function(a,b){var c=this.jd;p(this,a,null,b,"LCR",c);return c};k.Ro=function(a,b){var c=this.Ad;p(this,a,null,b,"MCR",c);return c}; -k.Qo=function(a,b){var c=this.Tc;p(this,a,null,b,"LSR",c);return c};k.Xo=function(a,b){var c=this.ol;p(this,a,null,b,"MSR",c);return c};k.sq=function(a,b,c){p(this,a,b,c,this.jd&128?"DLL":"THR");this.jd&128?this.zf=this.zf&-256|b:(this.ql=b,this.Tc&=-97,this.ye?(13!=b&&(8==b?this.ye.value=this.ye.value.slice(0,-1):(this.ye.value+=String.fromCharCode(b),this.ye.scrollTop=this.ye.scrollHeight)),a=!0):a=!1,a&&(this.Tc|=96))}; -k.dq=function(a,b,c){p(this,a,b,c,this.jd&128?"DLM":"IER");this.jd&128?this.zf=this.zf&255|b<<8:this.Mh=b};k.eq=function(a,b,c){p(this,a,b,c,"LCR");this.jd=b}; -k.fq=function(a,b,c){var d=this.Ad;p(this,a,b,c,"MCR");this.Ad=b;this.He&&(d^b)&3&&(a=this.He,b=this.Ad,(c=3==(b&3))?a.od||(d=!1,a.Ad&2||(a.reset(),a.Xa("serial mouse reset"),d=!0),a.Ad&1||(a.Xa("serial mouse ID requested"),d=!0),d&&(Kj(a.Kg,[77,77]),a.Xa("serial mouse ID sent")),Oj(a,a.Ia),a.setActive(c)):a.od&&(a.Xa("serial mouse inactive"),Pj(a.Ia),a.setActive(c)),a.Ad=b)}; -var Lj={0:Ij.prototype.bp,1:Ij.prototype.No,2:Ij.prototype.Oo,3:Ij.prototype.Po,4:Ij.prototype.Ro,5:Ij.prototype.Qo,6:Ij.prototype.Xo},Mj={0:Ij.prototype.sq,1:Ij.prototype.dq,3:Ij.prototype.eq,4:Ij.prototype.fq};Ma(function(){for(var a=db(window.document,"pcjs","serial"),b=0;bthis.ie||0>this.je)this.ie=a.clientX,this.je=a.clientY;this.fi?(this.Bf=a.movementX||a.mozMovementX||a.webkitMovementX||0,this.Cf=a.movementY||a.mozMovementY||a.webkitMovementY||0):(this.Bf=a.clientX-this.ie,this.Cf=a.clientY-this.je);(this.Bf||this.Cf)&&Rj(this,null,a.clientX,a.clientY);this.ie=a.clientX;this.je=a.clientY}}; -k.lj=function(a,b){if(this.od&&this.N&&this.N.da.jb){var c;!(c=!1!==this.fi)&&(c=this.video)&&(c=this.video,c=c.ao?c.mf(!0):!1);c||(this.fi=null);switch(a){case 0:this.bi!=b&&(this.bi=b,Rj(this,"mouse button1 "+(b?"dn":"up")));break;case 2:this.ci!=b&&(this.ci=b,Rj(this,"mouse button2 "+(b?"dn":"up")))}}}; -function Rj(a,b,c,d){var e=64|(a.bi?32:0)|(a.ci?16:0)|(a.Cf&192)>>4|(a.Bf&192)>>6,f=a.Bf&63,g=a.Cf&63;a.pa(2097152)&&a.Xa((b?b+": ":"")+(void 0!==d?"mouse ("+c+","+d+"): ":"")+"serial packet ["+l(e)+","+l(f)+","+l(g)+"]",0,!0);Kj(a.Kg,[e,f,g]);a.Bf=a.Cf=0}Ma(function(){for(var a=db(window.document,"pcjs","mouse"),b=0;b>8:this.Nh;p(this,a,null,b,this.kd&128?"DLM":"IER",c);return c};k.Po=function(a,b){var c=this.se;p(this,a,null,b,"IIR",c);return c};k.Qo=function(a,b){var c=this.kd;p(this,a,null,b,"LCR",c);return c};k.So=function(a,b){var c=this.Bd;p(this,a,null,b,"MCR",c);return c}; +k.Ro=function(a,b){var c=this.Uc;p(this,a,null,b,"LSR",c);return c};k.Yo=function(a,b){var c=this.pl;p(this,a,null,b,"MSR",c);return c};k.tq=function(a,b,c){p(this,a,b,c,this.kd&128?"DLL":"THR");this.kd&128?this.zf=this.zf&-256|b:(this.rl=b,this.Uc&=-97,this.ye?(13!=b&&(8==b?this.ye.value=this.ye.value.slice(0,-1):(this.ye.value+=String.fromCharCode(b),this.ye.scrollTop=this.ye.scrollHeight)),a=!0):a=!1,a&&(this.Uc|=96))}; +k.eq=function(a,b,c){p(this,a,b,c,this.kd&128?"DLM":"IER");this.kd&128?this.zf=this.zf&255|b<<8:this.Nh=b};k.fq=function(a,b,c){p(this,a,b,c,"LCR");this.kd=b}; +k.gq=function(a,b,c){var d=this.Bd;p(this,a,b,c,"MCR");this.Bd=b;this.He&&(d^b)&3&&(a=this.He,b=this.Bd,(c=3==(b&3))?a.pd||(d=!1,a.Bd&2||(a.reset(),a.Xa("serial mouse reset"),d=!0),a.Bd&1||(a.Xa("serial mouse ID requested"),d=!0),d&&(Kj(a.Kg,[77,77]),a.Xa("serial mouse ID sent")),Oj(a,a.Ia),a.setActive(c)):a.pd&&(a.Xa("serial mouse inactive"),Pj(a.Ia),a.setActive(c)),a.Bd=b)}; +var Lj={0:Ij.prototype.cp,1:Ij.prototype.Oo,2:Ij.prototype.Po,3:Ij.prototype.Qo,4:Ij.prototype.So,5:Ij.prototype.Ro,6:Ij.prototype.Yo},Mj={0:Ij.prototype.tq,1:Ij.prototype.eq,3:Ij.prototype.fq,4:Ij.prototype.gq};Ma(function(){for(var a=db(window.document,"pcjs","serial"),b=0;bthis.ie||0>this.je)this.ie=a.clientX,this.je=a.clientY;this.gi?(this.Bf=a.movementX||a.mozMovementX||a.webkitMovementX||0,this.Cf=a.movementY||a.mozMovementY||a.webkitMovementY||0):(this.Bf=a.clientX-this.ie,this.Cf=a.clientY-this.je);(this.Bf||this.Cf)&&Rj(this,null,a.clientX,a.clientY);this.ie=a.clientX;this.je=a.clientY}}; +k.nj=function(a,b){if(this.pd&&this.N&&this.N.da.jb){var c;!(c=!1!==this.gi)&&(c=this.video)&&(c=this.video,c=c.bo?c.mf(!0):!1);c||(this.gi=null);switch(a){case 0:this.ci!=b&&(this.ci=b,Rj(this,"mouse button1 "+(b?"dn":"up")));break;case 2:this.di!=b&&(this.di=b,Rj(this,"mouse button2 "+(b?"dn":"up")))}}}; +function Rj(a,b,c,d){var e=64|(a.ci?32:0)|(a.di?16:0)|(a.Cf&192)>>4|(a.Bf&192)>>6,f=a.Bf&63,g=a.Cf&63;a.pa(2097152)&&a.Xa((b?b+": ":"")+(void 0!==d?"mouse ("+c+","+d+"): ":"")+"serial packet ["+l(e)+","+l(f)+","+l(g)+"]",0,!0);Kj(a.Kg,[e,f,g]);a.Bf=a.Cf=0}Ma(function(){for(var a=db(window.document,"pcjs","mouse"),b=0;b>2;var e=d=0,a=new DataView(a,0,c);g.fb=Array(g.yb);for(c=0;cb.indexOf("/api/v1/dump")&&(a=ga(b),"json"==a?f=encodeURI(b):"demandrw"==this.mode||"demandro"==this.mode?(f=Wj(this,b),this.gi=!0):(c="path",d="&mbhd=10",!b.indexOf("http:")||!b.indexOf("ftp:")||0<="dsk ima img 360 720 12 144".split(" ").indexOf(a)?(c="disk",d="&mbhd=0"):-1!==b.indexOf("/",b.length-1)&&(c="dir"),f=xa()+"/api/v1/dump?"+ -c+"="+encodeURIComponent(b)+(this.Vf?"":d)+"&format=json")),wa(f,!0,null,this,this.Wn,b)}; -k.Wn=function(a,b,c,d){var e=null;this.Wf=!1;var f=0>c&&this.Ba&&!this.Ba.da.$b;if(this.gi)c?this.X.Ea('Unable to connect to disk "'+d+'" (error '+c+": "+b+")",f):(this.Wd=!0,e=this);else if(c)this.X.Ea('Unable to load disk "'+this.Kd+'" (error '+c+")",f);else try{if(0g&&0b.indexOf("0x")&& +k.load=function(a,b,c,d,e){var f=b;if(!this.lf)if(this.Ld=a,this.vf=b,this.lf=d,this.Tn=e||this.X,c){var g=this,h=new FileReader;h.onload=function(){var a=h.result,b,c=a?a.byteLength:0,d=ca[c];if(d){g.yb=d[0];g.zb=d[1];g.Db=d[2];g.qb=512;b=g.qb>>2;var e=d=0,a=new DataView(a,0,c);g.fb=Array(g.yb);for(c=0;cb.indexOf("/api/v1/dump")&&(a=ga(b),"json"==a?f=encodeURI(b):"demandrw"==this.mode||"demandro"==this.mode?(f=Wj(this,b),this.hi=!0):(c="path",d="&mbhd=10",!b.indexOf("http:")||!b.indexOf("ftp:")||0<="dsk ima img 360 720 12 144".split(" ").indexOf(a)?(c="disk",d="&mbhd=0"):-1!==b.indexOf("/",b.length-1)&&(c="dir"),f=xa()+"/api/v1/dump?"+ +c+"="+encodeURIComponent(b)+(this.Vf?"":d)+"&format=json")),wa(f,!0,null,this,this.Xn,b)}; +k.Xn=function(a,b,c,d){var e=null;this.Wf=!1;var f=0>c&&this.Ba&&!this.Ba.da.$b;if(this.hi)c?this.X.Ca('Unable to connect to disk "'+d+'" (error '+c+": "+b+")",f):(this.Wd=!0,e=this);else if(c)this.X.Ca('Unable to load disk "'+this.Ld+'" (error '+c+")",f);else try{if(0g&&0b.indexOf("0x")&& '["'!=b.substr(0,2)?JSON.parse(b.replace(/([a-z]+):/gm,'"$1":').replace(/\/\/[^\n]*/gm,"")):eval("("+b+")");if(h.length)if(1==h.length)ya(h[0]);else{this.yb=h.length;this.zb=h[0].length;this.Db=h[0][0].length;var t=h[0][0][0];this.qb=t&&t.length||512;for(b=a=0;b>2,B=t.pattern;void 0===B&&(B=t.pattern=0);var J=t.data;if(void 0===J){var C=t.bytes;if(void 0!==C&&C.length){for(var f= -r<<2,E=C.length;Eb&&(b=0);2E3b&&(b=0);2E3>2,e=Array(d),f=0;f>2,e=a.data;a=a.pattern;for(var f=0;f>8&255;c[d++]=g>>16&255;c[d++]=g>>24&255}return c}function bk(a,b){var c=-1;if(a&&b>2,c=(d>((b&3)<<3)&255;return c} -k.write=function(a,b,c){if(this.Wf)return!1;if(b>2;b=(b&3)<<3;for(var g=d.length;g<=f;g++)d[g]=e;a.Hc?f=a.qd+a.Hc&&(a.Hc+=f-(a.qd+a.Hc)+1):(a.qd=f,a.Hc=1);d[f]=d[f]&~(255<>2;b=(b&3)<<3;for(var g=d.length;g<=f;g++)d[g]=e;a.Ic?f=a.rd+a.Ic&&(a.Ic+=f-(a.rd+a.Ic)+1):(a.rd=f,a.Ic=1);d[f]=d[f]&~(255<=this.fb.length||t>=this.fb[h].length||r>=this.fb[h][t].length){c="sector (CHS="+h+":"+t+":"+r+") out of range ("+ -b+" changes applied)";b=-1;break}if(this.Wf){c="unable to modify write-protected disk";b=-1;break}e=g[f++];f=g[f++];g=e+f.length;if(h=this.fb[h][t][r]){for(t=h.data.length;tb&&-2!=b&&this.X.Ea("Unable to restore disk '"+this.Kd+": "+c);return b}; +b+" changes applied)";b=-1;break}if(this.Wf){c="unable to modify write-protected disk";b=-1;break}e=g[f++];f=g[f++];g=e+f.length;if(h=this.fb[h][t][r]){for(t=h.data.length;tb&&-2!=b&&this.X.Ca("Unable to restore disk '"+this.Ld+": "+c);return b}; k.toJSON=function(){var a=JSON.stringify(this.fb),a=a.replace(/,"length":512/gm,"").replace(/,"pattern":0/gm,""),a=a.replace(/"(sector|length|data|pattern)":/gm,"$1:"),a=a.replace(/,"[^"]*":([0-9]+|true|false)/gm,"");return a=a.replace(/(sector|length|data|pattern):/gm,'"$1":')}; -function ck(a){n.call(this,"FDC",a,ck,262144);this.dmaRead=this.qj;this.dmaWrite=this.rj;this.dmaFormat=this.Tn;this.df=null;if(a.autoMount&&(this.df=a.autoMount,"string"==typeof this.df))try{this.df=eval("("+a.autoMount+")")}catch(b){ya("FDC auto-mount error: "+b.message+" ("+a.autoMount+")"),this.df=null}this.Bc=[];this.Hl=!Ea("Mobi")&&window&&"FileReader"in window}Ya(n,ck);ba={};aa={}; -var dk={3:{Sd:3,we:0,name:aa.mr},4:{Sd:2,we:1,name:aa.kr},5:{Sd:9,we:7,name:aa.yr},6:{Sd:9,we:7,name:aa.er},7:{Sd:2,we:0,name:aa.gr},8:{Sd:1,we:2,name:aa.lr},10:{Sd:2,we:7,name:aa.fr},13:{Sd:6,we:7,name:aa.Rq},15:{Sd:3,we:0,name:aa.jr}};k=ck.prototype; +function ck(a){n.call(this,"FDC",a,ck,262144);this.dmaRead=this.rj;this.dmaWrite=this.sj;this.dmaFormat=this.Un;this.df=null;if(a.autoMount&&(this.df=a.autoMount,"string"==typeof this.df))try{this.df=eval("("+a.autoMount+")")}catch(b){ya("FDC auto-mount error: "+b.message+" ("+a.autoMount+")"),this.df=null}this.Cc=[];this.Il=!Ea("Mobi")&&window&&"FileReader"in window}Ya(n,ck);ba={};aa={}; +var dk={3:{Sd:3,we:0,name:aa.nr},4:{Sd:2,we:1,name:aa.lr},5:{Sd:9,we:7,name:aa.zr},6:{Sd:9,we:7,name:aa.fr},7:{Sd:2,we:0,name:aa.hr},8:{Sd:1,we:2,name:aa.mr},10:{Sd:2,we:7,name:aa.gr},13:{Sd:6,we:7,name:aa.Sq},15:{Sd:3,we:0,name:aa.kr}};k=ck.prototype; k.Fb=function(a,b,c){var d=this;switch(b){case "listDisks":return this.qa[b]=c,c.onchange=function(){var a=d.qa.descDisk,b=c.options[c.selectedIndex];if(a&&b){var g={};if(b=b.getAttribute("data-value"))try{g=eval("({"+b+"})")}catch(h){ya("FDC option error: "+h.message)}b=g.desc;void 0===b&&(b="");g=g.href;void 0!==g&&(b=''+b+"");a.innerHTML=b}},!0;case "descDisk":case "listDrives":return this.qa[b]=c,c.onchange=function(){var a=da(c.value,10);null!=a&&ek(d,a)}, -!0;case "loadDrive":return this.qa[b]=c,c.onclick=function(){var a=d.qa.listDisks;a&&fk(d,a.options[a.selectedIndex].text,a.value)},!0;case "mountDrive":return this.Hl?(this.qa[b]=c,c.addEventListener("change",function(){var a=c.children[0];a.children[1].disabled=!a.children[0].files.length}),c.onsubmit=function(a){if(a=a.currentTarget[1].files[0]){var b=a.name;fk(d,fa(b,!0),b,a)}return!1}):c.parentNode.removeChild(c),!0}return!1}; -k.xc=function(a,b,c,d){this.ha=b;this.N=c;this.Z=d;this.Ba=a;this.fa=rb(a,"ChipSet");this.$d();bc(b,this,gk);fc(b,this,hk);this.Hl&&ik(this,"Local Disk","?");ik(this,"Remote Disk","??");this.yg()||jb(this)}; -k.fc=function(a,b){if(!b){if(!a||!this.restore){if(this.reset(),this.Ba.Aj){this.Bc=[];for(var c=0;ca.sa.restore(g)&&(e=!1);e&&a.sa&&void 0!==a.Pa&&(a.Ta=a.sa.seek(a.vb,a.Ma,a.$a));return e};k.Tk=function(){for(var a=0,b=[],c=0;ca.yb||f[1]>a.zb)&&(this.Ea('Diskette "'+c+'" too large for drive '+String.fromCharCode(65+a.kb)),b=null);b?(a.sa=b,a.sn=c,a.wf=d,mk(this,c,d,b),f=b.info(),this.Ne|=128,this.Ea('Mounted diskette "'+c+'" in drive '+String.fromCharCode(65+a.kb),a.jf||e),a.ti=f[0],a.gh=f[1],a.hh=f[2]):a.Sf=!1;a.jf&&(a.jf=!1,--this.af||jb(this));ek(this,a.kb)}; +!0;case "loadDrive":return this.qa[b]=c,c.onclick=function(){var a=d.qa.listDisks;a&&fk(d,a.options[a.selectedIndex].text,a.value)},!0;case "mountDrive":return this.Il?(this.qa[b]=c,c.addEventListener("change",function(){var a=c.children[0];a.children[1].disabled=!a.children[0].files.length}),c.onsubmit=function(a){if(a=a.currentTarget[1].files[0]){var b=a.name;fk(d,fa(b,!0),b,a)}return!1}):c.parentNode.removeChild(c),!0}return!1}; +k.yc=function(a,b,c,d){this.ha=b;this.N=c;this.Z=d;this.Ba=a;this.fa=rb(a,"ChipSet");this.$d();bc(b,this,gk);fc(b,this,hk);this.Il&&ik(this,"Local Disk","?");ik(this,"Remote Disk","??");this.yg()||jb(this)}; +k.fc=function(a,b){if(!b){if(!a||!this.restore){if(this.reset(),this.Ba.Bj){this.Cc=[];for(var c=0;ca.sa.restore(g)&&(e=!1);e&&a.sa&&void 0!==a.Pa&&(a.Ta=a.sa.seek(a.vb,a.Ma,a.$a));return e};k.Uk=function(){for(var a=0,b=[],c=0;ca.yb||f[1]>a.zb)&&(this.Ca('Diskette "'+c+'" too large for drive '+String.fromCharCode(65+a.kb)),b=null);b?(a.sa=b,a.tn=c,a.wf=d,mk(this,c,d,b),f=b.info(),this.Ne|=128,this.Ca('Mounted diskette "'+c+'" in drive '+String.fromCharCode(65+a.kb),a.jf||e),a.ui=f[0],a.hh=f[1],a.ih=f[2]):a.Sf=!1;a.jf&&(a.jf=!1,--this.af||jb(this));ek(this,a.kb)}; function ik(a,b,c){if(a=a.qa.listDisks){for(var d=0;d=this.ib&&(this.ya&=-81,this.Ab=this.ib=0);return c}; -k.Yp=function(a,b,c){this.pa()&&p(this,a,b,c,"DATA["+this.ib+"]");this.ib=dk[a].Sd){b=!1;this.Ab=0;a=this.Sa();var d,e,f,g,h=a&31;switch(h){case 3:this.Sa(ba.nr);this.Sa(ba.Uq);this.Xb();break;case 4:c=this.Sa(ba.pg);this.kb=c&3;d=this.Aa[this.kb];this.Xb();this.lc((d.cb&-16777216)>>>24,ba.qr);break;case 5:case 6:c=this.Sa(ba.pg);b=c>>2&1;this.kb=c&3;d=this.Aa[this.kb];d.Ma=b;c=d.vb=this.Sa(ba.$k);e=this.Sa(ba.al); -f=d.$a=this.Sa(ba.cl);g=this.Sa(ba.Ri);d.hb=128<>2&1;this.kb=c&3;d=this.Aa[this.kb];c=d.vb;e=d.Ma=b;f=d.$a=1;g=0;d.cb=0;d.sa&&(d.Ta=d.sa.seek(d.vb,d.Ma,d.$a))?g=d.Ta.length:d.cb=72;nk(this,d,a,b,c,e,f,g);b=!0;break;case 13:c=this.Sa(ba.pg);b=c>>2&1;this.kb=c&3;d=this.Aa[this.kb];c=d.vb;e=d.Ma=b;f=1;g=this.Sa(ba.Ri);d.hb=128<>2&1,c=this.Sa(ba.$q),d.vb+=c-d.re,0>d.vb&&(d.vb=0),d.vb>=d.yb&&(d.vb=d.yb-1),d.re=c,d.cb=32,d.vb||(d.cb|=268435456),this.Xb(),b=!0}0>>8,ba.or);a.lc((b.cb&16711680)>>>16,ba.pr);var t=0;if(e!=b.vb||f!=b.Ma)t=g=1;c&128&&(f^=t,d||(t=0));a.lc(e+t,ba.$k);a.lc(f,ba.al);a.lc(g,ba.cl);a.lc(h,ba.Ri)}k.Sa=function(){var a=this.mc[this.Ab];this.Ab++;return a};k.Xb=function(){this.Ab=this.ib=0};k.lc=function(a){this.mc[this.ib++]=a};k.qj=function(a,b,c){void 0===b||0>b?this.Eb(a,c):c(-1,!1)}; -k.rj=function(a,b){return void 0!==b&&0<=b?this.Ib(a,b):-1};k.Tn=function(a,b){return void 0!==b&&0<=b?this.Vk(a,b):-1};k.Eb=function(a,b){var c=-1,d=null,e=0;if(!a.cb&&a.sa){do{if(a.Ta&&(e=a.Pa,0<=(c=bk(a.Ta,a.Pa++)))){d=a.Ta;break}a.Ta=a.sa.seek(a.vb,a.Ma,a.$a);if(!a.Ta){a.cb=1088;break}a.Pa=0;this.xg(a)}while(1)}b(c,!1,d,e)}; -k.Ib=function(a,b){if(a.cb||!a.sa)return-1;do{if(a.Ta&&a.sa.write(a.Ta,a.Pa++,b))break;a.Ta=a.sa.seek(a.vb,a.Ma,a.$a);if(!a.Ta){a.cb=8256;b=-1;break}a.Pa=0;this.xg(a)}while(1);return b};k.xg=function(a){a.$a++;a.$a>=a.hh+1&&(a.$a=1,a.Ma++,a.Ma>=a.gh&&(a.Ma=0,a.vb++))};k.Vk=function(a,b){if(a.cb)return-1;a.Rc[a.Kf++]=b;if(a.Kf==a.Rc.length){a.vb=a.Rc[0];a.Ma=a.Rc[1];a.$a=a.Rc[2];a.hb=128<this.Ib(a,a.nl))return-1;a.Vh++}a.Vh>=a.te&&(b=-1);return b}; -var gk={1012:ck.prototype.Io,1013:ck.prototype.Go,1015:ck.prototype.Ho},hk={1010:ck.prototype.Zp,1013:ck.prototype.Yp,1015:ck.prototype.Xp};Ma(function(){for(var a=db(window.document,"pcjs","fdc"),b=0;b=e&&(this.jg|=(f.type&3)<<(1-e<<1))}return d}; -k.Rk=function(){var a=0,b=[];this.hf?(b[a++]=this.Me,b[a++]=this.rn,b[a++]=this.Oe,b[a++]=this.Gi,b[a++]=this.Ei,b[a++]=this.Di,b[a++]=this.kg,b[a++]=this.ya,b[a++]=this.Nk,b[a++]=this.Fi):(b[a++]=this.jg,b[a++]=this.ya,b[a++]=this.mc,b[a++]=this.Ab,b[a++]=this.ib,b[a++]=this.qn,b[a++]=this.pn,b[a++]=this.on,b[a++]=this.Zf);b[a]=this.Tk();return b}; -k.Kj=function(a,b,c,d,e){var f=0,g=!0;void 0===d&&(d=[0,0,!1,Array(8)]);b.kb=a;b.errorCode=d[f++];b.xn=d[f++];b.Vf=d[f++];b.Hf=d[f++];b.If=d[f++];b.Ma=d[f++];b.zb=d[f++];b.he=d[f++];b.$a=d[f++];b.te=d[f++];b.hb=d[f++];b.Rh=this.hf?0:1;b.name=c.name;void 0===b.name&&(b.name="Hard Drive");b.path=c.path;b.mode=c.mode||(b.path?"preload":"local");"demandro"!=b.mode&&"demandrw"!=b.mode||this.De()||(b.mode="local");b.type=c.type;if(void 0===b.type||void 0===pk[this.Wg][b.type])b.type=this.mo;c=pk[this.Wg][b.type]; -b.Db=c[2]||17;b.qb=c[3]||512;if(e&&this.fa&&(e=this.fa,c=b.type,e.ea)){var h=e.ea[18],h=a?h&240|c:h&15|c<<4;e.ea&&(e.ea[18]=h,jh(e))}void 0===b.sa&&(b.sa=null,this.Ea("Type "+b.type+' "'+b.name+'" is fixed disk '+a,!0));uk(this,b);b.Pa=d[f++];b.Ta=null;b.sa&&(a=d[f],void 0!==a&&0>b.sa.restore(a)&&(g=!1),g&&void 0!==b.Pa&&(b.Ta=b.sa.seek(b.he,b.Ma,b.$a+b.Rh)));return g};k.Tk=function(){for(var a=0,b=[],c=0;c=this.ib&&(this.Ab=this.ib=0,this.ya&=-15);return c}; -k.uq=function(a,b,c){p(this,a,b,c,"DATA["+this.ib+"]");this.ib=a&&(this.ya|=2,this.ya&=-2,vk(this))};k.ip=function(a,b){var c=this.ya;p(this,a,null,b,"STATUS",c);this.Ab=this.Na.qb?(d.ya=136,this.Eb(this.Na,function(a){0<=a?(wk(d),d.ya=80):(d.ya=1,d.Me=16)},!1)):this.ya=80)}return c}; -k.Jp=function(a,b,c){this.Na&&this.Na.hb>=this.Na.qb&&(0>this.Ib(this.Na,b)?(this.ya=1,this.Me=16):1==this.Na.Pa?this.pa(524416)&&p(this,a,b,c,"DATA["+this.Na.Pa+"]"):this.Na.Pa==this.Na.qb&&(this.Na.hb-=this.Na.qb,this.Oe=this.Oe-1&255,wk(this),this.ya=80,this.Na.hb>=this.Na.qb&&(this.ya|=8)))};k.vo=function(a,b){var c=this.Me;p(this,a,null,b,"ERROR",c);return c};k.Op=function(a,b,c){p(this,a,b,c,"WPREC");this.rn=b};k.wo=function(a,b){var c=this.Oe;p(this,a,null,b,"SECCNT",c);return c}; -k.Mp=function(a,b,c){p(this,a,b,c,"SECCNT");this.Oe=b};k.xo=function(a,b){var c=this.Gi;p(this,a,null,b,"SECNUM",c);return c};k.Np=function(a,b,c){p(this,a,b,c,"SECNUM");this.Gi=b};k.so=function(a,b){var c=this.Ei;p(this,a,null,b,"CYLLO",c);return c};k.Ip=function(a,b,c){p(this,a,b,c,"CYLLO");this.Ei=b};k.ro=function(a,b){var c=this.Di;p(this,a,null,b,"CYLHI",c);return c};k.Hp=function(a,b,c){p(this,a,b,c,"CYLHI");this.Di=b};k.uo=function(a,b){var c=this.kg;p(this,a,null,b,"DRVHD",c);return c}; -k.Kp=function(a,b,c){p(this,a,b,c,"DRVHD");this.kg=b;this.ya=this.Aa[this.kg&16?1:0]?this.ya|64:this.ya&-65};k.yo=function(a,b){var c=this.ya;p(this,a,null,b,"STATUS",c);return c};k.Gp=function(a,b,c){p(this,a,b,c,"COMMAND");this.Nk=b;this.fa&&Ph(this.fa,14);xk(this)};k.Lp=function(a,b,c){p(this,a,b,c,"FDR");this.Fi&4&&!(b&4)&&(this.Me=1);this.Fi=b}; -function xk(a){var b=!1,c=a.Nk,d=a.kg&16?1:0,e=a.kg&15,f=a.Ei|(a.Di&3)<<8,g=a.Gi,h=a.Oe||256;a.Na=null;a.Me=0;a.ya=80;(d=a.Aa[d])?(d.he=f,d.Ma=e,d.$a=g,d.hb=h*d.qb,c=144<=c?c:c&240,d.Ta=null,d.Pa=0,d.errorCode=0,a.Na=d):c=-1;switch(c&240){case 32:a.ya=136;a.Eb(d,function(b){0<=b&&a.fa?(wk(a),a.ya=80):(a.ya=1,a.Me=16)},!1);break;case 48:a.ya=8;break;case 16:b=!0;break;case 64:b=!0;break;case 144:a.Me=1;b=!0;break;case 145:d.zb=e+1,d.Db=h,b=!0}b&&wk(a)} -function wk(a){!a.fa||a.Fi&2||Oh(a.fa,14,120)} -function vk(a){a.Ab=0;var b=a.Sa(),c=a.Sa(),d=c&32,e=d>>5,f=c&31,g=a.Sa(),h=a.Sa(),t=g<<2&768|h,r=g&63,B=a.Sa(),J=a.Sa(),C=a.Aa[e];C&&(C.he=t,C.Ma=f,C.$a=r,C.hb=B*C.qb);switch(b){case 3:a.Xb(C?C.errorCode:4);a.lc(c);a.lc(g);a.lc(h);a.lc(0|d);b=-1;break;case 12:for(c=0;0<=(b=a.Sa());)C&&cb?this.Eb(a,c):c(-1,!1)}; -k.rj=function(a,b){return void 0!==b&&0<=b?this.Ib(a,b):-1};k.Un=function(a,b){var c;void 0!==b&&0<=b?(c=b,a.Pa=this.ib&&(this.ya&=-81,this.Ab=this.ib=0);return c}; +k.Zp=function(a,b,c){this.pa()&&p(this,a,b,c,"DATA["+this.ib+"]");this.ib=dk[a].Sd){b=!1;this.Ab=0;a=this.Sa();var d,e,f,g,h=a&31;switch(h){case 3:this.Sa(ba.or);this.Sa(ba.Vq);this.Xb();break;case 4:c=this.Sa(ba.pg);this.kb=c&3;d=this.Aa[this.kb];this.Xb();this.lc((d.cb&-16777216)>>>24,ba.rr);break;case 5:case 6:c=this.Sa(ba.pg);b=c>>2&1;this.kb=c&3;d=this.Aa[this.kb];d.Ma=b;c=d.vb=this.Sa(ba.al);e=this.Sa(ba.bl); +f=d.$a=this.Sa(ba.dl);g=this.Sa(ba.Si);d.hb=128<>2&1;this.kb=c&3;d=this.Aa[this.kb];c=d.vb;e=d.Ma=b;f=d.$a=1;g=0;d.cb=0;d.sa&&(d.Ta=d.sa.seek(d.vb,d.Ma,d.$a))?g=d.Ta.length:d.cb=72;nk(this,d,a,b,c,e,f,g);b=!0;break;case 13:c=this.Sa(ba.pg);b=c>>2&1;this.kb=c&3;d=this.Aa[this.kb];c=d.vb;e=d.Ma=b;f=1;g=this.Sa(ba.Si);d.hb=128<>2&1,c=this.Sa(ba.ar),d.vb+=c-d.re,0>d.vb&&(d.vb=0),d.vb>=d.yb&&(d.vb=d.yb-1),d.re=c,d.cb=32,d.vb||(d.cb|=268435456),this.Xb(),b=!0}0>>8,ba.pr);a.lc((b.cb&16711680)>>>16,ba.qr);var t=0;if(e!=b.vb||f!=b.Ma)t=g=1;c&128&&(f^=t,d||(t=0));a.lc(e+t,ba.al);a.lc(f,ba.bl);a.lc(g,ba.dl);a.lc(h,ba.Si)}k.Sa=function(){var a=this.mc[this.Ab];this.Ab++;return a};k.Xb=function(){this.Ab=this.ib=0};k.lc=function(a){this.mc[this.ib++]=a};k.rj=function(a,b,c){void 0===b||0>b?this.Eb(a,c):c(-1,!1)}; +k.sj=function(a,b){return void 0!==b&&0<=b?this.Ib(a,b):-1};k.Un=function(a,b){return void 0!==b&&0<=b?this.Wk(a,b):-1};k.Eb=function(a,b){var c=-1,d=null,e=0;if(!a.cb&&a.sa){do{if(a.Ta&&(e=a.Pa,0<=(c=bk(a.Ta,a.Pa++)))){d=a.Ta;break}a.Ta=a.sa.seek(a.vb,a.Ma,a.$a);if(!a.Ta){a.cb=1088;break}a.Pa=0;this.xg(a)}while(1)}b(c,!1,d,e)}; +k.Ib=function(a,b){if(a.cb||!a.sa)return-1;do{if(a.Ta&&a.sa.write(a.Ta,a.Pa++,b))break;a.Ta=a.sa.seek(a.vb,a.Ma,a.$a);if(!a.Ta){a.cb=8256;b=-1;break}a.Pa=0;this.xg(a)}while(1);return b};k.xg=function(a){a.$a++;a.$a>=a.ih+1&&(a.$a=1,a.Ma++,a.Ma>=a.hh&&(a.Ma=0,a.vb++))};k.Wk=function(a,b){if(a.cb)return-1;a.Sc[a.Kf++]=b;if(a.Kf==a.Sc.length){a.vb=a.Sc[0];a.Ma=a.Sc[1];a.$a=a.Sc[2];a.hb=128<this.Ib(a,a.ol))return-1;a.Wh++}a.Wh>=a.te&&(b=-1);return b}; +var gk={1012:ck.prototype.Jo,1013:ck.prototype.Ho,1015:ck.prototype.Io},hk={1010:ck.prototype.$p,1013:ck.prototype.Zp,1015:ck.prototype.Yp};Ma(function(){for(var a=db(window.document,"pcjs","fdc"),b=0;b=e&&(this.jg|=(f.type&3)<<(1-e<<1))}return d}; +k.Sk=function(){var a=0,b=[];this.hf?(b[a++]=this.Me,b[a++]=this.sn,b[a++]=this.Oe,b[a++]=this.Hi,b[a++]=this.Fi,b[a++]=this.Ei,b[a++]=this.kg,b[a++]=this.ya,b[a++]=this.Ok,b[a++]=this.Gi):(b[a++]=this.jg,b[a++]=this.ya,b[a++]=this.mc,b[a++]=this.Ab,b[a++]=this.ib,b[a++]=this.rn,b[a++]=this.qn,b[a++]=this.pn,b[a++]=this.Zf);b[a]=this.Uk();return b}; +k.Lj=function(a,b,c,d,e){var f=0,g=!0;void 0===d&&(d=[0,0,!1,Array(8)]);b.kb=a;b.errorCode=d[f++];b.yn=d[f++];b.Vf=d[f++];b.Hf=d[f++];b.If=d[f++];b.Ma=d[f++];b.zb=d[f++];b.he=d[f++];b.$a=d[f++];b.te=d[f++];b.hb=d[f++];b.Sh=this.hf?0:1;b.name=c.name;void 0===b.name&&(b.name="Hard Drive");b.path=c.path;b.mode=c.mode||(b.path?"preload":"local");"demandro"!=b.mode&&"demandrw"!=b.mode||this.De()||(b.mode="local");b.type=c.type;if(void 0===b.type||void 0===pk[this.Xg][b.type])b.type=this.no;c=pk[this.Xg][b.type]; +b.Db=c[2]||17;b.qb=c[3]||512;if(e&&this.fa&&(e=this.fa,c=b.type,e.ea)){var h=e.ea[18],h=a?h&240|c:h&15|c<<4;e.ea&&(e.ea[18]=h,jh(e))}void 0===b.sa&&(b.sa=null,this.Ca("Type "+b.type+' "'+b.name+'" is fixed disk '+a,!0));uk(this,b);b.Pa=d[f++];b.Ta=null;b.sa&&(a=d[f],void 0!==a&&0>b.sa.restore(a)&&(g=!1),g&&void 0!==b.Pa&&(b.Ta=b.sa.seek(b.he,b.Ma,b.$a+b.Sh)));return g};k.Uk=function(){for(var a=0,b=[],c=0;c=this.ib&&(this.Ab=this.ib=0,this.ya&=-15);return c}; +k.vq=function(a,b,c){p(this,a,b,c,"DATA["+this.ib+"]");this.ib=a&&(this.ya|=2,this.ya&=-2,vk(this))};k.jp=function(a,b){var c=this.ya;p(this,a,null,b,"STATUS",c);this.Ab=this.Na.qb?(d.ya=136,this.Eb(this.Na,function(a){0<=a?(wk(d),d.ya=80):(d.ya=1,d.Me=16)},!1)):this.ya=80)}return c}; +k.Kp=function(a,b,c){this.Na&&this.Na.hb>=this.Na.qb&&(0>this.Ib(this.Na,b)?(this.ya=1,this.Me=16):1==this.Na.Pa?this.pa(524416)&&p(this,a,b,c,"DATA["+this.Na.Pa+"]"):this.Na.Pa==this.Na.qb&&(this.Na.hb-=this.Na.qb,this.Oe=this.Oe-1&255,wk(this),this.ya=80,this.Na.hb>=this.Na.qb&&(this.ya|=8)))};k.wo=function(a,b){var c=this.Me;p(this,a,null,b,"ERROR",c);return c};k.Pp=function(a,b,c){p(this,a,b,c,"WPREC");this.sn=b};k.xo=function(a,b){var c=this.Oe;p(this,a,null,b,"SECCNT",c);return c}; +k.Np=function(a,b,c){p(this,a,b,c,"SECCNT");this.Oe=b};k.yo=function(a,b){var c=this.Hi;p(this,a,null,b,"SECNUM",c);return c};k.Op=function(a,b,c){p(this,a,b,c,"SECNUM");this.Hi=b};k.to=function(a,b){var c=this.Fi;p(this,a,null,b,"CYLLO",c);return c};k.Jp=function(a,b,c){p(this,a,b,c,"CYLLO");this.Fi=b};k.so=function(a,b){var c=this.Ei;p(this,a,null,b,"CYLHI",c);return c};k.Ip=function(a,b,c){p(this,a,b,c,"CYLHI");this.Ei=b};k.vo=function(a,b){var c=this.kg;p(this,a,null,b,"DRVHD",c);return c}; +k.Lp=function(a,b,c){p(this,a,b,c,"DRVHD");this.kg=b;this.ya=this.Aa[this.kg&16?1:0]?this.ya|64:this.ya&-65};k.zo=function(a,b){var c=this.ya;p(this,a,null,b,"STATUS",c);return c};k.Hp=function(a,b,c){p(this,a,b,c,"COMMAND");this.Ok=b;this.fa&&Ph(this.fa,14);xk(this)};k.Mp=function(a,b,c){p(this,a,b,c,"FDR");this.Gi&4&&!(b&4)&&(this.Me=1);this.Gi=b}; +function xk(a){var b=!1,c=a.Ok,d=a.kg&16?1:0,e=a.kg&15,f=a.Fi|(a.Ei&3)<<8,g=a.Hi,h=a.Oe||256;a.Na=null;a.Me=0;a.ya=80;(d=a.Aa[d])?(d.he=f,d.Ma=e,d.$a=g,d.hb=h*d.qb,c=144<=c?c:c&240,d.Ta=null,d.Pa=0,d.errorCode=0,a.Na=d):c=-1;switch(c&240){case 32:a.ya=136;a.Eb(d,function(b){0<=b&&a.fa?(wk(a),a.ya=80):(a.ya=1,a.Me=16)},!1);break;case 48:a.ya=8;break;case 16:b=!0;break;case 64:b=!0;break;case 144:a.Me=1;b=!0;break;case 145:d.zb=e+1,d.Db=h,b=!0}b&&wk(a)} +function wk(a){!a.fa||a.Gi&2||Oh(a.fa,14,120)} +function vk(a){a.Ab=0;var b=a.Sa(),c=a.Sa(),d=c&32,e=d>>5,f=c&31,g=a.Sa(),h=a.Sa(),t=g<<2&768|h,r=g&63,B=a.Sa(),J=a.Sa(),C=a.Aa[e];C&&(C.he=t,C.Ma=f,C.$a=r,C.hb=B*C.qb);switch(b){case 3:a.Xb(C?C.errorCode:4);a.lc(c);a.lc(g);a.lc(h);a.lc(0|d);b=-1;break;case 12:for(c=0;0<=(b=a.Sa());)C&&cb?this.Eb(a,c):c(-1,!1)}; +k.sj=function(a,b){return void 0!==b&&0<=b?this.Ib(a,b):-1};k.Vn=function(a,b){var c;void 0!==b&&0<=b?(c=b,a.Pa=a.Db+b&&(a.$a=b,a.Ma++,a.Ma>=a.zb&&(a.Ma=0,a.he++))}; -k.Vk=function(a,b){if(a.errorCode)return-1;a.Rc[a.Kf++]=b;if(a.Kf==a.Rc.length){a.he=a.Rc[0];a.Ma=a.Rc[1];a.$a=a.Rc[2];a.hb=128<this.Ib(a,a.nl))return-1;a.Vh++}a.Vh>=a.te&&(b=-1);return b};k.kp=function(){var a=this.N.J&255;!(this.N.G>>8)&&128>8||!this.fa)||(a=!(this.fa.Vb[0].zd&64));return a?!0:!1}; -var rk={800:ok.prototype.hp,801:ok.prototype.ip,802:ok.prototype.gp},qk={496:ok.prototype.to,497:ok.prototype.vo,498:ok.prototype.wo,499:ok.prototype.xo,500:ok.prototype.so,501:ok.prototype.ro,502:ok.prototype.uo,503:ok.prototype.yo},tk={800:ok.prototype.uq,801:ok.prototype.xq,802:ok.prototype.wq,803:ok.prototype.vq,807:ok.prototype.Hk,811:ok.prototype.Hk,815:ok.prototype.Hk},sk={496:ok.prototype.Jp,497:ok.prototype.Op,498:ok.prototype.Mp,499:ok.prototype.Np,500:ok.prototype.Ip,501:ok.prototype.Hp, -502:ok.prototype.Kp,503:ok.prototype.Gp,1014:ok.prototype.Lp};Ma(function(){for(var a=db(window.document,"pcjs","hdc"),b=0;b=a.Db+b&&(a.$a=b,a.Ma++,a.Ma>=a.zb&&(a.Ma=0,a.he++))}; +k.Wk=function(a,b){if(a.errorCode)return-1;a.Sc[a.Kf++]=b;if(a.Kf==a.Sc.length){a.he=a.Sc[0];a.Ma=a.Sc[1];a.$a=a.Sc[2];a.hb=128<this.Ib(a,a.ol))return-1;a.Wh++}a.Wh>=a.te&&(b=-1);return b};k.lp=function(){var a=this.N.J&255;!(this.N.G>>8)&&128>8||!this.fa)||(a=!(this.fa.Vb[0].Ad&64));return a?!0:!1}; +var rk={800:ok.prototype.ip,801:ok.prototype.jp,802:ok.prototype.hp},qk={496:ok.prototype.uo,497:ok.prototype.wo,498:ok.prototype.xo,499:ok.prototype.yo,500:ok.prototype.to,501:ok.prototype.so,502:ok.prototype.vo,503:ok.prototype.zo},tk={800:ok.prototype.vq,801:ok.prototype.yq,802:ok.prototype.xq,803:ok.prototype.wq,807:ok.prototype.Ik,811:ok.prototype.Ik,815:ok.prototype.Ik},sk={496:ok.prototype.Kp,497:ok.prototype.Pp,498:ok.prototype.Np,499:ok.prototype.Op,500:ok.prototype.Jp,501:ok.prototype.Ip, +502:ok.prototype.Lp,503:ok.prototype.Hp,1014:ok.prototype.Mp};Ma(function(){for(var a=db(window.document,"pcjs","hdc"),b=0;b>2;this.Yl=b.Sh;this.ug=Pk;80186<=this.N.za&&(this.ug=Pk.slice(),this.ug[15]=Nk,80286<=this.N.za&&(this.ug[15]=Ok));Zg(this,4,function(a){if(a){var b=Tk(d,a);if(void 0===b)d.R("invalid selector: "+a);else{a=Uk(d,b);d.R("dumpDesc("+m(a.va)+"): %"+ea(a.Pd,d.xe));var c,b=!1;if(a.type&4096)a.type&2048?(c="code"+(a.type&512?",readable":",execonly"),a.type&1024&&(c+=",conforming")):(c="data"+ -(a.type&512?",writable":",readonly"),a.type&1024&&(c+=",expdown")),a.type&256&&(c+=",accessed");else switch(a.type){case 256:c="tss";break;case 512:c="ldt";break;case 768:c="busy tss";break;case 1024:c="call gate";b=!0;break;case 1280:c="task gate";b=!0;break;case 1536:c="int gate";b=!0;break;case 1792:c="trap gate",b=!0}!c||a.nb&32768||(c+=",not present");d.R((b?"seg="+m(a.ta&65535)+" off="+m(a.rb):"base="+ea(a.ta,d.xe)+" limit="+ea(a.rb,a.rb&-65536?8:4))+" dpl="+l(a.pc)+" type="+l(a.type>>8)+" ("+ -c+") ext="+m(a.$h&-65296))}}else d.R("no selector")});Zg(this,8,function(a){a:{if(a){var b=Tk(d,a);if(void 0===b){d.R("invalid task selector: "+a);break a}a=Uk(d,b)}else a=d.N.eb;d.R("dumpTSS("+m(a.va)+"): %"+ea(a.ta,d.xe));var b="",c;for(c in Vk){var e=Vk[c],r=8>c.length?" ":"",B=Yb(d.ha,a.ta+e);b&&(b+="\n");b+=m(e)+" "+c+": "+r+m(B)}d.R(b)}});Zg(this,67108864,function(a){if(a)for(d.R("dumpDOS("+a+")"),a=Tk(d,a);a;){var b=[0,a,void 0],c=d.Oa(b,1),e=d.la(b,2),r=d.la(b,5);if(77!=c&&90!=c)break;d.R(uc(d, -0,a)+": '"+String.fromCharCode(c)+"' PID="+m(e)+" LEN="+m(r)+' "'+Wk(d,b)+'"');a+=1+r}else d.R("no MCB")});jb(this);if(this.Qk){a=Xk(this,this.Qk);delete this.Qk;for(var e in a)Fk(this,a[e])}}; -Bk.prototype.Fb=function(a,b,c){var d=this;switch(b){case "debugInput":return this.Lg=this.qa[b]=c,c.onkeydown=function(a){var b;if(13==a.keyCode){b=c.value;c.value="";var g=Xk(d,b,!0),h;for(h in g)Fk(d,g[h])}else 27==a.keyCode?c.value=b="":(38==a.keyCode?d.Xc>2;this.Zl=b.Th;this.ug=Pk;80186<=this.N.za&&(this.ug=Pk.slice(),this.ug[15]=Nk,80286<=this.N.za&&(this.ug[15]=Ok));Zg(this,4,function(a){if(a){var b=Tk(d,a);if(void 0===b)d.R("invalid selector: "+a);else{a=Uk(d,b);d.R("dumpDesc("+m(a.va)+"): %"+ea(a.Pd,d.xe));var c,b=!1;if(a.type&4096)a.type&2048?(c="code"+(a.type&512?",readable":",execonly"),a.type&1024&&(c+=",conforming")):(c="data"+ +(a.type&512?",writable":",readonly"),a.type&1024&&(c+=",expdown")),a.type&256&&(c+=",accessed");else switch(a.type){case 256:c="tss";break;case 512:c="ldt";break;case 768:c="busy tss";break;case 1024:c="call gate";b=!0;break;case 1280:c="task gate";b=!0;break;case 1536:c="int gate";b=!0;break;case 1792:c="trap gate",b=!0}!c||a.nb&32768||(c+=",not present");d.R((b?"seg="+m(a.ta&65535)+" off="+m(a.rb):"base="+ea(a.ta,d.xe)+" limit="+ea(a.rb,a.rb&-65536?8:4))+" dpl="+l(a.qc)+" type="+l(a.type>>8)+" ("+ +c+") ext="+m(a.ai&-65296))}}else d.R("no selector")});Zg(this,8,function(a){a:{if(a){var b=Tk(d,a);if(void 0===b){d.R("invalid task selector: "+a);break a}a=Uk(d,b)}else a=d.N.eb;d.R("dumpTSS("+m(a.va)+"): %"+ea(a.ta,d.xe));var b="",c;for(c in Vk){var e=Vk[c],r=8>c.length?" ":"",B=Yb(d.ha,a.ta+e);b&&(b+="\n");b+=m(e)+" "+c+": "+r+m(B)}d.R(b)}});Zg(this,67108864,function(a){if(a)for(d.R("dumpDOS("+a+")"),a=Tk(d,a);a;){var b=[0,a,void 0],c=d.Oa(b,1),e=d.la(b,2),r=d.la(b,5);if(77!=c&&90!=c)break;d.R(uc(d, +0,a)+": '"+String.fromCharCode(c)+"' PID="+m(e)+" LEN="+m(r)+' "'+Wk(d,b)+'"');a+=1+r}else d.R("no MCB")});jb(this);if(this.Rk){a=Xk(this,this.Rk);delete this.Rk;for(var e in a)Fk(this,a[e])}}; +Bk.prototype.Fb=function(a,b,c){var d=this;switch(b){case "debugInput":return this.Mg=this.qa[b]=c,c.onkeydown=function(a){var b;if(13==a.keyCode){b=c.value;c.value="";var g=Xk(d,b,!0),h;for(h in g)Fk(d,g[h])}else 27==a.keyCode?c.value=b="":(38==a.keyCode?d.Yce?String.fromCharCode(e):"."}return d} -function Ek(a,b){a.Z=a;a.Yb=a.Mn=536870912;a.Ii=null;a.Yi=[];var c=Xk(a,b.replace("keys","key").replace("kbd","keyboard"));if(c.length)for(var d in Mk)0<=c.indexOf(d)&&(a.Yb|=Mk[d],a.R(d+" messages enabled"))}function Zg(a,b,c){for(var d in Mk)if(b==Mk[d]){a.Yi[d]=c;break}} +function Ek(a,b){a.Z=a;a.Yb=a.Nn=536870912;a.Ji=null;a.Zi=[];var c=Xk(a,b.replace("keys","key").replace("kbd","keyboard"));if(c.length)for(var d in Mk)0<=c.indexOf(d)&&(a.Yb|=Mk[d],a.R(d+" messages enabled"))}function Zg(a,b,c){for(var d in Mk)if(b==Mk[d]){a.Zi[d]=c;break}} function Yk(a,b){var c="??";if(0<=b){var d,e,f=a.N;switch(b){case 0:d=f.G;e=2;break;case 1:d=f.I;e=2;break;case 2:d=f.J;e=2;break;case 3:d=f.C;e=2;break;case 4:d=f.G>>8;e=2;break;case 5:d=f.I>>8;e=2;break;case 6:d=f.J>>8;e=2;break;case 7:d=f.C>>8;e=2;break;case 8:d=f.G;e=4;break;case 9:d=f.I;e=4;break;case 10:d=f.J;e=4;break;case 11:d=f.C;e=4;break;case 12:d=w(f);e=4;break;case 13:d=f.H;e=4;break;case 14:d=f.F;e=4;break;case 15:d=f.D;e=4;break;case 16:d=f.Ja.va;e=4;break;case 17:d=Fb(f);e=4;break; -case 18:d=f.xa.va;e=4;break;case 19:d=f.Ya.va;e=4;break;case 20:d=f.hs.va;e=4;break;case 21:d=f.js.va;e=4;break;case 22:d=v(f);e=a.Ig;break;case 23:d=Gb(f);e=a.Ig;break;case 24:d=f.G;e=8;break;case 25:d=f.I;e=8;break;case 26:d=f.J;e=8;break;case 27:d=f.C;e=8;break;case 28:d=w(f);e=8;break;case 29:d=f.H;e=8;break;case 30:d=f.F;e=8;break;case 31:d=f.D;e=8;break;case 32:d=f.gc;e=8;break;case 33:d=f.ds;e=8;break;case 34:d=f.es;e=8;break;case 35:d=f.fs,e=8}e&&(c=ea(d,e))}return c}k=Bk.prototype; -k.message=function(a,b){b&&(a+=" @"+uc(this,v(this.N),Fb(this.N)));if(!this.Ii||a!=this.Ii)if(this.R(a),this.Ii=a,this.N){this.Yb&1073741824&&this.N.lb();var c=this.N;c.U.eg=0;c.Yc-=c.A;c.A=0;Vc(c)}}; +case 18:d=f.xa.va;e=4;break;case 19:d=f.Ya.va;e=4;break;case 20:d=f.js.va;e=4;break;case 21:d=f.ks.va;e=4;break;case 22:d=v(f);e=a.Ig;break;case 23:d=Gb(f);e=a.Ig;break;case 24:d=f.G;e=8;break;case 25:d=f.I;e=8;break;case 26:d=f.J;e=8;break;case 27:d=f.C;e=8;break;case 28:d=w(f);e=8;break;case 29:d=f.H;e=8;break;case 30:d=f.F;e=8;break;case 31:d=f.D;e=8;break;case 32:d=f.gc;e=8;break;case 33:d=f.es;e=8;break;case 34:d=f.fs;e=8;break;case 35:d=f.gs,e=8}e&&(c=ea(d,e))}return c}k=Bk.prototype; +k.message=function(a,b){b&&(a+=" @"+uc(this,v(this.N),Fb(this.N)));if(!this.Ji||a!=this.Ji)if(this.R(a),this.Ji=a,this.N){this.Yb&1073741824&&this.N.lb();var c=this.N;c.U.eg=0;c.Zc-=c.A;c.A=0;Vc(c)}}; function ze(a,b,c){var d,e=!1,f=Gk[b];f&&(d=a.N.G>>8,e=a.pa(f)?!0:262144==f&&a.pa(f=524288));if(e){var g=a.N.J&255;if(33==b&&11==d||262144==f&&128<=g||524288==f&&128>g)e=!1}if(e){if(f=(f=Sk[b])&&f[d]||""){for(var h=f,f=0;fa&&(b[0]=0,b[2]=null))}function dl(a,b){return null==b[1]?"%"+ea(b[2]):uc(a,b[0],b[1])}function uc(a,b,c){return void 0!==c?m(c)+":"+ea(b,8>a.xe?4:8):ea(b)}function ff(a){return 1>>c.Ga;if(e>>f|c.ma[d+1&c.sc].th(0)<<32-f;void 0!==b&&cl(this,a,b)}return c};k.ud=function(a,b,c){var d=fl(this,a,!0,0);if(d!=q){var e=this.ha;e.ma[(d&e.Wa)>>>e.Ga].og(d&e.Da,b&255);void 0!==c&&cl(this,a,c);Vc(this.N)}}; -k.Qa=function(a,b,c){var d=fl(this,a,!0,1);d!=q&&(Zb(this.ha,d,b),void 0!==c&&cl(this,a,c),Vc(this.N))};function Ck(a){var b;a.Ac=["exec"];if(void 0!==a.le)for(b=1;b>>c.Ga],!1)}a.le=["read"];if(void 0!==a.fd)for(b=1;b>>c.Ga],!0);a.fd=["write"]} -k.pe=function(a,b,c){if(!gl(this,a,b)){b[3]=c;a.push(b);if(a!=this.Ac){var d=this.ha,e=fl(this,b);d.ma[e>>>d.Ga].pe(e&d.Da,a==this.fd)}c||this.R("breakpoint enabled: "+dl(this,b)+" ("+a[0]+")");Dk(this);return!0}return!1}; -function gl(a,b,c,d){var e=!1;c=hl(a,fl(a,c));for(var f=1;f>>d.Ga],b==a.fd));g[3]||a.R("breakpoint cleared: "+dl(a,g)+" ("+b[0]+")");Dk(a);break}a.R("breakpoint exists: "+dl(a,g)+" ("+b[0]+")");break}}return e}function il(a,b){for(var c=1;c=b&&f>>g.Ga].pe(f&g.Da,d==a.fd)}}}function bl(a,b){if(void 0!==b)el(a,b,a.Ac,!0),a.vc=0;else for(var c=1;ca&&(b[0]=0,b[2]=null))}function dl(a,b){return null==b[1]?"%"+ea(b[2]):uc(a,b[0],b[1])}function uc(a,b,c){return void 0!==c?m(c)+":"+ea(b,8>a.xe?4:8):ea(b)}function ff(a){return 1>>c.Ga;if(e>>f|c.ma[d+1&c.tc].uh(0)<<32-f;void 0!==b&&cl(this,a,b)}return c};k.vd=function(a,b,c){var d=fl(this,a,!0,0);if(d!=q){var e=this.ha;e.ma[(d&e.Wa)>>>e.Ga].og(d&e.Ea,b&255);void 0!==c&&cl(this,a,c);Vc(this.N)}}; +k.Qa=function(a,b,c){var d=fl(this,a,!0,1);d!=q&&(Zb(this.ha,d,b),void 0!==c&&cl(this,a,c),Vc(this.N))};function Ck(a){var b;a.Bc=["exec"];if(void 0!==a.le)for(b=1;b>>c.Ga],!1)}a.le=["read"];if(void 0!==a.gd)for(b=1;b>>c.Ga],!0);a.gd=["write"]} +k.pe=function(a,b,c){if(!gl(this,a,b)){b[3]=c;a.push(b);if(a!=this.Bc){var d=this.ha,e=fl(this,b);d.ma[e>>>d.Ga].pe(e&d.Ea,a==this.gd)}c||this.R("breakpoint enabled: "+dl(this,b)+" ("+a[0]+")");Dk(this);return!0}return!1}; +function gl(a,b,c,d){var e=!1;c=hl(a,fl(a,c));for(var f=1;f>>d.Ga],b==a.gd));g[3]||a.R("breakpoint cleared: "+dl(a,g)+" ("+b[0]+")");Dk(a);break}a.R("breakpoint exists: "+dl(a,g)+" ("+b[0]+")");break}}return e}function il(a,b){for(var c=1;c=b&&f>>g.Ga].pe(f&g.Ea,d==a.gd)}}}function bl(a,b){if(void 0!==b)el(a,b,a.Bc,!0),a.wc=0;else for(var c=1;c=Ik.length&&(t=a.Oa(b,1),g=Rk[h-Ik.length][t>>3&7]);var h=Ik[g[0]],r=2,B="";(164<=f&&167>=f||170<=f&&175>=f)&&(r=0);for(var f=null,J=1;J<=r;J++){var C="",E=g[J];if(void 0!==E){null==f&&(f=E>>14);var M=E&15;if(0!=M&&15!=M){var N=E&240;if(128<=N)if(0>t&&(t=a.Oa(b,1)),160<=N)C=kl(a,t>>3&7,E,b);else{var C=a,T=E,E=b,S="",M=t>>6,N=t&7;if(3>M){T=void 0;if(!M&&(!E[5]&&6==N||E[5]&& -5==N))M=2;else{if(E[5])if(4!=N)N+=8;else{var S=M,qa=C.Oa(E,1),T=qa>>6,Ia=qa>>3&7,qa=qa&7,ra="";if(S||5!=qa)ra=Lk[qa+8];4!=Ia&&(ra&&(ra+="+"),ra+=Lk[Ia+8],T&&(ra+="*"+(1<>24,S+="-"+l(-T)):S+="+"+l(T)):2==M&&(S&&(S+="+"),E[5]?(T=C.Ug(E,4),S+=ea(T)):(T=C.la(E,2),S+=m(T)));S="["+S+"]"}else S=kl(C,N,T,E);C=S}else if(16==N)C="1";else if(0==N){C=a;M=E;E=b;N=" ";switch(M&15){case 1:M&12288&&(N=l(C.Oa(E,1)));break;case 2:N=m(C.Oa(E,1)<<24>>24);break; -case 4:if(E[4]){N=ea(C.Ug(E,4));break}case 3:N=m(C.la(E,2));break;case 6:M=C;N=C.la(E,2);C=C.la(E,2);N=dl(M,[N,C,void 0]);break;default:N="imm("+m(M)+")"}C=N}else 32==N?C="["+m(a.la(b,2))+"]":48==N?(1==M?(C=a.Oa(b,1),C=C<<24>>24):C=a.la(b,2),C=b[0]+C&65535,C=ll(a,[C,b[1],void 0])[0]||m(C)):96==N?C=kl(a,(E&3840)>>8,E,b):112==N?C=kl(a,(E&3840)>>8,176,b):64==N?C="DS:[SI]":80==N&&(C="ES:[DI]");if(!C||!C.length){B="INVALID";break}0a.N.za)return"??";b+=16}else if(208==e)b+=32;else if(a=c&15,3<=a&&(8>b&&(b+=8),5==a||4==a&&d[4]))b+=16;return Kk[b]} -function ml(a,b){var c;switch(b){case "V":c=Pe(a.N);break;case "D":c=a.N.wa&Ib;break;case "I":c=a.N.wa&Jb;break;case "T":c=a.N.wa&Kb;break;case "S":c=Oe(a.N);break;case "Z":c=Ne(a.N);break;case "A":c=Me(a.N);break;case "P":c=Le(a.N);break;case "C":c=Ke(a.N);break;default:c=0}return b+(c?"1":"0")+" "}function nl(a,b){8<=b&&15>=b&&4>6,Ia=qa>>3&7,qa=qa&7,ra="";if(S||5!=qa)ra=Lk[qa+8];4!=Ia&&(ra&&(ra+="+"),ra+=Lk[Ia+8],T&&(ra+="*"+(1<>24,S+="-"+l(-T)):S+="+"+l(T)):2==M&&(S&&(S+="+"),E[5]?(T=C.Vg(E,4),S+=ea(T)):(T=C.la(E,2),S+=m(T)));S="["+S+"]"}else S=kl(C,N,T,E);C=S}else if(16==N)C="1";else if(0==N){C=a;M=E;E=b;N=" ";switch(M&15){case 1:M&12288&&(N=l(C.Oa(E,1)));break;case 2:N=m(C.Oa(E,1)<<24>>24);break; +case 4:if(E[4]){N=ea(C.Vg(E,4));break}case 3:N=m(C.la(E,2));break;case 6:M=C;N=C.la(E,2);C=C.la(E,2);N=dl(M,[N,C,void 0]);break;default:N="imm("+m(M)+")"}C=N}else 32==N?C="["+m(a.la(b,2))+"]":48==N?(1==M?(C=a.Oa(b,1),C=C<<24>>24):C=a.la(b,2),C=b[0]+C&65535,C=ll(a,[C,b[1],void 0])[0]||m(C)):96==N?C=kl(a,(E&3840)>>8,E,b):112==N?C=kl(a,(E&3840)>>8,176,b):64==N?C="DS:[SI]":80==N&&(C="ES:[DI]");if(!C||!C.length){B="INVALID";break}0a.N.za)return"??";b+=16}else if(208==e)b+=32;else if(a=c&15,3<=a&&(8>b&&(b+=8),5==a||4==a&&d[4]))b+=16;return Kk[b]} +function ml(a,b){var c;switch(b){case "V":c=Pe(a.N);break;case "D":c=a.N.wa&Ib;break;case "I":c=a.N.wa&Jb;break;case "T":c=a.N.wa&Kb;break;case "S":c=Oe(a.N);break;case "Z":c=Ne(a.N);break;case "A":c=Me(a.N);break;case "P":c=Le(a.N);break;case "C":c=Ke(a.N);break;default:c=0}return b+(c?"1":"0")+" "}function nl(a,b){8<=b&&15>=b&&4>>4),d[0]=g,d[1]=h,void 0!==t.p&&(d[2]=t.p));break}}if(d&&d.length)return d;d=b.indexOf(":");0>d?null!=e?(c=Tk(a,b),d=null):d=Tk(a,b):(e=Tk(a,b.substring(0,d)),c=Tk(a,b.substring(d+1)), -d=null)}return[c,e,d]}function Tk(a,b,c){var d;void 0!==b?(d=Kk.indexOf(b.toUpperCase()),0<=d&&(b=Yk(a,d)),d=da(b),void 0===d&&a.R("invalid "+(c?c:"value")+": "+b)):a.R("missing "+(c||"value"));return d}function ei(a,b,c,d){function e(a,b){return a[0]>b[0]?1:a[0]=g&&eb[0]?1:a[0]>>4),d[0]=g,d[1]=h,void 0!==t.p&&(d[2]=t.p));break}}if(d&&d.length)return d;d=b.indexOf(":");0>d?null!=e?(c=Tk(a,b),d=null):d=Tk(a,b):(e=Tk(a,b.substring(0,d)),c=Tk(a,b.substring(d+1)), +d=null)}return[c,e,d]}function Tk(a,b,c){var d;void 0!==b?(d=Kk.indexOf(b.toUpperCase()),0<=d&&(b=Yk(a,d)),d=da(b),void 0===d&&a.R("invalid "+(c?c:"value")+": "+b)):a.R("missing "+(c||"value"));return d}function ei(a,b,c,d){function e(a,b){return a[0]>b[0]?1:a[0]=g&&eb[0]?1:a[0]c?(a.R("out of data at address "+dl(a,b)),B=!0):(a.ud(b,c,1),r++)})})(a,g);a.R(r+" bytes read at "+c)}else a.R("sector "+e+" request out of range");else a.R("drive "+d+" not loaded");else a.R("invalid drive: "+d)}else a.R("disk controller not present")}}} -function $k(a,b,c){if(b&&"?"==b[1])a.R("\nregister commands:"),a.R("\tr\t\tdisplay all registers"),a.R("\tr [target=#]\tmodify target register"),a.R("supported targets:"),a.R("\tall registers and flags V,D,I,S,Z,A,P,C");else{var d;if(null!=b&&1c?(a.R("out of data at address "+dl(a,b)),B=!0):(a.vd(b,c,1),r++)})})(a,g);a.R(r+" bytes read at "+c)}else a.R("sector "+e+" request out of range");else a.R("drive "+d+" not loaded");else a.R("invalid drive: "+d)}else a.R("disk controller not present")}}} +function $k(a,b,c){if(b&&"?"==b[1])a.R("\nregister commands:"),a.R("\tr\t\tdisplay all registers"),a.R("\tr [target=#]\tmodify target register"),a.R("supported targets:"),a.R("\tall registers and flags V,D,I,S,Z,A,P,C");else{var d;if(null!=b&&1=a.Ig&&(c=null);switch(c){case "AL":a.N.G=a.N.G&-256|b&255;break;case "AH":a.N.G=a.N.G&-65281|b<<8&255;break;case "AX":a.N.G=a.N.G&-65536|b&65535;break;case "EAX":a.N.G=b;break;case "BL":a.N.C=a.N.C&-256|b&255;break;case "BH":a.N.C=a.N.C&-65281|b<<8&255;break;case "BX":a.N.C=a.N.C&-65536|b&65535;break;case "EBX":a.N.C=b;break;case "CL":a.N.I=a.N.I&-256|b&255;break;case "CH":a.N.I=a.N.I&-65281|b<<8&255;break;case "CX":a.N.I=a.N.I&-65536|b&65535;break;case "ECX":a.N.I=b;break;case "DL":a.N.J= a.N.J&-256|b&255;break;case "DH":a.N.J=a.N.J&-65281|b<<8&255;break;case "DX":a.N.J=a.N.J&-65536|b&65535;break;case "EDX":a.N.J=b;break;case "SP":x(a.N,w(a.N)&-65536|b&65535);break;case "ESP":x(a.N,b);break;case "BP":a.N.H=a.N.H&-65536|b&65535;break;case "EBP":a.N.H=b;break;case "SI":a.N.F=a.N.F&-65536|b&65535;break;case "ESI":a.N.F=b;break;case "DI":a.N.D=a.N.D&-65536|b&65535;break;case "EDI":a.N.D=b;break;case "DS":He(a.N,b);break;case "ES":Ie(a.N,b);break;case "SS":Kd(a.N,b);break;case "CS":Ge(a.N, -b);a.Oc=[v(a.N),Fb(a.N),void 0];break;case "IP":D(a.N,b);a.Oc=[v(a.N),Fb(a.N),void 0];break;case "PC":case "PS":Id(a.N,b);break;case "C":b?Ve(a.N):Qe(a.N);break;case "P":b?(c=a.N,Le(c)||(c.W^=1)):(c=a.N,Le(c)&&(c.W^=1));break;case "A":b?We(a.N):Re(a.N);break;case "Z":b?Xe(a.N):Se(a.N);break;case "S":b?Ye(a.N):Te(a.N);break;case "I":b?(c=a.N,c.wa|=Jb):(c=a.N,c.wa&=~Jb);break;case "D":b?(c=a.N,c.wa|=Ib):(c=a.N,c.wa&=~Ib);break;case "V":b?Ze(a.N):Ue(a.N);break;default:f=!0;if(80286<=a.N.za)switch(f= -!1,c){case "MS":$e(a.N,b);break;case "TR":a.N.eb.load(b);break;default:f=!0}if(f){a.R("unknown register: "+e);return}}Vc(a.N);a.R("\nupdated registers:");c=!0}}void 0===d&&(d=!!(a.N.gc&1));e=nl(a,8)+nl(a,11)+nl(a,9)+nl(a,10)+(4a.N.za&&(b="\n"+b,e+=f,f=""),e+="\n"+ol(a,a.N.ra,d)+" ",e+=pl(a,"LD",a.N.bd.va,a.N.bd.ta, -a.N.bd.ta+a.N.bd.rb)+" "+pl(a,"GD",null,a.N.Ec,a.N.We)+" "+pl(a,"ID",null,a.N.Sc,a.N.Xe)+" ",e=e+(b+" "+f)+nl(a,32));e+=nl(a,23)+ml(a,"V")+ml(a,"D")+ml(a,"I")+ml(a,"T")+ml(a,"S")+ml(a,"Z")+ml(a,"A")+ml(a,"P")+ml(a,"C");a.R((c?"":"\n")+e);a.Oc=[v(a.N),Fb(a.N),void 0];al(a,dl(a,a.Oc))}}function vl(a,b,c){var d="tr"==b;b=null!=c?parseInt(c,10):1;var e=1==b?0:1;Fa(b,function(){return fb(a,!0)&&a.ng(e,d,!1)},function(){Vc(a.N);fb(a,!1)})} -function al(a,b,c,d){b=ql(a,b,1);if(null!=b[0]){void 0===d&&(d=1);var e=[a.op,b[1],a.ha.Sh],e=256;if(void 0!==c){e=ql(a,c,1);if(null==e[0]||e[0]a.Xc&&a.Qc.length&&(a.Xc=0);if(0>a.Xc||b!=a.Qc[a.Xc])a.Qc.splice(0,0,b),a.Xc=0;a.Xc--}else b=a.Qc[a.Xc+1];a=b?b.split(0<=b.indexOf("|")?"|":";"):[""];for(var d in a)a[d]=ma(a[d]);return a} -function Fk(a,b){var c=!0;try{if(b.length||(a.Qf?(a.R("ended assemble @"+dl(a,a.Se)),a.Oc=a.Se,a.Qf=!1):b="?"),b=b.toLowerCase(),kb(a)&&0d||"z">>4);var kc=T[S].l;kc&&(S=kc);a.R(uc(a,Ia,ra)+" "+S)}}}else{"ds"==C&&(C="d",E=r,r="desc");for(M in Mk)if(r==M){var ed=a.Yi[M];ed?ed(E):a.R("no dump registered for "+ -r);break a}var Z=ql(a,r,2);if(null!=Z[0]){var ja="",W=0,sb="dw"==C;void 0!==E&&("l"==E.charAt(0)&&(E=E.substr(1)),(W=parseInt(E,10))&&(W=sb?W+7>>3:W+15>>4));W||(W=8);for(g=0;gsa;sa++){var va=a.Oa(Z,1);sb?sa&1&&(C+=m(E|va<<8)+(7==sa?" - ":" ")):C+=l(va)+(7==sa?"-":" ");Qa+=32<=va&&128>va?String.fromCharCode(va):".";E=va}ja&&(ja+="\n");ja+=r+" "+C+" "+Qa}ja&&a.R(ja);a.dl=Z}}}break;case "e":var Gc=g[1];if(void 0===Gc)a.R("missing address");else{var Hc= -ql(a,Gc,2);if(null!=Hc[0])for(r=2;r -vb.length&&(a.R("note: only "+vb.length+" available"),gb=vb.length);sa-=gb;0>sa&&(null!=vb[vb.length-1][1]?sa+=vb.length:(gb=sa+gb,sa=0));for(void 0!==Qa&&a.R(gb+" instructions earlier:");Z&&sa!=a.$f;){var Jc=vb[sa];if(null==Jc[1])break;Jc=[Jc[0],Jc[1],Jc[2]];a.R(jl(a,Jc,"history",-gb));++sa==vb.length&&(sa=0);a.gn=--gb;Z--}}10==Z&&(a.R("no "+r+"history available"),a.gn=void 0)}break;case "i":var Mf=g[1];if(Mf&&"?"!=Mf){var Nf=Tk(a,Mf);if(void 0!==Nf){var Ml=cc(a.ha,Nf);a.R(m(Nf)+": "+l(Ml))}}else a.R("\ninput commands:"), +b);a.Pc=[v(a.N),Fb(a.N),void 0];break;case "IP":D(a.N,b);a.Pc=[v(a.N),Fb(a.N),void 0];break;case "PC":case "PS":Id(a.N,b);break;case "C":b?Ve(a.N):Qe(a.N);break;case "P":b?(c=a.N,Le(c)||(c.W^=1)):(c=a.N,Le(c)&&(c.W^=1));break;case "A":b?We(a.N):Re(a.N);break;case "Z":b?Xe(a.N):Se(a.N);break;case "S":b?Ye(a.N):Te(a.N);break;case "I":b?(c=a.N,c.wa|=Jb):(c=a.N,c.wa&=~Jb);break;case "D":b?(c=a.N,c.wa|=Ib):(c=a.N,c.wa&=~Ib);break;case "V":b?Ze(a.N):Ue(a.N);break;default:f=!0;if(80286<=a.N.za)switch(f= +!1,c){case "MS":$e(a.N,b);break;case "TR":a.N.eb.load(b);break;default:f=!0}if(f){a.R("unknown register: "+e);return}}Vc(a.N);a.R("\nupdated registers:");c=!0}}void 0===d&&(d=!!(a.N.gc&1));e=nl(a,8)+nl(a,11)+nl(a,9)+nl(a,10)+(4a.N.za&&(b="\n"+b,e+=f,f=""),e+="\n"+ol(a,a.N.ra,d)+" ",e+=pl(a,"LD",a.N.cd.va,a.N.cd.ta, +a.N.cd.ta+a.N.cd.rb)+" "+pl(a,"GD",null,a.N.Fc,a.N.We)+" "+pl(a,"ID",null,a.N.Tc,a.N.Xe)+" ",e=e+(b+" "+f)+nl(a,32));e+=nl(a,23)+ml(a,"V")+ml(a,"D")+ml(a,"I")+ml(a,"T")+ml(a,"S")+ml(a,"Z")+ml(a,"A")+ml(a,"P")+ml(a,"C");a.R((c?"":"\n")+e);a.Pc=[v(a.N),Fb(a.N),void 0];al(a,dl(a,a.Pc))}}function vl(a,b,c){var d="tr"==b;b=null!=c?parseInt(c,10):1;var e=1==b?0:1;Fa(b,function(){return fb(a,!0)&&a.ng(e,d,!1)},function(){Vc(a.N);fb(a,!1)})} +function al(a,b,c,d){b=ql(a,b,1);if(null!=b[0]){void 0===d&&(d=1);var e=[a.pp,b[1],a.ha.Th],e=256;if(void 0!==c){e=ql(a,c,1);if(null==e[0]||e[0]a.Yc&&a.Rc.length&&(a.Yc=0);if(0>a.Yc||b!=a.Rc[a.Yc])a.Rc.splice(0,0,b),a.Yc=0;a.Yc--}else b=a.Rc[a.Yc+1];a=b?b.split(0<=b.indexOf("|")?"|":";"):[""];for(var d in a)a[d]=ma(a[d]);return a} +function Fk(a,b){var c=!0;try{if(b.length||(a.Qf?(a.R("ended assemble @"+dl(a,a.Se)),a.Pc=a.Se,a.Qf=!1):b="?"),b=b.toLowerCase(),kb(a)&&0d||"z">>4);var kc=T[S].l;kc&&(S=kc);a.R(uc(a,Ia,ra)+" "+S)}}}else{"ds"==C&&(C="d",E=r,r="desc");for(M in Mk)if(r==M){var ed=a.Zi[M];ed?ed(E):a.R("no dump registered for "+ +r);break a}var Z=ql(a,r,2);if(null!=Z[0]){var ja="",W=0,sb="dw"==C;void 0!==E&&("l"==E.charAt(0)&&(E=E.substr(1)),(W=parseInt(E,10))&&(W=sb?W+7>>3:W+15>>4));W||(W=8);for(g=0;gsa;sa++){var va=a.Oa(Z,1);sb?sa&1&&(C+=m(E|va<<8)+(7==sa?" - ":" ")):C+=l(va)+(7==sa?"-":" ");Qa+=32<=va&&128>va?String.fromCharCode(va):".";E=va}ja&&(ja+="\n");ja+=r+" "+C+" "+Qa}ja&&a.R(ja);a.el=Z}}}break;case "e":var Gc=g[1];if(void 0===Gc)a.R("missing address");else{var Hc= +ql(a,Gc,2);if(null!=Hc[0])for(r=2;r +vb.length&&(a.R("note: only "+vb.length+" available"),gb=vb.length);sa-=gb;0>sa&&(null!=vb[vb.length-1][1]?sa+=vb.length:(gb=sa+gb,sa=0));for(void 0!==Qa&&a.R(gb+" instructions earlier:");Z&&sa!=a.$f;){var Jc=vb[sa];if(null==Jc[1])break;Jc=[Jc[0],Jc[1],Jc[2]];a.R(jl(a,Jc,"history",-gb));++sa==vb.length&&(sa=0);a.hn=--gb;Z--}}10==Z&&(a.R("no "+r+"history available"),a.hn=void 0)}break;case "i":var Mf=g[1];if(Mf&&"?"!=Mf){var Nf=Tk(a,Mf);if(void 0!==Nf){var Ml=cc(a.ha,Nf);a.R(m(Nf)+": "+l(Ml))}}else a.R("\ninput commands:"), a.R("\ti [p]\tread port [p]"),a.R("warning: port accesses can affect hardware state");break;case "l":ul(a,g);break;case "m":a:{r=null;W=g[1];"?"==W&&(W=void 0);if(void 0!==W){Z=0;if("all"==W)Z=-1342177281,W=null;else if("on"==W)r=!0,W=null;else if("off"==W)r=!1,W=null;else{"keys"==W&&(W="key");"kbd"==W&&(W="keyboard");for(ja in Mk)if(W==ja){Z=Mk[ja];r=!!(a.Yb&Z);break}if(!Z){a.R("unknown message category: "+W);break a}}Z&&("on"==g[2]?(a.Yb|=Z,r=!0):"off"==g[2]&&(a.Yb&=~Z,r=!1))}Z=0;va="";for(ja in Mk)if(!W|| W==ja)if(sb=!!(a.Yb&Mk[ja]),null===r||r==sb)va&&(va+=","),++Z%10||(va+="\n\t"),"key"==ja&&(ja="keys"),va+=ja;void 0===W&&a.R("\nmessage commands:\n\tm [category] [on|off]\tturn categories on/off");a.R((null!==r?r?"messages on: ":"messages off: ":"message categories:\n\t")+(va||"none"))}break;case "o":var Of=g[1],Nl=g[2];if(Of&&"?"!=Of){var Ei=Tk(a,Of,"port #"),Fi=Tk(a,Nl);void 0!==Ei&&void 0!==Fi&&gc(a.ha,Ei,Fi)}else a.R("\noutput commands:"),a.R("\to [p] [d]\twrite data [d] to port [p]"),a.R("warning: port accesses can affect hardware state"); -break;case "p":case "pr":var Gi="pr"==g[0]?1:0,r=1+Gi;if(a.vc)a.R("step in progress");else{var qe,Z=!1,hb=[v(a.N),Fb(a.N),void 0];do switch(qe=!1,a.Oa(hb)){case 38:case 46:case 54:case 62:case 240:cl(a,hb,1);qe=!0;break;case 204:case 206:a.vc=r;cl(a,hb,1);break;case 205:case 224:case 225:case 226:a.vc=r;cl(a,hb,2);break;case 232:a.vc=r;cl(a,hb,3);break;case 154:a.vc=r;cl(a,hb,5);break;case 255:a.vc=0<=jl(a,hb).indexOf("CALL")?r:0;break;case 243:case 242:cl(a,hb,1);Z=qe=!0;break;case 108:case 109:case 110:case 111:case 164:case 165:case 166:case 167:case 170:case 171:case 172:case 173:case 174:case 175:Z&& -(a.vc=r,cl(a,hb,1))}while(qe);a.vc?(a.pe(a.Ac,hb,!0),a.uf()||(a.N.Nc(),a.vc=0)):vl(a,Gi?"tr":"t")}break;case "r":$k(a,g);break;case "t":case "tr":vl(a,g[0],g[1]);break;case "u":al(a,g[1],g[2],8);break;case "x":a:if(void 0===g[1]||"?"==g[1])a.R("\nexecution options:"),a.R("\tcs int #\tset checksum cycle interval to #"),a.R("\tcs start #\tset checksum cycle start count to #"),a.R("\tcs stop #\tset checksum cycle stop count to #"),a.R("\tsp #\t\tset speed multiplier to #");else switch(g[1]){case "cs":var md; -void 0!==g[3]&&(md=parseInt(g[3],10));switch(g[2]){case "int":a.N.U.bg=md;break;case "start":a.N.U.bh=md;break;case "stop":a.N.U.dg=md;break;default:a.R("unknown cs option");break a}void 0!==md&&Uc(a.N);a.R("checksums "+(a.N.da.Rf?"enabled":"disabled"));break;case "sp":void 0!==g[2]&&cd(a.N,parseInt(g[2],10));a.R("target speed: "+Db(a.N)+" ("+a.N.U.be+"x)");break;default:a.R("unknown option: "+g[1])}break;case "?":var r="commands:",re;for(re in Hk)r+="\n"+re+" ".substr(0,7-re.length)+Hk[re]; -ff(a)||(r+="\nnote: frequency/history disabled if no exec breakpoints");a.R(r);break;default:a.R("unknown command: "+b),c=!1}}}catch(Ol){a.R("debugger sad: "+Ol.message),c=!1}return c}Ma(function(){for(var a=db(window.document,"pcjs","debugger"),b=0;bBl){if(d.load(this.xh)){this.xf=new Ee(this,"1.17.2","failsafe");this.xf.load()&&(Fl(this,d),a=2,yl(this.xf));this.xf.set("timestamp",ta());zl(this.xf);var e=this.$c&&!this.hi;if(1==a||za("Click OK to restore the previous PCjs machine state, or CANCEL to reset the machine.")){if(c=d.parse()){var f=d.get("code"),g=d.get("data");f&&("ok"==f?d.load(g):("error"== -f&&"no machine state"!=g?(this.Ea("Error: "+g),"unable to verify user"==g&&(Da("user",""),this.ad=null)):this.R(f+": "+g),yl(d),d.load()?(c=d.parse(),e=!0):c=!1))}e&&El(this,c?d:null)}else 2==a&&d.clear()}else El(this);delete this.xh;delete this.Ni}e=Za(this.id);for(f=0;fa[1];a=a[2];this.da.$b=!0;this.Gl||(this.R("PCjs v1.17.2\nCopyright \u00a9 2012-2015 Jeff Parsons \nLicense: GPL version 3 or later "),this.Gl=!0);this.N&&(Gl(this,this.N,b,c,a),Wc(this.N));this.Jl&&(Fl(this,b),b.clear());!c&&this.xf&&(this.xf.clear(),delete this.xf)}; +function Al(a,b,c){n.call(this,"Computer",a,Al,33554432);this.da.$b=!1;this.of=a.buswidth;this.ad=Bl;this.yh=null;this.ii=!1;this.url=b?b.url:null;this.Fq=(Math.random()+.1).toString(36).substr(2,12);this.bd=Cl(this);if(this.N=ab("CPU",this.id)){this.Z=ab("Debugger",this.id);this.ha=new Rb({id:this.Vl+".bus",buswidth:this.of},this.N,this.Z);var d,e=Za(this.id);if((this.ee=ab("Panel",this.id))&&this.ee.Ng)for(b=0;bBl){if(d.load(this.yh)){this.xf=new Ee(this,"1.17.2","failsafe");this.xf.load()&&(Fl(this,d),a=2,yl(this.xf));this.xf.set("timestamp",ta());zl(this.xf);var e=this.ad&&!this.ii;if(1==a||za("Click OK to restore the previous PCjs machine state, or CANCEL to reset the machine.")){if(c=d.parse()){var f=d.get("code"),g=d.get("data");f&&("ok"==f?d.load(g):("error"== +f&&"no machine state"!=g?(this.Ca("Error: "+g),"unable to verify user"==g&&(Da("user",""),this.bd=null)):this.R(f+": "+g),yl(d),d.load()?(c=d.parse(),e=!0):c=!1))}e&&El(this,c?d:null)}else 2==a&&d.clear()}else El(this);delete this.yh;delete this.Oi}e=Za(this.id);for(f=0;fa[1];a=a[2];this.da.$b=!0;this.Hl||(this.R("PCjs v1.17.2\nCopyright \u00a9 2012-2015 Jeff Parsons \nLicense: GPL version 3 or later "),this.Hl=!0);this.N&&(Gl(this,this.N,b,c,a),Wc(this.N));this.Kl&&(Fl(this,b),b.clear());!c&&this.xf&&(this.xf.clear(),delete this.xf)}; function Fl(a,b){if(za("There may be a problem with your PCjs machine.\n\nTo help us diagnose it, click OK to send this PCjs machine state to http://www.pcjs.org.")){var c=a.De(),d=b.toString(),e={app:"PCjs",ver:"1.17.2"};e.url=a.url;e.user=c;e.type="bug";e.data=d;wa("http://www.pcjs.org/api/v1/report",!0,e)}} function wl(a,b,c){var d,e="none",f=new Ee(a,"1.17.2"),g=new Ee(a,"1.17.2","validate"),h=ta();g.set("timestamp",h);f.set("timestamp",h);f.set("version","1.17.2");f.set("url",window?window.location.href:null);f.set("browser",window?window.navigator.userAgent:"");a.N&&a.N.ec&&(c&&a.N.lb(),d=a.N.ec(b,c),"object"===typeof d&&f.set(a.N.id,d),c&&(a.N.da.$b=!1,!1===d&&(e=null)));for(var h=Za(a.id),t=0;th.indexOf("/")&&(h=window.location.pathname+h);a=a.replace(/(]*\sid=)(['"]).*?\2/,"$1$2"+c+"$2"+(d?" state=$2"+d+"$2":"")+(h?" url=$2"+h+"$2":""))}h=null;if("<"==a.charAt(0))try{window.ActiveXObject||"ActiveXObject"in window?(e||(a=a.replace(/\s*/g,"")),h=new window.ActiveXObject("Microsoft.XMLDOM"),h.async=!1,h.loadXML(a)):h=(new window.DOMParser).parseFromString(a,"text/xml")}catch(J){h= null,a=J.message}else a="unrecognized XML: "+(255/g.exec(a)){var e=d[2];b("Loading "+e+"...");wa(e,!0,null,null,function(f,g,h){if(h||!g)c(a,"unable to resolve XML reference: "+d[0]+" ("+h+")");else{if(f=d[3])if(h=g.match(new RegExp("<"+d[1]+"[^>]*>"))){for(var t=h[0],r,B=/( [a-z]+=)(['"])(.*?)\2/g;r=B.exec(f);)t=0>t.indexOf(r[1])?t.replace(">",r[0]+">"):t.replace(new RegExp(r[1]+"(['\"])(.*?)\\1"),r[0]);h[0]!=t&&(g=g.replace(h[0],t))}else{c(a,"missing <"+d[1]+"> in "+e);return}g=g.replace(/<\?xml[^>]*>[\r\n]*/, diff --git a/versions/pcjs/1.17.2/pc.js b/versions/pcjs/1.17.2/pc.js index 30ae5ef44c..7d19bfbd9c 100644 --- a/versions/pcjs/1.17.2/pc.js +++ b/versions/pcjs/1.17.2/pc.js @@ -6,174 +6,174 @@ a,b);t.setRequestHeader("Content-type","application/x-www-form-urlencoded");t.se function ra(){if(null==qa){var a=!1;if(window)try{window.localStorage.setItem("PCjs.localStorage","PCjs.localStorage"),a="PCjs.localStorage"==window.localStorage.getItem("PCjs.localStorage"),window.localStorage.removeItem("PCjs.localStorage")}catch(b){a=!1}qa=a}return qa}function sa(a){var b;if(window)try{b=window.localStorage.getItem(a)}catch(c){}return b}function ta(a,b){try{return window.localStorage.setItem(a,b),!0}catch(c){}return!1} function ua(a){if(window){var b=window?window.navigator.userAgent:"";return"iOS"==a&&b.match(/(iPod|iPhone|iPad)/)&&b.match(/AppleWebKit/)||"MSIE"==a&&b.match(/(MSIE|Trident)/)||0<=b.indexOf(a)?!0:!1}return!1}var va={init:[],show:[],exit:[]},wa=!1,xa=!0;function ya(a,b){if(window){var c=window[a];window[a]="function"!==typeof c?b:function(){c&&c();b()}}}function za(a){va.init.push(a)} function Aa(a){if(xa)try{for(var b=0;b=this.x&&a=this.y&&b=c>>2);d?(b=new $a(a.x,a.y,a.yc,a.Gc*b/c|0),a.y+=b.Gc,a.Gc-=b.Gc):(b=new $a(a.x,a.y,a.yc*b/c|0,a.Gc),a.x+=b.yc,a.yc-=b.yc);return b}k=Ya.prototype;k.Eb=function(a,b,c){return this.ya&&this.ya.Eb(a,b,c)||this.U&&this.U.Eb(a,b,c)||this.Ca&&this.Ca.Eb(a,b,c)?!0:this.parent.Eb.call(this,a,b,c)};k.zc=function(a,b,c,d){this.ya=a;this.ja=b;this.U=c;this.Xa=d;this.Ca=bb(a,"Keyboard")};k.bc=function(a,b){b||cb();return!0};k.ac=function(){return!0}; -k.ti=function(a,b){a.button||(this.ig=b?0:-1,db(this,a,b))};k.el=function(a){db(this,a)}; -function db(a,b,c){var d=1280/a.canvas.offsetWidth,e=720/a.canvas.offsetHeight,f=a.canvas.getBoundingClientRect(),d=(b.clientX-f.left)*d|0;b=(b.clientY-f.top)*e|0;null==c&&(a.ig||(a.ig=Math.abs(a.Id-d)>Math.abs(a.Jd-b)?1:2),1==a.ig?b=a.Jd:2==a.ig&&(d=a.Id));a.Id=d;a.Jd=b;if(0<=d&&1280>d&&0<=b&&720>b){a:{c=d;if(960>c&&a.Qa&&a.Qa.cf)for(f=0;f>fb&gb))*a.ja.Hb-1;0d&&(f=d);c=f;break a}c=q}c!=q&&(c&=-16,c!=a.sk&&(hb(a,c,!0),a.sk=c))}} -k.Hd=function(){if(this.canvas&&this.hh&&this.Rd&&this.Ce){var a=this.Rd.width,b=this.Rd.height;this.Ce.fillStyle="black";this.Ce.fillRect(0,0,a,b);ib(this,18,this.Rd,this.Ce,this.canvas.style.color);jb(this,3);u(this,"CPU");u(this,"Target");u(this,"Current");kb(this);u(this,this.U.za);u(this,this.U.S.Me.toFixed(2)+"Mhz");u(this,lb(this.U));kb(this,2);jb(this,8);this.zo=16;this.Ao=4;u(this,"AX",this.U.G,2);u(this,"DS",this.U.gb.ta,0,1);u(this,"DX",this.U.J,2);u(this,"SI",this.U.F,0,1.5);u(this,"BX", -this.U.C,2);u(this,"ES",this.U.Oa.ta,0,1);u(this,"CX",this.U.I,2);u(this,"DI",this.U.D,0,1.5);u(this,"CS",this.U.na.ta,2);u(this,"SS",this.U.sa.ta,0,1);u(this,"IP",v(this.U),2);u(this,"SP",w(this.U),0,1.5);var c;u(this,"PS",c=ob(this.U),2);u(this,"BP",this.U.H,0,1.5);jb(this,9);u(this,"V"+(c&pb?1:0));u(this,"D"+(c&qb?1:0));u(this,"I"+(c&rb?1:0));u(this,"T"+(c&sb?1:0));u(this,"S"+(c&tb?1:0));u(this,"Z"+(c&ub?1:0));u(this,"A"+(c&vb?1:0));u(this,"P"+(c&wb?1:0));u(this,"C"+(c&xb?1:0),0,2);hb(this,this.sk); -this.hh.drawImage(this.Rd,0,0,a,b,this.or,this.rr,this.Mq,this.Pq)}}; -function hb(a,b,c){if(a.hh&&a.Rd&&a.Ce){var d=a.Rd.width;a.Ce.fillStyle="black";a.Ce.fillRect(0,360,d,360);ib(a,378,a.Rd,a.Ce,a.canvas.style.color);jb(a,24);if(null==b)u(a,"Mouse over memory to dump");else{u(a,"0x"+da(b),null,0,1);for(var e=1;16>=e;e++){for(var f="",g=1;8>=g;g++){var h=yb(a.ja,b++);u(a,ea(h),null,1);f+=32<=h&&128>h?String.fromCharCode(h):"."}u(a,f,null,0,1)}}c&&a.hh.drawImage(a.Rd,0,360,d,360,a.mr,a.pr,a.Kq,a.Nq)}} -function ib(a,b,c,d,e){var f,g=a.Kp=10;a.Oc=g;a.$e=b;a.vf=a.Yk=18;f||(f=a.Uk||a.Yk+"px Monaco, Lucida Console, Courier New");a.uh=a.Uk=f;c&&(a.Tm=c);d&&(a.fd=d,a.Vm=e||"white")}function jb(a,b){a.wi=a.Tm.width/b|0}function kb(a,b){a.Oc=a.Kp;a.$e+=(a.vf+2)*(b||1)}function u(a,b,c,d,e){a.fd.font=a.uh;a.fd.fillStyle=a.Vm;a.fd.fillText(b,a.Oc,a.$e);a.Oc+=a.wi;null!=c&&(b=c.toString(),16==a.zo&&(b="0x"+da(c,a.Ao)),a.fd.fillText(b,a.Oc,a.$e),a.Oc+=a.wi);d&&(a.Oc+=a.wi*d);e&&kb(a,e)} -function cb(){for(var a=!1,b=Ta(window.document,"pcjs","panel"),c=0;c=this.Af?12:24>=this.Af?14:15;this.Hb=1<>2;this.Ba=this.Hb-1;this.Uf=this.ii/this.Hb|0;this.vc=this.Uf-1;this.Mg=[];this.Ng=[];this.Wi();p(this)}La(n,zb); -var eb=131071,fb=18,gb=1023;k=zb.prototype;k.Wi=function(){this.ma=Array(this.Uf);for(var a=0;a>>a.Ra;0a.Hb?a.Hb:c;if(g&&g.size){if(g.type==d&&g.V==e){if(b+c<=g.Of)return g.ai+=g.Of-b,g.Of=b,!0;if(b>=g.Of+g.ai){r=g.size-(b-h);r>c&&(r=c);g.ai=b-g.Of+r;c-=r;b=h+a.Hb;continue}}return Db(1,b,c)}a.ma[f++]=new Ab(b,r,a.Hb,d,e);c-=r;b=h+a.Hb}return 0>>this.Ra;0>>a.Ra;0>>this.Ra].Cb(a&this.Ba)};function yb(a,b){return a.ma[(b&a.ab)>>>a.Ra].Xj(b&a.Ba)} -k.la=function(a){var b=a&this.Ba;a=(a&this.ab)>>>this.Ra;return b!=this.Ba?this.ma[a].pm(b):this.ma[a++].Cb(b)|this.ma[a&this.vc].Cb(0)<<8};function Fb(a,b){var c=b&a.Ba,d=(b&a.ab)>>>a.Ra;return c!=a.Ba?a.ma[d].Bp(c):a.ma[d++].Xj(c)|a.ma[d&a.vc].Xj(0)<<8}k.Wk=function(a){var b=a&this.Ba;a=(a&this.ab)>>>this.Ra;if(b>>c|this.ma[a+1&this.vc].od(0)<<32-c};k.Ue=function(a,b){this.ma[(a&this.ab)>>>this.Ra].Fb(a&this.Ba,b&255)}; -k.Ka=function(a,b){var c=a&this.Ba,d=(a&this.ab)>>>this.Ra;c!=this.Ba?this.ma[d].Hm(c,b&65535):(this.ma[d++].Fb(c,b&255),this.ma[d&this.vc].Fb(0,b>>8&255))};function Gb(a,b,c){var d=b&a.Ba;b=(b&a.ab)>>>a.Ra;d!=a.Ba?a.ma[b].Jp(d,c&65535):(a.ma[b++].fk(d,c&255),a.ma[b&a.vc].fk(0,c>>8&255))} -k.Cm=function(a,b){var c=a&this.Ba,d=(a&this.ab)>>>this.Ra;if(c>>32-f)}}; -function Hb(a){for(var b=0,c=[],d=0;d=this.x&&a=this.y&&b=c>>2);d?(b=new $a(a.x,a.y,a.zc,a.Hc*b/c|0),a.y+=b.Hc,a.Hc-=b.Hc):(b=new $a(a.x,a.y,a.zc*b/c|0,a.Hc),a.x+=b.zc,a.zc-=b.zc);return b}k=Ya.prototype;k.Eb=function(a,b,c){return this.ya&&this.ya.Eb(a,b,c)||this.U&&this.U.Eb(a,b,c)||this.Ca&&this.Ca.Eb(a,b,c)?!0:this.parent.Eb.call(this,a,b,c)};k.Ac=function(a,b,c,d){this.ya=a;this.ja=b;this.U=c;this.Xa=d;this.Ca=bb(a,"Keyboard")};k.bc=function(a,b){b||cb();return!0};k.ac=function(){return!0}; +k.vi=function(a,b){a.button||(this.jg=b?0:-1,db(this,a,b))};k.fl=function(a){db(this,a)}; +function db(a,b,c){var d=1280/a.canvas.offsetWidth,e=720/a.canvas.offsetHeight,f=a.canvas.getBoundingClientRect(),d=(b.clientX-f.left)*d|0;b=(b.clientY-f.top)*e|0;null==c&&(a.jg||(a.jg=Math.abs(a.Id-d)>Math.abs(a.Jd-b)?1:2),1==a.jg?b=a.Jd:2==a.jg&&(d=a.Id));a.Id=d;a.Jd=b;if(0<=d&&1280>d&&0<=b&&720>b){a:{c=d;if(960>c&&a.Qa&&a.Qa.cf)for(f=0;f>fb&gb))*a.ja.Hb-1;0d&&(f=d);c=f;break a}c=q}c!=q&&(c&=-16,c!=a.tk&&(hb(a,c,!0),a.tk=c))}} +k.Hd=function(){if(this.canvas&&this.ih&&this.Rd&&this.Ce){var a=this.Rd.width,b=this.Rd.height;this.Ce.fillStyle="black";this.Ce.fillRect(0,0,a,b);ib(this,18,this.Rd,this.Ce,this.canvas.style.color);jb(this,3);u(this,"CPU");u(this,"Target");u(this,"Current");kb(this);u(this,this.U.za);u(this,this.U.S.Me.toFixed(2)+"Mhz");u(this,lb(this.U));kb(this,2);jb(this,8);this.Ao=16;this.Bo=4;u(this,"AX",this.U.G,2);u(this,"DS",this.U.gb.ta,0,1);u(this,"DX",this.U.J,2);u(this,"SI",this.U.F,0,1.5);u(this,"BX", +this.U.C,2);u(this,"ES",this.U.Oa.ta,0,1);u(this,"CX",this.U.I,2);u(this,"DI",this.U.D,0,1.5);u(this,"CS",this.U.na.ta,2);u(this,"SS",this.U.sa.ta,0,1);u(this,"IP",v(this.U),2);u(this,"SP",w(this.U),0,1.5);var c;u(this,"PS",c=ob(this.U),2);u(this,"BP",this.U.H,0,1.5);jb(this,9);u(this,"V"+(c&pb?1:0));u(this,"D"+(c&qb?1:0));u(this,"I"+(c&rb?1:0));u(this,"T"+(c&sb?1:0));u(this,"S"+(c&tb?1:0));u(this,"Z"+(c&ub?1:0));u(this,"A"+(c&vb?1:0));u(this,"P"+(c&wb?1:0));u(this,"C"+(c&xb?1:0),0,2);hb(this,this.tk); +this.ih.drawImage(this.Rd,0,0,a,b,this.pr,this.sr,this.Nq,this.Qq)}}; +function hb(a,b,c){if(a.ih&&a.Rd&&a.Ce){var d=a.Rd.width;a.Ce.fillStyle="black";a.Ce.fillRect(0,360,d,360);ib(a,378,a.Rd,a.Ce,a.canvas.style.color);jb(a,24);if(null==b)u(a,"Mouse over memory to dump");else{u(a,"0x"+da(b),null,0,1);for(var e=1;16>=e;e++){for(var f="",g=1;8>=g;g++){var h=yb(a.ja,b++);u(a,ea(h),null,1);f+=32<=h&&128>h?String.fromCharCode(h):"."}u(a,f,null,0,1)}}c&&a.ih.drawImage(a.Rd,0,360,d,360,a.nr,a.qr,a.Lq,a.Oq)}} +function ib(a,b,c,d,e){var f,g=a.Lp=10;a.Pc=g;a.$e=b;a.vf=a.Zk=18;f||(f=a.Vk||a.Zk+"px Monaco, Lucida Console, Courier New");a.vh=a.Vk=f;c&&(a.Um=c);d&&(a.gd=d,a.Wm=e||"white")}function jb(a,b){a.xi=a.Um.width/b|0}function kb(a,b){a.Pc=a.Lp;a.$e+=(a.vf+2)*(b||1)}function u(a,b,c,d,e){a.gd.font=a.vh;a.gd.fillStyle=a.Wm;a.gd.fillText(b,a.Pc,a.$e);a.Pc+=a.xi;null!=c&&(b=c.toString(),16==a.Ao&&(b="0x"+da(c,a.Bo)),a.gd.fillText(b,a.Pc,a.$e),a.Pc+=a.xi);d&&(a.Pc+=a.xi*d);e&&kb(a,e)} +function cb(){for(var a=!1,b=Ta(window.document,"pcjs","panel"),c=0;c=this.Af?12:24>=this.Af?14:15;this.Hb=1<>2;this.Ba=this.Hb-1;this.Uf=this.ji/this.Hb|0;this.wc=this.Uf-1;this.Ng=[];this.Og=[];this.Xi();p(this)}La(n,zb); +var eb=131071,fb=18,gb=1023;k=zb.prototype;k.Xi=function(){this.ma=Array(this.Uf);for(var a=0;a>>a.Ra;0a.Hb?a.Hb:c;if(g&&g.size){if(g.type==d&&g.V==e){if(b+c<=g.Of)return g.bi+=g.Of-b,g.Of=b,!0;if(b>=g.Of+g.bi){r=g.size-(b-h);r>c&&(r=c);g.bi=b-g.Of+r;c-=r;b=h+a.Hb;continue}}return Db(1,b,c)}a.ma[f++]=new Ab(b,r,a.Hb,d,e);c-=r;b=h+a.Hb}return 0>>this.Ra;0>>a.Ra;0>>this.Ra].Cb(a&this.Ba)};function yb(a,b){return a.ma[(b&a.ab)>>>a.Ra].Yj(b&a.Ba)} +k.la=function(a){var b=a&this.Ba;a=(a&this.ab)>>>this.Ra;return b!=this.Ba?this.ma[a].qm(b):this.ma[a++].Cb(b)|this.ma[a&this.wc].Cb(0)<<8};function Fb(a,b){var c=b&a.Ba,d=(b&a.ab)>>>a.Ra;return c!=a.Ba?a.ma[d].Cp(c):a.ma[d++].Yj(c)|a.ma[d&a.wc].Yj(0)<<8}k.Xk=function(a){var b=a&this.Ba;a=(a&this.ab)>>>this.Ra;if(b>>c|this.ma[a+1&this.wc].pd(0)<<32-c};k.Ue=function(a,b){this.ma[(a&this.ab)>>>this.Ra].Fb(a&this.Ba,b&255)}; +k.Ka=function(a,b){var c=a&this.Ba,d=(a&this.ab)>>>this.Ra;c!=this.Ba?this.ma[d].Im(c,b&65535):(this.ma[d++].Fb(c,b&255),this.ma[d&this.wc].Fb(0,b>>8&255))};function Gb(a,b,c){var d=b&a.Ba;b=(b&a.ab)>>>a.Ra;d!=a.Ba?a.ma[b].Kp(d,c&65535):(a.ma[b++].gk(d,c&255),a.ma[b&a.wc].gk(0,c>>8&255))} +k.Dm=function(a,b){var c=a&this.Ba,d=(a&this.ab)>>>this.Ra;if(c>>32-f)}}; +function Hb(a){for(var b=0,c=[],d=0;d>1),this.ia=new Int32Array(this.buffer,0,c>>2),this.me(Ob?Rb:Sb);else{this.ia=Array(c>>2);for(e=0;e>1]}function cc(a){return this.of.getInt32(a,!0)}function dc(a){return a&3?this.Wb[a]|this.Wb[a+1]<<8|this.Wb[a+2]<<16|this.Wb[a+3]<<24:this.ia[a>>2]} -function ec(a,b){this.Wb[a]=b;this.Ha=!0}function fc(a,b){this.Wb[a]=b;this.Ha=!0}function gc(a,b){this.of.setUint16(a,b,!0);this.Ha=!0}function hc(a,b){a&1?(this.Wb[a]=b,this.Wb[a+1]=b>>8):this.vk[a>>1]=b;this.Ha=!0}function ic(a,b){this.of.setInt32(a,b,!0);this.Ha=!0}function jc(a,b){a&3?(this.Wb[a]=b,this.Wb[a+1]=b>>8,this.Wb[a+2]=b>>16,this.Wb[a+3]=b>>24):this.ia[a>>2]=b;this.Ha=!0} +function Ab(a,b,c,d,e){this.ia=null;this.offset=0;this.Of=a;this.bi=b;this.size=c||0;this.type=d||Pb;this.Li=d==Qb;this.V=null;this.Ha=this.Lk=!1;if(c)if(e)this.V=e,a=e.Yk(a),this.ia=a[0],this.offset=a[1],this.me(e.Si());else if(Xa)this.buffer=new ArrayBuffer(c),this.of=new DataView(this.buffer,0,c),this.Wb=new Uint8Array(this.buffer,0,c),this.wk=new Uint16Array(this.buffer,0,c>>1),this.ia=new Int32Array(this.buffer,0,c>>2),this.me(Ob?Rb:Sb);else{this.ia=Array(c>>2);for(e=0;e>1]}function cc(a){return this.of.getInt32(a,!0)}function dc(a){return a&3?this.Wb[a]|this.Wb[a+1]<<8|this.Wb[a+2]<<16|this.Wb[a+3]<<24:this.ia[a>>2]} +function ec(a,b){this.Wb[a]=b;this.Ha=!0}function fc(a,b){this.Wb[a]=b;this.Ha=!0}function gc(a,b){this.of.setUint16(a,b,!0);this.Ha=!0}function hc(a,b){a&1?(this.Wb[a]=b,this.Wb[a+1]=b>>8):this.wk[a>>1]=b;this.Ha=!0}function ic(a,b){this.of.setInt32(a,b,!0);this.Ha=!0}function jc(a,b){a&3?(this.Wb[a]=b,this.Wb[a+1]=b>>8,this.Wb[a+2]=b>>16,this.Wb[a+3]=b>>24):this.ia[a>>2]=b;this.Ha=!0} var Ub=[function(a){return this.ia[a>>2]>>>((a&3)<<3)&255},function(a){var b=a>>2;a=(a&3)<<3;var c=this.ia[b]>>a;return 24>a?c&65535:c&255|(this.ia[b+1]&255)<<8},function(a){var b=a>>2;a=(a&3)<<3;var c=this.ia[b];a&&(c=c>>>a|this.ia[b+1]<<32-a);return c},function(a,b){var c=a>>2,d=(a&3)<<3;this.ia[c]=this.ia[c]&~(255<>2,d=(a&3)<<3;24>d?this.ia[c]=this.ia[c]&~(65535<>8);this.Ha= !0},function(a,b){var c=a>>2,d=(a&3)<<3;if(d){var e=-1<>>32-d}else this.ia[c]=b;this.Ha=!0}];if(Xa)var Sb=[Zb,ac,cc,ec,gc,ic],Rb=[$b,bc,dc,fc,hc,jc]; -Ab.prototype={constructor:Ab,parent:null,save:function(){var a,b;if(this.V)a=null;else if(Xa)for(a=Array(this.size>>2),b=0;b>>b.Ra;d=d+e-1>>>b.Ra;c.si=0;for(c.Vf=0;f<=d;){e=b.ma[f];c.si+=e.size;if(e.size){var g=f,g=g|e.type<<28;c.di[c.Vf++]=g}f++}a.Qa=c;a.om=a.Qa.Vf*a.ja.Hb/691200;e=0;a.Qa.pi=0;a.Qa.df||(a.Qa.df=[]);d=-1;for(var g=0,h=-1,b=0;b>>28;f&=eb;if(c!=d||f!= -h+1){if(h=b-g)d=a.Qa.df[a.Qa.pi++]=g|h<>fb&gb,a.Qa.cf.push(ab(c,d,f,0==b)),f-=d;for(b=0;b>28&7;f=f>>fb&gb;d=e=a.Qa.cf[b];g=a.Wm;(h=Wb[c])||(h=new Za);g.strokeStyle="black";g.strokeRect(d.x,d.y,d.yc,d.Gc);g.fillStyle="string"==typeof h?h:h.toString();g.fillRect(d.x,d.y,d.yc, -d.Gc);d=a;g=e;d.uh=d.Uk;d.vf=d.Yk;e=g.x+(g.yc>>1);var h=g.y+(g.Gc>>1),r=g.Gc;g.yc>1;d.$e+=(d.vf>>1)-2;u(d,c);d.Sk&&(d.fd.restore(),d.Sk=!1)}}}else u(a,"This space intentionally left blank");a.hh.drawImage(a.Xf,0,0,a.Xf.width,a.Xf.height,a.nr, -a.qr,a.Lq,a.Oq);a.ln=!1}}k.qd=function(){this.video&&this.video.qd()}; -k.Eb=function(a,b,c){var d=this;a=!1;switch(b){case "run":this.oa[b]=c;c.onclick=function(){var a;if(a=d.ya)if(a=d.ya,a.ea.Zb)a=!0;else{var b=null,c,h=Ma(a.id);for(c=0;cc&&(c=60);2>c&&(c=2);var d=1;b&&1a.S.zh&&(c=Math.round(c/a.S.ce));return c}function mc(a){a.S.ae=0;a.Qe=a.ge=a.jd=a.A=0;nc(a);uc(a,1)} -function lb(a){return a.ea.Ib&&a.S.ae?a.S.ae.toFixed(2)+"Mhz":"Stopped"}function uc(a,b,c){if(void 0!==b){.8>a.S.ae/a.S.Me&&(b=1);a.S.ce=b;b=a.S.zh*a.S.ce;if(a.S.Me!=b){a.S.Me=b;b=a.S.Me.toFixed(2)+"Mhz";var d=a.oa.setSpeed;d&&(d.textContent=b);a.kc("target speed: "+b)}c&&a.qd()}wc(a,a.ge);a.ge=0;a.S.zf=ka();a.S.Ne=0;xc(a)} -function lc(a,b){if(Ua(a,!0)){if(!a.ea.Ib){uc(a);a.ya&&a.ya.start(a.S.zf,yc(a));a.ea.Ib=!0;a.ea.Rk=!0;a.ca&&zc(a.ca);var c=a.oa.run;c&&(c.textContent="Halt");a.Hd(!0);b&&a.qd()}a.S.dj>=a.S.kd&&xc(a,!0);a.S.og=0;a.S.Bh=ka();a.S.Ne&&(c=a.S.Bh-a.S.Ne,c>a.S.fl&&(a.S.zf+=c,a.S.zf>a.S.Bh&&(a.S.zf=a.S.Bh)));try{do{var d=a.ea.mh?1:a.S.xo;if(a.ca){Ac(a.ca);var e=a.ca,c=d,f=e.Lb[0];if(f.Ie){var g=(yc(e.U,e.Yd)-f.Cd)/e.Lh|0,h=Bc(e,0)-g;6==f.mode&&(h-=g);var r=h*e.Lh|0;6==f.mode&&(r>>=1);c>r&&(c=r)}var d=c,t= -a.ca,c=d;if(t.ba&&t.ba[11]&64){var B=t.Df-yc(t.U,t.Yd);0B&&(c=B)}d=c}a.Em(d);var I=a.jd-a.A;a.ge+=I;a.S.og+=I;wc(a,0,!0);var c=a,H=I;if(c.ea.mh){var L=!1;c.S.Dh=c.S.Dh+c.Vk()|0;c.S.Bf-=H;0>=c.S.Bf&&(c.S.Bf+=c.S.jg,L=!0);0<=c.S.kg&&c.S.kg<=yc(c)&&(c.S.jg=c.S.kg=-1,nc(c),rc(c),L=!0);L&&c.kc(yc(c)+" cycles: checksum="+da(c.S.Dh))}a.S.mg-=I;0>=a.S.mg&&(a.S.mg+=a.S.jl,oc(a));a.S.lg-=I;0>=a.S.lg&&(a.S.lg+=a.S.il,a.Hd());a.S.ng-=I;if(0>=a.S.ng){a.S.ng+=a.S.cj;break}}while(a.ea.Ib)}catch(U){rc(a);oc(a); -a.Hd();a.ya&&a.ya.stop(ka(),yc(a));Ua(a,!1);Wa(a,U.message);return}d=setTimeout;e=a.Eo;a.S.Ne=ka();f=a.S.fl;a.S.og&&(f=Math.round(f*a.S.og/a.S.cj));f-=a.S.Ne-a.S.Bh;if(g=a.S.Ne-a.S.zf)a.S.ae=Math.round(a.ge/(10*g))/100,864E5<=g&&(a.Qe=0,a.ca&&Ac(a.ca,!0),uc(a));if(0>f||a.S.aethis.$b?this.ua+a:Rc.call(this,0,0,c)}function Rc(a,b,c){c||Lc.call(this.U,13,0);return q} +Ab.prototype={constructor:Ab,parent:null,save:function(){var a,b;if(this.V)a=null;else if(Xa)for(a=Array(this.size>>2),b=0;b>>b.Ra;d=d+e-1>>>b.Ra;c.ti=0;for(c.Vf=0;f<=d;){e=b.ma[f];c.ti+=e.size;if(e.size){var g=f,g=g|e.type<<28;c.ei[c.Vf++]=g}f++}a.Qa=c;a.pm=a.Qa.Vf*a.ja.Hb/691200;e=0;a.Qa.qi=0;a.Qa.df||(a.Qa.df=[]);d=-1;for(var g=0,h=-1,b=0;b>>28;f&=eb;if(c!=d||f!= +h+1){if(h=b-g)d=a.Qa.df[a.Qa.qi++]=g|h<>fb&gb,a.Qa.cf.push(ab(c,d,f,0==b)),f-=d;for(b=0;b>28&7;f=f>>fb&gb;d=e=a.Qa.cf[b];g=a.Xm;(h=Wb[c])||(h=new Za);g.strokeStyle="black";g.strokeRect(d.x,d.y,d.zc,d.Hc);g.fillStyle="string"==typeof h?h:h.toString();g.fillRect(d.x,d.y,d.zc, +d.Hc);d=a;g=e;d.vh=d.Vk;d.vf=d.Zk;e=g.x+(g.zc>>1);var h=g.y+(g.Hc>>1),r=g.Hc;g.zc>1;d.$e+=(d.vf>>1)-2;u(d,c);d.Tk&&(d.gd.restore(),d.Tk=!1)}}}else u(a,"This space intentionally left blank");a.ih.drawImage(a.Xf,0,0,a.Xf.width,a.Xf.height,a.or, +a.rr,a.Mq,a.Pq);a.mn=!1}}k.rd=function(){this.video&&this.video.rd()}; +k.Eb=function(a,b,c){var d=this;a=!1;switch(b){case "run":this.oa[b]=c;c.onclick=function(){var a;if(a=d.ya)if(a=d.ya,a.ea.Zb)a=!0;else{var b=null,c,h=Ma(a.id);for(c=0;cc&&(c=60);2>c&&(c=2);var d=1;b&&1a.S.Ah&&(c=Math.round(c/a.S.ce));return c}function mc(a){a.S.ae=0;a.Qe=a.ge=a.kd=a.A=0;nc(a);uc(a,1)} +function lb(a){return a.ea.Ib&&a.S.ae?a.S.ae.toFixed(2)+"Mhz":"Stopped"}function uc(a,b,c){if(void 0!==b){.8>a.S.ae/a.S.Me&&(b=1);a.S.ce=b;b=a.S.Ah*a.S.ce;if(a.S.Me!=b){a.S.Me=b;b=a.S.Me.toFixed(2)+"Mhz";var d=a.oa.setSpeed;d&&(d.textContent=b);a.lc("target speed: "+b)}c&&a.rd()}wc(a,a.ge);a.ge=0;a.S.zf=ka();a.S.Ne=0;xc(a)} +function lc(a,b){if(Ua(a,!0)){if(!a.ea.Ib){uc(a);a.ya&&a.ya.start(a.S.zf,yc(a));a.ea.Ib=!0;a.ea.Sk=!0;a.ca&&zc(a.ca);var c=a.oa.run;c&&(c.textContent="Halt");a.Hd(!0);b&&a.rd()}a.S.ej>=a.S.ld&&xc(a,!0);a.S.pg=0;a.S.Ch=ka();a.S.Ne&&(c=a.S.Ch-a.S.Ne,c>a.S.gl&&(a.S.zf+=c,a.S.zf>a.S.Ch&&(a.S.zf=a.S.Ch)));try{do{var d=a.ea.nh?1:a.S.yo;if(a.ca){Ac(a.ca);var e=a.ca,c=d,f=e.Lb[0];if(f.Ie){var g=(yc(e.U,e.Yd)-f.Cd)/e.Mh|0,h=Bc(e,0)-g;6==f.mode&&(h-=g);var r=h*e.Mh|0;6==f.mode&&(r>>=1);c>r&&(c=r)}var d=c,t= +a.ca,c=d;if(t.ba&&t.ba[11]&64){var B=t.Df-yc(t.U,t.Yd);0B&&(c=B)}d=c}a.Fm(d);var I=a.kd-a.A;a.ge+=I;a.S.pg+=I;wc(a,0,!0);var c=a,H=I;if(c.ea.nh){var L=!1;c.S.Eh=c.S.Eh+c.Wk()|0;c.S.Bf-=H;0>=c.S.Bf&&(c.S.Bf+=c.S.kg,L=!0);0<=c.S.lg&&c.S.lg<=yc(c)&&(c.S.kg=c.S.lg=-1,nc(c),rc(c),L=!0);L&&c.lc(yc(c)+" cycles: checksum="+da(c.S.Eh))}a.S.ng-=I;0>=a.S.ng&&(a.S.ng+=a.S.kl,oc(a));a.S.mg-=I;0>=a.S.mg&&(a.S.mg+=a.S.jl,a.Hd());a.S.og-=I;if(0>=a.S.og){a.S.og+=a.S.dj;break}}while(a.ea.Ib)}catch(U){rc(a);oc(a); +a.Hd();a.ya&&a.ya.stop(ka(),yc(a));Ua(a,!1);Wa(a,U.message);return}d=setTimeout;e=a.Fo;a.S.Ne=ka();f=a.S.gl;a.S.pg&&(f=Math.round(f*a.S.pg/a.S.dj));f-=a.S.Ne-a.S.Ch;if(g=a.S.Ne-a.S.zf)a.S.ae=Math.round(a.ge/(10*g))/100,864E5<=g&&(a.Qe=0,a.ca&&Ac(a.ca,!0),uc(a));if(0>f||a.S.aethis.$b?this.ua+a:Rc.call(this,0,0,c)}function Rc(a,b,c){c||Lc.call(this.U,13,0);return q} function Tc(a,b,c){return a+b<=this.$b?this.ua+a:Uc.call(this,0,0,c)}function Vc(a,b,c){return a+b>this.$b?this.ua+a:Uc.call(this,0,0,c)}function Uc(a,b,c){c||Lc.call(this.U,13,0);return q} function Wc(a,b){var c=this.U,d=c.ib.ua,e=this.Wa,f=c.ib.ta;if(!b){if(768!=c.ib.type)return Lc.call(c,10,a,!0),!1;c.Ka(c.ib.Md+4,c.ib.jb&-769|256)}if(c.ib.load(a)==q)return!1;var g=c.ib.ua;if(b){if(768==c.ib.type)return Lc.call(c,13,a,!0),!1;c.Ka(c.ib.Md+4,c.ib.jb|=768);c.ib.type=768}c.Ka(d+14,v(c));c.Ka(d+16,ob(c));c.Ka(d+18,c.G);c.Ka(d+20,c.I);c.Ka(d+22,c.J);c.Ka(d+24,c.C);c.Ka(d+26,w(c));c.Ka(d+28,c.H);c.Ka(d+30,c.F);c.Ka(d+32,c.D);c.Ka(d+34,c.Oa.ta);c.Ka(d+36,c.na.ta);c.Ka(d+38,c.sa.ta);c.Ka(d+ -40,c.gb.ta);var d=38,h=26;Xc(c,c.la(g+16)|(b?16384:0));c.G=c.la(g+18);c.I=c.la(g+20);c.J=c.la(g+22);c.C=c.la(g+24);c.H=c.la(g+28);c.F=c.la(g+30);c.D=c.la(g+32);c.Oa.load(c.la(g+34));c.gb.load(c.la(g+40));Yc(c,c.la(g+14),c.la(g+36));this.Wa>13;if(6144<=h){U=c&3;if(U>a.Wa){if(!1!==B&&!(ba==a.Wa||g&1024&&ba<=a.Wa)){r=q;break}H=e.Fa();Zc(e,e.Fa(),!0);y(e,H);a.sh=!0}H=!1}else if(1024==h)H=!0,L=-1,I=c,Uh||2048==(h&2560))){d||Lc.call(e,13,c,!!g);r=q;break}}else if(3==a.id){if(!B||4096>h||2048==(h&2560)){d|| -Lc.call(e,13,c,!0);r=q;break}}else if(4==a.id){if(!B||256!=h&&768!=h){d||Lc.call(e,10,c,!0);r=q;break}}else if(6==a.id&&!(g&4096)&&768>13;80386>a.U.za||!(a.Bi&64)?(a.te=2,a.fa=65535):(a.te=4,a.fa=-1)}else a.load=Ic,a.dl=Mc,a.Fc=Oc,a.hc=Pc,a.$b=65535,a.Wa=a.pc=0,a.Md=q,a.te=2,a.fa=65535;a.Xc=a.te;a.ha=a.fa} -function bd(a){this.za=a.model||8088;var b=0;switch(this.za){default:b=4772727;break;case 80286:b=6E6;break;case 80386:b=16E6}kc.call(this,a,b);this.lk=61442;this.Jg=Cc;this.Ig=4;this.Ef=255;this.B=80286<=this.za?cd:dd;this.Pa=ed;this.ok=fd;this.pk=id;this.qk=jd;80186<=this.za&&(this.Pa=ed.slice(),this.ok=fd.slice(),this.pk=id.slice(),this.Ef=31,this.Pa[15]=kd,this.Pa[96]=ld,this.Pa[97]=md,this.Pa[98]=nd,this.Pa[99]=kd,this.Pa[100]=kd,this.Pa[101]=kd,this.Pa[102]=kd,this.Pa[103]=kd,this.Pa[104]=od, -this.Pa[105]=pd,this.Pa[106]=qd,this.Pa[107]=rd,this.Pa[108]=sd,this.Pa[109]=td,this.Pa[110]=ud,this.Pa[111]=vd,this.Pa[192]=wd,this.Pa[193]=xd,this.Pa[200]=yd,this.Pa[201]=zd,this.Pa[241]=Ad,this.ok[7]=Bd,this.pk[7]=Bd,80286<=this.za&&(this.lk=2,this.Jg|=28672,this.Ig=0,this.Om=Cd,this.Pa[15]=Dd,this.Pa[99]=Ed,this.Pa[84]=Fd));this.Lg=[];this.nk=[];this.jd=this.dh=0;this.ea.dg=this.ea.gn=!1;this.Dk=0;this.ma=[];this.ab=this.Ra=this.Ba=this.vc=0;Gd(this)}La(kc,bd); -var dd={Mh:4,R:5,pa:6,Y:7,Z:8,M:9,N:11,O:12,Oe:4,ll:60,ml:83,Rb:3,rb:9,ic:16,Ih:1,ql:19,sl:28,ul:16,tl:21,rl:37,ol:2,mj:9,pl:5,nl:33,oj:10,nj:8,ug:3,tg:15,Il:51,Jl:1,Kl:2,Ll:4,Hl:32,pj:15,Nl:15,Sb:16,Tb:4,Pl:11,Ol:18,Ml:24,Ab:4,Ql:2,qj:16,Rl:17,vj:18,Sl:19,uj:5,wj:6,Xl:2,Wl:8,Ul:9,Vl:10,Tl:10,xj:10,yj:10,wl:80,yl:144,vl:86,xl:154,Al:101,Cl:165,zl:107,Bl:171,Zl:70,am:113,Yl:76,$l:124,El:80,Gl:128,Dl:86,Fl:134,wg:3,vg:16,Dj:10,Cj:8,bm:51,jc:8,cm:17,dm:36,rc:11,em:16,xg:10,fe:2,jj:18,kj:7,lj:15,rj:12, -sj:7,tj:11,zj:18,Aj:7,Bj:15,Ej:15,Fj:7,Gj:13,Kj:11,Lj:7,Mj:8,fm:8,im:12,gm:18,hm:17,jm:15,Ij:8,Hj:20,Jj:2,Pj:3,yg:9,Oj:5,Nj:11,Rj:4,Qj:17,km:11},cd={Mh:0,R:0,pa:0,Y:0,Z:0,M:0,N:1,O:1,Oe:3,ll:14,ml:16,Rb:2,rb:7,ic:7,Ih:0,ql:7,sl:13,ul:7,tl:11,rl:16,ol:3,mj:6,pl:2,nl:13,oj:5,nj:5,ug:2,tg:7,Il:23,Jl:0,Kl:1,Ll:3,Hl:17,pj:7,Nl:11,Sb:7,Tb:3,Pl:7,Ol:11,Ml:15,Ab:2,Ql:3,qj:7,Rl:8,vj:8,Sl:8,uj:4,wj:4,Xl:2,Wl:3,Ul:5,Vl:2,Tl:3,xj:5,yj:3,wl:14,yl:22,vl:17,xl:25,Al:17,Cl:25,zl:20,Bl:28,Zl:13,am:21,Yl:16,$l:24, -El:13,Gl:21,Dl:16,Fl:24,wg:2,vg:7,Dj:5,Cj:5,bm:19,jc:5,cm:5,dm:17,rc:3,em:5,xg:3,fe:0,jj:8,kj:5,lj:9,rj:5,sj:5,tj:4,zj:5,Aj:5,Bj:4,Ej:7,Fj:5,Gj:8,Kj:3,Lj:4,Mj:3,fm:11,im:11,gm:15,hm:15,jm:7,Ij:5,Hj:8,Jj:0,Pj:2,yg:6,Oj:3,Nj:6,Rj:3,Qj:5,km:5};k=bd.prototype;k.Wi=function(a,b,c,d){this.ma=a;this.Ra=b;this.Ba=c;this.vc=d};k.reset=function(){this.ea.Ib&&rc(this);Gd(this);mc(this);this.ea.gd=!1}; -function Gd(a){a.G=0;a.C=0;a.I=0;a.J=0;a.H=0;a.F=0;a.D=0;a.Db=a.Dg=-1;a.Xg=0;a.lc=65520;a.Sc=0;a.hf=1023;a.Cf=0;a.Hh=-1;a.na=new Fc(a,Gc,"CS");a.gb=new Fc(a,2,"DS");a.Oa=new Fc(a,2,"ES");a.sa=new Fc(a,3,"SS");y(a,0);Zc(a,0);a.Am=new Fc(a,0,"NULL");a.hb=a.gb;a.Nc=a.sa;a.Q=a.va=0;a.aa=a.Ga=q;a.lb=0;Yc(a,0,65535);a.te=a.na.te;a.fa=a.na.fa;a.bd=A;a.ad=Hd;a.se=Id;a.tb=C;a.Bc=Jd;a.Qc=Kd;a.Xc=a.na.Xc;a.ha=a.na.ha;2==a.Xc?(a.gg=a.la,a.Dm=a.Ka):(a.gg=a.Wk,a.Dm=a.Cm);a.va&=-12289;if(80286<=a.za){a.Rc=0;a.gf= -65535;a.le=new Fc(a,5,"LDT",!0);a.ib=new Fc(a,4,"TSS",!0);a.Jb=new Fc(a,6,"VER",!0);Yc(a,65520,61440);var b,c=v(a);b=a.na;var d=-65536;80386>b.U.za&&(d&=16777215);b=b.ua=d;a.ka=b+c;a.Gf=b+a.na.$b}Xc(a,0);Ld(a)}k.Vk=function(){var a=this.G+this.C+this.I+this.J+w(this)+this.H+this.F+this.D|0;return a=a+v(this)+this.na.ta+this.gb.ta+this.sa.ta+this.Oa.ta+ob(this)|0};function Md(a,b,c,d){void 0!==d&&(void 0===a.Lg[b]&&(a.Lg[b]=[]),a.Lg[b].push([c,d]))} -function Nd(a,b){var c=a.nk[b];null!=c&&(c(--a.dh),delete a.nk[b])}function Ld(a,b){void 0===b&&(b=!!(a.lc&1));b||a.cc("returning to real-mode");a.qk=b?Od:jd;Hc(a.na,b);Hc(a.gb,b);Hc(a.sa,b);Hc(a.Oa,b)} -k.save=function(){var a=new Pd(this);a.set(0,[this.G,this.C,this.I,this.J,w(this),this.H,this.F,this.D,this.Cf]);a.set(1,[v(this),this.na.save(),this.gb.save(),this.sa.save(),this.Oa.save(),null!=this.Rc?[this.lc,this.Rc,this.gf,this.Sc,this.hf,this.le.save(),this.ib.save(),this.Cf]:null,ob(this)]);a.set(2,[this.hb.Vh,this.Nc.Vh,this.Q,this.va,this.lb,this.aa,this.Ga]);a.set(3,[0,this.Qe,this.S.ce]);a.set(4,Hb(this.ja));return a.data()}; -k.restore=function(a){var b=a[0];this.G=b[0];this.C=b[1];this.I=b[2];this.J=b[3];var c=b[4];this.H=b[5];this.F=b[6];this.D=b[7];this.Cf=b[8]||0;b=a[1];this.na.restore(b[1]);this.gb.restore(b[2]);this.sa.restore(b[3]);this.Oa.restore(b[4]);var d=b[5];d&&d.length&&(this.lc=d[0],this.Rc=d[1],this.gf=d[2],this.Sc=d[3],this.hf=d[4],this.le.restore(d[5]),this.ib.restore(d[6]),this.Cf=d[7],Ld(this));Xc(this,b[6]);Yc(this,b[0],this.na.ta);y(this,c);Zc(this,this.sa.ta);b=a[2];this.hb=null!=b[0]&&Qd(this,b[0])|| -this.gb;this.Nc=null!=b[1]&&Qd(this,b[1])||this.sa;this.Q=b[2];this.va=b[3];this.lb=b[4];this.aa=b[5];this.Ga=b[6];b=a[3];this.Qe=b[1];uc(this,b[2]);a:{b=this.ja;a=a[4];for(c=0;c>((a^a>>4)&15)&1?0:wb}function Wd(a){return(a.W^a.da)&16?vb:0}function Xd(a){return a.P&a.T-1?0:ub}function Yd(a){return a.W&a.T>>1?tb:0} +40,c.gb.ta);var d=38,h=26;Xc(c,c.la(g+16)|(b?16384:0));c.G=c.la(g+18);c.I=c.la(g+20);c.J=c.la(g+22);c.C=c.la(g+24);c.H=c.la(g+28);c.F=c.la(g+30);c.D=c.la(g+32);c.Oa.load(c.la(g+34));c.gb.load(c.la(g+40));Yc(c,c.la(g+14),c.la(g+36));this.Wa>13;if(6144<=h){U=c&3;if(U>a.Wa){if(!1!==B&&!(ba==a.Wa||g&1024&&ba<=a.Wa)){r=q;break}H=e.Fa();Zc(e,e.Fa(),!0);y(e,H);a.th=!0}H=!1}else if(1024==h)H=!0,L=-1,I=c,Uh||2048==(h&2560))){d||Lc.call(e,13,c,!!g);r=q;break}}else if(3==a.id){if(!B||4096>h||2048==(h&2560)){d|| +Lc.call(e,13,c,!0);r=q;break}}else if(4==a.id){if(!B||256!=h&&768!=h){d||Lc.call(e,10,c,!0);r=q;break}}else if(6==a.id&&!(g&4096)&&768>13;80386>a.U.za||!(a.Ci&64)?(a.te=2,a.fa=65535):(a.te=4,a.fa=-1)}else a.load=Ic,a.el=Mc,a.Gc=Oc,a.ic=Pc,a.$b=65535,a.Wa=a.qc=0,a.Md=q,a.te=2,a.fa=65535;a.Yc=a.te;a.ha=a.fa} +function bd(a){this.za=a.model||8088;var b=0;switch(this.za){default:b=4772727;break;case 80286:b=6E6;break;case 80386:b=16E6}kc.call(this,a,b);this.mk=61442;this.Kg=Cc;this.Jg=4;this.Ef=255;this.B=80286<=this.za?cd:dd;this.Pa=ed;this.pk=fd;this.qk=id;this.rk=jd;80186<=this.za&&(this.Pa=ed.slice(),this.pk=fd.slice(),this.qk=id.slice(),this.Ef=31,this.Pa[15]=kd,this.Pa[96]=ld,this.Pa[97]=md,this.Pa[98]=nd,this.Pa[99]=kd,this.Pa[100]=kd,this.Pa[101]=kd,this.Pa[102]=kd,this.Pa[103]=kd,this.Pa[104]=od, +this.Pa[105]=pd,this.Pa[106]=qd,this.Pa[107]=rd,this.Pa[108]=sd,this.Pa[109]=td,this.Pa[110]=ud,this.Pa[111]=vd,this.Pa[192]=wd,this.Pa[193]=xd,this.Pa[200]=yd,this.Pa[201]=zd,this.Pa[241]=Ad,this.pk[7]=Bd,this.qk[7]=Bd,80286<=this.za&&(this.mk=2,this.Kg|=28672,this.Jg=0,this.Pm=Cd,this.Pa[15]=Dd,this.Pa[99]=Ed,this.Pa[84]=Fd));this.Mg=[];this.ok=[];this.kd=this.eh=0;this.ea.eg=this.ea.hn=!1;this.Ek=0;this.ma=[];this.ab=this.Ra=this.Ba=this.wc=0;Gd(this)}La(kc,bd); +var dd={Nh:4,R:5,pa:6,Y:7,Z:8,M:9,N:11,O:12,Oe:4,ml:60,nl:83,Rb:3,rb:9,jc:16,Jh:1,rl:19,tl:28,vl:16,ul:21,sl:37,pl:2,nj:9,ql:5,ol:33,pj:10,oj:8,vg:3,ug:15,Jl:51,Kl:1,Ll:2,Ml:4,Il:32,qj:15,Ol:15,Sb:16,Tb:4,Ql:11,Pl:18,Nl:24,Ab:4,Rl:2,rj:16,Sl:17,wj:18,Tl:19,vj:5,xj:6,Yl:2,Xl:8,Vl:9,Wl:10,Ul:10,yj:10,zj:10,xl:80,zl:144,wl:86,yl:154,Bl:101,Dl:165,Al:107,Cl:171,$l:70,bm:113,Zl:76,am:124,Fl:80,Hl:128,El:86,Gl:134,xg:3,wg:16,Ej:10,Dj:8,cm:51,kc:8,dm:17,em:36,sc:11,fm:16,yg:10,fe:2,kj:18,lj:7,mj:15,sj:12, +tj:7,uj:11,Aj:18,Bj:7,Cj:15,Fj:15,Gj:7,Hj:13,Lj:11,Mj:7,Nj:8,gm:8,jm:12,hm:18,im:17,km:15,Jj:8,Ij:20,Kj:2,Qj:3,zg:9,Pj:5,Oj:11,Sj:4,Rj:17,lm:11},cd={Nh:0,R:0,pa:0,Y:0,Z:0,M:0,N:1,O:1,Oe:3,ml:14,nl:16,Rb:2,rb:7,jc:7,Jh:0,rl:7,tl:13,vl:7,ul:11,sl:16,pl:3,nj:6,ql:2,ol:13,pj:5,oj:5,vg:2,ug:7,Jl:23,Kl:0,Ll:1,Ml:3,Il:17,qj:7,Ol:11,Sb:7,Tb:3,Ql:7,Pl:11,Nl:15,Ab:2,Rl:3,rj:7,Sl:8,wj:8,Tl:8,vj:4,xj:4,Yl:2,Xl:3,Vl:5,Wl:2,Ul:3,yj:5,zj:3,xl:14,zl:22,wl:17,yl:25,Bl:17,Dl:25,Al:20,Cl:28,$l:13,bm:21,Zl:16,am:24, +Fl:13,Hl:21,El:16,Gl:24,xg:2,wg:7,Ej:5,Dj:5,cm:19,kc:5,dm:5,em:17,sc:3,fm:5,yg:3,fe:0,kj:8,lj:5,mj:9,sj:5,tj:5,uj:4,Aj:5,Bj:5,Cj:4,Fj:7,Gj:5,Hj:8,Lj:3,Mj:4,Nj:3,gm:11,jm:11,hm:15,im:15,km:7,Jj:5,Ij:8,Kj:0,Qj:2,zg:6,Pj:3,Oj:6,Sj:3,Rj:5,lm:5};k=bd.prototype;k.Xi=function(a,b,c,d){this.ma=a;this.Ra=b;this.Ba=c;this.wc=d};k.reset=function(){this.ea.Ib&&rc(this);Gd(this);mc(this);this.ea.hd=!1}; +function Gd(a){a.G=0;a.C=0;a.I=0;a.J=0;a.H=0;a.F=0;a.D=0;a.Db=a.Eg=-1;a.Yg=0;a.mc=65520;a.Tc=0;a.hf=1023;a.Cf=0;a.Ih=-1;a.na=new Fc(a,Gc,"CS");a.gb=new Fc(a,2,"DS");a.Oa=new Fc(a,2,"ES");a.sa=new Fc(a,3,"SS");y(a,0);Zc(a,0);a.Bm=new Fc(a,0,"NULL");a.hb=a.gb;a.Oc=a.sa;a.Q=a.wa=0;a.aa=a.Ga=q;a.lb=0;Yc(a,0,65535);a.te=a.na.te;a.fa=a.na.fa;a.cd=A;a.bd=Hd;a.se=Id;a.tb=C;a.Cc=Jd;a.Rc=Kd;a.Yc=a.na.Yc;a.ha=a.na.ha;2==a.Yc?(a.hg=a.la,a.Em=a.Ka):(a.hg=a.Xk,a.Em=a.Dm);a.wa&=-12289;if(80286<=a.za){a.Sc=0;a.gf= +65535;a.le=new Fc(a,5,"LDT",!0);a.ib=new Fc(a,4,"TSS",!0);a.Jb=new Fc(a,6,"VER",!0);Yc(a,65520,61440);var b,c=v(a);b=a.na;var d=-65536;80386>b.U.za&&(d&=16777215);b=b.ua=d;a.ka=b+c;a.Gf=b+a.na.$b}Xc(a,0);Ld(a)}k.Wk=function(){var a=this.G+this.C+this.I+this.J+w(this)+this.H+this.F+this.D|0;return a=a+v(this)+this.na.ta+this.gb.ta+this.sa.ta+this.Oa.ta+ob(this)|0};function Md(a,b,c,d){void 0!==d&&(void 0===a.Mg[b]&&(a.Mg[b]=[]),a.Mg[b].push([c,d]))} +function Nd(a,b){var c=a.ok[b];null!=c&&(c(--a.eh),delete a.ok[b])}function Ld(a,b){void 0===b&&(b=!!(a.mc&1));b||a.cc("returning to real-mode");a.rk=b?Od:jd;Hc(a.na,b);Hc(a.gb,b);Hc(a.sa,b);Hc(a.Oa,b)} +k.save=function(){var a=new Pd(this);a.set(0,[this.G,this.C,this.I,this.J,w(this),this.H,this.F,this.D,this.Cf]);a.set(1,[v(this),this.na.save(),this.gb.save(),this.sa.save(),this.Oa.save(),null!=this.Sc?[this.mc,this.Sc,this.gf,this.Tc,this.hf,this.le.save(),this.ib.save(),this.Cf]:null,ob(this)]);a.set(2,[this.hb.Wh,this.Oc.Wh,this.Q,this.wa,this.lb,this.aa,this.Ga]);a.set(3,[0,this.Qe,this.S.ce]);a.set(4,Hb(this.ja));return a.data()}; +k.restore=function(a){var b=a[0];this.G=b[0];this.C=b[1];this.I=b[2];this.J=b[3];var c=b[4];this.H=b[5];this.F=b[6];this.D=b[7];this.Cf=b[8]||0;b=a[1];this.na.restore(b[1]);this.gb.restore(b[2]);this.sa.restore(b[3]);this.Oa.restore(b[4]);var d=b[5];d&&d.length&&(this.mc=d[0],this.Sc=d[1],this.gf=d[2],this.Tc=d[3],this.hf=d[4],this.le.restore(d[5]),this.ib.restore(d[6]),this.Cf=d[7],Ld(this));Xc(this,b[6]);Yc(this,b[0],this.na.ta);y(this,c);Zc(this,this.sa.ta);b=a[2];this.hb=null!=b[0]&&Qd(this,b[0])|| +this.gb;this.Oc=null!=b[1]&&Qd(this,b[1])||this.sa;this.Q=b[2];this.wa=b[3];this.lb=b[4];this.aa=b[5];this.Ga=b[6];b=a[3];this.Qe=b[1];uc(this,b[2]);a:{b=this.ja;a=a[4];for(c=0;c>((a^a>>4)&15)&1?0:wb}function Wd(a){return(a.W^a.da)&16?vb:0}function Xd(a){return a.P&a.T-1?0:ub}function Yd(a){return a.W&a.T>>1?tb:0} function Zd(a){return(a.W^a.da^a.W>>1)&a.T>>1?pb:0}function $d(a){a.P&=~a.T}function ae(a){a.da=a.W&16|a.da&-17}function be(a){a.P|=a.T-1}function ce(a){a.W&=~a.T;a.da=a.W&32896|a.da&-32897}function de(a){a.P|=a.T}function ee(a){a.da=~(a.W&16)&16|a.da&-17}function fe(a){a.P&=~(a.T-1)}function ge(a){Yd(a)||(a.W^=a.T>>1|a.T>>2,a.da^=32896)}function he(a){a.W|=a.T;a.da=a.W&32896|a.da&-32897}function ob(a){return a.Aa&~Dc|Ud(a)|Vd(a)|Wd(a)|Xd(a)|Yd(a)|Zd(a)} -function ie(a,b){b=b|a.lc&1|65520;a.lc=a.lc&-65536|b&65535;a.lc&1&&Ld(a,!0)}function Xc(a,b,c){a.T=256;a.P=a.W=a.da=0;b&xb&&de(a);b&wb||(a.W|=1);b&vb&&(a.da|=16);b&ub||be(a);b&tb&&ge(a);b&pb&&he(a);a.lc&1||(b&=-61441);void 0===c&&(c=a.na.Wa);c?b=b&-12289|a.Aa&12288:a.Cf=(b&12288)>>12;c>a.Cf&&(b=b&~rb|a.Aa&rb);a.Aa=a.Aa&~a.Jg|b&a.Jg|a.lk;a.Aa&sb&&(a.lb|=2,a.Q|=4)} -k.Eb=function(a,b,c){var d=!1;switch(b){case "AX":case "BX":case "CX":case "DX":case "SP":case "BP":case "SI":case "DI":case "CS":case "DS":case "SS":case "ES":case "IP":case "PC":case "PS":case "C":case "P":case "A":case "Z":case "S":case "T":case "I":case "D":case "V":this.oa[b]=c;this.Dk++;d=!0;break;default:d=this.parent.Eb.call(this,a,b,c)}return d};k.qc=function(a){return this.ma[(a&this.ab)>>>this.Ra].Cb(a&this.Ba)}; -k.la=function(a){var b=a&this.Ba;a=(a&this.ab)>>>this.Ra;this.A-=this.B.Mh;return b>>this.Ra;if(b>>c|this.ma[a+1&this.vc].od(0)<<32-c};k.Ue=function(a,b){this.ma[(a&this.ab)>>>this.Ra].Fb(a&this.Ba,b&255)}; -k.Ka=function(a,b){var c=a&this.Ba,d=(a&this.ab)>>>this.Ra;this.A-=this.B.Mh;c>8&255))};k.Cm=function(a,b){var c=a&this.Ba,d=(a&this.ab)>>>this.Ra;this.A-=this.B.Mh;if(c>>32-f)}}; -function je(a,b,c){a.Gg=b;a.aa=b.Fc(a.Bg=c,0);return a.Q&1?0:a.qc(a.aa)}function E(a,b){return je(a,a.hb,b&65535)}function F(a,b){return je(a,a.Nc,b&65535)}function ke(a,b,c){a.Gg=b;a.aa=b.Fc(a.Bg=c,1);return a.Q&1?0:a.gg(a.aa)}function G(a,b){return ke(a,a.hb,b&65535)}function J(a,b){return ke(a,a.Nc,b&65535)}function le(a,b,c){a.Gg=b;a.Ga=a.aa=b.Fc(a.Bg=c,0);return a.Q&1?0:a.qc(a.aa)}function K(a,b){return le(a,a.hb,b&65535)}function M(a,b){return le(a,a.Nc,b&65535)} -function me(a,b,c){a.Gg=b;a.Ga=a.aa=b.Fc(a.Bg=c,1);return a.Q&1?0:a.gg(a.aa)}function N(a,b){return me(a,a.hb,b&65535)}function O(a,b){return me(a,a.Nc,b&65535)}function P(a,b){a.Q&2||a.Ue(a.Gg.hc(a.Bg,0),b)}function Q(a,b){a.Q&2||a.Ka(a.Gg.hc(a.Bg,1),b)}function ad(a,b,c){return a.la(b.Fc(c,1))}k.X=function(){var a=this.qc(this.ka);++this.ka>this.Gf&&D(this,this.ka-this.na.ua);return a};k.L=function(){var a=this.qc(this.ka)<<24>>24;++this.ka>this.Gf&&D(this,this.ka-this.na.ua);return a&65535}; -function ne(a){var b=a.la(a.ka);a.ka+=2;a.ka>a.Gf&&D(a,a.ka-a.na.ua);return b}k.K=function(){var a=this.gg(this.ka);this.ka+=this.te;this.ka>this.Gf&&D(this,this.ka-this.na.ua);return a};k.Fa=function(){var a=this.gg(this.Kc);this.Kc+=2;this.Kc>this.rm&&y(this,this.Kc-this.sa.ua);return a};function z(a,b){a.Kc-=2;a.Kc>12;c>a.Cf&&(b=b&~rb|a.Aa&rb);a.Aa=a.Aa&~a.Kg|b&a.Kg|a.mk;a.Aa&sb&&(a.lb|=2,a.Q|=4)} +k.Eb=function(a,b,c){var d=!1;switch(b){case "AX":case "BX":case "CX":case "DX":case "SP":case "BP":case "SI":case "DI":case "CS":case "DS":case "SS":case "ES":case "IP":case "PC":case "PS":case "C":case "P":case "A":case "Z":case "S":case "T":case "I":case "D":case "V":this.oa[b]=c;this.Ek++;d=!0;break;default:d=this.parent.Eb.call(this,a,b,c)}return d};k.rc=function(a){return this.ma[(a&this.ab)>>>this.Ra].Cb(a&this.Ba)}; +k.la=function(a){var b=a&this.Ba;a=(a&this.ab)>>>this.Ra;this.A-=this.B.Nh;return b>>this.Ra;if(b>>c|this.ma[a+1&this.wc].pd(0)<<32-c};k.Ue=function(a,b){this.ma[(a&this.ab)>>>this.Ra].Fb(a&this.Ba,b&255)}; +k.Ka=function(a,b){var c=a&this.Ba,d=(a&this.ab)>>>this.Ra;this.A-=this.B.Nh;c>8&255))};k.Dm=function(a,b){var c=a&this.Ba,d=(a&this.ab)>>>this.Ra;this.A-=this.B.Nh;if(c>>32-f)}}; +function je(a,b,c){a.Hg=b;a.aa=b.Gc(a.Cg=c,0);return a.Q&1?0:a.rc(a.aa)}function E(a,b){return je(a,a.hb,b&65535)}function F(a,b){return je(a,a.Oc,b&65535)}function ke(a,b,c){a.Hg=b;a.aa=b.Gc(a.Cg=c,1);return a.Q&1?0:a.hg(a.aa)}function G(a,b){return ke(a,a.hb,b&65535)}function J(a,b){return ke(a,a.Oc,b&65535)}function le(a,b,c){a.Hg=b;a.Ga=a.aa=b.Gc(a.Cg=c,0);return a.Q&1?0:a.rc(a.aa)}function K(a,b){return le(a,a.hb,b&65535)}function M(a,b){return le(a,a.Oc,b&65535)} +function me(a,b,c){a.Hg=b;a.Ga=a.aa=b.Gc(a.Cg=c,1);return a.Q&1?0:a.hg(a.aa)}function N(a,b){return me(a,a.hb,b&65535)}function O(a,b){return me(a,a.Oc,b&65535)}function P(a,b){a.Q&2||a.Ue(a.Hg.ic(a.Cg,0),b)}function Q(a,b){a.Q&2||a.Ka(a.Hg.ic(a.Cg,1),b)}function ad(a,b,c){return a.la(b.Gc(c,1))}k.X=function(){var a=this.rc(this.ka);++this.ka>this.Gf&&D(this,this.ka-this.na.ua);return a};k.L=function(){var a=this.rc(this.ka)<<24>>24;++this.ka>this.Gf&&D(this,this.ka-this.na.ua);return a&65535}; +function ne(a){var b=a.la(a.ka);a.ka+=2;a.ka>a.Gf&&D(a,a.ka-a.na.ua);return b}k.K=function(){var a=this.hg(this.ka);this.ka+=this.te;this.ka>this.Gf&&D(this,this.ka-this.na.ua);return a};k.Fa=function(){var a=this.hg(this.Lc);this.Lc+=2;this.Lc>this.sm&&y(this,this.Lc-this.sa.ua);return a};function z(a,b){a.Lc-=2;a.Lcthis.Ga?0>this.aa?this.B.Rb:this.B.rb:this.B.ic;return this.P&255}function ue(a,b){this.da=a^b;this.P=this.W=a+b+(this.P&this.T?1:0);this.T=65536;this.A-=0>this.Ga?0>this.aa?this.B.Rb:this.B.rb:this.B.ic;return this.P&65535}function ve(a,b){this.da=a^b;this.T=256;this.A-=0>this.Ga?0>this.aa?this.B.Rb:this.B.rb:this.B.ic;return(this.P=this.W=a+b)&255} -function we(a,b){this.da=a^b;this.T=65536;this.A-=0>this.Ga?0>this.aa?this.B.Rb:this.B.rb:this.B.ic;return(this.P=this.W=a+b)&65535}function xe(a,b){this.T=256;this.A-=0>this.Ga?0>this.aa?this.B.Rb:this.B.rb:this.B.ic;return(this.P=this.W=this.da=a&b)&255}function ye(a,b){this.T=65536;this.A-=0>this.Ga?0>this.aa?this.B.Rb:this.B.rb:this.B.ic;return(this.P=this.W=this.da=a&b)&65535}function ze(a,b){this.A-=10+(0>this.aa?0:1);if((a&3)<(b&3))return a=a&-4|b&3,fe(this),a;be(this);return a} -function Ae(a){if(0>this.aa)return kd.call(this),a;var b=a<<16>>16,c=this.la(this.aa)<<16>>16,d=this.la(this.aa+2)<<16>>16;this.A-=this.B.nl;if(bd)D(this,this.Bb-this.na.ua),pe.call(this,5,null,0);this.Q|=2;return a}function Be(a,b){var c=this.na.ta,d=v(this);null!=Yc(this,a,b,!0)&&(z(this,c),z(this,d))}function Ce(a,b){this.da=a^b;this.T=256;this.P=this.W=a-b;this.A-=0>this.Ga?0>this.aa?this.B.Rb:this.B.mj:this.B.rb;this.Q|=2;return a} -function De(a,b){this.da=a^b;this.T=65536;this.P=this.W=a-b;this.A-=0>this.Ga?0>this.aa?this.B.Rb:this.B.mj:this.B.rb;this.Q|=2;return a}function Ee(a){return a}function Fe(a,b){var c=(b<<16>>16)*(this.X()<<24>>24);this.P=this.da=this.W=c;this.T=256;32767c?(de(this),he(this)):($d(this),ce(this));this.A-=0>this.aa?21:24;return c&65535} -function Ge(a,b){var c=(b<<16>>16)*(this.K()<<16>>16);this.P=this.da=this.W=c;this.T=65536;32767c?(de(this),he(this)):($d(this),ce(this));this.A-=0>this.aa?21:24;return c&65535}function pe(a,b,c){this.A-=this.B.Il+c;this.na.Ei=!0;c=ob(this);var d=this.na.ta,e=v(this);a=this.na.dl(a);a!=q&&(this.ka=a,z(this,c),z(this,d),z(this,e),null!=b&&z(this,b),this.Hh=-1)} -function He(a,b){this.A-=14+(0>this.aa?0:2);if(this.Jb.load(b,!0)!=q&&this.Jb.pc>=this.na.Wa&&this.Jb.pc>=(b&3))return fe(this),this.Jb.jb&65280;be(this);return a}function Ie(a,b){if(0>this.aa)return R.call(this),a;Sd(this,this.la(this.aa+2));this.A-=this.B.qj;return b}function Je(a){if(0>this.aa)return R.call(this),a;this.A-=this.B.Ql;return this.aa}function Ke(a,b){if(0>this.aa)return R.call(this),a;Td(this,this.la(this.aa+2));this.A-=this.B.qj;return b} -function Le(a,b){this.A-=14+(0>this.aa?0:2);if(b&65528&&this.Jb.load(b,!0)!=q&&(7168==(this.Jb.jb&7168)||this.Jb.pc>=this.na.Wa)&&this.Jb.pc>=(b&3))return fe(this),this.Jb.$b;be(this);return a}function Me(a,b){this.A-=0>this.Ga?0>this.aa?this.B.Xl:this.B.Wl:this.B.Ul;return b}function Ne(){return Me.call(this,0,this.Db)}function Oe(a,b){this.T=256;this.A-=0>this.Ga?0>this.aa?this.B.Rb:this.B.rb:this.B.ic;return(this.P=this.W=this.da=a|b)&255} -function Pe(a,b){this.T=65536;this.A-=0>this.Ga?0>this.aa?this.B.Rb:this.B.rb:this.B.ic;return(this.P=this.W=this.da=a|b)&65535}function Qe(a){var b=this.Fa(),c=this.Fa();(a<<=this.Xc>>2)&&y(this,w(this)+a);Yc(this,b,c,!1)&&(a&&y(this,w(this)+a),this.gb.ta&65528&&this.gb.pcthis.Ga?0>this.aa?this.B.Rb:this.B.rb:this.B.ic;return this.P&255}function Se(a,b){this.da=a^b;this.P=this.W=a-b-(this.P&this.T?1:0);this.T=65536;this.A-=0>this.Ga?0>this.aa?this.B.Rb:this.B.rb:this.B.ic;return this.P&65535}function Te(a,b){this.da=a^b;this.T=256;this.A-=0>this.Ga?0>this.aa?this.B.Rb:this.B.rb:this.B.ic;return(this.P=this.W=a-b)&255} -function Ue(a,b){this.da=a^b;this.T=65536;this.A-=0>this.Ga?0>this.aa?this.B.Rb:this.B.rb:this.B.ic;return(this.P=this.W=a-b)&65535}function Ve(a,b){this.P=this.W=this.da=a&b;this.T=256;this.A-=0>this.Ga?0>this.aa?this.B.Pj:this.B.yg:this.B.yg;this.Q|=2;return a}function We(a,b){this.P=this.W=this.da=a&b;this.T=65536;this.A-=0>this.Ga?0>this.aa?this.B.Pj:this.B.yg:this.B.yg;this.Q|=2;return a} -function Xe(a,b){if(0>this.aa){switch(this.Xg&7){case 0:this.G=this.G&-256|a;break;case 1:this.I=this.I&-256|a;break;case 2:this.J=this.J&-256|a;break;case 3:this.C=this.C&-256|a;break;case 4:this.G=this.G&255|a<<8;break;case 5:this.I=this.I&255|a<<8;break;case 6:this.J=this.J&255|a<<8;break;case 7:this.C=this.C&255|a<<8}this.A-=this.B.Rj}else this.Ga=this.aa,P(this,a),this.A-=this.B.Qj;return b} -function Ye(a,b){if(0>this.aa){switch(this.Xg&7){case 0:this.G=a;break;case 1:this.I=a;break;case 2:this.J=a;break;case 3:this.C=a;break;case 4:y(this,a);break;case 5:this.H=a;break;case 6:this.F=a;break;case 7:this.D=a}this.A-=this.B.Rj}else this.Ga=this.aa,Q(this,a),this.A-=this.B.Qj;return b}function Ze(a,b){this.T=256;this.A-=0>this.Ga?0>this.aa?this.B.Rb:this.B.rb:this.B.ic;return(this.P=this.W=this.da=a^b)&255} -function $e(a,b){this.T=65536;this.A-=0>this.Ga?0>this.aa?this.B.Rb:this.B.rb:this.B.ic;return(this.P=this.W=this.da=a^b)&65535}function af(a,b){this.P=this.P&this.T-1|(a&b?this.T:0);(a^a>>1)&b>>1?he(this):ce(this)}function bf(){this.A-=0>this.aa?2:this.B.jm;return 1}function cf(){var a=this.I&this.Ef;this.A-=(0>this.aa?this.B.Ij:this.B.Hj)+(a<this.aa?this.B.Ij:this.B.Hj)+(a<this.Ga?0>this.aa?this.B.Rb:this.B.rb:this.B.jc;return this.P&255}function ue(a,b){this.da=a^b;this.P=this.W=a+b+(this.P&this.T?1:0);this.T=65536;this.A-=0>this.Ga?0>this.aa?this.B.Rb:this.B.rb:this.B.jc;return this.P&65535}function ve(a,b){this.da=a^b;this.T=256;this.A-=0>this.Ga?0>this.aa?this.B.Rb:this.B.rb:this.B.jc;return(this.P=this.W=a+b)&255} +function we(a,b){this.da=a^b;this.T=65536;this.A-=0>this.Ga?0>this.aa?this.B.Rb:this.B.rb:this.B.jc;return(this.P=this.W=a+b)&65535}function xe(a,b){this.T=256;this.A-=0>this.Ga?0>this.aa?this.B.Rb:this.B.rb:this.B.jc;return(this.P=this.W=this.da=a&b)&255}function ye(a,b){this.T=65536;this.A-=0>this.Ga?0>this.aa?this.B.Rb:this.B.rb:this.B.jc;return(this.P=this.W=this.da=a&b)&65535}function ze(a,b){this.A-=10+(0>this.aa?0:1);if((a&3)<(b&3))return a=a&-4|b&3,fe(this),a;be(this);return a} +function Ae(a){if(0>this.aa)return kd.call(this),a;var b=a<<16>>16,c=this.la(this.aa)<<16>>16,d=this.la(this.aa+2)<<16>>16;this.A-=this.B.ol;if(bd)D(this,this.Bb-this.na.ua),pe.call(this,5,null,0);this.Q|=2;return a}function Be(a,b){var c=this.na.ta,d=v(this);null!=Yc(this,a,b,!0)&&(z(this,c),z(this,d))}function Ce(a,b){this.da=a^b;this.T=256;this.P=this.W=a-b;this.A-=0>this.Ga?0>this.aa?this.B.Rb:this.B.nj:this.B.rb;this.Q|=2;return a} +function De(a,b){this.da=a^b;this.T=65536;this.P=this.W=a-b;this.A-=0>this.Ga?0>this.aa?this.B.Rb:this.B.nj:this.B.rb;this.Q|=2;return a}function Ee(a){return a}function Fe(a,b){var c=(b<<16>>16)*(this.X()<<24>>24);this.P=this.da=this.W=c;this.T=256;32767c?(de(this),he(this)):($d(this),ce(this));this.A-=0>this.aa?21:24;return c&65535} +function Ge(a,b){var c=(b<<16>>16)*(this.K()<<16>>16);this.P=this.da=this.W=c;this.T=65536;32767c?(de(this),he(this)):($d(this),ce(this));this.A-=0>this.aa?21:24;return c&65535}function pe(a,b,c){this.A-=this.B.Jl+c;this.na.Fi=!0;c=ob(this);var d=this.na.ta,e=v(this);a=this.na.el(a);a!=q&&(this.ka=a,z(this,c),z(this,d),z(this,e),null!=b&&z(this,b),this.Ih=-1)} +function He(a,b){this.A-=14+(0>this.aa?0:2);if(this.Jb.load(b,!0)!=q&&this.Jb.qc>=this.na.Wa&&this.Jb.qc>=(b&3))return fe(this),this.Jb.jb&65280;be(this);return a}function Ie(a,b){if(0>this.aa)return R.call(this),a;Sd(this,this.la(this.aa+2));this.A-=this.B.rj;return b}function Je(a){if(0>this.aa)return R.call(this),a;this.A-=this.B.Rl;return this.aa}function Ke(a,b){if(0>this.aa)return R.call(this),a;Td(this,this.la(this.aa+2));this.A-=this.B.rj;return b} +function Le(a,b){this.A-=14+(0>this.aa?0:2);if(b&65528&&this.Jb.load(b,!0)!=q&&(7168==(this.Jb.jb&7168)||this.Jb.qc>=this.na.Wa)&&this.Jb.qc>=(b&3))return fe(this),this.Jb.$b;be(this);return a}function Me(a,b){this.A-=0>this.Ga?0>this.aa?this.B.Yl:this.B.Xl:this.B.Vl;return b}function Ne(){return Me.call(this,0,this.Db)}function Oe(a,b){this.T=256;this.A-=0>this.Ga?0>this.aa?this.B.Rb:this.B.rb:this.B.jc;return(this.P=this.W=this.da=a|b)&255} +function Pe(a,b){this.T=65536;this.A-=0>this.Ga?0>this.aa?this.B.Rb:this.B.rb:this.B.jc;return(this.P=this.W=this.da=a|b)&65535}function Qe(a){var b=this.Fa(),c=this.Fa();(a<<=this.Yc>>2)&&y(this,w(this)+a);Yc(this,b,c,!1)&&(a&&y(this,w(this)+a),this.gb.ta&65528&&this.gb.qcthis.Ga?0>this.aa?this.B.Rb:this.B.rb:this.B.jc;return this.P&255}function Se(a,b){this.da=a^b;this.P=this.W=a-b-(this.P&this.T?1:0);this.T=65536;this.A-=0>this.Ga?0>this.aa?this.B.Rb:this.B.rb:this.B.jc;return this.P&65535}function Te(a,b){this.da=a^b;this.T=256;this.A-=0>this.Ga?0>this.aa?this.B.Rb:this.B.rb:this.B.jc;return(this.P=this.W=a-b)&255} +function Ue(a,b){this.da=a^b;this.T=65536;this.A-=0>this.Ga?0>this.aa?this.B.Rb:this.B.rb:this.B.jc;return(this.P=this.W=a-b)&65535}function Ve(a,b){this.P=this.W=this.da=a&b;this.T=256;this.A-=0>this.Ga?0>this.aa?this.B.Qj:this.B.zg:this.B.zg;this.Q|=2;return a}function We(a,b){this.P=this.W=this.da=a&b;this.T=65536;this.A-=0>this.Ga?0>this.aa?this.B.Qj:this.B.zg:this.B.zg;this.Q|=2;return a} +function Xe(a,b){if(0>this.aa){switch(this.Yg&7){case 0:this.G=this.G&-256|a;break;case 1:this.I=this.I&-256|a;break;case 2:this.J=this.J&-256|a;break;case 3:this.C=this.C&-256|a;break;case 4:this.G=this.G&255|a<<8;break;case 5:this.I=this.I&255|a<<8;break;case 6:this.J=this.J&255|a<<8;break;case 7:this.C=this.C&255|a<<8}this.A-=this.B.Sj}else this.Ga=this.aa,P(this,a),this.A-=this.B.Rj;return b} +function Ye(a,b){if(0>this.aa){switch(this.Yg&7){case 0:this.G=a;break;case 1:this.I=a;break;case 2:this.J=a;break;case 3:this.C=a;break;case 4:y(this,a);break;case 5:this.H=a;break;case 6:this.F=a;break;case 7:this.D=a}this.A-=this.B.Sj}else this.Ga=this.aa,Q(this,a),this.A-=this.B.Rj;return b}function Ze(a,b){this.T=256;this.A-=0>this.Ga?0>this.aa?this.B.Rb:this.B.rb:this.B.jc;return(this.P=this.W=this.da=a^b)&255} +function $e(a,b){this.T=65536;this.A-=0>this.Ga?0>this.aa?this.B.Rb:this.B.rb:this.B.jc;return(this.P=this.W=this.da=a^b)&65535}function af(a,b){this.P=this.P&this.T-1|(a&b?this.T:0);(a^a>>1)&b>>1?he(this):ce(this)}function bf(){this.A-=0>this.aa?2:this.B.km;return 1}function cf(){var a=this.I&this.Ef;this.A-=(0>this.aa?this.B.Jj:this.B.Ij)+(a<this.aa?this.B.Jj:this.B.Ij)+(a<this.Hh)D(this,this.Bb-this.na.ua),d=!0;else if(8!=this.Hh)b=0,a=8,d=!0;else{hf.call(this,-1,0,c);Gd(this);return}hf.call(this,a,b,c)&&(d=!1);d&&pe.call(this,this.Hh=a,b,0);this.Q&=-4}else this.cc("Fault "+ea(a)+" blocked by Debugger",536870912),D(this,this.Bb-this.na.ua)} -function hf(a,b,c){var d=32,e=yb(this.ja,this.ka);204==e&&(c=!1,d|=1);983040<=this.ka&&1048575>=this.ka&&(c=!1);c&&(a=(c?"\n":"")+"Fault "+ea(a)+(null!=b?" ("+da(b,4)+")":"")+" on opcode 0x"+ea(e)+" at "+this.Xa.Wq(v(this),this.na.ta)+" (%"+da(this.ka,6)+")",b=this.ea.Ib,this.cc(a,d)?c&&(c=b,rc(this.Xa)):(this.wa(a),rc(this)));return c}function Dd(){this.Om[this.X()].call(this)}function Fd(){z(this,w(this)&this.ha);this.A-=this.B.rc} -function ld(){var a=w(this)&this.ha;z(this,this.G&this.ha);z(this,this.I&this.ha);z(this,this.J&this.ha);z(this,this.C&this.ha);z(this,a);z(this,this.H&this.ha);z(this,this.F&this.ha);z(this,this.D&this.ha);this.A-=this.B.dm} -function md(){this.D=this.D&~this.ha|this.Fa();this.F=this.F&~this.ha|this.Fa();this.H=this.H&~this.ha|this.Fa();y(this,w(this)+this.Xc);this.C=this.C&~this.ha|this.Fa();this.J=this.J&~this.ha|this.Fa();this.I=this.I&~this.ha|this.Fa();this.G=this.G&~this.ha|this.Fa();this.A-=this.B.bm}function nd(){this.tb[this.X()].call(this,Ae)}function Ed(){this.Bc[this.X()].call(this,ze)}function od(){z(this,this.K());this.A-=this.B.rc}function pd(){this.tb[this.X()].call(this,Ge)} -function qd(){z(this,this.X());this.A-=this.B.rc}function rd(){this.tb[this.X()].call(this,Fe)}function sd(){var a=1,b=0,c=5;this.va&192&&(a=this.I,b=1,this.va&256&&(c=4));if(a--){var d=Jb(this.ja,this.J,this.ka-b-1);this.Ue(this.Oa.hc(this.D&this.fa,0),d);this.D=this.D&~this.fa|this.D+(this.Aa&qb?-1:1)&this.fa;this.A-=c;this.I-=b;a&&(this.ka=this.Bb,this.Q|=256)}} -function td(){var a=1,b=0,c=5;this.va&192&&(a=this.I,b=1,this.va&256&&(c=4));if(a--){var d=this.ka-b-1,e=Jb(this.ja,this.J,d),d=e|=Jb(this.ja,this.J,d)<<8;this.Ka(this.Oa.hc(this.D&this.fa,1),d);this.D=this.D&~this.fa|this.D+(this.Aa&qb?-2:2)&this.fa;this.A-=c;this.I-=b;a&&(this.ka=this.Bb,this.Q|=256)}} -function ud(){var a=1,b=0,c=5;this.va&192&&(a=this.I,b=1,this.va&256&&(c=4));if(a--){var d=this.qc(this.gb.Fc(this.F&this.fa,0));this.F=this.F&~this.fa|this.F+(this.Aa&qb?-1:1)&this.fa;this.A-=c;this.I-=b;Lb(this.ja,this.J,d,this.ka-b-1);a&&(this.ka=this.Bb,this.Q|=256)}} -function vd(){var a=1,b=0,c=5;this.va&192&&(a=this.I,b=1,this.va&256&&(c=4));if(a--){var d=ad(this,this.gb,this.F&this.fa);this.F=this.F&~this.fa|this.F+(this.Aa&qb?-2:2)&this.fa;this.A-=c;this.I-=b;b=this.ka-b-1;Lb(this.ja,this.J,d&255,b);Lb(this.ja,this.J,d>>8,b);a&&(this.ka=this.Bb,this.Q|=256)}}function jf(){var a=this.L();Zd(this)?(D(this,v(this)+a),this.A-=this.B.Sb):this.A-=this.B.Tb}function kf(){var a=this.L();Zd(this)?this.A-=this.B.Tb:(D(this,v(this)+a),this.A-=this.B.Sb)} +function Lc(a,b,c){if(this.ea.eg){var d=!1;if(80186<=this.za)if(0>this.Ih)D(this,this.Bb-this.na.ua),d=!0;else if(8!=this.Ih)b=0,a=8,d=!0;else{hf.call(this,-1,0,c);Gd(this);return}hf.call(this,a,b,c)&&(d=!1);d&&pe.call(this,this.Ih=a,b,0);this.Q&=-4}else this.cc("Fault "+ea(a)+" blocked by Debugger",536870912),D(this,this.Bb-this.na.ua)} +function hf(a,b,c){var d=32,e=yb(this.ja,this.ka);204==e&&(c=!1,d|=1);983040<=this.ka&&1048575>=this.ka&&(c=!1);c&&(a=(c?"\n":"")+"Fault "+ea(a)+(null!=b?" ("+da(b,4)+")":"")+" on opcode 0x"+ea(e)+" at "+this.Xa.Xq(v(this),this.na.ta)+" (%"+da(this.ka,6)+")",b=this.ea.Ib,this.cc(a,d)?c&&(c=b,rc(this.Xa)):(this.va(a),rc(this)));return c}function Dd(){this.Pm[this.X()].call(this)}function Fd(){z(this,w(this)&this.ha);this.A-=this.B.sc} +function ld(){var a=w(this)&this.ha;z(this,this.G&this.ha);z(this,this.I&this.ha);z(this,this.J&this.ha);z(this,this.C&this.ha);z(this,a);z(this,this.H&this.ha);z(this,this.F&this.ha);z(this,this.D&this.ha);this.A-=this.B.em} +function md(){this.D=this.D&~this.ha|this.Fa();this.F=this.F&~this.ha|this.Fa();this.H=this.H&~this.ha|this.Fa();y(this,w(this)+this.Yc);this.C=this.C&~this.ha|this.Fa();this.J=this.J&~this.ha|this.Fa();this.I=this.I&~this.ha|this.Fa();this.G=this.G&~this.ha|this.Fa();this.A-=this.B.cm}function nd(){this.tb[this.X()].call(this,Ae)}function Ed(){this.Cc[this.X()].call(this,ze)}function od(){z(this,this.K());this.A-=this.B.sc}function pd(){this.tb[this.X()].call(this,Ge)} +function qd(){z(this,this.X());this.A-=this.B.sc}function rd(){this.tb[this.X()].call(this,Fe)}function sd(){var a=1,b=0,c=5;this.wa&192&&(a=this.I,b=1,this.wa&256&&(c=4));if(a--){var d=Jb(this.ja,this.J,this.ka-b-1);this.Ue(this.Oa.ic(this.D&this.fa,0),d);this.D=this.D&~this.fa|this.D+(this.Aa&qb?-1:1)&this.fa;this.A-=c;this.I-=b;a&&(this.ka=this.Bb,this.Q|=256)}} +function td(){var a=1,b=0,c=5;this.wa&192&&(a=this.I,b=1,this.wa&256&&(c=4));if(a--){var d=this.ka-b-1,e=Jb(this.ja,this.J,d),d=e|=Jb(this.ja,this.J,d)<<8;this.Ka(this.Oa.ic(this.D&this.fa,1),d);this.D=this.D&~this.fa|this.D+(this.Aa&qb?-2:2)&this.fa;this.A-=c;this.I-=b;a&&(this.ka=this.Bb,this.Q|=256)}} +function ud(){var a=1,b=0,c=5;this.wa&192&&(a=this.I,b=1,this.wa&256&&(c=4));if(a--){var d=this.rc(this.gb.Gc(this.F&this.fa,0));this.F=this.F&~this.fa|this.F+(this.Aa&qb?-1:1)&this.fa;this.A-=c;this.I-=b;Lb(this.ja,this.J,d,this.ka-b-1);a&&(this.ka=this.Bb,this.Q|=256)}} +function vd(){var a=1,b=0,c=5;this.wa&192&&(a=this.I,b=1,this.wa&256&&(c=4));if(a--){var d=ad(this,this.gb,this.F&this.fa);this.F=this.F&~this.fa|this.F+(this.Aa&qb?-2:2)&this.fa;this.A-=c;this.I-=b;b=this.ka-b-1;Lb(this.ja,this.J,d&255,b);Lb(this.ja,this.J,d>>8,b);a&&(this.ka=this.Bb,this.Q|=256)}}function jf(){var a=this.L();Zd(this)?(D(this,v(this)+a),this.A-=this.B.Sb):this.A-=this.B.Tb}function kf(){var a=this.L();Zd(this)?this.A-=this.B.Tb:(D(this,v(this)+a),this.A-=this.B.Sb)} function lf(){var a=this.L();Ud(this)?(D(this,v(this)+a),this.A-=this.B.Sb):this.A-=this.B.Tb}function mf(){var a=this.L();Ud(this)?this.A-=this.B.Tb:(D(this,v(this)+a),this.A-=this.B.Sb)}function nf(){var a=this.L();Xd(this)?(D(this,v(this)+a),this.A-=this.B.Sb):this.A-=this.B.Tb}function of(){var a=this.L();Xd(this)?this.A-=this.B.Tb:(D(this,v(this)+a),this.A-=this.B.Sb)}function pf(){var a=this.L();Ud(this)||Xd(this)?(D(this,v(this)+a),this.A-=this.B.Sb):this.A-=this.B.Tb} function qf(){var a=this.L();Ud(this)||Xd(this)?this.A-=this.B.Tb:(D(this,v(this)+a),this.A-=this.B.Sb)}function rf(){var a=this.L();Yd(this)?(D(this,v(this)+a),this.A-=this.B.Sb):this.A-=this.B.Tb}function sf(){var a=this.L();Yd(this)?this.A-=this.B.Tb:(D(this,v(this)+a),this.A-=this.B.Sb)}function tf(){var a=this.L();Vd(this)?(D(this,v(this)+a),this.A-=this.B.Sb):this.A-=this.B.Tb}function uf(){var a=this.L();Vd(this)?this.A-=this.B.Tb:(D(this,v(this)+a),this.A-=this.B.Sb)} function vf(){var a=this.L();!Yd(this)!=!Zd(this)?(D(this,v(this)+a),this.A-=this.B.Sb):this.A-=this.B.Tb}function wf(){var a=this.L();!Yd(this)==!Zd(this)?(D(this,v(this)+a),this.A-=this.B.Sb):this.A-=this.B.Tb}function xf(){var a=this.L();Xd(this)||!Yd(this)!=!Zd(this)?(D(this,v(this)+a),this.A-=this.B.Sb):this.A-=this.B.Tb}function yf(){var a=this.L();Xd(this)||!Yd(this)!=!Zd(this)?this.A-=this.B.Tb:(D(this,v(this)+a),this.A-=this.B.Sb)} -function zf(){this.se[this.X()].call(this,Af,this.X);this.A-=0>this.Ga?1:this.B.Ih}function wd(){this.se[this.X()].call(this,Bf,df)}function xd(){this.Qc[this.X()].call(this,Cf,df)}function Df(){var a=this.K()<<(this.Xc>>2);D(this,this.Fa());a&&y(this,w(this)+a);this.A-=this.B.im}function Ef(){D(this,this.Fa());this.A-=this.B.fm} -function yd(){var a=this.K(),b=this.X()&31;this.A-=11;z(this,this.H);var c=w(this)&this.sa.fa;if(0>8,c,d=Wd(this);9<(a&15)||d?(a=a+6&15,b=b+1&255,c=d=!0):c=d=!1;this.G=this.G&-65536|b<<8|(this.P=a);this.T=65536;c&&(this.P|=this.T);d?ee(this):ae(this);this.A-=this.B.Oe},function(){this.ad[this.X()].call(this, -Ce)},function(){this.Bc[this.X()].call(this,De)},function(){this.bd[this.X()].call(this,Ce)},function(){this.tb[this.X()].call(this,De)},function(){Ce.call(this,this.G&255,this.X());this.A--},function(){De.call(this,this.G&this.ha,this.K());this.A--},function(){this.Q|=20;this.hb=this.Nc=this.gb;this.A-=this.B.fe},function(){var a=this.G&255,b=this.G>>8,c,d=Wd(this);9<(a&15)||d?(a=a-6&15,b=b-1&255,c=d=!0):c=d=!1;this.G=this.G&-65536|b<<8|(this.P=a);this.T=65536;c&&(this.P|=this.T);d?ee(this):ae(this); +function zf(){this.se[this.X()].call(this,Af,this.X);this.A-=0>this.Ga?1:this.B.Jh}function wd(){this.se[this.X()].call(this,Bf,df)}function xd(){this.Rc[this.X()].call(this,Cf,df)}function Df(){var a=this.K()<<(this.Yc>>2);D(this,this.Fa());a&&y(this,w(this)+a);this.A-=this.B.jm}function Ef(){D(this,this.Fa());this.A-=this.B.gm} +function yd(){var a=this.K(),b=this.X()&31;this.A-=11;z(this,this.H);var c=w(this)&this.sa.fa;if(0>8,c,d=Wd(this);9<(a&15)||d?(a=a+6&15,b=b+1&255,c=d=!0):c=d=!1;this.G=this.G&-65536|b<<8|(this.P=a);this.T=65536;c&&(this.P|=this.T);d?ee(this):ae(this);this.A-=this.B.Oe},function(){this.bd[this.X()].call(this, +Ce)},function(){this.Cc[this.X()].call(this,De)},function(){this.cd[this.X()].call(this,Ce)},function(){this.tb[this.X()].call(this,De)},function(){Ce.call(this,this.G&255,this.X());this.A--},function(){De.call(this,this.G&this.ha,this.K());this.A--},function(){this.Q|=20;this.hb=this.Oc=this.gb;this.A-=this.B.fe},function(){var a=this.G&255,b=this.G>>8,c,d=Wd(this);9<(a&15)||d?(a=a-6&15,b=b-1&255,c=d=!0):c=d=!1;this.G=this.G&-65536|b<<8|(this.P=a);this.T=65536;c&&(this.P|=this.T);d?ee(this):ae(this); this.A-=this.B.Oe},function(){this.W=(this.da=this.G)+1;this.G=this.W&65535;this.P=this.G|(this.P&this.T?1:0)<<16;this.T=65536;this.A-=2},function(){this.W=(this.da=this.I)+1;this.I=this.W&65535;this.P=this.I|(this.P&this.T?1:0)<<16;this.T=65536;this.A-=2},function(){this.W=(this.da=this.J)+1;this.J=this.W&65535;this.P=this.J|(this.P&this.T?1:0)<<16;this.T=65536;this.A-=2},function(){this.W=(this.da=this.C)+1;this.C=this.W&65535;this.P=this.C|(this.P&this.T?1:0)<<16;this.T=65536;this.A-=2},function(){var a; this.W=(this.da=w(this))+1;y(this,a=this.da&~this.ha|this.W&this.ha);this.P=(a&this.ha)>>>16|a&65535|(this.P&this.T?1:0)<<16;this.T=65536;this.A-=2},function(){this.W=(this.da=this.H)+1;this.H=this.W&65535;this.P=this.H|(this.P&this.T?1:0)<<16;this.T=65536;this.A-=2},function(){this.W=(this.da=this.F)+1;this.F=this.W&65535;this.P=this.F|(this.P&this.T?1:0)<<16;this.T=65536;this.A-=2},function(){this.W=(this.da=this.D)+1;this.D=this.W&65535;this.P=this.D|(this.P&this.T?1:0)<<16;this.T=65536;this.A-= 2},function(){this.W=(this.da=this.G)-1;this.G=this.W&65535;this.P=this.G|(this.P&this.T?1:0)<<16;this.T=65536;this.A-=2},function(){this.W=(this.da=this.I)-1;this.I=this.W&65535;this.P=this.I|(this.P&this.T?1:0)<<16;this.T=65536;this.A-=2},function(){this.W=(this.da=this.J)-1;this.J=this.W&65535;this.P=this.J|(this.P&this.T?1:0)<<16;this.T=65536;this.A-=2},function(){this.W=(this.da=this.C)-1;this.C=this.W&65535;this.P=this.C|(this.P&this.T?1:0)<<16;this.T=65536;this.A-=2},function(){var a;this.W= (this.da=w(this))-1;y(this,a=this.da&~this.ha|this.W&this.ha);this.P=(a&this.ha)>>>16|a&65535|(this.P&this.T?1:0)<<16;this.T=65536;this.A-=2},function(){this.W=(this.da=this.H)-1;this.H=this.W&65535;this.P=this.H|(this.P&this.T?1:0)<<16;this.T=65536;this.A-=2},function(){this.W=(this.da=this.F)-1;this.F=this.W&65535;this.P=this.F|(this.P&this.T?1:0)<<16;this.T=65536;this.A-=2},function(){this.W=(this.da=this.D)-1;this.D=this.W&65535;this.P=this.D|(this.P&this.T?1:0)<<16;this.T=65536;this.A-=2},function(){z(this, -this.G&this.ha);this.A-=this.B.rc},function(){z(this,this.I&this.ha);this.A-=this.B.rc},function(){z(this,this.J&this.ha);this.A-=this.B.rc},function(){z(this,this.C&this.ha);this.A-=this.B.rc},function(){z(this,w(this)-this.Xc&this.ha);this.A-=this.B.rc},function(){z(this,this.H&this.ha);this.A-=this.B.rc},function(){z(this,this.F&this.ha);this.A-=this.B.rc},function(){z(this,this.D&this.ha);this.A-=this.B.rc},function(){this.G=this.G&~this.ha|this.Fa();this.A-=this.B.jc},function(){this.I=this.I& -~this.ha|this.Fa();this.A-=this.B.jc},function(){this.J=this.J&~this.ha|this.Fa();this.A-=this.B.jc},function(){this.C=this.C&~this.ha|this.Fa();this.A-=this.B.jc},function(){y(this,w(this)&~this.ha|this.Fa());this.A-=this.B.jc},function(){this.H=this.H&~this.ha|this.Fa();this.A-=this.B.jc},function(){this.F=this.F&~this.ha|this.Fa();this.A-=this.B.jc},function(){this.D=this.D&~this.ha|this.Fa();this.A-=this.B.jc},jf,kf,lf,mf,nf,of,pf,qf,rf,sf,tf,uf,vf,wf,xf,yf,jf,kf,lf,mf,nf,of,pf,qf,rf,sf,tf,uf, -vf,wf,xf,yf,zf,function(){this.Qc[this.X()].call(this,Jf,this.K);this.A-=0>this.Ga?1:this.B.Ih},zf,function(){this.Qc[this.X()].call(this,Jf,this.L);this.A-=0>this.Ga?1:this.B.Ih},function(){this.ad[this.X()].call(this,Ve)},function(){this.Bc[this.X()].call(this,We)},function(){this.bd[this.Xg=this.X()].call(this,Xe)},function(){this.tb[this.Xg=this.X()].call(this,Ye)},function(){this.Q|=1;this.ad[this.X()].call(this,Me)},function(){this.Q|=1;this.Bc[this.X()].call(this,Me)},function(){this.bd[this.X()].call(this, -Me)},function(){this.tb[this.X()].call(this,Me)},function(){var a=this.X();switch((a&56)>>3){case 0:this.Db=this.Oa.ta;break;case 1:this.Db=this.na.ta;break;case 2:this.Db=this.sa.ta;break;case 3:this.Db=this.gb.ta;break;default:R.call(this);return}this.Q|=1;this.Bc[a].call(this,Ne)},function(){this.Q|=1;this.hb=this.Nc=this.Am;this.tb[this.X()].call(this,Je)},function(){var a,b=this.X(),c=(b&56)>>3;switch(c){case 0:a=this.G;break;case 2:a=this.J;break;case 3:a=this.C;break;default:if(80286==this.za|| +this.G&this.ha);this.A-=this.B.sc},function(){z(this,this.I&this.ha);this.A-=this.B.sc},function(){z(this,this.J&this.ha);this.A-=this.B.sc},function(){z(this,this.C&this.ha);this.A-=this.B.sc},function(){z(this,w(this)-this.Yc&this.ha);this.A-=this.B.sc},function(){z(this,this.H&this.ha);this.A-=this.B.sc},function(){z(this,this.F&this.ha);this.A-=this.B.sc},function(){z(this,this.D&this.ha);this.A-=this.B.sc},function(){this.G=this.G&~this.ha|this.Fa();this.A-=this.B.kc},function(){this.I=this.I& +~this.ha|this.Fa();this.A-=this.B.kc},function(){this.J=this.J&~this.ha|this.Fa();this.A-=this.B.kc},function(){this.C=this.C&~this.ha|this.Fa();this.A-=this.B.kc},function(){y(this,w(this)&~this.ha|this.Fa());this.A-=this.B.kc},function(){this.H=this.H&~this.ha|this.Fa();this.A-=this.B.kc},function(){this.F=this.F&~this.ha|this.Fa();this.A-=this.B.kc},function(){this.D=this.D&~this.ha|this.Fa();this.A-=this.B.kc},jf,kf,lf,mf,nf,of,pf,qf,rf,sf,tf,uf,vf,wf,xf,yf,jf,kf,lf,mf,nf,of,pf,qf,rf,sf,tf,uf, +vf,wf,xf,yf,zf,function(){this.Rc[this.X()].call(this,Jf,this.K);this.A-=0>this.Ga?1:this.B.Jh},zf,function(){this.Rc[this.X()].call(this,Jf,this.L);this.A-=0>this.Ga?1:this.B.Jh},function(){this.bd[this.X()].call(this,Ve)},function(){this.Cc[this.X()].call(this,We)},function(){this.cd[this.Yg=this.X()].call(this,Xe)},function(){this.tb[this.Yg=this.X()].call(this,Ye)},function(){this.Q|=1;this.bd[this.X()].call(this,Me)},function(){this.Q|=1;this.Cc[this.X()].call(this,Me)},function(){this.cd[this.X()].call(this, +Me)},function(){this.tb[this.X()].call(this,Me)},function(){var a=this.X();switch((a&56)>>3){case 0:this.Db=this.Oa.ta;break;case 1:this.Db=this.na.ta;break;case 2:this.Db=this.sa.ta;break;case 3:this.Db=this.gb.ta;break;default:R.call(this);return}this.Q|=1;this.Cc[a].call(this,Ne)},function(){this.Q|=1;this.hb=this.Oc=this.Bm;this.tb[this.X()].call(this,Je)},function(){var a,b=this.X(),c=(b&56)>>3;switch(c){case 0:a=this.G;break;case 2:a=this.J;break;case 3:a=this.C;break;default:if(80286==this.za|| 80386==this.za&&4!=c&&5!=c){kd.call(this);return}switch(c){case 1:a=this.I;break;case 4:a=w(this);break;case 5:a=this.H;break;case 6:a=this.F;break;case 7:a=this.D}}this.tb[b].call(this,Me);switch(c){case 0:Td(this,this.G);this.G=a;break;case 1:Rd(this,this.I);this.I=a;break;case 2:Zc(this,this.J);this.J=a;break;case 3:Sd(this,this.C);this.C=a;break;case 4:Td(this,w(this));y(this,a);break;case 5:Rd(this,this.H);this.H=a;break;case 6:Zc(this,this.F);this.F=a;break;case 7:Sd(this,this.D),this.D=a}}, -function(){this.Q|=1;this.Qc[this.X()].call(this,Kf,this.Fa)},function(){this.A-=3},function(){var a=this.G;this.G=this.I;this.I=a;this.A-=3},function(){var a=this.G;this.G=this.J;this.J=a;this.A-=3},function(){var a=this.G;this.G=this.C;this.C=a;this.A-=3},function(){var a=this.G;this.G=w(this);y(this,a);this.A-=3},function(){var a=this.G;this.G=this.H;this.H=a;this.A-=3},function(){var a=this.G;this.G=this.F;this.F=a;this.A-=3},function(){var a=this.G;this.G=this.D;this.D=a;this.A-=3},function(){this.G= -2==this.Xc?this.G&-65536|this.G<<24>>24&65535:this.G<<16>>16;this.A-=2},function(){this.J=2==this.Xc?this.J&-65536|(this.G&32768?65535:0):this.G&-2147483648?-1:0;this.A-=this.B.pl},function(){Be.call(this,this.K(),ne(this));this.A-=this.B.sl},function(){this.cc("WAIT not implemented",1);this.A--},function(){z(this,ob(this));this.A-=this.B.rc},function(){Xc(this,this.Fa());this.A-=this.B.jc},function(){var a=this.G>>8;a&xb?de(this):$d(this);a&wb?Vd(this)||(this.W^=1):Vd(this)&&(this.W^=1);a&vb?ee(this): -ae(this);a&ub?fe(this):be(this);a&tb?ge(this):Yd(this)&&(this.W^=this.T>>1|this.T>>2,this.da^=32896);this.A-=this.B.Ab},function(){this.G=this.G&255|(ob(this)&Ec)<<8;this.A-=this.B.Ab},function(){var a=this.G&-256,b;b=this.K();b=this.qc(this.hb.Fc(b,0));this.G=a|b;this.A-=this.B.xj},function(){this.G=this.G&~this.ha|ad(this,this.hb,this.K());this.A-=this.B.xj},function(){var a=this.K(),b=this.G;this.Ue(this.hb.hc(a,0),b);this.A-=this.B.yj},function(){var a=this.K(),b=this.G;this.Ka(this.hb.hc(a,1), -b);this.A-=this.B.yj},function(){var a=1,b=0,c=this.B.zj;this.va&192&&(a=this.I,b=1,c=this.B.Bj,this.va&256||(this.A-=this.B.Aj));if(a--){var d=this.Aa&qb?-1:1,e=this.qc(this.hb.Fc(this.F,0));this.Ue(this.Oa.hc(this.D&this.fa,0),e);this.F=this.F&~this.fa|this.F+d&this.fa;this.D=this.D&~this.fa|this.D+d&this.fa;this.A-=c;this.I-=b;a&&(this.ka=this.Bb,this.Q|=256)}},function(){var a=1,b=0,c=this.B.zj;this.va&192&&(a=this.I,b=1,c=this.B.Bj,this.va&256||(this.A-=this.B.Aj));if(a--){var d=this.Aa&qb?-2: -2,e=ad(this,this.hb,this.F);this.Ka(this.Oa.hc(this.D&this.fa,1),e);this.F=this.F&~this.fa|this.F+d&this.fa;this.D=this.D&~this.fa|this.D+d&this.fa;this.A-=c;this.I-=b;a&&(this.ka=this.Bb,this.Q|=256)}},function(){var a=1,b=0,c=this.B.jj;this.va&192&&(a=this.I,b=1,c=this.B.lj,this.va&256||(this.A-=this.B.kj));if(a--){var d=this.Aa&qb?-1:1,e=je(this,this.hb,this.F&this.fa),f=le(this,this.Oa,this.D&this.fa);Ce.call(this,e,f);this.F=this.F&~this.fa|this.F+d&this.fa;this.D=this.D&~this.fa|this.D+d&this.fa; -this.A-=c-this.B.rb;this.I-=b;a&&Xd(this)==(this.va&64)&&(this.ka=this.Bb,this.Q|=256)}},function(){var a=1,b=0,c=this.B.jj;this.va&192&&(a=this.I,b=1,c=this.B.lj,this.va&256||(this.A-=this.B.kj));if(a--){var d=this.Aa&qb?-2:2,e=ke(this,this.hb,this.F&this.fa),f=me(this,this.Oa,this.D&this.fa);De.call(this,e,f);this.F=this.F&~this.fa|this.F+d&this.fa;this.D=this.D&~this.fa|this.D+d&this.fa;this.A-=c-this.B.rb;this.I-=b;a&&Xd(this)==(this.va&64)&&(this.ka=this.Bb,this.Q|=256)}},function(){this.P=this.W= -this.da=this.G&this.X();this.T=256;this.A-=this.B.Oe},function(){this.P=this.W=this.da=this.G&this.K();this.T=65536;this.A-=this.B.Oe},function(){var a=1,b=0,c=this.B.Kj;this.va&192&&(a=this.I,b=1,c=this.B.Mj,this.va&256||(this.A-=this.B.Lj));if(a--){var d=this.G;this.Ue(this.Oa.hc(this.D&this.fa,0),d);this.D=this.D&~this.fa|this.D+(this.Aa&qb?-1:1)&this.fa;this.A-=c;this.I-=b;a&&(this.ka=this.Bb,this.Q|=256)}},function(){var a=1,b=0,c=this.B.Kj;this.va&192&&(a=this.I,b=1,c=this.B.Mj,this.va&256|| -(this.A-=this.B.Lj));if(a--){var d=this.G;this.Ka(this.Oa.hc(this.D&this.fa,1),d);this.D=this.D&~this.fa|this.D+(this.Aa&qb?-2:2)&this.fa;this.A-=c;this.I-=b;a&&(this.ka=this.Bb,this.Q|=256)}},function(){var a=1,b=0,c=this.B.rj;this.va&192&&(a=this.I,b=1,c=this.B.tj,this.va&256||(this.A-=this.B.sj));a--&&(this.G=this.G&-256|this.qc(this.hb.Fc(this.F&this.fa,0)),this.F=this.F&~this.fa|this.F+(this.Aa&qb?-1:1)&this.fa,this.A-=c,this.I-=b,a&&(this.ka=this.Bb,this.Q|=256))},function(){var a=1,b=0,c=this.B.rj; -this.va&192&&(a=this.I,b=1,c=this.B.tj,this.va&256||(this.A-=this.B.sj));a--&&(this.G=ad(this,this.hb,this.F&this.fa),this.F=this.F&~this.fa|this.F+(this.Aa&qb?-2:2)&this.fa,this.A-=c,this.I-=b,a&&(this.ka=this.Bb,this.Q|=256))},function(){var a=1,b=0,c=this.B.Ej;this.va&192&&(a=this.I,b=1,c=this.B.Gj,this.va&256||(this.A-=this.B.Fj));a--&&(Ce.call(this,this.G&255,le(this,this.Oa,this.D&this.fa)),this.D=this.D&~this.fa|this.D+(this.Aa&qb?-1:1)&this.fa,this.A-=c-this.B.rb,this.I-=b,a&&Xd(this)==(this.va& -64)&&(this.ka=this.Bb,this.Q|=256))},function(){var a=1,b=0,c=this.B.Ej;this.va&192&&(a=this.I,b=1,c=this.B.Gj,this.va&256||(this.A-=this.B.Fj));a--&&(De.call(this,this.G,me(this,this.Oa,this.D&this.fa)),this.D=this.D&~this.fa|this.D+(this.Aa&qb?-2:2)&this.fa,this.A-=c-this.B.rb,this.I-=b,a&&Xd(this)==(this.va&64)&&(this.ka=this.Bb,this.Q|=256))},function(){this.G=this.G&-256|this.X();this.A-=this.B.Ab},function(){this.I=this.I&-256|this.X();this.A-=this.B.Ab},function(){this.J=this.J&-256|this.X(); +function(){this.Q|=1;this.Rc[this.X()].call(this,Kf,this.Fa)},function(){this.A-=3},function(){var a=this.G;this.G=this.I;this.I=a;this.A-=3},function(){var a=this.G;this.G=this.J;this.J=a;this.A-=3},function(){var a=this.G;this.G=this.C;this.C=a;this.A-=3},function(){var a=this.G;this.G=w(this);y(this,a);this.A-=3},function(){var a=this.G;this.G=this.H;this.H=a;this.A-=3},function(){var a=this.G;this.G=this.F;this.F=a;this.A-=3},function(){var a=this.G;this.G=this.D;this.D=a;this.A-=3},function(){this.G= +2==this.Yc?this.G&-65536|this.G<<24>>24&65535:this.G<<16>>16;this.A-=2},function(){this.J=2==this.Yc?this.J&-65536|(this.G&32768?65535:0):this.G&-2147483648?-1:0;this.A-=this.B.ql},function(){Be.call(this,this.K(),ne(this));this.A-=this.B.tl},function(){this.cc("WAIT not implemented",1);this.A--},function(){z(this,ob(this));this.A-=this.B.sc},function(){Xc(this,this.Fa());this.A-=this.B.kc},function(){var a=this.G>>8;a&xb?de(this):$d(this);a&wb?Vd(this)||(this.W^=1):Vd(this)&&(this.W^=1);a&vb?ee(this): +ae(this);a&ub?fe(this):be(this);a&tb?ge(this):Yd(this)&&(this.W^=this.T>>1|this.T>>2,this.da^=32896);this.A-=this.B.Ab},function(){this.G=this.G&255|(ob(this)&Ec)<<8;this.A-=this.B.Ab},function(){var a=this.G&-256,b;b=this.K();b=this.rc(this.hb.Gc(b,0));this.G=a|b;this.A-=this.B.yj},function(){this.G=this.G&~this.ha|ad(this,this.hb,this.K());this.A-=this.B.yj},function(){var a=this.K(),b=this.G;this.Ue(this.hb.ic(a,0),b);this.A-=this.B.zj},function(){var a=this.K(),b=this.G;this.Ka(this.hb.ic(a,1), +b);this.A-=this.B.zj},function(){var a=1,b=0,c=this.B.Aj;this.wa&192&&(a=this.I,b=1,c=this.B.Cj,this.wa&256||(this.A-=this.B.Bj));if(a--){var d=this.Aa&qb?-1:1,e=this.rc(this.hb.Gc(this.F,0));this.Ue(this.Oa.ic(this.D&this.fa,0),e);this.F=this.F&~this.fa|this.F+d&this.fa;this.D=this.D&~this.fa|this.D+d&this.fa;this.A-=c;this.I-=b;a&&(this.ka=this.Bb,this.Q|=256)}},function(){var a=1,b=0,c=this.B.Aj;this.wa&192&&(a=this.I,b=1,c=this.B.Cj,this.wa&256||(this.A-=this.B.Bj));if(a--){var d=this.Aa&qb?-2: +2,e=ad(this,this.hb,this.F);this.Ka(this.Oa.ic(this.D&this.fa,1),e);this.F=this.F&~this.fa|this.F+d&this.fa;this.D=this.D&~this.fa|this.D+d&this.fa;this.A-=c;this.I-=b;a&&(this.ka=this.Bb,this.Q|=256)}},function(){var a=1,b=0,c=this.B.kj;this.wa&192&&(a=this.I,b=1,c=this.B.mj,this.wa&256||(this.A-=this.B.lj));if(a--){var d=this.Aa&qb?-1:1,e=je(this,this.hb,this.F&this.fa),f=le(this,this.Oa,this.D&this.fa);Ce.call(this,e,f);this.F=this.F&~this.fa|this.F+d&this.fa;this.D=this.D&~this.fa|this.D+d&this.fa; +this.A-=c-this.B.rb;this.I-=b;a&&Xd(this)==(this.wa&64)&&(this.ka=this.Bb,this.Q|=256)}},function(){var a=1,b=0,c=this.B.kj;this.wa&192&&(a=this.I,b=1,c=this.B.mj,this.wa&256||(this.A-=this.B.lj));if(a--){var d=this.Aa&qb?-2:2,e=ke(this,this.hb,this.F&this.fa),f=me(this,this.Oa,this.D&this.fa);De.call(this,e,f);this.F=this.F&~this.fa|this.F+d&this.fa;this.D=this.D&~this.fa|this.D+d&this.fa;this.A-=c-this.B.rb;this.I-=b;a&&Xd(this)==(this.wa&64)&&(this.ka=this.Bb,this.Q|=256)}},function(){this.P=this.W= +this.da=this.G&this.X();this.T=256;this.A-=this.B.Oe},function(){this.P=this.W=this.da=this.G&this.K();this.T=65536;this.A-=this.B.Oe},function(){var a=1,b=0,c=this.B.Lj;this.wa&192&&(a=this.I,b=1,c=this.B.Nj,this.wa&256||(this.A-=this.B.Mj));if(a--){var d=this.G;this.Ue(this.Oa.ic(this.D&this.fa,0),d);this.D=this.D&~this.fa|this.D+(this.Aa&qb?-1:1)&this.fa;this.A-=c;this.I-=b;a&&(this.ka=this.Bb,this.Q|=256)}},function(){var a=1,b=0,c=this.B.Lj;this.wa&192&&(a=this.I,b=1,c=this.B.Nj,this.wa&256|| +(this.A-=this.B.Mj));if(a--){var d=this.G;this.Ka(this.Oa.ic(this.D&this.fa,1),d);this.D=this.D&~this.fa|this.D+(this.Aa&qb?-2:2)&this.fa;this.A-=c;this.I-=b;a&&(this.ka=this.Bb,this.Q|=256)}},function(){var a=1,b=0,c=this.B.sj;this.wa&192&&(a=this.I,b=1,c=this.B.uj,this.wa&256||(this.A-=this.B.tj));a--&&(this.G=this.G&-256|this.rc(this.hb.Gc(this.F&this.fa,0)),this.F=this.F&~this.fa|this.F+(this.Aa&qb?-1:1)&this.fa,this.A-=c,this.I-=b,a&&(this.ka=this.Bb,this.Q|=256))},function(){var a=1,b=0,c=this.B.sj; +this.wa&192&&(a=this.I,b=1,c=this.B.uj,this.wa&256||(this.A-=this.B.tj));a--&&(this.G=ad(this,this.hb,this.F&this.fa),this.F=this.F&~this.fa|this.F+(this.Aa&qb?-2:2)&this.fa,this.A-=c,this.I-=b,a&&(this.ka=this.Bb,this.Q|=256))},function(){var a=1,b=0,c=this.B.Fj;this.wa&192&&(a=this.I,b=1,c=this.B.Hj,this.wa&256||(this.A-=this.B.Gj));a--&&(Ce.call(this,this.G&255,le(this,this.Oa,this.D&this.fa)),this.D=this.D&~this.fa|this.D+(this.Aa&qb?-1:1)&this.fa,this.A-=c-this.B.rb,this.I-=b,a&&Xd(this)==(this.wa& +64)&&(this.ka=this.Bb,this.Q|=256))},function(){var a=1,b=0,c=this.B.Fj;this.wa&192&&(a=this.I,b=1,c=this.B.Hj,this.wa&256||(this.A-=this.B.Gj));a--&&(De.call(this,this.G,me(this,this.Oa,this.D&this.fa)),this.D=this.D&~this.fa|this.D+(this.Aa&qb?-2:2)&this.fa,this.A-=c-this.B.rb,this.I-=b,a&&Xd(this)==(this.wa&64)&&(this.ka=this.Bb,this.Q|=256))},function(){this.G=this.G&-256|this.X();this.A-=this.B.Ab},function(){this.I=this.I&-256|this.X();this.A-=this.B.Ab},function(){this.J=this.J&-256|this.X(); this.A-=this.B.Ab},function(){this.C=this.C&-256|this.X();this.A-=this.B.Ab},function(){this.G=this.G&255|this.X()<<8;this.A-=this.B.Ab},function(){this.I=this.I&255|this.X()<<8;this.A-=this.B.Ab},function(){this.J=this.J&255|this.X()<<8;this.A-=this.B.Ab},function(){this.C=this.C&255|this.X()<<8;this.A-=this.B.Ab},function(){this.G=this.G&~this.ha|this.K();this.A-=this.B.Ab},function(){this.I=this.I&~this.ha|this.K();this.A-=this.B.Ab},function(){this.J=this.J&~this.ha|this.K();this.A-=this.B.Ab}, -function(){this.C=this.C&~this.ha|this.K();this.A-=this.B.Ab},function(){y(this,w(this)&~this.ha|this.K());this.A-=this.B.Ab},function(){this.H=this.H&~this.ha|this.K();this.A-=this.B.Ab},function(){this.F=this.F&~this.ha|this.K();this.A-=this.B.Ab},function(){this.D=this.D&~this.ha|this.K();this.A-=this.B.Ab},Df,Ef,Df,Ef,function(){this.tb[this.X()].call(this,Ke)},function(){this.tb[this.X()].call(this,Ie)},function(){this.Q|=1;this.se[this.X()].call(this,Lf,this.X)},function(){this.Q|=1;this.Qc[this.X()].call(this, -Lf,this.K)},Ff,Gf,Ff,Gf,function(){pe.call(this,3,null,this.B.Jl)},function(){var a=this.X(),b;a:{b=this.Lg[a];if(void 0!==b)for(var c=0;c>8)*a+this.G&255;this.T=256;this.A-=this.B.ll},function(){this.G=this.G&-256|(Ud(this)?255:0);this.A-=2},function(){this.G= -this.G&-256|je(this,this.hb,this.C+(this.G&255)&65535);this.A-=this.B.km},Hf,Hf,Hf,Hf,Hf,Hf,Hf,Hf,function(){var a=this.L();(this.I=this.I-1&this.fa)&&this.P&this.T-1?(D(this,v(this)+a),this.A-=this.B.Sl):this.A-=this.B.uj},function(){var a=this.L();!(this.I=this.I-1&this.fa)||this.P&this.T-1?this.A-=this.B.wj:(D(this,v(this)+a),this.A-=this.B.vj)},function(){var a=this.L();(this.I=this.I-1&this.fa)?(D(this,v(this)+a),this.A-=this.B.Rl):this.A-=this.B.uj},function(){var a=this.L();this.I?this.A-= -this.B.wj:(D(this,v(this)+a),this.A-=this.B.vj)},function(){var a=this.X();this.G=this.G&-256|Jb(this.ja,a,this.ka-2);this.A-=this.B.oj},function(){var a=this.X();this.G=Jb(this.ja,a,this.ka-2);this.G|=Jb(this.ja,a+1&65535,this.ka-2)<<8;this.A-=this.B.oj},function(){var a=this.X();Lb(this.ja,a,this.G&255,this.ka-2);this.A-=this.B.Dj},function(){var a=this.X();Lb(this.ja,a,this.G&255,this.ka-2);Lb(this.ja,a+1&65535,this.G>>8,this.ka-2);this.A-=this.B.Dj},function(){var a=this.K();z(this,v(this));D(this, -v(this)+a);this.A-=this.B.ql},function(){var a=this.K();D(this,v(this)+a);this.A-=this.B.pj},function(){Yc(this,this.K(),ne(this));this.A-=this.B.Nl},function(){var a=this.L();D(this,v(this)+a);this.A-=this.B.pj},function(){this.G=this.G&-256|Jb(this.ja,this.J,this.ka-1);this.A-=this.B.nj},function(){this.G=Jb(this.ja,this.J,this.ka-1);this.G|=Jb(this.ja,this.J+1&65535,this.ka-1)<<8;this.A-=this.B.nj},function(){Lb(this.ja,this.J,this.G&255,this.ka-1);this.A-=this.B.Cj},function(){Lb(this.ja,this.J, -this.G&255,this.ka-1);Lb(this.ja,this.J+1&65535,this.G>>8,this.ka-1);this.A-=this.B.Cj},If,If,function(){this.Q|=132;this.A-=this.B.fe},function(){this.Q|=68;this.A-=this.B.fe},function(){this.lb|=4;this.A-=2;this.Aa&rb||rc(this)},function(){Ud(this)?$d(this):de(this);this.A-=2},function(){this.Db=-1;this.se[this.X()].call(this,Mf,ef);0<=this.Db&&(this.G=this.Db)},function(){this.Db=-1;this.Qc[this.X()].call(this,Nf,ef);0<=this.Db&&(this.G=this.Db,this.J=this.Dg)},function(){this.P&=~this.T;this.A-= -2},function(){this.P|=this.T;this.A-=2},function(){this.Aa&=~rb;this.A-=this.B.ol},function(){this.Aa|=rb;this.Q|=4;this.A-=2},function(){this.Aa&=~qb;this.A-=2},function(){this.Aa|=qb;this.A-=2},function(){this.se[this.X()].call(this,fd,ef)},function(){this.Qc[this.X()].call(this,id,ef)}],Af=[ve,Oe,te,Re,xe,Te,Ze,Ce],Jf=[we,Pe,ue,Se,ye,Ue,$e,De],Kf=[function(a,b){this.A-=0>this.Ga?this.B.jc:this.B.cm;return b},ff,ff,ff,ff,ff,ff,ff],Lf=[function(a,b){this.A-=0>this.Ga?this.B.Vl:this.B.Tl;return b}, +function(){this.C=this.C&~this.ha|this.K();this.A-=this.B.Ab},function(){y(this,w(this)&~this.ha|this.K());this.A-=this.B.Ab},function(){this.H=this.H&~this.ha|this.K();this.A-=this.B.Ab},function(){this.F=this.F&~this.ha|this.K();this.A-=this.B.Ab},function(){this.D=this.D&~this.ha|this.K();this.A-=this.B.Ab},Df,Ef,Df,Ef,function(){this.tb[this.X()].call(this,Ke)},function(){this.tb[this.X()].call(this,Ie)},function(){this.Q|=1;this.se[this.X()].call(this,Lf,this.X)},function(){this.Q|=1;this.Rc[this.X()].call(this, +Lf,this.K)},Ff,Gf,Ff,Gf,function(){pe.call(this,3,null,this.B.Kl)},function(){var a=this.X(),b;a:{b=this.Mg[a];if(void 0!==b)for(var c=0;c>8)*a+this.G&255;this.T=256;this.A-=this.B.ml},function(){this.G=this.G&-256|(Ud(this)?255:0);this.A-=2},function(){this.G= +this.G&-256|je(this,this.hb,this.C+(this.G&255)&65535);this.A-=this.B.lm},Hf,Hf,Hf,Hf,Hf,Hf,Hf,Hf,function(){var a=this.L();(this.I=this.I-1&this.fa)&&this.P&this.T-1?(D(this,v(this)+a),this.A-=this.B.Tl):this.A-=this.B.vj},function(){var a=this.L();!(this.I=this.I-1&this.fa)||this.P&this.T-1?this.A-=this.B.xj:(D(this,v(this)+a),this.A-=this.B.wj)},function(){var a=this.L();(this.I=this.I-1&this.fa)?(D(this,v(this)+a),this.A-=this.B.Sl):this.A-=this.B.vj},function(){var a=this.L();this.I?this.A-= +this.B.xj:(D(this,v(this)+a),this.A-=this.B.wj)},function(){var a=this.X();this.G=this.G&-256|Jb(this.ja,a,this.ka-2);this.A-=this.B.pj},function(){var a=this.X();this.G=Jb(this.ja,a,this.ka-2);this.G|=Jb(this.ja,a+1&65535,this.ka-2)<<8;this.A-=this.B.pj},function(){var a=this.X();Lb(this.ja,a,this.G&255,this.ka-2);this.A-=this.B.Ej},function(){var a=this.X();Lb(this.ja,a,this.G&255,this.ka-2);Lb(this.ja,a+1&65535,this.G>>8,this.ka-2);this.A-=this.B.Ej},function(){var a=this.K();z(this,v(this));D(this, +v(this)+a);this.A-=this.B.rl},function(){var a=this.K();D(this,v(this)+a);this.A-=this.B.qj},function(){Yc(this,this.K(),ne(this));this.A-=this.B.Ol},function(){var a=this.L();D(this,v(this)+a);this.A-=this.B.qj},function(){this.G=this.G&-256|Jb(this.ja,this.J,this.ka-1);this.A-=this.B.oj},function(){this.G=Jb(this.ja,this.J,this.ka-1);this.G|=Jb(this.ja,this.J+1&65535,this.ka-1)<<8;this.A-=this.B.oj},function(){Lb(this.ja,this.J,this.G&255,this.ka-1);this.A-=this.B.Dj},function(){Lb(this.ja,this.J, +this.G&255,this.ka-1);Lb(this.ja,this.J+1&65535,this.G>>8,this.ka-1);this.A-=this.B.Dj},If,If,function(){this.Q|=132;this.A-=this.B.fe},function(){this.Q|=68;this.A-=this.B.fe},function(){this.lb|=4;this.A-=2;this.Aa&rb||rc(this)},function(){Ud(this)?$d(this):de(this);this.A-=2},function(){this.Db=-1;this.se[this.X()].call(this,Mf,ef);0<=this.Db&&(this.G=this.Db)},function(){this.Db=-1;this.Rc[this.X()].call(this,Nf,ef);0<=this.Db&&(this.G=this.Db,this.J=this.Eg)},function(){this.P&=~this.T;this.A-= +2},function(){this.P|=this.T;this.A-=2},function(){this.Aa&=~rb;this.A-=this.B.pl},function(){this.Aa|=rb;this.Q|=4;this.A-=2},function(){this.Aa&=~qb;this.A-=2},function(){this.Aa|=qb;this.A-=2},function(){this.se[this.X()].call(this,fd,ef)},function(){this.Rc[this.X()].call(this,id,ef)}],Af=[ve,Oe,te,Re,xe,Te,Ze,Ce],Jf=[we,Pe,ue,Se,ye,Ue,$e,De],Kf=[function(a,b){this.A-=0>this.Ga?this.B.kc:this.B.dm;return b},ff,ff,ff,ff,ff,ff,ff],Lf=[function(a,b){this.A-=0>this.Ga?this.B.Wl:this.B.Ul;return b}, S,S,S,S,S,S,S],Bf=[function(a,b){var c=a;if(b){var d,e=b&7;e?c=(d=a<>8-e)&255:d=a<<8;af.call(this,d,256)}return c},function(a,b){var c=a;if(b){var d,c=b&7,c=d=(a>>c|a<<8-c)&255;d&128&&(d|=256);af.call(this,d,256)}return c},function(a,b){var c=a;if(b){var d;(d=(b&this.Ef)%9)?(d=a<>9-d,c=d&255):d=a|(this.P&this.T?1:0)<<8;af.call(this,d,256)}return c},function(a,b){var c=a;b&&(c=(b&this.Ef)%9,c=a>>c|(this.P&this.T?1:0)<<8-c|a<<9-c,af.call(this,c,256),c&=255);return c}, function(a,b){var c=a;b&&(c=8>b-1;this.P=this.W=c>>1;this.P=c&1?this.P|256:this.P&-257;this.da=a^this.P;this.T=256;a=this.P}return a&255},S,function(a,b){if(b){8>24>>b-1;this.P=this.W=c>>1;this.P=c&1?this.P|256:this.P&-257;this.da=a^this.P;this.T=256;a=this.P}return a&255}],Cf=[function(a,b){var c=a;if(b){var d,e=b&15;e?c=(d=a<>16-e)&65535:d=a<<16;af.call(this,d, 65536)}return c},function(a,b){var c=a;if(b){var d,c=b&15,c=d=(a>>c|a<<16-c)&65535;d&32768&&(d|=65536);af.call(this,d,65536)}return c},function(a,b){var c=a;if(b){var d;(d=(b&this.Ef)%17)?(d=a<>17-d,c=d&65535):d=a|(this.P&this.T?1:0)<<16;af.call(this,d,65536)}return c},function(a,b){var c=a;b&&(c=(b&this.Ef)%17,c=a>>c|(this.P&this.T?1:0)<<16-c|a<<17-c,af.call(this,c,65536),c&=65535);return c},function(a,b){var c=a;b&&(c=16>b-1;this.P=this.W=c>>1;this.P=c&1?this.P|65536:this.P&-65537;this.da=a^this.P;this.T=65536;a=this.P}return a&65535},S,function(a,b){if(b){16>16>>b-1;this.P=this.W=c>>1;this.P=c&1?this.P|65536:this.P&-65537;this.da=a^this.P;this.T=65536;a=this.P}return a&65535}],Mf=[function(a,b){b=this.X();this.P=this.W=this.da=a&b;this.T=256;this.A-=0>this.aa?this.B.Oj:this.B.Nj;this.Q|=2;return a},S,function(a){this.A-= -0>this.aa?this.B.wg:this.B.vg;return a^255},function(a,b){b=0;this.da=a^b;this.T=256;this.A-=0>this.aa?this.B.wg:this.B.vg;return(this.P=this.W=b-a)&255},function(a){this.G=this.Db=(this.P=(this.G&255)*a)&65535;this.da=this.W=this.P;this.T=256;this.G&65280?(de(this),he(this)):($d(this),ce(this));this.A-=0>this.aa?this.B.Zl:this.B.Yl;this.Q|=2;return a},function(a){var b=(this.G<<24>>24)*(a<<24>>24);this.G=this.Db=b&65535;this.P=this.da=this.W=b;this.T=256;127b?(de(this),he(this)):($d(this), -ce(this));this.A-=0>this.aa?this.B.El:this.B.Dl;this.Q|=2;return a},function(a){if(!a)return gf.call(this),a;var b=this.G/a;if(255this.aa?this.B.wl:this.B.vl;this.Q|=2;return a},function(a){if(!a)return gf.call(this),a;var b=(this.G<<16>>16)/(a<<24>>24);if(b>b<<24>>24&65535)return gf.call(this),a;this.Db=this.G=b&255|((this.G<<16>>16)%(a<<24>>24)&255)<<8;this.W=this.da=this.P=b|256;this.T= -256;this.A-=0>this.aa?this.B.Al:this.B.zl;this.Q|=2;return a}],Nf=[function(a,b){b=this.K();this.P=this.W=this.da=a&b;this.T=65536;this.A-=0>this.aa?this.B.Oj:this.B.Nj;this.Q|=2;return a},S,function(a){this.A-=0>this.aa?this.B.wg:this.B.vg;return a^65535},function(a,b){b=0;this.da=a^b;this.T=65536;this.A-=0>this.aa?this.B.wg:this.B.vg;return(this.P=this.W=b-a)&65535},function(a){this.Db=this.G=(this.P=this.G*a)&65535;this.Dg=this.J=this.P>>16&65535;this.da=this.W=this.P;this.T=65536;this.J?(de(this), -he(this)):($d(this),ce(this));this.A-=0>this.aa?this.B.am:this.B.$l;this.Q|=2;return a},function(a){var b=(this.G<<16>>16)*(a<<16>>16);this.G=this.Db=b&65535;this.J=this.Dg=b>>16&65535;this.P=this.da=this.W=b;this.T=65536;32767b?(de(this),he(this)):($d(this),ce(this));this.A-=0>this.aa?this.B.Gl:this.B.Fl;this.Q|=2;return a},function(a,b){if(!a)return gf.call(this),a;b=this.G+65536*this.J;var c=Math.floor(b/a);if(65536<=c)return gf.call(this),a;this.Db=this.G=c&65535;this.Dg=this.J=b%a& -65535;this.W=this.da=this.P=c|65536;this.T=65536;this.A-=0>this.aa?this.B.yl:this.B.xl;this.Q|=2;return a},function(a,b){if(!a)return gf.call(this),a;var c=a<<16>>16;b=this.J<<16|this.G;var d=Math.floor(b/c);if(d!=(d&65535)<<16>>16)return gf.call(this),a;this.Db=this.G=d&65535;this.Dg=this.J=b%c&65535;this.W=this.da=this.P=d|65536;this.T=65536;this.A-=0>this.aa?this.B.Cl:this.B.Bl;this.Q|=2;return a}],fd=[function(a){this.da=a;a=(this.W=a+1)&255;this.P=a|(this.P&this.T?1:0)<<8;this.T=256;this.A-= -0>this.aa?this.B.ug:this.B.tg;return a},function(a){this.da=a;a=(this.W=a-1)&255;this.P=a|(this.P&this.T?1:0)<<8;this.T=256;this.A-=0>this.aa?this.B.ug:this.B.tg;return a},S,S,S,S,S,S],id=[function(a){this.da=a;a=(this.W=a+1)&65535;this.P=a|(this.P&this.T?1:0)<<16;this.T=65536;this.A-=0>this.aa?this.B.ug:this.B.tg;return a},function(a){this.da=a;a=(this.W=a-1)&65535;this.P=a|(this.P&this.T?1:0)<<16;this.T=65536;this.A-=0>this.aa?this.B.ug:this.B.tg;return a},function(a){z(this,v(this));D(this,a); -this.A-=0>this.aa?this.B.ul:this.B.tl;this.Q|=2;return a},function(a){if(0>this.aa)return S.call(this,a);Be.call(this,a,this.la(this.aa+2));this.A-=this.B.rl;this.Q|=2;return a},function(a){D(this,a);this.A-=0>this.aa?this.B.Pl:this.B.Ol;this.Q|=2;return a},function(a){if(0>this.aa)return S.call(this,a);Yc(this,a,this.la(this.aa+2));this.dh&&Nd(this,this.ka);this.A-=this.B.Ml;this.Q|=2;return a},function(a){var b=a;this.Q&512&&(a=a-2&65535,80286>this.za&&(b=a));z(this,b);this.A-=0>this.aa?this.B.rc: -this.B.em;this.Q|=2;return a},ff],Cd=[function(){var a=this.X();16>(a&56)&&(this.Q|=1);this.Qc[a].call(this,this.qk,ef)},function(){var a=this.X();a&16||(this.Q|=1);this.Qc[a].call(this,Of,ef)},function(){this.tb[this.X()].call(this,He)},function(){this.tb[this.X()].call(this,Le)},R,function(){this.na.Wa?Lc.call(this,13,0,!0):(ie(this,this.la(2054)),this.D=this.la(2086),this.F=this.la(2088),this.H=this.la(2090),this.C=this.la(2094),this.J=this.la(2096),this.I=this.la(2098),this.G=this.la(2100),$c(this.Oa, -2102,this.la(2084)),$c(this.na,2108,this.la(2082)),$c(this.sa,2114,this.la(2080)),$c(this.gb,2120,this.la(2078)),Xc(this,this.la(2072)),D(this,this.la(2074)),y(this,this.la(2092)),this.Rc=this.la(2126)|this.qc(2128)<<16,this.gf=this.Rc+this.la(2130),$c(this.le,2132,this.la(2076)),this.Sc=this.la(2138)|this.qc(2140)<<16,this.hf=this.Sc+this.la(2142),$c(this.ib,2144,this.la(2070)),this.A-=195)},function(){this.na.Wa?Lc.call(this,13,0,!0):(this.lc&=-9,this.A-=2)},R,R,R,R,kd,R,R,R,R,R,R,R,R,R,R,R,R,R, +this.da=0,this.T=65536);return c},function(a,b){if(b){var c=16>b-1;this.P=this.W=c>>1;this.P=c&1?this.P|65536:this.P&-65537;this.da=a^this.P;this.T=65536;a=this.P}return a&65535},S,function(a,b){if(b){16>16>>b-1;this.P=this.W=c>>1;this.P=c&1?this.P|65536:this.P&-65537;this.da=a^this.P;this.T=65536;a=this.P}return a&65535}],Mf=[function(a,b){b=this.X();this.P=this.W=this.da=a&b;this.T=256;this.A-=0>this.aa?this.B.Pj:this.B.Oj;this.Q|=2;return a},S,function(a){this.A-= +0>this.aa?this.B.xg:this.B.wg;return a^255},function(a,b){b=0;this.da=a^b;this.T=256;this.A-=0>this.aa?this.B.xg:this.B.wg;return(this.P=this.W=b-a)&255},function(a){this.G=this.Db=(this.P=(this.G&255)*a)&65535;this.da=this.W=this.P;this.T=256;this.G&65280?(de(this),he(this)):($d(this),ce(this));this.A-=0>this.aa?this.B.$l:this.B.Zl;this.Q|=2;return a},function(a){var b=(this.G<<24>>24)*(a<<24>>24);this.G=this.Db=b&65535;this.P=this.da=this.W=b;this.T=256;127b?(de(this),he(this)):($d(this), +ce(this));this.A-=0>this.aa?this.B.Fl:this.B.El;this.Q|=2;return a},function(a){if(!a)return gf.call(this),a;var b=this.G/a;if(255this.aa?this.B.xl:this.B.wl;this.Q|=2;return a},function(a){if(!a)return gf.call(this),a;var b=(this.G<<16>>16)/(a<<24>>24);if(b>b<<24>>24&65535)return gf.call(this),a;this.Db=this.G=b&255|((this.G<<16>>16)%(a<<24>>24)&255)<<8;this.W=this.da=this.P=b|256;this.T= +256;this.A-=0>this.aa?this.B.Bl:this.B.Al;this.Q|=2;return a}],Nf=[function(a,b){b=this.K();this.P=this.W=this.da=a&b;this.T=65536;this.A-=0>this.aa?this.B.Pj:this.B.Oj;this.Q|=2;return a},S,function(a){this.A-=0>this.aa?this.B.xg:this.B.wg;return a^65535},function(a,b){b=0;this.da=a^b;this.T=65536;this.A-=0>this.aa?this.B.xg:this.B.wg;return(this.P=this.W=b-a)&65535},function(a){this.Db=this.G=(this.P=this.G*a)&65535;this.Eg=this.J=this.P>>16&65535;this.da=this.W=this.P;this.T=65536;this.J?(de(this), +he(this)):($d(this),ce(this));this.A-=0>this.aa?this.B.bm:this.B.am;this.Q|=2;return a},function(a){var b=(this.G<<16>>16)*(a<<16>>16);this.G=this.Db=b&65535;this.J=this.Eg=b>>16&65535;this.P=this.da=this.W=b;this.T=65536;32767b?(de(this),he(this)):($d(this),ce(this));this.A-=0>this.aa?this.B.Hl:this.B.Gl;this.Q|=2;return a},function(a,b){if(!a)return gf.call(this),a;b=this.G+65536*this.J;var c=Math.floor(b/a);if(65536<=c)return gf.call(this),a;this.Db=this.G=c&65535;this.Eg=this.J=b%a& +65535;this.W=this.da=this.P=c|65536;this.T=65536;this.A-=0>this.aa?this.B.zl:this.B.yl;this.Q|=2;return a},function(a,b){if(!a)return gf.call(this),a;var c=a<<16>>16;b=this.J<<16|this.G;var d=Math.floor(b/c);if(d!=(d&65535)<<16>>16)return gf.call(this),a;this.Db=this.G=d&65535;this.Eg=this.J=b%c&65535;this.W=this.da=this.P=d|65536;this.T=65536;this.A-=0>this.aa?this.B.Dl:this.B.Cl;this.Q|=2;return a}],fd=[function(a){this.da=a;a=(this.W=a+1)&255;this.P=a|(this.P&this.T?1:0)<<8;this.T=256;this.A-= +0>this.aa?this.B.vg:this.B.ug;return a},function(a){this.da=a;a=(this.W=a-1)&255;this.P=a|(this.P&this.T?1:0)<<8;this.T=256;this.A-=0>this.aa?this.B.vg:this.B.ug;return a},S,S,S,S,S,S],id=[function(a){this.da=a;a=(this.W=a+1)&65535;this.P=a|(this.P&this.T?1:0)<<16;this.T=65536;this.A-=0>this.aa?this.B.vg:this.B.ug;return a},function(a){this.da=a;a=(this.W=a-1)&65535;this.P=a|(this.P&this.T?1:0)<<16;this.T=65536;this.A-=0>this.aa?this.B.vg:this.B.ug;return a},function(a){z(this,v(this));D(this,a); +this.A-=0>this.aa?this.B.vl:this.B.ul;this.Q|=2;return a},function(a){if(0>this.aa)return S.call(this,a);Be.call(this,a,this.la(this.aa+2));this.A-=this.B.sl;this.Q|=2;return a},function(a){D(this,a);this.A-=0>this.aa?this.B.Ql:this.B.Pl;this.Q|=2;return a},function(a){if(0>this.aa)return S.call(this,a);Yc(this,a,this.la(this.aa+2));this.eh&&Nd(this,this.ka);this.A-=this.B.Nl;this.Q|=2;return a},function(a){var b=a;this.Q&512&&(a=a-2&65535,80286>this.za&&(b=a));z(this,b);this.A-=0>this.aa?this.B.sc: +this.B.fm;this.Q|=2;return a},ff],Cd=[function(){var a=this.X();16>(a&56)&&(this.Q|=1);this.Rc[a].call(this,this.rk,ef)},function(){var a=this.X();a&16||(this.Q|=1);this.Rc[a].call(this,Of,ef)},function(){this.tb[this.X()].call(this,He)},function(){this.tb[this.X()].call(this,Le)},R,function(){this.na.Wa?Lc.call(this,13,0,!0):(ie(this,this.la(2054)),this.D=this.la(2086),this.F=this.la(2088),this.H=this.la(2090),this.C=this.la(2094),this.J=this.la(2096),this.I=this.la(2098),this.G=this.la(2100),$c(this.Oa, +2102,this.la(2084)),$c(this.na,2108,this.la(2082)),$c(this.sa,2114,this.la(2080)),$c(this.gb,2120,this.la(2078)),Xc(this,this.la(2072)),D(this,this.la(2074)),y(this,this.la(2092)),this.Sc=this.la(2126)|this.rc(2128)<<16,this.gf=this.Sc+this.la(2130),$c(this.le,2132,this.la(2076)),this.Tc=this.la(2138)|this.rc(2140)<<16,this.hf=this.Tc+this.la(2142),$c(this.ib,2144,this.la(2070)),this.A-=195)},function(){this.na.Wa?Lc.call(this,13,0,!0):(this.mc&=-9,this.A-=2)},R,R,R,R,kd,R,R,R,R,R,R,R,R,R,R,R,R,R, R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R],Od=[function(){this.A-=2+(0>this.aa?0: -1);return this.le.ta},function(){this.A-=2+(0>this.aa?0:1);return this.ib.ta},function(a){this.Q|=2;this.le.load(a);this.A-=17+(0>this.aa?0:2);return a},function(a){this.Q|=2;this.ib.load(a)!=q&&(this.Ka(this.ib.Md+4,this.ib.jb|=512),this.ib.type=768);this.A-=17+(0>this.aa?0:2);return a},function(a){this.Q|=2;this.A-=14+(0>this.aa?0:2);if(this.Jb.load(a,!0)!=q&&2048!=(this.Jb.jb&2560)&&(this.Jb.pc>=this.na.Wa&&this.Jb.pc>=(a&3)||7168==(this.Jb.jb&7168)))return fe(this),a;be(this);return a},function(a){this.Q|= -2;this.A-=14+(0>this.aa?0:2);if(this.Jb.load(a,!0)!=q&&512==(this.Jb.jb&2560)&&this.Jb.pc>=this.na.Wa&&this.Jb.pc>=(a&3))return fe(this),a;be(this);return a},S,S],jd=[Bd,Bd,Bd,Bd,Bd,Bd,S,S],Of=[function(a){0>this.aa?kd.call(this):(a=this.gf-this.Rc,this.Ka(this.aa+2,this.Rc),this.Ka(this.aa+4,65280|this.Rc>>16),this.A-=11);return a},function(a){0>this.aa?kd.call(this):(a=this.hf-this.Sc,this.Ka(this.aa+2,this.Sc),this.Ka(this.aa+4,65280|this.Sc>>16),this.A-=12);return a},function(a){0>this.aa?kd.call(this): -(this.Rc=this.la(this.aa+2)|this.qc(this.aa+4)<<16,this.gf=this.Rc+a,this.Q|=2,this.A-=11);return a},function(a){0>this.aa?kd.call(this):(this.Sc=this.la(this.aa+2)|this.qc(this.aa+4)<<16,this.hf=this.Sc+a,this.Q|=2,this.A-=12);return a},function(){this.A-=2+(0>this.aa?0:1);return this.lc},S,function(a){ie(this,a);this.A-=0>this.aa?3:6;this.Q|=2;return a},S],A=[function(a){a=a.call(this,this.G&255,E(this,this.C+this.F));this.G=this.G&-256|a;this.A-=this.B.Y},function(a){a=a.call(this,this.G&255,E(this, +1);return this.le.ta},function(){this.A-=2+(0>this.aa?0:1);return this.ib.ta},function(a){this.Q|=2;this.le.load(a);this.A-=17+(0>this.aa?0:2);return a},function(a){this.Q|=2;this.ib.load(a)!=q&&(this.Ka(this.ib.Md+4,this.ib.jb|=512),this.ib.type=768);this.A-=17+(0>this.aa?0:2);return a},function(a){this.Q|=2;this.A-=14+(0>this.aa?0:2);if(this.Jb.load(a,!0)!=q&&2048!=(this.Jb.jb&2560)&&(this.Jb.qc>=this.na.Wa&&this.Jb.qc>=(a&3)||7168==(this.Jb.jb&7168)))return fe(this),a;be(this);return a},function(a){this.Q|= +2;this.A-=14+(0>this.aa?0:2);if(this.Jb.load(a,!0)!=q&&512==(this.Jb.jb&2560)&&this.Jb.qc>=this.na.Wa&&this.Jb.qc>=(a&3))return fe(this),a;be(this);return a},S,S],jd=[Bd,Bd,Bd,Bd,Bd,Bd,S,S],Of=[function(a){0>this.aa?kd.call(this):(a=this.gf-this.Sc,this.Ka(this.aa+2,this.Sc),this.Ka(this.aa+4,65280|this.Sc>>16),this.A-=11);return a},function(a){0>this.aa?kd.call(this):(a=this.hf-this.Tc,this.Ka(this.aa+2,this.Tc),this.Ka(this.aa+4,65280|this.Tc>>16),this.A-=12);return a},function(a){0>this.aa?kd.call(this): +(this.Sc=this.la(this.aa+2)|this.rc(this.aa+4)<<16,this.gf=this.Sc+a,this.Q|=2,this.A-=11);return a},function(a){0>this.aa?kd.call(this):(this.Tc=this.la(this.aa+2)|this.rc(this.aa+4)<<16,this.hf=this.Tc+a,this.Q|=2,this.A-=12);return a},function(){this.A-=2+(0>this.aa?0:1);return this.mc},S,function(a){ie(this,a);this.A-=0>this.aa?3:6;this.Q|=2;return a},S],A=[function(a){a=a.call(this,this.G&255,E(this,this.C+this.F));this.G=this.G&-256|a;this.A-=this.B.Y},function(a){a=a.call(this,this.G&255,E(this, this.C+this.D));this.G=this.G&-256|a;this.A-=this.B.Z},function(a){a=a.call(this,this.G&255,F(this,this.H+this.F));this.G=this.G&-256|a;this.A-=this.B.Z},function(a){a=a.call(this,this.G&255,F(this,this.H+this.D));this.G=this.G&-256|a;this.A-=this.B.Y},function(a){a=a.call(this,this.G&255,E(this,this.F));this.G=this.G&-256|a;this.A-=this.B.R},function(a){a=a.call(this,this.G&255,E(this,this.D));this.G=this.G&-256|a;this.A-=this.B.R},function(a){a=a.call(this,this.G&255,E(this,this.K()));this.G=this.G& -256|a;this.A-=this.B.pa},function(a){a=a.call(this,this.G&255,E(this,this.C));this.G=this.G&-256|a;this.A-=this.B.R},function(a){a=a.call(this,this.I&255,E(this,this.C+this.F));this.I=this.I&-256|a;this.A-=this.B.Y},function(a){a=a.call(this,this.I&255,E(this,this.C+this.D));this.I=this.I&-256|a;this.A-=this.B.Z},function(a){a=a.call(this,this.I&255,F(this,this.H+this.F));this.I=this.I&-256|a;this.A-=this.B.Z},function(a){a=a.call(this,this.I&255,F(this,this.H+this.D));this.I=this.I&-256|a;this.A-= this.B.Y},function(a){a=a.call(this,this.I&255,E(this,this.F));this.I=this.I&-256|a;this.A-=this.B.R},function(a){a=a.call(this,this.I&255,E(this,this.D));this.I=this.I&-256|a;this.A-=this.B.R},function(a){a=a.call(this,this.I&255,E(this,this.K()));this.I=this.I&-256|a;this.A-=this.B.pa},function(a){a=a.call(this,this.I&255,E(this,this.C));this.I=this.I&-256|a;this.A-=this.B.R},function(a){a=a.call(this,this.J&255,E(this,this.C+this.F));this.J=this.J&-256|a;this.A-=this.B.Y},function(a){a=a.call(this, @@ -423,63 +423,65 @@ a[4].call(this,this.G,b.call(this))},function(a,b){this.I=a[4].call(this,this.I, function(a,b){this.I=a[5].call(this,this.I,b.call(this))},function(a,b){this.J=a[5].call(this,this.J,b.call(this))},function(a,b){this.C=a[5].call(this,this.C,b.call(this))},function(a,b){y(this,a[5].call(this,w(this),b.call(this)))},function(a,b){this.H=a[5].call(this,this.H,b.call(this))},function(a,b){this.F=a[5].call(this,this.F,b.call(this))},function(a,b){this.D=a[5].call(this,this.D,b.call(this))},function(a,b){this.G=a[6].call(this,this.G,b.call(this))},function(a,b){this.I=a[6].call(this, this.I,b.call(this))},function(a,b){this.J=a[6].call(this,this.J,b.call(this))},function(a,b){this.C=a[6].call(this,this.C,b.call(this))},function(a,b){y(this,a[6].call(this,w(this),b.call(this)))},function(a,b){this.H=a[6].call(this,this.H,b.call(this))},function(a,b){this.F=a[6].call(this,this.F,b.call(this))},function(a,b){this.D=a[6].call(this,this.D,b.call(this))},function(a,b){this.G=a[7].call(this,this.G,b.call(this))},function(a,b){this.I=a[7].call(this,this.I,b.call(this))},function(a,b){this.J= a[7].call(this,this.J,b.call(this))},function(a,b){this.C=a[7].call(this,this.C,b.call(this))},function(a,b){y(this,a[7].call(this,w(this),b.call(this)))},function(a,b){this.H=a[7].call(this,this.H,b.call(this))},function(a,b){this.F=a[7].call(this,this.F,b.call(this))},function(a,b){this.D=a[7].call(this,this.D,b.call(this))}]; -function T(a){n.call(this,"ChipSet",a,T);this.za=(this.za=a.model)?parseInt(this.za,10):Pf;this.Ub=0;var b=a.sw1;if(b)this.Ub=Qf(b,Rf|Sf.Mm);else{this.Kd=[360,360];(b=a.floppies)&&b.length&&(this.Kd=b);if(b=this.Kd.length)this.Ub|=Tf.bi,b--,this.Ub|=(b&3)<=Uf&&(this.bh=this.Wf=2);this.Yd=a.scaleTimers||!1;this.Hp=a.rtcDate;this.Qk= -!1;a.sound&&window&&"webkitAudioContext"in window&&(this.ui=new window.webkitAudioContext);this.reset(!0);p(this)}La(n,T);var Pf=5150,Uf=5170,Vf={none:0,tv:1,color:2,mono:3,ega:0},Tf={bi:1,ONE:0,xq:64,vq:128,Vp:192,Kf:192,Lf:6},Rf=12,Sf={wq:16,Np:32,Mm:48,Kf:48,Lf:4};k=T.prototype; +function T(a){n.call(this,"ChipSet",a,T);this.za=(this.za=a.model)?parseInt(this.za,10):Pf;this.Ub=0;var b=a.sw1;if(b)this.Ub=Qf(b,Rf|Sf.Nm);else{this.Kd=[360,360];(b=a.floppies)&&b.length&&(this.Kd=b);if(b=this.Kd.length)this.Ub|=Tf.ci,b--,this.Ub|=(b&3)<=Uf&&(this.dh=this.Wf=2);this.Yd=a.scaleTimers||!1;this.Ip=a.rtcDate;this.Rk= +!1;a.sound&&(this.ui=this.bg=null,window&&(this.ui=window.AudioContext||window.webkitAudioContext),this.ui&&(this.bg=new this.ui));this.reset(!0);p(this)}La(n,T);var Pf=5150,Uf=5170,Vf={none:0,tv:1,color:2,mono:3,ega:0},Tf={ci:1,ONE:0,yq:64,wq:128,Wp:192,Kf:192,Lf:6},Rf=12,Sf={xq:16,Op:32,Nm:48,Kf:48,Lf:4};k=T.prototype; k.Eb=function(a,b,c){switch(b){case "sw1":return this.oa[b]=c,Wf(this,b,c,this.Ub,{0:this.za==Pf?"Bootable Floppy Drive":"Loop on POST",1:this.za==Pf?"Reserved":"Coprocessor",2:"Base Memory Size",4:"Monitor Type",6:"Number of Floppy Drives"}),!0;case "sw2":if(this.za==Pf)return this.oa[b]=c,Wf(this,b,c,this.oe,{0:"Expansion Memory Size",4:"Reserved"}),!0;break;case "swdesc":return this.oa[b]=c,!0}return!1}; -k.zc=function(a,b,c,d){this.ja=b;this.U=c;this.Xa=d;this.ya=a;this.Ca=bb(a,"Keyboard");this.Lh=c.S.kd/1193181;Ib(b,this,Xf);Kb(b,this,Yf);this.za=Uf){this.kb=16;this.ud=0;this.td=16;this.Tg=0;this.ve=160;512<=gg(this)&&(this.ve|=16);3==hg(this)&&(this.ve|=64);this.ji=3;this.Wg=0;this.Xb=Array(7);this.jf=0;a&&(this.ba=Array(64));ig(this, -this.Hp);for(a=21;24>=a;a++)this.ba[a]=0;for(a=14;46>a;a++)void 0===this.ba[a]&&(this.ba[a]=0);this.ba[20]=this.$c&(Sf.Kf|2|Tf.bi|Tf.Kf);this.ba[16]=jg(this,0)<<4|jg(this,1);kg(this)}}; -function ig(a,b){var c=b?new Date(b):new Date;"[object Date]"!==Object.prototype.toString.call(c)||isNaN(c.getTime())?(c=new Date,a.kc("CMOS date invalid ("+b+"), using "+c)):b&&a.kc("CMOS date: "+c);a.ba[0]=c.getSeconds();a.ba[1]=0;a.ba[2]=c.getMinutes();a.ba[3]=0;a.ba[4]=c.getHours();a.ba[5]=0;a.ba[6]=c.getDay()+1;a.ba[7]=c.getDate();a.ba[8]=c.getMonth()+1;c=c.getFullYear();a.ba[9]=c%100;c/=100;a.ba[50]=c%10|c/10<<4;a.ba[10]=38;a.ba[11]=2;a.ba[12]=0;a.ba[13]=128;a.zg=a.Df=0;a.lm=a.Jh=null} -function lg(a){var b;void 0===b&&(b=a.Jh);a.Df=yc(a.U,a.Yd)+b;a.ba[11]&64&&vc(a.U,b)}function kg(a){for(var b=0,c=16;46>c;c++)b+=a.ba[c];a.ba[47]=b&255;a.ba[46]=b>>8} -k.save=function(){var a=new Pd(this);a.set(0,[this.Ub,this.oe,this.$c,this.We]);for(var b=[],c=0;c=Uf&&(a.set(5,[this.kb,this.ud,this.td,this.Tg,this.ve,this.ji]),a.set(6,[this.Wg,this.Xb,this.jf,this.ba,this.zg,this.Df]));return a.data()}; -k.restore=function(a){var b,c;b=a[0];this.Ub=b[0];this.oe=b[1];this.$c=b[2];this.We=b[3];b=a[1];for(c=0;c>2)+1)*a.ro+32*((b?a.oe:a.We)&15)}function sg(a,b){var c=b?a.Ub:a.$c;return a.za!=Pf||c&Tf.bi?((c&Tf.Kf)>>Tf.Lf)+1:0} -function jg(a,b){if(b>Sf.Lf} +k.Ac=function(a,b,c,d){this.ja=b;this.U=c;this.Xa=d;this.ya=a;this.Ca=bb(a,"Keyboard");this.Mh=c.S.ld/1193181;Ib(b,this,Xf);Kb(b,this,Yf);this.za=Uf){this.kb=16;this.ud=0;this.td=16;this.Ug=0;this.ve=160;512<=gg(this)&&(this.ve|=16);3==hg(this)&&(this.ve|=64);this.ki=3;this.Xg=0;this.Xb=Array(7);this.jf=0;a&&(this.ba=Array(64));ig(this, +this.Ip);for(a=21;24>=a;a++)this.ba[a]=0;for(a=14;46>a;a++)void 0===this.ba[a]&&(this.ba[a]=0);this.ba[20]=this.ad&(Sf.Kf|2|Tf.ci|Tf.Kf);this.ba[16]=jg(this,0)<<4|jg(this,1);kg(this)}}; +function ig(a,b){var c=b?new Date(b):new Date;"[object Date]"!==Object.prototype.toString.call(c)||isNaN(c.getTime())?(c=new Date,a.lc("CMOS date invalid ("+b+"), using "+c)):b&&a.lc("CMOS date: "+c);a.ba[0]=c.getSeconds();a.ba[1]=0;a.ba[2]=c.getMinutes();a.ba[3]=0;a.ba[4]=c.getHours();a.ba[5]=0;a.ba[6]=c.getDay()+1;a.ba[7]=c.getDate();a.ba[8]=c.getMonth()+1;c=c.getFullYear();a.ba[9]=c%100;c/=100;a.ba[50]=c%10|c/10<<4;a.ba[10]=38;a.ba[11]=2;a.ba[12]=0;a.ba[13]=128;a.Ag=a.Df=0;a.mm=a.Kh=null} +function lg(a){var b;void 0===b&&(b=a.Kh);a.Df=yc(a.U,a.Yd)+b;a.ba[11]&64&&vc(a.U,b)}function kg(a){for(var b=0,c=16;46>c;c++)b+=a.ba[c];a.ba[47]=b&255;a.ba[46]=b>>8} +k.save=function(){var a=new Pd(this);a.set(0,[this.Ub,this.oe,this.ad,this.We]);for(var b=[],c=0;c=Uf&&(a.set(5,[this.kb,this.ud,this.td,this.Ug,this.ve,this.ki]),a.set(6,[this.Xg,this.Xb,this.jf,this.ba,this.Ag,this.Df]));return a.data()}; +k.restore=function(a){var b,c;b=a[0];this.Ub=b[0];this.oe=b[1];this.ad=b[2];this.We=b[3];b=a[1];for(c=0;c>2)+1)*a.so+32*((b?a.oe:a.We)&15)}function sg(a,b){var c=b?a.Ub:a.ad;return a.za!=Pf||c&Tf.ci?((c&Tf.Kf)>>Tf.Lf)+1:0} +function jg(a,b){if(b>Sf.Lf} function Wf(a,b,c,d,e){for(var f="",g=1;8>=g;g++){var h="pcjs-bitCell";g||(h+=" pcjs-bitCellLeft");f+='
'+g+"
\n"}c.innerHTML=f;b=Ta(c,"pcjs-bitCell");c=null;for(g=0;gd.Va[0]&&(d.Va[0]=255,d.Va[1]--,0>d.Va[1]&&(d.Va[1]=255)));return e}function xg(a,b,c,d){a=a.Za[b];c=a.vb[c];c.Va[a.xb]=c.Yb[a.xb]=d;a.xb^=1} -function yg(a,b){var c=a.Za[b],d=c.Qd|1;c.Qd&=-16;return d}function zg(a,b,c){a=a.Za[b];b=c&3;a.Qd=a.Qd&~(16<>2].vb[b&3],c,d,e)} -function Fg(a,b,c){b=a.Za[b>>2].vb[b&3];b.gh&&b.Qi&&b.Nh?(c&&(b.ih=c),b.Bd||se(a,b,!0)):c&&c(!0)}function se(a,b,c){c&&(b.count=b.Va[1]<<8|b.Va[0],b.Im=b.mode&12,b.Tk=b.gd=!1);for(var d=!1;0<=b.count&&(c=b.$g<<16|b.Ua[1]<<8|b.Ua[0],4==b.Im?(d=!0,function(c){b.Qi.call(b.gh,b.Nh,-1,function(f,g){0>f&&(b.Tk||(b.Tk=!0),f=255);b.Bd||a.ja.Ue(c,f);(d=g)&&setTimeout(function(){Kg(b)||se(a,b)},0)})}(c)):8==b.Im?(c=a.ja.qc(c),0>b.Qi.call(b.gh,b.Nh,c)&&(b.gd=!0)):b.gd=!0),!d&&!Kg(b););} -function Kg(a){if(!a.gd&&0<=--a.count&&(a.mode&32?(a.Ua[0]--,0>a.Ua[0]&&(a.Ua[0]=255,a.Ua[1]--,0>a.Ua[1]&&(a.Ua[1]=255))):(a.Ua[0]++,255>3];b=1<<(b&7);d.Nb&b||(d.Nb|=b,d.pg=c||0,Ng(a))}function Qg(a,b){var c=a.Vb[b>>3],d=1<<(b&7);c.Nb&d&&(c.Nb&=~d,Ng(a))} -function Ng(a,b){var c,d=-1;1>=1),vc(a.U,c))),2==b&&zc(a))}k=T.prototype;k.lo=function(){return null}; -k.vp=function(a,b){this.oi=b;var c=(b&192)>>6;if(3!=c){var d=b&1,e=b&14,f=b&48;if(f){var g=this.Lb[c];g.Uh=f;g.mode=e;g.Bk=d;g.Yb=[0,0];g.Va=[0,0];g.Ee=[0,0];g.hd=!1;g.fg=!1;g.Ie=!1;Sg(this,c);0==c&&Qg(this,0);2==c&&255==this.Vb[0].cd&&77==this.uc&&(c=this.Lb[0],c.xc[0]=c.Yb[0],c.xc[1]=c.Yb[1],c.Cd=yc(this.U,this.Yd))}else Tg(this,c),d=this.Lb[c],d.Ee[0]=d.Va[0],d.Ee[1]=d.Va[1],d.fg=!0,Sg(this,c)}};function Vg(a,b){var c=a.Lb[b],d=c.Yb[1]<<8|c.Yb[0];d||(d=1==c.De?256:65536);return d} -function Bc(a,b){var c=a.Lb[b],d=c.xc[1]<<8|c.xc[0];d||(d=1==c.De?256:65536);return d}function Sg(a,b){var c=a.Lb[b];c.Ud=32==c.Uh?1:0;c.De=48==c.Uh?2:1} -function Tg(a,b,c){var d=a.Lb[b];if(d.Ie&&(2!=b||a.uc&1)){var e=yc(a.U,a.Yd),f=(e-d.Cd)/a.Lh|0;0>f&&(d.Cd=e,f=0);var g=Vg(a,b),h=Bc(a,b)-f;0==d.mode?(0>=h&&(h=0),h||(d.hd=!0,d.Ie=!1,b||Pg(a,0))):4==d.mode?(d.hd=1!=h,0>=h&&(h=g+h,0>=h&&(h=g),d.xc[0]=h&255,d.xc[1]=h>>8,d.Cd=e,!b&&d.hd&&Pg(a,0))):6==d.mode&&(h-=f,0>=h&&(d.hd=!d.hd,h=g+h,0>=h&&(h=g),d.xc[0]=h&255,d.xc[1]=h>>8,d.Cd=e,!b&&d.hd&&Pg(a,0)));d.Va[0]=h&255;d.Va[1]=h>>8;c&&(a.Cd=0)}return d} -function Ac(a,b){for(var c=0;c=Uf){var c=a.U.S.kd,d=yc(a.U,a.Yd);null==a.Jh&&(a.zg=yc(a.U,a.Yd),a.lm=1024,a.Jh=Math.floor(a.U.S.kd/a.lm),lg(a));d>=a.Df&&(a.ba[12]|=64,a.ba[11]&64&&(a.ba[12]|=128,Pg(a,8)),a.Df=d+a.Jh);a.ba[0]==a.ba[1]&&a.ba[2]==a.ba[3]&&a.ba[4]==a.ba[5]&&(a.ba[12]|=32,a.ba[11]&32&&(a.ba[12]|=128,Pg(a,8)));var e=d-a.zg,f=Math.floor(e/c);if(f&&!(a.ba[11]&128)){for(;f--;)if(60<=++a.ba[0]&&(a.ba[0]=0,60<=++a.ba[2]&&(a.ba[2]=0,24<=++a.ba[4]))){a.ba[4]= -0;a.ba[6]=a.ba[6]%7+1;var g;g=a.ba[9];var h=ma[a.ba[8]-1];28==h&&0===g%4&&(g%100||0===g%400)&&h++;g=h;++a.ba[7]>g&&(a.ba[7]=1,12<++a.ba[8]&&(a.ba[8]=1,a.ba[9]=(a.ba[9]+1)%100))}a.ba[12]|=16;a.ba[11]&16&&(a.ba[12]|=128,Pg(a,8))}a.zg=d-e%c}}k.bo=function(){var a=this.Zg;if(this.Tf&16)if(this.uc&128)a=this.$c;else if(this.Ca){var a=this.Ca,b=0;a.Mb.length&&(b=a.Mb[0]);a=b}return a};k.op=function(a,b){this.Zg=b};k.co=function(){return this.uc}; -k.pp=function(a,b){Wg(this,b);this.Ca&&Xg(this.Ca,b&128?!1:!0,b&64?!0:!1)};function Wg(a,b){var c=!!(b&2),d=!!(a.uc&2);a.uc=b;c!=d&&zc(a,c)}k.eo=function(){var a=0,a=this.za==Pf?this.uc&4?a|this.We&15:a|this.We>>4&1:this.uc&8?a|this.$c>>4:a|this.$c&15;this.uc&1&&Tg(this,2).hd&&(a=this.uc&2?a|32:a|16);return a};k.qp=function(a,b){this.mi=b};k.fo=function(){return this.Tf};k.rp=function(a,b){this.Tf=b};k.sn=function(){var a=this.Tg;this.kb&=-258;this.Ca&&Yg(this.Ca);return a}; -k.Go=function(a,b){if(this.kb&8)switch(this.ud){case 96:Zg(this,b);break;case 209:$g(this,b);break;default:if(Zg(this,this.td&-17),this.Ca){var c=-1;switch(b){case 255:c=250,ah(this.Ca)}bh(this,c)}}this.ud=b;this.kb&=-9};k.tn=function(){return this.uc&-209|(yc(this.U)&64?16:0)};k.Ho=function(a,b){Wg(this,b)};k.un=function(){var a=this.kb&255;this.kb&256&&(this.kb|=1,this.kb&=-257);return a}; -k.Fo=function(a,b){this.ud=b;this.kb|=8;var c=0;240<=this.ud&&(c=this.ud^15,this.ud=240);switch(this.ud){case 192:bh(this,this.ve);break;case 173:Zg(this,this.td|16);break;case 174:Zg(this,this.td&-17);this.Ca&&Yg(this.Ca);break;case 170:this.Ca&&(this.Ca.Mb=[]);Zg(this,this.td|16);bh(this,85);$g(this,3);break;case 224:bh(this,this.td&16?0:1);break;case 240:c&1&&Gd(this.U)}};function Zg(a,b){a.td=b;a.kb=a.kb&-5|b&4;a.Ca&&Xg(a.Ca,!!(b&8),!(b&16))} -function bh(a,b){0<=b&&(a.Tg=b,a.kb&=-2,a.kb|=256)}function $g(a,b){a.ji=b;Bb(a.ja,!!(b&2));b&1||Gd(a.U)}function ch(a,b){a.za=c)if(d=this.ba[c],10>c){var e=!1;4!=c&&5!=c||this.ba[11]&2||(d=12>d?d?d:12:(d-=12)?d+128:140,e=!0);this.ba[11]&4||(e&&128=c){if(e=b,10>c){var f=!1;this.ba[11]&4||(e=10*(e>>4)+(e&15),f=!0);if(4==c||5==c)f&&23=e?e=12==e?0:e:(e-=116,e=24==e?12:e))}}else e=b;this.ba[c]=e;11==c&&d&64&&b&64&&lg(this)};k.$n=function(){return this.Wg};k.lp=function(a,b){this.Wg=b};k.np=function(a,b){this.Yg=b};k.Xo=function(){};k.Yo=function(){}; -function Qf(a,b){if(void 0===a)return b;for(var c=0,d=1,e=0;ec||2E4>8&255,this.wb[c++]=f[b]>>16&255,this.wb[c++]=f[b]>>24&255;else this.wb=d;this.hi=d.symbols;if(!this.wb.length){m("Empty ROM: "+a);return}if(1==this.wb.length){m(this.wb[0]);return}}catch(g){this.wa("ROM data error: "+ +a.Ub&~e|(c?0:e);break;case "sw2":a.oe=a.oe&~e|(c?0:e)}cg(a)}}(a,b[g])}function tg(a,b){a.setAttribute("data-value",b?"1":"0");a.style.color=b?"#ffffff":"#000000";a.style.backgroundColor=b?"#000000":"#ffffff"}function cg(a){var b=a.oa.swdesc,c={0:"Enhanced Color",1:"TV",2:"Color",3:"Monochrome"};if(null!=b){var d;d=""+(gg(a,!0)+"Kb");d+=", "+c[hg(a,!0)]+" Monitor";d+=", "+sg(a,!0)+" Floppy Drives";if(null!=a.ad&&a.ad!=a.Ub||null!=a.We&&a.We!=a.oe)d+=" (Reset required)";b.textContent=d}} +function ug(a,b,c){a=a.Za[b];var d=a.vb[c],e=d.Ua[a.xb];a.xb^=1;b||0!=c||a.xb||(d.Ua[0]++,255d.Va[0]&&(d.Va[0]=255,d.Va[1]--,0>d.Va[1]&&(d.Va[1]=255)));return e}function xg(a,b,c,d){a=a.Za[b];c=a.vb[c];c.Va[a.xb]=c.Yb[a.xb]=d;a.xb^=1} +function yg(a,b){var c=a.Za[b],d=c.Qd|1;c.Qd&=-16;return d}function zg(a,b,c){a=a.Za[b];b=c&3;a.Qd=a.Qd&~(16<>2].vb[b&3],c,d,e)} +function Fg(a,b,c){b=a.Za[b>>2].vb[b&3];b.hh&&b.Ri&&b.Oh?(c&&(b.jh=c),b.Bd||se(a,b,!0)):c&&c(!0)}function se(a,b,c){c&&(b.count=b.Va[1]<<8|b.Va[0],b.Jm=b.mode&12,b.Uk=b.hd=!1);for(var d=!1;0<=b.count&&(c=b.ah<<16|b.Ua[1]<<8|b.Ua[0],4==b.Jm?(d=!0,function(c){b.Ri.call(b.hh,b.Oh,-1,function(f,g){0>f&&(b.Uk||(b.Uk=!0),f=255);b.Bd||a.ja.Ue(c,f);(d=g)&&setTimeout(function(){Kg(b)||se(a,b)},0)})}(c)):8==b.Jm?(c=a.ja.rc(c),0>b.Ri.call(b.hh,b.Oh,c)&&(b.hd=!0)):b.hd=!0),!d&&!Kg(b););} +function Kg(a){if(!a.hd&&0<=--a.count&&(a.mode&32?(a.Ua[0]--,0>a.Ua[0]&&(a.Ua[0]=255,a.Ua[1]--,0>a.Ua[1]&&(a.Ua[1]=255))):(a.Ua[0]++,255>3];b=1<<(b&7);d.Nb&b||(d.Nb|=b,d.qg=c||0,Ng(a))}function Qg(a,b){var c=a.Vb[b>>3],d=1<<(b&7);c.Nb&d&&(c.Nb&=~d,Ng(a))} +function Ng(a,b){var c,d=-1;1>=1),vc(a.U,c))),2==b&&zc(a))}k=T.prototype;k.mo=function(){return null}; +k.wp=function(a,b){this.pi=b;var c=(b&192)>>6;if(3!=c){var d=b&1,e=b&14,f=b&48;if(f){var g=this.Lb[c];g.Vh=f;g.mode=e;g.Ck=d;g.Yb=[0,0];g.Va=[0,0];g.Ee=[0,0];g.jd=!1;g.gg=!1;g.Ie=!1;Sg(this,c);0==c&&Qg(this,0);2==c&&255==this.Vb[0].dd&&77==this.vc&&(c=this.Lb[0],c.yc[0]=c.Yb[0],c.yc[1]=c.Yb[1],c.Cd=yc(this.U,this.Yd))}else Tg(this,c),d=this.Lb[c],d.Ee[0]=d.Va[0],d.Ee[1]=d.Va[1],d.gg=!0,Sg(this,c)}};function Vg(a,b){var c=a.Lb[b],d=c.Yb[1]<<8|c.Yb[0];d||(d=1==c.De?256:65536);return d} +function Bc(a,b){var c=a.Lb[b],d=c.yc[1]<<8|c.yc[0];d||(d=1==c.De?256:65536);return d}function Sg(a,b){var c=a.Lb[b];c.Ud=32==c.Vh?1:0;c.De=48==c.Vh?2:1} +function Tg(a,b,c){var d=a.Lb[b];if(d.Ie&&(2!=b||a.vc&1)){var e=yc(a.U,a.Yd),f=(e-d.Cd)/a.Mh|0;0>f&&(d.Cd=e,f=0);var g=Vg(a,b),h=Bc(a,b)-f;0==d.mode?(0>=h&&(h=0),h||(d.jd=!0,d.Ie=!1,b||Pg(a,0))):4==d.mode?(d.jd=1!=h,0>=h&&(h=g+h,0>=h&&(h=g),d.yc[0]=h&255,d.yc[1]=h>>8,d.Cd=e,!b&&d.jd&&Pg(a,0))):6==d.mode&&(h-=f,0>=h&&(d.jd=!d.jd,h=g+h,0>=h&&(h=g),d.yc[0]=h&255,d.yc[1]=h>>8,d.Cd=e,!b&&d.jd&&Pg(a,0)));d.Va[0]=h&255;d.Va[1]=h>>8;c&&(a.Cd=0)}return d} +function Ac(a,b){for(var c=0;c=Uf){var c=a.U.S.ld,d=yc(a.U,a.Yd);null==a.Kh&&(a.Ag=yc(a.U,a.Yd),a.mm=1024,a.Kh=Math.floor(a.U.S.ld/a.mm),lg(a));d>=a.Df&&(a.ba[12]|=64,a.ba[11]&64&&(a.ba[12]|=128,Pg(a,8)),a.Df=d+a.Kh);a.ba[0]==a.ba[1]&&a.ba[2]==a.ba[3]&&a.ba[4]==a.ba[5]&&(a.ba[12]|=32,a.ba[11]&32&&(a.ba[12]|=128,Pg(a,8)));var e=d-a.Ag,f=Math.floor(e/c);if(f&&!(a.ba[11]&128)){for(;f--;)if(60<=++a.ba[0]&&(a.ba[0]=0,60<=++a.ba[2]&&(a.ba[2]=0,24<=++a.ba[4]))){a.ba[4]= +0;a.ba[6]=a.ba[6]%7+1;var g;g=a.ba[9];var h=ma[a.ba[8]-1];28==h&&0===g%4&&(g%100||0===g%400)&&h++;g=h;++a.ba[7]>g&&(a.ba[7]=1,12<++a.ba[8]&&(a.ba[8]=1,a.ba[9]=(a.ba[9]+1)%100))}a.ba[12]|=16;a.ba[11]&16&&(a.ba[12]|=128,Pg(a,8))}a.Ag=d-e%c}}k.co=function(){var a=this.$g;if(this.Tf&16)if(this.vc&128)a=this.ad;else if(this.Ca){var a=this.Ca,b=0;a.Mb.length&&(b=a.Mb[0]);a=b}return a};k.pp=function(a,b){this.$g=b};k.eo=function(){return this.vc}; +k.qp=function(a,b){Wg(this,b);this.Ca&&Xg(this.Ca,b&128?!1:!0,b&64?!0:!1)};function Wg(a,b){var c=!!(b&2),d=!!(a.vc&2);a.vc=b;c!=d&&zc(a,c)}k.fo=function(){var a=0,a=this.za==Pf?this.vc&4?a|this.We&15:a|this.We>>4&1:this.vc&8?a|this.ad>>4:a|this.ad&15;this.vc&1&&Tg(this,2).jd&&(a=this.vc&2?a|32:a|16);return a};k.rp=function(a,b){this.ni=b};k.ho=function(){return this.Tf};k.sp=function(a,b){this.Tf=b};k.tn=function(){var a=this.Ug;this.kb&=-258;this.Ca&&Yg(this.Ca);return a}; +k.Ho=function(a,b){if(this.kb&8)switch(this.ud){case 96:Zg(this,b);break;case 209:$g(this,b);break;default:if(Zg(this,this.td&-17),this.Ca){var c=-1;switch(b){case 255:c=250,ah(this.Ca)}bh(this,c)}}this.ud=b;this.kb&=-9};k.un=function(){return this.vc&-209|(yc(this.U)&64?16:0)};k.Io=function(a,b){Wg(this,b)};k.vn=function(){var a=this.kb&255;this.kb&256&&(this.kb|=1,this.kb&=-257);return a}; +k.Go=function(a,b){this.ud=b;this.kb|=8;var c=0;240<=this.ud&&(c=this.ud^15,this.ud=240);switch(this.ud){case 192:bh(this,this.ve);break;case 173:Zg(this,this.td|16);break;case 174:Zg(this,this.td&-17);this.Ca&&Yg(this.Ca);break;case 170:this.Ca&&(this.Ca.Mb=[]);Zg(this,this.td|16);bh(this,85);$g(this,3);break;case 224:bh(this,this.td&16?0:1);break;case 240:c&1&&Gd(this.U)}};function Zg(a,b){a.td=b;a.kb=a.kb&-5|b&4;a.Ca&&Xg(a.Ca,!!(b&8),!(b&16))} +function bh(a,b){0<=b&&(a.Ug=b,a.kb&=-2,a.kb|=256)}function $g(a,b){a.ki=b;Bb(a.ja,!!(b&2));b&1||Gd(a.U)}function ch(a,b){a.za=c)if(d=this.ba[c],10>c){var e=!1;4!=c&&5!=c||this.ba[11]&2||(d=12>d?d?d:12:(d-=12)?d+128:140,e=!0);this.ba[11]&4||(e&&128=c){if(e=b,10>c){var f=!1;this.ba[11]&4||(e=10*(e>>4)+(e&15),f=!0);if(4==c||5==c)f&&23=e?e=12==e?0:e:(e-=116,e=24==e?12:e))}}else e=b;this.ba[c]=e;11==c&&d&64&&b&64&&lg(this)};k.ao=function(){return this.Xg};k.mp=function(a,b){this.Xg=b};k.op=function(a,b){this.Zg=b};k.Yo=function(){};k.Zo=function(){}; +function Qf(a,b){if(void 0===a)return b;for(var c=0,d=1,e=0;ec||2E4>8&255,this.wb[c++]=f[b]>>16&255,this.wb[c++]=f[b]>>24&255;else this.wb=d;this.ii=d.symbols;if(!this.wb.length){m("Empty ROM: "+a);return}if(1==this.wb.length){m(this.wb[0]);return}}catch(g){this.va("ROM data error: "+ g.message);return}else for(a=b.replace(/\n/gm," ").replace(/ +$/,"").split(" "),this.wb=Array(a.length),d=0;d>>d.Ra].fk(e&d.Ba,a.wb[c]&255)}return!0}return!1}za(function(){for(var a=Ta(window.document,"pcjs","rom"),b=0;b>>d.Ra].gk(e&d.Ba,a.wb[c]&255)}return!0}return!1}za(function(){for(var a=Ta(window.document,"pcjs","rom"),b=0;bthis.Rg?21:23,c=a.ba[b]|a.ba[b+1]<<8,c=c+(this.Fd>> -10);a.ba[b]=c&255;a.ba[b+1]=c>>8;kg(a)}}else m("No RAM allocated")};function jh(){this.Pm=lh;this.Qm=mh}var kh=2160066560,lh=255,mh=0;function nh(){return this.V.Qm}function oh(a,b){this.V.Pm=b}var ph=[nh,nh,nh,oh,oh,oh];jh.prototype.Xk=function(){return[null,0]};jh.prototype.Ri=function(){return ph};za(function(){for(var a=Ta(window.document,"pcjs","ram"),b=0;b":62,"?":63,"@":64,Lp:65,Mp:66,jk:67,Km:68,E:69,Tp:70,Wp:71,kk:72,Yp:73,Zp:74,$p:75,aq:76,bq:77,ci:78,dq:79,eq:80,gq:81,mk:82,kq:83,uq:84,yq:85,zq:86,Aq:87,Cq:88,Dq:89,Eq:90,"[":91,"\\":92,"]":93,"^":94,_:95,"`":96,Fq:97,Hq:98,Jq:99,Qq:100,Rq:101,Sq:102,Uq:103,Vq:104,Xq:105,Yq:106,Zq:107, -$q:108,ar:109,br:110,dr:111,er:112,fr:113,gr:114,hr:115,ir:116,jr:117,kr:118,lr:119,x:120,y:121,z:122,"{":123,"|":124,"}":125,"~":126},rh={};rh[186]=V[";"];rh[187]=V["="];rh[188]=V[","];rh[189]=V["-"];rh[190]=V["."];rh[191]=V["/"];rh[192]=V["`"];rh[219]=V["["];rh[220]=V["\\"];rh[221]=V["]"];rh[222]=V["'"];rh[173]=V["-"];var W={};W[V["1"]]=V["!"];W[V["2"]]=V["@"];W[V["3"]]=V["#"];W[V["4"]]=V.$;W[V["5"]]=V["%"];W[V["6"]]=V["^"];W[V["7"]]=V["&"];W[V["8"]]=V["*"];W[V["9"]]=V["("];W[V["0"]]=V[")"]; +ih.prototype.reset=function(){if(!this.Sg&&!this.kn&&this.ca){var a=1024*gg(this.ca);this.Fd&&a!=this.Fd&&(Eb(this.ja,this.Sg,this.Fd),this.kh=!1);this.Fd=a}!this.kh&&this.Fd&&Cb(this.ja,this.Sg,this.Fd,1)&&(this.kh=!0,a=Math.floor(this.Fd/1024)+"Kb",this.$f&&(a+=" ("+this.$f+")",this.$f=null),this.status(a),"ramCPQ"==this.yh&&(this.V=new jh,Cb(this.ja,kh,1,4,this.V)));if(this.kh){if(this.on||Gb(this.ja,1138,4660),this.ca&&(a=this.ca,a.ba)){var b=1048576>this.Sg?21:23,c=a.ba[b]|a.ba[b+1]<<8,c=c+(this.Fd>> +10);a.ba[b]=c&255;a.ba[b+1]=c>>8;kg(a)}}else m("No RAM allocated")};function jh(){this.Qm=lh;this.Rm=mh}var kh=2160066560,lh=255,mh=0;function nh(){return this.V.Rm}function oh(a,b){this.V.Qm=b}var ph=[nh,nh,nh,oh,oh,oh];jh.prototype.Yk=function(){return[null,0]};jh.prototype.Si=function(){return ph};za(function(){for(var a=Ta(window.document,"pcjs","ram"),b=0;b":62,"?":63,"@":64,Mp:65,Np:66,kk:67,Lm:68,E:69,Up:70,Xp:71,lk:72,Zp:73,$p:74,aq:75,bq:76,cq:77,di:78,eq:79,fq:80,hq:81,nk:82,lq:83,vq:84,zq:85,Aq:86,Bq:87,Dq:88,Eq:89,Fq:90,"[":91,"\\":92,"]":93,"^":94,_:95,"`":96,Gq:97,Iq:98,Kq:99,Rq:100,Sq:101,Tq:102,Vq:103,Wq:104,Yq:105,Zq:106,$q:107, +ar:108,br:109,cr:110,er:111,fr:112,gr:113,hr:114,ir:115,jr:116,kr:117,lr:118,mr:119,x:120,y:121,z:122,"{":123,"|":124,"}":125,"~":126},rh={};rh[186]=V[";"];rh[187]=V["="];rh[188]=V[","];rh[189]=V["-"];rh[190]=V["."];rh[191]=V["/"];rh[192]=V["`"];rh[219]=V["["];rh[220]=V["\\"];rh[221]=V["]"];rh[222]=V["'"];rh[173]=V["-"];var W={};W[V["1"]]=V["!"];W[V["2"]]=V["@"];W[V["3"]]=V["#"];W[V["4"]]=V.$;W[V["5"]]=V["%"];W[V["6"]]=V["^"];W[V["7"]]=V["&"];W[V["8"]]=V["*"];W[V["9"]]=V["("];W[V["0"]]=V[")"]; W[186]=V[":"];W[187]=V["+"];W[188]=V["<"];W[189]=V._;W[190]=V[">"];W[191]=V["?"];W[192]=V["~"];W[219]=V["{"];W[220]=V["|"];W[221]=V["}"];W[222]=V['"'];W[173]=V._;W[61]=V["+"];W[59]=V[":"]; var sh={3016:1,1016:2,1017:8,1018:32,1091:128,1093:64,1224:128,1020:512,1144:1024,1145:2048},th={TAB:1009,ESC:1027,F1:1112,F2:1113,F3:1114,F4:1115,F5:1116,F6:1117,F7:1118,F8:1119,F9:1120,F10:1121,LEFT:1037,UP:1038,RIGHT:1039,DOWN:1040,CTRL_C:4003,CTRL_BREAK:4008,CTRL_ALT_DEL:4046},uh={esc:1027,1:V["1"],2:V["2"],3:V["3"],4:V["4"],5:V["5"],6:V["6"],7:V["7"],8:V["8"],9:V["9"],0:V["0"],"-":V["-"],"=":V["="],bs:1008,tab:1009,q:81,w:87,e:69,r:82,t:84,y:89,u:85,i:73,o:79,p:80,"[":V["["],"]":V["]"],enter:13, ctrl:1017,a:65,s:83,d:68,f:70,g:71,h:72,j:74,k:75,l:76,";":V[";"],quote:V["'"],"`":V["`"],shift:1016,"\\":V["\\"],z:90,x:88,c:67,v:86,b:66,n:78,m:77,",":V[","],".":V["."],"/":V["/"],"right-shift":3016,prtsc:1044,alt:1018,space:V[" "],"caps-lock":1020,f1:1112,f2:1113,f3:1114,f4:1115,f5:1116,f6:1117,f7:1118,f8:1119,f9:1120,f10:1121,"num-lock":1144,"scroll-lock":1145,"num-home":1036,"num-up":1038,"num-pgup":1033,"num-sub":1109,"num-left":1037,"num-center":1101,"num-right":1039,"num-add":1107,"num-end":1035, @@ -487,183 +489,183 @@ ctrl:1017,a:65,s:83,d:68,f:70,g:71,h:72,j:74,k:75,l:76,";":V[";"],quote:V["'"]," X[81]=10768;X[119]=17;X[87]=10769;X[101]=18;X[69]=10770;X[114]=19;X[82]=10771;X[116]=20;X[84]=10772;X[121]=21;X[89]=10773;X[117]=22;X[85]=10774;X[105]=23;X[73]=10775;X[111]=24;X[79]=10776;X[112]=25;X[80]=10777;X[V["["]]=26;X[V["{"]]=10778;X[V["]"]]=27;X[V["}"]]=10779;X[13]=28;X[1017]=29;X[97]=30;X[65]=10782;X[115]=31;X[83]=10783;X[100]=32;X[68]=10784;X[102]=33;X[70]=10785;X[103]=34;X[71]=10786;X[104]=35;X[72]=10787;X[106]=36;X[74]=10788;X[107]=37;X[75]=10789;X[108]=38;X[76]=10790;X[V[";"]]=39; X[V[":"]]=10791;X[V["'"]]=40;X[V['"']]=10792;X[V["`"]]=41;X[V["~"]]=10793;X[1016]=42;X[V["\\"]]=43;X[V["|"]]=10795;X[122]=44;X[90]=10796;X[120]=45;X[88]=10797;X[99]=46;X[67]=10798;X[118]=47;X[86]=10799;X[98]=48;X[66]=10800;X[110]=49;X[78]=10801;X[109]=50;X[77]=10802;X[V[","]]=51;X[V["<"]]=10803;X[V["."]]=52;X[V[">"]]=10804;X[V["/"]]=53;X[V["?"]]=10805;X[3016]=54;X[1044]=55;X[1018]=56;X[V[" "]]=57;X[1020]=58;X[1112]=59;X[1113]=60;X[1114]=61;X[1115]=62;X[1116]=63;X[1117]=64;X[1118]=65;X[1119]=66; X[1120]=67;X[1121]=68;X[1144]=69;X[1145]=70;X[1036]=71;X[1038]=72;X[1033]=73;X[1109]=74;X[1037]=75;X[1101]=76;X[1039]=77;X[1107]=78;X[1035]=79;X[1040]=80;X[1034]=81;X[1045]=82;X[1046]=83;X[1122]=87;X[1123]=88;X[1091]=91;X[1093]=93;X[1224]=91;X[4003]=7470;X[4008]=7494;X[4046]=3677523;k=qh.prototype; -k.Eb=function(a,b,c){var d=this,e=a+"-"+b;if(void 0===this.oa[e])switch(b){case "kbd":return this.oa[e]=c,c.onkeydown=function(a){return wh(d,a,!0)},c.onkeypress=function(a){a=a||window.event;a=a.which||a.keyCode;if(d.Jk){var b=d.Gb.length?d.Gb[0].ne:0;b&&(65<=b&&90>=b||97<=b&&122>=b)&&(65<=a&&90>=a||97<=a&&122>=a)&&b!=a&&(d.Ni=!0,a=b)}(b=!X[a]||!!(d.Pb&128))||xh(d,a,!0);return b},c.onkeyup=function(a){return wh(d,a,!1)},!0;case "caps-lock":return this.oa[e]=c,c.onclick=function(){d.U&&d.U.qd();xh(d, -1020,!0)},!0;case "num-lock":return this.oa[e]=c,c.onclick=function(){d.U&&d.U.qd();xh(d,1144,!0)},!0;case "scroll-lock":return this.oa[e]=c,c.onclick=function(){d.U&&d.U.qd();xh(d,1145,!0)},!0;default:var f=b.toUpperCase().replace(/-/g,"_");if(void 0!==th[f]&&"button"==a)return this.oa[e]=c,c.onclick=function(a,b,c){return function(){a.U&&a.U.qd();yh(a,c,!0);xh(a,c,!0)}}(this,f,th[f]),!0;if(void 0!==uh[b])return this.Ek++,this.oa[e]=c,a=function(a,b,c){return function(){xh(a,c)}}(this,b,uh[b]),b= -function(a,b,c){return function(){zh(a,c)}}(this,b,uh[b]),"ontouchstart"in window?(c.ontouchstart=a,c.ontouchend=b):(c.onmousedown=a,c.onmouseup=c.onmouseout=b),!0}return!1};function Ah(a,b,c){if(a.Ek){for(var d in W)if(b==W[d]){b=parseInt(d,10);(d=rh[d])&&(b=d);break}for(var e in uh)if((d=uh[e]==b)||(d=b,97<=d&&122>=d&&(d-=32),d=uh[e]==d),d){(a=a.oa["key-"+e])&&void 0!==c&&(a.style.color=c?"#ffffff":"#000000",a.style.backgroundColor=c?"#000000":"#ffffff");break}}} -k.zc=function(a,b,c,d){this.ja=b;this.U=c;this.Xa=d;this.ca=bb(a,"ChipSet")};function ah(a,b){a.cc("keyboard reset",32896);a.Mb=[170];b&&a.ca&&ch(a.ca,a.Mb[0])}function Xg(a,b,c){a.Gi!==c&&(a.Gi=a.Mi=c);a.nh!==b&&(a.nh=b)&&!a.Mi&&dh(a,!0);a.nh&&a.Mi&&(ah(a,!0),a.Mi=!1)}function Yg(a){var b=0;a.Mb.length&&(b=a.Mb[0],a.ca&&ch(a.ca,b))}function dh(a,b){0>=1);if(b&3584){if(!1===d)return!0;d=null}null==d?d=!((c?a.ed:a.Pb)&b):d||b&255&&(b=255);if(c){a.ed&=~b;d&&(a.ed|=b);c=b;var f,g;for(g in vh)d="led-"+g,e=vh[g],c&&c!=e||!(f=a.oa[d])||(f.style.backgroundColor=a.ed&e?"#00ff00":"#000000")}else a.Pb&=~b,d&&(a.Pb|=b);return!0}}return!1} -function xh(a,b,c){if(X[b]&&a.U&&a.U.ea.Ib){sh[b]&&a.Gb.length&&0e||(e==a.Gb.length&&(d={},d.ne=b,d.Pb=a.Pb,Ah(a,b,!0),e++),0b.nd){if(!b.eg){zh(a,b.ne);return}b.eg=!1;c=a.so}else c=1==b.nd++?a.to:a.uo;b.Fm=setTimeout(function(a){return function(){Bh(a,b)}}(a),c)}}else zh(a,b.ne,!0)}function Dh(a,b,c){var d=b;if(65<=b&&90>=b)!(a.Pb&515)==c&&(d=b+32);else if(97<=b&&122>=b)!!(a.Pb&515)==c&&(d=b-32);else if(!!(a.Pb&3)==c){if(a=W[b])d=a}else if(a=rh[b])d=a;return d}k.Oh=function(a){this.oh=a;a||(this.Pb&=-256)}; -function wh(a,b,c){var d=!0,e=!1,f=!1,g=b.keyCode,h=Dh(a,g,!0);a.Hi&&h==V["`"]&&(g=h=27);if(X[g+1E3])if(h+=1E3,2==b.location&&(h+=2E3),yh(a,h,!1,c)){if(20==g||144==g||145==g)a.kn||(c=e=!0);if(!(c||91!=g&&93!=g))for(var r=0;r=b||97<=b&&122>=b;d>>>=8;){var g=0,h=d&255;224==f||225==f?e.push(f|(c?0:128)):(42==h?a.ed&3||a.ed&512&&b||(g=h):29==h?a.ed&12||(g=h):56==h?a.ed&48||(g=h):e.push(f|(c?0:128)),g&&(c?e.unshift(g):e.push(g|128)))}for(c=0;cd.Mb.length?(d.Mb.push(f),1==d.Mb.length&&d.ca&&ch(d.ca,f)):(20==d.Mb.length&&d.Mb.push(255),d.cc("scan code buffer overflow")))}} +k.Eb=function(a,b,c){var d=this,e=a+"-"+b;if(void 0===this.oa[e])switch(b){case "kbd":return this.oa[e]=c,c.onkeydown=function(a){return wh(d,a,!0)},c.onkeypress=function(a){a=a||window.event;a=a.which||a.keyCode;if(d.Kk){var b=d.Gb.length?d.Gb[0].ne:0;b&&(65<=b&&90>=b||97<=b&&122>=b)&&(65<=a&&90>=a||97<=a&&122>=a)&&b!=a&&(d.Oi=!0,a=b)}(b=!X[a]||!!(d.Pb&128))||xh(d,a,!0);return b},c.onkeyup=function(a){return wh(d,a,!1)},!0;case "caps-lock":return this.oa[e]=c,c.onclick=function(){d.U&&d.U.rd();xh(d, +1020,!0)},!0;case "num-lock":return this.oa[e]=c,c.onclick=function(){d.U&&d.U.rd();xh(d,1144,!0)},!0;case "scroll-lock":return this.oa[e]=c,c.onclick=function(){d.U&&d.U.rd();xh(d,1145,!0)},!0;default:var f=b.toUpperCase().replace(/-/g,"_");if(void 0!==th[f]&&"button"==a)return this.oa[e]=c,c.onclick=function(a,b,c){return function(){a.U&&a.U.rd();yh(a,c,!0);xh(a,c,!0)}}(this,f,th[f]),!0;if(void 0!==uh[b])return this.Fk++,this.oa[e]=c,a=function(a,b,c){return function(){xh(a,c)}}(this,b,uh[b]),b= +function(a,b,c){return function(){zh(a,c)}}(this,b,uh[b]),"ontouchstart"in window?(c.ontouchstart=a,c.ontouchend=b):(c.onmousedown=a,c.onmouseup=c.onmouseout=b),!0}return!1};function Ah(a,b,c){if(a.Fk){for(var d in W)if(b==W[d]){b=parseInt(d,10);(d=rh[d])&&(b=d);break}for(var e in uh)if((d=uh[e]==b)||(d=b,97<=d&&122>=d&&(d-=32),d=uh[e]==d),d){(a=a.oa["key-"+e])&&void 0!==c&&(a.style.color=c?"#ffffff":"#000000",a.style.backgroundColor=c?"#000000":"#ffffff");break}}} +k.Ac=function(a,b,c,d){this.ja=b;this.U=c;this.Xa=d;this.ca=bb(a,"ChipSet")};function ah(a,b){a.cc("keyboard reset",32896);a.Mb=[170];b&&a.ca&&ch(a.ca,a.Mb[0])}function Xg(a,b,c){a.Hi!==c&&(a.Hi=a.Ni=c);a.oh!==b&&(a.oh=b)&&!a.Ni&&dh(a,!0);a.oh&&a.Ni&&(ah(a,!0),a.Ni=!1)}function Yg(a){var b=0;a.Mb.length&&(b=a.Mb[0],a.ca&&ch(a.ca,b))}function dh(a,b){0>=1);if(b&3584){if(!1===d)return!0;d=null}null==d?d=!((c?a.fd:a.Pb)&b):d||b&255&&(b=255);if(c){a.fd&=~b;d&&(a.fd|=b);c=b;var f,g;for(g in vh)d="led-"+g,e=vh[g],c&&c!=e||!(f=a.oa[d])||(f.style.backgroundColor=a.fd&e?"#00ff00":"#000000")}else a.Pb&=~b,d&&(a.Pb|=b);return!0}}return!1} +function xh(a,b,c){if(X[b]&&a.U&&a.U.ea.Ib){sh[b]&&a.Gb.length&&0e||(e==a.Gb.length&&(d={},d.ne=b,d.Pb=a.Pb,Ah(a,b,!0),e++),0b.od){if(!b.fg){zh(a,b.ne);return}b.fg=!1;c=a.to}else c=1==b.od++?a.uo:a.vo;b.Gm=setTimeout(function(a){return function(){Bh(a,b)}}(a),c)}}else zh(a,b.ne,!0)}function Dh(a,b,c){var d=b;if(65<=b&&90>=b)!(a.Pb&515)==c&&(d=b+32);else if(97<=b&&122>=b)!!(a.Pb&515)==c&&(d=b-32);else if(!!(a.Pb&3)==c){if(a=W[b])d=a}else if(a=rh[b])d=a;return d}k.Ph=function(a){this.ph=a;a||(this.Pb&=-256)}; +function wh(a,b,c){var d=!0,e=!1,f=!1,g=b.keyCode,h=Dh(a,g,!0);a.Ii&&h==V["`"]&&(g=h=27);if(X[g+1E3])if(h+=1E3,2==b.location&&(h+=2E3),yh(a,h,!1,c)){if(20==g||144==g||145==g)a.ln||(c=e=!0);if(!(c||91!=g&&93!=g))for(var r=0;r=b||97<=b&&122>=b;d>>>=8;){var g=0,h=d&255;224==f||225==f?e.push(f|(c?0:128)):(42==h?a.fd&3||a.fd&512&&b||(g=h):29==h?a.fd&12||(g=h):56==h?a.fd&48||(g=h):e.push(f|(c?0:128)),g&&(c?e.unshift(g):e.push(g|128)))}for(c=0;cd.Mb.length?(d.Mb.push(f),1==d.Mb.length&&d.ca&&ch(d.ca,f)):(20==d.Mb.length&&d.Mb.push(255),d.cc("scan code buffer overflow")))}} za(function(){for(var a=Ta(window.document,"pcjs","keyboard"),b=0;bc.length)c=[!1,0,null,null,0,Array(Sh)];this.wh=b;this.Ta=e[2];this.Kb=e[3];this.Uc=d||e[4];65536<=this.Uc&&720896<=this.Ta&&(this.Kb=Math.min(this.Uc>>2,32768));this.Yc=c[0];this.Ac=c[1];this.Zf=c[2];this.Hg=c[3];this.Ic=c[4]&255;this.vh=c[4]>>8&255;this.mc=c[5];this.Yi=Sh;if(5==b){this.Yi=Th;b=c[6];void 0===b&&(b=[!1,0,Array(20),0,3==f?0:1,0,0,Array(5),0,0,0,Array(9),0,[this.Ta,this.Kb,this.Uc],Array(this.Uc>> -2),771,0,-1,0,-1,0,-1,0,0,0]);this.Xd=b[0];this.Ke=b[1];this.qe=b[2];this.ek=b[3];this.Ah=b[4];this.Pi=b[5];this.yf=b[6];this.Og=b[7];this.Si=b[8];this.Ti=b[9];this.xf=b[10];this.bf=b[11];this.yb=b[12];d=b[13];"number"==typeof d&&(d=[this.Ta,this.Kb,d]);this.Ta=d[0];this.Kb=d[1];d=this.Uc>>2;if((this.ue=b[14])&&this.ue.length>8)} -function Xh(a,b){this.Fb(a,b&255);this.Fb(a+1,b>>8&255);this.Fb(a+2,b>>16&255);this.Fb(a+3,b>>>24)}var Yh=[,,function(a){a+=this.offset;return(this.V.yb=this.ia[a])>>this.V.Sj&255},function(a){a+=this.offset;var b=a&-2;return(a&1?this.ia[b]>>8:this.ia[b])&255}];Yh[16]=function(a){a+=this.offset;a=this.ia[a];for(var b=this.V.$i&this.V.aj,c=0,d=128;d;)(a&b)==b&&(c|=d),b>>>=1,d>>=1;return c}; -Yh[512]=function(a,b){var c=a+this.offset,d;d=this.ia[c]&~this.V.eb|(b|b<<8|b<<16|b<<24)&this.V.eb;d=d&this.V.mb|this.V.yb&~this.V.mb;this.ia[c]!=d&&(this.ia[c]=d,this.Ha=!0)};Yh[1024]=function(a,b){var c=a+this.offset;b=b>>this.V.ld|b<<8-this.V.ld&255;var d;d=(b|b<<8|b<<16|b<<24)&this.V.he|this.V.Pe;d=d&this.V.eb|this.ia[c]&~this.V.eb;d=d&this.V.mb|this.V.yb&~this.V.mb;this.ia[c]!=d&&(this.ia[c]=d,this.Ha=!0)}; -Yh[1536]=function(a,b){var c=a+this.offset;b=b>>this.V.ld|b<<8-this.V.ld&255;var d;d=(b|b<<8|b<<16|b<<24)&this.V.he|this.V.Pe;d&=this.V.yb;d=d&this.V.eb|this.ia[c]&~this.V.eb;d=d&this.V.mb|this.V.yb&~this.V.mb;this.ia[c]!=d&&(this.ia[c]=d,this.Ha=!0)};Yh[2560]=function(a,b){var c=a+this.offset;b=b>>this.V.ld|b<<8-this.V.ld&255;var d;d=(b|b<<8|b<<16|b<<24)&this.V.he|this.V.Pe;d|=this.V.yb;d=d&this.V.eb|this.ia[c]&~this.V.eb;d=d&this.V.mb|this.V.yb&~this.V.mb;this.ia[c]!=d&&(this.ia[c]=d,this.Ha=!0)}; -Yh[3584]=function(a,b){var c=a+this.offset;b=b>>this.V.ld|b<<8-this.V.ld&255;var d;d=(b|b<<8|b<<16|b<<24)&this.V.he|this.V.Pe;d^=this.V.yb;d=d&this.V.eb|this.ia[c]&~this.V.eb;d=d&this.V.mb|this.V.yb&~this.V.mb;this.ia[c]!=d&&(this.ia[c]=d,this.Ha=!0)};Yh[768]=function(a,b){a+=this.offset;var c,d=a&-2;c=this.V.eb&(d==a?16711935:-16711936);c=(b|b<<8|b<<16|b<<24)&c|this.ia[d]&~c;c=c&this.V.mb|this.V.yb&~this.V.mb;this.ia[d]!=c&&(this.ia[d]=c,this.Ha=!0)}; +function Qh(a,b,c,d){if(void 0!==b&&(!c||c.length)){var e=Rh[b],f=a.ee||e[5];if(!c||6>c.length)c=[!1,0,null,null,0,Array(Sh)];this.xh=b;this.Ta=e[2];this.Kb=e[3];this.Vc=d||e[4];65536<=this.Vc&&720896<=this.Ta&&(this.Kb=Math.min(this.Vc>>2,32768));this.Zc=c[0];this.Bc=c[1];this.Zf=c[2];this.Ig=c[3];this.Jc=c[4]&255;this.wh=c[4]>>8&255;this.nc=c[5];this.Zi=Sh;if(5==b){this.Zi=Th;b=c[6];void 0===b&&(b=[!1,0,Array(20),0,3==f?0:1,0,0,Array(5),0,0,0,Array(9),0,[this.Ta,this.Kb,this.Vc],Array(this.Vc>> +2),771,0,-1,0,-1,0,-1,0,0,0]);this.Xd=b[0];this.Ke=b[1];this.qe=b[2];this.fk=b[3];this.Bh=b[4];this.Qi=b[5];this.yf=b[6];this.Pg=b[7];this.Ti=b[8];this.Ui=b[9];this.xf=b[10];this.bf=b[11];this.yb=b[12];d=b[13];"number"==typeof d&&(d=[this.Ta,this.Kb,d]);this.Ta=d[0];this.Kb=d[1];d=this.Vc>>2;if((this.ue=b[14])&&this.ue.length>8)} +function Xh(a,b){this.Fb(a,b&255);this.Fb(a+1,b>>8&255);this.Fb(a+2,b>>16&255);this.Fb(a+3,b>>>24)}var Yh=[,,function(a){a+=this.offset;return(this.V.yb=this.ia[a])>>this.V.Tj&255},function(a){a+=this.offset;var b=a&-2;return(a&1?this.ia[b]>>8:this.ia[b])&255}];Yh[16]=function(a){a+=this.offset;a=this.ia[a];for(var b=this.V.aj&this.V.bj,c=0,d=128;d;)(a&b)==b&&(c|=d),b>>>=1,d>>=1;return c}; +Yh[512]=function(a,b){var c=a+this.offset,d;d=this.ia[c]&~this.V.eb|(b|b<<8|b<<16|b<<24)&this.V.eb;d=d&this.V.mb|this.V.yb&~this.V.mb;this.ia[c]!=d&&(this.ia[c]=d,this.Ha=!0)};Yh[1024]=function(a,b){var c=a+this.offset;b=b>>this.V.md|b<<8-this.V.md&255;var d;d=(b|b<<8|b<<16|b<<24)&this.V.he|this.V.Pe;d=d&this.V.eb|this.ia[c]&~this.V.eb;d=d&this.V.mb|this.V.yb&~this.V.mb;this.ia[c]!=d&&(this.ia[c]=d,this.Ha=!0)}; +Yh[1536]=function(a,b){var c=a+this.offset;b=b>>this.V.md|b<<8-this.V.md&255;var d;d=(b|b<<8|b<<16|b<<24)&this.V.he|this.V.Pe;d&=this.V.yb;d=d&this.V.eb|this.ia[c]&~this.V.eb;d=d&this.V.mb|this.V.yb&~this.V.mb;this.ia[c]!=d&&(this.ia[c]=d,this.Ha=!0)};Yh[2560]=function(a,b){var c=a+this.offset;b=b>>this.V.md|b<<8-this.V.md&255;var d;d=(b|b<<8|b<<16|b<<24)&this.V.he|this.V.Pe;d|=this.V.yb;d=d&this.V.eb|this.ia[c]&~this.V.eb;d=d&this.V.mb|this.V.yb&~this.V.mb;this.ia[c]!=d&&(this.ia[c]=d,this.Ha=!0)}; +Yh[3584]=function(a,b){var c=a+this.offset;b=b>>this.V.md|b<<8-this.V.md&255;var d;d=(b|b<<8|b<<16|b<<24)&this.V.he|this.V.Pe;d^=this.V.yb;d=d&this.V.eb|this.ia[c]&~this.V.eb;d=d&this.V.mb|this.V.yb&~this.V.mb;this.ia[c]!=d&&(this.ia[c]=d,this.Ha=!0)};Yh[768]=function(a,b){a+=this.offset;var c,d=a&-2;c=this.V.eb&(d==a?16711935:-16711936);c=(b|b<<8|b<<16|b<<24)&c|this.ia[d]&~c;c=c&this.V.mb|this.V.yb&~this.V.mb;this.ia[d]!=c&&(this.ia[d]=c,this.Ha=!0)}; Yh[4096]=function(a){a+=this.offset;var b=this.ia[a]&~this.V.eb|this.V.yb&this.V.eb;this.ia[a]!=b&&(this.ia[a]=b,this.Ha=!0)};Yh[8192]=function(a,b){var c=a+this.offset,d=Oh[b&15],d=d&this.V.eb|this.ia[c]&~this.V.eb,d=d&this.V.mb|this.V.yb&~this.V.mb;this.ia[c]!=d&&(this.ia[c]=d,this.Ha=!0)};Yh[24576]=function(a,b){var c=a+this.offset,d=Oh[b&15],d=d&this.V.yb,d=d&this.V.eb|this.ia[c]&~this.V.eb,d=d&this.V.mb|this.V.yb&~this.V.mb;this.ia[c]!=d&&(this.ia[c]=d,this.Ha=!0)}; Yh[40960]=function(a,b){var c=a+this.offset,d=Oh[b&15],d=d|this.V.yb,d=d&this.V.eb|this.ia[c]&~this.V.eb,d=d&this.V.mb|this.V.yb&~this.V.mb;this.ia[c]!=d&&(this.ia[c]=d,this.Ha=!0)};Yh[57344]=function(a,b){var c=a+this.offset,d=Oh[b&15],d=d^this.V.yb,d=d&this.V.eb|this.ia[c]&~this.V.eb,d=d&this.V.mb|this.V.yb&~this.V.mb;this.ia[c]!=d&&(this.ia[c]=d,this.Ha=!0)}; -function Zh(a){var b=[];if(void 0!==a.wh){b[0]=a.Yc;b[1]=a.Ac;b[2]=a.Zf;b[3]=a.Hg;b[4]=a.Ic|a.vh<<8;b[5]=a.mc;if(5==a.wh){var c=[];c[0]=a.Xd;c[1]=a.Ke;c[2]=a.qe;c[3]=a.ek;c[4]=a.Ah;c[5]=a.Pi;c[6]=a.yf;c[7]=a.Og;c[8]=a.Si;c[9]=a.Ti;c[10]=a.xf;c[11]=a.bf;c[12]=a.yb;c[13]=[a.Ta,a.Kb,a.Uc];var d;a:if(d=a.ue){var e=0,f=[];if(void 0!==d[0])for(var g=0;2>g;g++)for(var h=g;h>1;f[e++]=r;h=t}if(f.lengthg;g++)for(var h=g;h>1;f[e++]=r;h=t}if(f.length>1&255,d=d>>8&-129,d>>4==(d&15)&&(d^=15)):(c=d&255,d=(d&256?7:112)|8&d>>8),Gb(this.ja,b,c|d<<8);sc(this,!0)}};function fi(a){a.ga.Ah&1?(a.Tc=a.qi,a.gc=a.ga):(a.Tc=a.ga,a.gc=a.fh)}k.save=function(){var a=new Pd(this);a.set(0,Zh(this.qi));a.set(1,Zh(this.fh));a.set(2,[this.ee,this.md,this.de]);a.set(3,Zh(this.ga));return a.data()}; -k.restore=function(a){var b=a[2];this.ee=b[0];this.md=b[1];this.de=b[2];this.Ea=null;this.Tc=this.qi=new Qh(this,1,a[0]);this.gc=this.fh=new Qh(this,3,a[1]);this.ga=new Qh(this,5,a[3],this.Uc);this.ga.Yc&&fi(this);gi(this);if(!ii(this))return!1;ji(this);return!0}; -k.Co=function(a,b,c){if(c)this.wa("Unable to load font ROM image (error "+c+")");else{try{var d=eval("("+b+")");if(!d.length){m("Empty font ROM image: "+a);return}if(1==d.length){m(d[0]);return}if(8192==d.length)hh(this,d,[0,6144]);else{this.wa("Unrecognized font data length ("+d.length+")");return}}catch(e){this.wa("Font ROM data error: "+e.message);return}p(this)}}; -function ki(a,b){if(1==b)return a.sd[0]=Kh[0],a.sd[1]=Kh[7],a.sd;if(2==b){var c=a.Ea.Zf;if(a.Ea===a.ga){var d=a.ga.qe[0],c=d&7;d&16&&(c|=8);18!=a.ga.qe[1]&&(c|=32)}a.sd[0]=Kh[c&15];c=c&32?Mh:Lh;for(d=0;dPa||!fa?Pa:8,qe=Ag.createImageData(t.nc,t.oc),Qa=0;256>Qa;Qa++){for(nb= -0;nb=Pa-2,nj=mb[nb>(8<=Tb&&176<=Qa&&223>=Qa?7:Tb)?H:qc;ni(qe,Bg,Cg,Dg);U&&ni(qe,Bg+1,Cg,Dg)}Ag.putImageData(qe,(Qa&15)*t.nc,(Qa>>4)*t.oc)}t.af[L]="#"+ea(H[0])+ea(H[1])+ea(H[2]);t.rk[L]=H;t.ei[L]=gd;t=!0}}a.Ld[b]=I;return t}function oi(a){0a.Ae&&(a.Ae=0):a.Ae=-1} -function ji(a){if(a.Qb){for(var b=10;15>=b;b++)if(null==a.Ea.mc[b])return;var c=a.Ea.mc[10],b=c&31,d=a.Ea.mc[11]&31,e=a.Ea.mc[9]&31,f=!1;a.Ea===a.ga&&(f=!0,7!=e||4!=b||d||(d=7));if(c&32||b>d&&!f||b>e)pi(a);else{c=a.Ea.mc[15]+((a.Ea.mc[14]&63)<<8);a.Jc!=c&&(pi(a),a.Jc=c);d=d-b+1;if(a.Jm!=b||a.Gk!=d)a.Jm=b,a.Gk=d;a.Vd=e+1;oi(a)}}} -function pi(a){if(0<=a.Jc){if(void 0!==a.fc){var b=a.fc[a.Jc];if(b&131072){var b=b&-131073,c=a.Jc%a.zb,d=Math.floor(a.Jc/a.zb);a.Qb&&a.Ld[a.Qb]&&(a.mf&&qi(a,c,d,b,a.mf),qi(a,c,d,b));a.fc[a.Jc]=b}}a.Jc=-1}} -function ri(a){var b;a=a.Ea;var c=a.bf[5];if(null!=c){b=2;var d=512,e=a.bf[3]&31;switch(c&3){case 0:if(e){d=1024;switch(e&24){case 8:d=1536;break;case 16:d=2560;break;case 24:d=3584}a.ld=e&7}break;case 1:d=4096;break;case 2:switch(e&24){default:d=8192;break;case 8:d=24576;break;case 16:d=40960;break;case 24:d=57344}}c&8&&(b=16);c&16&&(b|=1,d|=256);b|=d}return b}k.me=function(a){var b=this.Ea;null!=a&&b&&a!=b.Xi&&(b.Yh(a),this.ja.Yh(b.Ta,b.Kb,b.Ri()))}; -function ii(a,b){var c,d=a.de,e=a.Ea;if(e)if(1==e.wh)d=Fh;else if(5==e.wh){var d=null,f=e.Uc>>2,g=32768f&&(d=c?13:14):c&&(d-=2));c=ri(a)}}else e.Ac&8&&(e.Ac&2?(d=e.Ac&16?6:5,e.Ac&4||--d):(d=e.Ac&1?3:1,e.Ac&4&&--d)); -else a.de=null,null==d&&(d=a.md);if(!hi(a,d,b))return!1;a.me(c);return!0} -function hi(a,b,c){if(null!=b&&(b!=a.de||c)){a.Sm=0;a.de=b;b=a.Ea||(b==Fh?a.Tc:a.gc);if(b!=a.Ea||b.Ta!=a.Ta||b.Kb!=a.Kb){pi(a);if(a.Ta){if(!Eb(a.ja,a.Ta,a.Kb))return!1;a.Ea&&(a.Ea.Yc=!1)}a.Ea=b;b.Yc=!0;a.Ta=b.Ta;a.Kb=b.Kb;if(!Cb(a.ja,b.Ta,b.Kb,3,b===a.ga?b:null))return!1}a.Qb=0;a.zb=a.Fh;a.sc=a.ej;a.Zi=Eh[Fh][2];b=0;var d=Eh[a.de];d&&(a.zb=d[0],a.sc=d[1],a.Zi=d[2],b=d[3]||0,a.Qb=d[4],4==a.ee&&a.Ea===a.ga&&3==a.Qb&&(7==a.ga.mc[9]?a.sc=43:a.Qb=5));a.hl=a.zb*a.sc;a.Ch=a.hl/a.Zi;a.ri=(a.Ch<<1)+b;a.Fk= -b?a.ri+b>>1:0;13<=a.de&&(a.Ch<<=1);a.Ld.length&&(a.xd=Math.floor(a.wd/a.zb),a.yd=Math.floor(a.Wd/a.sc),a.Qb?(b=a.Ld[a.Qb],d=a.Ld[a.Qb<<1],a.mn&&80==a.zb?d&&a.xd>=3*d.nc>>2&&(a.Qb<<=1,b=d):(d&&a.xd>=d.nc&&(a.Qb<<=1,b=d),b&&(a.xd=b.nc,a.yd=b.oc)),a.bg=a.cg=0,b&&(a.bg=a.zb*b.nc,a.cg=a.sc*b.oc)):(a.xd=a.yd=1,a.bg=a.zb,a.cg=a.sc),a.yh=a.Wc.createImageData(a.bg,a.cg),a.kf=window.document.createElement("canvas"),a.kf.width=a.bg,a.kf.height=a.cg,a.mf=a.kf.getContext("2d"),a.hk=a.ik=0,a.xi=a.wd,a.yi=a.Wd, -b=a.wd-a.zb*a.xd,d=a.Wd-a.sc*a.yd,0>1,a.xi-=b),0>1,a.yi-=d),b||d)&&(a.Wc.fillStyle=a.Yf.style.backgroundColor,a.Wc.fillRect(0,0,a.wd,a.Wd));!1!==c?sc(a,!0):si(a,!0)}return!0}function ni(a,b,c,d){b=(b+c*a.width)*d.length;a.data[b]=d[0];a.data[b+1]=d[1];a.data[b+2]=d[2];a.data[b+3]=d[3]}function si(a,b){var c;if(b){if(c=a.Ch,void 0===a.fc||a.fc.length!=c)a.fc=Array(c)}else{if(void 0===a.fc)return;c=a.fc.length}for(var d=0;d>8;d=g&15;var h=a.Ld[a.Qb];h.Mf&&(d=h.Mf[d]);var r=g>>4&15;h.Mf&&(r=h.Mf[r]);e?(b*=h.nc,c*=h.oc,e.fillStyle=h.af[r],e.fillRect(b,c,h.nc,h.oc)):(b=b*a.xd+a.hk,c=c*a.yd+a.ik,a.Wc.fillStyle=h.af[r],a.Wc.fillRect(b,c,a.xd,a.yd));g&256&&(r=(f&15)*h.nc,f=(f>>4)*h.oc,e?e.drawImage(h.ei[d],r,f,h.nc,h.oc,b,c,h.nc,h.oc):a.Wc.drawImage(h.ei[d],r,f,h.nc,h.oc,b,c,a.xd,a.yd));g&512&&(f=a.Jm,g=a.Gk,e?(a.Vd&&a.Vd!==h.oc&&(f=Math.floor(f*h.oc/a.Vd),g=Math.floor(g*h.oc/a.Vd)), -e.fillStyle=h.af[d],e.fillRect(b,c+f,h.nc,g)):(a.Vd&&a.Vd!==a.yd&&(f=Math.floor(f*a.yd/a.Vd),g=Math.floor(g*a.yd/a.Vd)),a.Wc.fillStyle=h.af[d],a.Wc.fillRect(b,c+f,a.xd,g)))} -function sc(a,b){if(a.ea.Zb){var c=!1;a.Ea&&(a.Ea===a.ga?a.ga.Ke&32&&(c=!0):a.Ea.Ac&8&&(c=!0));if(c||b){if(b)si(a,!0);else if(void 0===a.fc)return;var d=!1;!(b||++a.Sm&15)&&0<=a.Ae&&(a.Ae++,d=!0);var e=0,f=a.hl,c=a.Ea.Ta,g=c+a.Ea.Kb,h=(a.Ea.mc[12]<<8)+a.Ea.mc[13];a.Qb&&(h<<=1);var c=c+h,r=a.ri;c+r>g&&(r=g-c,0>r&&(r=0));g=c+r;if(h=!b){for(var h=a.ja,t=!0,B=c>>>h.Ra;0a.Jc)return;e=a.Jc;f= -e+1}}if(a.Qb){if(a.Ld[a.Qb]){d=0;h=a.ze=0;r=1048575;a.Ea.Ac&32&&(h=32768,r&=~h,a.Ae&2||(r&=-65537));for(c+=e<<1;c>8|(I&255)<<8;H=h;var Pa=16;B>=r))>>(Pa-=r);ni(a.yh,B++,L,t[qc])}B>ba&&(ba=B);L=Ca&&(Ca=L+1)}e+=2;g++;if(B>=a.zb){B=0;L+=2;if(L>a.sc)break;L==a.sc&&(L=1,e=c+a.Fk)}}Ufa;fa++)Ca=Ph[ba&-2139062144]||0,ni(a.yh,h++,r,g[Ca]),ba<<=1;h>B&&(B=h);r=U&&(U=r+1)}e++;if(h>=a.zb&&(h=0,++r>a.sc))break}t>2),a=this.ga.ek&-17|(this.Ug&1<e&&(e=0);e%b.bj>b.wo&&(c|=1);e%=b.kl;e>b.yo&&(c|=8);b.ij=d-e;b===a.ga?(c|=b.Hg&48^48,b.Xd=!1):c=(b.Hg^=9)|240;return b.Hg=c} -var $h={948:Y.prototype.Xn,949:Y.prototype.Wn,952:Y.prototype.Yn,954:Y.prototype.Zn,980:Y.prototype.Fn,981:Y.prototype.En,984:Y.prototype.Gn,985:Y.prototype.Dn,986:Y.prototype.Hn},ai={948:Y.prototype.jp,949:Y.prototype.ip,952:Y.prototype.kp,980:Y.prototype.To,981:Y.prototype.So,984:Y.prototype.Uo,985:Y.prototype.Ro},bi={960:Y.prototype.cl,961:Y.prototype.cl,962:Y.prototype.ko,964:Y.prototype.jo,965:Y.prototype.io,970:Y.prototype.Qn,972:Y.prototype.Pn,974:Y.prototype.On,975:Y.prototype.Nn},ci={954:Y.prototype.nm, -960:Y.prototype.mm,961:Y.prototype.mm,962:Y.prototype.mp,964:Y.prototype.tp,965:Y.prototype.sp,970:Y.prototype.ep,972:Y.prototype.dp,974:Y.prototype.cp,975:Y.prototype.bp,986:Y.prototype.nm}; +k.reset=function(){var a=!0,b=0;this.ca&&(b=hg(this.ca));var c=!1;if(this.za)switch(this.za){case "ega":var c=!0,d=Hh[this.Vg];d&&(b=d[0]);b||(b=4);break;case "mda":b=3;break;default:b=2}this.ee!==b&&(this.ee=b,a=!0);this.Ea=null;this.Uc=this.ri=new Qh(this,1);this.hc=this.gh=new Qh(this,3);c?(this.ga=new Qh(this,5,null,this.Vc),fi(this)):this.ga=new Qh;gi(this);this.de=null;this.nd=3==b?Fh:3;this.Ae=this.Kc=-1;this.ze=0;hi(this,this.nd);if(this.Ea.Ta&&a){a=this.Ea.Ta+this.si;for(b=this.Ea.Ta;b>1&255,d=d>>8&-129,d>>4==(d&15)&&(d^=15)):(c=d&255,d=(d&256?7:112)|8&d>>8),Gb(this.ja,b,c|d<<8);sc(this,!0)}};function fi(a){a.ga.Bh&1?(a.Uc=a.ri,a.hc=a.ga):(a.Uc=a.ga,a.hc=a.gh)}k.save=function(){var a=new Pd(this);a.set(0,Zh(this.ri));a.set(1,Zh(this.gh));a.set(2,[this.ee,this.nd,this.de]);a.set(3,Zh(this.ga));return a.data()}; +k.restore=function(a){var b=a[2];this.ee=b[0];this.nd=b[1];this.de=b[2];this.Ea=null;this.Uc=this.ri=new Qh(this,1,a[0]);this.hc=this.gh=new Qh(this,3,a[1]);this.ga=new Qh(this,5,a[3],this.Vc);this.ga.Zc&&fi(this);gi(this);if(!ii(this))return!1;ji(this);return!0}; +k.Do=function(a,b,c){if(c)this.va("Unable to load font ROM image (error "+c+")");else{try{var d=eval("("+b+")");if(!d.length){m("Empty font ROM image: "+a);return}if(1==d.length){m(d[0]);return}if(8192==d.length)hh(this,d,[0,6144]);else{this.va("Unrecognized font data length ("+d.length+")");return}}catch(e){this.va("Font ROM data error: "+e.message);return}p(this)}}; +function ki(a,b){if(1==b)return a.sd[0]=Kh[0],a.sd[1]=Kh[7],a.sd;if(2==b){var c=a.Ea.Zf;if(a.Ea===a.ga){var d=a.ga.qe[0],c=d&7;d&16&&(c|=8);18!=a.ga.qe[1]&&(c|=32)}a.sd[0]=Kh[c&15];c=c&32?Mh:Lh;for(d=0;dPa||!fa?Pa:8,qe=Ag.createImageData(t.oc,t.pc),Qa=0;256>Qa;Qa++){for(nb= +0;nb=Pa-2,nj=mb[nb>(8<=Tb&&176<=Qa&&223>=Qa?7:Tb)?H:qc;ni(qe,Bg,Cg,Dg);U&&ni(qe,Bg+1,Cg,Dg)}Ag.putImageData(qe,(Qa&15)*t.oc,(Qa>>4)*t.pc)}t.af[L]="#"+ea(H[0])+ea(H[1])+ea(H[2]);t.sk[L]=H;t.fi[L]=gd;t=!0}}a.Ld[b]=I;return t}function oi(a){0a.Ae&&(a.Ae=0):a.Ae=-1} +function ji(a){if(a.Qb){for(var b=10;15>=b;b++)if(null==a.Ea.nc[b])return;var c=a.Ea.nc[10],b=c&31,d=a.Ea.nc[11]&31,e=a.Ea.nc[9]&31,f=!1;a.Ea===a.ga&&(f=!0,7!=e||4!=b||d||(d=7));if(c&32||b>d&&!f||b>e)pi(a);else{c=a.Ea.nc[15]+((a.Ea.nc[14]&63)<<8);a.Kc!=c&&(pi(a),a.Kc=c);d=d-b+1;if(a.Km!=b||a.Hk!=d)a.Km=b,a.Hk=d;a.Vd=e+1;oi(a)}}} +function pi(a){if(0<=a.Kc){if(void 0!==a.gc){var b=a.gc[a.Kc];if(b&131072){var b=b&-131073,c=a.Kc%a.zb,d=Math.floor(a.Kc/a.zb);a.Qb&&a.Ld[a.Qb]&&(a.mf&&qi(a,c,d,b,a.mf),qi(a,c,d,b));a.gc[a.Kc]=b}}a.Kc=-1}} +function ri(a){var b;a=a.Ea;var c=a.bf[5];if(null!=c){b=2;var d=512,e=a.bf[3]&31;switch(c&3){case 0:if(e){d=1024;switch(e&24){case 8:d=1536;break;case 16:d=2560;break;case 24:d=3584}a.md=e&7}break;case 1:d=4096;break;case 2:switch(e&24){default:d=8192;break;case 8:d=24576;break;case 16:d=40960;break;case 24:d=57344}}c&8&&(b=16);c&16&&(b|=1,d|=256);b|=d}return b}k.me=function(a){var b=this.Ea;null!=a&&b&&a!=b.Yi&&(b.Zh(a),this.ja.Zh(b.Ta,b.Kb,b.Si()))}; +function ii(a,b){var c,d=a.de,e=a.Ea;if(e)if(1==e.xh)d=Fh;else if(5==e.xh){var d=null,f=e.Vc>>2,g=32768f&&(d=c?13:14):c&&(d-=2));c=ri(a)}}else e.Bc&8&&(e.Bc&2?(d=e.Bc&16?6:5,e.Bc&4||--d):(d=e.Bc&1?3:1,e.Bc&4&&--d)); +else a.de=null,null==d&&(d=a.nd);if(!hi(a,d,b))return!1;a.me(c);return!0} +function hi(a,b,c){if(null!=b&&(b!=a.de||c)){a.Tm=0;a.de=b;b=a.Ea||(b==Fh?a.Uc:a.hc);if(b!=a.Ea||b.Ta!=a.Ta||b.Kb!=a.Kb){pi(a);if(a.Ta){if(!Eb(a.ja,a.Ta,a.Kb))return!1;a.Ea&&(a.Ea.Zc=!1)}a.Ea=b;b.Zc=!0;a.Ta=b.Ta;a.Kb=b.Kb;if(!Cb(a.ja,b.Ta,b.Kb,3,b===a.ga?b:null))return!1}a.Qb=0;a.zb=a.Gh;a.tc=a.fj;a.$i=Eh[Fh][2];b=0;var d=Eh[a.de];d&&(a.zb=d[0],a.tc=d[1],a.$i=d[2],b=d[3]||0,a.Qb=d[4],4==a.ee&&a.Ea===a.ga&&3==a.Qb&&(7==a.ga.nc[9]?a.tc=43:a.Qb=5));a.il=a.zb*a.tc;a.Dh=a.il/a.$i;a.si=(a.Dh<<1)+b;a.Gk= +b?a.si+b>>1:0;13<=a.de&&(a.Dh<<=1);a.Ld.length&&(a.xd=Math.floor(a.wd/a.zb),a.yd=Math.floor(a.Wd/a.tc),a.Qb?(b=a.Ld[a.Qb],d=a.Ld[a.Qb<<1],a.nn&&80==a.zb?d&&a.xd>=3*d.oc>>2&&(a.Qb<<=1,b=d):(d&&a.xd>=d.oc&&(a.Qb<<=1,b=d),b&&(a.xd=b.oc,a.yd=b.pc)),a.cg=a.dg=0,b&&(a.cg=a.zb*b.oc,a.dg=a.tc*b.pc)):(a.xd=a.yd=1,a.cg=a.zb,a.dg=a.tc),a.zh=a.Xc.createImageData(a.cg,a.dg),a.kf=window.document.createElement("canvas"),a.kf.width=a.cg,a.kf.height=a.dg,a.mf=a.kf.getContext("2d"),a.ik=a.jk=0,a.yi=a.wd,a.zi=a.Wd, +b=a.wd-a.zb*a.xd,d=a.Wd-a.tc*a.yd,0>1,a.yi-=b),0>1,a.zi-=d),b||d)&&(a.Xc.fillStyle=a.Yf.style.backgroundColor,a.Xc.fillRect(0,0,a.wd,a.Wd));!1!==c?sc(a,!0):si(a,!0)}return!0}function ni(a,b,c,d){b=(b+c*a.width)*d.length;a.data[b]=d[0];a.data[b+1]=d[1];a.data[b+2]=d[2];a.data[b+3]=d[3]}function si(a,b){var c;if(b){if(c=a.Dh,void 0===a.gc||a.gc.length!=c)a.gc=Array(c)}else{if(void 0===a.gc)return;c=a.gc.length}for(var d=0;d>8;d=g&15;var h=a.Ld[a.Qb];h.Mf&&(d=h.Mf[d]);var r=g>>4&15;h.Mf&&(r=h.Mf[r]);e?(b*=h.oc,c*=h.pc,e.fillStyle=h.af[r],e.fillRect(b,c,h.oc,h.pc)):(b=b*a.xd+a.ik,c=c*a.yd+a.jk,a.Xc.fillStyle=h.af[r],a.Xc.fillRect(b,c,a.xd,a.yd));g&256&&(r=(f&15)*h.oc,f=(f>>4)*h.pc,e?e.drawImage(h.fi[d],r,f,h.oc,h.pc,b,c,h.oc,h.pc):a.Xc.drawImage(h.fi[d],r,f,h.oc,h.pc,b,c,a.xd,a.yd));g&512&&(f=a.Km,g=a.Hk,e?(a.Vd&&a.Vd!==h.pc&&(f=Math.floor(f*h.pc/a.Vd),g=Math.floor(g*h.pc/a.Vd)), +e.fillStyle=h.af[d],e.fillRect(b,c+f,h.oc,g)):(a.Vd&&a.Vd!==a.yd&&(f=Math.floor(f*a.yd/a.Vd),g=Math.floor(g*a.yd/a.Vd)),a.Xc.fillStyle=h.af[d],a.Xc.fillRect(b,c+f,a.xd,g)))} +function sc(a,b){if(a.ea.Zb){var c=!1;a.Ea&&(a.Ea===a.ga?a.ga.Ke&32&&(c=!0):a.Ea.Bc&8&&(c=!0));if(c||b){if(b)si(a,!0);else if(void 0===a.gc)return;var d=!1;!(b||++a.Tm&15)&&0<=a.Ae&&(a.Ae++,d=!0);var e=0,f=a.il,c=a.Ea.Ta,g=c+a.Ea.Kb,h=(a.Ea.nc[12]<<8)+a.Ea.nc[13];a.Qb&&(h<<=1);var c=c+h,r=a.si;c+r>g&&(r=g-c,0>r&&(r=0));g=c+r;if(h=!b){for(var h=a.ja,t=!0,B=c>>>h.Ra;0a.Kc)return;e=a.Kc;f= +e+1}}if(a.Qb){if(a.Ld[a.Qb]){d=0;h=a.ze=0;r=1048575;a.Ea.Bc&32&&(h=32768,r&=~h,a.Ae&2||(r&=-65537));for(c+=e<<1;c>8|(I&255)<<8;H=h;var Pa=16;B>=r))>>(Pa-=r);ni(a.zh,B++,L,t[qc])}B>ba&&(ba=B);L=Ca&&(Ca=L+1)}e+=2;g++;if(B>=a.zb){B=0;L+=2;if(L>a.tc)break;L==a.tc&&(L=1,e=c+a.Gk)}}Ufa;fa++)Ca=Ph[ba&-2139062144]||0,ni(a.zh,h++,r,g[Ca]),ba<<=1;h>B&&(B=h);r=U&&(U=r+1)}e++;if(h>=a.zb&&(h=0,++r>a.tc))break}t>2),a=this.ga.fk&-17|(this.Vg&1<e&&(e=0);e%b.cj>b.xo&&(c|=1);e%=b.ll;e>b.zo&&(c|=8);b.jj=d-e;b===a.ga?(c|=b.Ig&48^48,b.Xd=!1):c=(b.Ig^=9)|240;return b.Ig=c} +var $h={948:Y.prototype.Yn,949:Y.prototype.Xn,952:Y.prototype.Zn,954:Y.prototype.$n,980:Y.prototype.Gn,981:Y.prototype.Fn,984:Y.prototype.Hn,985:Y.prototype.En,986:Y.prototype.In},ai={948:Y.prototype.kp,949:Y.prototype.jp,952:Y.prototype.lp,980:Y.prototype.Uo,981:Y.prototype.To,984:Y.prototype.Vo,985:Y.prototype.So},bi={960:Y.prototype.dl,961:Y.prototype.dl,962:Y.prototype.lo,964:Y.prototype.ko,965:Y.prototype.jo,970:Y.prototype.Rn,972:Y.prototype.Qn,974:Y.prototype.Pn,975:Y.prototype.On},ci={954:Y.prototype.om, +960:Y.prototype.nm,961:Y.prototype.nm,962:Y.prototype.np,964:Y.prototype.up,965:Y.prototype.tp,970:Y.prototype.fp,972:Y.prototype.ep,974:Y.prototype.dp,975:Y.prototype.cp,986:Y.prototype.om}; za(function(){for(var a=Ta(window.document,"pcjs","video"),b=0;bMissing <canvas> support; try a new web browser.";break}e.setAttribute("class","pcjs-canvas");e.setAttribute("width",d.screenWidth);e.setAttribute("height",d.screenHeight);e.style.backgroundColor=d.screenColor;e.style.height="auto";0<=(window?window.navigator.userAgent:"").indexOf("MSIE")&&(c.onresize=function(a,b,c,d){return function(){b.style.height= (a.clientWidth*d/c|0)+"px"}}(c,e,d.screenWidth,d.screenHeight),c.onresize());c.appendChild(e);var f=window.document.createElement("textarea");ua("iOS")&&(f.setAttribute("autocapitalize","off"),f.setAttribute("autocorrect","off"));c.appendChild(f);var g=e.getContext("2d"),d=new Y(d,e,g,f,c);Sa(d,c)}}); -function wi(a){this.Zk=a.adapter;switch(this.Zk){case 1:this.Wj=1016;this.sg=4;break;case 2:this.Wj=760;this.sg=3;break;default:m("Unrecognized serial adapter #"+this.Zk);return}this.Td=null;n.call(this,"SerialPort",a,wi);var b=a.binding,c;a=xi;b&&(void 0===c&&(c="Panel"),(c=Oa(c,this.id))&&(b=c.oa[b])&&this.Eb(null,a,b))}La(n,wi);var xi="buffer";k=wi.prototype;k.uk=function(a,b){return a==this.xh?(this.be=b,this):null}; -k.Eb=function(a,b,c){var d=this;switch(b){case xi:return this.oa[b]=this.Td=c,c.onkeydown=function(a){a=a||window.event;var b=a.keyCode;8===b&&(a.preventDefault&&a.preventDefault(),yi(d,[b]))},c.onkeypress=function(a){a=a||window.event;yi(d,[a.which||a.keyCode])},!0}return!1};k.zc=function(a,b,c,d){this.ja=b;this.U=c;this.Xa=d;this.ca=bb(a,"ChipSet");Ib(b,this,zi,this.Wj);Kb(b,this,Ai,this.Wj);p(this)};k.bc=function(a,b){if(!b)if(!a||!this.restore)this.reset();else if(!this.restore(a))return!1;return!0}; -k.ac=function(a){return a&&this.save?this.save():!0};k.reset=function(){this.$d()};k.save=function(){var a=new Pd(this),b=0,c=[];c[b++]=this.ni;c[b++]=this.Ak;c[b++]=this.Xe;c[b++]=this.Vg;c[b++]=this.Od;c[b++]=this.xe;c[b++]=this.dd;c[b++]=this.Ec;c[b++]=this.yk;c[b]=this.Nf;a.set(0,c);return a.data()};k.restore=function(a){return this.$d(a[0])}; -k.$d=function(a){var b=0;void 0===a&&(a=[0,0,384,0,1,0,0,96,48,[]]);this.ni=a[b++];this.Ak=a[b++];this.Xe=a[b++];this.Vg=a[b++];this.Od=a[b++];this.xe=a[b++];this.dd=a[b++];this.Ec=a[b++];this.yk=a[b++];this.Nf=a[b];return!0};function yi(a,b){a.Nf=a.Nf.concat(b);Bi(a)}function Bi(a){0>8:this.Vg};k.Sn=function(){return this.Od};k.Tn=function(){return this.xe};k.Vn=function(){return this.dd};k.Un=function(){return this.Ec};k.ao=function(){return this.yk}; -k.up=function(a,b){if(this.xe&128)this.Xe=this.Xe&-256|b;else{this.Ak=b;this.Ec&=-97;var c;this.Td?(13!=b&&(8==b?this.Td.value=this.Td.value.slice(0,-1):(this.Td.value+=String.fromCharCode(b),this.Td.scrollTop=this.Td.scrollHeight)),c=!0):c=!1;c&&(this.Ec|=96)}};k.fp=function(a,b){this.xe&128?this.Xe=this.Xe&255|b<<8:this.Vg=b};k.gp=function(a,b){this.xe=b}; -k.hp=function(a,b){var c=this.dd;this.dd=b;if(this.be&&(c^b)&3){var c=this.be,d=this.dd,e=3==(d&3);if(e){if(!c.Yc){var f=!1;c.dd&2||(c.reset(),c.cc("serial mouse reset"),f=!0);c.dd&1||(c.cc("serial mouse ID requested"),f=!0);f&&(yi(c.ag,[77,77]),c.cc("serial mouse ID sent"));Ci(c,c.Da);c.setActive(e)}}else c.Yc&&(c.cc("serial mouse inactive"),Di(c.Da),c.setActive(e));c.dd=d}}; -var zi={0:wi.prototype.ho,1:wi.prototype.Rn,2:wi.prototype.Sn,3:wi.prototype.Tn,4:wi.prototype.Vn,5:wi.prototype.Un,6:wi.prototype.ao},Ai={0:wi.prototype.up,1:wi.prototype.fp,3:wi.prototype.gp,4:wi.prototype.hp};za(function(){for(var a=Ta(window.document,"pcjs","serial"),b=0;bthis.Id||0>this.Jd)this.Id=a.clientX,this.Jd=a.clientY;this.ph?(this.Ye=a.movementX||a.mozMovementX||a.webkitMovementX||0,this.Ze=a.movementY||a.mozMovementY||a.webkitMovementY||0):(this.Ye=a.clientX-this.Id,this.Ze=a.clientY-this.Jd);(this.Ye||this.Ze)&&Fi(this);this.Id=a.clientX;this.Jd=a.clientY}}; -k.ti=function(a,b){if(this.Yc&&this.U&&this.U.ea.Ib){var c;!(c=!1!==this.ph)&&(c=this.video)&&(c=this.video,c=c.fn?c.Le(!0):!1);c||(this.ph=null);switch(a){case 0:this.kh!=b&&(this.kh=b,Fi(this));break;case 2:this.lh!=b&&(this.lh=b,Fi(this))}}};function Fi(a){yi(a.ag,[64|(a.kh?32:0)|(a.lh?16:0)|(a.Ze&192)>>4|(a.Ye&192)>>6,a.Ye&63,a.Ze&63]);a.Ye=a.Ze=0}za(function(){for(var a=Ta(window.document,"pcjs","mouse"),b=0;b>8:this.Wg};k.Tn=function(){return this.Od};k.Un=function(){return this.xe};k.Wn=function(){return this.ed};k.Vn=function(){return this.Fc};k.bo=function(){return this.zk}; +k.vp=function(a,b){if(this.xe&128)this.Xe=this.Xe&-256|b;else{this.Bk=b;this.Fc&=-97;var c;this.Td?(13!=b&&(8==b?this.Td.value=this.Td.value.slice(0,-1):(this.Td.value+=String.fromCharCode(b),this.Td.scrollTop=this.Td.scrollHeight)),c=!0):c=!1;c&&(this.Fc|=96)}};k.gp=function(a,b){this.xe&128?this.Xe=this.Xe&255|b<<8:this.Wg=b};k.hp=function(a,b){this.xe=b}; +k.ip=function(a,b){var c=this.ed;this.ed=b;if(this.be&&(c^b)&3){var c=this.be,d=this.ed,e=3==(d&3);if(e){if(!c.Zc){var f=!1;c.ed&2||(c.reset(),c.cc("serial mouse reset"),f=!0);c.ed&1||(c.cc("serial mouse ID requested"),f=!0);f&&(yi(c.ag,[77,77]),c.cc("serial mouse ID sent"));Ci(c,c.Da);c.setActive(e)}}else c.Zc&&(c.cc("serial mouse inactive"),Di(c.Da),c.setActive(e));c.ed=d}}; +var zi={0:wi.prototype.io,1:wi.prototype.Sn,2:wi.prototype.Tn,3:wi.prototype.Un,4:wi.prototype.Wn,5:wi.prototype.Vn,6:wi.prototype.bo},Ai={0:wi.prototype.vp,1:wi.prototype.gp,3:wi.prototype.hp,4:wi.prototype.ip};za(function(){for(var a=Ta(window.document,"pcjs","serial"),b=0;bthis.Id||0>this.Jd)this.Id=a.clientX,this.Jd=a.clientY;this.qh?(this.Ye=a.movementX||a.mozMovementX||a.webkitMovementX||0,this.Ze=a.movementY||a.mozMovementY||a.webkitMovementY||0):(this.Ye=a.clientX-this.Id,this.Ze=a.clientY-this.Jd);(this.Ye||this.Ze)&&Fi(this);this.Id=a.clientX;this.Jd=a.clientY}}; +k.vi=function(a,b){if(this.Zc&&this.U&&this.U.ea.Ib){var c;!(c=!1!==this.qh)&&(c=this.video)&&(c=this.video,c=c.gn?c.Le(!0):!1);c||(this.qh=null);switch(a){case 0:this.lh!=b&&(this.lh=b,Fi(this));break;case 2:this.mh!=b&&(this.mh=b,Fi(this))}}};function Fi(a){yi(a.ag,[64|(a.lh?32:0)|(a.mh?16:0)|(a.Ze&192)>>4|(a.Ye&192)>>6,a.Ye&63,a.Ze&63]);a.Ye=a.Ze=0}za(function(){for(var a=Ta(window.document,"pcjs","mouse"),b=0;b>2;var e=d=0,a=new DataView(a,0,c);g.Sa=Array(g.ob);for(c=0;cb.indexOf("/api/v1/dump")&&(a=ha(b),"json"==a?f=encodeURI(b):"demandrw"==this.mode||"demandro"==this.mode?(f=Ki(this,b),this.qh=!0):(c="path",d="&mbhd=10",!b.indexOf("http:")||!b.indexOf("ftp:")||0<="dsk ima img 360 720 12 144".split(" ").indexOf(a)?(c="disk",d="&mbhd=0"):-1!==b.indexOf("/",b.length-1)&&(c= -"dir"),f=oa()+"/api/v1/dump?"+c+"="+encodeURIComponent(b)+(this.sf?"":d)+"&format=json")),na(f,!0,null,this,this.an,b)}; -k.an=function(a,b,c,d){var e=null;this.tf=!1;var f=0>c&&this.ya&&!this.ya.ea.Zb;if(this.qh)c?this.V.wa('Unable to connect to disk "'+d+'" (error '+c+": "+b+")",f):(this.zd=!0,e=this);else if(c)this.V.wa('Unable to load disk "'+this.pd+'" (error '+c+")",f);else try{if(0g&&0b.indexOf("0x")&& +k.load=function(a,b,c,d,e){var f=b;if(!this.Je)if(this.qd=a,this.Se=b,this.Je=d,this.Ym=e||this.V,c){var g=this,h=new FileReader;h.onload=function(){var a=h.result,b,c=a?a.byteLength:0,d=ca[c];if(d){g.ob=d[0];g.pb=d[1];g.sb=d[2];g.cb=512;b=g.cb>>2;var e=d=0,a=new DataView(a,0,c);g.Sa=Array(g.ob);for(c=0;cb.indexOf("/api/v1/dump")&&(a=ha(b),"json"==a?f=encodeURI(b):"demandrw"==this.mode||"demandro"==this.mode?(f=Ki(this,b),this.rh=!0):(c="path",d="&mbhd=10",!b.indexOf("http:")||!b.indexOf("ftp:")||0<="dsk ima img 360 720 12 144".split(" ").indexOf(a)?(c="disk",d="&mbhd=0"):-1!==b.indexOf("/",b.length-1)&&(c= +"dir"),f=oa()+"/api/v1/dump?"+c+"="+encodeURIComponent(b)+(this.sf?"":d)+"&format=json")),na(f,!0,null,this,this.bn,b)}; +k.bn=function(a,b,c,d){var e=null;this.tf=!1;var f=0>c&&this.ya&&!this.ya.ea.Zb;if(this.rh)c?this.V.va('Unable to connect to disk "'+d+'" (error '+c+": "+b+")",f):(this.zd=!0,e=this);else if(c)this.V.va('Unable to load disk "'+this.qd+'" (error '+c+")",f);else try{if(0g&&0b.indexOf("0x")&& '["'!=b.substr(0,2)?JSON.parse(b.replace(/([a-z]+):/gm,'"$1":').replace(/\/\/[^\n]*/gm,"")):eval("("+b+")");if(h.length)if(1==h.length)m(h[0]);else{this.ob=h.length;this.pb=h[0].length;this.sb=h[0][0].length;var r=h[0][0][0];this.cb=r&&r.length||512;for(b=a=0;b>2,B=r.pattern;void 0===B&&(B=r.pattern=0);var I=r.data;if(void 0===I){var H=r.bytes;if(void 0!==H&&H.length){for(var f= -t<<2,L=H.length;Lb&&(b=0);2E3b&&(b=0);2E3>2,e=Array(d),f=0;f>2,e=a.data;a=a.pattern;for(var f=0;f>8&255;c[d++]=g>>16&255;c[d++]=g>>24&255}return c}function Pi(a,b){var c=-1;if(a&&b>2,c=(d>((b&3)<<3)&255;return c} -k.write=function(a,b,c){if(this.tf)return!1;if(b>2;b=(b&3)<<3;for(var g=d.length;g<=f;g++)d[g]=e;a.wc?f=a.Zc+a.wc&&(a.wc+=f-(a.Zc+a.wc)+1):(a.Zc=f,a.wc=1);d[f]=d[f]&~(255<>2;b=(b&3)<<3;for(var g=d.length;g<=f;g++)d[g]=e;a.xc?f=a.$c+a.xc&&(a.xc+=f-(a.$c+a.xc)+1):(a.$c=f,a.xc=1);d[f]=d[f]&~(255<=this.Sa.length||r>=this.Sa[h].length||t>=this.Sa[h][r].length){c="sector (CHS="+h+":"+r+":"+t+") out of range ("+ -b+" changes applied)";b=-1;break}if(this.tf){c="unable to modify write-protected disk";b=-1;break}e=g[f++];f=g[f++];g=e+f.length;if(h=this.Sa[h][r][t]){for(r=h.data.length;rb&&-2!=b&&this.V.wa("Unable to restore disk '"+this.pd+": "+c);return b}; +b+" changes applied)";b=-1;break}if(this.tf){c="unable to modify write-protected disk";b=-1;break}e=g[f++];f=g[f++];g=e+f.length;if(h=this.Sa[h][r][t]){for(r=h.data.length;rb&&-2!=b&&this.V.va("Unable to restore disk '"+this.qd+": "+c);return b}; k.toJSON=function(){var a=JSON.stringify(this.Sa),a=a.replace(/,"length":512/gm,"").replace(/,"pattern":0/gm,""),a=a.replace(/"(sector|length|data|pattern)":/gm,"$1:"),a=a.replace(/,"[^"]*":([0-9]+|true|false)/gm,"");return a=a.replace(/(sector|length|data|pattern):/gm,'"$1":')}; -function Qi(a){n.call(this,"FDC",a,Qi);this.dmaRead=this.zi;this.dmaWrite=this.Ai;this.dmaFormat=this.Ym;this.Be=null;if(a.autoMount&&(this.Be=a.autoMount,"string"==typeof this.Be))try{this.Be=eval("("+a.autoMount+")")}catch(b){m("FDC auto-mount error: "+b.message+" ("+a.autoMount+")"),this.Be=null}this.tc=[];this.Nk=!ua("Mobi")&&window&&"FileReader"in window}La(n,Qi);l={};aa={}; -var Ri={3:{vd:3,Sd:0,name:aa.pq},4:{vd:2,Sd:1,name:aa.nq},5:{vd:9,Sd:7,name:aa.Bq},6:{vd:9,Sd:7,name:aa.hq},7:{vd:2,Sd:0,name:aa.jq},8:{vd:1,Sd:2,name:aa.oq},10:{vd:2,Sd:7,name:aa.iq},13:{vd:6,Sd:7,name:aa.Up},15:{vd:3,Sd:0,name:aa.mq}};k=Qi.prototype; +function Qi(a){n.call(this,"FDC",a,Qi);this.dmaRead=this.Ai;this.dmaWrite=this.Bi;this.dmaFormat=this.Zm;this.Be=null;if(a.autoMount&&(this.Be=a.autoMount,"string"==typeof this.Be))try{this.Be=eval("("+a.autoMount+")")}catch(b){m("FDC auto-mount error: "+b.message+" ("+a.autoMount+")"),this.Be=null}this.uc=[];this.Ok=!ua("Mobi")&&window&&"FileReader"in window}La(n,Qi);l={};aa={}; +var Ri={3:{vd:3,Sd:0,name:aa.qq},4:{vd:2,Sd:1,name:aa.oq},5:{vd:9,Sd:7,name:aa.Cq},6:{vd:9,Sd:7,name:aa.iq},7:{vd:2,Sd:0,name:aa.kq},8:{vd:1,Sd:2,name:aa.pq},10:{vd:2,Sd:7,name:aa.jq},13:{vd:6,Sd:7,name:aa.Vp},15:{vd:3,Sd:0,name:aa.nq}};k=Qi.prototype; k.Eb=function(a,b,c){var d=this;switch(b){case "listDisks":return this.oa[b]=c,c.onchange=function(){var a=d.oa.descDisk,b=c.options[c.selectedIndex];if(a&&b){var g={};if(b=b.getAttribute("data-value"))try{g=eval("({"+b+"})")}catch(h){m("FDC option error: "+h.message)}b=g.desc;void 0===b&&(b="");g=g.href;void 0!==g&&(b=''+b+"");a.innerHTML=b}},!0;case "descDisk":case "listDrives":return this.oa[b]=c,c.onchange=function(){var a;a=c.value;var b=10,g;if(a){b||(b=16); -if("$"==a.charAt(0))b=16,a=a.substr(1);else if("0x"==a.substr(0,2))b=16,a=a.substr(2);else{var h=a.charAt(a.length-1).toLowerCase();"h"==h?(b=16,h=null):"."==h&&(b=10,h=null);null===h&&(a=a.substr(0,a.length-1))}var r,h=a;(b&&10!=b?16==b?null!==h.match(/^[0-9a-f]+$/i):1:null!==h.match(/^[0-9]+$/))&&!isNaN(r=parseInt(a,b))&&(g=r|0)}a=g;null!=a&&Si(d,a)},!0;case "loadDrive":return this.oa[b]=c,c.onclick=function(){var a=d.oa.listDisks;a&&Ti(d,a.options[a.selectedIndex].text,a.value)},!0;case "mountDrive":return this.Nk? -(this.oa[b]=c,c.addEventListener("change",function(){var a=c.children[0];a.children[1].disabled=!a.children[0].files.length}),c.onsubmit=function(a){if(a=a.currentTarget[1].files[0]){var b=a.name;Ti(d,ga(b,!0),b,a)}return!1}):c.parentNode.removeChild(c),!0}return!1};k.zc=function(a,b,c,d){this.ja=b;this.U=c;this.Xa=d;this.ya=a;this.ca=bb(a,"ChipSet");this.Ad();Ib(b,this,Ui);Kb(b,this,Vi);this.Nk&&Wi(this,"Local Disk","?");Wi(this,"Remote Disk","??");this.Rf()||p(this)}; -k.bc=function(a,b){if(!b){if(!a||!this.restore){if(this.reset(),this.ya.Li){this.tc=[];for(var c=0;ca.qa.restore(g)&&(e=!1);e&&a.qa&&void 0!==a.Na&&(a.Ja=a.qa.seek(a.qb,a.La,a.$a));return e};k.ck=function(){for(var a=0,b=[],c=0;ca.ob||f[1]>a.pb)&&(this.wa('Diskette "'+c+'" too large for drive '+String.fromCharCode(65+a.bb)),b=null);b?(a.qa=b,a.xm=c,a.Te=d,$i(this,c,d,b),f=b.info(),this.je|=128,this.wa('Mounted diskette "'+c+'" in drive '+String.fromCharCode(65+a.bb),a.He||e),a.Gh=f[0],a.qg=f[1],a.rg=f[2]):a.qf=!1;a.He&&(a.He=!1,--this.ye||p(this));Si(this,a.bb)}; +if("$"==a.charAt(0))b=16,a=a.substr(1);else if("0x"==a.substr(0,2))b=16,a=a.substr(2);else{var h=a.charAt(a.length-1).toLowerCase();"h"==h?(b=16,h=null):"."==h&&(b=10,h=null);null===h&&(a=a.substr(0,a.length-1))}var r,h=a;(b&&10!=b?16==b?null!==h.match(/^[0-9a-f]+$/i):1:null!==h.match(/^[0-9]+$/))&&!isNaN(r=parseInt(a,b))&&(g=r|0)}a=g;null!=a&&Si(d,a)},!0;case "loadDrive":return this.oa[b]=c,c.onclick=function(){var a=d.oa.listDisks;a&&Ti(d,a.options[a.selectedIndex].text,a.value)},!0;case "mountDrive":return this.Ok? +(this.oa[b]=c,c.addEventListener("change",function(){var a=c.children[0];a.children[1].disabled=!a.children[0].files.length}),c.onsubmit=function(a){if(a=a.currentTarget[1].files[0]){var b=a.name;Ti(d,ga(b,!0),b,a)}return!1}):c.parentNode.removeChild(c),!0}return!1};k.Ac=function(a,b,c,d){this.ja=b;this.U=c;this.Xa=d;this.ya=a;this.ca=bb(a,"ChipSet");this.Ad();Ib(b,this,Ui);Kb(b,this,Vi);this.Ok&&Wi(this,"Local Disk","?");Wi(this,"Remote Disk","??");this.Rf()||p(this)}; +k.bc=function(a,b){if(!b){if(!a||!this.restore){if(this.reset(),this.ya.Mi){this.uc=[];for(var c=0;ca.qa.restore(g)&&(e=!1);e&&a.qa&&void 0!==a.Na&&(a.Ja=a.qa.seek(a.qb,a.La,a.$a));return e};k.dk=function(){for(var a=0,b=[],c=0;ca.ob||f[1]>a.pb)&&(this.va('Diskette "'+c+'" too large for drive '+String.fromCharCode(65+a.bb)),b=null);b?(a.qa=b,a.ym=c,a.Te=d,$i(this,c,d,b),f=b.info(),this.je|=128,this.va('Mounted diskette "'+c+'" in drive '+String.fromCharCode(65+a.bb),a.He||e),a.Hh=f[0],a.rg=f[1],a.sg=f[2]):a.qf=!1;a.He&&(a.He=!1,--this.ye||p(this));Si(this,a.bb)}; function Wi(a,b,c){if(a=a.oa.listDisks){for(var d=0;d=this.fb&&(this.ra&=-81,this.ub=this.fb=0);return a}; -k.$o=function(a,b){this.fb=Ri[c].vd){var d=!1;this.ub=0;var c=this.Ia(),e,f,g,h,r,t=c&31;switch(t){case 3:this.Ia(l.qq);this.Ia(l.Xp);this.Ob();break;case 4:f=this.Ia(l.Jf);this.bb=f&3;e=this.xa[this.bb];this.Ob();this.dc((e.Ya&-16777216)>>>24,l.tq);break;case 5:case 6:f=this.Ia(l.Jf);d=f>>2&1;this.bb=f&3;e=this.xa[this.bb];e.La=d;f=e.qb=this.Ia(l.jk);g=this.Ia(l.kk);h=e.$a=this.Ia(l.mk);r=this.Ia(l.ci);e.nb=128<< -r;e.Pd=this.Ia(l.Sp);this.Ia(l.Lm);this.Ia(l.Rp);6==t?(t=e,t.Ya=72,t.qa&&(t.Ja=null,t.Ya=0,this.ca&&(Jg(this.ca,2,this,"dmaRead",t),Fg(this.ca,2)))):(t=e,t.Ya=72,t.qa&&(t.qa.tf?t.Ya=576:(t.Ja=null,t.Ya=0,this.ca&&(Jg(this.ca,2,this,"dmaWrite",t),Fg(this.ca,2)))));aj(this,e,c,d,f,g,h,r);d=!0;break;case 7:f=this.Ia(l.Jf);this.bb=f&3;e=this.xa[this.bb];e.qb=e.Nd=0;e.Ya=268435488;this.Ob();d=!0;break;case 8:e=this.xa[this.bb];e.La=0;this.Ob();this.dc(e.bb|e.La<<2|e.Ya&255,l.Nm);this.dc(e.qb,l.fq);this.bb= -this.bb+1&3;break;case 10:f=this.Ia(l.Jf);d=f>>2&1;this.bb=f&3;e=this.xa[this.bb];f=e.qb;g=e.La=d;h=e.$a=1;r=0;e.Ya=0;e.qa&&(e.Ja=e.qa.seek(e.qb,e.La,e.$a))?r=e.Ja.length:e.Ya=72;aj(this,e,c,d,f,g,h,r);d=!0;break;case 13:f=this.Ia(l.Jf);d=f>>2&1;this.bb=f&3;e=this.xa[this.bb];f=e.qb;g=e.La=d;h=1;r=this.Ia(l.ci);e.nb=128<>2&1,f=this.Ia(l.cq),e.qb+=f-e.Nd,0>e.qb&&(e.qb=0),e.qb>=e.ob&&(e.qb=e.ob-1),e.Nd=f,e.Ya=32,e.qb||(e.Ya|=268435456),this.Ob(),d=!0}0>>8,l.rq);a.dc((b.Ya&16711680)>>>16,l.sq);var r=0;if(e!=b.qb||f!=b.La)r=g=1;c&128&&(f^=r,d||(r=0));a.dc(e+r,l.jk);a.dc(f,l.kk);a.dc(g,l.mk);a.dc(h,l.ci)}k.Ia=function(){var a=this.ec[this.ub];this.ub++;return a};k.Ob=function(){this.ub=this.fb=0};k.dc=function(a){this.ec[this.fb++]=a};k.zi=function(a,b,c){void 0===b||0>b?this.Cb(a,c):c(-1,!1)};k.Ai=function(a,b){return void 0!==b&&0<=b?this.Fb(a,b):-1}; -k.Ym=function(a,b){return void 0!==b&&0<=b?this.gk(a,b):-1};k.Cb=function(a,b){var c=-1,d=null,e=0;if(!a.Ya&&a.qa){do{if(a.Ja&&(e=a.Na,0<=(c=Pi(a.Ja,a.Na++)))){d=a.Ja;break}a.Ja=a.qa.seek(a.qb,a.La,a.$a);if(!a.Ja){a.Ya=1088;break}a.Na=0;this.Qf(a)}while(1)}b(c,!1,d,e)};k.Fb=function(a,b){if(a.Ya||!a.qa)return-1;do{if(a.Ja&&a.qa.write(a.Ja,a.Na++,b))break;a.Ja=a.qa.seek(a.qb,a.La,a.$a);if(!a.Ja){a.Ya=8256;b=-1;break}a.Na=0;this.Qf(a)}while(1);return b}; -k.Qf=function(a){a.$a++;a.$a>=a.rg+1&&(a.$a=1,a.La++,a.La>=a.qg&&(a.La=0,a.qb++))};k.gk=function(a,b){if(a.Ya)return-1;a.Cc[a.lf++]=b;if(a.lf==a.Cc.length){a.qb=a.Cc[0];a.La=a.Cc[1];a.$a=a.Cc[2];a.nb=128<this.Fb(a,a.xk))return-1;a.eh++}a.eh>=a.Pd&&(b=-1);return b};var Ui={1012:Qi.prototype.Mn,1013:Qi.prototype.Kn,1015:Qi.prototype.Ln},Vi={1010:Qi.prototype.ap,1013:Qi.prototype.$o,1015:Qi.prototype.Zo}; -za(function(){for(var a=Ta(window.document,"pcjs","fdc"),b=0;b=e&&(this.Cg|=(f.type&3)<<(1-e<<1))}return d}; -k.ak=function(){var a=0,b=[];this.Ge?(b[a++]=this.ie,b[a++]=this.wm,b[a++]=this.ke,b[a++]=this.Th,b[a++]=this.Rh,b[a++]=this.Qh,b[a++]=this.Ff,b[a++]=this.ra,b[a++]=this.Yj,b[a++]=this.Sh):(b[a++]=this.Cg,b[a++]=this.ra,b[a++]=this.ec,b[a++]=this.ub,b[a++]=this.fb,b[a++]=this.vm,b[a++]=this.um,b[a++]=this.tm,b[a++]=this.wf);b[a]=this.ck();return b}; -k.Vi=function(a,b,c,d,e){var f=0,g=!0;void 0===d&&(d=[0,0,!1,Array(8)]);b.bb=a;b.errorCode=d[f++];b.Bm=d[f++];b.sf=d[f++];b.ef=d[f++];b.ff=d[f++];b.La=d[f++];b.pb=d[f++];b.pe=d[f++];b.$a=d[f++];b.Pd=d[f++];b.nb=d[f++];b.ah=this.Ge?0:1;b.name=c.name;void 0===b.name&&(b.name="Hard Drive");b.path=c.path;b.mode=c.mode||(b.path?"preload":"local");"demandro"!=b.mode&&"demandrw"!=b.mode||this.Zd()||(b.mode="local");b.type=c.type;if(void 0===b.type||void 0===bj[this.hg][b.type])b.type=this.qn;c=bj[this.hg][b.type]; -b.sb=c[2]||17;b.cb=c[3]||512;if(e&&this.ca&&(e=this.ca,c=b.type,e.ba)){var h=e.ba[18],h=a?h&240|c:h&15|c<<4;e.ba&&(e.ba[18]=h,kg(e))}void 0===b.qa&&(b.qa=null,this.wa("Type "+b.type+' "'+b.name+'" is fixed disk '+a,!0));gj(this,b);b.Na=d[f++];b.Ja=null;b.qa&&(a=d[f],void 0!==a&&0>b.qa.restore(a)&&(g=!1),g&&void 0!==b.Na&&(b.Ja=b.qa.seek(b.pe,b.La,b.$a+b.ah)));return g};k.ck=function(){for(var a=0,b=[],c=0;c=this.fb&&(this.ub=this.fb=0,this.ra&=-15);return a};k.wp=function(a,b){this.fb=c&&(this.ra|=2,this.ra&=-2,hj(this))}; -k.oo=function(){var a=this.ra;this.ub=this.Ma.cb?(b.ra=136,this.Cb(this.Ma,function(a){0<=a?(ij(b),b.ra=80):(b.ra=1,b.ie=16)},!1)):this.ra=80)}return a}; -k.Lo=function(a,b){this.Ma&&this.Ma.nb>=this.Ma.cb&&(0>this.Fb(this.Ma,b)?(this.ra=1,this.ie=16):1!=this.Ma.Na&&this.Ma.Na==this.Ma.cb&&(this.Ma.nb-=this.Ma.cb,this.ke=this.ke-1&255,ij(this),this.ra=80,this.Ma.nb>=this.Ma.cb&&(this.ra|=8)))};k.zn=function(){return this.ie};k.Qo=function(a,b){this.wm=b};k.An=function(){return this.ke};k.Oo=function(a,b){this.ke=b};k.Bn=function(){return this.Th};k.Po=function(a,b){this.Th=b};k.wn=function(){return this.Rh};k.Ko=function(a,b){this.Rh=b};k.vn=function(){return this.Qh}; -k.Jo=function(a,b){this.Qh=b};k.yn=function(){return this.Ff};k.Mo=function(a,b){this.Ff=b;this.ra=this.xa[this.Ff&16?1:0]?this.ra|64:this.ra&-65};k.Cn=function(){return this.ra};k.Io=function(a,b){this.Yj=b;this.ca&&Qg(this.ca,14);jj(this)};k.No=function(a,b){this.Sh&4&&!(b&4)&&(this.ie=1);this.Sh=b}; -function jj(a){var b=!1,c=a.Yj,d=a.Ff&16?1:0,e=a.Ff&15,f=a.Rh|(a.Qh&3)<<8,g=a.Th,h=a.ke||256;a.Ma=null;a.ie=0;a.ra=80;(d=a.xa[d])?(d.pe=f,d.La=e,d.$a=g,d.nb=h*d.cb,c=144<=c?c:c&240,d.Ja=null,d.Na=0,d.errorCode=0,a.Ma=d):c=-1;switch(c&240){case 32:a.ra=136;a.Cb(d,function(b){0<=b&&a.ca?(ij(a),a.ra=80):(a.ra=1,a.ie=16)},!1);break;case 48:a.ra=8;break;case 16:b=!0;break;case 64:b=!0;break;case 144:a.ie=1;b=!0;break;case 145:d.pb=e+1,d.sb=h,b=!0}b&&ij(a)} -function ij(a){!a.ca||a.Sh&2||Pg(a.ca,14,120)} -function hj(a){a.ub=0;var b=a.Ia(),c=a.Ia(),d=c&32,e=d>>5,f=c&31,g=a.Ia(),h=a.Ia(),r=g<<2&768|h,t=g&63,B=a.Ia(),I=a.Ia(),H=a.xa[e];H&&(H.pe=r,H.La=f,H.$a=t,H.nb=B*H.cb);switch(b){case 3:a.Ob(H?H.errorCode:4);a.dc(c);a.dc(g);a.dc(h);a.dc(0|d);b=-1;break;case 12:for(c=0;0<=(b=a.Ia());)H&&cb?this.Cb(a,c):c(-1,!1)}; -k.Ai=function(a,b){return void 0!==b&&0<=b?this.Fb(a,b):-1};k.Zm=function(a,b){var c;void 0!==b&&0<=b?(c=b,a.Na=this.fb&&(this.ra&=-81,this.ub=this.fb=0);return a}; +k.ap=function(a,b){this.fb=Ri[c].vd){var d=!1;this.ub=0;var c=this.Ia(),e,f,g,h,r,t=c&31;switch(t){case 3:this.Ia(l.rq);this.Ia(l.Yp);this.Ob();break;case 4:f=this.Ia(l.Jf);this.bb=f&3;e=this.xa[this.bb];this.Ob();this.dc((e.Ya&-16777216)>>>24,l.uq);break;case 5:case 6:f=this.Ia(l.Jf);d=f>>2&1;this.bb=f&3;e=this.xa[this.bb];e.La=d;f=e.qb=this.Ia(l.kk);g=this.Ia(l.lk);h=e.$a=this.Ia(l.nk);r=this.Ia(l.di);e.nb=128<< +r;e.Pd=this.Ia(l.Tp);this.Ia(l.Mm);this.Ia(l.Sp);6==t?(t=e,t.Ya=72,t.qa&&(t.Ja=null,t.Ya=0,this.ca&&(Jg(this.ca,2,this,"dmaRead",t),Fg(this.ca,2)))):(t=e,t.Ya=72,t.qa&&(t.qa.tf?t.Ya=576:(t.Ja=null,t.Ya=0,this.ca&&(Jg(this.ca,2,this,"dmaWrite",t),Fg(this.ca,2)))));aj(this,e,c,d,f,g,h,r);d=!0;break;case 7:f=this.Ia(l.Jf);this.bb=f&3;e=this.xa[this.bb];e.qb=e.Nd=0;e.Ya=268435488;this.Ob();d=!0;break;case 8:e=this.xa[this.bb];e.La=0;this.Ob();this.dc(e.bb|e.La<<2|e.Ya&255,l.Om);this.dc(e.qb,l.gq);this.bb= +this.bb+1&3;break;case 10:f=this.Ia(l.Jf);d=f>>2&1;this.bb=f&3;e=this.xa[this.bb];f=e.qb;g=e.La=d;h=e.$a=1;r=0;e.Ya=0;e.qa&&(e.Ja=e.qa.seek(e.qb,e.La,e.$a))?r=e.Ja.length:e.Ya=72;aj(this,e,c,d,f,g,h,r);d=!0;break;case 13:f=this.Ia(l.Jf);d=f>>2&1;this.bb=f&3;e=this.xa[this.bb];f=e.qb;g=e.La=d;h=1;r=this.Ia(l.di);e.nb=128<>2&1,f=this.Ia(l.dq),e.qb+=f-e.Nd,0>e.qb&&(e.qb=0),e.qb>=e.ob&&(e.qb=e.ob-1),e.Nd=f,e.Ya=32,e.qb||(e.Ya|=268435456),this.Ob(),d=!0}0>>8,l.sq);a.dc((b.Ya&16711680)>>>16,l.tq);var r=0;if(e!=b.qb||f!=b.La)r=g=1;c&128&&(f^=r,d||(r=0));a.dc(e+r,l.kk);a.dc(f,l.lk);a.dc(g,l.nk);a.dc(h,l.di)}k.Ia=function(){var a=this.ec[this.ub];this.ub++;return a};k.Ob=function(){this.ub=this.fb=0};k.dc=function(a){this.ec[this.fb++]=a};k.Ai=function(a,b,c){void 0===b||0>b?this.Cb(a,c):c(-1,!1)};k.Bi=function(a,b){return void 0!==b&&0<=b?this.Fb(a,b):-1}; +k.Zm=function(a,b){return void 0!==b&&0<=b?this.hk(a,b):-1};k.Cb=function(a,b){var c=-1,d=null,e=0;if(!a.Ya&&a.qa){do{if(a.Ja&&(e=a.Na,0<=(c=Pi(a.Ja,a.Na++)))){d=a.Ja;break}a.Ja=a.qa.seek(a.qb,a.La,a.$a);if(!a.Ja){a.Ya=1088;break}a.Na=0;this.Qf(a)}while(1)}b(c,!1,d,e)};k.Fb=function(a,b){if(a.Ya||!a.qa)return-1;do{if(a.Ja&&a.qa.write(a.Ja,a.Na++,b))break;a.Ja=a.qa.seek(a.qb,a.La,a.$a);if(!a.Ja){a.Ya=8256;b=-1;break}a.Na=0;this.Qf(a)}while(1);return b}; +k.Qf=function(a){a.$a++;a.$a>=a.sg+1&&(a.$a=1,a.La++,a.La>=a.rg&&(a.La=0,a.qb++))};k.hk=function(a,b){if(a.Ya)return-1;a.Dc[a.lf++]=b;if(a.lf==a.Dc.length){a.qb=a.Dc[0];a.La=a.Dc[1];a.$a=a.Dc[2];a.nb=128<this.Fb(a,a.yk))return-1;a.fh++}a.fh>=a.Pd&&(b=-1);return b};var Ui={1012:Qi.prototype.Nn,1013:Qi.prototype.Ln,1015:Qi.prototype.Mn},Vi={1010:Qi.prototype.bp,1013:Qi.prototype.ap,1015:Qi.prototype.$o}; +za(function(){for(var a=Ta(window.document,"pcjs","fdc"),b=0;b=e&&(this.Dg|=(f.type&3)<<(1-e<<1))}return d}; +k.bk=function(){var a=0,b=[];this.Ge?(b[a++]=this.ie,b[a++]=this.xm,b[a++]=this.ke,b[a++]=this.Uh,b[a++]=this.Sh,b[a++]=this.Rh,b[a++]=this.Ff,b[a++]=this.ra,b[a++]=this.Zj,b[a++]=this.Th):(b[a++]=this.Dg,b[a++]=this.ra,b[a++]=this.ec,b[a++]=this.ub,b[a++]=this.fb,b[a++]=this.wm,b[a++]=this.vm,b[a++]=this.um,b[a++]=this.wf);b[a]=this.dk();return b}; +k.Wi=function(a,b,c,d,e){var f=0,g=!0;void 0===d&&(d=[0,0,!1,Array(8)]);b.bb=a;b.errorCode=d[f++];b.Cm=d[f++];b.sf=d[f++];b.ef=d[f++];b.ff=d[f++];b.La=d[f++];b.pb=d[f++];b.pe=d[f++];b.$a=d[f++];b.Pd=d[f++];b.nb=d[f++];b.bh=this.Ge?0:1;b.name=c.name;void 0===b.name&&(b.name="Hard Drive");b.path=c.path;b.mode=c.mode||(b.path?"preload":"local");"demandro"!=b.mode&&"demandrw"!=b.mode||this.Zd()||(b.mode="local");b.type=c.type;if(void 0===b.type||void 0===bj[this.ig][b.type])b.type=this.rn;c=bj[this.ig][b.type]; +b.sb=c[2]||17;b.cb=c[3]||512;if(e&&this.ca&&(e=this.ca,c=b.type,e.ba)){var h=e.ba[18],h=a?h&240|c:h&15|c<<4;e.ba&&(e.ba[18]=h,kg(e))}void 0===b.qa&&(b.qa=null,this.va("Type "+b.type+' "'+b.name+'" is fixed disk '+a,!0));gj(this,b);b.Na=d[f++];b.Ja=null;b.qa&&(a=d[f],void 0!==a&&0>b.qa.restore(a)&&(g=!1),g&&void 0!==b.Na&&(b.Ja=b.qa.seek(b.pe,b.La,b.$a+b.bh)));return g};k.dk=function(){for(var a=0,b=[],c=0;c=this.fb&&(this.ub=this.fb=0,this.ra&=-15);return a};k.xp=function(a,b){this.fb=c&&(this.ra|=2,this.ra&=-2,hj(this))}; +k.po=function(){var a=this.ra;this.ub=this.Ma.cb?(b.ra=136,this.Cb(this.Ma,function(a){0<=a?(ij(b),b.ra=80):(b.ra=1,b.ie=16)},!1)):this.ra=80)}return a}; +k.Mo=function(a,b){this.Ma&&this.Ma.nb>=this.Ma.cb&&(0>this.Fb(this.Ma,b)?(this.ra=1,this.ie=16):1!=this.Ma.Na&&this.Ma.Na==this.Ma.cb&&(this.Ma.nb-=this.Ma.cb,this.ke=this.ke-1&255,ij(this),this.ra=80,this.Ma.nb>=this.Ma.cb&&(this.ra|=8)))};k.An=function(){return this.ie};k.Ro=function(a,b){this.xm=b};k.Bn=function(){return this.ke};k.Po=function(a,b){this.ke=b};k.Cn=function(){return this.Uh};k.Qo=function(a,b){this.Uh=b};k.xn=function(){return this.Sh};k.Lo=function(a,b){this.Sh=b};k.wn=function(){return this.Rh}; +k.Ko=function(a,b){this.Rh=b};k.zn=function(){return this.Ff};k.No=function(a,b){this.Ff=b;this.ra=this.xa[this.Ff&16?1:0]?this.ra|64:this.ra&-65};k.Dn=function(){return this.ra};k.Jo=function(a,b){this.Zj=b;this.ca&&Qg(this.ca,14);jj(this)};k.Oo=function(a,b){this.Th&4&&!(b&4)&&(this.ie=1);this.Th=b}; +function jj(a){var b=!1,c=a.Zj,d=a.Ff&16?1:0,e=a.Ff&15,f=a.Sh|(a.Rh&3)<<8,g=a.Uh,h=a.ke||256;a.Ma=null;a.ie=0;a.ra=80;(d=a.xa[d])?(d.pe=f,d.La=e,d.$a=g,d.nb=h*d.cb,c=144<=c?c:c&240,d.Ja=null,d.Na=0,d.errorCode=0,a.Ma=d):c=-1;switch(c&240){case 32:a.ra=136;a.Cb(d,function(b){0<=b&&a.ca?(ij(a),a.ra=80):(a.ra=1,a.ie=16)},!1);break;case 48:a.ra=8;break;case 16:b=!0;break;case 64:b=!0;break;case 144:a.ie=1;b=!0;break;case 145:d.pb=e+1,d.sb=h,b=!0}b&&ij(a)} +function ij(a){!a.ca||a.Th&2||Pg(a.ca,14,120)} +function hj(a){a.ub=0;var b=a.Ia(),c=a.Ia(),d=c&32,e=d>>5,f=c&31,g=a.Ia(),h=a.Ia(),r=g<<2&768|h,t=g&63,B=a.Ia(),I=a.Ia(),H=a.xa[e];H&&(H.pe=r,H.La=f,H.$a=t,H.nb=B*H.cb);switch(b){case 3:a.Ob(H?H.errorCode:4);a.dc(c);a.dc(g);a.dc(h);a.dc(0|d);b=-1;break;case 12:for(c=0;0<=(b=a.Ia());)H&&cb?this.Cb(a,c):c(-1,!1)}; +k.Bi=function(a,b){return void 0!==b&&0<=b?this.Fb(a,b):-1};k.$m=function(a,b){var c;void 0!==b&&0<=b?(c=b,a.Na=a.sb+b&&(a.$a=b,a.La++,a.La>=a.pb&&(a.La=0,a.pe++))}; -k.gk=function(a,b){if(a.errorCode)return-1;a.Cc[a.lf++]=b;if(a.lf==a.Cc.length){a.pe=a.Cc[0];a.La=a.Cc[1];a.$a=a.Cc[2];a.nb=128<this.Fb(a,a.xk))return-1;a.eh++}a.eh>=a.Pd&&(b=-1);return b};k.po=function(){var a=this.U.J&255;!(this.U.G>>8)&&128>8||!this.ca)||(a=!(this.ca.Vb[0].cd&64));return a?!0:!1}; -var dj={800:Z.prototype.no,801:Z.prototype.oo,802:Z.prototype.mo},cj={496:Z.prototype.xn,497:Z.prototype.zn,498:Z.prototype.An,499:Z.prototype.Bn,500:Z.prototype.wn,501:Z.prototype.vn,502:Z.prototype.yn,503:Z.prototype.Cn},fj={800:Z.prototype.wp,801:Z.prototype.zp,802:Z.prototype.yp,803:Z.prototype.xp,807:Z.prototype.Tj,811:Z.prototype.Tj,815:Z.prototype.Tj},ej={496:Z.prototype.Lo,497:Z.prototype.Qo,498:Z.prototype.Oo,499:Z.prototype.Po,500:Z.prototype.Ko,501:Z.prototype.Jo,502:Z.prototype.Mo,503:Z.prototype.Io, -1014:Z.prototype.No};za(function(){for(var a=Ta(window.document,"pcjs","hdc"),b=0;b=a.sb+b&&(a.$a=b,a.La++,a.La>=a.pb&&(a.La=0,a.pe++))}; +k.hk=function(a,b){if(a.errorCode)return-1;a.Dc[a.lf++]=b;if(a.lf==a.Dc.length){a.pe=a.Dc[0];a.La=a.Dc[1];a.$a=a.Dc[2];a.nb=128<this.Fb(a,a.yk))return-1;a.fh++}a.fh>=a.Pd&&(b=-1);return b};k.qo=function(){var a=this.U.J&255;!(this.U.G>>8)&&128>8||!this.ca)||(a=!(this.ca.Vb[0].dd&64));return a?!0:!1}; +var dj={800:Z.prototype.oo,801:Z.prototype.po,802:Z.prototype.no},cj={496:Z.prototype.yn,497:Z.prototype.An,498:Z.prototype.Bn,499:Z.prototype.Cn,500:Z.prototype.xn,501:Z.prototype.wn,502:Z.prototype.zn,503:Z.prototype.Dn},fj={800:Z.prototype.xp,801:Z.prototype.Ap,802:Z.prototype.zp,803:Z.prototype.yp,807:Z.prototype.Uj,811:Z.prototype.Uj,815:Z.prototype.Uj},ej={496:Z.prototype.Mo,497:Z.prototype.Ro,498:Z.prototype.Po,499:Z.prototype.Qo,500:Z.prototype.Lo,501:Z.prototype.Ko,502:Z.prototype.No,503:Z.prototype.Jo, +1014:Z.prototype.Oo};za(function(){for(var a=Ta(window.document,"pcjs","hdc"),b=0;btj){if(d.load(this.Fg)){this.Ve=new Pd(this,"1.17.2","failsafe");this.Ve.load()&&(xj(this,d),a=2,qj(this.Ve));this.Ve.set("timestamp",la());rj(this.Ve);var e=this.Lc&&!this.rh;if(1==a||pa("Click OK to restore the previous PCjs machine state, or CANCEL to reset the machine.")){if(c=d.parse()){var f=d.get("code"),g=d.get("data");f&&("ok"==f?d.load(g):("error"== -f&&"no machine state"!=g?(this.wa("Error: "+g),"unable to verify user"==g&&(ta("user",""),this.Mc=null)):this.kc(f+": "+g),qj(d),d.load()?(c=d.parse(),e=!0):c=!1))}e&&wj(this,c?d:null)}else 2==a&&d.clear()}else wj(this);delete this.Fg;delete this.$h}e=Ma(this.id);for(f=0;fa[1];a=a[2];this.ea.Zb=!0;this.Mk||(this.kc("PCjs v1.17.2\nCopyright \u00a9 2012-2015 Jeff Parsons \nLicense: GPL version 3 or later "),this.Mk=!0);this.U&&(yj(this,this.U,b,c,a),pc(this.U));this.Pk&&(xj(this,b),b.clear());!c&&this.Ve&&(this.Ve.clear(),delete this.Ve)}; +function sj(a,b,c){n.call(this,"Computer",a,sj);this.ea.Zb=!1;this.Af=a.buswidth;this.Mc=tj;this.Gg=null;this.sh=!1;this.url=b?b.url:null;this.Hp=(Math.random()+.1).toString(36).substr(2,12);this.Nc=uj(this);if(this.U=Oa("CPU",this.id)){this.Xa=Oa("Debugger",this.id);this.ja=new zb({id:this.bl+".bus",buswidth:this.Af},this.U,this.Xa);var d,e=Ma(this.id);if((this.Ed=Oa("Panel",this.id))&&this.Ed.wi)for(b=0;btj){if(d.load(this.Gg)){this.Ve=new Pd(this,"1.17.2","failsafe");this.Ve.load()&&(xj(this,d),a=2,qj(this.Ve));this.Ve.set("timestamp",la());rj(this.Ve);var e=this.Mc&&!this.sh;if(1==a||pa("Click OK to restore the previous PCjs machine state, or CANCEL to reset the machine.")){if(c=d.parse()){var f=d.get("code"),g=d.get("data");f&&("ok"==f?d.load(g):("error"== +f&&"no machine state"!=g?(this.va("Error: "+g),"unable to verify user"==g&&(ta("user",""),this.Nc=null)):this.lc(f+": "+g),qj(d),d.load()?(c=d.parse(),e=!0):c=!1))}e&&wj(this,c?d:null)}else 2==a&&d.clear()}else wj(this);delete this.Gg;delete this.ai}e=Ma(this.id);for(f=0;fa[1];a=a[2];this.ea.Zb=!0;this.Nk||(this.lc("PCjs v1.17.2\nCopyright \u00a9 2012-2015 Jeff Parsons \nLicense: GPL version 3 or later "),this.Nk=!0);this.U&&(yj(this,this.U,b,c,a),pc(this.U));this.Qk&&(xj(this,b),b.clear());!c&&this.Ve&&(this.Ve.clear(),delete this.Ve)}; function xj(a,b){if(pa("There may be a problem with your PCjs machine.\n\nTo help us diagnose it, click OK to send this PCjs machine state to http://www.pcjs.org.")){var c=a.Zd(),d=b.toString(),e={app:"PCjs",ver:"1.17.2"};e.url=a.url;e.user=c;e.type="bug";e.data=d;na("http://www.pcjs.org/api/v1/report",!0,e)}} function zj(a,b,c){var d,e="none",f=new Pd(a,"1.17.2"),g=new Pd(a,"1.17.2","validate"),h=la();g.set("timestamp",h);f.set("timestamp",h);f.set("version","1.17.2");f.set("url",window?window.location.href:null);f.set("browser",window?window.navigator.userAgent:"");a.U&&a.U.ac&&(c&&rc(a.U),d=a.U.ac(b,c),"object"===typeof d&&f.set(a.U.id,d),c&&(a.U.ea.Zb=!1,!1===d&&(e=null)));for(var h=Ma(a.id),r=0;rh.indexOf("/")&&(h=window.location.pathname+h);a=a.replace(/(]*\sid=)(['"]).*?\2/,"$1$2"+c+"$2"+(d?" state=$2"+d+"$2":"")+(h?" url=$2"+h+"$2":""))}h=null;if("<"==a.charAt(0))try{window.ActiveXObject||"ActiveXObject"in window?(e||(a=a.replace(/\s*/g,"")),h=new window.ActiveXObject("Microsoft.XMLDOM"),h.async=!1,h.loadXML(a)):h=(new window.DOMParser).parseFromString(a,"text/xml")}catch(I){h= null,a=I.message}else a="unrecognized XML: "+(255/g.exec(a)){var e=d[2];b("Loading "+e+"...");na(e,!0,null,null,function(f,g,h){if(h||!g)c(a,"unable to resolve XML reference: "+d[0]+" ("+h+")");else{if(f=d[3])if(h=g.match(new RegExp("<"+d[1]+"[^>]*>"))){for(var r=h[0],t,B=/( [a-z]+=)(['"])(.*?)\2/g;t=B.exec(f);)r=0>r.indexOf(t[1])?r.replace(">",t[0]+">"):r.replace(new RegExp(t[1]+"(['\"])(.*?)\\1"),t[0]);h[0]!=r&&(g=g.replace(h[0],r))}else{c(a,"missing <"+d[1]+"> in "+e);return}g=g.replace(/<\?xml[^>]*>[\r\n]*/,