@aduh95/viz.js
Advanced tools
Comparing version 3.2.1 to 3.3.0
# Changelog | ||
### @aduh95/Viz.js v3.3.0 (2021-01-19) | ||
- Bump Emscripten version to | ||
[2.0.12](https://github.com/emscripten-core/emscripten/blob/master/ChangeLog.md#2012-01092021). | ||
- Bump Expat version to | ||
[2.2.10](https://github.com/libexpat/libexpat/blob/R_2_2_10/expat/Changes). | ||
- Bump Graphviz version to | ||
[2.46.0](https://gitlab.com/graphviz/graphviz/-/blob/master/CHANGELOG.md#2460-2021-01-18). | ||
### @aduh95/Viz.js v3.2.1 (2020-11-05) | ||
@@ -4,0 +13,0 @@ |
/** | ||
* Viz.js 3.2.1 (Graphviz 2.44.1, Expat 2.2.9, Emscripten 2.0.8) | ||
* Viz.js 3.3.0 (Graphviz 2.46.0, Expat 2.2.10, Emscripten 2.0.12) | ||
* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT licensed | ||
@@ -4,0 +4,0 @@ * |
/** | ||
* Viz.js 3.2.1 (Graphviz 2.44.1, Expat 2.2.9, Emscripten 2.0.8) | ||
* Viz.js 3.3.0 (Graphviz 2.46.0, Expat 2.2.10, Emscripten 2.0.12) | ||
* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT licensed | ||
@@ -10,2 +10,2 @@ * | ||
*/ | ||
var n=function(n){var t,r,e;n=n||{},t||(t=void 0!==n?n:{}),t.ready=new Promise((function(n,t){r=n,e=t}));var a,i={};for(a in t)t.hasOwnProperty(a)&&(i[a]=t[a]);var o="./this.program";function u(n,t){throw t}var f,c="";c=0!==(c=self.location.href).indexOf("blob:")?c.substr(0,c.lastIndexOf("/")+1):"",f=function(n){var t=new XMLHttpRequest;return t.open("GET",n,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)};var s=t.print||console.log.bind(console),l=t.printErr||console.warn.bind(console);for(a in i)i.hasOwnProperty(a)&&(t[a]=i[a]);i=null,t.thisProgram&&(o=t.thisProgram),t.quit&&(u=t.quit);var h,d,p=0;t.wasmBinary&&(h=t.wasmBinary),t.noExitRuntime&&(d=t.noExitRuntime),"object"!=typeof WebAssembly&&K("no native wasm support detected");var y,v=!1,w="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function m(n,t,r){var e=t+r;for(r=t;n[r]&&!(r>=e);)++r;if(16<r-t&&n.subarray&&w)return w.decode(n.subarray(t,r));for(e="";t<r;){var a=n[t++];if(128&a){var i=63&n[t++];if(192==(224&a))e+=String.fromCharCode((31&a)<<6|i);else{var o=63&n[t++];65536>(a=224==(240&a)?(15&a)<<12|i<<6|o:(7&a)<<18|i<<12|o<<6|63&n[t++])?e+=String.fromCharCode(a):(a-=65536,e+=String.fromCharCode(55296|a>>10,56320|1023&a))}}else e+=String.fromCharCode(a)}return e}function g(n,t){return n?m(_,n,t):""}function b(n,t,r,e){if(!(0<e))return 0;var a=r;e=r+e-1;for(var i=0;i<n.length;++i){var o=n.charCodeAt(i);if(55296<=o&&57343>=o&&(o=65536+((1023&o)<<10)|1023&n.charCodeAt(++i)),127>=o){if(r>=e)break;t[r++]=o}else{if(2047>=o){if(r+1>=e)break;t[r++]=192|o>>6}else{if(65535>=o){if(r+2>=e)break;t[r++]=224|o>>12}else{if(r+3>=e)break;t[r++]=240|o>>18,t[r++]=128|o>>12&63}t[r++]=128|o>>6&63}t[r++]=128|63&o}}return t[r]=0,r-a}function A(n){for(var t=0,r=0;r<n.length;++r){var e=n.charCodeAt(r);55296<=e&&57343>=e&&(e=65536+((1023&e)<<10)|1023&n.charCodeAt(++r)),127>=e?++t:t=2047>=e?t+2:65535>=e?t+3:t+4}return t}var D,C,_,E,k,F,T,M,P,S="undefined"==typeof TextDecoder&&void 0;function z(n,t){for(var r=n>>1,e=r+t/2;!(r>=e)&&k[r];)++r;if(32<(r<<=1)-n&&S)return S.decode(_.subarray(n,r));for(r=0,e="";;){var a=E[n+2*r>>1];if(0==a||r==t/2)return e;++r,e+=String.fromCharCode(a)}}function j(n,t,r){if(void 0===r&&(r=2147483647),2>r)return 0;var e=t;r=(r-=2)<2*n.length?r/2:n.length;for(var a=0;a<r;++a)E[t>>1]=n.charCodeAt(a),t+=2;return E[t>>1]=0,t-e}function x(n){return 2*n.length}function O(n,t){for(var r=0,e="";!(r>=t/4);){var a=F[n+4*r>>2];if(0==a)break;++r,65536<=a?(a-=65536,e+=String.fromCharCode(55296|a>>10,56320|1023&a)):e+=String.fromCharCode(a)}return e}function W(n,t,r){if(void 0===r&&(r=2147483647),4>r)return 0;var e=t;r=e+r-4;for(var a=0;a<n.length;++a){var i=n.charCodeAt(a);if(55296<=i&&57343>=i&&(i=65536+((1023&i)<<10)|1023&n.charCodeAt(++a)),F[t>>2]=i,(t+=4)+4>r)break}return F[t>>2]=0,t-e}function R(n){for(var t=0,r=0;r<n.length;++r){var e=n.charCodeAt(r);55296<=e&&57343>=e&&++r,t+=4}return t}function I(n){D=n,t.HEAP8=C=new Int8Array(n),t.HEAP16=E=new Int16Array(n),t.HEAP32=F=new Int32Array(n),t.HEAPU8=_=new Uint8Array(n),t.HEAPU16=k=new Uint16Array(n),t.HEAPU32=T=new Uint32Array(n),t.HEAPF32=M=new Float32Array(n),t.HEAPF64=P=new Float64Array(n)}var U=t.INITIAL_MEMORY||16777216;(y=t.wasmMemory?t.wasmMemory:new WebAssembly.Memory({initial:U/65536,maximum:32768}))&&(D=y.buffer),U=D.byteLength,I(D);var B,Y=[],H=[],N=[],L=[];function V(){var n=t.preRun.shift();Y.unshift(n)}var G=0,J=null;function K(n){throw t.onAbort&&t.onAbort(n),l(n),v=!0,n=new WebAssembly.RuntimeError("abort("+n+"). Build with -s ASSERTIONS=1 for more info."),e(n),n}function X(){var n=$;return String.prototype.startsWith?n.startsWith("data:application/octet-stream;base64,"):0===n.indexOf("data:application/octet-stream;base64,")}t.preloadedImages={},t.preloadedAudios={};var $="render.wasm";if(!X()){var Q=$;$=t.locateFile?t.locateFile(Q,c):c+Q}function Z(){try{if(h)return new Uint8Array(h);if(f)return f($);throw"both async and sync fetching of the wasm failed"}catch(n){K(n)}}var q,nn,tn,rn={1025:function(n,t){n=g(n),t=g(t);var r="/";r="string"==typeof r?r:Fn(r);for(var e=fn(n).split("/").reverse();e.length;){var a=e.pop();if(a){r=un(r+"/"+a);try{Yn(r)}catch(n){}}}n=function(){return un(Array.prototype.slice.call(arguments,0).join("/"))}("/",n);var i=i||{};if(i.flags=i.flags||"w",n=Vn(n,i.flags,i.mode),"string"==typeof t)Xn(n,e=new Uint8Array(A(t)+1),0,t=b(t,e,0,e.length),i.Ab);else{if(!ArrayBuffer.isView(t))throw Error("Unsupported data type");Xn(n,t,0,t.byteLength,i.Ab)}Gn(n)}};function en(n){for(;0<n.length;){var r=n.shift();if("function"==typeof r)r(t);else{var e=r.Db;"number"==typeof e?void 0===r.hb?B.get(e)():B.get(e)(r.hb):e(void 0===r.hb?null:r.hb)}}}function an(n){this.Oa=n-16,this.Vb=function(n){F[this.Oa+8>>2]=n},this.Sb=function(n){F[this.Oa+0>>2]=n},this.Tb=function(){F[this.Oa+4>>2]=0},this.Rb=function(){C[this.Oa+12>>0]=0},this.Ub=function(){C[this.Oa+13>>0]=0},this.Gb=function(n,t){this.Vb(n),this.Sb(t),this.Tb(),this.Rb(),this.Ub()}}function on(n,t){for(var r=0,e=n.length-1;0<=e;e--){var a=n[e];"."===a?n.splice(e,1):".."===a?(n.splice(e,1),r++):r&&(n.splice(e,1),r--)}if(t)for(;r;r--)n.unshift("..");return n}function un(n){var t="/"===n.charAt(0),r="/"===n.substr(-1);return(n=on(n.split("/").filter((function(n){return!!n})),!t).join("/"))||t||(n="."),n&&r&&(n+="/"),(t?"/":"")+n}function fn(n){var t=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(n).slice(1);return n=t[0],t=t[1],n||t?(t&&(t=t.substr(0,t.length-1)),n+t):"."}function cn(n){if("/"===n)return"/";var t=(n=(n=un(n)).replace(/\/$/,"")).lastIndexOf("/");return-1===t?n:n.substr(t+1)}function sn(){for(var n="",t=!1,r=arguments.length-1;-1<=r&&!t;r--){if("string"!=typeof(t=0<=r?arguments[r]:"/"))throw new TypeError("Arguments to path.resolve must be strings");if(!t)return"";n=t+"/"+n,t="/"===t.charAt(0)}return(t?"/":"")+(n=on(n.split("/").filter((function(n){return!!n})),!t).join("/"))||"."}tn=function(){return performance.now()};var ln=[];function hn(n,t){ln[n]={input:[],Ea:[],Qa:t},In(n,dn)}var dn={open:function(n){var t=ln[n.node.Ua];if(!t)throw new _n(43);n.Ca=t,n.seekable=!1},close:function(n){n.Ca.Qa.flush(n.Ca)},flush:function(n){n.Ca.Qa.flush(n.Ca)},read:function(n,t,r,e){if(!n.Ca||!n.Ca.Qa.qb)throw new _n(60);for(var a=0,i=0;i<e;i++){try{var o=n.Ca.Qa.qb(n.Ca)}catch(n){throw new _n(29)}if(void 0===o&&0===a)throw new _n(6);if(null==o)break;a++,t[r+i]=o}return a&&(n.node.timestamp=Date.now()),a},write:function(n,t,r,e){if(!n.Ca||!n.Ca.Qa.kb)throw new _n(60);try{for(var a=0;a<e;a++)n.Ca.Qa.kb(n.Ca,t[r+a])}catch(n){throw new _n(29)}return e&&(n.node.timestamp=Date.now()),a}},pn={qb:function(n){if(!n.input.length){var t=null;if("undefined"!=typeof window&&"function"==typeof window.prompt?null!==(t=window.prompt("Input: "))&&(t+="\n"):"function"==typeof readline&&null!==(t=readline())&&(t+="\n"),!t)return null;n.input=Nt(t,!0)}return n.input.shift()},kb:function(n,t){null===t||10===t?(s(m(n.Ea,0)),n.Ea=[]):0!=t&&n.Ea.push(t)},flush:function(n){n.Ea&&0<n.Ea.length&&(s(m(n.Ea,0)),n.Ea=[])}},yn={kb:function(n,t){null===t||10===t?(l(m(n.Ea,0)),n.Ea=[]):0!=t&&n.Ea.push(t)},flush:function(n){n.Ea&&0<n.Ea.length&&(l(m(n.Ea,0)),n.Ea=[])}},vn={Ia:null,La:function(){return vn.createNode(null,"/",16895,0)},createNode:function(n,t,r,e){if(24576==(61440&r)||4096==(61440&r))throw new _n(63);return vn.Ia||(vn.Ia={dir:{node:{Ha:vn.za.Ha,Ka:vn.za.Ka,Sa:vn.za.Sa,Ya:vn.za.Ya,tb:vn.za.tb,fb:vn.za.fb,ub:vn.za.ub,sb:vn.za.sb,ab:vn.za.ab},stream:{Na:vn.Aa.Na}},file:{node:{Ha:vn.za.Ha,Ka:vn.za.Ka},stream:{Na:vn.Aa.Na,read:vn.Aa.read,write:vn.Aa.write,mb:vn.Aa.mb,Za:vn.Aa.Za,$a:vn.Aa.$a}},link:{node:{Ha:vn.za.Ha,Ka:vn.za.Ka,Va:vn.za.Va},stream:{}},nb:{node:{Ha:vn.za.Ha,Ka:vn.za.Ka},stream:Rn}}),16384==(61440&(r=Pn(n,t,r,e)).mode)?(r.za=vn.Ia.dir.node,r.Aa=vn.Ia.dir.stream,r.ya={}):32768==(61440&r.mode)?(r.za=vn.Ia.file.node,r.Aa=vn.Ia.file.stream,r.Ba=0,r.ya=null):40960==(61440&r.mode)?(r.za=vn.Ia.link.node,r.Aa=vn.Ia.link.stream):8192==(61440&r.mode)&&(r.za=vn.Ia.nb.node,r.Aa=vn.Ia.nb.stream),r.timestamp=Date.now(),n&&(n.ya[t]=r),r},ac:function(n){if(n.ya&&n.ya.subarray){for(var t=[],r=0;r<n.Ba;++r)t.push(n.ya[r]);return t}return n.ya},bc:function(n){return n.ya?n.ya.subarray?n.ya.subarray(0,n.Ba):new Uint8Array(n.ya):new Uint8Array(0)},ob:function(n,t){var r=n.ya?n.ya.length:0;r>=t||(t=Math.max(t,r*(1048576>r?2:1.125)>>>0),0!=r&&(t=Math.max(t,256)),r=n.ya,n.ya=new Uint8Array(t),0<n.Ba&&n.ya.set(r.subarray(0,n.Ba),0))},Pb:function(n,t){if(n.Ba!=t)if(0==t)n.ya=null,n.Ba=0;else{if(!n.ya||n.ya.subarray){var r=n.ya;n.ya=new Uint8Array(t),r&&n.ya.set(r.subarray(0,Math.min(t,n.Ba)))}else if(n.ya||(n.ya=[]),n.ya.length>t)n.ya.length=t;else for(;n.ya.length<t;)n.ya.push(0);n.Ba=t}},za:{Ha:function(n){var t={};return t.Cb=8192==(61440&n.mode)?n.id:1,t.jb=n.id,t.mode=n.mode,t.Mb=1,t.uid=0,t.Eb=0,t.Ua=n.Ua,16384==(61440&n.mode)?t.size=4096:32768==(61440&n.mode)?t.size=n.Ba:40960==(61440&n.mode)?t.size=n.link.length:t.size=0,t.xb=new Date(n.timestamp),t.Lb=new Date(n.timestamp),t.Bb=new Date(n.timestamp),t.yb=4096,t.zb=Math.ceil(t.size/t.yb),t},Ka:function(n,t){void 0!==t.mode&&(n.mode=t.mode),void 0!==t.timestamp&&(n.timestamp=t.timestamp),void 0!==t.size&&vn.Pb(n,t.size)},Sa:function(){throw En[44]},Ya:function(n,t,r,e){return vn.createNode(n,t,r,e)},tb:function(n,t,r){if(16384==(61440&n.mode)){try{var e=Mn(t,r)}catch(n){}if(e)for(var a in e.ya)throw new _n(55)}delete n.parent.ya[n.name],n.name=r,t.ya[r]=n,n.parent=t},fb:function(n,t){delete n.ya[t]},ub:function(n,t){var r,e=Mn(n,t);for(r in e.ya)throw new _n(55);delete n.ya[t]},sb:function(n){var t,r=[".",".."];for(t in n.ya)n.ya.hasOwnProperty(t)&&r.push(t);return r},ab:function(n,t,r){return(n=vn.createNode(n,t,41471,0)).link=r,n},Va:function(n){if(40960!=(61440&n.mode))throw new _n(28);return n.link}},Aa:{read:function(n,t,r,e,a){var i=n.node.ya;if(a>=n.node.Ba)return 0;if(8<(n=Math.min(n.node.Ba-a,e))&&i.subarray)t.set(i.subarray(a,a+n),r);else for(e=0;e<n;e++)t[r+e]=i[a+e];return n},write:function(n,t,r,e,a,i){if(t.buffer===C.buffer&&(i=!1),!e)return 0;if((n=n.node).timestamp=Date.now(),t.subarray&&(!n.ya||n.ya.subarray)){if(i)return n.ya=t.subarray(r,r+e),n.Ba=e;if(0===n.Ba&&0===a)return n.ya=t.slice(r,r+e),n.Ba=e;if(a+e<=n.Ba)return n.ya.set(t.subarray(r,r+e),a),e}if(vn.ob(n,a+e),n.ya.subarray&&t.subarray)n.ya.set(t.subarray(r,r+e),a);else for(i=0;i<e;i++)n.ya[a+i]=t[r+i];return n.Ba=Math.max(n.Ba,a+e),e},Na:function(n,t,r){if(1===r?t+=n.position:2===r&&32768==(61440&n.node.mode)&&(t+=n.node.Ba),0>t)throw new _n(28);return t},mb:function(n,t,r){vn.ob(n.node,t+r),n.node.Ba=Math.max(n.node.Ba,t+r)},Za:function(n,t,r,e,a,i){if(0===t||K("Assertion failed: undefined"),32768!=(61440&n.node.mode))throw new _n(43);if(n=n.node.ya,2&i||n.buffer!==D){for((0<e||e+r<n.length)&&(n=n.subarray?n.subarray(e,e+r):Array.prototype.slice.call(n,e,e+r)),e=!0,i=16384*Math.ceil(r/16384),t=Gt(i);r<i;)C[t+r++]=0;if(!(r=t))throw new _n(48);C.set(n,r)}else e=!1,r=n.byteOffset;return{Oa:r,gb:e}},$a:function(n,t,r,e,a){if(32768!=(61440&n.node.mode))throw new _n(43);return 2&a||vn.Aa.write(n,t,0,e,r,!1),0}}},wn=null,mn={},gn=[],bn=1,An=null,Dn=!0,Cn={},_n=null,En={};function kn(n,t){if(t=t||{},!(n=sn("/",n)))return{path:"",node:null};var r,e={pb:!0,lb:0};for(r in e)void 0===t[r]&&(t[r]=e[r]);if(8<t.lb)throw new _n(32);n=on(n.split("/").filter((function(n){return!!n})),!1);var a=wn;for(e="/",r=0;r<n.length;r++){var i=r===n.length-1;if(i&&t.parent)break;if(a=Mn(a,n[r]),e=un(e+"/"+n[r]),a.Ta&&(!i||i&&t.pb)&&(a=a.Ta.root),!i||t.Xa)for(i=0;40960==(61440&a.mode);)if(a=Ln(e),a=kn(e=sn(fn(e),a),{lb:t.lb}).node,40<i++)throw new _n(32)}return{path:e,node:a}}function Fn(n){for(var t;;){if(n===n.parent)return n=n.La.rb,t?"/"!==n[n.length-1]?n+"/"+t:n+t:n;t=t?n.name+"/"+t:n.name,n=n.parent}}function Tn(n,t){for(var r=0,e=0;e<t.length;e++)r=(r<<5)-r+t.charCodeAt(e)|0;return(n+r>>>0)%An.length}function Mn(n,t){var r;if(r=(r=jn(n,"x"))?r:n.za.Sa?0:2)throw new _n(r,n);for(r=An[Tn(n.id,t)];r;r=r.Pa){var e=r.name;if(r.parent.id===n.id&&e===t)return r}return n.za.Sa(n,t)}function Pn(n,t,r,e){return t=Tn((n=new Bt(n,t,r,e)).parent.id,n.name),n.Pa=An[t],An[t]=n}var Sn={r:0,rs:1052672,"r+":2,w:577,wx:705,xw:705,"w+":578,"wx+":706,"xw+":706,a:1089,ax:1217,xa:1217,"a+":1090,"ax+":1218,"xa+":1218};function zn(n){var t=["r","w","rw"][3&n];return 512&n&&(t+="w"),t}function jn(n,t){return Dn||(-1===t.indexOf("r")||292&n.mode)&&(-1===t.indexOf("w")||146&n.mode)&&(-1===t.indexOf("x")||73&n.mode)?0:2}function xn(n,t){try{return Mn(n,t),20}catch(n){}return jn(n,"wx")}function On(n,t){qn||((qn=function(){}).prototype={});var r,e=new qn;for(r in n)e[r]=n[r];return n=e,t=function(n){for(n=n||0;n<=4096;n++)if(!gn[n])return n;throw new _n(33)}(t),n.Ga=t,gn[t]=n}var Wn,Rn={open:function(n){n.Aa=mn[n.node.Ua].Aa,n.Aa.open&&n.Aa.open(n)},Na:function(){throw new _n(70)}};function In(n,t){mn[n]={Aa:t}}function Un(n,t){var r="/"===t,e=!t;if(r&&wn)throw new _n(10);if(!r&&!e){var a=kn(t,{pb:!1});if(t=a.path,(a=a.node).Ta)throw new _n(10);if(16384!=(61440&a.mode))throw new _n(54)}t={type:n,ec:{},rb:t,Kb:[]},(n=n.La(t)).La=t,t.root=n,r?wn=n:a&&(a.Ta=t,a.La&&a.La.Kb.push(t))}function Bn(n,t,r){var e=kn(n,{parent:!0}).node;if(!(n=cn(n))||"."===n||".."===n)throw new _n(28);var a=xn(e,n);if(a)throw new _n(a);if(!e.za.Ya)throw new _n(63);return e.za.Ya(e,n,t,r)}function Yn(n){Bn(n,16895,0)}function Hn(n,t,r){void 0===r&&(r=t,t=438),Bn(n,8192|t,r)}function Nn(n,t){if(!sn(n))throw new _n(44);var r=kn(t,{parent:!0}).node;if(!r)throw new _n(44);var e=xn(r,t=cn(t));if(e)throw new _n(e);if(!r.za.ab)throw new _n(63);r.za.ab(r,t,n)}function Ln(n){if(!(n=kn(n).node))throw new _n(44);if(!n.za.Va)throw new _n(28);return sn(Fn(n.parent),n.za.Va(n))}function Vn(n,r,e,a){if(""===n)throw new _n(44);if("string"==typeof r){var i=Sn[r];if(void 0===i)throw Error("Unknown file open mode: "+r);r=i}if(e=64&r?4095&(void 0===e?438:e)|32768:0,"object"==typeof n)var o=n;else{n=un(n);try{o=kn(n,{Xa:!(131072&r)}).node}catch(n){}}if(i=!1,64&r)if(o){if(128&r)throw new _n(20)}else o=Bn(n,e,0),i=!0;if(!o)throw new _n(44);if(8192==(61440&o.mode)&&(r&=-513),65536&r&&16384!=(61440&o.mode))throw new _n(54);if(!i&&(e=o?40960==(61440&o.mode)?32:16384==(61440&o.mode)&&("r"!==zn(r)||512&r)?31:jn(o,zn(r)):44))throw new _n(e);if(512&r){var u;if(!(u="string"==typeof(e=o)?kn(e,{Xa:!0}).node:e).za.Ka)throw new _n(63);if(16384==(61440&u.mode))throw new _n(31);if(32768!=(61440&u.mode))throw new _n(28);if(e=jn(u,"w"))throw new _n(e);u.za.Ka(u,{size:0,timestamp:Date.now()})}r&=-131713,(a=On({node:o,path:Fn(o),flags:r,seekable:!0,position:0,Aa:o.Aa,$b:[],error:!1},a)).Aa.open&&a.Aa.open(a),!t.logReadFiles||1&r||(nt||(nt={}),n in nt||(nt[n]=1,l("FS.trackingDelegate error on read file: "+n)));try{Cn.onOpenFile&&(o=0,1!=(2097155&r)&&(o|=1),0!=(2097155&r)&&(o|=2),Cn.onOpenFile(n,o))}catch(t){l("FS.trackingDelegate['onOpenFile']('"+n+"', flags) threw an exception: "+t.message)}return a}function Gn(n){if(null===n.Ga)throw new _n(8);n.ib&&(n.ib=null);try{n.Aa.close&&n.Aa.close(n)}catch(n){throw n}finally{gn[n.Ga]=null}n.Ga=null}function Jn(n,t,r){if(null===n.Ga)throw new _n(8);if(!n.seekable||!n.Aa.Na)throw new _n(70);if(0!=r&&1!=r&&2!=r)throw new _n(28);n.position=n.Aa.Na(n,t,r),n.$b=[]}function Kn(n,t,r,e){var a=C;if(0>r||0>e)throw new _n(28);if(null===n.Ga)throw new _n(8);if(1==(2097155&n.flags))throw new _n(8);if(16384==(61440&n.node.mode))throw new _n(31);if(!n.Aa.read)throw new _n(28);var i=void 0!==e;if(i){if(!n.seekable)throw new _n(70)}else e=n.position;return t=n.Aa.read(n,a,t,r,e),i||(n.position+=t),t}function Xn(n,t,r,e,a){var i=void 0;if(0>e||0>i)throw new _n(28);if(null===n.Ga)throw new _n(8);if(0==(2097155&n.flags))throw new _n(8);if(16384==(61440&n.node.mode))throw new _n(31);if(!n.Aa.write)throw new _n(28);n.seekable&&1024&n.flags&&Jn(n,0,2);var o=void 0!==i;if(o){if(!n.seekable)throw new _n(70)}else i=n.position;t=n.Aa.write(n,t,r,e,i,a),o||(n.position+=t);try{n.path&&Cn.onWriteToFile&&Cn.onWriteToFile(n.path)}catch(t){l("FS.trackingDelegate['onWriteToFile']('"+n.path+"') threw an exception: "+t.message)}return t}function $n(){_n||((_n=function(n,t){this.node=t,this.Qb=function(n){this.Da=n},this.Qb(n),this.message="FS error"}).prototype=Error(),_n.prototype.constructor=_n,[44].forEach((function(n){En[n]=new _n(n),En[n].stack="<generic error, no stack>"})))}function Qn(n,t,r){n=un("/dev/"+n);var e=function(n,t){var r=0;return n&&(r|=365),t&&(r|=146),r}(!!t,!!r);Zn||(Zn=64);var a=Zn++<<8|0;In(a,{open:function(n){n.seekable=!1},close:function(){r&&r.buffer&&r.buffer.length&&r(10)},read:function(n,r,e,a){for(var i=0,o=0;o<a;o++){try{var u=t()}catch(n){throw new _n(29)}if(void 0===u&&0===i)throw new _n(6);if(null==u)break;i++,r[e+o]=u}return i&&(n.node.timestamp=Date.now()),i},write:function(n,t,e,a){for(var i=0;i<a;i++)try{r(t[e+i])}catch(n){throw new _n(29)}return a&&(n.node.timestamp=Date.now()),i}}),Hn(n,e,a)}var Zn,qn,nt,tt={},rt={};function et(n,t){try{var r=kn(n,{Xa:!0}).node;if(!r)throw new _n(44);if(!r.za.Ha)throw new _n(63);var e=r.za.Ha(r)}catch(t){if(t&&t.node&&un(n)!==un(Fn(t.node)))return-54;throw t}return F[t>>2]=e.Cb,F[t+4>>2]=0,F[t+8>>2]=e.jb,F[t+12>>2]=e.mode,F[t+16>>2]=e.Mb,F[t+20>>2]=e.uid,F[t+24>>2]=e.Eb,F[t+28>>2]=e.Ua,F[t+32>>2]=0,nn=[e.size>>>0,(q=e.size,1<=+Math.abs(q)?0<q?(0|Math.min(+Math.floor(q/4294967296),4294967295))>>>0:~~+Math.ceil((q-+(~~q>>>0))/4294967296)>>>0:0)],F[t+40>>2]=nn[0],F[t+44>>2]=nn[1],F[t+48>>2]=4096,F[t+52>>2]=e.zb,F[t+56>>2]=e.xb.getTime()/1e3|0,F[t+60>>2]=0,F[t+64>>2]=e.Lb.getTime()/1e3|0,F[t+68>>2]=0,F[t+72>>2]=e.Bb.getTime()/1e3|0,F[t+76>>2]=0,nn=[e.jb>>>0,(q=e.jb,1<=+Math.abs(q)?0<q?(0|Math.min(+Math.floor(q/4294967296),4294967295))>>>0:~~+Math.ceil((q-+(~~q>>>0))/4294967296)>>>0:0)],F[t+80>>2]=nn[0],F[t+84>>2]=nn[1],0}var at=void 0;function it(){return F[(at+=4)-4>>2]}function ot(n){if(!(n=gn[n]))throw new _n(8);return n}function ut(n){switch(n){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+n)}}var ft=void 0;function ct(n){for(var t="";_[n];)t+=ft[_[n++]];return t}var st={},lt={},ht={};function dt(n){if(void 0===n)return"_unknown";var t=(n=n.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return 48<=t&&57>=t?"_"+n:n}function pt(n,t){return n=dt(n),new Function("body","return function "+n+'() {\n "use strict"; return body.apply(this, arguments);\n};\n')(t)}function yt(n){var t=Error,r=pt(n,(function(t){this.name=n,this.message=t,void 0!==(t=Error(t).stack)&&(this.stack=this.toString()+"\n"+t.replace(/^Error(:[^\n]*)?\n/,""))}));return r.prototype=Object.create(t.prototype),r.prototype.constructor=r,r.prototype.toString=function(){return void 0===this.message?this.name:this.name+": "+this.message},r}var vt=void 0;function wt(n){throw new vt(n)}var mt=void 0;function gt(n,t,r){if(r=r||{},!("argPackAdvance"in t))throw new TypeError("registerType registeredInstance requires argPackAdvance");var e=t.name;if(n||wt('type "'+e+'" must have a positive integer typeid pointer'),lt.hasOwnProperty(n)){if(r.Fb)return;wt("Cannot register type '"+e+"' twice")}lt[n]=t,delete ht[n],st.hasOwnProperty(n)&&(t=st[n],delete st[n],t.forEach((function(n){n()})))}var bt=[],At=[{},{value:void 0},{value:null},{value:!0},{value:!1}];function Dt(n){return this.fromWireType(T[n>>2])}function Ct(n){if(null===n)return"null";var t=typeof n;return"object"===t||"array"===t||"function"===t?n.toString():""+n}function _t(n,t){switch(t){case 2:return function(n){return this.fromWireType(M[n>>2])};case 3:return function(n){return this.fromWireType(P[n>>3])};default:throw new TypeError("Unknown float type: "+n)}}function Et(n){for(;n.length;){var t=n.pop();n.pop()(t)}}function kt(n,r,e){t.hasOwnProperty(n)?((void 0===e||void 0!==t[n].Ja&&void 0!==t[n].Ja[e])&&wt("Cannot register public name '"+n+"' twice"),function(n,r){var e=t;if(void 0===e[n].Ja){var a=e[n];e[n]=function(){return e[n].Ja.hasOwnProperty(arguments.length)||wt("Function '"+r+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+e[n].Ja+")!"),e[n].Ja[arguments.length].apply(this,arguments)},e[n].Ja=[],e[n].Ja[a.wb]=a}}(n,n),t.hasOwnProperty(e)&&wt("Cannot register multiple overloads of a function with the same number of arguments ("+e+")!"),t[n].Ja[e]=r):(t[n]=r,void 0!==e&&(t[n].dc=e))}function Ft(n,r){var e=-1!=(n=ct(n)).indexOf("j")?function(n,r){0<=n.indexOf("j")||K("Assertion failed: getDynCaller should only be called with i64 sigs");var e=[];return function(){e.length=arguments.length;for(var a=0;a<arguments.length;a++)e[a]=arguments[a];return-1!=n.indexOf("j")?e&&e.length?t["dynCall_"+n].apply(null,[r].concat(e)):t["dynCall_"+n].call(null,r):B.get(r).apply(null,e)}}(n,r):B.get(r);return"function"!=typeof e&&wt("unknown function pointer with signature "+n+": "+r),e}var Tt=void 0;function Mt(n){var t=ct(n=Qt(n));return Jt(n),t}function Pt(n,t,r){switch(t){case 0:return r?function(n){return C[n]}:function(n){return _[n]};case 1:return r?function(n){return E[n>>1]}:function(n){return k[n>>1]};case 2:return r?function(n){return F[n>>2]}:function(n){return T[n>>2]};default:throw new TypeError("Unknown integer type: "+n)}}var St,zt={};function jt(){if(!St){var n,t={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",_:o||"./this.program"};for(n in zt)t[n]=zt[n];var r=[];for(n in t)r.push(n+"="+t[n]);St=r}return St}function xt(n){return 0==n%4&&(0!=n%100||0==n%400)}function Ot(n,t){for(var r=0,e=0;e<=t;r+=n[e++]);return r}var Wt=[31,29,31,30,31,30,31,31,30,31,30,31],Rt=[31,28,31,30,31,30,31,31,30,31,30,31];function It(n,t){for(n=new Date(n.getTime());0<t;){var r=n.getMonth(),e=(xt(n.getFullYear())?Wt:Rt)[r];if(!(t>e-n.getDate())){n.setDate(n.getDate()+t);break}t-=e-n.getDate()+1,n.setDate(1),11>r?n.setMonth(r+1):(n.setMonth(0),n.setFullYear(n.getFullYear()+1))}return n}var Ut=[];function Bt(n,t,r,e){n||(n=this),this.parent=n,this.La=n.La,this.Ta=null,this.id=bn++,this.name=t,this.mode=r,this.za={},this.Aa={},this.Ua=e}Object.defineProperties(Bt.prototype,{read:{get:function(){return 365==(365&this.mode)},set:function(n){n?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146==(146&this.mode)},set:function(n){n?this.mode|=146:this.mode&=-147}}}),$n(),An=Array(4096),Un(vn,"/"),Yn("/tmp"),Yn("/home"),Yn("/home/web_user"),function(){Yn("/dev"),In(259,{read:function(){return 0},write:function(n,t,r,e){return e}}),Hn("/dev/null",259),hn(1280,pn),hn(1536,yn),Hn("/dev/tty",1280),Hn("/dev/tty1",1536);var n=function(){if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues){var n=new Uint8Array(1);return function(){return crypto.getRandomValues(n),n[0]}}return function(){K("randomDevice")}}();Qn("random",n),Qn("urandom",n),Yn("/dev/shm"),Yn("/dev/shm/tmp")}(),Yn("/proc"),Yn("/proc/self"),Yn("/proc/self/fd"),Un({La:function(){var n=Pn("/proc/self","fd",16895,73);return n.za={Sa:function(n,t){var r=gn[+t];if(!r)throw new _n(8);return(n={parent:null,La:{rb:"fake"},za:{Va:function(){return r.path}}}).parent=n}},n}},"/proc/self/fd");for(var Yt=Array(256),Ht=0;256>Ht;++Ht)Yt[Ht]=String.fromCharCode(Ht);function Nt(n,t){var r=Array(A(n)+1);return n=b(n,r,0,r.length),t&&(r.length=n),r}ft=Yt,vt=t.BindingError=yt("BindingError"),mt=t.InternalError=yt("InternalError"),t.count_emval_handles=function(){for(var n=0,t=5;t<At.length;++t)void 0!==At[t]&&++n;return n},t.get_first_emval=function(){for(var n=5;n<At.length;++n)if(void 0!==At[n])return At[n];return null},Tt=t.UnboundTypeError=yt("UnboundTypeError"),H.push({Db:function(){Vt()}});var Lt={b:function(n,t,r,e){K("Assertion failed: "+g(n)+", at: "+[t?g(t):"unknown filename",r,e?g(e):"unknown function"])},V:function(n,t){n:{if(0===n)n=Date.now();else{if(1!==n&&4!==n){F[Kt()>>2]=28,t=-1;break n}n=tn()}F[t>>2]=n/1e3|0,F[t+4>>2]=n%1e3*1e6|0,t=0}return t},o:function(n){return Gt(n+16)+16},n:function(n,t,r){throw new an(n).Gb(t,r),n},X:function(n,t){try{var r;if(n=g(n),-8&t)var e=-28;else(r=kn(n,{Xa:!0}).node)?(n="",4&t&&(n+="r"),2&t&&(n+="w"),1&t&&(n+="x"),e=n&&jn(r,n)?-2:0):e=-44;return e}catch(n){return void 0!==tt&&n instanceof _n||K(n),-n.Da}},B:function(n,t,r){at=r;try{var e=ot(n);switch(t){case 0:var a=it();return 0>a?-28:Vn(e.path,e.flags,0,a).Ga;case 1:case 2:return 0;case 3:return e.flags;case 4:return a=it(),e.flags|=a,0;case 12:return a=it(),E[a+0>>1]=2,0;case 13:case 14:return 0;case 16:case 8:return-28;case 9:return F[Kt()>>2]=28,-1;default:return-28}}catch(n){return void 0!==tt&&n instanceof _n||K(n),-n.Da}},R:function(n,t){try{return et(ot(n).path,t)}catch(n){return void 0!==tt&&n instanceof _n||K(n),-n.Da}},s:function(){return 42},T:function(n,t,r){at=r;try{var e=ot(n);switch(t){case 21509:case 21505:return e.Ca?0:-59;case 21510:case 21511:case 21512:case 21506:case 21507:case 21508:return e.Ca?0:-59;case 21519:if(!e.Ca)return-59;var a=it();return F[a>>2]=0;case 21520:return e.Ca?-28:-59;case 21531:if(n=a=it(),!e.Aa.Hb)throw new _n(59);return e.Aa.Hb(e,t,n);case 21523:case 21524:return e.Ca?0:-59;default:K("bad ioctl syscall "+t)}}catch(n){return void 0!==tt&&n instanceof _n||K(n),-n.Da}},P:function(n,t,r,e,a,i){try{n:{i<<=12;var o=!1;if(0!=(16&e)&&0!=n%16384)var u=-28;else{if(0!=(32&e)){var f=$t(16384,t);if(!f){u=-48;break n}Xt(f,0,t),o=!0}else{var c=gn[a];if(!c){u=-8;break n}var s=i;if(0!=(2&r)&&0==(2&e)&&2!=(2097155&c.flags))throw new _n(2);if(1==(2097155&c.flags))throw new _n(2);if(!c.Aa.Za)throw new _n(43);var l=c.Aa.Za(c,n,t,s,r,e);f=l.Oa,o=l.gb}rt[f]={Jb:f,Ib:t,gb:o,Ga:a,Nb:r,flags:e,offset:i},u=f}}return u}catch(n){return void 0!==tt&&n instanceof _n||K(n),-n.Da}},O:function(n,t){try{if(-1==(0|n)||0===t)var r=-28;else{var e=rt[n];if(e&&t===e.Ib){var a=gn[e.Ga];2&e.Nb&&a&&a.Aa.$a&&a.Aa.$a(a,_.slice(n,n+t),e.offset,t,e.flags),rt[n]=null,e.gb&&Jt(e.Jb)}r=0}return r}catch(n){return void 0!==tt&&n instanceof _n||K(n),-n.Da}},v:function(n,t,r){at=r;try{return Vn(g(n),t,it()).Ga}catch(n){return void 0!==tt&&n instanceof _n||K(n),-n.Da}},W:function(n,t,r){try{return Kn(ot(n),t,r)}catch(n){return void 0!==tt&&n instanceof _n||K(n),-n.Da}},Q:function(n,t){try{return et(n=g(n),t)}catch(n){return void 0!==tt&&n instanceof _n||K(n),-n.Da}},U:function(n){try{var t=kn(n=g(n),{parent:!0}).node,r=cn(n),e=Mn(t,r);n:{try{var a=Mn(t,r)}catch(n){var i=n.Da;break n}var o=jn(t,"wx");i=o||(16384==(61440&a.mode)?31:0)}if(i)throw new _n(i);if(!t.za.fb)throw new _n(63);if(e.Ta)throw new _n(10);try{Cn.willDeletePath&&Cn.willDeletePath(n)}catch(t){l("FS.trackingDelegate['willDeletePath']('"+n+"') threw an exception: "+t.message)}t.za.fb(t,r);var u=Tn(e.parent.id,e.name);if(An[u]===e)An[u]=e.Pa;else for(var f=An[u];f;){if(f.Pa===e){f.Pa=e.Pa;break}f=f.Pa}try{Cn.onDeletePath&&Cn.onDeletePath(n)}catch(t){l("FS.trackingDelegate['onDeletePath']('"+n+"') threw an exception: "+t.message)}return 0}catch(n){return void 0!==tt&&n instanceof _n||K(n),-n.Da}},Z:function(n,t,r,e,a){var i=ut(r);gt(n,{name:t=ct(t),fromWireType:function(n){return!!n},toWireType:function(n,t){return t?e:a},argPackAdvance:8,readValueFromPointer:function(n){if(1===r)var e=C;else if(2===r)e=E;else{if(4!==r)throw new TypeError("Unknown boolean type size: "+t);e=F}return this.fromWireType(e[n>>i])},Ma:null})},Y:function(n,t){gt(n,{name:t=ct(t),fromWireType:function(n){var t=At[n].value;return 4<n&&0==--At[n].Ob&&(At[n]=void 0,bt.push(n)),t},toWireType:function(n,t){return function(n){switch(n){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var t=bt.length?bt.pop():At.length;return At[t]={Ob:1,value:n},t}}(t)},argPackAdvance:8,readValueFromPointer:Dt,Ma:null})},C:function(n,t,r){r=ut(r),gt(n,{name:t=ct(t),fromWireType:function(n){return n},toWireType:function(n,t){if("number"!=typeof t&&"boolean"!=typeof t)throw new TypeError('Cannot convert "'+Ct(t)+'" to '+this.name);return t},argPackAdvance:8,readValueFromPointer:_t(t,r),Ma:null})},t:function(n,r,e,a,i,o){var u=function(n,t){for(var r=[],e=0;e<n;e++)r.push(F[(t>>2)+e]);return r}(r,e);n=ct(n),i=Ft(a,i),kt(n,(function(){!function(n,t){var r=[],e={};throw t.forEach((function n(t){e[t]||lt[t]||(ht[t]?ht[t].forEach(n):(r.push(t),e[t]=!0))})),new Tt(n+": "+r.map(Mt).join([", "]))}("Cannot call "+n+" due to unbound types",u)}),r-1),function(n,t){function r(n){if((n=t(n)).length!==e.length)throw new mt("Mismatched type converter count");for(var r=0;r<e.length;++r)gt(e[r],n[r])}var e=[];e.forEach((function(t){ht[t]=n}));var a=Array(n.length),i=[],o=0;n.forEach((function(n,t){lt.hasOwnProperty(n)?a[t]=lt[n]:(i.push(n),st.hasOwnProperty(n)||(st[n]=[]),st[n].push((function(){a[t]=lt[n],++o===i.length&&r(a)})))})),0===i.length&&r(a)}(u,(function(e){var a=n,u=n;e=[e[0],null].concat(e.slice(1));var f=i,c=e.length;2>c&&wt("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var s=null!==e[1]&&!1,l=!1,h=1;h<e.length;++h)if(null!==e[h]&&void 0===e[h].Ma){l=!0;break}var d="void"!==e[0].name,p="",y="";for(h=0;h<c-2;++h)p+=(0!==h?", ":"")+"arg"+h,y+=(0!==h?", ":"")+"arg"+h+"Wired";u="return function "+dt(u)+"("+p+") {\nif (arguments.length !== "+(c-2)+") {\nthrowBindingError('function "+u+" called with ' + arguments.length + ' arguments, expected "+(c-2)+" args!');\n}\n",l&&(u+="var destructors = [];\n");var v=l?"destructors":"null";for(p="throwBindingError invoker fn runDestructors retType classParam".split(" "),f=[wt,f,o,Et,e[0],e[1]],s&&(u+="var thisWired = classParam.toWireType("+v+", this);\n"),h=0;h<c-2;++h)u+="var arg"+h+"Wired = argType"+h+".toWireType("+v+", arg"+h+"); // "+e[h+2].name+"\n",p.push("argType"+h),f.push(e[h+2]);if(s&&(y="thisWired"+(0<y.length?", ":"")+y),u+=(d?"var rv = ":"")+"invoker(fn"+(0<y.length?", ":"")+y+");\n",l)u+="runDestructors(destructors);\n";else for(h=s?1:2;h<e.length;++h)c=1===h?"thisWired":"arg"+(h-2)+"Wired",null!==e[h].Ma&&(u+=c+"_dtor("+c+"); // "+e[h].name+"\n",p.push(c+"_dtor"),f.push(e[h].Ma));if(d&&(u+="var ret = retType.fromWireType(rv);\nreturn ret;\n"),p.push(u+"}\n"),e=function(n){var t=Function;if(!(t instanceof Function))throw new TypeError("new_ called with constructor type "+typeof t+" which is not a function");var r=pt(t.name||"unknownFunctionName",(function(){}));return r.prototype=t.prototype,r=new r,(n=t.apply(r,n))instanceof Object?n:r}(p).apply(null,f),h=r-1,!t.hasOwnProperty(a))throw new mt("Replacing nonexistant public symbol");return void 0!==t[a].Ja&&void 0!==h?t[a].Ja[h]=e:(t[a]=e,t[a].wb=h),[]}))},l:function(n,t,r,e,a){function i(n){return n}t=ct(t),-1===a&&(a=4294967295);var o=ut(r);if(0===e){var u=32-8*r;i=function(n){return n<<u>>>u}}var f=-1!=t.indexOf("unsigned");gt(n,{name:t,fromWireType:i,toWireType:function(n,r){if("number"!=typeof r&&"boolean"!=typeof r)throw new TypeError('Cannot convert "'+Ct(r)+'" to '+this.name);if(r<e||r>a)throw new TypeError('Passing a number "'+Ct(r)+'" from JS side to C/C++ side to an argument of type "'+t+'", which is outside the valid range ['+e+", "+a+"]!");return f?r>>>0:0|r},argPackAdvance:8,readValueFromPointer:Pt(t,o,0!==e),Ma:null})},j:function(n,t,r){function e(n){var t=T;return new a(D,t[1+(n>>=2)],t[n])}var a=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][t];gt(n,{name:r=ct(r),fromWireType:e,argPackAdvance:8,readValueFromPointer:e},{Fb:!0})},D:function(n,t){var r="std::string"===(t=ct(t));gt(n,{name:t,fromWireType:function(n){var t=T[n>>2];if(r)for(var e=n+4,a=0;a<=t;++a){var i=n+4+a;if(a==t||0==_[i]){if(e=g(e,i-e),void 0===o)var o=e;else o+=String.fromCharCode(0),o+=e;e=i+1}}else{for(o=Array(t),a=0;a<t;++a)o[a]=String.fromCharCode(_[n+4+a]);o=o.join("")}return Jt(n),o},toWireType:function(n,t){t instanceof ArrayBuffer&&(t=new Uint8Array(t));var e="string"==typeof t;e||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Int8Array||wt("Cannot pass non-string to std::string");var a=(r&&e?function(){return A(t)}:function(){return t.length})(),i=Gt(4+a+1);if(T[i>>2]=a,r&&e)b(t,_,i+4,a+1);else if(e)for(e=0;e<a;++e){var o=t.charCodeAt(e);255<o&&(Jt(i),wt("String has UTF-16 code units that do not fit in 8 bits")),_[i+4+e]=o}else for(e=0;e<a;++e)_[i+4+e]=t[e];return null!==n&&n.push(Jt,i),i},argPackAdvance:8,readValueFromPointer:Dt,Ma:function(n){Jt(n)}})},x:function(n,t,r){if(r=ct(r),2===t)var e=z,a=j,i=x,o=function(){return k},u=1;else 4===t&&(e=O,a=W,i=R,o=function(){return T},u=2);gt(n,{name:r,fromWireType:function(n){for(var r,a=T[n>>2],i=o(),f=n+4,c=0;c<=a;++c){var s=n+4+c*t;c!=a&&0!=i[s>>u]||(f=e(f,s-f),void 0===r?r=f:(r+=String.fromCharCode(0),r+=f),f=s+t)}return Jt(n),r},toWireType:function(n,e){"string"!=typeof e&&wt("Cannot pass non-string to C++ string type "+r);var o=i(e),f=Gt(4+o+t);return T[f>>2]=o>>u,a(e,f+4,o+t),null!==n&&n.push(Jt,f),f},argPackAdvance:8,readValueFromPointer:Dt,Ma:function(n){Jt(n)}})},_:function(n,t){gt(n,{cc:!0,name:t=ct(t),argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},y:function(){K()},da:function(n,t,r){var e;for(Ut.length=0,r>>=2;e=_[t++];)(e=105>e)&&1&r&&r++,Ut.push(e?P[r++>>1]:F[r]),++r;return rn[n].apply(null,Ut)},e:function(n,t){throw tr(n,t||1),"longjmp"},I:function(n,t,r){_.copyWithin(n,t,t+r)},J:function(n){n>>>=0;var t=_.length;if(2147483648<n)return!1;for(var r=1;4>=r;r*=2){var e=t*(1+.2/r);e=Math.min(e,n+100663296),0<(e=Math.max(16777216,n,e))%65536&&(e+=65536-e%65536);n:{try{y.grow(Math.min(2147483648,e)-D.byteLength+65535>>>16),I(y.buffer);var a=1;break n}catch(n){}a=void 0}if(a)return!0}return!1},M:function(n,t){var r=0;return jt().forEach((function(e,a){var i=t+r;for(a=F[n+4*a>>2]=i,i=0;i<e.length;++i)C[a++>>0]=e.charCodeAt(i);C[a>>0]=0,r+=e.length+1})),0},N:function(n,t){var r=jt();F[n>>2]=r.length;var e=0;return r.forEach((function(n){e+=n.length+1})),F[t>>2]=e,0},k:function(n){d||(t.onExit&&t.onExit(n),v=!0),u(n,new rr(n))},r:function(n){try{return Gn(ot(n)),0}catch(n){return void 0!==tt&&n instanceof _n||K(n),n.Da}},L:function(n,t){try{var r=ot(n);return C[t>>0]=r.Ca?2:16384==(61440&r.mode)?3:40960==(61440&r.mode)?7:4,0}catch(n){return void 0!==tt&&n instanceof _n||K(n),n.Da}},S:function(n,t,r,e){try{n:{for(var a=ot(n),i=n=0;i<r;i++){var o=F[t+(8*i+4)>>2],u=Kn(a,F[t+8*i>>2],o,void 0);if(0>u){var f=-1;break n}if(n+=u,u<o)break}f=n}return F[e>>2]=f,0}catch(n){return void 0!==tt&&n instanceof _n||K(n),n.Da}},H:function(n,t,r,e,a){try{var i=ot(n);return-9007199254740992>=(n=4294967296*r+(t>>>0))||9007199254740992<=n?-61:(Jn(i,n,e),nn=[i.position>>>0,(q=i.position,1<=+Math.abs(q)?0<q?(0|Math.min(+Math.floor(q/4294967296),4294967295))>>>0:~~+Math.ceil((q-+(~~q>>>0))/4294967296)>>>0:0)],F[a>>2]=nn[0],F[a+4>>2]=nn[1],i.ib&&0===n&&0===e&&(i.ib=null),0)}catch(n){return void 0!==tt&&n instanceof _n||K(n),n.Da}},w:function(n,t,r,e){try{n:{for(var a=ot(n),i=n=0;i<r;i++){var o=Xn(a,C,F[t+8*i>>2],F[t+(8*i+4)>>2]);if(0>o){var u=-1;break n}n+=o}u=n}return F[e>>2]=u,0}catch(n){return void 0!==tt&&n instanceof _n||K(n),n.Da}},c:function(){return 0|p},$:function(n){var t=Date.now();return F[n>>2]=t/1e3|0,F[n+4>>2]=t%1e3*1e3|0,0},ba:function(n){var t=qt();try{return B.get(n)()}catch(n){if(nr(t),n!==n+0&&"longjmp"!==n)throw n;tr(1,0)}},ca:function(n,t){var r=qt();try{return B.get(n)(t)}catch(n){if(nr(r),n!==n+0&&"longjmp"!==n)throw n;tr(1,0)}},F:function(n){var t=qt();try{return B.get(n)()}catch(n){if(nr(t),n!==n+0&&"longjmp"!==n)throw n;tr(1,0)}},i:function(n,t){var r=qt();try{return B.get(n)(t)}catch(n){if(nr(r),n!==n+0&&"longjmp"!==n)throw n;tr(1,0)}},f:function(n,t,r){var e=qt();try{return B.get(n)(t,r)}catch(n){if(nr(e),n!==n+0&&"longjmp"!==n)throw n;tr(1,0)}},g:function(n,t,r,e){var a=qt();try{return B.get(n)(t,r,e)}catch(n){if(nr(a),n!==n+0&&"longjmp"!==n)throw n;tr(1,0)}},p:function(n,t,r,e,a){var i=qt();try{return B.get(n)(t,r,e,a)}catch(n){if(nr(i),n!==n+0&&"longjmp"!==n)throw n;tr(1,0)}},aa:function(n,t,r,e,a,i,o){var u=qt();try{return B.get(n)(t,r,e,a,i,o)}catch(n){if(nr(u),n!==n+0&&"longjmp"!==n)throw n;tr(1,0)}},m:function(n){var t=qt();try{B.get(n)()}catch(n){if(nr(t),n!==n+0&&"longjmp"!==n)throw n;tr(1,0)}},h:function(n,t){var r=qt();try{B.get(n)(t)}catch(n){if(nr(r),n!==n+0&&"longjmp"!==n)throw n;tr(1,0)}},q:function(n,t,r){var e=qt();try{B.get(n)(t,r)}catch(n){if(nr(e),n!==n+0&&"longjmp"!==n)throw n;tr(1,0)}},A:function(n,t,r,e){var a=qt();try{B.get(n)(t,r,e)}catch(n){if(nr(a),n!==n+0&&"longjmp"!==n)throw n;tr(1,0)}},z:function(n,t,r,e,a){var i=qt();try{B.get(n)(t,r,e,a)}catch(n){if(nr(i),n!==n+0&&"longjmp"!==n)throw n;tr(1,0)}},u:function(n,t,r,e,a,i){var o=qt();try{B.get(n)(t,r,e,a,i)}catch(n){if(nr(o),n!==n+0&&"longjmp"!==n)throw n;tr(1,0)}},a:y,d:function(n){p=0|n},K:function(n,t,r,e){return function(n,t,r,e){function a(n,t,r){for(n="number"==typeof n?n.toString():n||"";n.length<t;)n=r[0]+n;return n}function i(n,t){return a(n,t,"0")}function o(n,t){function r(n){return 0>n?-1:0<n?1:0}var e;return 0===(e=r(n.getFullYear()-t.getFullYear()))&&0===(e=r(n.getMonth()-t.getMonth()))&&(e=r(n.getDate()-t.getDate())),e}function u(n){switch(n.getDay()){case 0:return new Date(n.getFullYear()-1,11,29);case 1:return n;case 2:return new Date(n.getFullYear(),0,3);case 3:return new Date(n.getFullYear(),0,2);case 4:return new Date(n.getFullYear(),0,1);case 5:return new Date(n.getFullYear()-1,11,31);case 6:return new Date(n.getFullYear()-1,11,30)}}function f(n){n=It(new Date(n.Fa+1900,0,1),n.eb);var t=new Date(n.getFullYear()+1,0,4),r=u(new Date(n.getFullYear(),0,4));return t=u(t),0>=o(r,n)?0>=o(t,n)?n.getFullYear()+1:n.getFullYear():n.getFullYear()-1}var c=F[e+40>>2];for(var s in e={Yb:F[e>>2],Xb:F[e+4>>2],bb:F[e+8>>2],Wa:F[e+12>>2],Ra:F[e+16>>2],Fa:F[e+20>>2],cb:F[e+24>>2],eb:F[e+28>>2],fc:F[e+32>>2],Wb:F[e+36>>2],Zb:c?g(c):""},r=g(r),c={"%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"})r=r.replace(new RegExp(s,"g"),c[s]);var l="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),h="January February March April May June July August September October November December".split(" ");for(s in c={"%a":function(n){return l[n.cb].substring(0,3)},"%A":function(n){return l[n.cb]},"%b":function(n){return h[n.Ra].substring(0,3)},"%B":function(n){return h[n.Ra]},"%C":function(n){return i((n.Fa+1900)/100|0,2)},"%d":function(n){return i(n.Wa,2)},"%e":function(n){return a(n.Wa,2," ")},"%g":function(n){return f(n).toString().substring(2)},"%G":function(n){return f(n)},"%H":function(n){return i(n.bb,2)},"%I":function(n){return 0==(n=n.bb)?n=12:12<n&&(n-=12),i(n,2)},"%j":function(n){return i(n.Wa+Ot(xt(n.Fa+1900)?Wt:Rt,n.Ra-1),3)},"%m":function(n){return i(n.Ra+1,2)},"%M":function(n){return i(n.Xb,2)},"%n":function(){return"\n"},"%p":function(n){return 0<=n.bb&&12>n.bb?"AM":"PM"},"%S":function(n){return i(n.Yb,2)},"%t":function(){return"\t"},"%u":function(n){return n.cb||7},"%U":function(n){var t=new Date(n.Fa+1900,0,1),r=0===t.getDay()?t:It(t,7-t.getDay());return 0>o(r,n=new Date(n.Fa+1900,n.Ra,n.Wa))?i(Math.ceil((31-r.getDate()+(Ot(xt(n.getFullYear())?Wt:Rt,n.getMonth()-1)-31)+n.getDate())/7),2):0===o(r,t)?"01":"00"},"%V":function(n){var t=new Date(n.Fa+1901,0,4),r=u(new Date(n.Fa+1900,0,4));t=u(t);var e=It(new Date(n.Fa+1900,0,1),n.eb);return 0>o(e,r)?"53":0>=o(t,e)?"01":i(Math.ceil((r.getFullYear()<n.Fa+1900?n.eb+32-r.getDate():n.eb+1-r.getDate())/7),2)},"%w":function(n){return n.cb},"%W":function(n){var t=new Date(n.Fa,0,1),r=1===t.getDay()?t:It(t,0===t.getDay()?1:7-t.getDay()+1);return 0>o(r,n=new Date(n.Fa+1900,n.Ra,n.Wa))?i(Math.ceil((31-r.getDate()+(Ot(xt(n.getFullYear())?Wt:Rt,n.getMonth()-1)-31)+n.getDate())/7),2):0===o(r,t)?"01":"00"},"%y":function(n){return(n.Fa+1900).toString().substring(2)},"%Y":function(n){return n.Fa+1900},"%z":function(n){var t=0<=(n=n.Wb);return n=Math.abs(n)/60,(t?"+":"-")+String("0000"+(n/60*100+n%60)).slice(-4)},"%Z":function(n){return n.Zb},"%%":function(){return"%"}})0<=r.indexOf(s)&&(r=r.replace(new RegExp(s,"g"),c[s](e)));return(s=Nt(r,!1)).length>t?0:(C.set(s,n),s.length-1)}(n,t,r,e)},G:function(n){var t=Date.now()/1e3|0;return n&&(F[n>>2]=t),t},E:function(n){return 0!==n&&Xt(n,0,16),0}};!function(){function n(n){t.asm=n.exports,B=t.asm.ea,G--,t.monitorRunDependencies&&t.monitorRunDependencies(G),0==G&&J&&(n=J,J=null,n())}function r(t){n(t.instance)}function a(n){return(h||"function"!=typeof fetch?Promise.resolve().then(Z):fetch($,{credentials:"same-origin"}).then((function(n){if(!n.ok)throw"failed to load wasm binary file at '"+$+"'";return n.arrayBuffer()})).catch((function(){return Z()}))).then((function(n){return WebAssembly.instantiate(n,i)})).then(n,(function(n){l("failed to asynchronously prepare wasm: "+n),K(n)}))}var i={a:Lt};if(G++,t.monitorRunDependencies&&t.monitorRunDependencies(G),t.instantiateWasm)try{return t.instantiateWasm(i,n)}catch(n){return l("Module.instantiateWasm callback failed with error: "+n),!1}(h||"function"!=typeof WebAssembly.instantiateStreaming||X()||"function"!=typeof fetch?a(r):fetch($,{credentials:"same-origin"}).then((function(n){return WebAssembly.instantiateStreaming(n,i).then(r,(function(n){return l("wasm streaming compile failed: "+n),l("falling back to ArrayBuffer instantiation"),a(r)}))}))).catch(e)}();var Vt=t.___wasm_call_ctors=function(){return(Vt=t.___wasm_call_ctors=t.asm.fa).apply(null,arguments)},Gt=t._malloc=function(){return(Gt=t._malloc=t.asm.ga).apply(null,arguments)},Jt=t._free=function(){return(Jt=t._free=t.asm.ha).apply(null,arguments)},Kt=t.___errno_location=function(){return(Kt=t.___errno_location=t.asm.ia).apply(null,arguments)},Xt=t._memset=function(){return(Xt=t._memset=t.asm.ja).apply(null,arguments)},$t=t._memalign=function(){return($t=t._memalign=t.asm.ka).apply(null,arguments)},Qt=t.___getTypeName=function(){return(Qt=t.___getTypeName=t.asm.la).apply(null,arguments)};t.___embind_register_native_and_builtin_types=function(){return(t.___embind_register_native_and_builtin_types=t.asm.ma).apply(null,arguments)};var Zt,qt=t.stackSave=function(){return(qt=t.stackSave=t.asm.na).apply(null,arguments)},nr=t.stackRestore=function(){return(nr=t.stackRestore=t.asm.oa).apply(null,arguments)},tr=t._setThrew=function(){return(tr=t._setThrew=t.asm.pa).apply(null,arguments)};function rr(n){this.name="ExitStatus",this.message="Program terminated with exit("+n+")",this.status=n}function er(){function n(){if(!Zt&&(Zt=!0,t.calledRun=!0,!v)){if(t.noFSInit||Wn||(Wn=!0,$n(),t.stdin=t.stdin,t.stdout=t.stdout,t.stderr=t.stderr,t.stdin?Qn("stdin",t.stdin):Nn("/dev/tty","/dev/stdin"),t.stdout?Qn("stdout",null,t.stdout):Nn("/dev/tty","/dev/stdout"),t.stderr?Qn("stderr",null,t.stderr):Nn("/dev/tty1","/dev/stderr"),Vn("/dev/stdin","r"),Vn("/dev/stdout","w"),Vn("/dev/stderr","w")),en(H),Dn=!1,en(N),r(t),t.onRuntimeInitialized&&t.onRuntimeInitialized(),t.postRun)for("function"==typeof t.postRun&&(t.postRun=[t.postRun]);t.postRun.length;){var n=t.postRun.shift();L.unshift(n)}en(L)}}if(!(0<G)){if(t.preRun)for("function"==typeof t.preRun&&(t.preRun=[t.preRun]);t.preRun.length;)V();en(Y),0<G||(t.setStatus?(t.setStatus("Running..."),setTimeout((function(){setTimeout((function(){t.setStatus("")}),1),n()}),1)):n())}}if(t.dynCall_viijii=function(){return(t.dynCall_viijii=t.asm.qa).apply(null,arguments)},t.dynCall_iiij=function(){return(t.dynCall_iiij=t.asm.ra).apply(null,arguments)},t.dynCall_viij=function(){return(t.dynCall_viij=t.asm.sa).apply(null,arguments)},t.dynCall_iji=function(){return(t.dynCall_iji=t.asm.ta).apply(null,arguments)},t.dynCall_jiji=function(){return(t.dynCall_jiji=t.asm.ua).apply(null,arguments)},t.dynCall_iiiiij=function(){return(t.dynCall_iiiiij=t.asm.va).apply(null,arguments)},t.dynCall_iiiiijj=function(){return(t.dynCall_iiiiijj=t.asm.wa).apply(null,arguments)},t.dynCall_iiiiiijj=function(){return(t.dynCall_iiiiiijj=t.asm.xa).apply(null,arguments)},J=function n(){Zt||er(),Zt||(J=n)},t.run=er,t.preInit)for("function"==typeof t.preInit&&(t.preInit=[t.preInit]);0<t.preInit.length;)t.preInit.pop()();return d=!0,er(),n.ready};let t,r,e;function a(t){const{id:a,src:i,options:o}=t.data;return async function(){return void 0===e&&(e=await r.then(n)),e}().then((n=>{const t=function(n,t,r){for(const{path:t,data:e}of r.files)n.vizCreateFile(t,e);n.vizSetY_invert(r.yInvert?1:0),n.vizSetNop(r.nop||0);const e=n.vizRenderFromString(t,r.format,r.engine),a=n.vizLastErrorMessage();if(""!==a)throw new Error(a);return e}(n,i,o);postMessage({id:a,result:t})})).catch((n=>{const t=n instanceof Error?{message:n.message,fileName:n.fileName,lineNumber:n.lineNumber}:{message:n.toString()};postMessage({id:a,error:t})}))}r=Promise.resolve({}),t=n=>r=Promise.resolve(n),addEventListener("message",a);var i=t;export default i;export{a as onmessage}; | ||
var n=function(n){var t,r,e;n=n||{},t||(t=void 0!==n?n:{}),t.ready=new Promise((function(n,t){r=n,e=t}));var a,i={};for(a in t)t.hasOwnProperty(a)&&(i[a]=t[a]);var o="./this.program";function u(n,t){throw t}var f,c="";c=0!==(c=self.location.href).indexOf("blob:")?c.substr(0,c.lastIndexOf("/")+1):"",f=function(n){var t=new XMLHttpRequest;return t.open("GET",n,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)};var s=t.print||console.log.bind(console),l=t.printErr||console.warn.bind(console);for(a in i)i.hasOwnProperty(a)&&(t[a]=i[a]);i=null,t.thisProgram&&(o=t.thisProgram),t.quit&&(u=t.quit);var h,d,v=0;t.wasmBinary&&(h=t.wasmBinary),t.noExitRuntime&&(d=t.noExitRuntime),"object"!=typeof WebAssembly&&J("no native wasm support detected");var p,w=!1,y="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function m(n,t,r){var e=t+r;for(r=t;n[r]&&!(r>=e);)++r;if(16<r-t&&n.subarray&&y)return y.decode(n.subarray(t,r));for(e="";t<r;){var a=n[t++];if(128&a){var i=63&n[t++];if(192==(224&a))e+=String.fromCharCode((31&a)<<6|i);else{var o=63&n[t++];65536>(a=224==(240&a)?(15&a)<<12|i<<6|o:(7&a)<<18|i<<12|o<<6|63&n[t++])?e+=String.fromCharCode(a):(a-=65536,e+=String.fromCharCode(55296|a>>10,56320|1023&a))}}else e+=String.fromCharCode(a)}return e}function g(n,t){return n?m(C,n,t):""}function b(n,t,r,e){if(!(0<e))return 0;var a=r;e=r+e-1;for(var i=0;i<n.length;++i){var o=n.charCodeAt(i);if(55296<=o&&57343>=o&&(o=65536+((1023&o)<<10)|1023&n.charCodeAt(++i)),127>=o){if(r>=e)break;t[r++]=o}else{if(2047>=o){if(r+1>=e)break;t[r++]=192|o>>6}else{if(65535>=o){if(r+2>=e)break;t[r++]=224|o>>12}else{if(r+3>=e)break;t[r++]=240|o>>18,t[r++]=128|o>>12&63}t[r++]=128|o>>6&63}t[r++]=128|63&o}}return t[r]=0,r-a}function A(n){for(var t=0,r=0;r<n.length;++r){var e=n.charCodeAt(r);55296<=e&&57343>=e&&(e=65536+((1023&e)<<10)|1023&n.charCodeAt(++r)),127>=e?++t:t=2047>=e?t+2:65535>=e?t+3:t+4}return t}var D,x,C,_,k,E,F,T,M,P="undefined"==typeof TextDecoder&&void 0;function S(n,t){for(var r=n>>1,e=r+t/2;!(r>=e)&&k[r];)++r;if(32<(r<<=1)-n&&P)return P.decode(C.subarray(n,r));for(r="",e=0;!(e>=t/2);++e){var a=_[n+2*e>>1];if(0==a)break;r+=String.fromCharCode(a)}return r}function O(n,t,r){if(void 0===r&&(r=2147483647),2>r)return 0;var e=t;r=(r-=2)<2*n.length?r/2:n.length;for(var a=0;a<r;++a)_[t>>1]=n.charCodeAt(a),t+=2;return _[t>>1]=0,t-e}function j(n){return 2*n.length}function W(n,t){for(var r=0,e="";!(r>=t/4);){var a=E[n+4*r>>2];if(0==a)break;++r,65536<=a?(a-=65536,e+=String.fromCharCode(55296|a>>10,56320|1023&a)):e+=String.fromCharCode(a)}return e}function R(n,t,r){if(void 0===r&&(r=2147483647),4>r)return 0;var e=t;r=e+r-4;for(var a=0;a<n.length;++a){var i=n.charCodeAt(a);if(55296<=i&&57343>=i&&(i=65536+((1023&i)<<10)|1023&n.charCodeAt(++a)),E[t>>2]=i,(t+=4)+4>r)break}return E[t>>2]=0,t-e}function z(n){for(var t=0,r=0;r<n.length;++r){var e=n.charCodeAt(r);55296<=e&&57343>=e&&++r,t+=4}return t}function I(){var n=p.buffer;D=n,t.HEAP8=x=new Int8Array(n),t.HEAP16=_=new Int16Array(n),t.HEAP32=E=new Int32Array(n),t.HEAPU8=C=new Uint8Array(n),t.HEAPU16=k=new Uint16Array(n),t.HEAPU32=F=new Uint32Array(n),t.HEAPF32=T=new Float32Array(n),t.HEAPF64=M=new Float64Array(n)}var U,H=[],Y=[],B=[],N=[];function V(){var n=t.preRun.shift();H.unshift(n)}Y.push({zb:function(){Nt()}});var G=0,L=null;function J(n){throw t.onAbort&&t.onAbort(n),l(n),w=!0,n=new WebAssembly.RuntimeError("abort("+n+"). Build with -s ASSERTIONS=1 for more info."),e(n),n}function K(){var n=X;return String.prototype.startsWith?n.startsWith("data:application/octet-stream;base64,"):0===n.indexOf("data:application/octet-stream;base64,")}t.preloadedImages={},t.preloadedAudios={};var X="render.wasm";if(!K()){var $=X;X=t.locateFile?t.locateFile($,c):c+$}function q(){var n=X;try{if(n==X&&h)return new Uint8Array(h);if(f)return f(n);throw"both async and sync fetching of the wasm failed"}catch(n){J(n)}}var Q,Z,nn,tn={1025:function(n,t){n=g(n),t=g(t);var r="/";r="string"==typeof r?r:kn(r);for(var e=un(n).split("/").reverse();e.length;){var a=e.pop();if(a){r=on(r+"/"+a);try{Hn(r)}catch(n){}}}n=function(){return on(Array.prototype.slice.call(arguments,0).join("/"))}("/",n);var i=i||{};if(i.flags=i.flags||577,n=Vn(n,i.flags,i.mode),"string"==typeof t)Jn(n,e=new Uint8Array(A(t)+1),0,t=b(t,e,0,e.length),i.wb);else{if(!ArrayBuffer.isView(t))throw Error("Unsupported data type");Jn(n,t,0,t.byteLength,i.wb)}Gn(n)}};function rn(n){for(;0<n.length;){var r=n.shift();if("function"==typeof r)r(t);else{var e=r.zb;"number"==typeof e?void 0===r.eb?U.get(e)():U.get(e)(r.eb):e(void 0===r.eb?null:r.eb)}}}function en(n){this.La=n-16,this.Rb=function(n){E[this.La+8>>2]=n},this.Ob=function(n){E[this.La+0>>2]=n},this.Pb=function(){E[this.La+4>>2]=0},this.Nb=function(){x[this.La+12>>0]=0},this.Qb=function(){x[this.La+13>>0]=0},this.Cb=function(n,t){this.Rb(n),this.Ob(t),this.Pb(),this.Nb(),this.Qb()}}function an(n,t){for(var r=0,e=n.length-1;0<=e;e--){var a=n[e];"."===a?n.splice(e,1):".."===a?(n.splice(e,1),r++):r&&(n.splice(e,1),r--)}if(t)for(;r;r--)n.unshift("..");return n}function on(n){var t="/"===n.charAt(0),r="/"===n.substr(-1);return(n=an(n.split("/").filter((function(n){return!!n})),!t).join("/"))||t||(n="."),n&&r&&(n+="/"),(t?"/":"")+n}function un(n){var t=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(n).slice(1);return n=t[0],t=t[1],n||t?(t&&(t=t.substr(0,t.length-1)),n+t):"."}function fn(n){if("/"===n)return"/";var t=(n=(n=on(n)).replace(/\/$/,"")).lastIndexOf("/");return-1===t?n:n.substr(t+1)}function cn(){for(var n="",t=!1,r=arguments.length-1;-1<=r&&!t;r--){if("string"!=typeof(t=0<=r?arguments[r]:"/"))throw new TypeError("Arguments to path.resolve must be strings");if(!t)return"";n=t+"/"+n,t="/"===t.charAt(0)}return(t?"/":"")+(n=an(n.split("/").filter((function(n){return!!n})),!t).join("/"))||"."}nn=function(){return performance.now()};var sn=[];function ln(n,t){sn[n]={input:[],Ba:[],Na:t},zn(n,hn)}var hn={open:function(n){var t=sn[n.node.Ra];if(!t)throw new xn(43);n.za=t,n.seekable=!1},close:function(n){n.za.Na.flush(n.za)},flush:function(n){n.za.Na.flush(n.za)},read:function(n,t,r,e){if(!n.za||!n.za.Na.nb)throw new xn(60);for(var a=0,i=0;i<e;i++){try{var o=n.za.Na.nb(n.za)}catch(n){throw new xn(29)}if(void 0===o&&0===a)throw new xn(6);if(null==o)break;a++,t[r+i]=o}return a&&(n.node.timestamp=Date.now()),a},write:function(n,t,r,e){if(!n.za||!n.za.Na.hb)throw new xn(60);try{for(var a=0;a<e;a++)n.za.Na.hb(n.za,t[r+a])}catch(n){throw new xn(29)}return e&&(n.node.timestamp=Date.now()),a}},dn={nb:function(n){if(!n.input.length){var t=null;if("undefined"!=typeof window&&"function"==typeof window.prompt?null!==(t=window.prompt("Input: "))&&(t+="\n"):"function"==typeof readline&&null!==(t=readline())&&(t+="\n"),!t)return null;n.input=Yt(t,!0)}return n.input.shift()},hb:function(n,t){null===t||10===t?(s(m(n.Ba,0)),n.Ba=[]):0!=t&&n.Ba.push(t)},flush:function(n){n.Ba&&0<n.Ba.length&&(s(m(n.Ba,0)),n.Ba=[])}},vn={hb:function(n,t){null===t||10===t?(l(m(n.Ba,0)),n.Ba=[]):0!=t&&n.Ba.push(t)},flush:function(n){n.Ba&&0<n.Ba.length&&(l(m(n.Ba,0)),n.Ba=[])}},pn={Fa:null,Ia:function(){return pn.createNode(null,"/",16895,0)},createNode:function(n,t,r,e){if(24576==(61440&r)||4096==(61440&r))throw new xn(63);return pn.Fa||(pn.Fa={dir:{node:{Ea:pn.wa.Ea,Ha:pn.wa.Ha,Pa:pn.wa.Pa,Va:pn.wa.Va,qb:pn.wa.qb,bb:pn.wa.bb,rb:pn.wa.rb,pb:pn.wa.pb,Ya:pn.wa.Ya},stream:{Ka:pn.xa.Ka}},file:{node:{Ea:pn.wa.Ea,Ha:pn.wa.Ha},stream:{Ka:pn.xa.Ka,read:pn.xa.read,write:pn.xa.write,jb:pn.xa.jb,Wa:pn.xa.Wa,Xa:pn.xa.Xa}},link:{node:{Ea:pn.wa.Ea,Ha:pn.wa.Ha,Sa:pn.wa.Sa},stream:{}},kb:{node:{Ea:pn.wa.Ea,Ha:pn.wa.Ha},stream:Rn}}),16384==(61440&(r=Tn(n,t,r,e)).mode)?(r.wa=pn.Fa.dir.node,r.xa=pn.Fa.dir.stream,r.va={}):32768==(61440&r.mode)?(r.wa=pn.Fa.file.node,r.xa=pn.Fa.file.stream,r.ya=0,r.va=null):40960==(61440&r.mode)?(r.wa=pn.Fa.link.node,r.xa=pn.Fa.link.stream):8192==(61440&r.mode)&&(r.wa=pn.Fa.kb.node,r.xa=pn.Fa.kb.stream),r.timestamp=Date.now(),n&&(n.va[t]=r,n.timestamp=r.timestamp),r},Xb:function(n){if(n.va&&n.va.subarray){for(var t=[],r=0;r<n.ya;++r)t.push(n.va[r]);return t}return n.va},Yb:function(n){return n.va?n.va.subarray?n.va.subarray(0,n.ya):new Uint8Array(n.va):new Uint8Array(0)},lb:function(n,t){var r=n.va?n.va.length:0;r>=t||(t=Math.max(t,r*(1048576>r?2:1.125)>>>0),0!=r&&(t=Math.max(t,256)),r=n.va,n.va=new Uint8Array(t),0<n.ya&&n.va.set(r.subarray(0,n.ya),0))},Lb:function(n,t){if(n.ya!=t)if(0==t)n.va=null,n.ya=0;else{if(!n.va||n.va.subarray){var r=n.va;n.va=new Uint8Array(t),r&&n.va.set(r.subarray(0,Math.min(t,n.ya)))}else if(n.va||(n.va=[]),n.va.length>t)n.va.length=t;else for(;n.va.length<t;)n.va.push(0);n.ya=t}},wa:{Ea:function(n){var t={};return t.yb=8192==(61440&n.mode)?n.id:1,t.gb=n.id,t.mode=n.mode,t.Ib=1,t.uid=0,t.Ab=0,t.Ra=n.Ra,16384==(61440&n.mode)?t.size=4096:32768==(61440&n.mode)?t.size=n.ya:40960==(61440&n.mode)?t.size=n.link.length:t.size=0,t.tb=new Date(n.timestamp),t.Hb=new Date(n.timestamp),t.xb=new Date(n.timestamp),t.ub=4096,t.vb=Math.ceil(t.size/t.ub),t},Ha:function(n,t){void 0!==t.mode&&(n.mode=t.mode),void 0!==t.timestamp&&(n.timestamp=t.timestamp),void 0!==t.size&&pn.Lb(n,t.size)},Pa:function(){throw Cn[44]},Va:function(n,t,r,e){return pn.createNode(n,t,r,e)},qb:function(n,t,r){if(16384==(61440&n.mode)){try{var e=Fn(t,r)}catch(n){}if(e)for(var a in e.va)throw new xn(55)}delete n.parent.va[n.name],n.parent.timestamp=Date.now(),n.name=r,t.va[r]=n,t.timestamp=n.parent.timestamp,n.parent=t},bb:function(n,t){delete n.va[t],n.timestamp=Date.now()},rb:function(n,t){var r,e=Fn(n,t);for(r in e.va)throw new xn(55);delete n.va[t],n.timestamp=Date.now()},pb:function(n){var t,r=[".",".."];for(t in n.va)n.va.hasOwnProperty(t)&&r.push(t);return r},Ya:function(n,t,r){return(n=pn.createNode(n,t,41471,0)).link=r,n},Sa:function(n){if(40960!=(61440&n.mode))throw new xn(28);return n.link}},xa:{read:function(n,t,r,e,a){var i=n.node.va;if(a>=n.node.ya)return 0;if(8<(n=Math.min(n.node.ya-a,e))&&i.subarray)t.set(i.subarray(a,a+n),r);else for(e=0;e<n;e++)t[r+e]=i[a+e];return n},write:function(n,t,r,e,a,i){if(t.buffer===x.buffer&&(i=!1),!e)return 0;if((n=n.node).timestamp=Date.now(),t.subarray&&(!n.va||n.va.subarray)){if(i)return n.va=t.subarray(r,r+e),n.ya=e;if(0===n.ya&&0===a)return n.va=t.slice(r,r+e),n.ya=e;if(a+e<=n.ya)return n.va.set(t.subarray(r,r+e),a),e}if(pn.lb(n,a+e),n.va.subarray&&t.subarray)n.va.set(t.subarray(r,r+e),a);else for(i=0;i<e;i++)n.va[a+i]=t[r+i];return n.ya=Math.max(n.ya,a+e),e},Ka:function(n,t,r){if(1===r?t+=n.position:2===r&&32768==(61440&n.node.mode)&&(t+=n.node.ya),0>t)throw new xn(28);return t},jb:function(n,t,r){pn.lb(n.node,t+r),n.node.ya=Math.max(n.node.ya,t+r)},Wa:function(n,t,r,e,a,i){if(0!==t)throw new xn(28);if(32768!=(61440&n.node.mode))throw new xn(43);if(n=n.node.va,2&i||n.buffer!==D){for((0<e||e+r<n.length)&&(n=n.subarray?n.subarray(e,e+r):Array.prototype.slice.call(n,e,e+r)),e=!0,i=16384*Math.ceil(r/16384),t=Vt(i);r<i;)x[t+r++]=0;if(!(r=t))throw new xn(48);x.set(n,r)}else e=!1,r=n.byteOffset;return{La:r,cb:e}},Xa:function(n,t,r,e,a){if(32768!=(61440&n.node.mode))throw new xn(43);return 2&a||pn.xa.write(n,t,0,e,r,!1),0}}},wn=null,yn={},mn=[],gn=1,bn=null,An=!0,Dn={},xn=null,Cn={};function _n(n,t){if(t=t||{},!(n=cn("/",n)))return{path:"",node:null};var r,e={mb:!0,ib:0};for(r in e)void 0===t[r]&&(t[r]=e[r]);if(8<t.ib)throw new xn(32);n=an(n.split("/").filter((function(n){return!!n})),!1);var a=wn;for(e="/",r=0;r<n.length;r++){var i=r===n.length-1;if(i&&t.parent)break;if(a=Fn(a,n[r]),e=on(e+"/"+n[r]),a.Qa&&(!i||i&&t.mb)&&(a=a.Qa.root),!i||t.Ua)for(i=0;40960==(61440&a.mode);)if(a=Nn(e),a=_n(e=cn(un(e),a),{ib:t.ib}).node,40<i++)throw new xn(32)}return{path:e,node:a}}function kn(n){for(var t;;){if(n===n.parent)return n=n.Ia.ob,t?"/"!==n[n.length-1]?n+"/"+t:n+t:n;t=t?n.name+"/"+t:n.name,n=n.parent}}function En(n,t){for(var r=0,e=0;e<t.length;e++)r=(r<<5)-r+t.charCodeAt(e)|0;return(n+r>>>0)%bn.length}function Fn(n,t){var r;if(r=(r=Sn(n,"x"))?r:n.wa.Pa?0:2)throw new xn(r,n);for(r=bn[En(n.id,t)];r;r=r.Ma){var e=r.name;if(r.parent.id===n.id&&e===t)return r}return n.wa.Pa(n,t)}function Tn(n,t,r,e){return t=En((n=new It(n,t,r,e)).parent.id,n.name),n.Ma=bn[t],bn[t]=n}var Mn={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090};function Pn(n){var t=["r","w","rw"][3&n];return 512&n&&(t+="w"),t}function Sn(n,t){return An||(-1===t.indexOf("r")||292&n.mode)&&(-1===t.indexOf("w")||146&n.mode)&&(-1===t.indexOf("x")||73&n.mode)?0:2}function On(n,t){try{return Fn(n,t),20}catch(n){}return Sn(n,"wx")}function jn(n,t){qn||((qn=function(){}).prototype={});var r,e=new qn;for(r in n)e[r]=n[r];return n=e,t=function(n){for(n=n||0;n<=4096;n++)if(!mn[n])return n;throw new xn(33)}(t),n.Da=t,mn[t]=n}var Wn,Rn={open:function(n){n.xa=yn[n.node.Ra].xa,n.xa.open&&n.xa.open(n)},Ka:function(){throw new xn(70)}};function zn(n,t){yn[n]={xa:t}}function In(n,t){var r="/"===t,e=!t;if(r&&wn)throw new xn(10);if(!r&&!e){var a=_n(t,{mb:!1});if(t=a.path,(a=a.node).Qa)throw new xn(10);if(16384!=(61440&a.mode))throw new xn(54)}t={type:n,ac:{},ob:t,Gb:[]},(n=n.Ia(t)).Ia=t,t.root=n,r?wn=n:a&&(a.Qa=t,a.Ia&&a.Ia.Gb.push(t))}function Un(n,t,r){var e=_n(n,{parent:!0}).node;if(!(n=fn(n))||"."===n||".."===n)throw new xn(28);var a=On(e,n);if(a)throw new xn(a);if(!e.wa.Va)throw new xn(63);return e.wa.Va(e,n,t,r)}function Hn(n){return Un(n,16895,0)}function Yn(n,t,r){void 0===r&&(r=t,t=438),Un(n,8192|t,r)}function Bn(n,t){if(!cn(n))throw new xn(44);var r=_n(t,{parent:!0}).node;if(!r)throw new xn(44);var e=On(r,t=fn(t));if(e)throw new xn(e);if(!r.wa.Ya)throw new xn(63);r.wa.Ya(r,t,n)}function Nn(n){if(!(n=_n(n).node))throw new xn(44);if(!n.wa.Sa)throw new xn(28);return cn(kn(n.parent),n.wa.Sa(n))}function Vn(n,r,e,a){if(""===n)throw new xn(44);if("string"==typeof r){var i=Mn[r];if(void 0===i)throw Error("Unknown file open mode: "+r);r=i}if(e=64&r?4095&(void 0===e?438:e)|32768:0,"object"==typeof n)var o=n;else{n=on(n);try{o=_n(n,{Ua:!(131072&r)}).node}catch(n){}}if(i=!1,64&r)if(o){if(128&r)throw new xn(20)}else o=Un(n,e,0),i=!0;if(!o)throw new xn(44);if(8192==(61440&o.mode)&&(r&=-513),65536&r&&16384!=(61440&o.mode))throw new xn(54);if(!i&&(e=o?40960==(61440&o.mode)?32:16384==(61440&o.mode)&&("r"!==Pn(r)||512&r)?31:Sn(o,Pn(r)):44))throw new xn(e);if(512&r){var u;if(!(u="string"==typeof(e=o)?_n(e,{Ua:!0}).node:e).wa.Ha)throw new xn(63);if(16384==(61440&u.mode))throw new xn(31);if(32768!=(61440&u.mode))throw new xn(28);if(e=Sn(u,"w"))throw new xn(e);u.wa.Ha(u,{size:0,timestamp:Date.now()})}r&=-131713,(a=jn({node:o,path:kn(o),flags:r,seekable:!0,position:0,xa:o.xa,Wb:[],error:!1},a)).xa.open&&a.xa.open(a),!t.logReadFiles||1&r||(Qn||(Qn={}),n in Qn||(Qn[n]=1,l("FS.trackingDelegate error on read file: "+n)));try{Dn.onOpenFile&&(o=0,1!=(2097155&r)&&(o|=1),0!=(2097155&r)&&(o|=2),Dn.onOpenFile(n,o))}catch(t){l("FS.trackingDelegate['onOpenFile']('"+n+"', flags) threw an exception: "+t.message)}return a}function Gn(n){if(null===n.Da)throw new xn(8);n.fb&&(n.fb=null);try{n.xa.close&&n.xa.close(n)}catch(n){throw n}finally{mn[n.Da]=null}n.Da=null}function Ln(n,t,r){if(null===n.Da)throw new xn(8);if(!n.seekable||!n.xa.Ka)throw new xn(70);if(0!=r&&1!=r&&2!=r)throw new xn(28);n.position=n.xa.Ka(n,t,r),n.Wb=[]}function Jn(n,t,r,e,a){var i=void 0;if(0>e||0>i)throw new xn(28);if(null===n.Da)throw new xn(8);if(0==(2097155&n.flags))throw new xn(8);if(16384==(61440&n.node.mode))throw new xn(31);if(!n.xa.write)throw new xn(28);n.seekable&&1024&n.flags&&Ln(n,0,2);var o=void 0!==i;if(o){if(!n.seekable)throw new xn(70)}else i=n.position;t=n.xa.write(n,t,r,e,i,a),o||(n.position+=t);try{n.path&&Dn.onWriteToFile&&Dn.onWriteToFile(n.path)}catch(t){l("FS.trackingDelegate['onWriteToFile']('"+n.path+"') threw an exception: "+t.message)}return t}function Kn(){xn||((xn=function(n,t){this.node=t,this.Mb=function(n){this.Aa=n},this.Mb(n),this.message="FS error"}).prototype=Error(),xn.prototype.constructor=xn,[44].forEach((function(n){Cn[n]=new xn(n),Cn[n].stack="<generic error, no stack>"})))}function Xn(n,t,r){n=on("/dev/"+n);var e=function(n,t){var r=0;return n&&(r|=365),t&&(r|=146),r}(!!t,!!r);$n||($n=64);var a=$n++<<8|0;zn(a,{open:function(n){n.seekable=!1},close:function(){r&&r.buffer&&r.buffer.length&&r(10)},read:function(n,r,e,a){for(var i=0,o=0;o<a;o++){try{var u=t()}catch(n){throw new xn(29)}if(void 0===u&&0===i)throw new xn(6);if(null==u)break;i++,r[e+o]=u}return i&&(n.node.timestamp=Date.now()),i},write:function(n,t,e,a){for(var i=0;i<a;i++)try{r(t[e+i])}catch(n){throw new xn(29)}return a&&(n.node.timestamp=Date.now()),i}}),Yn(n,e,a)}var $n,qn,Qn,Zn={},nt={};function tt(n,t){try{var r=_n(n,{Ua:!0}).node;if(!r)throw new xn(44);if(!r.wa.Ea)throw new xn(63);var e=r.wa.Ea(r)}catch(t){if(t&&t.node&&on(n)!==on(kn(t.node)))return-54;throw t}return E[t>>2]=e.yb,E[t+4>>2]=0,E[t+8>>2]=e.gb,E[t+12>>2]=e.mode,E[t+16>>2]=e.Ib,E[t+20>>2]=e.uid,E[t+24>>2]=e.Ab,E[t+28>>2]=e.Ra,E[t+32>>2]=0,Z=[e.size>>>0,(Q=e.size,1<=+Math.abs(Q)?0<Q?(0|Math.min(+Math.floor(Q/4294967296),4294967295))>>>0:~~+Math.ceil((Q-+(~~Q>>>0))/4294967296)>>>0:0)],E[t+40>>2]=Z[0],E[t+44>>2]=Z[1],E[t+48>>2]=4096,E[t+52>>2]=e.vb,E[t+56>>2]=e.tb.getTime()/1e3|0,E[t+60>>2]=0,E[t+64>>2]=e.Hb.getTime()/1e3|0,E[t+68>>2]=0,E[t+72>>2]=e.xb.getTime()/1e3|0,E[t+76>>2]=0,Z=[e.gb>>>0,(Q=e.gb,1<=+Math.abs(Q)?0<Q?(0|Math.min(+Math.floor(Q/4294967296),4294967295))>>>0:~~+Math.ceil((Q-+(~~Q>>>0))/4294967296)>>>0:0)],E[t+80>>2]=Z[0],E[t+84>>2]=Z[1],0}var rt=void 0;function et(){return E[(rt+=4)-4>>2]}function at(n){if(!(n=mn[n]))throw new xn(8);return n}function it(n){switch(n){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+n)}}var ot=void 0;function ut(n){for(var t="";C[n];)t+=ot[C[n++]];return t}var ft={},ct={},st={};function lt(n){if(void 0===n)return"_unknown";var t=(n=n.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return 48<=t&&57>=t?"_"+n:n}function ht(n,t){return n=lt(n),new Function("body","return function "+n+'() {\n "use strict"; return body.apply(this, arguments);\n};\n')(t)}function dt(n){var t=Error,r=ht(n,(function(t){this.name=n,this.message=t,void 0!==(t=Error(t).stack)&&(this.stack=this.toString()+"\n"+t.replace(/^Error(:[^\n]*)?\n/,""))}));return r.prototype=Object.create(t.prototype),r.prototype.constructor=r,r.prototype.toString=function(){return void 0===this.message?this.name:this.name+": "+this.message},r}var vt=void 0;function pt(n){throw new vt(n)}var wt=void 0;function yt(n,t,r){if(r=r||{},!("argPackAdvance"in t))throw new TypeError("registerType registeredInstance requires argPackAdvance");var e=t.name;if(n||pt('type "'+e+'" must have a positive integer typeid pointer'),ct.hasOwnProperty(n)){if(r.Bb)return;pt("Cannot register type '"+e+"' twice")}ct[n]=t,delete st[n],ft.hasOwnProperty(n)&&(t=ft[n],delete ft[n],t.forEach((function(n){n()})))}var mt=[],gt=[{},{value:void 0},{value:null},{value:!0},{value:!1}];function bt(n){return this.fromWireType(F[n>>2])}function At(n){if(null===n)return"null";var t=typeof n;return"object"===t||"array"===t||"function"===t?n.toString():""+n}function Dt(n,t){switch(t){case 2:return function(n){return this.fromWireType(T[n>>2])};case 3:return function(n){return this.fromWireType(M[n>>3])};default:throw new TypeError("Unknown float type: "+n)}}function xt(n){for(;n.length;){var t=n.pop();n.pop()(t)}}function Ct(n,r,e){t.hasOwnProperty(n)?((void 0===e||void 0!==t[n].Ga&&void 0!==t[n].Ga[e])&&pt("Cannot register public name '"+n+"' twice"),function(n,r){var e=t;if(void 0===e[n].Ga){var a=e[n];e[n]=function(){return e[n].Ga.hasOwnProperty(arguments.length)||pt("Function '"+r+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+e[n].Ga+")!"),e[n].Ga[arguments.length].apply(this,arguments)},e[n].Ga=[],e[n].Ga[a.sb]=a}}(n,n),t.hasOwnProperty(e)&&pt("Cannot register multiple overloads of a function with the same number of arguments ("+e+")!"),t[n].Ga[e]=r):(t[n]=r,void 0!==e&&(t[n].$b=e))}function _t(n,r){var e=-1!=(n=ut(n)).indexOf("j")?function(n,r){0<=n.indexOf("j")||J("Assertion failed: getDynCaller should only be called with i64 sigs");var e=[];return function(){e.length=arguments.length;for(var a=0;a<arguments.length;a++)e[a]=arguments[a];return-1!=n.indexOf("j")?e&&e.length?t["dynCall_"+n].apply(null,[r].concat(e)):t["dynCall_"+n].call(null,r):U.get(r).apply(null,e)}}(n,r):U.get(r);return"function"!=typeof e&&pt("unknown function pointer with signature "+n+": "+r),e}var kt=void 0;function Et(n){var t=ut(n=Kt(n));return Gt(n),t}function Ft(n,t,r){switch(t){case 0:return r?function(n){return x[n]}:function(n){return C[n]};case 1:return r?function(n){return _[n>>1]}:function(n){return k[n>>1]};case 2:return r?function(n){return E[n>>2]}:function(n){return F[n>>2]};default:throw new TypeError("Unknown integer type: "+n)}}var Tt,Mt={};function Pt(){if(!Tt){var n,t={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",_:o||"./this.program"};for(n in Mt)t[n]=Mt[n];var r=[];for(n in t)r.push(n+"="+t[n]);Tt=r}return Tt}function St(n){return 0==n%4&&(0!=n%100||0==n%400)}function Ot(n,t){for(var r=0,e=0;e<=t;r+=n[e++]);return r}var jt=[31,29,31,30,31,30,31,31,30,31,30,31],Wt=[31,28,31,30,31,30,31,31,30,31,30,31];function Rt(n,t){for(n=new Date(n.getTime());0<t;){var r=n.getMonth(),e=(St(n.getFullYear())?jt:Wt)[r];if(!(t>e-n.getDate())){n.setDate(n.getDate()+t);break}t-=e-n.getDate()+1,n.setDate(1),11>r?n.setMonth(r+1):(n.setMonth(0),n.setFullYear(n.getFullYear()+1))}return n}var zt=[];function It(n,t,r,e){n||(n=this),this.parent=n,this.Ia=n.Ia,this.Qa=null,this.id=gn++,this.name=t,this.mode=r,this.wa={},this.xa={},this.Ra=e}Object.defineProperties(It.prototype,{read:{get:function(){return 365==(365&this.mode)},set:function(n){n?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146==(146&this.mode)},set:function(n){n?this.mode|=146:this.mode&=-147}}}),Kn(),bn=Array(4096),In(pn,"/"),Hn("/tmp"),Hn("/home"),Hn("/home/web_user"),function(){Hn("/dev"),zn(259,{read:function(){return 0},write:function(n,t,r,e){return e}}),Yn("/dev/null",259),ln(1280,dn),ln(1536,vn),Yn("/dev/tty",1280),Yn("/dev/tty1",1536);var n=function(){if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues){var n=new Uint8Array(1);return function(){return crypto.getRandomValues(n),n[0]}}return function(){J("randomDevice")}}();Xn("random",n),Xn("urandom",n),Hn("/dev/shm"),Hn("/dev/shm/tmp")}(),function(){Hn("/proc");var n=Hn("/proc/self");Hn("/proc/self/fd"),In({Ia:function(){var t=Tn(n,"fd",16895,73);return t.wa={Pa:function(n,t){var r=mn[+t];if(!r)throw new xn(8);return(n={parent:null,Ia:{ob:"fake"},wa:{Sa:function(){return r.path}}}).parent=n}},t}},"/proc/self/fd")}();for(var Ut=Array(256),Ht=0;256>Ht;++Ht)Ut[Ht]=String.fromCharCode(Ht);function Yt(n,t){var r=Array(A(n)+1);return n=b(n,r,0,r.length),t&&(r.length=n),r}ot=Ut,vt=t.BindingError=dt("BindingError"),wt=t.InternalError=dt("InternalError"),t.count_emval_handles=function(){for(var n=0,t=5;t<gt.length;++t)void 0!==gt[t]&&++n;return n},t.get_first_emval=function(){for(var n=5;n<gt.length;++n)if(void 0!==gt[n])return gt[n];return null},kt=t.UnboundTypeError=dt("UnboundTypeError");var Bt={a:function(n,t,r,e){J("Assertion failed: "+g(n)+", at: "+[t?g(t):"unknown filename",r,e?g(e):"unknown function"])},T:function(n,t){n:{if(0===n)n=Date.now();else{if(1!==n&&4!==n){E[Lt()>>2]=28,t=-1;break n}n=nn()}E[t>>2]=n/1e3|0,E[t+4>>2]=n%1e3*1e6|0,t=0}return t},k:function(n){return Vt(n+16)+16},j:function(n,t,r){throw new en(n).Cb(t,r),n},U:function(n,t){try{var r;if(n=g(n),-8&t)var e=-28;else(r=_n(n,{Ua:!0}).node)?(n="",4&t&&(n+="r"),2&t&&(n+="w"),1&t&&(n+="x"),e=n&&Sn(r,n)?-2:0):e=-44;return e}catch(n){return void 0!==Zn&&n instanceof xn||J(n),-n.Aa}},y:function(n,t,r){rt=r;try{var e=at(n);switch(t){case 0:var a=et();return 0>a?-28:Vn(e.path,e.flags,0,a).Da;case 1:case 2:return 0;case 3:return e.flags;case 4:return a=et(),e.flags|=a,0;case 12:return a=et(),_[a+0>>1]=2,0;case 13:case 14:return 0;case 16:case 8:return-28;case 9:return E[Lt()>>2]=28,-1;default:return-28}}catch(n){return void 0!==Zn&&n instanceof xn||J(n),-n.Aa}},Q:function(n,t){try{return tt(at(n).path,t)}catch(n){return void 0!==Zn&&n instanceof xn||J(n),-n.Aa}},s:function(){return 42},R:function(n,t,r){rt=r;try{var e=at(n);switch(t){case 21509:case 21505:return e.za?0:-59;case 21510:case 21511:case 21512:case 21506:case 21507:case 21508:return e.za?0:-59;case 21519:if(!e.za)return-59;var a=et();return E[a>>2]=0;case 21520:return e.za?-28:-59;case 21531:if(n=a=et(),!e.xa.Db)throw new xn(59);return e.xa.Db(e,t,n);case 21523:case 21524:return e.za?0:-59;default:J("bad ioctl syscall "+t)}}catch(n){return void 0!==Zn&&n instanceof xn||J(n),-n.Aa}},O:function(n,t,r,e,a,i){try{n:{i<<=12;var o=!1;if(0!=(16&e)&&0!=n%16384)var u=-28;else{if(0!=(32&e)){var f=Zt(16384,t);if(!f){u=-48;break n}Jt(f,0,t),o=!0}else{var c=mn[a];if(!c){u=-8;break n}var s=i;if(0!=(2&r)&&0==(2&e)&&2!=(2097155&c.flags))throw new xn(2);if(1==(2097155&c.flags))throw new xn(2);if(!c.xa.Wa)throw new xn(43);var l=c.xa.Wa(c,n,t,s,r,e);f=l.La,o=l.cb}nt[f]={Fb:f,Eb:t,cb:o,Da:a,Jb:r,flags:e,offset:i},u=f}}return u}catch(n){return void 0!==Zn&&n instanceof xn||J(n),-n.Aa}},N:function(n,t){try{if(-1==(0|n)||0===t)var r=-28;else{var e=nt[n];if(e&&t===e.Eb){var a=mn[e.Da];a&&2&e.Jb&&a&&a.xa.Xa&&a.xa.Xa(a,C.slice(n,n+t),e.offset,t,e.flags),nt[n]=null,e.cb&&Gt(e.Fb)}r=0}return r}catch(n){return void 0!==Zn&&n instanceof xn||J(n),-n.Aa}},r:function(n,t,r){rt=r;try{return Vn(g(n),t,r?et():0).Da}catch(n){return void 0!==Zn&&n instanceof xn||J(n),-n.Aa}},P:function(n,t){try{return tt(n=g(n),t)}catch(n){return void 0!==Zn&&n instanceof xn||J(n),-n.Aa}},S:function(n){try{var t=_n(n=g(n),{parent:!0}).node,r=fn(n),e=Fn(t,r);n:{try{var a=Fn(t,r)}catch(n){var i=n.Aa;break n}var o=Sn(t,"wx");i=o||(16384==(61440&a.mode)?31:0)}if(i)throw new xn(i);if(!t.wa.bb)throw new xn(63);if(e.Qa)throw new xn(10);try{Dn.willDeletePath&&Dn.willDeletePath(n)}catch(t){l("FS.trackingDelegate['willDeletePath']('"+n+"') threw an exception: "+t.message)}t.wa.bb(t,r);var u=En(e.parent.id,e.name);if(bn[u]===e)bn[u]=e.Ma;else for(var f=bn[u];f;){if(f.Ma===e){f.Ma=e.Ma;break}f=f.Ma}try{Dn.onDeletePath&&Dn.onDeletePath(n)}catch(t){l("FS.trackingDelegate['onDeletePath']('"+n+"') threw an exception: "+t.message)}return 0}catch(n){return void 0!==Zn&&n instanceof xn||J(n),-n.Aa}},W:function(n,t,r,e,a){var i=it(r);yt(n,{name:t=ut(t),fromWireType:function(n){return!!n},toWireType:function(n,t){return t?e:a},argPackAdvance:8,readValueFromPointer:function(n){if(1===r)var e=x;else if(2===r)e=_;else{if(4!==r)throw new TypeError("Unknown boolean type size: "+t);e=E}return this.fromWireType(e[n>>i])},Ja:null})},V:function(n,t){yt(n,{name:t=ut(t),fromWireType:function(n){var t=gt[n].value;return 4<n&&0==--gt[n].Kb&&(gt[n]=void 0,mt.push(n)),t},toWireType:function(n,t){return function(n){switch(n){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var t=mt.length?mt.pop():gt.length;return gt[t]={Kb:1,value:n},t}}(t)},argPackAdvance:8,readValueFromPointer:bt,Ja:null})},B:function(n,t,r){r=it(r),yt(n,{name:t=ut(t),fromWireType:function(n){return n},toWireType:function(n,t){if("number"!=typeof t&&"boolean"!=typeof t)throw new TypeError('Cannot convert "'+At(t)+'" to '+this.name);return t},argPackAdvance:8,readValueFromPointer:Dt(t,r),Ja:null})},p:function(n,r,e,a,i,o){var u=function(n,t){for(var r=[],e=0;e<n;e++)r.push(E[(t>>2)+e]);return r}(r,e);n=ut(n),i=_t(a,i),Ct(n,(function(){!function(n,t){var r=[],e={};throw t.forEach((function n(t){e[t]||ct[t]||(st[t]?st[t].forEach(n):(r.push(t),e[t]=!0))})),new kt(n+": "+r.map(Et).join([", "]))}("Cannot call "+n+" due to unbound types",u)}),r-1),function(n,t){function r(n){if((n=t(n)).length!==e.length)throw new wt("Mismatched type converter count");for(var r=0;r<e.length;++r)yt(e[r],n[r])}var e=[];e.forEach((function(t){st[t]=n}));var a=Array(n.length),i=[],o=0;n.forEach((function(n,t){ct.hasOwnProperty(n)?a[t]=ct[n]:(i.push(n),ft.hasOwnProperty(n)||(ft[n]=[]),ft[n].push((function(){a[t]=ct[n],++o===i.length&&r(a)})))})),0===i.length&&r(a)}(u,(function(e){var a=n,u=n;e=[e[0],null].concat(e.slice(1));var f=i,c=e.length;2>c&&pt("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var s=null!==e[1]&&!1,l=!1,h=1;h<e.length;++h)if(null!==e[h]&&void 0===e[h].Ja){l=!0;break}var d="void"!==e[0].name,v="",p="";for(h=0;h<c-2;++h)v+=(0!==h?", ":"")+"arg"+h,p+=(0!==h?", ":"")+"arg"+h+"Wired";u="return function "+lt(u)+"("+v+") {\nif (arguments.length !== "+(c-2)+") {\nthrowBindingError('function "+u+" called with ' + arguments.length + ' arguments, expected "+(c-2)+" args!');\n}\n",l&&(u+="var destructors = [];\n");var w=l?"destructors":"null";for(v="throwBindingError invoker fn runDestructors retType classParam".split(" "),f=[pt,f,o,xt,e[0],e[1]],s&&(u+="var thisWired = classParam.toWireType("+w+", this);\n"),h=0;h<c-2;++h)u+="var arg"+h+"Wired = argType"+h+".toWireType("+w+", arg"+h+"); // "+e[h+2].name+"\n",v.push("argType"+h),f.push(e[h+2]);if(s&&(p="thisWired"+(0<p.length?", ":"")+p),u+=(d?"var rv = ":"")+"invoker(fn"+(0<p.length?", ":"")+p+");\n",l)u+="runDestructors(destructors);\n";else for(h=s?1:2;h<e.length;++h)c=1===h?"thisWired":"arg"+(h-2)+"Wired",null!==e[h].Ja&&(u+=c+"_dtor("+c+"); // "+e[h].name+"\n",v.push(c+"_dtor"),f.push(e[h].Ja));if(d&&(u+="var ret = retType.fromWireType(rv);\nreturn ret;\n"),v.push(u+"}\n"),e=function(n){var t=Function;if(!(t instanceof Function))throw new TypeError("new_ called with constructor type "+typeof t+" which is not a function");var r=ht(t.name||"unknownFunctionName",(function(){}));return r.prototype=t.prototype,r=new r,(n=t.apply(r,n))instanceof Object?n:r}(v).apply(null,f),h=r-1,!t.hasOwnProperty(a))throw new wt("Replacing nonexistant public symbol");return void 0!==t[a].Ga&&void 0!==h?t[a].Ga[h]=e:(t[a]=e,t[a].sb=h),[]}))},h:function(n,t,r,e,a){function i(n){return n}t=ut(t),-1===a&&(a=4294967295);var o=it(r);if(0===e){var u=32-8*r;i=function(n){return n<<u>>>u}}var f=-1!=t.indexOf("unsigned");yt(n,{name:t,fromWireType:i,toWireType:function(n,r){if("number"!=typeof r&&"boolean"!=typeof r)throw new TypeError('Cannot convert "'+At(r)+'" to '+this.name);if(r<e||r>a)throw new TypeError('Passing a number "'+At(r)+'" from JS side to C/C++ side to an argument of type "'+t+'", which is outside the valid range ['+e+", "+a+"]!");return f?r>>>0:0|r},argPackAdvance:8,readValueFromPointer:Ft(t,o,0!==e),Ja:null})},g:function(n,t,r){function e(n){var t=F;return new a(D,t[1+(n>>=2)],t[n])}var a=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][t];yt(n,{name:r=ut(r),fromWireType:e,argPackAdvance:8,readValueFromPointer:e},{Bb:!0})},C:function(n,t){var r="std::string"===(t=ut(t));yt(n,{name:t,fromWireType:function(n){var t=F[n>>2];if(r)for(var e=n+4,a=0;a<=t;++a){var i=n+4+a;if(a==t||0==C[i]){if(e=g(e,i-e),void 0===o)var o=e;else o+=String.fromCharCode(0),o+=e;e=i+1}}else{for(o=Array(t),a=0;a<t;++a)o[a]=String.fromCharCode(C[n+4+a]);o=o.join("")}return Gt(n),o},toWireType:function(n,t){t instanceof ArrayBuffer&&(t=new Uint8Array(t));var e="string"==typeof t;e||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Int8Array||pt("Cannot pass non-string to std::string");var a=(r&&e?function(){return A(t)}:function(){return t.length})(),i=Vt(4+a+1);if(F[i>>2]=a,r&&e)b(t,C,i+4,a+1);else if(e)for(e=0;e<a;++e){var o=t.charCodeAt(e);255<o&&(Gt(i),pt("String has UTF-16 code units that do not fit in 8 bits")),C[i+4+e]=o}else for(e=0;e<a;++e)C[i+4+e]=t[e];return null!==n&&n.push(Gt,i),i},argPackAdvance:8,readValueFromPointer:bt,Ja:function(n){Gt(n)}})},t:function(n,t,r){if(r=ut(r),2===t)var e=S,a=O,i=j,o=function(){return k},u=1;else 4===t&&(e=W,a=R,i=z,o=function(){return F},u=2);yt(n,{name:r,fromWireType:function(n){for(var r,a=F[n>>2],i=o(),f=n+4,c=0;c<=a;++c){var s=n+4+c*t;c!=a&&0!=i[s>>u]||(f=e(f,s-f),void 0===r?r=f:(r+=String.fromCharCode(0),r+=f),f=s+t)}return Gt(n),r},toWireType:function(n,e){"string"!=typeof e&&pt("Cannot pass non-string to C++ string type "+r);var o=i(e),f=Vt(4+o+t);return F[f>>2]=o>>u,a(e,f+4,o+t),null!==n&&n.push(Gt,f),f},argPackAdvance:8,readValueFromPointer:bt,Ja:function(n){Gt(n)}})},X:function(n,t){yt(n,{Zb:!0,name:t=ut(t),argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},x:function(){J()},aa:function(n,t,r){var e;for(zt.length=0,r>>=2;e=C[t++];)(e=105>e)&&1&r&&r++,zt.push(e?M[r++>>1]:E[r]),++r;return tn[n].apply(null,zt)},d:function(n,t){throw Qt(n,t||1),"longjmp"},H:function(n,t,r){C.copyWithin(n,t,t+r)},I:function(n){n>>>=0;var t=C.length;if(2147483648<n)return!1;for(var r=1;4>=r;r*=2){var e=t*(1+.2/r);e=Math.min(e,n+100663296),0<(e=Math.max(16777216,n,e))%65536&&(e+=65536-e%65536);n:{try{p.grow(Math.min(2147483648,e)-D.byteLength+65535>>>16),I();var a=1;break n}catch(n){}a=void 0}if(a)return!0}return!1},L:function(n,t){try{var r=0;return Pt().forEach((function(e,a){var i=t+r;for(a=E[n+4*a>>2]=i,i=0;i<e.length;++i)x[a++>>0]=e.charCodeAt(i);x[a>>0]=0,r+=e.length+1})),0}catch(n){return void 0!==Zn&&n instanceof xn||J(n),n.Aa}},M:function(n,t){try{var r=Pt();E[n>>2]=r.length;var e=0;return r.forEach((function(n){e+=n.length+1})),E[t>>2]=e,0}catch(n){return void 0!==Zn&&n instanceof xn||J(n),n.Aa}},f:function(n){d||(t.onExit&&t.onExit(n),w=!0),u(n,new nr(n))},n:function(n){try{return Gn(at(n)),0}catch(n){return void 0!==Zn&&n instanceof xn||J(n),n.Aa}},K:function(n,t){try{var r=at(n);return x[t>>0]=r.za?2:16384==(61440&r.mode)?3:40960==(61440&r.mode)?7:4,0}catch(n){return void 0!==Zn&&n instanceof xn||J(n),n.Aa}},A:function(n,t,r,e){try{n:{for(var a=at(n),i=n=0;i<r;i++){var o=E[t+(8*i+4)>>2],u=a,f=E[t+8*i>>2],c=o,s=void 0,l=x;if(0>c||0>s)throw new xn(28);if(null===u.Da)throw new xn(8);if(1==(2097155&u.flags))throw new xn(8);if(16384==(61440&u.node.mode))throw new xn(31);if(!u.xa.read)throw new xn(28);var h=void 0!==s;if(h){if(!u.seekable)throw new xn(70)}else s=u.position;var d=u.xa.read(u,l,f,c,s);h||(u.position+=d);var v=d;if(0>v){var p=-1;break n}if(n+=v,v<o)break}p=n}return E[e>>2]=p,0}catch(n){return void 0!==Zn&&n instanceof xn||J(n),n.Aa}},G:function(n,t,r,e,a){try{var i=at(n);return-9007199254740992>=(n=4294967296*r+(t>>>0))||9007199254740992<=n?-61:(Ln(i,n,e),Z=[i.position>>>0,(Q=i.position,1<=+Math.abs(Q)?0<Q?(0|Math.min(+Math.floor(Q/4294967296),4294967295))>>>0:~~+Math.ceil((Q-+(~~Q>>>0))/4294967296)>>>0:0)],E[a>>2]=Z[0],E[a+4>>2]=Z[1],i.fb&&0===n&&0===e&&(i.fb=null),0)}catch(n){return void 0!==Zn&&n instanceof xn||J(n),n.Aa}},z:function(n,t,r,e){try{n:{for(var a=at(n),i=n=0;i<r;i++){var o=Jn(a,x,E[t+8*i>>2],E[t+(8*i+4)>>2]);if(0>o){var u=-1;break n}n+=o}u=n}return E[e>>2]=u,0}catch(n){return void 0!==Zn&&n instanceof xn||J(n),n.Aa}},b:function(){return 0|v},Y:function(n){var t=Date.now();return E[n>>2]=t/1e3|0,E[n+4>>2]=t%1e3*1e3|0,0},_:function(n){var t=$t();try{return U.get(n)()}catch(n){if(qt(t),n!==n+0&&"longjmp"!==n)throw n;Qt(1,0)}},$:function(n,t){var r=$t();try{return U.get(n)(t)}catch(n){if(qt(r),n!==n+0&&"longjmp"!==n)throw n;Qt(1,0)}},E:function(n){var t=$t();try{return U.get(n)()}catch(n){if(qt(t),n!==n+0&&"longjmp"!==n)throw n;Qt(1,0)}},m:function(n,t){var r=$t();try{return U.get(n)(t)}catch(n){if(qt(r),n!==n+0&&"longjmp"!==n)throw n;Qt(1,0)}},e:function(n,t,r){var e=$t();try{return U.get(n)(t,r)}catch(n){if(qt(e),n!==n+0&&"longjmp"!==n)throw n;Qt(1,0)}},l:function(n,t,r,e){var a=$t();try{return U.get(n)(t,r,e)}catch(n){if(qt(a),n!==n+0&&"longjmp"!==n)throw n;Qt(1,0)}},Z:function(n,t,r,e,a,i,o){var u=$t();try{return U.get(n)(t,r,e,a,i,o)}catch(n){if(qt(u),n!==n+0&&"longjmp"!==n)throw n;Qt(1,0)}},v:function(n){var t=$t();try{U.get(n)()}catch(n){if(qt(t),n!==n+0&&"longjmp"!==n)throw n;Qt(1,0)}},i:function(n,t){var r=$t();try{U.get(n)(t)}catch(n){if(qt(r),n!==n+0&&"longjmp"!==n)throw n;Qt(1,0)}},o:function(n,t,r){var e=$t();try{U.get(n)(t,r)}catch(n){if(qt(e),n!==n+0&&"longjmp"!==n)throw n;Qt(1,0)}},w:function(n,t,r,e){var a=$t();try{U.get(n)(t,r,e)}catch(n){if(qt(a),n!==n+0&&"longjmp"!==n)throw n;Qt(1,0)}},u:function(n,t,r,e,a){var i=$t();try{U.get(n)(t,r,e,a)}catch(n){if(qt(i),n!==n+0&&"longjmp"!==n)throw n;Qt(1,0)}},q:function(n,t,r,e,a,i){var o=$t();try{U.get(n)(t,r,e,a,i)}catch(n){if(qt(o),n!==n+0&&"longjmp"!==n)throw n;Qt(1,0)}},c:function(n){v=0|n},J:function(n,t,r,e){return function(n,t,r,e){function a(n,t,r){for(n="number"==typeof n?n.toString():n||"";n.length<t;)n=r[0]+n;return n}function i(n,t){return a(n,t,"0")}function o(n,t){function r(n){return 0>n?-1:0<n?1:0}var e;return 0===(e=r(n.getFullYear()-t.getFullYear()))&&0===(e=r(n.getMonth()-t.getMonth()))&&(e=r(n.getDate()-t.getDate())),e}function u(n){switch(n.getDay()){case 0:return new Date(n.getFullYear()-1,11,29);case 1:return n;case 2:return new Date(n.getFullYear(),0,3);case 3:return new Date(n.getFullYear(),0,2);case 4:return new Date(n.getFullYear(),0,1);case 5:return new Date(n.getFullYear()-1,11,31);case 6:return new Date(n.getFullYear()-1,11,30)}}function f(n){n=Rt(new Date(n.Ca+1900,0,1),n.ab);var t=new Date(n.getFullYear()+1,0,4),r=u(new Date(n.getFullYear(),0,4));return t=u(t),0>=o(r,n)?0>=o(t,n)?n.getFullYear()+1:n.getFullYear():n.getFullYear()-1}var c=E[e+40>>2];for(var s in e={Ub:E[e>>2],Tb:E[e+4>>2],Za:E[e+8>>2],Ta:E[e+12>>2],Oa:E[e+16>>2],Ca:E[e+20>>2],$a:E[e+24>>2],ab:E[e+28>>2],bc:E[e+32>>2],Sb:E[e+36>>2],Vb:c?g(c):""},r=g(r),c={"%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"})r=r.replace(new RegExp(s,"g"),c[s]);var l="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),h="January February March April May June July August September October November December".split(" ");for(s in c={"%a":function(n){return l[n.$a].substring(0,3)},"%A":function(n){return l[n.$a]},"%b":function(n){return h[n.Oa].substring(0,3)},"%B":function(n){return h[n.Oa]},"%C":function(n){return i((n.Ca+1900)/100|0,2)},"%d":function(n){return i(n.Ta,2)},"%e":function(n){return a(n.Ta,2," ")},"%g":function(n){return f(n).toString().substring(2)},"%G":function(n){return f(n)},"%H":function(n){return i(n.Za,2)},"%I":function(n){return 0==(n=n.Za)?n=12:12<n&&(n-=12),i(n,2)},"%j":function(n){return i(n.Ta+Ot(St(n.Ca+1900)?jt:Wt,n.Oa-1),3)},"%m":function(n){return i(n.Oa+1,2)},"%M":function(n){return i(n.Tb,2)},"%n":function(){return"\n"},"%p":function(n){return 0<=n.Za&&12>n.Za?"AM":"PM"},"%S":function(n){return i(n.Ub,2)},"%t":function(){return"\t"},"%u":function(n){return n.$a||7},"%U":function(n){var t=new Date(n.Ca+1900,0,1),r=0===t.getDay()?t:Rt(t,7-t.getDay());return 0>o(r,n=new Date(n.Ca+1900,n.Oa,n.Ta))?i(Math.ceil((31-r.getDate()+(Ot(St(n.getFullYear())?jt:Wt,n.getMonth()-1)-31)+n.getDate())/7),2):0===o(r,t)?"01":"00"},"%V":function(n){var t=new Date(n.Ca+1901,0,4),r=u(new Date(n.Ca+1900,0,4));t=u(t);var e=Rt(new Date(n.Ca+1900,0,1),n.ab);return 0>o(e,r)?"53":0>=o(t,e)?"01":i(Math.ceil((r.getFullYear()<n.Ca+1900?n.ab+32-r.getDate():n.ab+1-r.getDate())/7),2)},"%w":function(n){return n.$a},"%W":function(n){var t=new Date(n.Ca,0,1),r=1===t.getDay()?t:Rt(t,0===t.getDay()?1:7-t.getDay()+1);return 0>o(r,n=new Date(n.Ca+1900,n.Oa,n.Ta))?i(Math.ceil((31-r.getDate()+(Ot(St(n.getFullYear())?jt:Wt,n.getMonth()-1)-31)+n.getDate())/7),2):0===o(r,t)?"01":"00"},"%y":function(n){return(n.Ca+1900).toString().substring(2)},"%Y":function(n){return n.Ca+1900},"%z":function(n){var t=0<=(n=n.Sb);return n=Math.abs(n)/60,(t?"+":"-")+String("0000"+(n/60*100+n%60)).slice(-4)},"%Z":function(n){return n.Vb},"%%":function(){return"%"}})0<=r.indexOf(s)&&(r=r.replace(new RegExp(s,"g"),c[s](e)));return(s=Yt(r,!1)).length>t?0:(x.set(s,n),s.length-1)}(n,t,r,e)},F:function(n){var t=Date.now()/1e3|0;return n&&(E[n>>2]=t),t},D:function(n){return 0!==n&&Jt(n,0,16),0}};!function(){function n(n){t.asm=n.exports,p=t.asm.ba,I(),U=t.asm.ca,G--,t.monitorRunDependencies&&t.monitorRunDependencies(G),0==G&&L&&(n=L,L=null,n())}function r(t){n(t.instance)}function a(n){return(h||"function"!=typeof fetch?Promise.resolve().then((function(){return q()})):fetch(X,{credentials:"same-origin"}).then((function(n){if(!n.ok)throw"failed to load wasm binary file at '"+X+"'";return n.arrayBuffer()})).catch((function(){return q()}))).then((function(n){return WebAssembly.instantiate(n,i)})).then(n,(function(n){l("failed to asynchronously prepare wasm: "+n),J(n)}))}var i={a:Bt};if(G++,t.monitorRunDependencies&&t.monitorRunDependencies(G),t.instantiateWasm)try{return t.instantiateWasm(i,n)}catch(n){return l("Module.instantiateWasm callback failed with error: "+n),!1}(h||"function"!=typeof WebAssembly.instantiateStreaming||K()||"function"!=typeof fetch?a(r):fetch(X,{credentials:"same-origin"}).then((function(n){return WebAssembly.instantiateStreaming(n,i).then(r,(function(n){return l("wasm streaming compile failed: "+n),l("falling back to ArrayBuffer instantiation"),a(r)}))}))).catch(e)}();var Nt=t.___wasm_call_ctors=function(){return(Nt=t.___wasm_call_ctors=t.asm.da).apply(null,arguments)},Vt=t._malloc=function(){return(Vt=t._malloc=t.asm.ea).apply(null,arguments)},Gt=t._free=function(){return(Gt=t._free=t.asm.fa).apply(null,arguments)},Lt=t.___errno_location=function(){return(Lt=t.___errno_location=t.asm.ga).apply(null,arguments)},Jt=t._memset=function(){return(Jt=t._memset=t.asm.ha).apply(null,arguments)},Kt=t.___getTypeName=function(){return(Kt=t.___getTypeName=t.asm.ia).apply(null,arguments)};t.___embind_register_native_and_builtin_types=function(){return(t.___embind_register_native_and_builtin_types=t.asm.ja).apply(null,arguments)};var Xt,$t=t.stackSave=function(){return($t=t.stackSave=t.asm.ka).apply(null,arguments)},qt=t.stackRestore=function(){return(qt=t.stackRestore=t.asm.la).apply(null,arguments)},Qt=t._setThrew=function(){return(Qt=t._setThrew=t.asm.ma).apply(null,arguments)},Zt=t._memalign=function(){return(Zt=t._memalign=t.asm.na).apply(null,arguments)};function nr(n){this.name="ExitStatus",this.message="Program terminated with exit("+n+")",this.status=n}function tr(){function n(){if(!Xt&&(Xt=!0,t.calledRun=!0,!w)){if(t.noFSInit||Wn||(Wn=!0,Kn(),t.stdin=t.stdin,t.stdout=t.stdout,t.stderr=t.stderr,t.stdin?Xn("stdin",t.stdin):Bn("/dev/tty","/dev/stdin"),t.stdout?Xn("stdout",null,t.stdout):Bn("/dev/tty","/dev/stdout"),t.stderr?Xn("stderr",null,t.stderr):Bn("/dev/tty1","/dev/stderr"),Vn("/dev/stdin",0),Vn("/dev/stdout",1),Vn("/dev/stderr",1)),rn(Y),An=!1,rn(B),r(t),t.onRuntimeInitialized&&t.onRuntimeInitialized(),t.postRun)for("function"==typeof t.postRun&&(t.postRun=[t.postRun]);t.postRun.length;){var n=t.postRun.shift();N.unshift(n)}rn(N)}}if(!(0<G)){if(t.preRun)for("function"==typeof t.preRun&&(t.preRun=[t.preRun]);t.preRun.length;)V();rn(H),0<G||(t.setStatus?(t.setStatus("Running..."),setTimeout((function(){setTimeout((function(){t.setStatus("")}),1),n()}),1)):n())}}if(t.dynCall_viijii=function(){return(t.dynCall_viijii=t.asm.oa).apply(null,arguments)},t.dynCall_iiij=function(){return(t.dynCall_iiij=t.asm.pa).apply(null,arguments)},t.dynCall_viij=function(){return(t.dynCall_viij=t.asm.qa).apply(null,arguments)},t.dynCall_jiji=function(){return(t.dynCall_jiji=t.asm.ra).apply(null,arguments)},t.dynCall_iiiiij=function(){return(t.dynCall_iiiiij=t.asm.sa).apply(null,arguments)},t.dynCall_iiiiijj=function(){return(t.dynCall_iiiiijj=t.asm.ta).apply(null,arguments)},t.dynCall_iiiiiijj=function(){return(t.dynCall_iiiiiijj=t.asm.ua).apply(null,arguments)},L=function n(){Xt||tr(),Xt||(L=n)},t.run=tr,t.preInit)for("function"==typeof t.preInit&&(t.preInit=[t.preInit]);0<t.preInit.length;)t.preInit.pop()();return d=!0,tr(),n.ready};let t,r,e;function a(t){const{id:a,src:i,options:o}=t.data;return async function(){return void 0===e&&(e=await r.then(n)),e}().then((n=>{const t=function(n,t,r){for(const{path:t,data:e}of r.files)n.vizCreateFile(t,e);n.vizSetY_invert(r.yInvert?1:0),n.vizSetNop(r.nop||0);const e=n.vizRenderFromString(t,r.format,r.engine),a=n.vizLastErrorMessage();if(""!==a)throw new Error(a);return e}(n,i,o);postMessage({id:a,result:t})})).catch((n=>{const t=n instanceof Error?{message:n.message,fileName:n.fileName,lineNumber:n.lineNumber}:{message:n.toString()};postMessage({id:a,error:t})}))}r=Promise.resolve({}),t=n=>r=Promise.resolve(n),addEventListener("message",a);var i=t;export default i;export{a as onmessage}; |
{ | ||
"name": "@aduh95/viz.js", | ||
"version": "3.2.1", | ||
"version": "3.3.0", | ||
"description": "A hack to put Graphviz on the web.", | ||
@@ -64,3 +64,3 @@ "main": "./dist/index.cjs", | ||
"eslint": "^7.0.0", | ||
"eslint-config-prettier": "^6.10.1", | ||
"eslint-config-prettier": "^7.2.0", | ||
"eslint-plugin-prettier": "^3.1.3", | ||
@@ -67,0 +67,0 @@ "mocha": "^8.0.1", |
@@ -257,3 +257,3 @@ # Viz.js | ||
```shell | ||
brew install node automake libtool pkg-config | ||
brew install automake bison libtool node pkg-config | ||
``` | ||
@@ -260,0 +260,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3221559
8458