(function(){var e;function p(a,b){var c="";void 0===b?b=8:8=d?48:55),c=String.fromCharCode(d)+c;a>>=4}return c}function aa(a){var b=a,c=a.lastIndexOf("/");0<=c&&(b=a.substr(c+1));return b}var ba={"&":"&","<":"<",">":">",'"':""","'":"'"};function ca(a){return a.replace(/[&<>"']/g,function(a){return ba[a]})} function r(a,b,c,d,f){b=!!b;var g=0,h=null,l=aa(a),m=window.XMLHttpRequest?new window.XMLHttpRequest:new window.ActiveXObject("Microsoft.XMLHTTP");b&&(m.onreadystatechange=function(){4===m.readyState&&(m.onreadystatechange=void 0,h=m.responseText,200!=m.status&&(g=m.status||-1),d&&f&&f.call(d,l,h,g,void 0))});if(c){var k="",n;for(n in c)c.hasOwnProperty(n)&&(k&&(k+="&"),k+=n+"="+encodeURIComponent(c[n]));k=k.replace(/%20/g,"+");m.open("POST",a,b);m.setRequestHeader("Content-type","application/x-www-form-urlencoded"); m.send(k)}else m.open("GET",a,b),m.send();a=[];b||(h=m.responseText,200!=m.status&&(g=m.status||-1),d&&f&&f.call(d,l,h,g,void 0),a=[g,h]);return a}function s(a){window?window.alert(a):console.log(a)}function t(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 u={init:[],show:[],exit:[]},da=!0; function v(a,b){if(window){var c=window[a];window[a]="function"!==typeof c?b:function(){c&&c();b()}}}function w(a){u.init.push(a)}function x(a){if(da)for(var b=0;b=a.na?a.Za:a.speed+1,!0)}}(this),a=!0}return a}; e.O=function(a,b){this.a=a;(this.lc=b)?s("unsupported CPU address buffer offset ("+this.lc+")"):this.I()};e.R=function(a,b){if(a&&!this.w){this.F=b;var c=M(b,"video");c&&(this.hb=function(a){return function(){oa(a)}}(c),this.ca=function(a){return function(){a.ca()}}(c));this.w=!0;this.reset(!0);this.update()}};function pa(a,b,c,d,f){0>qa(a.X,b,c,d,f)&&(a.cb>b&&(a.cb=b),a.ebqa(a.S,b,c,d,f)&&(a.Ga>b&&(a.Ga=b),a.Haa.Za&&a.V&&(d=a.V);d>a.Pa&&a.speed=a.ta&&ra(a,!0);a.ua=0;a.Qd=Date.now()||+new Date} function va(a){var b=Date.now()||+new Date,c=a.Nd;a.ua&&(c=Math.round(c*a.ua/a.kb));c-=b-a.Qd;if(b-=a.cc)a.V=Math.round(a.ka/(100*b))/10,864E5<=b&&na(a);0>c?c=0:a.speed==a.ud?a.V<=a.Pa&&(c=0):a.speed==a.na&&(c=0);a.mb+=a.ua;return c} function P(a){if(ja(a,!0)){a.Q||(na(a),a.F&&a.F.start(),a.Q=!0,a.o.run&&(a.o.run.innerHTML="Halt"),a.ca());ua(a);try{do{a.step(a.Ra);var b=a.W-a.A;a.ka+=b;a.ua+=b;a.W=a.A=0;a.sa-=a.Ra;0>=a.sa&&(a.sa+=a.ec,a.hb());a.ra-=a.Ra;0>=a.ra&&(a.ra+=a.dc,sa(a));a.ia-=a.Ra;if(0>=a.ia){a.ia+=a.kb;break}}while(a.Q)}catch(c){O(a);a.update();ja(a,!1);K(a,c.message||c);return}setTimeout(function(a){return function(){P(a)}}(a),va(a))}else a.update(),a.F&&a.F.stop(a.cc,a.ka)} e.step=function(a){this.b=this.h=-1;this.W=this.A=a;do{a=this.a[this.d];this.d++;this.q[a].call(this);if(0<=this.b){if(this.b>=this.cb&&this.b<=this.eb)for(var b=this.b,c=this.d,d=0;d=this.X[d][0]&&b<=this.X[d][1]&&this.X[d][3].call(this.X[d][2],b,c);this.b=-1}else if(0<=this.h){if(this.h>=this.Ga&&this.h<=this.Ha)for(b=this.h,c=this.d,d=0;d=this.S[d][0]&&b<=this.S[d][1]&&this.S[d][3].call(this.S[d][2],b,c);this.h=-1}this.A-=this.yd[a]}while(0>1)&128?64:0),b=b|(a.f&128?128:0);return a.t&60|b} function S(a,b,c){var d=a.c&256?1:0,f=(b&15)+(c&15)+d;10<=f&&(f=f+6&15|16);f+=(b&240)+(c&240);a.v=b^c;a.r=f;a.f=f&255;160<=f&&(f+=96);512<=f&&(f-=256);a.c=f;a.g=b+c+d&255;a.A--;return f&255}function T(a,b,c){var d=a.c&256?0:1,f=(b&15)-(c&15)-d;0>f&&(f=(f-6&15)-16);f+=(b&240)-(c&240);0>f&&(f-=96);a.f=a.g=(a.c=b-c-d)&255;a.v=b^c;a.r=a.c;a.c^=256;a.A--;return f&255}function la(a){a.e=0;a.k=0;a.m=0;a.n=256;a.t=0;a.f=0;a.g=0;a.v=0;a.r=0;a.c=0;a.d=0;a.b=-1;a.h=-1;a.V=0;a.ka=a.W=a.A=0} e.we=function(){this.d++;this.a[this.n--]=this.d>>8;this.n|=256;this.a[this.n--]=this.d&255;this.n|=256;this.t|=16;this.t=ta(this);this.a[this.n--]=this.t;this.n|=256;this.t&=239;this.b=65534;this.d=this.a[this.b]|this.a[this.b+1]<<8};e.Qf=function(){this.b=this.a[this.d++]+this.k&255;this.b=this.a[this.b]|this.a[this.b+1]<<8;this.f=this.g=this.e|=this.a[this.b]};e.Sf=function(){this.b=this.a[this.d++];this.f=this.g=this.e|=this.a[this.b]}; e.me=function(){this.h=this.a[this.d++];this.c=this.a[this.h]<<1;this.f=this.g=this.a[this.h]=this.c&255};e.Vf=function(){this.t=ta(this);this.a[this.n--]=this.t;this.n|=256};e.Pf=function(){this.b=this.d++;this.f=this.g=this.e|=this.a[this.b]};e.le=function(){this.c=this.e<<1;this.f=this.g=this.e=this.c&255};e.Mf=function(){this.b=this.a[this.d++]|this.a[this.d++]<<8;this.f=this.g=this.e|=this.a[this.b]}; e.je=function(){this.h=this.a[this.d++]|this.a[this.d++]<<8;this.c=this.a[this.h]<<1;this.f=this.g=this.a[this.h]=this.c&255};e.ve=function(){this.d+=(this.f&128?0:(this.A--,this.a[this.d]<<24>>24))+1};e.Rf=function(){this.b=this.a[this.d++];this.b=(this.a[this.b]|this.a[this.b+1]<<8)+this.m;this.f=this.g=this.e|=this.a[this.b]};e.Tf=function(){this.b=this.a[this.d++]+this.k&255;this.f=this.g=this.e|=this.a[this.b]}; e.ne=function(){this.h=this.a[this.d++]+this.k&255;this.c=this.a[this.h]<<1;this.f=this.g=this.a[this.h]=this.c&255};e.ze=function(){this.c=0};e.Of=function(){this.b=(this.a[this.d++]|this.a[this.d++]<<8)+this.m;this.f=this.g=this.e|=this.a[this.b]};e.Nf=function(){this.b=(this.a[this.d++]|this.a[this.d++]<<8)+this.k;this.f=this.g=this.e|=this.a[this.b]};e.ke=function(){this.h=(this.a[this.d++]|this.a[this.d++]<<8)+this.k;this.c=this.a[this.h]<<1;this.f=this.g=this.a[this.h]=this.c&255}; e.nf=function(){this.b=this.d++;this.a[this.n--]=this.d>>8;this.n|=256;this.a[this.n--]=this.d&255;this.n|=256;this.d=this.a[this.b]|this.a[this.b+1]<<8};e.fe=function(){this.b=this.a[this.d++]+this.k&255;this.b=this.a[this.b]|this.a[this.b+1]<<8;this.f=this.g=this.e&=this.a[this.b]};e.se=function(){this.b=this.a[this.d++];this.g=this.e&this.a[this.b];this.f=this.f&127|this.a[this.b]&128;this.r=0;this.v=this.a[this.b]&64?128:0};e.he=function(){this.b=this.a[this.d++];this.f=this.g=this.e&=this.a[this.b]}; e.ag=function(){this.h=this.a[this.d++];this.c=this.c&65280|this.a[this.h];this.c<<=1;this.c=this.c&65534|(this.c&512?1:0);this.f=this.g=this.a[this.h]=this.c&255};e.Xf=function(){this.n=this.n+1&255|256;this.t=this.a[this.n];this.c=this.t&1?256:0;this.g=this.t&2?0:1;this.f=this.t&128;this.r=0;this.v=this.t&64?128:0};e.ee=function(){this.b=this.d++;this.f=this.g=this.e&=this.a[this.b]}; e.$f=function(){this.c=this.c&65280|this.e;this.c<<=1;this.c=this.c&65534|(this.c&512?1:0);this.f=this.g=this.e=this.c&255};e.re=function(){this.b=this.a[this.d++]|this.a[this.d++]<<8;this.g=this.e&this.a[this.b];this.f=this.f&127|this.a[this.b]&128;this.r=0;this.v=this.a[this.b]&64?128:0};e.be=function(){this.b=this.a[this.d++]|this.a[this.d++]<<8;this.f=this.g=this.e&=this.a[this.b]}; e.Yf=function(){this.h=this.a[this.d++]|this.a[this.d++]<<8;this.c=this.c&65280|this.a[this.h];this.c<<=1;this.c=this.c&65534|(this.c&512?1:0);this.f=this.g=this.a[this.h]=this.c&255};e.te=function(){this.d+=(this.f&128?(this.A--,this.a[this.d]<<24>>24):0)+1};e.ge=function(){this.b=this.a[this.d++];this.b=(this.a[this.b]|this.a[this.b+1]<<8)+this.m;this.f=this.g=this.e&=this.a[this.b]};e.ie=function(){this.b=this.a[this.d++]+this.k&255;this.f=this.g=this.e&=this.a[this.b]}; e.bg=function(){this.h=this.a[this.d++]+this.k&255;this.c=this.c&65280|this.a[this.h];this.c<<=1;this.c=this.c&65534|(this.c&512?1:0);this.f=this.g=this.a[this.h]=this.c&255};e.rg=function(){this.c=256};e.de=function(){this.b=(this.a[this.d++]|this.a[this.d++]<<8)+this.m;this.f=this.g=this.e&=this.a[this.b]};e.ce=function(){this.b=(this.a[this.d++]|this.a[this.d++]<<8)+this.k;this.f=this.g=this.e&=this.a[this.b]}; e.Zf=function(){this.h=(this.a[this.d++]|this.a[this.d++]<<8)+this.k;this.c=this.c&65280|this.a[this.h];this.c<<=1;this.c=this.c&65534|(this.c&512?1:0);this.f=this.g=this.a[this.h]=this.c&255};e.hg=function(){this.n=this.n+1&255|256;this.t=this.a[this.n];this.c=this.t&1?256:0;this.g=this.t&2?0:1;this.f=this.t&128;this.r=0;this.v=this.t&64?128:0;this.n=this.n+2&255|256;this.d=this.a[this.n-1|256]|this.a[this.n]<<8}; e.af=function(){this.b=this.a[this.d++]+this.k&255;this.b=this.a[this.b]|this.a[this.b+1]<<8;this.f=this.g=this.e^=this.a[this.b]};e.cf=function(){this.b=this.a[this.d++];this.f=this.g=this.e^=this.a[this.b]};e.Jf=function(){this.h=this.a[this.d++];this.c=this.c&65279|(this.a[this.h]&1?256:0);this.a[this.h]=(this.c=this.c&65280|this.a[this.h]>>1)&255;this.f=this.g=this.c&255};e.Uf=function(){this.a[this.n--]=this.e;this.n|=256};e.$e=function(){this.b=this.d++;this.f=this.g=this.e^=this.a[this.b]}; e.If=function(){this.c=this.c&65279|(this.e&1?256:0);this.e=(this.c=this.c&65280|this.e>>1)&255;this.f=this.g=this.c&255};e.mf=function(){this.b=this.d;this.d=this.a[this.b]|this.a[this.b+1]<<8};e.Xe=function(){this.b=this.a[this.d++]|this.a[this.d++]<<8;this.f=this.g=this.e^=this.a[this.b]};e.Gf=function(){this.h=this.a[this.d++]|this.a[this.d++]<<8;this.c=this.c&65279|(this.a[this.h]&1?256:0);this.a[this.h]=(this.c=this.c&65280|this.a[this.h]>>1)&255;this.f=this.g=this.c&255}; e.xe=function(){this.d+=((this.r&255^this.v^this.r>>1)&128?0:(this.A--,this.a[this.d]<<24>>24))+1};e.bf=function(){this.b=this.a[this.d++];this.b=(this.a[this.b]|this.a[this.b+1]<<8)+this.m;this.f=this.g=this.e^=this.a[this.b]};e.df=function(){this.b=this.a[this.d++]+this.k&255;this.f=this.g=this.e^=this.a[this.b]};e.Kf=function(){this.h=this.a[this.d++]+this.k&255;this.c=this.c&65279|(this.a[this.h]&1?256:0);this.a[this.h]=(this.c=this.c&65280|this.a[this.h]>>1)&255;this.f=this.g=this.c&255}; e.Be=function(){this.t&=251};e.Ze=function(){this.b=(this.a[this.d++]|this.a[this.d++]<<8)+this.m;this.f=this.g=this.e^=this.a[this.b]};e.Ye=function(){this.b=(this.a[this.d++]|this.a[this.d++]<<8)+this.k;this.f=this.g=this.e^=this.a[this.b]};e.Hf=function(){this.h=(this.a[this.d++]|this.a[this.d++]<<8)+this.k;this.c=this.c&65279|(this.a[this.h]&1?256:0);this.a[this.h]=(this.c=this.c&65280|this.a[this.h]>>1)&255;this.f=this.g=this.c&255}; e.ig=function(){this.n=this.n+2&255|256;this.d=(this.a[this.n-1|256]|this.a[this.n]<<8)+1};e.rc=function(){this.b=this.a[this.d++]+this.k&255;this.b=this.a[this.b]|this.a[this.b+1]<<8;this.c=this.e+this.a[this.b]+(this.c&256?1:0);this.v=this.e^this.a[this.b];this.r=this.c;this.f=this.g=this.e=this.c&255};e.Yd=function(){this.b=this.a[this.d++]+this.k&255;this.b=this.a[this.b]|this.a[this.b+1]<<8;this.e=S(this,this.e,this.a[this.b])}; e.tc=function(){this.b=this.a[this.d++];this.c=this.e+this.a[this.b]+(this.c&256?1:0);this.v=this.e^this.a[this.b];this.r=this.c;this.f=this.g=this.e=this.c&255};e.$d=function(){this.b=this.a[this.d++];this.e=S(this,this.e,this.a[this.b])};e.fg=function(){this.h=this.a[this.d++];this.c=this.c&65280|this.a[this.h];this.c=this.c&65023|(this.c&1?512:0);this.c>>=1;this.f=this.g=this.a[this.h]=this.c&255};e.Wf=function(){this.n=this.n+1&255|256;this.f=this.g=this.e=this.a[this.n]}; e.qc=function(){this.b=this.d++;this.c=this.e+this.a[this.b]+(this.c&256?1:0);this.v=this.e^this.a[this.b];this.r=this.c;this.f=this.g=this.e=this.c&255};e.Xd=function(){this.b=this.d++;this.e=S(this,this.e,this.a[this.b])};e.eg=function(){this.c=this.c&65280|this.e;this.c=this.c&65023|(this.c&1?512:0);this.c>>=1;this.f=this.g=this.e=this.c&255};e.lf=function(){this.b=this.a[this.d++]|this.a[this.d++]<<8;this.d=this.a[this.b]|this.a[this.b+1]<<8}; e.nc=function(){this.b=this.a[this.d++]|this.a[this.d++]<<8;this.c=this.e+this.a[this.b]+(this.c&256?1:0);this.v=this.e^this.a[this.b];this.r=this.c;this.f=this.g=this.e=this.c&255};e.Ud=function(){this.b=this.a[this.d++]|this.a[this.d++]<<8;this.e=S(this,this.e,this.a[this.b])};e.cg=function(){this.h=this.a[this.d++]|this.a[this.d++]<<8;this.c=this.c&65280|this.a[this.h];this.c=this.c&65023|(this.c&1?512:0);this.c>>=1;this.f=this.g=this.a[this.h]=this.c&255}; e.ye=function(){this.d+=((this.r&255^this.v^this.r>>1)&128?(this.A--,this.a[this.d]<<24>>24):0)+1};e.sc=function(){this.b=this.a[this.d++];this.b=(this.a[this.b]|this.a[this.b+1]<<8)+this.m;this.c=this.e+this.a[this.b]+(this.c&256?1:0);this.v=this.e^this.a[this.b];this.r=this.c;this.f=this.g=this.e=this.c&255};e.Zd=function(){this.b=this.a[this.d++];this.b=(this.a[this.b]|this.a[this.b+1]<<8)+this.m;this.e=S(this,this.e,this.a[this.b])}; e.uc=function(){this.b=this.a[this.d++]+this.k&255;this.c=this.e+this.a[this.b]+(this.c&256?1:0);this.v=this.e^this.a[this.b];this.r=this.c;this.f=this.g=this.e=this.c&255};e.ae=function(){this.b=this.a[this.d++]+this.k&255;this.e=S(this,this.e,this.a[this.b])};e.gg=function(){this.h=this.a[this.d++]+this.k&255;this.c=this.c&65280|this.a[this.h];this.c=this.c&65023|(this.c&1?512:0);this.c>>=1;this.f=this.g=this.a[this.h]=this.c&255};e.tg=function(){this.t|=4}; e.pc=function(){this.b=(this.a[this.d++]|this.a[this.d++]<<8)+this.m;this.c=this.e+this.a[this.b]+(this.c&256?1:0);this.v=this.e^this.a[this.b];this.r=this.c;this.f=this.g=this.e=this.c&255};e.Wd=function(){this.b=(this.a[this.d++]|this.a[this.d++]<<8)+this.m;this.e=S(this,this.e,this.a[this.b])};e.oc=function(){this.b=(this.a[this.d++]|this.a[this.d++]<<8)+this.k;this.c=this.e+this.a[this.b]+(this.c&256?1:0);this.v=this.e^this.a[this.b];this.r=this.c;this.f=this.g=this.e=this.c&255}; e.Vd=function(){this.b=(this.a[this.d++]|this.a[this.d++]<<8)+this.k;this.e=S(this,this.e,this.a[this.b])};e.dg=function(){this.h=(this.a[this.d++]|this.a[this.d++]<<8)+this.k;this.c=this.c&65280|this.a[this.h];this.c=this.c&65023|(this.c&1?512:0);this.c>>=1;this.f=this.g=this.a[this.h]=this.c&255};e.xg=function(){this.h=this.a[this.d++]+this.k&255;this.h=this.a[this.h]|this.a[this.h+1]<<8;this.a[this.h]=this.e};e.Fg=function(){this.h=this.a[this.d++];this.a[this.h]=this.m}; e.zg=function(){this.h=this.a[this.d++];this.a[this.h]=this.e};e.Cg=function(){this.h=this.a[this.d++];this.a[this.h]=this.k};e.We=function(){this.f=this.g=this.m=this.m-1&255};e.Lg=function(){this.f=this.g=this.e=this.k};e.Eg=function(){this.h=this.a[this.d++]|this.a[this.d++]<<8;this.a[this.h]=this.m};e.ug=function(){this.h=this.a[this.d++]|this.a[this.d++]<<8;this.a[this.h]=this.e};e.Bg=function(){this.h=this.a[this.d++]|this.a[this.d++]<<8;this.a[this.h]=this.k}; e.oe=function(){this.d+=(this.c&256?0:(this.A--,this.a[this.d]<<24>>24))+1};e.yg=function(){this.h=this.a[this.d++];this.h=(this.a[this.h]|this.a[this.h+1]<<8)+this.m;this.a[this.h]=this.e};e.Gg=function(){this.h=this.a[this.d++]+this.k&255;this.a[this.h]=this.m};e.Ag=function(){this.h=this.a[this.d++]+this.k&255;this.a[this.h]=this.e};e.Dg=function(){this.h=this.a[this.d++]+this.m&255;this.a[this.h]=this.k};e.Ng=function(){this.f=this.g=this.e=this.m}; e.wg=function(){this.h=(this.a[this.d++]|this.a[this.d++]<<8)+this.m;this.a[this.h]=this.e};e.Mg=function(){this.n=this.k|256};e.vg=function(){this.h=(this.a[this.d++]|this.a[this.d++]<<8)+this.k;this.a[this.h]=this.e};e.Df=function(){this.b=this.d++;this.f=this.g=this.m=this.a[this.b]};e.sf=function(){this.b=this.a[this.d++]+this.k&255;this.b=this.a[this.b]|this.a[this.b+1]<<8;this.f=this.g=this.e=this.a[this.b]};e.yf=function(){this.b=this.d++;this.f=this.g=this.k=this.a[this.b]}; e.Ef=function(){this.b=this.a[this.d++];this.f=this.g=this.m=this.a[this.b]};e.uf=function(){this.b=this.a[this.d++];this.f=this.g=this.e=this.a[this.b]};e.zf=function(){this.b=this.a[this.d++];this.f=this.g=this.k=this.a[this.b]};e.Jg=function(){this.f=this.g=this.m=this.e};e.rf=function(){this.b=this.d++;this.f=this.g=this.e=this.a[this.b]};e.Ig=function(){this.f=this.g=this.k=this.e};e.Bf=function(){this.b=this.a[this.d++]|this.a[this.d++]<<8;this.f=this.g=this.m=this.a[this.b]}; e.of=function(){this.b=this.a[this.d++]|this.a[this.d++]<<8;this.f=this.g=this.e=this.a[this.b]};e.wf=function(){this.b=this.a[this.d++]|this.a[this.d++]<<8;this.f=this.g=this.k=this.a[this.b]};e.pe=function(){this.d+=(this.c&256?(this.A--,this.a[this.d]<<24>>24):0)+1};e.tf=function(){this.b=this.a[this.d++];this.b=(this.a[this.b]|this.a[this.b+1]<<8)+this.m;this.f=this.g=this.e=this.a[this.b]};e.Ff=function(){this.b=this.a[this.d++]+this.k&255;this.f=this.g=this.m=this.a[this.b]}; e.vf=function(){this.b=this.a[this.d++]+this.k&255;this.f=this.g=this.e=this.a[this.b]};e.Af=function(){this.b=this.a[this.d++]+this.m&255;this.f=this.g=this.k=this.a[this.b]};e.Ce=function(){this.v=this.r=0};e.qf=function(){this.b=(this.a[this.d++]|this.a[this.d++]<<8)+this.m;this.f=this.g=this.e=this.a[this.b]};e.Kg=function(){this.f=this.g=this.k=this.n&255};e.Cf=function(){this.b=(this.a[this.d++]|this.a[this.d++]<<8)+this.k;this.f=this.g=this.m=this.a[this.b]}; e.pf=function(){this.b=(this.a[this.d++]|this.a[this.d++]<<8)+this.k;this.f=this.g=this.e=this.a[this.b]};e.xf=function(){this.b=(this.a[this.d++]|this.a[this.d++]<<8)+this.m;this.f=this.g=this.k=this.a[this.b]};e.Pe=function(){this.b=this.d++;this.f=this.g=this.c=this.m-this.a[this.b];this.c^=256};e.He=function(){this.b=this.a[this.d++]+this.k&255;this.b=this.a[this.b]|this.a[this.b+1]<<8;this.f=this.g=this.c=this.e-this.a[this.b];this.c^=256}; e.Qe=function(){this.b=this.a[this.d++];this.f=this.g=this.c=this.m-this.a[this.b];this.c^=256};e.Je=function(){this.b=this.a[this.d++];this.f=this.g=this.c=this.e-this.a[this.b];this.c^=256};e.Te=function(){this.h=this.a[this.d++];this.f=this.g=this.a[this.h]=this.a[this.h]-1&255};e.kf=function(){this.f=this.g=this.m=this.m+1&255};e.Ge=function(){this.b=this.d++;this.f=this.g=this.c=this.e-this.a[this.b];this.c^=256};e.Ve=function(){this.f=this.g=this.k=this.k-1&255}; e.Oe=function(){this.b=this.a[this.d++]|this.a[this.d++]<<8;this.f=this.g=this.c=this.m-this.a[this.b];this.c^=256};e.De=function(){this.b=this.a[this.d++]|this.a[this.d++]<<8;this.f=this.g=this.c=this.e-this.a[this.b];this.c^=256};e.Re=function(){this.h=this.a[this.d++]|this.a[this.d++]<<8;this.f=this.g=this.a[this.h]=this.a[this.h]-1&255};e.ue=function(){this.d+=(this.g&255?(this.A--,this.a[this.d]<<24>>24):0)+1}; e.Ie=function(){this.b=this.a[this.d++];this.b=(this.a[this.b]|this.a[this.b+1]<<8)+this.m;this.f=this.g=this.c=this.e-this.a[this.b];this.c^=256};e.Ke=function(){this.b=this.a[this.d++]+this.k&255;this.f=this.g=this.c=this.e-this.a[this.b];this.c^=256};e.Ue=function(){this.h=this.a[this.d++]+this.k&255;this.f=this.g=this.a[this.h]=this.a[this.h]-1&255}; e.Ae=function(){this.t&=-9;this.q[97]=this.rc;this.q[101]=this.tc;this.q[105]=this.qc;this.q[109]=this.nc;this.q[113]=this.sc;this.q[117]=this.uc;this.q[121]=this.pc;this.q[125]=this.oc;this.q[225]=this.zc;this.q[229]=this.Bc;this.q[233]=this.yc;this.q[237]=this.vc;this.q[241]=this.Ac;this.q[245]=this.Cc;this.q[249]=this.xc;this.q[253]=this.wc};e.Fe=function(){this.b=(this.a[this.d++]|this.a[this.d++]<<8)+this.m;this.f=this.g=this.c=this.e-this.a[this.b];this.c^=256}; e.Ee=function(){this.b=(this.a[this.d++]|this.a[this.d++]<<8)+this.k;this.f=this.g=this.c=this.e-this.a[this.b];this.c^=256};e.Se=function(){this.h=(this.a[this.d++]|this.a[this.d++]<<8)+this.k;this.f=this.g=this.a[this.h]=this.a[this.h]-1&255};e.Me=function(){this.b=this.d++;this.f=this.g=this.c=this.k-this.a[this.b];this.c^=256}; e.zc=function(){this.b=this.a[this.d++]+this.k&255;this.b=this.a[this.b]|this.a[this.b+1]<<8;this.c=this.e-this.a[this.b]-(this.c&256?0:1);this.v=this.e^this.a[this.b];this.r=this.c;this.f=this.g=this.e=this.c&255;this.c^=256};e.ng=function(){this.b=this.a[this.d++]+this.k&255;this.b=this.a[this.b]|this.a[this.b+1]<<8;this.e=T(this,this.e,this.a[this.b])};e.Ne=function(){this.b=this.a[this.d++];this.f=this.g=this.c=this.k-this.a[this.b];this.c^=256}; e.Bc=function(){this.b=this.a[this.d++];this.c=this.e-this.a[this.b]-(this.c&256?0:1);this.v=this.e^this.a[this.b];this.r=this.c;this.f=this.g=this.e=this.c&255;this.c^=256};e.pg=function(){this.b=this.a[this.d++];this.e=T(this,this.e,this.a[this.b])};e.gf=function(){this.h=this.a[this.d++];this.f=this.g=this.a[this.h]=this.a[this.h]+1&255};e.jf=function(){this.f=this.g=this.k=this.k+1&255}; e.yc=function(){this.b=this.d++;this.c=this.e-this.a[this.b]-(this.c&256?0:1);this.v=this.e^this.a[this.b];this.r=this.c;this.f=this.g=this.e=this.c&255;this.c^=256};e.mg=function(){this.b=this.d++;this.e=T(this,this.e,this.a[this.b])};e.Lf=function(){};e.Le=function(){this.b=this.a[this.d++]|this.a[this.d++]<<8;this.f=this.g=this.c=this.k-this.a[this.b];this.c^=256}; e.vc=function(){this.b=this.a[this.d++]|this.a[this.d++]<<8;this.c=this.e-this.a[this.b]-(this.c&256?0:1);this.v=this.e^this.a[this.b];this.r=this.c;this.f=this.g=this.e=this.c&255;this.c^=256};e.jg=function(){this.b=this.a[this.d++]|this.a[this.d++]<<8;this.e=T(this,this.e,this.a[this.b])};e.ef=function(){this.h=this.a[this.d++]|this.a[this.d++]<<8;this.f=this.g=this.a[this.h]=this.a[this.h]+1&255};e.qe=function(){this.d+=(this.g&255?0:(this.A--,this.a[this.d]<<24>>24))+1}; e.Ac=function(){this.b=this.a[this.d++];this.b=(this.a[this.b]|this.a[this.b+1]<<8)+this.m;this.c=this.e-this.a[this.b]-(this.c&256?0:1);this.v=this.e^this.a[this.b];this.r=this.c;this.f=this.g=this.e=this.c&255;this.c^=256};e.og=function(){this.b=this.a[this.d++];this.b=(this.a[this.b]|this.a[this.b+1]<<8)+this.m;this.e=T(this,this.e,this.a[this.b])}; e.Cc=function(){this.b=this.a[this.d++]+this.k&255;this.c=this.e-this.a[this.b]-(this.c&256?0:1);this.v=this.e^this.a[this.b];this.r=this.c;this.f=this.g=this.e=this.c&255;this.c^=256};e.qg=function(){this.b=this.a[this.d++]+this.k&255;this.e=T(this,this.e,this.a[this.b])};e.hf=function(){this.h=this.a[this.d++]+this.k&255;this.f=this.g=this.a[this.h]=this.a[this.h]+1&255}; e.sg=function(){this.t|=8;this.q[97]=this.Yd;this.q[101]=this.$d;this.q[105]=this.Xd;this.q[109]=this.Ud;this.q[113]=this.Zd;this.q[117]=this.ae;this.q[121]=this.Wd;this.q[125]=this.Vd;this.q[225]=this.ng;this.q[229]=this.pg;this.q[233]=this.mg;this.q[237]=this.jg;this.q[241]=this.og;this.q[245]=this.qg;this.q[249]=this.lg;this.q[253]=this.kg}; e.xc=function(){this.b=(this.a[this.d++]|this.a[this.d++]<<8)+this.m;this.c=this.e-this.a[this.b]-(this.c&256?0:1);this.v=this.e^this.a[this.b];this.r=this.c;this.f=this.g=this.e=this.c&255;this.c^=256};e.lg=function(){this.b=(this.a[this.d++]|this.a[this.d++]<<8)+this.m;this.e=T(this,this.e,this.a[this.b])}; e.wc=function(){this.b=(this.a[this.d++]|this.a[this.d++]<<8)+this.k;this.c=this.e-this.a[this.b]-(this.c&256?0:1);this.v=this.e^this.a[this.b];this.r=this.c;this.f=this.g=this.e=this.c&255;this.c^=256};e.kg=function(){this.b=(this.a[this.d++]|this.a[this.d++]<<8)+this.k;this.e=T(this,this.e,this.a[this.b])};e.ff=function(){this.h=(this.a[this.d++]|this.a[this.d++]<<8)+this.k;this.f=this.g=this.a[this.h]=this.a[this.h]+1&255}; e.Hg=function(){var a;a=this.a[this.d++];switch(a){case this.sd:I(this,"HALT");O(this);break;case this.td:a=this.d;for(var b="";a=c&&(c+=32);a.ba=a.ba.substr(1);V(a,c)}0=b&&(b+=32),Ca(a,b),W(a,b,!0,a.Mb)&&(a.s.speed==a.s.na?W(a,b,!1,a.qd):(c=!1,a.P[b]&&(clearTimeout(a.P[b]),c=!0),c=Ba(a,c),a.P[a.Z=b]=setTimeout(function(a){return function(){W(a,b,!1,a.rd)}}(a),c)),c=!0));return c} function W(a,b,c,d){var f=!1;c||(a.P[b]=null,a.Z==b&&(a.Z=0));var g=0,h=a.j[b];void 0===h&&(1<=b&&26>=b&&(b+=64,g=a.Da),h=a.j[b]);void 0!==h&&(b=h>>12,f=h>>8&15,g||(g=h&255),c?(a.D[b]|=1<d||d>=this.Rd}a&&(d=this.$a.shift(),void 0!==d&&(this.Sb=d),this.pb=0,this.fc=c);for(d=c=0;8>d;d++)this.Tb&1<d[g][0]&&(h=d[g][0]),l=a.$b&&(d-=a.$b,dMissing <canvas> support; try a new web browser.";break}f.setAttribute("class","c1pjs-canvas");f.setAttribute("width",d.screenWidth);f.setAttribute("height",d.screenHeight);f.setAttribute("contenteditable","true");f.setAttribute("autocapitalize","off");f.setAttribute("autocorrect","off");f.style.backgroundColor=d.screenColor; f.style.height="auto";0<=(window?window.navigator.userAgent:"").indexOf("MSIE")&&(f.style.height=(c.clientWidth*d.screenHeight/d.screenWidth|0)+"px",c.onresize=function(a,b,c,d){return function(){b.style.height=(a.clientWidth*d/c|0)+"px"}}(c,f,d.screenWidth,d.screenHeight));c.appendChild(f);var g=new Image,h=f.getContext("2d"),f=new Ea(d,f,h,g);g.onload=function(a){return function(){a.I()}}(f,d.charSet);g.src=d.charSet;G(f,c)}}); function Ha(a){y.call(this,"C1PSerialPort",a);this.w=!1;this.Yb=a.demo;this.wd=0;this.vd=1;this.reset()}C(Ha);e=Ha.prototype;e.reset=function(){2!=this.Y&&(this.Ia=this.fb=0,this.la='10 PRINT "HELLO OSI #'+ea(this)+'"\n',this.Y=this.Oa=0)};e.start=function(){this.B&&this.Yb&&(X(this.B," C\n\n",3E3),setTimeout(function(a){return function(){a.Y=1;X(a.B,"LOAD\n")}}(this),12E3));this.Yb=!1}; e.G=function(a,b,c,d){switch(c){case "listSerial":return this.o[c]=d,!0;case "loadSerial":return this.o[c]=d,d.onclick=function(a){return function(){a.o.listSerial&&r(a.o.listSerial.value,!0,null,a,a.Kd)}}(this),!0}return!1};e.O=function(a,b,c,d){this.a=a;this.rb=b;this.Bd=c-b+1;this.mc=this.rb+this.Bd;if(this.s=d)pa(d,b,c,this,this.M),Q(d,b,c,this,this.K);this.I()};e.R=function(a,b){a&&!this.w&&(this.w=!0,this.F=b,this.B=M(b,"keyboard"))}; e.Kd=function(a,b,c){b?(this.la=b,this.Y=this.Oa=0,this.F&&this.B&&this.s.Q?(I(this,"auto-loading "+a),this.s.ca(),"."!=this.la.charAt(0)?(this.Y=1,X(this.B,"NEW\nLOAD\n")):(this.Y=2,this.F.reset(!0),X(this.B,"ML"))):I(this,a+" ready to load")):I(this,a+" load error ("+c+")")};e.M=function(a,b){void 0!==b&&(a&1?Ia(this):this.la&&!this.Oa&&Ia(this))};e.K=function(){}; function Ia(a){if(void 0!==a.la){a.fb=0;a.Ia=0;if(a.Oa=--d.ja&&(0=d.jc&&(d.U=d.jc),0>d.U&&(d.U=0),d.ja=20, a.$.update(a.$.p|a.Ya),Ma(a))}this.p=c;a.Ua.p&a.da&&Y(a,a.Lb,this)}}(a)};a.Ua={p:0,N:function(){},update:function(a){return function(c){void 0!==c&&(this.p=c&~(a.yb|a.zb));Y(a,a.Ib,this);a.wa.update();a.Fc.update()}}(a)};a.Og={p:0,N:function(){},update:function(a){return function(c){void 0!==c&&((c&a.Ab)==a.Ab&&(a.aa.p=a.Qb|a.Ob|a.Nb),this.p=c);a.aa.update()}}(a)};a.aa={p:a.Qb|a.Ob|a.Nb,N:function(){},update:function(a){return function(c){void 0===c&&(c=a.aa.p);c&=~a.Pb;0<=a.C&&0<=a.L[a.C].ha&&(c|= a.Pb);this.p=c;Y(a,a.nd,this)}}(a)};a.ub={p:0,N:function(a){return function(){Na(a)}}(a),update:function(a){return function(c){void 0!==c&&(this.p=c);Y(a,a.Jb,this)}}(a)};a.Pg={p:0,N:function(){},update:function(){return function(){}}(a)}} e.G=function(a,b,c,d){switch(c){case "listDisk":return this.o[c]=d,!0;case "loadDisk":return this.o[c]=d,d.onclick=function(a){return function(){if(a.o.listDisk){var b=a.o.listDisk.value,c=b;".json"!=b.substr(b.length-5)&&(c="http://"+window.location.host+"/api/v1/dump?disk="+b);I(a,"loading "+aa(b)+"...");r(c,!0,null,a,a.Jd)}}}(this),!0}return!1};e.O=function(a,b,c,d){this.a=a;this.bb=b;if(this.s=d)pa(d,b,c,this,this.M),Q(d,b,c,this,this.K);this.I()};e.R=function(a){a&&!this.w&&(this.w=!0)}; e.Jd=function(a,b,c){if(c)I(this,"disk load error ("+c+")");else{c=[];I(this,"mounting "+a+"...");try{if(c=eval("("+b+")"),c.length)if(c[0].length){var d=c[0];if(void 0===d[0].trackNum)I(this,"data error: "+d[0]);else if(this.L[0]){for(b=0;b>8&255);a.push(b&255)}function Oa(a,b,c){b=b[c];if(void 0===b)throw"missing signature: "+c;for(c=0;cb?b&=3:32>b&&(b&=17);switch(b){case a.Kb:a=a.Ta.p&a.da?a.$:a.Ec;break;case a.Hb:a=a.Ta;break;case a.Lb:a=a.Ua.p&a.da?a.wa:a.Fc;break;case a.Ib:a=a.Ua;break;case a.kd:a=c?a.Og:a.aa;break;case a.Jb:a=a.ub;break;default:a=a.Pg}return a}e.M=function(a,b){void 0!==b&&Qa(this,a-this.bb,!1).N()};e.K=function(a,b){if(void 0!==b){var c=this.s.M(a);Qa(this,a-this.bb,!0).update(c)}}; function La(a,b,c){var d=-1;void 0!==b&&void 0!==c&&(d=0,c&a.hd||(d|=2),a.$.p&a.Db||(d|=1));a.C!=d&&(a.C=d,a.aa.update())}function Ma(a){0<=a.C&&(a.L[a.C].ha=-1,a.ub.update(255),a.aa.update())}function Na(a){var b=null;if(0<=a.C){var b=a.L[a.C],c=b.Ea[b.U];void 0!==c&&(0<=b.ha&&b.ha");b&&b.R(!0,a)} w(function(){for(var a=H(window.document,"c1pjs","computer"),b=0;b');return}}if(void 0===h){s(' definition must appear first in the specification'); break}if(f=E("debugger",d.id))g["debugger"]=[f],f.O&&f.O(h,l,m,g.cpu[0]);(f=E("panel",d.id))&&(g.panel=[f]);d=new $(d,g);G(d,c);Ra(d)}});function Sa(a,b,c,d){var f=r(a);if(f[0])throw Error(f[1]);return Ta(f[1],a,b,c,d)} function Ta(a,b,c,d,f){var g=null;if(a){if(f)for(var h=/<([a-z]+)\s+ref="(.*?)"(.*?)\/>/g;g=h.exec(a);){var l=g[2],m=r(l),k=m[1];if(m[0]||!k)throw c="unable to resolve XML reference: "+g[0]+" ("+m[0]+")",Error(c);if(m=g[3]){var n=k.match(new RegExp("<"+g[1]+"[^>]*>"));if(n){for(var l=n[0],q,ma=/( [a-z]+=)(['"])(.*?)\2/g;q=ma.exec(m);)l=0>l.indexOf(q[1])?l.replace(">",q[0]+">"):l.replace(new RegExp(q[1]+"(['\"])(.*?)\\1"),q[0]);n[0]!=l&&(k=k.replace(n[0],l))}else throw c="missing <"+g[1]+"> in "+l, Error(c);}k=k.replace(/<\?xml[^>]*>[\r\n]*/,"");a=a.replace(g[0],k);h.lastIndex=0}c&&(b&&0>b.indexOf("/")&&(b=window.location.pathname+b),a=a.replace(/(]*\sid=)(['"]).*?\2/,"$1$2"+c+"$2"+(d?" state=$2"+d+"$2":"")+(b?" url=$2"+b+"$2":"")));if(0===a.indexOf("<"))window.ActiveXObject||"ActiveXObject"in window?(f||(a=a.replace(/\s*/g,"")),g=new window.ActiveXObject("Microsoft.XMLDOM"),g.async=!1,g.loadXML(a)):g=(new window.DOMParser).parseFromString(a,"text/xml");else throw Error("unrecognized XML: "+ (255