mirror of
https://github.com/sehugg/8bitworkshop.git
synced 2024-11-25 03:34:05 +00:00
31 lines
330 KiB
JavaScript
31 lines
330 KiB
JavaScript
|
var c2t = function(c2t) {
|
||
|
c2t = c2t || {};
|
||
|
|
||
|
var Module=typeof c2t!=="undefined"?c2t:{};var moduleOverrides={};var key;for(key in Module){if(Module.hasOwnProperty(key)){moduleOverrides[key]=Module[key]}}Module["arguments"]=[];Module["thisProgram"]="./this.program";Module["quit"]=(function(status,toThrow){throw toThrow});Module["preRun"]=[];Module["postRun"]=[];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("Module['ENVIRONMENT'] value is not valid. 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){var nodeFS;var nodePath;Module["read"]=function shell_read(filename,binary){var ret;ret=tryParseAsDataURI(filename);if(!ret){if(!nodeFS)nodeFS=require("fs");if(!nodePath)nodePath=require("path");filename=nodePath["normalize"](filename);ret=nodeFS["readFileSync"](filename)}return binary?ret:ret.toString()};Module["readBinary"]=function readBinary(filename){var ret=Module["read"](filename,true);if(!ret.buffer){ret=new Uint8Array(ret)}assert(ret.buffer);return ret};if(process["argv"].length>1){Module["thisProgram"]=process["argv"][1].replace(/\\/g,"/")}Module["arguments"]=process["argv"].slice(2);process["on"]("uncaughtException",(function(ex){if(!(ex instanceof ExitStatus)){throw ex}}));process["on"]("unhandledRejection",(function(reason,p){process["exit"](1)}));Module["inspect"]=(function(){return"[Emscripten Module object]"})}else if(ENVIRONMENT_IS_SHELL){if(typeof read!="undefined"){Module["read"]=function shell_read(f){var data=tryParseAsDataURI(f);if(data){return intArrayToString(data)}return read(f)}}Module["readBinary"]=function readBinary(f){var data;data=tryParseAsDataURI(f);if(data){return data}if(typeof readbuffer==="function"){return new Uint8Array(readbuffer(f))}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}if(typeof quit==="function"){Module["quit"]=(function(status,toThrow){quit(status)})}}else if(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER){Module["read"]=function shell_read(url){try{var xhr=new XMLHttpRequest;xhr.open("GET",url,false);xhr.send(null);return xhr.responseText}catch(err){var data=tryParseAsDataURI(url);if(data){return intArrayToString(data)}throw err}};if(ENVIRONMENT_IS_WORKER){Module["readBinary"]=function readBinary(url){try{var xhr=new XMLHttpRequest;xhr.open("GET",url,false);xhr.responseType="arraybuffer";xhr.send(null);return new Uint8Array(xhr.response)}catch(err){var data=tryParseAsDataURI(url);if(data){return data}throw err}}}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);return}var data=tryParseAsDataURI(url);if(data){onload(data.buffer);return}onerror()};xhr.onerror=onerror;xhr.send(null)};Module["setWindowTitle"]=(function(title){document.title=title})}else{throw new Error("not compiled for this environment")}Module["print"]=typeof console!=="undefined"?console.log.bind(console):typeof print!=="undefined"?print:null;Module["printErr"]=typeof printErr!=="undefined"?printErr:typeof console!=="undefined"&&console.warn.bind(console)||Module["print"];Module.print=Module["print"];Module.printErr=Module["printErr"];for(key in moduleOverrides){if(moduleOverrides.hasOwnProperty(key)){Module[key]=module
|
||
|
var asm=(/** @suppress {uselessCode} */ function(global,env,buffer) {
|
||
|
"almost asm";var a=global.Int8Array;var b=new a(buffer);var c=global.Int16Array;var d=new c(buffer);var e=global.Int32Array;var f=new e(buffer);var g=global.Uint8Array;var h=new g(buffer);var i=global.Uint16Array;var j=new i(buffer);var k=global.Uint32Array;var l=new k(buffer);var m=global.Float32Array;var n=new m(buffer);var o=global.Float64Array;var p=new o(buffer);var q=global.byteLength;var r=env.DYNAMICTOP_PTR|0;var s=env.tempDoublePtr|0;var t=env.ABORT|0;var u=env.STACKTOP|0;var v=env.STACK_MAX|0;var w=0;var x=0;var y=0;var z=0;var A=global.NaN,B=global.Infinity;var C=0,D=0,E=0,F=0,G=0.0;var H=0;var I=global.Math.floor;var J=global.Math.abs;var K=global.Math.sqrt;var L=global.Math.pow;var M=global.Math.cos;var N=global.Math.sin;var O=global.Math.tan;var P=global.Math.acos;var Q=global.Math.asin;var R=global.Math.atan;var S=global.Math.atan2;var T=global.Math.exp;var U=global.Math.log;var V=global.Math.ceil;var W=global.Math.imul;var X=global.Math.min;var Y=global.Math.max;var Z=global.Math.clz32;var _=env.abort;var $=env.assert;var aa=env.enlargeMemory;var ba=env.getTotalMemory;var ca=env.abortOnCannotGrowMemory;var da=env.invoke_ii;var ea=env.invoke_iiii;var fa=env.invoke_v;var ga=env.___assert_fail;var ha=env.___lock;var ia=env.___setErrNo;var ja=env.___syscall140;var ka=env.___syscall145;var la=env.___syscall146;var ma=env.___syscall221;var na=env.___syscall5;var oa=env.___syscall54;var pa=env.___syscall6;var qa=env.___unlock;var ra=env.___wait;var sa=env._abort;var ta=env._emscripten_memcpy_big;var ua=env._llvm_ceil_f64;var va=env._llvm_floor_f64;var wa=0.0;function xa(newBuffer){if(q(newBuffer)&16777215||q(newBuffer)<=16777215||q(newBuffer)>2147483648)return false;b=new a(newBuffer);d=new c(newBuffer);f=new e(newBuffer);h=new g(newBuffer);j=new i(newBuffer);l=new k(newBuffer);n=new m(newBuffer);p=new o(newBuffer);buffer=newBuffer;return true}
|
||
|
// EMSCRIPTEN_START_FUNCS
|
||
|
function Ba(a){a=a|0;var b=0;b=u;u=u+a|0;u=u+15&-16;return b|0}function Ca(){return u|0}function Da(a){a=a|0;u=a}function Ea(a,b){a=a|0;b=b|0;u=a;v=b}function Fa(a,b){a=a|0;b=b|0;if(!w){w=a;x=b}}function Ga(a){a=a|0;H=a}function Ha(){return H|0}function Ia(a,c,e,g,i,j){a=a|0;c=c|0;e=e|0;g=g|0;i=i|0;j=j|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,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,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=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,Ka=0,La=0,Ma=0,Na=0,Oa=0,Pa=0,Ra=0,Sa=0,Ta=0,Ua=0,Va=0,Wa=0,Xa=0,Ya=0,Za=0,_a=0;if(!a){if(e|0)f[e>>2]=0;if(!i){k=-2;return k|0}f[i>>2]=0;k=-2;return k|0}l=a+112|0;f[l>>2]=c;m=a+120|0;f[m>>2]=e;n=a+116|0;f[n>>2]=g;o=a+124|0;f[o>>2]=i;p=a+132|0;f[p>>2]=c;q=(e|0)!=0;r=c;if(q)s=f[e>>2]|0;else s=0;t=a+136|0;f[t>>2]=s;u=a+140|0;f[u>>2]=0;f[a+128>>2]=j;v=(g|0)!=0;w=(i|0)!=0;do if(((v|w)^(f[a>>2]|0)!=0?(x=a+108|0,(f[x>>2]|0)==0):0)?(y=a+104|0,z=f[y>>2]|0,!((j|0)!=4&(z|0)!=0)):0){if(q?!((c|0)!=0|(f[e>>2]|0)==0):0){A=16;break}if(w?!(v|(f[i>>2]|0)==0):0){A=15;break}B=(j|0)==4&1;f[y>>2]=z|B;z=a+92|0;if((f[z>>2]|0)==0?(y=a+96|0,(f[y>>2]|0)==0):0){C=(j|0)==0;D=a+32|0;E=a+36|0;F=a+28|0;G=a+80|0;H=a+8|0;I=a+60|0;J=a+40|0;K=a+44|0;L=a+56|0;M=a+20|0;N=a+103018|0;O=a+84|0;P=a+76|0;Q=a+37490|0;R=c;S=s;a:while(1){T=(S|0)==0;if(T){if(C){U=0;V=R;A=111;break}W=f[D>>2]|0;if(!W){U=0;V=R;A=111;break}else X=W}else X=f[D>>2]|0;W=f[E>>2]|0;b:do if((W+X|0)>>>0>1){Y=(f[F>>2]|0)+X|0;Z=Y+-2|0;_=b[(Z&32767)+(a+144)>>0]|0;$=b[(Y+32767&32767)+(a+144)>>0]|0;aa=258-X|0;ba=S>>>0<aa>>>0?S:aa;aa=R+ba|0;ca=S-ba|0;da=ba+X|0;f[D>>2]=da;if(!ba){ea=ca;fa=R;ha=da;A=49}else{ba=Y;Y=Z;Z=(_&255)<<5^$&255;$=R;while(1){_=ba&32767;ia=b[$>>0]|0;$=$+1|0;b[a+144+_>>0]=ia;if(_>>>0<257)b[(_|32768)+(a+144)>>0]=ia;Z=Z<<5&32736^ia&255;ia=a+168562+(Z<<1)|0;d[a+103026+((Y&32767)<<1)>>1]=d[ia>>1]|0;d[ia>>1]=Y;if(($|0)==(aa|0)){ea=ca;fa=aa;ha=da;A=49;break}else{ba=_+1|0;Y=Y+1|0}}}}else if(T){ea=0;fa=R;ha=X;A=49}else{Y=S;ba=R;da=X;while(1){if(da>>>0>=258)break;aa=ba+1|0;ca=b[ba>>0]|0;$=(f[F>>2]|0)+da|0;Z=$&32767;_=Y+-1|0;b[a+144+Z>>0]=ca;if(Z>>>0<257)b[(Z|32768)+(a+144)>>0]=ca;Z=da+1|0;f[D>>2]=Z;if((Z+W|0)>>>0>2){ia=$+-2|0;ja=ia&32767;ka=a+168562+((h[($+32767&32767)+(a+144)>>0]<<5^ca&255^h[a+144+ja>>0]<<10&31744)<<1)|0;d[a+103026+(ja<<1)>>1]=d[ka>>1]|0;d[ka>>1]=ia}if(!_){ea=0;fa=aa;ha=Z;A=49;break b}else{Y=_;ba=aa;da=Z}}Z=32768-da|0;aa=Z>>>0<W>>>0?Z:W;f[E>>2]=aa;la=Y;ma=aa;na=ba;oa=da}while(0);if((A|0)==49){A=0;T=32768-ha|0;aa=T>>>0<W>>>0?T:W;f[E>>2]=aa;if(C&ha>>>0<258){U=ea;V=fa;A=111;break}else{la=ea;ma=aa;na=fa;oa=ha}}aa=f[G>>2]|0;T=(aa|0)==0;Z=T?2:aa;_=f[F>>2]|0;ia=_&32767;ka=f[H>>2]|0;c:do if(!(ka&589824)){ja=a+144+ia|0;ca=Z+ia|0;$=b[a+144+ca>>0]|0;pa=b[ca+-1+(a+144)>>0]|0;if(oa>>>0>=259){A=58;break a}if(Z>>>0<oa>>>0?(ca=(f[a+12+((Z>>>0>31&1)<<2)>>2]|0)+-1|0,(ca|0)!=0):0){qa=$;$=ia;ra=Z;sa=pa;pa=Z;ta=0;ua=ca;while(1){ca=$;va=ua;while(1){wa=d[a+103026+(ca<<1)>>1]|0;xa=wa&65535;if(!(wa<<16>>16)){ya=pa;za=ta;break c}wa=_-xa&65535;if(wa>>>0>ma>>>0){ya=pa;za=ta;break c}Aa=xa&32767;xa=Aa+ra|0;if((b[a+144+xa>>0]|0)==qa<<24>>24?(b[xa+-1+(a+144)>>0]|0)==sa<<24>>24:0){Ba=wa;Ca=Aa;break}wa=d[a+103026+(Aa<<1)>>1]|0;Aa=wa&65535;if(!(wa<<16>>16)){ya=pa;za=ta;break c}wa=_-Aa&65535;if(wa>>>0>ma>>>0){ya=pa;za=ta;break c}xa=Aa&32767;Aa=xa+ra|0;if((b[a+144+Aa>>0]|0)==qa<<24>>24?(b[Aa+-1+(a+144)>>0]|0)==sa<<24>>24:0){Ba=wa;Ca=xa;break}wa=d[a+103026+(xa<<1)>>1]|0;xa=wa&65535;if(!(wa<<16>>16)){ya=pa;za=ta;break c}wa=_-xa&65535;if(wa>>>0>ma>>>0){ya=pa;za=ta;break c}ca=xa&32767;xa=ca+ra|0;if((b[a+144+xa>>0]|0)==qa<<24>>24?(b[xa+-1+(a+144)>>0]|0)==sa<<24>>24:0){Ba=wa;Ca=ca;break}wa=va+-1|0;if(!wa){ya=pa;za=ta;break c}else va=wa}if(!Ba){ya=pa;za=ta;break c}ca=a+144+Ca|0;wa=ja;xa=0;while(1){if((b[wa>>0]|0)!=(b[ca>>0]|0)){Da=xa;break}Aa=xa+1|0;if(Aa>>>0<oa>>>0){ca=ca+1|0;wa=wa+1|0;xa=Aa}else{Da=Aa;break}}if(Da>>>0>ra>>>0){if((Da|0)==(oa|0)){ya=oa;za=Ba;break c}xa=Da
|
||
|
function hc(a){a=a|0;var b=0,c=0,d=0,e=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,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0;if(!a)return;b=a+-8|0;c=f[6453]|0;d=f[a+-4>>2]|0;a=d&-8;e=b+a|0;do if(!(d&1)){g=f[b>>2]|0;if(!(d&3))return;h=b+(0-g)|0;i=g+a|0;if(h>>>0<c>>>0)return;if((f[6454]|0)==(h|0)){j=e+4|0;k=f[j>>2]|0;if((k&3|0)!=3){l=h;m=i;n=h;break}f[6451]=i;f[j>>2]=k&-2;f[h+4>>2]=i|1;f[h+i>>2]=i;return}k=g>>>3;if(g>>>0<256){g=f[h+8>>2]|0;j=f[h+12>>2]|0;if((j|0)==(g|0)){f[6449]=f[6449]&~(1<<k);l=h;m=i;n=h;break}else{f[g+12>>2]=j;f[j+8>>2]=g;l=h;m=i;n=h;break}}g=f[h+24>>2]|0;j=f[h+12>>2]|0;do if((j|0)==(h|0)){k=h+16|0;o=k+4|0;p=f[o>>2]|0;if(!p){q=f[k>>2]|0;if(!q){r=0;break}else{s=q;t=k}}else{s=p;t=o}o=s;p=t;while(1){k=o+20|0;q=f[k>>2]|0;if(!q){u=o+16|0;v=f[u>>2]|0;if(!v)break;else{w=v;x=u}}else{w=q;x=k}o=w;p=x}f[p>>2]=0;r=o}else{k=f[h+8>>2]|0;f[k+12>>2]=j;f[j+8>>2]=k;r=j}while(0);if(g){j=f[h+28>>2]|0;k=26100+(j<<2)|0;if((f[k>>2]|0)==(h|0)){f[k>>2]=r;if(!r){f[6450]=f[6450]&~(1<<j);l=h;m=i;n=h;break}}else{j=g+16|0;f[((f[j>>2]|0)==(h|0)?j:g+20|0)>>2]=r;if(!r){l=h;m=i;n=h;break}}f[r+24>>2]=g;j=h+16|0;k=f[j>>2]|0;if(k|0){f[r+16>>2]=k;f[k+24>>2]=r}k=f[j+4>>2]|0;if(k){f[r+20>>2]=k;f[k+24>>2]=r;l=h;m=i;n=h}else{l=h;m=i;n=h}}else{l=h;m=i;n=h}}else{l=b;m=a;n=b}while(0);if(n>>>0>=e>>>0)return;b=e+4|0;a=f[b>>2]|0;if(!(a&1))return;if(!(a&2)){if((f[6455]|0)==(e|0)){r=(f[6452]|0)+m|0;f[6452]=r;f[6455]=l;f[l+4>>2]=r|1;if((l|0)!=(f[6454]|0))return;f[6454]=0;f[6451]=0;return}if((f[6454]|0)==(e|0)){r=(f[6451]|0)+m|0;f[6451]=r;f[6454]=n;f[l+4>>2]=r|1;f[n+r>>2]=r;return}r=(a&-8)+m|0;x=a>>>3;do if(a>>>0<256){w=f[e+8>>2]|0;t=f[e+12>>2]|0;if((t|0)==(w|0)){f[6449]=f[6449]&~(1<<x);break}else{f[w+12>>2]=t;f[t+8>>2]=w;break}}else{w=f[e+24>>2]|0;t=f[e+12>>2]|0;do if((t|0)==(e|0)){s=e+16|0;c=s+4|0;d=f[c>>2]|0;if(!d){k=f[s>>2]|0;if(!k){y=0;break}else{z=k;A=s}}else{z=d;A=c}c=z;d=A;while(1){s=c+20|0;k=f[s>>2]|0;if(!k){j=c+16|0;q=f[j>>2]|0;if(!q)break;else{B=q;C=j}}else{B=k;C=s}c=B;d=C}f[d>>2]=0;y=c}else{o=f[e+8>>2]|0;f[o+12>>2]=t;f[t+8>>2]=o;y=t}while(0);if(w|0){t=f[e+28>>2]|0;h=26100+(t<<2)|0;if((f[h>>2]|0)==(e|0)){f[h>>2]=y;if(!y){f[6450]=f[6450]&~(1<<t);break}}else{t=w+16|0;f[((f[t>>2]|0)==(e|0)?t:w+20|0)>>2]=y;if(!y)break}f[y+24>>2]=w;t=e+16|0;h=f[t>>2]|0;if(h|0){f[y+16>>2]=h;f[h+24>>2]=y}h=f[t+4>>2]|0;if(h|0){f[y+20>>2]=h;f[h+24>>2]=y}}}while(0);f[l+4>>2]=r|1;f[n+r>>2]=r;if((l|0)==(f[6454]|0)){f[6451]=r;return}else D=r}else{f[b>>2]=a&-2;f[l+4>>2]=m|1;f[n+m>>2]=m;D=m}m=D>>>3;if(D>>>0<256){n=25836+(m<<1<<2)|0;a=f[6449]|0;b=1<<m;if(!(a&b)){f[6449]=a|b;E=n;F=n+8|0}else{b=n+8|0;E=f[b>>2]|0;F=b}f[F>>2]=l;f[E+12>>2]=l;f[l+8>>2]=E;f[l+12>>2]=n;return}n=D>>>8;if(n)if(D>>>0>16777215)G=31;else{E=(n+1048320|0)>>>16&8;F=n<<E;n=(F+520192|0)>>>16&4;b=F<<n;F=(b+245760|0)>>>16&2;a=14-(n|E|F)+(b<<F>>>15)|0;G=D>>>(a+7|0)&1|a<<1}else G=0;a=26100+(G<<2)|0;f[l+28>>2]=G;f[l+20>>2]=0;f[l+16>>2]=0;F=f[6450]|0;b=1<<G;a:do if(!(F&b)){f[6450]=F|b;f[a>>2]=l;f[l+24>>2]=a;f[l+12>>2]=l;f[l+8>>2]=l}else{E=f[a>>2]|0;b:do if((f[E+4>>2]&-8|0)==(D|0))H=E;else{n=D<<((G|0)==31?0:25-(G>>>1)|0);m=E;while(1){I=m+16+(n>>>31<<2)|0;r=f[I>>2]|0;if(!r)break;if((f[r+4>>2]&-8|0)==(D|0)){H=r;break b}else{n=n<<1;m=r}}f[I>>2]=l;f[l+24>>2]=m;f[l+12>>2]=l;f[l+8>>2]=l;break a}while(0);E=H+8|0;w=f[E>>2]|0;f[w+12>>2]=l;f[E>>2]=l;f[l+8>>2]=w;f[l+12>>2]=H;f[l+24>>2]=0}while(0);l=(f[6457]|0)+-1|0;f[6457]=l;if(l|0)return;l=26252;while(1){H=f[l>>2]|0;if(!H)break;else l=H+8|0}f[6457]=-1;return}function ic(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,g=0;if(!a){c=gc(b)|0;return c|0}if(b>>>0>4294967231){d=pc()|0;f[d>>2]=12;c=0;return c|0}d=jc(a+-8|0,b>>>0<11?16:b+11&-8)|0;if(d|0){c=d+8|0;return c|0}d=gc(b)|0;if(!d){c=0;return c|0}e=f[a+-4>>2]|0;g=(e&-8)-((e&3|0)==0?8:4)|0;ue(d|0,a|0,(g>>>0<b>>>0?g:b)|0)|0;hc(a);c=d;return c|0}function jc(a,b){a=a|0;b=b|0;var c=0,d=0,e=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;c=a+4|0;d=f[c>>2]|0;e=d&-8;g=a+e|0;if(!(d&3)){if(b>>>0<256){h=0;return h|0}if(e>>>0>=(b+4|0)>>>0?(e-b|0)>>>0<=f[6569]<<1>>>0:0){h=a;return h|0}h=0;return h
|
||
|
|
||
|
// EMSCRIPTEN_END_FUNCS
|
||
|
var ya=[Ae,lc];var za=[Be,rc,nc,sc,$c,Ka,mc,Be];var Aa=[Ce,Ta,Ua,Va,Wa,Xa,Ya,Za,_a,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,rb,sb,tb,ub,vb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,Xb,Yb,Zb,_b,$b,ac,bc,cc,dc,ec,fc,Ce,Ce,Ce,Ce,Ce,Ce,Ce,Ce,Ce,Ce,Ce,Ce,Ce,Ce,Ce,Ce,Ce,Ce,Ce,Ce,Ce,Ce,Ce,Ce,Ce,Ce,Ce,Ce,Ce,Ce,Ce,Ce,Ce,Ce,Ce,Ce,Ce,Ce,Ce,Ce,Ce,Ce,Ce,Ce,Ce,Ce,Ce,Ce,Ce,Ce,Ce,Ce,Ce,Ce,Ce,Ce,Ce,Ce];return{___errno_location:pc,___muldi3:le,___udivdi3:qe,_bitshift64Lshr:re,_bitshift64Shl:se,_emscripten_replace_memory:xa,_free:hc,_i64Add:me,_i64Subtract:ne,_llvm_bswap_i32:te,_main:La,_malloc:gc,_memcpy:ue,_memset:ve,_sbrk:we,dynCall_ii:xe,dynCall_iiii:ye,dynCall_v:ze,establishStackSpace:Ea,getTempRet0:Ha,runPostSets:je,setTempRet0:Ga,setThrew:Fa,stackAlloc:Ba,stackRestore:Da,stackSave:Ca}})
|
||
|
|
||
|
|
||
|
// EMSCRIPTEN_END_ASM
|
||
|
(Module.asmGlobalArg,Module.asmLibraryArg,buffer);var ___errno_location=Module["___errno_location"]=asm["___errno_location"];var ___muldi3=Module["___muldi3"]=asm["___muldi3"];var ___udivdi3=Module["___udivdi3"]=asm["___udivdi3"];var _bitshift64Lshr=Module["_bitshift64Lshr"]=asm["_bitshift64Lshr"];var _bitshift64Shl=Module["_bitshift64Shl"]=asm["_bitshift64Shl"];var _emscripten_replace_memory=Module["_emscripten_replace_memory"]=asm["_emscripten_replace_memory"];var _free=Module["_free"]=asm["_free"];var _i64Add=Module["_i64Add"]=asm["_i64Add"];var _i64Subtract=Module["_i64Subtract"]=asm["_i64Subtract"];var _llvm_bswap_i32=Module["_llvm_bswap_i32"]=asm["_llvm_bswap_i32"];var _main=Module["_main"]=asm["_main"];var _malloc=Module["_malloc"]=asm["_malloc"];var _memcpy=Module["_memcpy"]=asm["_memcpy"];var _memset=Module["_memset"]=asm["_memset"];var _sbrk=Module["_sbrk"]=asm["_sbrk"];var establishStackSpace=Module["establishStackSpace"]=asm["establishStackSpace"];var getTempRet0=Module["getTempRet0"]=asm["getTempRet0"];var runPostSets=Module["runPostSets"]=asm["runPostSets"];var setTempRet0=Module["setTempRet0"]=asm["setTempRet0"];var setThrew=Module["setThrew"]=asm["setThrew"];var stackAlloc=Module["stackAlloc"]=asm["stackAlloc"];var stackRestore=Module["stackRestore"]=asm["stackRestore"];var stackSave=Module["stackSave"]=asm["stackSave"];var dynCall_ii=Module["dynCall_ii"]=asm["dynCall_ii"];var dynCall_iiii=Module["dynCall_iiii"]=asm["dynCall_iiii"];var dynCall_v=Module["dynCall_v"]=asm["dynCall_v"];Module["asm"]=asm;Module["getMemory"]=getMemory;Module["addRunDependency"]=addRunDependency;Module["removeRunDependency"]=removeRunDependency;Module["FS"]=FS;Module["FS_createFolder"]=FS.createFolder;Module["FS_createPath"]=FS.createPath;Module["FS_createDataFile"]=FS.createDataFile;Module["FS_createPreloadedFile"]=FS.createPreloadedFile;Module["FS_createLazyFile"]=FS.createLazyFile;Module["FS_createLink"]=FS.createLink;Module["FS_createDevice"]=FS.createDevice;Module["FS_unlink"]=FS.unlink;if(memoryInitializer){if(!isDataURI(memoryInitializer)){if(typeof Module["locateFile"]==="function"){memoryInitializer=Module["locateFile"](memoryInitializer)}else if(Module["memoryInitializerPrefixURL"]){memoryInitializer=Module["memoryInitializerPrefixURL"]+memoryInitializer}}if(ENVIRONMENT_IS_NODE||ENVIRONMENT_IS_SHELL){var data=Module["readBinary"](memoryInitializer);HEAPU8.set(data,GLOBAL_BASE)}else{addRunDependency("memory initializer");var applyMemoryInitializer=(function(data){if(data.byteLength)data=new Uint8Array(data);HEAPU8.set(data,GLOBAL_BASE);if(Module["memoryInitializerRequest"])delete Module["memoryInitializerRequest"].response;removeRunDependency("memory initializer")});function doBrowserLoad(){Module["readAsync"](memoryInitializer,applyMemoryInitializer,(function(){throw"could not load memory initializer "+memoryInitializer}))}var memoryInitializerBytes=tryParseAsDataURI(memoryInitializer);if(memoryInitializerBytes){applyMemoryInitializer(memoryInitializerBytes.buffer)}else if(Module["memoryInitializerRequest"]){function useRequest(){var request=Module["memoryInitializerRequest"];var response=request.response;if(request.status!==200&&request.status!==0){var data=tryParseAsDataURI(Module["memoryInitializerRequestURL"]);if(data){response=data.buffer}else{console.warn("a problem seems to have happened with Module.memoryInitializerRequest, status: "+request.status+", retrying "+memoryInitializer);doBrowserLoad();return}}applyMemoryInitializer(response)}if(Module["memoryInitializerRequest"].response){setTimeout(useRequest,0)}else{Module["memoryInitializerRequest"].addEventListener("load",useRequest)}}else{doBrowserLoad()}}}Module["then"]=(function(func){if(Module["calledRun"]){func(Module)}else{var old=Module["onRuntimeInitialized"];Module["onRuntimeInitialized"]=(function(){if(old)old();func(Module)})}return Module});function ExitStatus(status){this.name="ExitStatus";this.message="Program terminated with exit("+status+")";this.status=status}ExitStatus.prototype=new Error;ExitStatus.prototype.constructor=ExitStatus;var initial
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
return c2t;
|
||
|
};
|
||
|
if (typeof exports === 'object' && typeof module === 'object')
|
||
|
module.exports = c2t;
|
||
|
else if (typeof define === 'function' && define['amd'])
|
||
|
define([], function() { return c2t; });
|
||
|
else if (typeof exports === 'object')
|
||
|
exports["c2t"] = c2t;
|
||
|
|