@zappar/zappar-cv 2.0.0-beta.0 → 2.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/lib/gen/zappar.d.ts +0 -2
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/zcv.js +125 -115
- package/lib/zcv.wasm +0 -0
- package/package.json +1 -1
- package/umd/752.zappar-cv.js +1 -1
- package/umd/e486cd197ef362198043.wasm +0 -0
- package/umd/zappar-cv.js +1 -1
- package/umd/zappar-cv.worker.js +1 -1
- package/umd/6a8309f88f836a752c68.wasm +0 -0
package/lib/zcv.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
var ZCV = (()
|
|
2
|
+
var ZCV = (function() {
|
|
3
3
|
var _scriptDir = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : undefined;
|
|
4
4
|
|
|
5
5
|
return (
|
|
@@ -7,123 +7,133 @@ function(ZCV) {
|
|
|
7
7
|
ZCV = ZCV || {};
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var e;e||(e=typeof ZCV !== 'undefined' ? ZCV : {});var aa
|
|
11
|
-
var
|
|
12
|
-
function
|
|
13
|
-
function
|
|
14
|
-
function
|
|
15
|
-
function
|
|
16
|
-
function
|
|
17
|
-
function
|
|
18
|
-
function
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
function
|
|
23
|
-
function
|
|
24
|
-
function
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
{
|
|
31
|
-
},
|
|
32
|
-
b.
|
|
33
|
-
|
|
34
|
-
if(
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
function
|
|
39
|
-
function
|
|
40
|
-
function
|
|
41
|
-
function
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
function
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
function
|
|
50
|
-
|
|
51
|
-
function
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
10
|
+
var e;e||(e=typeof ZCV !== 'undefined' ? ZCV : {});var aa,ba;e.ready=new Promise(function(a,b){aa=a;ba=b});var ca={},l;for(l in e)e.hasOwnProperty(l)&&(ca[l]=e[l]);var da="./this.program";function ea(a,b){throw b;}var m="",fa;m=self.location.href;_scriptDir&&(m=_scriptDir);0!==m.indexOf("blob:")?m=m.substr(0,m.lastIndexOf("/")+1):m="";fa=function(a){var b=new XMLHttpRequest;b.open("GET",a,!1);b.responseType="arraybuffer";b.send(null);return new Uint8Array(b.response)};
|
|
11
|
+
var ha=e.print||console.log.bind(console),n=e.printErr||console.warn.bind(console);for(l in ca)ca.hasOwnProperty(l)&&(e[l]=ca[l]);ca=null;e.thisProgram&&(da=e.thisProgram);e.quit&&(ea=e.quit);function ia(a){ja||(ja={});ja[a]||(ja[a]=1,n(a))}var ja,ka;e.wasmBinary&&(ka=e.wasmBinary);var noExitRuntime=e.noExitRuntime||!0;"object"!==typeof WebAssembly&&x("no native wasm support detected");var la,ma=!1,na;function oa(a,b){a||x("Assertion failed: "+b)}
|
|
12
|
+
function pa(a){var b=e["_"+a];oa(b,"Cannot call unknown function "+a+", make sure it is exported");return b}
|
|
13
|
+
function qa(a,b,c,d){var f={string:function(p){var t=0;if(null!==p&&void 0!==p&&0!==p){var w=(p.length<<2)+1;t=ra(w);z(p,A,t,w)}return t},array:function(p){var t=ra(p.length);D.set(p,t);return t}},g=pa(a),k=[];a=0;if(d)for(var q=0;q<d.length;q++){var r=f[c[q]];r?(0===a&&(a=sa()),k[q]=r(d[q])):k[q]=d[q]}c=g.apply(null,k);c=function(p){return"string"===b?E(p):"boolean"===b?!!p:p}(c);0!==a&&ta(a);return c}var ua="undefined"!==typeof TextDecoder?new TextDecoder("utf8"):void 0;
|
|
14
|
+
function va(a,b,c){var d=b+c;for(c=b;a[c]&&!(c>=d);)++c;if(16<c-b&&a.subarray&&ua)return ua.decode(a.subarray(b,c));for(d="";b<c;){var f=a[b++];if(f&128){var g=a[b++]&63;if(192==(f&224))d+=String.fromCharCode((f&31)<<6|g);else{var k=a[b++]&63;f=224==(f&240)?(f&15)<<12|g<<6|k:(f&7)<<18|g<<12|k<<6|a[b++]&63;65536>f?d+=String.fromCharCode(f):(f-=65536,d+=String.fromCharCode(55296|f>>10,56320|f&1023))}}else d+=String.fromCharCode(f)}return d}function E(a,b){return a?va(A,a,b):""}
|
|
15
|
+
function z(a,b,c,d){if(!(0<d))return 0;var f=c;d=c+d-1;for(var g=0;g<a.length;++g){var k=a.charCodeAt(g);if(55296<=k&&57343>=k){var q=a.charCodeAt(++g);k=65536+((k&1023)<<10)|q&1023}if(127>=k){if(c>=d)break;b[c++]=k}else{if(2047>=k){if(c+1>=d)break;b[c++]=192|k>>6}else{if(65535>=k){if(c+2>=d)break;b[c++]=224|k>>12}else{if(c+3>=d)break;b[c++]=240|k>>18;b[c++]=128|k>>12&63}b[c++]=128|k>>6&63}b[c++]=128|k&63}}b[c]=0;return c-f}
|
|
16
|
+
function wa(a){for(var b=0,c=0;c<a.length;++c){var d=a.charCodeAt(c);55296<=d&&57343>=d&&(d=65536+((d&1023)<<10)|a.charCodeAt(++c)&1023);127>=d?++b:b=2047>=d?b+2:65535>=d?b+3:b+4}return b}function xa(a){var b=wa(a)+1,c=ya(b);c&&z(a,D,c,b);return c}function za(a,b){for(var c=0;c<a.length;++c)D[b++>>0]=a.charCodeAt(c);D[b>>0]=0}var Aa,D,A,Ba,F,G,H,Ca,Da;
|
|
17
|
+
function Ea(){var a=la.buffer;Aa=a;e.HEAP8=D=new Int8Array(a);e.HEAP16=Ba=new Int16Array(a);e.HEAP32=G=new Int32Array(a);e.HEAPU8=A=new Uint8Array(a);e.HEAPU16=F=new Uint16Array(a);e.HEAPU32=H=new Uint32Array(a);e.HEAPF32=Ca=new Float32Array(a);e.HEAPF64=Da=new Float64Array(a)}var I,Fa=[],Ga=[],Ha=[],Ia=[];function Ja(){var a=e.preRun.shift();Fa.unshift(a)}var Ka=0,La=null,Ma=null;function Na(){Ka++;e.monitorRunDependencies&&e.monitorRunDependencies(Ka)}
|
|
18
|
+
function Oa(){Ka--;e.monitorRunDependencies&&e.monitorRunDependencies(Ka);if(0==Ka&&(null!==La&&(clearInterval(La),La=null),Ma)){var a=Ma;Ma=null;a()}}e.preloadedImages={};e.preloadedAudios={};function x(a){if(e.onAbort)e.onAbort(a);n(a);ma=!0;na=1;a=new WebAssembly.RuntimeError("abort("+a+"). Build with -s ASSERTIONS=1 for more info.");ba(a);throw a;}var Pa="zcv.wasm";
|
|
19
|
+
if(String.prototype.startsWith?!Pa.startsWith("data:application/octet-stream;base64,"):0!==Pa.indexOf("data:application/octet-stream;base64,")){var Qa=Pa;Pa=e.locateFile?e.locateFile(Qa,m):m+Qa}
|
|
20
|
+
function Ra(a){var b=Pa;try{a:{try{if(b==Pa&&ka){var c=new Uint8Array(ka);break a}if(fa){c=fa(b);break a}throw"sync fetching of the wasm failed: you can preload it to Module['wasmBinary'] manually, or emcc.py will do that for you when generating HTML (but not JS)";}catch(g){x(g)}c=void 0}var d=new WebAssembly.Module(c);var f=new WebAssembly.Instance(d,a)}catch(g){throw a=g.toString(),n("failed to compile wasm module: "+a),(0<=a.indexOf("imported Memory")||0<=a.indexOf("memory import"))&&n("Memory size incompatibility issues may be due to changing INITIAL_MEMORY at runtime to something too large. Use ALLOW_MEMORY_GROWTH to allow any size memory (and also make sure not to set INITIAL_MEMORY at runtime to something smaller than it was at compile time)."),
|
|
21
|
+
g;}return[f,d]}var K,M,Sa={490460:function(){if(self.crypto&&self.crypto.getRandomValues){var a=new Uint32Array(1);self.crypto.getRandomValues(a);return a[0]}return 9007199254740991*Math.random()}};function Ta(a){for(;0<a.length;){var b=a.shift();if("function"==typeof b)b(e);else{var c=b.md;"number"===typeof c?void 0===b.Fc?I.get(c)():I.get(c)(b.Fc):c(void 0===b.Fc?null:b.Fc)}}}var Ua;Ua=function(){return performance.now()};
|
|
22
|
+
function Va(a,b){if(0===a)a=Date.now();else if(1===a||4===a)a=Ua();else return G[Wa()>>2]=28,-1;G[b>>2]=a/1E3|0;G[b+4>>2]=a%1E3*1E6|0;return 0}function Xa(a){this.yc=a-16;this.Dd=function(b){G[this.yc+8>>2]=b};this.Ad=function(b){G[this.yc+0>>2]=b};this.Bd=function(){G[this.yc+4>>2]=0};this.zd=function(){D[this.yc+12>>0]=0};this.Cd=function(){D[this.yc+13>>0]=0};this.pd=function(b,c){this.Dd(b);this.Ad(c);this.Bd();this.zd();this.Cd()}}var Za=0;
|
|
23
|
+
function $a(a,b){for(var c=0,d=a.length-1;0<=d;d--){var f=a[d];"."===f?a.splice(d,1):".."===f?(a.splice(d,1),c++):c&&(a.splice(d,1),c--)}if(b)for(;c;c--)a.unshift("..");return a}function ab(a){var b="/"===a.charAt(0),c="/"===a.substr(-1);(a=$a(a.split("/").filter(function(d){return!!d}),!b).join("/"))||b||(a=".");a&&c&&(a+="/");return(b?"/":"")+a}
|
|
24
|
+
function bb(a){var b=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(a).slice(1);a=b[0];b=b[1];if(!a&&!b)return".";b&&(b=b.substr(0,b.length-1));return a+b}function cb(a){if("/"===a)return"/";a=ab(a);a=a.replace(/\/$/,"");var b=a.lastIndexOf("/");return-1===b?a:a.substr(b+1)}
|
|
25
|
+
function db(){if("object"===typeof crypto&&"function"===typeof crypto.getRandomValues){var a=new Uint8Array(1);return function(){crypto.getRandomValues(a);return a[0]}}return function(){x("randomDevice")}}
|
|
26
|
+
function eb(){for(var a="",b=!1,c=arguments.length-1;-1<=c&&!b;c--){b=0<=c?arguments[c]:"/";if("string"!==typeof b)throw new TypeError("Arguments to path.resolve must be strings");if(!b)return"";a=b+"/"+a;b="/"===b.charAt(0)}a=$a(a.split("/").filter(function(d){return!!d}),!b).join("/");return(b?"/":"")+a||"."}var fb=[];function gb(a,b){fb[a]={input:[],nc:[],xc:b};hb(a,ib)}
|
|
27
|
+
var ib={open:function(a){var b=fb[a.node.Cc];if(!b)throw new N(43);a.lc=b;a.seekable=!1},close:function(a){a.lc.xc.flush(a.lc)},flush:function(a){a.lc.xc.flush(a.lc)},read:function(a,b,c,d){if(!a.lc||!a.lc.xc.Zc)throw new N(60);for(var f=0,g=0;g<d;g++){try{var k=a.lc.xc.Zc(a.lc)}catch(q){throw new N(29);}if(void 0===k&&0===f)throw new N(6);if(null===k||void 0===k)break;f++;b[c+g]=k}f&&(a.node.timestamp=Date.now());return f},write:function(a,b,c,d){if(!a.lc||!a.lc.xc.Rc)throw new N(60);try{for(var f=
|
|
28
|
+
0;f<d;f++)a.lc.xc.Rc(a.lc,b[c+f])}catch(g){throw new N(29);}d&&(a.node.timestamp=Date.now());return f}},kb={Zc:function(a){if(!a.input.length){var b=null;"undefined"!=typeof window&&"function"==typeof window.prompt?(b=window.prompt("Input: "),null!==b&&(b+="\n")):"function"==typeof readline&&(b=readline(),null!==b&&(b+="\n"));if(!b)return null;a.input=jb(b,!0)}return a.input.shift()},Rc:function(a,b){null===b||10===b?(ha(va(a.nc,0)),a.nc=[]):0!=b&&a.nc.push(b)},flush:function(a){a.nc&&0<a.nc.length&&
|
|
29
|
+
(ha(va(a.nc,0)),a.nc=[])}},lb={Rc:function(a,b){null===b||10===b?(n(va(a.nc,0)),a.nc=[]):0!=b&&a.nc.push(b)},flush:function(a){a.nc&&0<a.nc.length&&(n(va(a.nc,0)),a.nc=[])}},P={qc:null,sc:function(){return P.createNode(null,"/",16895,0)},createNode:function(a,b,c,d){if(24576===(c&61440)||4096===(c&61440))throw new N(63);P.qc||(P.qc={dir:{node:{pc:P.hc.pc,rc:P.hc.rc,Ac:P.hc.Ac,Hc:P.hc.Hc,dd:P.hc.dd,Nc:P.hc.Nc,ed:P.hc.ed,Ic:P.hc.Ic,Jc:P.hc.Jc},stream:{vc:P.jc.vc}},file:{node:{pc:P.hc.pc,rc:P.hc.rc},
|
|
30
|
+
stream:{vc:P.jc.vc,read:P.jc.read,write:P.jc.write,Uc:P.jc.Uc,$c:P.jc.$c,bd:P.jc.bd}},link:{node:{pc:P.hc.pc,rc:P.hc.rc,Dc:P.hc.Dc},stream:{}},Vc:{node:{pc:P.hc.pc,rc:P.hc.rc},stream:mb}});c=nb(a,b,c,d);16384===(c.mode&61440)?(c.hc=P.qc.dir.node,c.jc=P.qc.dir.stream,c.ic={}):32768===(c.mode&61440)?(c.hc=P.qc.file.node,c.jc=P.qc.file.stream,c.kc=0,c.ic=null):40960===(c.mode&61440)?(c.hc=P.qc.link.node,c.jc=P.qc.link.stream):8192===(c.mode&61440)&&(c.hc=P.qc.Vc.node,c.jc=P.qc.Vc.stream);c.timestamp=
|
|
31
|
+
Date.now();a&&(a.ic[b]=c,a.timestamp=c.timestamp);return c},Pd:function(a){return a.ic?a.ic.subarray?a.ic.subarray(0,a.kc):new Uint8Array(a.ic):new Uint8Array(0)},Wc:function(a,b){var c=a.ic?a.ic.length:0;c>=b||(b=Math.max(b,c*(1048576>c?2:1.125)>>>0),0!=c&&(b=Math.max(b,256)),c=a.ic,a.ic=new Uint8Array(b),0<a.kc&&a.ic.set(c.subarray(0,a.kc),0))},xd:function(a,b){if(a.kc!=b)if(0==b)a.ic=null,a.kc=0;else{var c=a.ic;a.ic=new Uint8Array(b);c&&a.ic.set(c.subarray(0,Math.min(b,a.kc)));a.kc=b}},hc:{pc:function(a){var b=
|
|
32
|
+
{};b.kd=8192===(a.mode&61440)?a.id:1;b.Qc=a.id;b.mode=a.mode;b.vd=1;b.uid=0;b.nd=0;b.Cc=a.Cc;16384===(a.mode&61440)?b.size=4096:32768===(a.mode&61440)?b.size=a.kc:40960===(a.mode&61440)?b.size=a.link.length:b.size=0;b.fd=new Date(a.timestamp);b.ud=new Date(a.timestamp);b.jd=new Date(a.timestamp);b.gd=4096;b.hd=Math.ceil(b.size/b.gd);return b},rc:function(a,b){void 0!==b.mode&&(a.mode=b.mode);void 0!==b.timestamp&&(a.timestamp=b.timestamp);void 0!==b.size&&P.xd(a,b.size)},Ac:function(){throw ob[44];
|
|
33
|
+
},Hc:function(a,b,c,d){return P.createNode(a,b,c,d)},dd:function(a,b,c){if(16384===(a.mode&61440)){try{var d=pb(b,c)}catch(g){}if(d)for(var f in d.ic)throw new N(55);}delete a.parent.ic[a.name];a.parent.timestamp=Date.now();a.name=c;b.ic[c]=a;b.timestamp=a.parent.timestamp;a.parent=b},Nc:function(a,b){delete a.ic[b];a.timestamp=Date.now()},ed:function(a,b){var c=pb(a,b),d;for(d in c.ic)throw new N(55);delete a.ic[b];a.timestamp=Date.now()},Ic:function(a){var b=[".",".."],c;for(c in a.ic)a.ic.hasOwnProperty(c)&&
|
|
34
|
+
b.push(c);return b},Jc:function(a,b,c){a=P.createNode(a,b,41471,0);a.link=c;return a},Dc:function(a){if(40960!==(a.mode&61440))throw new N(28);return a.link}},jc:{read:function(a,b,c,d,f){var g=a.node.ic;if(f>=a.node.kc)return 0;a=Math.min(a.node.kc-f,d);if(8<a&&g.subarray)b.set(g.subarray(f,f+a),c);else for(d=0;d<a;d++)b[c+d]=g[f+d];return a},write:function(a,b,c,d,f,g){b.buffer===D.buffer&&(g=!1);if(!d)return 0;a=a.node;a.timestamp=Date.now();if(b.subarray&&(!a.ic||a.ic.subarray)){if(g)return a.ic=
|
|
35
|
+
b.subarray(c,c+d),a.kc=d;if(0===a.kc&&0===f)return a.ic=b.slice(c,c+d),a.kc=d;if(f+d<=a.kc)return a.ic.set(b.subarray(c,c+d),f),d}P.Wc(a,f+d);if(a.ic.subarray&&b.subarray)a.ic.set(b.subarray(c,c+d),f);else for(g=0;g<d;g++)a.ic[f+g]=b[c+g];a.kc=Math.max(a.kc,f+d);return d},vc:function(a,b,c){1===c?b+=a.position:2===c&&32768===(a.node.mode&61440)&&(b+=a.node.kc);if(0>b)throw new N(28);return b},Uc:function(a,b,c){P.Wc(a.node,b+c);a.node.kc=Math.max(a.node.kc,b+c)},$c:function(a,b,c,d,f,g){if(0!==b)throw new N(28);
|
|
36
|
+
if(32768!==(a.node.mode&61440))throw new N(43);a=a.node.ic;if(g&2||a.buffer!==Aa){if(0<d||d+c<a.length)a.subarray?a=a.subarray(d,d+c):a=Array.prototype.slice.call(a,d,d+c);d=!0;g=16384*Math.ceil(c/16384);for(b=ya(g);c<g;)D[b+c++]=0;c=b;if(!c)throw new N(48);D.set(a,c)}else d=!1,c=a.byteOffset;return{yc:c,Ld:d}},bd:function(a,b,c,d,f){if(32768!==(a.node.mode&61440))throw new N(43);if(f&2)return 0;P.jc.write(a,b,0,d,c,!1);return 0}}},qb=null,rb={},sb=[],tb=1,Q=null,ub=!0,R={},N=null,ob={};
|
|
37
|
+
function T(a,b){a=eb("/",a);b=b||{};if(!a)return{path:"",node:null};var c={Xc:!0,Sc:0},d;for(d in c)void 0===b[d]&&(b[d]=c[d]);if(8<b.Sc)throw new N(32);a=$a(a.split("/").filter(function(k){return!!k}),!1);var f=qb;c="/";for(d=0;d<a.length;d++){var g=d===a.length-1;if(g&&b.parent)break;f=pb(f,a[d]);c=ab(c+"/"+a[d]);f.Bc&&(!g||g&&b.Xc)&&(f=f.Bc.root);if(!g||b.Gc)for(g=0;40960===(f.mode&61440);)if(f=vb(c),c=eb(bb(c),f),f=T(c,{Sc:b.Sc}).node,40<g++)throw new N(32);}return{path:c,node:f}}
|
|
38
|
+
function wb(a){for(var b;;){if(a===a.parent)return a=a.sc.ad,b?"/"!==a[a.length-1]?a+"/"+b:a+b:a;b=b?a.name+"/"+b:a.name;a=a.parent}}function xb(a,b){for(var c=0,d=0;d<b.length;d++)c=(c<<5)-c+b.charCodeAt(d)|0;return(a+c>>>0)%Q.length}function pb(a,b){var c;if(c=(c=yb(a,"x"))?c:a.hc.Ac?0:2)throw new N(c,a);for(c=Q[xb(a.id,b)];c;c=c.wc){var d=c.name;if(c.parent.id===a.id&&d===b)return c}return a.hc.Ac(a,b)}function nb(a,b,c,d){a=new zb(a,b,c,d);b=xb(a.parent.id,a.name);a.wc=Q[b];return Q[b]=a}
|
|
39
|
+
var Ab={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090};function Bb(a){var b=["r","w","rw"][a&3];a&512&&(b+="w");return b}function yb(a,b){if(ub)return 0;if(-1===b.indexOf("r")||a.mode&292){if(-1!==b.indexOf("w")&&!(a.mode&146)||-1!==b.indexOf("x")&&!(a.mode&73))return 2}else return 2;return 0}function Cb(a,b){try{return pb(a,b),20}catch(c){}return yb(a,"wx")}function Db(a){var b=4096;for(a=a||0;a<=b;a++)if(!sb[a])return a;throw new N(33);}
|
|
40
|
+
function Eb(a,b){Fb||(Fb=function(){},Fb.prototype={});var c=new Fb,d;for(d in a)c[d]=a[d];a=c;b=Db(b);a.tc=b;return sb[b]=a}var mb={open:function(a){a.jc=rb[a.node.Cc].jc;a.jc.open&&a.jc.open(a)},vc:function(){throw new N(70);}};function hb(a,b){rb[a]={jc:b}}
|
|
41
|
+
function Gb(a,b){var c="/"===b,d=!b;if(c&&qb)throw new N(10);if(!c&&!d){var f=T(b,{Xc:!1});b=f.path;f=f.node;if(f.Bc)throw new N(10);if(16384!==(f.mode&61440))throw new N(54);}b={type:a,Ud:{},ad:b,td:[]};a=a.sc(b);a.sc=b;b.root=a;c?qb=a:f&&(f.Bc=b,f.sc&&f.sc.td.push(b))}function Hb(a,b,c){var d=T(a,{parent:!0}).node;a=cb(a);if(!a||"."===a||".."===a)throw new N(28);var f=Cb(d,a);if(f)throw new N(f);if(!d.hc.Hc)throw new N(63);return d.hc.Hc(d,a,b,c)}function U(a){return Hb(a,16895,0)}
|
|
42
|
+
function Ib(a,b,c){"undefined"===typeof c&&(c=b,b=438);Hb(a,b|8192,c)}function Jb(a,b){if(!eb(a))throw new N(44);var c=T(b,{parent:!0}).node;if(!c)throw new N(44);b=cb(b);var d=Cb(c,b);if(d)throw new N(d);if(!c.hc.Jc)throw new N(63);c.hc.Jc(c,b,a)}function vb(a){a=T(a).node;if(!a)throw new N(44);if(!a.hc.Dc)throw new N(28);return eb(wb(a.parent),a.hc.Dc(a))}function Kb(a,b){a=T(a,{Gc:!b}).node;if(!a)throw new N(44);if(!a.hc.pc)throw new N(63);return a.hc.pc(a)}function Lb(a){return Kb(a,!0)}
|
|
43
|
+
function Mb(a,b,c,d){if(""===a)throw new N(44);if("string"===typeof b){var f=Ab[b];if("undefined"===typeof f)throw Error("Unknown file open mode: "+b);b=f}c=b&64?("undefined"===typeof c?438:c)&4095|32768:0;if("object"===typeof a)var g=a;else{a=ab(a);try{g=T(a,{Gc:!(b&131072)}).node}catch(k){}}f=!1;if(b&64)if(g){if(b&128)throw new N(20);}else g=Hb(a,c,0),f=!0;if(!g)throw new N(44);8192===(g.mode&61440)&&(b&=-513);if(b&65536&&16384!==(g.mode&61440))throw new N(54);if(!f&&(c=g?40960===(g.mode&61440)?
|
|
44
|
+
32:16384===(g.mode&61440)&&("r"!==Bb(b)||b&512)?31:yb(g,Bb(b)):44))throw new N(c);if(b&512){c=g;c="string"===typeof c?T(c,{Gc:!0}).node:c;if(!c.hc.rc)throw new N(63);if(16384===(c.mode&61440))throw new N(31);if(32768!==(c.mode&61440))throw new N(28);if(f=yb(c,"w"))throw new N(f);c.hc.rc(c,{size:0,timestamp:Date.now()})}b&=-131713;d=Eb({node:g,path:wb(g),flags:b,seekable:!0,position:0,jc:g.jc,Id:[],error:!1},d);d.jc.open&&d.jc.open(d);!e.logReadFiles||b&1||(Nb||(Nb={}),a in Nb||(Nb[a]=1,n("FS.trackingDelegate error on read file: "+
|
|
45
|
+
a)));try{R.onOpenFile&&(g=0,1!==(b&2097155)&&(g|=1),0!==(b&2097155)&&(g|=2),R.onOpenFile(a,g))}catch(k){n("FS.trackingDelegate['onOpenFile']('"+a+"', flags) threw an exception: "+k.message)}return d}function Ob(a,b,c){if(null===a.tc)throw new N(8);if(!a.seekable||!a.jc.vc)throw new N(70);if(0!=c&&1!=c&&2!=c)throw new N(28);a.position=a.jc.vc(a,b,c);a.Id=[];return a.position}
|
|
46
|
+
function Pb(){N||(N=function(a,b){this.node=b;this.yd=function(c){this.mc=c};this.yd(a);this.message="FS error"},N.prototype=Error(),N.prototype.constructor=N,[44].forEach(function(a){ob[a]=new N(a);ob[a].stack="<generic error, no stack>"}))}var Qb;function Rb(a,b){var c=0;a&&(c|=365);b&&(c|=146);return c}
|
|
47
|
+
function Sb(a,b,c){a=ab("/dev/"+a);var d=Rb(!!b,!!c);Tb||(Tb=64);var f=Tb++<<8|0;hb(f,{open:function(g){g.seekable=!1},close:function(){c&&c.buffer&&c.buffer.length&&c(10)},read:function(g,k,q,r){for(var p=0,t=0;t<r;t++){try{var w=b()}catch(C){throw new N(29);}if(void 0===w&&0===p)throw new N(6);if(null===w||void 0===w)break;p++;k[q+t]=w}p&&(g.node.timestamp=Date.now());return p},write:function(g,k,q,r){for(var p=0;p<r;p++)try{c(k[q+p])}catch(t){throw new N(29);}r&&(g.node.timestamp=Date.now());return p}});
|
|
48
|
+
Ib(a,d,f)}var Tb,V={},Fb,Nb;
|
|
49
|
+
function Ub(a,b,c){try{var d=a(b)}catch(f){if(f&&f.node&&ab(b)!==ab(wb(f.node)))return-54;throw f;}G[c>>2]=d.kd;G[c+4>>2]=0;G[c+8>>2]=d.Qc;G[c+12>>2]=d.mode;G[c+16>>2]=d.vd;G[c+20>>2]=d.uid;G[c+24>>2]=d.nd;G[c+28>>2]=d.Cc;G[c+32>>2]=0;M=[d.size>>>0,(K=d.size,1<=+Math.abs(K)?0<K?(Math.min(+Math.floor(K/4294967296),4294967295)|0)>>>0:~~+Math.ceil((K-+(~~K>>>0))/4294967296)>>>0:0)];G[c+40>>2]=M[0];G[c+44>>2]=M[1];G[c+48>>2]=4096;G[c+52>>2]=d.hd;G[c+56>>2]=d.fd.getTime()/1E3|0;G[c+60>>2]=0;G[c+64>>2]=
|
|
50
|
+
d.ud.getTime()/1E3|0;G[c+68>>2]=0;G[c+72>>2]=d.jd.getTime()/1E3|0;G[c+76>>2]=0;M=[d.Qc>>>0,(K=d.Qc,1<=+Math.abs(K)?0<K?(Math.min(+Math.floor(K/4294967296),4294967295)|0)>>>0:~~+Math.ceil((K-+(~~K>>>0))/4294967296)>>>0:0)];G[c+80>>2]=M[0];G[c+84>>2]=M[1];return 0}var Vb=void 0;function Wb(){Vb+=4;return G[Vb-4>>2]}function Xb(a){a=sb[a];if(!a)throw new N(8);return a}
|
|
51
|
+
function Yb(a,b){Zb=a;$b=b;if(ac)if(bc||(bc=!0),0==a)cc=function(){var d=Math.max(0,dc+b-Ua())|0;setTimeout(ec,d)};else if(1==a)cc=function(){fc(ec)};else if(2==a){if("undefined"===typeof setImmediate){var c=[];addEventListener("message",function(d){if("setimmediate"===d.data||"setimmediate"===d.data.target)d.stopPropagation(),c.shift()()},!0);setImmediate=function(d){c.push(d);void 0===e.setImmediates&&(e.setImmediates=[]);e.setImmediates.push(d);postMessage({target:"setimmediate"})}}cc=function(){setImmediate(ec)}}}
|
|
52
|
+
function gc(a){function b(){if(c<hc){if(!noExitRuntime)try{ic(na)}catch(d){if(!(d instanceof jc))throw d;}return!1}return!0}oa(!ac,"emscripten_set_main_loop: there can only be one main loop function at once: call emscripten_cancel_main_loop to cancel the previous one before setting a new one with different parameters.");ac=a;var c=hc;bc=!1;ec=function(){if(!ma)if(0<kc.length){var d=Date.now(),f=kc.shift();f.md(f.Fc);if(lc){var g=lc,k=0==g%1?g-1:Math.floor(g);lc=f.Md?k:(8*g+(k+.5))/9}console.log('main loop blocker "'+
|
|
53
|
+
f.name+'" took '+(Date.now()-d)+" ms");e.setStatus&&(d=e.statusMessage||"Please wait...",f=lc,g=mc.Od,f?f<g?e.setStatus(d+" ("+(g-f)+"/"+g+")"):e.setStatus(d):e.setStatus(""));b()&&setTimeout(ec,0)}else b()&&(nc=nc+1|0,1==Zb&&1<$b&&0!=nc%$b?cc():(0==Zb&&(dc=Ua()),ma||e.preMainLoop&&!1===e.preMainLoop()||(X(a),e.postMainLoop&&e.postMainLoop()),b()&&("object"===typeof SDL&&SDL.audio&&SDL.audio.wd&&SDL.audio.wd(),cc())))}}
|
|
54
|
+
function X(a){try{a()}catch(b){if(!(b instanceof jc)&&"unwind"!==b)throw b&&"object"===typeof b&&b.stack&&n("exception thrown: "+[b,b.stack]),b;}}var bc=!1,cc=null,hc=0,ac=null,Zb=0,$b=0,nc=0,kc=[],mc={},dc,ec,lc,oc=!1,pc=!1,qc=[];
|
|
55
|
+
function rc(){function a(){pc=document.pointerLockElement===e.canvas||document.mozPointerLockElement===e.canvas||document.webkitPointerLockElement===e.canvas||document.msPointerLockElement===e.canvas}e.preloadPlugins||(e.preloadPlugins=[]);if(!sc){sc=!0;try{tc=!0}catch(c){tc=!1,console.log("warning: no blob constructor, cannot create blobs with mimetypes")}uc="undefined"!=typeof MozBlobBuilder?MozBlobBuilder:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:tc?null:console.log("warning: no BlobBuilder");
|
|
56
|
+
vc="undefined"!=typeof window?window.URL?window.URL:window.webkitURL:void 0;e.cd||"undefined"!==typeof vc||(console.log("warning: Browser does not support creating object URLs. Built-in browser image decoding will not be available."),e.cd=!0);e.preloadPlugins.push({canHandle:function(c){return!e.cd&&/\.(jpg|jpeg|png|bmp)$/i.test(c)},handle:function(c,d,f,g){var k=null;if(tc)try{k=new Blob([c],{type:wc(d)}),k.size!==c.length&&(k=new Blob([(new Uint8Array(c)).buffer],{type:wc(d)}))}catch(p){ia("Blob constructor present but fails: "+
|
|
57
|
+
p+"; falling back to blob builder")}k||(k=new uc,k.append((new Uint8Array(c)).buffer),k=k.getBlob());var q=vc.createObjectURL(k),r=new Image;r.onload=function(){oa(r.complete,"Image "+d+" could not be decoded");var p=document.createElement("canvas");p.width=r.width;p.height=r.height;p.getContext("2d").drawImage(r,0,0);e.preloadedImages[d]=p;vc.revokeObjectURL(q);f&&f(c)};r.onerror=function(){console.log("Image "+q+" could not be decoded");g&&g()};r.src=q}});e.preloadPlugins.push({canHandle:function(c){return!e.Td&&
|
|
58
|
+
c.substr(-4)in{".ogg":1,".wav":1,".mp3":1}},handle:function(c,d,f,g){function k(w){r||(r=!0,e.preloadedAudios[d]=w,f&&f(c))}function q(){r||(r=!0,e.preloadedAudios[d]=new Audio,g&&g())}var r=!1;if(tc){try{var p=new Blob([c],{type:wc(d)})}catch(w){return q()}p=vc.createObjectURL(p);var t=new Audio;t.addEventListener("canplaythrough",function(){k(t)},!1);t.onerror=function(){if(!r){console.log("warning: browser could not fully decode audio "+d+", trying slower base64 approach");for(var w="",C=0,h=0,
|
|
59
|
+
u=0;u<c.length;u++)for(C=C<<8|c[u],h+=8;6<=h;){var y=C>>h-6&63;h-=6;w+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[y]}2==h?(w+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(C&3)<<4],w+="=="):4==h&&(w+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(C&15)<<2],w+="=");t.src="data:audio/x-"+d.substr(-3)+";base64,"+w;k(t)}};t.src=p;xc(function(){k(t)},1E4)}else return q()}});var b=e.canvas;b&&(b.requestPointerLock=b.requestPointerLock||
|
|
60
|
+
b.mozRequestPointerLock||b.webkitRequestPointerLock||b.msRequestPointerLock||function(){},b.exitPointerLock=document.exitPointerLock||document.mozExitPointerLock||document.webkitExitPointerLock||document.msExitPointerLock||function(){},b.exitPointerLock=b.exitPointerLock.bind(document),document.addEventListener("pointerlockchange",a,!1),document.addEventListener("mozpointerlockchange",a,!1),document.addEventListener("webkitpointerlockchange",a,!1),document.addEventListener("mspointerlockchange",a,
|
|
61
|
+
!1),e.elementPointerLock&&b.addEventListener("click",function(c){!pc&&e.canvas.requestPointerLock&&(e.canvas.requestPointerLock(),c.preventDefault())},!1))}}
|
|
62
|
+
function yc(a,b,c,d){if(b&&e.Pc&&a==e.canvas)return e.Pc;var f;if(b){var g={antialias:!1,alpha:!1,sd:1};if(d)for(var k in d)g[k]=d[k];if("undefined"!==typeof zc&&(f=Ac(a,g)))var q=Bc[f].Oc}else q=a.getContext("2d");if(!q)return null;c&&(b||oa("undefined"===typeof Cc,"cannot set in module if GLctx is used, but we are a non-GL context that would replace it"),e.Pc=q,b&&(Dc=Bc[f],e.Pc=Cc=Dc&&Dc.Oc),e.Wd=b,qc.forEach(function(r){r()}),rc());return q}var Ec=!1,Fc=void 0,Gc=void 0;
|
|
63
|
+
function Hc(a,b){function c(){oc=!1;var g=d.parentNode;(document.fullscreenElement||document.mozFullScreenElement||document.msFullscreenElement||document.webkitFullscreenElement||document.webkitCurrentFullScreenElement)===g?(d.exitFullscreen=Ic,Fc&&d.requestPointerLock(),oc=!0,Gc?("undefined"!=typeof SDL&&(G[SDL.screen>>2]=H[SDL.screen>>2]|8388608),Jc(e.canvas),Kc()):Jc(d)):(g.parentNode.insertBefore(d,g),g.parentNode.removeChild(g),Gc?("undefined"!=typeof SDL&&(G[SDL.screen>>2]=H[SDL.screen>>2]&
|
|
64
|
+
-8388609),Jc(e.canvas),Kc()):Jc(d));if(e.onFullScreen)e.onFullScreen(oc);if(e.onFullscreen)e.onFullscreen(oc)}Fc=a;Gc=b;"undefined"===typeof Fc&&(Fc=!0);"undefined"===typeof Gc&&(Gc=!1);var d=e.canvas;Ec||(Ec=!0,document.addEventListener("fullscreenchange",c,!1),document.addEventListener("mozfullscreenchange",c,!1),document.addEventListener("webkitfullscreenchange",c,!1),document.addEventListener("MSFullscreenChange",c,!1));var f=document.createElement("div");d.parentNode.insertBefore(f,d);f.appendChild(d);
|
|
61
65
|
f.requestFullscreen=f.requestFullscreen||f.mozRequestFullScreen||f.msRequestFullscreen||(f.webkitRequestFullscreen?function(){f.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT)}:null)||(f.webkitRequestFullScreen?function(){f.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT)}:null);f.requestFullscreen()}
|
|
62
|
-
function
|
|
63
|
-
function
|
|
64
|
-
function
|
|
65
|
-
g)}
|
|
66
|
-
function
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
function
|
|
71
|
-
function
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
function
|
|
66
|
+
function Ic(){if(!oc)return!1;(document.exitFullscreen||document.cancelFullScreen||document.mozCancelFullScreen||document.msExitFullscreen||document.webkitCancelFullScreen||function(){}).apply(document,[]);return!0}var Lc=0;function fc(a){if("function"===typeof requestAnimationFrame)requestAnimationFrame(a);else{var b=Date.now();if(0===Lc)Lc=b+1E3/60;else for(;b+2>=Lc;)Lc+=1E3/60;setTimeout(a,Math.max(Lc-b,0))}}function Mc(a){fc(function(){X(a)})}function xc(a,b){setTimeout(function(){X(a)},b)}
|
|
67
|
+
function wc(a){return{jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",bmp:"image/bmp",ogg:"audio/ogg",wav:"audio/wav",mp3:"audio/mpeg"}[a.substr(a.lastIndexOf(".")+1)]}var Nc=[];function Kc(){var a=e.canvas;Nc.forEach(function(b){b(a.width,a.height)})}
|
|
68
|
+
function Jc(a,b,c){b&&c?(a.Jd=b,a.od=c):(b=a.Jd,c=a.od);var d=b,f=c;e.forcedAspectRatio&&0<e.forcedAspectRatio&&(d/f<e.forcedAspectRatio?d=Math.round(f*e.forcedAspectRatio):f=Math.round(d/e.forcedAspectRatio));if((document.fullscreenElement||document.mozFullScreenElement||document.msFullscreenElement||document.webkitFullscreenElement||document.webkitCurrentFullScreenElement)===a.parentNode&&"undefined"!=typeof screen){var g=Math.min(screen.width/d,screen.height/f);d=Math.round(d*g);f=Math.round(f*
|
|
69
|
+
g)}Gc?(a.width!=d&&(a.width=d),a.height!=f&&(a.height=f),"undefined"!=typeof a.style&&(a.style.removeProperty("width"),a.style.removeProperty("height"))):(a.width!=b&&(a.width=b),a.height!=c&&(a.height=c),"undefined"!=typeof a.style&&(d!=b||f!=c?(a.style.setProperty("width",d+"px","important"),a.style.setProperty("height",f+"px","important")):(a.style.removeProperty("width"),a.style.removeProperty("height"))))}var sc,tc,uc,vc;function Oc(){return!1}e._emscripten_is_main_browser_thread=Oc;var Pc=[];
|
|
70
|
+
function Y(a,b){H[a>>2]=b;H[a+4>>2]=b/4294967296|0}var Qc;
|
|
71
|
+
function Rc(a,b,c,d,f){function g(B){var O=0,L=0;B&&(L=v.response?v.response.byteLength:0,O=ya(L),A.set(new Uint8Array(v.response),O));H[a+12>>2]=O;Y(a+16,L)}var k=H[a+8>>2];if(k){var q=E(k),r=a+112,p=E(r);p||(p="GET");var t=H[r+52>>2],w=H[r+56>>2],C=!!H[r+60>>2],h=H[r+68>>2],u=H[r+72>>2];k=H[r+76>>2];var y=H[r+80>>2],J=H[r+84>>2];r=H[r+88>>2];var S=!!(t&1),W=!!(t&2);t=!!(t&64);h=h?E(h):void 0;u=u?E(u):void 0;var Ya=y?E(y):void 0,v=new XMLHttpRequest;v.withCredentials=C;v.open(p,q,!t,h,u);t||(v.timeout=
|
|
72
|
+
w);v.Rd=q;v.responseType="arraybuffer";y&&v.overrideMimeType(Ya);if(k)for(;;){p=H[k>>2];if(!p)break;q=H[k+4>>2];if(!q)break;k+=8;p=E(p);q=E(q);v.setRequestHeader(p,q)}Pc.push(v);H[a+0>>2]=Pc.length;k=J&&r?A.slice(J,J+r):null;v.onload=function(B){g(S&&!W);var O=v.response?v.response.byteLength:0;Y(a+24,0);O&&Y(a+32,O);F[a+40>>1]=v.readyState;F[a+42>>1]=v.status;v.statusText&&z(v.statusText,A,a+44,64);200<=v.status&&300>v.status?b&&b(a,v,B):c&&c(a,v,B)};v.onerror=function(B){g(S);var O=v.status;Y(a+
|
|
73
|
+
24,0);Y(a+32,v.response?v.response.byteLength:0);F[a+40>>1]=v.readyState;F[a+42>>1]=O;c&&c(a,v,B)};v.ontimeout=function(B){c&&c(a,v,B)};v.onprogress=function(B){var O=S&&W&&v.response?v.response.byteLength:0,L=0;S&&W&&(L=ya(O),A.set(new Uint8Array(v.response),L));H[a+12>>2]=L;Y(a+16,O);Y(a+24,B.loaded-O);Y(a+32,B.total);F[a+40>>1]=v.readyState;3<=v.readyState&&0===v.status&&0<B.loaded&&(v.status=200);F[a+42>>1]=v.status;v.statusText&&z(v.statusText,A,a+44,64);d&&d(a,v,B);L&&Sc(L)};v.onreadystatechange=
|
|
74
|
+
function(B){F[a+40>>1]=v.readyState;2<=v.readyState&&(F[a+42>>1]=v.status);f&&f(a,v,B)};try{v.send(k)}catch(B){c&&c(a,v,B)}}else c(a,0,"no url specified!")}
|
|
75
|
+
function Tc(a,b,c,d){var f=Qc;if(f){var g=H[a+112+64>>2];g||(g=H[a+8>>2]);var k=E(g);try{var q=f.transaction(["FILES"],"readwrite").objectStore("FILES").put(b,k);q.onsuccess=function(){F[a+40>>1]=4;F[a+42>>1]=200;z("OK",A,a+44,64);c(a,0,k)};q.onerror=function(r){F[a+40>>1]=4;F[a+42>>1]=413;z("Payload Too Large",A,a+44,64);d(a,0,r)}}catch(r){d(a,0,r)}}else d(a,0,"IndexedDB not available!")}
|
|
76
|
+
function Uc(a,b,c){var d=Qc;if(d){var f=H[a+112+64>>2];f||(f=H[a+8>>2]);f=E(f);try{var g=d.transaction(["FILES"],"readonly").objectStore("FILES").get(f);g.onsuccess=function(k){if(k.target.result){k=k.target.result;var q=k.byteLength||k.length,r=ya(q);A.set(new Uint8Array(k),r);H[a+12>>2]=r;Y(a+16,q);Y(a+24,0);Y(a+32,q);F[a+40>>1]=4;F[a+42>>1]=200;z("OK",A,a+44,64);b(a,0,k)}else F[a+40>>1]=4,F[a+42>>1]=404,z("Not Found",A,a+44,64),c(a,0,"no data")};g.onerror=function(k){F[a+40>>1]=4;F[a+42>>1]=404;
|
|
77
|
+
z("Not Found",A,a+44,64);c(a,0,k)}}catch(k){c(a,0,k)}}else c(a,0,"IndexedDB not available!")}
|
|
78
|
+
function Vc(a,b,c){var d=Qc;if(d){var f=H[a+112+64>>2];f||(f=H[a+8>>2]);f=E(f);try{var g=d.transaction(["FILES"],"readwrite").objectStore("FILES").delete(f);g.onsuccess=function(k){k=k.target.result;H[a+12>>2]=0;Y(a+16,0);Y(a+24,0);Y(a+32,0);F[a+40>>1]=4;F[a+42>>1]=200;z("OK",A,a+44,64);b(a,0,k)};g.onerror=function(k){F[a+40>>1]=4;F[a+42>>1]=404;z("Not Found",A,a+44,64);c(a,0,k)}}catch(k){c(a,0,k)}}else c(a,0,"IndexedDB not available!")}var Wc={};
|
|
79
|
+
function Xc(){if(!Yc){var a={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"===typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:da||"./this.program"},b;for(b in Wc)a[b]=Wc[b];var c=[];for(b in a)c.push(b+"="+a[b]);Yc=c}return Yc}var Yc;
|
|
75
80
|
function Zc(a){var b=a.getExtension("ANGLE_instanced_arrays");b&&(a.vertexAttribDivisor=function(c,d){b.vertexAttribDivisorANGLE(c,d)},a.drawArraysInstanced=function(c,d,f,g){b.drawArraysInstancedANGLE(c,d,f,g)},a.drawElementsInstanced=function(c,d,f,g,k){b.drawElementsInstancedANGLE(c,d,f,g,k)})}
|
|
76
|
-
function $c(a){var b=a.getExtension("OES_vertex_array_object");b&&(a.createVertexArray=function(){return b.createVertexArrayOES()},a.deleteVertexArray=function(c){b.deleteVertexArrayOES(c)},a.bindVertexArray=function(c){b.bindVertexArrayOES(c)},a.isVertexArray=function(c){return b.isVertexArrayOES(c)})}function ad(a){var b=a.getExtension("WEBGL_draw_buffers");b&&(a.drawBuffers=function(c,d){b.drawBuffersWEBGL(c,d)})}var bd=1,cd=[],
|
|
77
|
-
function dd(a){for(var b=bd++,c=a.length;c<b;c++)a[c]=null;return b}function
|
|
78
|
-
function fd(a){a||(a=
|
|
79
|
-
function hd(){
|
|
81
|
+
function $c(a){var b=a.getExtension("OES_vertex_array_object");b&&(a.createVertexArray=function(){return b.createVertexArrayOES()},a.deleteVertexArray=function(c){b.deleteVertexArrayOES(c)},a.bindVertexArray=function(c){b.bindVertexArrayOES(c)},a.isVertexArray=function(c){return b.isVertexArrayOES(c)})}function ad(a){var b=a.getExtension("WEBGL_draw_buffers");b&&(a.drawBuffers=function(c,d){b.drawBuffersWEBGL(c,d)})}var bd=1,cd=[],Bc=[];
|
|
82
|
+
function dd(a){for(var b=bd++,c=a.length;c<b;c++)a[c]=null;return b}function Ac(a,b){a.Yc||(a.Yc=a.getContext,a.getContext=function(d,f){f=a.Yc(d,f);return"webgl"==d==f instanceof WebGLRenderingContext?f:null});var c=a.getContext("webgl",b);return c?ed(c,b):0}function ed(a,b){var c=dd(Bc),d={Qd:c,attributes:b,version:b.sd,Oc:a};a.canvas&&(a.canvas.Kd=d);Bc[c]=d;("undefined"===typeof b.ld||b.ld)&&fd(d);return c}
|
|
83
|
+
function fd(a){a||(a=Dc);if(!a.qd){a.qd=!0;var b=a.Oc;Zc(b);$c(b);ad(b);b.Nd=b.getExtension("EXT_disjoint_timer_query");b.Sd=b.getExtension("WEBGL_multi_draw");(b.getSupportedExtensions()||[]).forEach(function(c){0>c.indexOf("lose_context")&&0>c.indexOf("debug")&&b.getExtension(c)})}}var zc={},gd,Dc;
|
|
84
|
+
function hd(a,b){a=new Date(1E3*G[a>>2]);G[b>>2]=a.getUTCSeconds();G[b+4>>2]=a.getUTCMinutes();G[b+8>>2]=a.getUTCHours();G[b+12>>2]=a.getUTCDate();G[b+16>>2]=a.getUTCMonth();G[b+20>>2]=a.getUTCFullYear()-1900;G[b+24>>2]=a.getUTCDay();G[b+36>>2]=0;G[b+32>>2]=0;G[b+28>>2]=(a.getTime()-Date.UTC(a.getUTCFullYear(),0,1,0,0,0,0))/864E5|0;hd.Tc||(hd.Tc=xa("GMT"));G[b+40>>2]=hd.Tc;return b}
|
|
85
|
+
function id(){function a(k){return(k=k.toTimeString().match(/\(([A-Za-z ]+)\)$/))?k[1]:"GMT"}if(!jd){jd=!0;var b=(new Date).getFullYear(),c=new Date(b,0,1),d=new Date(b,6,1);b=c.getTimezoneOffset();var f=d.getTimezoneOffset(),g=Math.max(b,f);G[kd()>>2]=60*g;G[ld()>>2]=Number(b!=f);c=a(c);d=a(d);c=xa(c);d=xa(d);f<b?(G[md()>>2]=c,G[md()+4>>2]=d):(G[md()>>2]=d,G[md()+4>>2]=c)}}var jd;function nd(a){return 0===a%4&&(0!==a%100||0===a%400)}function od(a,b){for(var c=0,d=0;d<=b;c+=a[d++]);return c}
|
|
80
86
|
var pd=[31,29,31,30,31,30,31,31,30,31,30,31],qd=[31,28,31,30,31,30,31,31,30,31,30,31];function rd(a,b){for(a=new Date(a.getTime());0<b;){var c=a.getMonth(),d=(nd(a.getFullYear())?pd:qd)[c];if(b>d-a.getDate())b-=d-a.getDate()+1,a.setDate(1),11>c?a.setMonth(c+1):(a.setMonth(0),a.setFullYear(a.getFullYear()+1));else{a.setDate(a.getDate()+b);break}}return a}
|
|
81
|
-
function sd(a,b,c,d){function f(h,
|
|
82
|
-
0,2);case 4:return new Date(h.getFullYear(),0,1);case 5:return new Date(h.getFullYear()-1,11,31);case 6:return new Date(h.getFullYear()-1,11,30)}}function
|
|
83
|
-
36>>2],
|
|
84
|
-
|
|
85
|
-
2)},"%I":function(h){h=h.
|
|
86
|
-
k(
|
|
87
|
-
new Date(h.
|
|
88
|
-
|
|
89
|
-
(function(){U("/dev");
|
|
90
|
-
(function(){U("/proc");var a=U("/proc/self");U("/proc/self/fd");
|
|
91
|
-
e.resumeMainLoop=function(){
|
|
92
|
-
(function(a,b){try{var c=indexedDB.open("emscripten_filesystem",1)}catch(d){b(d);return}c.onupgradeneeded=function(d){d=d.target.result;d.objectStoreNames.contains("FILES")&&d.deleteObjectStore("FILES");d.createObjectStore("FILES")};c.onsuccess=function(d){a(d.target.result)};c.onerror=function(d){b(d)}})(function(a){Qc=a;
|
|
93
|
-
function
|
|
94
|
-
var
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
0))
|
|
106
|
-
typeof
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
e.
|
|
113
|
-
e.
|
|
114
|
-
e.
|
|
115
|
-
e.
|
|
116
|
-
e.
|
|
117
|
-
e.
|
|
118
|
-
e.
|
|
119
|
-
e.
|
|
120
|
-
e.
|
|
121
|
-
e.
|
|
122
|
-
e.
|
|
123
|
-
e.
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
87
|
+
function sd(a,b,c,d){function f(h,u,y){for(h="number"===typeof h?h.toString():h||"";h.length<u;)h=y[0]+h;return h}function g(h,u){return f(h,u,"0")}function k(h,u){function y(S){return 0>S?-1:0<S?1:0}var J;0===(J=y(h.getFullYear()-u.getFullYear()))&&0===(J=y(h.getMonth()-u.getMonth()))&&(J=y(h.getDate()-u.getDate()));return J}function q(h){switch(h.getDay()){case 0:return new Date(h.getFullYear()-1,11,29);case 1:return h;case 2:return new Date(h.getFullYear(),0,3);case 3:return new Date(h.getFullYear(),
|
|
88
|
+
0,2);case 4:return new Date(h.getFullYear(),0,1);case 5:return new Date(h.getFullYear()-1,11,31);case 6:return new Date(h.getFullYear()-1,11,30)}}function r(h){h=rd(new Date(h.oc+1900,0,1),h.Mc);var u=new Date(h.getFullYear()+1,0,4),y=q(new Date(h.getFullYear(),0,4));u=q(u);return 0>=k(y,h)?0>=k(u,h)?h.getFullYear()+1:h.getFullYear():h.getFullYear()-1}var p=G[d+40>>2];d={Gd:G[d>>2],Fd:G[d+4>>2],Kc:G[d+8>>2],Ec:G[d+12>>2],zc:G[d+16>>2],oc:G[d+20>>2],Lc:G[d+24>>2],Mc:G[d+28>>2],Vd:G[d+32>>2],Ed:G[d+
|
|
89
|
+
36>>2],Hd:p?E(p):""};c=E(c);p={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var t in p)c=c.replace(new RegExp(t,"g"),p[t]);var w="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),
|
|
90
|
+
C="January February March April May June July August September October November December".split(" ");p={"%a":function(h){return w[h.Lc].substring(0,3)},"%A":function(h){return w[h.Lc]},"%b":function(h){return C[h.zc].substring(0,3)},"%B":function(h){return C[h.zc]},"%C":function(h){return g((h.oc+1900)/100|0,2)},"%d":function(h){return g(h.Ec,2)},"%e":function(h){return f(h.Ec,2," ")},"%g":function(h){return r(h).toString().substring(2)},"%G":function(h){return r(h)},"%H":function(h){return g(h.Kc,
|
|
91
|
+
2)},"%I":function(h){h=h.Kc;0==h?h=12:12<h&&(h-=12);return g(h,2)},"%j":function(h){return g(h.Ec+od(nd(h.oc+1900)?pd:qd,h.zc-1),3)},"%m":function(h){return g(h.zc+1,2)},"%M":function(h){return g(h.Fd,2)},"%n":function(){return"\n"},"%p":function(h){return 0<=h.Kc&&12>h.Kc?"AM":"PM"},"%S":function(h){return g(h.Gd,2)},"%t":function(){return"\t"},"%u":function(h){return h.Lc||7},"%U":function(h){var u=new Date(h.oc+1900,0,1),y=0===u.getDay()?u:rd(u,7-u.getDay());h=new Date(h.oc+1900,h.zc,h.Ec);return 0>
|
|
92
|
+
k(y,h)?g(Math.ceil((31-y.getDate()+(od(nd(h.getFullYear())?pd:qd,h.getMonth()-1)-31)+h.getDate())/7),2):0===k(y,u)?"01":"00"},"%V":function(h){var u=new Date(h.oc+1901,0,4),y=q(new Date(h.oc+1900,0,4));u=q(u);var J=rd(new Date(h.oc+1900,0,1),h.Mc);return 0>k(J,y)?"53":0>=k(u,J)?"01":g(Math.ceil((y.getFullYear()<h.oc+1900?h.Mc+32-y.getDate():h.Mc+1-y.getDate())/7),2)},"%w":function(h){return h.Lc},"%W":function(h){var u=new Date(h.oc,0,1),y=1===u.getDay()?u:rd(u,0===u.getDay()?1:7-u.getDay()+1);h=
|
|
93
|
+
new Date(h.oc+1900,h.zc,h.Ec);return 0>k(y,h)?g(Math.ceil((31-y.getDate()+(od(nd(h.getFullYear())?pd:qd,h.getMonth()-1)-31)+h.getDate())/7),2):0===k(y,u)?"01":"00"},"%y":function(h){return(h.oc+1900).toString().substring(2)},"%Y":function(h){return h.oc+1900},"%z":function(h){h=h.Ed;var u=0<=h;h=Math.abs(h)/60;return(u?"+":"-")+String("0000"+(h/60*100+h%60)).slice(-4)},"%Z":function(h){return h.Hd},"%%":function(){return"%"}};for(t in p)0<=c.indexOf(t)&&(c=c.replace(new RegExp(t,"g"),p[t](d)));t=
|
|
94
|
+
jb(c,!1);if(t.length>b)return 0;D.set(t,a);return t.length-1}var td=[];function zb(a,b,c,d){a||(a=this);this.parent=a;this.sc=a.sc;this.Bc=null;this.id=tb++;this.name=b;this.mode=c;this.hc={};this.jc={};this.Cc=d}Object.defineProperties(zb.prototype,{read:{get:function(){return 365===(this.mode&365)},set:function(a){a?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146===(this.mode&146)},set:function(a){a?this.mode|=146:this.mode&=-147}}});Pb();Q=Array(4096);Gb(P,"/");U("/tmp");U("/home");
|
|
95
|
+
U("/home/web_user");(function(){U("/dev");hb(259,{read:function(){return 0},write:function(b,c,d,f){return f}});Ib("/dev/null",259);gb(1280,kb);gb(1536,lb);Ib("/dev/tty",1280);Ib("/dev/tty1",1536);var a=db();Sb("random",a);Sb("urandom",a);U("/dev/shm");U("/dev/shm/tmp")})();
|
|
96
|
+
(function(){U("/proc");var a=U("/proc/self");U("/proc/self/fd");Gb({sc:function(){var b=nb(a,"fd",16895,73);b.hc={Ac:function(c,d){var f=sb[+d];if(!f)throw new N(8);c={parent:null,sc:{ad:"fake"},hc:{Dc:function(){return f.path}}};return c.parent=c}};return b}},"/proc/self/fd")})();e.requestFullscreen=function(a,b){Hc(a,b)};e.requestAnimationFrame=function(a){fc(a)};e.setCanvasSize=function(a,b,c){Jc(e.canvas,a,b);c||Kc()};e.pauseMainLoop=function(){cc=null;hc++};
|
|
97
|
+
e.resumeMainLoop=function(){hc++;var a=Zb,b=$b,c=ac;ac=null;gc(c);Yb(a,b);cc()};e.getUserMedia=function(){window.getUserMedia||(window.getUserMedia=navigator.getUserMedia||navigator.mozGetUserMedia);window.getUserMedia(void 0)};e.createContext=function(a,b,c,d){return yc(a,b,c,d)};
|
|
98
|
+
(function(a,b){try{var c=indexedDB.open("emscripten_filesystem",1)}catch(d){b(d);return}c.onupgradeneeded=function(d){d=d.target.result;d.objectStoreNames.contains("FILES")&&d.deleteObjectStore("FILES");d.createObjectStore("FILES")};c.onsuccess=function(d){a(d.target.result)};c.onerror=function(d){b(d)}})(function(a){Qc=a;Oa()},function(){Qc=!1;Oa()});"undefined"!==typeof ENVIRONMENT_IS_FETCH_WORKER&&ENVIRONMENT_IS_FETCH_WORKER||Na();var Cc;
|
|
99
|
+
function jb(a,b){var c=Array(wa(a)+1);a=z(a,c,0,c.length);b&&(c.length=a);return c}
|
|
100
|
+
var ud={H:function(a,b){return Va(a,b)},a:function(a){return ya(a+16)+16},b:function(a,b,c){(new Xa(a)).pd(b,c);Za++;throw a;},e:function(a,b,c){Vb=c;try{var d=Xb(a);switch(b){case 0:var f=Wb();return 0>f?-28:Mb(d.path,d.flags,0,f).tc;case 1:case 2:return 0;case 3:return d.flags;case 4:return f=Wb(),d.flags|=f,0;case 12:return f=Wb(),Ba[f+0>>1]=2,0;case 13:case 14:return 0;case 16:case 8:return-28;case 9:return G[Wa()>>2]=28,-1;default:return-28}}catch(g){return"undefined"!==typeof V&&g instanceof
|
|
101
|
+
N||x(g),-g.mc}},G:function(a,b,c){try{var d=Xb(a);if(!d.uc){var f=T(d.path,{Gc:!0}).node;if(!f.hc.Ic)throw new N(54);var g=f.hc.Ic(f);d.uc=g}a=0;for(var k=Ob(d,0,1),q=Math.floor(k/280);q<d.uc.length&&a+280<=c;){var r=d.uc[q];if("."===r[0]){var p=1;var t=4}else{var w=pb(d.node,r);p=w.id;t=8192===(w.mode&61440)?2:16384===(w.mode&61440)?4:40960===(w.mode&61440)?10:8}M=[p>>>0,(K=p,1<=+Math.abs(K)?0<K?(Math.min(+Math.floor(K/4294967296),4294967295)|0)>>>0:~~+Math.ceil((K-+(~~K>>>0))/4294967296)>>>0:0)];
|
|
102
|
+
G[b+a>>2]=M[0];G[b+a+4>>2]=M[1];M=[280*(q+1)>>>0,(K=280*(q+1),1<=+Math.abs(K)?0<K?(Math.min(+Math.floor(K/4294967296),4294967295)|0)>>>0:~~+Math.ceil((K-+(~~K>>>0))/4294967296)>>>0:0)];G[b+a+8>>2]=M[0];G[b+a+12>>2]=M[1];Ba[b+a+16>>1]=280;D[b+a+18>>0]=t;z(r,A,b+a+19,256);a+=280;q+=1}Ob(d,280*q,0);return a}catch(C){return"undefined"!==typeof V&&C instanceof N||x(C),-C.mc}},n:function(){return 42},B:function(a,b,c){Vb=c;try{var d=Xb(a);switch(b){case 21509:case 21505:return d.lc?0:-59;case 21510:case 21511:case 21512:case 21506:case 21507:case 21508:return d.lc?
|
|
103
|
+
0:-59;case 21519:if(!d.lc)return-59;var f=Wb();return G[f>>2]=0;case 21520:return d.lc?-28:-59;case 21531:a=f=Wb();if(!d.jc.rd)throw new N(59);return d.jc.rd(d,b,a);case 21523:return d.lc?0:-59;case 21524:return d.lc?0:-59;default:x("bad ioctl syscall "+b)}}catch(g){return"undefined"!==typeof V&&g instanceof N||x(g),-g.mc}},C:function(a,b){try{return a=E(a),Ub(Lb,a,b)}catch(c){return"undefined"!==typeof V&&c instanceof N||x(c),-c.mc}},p:function(a,b,c){Vb=c;try{var d=E(a),f=c?Wb():0;return Mb(d,b,
|
|
104
|
+
f).tc}catch(g){return"undefined"!==typeof V&&g instanceof N||x(g),-g.mc}},I:function(a,b){try{return a=E(a),Ub(Kb,a,b)}catch(c){return"undefined"!==typeof V&&c instanceof N||x(c),-c.mc}},E:function(a,b){try{return a=E(a),b=E(b),Jb(a,b),0}catch(c){return"undefined"!==typeof V&&c instanceof N||x(c),-c.mc}},F:function(a){try{if(!a)return-21;var b={__size__:390,domainname:325,machine:260,nodename:65,release:130,sysname:0,version:195};za("Emscripten",a+b.sysname);za("emscripten",a+b.nodename);za("1.0",
|
|
105
|
+
a+b.release);za("#1",a+b.version);za("wasm32",a+b.machine);return 0}catch(c){return"undefined"!==typeof V&&c instanceof N||x(c),-c.mc}},D:function(a){try{a=E(a);var b=T(a,{parent:!0}).node,c=cb(a),d=pb(b,c);a:{try{var f=pb(b,c)}catch(p){var g=p.mc;break a}var k=yb(b,"wx");g=k?k:16384===(f.mode&61440)?31:0}if(g)throw new N(g);if(!b.hc.Nc)throw new N(63);if(d.Bc)throw new N(10);try{R.willDeletePath&&R.willDeletePath(a)}catch(p){n("FS.trackingDelegate['willDeletePath']('"+a+"') threw an exception: "+
|
|
106
|
+
p.message)}b.hc.Nc(b,c);var q=xb(d.parent.id,d.name);if(Q[q]===d)Q[q]=d.wc;else for(var r=Q[q];r;){if(r.wc===d){r.wc=d.wc;break}r=r.wc}try{if(R.onDeletePath)R.onDeletePath(a)}catch(p){n("FS.trackingDelegate['onDeletePath']('"+a+"') threw an exception: "+p.message)}return 0}catch(p){return"undefined"!==typeof V&&p instanceof N||x(p),-p.mc}},K:function(a){delete Pc[a-1]},c:function(){x()},Q:Va,O:function(a,b){return a-b},R:function(){self.postMessage({t:"gfx"})},s:function(){var a=(new URL(location.origin)).hostname;
|
|
107
|
+
0===a.length&&(a=(new URL(location.href.replace("blob:",""))).hostname);if(/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/.test(a))0===a.indexOf("10.")&&(a="10.*"),0===a.indexOf("192.168.")&&(a="192.168.*"),0===a.indexOf("172.")&&(a="172.*"),0===a.indexOf("127.")&&(a="127.*");else{var b=new RegExp("("+String.fromCharCode(92)+".ngrok"+String.fromCharCode(92)+".io)$","i");b.test(a)&&(a="*.ngrok.io");
|
|
108
|
+
b=new RegExp("("+String.fromCharCode(92)+".arweb"+String.fromCharCode(92)+".app)$","i");b.test(a)&&(a="*.arweb.app")}b=wa(a)+1;var c=ya(b);z(a,A,c,b+1);return c},S:function(){self.postMessage({t:"licerr"})},l:function(a,b,c){td.length=0;var d;for(c>>=2;d=A[b++];)(d=105>d)&&c&1&&c++,td.push(d?Da[c++>>1]:G[c]),++c;return Sa[a].apply(null,td)},k:function(a,b,c){function d(){I.get(a)(b)}0<=c?xc(d,c):Mc(d)},J:function(){return 2147483648},M:Oc,u:function(a,b,c){A.copyWithin(a,b,b+c)},v:function(a){var b=
|
|
109
|
+
A.length;if(2147483648<a)return!1;for(var c=1;4>=c;c*=2){var d=b*(1+.2/c);d=Math.min(d,a+100663296);d=Math.max(a,d);0<d%65536&&(d+=65536-d%65536);a:{try{la.grow(Math.min(2147483648,d)-Aa.byteLength+65535>>>16);Ea();var f=1;break a}catch(g){}f=void 0}if(f)return!0}return!1},L:function(a,b,c,d,f){function g(B){Rc(B,k,p,t,r)}function k(B,O){Tc(B,O.response,function(L){X(function(){u?I.get(u)(L):b&&b(L)})},function(L){X(function(){u?I.get(u)(L):b&&b(L)})})}function q(B){Rc(B,w,p,t,r)}function r(B){X(function(){S?
|
|
110
|
+
I.get(S)(B):f&&f(B)})}function p(B){X(function(){y?I.get(y)(B):c&&c(B)})}function t(B){X(function(){J?I.get(J)(B):d&&d(B)})}function w(B){X(function(){u?I.get(u)(B):b&&b(B)})}var C=a+112,h=E(C),u=H[C+36>>2],y=H[C+40>>2],J=H[C+44>>2],S=H[C+48>>2],W=H[C+52>>2],Ya=!!(W&4),v=!!(W&32);W=!!(W&16);if("EM_IDB_STORE"===h)h=H[C+84>>2],Tc(a,A.slice(h,h+H[C+88>>2]),w,p);else if("EM_IDB_DELETE"===h)Vc(a,w,p);else if(W){if(v)return 0;Rc(a,Ya?k:w,p,t,r)}else Uc(a,w,v?p:Ya?g:q);return a},y:function(a,b){try{var c=
|
|
111
|
+
0;Xc().forEach(function(d,f){var g=b+c;G[a+4*f>>2]=g;za(d,g);c+=d.length+1});return 0}catch(d){return"undefined"!==typeof V&&d instanceof N||x(d),d.mc}},z:function(a,b){try{var c=Xc();G[a>>2]=c.length;var d=0;c.forEach(function(f){d+=f.length+1});G[b>>2]=d;return 0}catch(f){return"undefined"!==typeof V&&f instanceof N||x(f),f.mc}},N:function(a){ic(a)},g:function(a){try{var b=Xb(a);if(null===b.tc)throw new N(8);b.uc&&(b.uc=null);try{b.jc.close&&b.jc.close(b)}catch(c){throw c;}finally{sb[b.tc]=null}b.tc=
|
|
112
|
+
null;return 0}catch(c){return"undefined"!==typeof V&&c instanceof N||x(c),c.mc}},A:function(a,b,c,d){try{a:{for(var f=Xb(a),g=a=0;g<c;g++){var k=G[b+(8*g+4)>>2],q=f,r=G[b+8*g>>2],p=k,t=void 0,w=D;if(0>p||0>t)throw new N(28);if(null===q.tc)throw new N(8);if(1===(q.flags&2097155))throw new N(8);if(16384===(q.node.mode&61440))throw new N(31);if(!q.jc.read)throw new N(28);var C="undefined"!==typeof t;if(!C)t=q.position;else if(!q.seekable)throw new N(70);var h=q.jc.read(q,w,r,p,t);C||(q.position+=h);
|
|
113
|
+
var u=h;if(0>u){var y=-1;break a}a+=u;if(u<k)break}y=a}G[d>>2]=y;return 0}catch(J){return"undefined"!==typeof V&&J instanceof N||x(J),J.mc}},t:function(a,b,c,d,f){try{var g=Xb(a);a=4294967296*c+(b>>>0);if(-9007199254740992>=a||9007199254740992<=a)return-61;Ob(g,a,d);M=[g.position>>>0,(K=g.position,1<=+Math.abs(K)?0<K?(Math.min(+Math.floor(K/4294967296),4294967295)|0)>>>0:~~+Math.ceil((K-+(~~K>>>0))/4294967296)>>>0:0)];G[f>>2]=M[0];G[f+4>>2]=M[1];g.uc&&0===a&&0===d&&(g.uc=null);return 0}catch(k){return"undefined"!==
|
|
114
|
+
typeof V&&k instanceof N||x(k),k.mc}},j:function(a,b,c,d){try{a:{for(var f=Xb(a),g=a=0;g<c;g++){var k=f,q=G[b+8*g>>2],r=G[b+(8*g+4)>>2],p=void 0,t=D;if(0>r||0>p)throw new N(28);if(null===k.tc)throw new N(8);if(0===(k.flags&2097155))throw new N(8);if(16384===(k.node.mode&61440))throw new N(31);if(!k.jc.write)throw new N(28);k.seekable&&k.flags&1024&&Ob(k,0,2);var w="undefined"!==typeof p;if(!w)p=k.position;else if(!k.seekable)throw new N(70);var C=k.jc.write(k,t,q,r,p,void 0);w||(k.position+=C);try{if(k.path&&
|
|
115
|
+
R.onWriteToFile)R.onWriteToFile(k.path)}catch(y){n("FS.trackingDelegate['onWriteToFile']('"+k.path+"') threw an exception: "+y.message)}var h=C;if(0>h){var u=-1;break a}a+=h}u=a}G[d>>2]=u;return 0}catch(y){return"undefined"!==typeof V&&y instanceof N||x(y),y.mc}},f:function(a){var b=Date.now();G[a>>2]=b/1E3|0;G[a+4>>2]=b%1E3*1E3|0;return 0},m:function(a,b){Cc.bindTexture(a,cd[b])},o:function(a,b){for(var c=0;c<a;c++){var d=Cc.createTexture(),f=d&&dd(cd);d?(d.name=f,cd[f]=d):gd||(gd=1282);G[b+4*c>>
|
|
116
|
+
2]=f}},h:function(a,b,c,d,f,g,k,q,r){var p=Cc,t=p.texImage2D;if(r){var w=q-5120;w=1==w?A:4==w?G:6==w?Ca:5==w||28922==w?H:F;var C=31-Math.clz32(w.BYTES_PER_ELEMENT);r=w.subarray(r>>C,r+f*(d*({5:3,6:4,8:2,29502:3,29504:4}[k-6402]||1)*(1<<C)+4-1&-4)>>C)}else r=null;t.call(p,a,b,c,d,f,g,k,q,r)},i:function(a,b,c){Cc.texParameteri(a,b,c)},r:hd,q:function(a,b){id();a=new Date(1E3*G[a>>2]);G[b>>2]=a.getSeconds();G[b+4>>2]=a.getMinutes();G[b+8>>2]=a.getHours();G[b+12>>2]=a.getDate();G[b+16>>2]=a.getMonth();
|
|
117
|
+
G[b+20>>2]=a.getFullYear()-1900;G[b+24>>2]=a.getDay();var c=new Date(a.getFullYear(),0,1);G[b+28>>2]=(a.getTime()-c.getTime())/864E5|0;G[b+36>>2]=-(60*a.getTimezoneOffset());var d=(new Date(a.getFullYear(),6,1)).getTimezoneOffset();c=c.getTimezoneOffset();a=(d!=c&&a.getTimezoneOffset()==Math.min(c,d))|0;G[b+32>>2]=a;a=G[md()+(a?4:0)>>2];G[b+40>>2]=a;return b},P:function(){return 6},w:function(){return 28},x:function(a,b,c,d){return sd(a,b,c,d)},d:function(a){var b=Date.now()/1E3|0;a&&(G[a>>2]=b);
|
|
118
|
+
return b}},Z=function(){function a(c){e.asm=c.exports;la=e.asm.T;Ea();I=e.asm.Y;Ga.unshift(e.asm.U);Oa()}var b={a:ud};Na();if(e.instantiateWasm)try{return e.instantiateWasm(b,a)}catch(c){return n("Module.instantiateWasm callback failed with error: "+c),!1}b=Ra(b);a(b[0]);return e.asm}();e.___wasm_call_ctors=Z.U;e._zappar_has_initialized=Z.V;e._zappar_invert=Z.W;e._zappar_loaded=Z.X;e._zappar_pipeline_create=Z.Z;e._zappar_pipeline_destroy=Z._;e._zappar_pipeline_camera_frame_submit=Z.$;
|
|
119
|
+
e._zappar_pipeline_camera_frame_submit_raw_pointer=Z.aa;e._zappar_pipeline_frame_update=Z.ba;e._zappar_pipeline_camera_frame_user_data=Z.ca;e._zappar_pipeline_camera_model=Z.da;e._zappar_pipeline_frame_number=Z.ea;e._zappar_pipeline_motion_accelerometer_submit=Z.fa;e._zappar_pipeline_motion_rotation_rate_submit=Z.ga;e._zappar_pipeline_motion_attitude_submit=Z.ha;e._zappar_pipeline_motion_attitude_matrix_submit=Z.ia;e._zappar_pipeline_camera_frame_user_facing=Z.ja;
|
|
120
|
+
e._zappar_pipeline_camera_frame_texture_matrix=Z.ka;e._zappar_pipeline_camera_pose_with_attitude=Z.la;e._zappar_pipeline_camera_pose_with_origin=Z.ma;e._zappar_pipeline_camera_frame_camera_attitude=Z.na;e._zappar_pipeline_camera_frame_device_attitude=Z.oa;e._zappar_pipeline_camera_frame_texture_gl=Z.pa;e._zappar_pipeline_camera_frame_upload_gl=Z.qa;e._zappar_pipeline_sequence_record_start=Z.ra;e._zappar_pipeline_sequence_record_stop=Z.sa;e._zappar_pipeline_sequence_record_clear=Z.ta;
|
|
121
|
+
e._zappar_pipeline_sequence_record_device_attitude_matrices_set=Z.ua;e._zappar_pipeline_sequence_record_data_size=Z.va;e._zappar_pipeline_sequence_record_data=Z.wa;e._zappar_pipeline_process_gl=Z.xa;e._zappar_pipeline_camera_pose_default=Z.ya;e._zappar_instant_world_tracker_create=Z.za;e._zappar_instant_world_tracker_destroy=Z.Aa;e._zappar_instant_world_tracker_anchor_pose_set_from_camera_offset_raw=Z.Ba;e._zappar_instant_world_tracker_anchor_pose_raw=Z.Ca;
|
|
122
|
+
e._zappar_instant_world_tracker_enabled_set=Z.Da;e._zappar_instant_world_tracker_enabled=Z.Ea;e._zappar_image_tracker_create=Z.Fa;e._zappar_image_tracker_destroy=Z.Ga;e._zappar_image_tracker_target_load_from_memory=Z.Ha;e.__Z42zappar_image_tracker_target_load_from_fileP23zappar_image_tracker_tiPKc=Z.Ia;var Sc=e._free=Z.Ja;e._zappar_image_tracker_anchor_count=Z.Ka;e._zappar_image_tracker_anchor_id=Z.La;e._zappar_image_tracker_anchor_pose_raw=Z.Ma;e._zappar_image_tracker_enabled_set=Z.Na;
|
|
123
|
+
e._zappar_image_tracker_enabled=Z.Oa;e._zappar_image_tracker_target_loaded_version=Z.Pa;e.__Z33zappar_image_tracker_target_countP23zappar_image_tracker_ti=Z.Qa;e.__Z46zappar_image_tracker_target_preview_compressedP23zappar_image_tracker_tii=Z.Ra;e.__Z51zappar_image_tracker_target_preview_compressed_sizeP23zappar_image_tracker_tii=Z.Sa;e.__Z55zappar_image_tracker_target_preview_compressed_mimetypeP23zappar_image_tracker_tii=Z.Ta;
|
|
124
|
+
e.__Z40zappar_image_tracker_target_preview_rgbaP23zappar_image_tracker_tii=Z.Ua;e.__Z45zappar_image_tracker_target_preview_rgba_sizeP23zappar_image_tracker_tii=Z.Va;e.__Z46zappar_image_tracker_target_preview_rgba_widthP23zappar_image_tracker_tii=Z.Wa;e.__Z47zappar_image_tracker_target_preview_rgba_heightP23zappar_image_tracker_tii=Z.Xa;e.__Z38zappar_image_tracker_target_radius_topP23zappar_image_tracker_tii=Z.Ya;e.__Z41zappar_image_tracker_target_radius_bottomP23zappar_image_tracker_tii=Z.Za;
|
|
125
|
+
e.__Z39zappar_image_tracker_target_side_lengthP23zappar_image_tracker_tii=Z._a;e.__Z49zappar_image_tracker_target_physical_scale_factorP23zappar_image_tracker_tii=Z.$a;e._zappar_face_tracker_create=Z.ab;e._zappar_face_tracker_destroy=Z.bb;e._zappar_face_tracker_model_load_from_memory=Z.cb;e._zappar_face_tracker_anchor_count=Z.db;e._zappar_face_tracker_anchor_id=Z.eb;e._zappar_face_tracker_anchor_pose_raw=Z.fb;e._zappar_face_tracker_anchor_identity_coefficients=Z.gb;
|
|
126
|
+
e._zappar_face_tracker_anchor_expression_coefficients=Z.hb;e._zappar_face_tracker_enabled_set=Z.ib;e._zappar_face_tracker_enabled=Z.jb;e._zappar_face_tracker_max_faces_set=Z.kb;e._zappar_face_tracker_max_faces=Z.lb;e._zappar_face_tracker_model_loaded_version=Z.mb;e._zappar_face_landmark_create=Z.nb;e._zappar_face_landmark_destroy=Z.ob;e.__Z27zappar_face_landmark_updateP23zappar_face_landmark_tiPKfS2_i=Z.pb;e._zappar_face_landmark_anchor_pose=Z.qb;e._zappar_barcode_finder_create=Z.rb;
|
|
127
|
+
e._zappar_barcode_finder_destroy=Z.sb;e._zappar_barcode_finder_found_number=Z.tb;e._zappar_barcode_finder_found_text=Z.ub;e._zappar_barcode_finder_enabled_set=Z.vb;e._zappar_barcode_finder_enabled=Z.wb;e._zappar_barcode_finder_found_format=Z.xb;e._zappar_barcode_finder_formats=Z.yb;e._zappar_barcode_finder_formats_set=Z.zb;var ya=e._malloc=Z.Ab;e._zappar_face_mesh_create=Z.Bb;e._zappar_face_mesh_destroy=Z.Cb;e.__Z33zappar_face_mesh_load_from_memoryP19zappar_face_mesh_tiPKciiiii=Z.Db;
|
|
128
|
+
e.__Z29zappar_face_mesh_indices_sizeP19zappar_face_mesh_ti=Z.Eb;e.__Z25zappar_face_mesh_uvs_sizeP19zappar_face_mesh_ti=Z.Fb;e.__Z30zappar_face_mesh_vertices_sizeP19zappar_face_mesh_ti=Z.Gb;e.__Z31zappar_face_mesh_loaded_versionP19zappar_face_mesh_ti=Z.Hb;e.__Z25zappar_face_mesh_verticesP19zappar_face_mesh_ti=Z.Ib;e.__Z20zappar_face_mesh_uvsP19zappar_face_mesh_ti=Z.Jb;e.__Z24zappar_face_mesh_indicesP19zappar_face_mesh_ti=Z.Kb;e.__Z23zappar_face_mesh_updateP19zappar_face_mesh_tiPKfS2_i=Z.Lb;
|
|
129
|
+
e.__Z29zappar_face_mesh_normals_sizeP19zappar_face_mesh_ti=Z.Mb;e.__Z24zappar_face_mesh_normalsP19zappar_face_mesh_ti=Z.Nb;e._zappar_camera_source_create=Z.Ob;e._zappar_camera_source_destroy=Z.Pb;e._zappar_camera_source_start=Z.Qb;e._zappar_camera_source_pause=Z.Rb;e._zappar_camera_default_device_id=Z.Sb;e._zappar_sequence_source_create=Z.Tb;e.__Z28zappar_sequence_source_startP25zappar_sequence_source_ti=Z.Ub;e.__Z39zappar_sequence_source_load_from_memoryP25zappar_sequence_source_tiPKci=Z.Vb;
|
|
130
|
+
e.__Z28zappar_sequence_source_pauseP25zappar_sequence_source_ti=Z.Wb;e._zappar_sequence_source_destroy=Z.Xb;e._zappar_sequence_source_max_playback_fps_set=Z.Yb;e._zappar_log_level_set=Z.Zb;e._zappar_log_level=Z._b;e._zappar_analytics_project_id_set=Z.$b;var Wa=e.___errno_location=Z.ac,md=e.__get_tzname=Z.bc,ld=e.__get_daylight=Z.cc,kd=e.__get_timezone=Z.dc,sa=e.stackSave=Z.ec,ta=e.stackRestore=Z.fc,ra=e.stackAlloc=Z.gc;
|
|
131
|
+
e.cwrap=function(a,b,c,d){c=c||[];var f=c.every(function(g){return"number"===g});return"string"!==b&&f&&!d?pa(a):function(){return qa(a,b,c,arguments)}};
|
|
132
|
+
e.setValue=function(a,b,c){c=c||"i8";"*"===c.charAt(c.length-1)&&(c="i32");switch(c){case "i1":D[a>>0]=b;break;case "i8":D[a>>0]=b;break;case "i16":Ba[a>>1]=b;break;case "i32":G[a>>2]=b;break;case "i64":M=[b>>>0,(K=b,1<=+Math.abs(K)?0<K?(Math.min(+Math.floor(K/4294967296),4294967295)|0)>>>0:~~+Math.ceil((K-+(~~K>>>0))/4294967296)>>>0:0)];G[a>>2]=M[0];G[a+4>>2]=M[1];break;case "float":Ca[a>>2]=b;break;case "double":Da[a>>3]=b;break;default:x("invalid type for setValue: "+c)}};
|
|
133
|
+
e.getValue=function(a,b){b=b||"i8";"*"===b.charAt(b.length-1)&&(b="i32");switch(b){case "i1":return D[a>>0];case "i8":return D[a>>0];case "i16":return Ba[a>>1];case "i32":return G[a>>2];case "i64":return G[a>>2];case "float":return Ca[a>>2];case "double":return Da[a>>3];default:x("invalid type for getValue: "+b)}return null};e.UTF8ToString=E;var vd;function jc(a){this.name="ExitStatus";this.message="Program terminated with exit("+a+")";this.status=a}Ma=function wd(){vd||xd();vd||(Ma=wd)};
|
|
134
|
+
function xd(){function a(){if(!vd&&(vd=!0,e.calledRun=!0,!ma)){e.noFSInit||Qb||(Qb=!0,Pb(),e.stdin=e.stdin,e.stdout=e.stdout,e.stderr=e.stderr,e.stdin?Sb("stdin",e.stdin):Jb("/dev/tty","/dev/stdin"),e.stdout?Sb("stdout",null,e.stdout):Jb("/dev/tty","/dev/stdout"),e.stderr?Sb("stderr",null,e.stderr):Jb("/dev/tty1","/dev/stderr"),Mb("/dev/stdin",0),Mb("/dev/stdout",1),Mb("/dev/stderr",1));Ta(Ga);ub=!1;Ta(Ha);aa(e);if(e.onRuntimeInitialized)e.onRuntimeInitialized();if(e.postRun)for("function"==typeof e.postRun&&
|
|
135
|
+
(e.postRun=[e.postRun]);e.postRun.length;){var b=e.postRun.shift();Ia.unshift(b)}Ta(Ia)}}if(!(0<Ka)){if(e.preRun)for("function"==typeof e.preRun&&(e.preRun=[e.preRun]);e.preRun.length;)Ja();Ta(Fa);0<Ka||(e.setStatus?(e.setStatus("Running..."),setTimeout(function(){setTimeout(function(){e.setStatus("")},1);a()},1)):a())}}e.run=xd;function ic(a){na=a;if(!noExitRuntime){if(e.onExit)e.onExit(a);ma=!0}ea(a,new jc(a))}if(e.preInit)for("function"==typeof e.preInit&&(e.preInit=[e.preInit]);0<e.preInit.length;)e.preInit.pop()();
|
|
136
|
+
xd();
|
|
127
137
|
|
|
128
138
|
|
|
129
139
|
return ZCV
|