diff --git a/.gitignore b/.gitignore index 2eff852..1fd3d05 100644 --- a/.gitignore +++ b/.gitignore @@ -96,3 +96,4 @@ Network Trash Folder Temporary Items .apdisk +*.dot diff --git a/reaction_systems_gui/Cargo.toml b/reaction_systems_gui/Cargo.toml index c3a5abf..4685ac0 100644 --- a/reaction_systems_gui/Cargo.toml +++ b/reaction_systems_gui/Cargo.toml @@ -20,11 +20,18 @@ getrandom = "0.3" # dependency that has to be specified correctly for wasm layout-rs = "0.1" rfd = "*" # for file selection ron = "*" # for serialization -rsprocess = { version = "*", git = "https://tautocrono.it/elvis/ReactionSystems.git" } -assert = { version = "*", git = "https://tautocrono.it/elvis/ReactionSystems.git" } -execution = { version = "*", git = "https://tautocrono.it/elvis/ReactionSystems.git" } -bisimilarity = { version = "*", git = "https://tautocrono.it/elvis/ReactionSystems.git" } -grammar_separated = { version = "*", git = "https://tautocrono.it/elvis/ReactionSystems.git" } +# rsprocess = { version = "*", git = "https://tautocrono.it/elvis/ReactionSystems.git" } +# assert = { version = "*", git = "https://tautocrono.it/elvis/ReactionSystems.git" } +# execution = { version = "*", git = "https://tautocrono.it/elvis/ReactionSystems.git" } +# bisimilarity = { version = "*", git = "https://tautocrono.it/elvis/ReactionSystems.git" } +# grammar_separated = { version = "*", git = "https://tautocrono.it/elvis/ReactionSystems.git" } + +rsprocess = { version = "*", path = "../../ReactionSystems/rsprocess/" } +assert = { version = "*", path = "../../ReactionSystems/assert/" } +execution = { version = "*", path = "../../ReactionSystems/execution/" } +bisimilarity = { version = "*", path = "../../ReactionSystems/bisimilarity/" } +grammar_separated = { version = "*", path = "../../ReactionSystems/grammar_separated/" } + [target.'cfg(all(target_arch = "wasm32", not(target_os = "emscripten")))'.dependencies] wasm-bindgen = "0.2" diff --git a/reaction_systems_gui/docs/.gitignore b/reaction_systems_gui/docs/.gitignore new file mode 100644 index 0000000..431acb6 --- /dev/null +++ b/reaction_systems_gui/docs/.gitignore @@ -0,0 +1,2 @@ +reaction_systems_gui.js +reaction_systems_gui_bg.wasm diff --git a/reaction_systems_gui/docs/reaction_systems_gui.js b/reaction_systems_gui/docs/reaction_systems_gui.js deleted file mode 100644 index e6a0c81..0000000 --- a/reaction_systems_gui/docs/reaction_systems_gui.js +++ /dev/null @@ -1,1808 +0,0 @@ -let wasm_bindgen; -(function() { - const __exports = {}; - let script_src; - if (typeof document !== 'undefined' && document.currentScript !== null) { - script_src = new URL(document.currentScript.src, location.href).toString(); - } - let wasm = undefined; - - function isLikeNone(x) { - return x === undefined || x === null; - } - - function addToExternrefTable0(obj) { - const idx = wasm.__externref_table_alloc(); - wasm.__wbindgen_export_1.set(idx, obj); - return idx; - } - - let cachedUint8ArrayMemory0 = null; - - function getUint8ArrayMemory0() { - if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) { - cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer); - } - return cachedUint8ArrayMemory0; - } - - let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }); - - cachedTextDecoder.decode(); - - function decodeText(ptr, len) { - return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len)); - } - - function getStringFromWasm0(ptr, len) { - ptr = ptr >>> 0; - return decodeText(ptr, len); - } - - function handleError(f, args) { - try { - return f.apply(this, args); - } catch (e) { - const idx = addToExternrefTable0(e); - wasm.__wbindgen_exn_store(idx); - } - } - - let WASM_VECTOR_LEN = 0; - - const cachedTextEncoder = new TextEncoder(); - - if (!('encodeInto' in cachedTextEncoder)) { - cachedTextEncoder.encodeInto = function (arg, view) { - const buf = cachedTextEncoder.encode(arg); - view.set(buf); - return { - read: arg.length, - written: buf.length - }; - } - } - - function passStringToWasm0(arg, malloc, realloc) { - - if (realloc === undefined) { - const buf = cachedTextEncoder.encode(arg); - const ptr = malloc(buf.length, 1) >>> 0; - getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf); - WASM_VECTOR_LEN = buf.length; - return ptr; - } - - let len = arg.length; - let ptr = malloc(len, 1) >>> 0; - - const mem = getUint8ArrayMemory0(); - - let offset = 0; - - for (; offset < len; offset++) { - const code = arg.charCodeAt(offset); - if (code > 0x7F) break; - mem[ptr + offset] = code; - } - - if (offset !== len) { - if (offset !== 0) { - arg = arg.slice(offset); - } - ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0; - const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len); - const ret = cachedTextEncoder.encodeInto(arg, view); - - offset += ret.written; - ptr = realloc(ptr, len, offset, 1) >>> 0; - } - - WASM_VECTOR_LEN = offset; - return ptr; - } - - let cachedDataViewMemory0 = null; - - function getDataViewMemory0() { - if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) { - cachedDataViewMemory0 = new DataView(wasm.memory.buffer); - } - return cachedDataViewMemory0; - } - - function getArrayU8FromWasm0(ptr, len) { - ptr = ptr >>> 0; - return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len); - } - - function debugString(val) { - // primitive types - const type = typeof val; - if (type == 'number' || type == 'boolean' || val == null) { - return `${val}`; - } - if (type == 'string') { - return `"${val}"`; - } - if (type == 'symbol') { - const description = val.description; - if (description == null) { - return 'Symbol'; - } else { - return `Symbol(${description})`; - } - } - if (type == 'function') { - const name = val.name; - if (typeof name == 'string' && name.length > 0) { - return `Function(${name})`; - } else { - return 'Function'; - } - } - // objects - if (Array.isArray(val)) { - const length = val.length; - let debug = '['; - if (length > 0) { - debug += debugString(val[0]); - } - for(let i = 1; i < length; i++) { - debug += ', ' + debugString(val[i]); - } - debug += ']'; - return debug; - } - // Test for built-in - const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val)); - let className; - if (builtInMatches && builtInMatches.length > 1) { - className = builtInMatches[1]; - } else { - // Failed to match the standard '[object ClassName]' - return toString.call(val); - } - if (className == 'Object') { - // we're a user defined class or Object - // JSON.stringify avoids problems with cycles, and is generally much - // easier than looping through ownProperties of `val`. - try { - return 'Object(' + JSON.stringify(val) + ')'; - } catch (_) { - return 'Object'; - } - } - // errors - if (val instanceof Error) { - return `${val.name}: ${val.message}\n${val.stack}`; - } - // TODO we could test for more things here, like `Set`s and `Map`s. - return className; - } - - const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined') - ? { register: () => {}, unregister: () => {} } - : new FinalizationRegistry( - state => { - wasm.__wbindgen_export_6.get(state.dtor)(state.a, state.b); - } - ); - - function makeMutClosure(arg0, arg1, dtor, f) { - const state = { a: arg0, b: arg1, cnt: 1, dtor }; - const real = (...args) => { - - // First up with a closure we increment the internal reference - // count. This ensures that the Rust closure environment won't - // be deallocated while we're invoking it. - state.cnt++; - const a = state.a; - state.a = 0; - try { - return f(a, state.b, ...args); - } finally { - if (--state.cnt === 0) { - wasm.__wbindgen_export_6.get(state.dtor)(a, state.b); - CLOSURE_DTORS.unregister(state); - } else { - state.a = a; - } - } - }; - real.original = state; - CLOSURE_DTORS.register(real, state, state); - return real; - } - - let cachedUint32ArrayMemory0 = null; - - function getUint32ArrayMemory0() { - if (cachedUint32ArrayMemory0 === null || cachedUint32ArrayMemory0.byteLength === 0) { - cachedUint32ArrayMemory0 = new Uint32Array(wasm.memory.buffer); - } - return cachedUint32ArrayMemory0; - } - - function getArrayU32FromWasm0(ptr, len) { - ptr = ptr >>> 0; - return getUint32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len); - } - - let cachedInt32ArrayMemory0 = null; - - function getInt32ArrayMemory0() { - if (cachedInt32ArrayMemory0 === null || cachedInt32ArrayMemory0.byteLength === 0) { - cachedInt32ArrayMemory0 = new Int32Array(wasm.memory.buffer); - } - return cachedInt32ArrayMemory0; - } - - function getArrayI32FromWasm0(ptr, len) { - ptr = ptr >>> 0; - return getInt32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len); - } - - let cachedUint16ArrayMemory0 = null; - - function getUint16ArrayMemory0() { - if (cachedUint16ArrayMemory0 === null || cachedUint16ArrayMemory0.byteLength === 0) { - cachedUint16ArrayMemory0 = new Uint16Array(wasm.memory.buffer); - } - return cachedUint16ArrayMemory0; - } - - function getArrayU16FromWasm0(ptr, len) { - ptr = ptr >>> 0; - return getUint16ArrayMemory0().subarray(ptr / 2, ptr / 2 + len); - } - - let cachedFloat32ArrayMemory0 = null; - - function getFloat32ArrayMemory0() { - if (cachedFloat32ArrayMemory0 === null || cachedFloat32ArrayMemory0.byteLength === 0) { - cachedFloat32ArrayMemory0 = new Float32Array(wasm.memory.buffer); - } - return cachedFloat32ArrayMemory0; - } - - function getArrayF32FromWasm0(ptr, len) { - ptr = ptr >>> 0; - return getFloat32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len); - } - - let cachedInt16ArrayMemory0 = null; - - function getInt16ArrayMemory0() { - if (cachedInt16ArrayMemory0 === null || cachedInt16ArrayMemory0.byteLength === 0) { - cachedInt16ArrayMemory0 = new Int16Array(wasm.memory.buffer); - } - return cachedInt16ArrayMemory0; - } - - function getArrayI16FromWasm0(ptr, len) { - ptr = ptr >>> 0; - return getInt16ArrayMemory0().subarray(ptr / 2, ptr / 2 + len); - } - - let cachedInt8ArrayMemory0 = null; - - function getInt8ArrayMemory0() { - if (cachedInt8ArrayMemory0 === null || cachedInt8ArrayMemory0.byteLength === 0) { - cachedInt8ArrayMemory0 = new Int8Array(wasm.memory.buffer); - } - return cachedInt8ArrayMemory0; - } - - function getArrayI8FromWasm0(ptr, len) { - ptr = ptr >>> 0; - return getInt8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len); - } - function __wbg_adapter_6(arg0, arg1, arg2) { - wasm.closure806_externref_shim(arg0, arg1, arg2); - } - - function __wbg_adapter_9(arg0, arg1, arg2) { - wasm.closure917_externref_shim(arg0, arg1, arg2); - } - - function takeFromExternrefTable0(idx) { - const value = wasm.__wbindgen_export_1.get(idx); - wasm.__externref_table_dealloc(idx); - return value; - } - function __wbg_adapter_12(arg0, arg1) { - const ret = wasm.wasm_bindgen__convert__closures_____invoke__h7b74ba57f0f4858d_multivalue_shim(arg0, arg1); - if (ret[1]) { - throw takeFromExternrefTable0(ret[0]); - } - } - - function __wbg_adapter_575(arg0, arg1, arg2, arg3) { - wasm.closure951_externref_shim(arg0, arg1, arg2, arg3); - } - - const __wbindgen_enum_ResizeObserverBoxOptions = ["border-box", "content-box", "device-pixel-content-box"]; - - const WebHandleFinalization = (typeof FinalizationRegistry === 'undefined') - ? { register: () => {}, unregister: () => {} } - : new FinalizationRegistry(ptr => wasm.__wbg_webhandle_free(ptr >>> 0, 1)); - - class WebHandle { - - __destroy_into_raw() { - const ptr = this.__wbg_ptr; - this.__wbg_ptr = 0; - WebHandleFinalization.unregister(this); - return ptr; - } - - free() { - const ptr = this.__destroy_into_raw(); - wasm.__wbg_webhandle_free(ptr, 0); - } - /** - * Installs a panic hook, then returns. - */ - constructor() { - const ret = wasm.webhandle_new(); - this.__wbg_ptr = ret >>> 0; - WebHandleFinalization.register(this, this.__wbg_ptr, this); - return this; - } - /** - * Call this once from JavaScript to start the app. - * @param {HTMLCanvasElement} canvas - * @returns {Promise} - */ - start(canvas) { - const ret = wasm.webhandle_start(this.__wbg_ptr, canvas); - return ret; - } - destroy() { - wasm.webhandle_destroy(this.__wbg_ptr); - } - /** - * The JavaScript can check whether or not the app has crashed: - * @returns {boolean} - */ - has_panicked() { - const ret = wasm.webhandle_has_panicked(this.__wbg_ptr); - return ret !== 0; - } - /** - * @returns {string | undefined} - */ - panic_message() { - const ret = wasm.webhandle_panic_message(this.__wbg_ptr); - let v1; - if (ret[0] !== 0) { - v1 = getStringFromWasm0(ret[0], ret[1]).slice(); - wasm.__wbindgen_free(ret[0], ret[1] * 1, 1); - } - return v1; - } - /** - * @returns {string | undefined} - */ - panic_callstack() { - const ret = wasm.webhandle_panic_callstack(this.__wbg_ptr); - let v1; - if (ret[0] !== 0) { - v1 = getStringFromWasm0(ret[0], ret[1]).slice(); - wasm.__wbindgen_free(ret[0], ret[1] * 1, 1); - } - return v1; - } - } - if (Symbol.dispose) WebHandle.prototype[Symbol.dispose] = WebHandle.prototype.free; - - __exports.WebHandle = WebHandle; - - const EXPECTED_RESPONSE_TYPES = new Set(['basic', 'cors', 'default']); - - async function __wbg_load(module, imports) { - if (typeof Response === 'function' && module instanceof Response) { - if (typeof WebAssembly.instantiateStreaming === 'function') { - try { - return await WebAssembly.instantiateStreaming(module, imports); - - } catch (e) { - const validResponse = module.ok && EXPECTED_RESPONSE_TYPES.has(module.type); - - if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') { - console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e); - - } else { - throw e; - } - } - } - - const bytes = await module.arrayBuffer(); - return await WebAssembly.instantiate(bytes, imports); - - } else { - const instance = await WebAssembly.instantiate(module, imports); - - if (instance instanceof WebAssembly.Instance) { - return { instance, module }; - - } else { - return instance; - } - } - } - - function __wbg_get_imports() { - const imports = {}; - imports.wbg = {}; - imports.wbg.__wbg_activeElement_d94b21e372dd0580 = function(arg0) { - const ret = arg0.activeElement; - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }; - imports.wbg.__wbg_activeElement_da57789542a03158 = function(arg0) { - const ret = arg0.activeElement; - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }; - imports.wbg.__wbg_activeTexture_6c1913c8d98b6134 = function(arg0, arg1) { - arg0.activeTexture(arg1 >>> 0); - }; - imports.wbg.__wbg_activeTexture_fb07604497324f97 = function(arg0, arg1) { - arg0.activeTexture(arg1 >>> 0); - }; - imports.wbg.__wbg_addEventListener_d1c39a5c2329c624 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) { - arg0.addEventListener(getStringFromWasm0(arg1, arg2), arg3, arg4); - }, arguments) }; - imports.wbg.__wbg_altKey_5ac2d88882a93598 = function(arg0) { - const ret = arg0.altKey; - return ret; - }; - imports.wbg.__wbg_altKey_a8b663f4f5755ab0 = function(arg0) { - const ret = arg0.altKey; - return ret; - }; - imports.wbg.__wbg_appendChild_87a6cc0aeb132c06 = function() { return handleError(function (arg0, arg1) { - const ret = arg0.appendChild(arg1); - return ret; - }, arguments) }; - imports.wbg.__wbg_arrayBuffer_2c907ed8e8ef4e35 = function(arg0) { - const ret = arg0.arrayBuffer(); - return ret; - }; - imports.wbg.__wbg_at_69627d5494afd9cf = function(arg0, arg1) { - const ret = arg0.at(arg1); - return ret; - }; - imports.wbg.__wbg_attachShader_8bc6f118fa003360 = function(arg0, arg1, arg2) { - arg0.attachShader(arg1, arg2); - }; - imports.wbg.__wbg_attachShader_a8734551b2febdd9 = function(arg0, arg1, arg2) { - arg0.attachShader(arg1, arg2); - }; - imports.wbg.__wbg_bindBuffer_96956145e9aa4a24 = function(arg0, arg1, arg2) { - arg0.bindBuffer(arg1 >>> 0, arg2); - }; - imports.wbg.__wbg_bindBuffer_ca632d407a6cd394 = function(arg0, arg1, arg2) { - arg0.bindBuffer(arg1 >>> 0, arg2); - }; - imports.wbg.__wbg_bindTexture_344367fe0146db6b = function(arg0, arg1, arg2) { - arg0.bindTexture(arg1 >>> 0, arg2); - }; - imports.wbg.__wbg_bindTexture_9d1255b2de6a3a20 = function(arg0, arg1, arg2) { - arg0.bindTexture(arg1 >>> 0, arg2); - }; - imports.wbg.__wbg_bindVertexArrayOES_af3701d1c8765088 = function(arg0, arg1) { - arg0.bindVertexArrayOES(arg1); - }; - imports.wbg.__wbg_bindVertexArray_38371b6174c99865 = function(arg0, arg1) { - arg0.bindVertexArray(arg1); - }; - imports.wbg.__wbg_blendEquationSeparate_57454bc47bbdf27f = function(arg0, arg1, arg2) { - arg0.blendEquationSeparate(arg1 >>> 0, arg2 >>> 0); - }; - imports.wbg.__wbg_blendEquationSeparate_5a0a1a19d0c022cc = function(arg0, arg1, arg2) { - arg0.blendEquationSeparate(arg1 >>> 0, arg2 >>> 0); - }; - imports.wbg.__wbg_blendFuncSeparate_23202f696bbb3c05 = function(arg0, arg1, arg2, arg3, arg4) { - arg0.blendFuncSeparate(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0); - }; - imports.wbg.__wbg_blendFuncSeparate_4cf8789254320bcf = function(arg0, arg1, arg2, arg3, arg4) { - arg0.blendFuncSeparate(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0); - }; - imports.wbg.__wbg_blockSize_e6b651d3754c4602 = function(arg0) { - const ret = arg0.blockSize; - return ret; - }; - imports.wbg.__wbg_blur_9e5586ff1b3fe308 = function() { return handleError(function (arg0) { - arg0.blur(); - }, arguments) }; - imports.wbg.__wbg_body_8822ca55cb3730d2 = function(arg0) { - const ret = arg0.body; - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }; - imports.wbg.__wbg_bottom_64e47c2bef78a1ec = function(arg0) { - const ret = arg0.bottom; - return ret; - }; - imports.wbg.__wbg_bufferData_711da55deac6c280 = function(arg0, arg1, arg2, arg3) { - arg0.bufferData(arg1 >>> 0, arg2, arg3 >>> 0); - }; - imports.wbg.__wbg_bufferData_a964c14d0eebdeb8 = function(arg0, arg1, arg2, arg3) { - arg0.bufferData(arg1 >>> 0, arg2, arg3 >>> 0); - }; - imports.wbg.__wbg_button_47b736693b6dd97f = function(arg0) { - const ret = arg0.button; - return ret; - }; - imports.wbg.__wbg_call_13410aac570ffff7 = function() { return handleError(function (arg0, arg1) { - const ret = arg0.call(arg1); - return ret; - }, arguments) }; - imports.wbg.__wbg_call_a5400b25a865cfd8 = function() { return handleError(function (arg0, arg1, arg2) { - const ret = arg0.call(arg1, arg2); - return ret; - }, arguments) }; - imports.wbg.__wbg_cancelAnimationFrame_a3b3c0d5b5c0056d = function() { return handleError(function (arg0, arg1) { - arg0.cancelAnimationFrame(arg1); - }, arguments) }; - imports.wbg.__wbg_cancel_143e2b7b9a159371 = function(arg0) { - arg0.cancel(); - }; - imports.wbg.__wbg_changedTouches_5ae1149ea4d3b938 = function(arg0) { - const ret = arg0.changedTouches; - return ret; - }; - imports.wbg.__wbg_clearColor_1b57db4542cfd480 = function(arg0, arg1, arg2, arg3, arg4) { - arg0.clearColor(arg1, arg2, arg3, arg4); - }; - imports.wbg.__wbg_clearColor_6e4857102d3b1d7f = function(arg0, arg1, arg2, arg3, arg4) { - arg0.clearColor(arg1, arg2, arg3, arg4); - }; - imports.wbg.__wbg_clearInterval_f2d83bf5893f2fa6 = function(arg0, arg1) { - arg0.clearInterval(arg1); - }; - imports.wbg.__wbg_clear_7b717c6b7a62cb56 = function(arg0, arg1) { - arg0.clear(arg1 >>> 0); - }; - imports.wbg.__wbg_clear_b489bd1e5a12302a = function(arg0, arg1) { - arg0.clear(arg1 >>> 0); - }; - imports.wbg.__wbg_clientX_5663528d33703e9c = function(arg0) { - const ret = arg0.clientX; - return ret; - }; - imports.wbg.__wbg_clientX_ea858fbae3debd3c = function(arg0) { - const ret = arg0.clientX; - return ret; - }; - imports.wbg.__wbg_clientY_7c8403a8bbaec69c = function(arg0) { - const ret = arg0.clientY; - return ret; - }; - imports.wbg.__wbg_clientY_cbb39a771d53208f = function(arg0) { - const ret = arg0.clientY; - return ret; - }; - imports.wbg.__wbg_clipboardData_1e4943165c61a2c7 = function(arg0) { - const ret = arg0.clipboardData; - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }; - imports.wbg.__wbg_clipboard_f0744f8afeddc372 = function(arg0) { - const ret = arg0.clipboard; - return ret; - }; - imports.wbg.__wbg_colorMask_aff1c1224bf8c3a5 = function(arg0, arg1, arg2, arg3, arg4) { - arg0.colorMask(arg1 !== 0, arg2 !== 0, arg3 !== 0, arg4 !== 0); - }; - imports.wbg.__wbg_colorMask_d058f3d5b194b766 = function(arg0, arg1, arg2, arg3, arg4) { - arg0.colorMask(arg1 !== 0, arg2 !== 0, arg3 !== 0, arg4 !== 0); - }; - imports.wbg.__wbg_compileShader_3ed42f9f82c060ea = function(arg0, arg1) { - arg0.compileShader(arg1); - }; - imports.wbg.__wbg_compileShader_624cab4335331bc6 = function(arg0, arg1) { - arg0.compileShader(arg1); - }; - imports.wbg.__wbg_contentBoxSize_8b23e8c2a732f96c = function(arg0) { - const ret = arg0.contentBoxSize; - return ret; - }; - imports.wbg.__wbg_contentRect_4fac166d7cf7a578 = function(arg0) { - const ret = arg0.contentRect; - return ret; - }; - imports.wbg.__wbg_createBuffer_6a92125855922b2e = function(arg0) { - const ret = arg0.createBuffer(); - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }; - imports.wbg.__wbg_createBuffer_c5ec555dacde83aa = function(arg0) { - const ret = arg0.createBuffer(); - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }; - imports.wbg.__wbg_createElement_4909dfa2011f2abe = function() { return handleError(function (arg0, arg1, arg2) { - const ret = arg0.createElement(getStringFromWasm0(arg1, arg2)); - return ret; - }, arguments) }; - imports.wbg.__wbg_createProgram_905f3efd8354e76c = function(arg0) { - const ret = arg0.createProgram(); - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }; - imports.wbg.__wbg_createProgram_ec729a857b19d91d = function(arg0) { - const ret = arg0.createProgram(); - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }; - imports.wbg.__wbg_createShader_8548d722c1327303 = function(arg0, arg1) { - const ret = arg0.createShader(arg1 >>> 0); - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }; - imports.wbg.__wbg_createShader_fd0b69b640e9618d = function(arg0, arg1) { - const ret = arg0.createShader(arg1 >>> 0); - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }; - imports.wbg.__wbg_createTexture_5fd5f5e64ea927f9 = function(arg0) { - const ret = arg0.createTexture(); - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }; - imports.wbg.__wbg_createTexture_62494769edc22521 = function(arg0) { - const ret = arg0.createTexture(); - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }; - imports.wbg.__wbg_createVertexArrayOES_21ff1ae54f601a66 = function(arg0) { - const ret = arg0.createVertexArrayOES(); - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }; - imports.wbg.__wbg_createVertexArray_54f6bb34c6bf6a01 = function(arg0) { - const ret = arg0.createVertexArray(); - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }; - imports.wbg.__wbg_ctrlKey_d6452dce5a5af017 = function(arg0) { - const ret = arg0.ctrlKey; - return ret; - }; - imports.wbg.__wbg_ctrlKey_d85b3ef2e41e6483 = function(arg0) { - const ret = arg0.ctrlKey; - return ret; - }; - imports.wbg.__wbg_dataTransfer_d641dbc20bd252fb = function(arg0) { - const ret = arg0.dataTransfer; - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }; - imports.wbg.__wbg_data_4978d4dff2629236 = function(arg0, arg1) { - const ret = arg1.data; - var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }; - imports.wbg.__wbg_debug_56c125999cb17451 = function(arg0, arg1) { - console.debug(getStringFromWasm0(arg0, arg1)); - }; - imports.wbg.__wbg_deleteBuffer_2bf895dbf2712b1c = function(arg0, arg1) { - arg0.deleteBuffer(arg1); - }; - imports.wbg.__wbg_deleteBuffer_85973edb45946d28 = function(arg0, arg1) { - arg0.deleteBuffer(arg1); - }; - imports.wbg.__wbg_deleteProgram_38897a0794ccf3e7 = function(arg0, arg1) { - arg0.deleteProgram(arg1); - }; - imports.wbg.__wbg_deleteProgram_aea3ac7223133383 = function(arg0, arg1) { - arg0.deleteProgram(arg1); - }; - imports.wbg.__wbg_deleteShader_d6e382690559bdd2 = function(arg0, arg1) { - arg0.deleteShader(arg1); - }; - imports.wbg.__wbg_deleteShader_eb2cdf8ac72c5b0c = function(arg0, arg1) { - arg0.deleteShader(arg1); - }; - imports.wbg.__wbg_deleteTexture_016238d3d7033a57 = function(arg0, arg1) { - arg0.deleteTexture(arg1); - }; - imports.wbg.__wbg_deleteTexture_38b1bb66607dcf07 = function(arg0, arg1) { - arg0.deleteTexture(arg1); - }; - imports.wbg.__wbg_deltaMode_b39c7bf656cadad6 = function(arg0) { - const ret = arg0.deltaMode; - return ret; - }; - imports.wbg.__wbg_deltaX_e639e6be7245bedc = function(arg0) { - const ret = arg0.deltaX; - return ret; - }; - imports.wbg.__wbg_deltaY_2d352968f40fb71a = function(arg0) { - const ret = arg0.deltaY; - return ret; - }; - imports.wbg.__wbg_detachShader_02d3fa6d0f4c3802 = function(arg0, arg1, arg2) { - arg0.detachShader(arg1, arg2); - }; - imports.wbg.__wbg_detachShader_d7def23e0b839d0e = function(arg0, arg1, arg2) { - arg0.detachShader(arg1, arg2); - }; - imports.wbg.__wbg_devicePixelContentBoxSize_6e79a8ed6b36cd2c = function(arg0) { - const ret = arg0.devicePixelContentBoxSize; - return ret; - }; - imports.wbg.__wbg_devicePixelRatio_de772f7b570607fa = function(arg0) { - const ret = arg0.devicePixelRatio; - return ret; - }; - imports.wbg.__wbg_disableVertexAttribArray_318e1f5b4fa87c2c = function(arg0, arg1) { - arg0.disableVertexAttribArray(arg1 >>> 0); - }; - imports.wbg.__wbg_disableVertexAttribArray_84ca048074074001 = function(arg0, arg1) { - arg0.disableVertexAttribArray(arg1 >>> 0); - }; - imports.wbg.__wbg_disable_21c6577232ad9696 = function(arg0, arg1) { - arg0.disable(arg1 >>> 0); - }; - imports.wbg.__wbg_disable_8a09d5dbbf79acd8 = function(arg0, arg1) { - arg0.disable(arg1 >>> 0); - }; - imports.wbg.__wbg_disconnect_240ad3fbb76010b8 = function(arg0) { - arg0.disconnect(); - }; - imports.wbg.__wbg_document_7d29d139bd619045 = function(arg0) { - const ret = arg0.document; - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }; - imports.wbg.__wbg_drawElements_31332dbb833d202b = function(arg0, arg1, arg2, arg3, arg4) { - arg0.drawElements(arg1 >>> 0, arg2, arg3 >>> 0, arg4); - }; - imports.wbg.__wbg_drawElements_3acf8f6523f00d29 = function(arg0, arg1, arg2, arg3, arg4) { - arg0.drawElements(arg1 >>> 0, arg2, arg3 >>> 0, arg4); - }; - imports.wbg.__wbg_elementFromPoint_13d83fbe772c6800 = function(arg0, arg1, arg2) { - const ret = arg0.elementFromPoint(arg1, arg2); - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }; - imports.wbg.__wbg_elementFromPoint_226fcc3a56a9710c = function(arg0, arg1, arg2) { - const ret = arg0.elementFromPoint(arg1, arg2); - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }; - imports.wbg.__wbg_enableVertexAttribArray_0f7f10c9dbc31dfd = function(arg0, arg1) { - arg0.enableVertexAttribArray(arg1 >>> 0); - }; - imports.wbg.__wbg_enableVertexAttribArray_17e09202dc56b410 = function(arg0, arg1) { - arg0.enableVertexAttribArray(arg1 >>> 0); - }; - imports.wbg.__wbg_enable_043862f86449bfd3 = function(arg0, arg1) { - arg0.enable(arg1 >>> 0); - }; - imports.wbg.__wbg_enable_d2b20d4e604e4ada = function(arg0, arg1) { - arg0.enable(arg1 >>> 0); - }; - imports.wbg.__wbg_error_4dd933556fcdce70 = function(arg0, arg1) { - let deferred0_0; - let deferred0_1; - try { - deferred0_0 = arg0; - deferred0_1 = arg1; - console.error(getStringFromWasm0(arg0, arg1)); - } finally { - wasm.__wbindgen_free(deferred0_0, deferred0_1, 1); - } - }; - imports.wbg.__wbg_files_ca6fa9626ae99046 = function(arg0) { - const ret = arg0.files; - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }; - imports.wbg.__wbg_focus_8541343802c6721b = function() { return handleError(function (arg0) { - arg0.focus(); - }, arguments) }; - imports.wbg.__wbg_force_e5a9d27bebc6137b = function(arg0) { - const ret = arg0.force; - return ret; - }; - imports.wbg.__wbg_generateMipmap_8ae9c57507b5c814 = function(arg0, arg1) { - arg0.generateMipmap(arg1 >>> 0); - }; - imports.wbg.__wbg_generateMipmap_d9540bec7e200b2e = function(arg0, arg1) { - arg0.generateMipmap(arg1 >>> 0); - }; - imports.wbg.__wbg_getAttribLocation_0de296dd6831e7e2 = function(arg0, arg1, arg2, arg3) { - const ret = arg0.getAttribLocation(arg1, getStringFromWasm0(arg2, arg3)); - return ret; - }; - imports.wbg.__wbg_getAttribLocation_4bc7298aff530b04 = function(arg0, arg1, arg2, arg3) { - const ret = arg0.getAttribLocation(arg1, getStringFromWasm0(arg2, arg3)); - return ret; - }; - imports.wbg.__wbg_getBoundingClientRect_a2461829d8aa0b30 = function(arg0) { - const ret = arg0.getBoundingClientRect(); - return ret; - }; - imports.wbg.__wbg_getComputedStyle_06167bcde483501e = function() { return handleError(function (arg0, arg1) { - const ret = arg0.getComputedStyle(arg1); - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }, arguments) }; - imports.wbg.__wbg_getContext_15e158d04230a6f6 = function() { return handleError(function (arg0, arg1, arg2) { - const ret = arg0.getContext(getStringFromWasm0(arg1, arg2)); - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }, arguments) }; - imports.wbg.__wbg_getData_0611886e88c34a89 = function() { return handleError(function (arg0, arg1, arg2, arg3) { - const ret = arg1.getData(getStringFromWasm0(arg2, arg3)); - const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }, arguments) }; - imports.wbg.__wbg_getError_2a2cb008dcf733a8 = function(arg0) { - const ret = arg0.getError(); - return ret; - }; - imports.wbg.__wbg_getError_ab25254e5ad196eb = function(arg0) { - const ret = arg0.getError(); - return ret; - }; - imports.wbg.__wbg_getExtension_bfad55fb92b4a6f1 = function() { return handleError(function (arg0, arg1, arg2) { - const ret = arg0.getExtension(getStringFromWasm0(arg1, arg2)); - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }, arguments) }; - imports.wbg.__wbg_getExtension_d67daf16716a0474 = function() { return handleError(function (arg0, arg1, arg2) { - const ret = arg0.getExtension(getStringFromWasm0(arg1, arg2)); - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }, arguments) }; - imports.wbg.__wbg_getItem_9fc74b31b896f95a = function() { return handleError(function (arg0, arg1, arg2, arg3) { - const ret = arg1.getItem(getStringFromWasm0(arg2, arg3)); - var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }, arguments) }; - imports.wbg.__wbg_getParameter_2e3a45595197590c = function() { return handleError(function (arg0, arg1) { - const ret = arg0.getParameter(arg1 >>> 0); - return ret; - }, arguments) }; - imports.wbg.__wbg_getParameter_3624d89739a2bc7e = function() { return handleError(function (arg0, arg1) { - const ret = arg0.getParameter(arg1 >>> 0); - return ret; - }, arguments) }; - imports.wbg.__wbg_getProgramInfoLog_0f2cbb1decc2bdb4 = function(arg0, arg1, arg2) { - const ret = arg1.getProgramInfoLog(arg2); - var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }; - imports.wbg.__wbg_getProgramInfoLog_213b7a355f7a9ab3 = function(arg0, arg1, arg2) { - const ret = arg1.getProgramInfoLog(arg2); - var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }; - imports.wbg.__wbg_getProgramParameter_1dfaf593c91d28d4 = function(arg0, arg1, arg2) { - const ret = arg0.getProgramParameter(arg1, arg2 >>> 0); - return ret; - }; - imports.wbg.__wbg_getProgramParameter_fbfb133d8f8e5a0e = function(arg0, arg1, arg2) { - const ret = arg0.getProgramParameter(arg1, arg2 >>> 0); - return ret; - }; - imports.wbg.__wbg_getPropertyValue_da119dca19ff1bd7 = function() { return handleError(function (arg0, arg1, arg2, arg3) { - const ret = arg1.getPropertyValue(getStringFromWasm0(arg2, arg3)); - const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }, arguments) }; - imports.wbg.__wbg_getRandomValues_1c61fac11405ffdc = function() { return handleError(function (arg0, arg1) { - globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1)); - }, arguments) }; - imports.wbg.__wbg_getRootNode_2b93bf4c6dad7e54 = function(arg0) { - const ret = arg0.getRootNode(); - return ret; - }; - imports.wbg.__wbg_getShaderInfoLog_42f0460a19309f2b = function(arg0, arg1, arg2) { - const ret = arg1.getShaderInfoLog(arg2); - var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }; - imports.wbg.__wbg_getShaderInfoLog_561bdd629638c1af = function(arg0, arg1, arg2) { - const ret = arg1.getShaderInfoLog(arg2); - var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }; - imports.wbg.__wbg_getShaderParameter_17cf070915068143 = function(arg0, arg1, arg2) { - const ret = arg0.getShaderParameter(arg1, arg2 >>> 0); - return ret; - }; - imports.wbg.__wbg_getShaderParameter_c213f6b6c9743c02 = function(arg0, arg1, arg2) { - const ret = arg0.getShaderParameter(arg1, arg2 >>> 0); - return ret; - }; - imports.wbg.__wbg_getSupportedExtensions_5a90a17f0f82d0b5 = function(arg0) { - const ret = arg0.getSupportedExtensions(); - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }; - imports.wbg.__wbg_getSupportedExtensions_9613eceec06ca9ec = function(arg0) { - const ret = arg0.getSupportedExtensions(); - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }; - imports.wbg.__wbg_getUniformLocation_2806716283530fdf = function(arg0, arg1, arg2, arg3) { - const ret = arg0.getUniformLocation(arg1, getStringFromWasm0(arg2, arg3)); - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }; - imports.wbg.__wbg_getUniformLocation_3c1cc7519f10e1e9 = function(arg0, arg1, arg2, arg3) { - const ret = arg0.getUniformLocation(arg1, getStringFromWasm0(arg2, arg3)); - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }; - imports.wbg.__wbg_get_08204360fb7fab01 = function(arg0, arg1) { - const ret = arg0[arg1 >>> 0]; - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }; - imports.wbg.__wbg_get_0da715ceaecea5c8 = function(arg0, arg1) { - const ret = arg0[arg1 >>> 0]; - return ret; - }; - imports.wbg.__wbg_get_38581a2d5436f1ba = function(arg0, arg1) { - const ret = arg0[arg1 >>> 0]; - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }; - imports.wbg.__wbg_get_9a6a49abbae9a246 = function(arg0, arg1) { - const ret = arg0[arg1 >>> 0]; - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }; - imports.wbg.__wbg_hash_61a93e84f71459f5 = function() { return handleError(function (arg0, arg1) { - const ret = arg1.hash; - const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }, arguments) }; - imports.wbg.__wbg_height_228fe8a75d4d09d6 = function(arg0) { - const ret = arg0.height; - return ret; - }; - imports.wbg.__wbg_height_4b1c53fac682bfa2 = function(arg0) { - const ret = arg0.height; - return ret; - }; - imports.wbg.__wbg_hidden_228b0580a9b90e34 = function(arg0) { - const ret = arg0.hidden; - return ret; - }; - imports.wbg.__wbg_host_0f6228ca8c54ae08 = function() { return handleError(function (arg0, arg1) { - const ret = arg1.host; - const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }, arguments) }; - imports.wbg.__wbg_hostname_e085cea10ffacfc6 = function() { return handleError(function (arg0, arg1) { - const ret = arg1.hostname; - const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }, arguments) }; - imports.wbg.__wbg_href_65a798194bf5ead5 = function() { return handleError(function (arg0, arg1) { - const ret = arg1.href; - const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }, arguments) }; - imports.wbg.__wbg_id_cf626ed5d83cb98d = function(arg0, arg1) { - const ret = arg1.id; - const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }; - imports.wbg.__wbg_identifier_55c02c3664ce8f8d = function(arg0) { - const ret = arg0.identifier; - return ret; - }; - imports.wbg.__wbg_info_f8c32c83489ae08f = function(arg0, arg1) { - console.info(getStringFromWasm0(arg0, arg1)); - }; - imports.wbg.__wbg_inlineSize_28bb3208ec333a04 = function(arg0) { - const ret = arg0.inlineSize; - return ret; - }; - imports.wbg.__wbg_instanceof_Document_e49838e95e957799 = function(arg0) { - let result; - try { - result = arg0 instanceof Document; - } catch (_) { - result = false; - } - const ret = result; - return ret; - }; - imports.wbg.__wbg_instanceof_Element_162e4334c7d6f450 = function(arg0) { - let result; - try { - result = arg0 instanceof Element; - } catch (_) { - result = false; - } - const ret = result; - return ret; - }; - imports.wbg.__wbg_instanceof_HtmlElement_d60c51c41eb8699a = function(arg0) { - let result; - try { - result = arg0 instanceof HTMLElement; - } catch (_) { - result = false; - } - const ret = result; - return ret; - }; - imports.wbg.__wbg_instanceof_HtmlInputElement_486d1ca974d99353 = function(arg0) { - let result; - try { - result = arg0 instanceof HTMLInputElement; - } catch (_) { - result = false; - } - const ret = result; - return ret; - }; - imports.wbg.__wbg_instanceof_ResizeObserverEntry_ca1c8f846bd83037 = function(arg0) { - let result; - try { - result = arg0 instanceof ResizeObserverEntry; - } catch (_) { - result = false; - } - const ret = result; - return ret; - }; - imports.wbg.__wbg_instanceof_ResizeObserverSize_268a90c44c6ecb16 = function(arg0) { - let result; - try { - result = arg0 instanceof ResizeObserverSize; - } catch (_) { - result = false; - } - const ret = result; - return ret; - }; - imports.wbg.__wbg_instanceof_ShadowRoot_f3723967133597a3 = function(arg0) { - let result; - try { - result = arg0 instanceof ShadowRoot; - } catch (_) { - result = false; - } - const ret = result; - return ret; - }; - imports.wbg.__wbg_instanceof_WebGl2RenderingContext_0437ff340aef5ac7 = function(arg0) { - let result; - try { - result = arg0 instanceof WebGL2RenderingContext; - } catch (_) { - result = false; - } - const ret = result; - return ret; - }; - imports.wbg.__wbg_instanceof_WebGlRenderingContext_43342297ddac4edb = function(arg0) { - let result; - try { - result = arg0 instanceof WebGLRenderingContext; - } catch (_) { - result = false; - } - const ret = result; - return ret; - }; - imports.wbg.__wbg_instanceof_Window_12d20d558ef92592 = function(arg0) { - let result; - try { - result = arg0 instanceof Window; - } catch (_) { - result = false; - } - const ret = result; - return ret; - }; - imports.wbg.__wbg_isComposing_6f9eb277d5f4f606 = function(arg0) { - const ret = arg0.isComposing; - return ret; - }; - imports.wbg.__wbg_isComposing_7bcc597824f9957c = function(arg0) { - const ret = arg0.isComposing; - return ret; - }; - imports.wbg.__wbg_isSecureContext_43b9a6f19837d767 = function(arg0) { - const ret = arg0.isSecureContext; - return ret; - }; - imports.wbg.__wbg_is_8346b6c36feaf71a = function(arg0, arg1) { - const ret = Object.is(arg0, arg1); - return ret; - }; - imports.wbg.__wbg_item_d7b82c54b71acce4 = function(arg0, arg1) { - const ret = arg0.item(arg1 >>> 0); - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }; - imports.wbg.__wbg_items_5c9ddc2a018082c5 = function(arg0) { - const ret = arg0.items; - return ret; - }; - imports.wbg.__wbg_keyCode_669253200ff252c2 = function(arg0) { - const ret = arg0.keyCode; - return ret; - }; - imports.wbg.__wbg_key_caac8fafdd6d5317 = function(arg0, arg1) { - const ret = arg1.key; - const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }; - imports.wbg.__wbg_lastModified_bba7ecb829c9236e = function(arg0) { - const ret = arg0.lastModified; - return ret; - }; - imports.wbg.__wbg_left_31939b629ff732e9 = function(arg0) { - const ret = arg0.left; - return ret; - }; - imports.wbg.__wbg_length_03743a2dd2c867f2 = function(arg0) { - const ret = arg0.length; - return ret; - }; - imports.wbg.__wbg_length_186546c51cd61acd = function(arg0) { - const ret = arg0.length; - return ret; - }; - imports.wbg.__wbg_length_3ef58e46d4a8aed9 = function(arg0) { - const ret = arg0.length; - return ret; - }; - imports.wbg.__wbg_length_6bb7e81f9d7713e4 = function(arg0) { - const ret = arg0.length; - return ret; - }; - imports.wbg.__wbg_length_c6bc4b25c23a7062 = function(arg0) { - const ret = arg0.length; - return ret; - }; - imports.wbg.__wbg_linkProgram_4bf446d2d081aa07 = function(arg0, arg1) { - arg0.linkProgram(arg1); - }; - imports.wbg.__wbg_linkProgram_95ebc1476a7a1a7b = function(arg0, arg1) { - arg0.linkProgram(arg1); - }; - imports.wbg.__wbg_localStorage_9330af8bf39365ba = function() { return handleError(function (arg0) { - const ret = arg0.localStorage; - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }, arguments) }; - imports.wbg.__wbg_location_92d89c32ae076cab = function(arg0) { - const ret = arg0.location; - return ret; - }; - imports.wbg.__wbg_matchMedia_19600e31a5612b23 = function() { return handleError(function (arg0, arg1, arg2) { - const ret = arg0.matchMedia(getStringFromWasm0(arg1, arg2)); - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }, arguments) }; - imports.wbg.__wbg_matches_12ebc1caa30f1e42 = function(arg0) { - const ret = arg0.matches; - return ret; - }; - imports.wbg.__wbg_metaKey_3faf4a14e870c3d6 = function(arg0) { - const ret = arg0.metaKey; - return ret; - }; - imports.wbg.__wbg_metaKey_48d6907eef50622b = function(arg0) { - const ret = arg0.metaKey; - return ret; - }; - imports.wbg.__wbg_name_42b465b8043f111e = function(arg0, arg1) { - const ret = arg1.name; - const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }; - imports.wbg.__wbg_navigator_65d5ad763926b868 = function(arg0) { - const ret = arg0.navigator; - return ret; - }; - imports.wbg.__wbg_new_19c25a3f2fa63a02 = function() { - const ret = new Object(); - return ret; - }; - imports.wbg.__wbg_new_1f3a344cf3123716 = function() { - const ret = new Array(); - return ret; - }; - imports.wbg.__wbg_new_2e3c58a15f39f5f9 = function(arg0, arg1) { - try { - var state0 = {a: arg0, b: arg1}; - var cb0 = (arg0, arg1) => { - const a = state0.a; - state0.a = 0; - try { - return __wbg_adapter_575(a, state0.b, arg0, arg1); - } finally { - state0.a = a; - } - }; - const ret = new Promise(cb0); - return ret; - } finally { - state0.a = state0.b = 0; - } - }; - imports.wbg.__wbg_new_638ebfaedbf32a5e = function(arg0) { - const ret = new Uint8Array(arg0); - return ret; - }; - imports.wbg.__wbg_new_c949fe92f1151b4b = function() { return handleError(function (arg0) { - const ret = new ResizeObserver(arg0); - return ret; - }, arguments) }; - imports.wbg.__wbg_new_ede6abc8359c5376 = function() { - const ret = new Error(); - return ret; - }; - imports.wbg.__wbg_newfromslice_074c56947bd43469 = function(arg0, arg1) { - const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1)); - return ret; - }; - imports.wbg.__wbg_newnoargs_254190557c45b4ec = function(arg0, arg1) { - const ret = new Function(getStringFromWasm0(arg0, arg1)); - return ret; - }; - imports.wbg.__wbg_newwithrecordfromstrtoblobpromise_3df73f3df3c96b16 = function() { return handleError(function (arg0) { - const ret = new ClipboardItem(arg0); - return ret; - }, arguments) }; - imports.wbg.__wbg_newwithtext_be51cc27d9cc715f = function() { return handleError(function (arg0, arg1) { - const ret = new SpeechSynthesisUtterance(getStringFromWasm0(arg0, arg1)); - return ret; - }, arguments) }; - imports.wbg.__wbg_newwithu8arraysequenceandoptions_2df1a97d9f42efa4 = function() { return handleError(function (arg0, arg1) { - const ret = new Blob(arg0, arg1); - return ret; - }, arguments) }; - imports.wbg.__wbg_now_2c95c9de01293173 = function(arg0) { - const ret = arg0.now(); - return ret; - }; - imports.wbg.__wbg_now_886b39d7ec380719 = function(arg0) { - const ret = arg0.now(); - return ret; - }; - imports.wbg.__wbg_observe_1191c7319883ed4f = function(arg0, arg1, arg2) { - arg0.observe(arg1, arg2); - }; - imports.wbg.__wbg_of_30e97a7ad6e3518b = function(arg0) { - const ret = Array.of(arg0); - return ret; - }; - imports.wbg.__wbg_offsetTop_747ebfe6b22d12f3 = function(arg0) { - const ret = arg0.offsetTop; - return ret; - }; - imports.wbg.__wbg_open_f3686f2ef2cc8b70 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) { - const ret = arg0.open(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4)); - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }, arguments) }; - imports.wbg.__wbg_origin_00892013881c6e2b = function() { return handleError(function (arg0, arg1) { - const ret = arg1.origin; - const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }, arguments) }; - imports.wbg.__wbg_performance_7a3ffd0b17f663ad = function(arg0) { - const ret = arg0.performance; - return ret; - }; - imports.wbg.__wbg_performance_a221af8decc752fb = function(arg0) { - const ret = arg0.performance; - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }; - imports.wbg.__wbg_pixelStorei_a5469272ba5f21a9 = function(arg0, arg1, arg2) { - arg0.pixelStorei(arg1 >>> 0, arg2); - }; - imports.wbg.__wbg_pixelStorei_e3860b193984af5d = function(arg0, arg1, arg2) { - arg0.pixelStorei(arg1 >>> 0, arg2); - }; - imports.wbg.__wbg_port_fc579bf1aa5db12d = function() { return handleError(function (arg0, arg1) { - const ret = arg1.port; - const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }, arguments) }; - imports.wbg.__wbg_preventDefault_fab9a085b3006058 = function(arg0) { - arg0.preventDefault(); - }; - imports.wbg.__wbg_protocol_5b764ad2f8de833d = function() { return handleError(function (arg0, arg1) { - const ret = arg1.protocol; - const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }, arguments) }; - imports.wbg.__wbg_prototypesetcall_3d4a26c1ed734349 = function(arg0, arg1, arg2) { - Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2); - }; - imports.wbg.__wbg_push_330b2eb93e4e1212 = function(arg0, arg1) { - const ret = arg0.push(arg1); - return ret; - }; - imports.wbg.__wbg_queueMicrotask_25d0739ac89e8c88 = function(arg0) { - queueMicrotask(arg0); - }; - imports.wbg.__wbg_queueMicrotask_4488407636f5bf24 = function(arg0) { - const ret = arg0.queueMicrotask; - return ret; - }; - imports.wbg.__wbg_readPixels_8f50625896c2de94 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) { - arg0.readPixels(arg1, arg2, arg3, arg4, arg5 >>> 0, arg6 >>> 0, arg7); - }, arguments) }; - imports.wbg.__wbg_readPixels_94d302036298e2a0 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) { - arg0.readPixels(arg1, arg2, arg3, arg4, arg5 >>> 0, arg6 >>> 0, arg7); - }, arguments) }; - imports.wbg.__wbg_readPixels_f4f1bbd546ca2f58 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) { - arg0.readPixels(arg1, arg2, arg3, arg4, arg5 >>> 0, arg6 >>> 0, arg7); - }, arguments) }; - imports.wbg.__wbg_removeEventListener_6d5be9c2821a511e = function() { return handleError(function (arg0, arg1, arg2, arg3) { - arg0.removeEventListener(getStringFromWasm0(arg1, arg2), arg3); - }, arguments) }; - imports.wbg.__wbg_remove_fec7bce376b31b32 = function(arg0) { - arg0.remove(); - }; - imports.wbg.__wbg_requestAnimationFrame_ddc84a7def436784 = function() { return handleError(function (arg0, arg1) { - const ret = arg0.requestAnimationFrame(arg1); - return ret; - }, arguments) }; - imports.wbg.__wbg_resolve_4055c623acdd6a1b = function(arg0) { - const ret = Promise.resolve(arg0); - return ret; - }; - imports.wbg.__wbg_right_0e878bf84db3b0b9 = function(arg0) { - const ret = arg0.right; - return ret; - }; - imports.wbg.__wbg_scissor_a3f0cbdc82abcc80 = function(arg0, arg1, arg2, arg3, arg4) { - arg0.scissor(arg1, arg2, arg3, arg4); - }; - imports.wbg.__wbg_scissor_e0f22a65cec561df = function(arg0, arg1, arg2, arg3, arg4) { - arg0.scissor(arg1, arg2, arg3, arg4); - }; - imports.wbg.__wbg_search_73c5c4925b506661 = function() { return handleError(function (arg0, arg1) { - const ret = arg1.search; - const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }, arguments) }; - imports.wbg.__wbg_setAttribute_d1baf9023ad5696f = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) { - arg0.setAttribute(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4)); - }, arguments) }; - imports.wbg.__wbg_setItem_7add5eb06a28b38f = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) { - arg0.setItem(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4)); - }, arguments) }; - imports.wbg.__wbg_setProperty_a4431938dd3e6945 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) { - arg0.setProperty(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4)); - }, arguments) }; - imports.wbg.__wbg_set_453345bcda80b89a = function() { return handleError(function (arg0, arg1, arg2) { - const ret = Reflect.set(arg0, arg1, arg2); - return ret; - }, arguments) }; - imports.wbg.__wbg_setautofocus_b956daf165630ff7 = function() { return handleError(function (arg0, arg1) { - arg0.autofocus = arg1 !== 0; - }, arguments) }; - imports.wbg.__wbg_setbox_3751928f4f6acf2f = function(arg0, arg1) { - arg0.box = __wbindgen_enum_ResizeObserverBoxOptions[arg1]; - }; - imports.wbg.__wbg_setheight_4fce583024b2d088 = function(arg0, arg1) { - arg0.height = arg1 >>> 0; - }; - imports.wbg.__wbg_setonce_5b860c1f79d40d3b = function(arg0, arg1) { - arg0.once = arg1 !== 0; - }; - imports.wbg.__wbg_setpitch_6ce4a6fb198d4e8b = function(arg0, arg1) { - arg0.pitch = arg1; - }; - imports.wbg.__wbg_setrate_a101f5d58be1d575 = function(arg0, arg1) { - arg0.rate = arg1; - }; - imports.wbg.__wbg_settabIndex_d64841d13cd50555 = function(arg0, arg1) { - arg0.tabIndex = arg1; - }; - imports.wbg.__wbg_settype_298968e371b58a33 = function(arg0, arg1, arg2) { - arg0.type = getStringFromWasm0(arg1, arg2); - }; - imports.wbg.__wbg_settype_d0702158713e14e3 = function(arg0, arg1, arg2) { - arg0.type = getStringFromWasm0(arg1, arg2); - }; - imports.wbg.__wbg_setvalue_4c91a711c0108335 = function(arg0, arg1, arg2) { - arg0.value = getStringFromWasm0(arg1, arg2); - }; - imports.wbg.__wbg_setvolume_5f54500139e908ed = function(arg0, arg1) { - arg0.volume = arg1; - }; - imports.wbg.__wbg_setwidth_40a6ed203b92839d = function(arg0, arg1) { - arg0.width = arg1 >>> 0; - }; - imports.wbg.__wbg_shaderSource_261d7c2a863b3760 = function(arg0, arg1, arg2, arg3) { - arg0.shaderSource(arg1, getStringFromWasm0(arg2, arg3)); - }; - imports.wbg.__wbg_shaderSource_2ed8147ed144f6d6 = function(arg0, arg1, arg2, arg3) { - arg0.shaderSource(arg1, getStringFromWasm0(arg2, arg3)); - }; - imports.wbg.__wbg_shiftKey_7793232603bd5f81 = function(arg0) { - const ret = arg0.shiftKey; - return ret; - }; - imports.wbg.__wbg_shiftKey_cf32e1142cac9fca = function(arg0) { - const ret = arg0.shiftKey; - return ret; - }; - imports.wbg.__wbg_size_8f84e7768fba0589 = function(arg0) { - const ret = arg0.size; - return ret; - }; - imports.wbg.__wbg_speak_c2d95dbebf4dc896 = function(arg0, arg1) { - arg0.speak(arg1); - }; - imports.wbg.__wbg_speechSynthesis_3cb8f9dbf63b5602 = function() { return handleError(function (arg0) { - const ret = arg0.speechSynthesis; - return ret; - }, arguments) }; - imports.wbg.__wbg_stack_ce508d4881a78479 = function(arg0, arg1) { - const ret = arg1.stack; - const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }; - imports.wbg.__wbg_static_accessor_GLOBAL_8921f820c2ce3f12 = function() { - const ret = typeof global === 'undefined' ? null : global; - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }; - imports.wbg.__wbg_static_accessor_GLOBAL_THIS_f0a4409105898184 = function() { - const ret = typeof globalThis === 'undefined' ? null : globalThis; - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }; - imports.wbg.__wbg_static_accessor_SELF_995b214ae681ff99 = function() { - const ret = typeof self === 'undefined' ? null : self; - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }; - imports.wbg.__wbg_static_accessor_WINDOW_cde3890479c675ea = function() { - const ret = typeof window === 'undefined' ? null : window; - return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); - }; - imports.wbg.__wbg_stopPropagation_648b944424ad6fc4 = function(arg0) { - arg0.stopPropagation(); - }; - imports.wbg.__wbg_style_32a3c8393b46a115 = function(arg0) { - const ret = arg0.style; - return ret; - }; - imports.wbg.__wbg_texImage2D_170458df6b3f9d01 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) { - arg0.texImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9); - }, arguments) }; - imports.wbg.__wbg_texImage2D_aa5d5fe2fabd14fd = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) { - arg0.texImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9); - }, arguments) }; - imports.wbg.__wbg_texImage2D_e7b9ba3b4467b817 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) { - arg0.texImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9); - }, arguments) }; - imports.wbg.__wbg_texParameteri_0be696f1f20558e8 = function(arg0, arg1, arg2, arg3) { - arg0.texParameteri(arg1 >>> 0, arg2 >>> 0, arg3); - }; - imports.wbg.__wbg_texParameteri_ebae520a31bfd243 = function(arg0, arg1, arg2, arg3) { - arg0.texParameteri(arg1 >>> 0, arg2 >>> 0, arg3); - }; - imports.wbg.__wbg_texSubImage2D_3a84a32e9f31aff8 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) { - arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9); - }, arguments) }; - imports.wbg.__wbg_texSubImage2D_565893333677bfcc = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) { - arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9); - }, arguments) }; - imports.wbg.__wbg_texSubImage2D_f3b76d2880b85597 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) { - arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9); - }, arguments) }; - imports.wbg.__wbg_then_b33a773d723afa3e = function(arg0, arg1, arg2) { - const ret = arg0.then(arg1, arg2); - return ret; - }; - imports.wbg.__wbg_then_e22500defe16819f = function(arg0, arg1) { - const ret = arg0.then(arg1); - return ret; - }; - imports.wbg.__wbg_top_447ffcfee64c5d99 = function(arg0) { - const ret = arg0.top; - return ret; - }; - imports.wbg.__wbg_touches_48d172b1f9472fc6 = function(arg0) { - const ret = arg0.touches; - return ret; - }; - imports.wbg.__wbg_type_286052cf9318fb63 = function(arg0, arg1) { - const ret = arg1.type; - const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }; - imports.wbg.__wbg_type_a95370d28aea2b28 = function(arg0, arg1) { - const ret = arg1.type; - const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }; - imports.wbg.__wbg_uniform1i_036dbf425ab4b115 = function(arg0, arg1, arg2) { - arg0.uniform1i(arg1, arg2); - }; - imports.wbg.__wbg_uniform1i_485c226709cdf6d1 = function(arg0, arg1, arg2) { - arg0.uniform1i(arg1, arg2); - }; - imports.wbg.__wbg_uniform2f_596fb754fb1e84b5 = function(arg0, arg1, arg2, arg3) { - arg0.uniform2f(arg1, arg2, arg3); - }; - imports.wbg.__wbg_uniform2f_78050f7ca285de9e = function(arg0, arg1, arg2, arg3) { - arg0.uniform2f(arg1, arg2, arg3); - }; - imports.wbg.__wbg_useProgram_3e5c220728446c29 = function(arg0, arg1) { - arg0.useProgram(arg1); - }; - imports.wbg.__wbg_useProgram_9392b29dd522e4ff = function(arg0, arg1) { - arg0.useProgram(arg1); - }; - imports.wbg.__wbg_userAgent_2e89808dc5dc17d7 = function() { return handleError(function (arg0, arg1) { - const ret = arg1.userAgent; - const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }, arguments) }; - imports.wbg.__wbg_value_fdf54c7557edc2e8 = function(arg0, arg1) { - const ret = arg1.value; - const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }; - imports.wbg.__wbg_vertexAttribPointer_3549d2703f29bf38 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) { - arg0.vertexAttribPointer(arg1 >>> 0, arg2, arg3 >>> 0, arg4 !== 0, arg5, arg6); - }; - imports.wbg.__wbg_vertexAttribPointer_a947e4bf88eef038 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) { - arg0.vertexAttribPointer(arg1 >>> 0, arg2, arg3 >>> 0, arg4 !== 0, arg5, arg6); - }; - imports.wbg.__wbg_viewport_08854654c5c2bba6 = function(arg0, arg1, arg2, arg3, arg4) { - arg0.viewport(arg1, arg2, arg3, arg4); - }; - imports.wbg.__wbg_viewport_fd16dca3a04df933 = function(arg0, arg1, arg2, arg3, arg4) { - arg0.viewport(arg1, arg2, arg3, arg4); - }; - imports.wbg.__wbg_warn_12208a9031b0fbaf = function(arg0, arg1) { - console.warn(getStringFromWasm0(arg0, arg1)); - }; - imports.wbg.__wbg_wbindgenbooleanget_3fe6f642c7d97746 = function(arg0) { - const v = arg0; - const ret = typeof(v) === 'boolean' ? v : undefined; - return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0; - }; - imports.wbg.__wbg_wbindgencbdrop_eb10308566512b88 = function(arg0) { - const obj = arg0.original; - if (obj.cnt-- == 1) { - obj.a = 0; - return true; - } - const ret = false; - return ret; - }; - imports.wbg.__wbg_wbindgendebugstring_99ef257a3ddda34d = function(arg0, arg1) { - const ret = debugString(arg1); - const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - const len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }; - imports.wbg.__wbg_wbindgenin_d7a1ee10933d2d55 = function(arg0, arg1) { - const ret = arg0 in arg1; - return ret; - }; - imports.wbg.__wbg_wbindgenisfunction_8cee7dce3725ae74 = function(arg0) { - const ret = typeof(arg0) === 'function'; - return ret; - }; - imports.wbg.__wbg_wbindgenisundefined_c4b71d073b92f3c5 = function(arg0) { - const ret = arg0 === undefined; - return ret; - }; - imports.wbg.__wbg_wbindgennumberget_f74b4c7525ac05cb = function(arg0, arg1) { - const obj = arg1; - const ret = typeof(obj) === 'number' ? obj : undefined; - getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true); - }; - imports.wbg.__wbg_wbindgenstringget_0f16a6ddddef376f = function(arg0, arg1) { - const obj = arg1; - const ret = typeof(obj) === 'string' ? obj : undefined; - var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); - var len1 = WASM_VECTOR_LEN; - getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); - getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); - }; - imports.wbg.__wbg_wbindgenthrow_451ec1a8469d7eb6 = function(arg0, arg1) { - throw new Error(getStringFromWasm0(arg0, arg1)); - }; - imports.wbg.__wbg_width_092500fcef82abcd = function(arg0) { - const ret = arg0.width; - return ret; - }; - imports.wbg.__wbg_width_c7a070ac56976582 = function(arg0) { - const ret = arg0.width; - return ret; - }; - imports.wbg.__wbg_writeText_2322f8ec37090e3d = function(arg0, arg1, arg2) { - const ret = arg0.writeText(getStringFromWasm0(arg1, arg2)); - return ret; - }; - imports.wbg.__wbg_write_d12efa92c4bf8e4b = function(arg0, arg1) { - const ret = arg0.write(arg1); - return ret; - }; - imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) { - // Cast intrinsic for `Ref(String) -> Externref`. - const ret = getStringFromWasm0(arg0, arg1); - return ret; - }; - imports.wbg.__wbindgen_cast_2ad0de3fc158fdcc = function(arg0, arg1) { - // Cast intrinsic for `Closure(Closure { dtor_idx: 805, function: Function { arguments: [NamedExternref("Array")], shim_idx: 806, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`. - const ret = makeMutClosure(arg0, arg1, 805, __wbg_adapter_6); - return ret; - }; - imports.wbg.__wbindgen_cast_7c316abdc43840a3 = function(arg0, arg1) { - // Cast intrinsic for `Ref(Slice(U32)) -> NamedExternref("Uint32Array")`. - const ret = getArrayU32FromWasm0(arg0, arg1); - return ret; - }; - imports.wbg.__wbindgen_cast_9575fb55a66c262b = function(arg0, arg1) { - // Cast intrinsic for `Ref(Slice(I32)) -> NamedExternref("Int32Array")`. - const ret = getArrayI32FromWasm0(arg0, arg1); - return ret; - }; - imports.wbg.__wbindgen_cast_bbb4883c6389f1de = function(arg0, arg1) { - // Cast intrinsic for `Ref(Slice(U16)) -> NamedExternref("Uint16Array")`. - const ret = getArrayU16FromWasm0(arg0, arg1); - return ret; - }; - imports.wbg.__wbindgen_cast_c3c78161a0a7fb91 = function(arg0, arg1) { - // Cast intrinsic for `Closure(Closure { dtor_idx: 805, function: Function { arguments: [], shim_idx: 808, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`. - const ret = makeMutClosure(arg0, arg1, 805, __wbg_adapter_12); - return ret; - }; - imports.wbg.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) { - // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`. - const ret = getArrayU8FromWasm0(arg0, arg1); - return ret; - }; - imports.wbg.__wbindgen_cast_cd07b1914aa3d62c = function(arg0, arg1) { - // Cast intrinsic for `Ref(Slice(F32)) -> NamedExternref("Float32Array")`. - const ret = getArrayF32FromWasm0(arg0, arg1); - return ret; - }; - imports.wbg.__wbindgen_cast_e47ceb6027f5c92c = function(arg0, arg1) { - // Cast intrinsic for `Ref(Slice(I16)) -> NamedExternref("Int16Array")`. - const ret = getArrayI16FromWasm0(arg0, arg1); - return ret; - }; - imports.wbg.__wbindgen_cast_f1316b7286a15faf = function(arg0, arg1) { - // Cast intrinsic for `Closure(Closure { dtor_idx: 916, function: Function { arguments: [Externref], shim_idx: 917, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`. - const ret = makeMutClosure(arg0, arg1, 916, __wbg_adapter_9); - return ret; - }; - imports.wbg.__wbindgen_cast_fe7c8c1dbf59e4c3 = function(arg0, arg1) { - // Cast intrinsic for `Closure(Closure { dtor_idx: 805, function: Function { arguments: [NamedExternref("Event")], shim_idx: 806, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`. - const ret = makeMutClosure(arg0, arg1, 805, __wbg_adapter_6); - return ret; - }; - imports.wbg.__wbindgen_cast_feefb5fadd6457fd = function(arg0, arg1) { - // Cast intrinsic for `Ref(Slice(I8)) -> NamedExternref("Int8Array")`. - const ret = getArrayI8FromWasm0(arg0, arg1); - return ret; - }; - imports.wbg.__wbindgen_init_externref_table = function() { - const table = wasm.__wbindgen_export_1; - const offset = table.grow(4); - table.set(0, undefined); - table.set(offset + 0, undefined); - table.set(offset + 1, null); - table.set(offset + 2, true); - table.set(offset + 3, false); - ; - }; - - return imports; - } - - function __wbg_init_memory(imports, memory) { - - } - - function __wbg_finalize_init(instance, module) { - wasm = instance.exports; - __wbg_init.__wbindgen_wasm_module = module; - cachedDataViewMemory0 = null; - cachedFloat32ArrayMemory0 = null; - cachedInt16ArrayMemory0 = null; - cachedInt32ArrayMemory0 = null; - cachedInt8ArrayMemory0 = null; - cachedUint16ArrayMemory0 = null; - cachedUint32ArrayMemory0 = null; - cachedUint8ArrayMemory0 = null; - - - wasm.__wbindgen_start(); - return wasm; - } - - function initSync(module) { - if (wasm !== undefined) return wasm; - - - if (typeof module !== 'undefined') { - if (Object.getPrototypeOf(module) === Object.prototype) { - ({module} = module) - } else { - console.warn('using deprecated parameters for `initSync()`; pass a single object instead') - } - } - - const imports = __wbg_get_imports(); - - __wbg_init_memory(imports); - - if (!(module instanceof WebAssembly.Module)) { - module = new WebAssembly.Module(module); - } - - const instance = new WebAssembly.Instance(module, imports); - - return __wbg_finalize_init(instance, module); - } - - async function __wbg_init(module_or_path) { - if (wasm !== undefined) return wasm; - - - if (typeof module_or_path !== 'undefined') { - if (Object.getPrototypeOf(module_or_path) === Object.prototype) { - ({module_or_path} = module_or_path) - } else { - console.warn('using deprecated parameters for the initialization function; pass a single object instead') - } - } - - if (typeof module_or_path === 'undefined' && typeof script_src !== 'undefined') { - module_or_path = script_src.replace(/\.js$/, '_bg.wasm'); - } - const imports = __wbg_get_imports(); - - if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) { - module_or_path = fetch(module_or_path); - } - - __wbg_init_memory(imports); - - const { instance, module } = await __wbg_load(await module_or_path, imports); - - return __wbg_finalize_init(instance, module); - } - - wasm_bindgen = Object.assign(__wbg_init, { initSync }, __exports); - -})(); diff --git a/reaction_systems_gui/docs/reaction_systems_gui_bg.wasm b/reaction_systems_gui/docs/reaction_systems_gui_bg.wasm deleted file mode 100644 index 9450cf2..0000000 Binary files a/reaction_systems_gui/docs/reaction_systems_gui_bg.wasm and /dev/null differ diff --git a/reaction_systems_gui/src/app.rs b/reaction_systems_gui/src/app.rs index 0370063..8e6a250 100644 --- a/reaction_systems_gui/src/app.rs +++ b/reaction_systems_gui/src/app.rs @@ -649,6 +649,12 @@ impl OutputsCache { self.invalidate_cache(&output_id); } } + + #[allow(dead_code)] + pub fn reset_cache(&mut self) { + let mut internals = self.internals.write().unwrap(); + *internals = CacheInternals::default(); + } } /// The graph 'global' state. @@ -1255,6 +1261,30 @@ impl eframe::App for AppHandle { } }); } + + #[cfg(debug_assertions)] + { + use eframe::egui::{PopupCloseBehavior, RectAlign}; + + let response = egui::Frame::group(ui.style()) + .show(ui, |ui| { + ui.set_max_height(20.); + ui.set_max_width(40.); + ui.vertical_centered(|ui| ui.button("Cache")).inner + }) + .inner; + egui::Popup::menu(&response) + .align(RectAlign::BOTTOM_END) + .gap(4.) + .close_behavior(PopupCloseBehavior::CloseOnClickOutside) + .id(egui::Id::new("cache")) + .show(|ui| { + if ui.button("Clear").clicked() { + self.user_state.cache.reset_cache(); + ui.close(); + } + }); + } }); }); diff --git a/reaction_systems_gui/src/app_logic.rs b/reaction_systems_gui/src/app_logic.rs index 12b4ad5..dbc04f2 100644 --- a/reaction_systems_gui/src/app_logic.rs +++ b/reaction_systems_gui/src/app_logic.rs @@ -27,6 +27,13 @@ pub fn evaluate_node( let mut to_ret = None; + #[cfg(debug_assertions)] + { + if !to_evaluate.is_empty() { + println!("evaluating nodes {:?}", to_evaluate); + } + } + // for each node to evaluate (in the correct order) finds the output and // populates the cache for node_id in to_evaluate {