Merge pull request #58 from ZiRo-/master

add cuckoo miner to postform
This commit is contained in:
Jeff committed 2016-05-17 07:52:44 -04:00
commit e3928bc6c2
7 files changed
+105

No files matched your search

+14
View File
@@ -22,6 +22,7 @@ done
rev="QmPAqM7anxdr1ngPmJz9J9AAxDLinDz2Eh9aAzLF9T7LNa"
ipfs="no"
cuckoo="no"
_next=""
# check for build flags
for arg in $@ ; do
@@ -29,6 +30,9 @@ for arg in $@ ; do
"--ipfs")
ipfs="yes"
;;
"--cuckoo")
cuckoo="yes"
;;
"--disable-redis")
tags="$tags -tags disable_redis"
;;
@@ -76,4 +80,14 @@ else
go get -u -v github.com/majestrate/srndv2
cp $GOPATH/bin/srndv2 $root
fi
if [ "x$cuckoo" == "xyes" ] ; then
echo "building cucko miner js"
go get -v -u github.com/gopherjs/gopherjs
go get -v -u github.com/ZiRo-/cuckgo/miner_js
gopherjs -m -v build github.com/ZiRo-/cuckgo/miner_js
mv ./miner_js.js ./contrib/static/miner-js.js
rm ./miner_js.js.map
fi
echo "Built"
+19
View File
@@ -0,0 +1,19 @@
onready(function(){
document.getElementById("start_miner").onclick = function() {
var btn = document.getElementById("start_miner");
var label = btn.value;
btn.value = "..."
btn.disabled = true;
var worker = new Worker("./static/mineworker.js");
worker.onmessage = function(e) {
miner_cb(e.data);
btn.value=label;
btn.disabled = false;
worker.terminate();
}
worker.postMessage(55.0); // Start the worker.
};
});
function miner_cb(s) {
document.getElementById("miner_result").value = s;
}
+51
View File
@@ -0,0 +1,51 @@
"use strict";
(function() {
Error.stackTraceLimit=Infinity;var $global,$module;if(typeof window!=="undefined"){$global=window;}else if(typeof self!=="undefined"){$global=self;}else if(typeof global!=="undefined"){$global=global;$global.require=require;}else{$global=this;}if($global===undefined||$global.Array===undefined){throw new Error("no global object found");}if(typeof module!=="undefined"){$module=module;}var $packages={},$idCounter=0;var $keys=function(m){return m?Object.keys(m):[];};var $flushConsole=function(){};var $throwRuntimeError;var $throwNilPointerError=function(){$throwRuntimeError("invalid memory address or nil pointer dereference");};var $call=function(fn,rcvr,args){return fn.apply(rcvr,args);};var $makeFunc=function(fn){return function(){return fn(new($sliceType($jsObjectPtr))($global.Array.prototype.slice.call(arguments,[])));}};var $mapArray=function(array,f){var newArray=new array.constructor(array.length);for(var i=0;i<array.length;i++){newArray[i]=f(array[i]);}return newArray;};var $methodVal=function(recv,name){var vals=recv.$methodVals||{};recv.$methodVals=vals;var f=vals[name];if(f!==undefined){return f;}var method=recv[name];f=function(){$stackDepthOffset--;try{return method.apply(recv,arguments);}finally{$stackDepthOffset++;}};vals[name]=f;return f;};var $methodExpr=function(typ,name){var method=typ.prototype[name];if(method.$expr===undefined){method.$expr=function(){$stackDepthOffset--;try{if(typ.wrapped){arguments[0]=new typ(arguments[0]);}return Function.call.apply(method,arguments);}finally{$stackDepthOffset++;}};}return method.$expr;};var $ifaceMethodExprs={};var $ifaceMethodExpr=function(name){var expr=$ifaceMethodExprs["$"+name];if(expr===undefined){expr=$ifaceMethodExprs["$"+name]=function(){$stackDepthOffset--;try{return Function.call.apply(arguments[0][name],arguments);}finally{$stackDepthOffset++;}};}return expr;};var $subslice=function(slice,low,high,max){if(low<0||high<low||max<high||high>slice.$capacity||max>slice.$capacity){$throwRuntimeError("slice bounds out of range");}var s=new slice.constructor(slice.$array);s.$offset=slice.$offset+low;s.$length=slice.$length-low;s.$capacity=slice.$capacity-low;if(high!==undefined){s.$length=high-low;}if(max!==undefined){s.$capacity=max-low;}return s;};var $sliceToArray=function(slice){if(slice.$length===0){return[];}if(slice.$array.constructor!==Array){return slice.$array.subarray(slice.$offset,slice.$offset+slice.$length);}return slice.$array.slice(slice.$offset,slice.$offset+slice.$length);};var $decodeRune=function(str,pos){var c0=str.charCodeAt(pos);if(c0<0x80){return[c0,1];}if(c0!==c0||c0<0xC0){return[0xFFFD,1];}var c1=str.charCodeAt(pos+1);if(c1!==c1||c1<0x80||0xC0<=c1){return[0xFFFD,1];}if(c0<0xE0){var r=(c0&0x1F)<<6|(c1&0x3F);if(r<=0x7F){return[0xFFFD,1];}return[r,2];}var c2=str.charCodeAt(pos+2);if(c2!==c2||c2<0x80||0xC0<=c2){return[0xFFFD,1];}if(c0<0xF0){var r=(c0&0x0F)<<12|(c1&0x3F)<<6|(c2&0x3F);if(r<=0x7FF){return[0xFFFD,1];}if(0xD800<=r&&r<=0xDFFF){return[0xFFFD,1];}return[r,3];}var c3=str.charCodeAt(pos+3);if(c3!==c3||c3<0x80||0xC0<=c3){return[0xFFFD,1];}if(c0<0xF8){var r=(c0&0x07)<<18|(c1&0x3F)<<12|(c2&0x3F)<<6|(c3&0x3F);if(r<=0xFFFF||0x10FFFF<r){return[0xFFFD,1];}return[r,4];}return[0xFFFD,1];};var $encodeRune=function(r){if(r<0||r>0x10FFFF||(0xD800<=r&&r<=0xDFFF)){r=0xFFFD;}if(r<=0x7F){return String.fromCharCode(r);}if(r<=0x7FF){return String.fromCharCode(0xC0|r>>6,0x80|(r&0x3F));}if(r<=0xFFFF){return String.fromCharCode(0xE0|r>>12,0x80|(r>>6&0x3F),0x80|(r&0x3F));}return String.fromCharCode(0xF0|r>>18,0x80|(r>>12&0x3F),0x80|(r>>6&0x3F),0x80|(r&0x3F));};var $stringToBytes=function(str){var array=new Uint8Array(str.length);for(var i=0;i<str.length;i++){array[i]=str.charCodeAt(i);}return array;};var $bytesToString=function(slice){if(slice.$length===0){return"";}var str="";for(var i=0;i<slice.$length;i+=10000){str+=String.fromCharCode.apply(undefined,slice.$array.subarray(slice.$offset+i,slice.$offset+Math.min(slice.$length,i+10000)));}return str;};var $stringToRunes=function(str){var array=new Int32Array(str.length);var rune,j=0;for(var i=0;i<str.length;i+=rune[1],j++){rune=$decodeRune(str,i);array[j]=rune[0];}return array.subarray(0,j);};var $runesToString=function(slice){if(slice.$length===0){return"";}var str="";for(var i=0;i<slice.$length;i++){str+=$encodeRune(slice.$array[slice.$offset+i]);}return str;};var $copyString=function(dst,src){var n=Math.min(src.length,dst.$length);for(var i=0;i<n;i++){dst.$array[dst.$offset+i]=src.charCodeAt(i);}return n;};var $copySlice=function(dst,src){var n=Math.min(src.$length,dst.$length);$copyArray(dst.$array,src.$array,dst.$offset,src.$offset,n,dst.constructor.elem);return n;};var $copyArray=function(dst,src,dstOffset,srcOffset,n,elem){if(n===0||(dst===src&&dstOffset===srcOffset)){return;}if(src.subarray){dst.set(src.subarray(srcOffset,srcOffset+n),dstOffset);return;}switch(elem.kind){case $kindArray:case $kindStruct:if(dst===src&&dstOffset>srcOffset){for(var i=n-1;i>=0;i--){elem.copy(dst[dstOffseLine truncated
$packages["github.com/gopherjs/gopherjs/js"]=(function(){var $pkg={},$init,A,B,L,N,Q,K;A=$pkg.Object=$newType(0,$kindStruct,"js.Object","Object","github.com/gopherjs/gopherjs/js",function(object_){this.$val=this;if(arguments.length===0){this.object=null;return;}this.object=object_;});B=$pkg.Error=$newType(0,$kindStruct,"js.Error","Error","github.com/gopherjs/gopherjs/js",function(Object_){this.$val=this;if(arguments.length===0){this.Object=null;return;}this.Object=Object_;});L=$sliceType($emptyInterface);N=$ptrType(A);Q=$ptrType(B);A.ptr.prototype.Get=function(a){var $ptr,a,b;b=this;return b.object[$externalize(a,$String)];};A.prototype.Get=function(a){return this.$val.Get(a);};A.ptr.prototype.Set=function(a,b){var $ptr,a,b,c;c=this;c.object[$externalize(a,$String)]=$externalize(b,$emptyInterface);};A.prototype.Set=function(a,b){return this.$val.Set(a,b);};A.ptr.prototype.Delete=function(a){var $ptr,a,b;b=this;delete b.object[$externalize(a,$String)];};A.prototype.Delete=function(a){return this.$val.Delete(a);};A.ptr.prototype.Length=function(){var $ptr,a;a=this;return $parseInt(a.object.length);};A.prototype.Length=function(){return this.$val.Length();};A.ptr.prototype.Index=function(a){var $ptr,a,b;b=this;return b.object[a];};A.prototype.Index=function(a){return this.$val.Index(a);};A.ptr.prototype.SetIndex=function(a,b){var $ptr,a,b,c;c=this;c.object[a]=$externalize(b,$emptyInterface);};A.prototype.SetIndex=function(a,b){return this.$val.SetIndex(a,b);};A.ptr.prototype.Call=function(a,b){var $ptr,a,b,c,d;c=this;return(d=c.object,d[$externalize(a,$String)].apply(d,$externalize(b,L)));};A.prototype.Call=function(a,b){return this.$val.Call(a,b);};A.ptr.prototype.Invoke=function(a){var $ptr,a,b;b=this;return b.object.apply(undefined,$externalize(a,L));};A.prototype.Invoke=function(a){return this.$val.Invoke(a);};A.ptr.prototype.New=function(a){var $ptr,a,b;b=this;return new($global.Function.prototype.bind.apply(b.object,[undefined].concat($externalize(a,L))));};A.prototype.New=function(a){return this.$val.New(a);};A.ptr.prototype.Bool=function(){var $ptr,a;a=this;return!!(a.object);};A.prototype.Bool=function(){return this.$val.Bool();};A.ptr.prototype.String=function(){var $ptr,a;a=this;return $internalize(a.object,$String);};A.prototype.String=function(){return this.$val.String();};A.ptr.prototype.Int=function(){var $ptr,a;a=this;return $parseInt(a.object)>>0;};A.prototype.Int=function(){return this.$val.Int();};A.ptr.prototype.Int64=function(){var $ptr,a;a=this;return $internalize(a.object,$Int64);};A.prototype.Int64=function(){return this.$val.Int64();};A.ptr.prototype.Uint64=function(){var $ptr,a;a=this;return $internalize(a.object,$Uint64);};A.prototype.Uint64=function(){return this.$val.Uint64();};A.ptr.prototype.Float=function(){var $ptr,a;a=this;return $parseFloat(a.object);};A.prototype.Float=function(){return this.$val.Float();};A.ptr.prototype.Interface=function(){var $ptr,a;a=this;return $internalize(a.object,$emptyInterface);};A.prototype.Interface=function(){return this.$val.Interface();};A.ptr.prototype.Unsafe=function(){var $ptr,a;a=this;return a.object;};A.prototype.Unsafe=function(){return this.$val.Unsafe();};B.ptr.prototype.Error=function(){var $ptr,a;a=this;return"JavaScript error: "+$internalize(a.Object.message,$String);};B.prototype.Error=function(){return this.$val.Error();};B.ptr.prototype.Stack=function(){var $ptr,a;a=this;return $internalize(a.Object.stack,$String);};B.prototype.Stack=function(){return this.$val.Stack();};K=function(){var $ptr,a;a=new B.ptr(null);};N.methods=[{prop:"Get",name:"Get",pkg:"",typ:$funcType([$String],[N],false)},{prop:"Set",name:"Set",pkg:"",typ:$funcType([$String,$emptyInterface],[],false)},{prop:"Delete",name:"Delete",pkg:"",typ:$funcType([$String],[],false)},{prop:"Length",name:"Length",pkg:"",typ:$funcType([],[$Int],false)},{prop:"Index",name:"Index",pkg:"",typ:$funcType([$Int],[N],false)},{prop:"SetIndex",name:"SetIndex",pkg:"",typ:$funcType([$Int,$emptyInterface],[],false)},{prop:"Call",name:"Call",pkg:"",typ:$funcType([$String,L],[N],true)},{prop:"Invoke",name:"Invoke",pkg:"",typ:$funcType([L],[N],true)},{prop:"New",name:"New",pkg:"",typ:$funcType([L],[N],true)},{prop:"Bool",name:"Bool",pkg:"",typ:$funcType([],[$Bool],false)},{prop:"String",name:"String",pkg:"",typ:$funcType([],[$String],false)},{prop:"Int",name:"Int",pkg:"",typ:$funcType([],[$Int],false)},{prop:"Int64",name:"Int64",pkg:"",typ:$funcType([],[$Int64],false)},{prop:"Uint64",name:"Uint64",pkg:"",typ:$funcType([],[$Uint64],false)},{prop:"Float",name:"Float",pkg:"",typ:$funcType([],[$Float64],false)},{prop:"Interface",name:"Interface",pkg:"",typ:$funcType([],[$emptyInterface],false)},{prop:"Unsafe",name:"Unsafe",pkg:"",typ:$funcType([],[$Uintptr],false)}];Q.methods=[{prop:"Error",name:"Error",pkg:"",typ:$funcType([],[$String],false)},{prop:"Stack",name:"Stack",pkg:"",typ:$funcType([],[$String],false)}];A.init([{prop:"object",name:"object",pkg:"github.com/gopherjs/gopherjs/js",typ:N,Line truncated
$packages["runtime/internal/sys"]=(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["runtime"]=(function(){var $pkg={},$init,B,A,AD,AE,AF,AU,D,E,J,K,Q;B=$packages["github.com/gopherjs/gopherjs/js"];A=$packages["runtime/internal/sys"];AD=$pkg.Error=$newType(8,$kindInterface,"runtime.Error","Error","runtime",null);AE=$pkg.TypeAssertionError=$newType(0,$kindStruct,"runtime.TypeAssertionError","TypeAssertionError","runtime",function(interfaceString_,concreteString_,assertedString_,missingMethod_){this.$val=this;if(arguments.length===0){this.interfaceString="";this.concreteString="";this.assertedString="";this.missingMethod="";return;}this.interfaceString=interfaceString_;this.concreteString=concreteString_;this.assertedString=assertedString_;this.missingMethod=missingMethod_;});AF=$pkg.errorString=$newType(8,$kindString,"runtime.errorString","errorString","runtime",null);AU=$ptrType(AE);D=function(){var $ptr,a,b;a=$packages[$externalize("github.com/gopherjs/gopherjs/js",$String)];$jsObjectPtr=a.Object.ptr;$jsErrorPtr=a.Error.ptr;$throwRuntimeError=(function(b){var $ptr,b;$panic(new AF(b));});b=$ifaceNil;b=new AE.ptr("","","","");};E=function(){var $ptr,a,b;a=$global.process;if(a===undefined){return"/";}b=a.env.GOROOT;if(!(b===undefined)){return $internalize(b,$String);}return"/home/mathias/src/go";};$pkg.GOROOT=E;J=function(){var $ptr;$curGoroutine.exit=$externalize(true,$Bool);$throw(null);};$pkg.Goexit=J;K=function(a){var $ptr,a;return 1;};$pkg.GOMAXPROCS=K;Q=function(a,b){var $ptr,a,b;};$pkg.SetFinalizer=Q;AE.ptr.prototype.RuntimeError=function(){var $ptr;};AE.prototype.RuntimeError=function(){return this.$val.RuntimeError();};AE.ptr.prototype.Error=function(){var $ptr,a,b;a=this;b=a.interfaceString;if(b===""){b="interface";}if(a.concreteString===""){return"interface conversion: "+b+" is nil, not "+a.assertedString;}if(a.missingMethod===""){return"interface conversion: "+b+" is "+a.concreteString+", not "+a.assertedString;}return"interface conversion: "+a.concreteString+" is not "+a.assertedString+": missing method "+a.missingMethod;};AE.prototype.Error=function(){return this.$val.Error();};AF.prototype.RuntimeError=function(){var $ptr,a;a=this.$val;};$ptrType(AF).prototype.RuntimeError=function(){return new AF(this.$get()).RuntimeError();};AF.prototype.Error=function(){var $ptr,a;a=this.$val;return"runtime error: "+a;};$ptrType(AF).prototype.Error=function(){return new AF(this.$get()).Error();};AU.methods=[{prop:"RuntimeError",name:"RuntimeError",pkg:"",typ:$funcType([],[],false)},{prop:"Error",name:"Error",pkg:"",typ:$funcType([],[$String],false)}];AF.methods=[{prop:"RuntimeError",name:"RuntimeError",pkg:"",typ:$funcType([],[],false)},{prop:"Error",name:"Error",pkg:"",typ:$funcType([],[$String],false)}];AD.init([{prop:"Error",name:"Error",pkg:"",typ:$funcType([],[$String],false)},{prop:"RuntimeError",name:"RuntimeError",pkg:"",typ:$funcType([],[],false)}]);AE.init([{prop:"interfaceString",name:"interfaceString",pkg:"runtime",typ:$String,tag:""},{prop:"concreteString",name:"concreteString",pkg:"runtime",typ:$String,tag:""},{prop:"assertedString",name:"assertedString",pkg:"runtime",typ:$String,tag:""},{prop:"missingMethod",name:"missingMethod",pkg:"runtime",typ:$String,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=B.$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;}D();}return;}if($f===undefined){$f={$blk:$init};}$f.$s=$s;$f.$r=$r;return $f;};$pkg.$init=$init;return $pkg;})();
$packages["errors"]=(function(){var $pkg={},$init,B,C,A;B=$pkg.errorString=$newType(0,$kindStruct,"errors.errorString","errorString","errors",function(s_){this.$val=this;if(arguments.length===0){this.s="";return;}this.s=s_;});C=$ptrType(B);A=function(a){var $ptr,a;return new B.ptr(a);};$pkg.New=A;B.ptr.prototype.Error=function(){var $ptr,a;a=this;return a.s;};B.prototype.Error=function(){return this.$val.Error();};C.methods=[{prop:"Error",name:"Error",pkg:"",typ:$funcType([],[$String],false)}];B.init([{prop:"s",name:"s",pkg:"errors",typ:$String,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:}return;}if($f===undefined){$f={$blk:$init};}$f.$s=$s;$f.$r=$r;return $f;};$pkg.$init=$init;return $pkg;})();
$packages["internal/race"]=(function(){var $pkg={},$init,A,B,C,D,E,H,I;A=function(a){var $ptr,a;};$pkg.Acquire=A;B=function(a){var $ptr,a;};$pkg.Release=B;C=function(a){var $ptr,a;};$pkg.ReleaseMerge=C;D=function(){var $ptr;};$pkg.Disable=D;E=function(){var $ptr;};$pkg.Enable=E;H=function(a,b){var $ptr,a,b;};$pkg.ReadRange=H;I=function(a,b){var $ptr,a,b;};$pkg.WriteRange=I;$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["sync/atomic"]=(function(){var $pkg={},$init,A,H,N,U,AA;A=$packages["github.com/gopherjs/gopherjs/js"];H=function(ad,ae,af){var $ptr,ad,ae,af;if(ad.$get()===ae){ad.$set(af);return true;}return false;};$pkg.CompareAndSwapInt32=H;N=function(ad,ae){var $ptr,ad,ae,af;af=ad.$get()+ae>>0;ad.$set(af);return af;};$pkg.AddInt32=N;U=function(ad){var $ptr,ad;return ad.$get();};$pkg.LoadUint32=U;AA=function(ad,ae){var $ptr,ad,ae;ad.$set(ae);};$pkg.StoreUint32=AA;$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;}}return;}if($f===undefined){$f={$blk:$init};}$f.$s=$s;$f.$r=$r;return $f;};$pkg.$init=$init;return $pkg;})();
$packages["sync"]=(function(){var $pkg={},$init,A,C,B,F,O,P,Q,R,Z,AE,AF,AG,AH,AI,AJ,AK,AO,AR,AS,AT,AU,AX,BC,BD,BE,BF,H,U,E,G,I,J,K,S,V,W,AC,AD;A=$packages["internal/race"];C=$packages["runtime"];B=$packages["sync/atomic"];F=$pkg.Pool=$newType(0,$kindStruct,"sync.Pool","Pool","sync",function(local_,localSize_,store_,New_){this.$val=this;if(arguments.length===0){this.local=0;this.localSize=0;this.store=AS.nil;this.New=$throwNilPointerError;return;}this.local=local_;this.localSize=localSize_;this.store=store_;this.New=New_;});O=$pkg.Mutex=$newType(0,$kindStruct,"sync.Mutex","Mutex","sync",function(state_,sema_){this.$val=this;if(arguments.length===0){this.state=0;this.sema=0;return;}this.state=state_;this.sema=sema_;});P=$pkg.Locker=$newType(8,$kindInterface,"sync.Locker","Locker","sync",null);Q=$pkg.Once=$newType(0,$kindStruct,"sync.Once","Once","sync",function(m_,done_){this.$val=this;if(arguments.length===0){this.m=new O.ptr(0,0);this.done=0;return;}this.m=m_;this.done=done_;});R=$pkg.poolLocal=$newType(0,$kindStruct,"sync.poolLocal","poolLocal","sync",function(private$0_,shared_,Mutex_,pad_){this.$val=this;if(arguments.length===0){this.private$0=$ifaceNil;this.shared=AS.nil;this.Mutex=new O.ptr(0,0);this.pad=BF.zero();return;}this.private$0=private$0_;this.shared=shared_;this.Mutex=Mutex_;this.pad=pad_;});Z=$pkg.syncSema=$newType(0,$kindStruct,"sync.syncSema","syncSema","sync",function(lock_,head_,tail_){this.$val=this;if(arguments.length===0){this.lock=0;this.head=0;this.tail=0;return;}this.lock=lock_;this.head=head_;this.tail=tail_;});AE=$pkg.RWMutex=$newType(0,$kindStruct,"sync.RWMutex","RWMutex","sync",function(w_,writerSem_,readerSem_,readerCount_,readerWait_){this.$val=this;if(arguments.length===0){this.w=new O.ptr(0,0);this.writerSem=0;this.readerSem=0;this.readerCount=0;this.readerWait=0;return;}this.w=w_;this.writerSem=writerSem_;this.readerSem=readerSem_;this.readerCount=readerCount_;this.readerWait=readerWait_;});AF=$pkg.rlocker=$newType(0,$kindStruct,"sync.rlocker","rlocker","sync",function(w_,writerSem_,readerSem_,readerCount_,readerWait_){this.$val=this;if(arguments.length===0){this.w=new O.ptr(0,0);this.writerSem=0;this.readerSem=0;this.readerCount=0;this.readerWait=0;return;}this.w=w_;this.writerSem=writerSem_;this.readerSem=readerSem_;this.readerCount=readerCount_;this.readerWait=readerWait_;});AG=$ptrType(F);AH=$sliceType(AG);AI=$ptrType($Uint32);AJ=$chanType($Bool,false,false);AK=$sliceType(AJ);AO=$ptrType($Int32);AR=$ptrType(R);AS=$sliceType($emptyInterface);AT=$ptrType(AF);AU=$ptrType(AE);AX=$funcType([],[$emptyInterface],false);BC=$ptrType(O);BD=$funcType([],[],false);BE=$ptrType(Q);BF=$arrayType($Uint8,128);E=function(i){var $ptr,i;};F.ptr.prototype.Get=function(){var $ptr,i,j,k,l,m,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$ptr=$f.$ptr;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:i=this;if(i.store.$length===0){$s=1;continue;}$s=2;continue;case 1:if(!(i.New===$throwNilPointerError)){$s=3;continue;}$s=4;continue;case 3:j=i.New();$s=5;case 5:if($c){$c=false;j=j.$blk();}if(j&&j.$blk!==undefined){break s;}$s=6;case 6:return j;case 4:return $ifaceNil;case 2:m=(k=i.store,l=i.store.$length-1>>0,((l<0||l>=k.$length)?$throwRuntimeError("index out of range"):k.$array[k.$offset+l]));i.store=$subslice(i.store,0,(i.store.$length-1>>0));return m;}return;}if($f===undefined){$f={$blk:F.ptr.prototype.Get};}$f.$ptr=$ptr;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.$s=$s;$f.$r=$r;return $f;};F.prototype.Get=function(){return this.$val.Get();};F.ptr.prototype.Put=function(i){var $ptr,i,j;j=this;if($interfaceIsEqual(i,$ifaceNil)){return;}j.store=$append(j.store,i);};F.prototype.Put=function(i){return this.$val.Put(i);};G=function(i){var $ptr,i;};I=function(i){var $ptr,i,j,k,l,m,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$ptr=$f.$ptr;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(i.$get()===0){$s=1;continue;}$s=2;continue;case 1:j=new $Chan($Bool,0);k=i;(H||$throwRuntimeError("assignment to entry in nil map"))[AI.keyFor(k)]={k:k,v:$append((l=H[AI.keyFor(i)],l!==undefined?l.v:AK.nil),j)};m=$recv(j);$s=3;case 3:if($c){$c=false;m=m.$blk();}if(m&&m.$blk!==undefined){break s;}m[0];case 2:i.$set(i.$get()-(1)>>>0);$s=-1;case-1:}return;}if($f===undefined){$f={$blk:I};}$f.$ptr=$ptr;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.$s=$s;$f.$r=$r;return $f;};J=function(i){var $ptr,i,j,k,l,m,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$ptr=$f.$ptr;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:i.$set(i.$get()+(1)>>>0);k=(j=H[AI.keyFor(i)],j!==undefined?j.v:AK.nil);if(k.$length===0){return;}l=(0>=k.$length?$throwRuntimeError("index out of range"):k.$array[k.$offset+0]);k=$subslice(k,1);m=i;(H||$throwRuntimeError("assignment to entry in nil map"))[AI.keyFor(m)]={k:m,v:k};if(k.$length===Line truncated
$packages["io"]=(function(){var $pkg={},$init,A,B,C,D,S,U,W,AX,AI,AJ,X,Y,Z;A=$packages["errors"];B=$packages["sync"];C=$pkg.Reader=$newType(8,$kindInterface,"io.Reader","Reader","io",null);D=$pkg.Writer=$newType(8,$kindInterface,"io.Writer","Writer","io",null);S=$pkg.ByteScanner=$newType(8,$kindInterface,"io.ByteScanner","ByteScanner","io",null);U=$pkg.RuneReader=$newType(8,$kindInterface,"io.RuneReader","RuneReader","io",null);W=$pkg.stringWriter=$newType(8,$kindInterface,"io.stringWriter","stringWriter","io",null);AX=$sliceType($Uint8);X=function(a,b){var $ptr,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;$ptr=$f.$ptr;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=0;d=$ifaceNil;e=$assertType(a,W,true);f=e[0];g=e[1];if(g){$s=1;continue;}$s=2;continue;case 1:i=f.WriteString(b);$s=3;case 3:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}h=i;c=h[0];d=h[1];$s=4;case 4:return[c,d];case 2:k=a.Write(new AX($stringToBytes(b)));$s=5;case 5:if($c){$c=false;k=k.$blk();}if(k&&k.$blk!==undefined){break s;}j=k;c=j[0];d=j[1];$s=6;case 6:return[c,d];}return;}if($f===undefined){$f={$blk:X};}$f.$ptr=$ptr;$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.WriteString=X;Y=function(a,b,c){var $ptr,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;$ptr=$f.$ptr;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:d=0;e=$ifaceNil;if(b.$length<c){f=0;g=$pkg.ErrShortBuffer;d=f;e=g;return[d,e];}case 1:if(!(d<c&&$interfaceIsEqual(e,$ifaceNil))){$s=2;continue;}h=0;j=a.Read($subslice(b,d));$s=3;case 3:if($c){$c=false;j=j.$blk();}if(j&&j.$blk!==undefined){break s;}i=j;h=i[0];e=i[1];d=d+(h)>>0;$s=1;continue;case 2:if(d>=c){e=$ifaceNil;}else if(d>0&&$interfaceIsEqual(e,$pkg.EOF)){e=$pkg.ErrUnexpectedEOF;}return[d,e];}return;}if($f===undefined){$f={$blk:Y};}$f.$ptr=$ptr;$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.ReadAtLeast=Y;Z=function(a,b){var $ptr,a,b,c,d,e,f,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$ptr=$f.$ptr;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=0;d=$ifaceNil;f=Y(a,b,b.$length);$s=1;case 1:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}e=f;c=e[0];d=e[1];$s=2;case 2:return[c,d];}return;}if($f===undefined){$f={$blk:Z};}$f.$ptr=$ptr;$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.ReadFull=Z;C.init([{prop:"Read",name:"Read",pkg:"",typ:$funcType([AX],[$Int,$error],false)}]);D.init([{prop:"Write",name:"Write",pkg:"",typ:$funcType([AX],[$Int,$error],false)}]);S.init([{prop:"ReadByte",name:"ReadByte",pkg:"",typ:$funcType([],[$Uint8,$error],false)},{prop:"UnreadByte",name:"UnreadByte",pkg:"",typ:$funcType([],[$error],false)}]);U.init([{prop:"ReadRune",name:"ReadRune",pkg:"",typ:$funcType([],[$Int32,$Int,$error],false)}]);W.init([{prop:"WriteString",name:"WriteString",pkg:"",typ:$funcType([$String],[$Int,$error],false)}]);$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=B.$init();$s=2;case 2:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$pkg.ErrShortWrite=A.New("short write");$pkg.ErrShortBuffer=A.New("short buffer");$pkg.EOF=A.New("EOF");$pkg.ErrUnexpectedEOF=A.New("unexpected EOF");$pkg.ErrNoProgress=A.New("multiple Read calls return no data or error");AI=A.New("Seek: invalid whence");AJ=A.New("Seek: invalid offset");$pkg.ErrClosedPipe=A.New("io: read/write on closed pipe");}return;}if($f===undefined){$f={$blk:$init};}$f.$s=$s;$f.$r=$r;return $f;};$pkg.$init=$init;return $pkg;})();
$packages["unicode"]=(function(){var $pkg={},$init,O,P,Q,R,T,AF,IK,IL,IM,IP,IQ,AM,AX,HY,HZ,IA,A,C,I,U,V,X,AB,AC,AD,AG;O=$pkg.RangeTable=$newType(0,$kindStruct,"unicode.RangeTable","RangeTable","unicode",function(R16_,R32_,LatinOffset_){this.$val=this;if(arguments.length===0){this.R16=IL.nil;this.R32=IM.nil;this.LatinOffset=0;return;}this.R16=R16_;this.R32=R32_;this.LatinOffset=LatinOffset_;});P=$pkg.Range16=$newType(0,$kindStruct,"unicode.Range16","Range16","unicode",function(Lo_,Hi_,Stride_){this.$val=this;if(arguments.length===0){this.Lo=0;this.Hi=0;this.Stride=0;return;}this.Lo=Lo_;this.Hi=Hi_;this.Stride=Stride_;});Q=$pkg.Range32=$newType(0,$kindStruct,"unicode.Range32","Range32","unicode",function(Lo_,Hi_,Stride_){this.$val=this;if(arguments.length===0){this.Lo=0;this.Hi=0;this.Stride=0;return;}this.Lo=Lo_;this.Hi=Hi_;this.Stride=Stride_;});R=$pkg.CaseRange=$newType(0,$kindStruct,"unicode.CaseRange","CaseRange","unicode",function(Lo_,Hi_,Delta_){this.$val=this;if(arguments.length===0){this.Lo=0;this.Hi=0;this.Delta=IK.zero();return;}this.Lo=Lo_;this.Hi=Hi_;this.Delta=Delta_;});T=$pkg.d=$newType(12,$kindArray,"unicode.d","d","unicode",null);AF=$pkg.foldPair=$newType(0,$kindStruct,"unicode.foldPair","foldPair","unicode",function(From_,To_){this.$val=this;if(arguments.length===0){this.From=0;this.To=0;return;}this.From=From_;this.To=To_;});IK=$arrayType($Int32,3);IL=$sliceType(P);IM=$sliceType(Q);IP=$sliceType(R);IQ=$sliceType(AF);A=function(b,c,d){var $ptr,b,c,d,e,f,g,h,i,j,k;if(b<0||3<=b){return 65533;}e=0;f=d.$length;while(true){if(!(e<f)){break;}h=e+(g=((f-e>>0))/2,(g===g&&g!==1/0&&g!==-1/0)?g>>0:$throwRuntimeError("integer divide by zero"))>>0;i=((h<0||h>=d.$length)?$throwRuntimeError("index out of range"):d.$array[d.$offset+h]);if((i.Lo>>0)<=c&&c<=(i.Hi>>0)){k=(j=i.Delta,((b<0||b>=j.length)?$throwRuntimeError("index out of range"):j[b]));if(k>1114111){return(i.Lo>>0)+((((((c-(i.Lo>>0)>>0))&~1)>>0)|((b&1)>>0)))>>0;}return c+k>>0;}if(c<(i.Lo>>0)){f=h;}else{e=h+1>>0;}}return c;};C=function(b){var $ptr,b;if(b<=255){return 48<=b&&b<=57;}return X($pkg.Digit,b);};$pkg.IsDigit=C;I=function(b){var $ptr,b,c;if((b>>>0)<=255){return!(((((c=(b<<24>>>24),((c<0||c>=HZ.length)?$throwRuntimeError("index out of range"):HZ[c]))&96)>>>0)===0));}return X($pkg.Letter,b);};$pkg.IsLetter=I;U=function(b,c){var $ptr,b,c,d,e,f,g,h,i,j,k,l,m,n;if(b.$length<=18||c<=255){d=b;e=0;while(true){if(!(e<d.$length)){break;}f=e;g=((f<0||f>=b.$length)?$throwRuntimeError("index out of range"):b.$array[b.$offset+f]);if(c<g.Lo){return false;}if(c<=g.Hi){return(h=((c-g.Lo<<16>>>16))%g.Stride,h===h?h:$throwRuntimeError("integer divide by zero"))===0;}e++;}return false;}i=0;j=b.$length;while(true){if(!(i<j)){break;}l=i+(k=((j-i>>0))/2,(k===k&&k!==1/0&&k!==-1/0)?k>>0:$throwRuntimeError("integer divide by zero"))>>0;m=((l<0||l>=b.$length)?$throwRuntimeError("index out of range"):b.$array[b.$offset+l]);if(m.Lo<=c&&c<=m.Hi){return(n=((c-m.Lo<<16>>>16))%m.Stride,n===n?n:$throwRuntimeError("integer divide by zero"))===0;}if(c<m.Lo){j=l;}else{i=l+1>>0;}}return false;};V=function(b,c){var $ptr,b,c,d,e,f,g,h,i,j,k,l,m,n;if(b.$length<=18){d=b;e=0;while(true){if(!(e<d.$length)){break;}f=e;g=((f<0||f>=b.$length)?$throwRuntimeError("index out of range"):b.$array[b.$offset+f]);if(c<g.Lo){return false;}if(c<=g.Hi){return(h=((c-g.Lo>>>0))%g.Stride,h===h?h:$throwRuntimeError("integer divide by zero"))===0;}e++;}return false;}i=0;j=b.$length;while(true){if(!(i<j)){break;}l=i+(k=((j-i>>0))/2,(k===k&&k!==1/0&&k!==-1/0)?k>>0:$throwRuntimeError("integer divide by zero"))>>0;m=$clone(((l<0||l>=b.$length)?$throwRuntimeError("index out of range"):b.$array[b.$offset+l]),Q);if(m.Lo<=c&&c<=m.Hi){return(n=((c-m.Lo>>>0))%m.Stride,n===n?n:$throwRuntimeError("integer divide by zero"))===0;}if(c<m.Lo){j=l;}else{i=l+1>>0;}}return false;};X=function(b,c){var $ptr,b,c,d,e,f,g;d=b.R16;e=b.LatinOffset;if(d.$length>e&&c<=((f=d.$length-1>>0,((f<0||f>=d.$length)?$throwRuntimeError("index out of range"):d.$array[d.$offset+f])).Hi>>0)){return U($subslice(d,e),(c<<16>>>16));}g=b.R32;if(g.$length>0&&c>=((0>=g.$length?$throwRuntimeError("index out of range"):g.$array[g.$offset+0]).Lo>>0)){return V(g,(c>>>0));}return false;};AB=function(b,c){var $ptr,b,c;return A(b,c,$pkg.CaseRanges);};$pkg.To=AB;AC=function(b){var $ptr,b;if(b<=127){if(97<=b&&b<=122){b=b-(32)>>0;}return b;}return AB(0,b);};$pkg.ToUpper=AC;AD=function(b){var $ptr,b;if(b<=127){if(65<=b&&b<=90){b=b+(32)>>0;}return b;}return AB(1,b);};$pkg.ToLower=AD;AG=function(b){var $ptr,b,c,d,e,f,g;c=0;d=IA.$length;while(true){if(!(c<d)){break;}f=c+(e=((d-c>>0))/2,(e===e&&e!==1/0&&e!==-1/0)?e>>0:$throwRuntimeError("integer divide by zero"))>>0;if((((f<0||f>=IA.$length)?$throwRuntimeError("index out of range"):IA.$array[IA.$offset+f]).From>>0)<b){c=f+1>>0;}else{d=f;}}if(c<IA.$length&&((((c<0||c>=IA.$length)?$throwRuntimeError("index out of range"):IA.$array[IA.$offset+c]).From>>0)===b)){return(((c<0||c>=IA.$length)?$throwRuntimeError("indeLine truncated
$packages["unicode/utf8"]=(function(){var $pkg={},$init,B,A,C,F,G,H,J,K,L,M,N;B=$pkg.acceptRange=$newType(0,$kindStruct,"utf8.acceptRange","acceptRange","unicode/utf8",function(lo_,hi_){this.$val=this;if(arguments.length===0){this.lo=0;this.hi=0;return;}this.lo=lo_;this.hi=hi_;});F=function(a){var $ptr,a,aa,ab,ac,ad,ae,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=0;c=0;d=a.$length;if(d<1){e=65533;f=0;b=e;c=f;return[b,c];}g=(0>=a.$length?$throwRuntimeError("index out of range"):a.$array[a.$offset+0]);h=((g<0||g>=A.length)?$throwRuntimeError("index out of range"):A[g]);if(h>=240){i=((h>>0)<<31>>0)>>31>>0;j=((((0>=a.$length?$throwRuntimeError("index out of range"):a.$array[a.$offset+0])>>0)&~i)>>0)|(65533&i);k=1;b=j;c=k;return[b,c];}l=(h&7)>>>0;n=$clone((m=h>>>4<<24>>>24,((m<0||m>=C.length)?$throwRuntimeError("index out of range"):C[m])),B);if(d<(l>>0)){o=65533;p=1;b=o;c=p;return[b,c];}q=(1>=a.$length?$throwRuntimeError("index out of range"):a.$array[a.$offset+1]);if(q<n.lo||n.hi<q){r=65533;s=1;b=r;c=s;return[b,c];}if(l===2){t=((((g&31)>>>0)>>0)<<6>>0)|(((q&63)>>>0)>>0);u=2;b=t;c=u;return[b,c];}v=(2>=a.$length?$throwRuntimeError("index out of range"):a.$array[a.$offset+2]);if(v<128||191<v){w=65533;x=1;b=w;c=x;return[b,c];}if(l===3){y=(((((g&15)>>>0)>>0)<<12>>0)|((((q&63)>>>0)>>0)<<6>>0))|(((v&63)>>>0)>>0);z=3;b=y;c=z;return[b,c];}aa=(3>=a.$length?$throwRuntimeError("index out of range"):a.$array[a.$offset+3]);if(aa<128||191<aa){ab=65533;ac=1;b=ab;c=ac;return[b,c];}ad=((((((g&7)>>>0)>>0)<<18>>0)|((((q&63)>>>0)>>0)<<12>>0))|((((v&63)>>>0)>>0)<<6>>0))|(((aa&63)>>>0)>>0);ae=4;b=ad;c=ae;return[b,c];};$pkg.DecodeRune=F;G=function(a){var $ptr,a,aa,ab,ac,ad,ae,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=0;c=0;d=a.length;if(d<1){e=65533;f=0;b=e;c=f;return[b,c];}g=a.charCodeAt(0);h=((g<0||g>=A.length)?$throwRuntimeError("index out of range"):A[g]);if(h>=240){i=((h>>0)<<31>>0)>>31>>0;j=(((a.charCodeAt(0)>>0)&~i)>>0)|(65533&i);k=1;b=j;c=k;return[b,c];}l=(h&7)>>>0;n=$clone((m=h>>>4<<24>>>24,((m<0||m>=C.length)?$throwRuntimeError("index out of range"):C[m])),B);if(d<(l>>0)){o=65533;p=1;b=o;c=p;return[b,c];}q=a.charCodeAt(1);if(q<n.lo||n.hi<q){r=65533;s=1;b=r;c=s;return[b,c];}if(l===2){t=((((g&31)>>>0)>>0)<<6>>0)|(((q&63)>>>0)>>0);u=2;b=t;c=u;return[b,c];}v=a.charCodeAt(2);if(v<128||191<v){w=65533;x=1;b=w;c=x;return[b,c];}if(l===3){y=(((((g&15)>>>0)>>0)<<12>>0)|((((q&63)>>>0)>>0)<<6>>0))|(((v&63)>>>0)>>0);z=3;b=y;c=z;return[b,c];}aa=a.charCodeAt(3);if(aa<128||191<aa){ab=65533;ac=1;b=ab;c=ac;return[b,c];}ad=((((((g&7)>>>0)>>0)<<18>>0)|((((q&63)>>>0)>>0)<<12>>0))|((((v&63)>>>0)>>0)<<6>>0))|(((aa&63)>>>0)>>0);ae=4;b=ad;c=ae;return[b,c];};$pkg.DecodeRuneInString=G;H=function(a){var $ptr,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o;b=0;c=0;d=a.$length;if(d===0){e=65533;f=0;b=e;c=f;return[b,c];}g=d-1>>0;b=(((g<0||g>=a.$length)?$throwRuntimeError("index out of range"):a.$array[a.$offset+g])>>0);if(b<128){h=b;i=1;b=h;c=i;return[b,c];}j=d-4>>0;if(j<0){j=0;}g=g-(1)>>0;while(true){if(!(g>=j)){break;}if(N(((g<0||g>=a.$length)?$throwRuntimeError("index out of range"):a.$array[a.$offset+g]))){break;}g=g-(1)>>0;}if(g<0){g=0;}k=F($subslice(a,g,d));b=k[0];c=k[1];if(!(((g+c>>0)===d))){l=65533;m=1;b=l;c=m;return[b,c];}n=b;o=c;b=n;c=o;return[b,c];};$pkg.DecodeLastRune=H;J=function(a){var $ptr,a;if(a<0){return-1;}else if(a<=127){return 1;}else if(a<=2047){return 2;}else if(55296<=a&&a<=57343){return-1;}else if(a<=65535){return 3;}else if(a<=1114111){return 4;}return-1;};$pkg.RuneLen=J;K=function(a,b){var $ptr,a,b,c;c=(b>>>0);if(c<=127){(0>=a.$length?$throwRuntimeError("index out of range"):a.$array[a.$offset+0]=(b<<24>>>24));return 1;}else if(c<=2047){(0>=a.$length?$throwRuntimeError("index out of range"):a.$array[a.$offset+0]=((192|((b>>6>>0)<<24>>>24))>>>0));(1>=a.$length?$throwRuntimeError("index out of range"):a.$array[a.$offset+1]=((128|(((b<<24>>>24)&63)>>>0))>>>0));return 2;}else if((c>1114111)||(55296<=c&&c<=57343)){b=65533;(0>=a.$length?$throwRuntimeError("index out of range"):a.$array[a.$offset+0]=((224|((b>>12>>0)<<24>>>24))>>>0));(1>=a.$length?$throwRuntimeError("index out of range"):a.$array[a.$offset+1]=((128|((((b>>6>>0)<<24>>>24)&63)>>>0))>>>0));(2>=a.$length?$throwRuntimeError("index out of range"):a.$array[a.$offset+2]=((128|(((b<<24>>>24)&63)>>>0))>>>0));return 3;}else if(c<=65535){(0>=a.$length?$throwRuntimeError("index out of range"):a.$array[a.$offset+0]=((224|((b>>12>>0)<<24>>>24))>>>0));(1>=a.$length?$throwRuntimeError("index out of range"):a.$array[a.$offset+1]=((128|((((b>>6>>0)<<24>>>24)&63)>>>0))>>>0));(2>=a.$length?$throwRuntimeError("index out of range"):a.$array[a.$offset+2]=((128|(((b<<24>>>24)&63)>>>0))>>>0));return 3;}else{(0>=a.$length?$throwRuntimeError("index out of range"):a.$array[a.$offset+0]=((240|((b>>18>>0)<<24>>>24))>>>0));(1>=a.$length?$throwRuntimeError("index out of range"):a.$array[a.$offset+1]=((128|((((b>>12>>0)<<24>>>24)&63)>>>0))>>>0));(2>=a.$length?$throwRuntimeError("index out of range"):a.$Line truncated
$packages["bytes"]=(function(){var $pkg={},$init,A,B,D,C,H,I,BK,BL,BM,BN,E,J,BH;A=$packages["errors"];B=$packages["io"];D=$packages["unicode"];C=$packages["unicode/utf8"];H=$pkg.Buffer=$newType(0,$kindStruct,"bytes.Buffer","Buffer","bytes",function(buf_,off_,runeBytes_,bootstrap_,lastRead_){this.$val=this;if(arguments.length===0){this.buf=BL.nil;this.off=0;this.runeBytes=BM.zero();this.bootstrap=BN.zero();this.lastRead=0;return;}this.buf=buf_;this.off=off_;this.runeBytes=runeBytes_;this.bootstrap=bootstrap_;this.lastRead=lastRead_;});I=$pkg.readOp=$newType(4,$kindInt,"bytes.readOp","readOp","bytes",null);BK=$ptrType(H);BL=$sliceType($Uint8);BM=$arrayType($Uint8,4);BN=$arrayType($Uint8,64);E=function(d,e){var $ptr,d,e,f,g,h,i;f=d;g=0;while(true){if(!(g<f.$length)){break;}h=g;i=((g<0||g>=f.$length)?$throwRuntimeError("index out of range"):f.$array[f.$offset+g]);if(i===e){return h;}g++;}return-1;};$pkg.IndexByte=E;H.ptr.prototype.Bytes=function(){var $ptr,d;d=this;return $subslice(d.buf,d.off);};H.prototype.Bytes=function(){return this.$val.Bytes();};H.ptr.prototype.String=function(){var $ptr,d;d=this;if(d===BK.nil){return"<nil>";}return $bytesToString($subslice(d.buf,d.off));};H.prototype.String=function(){return this.$val.String();};H.ptr.prototype.Len=function(){var $ptr,d;d=this;return d.buf.$length-d.off>>0;};H.prototype.Len=function(){return this.$val.Len();};H.ptr.prototype.Cap=function(){var $ptr,d;d=this;return d.buf.$capacity;};H.prototype.Cap=function(){return this.$val.Cap();};H.ptr.prototype.Truncate=function(d){var $ptr,d,e;e=this;e.lastRead=0;if(d<0||d>e.Len()){$panic(new $String("bytes.Buffer: truncation out of range"));}else if((d===0)){e.off=0;}e.buf=$subslice(e.buf,0,(e.off+d>>0));};H.prototype.Truncate=function(d){return this.$val.Truncate(d);};H.ptr.prototype.Reset=function(){var $ptr,d;d=this;d.Truncate(0);};H.prototype.Reset=function(){return this.$val.Reset();};H.ptr.prototype.grow=function(d){var $ptr,d,e,f,g,h;e=this;f=e.Len();if((f===0)&&!((e.off===0))){e.Truncate(0);}if((e.buf.$length+d>>0)>e.buf.$capacity){g=BL.nil;if(e.buf===BL.nil&&d<=64){g=$subslice(new BL(e.bootstrap),0);}else if((f+d>>0)<=(h=e.buf.$capacity/2,(h===h&&h!==1/0&&h!==-1/0)?h>>0:$throwRuntimeError("integer divide by zero"))){$copySlice(e.buf,$subslice(e.buf,e.off));g=$subslice(e.buf,0,f);}else{g=J(($imul(2,e.buf.$capacity))+d>>0);$copySlice(g,$subslice(e.buf,e.off));}e.buf=g;e.off=0;}e.buf=$subslice(e.buf,0,((e.off+f>>0)+d>>0));return e.off+f>>0;};H.prototype.grow=function(d){return this.$val.grow(d);};H.ptr.prototype.Grow=function(d){var $ptr,d,e,f;e=this;if(d<0){$panic(new $String("bytes.Buffer.Grow: negative count"));}f=e.grow(d);e.buf=$subslice(e.buf,0,f);};H.prototype.Grow=function(d){return this.$val.Grow(d);};H.ptr.prototype.Write=function(d){var $ptr,d,e,f,g,h,i,j;e=0;f=$ifaceNil;g=this;g.lastRead=0;h=g.grow(d.$length);i=$copySlice($subslice(g.buf,h),d);j=$ifaceNil;e=i;f=j;return[e,f];};H.prototype.Write=function(d){return this.$val.Write(d);};H.ptr.prototype.WriteString=function(d){var $ptr,d,e,f,g,h,i,j;e=0;f=$ifaceNil;g=this;g.lastRead=0;h=g.grow(d.length);i=$copyString($subslice(g.buf,h),d);j=$ifaceNil;e=i;f=j;return[e,f];};H.prototype.WriteString=function(d){return this.$val.WriteString(d);};H.ptr.prototype.ReadFrom=function(d){var $ptr,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$ptr=$f.$ptr;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;$r=$f.$r;}s:while(true){switch($s){case 0:e=new $Int64(0,0);f=$ifaceNil;g=this;g.lastRead=0;if(g.off>=g.buf.$length){g.Truncate(0);}case 1:h=g.buf.$capacity-g.buf.$length>>0;if(h<512){i=g.buf;if((g.off+h>>0)<512){i=J(($imul(2,g.buf.$capacity))+512>>0);}$copySlice(i,$subslice(g.buf,g.off));g.buf=$subslice(i,0,(g.buf.$length-g.off>>0));g.off=0;}k=d.Read($subslice(g.buf,g.buf.$length,g.buf.$capacity));$s=3;case 3:if($c){$c=false;k=k.$blk();}if(k&&k.$blk!==undefined){break s;}j=k;l=j[0];m=j[1];g.buf=$subslice(g.buf,0,(g.buf.$length+l>>0));e=(n=new $Int64(0,l),new $Int64(e.$high+n.$high,e.$low+n.$low));if($interfaceIsEqual(m,B.EOF)){$s=2;continue;}if(!($interfaceIsEqual(m,$ifaceNil))){o=e;p=m;e=o;f=p;return[e,f];}$s=1;continue;case 2:q=e;r=$ifaceNil;e=q;f=r;return[e,f];}return;}if($f===undefined){$f={$blk:H.ptr.prototype.ReadFrom};}$f.$ptr=$ptr;$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.$r=$r;return $f;};H.prototype.ReadFrom=function(d){return this.$val.ReadFrom(d);};J=function(d){var $ptr,d,$deferred;var $err=null;try{$deferred=[];$deferred.index=$curGoroutine.deferStack.length;$curGoroutine.deferStack.push($deferred);$deferred.push([(function(){var $ptr;if(!($interfaceIsEqual($recover(),$ifaceNil))){$panic($pkg.ErrTooLarge);}}),[]]);return $makeSlice(BL,d);}catch(err){$err=err;return BL.nil;}finally{$callDeferred($deferred,$err);}};H.ptr.prototype.WriteTo=funcLine truncated
$packages["math"]=(function(){var $pkg={},$init,A,FG,FH,FI,FJ,FK,B,C,D,E,F,AP,EN,O,S,U,V,W,Y,AB,AG,AQ,AR,AS,AT,AU,AV,BF,BT,ED,EP;A=$packages["github.com/gopherjs/gopherjs/js"];FG=$arrayType($Uint32,2);FH=$arrayType($Float32,2);FI=$arrayType($Float64,1);FJ=$structType([{prop:"uint32array",name:"uint32array",pkg:"math",typ:FG,tag:""},{prop:"float32array",name:"float32array",pkg:"math",typ:FH,tag:""},{prop:"float64array",name:"float64array",pkg:"math",typ:FI,tag:""}]);FK=$arrayType($Float64,70);O=function(an){var $ptr,an;return $parseFloat(B.exp(an));};$pkg.Exp=O;S=function(an){var $ptr,an,ao,ap,aq;ao=0;ap=0;aq=BT(an);ao=aq[0];ap=aq[1];return[ao,ap];};$pkg.Frexp=S;U=function(an){var $ptr,an;if(an>=0){return D;}else{return E;}};$pkg.Inf=U;V=function(an,ao){var $ptr,an,ao;if(an===D){return ao>=0;}if(an===E){return ao<=0;}return false;};$pkg.IsInf=V;W=function(an){var $ptr,an,ao;ao=false;ao=!((an===an));return ao;};$pkg.IsNaN=W;Y=function(an){var $ptr,an;if(!((an===an))){return F;}return $parseFloat(B.log(an));};$pkg.Log=Y;AB=function(an){var $ptr,an;return ED(an);};$pkg.Log2=AB;AG=function(){var $ptr;return F;};$pkg.NaN=AG;AQ=function(){var $ptr,an;an=new($global.ArrayBuffer)(8);AP.uint32array=new($global.Uint32Array)(an);AP.float32array=new($global.Float32Array)(an);AP.float64array=new($global.Float64Array)(an);};AR=function(an){var $ptr,an;AP.float32array[0]=an;return AP.uint32array[0];};$pkg.Float32bits=AR;AS=function(an){var $ptr,an;AP.uint32array[0]=an;return AP.float32array[0];};$pkg.Float32frombits=AS;AT=function(an){var $ptr,an,ao,ap;AP.float64array[0]=an;return(ao=$shiftLeft64(new $Uint64(0,AP.uint32array[1]),32),ap=new $Uint64(0,AP.uint32array[0]),new $Uint64(ao.$high+ap.$high,ao.$low+ap.$low));};$pkg.Float64bits=AT;AU=function(an){var $ptr,an;AP.uint32array[0]=(an.$low>>>0);AP.uint32array[1]=($shiftRightUint64(an,32).$low>>>0);return AP.float64array[0];};$pkg.Float64frombits=AU;AV=function(an){var $ptr,an;if(an<0){return-an;}if(an===0){return 0;}return an;};$pkg.Abs=AV;BF=function(an){var $ptr,an,ao,ap,aq,ar,as,at;ao=0;ap=0;if(AV(an)<2.2250738585072014e-308){aq=an*4.503599627370496e+15;ar=-52;ao=aq;ap=ar;return[ao,ap];}as=an;at=0;ao=as;ap=at;return[ao,ap];};BT=function(an){var $ptr,an,ao,ap,aq,ar,as,at,au,av,aw,ax,ay;ao=0;ap=0;if((an===0)){aq=an;ar=0;ao=aq;ap=ar;return[ao,ap];}else if(V(an,0)||W(an)){as=an;at=0;ao=as;ap=at;return[ao,ap];}au=BF(an);an=au[0];ap=au[1];av=AT(an);ap=ap+(((((aw=$shiftRightUint64(av,52),new $Uint64(aw.$high&0,(aw.$low&2047)>>>0)).$low>>0)-1023>>0)+1>>0))>>0;av=(ax=new $Uint64(2146435072,0),new $Uint64(av.$high&~ax.$high,(av.$low&~ax.$low)>>>0));av=(ay=new $Uint64(1071644672,0),new $Uint64(av.$high|ay.$high,(av.$low|ay.$low)>>>0));ao=AU(av);return[ao,ap];};ED=function(an){var $ptr,an,ao,ap,aq;ao=S(an);ap=ao[0];aq=ao[1];if(ap===0.5){return(aq-1>>0);}return Y(ap)*1.4426950408889634+aq;};EP=function(){var $ptr,an,ao,ap,aq;EN[0]=1;EN[1]=10;an=2;while(true){if(!(an<70)){break;}ap=(ao=an/2,(ao===ao&&ao!==1/0&&ao!==-1/0)?ao>>0:$throwRuntimeError("integer divide by zero"));((an<0||an>=EN.length)?$throwRuntimeError("index out of range"):EN[an]=((ap<0||ap>=EN.length)?$throwRuntimeError("index out of range"):EN[ap])*(aq=an-ap>>0,((aq<0||aq>=EN.length)?$throwRuntimeError("index out of range"):EN[aq])));an=an+(1)>>0;}};$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;}AP=new FJ.ptr(FG.zero(),FH.zero(),FI.zero());EN=FK.zero();B=$global.Math;C=0;D=1/C;E=-1/C;F=0/C;AQ();EP();}return;}if($f===undefined){$f={$blk:$init};}$f.$s=$s;$f.$r=$r;return $f;};$pkg.$init=$init;return $pkg;})();
$packages["strconv"]=(function(){var $pkg={},$init,B,A,C,S,Y,AC,AH,AO,AX,CO,CP,CQ,CR,CS,CT,CU,CV,CW,CX,CY,CZ,DA,DB,DC,DD,DE,G,K,L,M,AD,AI,AJ,AK,AP,CM,AQ,CN,BD,BE,BF,BG,BH,BN,D,H,I,J,N,O,P,Q,R,T,U,V,W,Z,AA,AB,AE,AF,AG,AL,AM,AN,AR,AS,AT,AU,AV,AW,AY,AZ,BA,BB,BC,BJ,BK,BL,BM,BO,BP,BQ,BS,BW,BX,BY,BZ,CC,CD,CE,CF,CG,CH,CI,CJ,CL;B=$packages["errors"];A=$packages["math"];C=$packages["unicode/utf8"];S=$pkg.NumError=$newType(0,$kindStruct,"strconv.NumError","NumError","strconv",function(Func_,Num_,Err_){this.$val=this;if(arguments.length===0){this.Func="";this.Num="";this.Err=$ifaceNil;return;}this.Func=Func_;this.Num=Num_;this.Err=Err_;});Y=$pkg.decimal=$newType(0,$kindStruct,"strconv.decimal","decimal","strconv",function(d_,nd_,dp_,neg_,trunc_){this.$val=this;if(arguments.length===0){this.d=CU.zero();this.nd=0;this.dp=0;this.neg=false;this.trunc=false;return;}this.d=d_;this.nd=nd_;this.dp=dp_;this.neg=neg_;this.trunc=trunc_;});AC=$pkg.leftCheat=$newType(0,$kindStruct,"strconv.leftCheat","leftCheat","strconv",function(delta_,cutoff_){this.$val=this;if(arguments.length===0){this.delta=0;this.cutoff="";return;}this.delta=delta_;this.cutoff=cutoff_;});AH=$pkg.extFloat=$newType(0,$kindStruct,"strconv.extFloat","extFloat","strconv",function(mant_,exp_,neg_){this.$val=this;if(arguments.length===0){this.mant=new $Uint64(0,0);this.exp=0;this.neg=false;return;}this.mant=mant_;this.exp=exp_;this.neg=neg_;});AO=$pkg.floatInfo=$newType(0,$kindStruct,"strconv.floatInfo","floatInfo","strconv",function(mantbits_,expbits_,bias_){this.$val=this;if(arguments.length===0){this.mantbits=0;this.expbits=0;this.bias=0;return;}this.mantbits=mantbits_;this.expbits=expbits_;this.bias=bias_;});AX=$pkg.decimalSlice=$newType(0,$kindStruct,"strconv.decimalSlice","decimalSlice","strconv",function(d_,nd_,dp_,neg_){this.$val=this;if(arguments.length===0){this.d=CW.nil;this.nd=0;this.dp=0;this.neg=false;return;}this.d=d_;this.nd=nd_;this.dp=dp_;this.neg=neg_;});CO=$sliceType($Int);CP=$sliceType($Float64);CQ=$sliceType($Float32);CR=$sliceType(AC);CS=$sliceType($Uint16);CT=$sliceType($Uint32);CU=$arrayType($Uint8,800);CV=$ptrType(S);CW=$sliceType($Uint8);CX=$arrayType($Uint8,24);CY=$arrayType($Uint8,32);CZ=$ptrType(AO);DA=$arrayType($Uint8,65);DB=$arrayType($Uint8,4);DC=$ptrType(Y);DD=$ptrType(AX);DE=$ptrType(AH);D=function(a){var $ptr,a,b,c,d,e,f,g,h,i,j;b=false;c=$ifaceNil;d=a;if(d===("1")||d===("t")||d===("T")||d===("true")||d===("TRUE")||d===("True")){e=true;f=$ifaceNil;b=e;c=f;return[b,c];}else if(d===("0")||d===("f")||d===("F")||d===("false")||d===("FALSE")||d===("False")){g=false;h=$ifaceNil;b=g;c=h;return[b,c];}i=false;j=T("ParseBool",a);b=i;c=j;return[b,c];};$pkg.ParseBool=D;H=function(a,b){var $ptr,a,b,c,d,e;if(!((a.length===b.length))){return false;}c=0;while(true){if(!(c<a.length)){break;}d=a.charCodeAt(c);if(65<=d&&d<=90){d=d+(32)<<24>>>24;}e=b.charCodeAt(c);if(65<=e&&e<=90){e=e+(32)<<24>>>24;}if(!((d===e))){return false;}c=c+(1)>>0;}return true;};I=function(a){var $ptr,a,b,c,d,e,f,g,h,i,j,k,l;b=0;c=false;if(a.length===0){return[b,c];}d=a.charCodeAt(0);if(d===(43)){if(H(a,"+inf")||H(a,"+infinity")){e=A.Inf(1);f=true;b=e;c=f;return[b,c];}}else if(d===(45)){if(H(a,"-inf")||H(a,"-infinity")){g=A.Inf(-1);h=true;b=g;c=h;return[b,c];}}else if((d===(110))||(d===(78))){if(H(a,"nan")){i=A.NaN();j=true;b=i;c=j;return[b,c];}}else if((d===(105))||(d===(73))){if(H(a,"inf")||H(a,"infinity")){k=A.Inf(1);l=true;b=k;c=l;return[b,c];}}else{return[b,c];}return[b,c];};Y.ptr.prototype.set=function(a){var $ptr,a,b,c,d,e,f,g,h,i,j;b=false;c=this;d=0;c.neg=false;c.trunc=false;if(d>=a.length){return b;}if((a.charCodeAt(d)===43)){d=d+(1)>>0;}else if((a.charCodeAt(d)===45)){c.neg=true;d=d+(1)>>0;}e=false;f=false;while(true){if(!(d<a.length)){break;}if((a.charCodeAt(d)===46)){if(e){return b;}e=true;c.dp=c.nd;d=d+(1)>>0;continue;}else if(48<=a.charCodeAt(d)&&a.charCodeAt(d)<=57){f=true;if((a.charCodeAt(d)===48)&&(c.nd===0)){c.dp=c.dp-(1)>>0;d=d+(1)>>0;continue;}if(c.nd<800){(g=c.d,h=c.nd,((h<0||h>=g.length)?$throwRuntimeError("index out of range"):g[h]=a.charCodeAt(d)));c.nd=c.nd+(1)>>0;}else if(!((a.charCodeAt(d)===48))){c.trunc=true;}d=d+(1)>>0;continue;}break;}if(!f){return b;}if(!e){c.dp=c.nd;}if(d<a.length&&((a.charCodeAt(d)===101)||(a.charCodeAt(d)===69))){d=d+(1)>>0;if(d>=a.length){return b;}i=1;if(a.charCodeAt(d)===43){d=d+(1)>>0;}else if(a.charCodeAt(d)===45){d=d+(1)>>0;i=-1;}if(d>=a.length||a.charCodeAt(d)<48||a.charCodeAt(d)>57){return b;}j=0;while(true){if(!(d<a.length&&48<=a.charCodeAt(d)&&a.charCodeAt(d)<=57)){break;}if(j<10000){j=(($imul(j,10))+(a.charCodeAt(d)>>0)>>0)-48>>0;}d=d+(1)>>0;}c.dp=c.dp+(($imul(j,i)))>>0;}if(!((d===a.length))){return b;}b=true;return b;};Y.prototype.set=function(a){return this.$val.set(a);};J=function(a){var $ptr,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q;b=new $Uint64(0,0);c=0;d=false;e=false;f=false;g=0;if(g>=a.length){return[b,c,d,e,f];}if((a.charCodeAt(g)===43)){g=g+(1)>>0;}else if((a.charCodeAt(g)===45)){d=true;g=g+(1)>>0;}h=falseLine truncated
$packages["reflect"]=(function(){var $pkg={},$init,A,C,F,D,B,E,AK,BN,BO,BP,BQ,BR,BS,BT,BU,BV,BW,BX,BY,BZ,CA,CB,CC,CD,CE,CG,CH,CI,DK,DL,DO,DQ,FX,GD,GJ,GK,GL,GM,GN,GO,GP,GQ,GR,GS,GT,GU,GV,GW,GX,GY,GZ,HA,HB,HE,HF,HG,HH,HI,HJ,HK,HP,HR,HU,HV,HW,HX,HY,G,L,AW,AX,BB,CF,DX,H,I,J,K,M,N,O,P,Q,R,S,X,Y,Z,AA,AC,AG,AH,AI,AJ,AL,AM,AN,AO,AP,AR,AS,AT,AU,AV,AY,AZ,BA,BC,BD,CK,CM,CN,CO,DC,DH,DY,EQ,ES,ET,EU,EV,EW,EX,EY,EZ,FA,FB,FC,FD,FE,FF,FG,FH,FI,FJ,FK,FL,FM,FN;A=$packages["errors"];C=$packages["github.com/gopherjs/gopherjs/js"];F=$packages["math"];D=$packages["runtime"];B=$packages["strconv"];E=$packages["sync"];AK=$pkg.mapIter=$newType(0,$kindStruct,"reflect.mapIter","mapIter","reflect",function(t_,m_,keys_,i_){this.$val=this;if(arguments.length===0){this.t=$ifaceNil;this.m=null;this.keys=null;this.i=0;return;}this.t=t_;this.m=m_;this.keys=keys_;this.i=i_;});BN=$pkg.Type=$newType(8,$kindInterface,"reflect.Type","Type","reflect",null);BO=$pkg.Kind=$newType(4,$kindUint,"reflect.Kind","Kind","reflect",null);BP=$pkg.rtype=$newType(0,$kindStruct,"reflect.rtype","rtype","reflect",function(size_,ptrdata_,hash_,_$3_,align_,fieldAlign_,kind_,alg_,gcdata_,string_,uncommonType_,ptrToThis_){this.$val=this;if(arguments.length===0){this.size=0;this.ptrdata=0;this.hash=0;this._$3=0;this.align=0;this.fieldAlign=0;this.kind=0;this.alg=GN.nil;this.gcdata=GO.nil;this.string=GP.nil;this.uncommonType=GQ.nil;this.ptrToThis=FX.nil;return;}this.size=size_;this.ptrdata=ptrdata_;this.hash=hash_;this._$3=_$3_;this.align=align_;this.fieldAlign=fieldAlign_;this.kind=kind_;this.alg=alg_;this.gcdata=gcdata_;this.string=string_;this.uncommonType=uncommonType_;this.ptrToThis=ptrToThis_;});BQ=$pkg.typeAlg=$newType(0,$kindStruct,"reflect.typeAlg","typeAlg","reflect",function(hash_,equal_){this.$val=this;if(arguments.length===0){this.hash=$throwNilPointerError;this.equal=$throwNilPointerError;return;}this.hash=hash_;this.equal=equal_;});BR=$pkg.method=$newType(0,$kindStruct,"reflect.method","method","reflect",function(name_,pkgPath_,mtyp_,typ_,ifn_,tfn_){this.$val=this;if(arguments.length===0){this.name=GP.nil;this.pkgPath=GP.nil;this.mtyp=FX.nil;this.typ=FX.nil;this.ifn=0;this.tfn=0;return;}this.name=name_;this.pkgPath=pkgPath_;this.mtyp=mtyp_;this.typ=typ_;this.ifn=ifn_;this.tfn=tfn_;});BS=$pkg.uncommonType=$newType(0,$kindStruct,"reflect.uncommonType","uncommonType","reflect",function(name_,pkgPath_,methods_){this.$val=this;if(arguments.length===0){this.name=GP.nil;this.pkgPath=GP.nil;this.methods=GR.nil;return;}this.name=name_;this.pkgPath=pkgPath_;this.methods=methods_;});BT=$pkg.ChanDir=$newType(4,$kindInt,"reflect.ChanDir","ChanDir","reflect",null);BU=$pkg.arrayType=$newType(0,$kindStruct,"reflect.arrayType","arrayType","reflect",function(rtype_,elem_,slice_,len_){this.$val=this;if(arguments.length===0){this.rtype=new BP.ptr(0,0,0,0,0,0,0,GN.nil,GO.nil,GP.nil,GQ.nil,FX.nil);this.elem=FX.nil;this.slice=FX.nil;this.len=0;return;}this.rtype=rtype_;this.elem=elem_;this.slice=slice_;this.len=len_;});BV=$pkg.chanType=$newType(0,$kindStruct,"reflect.chanType","chanType","reflect",function(rtype_,elem_,dir_){this.$val=this;if(arguments.length===0){this.rtype=new BP.ptr(0,0,0,0,0,0,0,GN.nil,GO.nil,GP.nil,GQ.nil,FX.nil);this.elem=FX.nil;this.dir=0;return;}this.rtype=rtype_;this.elem=elem_;this.dir=dir_;});BW=$pkg.funcType=$newType(0,$kindStruct,"reflect.funcType","funcType","reflect",function(rtype_,dotdotdot_,in$2_,out_){this.$val=this;if(arguments.length===0){this.rtype=new BP.ptr(0,0,0,0,0,0,0,GN.nil,GO.nil,GP.nil,GQ.nil,FX.nil);this.dotdotdot=false;this.in$2=GD.nil;this.out=GD.nil;return;}this.rtype=rtype_;this.dotdotdot=dotdotdot_;this.in$2=in$2_;this.out=out_;});BX=$pkg.imethod=$newType(0,$kindStruct,"reflect.imethod","imethod","reflect",function(name_,pkgPath_,typ_){this.$val=this;if(arguments.length===0){this.name=GP.nil;this.pkgPath=GP.nil;this.typ=FX.nil;return;}this.name=name_;this.pkgPath=pkgPath_;this.typ=typ_;});BY=$pkg.interfaceType=$newType(0,$kindStruct,"reflect.interfaceType","interfaceType","reflect",function(rtype_,methods_){this.$val=this;if(arguments.length===0){this.rtype=new BP.ptr(0,0,0,0,0,0,0,GN.nil,GO.nil,GP.nil,GQ.nil,FX.nil);this.methods=GS.nil;return;}this.rtype=rtype_;this.methods=methods_;});BZ=$pkg.mapType=$newType(0,$kindStruct,"reflect.mapType","mapType","reflect",function(rtype_,key_,elem_,bucket_,hmap_,keysize_,indirectkey_,valuesize_,indirectvalue_,bucketsize_,reflexivekey_,needkeyupdate_){this.$val=this;if(arguments.length===0){this.rtype=new BP.ptr(0,0,0,0,0,0,0,GN.nil,GO.nil,GP.nil,GQ.nil,FX.nil);this.key=FX.nil;this.elem=FX.nil;this.bucket=FX.nil;this.hmap=FX.nil;this.keysize=0;this.indirectkey=0;this.valuesize=0;this.indirectvalue=0;this.bucketsize=0;this.reflexivekey=false;this.needkeyupdate=false;return;}this.rtype=rtype_;this.key=key_;this.elem=elem_;this.bucket=bucket_;this.hmap=hmap_;this.keysize=keysize_;this.indirectkey=indirectkey_;this.valuesize=valuesize_;this.indirectvalue=indirectvalue_;this.bucketsize=buckLine truncated
$packages["encoding/binary"]=(function(){var $pkg={},$init,A,B,C,D,U;A=$packages["errors"];B=$packages["io"];C=$packages["math"];D=$packages["reflect"];$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=B.$init();$s=2;case 2:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=C.$init();$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=D.$init();$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}U=A.New("binary: varint overflows a 64-bit integer");}return;}if($f===undefined){$f={$blk:$init};}$f.$s=$s;$f.$r=$r;return $f;};$pkg.$init=$init;return $pkg;})();
$packages["syscall"]=(function(){var $pkg={},$init,A,D,B,C,FQ,FR,MM,MV,MX,OO,OQ,OY,PW,QK,QL,QO,QP,QU,QV,QW,QX,RB,RE,E,F,N,O,P,W,X,Y,Z,FD,FS,FT,FU,GV,OX,GW,G,H,I,J,K,L,Q,R,S,V,AB,AD,BL,BM,CJ,CK,EW,EX,EY,FV,FX,FY,HP,HW,HZ,IA,IG,IH,JB,JW,KA,KI,KJ,KL,KW,KX,KY,KZ,MF;A=$packages["github.com/gopherjs/gopherjs/js"];D=$packages["internal/race"];B=$packages["runtime"];C=$packages["sync"];FQ=$pkg.mmapper=$newType(0,$kindStruct,"syscall.mmapper","mmapper","syscall",function(Mutex_,active_,mmap_,munmap_){this.$val=this;if(arguments.length===0){this.Mutex=new C.Mutex.ptr(0,0);this.active=false;this.mmap=$throwNilPointerError;this.munmap=$throwNilPointerError;return;}this.Mutex=Mutex_;this.active=active_;this.mmap=mmap_;this.munmap=munmap_;});FR=$pkg.Errno=$newType(4,$kindUintptr,"syscall.Errno","Errno","syscall",null);MM=$pkg.Timespec=$newType(0,$kindStruct,"syscall.Timespec","Timespec","syscall",function(Sec_,Nsec_){this.$val=this;if(arguments.length===0){this.Sec=new $Int64(0,0);this.Nsec=new $Int64(0,0);return;}this.Sec=Sec_;this.Nsec=Nsec_;});MV=$pkg.Stat_t=$newType(0,$kindStruct,"syscall.Stat_t","Stat_t","syscall",function(Dev_,Ino_,Nlink_,Mode_,Uid_,Gid_,X__pad0_,Rdev_,Size_,Blksize_,Blocks_,Atim_,Mtim_,Ctim_,X__unused_){this.$val=this;if(arguments.length===0){this.Dev=new $Uint64(0,0);this.Ino=new $Uint64(0,0);this.Nlink=new $Uint64(0,0);this.Mode=0;this.Uid=0;this.Gid=0;this.X__pad0=0;this.Rdev=new $Uint64(0,0);this.Size=new $Int64(0,0);this.Blksize=new $Int64(0,0);this.Blocks=new $Int64(0,0);this.Atim=new MM.ptr(new $Int64(0,0),new $Int64(0,0));this.Mtim=new MM.ptr(new $Int64(0,0),new $Int64(0,0));this.Ctim=new MM.ptr(new $Int64(0,0),new $Int64(0,0));this.X__unused=RE.zero();return;}this.Dev=Dev_;this.Ino=Ino_;this.Nlink=Nlink_;this.Mode=Mode_;this.Uid=Uid_;this.Gid=Gid_;this.X__pad0=X__pad0_;this.Rdev=Rdev_;this.Size=Size_;this.Blksize=Blksize_;this.Blocks=Blocks_;this.Atim=Atim_;this.Mtim=Mtim_;this.Ctim=Ctim_;this.X__unused=X__unused_;});MX=$pkg.Dirent=$newType(0,$kindStruct,"syscall.Dirent","Dirent","syscall",function(Ino_,Off_,Reclen_,Type_,Name_,Pad_cgo_0_){this.$val=this;if(arguments.length===0){this.Ino=new $Uint64(0,0);this.Off=new $Int64(0,0);this.Reclen=0;this.Type=0;this.Name=QK.zero();this.Pad_cgo_0=QL.zero();return;}this.Ino=Ino_;this.Off=Off_;this.Reclen=Reclen_;this.Type=Type_;this.Name=Name_;this.Pad_cgo_0=Pad_cgo_0_;});OO=$sliceType($Uint8);OQ=$sliceType($String);OY=$ptrType($Uint8);PW=$arrayType($Uint8,32);QK=$arrayType($Int8,256);QL=$arrayType($Uint8,5);QO=$structType([{prop:"addr",name:"addr",pkg:"syscall",typ:$Uintptr,tag:""},{prop:"len",name:"len",pkg:"syscall",typ:$Int,tag:""},{prop:"cap",name:"cap",pkg:"syscall",typ:$Int,tag:""}]);QP=$ptrType($Int64);QU=$ptrType(FQ);QV=$mapType(OY,OO);QW=$funcType([$Uintptr,$Uintptr,$Int,$Int,$Int,$Int64],[$Uintptr,$error],false);QX=$funcType([$Uintptr,$Uintptr],[$error],false);RB=$ptrType(MM);RE=$arrayType($Int64,3);G=function(){var $ptr;$flushConsole=(function(){var $ptr;if(!((F.$length===0))){$global.console.log($externalize($bytesToString(F),$String));F=OO.nil;}});};H=function(){var $ptr;if(!E){$global.console.error($externalize("warning: system calls not available, see https://github.com/gopherjs/gopherjs/blob/master/doc/syscalls.md",$String));}E=true;};I=function(i){var $ptr,i,j,k;j=$global.goPrintToConsole;if(!(j===undefined)){j(i);return;}F=$appendSlice(F,i);while(true){k=K(F,10);if(k===-1){break;}$global.console.log($externalize($bytesToString($subslice(F,0,k)),$String));F=$subslice(F,(k+1>>0));}};J=function(i){var $ptr,i;};K=function(i,j){var $ptr,i,j,k,l,m,n;k=i;l=0;while(true){if(!(l<k.$length)){break;}m=l;n=((l<0||l>=k.$length)?$throwRuntimeError("index out of range"):k.$array[k.$offset+l]);if(n===j){return m;}l++;}return-1;};L=function(){var $ptr,i,j,k,l,m,n;i=$global.process;if(i===undefined){return OQ.nil;}j=i.env;k=$global.Object.keys(j);l=$makeSlice(OQ,$parseInt(k.length));m=0;while(true){if(!(m<$parseInt(k.length))){break;}n=$internalize(k[m],$String);((m<0||m>=l.$length)?$throwRuntimeError("index out of range"):l.$array[l.$offset+m]=n+"="+$internalize(j[$externalize(n,$String)],$String));m=m+(1)>>0;}return l;};Q=function(i){var $ptr,i,j,$deferred;var $err=null;try{$deferred=[];$deferred.index=$curGoroutine.deferStack.length;$curGoroutine.deferStack.push($deferred);$deferred.push([(function(){var $ptr;$recover();}),[]]);if(N===null){if(O){return null;}O=true;j=$global.require;if(j===undefined){$panic(new $String(""));}N=j($externalize("syscall",$String));}return N[$externalize(i,$String)];}catch(err){$err=err;return null;}finally{$callDeferred($deferred,$err);}};R=function(i,j,k,l){var $ptr,aa,ab,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z;m=0;n=0;o=0;p=Q("Syscall");if(!(p===null)){q=p(i,j,k,l);r=(($parseInt(q[0])>>0)>>>0);s=(($parseInt(q[1])>>0)>>>0);t=(($parseInt(q[2])>>0)>>>0);m=r;n=s;o=t;return[m,n,o];}if((i===1)&&((j===1)||(j===2))){u=k;v=$makeSlice(OO,$parseInt(u.length));v.$array=u;I(v);w=($parseInt(u.length)>>>0);x=0;y=0;m=w;n=x;o=y;rLine truncated
$packages["github.com/gopherjs/gopherjs/nosync"]=(function(){var $pkg={},$init,A,B,C,D,F,G,H,I,J;A=$pkg.Mutex=$newType(0,$kindStruct,"nosync.Mutex","Mutex","github.com/gopherjs/gopherjs/nosync",function(locked_){this.$val=this;if(arguments.length===0){this.locked=false;return;}this.locked=locked_;});B=$pkg.RWMutex=$newType(0,$kindStruct,"nosync.RWMutex","RWMutex","github.com/gopherjs/gopherjs/nosync",function(writeLocked_,readLockCounter_){this.$val=this;if(arguments.length===0){this.writeLocked=false;this.readLockCounter=0;return;}this.writeLocked=writeLocked_;this.readLockCounter=readLockCounter_;});C=$pkg.WaitGroup=$newType(0,$kindStruct,"nosync.WaitGroup","WaitGroup","github.com/gopherjs/gopherjs/nosync",function(counter_){this.$val=this;if(arguments.length===0){this.counter=0;return;}this.counter=counter_;});D=$pkg.Once=$newType(0,$kindStruct,"nosync.Once","Once","github.com/gopherjs/gopherjs/nosync",function(doing_,done_){this.$val=this;if(arguments.length===0){this.doing=false;this.done=false;return;}this.doing=doing_;this.done=done_;});F=$ptrType(A);G=$ptrType(B);H=$ptrType(C);I=$funcType([],[],false);J=$ptrType(D);A.ptr.prototype.Lock=function(){var $ptr,a;a=this;if(a.locked){$panic(new $String("nosync: mutex is already locked"));}a.locked=true;};A.prototype.Lock=function(){return this.$val.Lock();};A.ptr.prototype.Unlock=function(){var $ptr,a;a=this;if(!a.locked){$panic(new $String("nosync: unlock of unlocked mutex"));}a.locked=false;};A.prototype.Unlock=function(){return this.$val.Unlock();};B.ptr.prototype.Lock=function(){var $ptr,a;a=this;if(!((a.readLockCounter===0))||a.writeLocked){$panic(new $String("nosync: mutex is already locked"));}a.writeLocked=true;};B.prototype.Lock=function(){return this.$val.Lock();};B.ptr.prototype.Unlock=function(){var $ptr,a;a=this;if(!a.writeLocked){$panic(new $String("nosync: unlock of unlocked mutex"));}a.writeLocked=false;};B.prototype.Unlock=function(){return this.$val.Unlock();};B.ptr.prototype.RLock=function(){var $ptr,a;a=this;if(a.writeLocked){$panic(new $String("nosync: mutex is already locked"));}a.readLockCounter=a.readLockCounter+(1)>>0;};B.prototype.RLock=function(){return this.$val.RLock();};B.ptr.prototype.RUnlock=function(){var $ptr,a;a=this;if(a.readLockCounter===0){$panic(new $String("nosync: unlock of unlocked mutex"));}a.readLockCounter=a.readLockCounter-(1)>>0;};B.prototype.RUnlock=function(){return this.$val.RUnlock();};C.ptr.prototype.Add=function(a){var $ptr,a,b;b=this;b.counter=b.counter+(a)>>0;if(b.counter<0){$panic(new $String("sync: negative WaitGroup counter"));}};C.prototype.Add=function(a){return this.$val.Add(a);};C.ptr.prototype.Done=function(){var $ptr,a;a=this;a.Add(-1);};C.prototype.Done=function(){return this.$val.Done();};C.ptr.prototype.Wait=function(){var $ptr,a;a=this;if(!((a.counter===0))){$panic(new $String("sync: WaitGroup counter not zero"));}};C.prototype.Wait=function(){return this.$val.Wait();};D.ptr.prototype.Do=function(a){var $ptr,a,b,$s,$deferred,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$ptr=$f.$ptr;a=$f.a;b=$f.b;$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=[b];b[0]=this;if(b[0].done){return;}if(b[0].doing){$panic(new $String("nosync: Do called within f"));}b[0].doing=true;$deferred.push([(function(b){return function(){var $ptr;b[0].doing=false;b[0].done=true;};})(b),[]]);$r=a();$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=-1;case-1:}return;}}catch(err){$err=err;$s=-1;}finally{$callDeferred($deferred,$err);if($curGoroutine.asleep){if($f===undefined){$f={$blk:D.ptr.prototype.Do};}$f.$ptr=$ptr;$f.a=a;$f.b=b;$f.$s=$s;$f.$deferred=$deferred;$f.$r=$r;return $f;}}};D.prototype.Do=function(a){return this.$val.Do(a);};F.methods=[{prop:"Lock",name:"Lock",pkg:"",typ:$funcType([],[],false)},{prop:"Unlock",name:"Unlock",pkg:"",typ:$funcType([],[],false)}];G.methods=[{prop:"Lock",name:"Lock",pkg:"",typ:$funcType([],[],false)},{prop:"Unlock",name:"Unlock",pkg:"",typ:$funcType([],[],false)},{prop:"RLock",name:"RLock",pkg:"",typ:$funcType([],[],false)},{prop:"RUnlock",name:"RUnlock",pkg:"",typ:$funcType([],[],false)}];H.methods=[{prop:"Add",name:"Add",pkg:"",typ:$funcType([$Int],[],false)},{prop:"Done",name:"Done",pkg:"",typ:$funcType([],[],false)},{prop:"Wait",name:"Wait",pkg:"",typ:$funcType([],[],false)}];J.methods=[{prop:"Do",name:"Do",pkg:"",typ:$funcType([I],[],false)}];A.init([{prop:"locked",name:"locked",pkg:"github.com/gopherjs/gopherjs/nosync",typ:$Bool,tag:""}]);B.init([{prop:"writeLocked",name:"writeLocked",pkg:"github.com/gopherjs/gopherjs/nosync",typ:$Bool,tag:""},{prop:"readLockCounter",name:"readLockCounter",pkg:"github.com/gopherjs/gopherjs/nosync",typ:$Int,tag:""}]);C.init([{prop:"counter",name:"counter",pkg:"github.com/gopherjs/gopherjs/nosync",typ:$Int,tag:""}]);D.init([{prop:"doLine truncated
$packages["strings"]=(function(){var $pkg={},$init,C,B,D,E,A,K,CA,CK,F,G,L,AJ,AK;C=$packages["errors"];B=$packages["github.com/gopherjs/gopherjs/js"];D=$packages["io"];E=$packages["unicode"];A=$packages["unicode/utf8"];K=$pkg.Reader=$newType(0,$kindStruct,"strings.Reader","Reader","strings",function(s_,i_,prevRune_){this.$val=this;if(arguments.length===0){this.s="";this.i=new $Int64(0,0);this.prevRune=0;return;}this.s=s_;this.i=i_;this.prevRune=prevRune_;});CA=$sliceType($Uint8);CK=$ptrType(K);F=function(e,f){var $ptr,e,f;return $parseInt(e.indexOf($global.String.fromCharCode(f)))>>0;};$pkg.IndexByte=F;G=function(e,f){var $ptr,e,f;return $parseInt(e.indexOf(f))>>0;};$pkg.Index=G;K.ptr.prototype.Len=function(){var $ptr,e,f,g,h,i,j;e=this;if((f=e.i,g=new $Int64(0,e.s.length),(f.$high>g.$high||(f.$high===g.$high&&f.$low>=g.$low)))){return 0;}return((h=(i=new $Int64(0,e.s.length),j=e.i,new $Int64(i.$high-j.$high,i.$low-j.$low)),h.$low+((h.$high>>31)*4294967296))>>0);};K.prototype.Len=function(){return this.$val.Len();};K.ptr.prototype.Size=function(){var $ptr,e;e=this;return new $Int64(0,e.s.length);};K.prototype.Size=function(){return this.$val.Size();};K.ptr.prototype.Read=function(e){var $ptr,e,f,g,h,i,j,k,l,m,n,o,p;f=0;g=$ifaceNil;h=this;if(e.$length===0){i=0;j=$ifaceNil;f=i;g=j;return[f,g];}if((k=h.i,l=new $Int64(0,h.s.length),(k.$high>l.$high||(k.$high===l.$high&&k.$low>=l.$low)))){m=0;n=D.EOF;f=m;g=n;return[f,g];}h.prevRune=-1;f=$copyString(e,h.s.substring($flatten64(h.i)));h.i=(o=h.i,p=new $Int64(0,f),new $Int64(o.$high+p.$high,o.$low+p.$low));return[f,g];};K.prototype.Read=function(e){return this.$val.Read(e);};K.ptr.prototype.ReadAt=function(e,f){var $ptr,e,f,g,h,i,j,k,l,m,n;g=0;h=$ifaceNil;i=this;if((f.$high<0||(f.$high===0&&f.$low<0))){j=0;k=C.New("strings.Reader.ReadAt: negative offset");g=j;h=k;return[g,h];}if((l=new $Int64(0,i.s.length),(f.$high>l.$high||(f.$high===l.$high&&f.$low>=l.$low)))){m=0;n=D.EOF;g=m;h=n;return[g,h];}g=$copyString(e,i.s.substring($flatten64(f)));if(g<e.$length){h=D.EOF;}return[g,h];};K.prototype.ReadAt=function(e,f){return this.$val.ReadAt(e,f);};K.ptr.prototype.ReadByte=function(){var $ptr,e,f,g,h,i,j,k,l,m;e=0;f=$ifaceNil;g=this;g.prevRune=-1;if((h=g.i,i=new $Int64(0,g.s.length),(h.$high>i.$high||(h.$high===i.$high&&h.$low>=i.$low)))){j=0;k=D.EOF;e=j;f=k;return[e,f];}e=g.s.charCodeAt($flatten64(g.i));g.i=(l=g.i,m=new $Int64(0,1),new $Int64(l.$high+m.$high,l.$low+m.$low));return[e,f];};K.prototype.ReadByte=function(){return this.$val.ReadByte();};K.ptr.prototype.UnreadByte=function(){var $ptr,e,f,g,h;e=this;e.prevRune=-1;if((f=e.i,(f.$high<0||(f.$high===0&&f.$low<=0)))){return C.New("strings.Reader.UnreadByte: at beginning of string");}e.i=(g=e.i,h=new $Int64(0,1),new $Int64(g.$high-h.$high,g.$low-h.$low));return $ifaceNil;};K.prototype.UnreadByte=function(){return this.$val.UnreadByte();};K.ptr.prototype.ReadRune=function(){var $ptr,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w;e=0;f=0;g=$ifaceNil;h=this;if((i=h.i,j=new $Int64(0,h.s.length),(i.$high>j.$high||(i.$high===j.$high&&i.$low>=j.$low)))){h.prevRune=-1;k=0;l=0;m=D.EOF;e=k;f=l;g=m;return[e,f,g];}h.prevRune=((n=h.i,n.$low+((n.$high>>31)*4294967296))>>0);o=h.s.charCodeAt($flatten64(h.i));if(o<128){h.i=(p=h.i,q=new $Int64(0,1),new $Int64(p.$high+q.$high,p.$low+q.$low));r=(o>>0);s=1;t=$ifaceNil;e=r;f=s;g=t;return[e,f,g];}u=A.DecodeRuneInString(h.s.substring($flatten64(h.i)));e=u[0];f=u[1];h.i=(v=h.i,w=new $Int64(0,f),new $Int64(v.$high+w.$high,v.$low+w.$low));return[e,f,g];};K.prototype.ReadRune=function(){return this.$val.ReadRune();};K.ptr.prototype.UnreadRune=function(){var $ptr,e;e=this;if(e.prevRune<0){return C.New("strings.Reader.UnreadRune: previous operation was not ReadRune");}e.i=new $Int64(0,e.prevRune);e.prevRune=-1;return $ifaceNil;};K.prototype.UnreadRune=function(){return this.$val.UnreadRune();};K.ptr.prototype.Seek=function(e,f){var $ptr,e,f,g,h,i,j,k;g=this;g.prevRune=-1;h=new $Int64(0,0);i=f;if(i===(0)){h=e;}else if(i===(1)){h=(j=g.i,new $Int64(j.$high+e.$high,j.$low+e.$low));}else if(i===(2)){h=(k=new $Int64(0,g.s.length),new $Int64(k.$high+e.$high,k.$low+e.$low));}else{return[new $Int64(0,0),C.New("strings.Reader.Seek: invalid whence")];}if((h.$high<0||(h.$high===0&&h.$low<0))){return[new $Int64(0,0),C.New("strings.Reader.Seek: negative position")];}g.i=h;return[h,$ifaceNil];};K.prototype.Seek=function(e,f){return this.$val.Seek(e,f);};K.ptr.prototype.WriteTo=function(e){var $ptr,e,f,g,h,i,j,k,l,m,n,o,p,q,r,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$ptr=$f.$ptr;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;$r=$f.$r;}s:while(true){switch($s){case 0:f=new $Int64(0,0);g=$ifaceNil;h=this;h.prevRune=-1;if((i=h.i,j=new $Int64(0,h.s.length),(i.$high>j.$high||(i.$high===j.$high&&i.$low>=j.$low)))){k=new $Int64(0,0);l=$ifaceNil;f=k;g=l;return[f,g];}m=h.s.substring($flatten64(h.i));o=D.WriteString(e,m);$s=1;cLine truncated
$packages["time"]=(function(){var $pkg={},$init,D,C,F,A,B,E,AF,BL,BM,BO,BS,CF,CG,CH,DA,DB,DC,DD,DF,DG,DH,DI,DJ,DN,DR,DV,R,U,V,W,X,AB,AE,AR,AT,BN,BP,BX,CI,CY,CJ,CZ,CK,CM,CQ,CW,k,l,G,I,S,T,Y,Z,AA,AC,AD,AG,AH,AI,AJ,AK,AL,AN,AO,AP,AQ,AS,AU,BQ,BR,BT,BU,BW,BY,CA,CB,CC,CD,CE,CL;D=$packages["errors"];C=$packages["github.com/gopherjs/gopherjs/js"];F=$packages["github.com/gopherjs/gopherjs/nosync"];A=$packages["runtime"];B=$packages["strings"];E=$packages["syscall"];AF=$pkg.ParseError=$newType(0,$kindStruct,"time.ParseError","ParseError","time",function(Layout_,Value_,LayoutElem_,ValueElem_,Message_){this.$val=this;if(arguments.length===0){this.Layout="";this.Value="";this.LayoutElem="";this.ValueElem="";this.Message="";return;}this.Layout=Layout_;this.Value=Value_;this.LayoutElem=LayoutElem_;this.ValueElem=ValueElem_;this.Message=Message_;});BL=$pkg.Time=$newType(0,$kindStruct,"time.Time","Time","time",function(sec_,nsec_,loc_){this.$val=this;if(arguments.length===0){this.sec=new $Int64(0,0);this.nsec=0;this.loc=DJ.nil;return;}this.sec=sec_;this.nsec=nsec_;this.loc=loc_;});BM=$pkg.Month=$newType(4,$kindInt,"time.Month","Month","time",null);BO=$pkg.Weekday=$newType(4,$kindInt,"time.Weekday","Weekday","time",null);BS=$pkg.Duration=$newType(8,$kindInt64,"time.Duration","Duration","time",null);CF=$pkg.Location=$newType(0,$kindStruct,"time.Location","Location","time",function(name_,zone_,tx_,cacheStart_,cacheEnd_,cacheZone_){this.$val=this;if(arguments.length===0){this.name="";this.zone=DA.nil;this.tx=DB.nil;this.cacheStart=new $Int64(0,0);this.cacheEnd=new $Int64(0,0);this.cacheZone=DC.nil;return;}this.name=name_;this.zone=zone_;this.tx=tx_;this.cacheStart=cacheStart_;this.cacheEnd=cacheEnd_;this.cacheZone=cacheZone_;});CG=$pkg.zone=$newType(0,$kindStruct,"time.zone","zone","time",function(name_,offset_,isDST_){this.$val=this;if(arguments.length===0){this.name="";this.offset=0;this.isDST=false;return;}this.name=name_;this.offset=offset_;this.isDST=isDST_;});CH=$pkg.zoneTrans=$newType(0,$kindStruct,"time.zoneTrans","zoneTrans","time",function(when_,index_,isstd_,isutc_){this.$val=this;if(arguments.length===0){this.when=new $Int64(0,0);this.index=0;this.isstd=false;this.isutc=false;return;}this.when=when_;this.index=index_;this.isstd=isstd_;this.isutc=isutc_;});DA=$sliceType(CG);DB=$sliceType(CH);DC=$ptrType(CG);DD=$sliceType($String);DF=$arrayType($Uint8,20);DG=$sliceType($Uint8);DH=$arrayType($Uint8,9);DI=$arrayType($Uint8,64);DJ=$ptrType(CF);DN=$arrayType($Uint8,32);DR=$ptrType(AF);DV=$ptrType(BL);G=function(){var $ptr;CA(new $Int64(0,0),new $Int64(0,0));};I=function(){var $ptr,m,n,o,p;m=new($global.Date)();n=$internalize(m,$String);o=B.IndexByte(n,40);p=B.IndexByte(n,41);if((o===-1)||(p===-1)){CJ.name="UTC";return;}CJ.name=n.substring((o+1>>0),p);CJ.zone=new DA([new CG.ptr(CJ.name,$imul(($parseInt(m.getTimezoneOffset())>>0),-60),false)]);};S=function(m){var $ptr,m,n;if(m.length===0){return false;}n=m.charCodeAt(0);return 97<=n&&n<=122;};T=function(m){var $ptr,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,cd,ce,cf,cg,ch,ci,cj,ck,cl,cm,cn,co,cp,cq,cr,cs,ct,cu,cv,cw,cx,cy,cz,da,db,dc,dd,de,df,m,n,o,p,q,r,s,t,u,v,w,x,y,z;n="";o=0;p="";q=0;while(true){if(!(q<m.length)){break;}r=(m.charCodeAt(q)>>0);s=r;if(s===(74)){if(m.length>=(q+3>>0)&&m.substring(q,(q+3>>0))==="Jan"){if(m.length>=(q+7>>0)&&m.substring(q,(q+7>>0))==="January"){t=m.substring(0,q);u=257;v=m.substring((q+7>>0));n=t;o=u;p=v;return[n,o,p];}if(!S(m.substring((q+3>>0)))){w=m.substring(0,q);x=258;y=m.substring((q+3>>0));n=w;o=x;p=y;return[n,o,p];}}}else if(s===(77)){if(m.length>=(q+3>>0)){if(m.substring(q,(q+3>>0))==="Mon"){if(m.length>=(q+6>>0)&&m.substring(q,(q+6>>0))==="Monday"){z=m.substring(0,q);aa=261;ab=m.substring((q+6>>0));n=z;o=aa;p=ab;return[n,o,p];}if(!S(m.substring((q+3>>0)))){ac=m.substring(0,q);ad=262;ae=m.substring((q+3>>0));n=ac;o=ad;p=ae;return[n,o,p];}}if(m.substring(q,(q+3>>0))==="MST"){af=m.substring(0,q);ag=21;ah=m.substring((q+3>>0));n=af;o=ag;p=ah;return[n,o,p];}}}else if(s===(48)){if(m.length>=(q+2>>0)&&49<=m.charCodeAt((q+1>>0))&&m.charCodeAt((q+1>>0))<=54){ai=m.substring(0,q);aj=(ak=m.charCodeAt((q+1>>0))-49<<24>>>24,((ak<0||ak>=R.length)?$throwRuntimeError("index out of range"):R[ak]));al=m.substring((q+2>>0));n=ai;o=aj;p=al;return[n,o,p];}}else if(s===(49)){if(m.length>=(q+2>>0)&&(m.charCodeAt((q+1>>0))===53)){am=m.substring(0,q);an=522;ao=m.substring((q+2>>0));n=am;o=an;p=ao;return[n,o,p];}ap=m.substring(0,q);aq=259;ar=m.substring((q+1>>0));n=ap;o=aq;p=ar;return[n,o,p];}else if(s===(50)){if(m.length>=(q+4>>0)&&m.substring(q,(q+4>>0))==="2006"){as=m.substring(0,q);at=273;au=m.substring((q+4>>0));n=as;o=at;p=au;return[n,o,p];}av=m.substring(0,q);aw=263;ax=m.substring((q+1>>0));n=av;o=aw;p=ax;return[n,o,p];}else if(s===(95)){if(m.length>=(q+2>>0)&&(m.charCodeAt((q+1>>0))===50)){if(m.length>=(q+5>>0)&&m.substring((q+1>Line truncated
$packages["os"]=(function(){var $pkg={},$init,E,A,B,F,H,G,C,D,Z,AA,AS,BJ,BK,BM,CS,CT,CV,CX,CY,CZ,DA,DB,DC,DD,DE,DQ,DR,DS,DT,DZ,EA,AQ,AX,I,J,K,AB,AD,AG,AZ,BA,BC,BL,BN,BQ,BT,CE,CK,CL,CM;E=$packages["errors"];A=$packages["github.com/gopherjs/gopherjs/js"];B=$packages["io"];F=$packages["runtime"];H=$packages["sync"];G=$packages["sync/atomic"];C=$packages["syscall"];D=$packages["time"];Z=$pkg.PathError=$newType(0,$kindStruct,"os.PathError","PathError","os",function(Op_,Path_,Err_){this.$val=this;if(arguments.length===0){this.Op="";this.Path="";this.Err=$ifaceNil;return;}this.Op=Op_;this.Path=Path_;this.Err=Err_;});AA=$pkg.SyscallError=$newType(0,$kindStruct,"os.SyscallError","SyscallError","os",function(Syscall_,Err_){this.$val=this;if(arguments.length===0){this.Syscall="";this.Err=$ifaceNil;return;}this.Syscall=Syscall_;this.Err=Err_;});AS=$pkg.LinkError=$newType(0,$kindStruct,"os.LinkError","LinkError","os",function(Op_,Old_,New_,Err_){this.$val=this;if(arguments.length===0){this.Op="";this.Old="";this.New="";this.Err=$ifaceNil;return;}this.Op=Op_;this.Old=Old_;this.New=New_;this.Err=Err_;});BJ=$pkg.File=$newType(0,$kindStruct,"os.File","File","os",function(file_){this.$val=this;if(arguments.length===0){this.file=DQ.nil;return;}this.file=file_;});BK=$pkg.file=$newType(0,$kindStruct,"os.file","file","os",function(fd_,name_,dirinfo_){this.$val=this;if(arguments.length===0){this.fd=0;this.name="";this.dirinfo=CY.nil;return;}this.fd=fd_;this.name=name_;this.dirinfo=dirinfo_;});BM=$pkg.dirInfo=$newType(0,$kindStruct,"os.dirInfo","dirInfo","os",function(buf_,nbuf_,bufp_){this.$val=this;if(arguments.length===0){this.buf=CZ.nil;this.nbuf=0;this.bufp=0;return;}this.buf=buf_;this.nbuf=nbuf_;this.bufp=bufp_;});CS=$pkg.FileInfo=$newType(8,$kindInterface,"os.FileInfo","FileInfo","os",null);CT=$pkg.FileMode=$newType(4,$kindUint32,"os.FileMode","FileMode","os",null);CV=$pkg.fileStat=$newType(0,$kindStruct,"os.fileStat","fileStat","os",function(name_,size_,mode_,modTime_,sys_){this.$val=this;if(arguments.length===0){this.name="";this.size=new $Int64(0,0);this.mode=0;this.modTime=new D.Time.ptr(new $Int64(0,0),0,DS.nil);this.sys=new C.Stat_t.ptr(new $Uint64(0,0),new $Uint64(0,0),new $Uint64(0,0),0,0,0,0,new $Uint64(0,0),new $Int64(0,0),new $Int64(0,0),new $Int64(0,0),new C.Timespec.ptr(new $Int64(0,0),new $Int64(0,0)),new C.Timespec.ptr(new $Int64(0,0),new $Int64(0,0)),new C.Timespec.ptr(new $Int64(0,0),new $Int64(0,0)),DT.zero());return;}this.name=name_;this.size=size_;this.mode=mode_;this.modTime=modTime_;this.sys=sys_;});CX=$sliceType($String);CY=$ptrType(BM);CZ=$sliceType($Uint8);DA=$sliceType(CS);DB=$ptrType(BJ);DC=$ptrType(Z);DD=$ptrType(AS);DE=$ptrType(AA);DQ=$ptrType(BK);DR=$funcType([DQ],[$error],false);DS=$ptrType(D.Location);DT=$arrayType($Int64,3);DZ=$arrayType($Uint8,32);EA=$ptrType(CV);I=function(){var $ptr;return $pkg.Args;};J=function(){var $ptr,c,d,e;c=$global.process;if(!(c===undefined)){d=c.argv;$pkg.Args=$makeSlice(CX,($parseInt(d.length)-1>>0));e=0;while(true){if(!(e<($parseInt(d.length)-1>>0))){break;}((e<0||e>=$pkg.Args.$length)?$throwRuntimeError("index out of range"):$pkg.Args.$array[$pkg.Args.$offset+e]=$internalize(d[(e+1>>0)],$String));e=e+(1)>>0;}}if($pkg.Args.$length===0){$pkg.Args=new CX(["?"]);}};K=function(){var $ptr;};BJ.ptr.prototype.readdirnames=function(c){var $ptr,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v;d=CX.nil;e=$ifaceNil;f=this;if(f.file.dirinfo===CY.nil){f.file.dirinfo=new BM.ptr(CZ.nil,0,0);f.file.dirinfo.buf=$makeSlice(CZ,4096);}g=f.file.dirinfo;h=c;if(h<=0){h=100;c=-1;}d=$makeSlice(CX,0,h);while(true){if(!(!((c===0)))){break;}if(g.bufp>=g.nbuf){g.bufp=0;i=$ifaceNil;k=C.ReadDirent(f.file.fd,g.buf);j=AZ(k[0],k[1]);g.nbuf=j[0];i=j[1];if(!($interfaceIsEqual(i,$ifaceNil))){l=d;m=AB("readdirent",i);d=l;e=m;return[d,e];}if(g.nbuf<=0){break;}}n=0;o=0;p=n;q=o;r=C.ParseDirent($subslice(g.buf,g.bufp,g.nbuf),c,d);p=r[0];q=r[1];d=r[2];g.bufp=g.bufp+(p)>>0;c=c-(q)>>0;}if(c>=0&&(d.$length===0)){s=d;t=B.EOF;d=s;e=t;return[d,e];}u=d;v=$ifaceNil;d=u;e=v;return[d,e];};BJ.prototype.readdirnames=function(c){return this.$val.readdirnames(c);};BJ.ptr.prototype.Readdir=function(c){var $ptr,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;$ptr=$f.$ptr;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:d=DA.nil;e=$ifaceNil;f=this;if(f===DB.nil){g=DA.nil;h=$pkg.ErrInvalid;d=g;e=h;return[d,e];}j=f.readdir(c);$s=1;case 1:if($c){$c=false;j=j.$blk();}if(j&&j.$blk!==undefined){break s;}i=j;d=i[0];e=i[1];$s=2;case 2:return[d,e];}return;}if($f===undefined){$f={$blk:BJ.ptr.prototype.Readdir};}$f.$ptr=$ptr;$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;};BJ.prototype.Readdir=function(c){return this.$val.Readdir(c);};BJ.ptr.prototype.Readdirnames=function(c){var $ptr,c,d,e,f,g,h,i;d=CX.nil;e=$ifaceNil;f=this;if(f===DB.nil){g=CX.nil;h=$pkg.ErrInvalid;d=g;e=h;return[d,e];}i=fLine truncated
$packages["fmt"]=(function(){var $pkg={},$init,D,E,A,F,G,B,H,C,L,M,AF,AG,AH,AI,AJ,AK,BF,BG,BS,BT,BU,CG,CH,CI,CJ,CK,CL,CM,CN,CO,CR,DL,DM,I,J,N,O,Q,R,S,T,U,V,W,X,Y,Z,AA,AB,AC,AD,AE,AL,BA,BB,BC,BV,BZ,CB,CC,a,b,K,P,AM,AN,AP,AQ,AR,AU,AX,AY,AZ,BD,BE,BW,BX,CD;D=$packages["errors"];E=$packages["io"];A=$packages["math"];F=$packages["os"];G=$packages["reflect"];B=$packages["strconv"];H=$packages["sync"];C=$packages["unicode/utf8"];L=$pkg.fmtFlags=$newType(0,$kindStruct,"fmt.fmtFlags","fmtFlags","fmt",function(widPresent_,precPresent_,minus_,plus_,sharp_,space_,unicode_,uniQuote_,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.unicode=false;this.uniQuote=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.unicode=unicode_;this.uniQuote=uniQuote_;this.zero=zero_;this.plusV=plusV_;this.sharpV=sharpV_;});M=$pkg.fmt=$newType(0,$kindStruct,"fmt.fmt","fmt","fmt",function(intbuf_,buf_,wid_,prec_,fmtFlags_){this.$val=this;if(arguments.length===0){this.intbuf=CK.zero();this.buf=CL.nil;this.wid=0;this.prec=0;this.fmtFlags=new L.ptr(false,false,false,false,false,false,false,false,false,false,false);return;}this.intbuf=intbuf_;this.buf=buf_;this.wid=wid_;this.prec=prec_;this.fmtFlags=fmtFlags_;});AF=$pkg.State=$newType(8,$kindInterface,"fmt.State","State","fmt",null);AG=$pkg.Formatter=$newType(8,$kindInterface,"fmt.Formatter","Formatter","fmt",null);AH=$pkg.Stringer=$newType(8,$kindInterface,"fmt.Stringer","Stringer","fmt",null);AI=$pkg.GoStringer=$newType(8,$kindInterface,"fmt.GoStringer","GoStringer","fmt",null);AJ=$pkg.buffer=$newType(12,$kindSlice,"fmt.buffer","buffer","fmt",null);AK=$pkg.pp=$newType(0,$kindStruct,"fmt.pp","pp","fmt",function(n_,panicking_,erroring_,buf_,arg_,value_,reordered_,goodArgNum_,runeBuf_,fmt_){this.$val=this;if(arguments.length===0){this.n=0;this.panicking=false;this.erroring=false;this.buf=AJ.nil;this.arg=$ifaceNil;this.value=new G.Value.ptr(CI.nil,0,0);this.reordered=false;this.goodArgNum=false;this.runeBuf=CJ.zero();this.fmt=new M.ptr(CK.zero(),CL.nil,0,0,new L.ptr(false,false,false,false,false,false,false,false,false,false,false));return;}this.n=n_;this.panicking=panicking_;this.erroring=erroring_;this.buf=buf_;this.arg=arg_;this.value=value_;this.reordered=reordered_;this.goodArgNum=goodArgNum_;this.runeBuf=runeBuf_;this.fmt=fmt_;});BF=$pkg.runeUnreader=$newType(8,$kindInterface,"fmt.runeUnreader","runeUnreader","fmt",null);BG=$pkg.ScanState=$newType(8,$kindInterface,"fmt.ScanState","ScanState","fmt",null);BS=$pkg.scanError=$newType(0,$kindStruct,"fmt.scanError","scanError","fmt",function(err_){this.$val=this;if(arguments.length===0){this.err=$ifaceNil;return;}this.err=err_;});BT=$pkg.ss=$newType(0,$kindStruct,"fmt.ss","ss","fmt",function(rr_,buf_,peekRune_,prevRune_,count_,atEOF_,ssave_){this.$val=this;if(arguments.length===0){this.rr=$ifaceNil;this.buf=AJ.nil;this.peekRune=0;this.prevRune=0;this.count=0;this.atEOF=false;this.ssave=new BU.ptr(false,false,false,0,0,0);return;}this.rr=rr_;this.buf=buf_;this.peekRune=peekRune_;this.prevRune=prevRune_;this.count=count_;this.atEOF=atEOF_;this.ssave=ssave_;});BU=$pkg.ssave=$newType(0,$kindStruct,"fmt.ssave","ssave","fmt",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_;});CG=$sliceType($Uint8);CH=$sliceType($emptyInterface);CI=$ptrType(G.rtype);CJ=$arrayType($Uint8,4);CK=$arrayType($Uint8,65);CL=$ptrType(AJ);CM=$arrayType($Uint16,2);CN=$sliceType(CM);CO=$ptrType(AK);CR=$ptrType(BT);DL=$ptrType(M);DM=$funcType([$Int32],[$Bool],false);K=function(){var $ptr,c;c=0;while(true){if(!(c<65)){break;}((c<0||c>=I.$length)?$throwRuntimeError("index out of range"):I.$array[I.$offset+c]=48);((c<0||c>=J.$length)?$throwRuntimeError("index out of range"):J.$array[J.$offset+c]=32);c=c+(1)>>0;}};M.ptr.prototype.clearflags=function(){var $ptr,c;c=this;L.copy(c.fmtFlags,new L.ptr(false,false,false,false,false,false,false,false,false,false,false));};M.prototype.clearflags=function(){return this.$val.clearflags();};M.ptr.prototype.init=function(c){var $ptr,c,d;d=this;d.buf=c;d.clearflags();};M.prototype.init=function(c){return this.$val.init(c);};M.ptr.prototype.computePadding=function(c){var $ptr,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r;d=CG.nil;e=0;f=0;g=this;h=!g.fmtFlags.minus;i=g.wid;if(i<0){h=false;i=-i;}i=i-(c)>>0;if(i>0){if(h&&g.fmtFlags.zero){j=I;k=i;l=0;d=j;e=k;f=l;return[d,e,f];}if(h){m=J;n=i;o=0;d=m;e=n;f=o;return[d,e,f];}else{p=J;q=0;r=i;d=p;e=q;f=r;return[d,e,f];}}return[d,e,f];};M.prototype.comLine truncated
$packages["math/rand"]=(function(){var $pkg={},$init,B,A,J,L,AC,AE,AI,AJ,AK,AM,AN,AO,C,D,E,G,H,I,N,AD,F,K,M,AF;B=$packages["github.com/gopherjs/gopherjs/nosync"];A=$packages["math"];J=$pkg.Source=$newType(8,$kindInterface,"rand.Source","Source","math/rand",null);L=$pkg.Rand=$newType(0,$kindStruct,"rand.Rand","Rand","math/rand",function(src_){this.$val=this;if(arguments.length===0){this.src=$ifaceNil;return;}this.src=src_;});AC=$pkg.lockedSource=$newType(0,$kindStruct,"rand.lockedSource","lockedSource","math/rand",function(lk_,src_){this.$val=this;if(arguments.length===0){this.lk=new B.Mutex.ptr(false);this.src=$ifaceNil;return;}this.lk=lk_;this.src=src_;});AE=$pkg.rngSource=$newType(0,$kindStruct,"rand.rngSource","rngSource","math/rand",function(tap_,feed_,vec_){this.$val=this;if(arguments.length===0){this.tap=0;this.feed=0;this.vec=AI.zero();return;}this.tap=tap_;this.feed=feed_;this.vec=vec_;});AI=$arrayType($Int64,607);AJ=$sliceType($Int);AK=$ptrType(L);AM=$sliceType($Uint8);AN=$ptrType(AC);AO=$ptrType(AE);L.ptr.prototype.ExpFloat64=function(){var $ptr,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;$ptr=$f.$ptr;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:a=this;case 1:b=a.Uint32();$s=3;case 3:if($c){$c=false;b=b.$blk();}if(b&&b.$blk!==undefined){break s;}c=b;d=(c&255)>>>0;e=c*((d<0||d>=D.length)?$throwRuntimeError("index out of range"):D[d]);if(c<((d<0||d>=C.length)?$throwRuntimeError("index out of range"):C[d])){return e;}if(d===0){$s=4;continue;}$s=5;continue;case 4:f=a.Float64();$s=6;case 6:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}g=A.Log(f);$s=7;case 7:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}$s=8;case 8:return 7.69711747013105-g;case 5:h=a.Float64();$s=11;case 11:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}if($fround(((d<0||d>=E.length)?$throwRuntimeError("index out of range"):E[d])+$fround($fround(h)*($fround((i=d-1>>>0,((i<0||i>=E.length)?$throwRuntimeError("index out of range"):E[i]))-((d<0||d>=E.length)?$throwRuntimeError("index out of range"):E[d])))))<$fround(A.Exp(-e))){$s=9;continue;}$s=10;continue;case 9:return e;case 10:$s=1;continue;case 2:$s=-1;case-1:}return;}if($f===undefined){$f={$blk:L.ptr.prototype.ExpFloat64};}$f.$ptr=$ptr;$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;};L.prototype.ExpFloat64=function(){return this.$val.ExpFloat64();};F=function(a){var $ptr,a;if(a<0){return(-a>>>0);}return(a>>>0);};L.ptr.prototype.NormFloat64=function(){var $ptr,a,b,c,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;$ptr=$f.$ptr;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;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:a=this;case 1:b=a.Uint32();$s=3;case 3:if($c){$c=false;b=b.$blk();}if(b&&b.$blk!==undefined){break s;}c=(b>>0);d=c&127;e=c*((d<0||d>=H.length)?$throwRuntimeError("index out of range"):H[d]);if(F(c)<((d<0||d>=G.length)?$throwRuntimeError("index out of range"):G[d])){return e;}if(d===0){$s=4;continue;}$s=5;continue;case 4:case 6:f=a.Float64();$s=8;case 8:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}g=A.Log(f);$s=9;case 9:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}e=-g*0.29047645161474317;h=a.Float64();$s=10;case 10:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}i=A.Log(h);$s=11;case 11:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}j=-i;if(j+j>=e*e){$s=7;continue;}$s=6;continue;case 7:if(c>0){return 3.442619855899+e;}return-3.442619855899-e;case 5:k=a.Float64();$s=14;case 14:if($c){$c=false;k=k.$blk();}if(k&&k.$blk!==undefined){break s;}if($fround(((d<0||d>=I.length)?$throwRuntimeError("index out of range"):I[d])+$fround($fround(k)*($fround((l=d-1>>0,((l<0||l>=I.length)?$throwRuntimeError("index out of range"):I[l]))-((d<0||d>=I.length)?$throwRuntimeError("index out of range"):I[d])))))<$fround(A.Exp(-0.5*e*e))){$s=12;continue;}$s=13;continue;case 12:return e;case 13:$s=1;continue;case 2:$s=-1;case-1:}return;}if($f===undefined){$f={$blk:L.ptr.prototype.NormFloat64};}$f.$ptr=$ptr;$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.$s=$s;$f.$r=$r;return $f;};L.prototype.NormFloat64=function(){return this.$val.NormFloat64();};K=function(a){var $ptr,a,b;b=new AE.ptr(0,0,AI.zero());b.Seed(a);return b;};$pkg.NewSource=K;M=function(a){var $ptr,a;return new L.ptr(a);};$pkg.New=M;L.ptr.prototype.Seed=function(a){var $ptr,a,b,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$ptr=$f.$ptr;a=$f.a;b=$f.b;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=this;$r=b.src.Seed(a);$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=-1;case-1:}return;}if($f===undefined){$f={$blk:L.ptr.prototype.Seed};}$fLine truncated
$packages["math/big"]=(function(){var $pkg={},$init,E,J,H,A,I,C,B,G,F,D,X,BN,BV,BW,CQ,DC,DD,DE,DF,DH,DI,DK,DL,DM,DN,DP,BO,BX,BY,CD,CJ,CK,CP,CR,K,L,M,N,O,P,Q,R,S,T,U,V,Y,Z,AA,AB,AC,AE,AG,AH,AI,AJ,AK,AL,AM,AN,AO,AP,BR,BS,BT,BU,CA,CB,CC,CE,CF,CG,CH,CI,CL,CM,CN,CO,CS;E=$packages["bytes"];J=$packages["encoding/binary"];H=$packages["errors"];A=$packages["fmt"];I=$packages["github.com/gopherjs/gopherjs/nosync"];C=$packages["io"];B=$packages["math"];G=$packages["math/rand"];F=$packages["strconv"];D=$packages["strings"];X=$pkg.Word=$newType(4,$kindUintptr,"big.Word","Word","math/big",null);BN=$pkg.Int=$newType(0,$kindStruct,"big.Int","Int","math/big",function(neg_,abs_){this.$val=this;if(arguments.length===0){this.neg=false;this.abs=BW.nil;return;}this.neg=neg_;this.abs=abs_;});BV=$pkg.byteReader=$newType(0,$kindStruct,"big.byteReader","byteReader","math/big",function(ScanState_){this.$val=this;if(arguments.length===0){this.ScanState=$ifaceNil;return;}this.ScanState=ScanState_;});BW=$pkg.nat=$newType(12,$kindSlice,"big.nat","nat","math/big",null);CQ=$pkg.divisor=$newType(0,$kindStruct,"big.divisor","divisor","math/big",function(bbb_,nbits_,ndigits_){this.$val=this;if(arguments.length===0){this.bbb=BW.nil;this.nbits=0;this.ndigits=0;return;}this.bbb=bbb_;this.nbits=nbits_;this.ndigits=ndigits_;});DC=$arrayType(CQ,64);DD=$structType([{prop:"Mutex",name:"",pkg:"",typ:I.Mutex,tag:""},{prop:"table",name:"table",pkg:"math/big",typ:DC,tag:""}]);DE=$sliceType($Uint8);DF=$sliceType($emptyInterface);DH=$sliceType(X);DI=$ptrType(BN);DK=$ptrType(X);DL=$arrayType(BW,16);DM=$ptrType(BW);DN=$sliceType(CQ);DP=$ptrType(G.Rand);K=function(m,n){var $ptr,m,n,o,p,q;o=0;p=0;q=AA(m,n);o=q[0];p=q[1];return[o,p];};L=function(m,n,o){var $ptr,m,n,o,p,q,r;p=0;q=0;r=AG(m,n,o);p=r[0];q=r[1];return[p,q];};M=function(m,n,o){var $ptr,m,n,o,p;p=0;p=AH(m,n,o);return p;};N=function(m,n,o){var $ptr,m,n,o,p;p=0;p=AI(m,n,o);return p;};O=function(m,n,o){var $ptr,m,n,o,p;p=0;p=AJ(m,n,o);return p;};P=function(m,n,o){var $ptr,m,n,o,p;p=0;p=AK(m,n,o);return p;};Q=function(m,n,o){var $ptr,m,n,o,p;p=0;p=AL(m,n,o);return p;};R=function(m,n,o){var $ptr,m,n,o,p;p=0;p=AM(m,n,o);return p;};S=function(m,n,o,p){var $ptr,m,n,o,p,q;q=0;q=AN(m,n,o,p);return q;};T=function(m,n,o){var $ptr,m,n,o,p;p=0;p=AO(m,n,o);return p;};U=function(m,n,o,p){var $ptr,m,n,o,p,q;q=0;q=AP(m,n,o,p);return q;};V=function(m){var $ptr,m,n;n=0;n=AC(m);return n;};Y=function(m,n,o){var $ptr,m,n,o,p,q,r;p=0;q=0;r=n+o>>>0;q=m+r>>>0;if(q<m||r<n){p=1;}return[p,q];};Z=function(m,n,o){var $ptr,m,n,o,p,q,r;p=0;q=0;r=n+o>>>0;q=m-r>>>0;if(q>m||r<n){p=1;}return[p,q];};AA=function(m,n){var $ptr,m,n,o,p,q,r,s,t,u,v,w,x;o=0;p=0;q=(m&65535)>>>0;r=m>>>16>>>0;s=(n&65535)>>>0;t=n>>>16>>>0;u=$imul(q,s)>>>0;v=($imul(r,s)>>>0)+(u>>>16>>>0)>>>0;w=(v&65535)>>>0;x=v>>>16>>>0;w=w+(($imul(q,t)>>>0))>>>0;o=(($imul(r,t)>>>0)+x>>>0)+(w>>>16>>>0)>>>0;p=$imul(m,n)>>>0;return[o,p];};AB=function(m,n,o){var $ptr,m,n,o,p,q,r,s;p=0;q=0;r=AA(m,n);p=r[0];s=r[1];q=s+o>>>0;if(q<s){p=p+(1)>>>0;}return[p,q];};AC=function(m){var $ptr,m,n,o,p,q,r;n=0;while(true){if(!(m>=32768)){break;}n=n+(16)>>0;m=(o=(16),o<32?(m>>>o):0)>>>0;}if(m>=128){m=(p=(8),p<32?(m>>>p):0)>>>0;n=n+(8)>>0;}if(m>=8){m=(q=(4),q<32?(m>>>q):0)>>>0;n=n+(4)>>0;}if(m>=2){m=(r=(2),r<32?(m>>>r):0)>>>0;n=n+(2)>>0;}if(m>=1){n=n+(1)>>0;}return n;};AE=function(m){var $ptr,m;return((32-V(m)>>0)>>>0);};AG=function(m,n,o){var $ptr,aa,ab,ac,ad,ae,af,ag,ah,ai,aj,ak,al,am,m,n,o,p,q,r,s,t,u,v,w,x,y,z;p=0;q=0;if(m>=o){r=4294967295;s=4294967295;p=r;q=s;return[p,q];}t=AE(o);o=(u=(t),u<32?(o<<u):0)>>>0;v=o>>>16>>>0;w=(o&65535)>>>0;z=(((x=t,x<32?(m<<x):0)>>>0)|((y=((32-t>>>0)),y<32?(n>>>y):0)>>>0))>>>0;ab=(aa=t,aa<32?(n<<aa):0)>>>0;ac=ab>>>16>>>0;ad=(ab&65535)>>>0;af=(ae=z/v,(ae===ae&&ae!==1/0&&ae!==-1/0)?ae>>>0:$throwRuntimeError("integer divide by zero"));ag=z-($imul(af,v)>>>0)>>>0;while(true){if(!(af>=65536||($imul(af,w)>>>0)>(($imul(65536,ag)>>>0)+ac>>>0))){break;}af=af-(1)>>>0;ag=ag+(v)>>>0;if(ag>=65536){break;}}ah=(($imul(z,65536)>>>0)+ac>>>0)-($imul(af,o)>>>0)>>>0;aj=(ai=ah/v,(ai===ai&&ai!==1/0&&ai!==-1/0)?ai>>>0:$throwRuntimeError("integer divide by zero"));ag=ah-($imul(aj,v)>>>0)>>>0;while(true){if(!(aj>=65536||($imul(aj,w)>>>0)>(($imul(65536,ag)>>>0)+ad>>>0))){break;}aj=aj-(1)>>>0;ag=ag+(v)>>>0;if(ag>=65536){break;}}ak=($imul(af,65536)>>>0)+aj>>>0;al=(am=t,am<32?((((($imul(ah,65536)>>>0)+ad>>>0)-($imul(aj,o)>>>0)>>>0))>>>am):0)>>>0;p=ak;q=al;return[p,q];};AH=function(m,n,o){var $ptr,m,n,o,p,q,r,s,t,u,v,w,x,y,z;p=0;if(false){q=m;r=0;while(true){if(!(r<q.$length)){break;}s=r;t=Y(((s<0||s>=n.$length)?$throwRuntimeError("index out of range"):n.$array[n.$offset+s]),((s<0||s>=o.$length)?$throwRuntimeError("index out of range"):o.$array[o.$offset+s]),p);p=t[0];((s<0||s>=m.$length)?$throwRuntimeError("index out of range"):m.$array[m.$offset+s]=t[1]);r++;}return p;}u=$subslice(n,0,m.$length);v=0;while(true){if(!(v<u.$length)){break;}w=v;x=((v<0||v>=u.$length)?$throwRuntimeError("index out oLine truncated
$packages["crypto/rand"]=(function(){var $pkg={},$init,A,B,C,D,F,L,N,I,E,G;A=$packages["errors"];B=$packages["github.com/gopherjs/gopherjs/js"];C=$packages["io"];D=$packages["math/big"];F=$pkg.rngReader=$newType(0,$kindStruct,"rand.rngReader","rngReader","crypto/rand",function(){this.$val=this;if(arguments.length===0){return;}});L=$sliceType($Uint8);N=$ptrType(F);E=function(){var $ptr;$pkg.Reader=new F.ptr();};F.ptr.prototype.Read=function(a){var $ptr,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o;b=0;c=$ifaceNil;d=this;e=a.$array;f=$parseInt(a.$offset)>>0;g=$global.crypto;if(g===undefined){g=$global.msCrypto;}if(!(g===undefined)){if(!(g.getRandomValues===undefined)){b=a.$length;if(b>65536){b=65536;}g.getRandomValues(e.subarray(f,f+b>>0));h=b;i=$ifaceNil;b=h;c=i;return[b,c];}}j=$global.require;if(!(j===undefined)){k=j($externalize("crypto",$String)).randomBytes;if(!(k===undefined)){e.set(k(a.$length),f);l=a.$length;m=$ifaceNil;b=l;c=m;return[b,c];}}n=0;o=A.New("crypto/rand not available in this environment");b=n;c=o;return[b,c];};F.prototype.Read=function(a){return this.$val.Read(a);};G=function(a){var $ptr,a,b,c,d,e,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$ptr=$f.$ptr;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:b=0;c=$ifaceNil;e=C.ReadFull($pkg.Reader,a);$s=1;case 1:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}d=e;b=d[0];c=d[1];$s=2;case 2:return[b,c];}return;}if($f===undefined){$f={$blk:G};}$f.$ptr=$ptr;$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.$s=$s;$f.$r=$r;return $f;};$pkg.Read=G;N.methods=[{prop:"Read",name:"Read",pkg:"",typ:$funcType([L],[$Int,$error],false)}];F.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:$r=A.$init();$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=B.$init();$s=2;case 2:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=C.$init();$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=D.$init();$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$pkg.Reader=$ifaceNil;I=new D.Int.ptr(false,D.nat.nil).SetUint64(new $Uint64(3793877372,820596253));E();}return;}if($f===undefined){$f={$blk:$init};}$f.$s=$s;$f.$r=$r;return $f;};$pkg.$init=$init;return $pkg;})();
$packages["hash"]=(function(){var $pkg={},$init,A,B,E;A=$packages["io"];B=$pkg.Hash=$newType(8,$kindInterface,"hash.Hash","Hash","hash",null);E=$sliceType($Uint8);B.init([{prop:"BlockSize",name:"BlockSize",pkg:"",typ:$funcType([],[$Int],false)},{prop:"Reset",name:"Reset",pkg:"",typ:$funcType([],[],false)},{prop:"Size",name:"Size",pkg:"",typ:$funcType([],[$Int],false)},{prop:"Sum",name:"Sum",pkg:"",typ:$funcType([E],[E],false)},{prop:"Write",name:"Write",pkg:"",typ:$funcType([E],[$Int,$error],false)}]);$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;}}return;}if($f===undefined){$f={$blk:$init};}$f.$s=$s;$f.$r=$r;return $f;};$pkg.$init=$init;return $pkg;})();
$packages["crypto"]=(function(){var $pkg={},$init,A,B,C,O,P,F,G;A=$packages["hash"];B=$packages["io"];C=$packages["strconv"];O=$funcType([],[A.Hash],false);P=$sliceType(O);G=function(a,b){var $ptr,a,b;if(a>=16){$panic(new $String("crypto: RegisterHash of unknown hash function"));}((a<0||a>=F.$length)?$throwRuntimeError("index out of range"):F.$array[F.$offset+a]=b);};$pkg.RegisterHash=G;$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=B.$init();$s=2;case 2:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=C.$init();$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}F=$makeSlice(P,16);}return;}if($f===undefined){$f={$blk:$init};}$f.$s=$s;$f.$r=$r;return $f;};$pkg.$init=$init;return $pkg;})();
$packages["crypto/sha256"]=(function(){var $pkg={},$init,A,B,D,K,L,M,N,O,Q,R,I,C,E,F,G,J;A=$packages["crypto"];B=$packages["hash"];D=$pkg.digest=$newType(0,$kindStruct,"sha256.digest","digest","crypto/sha256",function(h_,x_,nx_,len_,is224_){this.$val=this;if(arguments.length===0){this.h=L.zero();this.x=M.zero();this.nx=0;this.len=new $Uint64(0,0);this.is224=false;return;}this.h=h_;this.x=x_;this.nx=nx_;this.len=len_;this.is224=is224_;});K=$sliceType($Uint32);L=$arrayType($Uint32,8);M=$arrayType($Uint8,64);N=$sliceType($Uint8);O=$arrayType($Uint8,32);Q=$arrayType($Uint32,64);R=$ptrType(D);C=function(){var $ptr;A.RegisterHash(4,F);A.RegisterHash(5,E);};D.ptr.prototype.Reset=function(){var $ptr,a;a=this;if(!a.is224){a.h[0]=1779033703;a.h[1]=3144134277;a.h[2]=1013904242;a.h[3]=2773480762;a.h[4]=1359893119;a.h[5]=2600822924;a.h[6]=528734635;a.h[7]=1541459225;}else{a.h[0]=3238371032;a.h[1]=914150663;a.h[2]=812702999;a.h[3]=4144912697;a.h[4]=4290775857;a.h[5]=1750603025;a.h[6]=1694076839;a.h[7]=3204075428;}a.nx=0;a.len=new $Uint64(0,0);};D.prototype.Reset=function(){return this.$val.Reset();};E=function(){var $ptr,a;a=new D.ptr(L.zero(),M.zero(),0,new $Uint64(0,0),false);a.Reset();return a;};$pkg.New=E;F=function(){var $ptr,a;a=new D.ptr(L.zero(),M.zero(),0,new $Uint64(0,0),false);a.is224=true;a.Reset();return a;};$pkg.New224=F;D.ptr.prototype.Size=function(){var $ptr,a;a=this;if(!a.is224){return 32;}return 28;};D.prototype.Size=function(){return this.$val.Size();};D.ptr.prototype.BlockSize=function(){var $ptr,a;a=this;return 64;};D.prototype.BlockSize=function(){return this.$val.BlockSize();};D.ptr.prototype.Write=function(a){var $ptr,a,b,c,d,e,f,g,h;b=0;c=$ifaceNil;d=this;b=a.$length;d.len=(e=d.len,f=new $Uint64(0,b),new $Uint64(e.$high+f.$high,e.$low+f.$low));if(d.nx>0){g=$copySlice($subslice(new N(d.x),d.nx),a);d.nx=d.nx+(g)>>0;if(d.nx===64){J(d,new N(d.x));d.nx=0;}a=$subslice(a,g);}if(a.$length>=64){h=(a.$length&~63)>>0;J(d,$subslice(a,0,h));a=$subslice(a,h);}if(a.$length>0){d.nx=$copySlice(new N(d.x),a);}return[b,c];};D.prototype.Write=function(a){return this.$val.Write(a);};D.ptr.prototype.Sum=function(a){var $ptr,a,b,c,d;b=this;c=$clone(b,D);d=$clone(c.checkSum(),O);if(c.is224){return $appendSlice(a,$subslice(new N(d),0,28));}return $appendSlice(a,new N(d));};D.prototype.Sum=function(a){return this.$val.Sum(a);};D.ptr.prototype.checkSum=function(){var $ptr,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q;a=this;b=a.len;c=M.zero();c[0]=128;if((d=$div64(b,new $Uint64(0,64),true),(d.$high<0||(d.$high===0&&d.$low<56)))){a.Write($subslice(new N(c),0,$flatten64((e=$div64(b,new $Uint64(0,64),true),new $Uint64(0-e.$high,56-e.$low)))));}else{a.Write($subslice(new N(c),0,$flatten64((f=$div64(b,new $Uint64(0,64),true),new $Uint64(0-f.$high,120-f.$low)))));}b=$shiftLeft64(b,(3));g=0;while(true){if(!(g<8)){break;}((g<0||g>=c.length)?$throwRuntimeError("index out of range"):c[g]=($shiftRightUint64(b,((56-(8*g>>>0)>>>0))).$low<<24>>>24));g=g+(1)>>>0;}a.Write($subslice(new N(c),0,8));if(!((a.nx===0))){$panic(new $String("d.nx != 0"));}h=new K(a.h);if(a.is224){h=$subslice(new K(a.h),0,7);}i=O.zero();j=h;k=0;while(true){if(!(k<j.$length)){break;}l=k;m=((k<0||k>=j.$length)?$throwRuntimeError("index out of range"):j.$array[j.$offset+k]);(n=$imul(l,4),((n<0||n>=i.length)?$throwRuntimeError("index out of range"):i[n]=((m>>>24>>>0)<<24>>>24)));(o=($imul(l,4))+1>>0,((o<0||o>=i.length)?$throwRuntimeError("index out of range"):i[o]=((m>>>16>>>0)<<24>>>24)));(p=($imul(l,4))+2>>0,((p<0||p>=i.length)?$throwRuntimeError("index out of range"):i[p]=((m>>>8>>>0)<<24>>>24)));(q=($imul(l,4))+3>>0,((q<0||q>=i.length)?$throwRuntimeError("index out of range"):i[q]=(m<<24>>>24)));k++;}return i;};D.prototype.checkSum=function(){return this.$val.checkSum();};G=function(a){var $ptr,a,b;b=new D.ptr(L.zero(),M.zero(),0,new $Uint64(0,0),false);b.Reset();b.Write(a);return b.checkSum();};$pkg.Sum256=G;J=function(a,b){var $ptr,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,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=Q.zero();d=a.h[0];e=a.h[1];f=a.h[2];g=a.h[3];h=a.h[4];i=a.h[5];j=a.h[6];k=a.h[7];l=d;m=e;n=f;o=g;p=h;q=i;r=j;s=k;while(true){if(!(b.$length>=64)){break;}t=0;while(true){if(!(t<16)){break;}u=$imul(t,4);((t<0||t>=c.length)?$throwRuntimeError("index out of range"):c[t]=((((((((((u<0||u>=b.$length)?$throwRuntimeError("index out of range"):b.$array[b.$offset+u])>>>0)<<24>>>0)|(((v=u+1>>0,((v<0||v>=b.$length)?$throwRuntimeError("index out of range"):b.$array[b.$offset+v]))>>>0)<<16>>>0))>>>0)|(((w=u+2>>0,((w<0||w>=b.$length)?$throwRuntimeError("index out of range"):b.$array[b.$offset+w]))>>>0)<<8>>>0))>>>0)|((x=u+3>>0,((x<0||x>=b.$length)?$throwRuntimeError("index out of range"):b.$array[b.$offset+x]))>>>0))>>>0));t=t+(1)>>0;}y=16;while(true){if(!(y<64)){break;}aa=(z=y-2>>0,((z<0||z>=c.length)?$throwRuntimeError("index out of range"):c[z]));ab=(((((((aa>>>17>>>0)|(aa<<15>>>0))>>>0))^((((aa>>>19>>>Line truncated
$packages["encoding/base64"]=(function(){var $pkg={},$init,A,B,C,E,G,K,L,M,N,O,P,Q,S,D,F;A=$packages["io"];B=$packages["strconv"];C=$pkg.Encoding=$newType(0,$kindStruct,"base64.Encoding","Encoding","encoding/base64",function(encode_,decodeMap_,padChar_){this.$val=this;if(arguments.length===0){this.encode=K.zero();this.decodeMap=L.zero();this.padChar=0;return;}this.encode=encode_;this.decodeMap=decodeMap_;this.padChar=padChar_;});E=$pkg.encoder=$newType(0,$kindStruct,"base64.encoder","encoder","encoding/base64",function(err_,enc_,w_,buf_,nbuf_,out_){this.$val=this;if(arguments.length===0){this.err=$ifaceNil;this.enc=N.nil;this.w=$ifaceNil;this.buf=O.zero();this.nbuf=0;this.out=P.zero();return;}this.err=err_;this.enc=enc_;this.w=w_;this.buf=buf_;this.nbuf=nbuf_;this.out=out_;});G=$pkg.CorruptInputError=$newType(8,$kindInt64,"base64.CorruptInputError","CorruptInputError","encoding/base64",null);K=$arrayType($Uint8,64);L=$arrayType($Uint8,256);M=$sliceType($Uint8);N=$ptrType(C);O=$arrayType($Uint8,3);P=$arrayType($Uint8,1024);Q=$arrayType($Uint8,4);S=$ptrType(E);D=function(a){var $ptr,a,b,c,d,e,f,g;if(!((a.length===64))){$panic(new $String("encoding alphabet is not 64-bytes long"));}b=new C.ptr(K.zero(),L.zero(),0);b.padChar=61;$copyString(new M(b.encode),a);c=0;while(true){if(!(c<256)){break;}(d=b.decodeMap,((c<0||c>=d.length)?$throwRuntimeError("index out of range"):d[c]=255));c=c+(1)>>0;}e=0;while(true){if(!(e<a.length)){break;}(f=b.decodeMap,g=a.charCodeAt(e),((g<0||g>=f.length)?$throwRuntimeError("index out of range"):f[g]=(e<<24>>>24)));e=e+(1)>>0;}return b;};$pkg.NewEncoding=D;C.ptr.prototype.WithPadding=function(a){var $ptr,a,b;b=$clone(this,C);b.padChar=a;return b;};C.prototype.WithPadding=function(a){return this.$val.WithPadding(a);};C.ptr.prototype.Encode=function(a,b){var $ptr,a,aa,ab,ac,ad,ae,af,ag,ah,ai,aj,ak,al,am,an,ao,ap,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(b.$length===0){return;}d=0;e=0;f=d;g=e;i=$imul(((h=b.$length/3,(h===h&&h!==1/0&&h!==-1/0)?h>>0:$throwRuntimeError("integer divide by zero"))),3);while(true){if(!(g<i)){break;}m=((((((j=g+0>>0,((j<0||j>=b.$length)?$throwRuntimeError("index out of range"):b.$array[b.$offset+j]))>>>0)<<16>>>0)|(((k=g+1>>0,((k<0||k>=b.$length)?$throwRuntimeError("index out of range"):b.$array[b.$offset+k]))>>>0)<<8>>>0))>>>0)|((l=g+2>>0,((l<0||l>=b.$length)?$throwRuntimeError("index out of range"):b.$array[b.$offset+l]))>>>0))>>>0;(p=f+0>>0,((p<0||p>=a.$length)?$throwRuntimeError("index out of range"):a.$array[a.$offset+p]=(n=c.encode,o=((m>>>18>>>0)&63)>>>0,((o<0||o>=n.length)?$throwRuntimeError("index out of range"):n[o]))));(s=f+1>>0,((s<0||s>=a.$length)?$throwRuntimeError("index out of range"):a.$array[a.$offset+s]=(q=c.encode,r=((m>>>12>>>0)&63)>>>0,((r<0||r>=q.length)?$throwRuntimeError("index out of range"):q[r]))));(v=f+2>>0,((v<0||v>=a.$length)?$throwRuntimeError("index out of range"):a.$array[a.$offset+v]=(t=c.encode,u=((m>>>6>>>0)&63)>>>0,((u<0||u>=t.length)?$throwRuntimeError("index out of range"):t[u]))));(y=f+3>>0,((y<0||y>=a.$length)?$throwRuntimeError("index out of range"):a.$array[a.$offset+y]=(w=c.encode,x=(m&63)>>>0,((x<0||x>=w.length)?$throwRuntimeError("index out of range"):w[x]))));g=g+(3)>>0;f=f+(4)>>0;}z=b.$length-g>>0;if(z===0){return;}ab=((aa=g+0>>0,((aa<0||aa>=b.$length)?$throwRuntimeError("index out of range"):b.$array[b.$offset+aa]))>>>0)<<16>>>0;if(z===2){ab=(ab|((((ac=g+1>>0,((ac<0||ac>=b.$length)?$throwRuntimeError("index out of range"):b.$array[b.$offset+ac]))>>>0)<<8>>>0)))>>>0;}(af=f+0>>0,((af<0||af>=a.$length)?$throwRuntimeError("index out of range"):a.$array[a.$offset+af]=(ad=c.encode,ae=((ab>>>18>>>0)&63)>>>0,((ae<0||ae>=ad.length)?$throwRuntimeError("index out of range"):ad[ae]))));(ai=f+1>>0,((ai<0||ai>=a.$length)?$throwRuntimeError("index out of range"):a.$array[a.$offset+ai]=(ag=c.encode,ah=((ab>>>12>>>0)&63)>>>0,((ah<0||ah>=ag.length)?$throwRuntimeError("index out of range"):ag[ah]))));aj=z;if(aj===(2)){(am=f+2>>0,((am<0||am>=a.$length)?$throwRuntimeError("index out of range"):a.$array[a.$offset+am]=(ak=c.encode,al=((ab>>>6>>>0)&63)>>>0,((al<0||al>=ak.length)?$throwRuntimeError("index out of range"):ak[al]))));if(!((c.padChar===-1))){(an=f+3>>0,((an<0||an>=a.$length)?$throwRuntimeError("index out of range"):a.$array[a.$offset+an]=(c.padChar<<24>>>24)));}}else if(aj===(1)){if(!((c.padChar===-1))){(ao=f+2>>0,((ao<0||ao>=a.$length)?$throwRuntimeError("index out of range"):a.$array[a.$offset+ao]=(c.padChar<<24>>>24)));(ap=f+3>>0,((ap<0||ap>=a.$length)?$throwRuntimeError("index out of range"):a.$array[a.$offset+ap]=(c.padChar<<24>>>24)));}}};C.prototype.Encode=function(a,b){return this.$val.Encode(a,b);};C.ptr.prototype.EncodeToString=function(a){var $ptr,a,b,c;b=this;c=$makeSlice(M,b.EncodedLen(a.$length));b.Encode(c,a);return $bytesToString(c);};C.prototype.EncodeToString=function(a){return this.$val.EncodeToString(a);};E.ptr.prototype.Write=function(a){var $ptr,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,sLine truncated
$packages["encoding"]=(function(){var $pkg={},$init,C,E;C=$pkg.TextMarshaler=$newType(8,$kindInterface,"encoding.TextMarshaler","TextMarshaler","encoding",null);E=$sliceType($Uint8);C.init([{prop:"MarshalText",name:"MarshalText",pkg:"",typ:$funcType([],[E,$error],false)}]);$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["sort"]=(function(){var $pkg={},$init,U,AG,A,D,G,H,I,J,L,M,N;U=$pkg.StringSlice=$newType(12,$kindSlice,"sort.StringSlice","StringSlice","sort",null);AG=$sliceType($String);A=function(a,b){var $ptr,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;$ptr=$f.$ptr;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=0;d=a;e=c;f=d;case 1:if(!(e<f)){$s=2;continue;}h=e+(g=((f-e>>0))/2,(g===g&&g!==1/0&&g!==-1/0)?g>>0:$throwRuntimeError("integer divide by zero"))>>0;i=b(h);$s=6;case 6:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}if(!i){$s=3;continue;}$s=4;continue;case 3:e=h+1>>0;$s=5;continue;case 4:f=h;case 5:$s=1;continue;case 2:return e;}return;}if($f===undefined){$f={$blk:A};}$f.$ptr=$ptr;$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.Search=A;D=function(a,b){var $ptr,a,b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$ptr=$f.$ptr;a=$f.a;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:a=[a];b=[b];c=A(a[0].$length,(function(a,b){return function(c){var $ptr,c;return((c<0||c>=a[0].$length)?$throwRuntimeError("index out of range"):a[0].$array[a[0].$offset+c])>=b[0];};})(a,b));$s=1;case 1:if($c){$c=false;c=c.$blk();}if(c&&c.$blk!==undefined){break s;}$s=2;case 2:return c;}return;}if($f===undefined){$f={$blk:D};}$f.$ptr=$ptr;$f.a=a;$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};$pkg.SearchStrings=D;U.prototype.Search=function(a){var $ptr,a,b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$ptr=$f.$ptr;a=$f.a;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=this;c=D($subslice(new AG(b.$array),b.$offset,b.$offset+b.$length),a);$s=1;case 1:if($c){$c=false;c=c.$blk();}if(c&&c.$blk!==undefined){break s;}$s=2;case 2:return c;}return;}if($f===undefined){$f={$blk:U.prototype.Search};}$f.$ptr=$ptr;$f.a=a;$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};$ptrType(U).prototype.Search=function(a){return this.$get().Search(a);};G=function(a,b,c){var $ptr,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;$ptr=$f.$ptr;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:d=b+1>>0;case 1:if(!(d<c)){$s=2;continue;}e=d;case 3:if(!(e>b)){f=false;$s=5;continue s;}g=a.Less(e,e-1>>0);$s=6;case 6:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}f=g;case 5:if(!(f)){$s=4;continue;}$r=a.Swap(e,e-1>>0);$s=7;case 7:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}e=e-(1)>>0;$s=3;continue;case 4:d=d+(1)>>0;$s=1;continue;case 2:$s=-1;case-1:}return;}if($f===undefined){$f={$blk:G};}$f.$ptr=$ptr;$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;};H=function(a,b,c,d){var $ptr,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;$ptr=$f.$ptr;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:e=b;case 1:f=($imul(2,e))+1>>0;if(f>=c){$s=2;continue;}if(!((f+1>>0)<c)){g=false;$s=5;continue s;}h=a.Less(d+f>>0,(d+f>>0)+1>>0);$s=6;case 6:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}g=h;case 5:if(g){$s=3;continue;}$s=4;continue;case 3:f=f+(1)>>0;case 4:i=a.Less(d+e>>0,d+f>>0);$s=9;case 9:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}if(!i){$s=7;continue;}$s=8;continue;case 7:return;case 8:$r=a.Swap(d+e>>0,d+f>>0);$s=10;case 10:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}e=f;$s=1;continue;case 2:$s=-1;case-1:}return;}if($f===undefined){$f={$blk:H};}$f.$ptr=$ptr;$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;};I=function(a,b,c){var $ptr,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;$ptr=$f.$ptr;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:d=b;e=0;f=c-b>>0;h=(g=((f-1>>0))/2,(g===g&&g!==1/0&&g!==-1/0)?g>>0:$throwRuntimeError("integer divide by zero"));case 1:if(!(h>=0)){$s=2;continue;}$r=H(a,h,f,d);$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}h=h-(1)>>0;$s=1;continue;case 2:i=f-1>>0;case 4:if(!(i>=0)){$s=5;continue;}$r=a.Swap(d,d+i>>0);$s=6;case 6:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=H(a,e,i,d);$s=7;case 7:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}i=i-(1)>>0;$s=4;continue;case 5:$s=-1;case-1:}return;}if($f===undefined){$f={$blk:I};}$f.$ptr=$ptr;$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;};J=function(a,b,c,d){var $ptr,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;$ptr=$f.$ptr;a=$f.Line truncated
$packages["flag"]=(function(){var $pkg={},$init,A,B,C,D,E,F,G,H,J,K,M,O,Q,S,U,W,Y,AA,AB,AC,BK,BL,BM,BN,BO,BP,BQ,BR,BS,BT,BU,BV,BW,BX,BY,BZ,CA,CB,CC,CD,CE,CF,CG,CH,a,I,L,N,P,R,T,V,X,AD,AI,AJ,AK,AL,AR,AT,AX,BB,BF,BJ;A=$packages["errors"];B=$packages["fmt"];C=$packages["io"];D=$packages["os"];E=$packages["sort"];F=$packages["strconv"];G=$packages["time"];H=$pkg.boolValue=$newType(1,$kindBool,"flag.boolValue","boolValue","flag",null);J=$pkg.boolFlag=$newType(8,$kindInterface,"flag.boolFlag","boolFlag","flag",null);K=$pkg.intValue=$newType(4,$kindInt,"flag.intValue","intValue","flag",null);M=$pkg.int64Value=$newType(8,$kindInt64,"flag.int64Value","int64Value","flag",null);O=$pkg.uintValue=$newType(4,$kindUint,"flag.uintValue","uintValue","flag",null);Q=$pkg.uint64Value=$newType(8,$kindUint64,"flag.uint64Value","uint64Value","flag",null);S=$pkg.stringValue=$newType(8,$kindString,"flag.stringValue","stringValue","flag",null);U=$pkg.float64Value=$newType(8,$kindFloat64,"flag.float64Value","float64Value","flag",null);W=$pkg.durationValue=$newType(8,$kindInt64,"flag.durationValue","durationValue","flag",null);Y=$pkg.Value=$newType(8,$kindInterface,"flag.Value","Value","flag",null);AA=$pkg.ErrorHandling=$newType(4,$kindInt,"flag.ErrorHandling","ErrorHandling","flag",null);AB=$pkg.FlagSet=$newType(0,$kindStruct,"flag.FlagSet","FlagSet","flag",function(Usage_,name_,parsed_,actual_,formal_,args_,errorHandling_,output_){this.$val=this;if(arguments.length===0){this.Usage=$throwNilPointerError;this.name="";this.parsed=false;this.actual=false;this.formal=false;this.args=CD.nil;this.errorHandling=0;this.output=$ifaceNil;return;}this.Usage=Usage_;this.name=name_;this.parsed=parsed_;this.actual=actual_;this.formal=formal_;this.args=args_;this.errorHandling=errorHandling_;this.output=output_;});AC=$pkg.Flag=$newType(0,$kindStruct,"flag.Flag","Flag","flag",function(Name_,Usage_,Value_,DefValue_){this.$val=this;if(arguments.length===0){this.Name="";this.Usage="";this.Value=$ifaceNil;this.DefValue="";return;}this.Name=Name_;this.Usage=Usage_;this.Value=Value_;this.DefValue=DefValue_;});BK=$sliceType($emptyInterface);BL=$ptrType(H);BM=$ptrType(K);BN=$ptrType(M);BO=$ptrType(O);BP=$ptrType(Q);BQ=$ptrType(S);BR=$ptrType(U);BS=$ptrType(W);BT=$ptrType(G.Duration);BU=$ptrType(AC);BV=$sliceType(BU);BW=$ptrType($Bool);BX=$ptrType($Int);BY=$ptrType($Int64);BZ=$ptrType($Uint);CA=$ptrType($Uint64);CB=$ptrType($String);CC=$ptrType($Float64);CD=$sliceType($String);CE=$funcType([BU],[],false);CF=$ptrType(AB);CG=$funcType([],[],false);CH=$mapType($String,BU);I=function(b,c){var $ptr,b,c,d;c.$set(b);return(d=c,new BL(function(){return d.$get();},function($v){d.$set($v);},d.$target));};$ptrType(H).prototype.Set=function(b){var $ptr,b,c,d,e,f;c=this;d=F.ParseBool(b);e=d[0];f=d[1];c.$set(e);return f;};$ptrType(H).prototype.Get=function(){var $ptr,b;b=this;return new $Bool(b.$get());};$ptrType(H).prototype.String=function(){var $ptr,b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$ptr=$f.$ptr;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=this;c=B.Sprintf("%v",new BK([new H(b.$get())]));$s=1;case 1:if($c){$c=false;c=c.$blk();}if(c&&c.$blk!==undefined){break s;}$s=2;case 2:return c;}return;}if($f===undefined){$f={$blk:$ptrType(H).prototype.String};}$f.$ptr=$ptr;$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};$ptrType(H).prototype.IsBoolFlag=function(){var $ptr,b;b=this;return true;};L=function(b,c){var $ptr,b,c,d;c.$set(b);return(d=c,new BM(function(){return(d.$get()>>0);},function($v){d.$set(($v>>0));},d.$target));};$ptrType(K).prototype.Set=function(b){var $ptr,b,c,d,e,f;c=this;d=F.ParseInt(b,0,64);e=d[0];f=d[1];c.$set(((e.$low+((e.$high>>31)*4294967296))>>0));return f;};$ptrType(K).prototype.Get=function(){var $ptr,b;b=this;return new $Int((b.$get()>>0));};$ptrType(K).prototype.String=function(){var $ptr,b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$ptr=$f.$ptr;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=this;c=B.Sprintf("%v",new BK([new K(b.$get())]));$s=1;case 1:if($c){$c=false;c=c.$blk();}if(c&&c.$blk!==undefined){break s;}$s=2;case 2:return c;}return;}if($f===undefined){$f={$blk:$ptrType(K).prototype.String};}$f.$ptr=$ptr;$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};N=function(b,c){var $ptr,b,c,d,e;c.$set(b);return(d=c,new BN(function(){return(e=d.$get(),new M(e.$high,e.$low));},function($v){d.$set(new $Int64($v.$high,$v.$low));},d.$target));};$ptrType(M).prototype.Set=function(b){var $ptr,b,c,d,e,f;c=this;d=F.ParseInt(b,0,64);e=d[0];f=d[1];c.$set(new M(e.$high,e.$low));return f;};$ptrType(M).prototype.Get=function(){var $ptr,b,c;b=this;return(c=b.$get(),new $Int64(c.$high,c.$low));};$ptrType(M).prototype.String=function(){var $ptr,b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$ptr=$f.$ptr;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=this;c=B.Sprintf("%v"Line truncated
$packages["runtime/debug"]=(function(){var $pkg={},$init,D,A,B,C;D=$packages["os"];A=$packages["runtime"];B=$packages["sort"];C=$packages["time"];$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=D.$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=C.$init();$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}}return;}if($f===undefined){$f={$blk:$init};}$f.$s=$s;$f.$r=$r;return $f;};$pkg.$init=$init;return $pkg;})();
$packages["runtime/pprof"]=(function(){var $pkg={},$init,A,B;A=$packages["io"];B=$packages["sync"];$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=B.$init();$s=2;case 2:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}}return;}if($f===undefined){$f={$blk:$init};}$f.$s=$s;$f.$r=$r;return $f;};$pkg.$init=$init;return $pkg;})();
$packages["runtime/trace"]=(function(){var $pkg={},$init,A,B;A=$packages["io"];B=$packages["runtime"];$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=B.$init();$s=2;case 2:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}}return;}if($f===undefined){$f={$blk:$init};}$f.$s=$s;$f.$r=$r;return $f;};$pkg.$init=$init;return $pkg;})();
$packages["testing"]=(function(){var $pkg={},$init,H,B,C,E,I,D,A,K,L,M,N,J,F,G,P,Q,R,AP,AQ,AR,AS,AT,AU,AV,AW,AX,AY,AZ,BA,BB,BC,BD,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r;H=$packages["bytes"];B=$packages["flag"];C=$packages["fmt"];E=$packages["github.com/gopherjs/gopherjs/nosync"];I=$packages["io"];D=$packages["os"];A=$packages["runtime"];K=$packages["runtime/debug"];L=$packages["runtime/pprof"];M=$packages["runtime/trace"];N=$packages["strconv"];J=$packages["strings"];F=$packages["sync/atomic"];G=$packages["time"];$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=H.$init();$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=B.$init();$s=2;case 2:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=C.$init();$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=E.$init();$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=I.$init();$s=5;case 5:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=D.$init();$s=6;case 6:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=A.$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=L.$init();$s=9;case 9:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=M.$init();$s=10;case 10:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=N.$init();$s=11;case 11:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=J.$init();$s=12;case 12:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=F.$init();$s=13;case 13:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=G.$init();$s=14;case 14:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}a=B.String("test.bench","","regular expression to select benchmarks to run");$s=15;case 15:if($c){$c=false;a=a.$blk();}if(a&&a.$blk!==undefined){break s;}P=a;b=B.Duration("test.benchtime",new G.Duration(0,1000000000),"approximate run time for each benchmark");$s=16;case 16:if($c){$c=false;b=b.$blk();}if(b&&b.$blk!==undefined){break s;}Q=b;c=B.Bool("test.benchmem",false,"print memory allocations for benchmarks");$s=17;case 17:if($c){$c=false;c=c.$blk();}if(c&&c.$blk!==undefined){break s;}R=c;d=B.Bool("test.short",false,"run smaller test suite to save time");$s=18;case 18:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}AP=d;e=B.String("test.outputdir","","directory in which to write profiles");$s=19;case 19:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}AQ=e;f=B.Bool("test.v",false,"verbose: print additional output");$s=20;case 20:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}AR=f;g=B.Uint("test.count",1,"run tests and benchmarks `n` times");$s=21;case 21:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}AS=g;h=B.String("test.coverprofile","","write a coverage profile to the named file after execution");$s=22;case 22:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}AT=h;i=B.String("test.run","","regular expression to select tests and examples to run");$s=23;case 23:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}AU=i;j=B.String("test.memprofile","","write a memory profile to the named file after execution");$s=24;case 24:if($c){$c=false;j=j.$blk();}if(j&&j.$blk!==undefined){break s;}AV=j;k=B.Int("test.memprofilerate",0,"if >=0, sets runtime.MemProfileRate");$s=25;case 25:if($c){$c=false;k=k.$blk();}if(k&&k.$blk!==undefined){break s;}AW=k;l=B.String("test.cpuprofile","","write a cpu profile to the named file during execution");$s=26;case 26:if($c){$c=false;l=l.$blk();}if(l&&l.$blk!==undefined){break s;}AX=l;m=B.String("test.blockprofile","","write a goroutine blocking profile to the named file after execution");$s=27;case 27:if($c){$c=false;m=m.$blk();}if(m&&m.$blk!==undefined){break s;}AY=m;n=B.Int("test.blockprofilerate",1,"if >= 0, calls runtime.SetBlockProfileRate()");$s=28;case 28:if($c){$c=false;n=n.$blk();}if(n&&n.$blk!==undefined){break s;}AZ=n;o=B.String("test.trace","","write an execution trace to the named file after execution");$s=29;case 29:if($c){$c=false;o=o.$blk();}if(o&&o.$blk!==undefined){break s;}BA=o;p=B.Duration("test.timeout",new G.Duration(0,0),"if positive, sets an aggregate time limit for all tests");$s=30;case 30:if($c){$c=false;p=p.$blk();}if(p&&p.$blk!==undefined){break s;}BB=p;q=B.String("test.cpu","","comma-separated list of number of CPUs to use for each test");$s=31;case 31:if($c){$c=false;q=q.$blk();}if(q&&q.$blk!==undefined){break s;}BC=q;r=B.Int("test.parallel",A.GOMAXPROCS(0),"maximum test parallelism");$s=32;case 32:if($c){$c=false;r=r.$blk();}if(r&&r.$blk!==undefined){break s;}BD=r;}return;}if($f===undefined){$f={$blk:$init};}$f.$s=Line truncated
$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,B,C,D,E,F,P,Q,M,G,H,N,I,O,A,J,K,L,X,AK,AL,AM,AO,AQ,AU,BJ,BP,BR,BU,BW,BY,CA,CF,CG,CI,CJ,CY,CZ,ER,ET,EU,EV,EW,EX,EY,EZ,FA,FB,FC,FD,FG,FH,FI,FJ,FN,FS,FT,FV,FW,FX,FY,FZ,GA,GB,GC,GD,GE,AA,AD,AP,AV,AY,AZ,BK,BL,CM,a,b,Y,AH,AT,AW,AX,BA,BB,BC,BD,BE,BF,BG,BH,BI,BM,BN,BO,BQ,BS,BT,BV,BX,BZ,CB,CC,CD,CE,CH,CK,CL,CN,CO,CP,CQ,CR,CT,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,ES;B=$packages["bytes"];C=$packages["encoding"];D=$packages["encoding/base64"];E=$packages["errors"];F=$packages["fmt"];P=$packages["github.com/gopherjs/gopherjs/nosync"];Q=$packages["io"];M=$packages["math"];G=$packages["reflect"];H=$packages["runtime"];N=$packages["sort"];I=$packages["strconv"];O=$packages["strings"];A=$packages["testing"];J=$packages["unicode"];K=$packages["unicode/utf16"];L=$packages["unicode/utf8"];X=$pkg.Number=$newType(8,$kindString,"json.Number","Number","encoding/json",null);AK=$pkg.Marshaler=$newType(8,$kindInterface,"json.Marshaler","Marshaler","encoding/json",null);AL=$pkg.UnsupportedTypeError=$newType(0,$kindStruct,"json.UnsupportedTypeError","UnsupportedTypeError","encoding/json",function(Type_){this.$val=this;if(arguments.length===0){this.Type=$ifaceNil;return;}this.Type=Type_;});AM=$pkg.UnsupportedValueError=$newType(0,$kindStruct,"json.UnsupportedValueError","UnsupportedValueError","encoding/json",function(Value_,Str_){this.$val=this;if(arguments.length===0){this.Value=new G.Value.ptr(FD.nil,0,0);this.Str="";return;}this.Value=Value_;this.Str=Str_;});AO=$pkg.MarshalerError=$newType(0,$kindStruct,"json.MarshalerError","MarshalerError","encoding/json",function(Type_,Err_){this.$val=this;if(arguments.length===0){this.Type=$ifaceNil;this.Err=$ifaceNil;return;}this.Type=Type_;this.Err=Err_;});AQ=$pkg.encodeState=$newType(0,$kindStruct,"json.encodeState","encodeState","encoding/json",function(Buffer_,scratch_){this.$val=this;if(arguments.length===0){this.Buffer=new B.Buffer.ptr(EZ.nil,0,FG.zero(),FH.zero(),0);this.scratch=FH.zero();return;}this.Buffer=Buffer_;this.scratch=scratch_;});AU=$pkg.encoderFunc=$newType(4,$kindFunc,"json.encoderFunc","encoderFunc","encoding/json",null);BJ=$pkg.floatEncoder=$newType(4,$kindInt,"json.floatEncoder","floatEncoder","encoding/json",null);BP=$pkg.structEncoder=$newType(0,$kindStruct,"json.structEncoder","structEncoder","encoding/json",function(fields_,fieldEncs_){this.$val=this;if(arguments.length===0){this.fields=EW.nil;this.fieldEncs=FJ.nil;return;}this.fields=fields_;this.fieldEncs=fieldEncs_;});BR=$pkg.mapEncoder=$newType(0,$kindStruct,"json.mapEncoder","mapEncoder","encoding/json",function(elemEnc_){this.$val=this;if(arguments.length===0){this.elemEnc=$throwNilPointerError;return;}this.elemEnc=elemEnc_;});BU=$pkg.sliceEncoder=$newType(0,$kindStruct,"json.sliceEncoder","sliceEncoder","encoding/json",function(arrayEnc_){this.$val=this;if(arguments.length===0){this.arrayEnc=$throwNilPointerError;return;}this.arrayEnc=arrayEnc_;});BW=$pkg.arrayEncoder=$newType(0,$kindStruct,"json.arrayEncoder","arrayEncoder","encoding/json",function(elemEnc_){this.$val=this;if(arguments.length===0){this.elemEnc=$throwNilPointerError;return;}this.elemEnc=elemEnc_;});BY=$pkg.ptrEncoder=$newType(0,$kindStruct,"json.ptrEncoder","ptrEncoder","encoding/json",function(elemEnc_){this.$val=this;if(arguments.length===0){this.elemEnc=$throwNilPointerError;return;}this.elemEnc=elemEnc_;});CA=$pkg.condAddrEncoder=$newType(0,$kindStruct,"json.condAddrEncoder","condAddrEncoder","encoding/json",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.stringValues=$newType(12,$kindSlice,"json.stringValues","stringValues","encoding/json",null);CG=$pkg.field=$newType(0,$kindStruct,"json.field","field","encoding/json",function(name_,nameBytes_,equalFold_,tag_,index_,typ_,omitEmpty_,quoted_){this.$val=this;if(arguments.length===0){this.name="";this.nameBytes=EZ.nil;this.equalFold=$throwNilPointerError;this.tag=false;this.index=FC.nil;this.typ=$ifaceNil;this.omitEmpty=false;this.quoted=false;return;}this.name=name_;this.nameBytes=nameBytes_;this.equalFold=equalFold_;this.tag=tag_;this.index=index_;this.typ=typ_;this.omitEmpty=omitEmpty_;this.quoted=quoted_;});CI=$pkg.byName=$newType(12,$kindSlice,"json.byName","byName","encoding/json",null);CJ=$pkg.byIndex=$newType(12,$kindSlice,"json.byIndex","byIndex","encoding/json",null);CY=$pkg.SyntaxError=$newType(0,$kindStruct,"json.SyntaxError","SyntaxError","encoding/json",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_;});CZ=$pkg.scanner=$newType(0,$kindStruct,"json.scanner","scanner","encoding/json",function(step_,endTop_,parseState_,err_,redo_,redoCode_,redoState_,bytes_){this.$val=this;if(arguments.length===0){this.step=$Line truncated
$packages["github.com/ZiRo-/cuckgo/cuckoo"]=(function(){var $pkg={},$init,A,B,C,H,I,M,N,O,P,R,S,T,D,E,F,G,K;A=$packages["crypto/sha256"];B=$packages["encoding/json"];C=$pkg.Cuckoo=$newType(0,$kindStruct,"cuckoo.Cuckoo","Cuckoo","github.com/ZiRo-/cuckgo/cuckoo",function(v_){this.$val=this;if(arguments.length===0){this.v=N.zero();return;}this.v=v_;});H=$pkg.Edge=$newType(0,$kindStruct,"cuckoo.Edge","Edge","github.com/ZiRo-/cuckgo/cuckoo",function(U_,V_){this.$val=this;if(arguments.length===0){this.U=new $Uint64(0,0);this.V=new $Uint64(0,0);return;}this.U=U_;this.V=V_;});I=$pkg.CuckooJSON=$newType(0,$kindStruct,"cuckoo.CuckooJSON","CuckooJSON","github.com/ZiRo-/cuckgo/cuckoo",function(Parameter_,InputData_,Cycle_){this.$val=this;if(arguments.length===0){this.Parameter=false;this.InputData=P.nil;this.Cycle=O.nil;return;}this.Parameter=Parameter_;this.InputData=InputData_;this.Cycle=Cycle_;});M=$arrayType($Uint8,32);N=$arrayType($Uint64,4);O=$sliceType($Uint64);P=$sliceType($Uint8);R=$ptrType(H);S=$ptrType(C);T=$mapType($String,$Uint64);D=function(a){var $ptr,a,b;return(b=new $Uint64(0,a),new $Uint64(b.$high&0,(b.$low&255)>>>0));};E=function(a,b){var $ptr,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w;a=$clone(a,M);return(c=(d=(e=(f=(g=(h=(i=D(((b<0||b>=a.length)?$throwRuntimeError("index out of range"):a[b])),j=$shiftLeft64(D((k=b+1>>0,((k<0||k>=a.length)?$throwRuntimeError("index out of range"):a[k]))),8),new $Uint64(i.$high|j.$high,(i.$low|j.$low)>>>0)),l=$shiftLeft64(D((m=b+2>>0,((m<0||m>=a.length)?$throwRuntimeError("index out of range"):a[m]))),16),new $Uint64(h.$high|l.$high,(h.$low|l.$low)>>>0)),n=$shiftLeft64(D((o=b+3>>0,((o<0||o>=a.length)?$throwRuntimeError("index out of range"):a[o]))),24),new $Uint64(g.$high|n.$high,(g.$low|n.$low)>>>0)),p=$shiftLeft64(D((q=b+4>>0,((q<0||q>=a.length)?$throwRuntimeError("index out of range"):a[q]))),32),new $Uint64(f.$high|p.$high,(f.$low|p.$low)>>>0)),r=$shiftLeft64(D((s=b+5>>0,((s<0||s>=a.length)?$throwRuntimeError("index out of range"):a[s]))),40),new $Uint64(e.$high|r.$high,(e.$low|r.$low)>>>0)),t=$shiftLeft64(D((u=b+6>>0,((u<0||u>=a.length)?$throwRuntimeError("index out of range"):a[u]))),48),new $Uint64(d.$high|t.$high,(d.$low|t.$low)>>>0)),v=$shiftLeft64(D((w=b+7>>0,((w<0||w>=a.length)?$throwRuntimeError("index out of range"):a[w]))),56),new $Uint64(c.$high|v.$high,(c.$low|v.$low)>>>0));};F=function(a){var $ptr,a,b;b=$clone(A.Sum256(a),M);return G(b);};$pkg.NewCuckoo=F;G=function(a){var $ptr,a,b,c,d;a=$clone(a,M);b=new C.ptr(N.zero());c=E(a,0);d=E(a,8);b.v[0]=new $Uint64(c.$high^1936682341,(c.$low^1886610805)>>>0);b.v[1]=new $Uint64(d.$high^1685025377,(d.$low^1852075885)>>>0);b.v[2]=new $Uint64(c.$high^1819895653,(c.$low^1852142177)>>>0);b.v[3]=new $Uint64(d.$high^1952801890,(d.$low^2037671283)>>>0);return b;};$pkg.NewCuckooSHA=G;H.ptr.prototype.HashCode=function(){var $ptr,a;a=this;return((a.U.$low>>0)^(a.V.$low>>0))>>0;};H.prototype.HashCode=function(){return this.$val.HashCode();};C.ptr.prototype.Sipedge=function(a){var $ptr,a,b;b=this;return new H.ptr(b.Sipnode(a,0),b.Sipnode(a,1));};C.prototype.Sipedge=function(a){return this.$val.Sipedge(a);};C.ptr.prototype.siphash24=function(a){var $ptr,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,bw,bx,by,bz,c,ca,cb,cc,cd,ce,cf,cg,ch,ci,cj,ck,cl,cm,cn,co,cp,cq,cr,cs,ct,cu,cv,cw,cx,cy,cz,d,da,db,dc,dd,de,df,dg,dh,di,dj,dk,dl,dm,dn,dp,dq,dr,ds,dt,du,dv,dw,dx,dy,dz,e,ea,eb,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z;b=this;c=b.v[0];d=b.v[1];e=b.v[2];g=(f=b.v[3],new $Uint64(f.$high^a.$high,(f.$low^a.$low)>>>0));c=(h=d,new $Uint64(c.$high+h.$high,c.$low+h.$low));e=(i=g,new $Uint64(e.$high+i.$high,e.$low+i.$low));d=(j=$shiftLeft64(d,13),k=$shiftRightUint64(d,51),new $Uint64(j.$high|k.$high,(j.$low|k.$low)>>>0));g=(l=$shiftLeft64(g,16),m=$shiftRightUint64(g,48),new $Uint64(l.$high|m.$high,(l.$low|m.$low)>>>0));d=(n=c,new $Uint64(d.$high^n.$high,(d.$low^n.$low)>>>0));g=(o=e,new $Uint64(g.$high^o.$high,(g.$low^o.$low)>>>0));c=(p=$shiftLeft64(c,32),q=$shiftRightUint64(c,32),new $Uint64(p.$high|q.$high,(p.$low|q.$low)>>>0));e=(r=d,new $Uint64(e.$high+r.$high,e.$low+r.$low));c=(s=g,new $Uint64(c.$high+s.$high,c.$low+s.$low));d=(t=$shiftLeft64(d,17),u=$shiftRightUint64(d,47),new $Uint64(t.$high|u.$high,(t.$low|u.$low)>>>0));g=(v=$shiftLeft64(g,21),w=$shiftRightUint64(g,43),new $Uint64(v.$high|w.$high,(v.$low|w.$low)>>>0));d=(x=e,new $Uint64(d.$high^x.$high,(d.$low^x.$low)>>>0));g=(y=c,new $Uint64(g.$high^y.$high,(g.$low^y.$low)>>>0));e=(z=$shiftLeft64(e,32),aa=$shiftRightUint64(e,32),new $Uint64(z.$high|aa.$high,(z.$low|aa.$low)>>>0));c=(ab=d,new $Uint64(c.$high+ab.$high,c.$low+ab.$low));e=(ac=g,new $Uint64(e.$high+ac.$high,e.$low+ac.$low));d=(ad=$shiftLeft64(d,13),ae=$shiftRightUint64(d,51),new $Uint64(ad.$high|ae.$high,(ad.$low|ae.$low)>>>0));g=(af=$shiftLeft64(g,16),ag=$shiftRightUint64(g,48),new $Uint64(af.$high|ag.$high,(af.$lLine truncated
$packages["github.com/ZiRo-/cuckgo/miner_js"]=(function(){var $pkg={},$init,A,B,C,D,E,F,M,N,O,P,Q,R,S,T,U,V,G,H,I,J,K,L;A=$packages["crypto/rand"];B=$packages["crypto/sha256"];C=$packages["encoding/base64"];D=$packages["github.com/ZiRo-/cuckgo/cuckoo"];E=$packages["github.com/gopherjs/gopherjs/js"];F=$pkg.CuckooSolve=$newType(0,$kindStruct,"main.CuckooSolve","CuckooSolve","github.com/ZiRo-/cuckgo/miner_js",function(graph_,easiness_,cuckoo_,sols_,nsols_,nthreads_){this.$val=this;if(arguments.length===0){this.graph=M.nil;this.easiness=0;this.cuckoo=N.nil;this.sols=O.nil;this.nsols=0;this.nthreads=0;return;}this.graph=graph_;this.easiness=easiness_;this.cuckoo=cuckoo_;this.sols=sols_;this.nsols=nsols_;this.nthreads=nthreads_;});M=$ptrType(D.Cuckoo);N=$sliceType($Int);O=$sliceType(N);P=$ptrType(D.Edge);Q=$sliceType($Uint8);R=$arrayType($Uint8,32);S=$sliceType($Uint64);T=$funcType([$Float64],[$String],false);U=$mapType($String,$emptyInterface);V=$ptrType(F);G=function(a,b,c,d){var $ptr,a,b,c,d,e,f,g,h,i;e=new F.ptr(D.NewCuckoo(a),b,$makeSlice(N,1048577),$makeSlice(O,($imul(2,c))),0,1);f=e.sols;g=0;while(true){if(!(g<f.$length)){break;}h=g;(i=e.sols,((h<0||h>=i.$length)?$throwRuntimeError("index out of range"):i.$array[i.$offset+h]=$makeSlice(N,42)));g++;}return e;};$pkg.NewCuckooSolve=G;F.ptr.prototype.path=function(a,b){var $ptr,a,b,c,d,e,f;c=this;d=0;d=0;while(true){if(!(!((a===0)))){break;}d=d+(1)>>0;if(d>=4096){while(true){if(!(!((d===0))&&!(((e=d-1>>0,((e<0||e>=b.$length)?$throwRuntimeError("index out of range"):b.$array[b.$offset+e]))===a)))){break;}d=d-(1)>>0;}if(d<0){}else{}return-1;}((d<0||d>=b.$length)?$throwRuntimeError("index out of range"):b.$array[b.$offset+d]=a);a=(f=c.cuckoo,((a<0||a>=f.$length)?$throwRuntimeError("index out of range"):f.$array[f.$offset+a]));}return d;};F.prototype.path=function(a,b){return this.$val.path(a,b);};F.ptr.prototype.solution=function(a,b,c,d){var $ptr,a,aa,ab,ac,ad,ae,af,ag,ah,ai,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;e=this;f={};g=0;i=new D.Edge.ptr(new $Uint64(0,(0>=a.$length?$throwRuntimeError("index out of range"):a.$array[a.$offset+0])),(h=new $Uint64(0,(0>=c.$length?$throwRuntimeError("index out of range"):c.$array[c.$offset+0])),new $Uint64(h.$high-0,h.$low-524288)));j=i.HashCode();(f||$throwRuntimeError("assignment to entry in nil map"))[$Int.keyFor(j)]={k:j,v:i};while(true){if(!(!((b===0)))){break;}b=b-(1)>>0;n=new D.Edge.ptr(new $Uint64(0,(k=(((b+1>>0))&~1)>>0,((k<0||k>=a.$length)?$throwRuntimeError("index out of range"):a.$array[a.$offset+k]))),(l=new $Uint64(0,(m=b|1,((m<0||m>=a.$length)?$throwRuntimeError("index out of range"):a.$array[a.$offset+m]))),new $Uint64(l.$high-0,l.$low-524288)));o=(p=f[$Int.keyFor(n.HashCode())],p!==undefined?[p.v,true]:[P.nil,false]);q=o[1];if(!q){r=n.HashCode();(f||$throwRuntimeError("assignment to entry in nil map"))[$Int.keyFor(r)]={k:r,v:n};}}while(true){if(!(!((d===0)))){break;}d=d-(1)>>0;v=new D.Edge.ptr(new $Uint64(0,(s=d|1,((s<0||s>=c.$length)?$throwRuntimeError("index out of range"):c.$array[c.$offset+s]))),(t=new $Uint64(0,(u=(((d+1>>0))&~1)>>0,((u<0||u>=c.$length)?$throwRuntimeError("index out of range"):c.$array[c.$offset+u]))),new $Uint64(t.$high-0,t.$low-524288)));w=(x=f[$Int.keyFor(v.HashCode())],x!==undefined?[x.v,true]:[P.nil,false]);y=w[1];if(!y){z=v.HashCode();(f||$throwRuntimeError("assignment to entry in nil map"))[$Int.keyFor(z)]={k:z,v:v};}}g=0;aa=0;while(true){if(!(aa<e.easiness)){break;}ab=e.graph.Sipedge(new $Uint64(0,aa));ac=H(f,ab);ad=ac[0];ae=ac[1];if(ad){(af=(ag=e.sols,ah=e.nsols,((ah<0||ah>=ag.$length)?$throwRuntimeError("index out of range"):ag.$array[ag.$offset+ah])),((g<0||g>=af.$length)?$throwRuntimeError("index out of range"):af.$array[af.$offset+g]=aa));g=g+(1)>>0;delete f[$Int.keyFor(ae)];}aa=aa+(1)>>0;}if((ai=new $Uint64(0,g),(ai.$high===0&&ai.$low===42))){e.nsols=e.nsols+(1)>>0;}else{}};F.prototype.solution=function(a,b,c,d){return this.$val.solution(a,b,c,d);};H=function(a,b){var $ptr,a,b,c,d,e,f,g,h,i,j,k,l,m;c=b.HashCode();d=a;e=0;f=$keys(d);while(true){if(!(e<f.length)){break;}g=d[f[e]];if(g===undefined){e++;continue;}h=g.k;i=g.v;if((h===c)&&(j=i.U,k=b.U,(j.$high===k.$high&&j.$low===k.$low))&&(l=i.V,m=b.V,(l.$high===m.$high&&l.$low===m.$low))){return[true,h];}e++;}return[false,0];};I=function(a,b){var $ptr,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v;c=b.cuckoo;d=$makeSlice(N,4096);e=$makeSlice(N,4096);f=a;while(true){if(!(f<b.easiness)){break;}(0>=d.$length?$throwRuntimeError("index out of range"):d.$array[d.$offset+0]=(b.graph.Sipnode(new $Uint64(0,f),0).$low>>0));h=(g=(0>=d.$length?$throwRuntimeError("index out of range"):d.$array[d.$offset+0]),((g<0||g>=c.$length)?$throwRuntimeError("index out of range"):c.$array[c.$offset+g]));(0>=e.$length?$throwRuntimeError("index out of range"):e.$array[e.$offset+0]=((i=b.graph.Sipnode(new $Uint64(0,f),1),new $Uint64(0+i.$high,524288+i.$low)).$low>>0));k=(j=(0>=e.$length?$throwRuntimeError("index out of range"):e.$array[e.$offset+Line truncated
$synthesizeMethods();
var $mainPkg = $packages["github.com/ZiRo-/cuckgo/miner_js"];
$packages["runtime"].$init();
$go($mainPkg.$init, [], true);
$flushConsole();
}).call(this);
//# sourceMappingURL=miner_js.js.map
+6
View File
@@ -0,0 +1,6 @@
importScripts('./miner-js.js');
onmessage = function(e) {
var s = cuckoo["mine_cuckoo"](e.data);
postMessage(s);
}
+4
View File
@@ -619,6 +619,10 @@ function nntpchan_buildpost(parent,j){var post=document.createElement("div");if(
parent.appendChild(post);}
/* local file: ./contrib/js/banner.js */
var banner_count=3;function nntpchan_inject_banners(elem,prefix){var n=Math.floor(Math.random()*banner_count);var banner=prefix+"static/banner_"+n+".jpg";var e=document.createElement("img");e.src=banner;e.id="nntpchan_banner";elem.appendChild(e);}
/* local file: ./contrib/js/cuckoo_miner.js */
onready(function(){document.getElementById("start_miner").onclick=function(){var btn=document.getElementById("start_miner");var label=btn.value;btn.value="..."
btn.disabled=true;var worker=new Worker("./static/mineworker.js");worker.onmessage=function(e){miner_cb(e.data);btn.value=label;btn.disabled=false;worker.terminate();}
worker.postMessage(55.0);};});function miner_cb(s){document.getElementById("miner_result").value=s;}
/* local file: ./contrib/js/expand-image.js */
function filenameIsImage(fname){return/\.(gif|jpeg|jpg|png|webp)/.test(fname.toLowerCase());}
function setupInlineImage(thumb,url){if(thumb.inlineIsSetUp)return;thumb.inlineIsSetUp=true;var img=thumb.querySelector("img.thumbnail");var expanded=false;var oldurl=img.src;thumb.onclick=function(){if(expanded){img.setAttribute("class","thumbnail");img.src=oldurl;expanded=false;}else{img.setAttribute("class","expanded-thumbnail");img.src=url;expanded=true;}
@@ -77,6 +77,14 @@
<input type="text" name="captcha" autocomplete="off" id="captcha_solution" />
</td>
</tr>
<tr>
<th>
{{#i18n.Translations}}{{cuckoo_pow}}{{/i18n.Translations}}
</th>
<td>
<input type="text" name="pow" autocomplete="off" id="miner_result" /><input id="start_miner" type="button" value="{{#i18n.Translations}}{{start_mining}}{{/i18n.Translations}}"/>
</td>
</tr>
</tbody>
</table>
</div>
+3
View File
@@ -171,3 +171,6 @@ secretkey_name=Secret key
key_install_title=A new keypair has been generated for you. Please keep it safe and don't share it with anyone, as this is used to login to the mod panel
#'
cuckoo_pow=Proof of Work
start_mining=Mine!