@takumi-rs/wasm 0.55.3 → 0.56.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@takumi-rs/wasm",
3
- "version": "0.55.3",
3
+ "version": "0.56.0",
4
4
  "keywords": [
5
5
  "image",
6
6
  "rendering",
@@ -1,9 +1,5 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
- /**
4
- * Collects the fetch task urls from the node.
5
- */
6
- export function collectNodeFetchTasks(node: AnyNode): string[];
7
3
 
8
4
  export type AnyNode = { type: string; [key: string]: any };
9
5
 
@@ -59,11 +55,13 @@ export type FontDetails = {
59
55
  export type Font = FontDetails | ByteBuf;
60
56
 
61
57
 
58
+
62
59
  export class AnimationFrameSource {
63
60
  free(): void;
64
61
  [Symbol.dispose](): void;
65
62
  constructor(node: AnyNode, durationMs: number);
66
63
  }
64
+
67
65
  export class Renderer {
68
66
  free(): void;
69
67
  [Symbol.dispose](): void;
@@ -80,6 +78,11 @@ export class Renderer {
80
78
  loadFont(font: Font): void;
81
79
  }
82
80
 
81
+ /**
82
+ * Collects the fetch task urls from the node.
83
+ */
84
+ export function collectNodeFetchTasks(node: AnyNode): string[];
85
+
83
86
  export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
84
87
 
85
88
  export interface InitOutput {
@@ -104,6 +107,7 @@ export interface InitOutput {
104
107
  }
105
108
 
106
109
  export type SyncInitInput = BufferSource | WebAssembly.Module;
110
+
107
111
  /**
108
112
  * Instantiates the given `module`, which can either be bytes or
109
113
  * a precompiled `WebAssembly.Module`.
@@ -1,41 +1,5 @@
1
1
  let wasm;
2
2
 
3
- let cachedUint8ArrayMemory0 = null;
4
-
5
- function getUint8ArrayMemory0() {
6
- if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
7
- cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
8
- }
9
- return cachedUint8ArrayMemory0;
10
- }
11
-
12
- let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
13
-
14
- cachedTextDecoder.decode();
15
-
16
- const MAX_SAFARI_DECODE_BYTES = 2146435072;
17
- let numBytesDecoded = 0;
18
- function decodeText(ptr, len) {
19
- numBytesDecoded += len;
20
- if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
21
- cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
22
- cachedTextDecoder.decode();
23
- numBytesDecoded = len;
24
- }
25
- return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
26
- }
27
-
28
- function getStringFromWasm0(ptr, len) {
29
- ptr = ptr >>> 0;
30
- return decodeText(ptr, len);
31
- }
32
-
33
- let heap = new Array(128).fill(undefined);
34
-
35
- heap.push(undefined, null, true, false);
36
-
37
- let heap_next = heap.length;
38
-
39
3
  function addHeapObject(obj) {
40
4
  if (heap_next === heap.length) heap.push(heap.length + 1);
41
5
  const idx = heap_next;
@@ -45,21 +9,6 @@ function addHeapObject(obj) {
45
9
  return idx;
46
10
  }
47
11
 
48
- function getObject(idx) { return heap[idx]; }
49
-
50
- function isLikeNone(x) {
51
- return x === undefined || x === null;
52
- }
53
-
54
- let cachedDataViewMemory0 = null;
55
-
56
- function getDataViewMemory0() {
57
- if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
58
- cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
59
- }
60
- return cachedDataViewMemory0;
61
- }
62
-
63
12
  function debugString(val) {
64
13
  // primitive types
65
14
  const type = typeof val;
@@ -125,23 +74,85 @@ function debugString(val) {
125
74
  return className;
126
75
  }
127
76
 
128
- let WASM_VECTOR_LEN = 0;
77
+ function dropObject(idx) {
78
+ if (idx < 132) return;
79
+ heap[idx] = heap_next;
80
+ heap_next = idx;
81
+ }
129
82
 
130
- const cachedTextEncoder = new TextEncoder();
83
+ function getArrayJsValueFromWasm0(ptr, len) {
84
+ ptr = ptr >>> 0;
85
+ const mem = getDataViewMemory0();
86
+ const result = [];
87
+ for (let i = ptr; i < ptr + 4 * len; i += 4) {
88
+ result.push(takeObject(mem.getUint32(i, true)));
89
+ }
90
+ return result;
91
+ }
131
92
 
132
- if (!('encodeInto' in cachedTextEncoder)) {
133
- cachedTextEncoder.encodeInto = function (arg, view) {
134
- const buf = cachedTextEncoder.encode(arg);
135
- view.set(buf);
136
- return {
137
- read: arg.length,
138
- written: buf.length
139
- };
93
+ function getArrayU8FromWasm0(ptr, len) {
94
+ ptr = ptr >>> 0;
95
+ return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
96
+ }
97
+
98
+ let cachedDataViewMemory0 = null;
99
+ function getDataViewMemory0() {
100
+ if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
101
+ cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
140
102
  }
103
+ return cachedDataViewMemory0;
141
104
  }
142
105
 
143
- function passStringToWasm0(arg, malloc, realloc) {
106
+ function getStringFromWasm0(ptr, len) {
107
+ ptr = ptr >>> 0;
108
+ return decodeText(ptr, len);
109
+ }
110
+
111
+ let cachedUint8ArrayMemory0 = null;
112
+ function getUint8ArrayMemory0() {
113
+ if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
114
+ cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
115
+ }
116
+ return cachedUint8ArrayMemory0;
117
+ }
118
+
119
+ function getObject(idx) { return heap[idx]; }
120
+
121
+ function handleError(f, args) {
122
+ try {
123
+ return f.apply(this, args);
124
+ } catch (e) {
125
+ wasm.__wbindgen_export3(addHeapObject(e));
126
+ }
127
+ }
128
+
129
+ let heap = new Array(128).fill(undefined);
130
+ heap.push(undefined, null, true, false);
131
+
132
+ let heap_next = heap.length;
144
133
 
134
+ function isLikeNone(x) {
135
+ return x === undefined || x === null;
136
+ }
137
+
138
+ function passArray8ToWasm0(arg, malloc) {
139
+ const ptr = malloc(arg.length * 1, 1) >>> 0;
140
+ getUint8ArrayMemory0().set(arg, ptr / 1);
141
+ WASM_VECTOR_LEN = arg.length;
142
+ return ptr;
143
+ }
144
+
145
+ function passArrayJsValueToWasm0(array, malloc) {
146
+ const ptr = malloc(array.length * 4, 4) >>> 0;
147
+ const mem = getDataViewMemory0();
148
+ for (let i = 0; i < array.length; i++) {
149
+ mem.setUint32(ptr + 4 * i, addHeapObject(array[i]), true);
150
+ }
151
+ WASM_VECTOR_LEN = array.length;
152
+ return ptr;
153
+ }
154
+
155
+ function passStringToWasm0(arg, malloc, realloc) {
145
156
  if (realloc === undefined) {
146
157
  const buf = cachedTextEncoder.encode(arg);
147
158
  const ptr = malloc(buf.length, 1) >>> 0;
@@ -162,7 +173,6 @@ function passStringToWasm0(arg, malloc, realloc) {
162
173
  if (code > 0x7F) break;
163
174
  mem[ptr + offset] = code;
164
175
  }
165
-
166
176
  if (offset !== len) {
167
177
  if (offset !== 0) {
168
178
  arg = arg.slice(offset);
@@ -179,96 +189,62 @@ function passStringToWasm0(arg, malloc, realloc) {
179
189
  return ptr;
180
190
  }
181
191
 
182
- function dropObject(idx) {
183
- if (idx < 132) return;
184
- heap[idx] = heap_next;
185
- heap_next = idx;
186
- }
187
-
188
192
  function takeObject(idx) {
189
193
  const ret = getObject(idx);
190
194
  dropObject(idx);
191
195
  return ret;
192
196
  }
193
197
 
194
- function handleError(f, args) {
195
- try {
196
- return f.apply(this, args);
197
- } catch (e) {
198
- wasm.__wbindgen_export3(addHeapObject(e));
198
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
199
+ cachedTextDecoder.decode();
200
+ const MAX_SAFARI_DECODE_BYTES = 2146435072;
201
+ let numBytesDecoded = 0;
202
+ function decodeText(ptr, len) {
203
+ numBytesDecoded += len;
204
+ if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
205
+ cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
206
+ cachedTextDecoder.decode();
207
+ numBytesDecoded = len;
199
208
  }
209
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
200
210
  }
201
211
 
202
- function getArrayU8FromWasm0(ptr, len) {
203
- ptr = ptr >>> 0;
204
- return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
205
- }
206
-
207
- function getArrayJsValueFromWasm0(ptr, len) {
208
- ptr = ptr >>> 0;
209
- const mem = getDataViewMemory0();
210
- const result = [];
211
- for (let i = ptr; i < ptr + 4 * len; i += 4) {
212
- result.push(takeObject(mem.getUint32(i, true)));
213
- }
214
- return result;
215
- }
216
- /**
217
- * Collects the fetch task urls from the node.
218
- * @param {AnyNode} node
219
- * @returns {string[]}
220
- */
221
- export function collectNodeFetchTasks(node) {
222
- try {
223
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
224
- wasm.collectNodeFetchTasks(retptr, addHeapObject(node));
225
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
226
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
227
- var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
228
- wasm.__wbindgen_export4(r0, r1 * 4, 4);
229
- return v1;
230
- } finally {
231
- wasm.__wbindgen_add_to_stack_pointer(16);
232
- }
233
- }
212
+ const cachedTextEncoder = new TextEncoder();
234
213
 
235
- function passArrayJsValueToWasm0(array, malloc) {
236
- const ptr = malloc(array.length * 4, 4) >>> 0;
237
- const mem = getDataViewMemory0();
238
- for (let i = 0; i < array.length; i++) {
239
- mem.setUint32(ptr + 4 * i, addHeapObject(array[i]), true);
214
+ if (!('encodeInto' in cachedTextEncoder)) {
215
+ cachedTextEncoder.encodeInto = function (arg, view) {
216
+ const buf = cachedTextEncoder.encode(arg);
217
+ view.set(buf);
218
+ return {
219
+ read: arg.length,
220
+ written: buf.length
221
+ };
240
222
  }
241
- WASM_VECTOR_LEN = array.length;
242
- return ptr;
243
223
  }
244
224
 
245
- function passArray8ToWasm0(arg, malloc) {
246
- const ptr = malloc(arg.length * 1, 1) >>> 0;
247
- getUint8ArrayMemory0().set(arg, ptr / 1);
248
- WASM_VECTOR_LEN = arg.length;
249
- return ptr;
250
- }
225
+ let WASM_VECTOR_LEN = 0;
251
226
 
252
227
  const AnimationFrameSourceFinalization = (typeof FinalizationRegistry === 'undefined')
253
228
  ? { register: () => {}, unregister: () => {} }
254
229
  : new FinalizationRegistry(ptr => wasm.__wbg_animationframesource_free(ptr >>> 0, 1));
255
230
 
256
- export class AnimationFrameSource {
231
+ const RendererFinalization = (typeof FinalizationRegistry === 'undefined')
232
+ ? { register: () => {}, unregister: () => {} }
233
+ : new FinalizationRegistry(ptr => wasm.__wbg_renderer_free(ptr >>> 0, 1));
257
234
 
235
+ export class AnimationFrameSource {
258
236
  static __unwrap(jsValue) {
259
237
  if (!(jsValue instanceof AnimationFrameSource)) {
260
238
  return 0;
261
239
  }
262
240
  return jsValue.__destroy_into_raw();
263
241
  }
264
-
265
242
  __destroy_into_raw() {
266
243
  const ptr = this.__wbg_ptr;
267
244
  this.__wbg_ptr = 0;
268
245
  AnimationFrameSourceFinalization.unregister(this);
269
246
  return ptr;
270
247
  }
271
-
272
248
  free() {
273
249
  const ptr = this.__destroy_into_raw();
274
250
  wasm.__wbg_animationframesource_free(ptr, 0);
@@ -286,19 +262,13 @@ export class AnimationFrameSource {
286
262
  }
287
263
  if (Symbol.dispose) AnimationFrameSource.prototype[Symbol.dispose] = AnimationFrameSource.prototype.free;
288
264
 
289
- const RendererFinalization = (typeof FinalizationRegistry === 'undefined')
290
- ? { register: () => {}, unregister: () => {} }
291
- : new FinalizationRegistry(ptr => wasm.__wbg_renderer_free(ptr >>> 0, 1));
292
-
293
265
  export class Renderer {
294
-
295
266
  __destroy_into_raw() {
296
267
  const ptr = this.__wbg_ptr;
297
268
  this.__wbg_ptr = 0;
298
269
  RendererFinalization.unregister(this);
299
270
  return ptr;
300
271
  }
301
-
302
272
  free() {
303
273
  const ptr = this.__destroy_into_raw();
304
274
  wasm.__wbg_renderer_free(ptr, 0);
@@ -398,6 +368,25 @@ export class Renderer {
398
368
  }
399
369
  if (Symbol.dispose) Renderer.prototype[Symbol.dispose] = Renderer.prototype.free;
400
370
 
371
+ /**
372
+ * Collects the fetch task urls from the node.
373
+ * @param {AnyNode} node
374
+ * @returns {string[]}
375
+ */
376
+ export function collectNodeFetchTasks(node) {
377
+ try {
378
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
379
+ wasm.collectNodeFetchTasks(retptr, addHeapObject(node));
380
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
381
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
382
+ var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
383
+ wasm.__wbindgen_export4(r0, r1 * 4, 4);
384
+ return v1;
385
+ } finally {
386
+ wasm.__wbindgen_add_to_stack_pointer(16);
387
+ }
388
+ }
389
+
401
390
  const EXPECTED_RESPONSE_TYPES = new Set(['basic', 'cors', 'default']);
402
391
 
403
392
  async function __wbg_load(module, imports) {
@@ -405,7 +394,6 @@ async function __wbg_load(module, imports) {
405
394
  if (typeof WebAssembly.instantiateStreaming === 'function') {
406
395
  try {
407
396
  return await WebAssembly.instantiateStreaming(module, imports);
408
-
409
397
  } catch (e) {
410
398
  const validResponse = module.ok && EXPECTED_RESPONSE_TYPES.has(module.type);
411
399
 
@@ -420,13 +408,11 @@ async function __wbg_load(module, imports) {
420
408
 
421
409
  const bytes = await module.arrayBuffer();
422
410
  return await WebAssembly.instantiate(bytes, imports);
423
-
424
411
  } else {
425
412
  const instance = await WebAssembly.instantiate(module, imports);
426
413
 
427
414
  if (instance instanceof WebAssembly.Instance) {
428
415
  return { instance, module };
429
-
430
416
  } else {
431
417
  return instance;
432
418
  }
@@ -436,72 +422,72 @@ async function __wbg_load(module, imports) {
436
422
  function __wbg_get_imports() {
437
423
  const imports = {};
438
424
  imports.wbg = {};
439
- imports.wbg.__wbg_Error_e83987f665cf5504 = function(arg0, arg1) {
425
+ imports.wbg.__wbg_Error_52673b7de5a0ca89 = function(arg0, arg1) {
440
426
  const ret = Error(getStringFromWasm0(arg0, arg1));
441
427
  return addHeapObject(ret);
442
428
  };
443
- imports.wbg.__wbg_Number_bb48ca12f395cd08 = function(arg0) {
429
+ imports.wbg.__wbg_Number_2d1dcfcf4ec51736 = function(arg0) {
444
430
  const ret = Number(getObject(arg0));
445
431
  return ret;
446
432
  };
447
- imports.wbg.__wbg___wbindgen_bigint_get_as_i64_f3ebc5a755000afd = function(arg0, arg1) {
433
+ imports.wbg.__wbg___wbindgen_bigint_get_as_i64_6e32f5e6aff02e1d = function(arg0, arg1) {
448
434
  const v = getObject(arg1);
449
435
  const ret = typeof(v) === 'bigint' ? v : undefined;
450
436
  getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
451
437
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
452
438
  };
453
- imports.wbg.__wbg___wbindgen_boolean_get_6d5a1ee65bab5f68 = function(arg0) {
439
+ imports.wbg.__wbg___wbindgen_boolean_get_dea25b33882b895b = function(arg0) {
454
440
  const v = getObject(arg0);
455
441
  const ret = typeof(v) === 'boolean' ? v : undefined;
456
442
  return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
457
443
  };
458
- imports.wbg.__wbg___wbindgen_debug_string_df47ffb5e35e6763 = function(arg0, arg1) {
444
+ imports.wbg.__wbg___wbindgen_debug_string_adfb662ae34724b6 = function(arg0, arg1) {
459
445
  const ret = debugString(getObject(arg1));
460
446
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
461
447
  const len1 = WASM_VECTOR_LEN;
462
448
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
463
449
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
464
450
  };
465
- imports.wbg.__wbg___wbindgen_in_bb933bd9e1b3bc0f = function(arg0, arg1) {
451
+ imports.wbg.__wbg___wbindgen_in_0d3e1e8f0c669317 = function(arg0, arg1) {
466
452
  const ret = getObject(arg0) in getObject(arg1);
467
453
  return ret;
468
454
  };
469
- imports.wbg.__wbg___wbindgen_is_bigint_cb320707dcd35f0b = function(arg0) {
455
+ imports.wbg.__wbg___wbindgen_is_bigint_0e1a2e3f55cfae27 = function(arg0) {
470
456
  const ret = typeof(getObject(arg0)) === 'bigint';
471
457
  return ret;
472
458
  };
473
- imports.wbg.__wbg___wbindgen_is_function_ee8a6c5833c90377 = function(arg0) {
459
+ imports.wbg.__wbg___wbindgen_is_function_8d400b8b1af978cd = function(arg0) {
474
460
  const ret = typeof(getObject(arg0)) === 'function';
475
461
  return ret;
476
462
  };
477
- imports.wbg.__wbg___wbindgen_is_object_c818261d21f283a4 = function(arg0) {
463
+ imports.wbg.__wbg___wbindgen_is_object_ce774f3490692386 = function(arg0) {
478
464
  const val = getObject(arg0);
479
465
  const ret = typeof(val) === 'object' && val !== null;
480
466
  return ret;
481
467
  };
482
- imports.wbg.__wbg___wbindgen_is_string_fbb76cb2940daafd = function(arg0) {
468
+ imports.wbg.__wbg___wbindgen_is_string_704ef9c8fc131030 = function(arg0) {
483
469
  const ret = typeof(getObject(arg0)) === 'string';
484
470
  return ret;
485
471
  };
486
- imports.wbg.__wbg___wbindgen_is_undefined_2d472862bd29a478 = function(arg0) {
472
+ imports.wbg.__wbg___wbindgen_is_undefined_f6b95eab589e0269 = function(arg0) {
487
473
  const ret = getObject(arg0) === undefined;
488
474
  return ret;
489
475
  };
490
- imports.wbg.__wbg___wbindgen_jsval_eq_6b13ab83478b1c50 = function(arg0, arg1) {
476
+ imports.wbg.__wbg___wbindgen_jsval_eq_b6101cc9cef1fe36 = function(arg0, arg1) {
491
477
  const ret = getObject(arg0) === getObject(arg1);
492
478
  return ret;
493
479
  };
494
- imports.wbg.__wbg___wbindgen_jsval_loose_eq_b664b38a2f582147 = function(arg0, arg1) {
480
+ imports.wbg.__wbg___wbindgen_jsval_loose_eq_766057600fdd1b0d = function(arg0, arg1) {
495
481
  const ret = getObject(arg0) == getObject(arg1);
496
482
  return ret;
497
483
  };
498
- imports.wbg.__wbg___wbindgen_number_get_a20bf9b85341449d = function(arg0, arg1) {
484
+ imports.wbg.__wbg___wbindgen_number_get_9619185a74197f95 = function(arg0, arg1) {
499
485
  const obj = getObject(arg1);
500
486
  const ret = typeof(obj) === 'number' ? obj : undefined;
501
487
  getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
502
488
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
503
489
  };
504
- imports.wbg.__wbg___wbindgen_string_get_e4f06c90489ad01b = function(arg0, arg1) {
490
+ imports.wbg.__wbg___wbindgen_string_get_a2a31e16edf96e42 = function(arg0, arg1) {
505
491
  const obj = getObject(arg1);
506
492
  const ret = typeof(obj) === 'string' ? obj : undefined;
507
493
  var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
@@ -509,22 +495,22 @@ function __wbg_get_imports() {
509
495
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
510
496
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
511
497
  };
512
- imports.wbg.__wbg___wbindgen_throw_b855445ff6a94295 = function(arg0, arg1) {
498
+ imports.wbg.__wbg___wbindgen_throw_dd24417ed36fc46e = function(arg0, arg1) {
513
499
  throw new Error(getStringFromWasm0(arg0, arg1));
514
500
  };
515
501
  imports.wbg.__wbg_animationframesource_unwrap = function(arg0) {
516
- const ret = AnimationFrameSource.__unwrap(takeObject(arg0));
502
+ const ret = AnimationFrameSource.__unwrap(getObject(arg0));
517
503
  return ret;
518
504
  };
519
- imports.wbg.__wbg_call_e762c39fa8ea36bf = function() { return handleError(function (arg0, arg1) {
505
+ imports.wbg.__wbg_call_abb4ff46ce38be40 = function() { return handleError(function (arg0, arg1) {
520
506
  const ret = getObject(arg0).call(getObject(arg1));
521
507
  return addHeapObject(ret);
522
508
  }, arguments) };
523
- imports.wbg.__wbg_done_2042aa2670fb1db1 = function(arg0) {
509
+ imports.wbg.__wbg_done_62ea16af4ce34b24 = function(arg0) {
524
510
  const ret = getObject(arg0).done;
525
511
  return ret;
526
512
  };
527
- imports.wbg.__wbg_entries_e171b586f8f6bdbf = function(arg0) {
513
+ imports.wbg.__wbg_entries_83c79938054e065f = function(arg0) {
528
514
  const ret = Object.entries(getObject(arg0));
529
515
  return addHeapObject(ret);
530
516
  };
@@ -539,11 +525,11 @@ function __wbg_get_imports() {
539
525
  wasm.__wbindgen_export4(deferred0_0, deferred0_1, 1);
540
526
  }
541
527
  };
542
- imports.wbg.__wbg_get_7bed016f185add81 = function(arg0, arg1) {
528
+ imports.wbg.__wbg_get_6b7bd52aca3f9671 = function(arg0, arg1) {
543
529
  const ret = getObject(arg0)[arg1 >>> 0];
544
530
  return addHeapObject(ret);
545
531
  };
546
- imports.wbg.__wbg_get_efcb449f58ec27c2 = function() { return handleError(function (arg0, arg1) {
532
+ imports.wbg.__wbg_get_af9dab7e9603ea93 = function() { return handleError(function (arg0, arg1) {
547
533
  const ret = Reflect.get(getObject(arg0), getObject(arg1));
548
534
  return addHeapObject(ret);
549
535
  }, arguments) };
@@ -551,7 +537,7 @@ function __wbg_get_imports() {
551
537
  const ret = getObject(arg0)[getObject(arg1)];
552
538
  return addHeapObject(ret);
553
539
  };
554
- imports.wbg.__wbg_instanceof_ArrayBuffer_70beb1189ca63b38 = function(arg0) {
540
+ imports.wbg.__wbg_instanceof_ArrayBuffer_f3320d2419cd0355 = function(arg0) {
555
541
  let result;
556
542
  try {
557
543
  result = getObject(arg0) instanceof ArrayBuffer;
@@ -561,7 +547,7 @@ function __wbg_get_imports() {
561
547
  const ret = result;
562
548
  return ret;
563
549
  };
564
- imports.wbg.__wbg_instanceof_Map_8579b5e2ab5437c7 = function(arg0) {
550
+ imports.wbg.__wbg_instanceof_Map_084be8da74364158 = function(arg0) {
565
551
  let result;
566
552
  try {
567
553
  result = getObject(arg0) instanceof Map;
@@ -571,7 +557,7 @@ function __wbg_get_imports() {
571
557
  const ret = result;
572
558
  return ret;
573
559
  };
574
- imports.wbg.__wbg_instanceof_Uint8Array_20c8e73002f7af98 = function(arg0) {
560
+ imports.wbg.__wbg_instanceof_Uint8Array_da54ccc9d3e09434 = function(arg0) {
575
561
  let result;
576
562
  try {
577
563
  result = getObject(arg0) instanceof Uint8Array;
@@ -581,42 +567,42 @@ function __wbg_get_imports() {
581
567
  const ret = result;
582
568
  return ret;
583
569
  };
584
- imports.wbg.__wbg_isArray_96e0af9891d0945d = function(arg0) {
570
+ imports.wbg.__wbg_isArray_51fd9e6422c0a395 = function(arg0) {
585
571
  const ret = Array.isArray(getObject(arg0));
586
572
  return ret;
587
573
  };
588
- imports.wbg.__wbg_isSafeInteger_d216eda7911dde36 = function(arg0) {
574
+ imports.wbg.__wbg_isSafeInteger_ae7d3f054d55fa16 = function(arg0) {
589
575
  const ret = Number.isSafeInteger(getObject(arg0));
590
576
  return ret;
591
577
  };
592
- imports.wbg.__wbg_iterator_e5822695327a3c39 = function() {
578
+ imports.wbg.__wbg_iterator_27b7c8b35ab3e86b = function() {
593
579
  const ret = Symbol.iterator;
594
580
  return addHeapObject(ret);
595
581
  };
596
- imports.wbg.__wbg_length_69bca3cb64fc8748 = function(arg0) {
582
+ imports.wbg.__wbg_length_22ac23eaec9d8053 = function(arg0) {
597
583
  const ret = getObject(arg0).length;
598
584
  return ret;
599
585
  };
600
- imports.wbg.__wbg_length_cdd215e10d9dd507 = function(arg0) {
586
+ imports.wbg.__wbg_length_d45040a40c570362 = function(arg0) {
601
587
  const ret = getObject(arg0).length;
602
588
  return ret;
603
589
  };
604
- imports.wbg.__wbg_new_5a79be3ab53b8aa5 = function(arg0) {
590
+ imports.wbg.__wbg_new_6421f6084cc5bc5a = function(arg0) {
605
591
  const ret = new Uint8Array(getObject(arg0));
606
592
  return addHeapObject(ret);
607
593
  };
608
- imports.wbg.__wbg_next_020810e0ae8ebcb0 = function() { return handleError(function (arg0) {
609
- const ret = getObject(arg0).next();
610
- return addHeapObject(ret);
611
- }, arguments) };
612
- imports.wbg.__wbg_next_2c826fe5dfec6b6a = function(arg0) {
594
+ imports.wbg.__wbg_next_138a17bbf04e926c = function(arg0) {
613
595
  const ret = getObject(arg0).next;
614
596
  return addHeapObject(ret);
615
597
  };
616
- imports.wbg.__wbg_prototypesetcall_2a6620b6922694b2 = function(arg0, arg1, arg2) {
598
+ imports.wbg.__wbg_next_3cfe5c0fe2a4cc53 = function() { return handleError(function (arg0) {
599
+ const ret = getObject(arg0).next();
600
+ return addHeapObject(ret);
601
+ }, arguments) };
602
+ imports.wbg.__wbg_prototypesetcall_dfe9b766cdc1f1fd = function(arg0, arg1, arg2) {
617
603
  Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
618
604
  };
619
- imports.wbg.__wbg_value_692627309814bb8c = function(arg0) {
605
+ imports.wbg.__wbg_value_57b7b035e117f7ee = function(arg0) {
620
606
  const ret = getObject(arg0).value;
621
607
  return addHeapObject(ret);
622
608
  };
@@ -670,13 +656,10 @@ function initSync(module) {
670
656
  }
671
657
 
672
658
  const imports = __wbg_get_imports();
673
-
674
659
  if (!(module instanceof WebAssembly.Module)) {
675
660
  module = new WebAssembly.Module(module);
676
661
  }
677
-
678
662
  const instance = new WebAssembly.Instance(module, imports);
679
-
680
663
  return __wbg_finalize_init(instance, module);
681
664
  }
682
665
 
Binary file