From 6a3328afd405a0df42beb2f42cc369b7b12291f6 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Fri, 16 Sep 2022 21:47:34 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E8=A1=8C=E7=BA=A7=E5=85=83?= =?UTF-8?q?=E7=B4=A0=E6=94=AF=E6=8C=81=E5=A4=9A=E9=87=8D=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=20https://github.com/siyuan-note/siyuan/issu?= =?UTF-8?q?es/2911?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/stage/protyle/js/lute/lute.min.js | 2 +- kernel/go.mod | 2 +- kernel/go.sum | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/stage/protyle/js/lute/lute.min.js b/app/stage/protyle/js/lute/lute.min.js index 9f018d97542..7672dde7455 100644 --- a/app/stage/protyle/js/lute/lute.min.js +++ b/app/stage/protyle/js/lute/lute.min.js @@ -50,7 +50,7 @@ $packages["os"]=(function(){var $pkg={},$init,A,B,I,J,N,O,H,C,F,D,G,K,L,E,M,V,Z, $packages["fmt"]=(function(){var $pkg={},$init,A,D,E,I,F,G,B,H,C,K,L,M,N,O,P,Q,R,S,AV,AW,AX,BK,BL,BM,BN,BO,BP,BQ,BR,BS,BV,CQ,CR,CS,T,AY,BC,BE,BF,J,U,X,AE,AF,AG,AH,AI,AZ,BA,BG;A=$packages["errors"];D=$packages["internal/fmtsort"];E=$packages["io"];I=$packages["math"];F=$packages["os"];G=$packages["reflect"];B=$packages["strconv"];H=$packages["sync"];C=$packages["unicode/utf8"];K=$pkg.wrapError=$newType(0,$kindStruct,"fmt.wrapError",true,"fmt",false,function(msg_,err_){this.$val=this;if(arguments.length===0){this.msg="";this.err=$ifaceNil;return;}this.msg=msg_;this.err=err_;});L=$pkg.fmtFlags=$newType(0,$kindStruct,"fmt.fmtFlags",true,"fmt",false,function(widPresent_,precPresent_,minus_,plus_,sharp_,space_,zero_,plusV_,sharpV_){this.$val=this;if(arguments.length===0){this.widPresent=false;this.precPresent=false;this.minus=false;this.plus=false;this.sharp=false;this.space=false;this.zero=false;this.plusV=false;this.sharpV=false;return;}this.widPresent=widPresent_;this.precPresent=precPresent_;this.minus=minus_;this.plus=plus_;this.sharp=sharp_;this.space=space_;this.zero=zero_;this.plusV=plusV_;this.sharpV=sharpV_;});M=$pkg.fmt=$newType(0,$kindStruct,"fmt.fmt",true,"fmt",false,function(buf_,fmtFlags_,wid_,prec_,intbuf_){this.$val=this;if(arguments.length===0){this.buf=BM.nil;this.fmtFlags=new L.ptr(false,false,false,false,false,false,false,false,false);this.wid=0;this.prec=0;this.intbuf=BN.zero();return;}this.buf=buf_;this.fmtFlags=fmtFlags_;this.wid=wid_;this.prec=prec_;this.intbuf=intbuf_;});N=$pkg.State=$newType(8,$kindInterface,"fmt.State",true,"fmt",true,null);O=$pkg.Formatter=$newType(8,$kindInterface,"fmt.Formatter",true,"fmt",true,null);P=$pkg.Stringer=$newType(8,$kindInterface,"fmt.Stringer",true,"fmt",true,null);Q=$pkg.GoStringer=$newType(8,$kindInterface,"fmt.GoStringer",true,"fmt",true,null);R=$pkg.buffer=$newType(12,$kindSlice,"fmt.buffer",true,"fmt",false,null);S=$pkg.pp=$newType(0,$kindStruct,"fmt.pp",true,"fmt",false,function(buf_,arg_,value_,fmt_,reordered_,goodArgNum_,panicking_,erroring_,wrapErrs_,wrappedErr_){this.$val=this;if(arguments.length===0){this.buf=R.nil;this.arg=$ifaceNil;this.value=new G.Value.ptr(BL.nil,0,0);this.fmt=new M.ptr(BM.nil,new L.ptr(false,false,false,false,false,false,false,false,false),0,0,BN.zero());this.reordered=false;this.goodArgNum=false;this.panicking=false;this.erroring=false;this.wrapErrs=false;this.wrappedErr=$ifaceNil;return;}this.buf=buf_;this.arg=arg_;this.value=value_;this.fmt=fmt_;this.reordered=reordered_;this.goodArgNum=goodArgNum_;this.panicking=panicking_;this.erroring=erroring_;this.wrapErrs=wrapErrs_;this.wrappedErr=wrappedErr_;});AV=$pkg.scanError=$newType(0,$kindStruct,"fmt.scanError",true,"fmt",false,function(err_){this.$val=this;if(arguments.length===0){this.err=$ifaceNil;return;}this.err=err_;});AW=$pkg.ss=$newType(0,$kindStruct,"fmt.ss",true,"fmt",false,function(rs_,buf_,count_,atEOF_,ssave_){this.$val=this;if(arguments.length===0){this.rs=$ifaceNil;this.buf=R.nil;this.count=0;this.atEOF=false;this.ssave=new AX.ptr(false,false,false,0,0,0);return;}this.rs=rs_;this.buf=buf_;this.count=count_;this.atEOF=atEOF_;this.ssave=ssave_;});AX=$pkg.ssave=$newType(0,$kindStruct,"fmt.ssave",true,"fmt",false,function(validSave_,nlIsEnd_,nlIsSpace_,argLimit_,limit_,maxWid_){this.$val=this;if(arguments.length===0){this.validSave=false;this.nlIsEnd=false;this.nlIsSpace=false;this.argLimit=0;this.limit=0;this.maxWid=0;return;}this.validSave=validSave_;this.nlIsEnd=nlIsEnd_;this.nlIsSpace=nlIsSpace_;this.argLimit=argLimit_;this.limit=limit_;this.maxWid=maxWid_;});BK=$sliceType($emptyInterface);BL=$ptrType(G.rtype);BM=$ptrType(R);BN=$arrayType($Uint8,68);BO=$arrayType($Uint16,2);BP=$sliceType(BO);BQ=$sliceType($Uint8);BR=$arrayType($Uint8,6);BS=$ptrType(S);BV=$ptrType(AW);CQ=$ptrType(K);CR=$ptrType(M);CS=$funcType([$Int32],[$Bool],false);J=function(a,b){var a,b,c,d,e,f,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=U();$s=1;case 1:if($c){$c=false;c=c.$blk();}if(c&&c.$blk!==undefined){break s;}d=c;d.wrapErrs=true;$r=d.doPrintf(a,b);$s=2;case 2:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}e=($bytesToString(d.buf));f=$ifaceNil;if($interfaceIsEqual(d.wrappedErr,$ifaceNil)){f=A.New(e);}else{f=new K.ptr(e,d.wrappedErr);}d.free();$s=-1;return f;}return;}if($f===undefined){$f={$blk:J};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.$s=$s;$f.$r=$r;return $f;};$pkg.Errorf=J;K.ptr.prototype.Error=function(){var a;a=this;return a.msg;};K.prototype.Error=function(){return this.$val.Error();};K.ptr.prototype.Unwrap=function(){var a;a=this;return a.err;};K.prototype.Unwrap=function(){return this.$val.Unwrap();};M.ptr.prototype.clearflags=function(){var a;a=this;L.copy(a.fmtFlags,new L.ptr(false,false,false,false,false,false,false,false,false));};M.prototype.clearflags=function(){return this.$val.clearflags();};M.ptr.prototype.init=function(a){var a,b;b=this;b.buf=a;b.clearflags();};M.prototype.init=function(a){return this.$val.init(a);};M.ptr.prototype.writePadding=function(a){var a,b,c,d,e,f,g,h,i,j;b=this;if(a<=0){return;}c=b.buf.$get();d=c.$length;e=d+a>>0;if(e>c.$capacity){c=$makeSlice(R,(($imul(c.$capacity,2))+a>>0));$copySlice(c,b.buf.$get());}f=32;if(b.fmtFlags.zero){f=48;}g=$subslice(c,d,e);h=g;i=0;while(true){if(!(i=g.$length)?($throwRuntimeError("index out of range"),undefined):g.$array[g.$offset+j]=f);i++;}b.buf.$set($subslice(c,0,e));};M.prototype.writePadding=function(a){return this.$val.writePadding(a);};M.ptr.prototype.pad=function(a){var a,b,c;b=this;if(!b.fmtFlags.widPresent||(b.wid===0)){b.buf.write(a);return;}c=b.wid-C.RuneCount(a)>>0;if(!b.fmtFlags.minus){b.writePadding(c);b.buf.write(a);}else{b.buf.write(a);b.writePadding(c);}};M.prototype.pad=function(a){return this.$val.pad(a);};M.ptr.prototype.padString=function(a){var a,b,c;b=this;if(!b.fmtFlags.widPresent||(b.wid===0)){b.buf.writeString(a);return;}c=b.wid-C.RuneCountInString(a)>>0;if(!b.fmtFlags.minus){b.writePadding(c);b.buf.writeString(a);}else{b.buf.writeString(a);b.writePadding(c);}};M.prototype.padString=function(a){return this.$val.padString(a);};M.ptr.prototype.fmtBoolean=function(a){var a,b;b=this;if(a){b.padString("true");}else{b.padString("false");}};M.prototype.fmtBoolean=function(a){return this.$val.fmtBoolean(a);};M.ptr.prototype.fmtUnicode=function(a){var a,b,c,d,e,f,g;b=this;c=$subslice(new BQ(b.intbuf),0);d=4;if(b.fmtFlags.precPresent&&b.prec>4){d=b.prec;e=(((2+d>>0)+2>>0)+4>>0)+1>>0;if(e>c.$length){c=$makeSlice(BQ,e);}}f=c.$length;if(b.fmtFlags.sharp&&(a.$high<0||(a.$high===0&&a.$low<=1114111))&&B.IsPrint(((a.$low>>0)))){f=f-(1)>>0;((f<0||f>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+f]=39);f=f-(C.RuneLen(((a.$low>>0))))>>0;C.EncodeRune($subslice(c,f),((a.$low>>0)));f=f-(1)>>0;((f<0||f>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+f]=39);f=f-(1)>>0;((f<0||f>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+f]=32);}while(true){if(!((a.$high>0||(a.$high===0&&a.$low>=16)))){break;}f=f-(1)>>0;((f<0||f>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+f]="0123456789ABCDEFX".charCodeAt($flatten64(new $Uint64(a.$high&0,(a.$low&15)>>>0))));d=d-(1)>>0;a=$shiftRightUint64(a,(4));}f=f-(1)>>0;((f<0||f>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+f]="0123456789ABCDEFX".charCodeAt($flatten64(a)));d=d-(1)>>0;while(true){if(!(d>0)){break;}f=f-(1)>>0;((f<0||f>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+f]=48);d=d-(1)>>0;}f=f-(1)>>0;((f<0||f>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+f]=43);f=f-(1)>>0;((f<0||f>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+f]=85);g=b.fmtFlags.zero;b.fmtFlags.zero=false;b.pad($subslice(c,f));b.fmtFlags.zero=g;};M.prototype.fmtUnicode=function(a){return this.$val.fmtUnicode(a);};M.ptr.prototype.fmtInteger=function(a,b,c,d,e){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u;f=this;h=c&&(g=(new $Int64(a.$high,a.$low)),(g.$high<0||(g.$high===0&&g.$low<0)));if(h){a=new $Uint64(-a.$high,-a.$low);}i=$subslice(new BQ(f.intbuf),0);if(f.fmtFlags.widPresent||f.fmtFlags.precPresent){j=(3+f.wid>>0)+f.prec>>0;if(j>i.$length){i=$makeSlice(BQ,j);}}k=0;if(f.fmtFlags.precPresent){k=f.prec;if((k===0)&&(a.$high===0&&a.$low===0)){l=f.fmtFlags.zero;f.fmtFlags.zero=false;f.writePadding(f.wid);f.fmtFlags.zero=l;return;}}else if(f.fmtFlags.zero&&f.fmtFlags.widPresent){k=f.wid;if(h||f.fmtFlags.plus||f.fmtFlags.space){k=k-(1)>>0;}}m=i.$length;n=b;if(n===(10)){while(true){if(!((a.$high>0||(a.$high===0&&a.$low>=10)))){break;}m=m-(1)>>0;o=$div64(a,new $Uint64(0,10),false);((m<0||m>=i.$length)?($throwRuntimeError("index out of range"),undefined):i.$array[i.$offset+m]=(((p=new $Uint64(0+a.$high,48+a.$low),q=$mul64(o,new $Uint64(0,10)),new $Uint64(p.$high-q.$high,p.$low-q.$low)).$low<<24>>>24)));a=o;}}else if(n===(16)){while(true){if(!((a.$high>0||(a.$high===0&&a.$low>=16)))){break;}m=m-(1)>>0;((m<0||m>=i.$length)?($throwRuntimeError("index out of range"),undefined):i.$array[i.$offset+m]=e.charCodeAt($flatten64(new $Uint64(a.$high&0,(a.$low&15)>>>0))));a=$shiftRightUint64(a,(4));}}else if(n===(8)){while(true){if(!((a.$high>0||(a.$high===0&&a.$low>=8)))){break;}m=m-(1)>>0;((m<0||m>=i.$length)?($throwRuntimeError("index out of range"),undefined):i.$array[i.$offset+m]=(((r=new $Uint64(a.$high&0,(a.$low&7)>>>0),new $Uint64(0+r.$high,48+r.$low)).$low<<24>>>24)));a=$shiftRightUint64(a,(3));}}else if(n===(2)){while(true){if(!((a.$high>0||(a.$high===0&&a.$low>=2)))){break;}m=m-(1)>>0;((m<0||m>=i.$length)?($throwRuntimeError("index out of range"),undefined):i.$array[i.$offset+m]=(((s=new $Uint64(a.$high&0,(a.$low&1)>>>0),new $Uint64(0+s.$high,48+s.$low)).$low<<24>>>24)));a=$shiftRightUint64(a,(1));}}else{$panic(new $String("fmt: unknown base; can't happen"));}m=m-(1)>>0;((m<0||m>=i.$length)?($throwRuntimeError("index out of range"),undefined):i.$array[i.$offset+m]=e.charCodeAt($flatten64(a)));while(true){if(!(m>0&&k>(i.$length-m>>0))){break;}m=m-(1)>>0;((m<0||m>=i.$length)?($throwRuntimeError("index out of range"),undefined):i.$array[i.$offset+m]=48);}if(f.fmtFlags.sharp){t=b;if(t===(2)){m=m-(1)>>0;((m<0||m>=i.$length)?($throwRuntimeError("index out of range"),undefined):i.$array[i.$offset+m]=98);m=m-(1)>>0;((m<0||m>=i.$length)?($throwRuntimeError("index out of range"),undefined):i.$array[i.$offset+m]=48);}else if(t===(8)){if(!((((m<0||m>=i.$length)?($throwRuntimeError("index out of range"),undefined):i.$array[i.$offset+m])===48))){m=m-(1)>>0;((m<0||m>=i.$length)?($throwRuntimeError("index out of range"),undefined):i.$array[i.$offset+m]=48);}}else if(t===(16)){m=m-(1)>>0;((m<0||m>=i.$length)?($throwRuntimeError("index out of range"),undefined):i.$array[i.$offset+m]=e.charCodeAt(16));m=m-(1)>>0;((m<0||m>=i.$length)?($throwRuntimeError("index out of range"),undefined):i.$array[i.$offset+m]=48);}}if(d===79){m=m-(1)>>0;((m<0||m>=i.$length)?($throwRuntimeError("index out of range"),undefined):i.$array[i.$offset+m]=111);m=m-(1)>>0;((m<0||m>=i.$length)?($throwRuntimeError("index out of range"),undefined):i.$array[i.$offset+m]=48);}if(h){m=m-(1)>>0;((m<0||m>=i.$length)?($throwRuntimeError("index out of range"),undefined):i.$array[i.$offset+m]=45);}else if(f.fmtFlags.plus){m=m-(1)>>0;((m<0||m>=i.$length)?($throwRuntimeError("index out of range"),undefined):i.$array[i.$offset+m]=43);}else if(f.fmtFlags.space){m=m-(1)>>0;((m<0||m>=i.$length)?($throwRuntimeError("index out of range"),undefined):i.$array[i.$offset+m]=32);}u=f.fmtFlags.zero;f.fmtFlags.zero=false;f.pad($subslice(i,m));f.fmtFlags.zero=u;};M.prototype.fmtInteger=function(a,b,c,d,e){return this.$val.fmtInteger(a,b,c,d,e);};M.ptr.prototype.truncateString=function(a){var a,b,c,d,e,f,g;b=this;if(b.fmtFlags.precPresent){c=b.prec;d=a;e=0;while(true){if(!(e>0;if(c<0){return $substring(a,0,g);}e+=f[1];}}return a;};M.prototype.truncateString=function(a){return this.$val.truncateString(a);};M.ptr.prototype.truncate=function(a){var a,b,c,d,e,f;b=this;if(b.fmtFlags.precPresent){c=b.prec;d=0;while(true){if(!(d>0;if(c<0){return $subslice(a,0,d);}e=1;if(((d<0||d>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+d])>=128){f=C.DecodeRune($subslice(a,d));e=f[1];}d=d+(e)>>0;}}return a;};M.prototype.truncate=function(a){return this.$val.truncate(a);};M.ptr.prototype.fmtS=function(a){var a,b;b=this;a=b.truncateString(a);b.padString(a);};M.prototype.fmtS=function(a){return this.$val.fmtS(a);};M.ptr.prototype.fmtBs=function(a){var a,b;b=this;a=b.truncate(a);b.pad(a);};M.prototype.fmtBs=function(a){return this.$val.fmtBs(a);};M.ptr.prototype.fmtSbx=function(a,b,c){var a,b,c,d,e,f,g,h,i;d=this;e=b.$length;if(b===BQ.nil){e=a.length;}if(d.fmtFlags.precPresent&&d.prec0){if(d.fmtFlags.space){if(d.fmtFlags.sharp){f=$imul(f,(2));}f=f+((e-1>>0))>>0;}else if(d.fmtFlags.sharp){f=f+(2)>>0;}}else{if(d.fmtFlags.widPresent){d.writePadding(d.wid);}return;}if(d.fmtFlags.widPresent&&d.wid>f&&!d.fmtFlags.minus){d.writePadding(d.wid-f>>0);}g=d.buf.$get();if(d.fmtFlags.sharp){g=$append(g,48,c.charCodeAt(16));}h=0;i=0;while(true){if(!(i0){g=$append(g,32);if(d.fmtFlags.sharp){g=$append(g,48,c.charCodeAt(16));}}if(!(b===BQ.nil)){h=((i<0||i>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+i]);}else{h=a.charCodeAt(i);}g=$append(g,c.charCodeAt((h>>>4<<24>>>24)),c.charCodeAt(((h&15)>>>0)));i=i+(1)>>0;}d.buf.$set(g);if(d.fmtFlags.widPresent&&d.wid>f&&d.fmtFlags.minus){d.writePadding(d.wid-f>>0);}};M.prototype.fmtSbx=function(a,b,c){return this.$val.fmtSbx(a,b,c);};M.ptr.prototype.fmtSx=function(a,b){var a,b,c;c=this;c.fmtSbx(a,BQ.nil,b);};M.prototype.fmtSx=function(a,b){return this.$val.fmtSx(a,b);};M.ptr.prototype.fmtBx=function(a,b){var a,b,c;c=this;c.fmtSbx("",a,b);};M.prototype.fmtBx=function(a,b){return this.$val.fmtBx(a,b);};M.ptr.prototype.fmtQ=function(a){var a,b,c;b=this;a=b.truncateString(a);if(b.fmtFlags.sharp&&B.CanBackquote(a)){b.padString("`"+a+"`");return;}c=$subslice(new BQ(b.intbuf),0,0);if(b.fmtFlags.plus){b.pad(B.AppendQuoteToASCII(c,a));}else{b.pad(B.AppendQuote(c,a));}};M.prototype.fmtQ=function(a){return this.$val.fmtQ(a);};M.ptr.prototype.fmtC=function(a){var a,b,c,d,e;b=this;c=((a.$low>>0));if((a.$high>0||(a.$high===0&&a.$low>1114111))){c=65533;}d=$subslice(new BQ(b.intbuf),0,0);e=C.EncodeRune($subslice(d,0,4),c);b.pad($subslice(d,0,e));};M.prototype.fmtC=function(a){return this.$val.fmtC(a);};M.ptr.prototype.fmtQc=function(a){var a,b,c,d;b=this;c=((a.$low>>0));if((a.$high>0||(a.$high===0&&a.$low>1114111))){c=65533;}d=$subslice(new BQ(b.intbuf),0,0);if(b.fmtFlags.plus){b.pad(B.AppendQuoteRuneToASCII(d,c));}else{b.pad(B.AppendQuoteRune(d,c));}};M.prototype.fmtQc=function(a){return this.$val.fmtQc(a);};M.ptr.prototype.fmtFloat=function(a,b,c,d){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o;e=this;if(e.fmtFlags.precPresent){d=e.prec;}f=B.AppendFloat($subslice(new BQ(e.intbuf),0,1),a,((c<<24>>>24)),d,b);if(((1>=f.$length?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+1])===45)||((1>=f.$length?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+1])===43)){f=$subslice(f,1);}else{(0>=f.$length?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+0]=43);}if(e.fmtFlags.space&&((0>=f.$length?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+0])===43)&&!e.fmtFlags.plus){(0>=f.$length?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+0]=32);}if(((1>=f.$length?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+1])===73)||((1>=f.$length?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+1])===78)){g=e.fmtFlags.zero;e.fmtFlags.zero=false;if(((1>=f.$length?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+1])===78)&&!e.fmtFlags.space&&!e.fmtFlags.plus){f=$subslice(f,1);}e.pad(f);e.fmtFlags.zero=g;return;}if(e.fmtFlags.sharp&&!((c===98))){h=0;i=c;if((i===(118))||(i===(103))||(i===(71))||(i===(120))){h=d;if(h===-1){h=6;}}j=BR.zero();k=$subslice(new BQ(j),0,0);l=false;m=false;n=1;while(true){if(!(n=f.$length)?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+n]);if(o===(46)){l=true;}else if((o===(112))||(o===(80))){k=$appendSlice(k,$subslice(f,n));f=$subslice(f,0,n);}else if((o===(101))||(o===(69))){if(!((c===120))&&!((c===88))){k=$appendSlice(k,$subslice(f,n));f=$subslice(f,0,n);break;}if(!((((n<0||n>=f.$length)?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+n])===48))){m=true;}if(m){h=h-(1)>>0;}}else{if(!((((n<0||n>=f.$length)?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+n])===48))){m=true;}if(m){h=h-(1)>>0;}}}n=n+(1)>>0;}if(!l){if((f.$length===2)&&((1>=f.$length?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+1])===48)){h=h-(1)>>0;}f=$append(f,46);}while(true){if(!(h>0)){break;}f=$append(f,48);h=h-(1)>>0;}f=$appendSlice(f,k);}if(e.fmtFlags.plus||!(((0>=f.$length?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+0])===43))){if(e.fmtFlags.zero&&e.fmtFlags.widPresent&&e.wid>f.$length){e.buf.writeByte((0>=f.$length?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+0]));e.writePadding(e.wid-f.$length>>0);e.buf.write($subslice(f,1));return;}e.pad(f);return;}e.pad($subslice(f,1));};M.prototype.fmtFloat=function(a,b,c,d){return this.$val.fmtFloat(a,b,c,d);};$ptrType(R).prototype.write=function(a){var a,b;b=this;b.$set($appendSlice(b.$get(),a));};$ptrType(R).prototype.writeString=function(a){var a,b;b=this;b.$set($appendSlice(b.$get(),a));};$ptrType(R).prototype.writeByte=function(a){var a,b;b=this;b.$set($append(b.$get(),a));};$ptrType(R).prototype.writeRune=function(a){var a,b,c,d,e,f;b=this;if(a<128){b.$set($append(b.$get(),((a<<24>>>24))));return;}c=b.$get();d=c.$length;while(true){if(!((d+4>>0)>c.$capacity)){break;}c=$append(c,0);}f=C.EncodeRune((e=$subslice(c,d,(d+4>>0)),$subslice(new BQ(e.$array),e.$offset,e.$offset+e.$length)),a);b.$set($subslice(c,0,(d+f>>0)));};U=function(){var a,b,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:a=T.Get();$s=1;case 1:if($c){$c=false;a=a.$blk();}if(a&&a.$blk!==undefined){break s;}b=$assertType(a,BS);b.panicking=false;b.erroring=false;b.wrapErrs=false;b.fmt.init((b.$ptr_buf||(b.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},b))));$s=-1;return b;}return;}if($f===undefined){$f={$blk:U};}$f.a=a;$f.b=b;$f.$s=$s;$f.$r=$r;return $f;};S.ptr.prototype.free=function(){var a;a=this;if(a.buf.$capacity>65536){return;}a.buf=$subslice(a.buf,0,0);a.arg=$ifaceNil;a.value=new G.Value.ptr(BL.nil,0,0);a.wrappedErr=$ifaceNil;T.Put(a);};S.prototype.free=function(){return this.$val.free();};S.ptr.prototype.Width=function(){var a,b,c,d,e;a=0;b=false;c=this;d=c.fmt.wid;e=c.fmt.fmtFlags.widPresent;a=d;b=e;return[a,b];};S.prototype.Width=function(){return this.$val.Width();};S.ptr.prototype.Precision=function(){var a,b,c,d,e;a=0;b=false;c=this;d=c.fmt.prec;e=c.fmt.fmtFlags.precPresent;a=d;b=e;return[a,b];};S.prototype.Precision=function(){return this.$val.Precision();};S.ptr.prototype.Flag=function(a){var a,b,c;b=this;c=a;if(c===(45)){return b.fmt.fmtFlags.minus;}else if(c===(43)){return b.fmt.fmtFlags.plus||b.fmt.fmtFlags.plusV;}else if(c===(35)){return b.fmt.fmtFlags.sharp||b.fmt.fmtFlags.sharpV;}else if(c===(32)){return b.fmt.fmtFlags.space;}else if(c===(48)){return b.fmt.fmtFlags.zero;}return false;};S.prototype.Flag=function(a){return this.$val.Flag(a);};S.ptr.prototype.Write=function(a){var a,b,c,d,e,f;b=0;c=$ifaceNil;d=this;(d.$ptr_buf||(d.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},d))).write(a);e=a.$length;f=$ifaceNil;b=e;c=f;return[b,c];};S.prototype.Write=function(a){return this.$val.Write(a);};S.ptr.prototype.WriteString=function(a){var a,b,c,d,e,f;b=0;c=$ifaceNil;d=this;(d.$ptr_buf||(d.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},d))).writeString(a);e=a.length;f=$ifaceNil;b=e;c=f;return[b,c];};S.prototype.WriteString=function(a){return this.$val.WriteString(a);};X=function(a,b){var a,b,c,d,e,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=U();$s=1;case 1:if($c){$c=false;c=c.$blk();}if(c&&c.$blk!==undefined){break s;}d=c;$r=d.doPrintf(a,b);$s=2;case 2:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}e=($bytesToString(d.buf));d.free();$s=-1;return e;}return;}if($f===undefined){$f={$blk:X};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.$s=$s;$f.$r=$r;return $f;};$pkg.Sprintf=X;AE=function(a,b){var a,b,c,d,e,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=$clone(a,G.Value).Field(b);$s=1;case 1:if($c){$c=false;c=c.$blk();}if(c&&c.$blk!==undefined){break s;}d=c;if(($clone(d,G.Value).Kind()===20)&&!$clone(d,G.Value).IsNil()){$s=2;continue;}$s=3;continue;case 2:e=$clone(d,G.Value).Elem();$s=4;case 4:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}d=e;case 3:$s=-1;return d;}return;}if($f===undefined){$f={$blk:AE};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.$s=$s;$f.$r=$r;return $f;};AF=function(a){var a;return a>1000000||a<-1000000;};AG=function(a,b,c){var a,b,c,d,e,f,g,h,i,j,k,l;d=0;e=false;f=0;if(b>=c){g=0;h=false;i=c;d=g;e=h;f=i;return[d,e,f];}f=b;while(true){if(!(f>>24)>>0))>>0;e=true;f=f+(1)>>0;}return[d,e,f];};S.ptr.prototype.unknownType=function(a){var a,b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=this;if(!$clone(a,G.Value).IsValid()){(b.$ptr_buf||(b.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},b))).writeString("");$s=-1;return;}(b.$ptr_buf||(b.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},b))).writeByte(63);c=$clone(a,G.Value).Type().String();$s=1;case 1:if($c){$c=false;c=c.$blk();}if(c&&c.$blk!==undefined){break s;}$r=(b.$ptr_buf||(b.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},b))).writeString(c);$s=2;case 2:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}(b.$ptr_buf||(b.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},b))).writeByte(63);$s=-1;return;}return;}if($f===undefined){$f={$blk:S.ptr.prototype.unknownType};}$f.a=a;$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};S.prototype.unknownType=function(a){return this.$val.unknownType(a);};S.ptr.prototype.badVerb=function(a){var a,b,c,d,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=this;b.erroring=true;(b.$ptr_buf||(b.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},b))).writeString("%!");(b.$ptr_buf||(b.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},b))).writeRune(a);(b.$ptr_buf||(b.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},b))).writeByte(40);if(!($interfaceIsEqual(b.arg,$ifaceNil))){$s=2;continue;}if($clone(b.value,G.Value).IsValid()){$s=3;continue;}$s=4;continue;case 2:c=G.TypeOf(b.arg).String();$s=6;case 6:if($c){$c=false;c=c.$blk();}if(c&&c.$blk!==undefined){break s;}$r=(b.$ptr_buf||(b.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},b))).writeString(c);$s=7;case 7:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}(b.$ptr_buf||(b.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},b))).writeByte(61);$r=b.printArg(b.arg,118);$s=8;case 8:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=5;continue;case 3:d=$clone(b.value,G.Value).Type().String();$s=9;case 9:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}$r=(b.$ptr_buf||(b.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},b))).writeString(d);$s=10;case 10:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}(b.$ptr_buf||(b.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},b))).writeByte(61);$r=b.printValue($clone(b.value,G.Value),118,0);$s=11;case 11:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=5;continue;case 4:(b.$ptr_buf||(b.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},b))).writeString("");case 5:case 1:(b.$ptr_buf||(b.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},b))).writeByte(41);b.erroring=false;$s=-1;return;}return;}if($f===undefined){$f={$blk:S.ptr.prototype.badVerb};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.$s=$s;$f.$r=$r;return $f;};S.prototype.badVerb=function(a){return this.$val.badVerb(a);};S.ptr.prototype.fmtBool=function(a,b){var a,b,c,d,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;d=b;if((d===(116))||(d===(118))){$s=2;continue;}$s=3;continue;case 2:c.fmt.fmtBoolean(a);$s=4;continue;case 3:$r=c.badVerb(b);$s=5;case 5:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}case 4:case 1:$s=-1;return;}return;}if($f===undefined){$f={$blk:S.ptr.prototype.fmtBool};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.$s=$s;$f.$r=$r;return $f;};S.prototype.fmtBool=function(a,b){return this.$val.fmtBool(a,b);};S.ptr.prototype.fmt0x64=function(a,b){var a,b,c,d;c=this;d=c.fmt.fmtFlags.sharp;c.fmt.fmtFlags.sharp=b;c.fmt.fmtInteger(a,16,false,118,"0123456789abcdefx");c.fmt.fmtFlags.sharp=d;};S.prototype.fmt0x64=function(a,b){return this.$val.fmt0x64(a,b);};S.ptr.prototype.fmtInteger=function(a,b,c){var a,b,c,d,e,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:d=this;e=c;if(e===(118)){$s=2;continue;}if(e===(100)){$s=3;continue;}if(e===(98)){$s=4;continue;}if((e===(111))||(e===(79))){$s=5;continue;}if(e===(120)){$s=6;continue;}if(e===(88)){$s=7;continue;}if(e===(99)){$s=8;continue;}if(e===(113)){$s=9;continue;}if(e===(85)){$s=10;continue;}$s=11;continue;case 2:if(d.fmt.fmtFlags.sharpV&&!b){d.fmt0x64(a,true);}else{d.fmt.fmtInteger(a,10,b,c,"0123456789abcdefx");}$s=12;continue;case 3:d.fmt.fmtInteger(a,10,b,c,"0123456789abcdefx");$s=12;continue;case 4:d.fmt.fmtInteger(a,2,b,c,"0123456789abcdefx");$s=12;continue;case 5:d.fmt.fmtInteger(a,8,b,c,"0123456789abcdefx");$s=12;continue;case 6:d.fmt.fmtInteger(a,16,b,c,"0123456789abcdefx");$s=12;continue;case 7:d.fmt.fmtInteger(a,16,b,c,"0123456789ABCDEFX");$s=12;continue;case 8:d.fmt.fmtC(a);$s=12;continue;case 9:d.fmt.fmtQc(a);$s=12;continue;case 10:d.fmt.fmtUnicode(a);$s=12;continue;case 11:$r=d.badVerb(c);$s=13;case 13:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}case 12:case 1:$s=-1;return;}return;}if($f===undefined){$f={$blk:S.ptr.prototype.fmtInteger};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.$s=$s;$f.$r=$r;return $f;};S.prototype.fmtInteger=function(a,b,c){return this.$val.fmtInteger(a,b,c);};S.ptr.prototype.fmtFloat=function(a,b,c){var a,b,c,d,e,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:d=this;e=c;if(e===(118)){$s=2;continue;}if((e===(98))||(e===(103))||(e===(71))||(e===(120))||(e===(88))){$s=3;continue;}if((e===(102))||(e===(101))||(e===(69))){$s=4;continue;}if(e===(70)){$s=5;continue;}$s=6;continue;case 2:d.fmt.fmtFloat(a,b,103,-1);$s=7;continue;case 3:d.fmt.fmtFloat(a,b,c,-1);$s=7;continue;case 4:d.fmt.fmtFloat(a,b,c,6);$s=7;continue;case 5:d.fmt.fmtFloat(a,b,102,6);$s=7;continue;case 6:$r=d.badVerb(c);$s=8;case 8:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}case 7:case 1:$s=-1;return;}return;}if($f===undefined){$f={$blk:S.ptr.prototype.fmtFloat};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.$s=$s;$f.$r=$r;return $f;};S.prototype.fmtFloat=function(a,b,c){return this.$val.fmtFloat(a,b,c);};S.ptr.prototype.fmtComplex=function(a,b,c){var a,b,c,d,e,f,g,h,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:d=this;e=c;if((e===(118))||(e===(98))||(e===(103))||(e===(71))||(e===(120))||(e===(88))||(e===(102))||(e===(70))||(e===(101))||(e===(69))){$s=2;continue;}$s=3;continue;case 2:f=d.fmt.fmtFlags.plus;(d.$ptr_buf||(d.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},d))).writeByte(40);$r=d.fmtFloat(a.$real,(g=b/2,(g===g&&g!==1/0&&g!==-1/0)?g>>0:$throwRuntimeError("integer divide by zero")),c);$s=5;case 5:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}d.fmt.fmtFlags.plus=true;$r=d.fmtFloat(a.$imag,(h=b/2,(h===h&&h!==1/0&&h!==-1/0)?h>>0:$throwRuntimeError("integer divide by zero")),c);$s=6;case 6:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}(d.$ptr_buf||(d.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},d))).writeString("i)");d.fmt.fmtFlags.plus=f;$s=4;continue;case 3:$r=d.badVerb(c);$s=7;case 7:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}case 4:case 1:$s=-1;return;}return;}if($f===undefined){$f={$blk:S.ptr.prototype.fmtComplex};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.$s=$s;$f.$r=$r;return $f;};S.prototype.fmtComplex=function(a,b,c){return this.$val.fmtComplex(a,b,c);};S.ptr.prototype.fmtString=function(a,b){var a,b,c,d,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;d=b;if(d===(118)){$s=2;continue;}if(d===(115)){$s=3;continue;}if(d===(120)){$s=4;continue;}if(d===(88)){$s=5;continue;}if(d===(113)){$s=6;continue;}$s=7;continue;case 2:if(c.fmt.fmtFlags.sharpV){c.fmt.fmtQ(a);}else{c.fmt.fmtS(a);}$s=8;continue;case 3:c.fmt.fmtS(a);$s=8;continue;case 4:c.fmt.fmtSx(a,"0123456789abcdefx");$s=8;continue;case 5:c.fmt.fmtSx(a,"0123456789ABCDEFX");$s=8;continue;case 6:c.fmt.fmtQ(a);$s=8;continue;case 7:$r=c.badVerb(b);$s=9;case 9:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}case 8:case 1:$s=-1;return;}return;}if($f===undefined){$f={$blk:S.ptr.prototype.fmtString};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.$s=$s;$f.$r=$r;return $f;};S.prototype.fmtString=function(a,b){return this.$val.fmtString(a,b);};S.ptr.prototype.fmtBytes=function(a,b,c){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:d=this;e=b;if((e===(118))||(e===(100))){$s=2;continue;}if(e===(115)){$s=3;continue;}if(e===(120)){$s=4;continue;}if(e===(88)){$s=5;continue;}if(e===(113)){$s=6;continue;}$s=7;continue;case 2:if(d.fmt.fmtFlags.sharpV){(d.$ptr_buf||(d.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},d))).writeString(c);if(a===BQ.nil){(d.$ptr_buf||(d.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},d))).writeString("(nil)");$s=-1;return;}(d.$ptr_buf||(d.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},d))).writeByte(123);f=a;g=0;while(true){if(!(g=f.$length)?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+g]);if(h>0){(d.$ptr_buf||(d.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},d))).writeString(", ");}d.fmt0x64((new $Uint64(0,i)),true);g++;}(d.$ptr_buf||(d.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},d))).writeByte(125);}else{(d.$ptr_buf||(d.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},d))).writeByte(91);j=a;k=0;while(true){if(!(k=j.$length)?($throwRuntimeError("index out of range"),undefined):j.$array[j.$offset+k]);if(l>0){(d.$ptr_buf||(d.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},d))).writeByte(32);}d.fmt.fmtInteger((new $Uint64(0,m)),10,false,b,"0123456789abcdefx");k++;}(d.$ptr_buf||(d.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},d))).writeByte(93);}$s=8;continue;case 3:d.fmt.fmtBs(a);$s=8;continue;case 4:d.fmt.fmtBx(a,"0123456789abcdefx");$s=8;continue;case 5:d.fmt.fmtBx(a,"0123456789ABCDEFX");$s=8;continue;case 6:d.fmt.fmtQ(($bytesToString(a)));$s=8;continue;case 7:n=G.ValueOf(a);$s=9;case 9:if($c){$c=false;n=n.$blk();}if(n&&n.$blk!==undefined){break s;}$r=d.printValue($clone(n,G.Value),b,0);$s=10;case 10:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}case 8:case 1:$s=-1;return;}return;}if($f===undefined){$f={$blk:S.ptr.prototype.fmtBytes};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.$s=$s;$f.$r=$r;return $f;};S.prototype.fmtBytes=function(a,b,c){return this.$val.fmtBytes(a,b,c);};S.ptr.prototype.fmtPointer=function(a,b){var a,b,c,d,e,f,g,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;d=0;e=$clone(a,G.Value).Kind();if((e===(18))||(e===(19))||(e===(21))||(e===(22))||(e===(23))||(e===(26))){$s=2;continue;}$s=3;continue;case 2:d=$clone(a,G.Value).Pointer();$s=4;continue;case 3:$r=c.badVerb(b);$s=5;case 5:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=-1;return;case 4:case 1:f=b;if(f===(118)){$s=7;continue;}if(f===(112)){$s=8;continue;}if((f===(98))||(f===(111))||(f===(100))||(f===(120))||(f===(88))){$s=9;continue;}$s=10;continue;case 7:if(c.fmt.fmtFlags.sharpV){$s=12;continue;}$s=13;continue;case 12:(c.$ptr_buf||(c.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},c))).writeByte(40);g=$clone(a,G.Value).Type().String();$s=15;case 15:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}$r=(c.$ptr_buf||(c.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},c))).writeString(g);$s=16;case 16:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}(c.$ptr_buf||(c.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},c))).writeString(")(");if(d===0){(c.$ptr_buf||(c.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},c))).writeString("nil");}else{c.fmt0x64((new $Uint64(0,d.constructor===Number?d:1)),true);}(c.$ptr_buf||(c.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},c))).writeByte(41);$s=14;continue;case 13:if(d===0){c.fmt.padString("");}else{c.fmt0x64((new $Uint64(0,d.constructor===Number?d:1)),!c.fmt.fmtFlags.sharp);}case 14:$s=11;continue;case 8:c.fmt0x64((new $Uint64(0,d.constructor===Number?d:1)),!c.fmt.fmtFlags.sharp);$s=11;continue;case 9:$r=c.fmtInteger((new $Uint64(0,d.constructor===Number?d:1)),false,b);$s=17;case 17:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=11;continue;case 10:$r=c.badVerb(b);$s=18;case 18:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}case 11:case 6:$s=-1;return;}return;}if($f===undefined){$f={$blk:S.ptr.prototype.fmtPointer};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.$s=$s;$f.$r=$r;return $f;};S.prototype.fmtPointer=function(a,b){return this.$val.fmtPointer(a,b);};S.ptr.prototype.catchPanic=function(a,b,c){var a,b,c,d,e,f,g,h,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:d=this;e=$recover();if(!($interfaceIsEqual(e,$ifaceNil))){$s=1;continue;}$s=2;continue;case 1:f=G.ValueOf(a);$s=3;case 3:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}g=f;if(($clone(g,G.Value).Kind()===22)&&$clone(g,G.Value).IsNil()){(d.$ptr_buf||(d.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},d))).writeString("");$s=-1;return;}if(d.panicking){$panic(e);}h=$clone(d.fmt.fmtFlags,L);d.fmt.clearflags();(d.$ptr_buf||(d.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},d))).writeString("%!");(d.$ptr_buf||(d.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},d))).writeRune(b);(d.$ptr_buf||(d.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},d))).writeString("(PANIC=");(d.$ptr_buf||(d.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},d))).writeString(c);(d.$ptr_buf||(d.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},d))).writeString(" method: ");d.panicking=true;$r=d.printArg(e,118);$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}d.panicking=false;(d.$ptr_buf||(d.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},d))).writeByte(41);L.copy(d.fmt.fmtFlags,h);case 2:$s=-1;return;}return;}if($f===undefined){$f={$blk:S.ptr.prototype.catchPanic};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.$s=$s;$f.$r=$r;return $f;};S.prototype.catchPanic=function(a,b,c){return this.$val.catchPanic(a,b,c);};S.ptr.prototype.handleMethods=function(a){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,$s,$deferred,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;q=$f.q;r=$f.r;s=$f.s;$s=$f.$s;$deferred=$f.$deferred;$r=$f.$r;}var $err=null;try{s:while(true){switch($s){case 0:$deferred=[];$deferred.index=$curGoroutine.deferStack.length;$curGoroutine.deferStack.push($deferred);b=false;c=this;if(c.erroring){$s=-1;return b;}if(a===119){$s=1;continue;}$s=2;continue;case 1:d=$assertType(c.arg,$error,true);e=d[0];f=d[1];if(!f||!c.wrapErrs||!($interfaceIsEqual(c.wrappedErr,$ifaceNil))){$s=3;continue;}$s=4;continue;case 3:c.wrappedErr=$ifaceNil;c.wrapErrs=false;$r=c.badVerb(a);$s=5;case 5:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}b=true;$s=-1;return b;case 4:c.wrappedErr=e;a=118;case 2:g=$assertType(c.arg,O,true);h=g[0];i=g[1];if(i){$s=6;continue;}$s=7;continue;case 6:b=true;$deferred.push([$methodVal(c,"catchPanic"),[c.arg,a,"Format"]]);$r=h.Format(c,a);$s=8;case 8:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=-1;return b;case 7:if(c.fmt.fmtFlags.sharpV){$s=9;continue;}$s=10;continue;case 9:j=$assertType(c.arg,Q,true);k=j[0];l=j[1];if(l){$s=12;continue;}$s=13;continue;case 12:b=true;$deferred.push([$methodVal(c,"catchPanic"),[c.arg,a,"GoString"]]);m=k.GoString();$s=14;case 14:if($c){$c=false;m=m.$blk();}if(m&&m.$blk!==undefined){break s;}$r=c.fmt.fmtS(m);$s=15;case 15:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=-1;return b;case 13:$s=11;continue;case 10:n=a;if((n===(118))||(n===(115))||(n===(120))||(n===(88))||(n===(113))){$s=17;continue;}$s=18;continue;case 17:o=c.arg;if($assertType(o,$error,true)[1]){$s=19;continue;}if($assertType(o,P,true)[1]){$s=20;continue;}$s=21;continue;case 19:p=o;b=true;$deferred.push([$methodVal(c,"catchPanic"),[c.arg,a,"Error"]]);r=p.Error();$s=22;case 22:if($c){$c=false;r=r.$blk();}if(r&&r.$blk!==undefined){break s;}$r=c.fmtString(r,a);$s=23;case 23:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=-1;return b;case 20:q=o;b=true;$deferred.push([$methodVal(c,"catchPanic"),[c.arg,a,"String"]]);s=q.String();$s=24;case 24:if($c){$c=false;s=s.$blk();}if(s&&s.$blk!==undefined){break s;}$r=c.fmtString(s,a);$s=25;case 25:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=-1;return b;case 21:case 18:case 16:case 11:b=false;$s=-1;return b;}return;}}catch(err){$err=err;$s=-1;}finally{$callDeferred($deferred,$err);if(!$curGoroutine.asleep){return b;}if($curGoroutine.asleep){if($f===undefined){$f={$blk:S.ptr.prototype.handleMethods};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.p=p;$f.q=q;$f.r=r;$f.s=s;$f.$s=$s;$f.$deferred=$deferred;$f.$r=$r;return $f;}}};S.prototype.handleMethods=function(a){return this.$val.handleMethods(a);};S.ptr.prototype.printArg=function(a,b){var a,aa,ab,ac,ad,ae,af,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;aa=$f.aa;ab=$f.ab;ac=$f.ac;ad=$f.ad;ae=$f.ae;af=$f.af;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;q=$f.q;r=$f.r;s=$f.s;t=$f.t;u=$f.u;v=$f.v;w=$f.w;x=$f.x;y=$f.y;z=$f.z;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;c.arg=a;c.value=new G.Value.ptr(BL.nil,0,0);if($interfaceIsEqual(a,$ifaceNil)){$s=1;continue;}$s=2;continue;case 1:d=b;if((d===(84))||(d===(118))){$s=4;continue;}$s=5;continue;case 4:c.fmt.padString("");$s=6;continue;case 5:$r=c.badVerb(b);$s=7;case 7:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}case 6:case 3:$s=-1;return;case 2:e=b;if(e===(84)){$s=9;continue;}if(e===(112)){$s=10;continue;}$s=11;continue;case 9:f=G.TypeOf(a).String();$s=12;case 12:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}$r=c.fmt.fmtS(f);$s=13;case 13:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=-1;return;case 10:g=G.ValueOf(a);$s=14;case 14:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}$r=c.fmtPointer($clone(g,G.Value),112);$s=15;case 15:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=-1;return;case 11:case 8:h=a;if($assertType(h,$Bool,true)[1]){$s=16;continue;}if($assertType(h,$Float32,true)[1]){$s=17;continue;}if($assertType(h,$Float64,true)[1]){$s=18;continue;}if($assertType(h,$Complex64,true)[1]){$s=19;continue;}if($assertType(h,$Complex128,true)[1]){$s=20;continue;}if($assertType(h,$Int,true)[1]){$s=21;continue;}if($assertType(h,$Int8,true)[1]){$s=22;continue;}if($assertType(h,$Int16,true)[1]){$s=23;continue;}if($assertType(h,$Int32,true)[1]){$s=24;continue;}if($assertType(h,$Int64,true)[1]){$s=25;continue;}if($assertType(h,$Uint,true)[1]){$s=26;continue;}if($assertType(h,$Uint8,true)[1]){$s=27;continue;}if($assertType(h,$Uint16,true)[1]){$s=28;continue;}if($assertType(h,$Uint32,true)[1]){$s=29;continue;}if($assertType(h,$Uint64,true)[1]){$s=30;continue;}if($assertType(h,$Uintptr,true)[1]){$s=31;continue;}if($assertType(h,$String,true)[1]){$s=32;continue;}if($assertType(h,BQ,true)[1]){$s=33;continue;}if($assertType(h,G.Value,true)[1]){$s=34;continue;}$s=35;continue;case 16:i=h.$val;$r=c.fmtBool(i,b);$s=37;case 37:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=36;continue;case 17:j=h.$val;$r=c.fmtFloat((j),32,b);$s=38;case 38:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=36;continue;case 18:k=h.$val;$r=c.fmtFloat(k,64,b);$s=39;case 39:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=36;continue;case 19:l=h.$val;$r=c.fmtComplex((new $Complex128(l.$real,l.$imag)),64,b);$s=40;case 40:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=36;continue;case 20:m=h.$val;$r=c.fmtComplex(m,128,b);$s=41;case 41:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=36;continue;case 21:n=h.$val;$r=c.fmtInteger((new $Uint64(0,n)),true,b);$s=42;case 42:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=36;continue;case 22:o=h.$val;$r=c.fmtInteger((new $Uint64(0,o)),true,b);$s=43;case 43:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=36;continue;case 23:p=h.$val;$r=c.fmtInteger((new $Uint64(0,p)),true,b);$s=44;case 44:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=36;continue;case 24:q=h.$val;$r=c.fmtInteger((new $Uint64(0,q)),true,b);$s=45;case 45:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=36;continue;case 25:r=h.$val;$r=c.fmtInteger((new $Uint64(r.$high,r.$low)),true,b);$s=46;case 46:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=36;continue;case 26:s=h.$val;$r=c.fmtInteger((new $Uint64(0,s)),false,b);$s=47;case 47:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=36;continue;case 27:t=h.$val;$r=c.fmtInteger((new $Uint64(0,t)),false,b);$s=48;case 48:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=36;continue;case 28:u=h.$val;$r=c.fmtInteger((new $Uint64(0,u)),false,b);$s=49;case 49:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=36;continue;case 29:v=h.$val;$r=c.fmtInteger((new $Uint64(0,v)),false,b);$s=50;case 50:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=36;continue;case 30:w=h.$val;$r=c.fmtInteger(w,false,b);$s=51;case 51:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=36;continue;case 31:x=h.$val;$r=c.fmtInteger((new $Uint64(0,x.constructor===Number?x:1)),false,b);$s=52;case 52:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=36;continue;case 32:y=h.$val;$r=c.fmtString(y,b);$s=53;case 53:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=36;continue;case 33:z=h.$val;$r=c.fmtBytes(z,b,"[]byte");$s=54;case 54:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=36;continue;case 34:aa=h.$val;if($clone(aa,G.Value).IsValid()&&$clone(aa,G.Value).CanInterface()){$s=55;continue;}$s=56;continue;case 55:ac=$clone(aa,G.Value).Interface();$s=57;case 57:if($c){$c=false;ac=ac.$blk();}if(ac&&ac.$blk!==undefined){break s;}c.arg=ac;ad=c.handleMethods(b);$s=60;case 60:if($c){$c=false;ad=ad.$blk();}if(ad&&ad.$blk!==undefined){break s;}if(ad){$s=58;continue;}$s=59;continue;case 58:$s=-1;return;case 59:case 56:$r=c.printValue($clone(aa,G.Value),b,0);$s=61;case 61:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=36;continue;case 35:ab=h;ae=c.handleMethods(b);$s=64;case 64:if($c){$c=false;ae=ae.$blk();}if(ae&&ae.$blk!==undefined){break s;}if(!ae){$s=62;continue;}$s=63;continue;case 62:af=G.ValueOf(ab);$s=65;case 65:if($c){$c=false;af=af.$blk();}if(af&&af.$blk!==undefined){break s;}$r=c.printValue($clone(af,G.Value),b,0);$s=66;case 66:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}case 63:case 36:$s=-1;return;}return;}if($f===undefined){$f={$blk:S.ptr.prototype.printArg};}$f.a=a;$f.aa=aa;$f.ab=ab;$f.ac=ac;$f.ad=ad;$f.ae=ae;$f.af=af;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.p=p;$f.q=q;$f.r=r;$f.s=s;$f.t=t;$f.u=u;$f.v=v;$f.w=w;$f.x=x;$f.y=y;$f.z=z;$f.$s=$s;$f.$r=$r;return $f;};S.prototype.printArg=function(a,b){return this.$val.printArg(a,b);};S.ptr.prototype.printValue=function(a,b,c){var a,aa,ab,ac,ad,ae,af,ag,ah,ai,aj,ak,al,am,an,ao,ap,aq,ar,as,at,au,av,aw,ax,ay,az,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;aa=$f.aa;ab=$f.ab;ac=$f.ac;ad=$f.ad;ae=$f.ae;af=$f.af;ag=$f.ag;ah=$f.ah;ai=$f.ai;aj=$f.aj;ak=$f.ak;al=$f.al;am=$f.am;an=$f.an;ao=$f.ao;ap=$f.ap;aq=$f.aq;ar=$f.ar;as=$f.as;at=$f.at;au=$f.au;av=$f.av;aw=$f.aw;ax=$f.ax;ay=$f.ay;az=$f.az;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;q=$f.q;r=$f.r;s=$f.s;t=$f.t;u=$f.u;v=$f.v;w=$f.w;x=$f.x;y=$f.y;z=$f.z;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:d=this;if(c>0&&$clone(a,G.Value).IsValid()&&$clone(a,G.Value).CanInterface()){$s=1;continue;}$s=2;continue;case 1:e=$clone(a,G.Value).Interface();$s=3;case 3:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}d.arg=e;f=d.handleMethods(b);$s=6;case 6:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}if(f){$s=4;continue;}$s=5;continue;case 4:$s=-1;return;case 5:case 2:d.arg=$ifaceNil;d.value=a;g=a;h=$clone(a,G.Value).Kind();if(h===(0)){$s=8;continue;}if(h===(1)){$s=9;continue;}if((h===(2))||(h===(3))||(h===(4))||(h===(5))||(h===(6))){$s=10;continue;}if((h===(7))||(h===(8))||(h===(9))||(h===(10))||(h===(11))||(h===(12))){$s=11;continue;}if(h===(13)){$s=12;continue;}if(h===(14)){$s=13;continue;}if(h===(15)){$s=14;continue;}if(h===(16)){$s=15;continue;}if(h===(24)){$s=16;continue;}if(h===(21)){$s=17;continue;}if(h===(25)){$s=18;continue;}if(h===(20)){$s=19;continue;}if((h===(17))||(h===(23))){$s=20;continue;}if(h===(22)){$s=21;continue;}if((h===(18))||(h===(19))||(h===(26))){$s=22;continue;}$s=23;continue;case 8:if(c===0){$s=25;continue;}$s=26;continue;case 25:(d.$ptr_buf||(d.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},d))).writeString("");$s=27;continue;case 26:i=b;if(i===(118)){$s=29;continue;}$s=30;continue;case 29:(d.$ptr_buf||(d.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},d))).writeString("");$s=31;continue;case 30:$r=d.badVerb(b);$s=32;case 32:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}case 31:case 28:case 27:$s=24;continue;case 9:$r=d.fmtBool($clone(g,G.Value).Bool(),b);$s=33;case 33:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=24;continue;case 10:$r=d.fmtInteger(((j=$clone(g,G.Value).Int(),new $Uint64(j.$high,j.$low))),true,b);$s=34;case 34:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=24;continue;case 11:$r=d.fmtInteger($clone(g,G.Value).Uint(),false,b);$s=35;case 35:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=24;continue;case 12:$r=d.fmtFloat($clone(g,G.Value).Float(),32,b);$s=36;case 36:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=24;continue;case 13:$r=d.fmtFloat($clone(g,G.Value).Float(),64,b);$s=37;case 37:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=24;continue;case 14:$r=d.fmtComplex($clone(g,G.Value).Complex(),64,b);$s=38;case 38:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=24;continue;case 15:$r=d.fmtComplex($clone(g,G.Value).Complex(),128,b);$s=39;case 39:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=24;continue;case 16:k=$clone(g,G.Value).String();$s=40;case 40:if($c){$c=false;k=k.$blk();}if(k&&k.$blk!==undefined){break s;}$r=d.fmtString(k,b);$s=41;case 41:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=24;continue;case 17:if(d.fmt.fmtFlags.sharpV){$s=42;continue;}$s=43;continue;case 42:l=$clone(g,G.Value).Type().String();$s=45;case 45:if($c){$c=false;l=l.$blk();}if(l&&l.$blk!==undefined){break s;}$r=(d.$ptr_buf||(d.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},d))).writeString(l);$s=46;case 46:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}if($clone(g,G.Value).IsNil()){(d.$ptr_buf||(d.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},d))).writeString("(nil)");$s=-1;return;}(d.$ptr_buf||(d.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},d))).writeByte(123);$s=44;continue;case 43:(d.$ptr_buf||(d.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},d))).writeString("map[");case 44:m=D.Sort($clone(g,G.Value));$s=47;case 47:if($c){$c=false;m=m.$blk();}if(m&&m.$blk!==undefined){break s;}n=m;o=n.Key;p=0;case 48:if(!(p=o.$length)?($throwRuntimeError("index out of range"),undefined):o.$array[o.$offset+p]);if(q>0){if(d.fmt.fmtFlags.sharpV){(d.$ptr_buf||(d.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},d))).writeString(", ");}else{(d.$ptr_buf||(d.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},d))).writeByte(32);}}$r=d.printValue($clone(r,G.Value),b,c+1>>0);$s=50;case 50:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}(d.$ptr_buf||(d.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},d))).writeByte(58);$r=d.printValue($clone((s=n.Value,((q<0||q>=s.$length)?($throwRuntimeError("index out of range"),undefined):s.$array[s.$offset+q])),G.Value),b,c+1>>0);$s=51;case 51:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}p++;$s=48;continue;case 49:if(d.fmt.fmtFlags.sharpV){(d.$ptr_buf||(d.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},d))).writeByte(125);}else{(d.$ptr_buf||(d.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},d))).writeByte(93);}$s=24;continue;case 18:if(d.fmt.fmtFlags.sharpV){$s=52;continue;}$s=53;continue;case 52:t=$clone(g,G.Value).Type().String();$s=54;case 54:if($c){$c=false;t=t.$blk();}if(t&&t.$blk!==undefined){break s;}$r=(d.$ptr_buf||(d.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},d))).writeString(t);$s=55;case 55:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}case 53:(d.$ptr_buf||(d.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},d))).writeByte(123);u=0;case 56:if(!(u<$clone(g,G.Value).NumField())){$s=57;continue;}if(u>0){if(d.fmt.fmtFlags.sharpV){(d.$ptr_buf||(d.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},d))).writeString(", ");}else{(d.$ptr_buf||(d.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},d))).writeByte(32);}}if(d.fmt.fmtFlags.plusV||d.fmt.fmtFlags.sharpV){$s=58;continue;}$s=59;continue;case 58:v=$clone(g,G.Value).Type().Field(u);$s=60;case 60:if($c){$c=false;v=v.$blk();}if(v&&v.$blk!==undefined){break s;}w=v.Name;if(!(w==="")){(d.$ptr_buf||(d.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},d))).writeString(w);(d.$ptr_buf||(d.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},d))).writeByte(58);}case 59:x=AE($clone(g,G.Value),u);$s=61;case 61:if($c){$c=false;x=x.$blk();}if(x&&x.$blk!==undefined){break s;}$r=d.printValue($clone(x,G.Value),b,c+1>>0);$s=62;case 62:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}u=u+(1)>>0;$s=56;continue;case 57:(d.$ptr_buf||(d.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},d))).writeByte(125);$s=24;continue;case 19:y=$clone(g,G.Value).Elem();$s=63;case 63:if($c){$c=false;y=y.$blk();}if(y&&y.$blk!==undefined){break s;}z=y;if(!$clone(z,G.Value).IsValid()){$s=64;continue;}$s=65;continue;case 64:if(d.fmt.fmtFlags.sharpV){$s=67;continue;}$s=68;continue;case 67:aa=$clone(g,G.Value).Type().String();$s=70;case 70:if($c){$c=false;aa=aa.$blk();}if(aa&&aa.$blk!==undefined){break s;}$r=(d.$ptr_buf||(d.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},d))).writeString(aa);$s=71;case 71:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}(d.$ptr_buf||(d.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},d))).writeString("(nil)");$s=69;continue;case 68:(d.$ptr_buf||(d.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},d))).writeString("");case 69:$s=66;continue;case 65:$r=d.printValue($clone(z,G.Value),b,c+1>>0);$s=72;case 72:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}case 66:$s=24;continue;case 20:ab=b;if((ab===(115))||(ab===(113))||(ab===(120))||(ab===(88))){$s=74;continue;}$s=75;continue;case 74:ac=$clone(g,G.Value).Type();ad=ac.Elem();$s=78;case 78:if($c){$c=false;ad=ad.$blk();}if(ad&&ad.$blk!==undefined){break s;}ae=ad.Kind();$s=79;case 79:if($c){$c=false;ae=ae.$blk();}if(ae&&ae.$blk!==undefined){break s;}if(ae===8){$s=76;continue;}$s=77;continue;case 76:af=BQ.nil;if($clone(g,G.Value).Kind()===23){$s=80;continue;}if($clone(g,G.Value).CanAddr()){$s=81;continue;}$s=82;continue;case 80:ag=$clone(g,G.Value).Bytes();$s=84;case 84:if($c){$c=false;ag=ag.$blk();}if(ag&&ag.$blk!==undefined){break s;}af=ag;$s=83;continue;case 81:ah=$clone(g,G.Value).Slice(0,$clone(g,G.Value).Len());$s=85;case 85:if($c){$c=false;ah=ah.$blk();}if(ah&&ah.$blk!==undefined){break s;}ai=$clone(ah,G.Value).Bytes();$s=86;case 86:if($c){$c=false;ai=ai.$blk();}if(ai&&ai.$blk!==undefined){break s;}af=ai;$s=83;continue;case 82:af=$makeSlice(BQ,$clone(g,G.Value).Len());aj=af;ak=0;case 87:if(!(ak=af.$length)?($throwRuntimeError("index out of range"),undefined):af.$array[af.$offset+al]=((an.$low<<24>>>24)));ak++;$s=87;continue;case 88:case 83:ao=af;ap=b;aq=ac.String();$s=91;case 91:if($c){$c=false;aq=aq.$blk();}if(aq&&aq.$blk!==undefined){break s;}ar=aq;$r=d.fmtBytes(ao,ap,ar);$s=92;case 92:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=-1;return;case 77:case 75:case 73:if(d.fmt.fmtFlags.sharpV){$s=93;continue;}$s=94;continue;case 93:as=$clone(g,G.Value).Type().String();$s=96;case 96:if($c){$c=false;as=as.$blk();}if(as&&as.$blk!==undefined){break s;}$r=(d.$ptr_buf||(d.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},d))).writeString(as);$s=97;case 97:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}if(($clone(g,G.Value).Kind()===23)&&$clone(g,G.Value).IsNil()){(d.$ptr_buf||(d.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},d))).writeString("(nil)");$s=-1;return;}(d.$ptr_buf||(d.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},d))).writeByte(123);at=0;case 98:if(!(at<$clone(g,G.Value).Len())){$s=99;continue;}if(at>0){(d.$ptr_buf||(d.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},d))).writeString(", ");}au=$clone(g,G.Value).Index(at);$s=100;case 100:if($c){$c=false;au=au.$blk();}if(au&&au.$blk!==undefined){break s;}$r=d.printValue($clone(au,G.Value),b,c+1>>0);$s=101;case 101:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}at=at+(1)>>0;$s=98;continue;case 99:(d.$ptr_buf||(d.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},d))).writeByte(125);$s=95;continue;case 94:(d.$ptr_buf||(d.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},d))).writeByte(91);av=0;case 102:if(!(av<$clone(g,G.Value).Len())){$s=103;continue;}if(av>0){(d.$ptr_buf||(d.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},d))).writeByte(32);}aw=$clone(g,G.Value).Index(av);$s=104;case 104:if($c){$c=false;aw=aw.$blk();}if(aw&&aw.$blk!==undefined){break s;}$r=d.printValue($clone(aw,G.Value),b,c+1>>0);$s=105;case 105:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}av=av+(1)>>0;$s=102;continue;case 103:(d.$ptr_buf||(d.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},d))).writeByte(93);case 95:$s=24;continue;case 21:if((c===0)&&!(($clone(g,G.Value).Pointer()===0))){$s=106;continue;}$s=107;continue;case 106:ax=$clone(g,G.Value).Elem();$s=109;case 109:if($c){$c=false;ax=ax.$blk();}if(ax&&ax.$blk!==undefined){break s;}ay=ax;az=$clone(ay,G.Value).Kind();if((az===(17))||(az===(23))||(az===(25))||(az===(21))){$s=110;continue;}$s=111;continue;case 110:(d.$ptr_buf||(d.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},d))).writeByte(38);$r=d.printValue($clone(ay,G.Value),b,c+1>>0);$s=112;case 112:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=-1;return;case 111:case 108:case 107:$r=d.fmtPointer($clone(g,G.Value),b);$s=113;case 113:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=24;continue;case 22:$r=d.fmtPointer($clone(g,G.Value),b);$s=114;case 114:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=24;continue;case 23:$r=d.unknownType($clone(g,G.Value));$s=115;case 115:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}case 24:case 7:$s=-1;return;}return;}if($f===undefined){$f={$blk:S.ptr.prototype.printValue};}$f.a=a;$f.aa=aa;$f.ab=ab;$f.ac=ac;$f.ad=ad;$f.ae=ae;$f.af=af;$f.ag=ag;$f.ah=ah;$f.ai=ai;$f.aj=aj;$f.ak=ak;$f.al=al;$f.am=am;$f.an=an;$f.ao=ao;$f.ap=ap;$f.aq=aq;$f.ar=ar;$f.as=as;$f.at=at;$f.au=au;$f.av=av;$f.aw=aw;$f.ax=ax;$f.ay=ay;$f.az=az;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.p=p;$f.q=q;$f.r=r;$f.s=s;$f.t=t;$f.u=u;$f.v=v;$f.w=w;$f.x=x;$f.y=y;$f.z=z;$f.$s=$s;$f.$r=$r;return $f;};S.prototype.printValue=function(a,b,c){return this.$val.printValue(a,b,c);};AH=function(a,b){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=0;d=false;e=0;e=b;if(b=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+b]),$Int,true);c=f[0];d=f[1];if(!d){$s=3;continue;}$s=4;continue;case 3:g=G.ValueOf(((b<0||b>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+b]));$s=6;case 6:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}h=g;i=$clone(h,G.Value).Kind();if((i===(2))||(i===(3))||(i===(4))||(i===(5))||(i===(6))){j=$clone(h,G.Value).Int();if((k=(new $Int64(0,(((j.$low+((j.$high>>31)*4294967296))>>0)))),(k.$high===j.$high&&k.$low===j.$low))){c=(((j.$low+((j.$high>>31)*4294967296))>>0));d=true;}}else if((i===(7))||(i===(8))||(i===(9))||(i===(10))||(i===(11))||(i===(12))){l=$clone(h,G.Value).Uint();if((m=(new $Int64(l.$high,l.$low)),(m.$high>0||(m.$high===0&&m.$low>=0)))&&(n=(new $Uint64(0,((l.$low>>0)))),(n.$high===l.$high&&n.$low===l.$low))){c=((l.$low>>0));d=true;}}case 5:case 4:e=b+1>>0;if(AF(c)){c=0;d=false;}case 2:$s=-1;return[c,d,e];}return;}if($f===undefined){$f={$blk:AH};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.$s=$s;$f.$r=$r;return $f;};AI=function(a){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u;b=0;c=0;d=false;if(a.length<3){e=0;f=1;g=false;b=e;c=f;d=g;return[b,c,d];}h=1;while(true){if(!(h>0;o=false;b=m;c=n;d=o;return[b,c,d];}p=j-1>>0;q=h+1>>0;r=true;b=p;c=q;d=r;return[b,c,d];}h=h+(1)>>0;}s=0;t=1;u=false;b=s;c=t;d=u;return[b,c,d];};S.ptr.prototype.argNumber=function(a,b,c,d){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u;e=0;f=0;g=false;h=this;if(b.length<=c||!((b.charCodeAt(c)===91))){i=a;j=c;k=false;e=i;f=j;g=k;return[e,f,g];}h.reordered=true;l=AI($substring(b,c));m=l[0];n=l[1];o=l[2];if(o&&0<=m&&m>0;r=true;e=p;f=q;g=r;return[e,f,g];}h.goodArgNum=false;s=a;t=c+n>>0;u=o;e=s;f=t;g=u;return[e,f,g];};S.prototype.argNumber=function(a,b,c,d){return this.$val.argNumber(a,b,c,d);};S.ptr.prototype.badArgNum=function(a){var a,b;b=this;(b.$ptr_buf||(b.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},b))).writeString("%!");(b.$ptr_buf||(b.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},b))).writeRune(a);(b.$ptr_buf||(b.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},b))).writeString("(BADINDEX)");};S.prototype.badArgNum=function(a){return this.$val.badArgNum(a);};S.ptr.prototype.missingArg=function(a){var a,b;b=this;(b.$ptr_buf||(b.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},b))).writeString("%!");(b.$ptr_buf||(b.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},b))).writeRune(a);(b.$ptr_buf||(b.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},b))).writeString("(MISSING)");};S.prototype.missingArg=function(a){return this.$val.missingArg(a);};S.ptr.prototype.doPrintf=function(a,b){var a,aa,ab,ac,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;aa=$f.aa;ab=$f.ab;ac=$f.ac;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;q=$f.q;r=$f.r;s=$f.s;t=$f.t;u=$f.u;v=$f.v;w=$f.w;x=$f.x;y=$f.y;z=$f.z;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;d=a.length;e=0;f=false;c.reordered=false;g=0;case 1:if(!(g>0;}if(g>h){(c.$ptr_buf||(c.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},c))).writeString($substring(a,h,g));}if(g>=d){$s=2;continue;}g=g+(1)>>0;c.fmt.clearflags();case 3:if(!(g=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+e]),((i>>0)));$s=15;case 15:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}e=e+(1)>>0;g=g+(1)>>0;$s=1;continue s;case 14:$s=4;continue s;case 12:case 5:g=g+(1)>>0;$s=3;continue;case 4:k=c.argNumber(e,a,g,b.$length);e=k[0];g=k[1];f=k[2];if(g>0;m=AH(b,e);$s=19;case 19:if($c){$c=false;m=m.$blk();}if(m&&m.$blk!==undefined){break s;}l=m;c.fmt.wid=l[0];c.fmt.fmtFlags.widPresent=l[1];e=l[2];if(!c.fmt.fmtFlags.widPresent){(c.$ptr_buf||(c.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},c))).writeString("%!(BADWIDTH)");}if(c.fmt.wid<0){c.fmt.wid=-c.fmt.wid;c.fmt.fmtFlags.minus=true;c.fmt.fmtFlags.zero=false;}f=false;$s=18;continue;case 17:n=AG(a,g,d);c.fmt.wid=n[0];c.fmt.fmtFlags.widPresent=n[1];g=n[2];if(f&&c.fmt.fmtFlags.widPresent){c.goodArgNum=false;}case 18:if((g+1>>0)>0;if(f){c.goodArgNum=false;}o=c.argNumber(e,a,g,b.$length);e=o[0];g=o[1];f=o[2];if(g>0;q=AH(b,e);$s=25;case 25:if($c){$c=false;q=q.$blk();}if(q&&q.$blk!==undefined){break s;}p=q;c.fmt.prec=p[0];c.fmt.fmtFlags.precPresent=p[1];e=p[2];if(c.fmt.prec<0){c.fmt.prec=0;c.fmt.fmtFlags.precPresent=false;}if(!c.fmt.fmtFlags.precPresent){(c.$ptr_buf||(c.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},c))).writeString("%!(BADPREC)");}f=false;$s=24;continue;case 23:r=AG(a,g,d);c.fmt.prec=r[0];c.fmt.fmtFlags.precPresent=r[1];g=r[2];if(!c.fmt.fmtFlags.precPresent){c.fmt.prec=0;c.fmt.fmtFlags.precPresent=true;}case 24:case 21:if(!f){s=c.argNumber(e,a,g,b.$length);e=s[0];g=s[1];f=s[2];}if(g>=d){(c.$ptr_buf||(c.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},c))).writeString("%!(NOVERB)");$s=2;continue;}t=((a.charCodeAt(g)>>0));u=1;v=t;w=u;if(v>=128){x=C.DecodeRuneInString($substring(a,g));v=x[0];w=x[1];}g=g+(w)>>0;if((v===37)){$s=27;continue;}if(!c.goodArgNum){$s=28;continue;}if(e>=b.$length){$s=29;continue;}if((v===118)){$s=30;continue;}$s=31;continue;case 27:(c.$ptr_buf||(c.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},c))).writeByte(37);$s=32;continue;case 28:c.badArgNum(v);$s=32;continue;case 29:c.missingArg(v);$s=32;continue;case 30:c.fmt.fmtFlags.sharpV=c.fmt.fmtFlags.sharp;c.fmt.fmtFlags.sharp=false;c.fmt.fmtFlags.plusV=c.fmt.fmtFlags.plus;c.fmt.fmtFlags.plus=false;$r=c.printArg(((e<0||e>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+e]),v);$s=33;case 33:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}e=e+(1)>>0;$s=32;continue;case 31:$r=c.printArg(((e<0||e>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+e]),v);$s=34;case 34:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}e=e+(1)>>0;case 32:case 26:$s=1;continue;case 2:if(!c.reordered&&e=y.$length)?($throwRuntimeError("index out of range"),undefined):y.$array[y.$offset+z]);if(aa>0){(c.$ptr_buf||(c.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},c))).writeString(", ");}if($interfaceIsEqual(ab,$ifaceNil)){$s=39;continue;}$s=40;continue;case 39:(c.$ptr_buf||(c.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},c))).writeString("");$s=41;continue;case 40:ac=G.TypeOf(ab).String();$s=42;case 42:if($c){$c=false;ac=ac.$blk();}if(ac&&ac.$blk!==undefined){break s;}$r=(c.$ptr_buf||(c.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},c))).writeString(ac);$s=43;case 43:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}(c.$ptr_buf||(c.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},c))).writeByte(61);$r=c.printArg(ab,118);$s=44;case 44:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}case 41:z++;$s=37;continue;case 38:(c.$ptr_buf||(c.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},c))).writeByte(41);case 36:$s=-1;return;}return;}if($f===undefined){$f={$blk:S.ptr.prototype.doPrintf};}$f.a=a;$f.aa=aa;$f.ab=ab;$f.ac=ac;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.p=p;$f.q=q;$f.r=r;$f.s=s;$f.t=t;$f.u=u;$f.v=v;$f.w=w;$f.x=x;$f.y=y;$f.z=z;$f.$s=$s;$f.$r=$r;return $f;};S.prototype.doPrintf=function(a,b){return this.$val.doPrintf(a,b);};AW.ptr.prototype.Read=function(a){var a,b,c,d,e,f;b=0;c=$ifaceNil;d=this;e=0;f=A.New("ScanState's Read should not be called. Use ReadRune");b=e;c=f;return[b,c];};AW.prototype.Read=function(a){return this.$val.Read(a);};AW.ptr.prototype.ReadRune=function(){var a,b,c,d,e,f,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:a=0;b=0;c=$ifaceNil;d=this;if(d.atEOF||d.count>=d.ssave.argLimit){c=E.EOF;$s=-1;return[a,b,c];}f=d.rs.ReadRune();$s=1;case 1:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}e=f;a=e[0];b=e[1];c=e[2];if($interfaceIsEqual(c,$ifaceNil)){d.count=d.count+(1)>>0;if(d.ssave.nlIsEnd&&(a===10)){d.atEOF=true;}}else if($interfaceIsEqual(c,E.EOF)){d.atEOF=true;}$s=-1;return[a,b,c];}return;}if($f===undefined){$f={$blk:AW.ptr.prototype.ReadRune};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.$s=$s;$f.$r=$r;return $f;};AW.prototype.ReadRune=function(){return this.$val.ReadRune();};AW.ptr.prototype.Width=function(){var a,b,c,d,e,f,g;a=0;b=false;c=this;if(c.ssave.maxWid===1073741824){d=0;e=false;a=d;b=e;return[a,b];}f=c.ssave.maxWid;g=true;a=f;b=g;return[a,b];};AW.prototype.Width=function(){return this.$val.Width();};AW.ptr.prototype.getRune=function(){var a,b,c,d,e,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:a=0;b=this;d=b.ReadRune();$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}c=d;a=c[0];e=c[2];if(!($interfaceIsEqual(e,$ifaceNil))){if($interfaceIsEqual(e,E.EOF)){a=-1;$s=-1;return a;}b.error(e);}$s=-1;return a;}return;}if($f===undefined){$f={$blk:AW.ptr.prototype.getRune};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.$s=$s;$f.$r=$r;return $f;};AW.prototype.getRune=function(){return this.$val.getRune();};AW.ptr.prototype.UnreadRune=function(){var a,b,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:a=this;b=a.rs.UnreadRune();$s=1;case 1:if($c){$c=false;b=b.$blk();}if(b&&b.$blk!==undefined){break s;}b;a.atEOF=false;a.count=a.count-(1)>>0;$s=-1;return $ifaceNil;}return;}if($f===undefined){$f={$blk:AW.ptr.prototype.UnreadRune};}$f.a=a;$f.b=b;$f.$s=$s;$f.$r=$r;return $f;};AW.prototype.UnreadRune=function(){return this.$val.UnreadRune();};AW.ptr.prototype.error=function(a){var a,b,c;b=this;$panic((c=new AV.ptr(a),new c.constructor.elem(c)));};AW.prototype.error=function(a){return this.$val.error(a);};AW.ptr.prototype.errorString=function(a){var a,b,c;b=this;$panic((c=new AV.ptr(A.New(a)),new c.constructor.elem(c)));};AW.prototype.errorString=function(a){return this.$val.errorString(a);};AW.ptr.prototype.Token=function(a,b){var a,b,c,d,e,f,$s,$deferred,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;$s=$f.$s;$deferred=$f.$deferred;$r=$f.$r;}var $err=null;try{s:while(true){switch($s){case 0:$deferred=[];$deferred.index=$curGoroutine.deferStack.length;$curGoroutine.deferStack.push($deferred);c=[c];d=BQ.nil;c[0]=$ifaceNil;e=this;$deferred.push([(function(c){return function(){var f,g,h,i;f=$recover();if(!($interfaceIsEqual(f,$ifaceNil))){g=$assertType(f,AV,true);h=$clone(g[0],AV);i=g[1];if(i){c[0]=h.err;}else{$panic(f);}}};})(c),[]]);if(b===$throwNilPointerError){b=BA;}e.buf=$subslice(e.buf,0,0);f=e.token(a,b);$s=1;case 1:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}d=f;$s=-1;return[d,c[0]];}return;}}catch(err){$err=err;$s=-1;}finally{$callDeferred($deferred,$err);if(!$curGoroutine.asleep){return[d,c[0]];}if($curGoroutine.asleep){if($f===undefined){$f={$blk:AW.ptr.prototype.Token};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.$s=$s;$f.$deferred=$deferred;$f.$r=$r;return $f;}}};AW.prototype.Token=function(a,b){return this.$val.Token(a,b);};AZ=function(a){var a,b,c,d,e;if(a>=65536){return false;}b=((a<<16>>>16));c=AY;d=0;while(true){if(!(d=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+d]),BO);if(b1024){return;}b.buf=$subslice(b.buf,0,0);b.rs=$ifaceNil;BC.Put(b);};AW.prototype.free=function(a){return this.$val.free(a);};AW.ptr.prototype.SkipSpace=function(){var a,b,c,d,e,f,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:a=this;case 1:b=a.getRune();$s=3;case 3:if($c){$c=false;b=b.$blk();}if(b&&b.$blk!==undefined){break s;}c=b;if(c===-1){$s=-1;return;}if(!(c===13)){d=false;$s=6;continue s;}e=a.peek("\n");$s=7;case 7:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}d=e;case 6:if(d){$s=4;continue;}$s=5;continue;case 4:$s=1;continue;case 5:if(c===10){$s=8;continue;}$s=9;continue;case 8:if(a.ssave.nlIsSpace){$s=1;continue;}a.errorString("unexpected newline");$s=-1;return;case 9:if(!AZ(c)){$s=10;continue;}$s=11;continue;case 10:f=a.UnreadRune();$s=12;case 12:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}f;$s=2;continue;case 11:$s=1;continue;case 2:$s=-1;return;}return;}if($f===undefined){$f={$blk:AW.ptr.prototype.SkipSpace};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.$s=$s;$f.$r=$r;return $f;};AW.prototype.SkipSpace=function(){return this.$val.SkipSpace();};AW.ptr.prototype.token=function(a,b){var a,b,c,d,e,f,g,h,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(a){$s=1;continue;}$s=2;continue;case 1:$r=c.SkipSpace();$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}case 2:case 4:d=c.getRune();$s=6;case 6:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;if(e===-1){$s=5;continue;}f=b(e);$s=9;case 9:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}if(!f){$s=7;continue;}$s=8;continue;case 7:g=c.UnreadRune();$s=10;case 10:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}g;$s=5;continue;case 8:(c.$ptr_buf||(c.$ptr_buf=new BM(function(){return this.$target.buf;},function($v){this.$target.buf=$v;},c))).writeRune(e);$s=4;continue;case 5:$s=-1;return(h=c.buf,$subslice(new BQ(h.$array),h.$offset,h.$offset+h.$length));}return;}if($f===undefined){$f={$blk:AW.ptr.prototype.token};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.$s=$s;$f.$r=$r;return $f;};AW.prototype.token=function(a,b){return this.$val.token(a,b);};BG=function(a,b){var a,b,c,d,e,f,g;c=a;d=0;while(true){if(!(d=0;}return;}if($f===undefined){$f={$blk:AW.ptr.prototype.peek};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.$s=$s;$f.$r=$r;return $f;};AW.prototype.peek=function(a){return this.$val.peek(a);};CQ.methods=[{prop:"Error",name:"Error",pkg:"",typ:$funcType([],[$String],false)},{prop:"Unwrap",name:"Unwrap",pkg:"",typ:$funcType([],[$error],false)}];CR.methods=[{prop:"clearflags",name:"clearflags",pkg:"fmt",typ:$funcType([],[],false)},{prop:"init",name:"init",pkg:"fmt",typ:$funcType([BM],[],false)},{prop:"writePadding",name:"writePadding",pkg:"fmt",typ:$funcType([$Int],[],false)},{prop:"pad",name:"pad",pkg:"fmt",typ:$funcType([BQ],[],false)},{prop:"padString",name:"padString",pkg:"fmt",typ:$funcType([$String],[],false)},{prop:"fmtBoolean",name:"fmtBoolean",pkg:"fmt",typ:$funcType([$Bool],[],false)},{prop:"fmtUnicode",name:"fmtUnicode",pkg:"fmt",typ:$funcType([$Uint64],[],false)},{prop:"fmtInteger",name:"fmtInteger",pkg:"fmt",typ:$funcType([$Uint64,$Int,$Bool,$Int32,$String],[],false)},{prop:"truncateString",name:"truncateString",pkg:"fmt",typ:$funcType([$String],[$String],false)},{prop:"truncate",name:"truncate",pkg:"fmt",typ:$funcType([BQ],[BQ],false)},{prop:"fmtS",name:"fmtS",pkg:"fmt",typ:$funcType([$String],[],false)},{prop:"fmtBs",name:"fmtBs",pkg:"fmt",typ:$funcType([BQ],[],false)},{prop:"fmtSbx",name:"fmtSbx",pkg:"fmt",typ:$funcType([$String,BQ,$String],[],false)},{prop:"fmtSx",name:"fmtSx",pkg:"fmt",typ:$funcType([$String,$String],[],false)},{prop:"fmtBx",name:"fmtBx",pkg:"fmt",typ:$funcType([BQ,$String],[],false)},{prop:"fmtQ",name:"fmtQ",pkg:"fmt",typ:$funcType([$String],[],false)},{prop:"fmtC",name:"fmtC",pkg:"fmt",typ:$funcType([$Uint64],[],false)},{prop:"fmtQc",name:"fmtQc",pkg:"fmt",typ:$funcType([$Uint64],[],false)},{prop:"fmtFloat",name:"fmtFloat",pkg:"fmt",typ:$funcType([$Float64,$Int,$Int32,$Int],[],false)}];BM.methods=[{prop:"write",name:"write",pkg:"fmt",typ:$funcType([BQ],[],false)},{prop:"writeString",name:"writeString",pkg:"fmt",typ:$funcType([$String],[],false)},{prop:"writeByte",name:"writeByte",pkg:"fmt",typ:$funcType([$Uint8],[],false)},{prop:"writeRune",name:"writeRune",pkg:"fmt",typ:$funcType([$Int32],[],false)}];BS.methods=[{prop:"free",name:"free",pkg:"fmt",typ:$funcType([],[],false)},{prop:"Width",name:"Width",pkg:"",typ:$funcType([],[$Int,$Bool],false)},{prop:"Precision",name:"Precision",pkg:"",typ:$funcType([],[$Int,$Bool],false)},{prop:"Flag",name:"Flag",pkg:"",typ:$funcType([$Int],[$Bool],false)},{prop:"Write",name:"Write",pkg:"",typ:$funcType([BQ],[$Int,$error],false)},{prop:"WriteString",name:"WriteString",pkg:"",typ:$funcType([$String],[$Int,$error],false)},{prop:"unknownType",name:"unknownType",pkg:"fmt",typ:$funcType([G.Value],[],false)},{prop:"badVerb",name:"badVerb",pkg:"fmt",typ:$funcType([$Int32],[],false)},{prop:"fmtBool",name:"fmtBool",pkg:"fmt",typ:$funcType([$Bool,$Int32],[],false)},{prop:"fmt0x64",name:"fmt0x64",pkg:"fmt",typ:$funcType([$Uint64,$Bool],[],false)},{prop:"fmtInteger",name:"fmtInteger",pkg:"fmt",typ:$funcType([$Uint64,$Bool,$Int32],[],false)},{prop:"fmtFloat",name:"fmtFloat",pkg:"fmt",typ:$funcType([$Float64,$Int,$Int32],[],false)},{prop:"fmtComplex",name:"fmtComplex",pkg:"fmt",typ:$funcType([$Complex128,$Int,$Int32],[],false)},{prop:"fmtString",name:"fmtString",pkg:"fmt",typ:$funcType([$String,$Int32],[],false)},{prop:"fmtBytes",name:"fmtBytes",pkg:"fmt",typ:$funcType([BQ,$Int32,$String],[],false)},{prop:"fmtPointer",name:"fmtPointer",pkg:"fmt",typ:$funcType([G.Value,$Int32],[],false)},{prop:"catchPanic",name:"catchPanic",pkg:"fmt",typ:$funcType([$emptyInterface,$Int32,$String],[],false)},{prop:"handleMethods",name:"handleMethods",pkg:"fmt",typ:$funcType([$Int32],[$Bool],false)},{prop:"printArg",name:"printArg",pkg:"fmt",typ:$funcType([$emptyInterface,$Int32],[],false)},{prop:"printValue",name:"printValue",pkg:"fmt",typ:$funcType([G.Value,$Int32,$Int],[],false)},{prop:"argNumber",name:"argNumber",pkg:"fmt",typ:$funcType([$Int,$String,$Int,$Int],[$Int,$Int,$Bool],false)},{prop:"badArgNum",name:"badArgNum",pkg:"fmt",typ:$funcType([$Int32],[],false)},{prop:"missingArg",name:"missingArg",pkg:"fmt",typ:$funcType([$Int32],[],false)},{prop:"doPrintf",name:"doPrintf",pkg:"fmt",typ:$funcType([$String,BK],[],false)},{prop:"doPrint",name:"doPrint",pkg:"fmt",typ:$funcType([BK],[],false)},{prop:"doPrintln",name:"doPrintln",pkg:"fmt",typ:$funcType([BK],[],false)}];BV.methods=[{prop:"Read",name:"Read",pkg:"",typ:$funcType([BQ],[$Int,$error],false)},{prop:"ReadRune",name:"ReadRune",pkg:"",typ:$funcType([],[$Int32,$Int,$error],false)},{prop:"Width",name:"Width",pkg:"",typ:$funcType([],[$Int,$Bool],false)},{prop:"getRune",name:"getRune",pkg:"fmt",typ:$funcType([],[$Int32],false)},{prop:"mustReadRune",name:"mustReadRune",pkg:"fmt",typ:$funcType([],[$Int32],false)},{prop:"UnreadRune",name:"UnreadRune",pkg:"",typ:$funcType([],[$error],false)},{prop:"error",name:"error",pkg:"fmt",typ:$funcType([$error],[],false)},{prop:"errorString",name:"errorString",pkg:"fmt",typ:$funcType([$String],[],false)},{prop:"Token",name:"Token",pkg:"",typ:$funcType([$Bool,CS],[BQ,$error],false)},{prop:"free",name:"free",pkg:"fmt",typ:$funcType([AX],[],false)},{prop:"SkipSpace",name:"SkipSpace",pkg:"",typ:$funcType([],[],false)},{prop:"token",name:"token",pkg:"fmt",typ:$funcType([$Bool,CS],[BQ],false)},{prop:"consume",name:"consume",pkg:"fmt",typ:$funcType([$String,$Bool],[$Bool],false)},{prop:"peek",name:"peek",pkg:"fmt",typ:$funcType([$String],[$Bool],false)},{prop:"notEOF",name:"notEOF",pkg:"fmt",typ:$funcType([],[],false)},{prop:"accept",name:"accept",pkg:"fmt",typ:$funcType([$String],[$Bool],false)},{prop:"okVerb",name:"okVerb",pkg:"fmt",typ:$funcType([$Int32,$String,$String],[$Bool],false)},{prop:"scanBool",name:"scanBool",pkg:"fmt",typ:$funcType([$Int32],[$Bool],false)},{prop:"getBase",name:"getBase",pkg:"fmt",typ:$funcType([$Int32],[$Int,$String],false)},{prop:"scanNumber",name:"scanNumber",pkg:"fmt",typ:$funcType([$String,$Bool],[$String],false)},{prop:"scanRune",name:"scanRune",pkg:"fmt",typ:$funcType([$Int],[$Int64],false)},{prop:"scanBasePrefix",name:"scanBasePrefix",pkg:"fmt",typ:$funcType([],[$Int,$String,$Bool],false)},{prop:"scanInt",name:"scanInt",pkg:"fmt",typ:$funcType([$Int32,$Int],[$Int64],false)},{prop:"scanUint",name:"scanUint",pkg:"fmt",typ:$funcType([$Int32,$Int],[$Uint64],false)},{prop:"floatToken",name:"floatToken",pkg:"fmt",typ:$funcType([],[$String],false)},{prop:"complexTokens",name:"complexTokens",pkg:"fmt",typ:$funcType([],[$String,$String],false)},{prop:"convertFloat",name:"convertFloat",pkg:"fmt",typ:$funcType([$String,$Int],[$Float64],false)},{prop:"scanComplex",name:"scanComplex",pkg:"fmt",typ:$funcType([$Int32,$Int],[$Complex128],false)},{prop:"convertString",name:"convertString",pkg:"fmt",typ:$funcType([$Int32],[$String],false)},{prop:"quotedString",name:"quotedString",pkg:"fmt",typ:$funcType([],[$String],false)},{prop:"hexByte",name:"hexByte",pkg:"fmt",typ:$funcType([],[$Uint8,$Bool],false)},{prop:"hexString",name:"hexString",pkg:"fmt",typ:$funcType([],[$String],false)},{prop:"scanPercent",name:"scanPercent",pkg:"fmt",typ:$funcType([],[],false)},{prop:"scanOne",name:"scanOne",pkg:"fmt",typ:$funcType([$Int32,$emptyInterface],[],false)},{prop:"doScan",name:"doScan",pkg:"fmt",typ:$funcType([BK],[$Int,$error],false)},{prop:"advance",name:"advance",pkg:"fmt",typ:$funcType([$String],[$Int],false)},{prop:"doScanf",name:"doScanf",pkg:"fmt",typ:$funcType([$String,BK],[$Int,$error],false)}];K.init("fmt",[{prop:"msg",name:"msg",embedded:false,exported:false,typ:$String,tag:""},{prop:"err",name:"err",embedded:false,exported:false,typ:$error,tag:""}]);L.init("fmt",[{prop:"widPresent",name:"widPresent",embedded:false,exported:false,typ:$Bool,tag:""},{prop:"precPresent",name:"precPresent",embedded:false,exported:false,typ:$Bool,tag:""},{prop:"minus",name:"minus",embedded:false,exported:false,typ:$Bool,tag:""},{prop:"plus",name:"plus",embedded:false,exported:false,typ:$Bool,tag:""},{prop:"sharp",name:"sharp",embedded:false,exported:false,typ:$Bool,tag:""},{prop:"space",name:"space",embedded:false,exported:false,typ:$Bool,tag:""},{prop:"zero",name:"zero",embedded:false,exported:false,typ:$Bool,tag:""},{prop:"plusV",name:"plusV",embedded:false,exported:false,typ:$Bool,tag:""},{prop:"sharpV",name:"sharpV",embedded:false,exported:false,typ:$Bool,tag:""}]);M.init("fmt",[{prop:"buf",name:"buf",embedded:false,exported:false,typ:BM,tag:""},{prop:"fmtFlags",name:"fmtFlags",embedded:true,exported:false,typ:L,tag:""},{prop:"wid",name:"wid",embedded:false,exported:false,typ:$Int,tag:""},{prop:"prec",name:"prec",embedded:false,exported:false,typ:$Int,tag:""},{prop:"intbuf",name:"intbuf",embedded:false,exported:false,typ:BN,tag:""}]);N.init([{prop:"Flag",name:"Flag",pkg:"",typ:$funcType([$Int],[$Bool],false)},{prop:"Precision",name:"Precision",pkg:"",typ:$funcType([],[$Int,$Bool],false)},{prop:"Width",name:"Width",pkg:"",typ:$funcType([],[$Int,$Bool],false)},{prop:"Write",name:"Write",pkg:"",typ:$funcType([BQ],[$Int,$error],false)}]);O.init([{prop:"Format",name:"Format",pkg:"",typ:$funcType([N,$Int32],[],false)}]);P.init([{prop:"String",name:"String",pkg:"",typ:$funcType([],[$String],false)}]);Q.init([{prop:"GoString",name:"GoString",pkg:"",typ:$funcType([],[$String],false)}]);R.init($Uint8);S.init("fmt",[{prop:"buf",name:"buf",embedded:false,exported:false,typ:R,tag:""},{prop:"arg",name:"arg",embedded:false,exported:false,typ:$emptyInterface,tag:""},{prop:"value",name:"value",embedded:false,exported:false,typ:G.Value,tag:""},{prop:"fmt",name:"fmt",embedded:false,exported:false,typ:M,tag:""},{prop:"reordered",name:"reordered",embedded:false,exported:false,typ:$Bool,tag:""},{prop:"goodArgNum",name:"goodArgNum",embedded:false,exported:false,typ:$Bool,tag:""},{prop:"panicking",name:"panicking",embedded:false,exported:false,typ:$Bool,tag:""},{prop:"erroring",name:"erroring",embedded:false,exported:false,typ:$Bool,tag:""},{prop:"wrapErrs",name:"wrapErrs",embedded:false,exported:false,typ:$Bool,tag:""},{prop:"wrappedErr",name:"wrappedErr",embedded:false,exported:false,typ:$error,tag:""}]);AV.init("fmt",[{prop:"err",name:"err",embedded:false,exported:false,typ:$error,tag:""}]);AW.init("fmt",[{prop:"rs",name:"rs",embedded:false,exported:false,typ:E.RuneScanner,tag:""},{prop:"buf",name:"buf",embedded:false,exported:false,typ:R,tag:""},{prop:"count",name:"count",embedded:false,exported:false,typ:$Int,tag:""},{prop:"atEOF",name:"atEOF",embedded:false,exported:false,typ:$Bool,tag:""},{prop:"ssave",name:"ssave",embedded:true,exported:false,typ:AX,tag:""}]);AX.init("fmt",[{prop:"validSave",name:"validSave",embedded:false,exported:false,typ:$Bool,tag:""},{prop:"nlIsEnd",name:"nlIsEnd",embedded:false,exported:false,typ:$Bool,tag:""},{prop:"nlIsSpace",name:"nlIsSpace",embedded:false,exported:false,typ:$Bool,tag:""},{prop:"argLimit",name:"argLimit",embedded:false,exported:false,typ:$Int,tag:""},{prop:"limit",name:"limit",embedded:false,exported:false,typ:$Int,tag:""},{prop:"maxWid",name:"maxWid",embedded:false,exported:false,typ:$Int,tag:""}]);$init=function(){$pkg.$init=function(){};var $f,$c=false,$s=0,$r;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:$r=A.$init();$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=D.$init();$s=2;case 2:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=E.$init();$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=I.$init();$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=F.$init();$s=5;case 5:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=G.$init();$s=6;case 6:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=B.$init();$s=7;case 7:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=H.$init();$s=8;case 8:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=C.$init();$s=9;case 9:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}T=new H.Pool.ptr(BK.nil,(function(){return new S.ptr(R.nil,$ifaceNil,new G.Value.ptr(BL.nil,0,0),new M.ptr(BM.nil,new L.ptr(false,false,false,false,false,false,false,false,false),0,0,BN.zero()),false,false,false,false,false,$ifaceNil);}));AY=new BP([$toNativeArray($kindUint16,[9,13]),$toNativeArray($kindUint16,[32,32]),$toNativeArray($kindUint16,[133,133]),$toNativeArray($kindUint16,[160,160]),$toNativeArray($kindUint16,[5760,5760]),$toNativeArray($kindUint16,[8192,8202]),$toNativeArray($kindUint16,[8232,8233]),$toNativeArray($kindUint16,[8239,8239]),$toNativeArray($kindUint16,[8287,8287]),$toNativeArray($kindUint16,[12288,12288])]);BC=new H.Pool.ptr(BK.nil,(function(){return new AW.ptr($ifaceNil,R.nil,0,false,new AX.ptr(false,false,false,0,0,0));}));BE=A.New("syntax error scanning complex number");BF=A.New("syntax error scanning boolean");}return;}if($f===undefined){$f={$blk:$init};}$f.$s=$s;$f.$r=$r;return $f;};$pkg.$init=$init;return $pkg;})(); $packages["unicode/utf16"]=(function(){var $pkg={},$init;$init=function(){$pkg.$init=function(){};var $f,$c=false,$s=0,$r;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:}return;}if($f===undefined){$f={$blk:$init};}$f.$s=$s;$f.$r=$r;return $f;};$pkg.$init=$init;return $pkg;})(); $packages["encoding/json"]=(function(){var $pkg={},$init,J,A,B,N,C,M,O,K,D,L,E,F,G,H,I,U,AH,AI,AJ,AL,AN,AQ,AS,AT,BI,BP,BQ,BS,BV,BX,BZ,CB,CF,CG,CH,CW,CX,ES,EU,EV,EW,EX,EY,EZ,FE,FG,FI,FJ,FK,FL,FM,FN,FU,FV,FX,FY,FZ,GA,GB,GC,GD,Z,AA,AM,AO,AU,AX,AY,BJ,BK,CK,CY,EQ,ER,a,b,c,AE,AG,AP,AR,AV,AW,AZ,BA,BB,BC,BD,BE,BF,BG,BH,BL,BM,BN,BO,BR,BT,BU,BW,BY,CA,CC,CD,CE,CI,CJ,CL,CM,CN,CO,CP,CR,CZ,DA,DB,DC,DD,DE,DF,DG,DH,DI,DJ,DK,DL,DM,DN,DO,DP,DQ,DR,DS,DT,DU,DV,DW,DX,DY,DZ,EA,EB,EC,ED,EE,EF,EG,EH,ET;J=$packages["bytes"];A=$packages["encoding"];B=$packages["encoding/base64"];N=$packages["errors"];C=$packages["fmt"];M=$packages["github.com/gopherjs/gopherjs/nosync"];O=$packages["io"];K=$packages["math"];D=$packages["reflect"];L=$packages["sort"];E=$packages["strconv"];F=$packages["strings"];G=$packages["unicode"];H=$packages["unicode/utf16"];I=$packages["unicode/utf8"];U=$pkg.Number=$newType(8,$kindString,"json.Number",true,"encoding/json",true,null);AH=$pkg.Marshaler=$newType(8,$kindInterface,"json.Marshaler",true,"encoding/json",true,null);AI=$pkg.UnsupportedTypeError=$newType(0,$kindStruct,"json.UnsupportedTypeError",true,"encoding/json",true,function(Type_){this.$val=this;if(arguments.length===0){this.Type=$ifaceNil;return;}this.Type=Type_;});AJ=$pkg.UnsupportedValueError=$newType(0,$kindStruct,"json.UnsupportedValueError",true,"encoding/json",true,function(Value_,Str_){this.$val=this;if(arguments.length===0){this.Value=new D.Value.ptr(FE.nil,0,0);this.Str="";return;}this.Value=Value_;this.Str=Str_;});AL=$pkg.MarshalerError=$newType(0,$kindStruct,"json.MarshalerError",true,"encoding/json",true,function(Type_,Err_,sourceFunc_){this.$val=this;if(arguments.length===0){this.Type=$ifaceNil;this.Err=$ifaceNil;this.sourceFunc="";return;}this.Type=Type_;this.Err=Err_;this.sourceFunc=sourceFunc_;});AN=$pkg.encodeState=$newType(0,$kindStruct,"json.encodeState",true,"encoding/json",false,function(Buffer_,scratch_,ptrLevel_,ptrSeen_){this.$val=this;if(arguments.length===0){this.Buffer=new J.Buffer.ptr(EV.nil,0,0);this.scratch=FJ.zero();this.ptrLevel=0;this.ptrSeen=false;return;}this.Buffer=Buffer_;this.scratch=scratch_;this.ptrLevel=ptrLevel_;this.ptrSeen=ptrSeen_;});AQ=$pkg.jsonError=$newType(0,$kindStruct,"json.jsonError",true,"encoding/json",false,function(error_){this.$val=this;if(arguments.length===0){this.error=$ifaceNil;return;}this.error=error_;});AS=$pkg.encOpts=$newType(0,$kindStruct,"json.encOpts",true,"encoding/json",false,function(quoted_,escapeHTML_){this.$val=this;if(arguments.length===0){this.quoted=false;this.escapeHTML=false;return;}this.quoted=quoted_;this.escapeHTML=escapeHTML_;});AT=$pkg.encoderFunc=$newType(4,$kindFunc,"json.encoderFunc",true,"encoding/json",false,null);BI=$pkg.floatEncoder=$newType(4,$kindInt,"json.floatEncoder",true,"encoding/json",false,null);BP=$pkg.structEncoder=$newType(0,$kindStruct,"json.structEncoder",true,"encoding/json",false,function(fields_){this.$val=this;if(arguments.length===0){this.fields=new BQ.ptr(FG.nil,false);return;}this.fields=fields_;});BQ=$pkg.structFields=$newType(0,$kindStruct,"json.structFields",true,"encoding/json",false,function(list_,nameIndex_){this.$val=this;if(arguments.length===0){this.list=FG.nil;this.nameIndex=false;return;}this.list=list_;this.nameIndex=nameIndex_;});BS=$pkg.mapEncoder=$newType(0,$kindStruct,"json.mapEncoder",true,"encoding/json",false,function(elemEnc_){this.$val=this;if(arguments.length===0){this.elemEnc=$throwNilPointerError;return;}this.elemEnc=elemEnc_;});BV=$pkg.sliceEncoder=$newType(0,$kindStruct,"json.sliceEncoder",true,"encoding/json",false,function(arrayEnc_){this.$val=this;if(arguments.length===0){this.arrayEnc=$throwNilPointerError;return;}this.arrayEnc=arrayEnc_;});BX=$pkg.arrayEncoder=$newType(0,$kindStruct,"json.arrayEncoder",true,"encoding/json",false,function(elemEnc_){this.$val=this;if(arguments.length===0){this.elemEnc=$throwNilPointerError;return;}this.elemEnc=elemEnc_;});BZ=$pkg.ptrEncoder=$newType(0,$kindStruct,"json.ptrEncoder",true,"encoding/json",false,function(elemEnc_){this.$val=this;if(arguments.length===0){this.elemEnc=$throwNilPointerError;return;}this.elemEnc=elemEnc_;});CB=$pkg.condAddrEncoder=$newType(0,$kindStruct,"json.condAddrEncoder",true,"encoding/json",false,function(canAddrEnc_,elseEnc_){this.$val=this;if(arguments.length===0){this.canAddrEnc=$throwNilPointerError;this.elseEnc=$throwNilPointerError;return;}this.canAddrEnc=canAddrEnc_;this.elseEnc=elseEnc_;});CF=$pkg.reflectWithString=$newType(0,$kindStruct,"json.reflectWithString",true,"encoding/json",false,function(v_,s_){this.$val=this;if(arguments.length===0){this.v=new D.Value.ptr(FE.nil,0,0);this.s="";return;}this.v=v_;this.s=s_;});CG=$pkg.field=$newType(0,$kindStruct,"json.field",true,"encoding/json",false,function(name_,nameBytes_,equalFold_,nameNonEsc_,nameEscHTML_,tag_,index_,typ_,omitEmpty_,quoted_,encoder_){this.$val=this;if(arguments.length===0){this.name="";this.nameBytes=EV.nil;this.equalFold=$throwNilPointerError;this.nameNonEsc="";this.nameEscHTML="";this.tag=false;this.index=EZ.nil;this.typ=$ifaceNil;this.omitEmpty=false;this.quoted=false;this.encoder=$throwNilPointerError;return;}this.name=name_;this.nameBytes=nameBytes_;this.equalFold=equalFold_;this.nameNonEsc=nameNonEsc_;this.nameEscHTML=nameEscHTML_;this.tag=tag_;this.index=index_;this.typ=typ_;this.omitEmpty=omitEmpty_;this.quoted=quoted_;this.encoder=encoder_;});CH=$pkg.byIndex=$newType(12,$kindSlice,"json.byIndex",true,"encoding/json",false,null);CW=$pkg.SyntaxError=$newType(0,$kindStruct,"json.SyntaxError",true,"encoding/json",true,function(msg_,Offset_){this.$val=this;if(arguments.length===0){this.msg="";this.Offset=new $Int64(0,0);return;}this.msg=msg_;this.Offset=Offset_;});CX=$pkg.scanner=$newType(0,$kindStruct,"json.scanner",true,"encoding/json",false,function(step_,endTop_,parseState_,err_,bytes_){this.$val=this;if(arguments.length===0){this.step=$throwNilPointerError;this.endTop=false;this.parseState=EZ.nil;this.err=$ifaceNil;this.bytes=new $Int64(0,0);return;}this.step=step_;this.endTop=endTop_;this.parseState=parseState_;this.err=err_;this.bytes=bytes_;});ES=$pkg.tagOptions=$newType(8,$kindString,"json.tagOptions",true,"encoding/json",false,null);EU=$sliceType($emptyInterface);EV=$sliceType($Uint8);EW=$ptrType(A.TextUnmarshaler);EX=$ptrType(AH);EY=$ptrType(A.TextMarshaler);EZ=$sliceType($Int);FE=$ptrType(D.rtype);FG=$sliceType(CG);FI=$ptrType(AN);FJ=$arrayType($Uint8,64);FK=$structType("",[]);FL=$sliceType(CF);FM=$structType("encoding/json",[{prop:"ptr",name:"ptr",embedded:false,exported:false,typ:$Uintptr,tag:""},{prop:"len",name:"len",embedded:false,exported:false,typ:$Int,tag:""}]);FN=$ptrType(CX);FU=$ptrType(AI);FV=$ptrType(AJ);FX=$ptrType(AL);FY=$mapType($emptyInterface,FK);FZ=$mapType($String,$Int);GA=$ptrType(CF);GB=$funcType([EV,EV],[$Bool],false);GC=$ptrType(CW);GD=$funcType([FN,$Uint8],[$Int],false);U.prototype.String=function(){var d;d=this.$val;return(d);};$ptrType(U).prototype.String=function(){return new U(this.$get()).String();};U.prototype.Float64=function(){var d;d=this.$val;return E.ParseFloat((d),64);};$ptrType(U).prototype.Float64=function(){return new U(this.$get()).Float64();};U.prototype.Int64=function(){var d;d=this.$val;return E.ParseInt((d),10,64);};$ptrType(U).prototype.Int64=function(){return new U(this.$get()).Int64();};AE=function(d){var d,e,f,g,h,i,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:e=AP();$s=1;case 1:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}f=e;g=f.marshal(d,new AS.ptr(false,true));$s=2;case 2:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}h=g;if(!($interfaceIsEqual(h,$ifaceNil))){$s=-1;return[EV.nil,h];}i=$appendSlice((EV.nil),f.Buffer.Bytes());AO.Put(f);$s=-1;return[i,$ifaceNil];}return;}if($f===undefined){$f={$blk:AE};}$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.$s=$s;$f.$r=$r;return $f;};$pkg.Marshal=AE;AG=function(d,e){var d,e,f,g,h,i,j,k,l,m;f=0;g=e;h=0;while(true){if(!(h=g.$length)?($throwRuntimeError("index out of range"),undefined):g.$array[g.$offset+h]);if((j===60)||(j===62)||(j===38)){if(f>>4<<24>>>24)));d.WriteByte(AM.charCodeAt(((j&15)>>>0)));f=i+1>>0;}if((j===226)&&(i+2>>0)>0,((k<0||k>=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+k]))===128)&&((((l=i+2>>0,((l<0||l>=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+l]))&~1)<<24>>>24)===168)){if(f>0,((m<0||m>=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+m]))&15)>>>0)));f=i+3>>0;}h++;}if(f0){$panic(new $String("ptrEncoder.encode should have emptied ptrSeen via defers"));}f.ptrLevel=0;$s=-1;return f;}$s=-1;return new AN.ptr(new J.Buffer.ptr(EV.nil,0,0),FJ.zero(),0,{});}return;}if($f===undefined){$f={$blk:AP};}$f.d=d;$f.e=e;$f.f=f;$f.$s=$s;$f.$r=$r;return $f;};AN.ptr.prototype.marshal=function(d,e){var d,e,f,g,h,$s,$deferred,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;$s=$f.$s;$deferred=$f.$deferred;$r=$f.$r;}var $err=null;try{s:while(true){switch($s){case 0:$deferred=[];$deferred.index=$curGoroutine.deferStack.length;$curGoroutine.deferStack.push($deferred);f=[f];f[0]=$ifaceNil;g=this;$deferred.push([(function(f){return function(){var h,i,j,k;h=$recover();if(!($interfaceIsEqual(h,$ifaceNil))){i=$assertType(h,AQ,true);j=$clone(i[0],AQ);k=i[1];if(k){f[0]=j.error;}else{$panic(h);}}};})(f),[]]);h=D.ValueOf(d);$s=1;case 1:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}$r=g.reflectValue($clone(h,D.Value),$clone(e,AS));$s=2;case 2:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}f[0]=$ifaceNil;$s=-1;return f[0];}return;}}catch(err){$err=err;$s=-1;}finally{$callDeferred($deferred,$err);if(!$curGoroutine.asleep){return f[0];}if($curGoroutine.asleep){if($f===undefined){$f={$blk:AN.ptr.prototype.marshal};}$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.$s=$s;$f.$deferred=$deferred;$f.$r=$r;return $f;}}};AN.prototype.marshal=function(d,e){return this.$val.marshal(d,e);};AN.ptr.prototype.error=function(d){var d,e,f;e=this;$panic((f=new AQ.ptr(d),new f.constructor.elem(f)));};AN.prototype.error=function(d){return this.$val.error(d);};AR=function(d){var d,e,f,g;e=$clone(d,D.Value).Kind();if((e===(17))||(e===(21))||(e===(23))||(e===(24))){return $clone(d,D.Value).Len()===0;}else if(e===(1)){return!$clone(d,D.Value).Bool();}else if((e===(2))||(e===(3))||(e===(4))||(e===(5))||(e===(6))){return(f=$clone(d,D.Value).Int(),(f.$high===0&&f.$low===0));}else if((e===(7))||(e===(8))||(e===(9))||(e===(10))||(e===(11))||(e===(12))){return(g=$clone(d,D.Value).Uint(),(g.$high===0&&g.$low===0));}else if((e===(13))||(e===(14))){return $clone(d,D.Value).Float()===0;}else if((e===(20))||(e===(22))){return $clone(d,D.Value).IsNil();}return false;};AN.ptr.prototype.reflectValue=function(d,e){var d,e,f,g,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;d=$f.d;e=$f.e;f=$f.f;g=$f.g;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:f=this;g=AV($clone(d,D.Value));$s=1;case 1:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}$r=g(f,$clone(d,D.Value),$clone(e,AS));$s=2;case 2:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=-1;return;}return;}if($f===undefined){$f={$blk:AN.ptr.prototype.reflectValue};}$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.$s=$s;$f.$r=$r;return $f;};AN.prototype.reflectValue=function(d,e){return this.$val.reflectValue(d,e);};AV=function(d){var d,e,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;d=$f.d;e=$f.e;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:if(!$clone(d,D.Value).IsValid()){$s=-1;return BA;}e=AW($clone(d,D.Value).Type());$s=1;case 1:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}$s=-1;return e;}return;}if($f===undefined){$f={$blk:AV};}$f.d=d;$f.e=e;$f.$s=$s;$f.$r=$r;return $f;};AW=function(d){var d,e,f,g,h,i,j,k,l,m,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:e=[e];f=[f];g=AU.Load(d);h=g[0];i=g[1];if(i){$s=-1;return $assertType(h,AT);}f[0]=new M.WaitGroup.ptr(0);e[0]=$throwNilPointerError;f[0].Add(1);j=AU.LoadOrStore(d,new AT(((function(e,f){return function $b(k,l,m){var k,l,m,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;k=$f.k;l=$f.l;m=$f.m;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:f[0].Wait();$r=e[0](k,$clone(l,D.Value),$clone(m,AS));$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=-1;return;}return;}if($f===undefined){$f={$blk:$b};}$f.k=k;$f.l=l;$f.m=m;$f.$s=$s;$f.$r=$r;return $f;};})(e,f))));k=j[0];l=j[1];if(l){$s=-1;return $assertType(k,AT);}m=AZ(d,true);$s=1;case 1:if($c){$c=false;m=m.$blk();}if(m&&m.$blk!==undefined){break s;}e[0]=m;f[0].Done();AU.Store(d,new AT(e[0]));$s=-1;return e[0];}return;}if($f===undefined){$f={$blk:AW};}$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.$s=$s;$f.$r=$r;return $f;};AZ=function(d,e){var aa,ab,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;aa=$f.aa;ab=$f.ab;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;q=$f.q;r=$f.r;s=$f.s;t=$f.t;u=$f.u;v=$f.v;w=$f.w;x=$f.x;y=$f.y;z=$f.z;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:g=d.Kind();$s=4;case 4:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}if(!(!((g===22))&&e)){f=false;$s=3;continue s;}h=D.PtrTo(d).Implements(AX);$s=5;case 5:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}f=h;case 3:if(f){$s=1;continue;}$s=2;continue;case 1:i=BC;j=AZ(d,false);$s=6;case 6:if($c){$c=false;j=j.$blk();}if(j&&j.$blk!==undefined){break s;}k=j;l=CC(i,k);$s=7;case 7:if($c){$c=false;l=l.$blk();}if(l&&l.$blk!==undefined){break s;}$s=-1;return l;case 2:m=d.Implements(AX);$s=10;case 10:if($c){$c=false;m=m.$blk();}if(m&&m.$blk!==undefined){break s;}if(m){$s=8;continue;}$s=9;continue;case 8:$s=-1;return BB;case 9:o=d.Kind();$s=14;case 14:if($c){$c=false;o=o.$blk();}if(o&&o.$blk!==undefined){break s;}if(!(!((o===22))&&e)){n=false;$s=13;continue s;}p=D.PtrTo(d).Implements(AY);$s=15;case 15:if($c){$c=false;p=p.$blk();}if(p&&p.$blk!==undefined){break s;}n=p;case 13:if(n){$s=11;continue;}$s=12;continue;case 11:q=BE;r=AZ(d,false);$s=16;case 16:if($c){$c=false;r=r.$blk();}if(r&&r.$blk!==undefined){break s;}s=r;t=CC(q,s);$s=17;case 17:if($c){$c=false;t=t.$blk();}if(t&&t.$blk!==undefined){break s;}$s=-1;return t;case 12:u=d.Implements(AY);$s=20;case 20:if($c){$c=false;u=u.$blk();}if(u&&u.$blk!==undefined){break s;}if(u){$s=18;continue;}$s=19;continue;case 18:$s=-1;return BD;case 19:v=d.Kind();$s=22;case 22:if($c){$c=false;v=v.$blk();}if(v&&v.$blk!==undefined){break s;}w=v;if(w===(1)){$s=23;continue;}if((w===(2))||(w===(3))||(w===(4))||(w===(5))||(w===(6))){$s=24;continue;}if((w===(7))||(w===(8))||(w===(9))||(w===(10))||(w===(11))||(w===(12))){$s=25;continue;}if(w===(13)){$s=26;continue;}if(w===(14)){$s=27;continue;}if(w===(24)){$s=28;continue;}if(w===(20)){$s=29;continue;}if(w===(25)){$s=30;continue;}if(w===(21)){$s=31;continue;}if(w===(23)){$s=32;continue;}if(w===(17)){$s=33;continue;}if(w===(22)){$s=34;continue;}$s=35;continue;case 23:$s=-1;return BF;case 24:$s=-1;return BG;case 25:$s=-1;return BH;case 26:$s=-1;return BJ;case 27:$s=-1;return BK;case 28:$s=-1;return BL;case 29:$s=-1;return BN;case 30:x=BR(d);$s=37;case 37:if($c){$c=false;x=x.$blk();}if(x&&x.$blk!==undefined){break s;}$s=-1;return x;case 31:y=BT(d);$s=38;case 38:if($c){$c=false;y=y.$blk();}if(y&&y.$blk!==undefined){break s;}$s=-1;return y;case 32:z=BW(d);$s=39;case 39:if($c){$c=false;z=z.$blk();}if(z&&z.$blk!==undefined){break s;}$s=-1;return z;case 33:aa=BY(d);$s=40;case 40:if($c){$c=false;aa=aa.$blk();}if(aa&&aa.$blk!==undefined){break s;}$s=-1;return aa;case 34:ab=CA(d);$s=41;case 41:if($c){$c=false;ab=ab.$blk();}if(ab&&ab.$blk!==undefined){break s;}$s=-1;return ab;case 35:$s=-1;return BO;case 36:case 21:$s=-1;return $throwNilPointerError;}return;}if($f===undefined){$f={$blk:AZ};}$f.aa=aa;$f.ab=ab;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.p=p;$f.q=q;$f.r=r;$f.s=s;$f.t=t;$f.u=u;$f.v=v;$f.w=w;$f.x=x;$f.y=y;$f.z=z;$f.$s=$s;$f.$r=$r;return $f;};BA=function(d,e,f){var d,e,f;d.Buffer.WriteString("null");};BB=function(d,e,f){var d,e,f,g,h,i,j,k,l,m,n,o,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:if(($clone(e,D.Value).Kind()===22)&&$clone(e,D.Value).IsNil()){d.Buffer.WriteString("null");$s=-1;return;}h=$clone(e,D.Value).Interface();$s=1;case 1:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}g=$assertType(h,AH,true);i=g[0];j=g[1];if(!j){d.Buffer.WriteString("null");$s=-1;return;}l=i.MarshalJSON();$s=2;case 2:if($c){$c=false;l=l.$blk();}if(l&&l.$blk!==undefined){break s;}k=l;m=k[0];n=k[1];if($interfaceIsEqual(n,$ifaceNil)){$s=3;continue;}$s=4;continue;case 3:o=CR(d.Buffer,m,f.escapeHTML);$s=5;case 5:if($c){$c=false;o=o.$blk();}if(o&&o.$blk!==undefined){break s;}n=o;case 4:if(!($interfaceIsEqual(n,$ifaceNil))){d.error(new AL.ptr($clone(e,D.Value).Type(),n,"MarshalJSON"));}$s=-1;return;}return;}if($f===undefined){$f={$blk:BB};}$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.$s=$s;$f.$r=$r;return $f;};BC=function(d,e,f){var d,e,f,g,h,i,j,k,l,m,n,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:g=$clone(e,D.Value).Addr();if($clone(g,D.Value).IsNil()){d.Buffer.WriteString("null");$s=-1;return;}h=$clone(g,D.Value).Interface();$s=1;case 1:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}i=$assertType(h,AH);k=i.MarshalJSON();$s=2;case 2:if($c){$c=false;k=k.$blk();}if(k&&k.$blk!==undefined){break s;}j=k;l=j[0];m=j[1];if($interfaceIsEqual(m,$ifaceNil)){$s=3;continue;}$s=4;continue;case 3:n=CR(d.Buffer,l,f.escapeHTML);$s=5;case 5:if($c){$c=false;n=n.$blk();}if(n&&n.$blk!==undefined){break s;}m=n;case 4:if(!($interfaceIsEqual(m,$ifaceNil))){d.error(new AL.ptr($clone(e,D.Value).Type(),m,"MarshalJSON"));}$s=-1;return;}return;}if($f===undefined){$f={$blk:BC};}$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.$s=$s;$f.$r=$r;return $f;};BD=function(d,e,f){var d,e,f,g,h,i,j,k,l,m,n,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:if(($clone(e,D.Value).Kind()===22)&&$clone(e,D.Value).IsNil()){d.Buffer.WriteString("null");$s=-1;return;}h=$clone(e,D.Value).Interface();$s=1;case 1:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}g=$assertType(h,A.TextMarshaler,true);i=g[0];j=g[1];if(!j){d.Buffer.WriteString("null");$s=-1;return;}l=i.MarshalText();$s=2;case 2:if($c){$c=false;l=l.$blk();}if(l&&l.$blk!==undefined){break s;}k=l;m=k[0];n=k[1];if(!($interfaceIsEqual(n,$ifaceNil))){d.error(new AL.ptr($clone(e,D.Value).Type(),n,"MarshalText"));}d.stringBytes(m,f.escapeHTML);$s=-1;return;}return;}if($f===undefined){$f={$blk:BD};}$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.$s=$s;$f.$r=$r;return $f;};BE=function(d,e,f){var d,e,f,g,h,i,j,k,l,m,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:g=$clone(e,D.Value).Addr();if($clone(g,D.Value).IsNil()){d.Buffer.WriteString("null");$s=-1;return;}h=$clone(g,D.Value).Interface();$s=1;case 1:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}i=$assertType(h,A.TextMarshaler);k=i.MarshalText();$s=2;case 2:if($c){$c=false;k=k.$blk();}if(k&&k.$blk!==undefined){break s;}j=k;l=j[0];m=j[1];if(!($interfaceIsEqual(m,$ifaceNil))){d.error(new AL.ptr($clone(e,D.Value).Type(),m,"MarshalText"));}d.stringBytes(l,f.escapeHTML);$s=-1;return;}return;}if($f===undefined){$f={$blk:BE};}$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.$s=$s;$f.$r=$r;return $f;};BF=function(d,e,f){var d,e,f;if(f.quoted){d.Buffer.WriteByte(34);}if($clone(e,D.Value).Bool()){d.Buffer.WriteString("true");}else{d.Buffer.WriteString("false");}if(f.quoted){d.Buffer.WriteByte(34);}};BG=function(d,e,f){var d,e,f,g;g=E.AppendInt($subslice(new EV(d.scratch),0,0),$clone(e,D.Value).Int(),10);if(f.quoted){d.Buffer.WriteByte(34);}d.Buffer.Write(g);if(f.quoted){d.Buffer.WriteByte(34);}};BH=function(d,e,f){var d,e,f,g;g=E.AppendUint($subslice(new EV(d.scratch),0,0),$clone(e,D.Value).Uint(),10);if(f.quoted){d.Buffer.WriteByte(34);}d.Buffer.Write(g);if(f.quoted){d.Buffer.WriteByte(34);}};BI.prototype.encode=function(d,e,f){var d,e,f,g,h,i,j,k,l,m,n,o,p,q;g=this.$val;h=$clone(e,D.Value).Float();if(K.IsInf(h,0)||K.IsNaN(h)){d.error(new AJ.ptr($clone(e,D.Value),E.FormatFloat(h,103,-1,((g>>0)))));}i=$subslice(new EV(d.scratch),0,0);j=K.Abs(h);k=102;if(!((j===0))){if((g===64)&&(j<1e-06||j>=1e+21)||(g===32)&&(($fround(j))<9.999999974752427e-07||($fround(j))>=1.0000000200408773e+21)){k=101;}}i=E.AppendFloat(i,h,k,-1,((g>>0)));if(k===101){l=i.$length;if(l>=4&&((m=l-4>>0,((m<0||m>=i.$length)?($throwRuntimeError("index out of range"),undefined):i.$array[i.$offset+m]))===101)&&((n=l-3>>0,((n<0||n>=i.$length)?($throwRuntimeError("index out of range"),undefined):i.$array[i.$offset+n]))===45)&&((o=l-2>>0,((o<0||o>=i.$length)?($throwRuntimeError("index out of range"),undefined):i.$array[i.$offset+o]))===48)){(q=l-2>>0,((q<0||q>=i.$length)?($throwRuntimeError("index out of range"),undefined):i.$array[i.$offset+q]=(p=l-1>>0,((p<0||p>=i.$length)?($throwRuntimeError("index out of range"),undefined):i.$array[i.$offset+p]))));i=$subslice(i,0,(l-1>>0));}}if(f.quoted){d.Buffer.WriteByte(34);}d.Buffer.Write(i);if(f.quoted){d.Buffer.WriteByte(34);}};$ptrType(BI).prototype.encode=function(d,e,f){return new BI(this.$get()).encode(d,e,f);};BL=function(d,e,f){var d,e,f,g,h,i,j,k,l,m,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:if($interfaceIsEqual($clone(e,D.Value).Type(),AA)){$s=1;continue;}$s=2;continue;case 1:g=$clone(e,D.Value).String();$s=3;case 3:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}h=g;if(h===""){h="0";}if(!BM(h)){$s=4;continue;}$s=5;continue;case 4:i=C.Errorf("json: invalid number literal %q",new EU([new $String(h)]));$s=6;case 6:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}$r=d.error(i);$s=7;case 7:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}case 5:if(f.quoted){d.Buffer.WriteByte(34);}d.Buffer.WriteString(h);if(f.quoted){d.Buffer.WriteByte(34);}$s=-1;return;case 2:if(f.quoted){$s=8;continue;}$s=9;continue;case 8:j=AP();$s=11;case 11:if($c){$c=false;j=j.$blk();}if(j&&j.$blk!==undefined){break s;}k=j;l=$clone(e,D.Value).String();$s=12;case 12:if($c){$c=false;l=l.$blk();}if(l&&l.$blk!==undefined){break s;}$r=k.string(l,f.escapeHTML);$s=13;case 13:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}d.stringBytes(k.Buffer.Bytes(),false);AO.Put(k);$s=10;continue;case 9:m=$clone(e,D.Value).String();$s=14;case 14:if($c){$c=false;m=m.$blk();}if(m&&m.$blk!==undefined){break s;}$r=d.string(m,f.escapeHTML);$s=15;case 15:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}case 10:$s=-1;return;}return;}if($f===undefined){$f={$blk:BL};}$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.$s=$s;$f.$r=$r;return $f;};BM=function(d){var d;if(d===""){return false;}if(d.charCodeAt(0)===45){d=$substring(d,1);if(d===""){return false;}}if((d.charCodeAt(0)===48)){d=$substring(d,1);}else if(49<=d.charCodeAt(0)&&d.charCodeAt(0)<=57){d=$substring(d,1);while(true){if(!(d.length>0&&48<=d.charCodeAt(0)&&d.charCodeAt(0)<=57)){break;}d=$substring(d,1);}}else{return false;}if(d.length>=2&&(d.charCodeAt(0)===46)&&48<=d.charCodeAt(1)&&d.charCodeAt(1)<=57){d=$substring(d,2);while(true){if(!(d.length>0&&48<=d.charCodeAt(0)&&d.charCodeAt(0)<=57)){break;}d=$substring(d,1);}}if(d.length>=2&&((d.charCodeAt(0)===101)||(d.charCodeAt(0)===69))){d=$substring(d,1);if((d.charCodeAt(0)===43)||(d.charCodeAt(0)===45)){d=$substring(d,1);if(d===""){return false;}}while(true){if(!(d.length>0&&48<=d.charCodeAt(0)&&d.charCodeAt(0)<=57)){break;}d=$substring(d,1);}}return d==="";};BN=function(d,e,f){var d,e,f,g,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;d=$f.d;e=$f.e;f=$f.f;g=$f.g;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:if($clone(e,D.Value).IsNil()){d.Buffer.WriteString("null");$s=-1;return;}g=$clone(e,D.Value).Elem();$s=1;case 1:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}$r=d.reflectValue($clone(g,D.Value),$clone(f,AS));$s=2;case 2:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=-1;return;}return;}if($f===undefined){$f={$blk:BN};}$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.$s=$s;$f.$r=$r;return $f;};BO=function(d,e,f){var d,e,f;d.error(new AI.ptr($clone(e,D.Value).Type()));};BP.ptr.prototype.encode=function(d,e,f){var d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;q=$f.q;r=$f.r;s=$f.s;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:g=this;h=123;i=g.fields.list;j=0;case 1:if(!(j=l.$length)?($throwRuntimeError("index out of range"),undefined):l.$array[l.$offset+k]));n=e;o=m.index;p=0;case 3:if(!(p=o.$length)?($throwRuntimeError("index out of range"),undefined):o.$array[o.$offset+p]);if($clone(n,D.Value).Kind()===22){$s=5;continue;}$s=6;continue;case 5:if($clone(n,D.Value).IsNil()){$s=7;continue;}$s=8;continue;case 7:j++;$s=1;continue s;case 8:r=$clone(n,D.Value).Elem();$s=9;case 9:if($c){$c=false;r=r.$blk();}if(r&&r.$blk!==undefined){break s;}n=r;case 6:s=$clone(n,D.Value).Field(q);$s=10;case 10:if($c){$c=false;s=s.$blk();}if(s&&s.$blk!==undefined){break s;}n=s;p++;$s=3;continue;case 4:if(m.omitEmpty&&AR($clone(n,D.Value))){$s=11;continue;}$s=12;continue;case 11:j++;$s=1;continue;case 12:d.Buffer.WriteByte(h);h=44;if(f.escapeHTML){d.Buffer.WriteString(m.nameEscHTML);}else{d.Buffer.WriteString(m.nameNonEsc);}f.quoted=m.quoted;$r=m.encoder(d,$clone(n,D.Value),$clone(f,AS));$s=13;case 13:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}j++;$s=1;continue;case 2:if(h===123){d.Buffer.WriteString("{}");}else{d.Buffer.WriteByte(125);}$s=-1;return;}return;}if($f===undefined){$f={$blk:BP.ptr.prototype.encode};}$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.p=p;$f.q=q;$f.r=r;$f.s=s;$f.$s=$s;$f.$r=$r;return $f;};BP.prototype.encode=function(d,e,f){return this.$val.encode(d,e,f);};BR=function(d){var d,e,f,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;d=$f.d;e=$f.e;f=$f.f;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:e=CL(d);$s=1;case 1:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}f=new BP.ptr($clone(e,BQ));$s=-1;return $methodVal($clone(f,BP),"encode");}return;}if($f===undefined){$f={$blk:BR};}$f.d=d;$f.e=e;$f.f=f;$f.$s=$s;$f.$r=$r;return $f;};BS.ptr.prototype.encode=function(d,e,f){var aa,ab,ac,ad,ae,af,ag,ah,ai,aj,ak,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,$s,$deferred,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;aa=$f.aa;ab=$f.ab;ac=$f.ac;ad=$f.ad;ae=$f.ae;af=$f.af;ag=$f.ag;ah=$f.ah;ai=$f.ai;aj=$f.aj;ak=$f.ak;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;q=$f.q;r=$f.r;s=$f.s;t=$f.t;u=$f.u;v=$f.v;w=$f.w;x=$f.x;y=$f.y;z=$f.z;$s=$f.$s;$deferred=$f.$deferred;$r=$f.$r;}var $err=null;try{s:while(true){switch($s){case 0:$deferred=[];$deferred.index=$curGoroutine.deferStack.length;$curGoroutine.deferStack.push($deferred);g=[g];h=this;if($clone(e,D.Value).IsNil()){d.Buffer.WriteString("null");$s=-1;return;}d.ptrLevel=d.ptrLevel+(1)>>>0;if(d.ptrLevel>1000){$s=1;continue;}$s=2;continue;case 1:i=$clone(e,D.Value).Pointer();j=(k=d.ptrSeen[$emptyInterface.keyFor(new $Uintptr(i))],k!==undefined?[k.v,true]:[new FK.ptr(),false]);l=j[1];if(l){$s=3;continue;}$s=4;continue;case 3:m=C.Sprintf("encountered a cycle via %s",new EU([$clone(e,D.Value).Type()]));$s=5;case 5:if($c){$c=false;m=m.$blk();}if(m&&m.$blk!==undefined){break s;}$r=d.error(new AJ.ptr($clone(e,D.Value),m));$s=6;case 6:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}case 4:n=new $Uintptr(i);(d.ptrSeen||$throwRuntimeError("assignment to entry in nil map"))[$emptyInterface.keyFor(n)]={k:n,v:new FK.ptr()};$deferred.push([function(o,p){delete o[$emptyInterface.keyFor(p)];},[d.ptrSeen,new $Uintptr(i)]]);case 2:d.Buffer.WriteByte(123);q=$clone(e,D.Value).MapKeys();$s=7;case 7:if($c){$c=false;q=q.$blk();}if(q&&q.$blk!==undefined){break s;}r=q;g[0]=$makeSlice(FL,r.$length);s=r;t=0;case 8:if(!(t=s.$length)?($throwRuntimeError("index out of range"),undefined):s.$array[s.$offset+t]);((u<0||u>=g[0].$length)?($throwRuntimeError("index out of range"),undefined):g[0].$array[g[0].$offset+u]).v=v;w=((u<0||u>=g[0].$length)?($throwRuntimeError("index out of range"),undefined):g[0].$array[g[0].$offset+u]).resolve();$s=10;case 10:if($c){$c=false;w=w.$blk();}if(w&&w.$blk!==undefined){break s;}x=w;if(!($interfaceIsEqual(x,$ifaceNil))){$s=11;continue;}$s=12;continue;case 11:y=$clone(v,D.Value).Type().String();$s=13;case 13:if($c){$c=false;y=y.$blk();}if(y&&y.$blk!==undefined){break s;}z=new $String(y);aa=x.Error();$s=14;case 14:if($c){$c=false;aa=aa.$blk();}if(aa&&aa.$blk!==undefined){break s;}ab=new $String(aa);ac=C.Errorf("json: encoding error for type %q: %q",new EU([z,ab]));$s=15;case 15:if($c){$c=false;ac=ac.$blk();}if(ac&&ac.$blk!==undefined){break s;}$r=d.error(ac);$s=16;case 16:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}case 12:t++;$s=8;continue;case 9:$r=L.Slice(g[0],(function(g){return function(ad,ae){var ad,ae;return((ad<0||ad>=g[0].$length)?($throwRuntimeError("index out of range"),undefined):g[0].$array[g[0].$offset+ad]).s<((ae<0||ae>=g[0].$length)?($throwRuntimeError("index out of range"),undefined):g[0].$array[g[0].$offset+ae]).s;};})(g));$s=17;case 17:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}ad=g[0];ae=0;case 18:if(!(ae=ad.$length)?($throwRuntimeError("index out of range"),undefined):ad.$array[ad.$offset+ae]),CF);if(af>0){d.Buffer.WriteByte(44);}d.string(ag.s,f.escapeHTML);d.Buffer.WriteByte(58);ah=d;ai=$clone(e,D.Value).MapIndex($clone(ag.v,D.Value));$s=20;case 20:if($c){$c=false;ai=ai.$blk();}if(ai&&ai.$blk!==undefined){break s;}aj=$clone(ai,D.Value);ak=$clone(f,AS);$r=h.elemEnc(ah,aj,ak);$s=21;case 21:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}ae++;$s=18;continue;case 19:d.Buffer.WriteByte(125);d.ptrLevel=d.ptrLevel-(1)>>>0;$s=-1;return;}return;}}catch(err){$err=err;$s=-1;}finally{$callDeferred($deferred,$err);if($curGoroutine.asleep){if($f===undefined){$f={$blk:BS.ptr.prototype.encode};}$f.aa=aa;$f.ab=ab;$f.ac=ac;$f.ad=ad;$f.ae=ae;$f.af=af;$f.ag=ag;$f.ah=ah;$f.ai=ai;$f.aj=aj;$f.ak=ak;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.p=p;$f.q=q;$f.r=r;$f.s=s;$f.t=t;$f.u=u;$f.v=v;$f.w=w;$f.x=x;$f.y=y;$f.z=z;$f.$s=$s;$f.$deferred=$deferred;$f.$r=$r;return $f;}}};BS.prototype.encode=function(d,e,f){return this.$val.encode(d,e,f);};BT=function(d){var d,e,f,g,h,i,j,k,l,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:e=d.Key();$s=2;case 2:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}f=e.Kind();$s=3;case 3:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}g=f;if((g===(24))||(g===(2))||(g===(3))||(g===(4))||(g===(5))||(g===(6))||(g===(7))||(g===(8))||(g===(9))||(g===(10))||(g===(11))||(g===(12))){$s=4;continue;}h=d.Key();$s=7;case 7:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}i=h.Implements(AY);$s=8;case 8:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}if(!i){$s=5;continue;}$s=6;continue;case 4:$s=6;continue;case 5:$s=-1;return BO;case 6:case 1:j=d.Elem();$s=9;case 9:if($c){$c=false;j=j.$blk();}if(j&&j.$blk!==undefined){break s;}k=AW(j);$s=10;case 10:if($c){$c=false;k=k.$blk();}if(k&&k.$blk!==undefined){break s;}l=new BS.ptr(k);$s=-1;return $methodVal($clone(l,BS),"encode");}return;}if($f===undefined){$f={$blk:BT};}$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.$s=$s;$f.$r=$r;return $f;};BU=function(d,e,f){var d,e,f,g,h,i,j,k,l,m,n,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:if($clone(e,D.Value).IsNil()){d.Buffer.WriteString("null");$s=-1;return;}g=$clone(e,D.Value).Bytes();$s=1;case 1:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}h=g;d.Buffer.WriteByte(34);i=B.StdEncoding.EncodedLen(h.$length);if(i<=64){$s=2;continue;}if(i<=1024){$s=3;continue;}$s=4;continue;case 2:j=$subslice(new EV(d.scratch),0,i);B.StdEncoding.Encode(j,h);d.Buffer.Write(j);$s=5;continue;case 3:k=$makeSlice(EV,i);B.StdEncoding.Encode(k,h);d.Buffer.Write(k);$s=5;continue;case 4:l=B.NewEncoder(B.StdEncoding,d);m=l.Write(h);$s=6;case 6:if($c){$c=false;m=m.$blk();}if(m&&m.$blk!==undefined){break s;}m;n=l.Close();$s=7;case 7:if($c){$c=false;n=n.$blk();}if(n&&n.$blk!==undefined){break s;}n;case 5:d.Buffer.WriteByte(34);$s=-1;return;}return;}if($f===undefined){$f={$blk:BU};}$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.$s=$s;$f.$r=$r;return $f;};BV.ptr.prototype.encode=function(d,e,f){var d,e,f,g,h,i,j,k,l,m,n,o,$s,$deferred,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;$s=$f.$s;$deferred=$f.$deferred;$r=$f.$r;}var $err=null;try{s:while(true){switch($s){case 0:$deferred=[];$deferred.index=$curGoroutine.deferStack.length;$curGoroutine.deferStack.push($deferred);g=this;if($clone(e,D.Value).IsNil()){d.Buffer.WriteString("null");$s=-1;return;}d.ptrLevel=d.ptrLevel+(1)>>>0;if(d.ptrLevel>1000){$s=1;continue;}$s=2;continue;case 1:h=new FM.ptr($clone(e,D.Value).Pointer(),$clone(e,D.Value).Len());i=(j=d.ptrSeen[$emptyInterface.keyFor(new h.constructor.elem(h))],j!==undefined?[j.v,true]:[new FK.ptr(),false]);k=i[1];if(k){$s=3;continue;}$s=4;continue;case 3:l=C.Sprintf("encountered a cycle via %s",new EU([$clone(e,D.Value).Type()]));$s=5;case 5:if($c){$c=false;l=l.$blk();}if(l&&l.$blk!==undefined){break s;}$r=d.error(new AJ.ptr($clone(e,D.Value),l));$s=6;case 6:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}case 4:m=new h.constructor.elem(h);(d.ptrSeen||$throwRuntimeError("assignment to entry in nil map"))[$emptyInterface.keyFor(m)]={k:m,v:new FK.ptr()};$deferred.push([function(n,o){delete n[$emptyInterface.keyFor(o)];},[d.ptrSeen,new h.constructor.elem(h)]]);case 2:$r=g.arrayEnc(d,$clone(e,D.Value),$clone(f,AS));$s=7;case 7:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}d.ptrLevel=d.ptrLevel-(1)>>>0;$s=-1;return;}return;}}catch(err){$err=err;$s=-1;}finally{$callDeferred($deferred,$err);if($curGoroutine.asleep){if($f===undefined){$f={$blk:BV.ptr.prototype.encode};}$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.$s=$s;$f.$deferred=$deferred;$f.$r=$r;return $f;}}};BV.prototype.encode=function(d,e,f){return this.$val.encode(d,e,f);};BW=function(d){var d,e,f,g,h,i,j,k,l,m,n,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:e=d.Elem();$s=3;case 3:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}f=e.Kind();$s=4;case 4:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}if(f===8){$s=1;continue;}$s=2;continue;case 1:g=d.Elem();$s=5;case 5:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}h=D.PtrTo(g);$s=6;case 6:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}i=h;k=i.Implements(AX);$s=10;case 10:if($c){$c=false;k=k.$blk();}if(k&&k.$blk!==undefined){break s;}if(!(!k)){j=false;$s=9;continue s;}l=i.Implements(AY);$s=11;case 11:if($c){$c=false;l=l.$blk();}if(l&&l.$blk!==undefined){break s;}j=!l;case 9:if(j){$s=7;continue;}$s=8;continue;case 7:$s=-1;return BU;case 8:case 2:m=BY(d);$s=12;case 12:if($c){$c=false;m=m.$blk();}if(m&&m.$blk!==undefined){break s;}n=new BV.ptr(m);$s=-1;return $methodVal($clone(n,BV),"encode");}return;}if($f===undefined){$f={$blk:BW};}$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.$s=$s;$f.$r=$r;return $f;};BX.ptr.prototype.encode=function(d,e,f){var d,e,f,g,h,i,j,k,l,m,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:g=this;d.Buffer.WriteByte(91);h=$clone(e,D.Value).Len();i=0;case 1:if(!(i0){d.Buffer.WriteByte(44);}j=d;k=$clone(e,D.Value).Index(i);$s=3;case 3:if($c){$c=false;k=k.$blk();}if(k&&k.$blk!==undefined){break s;}l=$clone(k,D.Value);m=$clone(f,AS);$r=g.elemEnc(j,l,m);$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}i=i+(1)>>0;$s=1;continue;case 2:d.Buffer.WriteByte(93);$s=-1;return;}return;}if($f===undefined){$f={$blk:BX.ptr.prototype.encode};}$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.$s=$s;$f.$r=$r;return $f;};BX.prototype.encode=function(d,e,f){return this.$val.encode(d,e,f);};BY=function(d){var d,e,f,g,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;d=$f.d;e=$f.e;f=$f.f;g=$f.g;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:e=d.Elem();$s=1;case 1:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}f=AW(e);$s=2;case 2:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}g=new BX.ptr(f);$s=-1;return $methodVal($clone(g,BX),"encode");}return;}if($f===undefined){$f={$blk:BY};}$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.$s=$s;$f.$r=$r;return $f;};BZ.ptr.prototype.encode=function(d,e,f){var d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,$s,$deferred,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;q=$f.q;r=$f.r;s=$f.s;t=$f.t;$s=$f.$s;$deferred=$f.$deferred;$r=$f.$r;}var $err=null;try{s:while(true){switch($s){case 0:$deferred=[];$deferred.index=$curGoroutine.deferStack.length;$curGoroutine.deferStack.push($deferred);g=this;if($clone(e,D.Value).IsNil()){d.Buffer.WriteString("null");$s=-1;return;}d.ptrLevel=d.ptrLevel+(1)>>>0;if(d.ptrLevel>1000){$s=1;continue;}$s=2;continue;case 1:h=$clone(e,D.Value).Interface();$s=3;case 3:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}i=h;j=(k=d.ptrSeen[$emptyInterface.keyFor(i)],k!==undefined?[k.v,true]:[new FK.ptr(),false]);l=j[1];if(l){$s=4;continue;}$s=5;continue;case 4:m=C.Sprintf("encountered a cycle via %s",new EU([$clone(e,D.Value).Type()]));$s=6;case 6:if($c){$c=false;m=m.$blk();}if(m&&m.$blk!==undefined){break s;}$r=d.error(new AJ.ptr($clone(e,D.Value),m));$s=7;case 7:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}case 5:n=i;(d.ptrSeen||$throwRuntimeError("assignment to entry in nil map"))[$emptyInterface.keyFor(n)]={k:n,v:new FK.ptr()};$deferred.push([function(o,p){delete o[$emptyInterface.keyFor(p)];},[d.ptrSeen,i]]);case 2:q=d;r=$clone(e,D.Value).Elem();$s=8;case 8:if($c){$c=false;r=r.$blk();}if(r&&r.$blk!==undefined){break s;}s=$clone(r,D.Value);t=$clone(f,AS);$r=g.elemEnc(q,s,t);$s=9;case 9:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}d.ptrLevel=d.ptrLevel-(1)>>>0;$s=-1;return;}return;}}catch(err){$err=err;$s=-1;}finally{$callDeferred($deferred,$err);if($curGoroutine.asleep){if($f===undefined){$f={$blk:BZ.ptr.prototype.encode};}$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.p=p;$f.q=q;$f.r=r;$f.s=s;$f.t=t;$f.$s=$s;$f.$deferred=$deferred;$f.$r=$r;return $f;}}};BZ.prototype.encode=function(d,e,f){return this.$val.encode(d,e,f);};CA=function(d){var d,e,f,g,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;d=$f.d;e=$f.e;f=$f.f;g=$f.g;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:e=d.Elem();$s=1;case 1:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}f=AW(e);$s=2;case 2:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}g=new BZ.ptr(f);$s=-1;return $methodVal($clone(g,BZ),"encode");}return;}if($f===undefined){$f={$blk:CA};}$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.$s=$s;$f.$r=$r;return $f;};CB.ptr.prototype.encode=function(d,e,f){var d,e,f,g,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;d=$f.d;e=$f.e;f=$f.f;g=$f.g;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:g=this;if($clone(e,D.Value).CanAddr()){$s=1;continue;}$s=2;continue;case 1:$r=g.canAddrEnc(d,$clone(e,D.Value),$clone(f,AS));$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=3;continue;case 2:$r=g.elseEnc(d,$clone(e,D.Value),$clone(f,AS));$s=5;case 5:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}case 3:$s=-1;return;}return;}if($f===undefined){$f={$blk:CB.ptr.prototype.encode};}$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.$s=$s;$f.$r=$r;return $f;};CB.prototype.encode=function(d,e,f){return this.$val.encode(d,e,f);};CC=function(d,e){var d,e,f;f=new CB.ptr(d,e);return $methodVal($clone(f,CB),"encode");};CD=function(d){var d,e,f,g,h;if(d===""){return false;}e=d;f=0;while(true){if(!(f?@[]^_{|}~ ",h)){}else if(!G.IsLetter(h)&&!G.IsDigit(h)){return false;}f+=g[1];}return true;};CE=function(d,e){var d,e,f,g,h,i,j,k,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:f=e;g=0;case 1:if(!(g=f.$length)?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+g]);i=d.Kind();$s=5;case 5:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}if(i===22){$s=3;continue;}$s=4;continue;case 3:j=d.Elem();$s=6;case 6:if($c){$c=false;j=j.$blk();}if(j&&j.$blk!==undefined){break s;}d=j;case 4:k=d.Field(h);$s=7;case 7:if($c){$c=false;k=k.$blk();}if(k&&k.$blk!==undefined){break s;}d=k.Type;g++;$s=1;continue;case 2:$s=-1;return d;}return;}if($f===undefined){$f={$blk:CE};}$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.$s=$s;$f.$r=$r;return $f;};CF.ptr.prototype.resolve=function(){var d,e,f,g,h,i,j,k,l,m,n,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:d=this;if($clone(d.v,D.Value).Kind()===24){$s=1;continue;}$s=2;continue;case 1:e=$clone(d.v,D.Value).String();$s=3;case 3:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}d.s=e;$s=-1;return $ifaceNil;case 2:g=$clone(d.v,D.Value).Interface();$s=4;case 4:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}f=$assertType(g,A.TextMarshaler,true);h=f[0];i=f[1];if(i){$s=5;continue;}$s=6;continue;case 5:if(($clone(d.v,D.Value).Kind()===22)&&$clone(d.v,D.Value).IsNil()){$s=-1;return $ifaceNil;}k=h.MarshalText();$s=7;case 7:if($c){$c=false;k=k.$blk();}if(k&&k.$blk!==undefined){break s;}j=k;l=j[0];m=j[1];d.s=($bytesToString(l));$s=-1;return m;case 6:n=$clone(d.v,D.Value).Kind();if((n===(2))||(n===(3))||(n===(4))||(n===(5))||(n===(6))){d.s=E.FormatInt($clone(d.v,D.Value).Int(),10);$s=-1;return $ifaceNil;}else if((n===(7))||(n===(8))||(n===(9))||(n===(10))||(n===(11))||(n===(12))){d.s=E.FormatUint($clone(d.v,D.Value).Uint(),10);$s=-1;return $ifaceNil;}$panic(new $String("unexpected map key type"));$s=-1;return $ifaceNil;}return;}if($f===undefined){$f={$blk:CF.ptr.prototype.resolve};}$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.$s=$s;$f.$r=$r;return $f;};CF.prototype.resolve=function(){return this.$val.resolve();};AN.ptr.prototype.string=function(d,e){var d,e,f,g,h,i,j,k,l,m;f=this;f.Buffer.WriteByte(34);g=0;h=0;while(true){if(!(h=ER.length)?($throwRuntimeError("index out of range"),undefined):ER[i])||(!e&&((i<0||i>=EQ.length)?($throwRuntimeError("index out of range"),undefined):EQ[i]))){h=h+(1)>>0;continue;}if(g>>4<<24>>>24)));f.Buffer.WriteByte(AM.charCodeAt(((i&15)>>>0)));}h=h+(1)>>0;g=h;continue;}k=I.DecodeRuneInString($substring(d,h));l=k[0];m=k[1];if((l===65533)&&(m===1)){if(g>0;g=h;continue;}if((l===8232)||(l===8233)){if(g>0;g=h;continue;}h=h+(m)>>0;}if(g=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+h]);if(i<128){if(((i<0||i>=ER.length)?($throwRuntimeError("index out of range"),undefined):ER[i])||(!e&&((i<0||i>=EQ.length)?($throwRuntimeError("index out of range"),undefined):EQ[i]))){h=h+(1)>>0;continue;}if(g>>4<<24>>>24)));f.Buffer.WriteByte(AM.charCodeAt(((i&15)>>>0)));}h=h+(1)>>0;g=h;continue;}k=I.DecodeRune($subslice(d,h));l=k[0];m=k[1];if((l===65533)&&(m===1)){if(g>0;g=h;continue;}if((l===8232)||(l===8233)){if(g>0;g=h;continue;}h=h+(m)>>0;}if(g=f.$length)?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+e]),CG);h=$clone(((d<0||d>=f.$length)?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+d]),CG);CG.copy(((d<0||d>=f.$length)?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+d]),g);CG.copy(((e<0||e>=f.$length)?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+e]),h);};$ptrType(CH).prototype.Swap=function(d,e){return this.$get().Swap(d,e);};CH.prototype.Less=function(d,e){var d,e,f,g,h,i,j,k,l;f=this;g=((d<0||d>=f.$length)?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+d]).index;h=0;while(true){if(!(h=g.$length)?($throwRuntimeError("index out of range"),undefined):g.$array[g.$offset+h]);if(i>=((e<0||e>=f.$length)?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+e]).index.$length){return false;}if(!((j===(k=((e<0||e>=f.$length)?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+e]).index,((i<0||i>=k.$length)?($throwRuntimeError("index out of range"),undefined):k.$array[k.$offset+i]))))){return j<(l=((e<0||e>=f.$length)?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+e]).index,((i<0||i>=l.$length)?($throwRuntimeError("index out of range"),undefined):l.$array[l.$offset+i]));}h++;}return((d<0||d>=f.$length)?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+d]).index.$length<((e<0||e>=f.$length)?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+e]).index.$length;};$ptrType(CH).prototype.Less=function(d,e){return this.$get().Less(d,e);};CI=function(d){var aa,ab,ac,ad,ae,af,ag,ah,ai,aj,ak,al,am,an,ao,ap,aq,ar,as,at,au,av,aw,ax,ay,az,ba,bb,bc,bd,be,bf,bg,bh,bi,bj,bk,bl,bm,bn,bo,bp,bq,br,bs,bt,bu,bv,bw,bx,by,bz,ca,cb,cc,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;aa=$f.aa;ab=$f.ab;ac=$f.ac;ad=$f.ad;ae=$f.ae;af=$f.af;ag=$f.ag;ah=$f.ah;ai=$f.ai;aj=$f.aj;ak=$f.ak;al=$f.al;am=$f.am;an=$f.an;ao=$f.ao;ap=$f.ap;aq=$f.aq;ar=$f.ar;as=$f.as;at=$f.at;au=$f.au;av=$f.av;aw=$f.aw;ax=$f.ax;ay=$f.ay;az=$f.az;ba=$f.ba;bb=$f.bb;bc=$f.bc;bd=$f.bd;be=$f.be;bf=$f.bf;bg=$f.bg;bh=$f.bh;bi=$f.bi;bj=$f.bj;bk=$f.bk;bl=$f.bl;bm=$f.bm;bn=$f.bn;bo=$f.bo;bp=$f.bp;bq=$f.bq;br=$f.br;bs=$f.bs;bt=$f.bt;bu=$f.bu;bv=$f.bv;bw=$f.bw;bx=$f.bx;by=$f.by;bz=$f.bz;ca=$f.ca;cb=$f.cb;cc=$f.cc;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;q=$f.q;r=$f.r;s=$f.s;t=$f.t;u=$f.u;v=$f.v;w=$f.w;x=$f.x;y=$f.y;z=$f.z;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:e=[e];f=[f];g=new FG([]);h=new FG([new CG.ptr("",EV.nil,$throwNilPointerError,"","",false,EZ.nil,d,false,false,$throwNilPointerError)]);i=false;j=false;k=i;l=j;m=$makeMap(D.Type.keyFor,[]);e[0]=FG.nil;f[0]=new J.Buffer.ptr(EV.nil,0,0);case 1:if(!(h.$length>0)){$s=2;continue;}n=h;o=$subslice(g,0,0);g=n;h=o;p=l;q=$makeMap(D.Type.keyFor,[]);k=p;l=q;r=g;s=0;case 3:if(!(s=r.$length)?($throwRuntimeError("index out of range"),undefined):r.$array[r.$offset+s]),CG);if((u=m[D.Type.keyFor(t.typ)],u!==undefined?u.v:false)){$s=5;continue;}$s=6;continue;case 5:s++;$s=3;continue;case 6:v=t.typ;(m||$throwRuntimeError("assignment to entry in nil map"))[D.Type.keyFor(v)]={k:v,v:true};w=0;case 7:x=t.typ.NumField();$s=9;case 9:if($c){$c=false;x=x.$blk();}if(x&&x.$blk!==undefined){break s;}if(!(w>0;$s=7;continue;case 19:$s=13;continue;case 12:w=w+(1)>>0;$s=7;continue;case 13:ag=new D.StructTag(z.Tag).Get("json");if(ag==="-"){$s=22;continue;}$s=23;continue;case 22:w=w+(1)>>0;$s=7;continue;case 23:ah=ET(ag);ai=ah[0];aj=ah[1];if(!CD(ai)){ai="";}ak=$makeSlice(EZ,(t.index.$length+1>>0));$copySlice(ak,t.index);(al=t.index.$length,((al<0||al>=ak.$length)?($throwRuntimeError("index out of range"),undefined):ak.$array[ak.$offset+al]=w));am=z.Type;ao=am.Name();$s=27;case 27:if($c){$c=false;ao=ao.$blk();}if(ao&&ao.$blk!==undefined){break s;}if(!(ao==="")){an=false;$s=26;continue s;}ap=am.Kind();$s=28;case 28:if($c){$c=false;ap=ap.$blk();}if(ap&&ap.$blk!==undefined){break s;}an=ap===22;case 26:if(an){$s=24;continue;}$s=25;continue;case 24:aq=am.Elem();$s=29;case 29:if($c){$c=false;aq=aq.$blk();}if(aq&&aq.$blk!==undefined){break s;}am=aq;case 25:ar=false;if(new ES(aj).Contains("string")){$s=30;continue;}$s=31;continue;case 30:as=am.Kind();$s=33;case 33:if($c){$c=false;as=as.$blk();}if(as&&as.$blk!==undefined){break s;}at=as;if((at===(1))||(at===(2))||(at===(3))||(at===(4))||(at===(5))||(at===(6))||(at===(7))||(at===(8))||(at===(9))||(at===(10))||(at===(11))||(at===(12))||(at===(13))||(at===(14))||(at===(24))){ar=true;}case 32:case 31:if(!(ai==="")||!z.Anonymous){au=true;$s=36;continue s;}av=am.Kind();$s=37;case 37:if($c){$c=false;av=av.$blk();}if(av&&av.$blk!==undefined){break s;}au=!((av===25));case 36:if(au){$s=34;continue;}$s=35;continue;case 34:aw=!(ai==="");if(ai===""){ai=z.Name;}ax=new CG.ptr(ai,EV.nil,$throwNilPointerError,"","",aw,ak,am,new ES(aj).Contains("omitempty"),ar,$throwNilPointerError);ax.nameBytes=(new EV($stringToBytes(ax.name)));ax.equalFold=CM(ax.nameBytes);f[0].Reset();f[0].WriteString("\"");AG(f[0],ax.nameBytes);f[0].WriteString("\":");ax.nameEscHTML=f[0].String();ax.nameNonEsc="\""+ax.name+"\":";e[0]=$append(e[0],ax);if((ay=k[D.Type.keyFor(t.typ)],ay!==undefined?ay.v:0)>1){e[0]=$append(e[0],(az=e[0].$length-1>>0,((az<0||az>=e[0].$length)?($throwRuntimeError("index out of range"),undefined):e[0].$array[e[0].$offset+az])));}w=w+(1)>>0;$s=7;continue;case 35:ba=am;(l||$throwRuntimeError("assignment to entry in nil map"))[D.Type.keyFor(ba)]={k:ba,v:(bb=l[D.Type.keyFor(am)],bb!==undefined?bb.v:0)+(1)>>0};if((bc=l[D.Type.keyFor(am)],bc!==undefined?bc.v:0)===1){$s=38;continue;}$s=39;continue;case 38:bd=am.Name();$s=40;case 40:if($c){$c=false;bd=bd.$blk();}if(bd&&bd.$blk!==undefined){break s;}h=$append(h,new CG.ptr(bd,EV.nil,$throwNilPointerError,"","",false,ak,am,false,false,$throwNilPointerError));case 39:w=w+(1)>>0;$s=7;continue;case 8:s++;$s=3;continue;case 4:$s=1;continue;case 2:$r=L.Slice(e[0],(function(e,f){return function(be,bf){var be,bf,bg;bg=e[0];if(!(((be<0||be>=bg.$length)?($throwRuntimeError("index out of range"),undefined):bg.$array[bg.$offset+be]).name===((bf<0||bf>=bg.$length)?($throwRuntimeError("index out of range"),undefined):bg.$array[bg.$offset+bf]).name)){return((be<0||be>=bg.$length)?($throwRuntimeError("index out of range"),undefined):bg.$array[bg.$offset+be]).name<((bf<0||bf>=bg.$length)?($throwRuntimeError("index out of range"),undefined):bg.$array[bg.$offset+bf]).name;}if(!((((be<0||be>=bg.$length)?($throwRuntimeError("index out of range"),undefined):bg.$array[bg.$offset+be]).index.$length===((bf<0||bf>=bg.$length)?($throwRuntimeError("index out of range"),undefined):bg.$array[bg.$offset+bf]).index.$length))){return((be<0||be>=bg.$length)?($throwRuntimeError("index out of range"),undefined):bg.$array[bg.$offset+be]).index.$length<((bf<0||bf>=bg.$length)?($throwRuntimeError("index out of range"),undefined):bg.$array[bg.$offset+bf]).index.$length;}if(!(((be<0||be>=bg.$length)?($throwRuntimeError("index out of range"),undefined):bg.$array[bg.$offset+be]).tag===((bf<0||bf>=bg.$length)?($throwRuntimeError("index out of range"),undefined):bg.$array[bg.$offset+bf]).tag)){return((be<0||be>=bg.$length)?($throwRuntimeError("index out of range"),undefined):bg.$array[bg.$offset+be]).tag;}return($subslice(new CH(bg.$array),bg.$offset,bg.$offset+bg.$length)).Less(be,bf);};})(e,f));$s=41;case 41:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}be=$subslice(e[0],0,0);bf=0;bg=0;bh=bf;bi=bg;case 42:if(!(bi=e[0].$length)?($throwRuntimeError("index out of range"),undefined):e[0].$array[e[0].$offset+bi]),CG);bk=bj.name;bh=1;while(true){if(!((bi+bh>>0)>0,((bl<0||bl>=e[0].$length)?($throwRuntimeError("index out of range"),undefined):e[0].$array[e[0].$offset+bl])),CG);if(!(bm.name===bk)){break;}bh=bh+(1)>>0;}if(bh===1){be=$append(be,bj);bi=bi+(bh)>>0;$s=42;continue;}bn=CJ($subslice(e[0],bi,(bi+bh>>0)));bo=$clone(bn[0],CG);bp=bn[1];if(bp){be=$append(be,bo);}bi=bi+(bh)>>0;$s=42;continue;case 43:e[0]=be;$r=L.Sort(($subslice(new CH(e[0].$array),e[0].$offset,e[0].$offset+e[0].$length)));$s=44;case 44:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}bq=e[0];br=0;case 45:if(!(br=e[0].$length)?($throwRuntimeError("index out of range"),undefined):e[0].$array[e[0].$offset+bs]);bu=CE(d,bt.index);$s=47;case 47:if($c){$c=false;bu=bu.$blk();}if(bu&&bu.$blk!==undefined){break s;}bv=AW(bu);$s=48;case 48:if($c){$c=false;bv=bv.$blk();}if(bv&&bv.$blk!==undefined){break s;}bt.encoder=bv;br++;$s=45;continue;case 46:bx=(bw=e[0].$length,((bw<0||bw>2147483647)?$throwRuntimeError("makemap: size out of range"):{}));by=e[0];bz=0;while(true){if(!(bz=by.$length)?($throwRuntimeError("index out of range"),undefined):by.$array[by.$offset+bz]),CG);cc=cb.name;(bx||$throwRuntimeError("assignment to entry in nil map"))[$String.keyFor(cc)]={k:cc,v:ca};bz++;}$s=-1;return new BQ.ptr(e[0],bx);}return;}if($f===undefined){$f={$blk:CI};}$f.aa=aa;$f.ab=ab;$f.ac=ac;$f.ad=ad;$f.ae=ae;$f.af=af;$f.ag=ag;$f.ah=ah;$f.ai=ai;$f.aj=aj;$f.ak=ak;$f.al=al;$f.am=am;$f.an=an;$f.ao=ao;$f.ap=ap;$f.aq=aq;$f.ar=ar;$f.as=as;$f.at=at;$f.au=au;$f.av=av;$f.aw=aw;$f.ax=ax;$f.ay=ay;$f.az=az;$f.ba=ba;$f.bb=bb;$f.bc=bc;$f.bd=bd;$f.be=be;$f.bf=bf;$f.bg=bg;$f.bh=bh;$f.bi=bi;$f.bj=bj;$f.bk=bk;$f.bl=bl;$f.bm=bm;$f.bn=bn;$f.bo=bo;$f.bp=bp;$f.bq=bq;$f.br=br;$f.bs=bs;$f.bt=bt;$f.bu=bu;$f.bv=bv;$f.bw=bw;$f.bx=bx;$f.by=by;$f.bz=bz;$f.ca=ca;$f.cb=cb;$f.cc=cc;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.p=p;$f.q=q;$f.r=r;$f.s=s;$f.t=t;$f.u=u;$f.v=v;$f.w=w;$f.x=x;$f.y=y;$f.z=z;$f.$s=$s;$f.$r=$r;return $f;};CJ=function(d){var d;if(d.$length>1&&((0>=d.$length?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+0]).index.$length===(1>=d.$length?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+1]).index.$length)&&(0>=d.$length?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+0]).tag===(1>=d.$length?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+1]).tag){return[new CG.ptr("",EV.nil,$throwNilPointerError,"","",false,EZ.nil,$ifaceNil,false,false,$throwNilPointerError),false];}return[(0>=d.$length?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+0]),true];};CL=function(d){var d,e,f,g,h,i,j,k,l,m,n,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:e=CK.Load(d);f=e[0];g=e[1];if(g){$s=-1;return $assertType(f,BQ);}i=d;k=CI(d);$s=1;case 1:if($c){$c=false;k=k.$blk();}if(k&&k.$blk!==undefined){break s;}l=(j=k,new j.constructor.elem(j));m=CK.LoadOrStore(i,l);$s=2;case 2:if($c){$c=false;m=m.$blk();}if(m&&m.$blk!==undefined){break s;}h=m;n=h[0];$s=-1;return $assertType(n,BQ);}return;}if($f===undefined){$f={$blk:CL};}$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.$s=$s;$f.$r=$r;return $f;};CM=function(d){var d,e,f,g,h,i,j;e=false;f=false;g=d;h=0;while(true){if(!(h=g.$length)?($throwRuntimeError("index out of range"),undefined):g.$array[g.$offset+h]);if(i>=128){return J.EqualFold;}j=(i&223)>>>0;if(j<65||j>90){e=true;}else if((j===75)||(j===83)){f=true;}h++;}if(f){return CN;}if(e){return CO;}return CP;};CN=function(d,e){var d,e,f,g,h,i,j,k,l,m,n;f=d;g=0;while(true){if(!(g=f.$length)?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+g]);if(e.$length===0){return false;}i=(0>=e.$length?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+0]);if(i<128){if(!((h===i))){j=(h&223)>>>0;if(65<=j&&j<=90){if(!((j===((i&223)>>>0)))){return false;}}else{return false;}}e=$subslice(e,1);g++;continue;}k=I.DecodeRune(e);l=k[0];m=k[1];n=h;if((n===(115))||(n===(83))){if(!((l===383))){return false;}}else if((n===(107))||(n===(75))){if(!((l===8490))){return false;}}else{return false;}e=$subslice(e,m);g++;}if(e.$length>0){return false;}return true;};CO=function(d,e){var d,e,f,g,h,i,j;if(!((d.$length===e.$length))){return false;}f=d;g=0;while(true){if(!(g=f.$length)?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+g]);j=((h<0||h>=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+h]);if(i===j){g++;continue;}if((97<=i&&i<=122)||(65<=i&&i<=90)){if(!((((i&223)>>>0)===((j&223)>>>0)))){return false;}}else{return false;}g++;}return true;};CP=function(d,e){var d,e,f,g,h,i;if(!((d.$length===e.$length))){return false;}f=d;g=0;while(true){if(!(g=f.$length)?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+g]);if(!((((i&223)>>>0)===((((h<0||h>=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+h])&223)>>>0)))){return false;}g++;}return true;};CR=function(d,e,f){var d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,$s,$deferred,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;q=$f.q;r=$f.r;s=$f.s;t=$f.t;$s=$f.$s;$deferred=$f.$deferred;$r=$f.$r;}var $err=null;try{s:while(true){switch($s){case 0:$deferred=[];$deferred.index=$curGoroutine.deferStack.length;$curGoroutine.deferStack.push($deferred);g=d.Len();h=CZ();$s=1;case 1:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}i=h;$deferred.push([DA,[i]]);j=0;k=e;l=0;case 2:if(!(l=k.$length)?($throwRuntimeError("index out of range"),undefined):k.$array[k.$offset+l]);if(f&&((n===60)||(n===62)||(n===38))){if(j>>4<<24>>>24)));d.WriteByte(AM.charCodeAt(((n&15)>>>0)));j=m+1>>0;}if(f&&(n===226)&&(m+2>>0)>0,((o<0||o>=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+o]))===128)&&((((p=m+2>>0,((p<0||p>=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+p]))&~1)<<24>>>24)===168)){if(j>0,((q<0||q>=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+q]))&15)>>>0)));j=m+3>>0;}r=i.step(i,n);$s=4;case 4:if($c){$c=false;r=r.$blk();}if(r&&r.$blk!==undefined){break s;}s=r;if(s>=9){if(s===11){$s=3;continue;}if(j>0;}l++;$s=2;continue;case 3:t=i.eof();$s=7;case 7:if($c){$c=false;t=t.$blk();}if(t&&t.$blk!==undefined){break s;}if(t===11){$s=5;continue;}$s=6;continue;case 5:d.Truncate(g);$s=-1;return i.err;case 6:if(j1024){d.parseState=EZ.nil;}CY.Put(d);};CX.ptr.prototype.reset=function(){var d;d=this;d.step=DD;d.parseState=$subslice(d.parseState,0,0);d.err=$ifaceNil;d.endTop=false;};CX.prototype.reset=function(){return this.$val.reset();};CX.ptr.prototype.eof=function(){var d,e,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;d=$f.d;e=$f.e;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:d=this;if(!($interfaceIsEqual(d.err,$ifaceNil))){$s=-1;return 11;}if(d.endTop){$s=-1;return 10;}e=d.step(d,32);$s=1;case 1:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}e;if(d.endTop){$s=-1;return 10;}if($interfaceIsEqual(d.err,$ifaceNil)){d.err=new CW.ptr("unexpected end of JSON input",d.bytes);}$s=-1;return 11;}return;}if($f===undefined){$f={$blk:CX.ptr.prototype.eof};}$f.d=d;$f.e=e;$f.$s=$s;$f.$r=$r;return $f;};CX.prototype.eof=function(){return this.$val.eof();};CX.ptr.prototype.pushParseState=function(d,e,f){var d,e,f,g;g=this;g.parseState=$append(g.parseState,e);if(g.parseState.$length<=10000){return f;}return g.error(d,"exceeded max depth");};CX.prototype.pushParseState=function(d,e,f){return this.$val.pushParseState(d,e,f);};CX.ptr.prototype.popParseState=function(){var d,e;d=this;e=d.parseState.$length-1>>0;d.parseState=$subslice(d.parseState,0,e);if(e===0){d.step=DH;d.endTop=true;}else{d.step=DG;}};CX.prototype.popParseState=function(){return this.$val.popParseState();};DB=function(d){var d;return d<=32&&((d===32)||(d===9)||(d===13)||(d===10));};DC=function(d,e){var d,e;if(DB(e)){return 9;}if(e===93){return DG(d,e);}return DD(d,e);};DD=function(d,e){var d,e,f;if(DB(e)){return 9;}f=e;if(f===(123)){d.step=DE;return d.pushParseState(e,0,2);}else if(f===(91)){d.step=DC;return d.pushParseState(e,2,6);}else if(f===(34)){d.step=DI;return 1;}else if(f===(45)){d.step=DO;return 1;}else if(f===(48)){d.step=DQ;return 1;}else if(f===(116)){d.step=DW;return 1;}else if(f===(102)){d.step=DZ;return 1;}else if(f===(110)){d.step=ED;return 1;}if(49<=e&&e<=57){d.step=DP;return 1;}return d.error(e,"looking for beginning of value");};DE=function(d,e){var d,e,f,g,h;if(DB(e)){return 9;}if(e===125){f=d.parseState.$length;(g=d.parseState,h=f-1>>0,((h<0||h>=g.$length)?($throwRuntimeError("index out of range"),undefined):g.$array[g.$offset+h]=1));return DG(d,e);}return DF(d,e);};DF=function(d,e){var d,e;if(DB(e)){return 9;}if(e===34){d.step=DI;return 1;}return d.error(e,"looking for beginning of object key string");};DG=function(d,e){var d,e,f,g,h,i,j,k,l,m,n;f=d.parseState.$length;if(f===0){d.step=DH;d.endTop=true;return DH(d,e);}if(DB(e)){d.step=DG;return 9;}i=(g=d.parseState,h=f-1>>0,((h<0||h>=g.$length)?($throwRuntimeError("index out of range"),undefined):g.$array[g.$offset+h]));j=i;if(j===(0)){if(e===58){(k=d.parseState,l=f-1>>0,((l<0||l>=k.$length)?($throwRuntimeError("index out of range"),undefined):k.$array[k.$offset+l]=1));d.step=DD;return 3;}return d.error(e,"after object key");}else if(j===(1)){if(e===44){(m=d.parseState,n=f-1>>0,((n<0||n>=m.$length)?($throwRuntimeError("index out of range"),undefined):m.$array[m.$offset+n]=0));d.step=DF;return 4;}if(e===125){d.popParseState();return 5;}return d.error(e,"after object key:value pair");}else if(j===(2)){if(e===44){d.step=DD;return 7;}if(e===93){d.popParseState();return 8;}return d.error(e,"after array element");}return d.error(e,"");};DH=function(d,e){var d,e;if(!DB(e)){d.error(e,"after top-level value");}return 10;};DI=function(d,e){var d,e;if(e===34){d.step=DG;return 0;}if(e===92){d.step=DJ;return 0;}if(e<32){return d.error(e,"in string literal");}return 0;};DJ=function(d,e){var d,e,f;f=e;if((f===(98))||(f===(102))||(f===(110))||(f===(114))||(f===(116))||(f===(92))||(f===(47))||(f===(34))){d.step=DI;return 0;}else if(f===(117)){d.step=DK;return 0;}return d.error(e,"in string escape code");};DK=function(d,e){var d,e;if(48<=e&&e<=57||97<=e&&e<=102||65<=e&&e<=70){d.step=DL;return 0;}return d.error(e,"in \\u hexadecimal character escape");};DL=function(d,e){var d,e;if(48<=e&&e<=57||97<=e&&e<=102||65<=e&&e<=70){d.step=DM;return 0;}return d.error(e,"in \\u hexadecimal character escape");};DM=function(d,e){var d,e;if(48<=e&&e<=57||97<=e&&e<=102||65<=e&&e<=70){d.step=DN;return 0;}return d.error(e,"in \\u hexadecimal character escape");};DN=function(d,e){var d,e;if(48<=e&&e<=57||97<=e&&e<=102||65<=e&&e<=70){d.step=DI;return 0;}return d.error(e,"in \\u hexadecimal character escape");};DO=function(d,e){var d,e;if(e===48){d.step=DQ;return 0;}if(49<=e&&e<=57){d.step=DP;return 0;}return d.error(e,"in numeric literal");};DP=function(d,e){var d,e;if(48<=e&&e<=57){d.step=DP;return 0;}return DQ(d,e);};DQ=function(d,e){var d,e;if(e===46){d.step=DR;return 0;}if((e===101)||(e===69)){d.step=DT;return 0;}return DG(d,e);};DR=function(d,e){var d,e;if(48<=e&&e<=57){d.step=DS;return 0;}return d.error(e,"after decimal point in numeric literal");};DS=function(d,e){var d,e;if(48<=e&&e<=57){return 0;}if((e===101)||(e===69)){d.step=DT;return 0;}return DG(d,e);};DT=function(d,e){var d,e;if((e===43)||(e===45)){d.step=DU;return 0;}return DU(d,e);};DU=function(d,e){var d,e;if(48<=e&&e<=57){d.step=DV;return 0;}return d.error(e,"in exponent of numeric literal");};DV=function(d,e){var d,e;if(48<=e&&e<=57){return 0;}return DG(d,e);};DW=function(d,e){var d,e;if(e===114){d.step=DX;return 0;}return d.error(e,"in literal true (expecting 'r')");};DX=function(d,e){var d,e;if(e===117){d.step=DY;return 0;}return d.error(e,"in literal true (expecting 'u')");};DY=function(d,e){var d,e;if(e===101){d.step=DG;return 0;}return d.error(e,"in literal true (expecting 'e')");};DZ=function(d,e){var d,e;if(e===97){d.step=EA;return 0;}return d.error(e,"in literal false (expecting 'a')");};EA=function(d,e){var d,e;if(e===108){d.step=EB;return 0;}return d.error(e,"in literal false (expecting 'l')");};EB=function(d,e){var d,e;if(e===115){d.step=EC;return 0;}return d.error(e,"in literal false (expecting 's')");};EC=function(d,e){var d,e;if(e===101){d.step=DG;return 0;}return d.error(e,"in literal false (expecting 'e')");};ED=function(d,e){var d,e;if(e===117){d.step=EE;return 0;}return d.error(e,"in literal null (expecting 'u')");};EE=function(d,e){var d,e;if(e===108){d.step=EF;return 0;}return d.error(e,"in literal null (expecting 'l')");};EF=function(d,e){var d,e;if(e===108){d.step=DG;return 0;}return d.error(e,"in literal null (expecting 'l')");};EG=function(d,e){var d,e;return 11;};CX.ptr.prototype.error=function(d,e){var d,e,f;f=this;f.step=EG;f.err=new CW.ptr("invalid character "+EH(d)+" "+e,f.bytes);return 11;};CX.prototype.error=function(d,e){return this.$val.error(d,e);};EH=function(d){var d,e;if(d===39){return"'\\''";}if(d===34){return"'\"'";}e=E.Quote(($encodeRune(d)));return"'"+$substring(e,1,(e.length-1>>0))+"'";};ET=function(d){var d,e;e=F.Index(d,",");if(!((e===-1))){return[$substring(d,0,e),($substring(d,(e+1>>0)))];}return[d,""];};ES.prototype.Contains=function(d){var d,e,f,g,h,i,j;e=this.$val;if(e.length===0){return false;}f=(e);while(true){if(!(!(f===""))){break;}g="";h=F.Index(f,",");if(h>=0){i=$substring(f,0,h);j=$substring(f,(h+1>>0));f=i;g=j;}if(f===d){return true;}f=g;}return false;};$ptrType(ES).prototype.Contains=function(d){return new ES(this.$get()).Contains(d);};U.methods=[{prop:"String",name:"String",pkg:"",typ:$funcType([],[$String],false)},{prop:"Float64",name:"Float64",pkg:"",typ:$funcType([],[$Float64,$error],false)},{prop:"Int64",name:"Int64",pkg:"",typ:$funcType([],[$Int64,$error],false)}];FU.methods=[{prop:"Error",name:"Error",pkg:"",typ:$funcType([],[$String],false)}];FV.methods=[{prop:"Error",name:"Error",pkg:"",typ:$funcType([],[$String],false)}];FX.methods=[{prop:"Error",name:"Error",pkg:"",typ:$funcType([],[$String],false)},{prop:"Unwrap",name:"Unwrap",pkg:"",typ:$funcType([],[$error],false)}];FI.methods=[{prop:"marshal",name:"marshal",pkg:"encoding/json",typ:$funcType([$emptyInterface,AS],[$error],false)},{prop:"error",name:"error",pkg:"encoding/json",typ:$funcType([$error],[],false)},{prop:"reflectValue",name:"reflectValue",pkg:"encoding/json",typ:$funcType([D.Value,AS],[],false)},{prop:"string",name:"string",pkg:"encoding/json",typ:$funcType([$String,$Bool],[],false)},{prop:"stringBytes",name:"stringBytes",pkg:"encoding/json",typ:$funcType([EV,$Bool],[],false)}];BI.methods=[{prop:"encode",name:"encode",pkg:"encoding/json",typ:$funcType([FI,D.Value,AS],[],false)}];BP.methods=[{prop:"encode",name:"encode",pkg:"encoding/json",typ:$funcType([FI,D.Value,AS],[],false)}];BS.methods=[{prop:"encode",name:"encode",pkg:"encoding/json",typ:$funcType([FI,D.Value,AS],[],false)}];BV.methods=[{prop:"encode",name:"encode",pkg:"encoding/json",typ:$funcType([FI,D.Value,AS],[],false)}];BX.methods=[{prop:"encode",name:"encode",pkg:"encoding/json",typ:$funcType([FI,D.Value,AS],[],false)}];BZ.methods=[{prop:"encode",name:"encode",pkg:"encoding/json",typ:$funcType([FI,D.Value,AS],[],false)}];CB.methods=[{prop:"encode",name:"encode",pkg:"encoding/json",typ:$funcType([FI,D.Value,AS],[],false)}];GA.methods=[{prop:"resolve",name:"resolve",pkg:"encoding/json",typ:$funcType([],[$error],false)}];CH.methods=[{prop:"Len",name:"Len",pkg:"",typ:$funcType([],[$Int],false)},{prop:"Swap",name:"Swap",pkg:"",typ:$funcType([$Int,$Int],[],false)},{prop:"Less",name:"Less",pkg:"",typ:$funcType([$Int,$Int],[$Bool],false)}];GC.methods=[{prop:"Error",name:"Error",pkg:"",typ:$funcType([],[$String],false)}];FN.methods=[{prop:"reset",name:"reset",pkg:"encoding/json",typ:$funcType([],[],false)},{prop:"eof",name:"eof",pkg:"encoding/json",typ:$funcType([],[$Int],false)},{prop:"pushParseState",name:"pushParseState",pkg:"encoding/json",typ:$funcType([$Uint8,$Int,$Int],[$Int],false)},{prop:"popParseState",name:"popParseState",pkg:"encoding/json",typ:$funcType([],[],false)},{prop:"error",name:"error",pkg:"encoding/json",typ:$funcType([$Uint8,$String],[$Int],false)}];ES.methods=[{prop:"Contains",name:"Contains",pkg:"",typ:$funcType([$String],[$Bool],false)}];AH.init([{prop:"MarshalJSON",name:"MarshalJSON",pkg:"",typ:$funcType([],[EV,$error],false)}]);AI.init("",[{prop:"Type",name:"Type",embedded:false,exported:true,typ:D.Type,tag:""}]);AJ.init("",[{prop:"Value",name:"Value",embedded:false,exported:true,typ:D.Value,tag:""},{prop:"Str",name:"Str",embedded:false,exported:true,typ:$String,tag:""}]);AL.init("encoding/json",[{prop:"Type",name:"Type",embedded:false,exported:true,typ:D.Type,tag:""},{prop:"Err",name:"Err",embedded:false,exported:true,typ:$error,tag:""},{prop:"sourceFunc",name:"sourceFunc",embedded:false,exported:false,typ:$String,tag:""}]);AN.init("encoding/json",[{prop:"Buffer",name:"Buffer",embedded:true,exported:true,typ:J.Buffer,tag:""},{prop:"scratch",name:"scratch",embedded:false,exported:false,typ:FJ,tag:""},{prop:"ptrLevel",name:"ptrLevel",embedded:false,exported:false,typ:$Uint,tag:""},{prop:"ptrSeen",name:"ptrSeen",embedded:false,exported:false,typ:FY,tag:""}]);AQ.init("encoding/json",[{prop:"error",name:"error",embedded:true,exported:false,typ:$error,tag:""}]);AS.init("encoding/json",[{prop:"quoted",name:"quoted",embedded:false,exported:false,typ:$Bool,tag:""},{prop:"escapeHTML",name:"escapeHTML",embedded:false,exported:false,typ:$Bool,tag:""}]);AT.init([FI,D.Value,AS],[],false);BP.init("encoding/json",[{prop:"fields",name:"fields",embedded:false,exported:false,typ:BQ,tag:""}]);BQ.init("encoding/json",[{prop:"list",name:"list",embedded:false,exported:false,typ:FG,tag:""},{prop:"nameIndex",name:"nameIndex",embedded:false,exported:false,typ:FZ,tag:""}]);BS.init("encoding/json",[{prop:"elemEnc",name:"elemEnc",embedded:false,exported:false,typ:AT,tag:""}]);BV.init("encoding/json",[{prop:"arrayEnc",name:"arrayEnc",embedded:false,exported:false,typ:AT,tag:""}]);BX.init("encoding/json",[{prop:"elemEnc",name:"elemEnc",embedded:false,exported:false,typ:AT,tag:""}]);BZ.init("encoding/json",[{prop:"elemEnc",name:"elemEnc",embedded:false,exported:false,typ:AT,tag:""}]);CB.init("encoding/json",[{prop:"canAddrEnc",name:"canAddrEnc",embedded:false,exported:false,typ:AT,tag:""},{prop:"elseEnc",name:"elseEnc",embedded:false,exported:false,typ:AT,tag:""}]);CF.init("encoding/json",[{prop:"v",name:"v",embedded:false,exported:false,typ:D.Value,tag:""},{prop:"s",name:"s",embedded:false,exported:false,typ:$String,tag:""}]);CG.init("encoding/json",[{prop:"name",name:"name",embedded:false,exported:false,typ:$String,tag:""},{prop:"nameBytes",name:"nameBytes",embedded:false,exported:false,typ:EV,tag:""},{prop:"equalFold",name:"equalFold",embedded:false,exported:false,typ:GB,tag:""},{prop:"nameNonEsc",name:"nameNonEsc",embedded:false,exported:false,typ:$String,tag:""},{prop:"nameEscHTML",name:"nameEscHTML",embedded:false,exported:false,typ:$String,tag:""},{prop:"tag",name:"tag",embedded:false,exported:false,typ:$Bool,tag:""},{prop:"index",name:"index",embedded:false,exported:false,typ:EZ,tag:""},{prop:"typ",name:"typ",embedded:false,exported:false,typ:D.Type,tag:""},{prop:"omitEmpty",name:"omitEmpty",embedded:false,exported:false,typ:$Bool,tag:""},{prop:"quoted",name:"quoted",embedded:false,exported:false,typ:$Bool,tag:""},{prop:"encoder",name:"encoder",embedded:false,exported:false,typ:AT,tag:""}]);CH.init(CG);CW.init("encoding/json",[{prop:"msg",name:"msg",embedded:false,exported:false,typ:$String,tag:""},{prop:"Offset",name:"Offset",embedded:false,exported:true,typ:$Int64,tag:""}]);CX.init("encoding/json",[{prop:"step",name:"step",embedded:false,exported:false,typ:GD,tag:""},{prop:"endTop",name:"endTop",embedded:false,exported:false,typ:$Bool,tag:""},{prop:"parseState",name:"parseState",embedded:false,exported:false,typ:EZ,tag:""},{prop:"err",name:"err",embedded:false,exported:false,typ:$error,tag:""},{prop:"bytes",name:"bytes",embedded:false,exported:false,typ:$Int64,tag:""}]);$init=function(){$pkg.$init=function(){};var $f,$c=false,$s=0,$r;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:$r=J.$init();$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=A.$init();$s=2;case 2:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=B.$init();$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=N.$init();$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=C.$init();$s=5;case 5:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=M.$init();$s=6;case 6:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=O.$init();$s=7;case 7:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=K.$init();$s=8;case 8:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=D.$init();$s=9;case 9:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=L.$init();$s=10;case 10:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=E.$init();$s=11;case 11:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=F.$init();$s=12;case 12:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=G.$init();$s=13;case 13:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=H.$init();$s=14;case 14:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=I.$init();$s=15;case 15:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}AO=new M.Pool.ptr(EU.nil,$throwNilPointerError);AU=new M.Map.ptr(false);CK=new M.Map.ptr(false);a=D.TypeOf((EW.nil)).Elem();$s=16;case 16:if($c){$c=false;a=a.$blk();}if(a&&a.$blk!==undefined){break s;}Z=a;AA=D.TypeOf(new U(""));AM="0123456789abcdef";b=D.TypeOf((EX.nil)).Elem();$s=17;case 17:if($c){$c=false;b=b.$blk();}if(b&&b.$blk!==undefined){break s;}AX=b;c=D.TypeOf((EY.nil)).Elem();$s=18;case 18:if($c){$c=false;c=c.$blk();}if(c&&c.$blk!==undefined){break s;}AY=c;BJ=$methodVal(new BI(32),"encode");BK=$methodVal(new BI(64),"encode");CY=new M.Pool.ptr(EU.nil,(function(){return new CX.ptr($throwNilPointerError,false,EZ.nil,$ifaceNil,new $Int64(0,0));}));EQ=$toNativeArray($kindBool,[false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,true,true,false,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,false,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true]);ER=$toNativeArray($kindBool,[false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,true,true,false,true,true,true,false,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,false,true,false,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,false,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true]);}return;}if($f===undefined){$f={$blk:$init};}$f.$s=$s;$f.$r=$r;return $f;};$pkg.$init=$init;return $pkg;})(); -$packages["github.com/88250/lute/parse"]=(function(){var $pkg={},$init,A,L,C,D,E,K,F,G,I,J,H,B,V,AD,CF,CG,CH,CI,CR,CS,CT,CU,CV,CW,CX,CY,CZ,DA,DB,DC,DD,DE,DF,DG,DH,DI,DJ,DN,M,N,O,P,Q,S,AC,AE,AM,AN,AQ,AR,AS,AT,AU,AV,AX,AY,BO,BW,CM,T,U,W,X,Y,Z,AA,AB,AF,AG,AH,AI,AJ,AK,AL,AO,AP,AW,AZ,BC,BD,BF,BG,BH,BI,BJ,BK,BL,BM,BN,BU,BV,BX,BY,BZ,CA,CB,CC,CE,CJ,CK,CL,CN,CO,CP,CQ;A=$packages["bytes"];L=$packages["encoding/json"];C=$packages["github.com/88250/lute/ast"];D=$packages["github.com/88250/lute/editor"];E=$packages["github.com/88250/lute/html"];K=$packages["github.com/88250/lute/html/atom"];F=$packages["github.com/88250/lute/lex"];G=$packages["github.com/88250/lute/util"];I=$packages["strconv"];J=$packages["strings"];H=$packages["unicode"];B=$packages["unicode/utf8"];V=$pkg.blockStartFunc=$newType(4,$kindFunc,"parse.blockStartFunc",true,"github.com/88250/lute/parse",false,null);AD=$pkg.delimiter=$newType(0,$kindStruct,"parse.delimiter",true,"github.com/88250/lute/parse",false,function(node_,typ_,num_,originalNum_,canOpen_,canClose_,previous_,next_,active_,image_,bracketAfter_,index_,previousDelimiter_){this.$val=this;if(arguments.length===0){this.node=CT.nil;this.typ=0;this.num=0;this.originalNum=0;this.canOpen=false;this.canClose=false;this.previous=DB.nil;this.next=DB.nil;this.active=false;this.image=false;this.bracketAfter=false;this.index=0;this.previousDelimiter=DB.nil;return;}this.node=node_;this.typ=typ_;this.num=num_;this.originalNum=originalNum_;this.canOpen=canOpen_;this.canClose=canClose_;this.previous=previous_;this.next=next_;this.active=active_;this.image=image_;this.bracketAfter=bracketAfter_;this.index=index_;this.previousDelimiter=previousDelimiter_;});CF=$pkg.Context=$newType(0,$kindStruct,"parse.Context",true,"github.com/88250/lute/parse",true,function(Tree_,ParseOption_,Tip_,oldtip_,currentLine_,currentLineLen_,offset_,column_,nextNonspace_,nextNonspaceColumn_,indent_,indented_,blank_,partiallyConsumedTab_,allClosed_,lastMatchedContainer_,rootIAL_){this.$val=this;if(arguments.length===0){this.Tree=DF.nil;this.ParseOption=DJ.nil;this.Tip=CT.nil;this.oldtip=CT.nil;this.currentLine=CR.nil;this.currentLineLen=0;this.offset=0;this.column=0;this.nextNonspace=0;this.nextNonspaceColumn=0;this.indent=0;this.indented=false;this.blank=false;this.partiallyConsumedTab=false;this.allClosed=false;this.lastMatchedContainer=CT.nil;this.rootIAL=CT.nil;return;}this.Tree=Tree_;this.ParseOption=ParseOption_;this.Tip=Tip_;this.oldtip=oldtip_;this.currentLine=currentLine_;this.currentLineLen=currentLineLen_;this.offset=offset_;this.column=column_;this.nextNonspace=nextNonspace_;this.nextNonspaceColumn=nextNonspaceColumn_;this.indent=indent_;this.indented=indented_;this.blank=blank_;this.partiallyConsumedTab=partiallyConsumedTab_;this.allClosed=allClosed_;this.lastMatchedContainer=lastMatchedContainer_;this.rootIAL=rootIAL_;});CG=$pkg.InlineContext=$newType(0,$kindStruct,"parse.InlineContext",true,"github.com/88250/lute/parse",true,function(tokens_,tokensLen_,pos_,delimiters_,brackets_){this.$val=this;if(arguments.length===0){this.tokens=CR.nil;this.tokensLen=0;this.pos=0;this.delimiters=DB.nil;this.brackets=DB.nil;return;}this.tokens=tokens_;this.tokensLen=tokensLen_;this.pos=pos_;this.delimiters=delimiters_;this.brackets=brackets_;});CH=$pkg.Tree=$newType(0,$kindStruct,"parse.Tree",true,"github.com/88250/lute/parse",true,function(Root_,Context_,lexer_,inlineContext_,Name_,ID_,Box_,Path_,HPath_,Marks_,Created_,Updated_,Hash_){this.$val=this;if(arguments.length===0){this.Root=CT.nil;this.Context=DG.nil;this.lexer=DH.nil;this.inlineContext=DI.nil;this.Name="";this.ID="";this.Box="";this.Path="";this.HPath="";this.Marks=CX.nil;this.Created=new $Int64(0,0);this.Updated=new $Int64(0,0);this.Hash="";return;}this.Root=Root_;this.Context=Context_;this.lexer=lexer_;this.inlineContext=inlineContext_;this.Name=Name_;this.ID=ID_;this.Box=Box_;this.Path=Path_;this.HPath=HPath_;this.Marks=Marks_;this.Created=Created_;this.Updated=Updated_;this.Hash=Hash_;});CI=$pkg.Options=$newType(0,$kindStruct,"parse.Options",true,"github.com/88250/lute/parse",true,function(GFMTable_,GFMTaskListItem_,GFMStrikethrough_,GFMAutoLink_,Footnotes_,HeadingID_,ToC_,Emoji_,AliasEmoji_,EmojiAlias_,EmojiSite_,VditorWYSIWYG_,VditorIR_,VditorSV_,ProtyleWYSIWYG_,InlineMathAllowDigitAfterOpenMarker_,Setext_,YamlFrontMatter_,BlockRef_,FileAnnotationRef_,Mark_,KramdownBlockIAL_,KramdownSpanIAL_,Tag_,ImgPathAllowSpace_,SuperBlock_,Sup_,Sub_,GitConflict_,LinkRef_,IndentCodeBlock_,ParagraphBeginningSpace_,DataImage_,TextMark_){this.$val=this;if(arguments.length===0){this.GFMTable=false;this.GFMTaskListItem=false;this.GFMStrikethrough=false;this.GFMAutoLink=false;this.Footnotes=false;this.HeadingID=false;this.ToC=false;this.Emoji=false;this.AliasEmoji=false;this.EmojiAlias=false;this.EmojiSite="";this.VditorWYSIWYG=false;this.VditorIR=false;this.VditorSV=false;this.ProtyleWYSIWYG=false;this.InlineMathAllowDigitAfterOpenMarker=false;this.Setext=false;this.YamlFrontMatter=false;this.BlockRef=false;this.FileAnnotationRef=false;this.Mark=false;this.KramdownBlockIAL=false;this.KramdownSpanIAL=false;this.Tag=false;this.ImgPathAllowSpace=false;this.SuperBlock=false;this.Sup=false;this.Sub=false;this.GitConflict=false;this.LinkRef=false;this.IndentCodeBlock=false;this.ParagraphBeginningSpace=false;this.DataImage=false;this.TextMark=false;return;}this.GFMTable=GFMTable_;this.GFMTaskListItem=GFMTaskListItem_;this.GFMStrikethrough=GFMStrikethrough_;this.GFMAutoLink=GFMAutoLink_;this.Footnotes=Footnotes_;this.HeadingID=HeadingID_;this.ToC=ToC_;this.Emoji=Emoji_;this.AliasEmoji=AliasEmoji_;this.EmojiAlias=EmojiAlias_;this.EmojiSite=EmojiSite_;this.VditorWYSIWYG=VditorWYSIWYG_;this.VditorIR=VditorIR_;this.VditorSV=VditorSV_;this.ProtyleWYSIWYG=ProtyleWYSIWYG_;this.InlineMathAllowDigitAfterOpenMarker=InlineMathAllowDigitAfterOpenMarker_;this.Setext=Setext_;this.YamlFrontMatter=YamlFrontMatter_;this.BlockRef=BlockRef_;this.FileAnnotationRef=FileAnnotationRef_;this.Mark=Mark_;this.KramdownBlockIAL=KramdownBlockIAL_;this.KramdownSpanIAL=KramdownSpanIAL_;this.Tag=Tag_;this.ImgPathAllowSpace=ImgPathAllowSpace_;this.SuperBlock=SuperBlock_;this.Sup=Sup_;this.Sub=Sub_;this.GitConflict=GitConflict_;this.LinkRef=LinkRef_;this.IndentCodeBlock=IndentCodeBlock_;this.ParagraphBeginningSpace=ParagraphBeginningSpace_;this.DataImage=DataImage_;this.TextMark=TextMark_;});CR=$sliceType($Uint8);CS=$sliceType(CR);CT=$ptrType(C.Node);CU=$sliceType(CT);CV=$ptrType(C.ListData);CW=$sliceType($Int);CX=$sliceType($String);CY=$sliceType(CX);CZ=$sliceType(V);DA=$sliceType(C.NodeType);DB=$ptrType(AD);DC=$ptrType(E.Node);DD=$ptrType(E.Attribute);DE=$sliceType(DD);DF=$ptrType(CH);DG=$ptrType(CF);DH=$ptrType(F.Lexer);DI=$ptrType(CG);DJ=$ptrType(CI);DN=$mapType($String,$String);CH.ptr.prototype.parseGFMAutoEmailLink=function(a){var a,b,c,d;b=this;c=a.FirstChild;while(true){if(!(!(CT.nil===c))){break;}d=c.Next;if((16===c.Type)&&!(CT.nil===c.Parent)&&!((33===c.Parent.Type))){b.parseGFMAutoEmailLink0(c);}else{b.parseGFMAutoEmailLink(c);}c=d;}};CH.prototype.parseGFMAutoEmailLink=function(a){return this.$val.parseGFMAutoEmailLink(a);};CH.ptr.prototype.parseGFMAutoLink=function(a){var a,b,c,d;b=this;c=a.FirstChild;while(true){if(!(!(CT.nil===c))){break;}d=c.Next;if(16===c.Type){b.parseGFMAutoLink0(c);}else{b.parseGFMAutoLink(c);}c=d;}};CH.prototype.parseGFMAutoLink=function(a){return this.$val.parseGFMAutoLink(a);};CH.ptr.prototype.parseGFMAutoEmailLink0=function(a){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r;b=this;c=a.Tokens;if(0>=A.IndexByte(c,64)){return;}d=0;e=0;f=0;g=0;h=d;i=e;j=f;k=g;l=0;m=c.$length;loopPart:while(true){if(!(h=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+i]);if(!F.IsWhitespace(l)){n=$append(n,((i<0||i>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+i]));if(64===l){k=i-h>>0;}i=i+(1)>>0;continue;}break;}if(h===i){b.addPreviousText(a,new CR([((i<0||i>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+i])]));h=h+(1)>>0;continue;}h=i;if(0>=k){b.addPreviousText(a,n);continue;}j=0;while(true){if(!(j=n.$length)?($throwRuntimeError("index out of range"),undefined):n.$array[n.$offset+j]);if(!b.isValidEmailSegment1(l)){b.addPreviousText(a,n);continue loopPart;}j=j+(1)>>0;}j=j+(1)>>0;o=0;while(true){if(!(j=n.$length)?($throwRuntimeError("index out of range"),undefined):n.$array[n.$offset+j]);l=((j<0||j>=n.$length)?($throwRuntimeError("index out of range"),undefined):n.$array[n.$offset+j]);if(!b.isValidEmailSegment2(l)){b.addPreviousText(a,n);continue loopPart;}j=j+(1)>>0;}if(46===l){p=n.$length-1>>0;n=$subslice(n,0,p);q=b.newLink(33,n,$appendSlice(M,n),CR.nil,2);a.InsertBefore(q);b.addPreviousText(a,new CR([o]));}else if((45===l)||(95===l)){b.addPreviousText(a,n);continue loopPart;}else{r=new C.Node.ptr("","","","",33,CT.nil,CT.nil,CT.nil,CT.nil,CT.nil,CU.nil,CR.nil,"","",false,false,false,0,false,0,0,0,CR.nil,CR.nil,CR.nil,0,CV.nil,false,CW.nil,0,0,0,2,CR.nil,0,false,"",0,CR.nil,"",CU.nil,CR.nil,CY.nil,false,"","","","","","","","");r.AppendChild(new C.Node.ptr("","","","",40,CT.nil,CT.nil,CT.nil,CT.nil,CT.nil,CU.nil,n,"","",false,false,false,0,false,0,0,0,CR.nil,CR.nil,CR.nil,0,CV.nil,false,CW.nil,0,0,0,0,CR.nil,0,false,"",0,CR.nil,"",CU.nil,CR.nil,CY.nil,false,"","","","","","","",""));r.AppendChild(new C.Node.ptr("","","","",41,CT.nil,CT.nil,CT.nil,CT.nil,CT.nil,CU.nil,$appendSlice(M,n),"","",false,false,false,0,false,0,0,0,CR.nil,CR.nil,CR.nil,0,CV.nil,false,CW.nil,0,0,0,0,CR.nil,0,false,"",0,CR.nil,"",CU.nil,CR.nil,CY.nil,false,"","","","","","","",""));a.InsertBefore(r);}}a.Unlink();return;};CH.prototype.parseGFMAutoEmailLink0=function(a){return this.$val.parseGFMAutoEmailLink0(a);};CH.ptr.prototype.isValidEmailSegment1=function(a){var a,b;b=this;return F.IsASCIILetterNumHyphen(a)||(46===a)||(43===a)||(95===a);};CH.prototype.isValidEmailSegment1=function(a){return this.$val.isValidEmailSegment1(a);};CH.ptr.prototype.isValidEmailSegment2=function(a){var a,b;b=this;return F.IsASCIILetterNumHyphen(a)||(46===a)||(95===a);};CH.prototype.isValidEmailSegment2=function(a){return this.$val.isValidEmailSegment2(a);};CH.ptr.prototype.parseGFMAutoLink0=function(a){var a,aa,ab,ac,ad,ae,af,ag,ah,ai,aj,ak,al,am,an,ao,ap,aq,ar,as,at,au,av,aw,ax,ay,az,b,ba,bb,bc,bd,be,bf,bg,bh,bi,bj,bk,bl,bm,bn,bo,bp,bq,br,bs,bt,bu,bv,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z;b=this;c=a.Tokens;d=c.$length;e=5;if(e>d){return;}f=0;g=0;h=0;i=f;j=g;k=h;l=0;m=0;n=l;o=m;p=0;q=false;r=false;while(true){if(!(i=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+i]);s=CR.nil;t=d-i>>0;if(10<=t&&(119===((i<0||i>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+i]))&&(119===(u=i+1>>0,((u<0||u>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+u])))&&(119===(v=i+2>>0,((v<0||v>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+v])))&&(46===(w=i+3>>0,((w<0||w>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+w])))){s=N;q=true;}else if(13<=t&&(104===((i<0||i>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+i]))&&(116===(x=i+1>>0,((x<0||x>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+x])))&&(116===(y=i+2>>0,((y<0||y>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+y])))&&(112===(z=i+3>>0,((z<0||z>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+z])))&&(58===(aa=i+4>>0,((aa<0||aa>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+aa])))&&(47===(ab=i+5>>0,((ab<0||ab>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+ab])))&&(47===(ac=i+6>>0,((ac<0||ac>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+ac])))){s=$subslice(c,i,(i+7>>0));i=i+(7)>>0;}else if(14<=t&&(104===((i<0||i>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+i]))&&(116===(ad=i+1>>0,((ad<0||ad>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+ad])))&&(116===(ae=i+2>>0,((ae<0||ae>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+ae])))&&(112===(af=i+3>>0,((af<0||af>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+af])))&&(115===(ag=i+4>>0,((ag<0||ag>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+ag])))&&(58===(ah=i+5>>0,((ah<0||ah>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+ah])))&&(47===(ai=i+6>>0,((ai<0||ai>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+ai])))&&(47===(aj=i+7>>0,((aj<0||aj>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+aj])))){s=$subslice(c,i,(i+8>>0));i=i+(8)>>0;}else if(12<=t&&(102===((i<0||i>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+i]))&&(116===(ak=i+1>>0,((ak<0||ak>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+ak])))&&(112===(al=i+2>>0,((al<0||al>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+al])))&&(58===(am=i+3>>0,((am<0||am>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+am])))&&(47===(an=i+4>>0,((an<0||an>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+an])))&&(47===(ao=i+5>>0,((ao<0||ao>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+ao])))){s=$subslice(c,i,(i+6>>0));i=i+(6)>>0;}else{ap=A.Split($subslice(c,i),(new CR($stringToBytes("://"))));if((2===ap.$length)&&0<(0>=ap.$length?($throwRuntimeError("index out of range"),undefined):ap.$array[ap.$offset+0]).$length&&0<(1>=ap.$length?($throwRuntimeError("index out of range"),undefined):ap.$array[ap.$offset+1]).$length&&!A.Contains($subslice(c,i),N)&&!A.Contains($subslice(c,i),O)&&!A.Contains($subslice(c,i),P)){s=$appendSlice((0>=ap.$length?($throwRuntimeError("index out of range"),undefined):ap.$array[ap.$offset+0]),(new CR($stringToBytes("://"))));i=i+(((0>=ap.$length?($throwRuntimeError("index out of range"),undefined):ap.$array[ap.$offset+0]).$length+3>>0))>>0;}else{o=o+(1)>>0;if((d-i>>0)>0;continue;}}if(n=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+j]);if((F.IsWhitespace(p)||(60===p))||(!F.IsASCIIPunct(p)&&!F.IsASCIILetterNum(p))){break;}aq=$append(aq,p);j=j+(1)>>0;}if(i===j){if(128<=p){if(!q){aq=$appendSlice(aq,s);}while(true){if(!(i=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+i]);if(128>p){break;}aq=$append(aq,p);i=i+(1)>>0;}}else{aq=$append(aq,p);i=i+(1)>>0;}if(!(CT.nil===a.Previous)){a.Previous.Tokens=$appendSlice(a.Previous.Tokens,aq);}n=i;o=i;continue;}i=j;k=0;while(true){if(!(k=aq.$length)?($throwRuntimeError("index out of range"),undefined):aq.$array[aq.$offset+k]);if(47===p){break;}k=k+(1)>>0;}ar=$subslice(aq,0,k);as=CR.nil;at=A.Index(ar,(new CR($stringToBytes(":"))));if(0=ay.$length)?($throwRuntimeError("index out of range"),undefined):ay.$array[ay.$offset+ba]);if(40===p){aw=aw+(1)>>0;}else if(41===p){ax=ax+(1)>>0;}ba=ba+(1)>>0;}bb=false;bd=(bc=az-1>>0,((bc<0||bc>=ay.$length)?($throwRuntimeError("index out of range"),undefined):ay.$array[ay.$offset+bc]));if(41===bd){be=ax-aw>>0;if(0>0;while(true){if(!(0=ay.$length)?($throwRuntimeError("index out of range"),undefined):ay.$array[ay.$offset+ba]);if(!((41===p))){break;}be=be-(1)>>0;i=i-(1)>>0;ba=ba-(1)>>0;}ay=$subslice(ay,0,(ba+1>>0));bb=true;}else{bb=true;}}else if(59===bd){bf=false;ba=az-1>>0;while(true){if(!(0<=ba)){break;}p=((ba<0||ba>=ay.$length)?($throwRuntimeError("index out of range"),undefined):ay.$array[ay.$offset+ba]);if(38===p){bf=true;break;}ba=ba-(1)>>0;}if(bf){bg=$subslice(ay,ba,az);if(3<=bg.$length){bh=true;j=1;while(true){if(!(j<(bg.$length-1>>0))){break;}if(!F.IsASCIILetterNum(((j<0||j>=bg.$length)?($throwRuntimeError("index out of range"),undefined):bg.$array[bg.$offset+j]))){bh=false;break;}j=j+(1)>>0;}if(bh){ay=$subslice(ay,0,ba);bb=true;i=i-((az-ba>>0))>>0;}}}}if(!bb&&F.IsASCIIPunct(bd)&&!((47===bd))&&!((125===bd))&&!((123===bd))){ay=$subslice(ay,0,(az-1>>0));i=i-(1)>>0;}}else{az=ar.$length;bj=(bi=az-1>>0,((bi<0||bi>=ar.$length)?($throwRuntimeError("index out of range"),undefined):ar.$array[ar.$offset+bi]));if(F.IsASCIIPunct(bj)){ar=$subslice(ar,0,(az-1>>0));i=i-(1)>>0;}}bk=$appendSlice(s,ar);bk=$appendSlice(bk,as);bk=$appendSlice(bk,ay);bl=CR.nil;if(!q){bl=$appendSlice(bl,s);}bl=$appendSlice(bl,ar);bl=$appendSlice(bl,ay);bm=bl;if(A.HasPrefix(bm,(new CR($stringToBytes("https://github.com/"))))&&A.Contains(bm,(new CR($stringToBytes("/issues/"))))){bn=$subslice(bm,19);bn=$subslice(bn,0,A.Index(bn,(new CR($stringToBytes("/issues/")))));bp=(bo=A.Split(bm,(new CR($stringToBytes("/issues/")))),(1>=bo.$length?($throwRuntimeError("index out of range"),undefined):bo.$array[bo.$offset+1]));bp=(bq=A.Split(bp,(new CR($stringToBytes("?")))),(0>=bq.$length?($throwRuntimeError("index out of range"),undefined):bq.$array[bq.$offset+0]));if(0=bs.$length)?($throwRuntimeError("index out of range"),undefined):bs.$array[bs.$offset+bt]);if(!F.IsDigit(bu)){br=false;break;}bt++;}if(br){bm=(new CR($stringToBytes("Issue #"+($bytesToString(bp))+" \xC2\xB7 "+($bytesToString(bn)))));}}}bv=b.newLink(33,bm,E.EncodeDestination(bk),CR.nil,2);a.InsertBefore(bv);r=true;n=i;o=i;}if(ne){return false;}f=0;g=0;while(true){if(!(g=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+g]);i=h.$length;if(1>i){g=g+(1)>>0;continue;}j=0;while(true){if(!(j=h.$length)?($throwRuntimeError("index out of range"),undefined):h.$array[h.$offset+j]);if(!F.IsASCIILetterNumHyphen(f)){return false;}if(2>0))||(g===(e-1>>0)))){if(95===f){return false;}}j=j+(1)>>0;}if(g===(e-1>>0)){k=false;l=true;m=h;n=0;while(true){if(!(n=m.$length)?($throwRuntimeError("index out of range"),undefined):m.$array[m.$offset+n]);if(!F.IsDigit(o)){l=false;break;}n++;}if(!l){p=0;while(true){if(!(p=Q.$length)?($throwRuntimeError("index out of range"),undefined):Q.$array[Q.$offset+p]))){k=true;break;}p=p+(1)>>0;}}else{k=true;}if(!k){return false;}}g=g+(1)>>0;}return true;};CH.prototype.isValidDomain=function(a,b){return this.$val.isValidDomain(a,b);};CH.ptr.prototype.parseAutoEmailLink=function(a){var a,b,c,d,e,f,g,h,i,j,k,l;b=CT.nil;c=this;d=$subslice(a.tokens,1);e=CR.nil;f=0;g=d.$length;h=0;i=0;j=false;while(true){if(!(i=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+i]);e=$append(e,((i<0||i>=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+i]));h=h+(1)>>0;if(64===f){j=true;break;}if(!F.IsASCIILetterNumHyphen(f)&&!A.Contains(S,new CR([f]))){b=CT.nil;return b;}i=i+(1)>>0;}if(1>i||!j){b=CT.nil;return b;}k=$subslice(d,(i+1>>0));g=k.$length;i=0;l=false;while(true){if(!(i=k.$length)?($throwRuntimeError("index out of range"),undefined):k.$array[k.$offset+i]);h=h+(1)>>0;if(62===f){l=true;break;}e=$append(e,((i<0||i>=k.$length)?($throwRuntimeError("index out of range"),undefined):k.$array[k.$offset+i]));if(!F.IsASCIILetterNumHyphen(f)&&!((46===f))){b=CT.nil;return b;}if(63>0;}if(1>i||!l){b=CT.nil;return b;}a.pos=a.pos+((h+1>>0))>>0;b=c.newLink(33,e,$appendSlice(M,e),CR.nil,2);return b;};CH.prototype.parseAutoEmailLink=function(a){return this.$val.parseAutoEmailLink(a);};CH.ptr.prototype.newLink=function(a,b,c,d,e){var a,b,c,d,e,f,g,h;f=CT.nil;g=this;h=g.Context.ParseOption.ProtyleWYSIWYG&&A.HasSuffix(b,D.CaretTokens)&&A.HasSuffix(c,(new CR($stringToBytes("%E2%80%B8"))));if(h){b=A.ReplaceAll(b,D.CaretTokens,CR.nil);c=A.ReplaceAll(c,(new CR($stringToBytes("%E2%80%B8"))),CR.nil);}f=new C.Node.ptr("","","","",a,CT.nil,CT.nil,CT.nil,CT.nil,CT.nil,CU.nil,CR.nil,"","",false,false,false,0,false,0,0,0,CR.nil,CR.nil,CR.nil,0,CV.nil,false,CW.nil,0,0,0,e,CR.nil,0,false,"",0,CR.nil,"",CU.nil,CR.nil,CY.nil,false,"","","","","","","","");if(34===a){f.AppendChild(new C.Node.ptr("","","","",35,CT.nil,CT.nil,CT.nil,CT.nil,CT.nil,CU.nil,CR.nil,"","",false,false,false,0,false,0,0,0,CR.nil,CR.nil,CR.nil,0,CV.nil,false,CW.nil,0,0,0,0,CR.nil,0,false,"",0,CR.nil,"",CU.nil,CR.nil,CY.nil,false,"","","","","","","",""));}f.AppendChild(new C.Node.ptr("","","","",36,CT.nil,CT.nil,CT.nil,CT.nil,CT.nil,CU.nil,CR.nil,"","",false,false,false,0,false,0,0,0,CR.nil,CR.nil,CR.nil,0,CV.nil,false,CW.nil,0,0,0,0,CR.nil,0,false,"",0,CR.nil,"",CU.nil,CR.nil,CY.nil,false,"","","","","","","",""));f.AppendChild(new C.Node.ptr("","","","",40,CT.nil,CT.nil,CT.nil,CT.nil,CT.nil,CU.nil,b,"","",false,false,false,0,false,0,0,0,CR.nil,CR.nil,CR.nil,0,CV.nil,false,CW.nil,0,0,0,0,CR.nil,0,false,"",0,CR.nil,"",CU.nil,CR.nil,CY.nil,false,"","","","","","","",""));f.AppendChild(new C.Node.ptr("","","","",37,CT.nil,CT.nil,CT.nil,CT.nil,CT.nil,CU.nil,CR.nil,"","",false,false,false,0,false,0,0,0,CR.nil,CR.nil,CR.nil,0,CV.nil,false,CW.nil,0,0,0,0,CR.nil,0,false,"",0,CR.nil,"",CU.nil,CR.nil,CY.nil,false,"","","","","","","",""));f.AppendChild(new C.Node.ptr("","","","",38,CT.nil,CT.nil,CT.nil,CT.nil,CT.nil,CU.nil,CR.nil,"","",false,false,false,0,false,0,0,0,CR.nil,CR.nil,CR.nil,0,CV.nil,false,CW.nil,0,0,0,0,CR.nil,0,false,"",0,CR.nil,"",CU.nil,CR.nil,CY.nil,false,"","","","","","","",""));f.AppendChild(new C.Node.ptr("","","","",41,CT.nil,CT.nil,CT.nil,CT.nil,CT.nil,CU.nil,c,"","",false,false,false,0,false,0,0,0,CR.nil,CR.nil,CR.nil,0,CV.nil,false,CW.nil,0,0,0,0,CR.nil,0,false,"",0,CR.nil,"",CU.nil,CR.nil,CY.nil,false,"","","","","","","",""));if(!(CR.nil===d)){f.AppendChild(new C.Node.ptr("","","","",42,CT.nil,CT.nil,CT.nil,CT.nil,CT.nil,CU.nil,d,"","",false,false,false,0,false,0,0,0,CR.nil,CR.nil,CR.nil,0,CV.nil,false,CW.nil,0,0,0,0,CR.nil,0,false,"",0,CR.nil,"",CU.nil,CR.nil,CY.nil,false,"","","","","","","",""));}f.AppendChild(new C.Node.ptr("","","","",39,CT.nil,CT.nil,CT.nil,CT.nil,CT.nil,CU.nil,CR.nil,"","",false,false,false,0,false,0,0,0,CR.nil,CR.nil,CR.nil,0,CV.nil,false,CW.nil,0,0,0,0,CR.nil,0,false,"",0,CR.nil,"",CU.nil,CR.nil,CY.nil,false,"","","","","","","",""));if(h){f.AppendChild(new C.Node.ptr("","","","",16,CT.nil,CT.nil,CT.nil,CT.nil,CT.nil,CU.nil,D.CaretTokens,"","",false,false,false,0,false,0,0,0,CR.nil,CR.nil,CR.nil,0,CV.nil,false,CW.nil,0,0,0,0,CR.nil,0,false,"",0,CR.nil,"",CU.nil,CR.nil,CY.nil,false,"","","","","","","",""));}if(1===e){f.LinkRefLabel=b;}return f;};CH.prototype.newLink=function(a,b,c,d,e){return this.$val.newLink(a,b,c,d,e);};CH.ptr.prototype.parseAutolink=function(a){var a,b,c,d,e,f,g,h,i,j,k,l;b=CT.nil;c=this;d=false;e="";f=CR.nil;g=0;h=a.pos+1>>0;while(true){if(!(h=i.$length)?($throwRuntimeError("index out of range"),undefined):i.$array[i.$offset+h])))))){break;}g=(j=a.tokens,((h<0||h>=j.$length)?($throwRuntimeError("index out of range"),undefined):j.$array[j.$offset+h]));if(32===g){b=CT.nil;return b;}f=$append(f,(k=a.tokens,((h<0||h>=k.$length)?($throwRuntimeError("index out of range"),undefined):k.$array[k.$offset+h])));if(!d){if(!((58===g))){e=e+(($encodeRune(g)));}else{d=true;}}h=h+(1)>>0;}if(!d||3>e.length||(h===a.tokensLen)){b=CT.nil;return b;}if(!((62===(l=a.tokens,((h<0||h>=l.$length)?($throwRuntimeError("index out of range"),undefined):l.$array[l.$offset+h]))))){b=CT.nil;return b;}a.pos=1+h>>0;b=c.newLink(33,f,E.EncodeDestination(f),CR.nil,2);return b;};CH.prototype.parseAutolink=function(a){return this.$val.parseAutolink(a);};CH.ptr.prototype.addPreviousText=function(a,b){var a,b,c;c=this;if(CT.nil===a.Previous||!((16===a.Previous.Type))){a.InsertBefore(new C.Node.ptr("","","","",16,CT.nil,CT.nil,CT.nil,CT.nil,CT.nil,CU.nil,b,"","",false,false,false,0,false,0,0,0,CR.nil,CR.nil,CR.nil,0,CV.nil,false,CW.nil,0,0,0,0,CR.nil,0,false,"",0,CR.nil,"",CU.nil,CR.nil,CY.nil,false,"","","","","","","",""));return;}a.Previous.AppendTokens(b);};CH.prototype.addPreviousText=function(a,b){return this.$val.addPreviousText(a,b);};T=function(a,b){var a,b,c,d,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:if(!a.Context.ParseOption.BlockRef||a.Context.indented){$s=-1;return 0;}c=a.parseBlockQueryEmbed();$s=1;case 1:if($c){$c=false;c=c.$blk();}if(c&&c.$blk!==undefined){break s;}d=c;if(CT.nil===d){$s=-1;return 0;}$r=a.Context.closeUnmatchedBlocks();$s=2;case 2:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}case 3:if(!(!a.Context.Tip.CanContain(465))){$s=4;continue;}$r=a.Context.finalize(a.Context.Tip);$s=5;case 5:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=3;continue;case 4:a.Context.Tip.AppendChild(d);a.Context.Tip=d;$s=-1;return 2;}return;}if($f===undefined){$f={$blk:T};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.$s=$s;$f.$r=$r;return $f;};$pkg.BlockQueryEmbedStart=T;CH.ptr.prototype.parseBlockQueryEmbed=function(){var a,b,c,d,e,f,g,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:a=CT.nil;b=this;c=$subslice(b.Context.currentLine,b.Context.nextNonspace);d=A.HasPrefix(c,(new CR($stringToBytes("\xE2\x80\xB8{{"))));if(!A.HasPrefix(c,(new CR($stringToBytes("{{"))))&&!d){$s=-1;return a;}if(d){c=A.Replace(c,(new CR($stringToBytes("\xE2\x80\xB8{{"))),(new CR($stringToBytes("{{"))),1);}c=$subslice(c,2);e=A.TrimSpace(c);$s=1;case 1:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}c=e;if(b.Context.ParseOption.ProtyleWYSIWYG){c=A.ReplaceAll(c,D.CaretTokens,CR.nil);}if(!A.HasSuffix(c,(new CR($stringToBytes("}}"))))){$s=-1;return a;}c=$subslice(c,0,(c.$length-2>>0));f=A.TrimSpace(c);$s=2;case 2:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}g=f;c=A.TrimSuffix(c,D.CaretTokens);a=new C.Node.ptr("","","","",465,CT.nil,CT.nil,CT.nil,CT.nil,CT.nil,CU.nil,CR.nil,"","",false,false,false,0,false,0,0,0,CR.nil,CR.nil,CR.nil,0,CV.nil,false,CW.nil,0,0,0,0,CR.nil,0,false,"",0,CR.nil,"",CU.nil,CR.nil,CY.nil,false,"","","","","","","","");a.AppendChild(new C.Node.ptr("","","","",466,CT.nil,CT.nil,CT.nil,CT.nil,CT.nil,CU.nil,CR.nil,"","",false,false,false,0,false,0,0,0,CR.nil,CR.nil,CR.nil,0,CV.nil,false,CW.nil,0,0,0,0,CR.nil,0,false,"",0,CR.nil,"",CU.nil,CR.nil,CY.nil,false,"","","","","","","",""));a.AppendChild(new C.Node.ptr("","","","",466,CT.nil,CT.nil,CT.nil,CT.nil,CT.nil,CU.nil,CR.nil,"","",false,false,false,0,false,0,0,0,CR.nil,CR.nil,CR.nil,0,CV.nil,false,CW.nil,0,0,0,0,CR.nil,0,false,"",0,CR.nil,"",CU.nil,CR.nil,CY.nil,false,"","","","","","","",""));a.AppendChild(new C.Node.ptr("","","","",468,CT.nil,CT.nil,CT.nil,CT.nil,CT.nil,CU.nil,g,"","",false,false,false,0,false,0,0,0,CR.nil,CR.nil,CR.nil,0,CV.nil,false,CW.nil,0,0,0,0,CR.nil,0,false,"",0,CR.nil,"",CU.nil,CR.nil,CY.nil,false,"","","","","","","",""));a.AppendChild(new C.Node.ptr("","","","",467,CT.nil,CT.nil,CT.nil,CT.nil,CT.nil,CU.nil,CR.nil,"","",false,false,false,0,false,0,0,0,CR.nil,CR.nil,CR.nil,0,CV.nil,false,CW.nil,0,0,0,0,CR.nil,0,false,"",0,CR.nil,"",CU.nil,CR.nil,CY.nil,false,"","","","","","","",""));a.AppendChild(new C.Node.ptr("","","","",467,CT.nil,CT.nil,CT.nil,CT.nil,CT.nil,CU.nil,CR.nil,"","",false,false,false,0,false,0,0,0,CR.nil,CR.nil,CR.nil,0,CV.nil,false,CW.nil,0,0,0,0,CR.nil,0,false,"",0,CR.nil,"",CU.nil,CR.nil,CY.nil,false,"","","","","","","",""));$s=-1;return a;}return;}if($f===undefined){$f={$blk:CH.ptr.prototype.parseBlockQueryEmbed};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.$s=$s;$f.$r=$r;return $f;};CH.prototype.parseBlockQueryEmbed=function(){return this.$val.parseBlockQueryEmbed();};CH.ptr.prototype.parseBlockRef=function(a){var a,aa,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z;b=this;if(!b.Context.ParseOption.BlockRef){a.pos=a.pos+(1)>>0;return new C.Node.ptr("","","","",16,CT.nil,CT.nil,CT.nil,CT.nil,CT.nil,CU.nil,(new CR($stringToBytes("("))),"","",false,false,false,0,false,0,0,0,CR.nil,CR.nil,CR.nil,0,CV.nil,false,CW.nil,0,0,0,0,CR.nil,0,false,"",0,CR.nil,"",CU.nil,CR.nil,CY.nil,false,"","","","","","","","");}c=$subslice(a.tokens,a.pos);if(5>c.$length||!((40===(0>=c.$length?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+0])))||!((40===(1>=c.$length?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+1])))){a.pos=a.pos+(1)>>0;return new C.Node.ptr("","","","",16,CT.nil,CT.nil,CT.nil,CT.nil,CT.nil,CU.nil,(new CR($stringToBytes("("))),"","",false,false,false,0,false,0,0,0,CR.nil,CR.nil,CR.nil,0,CV.nil,false,CW.nil,0,0,0,0,CR.nil,0,false,"",0,CR.nil,"",CU.nil,CR.nil,CY.nil,false,"","","","","","","","");}d=CR.nil;e=CR.nil;f=d;g=e;h="";i=a.pos;a.pos=a.pos+(2)>>0;j=false;k=false;l=j;m=k;n=CR.nil;o=CR.nil;p=n;q=o;while(true){r=F.Spnl($subslice(a.tokens,a.pos));l=r[0];p=r[1];q=r[2];if(!l){break;}a.pos=a.pos+(p.$length)>>0;s=b.Context.parseBlockRefID(q);p=s[0];q=s[1];f=s[2];if(1>p.$length){break;}a.pos=a.pos+(p.$length)>>0;m=(41===(t=p.$length-1>>0,((t<0||t>=p.$length)?($throwRuntimeError("index out of range"),undefined):p.$array[p.$offset+t])))&&(41===(u=p.$length-2>>0,((u<0||u>=p.$length)?($throwRuntimeError("index out of range"),undefined):p.$array[p.$offset+u])));if(m){break;}if(1>q.$length||!F.IsWhitespace((0>=q.$length?($throwRuntimeError("index out of range"),undefined):q.$array[q.$offset+0]))){break;}v=F.Spnl(q);l=v[0];p=v[1];q=v[2];if(!l){break;}a.pos=a.pos+((p.$length+1>>0))>>0;m=2<=q.$length&&(41===(0>=q.$length?($throwRuntimeError("index out of range"),undefined):q.$array[q.$offset+0]))&&(41===(1>=q.$length?($throwRuntimeError("index out of range"),undefined):q.$array[q.$offset+1]));if(m){a.pos=a.pos+(1)>>0;break;}w=false;x=b.Context.parseBlockRefText(q);w=x[0];p=x[1];q=x[2];g=x[3];h=x[4];if(!w){break;}a.pos=a.pos+(p.$length)>>0;y=F.Spnl(q);l=y[0];p=y[1];q=y[2];a.pos=a.pos+(p.$length)>>0;m=l&&1=q.$length?($throwRuntimeError("index out of range"),undefined):q.$array[q.$offset+0]))&&(41===(1>=q.$length?($throwRuntimeError("index out of range"),undefined):q.$array[q.$offset+1]));a.pos=a.pos+(2)>>0;}break;}if(!m){a.pos=i+1>>0;return new C.Node.ptr("","","","",16,CT.nil,CT.nil,CT.nil,CT.nil,CT.nil,CU.nil,(new CR($stringToBytes("("))),"","",false,false,false,0,false,0,0,0,CR.nil,CR.nil,CR.nil,0,CV.nil,false,CW.nil,0,0,0,0,CR.nil,0,false,"",0,CR.nil,"",CU.nil,CR.nil,CY.nil,false,"","","","","","","","");}z=new C.Node.ptr("","","","",430,CT.nil,CT.nil,CT.nil,CT.nil,CT.nil,CU.nil,CR.nil,"","",false,false,false,0,false,0,0,0,CR.nil,CR.nil,CR.nil,0,CV.nil,false,CW.nil,0,0,0,0,CR.nil,0,false,"",0,CR.nil,"",CU.nil,CR.nil,CY.nil,false,"","","","","","","","");z.AppendChild(new C.Node.ptr("","","","",38,CT.nil,CT.nil,CT.nil,CT.nil,CT.nil,CU.nil,CR.nil,"","",false,false,false,0,false,0,0,0,CR.nil,CR.nil,CR.nil,0,CV.nil,false,CW.nil,0,0,0,0,CR.nil,0,false,"",0,CR.nil,"",CU.nil,CR.nil,CY.nil,false,"","","","","","","",""));z.AppendChild(new C.Node.ptr("","","","",38,CT.nil,CT.nil,CT.nil,CT.nil,CT.nil,CU.nil,CR.nil,"","",false,false,false,0,false,0,0,0,CR.nil,CR.nil,CR.nil,0,CV.nil,false,CW.nil,0,0,0,0,CR.nil,0,false,"",0,CR.nil,"",CU.nil,CR.nil,CY.nil,false,"","","","","","","",""));z.AppendChild(new C.Node.ptr("","","","",431,CT.nil,CT.nil,CT.nil,CT.nil,CT.nil,CU.nil,f,"","",false,false,false,0,false,0,0,0,CR.nil,CR.nil,CR.nil,0,CV.nil,false,CW.nil,0,0,0,0,CR.nil,0,false,"",0,CR.nil,"",CU.nil,CR.nil,CY.nil,false,"","","","","","","",""));if(0f){return[b,c,d];}g=0;h=0;while(true){if(!(g=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+g]);if(A.Contains(D.CaretTokens,new CR([h]))){g=g+(1)>>0;continue;}if(F.IsWhitespace(h)||(41===h)||!F.IsASCIILetterNumHyphen(((g<0||g>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+g]))){break;}g=g+(1)>>0;}c=$subslice(a,g);d=$subslice(a,0,g);if(64c.$length){return[b,c,d];}b=$makeSlice(CR,0,64);b=$appendSlice(b,d);if(A.HasPrefix(c,D.CaretTokens)){b=$appendSlice(b,D.CaretTokens);c=$subslice(c,D.CaretTokens.$length);}i=(41===(0>=c.$length?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+0]))&&(41===(1>=c.$length?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+1]));if(i){b=$appendSlice(b,(new CR($stringToBytes("))"))));return[b,c,d];}if(!F.IsWhitespace((0>=c.$length?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+0]))){b=CR.nil;return[b,c,d];}return[b,c,d];};CF.prototype.parseBlockRefID=function(a){return this.$val.parseBlockRefID(a);};U=function(){return new CZ([AI,W,AK,Z,AL,AO,CO,CN,BU,BY,AA,AG,AW,T,CK]);};W=function(a,b){var a,b,c,d,e,f,g,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:if(a.Context.indented){$s=-1;return 0;}c=F.Peek(a.Context.currentLine,a.Context.nextNonspace);if(!((62===c))){$s=-1;return 0;}d=new CR([c]);a.Context.advanceNextNonspace();a.Context.advanceOffset(1,false);e=F.Peek(a.Context.currentLine,a.Context.offset);f=(32===e)||(9===e);if(f){a.Context.advanceOffset(1,true);d=$append(d,e);}$r=a.Context.closeUnmatchedBlocks();$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}g=a.Context.addChild(5);$s=2;case 2:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}g;a.Context.addChildMarker(6,d);$s=-1;return 1;}return;}if($f===undefined){$f={$blk:W};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.$s=$s;$f.$r=$r;return $f;};$pkg.BlockquoteStart=W;X=function(a,b){var a,b,c,d;c=b.currentLine;if(!b.indented&&(F.Peek(c,b.nextNonspace)===62)){b.advanceNextNonspace();b.advanceOffset(1,false);d=F.Peek(c,b.offset);if((32===d)||(9===d)){b.advanceOffset(1,true);}return 0;}return 1;};$pkg.BlockquoteContinue=X;CH.ptr.prototype.parseBlocks=function(){var a,b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:a=this;a.Context.Tip=a.Root;b=0;c=a.lexer.NextLine();case 1:if(!(!(CR.nil===c))){$s=2;continue;}if(a.Context.ParseOption.VditorWYSIWYG||a.Context.ParseOption.VditorIR||a.Context.ParseOption.VditorSV||a.Context.ParseOption.ProtyleWYSIWYG){if(!A.Equal(c,D.CaretNewlineTokens)&&a.Context.Tip.ParentIs(8,new DA([]))&&A.HasPrefix(c,D.CaretTokens)){if(8===a.Context.Tip.Type){a.Context.Tip.AppendChild(new C.Node.ptr("","","","",16,CT.nil,CT.nil,CT.nil,CT.nil,CT.nil,CU.nil,c,"","",false,false,false,0,false,0,0,0,CR.nil,CR.nil,CR.nil,0,CV.nil,false,CW.nil,0,0,0,0,CR.nil,0,false,"",0,CR.nil,"",CU.nil,CR.nil,CY.nil,false,"","","","","","","",""));$s=2;continue;}else{a.Context.Tip.Tokens=A.TrimSuffix(a.Context.Tip.Tokens,(new CR($stringToBytes("\n"))));a.Context.Tip.Tokens=$appendSlice(a.Context.Tip.Tokens,D.CaretNewlineTokens);}c=$subslice(c,D.CaretTokens.$length);}}$r=a.incorporateLine(c);$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}b=b+(1)>>0;c=a.lexer.NextLine();$s=1;continue;case 2:case 4:if(!(!(CT.nil===a.Context.Tip))){$s=5;continue;}$r=a.Context.finalize(a.Context.Tip);$s=6;case 6:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=4;continue;case 5:$s=-1;return;}return;}if($f===undefined){$f={$blk:CH.ptr.prototype.parseBlocks};}$f.a=a;$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};CH.prototype.parseBlocks=function(){return this.$val.parseBlocks();};CH.ptr.prototype.BlockCount=function(){var a,b,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:a=[a];a[0]=0;b=this;$r=C.Walk(b.Root,(function(a){return function(c,d){var c,d;if(!d){return 2;}if(""===c.ID||!c.IsBlock()){return 2;}a[0]=a[0]+(1)>>0;return 2;};})(a));$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=-1;return a[0];}return;}if($f===undefined){$f={$blk:CH.ptr.prototype.BlockCount};}$f.a=a;$f.b=b;$f.$s=$s;$f.$r=$r;return $f;};CH.prototype.BlockCount=function(){return this.$val.BlockCount();};CH.ptr.prototype.DocBlockCount=function(){var a,b,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:a=[a];b=[b];a[0]=0;b[0]=this;$r=C.Walk(b[0].Root,(function(a,b){return function(c,d){var c,d;if(!d){return 2;}if(!c.IsChildBlockOf(b[0].Root,1)){return 2;}a[0]=a[0]+(1)>>0;return 2;};})(a,b));$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=-1;return a[0];}return;}if($f===undefined){$f={$blk:CH.ptr.prototype.DocBlockCount};}$f.a=a;$f.b=b;$f.$s=$s;$f.$r=$r;return $f;};CH.prototype.DocBlockCount=function(){return this.$val.DocBlockCount();};CH.ptr.prototype.incorporateLine=function(a){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;q=$f.q;r=$f.r;s=$f.s;t=$f.t;u=$f.u;v=$f.v;w=$f.w;x=$f.x;y=$f.y;z=$f.z;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=this;b.Context.oldtip=b.Context.Tip;b.Context.offset=0;b.Context.column=0;b.Context.blank=false;b.Context.partiallyConsumedTab=false;b.Context.currentLine=a;b.Context.currentLineLen=b.Context.currentLine.$length;c=true;d=CT.nil;d=b.Root;e=d.LastChild;case 1:if(!(!(CT.nil===e)&&!e.Close)){$s=2;continue;}d=e;b.Context.findNextNonspace();f=Y(d,b.Context);$s=4;case 4:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}g=f;if(g===(0)){$s=5;continue;}if(g===(1)){$s=6;continue;}if(g===(2)){$s=7;continue;}if(g===(3)){$s=8;continue;}$s=9;continue;case 5:$s=3;continue;$s=9;continue;case 6:c=false;$s=3;continue;$s=9;continue;case 7:$s=-1;return;case 8:$r=b.Context.closeSuperBlockChildren();$s=10;case 10:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}if(!((475===b.Context.Tip.Type))){h=b.Context.Tip.Parent;h.Close=true;h.AppendChild(new C.Node.ptr("","","","",478,CT.nil,CT.nil,CT.nil,CT.nil,CT.nil,CU.nil,CR.nil,"","",false,false,false,0,false,0,0,0,CR.nil,CR.nil,CR.nil,0,CV.nil,false,CW.nil,0,0,0,0,CR.nil,0,false,"",0,CR.nil,"",CU.nil,CR.nil,CY.nil,false,"","","","","","","",""));b.Context.Tip=h.Parent;b.Context.lastMatchedContainer=h;}else{b.Context.Tip.AppendChild(new C.Node.ptr("","","","",478,CT.nil,CT.nil,CT.nil,CT.nil,CT.nil,CU.nil,CR.nil,"","",false,false,false,0,false,0,0,0,CR.nil,CR.nil,CR.nil,0,CV.nil,false,CW.nil,0,0,0,0,CR.nil,0,false,"",0,CR.nil,"",CU.nil,CR.nil,CY.nil,false,"","","","","","","",""));b.Context.Tip.Close=true;b.Context.Tip=b.Context.Tip.Parent;b.Context.lastMatchedContainer=b.Context.Tip;}$s=-1;return;case 9:case 3:if(!c){d=d.Parent;$s=2;continue;}e=d.LastChild;$s=1;continue;case 2:b.Context.allClosed=d===b.Context.oldtip;b.Context.lastMatchedContainer=d;i=!((d.Type===1))&&d.AcceptLines();j=U();k=j.$length;case 11:if(!(!i)){$s=12;continue;}b.Context.findNextNonspace();n=(l=b.Context.currentLine,m=b.Context.nextNonspace,((m<0||m>=l.$length)?($throwRuntimeError("index out of range"),undefined):l.$array[l.$offset+m]));if(!b.Context.indented&&!((45===n))&&!((42===n))&&!((43===n))&&!F.IsDigit(n)&&!((96===n))&&!((126===n))&&!((35===n))&&!((62===n))&&!((60===n))&&!((95===n))&&!((61===n))&&!((36===n))&&!((91===n))&&!((123===n))&&!((125===n))&&!((33===n))&&!(("\xEF\xBC\x81".charCodeAt(0)===n))&&!(("\xE2\x80\xB8".charCodeAt(0)===n))){b.Context.advanceNextNonspace();$s=12;continue;}o=0;case 13:if(!(o=j.$length)?($throwRuntimeError("index out of range"),undefined):j.$array[j.$offset+o])(b,d);$s=15;case 15:if($c){$c=false;p=p.$blk();}if(p&&p.$blk!==undefined){break s;}q=p;if(q===1){d=b.Context.Tip;$s=14;continue;}else if(q===2){d=b.Context.Tip;i=true;$s=14;continue;}else{o=o+(1)>>0;}$s=13;continue;case 14:if(o===k){b.Context.advanceNextNonspace();$s=12;continue;}$s=11;continue;case 12:if(!b.Context.allClosed&&!b.Context.blank&&(b.Context.Tip.Type===1)){$s=16;continue;}$s=17;continue;case 16:b.addLine();$s=18;continue;case 17:$r=b.Context.closeUnmatchedBlocks();$s=19;case 19:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}if(b.Context.blank&&!(CT.nil===d.LastChild)){d.LastChild.LastLineBlank=true;}r=d.Type;s=(11===r)&&d.IsFencedCodeBlock;t=b.Context.blank&&!((r===411)||(r===5)||((r===11)&&s)||((r===300))||((r===495))||((r===8)&&CT.nil===d.FirstChild));u=d;while(true){if(!(!(CT.nil===u))){break;}u.LastLineBlank=t;u=u.Parent;}if(d.AcceptLines()){$s=20;continue;}if(b.Context.offset=1&&w.HtmlBlockType<=5){$s=27;continue;}$s=28;continue;case 27:x=$subslice(b.Context.currentLine,b.Context.offset);y=b.isHTMLBlockClose(x,w.HtmlBlockType);$s=31;case 31:if($c){$c=false;y=y.$blk();}if(y&&y.$blk!==undefined){break s;}if(y){$s=29;continue;}$s=30;continue;case 29:$r=b.Context.finalize(d);$s=32;case 32:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}case 30:case 28:$s=26;continue;case 25:if(3>0;c=4-((b=a.Context.column%4,b===b?b:$throwRuntimeError("integer divide by zero")))>>0;a.Context.Tip.AppendTokens(A.Repeat(G.StrToBytes(" "),c));}f=1=d.$length?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+0])))||(9===(e=a.Context.currentLine,(0>=e.$length?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+0]))));g=0===a.Context.Tip.Parent.Type;if(a.Context.ParseOption.ParagraphBeginningSpace&&f&&g){a.Context.Tip.AppendTokens(a.Context.currentLine);}else{a.Context.Tip.AppendTokens($subslice(a.Context.currentLine,a.Context.offset));}};CH.prototype.addLine=function(){return this.$val.addLine();};Y=function(a,b){var a,b,c,d,e,f,g,h,i,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=a.Type;if(c===(11)){$s=2;continue;}if(c===(9)){$s=3;continue;}if(c===(1)){$s=4;continue;}if(c===(8)){$s=5;continue;}if(c===(5)){$s=6;continue;}if(c===(300)){$s=7;continue;}if(c===(425)){$s=8;continue;}if(c===(411)){$s=9;continue;}if(c===(475)){$s=10;continue;}if(c===(495)){$s=11;continue;}if((c===(2))||(c===(4))||(c===(455))||(c===(45))||(c===(465))||(c===(500))||(c===(510))||(c===(505))||(c===(535))){$s=12;continue;}$s=13;continue;case 2:d=AB(a,b);$s=14;case 14:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}$s=-1;return d;case 3:e=AP(a,b);$s=15;case 15:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}$s=-1;return e;case 4:$s=-1;return CA(a,b);case 5:$s=-1;return BV(a,b);case 6:$s=-1;return X(a,b);case 7:f=BZ(a,b);$s=16;case 16:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}$s=-1;return f;case 8:g=CP(a,b);$s=17;case 17:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}$s=-1;return g;case 9:$s=-1;return AH(a,b);case 10:h=CL(a,b);$s=18;case 18:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}$s=-1;return h;case 11:i=AJ(a,b);$s=19;case 19:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}$s=-1;return i;case 12:$s=-1;return 1;case 13:case 1:$s=-1;return 0;}return;}if($f===undefined){$f={$blk:Y};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.$s=$s;$f.$r=$r;return $f;};Z=function(a,b){var a,b,c,d,e,f,g,h,i,j,k,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:if(a.Context.indented){$s=-1;return 0;}c=a.parseFencedCode();d=c[0];e=c[1];f=c[2];g=c[3];h=c[4];i=c[5];if(d){$s=1;continue;}$s=2;continue;case 1:$r=a.Context.closeUnmatchedBlocks();$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}j=a.Context.addChild(11);$s=4;case 4:if($c){$c=false;j=j.$blk();}if(j&&j.$blk!==undefined){break s;}k=j;k.IsFencedCodeBlock=true;k.CodeBlockFenceLen=f;k.CodeBlockFenceChar=e;k.CodeBlockFenceOffset=g;k.CodeBlockOpenFence=h;k.CodeBlockInfo=i;a.Context.advanceNextNonspace();a.Context.advanceOffset(f,false);$s=-1;return 2;case 2:$s=-1;return 0;}return;}if($f===undefined){$f={$blk:Z};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.$s=$s;$f.$r=$r;return $f;};$pkg.FenceCodeBlockStart=Z;AA=function(a,b){var a,b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:if(!a.Context.ParseOption.IndentCodeBlock||!a.Context.indented){$s=-1;return 0;}if(!((a.Context.Tip.Type===1))&&!a.Context.blank){$s=1;continue;}$s=2;continue;case 1:a.Context.advanceOffset(4,true);$r=a.Context.closeUnmatchedBlocks();$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}c=a.Context.addChild(11);$s=4;case 4:if($c){$c=false;c=c.$blk();}if(c&&c.$blk!==undefined){break s;}c;$s=-1;return 2;case 2:$s=-1;return 0;}return;}if($f===undefined){$f={$blk:AA};}$f.a=a;$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};$pkg.IndentCodeBlockStart=AA;AB=function(a,b){var a,b,c,d,e,f,g,h,i,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=b.currentLine;d=b.indent;if(a.IsFencedCodeBlock){$s=1;continue;}$s=2;continue;case 1:e=b.isFencedCodeClose($subslice(c,b.nextNonspace),a.CodeBlockFenceChar,a.CodeBlockFenceLen);f=e[0];g=e[1];if(d<=3&&f){$s=4;continue;}$s=5;continue;case 4:a.CodeBlockCloseFence=g;$r=b.finalize(a);$s=7;case 7:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=-1;return 2;case 5:h=a.CodeBlockFenceOffset;i=0;while(true){if(!(h>0)){break;}i=F.Peek(c,b.offset);if(!((32===i))&&!((9===i))){break;}b.advanceOffset(1,true);h=h-(1)>>0;}case 6:$s=3;continue;case 2:if(d>=4){b.advanceOffset(4,true);}else if(b.blank){b.advanceNextNonspace();}else{$s=-1;return 1;}case 3:$s=-1;return 0;}return;}if($f===undefined){$f={$blk:AB};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.$s=$s;$f.$r=$r;return $f;};$pkg.CodeBlockContinue=AB;CF.ptr.prototype.codeBlockFinalize=function(a){var a,b,c,d,e;b=this;if(a.IsFencedCodeBlock){c=a.Tokens;d=c.$length;if(1>d){return;}e=0;while(true){if(!(e=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+e])){break;}e=e+(1)>>0;}a.Tokens=$subslice(c,(e+1>>0));}else{a.Tokens=F.ReplaceNewlineSpace(a.Tokens);}};CF.prototype.codeBlockFinalize=function(a){return this.$val.codeBlockFinalize(a);};CH.ptr.prototype.parseFencedCode=function(){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z;a=false;b=0;c=0;d=0;e=CR.nil;f=CR.nil;g=this;j=(h=g.Context.currentLine,i=g.Context.nextNonspace,((i<0||i>=h.$length)?($throwRuntimeError("index out of range"),undefined):h.$array[h.$offset+i]));if(!((96===j))&&!((126===j))){return[a,b,c,d,e,f];}b=j;k=g.Context.nextNonspace;while(true){if(!(k=l.$length)?($throwRuntimeError("index out of range"),undefined):l.$array[l.$offset+k]))))){break;}c=c+(1)>>0;k=k+(1)>>0;}if(3>c){return[a,b,c,d,e,f];}e=$subslice(g.Context.currentLine,g.Context.nextNonspace,(g.Context.nextNonspace+c>>0));if(g.Context.ParseOption.ProtyleWYSIWYG){m=($bytesToString($subslice(g.Context.currentLine,c)));n=m;o=0;while(true){if(!(o>0));if((96===j)&&A.Contains(r,AC)){return[a,b,c,d,e,f];}s=F.TrimWhitespace(r);s=E.UnescapeBytes(s);t=A.IndexByte(s,32);if(0<=t){s=$subslice(s,0,t);}u=true;v=b;w=c;x=g.Context.indent;y=e;z=s;a=u;b=v;c=w;d=x;e=y;f=z;return[a,b,c,d,e,f];};CH.prototype.parseFencedCode=function(){return this.$val.parseFencedCode();};CF.ptr.prototype.isFencedCodeClose=function(a,b,c){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s;d=false;e=CR.nil;f=this;g=(0>=a.$length?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+0]);if(!((g===b))){h=false;i=CR.nil;d=h;e=i;return[d,e];}if(c>F.Accept(a,g)){j=false;k=CR.nil;d=j;e=k;return[d,e];}a=F.TrimWhitespace(a);l=A.HasSuffix(a,D.CaretTokens);if(f.ParseOption.VditorWYSIWYG||f.ParseOption.VditorIR||f.ParseOption.VditorSV||f.ParseOption.ProtyleWYSIWYG){a=A.ReplaceAll(a,D.CaretTokens,CR.nil);if(l){f.Tip.Tokens=A.TrimSuffix(f.Tip.Tokens,(new CR($stringToBytes("\n"))));f.Tip.Tokens=$appendSlice(f.Tip.Tokens,D.CaretTokens);}}m=a;n=0;while(true){if(!(n=m.$length)?($throwRuntimeError("index out of range"),undefined):m.$array[m.$offset+n]);if(!((o===b))){p=false;q=CR.nil;d=p;e=q;return[d,e];}n++;}e=a;r=true;s=e;d=r;e=s;return[d,e];};CF.prototype.isFencedCodeClose=function(a,b,c){return this.$val.isFencedCodeClose(a,b,c);};CH.ptr.prototype.parseCodeSpan=function(a,b){var a,b,c,d,e,f,g,h,i,j,k,l,m,n;c=CT.nil;d=this;e=b.pos;f=0;while(true){if(!((e+f>>0)>0,((h<0||h>=g.$length)?($throwRuntimeError("index out of range"),undefined):g.$array[g.$offset+h]))))){break;}f=f+(1)>>0;}i=$subslice(b.tokens,e,(e+f>>0));if(b.tokensLen<=(e+f>>0)){b.pos=b.pos+(f)>>0;c=new C.Node.ptr("","","","",16,CT.nil,CT.nil,CT.nil,CT.nil,CT.nil,CU.nil,i,"","",false,false,false,0,false,0,0,0,CR.nil,CR.nil,CR.nil,0,CV.nil,false,CW.nil,0,0,0,0,CR.nil,0,false,"",0,CR.nil,"",CU.nil,CR.nil,CY.nil,false,"","","","","","","","");return c;}j=new C.Node.ptr("","","","",28,CT.nil,CT.nil,CT.nil,CT.nil,CT.nil,CU.nil,i,"","",false,false,false,0,false,0,0,0,CR.nil,CR.nil,CR.nil,0,CV.nil,false,CW.nil,0,0,0,0,CR.nil,0,false,"",0,CR.nil,"",CU.nil,CR.nil,CY.nil,false,"","","","","","","","");k=d.matchCodeSpanEnd($subslice(b.tokens,(e+f>>0)),f);if(1>k){b.pos=b.pos+(f)>>0;c=new C.Node.ptr("","","","",16,CT.nil,CT.nil,CT.nil,CT.nil,CT.nil,CU.nil,i,"","",false,false,false,0,false,0,0,0,CR.nil,CR.nil,CR.nil,0,CV.nil,false,CW.nil,0,0,0,0,CR.nil,0,false,"",0,CR.nil,"",CU.nil,CR.nil,CY.nil,false,"","","","","","","","");return c;}k=(e+k>>0)+f>>0;l=new C.Node.ptr("","","","",30,CT.nil,CT.nil,CT.nil,CT.nil,CT.nil,CU.nil,$subslice(b.tokens,k,(k+f>>0)),"","",false,false,false,0,false,0,0,0,CR.nil,CR.nil,CR.nil,0,CV.nil,false,CW.nil,0,0,0,0,CR.nil,0,false,"",0,CR.nil,"",CU.nil,CR.nil,CY.nil,false,"","","","","","","","");m=$subslice(b.tokens,(e+f>>0),k);m=F.ReplaceAll(m,10,32);if(2=m.$length?($throwRuntimeError("index out of range"),undefined):m.$array[m.$offset+0]))&&(32===(n=m.$length-1>>0,((n<0||n>=m.$length)?($throwRuntimeError("index out of range"),undefined):m.$array[m.$offset+n])))&&!F.IsBlankLine(m)){j.Tokens=$append(j.Tokens,(0>=m.$length?($throwRuntimeError("index out of range"),undefined):m.$array[m.$offset+0]));l.Tokens=$subslice(b.tokens,(k-1>>0),(k+f>>0));m=$subslice(m,1,(m.$length-1>>0));}if(d.Context.ParseOption.GFMTable){if(109===a.Type){m=A.ReplaceAll(m,(new CR($stringToBytes("\\|"))),(new CR($stringToBytes("|"))));}}c=new C.Node.ptr("","","","",27,CT.nil,CT.nil,CT.nil,CT.nil,CT.nil,CU.nil,CR.nil,"","",false,false,false,f,false,0,0,0,CR.nil,CR.nil,CR.nil,0,CV.nil,false,CW.nil,0,0,0,0,CR.nil,0,false,"",0,CR.nil,"",CU.nil,CR.nil,CY.nil,false,"","","","","","","","");c.AppendChild(j);c.AppendChild(new C.Node.ptr("","","","",29,CT.nil,CT.nil,CT.nil,CT.nil,CT.nil,CU.nil,m,"","",false,false,false,0,false,0,0,0,CR.nil,CR.nil,CR.nil,0,CV.nil,false,CW.nil,0,0,0,0,CR.nil,0,false,"",0,CR.nil,"",CU.nil,CR.nil,CY.nil,false,"","","","","","","",""));c.AppendChild(l);b.pos=k+f>>0;return c;};CH.prototype.parseCodeSpan=function(a,b){return this.$val.parseCodeSpan(a,b);};CH.ptr.prototype.matchCodeSpanEnd=function(a,b){var a,b,c,d,e,f,g;c=0;d=this;e=a.$length;while(true){if(!(c>0;if((e-1>>0)>g&&(96===((g<0||g>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+g]))){continue;}c=c;return c;}if(0>0;}else{c=c+(1)>>0;}}c=-1;return c;};CH.prototype.matchCodeSpanEnd=function(a,b){return this.$val.matchCodeSpanEnd(a,b);};CH.ptr.prototype.handleDelim=function(a,b){var a,b,c,d,e,f,g;c=this;d=b.pos;e=c.scanDelims(b);f=$subslice(b.tokens,d,b.pos);g=new C.Node.ptr("","","","",16,CT.nil,CT.nil,CT.nil,CT.nil,CT.nil,CU.nil,f,"","",false,false,false,0,false,0,0,0,CR.nil,CR.nil,CR.nil,0,CV.nil,false,CW.nil,0,0,0,0,CR.nil,0,false,"",0,CR.nil,"",CU.nil,CR.nil,CY.nil,false,"","","","","","","","");a.AppendChild(g);if(e.canOpen||e.canClose){b.delimiters=new AD.ptr(g,e.typ,e.num,e.num,e.canOpen,e.canClose,b.delimiters,DB.nil,false,false,false,0,DB.nil);if(!(DB.nil===b.delimiters.previous)){b.delimiters.previous.next=b.delimiters;}}};CH.prototype.handleDelim=function(a,b){return this.$val.handleDelim(a,b);};CH.ptr.prototype.processEmphasis=function(a,b){var a,aa,ab,ac,ad,ae,af,ag,ah,ai,aj,ak,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z;c=this;if(DB.nil===b.delimiters){return;}d=DB.nil;e=DB.nil;f=DB.nil;g=d;h=e;i=f;j=CT.nil;k=CT.nil;l=j;m=k;n=DB.nil;o=0;p=false;q=$makeMap($Uint8.keyFor,[]);r=false;s=95;(q||$throwRuntimeError("assignment to entry in nil map"))[$Uint8.keyFor(s)]={k:s,v:a};t=42;(q||$throwRuntimeError("assignment to entry in nil map"))[$Uint8.keyFor(t)]={k:t,v:a};u=126;(q||$throwRuntimeError("assignment to entry in nil map"))[$Uint8.keyFor(u)]={k:u,v:a};v=61;(q||$throwRuntimeError("assignment to entry in nil map"))[$Uint8.keyFor(v)]={k:v,v:a};w=35;(q||$throwRuntimeError("assignment to entry in nil map"))[$Uint8.keyFor(w)]={k:w,v:a};x=94;(q||$throwRuntimeError("assignment to entry in nil map"))[$Uint8.keyFor(x)]={k:x,v:a};h=b.delimiters;while(true){if(!(!(DB.nil===h)&&!(h.previous===a))){break;}h=h.previous;}while(true){if(!(!(DB.nil===h))){break;}y=h.typ;if(!h.canClose){h=h.next;continue;}g=h.previous;p=false;while(true){if(!(!(DB.nil===g)&&!(g===a)&&!(g===(z=q[$Uint8.keyFor(y)],z!==undefined?z.v:DB.nil)))){break;}r=(h.canOpen||g.canClose)&&!(((aa=h.originalNum%3,aa===aa?aa:$throwRuntimeError("integer divide by zero"))===0))&&((ab=((g.originalNum+h.originalNum>>0))%3,ab===ab?ab:$throwRuntimeError("integer divide by zero"))===0);if((g.typ===h.typ)&&g.canOpen&&!r){p=true;break;}g=g.previous;}i=h;if(!p){h=h.next;}else{if(h.num>=2&&g.num>=2){o=2;}else{o=1;}l=g.node;m=h.node;if(c.Context.ParseOption.GFMStrikethrough||c.Context.ParseOption.Sub){if((126===y)&&!((g.num===h.num))){break;}}else{if(126===y){break;}}if(c.Context.ParseOption.Sup){if((94===y)&&!((g.num===h.num))){break;}}else{if(94===y){break;}}if(c.Context.ParseOption.Mark){if((61===y)&&!((g.num===h.num))){break;}}else{if(61===y){break;}}if(c.Context.ParseOption.Tag){if((35===y)&&!((g.num===h.num))){break;}}else{if(35===y){break;}}g.num=g.num-(o)>>0;h.num=h.num-(o)>>0;ac=$subslice(l.Tokens,(l.Tokens.$length-o>>0));ad=$subslice(l.Tokens,0,(l.Tokens.$length-o>>0));l.Tokens=ad;ae=$subslice(m.Tokens,(m.Tokens.$length-o>>0));ad=$subslice(m.Tokens,0,(m.Tokens.$length-o>>0));m.Tokens=ad;af=new C.Node.ptr("","","","",0,CT.nil,CT.nil,CT.nil,CT.nil,CT.nil,CU.nil,ac,"","",true,false,false,0,false,0,0,0,CR.nil,CR.nil,CR.nil,0,CV.nil,false,CW.nil,0,0,0,0,CR.nil,0,false,"",0,CR.nil,"",CU.nil,CR.nil,CY.nil,false,"","","","","","","","");ag=new C.Node.ptr("","","","",0,CT.nil,CT.nil,CT.nil,CT.nil,CT.nil,CU.nil,CR.nil,"","",true,false,false,0,false,0,0,0,CR.nil,CR.nil,CR.nil,0,CV.nil,false,CW.nil,0,0,0,0,CR.nil,0,false,"",0,CR.nil,"",CU.nil,CR.nil,CY.nil,false,"","","","","","","","");ah=new C.Node.ptr("","","","",0,CT.nil,CT.nil,CT.nil,CT.nil,CT.nil,CU.nil,ae,"","",true,false,false,0,false,0,0,0,CR.nil,CR.nil,CR.nil,0,CV.nil,false,CW.nil,0,0,0,0,CR.nil,0,false,"",0,CR.nil,"",CU.nil,CR.nil,CY.nil,false,"","","","","","","","");if(1===o){if(42===y){ag.Type=17;af.Type=18;ah.Type=19;}else if(95===y){ag.Type=17;af.Type=20;ah.Type=21;}else if(126===y){if(c.Context.ParseOption.Sub){ag.Type=490;af.Type=491;ah.Type=492;}else if(c.Context.ParseOption.GFMStrikethrough){ag.Type=101;af.Type=102;ah.Type=103;}}else if(61===y){if(c.Context.ParseOption.Mark){ag.Type=450;af.Type=451;ah.Type=452;}}else if(35===y){if(c.Context.ParseOption.Tag){ag.Type=460;af.Type=461;ah.Type=462;}}else if(94===y){if(c.Context.ParseOption.Sup){ag.Type=485;af.Type=486;ah.Type=487;}}}else{if(42===y){ag.Type=22;af.Type=23;ah.Type=24;}else if(95===y){ag.Type=22;af.Type=25;ah.Type=26;}else if(126===y){if(c.Context.ParseOption.GFMStrikethrough){ag.Type=101;af.Type=104;ah.Type=105;}}else if(61===y){if(c.Context.ParseOption.Mark){ag.Type=450;af.Type=453;ah.Type=454;}}}ai=l.Next;while(true){if(!(!(CT.nil===ai)&&!(ai===m))){break;}aj=ai.Next;ai.Unlink();ag.AppendChild(ai);ai=aj;}ag.PrependChild(af);ag.AppendChild(ah);l.InsertAfter(ag);if(!(g.next===h)){g.next=h;h.previous=g;}if(g.num===0){l.Unlink();c.removeDelimiter(g,b);}if(h.num===0){m.Unlink();n=h.next;c.removeDelimiter(h,b);h=n;}}if(!p&&!r){ak=y;(q||$throwRuntimeError("assignment to entry in nil map"))[$Uint8.keyFor(ak)]={k:ak,v:i.previous};if(!i.canOpen){c.removeDelimiter(i,b);}}}while(true){if(!(!(DB.nil===b.delimiters)&&!(b.delimiters===a))){break;}c.removeDelimiter(b.delimiters,b);}};CH.prototype.processEmphasis=function(a,b){return this.$val.processEmphasis(a,b);};CH.ptr.prototype.scanDelims=function(a){var a,aa,ab,ac,ad,ae,af,ag,ah,ai,aj,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z;b=this;c=a.pos;e=(d=a.tokens,((c<0||c>=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+c]));f=0;g=a.pos;while(true){if(!(g=h.$length)?($throwRuntimeError("index out of range"),undefined):h.$array[h.$offset+g]))))){break;}f=f+(1)>>0;a.pos=a.pos+(1)>>0;g=g+(1)>>0;}i=10;j=10;k=i;l=j;if(0>0,((n<0||n>=m.$length)?($throwRuntimeError("index out of range"),undefined):m.$array[m.$offset+n]));if(o>=128){p=B.DecodeLastRune($subslice(a.tokens,0,c));k=p[0];}else{k=((o>>0));}if((b.Context.ParseOption.VditorWYSIWYG||b.Context.ParseOption.VditorIR||b.Context.ParseOption.VditorSV||b.Context.ParseOption.ProtyleWYSIWYG)&&"\xE2\x80\xB8"===($encodeRune(k))){q=3;if(0<(c-q>>0)){o=(r=a.tokens,s=(c-q>>0)-1>>0,((s<0||s>=r.$length)?($throwRuntimeError("index out of range"),undefined):r.$array[r.$offset+s]));if(o>=128){t=B.DecodeLastRune($subslice(a.tokens,0,(c-q>>0)));k=t[0];}else{k=((o>>0));}}}}if(a.tokensLen>a.pos){w=(u=a.tokens,v=a.pos,((v<0||v>=u.$length)?($throwRuntimeError("index out of range"),undefined):u.$array[u.$offset+v]));if(w>=128){x=B.DecodeRune($subslice(a.tokens,a.pos));l=x[0];}else{l=((w>>0));}}y=F.IsUnicodeWhitespace(l);z=H.IsPunct(l)||H.IsSymbol(l);if(((42===e)&&(126===l))||((126===e)&&(42===l))||((94===e)&&((43===l)||(45===l)))||((126===e)&&((43===l)||(45===l)))){z=false;}aa=F.IsUnicodeWhitespace(k);ab=H.IsPunct(k)||H.IsSymbol(k);if(((42===e)&&(126===k))||((126===e)&&(42===k))||((94===e)&&((43===k)||(45===k)))||((126===e)&&((43===k)||(45===k)))){ab=false;}if(b.Context.ParseOption.ProtyleWYSIWYG){ac=false;ad=false;z=ac;ab=ad;}ae=!y&&(!z||aa||ab);af=!aa&&(!ab||y||z);ag=false;ah=false;ai=ag;aj=ah;if(95===e){ai=ae&&(!af||ab);aj=af&&(!ae||z);}else{if(b.Context.ParseOption.Mark&&(61===e)&&!((2===f))){ai=false;aj=false;}else if(b.Context.ParseOption.Tag&&(35===e)&&!((1===f))){ai=false;aj=false;}else if(b.Context.ParseOption.Sup&&(94===e)&&!((1===f))){ai=false;aj=false;}else if(b.Context.ParseOption.Sub&&(126===e)&&!((1===f))){ai=false;aj=false;if(b.Context.ParseOption.GFMStrikethrough&&(2===f)){ai=ae;aj=af;}}else{ai=ae;aj=af;}}return new AD.ptr(CT.nil,e,f,0,ai,aj,DB.nil,DB.nil,true,false,false,0,DB.nil);};CH.prototype.scanDelims=function(a){return this.$val.scanDelims(a);};CH.ptr.prototype.removeDelimiter=function(a,b){var a,b,c,d;c=DB.nil;d=this;if(!(DB.nil===a.previous)){a.previous.next=a.next;}if(DB.nil===a.next){b.delimiters=a.previous;}else{a.next.previous=a.previous;}return c;};CH.prototype.removeDelimiter=function(a,b){return this.$val.removeDelimiter(a,b);};CH.ptr.prototype.emoji=function(a){var a,b,c,d;b=this;c=a.FirstChild;while(true){if(!(!(CT.nil===c))){break;}d=c.Next;if((16===c.Type)||(40===c.Type)){b.emoji0(c);}else{b.emoji(c);}c=d;}};CH.prototype.emoji=function(a){return this.$val.emoji(a);};CH.ptr.prototype.emoji0=function(a){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v;b=this;c=a;d=a.Tokens;a.Tokens=new CR([]);e=d.$length;f=0;g=CR.nil;h=0;i=0;while(true){if(!(i=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+i]);if(i===(e-1>>0)){a.Tokens=$appendSlice(a.Tokens,$subslice(d,h));break;}if(!((58===f))){i=i+(1)>>0;continue;}a.Tokens=$appendSlice(a.Tokens,$subslice(d,h,i));j=false;h=i+1>>0;while(true){if(!(h=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+h]);if(F.IsWhitespace(f)){break;}if(58===f){j=true;break;}h=h+(1)>>0;}if(!j){a.Tokens=$appendSlice(a.Tokens,$subslice(d,i,h));i=i+(1)>>0;continue;}g=$subslice(d,(i+1>>0),h);if(1>g.$length){a.Tokens=$append(a.Tokens,((h<0||h>=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+h]));i=i+(1)>>0;continue;}k=(l=b.Context.ParseOption.AliasEmoji[$String.keyFor(G.BytesToStr(g))],l!==undefined?[l.v,true]:["",false]);m=k[0];n=k[1];if(n){o=new C.Node.ptr("","","","",200,CT.nil,CT.nil,CT.nil,CT.nil,CT.nil,CU.nil,CR.nil,"","",false,false,false,0,false,0,0,0,CR.nil,CR.nil,CR.nil,0,CV.nil,false,CW.nil,0,0,0,0,CR.nil,0,false,"",0,CR.nil,"",CU.nil,CR.nil,CY.nil,false,"","","","","","","","");p=new C.Node.ptr("","","","",201,CT.nil,CT.nil,CT.nil,CT.nil,CT.nil,CU.nil,CR.nil,"","",false,false,false,0,false,0,0,0,CR.nil,CR.nil,CR.nil,0,CV.nil,false,CW.nil,0,0,0,0,CR.nil,0,false,"",0,CR.nil,"",CU.nil,CR.nil,CY.nil,false,"","","","","","","","");o.AppendChild(p);q=G.StrToBytes(m);if(A.Contains(q,$pkg.EmojiSitePlaceholder)){r=G.BytesToStr(g);s=".png";if("huaji"===r){s=".gif";}else if("siyuan"===r){s=".svg";}t=b.Context.ParseOption.EmojiSite+"/"+r+s;p.Type=202;p.Tokens=b.EmojiImgTokens(r,t);}else if(A.Contains(q,AE)){u=G.BytesToStr(g);p.Type=202;p.Tokens=b.EmojiImgTokens(u,m);}else{p.Tokens=q;}p.AppendChild(new C.Node.ptr("","","","",203,CT.nil,CT.nil,CT.nil,CT.nil,CT.nil,CU.nil,$subslice(d,i,(h+1>>0)),"","",false,false,false,0,false,0,0,0,CR.nil,CR.nil,CR.nil,0,CV.nil,false,CW.nil,0,0,0,0,CR.nil,0,false,"",0,CR.nil,"",CU.nil,CR.nil,CY.nil,false,"","","","","","","",""));a.InsertAfter(o);if((h+1>>0)>0)));}h=h+(1)>>0;i=h;}if(1>c.Tokens.$length){c.Unlink();}if(1>a.Tokens.$length){a.Unlink();}};CH.prototype.emoji0=function(a){return this.$val.emoji0(a);};CH.ptr.prototype.EmojiImgTokens=function(a,b){var a,b,c;c=this;return G.StrToBytes("\""+a+"\"");};CH.prototype.EmojiImgTokens=function(a,b){return this.$val.EmojiImgTokens(a,b);};AF=function(){var a,b,c,d,e,f,g,h;$pkg.EmojiUnicodeAlias=(a=$keys($pkg.EmojiAliasUnicode).length,((a<0||a>2147483647)?$throwRuntimeError("makemap: size out of range"):{}));b=$pkg.EmojiAliasUnicode;c=0;d=$keys(b);while(true){if(!(cc.$length||!((60===(0>=c.$length?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+0])))||!((60===(1>=c.$length?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+1])))){$s=-1;return CT.nil;}d=$subslice(c,2,48);if(A.ContainsAny(d,"<>")){$s=-1;return CT.nil;}e=CR.nil;f=CR.nil;g=e;h=f;i=a.pos;a.pos=a.pos+(2)>>0;j=false;k=false;l=j;m=k;n=CR.nil;o=CR.nil;p=n;q=o;case 1:r=F.Spnl($subslice(a.tokens,a.pos));l=r[0];p=r[1];q=r[2];if(!l){$s=2;continue;}a.pos=a.pos+(p.$length)>>0;t=b.Context.parseFileAnnotationRefID(q);$s=3;case 3:if($c){$c=false;t=t.$blk();}if(t&&t.$blk!==undefined){break s;}s=t;p=s[0];q=s[1];g=s[2];if(1>p.$length){a.pos=i;$s=2;continue;}a.pos=a.pos+(p.$length)>>0;m=(62===(u=p.$length-1>>0,((u<0||u>=p.$length)?($throwRuntimeError("index out of range"),undefined):p.$array[p.$offset+u])))&&(62===(v=p.$length-2>>0,((v<0||v>=p.$length)?($throwRuntimeError("index out of range"),undefined):p.$array[p.$offset+v])));if(m){$s=2;continue;}if(1>q.$length||!F.IsWhitespace((0>=q.$length?($throwRuntimeError("index out of range"),undefined):q.$array[q.$offset+0]))){$s=2;continue;}w=F.Spnl(q);l=w[0];p=w[1];q=w[2];if(!l){$s=2;continue;}a.pos=a.pos+((p.$length+1>>0))>>0;m=2<=q.$length&&(62===(0>=q.$length?($throwRuntimeError("index out of range"),undefined):q.$array[q.$offset+0]))&&(62===(1>=q.$length?($throwRuntimeError("index out of range"),undefined):q.$array[q.$offset+1]));if(m){a.pos=a.pos+(1)>>0;$s=2;continue;}x=false;y=b.Context.parseLinkTitle(q);x=y[0];p=y[1];q=y[2];h=y[3];if(!x){$s=2;continue;}a.pos=a.pos+(p.$length)>>0;z=F.Spnl(q);l=z[0];p=z[1];q=z[2];a.pos=a.pos+(p.$length)>>0;m=l&&1=q.$length?($throwRuntimeError("index out of range"),undefined):q.$array[q.$offset+0]))&&(62===(1>=q.$length?($throwRuntimeError("index out of range"),undefined):q.$array[q.$offset+1]));a.pos=a.pos+(2)>>0;}$s=2;continue;$s=1;continue;case 2:if(!m){$s=-1;return CT.nil;}aa=new C.Node.ptr("","","","",540,CT.nil,CT.nil,CT.nil,CT.nil,CT.nil,CU.nil,CR.nil,"","",false,false,false,0,false,0,0,0,CR.nil,CR.nil,CR.nil,0,CV.nil,false,CW.nil,0,0,0,0,CR.nil,0,false,"",0,CR.nil,"",CU.nil,CR.nil,CY.nil,false,"","","","","","","","");aa.AppendChild(new C.Node.ptr("","","","",47,CT.nil,CT.nil,CT.nil,CT.nil,CT.nil,CU.nil,CR.nil,"","",false,false,false,0,false,0,0,0,CR.nil,CR.nil,CR.nil,0,CV.nil,false,CW.nil,0,0,0,0,CR.nil,0,false,"",0,CR.nil,"",CU.nil,CR.nil,CY.nil,false,"","","","","","","",""));aa.AppendChild(new C.Node.ptr("","","","",47,CT.nil,CT.nil,CT.nil,CT.nil,CT.nil,CU.nil,CR.nil,"","",false,false,false,0,false,0,0,0,CR.nil,CR.nil,CR.nil,0,CV.nil,false,CW.nil,0,0,0,0,CR.nil,0,false,"",0,CR.nil,"",CU.nil,CR.nil,CY.nil,false,"","","","","","","",""));aa.AppendChild(new C.Node.ptr("","","","",541,CT.nil,CT.nil,CT.nil,CT.nil,CT.nil,CU.nil,g,"","",false,false,false,0,false,0,0,0,CR.nil,CR.nil,CR.nil,0,CV.nil,false,CW.nil,0,0,0,0,CR.nil,0,false,"",0,CR.nil,"",CU.nil,CR.nil,CY.nil,false,"","","","","","","",""));if(0f){$s=-1;return[b,c,d];}g=0;h=0;case 1:if(!(g=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+g]);if(A.Contains(D.CaretTokens,new CR([h]))){g=g+(1)>>0;$s=1;continue;}if(A.HasPrefix($subslice(a,g),(new CR($stringToBytes(" \""))))){$s=2;continue;}if(62===h){$s=2;continue;}g=g+(1)>>0;$s=1;continue;case 2:c=$subslice(a,g);i=$subslice(a,0,g);if(!A.HasPrefix(i,(new CR($stringToBytes("assets/"))))){j=CR.nil;k=CR.nil;l=CR.nil;b=j;c=k;d=l;$s=-1;return[b,c,d];}i=A.TrimPrefix(i,(new CR($stringToBytes("assets/"))));if(!A.Contains(i,(new CR($stringToBytes("/"))))){$s=-1;return[b,c,d];}m=A.Split(i,(new CR($stringToBytes("/"))));if(!((2===m.$length))){$s=-1;return[b,c,d];}n=(0>=m.$length?($throwRuntimeError("index out of range"),undefined):m.$array[m.$offset+0]);if(!A.Contains(n,(new CR($stringToBytes("-"))))){o=true;$s=5;continue s;}p=A.ToLower(n);$s=6;case 6:if($c){$c=false;p=p.$blk();}if(p&&p.$blk!==undefined){break s;}q=A.HasSuffix(p,(new CR($stringToBytes(".pdf"))));$s=7;case 7:if($c){$c=false;q=q.$blk();}if(q&&q.$blk!==undefined){break s;}o=!q;case 5:if(o){$s=3;continue;}$s=4;continue;case 3:$s=-1;return[b,c,d];case 4:r=$subslice(n,0,(n.$length-4>>0));if(23>r.$length){$s=-1;return[b,c,d];}s=$subslice(r,(r.$length-22>>0));if(!C.IsNodeIDPattern(($bytesToString(s)))){$s=-1;return[b,c,d];}t=(1>=m.$length?($throwRuntimeError("index out of range"),undefined):m.$array[m.$offset+1]);if(!C.IsNodeIDPattern(($bytesToString(t)))){$s=-1;return[b,c,d];}d=$subslice(a,0,g);if(6>c.$length){$s=-1;return[b,c,d];}b=$makeSlice(CR,0,1024);b=$appendSlice(b,d);if(A.HasPrefix(c,D.CaretTokens)){b=$appendSlice(b,D.CaretTokens);c=$subslice(c,D.CaretTokens.$length);}u=(62===(0>=c.$length?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+0]))&&(62===(1>=c.$length?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+1]));if(u){b=$appendSlice(b,(new CR($stringToBytes(">>"))));$s=-1;return[b,c,d];}if(!F.IsWhitespace((0>=c.$length?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+0]))){b=CR.nil;$s=-1;return[b,c,d];}$s=-1;return[b,c,d];}return;}if($f===undefined){$f={$blk:CF.ptr.prototype.parseFileAnnotationRefID};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.p=p;$f.q=q;$f.r=r;$f.s=s;$f.t=t;$f.u=u;$f.$s=$s;$f.$r=$r;return $f;};CF.prototype.parseFileAnnotationRefID=function(a){return this.$val.parseFileAnnotationRefID(a);};AG=function(a,b){var a,b,c,d,e,f,g,h,i,j,k,l,m,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:if(!a.Context.ParseOption.Footnotes||a.Context.indented){$s=-1;return 0;}c=F.Peek(a.Context.currentLine,a.Context.nextNonspace);if(!((91===c))){$s=-1;return 0;}d=F.Peek(a.Context.currentLine,a.Context.nextNonspace+1>>0);if(!((94===d))){$s=-1;return 0;}e=new CR([94]);f=0;g=0;g=a.Context.nextNonspace+2>>0;while(true){if(!(g=h.$length)?($throwRuntimeError("index out of range"),undefined):h.$array[h.$offset+g]));if((32===f)||(10===f)||(9===f)){$s=-1;return 0;}if(93===f){break;}e=$append(e,f);g=g+(1)>>0;}if(g>=a.Context.currentLineLen){$s=-1;return 0;}if(!((58===(i=a.Context.currentLine,j=g+1>>0,((j<0||j>=i.$length)?($throwRuntimeError("index out of range"),undefined):i.$array[i.$offset+j]))))){$s=-1;return 0;}a.Context.advanceOffset(1,false);$r=a.Context.closeUnmatchedBlocks();$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}a.Context.advanceOffset(e.$length+2>>0,true);if(!((410===a.Context.Tip.Type))){$s=2;continue;}$s=3;continue;case 2:k=a.Context.addChild(410);$s=4;case 4:if($c){$c=false;k=k.$blk();}if(k&&k.$blk!==undefined){break s;}k;case 3:l=a.Context.addChild(411);$s=5;case 5:if($c){$c=false;l=l.$blk();}if(l&&l.$blk!==undefined){break s;}m=l;m.Tokens=e;$s=-1;return 1;}return;}if($f===undefined){$f={$blk:AG};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.$s=$s;$f.$r=$r;return $f;};$pkg.FootnotesStart=AG;AH=function(a,b){var a,b;if(b.blank){return 0;}if(4>b.indent){return 1;}b.advanceOffset(4,true);return 0;};$pkg.FootnotesContinue=AH;CH.ptr.prototype.FindFootnotesDef=function(a){var a,b,c,d,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:a=[a];b=[b];c=[c];c[0]=0;b[0]=CT.nil;d=this;c[0]=0;if(d.Context.ParseOption.VditorIR||d.Context.ParseOption.VditorSV||d.Context.ParseOption.VditorWYSIWYG||d.Context.ParseOption.ProtyleWYSIWYG){a[0]=A.ReplaceAll(a[0],D.CaretTokens,CR.nil);}$r=C.Walk(d.Root,(function(a,b,c){return function(e,f){var e,f;if(!f||!((411===e.Type))){return 2;}c[0]=c[0]+(1)>>0;if(A.EqualFold(e.Tokens,a[0])){b[0]=e;return 0;}return 2;};})(a,b,c));$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=-1;return[c[0],b[0]];}return;}if($f===undefined){$f={$blk:CH.ptr.prototype.FindFootnotesDef};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.$s=$s;$f.$r=$r;return $f;};CH.prototype.FindFootnotesDef=function(a){return this.$val.FindFootnotesDef(a);};AI=function(a,b){var a,b,c,d,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:if(!a.Context.ParseOption.GitConflict){$s=-1;return 0;}if(a.Context.indented){$s=-1;return 0;}c=a.parseGitConflict();if(c){$s=1;continue;}$s=2;continue;case 1:$r=a.Context.closeUnmatchedBlocks();$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}d=a.Context.addChild(495);$s=4;case 4:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}d;$s=-1;return 2;case 2:$s=-1;return 0;}return;}if($f===undefined){$f={$blk:AI};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.$s=$s;$f.$r=$r;return $f;};$pkg.GitConflictStart=AI;AJ=function(a,b){var a,b,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:if(b.isGitConflictClose()){$s=1;continue;}$s=2;continue;case 1:$r=b.finalize(a);$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=-1;return 2;case 2:$s=-1;return 0;}return;}if($f===undefined){$f={$blk:AJ};}$f.a=a;$f.b=b;$f.$s=$s;$f.$r=$r;return $f;};$pkg.GitConflictContinue=AJ;CF.ptr.prototype.gitConflictFinalize=function(a){var a,b,c,d,e,f,g,h,i,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=this;c=a.Tokens;d=A.Split(c,(new CR($stringToBytes("\n"))));e=(0>=d.$length?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+0]);f=A.Join($subslice(d,1),(new CR($stringToBytes("\n"))));g=A.TrimSpace(f);$s=1;case 1:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}f=g;h=A.TrimSpace(b.currentLine);$s=2;case 2:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}i=h;a.Tokens=CR.nil;a.AppendChild(new C.Node.ptr("","","","",496,CT.nil,CT.nil,CT.nil,CT.nil,CT.nil,CU.nil,e,"","",false,false,false,0,false,0,0,0,CR.nil,CR.nil,CR.nil,0,CV.nil,false,CW.nil,0,0,0,0,CR.nil,0,false,"",0,CR.nil,"",CU.nil,CR.nil,CY.nil,false,"","","","","","","",""));a.AppendChild(new C.Node.ptr("","","","",497,CT.nil,CT.nil,CT.nil,CT.nil,CT.nil,CU.nil,f,"","",false,false,false,0,false,0,0,0,CR.nil,CR.nil,CR.nil,0,CV.nil,false,CW.nil,0,0,0,0,CR.nil,0,false,"",0,CR.nil,"",CU.nil,CR.nil,CY.nil,false,"","","","","","","",""));a.AppendChild(new C.Node.ptr("","","","",498,CT.nil,CT.nil,CT.nil,CT.nil,CT.nil,CU.nil,i,"","",false,false,false,0,false,0,0,0,CR.nil,CR.nil,CR.nil,0,CV.nil,false,CW.nil,0,0,0,0,CR.nil,0,false,"",0,CR.nil,"",CU.nil,CR.nil,CY.nil,false,"","","","","","","",""));$s=-1;return;}return;}if($f===undefined){$f={$blk:CF.ptr.prototype.gitConflictFinalize};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.$s=$s;$f.$r=$r;return $f;};CF.prototype.gitConflictFinalize=function(a){return this.$val.gitConflictFinalize(a);};CH.ptr.prototype.parseGitConflict=function(){var a,b;a=false;b=this;a=A.HasPrefix(b.Context.currentLine,(new CR($stringToBytes("<<<<<<<"))));return a;};CH.prototype.parseGitConflict=function(){return this.$val.parseGitConflict();};CF.ptr.prototype.isGitConflictClose=function(){var a;a=this;return A.HasPrefix(a.currentLine,(new CR($stringToBytes(">>>>>>>"))));};CF.prototype.isGitConflictClose=function(){return this.$val.isGitConflictClose();};AK=function(a,b){var a,b,c,d,e,f,g,h,i,j,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:if(a.Context.indented){$s=-1;return 0;}c=a.parseATXHeading();d=c[0];e=c[1];f=c[2];g=c[3];if(d){$s=1;continue;}$s=2;continue;case 1:a.Context.advanceNextNonspace();a.Context.advanceOffset(f.$length,false);$r=a.Context.closeUnmatchedBlocks();$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}h=a.Context.addChild(2);$s=4;case 4:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}i=h;i.HeadingLevel=g;i.Tokens=f;j=new C.Node.ptr("","","","",3,CT.nil,CT.nil,CT.nil,CT.nil,CT.nil,CU.nil,e,"","",false,false,false,0,false,0,0,0,CR.nil,CR.nil,CR.nil,0,CV.nil,false,CW.nil,0,0,0,0,CR.nil,0,false,"",0,CR.nil,"",CU.nil,CR.nil,CY.nil,false,"","","","","","","","");i.AppendChild(j);a.Context.advanceOffset(a.Context.currentLineLen-a.Context.offset>>0,false);$s=-1;return 2;case 2:$s=-1;return 0;}return;}if($f===undefined){$f={$blk:AK};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.$s=$s;$f.$r=$r;return $f;};$pkg.ATXHeadingStart=AK;AL=function(a,b){var a,b,c,d,e,f,g,h,i,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:if(a.Context.indented||!((1===b.Type))||!a.Context.ParseOption.Setext){$s=-1;return 0;}c=a.parseSetextHeading();if(0===c){$s=-1;return 0;}if(a.Context.ParseOption.GFMTable){d=a.Context.parseTable0(b.Tokens);if(!(CT.nil===d)){b.Type=106;b.TableAligns=d.TableAligns;e=d.FirstChild;while(true){if(!(!(CT.nil===e))){break;}f=e.Next;b.AppendChild(e);e=f;}b.Tokens=CR.nil;$s=-1;return 0;}}$r=a.Context.closeUnmatchedBlocks();$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}g=b.Tokens;while(true){if(!(0=g.$length?($throwRuntimeError("index out of range"),undefined):g.$array[g.$offset+0])))){break;}h=a.Context.parseLinkRefDef(g);if(!(CR.nil===h)){b.Tokens=h;}else{break;}g=b.Tokens;}if(0>0,false);$s=-1;return 2;}$s=-1;return 0;}return;}if($f===undefined){$f={$blk:AL};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.$s=$s;$f.$r=$r;return $f;};$pkg.SetextHeadingStart=AL;CH.ptr.prototype.parseATXHeading=function(){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s;a=false;b=CR.nil;c=CR.nil;d=0;e=this;f=$subslice(e.Context.currentLine,e.Context.nextNonspace);g=false;if((e.Context.ParseOption.VditorWYSIWYG||e.Context.ParseOption.VditorIR||e.Context.ParseOption.VditorSV||e.Context.ParseOption.ProtyleWYSIWYG)&&A.HasPrefix(f,D.CaretTokens)){f=A.ReplaceAll(f,D.CaretTokens,CR.nil);g=true;}h=(0>=f.$length?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+0]);if(!((35===h))){return[a,b,c,d];}i=false;if((e.Context.ParseOption.VditorWYSIWYG||e.Context.ParseOption.VditorIR||e.Context.ParseOption.VditorSV)&&A.Contains(f,(new CR($stringToBytes("#\xE2\x80\xB8#"))))){f=A.ReplaceAll(f,D.CaretTokens,CR.nil);i=true;}d=F.Accept(f,35);if(6=f.$length)?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+d]))){return[a,b,c,d];}b=$subslice(e.Context.currentLine,e.Context.nextNonspace,((e.Context.nextNonspace+d>>0)+1>>0));c=$makeSlice(CR,0,256);k=F.TrimLeft(f);f=k[1];l=F.TrimLeft($subslice(f,d));f=l[1];m=f;n=0;while(true){if(!(n=m.$length)?($throwRuntimeError("index out of range"),undefined):m.$array[m.$offset+n]);if(10===o){break;}c=$append(c,o);n++;}p=F.TrimRight(c);c=p[1];q=c.$length-1>>0;while(true){if(!(0<=q)){break;}if(35===((q<0||q>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+q])){q=q-(1)>>0;continue;}if(32===((q<0||q>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+q])){break;}else{q=c.$length;break;}q=q-(1)>>0;}if(0>=q){c=$makeSlice(CR,0,0);}else if(0c.$length){return a;}}}e=0;f=((e<0||e>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+e]);if(!((61===f))&&!((45===f))){return a;}g=c.$length;while(true){if(!(e=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+e]);if(!((61===h))&&!((45===h))){return a;}if(!((0===f))){if(!((f===h))){return a;}}else{f=h;}e=e+(1)>>0;}a=1;if(45===f){a=2;}if((b.Context.ParseOption.VditorWYSIWYG||b.Context.ParseOption.VditorIR||b.Context.ParseOption.VditorSV||b.Context.ParseOption.ProtyleWYSIWYG)&&d){b.Context.oldtip.Tokens=F.TrimWhitespace(b.Context.oldtip.Tokens);b.Context.oldtip.AppendTokens(D.CaretTokens);}return a;};CH.prototype.parseSetextHeading=function(){return this.$val.parseSetextHeading();};CH.ptr.prototype.parseHeadingID=function(a,b){var a,b,c,d,e,f,g,h,i,j,k,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=CT.nil;d=this;if(!d.Context.ParseOption.HeadingID||!((2===a.Type))||3>b.tokensLen){b.pos=b.pos+(1)>>0;c=new C.Node.ptr("","","","",16,CT.nil,CT.nil,CT.nil,CT.nil,CT.nil,CU.nil,AM,"","",false,false,false,0,false,0,0,0,CR.nil,CR.nil,CR.nil,0,CV.nil,false,CW.nil,0,0,0,0,CR.nil,0,false,"",0,CR.nil,"",CU.nil,CR.nil,CY.nil,false,"","","","","","","","");$s=-1;return c;}e=b.pos;f=$subslice(b.tokens,e);g=A.Index(f,AN);if(2>g){b.pos=b.pos+(1)>>0;c=new C.Node.ptr("","","","",16,CT.nil,CT.nil,CT.nil,CT.nil,CT.nil,CU.nil,AM,"","",false,false,false,0,false,0,0,0,CR.nil,CR.nil,CR.nil,0,CV.nil,false,CW.nil,0,0,0,0,CR.nil,0,false,"",0,CR.nil,"",CU.nil,CR.nil,CY.nil,false,"","","","","","","","");$s=-1;return c;}h=A.Index(f,(new CR($stringToBytes("{"))));if(0>h){c=CT.nil;$s=-1;return c;}i=f.$length;if(!(((i-1>>0)===g))){if(!A.HasSuffix(f,(new CR($stringToBytes("}\xE2\x80\xB8"))))&&A.HasSuffix(f,D.CaretTokens)){b.pos=b.pos+(1)>>0;c=new C.Node.ptr("","","","",16,CT.nil,CT.nil,CT.nil,CT.nil,CT.nil,CU.nil,AM,"","",false,false,false,0,false,0,0,0,CR.nil,CR.nil,CR.nil,0,CV.nil,false,CW.nil,0,0,0,0,CR.nil,0,false,"",0,CR.nil,"",CU.nil,CR.nil,CY.nil,false,"","","","","","","","");$s=-1;return c;}}if(d.Context.ParseOption.VditorWYSIWYG){f=A.ReplaceAll(f,D.CaretTokens,CR.nil);}j=$subslice(f,(h+1>>0),g);b.pos=b.pos+((g+1>>0))>>0;if(!(CT.nil===a.LastChild)){$s=1;continue;}$s=2;continue;case 1:k=A.TrimRight(a.LastChild.Tokens," ");$s=3;case 3:if($c){$c=false;k=k.$blk();}if(k&&k.$blk!==undefined){break s;}a.LastChild.Tokens=k;case 2:c=new C.Node.ptr("","","","",420,CT.nil,CT.nil,CT.nil,CT.nil,CT.nil,CU.nil,j,"","",false,false,false,0,false,0,0,0,CR.nil,CR.nil,CR.nil,0,CV.nil,false,CW.nil,0,0,0,0,CR.nil,0,false,"",0,CR.nil,"",CU.nil,CR.nil,CY.nil,false,"","","","","","","","");$s=-1;return c;}return;}if($f===undefined){$f={$blk:CH.ptr.prototype.parseHeadingID};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.$s=$s;$f.$r=$r;return $f;};CH.prototype.parseHeadingID=function(a,b){return this.$val.parseHeadingID(a,b);};AO=function(a,b){var a,b,c,d,e,f,g,h,i,j,k,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:if(a.Context.indented){$s=-1;return 0;}if(!((60===F.Peek(a.Context.currentLine,a.Context.nextNonspace)))){$s=-1;return 0;}if(a.Context.ParseOption.VditorWYSIWYG){if(A.Contains(a.Context.currentLine,(new CR($stringToBytes("vditor-comment"))))){$s=-1;return 0;}}if(a.Context.ParseOption.ProtyleWYSIWYG){if(A.Contains(a.Context.currentLine,(new CR($stringToBytes(""))))){$s=7;continue;}if(A.HasPrefix(c,(new CR($stringToBytes(""))))){$s=8;continue;}if(A.HasPrefix(c,(new CR($stringToBytes(""))))){$s=9;continue;}$s=10;continue;case 7:if(A.Contains(c,(new CR($stringToBytes("data-subtype=\"widget\""))))){$s=11;continue;}$s=12;continue;case 11:f=a.Context.addChild(535);$s=14;case 14:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}f;$s=13;continue;case 12:g=a.Context.addChild(500);$s=15;case 15:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}g;case 13:$s=-1;return 2;case 8:h=a.Context.addChild(510);$s=16;case 16:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}h;$s=-1;return 2;case 9:i=a.Context.addChild(505);$s=17;case 17:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}i;$s=-1;return 2;case 10:case 5:j=a.Context.addChild(9);$s=18;case 18:if($c){$c=false;j=j.$blk();}if(j&&j.$blk!==undefined){break s;}k=j;k.HtmlBlockType=d;$s=-1;return 2;case 2:$s=-1;return 0;}return;}if($f===undefined){$f={$blk:AO};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.$s=$s;$f.$r=$r;return $f;};$pkg.HtmlBlockStart=AO;AP=function(a,b){var a,b,c,d,e,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=b.currentLine;if(b.ParseOption.KramdownBlockIAL&&BF(c)){$s=1;continue;}$s=2;continue;case 1:d=b.parseKramdownBlockIAL(c);$s=3;case 3:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;if(0>0))){break;}if((45===((i<0||i>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+i]))&&(45===(j=i+1>>0,((j<0||j>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+j])))&&(62===(k=i+2>>0,((k<0||k>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+k])))){$s=-1;return true;}i=i+(1)>>0;}}else if(g===(3)){l=0;while(true){if(!(l<(f-2>>0))){break;}if((63===((l<0||l>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+l]))&&(62===(m=l+1>>0,((m<0||m>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+m])))){$s=-1;return true;}l=l+(1)>>0;}}else if(g===(4)){$s=-1;return A.Contains(a,AV);}else if(g===(5)){n=0;while(true){if(!(n<(f-2>>0))){break;}if((93===((n<0||n>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+n]))&&(93===(o=n+1>>0,((o<0||o>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+o])))){$s=-1;return true;}n=n+(1)>>0;}}$s=-1;return false;}return;}if($f===undefined){$f={$blk:CH.ptr.prototype.isHTMLBlockClose};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.$s=$s;$f.$r=$r;return $f;};CH.prototype.isHTMLBlockClose=function(a,b){return this.$val.isHTMLBlockClose(a,b);};CH.ptr.prototype.parseHTML=function(a){var a,b,c,d,e,f,g,h,i,j,k,l;b=0;c=this;d=F.TrimLeft(a);a=d[1];e=a.$length;if(3>e){return b;}if(!((60===(0>=a.$length?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+0])))){return b;}b=1;f=F.AcceptTokenss(a,AQ);if(0<=f){if(F.IsWhitespace(((f<0||f>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+f]))||(62===((f<0||f>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+f]))){return b;}}g=F.AcceptTokenss(a,AS);if(0<=g){if(F.IsWhitespace(((g<0||g>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+g]))||(62===((g<0||g>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+g]))){b=6;return b;}if((47===((g<0||g>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+g]))&&(62===(h=g+1>>0,((h<0||h>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+h])))){b=6;return b;}}i=F.TrimWhitespace(a);j=c.isOpenTag(i);if(j&&!((c.Context.Tip.Type===1))){b=7;return b;}k=c.isCloseTag(i);if(k&&!((c.Context.Tip.Type===1))){b=7;return b;}if(0===A.Index(a,G.StrToBytes("