mimium-web 2.2.7 → 2.4.1-alpha

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.
@@ -0,0 +1,644 @@
1
+ import { read_file } from './snippets/mimium-lang-39a6d83491d0113d/src/utils/fileloader.cjs';
2
+
3
+ let wasm;
4
+ export function __wbg_set_wasm(val) {
5
+ wasm = val;
6
+ }
7
+
8
+
9
+ function addToExternrefTable0(obj) {
10
+ const idx = wasm.__externref_table_alloc();
11
+ wasm.__wbindgen_export_2.set(idx, obj);
12
+ return idx;
13
+ }
14
+
15
+ function handleError(f, args) {
16
+ try {
17
+ return f.apply(this, args);
18
+ } catch (e) {
19
+ const idx = addToExternrefTable0(e);
20
+ wasm.__wbindgen_exn_store(idx);
21
+ }
22
+ }
23
+
24
+ let cachedUint8ArrayMemory0 = null;
25
+
26
+ function getUint8ArrayMemory0() {
27
+ if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
28
+ cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
29
+ }
30
+ return cachedUint8ArrayMemory0;
31
+ }
32
+
33
+ let WASM_VECTOR_LEN = 0;
34
+
35
+ function passArray8ToWasm0(arg, malloc) {
36
+ const ptr = malloc(arg.length * 1, 1) >>> 0;
37
+ getUint8ArrayMemory0().set(arg, ptr / 1);
38
+ WASM_VECTOR_LEN = arg.length;
39
+ return ptr;
40
+ }
41
+
42
+ let cachedDataViewMemory0 = null;
43
+
44
+ function getDataViewMemory0() {
45
+ if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
46
+ cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
47
+ }
48
+ return cachedDataViewMemory0;
49
+ }
50
+
51
+ const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
52
+
53
+ let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
54
+
55
+ cachedTextDecoder.decode();
56
+
57
+ function getStringFromWasm0(ptr, len) {
58
+ ptr = ptr >>> 0;
59
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
60
+ }
61
+
62
+ const lTextEncoder = typeof TextEncoder === 'undefined' ? (0, module.require)('util').TextEncoder : TextEncoder;
63
+
64
+ let cachedTextEncoder = new lTextEncoder('utf-8');
65
+
66
+ const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
67
+ ? function (arg, view) {
68
+ return cachedTextEncoder.encodeInto(arg, view);
69
+ }
70
+ : function (arg, view) {
71
+ const buf = cachedTextEncoder.encode(arg);
72
+ view.set(buf);
73
+ return {
74
+ read: arg.length,
75
+ written: buf.length
76
+ };
77
+ });
78
+
79
+ function passStringToWasm0(arg, malloc, realloc) {
80
+
81
+ if (realloc === undefined) {
82
+ const buf = cachedTextEncoder.encode(arg);
83
+ const ptr = malloc(buf.length, 1) >>> 0;
84
+ getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
85
+ WASM_VECTOR_LEN = buf.length;
86
+ return ptr;
87
+ }
88
+
89
+ let len = arg.length;
90
+ let ptr = malloc(len, 1) >>> 0;
91
+
92
+ const mem = getUint8ArrayMemory0();
93
+
94
+ let offset = 0;
95
+
96
+ for (; offset < len; offset++) {
97
+ const code = arg.charCodeAt(offset);
98
+ if (code > 0x7F) break;
99
+ mem[ptr + offset] = code;
100
+ }
101
+
102
+ if (offset !== len) {
103
+ if (offset !== 0) {
104
+ arg = arg.slice(offset);
105
+ }
106
+ ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
107
+ const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
108
+ const ret = encodeString(arg, view);
109
+
110
+ offset += ret.written;
111
+ ptr = realloc(ptr, len, offset, 1) >>> 0;
112
+ }
113
+
114
+ WASM_VECTOR_LEN = offset;
115
+ return ptr;
116
+ }
117
+
118
+ function isLikeNone(x) {
119
+ return x === undefined || x === null;
120
+ }
121
+
122
+ const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
123
+ ? { register: () => {}, unregister: () => {} }
124
+ : new FinalizationRegistry(state => {
125
+ wasm.__wbindgen_export_6.get(state.dtor)(state.a, state.b)
126
+ });
127
+
128
+ function makeMutClosure(arg0, arg1, dtor, f) {
129
+ const state = { a: arg0, b: arg1, cnt: 1, dtor };
130
+ const real = (...args) => {
131
+ // First up with a closure we increment the internal reference
132
+ // count. This ensures that the Rust closure environment won't
133
+ // be deallocated while we're invoking it.
134
+ state.cnt++;
135
+ const a = state.a;
136
+ state.a = 0;
137
+ try {
138
+ return f(a, state.b, ...args);
139
+ } finally {
140
+ if (--state.cnt === 0) {
141
+ wasm.__wbindgen_export_6.get(state.dtor)(a, state.b);
142
+ CLOSURE_DTORS.unregister(state);
143
+ } else {
144
+ state.a = a;
145
+ }
146
+ }
147
+ };
148
+ real.original = state;
149
+ CLOSURE_DTORS.register(real, state, state);
150
+ return real;
151
+ }
152
+
153
+ function getArrayU8FromWasm0(ptr, len) {
154
+ ptr = ptr >>> 0;
155
+ return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
156
+ }
157
+
158
+ function debugString(val) {
159
+ // primitive types
160
+ const type = typeof val;
161
+ if (type == 'number' || type == 'boolean' || val == null) {
162
+ return `${val}`;
163
+ }
164
+ if (type == 'string') {
165
+ return `"${val}"`;
166
+ }
167
+ if (type == 'symbol') {
168
+ const description = val.description;
169
+ if (description == null) {
170
+ return 'Symbol';
171
+ } else {
172
+ return `Symbol(${description})`;
173
+ }
174
+ }
175
+ if (type == 'function') {
176
+ const name = val.name;
177
+ if (typeof name == 'string' && name.length > 0) {
178
+ return `Function(${name})`;
179
+ } else {
180
+ return 'Function';
181
+ }
182
+ }
183
+ // objects
184
+ if (Array.isArray(val)) {
185
+ const length = val.length;
186
+ let debug = '[';
187
+ if (length > 0) {
188
+ debug += debugString(val[0]);
189
+ }
190
+ for(let i = 1; i < length; i++) {
191
+ debug += ', ' + debugString(val[i]);
192
+ }
193
+ debug += ']';
194
+ return debug;
195
+ }
196
+ // Test for built-in
197
+ const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
198
+ let className;
199
+ if (builtInMatches && builtInMatches.length > 1) {
200
+ className = builtInMatches[1];
201
+ } else {
202
+ // Failed to match the standard '[object ClassName]'
203
+ return toString.call(val);
204
+ }
205
+ if (className == 'Object') {
206
+ // we're a user defined class or Object
207
+ // JSON.stringify avoids problems with cycles, and is generally much
208
+ // easier than looping through ownProperties of `val`.
209
+ try {
210
+ return 'Object(' + JSON.stringify(val) + ')';
211
+ } catch (_) {
212
+ return 'Object';
213
+ }
214
+ }
215
+ // errors
216
+ if (val instanceof Error) {
217
+ return `${val.name}: ${val.message}\n${val.stack}`;
218
+ }
219
+ // TODO we could test for more things here, like `Set`s and `Map`s.
220
+ return className;
221
+ }
222
+
223
+ function _assertClass(instance, klass) {
224
+ if (!(instance instanceof klass)) {
225
+ throw new Error(`expected instance of ${klass.name}`);
226
+ }
227
+ }
228
+
229
+ let cachedFloat32ArrayMemory0 = null;
230
+
231
+ function getFloat32ArrayMemory0() {
232
+ if (cachedFloat32ArrayMemory0 === null || cachedFloat32ArrayMemory0.byteLength === 0) {
233
+ cachedFloat32ArrayMemory0 = new Float32Array(wasm.memory.buffer);
234
+ }
235
+ return cachedFloat32ArrayMemory0;
236
+ }
237
+
238
+ function passArrayF32ToWasm0(arg, malloc) {
239
+ const ptr = malloc(arg.length * 4, 4) >>> 0;
240
+ getFloat32ArrayMemory0().set(arg, ptr / 4);
241
+ WASM_VECTOR_LEN = arg.length;
242
+ return ptr;
243
+ }
244
+ function __wbg_adapter_18(arg0, arg1, arg2) {
245
+ wasm.closure71_externref_shim(arg0, arg1, arg2);
246
+ }
247
+
248
+ function __wbg_adapter_21(arg0, arg1, arg2) {
249
+ wasm.closure76_externref_shim(arg0, arg1, arg2);
250
+ }
251
+
252
+ function __wbg_adapter_72(arg0, arg1, arg2, arg3) {
253
+ wasm.closure92_externref_shim(arg0, arg1, arg2, arg3);
254
+ }
255
+
256
+ const ConfigFinalization = (typeof FinalizationRegistry === 'undefined')
257
+ ? { register: () => {}, unregister: () => {} }
258
+ : new FinalizationRegistry(ptr => wasm.__wbg_config_free(ptr >>> 0, 1));
259
+
260
+ export class Config {
261
+
262
+ static __wrap(ptr) {
263
+ ptr = ptr >>> 0;
264
+ const obj = Object.create(Config.prototype);
265
+ obj.__wbg_ptr = ptr;
266
+ ConfigFinalization.register(obj, obj.__wbg_ptr, obj);
267
+ return obj;
268
+ }
269
+
270
+ __destroy_into_raw() {
271
+ const ptr = this.__wbg_ptr;
272
+ this.__wbg_ptr = 0;
273
+ ConfigFinalization.unregister(this);
274
+ return ptr;
275
+ }
276
+
277
+ free() {
278
+ const ptr = this.__destroy_into_raw();
279
+ wasm.__wbg_config_free(ptr, 0);
280
+ }
281
+ /**
282
+ * @returns {number}
283
+ */
284
+ get sample_rate() {
285
+ const ret = wasm.__wbg_get_config_sample_rate(this.__wbg_ptr);
286
+ return ret;
287
+ }
288
+ /**
289
+ * @param {number} arg0
290
+ */
291
+ set sample_rate(arg0) {
292
+ wasm.__wbg_set_config_sample_rate(this.__wbg_ptr, arg0);
293
+ }
294
+ /**
295
+ * @returns {number}
296
+ */
297
+ get input_channels() {
298
+ const ret = wasm.__wbg_get_config_input_channels(this.__wbg_ptr);
299
+ return ret >>> 0;
300
+ }
301
+ /**
302
+ * @param {number} arg0
303
+ */
304
+ set input_channels(arg0) {
305
+ wasm.__wbg_set_config_input_channels(this.__wbg_ptr, arg0);
306
+ }
307
+ /**
308
+ * @returns {number}
309
+ */
310
+ get output_channels() {
311
+ const ret = wasm.__wbg_get_config_output_channels(this.__wbg_ptr);
312
+ return ret >>> 0;
313
+ }
314
+ /**
315
+ * @param {number} arg0
316
+ */
317
+ set output_channels(arg0) {
318
+ wasm.__wbg_set_config_output_channels(this.__wbg_ptr, arg0);
319
+ }
320
+ /**
321
+ * @returns {number}
322
+ */
323
+ get buffer_size() {
324
+ const ret = wasm.__wbg_get_config_buffer_size(this.__wbg_ptr);
325
+ return ret >>> 0;
326
+ }
327
+ /**
328
+ * @param {number} arg0
329
+ */
330
+ set buffer_size(arg0) {
331
+ wasm.__wbg_set_config_buffer_size(this.__wbg_ptr, arg0);
332
+ }
333
+ /**
334
+ * @returns {Config}
335
+ */
336
+ static new() {
337
+ const ret = wasm.config_new();
338
+ return Config.__wrap(ret);
339
+ }
340
+ }
341
+
342
+ const ContextFinalization = (typeof FinalizationRegistry === 'undefined')
343
+ ? { register: () => {}, unregister: () => {} }
344
+ : new FinalizationRegistry(ptr => wasm.__wbg_context_free(ptr >>> 0, 1));
345
+
346
+ export class Context {
347
+
348
+ __destroy_into_raw() {
349
+ const ptr = this.__wbg_ptr;
350
+ this.__wbg_ptr = 0;
351
+ ContextFinalization.unregister(this);
352
+ return ptr;
353
+ }
354
+
355
+ free() {
356
+ const ptr = this.__destroy_into_raw();
357
+ wasm.__wbg_context_free(ptr, 0);
358
+ }
359
+ /**
360
+ * @param {Config} config
361
+ */
362
+ constructor(config) {
363
+ _assertClass(config, Config);
364
+ var ptr0 = config.__destroy_into_raw();
365
+ const ret = wasm.context_new(ptr0);
366
+ this.__wbg_ptr = ret >>> 0;
367
+ ContextFinalization.register(this, this.__wbg_ptr, this);
368
+ return this;
369
+ }
370
+ /**
371
+ * @param {string} src
372
+ */
373
+ compile(src) {
374
+ const ptr0 = passStringToWasm0(src, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
375
+ const len0 = WASM_VECTOR_LEN;
376
+ wasm.context_compile(this.__wbg_ptr, ptr0, len0);
377
+ }
378
+ /**
379
+ * @returns {number}
380
+ */
381
+ get_input_channels() {
382
+ const ret = wasm.context_get_input_channels(this.__wbg_ptr);
383
+ return ret >>> 0;
384
+ }
385
+ /**
386
+ * @returns {number}
387
+ */
388
+ get_output_channels() {
389
+ const ret = wasm.context_get_output_channels(this.__wbg_ptr);
390
+ return ret >>> 0;
391
+ }
392
+ /**
393
+ * .
394
+ *
395
+ * # Safety
396
+ * Array size of input and output must be equal to `input_channels * buffer_size` and `output_channels * buffer_size` respectively.
397
+ * .
398
+ * @param {Float32Array} input
399
+ * @param {Float32Array} output
400
+ * @returns {bigint}
401
+ */
402
+ process(input, output) {
403
+ const ptr0 = passArrayF32ToWasm0(input, wasm.__wbindgen_malloc);
404
+ const len0 = WASM_VECTOR_LEN;
405
+ var ptr1 = passArrayF32ToWasm0(output, wasm.__wbindgen_malloc);
406
+ var len1 = WASM_VECTOR_LEN;
407
+ const ret = wasm.context_process(this.__wbg_ptr, ptr0, len0, ptr1, len1, output);
408
+ return BigInt.asUintN(64, ret);
409
+ }
410
+ }
411
+
412
+ export function __wbg_call_b0d8e36992d9900d() { return handleError(function (arg0, arg1) {
413
+ const ret = arg0.call(arg1);
414
+ return ret;
415
+ }, arguments) };
416
+
417
+ export function __wbg_data_d2ef8a36fe06fc0a() { return handleError(function (arg0, arg1) {
418
+ const ret = arg1.data;
419
+ const ptr1 = passArray8ToWasm0(ret, wasm.__wbindgen_malloc);
420
+ const len1 = WASM_VECTOR_LEN;
421
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
422
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
423
+ }, arguments) };
424
+
425
+ export function __wbg_error_7534b8e9a36f1ab4(arg0, arg1) {
426
+ let deferred0_0;
427
+ let deferred0_1;
428
+ try {
429
+ deferred0_0 = arg0;
430
+ deferred0_1 = arg1;
431
+ console.error(getStringFromWasm0(arg0, arg1));
432
+ } finally {
433
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
434
+ }
435
+ };
436
+
437
+ export function __wbg_forEach_960fd897546c2cc7(arg0, arg1, arg2) {
438
+ try {
439
+ var state0 = {a: arg1, b: arg2};
440
+ var cb0 = (arg0, arg1) => {
441
+ const a = state0.a;
442
+ state0.a = 0;
443
+ try {
444
+ return __wbg_adapter_72(a, state0.b, arg0, arg1);
445
+ } finally {
446
+ state0.a = a;
447
+ }
448
+ };
449
+ arg0.forEach(cb0);
450
+ } finally {
451
+ state0.a = state0.b = 0;
452
+ }
453
+ };
454
+
455
+ export function __wbg_id_342672fabcb69265(arg0, arg1) {
456
+ const ret = arg1.id;
457
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
458
+ const len1 = WASM_VECTOR_LEN;
459
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
460
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
461
+ };
462
+
463
+ export function __wbg_inputs_b38a2701063a9f19(arg0) {
464
+ const ret = arg0.inputs;
465
+ return ret;
466
+ };
467
+
468
+ export function __wbg_instanceof_MidiAccess_0a300b3304ef3202(arg0) {
469
+ let result;
470
+ try {
471
+ result = arg0 instanceof MIDIAccess;
472
+ } catch (_) {
473
+ result = false;
474
+ }
475
+ const ret = result;
476
+ return ret;
477
+ };
478
+
479
+ export function __wbg_instanceof_MidiInput_8847af17a1bd9e0a(arg0) {
480
+ let result;
481
+ try {
482
+ result = arg0 instanceof MIDIInput;
483
+ } catch (_) {
484
+ result = false;
485
+ }
486
+ const ret = result;
487
+ return ret;
488
+ };
489
+
490
+ export function __wbg_instanceof_Window_d2514c6a7ee7ba60(arg0) {
491
+ let result;
492
+ try {
493
+ result = arg0 instanceof Window;
494
+ } catch (_) {
495
+ result = false;
496
+ }
497
+ const ret = result;
498
+ return ret;
499
+ };
500
+
501
+ export function __wbg_name_476a3f59d488a92a(arg0, arg1) {
502
+ const ret = arg1.name;
503
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
504
+ var len1 = WASM_VECTOR_LEN;
505
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
506
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
507
+ };
508
+
509
+ export function __wbg_navigator_0fe968937104eaa7(arg0) {
510
+ const ret = arg0.navigator;
511
+ return ret;
512
+ };
513
+
514
+ export function __wbg_new_688846f374351c92() {
515
+ const ret = new Object();
516
+ return ret;
517
+ };
518
+
519
+ export function __wbg_new_8a6f238a6ece86ea() {
520
+ const ret = new Error();
521
+ return ret;
522
+ };
523
+
524
+ export function __wbg_newnoargs_fd9e4bf8be2bc16d(arg0, arg1) {
525
+ const ret = new Function(getStringFromWasm0(arg0, arg1));
526
+ return ret;
527
+ };
528
+
529
+ export function __wbg_open_bad7415c7076f4d4(arg0) {
530
+ const ret = arg0.open();
531
+ return ret;
532
+ };
533
+
534
+ export function __wbg_readfile_cea7a8bc2792ba44() { return handleError(function (arg0, arg1, arg2) {
535
+ const ret = read_file(getStringFromWasm0(arg1, arg2));
536
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
537
+ const len1 = WASM_VECTOR_LEN;
538
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
539
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
540
+ }, arguments) };
541
+
542
+ export function __wbg_requestMIDIAccess_e5de2909f77fdf72() { return handleError(function (arg0, arg1) {
543
+ const ret = arg0.requestMIDIAccess(arg1);
544
+ return ret;
545
+ }, arguments) };
546
+
547
+ export function __wbg_setonmidimessage_cc963fd52d629fb2(arg0, arg1) {
548
+ arg0.onmidimessage = arg1;
549
+ };
550
+
551
+ export function __wbg_setsysex_634999d73a9f19a9(arg0, arg1) {
552
+ arg0.sysex = arg1 !== 0;
553
+ };
554
+
555
+ export function __wbg_stack_0ed75d68575b0f3c(arg0, arg1) {
556
+ const ret = arg1.stack;
557
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
558
+ const len1 = WASM_VECTOR_LEN;
559
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
560
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
561
+ };
562
+
563
+ export function __wbg_static_accessor_GLOBAL_0be7472e492ad3e3() {
564
+ const ret = typeof global === 'undefined' ? null : global;
565
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
566
+ };
567
+
568
+ export function __wbg_static_accessor_GLOBAL_THIS_1a6eb482d12c9bfb() {
569
+ const ret = typeof globalThis === 'undefined' ? null : globalThis;
570
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
571
+ };
572
+
573
+ export function __wbg_static_accessor_SELF_1dc398a895c82351() {
574
+ const ret = typeof self === 'undefined' ? null : self;
575
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
576
+ };
577
+
578
+ export function __wbg_static_accessor_WINDOW_ae1c80c7eea8d64a() {
579
+ const ret = typeof window === 'undefined' ? null : window;
580
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
581
+ };
582
+
583
+ export function __wbg_then_0ffafeddf0e182a4(arg0, arg1, arg2) {
584
+ const ret = arg0.then(arg1, arg2);
585
+ return ret;
586
+ };
587
+
588
+ export function __wbg_timeStamp_0aab179f39f96348(arg0) {
589
+ const ret = arg0.timeStamp;
590
+ return ret;
591
+ };
592
+
593
+ export function __wbindgen_cb_drop(arg0) {
594
+ const obj = arg0.original;
595
+ if (obj.cnt-- == 1) {
596
+ obj.a = 0;
597
+ return true;
598
+ }
599
+ const ret = false;
600
+ return ret;
601
+ };
602
+
603
+ export function __wbindgen_closure_wrapper185(arg0, arg1, arg2) {
604
+ const ret = makeMutClosure(arg0, arg1, 72, __wbg_adapter_18);
605
+ return ret;
606
+ };
607
+
608
+ export function __wbindgen_closure_wrapper198(arg0, arg1, arg2) {
609
+ const ret = makeMutClosure(arg0, arg1, 77, __wbg_adapter_21);
610
+ return ret;
611
+ };
612
+
613
+ export function __wbindgen_copy_to_typed_array(arg0, arg1, arg2) {
614
+ new Uint8Array(arg2.buffer, arg2.byteOffset, arg2.byteLength).set(getArrayU8FromWasm0(arg0, arg1));
615
+ };
616
+
617
+ export function __wbindgen_debug_string(arg0, arg1) {
618
+ const ret = debugString(arg1);
619
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
620
+ const len1 = WASM_VECTOR_LEN;
621
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
622
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
623
+ };
624
+
625
+ export function __wbindgen_init_externref_table() {
626
+ const table = wasm.__wbindgen_export_2;
627
+ const offset = table.grow(4);
628
+ table.set(0, undefined);
629
+ table.set(offset + 0, undefined);
630
+ table.set(offset + 1, null);
631
+ table.set(offset + 2, true);
632
+ table.set(offset + 3, false);
633
+ ;
634
+ };
635
+
636
+ export function __wbindgen_is_undefined(arg0) {
637
+ const ret = arg0 === undefined;
638
+ return ret;
639
+ };
640
+
641
+ export function __wbindgen_throw(arg0, arg1) {
642
+ throw new Error(getStringFromWasm0(arg0, arg1));
643
+ };
644
+
Binary file
package/package.json CHANGED
@@ -5,20 +5,22 @@
5
5
  "Tomoya Matsuura <me@matsuuratomoya.com>"
6
6
  ],
7
7
  "description": "mimium wasm binding package.",
8
- "version": "2.2.7",
8
+ "version": "2.4.1-alpha",
9
9
  "license": "MPL-2.0",
10
10
  "repository": {
11
11
  "type": "git",
12
- "url": "https://github.com/tomoyanonymous/mimium-rs/"
12
+ "url": "https://github.com/mimium-org/mimium-rs/"
13
13
  },
14
14
  "files": [
15
15
  "mimium_web_bg.wasm",
16
16
  "mimium_web.js",
17
+ "mimium_web_bg.js",
17
18
  "mimium_web.d.ts"
18
19
  ],
19
20
  "main": "mimium_web.js",
20
21
  "types": "mimium_web.d.ts",
21
22
  "sideEffects": [
23
+ "./mimium_web.js",
22
24
  "./snippets/*"
23
25
  ]
24
26
  }