var createModule = (function() { var _scriptDir = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : undefined; return ( function(createModule) { createModule = createModule || {}; var f;f||(f=typeof createModule !== 'undefined' ? createModule : {});var aa,da;f.ready=new Promise(function(a,b){aa=a;da=b});var ea={},fa;for(fa in f)f.hasOwnProperty(fa)&&(ea[fa]=f[fa]);var ha="./this.program";function ia(a,b){throw b;}var ja="",ka,la,ma;"undefined"!==typeof document&&document.currentScript&&(ja=document.currentScript.src);_scriptDir&&(ja=_scriptDir);0!==ja.indexOf("blob:")?ja=ja.substr(0,ja.lastIndexOf("/")+1):ja=""; ka=function(a){var b=new XMLHttpRequest;b.open("GET",a,!1);b.send(null);return b.responseText};la=function(a,b,c){var d=new XMLHttpRequest;d.open("GET",a,!0);d.responseType="arraybuffer";d.onload=function(){200==d.status||0==d.status&&d.response?b(d.response):c()};d.onerror=c;d.send(null)};ma=function(a){document.title=a};var na=f.print||console.log.bind(console),k=f.printErr||console.warn.bind(console);for(fa in ea)ea.hasOwnProperty(fa)&&(f[fa]=ea[fa]);ea=null;f.thisProgram&&(ha=f.thisProgram); f.quit&&(ia=f.quit);function oa(a){pa||(pa={});pa[a]||(pa[a]=1,k(a))}var pa,qa;f.wasmBinary&&(qa=f.wasmBinary);var noExitRuntime=f.noExitRuntime||!0;"object"!==typeof WebAssembly&&l("no native wasm support detected"); function ra(a,b){var c="float";"*"===c.charAt(c.length-1)&&(c="i32");switch(c){case "i1":q[a>>0]=b;break;case "i8":q[a>>0]=b;break;case "i16":sa[a>>1]=b;break;case "i32":t[a>>2]=b;break;case "i64":ta=[b>>>0,(u=b,1<=+Math.abs(u)?0>>0:~~+Math.ceil((u-+(~~u>>>0))/4294967296)>>>0:0)];t[a>>2]=ta[0];t[a+4>>2]=ta[1];break;case "float":w[a>>2]=b;break;case "double":x[a>>3]=b;break;default:l("invalid type for setValue: "+c)}}var ua,va=!1,wa; function xa(a,b){a||l("Assertion failed: "+b)}function ya(a){var b=f["_"+a];xa(b,"Cannot call unknown function "+a+", make sure it is exported");return b}var za="undefined"!==typeof TextDecoder?new TextDecoder("utf8"):void 0; function Aa(a,b,c){var d=b+c;for(c=b;a[c]&&!(c>=d);)++c;if(16e?d+=String.fromCharCode(e):(e-=65536,d+=String.fromCharCode(55296|e>>10,56320|e&1023))}}else d+=String.fromCharCode(e)}return d}function y(a,b){return a?Aa(z,a,b):""} function Ba(a,b,c,d){if(!(0=h){var m=a.charCodeAt(++g);h=65536+((h&1023)<<10)|m&1023}if(127>=h){if(c>=d)break;b[c++]=h}else{if(2047>=h){if(c+1>=d)break;b[c++]=192|h>>6}else{if(65535>=h){if(c+2>=d)break;b[c++]=224|h>>12}else{if(c+3>=d)break;b[c++]=240|h>>18;b[c++]=128|h>>12&63}b[c++]=128|h>>6&63}b[c++]=128|h&63}}b[c]=0;return c-e}function A(a,b,c){return Ba(a,z,b,c)} function Ca(a){for(var b=0,c=0;c=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 Da(a){var b=Ca(a)+1,c=C(b);c&&Ba(a,q,c,b);return c}var Ea,q,z,sa,Fa,t,E,w,x,F,Ga=[],Ha=[],Ia=[],Ja=[],Ka=[];function La(){var a=f.preRun.shift();Ga.unshift(a)}var Ma=0,Na=null,Oa=null;function Pa(){Ma++;f.monitorRunDependencies&&f.monitorRunDependencies(Ma)} function Qa(){Ma--;f.monitorRunDependencies&&f.monitorRunDependencies(Ma);if(0==Ma&&(null!==Na&&(clearInterval(Na),Na=null),Oa)){var a=Oa;Oa=null;a()}}f.preloadedImages={};f.preloadedAudios={};function l(a){if(f.onAbort)f.onAbort(a);k(a);va=!0;wa=1;a=new WebAssembly.RuntimeError("abort("+a+"). Build with -s ASSERTIONS=1 for more info.");da(a);throw a;} function Ra(){var a=Sa;return String.prototype.startsWith?a.startsWith("data:application/octet-stream;base64,"):0===a.indexOf("data:application/octet-stream;base64,")}var Sa="egl16em.wasm";if(!Ra()){var Ta=Sa;Sa=f.locateFile?f.locateFile(Ta,ja):ja+Ta}function Ua(){var a=Sa;try{if(a==Sa&&qa)return new Uint8Array(qa);throw"both async and sync fetching of the wasm failed";}catch(b){l(b)}} function Va(){return qa||"function"!==typeof fetch?Promise.resolve().then(function(){return Ua()}):fetch(Sa,{credentials:"same-origin"}).then(function(a){if(!a.ok)throw"failed to load wasm binary file at '"+Sa+"'";return a.arrayBuffer()}).catch(function(){return Ua()})} var u,ta,Xa={55984:function(a,b,c){f.SDL2||(f.SDL2={});var d=f.SDL2;d.ti!==f.canvas&&(d.Sg=f.createContext(f.canvas,!1,!0),d.ti=f.canvas);if(d.w!==a||d.Bi!==b||d.Di!==d.Sg)d.image=d.Sg.createImageData(a,b),d.w=a,d.Bi=b,d.Di=d.Sg;a=d.image.data;b=c>>2;var e=0;if("undefined"!==typeof CanvasPixelArray&&a instanceof CanvasPixelArray)for(c=a.length;e>8&255;a[e+2]=g>>16&255;a[e+3]=255;b++;e+=4}else if(d.aj!==a&&(d.ui=new Int32Array(a.buffer),d.vi=new Uint8Array(a.buffer)), a=d.ui,c=a.length,a.set(t.subarray(b,b+c)),a=d.vi,b=3,e=b+4*c,0==c%8)for(;b>=2;var m=0,n;if("undefined"!==typeof CanvasPixelArray&&b instanceof CanvasPixelArray)for(n=b.length;m>8&255;b[m+2]=p>>16&255;b[m+3]=p>>24&255;e++;m+=4}else b=new Int32Array(b.buffer),n=b.length,b.set(t.subarray(e,e+n));h.putImageData(a,0,0);c=0===c&&0===d?"url("+g.toDataURL()+"), auto":"url("+g.toDataURL()+") "+c+" "+d+", auto";d=C(c.length+1);A(c,d,c.length+1);return d},58590:function(a){"undefined"!==typeof ma&& ma(y(a));return 0},58685:function(){return window.innerWidth},58715:function(){return window.innerHeight},58746:function(){return screen.width},58771:function(){return screen.height},58797:function(){return"undefined"!==typeof AudioContext||"undefined"!==typeof webkitAudioContext?1:0},58934:function(){return"undefined"!==typeof navigator.mediaDevices&&"undefined"!==typeof navigator.mediaDevices.getUserMedia||"undefined"!==typeof navigator.webkitGetUserMedia?1:0},59158:function(a){var b=f.SDL2;if(a){void 0!== b.capture.qh&&clearTimeout(b.capture.qh);if(void 0!==b.capture.stream){a=b.capture.stream.getAudioTracks();for(var c=0;c>2]}},63433:function(a,b){for(var c=f.SDL2,d=c.capture.Ih.numberOfChannels,e=0;e=b||(b=Math.max(b,c*(1048576>c?2:1.125)>>>0),0!=c&&(b=Math.max(b,256)),c=a.Bg,a.Bg=new Uint8Array(b),0=a.node.Eg)return 0;a=Math.min(a.node.Eg-e,d);if(8b)throw new H(28);return b},Uh:function(a,b,c){I.$h(a.node,b+c);a.node.Eg=Math.max(a.node.Eg,b+c)},hi:function(a,b,c,d,e,g){if(0!==b)throw new H(28);if(32768!== (a.node.mode&61440))throw new H(43);a=a.node.Bg;if(g&2||a.buffer!==Ea){if(0>>0)%ub.length}function pb(a,b){var c;if(c=(c=Bb(a,"x"))?c:a.Cg.kh?0:2)throw new H(c,a);for(c=ub[Ab(a.id,b)];c;c=c.eh){var d=c.name;if(c.parent.id===a.id&&d===b)return c}return a.Cg.kh(a,b)} function nb(a,b,c,d){a=new Cb(a,b,c,d);b=Ab(a.parent.id,a.name);a.eh=ub[b];return ub[b]=a}var Db={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090};function Eb(a){var b=["r","w","rw"][a&3];a&512&&(b+="w");return b}function Bb(a,b){if(vb)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 Fb(a,b){try{return pb(a,b),20}catch(c){}return Bb(a,"wx")} function Gb(a){var b=4096;for(a=a||0;a<=b;a++)if(!sb[a])return a;throw new H(33);}function Hb(a,b){Ib||(Ib=function(){},Ib.prototype={});var c=new Ib,d;for(d in a)c[d]=a[d];a=c;b=Gb(b);a.Xg=b;return sb[b]=a}var mb={open:function(a){a.Dg=rb[a.node.Bh].Dg;a.Dg.open&&a.Dg.open(a)},dh:function(){throw new H(70);}};function hb(a,b){rb[a]={Dg:b}} function Jb(a,b){var c="/"===b,d=!b;if(c&&qb)throw new H(10);if(!c&&!d){var e=xb(b,{ai:!1});b=e.path;e=e.node;if(e.oh)throw new H(10);if(16384!==(e.mode&61440))throw new H(54);}b={type:a,nj:{},ii:b,Ki:[]};a=a.Wg(b);a.Wg=b;b.root=a;c?qb=a:e&&(e.oh=b,e.Wg&&e.Wg.Ki.push(b))}function Kb(a,b,c){var d=xb(a,{parent:!0}).node;a=cb(a);if(!a||"."===a||".."===a)throw new H(28);var e=Fb(d,a);if(e)throw new H(e);if(!d.Cg.yh)throw new H(63);return d.Cg.yh(d,a,b,c)}function G(a){return Kb(a,16895,0)} function Lb(a,b,c){"undefined"===typeof c&&(c=b,b=438);return Kb(a,b|8192,c)}function Mb(a,b){if(!eb(a))throw new H(44);var c=xb(b,{parent:!0}).node;if(!c)throw new H(44);b=cb(b);var d=Fb(c,b);if(d)throw new H(d);if(!c.Cg.Dh)throw new H(63);c.Cg.Dh(c,b,a)} function Nb(a){var b=xb(a,{parent:!0}).node,c=cb(a),d=pb(b,c);a:{try{var e=pb(b,c)}catch(h){e=h.Ug;break a}var g=Bb(b,"wx");e=g?g:16384===(e.mode&61440)?31:0}if(e)throw new H(e);if(!b.Cg.Fh)throw new H(63);if(d.oh)throw new H(10);try{wb.willDeletePath&&wb.willDeletePath(a)}catch(h){k("FS.trackingDelegate['willDeletePath']('"+a+"') threw an exception: "+h.message)}b.Cg.Fh(b,c);b=Ab(d.parent.id,d.name);if(ub[b]===d)ub[b]=d.eh;else for(b=ub[b];b;){if(b.eh===d){b.eh=d.eh;break}b=b.eh}try{if(wb.onDeletePath)wb.onDeletePath(a)}catch(h){k("FS.trackingDelegate['onDeletePath']('"+ a+"') threw an exception: "+h.message)}}function yb(a){a=xb(a).node;if(!a)throw new H(44);if(!a.Cg.ph)throw new H(28);return eb(zb(a.parent),a.Cg.ph(a))}function Ob(a,b){a="string"===typeof a?xb(a,{Jh:!0}).node:a;if(!a.Cg.Kg)throw new H(63);a.Cg.Kg(a,{mode:b&4095|a.mode&-4096,timestamp:Date.now()})} function Pb(a,b,c,d){if(""===a)throw new H(44);if("string"===typeof b){var e=Db[b];if("undefined"===typeof e)throw Error("Unknown file open mode: "+b);b=e}c=b&64?("undefined"===typeof c?438:c)&4095|32768:0;if("object"===typeof a)var g=a;else{a=ab(a);try{g=xb(a,{Jh:!(b&131072)}).node}catch(h){}}e=!1;if(b&64)if(g){if(b&128)throw new H(20);}else g=Kb(a,c,0),e=!0;if(!g)throw new H(44);8192===(g.mode&61440)&&(b&=-513);if(b&65536&&16384!==(g.mode&61440))throw new H(54);if(!e&&(c=g?40960===(g.mode&61440)? 32:16384===(g.mode&61440)&&("r"!==Eb(b)||b&512)?31:Bb(g,Eb(b)):44))throw new H(c);if(b&512){c=g;c="string"===typeof c?xb(c,{Jh:!0}).node:c;if(!c.Cg.Kg)throw new H(63);if(16384===(c.mode&61440))throw new H(31);if(32768!==(c.mode&61440))throw new H(28);if(e=Bb(c,"w"))throw new H(e);c.Cg.Kg(c,{size:0,timestamp:Date.now()})}b&=-131713;d=Hb({node:g,path:zb(g),flags:b,seekable:!0,position:0,Dg:g.Dg,Qi:[],error:!1},d);d.Dg.open&&d.Dg.open(d);!f.logReadFiles||b&1||(Qb||(Qb={}),a in Qb||(Qb[a]=1,k("FS.trackingDelegate error on read file: "+ a)));try{wb.onOpenFile&&(g=0,1!==(b&2097155)&&(g|=1),0!==(b&2097155)&&(g|=2),wb.onOpenFile(a,g))}catch(h){k("FS.trackingDelegate['onOpenFile']('"+a+"', flags) threw an exception: "+h.message)}return d}function Rb(a){if(null===a.Xg)throw new H(8);a.Kh&&(a.Kh=null);try{a.Dg.close&&a.Dg.close(a)}catch(b){throw b;}finally{sb[a.Xg]=null}a.Xg=null} function Sb(a,b,c){if(null===a.Xg)throw new H(8);if(!a.seekable||!a.Dg.dh)throw new H(70);if(0!=c&&1!=c&&2!=c)throw new H(28);a.position=a.Dg.dh(a,b,c);a.Qi=[]} function Tb(a,b,c,d,e,g){if(0>d||0>e)throw new H(28);if(null===a.Xg)throw new H(8);if(0===(a.flags&2097155))throw new H(8);if(16384===(a.node.mode&61440))throw new H(31);if(!a.Dg.write)throw new H(28);a.seekable&&a.flags&1024&&Sb(a,0,2);var h="undefined"!==typeof e;if(!h)e=a.position;else if(!a.seekable)throw new H(70);b=a.Dg.write(a,b,c,d,e,g);h||(a.position+=b);try{if(a.path&&wb.onWriteToFile)wb.onWriteToFile(a.path)}catch(m){k("FS.trackingDelegate['onWriteToFile']('"+a.path+"') threw an exception: "+ m.message)}return b}function Ub(a,b){var c=c||{};c.flags=c.flags||577;a=Pb(a,c.flags,c.mode);if("string"===typeof b){var d=new Uint8Array(Ca(b)+1);b=Ba(b,d,0,d.length);Tb(a,d,0,b,void 0,c.si)}else if(ArrayBuffer.isView(b))Tb(a,b,0,b.byteLength,void 0,c.si);else throw Error("Unsupported data type");Rb(a)} function Vb(){H||(H=function(a,b){this.node=b;this.Oi=function(c){this.Ug=c};this.Oi(a);this.message="FS error"},H.prototype=Error(),H.prototype.constructor=H,[44].forEach(function(a){ob[a]=new H(a);ob[a].stack=""}))}var Wb;function Xb(a,b){var c=0;a&&(c|=365);b&&(c|=146);return c}function Yb(a,b){a="string"===typeof a?a:zb(a);for(b=b.split("/").reverse();b.length;){var c=b.pop();if(c){var d=ab(a+"/"+c);try{G(d)}catch(e){}a=d}}return d} function Zb(a,b,c,d){a=ab(("string"===typeof a?a:zb(a))+"/"+b);c=Xb(c,d);return Kb(a,(void 0!==c?c:438)&4095|32768,0)}function $b(a,b,c,d,e,g){a=b?ab(("string"===typeof a?a:zb(a))+"/"+b):a;d=Xb(d,e);e=Kb(a,(void 0!==d?d:438)&4095|32768,0);if(c){if("string"===typeof c){a=Array(c.length);b=0;for(var h=c.length;b= m.length)return 0;r=Math.min(m.length-v,r);if(m.slice)for(var B=0;B>2]}function jc(a){a=sb[a];if(!a)throw new H(8);return a}var kc;kc=function(){return performance.now()}; function lc(a,b){mc=a;nc=b;if(oc)if(pc||(pc=!0),0==a)qc=function(){var d=Math.max(0,rc+b-kc())|0;setTimeout(sc,d)};else if(1==a)qc=function(){tc(sc)};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);postMessage("setimmediate","*")}}qc=function(){setImmediate(sc)}}} function uc(a,b,c,d,e){function g(){if(h>D-6&63;D-=6;v+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[ca]}2==D?(v+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(B&3)<<4],v+="=="):4==D&&(v+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(B&15)<<2],v+="=");r.src="data:audio/x-"+d.substr(-3)+";base64,"+v;h(r)}};r.src=p;Nc(function(){h(r)})}else return m()}});var b=f.canvas;b&&(b.requestPointerLock=b.requestPointerLock||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,!1),f.elementPointerLock&& b.addEventListener("click",function(c){!Gc&&f.canvas.requestPointerLock&&(f.canvas.requestPointerLock(),c.preventDefault())},!1))}} function Oc(a,b,c,d){if(b&&f.Sg&&a==f.canvas)return f.Sg;var e;if(b){var g={antialias:!1,alpha:!0,stencil:!0,depth:!0,Ii:!0,Lh:2};if(d)for(var h in d)g[h]=d[h];if("undefined"!==typeof Pc&&(e=Qc(a,g)))var m=K[e].Qg}else m=a.getContext("2d");if(!m)return null;c&&(b||xa("undefined"===typeof L,"cannot set in module if GLctx is used, but we are a non-GL context that would replace it"),f.Sg=m,b&&Rc(e),f.Ri=b,Hc.forEach(function(n){n()}),ec());return m}var Sc=!1,Tc=void 0,Uc=void 0; function Vc(a,b){function c(){Fc=!1;var g=d.parentNode;(document.fullscreenElement||document.mozFullScreenElement||document.msFullscreenElement||document.webkitFullscreenElement||document.webkitCurrentFullScreenElement)===g?(d.exitFullscreen=Wc,Tc&&d.requestPointerLock(),Fc=!0,Uc?("undefined"!=typeof SDL&&(t[SDL.screen>>2]=E[SDL.screen>>2]|8388608),Xc(f.canvas),Yc()):Xc(d)):(g.parentNode.insertBefore(d,g),g.parentNode.removeChild(g),Uc?("undefined"!=typeof SDL&&(t[SDL.screen>>2]=E[SDL.screen>>2]& -8388609),Xc(f.canvas),Yc()):Xc(d));if(f.onFullScreen)f.onFullScreen(Fc);if(f.onFullscreen)f.onFullscreen(Fc)}Tc=a;Uc=b;"undefined"===typeof Tc&&(Tc=!0);"undefined"===typeof Uc&&(Uc=!1);var d=f.canvas;Sc||(Sc=!0,document.addEventListener("fullscreenchange",c,!1),document.addEventListener("mozfullscreenchange",c,!1),document.addEventListener("webkitfullscreenchange",c,!1),document.addEventListener("MSFullscreenChange",c,!1));var e=document.createElement("div");d.parentNode.insertBefore(e,d);e.appendChild(d); e.requestFullscreen=e.requestFullscreen||e.mozRequestFullScreen||e.msRequestFullscreen||(e.webkitRequestFullscreen?function(){e.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT)}:null)||(e.webkitRequestFullScreen?function(){e.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT)}:null);e.requestFullscreen()} function Wc(){if(!Fc)return!1;(document.exitFullscreen||document.cancelFullScreen||document.mozCancelFullScreen||document.msExitFullscreen||document.webkitCancelFullScreen||function(){}).apply(document,[]);return!0}var Zc=0;function tc(a){if("function"===typeof requestAnimationFrame)requestAnimationFrame(a);else{var b=Date.now();if(0===Zc)Zc=b+1E3/60;else for(;b+2>=Zc;)Zc+=1E3/60;setTimeout(a,Math.max(Zc-b,0))}}function Nc(a){setTimeout(function(){Ec(a)},1E4)} function Mc(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)]}function fc(a,b,c){var d="al "+a;la(a,function(e){xa(e,'Loading data file "'+a+'" failed (no arrayBuffer).');b(new Uint8Array(e));d&&Qa(d)},function(){if(c)c();else throw'Loading data file "'+a+'" failed.';});d&&Pa(d)}var $c=[];function Yc(){var a=f.canvas;$c.forEach(function(b){b(a.width,a.height)})} function Xc(a,b,c){b&&c?(a.Si=b,a.Ci=c):(b=a.Si,c=a.Ci);var d=b,e=c;f.forcedAspectRatio&&0>2]:-1;d+=y(t[b+4*e>>2],0>g?void 0:g)}return d} function Ad(a){Bd=!1;for(var b=0;bh;++h)e[h]=g[h]=null}return c}function Rc(a){J=K[a];f.Sg=L=J&&J.Qg;return!(a&&!L)}function Ed(a){a||(a=J);if(!a.Ei){a.Ei=!0;var b=a.Qg;gd(b);hd(b);b.Og=b.getExtension("EXT_disjoint_timer_query");id(b);(b.getSupportedExtensions()||[]).forEach(function(c){0>c.indexOf("lose_context")&&0>c.indexOf("debug")&&b.getExtension(c)})}} function Fd(a){var b=O[a];a=td[a]={Rh:{},Mh:0,lh:-1,mh:-1};for(var c=a.Rh,d=L.getProgramParameter(b,35718),e=0;e>2]=a.width,t[d>>2]=a.height;c=[t[c>>2],t[d>>2]];ie(b);return c}function je(a,b,c){a=Y(a);if(!a)return-4;a.width=b;a.height=c;return 0} function ke(a,b,c){if(a.Yi){var d=ge(),e=he(a.id.length+1);A(a.id,e,a.id.length+1);je(e,b,c);ie(d)}else a.width=b,a.height=c} function le(a){function b(){document.fullscreenElement||document.webkitFullscreenElement||document.msFullscreenElement||(document.removeEventListener("fullscreenchange",b),document.removeEventListener("webkitfullscreenchange",b),ke(a,d,e),a.style.width=g,a.style.height=h,a.style.backgroundColor=m,n||(document.body.style.backgroundColor="white"),document.body.style.backgroundColor=n,a.style.paddingLeft=p,a.style.paddingRight=r,a.style.paddingTop=v,a.style.paddingBottom=B,a.style.marginLeft=D,a.style.marginRight= R,a.style.marginTop=ca,a.style.marginBottom=ba,document.body.style.margin=We,document.documentElement.style.overflow=Xe,document.body.scroll=Ye,a.style.di=Ze,a.jh&&a.jh.Qg.viewport(0,0,d,e),de.uh&&F.get(de.uh)(37,0,de.Wh))}var c=fe(a),d=c[0],e=c[1],g=a.style.width,h=a.style.height,m=a.style.backgroundColor,n=document.body.style.backgroundColor,p=a.style.paddingLeft,r=a.style.paddingRight,v=a.style.paddingTop,B=a.style.paddingBottom,D=a.style.marginLeft,R=a.style.marginRight,ca=a.style.marginTop,ba= a.style.marginBottom,We=document.body.style.margin,Xe=document.documentElement.style.overflow,Ye=document.body.scroll,Ze=a.style.di;document.addEventListener("fullscreenchange",b);document.addEventListener("webkitfullscreenchange",b)}function me(a,b,c){a.style.paddingLeft=a.style.paddingRight=c+"px";a.style.paddingTop=a.style.paddingBottom=b+"px"}function ne(a){return 0>ee.indexOf(a)?a.getBoundingClientRect():{left:0,top:0}} function oe(a,b){if(0!=b.Ph||0!=b.Hh){le(a);var c=b.Pi?innerWidth:screen.width,d=b.Pi?innerHeight:screen.height,e=ne(a),g=e.width;e=e.height;var h=fe(a),m=h[0];h=h[1];3==b.Ph?(me(a,(d-e)/2,(c-g)/2),c=g,d=e):2==b.Ph&&(c*h>3]=b.timestamp;for(var c=0;c>3]=b.axes[c];for(c=0;c>3]="object"===typeof b.buttons[c]?b.buttons[c].value:b.buttons[c];for(c=0;c>2]="object"===typeof b.buttons[c]?b.buttons[c].pressed:1==b.buttons[c];t[a+1296>>2]=b.connected;t[a+1300>>2]=b.index;t[a+8>>2]=b.axes.length;t[a+12>>2]=b.buttons.length;A(b.id,a+1304,64);A(b.mapping,a+1368,64)}var re=[]; function se(a,b,c,d){if(!L.Tg){var e=1*sd[c-5120]*b;var g=yd(e);L.bindBuffer(34963,g);L.bufferSubData(34963,0,z.subarray(d,d+e));d=0}Ad(b);L.drawElements(a,b,c,d);Cd();L.Tg||L.bindBuffer(34963,null)}function te(a){switch(a){case 34962:a=34964;break;case 34963:a=34965;break;case 35051:a=35053;break;case 35052:a=35055;break;case 35982:a=35983;break;case 36662:a=36662;break;case 36663:a=36663;break;case 35345:a=35368}return(a=L.getParameter(a))?a.name|0:0} function ue(a){switch(a){case 34962:case 34963:case 36662:case 36663:case 35051:case 35052:case 35882:case 35982:case 35345:return!0;default:return!1}}function Z(a,b,c,d){for(var e=0;e>2]=h}}function ve(a,b,c,d,e,g,h,m){b=O[b];if(a=L[a](b,c))d=m&&A(a.name,m,d),e&&(t[e>>2]=d),g&&(t[g>>2]=a.size),h&&(t[h>>2]=a.type)}function we(a,b){E[a>>2]=b;E[a+4>>2]=(b-E[a>>2])/4294967296} function xe(a,b,c){if(b){var d=void 0;switch(a){case 36346:d=1;break;case 36344:0!=c&&1!=c&&V(1280);return;case 34814:case 36345:d=0;break;case 34466:var e=L.getParameter(34467);d=e?e.length:0;break;case 33309:if(2>J.version){V(1282);return}d=2*(L.getSupportedExtensions()||[]).length;break;case 33307:case 33308:if(2>J.version){V(1280);return}d=33307==a?3:0}if(void 0===d)switch(e=L.getParameter(a),typeof e){case "number":d=e;break;case "boolean":d=e?1:0;break;case "string":V(1280);return;case "object":if(null=== e)switch(a){case 34964:case 35725:case 34965:case 36006:case 36007:case 32873:case 34229:case 36662:case 36663:case 35053:case 35055:case 36010:case 35097:case 35869:case 32874:case 36389:case 35983:case 35368:case 34068:d=0;break;default:V(1280);return}else{if(e instanceof Float32Array||e instanceof Uint32Array||e instanceof Int32Array||e instanceof Array){for(a=0;a>2]=e[a];break;case 2:w[b+4*a>>2]=e[a];break;case 4:q[b+a>>0]=e[a]?1:0}return}try{d=e.name|0}catch(g){V(1280); k("GL_INVALID_ENUM in glGet"+c+"v: Unknown object returned from WebGL getParameter("+a+")! (error: "+g+")");return}}break;default:V(1280);k("GL_INVALID_ENUM in glGet"+c+"v: Native code calling glGet"+c+"v("+a+") and it returns "+e+" of type "+typeof e+"!");return}switch(c){case 1:we(b,d);break;case 0:t[b>>2]=d;break;case 2:w[b>>2]=d;break;case 4:q[b>>0]=d?1:0}}else V(1281)} function ye(a,b,c,d){if(c){b=L.getIndexedParameter(a,b);switch(typeof b){case "boolean":a=b?1:0;break;case "number":a=b;break;case "object":if(null===b)switch(a){case 35983:case 35368:a=0;break;default:V(1280);return}else if(b instanceof WebGLBuffer)a=b.name|0;else{V(1280);return}break;default:V(1280);return}switch(d){case 1:we(c,a);break;case 0:t[c>>2]=a;break;case 2:w[c>>2]=a;break;case 4:q[c>>0]=a?1:0;break;default:throw"internal emscriptenWebGLGetIndexed() error, bad type: "+d;}}else V(1281)} function ze(a){var b=Ca(a)+1,c=C(b);A(a,c,b);return c}function Ae(a,b,c,d){if(c)if(a=L.getUniform(O[a],P[b]),"number"==typeof a||"boolean"==typeof a)switch(d){case 0:t[c>>2]=a;break;case 2:w[c>>2]=a}else for(b=0;b>2]=a[b];break;case 2:w[c+4*b>>2]=a[b]}else V(1281)} function Be(a,b,c,d){if(c)if(J.Rg[a].enabled&&k("glGetVertexAttrib*v on client-side array: not supported, bad data returned"),a=L.getVertexAttrib(a,b),34975==b)t[c>>2]=a&&a.name;else if("number"==typeof a||"boolean"==typeof a)switch(d){case 0:t[c>>2]=a;break;case 2:w[c>>2]=a;break;case 5:t[c>>2]=Math.fround(a)}else for(b=0;b>2]=a[b];break;case 2:w[c+4*b>>2]=a[b];break;case 5:t[c+4*b>>2]=Math.fround(a[b])}else V(1281)} function Ce(a){a-=5120;return 0==a?q:1==a?z:2==a?sa:4==a?t:6==a?w:5==a||28922==a||28520==a||30779==a||30782==a?E:Fa}function De(a){return 31-Math.clz32(a.BYTES_PER_ELEMENT)}function Ee(a,b){if(!Qd())return-1;a=Y(a);return a?a.requestFullscreen||a.webkitRequestFullscreen?Gd&&Nd.$g?oe(a,b):b.wi?(Kd(oe,1,[a,b]),1):-2:-3:-4} function Fe(a,b){var c={target:Y(2),Hg:"beforeunload",Mg:b,Pg:function(d){d=d||event;var e=F.get(b)(28,0,a);e&&(e=y(e));if(e)return d.preventDefault(),d.returnValue=e},Lg:!0};X(c)}function Ge(a,b,c,d,e,g){Td||(Td=C(256));a={target:Y(a),Hg:g,Mg:d,Pg:function(h){h=h||event;var m=h.target.id?h.target.id:"",n=Td;A(Pd(h.target),n+0,128);A(m,n+128,128);F.get(d)(e,n,b)&&h.preventDefault()},Lg:c};X(a)} function He(a,b,c,d,e){Vd||(Vd=C(280));X({target:a,Hg:e,Mg:d,Pg:function(g){g=g||event;var h=Vd,m=document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement,n=!!m;t[h>>2]=n;t[h+4>>2]=Qd();var p=n?m:Ud,r=p&&p.id?p.id:"";A(Pd(p),h+8,128);A(r,h+136,128);t[h+264>>2]=p?p.clientWidth:0;t[h+268>>2]=p?p.clientHeight:0;t[h+272>>2]=screen.width;t[h+276>>2]=screen.height;n&&(Ud=m);F.get(d)(19,h,b)&&g.preventDefault()},Lg:c})} function Ie(a,b,c,d,e){Wd||(Wd=C(1432));b={target:Y(2),$g:!0,Hg:e,Mg:c,Pg:function(g){g=g||event;var h=Wd;qe(h,g.gamepad);F.get(c)(d,h,a)&&g.preventDefault()},Lg:b};X(b)} function Je(a,b,c,d,e,g){Xd||(Xd=C(164));a={target:Y(a),$g:!0,Hg:g,Mg:d,Pg:function(h){var m=Xd,n=m>>2;t[n]=h.location;t[n+1]=h.ctrlKey;t[n+2]=h.shiftKey;t[n+3]=h.altKey;t[n+4]=h.metaKey;t[n+5]=h.repeat;t[n+6]=h.charCode;t[n+7]=h.keyCode;t[n+8]=h.which;A(h.key||"",m+36,32);A(h.code||"",m+68,32);A(h.char||"",m+100,32);A(h.locale||"",m+132,32);F.get(d)(e,m,b)&&h.preventDefault()},Lg:c};X(a)} function Ke(a,b,c){a>>=2;t[a]=b.screenX;t[a+1]=b.screenY;t[a+2]=b.clientX;t[a+3]=b.clientY;t[a+4]=b.ctrlKey;t[a+5]=b.shiftKey;t[a+6]=b.altKey;t[a+7]=b.metaKey;sa[2*a+16]=b.button;sa[2*a+17]=b.buttons;t[a+9]=b.movementX;t[a+10]=b.movementY;c=ne(c);t[a+11]=b.clientX-c.left;t[a+12]=b.clientY-c.top}function Le(a,b,c,d,e,g){Yd||(Yd=C(64));a=Y(a);X({target:a,$g:"mousemove"!=g&&"mouseenter"!=g&&"mouseleave"!=g,Hg:g,Mg:d,Pg:function(h){h=h||event;Ke(Yd,h,a);F.get(d)(e,Yd,b)&&h.preventDefault()},Lg:c})} function Me(a,b,c,d,e){Zd||(Zd=C(260));X({target:a,Hg:e,Mg:d,Pg:function(g){g=g||event;var h=Zd,m=document.pointerLockElement||document.pi||document.Ui||document.Ti;t[h>>2]=!!m;var n=m&&m.id?m.id:"";A(Pd(m),h+4,128);A(n,h+132,128);F.get(d)(20,h,b)&&g.preventDefault()},Lg:c})} function Ne(a,b,c,d){$d||($d=C(36));a=Y(a);X({target:a,Hg:"resize",Mg:d,Pg:function(e){e=e||event;if(e.target==a){var g=document.body;if(g){var h=$d;t[h>>2]=e.detail;t[h+4>>2]=g.clientWidth;t[h+8>>2]=g.clientHeight;t[h+12>>2]=innerWidth;t[h+16>>2]=innerHeight;t[h+20>>2]=outerWidth;t[h+24>>2]=outerHeight;t[h+28>>2]=pageXOffset;t[h+32>>2]=pageYOffset;F.get(d)(10,h,b)&&e.preventDefault()}}},Lg:c})} function Oe(a,b,c,d,e,g){ae||(ae=C(1684));a=Y(a);X({target:a,$g:"touchstart"==g||"touchend"==g,Hg:g,Mg:d,Pg:function(h){for(var m={},n=h.touches,p=0;p>2;t[r+1]=h.ctrlKey;t[r+2]=h.shiftKey;t[r+3]=h.altKey;t[r+4]=h.metaKey;r+=5;var v=ne(a),B=0;for(p in m){var D=m[p];t[r]=D.identifier;t[r+1]=D.screenX;t[r+2]=D.screenY; t[r+3]=D.clientX;t[r+4]=D.clientY;t[r+5]=D.pageX;t[r+6]=D.pageY;t[r+7]=D.Gi;t[r+8]=D.Li;t[r+9]=D.clientX-v.left;t[r+10]=D.clientY-v.top;r+=13;if(31<++B)break}t[n>>2]=B;F.get(d)(e,n,b)&&h.preventDefault()},Lg:c})}function Pe(a,b,c){var d=ee[1];be||(be=C(8));X({target:d,Hg:"visibilitychange",Mg:c,Pg:function(e){e=e||event;var g=be,h=["hidden","visible","prerender","unloaded"].indexOf(document.visibilityState);t[g>>2]=document.hidden;t[g+4>>2]=h;F.get(c)(21,g,a)&&e.preventDefault()},Lg:b})} function Qe(a,b,c,d){ce||(ce=C(96));X({target:a,$g:!0,Hg:"wheel",Mg:d,Pg:function(e){e=e||event;var g=ce;Ke(g,e,a);x[g+64>>3]=e.deltaX;x[g+72>>3]=e.deltaY;x[g+80>>3]=e.deltaZ;t[g+88>>2]=e.deltaMode;F.get(d)(9,g,b)&&e.preventDefault()},Lg:c})}var Re=["default","low-power","high-performance"],Se={}; function Te(){if(!Ue){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",_:ha||"./this.program"},b;for(b in Se)a[b]=Se[b];var c=[];for(b in a)c.push(b+"="+a[b]);Ue=c}return Ue}var Ue,Ve=[];function Cb(a,b,c,d){a||(a=this);this.parent=a;this.Wg=a.Wg;this.oh=null;this.id=tb++;this.name=b;this.mode=c;this.Cg={};this.Dg={};this.Bh=d} Object.defineProperties(Cb.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}},Hi:{get:function(){return 16384===(this.mode&61440)}},ei:{get:function(){return 8192===(this.mode&61440)}}});Vb();ub=Array(4096);Jb(I,"/");G("/tmp");G("/home");G("/home/web_user"); (function(){G("/dev");hb(259,{read:function(){return 0},write:function(b,c,d,e){return e}});Lb("/dev/null",259);gb(1280,kb);gb(1536,lb);Lb("/dev/tty",1280);Lb("/dev/tty1",1536);var a=db();ac("/dev","random",a);ac("/dev","urandom",a);G("/dev/shm");G("/dev/shm/tmp")})(); (function(){G("/proc");var a=G("/proc/self");G("/proc/self/fd");Jb({Wg:function(){var b=nb(a,"fd",16895,73);b.Cg={kh:function(c,d){var e=sb[+d];if(!e)throw new H(8);c={parent:null,Wg:{ii:"fake"},Cg:{ph:function(){return e.path}}};return c.parent=c}};return b}},"/proc/self/fd")})();f.FS_createPath=Yb;f.FS_createDataFile=$b;f.FS_createPreloadedFile=dc;f.FS_createLazyFile=cc;f.FS_createDevice=ac;f.FS_unlink=Nb;f.requestFullscreen=function(a,b){Vc(a,b)};f.requestAnimationFrame=function(a){tc(a)}; f.setCanvasSize=function(a,b,c){Xc(f.canvas,a,b);c||Yc()};f.pauseMainLoop=function(){qc=null;vc++};f.resumeMainLoop=function(){vc++;var a=mc,b=nc,c=oc;oc=null;uc(c,0,!1,yc,!0);lc(a,b);qc()};f.getUserMedia=function(){window.getUserMedia||(window.getUserMedia=navigator.getUserMedia||navigator.mozGetUserMedia);window.getUserMedia(void 0)};f.createContext=function(a,b,c,d){return Oc(a,b,c,d)};for(var L,$e=0;32>$e;++$e)re.push(Array($e)); function jb(a){var b=Array(Ca(a)+1);a=Ba(a,b,0,b.length);b.length=a;return b} var cf={Z:function(a,b,c){hc=c;try{var d=jc(a);switch(b){case 0:var e=ic();return 0>e?-28:Pb(d.path,d.flags,0,e).Xg;case 1:case 2:return 0;case 3:return d.flags;case 4:return e=ic(),d.flags|=e,0;case 12:return e=ic(),sa[e+0>>1]=2,0;case 13:case 14:return 0;case 16:case 8:return-28;case 9:return t[af()>>2]=28,-1;default:return-28}}catch(g){return"undefined"!==typeof gc&&g instanceof H||l(g),-g.Ug}},Ma:function(a,b,c){hc=c;try{var d=jc(a);switch(b){case 21509:case 21505:return d.Fg?0:-59;case 21510:case 21511:case 21512:case 21506:case 21507:case 21508:return d.Fg? 0:-59;case 21519:if(!d.Fg)return-59;var e=ic();return t[e>>2]=0;case 21520:return d.Fg?-28:-59;case 21531:a=e=ic();if(!d.Dg.Fi)throw new H(59);return d.Dg.Fi(d,b,a);case 21523:return d.Fg?0:-59;case 21524:return d.Fg?0:-59;default:l("bad ioctl syscall "+b)}}catch(g){return"undefined"!==typeof gc&&g instanceof H||l(g),-g.Ug}},Na:function(a,b,c){hc=c;try{var d=y(a),e=c?ic():0;return Pb(d,b,e).Xg}catch(g){return"undefined"!==typeof gc&&g instanceof H||l(g),-g.Ug}},n:function(){l()},e:function(a,b){if(0=== a)a=Date.now();else if(1===a||4===a)a=kc();else return t[af()>>2]=28,-1;t[b>>2]=a/1E3|0;t[b+4>>2]=a%1E3*1E6|0;return 0},r:function(){l("To use dlopen, you need to use Emscripten's linking support, see https://github.com/emscripten-core/emscripten/wiki/Linking")},K:function(a){if(12448==a)return M=12288,1;M=12300;return 0},P:function(a,b,c,d,e){if(62E3!=a)M=12296,c=0;else{if(b)for(;;){a=t[b>>2];if(12321==a)N.alpha=0>2];else if(12325==a)N.depth=0>2];else if(12326==a)N.stencil=0> 2];else if(12337==a)a=t[b+4>>2],N.antialias=0>2],N.antialias=1==a;else if(12544==a)N.Ii=12547!=t[b+4>>2];else if(12344==a)break;b+=8}c&&d||e?(e&&(t[e>>2]=1),c&&0>2]=62002),M=12288,c=1):(M=12300,c=0)}return c},z:function(a,b,c,d){if(62E3!=a)return M=12296,0;for(a=1;;){b=t[d>>2];if(12440==b)a=t[d+4>>2];else if(12344==b)break;else return M=12292,0;d+=8}if(2>a||3>2]=N.alpha?32:24,1;case 12321:return t[d>>2]=N.alpha?8:0,1;case 12322:return t[d>>2]=8,1;case 12323:return t[d>>2]=8,1;case 12324:return t[d>>2]=8,1;case 12325:return t[d>>2]=N.depth?24:0,1;case 12326:return t[d>>2]=N.stencil?8:0,1;case 12327:return t[d>>2]=12344,1;case 12328:return t[d>>2]=62002,1;case 12329:return t[d>>2]=0,1;case 12330:return t[d>> 2]=4096,1;case 12331:return t[d>>2]=16777216,1;case 12332:return t[d>>2]=4096,1;case 12333:return t[d>>2]=0,1;case 12334:return t[d>>2]=0,1;case 12335:return t[d>>2]=12344,1;case 12337:return t[d>>2]=N.antialias?4:0,1;case 12338:return t[d>>2]=N.antialias?1:0,1;case 12339:return t[d>>2]=4,1;case 12340:return t[d>>2]=12344,1;case 12341:case 12342:case 12343:return t[d>>2]=-1,1;case 12345:case 12346:return t[d>>2]=0,1;case 12347:return t[d>>2]=0,1;case 12348:return t[d>>2]=1;case 12349:case 12350:return t[d>> 2]=0,1;case 12351:return t[d>>2]=12430,1;case 12352:return t[d>>2]=4,1;case 12354:return t[d>>2]=0,1;default:return M=12292,0}},p:function(){M=12288;return 62E3},pa:function(){return M},Q:function(a,b,c){if(62E3==a)return b&&(t[b>>2]=1),c&&(t[c>>2]=4),ad=!0,M=12288,1;M=12296;return 0},fa:function(a,b,c,d){if(62E3!=a)return M=12296,0;if(0!=d&&62004!=d)return M=12294,0;if(0!=c&&62006!=c||0!=b&&62006!=b)return M=12301,0;Rc(d?fd:null);bd=d;dd=b;cd=c;M=12288;return 1},qa:function(a,b){if(62E3!=a)return M= 12296,0;M=12288;if(ed[b])return ed[b];switch(b){case 12371:a=Da("Emscripten");break;case 12372:a=Da("1.4 Emscripten EGL");break;case 12373:a=Da("");break;case 12429:a=Da("OpenGL_ES");break;default:return M=12300,0}return ed[b]=a},R:function(){if(ad)if(f.Sg)if(f.Sg.isContextLost())M=12302;else return M=12288,1;else M=12290;else M=12289;return 0},ta:function(a,b){if(62E3!=a)return M=12296,0;0==b?lc(0,0):lc(1,b);M=12288;return 1},xa:function(a){if(62E3!=a)return M=12296,0;dd=cd=bd=0;ad=!1;M=12288;return 1}, ra:function(){M=12288;return 1},sa:function(){M=12288;return 1},a:function(a,b,c){Ve.length=0;var d;for(c>>=2;d=z[b++];)(d=105>d)&&c&1&&c++,Ve.push(d?x[c++>>1]:t[c]),++c;return Xa[a].apply(null,Ve)},ma:function(){if(!Qd())return-1;Ld(oe);var a=ee[1];if(a.exitFullscreen)a.fullscreenElement&&a.exitFullscreen();else if(a.webkitExitFullscreen)a.webkitFullscreenElement&&a.webkitExitFullscreen();else return-1;return 0},oa:function(){Ld(pe);if(document.exitPointerLock)document.exitPointerLock();else if(document.Sh)document.Sh(); else return-1;return 0},j:function(){return devicePixelRatio},d:function(a,b,c){a=Y(a);if(!a)return-4;a=ne(a);x[b>>3]=a.width;x[c>>3]=a.height;return 0},ja:function(a,b){if(0>a||a>=Sd.length)return-5;if(!Sd[a])return-7;qe(b,Sd[a]);return 0},ka:function(){return Sd.length},Sf:function(a){L.activeTexture(a)},Rf:function(a,b){L.attachShader(O[a],Q[b])},Ic:function(a,b){L.beginQuery(a,pd[b])},hg:function(a,b){L.Og.beginQueryEXT(a,T[b])},kc:function(a){L.beginTransformFeedback(a)},Qf:function(a,b,c){L.bindAttribLocation(O[a], b,y(c))},Pf:function(a,b){34962==a?L.bh=b:34963==a&&(L.Tg=b);35051==a?L.wh=b:35052==a&&(L.Ng=b);L.bindBuffer(a,kd[b])},gc:function(a,b,c){L.bindBufferBase(a,b,kd[c])},hc:function(a,b,c,d,e){L.bindBufferRange(a,b,kd[c],d,e)},Nf:function(a,b){L.bindFramebuffer(a,md[b])},Mf:function(a,b){L.bindRenderbuffer(a,nd[b])},kb:function(a,b){L.bindSampler(a,U[b])},Lf:function(a,b){L.bindTexture(a,od[b])},cb:function(a,b){L.bindTransformFeedback(a,qd[b])},pc:function(a){L.bindVertexArray(S[a]);a=L.getParameter(34965); L.Tg=a?a.name|0:0},$f:function(a){L.bindVertexArray(S[a]);a=L.getParameter(34965);L.Tg=a?a.name|0:0},Kf:function(a,b,c,d){L.blendColor(a,b,c,d)},Jf:function(a){L.blendEquation(a)},If:function(a,b){L.blendEquationSeparate(a,b)},Hf:function(a,b){L.blendFunc(a,b)},Gf:function(a,b,c,d){L.blendFuncSeparate(a,b,c,d)},uc:function(a,b,c,d,e,g,h,m,n,p){L.blitFramebuffer(a,b,c,d,e,g,h,m,n,p)},Ff:function(a,b,c,d){c?L.bufferData(a,z,d,c,b):L.bufferData(a,b,d)},Ef:function(a,b,c,d){L.bufferSubData(a,b,z,d,c)}, Df:function(a){return L.checkFramebufferStatus(a)},Cf:function(a){L.clear(a)},Jb:function(a,b,c,d){L.clearBufferfi(a,b,c,d)},Kb:function(a,b,c){L.clearBufferfv(a,b,w,c>>2)},Mb:function(a,b,c){L.clearBufferiv(a,b,t,c>>2)},Lb:function(a,b,c){L.clearBufferuiv(a,b,E,c>>2)},Bf:function(a,b,c,d){L.clearColor(a,b,c,d)},Af:function(a){L.clearDepth(a)},zf:function(a){L.clearStencil(a)},ub:function(a,b,c,d){return L.clientWaitSync(rd[a],b,(c>>>0)+4294967296*d)},yf:function(a,b,c,d){L.colorMask(!!a,!!b,!!c, !!d)},xf:function(a){L.compileShader(Q[a])},wf:function(a,b,c,d,e,g,h,m){L.Ng?L.compressedTexImage2D(a,b,c,d,e,g,h,m):L.compressedTexImage2D(a,b,c,d,e,g,z,m,h)},Nc:function(a,b,c,d,e,g,h,m,n){L.Ng?L.compressedTexImage3D(a,b,c,d,e,g,h,m,n):L.compressedTexImage3D(a,b,c,d,e,g,h,z,n,m)},vf:function(a,b,c,d,e,g,h,m,n){L.Ng?L.compressedTexSubImage2D(a,b,c,d,e,g,h,m,n):L.compressedTexSubImage2D(a,b,c,d,e,g,h,z,n,m)},Mc:function(a,b,c,d,e,g,h,m,n,p,r){L.Ng?L.compressedTexSubImage3D(a,b,c,d,e,g,h,m,n,p,r): L.compressedTexSubImage3D(a,b,c,d,e,g,h,m,n,z,r,p)},Hb:function(a,b,c,d,e){L.copyBufferSubData(a,b,c,d,e)},uf:function(a,b,c,d,e,g,h,m){L.copyTexImage2D(a,b,c,d,e,g,h,m)},sf:function(a,b,c,d,e,g,h,m){L.copyTexSubImage2D(a,b,c,d,e,g,h,m)},Oc:function(a,b,c,d,e,g,h,m,n){L.copyTexSubImage3D(a,b,c,d,e,g,h,m,n)},rf:function(){var a=xd(O),b=L.createProgram();b.name=a;O[a]=b;return a},qf:function(a){var b=xd(Q);Q[b]=L.createShader(a);return b},pf:function(a){L.cullFace(a)},of:function(a,b){for(var c=0;c< a;c++){var d=t[b+4*c>>2],e=kd[d];e&&(L.deleteBuffer(e),e.name=0,kd[d]=null,d==L.bh&&(L.bh=0),d==L.Tg&&(L.Tg=0),d==L.wh&&(L.wh=0),d==L.Ng&&(L.Ng=0))}},nf:function(a,b){for(var c=0;c>2],e=md[d];e&&(L.deleteFramebuffer(e),e.name=0,md[d]=null)}},mf:function(a){if(a){var b=O[a];b?(L.deleteProgram(b),b.name=0,O[a]=null,td[a]=null):V(1281)}},Kc:function(a,b){for(var c=0;c>2],e=pd[d];e&&(L.deleteQuery(e),pd[d]=null)}},ha:function(a,b){for(var c=0;c>2],e=T[d];e&&(L.Og.deleteQueryEXT(e),T[d]=null)}},lf:function(a,b){for(var c=0;c>2],e=nd[d];e&&(L.deleteRenderbuffer(e),e.name=0,nd[d]=null)}},mb:function(a,b){for(var c=0;c>2],e=U[d];e&&(L.deleteSampler(e),e.name=0,U[d]=null)}},kf:function(a){if(a){var b=Q[a];b?(L.deleteShader(b),Q[a]=null):V(1281)}},vb:function(a){if(a){var b=rd[a];b?(L.deleteSync(b),b.name=0,rd[a]=null):V(1281)}},jf:function(a,b){for(var c=0;c>2],e=od[d]; e&&(L.deleteTexture(e),e.name=0,od[d]=null)}},bb:function(a,b){for(var c=0;c>2],e=qd[d];e&&(L.deleteTransformFeedback(e),e.name=0,qd[d]=null)}},oc:function(a,b){for(var c=0;c>2];L.deleteVertexArray(S[d]);S[d]=null}},_f:function(a,b){for(var c=0;c>2];L.deleteVertexArray(S[d]);S[d]=null}},hf:function(a){L.depthFunc(a)},gf:function(a){L.depthMask(!!a)},ff:function(a,b){L.depthRange(a,b)},ef:function(a,b){L.detachShader(O[a],Q[b])},df:function(a){L.disable(a)}, cf:function(a){J.Rg[a].enabled=!1;L.disableVertexAttribArray(a)},bf:function(a,b,c){Ad(b+c);L.drawArrays(a,b,c);Cd()},zb:function(a,b,c,d){L.drawArraysInstanced(a,b,c,d)},Vf:function(a,b,c,d){L.drawArraysInstanced(a,b,c,d)},Yc:function(a,b,c,d){L.drawArraysInstanced(a,b,c,d)},Zc:function(a,b,c,d){L.drawArraysInstanced(a,b,c,d)},Oa:function(a,b,c,d){L.drawArraysInstanced(a,b,c,d)},Bc:function(a,b){for(var c=re[a],d=0;d>2];L.drawBuffers(c)},Uc:function(a,b){for(var c=re[a],d=0;d< a;d++)c[d]=t[b+4*d>>2];L.drawBuffers(c)},Wf:function(a,b){for(var c=re[a],d=0;d>2];L.drawBuffers(c)},af:function(a,b,c,d){if(!L.Tg){var e=1*sd[c-5120]*b;var g=yd(e);L.bindBuffer(34963,g);L.bufferSubData(34963,0,z.subarray(d,d+e));d=0}Ad(b);L.drawElements(a,b,c,d);Cd();L.Tg||L.bindBuffer(34963,null)},yb:function(a,b,c,d,e){L.drawElementsInstanced(a,b,c,d,e)},Uf:function(a,b,c,d,e){L.drawElementsInstanced(a,b,c,d,e)},Vc:function(a,b,c,d,e){L.drawElementsInstanced(a,b,c,d,e)},Wc:function(a, b,c,d,e){L.drawElementsInstanced(a,b,c,d,e)},Xc:function(a,b,c,d,e){L.drawElementsInstanced(a,b,c,d,e)},Sc:function(a,b,c,d,e,g){se(a,d,e,g)},$e:function(a){L.enable(a)},_e:function(a){J.Rg[a].enabled=!0;L.enableVertexAttribArray(a)},Hc:function(a){L.endQuery(a)},gg:function(a){L.Og.endQueryEXT(a)},ic:function(){L.endTransformFeedback()},xb:function(a,b){return(a=L.fenceSync(a,b))?(b=xd(rd),a.name=b,rd[b]=a,b):0},Ye:function(){L.finish()},Xe:function(){L.flush()},qc:function(a,b,c){if(ue(a)){var d= ld[te(a)];d?d.Th&16?0>b||0>c||b+c>d.length?(V(1281),k("invalid range in glFlushMappedBufferRange")):L.bufferSubData(a,d.offset,z.subarray(d.nh+b,d.nh+b+c)):(V(1282),k("buffer was not mapped with GL_MAP_FLUSH_EXPLICIT_BIT in glFlushMappedBufferRange")):(V(1282),k("buffer was never mapped in glFlushMappedBufferRange"))}else V(1280),k("GL_INVALID_ENUM in glFlushMappedBufferRange")},We:function(a,b,c,d){L.framebufferRenderbuffer(a,b,c,nd[d])},Ve:function(a,b,c,d,e){L.framebufferTexture2D(a,b,c,od[d], e)},sc:function(a,b,c,d,e){L.framebufferTextureLayer(a,b,od[c],d,e)},Ue:function(a){L.frontFace(a)},Te:function(a,b){Z(a,b,"createBuffer",kd)},Re:function(a,b){Z(a,b,"createFramebuffer",md)},Lc:function(a,b){Z(a,b,"createQuery",pd)},ia:function(a,b){for(var c=0;c>2]=0;break}var e=xd(T);d.name=e;T[e]=d;t[b+4*c>>2]=e}},Qe:function(a,b){Z(a,b,"createRenderbuffer",nd)},nb:function(a,b){Z(a,b,"createSampler",U)},Pe:function(a,b){Z(a, b,"createTexture",od)},ab:function(a,b){Z(a,b,"createTransformFeedback",qd)},nc:function(a,b){Z(a,b,"createVertexArray",S)},Yf:function(a,b){Z(a,b,"createVertexArray",S)},Se:function(a){L.generateMipmap(a)},Ne:function(a,b,c,d,e,g,h){ve("getActiveAttrib",a,b,c,d,e,g,h)},Me:function(a,b,c,d,e,g,h){ve("getActiveUniform",a,b,c,d,e,g,h)},Bb:function(a,b,c,d,e){a=O[a];if(a=L.getActiveUniformBlockName(a,b))e&&0>2]=c)):d&&(t[d>>2]=0)},Cb:function(a,b,c,d){if(d)if(a=O[a],35393==c)c= L.getActiveUniformBlockName(a,b),t[d>>2]=c.length+1;else{if(a=L.getActiveUniformBlockParameter(a,b,c),null!==a)if(35395==c)for(c=0;c>2]=a[c];else t[d>>2]=a}else V(1281)},Fb:function(a,b,c,d,e){if(e)if(0>2]);if(a=L.getActiveUniforms(a,g,d))for(b=a.length,h=0;h>2]=a[h]}else V(1281)},Le:function(a,b,c,d){a=L.getAttachedShaders(O[a]);var e=a.length;e>b&&(e=b);t[c>>2]=e;for(b=0;b>2]= Q.indexOf(a[b])},Ke:function(a,b){return L.getAttribLocation(O[a],y(b))},Je:function(a,b){xe(a,b,4)},ob:function(a,b,c){c?we(c,L.getBufferParameter(a,b)):V(1281)},Ie:function(a,b,c){c?t[c>>2]=L.getBufferParameter(a,b):V(1281)},Cc:function(a,b,c){if(35005==b){b=0;if(a=ld[te(a)])b=a.nh;t[c>>2]=b}else V(1280),k("GL_INVALID_ENUM in glGetBufferPointerv")},He:function(){var a=L.getError()||wd;wd=0;return a},Ge:function(a,b){xe(a,b,2)},Wb:function(a,b){return L.getFragDataLocation(O[a],y(b))},Fe:function(a, b,c,d){a=L.getFramebufferAttachmentParameter(a,b,c);if(a instanceof WebGLRenderbuffer||a instanceof WebGLTexture)a=a.name|0;t[d>>2]=a},pb:function(a,b,c){ye(a,b,c,1)},rb:function(a,b){xe(a,b,1)},lc:function(a,b,c){ye(a,b,c,0)},Ee:function(a,b){xe(a,b,0)},Ra:function(a,b,c,d,e){if(0>d)V(1281);else if(e){if(a=L.getInternalformatParameter(a,b,c),null!==a)for(b=0;b>2]=a[b]}else V(1281)},Ya:function(){V(1282)},Ce:function(a,b,c,d){a=L.getProgramInfoLog(O[a]);null===a&&(a="(unknown error)"); b=0>2]=b)},De:function(a,b,c){if(c)if(a>=jd)V(1281);else{var d=td[a];if(d)if(35716==b)a=L.getProgramInfoLog(O[a]),null===a&&(a="(unknown error)"),t[c>>2]=a.length+1;else if(35719==b)t[c>>2]=d.Mh;else if(35722==b){if(-1==d.lh){a=O[a];var e=L.getProgramParameter(a,35721);for(b=d.lh=0;b>2]=d.lh}else if(35381==b){if(-1==d.mh)for(a=O[a],e=L.getProgramParameter(a,35382),b=d.mh=0;b>2]=d.mh}else t[c>>2]=L.getProgramParameter(O[a],b);else V(1282)}else V(1281)},bg:function(a,b,c){if(c){a=L.Og.getQueryObjectEXT(T[a],b);var d;"boolean"==typeof a?d=a?1:0:d=a;we(c,d)}else V(1281)},dg:function(a,b,c){if(c){a=L.Og.getQueryObjectEXT(T[a],b);var d;"boolean"==typeof a?d=a?1:0:d=a;t[c>>2]=d}else V(1281)},ag:function(a,b,c){if(c){a=L.Og.getQueryObjectEXT(T[a],b);var d;"boolean"==typeof a?d=a?1:0:d=a;we(c,d)}else V(1281)},Fc:function(a,b,c){if(c){a=L.getQueryParameter(pd[a], b);var d;"boolean"==typeof a?d=a?1:0:d=a;t[c>>2]=d}else V(1281)},cg:function(a,b,c){if(c){a=L.Og.getQueryObjectEXT(T[a],b);var d;"boolean"==typeof a?d=a?1:0:d=a;t[c>>2]=d}else V(1281)},Gc:function(a,b,c){c?t[c>>2]=L.getQuery(a,b):V(1281)},eg:function(a,b,c){c?t[c>>2]=L.Og.getQueryEXT(a,b):V(1281)},Be:function(a,b,c){c?t[c>>2]=L.getRenderbufferParameter(a,b):V(1281)},eb:function(a,b,c){c?w[c>>2]=L.getSamplerParameter(U[a],b):V(1281)},fb:function(a,b,c){c?t[c>>2]=L.getSamplerParameter(U[a],b):V(1281)}, ze:function(a,b,c,d){a=L.getShaderInfoLog(Q[a]);null===a&&(a="(unknown error)");b=0>2]=b)},ye:function(a,b,c,d){a=L.getShaderPrecisionFormat(a,b);t[c>>2]=a.rangeMin;t[c+4>>2]=a.rangeMax;t[d>>2]=a.precision},xe:function(a,b,c,d){if(a=L.getShaderSource(Q[a]))b=0>2]=b)},Ae:function(a,b,c){c?35716==b?(a=L.getShaderInfoLog(Q[a]),null===a&&(a="(unknown error)"),t[c>>2]=a?a.length+1:0):35720==b?(a=L.getShaderSource(Q[a]),t[c>>2]=a?a.length+1:0):t[c>>2]=L.getShaderParameter(Q[a], b):V(1281)},we:function(a){if(ud[a])return ud[a];switch(a){case 7939:var b=L.getSupportedExtensions()||[];b=b.concat(b.map(function(d){return"GL_"+d}));b=ze(b.join(" "));break;case 7936:case 7937:case 37445:case 37446:(b=L.getParameter(a))||V(1280);b=ze(b);break;case 7938:b=ze("OpenGL ES 3.0 ("+L.getParameter(7938)+")");break;case 35724:b=L.getParameter(35724);var c=b.match(/^WebGL GLSL ES ([0-9]\.[0-9][0-9]?)(?:$| .*)/);null!==c&&(3==c[1].length&&(c[1]+="0"),b="OpenGL ES GLSL ES "+c[1]+" ("+b+")"); b=ze(b);break;default:return V(1280),0}return ud[a]=b},Ib:function(a,b){if(2>J.version)return V(1282),0;var c=vd[a];if(c)return 0>b||b>=c.length?(V(1281),0):c[b];switch(a){case 7939:return c=L.getSupportedExtensions()||[],c=c.concat(c.map(function(d){return"GL_"+d})),c=c.map(function(d){return ze(d)}),c=vd[a]=c,0>b||b>=c.length?(V(1281),0):c[b];default:return V(1280),0}},qb:function(a,b,c,d,e){0>c?V(1281):e?(a=L.getSyncParameter(rd[a],b),null!==a&&(t[e>>2]=a,d&&(t[d>>2]=1))):V(1281)},ve:function(a, b,c){c?w[c>>2]=L.getTexParameter(a,b):V(1281)},ue:function(a,b,c){c?t[c>>2]=L.getTexParameter(a,b):V(1281)},ec:function(a,b,c,d,e,g,h){a=O[a];if(a=L.getTransformFeedbackVarying(a,b))h&&0>2]=c)):d&&(t[d>>2]=0),e&&(t[e>>2]=a.size),g&&(t[g>>2]=a.type)},Db:function(a,b){return L.getUniformBlockIndex(O[a],y(b))},Gb:function(a,b,c,d){if(d)if(0>2]));if(a=L.getUniformIndices(a,e))for(b=a.length,g=0;g< b;g++)t[d+4*g>>2]=a[g]}else V(1281)},re:function(a,b){b=y(b);var c=0;if("]"==b[b.length-1]){var d=b.lastIndexOf("[");c="]"!=b[d+1]?parseInt(b.slice(d+1)):0;b=b.slice(0,d)}return(a=td[a]&&td[a].Rh[b])&&0<=c&&c>2]=L.getVertexAttribOffset(a,b)):V(1281)},qe:function(a,b,c){Be(a,b,c,2)},pe:function(a,b,c){Be(a,b,c,5)},ne:function(a,b){L.hint(a,b)},Va:function(a,b,c){for(var d=re[b],e=0;e>2];L.invalidateFramebuffer(a,d)},Ua:function(a,b,c,d,e,g,h){for(var m=re[b],n=0;n>2];L.invalidateSubFramebuffer(a,m,d,e,g,h)},me:function(a){return(a=kd[a])?L.isBuffer(a):0},le:function(a){return L.isEnabled(a)},ke:function(a){return(a=md[a])?L.isFramebuffer(a):0},ie:function(a){return(a= O[a])?L.isProgram(a):0},Jc:function(a){return(a=pd[a])?L.isQuery(a):0},ga:function(a){return(a=T[a])?L.Og.isQueryEXT(a):0},he:function(a){return(a=nd[a])?L.isRenderbuffer(a):0},lb:function(a){return(a=U[a])?L.isSampler(a):0},ge:function(a){return(a=Q[a])?L.isShader(a):0},wb:function(a){return L.isSync(rd[a])},fe:function(a){return(a=od[a])?L.isTexture(a):0},$a:function(a){return L.isTransformFeedback(qd[a])},mc:function(a){return(a=S[a])?L.isVertexArray(a):0},Xf:function(a){return(a=S[a])?L.isVertexArray(a): 0},ee:function(a){L.lineWidth(a)},de:function(a){L.linkProgram(O[a]);Fd(a)},rc:function(a,b,c,d){if(26!=d&&10!=d)return k("glMapBufferRange is only supported when access is MAP_WRITE|INVALIDATE_BUFFER"),0;if(!ue(a))return V(1280),k("GL_INVALID_ENUM in glMapBufferRange"),0;var e=C(c);if(!e)return 0;ld[te(a)]={offset:b,length:c,nh:e,Th:d};return e},_a:function(){L.pauseTransformFeedback()},ce:function(a,b){L.pixelStorei(a,b)},be:function(a,b){L.polygonOffset(a,b)},Xa:function(){V(1280)},Wa:function(){V(1280)}, fg:function(a,b){L.Og.queryCounterEXT(T[a],b)},Tc:function(a){L.readBuffer(a)},ae:function(a,b,c,d,e,g,h){if(L.wh)L.readPixels(a,b,c,d,e,g,h);else{var m=Ce(g);L.readPixels(a,b,c,d,e,g,m,h>>De(m))}},$d:function(){},Zd:function(a,b,c,d){L.renderbufferStorage(a,b,c,d)},tc:function(a,b,c,d,e){L.renderbufferStorageMultisample(a,b,c,d,e)},Za:function(){L.resumeTransformFeedback()},Yd:function(a,b){L.sampleCoverage(a,!!b)},hb:function(a,b,c){L.samplerParameterf(U[a],b,c)},gb:function(a,b,c){L.samplerParameterf(U[a], b,w[c>>2])},jb:function(a,b,c){L.samplerParameteri(U[a],b,c)},ib:function(a,b,c){L.samplerParameteri(U[a],b,t[c>>2])},Xd:function(a,b,c,d){L.scissor(a,b,c,d)},Wd:function(){V(1280)},Vd:function(a,b,c,d){b=zd(b,c,d);L.shaderSource(Q[a],b)},Ud:function(a,b,c){L.stencilFunc(a,b,c)},Td:function(a,b,c,d){L.stencilFuncSeparate(a,b,c,d)},Sd:function(a){L.stencilMask(a)},Rd:function(a,b){L.stencilMaskSeparate(a,b)},Qd:function(a,b,c){L.stencilOp(a,b,c)},Od:function(a,b,c,d){L.stencilOpSeparate(a,b,c,d)}, Nd:function(a,b,c,d,e,g,h,m,n){if(L.Ng)L.texImage2D(a,b,c,d,e,g,h,m,n);else if(n){var p=Ce(m);L.texImage2D(a,b,c,d,e,g,h,m,p,n>>De(p))}else L.texImage2D(a,b,c,d,e,g,h,m,null)},Rc:function(a,b,c,d,e,g,h,m,n,p){if(L.Ng)L.texImage3D(a,b,c,d,e,g,h,m,n,p);else if(p){var r=Ce(n);L.texImage3D(a,b,c,d,e,g,h,m,n,r,p>>De(r))}else L.texImage3D(a,b,c,d,e,g,h,m,n,null)},Md:function(a,b,c){L.texParameterf(a,b,c)},Ld:function(a,b,c){L.texParameterf(a,b,w[c>>2])},Kd:function(a,b,c){L.texParameteri(a,b,c)},Jd:function(a, b,c){L.texParameteri(a,b,t[c>>2])},Ta:function(a,b,c,d,e){L.texStorage2D(a,b,c,d,e)},Sa:function(a,b,c,d,e,g){L.texStorage3D(a,b,c,d,e,g)},Id:function(a,b,c,d,e,g,h,m,n){if(L.Ng)L.texSubImage2D(a,b,c,d,e,g,h,m,n);else if(n){var p=Ce(m);L.texSubImage2D(a,b,c,d,e,g,h,m,p,n>>De(p))}else L.texSubImage2D(a,b,c,d,e,g,h,m,null)},Qc:function(a,b,c,d,e,g,h,m,n,p,r){if(L.Ng)L.texSubImage3D(a,b,c,d,e,g,h,m,n,p,r);else if(r){var v=Ce(p);L.texSubImage3D(a,b,c,d,e,g,h,m,n,p,v,r>>De(v))}else L.texSubImage3D(a,b, c,d,e,g,h,m,n,p,null)},fc:function(a,b,c,d){a=O[a];for(var e=[],g=0;g>2]));L.transformFeedbackVaryings(a,e,d)},Hd:function(a,b){L.uniform1f(P[a],b)},Gd:function(a,b,c){L.uniform1fv(P[a],w,c>>2,b)},Fd:function(a,b){L.uniform1i(P[a],b)},Dd:function(a,b,c){L.uniform1iv(P[a],t,c>>2,b)},Vb:function(a,b){L.uniform1ui(P[a],b)},Rb:function(a,b,c){L.uniform1uiv(P[a],E,c>>2,b)},Cd:function(a,b,c){L.uniform2f(P[a],b,c)},Bd:function(a,b,c){L.uniform2fv(P[a],w,c>>2,2*b)},Ad:function(a, b,c){L.uniform2i(P[a],b,c)},zd:function(a,b,c){L.uniform2iv(P[a],t,c>>2,2*b)},Ub:function(a,b,c){L.uniform2ui(P[a],b,c)},Qb:function(a,b,c){L.uniform2uiv(P[a],E,c>>2,2*b)},yd:function(a,b,c,d){L.uniform3f(P[a],b,c,d)},xd:function(a,b,c){L.uniform3fv(P[a],w,c>>2,3*b)},wd:function(a,b,c,d){L.uniform3i(P[a],b,c,d)},vd:function(a,b,c){L.uniform3iv(P[a],t,c>>2,3*b)},Tb:function(a,b,c,d){L.uniform3ui(P[a],b,c,d)},Ob:function(a,b,c){L.uniform3uiv(P[a],E,c>>2,3*b)},ud:function(a,b,c,d,e){L.uniform4f(P[a], b,c,d,e)},sd:function(a,b,c){L.uniform4fv(P[a],w,c>>2,4*b)},rd:function(a,b,c,d,e){L.uniform4i(P[a],b,c,d,e)},qd:function(a,b,c){L.uniform4iv(P[a],t,c>>2,4*b)},Sb:function(a,b,c,d,e){L.uniform4ui(P[a],b,c,d,e)},Nb:function(a,b,c){L.uniform4uiv(P[a],E,c>>2,4*b)},Ab:function(a,b,c){a=O[a];L.uniformBlockBinding(a,b,c)},pd:function(a,b,c,d){L.uniformMatrix2fv(P[a],!!c,w,d>>2,4*b)},Ac:function(a,b,c,d){L.uniformMatrix2x3fv(P[a],!!c,w,d>>2,6*b)},yc:function(a,b,c,d){L.uniformMatrix2x4fv(P[a],!!c,w,d>>2, 8*b)},od:function(a,b,c,d){L.uniformMatrix3fv(P[a],!!c,w,d>>2,9*b)},zc:function(a,b,c,d){L.uniformMatrix3x2fv(P[a],!!c,w,d>>2,6*b)},wc:function(a,b,c,d){L.uniformMatrix3x4fv(P[a],!!c,w,d>>2,12*b)},nd:function(a,b,c,d){L.uniformMatrix4fv(P[a],!!c,w,d>>2,16*b)},xc:function(a,b,c,d){L.uniformMatrix4x2fv(P[a],!!c,w,d>>2,8*b)},vc:function(a,b,c,d){L.uniformMatrix4x3fv(P[a],!!c,w,d>>2,12*b)},Dc:function(a){if(!ue(a))return V(1280),k("GL_INVALID_ENUM in glUnmapBuffer"),0;var b=te(a),c=ld[b];if(!c)return V(1282), k("buffer was never mapped in glUnmapBuffer"),0;ld[b]=null;c.Th&16||L.bufferSubData(a,c.offset,z,c.nh,c.length);bf(c.nh);return 1},md:function(a){L.useProgram(O[a])},ld:function(a){L.validateProgram(O[a])},kd:function(a,b){L.vertexAttrib1f(a,b)},jd:function(a,b){L.vertexAttrib1f(a,w[b>>2])},hd:function(a,b,c){L.vertexAttrib2f(a,b,c)},gd:function(a,b){L.vertexAttrib2f(a,w[b>>2],w[b+4>>2])},fd:function(a,b,c,d){L.vertexAttrib3f(a,b,c,d)},ed:function(a,b){L.vertexAttrib3f(a,w[b>>2],w[b+4>>2],w[b+8>> 2])},dd:function(a,b,c,d,e){L.vertexAttrib4f(a,b,c,d,e)},cd:function(a,b){L.vertexAttrib4f(a,w[b>>2],w[b+4>>2],w[b+8>>2],w[b+12>>2])},db:function(a,b){L.vertexAttribDivisor(a,b)},Tf:function(a,b){L.vertexAttribDivisor(a,b)},_c:function(a,b){L.vertexAttribDivisor(a,b)},$c:function(a,b){L.vertexAttribDivisor(a,b)},Pa:function(a,b){L.vertexAttribDivisor(a,b)},ac:function(a,b,c,d,e){L.vertexAttribI4i(a,b,c,d,e)},Zb:function(a,b){L.vertexAttribI4i(a,t[b>>2],t[b+4>>2],t[b+8>>2],t[b+12>>2])},$b:function(a, b,c,d,e){L.vertexAttribI4ui(a,b,c,d,e)},Yb:function(a,b){L.vertexAttribI4ui(a,E[b>>2],E[b+4>>2],E[b+8>>2],E[b+12>>2])},dc:function(a,b,c,d,e){var g=J.Rg[a];L.bh?(g.ah=!1,L.vertexAttribIPointer(a,b,c,d,e)):(g.size=b,g.type=c,g.Ah=!1,g.rh=d,g.gh=e,g.ah=!0,g.Gh=function(h,m,n,p,r,v){this.vertexAttribIPointer(h,m,n,r,v)})},bd:function(a,b,c,d,e,g){var h=J.Rg[a];L.bh?(h.ah=!1,L.vertexAttribPointer(a,b,c,!!d,e,g)):(h.size=b,h.type=c,h.Ah=d,h.rh=e,h.gh=g,h.ah=!0,h.Gh=function(m,n,p,r,v,B){this.vertexAttribPointer(m, n,p,r,v,B)})},ad:function(a,b,c,d){L.viewport(a,b,c,d)},sb:function(a,b,c,d){L.waitSync(rd[a],b,(c>>>0)+4294967296*d)},m:function(){return 0},Ga:function(a,b,c){z.copyWithin(a,b,b+c)},na:function(a,b,c){return Ee(a,{Ph:t[c>>2],Hh:t[c+4>>2],zi:t[c+8>>2],wi:b,uh:t[c+12>>2],Wh:t[c+16>>2]})},O:function(a,b){a=Y(a);return a?a.requestPointerLock||a.zh?Gd&&Nd.$g?pe(a):b?(Kd(pe,2,[a]),1):-2:-1:-4},Ha:function(){l("OOM")},la:function(){return(Sd=navigator.getGamepads?navigator.getGamepads():navigator.webkitGetGamepads? navigator.webkitGetGamepads():null)?0:-1},s:function(a,b,c){if("undefined"===typeof onbeforeunload)return-1;if(1!==c)return-5;Fe(a,b);return 0},F:function(a,b,c,d){Ge(a,b,c,d,12,"blur");return 0},f:je,k:function(a,b,c){a=Y(a);if(!a)return-4;a.style.width=b+"px";a.style.height=c+"px";return 0},G:function(a,b,c,d){Ge(a,b,c,d,13,"focus");return 0},v:function(a,b,c,d){if(!Qd())return-1;a=Y(a);if(!a)return-4;He(a,b,c,d,"fullscreenchange");He(a,b,c,d,"webkitfullscreenchange");return 0},i:function(a,b,c){if(!navigator.getGamepads&& !navigator.webkitGetGamepads)return-1;Ie(a,b,c,26,"gamepadconnected");return 0},h:function(a,b,c){if(!navigator.getGamepads&&!navigator.webkitGetGamepads)return-1;Ie(a,b,c,27,"gamepaddisconnected");return 0},y:function(a,b,c,d){Je(a,b,c,d,2,"keydown");return 0},w:function(a,b,c,d){Je(a,b,c,d,1,"keypress");return 0},x:function(a,b,c,d){Je(a,b,c,d,3,"keyup");return 0},Ea:function(a,b,c){a=F.get(a);uc(a,b,c)},M:function(a,b,c,d){Le(a,b,c,d,5,"mousedown");return 0},J:function(a,b,c,d){Le(a,b,c,d,33,"mouseenter"); return 0},I:function(a,b,c,d){Le(a,b,c,d,34,"mouseleave");return 0},N:function(a,b,c,d){Le(a,b,c,d,8,"mousemove");return 0},L:function(a,b,c,d){Le(a,b,c,d,6,"mouseup");return 0},A:function(a,b,c,d){if(!document||!document.body||!(document.body.requestPointerLock||document.body.Sh||document.body.pi||document.body.zh))return-1;a=Y(a);if(!a)return-4;Me(a,b,c,d,"pointerlockchange");Me(a,b,c,d,"mozpointerlockchange");Me(a,b,c,d,"webkitpointerlockchange");Me(a,b,c,d,"mspointerlockchange");return 0},u:function(a, b,c,d){Ne(a,b,c,d);return 0},B:function(a,b,c,d){Oe(a,b,c,d,25,"touchcancel");return 0},D:function(a,b,c,d){Oe(a,b,c,d,23,"touchend");return 0},C:function(a,b,c,d){Oe(a,b,c,d,24,"touchmove");return 0},E:function(a,b,c,d){Oe(a,b,c,d,22,"touchstart");return 0},t:function(a,b,c){Pe(a,b,c);return 0},H:function(a,b,c,d){a=Y(a);return"undefined"!==typeof a.onwheel?(Qe(a,b,c,d),0):-1},l:function(){throw"Please compile your program with async support in order to use asynchronous operations like emscripten_sleep"; },La:function(a){for(var b=kc();kc()-b>=2;b={alpha:!!t[b],depth:!!t[b+1],stencil:!!t[b+2],antialias:!!t[b+3],premultipliedAlpha:!!t[b+4],preserveDrawingBuffer:!!t[b+5],powerPreference:Re[t[b+6]],failIfMajorPerformanceCaveat:!!t[b+7],Lh:t[b+8],Ji:t[b+9],Zh:t[b+10],yi:t[b+11],oj:t[b+12],pj:t[b+13]};a=Y(a);return!a||b.yi?0:Qc(a,b)},o:function(a,b){a=K[a];b=y(b);0==b.indexOf("GL_")&&(b=b.substr(3));"WEBGL_draw_instanced_base_vertex_base_instance"==b&&gd(L);"WEBGL_multi_draw_instanced_base_vertex_base_instance"== b&&hd(L);"WEBGL_multi_draw"==b&&id(L);return!!a.Qg.getExtension(b)},je:function(a){a>>=2;for(var b=0;14>b;++b)t[a+b]=0;t[a]=t[a+1]=t[a+3]=t[a+4]=t[a+8]=t[a+10]=1},Zf:function(a){return Rc(a)?0:-5},Ia:function(a,b){try{var c=0;Te().forEach(function(d,e){var g=b+c;e=t[a+4*e>>2]=g;for(g=0;g>0]=d.charCodeAt(g);q[e>>0]=0;c+=d.length+1});return 0}catch(d){return"undefined"!==typeof gc&&d instanceof H||l(d),d.Ug}},Ka:function(a,b){try{var c=Te();t[a>>2]=c.length;var d=0;c.forEach(function(e){d+= e.length+1});t[b>>2]=d;return 0}catch(e){return"undefined"!==typeof gc&&e instanceof H||l(e),e.Ug}},ig:function(a){wc(a)},X:function(a){try{var b=jc(a);Rb(b);return 0}catch(c){return"undefined"!==typeof gc&&c instanceof H||l(c),c.Ug}},W:function(a,b,c,d){try{a:{for(var e=jc(a),g=a=0;g>2],m=e,n=t[b+8*g>>2],p=h,r=void 0,v=q;if(0>p||0>r)throw new H(28);if(null===m.Xg)throw new H(8);if(1===(m.flags&2097155))throw new H(8);if(16384===(m.node.mode&61440))throw new H(31);if(!m.Dg.read)throw new H(28); var B="undefined"!==typeof r;if(!B)r=m.position;else if(!m.seekable)throw new H(70);var D=m.Dg.read(m,v,n,p,r);B||(m.position+=D);var R=D;if(0>R){var ca=-1;break a}a+=R;if(R>2]=ca;return 0}catch(ba){return"undefined"!==typeof gc&&ba instanceof H||l(ba),ba.Ug}},Fa:function(a,b,c,d,e){try{var g=jc(a);a=4294967296*c+(b>>>0);if(-9007199254740992>=a||9007199254740992<=a)return-61;Sb(g,a,d);ta=[g.position>>>0,(u=g.position,1<=+Math.abs(u)?0>>0:~~+Math.ceil((u-+(~~u>>>0))/4294967296)>>>0:0)];t[e>>2]=ta[0];t[e+4>>2]=ta[1];g.Kh&&0===a&&0===d&&(g.Kh=null);return 0}catch(h){return"undefined"!==typeof gc&&h instanceof H||l(h),h.Ug}},Y:function(a,b,c,d){try{a:{for(var e=jc(a),g=a=0;g>2],t[b+(8*g+4)>>2],void 0);if(0>h){var m=-1;break a}a+=h}m=a}t[d>>2]=m;return 0}catch(n){return"undefined"!==typeof gc&&n instanceof H||l(n),n.Ug}},g:function(a){var b=Date.now();t[a>>2]=b/1E3|0;t[a+4>>2]=b%1E3*1E3|0;return 0}, ea:function(a,b){L.attachShader(O[a],Q[b])},ba:function(a,b){34962==a?L.bh=b:34963==a&&(L.Tg=b);35051==a?L.wh=b:35052==a&&(L.Ng=b);L.bindBuffer(a,kd[b])},Pd:function(a){L.bindVertexArray(S[a]);a=L.getParameter(34965);L.Tg=a?a.name|0:0},Pb:function(a,b){L.blendEquationSeparate(a,b)},Eb:function(a,b,c,d){L.blendFuncSeparate(a,b,c,d)},aa:function(a,b,c,d){c?L.bufferData(a,z,d,c,b):L.bufferData(a,b,d)},Ja:function(a){L.clear(a)},Qa:function(a,b,c,d){L.clearColor(a,b,c,d)},S:function(a){L.compileShader(Q[a])}, Of:function(){var a=xd(O),b=L.createProgram();b.name=a;O[a]=b;return a},U:function(a){var b=xd(Q);Q[b]=L.createShader(a);return b},da:function(a){if(a){var b=Q[a];b?(L.deleteShader(b),Q[a]=null):V(1281)}},_b:function(a){L.disable(a)},za:se,$:function(a){L.enable(a)},id:function(a){J.Rg[a].enabled=!0;L.enableVertexAttribArray(a)},jc:function(a){L.frontFace(a)},ca:function(a,b){Z(a,b,"createBuffer",kd)},_d:function(a,b){Z(a,b,"createVertexArray",S)},Ed:function(a,b){return L.getAttribLocation(O[a], y(b))},_:function(a){if(ud[a])return ud[a];switch(a){case 7939:var b=L.getSupportedExtensions()||[];b=b.concat(b.map(function(d){return"GL_"+d}));b=ze(b.join(" "));break;case 7936:case 7937:case 37445:case 37446:(b=L.getParameter(a))||V(1280);b=ze(b);break;case 7938:b=ze("OpenGL ES 3.0 ("+L.getParameter(7938)+")");break;case 35724:b=L.getParameter(35724);var c=b.match(/^WebGL GLSL ES ([0-9]\.[0-9][0-9]?)(?:$| .*)/);null!==c&&(3==c[1].length&&(c[1]+="0"),b="OpenGL ES GLSL ES "+c[1]+" ("+b+")");b=ze(b); break;default:return V(1280),0}return ud[a]=b},c:function(a,b){b=y(b);var c=0;if("]"==b[b.length-1]){var d=b.lastIndexOf("[");c="]"!=b[d+1]?parseInt(b.slice(d+1)):0;b=b.slice(0,d)}return(a=td[a]&&td[a].Rh[b])&&0<=c&&c{a=new Uint8Array(a.data.data);Ub("/snd/sample.wav",a);f.ccall("pl")});document.getElementById("circle").width=window.innerWidth;document.getElementById("circle").height=window.innerHeight;document.getElementById("contain2").width=window.innerHeight;document.getElementById("contain2").height=window.innerHeight;document.getElementById("btn3").addEventListener("click",function(){window.open("https://test.1ink.us/libflac.js/")}); document.getElementById("btn2").addEventListener("click",function(){document.getElementById("ihig").innerHTML=window.innerHeight;document.getElementById("circle").height=window.innerHeight;document.getElementById("circle").width=window.innerWidth;document.getElementById("canvas").height=window.innerHeight;document.getElementById("canvas").width=window.innerHeight;document.getElementById("btn3").style.border="5px solid green";document.getElementById("btn2").style.border="5px solid red";document.getElementById("btn2").style.background= "red";document.getElementById("btn").style.border="5px solid green";document.getElementById("btn7").style.border="5px solid green";document.getElementById("di").click()}); document.getElementById("btn").addEventListener("click",function(){document.getElementById("btn3").style="background-color:red;position:absolute;display:block;left:3%;top:13%;z-index:999997;border:5px solid red;border-radius:50%;";document.getElementById("btn4").style="background-color:grey;position:absolute;display:block;left:3%;top:33%;z-index:999997;border:5px solid green;border-radius:50%;";document.getElementById("btn5").style="background-color:pink;position:absolute;display:block;left:3%;top:43%;z-index:999997;border:5px solid green;border-radius:50%;"; document.getElementById("btn6").style="background-color:yellow;position:absolute;display:block;left:3%;top:53%;z-index:999997;border:5px solid green;border-radius:50%;";document.getElementById("btn7").style="background-color:red;position:absolute;display:block;left:3%;top:63%;z-index:999997;border:5px solid red;border-radius:50%;";document.getElementById("btn").style="background-color:red;position:absolute;display:block;left:3%;top:23%;z-index:999997;border:5px solid red;border-radius:50%;"}); document.getElementById("btn6").addEventListener("click",function(){document.getElementById("contain2").style="pointer-events:none;z-index:999993;height:"+window.innerHeight+"px;width:"+window.innerHeight+"px;position:absolute;top:0px;left:"+Math.round(.5*window.innerWidth-.5*window.innerHeight)+"px;";document.getElementById("canvas").style="position:absolute;left:0;top:0;background-color:rgba(1,1,1,0);z-index:999995;image-rendering:pixelated;width:"+window.innerHeight+"px;height:"+window.innerHeight+ "px;";document.getElementById("ihig").innerHTML=Math.round(window.innerHeight);document.getElementById("circle").height=window.innerHeight;document.getElementById("circle").width=window.innerWidth;document.getElementById("di").click()}); document.getElementById("btn7").addEventListener("click",function(){document.getElementById("btn4").style="background-color:grey;position:absolute;display:block;left:3%;top:33%;z-index:999997;border:5px solid green;border-radius:50%;";document.getElementById("btn5").style="background-color:pink;position:absolute;display:block;left:3%;top:43%;z-index:999997;border:5px solid green;border-radius:50%;";document.getElementById("btn3").style="background-color:red;position:absolute;display:block;left:3%;top:13%;z-index:999997;border:5px solid red;border-radius:50%;"; document.getElementById("drop").style="background-color:rgba(0,0,0,1);z-index:999994;height:100vh;width:auto;position:absolute;text-align:center;";document.getElementById("btn6").style="background-color:yellow;position:absolute;display:block;left:3%;top:53%;z-index:999997;border:5px solid green;border-radius:50%;";document.getElementById("btn").style="background-color:red;position:absolute;display:block;left:3%;top:23%;z-index:999997;border:5px solid red;border-radius:50%;";document.getElementById("btn7").style= "background-color:red;position:absolute;display:block;left:3%;top:63%;z-index:999997;border:5px solid red;border-radius:50%;";document.getElementById("shut").innerHTML=2;document.getElementById("di").click()});document.getElementById("btn").addEventListener("click",function(){f.ccall("str")});document.getElementById("btn9").addEventListener("click",function(){f.ccall("compile")});document.getElementById("btn10").addEventListener("click",function(){f.ccall("getShader")}); document.getElementById("btn7").addEventListener("click",function(){document.getElementById("contain2").height=1440;document.getElementById("contain2").width=1440;document.getElementById("canvas").height=1440;document.getElementById("canvas").width=1440;document.getElementById("btn4").style="background-color:grey;position:absolute;display:block;left:3%;top:33%;z-index:999997;border:5px solid green;border-radius:50%;";document.getElementById("btn5").style="background-color:pink;position:absolute;display:block;left:3%;top:43%;z-index:999997;border:5px solid green;border-radius:50%;"; document.getElementById("btn3").style="background-color:red;position:absolute;display:block;left:3%;top:13%;z-index:999997;border:5px solid red;border-radius:50%;";document.getElementById("btn6").style="background-color:yellow;position:absolute;display:block;left:3%;top:53%;z-index:999997;border:5px solid green;border-radius:50%;";document.getElementById("btn").style="background-color:red;position:absolute;display:block;left:3%;top:23%;z-index:999997;border:5px solid red;border-radius:50%;";document.getElementById("btn7").style= "background-color:red;position:absolute;display:block;left:3%;top:63%;z-index:999997;border:5px solid red;border-radius:50%;";document.getElementById("shut").innerHTML=2;document.getElementById("di").click();f.ccall("str")}); document.getElementById("btn2").addEventListener("click",function(){let a=document.getElementById("path2").innerHTML,b=document.getElementById("path3").innerHTML,c=document.getElementById("path4").innerHTML,d=new XMLHttpRequest,e=new XMLHttpRequest,g=new XMLHttpRequest,h=new XMLHttpRequest;d.open("GET",document.getElementById("path").innerHTML,!0);d.responseType="arraybuffer";d.onload=function(){var m=d.response;m&&(m=new Uint8ClampedArray(m),Ub("/shader/shader1.toy",m))};d.send(null);e.open("GET", a,!0);e.responseType="arraybuffer";e.onload=function(){var m=e.response;m&&(m=new Uint8ClampedArray(m),Ub("/shader/shader1.bfa",m))};e.send(null);g.open("GET",b,!0);g.responseType="arraybuffer";g.onload=function(){var m=g.response;m&&(m=new Uint8ClampedArray(m),Ub("/shader/shader3.toy",m))};g.send(null);h.open("GET",c,!0);h.responseType="arraybuffer";h.onload=function(){var m=h.response;m&&(m=new Uint8ClampedArray(m),Ub("/shader/shader4.toy",m),console.log("Wrote 4 shaders to filesystem."))};h.send(null)}); return createModule.ready } ); })(); if (typeof exports === 'object' && typeof module === 'object') module.exports = createModule; else if (typeof define === 'function' && define['amd']) define([], function() { return createModule; }); else if (typeof exports === 'object') exports["createModule"] = createModule; MyModule = { canvas: (function() { var aCanvas = document.getElementById('canvas'); // aGlCtx = aCanvas.getContext ('webgl2', { alpha: true, premultipliedAlpha: false, depth: false, antialias: false, preserveDrawingBuffer: false } ); return aCanvas; })(), }; const OccViewerModuleInitialized = createModule(MyModule);