@contentauth/c2pa-wasm 0.13.1 → 0.13.2
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 +29 -23
- package/pkg/c2pa.js +193 -175
- package/pkg/c2pa_bg.wasm +0 -0
- package/pkg/c2pa_bg.wasm.d.ts +6 -5
package/README.md
CHANGED
|
@@ -51,7 +51,7 @@ The `wasm-bindgen-cli` provides options to tweak JavaScript generated by `wasm-b
|
|
|
51
51
|
For more information, see the [wasm-bindgen-cli documentation](https://wasm-bindgen.github.io/wasm-bindgen/reference/cli).
|
|
52
52
|
|
|
53
53
|
```sh
|
|
54
|
-
cargo install wasm-bindgen-cli@0.2.
|
|
54
|
+
cargo install wasm-bindgen-cli@0.2.129
|
|
55
55
|
```
|
|
56
56
|
|
|
57
57
|
> [!IMPORTANT]
|
package/package.json
CHANGED
package/pkg/c2pa.d.ts
CHANGED
|
@@ -48,13 +48,6 @@ export class WasmBuilder {
|
|
|
48
48
|
* Add an assertion to the manifest under `label` with the given `data`.
|
|
49
49
|
*/
|
|
50
50
|
addAssertion(label: string, data: any): void;
|
|
51
|
-
/**
|
|
52
|
-
* Add an ingredient to the manifest from a JSON ingredient definition without a blob
|
|
53
|
-
*
|
|
54
|
-
* # Arguments
|
|
55
|
-
* * `ingredient_json` - A JSON string representing the ingredient.
|
|
56
|
-
*/
|
|
57
|
-
addIngredient(json: string): void;
|
|
58
51
|
/**
|
|
59
52
|
* Add an ingredient to the manifest from a JSON ingredient definition and a [`Blob`].
|
|
60
53
|
*
|
|
@@ -64,6 +57,13 @@ export class WasmBuilder {
|
|
|
64
57
|
* * `blob` - A [`Blob`] representing an asset which should be included as an ingredient.
|
|
65
58
|
*/
|
|
66
59
|
addIngredientFromBlob(json: string, format: string, blob: Blob): Promise<void>;
|
|
60
|
+
/**
|
|
61
|
+
* Add an ingredient to the manifest from a JSON ingredient definition without a blob
|
|
62
|
+
*
|
|
63
|
+
* # Arguments
|
|
64
|
+
* * `ingredient_json` - A JSON string representing the ingredient.
|
|
65
|
+
*/
|
|
66
|
+
addIngredient(json: string): void;
|
|
67
67
|
/**
|
|
68
68
|
* Add a redaction for a JUMBF URI with the given reason.
|
|
69
69
|
*
|
|
@@ -152,19 +152,19 @@ export class WasmBuilder {
|
|
|
152
152
|
setThumbnailFromBlob(format: string, blob: Blob): void;
|
|
153
153
|
/**
|
|
154
154
|
* Sign an asset using the provided SignerDefinition, format, and source Blob.
|
|
155
|
+
* Use this method to get both the manifest bytes and the bytes of the signed asset.
|
|
155
156
|
*
|
|
156
|
-
* `
|
|
157
|
-
* `wasm_identity_assertion`'s typescript_custom_section); pass an empty
|
|
158
|
-
* array when no CAWG identity assertions are requested.
|
|
157
|
+
* See [`Self::sign`] for `identity_assertions`.
|
|
159
158
|
*/
|
|
160
|
-
|
|
159
|
+
signAndGetManifestBytes(signer_definition: SignerDefinition, identity_assertions: any, format: string, source: Blob): Promise<any>;
|
|
161
160
|
/**
|
|
162
161
|
* Sign an asset using the provided SignerDefinition, format, and source Blob.
|
|
163
|
-
* Use this method to get both the manifest bytes and the bytes of the signed asset.
|
|
164
162
|
*
|
|
165
|
-
*
|
|
163
|
+
* `identity_assertions` is an array of `IdentityAssertionDefinition` (see
|
|
164
|
+
* `wasm_identity_assertion`'s typescript_custom_section); pass an empty
|
|
165
|
+
* array when no CAWG identity assertions are requested.
|
|
166
166
|
*/
|
|
167
|
-
|
|
167
|
+
sign(signer_definition: SignerDefinition, identity_assertions: any, format: string, source: Blob): Promise<Uint8Array>;
|
|
168
168
|
/**
|
|
169
169
|
* "Save" a builder to an archive.
|
|
170
170
|
*/
|
|
@@ -193,6 +193,11 @@ export class WasmBuilder {
|
|
|
193
193
|
* array that fails validation at signing time.
|
|
194
194
|
*/
|
|
195
195
|
updateActionsAt(action_groups: any): void;
|
|
196
|
+
/**
|
|
197
|
+
* Replaces the data of every assertion with an exact matching label, in positional order.
|
|
198
|
+
* The label, kind, created flag, and assertion position remain unchanged.
|
|
199
|
+
*/
|
|
200
|
+
updateAssertionsAt(label: string, data: any): void;
|
|
196
201
|
}
|
|
197
202
|
|
|
198
203
|
/**
|
|
@@ -215,15 +220,15 @@ export class WasmReader {
|
|
|
215
220
|
*/
|
|
216
221
|
crJson(): string;
|
|
217
222
|
/**
|
|
218
|
-
* Attempts to create a new `WasmReader` from an asset format
|
|
223
|
+
* Attempts to create a new `WasmReader` from an asset format, a `Blob` of the bytes of the initial segment, and a fragment `Blob`.
|
|
219
224
|
* Optionally accepts a context JSON string to configure the reader.
|
|
220
225
|
*/
|
|
221
|
-
static
|
|
226
|
+
static fromBlobFragment(format: string, init: Blob, fragment: Blob, context_json?: string | null): Promise<WasmReader>;
|
|
222
227
|
/**
|
|
223
|
-
* Attempts to create a new `WasmReader` from an asset format
|
|
228
|
+
* Attempts to create a new `WasmReader` from an asset format and `Blob` of the asset's bytes.
|
|
224
229
|
* Optionally accepts a context JSON string to configure the reader.
|
|
225
230
|
*/
|
|
226
|
-
static
|
|
231
|
+
static fromBlob(format: string, blob: Blob, context_json?: string | null): Promise<WasmReader>;
|
|
227
232
|
/**
|
|
228
233
|
* Attempts to create a new `WasmReader` from an asset format and the asset's raw bytes.
|
|
229
234
|
*
|
|
@@ -268,10 +273,9 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
268
273
|
|
|
269
274
|
export interface InitOutput {
|
|
270
275
|
readonly memory: WebAssembly.Memory;
|
|
271
|
-
readonly __wbg_wasmsigner_free: (a: number, b: number) => void;
|
|
272
|
-
readonly wasmsigner_fromDefinition: (a: any) => [number, number, number];
|
|
273
276
|
readonly __wbg_wasmbuilder_free: (a: number, b: number) => void;
|
|
274
277
|
readonly __wbg_wasmreader_free: (a: number, b: number) => void;
|
|
278
|
+
readonly __wbg_wasmsigner_free: (a: number, b: number) => void;
|
|
275
279
|
readonly run: () => void;
|
|
276
280
|
readonly wasmbuilder_addAction: (a: number, b: any) => [number, number];
|
|
277
281
|
readonly wasmbuilder_addAssertion: (a: number, b: number, c: number, d: any) => [number, number];
|
|
@@ -294,6 +298,7 @@ export interface InitOutput {
|
|
|
294
298
|
readonly wasmbuilder_signAndGetManifestBytes: (a: number, b: any, c: any, d: number, e: number, f: any) => any;
|
|
295
299
|
readonly wasmbuilder_toArchive: (a: number) => [number, number, number];
|
|
296
300
|
readonly wasmbuilder_updateActionsAt: (a: number, b: any) => [number, number];
|
|
301
|
+
readonly wasmbuilder_updateAssertionsAt: (a: number, b: number, c: number, d: any) => [number, number];
|
|
297
302
|
readonly wasmreader_activeLabel: (a: number) => [number, number];
|
|
298
303
|
readonly wasmreader_activeManifest: (a: number) => [number, number, number];
|
|
299
304
|
readonly wasmreader_crJson: (a: number) => [number, number];
|
|
@@ -303,9 +308,10 @@ export interface InitOutput {
|
|
|
303
308
|
readonly wasmreader_json: (a: number) => [number, number];
|
|
304
309
|
readonly wasmreader_manifestStore: (a: number) => [number, number, number];
|
|
305
310
|
readonly wasmreader_resourceToBytes: (a: number, b: number, c: number) => [number, number, number];
|
|
306
|
-
readonly
|
|
307
|
-
readonly
|
|
308
|
-
readonly
|
|
311
|
+
readonly wasmsigner_fromDefinition: (a: any) => [number, number, number];
|
|
312
|
+
readonly wasm_bindgen_b4d0f5c6c916b3___convert__closures_____invoke___js_sys_f208cbbfceb06800___Function_fn_wasm_bindgen_b4d0f5c6c916b3___JsValue_____wasm_bindgen_b4d0f5c6c916b3___sys__Undefined___js_sys_f208cbbfceb06800___Function_fn_wasm_bindgen_b4d0f5c6c916b3___JsValue_____wasm_bindgen_b4d0f5c6c916b3___sys__Undefined_______true_: (a: number, b: number, c: any, d: any) => void;
|
|
313
|
+
readonly wasm_bindgen_b4d0f5c6c916b3___convert__closures_____invoke___wasm_bindgen_b4d0f5c6c916b3___JsValue__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_b4d0f5c6c916b3___JsError___true_: (a: number, b: number, c: any) => [number, number];
|
|
314
|
+
readonly wasm_bindgen_b4d0f5c6c916b3___convert__closures_____invoke_______true_: (a: number, b: number) => void;
|
|
309
315
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
310
316
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
311
317
|
readonly __wbindgen_exn_store: (a: number) => void;
|
package/pkg/c2pa.js
CHANGED
|
@@ -43,21 +43,6 @@ export class WasmBuilder {
|
|
|
43
43
|
throw takeFromExternrefTable0(ret[0]);
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
/**
|
|
47
|
-
* Add an ingredient to the manifest from a JSON ingredient definition without a blob
|
|
48
|
-
*
|
|
49
|
-
* # Arguments
|
|
50
|
-
* * `ingredient_json` - A JSON string representing the ingredient.
|
|
51
|
-
* @param {string} json
|
|
52
|
-
*/
|
|
53
|
-
addIngredient(json) {
|
|
54
|
-
const ptr0 = passStringToWasm0(json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
55
|
-
const len0 = WASM_VECTOR_LEN;
|
|
56
|
-
const ret = wasm.wasmbuilder_addIngredient(this.__wbg_ptr, ptr0, len0);
|
|
57
|
-
if (ret[1]) {
|
|
58
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
46
|
/**
|
|
62
47
|
* Add an ingredient to the manifest from a JSON ingredient definition and a [`Blob`].
|
|
63
48
|
*
|
|
@@ -78,6 +63,21 @@ export class WasmBuilder {
|
|
|
78
63
|
const ret = wasm.wasmbuilder_addIngredientFromBlob(this.__wbg_ptr, ptr0, len0, ptr1, len1, blob);
|
|
79
64
|
return ret;
|
|
80
65
|
}
|
|
66
|
+
/**
|
|
67
|
+
* Add an ingredient to the manifest from a JSON ingredient definition without a blob
|
|
68
|
+
*
|
|
69
|
+
* # Arguments
|
|
70
|
+
* * `ingredient_json` - A JSON string representing the ingredient.
|
|
71
|
+
* @param {string} json
|
|
72
|
+
*/
|
|
73
|
+
addIngredient(json) {
|
|
74
|
+
const ptr0 = passStringToWasm0(json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
75
|
+
const len0 = WASM_VECTOR_LEN;
|
|
76
|
+
const ret = wasm.wasmbuilder_addIngredient(this.__wbg_ptr, ptr0, len0);
|
|
77
|
+
if (ret[1]) {
|
|
78
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
81
|
/**
|
|
82
82
|
* Add a redaction for a JUMBF URI with the given reason.
|
|
83
83
|
*
|
|
@@ -275,37 +275,37 @@ export class WasmBuilder {
|
|
|
275
275
|
}
|
|
276
276
|
/**
|
|
277
277
|
* Sign an asset using the provided SignerDefinition, format, and source Blob.
|
|
278
|
+
* Use this method to get both the manifest bytes and the bytes of the signed asset.
|
|
278
279
|
*
|
|
279
|
-
* `
|
|
280
|
-
* `wasm_identity_assertion`'s typescript_custom_section); pass an empty
|
|
281
|
-
* array when no CAWG identity assertions are requested.
|
|
280
|
+
* See [`Self::sign`] for `identity_assertions`.
|
|
282
281
|
* @param {SignerDefinition} signer_definition
|
|
283
282
|
* @param {any} identity_assertions
|
|
284
283
|
* @param {string} format
|
|
285
284
|
* @param {Blob} source
|
|
286
|
-
* @returns {Promise<
|
|
285
|
+
* @returns {Promise<any>}
|
|
287
286
|
*/
|
|
288
|
-
|
|
287
|
+
signAndGetManifestBytes(signer_definition, identity_assertions, format, source) {
|
|
289
288
|
const ptr0 = passStringToWasm0(format, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
290
289
|
const len0 = WASM_VECTOR_LEN;
|
|
291
|
-
const ret = wasm.
|
|
290
|
+
const ret = wasm.wasmbuilder_signAndGetManifestBytes(this.__wbg_ptr, signer_definition, identity_assertions, ptr0, len0, source);
|
|
292
291
|
return ret;
|
|
293
292
|
}
|
|
294
293
|
/**
|
|
295
294
|
* Sign an asset using the provided SignerDefinition, format, and source Blob.
|
|
296
|
-
* Use this method to get both the manifest bytes and the bytes of the signed asset.
|
|
297
295
|
*
|
|
298
|
-
*
|
|
296
|
+
* `identity_assertions` is an array of `IdentityAssertionDefinition` (see
|
|
297
|
+
* `wasm_identity_assertion`'s typescript_custom_section); pass an empty
|
|
298
|
+
* array when no CAWG identity assertions are requested.
|
|
299
299
|
* @param {SignerDefinition} signer_definition
|
|
300
300
|
* @param {any} identity_assertions
|
|
301
301
|
* @param {string} format
|
|
302
302
|
* @param {Blob} source
|
|
303
|
-
* @returns {Promise<
|
|
303
|
+
* @returns {Promise<Uint8Array>}
|
|
304
304
|
*/
|
|
305
|
-
|
|
305
|
+
sign(signer_definition, identity_assertions, format, source) {
|
|
306
306
|
const ptr0 = passStringToWasm0(format, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
307
307
|
const len0 = WASM_VECTOR_LEN;
|
|
308
|
-
const ret = wasm.
|
|
308
|
+
const ret = wasm.wasmbuilder_sign(this.__wbg_ptr, signer_definition, identity_assertions, ptr0, len0, source);
|
|
309
309
|
return ret;
|
|
310
310
|
}
|
|
311
311
|
/**
|
|
@@ -349,6 +349,20 @@ export class WasmBuilder {
|
|
|
349
349
|
throw takeFromExternrefTable0(ret[0]);
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
|
+
/**
|
|
353
|
+
* Replaces the data of every assertion with an exact matching label, in positional order.
|
|
354
|
+
* The label, kind, created flag, and assertion position remain unchanged.
|
|
355
|
+
* @param {string} label
|
|
356
|
+
* @param {any} data
|
|
357
|
+
*/
|
|
358
|
+
updateAssertionsAt(label, data) {
|
|
359
|
+
const ptr0 = passStringToWasm0(label, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
360
|
+
const len0 = WASM_VECTOR_LEN;
|
|
361
|
+
const ret = wasm.wasmbuilder_updateAssertionsAt(this.__wbg_ptr, ptr0, len0, data);
|
|
362
|
+
if (ret[1]) {
|
|
363
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
364
|
+
}
|
|
365
|
+
}
|
|
352
366
|
}
|
|
353
367
|
if (Symbol.dispose) WasmBuilder.prototype[Symbol.dispose] = WasmBuilder.prototype.free;
|
|
354
368
|
|
|
@@ -380,7 +394,7 @@ export class WasmReader {
|
|
|
380
394
|
const ret = wasm.wasmreader_activeLabel(this.__wbg_ptr);
|
|
381
395
|
let v1;
|
|
382
396
|
if (ret[0] !== 0) {
|
|
383
|
-
v1 = getStringFromWasm0(ret[0], ret[1])
|
|
397
|
+
v1 = getStringFromWasm0(ret[0], ret[1]);
|
|
384
398
|
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
385
399
|
}
|
|
386
400
|
return v1;
|
|
@@ -413,36 +427,36 @@ export class WasmReader {
|
|
|
413
427
|
}
|
|
414
428
|
}
|
|
415
429
|
/**
|
|
416
|
-
* Attempts to create a new `WasmReader` from an asset format
|
|
430
|
+
* Attempts to create a new `WasmReader` from an asset format, a `Blob` of the bytes of the initial segment, and a fragment `Blob`.
|
|
417
431
|
* Optionally accepts a context JSON string to configure the reader.
|
|
418
432
|
* @param {string} format
|
|
419
|
-
* @param {Blob}
|
|
433
|
+
* @param {Blob} init
|
|
434
|
+
* @param {Blob} fragment
|
|
420
435
|
* @param {string | null} [context_json]
|
|
421
436
|
* @returns {Promise<WasmReader>}
|
|
422
437
|
*/
|
|
423
|
-
static
|
|
438
|
+
static fromBlobFragment(format, init, fragment, context_json) {
|
|
424
439
|
const ptr0 = passStringToWasm0(format, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
425
440
|
const len0 = WASM_VECTOR_LEN;
|
|
426
441
|
var ptr1 = isLikeNone(context_json) ? 0 : passStringToWasm0(context_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
427
442
|
var len1 = WASM_VECTOR_LEN;
|
|
428
|
-
const ret = wasm.
|
|
443
|
+
const ret = wasm.wasmreader_fromBlobFragment(ptr0, len0, init, fragment, ptr1, len1);
|
|
429
444
|
return ret;
|
|
430
445
|
}
|
|
431
446
|
/**
|
|
432
|
-
* Attempts to create a new `WasmReader` from an asset format
|
|
447
|
+
* Attempts to create a new `WasmReader` from an asset format and `Blob` of the asset's bytes.
|
|
433
448
|
* Optionally accepts a context JSON string to configure the reader.
|
|
434
449
|
* @param {string} format
|
|
435
|
-
* @param {Blob}
|
|
436
|
-
* @param {Blob} fragment
|
|
450
|
+
* @param {Blob} blob
|
|
437
451
|
* @param {string | null} [context_json]
|
|
438
452
|
* @returns {Promise<WasmReader>}
|
|
439
453
|
*/
|
|
440
|
-
static
|
|
454
|
+
static fromBlob(format, blob, context_json) {
|
|
441
455
|
const ptr0 = passStringToWasm0(format, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
442
456
|
const len0 = WASM_VECTOR_LEN;
|
|
443
457
|
var ptr1 = isLikeNone(context_json) ? 0 : passStringToWasm0(context_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
444
458
|
var len1 = WASM_VECTOR_LEN;
|
|
445
|
-
const ret = wasm.
|
|
459
|
+
const ret = wasm.wasmreader_fromBlob(ptr0, len0, blob, ptr1, len1);
|
|
446
460
|
return ret;
|
|
447
461
|
}
|
|
448
462
|
/**
|
|
@@ -554,11 +568,11 @@ export function run() {
|
|
|
554
568
|
function __wbg_get_imports() {
|
|
555
569
|
const import0 = {
|
|
556
570
|
__proto__: null,
|
|
557
|
-
|
|
571
|
+
__wbg_Error_30c8987f7c2ed4e2: function(arg0, arg1) {
|
|
558
572
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
559
573
|
return ret;
|
|
560
574
|
},
|
|
561
|
-
|
|
575
|
+
__wbg_Number_14af1003b8dd5ead: function(arg0) {
|
|
562
576
|
const ret = Number(arg0);
|
|
563
577
|
return ret;
|
|
564
578
|
},
|
|
@@ -569,68 +583,68 @@ function __wbg_get_imports() {
|
|
|
569
583
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
570
584
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
571
585
|
},
|
|
572
|
-
|
|
586
|
+
__wbg___wbindgen_bigint_get_as_i64_a2383202b9353e4c: function(arg0, arg1) {
|
|
573
587
|
const v = arg1;
|
|
574
588
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
575
589
|
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
576
590
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
577
591
|
},
|
|
578
|
-
|
|
592
|
+
__wbg___wbindgen_boolean_get_5b446f51afd21013: function(arg0) {
|
|
579
593
|
const v = arg0;
|
|
580
594
|
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
581
595
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
582
596
|
},
|
|
583
|
-
|
|
597
|
+
__wbg___wbindgen_debug_string_4687d8d8c2017d52: function(arg0, arg1) {
|
|
584
598
|
const ret = debugString(arg1);
|
|
585
599
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
586
600
|
const len1 = WASM_VECTOR_LEN;
|
|
587
601
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
588
602
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
589
603
|
},
|
|
590
|
-
|
|
604
|
+
__wbg___wbindgen_in_92f62ee1427d9e49: function(arg0, arg1) {
|
|
591
605
|
const ret = arg0 in arg1;
|
|
592
606
|
return ret;
|
|
593
607
|
},
|
|
594
|
-
|
|
608
|
+
__wbg___wbindgen_is_bigint_b123553bed3bb382: function(arg0) {
|
|
595
609
|
const ret = typeof(arg0) === 'bigint';
|
|
596
610
|
return ret;
|
|
597
611
|
},
|
|
598
|
-
|
|
612
|
+
__wbg___wbindgen_is_function_1f9d30630b8b1d3d: function(arg0) {
|
|
599
613
|
const ret = typeof(arg0) === 'function';
|
|
600
614
|
return ret;
|
|
601
615
|
},
|
|
602
|
-
|
|
616
|
+
__wbg___wbindgen_is_null_e343b7d08827ba72: function(arg0) {
|
|
603
617
|
const ret = arg0 === null;
|
|
604
618
|
return ret;
|
|
605
619
|
},
|
|
606
|
-
|
|
620
|
+
__wbg___wbindgen_is_object_3c45d4f2dde4e749: function(arg0) {
|
|
607
621
|
const val = arg0;
|
|
608
622
|
const ret = typeof(val) === 'object' && val !== null;
|
|
609
623
|
return ret;
|
|
610
624
|
},
|
|
611
|
-
|
|
625
|
+
__wbg___wbindgen_is_string_90b56bc79aad6f6c: function(arg0) {
|
|
612
626
|
const ret = typeof(arg0) === 'string';
|
|
613
627
|
return ret;
|
|
614
628
|
},
|
|
615
|
-
|
|
629
|
+
__wbg___wbindgen_is_undefined_8865fb403f8fe9d8: function(arg0) {
|
|
616
630
|
const ret = arg0 === undefined;
|
|
617
631
|
return ret;
|
|
618
632
|
},
|
|
619
|
-
|
|
633
|
+
__wbg___wbindgen_jsval_eq_02babf21faa37971: function(arg0, arg1) {
|
|
620
634
|
const ret = arg0 === arg1;
|
|
621
635
|
return ret;
|
|
622
636
|
},
|
|
623
|
-
|
|
637
|
+
__wbg___wbindgen_jsval_loose_eq_677f21e468d6b461: function(arg0, arg1) {
|
|
624
638
|
const ret = arg0 == arg1;
|
|
625
639
|
return ret;
|
|
626
640
|
},
|
|
627
|
-
|
|
641
|
+
__wbg___wbindgen_number_get_2e0e7dee9f701a71: function(arg0, arg1) {
|
|
628
642
|
const obj = arg1;
|
|
629
643
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
630
644
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
631
645
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
632
646
|
},
|
|
633
|
-
|
|
647
|
+
__wbg___wbindgen_string_get_0380ccaa2f57f0d9: function(arg0, arg1) {
|
|
634
648
|
const obj = arg1;
|
|
635
649
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
636
650
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -638,35 +652,35 @@ function __wbg_get_imports() {
|
|
|
638
652
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
639
653
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
640
654
|
},
|
|
641
|
-
|
|
655
|
+
__wbg___wbindgen_throw_41e9ee4f547fc59a: function(arg0, arg1) {
|
|
642
656
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
643
657
|
},
|
|
644
|
-
|
|
658
|
+
__wbg__wbg_cb_unref_dcc1a90847f04c41: function(arg0) {
|
|
645
659
|
arg0._wbg_cb_unref();
|
|
646
660
|
},
|
|
647
|
-
|
|
648
|
-
arg0.abort();
|
|
649
|
-
},
|
|
650
|
-
__wbg_abort_b29d719932441c95: function(arg0, arg1) {
|
|
661
|
+
__wbg_abort_334e7f918b7c5047: function(arg0, arg1) {
|
|
651
662
|
arg0.abort(arg1);
|
|
652
663
|
},
|
|
653
|
-
|
|
664
|
+
__wbg_abort_f78b99d80248bacb: function(arg0) {
|
|
665
|
+
arg0.abort();
|
|
666
|
+
},
|
|
667
|
+
__wbg_append_1938ed58fb5613b8: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
654
668
|
arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
655
669
|
}, arguments); },
|
|
656
|
-
|
|
670
|
+
__wbg_arrayBuffer_f07be74819944ea2: function() { return handleError(function (arg0) {
|
|
657
671
|
const ret = arg0.arrayBuffer();
|
|
658
672
|
return ret;
|
|
659
673
|
}, arguments); },
|
|
660
|
-
|
|
674
|
+
__wbg_byteLength_9f985b8373f1f3fe: function(arg0) {
|
|
661
675
|
const ret = arg0.byteLength;
|
|
662
676
|
return ret;
|
|
663
677
|
},
|
|
664
|
-
|
|
665
|
-
const ret = arg0.call(arg1);
|
|
678
|
+
__wbg_call_187d372bd5fdd4aa: function() { return handleError(function (arg0, arg1, arg2) {
|
|
679
|
+
const ret = arg0.call(arg1, arg2);
|
|
666
680
|
return ret;
|
|
667
681
|
}, arguments); },
|
|
668
|
-
|
|
669
|
-
const ret = arg0.call(arg1
|
|
682
|
+
__wbg_call_6137034ef55c9d0f: function() { return handleError(function (arg0, arg1) {
|
|
683
|
+
const ret = arg0.call(arg1);
|
|
670
684
|
return ret;
|
|
671
685
|
}, arguments); },
|
|
672
686
|
__wbg_clearTimeout_6b8d9a38b9263d65: function(arg0) {
|
|
@@ -677,15 +691,15 @@ function __wbg_get_imports() {
|
|
|
677
691
|
const ret = arg0.crypto;
|
|
678
692
|
return ret;
|
|
679
693
|
},
|
|
680
|
-
|
|
694
|
+
__wbg_done_b41a1d26cdb37fb6: function(arg0) {
|
|
681
695
|
const ret = arg0.done;
|
|
682
696
|
return ret;
|
|
683
697
|
},
|
|
684
|
-
|
|
698
|
+
__wbg_entries_fb6397112b1de25f: function(arg0) {
|
|
685
699
|
const ret = Object.entries(arg0);
|
|
686
700
|
return ret;
|
|
687
701
|
},
|
|
688
|
-
|
|
702
|
+
__wbg_error_757e9472f8410341: function(arg0, arg1) {
|
|
689
703
|
let deferred0_0;
|
|
690
704
|
let deferred0_1;
|
|
691
705
|
try {
|
|
@@ -696,47 +710,47 @@ function __wbg_get_imports() {
|
|
|
696
710
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
697
711
|
}
|
|
698
712
|
},
|
|
699
|
-
__wbg_fetch_344c8d3849002659: function(arg0, arg1) {
|
|
700
|
-
const ret = arg0.fetch(arg1);
|
|
701
|
-
return ret;
|
|
702
|
-
},
|
|
703
713
|
__wbg_fetch_9dad4fe911207b37: function(arg0) {
|
|
704
714
|
const ret = fetch(arg0);
|
|
705
715
|
return ret;
|
|
706
716
|
},
|
|
707
|
-
|
|
717
|
+
__wbg_fetch_efc64baf325b084d: function(arg0, arg1) {
|
|
718
|
+
const ret = arg0.fetch(arg1);
|
|
719
|
+
return ret;
|
|
720
|
+
},
|
|
721
|
+
__wbg_from_296ca31f8d0f1c52: function(arg0) {
|
|
708
722
|
const ret = Array.from(arg0);
|
|
709
723
|
return ret;
|
|
710
724
|
},
|
|
711
|
-
|
|
725
|
+
__wbg_getRandomValues_436a51d0629d84e1: function() { return handleError(function (arg0, arg1) {
|
|
712
726
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
713
727
|
}, arguments); },
|
|
714
|
-
|
|
728
|
+
__wbg_getRandomValues_a608c4436c19407a: function() { return handleError(function (arg0, arg1) {
|
|
715
729
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
716
730
|
}, arguments); },
|
|
717
|
-
|
|
731
|
+
__wbg_getRandomValues_a678b7300e8ed57f: function() { return handleError(function (arg0, arg1) {
|
|
718
732
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
719
733
|
}, arguments); },
|
|
720
734
|
__wbg_getRandomValues_c44a50d8cfdaebeb: function() { return handleError(function (arg0, arg1) {
|
|
721
735
|
arg0.getRandomValues(arg1);
|
|
722
736
|
}, arguments); },
|
|
723
|
-
|
|
737
|
+
__wbg_getTime_f5a55efff2585d5d: function(arg0) {
|
|
724
738
|
const ret = arg0.getTime();
|
|
725
739
|
return ret;
|
|
726
740
|
},
|
|
727
|
-
|
|
741
|
+
__wbg_get_31af05bd4842a84f: function() { return handleError(function (arg0, arg1) {
|
|
728
742
|
const ret = Reflect.get(arg0, arg1);
|
|
729
743
|
return ret;
|
|
730
744
|
}, arguments); },
|
|
731
|
-
|
|
732
|
-
const ret = arg0[arg1 >>> 0];
|
|
733
|
-
return ret;
|
|
734
|
-
},
|
|
735
|
-
__wbg_get_de6a0f7d4d18a304: function() { return handleError(function (arg0, arg1) {
|
|
745
|
+
__wbg_get_658f6698067d9515: function() { return handleError(function (arg0, arg1) {
|
|
736
746
|
const ret = Reflect.get(arg0, arg1);
|
|
737
747
|
return ret;
|
|
738
748
|
}, arguments); },
|
|
739
|
-
|
|
749
|
+
__wbg_get_6c896e0571ddae51: function(arg0, arg1) {
|
|
750
|
+
const ret = arg0[arg1 >>> 0];
|
|
751
|
+
return ret;
|
|
752
|
+
},
|
|
753
|
+
__wbg_get_unchecked_288889d017702237: function(arg0, arg1) {
|
|
740
754
|
const ret = arg0[arg1 >>> 0];
|
|
741
755
|
return ret;
|
|
742
756
|
},
|
|
@@ -744,15 +758,15 @@ function __wbg_get_imports() {
|
|
|
744
758
|
const ret = arg0[arg1];
|
|
745
759
|
return ret;
|
|
746
760
|
},
|
|
747
|
-
|
|
761
|
+
__wbg_has_5d6706e5209576c1: function() { return handleError(function (arg0, arg1) {
|
|
748
762
|
const ret = Reflect.has(arg0, arg1);
|
|
749
763
|
return ret;
|
|
750
764
|
}, arguments); },
|
|
751
|
-
|
|
765
|
+
__wbg_headers_eba93595f8944c2f: function(arg0) {
|
|
752
766
|
const ret = arg0.headers;
|
|
753
767
|
return ret;
|
|
754
768
|
},
|
|
755
|
-
|
|
769
|
+
__wbg_instanceof_ArrayBuffer_a99f175873e5d9b8: function(arg0) {
|
|
756
770
|
let result;
|
|
757
771
|
try {
|
|
758
772
|
result = arg0 instanceof ArrayBuffer;
|
|
@@ -762,7 +776,7 @@ function __wbg_get_imports() {
|
|
|
762
776
|
const ret = result;
|
|
763
777
|
return ret;
|
|
764
778
|
},
|
|
765
|
-
|
|
779
|
+
__wbg_instanceof_Map_b2611749102d7ba3: function(arg0) {
|
|
766
780
|
let result;
|
|
767
781
|
try {
|
|
768
782
|
result = arg0 instanceof Map;
|
|
@@ -772,7 +786,7 @@ function __wbg_get_imports() {
|
|
|
772
786
|
const ret = result;
|
|
773
787
|
return ret;
|
|
774
788
|
},
|
|
775
|
-
|
|
789
|
+
__wbg_instanceof_Promise_e1dc6893aa1ece28: function(arg0) {
|
|
776
790
|
let result;
|
|
777
791
|
try {
|
|
778
792
|
result = arg0 instanceof Promise;
|
|
@@ -782,7 +796,7 @@ function __wbg_get_imports() {
|
|
|
782
796
|
const ret = result;
|
|
783
797
|
return ret;
|
|
784
798
|
},
|
|
785
|
-
|
|
799
|
+
__wbg_instanceof_Response_b8758567269c30b2: function(arg0) {
|
|
786
800
|
let result;
|
|
787
801
|
try {
|
|
788
802
|
result = arg0 instanceof Response;
|
|
@@ -792,7 +806,7 @@ function __wbg_get_imports() {
|
|
|
792
806
|
const ret = result;
|
|
793
807
|
return ret;
|
|
794
808
|
},
|
|
795
|
-
|
|
809
|
+
__wbg_instanceof_Uint8Array_828cef2aaacafc31: function(arg0) {
|
|
796
810
|
let result;
|
|
797
811
|
try {
|
|
798
812
|
result = arg0 instanceof Uint8Array;
|
|
@@ -802,23 +816,23 @@ function __wbg_get_imports() {
|
|
|
802
816
|
const ret = result;
|
|
803
817
|
return ret;
|
|
804
818
|
},
|
|
805
|
-
|
|
819
|
+
__wbg_isArray_e15a2ff68ffdbef2: function(arg0) {
|
|
806
820
|
const ret = Array.isArray(arg0);
|
|
807
821
|
return ret;
|
|
808
822
|
},
|
|
809
|
-
|
|
823
|
+
__wbg_isSafeInteger_717808ad6a54bd9e: function(arg0) {
|
|
810
824
|
const ret = Number.isSafeInteger(arg0);
|
|
811
825
|
return ret;
|
|
812
826
|
},
|
|
813
|
-
|
|
827
|
+
__wbg_iterator_e3c31c892080e444: function() {
|
|
814
828
|
const ret = Symbol.iterator;
|
|
815
829
|
return ret;
|
|
816
830
|
},
|
|
817
|
-
|
|
831
|
+
__wbg_length_7f3c00c40364105e: function(arg0) {
|
|
818
832
|
const ret = arg0.length;
|
|
819
833
|
return ret;
|
|
820
834
|
},
|
|
821
|
-
|
|
835
|
+
__wbg_length_d4bdea10311bd9cf: function(arg0) {
|
|
822
836
|
const ret = arg0.length;
|
|
823
837
|
return ret;
|
|
824
838
|
},
|
|
@@ -826,54 +840,54 @@ function __wbg_get_imports() {
|
|
|
826
840
|
const ret = arg0.msCrypto;
|
|
827
841
|
return ret;
|
|
828
842
|
},
|
|
829
|
-
|
|
843
|
+
__wbg_new_0_72d020f0c63443d4: function() {
|
|
830
844
|
const ret = new Date();
|
|
831
845
|
return ret;
|
|
832
846
|
},
|
|
833
|
-
|
|
834
|
-
const ret = new
|
|
847
|
+
__wbg_new_1dbf7428bba60a42: function(arg0) {
|
|
848
|
+
const ret = new Uint8Array(arg0);
|
|
835
849
|
return ret;
|
|
836
|
-
},
|
|
850
|
+
},
|
|
837
851
|
__wbg_new_227d7c05414eb861: function() {
|
|
838
852
|
const ret = new Error();
|
|
839
853
|
return ret;
|
|
840
854
|
},
|
|
841
|
-
|
|
842
|
-
const ret = new Uint8Array(arg0);
|
|
843
|
-
return ret;
|
|
844
|
-
},
|
|
845
|
-
__wbg_new_622fc80556be2e26: function() {
|
|
855
|
+
__wbg_new_28744009d011f847: function() {
|
|
846
856
|
const ret = new Map();
|
|
847
857
|
return ret;
|
|
848
858
|
},
|
|
849
|
-
|
|
850
|
-
const ret = new
|
|
859
|
+
__wbg_new_2e41357094e99294: function() { return handleError(function () {
|
|
860
|
+
const ret = new AbortController();
|
|
851
861
|
return ret;
|
|
852
862
|
}, arguments); },
|
|
853
|
-
|
|
863
|
+
__wbg_new_617a8cdb8bb1130e: function() {
|
|
854
864
|
const ret = new Object();
|
|
855
865
|
return ret;
|
|
856
866
|
},
|
|
857
|
-
|
|
858
|
-
const ret = new Array();
|
|
859
|
-
return ret;
|
|
860
|
-
},
|
|
861
|
-
__wbg_new_e436d06bc8e77460: function() { return handleError(function () {
|
|
867
|
+
__wbg_new_83ca405eae412a62: function() { return handleError(function () {
|
|
862
868
|
const ret = new Headers();
|
|
863
869
|
return ret;
|
|
864
870
|
}, arguments); },
|
|
865
|
-
|
|
871
|
+
__wbg_new_9ffe4dece67ce9fc: function() { return handleError(function () {
|
|
872
|
+
const ret = new FileReaderSync();
|
|
873
|
+
return ret;
|
|
874
|
+
}, arguments); },
|
|
875
|
+
__wbg_new_ee2291f50781bf1d: function() {
|
|
876
|
+
const ret = new Array();
|
|
877
|
+
return ret;
|
|
878
|
+
},
|
|
879
|
+
__wbg_new_from_slice_9a868026ffa4208a: function(arg0, arg1) {
|
|
866
880
|
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
867
881
|
return ret;
|
|
868
882
|
},
|
|
869
|
-
|
|
883
|
+
__wbg_new_typed_b01cb72a8af741a3: function(arg0, arg1) {
|
|
870
884
|
try {
|
|
871
885
|
var state0 = {a: arg0, b: arg1};
|
|
872
886
|
var cb0 = (arg0, arg1) => {
|
|
873
887
|
const a = state0.a;
|
|
874
888
|
state0.a = 0;
|
|
875
889
|
try {
|
|
876
|
-
return
|
|
890
|
+
return wasm_bindgen_b4d0f5c6c916b3___convert__closures_____invoke___js_sys_f208cbbfceb06800___Function_fn_wasm_bindgen_b4d0f5c6c916b3___JsValue_____wasm_bindgen_b4d0f5c6c916b3___sys__Undefined___js_sys_f208cbbfceb06800___Function_fn_wasm_bindgen_b4d0f5c6c916b3___JsValue_____wasm_bindgen_b4d0f5c6c916b3___sys__Undefined_______true_(a, state0.b, arg0, arg1);
|
|
877
891
|
} finally {
|
|
878
892
|
state0.a = a;
|
|
879
893
|
}
|
|
@@ -884,19 +898,19 @@ function __wbg_get_imports() {
|
|
|
884
898
|
state0.a = 0;
|
|
885
899
|
}
|
|
886
900
|
},
|
|
887
|
-
|
|
901
|
+
__wbg_new_with_length_3da0ad195f6f63ba: function(arg0) {
|
|
888
902
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
889
903
|
return ret;
|
|
890
904
|
},
|
|
891
|
-
|
|
905
|
+
__wbg_new_with_str_and_init_4618dee4e950224f: function() { return handleError(function (arg0, arg1, arg2) {
|
|
892
906
|
const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
|
|
893
907
|
return ret;
|
|
894
908
|
}, arguments); },
|
|
895
|
-
|
|
909
|
+
__wbg_next_33784799010f1bbe: function(arg0) {
|
|
896
910
|
const ret = arg0.next;
|
|
897
911
|
return ret;
|
|
898
912
|
},
|
|
899
|
-
|
|
913
|
+
__wbg_next_f4aac29c42af995c: function() { return handleError(function (arg0) {
|
|
900
914
|
const ret = arg0.next();
|
|
901
915
|
return ret;
|
|
902
916
|
}, arguments); },
|
|
@@ -904,7 +918,7 @@ function __wbg_get_imports() {
|
|
|
904
918
|
const ret = arg0.node;
|
|
905
919
|
return ret;
|
|
906
920
|
},
|
|
907
|
-
|
|
921
|
+
__wbg_now_aa4ccb83129e9e55: function() {
|
|
908
922
|
const ret = Date.now();
|
|
909
923
|
return ret;
|
|
910
924
|
},
|
|
@@ -912,20 +926,20 @@ function __wbg_get_imports() {
|
|
|
912
926
|
const ret = arg0.process;
|
|
913
927
|
return ret;
|
|
914
928
|
},
|
|
915
|
-
|
|
929
|
+
__wbg_prototypesetcall_bc27214492979395: function(arg0, arg1, arg2) {
|
|
916
930
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
917
931
|
},
|
|
918
|
-
|
|
919
|
-
queueMicrotask(arg0);
|
|
920
|
-
},
|
|
921
|
-
__wbg_queueMicrotask_404ed0a58e0b63cc: function(arg0) {
|
|
932
|
+
__wbg_queueMicrotask_9833f9a49df95a49: function(arg0) {
|
|
922
933
|
const ret = arg0.queueMicrotask;
|
|
923
934
|
return ret;
|
|
924
935
|
},
|
|
936
|
+
__wbg_queueMicrotask_a72f977e97f23c5f: function(arg0) {
|
|
937
|
+
queueMicrotask(arg0);
|
|
938
|
+
},
|
|
925
939
|
__wbg_randomFillSync_6c25eac9869eb53c: function() { return handleError(function (arg0, arg1) {
|
|
926
940
|
arg0.randomFillSync(arg1);
|
|
927
941
|
}, arguments); },
|
|
928
|
-
|
|
942
|
+
__wbg_readAsArrayBuffer_14bc98cc9cdf7c0b: function() { return handleError(function (arg0, arg1) {
|
|
929
943
|
const ret = arg0.readAsArrayBuffer(arg1);
|
|
930
944
|
return ret;
|
|
931
945
|
}, arguments); },
|
|
@@ -933,7 +947,7 @@ function __wbg_get_imports() {
|
|
|
933
947
|
const ret = module.require;
|
|
934
948
|
return ret;
|
|
935
949
|
}, arguments); },
|
|
936
|
-
|
|
950
|
+
__wbg_resolve_0076e10020304ede: function(arg0) {
|
|
937
951
|
const ret = Promise.resolve(arg0);
|
|
938
952
|
return ret;
|
|
939
953
|
},
|
|
@@ -941,49 +955,49 @@ function __wbg_get_imports() {
|
|
|
941
955
|
const ret = setTimeout(arg0, arg1);
|
|
942
956
|
return ret;
|
|
943
957
|
},
|
|
944
|
-
|
|
958
|
+
__wbg_set_575d3ddb70fe831d: function(arg0, arg1, arg2) {
|
|
945
959
|
arg0.set(getArrayU8FromWasm0(arg1, arg2));
|
|
946
960
|
},
|
|
947
|
-
|
|
961
|
+
__wbg_set_6ae97e73113c4f0b: function(arg0, arg1, arg2) {
|
|
948
962
|
const ret = arg0.set(arg1, arg2);
|
|
949
963
|
return ret;
|
|
950
964
|
},
|
|
951
965
|
__wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
|
|
952
966
|
arg0[arg1] = arg2;
|
|
953
967
|
},
|
|
954
|
-
|
|
968
|
+
__wbg_set_bea140a88be9b277: function(arg0, arg1, arg2) {
|
|
969
|
+
arg0[arg1 >>> 0] = arg2;
|
|
970
|
+
},
|
|
971
|
+
__wbg_set_body_1fb0f1008bfc7df6: function(arg0, arg1) {
|
|
955
972
|
arg0.body = arg1;
|
|
956
973
|
},
|
|
957
|
-
|
|
974
|
+
__wbg_set_cache_7507c4cc5938ccc7: function(arg0, arg1) {
|
|
958
975
|
arg0.cache = __wbindgen_enum_RequestCache[arg1];
|
|
959
976
|
},
|
|
960
|
-
|
|
977
|
+
__wbg_set_credentials_e0dcce31ca532b7d: function(arg0, arg1) {
|
|
961
978
|
arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
|
|
962
979
|
},
|
|
963
|
-
|
|
964
|
-
arg0[arg1 >>> 0] = arg2;
|
|
965
|
-
},
|
|
966
|
-
__wbg_set_headers_7c1e39ece7826bec: function(arg0, arg1) {
|
|
980
|
+
__wbg_set_headers_40ad33dcf016613f: function(arg0, arg1) {
|
|
967
981
|
arg0.headers = arg1;
|
|
968
982
|
},
|
|
969
|
-
|
|
983
|
+
__wbg_set_method_dcb32343247ec427: function(arg0, arg1, arg2) {
|
|
970
984
|
arg0.method = getStringFromWasm0(arg1, arg2);
|
|
971
985
|
},
|
|
972
|
-
|
|
986
|
+
__wbg_set_mode_74e772635acb96ec: function(arg0, arg1) {
|
|
973
987
|
arg0.mode = __wbindgen_enum_RequestMode[arg1];
|
|
974
988
|
},
|
|
975
|
-
|
|
989
|
+
__wbg_set_signal_2dbd377604627f26: function(arg0, arg1) {
|
|
976
990
|
arg0.signal = arg1;
|
|
977
991
|
},
|
|
978
|
-
|
|
992
|
+
__wbg_signal_e5a49a2d9c65b7f6: function(arg0) {
|
|
979
993
|
const ret = arg0.signal;
|
|
980
994
|
return ret;
|
|
981
995
|
},
|
|
982
|
-
|
|
996
|
+
__wbg_size_8f1c0b1a1fbb3810: function(arg0) {
|
|
983
997
|
const ret = arg0.size;
|
|
984
998
|
return ret;
|
|
985
999
|
},
|
|
986
|
-
|
|
1000
|
+
__wbg_slice_afd8274aed4149c0: function() { return handleError(function (arg0, arg1, arg2) {
|
|
987
1001
|
const ret = arg0.slice(arg1, arg2);
|
|
988
1002
|
return ret;
|
|
989
1003
|
}, arguments); },
|
|
@@ -994,54 +1008,54 @@ function __wbg_get_imports() {
|
|
|
994
1008
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
995
1009
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
996
1010
|
},
|
|
997
|
-
|
|
1011
|
+
__wbg_static_accessor_GLOBAL_266715b9d96ba635: function() {
|
|
998
1012
|
const ret = typeof global === 'undefined' ? null : global;
|
|
999
1013
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1000
1014
|
},
|
|
1001
|
-
|
|
1015
|
+
__wbg_static_accessor_GLOBAL_THIS_10fb7dc1ae063179: function() {
|
|
1002
1016
|
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
1003
1017
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1004
1018
|
},
|
|
1005
|
-
|
|
1019
|
+
__wbg_static_accessor_SELF_0b583911f537483a: function() {
|
|
1006
1020
|
const ret = typeof self === 'undefined' ? null : self;
|
|
1007
1021
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1008
1022
|
},
|
|
1009
|
-
|
|
1023
|
+
__wbg_static_accessor_WINDOW_d7f903d1508cbdc4: function() {
|
|
1010
1024
|
const ret = typeof window === 'undefined' ? null : window;
|
|
1011
1025
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1012
1026
|
},
|
|
1013
|
-
|
|
1027
|
+
__wbg_status_ce0a98d3c57125f3: function(arg0) {
|
|
1014
1028
|
const ret = arg0.status;
|
|
1015
1029
|
return ret;
|
|
1016
1030
|
},
|
|
1017
|
-
|
|
1031
|
+
__wbg_stringify_52ff602c1cc4fbb6: function() { return handleError(function (arg0) {
|
|
1018
1032
|
const ret = JSON.stringify(arg0);
|
|
1019
1033
|
return ret;
|
|
1020
1034
|
}, arguments); },
|
|
1021
|
-
|
|
1035
|
+
__wbg_subarray_002b94d5e13d1411: function(arg0, arg1, arg2) {
|
|
1022
1036
|
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
1023
1037
|
return ret;
|
|
1024
1038
|
},
|
|
1025
|
-
|
|
1039
|
+
__wbg_then_c949d5a25a4e78f8: function(arg0, arg1, arg2) {
|
|
1026
1040
|
const ret = arg0.then(arg1, arg2);
|
|
1027
1041
|
return ret;
|
|
1028
1042
|
},
|
|
1029
|
-
|
|
1043
|
+
__wbg_then_e71170d78fcf8954: function(arg0, arg1) {
|
|
1030
1044
|
const ret = arg0.then(arg1);
|
|
1031
1045
|
return ret;
|
|
1032
1046
|
},
|
|
1033
|
-
|
|
1047
|
+
__wbg_url_8e28edeab4cd6bed: function(arg0, arg1) {
|
|
1034
1048
|
const ret = arg1.url;
|
|
1035
1049
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1036
1050
|
const len1 = WASM_VECTOR_LEN;
|
|
1037
1051
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1038
1052
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1039
1053
|
},
|
|
1040
|
-
|
|
1054
|
+
__wbg_valueOf_6abcff09c8156bb6: function(arg0) {
|
|
1041
1055
|
const ret = arg0.valueOf();
|
|
1042
1056
|
return ret;
|
|
1043
1057
|
},
|
|
1044
|
-
|
|
1058
|
+
__wbg_value_f3c585ee8f5ba40c: function(arg0) {
|
|
1045
1059
|
const ret = arg0.value;
|
|
1046
1060
|
return ret;
|
|
1047
1061
|
},
|
|
@@ -1053,42 +1067,42 @@ function __wbg_get_imports() {
|
|
|
1053
1067
|
const ret = WasmReader.__wrap(arg0);
|
|
1054
1068
|
return ret;
|
|
1055
1069
|
},
|
|
1056
|
-
|
|
1057
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
1058
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1070
|
+
__wbindgen_generic_0000000000000001: function(arg0, arg1) {
|
|
1071
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 3223, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1072
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_b4d0f5c6c916b3___convert__closures_____invoke___wasm_bindgen_b4d0f5c6c916b3___JsValue__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_b4d0f5c6c916b3___JsError___true_);
|
|
1059
1073
|
return ret;
|
|
1060
1074
|
},
|
|
1061
|
-
|
|
1062
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
1063
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1075
|
+
__wbindgen_generic_0000000000000002: function(arg0, arg1) {
|
|
1076
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 1939, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1077
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_b4d0f5c6c916b3___convert__closures_____invoke_______true_);
|
|
1064
1078
|
return ret;
|
|
1065
1079
|
},
|
|
1066
|
-
|
|
1080
|
+
__wbindgen_generic_0000000000000003: function(arg0) {
|
|
1067
1081
|
// Cast intrinsic for `F64 -> Externref`.
|
|
1068
1082
|
const ret = arg0;
|
|
1069
1083
|
return ret;
|
|
1070
1084
|
},
|
|
1071
|
-
|
|
1085
|
+
__wbindgen_generic_0000000000000004: function(arg0) {
|
|
1072
1086
|
// Cast intrinsic for `I64 -> Externref`.
|
|
1073
1087
|
const ret = arg0;
|
|
1074
1088
|
return ret;
|
|
1075
1089
|
},
|
|
1076
|
-
|
|
1090
|
+
__wbindgen_generic_0000000000000005: function(arg0, arg1) {
|
|
1077
1091
|
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
1078
1092
|
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
1079
1093
|
return ret;
|
|
1080
1094
|
},
|
|
1081
|
-
|
|
1095
|
+
__wbindgen_generic_0000000000000006: function(arg0, arg1) {
|
|
1082
1096
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
1083
1097
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
1084
1098
|
return ret;
|
|
1085
1099
|
},
|
|
1086
|
-
|
|
1100
|
+
__wbindgen_generic_0000000000000007: function(arg0) {
|
|
1087
1101
|
// Cast intrinsic for `U64 -> Externref`.
|
|
1088
1102
|
const ret = BigInt.asUintN(64, arg0);
|
|
1089
1103
|
return ret;
|
|
1090
1104
|
},
|
|
1091
|
-
|
|
1105
|
+
__wbindgen_generic_0000000000000008: function(arg0, arg1) {
|
|
1092
1106
|
var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
|
|
1093
1107
|
wasm.__wbindgen_free(arg0, arg1 * 1, 1);
|
|
1094
1108
|
// Cast intrinsic for `Vector(U8) -> Externref`.
|
|
@@ -1111,19 +1125,19 @@ function __wbg_get_imports() {
|
|
|
1111
1125
|
};
|
|
1112
1126
|
}
|
|
1113
1127
|
|
|
1114
|
-
function
|
|
1115
|
-
wasm.
|
|
1128
|
+
function wasm_bindgen_b4d0f5c6c916b3___convert__closures_____invoke_______true_(arg0, arg1) {
|
|
1129
|
+
wasm.wasm_bindgen_b4d0f5c6c916b3___convert__closures_____invoke_______true_(arg0, arg1);
|
|
1116
1130
|
}
|
|
1117
1131
|
|
|
1118
|
-
function
|
|
1119
|
-
const ret = wasm.
|
|
1132
|
+
function wasm_bindgen_b4d0f5c6c916b3___convert__closures_____invoke___wasm_bindgen_b4d0f5c6c916b3___JsValue__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_b4d0f5c6c916b3___JsError___true_(arg0, arg1, arg2) {
|
|
1133
|
+
const ret = wasm.wasm_bindgen_b4d0f5c6c916b3___convert__closures_____invoke___wasm_bindgen_b4d0f5c6c916b3___JsValue__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_b4d0f5c6c916b3___JsError___true_(arg0, arg1, arg2);
|
|
1120
1134
|
if (ret[1]) {
|
|
1121
1135
|
throw takeFromExternrefTable0(ret[0]);
|
|
1122
1136
|
}
|
|
1123
1137
|
}
|
|
1124
1138
|
|
|
1125
|
-
function
|
|
1126
|
-
wasm.
|
|
1139
|
+
function wasm_bindgen_b4d0f5c6c916b3___convert__closures_____invoke___js_sys_f208cbbfceb06800___Function_fn_wasm_bindgen_b4d0f5c6c916b3___JsValue_____wasm_bindgen_b4d0f5c6c916b3___sys__Undefined___js_sys_f208cbbfceb06800___Function_fn_wasm_bindgen_b4d0f5c6c916b3___JsValue_____wasm_bindgen_b4d0f5c6c916b3___sys__Undefined_______true_(arg0, arg1, arg2, arg3) {
|
|
1140
|
+
wasm.wasm_bindgen_b4d0f5c6c916b3___convert__closures_____invoke___js_sys_f208cbbfceb06800___Function_fn_wasm_bindgen_b4d0f5c6c916b3___JsValue_____wasm_bindgen_b4d0f5c6c916b3___sys__Undefined___js_sys_f208cbbfceb06800___Function_fn_wasm_bindgen_b4d0f5c6c916b3___JsValue_____wasm_bindgen_b4d0f5c6c916b3___sys__Undefined_______true_(arg0, arg1, arg2, arg3);
|
|
1127
1141
|
}
|
|
1128
1142
|
|
|
1129
1143
|
|
|
@@ -1393,11 +1407,15 @@ function __wbg_finalize_init(instance, module) {
|
|
|
1393
1407
|
|
|
1394
1408
|
async function __wbg_load(module, imports) {
|
|
1395
1409
|
if (typeof Response === 'function' && module instanceof Response) {
|
|
1410
|
+
if (!module.ok) {
|
|
1411
|
+
throw new Error(`failed to fetch Wasm: ${module.status} ${module.statusText} fetching '${module.url}'`);
|
|
1412
|
+
}
|
|
1413
|
+
|
|
1396
1414
|
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
1397
1415
|
try {
|
|
1398
1416
|
return await WebAssembly.instantiateStreaming(module, imports);
|
|
1399
1417
|
} catch (e) {
|
|
1400
|
-
const validResponse =
|
|
1418
|
+
const validResponse = expectedResponseType(module.type);
|
|
1401
1419
|
|
|
1402
1420
|
if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
|
|
1403
1421
|
console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
|
|
@@ -1471,4 +1489,4 @@ async function __wbg_init(module_or_path) {
|
|
|
1471
1489
|
}
|
|
1472
1490
|
|
|
1473
1491
|
export { initSync, __wbg_init as default };
|
|
1474
|
-
export const WASM_SRI = "sha512-
|
|
1492
|
+
export const WASM_SRI = "sha512-l5R2SWbu07MUf5BWcO9CtZtNK2R6o/ib4q+ca+AVbuijvMIPtnRDH9cDrhijRCTEdTzvIftBa15zEr5RT2n3Ww==";
|
package/pkg/c2pa_bg.wasm
CHANGED
|
Binary file
|
package/pkg/c2pa_bg.wasm.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
-
export const __wbg_wasmsigner_free: (a: number, b: number) => void;
|
|
5
|
-
export const wasmsigner_fromDefinition: (a: any) => [number, number, number];
|
|
6
4
|
export const __wbg_wasmbuilder_free: (a: number, b: number) => void;
|
|
7
5
|
export const __wbg_wasmreader_free: (a: number, b: number) => void;
|
|
6
|
+
export const __wbg_wasmsigner_free: (a: number, b: number) => void;
|
|
8
7
|
export const run: () => void;
|
|
9
8
|
export const wasmbuilder_addAction: (a: number, b: any) => [number, number];
|
|
10
9
|
export const wasmbuilder_addAssertion: (a: number, b: number, c: number, d: any) => [number, number];
|
|
@@ -27,6 +26,7 @@ export const wasmbuilder_sign: (a: number, b: any, c: any, d: number, e: number,
|
|
|
27
26
|
export const wasmbuilder_signAndGetManifestBytes: (a: number, b: any, c: any, d: number, e: number, f: any) => any;
|
|
28
27
|
export const wasmbuilder_toArchive: (a: number) => [number, number, number];
|
|
29
28
|
export const wasmbuilder_updateActionsAt: (a: number, b: any) => [number, number];
|
|
29
|
+
export const wasmbuilder_updateAssertionsAt: (a: number, b: number, c: number, d: any) => [number, number];
|
|
30
30
|
export const wasmreader_activeLabel: (a: number) => [number, number];
|
|
31
31
|
export const wasmreader_activeManifest: (a: number) => [number, number, number];
|
|
32
32
|
export const wasmreader_crJson: (a: number) => [number, number];
|
|
@@ -36,9 +36,10 @@ export const wasmreader_fromBytes: (a: number, b: number, c: number, d: number,
|
|
|
36
36
|
export const wasmreader_json: (a: number) => [number, number];
|
|
37
37
|
export const wasmreader_manifestStore: (a: number) => [number, number, number];
|
|
38
38
|
export const wasmreader_resourceToBytes: (a: number, b: number, c: number) => [number, number, number];
|
|
39
|
-
export const
|
|
40
|
-
export const
|
|
41
|
-
export const
|
|
39
|
+
export const wasmsigner_fromDefinition: (a: any) => [number, number, number];
|
|
40
|
+
export const wasm_bindgen_b4d0f5c6c916b3___convert__closures_____invoke___js_sys_f208cbbfceb06800___Function_fn_wasm_bindgen_b4d0f5c6c916b3___JsValue_____wasm_bindgen_b4d0f5c6c916b3___sys__Undefined___js_sys_f208cbbfceb06800___Function_fn_wasm_bindgen_b4d0f5c6c916b3___JsValue_____wasm_bindgen_b4d0f5c6c916b3___sys__Undefined_______true_: (a: number, b: number, c: any, d: any) => void;
|
|
41
|
+
export const wasm_bindgen_b4d0f5c6c916b3___convert__closures_____invoke___wasm_bindgen_b4d0f5c6c916b3___JsValue__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_b4d0f5c6c916b3___JsError___true_: (a: number, b: number, c: any) => [number, number];
|
|
42
|
+
export const wasm_bindgen_b4d0f5c6c916b3___convert__closures_____invoke_______true_: (a: number, b: number) => void;
|
|
42
43
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
43
44
|
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
44
45
|
export const __wbindgen_exn_store: (a: number) => void;
|