@swmansion/smelter-browser-render 0.4.0-rc.0 → 0.4.0-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,184 +1,1687 @@
1
- let wasm;
2
-
3
- let WASM_VECTOR_LEN = 0;
1
+ /* @ts-self-types="./smelter.d.ts" */
4
2
 
5
- let cachedUint8ArrayMemory0 = null;
6
3
 
7
- function getUint8ArrayMemory0() {
8
- if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
9
- cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
4
+ class SmelterRenderer {
5
+ static __wrap(ptr) {
6
+ ptr = ptr >>> 0;
7
+ const obj = Object.create(SmelterRenderer.prototype);
8
+ obj.__wbg_ptr = ptr;
9
+ SmelterRendererFinalization.register(obj, obj.__wbg_ptr, obj);
10
+ return obj;
10
11
  }
11
- return cachedUint8ArrayMemory0;
12
- }
13
-
14
- const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
15
-
16
- const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
17
- ? function (arg, view) {
18
- return cachedTextEncoder.encodeInto(arg, view);
19
- }
20
- : function (arg, view) {
21
- const buf = cachedTextEncoder.encode(arg);
22
- view.set(buf);
23
- return {
24
- read: arg.length,
25
- written: buf.length
26
- };
27
- });
28
-
29
- function passStringToWasm0(arg, malloc, realloc) {
30
-
31
- if (realloc === undefined) {
32
- const buf = cachedTextEncoder.encode(arg);
33
- const ptr = malloc(buf.length, 1) >>> 0;
34
- getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
35
- WASM_VECTOR_LEN = buf.length;
12
+ __destroy_into_raw() {
13
+ const ptr = this.__wbg_ptr;
14
+ this.__wbg_ptr = 0;
15
+ SmelterRendererFinalization.unregister(this);
36
16
  return ptr;
37
17
  }
38
-
39
- let len = arg.length;
40
- let ptr = malloc(len, 1) >>> 0;
41
-
42
- const mem = getUint8ArrayMemory0();
43
-
44
- let offset = 0;
45
-
46
- for (; offset < len; offset++) {
47
- const code = arg.charCodeAt(offset);
48
- if (code > 0x7F) break;
49
- mem[ptr + offset] = code;
18
+ free() {
19
+ const ptr = this.__destroy_into_raw();
20
+ wasm.__wbg_smelterrenderer_free(ptr, 0);
50
21
  }
51
-
52
- if (offset !== len) {
53
- if (offset !== 0) {
54
- arg = arg.slice(offset);
55
- }
56
- ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
57
- const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
58
- const ret = encodeString(arg, view);
59
-
60
- offset += ret.written;
61
- ptr = realloc(ptr, len, offset, 1) >>> 0;
22
+ /**
23
+ * @param {string} font_url
24
+ * @returns {Promise<void>}
25
+ */
26
+ register_font(font_url) {
27
+ const ptr0 = passStringToWasm0(font_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
28
+ const len0 = WASM_VECTOR_LEN;
29
+ const ret = wasm.smelterrenderer_register_font(this.__wbg_ptr, ptr0, len0);
30
+ return ret;
62
31
  }
63
-
64
- WASM_VECTOR_LEN = offset;
65
- return ptr;
66
- }
67
-
68
- let cachedDataViewMemory0 = null;
69
-
70
- function getDataViewMemory0() {
71
- if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
72
- cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
32
+ /**
33
+ * @param {string} renderer_id
34
+ * @param {any} image_spec
35
+ * @returns {Promise<void>}
36
+ */
37
+ register_image(renderer_id, image_spec) {
38
+ const ptr0 = passStringToWasm0(renderer_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
39
+ const len0 = WASM_VECTOR_LEN;
40
+ const ret = wasm.smelterrenderer_register_image(this.__wbg_ptr, ptr0, len0, image_spec);
41
+ return ret;
73
42
  }
74
- return cachedDataViewMemory0;
75
- }
76
-
77
- function addToExternrefTable0(obj) {
78
- const idx = wasm.__externref_table_alloc();
79
- wasm.__wbindgen_export_4.set(idx, obj);
80
- return idx;
81
- }
82
-
83
- function handleError(f, args) {
84
- try {
85
- return f.apply(this, args);
86
- } catch (e) {
87
- const idx = addToExternrefTable0(e);
88
- wasm.__wbindgen_exn_store(idx);
43
+ /**
44
+ * @param {string} input_id
45
+ * @returns {Promise<void>}
46
+ */
47
+ register_input(input_id) {
48
+ const ptr0 = passStringToWasm0(input_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
49
+ const len0 = WASM_VECTOR_LEN;
50
+ const ret = wasm.smelterrenderer_register_input(this.__wbg_ptr, ptr0, len0);
51
+ return ret;
89
52
  }
90
- }
91
-
92
- const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
93
-
94
- if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); }
95
- function getStringFromWasm0(ptr, len) {
96
- ptr = ptr >>> 0;
97
- return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
98
- }
99
-
100
- let cachedFloat32ArrayMemory0 = null;
101
-
102
- function getFloat32ArrayMemory0() {
103
- if (cachedFloat32ArrayMemory0 === null || cachedFloat32ArrayMemory0.byteLength === 0) {
104
- cachedFloat32ArrayMemory0 = new Float32Array(wasm.memory.buffer);
53
+ /**
54
+ * @param {string} shader_id
55
+ * @param {any} shader_spec
56
+ * @returns {Promise<void>}
57
+ */
58
+ register_shader(shader_id, shader_spec) {
59
+ const ptr0 = passStringToWasm0(shader_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
60
+ const len0 = WASM_VECTOR_LEN;
61
+ const ret = wasm.smelterrenderer_register_shader(this.__wbg_ptr, ptr0, len0, shader_spec);
62
+ return ret;
105
63
  }
106
- return cachedFloat32ArrayMemory0;
107
- }
108
-
109
- function getArrayF32FromWasm0(ptr, len) {
110
- ptr = ptr >>> 0;
111
- return getFloat32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
112
- }
113
-
114
- let cachedInt32ArrayMemory0 = null;
115
-
116
- function getInt32ArrayMemory0() {
117
- if (cachedInt32ArrayMemory0 === null || cachedInt32ArrayMemory0.byteLength === 0) {
118
- cachedInt32ArrayMemory0 = new Int32Array(wasm.memory.buffer);
64
+ /**
65
+ * @param {InputFrameSet} input
66
+ * @returns {Promise<OutputFrameSet>}
67
+ */
68
+ render(input) {
69
+ const ret = wasm.smelterrenderer_render(this.__wbg_ptr, input);
70
+ return ret;
119
71
  }
120
- return cachedInt32ArrayMemory0;
121
- }
122
-
123
- function getArrayI32FromWasm0(ptr, len) {
124
- ptr = ptr >>> 0;
125
- return getInt32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
126
- }
127
-
128
- let cachedUint32ArrayMemory0 = null;
129
-
130
- function getUint32ArrayMemory0() {
131
- if (cachedUint32ArrayMemory0 === null || cachedUint32ArrayMemory0.byteLength === 0) {
132
- cachedUint32ArrayMemory0 = new Uint32Array(wasm.memory.buffer);
72
+ /**
73
+ * @param {string} renderer_id
74
+ * @returns {Promise<void>}
75
+ */
76
+ unregister_image(renderer_id) {
77
+ const ptr0 = passStringToWasm0(renderer_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
78
+ const len0 = WASM_VECTOR_LEN;
79
+ const ret = wasm.smelterrenderer_unregister_image(this.__wbg_ptr, ptr0, len0);
80
+ return ret;
81
+ }
82
+ /**
83
+ * @param {string} input_id
84
+ * @returns {Promise<void>}
85
+ */
86
+ unregister_input(input_id) {
87
+ const ptr0 = passStringToWasm0(input_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
88
+ const len0 = WASM_VECTOR_LEN;
89
+ const ret = wasm.smelterrenderer_unregister_input(this.__wbg_ptr, ptr0, len0);
90
+ return ret;
91
+ }
92
+ /**
93
+ * @param {string} output_id
94
+ * @returns {Promise<void>}
95
+ */
96
+ unregister_output(output_id) {
97
+ const ptr0 = passStringToWasm0(output_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
98
+ const len0 = WASM_VECTOR_LEN;
99
+ const ret = wasm.smelterrenderer_unregister_output(this.__wbg_ptr, ptr0, len0);
100
+ return ret;
101
+ }
102
+ /**
103
+ * @param {string} renderer_id
104
+ * @returns {Promise<void>}
105
+ */
106
+ unregister_shader(renderer_id) {
107
+ const ptr0 = passStringToWasm0(renderer_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
108
+ const len0 = WASM_VECTOR_LEN;
109
+ const ret = wasm.smelterrenderer_unregister_shader(this.__wbg_ptr, ptr0, len0);
110
+ return ret;
111
+ }
112
+ /**
113
+ * @param {string} output_id
114
+ * @param {any} resolution
115
+ * @param {any} scene
116
+ * @returns {Promise<void>}
117
+ */
118
+ update_scene(output_id, resolution, scene) {
119
+ const ptr0 = passStringToWasm0(output_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
120
+ const len0 = WASM_VECTOR_LEN;
121
+ const ret = wasm.smelterrenderer_update_scene(this.__wbg_ptr, ptr0, len0, resolution, scene);
122
+ return ret;
133
123
  }
134
- return cachedUint32ArrayMemory0;
135
- }
136
-
137
- function getArrayU32FromWasm0(ptr, len) {
138
- ptr = ptr >>> 0;
139
- return getUint32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
140
- }
141
-
142
- function getArrayU8FromWasm0(ptr, len) {
143
- ptr = ptr >>> 0;
144
- return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
145
124
  }
125
+ if (Symbol.dispose) SmelterRenderer.prototype[Symbol.dispose] = SmelterRenderer.prototype.free;
146
126
 
147
- function isLikeNone(x) {
148
- return x === undefined || x === null;
127
+ /**
128
+ * @param {any} options
129
+ * @returns {Promise<SmelterRenderer>}
130
+ */
131
+ function create_renderer(options) {
132
+ const ret = wasm.create_renderer(options);
133
+ return ret;
149
134
  }
150
135
 
151
- const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
152
- ? { register: () => {}, unregister: () => {} }
153
- : new FinalizationRegistry(state => {
154
- wasm.__wbindgen_export_6.get(state.dtor)(state.a, state.b);
155
- });
156
-
157
- function makeMutClosure(arg0, arg1, dtor, f) {
158
- const state = { a: arg0, b: arg1, cnt: 1, dtor };
159
- const real = (...args) => {
160
- // First up with a closure we increment the internal reference
161
- // count. This ensures that the Rust closure environment won't
162
- // be deallocated while we're invoking it.
163
- state.cnt++;
164
- const a = state.a;
165
- state.a = 0;
166
- try {
167
- return f(a, state.b, ...args);
168
- } finally {
169
- if (--state.cnt === 0) {
170
- wasm.__wbindgen_export_6.get(state.dtor)(a, state.b);
171
- CLOSURE_DTORS.unregister(state);
172
- } else {
173
- state.a = a;
174
- }
175
- }
176
- };
177
- real.original = state;
178
- CLOSURE_DTORS.register(real, state, state);
179
- return real;
136
+ function __wbg_get_imports() {
137
+ const import0 = {
138
+ __proto__: null,
139
+ __wbg_Error_83742b46f01ce22d: function(arg0, arg1) {
140
+ const ret = Error(getStringFromWasm0(arg0, arg1));
141
+ return ret;
142
+ },
143
+ __wbg_Number_a5a435bd7bbec835: function(arg0) {
144
+ const ret = Number(arg0);
145
+ return ret;
146
+ },
147
+ __wbg_String_8564e559799eccda: function(arg0, arg1) {
148
+ const ret = String(arg1);
149
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
150
+ const len1 = WASM_VECTOR_LEN;
151
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
152
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
153
+ },
154
+ __wbg___wbindgen_bigint_get_as_i64_447a76b5c6ef7bda: function(arg0, arg1) {
155
+ const v = arg1;
156
+ const ret = typeof(v) === 'bigint' ? v : undefined;
157
+ getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
158
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
159
+ },
160
+ __wbg___wbindgen_boolean_get_c0f3f60bac5a78d1: function(arg0) {
161
+ const v = arg0;
162
+ const ret = typeof(v) === 'boolean' ? v : undefined;
163
+ return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
164
+ },
165
+ __wbg___wbindgen_debug_string_5398f5bb970e0daa: function(arg0, arg1) {
166
+ const ret = debugString(arg1);
167
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
168
+ const len1 = WASM_VECTOR_LEN;
169
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
170
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
171
+ },
172
+ __wbg___wbindgen_in_41dbb8413020e076: function(arg0, arg1) {
173
+ const ret = arg0 in arg1;
174
+ return ret;
175
+ },
176
+ __wbg___wbindgen_is_bigint_e2141d4f045b7eda: function(arg0) {
177
+ const ret = typeof(arg0) === 'bigint';
178
+ return ret;
179
+ },
180
+ __wbg___wbindgen_is_function_3c846841762788c1: function(arg0) {
181
+ const ret = typeof(arg0) === 'function';
182
+ return ret;
183
+ },
184
+ __wbg___wbindgen_is_object_781bc9f159099513: function(arg0) {
185
+ const val = arg0;
186
+ const ret = typeof(val) === 'object' && val !== null;
187
+ return ret;
188
+ },
189
+ __wbg___wbindgen_is_string_7ef6b97b02428fae: function(arg0) {
190
+ const ret = typeof(arg0) === 'string';
191
+ return ret;
192
+ },
193
+ __wbg___wbindgen_is_undefined_52709e72fb9f179c: function(arg0) {
194
+ const ret = arg0 === undefined;
195
+ return ret;
196
+ },
197
+ __wbg___wbindgen_jsval_eq_ee31bfad3e536463: function(arg0, arg1) {
198
+ const ret = arg0 === arg1;
199
+ return ret;
200
+ },
201
+ __wbg___wbindgen_jsval_loose_eq_5bcc3bed3c69e72b: function(arg0, arg1) {
202
+ const ret = arg0 == arg1;
203
+ return ret;
204
+ },
205
+ __wbg___wbindgen_number_get_34bb9d9dcfa21373: function(arg0, arg1) {
206
+ const obj = arg1;
207
+ const ret = typeof(obj) === 'number' ? obj : undefined;
208
+ getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
209
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
210
+ },
211
+ __wbg___wbindgen_string_get_395e606bd0ee4427: function(arg0, arg1) {
212
+ const obj = arg1;
213
+ const ret = typeof(obj) === 'string' ? obj : undefined;
214
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
215
+ var len1 = WASM_VECTOR_LEN;
216
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
217
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
218
+ },
219
+ __wbg___wbindgen_throw_6ddd609b62940d55: function(arg0, arg1) {
220
+ throw new Error(getStringFromWasm0(arg0, arg1));
221
+ },
222
+ __wbg__wbg_cb_unref_6b5b6b8576d35cb1: function(arg0) {
223
+ arg0._wbg_cb_unref();
224
+ },
225
+ __wbg_abort_5ef96933660780b7: function(arg0) {
226
+ arg0.abort();
227
+ },
228
+ __wbg_activeTexture_11610c2c57e26cfa: function(arg0, arg1) {
229
+ arg0.activeTexture(arg1 >>> 0);
230
+ },
231
+ __wbg_activeTexture_66fa8cafd3610ddb: function(arg0, arg1) {
232
+ arg0.activeTexture(arg1 >>> 0);
233
+ },
234
+ __wbg_allocationSize_a8f2ff3c43667ab7: function() { return handleError(function (arg0, arg1) {
235
+ const ret = arg0.allocationSize(arg1);
236
+ return ret;
237
+ }, arguments); },
238
+ __wbg_append_608dfb635ee8998f: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
239
+ arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
240
+ }, arguments); },
241
+ __wbg_arrayBuffer_eb8e9ca620af2a19: function() { return handleError(function (arg0) {
242
+ const ret = arg0.arrayBuffer();
243
+ return ret;
244
+ }, arguments); },
245
+ __wbg_attachShader_6426e8576a115345: function(arg0, arg1, arg2) {
246
+ arg0.attachShader(arg1, arg2);
247
+ },
248
+ __wbg_attachShader_e557f37438249ff7: function(arg0, arg1, arg2) {
249
+ arg0.attachShader(arg1, arg2);
250
+ },
251
+ __wbg_beginQuery_ac2ef47e00ec594a: function(arg0, arg1, arg2) {
252
+ arg0.beginQuery(arg1 >>> 0, arg2);
253
+ },
254
+ __wbg_bindAttribLocation_1d976e3bcc954adb: function(arg0, arg1, arg2, arg3, arg4) {
255
+ arg0.bindAttribLocation(arg1, arg2 >>> 0, getStringFromWasm0(arg3, arg4));
256
+ },
257
+ __wbg_bindAttribLocation_8791402cc151e914: function(arg0, arg1, arg2, arg3, arg4) {
258
+ arg0.bindAttribLocation(arg1, arg2 >>> 0, getStringFromWasm0(arg3, arg4));
259
+ },
260
+ __wbg_bindBufferRange_469c3643c2099003: function(arg0, arg1, arg2, arg3, arg4, arg5) {
261
+ arg0.bindBufferRange(arg1 >>> 0, arg2 >>> 0, arg3, arg4, arg5);
262
+ },
263
+ __wbg_bindBuffer_142694a9732bc098: function(arg0, arg1, arg2) {
264
+ arg0.bindBuffer(arg1 >>> 0, arg2);
265
+ },
266
+ __wbg_bindBuffer_d2a4f6cfb33336fb: function(arg0, arg1, arg2) {
267
+ arg0.bindBuffer(arg1 >>> 0, arg2);
268
+ },
269
+ __wbg_bindFramebuffer_4643a12ca1c72776: function(arg0, arg1, arg2) {
270
+ arg0.bindFramebuffer(arg1 >>> 0, arg2);
271
+ },
272
+ __wbg_bindFramebuffer_fdc7c38f1c700e64: function(arg0, arg1, arg2) {
273
+ arg0.bindFramebuffer(arg1 >>> 0, arg2);
274
+ },
275
+ __wbg_bindRenderbuffer_91db2fc67c1f0115: function(arg0, arg1, arg2) {
276
+ arg0.bindRenderbuffer(arg1 >>> 0, arg2);
277
+ },
278
+ __wbg_bindRenderbuffer_e6cfc20b6ebcf605: function(arg0, arg1, arg2) {
279
+ arg0.bindRenderbuffer(arg1 >>> 0, arg2);
280
+ },
281
+ __wbg_bindSampler_be3a05e88cecae98: function(arg0, arg1, arg2) {
282
+ arg0.bindSampler(arg1 >>> 0, arg2);
283
+ },
284
+ __wbg_bindTexture_6a0892cd752b41d9: function(arg0, arg1, arg2) {
285
+ arg0.bindTexture(arg1 >>> 0, arg2);
286
+ },
287
+ __wbg_bindTexture_6e7e157d0aabe457: function(arg0, arg1, arg2) {
288
+ arg0.bindTexture(arg1 >>> 0, arg2);
289
+ },
290
+ __wbg_bindVertexArrayOES_082b0791772327fa: function(arg0, arg1) {
291
+ arg0.bindVertexArrayOES(arg1);
292
+ },
293
+ __wbg_bindVertexArray_c307251f3ff61930: function(arg0, arg1) {
294
+ arg0.bindVertexArray(arg1);
295
+ },
296
+ __wbg_blendColor_b4c7d8333af4876d: function(arg0, arg1, arg2, arg3, arg4) {
297
+ arg0.blendColor(arg1, arg2, arg3, arg4);
298
+ },
299
+ __wbg_blendColor_c2771aead110c867: function(arg0, arg1, arg2, arg3, arg4) {
300
+ arg0.blendColor(arg1, arg2, arg3, arg4);
301
+ },
302
+ __wbg_blendEquationSeparate_b08aba1c715cb265: function(arg0, arg1, arg2) {
303
+ arg0.blendEquationSeparate(arg1 >>> 0, arg2 >>> 0);
304
+ },
305
+ __wbg_blendEquationSeparate_f16ada84ba672878: function(arg0, arg1, arg2) {
306
+ arg0.blendEquationSeparate(arg1 >>> 0, arg2 >>> 0);
307
+ },
308
+ __wbg_blendEquation_46367a891604b604: function(arg0, arg1) {
309
+ arg0.blendEquation(arg1 >>> 0);
310
+ },
311
+ __wbg_blendEquation_c353d94b097007e5: function(arg0, arg1) {
312
+ arg0.blendEquation(arg1 >>> 0);
313
+ },
314
+ __wbg_blendFuncSeparate_6aae138b81d75b47: function(arg0, arg1, arg2, arg3, arg4) {
315
+ arg0.blendFuncSeparate(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
316
+ },
317
+ __wbg_blendFuncSeparate_8c91c200b1a72e4b: function(arg0, arg1, arg2, arg3, arg4) {
318
+ arg0.blendFuncSeparate(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
319
+ },
320
+ __wbg_blendFunc_2e98c5f57736e5f3: function(arg0, arg1, arg2) {
321
+ arg0.blendFunc(arg1 >>> 0, arg2 >>> 0);
322
+ },
323
+ __wbg_blendFunc_4ce0991003a9468e: function(arg0, arg1, arg2) {
324
+ arg0.blendFunc(arg1 >>> 0, arg2 >>> 0);
325
+ },
326
+ __wbg_blitFramebuffer_c1a68feaca974c87: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) {
327
+ arg0.blitFramebuffer(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0);
328
+ },
329
+ __wbg_bufferData_730b629ba3f6824f: function(arg0, arg1, arg2, arg3) {
330
+ arg0.bufferData(arg1 >>> 0, arg2, arg3 >>> 0);
331
+ },
332
+ __wbg_bufferData_d20232e3d5dcdc62: function(arg0, arg1, arg2, arg3) {
333
+ arg0.bufferData(arg1 >>> 0, arg2, arg3 >>> 0);
334
+ },
335
+ __wbg_bufferData_d3bd8c69ff4b7254: function(arg0, arg1, arg2, arg3) {
336
+ arg0.bufferData(arg1 >>> 0, arg2, arg3 >>> 0);
337
+ },
338
+ __wbg_bufferData_fb2d946faa09a60b: function(arg0, arg1, arg2, arg3) {
339
+ arg0.bufferData(arg1 >>> 0, arg2, arg3 >>> 0);
340
+ },
341
+ __wbg_bufferSubData_3fcefd4648de39b5: function(arg0, arg1, arg2, arg3) {
342
+ arg0.bufferSubData(arg1 >>> 0, arg2, arg3);
343
+ },
344
+ __wbg_bufferSubData_7b112eb88657e7c0: function(arg0, arg1, arg2, arg3) {
345
+ arg0.bufferSubData(arg1 >>> 0, arg2, arg3);
346
+ },
347
+ __wbg_call_2d781c1f4d5c0ef8: function() { return handleError(function (arg0, arg1, arg2) {
348
+ const ret = arg0.call(arg1, arg2);
349
+ return ret;
350
+ }, arguments); },
351
+ __wbg_call_e133b57c9155d22c: function() { return handleError(function (arg0, arg1) {
352
+ const ret = arg0.call(arg1);
353
+ return ret;
354
+ }, arguments); },
355
+ __wbg_clearBufferfv_7bc3e789059fd29b: function(arg0, arg1, arg2, arg3, arg4) {
356
+ arg0.clearBufferfv(arg1 >>> 0, arg2, getArrayF32FromWasm0(arg3, arg4));
357
+ },
358
+ __wbg_clearBufferiv_050b376a7480ef9c: function(arg0, arg1, arg2, arg3, arg4) {
359
+ arg0.clearBufferiv(arg1 >>> 0, arg2, getArrayI32FromWasm0(arg3, arg4));
360
+ },
361
+ __wbg_clearBufferuiv_d75635e80261ea93: function(arg0, arg1, arg2, arg3, arg4) {
362
+ arg0.clearBufferuiv(arg1 >>> 0, arg2, getArrayU32FromWasm0(arg3, arg4));
363
+ },
364
+ __wbg_clearDepth_0fb1b5aba2ff2d63: function(arg0, arg1) {
365
+ arg0.clearDepth(arg1);
366
+ },
367
+ __wbg_clearDepth_3ff5ef5e5fad4016: function(arg0, arg1) {
368
+ arg0.clearDepth(arg1);
369
+ },
370
+ __wbg_clearStencil_0e5924dc2f0fa2b7: function(arg0, arg1) {
371
+ arg0.clearStencil(arg1);
372
+ },
373
+ __wbg_clearStencil_4505636e726114d0: function(arg0, arg1) {
374
+ arg0.clearStencil(arg1);
375
+ },
376
+ __wbg_clear_3d6ad4729e206aac: function(arg0, arg1) {
377
+ arg0.clear(arg1 >>> 0);
378
+ },
379
+ __wbg_clear_5a0606f7c62ad39a: function(arg0, arg1) {
380
+ arg0.clear(arg1 >>> 0);
381
+ },
382
+ __wbg_clientWaitSync_5402aac488fc18bb: function(arg0, arg1, arg2, arg3) {
383
+ const ret = arg0.clientWaitSync(arg1, arg2 >>> 0, arg3 >>> 0);
384
+ return ret;
385
+ },
386
+ __wbg_colorMask_b053114f7da42448: function(arg0, arg1, arg2, arg3, arg4) {
387
+ arg0.colorMask(arg1 !== 0, arg2 !== 0, arg3 !== 0, arg4 !== 0);
388
+ },
389
+ __wbg_colorMask_b47840e05b5f8181: function(arg0, arg1, arg2, arg3, arg4) {
390
+ arg0.colorMask(arg1 !== 0, arg2 !== 0, arg3 !== 0, arg4 !== 0);
391
+ },
392
+ __wbg_compileShader_623a1051cf49494b: function(arg0, arg1) {
393
+ arg0.compileShader(arg1);
394
+ },
395
+ __wbg_compileShader_7ca66245c2798601: function(arg0, arg1) {
396
+ arg0.compileShader(arg1);
397
+ },
398
+ __wbg_compressedTexSubImage2D_593058a6f5aca176: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) {
399
+ arg0.compressedTexSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8);
400
+ },
401
+ __wbg_compressedTexSubImage2D_aab12b65159c282e: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) {
402
+ arg0.compressedTexSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8);
403
+ },
404
+ __wbg_compressedTexSubImage2D_f3c4ae95ef9d2420: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
405
+ arg0.compressedTexSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8, arg9);
406
+ },
407
+ __wbg_compressedTexSubImage3D_77a6ab77487aa211: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
408
+ arg0.compressedTexSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10, arg11);
409
+ },
410
+ __wbg_compressedTexSubImage3D_95f64742aae944b8: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) {
411
+ arg0.compressedTexSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10);
412
+ },
413
+ __wbg_copyBufferSubData_aaeed526e555f0d1: function(arg0, arg1, arg2, arg3, arg4, arg5) {
414
+ arg0.copyBufferSubData(arg1 >>> 0, arg2 >>> 0, arg3, arg4, arg5);
415
+ },
416
+ __wbg_copyTexSubImage2D_08a10bcd45b88038: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) {
417
+ arg0.copyTexSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8);
418
+ },
419
+ __wbg_copyTexSubImage2D_b9a10d000c616b3e: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) {
420
+ arg0.copyTexSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8);
421
+ },
422
+ __wbg_copyTexSubImage3D_7fcdf7c85bc308a5: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
423
+ arg0.copyTexSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9);
424
+ },
425
+ __wbg_copyTo_c55b7fc1409a8340: function(arg0, arg1, arg2, arg3) {
426
+ const ret = arg0.copyTo(getArrayU8FromWasm0(arg1, arg2), arg3);
427
+ return ret;
428
+ },
429
+ __wbg_createBuffer_1aa34315dc9585a2: function(arg0) {
430
+ const ret = arg0.createBuffer();
431
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
432
+ },
433
+ __wbg_createBuffer_8e47b88217a98607: function(arg0) {
434
+ const ret = arg0.createBuffer();
435
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
436
+ },
437
+ __wbg_createFramebuffer_911d55689ff8358e: function(arg0) {
438
+ const ret = arg0.createFramebuffer();
439
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
440
+ },
441
+ __wbg_createFramebuffer_97d39363cdd9242a: function(arg0) {
442
+ const ret = arg0.createFramebuffer();
443
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
444
+ },
445
+ __wbg_createProgram_1fa32901e4db13cd: function(arg0) {
446
+ const ret = arg0.createProgram();
447
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
448
+ },
449
+ __wbg_createProgram_8eb14525e7fcffb8: function(arg0) {
450
+ const ret = arg0.createProgram();
451
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
452
+ },
453
+ __wbg_createQuery_0f754c13ae341f39: function(arg0) {
454
+ const ret = arg0.createQuery();
455
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
456
+ },
457
+ __wbg_createRenderbuffer_69fb8c438e70e494: function(arg0) {
458
+ const ret = arg0.createRenderbuffer();
459
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
460
+ },
461
+ __wbg_createRenderbuffer_8847d6a81975caee: function(arg0) {
462
+ const ret = arg0.createRenderbuffer();
463
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
464
+ },
465
+ __wbg_createSampler_7bed7d46769be9a7: function(arg0) {
466
+ const ret = arg0.createSampler();
467
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
468
+ },
469
+ __wbg_createShader_9ffc9dc1832608d7: function(arg0, arg1) {
470
+ const ret = arg0.createShader(arg1 >>> 0);
471
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
472
+ },
473
+ __wbg_createShader_a00913b8c6489e6b: function(arg0, arg1) {
474
+ const ret = arg0.createShader(arg1 >>> 0);
475
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
476
+ },
477
+ __wbg_createTexture_9b1b4f40cab0097b: function(arg0) {
478
+ const ret = arg0.createTexture();
479
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
480
+ },
481
+ __wbg_createTexture_ceb367c3528574ec: function(arg0) {
482
+ const ret = arg0.createTexture();
483
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
484
+ },
485
+ __wbg_createVertexArrayOES_1b30eca82fb89274: function(arg0) {
486
+ const ret = arg0.createVertexArrayOES();
487
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
488
+ },
489
+ __wbg_createVertexArray_420460898dc8d838: function(arg0) {
490
+ const ret = arg0.createVertexArray();
491
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
492
+ },
493
+ __wbg_cullFace_2c9f57c2f90cbe70: function(arg0, arg1) {
494
+ arg0.cullFace(arg1 >>> 0);
495
+ },
496
+ __wbg_cullFace_d759515c1199276c: function(arg0, arg1) {
497
+ arg0.cullFace(arg1 >>> 0);
498
+ },
499
+ __wbg_deleteBuffer_a2f8244b249c356e: function(arg0, arg1) {
500
+ arg0.deleteBuffer(arg1);
501
+ },
502
+ __wbg_deleteBuffer_b053c58b4ed1ab1c: function(arg0, arg1) {
503
+ arg0.deleteBuffer(arg1);
504
+ },
505
+ __wbg_deleteFramebuffer_1af8b97d40962089: function(arg0, arg1) {
506
+ arg0.deleteFramebuffer(arg1);
507
+ },
508
+ __wbg_deleteFramebuffer_badadfcd45ef5e64: function(arg0, arg1) {
509
+ arg0.deleteFramebuffer(arg1);
510
+ },
511
+ __wbg_deleteProgram_cb8f79d5c1e84863: function(arg0, arg1) {
512
+ arg0.deleteProgram(arg1);
513
+ },
514
+ __wbg_deleteProgram_fc1d8d77ef7e154d: function(arg0, arg1) {
515
+ arg0.deleteProgram(arg1);
516
+ },
517
+ __wbg_deleteQuery_9420681ec3d643ef: function(arg0, arg1) {
518
+ arg0.deleteQuery(arg1);
519
+ },
520
+ __wbg_deleteRenderbuffer_401ffe15b179c343: function(arg0, arg1) {
521
+ arg0.deleteRenderbuffer(arg1);
522
+ },
523
+ __wbg_deleteRenderbuffer_b030660bf2e9fc95: function(arg0, arg1) {
524
+ arg0.deleteRenderbuffer(arg1);
525
+ },
526
+ __wbg_deleteSampler_8111fd44b061bdd1: function(arg0, arg1) {
527
+ arg0.deleteSampler(arg1);
528
+ },
529
+ __wbg_deleteShader_5b6992b5e5894d44: function(arg0, arg1) {
530
+ arg0.deleteShader(arg1);
531
+ },
532
+ __wbg_deleteShader_a8e5ccb432053dbe: function(arg0, arg1) {
533
+ arg0.deleteShader(arg1);
534
+ },
535
+ __wbg_deleteSync_deeb154f55e59a7d: function(arg0, arg1) {
536
+ arg0.deleteSync(arg1);
537
+ },
538
+ __wbg_deleteTexture_00ecab74f7bddf91: function(arg0, arg1) {
539
+ arg0.deleteTexture(arg1);
540
+ },
541
+ __wbg_deleteTexture_d8b1d278731e0c9f: function(arg0, arg1) {
542
+ arg0.deleteTexture(arg1);
543
+ },
544
+ __wbg_deleteVertexArrayOES_9da21e3515bf556e: function(arg0, arg1) {
545
+ arg0.deleteVertexArrayOES(arg1);
546
+ },
547
+ __wbg_deleteVertexArray_5a75f4855c2881df: function(arg0, arg1) {
548
+ arg0.deleteVertexArray(arg1);
549
+ },
550
+ __wbg_depthFunc_0376ef69458b01d8: function(arg0, arg1) {
551
+ arg0.depthFunc(arg1 >>> 0);
552
+ },
553
+ __wbg_depthFunc_befeae10cb29920d: function(arg0, arg1) {
554
+ arg0.depthFunc(arg1 >>> 0);
555
+ },
556
+ __wbg_depthMask_c6c1b0d88ade6c84: function(arg0, arg1) {
557
+ arg0.depthMask(arg1 !== 0);
558
+ },
559
+ __wbg_depthMask_fd5bc408415b9cd3: function(arg0, arg1) {
560
+ arg0.depthMask(arg1 !== 0);
561
+ },
562
+ __wbg_depthRange_b42d493a2b9258aa: function(arg0, arg1, arg2) {
563
+ arg0.depthRange(arg1, arg2);
564
+ },
565
+ __wbg_depthRange_ebba8110d3fe0332: function(arg0, arg1, arg2) {
566
+ arg0.depthRange(arg1, arg2);
567
+ },
568
+ __wbg_disableVertexAttribArray_124a165b099b763b: function(arg0, arg1) {
569
+ arg0.disableVertexAttribArray(arg1 >>> 0);
570
+ },
571
+ __wbg_disableVertexAttribArray_c4f42277355986c0: function(arg0, arg1) {
572
+ arg0.disableVertexAttribArray(arg1 >>> 0);
573
+ },
574
+ __wbg_disable_62ec2189c50a0db7: function(arg0, arg1) {
575
+ arg0.disable(arg1 >>> 0);
576
+ },
577
+ __wbg_disable_7731e2f3362ef1c5: function(arg0, arg1) {
578
+ arg0.disable(arg1 >>> 0);
579
+ },
580
+ __wbg_displayHeight_a64206e9a1a18a68: function(arg0) {
581
+ const ret = arg0.displayHeight;
582
+ return ret;
583
+ },
584
+ __wbg_displayWidth_d914f4916d20eb14: function(arg0) {
585
+ const ret = arg0.displayWidth;
586
+ return ret;
587
+ },
588
+ __wbg_document_c0320cd4183c6d9b: function(arg0) {
589
+ const ret = arg0.document;
590
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
591
+ },
592
+ __wbg_done_08ce71ee07e3bd17: function(arg0) {
593
+ const ret = arg0.done;
594
+ return ret;
595
+ },
596
+ __wbg_drawArraysInstancedANGLE_20ee4b8f67503b54: function(arg0, arg1, arg2, arg3, arg4) {
597
+ arg0.drawArraysInstancedANGLE(arg1 >>> 0, arg2, arg3, arg4);
598
+ },
599
+ __wbg_drawArraysInstanced_13e40fca13079ade: function(arg0, arg1, arg2, arg3, arg4) {
600
+ arg0.drawArraysInstanced(arg1 >>> 0, arg2, arg3, arg4);
601
+ },
602
+ __wbg_drawArrays_13005ccff75e4210: function(arg0, arg1, arg2, arg3) {
603
+ arg0.drawArrays(arg1 >>> 0, arg2, arg3);
604
+ },
605
+ __wbg_drawArrays_c20dedf441392005: function(arg0, arg1, arg2, arg3) {
606
+ arg0.drawArrays(arg1 >>> 0, arg2, arg3);
607
+ },
608
+ __wbg_drawBuffersWEBGL_5f9efe378355889a: function(arg0, arg1) {
609
+ arg0.drawBuffersWEBGL(arg1);
610
+ },
611
+ __wbg_drawBuffers_823c4881ba82dc9c: function(arg0, arg1) {
612
+ arg0.drawBuffers(arg1);
613
+ },
614
+ __wbg_drawElementsInstancedANGLE_e9170c6414853487: function(arg0, arg1, arg2, arg3, arg4, arg5) {
615
+ arg0.drawElementsInstancedANGLE(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5);
616
+ },
617
+ __wbg_drawElementsInstanced_2e549060a77ba831: function(arg0, arg1, arg2, arg3, arg4, arg5) {
618
+ arg0.drawElementsInstanced(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5);
619
+ },
620
+ __wbg_enableVertexAttribArray_60dadea3a00e104a: function(arg0, arg1) {
621
+ arg0.enableVertexAttribArray(arg1 >>> 0);
622
+ },
623
+ __wbg_enableVertexAttribArray_626e8d2d9d1fdff9: function(arg0, arg1) {
624
+ arg0.enableVertexAttribArray(arg1 >>> 0);
625
+ },
626
+ __wbg_enable_3728894fa8c1d348: function(arg0, arg1) {
627
+ arg0.enable(arg1 >>> 0);
628
+ },
629
+ __wbg_enable_91dff7f43064bb54: function(arg0, arg1) {
630
+ arg0.enable(arg1 >>> 0);
631
+ },
632
+ __wbg_endQuery_48241eaef2e96940: function(arg0, arg1) {
633
+ arg0.endQuery(arg1 >>> 0);
634
+ },
635
+ __wbg_entries_e8a20ff8c9757101: function(arg0) {
636
+ const ret = Object.entries(arg0);
637
+ return ret;
638
+ },
639
+ __wbg_error_a6fa202b58aa1cd3: function(arg0, arg1) {
640
+ let deferred0_0;
641
+ let deferred0_1;
642
+ try {
643
+ deferred0_0 = arg0;
644
+ deferred0_1 = arg1;
645
+ console.error(getStringFromWasm0(arg0, arg1));
646
+ } finally {
647
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
648
+ }
649
+ },
650
+ __wbg_fenceSync_460953d9ad5fd31a: function(arg0, arg1, arg2) {
651
+ const ret = arg0.fenceSync(arg1 >>> 0, arg2 >>> 0);
652
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
653
+ },
654
+ __wbg_fetch_5550a88cf343aaa9: function(arg0, arg1) {
655
+ const ret = arg0.fetch(arg1);
656
+ return ret;
657
+ },
658
+ __wbg_fetch_a67ca327c76f7fd9: function(arg0) {
659
+ const ret = fetch(arg0);
660
+ return ret;
661
+ },
662
+ __wbg_finish_255626a7aad7a2ee: function(arg0) {
663
+ arg0.finish();
664
+ },
665
+ __wbg_finish_66ab855eb5063bba: function(arg0) {
666
+ arg0.finish();
667
+ },
668
+ __wbg_flush_049a445c404024c2: function(arg0) {
669
+ arg0.flush();
670
+ },
671
+ __wbg_flush_c7dd5b1ae1447448: function(arg0) {
672
+ arg0.flush();
673
+ },
674
+ __wbg_framebufferRenderbuffer_7a2be23309166ad3: function(arg0, arg1, arg2, arg3, arg4) {
675
+ arg0.framebufferRenderbuffer(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4);
676
+ },
677
+ __wbg_framebufferRenderbuffer_d8c1d0b985bd3c51: function(arg0, arg1, arg2, arg3, arg4) {
678
+ arg0.framebufferRenderbuffer(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4);
679
+ },
680
+ __wbg_framebufferTexture2D_bf4d47f4027a3682: function(arg0, arg1, arg2, arg3, arg4, arg5) {
681
+ arg0.framebufferTexture2D(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4, arg5);
682
+ },
683
+ __wbg_framebufferTexture2D_e2f7d82e6707010e: function(arg0, arg1, arg2, arg3, arg4, arg5) {
684
+ arg0.framebufferTexture2D(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4, arg5);
685
+ },
686
+ __wbg_framebufferTextureLayer_01d5b9516636ccae: function(arg0, arg1, arg2, arg3, arg4, arg5) {
687
+ arg0.framebufferTextureLayer(arg1 >>> 0, arg2 >>> 0, arg3, arg4, arg5);
688
+ },
689
+ __wbg_framebufferTextureMultiviewOVR_336ea10e261ec5f6: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
690
+ arg0.framebufferTextureMultiviewOVR(arg1 >>> 0, arg2 >>> 0, arg3, arg4, arg5, arg6);
691
+ },
692
+ __wbg_frontFace_1537b8c3fc174f05: function(arg0, arg1) {
693
+ arg0.frontFace(arg1 >>> 0);
694
+ },
695
+ __wbg_frontFace_57081a0312eb822e: function(arg0, arg1) {
696
+ arg0.frontFace(arg1 >>> 0);
697
+ },
698
+ __wbg_getBufferSubData_cbabbb87d4c5c57d: function(arg0, arg1, arg2, arg3) {
699
+ arg0.getBufferSubData(arg1 >>> 0, arg2, arg3);
700
+ },
701
+ __wbg_getContext_07270456453ee7f5: function() { return handleError(function (arg0, arg1, arg2, arg3) {
702
+ const ret = arg0.getContext(getStringFromWasm0(arg1, arg2), arg3);
703
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
704
+ }, arguments); },
705
+ __wbg_getContext_794490fe04be926a: function() { return handleError(function (arg0, arg1, arg2, arg3) {
706
+ const ret = arg0.getContext(getStringFromWasm0(arg1, arg2), arg3);
707
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
708
+ }, arguments); },
709
+ __wbg_getExtension_0b8543b0c6b3068d: function() { return handleError(function (arg0, arg1, arg2) {
710
+ const ret = arg0.getExtension(getStringFromWasm0(arg1, arg2));
711
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
712
+ }, arguments); },
713
+ __wbg_getIndexedParameter_338c7c91cbabcf3e: function() { return handleError(function (arg0, arg1, arg2) {
714
+ const ret = arg0.getIndexedParameter(arg1 >>> 0, arg2 >>> 0);
715
+ return ret;
716
+ }, arguments); },
717
+ __wbg_getParameter_b1431cfde390c2fc: function() { return handleError(function (arg0, arg1) {
718
+ const ret = arg0.getParameter(arg1 >>> 0);
719
+ return ret;
720
+ }, arguments); },
721
+ __wbg_getParameter_e634fa73b5e25287: function() { return handleError(function (arg0, arg1) {
722
+ const ret = arg0.getParameter(arg1 >>> 0);
723
+ return ret;
724
+ }, arguments); },
725
+ __wbg_getProgramInfoLog_50443ddea7475f57: function(arg0, arg1, arg2) {
726
+ const ret = arg1.getProgramInfoLog(arg2);
727
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
728
+ var len1 = WASM_VECTOR_LEN;
729
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
730
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
731
+ },
732
+ __wbg_getProgramInfoLog_e03efa51473d657e: function(arg0, arg1, arg2) {
733
+ const ret = arg1.getProgramInfoLog(arg2);
734
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
735
+ var len1 = WASM_VECTOR_LEN;
736
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
737
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
738
+ },
739
+ __wbg_getProgramParameter_46e2d49878b56edd: function(arg0, arg1, arg2) {
740
+ const ret = arg0.getProgramParameter(arg1, arg2 >>> 0);
741
+ return ret;
742
+ },
743
+ __wbg_getProgramParameter_7d3bd54ec02de007: function(arg0, arg1, arg2) {
744
+ const ret = arg0.getProgramParameter(arg1, arg2 >>> 0);
745
+ return ret;
746
+ },
747
+ __wbg_getQueryParameter_5a3a2bd77e5f56bb: function(arg0, arg1, arg2) {
748
+ const ret = arg0.getQueryParameter(arg1, arg2 >>> 0);
749
+ return ret;
750
+ },
751
+ __wbg_getShaderInfoLog_22f9e8c90a52f38d: function(arg0, arg1, arg2) {
752
+ const ret = arg1.getShaderInfoLog(arg2);
753
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
754
+ var len1 = WASM_VECTOR_LEN;
755
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
756
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
757
+ },
758
+ __wbg_getShaderInfoLog_40c6a4ae67d82dde: function(arg0, arg1, arg2) {
759
+ const ret = arg1.getShaderInfoLog(arg2);
760
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
761
+ var len1 = WASM_VECTOR_LEN;
762
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
763
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
764
+ },
765
+ __wbg_getShaderParameter_46f64f7ca5d534db: function(arg0, arg1, arg2) {
766
+ const ret = arg0.getShaderParameter(arg1, arg2 >>> 0);
767
+ return ret;
768
+ },
769
+ __wbg_getShaderParameter_82c275299b111f1b: function(arg0, arg1, arg2) {
770
+ const ret = arg0.getShaderParameter(arg1, arg2 >>> 0);
771
+ return ret;
772
+ },
773
+ __wbg_getSupportedExtensions_a799751b74c3a674: function(arg0) {
774
+ const ret = arg0.getSupportedExtensions();
775
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
776
+ },
777
+ __wbg_getSupportedProfiles_e089393bebafd3b0: function(arg0) {
778
+ const ret = arg0.getSupportedProfiles();
779
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
780
+ },
781
+ __wbg_getSyncParameter_fbf70c60f5e3b271: function(arg0, arg1, arg2) {
782
+ const ret = arg0.getSyncParameter(arg1, arg2 >>> 0);
783
+ return ret;
784
+ },
785
+ __wbg_getUniformBlockIndex_e483a4d166df9c2a: function(arg0, arg1, arg2, arg3) {
786
+ const ret = arg0.getUniformBlockIndex(arg1, getStringFromWasm0(arg2, arg3));
787
+ return ret;
788
+ },
789
+ __wbg_getUniformLocation_5eb08673afa04eee: function(arg0, arg1, arg2, arg3) {
790
+ const ret = arg0.getUniformLocation(arg1, getStringFromWasm0(arg2, arg3));
791
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
792
+ },
793
+ __wbg_getUniformLocation_90cdff44c2fceeb9: function(arg0, arg1, arg2, arg3) {
794
+ const ret = arg0.getUniformLocation(arg1, getStringFromWasm0(arg2, arg3));
795
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
796
+ },
797
+ __wbg_get_326e41e095fb2575: function() { return handleError(function (arg0, arg1) {
798
+ const ret = Reflect.get(arg0, arg1);
799
+ return ret;
800
+ }, arguments); },
801
+ __wbg_get_3ef1eba1850ade27: function() { return handleError(function (arg0, arg1) {
802
+ const ret = Reflect.get(arg0, arg1);
803
+ return ret;
804
+ }, arguments); },
805
+ __wbg_get_a8ee5c45dabc1b3b: function(arg0, arg1) {
806
+ const ret = arg0[arg1 >>> 0];
807
+ return ret;
808
+ },
809
+ __wbg_get_offset_8af357cfc41137fe: function(arg0) {
810
+ const ret = arg0.offset;
811
+ return ret;
812
+ },
813
+ __wbg_get_stride_b1d479ea8a625527: function(arg0) {
814
+ const ret = arg0.stride;
815
+ return ret;
816
+ },
817
+ __wbg_get_unchecked_329cfe50afab7352: function(arg0, arg1) {
818
+ const ret = arg0[arg1 >>> 0];
819
+ return ret;
820
+ },
821
+ __wbg_get_with_ref_key_6412cf3094599694: function(arg0, arg1) {
822
+ const ret = arg0[arg1];
823
+ return ret;
824
+ },
825
+ __wbg_has_926ef2ff40b308cf: function() { return handleError(function (arg0, arg1) {
826
+ const ret = Reflect.has(arg0, arg1);
827
+ return ret;
828
+ }, arguments); },
829
+ __wbg_headers_eb2234545f9ff993: function(arg0) {
830
+ const ret = arg0.headers;
831
+ return ret;
832
+ },
833
+ __wbg_height_05531443b91baa6e: function(arg0) {
834
+ const ret = arg0.height;
835
+ return ret;
836
+ },
837
+ __wbg_height_6568c4427c3b889d: function(arg0) {
838
+ const ret = arg0.height;
839
+ return ret;
840
+ },
841
+ __wbg_height_8c06cb597de53887: function(arg0) {
842
+ const ret = arg0.height;
843
+ return ret;
844
+ },
845
+ __wbg_height_a6fcb48398bd1539: function(arg0) {
846
+ const ret = arg0.height;
847
+ return ret;
848
+ },
849
+ __wbg_height_ee9ea840e5499878: function(arg0) {
850
+ const ret = arg0.height;
851
+ return ret;
852
+ },
853
+ __wbg_height_fb8c4164276f25fd: function(arg0) {
854
+ const ret = arg0.height;
855
+ return ret;
856
+ },
857
+ __wbg_includes_9f81335525be01f9: function(arg0, arg1, arg2) {
858
+ const ret = arg0.includes(arg1, arg2);
859
+ return ret;
860
+ },
861
+ __wbg_instanceof_ArrayBuffer_101e2bf31071a9f6: function(arg0) {
862
+ let result;
863
+ try {
864
+ result = arg0 instanceof ArrayBuffer;
865
+ } catch (_) {
866
+ result = false;
867
+ }
868
+ const ret = result;
869
+ return ret;
870
+ },
871
+ __wbg_instanceof_HtmlCanvasElement_26125339f936be50: function(arg0) {
872
+ let result;
873
+ try {
874
+ result = arg0 instanceof HTMLCanvasElement;
875
+ } catch (_) {
876
+ result = false;
877
+ }
878
+ const ret = result;
879
+ return ret;
880
+ },
881
+ __wbg_instanceof_HtmlVideoElement_98eae938c0acfc14: function(arg0) {
882
+ let result;
883
+ try {
884
+ result = arg0 instanceof HTMLVideoElement;
885
+ } catch (_) {
886
+ result = false;
887
+ }
888
+ const ret = result;
889
+ return ret;
890
+ },
891
+ __wbg_instanceof_Map_f194b366846aca0c: function(arg0) {
892
+ let result;
893
+ try {
894
+ result = arg0 instanceof Map;
895
+ } catch (_) {
896
+ result = false;
897
+ }
898
+ const ret = result;
899
+ return ret;
900
+ },
901
+ __wbg_instanceof_Response_9b4d9fd451e051b1: function(arg0) {
902
+ let result;
903
+ try {
904
+ result = arg0 instanceof Response;
905
+ } catch (_) {
906
+ result = false;
907
+ }
908
+ const ret = result;
909
+ return ret;
910
+ },
911
+ __wbg_instanceof_Uint8Array_740438561a5b956d: function(arg0) {
912
+ let result;
913
+ try {
914
+ result = arg0 instanceof Uint8Array;
915
+ } catch (_) {
916
+ result = false;
917
+ }
918
+ const ret = result;
919
+ return ret;
920
+ },
921
+ __wbg_instanceof_VideoFrame_94bf646af0f6e9d8: function(arg0) {
922
+ let result;
923
+ try {
924
+ result = arg0 instanceof VideoFrame;
925
+ } catch (_) {
926
+ result = false;
927
+ }
928
+ const ret = result;
929
+ return ret;
930
+ },
931
+ __wbg_instanceof_WebGl2RenderingContext_349f232f715e6bc2: function(arg0) {
932
+ let result;
933
+ try {
934
+ result = arg0 instanceof WebGL2RenderingContext;
935
+ } catch (_) {
936
+ result = false;
937
+ }
938
+ const ret = result;
939
+ return ret;
940
+ },
941
+ __wbg_instanceof_Window_23e677d2c6843922: function(arg0) {
942
+ let result;
943
+ try {
944
+ result = arg0 instanceof Window;
945
+ } catch (_) {
946
+ result = false;
947
+ }
948
+ const ret = result;
949
+ return ret;
950
+ },
951
+ __wbg_invalidateFramebuffer_df9574509a402d4f: function() { return handleError(function (arg0, arg1, arg2) {
952
+ arg0.invalidateFramebuffer(arg1 >>> 0, arg2);
953
+ }, arguments); },
954
+ __wbg_isArray_33b91feb269ff46e: function(arg0) {
955
+ const ret = Array.isArray(arg0);
956
+ return ret;
957
+ },
958
+ __wbg_isSafeInteger_ecd6a7f9c3e053cd: function(arg0) {
959
+ const ret = Number.isSafeInteger(arg0);
960
+ return ret;
961
+ },
962
+ __wbg_is_a166b9958c2438ad: function(arg0, arg1) {
963
+ const ret = Object.is(arg0, arg1);
964
+ return ret;
965
+ },
966
+ __wbg_iterator_d8f549ec8fb061b1: function() {
967
+ const ret = Symbol.iterator;
968
+ return ret;
969
+ },
970
+ __wbg_length_b3416cf66a5452c8: function(arg0) {
971
+ const ret = arg0.length;
972
+ return ret;
973
+ },
974
+ __wbg_length_ea16607d7b61445b: function(arg0) {
975
+ const ret = arg0.length;
976
+ return ret;
977
+ },
978
+ __wbg_linkProgram_b969f67969a850b5: function(arg0, arg1) {
979
+ arg0.linkProgram(arg1);
980
+ },
981
+ __wbg_linkProgram_e626a3e7d78e1738: function(arg0, arg1) {
982
+ arg0.linkProgram(arg1);
983
+ },
984
+ __wbg_log_0c201ade58bb55e1: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
985
+ let deferred0_0;
986
+ let deferred0_1;
987
+ try {
988
+ deferred0_0 = arg0;
989
+ deferred0_1 = arg1;
990
+ console.log(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3), getStringFromWasm0(arg4, arg5), getStringFromWasm0(arg6, arg7));
991
+ } finally {
992
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
993
+ }
994
+ },
995
+ __wbg_log_ce2c4456b290c5e7: function(arg0, arg1) {
996
+ let deferred0_0;
997
+ let deferred0_1;
998
+ try {
999
+ deferred0_0 = arg0;
1000
+ deferred0_1 = arg1;
1001
+ console.log(getStringFromWasm0(arg0, arg1));
1002
+ } finally {
1003
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1004
+ }
1005
+ },
1006
+ __wbg_mark_b4d943f3bc2d2404: function(arg0, arg1) {
1007
+ performance.mark(getStringFromWasm0(arg0, arg1));
1008
+ },
1009
+ __wbg_measure_84362959e621a2c1: function() { return handleError(function (arg0, arg1, arg2, arg3) {
1010
+ let deferred0_0;
1011
+ let deferred0_1;
1012
+ let deferred1_0;
1013
+ let deferred1_1;
1014
+ try {
1015
+ deferred0_0 = arg0;
1016
+ deferred0_1 = arg1;
1017
+ deferred1_0 = arg2;
1018
+ deferred1_1 = arg3;
1019
+ performance.measure(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
1020
+ } finally {
1021
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1022
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
1023
+ }
1024
+ }, arguments); },
1025
+ __wbg_new_0837727332ac86ba: function() { return handleError(function () {
1026
+ const ret = new Headers();
1027
+ return ret;
1028
+ }, arguments); },
1029
+ __wbg_new_227d7c05414eb861: function() {
1030
+ const ret = new Error();
1031
+ return ret;
1032
+ },
1033
+ __wbg_new_5f486cdf45a04d78: function(arg0) {
1034
+ const ret = new Uint8Array(arg0);
1035
+ return ret;
1036
+ },
1037
+ __wbg_new_a70fbab9066b301f: function() {
1038
+ const ret = new Array();
1039
+ return ret;
1040
+ },
1041
+ __wbg_new_ab79df5bd7c26067: function() {
1042
+ const ret = new Object();
1043
+ return ret;
1044
+ },
1045
+ __wbg_new_bd6c634574cbafea: function() { return handleError(function (arg0, arg1) {
1046
+ const ret = new OffscreenCanvas(arg0 >>> 0, arg1 >>> 0);
1047
+ return ret;
1048
+ }, arguments); },
1049
+ __wbg_new_c518c60af666645b: function() { return handleError(function () {
1050
+ const ret = new AbortController();
1051
+ return ret;
1052
+ }, arguments); },
1053
+ __wbg_new_from_slice_22da9388ac046e50: function(arg0, arg1) {
1054
+ const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
1055
+ return ret;
1056
+ },
1057
+ __wbg_new_typed_aaaeaf29cf802876: function(arg0, arg1) {
1058
+ try {
1059
+ var state0 = {a: arg0, b: arg1};
1060
+ var cb0 = (arg0, arg1) => {
1061
+ const a = state0.a;
1062
+ state0.a = 0;
1063
+ try {
1064
+ return wasm_bindgen__convert__closures_____invoke__h0eca19496d54df4c(a, state0.b, arg0, arg1);
1065
+ } finally {
1066
+ state0.a = a;
1067
+ }
1068
+ };
1069
+ const ret = new Promise(cb0);
1070
+ return ret;
1071
+ } finally {
1072
+ state0.a = state0.b = 0;
1073
+ }
1074
+ },
1075
+ __wbg_new_with_str_and_init_b4b54d1a819bc724: function() { return handleError(function (arg0, arg1, arg2) {
1076
+ const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
1077
+ return ret;
1078
+ }, arguments); },
1079
+ __wbg_next_11b99ee6237339e3: function() { return handleError(function (arg0) {
1080
+ const ret = arg0.next();
1081
+ return ret;
1082
+ }, arguments); },
1083
+ __wbg_next_e01a967809d1aa68: function(arg0) {
1084
+ const ret = arg0.next;
1085
+ return ret;
1086
+ },
1087
+ __wbg_of_8bf7ed3eca00ea43: function(arg0) {
1088
+ const ret = Array.of(arg0);
1089
+ return ret;
1090
+ },
1091
+ __wbg_of_f7037244e9a226a0: function(arg0, arg1) {
1092
+ const ret = Array.of(...getArrayJsValueViewFromWasm0(arg0, arg1));
1093
+ return ret;
1094
+ },
1095
+ __wbg_pixelStorei_2a2385ed59538d48: function(arg0, arg1, arg2) {
1096
+ arg0.pixelStorei(arg1 >>> 0, arg2);
1097
+ },
1098
+ __wbg_pixelStorei_2a3c5b85cf37caba: function(arg0, arg1, arg2) {
1099
+ arg0.pixelStorei(arg1 >>> 0, arg2);
1100
+ },
1101
+ __wbg_polygonOffset_17cb85e417bf9db7: function(arg0, arg1, arg2) {
1102
+ arg0.polygonOffset(arg1, arg2);
1103
+ },
1104
+ __wbg_polygonOffset_cc6bec2f9f4a18f7: function(arg0, arg1, arg2) {
1105
+ arg0.polygonOffset(arg1, arg2);
1106
+ },
1107
+ __wbg_prototypesetcall_d62e5099504357e6: function(arg0, arg1, arg2) {
1108
+ Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
1109
+ },
1110
+ __wbg_push_e87b0e732085a946: function(arg0, arg1) {
1111
+ const ret = arg0.push(arg1);
1112
+ return ret;
1113
+ },
1114
+ __wbg_queryCounterEXT_12ca9f560a5855cb: function(arg0, arg1, arg2) {
1115
+ arg0.queryCounterEXT(arg1, arg2 >>> 0);
1116
+ },
1117
+ __wbg_querySelector_46ff1b81410aebea: function() { return handleError(function (arg0, arg1, arg2) {
1118
+ const ret = arg0.querySelector(getStringFromWasm0(arg1, arg2));
1119
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1120
+ }, arguments); },
1121
+ __wbg_queueMicrotask_0c399741342fb10f: function(arg0) {
1122
+ const ret = arg0.queueMicrotask;
1123
+ return ret;
1124
+ },
1125
+ __wbg_queueMicrotask_a082d78ce798393e: function(arg0) {
1126
+ queueMicrotask(arg0);
1127
+ },
1128
+ __wbg_readBuffer_e559a3da4aa9e434: function(arg0, arg1) {
1129
+ arg0.readBuffer(arg1 >>> 0);
1130
+ },
1131
+ __wbg_readPixels_41a371053c299080: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
1132
+ arg0.readPixels(arg1, arg2, arg3, arg4, arg5 >>> 0, arg6 >>> 0, arg7);
1133
+ }, arguments); },
1134
+ __wbg_readPixels_5c7066b5bd547f81: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
1135
+ arg0.readPixels(arg1, arg2, arg3, arg4, arg5 >>> 0, arg6 >>> 0, arg7);
1136
+ }, arguments); },
1137
+ __wbg_readPixels_f675ed52bd44f8f1: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
1138
+ arg0.readPixels(arg1, arg2, arg3, arg4, arg5 >>> 0, arg6 >>> 0, arg7);
1139
+ }, arguments); },
1140
+ __wbg_renderbufferStorageMultisample_d999a80fbc25df5f: function(arg0, arg1, arg2, arg3, arg4, arg5) {
1141
+ arg0.renderbufferStorageMultisample(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5);
1142
+ },
1143
+ __wbg_renderbufferStorage_9130171a6ae371dc: function(arg0, arg1, arg2, arg3, arg4) {
1144
+ arg0.renderbufferStorage(arg1 >>> 0, arg2 >>> 0, arg3, arg4);
1145
+ },
1146
+ __wbg_renderbufferStorage_b184ea29064b4e02: function(arg0, arg1, arg2, arg3, arg4) {
1147
+ arg0.renderbufferStorage(arg1 >>> 0, arg2 >>> 0, arg3, arg4);
1148
+ },
1149
+ __wbg_resolve_ae8d83246e5bcc12: function(arg0) {
1150
+ const ret = Promise.resolve(arg0);
1151
+ return ret;
1152
+ },
1153
+ __wbg_samplerParameterf_774cff2229cc9fc3: function(arg0, arg1, arg2, arg3) {
1154
+ arg0.samplerParameterf(arg1, arg2 >>> 0, arg3);
1155
+ },
1156
+ __wbg_samplerParameteri_7dde222b01588620: function(arg0, arg1, arg2, arg3) {
1157
+ arg0.samplerParameteri(arg1, arg2 >>> 0, arg3);
1158
+ },
1159
+ __wbg_scissor_b18f09381b341db5: function(arg0, arg1, arg2, arg3, arg4) {
1160
+ arg0.scissor(arg1, arg2, arg3, arg4);
1161
+ },
1162
+ __wbg_scissor_db3842546fb31842: function(arg0, arg1, arg2, arg3, arg4) {
1163
+ arg0.scissor(arg1, arg2, arg3, arg4);
1164
+ },
1165
+ __wbg_set_7eaa4f96924fd6b3: function() { return handleError(function (arg0, arg1, arg2) {
1166
+ const ret = Reflect.set(arg0, arg1, arg2);
1167
+ return ret;
1168
+ }, arguments); },
1169
+ __wbg_set_body_a3d856b097dfda04: function(arg0, arg1) {
1170
+ arg0.body = arg1;
1171
+ },
1172
+ __wbg_set_credentials_ed63183445882c65: function(arg0, arg1) {
1173
+ arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
1174
+ },
1175
+ __wbg_set_format_d464b6591cc4d0a2: function(arg0, arg1) {
1176
+ arg0.format = __wbindgen_enum_VideoPixelFormat[arg1];
1177
+ },
1178
+ __wbg_set_headers_3c8fecc693b75327: function(arg0, arg1) {
1179
+ arg0.headers = arg1;
1180
+ },
1181
+ __wbg_set_height_98a1a397672657e2: function(arg0, arg1) {
1182
+ arg0.height = arg1 >>> 0;
1183
+ },
1184
+ __wbg_set_height_b6548a01bdcb689a: function(arg0, arg1) {
1185
+ arg0.height = arg1 >>> 0;
1186
+ },
1187
+ __wbg_set_layout_99cc95d4d1c74888: function(arg0, arg1, arg2) {
1188
+ arg0.layout = getArrayJsValueViewFromWasm0(arg1, arg2);
1189
+ },
1190
+ __wbg_set_method_8c015e8bcafd7be1: function(arg0, arg1, arg2) {
1191
+ arg0.method = getStringFromWasm0(arg1, arg2);
1192
+ },
1193
+ __wbg_set_mode_5a87f2c809cf37c2: function(arg0, arg1) {
1194
+ arg0.mode = __wbindgen_enum_RequestMode[arg1];
1195
+ },
1196
+ __wbg_set_offset_65fa97a2f612ba33: function(arg0, arg1) {
1197
+ arg0.offset = arg1 >>> 0;
1198
+ },
1199
+ __wbg_set_signal_0cebecb698f25d21: function(arg0, arg1) {
1200
+ arg0.signal = arg1;
1201
+ },
1202
+ __wbg_set_stride_3263626d8ab057d0: function(arg0, arg1) {
1203
+ arg0.stride = arg1 >>> 0;
1204
+ },
1205
+ __wbg_set_width_576343a4a7f2cf28: function(arg0, arg1) {
1206
+ arg0.width = arg1 >>> 0;
1207
+ },
1208
+ __wbg_set_width_c0fcaa2da53cd540: function(arg0, arg1) {
1209
+ arg0.width = arg1 >>> 0;
1210
+ },
1211
+ __wbg_shaderSource_06639e7b476e6ac2: function(arg0, arg1, arg2, arg3) {
1212
+ arg0.shaderSource(arg1, getStringFromWasm0(arg2, arg3));
1213
+ },
1214
+ __wbg_shaderSource_2bca0edc97475e95: function(arg0, arg1, arg2, arg3) {
1215
+ arg0.shaderSource(arg1, getStringFromWasm0(arg2, arg3));
1216
+ },
1217
+ __wbg_signal_166e1da31adcac18: function(arg0) {
1218
+ const ret = arg0.signal;
1219
+ return ret;
1220
+ },
1221
+ __wbg_smelterrenderer_new: function(arg0) {
1222
+ const ret = SmelterRenderer.__wrap(arg0);
1223
+ return ret;
1224
+ },
1225
+ __wbg_stack_3b0d974bbf31e44f: function(arg0, arg1) {
1226
+ const ret = arg1.stack;
1227
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1228
+ const len1 = WASM_VECTOR_LEN;
1229
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1230
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1231
+ },
1232
+ __wbg_static_accessor_GLOBAL_8adb955bd33fac2f: function() {
1233
+ const ret = typeof global === 'undefined' ? null : global;
1234
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1235
+ },
1236
+ __wbg_static_accessor_GLOBAL_THIS_ad356e0db91c7913: function() {
1237
+ const ret = typeof globalThis === 'undefined' ? null : globalThis;
1238
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1239
+ },
1240
+ __wbg_static_accessor_SELF_f207c857566db248: function() {
1241
+ const ret = typeof self === 'undefined' ? null : self;
1242
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1243
+ },
1244
+ __wbg_static_accessor_WINDOW_bb9f1ba69d61b386: function() {
1245
+ const ret = typeof window === 'undefined' ? null : window;
1246
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1247
+ },
1248
+ __wbg_status_318629ab93a22955: function(arg0) {
1249
+ const ret = arg0.status;
1250
+ return ret;
1251
+ },
1252
+ __wbg_stencilFuncSeparate_18642df0574c1930: function(arg0, arg1, arg2, arg3, arg4) {
1253
+ arg0.stencilFuncSeparate(arg1 >>> 0, arg2 >>> 0, arg3, arg4 >>> 0);
1254
+ },
1255
+ __wbg_stencilFuncSeparate_94ee4fbc164addec: function(arg0, arg1, arg2, arg3, arg4) {
1256
+ arg0.stencilFuncSeparate(arg1 >>> 0, arg2 >>> 0, arg3, arg4 >>> 0);
1257
+ },
1258
+ __wbg_stencilMaskSeparate_13b0475860a9b559: function(arg0, arg1, arg2) {
1259
+ arg0.stencilMaskSeparate(arg1 >>> 0, arg2 >>> 0);
1260
+ },
1261
+ __wbg_stencilMaskSeparate_a7bd409376ee05ff: function(arg0, arg1, arg2) {
1262
+ arg0.stencilMaskSeparate(arg1 >>> 0, arg2 >>> 0);
1263
+ },
1264
+ __wbg_stencilMask_326a11d0928c3808: function(arg0, arg1) {
1265
+ arg0.stencilMask(arg1 >>> 0);
1266
+ },
1267
+ __wbg_stencilMask_6354f8ba392f6581: function(arg0, arg1) {
1268
+ arg0.stencilMask(arg1 >>> 0);
1269
+ },
1270
+ __wbg_stencilOpSeparate_7e819381705b9731: function(arg0, arg1, arg2, arg3, arg4) {
1271
+ arg0.stencilOpSeparate(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
1272
+ },
1273
+ __wbg_stencilOpSeparate_8627d0f5f7fe5800: function(arg0, arg1, arg2, arg3, arg4) {
1274
+ arg0.stencilOpSeparate(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
1275
+ },
1276
+ __wbg_stringify_5ae93966a84901ac: function() { return handleError(function (arg0) {
1277
+ const ret = JSON.stringify(arg0);
1278
+ return ret;
1279
+ }, arguments); },
1280
+ __wbg_texImage2D_32ed4220040ca614: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
1281
+ arg0.texImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
1282
+ }, arguments); },
1283
+ __wbg_texImage2D_d8c284c813952313: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
1284
+ arg0.texImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
1285
+ }, arguments); },
1286
+ __wbg_texImage2D_f4ae6c314a9a4bbe: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
1287
+ arg0.texImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
1288
+ }, arguments); },
1289
+ __wbg_texImage3D_88ff1fa41be127b9: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) {
1290
+ arg0.texImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8 >>> 0, arg9 >>> 0, arg10);
1291
+ }, arguments); },
1292
+ __wbg_texImage3D_9a207e0459a4f276: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) {
1293
+ arg0.texImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8 >>> 0, arg9 >>> 0, arg10);
1294
+ }, arguments); },
1295
+ __wbg_texParameteri_f4b1596185f5432d: function(arg0, arg1, arg2, arg3) {
1296
+ arg0.texParameteri(arg1 >>> 0, arg2 >>> 0, arg3);
1297
+ },
1298
+ __wbg_texParameteri_fcdec30159061963: function(arg0, arg1, arg2, arg3) {
1299
+ arg0.texParameteri(arg1 >>> 0, arg2 >>> 0, arg3);
1300
+ },
1301
+ __wbg_texStorage2D_a84f74d36d279097: function(arg0, arg1, arg2, arg3, arg4, arg5) {
1302
+ arg0.texStorage2D(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5);
1303
+ },
1304
+ __wbg_texStorage3D_aec6fc3e85ec72da: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
1305
+ arg0.texStorage3D(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5, arg6);
1306
+ },
1307
+ __wbg_texSubImage2D_1e7d6febf82b9bed: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
1308
+ arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
1309
+ }, arguments); },
1310
+ __wbg_texSubImage2D_271ffedb47424d0d: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
1311
+ arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
1312
+ }, arguments); },
1313
+ __wbg_texSubImage2D_3bb41b987f2bfe39: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
1314
+ arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
1315
+ }, arguments); },
1316
+ __wbg_texSubImage2D_68e0413824eddc12: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
1317
+ arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
1318
+ }, arguments); },
1319
+ __wbg_texSubImage2D_b6cdbbe62097211a: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
1320
+ arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
1321
+ }, arguments); },
1322
+ __wbg_texSubImage2D_c8919d8f32f723da: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
1323
+ arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
1324
+ }, arguments); },
1325
+ __wbg_texSubImage2D_d784df0b813dc1ab: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
1326
+ arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
1327
+ }, arguments); },
1328
+ __wbg_texSubImage2D_dd1d50234b61de4b: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
1329
+ arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
1330
+ }, arguments); },
1331
+ __wbg_texSubImage2D_eed9b8496b4c88ec: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
1332
+ arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
1333
+ }, arguments); },
1334
+ __wbg_texSubImage3D_09cc863aedf44a21: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
1335
+ arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11);
1336
+ }, arguments); },
1337
+ __wbg_texSubImage3D_2f39df2a5c3de8a0: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
1338
+ arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11);
1339
+ }, arguments); },
1340
+ __wbg_texSubImage3D_4665e67a8f0f7806: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
1341
+ arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11);
1342
+ }, arguments); },
1343
+ __wbg_texSubImage3D_61ed187f3ec11ecc: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
1344
+ arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11);
1345
+ }, arguments); },
1346
+ __wbg_texSubImage3D_6a46981af8bc8e49: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
1347
+ arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11);
1348
+ }, arguments); },
1349
+ __wbg_texSubImage3D_9eca35d234d51b8a: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
1350
+ arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11);
1351
+ }, arguments); },
1352
+ __wbg_texSubImage3D_b3cbbb79fe54da6d: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
1353
+ arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11);
1354
+ }, arguments); },
1355
+ __wbg_texSubImage3D_f9c3af789162846a: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
1356
+ arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11);
1357
+ }, arguments); },
1358
+ __wbg_then_098abe61755d12f6: function(arg0, arg1) {
1359
+ const ret = arg0.then(arg1);
1360
+ return ret;
1361
+ },
1362
+ __wbg_then_9e335f6dd892bc11: function(arg0, arg1, arg2) {
1363
+ const ret = arg0.then(arg1, arg2);
1364
+ return ret;
1365
+ },
1366
+ __wbg_uniform1f_8c3b03df282dba21: function(arg0, arg1, arg2) {
1367
+ arg0.uniform1f(arg1, arg2);
1368
+ },
1369
+ __wbg_uniform1f_b8841988568406b9: function(arg0, arg1, arg2) {
1370
+ arg0.uniform1f(arg1, arg2);
1371
+ },
1372
+ __wbg_uniform1i_953040fb972e9fab: function(arg0, arg1, arg2) {
1373
+ arg0.uniform1i(arg1, arg2);
1374
+ },
1375
+ __wbg_uniform1i_acd89bea81085be4: function(arg0, arg1, arg2) {
1376
+ arg0.uniform1i(arg1, arg2);
1377
+ },
1378
+ __wbg_uniform1ui_9f8d9b877d6691d8: function(arg0, arg1, arg2) {
1379
+ arg0.uniform1ui(arg1, arg2 >>> 0);
1380
+ },
1381
+ __wbg_uniform2fv_28fbf8836f3045d0: function(arg0, arg1, arg2, arg3) {
1382
+ arg0.uniform2fv(arg1, getArrayF32FromWasm0(arg2, arg3));
1383
+ },
1384
+ __wbg_uniform2fv_f3c92aab21d0dec3: function(arg0, arg1, arg2, arg3) {
1385
+ arg0.uniform2fv(arg1, getArrayF32FromWasm0(arg2, arg3));
1386
+ },
1387
+ __wbg_uniform2iv_892b6d31137ad198: function(arg0, arg1, arg2, arg3) {
1388
+ arg0.uniform2iv(arg1, getArrayI32FromWasm0(arg2, arg3));
1389
+ },
1390
+ __wbg_uniform2iv_f40f632615c5685a: function(arg0, arg1, arg2, arg3) {
1391
+ arg0.uniform2iv(arg1, getArrayI32FromWasm0(arg2, arg3));
1392
+ },
1393
+ __wbg_uniform2uiv_6d170469a702f23e: function(arg0, arg1, arg2, arg3) {
1394
+ arg0.uniform2uiv(arg1, getArrayU32FromWasm0(arg2, arg3));
1395
+ },
1396
+ __wbg_uniform3fv_85a9a17c9635941b: function(arg0, arg1, arg2, arg3) {
1397
+ arg0.uniform3fv(arg1, getArrayF32FromWasm0(arg2, arg3));
1398
+ },
1399
+ __wbg_uniform3fv_cdf7c84f9119f13b: function(arg0, arg1, arg2, arg3) {
1400
+ arg0.uniform3fv(arg1, getArrayF32FromWasm0(arg2, arg3));
1401
+ },
1402
+ __wbg_uniform3iv_38e74d2ae9dfbfb8: function(arg0, arg1, arg2, arg3) {
1403
+ arg0.uniform3iv(arg1, getArrayI32FromWasm0(arg2, arg3));
1404
+ },
1405
+ __wbg_uniform3iv_4c372010ac6def3f: function(arg0, arg1, arg2, arg3) {
1406
+ arg0.uniform3iv(arg1, getArrayI32FromWasm0(arg2, arg3));
1407
+ },
1408
+ __wbg_uniform3uiv_bb7266bb3a5aef96: function(arg0, arg1, arg2, arg3) {
1409
+ arg0.uniform3uiv(arg1, getArrayU32FromWasm0(arg2, arg3));
1410
+ },
1411
+ __wbg_uniform4f_0b00a34f4789ad14: function(arg0, arg1, arg2, arg3, arg4, arg5) {
1412
+ arg0.uniform4f(arg1, arg2, arg3, arg4, arg5);
1413
+ },
1414
+ __wbg_uniform4f_7275e0fb864b7513: function(arg0, arg1, arg2, arg3, arg4, arg5) {
1415
+ arg0.uniform4f(arg1, arg2, arg3, arg4, arg5);
1416
+ },
1417
+ __wbg_uniform4fv_a4cdb4bd66867df5: function(arg0, arg1, arg2, arg3) {
1418
+ arg0.uniform4fv(arg1, getArrayF32FromWasm0(arg2, arg3));
1419
+ },
1420
+ __wbg_uniform4fv_c416900acf65eca9: function(arg0, arg1, arg2, arg3) {
1421
+ arg0.uniform4fv(arg1, getArrayF32FromWasm0(arg2, arg3));
1422
+ },
1423
+ __wbg_uniform4iv_b49cd4acf0aa3ebc: function(arg0, arg1, arg2, arg3) {
1424
+ arg0.uniform4iv(arg1, getArrayI32FromWasm0(arg2, arg3));
1425
+ },
1426
+ __wbg_uniform4iv_d654af0e6b7bdb1a: function(arg0, arg1, arg2, arg3) {
1427
+ arg0.uniform4iv(arg1, getArrayI32FromWasm0(arg2, arg3));
1428
+ },
1429
+ __wbg_uniform4uiv_e95d9a124fb8f91e: function(arg0, arg1, arg2, arg3) {
1430
+ arg0.uniform4uiv(arg1, getArrayU32FromWasm0(arg2, arg3));
1431
+ },
1432
+ __wbg_uniformBlockBinding_a47fa267662afd7b: function(arg0, arg1, arg2, arg3) {
1433
+ arg0.uniformBlockBinding(arg1, arg2 >>> 0, arg3 >>> 0);
1434
+ },
1435
+ __wbg_uniformMatrix2fv_4229ae27417c649a: function(arg0, arg1, arg2, arg3, arg4) {
1436
+ arg0.uniformMatrix2fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
1437
+ },
1438
+ __wbg_uniformMatrix2fv_648417dd2040de5b: function(arg0, arg1, arg2, arg3, arg4) {
1439
+ arg0.uniformMatrix2fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
1440
+ },
1441
+ __wbg_uniformMatrix2x3fv_eb9a53c8c9aa724b: function(arg0, arg1, arg2, arg3, arg4) {
1442
+ arg0.uniformMatrix2x3fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
1443
+ },
1444
+ __wbg_uniformMatrix2x4fv_8849517a52f2e845: function(arg0, arg1, arg2, arg3, arg4) {
1445
+ arg0.uniformMatrix2x4fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
1446
+ },
1447
+ __wbg_uniformMatrix3fv_244fc4416319c169: function(arg0, arg1, arg2, arg3, arg4) {
1448
+ arg0.uniformMatrix3fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
1449
+ },
1450
+ __wbg_uniformMatrix3fv_bafc2707d0c48e27: function(arg0, arg1, arg2, arg3, arg4) {
1451
+ arg0.uniformMatrix3fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
1452
+ },
1453
+ __wbg_uniformMatrix3x2fv_f1729eb13fcd41a3: function(arg0, arg1, arg2, arg3, arg4) {
1454
+ arg0.uniformMatrix3x2fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
1455
+ },
1456
+ __wbg_uniformMatrix3x4fv_3c11181f5fa929de: function(arg0, arg1, arg2, arg3, arg4) {
1457
+ arg0.uniformMatrix3x4fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
1458
+ },
1459
+ __wbg_uniformMatrix4fv_4d322b295d122214: function(arg0, arg1, arg2, arg3, arg4) {
1460
+ arg0.uniformMatrix4fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
1461
+ },
1462
+ __wbg_uniformMatrix4fv_7c68dee5aee11694: function(arg0, arg1, arg2, arg3, arg4) {
1463
+ arg0.uniformMatrix4fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
1464
+ },
1465
+ __wbg_uniformMatrix4x2fv_5a8701b552d704af: function(arg0, arg1, arg2, arg3, arg4) {
1466
+ arg0.uniformMatrix4x2fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
1467
+ },
1468
+ __wbg_uniformMatrix4x3fv_741c3f4e0b2c7e04: function(arg0, arg1, arg2, arg3, arg4) {
1469
+ arg0.uniformMatrix4x3fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
1470
+ },
1471
+ __wbg_url_7fefc1820fba4e0c: function(arg0, arg1) {
1472
+ const ret = arg1.url;
1473
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1474
+ const len1 = WASM_VECTOR_LEN;
1475
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1476
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1477
+ },
1478
+ __wbg_useProgram_49b77c7558a0646a: function(arg0, arg1) {
1479
+ arg0.useProgram(arg1);
1480
+ },
1481
+ __wbg_useProgram_5405b431988b837b: function(arg0, arg1) {
1482
+ arg0.useProgram(arg1);
1483
+ },
1484
+ __wbg_value_21fc78aab0322612: function(arg0) {
1485
+ const ret = arg0.value;
1486
+ return ret;
1487
+ },
1488
+ __wbg_vertexAttribDivisorANGLE_b357aa2bf70d3dcf: function(arg0, arg1, arg2) {
1489
+ arg0.vertexAttribDivisorANGLE(arg1 >>> 0, arg2 >>> 0);
1490
+ },
1491
+ __wbg_vertexAttribDivisor_99b2fd5affca539d: function(arg0, arg1, arg2) {
1492
+ arg0.vertexAttribDivisor(arg1 >>> 0, arg2 >>> 0);
1493
+ },
1494
+ __wbg_vertexAttribIPointer_ecd3baef73ba0965: function(arg0, arg1, arg2, arg3, arg4, arg5) {
1495
+ arg0.vertexAttribIPointer(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5);
1496
+ },
1497
+ __wbg_vertexAttribPointer_ea73fc4cc5b7d647: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
1498
+ arg0.vertexAttribPointer(arg1 >>> 0, arg2, arg3 >>> 0, arg4 !== 0, arg5, arg6);
1499
+ },
1500
+ __wbg_vertexAttribPointer_f63675d7fad431e6: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
1501
+ arg0.vertexAttribPointer(arg1 >>> 0, arg2, arg3 >>> 0, arg4 !== 0, arg5, arg6);
1502
+ },
1503
+ __wbg_videoHeight_6dac1fd954779498: function(arg0) {
1504
+ const ret = arg0.videoHeight;
1505
+ return ret;
1506
+ },
1507
+ __wbg_videoWidth_48f094fdc1b5ba64: function(arg0) {
1508
+ const ret = arg0.videoWidth;
1509
+ return ret;
1510
+ },
1511
+ __wbg_viewport_63ee76a0f029804d: function(arg0, arg1, arg2, arg3, arg4) {
1512
+ arg0.viewport(arg1, arg2, arg3, arg4);
1513
+ },
1514
+ __wbg_viewport_b60aceadb9166023: function(arg0, arg1, arg2, arg3, arg4) {
1515
+ arg0.viewport(arg1, arg2, arg3, arg4);
1516
+ },
1517
+ __wbg_visibleRect_3a79fd26f7a7ee75: function(arg0) {
1518
+ const ret = arg0.visibleRect;
1519
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1520
+ },
1521
+ __wbg_width_462295a1353ea71b: function(arg0) {
1522
+ const ret = arg0.width;
1523
+ return ret;
1524
+ },
1525
+ __wbg_width_4d6fc7fecd877217: function(arg0) {
1526
+ const ret = arg0.width;
1527
+ return ret;
1528
+ },
1529
+ __wbg_width_6a767700990b90f4: function(arg0) {
1530
+ const ret = arg0.width;
1531
+ return ret;
1532
+ },
1533
+ __wbg_width_71d9d44b5e14c4b7: function(arg0) {
1534
+ const ret = arg0.width;
1535
+ return ret;
1536
+ },
1537
+ __wbg_width_9824c1a2c17d3ebd: function(arg0) {
1538
+ const ret = arg0.width;
1539
+ return ret;
1540
+ },
1541
+ __wbg_width_e0981c16dad36a72: function(arg0) {
1542
+ const ret = arg0.width;
1543
+ return ret;
1544
+ },
1545
+ __wbindgen_cast_0000000000000001: function(arg0, arg1) {
1546
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 1094, function: Function { arguments: [Externref], shim_idx: 1095, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
1547
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hcc9fdb6d14a51d25, wasm_bindgen__convert__closures_____invoke__h3330ba85794318a5);
1548
+ return ret;
1549
+ },
1550
+ __wbindgen_cast_0000000000000002: function(arg0, arg1) {
1551
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 392, function: Function { arguments: [NamedExternref("Array<any>")], shim_idx: 423, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
1552
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h703ca3863aed4699, wasm_bindgen__convert__closures_____invoke__h0a5294ff1262b3c9);
1553
+ return ret;
1554
+ },
1555
+ __wbindgen_cast_0000000000000003: function(arg0) {
1556
+ // Cast intrinsic for `F64 -> Externref`.
1557
+ const ret = arg0;
1558
+ return ret;
1559
+ },
1560
+ __wbindgen_cast_0000000000000004: function(arg0) {
1561
+ // Cast intrinsic for `I64 -> Externref`.
1562
+ const ret = arg0;
1563
+ return ret;
1564
+ },
1565
+ __wbindgen_cast_0000000000000005: function(arg0, arg1) {
1566
+ // Cast intrinsic for `Ref(Slice(F32)) -> NamedExternref("Float32Array")`.
1567
+ const ret = getArrayF32FromWasm0(arg0, arg1);
1568
+ return ret;
1569
+ },
1570
+ __wbindgen_cast_0000000000000006: function(arg0, arg1) {
1571
+ // Cast intrinsic for `Ref(Slice(I16)) -> NamedExternref("Int16Array")`.
1572
+ const ret = getArrayI16FromWasm0(arg0, arg1);
1573
+ return ret;
1574
+ },
1575
+ __wbindgen_cast_0000000000000007: function(arg0, arg1) {
1576
+ // Cast intrinsic for `Ref(Slice(I32)) -> NamedExternref("Int32Array")`.
1577
+ const ret = getArrayI32FromWasm0(arg0, arg1);
1578
+ return ret;
1579
+ },
1580
+ __wbindgen_cast_0000000000000008: function(arg0, arg1) {
1581
+ // Cast intrinsic for `Ref(Slice(I8)) -> NamedExternref("Int8Array")`.
1582
+ const ret = getArrayI8FromWasm0(arg0, arg1);
1583
+ return ret;
1584
+ },
1585
+ __wbindgen_cast_0000000000000009: function(arg0, arg1) {
1586
+ // Cast intrinsic for `Ref(Slice(U16)) -> NamedExternref("Uint16Array")`.
1587
+ const ret = getArrayU16FromWasm0(arg0, arg1);
1588
+ return ret;
1589
+ },
1590
+ __wbindgen_cast_000000000000000a: function(arg0, arg1) {
1591
+ // Cast intrinsic for `Ref(Slice(U32)) -> NamedExternref("Uint32Array")`.
1592
+ const ret = getArrayU32FromWasm0(arg0, arg1);
1593
+ return ret;
1594
+ },
1595
+ __wbindgen_cast_000000000000000b: function(arg0, arg1) {
1596
+ // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
1597
+ const ret = getArrayU8FromWasm0(arg0, arg1);
1598
+ return ret;
1599
+ },
1600
+ __wbindgen_cast_000000000000000c: function(arg0, arg1) {
1601
+ // Cast intrinsic for `Ref(String) -> Externref`.
1602
+ const ret = getStringFromWasm0(arg0, arg1);
1603
+ return ret;
1604
+ },
1605
+ __wbindgen_cast_000000000000000d: function(arg0, arg1) {
1606
+ // Cast intrinsic for `U128 -> Externref`.
1607
+ const ret = (BigInt.asUintN(64, arg0) | (BigInt.asUintN(64, arg1) << BigInt(64)));
1608
+ return ret;
1609
+ },
1610
+ __wbindgen_cast_000000000000000e: function(arg0) {
1611
+ // Cast intrinsic for `U64 -> Externref`.
1612
+ const ret = BigInt.asUintN(64, arg0);
1613
+ return ret;
1614
+ },
1615
+ __wbindgen_cast_000000000000000f: function(arg0, arg1) {
1616
+ var v0 = getClampedArrayU8FromWasm0(arg0, arg1).slice();
1617
+ wasm.__wbindgen_free(arg0, arg1 * 1, 1);
1618
+ // Cast intrinsic for `Vector(ClampedU8) -> Externref`.
1619
+ const ret = v0;
1620
+ return ret;
1621
+ },
1622
+ __wbindgen_cast_0000000000000010: function(arg0, arg1) {
1623
+ var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
1624
+ wasm.__wbindgen_free(arg0, arg1 * 4, 4);
1625
+ // Cast intrinsic for `Vector(Externref) -> Externref`.
1626
+ const ret = v0;
1627
+ return ret;
1628
+ },
1629
+ __wbindgen_init_externref_table: function() {
1630
+ const table = wasm.__wbindgen_externrefs;
1631
+ const offset = table.grow(4);
1632
+ table.set(0, undefined);
1633
+ table.set(offset + 0, undefined);
1634
+ table.set(offset + 1, null);
1635
+ table.set(offset + 2, true);
1636
+ table.set(offset + 3, false);
1637
+ },
1638
+ };
1639
+ return {
1640
+ __proto__: null,
1641
+ "./smelter_bg.js": import0,
1642
+ };
1643
+ }
1644
+
1645
+ function wasm_bindgen__convert__closures_____invoke__h3330ba85794318a5(arg0, arg1, arg2) {
1646
+ const ret = wasm.wasm_bindgen__convert__closures_____invoke__h3330ba85794318a5(arg0, arg1, arg2);
1647
+ if (ret[1]) {
1648
+ throw takeFromExternrefTable0(ret[0]);
1649
+ }
1650
+ }
1651
+
1652
+ function wasm_bindgen__convert__closures_____invoke__h0a5294ff1262b3c9(arg0, arg1, arg2) {
1653
+ const ret = wasm.wasm_bindgen__convert__closures_____invoke__h0a5294ff1262b3c9(arg0, arg1, arg2);
1654
+ if (ret[1]) {
1655
+ throw takeFromExternrefTable0(ret[0]);
1656
+ }
1657
+ }
1658
+
1659
+ function wasm_bindgen__convert__closures_____invoke__h0eca19496d54df4c(arg0, arg1, arg2, arg3) {
1660
+ wasm.wasm_bindgen__convert__closures_____invoke__h0eca19496d54df4c(arg0, arg1, arg2, arg3);
1661
+ }
1662
+
1663
+
1664
+ const __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
1665
+
1666
+
1667
+ const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"];
1668
+
1669
+
1670
+ const __wbindgen_enum_VideoPixelFormat = ["I420", "I420P10", "I420P12", "I420A", "I420AP10", "I420AP12", "I422", "I422P10", "I422P12", "I422A", "I422AP10", "I422AP12", "I444", "I444P10", "I444P12", "I444A", "I444AP10", "I444AP12", "NV12", "RGBA", "RGBX", "BGRA", "BGRX"];
1671
+ const SmelterRendererFinalization = (typeof FinalizationRegistry === 'undefined')
1672
+ ? { register: () => {}, unregister: () => {} }
1673
+ : new FinalizationRegistry(ptr => wasm.__wbg_smelterrenderer_free(ptr >>> 0, 1));
1674
+
1675
+ function addToExternrefTable0(obj) {
1676
+ const idx = wasm.__externref_table_alloc();
1677
+ wasm.__wbindgen_externrefs.set(idx, obj);
1678
+ return idx;
180
1679
  }
181
1680
 
1681
+ const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
1682
+ ? { register: () => {}, unregister: () => {} }
1683
+ : new FinalizationRegistry(state => state.dtor(state.a, state.b));
1684
+
182
1685
  function debugString(val) {
183
1686
  // primitive types
184
1687
  const type = typeof val;
@@ -235,1696 +1738,322 @@ function debugString(val) {
235
1738
  } catch (_) {
236
1739
  return 'Object';
237
1740
  }
238
- }
239
- // errors
240
- if (val instanceof Error) {
241
- return `${val.name}: ${val.message}\n${val.stack}`;
242
- }
243
- // TODO we could test for more things here, like `Set`s and `Map`s.
244
- return className;
245
- }
246
-
247
- let cachedUint8ClampedArrayMemory0 = null;
248
-
249
- function getUint8ClampedArrayMemory0() {
250
- if (cachedUint8ClampedArrayMemory0 === null || cachedUint8ClampedArrayMemory0.byteLength === 0) {
251
- cachedUint8ClampedArrayMemory0 = new Uint8ClampedArray(wasm.memory.buffer);
252
- }
253
- return cachedUint8ClampedArrayMemory0;
254
- }
255
-
256
- function getClampedArrayU8FromWasm0(ptr, len) {
257
- ptr = ptr >>> 0;
258
- return getUint8ClampedArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
259
- }
260
-
261
- /**
262
- * @param {any} options
263
- * @returns {Promise<SmelterRenderer>}
264
- */
265
- function create_renderer(options) {
266
- const ret = wasm.create_renderer(options);
267
- return ret;
268
- }
269
-
270
- function __wbg_adapter_60(arg0, arg1, arg2) {
271
- wasm.closure1073_externref_shim(arg0, arg1, arg2);
272
- }
273
-
274
- function __wbg_adapter_731(arg0, arg1, arg2, arg3) {
275
- wasm.closure3852_externref_shim(arg0, arg1, arg2, arg3);
276
- }
277
-
278
- const __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
279
-
280
- const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"];
281
-
282
- const SmelterRendererFinalization = (typeof FinalizationRegistry === 'undefined')
283
- ? { register: () => {}, unregister: () => {} }
284
- : new FinalizationRegistry(ptr => wasm.__wbg_smelterrenderer_free(ptr >>> 0, 1));
285
-
286
- class SmelterRenderer {
287
-
288
- static __wrap(ptr) {
289
- ptr = ptr >>> 0;
290
- const obj = Object.create(SmelterRenderer.prototype);
291
- obj.__wbg_ptr = ptr;
292
- SmelterRendererFinalization.register(obj, obj.__wbg_ptr, obj);
293
- return obj;
294
- }
295
-
296
- __destroy_into_raw() {
297
- const ptr = this.__wbg_ptr;
298
- this.__wbg_ptr = 0;
299
- SmelterRendererFinalization.unregister(this);
300
- return ptr;
301
- }
302
-
303
- free() {
304
- const ptr = this.__destroy_into_raw();
305
- wasm.__wbg_smelterrenderer_free(ptr, 0);
306
- }
307
- /**
308
- * @param {string} output_id
309
- * @param {any} resolution
310
- * @param {any} scene
311
- * @returns {Promise<void>}
312
- */
313
- update_scene(output_id, resolution, scene) {
314
- const ptr0 = passStringToWasm0(output_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
315
- const len0 = WASM_VECTOR_LEN;
316
- const ret = wasm.smelterrenderer_update_scene(this.__wbg_ptr, ptr0, len0, resolution, scene);
317
- return ret;
318
- }
319
- /**
320
- * @param {string} font_url
321
- * @returns {Promise<void>}
322
- */
323
- register_font(font_url) {
324
- const ptr0 = passStringToWasm0(font_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
325
- const len0 = WASM_VECTOR_LEN;
326
- const ret = wasm.smelterrenderer_register_font(this.__wbg_ptr, ptr0, len0);
327
- return ret;
328
- }
329
- /**
330
- * @param {string} renderer_id
331
- * @param {any} image_spec
332
- * @returns {Promise<void>}
333
- */
334
- register_image(renderer_id, image_spec) {
335
- const ptr0 = passStringToWasm0(renderer_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
336
- const len0 = WASM_VECTOR_LEN;
337
- const ret = wasm.smelterrenderer_register_image(this.__wbg_ptr, ptr0, len0, image_spec);
338
- return ret;
339
- }
340
- /**
341
- * @param {string} input_id
342
- * @returns {Promise<void>}
343
- */
344
- register_input(input_id) {
345
- const ptr0 = passStringToWasm0(input_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
346
- const len0 = WASM_VECTOR_LEN;
347
- const ret = wasm.smelterrenderer_register_input(this.__wbg_ptr, ptr0, len0);
348
- return ret;
349
- }
350
- /**
351
- * @param {string} shader_id
352
- * @param {any} shader_spec
353
- * @returns {Promise<void>}
354
- */
355
- register_shader(shader_id, shader_spec) {
356
- const ptr0 = passStringToWasm0(shader_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
357
- const len0 = WASM_VECTOR_LEN;
358
- const ret = wasm.smelterrenderer_register_shader(this.__wbg_ptr, ptr0, len0, shader_spec);
359
- return ret;
360
- }
361
- /**
362
- * @param {string} renderer_id
363
- * @returns {Promise<void>}
364
- */
365
- unregister_image(renderer_id) {
366
- const ptr0 = passStringToWasm0(renderer_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
367
- const len0 = WASM_VECTOR_LEN;
368
- const ret = wasm.smelterrenderer_unregister_image(this.__wbg_ptr, ptr0, len0);
369
- return ret;
370
- }
371
- /**
372
- * @param {string} input_id
373
- * @returns {Promise<void>}
374
- */
375
- unregister_input(input_id) {
376
- const ptr0 = passStringToWasm0(input_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
377
- const len0 = WASM_VECTOR_LEN;
378
- const ret = wasm.smelterrenderer_unregister_input(this.__wbg_ptr, ptr0, len0);
379
- return ret;
380
- }
381
- /**
382
- * @param {string} output_id
383
- * @returns {Promise<void>}
384
- */
385
- unregister_output(output_id) {
386
- const ptr0 = passStringToWasm0(output_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
387
- const len0 = WASM_VECTOR_LEN;
388
- const ret = wasm.smelterrenderer_unregister_output(this.__wbg_ptr, ptr0, len0);
389
- return ret;
390
- }
391
- /**
392
- * @param {string} renderer_id
393
- * @returns {Promise<void>}
394
- */
395
- unregister_shader(renderer_id) {
396
- const ptr0 = passStringToWasm0(renderer_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
397
- const len0 = WASM_VECTOR_LEN;
398
- const ret = wasm.smelterrenderer_unregister_shader(this.__wbg_ptr, ptr0, len0);
399
- return ret;
400
- }
401
- /**
402
- * @param {InputFrameSet} input
403
- * @returns {Promise<OutputFrameSet>}
404
- */
405
- render(input) {
406
- const ret = wasm.smelterrenderer_render(this.__wbg_ptr, input);
407
- return ret;
408
- }
409
- }
410
-
411
- async function __wbg_load(module, imports) {
412
- if (typeof Response === 'function' && module instanceof Response) {
413
- if (typeof WebAssembly.instantiateStreaming === 'function') {
414
- try {
415
- return await WebAssembly.instantiateStreaming(module, imports);
416
-
417
- } catch (e) {
418
- if (module.headers.get('Content-Type') != 'application/wasm') {
419
- 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);
420
-
421
- } else {
422
- throw e;
423
- }
424
- }
425
- }
426
-
427
- const bytes = await module.arrayBuffer();
428
- return await WebAssembly.instantiate(bytes, imports);
429
-
430
- } else {
431
- const instance = await WebAssembly.instantiate(module, imports);
432
-
433
- if (instance instanceof WebAssembly.Instance) {
434
- return { instance, module };
435
-
436
- } else {
437
- return instance;
438
- }
439
- }
440
- }
441
-
442
- function __wbg_get_imports() {
443
- const imports = {};
444
- imports.wbg = {};
445
- imports.wbg.__wbg_String_8f0eb39a4a4c2f66 = function(arg0, arg1) {
446
- const ret = String(arg1);
447
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
448
- const len1 = WASM_VECTOR_LEN;
449
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
450
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
451
- };
452
- imports.wbg.__wbg_abort_775ef1d17fc65868 = function(arg0) {
453
- arg0.abort();
454
- };
455
- imports.wbg.__wbg_activeTexture_0f19d8acfa0a14c2 = function(arg0, arg1) {
456
- arg0.activeTexture(arg1 >>> 0);
457
- };
458
- imports.wbg.__wbg_activeTexture_460f2e367e813fb0 = function(arg0, arg1) {
459
- arg0.activeTexture(arg1 >>> 0);
460
- };
461
- imports.wbg.__wbg_allocationSize_da90e777d24e264f = function() { return handleError(function (arg0, arg1) {
462
- const ret = arg0.allocationSize(arg1);
463
- return ret;
464
- }, arguments) };
465
- imports.wbg.__wbg_append_8c7dd8d641a5f01b = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
466
- arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
467
- }, arguments) };
468
- imports.wbg.__wbg_arrayBuffer_d1b44c4390db422f = function() { return handleError(function (arg0) {
469
- const ret = arg0.arrayBuffer();
470
- return ret;
471
- }, arguments) };
472
- imports.wbg.__wbg_attachShader_3d4eb6af9e3e7bd1 = function(arg0, arg1, arg2) {
473
- arg0.attachShader(arg1, arg2);
474
- };
475
- imports.wbg.__wbg_attachShader_94e758c8b5283eb2 = function(arg0, arg1, arg2) {
476
- arg0.attachShader(arg1, arg2);
477
- };
478
- imports.wbg.__wbg_beginQuery_6af0b28414b16c07 = function(arg0, arg1, arg2) {
479
- arg0.beginQuery(arg1 >>> 0, arg2);
480
- };
481
- imports.wbg.__wbg_bindAttribLocation_40da4b3e84cc7bd5 = function(arg0, arg1, arg2, arg3, arg4) {
482
- arg0.bindAttribLocation(arg1, arg2 >>> 0, getStringFromWasm0(arg3, arg4));
483
- };
484
- imports.wbg.__wbg_bindAttribLocation_ce2730e29976d230 = function(arg0, arg1, arg2, arg3, arg4) {
485
- arg0.bindAttribLocation(arg1, arg2 >>> 0, getStringFromWasm0(arg3, arg4));
486
- };
487
- imports.wbg.__wbg_bindBufferRange_454f90f2b1781982 = function(arg0, arg1, arg2, arg3, arg4, arg5) {
488
- arg0.bindBufferRange(arg1 >>> 0, arg2 >>> 0, arg3, arg4, arg5);
489
- };
490
- imports.wbg.__wbg_bindBuffer_309c9a6c21826cf5 = function(arg0, arg1, arg2) {
491
- arg0.bindBuffer(arg1 >>> 0, arg2);
492
- };
493
- imports.wbg.__wbg_bindBuffer_f32f587f1c2962a7 = function(arg0, arg1, arg2) {
494
- arg0.bindBuffer(arg1 >>> 0, arg2);
495
- };
496
- imports.wbg.__wbg_bindFramebuffer_bd02c8cc707d670f = function(arg0, arg1, arg2) {
497
- arg0.bindFramebuffer(arg1 >>> 0, arg2);
498
- };
499
- imports.wbg.__wbg_bindFramebuffer_e48e83c0f973944d = function(arg0, arg1, arg2) {
500
- arg0.bindFramebuffer(arg1 >>> 0, arg2);
501
- };
502
- imports.wbg.__wbg_bindRenderbuffer_53eedd88e52b4cb5 = function(arg0, arg1, arg2) {
503
- arg0.bindRenderbuffer(arg1 >>> 0, arg2);
504
- };
505
- imports.wbg.__wbg_bindRenderbuffer_55e205fecfddbb8c = function(arg0, arg1, arg2) {
506
- arg0.bindRenderbuffer(arg1 >>> 0, arg2);
507
- };
508
- imports.wbg.__wbg_bindSampler_9f59cf2eaa22eee0 = function(arg0, arg1, arg2) {
509
- arg0.bindSampler(arg1 >>> 0, arg2);
510
- };
511
- imports.wbg.__wbg_bindTexture_a6e795697f49ebd1 = function(arg0, arg1, arg2) {
512
- arg0.bindTexture(arg1 >>> 0, arg2);
513
- };
514
- imports.wbg.__wbg_bindTexture_bc8eb316247f739d = function(arg0, arg1, arg2) {
515
- arg0.bindTexture(arg1 >>> 0, arg2);
516
- };
517
- imports.wbg.__wbg_bindVertexArrayOES_da8e7059b789629e = function(arg0, arg1) {
518
- arg0.bindVertexArrayOES(arg1);
519
- };
520
- imports.wbg.__wbg_bindVertexArray_6b4b88581064b71f = function(arg0, arg1) {
521
- arg0.bindVertexArray(arg1);
522
- };
523
- imports.wbg.__wbg_blendColor_15ba1eff44560932 = function(arg0, arg1, arg2, arg3, arg4) {
524
- arg0.blendColor(arg1, arg2, arg3, arg4);
525
- };
526
- imports.wbg.__wbg_blendColor_6446fba673f64ff0 = function(arg0, arg1, arg2, arg3, arg4) {
527
- arg0.blendColor(arg1, arg2, arg3, arg4);
528
- };
529
- imports.wbg.__wbg_blendEquationSeparate_c1aa26a9a5c5267e = function(arg0, arg1, arg2) {
530
- arg0.blendEquationSeparate(arg1 >>> 0, arg2 >>> 0);
531
- };
532
- imports.wbg.__wbg_blendEquationSeparate_f3d422e981d86339 = function(arg0, arg1, arg2) {
533
- arg0.blendEquationSeparate(arg1 >>> 0, arg2 >>> 0);
534
- };
535
- imports.wbg.__wbg_blendEquation_c23d111ad6d268ff = function(arg0, arg1) {
536
- arg0.blendEquation(arg1 >>> 0);
537
- };
538
- imports.wbg.__wbg_blendEquation_cec7bc41f3e5704c = function(arg0, arg1) {
539
- arg0.blendEquation(arg1 >>> 0);
540
- };
541
- imports.wbg.__wbg_blendFuncSeparate_483be8d4dd635340 = function(arg0, arg1, arg2, arg3, arg4) {
542
- arg0.blendFuncSeparate(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
543
- };
544
- imports.wbg.__wbg_blendFuncSeparate_dafeabfc1680b2ee = function(arg0, arg1, arg2, arg3, arg4) {
545
- arg0.blendFuncSeparate(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
546
- };
547
- imports.wbg.__wbg_blendFunc_9454884a3cfd2911 = function(arg0, arg1, arg2) {
548
- arg0.blendFunc(arg1 >>> 0, arg2 >>> 0);
549
- };
550
- imports.wbg.__wbg_blendFunc_c3b74be5a39c665f = function(arg0, arg1, arg2) {
551
- arg0.blendFunc(arg1 >>> 0, arg2 >>> 0);
552
- };
553
- imports.wbg.__wbg_blitFramebuffer_7303bdff77cfe967 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) {
554
- arg0.blitFramebuffer(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0);
555
- };
556
- imports.wbg.__wbg_bufferData_3261d3e1dd6fc903 = function(arg0, arg1, arg2, arg3) {
557
- arg0.bufferData(arg1 >>> 0, arg2, arg3 >>> 0);
558
- };
559
- imports.wbg.__wbg_bufferData_33c59bf909ea6fd3 = function(arg0, arg1, arg2, arg3) {
560
- arg0.bufferData(arg1 >>> 0, arg2, arg3 >>> 0);
561
- };
562
- imports.wbg.__wbg_bufferData_463178757784fcac = function(arg0, arg1, arg2, arg3) {
563
- arg0.bufferData(arg1 >>> 0, arg2, arg3 >>> 0);
564
- };
565
- imports.wbg.__wbg_bufferData_d99b6b4eb5283f20 = function(arg0, arg1, arg2, arg3) {
566
- arg0.bufferData(arg1 >>> 0, arg2, arg3 >>> 0);
567
- };
568
- imports.wbg.__wbg_bufferSubData_4e973eefe9236d04 = function(arg0, arg1, arg2, arg3) {
569
- arg0.bufferSubData(arg1 >>> 0, arg2, arg3);
570
- };
571
- imports.wbg.__wbg_bufferSubData_dcd4d16031a60345 = function(arg0, arg1, arg2, arg3) {
572
- arg0.bufferSubData(arg1 >>> 0, arg2, arg3);
573
- };
574
- imports.wbg.__wbg_buffer_609cc3eee51ed158 = function(arg0) {
575
- const ret = arg0.buffer;
576
- return ret;
577
- };
578
- imports.wbg.__wbg_call_672a4d21634d4a24 = function() { return handleError(function (arg0, arg1) {
579
- const ret = arg0.call(arg1);
580
- return ret;
581
- }, arguments) };
582
- imports.wbg.__wbg_call_7cccdd69e0791ae2 = function() { return handleError(function (arg0, arg1, arg2) {
583
- const ret = arg0.call(arg1, arg2);
584
- return ret;
585
- }, arguments) };
586
- imports.wbg.__wbg_clearBufferfv_65ea413f7f2554a2 = function(arg0, arg1, arg2, arg3, arg4) {
587
- arg0.clearBufferfv(arg1 >>> 0, arg2, getArrayF32FromWasm0(arg3, arg4));
588
- };
589
- imports.wbg.__wbg_clearBufferiv_c003c27b77a0245b = function(arg0, arg1, arg2, arg3, arg4) {
590
- arg0.clearBufferiv(arg1 >>> 0, arg2, getArrayI32FromWasm0(arg3, arg4));
591
- };
592
- imports.wbg.__wbg_clearBufferuiv_8c285072f2026a37 = function(arg0, arg1, arg2, arg3, arg4) {
593
- arg0.clearBufferuiv(arg1 >>> 0, arg2, getArrayU32FromWasm0(arg3, arg4));
594
- };
595
- imports.wbg.__wbg_clearDepth_17cfee5be8476fae = function(arg0, arg1) {
596
- arg0.clearDepth(arg1);
597
- };
598
- imports.wbg.__wbg_clearDepth_670d19914a501259 = function(arg0, arg1) {
599
- arg0.clearDepth(arg1);
600
- };
601
- imports.wbg.__wbg_clearStencil_4323424f1acca0df = function(arg0, arg1) {
602
- arg0.clearStencil(arg1);
603
- };
604
- imports.wbg.__wbg_clearStencil_7addd3b330b56b27 = function(arg0, arg1) {
605
- arg0.clearStencil(arg1);
606
- };
607
- imports.wbg.__wbg_clear_62b9037b892f6988 = function(arg0, arg1) {
608
- arg0.clear(arg1 >>> 0);
609
- };
610
- imports.wbg.__wbg_clear_f8d5f3c348d37d95 = function(arg0, arg1) {
611
- arg0.clear(arg1 >>> 0);
612
- };
613
- imports.wbg.__wbg_clientWaitSync_6930890a42bd44c0 = function(arg0, arg1, arg2, arg3) {
614
- const ret = arg0.clientWaitSync(arg1, arg2 >>> 0, arg3 >>> 0);
615
- return ret;
616
- };
617
- imports.wbg.__wbg_colorMask_5e7c60b9c7a57a2e = function(arg0, arg1, arg2, arg3, arg4) {
618
- arg0.colorMask(arg1 !== 0, arg2 !== 0, arg3 !== 0, arg4 !== 0);
619
- };
620
- imports.wbg.__wbg_colorMask_6dac12039c7145ae = function(arg0, arg1, arg2, arg3, arg4) {
621
- arg0.colorMask(arg1 !== 0, arg2 !== 0, arg3 !== 0, arg4 !== 0);
622
- };
623
- imports.wbg.__wbg_compileShader_0ad770bbdbb9de21 = function(arg0, arg1) {
624
- arg0.compileShader(arg1);
625
- };
626
- imports.wbg.__wbg_compileShader_2307c9d370717dd5 = function(arg0, arg1) {
627
- arg0.compileShader(arg1);
628
- };
629
- imports.wbg.__wbg_compressedTexSubImage2D_71877eec950ca069 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
630
- arg0.compressedTexSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8, arg9);
631
- };
632
- imports.wbg.__wbg_compressedTexSubImage2D_99abf4cfdb7c3fd8 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) {
633
- arg0.compressedTexSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8);
634
- };
635
- imports.wbg.__wbg_compressedTexSubImage2D_d66dcfcb2422e703 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) {
636
- arg0.compressedTexSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8);
637
- };
638
- imports.wbg.__wbg_compressedTexSubImage3D_58506392da46b927 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) {
639
- arg0.compressedTexSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10);
640
- };
641
- imports.wbg.__wbg_compressedTexSubImage3D_81477746675a4017 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
642
- arg0.compressedTexSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10, arg11);
643
- };
644
- imports.wbg.__wbg_copyBufferSubData_9469a965478e33b5 = function(arg0, arg1, arg2, arg3, arg4, arg5) {
645
- arg0.copyBufferSubData(arg1 >>> 0, arg2 >>> 0, arg3, arg4, arg5);
646
- };
647
- imports.wbg.__wbg_copyTexSubImage2D_05e7e8df6814a705 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) {
648
- arg0.copyTexSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8);
649
- };
650
- imports.wbg.__wbg_copyTexSubImage2D_607ad28606952982 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) {
651
- arg0.copyTexSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8);
652
- };
653
- imports.wbg.__wbg_copyTexSubImage3D_32e92c94044e58ca = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
654
- arg0.copyTexSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9);
655
- };
656
- imports.wbg.__wbg_copyTo_6a0737a733066d69 = function(arg0, arg1, arg2, arg3) {
657
- const ret = arg0.copyTo(getArrayU8FromWasm0(arg1, arg2), arg3);
658
- return ret;
659
- };
660
- imports.wbg.__wbg_createBuffer_7a9ec3d654073660 = function(arg0) {
661
- const ret = arg0.createBuffer();
662
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
663
- };
664
- imports.wbg.__wbg_createBuffer_9886e84a67b68c89 = function(arg0) {
665
- const ret = arg0.createBuffer();
666
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
667
- };
668
- imports.wbg.__wbg_createFramebuffer_7824f69bba778885 = function(arg0) {
669
- const ret = arg0.createFramebuffer();
670
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
671
- };
672
- imports.wbg.__wbg_createFramebuffer_c8d70ebc4858051e = function(arg0) {
673
- const ret = arg0.createFramebuffer();
674
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
675
- };
676
- imports.wbg.__wbg_createProgram_8ff56c485f3233d0 = function(arg0) {
677
- const ret = arg0.createProgram();
678
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
679
- };
680
- imports.wbg.__wbg_createProgram_da203074cafb1038 = function(arg0) {
681
- const ret = arg0.createProgram();
682
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
683
- };
684
- imports.wbg.__wbg_createQuery_5ed5e770ec1009c1 = function(arg0) {
685
- const ret = arg0.createQuery();
686
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
687
- };
688
- imports.wbg.__wbg_createRenderbuffer_d88aa9403faa38ea = function(arg0) {
689
- const ret = arg0.createRenderbuffer();
690
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
691
- };
692
- imports.wbg.__wbg_createRenderbuffer_fd347ae14f262eaa = function(arg0) {
693
- const ret = arg0.createRenderbuffer();
694
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
695
- };
696
- imports.wbg.__wbg_createSampler_f76e29d7522bec9e = function(arg0) {
697
- const ret = arg0.createSampler();
698
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
699
- };
700
- imports.wbg.__wbg_createShader_4a256a8cc9c1ce4f = function(arg0, arg1) {
701
- const ret = arg0.createShader(arg1 >>> 0);
702
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
703
- };
704
- imports.wbg.__wbg_createShader_983150fb1243ee56 = function(arg0, arg1) {
705
- const ret = arg0.createShader(arg1 >>> 0);
706
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
707
- };
708
- imports.wbg.__wbg_createTexture_9c536c79b635fdef = function(arg0) {
709
- const ret = arg0.createTexture();
710
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
711
- };
712
- imports.wbg.__wbg_createTexture_bfaa54c0cd22e367 = function(arg0) {
713
- const ret = arg0.createTexture();
714
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
715
- };
716
- imports.wbg.__wbg_createVertexArrayOES_991b44f100f93329 = function(arg0) {
717
- const ret = arg0.createVertexArrayOES();
718
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
719
- };
720
- imports.wbg.__wbg_createVertexArray_e435029ae2660efd = function(arg0) {
721
- const ret = arg0.createVertexArray();
722
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
723
- };
724
- imports.wbg.__wbg_cullFace_187079e6e20a464d = function(arg0, arg1) {
725
- arg0.cullFace(arg1 >>> 0);
726
- };
727
- imports.wbg.__wbg_cullFace_fbae6dd4d5e61ba4 = function(arg0, arg1) {
728
- arg0.cullFace(arg1 >>> 0);
729
- };
730
- imports.wbg.__wbg_deleteBuffer_7ed96e1bf7c02e87 = function(arg0, arg1) {
731
- arg0.deleteBuffer(arg1);
732
- };
733
- imports.wbg.__wbg_deleteBuffer_a7822433fc95dfb8 = function(arg0, arg1) {
734
- arg0.deleteBuffer(arg1);
735
- };
736
- imports.wbg.__wbg_deleteFramebuffer_66853fb7101488cb = function(arg0, arg1) {
737
- arg0.deleteFramebuffer(arg1);
738
- };
739
- imports.wbg.__wbg_deleteFramebuffer_cd3285ee5a702a7a = function(arg0, arg1) {
740
- arg0.deleteFramebuffer(arg1);
741
- };
742
- imports.wbg.__wbg_deleteProgram_3fa626bbc0001eb7 = function(arg0, arg1) {
743
- arg0.deleteProgram(arg1);
744
- };
745
- imports.wbg.__wbg_deleteProgram_71a133c6d053e272 = function(arg0, arg1) {
746
- arg0.deleteProgram(arg1);
747
- };
748
- imports.wbg.__wbg_deleteQuery_6a2b7cd30074b20b = function(arg0, arg1) {
749
- arg0.deleteQuery(arg1);
750
- };
751
- imports.wbg.__wbg_deleteRenderbuffer_59f4369653485031 = function(arg0, arg1) {
752
- arg0.deleteRenderbuffer(arg1);
753
- };
754
- imports.wbg.__wbg_deleteRenderbuffer_8808192853211567 = function(arg0, arg1) {
755
- arg0.deleteRenderbuffer(arg1);
756
- };
757
- imports.wbg.__wbg_deleteSampler_7f02bb003ba547f0 = function(arg0, arg1) {
758
- arg0.deleteSampler(arg1);
759
- };
760
- imports.wbg.__wbg_deleteShader_8d42f169deda58ac = function(arg0, arg1) {
761
- arg0.deleteShader(arg1);
762
- };
763
- imports.wbg.__wbg_deleteShader_c65a44796c5004d8 = function(arg0, arg1) {
764
- arg0.deleteShader(arg1);
765
- };
766
- imports.wbg.__wbg_deleteSync_5a3fbe5d6b742398 = function(arg0, arg1) {
767
- arg0.deleteSync(arg1);
768
- };
769
- imports.wbg.__wbg_deleteTexture_a30f5ca0163c4110 = function(arg0, arg1) {
770
- arg0.deleteTexture(arg1);
771
- };
772
- imports.wbg.__wbg_deleteTexture_bb82c9fec34372ba = function(arg0, arg1) {
773
- arg0.deleteTexture(arg1);
774
- };
775
- imports.wbg.__wbg_deleteVertexArrayOES_1ee7a06a4b23ec8c = function(arg0, arg1) {
776
- arg0.deleteVertexArrayOES(arg1);
777
- };
778
- imports.wbg.__wbg_deleteVertexArray_77fe73664a3332ae = function(arg0, arg1) {
779
- arg0.deleteVertexArray(arg1);
780
- };
781
- imports.wbg.__wbg_depthFunc_2906916f4536d5d7 = function(arg0, arg1) {
782
- arg0.depthFunc(arg1 >>> 0);
783
- };
784
- imports.wbg.__wbg_depthFunc_f34449ae87cc4e3e = function(arg0, arg1) {
785
- arg0.depthFunc(arg1 >>> 0);
786
- };
787
- imports.wbg.__wbg_depthMask_5fe84e2801488eda = function(arg0, arg1) {
788
- arg0.depthMask(arg1 !== 0);
789
- };
790
- imports.wbg.__wbg_depthMask_76688a8638b2f321 = function(arg0, arg1) {
791
- arg0.depthMask(arg1 !== 0);
792
- };
793
- imports.wbg.__wbg_depthRange_3cd6b4dc961d9116 = function(arg0, arg1, arg2) {
794
- arg0.depthRange(arg1, arg2);
795
- };
796
- imports.wbg.__wbg_depthRange_f9c084ff3d81fd7b = function(arg0, arg1, arg2) {
797
- arg0.depthRange(arg1, arg2);
798
- };
799
- imports.wbg.__wbg_disableVertexAttribArray_452cc9815fced7e4 = function(arg0, arg1) {
800
- arg0.disableVertexAttribArray(arg1 >>> 0);
801
- };
802
- imports.wbg.__wbg_disableVertexAttribArray_afd097fb465dc100 = function(arg0, arg1) {
803
- arg0.disableVertexAttribArray(arg1 >>> 0);
804
- };
805
- imports.wbg.__wbg_disable_2702df5b5da5dd21 = function(arg0, arg1) {
806
- arg0.disable(arg1 >>> 0);
807
- };
808
- imports.wbg.__wbg_disable_8b53998501a7a85b = function(arg0, arg1) {
809
- arg0.disable(arg1 >>> 0);
810
- };
811
- imports.wbg.__wbg_displayHeight_a6ff7964b6182d84 = function(arg0) {
812
- const ret = arg0.displayHeight;
813
- return ret;
814
- };
815
- imports.wbg.__wbg_displayWidth_d82e7b620f6f4189 = function(arg0) {
816
- const ret = arg0.displayWidth;
817
- return ret;
818
- };
819
- imports.wbg.__wbg_document_d249400bd7bd996d = function(arg0) {
820
- const ret = arg0.document;
821
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
822
- };
823
- imports.wbg.__wbg_done_769e5ede4b31c67b = function(arg0) {
824
- const ret = arg0.done;
825
- return ret;
826
- };
827
- imports.wbg.__wbg_drawArraysInstancedANGLE_342ee6b5236d9702 = function(arg0, arg1, arg2, arg3, arg4) {
828
- arg0.drawArraysInstancedANGLE(arg1 >>> 0, arg2, arg3, arg4);
829
- };
830
- imports.wbg.__wbg_drawArraysInstanced_622ea9f149b0b80c = function(arg0, arg1, arg2, arg3, arg4) {
831
- arg0.drawArraysInstanced(arg1 >>> 0, arg2, arg3, arg4);
832
- };
833
- imports.wbg.__wbg_drawArrays_6acaa2669c105f3a = function(arg0, arg1, arg2, arg3) {
834
- arg0.drawArrays(arg1 >>> 0, arg2, arg3);
835
- };
836
- imports.wbg.__wbg_drawArrays_6d29ea2ebc0c72a2 = function(arg0, arg1, arg2, arg3) {
837
- arg0.drawArrays(arg1 >>> 0, arg2, arg3);
838
- };
839
- imports.wbg.__wbg_drawBuffersWEBGL_9fdbdf3d4cbd3aae = function(arg0, arg1) {
840
- arg0.drawBuffersWEBGL(arg1);
841
- };
842
- imports.wbg.__wbg_drawBuffers_e729b75c5a50d760 = function(arg0, arg1) {
843
- arg0.drawBuffers(arg1);
844
- };
845
- imports.wbg.__wbg_drawElementsInstancedANGLE_096b48ab8686c5cf = function(arg0, arg1, arg2, arg3, arg4, arg5) {
846
- arg0.drawElementsInstancedANGLE(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5);
847
- };
848
- imports.wbg.__wbg_drawElementsInstanced_f874e87d0b4e95e9 = function(arg0, arg1, arg2, arg3, arg4, arg5) {
849
- arg0.drawElementsInstanced(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5);
850
- };
851
- imports.wbg.__wbg_enableVertexAttribArray_607be07574298e5e = function(arg0, arg1) {
852
- arg0.enableVertexAttribArray(arg1 >>> 0);
853
- };
854
- imports.wbg.__wbg_enableVertexAttribArray_93c3d406a41ad6c7 = function(arg0, arg1) {
855
- arg0.enableVertexAttribArray(arg1 >>> 0);
856
- };
857
- imports.wbg.__wbg_enable_51114837e05ee280 = function(arg0, arg1) {
858
- arg0.enable(arg1 >>> 0);
859
- };
860
- imports.wbg.__wbg_enable_d183fef39258803f = function(arg0, arg1) {
861
- arg0.enable(arg1 >>> 0);
862
- };
863
- imports.wbg.__wbg_endQuery_17aac36532ca7d47 = function(arg0, arg1) {
864
- arg0.endQuery(arg1 >>> 0);
865
- };
866
- imports.wbg.__wbg_entries_3265d4158b33e5dc = function(arg0) {
867
- const ret = Object.entries(arg0);
868
- return ret;
869
- };
870
- imports.wbg.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
871
- let deferred0_0;
872
- let deferred0_1;
873
- try {
874
- deferred0_0 = arg0;
875
- deferred0_1 = arg1;
876
- console.error(getStringFromWasm0(arg0, arg1));
877
- } finally {
878
- wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
879
- }
880
- };
881
- imports.wbg.__wbg_fenceSync_02d142d21e315da6 = function(arg0, arg1, arg2) {
882
- const ret = arg0.fenceSync(arg1 >>> 0, arg2 >>> 0);
883
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
884
- };
885
- imports.wbg.__wbg_fetch_4465c2b10f21a927 = function(arg0) {
886
- const ret = fetch(arg0);
887
- return ret;
888
- };
889
- imports.wbg.__wbg_fetch_509096533071c657 = function(arg0, arg1) {
890
- const ret = arg0.fetch(arg1);
891
- return ret;
892
- };
893
- imports.wbg.__wbg_flush_4150080f65c49208 = function(arg0) {
894
- arg0.flush();
895
- };
896
- imports.wbg.__wbg_flush_987c35de09e06fd6 = function(arg0) {
897
- arg0.flush();
898
- };
899
- imports.wbg.__wbg_framebufferRenderbuffer_2fdd12e89ad81eb9 = function(arg0, arg1, arg2, arg3, arg4) {
900
- arg0.framebufferRenderbuffer(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4);
901
- };
902
- imports.wbg.__wbg_framebufferRenderbuffer_8b88592753b54715 = function(arg0, arg1, arg2, arg3, arg4) {
903
- arg0.framebufferRenderbuffer(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4);
904
- };
905
- imports.wbg.__wbg_framebufferTexture2D_81a565732bd5d8fe = function(arg0, arg1, arg2, arg3, arg4, arg5) {
906
- arg0.framebufferTexture2D(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4, arg5);
907
- };
908
- imports.wbg.__wbg_framebufferTexture2D_ed855d0b097c557a = function(arg0, arg1, arg2, arg3, arg4, arg5) {
909
- arg0.framebufferTexture2D(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4, arg5);
910
- };
911
- imports.wbg.__wbg_framebufferTextureLayer_5e6bd1b0cb45d815 = function(arg0, arg1, arg2, arg3, arg4, arg5) {
912
- arg0.framebufferTextureLayer(arg1 >>> 0, arg2 >>> 0, arg3, arg4, arg5);
913
- };
914
- imports.wbg.__wbg_framebufferTextureMultiviewOVR_e54f936c3cc382cb = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
915
- arg0.framebufferTextureMultiviewOVR(arg1 >>> 0, arg2 >>> 0, arg3, arg4, arg5, arg6);
916
- };
917
- imports.wbg.__wbg_frontFace_289c9d7a8569c4f2 = function(arg0, arg1) {
918
- arg0.frontFace(arg1 >>> 0);
919
- };
920
- imports.wbg.__wbg_frontFace_4d4936cfaeb8b7df = function(arg0, arg1) {
921
- arg0.frontFace(arg1 >>> 0);
922
- };
923
- imports.wbg.__wbg_getBufferSubData_8ab2dcc5fcf5770f = function(arg0, arg1, arg2, arg3) {
924
- arg0.getBufferSubData(arg1 >>> 0, arg2, arg3);
925
- };
926
- imports.wbg.__wbg_getContext_3ae09aaa73194801 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
927
- const ret = arg0.getContext(getStringFromWasm0(arg1, arg2), arg3);
928
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
929
- }, arguments) };
930
- imports.wbg.__wbg_getContext_fc19859df6331073 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
931
- const ret = arg0.getContext(getStringFromWasm0(arg1, arg2), arg3);
932
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
933
- }, arguments) };
934
- imports.wbg.__wbg_getExtension_ff0fb1398bcf28c3 = function() { return handleError(function (arg0, arg1, arg2) {
935
- const ret = arg0.getExtension(getStringFromWasm0(arg1, arg2));
936
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
937
- }, arguments) };
938
- imports.wbg.__wbg_getIndexedParameter_f9211edc36533919 = function() { return handleError(function (arg0, arg1, arg2) {
939
- const ret = arg0.getIndexedParameter(arg1 >>> 0, arg2 >>> 0);
940
- return ret;
941
- }, arguments) };
942
- imports.wbg.__wbg_getParameter_1f0887a2b88e6d19 = function() { return handleError(function (arg0, arg1) {
943
- const ret = arg0.getParameter(arg1 >>> 0);
944
- return ret;
945
- }, arguments) };
946
- imports.wbg.__wbg_getParameter_e3429f024018310f = function() { return handleError(function (arg0, arg1) {
947
- const ret = arg0.getParameter(arg1 >>> 0);
948
- return ret;
949
- }, arguments) };
950
- imports.wbg.__wbg_getProgramInfoLog_631c180b1b21c8ed = function(arg0, arg1, arg2) {
951
- const ret = arg1.getProgramInfoLog(arg2);
952
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
953
- var len1 = WASM_VECTOR_LEN;
954
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
955
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
956
- };
957
- imports.wbg.__wbg_getProgramInfoLog_a998105a680059db = function(arg0, arg1, arg2) {
958
- const ret = arg1.getProgramInfoLog(arg2);
959
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
960
- var len1 = WASM_VECTOR_LEN;
961
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
962
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
963
- };
964
- imports.wbg.__wbg_getProgramParameter_0c411f0cd4185c5b = function(arg0, arg1, arg2) {
965
- const ret = arg0.getProgramParameter(arg1, arg2 >>> 0);
966
- return ret;
967
- };
968
- imports.wbg.__wbg_getProgramParameter_360f95ff07ac068d = function(arg0, arg1, arg2) {
969
- const ret = arg0.getProgramParameter(arg1, arg2 >>> 0);
970
- return ret;
971
- };
972
- imports.wbg.__wbg_getQueryParameter_8921497e1d1561c1 = function(arg0, arg1, arg2) {
973
- const ret = arg0.getQueryParameter(arg1, arg2 >>> 0);
974
- return ret;
975
- };
976
- imports.wbg.__wbg_getShaderInfoLog_7e7b38fb910ec534 = function(arg0, arg1, arg2) {
977
- const ret = arg1.getShaderInfoLog(arg2);
978
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
979
- var len1 = WASM_VECTOR_LEN;
980
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
981
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
982
- };
983
- imports.wbg.__wbg_getShaderInfoLog_f59c3112acc6e039 = function(arg0, arg1, arg2) {
984
- const ret = arg1.getShaderInfoLog(arg2);
985
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
986
- var len1 = WASM_VECTOR_LEN;
987
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
988
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
989
- };
990
- imports.wbg.__wbg_getShaderParameter_511b5f929074fa31 = function(arg0, arg1, arg2) {
991
- const ret = arg0.getShaderParameter(arg1, arg2 >>> 0);
992
- return ret;
993
- };
994
- imports.wbg.__wbg_getShaderParameter_6dbe0b8558dc41fd = function(arg0, arg1, arg2) {
995
- const ret = arg0.getShaderParameter(arg1, arg2 >>> 0);
996
- return ret;
997
- };
998
- imports.wbg.__wbg_getSupportedExtensions_8c007dbb54905635 = function(arg0) {
999
- const ret = arg0.getSupportedExtensions();
1000
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1001
- };
1002
- imports.wbg.__wbg_getSupportedProfiles_10d2a4d32a128384 = function(arg0) {
1003
- const ret = arg0.getSupportedProfiles();
1004
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1005
- };
1006
- imports.wbg.__wbg_getSyncParameter_7cb8461f5891606c = function(arg0, arg1, arg2) {
1007
- const ret = arg0.getSyncParameter(arg1, arg2 >>> 0);
1008
- return ret;
1009
- };
1010
- imports.wbg.__wbg_getUniformBlockIndex_288fdc31528171ca = function(arg0, arg1, arg2, arg3) {
1011
- const ret = arg0.getUniformBlockIndex(arg1, getStringFromWasm0(arg2, arg3));
1012
- return ret;
1013
- };
1014
- imports.wbg.__wbg_getUniformLocation_657a2b6d102bd126 = function(arg0, arg1, arg2, arg3) {
1015
- const ret = arg0.getUniformLocation(arg1, getStringFromWasm0(arg2, arg3));
1016
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1017
- };
1018
- imports.wbg.__wbg_getUniformLocation_838363001c74dc21 = function(arg0, arg1, arg2, arg3) {
1019
- const ret = arg0.getUniformLocation(arg1, getStringFromWasm0(arg2, arg3));
1020
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1021
- };
1022
- imports.wbg.__wbg_get_67b2ba62fc30de12 = function() { return handleError(function (arg0, arg1) {
1023
- const ret = Reflect.get(arg0, arg1);
1024
- return ret;
1025
- }, arguments) };
1026
- imports.wbg.__wbg_get_b9b93047fe3cf45b = function(arg0, arg1) {
1027
- const ret = arg0[arg1 >>> 0];
1028
- return ret;
1029
- };
1030
- imports.wbg.__wbg_getwithrefkey_1dc361bd10053bfe = function(arg0, arg1) {
1031
- const ret = arg0[arg1];
1032
- return ret;
1033
- };
1034
- imports.wbg.__wbg_has_a5ea9117f258a0ec = function() { return handleError(function (arg0, arg1) {
1035
- const ret = Reflect.has(arg0, arg1);
1036
- return ret;
1037
- }, arguments) };
1038
- imports.wbg.__wbg_headers_9cb51cfd2ac780a4 = function(arg0) {
1039
- const ret = arg0.headers;
1040
- return ret;
1041
- };
1042
- imports.wbg.__wbg_height_1d93eb7f5e355d97 = function(arg0) {
1043
- const ret = arg0.height;
1044
- return ret;
1045
- };
1046
- imports.wbg.__wbg_height_1f8226c8f6875110 = function(arg0) {
1047
- const ret = arg0.height;
1048
- return ret;
1049
- };
1050
- imports.wbg.__wbg_height_838cee19ba8597db = function(arg0) {
1051
- const ret = arg0.height;
1052
- return ret;
1053
- };
1054
- imports.wbg.__wbg_height_d3f39e12f0f62121 = function(arg0) {
1055
- const ret = arg0.height;
1056
- return ret;
1057
- };
1058
- imports.wbg.__wbg_height_df1aa98dfbbe11ad = function(arg0) {
1059
- const ret = arg0.height;
1060
- return ret;
1061
- };
1062
- imports.wbg.__wbg_height_e3c322f23d99ad2f = function(arg0) {
1063
- const ret = arg0.height;
1064
- return ret;
1065
- };
1066
- imports.wbg.__wbg_includes_937486a108ec147b = function(arg0, arg1, arg2) {
1067
- const ret = arg0.includes(arg1, arg2);
1068
- return ret;
1069
- };
1070
- imports.wbg.__wbg_instanceof_ArrayBuffer_e14585432e3737fc = function(arg0) {
1071
- let result;
1072
- try {
1073
- result = arg0 instanceof ArrayBuffer;
1074
- } catch (_) {
1075
- result = false;
1076
- }
1077
- const ret = result;
1078
- return ret;
1079
- };
1080
- imports.wbg.__wbg_instanceof_HtmlCanvasElement_2ea67072a7624ac5 = function(arg0) {
1081
- let result;
1082
- try {
1083
- result = arg0 instanceof HTMLCanvasElement;
1084
- } catch (_) {
1085
- result = false;
1086
- }
1087
- const ret = result;
1088
- return ret;
1089
- };
1090
- imports.wbg.__wbg_instanceof_HtmlVideoElement_7f414b32f362e317 = function(arg0) {
1091
- let result;
1092
- try {
1093
- result = arg0 instanceof HTMLVideoElement;
1094
- } catch (_) {
1095
- result = false;
1096
- }
1097
- const ret = result;
1098
- return ret;
1099
- };
1100
- imports.wbg.__wbg_instanceof_Map_f3469ce2244d2430 = function(arg0) {
1101
- let result;
1102
- try {
1103
- result = arg0 instanceof Map;
1104
- } catch (_) {
1105
- result = false;
1106
- }
1107
- const ret = result;
1108
- return ret;
1109
- };
1110
- imports.wbg.__wbg_instanceof_Response_f2cc20d9f7dfd644 = function(arg0) {
1111
- let result;
1112
- try {
1113
- result = arg0 instanceof Response;
1114
- } catch (_) {
1115
- result = false;
1116
- }
1117
- const ret = result;
1118
- return ret;
1119
- };
1120
- imports.wbg.__wbg_instanceof_Uint8Array_17156bcf118086a9 = function(arg0) {
1121
- let result;
1122
- try {
1123
- result = arg0 instanceof Uint8Array;
1124
- } catch (_) {
1125
- result = false;
1126
- }
1127
- const ret = result;
1128
- return ret;
1129
- };
1130
- imports.wbg.__wbg_instanceof_VideoFrame_f362406fe1355687 = function(arg0) {
1131
- let result;
1132
- try {
1133
- result = arg0 instanceof VideoFrame;
1134
- } catch (_) {
1135
- result = false;
1136
- }
1137
- const ret = result;
1138
- return ret;
1139
- };
1140
- imports.wbg.__wbg_instanceof_WebGl2RenderingContext_2b6045efeb76568d = function(arg0) {
1141
- let result;
1142
- try {
1143
- result = arg0 instanceof WebGL2RenderingContext;
1144
- } catch (_) {
1145
- result = false;
1146
- }
1147
- const ret = result;
1148
- return ret;
1149
- };
1150
- imports.wbg.__wbg_instanceof_Window_def73ea0955fc569 = function(arg0) {
1151
- let result;
1152
- try {
1153
- result = arg0 instanceof Window;
1154
- } catch (_) {
1155
- result = false;
1156
- }
1157
- const ret = result;
1158
- return ret;
1159
- };
1160
- imports.wbg.__wbg_invalidateFramebuffer_83f643d2a4936456 = function() { return handleError(function (arg0, arg1, arg2) {
1161
- arg0.invalidateFramebuffer(arg1 >>> 0, arg2);
1162
- }, arguments) };
1163
- imports.wbg.__wbg_isArray_a1eab7e0d067391b = function(arg0) {
1164
- const ret = Array.isArray(arg0);
1165
- return ret;
1166
- };
1167
- imports.wbg.__wbg_isSafeInteger_343e2beeeece1bb0 = function(arg0) {
1168
- const ret = Number.isSafeInteger(arg0);
1169
- return ret;
1170
- };
1171
- imports.wbg.__wbg_is_c7481c65e7e5df9e = function(arg0, arg1) {
1172
- const ret = Object.is(arg0, arg1);
1173
- return ret;
1174
- };
1175
- imports.wbg.__wbg_iterator_9a24c88df860dc65 = function() {
1176
- const ret = Symbol.iterator;
1177
- return ret;
1178
- };
1179
- imports.wbg.__wbg_length_a446193dc22c12f8 = function(arg0) {
1180
- const ret = arg0.length;
1181
- return ret;
1182
- };
1183
- imports.wbg.__wbg_length_e2d2a49132c1b256 = function(arg0) {
1184
- const ret = arg0.length;
1185
- return ret;
1186
- };
1187
- imports.wbg.__wbg_linkProgram_067ee06739bdde81 = function(arg0, arg1) {
1188
- arg0.linkProgram(arg1);
1189
- };
1190
- imports.wbg.__wbg_linkProgram_e002979fe36e5b2a = function(arg0, arg1) {
1191
- arg0.linkProgram(arg1);
1192
- };
1193
- imports.wbg.__wbg_log_0cc1b7768397bcfe = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
1194
- let deferred0_0;
1195
- let deferred0_1;
1196
- try {
1197
- deferred0_0 = arg0;
1198
- deferred0_1 = arg1;
1199
- console.log(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3), getStringFromWasm0(arg4, arg5), getStringFromWasm0(arg6, arg7));
1200
- } finally {
1201
- wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1202
- }
1203
- };
1204
- imports.wbg.__wbg_log_cb9e190acc5753fb = function(arg0, arg1) {
1205
- let deferred0_0;
1206
- let deferred0_1;
1207
- try {
1208
- deferred0_0 = arg0;
1209
- deferred0_1 = arg1;
1210
- console.log(getStringFromWasm0(arg0, arg1));
1211
- } finally {
1212
- wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1213
- }
1214
- };
1215
- imports.wbg.__wbg_mark_7438147ce31e9d4b = function(arg0, arg1) {
1216
- performance.mark(getStringFromWasm0(arg0, arg1));
1217
- };
1218
- imports.wbg.__wbg_measure_fb7825c11612c823 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
1219
- let deferred0_0;
1220
- let deferred0_1;
1221
- let deferred1_0;
1222
- let deferred1_1;
1223
- try {
1224
- deferred0_0 = arg0;
1225
- deferred0_1 = arg1;
1226
- deferred1_0 = arg2;
1227
- deferred1_1 = arg3;
1228
- performance.measure(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
1229
- } finally {
1230
- wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1231
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
1232
- }
1233
- }, arguments) };
1234
- imports.wbg.__wbg_new_018dcc2d6c8c2f6a = function() { return handleError(function () {
1235
- const ret = new Headers();
1236
- return ret;
1237
- }, arguments) };
1238
- imports.wbg.__wbg_new_23a2665fac83c611 = function(arg0, arg1) {
1239
- try {
1240
- var state0 = {a: arg0, b: arg1};
1241
- var cb0 = (arg0, arg1) => {
1242
- const a = state0.a;
1243
- state0.a = 0;
1244
- try {
1245
- return __wbg_adapter_731(a, state0.b, arg0, arg1);
1246
- } finally {
1247
- state0.a = a;
1248
- }
1249
- };
1250
- const ret = new Promise(cb0);
1251
- return ret;
1252
- } finally {
1253
- state0.a = state0.b = 0;
1254
- }
1255
- };
1256
- imports.wbg.__wbg_new_2ef971087cb43792 = function() { return handleError(function (arg0, arg1) {
1257
- const ret = new OffscreenCanvas(arg0 >>> 0, arg1 >>> 0);
1258
- return ret;
1259
- }, arguments) };
1260
- imports.wbg.__wbg_new_405e22f390576ce2 = function() {
1261
- const ret = new Object();
1262
- return ret;
1263
- };
1264
- imports.wbg.__wbg_new_78feb108b6472713 = function() {
1265
- const ret = new Array();
1266
- return ret;
1267
- };
1268
- imports.wbg.__wbg_new_8a6f238a6ece86ea = function() {
1269
- const ret = new Error();
1270
- return ret;
1271
- };
1272
- imports.wbg.__wbg_new_a12002a7f91c75be = function(arg0) {
1273
- const ret = new Uint8Array(arg0);
1274
- return ret;
1275
- };
1276
- imports.wbg.__wbg_new_e25e5aab09ff45db = function() { return handleError(function () {
1277
- const ret = new AbortController();
1278
- return ret;
1279
- }, arguments) };
1280
- imports.wbg.__wbg_newnoargs_105ed471475aaf50 = function(arg0, arg1) {
1281
- const ret = new Function(getStringFromWasm0(arg0, arg1));
1282
- return ret;
1283
- };
1284
- imports.wbg.__wbg_newwithbyteoffsetandlength_840f3c038856d4e9 = function(arg0, arg1, arg2) {
1285
- const ret = new Int8Array(arg0, arg1 >>> 0, arg2 >>> 0);
1286
- return ret;
1287
- };
1288
- imports.wbg.__wbg_newwithbyteoffsetandlength_999332a180064b59 = function(arg0, arg1, arg2) {
1289
- const ret = new Int32Array(arg0, arg1 >>> 0, arg2 >>> 0);
1290
- return ret;
1291
- };
1292
- imports.wbg.__wbg_newwithbyteoffsetandlength_d4a86622320ea258 = function(arg0, arg1, arg2) {
1293
- const ret = new Uint16Array(arg0, arg1 >>> 0, arg2 >>> 0);
1294
- return ret;
1295
- };
1296
- imports.wbg.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a = function(arg0, arg1, arg2) {
1297
- const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
1298
- return ret;
1299
- };
1300
- imports.wbg.__wbg_newwithbyteoffsetandlength_e6b7e69acd4c7354 = function(arg0, arg1, arg2) {
1301
- const ret = new Float32Array(arg0, arg1 >>> 0, arg2 >>> 0);
1302
- return ret;
1303
- };
1304
- imports.wbg.__wbg_newwithbyteoffsetandlength_f1dead44d1fc7212 = function(arg0, arg1, arg2) {
1305
- const ret = new Uint32Array(arg0, arg1 >>> 0, arg2 >>> 0);
1306
- return ret;
1307
- };
1308
- imports.wbg.__wbg_newwithbyteoffsetandlength_f254047f7e80e7ff = function(arg0, arg1, arg2) {
1309
- const ret = new Int16Array(arg0, arg1 >>> 0, arg2 >>> 0);
1310
- return ret;
1311
- };
1312
- imports.wbg.__wbg_newwithstrandinit_06c535e0a867c635 = function() { return handleError(function (arg0, arg1, arg2) {
1313
- const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
1314
- return ret;
1315
- }, arguments) };
1316
- imports.wbg.__wbg_next_25feadfc0913fea9 = function(arg0) {
1317
- const ret = arg0.next;
1318
- return ret;
1319
- };
1320
- imports.wbg.__wbg_next_6574e1a8a62d1055 = function() { return handleError(function (arg0) {
1321
- const ret = arg0.next();
1322
- return ret;
1323
- }, arguments) };
1324
- imports.wbg.__wbg_of_2eaf5a02d443ef03 = function(arg0) {
1325
- const ret = Array.of(arg0);
1326
- return ret;
1327
- };
1328
- imports.wbg.__wbg_pixelStorei_6aba5d04cdcaeaf6 = function(arg0, arg1, arg2) {
1329
- arg0.pixelStorei(arg1 >>> 0, arg2);
1330
- };
1331
- imports.wbg.__wbg_pixelStorei_c8520e4b46f4a973 = function(arg0, arg1, arg2) {
1332
- arg0.pixelStorei(arg1 >>> 0, arg2);
1333
- };
1334
- imports.wbg.__wbg_polygonOffset_773fe0017b2c8f51 = function(arg0, arg1, arg2) {
1335
- arg0.polygonOffset(arg1, arg2);
1336
- };
1337
- imports.wbg.__wbg_polygonOffset_8c11c066486216c4 = function(arg0, arg1, arg2) {
1338
- arg0.polygonOffset(arg1, arg2);
1339
- };
1340
- imports.wbg.__wbg_push_737cfc8c1432c2c6 = function(arg0, arg1) {
1341
- const ret = arg0.push(arg1);
1342
- return ret;
1343
- };
1344
- imports.wbg.__wbg_queryCounterEXT_7aed85645b7ec1da = function(arg0, arg1, arg2) {
1345
- arg0.queryCounterEXT(arg1, arg2 >>> 0);
1346
- };
1347
- imports.wbg.__wbg_querySelector_c69f8b573958906b = function() { return handleError(function (arg0, arg1, arg2) {
1348
- const ret = arg0.querySelector(getStringFromWasm0(arg1, arg2));
1349
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1350
- }, arguments) };
1351
- imports.wbg.__wbg_queueMicrotask_97d92b4fcc8a61c5 = function(arg0) {
1352
- queueMicrotask(arg0);
1353
- };
1354
- imports.wbg.__wbg_queueMicrotask_d3219def82552485 = function(arg0) {
1355
- const ret = arg0.queueMicrotask;
1356
- return ret;
1357
- };
1358
- imports.wbg.__wbg_readBuffer_1c35b1e4939f881d = function(arg0, arg1) {
1359
- arg0.readBuffer(arg1 >>> 0);
1360
- };
1361
- imports.wbg.__wbg_readPixels_51a0c02cdee207a5 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
1362
- arg0.readPixels(arg1, arg2, arg3, arg4, arg5 >>> 0, arg6 >>> 0, arg7);
1363
- }, arguments) };
1364
- imports.wbg.__wbg_readPixels_a6cbb21794452142 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
1365
- arg0.readPixels(arg1, arg2, arg3, arg4, arg5 >>> 0, arg6 >>> 0, arg7);
1366
- }, arguments) };
1367
- imports.wbg.__wbg_readPixels_cd64c5a7b0343355 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
1368
- arg0.readPixels(arg1, arg2, arg3, arg4, arg5 >>> 0, arg6 >>> 0, arg7);
1369
- }, arguments) };
1370
- imports.wbg.__wbg_renderbufferStorageMultisample_13fbd5e58900c6fe = function(arg0, arg1, arg2, arg3, arg4, arg5) {
1371
- arg0.renderbufferStorageMultisample(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5);
1372
- };
1373
- imports.wbg.__wbg_renderbufferStorage_73e01ea83b8afab4 = function(arg0, arg1, arg2, arg3, arg4) {
1374
- arg0.renderbufferStorage(arg1 >>> 0, arg2 >>> 0, arg3, arg4);
1375
- };
1376
- imports.wbg.__wbg_renderbufferStorage_f010012bd3566942 = function(arg0, arg1, arg2, arg3, arg4) {
1377
- arg0.renderbufferStorage(arg1 >>> 0, arg2 >>> 0, arg3, arg4);
1378
- };
1379
- imports.wbg.__wbg_resolve_4851785c9c5f573d = function(arg0) {
1380
- const ret = Promise.resolve(arg0);
1381
- return ret;
1382
- };
1383
- imports.wbg.__wbg_samplerParameterf_909baf50360c94d4 = function(arg0, arg1, arg2, arg3) {
1384
- arg0.samplerParameterf(arg1, arg2 >>> 0, arg3);
1385
- };
1386
- imports.wbg.__wbg_samplerParameteri_d5c292172718da63 = function(arg0, arg1, arg2, arg3) {
1387
- arg0.samplerParameteri(arg1, arg2 >>> 0, arg3);
1388
- };
1389
- imports.wbg.__wbg_scissor_e917a332f67a5d30 = function(arg0, arg1, arg2, arg3, arg4) {
1390
- arg0.scissor(arg1, arg2, arg3, arg4);
1391
- };
1392
- imports.wbg.__wbg_scissor_eb177ca33bf24a44 = function(arg0, arg1, arg2, arg3, arg4) {
1393
- arg0.scissor(arg1, arg2, arg3, arg4);
1394
- };
1395
- imports.wbg.__wbg_set_65595bdd868b3009 = function(arg0, arg1, arg2) {
1396
- arg0.set(arg1, arg2 >>> 0);
1397
- };
1398
- imports.wbg.__wbg_set_bb8cecf6a62b9f46 = function() { return handleError(function (arg0, arg1, arg2) {
1399
- const ret = Reflect.set(arg0, arg1, arg2);
1400
- return ret;
1401
- }, arguments) };
1402
- imports.wbg.__wbg_setbody_5923b78a95eedf29 = function(arg0, arg1) {
1403
- arg0.body = arg1;
1404
- };
1405
- imports.wbg.__wbg_setcredentials_c3a22f1cd105a2c6 = function(arg0, arg1) {
1406
- arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
1407
- };
1408
- imports.wbg.__wbg_setheaders_834c0bdb6a8949ad = function(arg0, arg1) {
1409
- arg0.headers = arg1;
1410
- };
1411
- imports.wbg.__wbg_setheight_433680330c9420c3 = function(arg0, arg1) {
1412
- arg0.height = arg1 >>> 0;
1413
- };
1414
- imports.wbg.__wbg_setheight_da683a33fa99843c = function(arg0, arg1) {
1415
- arg0.height = arg1 >>> 0;
1416
- };
1417
- imports.wbg.__wbg_setlayout_1a66735c5ff7f19e = function(arg0, arg1) {
1418
- arg0.layout = arg1;
1419
- };
1420
- imports.wbg.__wbg_setmethod_3c5280fe5d890842 = function(arg0, arg1, arg2) {
1421
- arg0.method = getStringFromWasm0(arg1, arg2);
1422
- };
1423
- imports.wbg.__wbg_setmode_5dc300b865044b65 = function(arg0, arg1) {
1424
- arg0.mode = __wbindgen_enum_RequestMode[arg1];
1425
- };
1426
- imports.wbg.__wbg_setsignal_75b21ef3a81de905 = function(arg0, arg1) {
1427
- arg0.signal = arg1;
1428
- };
1429
- imports.wbg.__wbg_setwidth_660ca581e3fbe279 = function(arg0, arg1) {
1430
- arg0.width = arg1 >>> 0;
1431
- };
1432
- imports.wbg.__wbg_setwidth_c5fed9f5e7f0b406 = function(arg0, arg1) {
1433
- arg0.width = arg1 >>> 0;
1434
- };
1435
- imports.wbg.__wbg_shaderSource_72d3e8597ef85b67 = function(arg0, arg1, arg2, arg3) {
1436
- arg0.shaderSource(arg1, getStringFromWasm0(arg2, arg3));
1437
- };
1438
- imports.wbg.__wbg_shaderSource_ad0087e637a35191 = function(arg0, arg1, arg2, arg3) {
1439
- arg0.shaderSource(arg1, getStringFromWasm0(arg2, arg3));
1440
- };
1441
- imports.wbg.__wbg_signal_aaf9ad74119f20a4 = function(arg0) {
1442
- const ret = arg0.signal;
1443
- return ret;
1444
- };
1445
- imports.wbg.__wbg_smelterrenderer_new = function(arg0) {
1446
- const ret = SmelterRenderer.__wrap(arg0);
1447
- return ret;
1448
- };
1449
- imports.wbg.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
1450
- const ret = arg1.stack;
1451
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1452
- const len1 = WASM_VECTOR_LEN;
1453
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1454
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1455
- };
1456
- imports.wbg.__wbg_static_accessor_GLOBAL_88a902d13a557d07 = function() {
1457
- const ret = typeof global === 'undefined' ? null : global;
1458
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1459
- };
1460
- imports.wbg.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0 = function() {
1461
- const ret = typeof globalThis === 'undefined' ? null : globalThis;
1462
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1463
- };
1464
- imports.wbg.__wbg_static_accessor_SELF_37c5d418e4bf5819 = function() {
1465
- const ret = typeof self === 'undefined' ? null : self;
1466
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1467
- };
1468
- imports.wbg.__wbg_static_accessor_WINDOW_5de37043a91a9c40 = function() {
1469
- const ret = typeof window === 'undefined' ? null : window;
1470
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1471
- };
1472
- imports.wbg.__wbg_status_f6360336ca686bf0 = function(arg0) {
1473
- const ret = arg0.status;
1474
- return ret;
1475
- };
1476
- imports.wbg.__wbg_stencilFuncSeparate_91700dcf367ae07e = function(arg0, arg1, arg2, arg3, arg4) {
1477
- arg0.stencilFuncSeparate(arg1 >>> 0, arg2 >>> 0, arg3, arg4 >>> 0);
1478
- };
1479
- imports.wbg.__wbg_stencilFuncSeparate_c1a6fa2005ca0aaf = function(arg0, arg1, arg2, arg3, arg4) {
1480
- arg0.stencilFuncSeparate(arg1 >>> 0, arg2 >>> 0, arg3, arg4 >>> 0);
1481
- };
1482
- imports.wbg.__wbg_stencilMaskSeparate_4f1a2defc8c10956 = function(arg0, arg1, arg2) {
1483
- arg0.stencilMaskSeparate(arg1 >>> 0, arg2 >>> 0);
1484
- };
1485
- imports.wbg.__wbg_stencilMaskSeparate_f8a0cfb5c2994d4a = function(arg0, arg1, arg2) {
1486
- arg0.stencilMaskSeparate(arg1 >>> 0, arg2 >>> 0);
1487
- };
1488
- imports.wbg.__wbg_stencilMask_1e602ef63f5b4144 = function(arg0, arg1) {
1489
- arg0.stencilMask(arg1 >>> 0);
1490
- };
1491
- imports.wbg.__wbg_stencilMask_cd8ca0a55817e599 = function(arg0, arg1) {
1492
- arg0.stencilMask(arg1 >>> 0);
1493
- };
1494
- imports.wbg.__wbg_stencilOpSeparate_1fa08985e79e1627 = function(arg0, arg1, arg2, arg3, arg4) {
1495
- arg0.stencilOpSeparate(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
1496
- };
1497
- imports.wbg.__wbg_stencilOpSeparate_ff6683bbe3838ae6 = function(arg0, arg1, arg2, arg3, arg4) {
1498
- arg0.stencilOpSeparate(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
1499
- };
1500
- imports.wbg.__wbg_stringify_f7ed6987935b4a24 = function() { return handleError(function (arg0) {
1501
- const ret = JSON.stringify(arg0);
1502
- return ret;
1503
- }, arguments) };
1504
- imports.wbg.__wbg_texImage2D_57483314967bdd11 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
1505
- arg0.texImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
1506
- }, arguments) };
1507
- imports.wbg.__wbg_texImage2D_5f2835f02b1d1077 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
1508
- arg0.texImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
1509
- }, arguments) };
1510
- imports.wbg.__wbg_texImage2D_b8edcb5692f65f88 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
1511
- arg0.texImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
1512
- }, arguments) };
1513
- imports.wbg.__wbg_texImage3D_921b54d09bf45af0 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) {
1514
- arg0.texImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8 >>> 0, arg9 >>> 0, arg10);
1515
- }, arguments) };
1516
- imports.wbg.__wbg_texImage3D_a00b7a4df48cf757 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) {
1517
- arg0.texImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8 >>> 0, arg9 >>> 0, arg10);
1518
- }, arguments) };
1519
- imports.wbg.__wbg_texParameteri_8112b26b3c360b7e = function(arg0, arg1, arg2, arg3) {
1520
- arg0.texParameteri(arg1 >>> 0, arg2 >>> 0, arg3);
1521
- };
1522
- imports.wbg.__wbg_texParameteri_ef50743cb94d507e = function(arg0, arg1, arg2, arg3) {
1523
- arg0.texParameteri(arg1 >>> 0, arg2 >>> 0, arg3);
1524
- };
1525
- imports.wbg.__wbg_texStorage2D_fbda848497f3674e = function(arg0, arg1, arg2, arg3, arg4, arg5) {
1526
- arg0.texStorage2D(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5);
1527
- };
1528
- imports.wbg.__wbg_texStorage3D_fd7a7ca30e7981d1 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
1529
- arg0.texStorage3D(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5, arg6);
1530
- };
1531
- imports.wbg.__wbg_texSubImage2D_061605071aad9d2c = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
1532
- arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
1533
- }, arguments) };
1534
- imports.wbg.__wbg_texSubImage2D_82670edc2c5acd35 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
1535
- arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
1536
- }, arguments) };
1537
- imports.wbg.__wbg_texSubImage2D_aa9a084093764796 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
1538
- arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
1539
- }, arguments) };
1540
- imports.wbg.__wbg_texSubImage2D_c7951ed97252bdff = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
1541
- arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
1542
- }, arguments) };
1543
- imports.wbg.__wbg_texSubImage2D_d52d1a0d3654c60b = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
1544
- arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
1545
- }, arguments) };
1546
- imports.wbg.__wbg_texSubImage2D_dd9cac68ad5fe0b6 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
1547
- arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
1548
- }, arguments) };
1549
- imports.wbg.__wbg_texSubImage2D_e6d34f5bb062e404 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
1550
- arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
1551
- }, arguments) };
1552
- imports.wbg.__wbg_texSubImage2D_f39ea52a2d4bd2f7 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
1553
- arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
1554
- }, arguments) };
1555
- imports.wbg.__wbg_texSubImage2D_fbdf91268228c757 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
1556
- arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
1557
- }, arguments) };
1558
- imports.wbg.__wbg_texSubImage3D_02bbdad14919acfc = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
1559
- arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11);
1560
- }, arguments) };
1561
- imports.wbg.__wbg_texSubImage3D_04731251d7cecc83 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
1562
- arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11);
1563
- }, arguments) };
1564
- imports.wbg.__wbg_texSubImage3D_37f0045d16871670 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
1565
- arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11);
1566
- }, arguments) };
1567
- imports.wbg.__wbg_texSubImage3D_3a871f6405d2f183 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
1568
- arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11);
1569
- }, arguments) };
1570
- imports.wbg.__wbg_texSubImage3D_66acd67f56e3b214 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
1571
- arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11);
1572
- }, arguments) };
1573
- imports.wbg.__wbg_texSubImage3D_a051de089266fa1b = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
1574
- arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11);
1575
- }, arguments) };
1576
- imports.wbg.__wbg_texSubImage3D_b28c55f839bbec41 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
1577
- arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11);
1578
- }, arguments) };
1579
- imports.wbg.__wbg_texSubImage3D_f18bf091cd48774c = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
1580
- arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11);
1581
- }, arguments) };
1582
- imports.wbg.__wbg_then_44b73946d2fb3e7d = function(arg0, arg1) {
1583
- const ret = arg0.then(arg1);
1584
- return ret;
1585
- };
1586
- imports.wbg.__wbg_then_48b406749878a531 = function(arg0, arg1, arg2) {
1587
- const ret = arg0.then(arg1, arg2);
1588
- return ret;
1589
- };
1590
- imports.wbg.__wbg_uniform1f_21390b04609a9fa5 = function(arg0, arg1, arg2) {
1591
- arg0.uniform1f(arg1, arg2);
1592
- };
1593
- imports.wbg.__wbg_uniform1f_dc009a0e7f7e5977 = function(arg0, arg1, arg2) {
1594
- arg0.uniform1f(arg1, arg2);
1595
- };
1596
- imports.wbg.__wbg_uniform1i_5ddd9d8ccbd390bb = function(arg0, arg1, arg2) {
1597
- arg0.uniform1i(arg1, arg2);
1598
- };
1599
- imports.wbg.__wbg_uniform1i_ed95b6129dce4d84 = function(arg0, arg1, arg2) {
1600
- arg0.uniform1i(arg1, arg2);
1601
- };
1602
- imports.wbg.__wbg_uniform1ui_66e092b67a21c84d = function(arg0, arg1, arg2) {
1603
- arg0.uniform1ui(arg1, arg2 >>> 0);
1604
- };
1605
- imports.wbg.__wbg_uniform2fv_656fce9525420996 = function(arg0, arg1, arg2, arg3) {
1606
- arg0.uniform2fv(arg1, getArrayF32FromWasm0(arg2, arg3));
1607
- };
1608
- imports.wbg.__wbg_uniform2fv_d8bd2a36da7ce440 = function(arg0, arg1, arg2, arg3) {
1609
- arg0.uniform2fv(arg1, getArrayF32FromWasm0(arg2, arg3));
1610
- };
1611
- imports.wbg.__wbg_uniform2iv_4d39fc5a26f03f55 = function(arg0, arg1, arg2, arg3) {
1612
- arg0.uniform2iv(arg1, getArrayI32FromWasm0(arg2, arg3));
1613
- };
1614
- imports.wbg.__wbg_uniform2iv_e967139a28017a99 = function(arg0, arg1, arg2, arg3) {
1615
- arg0.uniform2iv(arg1, getArrayI32FromWasm0(arg2, arg3));
1616
- };
1617
- imports.wbg.__wbg_uniform2uiv_4c340c9e8477bb07 = function(arg0, arg1, arg2, arg3) {
1618
- arg0.uniform2uiv(arg1, getArrayU32FromWasm0(arg2, arg3));
1619
- };
1620
- imports.wbg.__wbg_uniform3fv_7d828b7c4c91138e = function(arg0, arg1, arg2, arg3) {
1621
- arg0.uniform3fv(arg1, getArrayF32FromWasm0(arg2, arg3));
1622
- };
1623
- imports.wbg.__wbg_uniform3fv_8153c834ce667125 = function(arg0, arg1, arg2, arg3) {
1624
- arg0.uniform3fv(arg1, getArrayF32FromWasm0(arg2, arg3));
1625
- };
1626
- imports.wbg.__wbg_uniform3iv_58662d914661aa10 = function(arg0, arg1, arg2, arg3) {
1627
- arg0.uniform3iv(arg1, getArrayI32FromWasm0(arg2, arg3));
1628
- };
1629
- imports.wbg.__wbg_uniform3iv_f30d27ec224b4b24 = function(arg0, arg1, arg2, arg3) {
1630
- arg0.uniform3iv(arg1, getArrayI32FromWasm0(arg2, arg3));
1631
- };
1632
- imports.wbg.__wbg_uniform3uiv_38673b825dc755f6 = function(arg0, arg1, arg2, arg3) {
1633
- arg0.uniform3uiv(arg1, getArrayU32FromWasm0(arg2, arg3));
1634
- };
1635
- imports.wbg.__wbg_uniform4f_36b8f9be15064aa7 = function(arg0, arg1, arg2, arg3, arg4, arg5) {
1636
- arg0.uniform4f(arg1, arg2, arg3, arg4, arg5);
1637
- };
1638
- imports.wbg.__wbg_uniform4f_f7ea07febf8b5108 = function(arg0, arg1, arg2, arg3, arg4, arg5) {
1639
- arg0.uniform4f(arg1, arg2, arg3, arg4, arg5);
1640
- };
1641
- imports.wbg.__wbg_uniform4fv_8827081a7585145b = function(arg0, arg1, arg2, arg3) {
1642
- arg0.uniform4fv(arg1, getArrayF32FromWasm0(arg2, arg3));
1643
- };
1644
- imports.wbg.__wbg_uniform4fv_c01fbc6c022abac3 = function(arg0, arg1, arg2, arg3) {
1645
- arg0.uniform4fv(arg1, getArrayF32FromWasm0(arg2, arg3));
1646
- };
1647
- imports.wbg.__wbg_uniform4iv_7fe05be291899f06 = function(arg0, arg1, arg2, arg3) {
1648
- arg0.uniform4iv(arg1, getArrayI32FromWasm0(arg2, arg3));
1649
- };
1650
- imports.wbg.__wbg_uniform4iv_84fdf80745e7ff26 = function(arg0, arg1, arg2, arg3) {
1651
- arg0.uniform4iv(arg1, getArrayI32FromWasm0(arg2, arg3));
1652
- };
1653
- imports.wbg.__wbg_uniform4uiv_9de55998fbfef236 = function(arg0, arg1, arg2, arg3) {
1654
- arg0.uniform4uiv(arg1, getArrayU32FromWasm0(arg2, arg3));
1655
- };
1656
- imports.wbg.__wbg_uniformBlockBinding_18117f4bda07115b = function(arg0, arg1, arg2, arg3) {
1657
- arg0.uniformBlockBinding(arg1, arg2 >>> 0, arg3 >>> 0);
1658
- };
1659
- imports.wbg.__wbg_uniformMatrix2fv_98681e400347369c = function(arg0, arg1, arg2, arg3, arg4) {
1660
- arg0.uniformMatrix2fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
1661
- };
1662
- imports.wbg.__wbg_uniformMatrix2fv_bc019eb4784a3b8c = function(arg0, arg1, arg2, arg3, arg4) {
1663
- arg0.uniformMatrix2fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
1664
- };
1665
- imports.wbg.__wbg_uniformMatrix2x3fv_6421f8d6f7f4d144 = function(arg0, arg1, arg2, arg3, arg4) {
1666
- arg0.uniformMatrix2x3fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
1667
- };
1668
- imports.wbg.__wbg_uniformMatrix2x4fv_27d807767d7aadc6 = function(arg0, arg1, arg2, arg3, arg4) {
1669
- arg0.uniformMatrix2x4fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
1670
- };
1671
- imports.wbg.__wbg_uniformMatrix3fv_3d6ad3a1e0b0b5b6 = function(arg0, arg1, arg2, arg3, arg4) {
1672
- arg0.uniformMatrix3fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
1673
- };
1674
- imports.wbg.__wbg_uniformMatrix3fv_3df529aab93cf902 = function(arg0, arg1, arg2, arg3, arg4) {
1675
- arg0.uniformMatrix3fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
1676
- };
1677
- imports.wbg.__wbg_uniformMatrix3x2fv_79357317e9637d05 = function(arg0, arg1, arg2, arg3, arg4) {
1678
- arg0.uniformMatrix3x2fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
1679
- };
1680
- imports.wbg.__wbg_uniformMatrix3x4fv_9d1a88b5abfbd64b = function(arg0, arg1, arg2, arg3, arg4) {
1681
- arg0.uniformMatrix3x4fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
1682
- };
1683
- imports.wbg.__wbg_uniformMatrix4fv_da94083874f202ad = function(arg0, arg1, arg2, arg3, arg4) {
1684
- arg0.uniformMatrix4fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
1685
- };
1686
- imports.wbg.__wbg_uniformMatrix4fv_e87383507ae75670 = function(arg0, arg1, arg2, arg3, arg4) {
1687
- arg0.uniformMatrix4fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
1688
- };
1689
- imports.wbg.__wbg_uniformMatrix4x2fv_aa507d918a0b5a62 = function(arg0, arg1, arg2, arg3, arg4) {
1690
- arg0.uniformMatrix4x2fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
1691
- };
1692
- imports.wbg.__wbg_uniformMatrix4x3fv_6712c7a3b4276fb4 = function(arg0, arg1, arg2, arg3, arg4) {
1693
- arg0.uniformMatrix4x3fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
1694
- };
1695
- imports.wbg.__wbg_url_ae10c34ca209681d = function(arg0, arg1) {
1696
- const ret = arg1.url;
1697
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1698
- const len1 = WASM_VECTOR_LEN;
1699
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1700
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1701
- };
1702
- imports.wbg.__wbg_useProgram_473bf913989b6089 = function(arg0, arg1) {
1703
- arg0.useProgram(arg1);
1704
- };
1705
- imports.wbg.__wbg_useProgram_9b2660f7bb210471 = function(arg0, arg1) {
1706
- arg0.useProgram(arg1);
1707
- };
1708
- imports.wbg.__wbg_value_cd1ffa7b1ab794f1 = function(arg0) {
1709
- const ret = arg0.value;
1710
- return ret;
1711
- };
1712
- imports.wbg.__wbg_vertexAttribDivisorANGLE_11e909d332960413 = function(arg0, arg1, arg2) {
1713
- arg0.vertexAttribDivisorANGLE(arg1 >>> 0, arg2 >>> 0);
1714
- };
1715
- imports.wbg.__wbg_vertexAttribDivisor_4d361d77ffb6d3ff = function(arg0, arg1, arg2) {
1716
- arg0.vertexAttribDivisor(arg1 >>> 0, arg2 >>> 0);
1717
- };
1718
- imports.wbg.__wbg_vertexAttribIPointer_d0c67543348c90ce = function(arg0, arg1, arg2, arg3, arg4, arg5) {
1719
- arg0.vertexAttribIPointer(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5);
1720
- };
1721
- imports.wbg.__wbg_vertexAttribPointer_550dc34903e3d1ea = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
1722
- arg0.vertexAttribPointer(arg1 >>> 0, arg2, arg3 >>> 0, arg4 !== 0, arg5, arg6);
1723
- };
1724
- imports.wbg.__wbg_vertexAttribPointer_7a2a506cdbe3aebc = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
1725
- arg0.vertexAttribPointer(arg1 >>> 0, arg2, arg3 >>> 0, arg4 !== 0, arg5, arg6);
1726
- };
1727
- imports.wbg.__wbg_videoHeight_3a43327a766c1f03 = function(arg0) {
1728
- const ret = arg0.videoHeight;
1729
- return ret;
1730
- };
1731
- imports.wbg.__wbg_videoWidth_4b400cf6f4744a4d = function(arg0) {
1732
- const ret = arg0.videoWidth;
1733
- return ret;
1734
- };
1735
- imports.wbg.__wbg_viewport_a1b4d71297ba89af = function(arg0, arg1, arg2, arg3, arg4) {
1736
- arg0.viewport(arg1, arg2, arg3, arg4);
1737
- };
1738
- imports.wbg.__wbg_viewport_e615e98f676f2d39 = function(arg0, arg1, arg2, arg3, arg4) {
1739
- arg0.viewport(arg1, arg2, arg3, arg4);
1740
- };
1741
- imports.wbg.__wbg_visibleRect_f7558c0cfa7dfdbf = function(arg0) {
1742
- const ret = arg0.visibleRect;
1743
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1744
- };
1745
- imports.wbg.__wbg_width_4f334fc47ef03de1 = function(arg0) {
1746
- const ret = arg0.width;
1747
- return ret;
1748
- };
1749
- imports.wbg.__wbg_width_5dde457d606ba683 = function(arg0) {
1750
- const ret = arg0.width;
1751
- return ret;
1752
- };
1753
- imports.wbg.__wbg_width_8fe4e8f77479c2a6 = function(arg0) {
1754
- const ret = arg0.width;
1755
- return ret;
1756
- };
1757
- imports.wbg.__wbg_width_b0c1d9f437a95799 = function(arg0) {
1758
- const ret = arg0.width;
1759
- return ret;
1760
- };
1761
- imports.wbg.__wbg_width_cdaf02311c1621d1 = function(arg0) {
1762
- const ret = arg0.width;
1763
- return ret;
1764
- };
1765
- imports.wbg.__wbg_width_f54c7178d3c78f16 = function(arg0) {
1766
- const ret = arg0.width;
1767
- return ret;
1768
- };
1769
- imports.wbg.__wbindgen_array_new = function() {
1770
- const ret = [];
1771
- return ret;
1772
- };
1773
- imports.wbg.__wbindgen_array_push = function(arg0, arg1) {
1774
- arg0.push(arg1);
1775
- };
1776
- imports.wbg.__wbindgen_as_number = function(arg0) {
1777
- const ret = +arg0;
1778
- return ret;
1779
- };
1780
- imports.wbg.__wbindgen_bigint_from_i64 = function(arg0) {
1781
- const ret = arg0;
1782
- return ret;
1783
- };
1784
- imports.wbg.__wbindgen_bigint_from_u128 = function(arg0, arg1) {
1785
- const ret = BigInt.asUintN(64, arg0) << BigInt(64) | BigInt.asUintN(64, arg1);
1786
- return ret;
1787
- };
1788
- imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
1789
- const ret = BigInt.asUintN(64, arg0);
1790
- return ret;
1791
- };
1792
- imports.wbg.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
1793
- const v = arg1;
1794
- const ret = typeof(v) === 'bigint' ? v : undefined;
1795
- getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
1796
- getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
1797
- };
1798
- imports.wbg.__wbindgen_boolean_get = function(arg0) {
1799
- const v = arg0;
1800
- const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
1801
- return ret;
1802
- };
1803
- imports.wbg.__wbindgen_cb_drop = function(arg0) {
1804
- const obj = arg0.original;
1805
- if (obj.cnt-- == 1) {
1806
- obj.a = 0;
1807
- return true;
1808
- }
1809
- const ret = false;
1810
- return ret;
1811
- };
1812
- imports.wbg.__wbindgen_closure_wrapper2952 = function(arg0, arg1, arg2) {
1813
- const ret = makeMutClosure(arg0, arg1, 1074, __wbg_adapter_60);
1814
- return ret;
1815
- };
1816
- imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
1817
- const ret = debugString(arg1);
1818
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1819
- const len1 = WASM_VECTOR_LEN;
1820
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1821
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1822
- };
1823
- imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
1824
- const ret = new Error(getStringFromWasm0(arg0, arg1));
1825
- return ret;
1826
- };
1827
- imports.wbg.__wbindgen_in = function(arg0, arg1) {
1828
- const ret = arg0 in arg1;
1829
- return ret;
1830
- };
1831
- imports.wbg.__wbindgen_init_externref_table = function() {
1832
- const table = wasm.__wbindgen_export_4;
1833
- const offset = table.grow(4);
1834
- table.set(0, undefined);
1835
- table.set(offset + 0, undefined);
1836
- table.set(offset + 1, null);
1837
- table.set(offset + 2, true);
1838
- table.set(offset + 3, false);
1839
- };
1840
- imports.wbg.__wbindgen_is_bigint = function(arg0) {
1841
- const ret = typeof(arg0) === 'bigint';
1842
- return ret;
1843
- };
1844
- imports.wbg.__wbindgen_is_function = function(arg0) {
1845
- const ret = typeof(arg0) === 'function';
1846
- return ret;
1847
- };
1848
- imports.wbg.__wbindgen_is_object = function(arg0) {
1849
- const val = arg0;
1850
- const ret = typeof(val) === 'object' && val !== null;
1851
- return ret;
1852
- };
1853
- imports.wbg.__wbindgen_is_string = function(arg0) {
1854
- const ret = typeof(arg0) === 'string';
1855
- return ret;
1856
- };
1857
- imports.wbg.__wbindgen_is_undefined = function(arg0) {
1858
- const ret = arg0 === undefined;
1859
- return ret;
1860
- };
1861
- imports.wbg.__wbindgen_jsval_eq = function(arg0, arg1) {
1862
- const ret = arg0 === arg1;
1863
- return ret;
1864
- };
1865
- imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
1866
- const ret = arg0 == arg1;
1867
- return ret;
1868
- };
1869
- imports.wbg.__wbindgen_memory = function() {
1870
- const ret = wasm.memory;
1871
- return ret;
1872
- };
1873
- imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
1874
- const obj = arg1;
1875
- const ret = typeof(obj) === 'number' ? obj : undefined;
1876
- getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
1877
- getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
1878
- };
1879
- imports.wbg.__wbindgen_number_new = function(arg0) {
1880
- const ret = arg0;
1881
- return ret;
1882
- };
1883
- imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
1884
- const obj = arg1;
1885
- const ret = typeof(obj) === 'string' ? obj : undefined;
1886
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1887
- var len1 = WASM_VECTOR_LEN;
1888
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1889
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1890
- };
1891
- imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
1892
- const ret = getStringFromWasm0(arg0, arg1);
1893
- return ret;
1894
- };
1895
- imports.wbg.__wbindgen_throw = function(arg0, arg1) {
1896
- throw new Error(getStringFromWasm0(arg0, arg1));
1741
+ }
1742
+ // errors
1743
+ if (val instanceof Error) {
1744
+ return `${val.name}: ${val.message}\n${val.stack}`;
1745
+ }
1746
+ // TODO we could test for more things here, like `Set`s and `Map`s.
1747
+ return className;
1748
+ }
1749
+
1750
+ function getArrayF32FromWasm0(ptr, len) {
1751
+ ptr = ptr >>> 0;
1752
+ return getFloat32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
1753
+ }
1754
+
1755
+ function getArrayI16FromWasm0(ptr, len) {
1756
+ ptr = ptr >>> 0;
1757
+ return getInt16ArrayMemory0().subarray(ptr / 2, ptr / 2 + len);
1758
+ }
1759
+
1760
+ function getArrayI32FromWasm0(ptr, len) {
1761
+ ptr = ptr >>> 0;
1762
+ return getInt32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
1763
+ }
1764
+
1765
+ function getArrayI8FromWasm0(ptr, len) {
1766
+ ptr = ptr >>> 0;
1767
+ return getInt8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
1768
+ }
1769
+
1770
+ function getArrayJsValueFromWasm0(ptr, len) {
1771
+ ptr = ptr >>> 0;
1772
+ const mem = getDataViewMemory0();
1773
+ const result = [];
1774
+ for (let i = ptr; i < ptr + 4 * len; i += 4) {
1775
+ result.push(wasm.__wbindgen_externrefs.get(mem.getUint32(i, true)));
1776
+ }
1777
+ wasm.__externref_drop_slice(ptr, len);
1778
+ return result;
1779
+ }
1780
+
1781
+ function getArrayJsValueViewFromWasm0(ptr, len) {
1782
+ ptr = ptr >>> 0;
1783
+ const mem = getDataViewMemory0();
1784
+ const result = [];
1785
+ for (let i = ptr; i < ptr + 4 * len; i += 4) {
1786
+ result.push(wasm.__wbindgen_externrefs.get(mem.getUint32(i, true)));
1787
+ }
1788
+ return result;
1789
+ }
1790
+
1791
+ function getArrayU16FromWasm0(ptr, len) {
1792
+ ptr = ptr >>> 0;
1793
+ return getUint16ArrayMemory0().subarray(ptr / 2, ptr / 2 + len);
1794
+ }
1795
+
1796
+ function getArrayU32FromWasm0(ptr, len) {
1797
+ ptr = ptr >>> 0;
1798
+ return getUint32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
1799
+ }
1800
+
1801
+ function getArrayU8FromWasm0(ptr, len) {
1802
+ ptr = ptr >>> 0;
1803
+ return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
1804
+ }
1805
+
1806
+ function getClampedArrayU8FromWasm0(ptr, len) {
1807
+ ptr = ptr >>> 0;
1808
+ return getUint8ClampedArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
1809
+ }
1810
+
1811
+ let cachedDataViewMemory0 = null;
1812
+ function getDataViewMemory0() {
1813
+ if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
1814
+ cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
1815
+ }
1816
+ return cachedDataViewMemory0;
1817
+ }
1818
+
1819
+ let cachedFloat32ArrayMemory0 = null;
1820
+ function getFloat32ArrayMemory0() {
1821
+ if (cachedFloat32ArrayMemory0 === null || cachedFloat32ArrayMemory0.byteLength === 0) {
1822
+ cachedFloat32ArrayMemory0 = new Float32Array(wasm.memory.buffer);
1823
+ }
1824
+ return cachedFloat32ArrayMemory0;
1825
+ }
1826
+
1827
+ let cachedInt16ArrayMemory0 = null;
1828
+ function getInt16ArrayMemory0() {
1829
+ if (cachedInt16ArrayMemory0 === null || cachedInt16ArrayMemory0.byteLength === 0) {
1830
+ cachedInt16ArrayMemory0 = new Int16Array(wasm.memory.buffer);
1831
+ }
1832
+ return cachedInt16ArrayMemory0;
1833
+ }
1834
+
1835
+ let cachedInt32ArrayMemory0 = null;
1836
+ function getInt32ArrayMemory0() {
1837
+ if (cachedInt32ArrayMemory0 === null || cachedInt32ArrayMemory0.byteLength === 0) {
1838
+ cachedInt32ArrayMemory0 = new Int32Array(wasm.memory.buffer);
1839
+ }
1840
+ return cachedInt32ArrayMemory0;
1841
+ }
1842
+
1843
+ let cachedInt8ArrayMemory0 = null;
1844
+ function getInt8ArrayMemory0() {
1845
+ if (cachedInt8ArrayMemory0 === null || cachedInt8ArrayMemory0.byteLength === 0) {
1846
+ cachedInt8ArrayMemory0 = new Int8Array(wasm.memory.buffer);
1847
+ }
1848
+ return cachedInt8ArrayMemory0;
1849
+ }
1850
+
1851
+ function getStringFromWasm0(ptr, len) {
1852
+ ptr = ptr >>> 0;
1853
+ return decodeText(ptr, len);
1854
+ }
1855
+
1856
+ let cachedUint16ArrayMemory0 = null;
1857
+ function getUint16ArrayMemory0() {
1858
+ if (cachedUint16ArrayMemory0 === null || cachedUint16ArrayMemory0.byteLength === 0) {
1859
+ cachedUint16ArrayMemory0 = new Uint16Array(wasm.memory.buffer);
1860
+ }
1861
+ return cachedUint16ArrayMemory0;
1862
+ }
1863
+
1864
+ let cachedUint32ArrayMemory0 = null;
1865
+ function getUint32ArrayMemory0() {
1866
+ if (cachedUint32ArrayMemory0 === null || cachedUint32ArrayMemory0.byteLength === 0) {
1867
+ cachedUint32ArrayMemory0 = new Uint32Array(wasm.memory.buffer);
1868
+ }
1869
+ return cachedUint32ArrayMemory0;
1870
+ }
1871
+
1872
+ let cachedUint8ArrayMemory0 = null;
1873
+ function getUint8ArrayMemory0() {
1874
+ if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
1875
+ cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
1876
+ }
1877
+ return cachedUint8ArrayMemory0;
1878
+ }
1879
+
1880
+ let cachedUint8ClampedArrayMemory0 = null;
1881
+ function getUint8ClampedArrayMemory0() {
1882
+ if (cachedUint8ClampedArrayMemory0 === null || cachedUint8ClampedArrayMemory0.byteLength === 0) {
1883
+ cachedUint8ClampedArrayMemory0 = new Uint8ClampedArray(wasm.memory.buffer);
1884
+ }
1885
+ return cachedUint8ClampedArrayMemory0;
1886
+ }
1887
+
1888
+ function handleError(f, args) {
1889
+ try {
1890
+ return f.apply(this, args);
1891
+ } catch (e) {
1892
+ const idx = addToExternrefTable0(e);
1893
+ wasm.__wbindgen_exn_store(idx);
1894
+ }
1895
+ }
1896
+
1897
+ function isLikeNone(x) {
1898
+ return x === undefined || x === null;
1899
+ }
1900
+
1901
+ function makeMutClosure(arg0, arg1, dtor, f) {
1902
+ const state = { a: arg0, b: arg1, cnt: 1, dtor };
1903
+ const real = (...args) => {
1904
+
1905
+ // First up with a closure we increment the internal reference
1906
+ // count. This ensures that the Rust closure environment won't
1907
+ // be deallocated while we're invoking it.
1908
+ state.cnt++;
1909
+ const a = state.a;
1910
+ state.a = 0;
1911
+ try {
1912
+ return f(a, state.b, ...args);
1913
+ } finally {
1914
+ state.a = a;
1915
+ real._wbg_cb_unref();
1916
+ }
1897
1917
  };
1898
- imports.wbg.__wbindgen_uint8_clamped_array_new = function(arg0, arg1) {
1899
- var v0 = getClampedArrayU8FromWasm0(arg0, arg1).slice();
1900
- wasm.__wbindgen_free(arg0, arg1 * 1, 1);
1901
- const ret = v0;
1902
- return ret;
1918
+ real._wbg_cb_unref = () => {
1919
+ if (--state.cnt === 0) {
1920
+ state.dtor(state.a, state.b);
1921
+ state.a = 0;
1922
+ CLOSURE_DTORS.unregister(state);
1923
+ }
1903
1924
  };
1925
+ CLOSURE_DTORS.register(real, state, state);
1926
+ return real;
1927
+ }
1928
+
1929
+ function passStringToWasm0(arg, malloc, realloc) {
1930
+ if (realloc === undefined) {
1931
+ const buf = cachedTextEncoder.encode(arg);
1932
+ const ptr = malloc(buf.length, 1) >>> 0;
1933
+ getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
1934
+ WASM_VECTOR_LEN = buf.length;
1935
+ return ptr;
1936
+ }
1937
+
1938
+ let len = arg.length;
1939
+ let ptr = malloc(len, 1) >>> 0;
1940
+
1941
+ const mem = getUint8ArrayMemory0();
1942
+
1943
+ let offset = 0;
1904
1944
 
1905
- return imports;
1945
+ for (; offset < len; offset++) {
1946
+ const code = arg.charCodeAt(offset);
1947
+ if (code > 0x7F) break;
1948
+ mem[ptr + offset] = code;
1949
+ }
1950
+ if (offset !== len) {
1951
+ if (offset !== 0) {
1952
+ arg = arg.slice(offset);
1953
+ }
1954
+ ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
1955
+ const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
1956
+ const ret = cachedTextEncoder.encodeInto(arg, view);
1957
+
1958
+ offset += ret.written;
1959
+ ptr = realloc(ptr, len, offset, 1) >>> 0;
1960
+ }
1961
+
1962
+ WASM_VECTOR_LEN = offset;
1963
+ return ptr;
1964
+ }
1965
+
1966
+ function takeFromExternrefTable0(idx) {
1967
+ const value = wasm.__wbindgen_externrefs.get(idx);
1968
+ wasm.__externref_table_dealloc(idx);
1969
+ return value;
1970
+ }
1971
+
1972
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
1973
+ cachedTextDecoder.decode();
1974
+ const MAX_SAFARI_DECODE_BYTES = 2146435072;
1975
+ let numBytesDecoded = 0;
1976
+ function decodeText(ptr, len) {
1977
+ numBytesDecoded += len;
1978
+ if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
1979
+ cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
1980
+ cachedTextDecoder.decode();
1981
+ numBytesDecoded = len;
1982
+ }
1983
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
1906
1984
  }
1907
1985
 
1986
+ const cachedTextEncoder = new TextEncoder();
1987
+
1988
+ if (!('encodeInto' in cachedTextEncoder)) {
1989
+ cachedTextEncoder.encodeInto = function (arg, view) {
1990
+ const buf = cachedTextEncoder.encode(arg);
1991
+ view.set(buf);
1992
+ return {
1993
+ read: arg.length,
1994
+ written: buf.length
1995
+ };
1996
+ };
1997
+ }
1998
+
1999
+ let WASM_VECTOR_LEN = 0;
2000
+
2001
+ let wasm;
1908
2002
  function __wbg_finalize_init(instance, module) {
1909
2003
  wasm = instance.exports;
1910
- __wbg_init.__wbindgen_wasm_module = module;
1911
2004
  cachedDataViewMemory0 = null;
1912
2005
  cachedFloat32ArrayMemory0 = null;
2006
+ cachedInt16ArrayMemory0 = null;
1913
2007
  cachedInt32ArrayMemory0 = null;
2008
+ cachedInt8ArrayMemory0 = null;
2009
+ cachedUint16ArrayMemory0 = null;
1914
2010
  cachedUint32ArrayMemory0 = null;
1915
2011
  cachedUint8ArrayMemory0 = null;
1916
2012
  cachedUint8ClampedArrayMemory0 = null;
1917
-
1918
-
1919
2013
  wasm.__wbindgen_start();
1920
2014
  return wasm;
1921
2015
  }
1922
2016
 
2017
+ async function __wbg_load(module, imports) {
2018
+ if (typeof Response === 'function' && module instanceof Response) {
2019
+ if (typeof WebAssembly.instantiateStreaming === 'function') {
2020
+ try {
2021
+ return await WebAssembly.instantiateStreaming(module, imports);
2022
+ } catch (e) {
2023
+ const validResponse = module.ok && expectedResponseType(module.type);
2024
+
2025
+ if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
2026
+ 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);
2027
+
2028
+ } else { throw e; }
2029
+ }
2030
+ }
2031
+
2032
+ const bytes = await module.arrayBuffer();
2033
+ return await WebAssembly.instantiate(bytes, imports);
2034
+ } else {
2035
+ const instance = await WebAssembly.instantiate(module, imports);
2036
+
2037
+ if (instance instanceof WebAssembly.Instance) {
2038
+ return { instance, module };
2039
+ } else {
2040
+ return instance;
2041
+ }
2042
+ }
2043
+
2044
+ function expectedResponseType(type) {
2045
+ switch (type) {
2046
+ case 'basic': case 'cors': case 'default': return true;
2047
+ }
2048
+ return false;
2049
+ }
2050
+ }
2051
+
1923
2052
  async function __wbg_init(module_or_path) {
1924
2053
  if (wasm !== undefined) return wasm;
1925
2054
 
1926
2055
 
1927
- if (typeof module_or_path !== 'undefined') {
2056
+ if (module_or_path !== undefined) {
1928
2057
  if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
1929
2058
  ({module_or_path} = module_or_path);
1930
2059
  } else {
@@ -1932,7 +2061,7 @@ async function __wbg_init(module_or_path) {
1932
2061
  }
1933
2062
  }
1934
2063
 
1935
- if (typeof module_or_path === 'undefined') {
2064
+ if (module_or_path === undefined) {
1936
2065
  throw new Error("WASM module path not provided");
1937
2066
  }
1938
2067
  const imports = __wbg_get_imports();
@@ -1943,7 +2072,7 @@ async function __wbg_init(module_or_path) {
1943
2072
 
1944
2073
  const { instance, module } = await __wbg_load(await module_or_path, imports);
1945
2074
 
1946
- return __wbg_finalize_init(instance, module);
2075
+ return __wbg_finalize_init(instance);
1947
2076
  }
1948
2077
 
1949
2078
  /**