@utoo/web 1.2.0-rc.9 → 1.2.1
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/README.md +1 -1
- package/esm/loaderWorker.js +1 -1
- package/esm/project/ForkedProject.d.ts +2 -1
- package/esm/project/ForkedProject.js +4 -1
- package/esm/project/InternalProject.d.ts +2 -1
- package/esm/project/InternalProject.js +11 -8
- package/esm/project/Project.d.ts +2 -1
- package/esm/project/Project.js +7 -4
- package/esm/types.d.ts +5 -0
- package/esm/utoo/index.d.ts +76 -25
- package/esm/utoo/index.js +723 -622
- package/esm/utoo/index_bg.wasm +0 -0
- package/esm/webpackLoaders/cjs.js +4 -32
- package/esm/webpackLoaders/loaderWorkerPool.js +1 -20
- package/esm/webpackLoaders/polyfills/fsPolyfill.js +56 -45
- package/esm/webpackLoaders/types.d.ts +0 -1
- package/esm/webpackLoaders/worker.js +0 -7
- package/package.json +6 -6
- package/esm/8f9533ebd1c6543b5d26.wasm +0 -0
- package/esm/utils/sabcom.d.ts +0 -61
- package/esm/utils/sabcom.js +0 -203
package/esm/utoo/index.js
CHANGED
|
@@ -1,31 +1,4 @@
|
|
|
1
1
|
let wasm;
|
|
2
|
-
let cachedUint8ArrayMemory0 = null;
|
|
3
|
-
function getUint8ArrayMemory0() {
|
|
4
|
-
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.buffer !== wasm.memory.buffer) {
|
|
5
|
-
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
6
|
-
}
|
|
7
|
-
return cachedUint8ArrayMemory0;
|
|
8
|
-
}
|
|
9
|
-
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
10
|
-
cachedTextDecoder.decode();
|
|
11
|
-
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
12
|
-
let numBytesDecoded = 0;
|
|
13
|
-
function decodeText(ptr, len) {
|
|
14
|
-
numBytesDecoded += len;
|
|
15
|
-
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
16
|
-
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
17
|
-
cachedTextDecoder.decode();
|
|
18
|
-
numBytesDecoded = len;
|
|
19
|
-
}
|
|
20
|
-
return cachedTextDecoder.decode(getUint8ArrayMemory0().slice(ptr, ptr + len));
|
|
21
|
-
}
|
|
22
|
-
function getStringFromWasm0(ptr, len) {
|
|
23
|
-
ptr = ptr >>> 0;
|
|
24
|
-
return decodeText(ptr, len);
|
|
25
|
-
}
|
|
26
|
-
let heap = new Array(128).fill(undefined);
|
|
27
|
-
heap.push(undefined, null, true, false);
|
|
28
|
-
let heap_next = heap.length;
|
|
29
2
|
function addHeapObject(obj) {
|
|
30
3
|
if (heap_next === heap.length)
|
|
31
4
|
heap.push(heap.length + 1);
|
|
@@ -34,81 +7,20 @@ function addHeapObject(obj) {
|
|
|
34
7
|
heap[idx] = obj;
|
|
35
8
|
return idx;
|
|
36
9
|
}
|
|
37
|
-
function
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
41
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
42
|
-
view.set(buf);
|
|
43
|
-
return {
|
|
44
|
-
read: arg.length,
|
|
45
|
-
written: buf.length
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
function passStringToWasm0(arg, malloc, realloc) {
|
|
49
|
-
if (realloc === undefined) {
|
|
50
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
51
|
-
const ptr = malloc(buf.length, 1) >>> 0;
|
|
52
|
-
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
53
|
-
WASM_VECTOR_LEN = buf.length;
|
|
54
|
-
return ptr;
|
|
55
|
-
}
|
|
56
|
-
let len = arg.length;
|
|
57
|
-
let ptr = malloc(len, 1) >>> 0;
|
|
58
|
-
const mem = getUint8ArrayMemory0();
|
|
59
|
-
let offset = 0;
|
|
60
|
-
for (; offset < len; offset++) {
|
|
61
|
-
const code = arg.charCodeAt(offset);
|
|
62
|
-
if (code > 0x7F)
|
|
63
|
-
break;
|
|
64
|
-
mem[ptr + offset] = code;
|
|
65
|
-
}
|
|
66
|
-
if (offset !== len) {
|
|
67
|
-
if (offset !== 0) {
|
|
68
|
-
arg = arg.slice(offset);
|
|
69
|
-
}
|
|
70
|
-
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
71
|
-
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
72
|
-
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
73
|
-
offset += ret.written;
|
|
74
|
-
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
75
|
-
}
|
|
76
|
-
WASM_VECTOR_LEN = offset;
|
|
77
|
-
return ptr;
|
|
78
|
-
}
|
|
79
|
-
let cachedDataViewMemory0 = null;
|
|
80
|
-
function getDataViewMemory0() {
|
|
81
|
-
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer !== wasm.memory.buffer) {
|
|
82
|
-
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
83
|
-
}
|
|
84
|
-
return cachedDataViewMemory0;
|
|
85
|
-
}
|
|
86
|
-
function handleError(f, args) {
|
|
87
|
-
try {
|
|
88
|
-
return f.apply(this, args);
|
|
89
|
-
}
|
|
90
|
-
catch (e) {
|
|
91
|
-
wasm.__wbindgen_export_3(addHeapObject(e));
|
|
10
|
+
function _assertClass(instance, klass) {
|
|
11
|
+
if (!(instance instanceof klass)) {
|
|
12
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
92
13
|
}
|
|
93
14
|
}
|
|
94
|
-
function
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
return;
|
|
100
|
-
heap[idx] = heap_next;
|
|
101
|
-
heap_next = idx;
|
|
102
|
-
}
|
|
103
|
-
function takeObject(idx) {
|
|
104
|
-
const ret = getObject(idx);
|
|
105
|
-
dropObject(idx);
|
|
106
|
-
return ret;
|
|
107
|
-
}
|
|
108
|
-
function getArrayU8FromWasm0(ptr, len) {
|
|
109
|
-
ptr = ptr >>> 0;
|
|
110
|
-
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
15
|
+
function addBorrowedObject(obj) {
|
|
16
|
+
if (stack_pointer == 1)
|
|
17
|
+
throw new Error('out of js stack');
|
|
18
|
+
heap[--stack_pointer] = obj;
|
|
19
|
+
return stack_pointer;
|
|
111
20
|
}
|
|
21
|
+
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
22
|
+
? { register: () => { }, unregister: () => { } }
|
|
23
|
+
: new FinalizationRegistry(state => state.dtor(state.a, state.b));
|
|
112
24
|
function debugString(val) {
|
|
113
25
|
// primitive types
|
|
114
26
|
const type = typeof val;
|
|
@@ -177,152 +89,191 @@ function debugString(val) {
|
|
|
177
89
|
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
178
90
|
return className;
|
|
179
91
|
}
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
92
|
+
function dropObject(idx) {
|
|
93
|
+
if (idx < 132)
|
|
94
|
+
return;
|
|
95
|
+
heap[idx] = heap_next;
|
|
96
|
+
heap_next = idx;
|
|
97
|
+
}
|
|
98
|
+
function getArrayJsValueFromWasm0(ptr, len) {
|
|
99
|
+
ptr = ptr >>> 0;
|
|
100
|
+
const mem = getDataViewMemory0();
|
|
101
|
+
const result = [];
|
|
102
|
+
for (let i = ptr; i < ptr + 4 * len; i += 4) {
|
|
103
|
+
result.push(takeObject(mem.getUint32(i, true)));
|
|
104
|
+
}
|
|
105
|
+
return result;
|
|
106
|
+
}
|
|
107
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
108
|
+
ptr = ptr >>> 0;
|
|
109
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
110
|
+
}
|
|
111
|
+
let cachedDataViewMemory0 = null;
|
|
112
|
+
function getDataViewMemory0() {
|
|
113
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer !== wasm.memory.buffer) {
|
|
114
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
115
|
+
}
|
|
116
|
+
return cachedDataViewMemory0;
|
|
117
|
+
}
|
|
118
|
+
function getStringFromWasm0(ptr, len) {
|
|
119
|
+
ptr = ptr >>> 0;
|
|
120
|
+
return decodeText(ptr, len);
|
|
121
|
+
}
|
|
122
|
+
let cachedUint8ArrayMemory0 = null;
|
|
123
|
+
function getUint8ArrayMemory0() {
|
|
124
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.buffer !== wasm.memory.buffer) {
|
|
125
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
126
|
+
}
|
|
127
|
+
return cachedUint8ArrayMemory0;
|
|
128
|
+
}
|
|
129
|
+
function getObject(idx) { return heap[idx]; }
|
|
130
|
+
function handleError(f, args) {
|
|
131
|
+
try {
|
|
132
|
+
return f.apply(this, args);
|
|
133
|
+
}
|
|
134
|
+
catch (e) {
|
|
135
|
+
wasm.__wbindgen_export3(addHeapObject(e));
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
let heap = new Array(128).fill(undefined);
|
|
139
|
+
heap.push(undefined, null, true, false);
|
|
140
|
+
let heap_next = heap.length;
|
|
141
|
+
function isLikeNone(x) {
|
|
142
|
+
return x === undefined || x === null;
|
|
143
|
+
}
|
|
144
|
+
function makeClosure(arg0, arg1, dtor, f) {
|
|
186
145
|
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
187
146
|
const real = (...args) => {
|
|
188
147
|
// First up with a closure we increment the internal reference
|
|
189
148
|
// count. This ensures that the Rust closure environment won't
|
|
190
149
|
// be deallocated while we're invoking it.
|
|
191
150
|
state.cnt++;
|
|
192
|
-
const a = state.a;
|
|
193
|
-
state.a = 0;
|
|
194
151
|
try {
|
|
195
|
-
return f(a, state.b, ...args);
|
|
152
|
+
return f(state.a, state.b, ...args);
|
|
196
153
|
}
|
|
197
154
|
finally {
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
155
|
+
real._wbg_cb_unref();
|
|
156
|
+
}
|
|
157
|
+
};
|
|
158
|
+
real._wbg_cb_unref = () => {
|
|
159
|
+
if (--state.cnt === 0) {
|
|
160
|
+
state.dtor(state.a, state.b);
|
|
161
|
+
state.a = 0;
|
|
162
|
+
CLOSURE_DTORS.unregister(state);
|
|
205
163
|
}
|
|
206
164
|
};
|
|
207
|
-
real.original = state;
|
|
208
165
|
CLOSURE_DTORS.register(real, state, state);
|
|
209
166
|
return real;
|
|
210
167
|
}
|
|
211
|
-
function
|
|
168
|
+
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
212
169
|
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
213
170
|
const real = (...args) => {
|
|
214
171
|
// First up with a closure we increment the internal reference
|
|
215
172
|
// count. This ensures that the Rust closure environment won't
|
|
216
173
|
// be deallocated while we're invoking it.
|
|
217
174
|
state.cnt++;
|
|
175
|
+
const a = state.a;
|
|
176
|
+
state.a = 0;
|
|
218
177
|
try {
|
|
219
|
-
return f(
|
|
178
|
+
return f(a, state.b, ...args);
|
|
220
179
|
}
|
|
221
180
|
finally {
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
181
|
+
state.a = a;
|
|
182
|
+
real._wbg_cb_unref();
|
|
183
|
+
}
|
|
184
|
+
};
|
|
185
|
+
real._wbg_cb_unref = () => {
|
|
186
|
+
if (--state.cnt === 0) {
|
|
187
|
+
state.dtor(state.a, state.b);
|
|
188
|
+
state.a = 0;
|
|
189
|
+
CLOSURE_DTORS.unregister(state);
|
|
227
190
|
}
|
|
228
191
|
};
|
|
229
|
-
real.original = state;
|
|
230
192
|
CLOSURE_DTORS.register(real, state, state);
|
|
231
193
|
return real;
|
|
232
194
|
}
|
|
233
|
-
function
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
195
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
196
|
+
if (realloc === undefined) {
|
|
197
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
198
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
199
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
200
|
+
WASM_VECTOR_LEN = buf.length;
|
|
201
|
+
return ptr;
|
|
239
202
|
}
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
203
|
+
let len = arg.length;
|
|
204
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
205
|
+
const mem = getUint8ArrayMemory0();
|
|
206
|
+
let offset = 0;
|
|
207
|
+
for (; offset < len; offset++) {
|
|
208
|
+
const code = arg.charCodeAt(offset);
|
|
209
|
+
if (code > 0x7F)
|
|
210
|
+
break;
|
|
211
|
+
mem[ptr + offset] = code;
|
|
245
212
|
}
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
* @returns {Promise<void>}
|
|
258
|
-
*/
|
|
259
|
-
export function sendTaskMessage(message) {
|
|
260
|
-
const ret = wasm.sendTaskMessage(addHeapObject(message));
|
|
261
|
-
return takeObject(ret);
|
|
262
|
-
}
|
|
263
|
-
/**
|
|
264
|
-
* @param {string} filter
|
|
265
|
-
*/
|
|
266
|
-
export function init_log_filter(filter) {
|
|
267
|
-
const ptr0 = passStringToWasm0(filter, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
|
|
268
|
-
const len0 = WASM_VECTOR_LEN;
|
|
269
|
-
wasm.init_log_filter(ptr0, len0);
|
|
270
|
-
}
|
|
271
|
-
export function init_pack() {
|
|
272
|
-
wasm.init_pack();
|
|
273
|
-
}
|
|
274
|
-
function passArray8ToWasm0(arg, malloc) {
|
|
275
|
-
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
276
|
-
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
277
|
-
WASM_VECTOR_LEN = arg.length;
|
|
213
|
+
if (offset !== len) {
|
|
214
|
+
if (offset !== 0) {
|
|
215
|
+
arg = arg.slice(offset);
|
|
216
|
+
}
|
|
217
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
218
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
219
|
+
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
220
|
+
offset += ret.written;
|
|
221
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
222
|
+
}
|
|
223
|
+
WASM_VECTOR_LEN = offset;
|
|
278
224
|
return ptr;
|
|
279
225
|
}
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
226
|
+
let stack_pointer = 128;
|
|
227
|
+
function takeObject(idx) {
|
|
228
|
+
const ret = getObject(idx);
|
|
229
|
+
dropObject(idx);
|
|
230
|
+
return ret;
|
|
285
231
|
}
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
232
|
+
let cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : undefined);
|
|
233
|
+
if (cachedTextDecoder)
|
|
234
|
+
cachedTextDecoder.decode();
|
|
235
|
+
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
236
|
+
let numBytesDecoded = 0;
|
|
237
|
+
function decodeText(ptr, len) {
|
|
238
|
+
numBytesDecoded += len;
|
|
239
|
+
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
240
|
+
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
241
|
+
cachedTextDecoder.decode();
|
|
242
|
+
numBytesDecoded = len;
|
|
243
|
+
}
|
|
244
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().slice(ptr, ptr + len));
|
|
292
245
|
}
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
246
|
+
const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder() : undefined);
|
|
247
|
+
if (cachedTextEncoder) {
|
|
248
|
+
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
249
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
250
|
+
view.set(buf);
|
|
251
|
+
return {
|
|
252
|
+
read: arg.length,
|
|
253
|
+
written: buf.length
|
|
254
|
+
};
|
|
255
|
+
};
|
|
299
256
|
}
|
|
300
|
-
|
|
301
|
-
|
|
257
|
+
let WASM_VECTOR_LEN = 0;
|
|
258
|
+
function __wasm_bindgen_func_elem_29449(arg0, arg1) {
|
|
259
|
+
wasm.__wasm_bindgen_func_elem_29449(arg0, arg1);
|
|
302
260
|
}
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
if (stack_pointer == 1)
|
|
306
|
-
throw new Error('out of js stack');
|
|
307
|
-
heap[--stack_pointer] = obj;
|
|
308
|
-
return stack_pointer;
|
|
261
|
+
function __wasm_bindgen_func_elem_152888(arg0, arg1, arg2) {
|
|
262
|
+
wasm.__wasm_bindgen_func_elem_152888(arg0, arg1, addHeapObject(arg2));
|
|
309
263
|
}
|
|
310
|
-
function
|
|
264
|
+
function __wasm_bindgen_func_elem_152627(arg0, arg1, arg2) {
|
|
265
|
+
wasm.__wasm_bindgen_func_elem_152627(arg0, arg1, addHeapObject(arg2));
|
|
266
|
+
}
|
|
267
|
+
function __wasm_bindgen_func_elem_152943(arg0, arg1, arg2) {
|
|
311
268
|
try {
|
|
312
|
-
wasm.
|
|
269
|
+
wasm.__wasm_bindgen_func_elem_152943(arg0, arg1, addBorrowedObject(arg2));
|
|
313
270
|
}
|
|
314
271
|
finally {
|
|
315
272
|
heap[stack_pointer++] = undefined;
|
|
316
273
|
}
|
|
317
274
|
}
|
|
318
|
-
function
|
|
319
|
-
wasm.
|
|
320
|
-
}
|
|
321
|
-
function __wbg_adapter_27(arg0, arg1, arg2) {
|
|
322
|
-
wasm.__wbindgen_export_9(arg0, arg1, addHeapObject(arg2));
|
|
323
|
-
}
|
|
324
|
-
function __wbg_adapter_94(arg0, arg1, arg2, arg3) {
|
|
325
|
-
wasm.__wbindgen_export_10(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
275
|
+
function __wasm_bindgen_func_elem_3436(arg0, arg1, arg2, arg3) {
|
|
276
|
+
wasm.__wasm_bindgen_func_elem_3436(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
326
277
|
}
|
|
327
278
|
const __wbindgen_enum_DirEntryType = ["file", "directory"];
|
|
328
279
|
const __wbindgen_enum_FileSystemChangeRecordType = ["appeared", "disappeared", "errored", "modified", "moved", "unknown"];
|
|
@@ -334,6 +285,27 @@ const __wbindgen_enum_WorkerType = ["classic", "module"];
|
|
|
334
285
|
const CreateSyncAccessHandleOptionsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
335
286
|
? { register: () => { }, unregister: () => { } }
|
|
336
287
|
: new FinalizationRegistry(ptr => wasm.__wbg_createsyncaccesshandleoptions_free(ptr >>> 0, 1));
|
|
288
|
+
const DirEntryFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
289
|
+
? { register: () => { }, unregister: () => { } }
|
|
290
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_direntry_free(ptr >>> 0, 1));
|
|
291
|
+
const MetadataFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
292
|
+
? { register: () => { }, unregister: () => { } }
|
|
293
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_metadata_free(ptr >>> 0, 1));
|
|
294
|
+
const ProjectFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
295
|
+
? { register: () => { }, unregister: () => { } }
|
|
296
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_project_free(ptr >>> 0, 1));
|
|
297
|
+
const WasmTaskMessageFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
298
|
+
? { register: () => { }, unregister: () => { } }
|
|
299
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmtaskmessage_free(ptr >>> 0, 1));
|
|
300
|
+
const WebWorkerCreationFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
301
|
+
? { register: () => { }, unregister: () => { } }
|
|
302
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_webworkercreation_free(ptr >>> 0, 1));
|
|
303
|
+
const WebWorkerOptionsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
304
|
+
? { register: () => { }, unregister: () => { } }
|
|
305
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_webworkeroptions_free(ptr >>> 0, 1));
|
|
306
|
+
const WebWorkerTerminationFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
307
|
+
? { register: () => { }, unregister: () => { } }
|
|
308
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_webworkertermination_free(ptr >>> 0, 1));
|
|
337
309
|
export class CreateSyncAccessHandleOptions {
|
|
338
310
|
static __wrap(ptr) {
|
|
339
311
|
ptr = ptr >>> 0;
|
|
@@ -355,9 +327,6 @@ export class CreateSyncAccessHandleOptions {
|
|
|
355
327
|
}
|
|
356
328
|
if (Symbol.dispose)
|
|
357
329
|
CreateSyncAccessHandleOptions.prototype[Symbol.dispose] = CreateSyncAccessHandleOptions.prototype.free;
|
|
358
|
-
const DirEntryFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
359
|
-
? { register: () => { }, unregister: () => { } }
|
|
360
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_direntry_free(ptr >>> 0, 1));
|
|
361
330
|
export class DirEntry {
|
|
362
331
|
static __wrap(ptr) {
|
|
363
332
|
ptr = ptr >>> 0;
|
|
@@ -402,14 +371,14 @@ export class DirEntry {
|
|
|
402
371
|
}
|
|
403
372
|
finally {
|
|
404
373
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
405
|
-
wasm.
|
|
374
|
+
wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
|
|
406
375
|
}
|
|
407
376
|
}
|
|
408
377
|
/**
|
|
409
378
|
* @param {string} arg0
|
|
410
379
|
*/
|
|
411
380
|
set name(arg0) {
|
|
412
|
-
const ptr0 = passStringToWasm0(arg0, wasm.
|
|
381
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
413
382
|
const len0 = WASM_VECTOR_LEN;
|
|
414
383
|
wasm.__wbg_set_direntry_name(this.__wbg_ptr, ptr0, len0);
|
|
415
384
|
}
|
|
@@ -429,9 +398,6 @@ export class DirEntry {
|
|
|
429
398
|
}
|
|
430
399
|
if (Symbol.dispose)
|
|
431
400
|
DirEntry.prototype[Symbol.dispose] = DirEntry.prototype.free;
|
|
432
|
-
const MetadataFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
433
|
-
? { register: () => { }, unregister: () => { } }
|
|
434
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_metadata_free(ptr >>> 0, 1));
|
|
435
401
|
export class Metadata {
|
|
436
402
|
static __wrap(ptr) {
|
|
437
403
|
ptr = ptr >>> 0;
|
|
@@ -488,9 +454,6 @@ export class Metadata {
|
|
|
488
454
|
}
|
|
489
455
|
if (Symbol.dispose)
|
|
490
456
|
Metadata.prototype[Symbol.dispose] = Metadata.prototype.free;
|
|
491
|
-
const ProjectFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
492
|
-
? { register: () => { }, unregister: () => { } }
|
|
493
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_project_free(ptr >>> 0, 1));
|
|
494
457
|
export class Project {
|
|
495
458
|
__destroy_into_raw() {
|
|
496
459
|
const ptr = this.__wbg_ptr;
|
|
@@ -507,7 +470,7 @@ export class Project {
|
|
|
507
470
|
* @returns {Promise<void>}
|
|
508
471
|
*/
|
|
509
472
|
static createDir(path) {
|
|
510
|
-
const ptr0 = passStringToWasm0(path, wasm.
|
|
473
|
+
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
511
474
|
const len0 = WASM_VECTOR_LEN;
|
|
512
475
|
const ret = wasm.project_createDir(ptr0, len0);
|
|
513
476
|
return takeObject(ret);
|
|
@@ -518,17 +481,37 @@ export class Project {
|
|
|
518
481
|
* @returns {Promise<void>}
|
|
519
482
|
*/
|
|
520
483
|
static removeDir(path, recursive) {
|
|
521
|
-
const ptr0 = passStringToWasm0(path, wasm.
|
|
484
|
+
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
522
485
|
const len0 = WASM_VECTOR_LEN;
|
|
523
486
|
const ret = wasm.project_removeDir(ptr0, len0, recursive);
|
|
524
487
|
return takeObject(ret);
|
|
525
488
|
}
|
|
489
|
+
/**
|
|
490
|
+
* @param {string} path
|
|
491
|
+
* @param {Uint8Array} content
|
|
492
|
+
*/
|
|
493
|
+
static writeSync(path, content) {
|
|
494
|
+
try {
|
|
495
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
496
|
+
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
497
|
+
const len0 = WASM_VECTOR_LEN;
|
|
498
|
+
wasm.project_writeSync(retptr, ptr0, len0, addHeapObject(content));
|
|
499
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
500
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
501
|
+
if (r1) {
|
|
502
|
+
throw takeObject(r0);
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
finally {
|
|
506
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
507
|
+
}
|
|
508
|
+
}
|
|
526
509
|
/**
|
|
527
510
|
* @param {string} path
|
|
528
511
|
* @returns {Promise<void>}
|
|
529
512
|
*/
|
|
530
513
|
static removeFile(path) {
|
|
531
|
-
const ptr0 = passStringToWasm0(path, wasm.
|
|
514
|
+
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
532
515
|
const len0 = WASM_VECTOR_LEN;
|
|
533
516
|
const ret = wasm.project_removeFile(ptr0, len0);
|
|
534
517
|
return takeObject(ret);
|
|
@@ -539,19 +522,88 @@ export class Project {
|
|
|
539
522
|
* @returns {Promise<void>}
|
|
540
523
|
*/
|
|
541
524
|
static writeString(path, content) {
|
|
542
|
-
const ptr0 = passStringToWasm0(path, wasm.
|
|
525
|
+
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
543
526
|
const len0 = WASM_VECTOR_LEN;
|
|
544
|
-
const ptr1 = passStringToWasm0(content, wasm.
|
|
527
|
+
const ptr1 = passStringToWasm0(content, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
545
528
|
const len1 = WASM_VECTOR_LEN;
|
|
546
529
|
const ret = wasm.project_writeString(ptr0, len0, ptr1, len1);
|
|
547
530
|
return takeObject(ret);
|
|
548
531
|
}
|
|
532
|
+
/**
|
|
533
|
+
* @param {string} path
|
|
534
|
+
* @returns {Metadata}
|
|
535
|
+
*/
|
|
536
|
+
static metadataSync(path) {
|
|
537
|
+
try {
|
|
538
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
539
|
+
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
540
|
+
const len0 = WASM_VECTOR_LEN;
|
|
541
|
+
wasm.project_metadataSync(retptr, ptr0, len0);
|
|
542
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
543
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
544
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
545
|
+
if (r2) {
|
|
546
|
+
throw takeObject(r1);
|
|
547
|
+
}
|
|
548
|
+
return Metadata.__wrap(r0);
|
|
549
|
+
}
|
|
550
|
+
finally {
|
|
551
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
/**
|
|
555
|
+
* @param {string} path
|
|
556
|
+
* @returns {DirEntry[]}
|
|
557
|
+
*/
|
|
558
|
+
static readDirSync(path) {
|
|
559
|
+
try {
|
|
560
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
561
|
+
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
562
|
+
const len0 = WASM_VECTOR_LEN;
|
|
563
|
+
wasm.project_readDirSync(retptr, ptr0, len0);
|
|
564
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
565
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
566
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
567
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
568
|
+
if (r3) {
|
|
569
|
+
throw takeObject(r2);
|
|
570
|
+
}
|
|
571
|
+
var v2 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
572
|
+
wasm.__wbindgen_export4(r0, r1 * 4, 4);
|
|
573
|
+
return v2;
|
|
574
|
+
}
|
|
575
|
+
finally {
|
|
576
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
/**
|
|
580
|
+
* @param {string} src
|
|
581
|
+
* @param {string} dst
|
|
582
|
+
*/
|
|
583
|
+
static copyFileSync(src, dst) {
|
|
584
|
+
try {
|
|
585
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
586
|
+
const ptr0 = passStringToWasm0(src, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
587
|
+
const len0 = WASM_VECTOR_LEN;
|
|
588
|
+
const ptr1 = passStringToWasm0(dst, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
589
|
+
const len1 = WASM_VECTOR_LEN;
|
|
590
|
+
wasm.project_copyFileSync(retptr, ptr0, len0, ptr1, len1);
|
|
591
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
592
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
593
|
+
if (r1) {
|
|
594
|
+
throw takeObject(r0);
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
finally {
|
|
598
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
599
|
+
}
|
|
600
|
+
}
|
|
549
601
|
/**
|
|
550
602
|
* @param {string} path
|
|
551
603
|
* @returns {Promise<void>}
|
|
552
604
|
*/
|
|
553
605
|
static createDirAll(path) {
|
|
554
|
-
const ptr0 = passStringToWasm0(path, wasm.
|
|
606
|
+
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
555
607
|
const len0 = WASM_VECTOR_LEN;
|
|
556
608
|
const ret = wasm.project_createDirAll(ptr0, len0);
|
|
557
609
|
return takeObject(ret);
|
|
@@ -561,11 +613,88 @@ export class Project {
|
|
|
561
613
|
* @returns {Promise<string>}
|
|
562
614
|
*/
|
|
563
615
|
static readToString(path) {
|
|
564
|
-
const ptr0 = passStringToWasm0(path, wasm.
|
|
616
|
+
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
565
617
|
const len0 = WASM_VECTOR_LEN;
|
|
566
618
|
const ret = wasm.project_readToString(ptr0, len0);
|
|
567
619
|
return takeObject(ret);
|
|
568
620
|
}
|
|
621
|
+
/**
|
|
622
|
+
* @param {string} path
|
|
623
|
+
*/
|
|
624
|
+
static createDirSync(path) {
|
|
625
|
+
try {
|
|
626
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
627
|
+
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
628
|
+
const len0 = WASM_VECTOR_LEN;
|
|
629
|
+
wasm.project_createDirSync(retptr, ptr0, len0);
|
|
630
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
631
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
632
|
+
if (r1) {
|
|
633
|
+
throw takeObject(r0);
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
finally {
|
|
637
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
/**
|
|
641
|
+
* @param {string} path
|
|
642
|
+
* @param {boolean} recursive
|
|
643
|
+
*/
|
|
644
|
+
static removeDirSync(path, recursive) {
|
|
645
|
+
try {
|
|
646
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
647
|
+
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
648
|
+
const len0 = WASM_VECTOR_LEN;
|
|
649
|
+
wasm.project_removeDirSync(retptr, ptr0, len0, recursive);
|
|
650
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
651
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
652
|
+
if (r1) {
|
|
653
|
+
throw takeObject(r0);
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
finally {
|
|
657
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
/**
|
|
661
|
+
* @param {string} path
|
|
662
|
+
*/
|
|
663
|
+
static removeFileSync(path) {
|
|
664
|
+
try {
|
|
665
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
666
|
+
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
667
|
+
const len0 = WASM_VECTOR_LEN;
|
|
668
|
+
wasm.project_removeFileSync(retptr, ptr0, len0);
|
|
669
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
670
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
671
|
+
if (r1) {
|
|
672
|
+
throw takeObject(r0);
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
finally {
|
|
676
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
/**
|
|
680
|
+
* @param {string} path
|
|
681
|
+
*/
|
|
682
|
+
static createDirAllSync(path) {
|
|
683
|
+
try {
|
|
684
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
685
|
+
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
686
|
+
const len0 = WASM_VECTOR_LEN;
|
|
687
|
+
wasm.project_createDirAllSync(retptr, ptr0, len0);
|
|
688
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
689
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
690
|
+
if (r1) {
|
|
691
|
+
throw takeObject(r0);
|
|
692
|
+
}
|
|
693
|
+
}
|
|
694
|
+
finally {
|
|
695
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
696
|
+
}
|
|
697
|
+
}
|
|
569
698
|
/**
|
|
570
699
|
* @returns {string}
|
|
571
700
|
*/
|
|
@@ -583,36 +712,42 @@ export class Project {
|
|
|
583
712
|
}
|
|
584
713
|
finally {
|
|
585
714
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
586
|
-
wasm.
|
|
715
|
+
wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
|
|
587
716
|
}
|
|
588
717
|
}
|
|
718
|
+
/**
|
|
719
|
+
* Generate package-lock.json by resolving dependencies.
|
|
720
|
+
*
|
|
721
|
+
* # Arguments
|
|
722
|
+
* * `registry` - Optional registry URL. If None, uses npmmirror.
|
|
723
|
+
* - "https://registry.npmmirror.com" - supports semver queries (faster)
|
|
724
|
+
* - "https://registry.npmjs.org" - official npm registry (slower, fetches full manifest)
|
|
725
|
+
* * `concurrency` - Optional concurrency limit (defaults to 20)
|
|
726
|
+
* @param {string | null} [registry]
|
|
727
|
+
* @param {number | null} [concurrency]
|
|
728
|
+
* @returns {Promise<string>}
|
|
729
|
+
*/
|
|
730
|
+
static deps(registry, concurrency) {
|
|
731
|
+
var ptr0 = isLikeNone(registry) ? 0 : passStringToWasm0(registry, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
732
|
+
var len0 = WASM_VECTOR_LEN;
|
|
733
|
+
const ret = wasm.project_deps(ptr0, len0, isLikeNone(concurrency) ? 0x100000001 : (concurrency) >>> 0);
|
|
734
|
+
return takeObject(ret);
|
|
735
|
+
}
|
|
589
736
|
/**
|
|
590
737
|
* Create a tar.gz archive and return bytes (no file I/O)
|
|
591
738
|
* This is useful for main thread execution without OPFS access
|
|
592
739
|
* @param {any} files
|
|
593
|
-
* @returns {Uint8Array}
|
|
740
|
+
* @returns {Promise<Uint8Array>}
|
|
594
741
|
*/
|
|
595
742
|
static gzip(files) {
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
wasm.project_gzip(retptr, addHeapObject(files));
|
|
599
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
600
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
601
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
602
|
-
if (r2) {
|
|
603
|
-
throw takeObject(r1);
|
|
604
|
-
}
|
|
605
|
-
return takeObject(r0);
|
|
606
|
-
}
|
|
607
|
-
finally {
|
|
608
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
609
|
-
}
|
|
743
|
+
const ret = wasm.project_gzip(addHeapObject(files));
|
|
744
|
+
return takeObject(ret);
|
|
610
745
|
}
|
|
611
746
|
/**
|
|
612
747
|
* @param {string} thread_url
|
|
613
748
|
*/
|
|
614
749
|
static init(thread_url) {
|
|
615
|
-
const ptr0 = passStringToWasm0(thread_url, wasm.
|
|
750
|
+
const ptr0 = passStringToWasm0(thread_url, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
616
751
|
const len0 = WASM_VECTOR_LEN;
|
|
617
752
|
wasm.project_init(ptr0, len0);
|
|
618
753
|
}
|
|
@@ -621,7 +756,7 @@ export class Project {
|
|
|
621
756
|
* @returns {Promise<Uint8Array>}
|
|
622
757
|
*/
|
|
623
758
|
static read(path) {
|
|
624
|
-
const ptr0 = passStringToWasm0(path, wasm.
|
|
759
|
+
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
625
760
|
const len0 = WASM_VECTOR_LEN;
|
|
626
761
|
const ret = wasm.project_read(ptr0, len0);
|
|
627
762
|
return takeObject(ret);
|
|
@@ -639,11 +774,9 @@ export class Project {
|
|
|
639
774
|
* @returns {Promise<void>}
|
|
640
775
|
*/
|
|
641
776
|
static write(path, content) {
|
|
642
|
-
const ptr0 = passStringToWasm0(path, wasm.
|
|
777
|
+
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
643
778
|
const len0 = WASM_VECTOR_LEN;
|
|
644
|
-
const
|
|
645
|
-
const len1 = WASM_VECTOR_LEN;
|
|
646
|
-
const ret = wasm.project_write(ptr0, len0, ptr1, len1);
|
|
779
|
+
const ret = wasm.project_write(ptr0, len0, addHeapObject(content));
|
|
647
780
|
return takeObject(ret);
|
|
648
781
|
}
|
|
649
782
|
/**
|
|
@@ -652,7 +785,7 @@ export class Project {
|
|
|
652
785
|
* @returns {Promise<void>}
|
|
653
786
|
*/
|
|
654
787
|
static install(package_lock, max_concurrent_downloads) {
|
|
655
|
-
const ptr0 = passStringToWasm0(package_lock, wasm.
|
|
788
|
+
const ptr0 = passStringToWasm0(package_lock, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
656
789
|
const len0 = WASM_VECTOR_LEN;
|
|
657
790
|
const ret = wasm.project_install(ptr0, len0, isLikeNone(max_concurrent_downloads) ? 0x100000001 : (max_concurrent_downloads) >>> 0);
|
|
658
791
|
return takeObject(ret);
|
|
@@ -661,40 +794,25 @@ export class Project {
|
|
|
661
794
|
* @param {string} path
|
|
662
795
|
*/
|
|
663
796
|
static setCwd(path) {
|
|
664
|
-
const ptr0 = passStringToWasm0(path, wasm.
|
|
797
|
+
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
665
798
|
const len0 = WASM_VECTOR_LEN;
|
|
666
799
|
wasm.project_setCwd(ptr0, len0);
|
|
667
800
|
}
|
|
668
801
|
/**
|
|
669
|
-
* Calculate MD5 hash of byte content
|
|
802
|
+
* Calculate MD5 hash of byte content (async for better thread scheduling)
|
|
670
803
|
* @param {Uint8Array} content
|
|
671
|
-
* @returns {string}
|
|
804
|
+
* @returns {Promise<string>}
|
|
672
805
|
*/
|
|
673
806
|
static sigMd5(content) {
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
try {
|
|
677
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
678
|
-
const ptr0 = passArray8ToWasm0(content, wasm.__wbindgen_export_1);
|
|
679
|
-
const len0 = WASM_VECTOR_LEN;
|
|
680
|
-
wasm.project_sigMd5(retptr, ptr0, len0);
|
|
681
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
682
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
683
|
-
deferred2_0 = r0;
|
|
684
|
-
deferred2_1 = r1;
|
|
685
|
-
return getStringFromWasm0(r0, r1);
|
|
686
|
-
}
|
|
687
|
-
finally {
|
|
688
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
689
|
-
wasm.__wbindgen_export_4(deferred2_0, deferred2_1, 1);
|
|
690
|
-
}
|
|
807
|
+
const ret = wasm.project_sigMd5(addHeapObject(content));
|
|
808
|
+
return takeObject(ret);
|
|
691
809
|
}
|
|
692
810
|
/**
|
|
693
811
|
* @param {string} path
|
|
694
812
|
* @returns {Promise<Metadata>}
|
|
695
813
|
*/
|
|
696
814
|
static metadata(path) {
|
|
697
|
-
const ptr0 = passStringToWasm0(path, wasm.
|
|
815
|
+
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
698
816
|
const len0 = WASM_VECTOR_LEN;
|
|
699
817
|
const ret = wasm.project_metadata(ptr0, len0);
|
|
700
818
|
return takeObject(ret);
|
|
@@ -704,7 +822,7 @@ export class Project {
|
|
|
704
822
|
* @returns {Promise<DirEntry[]>}
|
|
705
823
|
*/
|
|
706
824
|
static readDir(path) {
|
|
707
|
-
const ptr0 = passStringToWasm0(path, wasm.
|
|
825
|
+
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
708
826
|
const len0 = WASM_VECTOR_LEN;
|
|
709
827
|
const ret = wasm.project_readDir(ptr0, len0);
|
|
710
828
|
return takeObject(ret);
|
|
@@ -715,19 +833,38 @@ export class Project {
|
|
|
715
833
|
* @returns {Promise<void>}
|
|
716
834
|
*/
|
|
717
835
|
static copyFile(src, dst) {
|
|
718
|
-
const ptr0 = passStringToWasm0(src, wasm.
|
|
836
|
+
const ptr0 = passStringToWasm0(src, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
719
837
|
const len0 = WASM_VECTOR_LEN;
|
|
720
|
-
const ptr1 = passStringToWasm0(dst, wasm.
|
|
838
|
+
const ptr1 = passStringToWasm0(dst, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
721
839
|
const len1 = WASM_VECTOR_LEN;
|
|
722
840
|
const ret = wasm.project_copyFile(ptr0, len0, ptr1, len1);
|
|
723
841
|
return takeObject(ret);
|
|
724
842
|
}
|
|
843
|
+
/**
|
|
844
|
+
* @param {string} path
|
|
845
|
+
* @returns {Uint8Array}
|
|
846
|
+
*/
|
|
847
|
+
static readSync(path) {
|
|
848
|
+
try {
|
|
849
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
850
|
+
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
851
|
+
const len0 = WASM_VECTOR_LEN;
|
|
852
|
+
wasm.project_readSync(retptr, ptr0, len0);
|
|
853
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
854
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
855
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
856
|
+
if (r2) {
|
|
857
|
+
throw takeObject(r1);
|
|
858
|
+
}
|
|
859
|
+
return takeObject(r0);
|
|
860
|
+
}
|
|
861
|
+
finally {
|
|
862
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
863
|
+
}
|
|
864
|
+
}
|
|
725
865
|
}
|
|
726
866
|
if (Symbol.dispose)
|
|
727
867
|
Project.prototype[Symbol.dispose] = Project.prototype.free;
|
|
728
|
-
const WasmTaskMessageFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
729
|
-
? { register: () => { }, unregister: () => { } }
|
|
730
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmtaskmessage_free(ptr >>> 0, 1));
|
|
731
868
|
export class WasmTaskMessage {
|
|
732
869
|
static __wrap(ptr) {
|
|
733
870
|
ptr = ptr >>> 0;
|
|
@@ -746,6 +883,13 @@ export class WasmTaskMessage {
|
|
|
746
883
|
const ptr = this.__destroy_into_raw();
|
|
747
884
|
wasm.__wbg_wasmtaskmessage_free(ptr, 0);
|
|
748
885
|
}
|
|
886
|
+
/**
|
|
887
|
+
* @returns {Uint8Array}
|
|
888
|
+
*/
|
|
889
|
+
get data() {
|
|
890
|
+
const ret = wasm.wasmtaskmessage_data(this.__wbg_ptr);
|
|
891
|
+
return takeObject(ret);
|
|
892
|
+
}
|
|
749
893
|
/**
|
|
750
894
|
* @returns {number}
|
|
751
895
|
*/
|
|
@@ -759,40 +903,9 @@ export class WasmTaskMessage {
|
|
|
759
903
|
set taskId(arg0) {
|
|
760
904
|
wasm.__wbg_set_wasmtaskmessage_taskId(this.__wbg_ptr, arg0);
|
|
761
905
|
}
|
|
762
|
-
/**
|
|
763
|
-
* @returns {string}
|
|
764
|
-
*/
|
|
765
|
-
get data() {
|
|
766
|
-
let deferred1_0;
|
|
767
|
-
let deferred1_1;
|
|
768
|
-
try {
|
|
769
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
770
|
-
wasm.__wbg_get_wasmtaskmessage_data(retptr, this.__wbg_ptr);
|
|
771
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
772
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
773
|
-
deferred1_0 = r0;
|
|
774
|
-
deferred1_1 = r1;
|
|
775
|
-
return getStringFromWasm0(r0, r1);
|
|
776
|
-
}
|
|
777
|
-
finally {
|
|
778
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
779
|
-
wasm.__wbindgen_export_4(deferred1_0, deferred1_1, 1);
|
|
780
|
-
}
|
|
781
|
-
}
|
|
782
|
-
/**
|
|
783
|
-
* @param {string} arg0
|
|
784
|
-
*/
|
|
785
|
-
set data(arg0) {
|
|
786
|
-
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
|
|
787
|
-
const len0 = WASM_VECTOR_LEN;
|
|
788
|
-
wasm.__wbg_set_wasmtaskmessage_data(this.__wbg_ptr, ptr0, len0);
|
|
789
|
-
}
|
|
790
906
|
}
|
|
791
907
|
if (Symbol.dispose)
|
|
792
908
|
WasmTaskMessage.prototype[Symbol.dispose] = WasmTaskMessage.prototype.free;
|
|
793
|
-
const WebWorkerCreationFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
794
|
-
? { register: () => { }, unregister: () => { } }
|
|
795
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_webworkercreation_free(ptr >>> 0, 1));
|
|
796
909
|
export class WebWorkerCreation {
|
|
797
910
|
static __wrap(ptr) {
|
|
798
911
|
ptr = ptr >>> 0;
|
|
@@ -829,9 +942,6 @@ export class WebWorkerCreation {
|
|
|
829
942
|
}
|
|
830
943
|
if (Symbol.dispose)
|
|
831
944
|
WebWorkerCreation.prototype[Symbol.dispose] = WebWorkerCreation.prototype.free;
|
|
832
|
-
const WebWorkerOptionsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
833
|
-
? { register: () => { }, unregister: () => { } }
|
|
834
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_webworkeroptions_free(ptr >>> 0, 1));
|
|
835
945
|
export class WebWorkerOptions {
|
|
836
946
|
static __wrap(ptr) {
|
|
837
947
|
ptr = ptr >>> 0;
|
|
@@ -858,7 +968,7 @@ export class WebWorkerOptions {
|
|
|
858
968
|
let deferred1_1;
|
|
859
969
|
try {
|
|
860
970
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
861
|
-
wasm.
|
|
971
|
+
wasm.__wbg_get_webworkeroptions_filename(retptr, this.__wbg_ptr);
|
|
862
972
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
863
973
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
864
974
|
deferred1_0 = r0;
|
|
@@ -867,16 +977,16 @@ export class WebWorkerOptions {
|
|
|
867
977
|
}
|
|
868
978
|
finally {
|
|
869
979
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
870
|
-
wasm.
|
|
980
|
+
wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
|
|
871
981
|
}
|
|
872
982
|
}
|
|
873
983
|
/**
|
|
874
984
|
* @param {string} arg0
|
|
875
985
|
*/
|
|
876
986
|
set filename(arg0) {
|
|
877
|
-
const ptr0 = passStringToWasm0(arg0, wasm.
|
|
987
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
878
988
|
const len0 = WASM_VECTOR_LEN;
|
|
879
|
-
wasm.
|
|
989
|
+
wasm.__wbg_set_webworkeroptions_filename(this.__wbg_ptr, ptr0, len0);
|
|
880
990
|
}
|
|
881
991
|
/**
|
|
882
992
|
* @returns {string}
|
|
@@ -895,23 +1005,20 @@ export class WebWorkerOptions {
|
|
|
895
1005
|
}
|
|
896
1006
|
finally {
|
|
897
1007
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
898
|
-
wasm.
|
|
1008
|
+
wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
|
|
899
1009
|
}
|
|
900
1010
|
}
|
|
901
1011
|
/**
|
|
902
1012
|
* @param {string} arg0
|
|
903
1013
|
*/
|
|
904
1014
|
set cwd(arg0) {
|
|
905
|
-
const ptr0 = passStringToWasm0(arg0, wasm.
|
|
1015
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
906
1016
|
const len0 = WASM_VECTOR_LEN;
|
|
907
1017
|
wasm.__wbg_set_webworkeroptions_cwd(this.__wbg_ptr, ptr0, len0);
|
|
908
1018
|
}
|
|
909
1019
|
}
|
|
910
1020
|
if (Symbol.dispose)
|
|
911
1021
|
WebWorkerOptions.prototype[Symbol.dispose] = WebWorkerOptions.prototype.free;
|
|
912
|
-
const WebWorkerTerminationFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
913
|
-
? { register: () => { }, unregister: () => { } }
|
|
914
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_webworkertermination_free(ptr >>> 0, 1));
|
|
915
1022
|
export class WebWorkerTermination {
|
|
916
1023
|
static __wrap(ptr) {
|
|
917
1024
|
ptr = ptr >>> 0;
|
|
@@ -961,6 +1068,53 @@ export class WebWorkerTermination {
|
|
|
961
1068
|
}
|
|
962
1069
|
if (Symbol.dispose)
|
|
963
1070
|
WebWorkerTermination.prototype[Symbol.dispose] = WebWorkerTermination.prototype.free;
|
|
1071
|
+
/**
|
|
1072
|
+
* @param {string} filter
|
|
1073
|
+
*/
|
|
1074
|
+
export function initLogFilter(filter) {
|
|
1075
|
+
const ptr0 = passStringToWasm0(filter, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1076
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1077
|
+
wasm.initLogFilter(ptr0, len0);
|
|
1078
|
+
}
|
|
1079
|
+
export function init_pack() {
|
|
1080
|
+
wasm.init_pack();
|
|
1081
|
+
}
|
|
1082
|
+
/**
|
|
1083
|
+
* @param {number} worker_id
|
|
1084
|
+
* @returns {Promise<WasmTaskMessage>}
|
|
1085
|
+
*/
|
|
1086
|
+
export function recvTaskMessageInWorker(worker_id) {
|
|
1087
|
+
const ret = wasm.recvTaskMessageInWorker(worker_id);
|
|
1088
|
+
return takeObject(ret);
|
|
1089
|
+
}
|
|
1090
|
+
/**
|
|
1091
|
+
* @param {Function} creator
|
|
1092
|
+
* @param {Function} terminator
|
|
1093
|
+
*/
|
|
1094
|
+
export function registerWorkerScheduler(creator, terminator) {
|
|
1095
|
+
wasm.registerWorkerScheduler(addHeapObject(creator), addHeapObject(terminator));
|
|
1096
|
+
}
|
|
1097
|
+
/**
|
|
1098
|
+
* @param {any} message
|
|
1099
|
+
* @returns {Promise<void>}
|
|
1100
|
+
*/
|
|
1101
|
+
export function sendTaskMessage(message) {
|
|
1102
|
+
const ret = wasm.sendTaskMessage(addHeapObject(message));
|
|
1103
|
+
return takeObject(ret);
|
|
1104
|
+
}
|
|
1105
|
+
/**
|
|
1106
|
+
* Entry point for web workers
|
|
1107
|
+
* @param {number} ptr
|
|
1108
|
+
*/
|
|
1109
|
+
export function wasm_thread_entry_point(ptr) {
|
|
1110
|
+
wasm.wasm_thread_entry_point(ptr);
|
|
1111
|
+
}
|
|
1112
|
+
/**
|
|
1113
|
+
* @param {number} worker_id
|
|
1114
|
+
*/
|
|
1115
|
+
export function workerCreated(worker_id) {
|
|
1116
|
+
wasm.workerCreated(worker_id);
|
|
1117
|
+
}
|
|
964
1118
|
const EXPECTED_RESPONSE_TYPES = new Set(['basic', 'cors', 'default']);
|
|
965
1119
|
async function __wbg_load(module, imports) {
|
|
966
1120
|
if (typeof Response === 'function' && module instanceof Response) {
|
|
@@ -991,58 +1145,109 @@ async function __wbg_load(module, imports) {
|
|
|
991
1145
|
}
|
|
992
1146
|
}
|
|
993
1147
|
}
|
|
994
|
-
function __wbg_get_imports() {
|
|
1148
|
+
function __wbg_get_imports(memory) {
|
|
995
1149
|
const imports = {};
|
|
996
1150
|
imports.wbg = {};
|
|
997
|
-
imports.wbg.
|
|
1151
|
+
imports.wbg.__wbg_Error_52673b7de5a0ca89 = function (arg0, arg1) {
|
|
998
1152
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
999
1153
|
return addHeapObject(ret);
|
|
1000
1154
|
};
|
|
1001
|
-
imports.wbg.__wbg_Number_998bea33bd87c3e0 = function (arg0) {
|
|
1002
|
-
const ret = Number(getObject(arg0));
|
|
1003
|
-
return ret;
|
|
1004
|
-
};
|
|
1005
1155
|
imports.wbg.__wbg_String_8f0eb39a4a4c2f66 = function (arg0, arg1) {
|
|
1006
1156
|
const ret = String(getObject(arg1));
|
|
1007
|
-
const ptr1 = passStringToWasm0(ret, wasm.
|
|
1157
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1158
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1159
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1160
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1161
|
+
};
|
|
1162
|
+
imports.wbg.__wbg___wbindgen_debug_string_adfb662ae34724b6 = function (arg0, arg1) {
|
|
1163
|
+
const ret = debugString(getObject(arg1));
|
|
1164
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1008
1165
|
const len1 = WASM_VECTOR_LEN;
|
|
1009
1166
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1010
1167
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1011
1168
|
};
|
|
1012
|
-
imports.wbg.
|
|
1169
|
+
imports.wbg.__wbg___wbindgen_is_function_8d400b8b1af978cd = function (arg0) {
|
|
1170
|
+
const ret = typeof (getObject(arg0)) === 'function';
|
|
1171
|
+
return ret;
|
|
1172
|
+
};
|
|
1173
|
+
imports.wbg.__wbg___wbindgen_is_object_ce774f3490692386 = function (arg0) {
|
|
1174
|
+
const val = getObject(arg0);
|
|
1175
|
+
const ret = typeof (val) === 'object' && val !== null;
|
|
1176
|
+
return ret;
|
|
1177
|
+
};
|
|
1178
|
+
imports.wbg.__wbg___wbindgen_is_string_704ef9c8fc131030 = function (arg0) {
|
|
1179
|
+
const ret = typeof (getObject(arg0)) === 'string';
|
|
1180
|
+
return ret;
|
|
1181
|
+
};
|
|
1182
|
+
imports.wbg.__wbg___wbindgen_is_undefined_f6b95eab589e0269 = function (arg0) {
|
|
1183
|
+
const ret = getObject(arg0) === undefined;
|
|
1184
|
+
return ret;
|
|
1185
|
+
};
|
|
1186
|
+
imports.wbg.__wbg___wbindgen_memory_a342e963fbcabd68 = function () {
|
|
1187
|
+
const ret = wasm.memory;
|
|
1188
|
+
return addHeapObject(ret);
|
|
1189
|
+
};
|
|
1190
|
+
imports.wbg.__wbg___wbindgen_module_967adef62ea6cbf8 = function () {
|
|
1191
|
+
const ret = __wbg_init.__wbindgen_wasm_module;
|
|
1192
|
+
return addHeapObject(ret);
|
|
1193
|
+
};
|
|
1194
|
+
imports.wbg.__wbg___wbindgen_number_get_9619185a74197f95 = function (arg0, arg1) {
|
|
1195
|
+
const obj = getObject(arg1);
|
|
1196
|
+
const ret = typeof (obj) === 'number' ? obj : undefined;
|
|
1197
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
1198
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1199
|
+
};
|
|
1200
|
+
imports.wbg.__wbg___wbindgen_rethrow_78714972834ecdf1 = function (arg0) {
|
|
1201
|
+
throw takeObject(arg0);
|
|
1202
|
+
};
|
|
1203
|
+
imports.wbg.__wbg___wbindgen_string_get_a2a31e16edf96e42 = function (arg0, arg1) {
|
|
1204
|
+
const obj = getObject(arg1);
|
|
1205
|
+
const ret = typeof (obj) === 'string' ? obj : undefined;
|
|
1206
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1207
|
+
var len1 = WASM_VECTOR_LEN;
|
|
1208
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1209
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1210
|
+
};
|
|
1211
|
+
imports.wbg.__wbg___wbindgen_throw_dd24417ed36fc46e = function (arg0, arg1) {
|
|
1212
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
1213
|
+
};
|
|
1214
|
+
imports.wbg.__wbg__wbg_cb_unref_87dfb5aaa0cbcea7 = function (arg0) {
|
|
1215
|
+
getObject(arg0)._wbg_cb_unref();
|
|
1216
|
+
};
|
|
1217
|
+
imports.wbg.__wbg_abort_07646c894ebbf2bd = function (arg0) {
|
|
1013
1218
|
getObject(arg0).abort();
|
|
1014
1219
|
};
|
|
1015
|
-
imports.wbg.
|
|
1220
|
+
imports.wbg.__wbg_abort_399ecbcfd6ef3c8e = function (arg0, arg1) {
|
|
1016
1221
|
getObject(arg0).abort(getObject(arg1));
|
|
1017
1222
|
};
|
|
1018
|
-
imports.wbg.
|
|
1223
|
+
imports.wbg.__wbg_append_c5cbdf46455cc776 = function () {
|
|
1019
1224
|
return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1020
1225
|
getObject(arg0).append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
1021
1226
|
}, arguments);
|
|
1022
1227
|
};
|
|
1023
|
-
imports.wbg.
|
|
1228
|
+
imports.wbg.__wbg_arrayBuffer_c04af4fce566092d = function () {
|
|
1024
1229
|
return handleError(function (arg0) {
|
|
1025
1230
|
const ret = getObject(arg0).arrayBuffer();
|
|
1026
1231
|
return addHeapObject(ret);
|
|
1027
1232
|
}, arguments);
|
|
1028
1233
|
};
|
|
1029
|
-
imports.wbg.
|
|
1234
|
+
imports.wbg.__wbg_async_bba5a2ac54b734df = function (arg0) {
|
|
1030
1235
|
const ret = getObject(arg0).async;
|
|
1031
1236
|
return ret;
|
|
1032
1237
|
};
|
|
1033
|
-
imports.wbg.
|
|
1238
|
+
imports.wbg.__wbg_buffer_063cd102cc769a1c = function (arg0) {
|
|
1034
1239
|
const ret = getObject(arg0).buffer;
|
|
1035
1240
|
return addHeapObject(ret);
|
|
1036
1241
|
};
|
|
1037
|
-
imports.wbg.
|
|
1038
|
-
return handleError(function (arg0, arg1) {
|
|
1039
|
-
const ret = getObject(arg0).call(getObject(arg1));
|
|
1242
|
+
imports.wbg.__wbg_call_3020136f7a2d6e44 = function () {
|
|
1243
|
+
return handleError(function (arg0, arg1, arg2) {
|
|
1244
|
+
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
1040
1245
|
return addHeapObject(ret);
|
|
1041
1246
|
}, arguments);
|
|
1042
1247
|
};
|
|
1043
|
-
imports.wbg.
|
|
1044
|
-
return handleError(function (arg0, arg1
|
|
1045
|
-
const ret = getObject(arg0).call(getObject(arg1)
|
|
1248
|
+
imports.wbg.__wbg_call_abb4ff46ce38be40 = function () {
|
|
1249
|
+
return handleError(function (arg0, arg1) {
|
|
1250
|
+
const ret = getObject(arg0).call(getObject(arg1));
|
|
1046
1251
|
return addHeapObject(ret);
|
|
1047
1252
|
}, arguments);
|
|
1048
1253
|
};
|
|
@@ -1054,13 +1259,13 @@ function __wbg_get_imports() {
|
|
|
1054
1259
|
const ret = clearTimeout(takeObject(arg0));
|
|
1055
1260
|
return addHeapObject(ret);
|
|
1056
1261
|
};
|
|
1057
|
-
imports.wbg.
|
|
1262
|
+
imports.wbg.__wbg_close_e350fad820f0e4f1 = function (arg0) {
|
|
1058
1263
|
getObject(arg0).close();
|
|
1059
1264
|
};
|
|
1060
|
-
imports.wbg.
|
|
1265
|
+
imports.wbg.__wbg_createObjectURL_7d9f7f8f41373850 = function () {
|
|
1061
1266
|
return handleError(function (arg0, arg1) {
|
|
1062
1267
|
const ret = URL.createObjectURL(getObject(arg1));
|
|
1063
|
-
const ptr1 = passStringToWasm0(ret, wasm.
|
|
1268
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1064
1269
|
const len1 = WASM_VECTOR_LEN;
|
|
1065
1270
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1066
1271
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
@@ -1070,31 +1275,28 @@ function __wbg_get_imports() {
|
|
|
1070
1275
|
const ret = CreateSyncAccessHandleOptions.__wrap(arg0);
|
|
1071
1276
|
return addHeapObject(ret);
|
|
1072
1277
|
};
|
|
1073
|
-
imports.wbg.
|
|
1278
|
+
imports.wbg.__wbg_data_8bf4ae669a78a688 = function (arg0) {
|
|
1074
1279
|
const ret = getObject(arg0).data;
|
|
1075
1280
|
return addHeapObject(ret);
|
|
1076
1281
|
};
|
|
1077
|
-
imports.wbg.
|
|
1282
|
+
imports.wbg.__wbg_debug_9ad80675faf0c9cf = function (arg0, arg1, arg2, arg3) {
|
|
1078
1283
|
console.debug(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
|
|
1079
1284
|
};
|
|
1080
|
-
imports.wbg.
|
|
1285
|
+
imports.wbg.__wbg_debug_9d0c87ddda3dc485 = function (arg0) {
|
|
1081
1286
|
console.debug(getObject(arg0));
|
|
1082
1287
|
};
|
|
1083
1288
|
imports.wbg.__wbg_direntry_new = function (arg0) {
|
|
1084
1289
|
const ret = DirEntry.__wrap(arg0);
|
|
1085
1290
|
return addHeapObject(ret);
|
|
1086
1291
|
};
|
|
1087
|
-
imports.wbg.
|
|
1292
|
+
imports.wbg.__wbg_done_62ea16af4ce34b24 = function (arg0) {
|
|
1088
1293
|
const ret = getObject(arg0).done;
|
|
1089
1294
|
return ret;
|
|
1090
1295
|
};
|
|
1091
|
-
imports.wbg.
|
|
1296
|
+
imports.wbg.__wbg_entries_7de5c9edd116e219 = function (arg0) {
|
|
1092
1297
|
const ret = getObject(arg0).entries();
|
|
1093
1298
|
return addHeapObject(ret);
|
|
1094
1299
|
};
|
|
1095
|
-
imports.wbg.__wbg_error_0889f151acea569e = function (arg0, arg1, arg2, arg3) {
|
|
1096
|
-
console.error(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
|
|
1097
|
-
};
|
|
1098
1300
|
imports.wbg.__wbg_error_7534b8e9a36f1ab4 = function (arg0, arg1) {
|
|
1099
1301
|
let deferred0_0;
|
|
1100
1302
|
let deferred0_1;
|
|
@@ -1104,13 +1306,16 @@ function __wbg_get_imports() {
|
|
|
1104
1306
|
console.error(getStringFromWasm0(arg0, arg1));
|
|
1105
1307
|
}
|
|
1106
1308
|
finally {
|
|
1107
|
-
wasm.
|
|
1309
|
+
wasm.__wbindgen_export4(deferred0_0, deferred0_1, 1);
|
|
1108
1310
|
}
|
|
1109
1311
|
};
|
|
1110
|
-
imports.wbg.
|
|
1312
|
+
imports.wbg.__wbg_error_7bc7d576a6aaf855 = function (arg0) {
|
|
1111
1313
|
console.error(getObject(arg0));
|
|
1112
1314
|
};
|
|
1113
|
-
imports.wbg.
|
|
1315
|
+
imports.wbg.__wbg_error_ad1ecdacd1bb600d = function (arg0, arg1, arg2, arg3) {
|
|
1316
|
+
console.error(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
|
|
1317
|
+
};
|
|
1318
|
+
imports.wbg.__wbg_eval_aa18aa048f37d16d = function () {
|
|
1114
1319
|
return handleError(function (arg0, arg1) {
|
|
1115
1320
|
const ret = eval(getStringFromWasm0(arg0, arg1));
|
|
1116
1321
|
return addHeapObject(ret);
|
|
@@ -1120,28 +1325,28 @@ function __wbg_get_imports() {
|
|
|
1120
1325
|
const ret = fetch(getObject(arg0));
|
|
1121
1326
|
return addHeapObject(ret);
|
|
1122
1327
|
};
|
|
1123
|
-
imports.wbg.
|
|
1328
|
+
imports.wbg.__wbg_fetch_90447c28cc0b095e = function (arg0, arg1) {
|
|
1124
1329
|
const ret = getObject(arg0).fetch(getObject(arg1));
|
|
1125
1330
|
return addHeapObject(ret);
|
|
1126
1331
|
};
|
|
1127
|
-
imports.wbg.
|
|
1332
|
+
imports.wbg.__wbg_flush_554f5177ae6f76cb = function () {
|
|
1128
1333
|
return handleError(function (arg0) {
|
|
1129
1334
|
getObject(arg0).flush();
|
|
1130
1335
|
}, arguments);
|
|
1131
1336
|
};
|
|
1132
|
-
imports.wbg.
|
|
1337
|
+
imports.wbg.__wbg_from_29a8414a7a7cd19d = function (arg0) {
|
|
1133
1338
|
const ret = Array.from(getObject(arg0));
|
|
1134
1339
|
return addHeapObject(ret);
|
|
1135
1340
|
};
|
|
1136
|
-
imports.wbg.
|
|
1341
|
+
imports.wbg.__wbg_getDirectoryHandle_edea923e1d89a19d = function (arg0, arg1, arg2, arg3) {
|
|
1137
1342
|
const ret = getObject(arg0).getDirectoryHandle(getStringFromWasm0(arg1, arg2), getObject(arg3));
|
|
1138
1343
|
return addHeapObject(ret);
|
|
1139
1344
|
};
|
|
1140
|
-
imports.wbg.
|
|
1345
|
+
imports.wbg.__wbg_getDirectory_9beed6c83b6861f5 = function (arg0) {
|
|
1141
1346
|
const ret = getObject(arg0).getDirectory();
|
|
1142
1347
|
return addHeapObject(ret);
|
|
1143
1348
|
};
|
|
1144
|
-
imports.wbg.
|
|
1349
|
+
imports.wbg.__wbg_getFileHandle_298ee7a4e5a85f84 = function (arg0, arg1, arg2, arg3) {
|
|
1145
1350
|
const ret = getObject(arg0).getFileHandle(getStringFromWasm0(arg1, arg2), getObject(arg3));
|
|
1146
1351
|
return addHeapObject(ret);
|
|
1147
1352
|
};
|
|
@@ -1150,54 +1355,39 @@ function __wbg_get_imports() {
|
|
|
1150
1355
|
globalThis.crypto.getRandomValues(getObject(arg0));
|
|
1151
1356
|
}, arguments);
|
|
1152
1357
|
};
|
|
1153
|
-
imports.wbg.
|
|
1358
|
+
imports.wbg.__wbg_getSize_1bf196c4094d8f7b = function () {
|
|
1154
1359
|
return handleError(function (arg0) {
|
|
1155
1360
|
const ret = getObject(arg0).getSize();
|
|
1156
1361
|
return ret;
|
|
1157
1362
|
}, arguments);
|
|
1158
1363
|
};
|
|
1159
|
-
imports.wbg.
|
|
1364
|
+
imports.wbg.__wbg_get_6b7bd52aca3f9671 = function (arg0, arg1) {
|
|
1160
1365
|
const ret = getObject(arg0)[arg1 >>> 0];
|
|
1161
1366
|
return addHeapObject(ret);
|
|
1162
1367
|
};
|
|
1163
|
-
imports.wbg.
|
|
1368
|
+
imports.wbg.__wbg_get_af9dab7e9603ea93 = function () {
|
|
1164
1369
|
return handleError(function (arg0, arg1) {
|
|
1165
1370
|
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
1166
1371
|
return addHeapObject(ret);
|
|
1167
1372
|
}, arguments);
|
|
1168
1373
|
};
|
|
1169
|
-
imports.wbg.
|
|
1170
|
-
const ret = getObject(arg0)[getObject(arg1)];
|
|
1171
|
-
return addHeapObject(ret);
|
|
1172
|
-
};
|
|
1173
|
-
imports.wbg.__wbg_has_b89e451f638123e3 = function () {
|
|
1374
|
+
imports.wbg.__wbg_has_0e670569d65d3a45 = function () {
|
|
1174
1375
|
return handleError(function (arg0, arg1) {
|
|
1175
1376
|
const ret = Reflect.has(getObject(arg0), getObject(arg1));
|
|
1176
1377
|
return ret;
|
|
1177
1378
|
}, arguments);
|
|
1178
1379
|
};
|
|
1179
|
-
imports.wbg.
|
|
1380
|
+
imports.wbg.__wbg_headers_654c30e1bcccc552 = function (arg0) {
|
|
1180
1381
|
const ret = getObject(arg0).headers;
|
|
1181
1382
|
return addHeapObject(ret);
|
|
1182
1383
|
};
|
|
1183
|
-
imports.wbg.
|
|
1384
|
+
imports.wbg.__wbg_info_b7fa8ce2e59d29c6 = function (arg0, arg1, arg2, arg3) {
|
|
1184
1385
|
console.info(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
|
|
1185
1386
|
};
|
|
1186
|
-
imports.wbg.
|
|
1387
|
+
imports.wbg.__wbg_info_ce6bcc489c22f6f0 = function (arg0) {
|
|
1187
1388
|
console.info(getObject(arg0));
|
|
1188
1389
|
};
|
|
1189
|
-
imports.wbg.
|
|
1190
|
-
let result;
|
|
1191
|
-
try {
|
|
1192
|
-
result = getObject(arg0) instanceof ArrayBuffer;
|
|
1193
|
-
}
|
|
1194
|
-
catch (_) {
|
|
1195
|
-
result = false;
|
|
1196
|
-
}
|
|
1197
|
-
const ret = result;
|
|
1198
|
-
return ret;
|
|
1199
|
-
};
|
|
1200
|
-
imports.wbg.__wbg_instanceof_DedicatedWorkerGlobalScope_a054a9af652220ba = function (arg0) {
|
|
1390
|
+
imports.wbg.__wbg_instanceof_DedicatedWorkerGlobalScope_1fad9829936e95d2 = function (arg0) {
|
|
1201
1391
|
let result;
|
|
1202
1392
|
try {
|
|
1203
1393
|
result = getObject(arg0) instanceof DedicatedWorkerGlobalScope;
|
|
@@ -1208,7 +1398,7 @@ function __wbg_get_imports() {
|
|
|
1208
1398
|
const ret = result;
|
|
1209
1399
|
return ret;
|
|
1210
1400
|
};
|
|
1211
|
-
imports.wbg.
|
|
1401
|
+
imports.wbg.__wbg_instanceof_DomException_d430cd4fb5284a83 = function (arg0) {
|
|
1212
1402
|
let result;
|
|
1213
1403
|
try {
|
|
1214
1404
|
result = getObject(arg0) instanceof DOMException;
|
|
@@ -1219,7 +1409,7 @@ function __wbg_get_imports() {
|
|
|
1219
1409
|
const ret = result;
|
|
1220
1410
|
return ret;
|
|
1221
1411
|
};
|
|
1222
|
-
imports.wbg.
|
|
1412
|
+
imports.wbg.__wbg_instanceof_FileSystemDirectoryHandle_264085cadc86679a = function (arg0) {
|
|
1223
1413
|
let result;
|
|
1224
1414
|
try {
|
|
1225
1415
|
result = getObject(arg0) instanceof FileSystemDirectoryHandle;
|
|
@@ -1230,7 +1420,7 @@ function __wbg_get_imports() {
|
|
|
1230
1420
|
const ret = result;
|
|
1231
1421
|
return ret;
|
|
1232
1422
|
};
|
|
1233
|
-
imports.wbg.
|
|
1423
|
+
imports.wbg.__wbg_instanceof_Response_cd74d1c2ac92cb0b = function (arg0) {
|
|
1234
1424
|
let result;
|
|
1235
1425
|
try {
|
|
1236
1426
|
result = getObject(arg0) instanceof Response;
|
|
@@ -1241,7 +1431,7 @@ function __wbg_get_imports() {
|
|
|
1241
1431
|
const ret = result;
|
|
1242
1432
|
return ret;
|
|
1243
1433
|
};
|
|
1244
|
-
imports.wbg.
|
|
1434
|
+
imports.wbg.__wbg_instanceof_Uint8Array_da54ccc9d3e09434 = function (arg0) {
|
|
1245
1435
|
let result;
|
|
1246
1436
|
try {
|
|
1247
1437
|
result = getObject(arg0) instanceof Uint8Array;
|
|
@@ -1252,27 +1442,23 @@ function __wbg_get_imports() {
|
|
|
1252
1442
|
const ret = result;
|
|
1253
1443
|
return ret;
|
|
1254
1444
|
};
|
|
1255
|
-
imports.wbg.
|
|
1445
|
+
imports.wbg.__wbg_isArray_51fd9e6422c0a395 = function (arg0) {
|
|
1256
1446
|
const ret = Array.isArray(getObject(arg0));
|
|
1257
1447
|
return ret;
|
|
1258
1448
|
};
|
|
1259
|
-
imports.wbg.
|
|
1260
|
-
const ret = Number.isSafeInteger(getObject(arg0));
|
|
1261
|
-
return ret;
|
|
1262
|
-
};
|
|
1263
|
-
imports.wbg.__wbg_iterator_f370b34483c71a1c = function () {
|
|
1449
|
+
imports.wbg.__wbg_iterator_27b7c8b35ab3e86b = function () {
|
|
1264
1450
|
const ret = Symbol.iterator;
|
|
1265
1451
|
return addHeapObject(ret);
|
|
1266
1452
|
};
|
|
1267
|
-
imports.wbg.
|
|
1453
|
+
imports.wbg.__wbg_kind_537a771004f87998 = function (arg0) {
|
|
1268
1454
|
const ret = getObject(arg0).kind;
|
|
1269
1455
|
return (__wbindgen_enum_FileSystemHandleKind.indexOf(ret) + 1 || 3) - 1;
|
|
1270
1456
|
};
|
|
1271
|
-
imports.wbg.
|
|
1457
|
+
imports.wbg.__wbg_length_22ac23eaec9d8053 = function (arg0) {
|
|
1272
1458
|
const ret = getObject(arg0).length;
|
|
1273
1459
|
return ret;
|
|
1274
1460
|
};
|
|
1275
|
-
imports.wbg.
|
|
1461
|
+
imports.wbg.__wbg_length_d45040a40c570362 = function (arg0) {
|
|
1276
1462
|
const ret = getObject(arg0).length;
|
|
1277
1463
|
return ret;
|
|
1278
1464
|
};
|
|
@@ -1280,58 +1466,42 @@ function __wbg_get_imports() {
|
|
|
1280
1466
|
const ret = Metadata.__wrap(arg0);
|
|
1281
1467
|
return addHeapObject(ret);
|
|
1282
1468
|
};
|
|
1283
|
-
imports.wbg.
|
|
1469
|
+
imports.wbg.__wbg_name_9136863a055402ff = function (arg0, arg1) {
|
|
1284
1470
|
const ret = getObject(arg1).name;
|
|
1285
|
-
const ptr1 = passStringToWasm0(ret, wasm.
|
|
1471
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1286
1472
|
const len1 = WASM_VECTOR_LEN;
|
|
1287
1473
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1288
1474
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1289
1475
|
};
|
|
1290
|
-
imports.wbg.
|
|
1476
|
+
imports.wbg.__wbg_navigator_11b7299bb7886507 = function (arg0) {
|
|
1291
1477
|
const ret = getObject(arg0).navigator;
|
|
1292
1478
|
return addHeapObject(ret);
|
|
1293
1479
|
};
|
|
1294
|
-
imports.wbg.
|
|
1480
|
+
imports.wbg.__wbg_new_1ba21ce319a06297 = function () {
|
|
1295
1481
|
const ret = new Object();
|
|
1296
1482
|
return addHeapObject(ret);
|
|
1297
1483
|
};
|
|
1298
|
-
imports.wbg.
|
|
1484
|
+
imports.wbg.__wbg_new_25f239778d6112b9 = function () {
|
|
1299
1485
|
const ret = new Array();
|
|
1300
1486
|
return addHeapObject(ret);
|
|
1301
1487
|
};
|
|
1302
|
-
imports.wbg.
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
};
|
|
1306
|
-
imports.wbg.__wbg_new_2e3c58a15f39f5f9 = function (arg0, arg1) {
|
|
1307
|
-
try {
|
|
1308
|
-
var state0 = { a: arg0, b: arg1 };
|
|
1309
|
-
var cb0 = (arg0, arg1) => {
|
|
1310
|
-
const a = state0.a;
|
|
1311
|
-
state0.a = 0;
|
|
1312
|
-
try {
|
|
1313
|
-
return __wbg_adapter_94(a, state0.b, arg0, arg1);
|
|
1314
|
-
}
|
|
1315
|
-
finally {
|
|
1316
|
-
state0.a = a;
|
|
1317
|
-
}
|
|
1318
|
-
};
|
|
1319
|
-
const ret = new Promise(cb0);
|
|
1488
|
+
imports.wbg.__wbg_new_3c79b3bb1b32b7d3 = function () {
|
|
1489
|
+
return handleError(function () {
|
|
1490
|
+
const ret = new Headers();
|
|
1320
1491
|
return addHeapObject(ret);
|
|
1321
|
-
}
|
|
1322
|
-
finally {
|
|
1323
|
-
state0.a = state0.b = 0;
|
|
1324
|
-
}
|
|
1492
|
+
}, arguments);
|
|
1325
1493
|
};
|
|
1326
|
-
imports.wbg.
|
|
1327
|
-
|
|
1328
|
-
|
|
1494
|
+
imports.wbg.__wbg_new_53cb1e86c1ef5d2a = function () {
|
|
1495
|
+
return handleError(function (arg0, arg1) {
|
|
1496
|
+
const ret = new Worker(getStringFromWasm0(arg0, arg1));
|
|
1497
|
+
return addHeapObject(ret);
|
|
1498
|
+
}, arguments);
|
|
1329
1499
|
};
|
|
1330
|
-
imports.wbg.
|
|
1500
|
+
imports.wbg.__wbg_new_6421f6084cc5bc5a = function (arg0) {
|
|
1331
1501
|
const ret = new Uint8Array(getObject(arg0));
|
|
1332
1502
|
return addHeapObject(ret);
|
|
1333
1503
|
};
|
|
1334
|
-
imports.wbg.
|
|
1504
|
+
imports.wbg.__wbg_new_881a222c65f168fc = function () {
|
|
1335
1505
|
return handleError(function () {
|
|
1336
1506
|
const ret = new AbortController();
|
|
1337
1507
|
return addHeapObject(ret);
|
|
@@ -1341,63 +1511,79 @@ function __wbg_get_imports() {
|
|
|
1341
1511
|
const ret = new Error();
|
|
1342
1512
|
return addHeapObject(ret);
|
|
1343
1513
|
};
|
|
1344
|
-
imports.wbg.__wbg_new_9d476835fd376de6 = function () {
|
|
1345
|
-
return handleError(function (arg0, arg1) {
|
|
1346
|
-
const ret = new Worker(getStringFromWasm0(arg0, arg1));
|
|
1347
|
-
return addHeapObject(ret);
|
|
1348
|
-
}, arguments);
|
|
1349
|
-
};
|
|
1350
1514
|
imports.wbg.__wbg_new_aa308f983e021414 = function (arg0) {
|
|
1351
1515
|
const ret = new FileSystemObserver(getObject(arg0));
|
|
1352
1516
|
return addHeapObject(ret);
|
|
1353
1517
|
};
|
|
1354
|
-
imports.wbg.
|
|
1355
|
-
|
|
1356
|
-
|
|
1518
|
+
imports.wbg.__wbg_new_b546ae120718850e = function () {
|
|
1519
|
+
const ret = new Map();
|
|
1520
|
+
return addHeapObject(ret);
|
|
1521
|
+
};
|
|
1522
|
+
imports.wbg.__wbg_new_de1e660b88fc921f = function (arg0) {
|
|
1523
|
+
const ret = new Int32Array(getObject(arg0));
|
|
1524
|
+
return addHeapObject(ret);
|
|
1525
|
+
};
|
|
1526
|
+
imports.wbg.__wbg_new_ff12d2b041fb48f1 = function (arg0, arg1) {
|
|
1527
|
+
try {
|
|
1528
|
+
var state0 = { a: arg0, b: arg1 };
|
|
1529
|
+
var cb0 = (arg0, arg1) => {
|
|
1530
|
+
const a = state0.a;
|
|
1531
|
+
state0.a = 0;
|
|
1532
|
+
try {
|
|
1533
|
+
return __wasm_bindgen_func_elem_3436(a, state0.b, arg0, arg1);
|
|
1534
|
+
}
|
|
1535
|
+
finally {
|
|
1536
|
+
state0.a = a;
|
|
1537
|
+
}
|
|
1538
|
+
};
|
|
1539
|
+
const ret = new Promise(cb0);
|
|
1357
1540
|
return addHeapObject(ret);
|
|
1358
|
-
}
|
|
1541
|
+
}
|
|
1542
|
+
finally {
|
|
1543
|
+
state0.a = state0.b = 0;
|
|
1544
|
+
}
|
|
1359
1545
|
};
|
|
1360
|
-
imports.wbg.
|
|
1546
|
+
imports.wbg.__wbg_new_from_slice_f9c22b9153b26992 = function (arg0, arg1) {
|
|
1361
1547
|
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
1362
1548
|
return addHeapObject(ret);
|
|
1363
1549
|
};
|
|
1364
|
-
imports.wbg.
|
|
1550
|
+
imports.wbg.__wbg_new_no_args_cb138f77cf6151ee = function (arg0, arg1) {
|
|
1365
1551
|
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
1366
1552
|
return addHeapObject(ret);
|
|
1367
1553
|
};
|
|
1368
|
-
imports.wbg.
|
|
1554
|
+
imports.wbg.__wbg_new_with_length_aa5eaf41d35235e5 = function (arg0) {
|
|
1369
1555
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
1370
1556
|
return addHeapObject(ret);
|
|
1371
1557
|
};
|
|
1372
|
-
imports.wbg.
|
|
1558
|
+
imports.wbg.__wbg_new_with_options_2978557c2c268ef3 = function () {
|
|
1373
1559
|
return handleError(function (arg0, arg1, arg2) {
|
|
1374
1560
|
const ret = new Worker(getStringFromWasm0(arg0, arg1), getObject(arg2));
|
|
1375
1561
|
return addHeapObject(ret);
|
|
1376
1562
|
}, arguments);
|
|
1377
1563
|
};
|
|
1378
|
-
imports.wbg.
|
|
1564
|
+
imports.wbg.__wbg_new_with_str_and_init_c5748f76f5108934 = function () {
|
|
1379
1565
|
return handleError(function (arg0, arg1, arg2) {
|
|
1380
1566
|
const ret = new Request(getStringFromWasm0(arg0, arg1), getObject(arg2));
|
|
1381
1567
|
return addHeapObject(ret);
|
|
1382
1568
|
}, arguments);
|
|
1383
1569
|
};
|
|
1384
|
-
imports.wbg.
|
|
1570
|
+
imports.wbg.__wbg_new_with_str_sequence_d016b9add23bf7ce = function () {
|
|
1385
1571
|
return handleError(function (arg0) {
|
|
1386
1572
|
const ret = new Blob(getObject(arg0));
|
|
1387
1573
|
return addHeapObject(ret);
|
|
1388
1574
|
}, arguments);
|
|
1389
1575
|
};
|
|
1390
|
-
imports.wbg.
|
|
1576
|
+
imports.wbg.__wbg_next_138a17bbf04e926c = function (arg0) {
|
|
1577
|
+
const ret = getObject(arg0).next;
|
|
1578
|
+
return addHeapObject(ret);
|
|
1579
|
+
};
|
|
1580
|
+
imports.wbg.__wbg_next_3cfe5c0fe2a4cc53 = function () {
|
|
1391
1581
|
return handleError(function (arg0) {
|
|
1392
1582
|
const ret = getObject(arg0).next();
|
|
1393
1583
|
return addHeapObject(ret);
|
|
1394
1584
|
}, arguments);
|
|
1395
1585
|
};
|
|
1396
|
-
imports.wbg.
|
|
1397
|
-
const ret = getObject(arg0).next;
|
|
1398
|
-
return addHeapObject(ret);
|
|
1399
|
-
};
|
|
1400
|
-
imports.wbg.__wbg_next_692e82279131b03c = function () {
|
|
1586
|
+
imports.wbg.__wbg_next_b34c09a202bf4424 = function () {
|
|
1401
1587
|
return handleError(function (arg0) {
|
|
1402
1588
|
const ret = getObject(arg0).next();
|
|
1403
1589
|
return addHeapObject(ret);
|
|
@@ -1407,7 +1593,7 @@ function __wbg_get_imports() {
|
|
|
1407
1593
|
const ret = getObject(arg0).now();
|
|
1408
1594
|
return ret;
|
|
1409
1595
|
};
|
|
1410
|
-
imports.wbg.
|
|
1596
|
+
imports.wbg.__wbg_now_69d776cd24f5215b = function () {
|
|
1411
1597
|
const ret = Date.now();
|
|
1412
1598
|
return ret;
|
|
1413
1599
|
};
|
|
@@ -1415,7 +1601,7 @@ function __wbg_get_imports() {
|
|
|
1415
1601
|
const ret = getObject(arg0).observe(getObject(arg1), getObject(arg2));
|
|
1416
1602
|
return addHeapObject(ret);
|
|
1417
1603
|
};
|
|
1418
|
-
imports.wbg.
|
|
1604
|
+
imports.wbg.__wbg_of_7779827fa663eec8 = function (arg0, arg1, arg2) {
|
|
1419
1605
|
const ret = Array.of(getObject(arg0), getObject(arg1), getObject(arg2));
|
|
1420
1606
|
return addHeapObject(ret);
|
|
1421
1607
|
};
|
|
@@ -1423,41 +1609,41 @@ function __wbg_get_imports() {
|
|
|
1423
1609
|
const ret = getObject(arg0).performance;
|
|
1424
1610
|
return addHeapObject(ret);
|
|
1425
1611
|
};
|
|
1426
|
-
imports.wbg.
|
|
1612
|
+
imports.wbg.__wbg_postMessage_07504dbe15265d5c = function () {
|
|
1427
1613
|
return handleError(function (arg0, arg1) {
|
|
1428
1614
|
getObject(arg0).postMessage(getObject(arg1));
|
|
1429
1615
|
}, arguments);
|
|
1430
1616
|
};
|
|
1431
|
-
imports.wbg.
|
|
1617
|
+
imports.wbg.__wbg_postMessage_7243f814e0cfb266 = function () {
|
|
1432
1618
|
return handleError(function (arg0, arg1) {
|
|
1433
1619
|
getObject(arg0).postMessage(getObject(arg1));
|
|
1434
1620
|
}, arguments);
|
|
1435
1621
|
};
|
|
1436
|
-
imports.wbg.
|
|
1622
|
+
imports.wbg.__wbg_prototypesetcall_dfe9b766cdc1f1fd = function (arg0, arg1, arg2) {
|
|
1437
1623
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
|
|
1438
1624
|
};
|
|
1439
|
-
imports.wbg.
|
|
1625
|
+
imports.wbg.__wbg_push_7d9be8f38fc13975 = function (arg0, arg1) {
|
|
1440
1626
|
const ret = getObject(arg0).push(getObject(arg1));
|
|
1441
1627
|
return ret;
|
|
1442
1628
|
};
|
|
1443
|
-
imports.wbg.
|
|
1444
|
-
queueMicrotask(getObject(arg0));
|
|
1445
|
-
};
|
|
1446
|
-
imports.wbg.__wbg_queueMicrotask_4488407636f5bf24 = function (arg0) {
|
|
1629
|
+
imports.wbg.__wbg_queueMicrotask_9b549dfce8865860 = function (arg0) {
|
|
1447
1630
|
const ret = getObject(arg0).queueMicrotask;
|
|
1448
1631
|
return addHeapObject(ret);
|
|
1449
1632
|
};
|
|
1450
|
-
imports.wbg.
|
|
1633
|
+
imports.wbg.__wbg_queueMicrotask_fca69f5bfad613a5 = function (arg0) {
|
|
1634
|
+
queueMicrotask(getObject(arg0));
|
|
1635
|
+
};
|
|
1636
|
+
imports.wbg.__wbg_random_cc1f9237d866d212 = function () {
|
|
1451
1637
|
const ret = Math.random();
|
|
1452
1638
|
return ret;
|
|
1453
1639
|
};
|
|
1454
|
-
imports.wbg.
|
|
1640
|
+
imports.wbg.__wbg_read_0063be96fda4ddbb = function () {
|
|
1455
1641
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1456
1642
|
const ret = getObject(arg0).read(getArrayU8FromWasm0(arg1, arg2), getObject(arg3));
|
|
1457
1643
|
return ret;
|
|
1458
1644
|
}, arguments);
|
|
1459
1645
|
};
|
|
1460
|
-
imports.wbg.
|
|
1646
|
+
imports.wbg.__wbg_read_f7fc3494244667a2 = function () {
|
|
1461
1647
|
return handleError(function (arg0, arg1, arg2) {
|
|
1462
1648
|
const ret = getObject(arg0).read(getArrayU8FromWasm0(arg1, arg2));
|
|
1463
1649
|
return ret;
|
|
@@ -1467,11 +1653,11 @@ function __wbg_get_imports() {
|
|
|
1467
1653
|
const ret = getObject(arg0).relativePathComponents;
|
|
1468
1654
|
return addHeapObject(ret);
|
|
1469
1655
|
};
|
|
1470
|
-
imports.wbg.
|
|
1656
|
+
imports.wbg.__wbg_removeEntry_e055e728cc398139 = function (arg0, arg1, arg2, arg3) {
|
|
1471
1657
|
const ret = getObject(arg0).removeEntry(getStringFromWasm0(arg1, arg2), getObject(arg3));
|
|
1472
1658
|
return addHeapObject(ret);
|
|
1473
1659
|
};
|
|
1474
|
-
imports.wbg.
|
|
1660
|
+
imports.wbg.__wbg_resolve_fd5bfbaa4ce36e1e = function (arg0) {
|
|
1475
1661
|
const ret = Promise.resolve(getObject(arg0));
|
|
1476
1662
|
return addHeapObject(ret);
|
|
1477
1663
|
};
|
|
@@ -1488,67 +1674,67 @@ function __wbg_get_imports() {
|
|
|
1488
1674
|
imports.wbg.__wbg_set_3f1d0b984ed272ed = function (arg0, arg1, arg2) {
|
|
1489
1675
|
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
1490
1676
|
};
|
|
1491
|
-
imports.wbg.
|
|
1677
|
+
imports.wbg.__wbg_set_7df433eea03a5c14 = function (arg0, arg1, arg2) {
|
|
1492
1678
|
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
1493
1679
|
};
|
|
1494
|
-
imports.wbg.
|
|
1495
|
-
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
1496
|
-
return addHeapObject(ret);
|
|
1497
|
-
};
|
|
1498
|
-
imports.wbg.__wbg_setat_f8fc70f546036b10 = function (arg0, arg1) {
|
|
1680
|
+
imports.wbg.__wbg_set_at_8ed309b95b9da8e8 = function (arg0, arg1) {
|
|
1499
1681
|
getObject(arg0).at = arg1;
|
|
1500
1682
|
};
|
|
1501
|
-
imports.wbg.
|
|
1683
|
+
imports.wbg.__wbg_set_body_8e743242d6076a4f = function (arg0, arg1) {
|
|
1502
1684
|
getObject(arg0).body = getObject(arg1);
|
|
1503
1685
|
};
|
|
1504
|
-
imports.wbg.
|
|
1686
|
+
imports.wbg.__wbg_set_cache_0e437c7c8e838b9b = function (arg0, arg1) {
|
|
1505
1687
|
getObject(arg0).cache = __wbindgen_enum_RequestCache[arg1];
|
|
1506
1688
|
};
|
|
1507
|
-
imports.wbg.
|
|
1689
|
+
imports.wbg.__wbg_set_create_a7fa115dfd714480 = function (arg0, arg1) {
|
|
1508
1690
|
getObject(arg0).create = arg1 !== 0;
|
|
1509
1691
|
};
|
|
1510
|
-
imports.wbg.
|
|
1692
|
+
imports.wbg.__wbg_set_create_c87a4965b38c1564 = function (arg0, arg1) {
|
|
1511
1693
|
getObject(arg0).create = arg1 !== 0;
|
|
1512
1694
|
};
|
|
1513
|
-
imports.wbg.
|
|
1695
|
+
imports.wbg.__wbg_set_credentials_55ae7c3c106fd5be = function (arg0, arg1) {
|
|
1514
1696
|
getObject(arg0).credentials = __wbindgen_enum_RequestCredentials[arg1];
|
|
1515
1697
|
};
|
|
1516
|
-
imports.wbg.
|
|
1698
|
+
imports.wbg.__wbg_set_efaaf145b9377369 = function (arg0, arg1, arg2) {
|
|
1699
|
+
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
1700
|
+
return addHeapObject(ret);
|
|
1701
|
+
};
|
|
1702
|
+
imports.wbg.__wbg_set_headers_5671cf088e114d2b = function (arg0, arg1) {
|
|
1517
1703
|
getObject(arg0).headers = getObject(arg1);
|
|
1518
1704
|
};
|
|
1519
|
-
imports.wbg.
|
|
1705
|
+
imports.wbg.__wbg_set_method_76c69e41b3570627 = function (arg0, arg1, arg2) {
|
|
1520
1706
|
getObject(arg0).method = getStringFromWasm0(arg1, arg2);
|
|
1521
1707
|
};
|
|
1522
|
-
imports.wbg.
|
|
1708
|
+
imports.wbg.__wbg_set_mode_611016a6818fc690 = function (arg0, arg1) {
|
|
1523
1709
|
getObject(arg0).mode = __wbindgen_enum_RequestMode[arg1];
|
|
1524
1710
|
};
|
|
1525
|
-
imports.wbg.
|
|
1711
|
+
imports.wbg.__wbg_set_name_5399dd71553bb72d = function (arg0, arg1, arg2) {
|
|
1526
1712
|
getObject(arg0).name = getStringFromWasm0(arg1, arg2);
|
|
1527
1713
|
};
|
|
1528
|
-
imports.wbg.
|
|
1714
|
+
imports.wbg.__wbg_set_onmessage_deb94985de696ac7 = function (arg0, arg1) {
|
|
1529
1715
|
getObject(arg0).onmessage = getObject(arg1);
|
|
1530
1716
|
};
|
|
1531
|
-
imports.wbg.
|
|
1717
|
+
imports.wbg.__wbg_set_recursive_2b2b8ba6100007aa = function (arg0, arg1) {
|
|
1532
1718
|
getObject(arg0).recursive = arg1 !== 0;
|
|
1533
1719
|
};
|
|
1534
|
-
imports.wbg.
|
|
1720
|
+
imports.wbg.__wbg_set_recursive_7ac0b14755335bfb = function (arg0, arg1) {
|
|
1535
1721
|
getObject(arg0).recursive = arg1 !== 0;
|
|
1536
1722
|
};
|
|
1537
|
-
imports.wbg.
|
|
1723
|
+
imports.wbg.__wbg_set_signal_e89be862d0091009 = function (arg0, arg1) {
|
|
1538
1724
|
getObject(arg0).signal = getObject(arg1);
|
|
1539
1725
|
};
|
|
1540
|
-
imports.wbg.
|
|
1726
|
+
imports.wbg.__wbg_set_type_c2eb2929316959f4 = function (arg0, arg1) {
|
|
1541
1727
|
getObject(arg0).type = __wbindgen_enum_WorkerType[arg1];
|
|
1542
1728
|
};
|
|
1543
|
-
imports.wbg.
|
|
1729
|
+
imports.wbg.__wbg_signal_3c14fbdc89694b39 = function (arg0) {
|
|
1544
1730
|
const ret = getObject(arg0).signal;
|
|
1545
1731
|
return addHeapObject(ret);
|
|
1546
1732
|
};
|
|
1547
|
-
imports.wbg.
|
|
1733
|
+
imports.wbg.__wbg_size_82fbdb656de23326 = function (arg0) {
|
|
1548
1734
|
const ret = getObject(arg0).size;
|
|
1549
1735
|
return ret;
|
|
1550
1736
|
};
|
|
1551
|
-
imports.wbg.
|
|
1737
|
+
imports.wbg.__wbg_slice_f3670679f8730340 = function () {
|
|
1552
1738
|
return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1553
1739
|
const ret = getObject(arg0).slice(arg1, arg2, getStringFromWasm0(arg3, arg4));
|
|
1554
1740
|
return addHeapObject(ret);
|
|
@@ -1556,58 +1742,58 @@ function __wbg_get_imports() {
|
|
|
1556
1742
|
};
|
|
1557
1743
|
imports.wbg.__wbg_stack_0ed75d68575b0f3c = function (arg0, arg1) {
|
|
1558
1744
|
const ret = getObject(arg1).stack;
|
|
1559
|
-
const ptr1 = passStringToWasm0(ret, wasm.
|
|
1745
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1560
1746
|
const len1 = WASM_VECTOR_LEN;
|
|
1561
1747
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1562
1748
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1563
1749
|
};
|
|
1564
|
-
imports.wbg.
|
|
1750
|
+
imports.wbg.__wbg_static_accessor_GLOBAL_769e6b65d6557335 = function () {
|
|
1565
1751
|
const ret = typeof global === 'undefined' ? null : global;
|
|
1566
1752
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1567
1753
|
};
|
|
1568
|
-
imports.wbg.
|
|
1754
|
+
imports.wbg.__wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1 = function () {
|
|
1569
1755
|
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
1570
1756
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1571
1757
|
};
|
|
1572
|
-
imports.wbg.
|
|
1758
|
+
imports.wbg.__wbg_static_accessor_SELF_08f5a74c69739274 = function () {
|
|
1573
1759
|
const ret = typeof self === 'undefined' ? null : self;
|
|
1574
1760
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1575
1761
|
};
|
|
1576
|
-
imports.wbg.
|
|
1762
|
+
imports.wbg.__wbg_static_accessor_WINDOW_a8924b26aa92d024 = function () {
|
|
1577
1763
|
const ret = typeof window === 'undefined' ? null : window;
|
|
1578
1764
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1579
1765
|
};
|
|
1580
|
-
imports.wbg.
|
|
1766
|
+
imports.wbg.__wbg_status_9bfc680efca4bdfd = function (arg0) {
|
|
1581
1767
|
const ret = getObject(arg0).status;
|
|
1582
1768
|
return ret;
|
|
1583
1769
|
};
|
|
1584
|
-
imports.wbg.
|
|
1770
|
+
imports.wbg.__wbg_storage_7db24ea4f9f4aa79 = function (arg0) {
|
|
1585
1771
|
const ret = getObject(arg0).storage;
|
|
1586
1772
|
return addHeapObject(ret);
|
|
1587
1773
|
};
|
|
1588
|
-
imports.wbg.
|
|
1774
|
+
imports.wbg.__wbg_stringify_655a6390e1f5eb6b = function () {
|
|
1589
1775
|
return handleError(function (arg0) {
|
|
1590
1776
|
const ret = JSON.stringify(getObject(arg0));
|
|
1591
1777
|
return addHeapObject(ret);
|
|
1592
1778
|
}, arguments);
|
|
1593
1779
|
};
|
|
1594
|
-
imports.wbg.
|
|
1780
|
+
imports.wbg.__wbg_subarray_845f2f5bce7d061a = function (arg0, arg1, arg2) {
|
|
1595
1781
|
const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
|
|
1596
1782
|
return addHeapObject(ret);
|
|
1597
1783
|
};
|
|
1598
|
-
imports.wbg.
|
|
1784
|
+
imports.wbg.__wbg_then_429f7caf1026411d = function (arg0, arg1, arg2) {
|
|
1599
1785
|
const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
|
|
1600
1786
|
return addHeapObject(ret);
|
|
1601
1787
|
};
|
|
1602
|
-
imports.wbg.
|
|
1788
|
+
imports.wbg.__wbg_then_4f95312d68691235 = function (arg0, arg1) {
|
|
1603
1789
|
const ret = getObject(arg0).then(getObject(arg1));
|
|
1604
1790
|
return addHeapObject(ret);
|
|
1605
1791
|
};
|
|
1606
|
-
imports.wbg.
|
|
1792
|
+
imports.wbg.__wbg_toString_f07112df359c997f = function (arg0) {
|
|
1607
1793
|
const ret = getObject(arg0).toString();
|
|
1608
1794
|
return addHeapObject(ret);
|
|
1609
1795
|
};
|
|
1610
|
-
imports.wbg.
|
|
1796
|
+
imports.wbg.__wbg_truncate_9e72c83b9fc1d156 = function () {
|
|
1611
1797
|
return handleError(function (arg0, arg1) {
|
|
1612
1798
|
getObject(arg0).truncate(arg1 >>> 0);
|
|
1613
1799
|
}, arguments);
|
|
@@ -1616,113 +1802,39 @@ function __wbg_get_imports() {
|
|
|
1616
1802
|
const ret = getObject(arg0).type;
|
|
1617
1803
|
return (__wbindgen_enum_FileSystemChangeRecordType.indexOf(ret) + 1 || 7) - 1;
|
|
1618
1804
|
};
|
|
1619
|
-
imports.wbg.
|
|
1805
|
+
imports.wbg.__wbg_url_b6d11838a4f95198 = function (arg0, arg1) {
|
|
1620
1806
|
const ret = getObject(arg1).url;
|
|
1621
|
-
const ptr1 = passStringToWasm0(ret, wasm.
|
|
1807
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1622
1808
|
const len1 = WASM_VECTOR_LEN;
|
|
1623
1809
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1624
1810
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1625
1811
|
};
|
|
1626
|
-
imports.wbg.
|
|
1812
|
+
imports.wbg.__wbg_value_4cd497eeadba94bd = function (arg0) {
|
|
1627
1813
|
const ret = getObject(arg0).value;
|
|
1628
1814
|
return addHeapObject(ret);
|
|
1629
1815
|
};
|
|
1630
|
-
imports.wbg.
|
|
1816
|
+
imports.wbg.__wbg_value_57b7b035e117f7ee = function (arg0) {
|
|
1631
1817
|
const ret = getObject(arg0).value;
|
|
1632
1818
|
return addHeapObject(ret);
|
|
1633
1819
|
};
|
|
1634
|
-
imports.wbg.
|
|
1635
|
-
const ret = Atomics.waitAsync;
|
|
1820
|
+
imports.wbg.__wbg_waitAsync_8afec80ffd213eca = function (arg0, arg1, arg2) {
|
|
1821
|
+
const ret = Atomics.waitAsync(getObject(arg0), arg1 >>> 0, arg2);
|
|
1636
1822
|
return addHeapObject(ret);
|
|
1637
1823
|
};
|
|
1638
|
-
imports.wbg.
|
|
1639
|
-
const ret = Atomics.waitAsync
|
|
1824
|
+
imports.wbg.__wbg_waitAsync_c186cb97ffacd552 = function () {
|
|
1825
|
+
const ret = Atomics.waitAsync;
|
|
1640
1826
|
return addHeapObject(ret);
|
|
1641
1827
|
};
|
|
1642
|
-
imports.wbg.
|
|
1828
|
+
imports.wbg.__wbg_warn_165ef4f6bcfc05e7 = function (arg0, arg1, arg2, arg3) {
|
|
1643
1829
|
console.warn(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
|
|
1644
1830
|
};
|
|
1645
|
-
imports.wbg.
|
|
1831
|
+
imports.wbg.__wbg_warn_6e567d0d926ff881 = function (arg0) {
|
|
1646
1832
|
console.warn(getObject(arg0));
|
|
1647
1833
|
};
|
|
1648
1834
|
imports.wbg.__wbg_wasmtaskmessage_new = function (arg0) {
|
|
1649
1835
|
const ret = WasmTaskMessage.__wrap(arg0);
|
|
1650
1836
|
return addHeapObject(ret);
|
|
1651
1837
|
};
|
|
1652
|
-
imports.wbg.__wbg_wbindgenbooleanget_3fe6f642c7d97746 = function (arg0) {
|
|
1653
|
-
const v = getObject(arg0);
|
|
1654
|
-
const ret = typeof (v) === 'boolean' ? v : undefined;
|
|
1655
|
-
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
1656
|
-
};
|
|
1657
|
-
imports.wbg.__wbg_wbindgencbdrop_eb10308566512b88 = function (arg0) {
|
|
1658
|
-
const obj = getObject(arg0).original;
|
|
1659
|
-
if (obj.cnt-- == 1) {
|
|
1660
|
-
obj.a = 0;
|
|
1661
|
-
return true;
|
|
1662
|
-
}
|
|
1663
|
-
const ret = false;
|
|
1664
|
-
return ret;
|
|
1665
|
-
};
|
|
1666
|
-
imports.wbg.__wbg_wbindgendebugstring_99ef257a3ddda34d = function (arg0, arg1) {
|
|
1667
|
-
const ret = debugString(getObject(arg1));
|
|
1668
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
|
|
1669
|
-
const len1 = WASM_VECTOR_LEN;
|
|
1670
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1671
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1672
|
-
};
|
|
1673
|
-
imports.wbg.__wbg_wbindgenin_d7a1ee10933d2d55 = function (arg0, arg1) {
|
|
1674
|
-
const ret = getObject(arg0) in getObject(arg1);
|
|
1675
|
-
return ret;
|
|
1676
|
-
};
|
|
1677
|
-
imports.wbg.__wbg_wbindgenisfunction_8cee7dce3725ae74 = function (arg0) {
|
|
1678
|
-
const ret = typeof (getObject(arg0)) === 'function';
|
|
1679
|
-
return ret;
|
|
1680
|
-
};
|
|
1681
|
-
imports.wbg.__wbg_wbindgenisobject_307a53c6bd97fbf8 = function (arg0) {
|
|
1682
|
-
const val = getObject(arg0);
|
|
1683
|
-
const ret = typeof (val) === 'object' && val !== null;
|
|
1684
|
-
return ret;
|
|
1685
|
-
};
|
|
1686
|
-
imports.wbg.__wbg_wbindgenisstring_d4fa939789f003b0 = function (arg0) {
|
|
1687
|
-
const ret = typeof (getObject(arg0)) === 'string';
|
|
1688
|
-
return ret;
|
|
1689
|
-
};
|
|
1690
|
-
imports.wbg.__wbg_wbindgenisundefined_c4b71d073b92f3c5 = function (arg0) {
|
|
1691
|
-
const ret = getObject(arg0) === undefined;
|
|
1692
|
-
return ret;
|
|
1693
|
-
};
|
|
1694
|
-
imports.wbg.__wbg_wbindgenjsvallooseeq_9bec8c9be826bed1 = function (arg0, arg1) {
|
|
1695
|
-
const ret = getObject(arg0) == getObject(arg1);
|
|
1696
|
-
return ret;
|
|
1697
|
-
};
|
|
1698
|
-
imports.wbg.__wbg_wbindgenmemory_d84da70f7c42d172 = function () {
|
|
1699
|
-
const ret = wasm.memory;
|
|
1700
|
-
return addHeapObject(ret);
|
|
1701
|
-
};
|
|
1702
|
-
imports.wbg.__wbg_wbindgenmodule_7e59019f6366ff9c = function () {
|
|
1703
|
-
const ret = __wbg_init.__wbindgen_wasm_module;
|
|
1704
|
-
return addHeapObject(ret);
|
|
1705
|
-
};
|
|
1706
|
-
imports.wbg.__wbg_wbindgennumberget_f74b4c7525ac05cb = function (arg0, arg1) {
|
|
1707
|
-
const obj = getObject(arg1);
|
|
1708
|
-
const ret = typeof (obj) === 'number' ? obj : undefined;
|
|
1709
|
-
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
1710
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1711
|
-
};
|
|
1712
|
-
imports.wbg.__wbg_wbindgenrethrow_01815c9239d70cc2 = function (arg0) {
|
|
1713
|
-
throw takeObject(arg0);
|
|
1714
|
-
};
|
|
1715
|
-
imports.wbg.__wbg_wbindgenstringget_0f16a6ddddef376f = function (arg0, arg1) {
|
|
1716
|
-
const obj = getObject(arg1);
|
|
1717
|
-
const ret = typeof (obj) === 'string' ? obj : undefined;
|
|
1718
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
|
|
1719
|
-
var len1 = WASM_VECTOR_LEN;
|
|
1720
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1721
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1722
|
-
};
|
|
1723
|
-
imports.wbg.__wbg_wbindgenthrow_451ec1a8469d7eb6 = function (arg0, arg1) {
|
|
1724
|
-
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
1725
|
-
};
|
|
1726
1838
|
imports.wbg.__wbg_webworkercreation_new = function (arg0) {
|
|
1727
1839
|
const ret = WebWorkerCreation.__wrap(arg0);
|
|
1728
1840
|
return addHeapObject(ret);
|
|
@@ -1731,21 +1843,21 @@ function __wbg_get_imports() {
|
|
|
1731
1843
|
const ret = WebWorkerTermination.__wrap(arg0);
|
|
1732
1844
|
return addHeapObject(ret);
|
|
1733
1845
|
};
|
|
1734
|
-
imports.wbg.
|
|
1735
|
-
return handleError(function (arg0, arg1, arg2
|
|
1736
|
-
const ret = getObject(arg0).write(getArrayU8FromWasm0(arg1, arg2)
|
|
1846
|
+
imports.wbg.__wbg_write_168f9ac956b6841e = function () {
|
|
1847
|
+
return handleError(function (arg0, arg1, arg2) {
|
|
1848
|
+
const ret = getObject(arg0).write(getArrayU8FromWasm0(arg1, arg2));
|
|
1737
1849
|
return ret;
|
|
1738
1850
|
}, arguments);
|
|
1739
1851
|
};
|
|
1740
|
-
imports.wbg.
|
|
1741
|
-
return handleError(function (arg0, arg1, arg2) {
|
|
1742
|
-
const ret = getObject(arg0).write(getArrayU8FromWasm0(arg1, arg2));
|
|
1852
|
+
imports.wbg.__wbg_write_f87f327ea3e1dd4b = function () {
|
|
1853
|
+
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1854
|
+
const ret = getObject(arg0).write(getArrayU8FromWasm0(arg1, arg2), getObject(arg3));
|
|
1743
1855
|
return ret;
|
|
1744
1856
|
}, arguments);
|
|
1745
1857
|
};
|
|
1746
|
-
imports.wbg.
|
|
1747
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1748
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1858
|
+
imports.wbg.__wbindgen_cast_2186c16e70180b61 = function (arg0, arg1) {
|
|
1859
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 1979, function: Function { arguments: [], shim_idx: 1980, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1860
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_29447, __wasm_bindgen_func_elem_29449);
|
|
1749
1861
|
return addHeapObject(ret);
|
|
1750
1862
|
};
|
|
1751
1863
|
imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function (arg0, arg1) {
|
|
@@ -1753,19 +1865,14 @@ function __wbg_get_imports() {
|
|
|
1753
1865
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
1754
1866
|
return addHeapObject(ret);
|
|
1755
1867
|
};
|
|
1756
|
-
imports.wbg.
|
|
1757
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1758
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1868
|
+
imports.wbg.__wbindgen_cast_35bebb901e7f6fa2 = function (arg0, arg1) {
|
|
1869
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 8668, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 8669, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1870
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_152887, __wasm_bindgen_func_elem_152888);
|
|
1759
1871
|
return addHeapObject(ret);
|
|
1760
1872
|
};
|
|
1761
|
-
imports.wbg.
|
|
1762
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1763
|
-
const ret =
|
|
1764
|
-
return addHeapObject(ret);
|
|
1765
|
-
};
|
|
1766
|
-
imports.wbg.__wbindgen_cast_2f6a6fd4f0631b92 = function (arg0, arg1) {
|
|
1767
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 8641, function: Function { arguments: [], shim_idx: 609, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1768
|
-
const ret = makeMutClosure(arg0, arg1, 8641, __wbg_adapter_22);
|
|
1873
|
+
imports.wbg.__wbindgen_cast_43648e8156dd6414 = function (arg0, arg1) {
|
|
1874
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 8650, function: Function { arguments: [NamedExternref("Array<any>")], shim_idx: 8651, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
|
|
1875
|
+
const ret = makeClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_152626, __wasm_bindgen_func_elem_152627);
|
|
1769
1876
|
return addHeapObject(ret);
|
|
1770
1877
|
};
|
|
1771
1878
|
imports.wbg.__wbindgen_cast_4625c577ab2ec9ee = function (arg0) {
|
|
@@ -1773,23 +1880,16 @@ function __wbg_get_imports() {
|
|
|
1773
1880
|
const ret = BigInt.asUintN(64, arg0);
|
|
1774
1881
|
return addHeapObject(ret);
|
|
1775
1882
|
};
|
|
1776
|
-
imports.wbg.__wbindgen_cast_5514ffff27ccb093 = function (arg0, arg1) {
|
|
1777
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 8623, function: Function { arguments: [NamedExternref("Array<any>")], shim_idx: 8624, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
|
|
1778
|
-
const ret = makeClosure(arg0, arg1, 8623, __wbg_adapter_27);
|
|
1779
|
-
return addHeapObject(ret);
|
|
1780
|
-
};
|
|
1781
1883
|
imports.wbg.__wbindgen_cast_76322aab70622876 = function (arg0, arg1) {
|
|
1782
1884
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
1783
|
-
wasm.
|
|
1885
|
+
wasm.__wbindgen_export4(arg0, arg1 * 4, 4);
|
|
1784
1886
|
// Cast intrinsic for `Vector(NamedExternref("DirEntry")) -> Externref`.
|
|
1785
1887
|
const ret = v0;
|
|
1786
1888
|
return addHeapObject(ret);
|
|
1787
1889
|
};
|
|
1788
|
-
imports.wbg.
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
// Cast intrinsic for `Vector(U8) -> Externref`.
|
|
1792
|
-
const ret = v0;
|
|
1890
|
+
imports.wbg.__wbindgen_cast_8df4b0c353715d78 = function (arg0, arg1) {
|
|
1891
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 8673, function: Function { arguments: [Ref(NamedExternref("MessageEvent"))], shim_idx: 8674, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1892
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_152942, __wasm_bindgen_func_elem_152943);
|
|
1793
1893
|
return addHeapObject(ret);
|
|
1794
1894
|
};
|
|
1795
1895
|
imports.wbg.__wbindgen_cast_9ae0607507abb057 = function (arg0) {
|
|
@@ -1797,17 +1897,22 @@ function __wbg_get_imports() {
|
|
|
1797
1897
|
const ret = arg0;
|
|
1798
1898
|
return addHeapObject(ret);
|
|
1799
1899
|
};
|
|
1900
|
+
imports.wbg.__wbindgen_cast_a3875f87f8ffe20a = function (arg0, arg1) {
|
|
1901
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 8676, function: Function { arguments: [], shim_idx: 1980, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1902
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_152950, __wasm_bindgen_func_elem_29449);
|
|
1903
|
+
return addHeapObject(ret);
|
|
1904
|
+
};
|
|
1905
|
+
imports.wbg.__wbindgen_cast_b9410f9b8278ccec = function (arg0, arg1) {
|
|
1906
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 8668, function: Function { arguments: [Externref], shim_idx: 8669, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1907
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_152887, __wasm_bindgen_func_elem_152888);
|
|
1908
|
+
return addHeapObject(ret);
|
|
1909
|
+
};
|
|
1800
1910
|
imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function (arg0) {
|
|
1801
1911
|
// Cast intrinsic for `F64 -> Externref`.
|
|
1802
1912
|
const ret = arg0;
|
|
1803
1913
|
return addHeapObject(ret);
|
|
1804
1914
|
};
|
|
1805
|
-
imports.wbg.
|
|
1806
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 8646, function: Function { arguments: [Ref(NamedExternref("MessageEvent"))], shim_idx: 8647, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1807
|
-
const ret = makeMutClosure(arg0, arg1, 8646, __wbg_adapter_17);
|
|
1808
|
-
return addHeapObject(ret);
|
|
1809
|
-
};
|
|
1810
|
-
imports.wbg.__wbindgen_link_dd5153a359f2e504 = function (arg0) {
|
|
1915
|
+
imports.wbg.__wbindgen_link_203404ece0e9bab9 = function (arg0) {
|
|
1811
1916
|
const val = `onmessage = function (ev) {
|
|
1812
1917
|
let [ia, index, value] = ev.data;
|
|
1813
1918
|
ia = new Int32Array(ia.buffer);
|
|
@@ -1816,7 +1921,7 @@ function __wbg_get_imports() {
|
|
|
1816
1921
|
};
|
|
1817
1922
|
`;
|
|
1818
1923
|
const ret = typeof URL.createObjectURL === 'undefined' ? "data:application/javascript," + encodeURIComponent(val) : URL.createObjectURL(new Blob([val], { type: "text/javascript" }));
|
|
1819
|
-
const ptr1 = passStringToWasm0(ret, wasm.
|
|
1924
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1820
1925
|
const len1 = WASM_VECTOR_LEN;
|
|
1821
1926
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1822
1927
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
@@ -1828,11 +1933,9 @@ function __wbg_get_imports() {
|
|
|
1828
1933
|
imports.wbg.__wbindgen_object_drop_ref = function (arg0) {
|
|
1829
1934
|
takeObject(arg0);
|
|
1830
1935
|
};
|
|
1936
|
+
imports.wbg.memory = memory || new WebAssembly.Memory({ initial: 1025, maximum: 65536, shared: true });
|
|
1831
1937
|
return imports;
|
|
1832
1938
|
}
|
|
1833
|
-
function __wbg_init_memory(imports, memory) {
|
|
1834
|
-
imports.wbg.memory = memory || new WebAssembly.Memory({ initial: 130, maximum: 65536, shared: true });
|
|
1835
|
-
}
|
|
1836
1939
|
function __wbg_finalize_init(instance, module, thread_stack_size) {
|
|
1837
1940
|
wasm = instance.exports;
|
|
1838
1941
|
__wbg_init.__wbindgen_wasm_module = module;
|
|
@@ -1856,8 +1959,7 @@ function initSync(module, memory) {
|
|
|
1856
1959
|
console.warn('using deprecated parameters for `initSync()`; pass a single object instead');
|
|
1857
1960
|
}
|
|
1858
1961
|
}
|
|
1859
|
-
const imports = __wbg_get_imports();
|
|
1860
|
-
__wbg_init_memory(imports, memory);
|
|
1962
|
+
const imports = __wbg_get_imports(memory);
|
|
1861
1963
|
if (!(module instanceof WebAssembly.Module)) {
|
|
1862
1964
|
module = new WebAssembly.Module(module);
|
|
1863
1965
|
}
|
|
@@ -1879,11 +1981,10 @@ async function __wbg_init(module_or_path, memory) {
|
|
|
1879
1981
|
if (typeof module_or_path === 'undefined') {
|
|
1880
1982
|
module_or_path = new URL('index_bg.wasm', import.meta.url);
|
|
1881
1983
|
}
|
|
1882
|
-
const imports = __wbg_get_imports();
|
|
1984
|
+
const imports = __wbg_get_imports(memory);
|
|
1883
1985
|
if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
|
|
1884
1986
|
module_or_path = fetch(module_or_path);
|
|
1885
1987
|
}
|
|
1886
|
-
__wbg_init_memory(imports, memory);
|
|
1887
1988
|
const { instance, module } = await __wbg_load(await module_or_path, imports);
|
|
1888
1989
|
return __wbg_finalize_init(instance, module, thread_stack_size);
|
|
1889
1990
|
}
|