wallet-core/lib/emscripten/libwrapper.js

25 lines
1.3 MiB
JavaScript
Raw Normal View History

2016-04-05 14:52:59 +02:00
var Module;if(!Module)Module=(typeof Module!=="undefined"?Module:null)||{};var moduleOverrides={};for(var key in Module){if(Module.hasOwnProperty(key)){moduleOverrides[key]=Module[key]}}var ENVIRONMENT_IS_WEB=false;var ENVIRONMENT_IS_WORKER=false;var ENVIRONMENT_IS_NODE=false;var ENVIRONMENT_IS_SHELL=false;if(Module["ENVIRONMENT"]){if(Module["ENVIRONMENT"]==="WEB"){ENVIRONMENT_IS_WEB=true}else if(Module["ENVIRONMENT"]==="WORKER"){ENVIRONMENT_IS_WORKER=true}else if(Module["ENVIRONMENT"]==="NODE"){ENVIRONMENT_IS_NODE=true}else if(Module["ENVIRONMENT"]==="SHELL"){ENVIRONMENT_IS_SHELL=true}else{throw new Error("The provided Module['ENVIRONMENT'] value is not valid. It must be one of: WEB|WORKER|NODE|SHELL.")}}else{ENVIRONMENT_IS_WEB=typeof window==="object";ENVIRONMENT_IS_WORKER=typeof importScripts==="function";ENVIRONMENT_IS_NODE=typeof process==="object"&&typeof require==="function"&&!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_WORKER;ENVIRONMENT_IS_SHELL=!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_NODE&&!ENVIRONMENT_IS_WORKER}if(ENVIRONMENT_IS_NODE){if(!Module["print"])Module["print"]=console.log;if(!Module["printErr"])Module["printErr"]=console.warn;var nodeFS;var nodePath;Module["read"]=function read(filename,binary){if(!nodeFS)nodeFS=require("fs");if(!nodePath)nodePath=require("path");filename=nodePath["normalize"](filename);var ret=nodeFS["readFileSync"](filename);if(!ret&&filename!=nodePath["resolve"](filename)){filename=path.join(__dirname,"..","src",filename);ret=nodeFS["readFileSync"](filename)}if(ret&&!binary)ret=ret.toString();return ret};Module["readBinary"]=function readBinary(filename){var ret=Module["read"](filename,true);if(!ret.buffer){ret=new Uint8Array(ret)}assert(ret.buffer);return ret};Module["load"]=function load(f){globalEval(read(f))};if(!Module["thisProgram"]){if(process["argv"].length>1){Module["thisProgram"]=process["argv"][1].replace(/\\/g,"/")}else{Module["thisProgram"]="unknown-program"}}Module["arguments"]=process["argv"].slice(2);if(typeof module!=="undefined"){module["exports"]=Module}process["on"]("uncaughtException",(function(ex){if(!(ex instanceof ExitStatus)){throw ex}}));Module["inspect"]=(function(){return"[Emscripten Module object]"})}else if(ENVIRONMENT_IS_SHELL){if(!Module["print"])Module["print"]=print;if(typeof printErr!="undefined")Module["printErr"]=printErr;if(typeof read!="undefined"){Module["read"]=read}else{Module["read"]=function read(){throw"no read() available (jsc?)"}}Module["readBinary"]=function readBinary(f){if(typeof readbuffer==="function"){return new Uint8Array(readbuffer(f))}var data=read(f,"binary");assert(typeof data==="object");return data};if(typeof scriptArgs!="undefined"){Module["arguments"]=scriptArgs}else if(typeof arguments!="undefined"){Module["arguments"]=arguments}}else if(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER){Module["read"]=function read(url){var xhr=new XMLHttpRequest;xhr.open("GET",url,false);xhr.send(null);return xhr.responseText};Module["readAsync"]=function readAsync(url,onload,onerror){var xhr=new XMLHttpRequest;xhr.open("GET",url,true);xhr.responseType="arraybuffer";xhr.onload=function xhr_onload(){if(xhr.status==200||xhr.status==0&&xhr.response){onload(xhr.response)}else{onerror()}};xhr.onerror=onerror;xhr.send(null)};if(typeof arguments!="undefined"){Module["arguments"]=arguments}if(typeof console!=="undefined"){if(!Module["print"])Module["print"]=function print(x){console.log(x)};if(!Module["printErr"])Module["printErr"]=function printErr(x){console.warn(x)}}else{var TRY_USE_DUMP=false;if(!Module["print"])Module["print"]=TRY_USE_DUMP&&typeof dump!=="undefined"?(function(x){dump(x)}):(function(x){})}if(ENVIRONMENT_IS_WORKER){Module["load"]=importScripts}if(typeof Module["setWindowTitle"]==="undefined"){Module["setWindowTitle"]=(function(title){document.title=title})}}else{throw"Unknown runtime environment. Where are we?"}function globalEval(x){abort("NO_DYNAMIC_EXECUTION=1 was set, cannot eval")}if(!Module["load"]&&Module["read"]){Module["load"]=function load(f){globalEval(Module["read"](f))}}if(!Module["print"]){Module["print"]=(function(){})}if(!M
var asm=(function(global,env,buffer) {
"use asm";var a=new global.Int8Array(buffer);var b=new global.Int16Array(buffer);var c=new global.Int32Array(buffer);var d=new global.Uint8Array(buffer);var e=new global.Uint16Array(buffer);var f=new global.Uint32Array(buffer);var g=new global.Float32Array(buffer);var h=new global.Float64Array(buffer);var i=env.STACKTOP|0;var j=env.STACK_MAX|0;var k=env.tempDoublePtr|0;var l=env.ABORT|0;var m=env.cttz_i8|0;var n=0;var o=0;var p=0;var q=0;var r=global.NaN,s=global.Infinity;var t=0,u=0,v=0,w=0,x=0.0,y=0,z=0,A=0,B=0.0;var C=0;var D=0;var E=0;var F=0;var G=0;var H=0;var I=0;var J=0;var K=0;var L=0;var M=global.Math.floor;var N=global.Math.abs;var O=global.Math.sqrt;var P=global.Math.pow;var Q=global.Math.cos;var R=global.Math.sin;var S=global.Math.tan;var T=global.Math.acos;var U=global.Math.asin;var V=global.Math.atan;var W=global.Math.atan2;var X=global.Math.exp;var Y=global.Math.log;var Z=global.Math.ceil;var _=global.Math.imul;var $=global.Math.min;var aa=global.Math.clz32;var ba=env.abort;var ca=env.assert;var da=env.nullFunc_iiii;var ea=env.nullFunc_viiiii;var fa=env.nullFunc_vi;var ga=env.nullFunc_vii;var ha=env.nullFunc_ii;var ia=env.nullFunc_viii;var ja=env.nullFunc_v;var ka=env.nullFunc_iiiii;var la=env.nullFunc_viiiiii;var ma=env.nullFunc_iii;var na=env.nullFunc_viiii;var oa=env.invoke_iiii;var pa=env.invoke_viiiii;var qa=env.invoke_vi;var ra=env.invoke_vii;var sa=env.invoke_ii;var ta=env.invoke_viii;var ua=env.invoke_v;var va=env.invoke_iiiii;var wa=env.invoke_viiiiii;var xa=env.invoke_iii;var ya=env.invoke_viiii;var za=env._pthread_cleanup_pop;var Aa=env.___syscall221;var Ba=env._pthread_mutex_init;var Ca=env.___syscall64;var Da=env.___syscall63;var Ea=env._abort;var Fa=env.___syscall202;var Ga=env._pthread_cleanup_push;var Ha=env.___syscall20;var Ia=env._llvm_stackrestore;var Ja=env.___assert_fail;var Ka=env.___buildEnvironment;var La=env.__addDays;var Ma=env._localtime_r;var Na=env._tzset;var Oa=env.___setErrNo;var Pa=env._sbrk;var Qa=env.___syscall192;var Ra=env.___syscall191;var Sa=env.___syscall197;var Ta=env.___syscall195;var Ua=env.___syscall194;var Va=env.___syscall199;var Wa=env._sysconf;var Xa=env._strftime;var Ya=env._clock;var Za=env.__arraySum;var _a=env._emscripten_memcpy_big;var $a=env.___syscall91;var ab=env.___syscall75;var bb=env._pthread_self;var cb=env._pthread_mutex_destroy;var db=env._pthread_mutex_unlock;var eb=env.___syscall77;var fb=env._llvm_stacksave;var gb=env._getenv;var hb=env.___syscall33;var ib=env.___syscall54;var jb=env.___unlock;var kb=env.__isLeapYear;var lb=env.___syscall10;var mb=env.___syscall3;var nb=env.___syscall340;var ob=env.___lock;var pb=env.___syscall6;var qb=env.___syscall5;var rb=env.___syscall4;var sb=env._time;var tb=env._pthread_mutex_lock;var ub=env._gettimeofday;var vb=env.___syscall201;var wb=env._atexit;var xb=env.___syscall140;var yb=env._localtime;var zb=env.___syscall142;var Ab=env.___syscall145;var Bb=env.___syscall146;var Cb=0.0;
// EMSCRIPTEN_START_FUNCS
2016-04-05 14:52:59 +02:00
function Ob(a){a=a|0;var b=0;b=i;i=i+a|0;i=i+15&-16;if((i|0)>=(j|0))ba();return b|0}function Pb(){return i|0}function Qb(a){a=a|0;i=a}function Rb(a,b){a=a|0;b=b|0;i=a;j=b}function Sb(a,b){a=a|0;b=b|0;if(!n){n=a;o=b}}function Tb(b){b=b|0;a[k>>0]=a[b>>0];a[k+1>>0]=a[b+1>>0];a[k+2>>0]=a[b+2>>0];a[k+3>>0]=a[b+3>>0]}function Ub(b){b=b|0;a[k>>0]=a[b>>0];a[k+1>>0]=a[b+1>>0];a[k+2>>0]=a[b+2>>0];a[k+3>>0]=a[b+3>>0];a[k+4>>0]=a[b+4>>0];a[k+5>>0]=a[b+5>>0];a[k+6>>0]=a[b+6>>0];a[k+7>>0]=a[b+7>>0]}function Vb(a){a=a|0;C=a}function Wb(){return C|0}function Xb(){var a=0,b=0,d=0;a=vc(8,19098,45)|0;b=$d()|0;d=a;c[d>>2]=b;c[d+4>>2]=C;return a|0}function Yb(a,b){a=a|0;b=b|0;var c=0;c=vc(64,19098,64)|0;cd(a,b,c);return c|0}function Zb(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;b=i;i=i+32|0;if((i|0)>=(j|0))ba();d=b;e=a;f=c[e>>2]|0;g=c[e+4>>2]|0;e=c[a+8>>2]|0;c[d>>2]=a;c[d+4>>2]=a+12;a=d+8|0;c[a>>2]=f;c[a+4>>2]=g;c[d+16>>2]=e;Cw(19105,d)|0;i=b;return}function _b(a){a=a|0;var b=0;b=vc(32,19098,116)|0;Uc(a,b);return b|0}function $b(a,b){a=a|0;b=b|0;var c=0,d=0;c=vc(64,19098,131)|0;d=(bd(a,b,c)|0)==-1;return (d?0:c)|0}function ac(a){a=a|0;var b=0,c=0;b=vc(32,19098,151)|0;c=(Wc(a,Hv(a)|0,b)|0)==1;return (c?b:0)|0}function bc(a){a=a|0;var b=0,c=0,d=0;b=i;i=i+32|0;if((i|0)>=(j|0))ba();c=b;if((Wc(a,Hv(a)|0,c)|0)!=1){d=0;i=b;return d|0}a=vc(32,19098,173)|0;Sc(c,a);d=a;i=b;return d|0}function cc(a){a=a|0;var b=0;b=vc(32,19098,190)|0;Sc(a,b);return b|0}function dc(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))ba();d=b;c[d>>2]=c[a>>2];c[d+4>>2]=c[a+4>>2];a=Td(d)|0;i=b;return a|0}function ec(a){a=a|0;xc(a,19098,213);return}function fc(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;if((i|0)>=(j|0))ba();d=b;c[d>>2]=gw(8)|0;c[d+4>>2]=gw(1302)|0;e=vc(64,19098,234)|0;_c(a,d,e)|0;i=b;return e|0}function gc(b,c,d){b=b|0;c=c|0;d=d|0;var e=0,f=0;e=d+8|0;f=vc(e,19098,249)|0;Ax(f+8|0,c|0,d|0)|0;d=gw(b)|0;b=f+4|0;a[b>>0]=d;a[b+1>>0]=d>>8;a[b+2>>0]=d>>16;a[b+3>>0]=d>>24;d=gw(e)|0;a[f>>0]=d;a[f+1>>0]=d>>8;a[f+2>>0]=d>>16;a[f+3>>0]=d>>24;return f|0}function hc(a){a=a|0;var b=0,c=0;b=~~+M(+(+(((Hv(a)|0)*5|0)>>>3>>>0)))>>>0;c=vc(b,19098,274)|0;Wd(a,Hv(a)|0,c,b)|0;a=Bd(c,b)|0;xc(c,19098,213);return a|0}function ic(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;if((i|0)>=(j|0))ba();d=b;e=Dd(a,d)|0;a=Vd(c[d>>2]|0,e)|0;xc(c[d>>2]|0,19098,213);i=b;return a|0}function jc(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0;e=i;i=i+16|0;if((i|0)>=(j|0))ba();f=e;g=vc(64,19098,317)|0;h=Hv(a)|0;c[f>>2]=0;c[f+4>>2]=0;k=(jd(g,64,a,h,b,d,f)|0)==1;i=e;return (k?g:0)|0}function kc(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0;e=i;i=i+16|0;if((i|0)>=(j|0))ba();f=e;g=vc(32,19098,342)|0;h=Hv(a)|0;c[f>>2]=0;c[f+4>>2]=0;k=(jd(g,32,a,h,b,d,f)|0)==1;i=e;return (k?g:0)|0}function lc(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0;e=i;i=i+16|0;if((i|0)>=(j|0))ba();f=e;g=vc(64,19098,365)|0;h=Hv(a)|0;c[f>>2]=0;c[f+4>>2]=0;k=(jd(g,64,a,h,b,d,f)|0)==1;i=e;return (k?g:0)|0}function mc(a,b,d,e,f,g,h){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0;k=i;i=i+80|0;if((i|0)>=(j|0))ba();l=k+48|0;m=k+24|0;n=k;if((Lu(h,l)|0)!=1){o=0;i=k;return o|0}if((Lu(h,m)|0)!=1){o=0;i=k;return o|0}if((Lu(h,n)|0)!=1){o=0;i=k;return o|0}h=l;c[h>>2]=a;c[h+4>>2]=b;c[l+8>>2]=f;f=m;c[f>>2]=d;c[f+4>>2]=e;c[m+8>>2]=g;if((Su(n,l,m)|0)!=1){o=0;i=k;return o|0}m=vc(24,19098,413)|0;c[m>>2]=c[n>>2];c[m+4>>2]=c[n+4>>2];c[m+8>>2]=c[n+8>>2];c[m+12>>2]=c[n+12>>2];c[m+16>>2]=c[n+16>>2];c[m+20>>2]=c[n+20>>2];o=m;i=k;return o|0}function nc(a){a=a|0;var b=0;b=vc(64,19098,458)|0;Ad(a,b);return b|0}function oc(a,b){a=a|0;b=b|0;var c=0;c=vc(64,19098,479)|0;_c(a,b,c)|0;return c|0}function pc(a){a=a|0;return kw(d[a>>0]|d[a+1>>0]<<8|d[a+2>>0]<<16|d[a+3>>0]<<24)|0}function qc(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;f=i;i=i+32|0;if((i|0)>=(j|0))ba();g=f;if((Lu(e,g)|0)!=1){h=0;i=f;return h|0}e=g;c[e>>2]=a;c[e+4>>2]=b;c[g+8>>2]=d;d=vc(24,19098,522)|0;c[d>>2]=c[g>>2];c[d+4>>2]=c[g+4>>2];c[d+8>>2]=c[g+8>>2];c[d+12>>2]=c[g+12>>2];c[d+16>>2]=c[g+16>>2];c[d+20>>2]=c[g+20>>2];h=d;i=f;return h|0}function rc(){zw(19142)|0;return}function sc(a){a=a|0;var b=
function Gg(b,f,g,h){b=b|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;k=i;i=i+80|0;if((i|0)>=(j|0))ba();l=k;m=k+48|0;n=k+44|0;o=k+40|0;p=k+36|0;q=k+32|0;r=k+28|0;s=k+24|0;t=k+52|0;u=k+56|0;v=k+20|0;w=k+16|0;x=k+12|0;y=k+8|0;z=k+4|0;c[n>>2]=b;c[o>>2]=f;c[p>>2]=g;c[q>>2]=h;c[v>>2]=0;c[x>>2]=0;c[r>>2]=c[n>>2]|0?c[n>>2]|0:22610;c[s>>2]=c[p>>2];a:while(1){if(!(d[c[r>>2]>>0]|0)){A=55;break}switch(d[c[r>>2]>>0]|0|0){case 3:{c[r>>2]=(c[r>>2]|0)+1;if((c[o>>2]|0)!=1){if(c[x>>2]|0)c[v>>2]=(c[v>>2]|0)+1;c[v>>2]=(c[v>>2]|0)+(c[x>>2]|0)}c[v>>2]=(c[v>>2]|0)+1;if(c[p>>2]|0){if((c[v>>2]|0)>>>0>=(c[q>>2]|0)>>>0){A=10;break a}b:do if((c[o>>2]|0)!=1){if(c[x>>2]|0){n=c[s>>2]|0;c[s>>2]=n+1;a[n>>0]=10}c[w>>2]=0;while(1){if((c[w>>2]|0)>=(c[x>>2]|0))break b;n=c[s>>2]|0;c[s>>2]=n+1;a[n>>0]=32;c[w>>2]=(c[w>>2]|0)+1}}while(0);n=c[s>>2]|0;c[s>>2]=n+1;a[n>>0]=40}c[x>>2]=(c[x>>2]|0)+1;continue a;break}case 4:{c[r>>2]=(c[r>>2]|0)+1;c[v>>2]=(c[v>>2]|0)+1;if(c[p>>2]|0){if((c[v>>2]|0)>>>0>=(c[q>>2]|0)>>>0){A=21;break a}n=c[s>>2]|0;c[s>>2]=n+1;a[n>>0]=41}c[x>>2]=(c[x>>2]|0)+-1;if((d[c[r>>2]>>0]|0|0)==3)continue a;if(!((c[o>>2]|0)!=1?(d[c[r>>2]>>0]|0|0)!=0:0))continue a;c[v>>2]=(c[v>>2]|0)+1;c[v>>2]=(c[v>>2]|0)+(c[x>>2]|0);if(!(c[p>>2]|0))continue a;if((c[v>>2]|0)>>>0>=(c[q>>2]|0)>>>0){A=27;break a}n=c[s>>2]|0;c[s>>2]=n+1;a[n>>0]=10;c[w>>2]=0;while(1){if((c[w>>2]|0)>=(c[x>>2]|0))continue a;n=c[s>>2]|0;c[s>>2]=n+1;a[n>>0]=32;c[w>>2]=(c[w>>2]|0)+1}break}case 1:{c[r>>2]=(c[r>>2]|0)+1;n=c[r>>2]|0;a[t>>0]=a[n>>0]|0;a[t+1>>0]=a[n+1>>0]|0;c[r>>2]=(c[r>>2]|0)+2;if((c[o>>2]|0)==3){n=Hg(c[r>>2]|0,e[t>>1]|0)|0;c[y>>2]=n;switch(n|0){case 1:{c[z>>2]=Ig(c[r>>2]|0,e[t>>1]|0,0)|0;break}case 2:{c[z>>2]=Jg(c[r>>2]|0,e[t>>1]|0,0)|0;break}default:c[z>>2]=Kg(c[r>>2]|0,e[t>>1]|0,0)|0}c[v>>2]=(c[v>>2]|0)+(c[z>>2]|0);if(c[p>>2]|0){if((c[v>>2]|0)>>>0>=(c[q>>2]|0)>>>0){A=38;break a}switch(c[y>>2]|0){case 1:{Ig(c[r>>2]|0,e[t>>1]|0,c[s>>2]|0)|0;break}case 2:{Jg(c[r>>2]|0,e[t>>1]|0,c[s>>2]|0)|0;break}default:Kg(c[r>>2]|0,e[t>>1]|0,c[s>>2]|0)|0}c[s>>2]=(c[s>>2]|0)+(c[z>>2]|0)}if((d[(c[r>>2]|0)+(e[t>>1]|0)>>0]|0|0)!=4?(c[v>>2]=(c[v>>2]|0)+1,c[p>>2]|0):0){if((c[v>>2]|0)>>>0>=(c[q>>2]|0)>>>0){A=47;break a}n=c[s>>2]|0;c[s>>2]=n+1;a[n>>0]=32}}else{c[l>>2]=e[t>>1];bw(u,22637,l)|0;n=Hv(u)|0;c[v>>2]=(c[v>>2]|0)+(n+(e[t>>1]|0));if(c[p>>2]|0){if((c[v>>2]|0)>>>0>=(c[q>>2]|0)>>>0){A=51;break a}c[s>>2]=Uv(c[s>>2]|0,u)|0;Ax(c[s>>2]|0,c[r>>2]|0,e[t>>1]|0|0)|0;c[s>>2]=(c[s>>2]|0)+(e[t>>1]|0)}}c[r>>2]=(c[r>>2]|0)+(e[t>>1]|0);continue a;break}default:{A=54;break a}}}if((A|0)==10){c[m>>2]=0;B=c[m>>2]|0;i=k;return B|0}else if((A|0)==21){c[m>>2]=0;B=c[m>>2]|0;i=k;return B|0}else if((A|0)==27){c[m>>2]=0;B=c[m>>2]|0;i=k;return B|0}else if((A|0)==38){c[m>>2]=0;B=c[m>>2]|0;i=k;return B|0}else if((A|0)==47){c[m>>2]=0;B=c[m>>2]|0;i=k;return B|0}else if((A|0)==51){c[m>>2]=0;B=c[m>>2]|0;i=k;return B|0}else if((A|0)==54)rf(22542,2008,22641);else if((A|0)==55){do if((c[o>>2]|0)!=1?(c[v>>2]=(c[v>>2]|0)+1,c[p>>2]|0):0){if((c[v>>2]|0)>>>0<(c[q>>2]|0)>>>0){A=c[s>>2]|0;c[s>>2]=A+1;a[A>>0]=10;break}c[m>>2]=0;B=c[m>>2]|0;i=k;return B|0}while(0);o=c[v>>2]|0;do if(c[p>>2]|0){if(o>>>0<(c[q>>2]|0)>>>0){A=c[s>>2]|0;c[s>>2]=A+1;a[A>>0]=0;break}c[m>>2]=0;B=c[m>>2]|0;i=k;return B|0}else c[v>>2]=o+1;while(0);c[m>>2]=c[v>>2];B=c[m>>2]|0;i=k;return B|0}return 0}function Hg(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;f=i;i=i+32|0;if((i|0)>=(j|0))ba();g=f+16|0;h=f+12|0;k=f+8|0;l=f+4|0;m=f;c[h>>2]=b;c[k>>2]=e;c[m>>2]=1;if(!(c[k>>2]|0)){c[g>>2]=1;n=c[g>>2]|0;i=f;return n|0}if(d[c[h>>2]>>0]&128|0){c[g>>2]=0;n=c[g>>2]|0;i=f;return n|0}if(!(a[c[h>>2]>>0]|0)){c[g>>2]=0;n=c[g>>2]|0;i=f;return n|0}c[l>>2]=c[h>>2];while(1){if(!(c[k>>2]|0))break;if((d[c[l>>2]>>0]|0)>=32){if((d[c[l>>2]>>0]|0)>=127?(d[c[l>>2]>>0]|0)<=160:0)o=12}else o=12;if((o|0)==12?(o=0,(pw(22613,d[c[l>>2]>>0]|0)|0)==0):0){o=13;break}do if(c[m>>2]|0){if((d[c[l>>2]>>0]|0)>=65?(d[c[l>>2]>>0]|0)<=90:0)break;if((d[c[l>>2]>>0]|0)>=97?(d[c[l>>2]>>0]|0)<=122:0)break;if((d[c[l>>2]>>0]|0)>=48?(d[c[l>>2]>>0]|0)<=57:0)break;if(!(p
function Jp(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,$=0,aa=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0,Ba=0,Ca=0,Da=0,Ea=0,Fa=0,Ga=0,Ha=0,Ia=0,Ja=0,Ka=0,La=0,Ma=0,Na=0;h=i;i=i+320|0;if((i|0)>=(j|0))ba();k=h+316|0;l=h+312|0;m=h+308|0;n=h+304|0;o=h+300|0;p=h+296|0;q=h+292|0;r=h+288|0;s=h+284|0;t=h+280|0;u=h+276|0;v=h+272|0;w=h+268|0;x=h+264|0;y=h+260|0;z=h+256|0;A=h+252|0;B=h+248|0;C=h+244|0;D=h+240|0;E=h+236|0;F=h+232|0;G=h+228|0;H=h+224|0;I=h+220|0;J=h+216|0;K=h+212|0;L=h+208|0;M=h+204|0;N=h+200|0;O=h+196|0;P=h+192|0;Q=h+188|0;R=h+184|0;S=h+180|0;T=h+176|0;U=h+172|0;V=h+168|0;W=h+164|0;X=h+160|0;Y=h+156|0;Z=h+152|0;$=h+148|0;aa=h+144|0;ca=h+140|0;da=h+136|0;ea=h+132|0;fa=h+128|0;ga=h+124|0;ha=h+120|0;ia=h+116|0;ja=h+112|0;ka=h+108|0;la=h+104|0;ma=h+100|0;na=h+96|0;oa=h+92|0;pa=h+88|0;qa=h+84|0;ra=h+80|0;sa=h+76|0;ta=h+72|0;ua=h+68|0;va=h+64|0;wa=h+60|0;xa=h+56|0;ya=h+52|0;za=h+48|0;Aa=h+44|0;Ba=h+40|0;Ca=h+36|0;Da=h+32|0;Ea=h+28|0;Fa=h+24|0;Ga=h+20|0;Ha=h+16|0;Ia=h+12|0;Ja=h+8|0;Ka=h+4|0;La=h;c[k>>2]=a;c[l>>2]=b;c[m>>2]=d;c[n>>2]=e;c[o>>2]=f;c[p>>2]=g;c[q>>2]=0;switch(c[p>>2]|0){case 0:{Ff();break}case 1:{c[t>>2]=c[c[o>>2]>>2];c[s>>2]=c[(c[m>>2]|0)+((c[n>>2]|0)-1<<2)>>2];if((c[s>>2]|0)>>>0>=(c[t>>2]|0)>>>0){c[s>>2]=(c[s>>2]|0)-(c[t>>2]|0);c[q>>2]=1}c[k>>2]=(c[k>>2]|0)+(c[l>>2]<<2);c[r>>2]=(c[n>>2]|0)-2;while(1){if((c[r>>2]|0)<0)break;c[u>>2]=(c[t>>2]|0)>>>16;c[v>>2]=c[t>>2]&65535;c[y>>2]=((c[s>>2]|0)>>>0)%((c[u>>2]|0)>>>0)|0;c[w>>2]=((c[s>>2]|0)>>>0)/((c[u>>2]|0)>>>0)|0;c[A>>2]=_(c[w>>2]|0,c[v>>2]|0)|0;c[y>>2]=c[y>>2]<<16|(c[(c[m>>2]|0)+(c[r>>2]<<2)>>2]|0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c[q>>2]|0)+12>>2]|0)|0;c[(c[p>>2]|0)+12>>2]=B;B=jq(c[(c[q>>2]|0)+16>>2]|0)|0;c[(c[p>>2]|0)+16>>2]=B;$n((c[p>>2]|0)+20|0);as((c[p>>2]|0)+20|0,(c[q>>2]|0)+20|0);B=jq(c[(c[q>>2]|0)+32>>2]|0)|0;c[(c[p>>2]|0)+32>>2]=B;B=jq(c[(c[q>>2]|0)+36>>2]|0)|0;c[(c[p>>2]|0)+36>>2]=B;$n((c[p>>2]|0)+44|0);c[y>>2]=sq(c[A>>2]|0)|0;c[z>>2]=sq(c[A>>2]|0)|0;if(Wn(c[y>>2]|0,c[z>>2]|0,w,c[r>>2]|0)|0){c[o>>2]=47343;wf(47295,o)}do if((c[(c[q>>2]|0)+4>>2]|0)!=1){c[C>>2]=sq(c[A>>2]|0)|0;o=c[C>>2]|0;r=c[(c[q>>2]|0)+8>>2]|0;if(!(c[c[q>>2]>>2]|0))Ko(o,r,c[z>>2]|0);else Ko(o,r,c[y>>2]|0);if((Zo(c[C>>2]|0,c[z>>2]|0)|0)>=0){eq(c[C>>2]|0);as((c[p>>2]|0)+44|0,w);if(!(eg(1)|0))break;yf(47385,m);break}if(!(c[c[q>>2]>>2]|0)){eq(c[z>>2]|0);c[z>>2]=c[C>>2]}else{eq(c[y>>2]|0);c[y>>2]=c[C>>2]}Ko(c[(c[p>>2]|0)+56>>2]|0,c[(c[q>>2]|0)+32>>2]|0,c[(c[p>>2]|0)+56>>2]|0);r=(c[p>>2]|0)+44|0;o=c[y>>2]|0;B=c[z>>2]|0;co(r,o,B,xq(1)|0)|0;if(eg(1)|0)yf(47345,n)}else as((c[p>>2]|0)+44|0,w);while(0);c[c[u>>2]>>2]=c[y>>2];c[c[v>>2]>>2]=c[z>>2];bo(w);if(c[s>>2]&16384|0){i=l;return 0}s=c[p>>2]|0;w=(c[t>>2]|0)-64|0;if((c[c[p>>2]>>2]|0)!=1){bs(s,w);i=l;return 0}else{cs(s,w);i=l;return 0}return 0}function as(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;if((i|0)>=(j|0))ba();e=d+4|0;f=d;c[e>>2]=a;c[f>>2]=b;lq(c[c[e>>2]>>2]|0,c[c[f>>2]>>2]|0)|0;lq(c[(c[e>>2]|0)+4>>2]|0,c[(c[f>>2]|0)+4>>2]|0)|0;lq(c[(c[e>>2]|0)+8>>2]|0,c[(c[f>>2]|0)+8>>2]|0)|0;i=d;return}function bs(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;d=i;i=i+224|0;if((i|0)>=(j|0))ba();e=d+168|0;f=d+24|0;g=d+16|0;h=d+8|0;k=d+164|0;l=d+160|0;m=d+104|0;n=d+100|0;o=d+88|0;p=d+84|0;q=d+80|0;r=d+76|0;s=d+72|0;t=d+28|0;c[k>>2]=a;c[l>>2]=b;c[n>>2]=sq(c[l>>2]|0)|0;c[p>>2]=sq(c[l>>2]|0)|0;c[q>>2]=sq(c[l>>2]|0)|0;c[r>>2]=sq(c[l>>2]|0)|0;c[s>>2]=sq(c[l>>2]|0)|0;if(eg(1)|0)yf(47438,d);$n(o);b=e;a=c[k>>2]|0;u=b+44|0;do{c[b>>2]=c[a>>2];b=b+4|0;a=a+4|0}while((b|0)<(u|0));Ui(t,e);b=m;a=t;u=b+44|0;do{c[b>>2]=c[a>>2];b=b+4|0;a=a+4|0}while((b|0)<(u|0));$n(m+44|0);as(m+44|0,(c[k>>2]|0)+44|0);vq(c[n>>2]|0,c[l>>2]|0,0);if(Zt(c[n>>2]|0,c[k>>2]|0,c[r>>2]|0,c[s>>2]|0,0,0)|0)wf(47452,h);if(_t(c[n>>2]|0,m,c[r>>2]|0,c[s>>2]|0)|0)wf(47482,g);if(!(eg(1)|0)){v=m+44|0;bo(v);Ti(m);bo(o);w=c[s>>2]|0;eq(w);x=c[r>>2]|0;eq(x);y=c[q>>2]|0;eq(y);z=c[p>>2]|0;eq(z);A=c[n>>2]|0;eq(A);i=d;return}yf(47520,f);v=m+44|0;bo(v);Ti(m);bo(o);w=c[s>>2]|0;eq(w);x=c[r>>2]|0;eq(x);y=c[q>>2]|0;eq(y);z=c[p>>2]|0;eq(z);A=c[n>>2]|0;eq(A);i=d;return}function cs(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;e=i;i=i+224|0;if((i|0)>=(j|0))ba();f=e+168|0;g=e+24|0;h=e+16|0;k=e+8|0;l=e+164|0;m=e+160|0;n=e+104|0;o=e+100|0;p=e+88|0;q=e+84|0;r=e+80|0;s=e+76|0;t=e+32|0;u=e+28|0;c[l>>2]=b;c[m>>2]=d;if(eg(1)|0)yf(47438,e);$n(p);d=f;b=c[l>>2]|0;v=d+44|0;do{c[d>>2]=c[b>>2];d=d+4|0;b=b+4|0}while((d|0)<(v|0));Ui(t,f);d=n;b=t;v=d+44|0;do{c[d>>2]=c[b>>2];d=d+4|0;b=b+4|0}while((d|0)<(v|0));$n(n+44|0);as(n+44|0,(c[l>>2]|0)+44|0);if((c[(c[l>>2]|0)+4>>2]|0)==1){c[o>>2]=sq(256)|0;c[u>>2]=Jn(32,0)|0;b=c[u>>2]|0;a[b>>0]=a[b>>0]&127;b=c[u>>2]|0;a[b
function nn(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0;e=i;i=i+48|0;if((i|0)>=(j|0))ba();f=e+32|0;g=e+28|0;h=e+24|0;k=e+20|0;l=e+16|0;m=e+12|0;n=e+8|0;o=e+4|0;p=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;c[m>>2]=kn(c[h>>2]|0)|0;c[m>>2]=c[m>>2]^c[(c[f>>2]|0)+4096+16>>2];c[n>>2]=kn((c[h>>2]|0)+4|0)|0;c[n>>2]=c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]|0)+(c[(c[f>>2]|0)+4128+88>>2]|0);c[o>>2]=c[(c[f>>2]|0)+((c[k>>2]&255)<<2)>>2]^c[(c[f>>2]|0)+1024+(((c[k>>2]|0)>>>8&255)<<2)>>2]^c[(c[f>>2]|0)+2048+(((c[k>>2]|0)>>>16&255)<<2)>>2]^c[(c[f>>2]|0)+3072+((c[k>>2]|0)>>>24<<2)>>2];c[p>>2]=c[(c[f>>2]|0)+1024+((c[l>>2]&255)<<2)>>2]^c[(c[f>>2]|0)+2048+(((c[l>>2]|0)>>>8&255)<<2)>>2]^c[(c[f>>2]|0)+3072+(((c[l>>2]|0)>>>16&255)<<2)>>2]^c[(c[f>>2]|0)+((c[l>>2]|0)>>>24<<2
function ok(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0;e=i;i=i+160|0;if((i|0)>=(j|0))ba();f=e+144|0;g=e+140|0;h=e+136|0;k=e+132|0;l=e+128|0;m=e+124|0;n=e+120|0;o=e+116|0;p=e+112|0;q=e+108|0;r=e+104|0;s=e+100|0;t=e+96|0;u=e+92|0;v=e+88|0;w=e+84|0;x=e+80|0;y=e+76|0;z=e+72|0;A=e+68|0;B=e+64|0;C=e+60|0;D=e+56|0;E=e+52|0;F=e+48|0;G=e+44|0;H=e+40|0;I=e+36|0;J=e+32|0;K=e+28|0;L=e+24|0;M=e+20|0;N=e+16|0;O=e+12|0;P=e+8|0;Q=e+4|0;R=e;c[g>>2]=a;c[h>>2]=b;c[k>>2]=d;c[l>>2]=0;c[r>>2]=0;c[s>>2]=0;c[c[h>>2]>>2]=0;c[m>>2]=sg(c[g>>2]|0,37878,0)|0;if(!(c[m>>2]|0)){d=Ag(c[g>>2]|0,0,0)|0;c[c[h>>2]>>2]=d;c[f>>2]=c[c[h>>2]>>2]|0?0:65;S=c[f>>2]|0;i=e;return S|0}c[t>>2]=sg(c[m>>2]|0,47134,0)|0;if(c[t>>2]|0){if(gk(c[t>>2]|0,s,(c[k>>2]|0)+8|0)|0)c[r>>2]=1;qg(c[t>>2]|0)}if((c[(c[k>>2]|0)+8>>2]|0)==5)c[(c[k>>2]|0)+8>>2]=0;c[n>>2]=sg(c[m>>2]|0,37883,0)|0;if(c[n>>2]|0)T=0;else T=sg(c[m>>2]|0,42184,0)|0;c[o>>2]=T;a:do if(((c[n>>2]|0)!=0^1)&1^((c[o>>2]|0)!=0^1)&1|0){if(c[r>>2]|0){c[l>>2]=72;break}if((c[(c[k>>2]|0)+8>>2]|0)==0?c[s>>2]&4096|0:0){if(!(c[o>>2]|0)){c[l>>2]=65;break}c[u>>2]=sg(c[m>>2]|0,37772,0)|0;if(c[u>>2]|0){c[q>>2]=wg(c[u>>2]|0,1,p)|0;if(c[q>>2]|0){T=lk(c[q>>2]|0,c[p>>2]|0)|0;c[(c[k>>2]|0)+16>>2]=T;if(!(c[(c[k>>2]|0)+16>>2]|0))c[l>>2]=5}else c[l>>2]=68;qg(c[u>>2]|0)}else c[l>>2]=65;if(c[l>>2]|0)break;c[v>>2]=yg(c[o>>2]|0,1,w)|0;if(c[v>>2]|0){if(c[w>>2]<<3>>>0<(c[w>>2]|0)>>>0){Wf(c[v>>2]|0);c[l>>2]=67}}else{c[w>>2]=0;c[v>>2]=Qf(1)|0;if(!(c[v>>2]|0))c[l>>2]=fu()|0}if(c[l>>2]|0)break;T=fq(0,c[v>>2]|0,c[w>>2]<<3)|0;c[c[h>>2]>>2]=T;break}do if(c[n>>2]|0?(c[(c[k>>2]|0)+8>>2]|0)==0:0){if((c[s>>2]&16|0)==0?(c[s>>2]&2|0)==0:0)break;if((tg(c[n>>2]|0)|0)!=3){c[l>>2]=65;break a}T=wg(c[n>>2]|0,1,p)|0;c[q>>2]=T;if(!((T|0)!=0&(c[p>>2]|0)!=0)){c[l>>2]=65;break a}T=lk(c[q>>2]|0,c[p>>2]|0)|0;c[(c[k>>2]|0)+16>>2]=T;if(!(c[(c[k>>2]|0)+16>>2]|0)){c[l>>2]=5;break a}T=yg(c[n>>2]|0,2,y)|0;c[x>>2]=T;if(!T){c[l>>2]=65;break a}T=c[x>>2]|0;if(c[y>>2]<<3>>>0<(c[y>>2]|0)>>>0){Wf(T);c[l>>2]=67;break a}else{t=fq(0,T,c[y>>2]<<3)|0;c[c[h>>2]>>2]=t;break a}}while(0);if(c[o>>2]|0?(c[(c[k>>2]|0)+8>>2]|0)==0:0){if(c[s>>2]&2|0){c[l>>2]=70;break}t=Ag(c[o>>2]|0,1,5)|0;c[c[h>>2]>>2]=t;if(c[c[h>>2]>>2]|0)break;c[l>>2]=65;break}if((c[o>>2]|0?(c[(c[k>>2]|0)+8>>2]|0)==1:0)?(c[c[k>>2]>>2]|0)==0:0){c[C>>2]=0;c[D>>2]=0;t=wg(c[o>>2]|0,1,A)|0;c[z>>2]=t;if(!((t|0)!=0&(c[A>>2]|0)!=0)){c[l>>2]=65;break}c[B>>2]=sg(c[m>>2]|0,37862,0)|0;if(c[B>>2]|0){c[q>>2]=wg(c[B>>2]|0,1,p)|0;do if(c[q>>2]|0){if((c[p>>2]|0)>>>0>0){c[C>>2]=Qf(c[p>>2]|0)|0;if(c[C>>2]|0){Ax(c[C>>2]|0,c[q>>2]|0,c[p>>2]|0)|0;c[D>>2]=c[p>>2];break}else{c[l>>2]=fu()|0;break}}}else c[l>>2]=68;while(0);qg(c[B>>2]|0);if(c[l>>2]|0)break}c[l>>2]=Fl(c[h>>2]|0,c[(c[k>>2]|0)+4>>2]|0,c[z>>2]|0,c[A>>2]|0,c[C>>2]|0,c[D>>2]|0)|0;Wf(c[C>>2]|0);break}do if(c[n>>2]|0?(c[(c[k>>2]|0)+8>>2]|0)==1:0){if((c[c[k>>2]>>2]|0)!=2?(c[c[k>>2]>>2]|0)!=3:0)break;if((tg(c[n>>2]|0)|0)!=3){c[l>>2]=65;break a}t=wg(c[n>>2]|0,1,p)|0;c[q>>2]=t;if(!((t|0)!=0&(c[p>>2]|0)!=0)){c[l>>2]=65;break a}t=lk(c[q>>2]|0,c[p>>2]|0)|0;c[(c[k>>2]|0)+16>>2]=t;if(!(c[(c[k>>2]|0)+16>>2]|0)){c[l>>2]=5;break a}t=wg(c[n>>2]|0,2,F)|0;c[E>>2]=t;if((t|0)!=0&(c[F>>2]|0)!=0){c[l>>2]=Jl(c[h>>2]|0,c[(c[k>>2]|0)+4>>2]|0,c[E>>2]|0,c[F>>2]|0,c[(c[k>>2]|0)+16>>2]|0)|0;break a}else{c[l>>2]=65;break a}}while(0);do if(c[o>>2]|0?(c[(c[k>>2]|0)+8>>2]|0)==2:0){if((c[c[k>>2]>>2]|0)!=2?(c[c[k>>2]>>2]|0)!=3:0)break;if((tg(c[o>>2]|0)|0)!=2){c[l>>2]=65;break a}t=wg(c[o>>2]|0,1,H)|0;c[G>>2]=t;if((t|0)!=0&(c[H>>2]|0)!=0){c[l>>2]=Kl(c[h>>2]|0,c[(c[k>>2]|0)+4>>2]|0,c[G>>2]|0,c[H>>2]|0)|0;break a}else{c[l>>2]=65;break a}}while(0);if((c[o>>2]|0?(c[(c[k>>2]|0)+8>>2]|0)==3:0)?(c[c[k>>2]>>2]|0)==0:0){t=wg(c[o>>2]|0,1,J)|0;c[I>>2]=t;if(!((t|0)!=0&(c[J>>2]|0)!=0)){c[l>>2]=65;break}c[L>>2]=0;c[M>>2]=0;c[K>>2]=sg(c[m>>2]|0,37772,0)|0;if(c[K>>2]|0){c[q>>2]=wg(c[K>>2]|0,1,p)|0;do if(c[q>>2]|0){t=lk(c[q>>2]|0,c[p>>2]|0)|0;c[(c[k>>2]|0)+16>>2]=t;if(c[(c[k>>2]|0)+16>>2]|0)break;c[l>>
function yv(b,c,d){b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;if(c>>>0>0|(c|0)==0&b>>>0>4294967295){e=d;f=b;g=c;while(1){c=Lx(f|0,g|0,10,0)|0;h=e+-1|0;a[h>>0]=c|48;c=Kx(f|0,g|0,10,0)|0;if(g>>>0>9|(g|0)==9&f>>>0>4294967295){e=h;f=c;g=C}else{i=h;j=c;break}}k=i;l=j}else{k=d;l=b}if(!l)m=k;else{b=k;k=l;while(1){l=b+-1|0;a[l>>0]=(k>>>0)%10|0|48;if(k>>>0<10){m=l;break}else{b=l;k=(k>>>0)/10|0}}}return m|0}function zv(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;f=d&255;g=(e|0)!=0;a:do if(g&(b&3|0)!=0){h=d&255;i=e;j=b;while(1){if((a[j>>0]|0)==h<<24>>24){k=i;l=j;m=6;break a}n=j+1|0;o=i+-1|0;p=(o|0)!=0;if(p&(n&3|0)!=0){i=o;j=n}else{q=o;r=p;s=n;m=5;break}}}else{q=e;r=g;s=b;m=5}while(0);if((m|0)==5)if(r){k=q;l=s;m=6}else{t=0;u=s}b:do if((m|0)==6){s=d&255;if((a[l>>0]|0)==s<<24>>24){t=k;u=l}else{q=_(f,16843009)|0;c:do if(k>>>0>3){r=k;b=l;while(1){g=c[b>>2]^q;if((g&-2139062144^-2139062144)&g+-16843009|0){v=r;w=b;break}g=b+4|0;e=r+-4|0;if(e>>>0>3){r=e;b=g}else{x=e;y=g;m=11;break c}}z=v;A=w}else{x=k;y=l;m=11}while(0);if((m|0)==11)if(!x){t=0;u=y;break}else{z=x;A=y}while(1){if((a[A>>0]|0)==s<<24>>24){t=z;u=A;break b}q=A+1|0;z=z+-1|0;if(!z){t=0;u=q;break}else A=q}}}while(0);return (t|0?u:0)|0}function Av(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;g=i;i=i+256|0;if((i|0)>=(j|0))ba();h=g;do if((d|0)>(e|0)&(f&73728|0)==0){k=d-e|0;xx(h|0,b|0,(k>>>0>256?256:k)|0)|0;l=c[a>>2]|0;m=(l&32|0)==0;if(k>>>0>255){n=d-e|0;o=k;p=l;l=m;while(1){if(l){vv(h,256,a)|0;q=c[a>>2]|0}else q=p;o=o+-256|0;l=(q&32|0)==0;if(o>>>0<=255)break;else p=q}if(l)r=n&255;else break}else if(m)r=k;else break;vv(h,r,a)|0}while(0);i=g;return}function Bv(a,b){a=a|0;b=b|0;var c=0;if(!a)c=0;else c=Cv(a,b,0)|0;return c|0}function Cv(b,d,e){b=b|0;d=d|0;e=e|0;var f=0;do if(b){if(d>>>0<128){a[b>>0]=d;f=1;break}if(d>>>0<2048){a[b>>0]=d>>>6|192;a[b+1>>0]=d&63|128;f=2;break}if(d>>>0<55296|(d&-8192|0)==57344){a[b>>0]=d>>>12|224;a[b+1>>0]=d>>>6&63|128;a[b+2>>0]=d&63|128;f=3;break}if((d+-65536|0)>>>0<1048576){a[b>>0]=d>>>18|240;a[b+1>>0]=d>>>12&63|128;a[b+2>>0]=d>>>6&63|128;a[b+3>>0]=d&63|128;f=4;break}else{c[(Vu()|0)>>2]=84;f=-1;break}}else f=1;while(0);return f|0}function Dv(a,b){a=+a;b=b|0;return +(+Ev(a,b))}function Ev(a,b){a=+a;b=b|0;var d=0,e=0,f=0,g=0,i=0.0,j=0.0,l=0,m=0.0;h[k>>3]=a;d=c[k>>2]|0;e=c[k+4>>2]|0;f=Ex(d|0,e|0,52)|0;g=f&2047;switch(g|0){case 0:{if(a!=0.0){i=+Ev(a*18446744073709551616.0,b);j=i;l=(c[b>>2]|0)+-64|0}else{j=a;l=0}c[b>>2]=l;m=j;break}case 2047:{m=a;break}default:{c[b>>2]=g+-1022;c[k>>2]=d;c[k+4>>2]=e&-2146435073|1071644672;m=+h[k>>3]}}return +m}function Fv(a){a=a|0;return 0}function Gv(a){a=a|0;var b=0;b=(kv(a)|0)==0;return (b?a:a&95)|0}function Hv(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;d=b;a:do if(!(d&3)){e=b;f=4}else{g=b;h=d;while(1){if(!(a[g>>0]|0)){i=h;break a}j=g+1|0;h=j;if(!(h&3)){e=j;f=4;break}else g=j}}while(0);if((f|0)==4){f=e;while(1){e=c[f>>2]|0;if(!((e&-2139062144^-2139062144)&e+-16843009))f=f+4|0;else{k=e;l=f;break}}if(!((k&255)<<24>>24))m=l;else{k=l;while(1){l=k+1|0;if(!(a[l>>0]|0)){m=l;break}else k=l}}i=m}return i-d|0}function Iv(a){a=a|0;return ((a|0)==223|(gv(a)|0)!=(a|0))&1|0}function Jv(a){a=a|0;var b=0;if(a>>>0>=255)if((a+-57344|0)>>>0<8185|(a>>>0<8232|(a+-8234|0)>>>0<47062))b=1;else return ((a+-65532|0)>>>0>1048579|(a&65534|0)==65534)&1^1|0;else b=(a+1&127)>>>0>32&1;return b|0}function Kv(a,b){a=a|0;b=b|0;var c=0;do switch(b|0){case 1:{c=Lv(a)|0;break}case 2:{c=iv(a)|0;break}case 3:{c=bv(a)|0;break}case 4:{c=Nv(a)|0;break}case 5:{c=Mv(a)|0;break}case 6:{c=Ov(a)|0;break}case 7:{c=Iv(a)|0;break}case 8:{c=Jv(a)|0;break}case 9:{c=Pv(a)|0;break}case 10:{c=mv(a)|0;break}case 11:{c=Qv(a)|0;break}case 12:{c=Rv(a)|0;break}default:c=0}while(0);return c|0}function Lv(a){a=a|0;var b=0;if(!(Mv(a)|0))b=(iv(a)|0)!=0;else b=1;return b&1|0}function Mv(a){a=a|0;return (a+-48|0)>>>0<10|0}function Nv(a){a=a|0;var b=0;if((a&-2|0)==8232|(a>>>0<32|(a+-127|0)>>>0<33))b=1;else b=(a+-65529|0)>>>0<3;return b&1|0}function Ov(a){a=a|0
function im(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;d=i;i=i+32|0;if((i|0)>=(j|0))ba();e=d+24|0;f=d+20|0;g=d+16|0;h=d+12|0;k=d+8|0;l=d+4|0;m=d;c[e>>2]=a;c[f>>2]=b;c[g>>2]=0;c[k>>2]=0;c[l>>2]=0;c[m>>2]=0;c[h>>2]=Fg(k,0,41815,Hv(41815)|0)|0;if(!(c[h>>2]|0))c[h>>2]=Fg(l,0,41891,Hv(41891)|0)|0;do if(!(c[h>>2]|0)){c[h>>2]=xk(m,c[k>>2]|0,c[f>>2]|0)|0;if(c[h>>2]|0){c[g>>2]=41990;break}c[h>>2]=yk(c[m>>2]|0,c[k>>2]|0,c[e>>2]|0)|0;if(c[h>>2]|0){c[g>>2]=42005;break}c[h>>2]=yk(c[m>>2]|0,c[l>>2]|0,c[e>>2]|0)|0;if((jm(c[h>>2]|0)|0)!=8)c[g>>2]=42019}else c[g>>2]=41967;while(0);qg(c[m>>2]|0);qg(c[l>>2]|0);qg(c[k>>2]|0);i=d;return c[g>>2]|0}function jm(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))ba();d=b;c[d>>2]=a;a=km(c[d>>2]|0)|0;i=b;return a|0}function km(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;if((i|0)>=(j|0))ba();d=b;c[d>>2]=a;i=b;return c[d>>2]&65535|0}function lm(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;d=i;i=i+64|0;if((i|0)>=(j|0))ba();e=d;f=d+48|0;g=d+44|0;h=d+40|0;k=d+36|0;l=d+28|0;m=d+24|0;n=d+20|0;o=d+16|0;p=d+12|0;q=d+8|0;r=d+4|0;c[f>>2]=a;c[g>>2]=b;c[h>>2]=0;c[d+32>>2]=1e3;c[l>>2]=0;c[m>>2]=0;c[n>>2]=0;c[o>>2]=0;c[p>>2]=0;c[q>>2]=0;c[r>>2]=0;c[l>>2]=sq(1e3)|0;vq(c[l>>2]|0,1e3,0);c[e>>2]=c[l>>2];c[k>>2]=Dg(m,0,42054,e)|0;do if(!(c[k>>2]|0)){c[k>>2]=uk(n,c[m>>2]|0,c[f>>2]|0)|0;if(c[k>>2]|0){c[h>>2]=42084;break}c[o>>2]=mm(c[n>>2]|0)|0;if(!(c[o>>2]|0)){c[h>>2]=42107;break}if(!(Zo(c[l>>2]|0,c[o>>2]|0)|0)){c[h>>2]=42140;break}c[k>>2]=wk(p,c[n>>2]|0,c[g>>2]|0)|0;if(c[k>>2]|0){c[h>>2]=42169;break}c[r>>2]=sg(c[p>>2]|0,42184,0)|0;if(c[r>>2]|0)c[q>>2]=Ag(c[r>>2]|0,1,5)|0;else c[q>>2]=Ag(c[p>>2]|0,0,5)|0;if(!(c[q>>2]|0)){c[h>>2]=42190;break}if(Zo(c[l>>2]|0,c[q>>2]|0)|0)c[h>>2]=42220}else c[h>>2]=41967;while(0);qg(c[r>>2]|0);uq(c[q>>2]|0);qg(c[p>>2]|0);uq(c[o>>2]|0);qg(c[n>>2]|0);qg(c[m>>2]|0);uq(c[l>>2]|0);i=d;return c[h>>2]|0}function mm(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0;b=i;i=i+32|0;if((i|0)>=(j|0))ba();d=b+20|0;e=b+16|0;f=b+12|0;g=b+8|0;h=b+4|0;k=b;c[e>>2]=a;c[f>>2]=sg(c[e>>2]|0,42099,0)|0;if(!(c[f>>2]|0)){c[d>>2]=0;l=c[d>>2]|0;i=b;return l|0}c[g>>2]=sg(c[f>>2]|0,39286,0)|0;qg(c[f>>2]|0);if(!(c[g>>2]|0)){c[d>>2]=0;l=c[d>>2]|0;i=b;return l|0}c[h>>2]=sg(c[g>>2]|0,39337,0)|0;qg(c[g>>2]|0);if(c[h>>2]|0){c[k>>2]=Ag(c[h>>2]|0,1,0)|0;qg(c[h>>2]|0);c[d>>2]=c[k>>2];l=c[d>>2]|0;i=b;return l|0}else{c[d>>2]=0;l=c[d>>2]|0;i=b;return l|0}return 0}function nm(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;d=i;i=i+32|0;if((i|0)>=(j|0))ba();e=d+20|0;f=d+16|0;g=d+12|0;h=d+8|0;k=d+4|0;l=d;c[f>>2]=a;c[g>>2]=b;c[h>>2]=sg(c[g>>2]|0,39341,1)|0;if(!(c[h>>2]|0)){c[e>>2]=68;m=c[e>>2]|0;i=d;return m|0}c[k>>2]=wg(c[h>>2]|0,1,l)|0;if(c[k>>2]|0){Cj(c[f>>2]|0,c[k>>2]|0,c[l>>2]|0);qg(c[h>>2]|0);c[e>>2]=0;m=c[e>>2]|0;i=d;return m|0}else{qg(c[h>>2]|0);c[e>>2]=68;m=c[e>>2]|0;i=d;return m|0}return 0}function om(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;if((i|0)>=(j|0))ba();e=d+12|0;f=d+4|0;c[e>>2]=a;c[d+8>>2]=b;c[f>>2]=c[e>>2];c[d>>2]=Qg()|0;c[(c[f>>2]|0)+160>>2]=1732584193;c[(c[f>>2]|0)+164>>2]=-271733879;c[(c[f>>2]|0)+168>>2]=-1732584194;c[(c[f>>2]|0)+172>>2]=271733878;c[(c[f>>2]|0)+176>>2]=-1009589776;e=(c[f>>2]|0)+128|0;c[e>>2]=0;c[e+4>>2]=0;e=(c[f>>2]|0)+136|0;c[e>>2]=0;c[e+4>>2]=0;c[(c[f>>2]|0)+144>>2]=0;c[(c[f>>2]|0)+148>>2]=64;c[(c[f>>2]|0)+152>>2]=32;i=d;return}function pm(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0;e=i;i=i+32|0;if((i|0)>=(j|0))ba();f=e+16|0;g=e+12|0;h=e+8|0;k=e+4|0;l=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;c[k>>2]=c[f>>2];do{c[l>>2]=qm(c[k>>2]|0,c[g>>2]|0)|0;c[g>>2]=(c[g>>2]|0)+64;f=(c[h>>2]|0)+-1|0;c[h>>2]=f}while((f|0)!=0);i=e;return c[l>>2]|0}function qm(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;d=i;i=i+112|0;if((i|0)>=(j|0))ba();e=d+100|0;f=d+96|0;g=d+92|0;h=d+88|0;k=d+84|0;l=d+80|0;m=d+76|0;n=d+72|0;o=d+68|0;p=d+64|0;q=d;c[e>>2]=a;c[f>>2]=b;c[g>>2]=c[e>>2];c[h>>2]=c[f>>2];c[k>>2]=c[(c[g>>2]|0)+160>>2];c[l>>2]=c[(c[g>>2]|0)+164>>2];c[m>>2]=c[(c[g>>2]|0)+168>>2];c[n>>2]=c[(c[g>>2]|0)+172>>2];c[o>>2]=c[(c[g>>2]|0)+176>>2];f=rm(c[k>>2]|0,5)|0;e=f+(
function fn(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0;g=i;i=i+64|0;if((i|0)>=(j|0))ba();h=g;k=g+36|0;l=g+32|0;m=g+28|0;n=g+24|0;o=g+20|0;p=g+16|0;q=g+12|0;r=g+8|0;s=g+4|0;t=g+56|0;u=g+55|0;v=g+54|0;w=g+53|0;x=g+52|0;y=g+51|0;z=g+50|0;A=g+49|0;B=g+48|0;C=g+47|0;D=g+46|0;E=g+45|0;F=g+44|0;G=g+43|0;H=g+42|0;I=g+41|0;J=g+40|0;c[l>>2]=b;c[m>>2]=e;c[n>>2]=f;a[t>>0]=0;a[u>>0]=0;a[v>>0]=0;a[w>>0]=0;a[x>>0]=0;a[y>>0]=0;a[z>>0]=0;a[A>>0]=0;a[B>>0]=0;a[C>>0]=0;a[D>>0]=0;a[E>>0]=0;a[F>>0]=0;a[G>>0]=0;a[H>>0]=0;a[I>>0]=0;if(((c[n>>2]|0)-16|16|0)!=16){c[k>>2]=44;K=c[k>>2]|0;i=g;return K|0}if((c[17696]|0)==0?(c[17696]=1,c[17697]=gn()|0,c[17697]|0):0){c[h>>2]=c[17697];vf(43673,h)}if(c[17697]|0){c[k>>2]=50;K=c[k>>2]|0;i=g;return K|0}if(a[c[m>>2]>>0]|0){a[J>>0]=a[43677+((d[c[m>>2]>>0]|0)-1)>>0]|0;a[t>>0]=d[t>>0]^d[43932+((d[J>>0]|0)+0)>>0];a[u>>0]=d[u>>0]^d[43932+((d[J>>0]|0)+45)>>0];a[v>>0]=d[v>>0]^d[43932+((d[J>>0]|0)+1)>>0];a[w>>0]=d[w>>0]^d[43932+((d[J>>0]|0)+45)>>0]}if(a[(c[m>>2]|0)+1>>0]|0){a[J>>0]=a[43677+((d[(c[m>>2]|0)+1>>0]|0)-1)>>0]|0;a[t>>0]=d[t>>0]^d[43932+((d[J>>0]|0)+45)>>0];a[u>>0]=d[u>>0]^d[43932+((d[J>>0]|0)+164)>>0];a[v>>0]=d[v>>0]^d[43932+((d[J>>0]|0)+68)>>0];a[w>>0]=d[w>>0]^d[43932+((d[J>>0]|0)+138)>>0]}if(a[(c[m>>2]|0)+2>>0]|0){a[J>>0]=a[43677+((d[(c[m>>2]|0)+2>>0]|0)-1)>>0]|0;a[t>>0]=d[t>>0]^d[43932+((d[J>>0]|0)+138)>>0];a[u>>0]=d[u>>0]^d[43932+((d[J>>0]|0)+213)>>0];a[v>>0]=d[v>>0]^d[43932+((d[J>>0]|0)+191)>>0];a[w>>0]=d[w>>0]^d[43932+((d[J>>0]|0)+209)>>0]}if(a[(c[m>>2]|0)+3>>0]|0){a[J>>0]=a[43677+((d[(c[m>>2]|0)+3>>0]|0)-1)>>0]|0;a[t>>0]=d[t>>0]^d[43932+((d[J>>0]|0)+209)>>0];a[u>>0]=d[u>>0]^d[43932+((d[J>>0]|0)+127)>>0];a[v>>0]=d[v>>0]^d[43932+((d[J>>0]|0)+61)>>0];a[w>>0]=d[w>>0]^d[43932+((d[J>>0]|0)+153)>>0]}if(a[(c[m>>2]|0)+4>>0]|0){a[J>>0]=a[43677+((d[(c[m>>2]|0)+4>>0]|0)-1)>>0]|0;a[t>>0]=d[t>>0]^d[43932+((d[J>>0]|0)+153)>>0];a[u>>0]=d[u>>0]^d[43932+((d[J>>0]|0)+70)>>0];a[v>>0]=d[v>>0]^d[43932+((d[J>>0]|0)+102)>>0];a[w>>0]=d[w>>0]^d[43932+((d[J>>0]|0)+150)>>0]}if(a[(c[m>>2]|0)+5>>0]|0){a[J>>0]=a[43677+((d[(c[m>>2]|0)+5>>0]|0)-1)>>0]|0;a[t>>0]=d[t>>0]^d[43932+((d[J>>0]|0)+150)>>0];a[u>>0]=d[u>>0]^d[43932+((d[J>>0]|0)+60)>>0];a[v>>0]=d[v>>0]^d[43932+((d[J>>0]|0)+91)>>0];a[w>>0]=d[w>>0]^d[43932+((d[J>>0]|0)+237)>>0]}if(a[(c[m>>2]|0)+6>>0]|0){a[J>>0]=a[43677+((d[(c[m>>2]|0)+6>>0]|0)-1)>>0]|0;a[t>>0]=d[t>>0]^d[43932+((d[J>>0]|0)+237)>>0];a[u>>0]=d[u>>0]^d[43932+((d[J>>0]|0)+55)>>0];a[v>>0]=d[v>>0]^d[43932+((d[J>>0]|0)+79)>>0];a[w>>0]=d[w>>0]^d[43932+((d[J>>0]|0)+224)>>0]}if(a[(c[m>>2]|0)+7>>0]|0){a[J>>0]=a[43677+((d[(c[m>>2]|0)+7>>0]|0)-1)>>0]|0;a[t>>0]=d[t>>0]^d[43932+((d[J>>0]|0)+224)>>0];a[u>>0]=d[u>>0]^d[43932+((d[J>>0]|0)+208)>>0];a[v>>0]=d[v>>0]^d[43932+((d[J>>0]|0)+140)>>0];a[w>>0]=d[w>>0]^d[43932+((d[J>>0]|0)+23)>>0]}if(a[(c[m>>2]|0)+8>>0]|0){a[J>>0]=a[43677+((d[(c[m>>2]|0)+8>>0]|0)-1)>>0]|0;a[x>>0]=d[x>>0]^d[43932+((d[J>>0]|0)+0)>>0];a[y>>0]=d[y>>0]^d[43932+((d[J>>0]|0)+45)>>0];a[z>>0]=d[z>>0]^d[43932+((d[J>>0]|0)+1)>>0];a[A>>0]=d[A>>0]^d[43932+((d[J>>0]|0)+45)>>0]}if(a[(c[m>>2]|0)+9>>0]|0){a[J>>0]=a[43677+((d[(c[m>>2]|0)+9>>0]|0)-1)>>0]|0;a[x>>0]=d[x>>0]^d[43932+((d[J>>0]|0)+45)>>0];a[y>>0]=d[y>>0]^d[43932+((d[J>>0]|0)+164)>>0];a[z>>0]=d[z>>0]^d[43932+((d[J>>0]|0)+68)>>0];a[A>>0]=d[A>>0]^d[43932+((d[J>>0]|0)+138)>>0]}if(a[(c[m>>2]|0)+10>>0]|0){a[J>>0]=a[43677+((d[(c[m>>2]|0)+10>>0]|0)-1)>>0]|0;a[x>>0]=d[x>>0]^d[43932+((d[J>>0]|0)+138)>>0];a[y>>0]=d[y>>0]^d[43932+((d[J>>0]|0)+213)>>0];a[z>>0]=d[z>>0]^d[43932+((d[J>>0]|0)+191)>>0];a[A>>0]=d[A>>0]^d[43932+((d[J>>0]|0)+209)>>0]}if(a[(c[m>>2]|0)+11>>0]|0){a[J>>0]=a[43677+((d[(c[m>>2]|0)+11>>0]|0)-1)>>0]|0;a[x>>0]=d[x>>0]^d[43932+((d[J>>0]|0)+209)>>0];a[y>>0]=d[y>>0]^d[43932+((d[J>>0]|0)+127)>>0];a[z>>0]=d[z>>0]^d[43932+((d[J>>0]|0)+61)>>0];a[A>>0]=d[A>>0]^d[43932+((d[J>>0]|0)+153)>>0]}if(a[(c[m>>2]|0)+12>>0]|0){a[J>>0]=a[43677+((d[(c[m>>2]|0)+12>>0]|0)-1)>>0]|0;a[x>>0]=d[x>>0]^d[43932+((d[J>>0]|0)+153)>>0];a[y>>0]=d[y>>0]^d[43932+((d[J>>0]|0)+70)>>0];a[z>>0]=d
2016-02-19 13:03:45 +01:00
// EMSCRIPTEN_END_FUNCS
2016-04-05 14:52:59 +02:00
var Db=[Yx,Fk,Jk,Kk,gl,am,cm,dm,em,fm,wm,Mm,an,en,hn,mn,fs,hs,is,js,ks,ti,ys,Wu,_u,Xu,sv,uf,dw,al,el,vl,pm,Bm,Rm,$u,Yx,Yx,Yx,Yx,Yx,Yx,Yx,Yx,Yx,Yx,Yx,Yx,Yx,Yx,Yx,Yx,Yx,Yx,Yx,Yx,Yx,Yx,Yx,Yx,Yx,Yx,Yx,Yx];var Eb=[Zx,ll,_k,Xk,Uk,pl,sn,vn,pn,Zx,Zx,Zx,Zx,Zx,Zx,Zx];var Fb=[_x,zl,tm,Jm,Zm,jo,Yu,av,Mw,_x,_x,_x,_x,_x,_x,_x];var Gb=[$x,ul,om,Am,Pm,Qm,dn,ws];var Hb=[ay,Bl,_l,bm,vm,Lm,$m,ds,gs,yi,Tu,ay,ay,ay,ay,ay];var Ib=[by,os,tl,Is,pt,Mt,by,by];var Jb=[cy,Nk,Pk,uu];var Kb=[dy,zs,or,Hs,Qt,dy,dy,dy];var Lb=[ey,nl];var Mb=[fy,Rl,nm,_r,ms,pk,Zl,fy];var Nb=[gy,Jh];return{_GNUNET_CRYPTO_rsa_signature_encode:Dd,_GNUNET_CRYPTO_rsa_verify:Rd,_bitshift64Ashr:Dx,_bitshift64Shl:Fx,_bitshift64Lshr:Ex,_GNUNET_CRYPTO_rsa_signature_decode:Pd,_GNUNET_CRYPTO_rsa_blinding_key_encode:Gd,_TALER_WRALL_gen_symmetric_key:jc,_i64Subtract:wx,_GNUNET_CRYPTO_rsa_private_key_get_public:wd,_TALER_WRALL_ecc_ecdh:$b,_memset:xx,_TALER_WRALL_get_encoding_from_rsa_signature:ic,_GNUNET_CRYPTO_eddsa_verify:ad,_TALER_WRALL_hash:Yb,_TALER_amount_normalize:Pu,_TALER_WRALL_rsa_public_key_decode_from_string:hc,_GNUNET_CRYPTO_symmetric_encrypt:Oc,_TALER_WR_get_fraction:tc,_GNUNET_CRYPTO_rsa_unblind:Qd,_TALER_amount_cmp:Ou,_GNUNET_CRYPTO_rsa_blind:Kd,_TALER_WR_get_currency:uc,_GNUNET_CRYPTO_rsa_private_key_free:td,_fflush:tw,_TALER_WRALL_ecdhe_public_key_from_private_key:_b,_DEBUG_WR_get_purpose:pc,_TALER_WRALL_get_amount:qc,_GNUNET_CRYPTO_eddsa_key_create:Zc,_TALER_WRALL_eddsa_public_key_from_private:cc,_llvm_bswap_i32:Cx,_TALER_WR_GNUNET_free:ec,_GNUNET_CRYPTO_ecc_ecdh:bd,_TALER_WRALL_eddsa_private_key_from_string:ac,_TALER_WRALL_amount_add:mc,_GNUNET_CRYPTO_rsa_private_key_decode:vd,_TALER_WRALL_gen_init_vector:kc,_GNUNET_CRYPTO_rsa_signature_free:Od,_TALER_amount_ntoh:Ku,_llvm_cttz_i32:zx,_GNUNET_CRYPTO_ecdhe_key_create:Xc,_TALER_amount_subtract:Ru,_GNUNET_CRYPTO_rsa_blinding_key_decode:Id,_GNUNET_CRYPTO_rsa_private_key_create:sd,_i64Add:yx,_GNUNET_CRYPTO_ecdhe_key_get_public:Uc,_TALER_WRALL_purpose_create:gc,_GNUNET_CRYPTO_rsa_public_key_free:yd,_GNUNET_CRYPTO_rsa_blinding_key_free:Fd,_GNUNET_CRYPTO_eddsa_sign:_c,_TALER_amount_hton:Ju,_GNUNET_CRYPTO_rsa_public_key_decode:Bd,_GNUNET_CRYPTO_rsa_private_key_encode:ud,_GNUNET_CRYPTO_eddsa_key_get_public:Sc,_memcpy:Ax,_GNUNET_CRYPTO_hash:cd,___errno_location:Vu,_TALER_WRALL_eddsa_public_key_from_priv_string:bc,_GNUNET_CRYPTO_rsa_sign_blinded:Ld,_TALER_WR_get_value:sc,_TALER_WR_get_fancy_time:dc,_TALER_amount_add:Su,_free:qx,_TALER_WRALL_make_eddsa_signature:oc,_GNUNET_STRINGS_data_to_string_alloc:Vd,_GNUNET_CRYPTO_symmetric_decrypt:Rc,_GNUNET_STRINGS_string_to_data:Wd,_GNUNET_CRYPTO_hash_create_random:dd,_malloc:px,_TALER_WRALL_sign_test:fc,_GNUNET_CRYPTO_rsa_blinding_key_create:Cd,_TALER_amount_get_zero:Lu,_TALER_WRALL_rsa_public_key_hash:nc,_GNUNET_CRYPTO_hkdf:hd,_TALER_WR_hello_world:rc,_DEBUG_WR_dump_amount:Zb,_memmove:Bx,_GNUNET_CRYPTO_rsa_public_key_encode:zd,_TALER_WRALL_get_current_time:Xb,_TALER_WRALL_gen_key_from_blob:lc,_GNUNET_util_cl_init:Ac,_GNUNET_CRYPTO_random_init:nd,_gpg_err_init:bu,runPostSets:vx,stackAlloc:Ob,stackSave:Pb,stackRestore:Qb,establishStackSpace:Rb,setThrew:Sb,setTempRet0:Vb,getTempRet0:Wb,dynCall_iiii:Nx,dynCall_viiiii:Ox,dynCall_vi:Px,dynCall_vii:Qx,dynCall_ii:Rx,dynCall_viii:Sx,dynCall_v:Tx,dynCall_iiiii:Ux,dynCall_viiiiii:Vx,dynCall_iii:Wx,dynCall_viiii:Xx}})
2016-02-19 13:03:45 +01:00
2016-04-05 14:52:59 +02:00
// EMSCRIPTEN_END_ASM
(Module.asmGlobalArg,Module.asmLibraryArg,buffer);var real__GNUNET_CRYPTO_rsa_signature_encode=asm["_GNUNET_CRYPTO_rsa_signature_encode"];asm["_GNUNET_CRYPTO_rsa_signature_encode"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__GNUNET_CRYPTO_rsa_signature_encode.apply(null,arguments)});var real__GNUNET_CRYPTO_rsa_verify=asm["_GNUNET_CRYPTO_rsa_verify"];asm["_GNUNET_CRYPTO_rsa_verify"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__GNUNET_CRYPTO_rsa_verify.apply(null,arguments)});var real__DEBUG_WR_get_purpose=asm["_DEBUG_WR_get_purpose"];asm["_DEBUG_WR_get_purpose"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__DEBUG_WR_get_purpose.apply(null,arguments)});var real__TALER_WRALL_rsa_public_key_hash=asm["_TALER_WRALL_rsa_public_key_hash"];asm["_TALER_WRALL_rsa_public_key_hash"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__TALER_WRALL_rsa_public_key_hash.apply(null,arguments)});var real__GNUNET_CRYPTO_rsa_blinding_key_encode=asm["_GNUNET_CRYPTO_rsa_blinding_key_encode"];asm["_GNUNET_CRYPTO_rsa_blinding_key_encode"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__GNUNET_CRYPTO_rsa_blinding_key_encode.apply(null,arguments)});var real__TALER_WRALL_gen_symmetric_key=asm["_TALER_WRALL_gen_symmetric_key"];asm["_TALER_WRALL_gen_symmetric_key"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__TALER_WRALL_gen_symmetric_key.apply(null,arguments)});var real__TALER_WRALL_gen_key_from_blob=asm["_TALER_WRALL_gen_key_from_blob"];asm["_TALER_WRALL_gen_key_from_blob"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__TALER_WRALL_gen_key_from_blob.apply(null,arguments)});var real__GNUNET_CRYPTO_rsa_private_key_get_public=asm["_GNUNET_CRYPTO_rsa_private_key_get_public"];asm["_GNUNET_CRYPTO_rsa_private_key_get_public"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__GNUNET_CRYPTO_rsa_private_key_get_public.apply(null,arguments)});var real__TALER_WRALL_ecc_ecdh=asm["_TALER_WRALL_ecc_ecdh"];asm["_TALER_WRALL_ecc_ecdh"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__TALER_WRALL_ecc_ecdh.apply(null,arguments)});var real__TALER_WRALL_get_amount=asm["_TALER_WRALL_get_amount"];asm["_TALER_WRALL_get_amount"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real