diff options
| author | LLLL Colonq <llll@colonq> | 2026-08-29 05:42:58 -0400 |
|---|---|---|
| committer | LLLL Colonq <llll@colonq> | 2026-08-29 05:42:58 -0400 |
| commit | 58070f6c79c4dd5b3a32fea7d18a0acf8742f08b (patch) | |
| tree | 1a296c5ca9c4ad8124871d3fec4c8ab1b23c4291 | |
| parent | 761a3172bf4c15aed3836e4d1cd6f815b651b0e0 (diff) | |
| -rw-r--r-- | 2026/games/rpc2dot0/pkg/.gitignore | 1 | ||||
| -rw-r--r-- | 2026/games/rpc2dot0/pkg/README.md | 37 | ||||
| -rw-r--r-- | 2026/games/rpc2dot0/pkg/eatyourgreens.d.ts | 50 | ||||
| -rw-r--r-- | 2026/games/rpc2dot0/pkg/eatyourgreens.js | 1655 | ||||
| -rw-r--r-- | 2026/games/rpc2dot0/pkg/eatyourgreens_bg.wasm | bin | 0 -> 9226209 bytes | |||
| -rw-r--r-- | 2026/games/rpc2dot0/pkg/eatyourgreens_bg.wasm.d.ts | 20 | ||||
| -rw-r--r-- | 2026/games/rpc2dot0/pkg/package.json | 15 | ||||
| -rw-r--r-- | 2026/games/rpc2dot0/pkg/snippets/teleia-727bf4351691f1c8/src/helpers.js | 21 |
8 files changed, 1799 insertions, 0 deletions
diff --git a/2026/games/rpc2dot0/pkg/.gitignore b/2026/games/rpc2dot0/pkg/.gitignore new file mode 100644 index 0000000..f59ec20 --- /dev/null +++ b/2026/games/rpc2dot0/pkg/.gitignore @@ -0,0 +1 @@ +*
\ No newline at end of file diff --git a/2026/games/rpc2dot0/pkg/README.md b/2026/games/rpc2dot0/pkg/README.md new file mode 100644 index 0000000..a3f3bb4 --- /dev/null +++ b/2026/games/rpc2dot0/pkg/README.md @@ -0,0 +1,37 @@ +# Eat Your Greens!
+
+## What is it?
+"Eat Your Greens!" is a microgame for Lcolonq JAM 2026 event
+
+## How to play it :
+ - mouse (to click Heads)
+ - Optional : Up/left/down/right keys (to move disquette)
+
+## How to build it :
+ - `wasm-pack build --target web --release`
+ - `cp -r index.* pkg/ ../jam/2026/games/eatyourgreens/`
+ - you can debug by having fixed seed for reproduciable behaviour by
+ forcing the seed value in `src/random.rs`, `new(seed: usize)` function.
+ - also there a shit tone of logs in web console.
+
+## Game rules :
+
+### Main objective
+Survive the round and reach the required score target to win!
+
+### Basic scoring (Eating Greens)
+* **Eat Greens**: Click on **Green** entities to consume them. Each green gives you **+1 point**.
+* **Avoid the Rest**: Clicking on **it** will penalize you with **-1 point**.
+
+### Disquette & computer (optional)
+* There is a **Disquette** (floppy disk) bouncing around the screen.
+* You can take manual control of the disquette using your **Keyboard arrow keys**.
+* Steer the disquette into the **Computer** to plug it in.
+* Once inserted, use your mouse to click the **Power Button** on the computer to boot it up. This boots the computer (surprise) !
+
+### Hazards & Entity Rules
+* **Pac-Man Chasers (we call him mr Blue balls)**: Some **Blue** entities are actively hunting! If they catch and touch the disquette before you plug it into the computer, the disquette gets consumed and is gone for the rest of the round.
+* **Red Time Bombs**: **Red** entities have a 3-second countdown timer. If you don't click them to destroy them before the timer runs out, they will explode and **consume ALL Green entities** currently on the screen! *(clicking on them to disarm them still costs you -1 point).*
+* **Green Mutations**: If two **Green** entities bump into each other, they might undergo a bad reaction : one will turn **Yellow** and the other will turn **Red**.
+* **Red Collisions**: If two **Red** entities collide, they will blow each other up, but the explosion will also instantly kill the all green entities.
+* **Rogue Greens**: Be careful! Some Greens are fakes. If you hover your mouse near a "Rogue" Green, it will temporarily flash its true colors.
diff --git a/2026/games/rpc2dot0/pkg/eatyourgreens.d.ts b/2026/games/rpc2dot0/pkg/eatyourgreens.d.ts new file mode 100644 index 0000000..4d37684 --- /dev/null +++ b/2026/games/rpc2dot0/pkg/eatyourgreens.d.ts @@ -0,0 +1,50 @@ +/* tslint:disable */ +/* eslint-disable */ +export function main_js(is_embedded: boolean): void; +export function set_difficulty_js(difficulty: number): void; +export function receive_op_js(op: string): void; +export function get_result_display_delay_ms(): number; + +export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module; + +export interface InitOutput { + readonly memory: WebAssembly.Memory; + readonly get_result_display_delay_ms: () => number; + readonly main_js: (a: number) => void; + readonly receive_op_js: (a: number, b: number) => void; + readonly set_difficulty_js: (a: number) => void; + readonly __externref_table_alloc: () => number; + readonly __wbindgen_export_1: WebAssembly.Table; + readonly __wbindgen_exn_store: (a: number) => void; + readonly __wbindgen_malloc: (a: number, b: number) => number; + readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number; + readonly __wbindgen_free: (a: number, b: number, c: number) => void; + readonly __wbindgen_export_6: WebAssembly.Table; + readonly closure4_externref_shim: (a: number, b: number, c: any) => void; + readonly closure7_externref_shim: (a: number, b: number, c: any, d: any) => void; + readonly closure488_externref_shim: (a: number, b: number, c: any) => void; + readonly _dyn_core_34211b08701b9ee6___ops__function__FnMut_____Output______as_wasm_bindgen_2b4b1ea8acc7b00___closure__WasmClosure___describe__invoke______: (a: number, b: number) => void; + readonly closure564_externref_shim: (a: number, b: number, c: any) => void; + readonly __wbindgen_start: () => void; +} + +export type SyncInitInput = BufferSource | WebAssembly.Module; +/** +* Instantiates the given `module`, which can either be bytes or +* a precompiled `WebAssembly.Module`. +* +* @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated. +* +* @returns {InitOutput} +*/ +export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput; + +/** +* If `module_or_path` is {RequestInfo} or {URL}, makes a request and +* for everything else, calls `WebAssembly.instantiate` directly. +* +* @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated. +* +* @returns {Promise<InitOutput>} +*/ +export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>; diff --git a/2026/games/rpc2dot0/pkg/eatyourgreens.js b/2026/games/rpc2dot0/pkg/eatyourgreens.js new file mode 100644 index 0000000..6a489f1 --- /dev/null +++ b/2026/games/rpc2dot0/pkg/eatyourgreens.js @@ -0,0 +1,1655 @@ +import * as __wbg_star0 from './snippets/teleia-727bf4351691f1c8/src/helpers.js'; + +const lAudioContext = (typeof AudioContext !== 'undefined' ? AudioContext : (typeof webkitAudioContext !== 'undefined' ? webkitAudioContext : undefined)); +let wasm; + +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; +} + +const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } ); + +if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); }; + +let cachedUint8ArrayMemory0 = null; + +function getUint8ArrayMemory0() { + if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) { + cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer); + } + return cachedUint8ArrayMemory0; +} + +function getStringFromWasm0(ptr, len) { + ptr = ptr >>> 0; + return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, 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 = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } ); + +const encodeString = (typeof cachedTextEncoder.encodeInto === 'function' + ? function (arg, view) { + return cachedTextEncoder.encodeInto(arg, view); +} + : 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 = encodeString(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; +} + +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); +} + +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; +} + +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; +} +/** + * @param {boolean} is_embedded + */ +export function main_js(is_embedded) { + wasm.main_js(is_embedded); +} + +/** + * @param {number} difficulty + */ +export function set_difficulty_js(difficulty) { + wasm.set_difficulty_js(difficulty); +} + +/** + * @param {string} op + */ +export function receive_op_js(op) { + const ptr0 = passStringToWasm0(op, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); + const len0 = WASM_VECTOR_LEN; + wasm.receive_op_js(ptr0, len0); +} + +/** + * @returns {number} + */ +export function get_result_display_delay_ms() { + const ret = wasm.get_result_display_delay_ms(); + return ret; +} + +function __wbg_adapter_34(arg0, arg1, arg2) { + wasm.closure4_externref_shim(arg0, arg1, arg2); +} + +function __wbg_adapter_37(arg0, arg1, arg2, arg3) { + wasm.closure7_externref_shim(arg0, arg1, arg2, arg3); +} + +function __wbg_adapter_42(arg0, arg1, arg2) { + wasm.closure488_externref_shim(arg0, arg1, arg2); +} + +function __wbg_adapter_53(arg0, arg1) { + wasm._dyn_core_34211b08701b9ee6___ops__function__FnMut_____Output______as_wasm_bindgen_2b4b1ea8acc7b00___closure__WasmClosure___describe__invoke______(arg0, arg1); +} + +function __wbg_adapter_56(arg0, arg1, arg2) { + wasm.closure564_externref_shim(arg0, arg1, arg2); +} + +const __wbindgen_enum_ResizeObserverBoxOptions = ["border-box", "content-box", "device-pixel-content-box"]; + +const __wbindgen_enum_VisibilityState = ["hidden", "visible"]; + +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) { + if (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_Window_781446b33bfaba10 = function(arg0) { + const ret = arg0.Window; + return ret; + }; + imports.wbg.__wbg_abort_775ef1d17fc65868 = function(arg0) { + arg0.abort(); + }; + imports.wbg.__wbg_activeElement_367599fdfa7ad115 = function(arg0) { + const ret = arg0.activeElement; + return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); + }; + imports.wbg.__wbg_activeTexture_0f19d8acfa0a14c2 = function(arg0, arg1) { + arg0.activeTexture(arg1 >>> 0); + }; + imports.wbg.__wbg_activeTexture_460f2e367e813fb0 = function(arg0, arg1) { + arg0.activeTexture(arg1 >>> 0); + }; + imports.wbg.__wbg_addEventListener_90e553fdce254421 = function() { return handleError(function (arg0, arg1, arg2, arg3) { + arg0.addEventListener(getStringFromWasm0(arg1, arg2), arg3); + }, arguments) }; + imports.wbg.__wbg_addListener_2982bb811b6385c5 = function() { return handleError(function (arg0, arg1) { + arg0.addListener(arg1); + }, arguments) }; + imports.wbg.__wbg_altKey_c33c03aed82e4275 = function(arg0) { + const ret = arg0.altKey; + return ret; + }; + imports.wbg.__wbg_altKey_d7495666df921121 = function(arg0) { + const ret = arg0.altKey; + return ret; + }; + imports.wbg.__wbg_appendChild_8204974b7328bf98 = function() { return handleError(function (arg0, arg1) { + const ret = arg0.appendChild(arg1); + return ret; + }, arguments) }; + imports.wbg.__wbg_attachShader_3d4eb6af9e3e7bd1 = function(arg0, arg1, arg2) { + arg0.attachShader(arg1, arg2); + }; + imports.wbg.__wbg_attachShader_94e758c8b5283eb2 = function(arg0, arg1, arg2) { + arg0.attachShader(arg1, arg2); + }; + imports.wbg.__wbg_bindAttribLocation_40da4b3e84cc7bd5 = function(arg0, arg1, arg2, arg3, arg4) { + arg0.bindAttribLocation(arg1, arg2 >>> 0, getStringFromWasm0(arg3, arg4)); + }; + imports.wbg.__wbg_bindAttribLocation_ce2730e29976d230 = function(arg0, arg1, arg2, arg3, arg4) { + arg0.bindAttribLocation(arg1, arg2 >>> 0, getStringFromWasm0(arg3, arg4)); + }; + imports.wbg.__wbg_bindBuffer_309c9a6c21826cf5 = function(arg0, arg1, arg2) { + arg0.bindBuffer(arg1 >>> 0, arg2); + }; + imports.wbg.__wbg_bindBuffer_f32f587f1c2962a7 = function(arg0, arg1, arg2) { + arg0.bindBuffer(arg1 >>> 0, arg2); + }; + imports.wbg.__wbg_bindFramebuffer_bd02c8cc707d670f = function(arg0, arg1, arg2) { + arg0.bindFramebuffer(arg1 >>> 0, arg2); + }; + imports.wbg.__wbg_bindFramebuffer_e48e83c0f973944d = function(arg0, arg1, arg2) { + arg0.bindFramebuffer(arg1 >>> 0, arg2); + }; + imports.wbg.__wbg_bindRenderbuffer_53eedd88e52b4cb5 = function(arg0, arg1, arg2) { + arg0.bindRenderbuffer(arg1 >>> 0, arg2); + }; + imports.wbg.__wbg_bindRenderbuffer_55e205fecfddbb8c = function(arg0, arg1, arg2) { + arg0.bindRenderbuffer(arg1 >>> 0, arg2); + }; + imports.wbg.__wbg_bindTexture_a6e795697f49ebd1 = function(arg0, arg1, arg2) { + arg0.bindTexture(arg1 >>> 0, arg2); + }; + imports.wbg.__wbg_bindTexture_bc8eb316247f739d = function(arg0, arg1, arg2) { + arg0.bindTexture(arg1 >>> 0, arg2); + }; + imports.wbg.__wbg_bindVertexArrayOES_da8e7059b789629e = function(arg0, arg1) { + arg0.bindVertexArrayOES(arg1); + }; + imports.wbg.__wbg_bindVertexArray_6b4b88581064b71f = function(arg0, arg1) { + arg0.bindVertexArray(arg1); + }; + imports.wbg.__wbg_blendFunc_9454884a3cfd2911 = function(arg0, arg1, arg2) { + arg0.blendFunc(arg1 >>> 0, arg2 >>> 0); + }; + imports.wbg.__wbg_blendFunc_c3b74be5a39c665f = function(arg0, arg1, arg2) { + arg0.blendFunc(arg1 >>> 0, arg2 >>> 0); + }; + imports.wbg.__wbg_blockSize_1490803190b57a34 = function(arg0) { + const ret = arg0.blockSize; + return ret; + }; + imports.wbg.__wbg_body_942ea927546a04ba = function(arg0) { + const ret = arg0.body; + return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); + }; + imports.wbg.__wbg_bufferData_3261d3e1dd6fc903 = function(arg0, arg1, arg2, arg3) { + arg0.bufferData(arg1 >>> 0, arg2, arg3 >>> 0); + }; + imports.wbg.__wbg_bufferData_33c59bf909ea6fd3 = function(arg0, arg1, arg2, arg3) { + arg0.bufferData(arg1 >>> 0, arg2, arg3 >>> 0); + }; + imports.wbg.__wbg_buffer_09165b52af8c5237 = function(arg0) { + const ret = arg0.buffer; + return ret; + }; + imports.wbg.__wbg_buffer_609cc3eee51ed158 = function(arg0) { + const ret = arg0.buffer; + return ret; + }; + imports.wbg.__wbg_button_f75c56aec440ea04 = function(arg0) { + const ret = arg0.button; + return ret; + }; + imports.wbg.__wbg_buttons_b6346af6f04e4686 = function(arg0) { + const ret = arg0.buttons; + return ret; + }; + imports.wbg.__wbg_call_672a4d21634d4a24 = function() { return handleError(function (arg0, arg1) { + const ret = arg0.call(arg1); + return ret; + }, arguments) }; + imports.wbg.__wbg_call_7cccdd69e0791ae2 = function() { return handleError(function (arg0, arg1, arg2) { + const ret = arg0.call(arg1, arg2); + return ret; + }, arguments) }; + imports.wbg.__wbg_cancelAnimationFrame_089b48301c362fde = function() { return handleError(function (arg0, arg1) { + arg0.cancelAnimationFrame(arg1); + }, arguments) }; + imports.wbg.__wbg_cancelIdleCallback_669eb1ed294c8b8b = function(arg0, arg1) { + arg0.cancelIdleCallback(arg1 >>> 0); + }; + imports.wbg.__wbg_catch_a6e601879b2610e9 = function(arg0, arg1) { + const ret = arg0.catch(arg1); + return ret; + }; + imports.wbg.__wbg_checkFramebufferStatus_1aea9a28f6bc4fa6 = function(arg0, arg1) { + const ret = arg0.checkFramebufferStatus(arg1 >>> 0); + return ret; + }; + imports.wbg.__wbg_checkFramebufferStatus_6c0515b61b4291d5 = function(arg0, arg1) { + const ret = arg0.checkFramebufferStatus(arg1 >>> 0); + return ret; + }; + imports.wbg.__wbg_clearColor_d39507085c98a678 = function(arg0, arg1, arg2, arg3, arg4) { + arg0.clearColor(arg1, arg2, arg3, arg4); + }; + imports.wbg.__wbg_clearColor_f0fa029dfbcc1982 = function(arg0, arg1, arg2, arg3, arg4) { + arg0.clearColor(arg1, arg2, arg3, arg4); + }; + imports.wbg.__wbg_clearDepth_17cfee5be8476fae = function(arg0, arg1) { + arg0.clearDepth(arg1); + }; + imports.wbg.__wbg_clearDepth_670d19914a501259 = function(arg0, arg1) { + arg0.clearDepth(arg1); + }; + imports.wbg.__wbg_clearTimeout_b2651b7485c58446 = function(arg0, arg1) { + arg0.clearTimeout(arg1); + }; + imports.wbg.__wbg_clear_62b9037b892f6988 = function(arg0, arg1) { + arg0.clear(arg1 >>> 0); + }; + imports.wbg.__wbg_clear_f8d5f3c348d37d95 = function(arg0, arg1) { + arg0.clear(arg1 >>> 0); + }; + imports.wbg.__wbg_close_414b379454494b29 = function(arg0) { + arg0.close(); + }; + imports.wbg.__wbg_code_459c120478e1ab6e = function(arg0, arg1) { + const ret = arg1.code; + 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_compileShader_0ad770bbdbb9de21 = function(arg0, arg1) { + arg0.compileShader(arg1); + }; + imports.wbg.__wbg_compileShader_2307c9d370717dd5 = function(arg0, arg1) { + arg0.compileShader(arg1); + }; + imports.wbg.__wbg_connect_b22945d106632a36 = function() { return handleError(function (arg0, arg1) { + const ret = arg0.connect(arg1); + return ret; + }, arguments) }; + imports.wbg.__wbg_contains_3361c7eda6c95afd = function(arg0, arg1) { + const ret = arg0.contains(arg1); + return ret; + }; + imports.wbg.__wbg_contentRect_81407eb60e52248f = function(arg0) { + const ret = arg0.contentRect; + return ret; + }; + imports.wbg.__wbg_createBufferSource_f7860a96f709acbd = function() { return handleError(function (arg0) { + const ret = arg0.createBufferSource(); + return ret; + }, arguments) }; + imports.wbg.__wbg_createBuffer_7a9ec3d654073660 = function(arg0) { + const ret = arg0.createBuffer(); + return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); + }; + imports.wbg.__wbg_createBuffer_9886e84a67b68c89 = function(arg0) { + const ret = arg0.createBuffer(); + return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); + }; + imports.wbg.__wbg_createElement_8c9931a732ee2fea = function() { return handleError(function (arg0, arg1, arg2) { + const ret = arg0.createElement(getStringFromWasm0(arg1, arg2)); + return ret; + }, arguments) }; + imports.wbg.__wbg_createFramebuffer_7824f69bba778885 = function(arg0) { + const ret = arg0.createFramebuffer(); + return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); + }; + imports.wbg.__wbg_createFramebuffer_c8d70ebc4858051e = function(arg0) { + const ret = arg0.createFramebuffer(); + return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); + }; + imports.wbg.__wbg_createGain_3f9db7a6e248669f = function() { return handleError(function (arg0) { + const ret = arg0.createGain(); + return ret; + }, arguments) }; + imports.wbg.__wbg_createObjectURL_6e98d2f9c7bd9764 = function() { return handleError(function (arg0, arg1) { + const ret = URL.createObjectURL(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); + }, arguments) }; + imports.wbg.__wbg_createProgram_8ff56c485f3233d0 = function(arg0) { + const ret = arg0.createProgram(); + return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); + }; + imports.wbg.__wbg_createProgram_da203074cafb1038 = function(arg0) { + const ret = arg0.createProgram(); + return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); + }; + imports.wbg.__wbg_createRenderbuffer_d88aa9403faa38ea = function(arg0) { + const ret = arg0.createRenderbuffer(); + return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); + }; + imports.wbg.__wbg_createRenderbuffer_fd347ae14f262eaa = function(arg0) { + const ret = arg0.createRenderbuffer(); + return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); + }; + imports.wbg.__wbg_createShader_4a256a8cc9c1ce4f = function(arg0, arg1) { + const ret = arg0.createShader(arg1 >>> 0); + return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); + }; + imports.wbg.__wbg_createShader_983150fb1243ee56 = function(arg0, arg1) { + const ret = arg0.createShader(arg1 >>> 0); + return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); + }; + imports.wbg.__wbg_createTexture_9c536c79b635fdef = function(arg0) { + const ret = arg0.createTexture(); + return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); + }; + imports.wbg.__wbg_createTexture_bfaa54c0cd22e367 = function(arg0) { + const ret = arg0.createTexture(); + return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); + }; + imports.wbg.__wbg_createVertexArrayOES_991b44f100f93329 = function(arg0) { + const ret = arg0.createVertexArrayOES(); + return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); + }; + imports.wbg.__wbg_createVertexArray_e435029ae2660efd = function(arg0) { + const ret = arg0.createVertexArray(); + return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); + }; + imports.wbg.__wbg_crypto_86f2631e91b51511 = function(arg0) { + const ret = arg0.crypto; + return ret; + }; + imports.wbg.__wbg_ctrlKey_1e826e468105ac11 = function(arg0) { + const ret = arg0.ctrlKey; + return ret; + }; + imports.wbg.__wbg_ctrlKey_cdbe8154dfb00d1f = function(arg0) { + const ret = arg0.ctrlKey; + return ret; + }; + imports.wbg.__wbg_cullFace_187079e6e20a464d = function(arg0, arg1) { + arg0.cullFace(arg1 >>> 0); + }; + imports.wbg.__wbg_cullFace_fbae6dd4d5e61ba4 = function(arg0, arg1) { + arg0.cullFace(arg1 >>> 0); + }; + imports.wbg.__wbg_currentTime_adef4d803f58eb66 = function(arg0) { + const ret = arg0.currentTime; + return ret; + }; + imports.wbg.__wbg_debug_3cb59063b29f58c1 = function(arg0) { + console.debug(arg0); + }; + imports.wbg.__wbg_decodeAudioData_5709e23dfcdd5ad0 = function() { return handleError(function (arg0, arg1) { + const ret = arg0.decodeAudioData(arg1); + return ret; + }, arguments) }; + imports.wbg.__wbg_defaultView_51f191496dcfd54e = function(arg0) { + const ret = arg0.defaultView; + return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); + }; + imports.wbg.__wbg_deleteShader_8d42f169deda58ac = function(arg0, arg1) { + arg0.deleteShader(arg1); + }; + imports.wbg.__wbg_deleteShader_c65a44796c5004d8 = function(arg0, arg1) { + arg0.deleteShader(arg1); + }; + imports.wbg.__wbg_deltaMode_9bfd9fe3f6b4b240 = function(arg0) { + const ret = arg0.deltaMode; + return ret; + }; + imports.wbg.__wbg_deltaX_5c1121715746e4b7 = function(arg0) { + const ret = arg0.deltaX; + return ret; + }; + imports.wbg.__wbg_deltaY_f9318542caea0c36 = function(arg0) { + const ret = arg0.deltaY; + return ret; + }; + imports.wbg.__wbg_depthFunc_2906916f4536d5d7 = function(arg0, arg1) { + arg0.depthFunc(arg1 >>> 0); + }; + imports.wbg.__wbg_depthFunc_f34449ae87cc4e3e = function(arg0, arg1) { + arg0.depthFunc(arg1 >>> 0); + }; + imports.wbg.__wbg_destination_6400091abd6f01b3 = function(arg0) { + const ret = arg0.destination; + return ret; + }; + imports.wbg.__wbg_detachShader_ab39d8a19811cfa6 = function(arg0, arg1, arg2) { + arg0.detachShader(arg1, arg2); + }; + imports.wbg.__wbg_detachShader_cd3ab294e635ff90 = function(arg0, arg1, arg2) { + arg0.detachShader(arg1, arg2); + }; + imports.wbg.__wbg_devicePixelContentBoxSize_a6de82cb30d70825 = function(arg0) { + const ret = arg0.devicePixelContentBoxSize; + return ret; + }; + imports.wbg.__wbg_devicePixelRatio_68c391265f05d093 = function(arg0) { + const ret = arg0.devicePixelRatio; + return ret; + }; + imports.wbg.__wbg_disconnect_2118016d75479985 = function(arg0) { + arg0.disconnect(); + }; + imports.wbg.__wbg_disconnect_ac3f4ba550970c76 = function(arg0) { + arg0.disconnect(); + }; + imports.wbg.__wbg_document_d249400bd7bd996d = function(arg0) { + const ret = arg0.document; + return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); + }; + imports.wbg.__wbg_drawBuffersWEBGL_9fdbdf3d4cbd3aae = function(arg0, arg1) { + arg0.drawBuffersWEBGL(arg1); + }; + imports.wbg.__wbg_drawBuffers_e729b75c5a50d760 = function(arg0, arg1) { + arg0.drawBuffers(arg1); + }; + imports.wbg.__wbg_drawElements_16199ef1cc58b16a = function(arg0, arg1, arg2, arg3, arg4) { + arg0.drawElements(arg1 >>> 0, arg2, arg3 >>> 0, arg4); + }; + imports.wbg.__wbg_drawElements_65cb4b099bd7d4ac = function(arg0, arg1, arg2, arg3, arg4) { + arg0.drawElements(arg1 >>> 0, arg2, arg3 >>> 0, arg4); + }; + imports.wbg.__wbg_enableVertexAttribArray_607be07574298e5e = function(arg0, arg1) { + arg0.enableVertexAttribArray(arg1 >>> 0); + }; + imports.wbg.__wbg_enableVertexAttribArray_93c3d406a41ad6c7 = function(arg0, arg1) { + arg0.enableVertexAttribArray(arg1 >>> 0); + }; + imports.wbg.__wbg_enable_51114837e05ee280 = function(arg0, arg1) { + arg0.enable(arg1 >>> 0); + }; + imports.wbg.__wbg_enable_d183fef39258803f = function(arg0, arg1) { + arg0.enable(arg1 >>> 0); + }; + imports.wbg.__wbg_error_1004b8c64097413f = function(arg0, arg1) { + console.error(arg0, arg1); + }; + imports.wbg.__wbg_error_524f506f44df1645 = function(arg0) { + console.error(arg0); + }; + imports.wbg.__wbg_error_7534b8e9a36f1ab4 = 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_focus_7d08b55eba7b368d = function() { return handleError(function (arg0) { + arg0.focus(); + }, arguments) }; + imports.wbg.__wbg_framebufferRenderbuffer_2fdd12e89ad81eb9 = function(arg0, arg1, arg2, arg3, arg4) { + arg0.framebufferRenderbuffer(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4); + }; + imports.wbg.__wbg_framebufferRenderbuffer_8b88592753b54715 = function(arg0, arg1, arg2, arg3, arg4) { + arg0.framebufferRenderbuffer(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4); + }; + imports.wbg.__wbg_framebufferTexture2D_81a565732bd5d8fe = function(arg0, arg1, arg2, arg3, arg4, arg5) { + arg0.framebufferTexture2D(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4, arg5); + }; + imports.wbg.__wbg_framebufferTexture2D_ed855d0b097c557a = function(arg0, arg1, arg2, arg3, arg4, arg5) { + arg0.framebufferTexture2D(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4, arg5); + }; + imports.wbg.__wbg_fullscreenElement_a2f691b04c3b3de5 = function(arg0) { + const ret = arg0.fullscreenElement; + return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); + }; + imports.wbg.__wbg_gain_a9e77ad6f0f8f187 = function(arg0) { + const ret = arg0.gain; + return ret; + }; + imports.wbg.__wbg_generateMipmap_13d3d6406de35b14 = function(arg0, arg1) { + arg0.generateMipmap(arg1 >>> 0); + }; + imports.wbg.__wbg_generateMipmap_e3b21a330b500089 = function(arg0, arg1) { + arg0.generateMipmap(arg1 >>> 0); + }; + imports.wbg.__wbg_getActiveUniform_3c49cb0b185d71e0 = function(arg0, arg1, arg2) { + const ret = arg0.getActiveUniform(arg1, arg2 >>> 0); + return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); + }; + imports.wbg.__wbg_getActiveUniform_999b2093d93c3d0e = function(arg0, arg1, arg2) { + const ret = arg0.getActiveUniform(arg1, arg2 >>> 0); + return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); + }; + imports.wbg.__wbg_getCoalescedEvents_a7d49de30111f6b8 = function(arg0) { + const ret = arg0.getCoalescedEvents(); + return ret; + }; + imports.wbg.__wbg_getCoalescedEvents_c7e4ef019798f464 = function(arg0) { + const ret = arg0.getCoalescedEvents; + return ret; + }; + imports.wbg.__wbg_getComputedStyle_046dd6472f8e7f1d = function() { return handleError(function (arg0, arg1) { + const ret = arg0.getComputedStyle(arg1); + return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); + }, arguments) }; + imports.wbg.__wbg_getContext_e9cf379449413580 = function() { return handleError(function (arg0, arg1, arg2) { + const ret = arg0.getContext(getStringFromWasm0(arg1, arg2)); + return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); + }, arguments) }; + imports.wbg.__wbg_getElementById_f827f0d6648718a8 = function(arg0, arg1, arg2) { + const ret = arg0.getElementById(getStringFromWasm0(arg1, arg2)); + return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); + }; + imports.wbg.__wbg_getExtension_ff0fb1398bcf28c3 = function() { return handleError(function (arg0, arg1, arg2) { + const ret = arg0.getExtension(getStringFromWasm0(arg1, arg2)); + return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); + }, arguments) }; + imports.wbg.__wbg_getOwnPropertyDescriptor_9dd936a3c0cbd368 = function(arg0, arg1) { + const ret = Object.getOwnPropertyDescriptor(arg0, arg1); + return ret; + }; + imports.wbg.__wbg_getParameter_e3429f024018310f = function() { return handleError(function (arg0, arg1) { + const ret = arg0.getParameter(arg1 >>> 0); + return ret; + }, arguments) }; + imports.wbg.__wbg_getProgramInfoLog_631c180b1b21c8ed = 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_a998105a680059db = 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_0c411f0cd4185c5b = function(arg0, arg1, arg2) { + const ret = arg0.getProgramParameter(arg1, arg2 >>> 0); + return ret; + }; + imports.wbg.__wbg_getProgramParameter_360f95ff07ac068d = function(arg0, arg1, arg2) { + const ret = arg0.getProgramParameter(arg1, arg2 >>> 0); + return ret; + }; + imports.wbg.__wbg_getPropertyValue_e623c23a05dfb30c = 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_b3f15fcbfabb0f8b = function() { return handleError(function (arg0, arg1) { + arg0.getRandomValues(arg1); + }, arguments) }; + imports.wbg.__wbg_getShaderInfoLog_7e7b38fb910ec534 = 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_f59c3112acc6e039 = 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_511b5f929074fa31 = function(arg0, arg1, arg2) { + const ret = arg0.getShaderParameter(arg1, arg2 >>> 0); + return ret; + }; + imports.wbg.__wbg_getShaderParameter_6dbe0b8558dc41fd = function(arg0, arg1, arg2) { + const ret = arg0.getShaderParameter(arg1, arg2 >>> 0); + return ret; + }; + imports.wbg.__wbg_getSupportedExtensions_8c007dbb54905635 = function(arg0) { + const ret = arg0.getSupportedExtensions(); + return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); + }; + imports.wbg.__wbg_getUniformLocation_657a2b6d102bd126 = function(arg0, arg1, arg2, arg3) { + const ret = arg0.getUniformLocation(arg1, getStringFromWasm0(arg2, arg3)); + return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); + }; + imports.wbg.__wbg_getUniformLocation_838363001c74dc21 = function(arg0, arg1, arg2, arg3) { + const ret = arg0.getUniformLocation(arg1, getStringFromWasm0(arg2, arg3)); + return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); + }; + imports.wbg.__wbg_get_b9b93047fe3cf45b = function(arg0, arg1) { + const ret = arg0[arg1 >>> 0]; + return ret; + }; + imports.wbg.__wbg_height_1f8226c8f6875110 = function(arg0) { + const ret = arg0.height; + return ret; + }; + imports.wbg.__wbg_info_3daf2e093e091b66 = function(arg0) { + console.info(arg0); + }; + imports.wbg.__wbg_inlineSize_8ff96b3ec1b24423 = function(arg0) { + const ret = arg0.inlineSize; + return ret; + }; + imports.wbg.__wbg_innerHeight_05f4225d754a7929 = function() { return handleError(function (arg0) { + const ret = arg0.innerHeight; + return ret; + }, arguments) }; + imports.wbg.__wbg_innerWidth_7e0498dbd876d498 = function() { return handleError(function (arg0) { + const ret = arg0.innerWidth; + return ret; + }, arguments) }; + imports.wbg.__wbg_instanceof_HtmlCanvasElement_2ea67072a7624ac5 = function(arg0) { + let result; + try { + result = arg0 instanceof HTMLCanvasElement; + } catch (_) { + result = false; + } + const ret = result; + return ret; + }; + imports.wbg.__wbg_instanceof_WebGl2RenderingContext_2b6045efeb76568d = function(arg0) { + let result; + try { + result = arg0 instanceof WebGL2RenderingContext; + } catch (_) { + result = false; + } + const ret = result; + return ret; + }; + imports.wbg.__wbg_instanceof_Window_def73ea0955fc569 = function(arg0) { + let result; + try { + result = arg0 instanceof Window; + } catch (_) { + result = false; + } + const ret = result; + return ret; + }; + imports.wbg.__wbg_isIntersecting_e68706dac9c5f2e9 = function(arg0) { + const ret = arg0.isIntersecting; + return ret; + }; + imports.wbg.__wbg_is_c7481c65e7e5df9e = function(arg0, arg1) { + const ret = Object.is(arg0, arg1); + return ret; + }; + imports.wbg.__wbg_key_7b5c6cb539be8e13 = 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_length_e2d2a49132c1b256 = function(arg0) { + const ret = arg0.length; + return ret; + }; + imports.wbg.__wbg_linkProgram_067ee06739bdde81 = function(arg0, arg1) { + arg0.linkProgram(arg1); + }; + imports.wbg.__wbg_linkProgram_e002979fe36e5b2a = function(arg0, arg1) { + arg0.linkProgram(arg1); + }; + imports.wbg.__wbg_location_9b435486be8f98c2 = function(arg0) { + const ret = arg0.location; + return ret; + }; + imports.wbg.__wbg_log_0cc1b7768397bcfe = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) { + let deferred0_0; + let deferred0_1; + try { + deferred0_0 = arg0; + deferred0_1 = arg1; + console.log(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3), getStringFromWasm0(arg4, arg5), getStringFromWasm0(arg6, arg7)); + } finally { + wasm.__wbindgen_free(deferred0_0, deferred0_1, 1); + } + }; + imports.wbg.__wbg_log_c222819a41e063d3 = function(arg0) { + console.log(arg0); + }; + imports.wbg.__wbg_log_cb9e190acc5753fb = function(arg0, arg1) { + let deferred0_0; + let deferred0_1; + try { + deferred0_0 = arg0; + deferred0_1 = arg1; + console.log(getStringFromWasm0(arg0, arg1)); + } finally { + wasm.__wbindgen_free(deferred0_0, deferred0_1, 1); + } + }; + imports.wbg.__wbg_mark_7438147ce31e9d4b = function(arg0, arg1) { + performance.mark(getStringFromWasm0(arg0, arg1)); + }; + imports.wbg.__wbg_matchMedia_bf8807a841d930c1 = 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_e9ca73fbf8a3a104 = function(arg0) { + const ret = arg0.matches; + return ret; + }; + imports.wbg.__wbg_measure_fb7825c11612c823 = function() { return handleError(function (arg0, arg1, arg2, arg3) { + let deferred0_0; + let deferred0_1; + let deferred1_0; + let deferred1_1; + try { + deferred0_0 = arg0; + deferred0_1 = arg1; + deferred1_0 = arg2; + deferred1_1 = arg3; + performance.measure(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3)); + } finally { + wasm.__wbindgen_free(deferred0_0, deferred0_1, 1); + wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); + } + }, arguments) }; + imports.wbg.__wbg_media_552eec81313ef78b = function(arg0, arg1) { + const ret = arg1.media; + 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_metaKey_0b25f7848e014cc8 = function(arg0) { + const ret = arg0.metaKey; + return ret; + }; + imports.wbg.__wbg_metaKey_e1dd47d709a80ce5 = function(arg0) { + const ret = arg0.metaKey; + return ret; + }; + imports.wbg.__wbg_movementX_1aa05f864931369b = function(arg0) { + const ret = arg0.movementX; + return ret; + }; + imports.wbg.__wbg_movementY_8acfedb38a70e624 = function(arg0) { + const ret = arg0.movementY; + return ret; + }; + imports.wbg.__wbg_msCrypto_d562bbe83e0d4b91 = function(arg0) { + const ret = arg0.msCrypto; + return ret; + }; + imports.wbg.__wbg_name_f5089a8a6c7a983a = 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_new_18b1151f3a6a9280 = function() { return handleError(function (arg0) { + const ret = new IntersectionObserver(arg0); + return ret; + }, arguments) }; + imports.wbg.__wbg_new_24b2c5b645cded8d = function() { return handleError(function () { + const ret = new MessageChannel(); + return ret; + }, arguments) }; + imports.wbg.__wbg_new_405e22f390576ce2 = function() { + const ret = new Object(); + return ret; + }; + imports.wbg.__wbg_new_4b3dfb29a594e831 = function() { return handleError(function () { + const ret = new lAudioContext(); + return ret; + }, arguments) }; + imports.wbg.__wbg_new_5f34cc0c99fcc488 = function() { return handleError(function (arg0) { + const ret = new ResizeObserver(arg0); + return ret; + }, arguments) }; + imports.wbg.__wbg_new_8a6f238a6ece86ea = function() { + const ret = new Error(); + return ret; + }; + imports.wbg.__wbg_new_a12002a7f91c75be = function(arg0) { + const ret = new Uint8Array(arg0); + return ret; + }; + imports.wbg.__wbg_new_e25e5aab09ff45db = function() { return handleError(function () { + const ret = new AbortController(); + return ret; + }, arguments) }; + imports.wbg.__wbg_newnoargs_105ed471475aaf50 = function(arg0, arg1) { + const ret = new Function(getStringFromWasm0(arg0, arg1)); + return ret; + }; + imports.wbg.__wbg_newwithbyteoffsetandlength_840f3c038856d4e9 = function(arg0, arg1, arg2) { + const ret = new Int8Array(arg0, arg1 >>> 0, arg2 >>> 0); + return ret; + }; + imports.wbg.__wbg_newwithbyteoffsetandlength_999332a180064b59 = function(arg0, arg1, arg2) { + const ret = new Int32Array(arg0, arg1 >>> 0, arg2 >>> 0); + return ret; + }; + imports.wbg.__wbg_newwithbyteoffsetandlength_d4a86622320ea258 = function(arg0, arg1, arg2) { + const ret = new Uint16Array(arg0, arg1 >>> 0, arg2 >>> 0); + return ret; + }; + imports.wbg.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a = function(arg0, arg1, arg2) { + const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0); + return ret; + }; + imports.wbg.__wbg_newwithbyteoffsetandlength_e6b7e69acd4c7354 = function(arg0, arg1, arg2) { + const ret = new Float32Array(arg0, arg1 >>> 0, arg2 >>> 0); + return ret; + }; + imports.wbg.__wbg_newwithbyteoffsetandlength_f1dead44d1fc7212 = function(arg0, arg1, arg2) { + const ret = new Uint32Array(arg0, arg1 >>> 0, arg2 >>> 0); + return ret; + }; + imports.wbg.__wbg_newwithbyteoffsetandlength_f254047f7e80e7ff = function(arg0, arg1, arg2) { + const ret = new Int16Array(arg0, arg1 >>> 0, arg2 >>> 0); + return ret; + }; + imports.wbg.__wbg_newwithlength_a381634e90c276d4 = function(arg0) { + const ret = new Uint8Array(arg0 >>> 0); + return ret; + }; + imports.wbg.__wbg_newwithu8arraysequenceandoptions_068570c487f69127 = function() { return handleError(function (arg0, arg1) { + const ret = new Blob(arg0, arg1); + return ret; + }, arguments) }; + imports.wbg.__wbg_node_e1f24f89a7336c2e = function(arg0) { + const ret = arg0.node; + return ret; + }; + imports.wbg.__wbg_now_6f91d421b96ea22a = function(arg0) { + const ret = arg0.now(); + return ret; + }; + imports.wbg.__wbg_now_807e54c39636c349 = function() { + const ret = Date.now(); + return ret; + }; + imports.wbg.__wbg_now_d18023d54d4e5500 = function(arg0) { + const ret = arg0.now(); + return ret; + }; + imports.wbg.__wbg_observe_d2e7378f15f7ca72 = function(arg0, arg1) { + arg0.observe(arg1); + }; + imports.wbg.__wbg_observe_eafddfc5a0c60e02 = function(arg0, arg1) { + arg0.observe(arg1); + }; + imports.wbg.__wbg_observe_ed4adb1c245103c5 = function(arg0, arg1, arg2) { + arg0.observe(arg1, arg2); + }; + imports.wbg.__wbg_of_2eaf5a02d443ef03 = function(arg0) { + const ret = Array.of(arg0); + return ret; + }; + imports.wbg.__wbg_offsetX_cca22992ada210f2 = function(arg0) { + const ret = arg0.offsetX; + return ret; + }; + imports.wbg.__wbg_offsetY_5e3fcf9de68b3a1e = function(arg0) { + const ret = arg0.offsetY; + return ret; + }; + imports.wbg.__wbg_onpointerrawupdate_d7e65c280dee45ba = function(arg0) { + const ret = arg0.onpointerrawupdate; + return ret; + }; + imports.wbg.__wbg_parent_ac72de2e193460fd = function() { return handleError(function (arg0) { + const ret = arg0.parent; + return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); + }, arguments) }; + imports.wbg.__wbg_performance_c185c0cdc2766575 = function(arg0) { + const ret = arg0.performance; + return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); + }; + imports.wbg.__wbg_performance_f71bd4abe0370171 = function(arg0) { + const ret = arg0.performance; + return ret; + }; + imports.wbg.__wbg_persisted_d32ce73b8e522062 = function(arg0) { + const ret = arg0.persisted; + return ret; + }; + imports.wbg.__wbg_pointerId_585e63ee80a49927 = function(arg0) { + const ret = arg0.pointerId; + return ret; + }; + imports.wbg.__wbg_pointerType_6bd934aa20d9db49 = function(arg0, arg1) { + const ret = arg1.pointerType; + 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_port1_70af0ea6e4a96f9d = function(arg0) { + const ret = arg0.port1; + return ret; + }; + imports.wbg.__wbg_port2_0584c7f0938b6fe6 = function(arg0) { + const ret = arg0.port2; + return ret; + }; + imports.wbg.__wbg_postMessage_8c0100a70b86428f = function() { return handleError(function (arg0, arg1, arg2, arg3) { + arg0.postMessage(arg1, getStringFromWasm0(arg2, arg3)); + }, arguments) }; + imports.wbg.__wbg_postMessage_e55d059efb191dc5 = function() { return handleError(function (arg0, arg1) { + arg0.postMessage(arg1); + }, arguments) }; + imports.wbg.__wbg_postTask_076eee2dd6ca2f6c = function(arg0, arg1, arg2) { + const ret = arg0.postTask(arg1, arg2); + return ret; + }; + imports.wbg.__wbg_pressure_adda5a83a9cec94d = function(arg0) { + const ret = arg0.pressure; + return ret; + }; + imports.wbg.__wbg_preventDefault_c2314fd813c02b3c = function(arg0) { + arg0.preventDefault(); + }; + imports.wbg.__wbg_process_3975fd6c72f520aa = function(arg0) { + const ret = arg0.process; + return ret; + }; + imports.wbg.__wbg_prototype_cd41f5789d244756 = function() { + const ret = ResizeObserverEntry.prototype; + return ret; + }; + imports.wbg.__wbg_queueMicrotask_97d92b4fcc8a61c5 = function(arg0) { + queueMicrotask(arg0); + }; + imports.wbg.__wbg_queueMicrotask_d3219def82552485 = function(arg0) { + const ret = arg0.queueMicrotask; + return ret; + }; + imports.wbg.__wbg_randomFillSync_f8c153b79f285817 = function() { return handleError(function (arg0, arg1) { + arg0.randomFillSync(arg1); + }, arguments) }; + imports.wbg.__wbg_removeEventListener_056dfe8c3d6c58f9 = function() { return handleError(function (arg0, arg1, arg2, arg3) { + arg0.removeEventListener(getStringFromWasm0(arg1, arg2), arg3); + }, arguments) }; + imports.wbg.__wbg_removeListener_e55db581b73ccf65 = function() { return handleError(function (arg0, arg1) { + arg0.removeListener(arg1); + }, arguments) }; + imports.wbg.__wbg_removeProperty_0e85471f4dfc00ae = function() { return handleError(function (arg0, arg1, arg2, arg3) { + const ret = arg1.removeProperty(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_renderbufferStorage_73e01ea83b8afab4 = function(arg0, arg1, arg2, arg3, arg4) { + arg0.renderbufferStorage(arg1 >>> 0, arg2 >>> 0, arg3, arg4); + }; + imports.wbg.__wbg_renderbufferStorage_f010012bd3566942 = function(arg0, arg1, arg2, arg3, arg4) { + arg0.renderbufferStorage(arg1 >>> 0, arg2 >>> 0, arg3, arg4); + }; + imports.wbg.__wbg_repeat_1882aa0d0072c705 = function(arg0) { + const ret = arg0.repeat; + return ret; + }; + imports.wbg.__wbg_requestAnimationFrame_d7fd890aaefc3246 = function() { return handleError(function (arg0, arg1) { + const ret = arg0.requestAnimationFrame(arg1); + return ret; + }, arguments) }; + imports.wbg.__wbg_requestFullscreen_1c019906e2b813ce = function(arg0) { + const ret = arg0.requestFullscreen; + return ret; + }; + imports.wbg.__wbg_requestFullscreen_84eb00d7fc5c44f7 = function(arg0) { + const ret = arg0.requestFullscreen(); + return ret; + }; + imports.wbg.__wbg_requestIdleCallback_2d7168fc01a73f5c = function(arg0) { + const ret = arg0.requestIdleCallback; + return ret; + }; + imports.wbg.__wbg_requestIdleCallback_e3eefd34962470e1 = function() { return handleError(function (arg0, arg1) { + const ret = arg0.requestIdleCallback(arg1); + return ret; + }, arguments) }; + imports.wbg.__wbg_require_b74f47fc2d022fd6 = function() { return handleError(function () { + const ret = module.require; + return ret; + }, arguments) }; + imports.wbg.__wbg_resolve_4851785c9c5f573d = function(arg0) { + const ret = Promise.resolve(arg0); + return ret; + }; + imports.wbg.__wbg_scheduler_344ff4a7a89e57fa = function(arg0) { + const ret = arg0.scheduler; + return ret; + }; + imports.wbg.__wbg_scheduler_dfc2a492974786a1 = function(arg0) { + const ret = arg0.scheduler; + return ret; + }; + imports.wbg.__wbg_setAttribute_2704501201f15687 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) { + arg0.setAttribute(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4)); + }, arguments) }; + imports.wbg.__wbg_setPointerCapture_c04dafaf4d00ffad = function() { return handleError(function (arg0, arg1) { + arg0.setPointerCapture(arg1); + }, arguments) }; + imports.wbg.__wbg_setProperty_f2cf326652b9a713 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) { + arg0.setProperty(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4)); + }, arguments) }; + imports.wbg.__wbg_setTimeout_461fec76662b35ea = function() { return handleError(function (arg0, arg1) { + const ret = arg0.setTimeout(arg1); + return ret; + }, arguments) }; + imports.wbg.__wbg_setTimeout_f2fe5af8e3debeb3 = function() { return handleError(function (arg0, arg1, arg2) { + const ret = arg0.setTimeout(arg1, arg2); + return ret; + }, arguments) }; + imports.wbg.__wbg_setValueAtTime_a5524bd9d9e529c4 = function() { return handleError(function (arg0, arg1, arg2) { + const ret = arg0.setValueAtTime(arg1, arg2); + return ret; + }, arguments) }; + imports.wbg.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) { + arg0[arg1] = arg2; + }; + imports.wbg.__wbg_set_65595bdd868b3009 = function(arg0, arg1, arg2) { + arg0.set(arg1, arg2 >>> 0); + }; + imports.wbg.__wbg_set_bb8cecf6a62b9f46 = function() { return handleError(function (arg0, arg1, arg2) { + const ret = Reflect.set(arg0, arg1, arg2); + return ret; + }, arguments) }; + imports.wbg.__wbg_setbox_2786f3ccea97cac4 = function(arg0, arg1) { + arg0.box = __wbindgen_enum_ResizeObserverBoxOptions[arg1]; + }; + imports.wbg.__wbg_setbuffer_10a9ee2a05c73896 = function(arg0, arg1) { + arg0.buffer = arg1; + }; + imports.wbg.__wbg_setheight_da683a33fa99843c = function(arg0, arg1) { + arg0.height = arg1 >>> 0; + }; + imports.wbg.__wbg_setloopEnd_b5a89ef0b3002541 = function(arg0, arg1) { + arg0.loopEnd = arg1; + }; + imports.wbg.__wbg_setloopStart_3c8a8becebd127f0 = function(arg0, arg1) { + arg0.loopStart = arg1; + }; + imports.wbg.__wbg_setloop_6114bf6d45b0e550 = function(arg0, arg1) { + arg0.loop = arg1 !== 0; + }; + imports.wbg.__wbg_setonmessage_23d122da701b8ddb = function(arg0, arg1) { + arg0.onmessage = arg1; + }; + imports.wbg.__wbg_settype_39ed370d3edd403c = function(arg0, arg1, arg2) { + arg0.type = getStringFromWasm0(arg1, arg2); + }; + imports.wbg.__wbg_setwidth_c5fed9f5e7f0b406 = function(arg0, arg1) { + arg0.width = arg1 >>> 0; + }; + imports.wbg.__wbg_shaderSource_72d3e8597ef85b67 = function(arg0, arg1, arg2, arg3) { + arg0.shaderSource(arg1, getStringFromWasm0(arg2, arg3)); + }; + imports.wbg.__wbg_shaderSource_ad0087e637a35191 = function(arg0, arg1, arg2, arg3) { + arg0.shaderSource(arg1, getStringFromWasm0(arg2, arg3)); + }; + imports.wbg.__wbg_shiftKey_2bebb3b703254f47 = function(arg0) { + const ret = arg0.shiftKey; + return ret; + }; + imports.wbg.__wbg_shiftKey_86e737105bab1a54 = function(arg0) { + const ret = arg0.shiftKey; + return ret; + }; + imports.wbg.__wbg_signal_aaf9ad74119f20a4 = function(arg0) { + const ret = arg0.signal; + return ret; + }; + imports.wbg.__wbg_size_3d0a84da1d4aaea9 = function(arg0) { + const ret = arg0.size; + return ret; + }; + imports.wbg.__wbg_stack_0ed75d68575b0f3c = 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_start_2c099369ce831bf1 = function(arg0) { + arg0.start(); + }; + imports.wbg.__wbg_start_95543bccc645f5b8 = function() { return handleError(function (arg0) { + arg0.start(); + }, arguments) }; + imports.wbg.__wbg_static_accessor_GLOBAL_88a902d13a557d07 = function() { + const ret = typeof global === 'undefined' ? null : global; + return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); + }; + imports.wbg.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0 = function() { + const ret = typeof globalThis === 'undefined' ? null : globalThis; + return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); + }; + imports.wbg.__wbg_static_accessor_SELF_37c5d418e4bf5819 = function() { + const ret = typeof self === 'undefined' ? null : self; + return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); + }; + imports.wbg.__wbg_static_accessor_WINDOW_5de37043a91a9c40 = function() { + const ret = typeof window === 'undefined' ? null : window; + return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); + }; + imports.wbg.__wbg_stencilMask_1e602ef63f5b4144 = function(arg0, arg1) { + arg0.stencilMask(arg1 >>> 0); + }; + imports.wbg.__wbg_stencilMask_cd8ca0a55817e599 = function(arg0, arg1) { + arg0.stencilMask(arg1 >>> 0); + }; + imports.wbg.__wbg_stop_838ac8b6321e57b8 = function() { return handleError(function (arg0) { + arg0.stop(); + }, arguments) }; + imports.wbg.__wbg_style_fb30c14e5815805c = function(arg0) { + const ret = arg0.style; + return ret; + }; + imports.wbg.__wbg_subarray_aa9065fa9dc5df96 = function(arg0, arg1, arg2) { + const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0); + return ret; + }; + imports.wbg.__wbg_texImage2D_5f2835f02b1d1077 = 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_b8edcb5692f65f88 = 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_8112b26b3c360b7e = function(arg0, arg1, arg2, arg3) { + arg0.texParameteri(arg1 >>> 0, arg2 >>> 0, arg3); + }; + imports.wbg.__wbg_texParameteri_ef50743cb94d507e = function(arg0, arg1, arg2, arg3) { + arg0.texParameteri(arg1 >>> 0, arg2 >>> 0, arg3); + }; + imports.wbg.__wbg_then_44b73946d2fb3e7d = function(arg0, arg1) { + const ret = arg0.then(arg1); + return ret; + }; + imports.wbg.__wbg_then_48b406749878a531 = function(arg0, arg1, arg2) { + const ret = arg0.then(arg1, arg2); + return ret; + }; + imports.wbg.__wbg_type_a43080ecd49da621 = function(arg0) { + const ret = arg0.type; + return ret; + }; + imports.wbg.__wbg_uniform1f_21390b04609a9fa5 = function(arg0, arg1, arg2) { + arg0.uniform1f(arg1, arg2); + }; + imports.wbg.__wbg_uniform1f_dc009a0e7f7e5977 = function(arg0, arg1, arg2) { + arg0.uniform1f(arg1, arg2); + }; + imports.wbg.__wbg_uniform1i_5ddd9d8ccbd390bb = function(arg0, arg1, arg2) { + arg0.uniform1i(arg1, arg2); + }; + imports.wbg.__wbg_uniform1i_ed95b6129dce4d84 = function(arg0, arg1, arg2) { + arg0.uniform1i(arg1, arg2); + }; + imports.wbg.__wbg_uniform2f_56af4e1731d87421 = function(arg0, arg1, arg2, arg3) { + arg0.uniform2f(arg1, arg2, arg3); + }; + imports.wbg.__wbg_uniform2f_b69b5369bc019bd5 = function(arg0, arg1, arg2, arg3) { + arg0.uniform2f(arg1, arg2, arg3); + }; + imports.wbg.__wbg_uniform4f_36b8f9be15064aa7 = function(arg0, arg1, arg2, arg3, arg4, arg5) { + arg0.uniform4f(arg1, arg2, arg3, arg4, arg5); + }; + imports.wbg.__wbg_uniform4f_f7ea07febf8b5108 = function(arg0, arg1, arg2, arg3, arg4, arg5) { + arg0.uniform4f(arg1, arg2, arg3, arg4, arg5); + }; + imports.wbg.__wbg_uniformMatrix4fv_da94083874f202ad = function(arg0, arg1, arg2, arg3, arg4) { + arg0.uniformMatrix4fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4)); + }; + imports.wbg.__wbg_uniformMatrix4fv_e87383507ae75670 = function(arg0, arg1, arg2, arg3, arg4) { + arg0.uniformMatrix4fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4)); + }; + imports.wbg.__wbg_unobserve_02f53d1ca2d1d801 = function(arg0, arg1) { + arg0.unobserve(arg1); + }; + imports.wbg.__wbg_useProgram_473bf913989b6089 = function(arg0, arg1) { + arg0.useProgram(arg1); + }; + imports.wbg.__wbg_useProgram_9b2660f7bb210471 = function(arg0, arg1) { + arg0.useProgram(arg1); + }; + imports.wbg.__wbg_versions_4e31226f5e8dc909 = function(arg0) { + const ret = arg0.versions; + return ret; + }; + imports.wbg.__wbg_vertexAttribPointer_550dc34903e3d1ea = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) { + arg0.vertexAttribPointer(arg1 >>> 0, arg2, arg3 >>> 0, arg4 !== 0, arg5, arg6); + }; + imports.wbg.__wbg_vertexAttribPointer_7a2a506cdbe3aebc = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) { + arg0.vertexAttribPointer(arg1 >>> 0, arg2, arg3 >>> 0, arg4 !== 0, arg5, arg6); + }; + imports.wbg.__wbg_viewport_a1b4d71297ba89af = function(arg0, arg1, arg2, arg3, arg4) { + arg0.viewport(arg1, arg2, arg3, arg4); + }; + imports.wbg.__wbg_viewport_e615e98f676f2d39 = function(arg0, arg1, arg2, arg3, arg4) { + arg0.viewport(arg1, arg2, arg3, arg4); + }; + imports.wbg.__wbg_visibilityState_f3cc18a6f3831137 = function(arg0) { + const ret = arg0.visibilityState; + return (__wbindgen_enum_VisibilityState.indexOf(ret) + 1 || 3) - 1; + }; + imports.wbg.__wbg_warn_4ca3906c248c47c4 = function(arg0) { + console.warn(arg0); + }; + imports.wbg.__wbg_webkitFullscreenElement_987e215aab12de46 = function(arg0) { + const ret = arg0.webkitFullscreenElement; + return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); + }; + imports.wbg.__wbg_webkitRequestFullscreen_cdba2299c3040b25 = function(arg0) { + arg0.webkitRequestFullscreen(); + }; + imports.wbg.__wbg_width_cdaf02311c1621d1 = function(arg0) { + const ret = arg0.width; + return ret; + }; + imports.wbg.__wbindgen_boolean_get = function(arg0) { + const v = arg0; + const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2; + return ret; + }; + imports.wbg.__wbindgen_cb_drop = function(arg0) { + const obj = arg0.original; + if (obj.cnt-- == 1) { + obj.a = 0; + return true; + } + const ret = false; + return ret; + }; + imports.wbg.__wbindgen_closure_wrapper1432 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 489, __wbg_adapter_42); + return ret; + }; + imports.wbg.__wbindgen_closure_wrapper1433 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 489, __wbg_adapter_42); + return ret; + }; + imports.wbg.__wbindgen_closure_wrapper1434 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 489, __wbg_adapter_42); + return ret; + }; + imports.wbg.__wbindgen_closure_wrapper1435 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 489, __wbg_adapter_42); + return ret; + }; + imports.wbg.__wbindgen_closure_wrapper1436 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 489, __wbg_adapter_42); + return ret; + }; + imports.wbg.__wbindgen_closure_wrapper1437 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 489, __wbg_adapter_53); + return ret; + }; + imports.wbg.__wbindgen_closure_wrapper1649 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 565, __wbg_adapter_56); + return ret; + }; + imports.wbg.__wbindgen_closure_wrapper319 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 5, __wbg_adapter_34); + return ret; + }; + imports.wbg.__wbindgen_closure_wrapper320 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 5, __wbg_adapter_37); + return ret; + }; + imports.wbg.__wbindgen_closure_wrapper321 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 5, __wbg_adapter_34); + return ret; + }; + imports.wbg.__wbindgen_debug_string = 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.__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); + ; + }; + imports.wbg.__wbindgen_is_function = function(arg0) { + const ret = typeof(arg0) === 'function'; + return ret; + }; + imports.wbg.__wbindgen_is_object = function(arg0) { + const val = arg0; + const ret = typeof(val) === 'object' && val !== null; + return ret; + }; + imports.wbg.__wbindgen_is_string = function(arg0) { + const ret = typeof(arg0) === 'string'; + return ret; + }; + imports.wbg.__wbindgen_is_undefined = function(arg0) { + const ret = arg0 === undefined; + return ret; + }; + imports.wbg.__wbindgen_memory = function() { + const ret = wasm.memory; + return ret; + }; + imports.wbg.__wbindgen_number_get = 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.__wbindgen_number_new = function(arg0) { + const ret = arg0; + return ret; + }; + imports.wbg.__wbindgen_string_get = 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.__wbindgen_string_new = function(arg0, arg1) { + const ret = getStringFromWasm0(arg0, arg1); + return ret; + }; + imports.wbg.__wbindgen_throw = function(arg0, arg1) { + throw new Error(getStringFromWasm0(arg0, arg1)); + }; + imports['./snippets/teleia-727bf4351691f1c8/src/helpers.js'] = __wbg_star0; + + 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; + 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') { + module_or_path = new URL('eatyourgreens_bg.wasm', import.meta.url); + } + 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); +} + +export { initSync }; +export default __wbg_init; diff --git a/2026/games/rpc2dot0/pkg/eatyourgreens_bg.wasm b/2026/games/rpc2dot0/pkg/eatyourgreens_bg.wasm Binary files differnew file mode 100644 index 0000000..5ae29ea --- /dev/null +++ b/2026/games/rpc2dot0/pkg/eatyourgreens_bg.wasm diff --git a/2026/games/rpc2dot0/pkg/eatyourgreens_bg.wasm.d.ts b/2026/games/rpc2dot0/pkg/eatyourgreens_bg.wasm.d.ts new file mode 100644 index 0000000..841795f --- /dev/null +++ b/2026/games/rpc2dot0/pkg/eatyourgreens_bg.wasm.d.ts @@ -0,0 +1,20 @@ +/* tslint:disable */ +/* eslint-disable */ +export const memory: WebAssembly.Memory; +export const get_result_display_delay_ms: () => number; +export const main_js: (a: number) => void; +export const receive_op_js: (a: number, b: number) => void; +export const set_difficulty_js: (a: number) => void; +export const __externref_table_alloc: () => number; +export const __wbindgen_export_1: WebAssembly.Table; +export const __wbindgen_exn_store: (a: number) => void; +export const __wbindgen_malloc: (a: number, b: number) => number; +export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number; +export const __wbindgen_free: (a: number, b: number, c: number) => void; +export const __wbindgen_export_6: WebAssembly.Table; +export const closure4_externref_shim: (a: number, b: number, c: any) => void; +export const closure7_externref_shim: (a: number, b: number, c: any, d: any) => void; +export const closure488_externref_shim: (a: number, b: number, c: any) => void; +export const _dyn_core_34211b08701b9ee6___ops__function__FnMut_____Output______as_wasm_bindgen_2b4b1ea8acc7b00___closure__WasmClosure___describe__invoke______: (a: number, b: number) => void; +export const closure564_externref_shim: (a: number, b: number, c: any) => void; +export const __wbindgen_start: () => void; diff --git a/2026/games/rpc2dot0/pkg/package.json b/2026/games/rpc2dot0/pkg/package.json new file mode 100644 index 0000000..ff262de --- /dev/null +++ b/2026/games/rpc2dot0/pkg/package.json @@ -0,0 +1,15 @@ +{ + "name": "eatyourgreens", + "type": "module", + "version": "0.1.0", + "files": [ + "eatyourgreens_bg.wasm", + "eatyourgreens.js", + "eatyourgreens.d.ts" + ], + "main": "eatyourgreens.js", + "types": "eatyourgreens.d.ts", + "sideEffects": [ + "./snippets/*" + ] +} diff --git a/2026/games/rpc2dot0/pkg/snippets/teleia-727bf4351691f1c8/src/helpers.js b/2026/games/rpc2dot0/pkg/snippets/teleia-727bf4351691f1c8/src/helpers.js new file mode 100644 index 0000000..d1b74b6 --- /dev/null +++ b/2026/games/rpc2dot0/pkg/snippets/teleia-727bf4351691f1c8/src/helpers.js @@ -0,0 +1,21 @@ +let resized = false;
+
+export async function js_track_resized_setup() {
+ window.addEventListener("resize", () => {
+ resized = true;
+ });
+}
+
+export function js_poll_resized() {
+ let ret = resized;
+ resized = false;
+ return ret;
+}
+
+export function js_bundt_api_server() {
+ return globalThis.apiServer || "http://localhost:8000/api";
+}
+
+export function js_bundt_secure_api_server() {
+ return globalThis.secureApiServer || "http://localhost:8000/api";
+}
|
