@contentauth/c2pa-wasm 0.3.2 → 0.4.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/package.json +1 -1
- package/pkg/c2pa.d.ts +75 -47
- package/pkg/c2pa.js +458 -333
- package/pkg/c2pa_bg.wasm +0 -0
- package/pkg/c2pa_bg.wasm.d.ts +29 -23
package/pkg/c2pa.js
CHANGED
|
@@ -9,16 +9,16 @@ function getUint8ArrayMemory0() {
|
|
|
9
9
|
return cachedUint8ArrayMemory0;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
let cachedTextDecoder =
|
|
12
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
cachedTextDecoder.decode();
|
|
15
15
|
|
|
16
16
|
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
17
17
|
let numBytesDecoded = 0;
|
|
18
18
|
function decodeText(ptr, len) {
|
|
19
19
|
numBytesDecoded += len;
|
|
20
20
|
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
21
|
-
cachedTextDecoder =
|
|
21
|
+
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
22
22
|
cachedTextDecoder.decode();
|
|
23
23
|
numBytesDecoded = len;
|
|
24
24
|
}
|
|
@@ -30,80 +30,8 @@ function getStringFromWasm0(ptr, len) {
|
|
|
30
30
|
return decodeText(ptr, len);
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
function
|
|
34
|
-
|
|
35
|
-
wasm.__wbindgen_export_2.set(idx, obj);
|
|
36
|
-
return idx;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
function handleError(f, args) {
|
|
40
|
-
try {
|
|
41
|
-
return f.apply(this, args);
|
|
42
|
-
} catch (e) {
|
|
43
|
-
const idx = addToExternrefTable0(e);
|
|
44
|
-
wasm.__wbindgen_exn_store(idx);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
function getArrayU8FromWasm0(ptr, len) {
|
|
49
|
-
ptr = ptr >>> 0;
|
|
50
|
-
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
let WASM_VECTOR_LEN = 0;
|
|
54
|
-
|
|
55
|
-
const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
|
|
56
|
-
|
|
57
|
-
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
58
|
-
? function (arg, view) {
|
|
59
|
-
return cachedTextEncoder.encodeInto(arg, view);
|
|
60
|
-
}
|
|
61
|
-
: function (arg, view) {
|
|
62
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
63
|
-
view.set(buf);
|
|
64
|
-
return {
|
|
65
|
-
read: arg.length,
|
|
66
|
-
written: buf.length
|
|
67
|
-
};
|
|
68
|
-
});
|
|
69
|
-
|
|
70
|
-
function passStringToWasm0(arg, malloc, realloc) {
|
|
71
|
-
|
|
72
|
-
if (realloc === undefined) {
|
|
73
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
74
|
-
const ptr = malloc(buf.length, 1) >>> 0;
|
|
75
|
-
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
76
|
-
WASM_VECTOR_LEN = buf.length;
|
|
77
|
-
return ptr;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
let len = arg.length;
|
|
81
|
-
let ptr = malloc(len, 1) >>> 0;
|
|
82
|
-
|
|
83
|
-
const mem = getUint8ArrayMemory0();
|
|
84
|
-
|
|
85
|
-
let offset = 0;
|
|
86
|
-
|
|
87
|
-
for (; offset < len; offset++) {
|
|
88
|
-
const code = arg.charCodeAt(offset);
|
|
89
|
-
if (code > 0x7F) break;
|
|
90
|
-
mem[ptr + offset] = code;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
if (offset !== len) {
|
|
94
|
-
if (offset !== 0) {
|
|
95
|
-
arg = arg.slice(offset);
|
|
96
|
-
}
|
|
97
|
-
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
98
|
-
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
99
|
-
const ret = encodeString(arg, view);
|
|
100
|
-
|
|
101
|
-
offset += ret.written;
|
|
102
|
-
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
WASM_VECTOR_LEN = offset;
|
|
106
|
-
return ptr;
|
|
33
|
+
function isLikeNone(x) {
|
|
34
|
+
return x === undefined || x === null;
|
|
107
35
|
}
|
|
108
36
|
|
|
109
37
|
let cachedDataViewMemory0 = null;
|
|
@@ -115,10 +43,6 @@ function getDataViewMemory0() {
|
|
|
115
43
|
return cachedDataViewMemory0;
|
|
116
44
|
}
|
|
117
45
|
|
|
118
|
-
function isLikeNone(x) {
|
|
119
|
-
return x === undefined || x === null;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
46
|
function debugString(val) {
|
|
123
47
|
// primitive types
|
|
124
48
|
const type = typeof val;
|
|
@@ -184,13 +108,83 @@ function debugString(val) {
|
|
|
184
108
|
return className;
|
|
185
109
|
}
|
|
186
110
|
|
|
111
|
+
let WASM_VECTOR_LEN = 0;
|
|
112
|
+
|
|
113
|
+
const cachedTextEncoder = new TextEncoder();
|
|
114
|
+
|
|
115
|
+
if (!('encodeInto' in cachedTextEncoder)) {
|
|
116
|
+
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
117
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
118
|
+
view.set(buf);
|
|
119
|
+
return {
|
|
120
|
+
read: arg.length,
|
|
121
|
+
written: buf.length
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
127
|
+
|
|
128
|
+
if (realloc === undefined) {
|
|
129
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
130
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
131
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
132
|
+
WASM_VECTOR_LEN = buf.length;
|
|
133
|
+
return ptr;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
let len = arg.length;
|
|
137
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
138
|
+
|
|
139
|
+
const mem = getUint8ArrayMemory0();
|
|
140
|
+
|
|
141
|
+
let offset = 0;
|
|
142
|
+
|
|
143
|
+
for (; offset < len; offset++) {
|
|
144
|
+
const code = arg.charCodeAt(offset);
|
|
145
|
+
if (code > 0x7F) break;
|
|
146
|
+
mem[ptr + offset] = code;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
if (offset !== len) {
|
|
150
|
+
if (offset !== 0) {
|
|
151
|
+
arg = arg.slice(offset);
|
|
152
|
+
}
|
|
153
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
154
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
155
|
+
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
156
|
+
|
|
157
|
+
offset += ret.written;
|
|
158
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
WASM_VECTOR_LEN = offset;
|
|
162
|
+
return ptr;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
function addToExternrefTable0(obj) {
|
|
166
|
+
const idx = wasm.__externref_table_alloc();
|
|
167
|
+
wasm.__wbindgen_externrefs.set(idx, obj);
|
|
168
|
+
return idx;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
function handleError(f, args) {
|
|
172
|
+
try {
|
|
173
|
+
return f.apply(this, args);
|
|
174
|
+
} catch (e) {
|
|
175
|
+
const idx = addToExternrefTable0(e);
|
|
176
|
+
wasm.__wbindgen_exn_store(idx);
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
181
|
+
ptr = ptr >>> 0;
|
|
182
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
183
|
+
}
|
|
184
|
+
|
|
187
185
|
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
188
186
|
? { register: () => {}, unregister: () => {} }
|
|
189
|
-
: new FinalizationRegistry(
|
|
190
|
-
state => {
|
|
191
|
-
wasm.__wbindgen_export_6.get(state.dtor)(state.a, state.b);
|
|
192
|
-
}
|
|
193
|
-
);
|
|
187
|
+
: new FinalizationRegistry(state => state.dtor(state.a, state.b));
|
|
194
188
|
|
|
195
189
|
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
196
190
|
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
@@ -205,21 +199,23 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
205
199
|
try {
|
|
206
200
|
return f(a, state.b, ...args);
|
|
207
201
|
} finally {
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
202
|
+
state.a = a;
|
|
203
|
+
real._wbg_cb_unref();
|
|
204
|
+
}
|
|
205
|
+
};
|
|
206
|
+
real._wbg_cb_unref = () => {
|
|
207
|
+
if (--state.cnt === 0) {
|
|
208
|
+
state.dtor(state.a, state.b);
|
|
209
|
+
state.a = 0;
|
|
210
|
+
CLOSURE_DTORS.unregister(state);
|
|
214
211
|
}
|
|
215
212
|
};
|
|
216
|
-
real.original = state;
|
|
217
213
|
CLOSURE_DTORS.register(real, state, state);
|
|
218
214
|
return real;
|
|
219
215
|
}
|
|
220
216
|
|
|
221
217
|
function takeFromExternrefTable0(idx) {
|
|
222
|
-
const value = wasm.
|
|
218
|
+
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
223
219
|
wasm.__externref_table_dealloc(idx);
|
|
224
220
|
return value;
|
|
225
221
|
}
|
|
@@ -243,18 +239,20 @@ export function loadSettings(settings) {
|
|
|
243
239
|
}
|
|
244
240
|
}
|
|
245
241
|
|
|
246
|
-
function
|
|
247
|
-
wasm.
|
|
242
|
+
function wasm_bindgen__convert__closures_____invoke__hbb73f02d9cb5eeb0(arg0, arg1) {
|
|
243
|
+
wasm.wasm_bindgen__convert__closures_____invoke__hbb73f02d9cb5eeb0(arg0, arg1);
|
|
248
244
|
}
|
|
249
245
|
|
|
250
|
-
function
|
|
251
|
-
wasm.
|
|
246
|
+
function wasm_bindgen__convert__closures_____invoke__hedbe22ff1e6181ec(arg0, arg1, arg2) {
|
|
247
|
+
wasm.wasm_bindgen__convert__closures_____invoke__hedbe22ff1e6181ec(arg0, arg1, arg2);
|
|
252
248
|
}
|
|
253
249
|
|
|
254
|
-
function
|
|
255
|
-
wasm.
|
|
250
|
+
function wasm_bindgen__convert__closures_____invoke__h1fd2c9ff95892b8d(arg0, arg1, arg2, arg3) {
|
|
251
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h1fd2c9ff95892b8d(arg0, arg1, arg2, arg3);
|
|
256
252
|
}
|
|
257
253
|
|
|
254
|
+
const __wbindgen_enum_RequestCache = ["default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached"];
|
|
255
|
+
|
|
258
256
|
const __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
|
|
259
257
|
|
|
260
258
|
const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"];
|
|
@@ -287,19 +285,66 @@ export class WasmBuilder {
|
|
|
287
285
|
wasm.__wbg_wasmbuilder_free(ptr, 0);
|
|
288
286
|
}
|
|
289
287
|
/**
|
|
290
|
-
*
|
|
291
|
-
* @param {
|
|
288
|
+
* Add an action to the manifest's `Actions` assertion.
|
|
289
|
+
* @param {any} action
|
|
290
|
+
*/
|
|
291
|
+
addAction(action) {
|
|
292
|
+
const ret = wasm.wasmbuilder_addAction(this.__wbg_ptr, action);
|
|
293
|
+
if (ret[1]) {
|
|
294
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
/**
|
|
298
|
+
* Sets the builder "intent."
|
|
299
|
+
* @param {any} json_intent
|
|
300
|
+
*/
|
|
301
|
+
setIntent(json_intent) {
|
|
302
|
+
const ret = wasm.wasmbuilder_setIntent(this.__wbg_ptr, json_intent);
|
|
303
|
+
if (ret[1]) {
|
|
304
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
/**
|
|
308
|
+
* "Save" a builder to an archive.
|
|
309
|
+
* @returns {Uint8Array}
|
|
310
|
+
*/
|
|
311
|
+
toArchive() {
|
|
312
|
+
const ret = wasm.wasmbuilder_toArchive(this.__wbg_ptr);
|
|
313
|
+
if (ret[2]) {
|
|
314
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
315
|
+
}
|
|
316
|
+
return takeFromExternrefTable0(ret[0]);
|
|
317
|
+
}
|
|
318
|
+
/**
|
|
319
|
+
* Attempts to create a new `WasmBuilder` from a builder archive.
|
|
320
|
+
* @param {Blob} archive
|
|
292
321
|
* @returns {WasmBuilder}
|
|
293
322
|
*/
|
|
294
|
-
static
|
|
295
|
-
const
|
|
296
|
-
const len0 = WASM_VECTOR_LEN;
|
|
297
|
-
const ret = wasm.wasmbuilder_fromJson(ptr0, len0);
|
|
323
|
+
static fromArchive(archive) {
|
|
324
|
+
const ret = wasm.wasmbuilder_fromArchive(archive);
|
|
298
325
|
if (ret[2]) {
|
|
299
326
|
throw takeFromExternrefTable0(ret[1]);
|
|
300
327
|
}
|
|
301
328
|
return WasmBuilder.__wrap(ret[0]);
|
|
302
329
|
}
|
|
330
|
+
/**
|
|
331
|
+
* Sets the state of the no_embed flag.
|
|
332
|
+
* @param {boolean} no_embed
|
|
333
|
+
*/
|
|
334
|
+
setNoEmbed(no_embed) {
|
|
335
|
+
wasm.wasmbuilder_setNoEmbed(this.__wbg_ptr, no_embed);
|
|
336
|
+
}
|
|
337
|
+
/**
|
|
338
|
+
* Get the current manifest definition.
|
|
339
|
+
* @returns {string}
|
|
340
|
+
*/
|
|
341
|
+
getDefinition() {
|
|
342
|
+
const ret = wasm.wasmbuilder_getDefinition(this.__wbg_ptr);
|
|
343
|
+
if (ret[2]) {
|
|
344
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
345
|
+
}
|
|
346
|
+
return takeFromExternrefTable0(ret[0]);
|
|
347
|
+
}
|
|
303
348
|
/**
|
|
304
349
|
* Sets the remote_url for a remote manifest.
|
|
305
350
|
*
|
|
@@ -313,11 +358,17 @@ export class WasmBuilder {
|
|
|
313
358
|
wasm.wasmbuilder_setRemoteUrl(this.__wbg_ptr, ptr0, len0);
|
|
314
359
|
}
|
|
315
360
|
/**
|
|
316
|
-
*
|
|
317
|
-
* @param {
|
|
361
|
+
* Add a [`Blob`] to the manifest as a resource. The ID must match an identifier in the manifest.
|
|
362
|
+
* @param {string} id
|
|
363
|
+
* @param {Blob} blob
|
|
318
364
|
*/
|
|
319
|
-
|
|
320
|
-
wasm.
|
|
365
|
+
addResourceFromBlob(id, blob) {
|
|
366
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
367
|
+
const len0 = WASM_VECTOR_LEN;
|
|
368
|
+
const ret = wasm.wasmbuilder_addResourceFromBlob(this.__wbg_ptr, ptr0, len0, blob);
|
|
369
|
+
if (ret[1]) {
|
|
370
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
371
|
+
}
|
|
321
372
|
}
|
|
322
373
|
/**
|
|
323
374
|
* Sets a thumbnail from a [`Blob`] to be included in the manifest. The thumbnail should represent the asset being signed.
|
|
@@ -354,28 +405,29 @@ export class WasmBuilder {
|
|
|
354
405
|
}
|
|
355
406
|
}
|
|
356
407
|
/**
|
|
357
|
-
*
|
|
358
|
-
*
|
|
359
|
-
* @param {
|
|
408
|
+
* Sign an asset using the provided SignerDefinition, format, and source Blob.
|
|
409
|
+
* Use this method to get both the manifest bytes and the bytes of the signed asset.
|
|
410
|
+
* @param {SignerDefinition} signer_definition
|
|
411
|
+
* @param {string} format
|
|
412
|
+
* @param {Blob} source
|
|
413
|
+
* @returns {Promise<any>}
|
|
360
414
|
*/
|
|
361
|
-
|
|
362
|
-
const ptr0 = passStringToWasm0(
|
|
415
|
+
signAndGetManifestBytes(signer_definition, format, source) {
|
|
416
|
+
const ptr0 = passStringToWasm0(format, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
363
417
|
const len0 = WASM_VECTOR_LEN;
|
|
364
|
-
const ret = wasm.
|
|
365
|
-
|
|
366
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
367
|
-
}
|
|
418
|
+
const ret = wasm.wasmbuilder_signAndGetManifestBytes(this.__wbg_ptr, signer_definition, ptr0, len0, source);
|
|
419
|
+
return ret;
|
|
368
420
|
}
|
|
369
421
|
/**
|
|
370
|
-
*
|
|
371
|
-
* @returns {
|
|
422
|
+
* Creates a new `WasmBuilder` with a minimal manifest definition.
|
|
423
|
+
* @returns {WasmBuilder}
|
|
372
424
|
*/
|
|
373
|
-
|
|
374
|
-
const ret = wasm.
|
|
425
|
+
static new() {
|
|
426
|
+
const ret = wasm.wasmbuilder_new();
|
|
375
427
|
if (ret[2]) {
|
|
376
428
|
throw takeFromExternrefTable0(ret[1]);
|
|
377
429
|
}
|
|
378
|
-
return
|
|
430
|
+
return WasmBuilder.__wrap(ret[0]);
|
|
379
431
|
}
|
|
380
432
|
/**
|
|
381
433
|
* Sign an asset using the provided SignerDefinition, format, and source Blob.
|
|
@@ -391,20 +443,21 @@ export class WasmBuilder {
|
|
|
391
443
|
return ret;
|
|
392
444
|
}
|
|
393
445
|
/**
|
|
394
|
-
*
|
|
395
|
-
*
|
|
396
|
-
* @
|
|
397
|
-
* @param {string} format
|
|
398
|
-
* @param {Blob} source
|
|
399
|
-
* @returns {Promise<any>}
|
|
446
|
+
* Attempts to create a new `WasmBuilder` from a JSON ManifestDefinition string.
|
|
447
|
+
* @param {string} json
|
|
448
|
+
* @returns {WasmBuilder}
|
|
400
449
|
*/
|
|
401
|
-
|
|
402
|
-
const ptr0 = passStringToWasm0(
|
|
450
|
+
static fromJson(json) {
|
|
451
|
+
const ptr0 = passStringToWasm0(json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
403
452
|
const len0 = WASM_VECTOR_LEN;
|
|
404
|
-
const ret = wasm.
|
|
405
|
-
|
|
453
|
+
const ret = wasm.wasmbuilder_fromJson(ptr0, len0);
|
|
454
|
+
if (ret[2]) {
|
|
455
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
456
|
+
}
|
|
457
|
+
return WasmBuilder.__wrap(ret[0]);
|
|
406
458
|
}
|
|
407
459
|
}
|
|
460
|
+
if (Symbol.dispose) WasmBuilder.prototype[Symbol.dispose] = WasmBuilder.prototype.free;
|
|
408
461
|
|
|
409
462
|
const WasmReaderFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
410
463
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -433,31 +486,6 @@ export class WasmReader {
|
|
|
433
486
|
const ptr = this.__destroy_into_raw();
|
|
434
487
|
wasm.__wbg_wasmreader_free(ptr, 0);
|
|
435
488
|
}
|
|
436
|
-
/**
|
|
437
|
-
* Attempts to create a new `WasmReader` from an asset format and `Blob` of the asset's bytes.
|
|
438
|
-
* @param {string} format
|
|
439
|
-
* @param {Blob} blob
|
|
440
|
-
* @returns {Promise<WasmReader>}
|
|
441
|
-
*/
|
|
442
|
-
static fromBlob(format, blob) {
|
|
443
|
-
const ptr0 = passStringToWasm0(format, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
444
|
-
const len0 = WASM_VECTOR_LEN;
|
|
445
|
-
const ret = wasm.wasmreader_fromBlob(ptr0, len0, blob);
|
|
446
|
-
return ret;
|
|
447
|
-
}
|
|
448
|
-
/**
|
|
449
|
-
* Attempts to create a new `WasmReader` from an asset format, a `Blob` of the bytes of the initial segment, and a fragment `Blob`.
|
|
450
|
-
* @param {string} format
|
|
451
|
-
* @param {Blob} init
|
|
452
|
-
* @param {Blob} fragment
|
|
453
|
-
* @returns {Promise<WasmReader>}
|
|
454
|
-
*/
|
|
455
|
-
static fromBlobFragment(format, init, fragment) {
|
|
456
|
-
const ptr0 = passStringToWasm0(format, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
457
|
-
const len0 = WASM_VECTOR_LEN;
|
|
458
|
-
const ret = wasm.wasmreader_fromBlobFragment(ptr0, len0, init, fragment);
|
|
459
|
-
return ret;
|
|
460
|
-
}
|
|
461
489
|
/**
|
|
462
490
|
* Returns the label of the asset's active manifest.
|
|
463
491
|
* @returns {string | undefined}
|
|
@@ -473,7 +501,6 @@ export class WasmReader {
|
|
|
473
501
|
}
|
|
474
502
|
/**
|
|
475
503
|
* Returns the asset's manifest store.
|
|
476
|
-
* NOTE: at the moment, CAWG data is not decoded via this function. Use WasmReader::json() if CAWG is a requirement.
|
|
477
504
|
* @returns {any}
|
|
478
505
|
*/
|
|
479
506
|
manifestStore() {
|
|
@@ -485,7 +512,6 @@ export class WasmReader {
|
|
|
485
512
|
}
|
|
486
513
|
/**
|
|
487
514
|
* Returns the asset's active manifest.
|
|
488
|
-
* NOTE: at the moment, CAWG data is not decoded via this function. Use WasmReader::json() if CAWG is a requirement.
|
|
489
515
|
* @returns {any}
|
|
490
516
|
*/
|
|
491
517
|
activeManifest() {
|
|
@@ -495,6 +521,33 @@ export class WasmReader {
|
|
|
495
521
|
}
|
|
496
522
|
return takeFromExternrefTable0(ret[0]);
|
|
497
523
|
}
|
|
524
|
+
/**
|
|
525
|
+
* Accepts a URI reference to a binary object in the resource store and returns a `js_sys::Uint8Array` containing the resource's bytes.
|
|
526
|
+
* @param {string} uri
|
|
527
|
+
* @returns {Uint8Array}
|
|
528
|
+
*/
|
|
529
|
+
resourceToBytes(uri) {
|
|
530
|
+
const ptr0 = passStringToWasm0(uri, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
531
|
+
const len0 = WASM_VECTOR_LEN;
|
|
532
|
+
const ret = wasm.wasmreader_resourceToBytes(this.__wbg_ptr, ptr0, len0);
|
|
533
|
+
if (ret[2]) {
|
|
534
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
535
|
+
}
|
|
536
|
+
return takeFromExternrefTable0(ret[0]);
|
|
537
|
+
}
|
|
538
|
+
/**
|
|
539
|
+
* Attempts to create a new `WasmReader` from an asset format, a `Blob` of the bytes of the initial segment, and a fragment `Blob`.
|
|
540
|
+
* @param {string} format
|
|
541
|
+
* @param {Blob} init
|
|
542
|
+
* @param {Blob} fragment
|
|
543
|
+
* @returns {Promise<WasmReader>}
|
|
544
|
+
*/
|
|
545
|
+
static fromBlobFragment(format, init, fragment) {
|
|
546
|
+
const ptr0 = passStringToWasm0(format, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
547
|
+
const len0 = WASM_VECTOR_LEN;
|
|
548
|
+
const ret = wasm.wasmreader_fromBlobFragment(ptr0, len0, init, fragment);
|
|
549
|
+
return ret;
|
|
550
|
+
}
|
|
498
551
|
/**
|
|
499
552
|
* Returns a JSON representation of the asset's manifest store.
|
|
500
553
|
* @returns {string}
|
|
@@ -512,20 +565,19 @@ export class WasmReader {
|
|
|
512
565
|
}
|
|
513
566
|
}
|
|
514
567
|
/**
|
|
515
|
-
*
|
|
516
|
-
* @param {string}
|
|
517
|
-
* @
|
|
568
|
+
* Attempts to create a new `WasmReader` from an asset format and `Blob` of the asset's bytes.
|
|
569
|
+
* @param {string} format
|
|
570
|
+
* @param {Blob} blob
|
|
571
|
+
* @returns {Promise<WasmReader>}
|
|
518
572
|
*/
|
|
519
|
-
|
|
520
|
-
const ptr0 = passStringToWasm0(
|
|
573
|
+
static fromBlob(format, blob) {
|
|
574
|
+
const ptr0 = passStringToWasm0(format, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
521
575
|
const len0 = WASM_VECTOR_LEN;
|
|
522
|
-
const ret = wasm.
|
|
523
|
-
|
|
524
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
525
|
-
}
|
|
526
|
-
return takeFromExternrefTable0(ret[0]);
|
|
576
|
+
const ret = wasm.wasmreader_fromBlob(ptr0, len0, blob);
|
|
577
|
+
return ret;
|
|
527
578
|
}
|
|
528
579
|
}
|
|
580
|
+
if (Symbol.dispose) WasmReader.prototype[Symbol.dispose] = WasmReader.prototype.free;
|
|
529
581
|
|
|
530
582
|
const WasmSignerFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
531
583
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -565,6 +617,7 @@ export class WasmSigner {
|
|
|
565
617
|
return WasmSigner.__wrap(ret[0]);
|
|
566
618
|
}
|
|
567
619
|
}
|
|
620
|
+
if (Symbol.dispose) WasmSigner.prototype[Symbol.dispose] = WasmSigner.prototype.free;
|
|
568
621
|
|
|
569
622
|
const EXPECTED_RESPONSE_TYPES = new Set(['basic', 'cors', 'default']);
|
|
570
623
|
|
|
@@ -604,44 +657,111 @@ async function __wbg_load(module, imports) {
|
|
|
604
657
|
function __wbg_get_imports() {
|
|
605
658
|
const imports = {};
|
|
606
659
|
imports.wbg = {};
|
|
607
|
-
imports.wbg.
|
|
660
|
+
imports.wbg.__wbg_Error_e83987f665cf5504 = function(arg0, arg1) {
|
|
608
661
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
609
662
|
return ret;
|
|
610
663
|
};
|
|
611
|
-
imports.wbg.
|
|
664
|
+
imports.wbg.__wbg_Number_bb48ca12f395cd08 = function(arg0) {
|
|
612
665
|
const ret = Number(arg0);
|
|
613
666
|
return ret;
|
|
614
667
|
};
|
|
615
|
-
imports.wbg.
|
|
616
|
-
|
|
668
|
+
imports.wbg.__wbg___wbindgen_bigint_get_as_i64_f3ebc5a755000afd = function(arg0, arg1) {
|
|
669
|
+
const v = arg1;
|
|
670
|
+
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
671
|
+
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
672
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
673
|
+
};
|
|
674
|
+
imports.wbg.__wbg___wbindgen_boolean_get_6d5a1ee65bab5f68 = function(arg0) {
|
|
675
|
+
const v = arg0;
|
|
676
|
+
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
677
|
+
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
678
|
+
};
|
|
679
|
+
imports.wbg.__wbg___wbindgen_debug_string_df47ffb5e35e6763 = function(arg0, arg1) {
|
|
680
|
+
const ret = debugString(arg1);
|
|
681
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
682
|
+
const len1 = WASM_VECTOR_LEN;
|
|
683
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
684
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
685
|
+
};
|
|
686
|
+
imports.wbg.__wbg___wbindgen_in_bb933bd9e1b3bc0f = function(arg0, arg1) {
|
|
687
|
+
const ret = arg0 in arg1;
|
|
688
|
+
return ret;
|
|
689
|
+
};
|
|
690
|
+
imports.wbg.__wbg___wbindgen_is_bigint_cb320707dcd35f0b = function(arg0) {
|
|
691
|
+
const ret = typeof(arg0) === 'bigint';
|
|
692
|
+
return ret;
|
|
693
|
+
};
|
|
694
|
+
imports.wbg.__wbg___wbindgen_is_function_ee8a6c5833c90377 = function(arg0) {
|
|
695
|
+
const ret = typeof(arg0) === 'function';
|
|
696
|
+
return ret;
|
|
697
|
+
};
|
|
698
|
+
imports.wbg.__wbg___wbindgen_is_object_c818261d21f283a4 = function(arg0) {
|
|
699
|
+
const val = arg0;
|
|
700
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
701
|
+
return ret;
|
|
617
702
|
};
|
|
618
|
-
imports.wbg.
|
|
703
|
+
imports.wbg.__wbg___wbindgen_is_string_fbb76cb2940daafd = function(arg0) {
|
|
704
|
+
const ret = typeof(arg0) === 'string';
|
|
705
|
+
return ret;
|
|
706
|
+
};
|
|
707
|
+
imports.wbg.__wbg___wbindgen_is_undefined_2d472862bd29a478 = function(arg0) {
|
|
708
|
+
const ret = arg0 === undefined;
|
|
709
|
+
return ret;
|
|
710
|
+
};
|
|
711
|
+
imports.wbg.__wbg___wbindgen_jsval_eq_6b13ab83478b1c50 = function(arg0, arg1) {
|
|
712
|
+
const ret = arg0 === arg1;
|
|
713
|
+
return ret;
|
|
714
|
+
};
|
|
715
|
+
imports.wbg.__wbg___wbindgen_jsval_loose_eq_b664b38a2f582147 = function(arg0, arg1) {
|
|
716
|
+
const ret = arg0 == arg1;
|
|
717
|
+
return ret;
|
|
718
|
+
};
|
|
719
|
+
imports.wbg.__wbg___wbindgen_number_get_a20bf9b85341449d = function(arg0, arg1) {
|
|
720
|
+
const obj = arg1;
|
|
721
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
722
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
723
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
724
|
+
};
|
|
725
|
+
imports.wbg.__wbg___wbindgen_string_get_e4f06c90489ad01b = function(arg0, arg1) {
|
|
726
|
+
const obj = arg1;
|
|
727
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
728
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
729
|
+
var len1 = WASM_VECTOR_LEN;
|
|
730
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
731
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
732
|
+
};
|
|
733
|
+
imports.wbg.__wbg___wbindgen_throw_b855445ff6a94295 = function(arg0, arg1) {
|
|
734
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
735
|
+
};
|
|
736
|
+
imports.wbg.__wbg__wbg_cb_unref_2454a539ea5790d9 = function(arg0) {
|
|
737
|
+
arg0._wbg_cb_unref();
|
|
738
|
+
};
|
|
739
|
+
imports.wbg.__wbg_abort_28ad55c5825b004d = function(arg0, arg1) {
|
|
619
740
|
arg0.abort(arg1);
|
|
620
741
|
};
|
|
621
|
-
imports.wbg.
|
|
742
|
+
imports.wbg.__wbg_abort_e7eb059f72f9ed0c = function(arg0) {
|
|
743
|
+
arg0.abort();
|
|
744
|
+
};
|
|
745
|
+
imports.wbg.__wbg_append_b577eb3a177bc0fa = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
622
746
|
arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
623
747
|
}, arguments) };
|
|
624
|
-
imports.wbg.
|
|
748
|
+
imports.wbg.__wbg_arrayBuffer_b375eccb84b4ddf3 = function() { return handleError(function (arg0) {
|
|
625
749
|
const ret = arg0.arrayBuffer();
|
|
626
750
|
return ret;
|
|
627
751
|
}, arguments) };
|
|
628
|
-
imports.wbg.
|
|
629
|
-
const ret = arg0.buffer;
|
|
630
|
-
return ret;
|
|
631
|
-
};
|
|
632
|
-
imports.wbg.__wbg_byteLength_7029fecd0c136e6d = function(arg0) {
|
|
752
|
+
imports.wbg.__wbg_byteLength_bcd42e4025299788 = function(arg0) {
|
|
633
753
|
const ret = arg0.byteLength;
|
|
634
754
|
return ret;
|
|
635
755
|
};
|
|
636
|
-
imports.wbg.
|
|
637
|
-
const ret = arg0.call(arg1);
|
|
756
|
+
imports.wbg.__wbg_call_525440f72fbfc0ea = function() { return handleError(function (arg0, arg1, arg2) {
|
|
757
|
+
const ret = arg0.call(arg1, arg2);
|
|
638
758
|
return ret;
|
|
639
759
|
}, arguments) };
|
|
640
|
-
imports.wbg.
|
|
641
|
-
const ret = arg0.call(arg1
|
|
760
|
+
imports.wbg.__wbg_call_e762c39fa8ea36bf = function() { return handleError(function (arg0, arg1) {
|
|
761
|
+
const ret = arg0.call(arg1);
|
|
642
762
|
return ret;
|
|
643
763
|
}, arguments) };
|
|
644
|
-
imports.wbg.
|
|
764
|
+
imports.wbg.__wbg_clearTimeout_7a42b49784aea641 = function(arg0) {
|
|
645
765
|
const ret = clearTimeout(arg0);
|
|
646
766
|
return ret;
|
|
647
767
|
};
|
|
@@ -649,10 +769,14 @@ function __wbg_get_imports() {
|
|
|
649
769
|
const ret = arg0.crypto;
|
|
650
770
|
return ret;
|
|
651
771
|
};
|
|
652
|
-
imports.wbg.
|
|
772
|
+
imports.wbg.__wbg_done_2042aa2670fb1db1 = function(arg0) {
|
|
653
773
|
const ret = arg0.done;
|
|
654
774
|
return ret;
|
|
655
775
|
};
|
|
776
|
+
imports.wbg.__wbg_entries_e171b586f8f6bdbf = function(arg0) {
|
|
777
|
+
const ret = Object.entries(arg0);
|
|
778
|
+
return ret;
|
|
779
|
+
};
|
|
656
780
|
imports.wbg.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
|
|
657
781
|
let deferred0_0;
|
|
658
782
|
let deferred0_1;
|
|
@@ -664,15 +788,15 @@ function __wbg_get_imports() {
|
|
|
664
788
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
665
789
|
}
|
|
666
790
|
};
|
|
667
|
-
imports.wbg.
|
|
791
|
+
imports.wbg.__wbg_fetch_74a3e84ebd2c9a0e = function(arg0) {
|
|
668
792
|
const ret = fetch(arg0);
|
|
669
793
|
return ret;
|
|
670
794
|
};
|
|
671
|
-
imports.wbg.
|
|
795
|
+
imports.wbg.__wbg_fetch_f8ba0e29a9d6de0d = function(arg0, arg1) {
|
|
672
796
|
const ret = arg0.fetch(arg1);
|
|
673
797
|
return ret;
|
|
674
798
|
};
|
|
675
|
-
imports.wbg.
|
|
799
|
+
imports.wbg.__wbg_from_a4ad7cbddd0d7135 = function(arg0) {
|
|
676
800
|
const ret = Array.from(arg0);
|
|
677
801
|
return ret;
|
|
678
802
|
};
|
|
@@ -682,23 +806,51 @@ function __wbg_get_imports() {
|
|
|
682
806
|
imports.wbg.__wbg_getRandomValues_b8f5dbd5f3995a9e = function() { return handleError(function (arg0, arg1) {
|
|
683
807
|
arg0.getRandomValues(arg1);
|
|
684
808
|
}, arguments) };
|
|
685
|
-
imports.wbg.
|
|
809
|
+
imports.wbg.__wbg_getTime_14776bfb48a1bff9 = function(arg0) {
|
|
686
810
|
const ret = arg0.getTime();
|
|
687
811
|
return ret;
|
|
688
812
|
};
|
|
689
|
-
imports.wbg.
|
|
813
|
+
imports.wbg.__wbg_get_7bed016f185add81 = function(arg0, arg1) {
|
|
814
|
+
const ret = arg0[arg1 >>> 0];
|
|
815
|
+
return ret;
|
|
816
|
+
};
|
|
817
|
+
imports.wbg.__wbg_get_efcb449f58ec27c2 = function() { return handleError(function (arg0, arg1) {
|
|
690
818
|
const ret = Reflect.get(arg0, arg1);
|
|
691
819
|
return ret;
|
|
692
820
|
}, arguments) };
|
|
693
|
-
imports.wbg.
|
|
821
|
+
imports.wbg.__wbg_get_with_ref_key_1dc361bd10053bfe = function(arg0, arg1) {
|
|
822
|
+
const ret = arg0[arg1];
|
|
823
|
+
return ret;
|
|
824
|
+
};
|
|
825
|
+
imports.wbg.__wbg_has_787fafc980c3ccdb = function() { return handleError(function (arg0, arg1) {
|
|
694
826
|
const ret = Reflect.has(arg0, arg1);
|
|
695
827
|
return ret;
|
|
696
828
|
}, arguments) };
|
|
697
|
-
imports.wbg.
|
|
829
|
+
imports.wbg.__wbg_headers_b87d7eaba61c3278 = function(arg0) {
|
|
698
830
|
const ret = arg0.headers;
|
|
699
831
|
return ret;
|
|
700
832
|
};
|
|
701
|
-
imports.wbg.
|
|
833
|
+
imports.wbg.__wbg_instanceof_ArrayBuffer_70beb1189ca63b38 = function(arg0) {
|
|
834
|
+
let result;
|
|
835
|
+
try {
|
|
836
|
+
result = arg0 instanceof ArrayBuffer;
|
|
837
|
+
} catch (_) {
|
|
838
|
+
result = false;
|
|
839
|
+
}
|
|
840
|
+
const ret = result;
|
|
841
|
+
return ret;
|
|
842
|
+
};
|
|
843
|
+
imports.wbg.__wbg_instanceof_Map_8579b5e2ab5437c7 = function(arg0) {
|
|
844
|
+
let result;
|
|
845
|
+
try {
|
|
846
|
+
result = arg0 instanceof Map;
|
|
847
|
+
} catch (_) {
|
|
848
|
+
result = false;
|
|
849
|
+
}
|
|
850
|
+
const ret = result;
|
|
851
|
+
return ret;
|
|
852
|
+
};
|
|
853
|
+
imports.wbg.__wbg_instanceof_Promise_001fdd42afa1b7ef = function(arg0) {
|
|
702
854
|
let result;
|
|
703
855
|
try {
|
|
704
856
|
result = arg0 instanceof Promise;
|
|
@@ -708,7 +860,7 @@ function __wbg_get_imports() {
|
|
|
708
860
|
const ret = result;
|
|
709
861
|
return ret;
|
|
710
862
|
};
|
|
711
|
-
imports.wbg.
|
|
863
|
+
imports.wbg.__wbg_instanceof_Response_f4f3e87e07f3135c = function(arg0) {
|
|
712
864
|
let result;
|
|
713
865
|
try {
|
|
714
866
|
result = arg0 instanceof Response;
|
|
@@ -718,11 +870,33 @@ function __wbg_get_imports() {
|
|
|
718
870
|
const ret = result;
|
|
719
871
|
return ret;
|
|
720
872
|
};
|
|
721
|
-
imports.wbg.
|
|
873
|
+
imports.wbg.__wbg_instanceof_Uint8Array_20c8e73002f7af98 = function(arg0) {
|
|
874
|
+
let result;
|
|
875
|
+
try {
|
|
876
|
+
result = arg0 instanceof Uint8Array;
|
|
877
|
+
} catch (_) {
|
|
878
|
+
result = false;
|
|
879
|
+
}
|
|
880
|
+
const ret = result;
|
|
881
|
+
return ret;
|
|
882
|
+
};
|
|
883
|
+
imports.wbg.__wbg_isArray_96e0af9891d0945d = function(arg0) {
|
|
884
|
+
const ret = Array.isArray(arg0);
|
|
885
|
+
return ret;
|
|
886
|
+
};
|
|
887
|
+
imports.wbg.__wbg_isSafeInteger_d216eda7911dde36 = function(arg0) {
|
|
888
|
+
const ret = Number.isSafeInteger(arg0);
|
|
889
|
+
return ret;
|
|
890
|
+
};
|
|
891
|
+
imports.wbg.__wbg_iterator_e5822695327a3c39 = function() {
|
|
722
892
|
const ret = Symbol.iterator;
|
|
723
893
|
return ret;
|
|
724
894
|
};
|
|
725
|
-
imports.wbg.
|
|
895
|
+
imports.wbg.__wbg_length_69bca3cb64fc8748 = function(arg0) {
|
|
896
|
+
const ret = arg0.length;
|
|
897
|
+
return ret;
|
|
898
|
+
};
|
|
899
|
+
imports.wbg.__wbg_length_cdd215e10d9dd507 = function(arg0) {
|
|
726
900
|
const ret = arg0.length;
|
|
727
901
|
return ret;
|
|
728
902
|
};
|
|
@@ -730,50 +904,30 @@ function __wbg_get_imports() {
|
|
|
730
904
|
const ret = arg0.msCrypto;
|
|
731
905
|
return ret;
|
|
732
906
|
};
|
|
733
|
-
imports.wbg.
|
|
907
|
+
imports.wbg.__wbg_new_0_f9740686d739025c = function() {
|
|
734
908
|
const ret = new Date();
|
|
735
909
|
return ret;
|
|
736
910
|
};
|
|
737
|
-
imports.wbg.
|
|
738
|
-
const ret = new
|
|
911
|
+
imports.wbg.__wbg_new_0d96c0bf6ceac0b0 = function() { return handleError(function () {
|
|
912
|
+
const ret = new FileReaderSync();
|
|
739
913
|
return ret;
|
|
740
914
|
}, arguments) };
|
|
741
|
-
imports.wbg.
|
|
915
|
+
imports.wbg.__wbg_new_1acc0b6eea89d040 = function() {
|
|
742
916
|
const ret = new Object();
|
|
743
917
|
return ret;
|
|
744
918
|
};
|
|
745
|
-
imports.wbg.
|
|
746
|
-
const ret = new Map();
|
|
747
|
-
return ret;
|
|
748
|
-
};
|
|
749
|
-
imports.wbg.__wbg_new_6a8b180049d9484e = function() { return handleError(function () {
|
|
919
|
+
imports.wbg.__wbg_new_2531773dac38ebb3 = function() { return handleError(function () {
|
|
750
920
|
const ret = new AbortController();
|
|
751
921
|
return ret;
|
|
752
922
|
}, arguments) };
|
|
753
|
-
imports.wbg.
|
|
754
|
-
const ret = new FileReaderSync();
|
|
755
|
-
return ret;
|
|
756
|
-
}, arguments) };
|
|
757
|
-
imports.wbg.__wbg_new_8a6f238a6ece86ea = function() {
|
|
758
|
-
const ret = new Error();
|
|
759
|
-
return ret;
|
|
760
|
-
};
|
|
761
|
-
imports.wbg.__wbg_new_9190433fb67ed635 = function(arg0) {
|
|
762
|
-
const ret = new Uint8Array(arg0);
|
|
763
|
-
return ret;
|
|
764
|
-
};
|
|
765
|
-
imports.wbg.__wbg_new_97ddeb994a38bb69 = function(arg0, arg1) {
|
|
766
|
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
767
|
-
return ret;
|
|
768
|
-
};
|
|
769
|
-
imports.wbg.__wbg_new_d5e3800b120e37e1 = function(arg0, arg1) {
|
|
923
|
+
imports.wbg.__wbg_new_3c3d849046688a66 = function(arg0, arg1) {
|
|
770
924
|
try {
|
|
771
925
|
var state0 = {a: arg0, b: arg1};
|
|
772
926
|
var cb0 = (arg0, arg1) => {
|
|
773
927
|
const a = state0.a;
|
|
774
928
|
state0.a = 0;
|
|
775
929
|
try {
|
|
776
|
-
return
|
|
930
|
+
return wasm_bindgen__convert__closures_____invoke__h1fd2c9ff95892b8d(a, state0.b, arg0, arg1);
|
|
777
931
|
} finally {
|
|
778
932
|
state0.a = a;
|
|
779
933
|
}
|
|
@@ -784,31 +938,51 @@ function __wbg_get_imports() {
|
|
|
784
938
|
state0.a = state0.b = 0;
|
|
785
939
|
}
|
|
786
940
|
};
|
|
787
|
-
imports.wbg.
|
|
941
|
+
imports.wbg.__wbg_new_5a79be3ab53b8aa5 = function(arg0) {
|
|
942
|
+
const ret = new Uint8Array(arg0);
|
|
943
|
+
return ret;
|
|
944
|
+
};
|
|
945
|
+
imports.wbg.__wbg_new_68651c719dcda04e = function() {
|
|
946
|
+
const ret = new Map();
|
|
947
|
+
return ret;
|
|
948
|
+
};
|
|
949
|
+
imports.wbg.__wbg_new_8a6f238a6ece86ea = function() {
|
|
950
|
+
const ret = new Error();
|
|
951
|
+
return ret;
|
|
952
|
+
};
|
|
953
|
+
imports.wbg.__wbg_new_9edf9838a2def39c = function() { return handleError(function () {
|
|
954
|
+
const ret = new Headers();
|
|
955
|
+
return ret;
|
|
956
|
+
}, arguments) };
|
|
957
|
+
imports.wbg.__wbg_new_a7442b4b19c1a356 = function(arg0, arg1) {
|
|
958
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
959
|
+
return ret;
|
|
960
|
+
};
|
|
961
|
+
imports.wbg.__wbg_new_e17d9f43105b08be = function() {
|
|
788
962
|
const ret = new Array();
|
|
789
963
|
return ret;
|
|
790
964
|
};
|
|
791
|
-
imports.wbg.
|
|
965
|
+
imports.wbg.__wbg_new_from_slice_92f4d78ca282a2d2 = function(arg0, arg1) {
|
|
792
966
|
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
793
967
|
return ret;
|
|
794
968
|
};
|
|
795
|
-
imports.wbg.
|
|
969
|
+
imports.wbg.__wbg_new_no_args_ee98eee5275000a4 = function(arg0, arg1) {
|
|
796
970
|
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
797
971
|
return ret;
|
|
798
972
|
};
|
|
799
|
-
imports.wbg.
|
|
973
|
+
imports.wbg.__wbg_new_with_length_01aa0dc35aa13543 = function(arg0) {
|
|
800
974
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
801
975
|
return ret;
|
|
802
976
|
};
|
|
803
|
-
imports.wbg.
|
|
977
|
+
imports.wbg.__wbg_new_with_str_and_init_0ae7728b6ec367b1 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
804
978
|
const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
|
|
805
979
|
return ret;
|
|
806
980
|
}, arguments) };
|
|
807
|
-
imports.wbg.
|
|
981
|
+
imports.wbg.__wbg_next_020810e0ae8ebcb0 = function() { return handleError(function (arg0) {
|
|
808
982
|
const ret = arg0.next();
|
|
809
983
|
return ret;
|
|
810
984
|
}, arguments) };
|
|
811
|
-
imports.wbg.
|
|
985
|
+
imports.wbg.__wbg_next_2c826fe5dfec6b6a = function(arg0) {
|
|
812
986
|
const ret = arg0.next;
|
|
813
987
|
return ret;
|
|
814
988
|
};
|
|
@@ -816,7 +990,7 @@ function __wbg_get_imports() {
|
|
|
816
990
|
const ret = arg0.node;
|
|
817
991
|
return ret;
|
|
818
992
|
};
|
|
819
|
-
imports.wbg.
|
|
993
|
+
imports.wbg.__wbg_now_793306c526e2e3b6 = function() {
|
|
820
994
|
const ret = Date.now();
|
|
821
995
|
return ret;
|
|
822
996
|
};
|
|
@@ -824,20 +998,20 @@ function __wbg_get_imports() {
|
|
|
824
998
|
const ret = arg0.process;
|
|
825
999
|
return ret;
|
|
826
1000
|
};
|
|
827
|
-
imports.wbg.
|
|
1001
|
+
imports.wbg.__wbg_prototypesetcall_2a6620b6922694b2 = function(arg0, arg1, arg2) {
|
|
828
1002
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
829
1003
|
};
|
|
830
|
-
imports.wbg.
|
|
1004
|
+
imports.wbg.__wbg_queueMicrotask_34d692c25c47d05b = function(arg0) {
|
|
831
1005
|
const ret = arg0.queueMicrotask;
|
|
832
1006
|
return ret;
|
|
833
1007
|
};
|
|
834
|
-
imports.wbg.
|
|
1008
|
+
imports.wbg.__wbg_queueMicrotask_9d76cacb20c84d58 = function(arg0) {
|
|
835
1009
|
queueMicrotask(arg0);
|
|
836
1010
|
};
|
|
837
1011
|
imports.wbg.__wbg_randomFillSync_ac0988aba3254290 = function() { return handleError(function (arg0, arg1) {
|
|
838
1012
|
arg0.randomFillSync(arg1);
|
|
839
1013
|
}, arguments) };
|
|
840
|
-
imports.wbg.
|
|
1014
|
+
imports.wbg.__wbg_readAsArrayBuffer_36927e3348e676c3 = function() { return handleError(function (arg0, arg1) {
|
|
841
1015
|
const ret = arg0.readAsArrayBuffer(arg1);
|
|
842
1016
|
return ret;
|
|
843
1017
|
}, arguments) };
|
|
@@ -845,54 +1019,57 @@ function __wbg_get_imports() {
|
|
|
845
1019
|
const ret = module.require;
|
|
846
1020
|
return ret;
|
|
847
1021
|
}, arguments) };
|
|
848
|
-
imports.wbg.
|
|
1022
|
+
imports.wbg.__wbg_resolve_caf97c30b83f7053 = function(arg0) {
|
|
849
1023
|
const ret = Promise.resolve(arg0);
|
|
850
1024
|
return ret;
|
|
851
1025
|
};
|
|
852
|
-
imports.wbg.
|
|
1026
|
+
imports.wbg.__wbg_setTimeout_7bb3429662ab1e70 = function(arg0, arg1) {
|
|
853
1027
|
const ret = setTimeout(arg0, arg1);
|
|
854
1028
|
return ret;
|
|
855
1029
|
};
|
|
856
|
-
imports.wbg.
|
|
857
|
-
arg0
|
|
1030
|
+
imports.wbg.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
|
|
1031
|
+
arg0[arg1] = arg2;
|
|
858
1032
|
};
|
|
859
|
-
imports.wbg.
|
|
1033
|
+
imports.wbg.__wbg_set_907fb406c34a251d = function(arg0, arg1, arg2) {
|
|
860
1034
|
const ret = arg0.set(arg1, arg2);
|
|
861
1035
|
return ret;
|
|
862
1036
|
};
|
|
863
|
-
imports.wbg.
|
|
864
|
-
arg0
|
|
1037
|
+
imports.wbg.__wbg_set_9e6516df7b7d0f19 = function(arg0, arg1, arg2) {
|
|
1038
|
+
arg0.set(getArrayU8FromWasm0(arg1, arg2));
|
|
865
1039
|
};
|
|
866
|
-
imports.wbg.
|
|
1040
|
+
imports.wbg.__wbg_set_body_3c365989753d61f4 = function(arg0, arg1) {
|
|
1041
|
+
arg0.body = arg1;
|
|
1042
|
+
};
|
|
1043
|
+
imports.wbg.__wbg_set_c213c871859d6500 = function(arg0, arg1, arg2) {
|
|
867
1044
|
arg0[arg1 >>> 0] = arg2;
|
|
868
1045
|
};
|
|
869
|
-
imports.wbg.
|
|
870
|
-
arg0.
|
|
1046
|
+
imports.wbg.__wbg_set_cache_2f9deb19b92b81e3 = function(arg0, arg1) {
|
|
1047
|
+
arg0.cache = __wbindgen_enum_RequestCache[arg1];
|
|
871
1048
|
};
|
|
872
|
-
imports.wbg.
|
|
1049
|
+
imports.wbg.__wbg_set_credentials_f621cd2d85c0c228 = function(arg0, arg1) {
|
|
873
1050
|
arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
|
|
874
1051
|
};
|
|
875
|
-
imports.wbg.
|
|
1052
|
+
imports.wbg.__wbg_set_headers_6926da238cd32ee4 = function(arg0, arg1) {
|
|
876
1053
|
arg0.headers = arg1;
|
|
877
1054
|
};
|
|
878
|
-
imports.wbg.
|
|
1055
|
+
imports.wbg.__wbg_set_method_c02d8cbbe204ac2d = function(arg0, arg1, arg2) {
|
|
879
1056
|
arg0.method = getStringFromWasm0(arg1, arg2);
|
|
880
1057
|
};
|
|
881
|
-
imports.wbg.
|
|
1058
|
+
imports.wbg.__wbg_set_mode_52ef73cfa79639cb = function(arg0, arg1) {
|
|
882
1059
|
arg0.mode = __wbindgen_enum_RequestMode[arg1];
|
|
883
1060
|
};
|
|
884
|
-
imports.wbg.
|
|
1061
|
+
imports.wbg.__wbg_set_signal_dda2cf7ccb6bee0f = function(arg0, arg1) {
|
|
885
1062
|
arg0.signal = arg1;
|
|
886
1063
|
};
|
|
887
|
-
imports.wbg.
|
|
1064
|
+
imports.wbg.__wbg_signal_4db5aa055bf9eb9a = function(arg0) {
|
|
888
1065
|
const ret = arg0.signal;
|
|
889
1066
|
return ret;
|
|
890
1067
|
};
|
|
891
|
-
imports.wbg.
|
|
1068
|
+
imports.wbg.__wbg_size_0a5a003dbf5dfee8 = function(arg0) {
|
|
892
1069
|
const ret = arg0.size;
|
|
893
1070
|
return ret;
|
|
894
1071
|
};
|
|
895
|
-
imports.wbg.
|
|
1072
|
+
imports.wbg.__wbg_slice_4947c0e051116da5 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
896
1073
|
const ret = arg0.slice(arg1, arg2);
|
|
897
1074
|
return ret;
|
|
898
1075
|
}, arguments) };
|
|
@@ -903,54 +1080,54 @@ function __wbg_get_imports() {
|
|
|
903
1080
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
904
1081
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
905
1082
|
};
|
|
906
|
-
imports.wbg.
|
|
1083
|
+
imports.wbg.__wbg_static_accessor_GLOBAL_89e1d9ac6a1b250e = function() {
|
|
907
1084
|
const ret = typeof global === 'undefined' ? null : global;
|
|
908
1085
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
909
1086
|
};
|
|
910
|
-
imports.wbg.
|
|
1087
|
+
imports.wbg.__wbg_static_accessor_GLOBAL_THIS_8b530f326a9e48ac = function() {
|
|
911
1088
|
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
912
1089
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
913
1090
|
};
|
|
914
|
-
imports.wbg.
|
|
1091
|
+
imports.wbg.__wbg_static_accessor_SELF_6fdf4b64710cc91b = function() {
|
|
915
1092
|
const ret = typeof self === 'undefined' ? null : self;
|
|
916
1093
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
917
1094
|
};
|
|
918
|
-
imports.wbg.
|
|
1095
|
+
imports.wbg.__wbg_static_accessor_WINDOW_b45bfc5a37f6cfa2 = function() {
|
|
919
1096
|
const ret = typeof window === 'undefined' ? null : window;
|
|
920
1097
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
921
1098
|
};
|
|
922
|
-
imports.wbg.
|
|
1099
|
+
imports.wbg.__wbg_status_de7eed5a7a5bfd5d = function(arg0) {
|
|
923
1100
|
const ret = arg0.status;
|
|
924
1101
|
return ret;
|
|
925
1102
|
};
|
|
926
|
-
imports.wbg.
|
|
1103
|
+
imports.wbg.__wbg_stringify_b5fb28f6465d9c3e = function() { return handleError(function (arg0) {
|
|
927
1104
|
const ret = JSON.stringify(arg0);
|
|
928
1105
|
return ret;
|
|
929
1106
|
}, arguments) };
|
|
930
|
-
imports.wbg.
|
|
1107
|
+
imports.wbg.__wbg_subarray_480600f3d6a9f26c = function(arg0, arg1, arg2) {
|
|
931
1108
|
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
932
1109
|
return ret;
|
|
933
1110
|
};
|
|
934
|
-
imports.wbg.
|
|
935
|
-
const ret = arg0.then(arg1
|
|
1111
|
+
imports.wbg.__wbg_then_4f46f6544e6b4a28 = function(arg0, arg1) {
|
|
1112
|
+
const ret = arg0.then(arg1);
|
|
936
1113
|
return ret;
|
|
937
1114
|
};
|
|
938
|
-
imports.wbg.
|
|
939
|
-
const ret = arg0.then(arg1);
|
|
1115
|
+
imports.wbg.__wbg_then_70d05cf780a18d77 = function(arg0, arg1, arg2) {
|
|
1116
|
+
const ret = arg0.then(arg1, arg2);
|
|
940
1117
|
return ret;
|
|
941
1118
|
};
|
|
942
|
-
imports.wbg.
|
|
1119
|
+
imports.wbg.__wbg_url_b36d2a5008eb056f = function(arg0, arg1) {
|
|
943
1120
|
const ret = arg1.url;
|
|
944
1121
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
945
1122
|
const len1 = WASM_VECTOR_LEN;
|
|
946
1123
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
947
1124
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
948
1125
|
};
|
|
949
|
-
imports.wbg.
|
|
1126
|
+
imports.wbg.__wbg_valueOf_e1f2752ef9caddb2 = function(arg0) {
|
|
950
1127
|
const ret = arg0.valueOf();
|
|
951
1128
|
return ret;
|
|
952
1129
|
};
|
|
953
|
-
imports.wbg.
|
|
1130
|
+
imports.wbg.__wbg_value_692627309814bb8c = function(arg0) {
|
|
954
1131
|
const ret = arg0.value;
|
|
955
1132
|
return ret;
|
|
956
1133
|
};
|
|
@@ -962,50 +1139,6 @@ function __wbg_get_imports() {
|
|
|
962
1139
|
const ret = WasmReader.__wrap(arg0);
|
|
963
1140
|
return ret;
|
|
964
1141
|
};
|
|
965
|
-
imports.wbg.__wbg_wbindgencbdrop_a85ed476c6a370b9 = function(arg0) {
|
|
966
|
-
const obj = arg0.original;
|
|
967
|
-
if (obj.cnt-- == 1) {
|
|
968
|
-
obj.a = 0;
|
|
969
|
-
return true;
|
|
970
|
-
}
|
|
971
|
-
const ret = false;
|
|
972
|
-
return ret;
|
|
973
|
-
};
|
|
974
|
-
imports.wbg.__wbg_wbindgendebugstring_bb652b1bc2061b6d = function(arg0, arg1) {
|
|
975
|
-
const ret = debugString(arg1);
|
|
976
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
977
|
-
const len1 = WASM_VECTOR_LEN;
|
|
978
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
979
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
980
|
-
};
|
|
981
|
-
imports.wbg.__wbg_wbindgenisfunction_ea72b9d66a0e1705 = function(arg0) {
|
|
982
|
-
const ret = typeof(arg0) === 'function';
|
|
983
|
-
return ret;
|
|
984
|
-
};
|
|
985
|
-
imports.wbg.__wbg_wbindgenisobject_dfe064a121d87553 = function(arg0) {
|
|
986
|
-
const val = arg0;
|
|
987
|
-
const ret = typeof(val) === 'object' && val !== null;
|
|
988
|
-
return ret;
|
|
989
|
-
};
|
|
990
|
-
imports.wbg.__wbg_wbindgenisstring_4b74e4111ba029e6 = function(arg0) {
|
|
991
|
-
const ret = typeof(arg0) === 'string';
|
|
992
|
-
return ret;
|
|
993
|
-
};
|
|
994
|
-
imports.wbg.__wbg_wbindgenisundefined_71f08a6ade4354e7 = function(arg0) {
|
|
995
|
-
const ret = arg0 === undefined;
|
|
996
|
-
return ret;
|
|
997
|
-
};
|
|
998
|
-
imports.wbg.__wbg_wbindgenstringget_43fe05afe34b0cb1 = function(arg0, arg1) {
|
|
999
|
-
const obj = arg1;
|
|
1000
|
-
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
1001
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1002
|
-
var len1 = WASM_VECTOR_LEN;
|
|
1003
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1004
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1005
|
-
};
|
|
1006
|
-
imports.wbg.__wbg_wbindgenthrow_4c11a24fca429ccf = function(arg0, arg1) {
|
|
1007
|
-
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
1008
|
-
};
|
|
1009
1142
|
imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
|
|
1010
1143
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
1011
1144
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
@@ -1016,6 +1149,11 @@ function __wbg_get_imports() {
|
|
|
1016
1149
|
const ret = (BigInt.asUintN(64, arg0) | (arg1 << BigInt(64)));
|
|
1017
1150
|
return ret;
|
|
1018
1151
|
};
|
|
1152
|
+
imports.wbg.__wbindgen_cast_3f8afe4d69afce15 = function(arg0, arg1) {
|
|
1153
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 1274, function: Function { arguments: [Externref], shim_idx: 1285, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1154
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h4e2af4dd32e0f9a7, wasm_bindgen__convert__closures_____invoke__hedbe22ff1e6181ec);
|
|
1155
|
+
return ret;
|
|
1156
|
+
};
|
|
1019
1157
|
imports.wbg.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) {
|
|
1020
1158
|
// Cast intrinsic for `U64 -> Externref`.
|
|
1021
1159
|
const ret = BigInt.asUintN(64, arg0);
|
|
@@ -1028,11 +1166,6 @@ function __wbg_get_imports() {
|
|
|
1028
1166
|
const ret = v0;
|
|
1029
1167
|
return ret;
|
|
1030
1168
|
};
|
|
1031
|
-
imports.wbg.__wbindgen_cast_7920211b6bf3825e = function(arg0, arg1) {
|
|
1032
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 1660, function: Function { arguments: [Externref], shim_idx: 1671, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1033
|
-
const ret = makeMutClosure(arg0, arg1, 1660, __wbg_adapter_13);
|
|
1034
|
-
return ret;
|
|
1035
|
-
};
|
|
1036
1169
|
imports.wbg.__wbindgen_cast_9ae0607507abb057 = function(arg0) {
|
|
1037
1170
|
// Cast intrinsic for `I64 -> Externref`.
|
|
1038
1171
|
const ret = arg0;
|
|
@@ -1048,13 +1181,13 @@ function __wbg_get_imports() {
|
|
|
1048
1181
|
const ret = arg0;
|
|
1049
1182
|
return ret;
|
|
1050
1183
|
};
|
|
1051
|
-
imports.wbg.
|
|
1052
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1053
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1184
|
+
imports.wbg.__wbindgen_cast_eea71553507a2f52 = function(arg0, arg1) {
|
|
1185
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 1266, function: Function { arguments: [], shim_idx: 1267, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1186
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h3685db4568587cc8, wasm_bindgen__convert__closures_____invoke__hbb73f02d9cb5eeb0);
|
|
1054
1187
|
return ret;
|
|
1055
1188
|
};
|
|
1056
1189
|
imports.wbg.__wbindgen_init_externref_table = function() {
|
|
1057
|
-
const table = wasm.
|
|
1190
|
+
const table = wasm.__wbindgen_externrefs;
|
|
1058
1191
|
const offset = table.grow(4);
|
|
1059
1192
|
table.set(0, undefined);
|
|
1060
1193
|
table.set(offset + 0, undefined);
|
|
@@ -1067,10 +1200,6 @@ function __wbg_get_imports() {
|
|
|
1067
1200
|
return imports;
|
|
1068
1201
|
}
|
|
1069
1202
|
|
|
1070
|
-
function __wbg_init_memory(imports, memory) {
|
|
1071
|
-
|
|
1072
|
-
}
|
|
1073
|
-
|
|
1074
1203
|
function __wbg_finalize_init(instance, module) {
|
|
1075
1204
|
wasm = instance.exports;
|
|
1076
1205
|
__wbg_init.__wbindgen_wasm_module = module;
|
|
@@ -1096,8 +1225,6 @@ function initSync(module) {
|
|
|
1096
1225
|
|
|
1097
1226
|
const imports = __wbg_get_imports();
|
|
1098
1227
|
|
|
1099
|
-
__wbg_init_memory(imports);
|
|
1100
|
-
|
|
1101
1228
|
if (!(module instanceof WebAssembly.Module)) {
|
|
1102
1229
|
module = new WebAssembly.Module(module);
|
|
1103
1230
|
}
|
|
@@ -1126,8 +1253,6 @@ async function __wbg_init(module_or_path) {
|
|
|
1126
1253
|
module_or_path = fetch(module_or_path);
|
|
1127
1254
|
}
|
|
1128
1255
|
|
|
1129
|
-
__wbg_init_memory(imports);
|
|
1130
|
-
|
|
1131
1256
|
const { instance, module } = await __wbg_load(await module_or_path, imports);
|
|
1132
1257
|
|
|
1133
1258
|
return __wbg_finalize_init(instance, module);
|
|
@@ -1135,4 +1260,4 @@ async function __wbg_init(module_or_path) {
|
|
|
1135
1260
|
|
|
1136
1261
|
export { initSync };
|
|
1137
1262
|
export default __wbg_init;
|
|
1138
|
-
export const WASM_SRI = "sha512-
|
|
1263
|
+
export const WASM_SRI = "sha512-ZSS+ycEiOigY5q2NyuGdoUdUXpbKJKKlRzWykomKo+orNaLWUc16UKz64Ffc4/Qu+SAFHYbRPtqMc3vnChBFyg==";
|