basedpl 0.1.38 → 0.1.42
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/basedpl_wasm.js +203 -223
- package/basedpl_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/basedpl_wasm.js
CHANGED
|
@@ -15,17 +15,9 @@ export class Session {
|
|
|
15
15
|
* @param {any} names
|
|
16
16
|
*/
|
|
17
17
|
bind(names) {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
22
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
23
|
-
if (r1) {
|
|
24
|
-
throw takeObject(r0);
|
|
25
|
-
}
|
|
26
|
-
} finally {
|
|
27
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
28
|
-
heap[stack_pointer++] = undefined;
|
|
18
|
+
const ret = wasm.session_bind(this.__wbg_ptr, names);
|
|
19
|
+
if (ret[1]) {
|
|
20
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
29
21
|
}
|
|
30
22
|
}
|
|
31
23
|
/**
|
|
@@ -35,21 +27,13 @@ export class Session {
|
|
|
35
27
|
* @returns {any}
|
|
36
28
|
*/
|
|
37
29
|
eval(code) {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
44
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
45
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
46
|
-
if (r2) {
|
|
47
|
-
throw takeObject(r1);
|
|
48
|
-
}
|
|
49
|
-
return takeObject(r0);
|
|
50
|
-
} finally {
|
|
51
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
30
|
+
const ptr0 = passStringToWasm0(code, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
31
|
+
const len0 = WASM_VECTOR_LEN;
|
|
32
|
+
const ret = wasm.session_eval(this.__wbg_ptr, ptr0, len0);
|
|
33
|
+
if (ret[2]) {
|
|
34
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
52
35
|
}
|
|
36
|
+
return takeFromExternrefTable0(ret[0]);
|
|
53
37
|
}
|
|
54
38
|
constructor() {
|
|
55
39
|
const ret = wasm.session_new();
|
|
@@ -65,10 +49,10 @@ export class Session {
|
|
|
65
49
|
* @returns {any}
|
|
66
50
|
*/
|
|
67
51
|
run(code, output) {
|
|
68
|
-
const ptr0 = passStringToWasm0(code, wasm.
|
|
52
|
+
const ptr0 = passStringToWasm0(code, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
69
53
|
const len0 = WASM_VECTOR_LEN;
|
|
70
|
-
const ret = wasm.session_run(this.__wbg_ptr, ptr0, len0,
|
|
71
|
-
return
|
|
54
|
+
const ret = wasm.session_run(this.__wbg_ptr, ptr0, len0, output);
|
|
55
|
+
return ret;
|
|
72
56
|
}
|
|
73
57
|
}
|
|
74
58
|
if (Symbol.dispose) Session.prototype[Symbol.dispose] = Session.prototype.free;
|
|
@@ -79,9 +63,25 @@ if (Symbol.dispose) Session.prototype[Symbol.dispose] = Session.prototype.free;
|
|
|
79
63
|
* @param {Function} panic
|
|
80
64
|
*/
|
|
81
65
|
export function configure(base, panic) {
|
|
82
|
-
const ptr0 = passStringToWasm0(base, wasm.
|
|
66
|
+
const ptr0 = passStringToWasm0(base, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
67
|
+
const len0 = WASM_VECTOR_LEN;
|
|
68
|
+
wasm.configure(ptr0, len0, panic);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Every case in `speed`, text in `speed.txt`'s format, with its cost, as `basedpl::timing::costs` times it: an array of
|
|
73
|
+
* `{section, code, budgets, cost}`. Throws when the setup or a case fails.
|
|
74
|
+
* @param {string} speed
|
|
75
|
+
* @returns {any}
|
|
76
|
+
*/
|
|
77
|
+
export function costs(speed) {
|
|
78
|
+
const ptr0 = passStringToWasm0(speed, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
83
79
|
const len0 = WASM_VECTOR_LEN;
|
|
84
|
-
wasm.
|
|
80
|
+
const ret = wasm.costs(ptr0, len0);
|
|
81
|
+
if (ret[2]) {
|
|
82
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
83
|
+
}
|
|
84
|
+
return takeFromExternrefTable0(ret[0]);
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
/**
|
|
@@ -92,74 +92,70 @@ export function symbols() {
|
|
|
92
92
|
let deferred1_0;
|
|
93
93
|
let deferred1_1;
|
|
94
94
|
try {
|
|
95
|
-
const
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
deferred1_0 = r0;
|
|
100
|
-
deferred1_1 = r1;
|
|
101
|
-
return getStringFromWasm0(r0, r1);
|
|
95
|
+
const ret = wasm.symbols();
|
|
96
|
+
deferred1_0 = ret[0];
|
|
97
|
+
deferred1_1 = ret[1];
|
|
98
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
102
99
|
} finally {
|
|
103
|
-
wasm.
|
|
104
|
-
wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
|
|
100
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
105
101
|
}
|
|
106
102
|
}
|
|
107
103
|
function __wbg_get_imports() {
|
|
108
104
|
const import0 = {
|
|
109
105
|
__proto__: null,
|
|
110
106
|
__wbg___wbindgen_bigint_get_as_i64_a2383202b9353e4c: function(arg0, arg1) {
|
|
111
|
-
const v =
|
|
107
|
+
const v = arg1;
|
|
112
108
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
113
109
|
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
114
110
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
115
111
|
},
|
|
116
112
|
__wbg___wbindgen_boolean_get_5b446f51afd21013: function(arg0) {
|
|
117
|
-
const v =
|
|
113
|
+
const v = arg0;
|
|
118
114
|
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
119
115
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
120
116
|
},
|
|
121
117
|
__wbg___wbindgen_debug_string_4687d8d8c2017d52: function(arg0, arg1) {
|
|
122
|
-
const ret = debugString(
|
|
123
|
-
const ptr1 = passStringToWasm0(ret, wasm.
|
|
118
|
+
const ret = debugString(arg1);
|
|
119
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
124
120
|
const len1 = WASM_VECTOR_LEN;
|
|
125
121
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
126
122
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
127
123
|
},
|
|
128
124
|
__wbg___wbindgen_is_bigint_b123553bed3bb382: function(arg0) {
|
|
129
|
-
const ret = typeof(
|
|
125
|
+
const ret = typeof(arg0) === 'bigint';
|
|
130
126
|
return ret;
|
|
131
127
|
},
|
|
132
128
|
__wbg___wbindgen_is_function_1f9d30630b8b1d3d: function(arg0) {
|
|
133
|
-
const ret = typeof(
|
|
129
|
+
const ret = typeof(arg0) === 'function';
|
|
134
130
|
return ret;
|
|
135
131
|
},
|
|
136
132
|
__wbg___wbindgen_is_null_e343b7d08827ba72: function(arg0) {
|
|
137
|
-
const ret =
|
|
133
|
+
const ret = arg0 === null;
|
|
138
134
|
return ret;
|
|
139
135
|
},
|
|
140
136
|
__wbg___wbindgen_is_object_3c45d4f2dde4e749: function(arg0) {
|
|
141
|
-
const val =
|
|
137
|
+
const val = arg0;
|
|
142
138
|
const ret = typeof(val) === 'object' && val !== null;
|
|
143
139
|
return ret;
|
|
144
140
|
},
|
|
145
141
|
__wbg___wbindgen_is_undefined_8865fb403f8fe9d8: function(arg0) {
|
|
146
|
-
const ret =
|
|
142
|
+
const ret = arg0 === undefined;
|
|
147
143
|
return ret;
|
|
148
144
|
},
|
|
149
145
|
__wbg___wbindgen_jsval_eq_02babf21faa37971: function(arg0, arg1) {
|
|
150
|
-
const ret =
|
|
146
|
+
const ret = arg0 === arg1;
|
|
151
147
|
return ret;
|
|
152
148
|
},
|
|
153
149
|
__wbg___wbindgen_number_get_2e0e7dee9f701a71: function(arg0, arg1) {
|
|
154
|
-
const obj =
|
|
150
|
+
const obj = arg1;
|
|
155
151
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
156
152
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
157
153
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
158
154
|
},
|
|
159
155
|
__wbg___wbindgen_string_get_0380ccaa2f57f0d9: function(arg0, arg1) {
|
|
160
|
-
const obj =
|
|
156
|
+
const obj = arg1;
|
|
161
157
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
162
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.
|
|
158
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
163
159
|
var len1 = WASM_VECTOR_LEN;
|
|
164
160
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
165
161
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
@@ -168,67 +164,67 @@ function __wbg_get_imports() {
|
|
|
168
164
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
169
165
|
},
|
|
170
166
|
__wbg_call_1875a20c43a36133: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
171
|
-
const ret =
|
|
172
|
-
return
|
|
167
|
+
const ret = arg0.call(arg1, arg2, arg3);
|
|
168
|
+
return ret;
|
|
173
169
|
}, arguments); },
|
|
174
170
|
__wbg_call_187d372bd5fdd4aa: function() { return handleError(function (arg0, arg1, arg2) {
|
|
175
|
-
const ret =
|
|
176
|
-
return
|
|
171
|
+
const ret = arg0.call(arg1, arg2);
|
|
172
|
+
return ret;
|
|
177
173
|
}, arguments); },
|
|
178
174
|
__wbg_construct_2cc135b78387ed16: function() { return handleError(function (arg0, arg1) {
|
|
179
|
-
const ret = Reflect.construct(
|
|
180
|
-
return
|
|
175
|
+
const ret = Reflect.construct(arg0, arg1);
|
|
176
|
+
return ret;
|
|
181
177
|
}, arguments); },
|
|
182
178
|
__wbg_createElement_74049073a11f9c31: function() { return handleError(function (arg0, arg1, arg2) {
|
|
183
|
-
const ret =
|
|
184
|
-
return
|
|
179
|
+
const ret = arg0.createElement(getStringFromWasm0(arg1, arg2));
|
|
180
|
+
return ret;
|
|
185
181
|
}, arguments); },
|
|
186
182
|
__wbg_document_9854e03c05fc8834: function(arg0) {
|
|
187
|
-
const ret =
|
|
188
|
-
return isLikeNone(ret) ? 0 :
|
|
183
|
+
const ret = arg0.document;
|
|
184
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
189
185
|
},
|
|
190
186
|
__wbg_done_b41a1d26cdb37fb6: function(arg0) {
|
|
191
|
-
const ret =
|
|
187
|
+
const ret = arg0.done;
|
|
192
188
|
return ret;
|
|
193
189
|
},
|
|
194
190
|
__wbg_entries_fb6397112b1de25f: function(arg0) {
|
|
195
|
-
const ret = Object.entries(
|
|
196
|
-
return
|
|
191
|
+
const ret = Object.entries(arg0);
|
|
192
|
+
return ret;
|
|
197
193
|
},
|
|
198
194
|
__wbg_eval_2f4f6921d1b0da1a: function() { return handleError(function (arg0, arg1) {
|
|
199
195
|
const ret = eval(getStringFromWasm0(arg0, arg1));
|
|
200
|
-
return
|
|
196
|
+
return ret;
|
|
201
197
|
}, arguments); },
|
|
202
198
|
__wbg_exec_a5f4ba02713fbebe: function(arg0, arg1, arg2) {
|
|
203
|
-
const ret =
|
|
204
|
-
return isLikeNone(ret) ? 0 :
|
|
199
|
+
const ret = arg0.exec(getStringFromWasm0(arg1, arg2));
|
|
200
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
205
201
|
},
|
|
206
202
|
__wbg_fontBoundingBoxAscent_694ba20be295b1c3: function(arg0) {
|
|
207
|
-
const ret =
|
|
203
|
+
const ret = arg0.fontBoundingBoxAscent;
|
|
208
204
|
return ret;
|
|
209
205
|
},
|
|
210
206
|
__wbg_fontBoundingBoxDescent_e0d660bcc3049b29: function(arg0) {
|
|
211
|
-
const ret =
|
|
207
|
+
const ret = arg0.fontBoundingBoxDescent;
|
|
212
208
|
return ret;
|
|
213
209
|
},
|
|
214
210
|
__wbg_from_296ca31f8d0f1c52: function(arg0) {
|
|
215
|
-
const ret = Array.from(
|
|
216
|
-
return
|
|
211
|
+
const ret = Array.from(arg0);
|
|
212
|
+
return ret;
|
|
217
213
|
},
|
|
218
214
|
__wbg_getAllResponseHeaders_537d007c37d53dba: function() { return handleError(function (arg0, arg1) {
|
|
219
|
-
const ret =
|
|
220
|
-
const ptr1 = passStringToWasm0(ret, wasm.
|
|
215
|
+
const ret = arg1.getAllResponseHeaders();
|
|
216
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
221
217
|
const len1 = WASM_VECTOR_LEN;
|
|
222
218
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
223
219
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
224
220
|
}, arguments); },
|
|
225
221
|
__wbg_getContext_635e36719cad2623: function() { return handleError(function (arg0, arg1, arg2) {
|
|
226
|
-
const ret =
|
|
227
|
-
return isLikeNone(ret) ? 0 :
|
|
222
|
+
const ret = arg0.getContext(getStringFromWasm0(arg1, arg2));
|
|
223
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
228
224
|
}, arguments); },
|
|
229
225
|
__wbg_getContext_e567868594d2e0c6: function() { return handleError(function (arg0, arg1, arg2) {
|
|
230
|
-
const ret =
|
|
231
|
-
return isLikeNone(ret) ? 0 :
|
|
226
|
+
const ret = arg0.getContext(getStringFromWasm0(arg1, arg2));
|
|
227
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
232
228
|
}, arguments); },
|
|
233
229
|
__wbg_getRandomValues_436a51d0629d84e1: function() { return handleError(function (arg0, arg1) {
|
|
234
230
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
@@ -237,28 +233,28 @@ function __wbg_get_imports() {
|
|
|
237
233
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
238
234
|
}, arguments); },
|
|
239
235
|
__wbg_getTime_f5a55efff2585d5d: function(arg0) {
|
|
240
|
-
const ret =
|
|
236
|
+
const ret = arg0.getTime();
|
|
241
237
|
return ret;
|
|
242
238
|
},
|
|
243
239
|
__wbg_getTimezoneOffset_2e851fdaecc2dc92: function(arg0) {
|
|
244
|
-
const ret =
|
|
240
|
+
const ret = arg0.getTimezoneOffset();
|
|
245
241
|
return ret;
|
|
246
242
|
},
|
|
247
243
|
__wbg_get_31af05bd4842a84f: function() { return handleError(function (arg0, arg1) {
|
|
248
|
-
const ret = Reflect.get(
|
|
249
|
-
return
|
|
244
|
+
const ret = Reflect.get(arg0, arg1);
|
|
245
|
+
return ret;
|
|
250
246
|
}, arguments); },
|
|
251
247
|
__wbg_get_6c896e0571ddae51: function(arg0, arg1) {
|
|
252
|
-
const ret =
|
|
253
|
-
return
|
|
248
|
+
const ret = arg0[arg1 >>> 0];
|
|
249
|
+
return ret;
|
|
254
250
|
},
|
|
255
251
|
__wbg_get_unchecked_288889d017702237: function(arg0, arg1) {
|
|
256
|
-
const ret =
|
|
257
|
-
return
|
|
252
|
+
const ret = arg0[arg1 >>> 0];
|
|
253
|
+
return ret;
|
|
258
254
|
},
|
|
259
255
|
__wbg_href_221703ee1ed727fc: function(arg0, arg1) {
|
|
260
|
-
const ret =
|
|
261
|
-
const ptr1 = passStringToWasm0(ret, wasm.
|
|
256
|
+
const ret = arg1.href;
|
|
257
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
262
258
|
const len1 = WASM_VECTOR_LEN;
|
|
263
259
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
264
260
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
@@ -266,7 +262,7 @@ function __wbg_get_imports() {
|
|
|
266
262
|
__wbg_instanceof_BigInt64Array_1a1234d945c1625f: function(arg0) {
|
|
267
263
|
let result;
|
|
268
264
|
try {
|
|
269
|
-
result =
|
|
265
|
+
result = arg0 instanceof BigInt64Array;
|
|
270
266
|
} catch (_) {
|
|
271
267
|
result = false;
|
|
272
268
|
}
|
|
@@ -276,7 +272,7 @@ function __wbg_get_imports() {
|
|
|
276
272
|
__wbg_instanceof_CanvasRenderingContext2d_769208c72dcbf5e6: function(arg0) {
|
|
277
273
|
let result;
|
|
278
274
|
try {
|
|
279
|
-
result =
|
|
275
|
+
result = arg0 instanceof CanvasRenderingContext2D;
|
|
280
276
|
} catch (_) {
|
|
281
277
|
result = false;
|
|
282
278
|
}
|
|
@@ -286,7 +282,7 @@ function __wbg_get_imports() {
|
|
|
286
282
|
__wbg_instanceof_Error_80a725f81f2e102d: function(arg0) {
|
|
287
283
|
let result;
|
|
288
284
|
try {
|
|
289
|
-
result =
|
|
285
|
+
result = arg0 instanceof Error;
|
|
290
286
|
} catch (_) {
|
|
291
287
|
result = false;
|
|
292
288
|
}
|
|
@@ -296,7 +292,7 @@ function __wbg_get_imports() {
|
|
|
296
292
|
__wbg_instanceof_Float32Array_595afb0f28b828c9: function(arg0) {
|
|
297
293
|
let result;
|
|
298
294
|
try {
|
|
299
|
-
result =
|
|
295
|
+
result = arg0 instanceof Float32Array;
|
|
300
296
|
} catch (_) {
|
|
301
297
|
result = false;
|
|
302
298
|
}
|
|
@@ -306,7 +302,7 @@ function __wbg_get_imports() {
|
|
|
306
302
|
__wbg_instanceof_Float64Array_8a59377f9eec1b8b: function(arg0) {
|
|
307
303
|
let result;
|
|
308
304
|
try {
|
|
309
|
-
result =
|
|
305
|
+
result = arg0 instanceof Float64Array;
|
|
310
306
|
} catch (_) {
|
|
311
307
|
result = false;
|
|
312
308
|
}
|
|
@@ -316,7 +312,7 @@ function __wbg_get_imports() {
|
|
|
316
312
|
__wbg_instanceof_HtmlCanvasElement_0a30c11fbbf41841: function(arg0) {
|
|
317
313
|
let result;
|
|
318
314
|
try {
|
|
319
|
-
result =
|
|
315
|
+
result = arg0 instanceof HTMLCanvasElement;
|
|
320
316
|
} catch (_) {
|
|
321
317
|
result = false;
|
|
322
318
|
}
|
|
@@ -326,7 +322,7 @@ function __wbg_get_imports() {
|
|
|
326
322
|
__wbg_instanceof_Int16Array_dc79388a406d1748: function(arg0) {
|
|
327
323
|
let result;
|
|
328
324
|
try {
|
|
329
|
-
result =
|
|
325
|
+
result = arg0 instanceof Int16Array;
|
|
330
326
|
} catch (_) {
|
|
331
327
|
result = false;
|
|
332
328
|
}
|
|
@@ -336,7 +332,7 @@ function __wbg_get_imports() {
|
|
|
336
332
|
__wbg_instanceof_Int32Array_4b9a86620726269b: function(arg0) {
|
|
337
333
|
let result;
|
|
338
334
|
try {
|
|
339
|
-
result =
|
|
335
|
+
result = arg0 instanceof Int32Array;
|
|
340
336
|
} catch (_) {
|
|
341
337
|
result = false;
|
|
342
338
|
}
|
|
@@ -346,7 +342,7 @@ function __wbg_get_imports() {
|
|
|
346
342
|
__wbg_instanceof_Int8Array_dead59f83656e45a: function(arg0) {
|
|
347
343
|
let result;
|
|
348
344
|
try {
|
|
349
|
-
result =
|
|
345
|
+
result = arg0 instanceof Int8Array;
|
|
350
346
|
} catch (_) {
|
|
351
347
|
result = false;
|
|
352
348
|
}
|
|
@@ -356,7 +352,7 @@ function __wbg_get_imports() {
|
|
|
356
352
|
__wbg_instanceof_OffscreenCanvasRenderingContext2d_957f1a991324c9dc: function(arg0) {
|
|
357
353
|
let result;
|
|
358
354
|
try {
|
|
359
|
-
result =
|
|
355
|
+
result = arg0 instanceof OffscreenCanvasRenderingContext2D;
|
|
360
356
|
} catch (_) {
|
|
361
357
|
result = false;
|
|
362
358
|
}
|
|
@@ -366,7 +362,7 @@ function __wbg_get_imports() {
|
|
|
366
362
|
__wbg_instanceof_Uint16Array_eff85aa31096af44: function(arg0) {
|
|
367
363
|
let result;
|
|
368
364
|
try {
|
|
369
|
-
result =
|
|
365
|
+
result = arg0 instanceof Uint16Array;
|
|
370
366
|
} catch (_) {
|
|
371
367
|
result = false;
|
|
372
368
|
}
|
|
@@ -376,7 +372,7 @@ function __wbg_get_imports() {
|
|
|
376
372
|
__wbg_instanceof_Uint32Array_53a4facaf04b8a8b: function(arg0) {
|
|
377
373
|
let result;
|
|
378
374
|
try {
|
|
379
|
-
result =
|
|
375
|
+
result = arg0 instanceof Uint32Array;
|
|
380
376
|
} catch (_) {
|
|
381
377
|
result = false;
|
|
382
378
|
}
|
|
@@ -386,7 +382,7 @@ function __wbg_get_imports() {
|
|
|
386
382
|
__wbg_instanceof_Uint8Array_828cef2aaacafc31: function(arg0) {
|
|
387
383
|
let result;
|
|
388
384
|
try {
|
|
389
|
-
result =
|
|
385
|
+
result = arg0 instanceof Uint8Array;
|
|
390
386
|
} catch (_) {
|
|
391
387
|
result = false;
|
|
392
388
|
}
|
|
@@ -396,7 +392,7 @@ function __wbg_get_imports() {
|
|
|
396
392
|
__wbg_instanceof_Uint8ClampedArray_ae70cf3ae1cd285f: function(arg0) {
|
|
397
393
|
let result;
|
|
398
394
|
try {
|
|
399
|
-
result =
|
|
395
|
+
result = arg0 instanceof Uint8ClampedArray;
|
|
400
396
|
} catch (_) {
|
|
401
397
|
result = false;
|
|
402
398
|
}
|
|
@@ -406,7 +402,7 @@ function __wbg_get_imports() {
|
|
|
406
402
|
__wbg_instanceof_Window_82d71df4eddf88bc: function(arg0) {
|
|
407
403
|
let result;
|
|
408
404
|
try {
|
|
409
|
-
result =
|
|
405
|
+
result = arg0 instanceof Window;
|
|
410
406
|
} catch (_) {
|
|
411
407
|
result = false;
|
|
412
408
|
}
|
|
@@ -414,277 +410,283 @@ function __wbg_get_imports() {
|
|
|
414
410
|
return ret;
|
|
415
411
|
},
|
|
416
412
|
__wbg_isArray_e15a2ff68ffdbef2: function(arg0) {
|
|
417
|
-
const ret = Array.isArray(
|
|
413
|
+
const ret = Array.isArray(arg0);
|
|
418
414
|
return ret;
|
|
419
415
|
},
|
|
420
416
|
__wbg_length_0acba72356589f9c: function(arg0) {
|
|
421
|
-
const ret =
|
|
417
|
+
const ret = arg0.length;
|
|
422
418
|
return ret;
|
|
423
419
|
},
|
|
424
420
|
__wbg_length_3035e53132b7a991: function(arg0) {
|
|
425
|
-
const ret =
|
|
421
|
+
const ret = arg0.length;
|
|
426
422
|
return ret;
|
|
427
423
|
},
|
|
428
424
|
__wbg_length_511b1f84719d3462: function(arg0) {
|
|
429
|
-
const ret =
|
|
425
|
+
const ret = arg0.length;
|
|
430
426
|
return ret;
|
|
431
427
|
},
|
|
432
428
|
__wbg_length_58572db4c38f3c3e: function(arg0) {
|
|
433
|
-
const ret =
|
|
429
|
+
const ret = arg0.length;
|
|
434
430
|
return ret;
|
|
435
431
|
},
|
|
436
432
|
__wbg_length_7f3c00c40364105e: function(arg0) {
|
|
437
|
-
const ret =
|
|
433
|
+
const ret = arg0.length;
|
|
438
434
|
return ret;
|
|
439
435
|
},
|
|
440
436
|
__wbg_length_961efae5d4679ef5: function(arg0) {
|
|
441
|
-
const ret =
|
|
437
|
+
const ret = arg0.length;
|
|
442
438
|
return ret;
|
|
443
439
|
},
|
|
444
440
|
__wbg_length_b5d0ffc9b832763b: function(arg0) {
|
|
445
|
-
const ret =
|
|
441
|
+
const ret = arg0.length;
|
|
446
442
|
return ret;
|
|
447
443
|
},
|
|
448
444
|
__wbg_length_b5f0008bbf60cf59: function(arg0) {
|
|
449
|
-
const ret =
|
|
445
|
+
const ret = arg0.length;
|
|
450
446
|
return ret;
|
|
451
447
|
},
|
|
452
448
|
__wbg_length_beff923aab722a55: function(arg0) {
|
|
453
|
-
const ret =
|
|
449
|
+
const ret = arg0.length;
|
|
454
450
|
return ret;
|
|
455
451
|
},
|
|
456
452
|
__wbg_length_d4bdea10311bd9cf: function(arg0) {
|
|
457
|
-
const ret =
|
|
453
|
+
const ret = arg0.length;
|
|
458
454
|
return ret;
|
|
459
455
|
},
|
|
460
456
|
__wbg_length_e5fdd54468b9e6ed: function(arg0) {
|
|
461
|
-
const ret =
|
|
457
|
+
const ret = arg0.length;
|
|
462
458
|
return ret;
|
|
463
459
|
},
|
|
464
460
|
__wbg_matchAll_049fec9c830bd9e3: function(arg0, arg1) {
|
|
465
|
-
const ret =
|
|
466
|
-
return
|
|
461
|
+
const ret = arg0.matchAll(arg1);
|
|
462
|
+
return ret;
|
|
467
463
|
},
|
|
468
464
|
__wbg_measureText_1035b288be51876c: function() { return handleError(function (arg0, arg1, arg2) {
|
|
469
|
-
const ret =
|
|
470
|
-
return
|
|
465
|
+
const ret = arg0.measureText(getStringFromWasm0(arg1, arg2));
|
|
466
|
+
return ret;
|
|
471
467
|
}, arguments); },
|
|
472
468
|
__wbg_measureText_57347b02ada3a4ad: function() { return handleError(function (arg0, arg1, arg2) {
|
|
473
|
-
const ret =
|
|
474
|
-
return
|
|
469
|
+
const ret = arg0.measureText(getStringFromWasm0(arg1, arg2));
|
|
470
|
+
return ret;
|
|
475
471
|
}, arguments); },
|
|
476
472
|
__wbg_message_5f8387f0c32b90a7: function(arg0) {
|
|
477
|
-
const ret =
|
|
478
|
-
return
|
|
473
|
+
const ret = arg0.message;
|
|
474
|
+
return ret;
|
|
479
475
|
},
|
|
480
476
|
__wbg_new_0_72d020f0c63443d4: function() {
|
|
481
477
|
const ret = new Date();
|
|
482
|
-
return
|
|
478
|
+
return ret;
|
|
483
479
|
},
|
|
484
480
|
__wbg_new_1dbf7428bba60a42: function(arg0) {
|
|
485
|
-
const ret = new Uint8Array(
|
|
486
|
-
return
|
|
481
|
+
const ret = new Uint8Array(arg0);
|
|
482
|
+
return ret;
|
|
487
483
|
},
|
|
488
484
|
__wbg_new_343a093a3c2ffb4e: function(arg0, arg1) {
|
|
489
485
|
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
490
|
-
return
|
|
486
|
+
return ret;
|
|
491
487
|
},
|
|
492
488
|
__wbg_new_34e56228080aa9f8: function(arg0) {
|
|
493
|
-
const ret = new Date(
|
|
494
|
-
return
|
|
489
|
+
const ret = new Date(arg0);
|
|
490
|
+
return ret;
|
|
495
491
|
},
|
|
496
492
|
__wbg_new_617a8cdb8bb1130e: function() {
|
|
497
493
|
const ret = new Object();
|
|
498
|
-
return
|
|
494
|
+
return ret;
|
|
499
495
|
},
|
|
500
496
|
__wbg_new_a217df4351db4b9b: function() { return handleError(function (arg0, arg1) {
|
|
501
497
|
const ret = new OffscreenCanvas(arg0 >>> 0, arg1 >>> 0);
|
|
502
|
-
return
|
|
498
|
+
return ret;
|
|
503
499
|
}, arguments); },
|
|
504
500
|
__wbg_new_d1d1f48568532d74: function() { return handleError(function () {
|
|
505
501
|
const ret = new XMLHttpRequest();
|
|
506
|
-
return
|
|
502
|
+
return ret;
|
|
507
503
|
}, arguments); },
|
|
508
504
|
__wbg_new_ee2291f50781bf1d: function() {
|
|
509
505
|
const ret = new Array();
|
|
510
|
-
return
|
|
506
|
+
return ret;
|
|
511
507
|
},
|
|
512
508
|
__wbg_new_from_slice_2443ca2017fac0fd: function(arg0, arg1) {
|
|
513
509
|
const ret = new Int16Array(getArrayI16FromWasm0(arg0, arg1));
|
|
514
|
-
return
|
|
510
|
+
return ret;
|
|
515
511
|
},
|
|
516
512
|
__wbg_new_from_slice_911f717853b222c7: function(arg0, arg1) {
|
|
517
513
|
const ret = new Int32Array(getArrayI32FromWasm0(arg0, arg1));
|
|
518
|
-
return
|
|
514
|
+
return ret;
|
|
519
515
|
},
|
|
520
516
|
__wbg_new_from_slice_9a868026ffa4208a: function(arg0, arg1) {
|
|
521
517
|
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
522
|
-
return
|
|
518
|
+
return ret;
|
|
523
519
|
},
|
|
524
520
|
__wbg_new_from_slice_aa8f37bd5e72dcc7: function(arg0, arg1) {
|
|
525
521
|
const ret = new BigInt64Array(getArrayI64FromWasm0(arg0, arg1));
|
|
526
|
-
return
|
|
522
|
+
return ret;
|
|
523
|
+
},
|
|
524
|
+
__wbg_new_from_slice_ca6ad97db1f4779a: function(arg0, arg1) {
|
|
525
|
+
const ret = new Float32Array(getArrayF32FromWasm0(arg0, arg1));
|
|
526
|
+
return ret;
|
|
527
527
|
},
|
|
528
528
|
__wbg_new_from_slice_f545fd22ddc142b8: function(arg0, arg1) {
|
|
529
529
|
const ret = new Float64Array(getArrayF64FromWasm0(arg0, arg1));
|
|
530
|
-
return
|
|
530
|
+
return ret;
|
|
531
531
|
},
|
|
532
532
|
__wbg_new_no_args_549db978c37d28cc: function(arg0, arg1) {
|
|
533
533
|
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
534
|
-
return
|
|
534
|
+
return ret;
|
|
535
535
|
},
|
|
536
536
|
__wbg_new_with_base_29cdb449ce79d2d5: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
537
537
|
const ret = new URL(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
|
|
538
|
-
return
|
|
538
|
+
return ret;
|
|
539
539
|
}, arguments); },
|
|
540
540
|
__wbg_new_with_year_month_day_hr_min_sec_53f4266b8db312e3: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
541
541
|
const ret = new Date(arg0 >>> 0, arg1, arg2, arg3, arg4, arg5);
|
|
542
|
-
return
|
|
542
|
+
return ret;
|
|
543
543
|
},
|
|
544
544
|
__wbg_next_f4aac29c42af995c: function() { return handleError(function (arg0) {
|
|
545
|
-
const ret =
|
|
546
|
-
return
|
|
545
|
+
const ret = arg0.next();
|
|
546
|
+
return ret;
|
|
547
547
|
}, arguments); },
|
|
548
548
|
__wbg_normalize_5be7b1fd0a79da76: function(arg0, arg1, arg2) {
|
|
549
|
-
const ret =
|
|
550
|
-
return
|
|
549
|
+
const ret = arg0.normalize(getStringFromWasm0(arg1, arg2));
|
|
550
|
+
return ret;
|
|
551
551
|
},
|
|
552
552
|
__wbg_now_e1044392fce0f3e7: function() { return handleError(function () {
|
|
553
553
|
const ret = Date.now();
|
|
554
554
|
return ret;
|
|
555
555
|
}, arguments); },
|
|
556
556
|
__wbg_now_e7c6795a7f81e10f: function(arg0) {
|
|
557
|
-
const ret =
|
|
557
|
+
const ret = arg0.now();
|
|
558
558
|
return ret;
|
|
559
559
|
},
|
|
560
560
|
__wbg_of_20798cb14708764f: function(arg0, arg1) {
|
|
561
|
-
const ret = Array.of(
|
|
562
|
-
return
|
|
561
|
+
const ret = Array.of(arg0, arg1);
|
|
562
|
+
return ret;
|
|
563
563
|
},
|
|
564
564
|
__wbg_open_f0c8628338345808: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
565
|
-
|
|
565
|
+
arg0.open(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4), arg5 !== 0);
|
|
566
566
|
}, arguments); },
|
|
567
567
|
__wbg_parse_0fc53dead14b3b42: function() { return handleError(function (arg0, arg1) {
|
|
568
568
|
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
|
|
569
|
-
return
|
|
569
|
+
return ret;
|
|
570
570
|
}, arguments); },
|
|
571
571
|
__wbg_performance_3fcf6e32a7e1ed0a: function(arg0) {
|
|
572
|
-
const ret =
|
|
573
|
-
return
|
|
572
|
+
const ret = arg0.performance;
|
|
573
|
+
return ret;
|
|
574
574
|
},
|
|
575
575
|
__wbg_prototypesetcall_06eb15da165dee8f: function(arg0, arg1, arg2) {
|
|
576
|
-
Uint32Array.prototype.set.call(getArrayU32FromWasm0(arg0, arg1),
|
|
576
|
+
Uint32Array.prototype.set.call(getArrayU32FromWasm0(arg0, arg1), arg2);
|
|
577
577
|
},
|
|
578
578
|
__wbg_prototypesetcall_0e2bc23e51b9fbd2: function(arg0, arg1, arg2) {
|
|
579
|
-
Uint8ClampedArray.prototype.set.call(getArrayU8FromWasm0(arg0, arg1),
|
|
579
|
+
Uint8ClampedArray.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
580
580
|
},
|
|
581
581
|
__wbg_prototypesetcall_13adbfb002dee200: function(arg0, arg1, arg2) {
|
|
582
|
-
Int32Array.prototype.set.call(getArrayI32FromWasm0(arg0, arg1),
|
|
582
|
+
Int32Array.prototype.set.call(getArrayI32FromWasm0(arg0, arg1), arg2);
|
|
583
583
|
},
|
|
584
584
|
__wbg_prototypesetcall_2ee09b855e324444: function(arg0, arg1, arg2) {
|
|
585
|
-
Uint16Array.prototype.set.call(getArrayU16FromWasm0(arg0, arg1),
|
|
585
|
+
Uint16Array.prototype.set.call(getArrayU16FromWasm0(arg0, arg1), arg2);
|
|
586
586
|
},
|
|
587
587
|
__wbg_prototypesetcall_546a6fcbab18189a: function(arg0, arg1, arg2) {
|
|
588
|
-
Int8Array.prototype.set.call(getArrayI8FromWasm0(arg0, arg1),
|
|
588
|
+
Int8Array.prototype.set.call(getArrayI8FromWasm0(arg0, arg1), arg2);
|
|
589
589
|
},
|
|
590
590
|
__wbg_prototypesetcall_8b03c01e2c0f8066: function(arg0, arg1, arg2) {
|
|
591
|
-
Float32Array.prototype.set.call(getArrayF32FromWasm0(arg0, arg1),
|
|
591
|
+
Float32Array.prototype.set.call(getArrayF32FromWasm0(arg0, arg1), arg2);
|
|
592
592
|
},
|
|
593
593
|
__wbg_prototypesetcall_b275ad9519a0a737: function(arg0, arg1, arg2) {
|
|
594
|
-
BigInt64Array.prototype.set.call(getArrayI64FromWasm0(arg0, arg1),
|
|
594
|
+
BigInt64Array.prototype.set.call(getArrayI64FromWasm0(arg0, arg1), arg2);
|
|
595
595
|
},
|
|
596
596
|
__wbg_prototypesetcall_bc27214492979395: function(arg0, arg1, arg2) {
|
|
597
|
-
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1),
|
|
597
|
+
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
598
598
|
},
|
|
599
599
|
__wbg_prototypesetcall_d49a4fab5ca427bc: function(arg0, arg1, arg2) {
|
|
600
|
-
Float64Array.prototype.set.call(getArrayF64FromWasm0(arg0, arg1),
|
|
600
|
+
Float64Array.prototype.set.call(getArrayF64FromWasm0(arg0, arg1), arg2);
|
|
601
601
|
},
|
|
602
602
|
__wbg_prototypesetcall_f8d32a400a944612: function(arg0, arg1, arg2) {
|
|
603
|
-
Int16Array.prototype.set.call(getArrayI16FromWasm0(arg0, arg1),
|
|
603
|
+
Int16Array.prototype.set.call(getArrayI16FromWasm0(arg0, arg1), arg2);
|
|
604
604
|
},
|
|
605
605
|
__wbg_push_2baf45db356cf468: function(arg0, arg1) {
|
|
606
|
-
const ret =
|
|
606
|
+
const ret = arg0.push(arg1);
|
|
607
607
|
return ret;
|
|
608
608
|
},
|
|
609
609
|
__wbg_replace_89a2bb260816315a: function(arg0, arg1, arg2, arg3) {
|
|
610
|
-
const ret =
|
|
611
|
-
return
|
|
610
|
+
const ret = arg0.replace(arg1, getStringFromWasm0(arg2, arg3));
|
|
611
|
+
return ret;
|
|
612
612
|
},
|
|
613
613
|
__wbg_response_ce3feafb4716c448: function() { return handleError(function (arg0) {
|
|
614
|
-
const ret =
|
|
615
|
-
return
|
|
614
|
+
const ret = arg0.response;
|
|
615
|
+
return ret;
|
|
616
616
|
}, arguments); },
|
|
617
617
|
__wbg_send_3b3b20df5e2e7616: function() { return handleError(function (arg0, arg1, arg2) {
|
|
618
|
-
|
|
618
|
+
arg0.send(arg1 === 0 ? undefined : getArrayU8FromWasm0(arg1, arg2));
|
|
619
619
|
}, arguments); },
|
|
620
620
|
__wbg_send_9d00bd9d7a2c90b5: function() { return handleError(function (arg0) {
|
|
621
|
-
|
|
621
|
+
arg0.send();
|
|
622
622
|
}, arguments); },
|
|
623
623
|
__wbg_setRequestHeader_733b74e99bf9b791: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
624
|
-
|
|
624
|
+
arg0.setRequestHeader(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
625
625
|
}, arguments); },
|
|
626
626
|
__wbg_set_145a351398b48c65: function() { return handleError(function (arg0, arg1, arg2) {
|
|
627
|
-
const ret = Reflect.set(
|
|
627
|
+
const ret = Reflect.set(arg0, arg1, arg2);
|
|
628
628
|
return ret;
|
|
629
629
|
}, arguments); },
|
|
630
630
|
__wbg_set_font_1f60a05a2544a2ff: function(arg0, arg1, arg2) {
|
|
631
|
-
|
|
631
|
+
arg0.font = getStringFromWasm0(arg1, arg2);
|
|
632
632
|
},
|
|
633
633
|
__wbg_set_font_7ef69121e02464cd: function(arg0, arg1, arg2) {
|
|
634
|
-
|
|
634
|
+
arg0.font = getStringFromWasm0(arg1, arg2);
|
|
635
635
|
},
|
|
636
636
|
__wbg_set_responseType_1f631c1316f4c16e: function(arg0, arg1) {
|
|
637
|
-
|
|
637
|
+
arg0.responseType = __wbindgen_enum_XmlHttpRequestResponseType[arg1];
|
|
638
638
|
},
|
|
639
639
|
__wbg_static_accessor_GLOBAL_266715b9d96ba635: function() {
|
|
640
640
|
const ret = typeof global === 'undefined' ? null : global;
|
|
641
|
-
return isLikeNone(ret) ? 0 :
|
|
641
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
642
642
|
},
|
|
643
643
|
__wbg_static_accessor_GLOBAL_THIS_10fb7dc1ae063179: function() {
|
|
644
644
|
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
645
|
-
return isLikeNone(ret) ? 0 :
|
|
645
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
646
646
|
},
|
|
647
647
|
__wbg_static_accessor_SELF_0b583911f537483a: function() {
|
|
648
648
|
const ret = typeof self === 'undefined' ? null : self;
|
|
649
|
-
return isLikeNone(ret) ? 0 :
|
|
649
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
650
650
|
},
|
|
651
651
|
__wbg_static_accessor_WINDOW_d7f903d1508cbdc4: function() {
|
|
652
652
|
const ret = typeof window === 'undefined' ? null : window;
|
|
653
|
-
return isLikeNone(ret) ? 0 :
|
|
653
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
654
654
|
},
|
|
655
655
|
__wbg_status_734f92f48f0f8b78: function() { return handleError(function (arg0) {
|
|
656
|
-
const ret =
|
|
656
|
+
const ret = arg0.status;
|
|
657
657
|
return ret;
|
|
658
658
|
}, arguments); },
|
|
659
659
|
__wbg_value_f3c585ee8f5ba40c: function(arg0) {
|
|
660
|
-
const ret =
|
|
661
|
-
return
|
|
660
|
+
const ret = arg0.value;
|
|
661
|
+
return ret;
|
|
662
662
|
},
|
|
663
663
|
__wbg_width_e95ad291d52fe17e: function(arg0) {
|
|
664
|
-
const ret =
|
|
664
|
+
const ret = arg0.width;
|
|
665
665
|
return ret;
|
|
666
666
|
},
|
|
667
667
|
__wbindgen_generic_0000000000000001: function(arg0) {
|
|
668
668
|
// Cast intrinsic for `F64 -> Externref`.
|
|
669
669
|
const ret = arg0;
|
|
670
|
-
return
|
|
670
|
+
return ret;
|
|
671
671
|
},
|
|
672
672
|
__wbindgen_generic_0000000000000002: function(arg0) {
|
|
673
673
|
// Cast intrinsic for `I64 -> Externref`.
|
|
674
674
|
const ret = arg0;
|
|
675
|
-
return
|
|
675
|
+
return ret;
|
|
676
676
|
},
|
|
677
677
|
__wbindgen_generic_0000000000000003: function(arg0, arg1) {
|
|
678
678
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
679
679
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
680
|
-
return
|
|
681
|
-
},
|
|
682
|
-
__wbindgen_object_clone_ref: function(arg0) {
|
|
683
|
-
const ret = getObject(arg0);
|
|
684
|
-
return addHeapObject(ret);
|
|
680
|
+
return ret;
|
|
685
681
|
},
|
|
686
|
-
|
|
687
|
-
|
|
682
|
+
__wbindgen_init_externref_table: function() {
|
|
683
|
+
const table = wasm.__wbindgen_externrefs;
|
|
684
|
+
const offset = table.grow(4);
|
|
685
|
+
table.set(0, undefined);
|
|
686
|
+
table.set(offset + 0, undefined);
|
|
687
|
+
table.set(offset + 1, null);
|
|
688
|
+
table.set(offset + 2, true);
|
|
689
|
+
table.set(offset + 3, false);
|
|
688
690
|
},
|
|
689
691
|
};
|
|
690
692
|
return {
|
|
@@ -698,21 +700,12 @@ const SessionFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
698
700
|
? { register: () => {}, unregister: () => {} }
|
|
699
701
|
: new FinalizationRegistry(ptr => wasm.__wbg_session_free(ptr, 1));
|
|
700
702
|
|
|
701
|
-
function
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
heap_next = heap[idx];
|
|
705
|
-
|
|
706
|
-
heap[idx] = obj;
|
|
703
|
+
function addToExternrefTable0(obj) {
|
|
704
|
+
const idx = wasm.__externref_table_alloc();
|
|
705
|
+
wasm.__wbindgen_externrefs.set(idx, obj);
|
|
707
706
|
return idx;
|
|
708
707
|
}
|
|
709
708
|
|
|
710
|
-
function addBorrowedObject(obj) {
|
|
711
|
-
if (stack_pointer == 1) throw new Error('out of js stack');
|
|
712
|
-
heap[--stack_pointer] = obj;
|
|
713
|
-
return stack_pointer;
|
|
714
|
-
}
|
|
715
|
-
|
|
716
709
|
function debugString(val) {
|
|
717
710
|
// primitive types
|
|
718
711
|
const type = typeof val;
|
|
@@ -778,12 +771,6 @@ function debugString(val) {
|
|
|
778
771
|
return className;
|
|
779
772
|
}
|
|
780
773
|
|
|
781
|
-
function dropObject(idx) {
|
|
782
|
-
if (idx < 1028) return;
|
|
783
|
-
heap[idx] = heap_next;
|
|
784
|
-
heap_next = idx;
|
|
785
|
-
}
|
|
786
|
-
|
|
787
774
|
function getArrayF32FromWasm0(ptr, len) {
|
|
788
775
|
ptr = ptr >>> 0;
|
|
789
776
|
return getFloat32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
|
|
@@ -913,21 +900,15 @@ function getUint8ArrayMemory0() {
|
|
|
913
900
|
return cachedUint8ArrayMemory0;
|
|
914
901
|
}
|
|
915
902
|
|
|
916
|
-
function getObject(idx) { return heap[idx]; }
|
|
917
|
-
|
|
918
903
|
function handleError(f, args) {
|
|
919
904
|
try {
|
|
920
905
|
return f.apply(this, args);
|
|
921
906
|
} catch (e) {
|
|
922
|
-
|
|
907
|
+
const idx = addToExternrefTable0(e);
|
|
908
|
+
wasm.__wbindgen_exn_store(idx);
|
|
923
909
|
}
|
|
924
910
|
}
|
|
925
911
|
|
|
926
|
-
let heap = new Array(1024).fill(undefined);
|
|
927
|
-
heap.push(undefined, null, true, false);
|
|
928
|
-
|
|
929
|
-
let heap_next = heap.length;
|
|
930
|
-
|
|
931
912
|
function isLikeNone(x) {
|
|
932
913
|
return x === undefined || x === null;
|
|
933
914
|
}
|
|
@@ -969,12 +950,10 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
969
950
|
return ptr;
|
|
970
951
|
}
|
|
971
952
|
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
dropObject(idx);
|
|
977
|
-
return ret;
|
|
953
|
+
function takeFromExternrefTable0(idx) {
|
|
954
|
+
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
955
|
+
wasm.__externref_table_dealloc(idx);
|
|
956
|
+
return value;
|
|
978
957
|
}
|
|
979
958
|
|
|
980
959
|
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
@@ -1021,6 +1000,7 @@ function __wbg_finalize_init(instance, module) {
|
|
|
1021
1000
|
cachedUint16ArrayMemory0 = null;
|
|
1022
1001
|
cachedUint32ArrayMemory0 = null;
|
|
1023
1002
|
cachedUint8ArrayMemory0 = null;
|
|
1003
|
+
wasm.__wbindgen_start();
|
|
1024
1004
|
return wasm;
|
|
1025
1005
|
}
|
|
1026
1006
|
|
package/basedpl_wasm_bg.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "basedpl",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.42",
|
|
4
4
|
"description": "BasedPL, the Based-array Programming Language, is an APL-derived array language, borrowing ideas from J and BQN, with an emphasis on simple, consistent notation.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|