@learncard/core 7.0.3 → 8.0.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/dist/core.cjs.development.js +8117 -4300
- package/dist/core.cjs.development.js.map +3 -3
- package/dist/core.cjs.production.min.js +197 -197
- package/dist/core.cjs.production.min.js.map +3 -3
- package/dist/core.d.ts +1009 -503
- package/dist/core.esm.js +8117 -4300
- package/dist/core.esm.js.map +3 -3
- package/dist/didkit/didkit_wasm.d.ts +2 -12
- package/dist/didkit/didkit_wasm.js +338 -242
- package/dist/didkit/didkit_wasm_bg.wasm +0 -0
- package/dist/didkit/didkit_wasm_bg.wasm.d.ts +2 -12
- package/dist/didkit_wasm.d.ts +2 -12
- package/dist/didkit_wasm.js +338 -242
- package/dist/didkit_wasm_bg.wasm +0 -0
- package/dist/didkit_wasm_bg.wasm.d.ts +2 -12
- package/package.json +3 -2
| @@ -1,4 +1,3 @@ | |
| 1 | 
            -
             | 
| 2 1 | 
             
            let wasm;
         | 
| 3 2 |  | 
| 4 3 | 
             
            const cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
         | 
| @@ -33,7 +32,9 @@ function addHeapObject(obj) { | |
| 33 32 | 
             
                return idx;
         | 
| 34 33 | 
             
            }
         | 
| 35 34 |  | 
| 36 | 
            -
            function getObject(idx) { | 
| 35 | 
            +
            function getObject(idx) {
         | 
| 36 | 
            +
                return heap[idx];
         | 
| 37 | 
            +
            }
         | 
| 37 38 |  | 
| 38 39 | 
             
            function dropObject(idx) {
         | 
| 39 40 | 
             
                if (idx < 36) return;
         | 
| @@ -51,25 +52,27 @@ let WASM_VECTOR_LEN = 0; | |
| 51 52 |  | 
| 52 53 | 
             
            const cachedTextEncoder = new TextEncoder('utf-8');
         | 
| 53 54 |  | 
| 54 | 
            -
            const encodeString = | 
| 55 | 
            -
                 | 
| 56 | 
            -
             | 
| 57 | 
            -
             | 
| 58 | 
            -
             | 
| 59 | 
            -
             | 
| 60 | 
            -
             | 
| 61 | 
            -
             | 
| 62 | 
            -
             | 
| 63 | 
            -
             | 
| 64 | 
            -
             | 
| 65 | 
            -
            } | 
| 55 | 
            +
            const encodeString =
         | 
| 56 | 
            +
                typeof cachedTextEncoder.encodeInto === 'function'
         | 
| 57 | 
            +
                    ? function(arg, view) {
         | 
| 58 | 
            +
                        return cachedTextEncoder.encodeInto(arg, view);
         | 
| 59 | 
            +
                    }
         | 
| 60 | 
            +
                    : function(arg, view) {
         | 
| 61 | 
            +
                        const buf = cachedTextEncoder.encode(arg);
         | 
| 62 | 
            +
                        view.set(buf);
         | 
| 63 | 
            +
                        return {
         | 
| 64 | 
            +
                            read: arg.length,
         | 
| 65 | 
            +
                            written: buf.length,
         | 
| 66 | 
            +
                        };
         | 
| 67 | 
            +
                    };
         | 
| 66 68 |  | 
| 67 69 | 
             
            function passStringToWasm0(arg, malloc, realloc) {
         | 
| 68 | 
            -
             | 
| 69 70 | 
             
                if (realloc === undefined) {
         | 
| 70 71 | 
             
                    const buf = cachedTextEncoder.encode(arg);
         | 
| 71 72 | 
             
                    const ptr = malloc(buf.length);
         | 
| 72 | 
            -
                    getUint8Memory0() | 
| 73 | 
            +
                    getUint8Memory0()
         | 
| 74 | 
            +
                        .subarray(ptr, ptr + buf.length)
         | 
| 75 | 
            +
                        .set(buf);
         | 
| 73 76 | 
             
                    WASM_VECTOR_LEN = buf.length;
         | 
| 74 77 | 
             
                    return ptr;
         | 
| 75 78 | 
             
                }
         | 
| @@ -83,7 +86,7 @@ function passStringToWasm0(arg, malloc, realloc) { | |
| 83 86 |  | 
| 84 87 | 
             
                for (; offset < len; offset++) {
         | 
| 85 88 | 
             
                    const code = arg.charCodeAt(offset);
         | 
| 86 | 
            -
                    if (code >  | 
| 89 | 
            +
                    if (code > 0x7f) break;
         | 
| 87 90 | 
             
                    mem[ptr + offset] = code;
         | 
| 88 91 | 
             
                }
         | 
| 89 92 |  | 
| @@ -91,7 +94,7 @@ function passStringToWasm0(arg, malloc, realloc) { | |
| 91 94 | 
             
                    if (offset !== 0) {
         | 
| 92 95 | 
             
                        arg = arg.slice(offset);
         | 
| 93 96 | 
             
                    }
         | 
| 94 | 
            -
                    ptr = realloc(ptr, len, len = offset + arg.length * 3);
         | 
| 97 | 
            +
                    ptr = realloc(ptr, len, (len = offset + arg.length * 3));
         | 
| 95 98 | 
             
                    const view = getUint8Memory0().subarray(ptr + offset, ptr + len);
         | 
| 96 99 | 
             
                    const ret = encodeString(arg, view);
         | 
| 97 100 |  | 
| @@ -119,7 +122,7 @@ function debugString(val) { | |
| 119 122 | 
             
                // primitive types
         | 
| 120 123 | 
             
                const type = typeof val;
         | 
| 121 124 | 
             
                if (type == 'number' || type == 'boolean' || val == null) {
         | 
| 122 | 
            -
                    return | 
| 125 | 
            +
                    return `${val}`;
         | 
| 123 126 | 
             
                }
         | 
| 124 127 | 
             
                if (type == 'string') {
         | 
| 125 128 | 
             
                    return `"${val}"`;
         | 
| @@ -147,7 +150,7 @@ function debugString(val) { | |
| 147 150 | 
             
                    if (length > 0) {
         | 
| 148 151 | 
             
                        debug += debugString(val[0]);
         | 
| 149 152 | 
             
                    }
         | 
| 150 | 
            -
                    for(let i = 1; i < length; i++) {
         | 
| 153 | 
            +
                    for (let i = 1; i < length; i++) {
         | 
| 151 154 | 
             
                        debug += ', ' + debugString(val[i]);
         | 
| 152 155 | 
             
                    }
         | 
| 153 156 | 
             
                    debug += ']';
         | 
| @@ -194,7 +197,6 @@ function makeMutClosure(arg0, arg1, dtor, f) { | |
| 194 197 | 
             
                    } finally {
         | 
| 195 198 | 
             
                        if (--state.cnt === 0) {
         | 
| 196 199 | 
             
                            wasm.__wbindgen_export_2.get(state.dtor)(a, state.b);
         | 
| 197 | 
            -
             | 
| 198 200 | 
             
                        } else {
         | 
| 199 201 | 
             
                            state.a = a;
         | 
| 200 202 | 
             
                        }
         | 
| @@ -205,12 +207,16 @@ function makeMutClosure(arg0, arg1, dtor, f) { | |
| 205 207 | 
             
                return real;
         | 
| 206 208 | 
             
            }
         | 
| 207 209 | 
             
            function __wbg_adapter_24(arg0, arg1, arg2) {
         | 
| 208 | 
            -
                wasm. | 
| 210 | 
            +
                wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hf93d85b78df19dde(
         | 
| 211 | 
            +
                    arg0,
         | 
| 212 | 
            +
                    arg1,
         | 
| 213 | 
            +
                    addHeapObject(arg2)
         | 
| 214 | 
            +
                );
         | 
| 209 215 | 
             
            }
         | 
| 210 216 |  | 
| 211 217 | 
             
            /**
         | 
| 212 | 
            -
            * @returns {string}
         | 
| 213 | 
            -
            */
         | 
| 218 | 
            +
             * @returns {string}
         | 
| 219 | 
            +
             */
         | 
| 214 220 | 
             
            export function getVersion() {
         | 
| 215 221 | 
             
                try {
         | 
| 216 222 | 
             
                    const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
         | 
| @@ -225,10 +231,10 @@ export function getVersion() { | |
| 225 231 | 
             
            }
         | 
| 226 232 |  | 
| 227 233 | 
             
            /**
         | 
| 228 | 
            -
            * @param {string} did
         | 
| 229 | 
            -
            * @param {string} input_metadata
         | 
| 230 | 
            -
            * @returns {Promise<any>}
         | 
| 231 | 
            -
            */
         | 
| 234 | 
            +
             * @param {string} did
         | 
| 235 | 
            +
             * @param {string} input_metadata
         | 
| 236 | 
            +
             * @returns {Promise<any>}
         | 
| 237 | 
            +
             */
         | 
| 232 238 | 
             
            export function resolveDID(did, input_metadata) {
         | 
| 233 239 | 
             
                const ptr0 = passStringToWasm0(did, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
         | 
| 234 240 | 
             
                const len0 = WASM_VECTOR_LEN;
         | 
| @@ -239,8 +245,8 @@ export function resolveDID(did, input_metadata) { | |
| 239 245 | 
             
            }
         | 
| 240 246 |  | 
| 241 247 | 
             
            /**
         | 
| 242 | 
            -
            * @returns {string}
         | 
| 243 | 
            -
            */
         | 
| 248 | 
            +
             * @returns {string}
         | 
| 249 | 
            +
             */
         | 
| 244 250 | 
             
            export function generateEd25519Key() {
         | 
| 245 251 | 
             
                try {
         | 
| 246 252 | 
             
                    const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
         | 
| @@ -252,7 +258,8 @@ export function generateEd25519Key() { | |
| 252 258 | 
             
                    var ptr0 = r0;
         | 
| 253 259 | 
             
                    var len0 = r1;
         | 
| 254 260 | 
             
                    if (r3) {
         | 
| 255 | 
            -
                        ptr0 = 0; | 
| 261 | 
            +
                        ptr0 = 0;
         | 
| 262 | 
            +
                        len0 = 0;
         | 
| 256 263 | 
             
                        throw takeObject(r2);
         | 
| 257 264 | 
             
                    }
         | 
| 258 265 | 
             
                    return getStringFromWasm0(ptr0, len0);
         | 
| @@ -269,9 +276,9 @@ function passArray8ToWasm0(arg, malloc) { | |
| 269 276 | 
             
                return ptr;
         | 
| 270 277 | 
             
            }
         | 
| 271 278 | 
             
            /**
         | 
| 272 | 
            -
            * @param {Uint8Array} bytes
         | 
| 273 | 
            -
            * @returns {string}
         | 
| 274 | 
            -
            */
         | 
| 279 | 
            +
             * @param {Uint8Array} bytes
         | 
| 280 | 
            +
             * @returns {string}
         | 
| 281 | 
            +
             */
         | 
| 275 282 | 
             
            export function generateEd25519KeyFromBytes(bytes) {
         | 
| 276 283 | 
             
                try {
         | 
| 277 284 | 
             
                    const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
         | 
| @@ -285,7 +292,8 @@ export function generateEd25519KeyFromBytes(bytes) { | |
| 285 292 | 
             
                    var ptr1 = r0;
         | 
| 286 293 | 
             
                    var len1 = r1;
         | 
| 287 294 | 
             
                    if (r3) {
         | 
| 288 | 
            -
                        ptr1 = 0; | 
| 295 | 
            +
                        ptr1 = 0;
         | 
| 296 | 
            +
                        len1 = 0;
         | 
| 289 297 | 
             
                        throw takeObject(r2);
         | 
| 290 298 | 
             
                    }
         | 
| 291 299 | 
             
                    return getStringFromWasm0(ptr1, len1);
         | 
| @@ -296,8 +304,8 @@ export function generateEd25519KeyFromBytes(bytes) { | |
| 296 304 | 
             
            }
         | 
| 297 305 |  | 
| 298 306 | 
             
            /**
         | 
| 299 | 
            -
            * @returns {string}
         | 
| 300 | 
            -
            */
         | 
| 307 | 
            +
             * @returns {string}
         | 
| 308 | 
            +
             */
         | 
| 301 309 | 
             
            export function generateSecp256k1Key() {
         | 
| 302 310 | 
             
                try {
         | 
| 303 311 | 
             
                    const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
         | 
| @@ -309,7 +317,8 @@ export function generateSecp256k1Key() { | |
| 309 317 | 
             
                    var ptr0 = r0;
         | 
| 310 318 | 
             
                    var len0 = r1;
         | 
| 311 319 | 
             
                    if (r3) {
         | 
| 312 | 
            -
                        ptr0 = 0; | 
| 320 | 
            +
                        ptr0 = 0;
         | 
| 321 | 
            +
                        len0 = 0;
         | 
| 313 322 | 
             
                        throw takeObject(r2);
         | 
| 314 323 | 
             
                    }
         | 
| 315 324 | 
             
                    return getStringFromWasm0(ptr0, len0);
         | 
| @@ -320,9 +329,9 @@ export function generateSecp256k1Key() { | |
| 320 329 | 
             
            }
         | 
| 321 330 |  | 
| 322 331 | 
             
            /**
         | 
| 323 | 
            -
            * @param {Uint8Array} bytes
         | 
| 324 | 
            -
            * @returns {string}
         | 
| 325 | 
            -
            */
         | 
| 332 | 
            +
             * @param {Uint8Array} bytes
         | 
| 333 | 
            +
             * @returns {string}
         | 
| 334 | 
            +
             */
         | 
| 326 335 | 
             
            export function generateSecp256k1KeyFromBytes(bytes) {
         | 
| 327 336 | 
             
                try {
         | 
| 328 337 | 
             
                    const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
         | 
| @@ -336,7 +345,8 @@ export function generateSecp256k1KeyFromBytes(bytes) { | |
| 336 345 | 
             
                    var ptr1 = r0;
         | 
| 337 346 | 
             
                    var len1 = r1;
         | 
| 338 347 | 
             
                    if (r3) {
         | 
| 339 | 
            -
                        ptr1 = 0; | 
| 348 | 
            +
                        ptr1 = 0;
         | 
| 349 | 
            +
                        len1 = 0;
         | 
| 340 350 | 
             
                        throw takeObject(r2);
         | 
| 341 351 | 
             
                    }
         | 
| 342 352 | 
             
                    return getStringFromWasm0(ptr1, len1);
         | 
| @@ -347,14 +357,18 @@ export function generateSecp256k1KeyFromBytes(bytes) { | |
| 347 357 | 
             
            }
         | 
| 348 358 |  | 
| 349 359 | 
             
            /**
         | 
| 350 | 
            -
            * @param {string} method_pattern
         | 
| 351 | 
            -
            * @param {string} jwk
         | 
| 352 | 
            -
            * @returns {string}
         | 
| 353 | 
            -
            */
         | 
| 360 | 
            +
             * @param {string} method_pattern
         | 
| 361 | 
            +
             * @param {string} jwk
         | 
| 362 | 
            +
             * @returns {string}
         | 
| 363 | 
            +
             */
         | 
| 354 364 | 
             
            export function keyToDID(method_pattern, jwk) {
         | 
| 355 365 | 
             
                try {
         | 
| 356 366 | 
             
                    const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
         | 
| 357 | 
            -
                    const ptr0 = passStringToWasm0( | 
| 367 | 
            +
                    const ptr0 = passStringToWasm0(
         | 
| 368 | 
            +
                        method_pattern,
         | 
| 369 | 
            +
                        wasm.__wbindgen_malloc,
         | 
| 370 | 
            +
                        wasm.__wbindgen_realloc
         | 
| 371 | 
            +
                    );
         | 
| 358 372 | 
             
                    const len0 = WASM_VECTOR_LEN;
         | 
| 359 373 | 
             
                    const ptr1 = passStringToWasm0(jwk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
         | 
| 360 374 | 
             
                    const len1 = WASM_VECTOR_LEN;
         | 
| @@ -366,7 +380,8 @@ export function keyToDID(method_pattern, jwk) { | |
| 366 380 | 
             
                    var ptr2 = r0;
         | 
| 367 381 | 
             
                    var len2 = r1;
         | 
| 368 382 | 
             
                    if (r3) {
         | 
| 369 | 
            -
                        ptr2 = 0; | 
| 383 | 
            +
                        ptr2 = 0;
         | 
| 384 | 
            +
                        len2 = 0;
         | 
| 370 385 | 
             
                        throw takeObject(r2);
         | 
| 371 386 | 
             
                    }
         | 
| 372 387 | 
             
                    return getStringFromWasm0(ptr2, len2);
         | 
| @@ -377,10 +392,10 @@ export function keyToDID(method_pattern, jwk) { | |
| 377 392 | 
             
            }
         | 
| 378 393 |  | 
| 379 394 | 
             
            /**
         | 
| 380 | 
            -
            * @param {string} method_pattern
         | 
| 381 | 
            -
            * @param {string} jwk
         | 
| 382 | 
            -
            * @returns {Promise<any>}
         | 
| 383 | 
            -
            */
         | 
| 395 | 
            +
             * @param {string} method_pattern
         | 
| 396 | 
            +
             * @param {string} jwk
         | 
| 397 | 
            +
             * @returns {Promise<any>}
         | 
| 398 | 
            +
             */
         | 
| 384 399 | 
             
            export function keyToVerificationMethod(method_pattern, jwk) {
         | 
| 385 400 | 
             
                const ptr0 = passStringToWasm0(method_pattern, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
         | 
| 386 401 | 
             
                const len0 = WASM_VECTOR_LEN;
         | 
| @@ -391,11 +406,11 @@ export function keyToVerificationMethod(method_pattern, jwk) { | |
| 391 406 | 
             
            }
         | 
| 392 407 |  | 
| 393 408 | 
             
            /**
         | 
| 394 | 
            -
            * @param {string} credential
         | 
| 395 | 
            -
            * @param {string} proof_options
         | 
| 396 | 
            -
            * @param {string} key
         | 
| 397 | 
            -
            * @returns {Promise<any>}
         | 
| 398 | 
            -
            */
         | 
| 409 | 
            +
             * @param {string} credential
         | 
| 410 | 
            +
             * @param {string} proof_options
         | 
| 411 | 
            +
             * @param {string} key
         | 
| 412 | 
            +
             * @returns {Promise<any>}
         | 
| 413 | 
            +
             */
         | 
| 399 414 | 
             
            export function issueCredential(credential, proof_options, key) {
         | 
| 400 415 | 
             
                const ptr0 = passStringToWasm0(credential, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
         | 
| 401 416 | 
             
                const len0 = WASM_VECTOR_LEN;
         | 
| @@ -408,15 +423,19 @@ export function issueCredential(credential, proof_options, key) { | |
| 408 423 | 
             
            }
         | 
| 409 424 |  | 
| 410 425 | 
             
            /**
         | 
| 411 | 
            -
            * @param {string} credential
         | 
| 412 | 
            -
            * @param {string} linked_data_proof_options
         | 
| 413 | 
            -
            * @param {string} public_key
         | 
| 414 | 
            -
            * @returns {Promise<any>}
         | 
| 415 | 
            -
            */
         | 
| 426 | 
            +
             * @param {string} credential
         | 
| 427 | 
            +
             * @param {string} linked_data_proof_options
         | 
| 428 | 
            +
             * @param {string} public_key
         | 
| 429 | 
            +
             * @returns {Promise<any>}
         | 
| 430 | 
            +
             */
         | 
| 416 431 | 
             
            export function prepareIssueCredential(credential, linked_data_proof_options, public_key) {
         | 
| 417 432 | 
             
                const ptr0 = passStringToWasm0(credential, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
         | 
| 418 433 | 
             
                const len0 = WASM_VECTOR_LEN;
         | 
| 419 | 
            -
                const ptr1 = passStringToWasm0( | 
| 434 | 
            +
                const ptr1 = passStringToWasm0(
         | 
| 435 | 
            +
                    linked_data_proof_options,
         | 
| 436 | 
            +
                    wasm.__wbindgen_malloc,
         | 
| 437 | 
            +
                    wasm.__wbindgen_realloc
         | 
| 438 | 
            +
                );
         | 
| 420 439 | 
             
                const len1 = WASM_VECTOR_LEN;
         | 
| 421 440 | 
             
                const ptr2 = passStringToWasm0(public_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
         | 
| 422 441 | 
             
                const len2 = WASM_VECTOR_LEN;
         | 
| @@ -425,11 +444,11 @@ export function prepareIssueCredential(credential, linked_data_proof_options, pu | |
| 425 444 | 
             
            }
         | 
| 426 445 |  | 
| 427 446 | 
             
            /**
         | 
| 428 | 
            -
            * @param {string} credential
         | 
| 429 | 
            -
            * @param {string} preparation
         | 
| 430 | 
            -
            * @param {string} signature
         | 
| 431 | 
            -
            * @returns {Promise<any>}
         | 
| 432 | 
            -
            */
         | 
| 447 | 
            +
             * @param {string} credential
         | 
| 448 | 
            +
             * @param {string} preparation
         | 
| 449 | 
            +
             * @param {string} signature
         | 
| 450 | 
            +
             * @returns {Promise<any>}
         | 
| 451 | 
            +
             */
         | 
| 433 452 | 
             
            export function completeIssueCredential(credential, preparation, signature) {
         | 
| 434 453 | 
             
                const ptr0 = passStringToWasm0(credential, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
         | 
| 435 454 | 
             
                const len0 = WASM_VECTOR_LEN;
         | 
| @@ -442,10 +461,10 @@ export function completeIssueCredential(credential, preparation, signature) { | |
| 442 461 | 
             
            }
         | 
| 443 462 |  | 
| 444 463 | 
             
            /**
         | 
| 445 | 
            -
            * @param {string} vc
         | 
| 446 | 
            -
            * @param {string} proof_options
         | 
| 447 | 
            -
            * @returns {Promise<any>}
         | 
| 448 | 
            -
            */
         | 
| 464 | 
            +
             * @param {string} vc
         | 
| 465 | 
            +
             * @param {string} proof_options
         | 
| 466 | 
            +
             * @returns {Promise<any>}
         | 
| 467 | 
            +
             */
         | 
| 449 468 | 
             
            export function verifyCredential(vc, proof_options) {
         | 
| 450 469 | 
             
                const ptr0 = passStringToWasm0(vc, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
         | 
| 451 470 | 
             
                const len0 = WASM_VECTOR_LEN;
         | 
| @@ -456,11 +475,11 @@ export function verifyCredential(vc, proof_options) { | |
| 456 475 | 
             
            }
         | 
| 457 476 |  | 
| 458 477 | 
             
            /**
         | 
| 459 | 
            -
            * @param {string} presentation
         | 
| 460 | 
            -
            * @param {string} proof_options
         | 
| 461 | 
            -
            * @param {string} key
         | 
| 462 | 
            -
            * @returns {Promise<any>}
         | 
| 463 | 
            -
            */
         | 
| 478 | 
            +
             * @param {string} presentation
         | 
| 479 | 
            +
             * @param {string} proof_options
         | 
| 480 | 
            +
             * @param {string} key
         | 
| 481 | 
            +
             * @returns {Promise<any>}
         | 
| 482 | 
            +
             */
         | 
| 464 483 | 
             
            export function issuePresentation(presentation, proof_options, key) {
         | 
| 465 484 | 
             
                const ptr0 = passStringToWasm0(presentation, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
         | 
| 466 485 | 
             
                const len0 = WASM_VECTOR_LEN;
         | 
| @@ -473,15 +492,19 @@ export function issuePresentation(presentation, proof_options, key) { | |
| 473 492 | 
             
            }
         | 
| 474 493 |  | 
| 475 494 | 
             
            /**
         | 
| 476 | 
            -
            * @param {string} presentation
         | 
| 477 | 
            -
            * @param {string} linked_data_proof_options
         | 
| 478 | 
            -
            * @param {string} public_key
         | 
| 479 | 
            -
            * @returns {Promise<any>}
         | 
| 480 | 
            -
            */
         | 
| 495 | 
            +
             * @param {string} presentation
         | 
| 496 | 
            +
             * @param {string} linked_data_proof_options
         | 
| 497 | 
            +
             * @param {string} public_key
         | 
| 498 | 
            +
             * @returns {Promise<any>}
         | 
| 499 | 
            +
             */
         | 
| 481 500 | 
             
            export function prepareIssuePresentation(presentation, linked_data_proof_options, public_key) {
         | 
| 482 501 | 
             
                const ptr0 = passStringToWasm0(presentation, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
         | 
| 483 502 | 
             
                const len0 = WASM_VECTOR_LEN;
         | 
| 484 | 
            -
                const ptr1 = passStringToWasm0( | 
| 503 | 
            +
                const ptr1 = passStringToWasm0(
         | 
| 504 | 
            +
                    linked_data_proof_options,
         | 
| 505 | 
            +
                    wasm.__wbindgen_malloc,
         | 
| 506 | 
            +
                    wasm.__wbindgen_realloc
         | 
| 507 | 
            +
                );
         | 
| 485 508 | 
             
                const len1 = WASM_VECTOR_LEN;
         | 
| 486 509 | 
             
                const ptr2 = passStringToWasm0(public_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
         | 
| 487 510 | 
             
                const len2 = WASM_VECTOR_LEN;
         | 
| @@ -490,11 +513,11 @@ export function prepareIssuePresentation(presentation, linked_data_proof_options | |
| 490 513 | 
             
            }
         | 
| 491 514 |  | 
| 492 515 | 
             
            /**
         | 
| 493 | 
            -
            * @param {string} presentation
         | 
| 494 | 
            -
            * @param {string} preparation
         | 
| 495 | 
            -
            * @param {string} signature
         | 
| 496 | 
            -
            * @returns {Promise<any>}
         | 
| 497 | 
            -
            */
         | 
| 516 | 
            +
             * @param {string} presentation
         | 
| 517 | 
            +
             * @param {string} preparation
         | 
| 518 | 
            +
             * @param {string} signature
         | 
| 519 | 
            +
             * @returns {Promise<any>}
         | 
| 520 | 
            +
             */
         | 
| 498 521 | 
             
            export function completeIssuePresentation(presentation, preparation, signature) {
         | 
| 499 522 | 
             
                const ptr0 = passStringToWasm0(presentation, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
         | 
| 500 523 | 
             
                const len0 = WASM_VECTOR_LEN;
         | 
| @@ -507,10 +530,10 @@ export function completeIssuePresentation(presentation, preparation, signature) | |
| 507 530 | 
             
            }
         | 
| 508 531 |  | 
| 509 532 | 
             
            /**
         | 
| 510 | 
            -
            * @param {string} vp
         | 
| 511 | 
            -
            * @param {string} proof_options
         | 
| 512 | 
            -
            * @returns {Promise<any>}
         | 
| 513 | 
            -
            */
         | 
| 533 | 
            +
             * @param {string} vp
         | 
| 534 | 
            +
             * @param {string} proof_options
         | 
| 535 | 
            +
             * @returns {Promise<any>}
         | 
| 536 | 
            +
             */
         | 
| 514 537 | 
             
            export function verifyPresentation(vp, proof_options) {
         | 
| 515 538 | 
             
                const ptr0 = passStringToWasm0(vp, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
         | 
| 516 539 | 
             
                const len0 = WASM_VECTOR_LEN;
         | 
| @@ -521,15 +544,19 @@ export function verifyPresentation(vp, proof_options) { | |
| 521 544 | 
             
            }
         | 
| 522 545 |  | 
| 523 546 | 
             
            /**
         | 
| 524 | 
            -
            * @param {string} holder
         | 
| 525 | 
            -
            * @param {string} linked_data_proof_options
         | 
| 526 | 
            -
            * @param {string} key
         | 
| 527 | 
            -
            * @returns {Promise<any>}
         | 
| 528 | 
            -
            */
         | 
| 547 | 
            +
             * @param {string} holder
         | 
| 548 | 
            +
             * @param {string} linked_data_proof_options
         | 
| 549 | 
            +
             * @param {string} key
         | 
| 550 | 
            +
             * @returns {Promise<any>}
         | 
| 551 | 
            +
             */
         | 
| 529 552 | 
             
            export function DIDAuth(holder, linked_data_proof_options, key) {
         | 
| 530 553 | 
             
                const ptr0 = passStringToWasm0(holder, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
         | 
| 531 554 | 
             
                const len0 = WASM_VECTOR_LEN;
         | 
| 532 | 
            -
                const ptr1 = passStringToWasm0( | 
| 555 | 
            +
                const ptr1 = passStringToWasm0(
         | 
| 556 | 
            +
                    linked_data_proof_options,
         | 
| 557 | 
            +
                    wasm.__wbindgen_malloc,
         | 
| 558 | 
            +
                    wasm.__wbindgen_realloc
         | 
| 559 | 
            +
                );
         | 
| 533 560 | 
             
                const len1 = WASM_VECTOR_LEN;
         | 
| 534 561 | 
             
                const ptr2 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
         | 
| 535 562 | 
             
                const len2 = WASM_VECTOR_LEN;
         | 
| @@ -538,9 +565,9 @@ export function DIDAuth(holder, linked_data_proof_options, key) { | |
| 538 565 | 
             
            }
         | 
| 539 566 |  | 
| 540 567 | 
             
            /**
         | 
| 541 | 
            -
            * @param {string} tz
         | 
| 542 | 
            -
            * @returns {Promise<any>}
         | 
| 543 | 
            -
            */
         | 
| 568 | 
            +
             * @param {string} tz
         | 
| 569 | 
            +
             * @returns {Promise<any>}
         | 
| 570 | 
            +
             */
         | 
| 544 571 | 
             
            export function JWKFromTezos(tz) {
         | 
| 545 572 | 
             
                const ptr0 = passStringToWasm0(tz, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
         | 
| 546 573 | 
             
                const len0 = WASM_VECTOR_LEN;
         | 
| @@ -549,16 +576,20 @@ export function JWKFromTezos(tz) { | |
| 549 576 | 
             
            }
         | 
| 550 577 |  | 
| 551 578 | 
             
            /**
         | 
| 552 | 
            -
            * @param {string} capability
         | 
| 553 | 
            -
            * @param {string} linked_data_proof_options
         | 
| 554 | 
            -
            * @param {string} parents
         | 
| 555 | 
            -
            * @param {string} key
         | 
| 556 | 
            -
            * @returns {Promise<any>}
         | 
| 557 | 
            -
            */
         | 
| 579 | 
            +
             * @param {string} capability
         | 
| 580 | 
            +
             * @param {string} linked_data_proof_options
         | 
| 581 | 
            +
             * @param {string} parents
         | 
| 582 | 
            +
             * @param {string} key
         | 
| 583 | 
            +
             * @returns {Promise<any>}
         | 
| 584 | 
            +
             */
         | 
| 558 585 | 
             
            export function delegateCapability(capability, linked_data_proof_options, parents, key) {
         | 
| 559 586 | 
             
                const ptr0 = passStringToWasm0(capability, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
         | 
| 560 587 | 
             
                const len0 = WASM_VECTOR_LEN;
         | 
| 561 | 
            -
                const ptr1 = passStringToWasm0( | 
| 588 | 
            +
                const ptr1 = passStringToWasm0(
         | 
| 589 | 
            +
                    linked_data_proof_options,
         | 
| 590 | 
            +
                    wasm.__wbindgen_malloc,
         | 
| 591 | 
            +
                    wasm.__wbindgen_realloc
         | 
| 592 | 
            +
                );
         | 
| 562 593 | 
             
                const len1 = WASM_VECTOR_LEN;
         | 
| 563 594 | 
             
                const ptr2 = passStringToWasm0(parents, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
         | 
| 564 595 | 
             
                const len2 = WASM_VECTOR_LEN;
         | 
| @@ -569,16 +600,25 @@ export function delegateCapability(capability, linked_data_proof_options, parent | |
| 569 600 | 
             
            }
         | 
| 570 601 |  | 
| 571 602 | 
             
            /**
         | 
| 572 | 
            -
            * @param {string} capability
         | 
| 573 | 
            -
            * @param {string} linked_data_proof_options
         | 
| 574 | 
            -
            * @param {string} parents
         | 
| 575 | 
            -
            * @param {string} public_key
         | 
| 576 | 
            -
            * @returns {Promise<any>}
         | 
| 577 | 
            -
            */
         | 
| 578 | 
            -
            export function prepareDelegateCapability( | 
| 603 | 
            +
             * @param {string} capability
         | 
| 604 | 
            +
             * @param {string} linked_data_proof_options
         | 
| 605 | 
            +
             * @param {string} parents
         | 
| 606 | 
            +
             * @param {string} public_key
         | 
| 607 | 
            +
             * @returns {Promise<any>}
         | 
| 608 | 
            +
             */
         | 
| 609 | 
            +
            export function prepareDelegateCapability(
         | 
| 610 | 
            +
                capability,
         | 
| 611 | 
            +
                linked_data_proof_options,
         | 
| 612 | 
            +
                parents,
         | 
| 613 | 
            +
                public_key
         | 
| 614 | 
            +
            ) {
         | 
| 579 615 | 
             
                const ptr0 = passStringToWasm0(capability, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
         | 
| 580 616 | 
             
                const len0 = WASM_VECTOR_LEN;
         | 
| 581 | 
            -
                const ptr1 = passStringToWasm0( | 
| 617 | 
            +
                const ptr1 = passStringToWasm0(
         | 
| 618 | 
            +
                    linked_data_proof_options,
         | 
| 619 | 
            +
                    wasm.__wbindgen_malloc,
         | 
| 620 | 
            +
                    wasm.__wbindgen_realloc
         | 
| 621 | 
            +
                );
         | 
| 582 622 | 
             
                const len1 = WASM_VECTOR_LEN;
         | 
| 583 623 | 
             
                const ptr2 = passStringToWasm0(parents, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
         | 
| 584 624 | 
             
                const len2 = WASM_VECTOR_LEN;
         | 
| @@ -589,11 +629,11 @@ export function prepareDelegateCapability(capability, linked_data_proof_options, | |
| 589 629 | 
             
            }
         | 
| 590 630 |  | 
| 591 631 | 
             
            /**
         | 
| 592 | 
            -
            * @param {string} capability
         | 
| 593 | 
            -
            * @param {string} preparation
         | 
| 594 | 
            -
            * @param {string} signature
         | 
| 595 | 
            -
            * @returns {Promise<any>}
         | 
| 596 | 
            -
            */
         | 
| 632 | 
            +
             * @param {string} capability
         | 
| 633 | 
            +
             * @param {string} preparation
         | 
| 634 | 
            +
             * @param {string} signature
         | 
| 635 | 
            +
             * @returns {Promise<any>}
         | 
| 636 | 
            +
             */
         | 
| 597 637 | 
             
            export function completeDelegateCapability(capability, preparation, signature) {
         | 
| 598 638 | 
             
                const ptr0 = passStringToWasm0(capability, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
         | 
| 599 639 | 
             
                const len0 = WASM_VECTOR_LEN;
         | 
| @@ -606,9 +646,9 @@ export function completeDelegateCapability(capability, preparation, signature) { | |
| 606 646 | 
             
            }
         | 
| 607 647 |  | 
| 608 648 | 
             
            /**
         | 
| 609 | 
            -
            * @param {string} delegation
         | 
| 610 | 
            -
            * @returns {Promise<any>}
         | 
| 611 | 
            -
            */
         | 
| 649 | 
            +
             * @param {string} delegation
         | 
| 650 | 
            +
             * @returns {Promise<any>}
         | 
| 651 | 
            +
             */
         | 
| 612 652 | 
             
            export function verifyDelegation(delegation) {
         | 
| 613 653 | 
             
                const ptr0 = passStringToWasm0(delegation, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
         | 
| 614 654 | 
             
                const len0 = WASM_VECTOR_LEN;
         | 
| @@ -617,18 +657,22 @@ export function verifyDelegation(delegation) { | |
| 617 657 | 
             
            }
         | 
| 618 658 |  | 
| 619 659 | 
             
            /**
         | 
| 620 | 
            -
            * @param {string} invocation
         | 
| 621 | 
            -
            * @param {string} target_id
         | 
| 622 | 
            -
            * @param {string} linked_data_proof_options
         | 
| 623 | 
            -
            * @param {string} key
         | 
| 624 | 
            -
            * @returns {Promise<any>}
         | 
| 625 | 
            -
            */
         | 
| 660 | 
            +
             * @param {string} invocation
         | 
| 661 | 
            +
             * @param {string} target_id
         | 
| 662 | 
            +
             * @param {string} linked_data_proof_options
         | 
| 663 | 
            +
             * @param {string} key
         | 
| 664 | 
            +
             * @returns {Promise<any>}
         | 
| 665 | 
            +
             */
         | 
| 626 666 | 
             
            export function invokeCapability(invocation, target_id, linked_data_proof_options, key) {
         | 
| 627 667 | 
             
                const ptr0 = passStringToWasm0(invocation, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
         | 
| 628 668 | 
             
                const len0 = WASM_VECTOR_LEN;
         | 
| 629 669 | 
             
                const ptr1 = passStringToWasm0(target_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
         | 
| 630 670 | 
             
                const len1 = WASM_VECTOR_LEN;
         | 
| 631 | 
            -
                const ptr2 = passStringToWasm0( | 
| 671 | 
            +
                const ptr2 = passStringToWasm0(
         | 
| 672 | 
            +
                    linked_data_proof_options,
         | 
| 673 | 
            +
                    wasm.__wbindgen_malloc,
         | 
| 674 | 
            +
                    wasm.__wbindgen_realloc
         | 
| 675 | 
            +
                );
         | 
| 632 676 | 
             
                const len2 = WASM_VECTOR_LEN;
         | 
| 633 677 | 
             
                const ptr3 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
         | 
| 634 678 | 
             
                const len3 = WASM_VECTOR_LEN;
         | 
| @@ -637,18 +681,27 @@ export function invokeCapability(invocation, target_id, linked_data_proof_option | |
| 637 681 | 
             
            }
         | 
| 638 682 |  | 
| 639 683 | 
             
            /**
         | 
| 640 | 
            -
            * @param {string} invocation
         | 
| 641 | 
            -
            * @param {string} target_id
         | 
| 642 | 
            -
            * @param {string} linked_data_proof_options
         | 
| 643 | 
            -
            * @param {string} public_key
         | 
| 644 | 
            -
            * @returns {Promise<any>}
         | 
| 645 | 
            -
            */
         | 
| 646 | 
            -
            export function prepareInvokeCapability( | 
| 684 | 
            +
             * @param {string} invocation
         | 
| 685 | 
            +
             * @param {string} target_id
         | 
| 686 | 
            +
             * @param {string} linked_data_proof_options
         | 
| 687 | 
            +
             * @param {string} public_key
         | 
| 688 | 
            +
             * @returns {Promise<any>}
         | 
| 689 | 
            +
             */
         | 
| 690 | 
            +
            export function prepareInvokeCapability(
         | 
| 691 | 
            +
                invocation,
         | 
| 692 | 
            +
                target_id,
         | 
| 693 | 
            +
                linked_data_proof_options,
         | 
| 694 | 
            +
                public_key
         | 
| 695 | 
            +
            ) {
         | 
| 647 696 | 
             
                const ptr0 = passStringToWasm0(invocation, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
         | 
| 648 697 | 
             
                const len0 = WASM_VECTOR_LEN;
         | 
| 649 698 | 
             
                const ptr1 = passStringToWasm0(target_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
         | 
| 650 699 | 
             
                const len1 = WASM_VECTOR_LEN;
         | 
| 651 | 
            -
                const ptr2 = passStringToWasm0( | 
| 700 | 
            +
                const ptr2 = passStringToWasm0(
         | 
| 701 | 
            +
                    linked_data_proof_options,
         | 
| 702 | 
            +
                    wasm.__wbindgen_malloc,
         | 
| 703 | 
            +
                    wasm.__wbindgen_realloc
         | 
| 704 | 
            +
                );
         | 
| 652 705 | 
             
                const len2 = WASM_VECTOR_LEN;
         | 
| 653 706 | 
             
                const ptr3 = passStringToWasm0(public_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
         | 
| 654 707 | 
             
                const len3 = WASM_VECTOR_LEN;
         | 
| @@ -657,11 +710,11 @@ export function prepareInvokeCapability(invocation, target_id, linked_data_proof | |
| 657 710 | 
             
            }
         | 
| 658 711 |  | 
| 659 712 | 
             
            /**
         | 
| 660 | 
            -
            * @param {string} invocation
         | 
| 661 | 
            -
            * @param {string} preparation
         | 
| 662 | 
            -
            * @param {string} signature
         | 
| 663 | 
            -
            * @returns {Promise<any>}
         | 
| 664 | 
            -
            */
         | 
| 713 | 
            +
             * @param {string} invocation
         | 
| 714 | 
            +
             * @param {string} preparation
         | 
| 715 | 
            +
             * @param {string} signature
         | 
| 716 | 
            +
             * @returns {Promise<any>}
         | 
| 717 | 
            +
             */
         | 
| 665 718 | 
             
            export function completeInvokeCapability(invocation, preparation, signature) {
         | 
| 666 719 | 
             
                const ptr0 = passStringToWasm0(invocation, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
         | 
| 667 720 | 
             
                const len0 = WASM_VECTOR_LEN;
         | 
| @@ -674,9 +727,9 @@ export function completeInvokeCapability(invocation, preparation, signature) { | |
| 674 727 | 
             
            }
         | 
| 675 728 |  | 
| 676 729 | 
             
            /**
         | 
| 677 | 
            -
            * @param {string} invocation
         | 
| 678 | 
            -
            * @returns {Promise<any>}
         | 
| 679 | 
            -
            */
         | 
| 730 | 
            +
             * @param {string} invocation
         | 
| 731 | 
            +
             * @returns {Promise<any>}
         | 
| 732 | 
            +
             */
         | 
| 680 733 | 
             
            export function verifyInvocationSignature(invocation) {
         | 
| 681 734 | 
             
                const ptr0 = passStringToWasm0(invocation, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
         | 
| 682 735 | 
             
                const len0 = WASM_VECTOR_LEN;
         | 
| @@ -685,10 +738,10 @@ export function verifyInvocationSignature(invocation) { | |
| 685 738 | 
             
            }
         | 
| 686 739 |  | 
| 687 740 | 
             
            /**
         | 
| 688 | 
            -
            * @param {string} invocation
         | 
| 689 | 
            -
            * @param {string} delegation
         | 
| 690 | 
            -
            * @returns {Promise<any>}
         | 
| 691 | 
            -
            */
         | 
| 741 | 
            +
             * @param {string} invocation
         | 
| 742 | 
            +
             * @param {string} delegation
         | 
| 743 | 
            +
             * @returns {Promise<any>}
         | 
| 744 | 
            +
             */
         | 
| 692 745 | 
             
            export function verifyInvocation(invocation, delegation) {
         | 
| 693 746 | 
             
                const ptr0 = passStringToWasm0(invocation, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
         | 
| 694 747 | 
             
                const len0 = WASM_VECTOR_LEN;
         | 
| @@ -699,9 +752,9 @@ export function verifyInvocation(invocation, delegation) { | |
| 699 752 | 
             
            }
         | 
| 700 753 |  | 
| 701 754 | 
             
            /**
         | 
| 702 | 
            -
            * @param {string} url
         | 
| 703 | 
            -
            * @returns {Promise<any>}
         | 
| 704 | 
            -
            */
         | 
| 755 | 
            +
             * @param {string} url
         | 
| 756 | 
            +
             * @returns {Promise<any>}
         | 
| 757 | 
            +
             */
         | 
| 705 758 | 
             
            export function contextLoader(url) {
         | 
| 706 759 | 
             
                const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
         | 
| 707 760 | 
             
                const len0 = WASM_VECTOR_LEN;
         | 
| @@ -721,7 +774,12 @@ function getArrayU8FromWasm0(ptr, len) { | |
| 721 774 | 
             
                return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
         | 
| 722 775 | 
             
            }
         | 
| 723 776 | 
             
            function __wbg_adapter_111(arg0, arg1, arg2, arg3) {
         | 
| 724 | 
            -
                wasm. | 
| 777 | 
            +
                wasm.wasm_bindgen__convert__closures__invoke2_mut__h4d6f2a8364143373(
         | 
| 778 | 
            +
                    arg0,
         | 
| 779 | 
            +
                    arg1,
         | 
| 780 | 
            +
                    addHeapObject(arg2),
         | 
| 781 | 
            +
                    addHeapObject(arg3)
         | 
| 782 | 
            +
                );
         | 
| 725 783 | 
             
            }
         | 
| 726 784 |  | 
| 727 785 | 
             
            async function load(module, imports) {
         | 
| @@ -729,11 +787,12 @@ async function load(module, imports) { | |
| 729 787 | 
             
                    if (typeof WebAssembly.instantiateStreaming === 'function') {
         | 
| 730 788 | 
             
                        try {
         | 
| 731 789 | 
             
                            return await WebAssembly.instantiateStreaming(module, imports);
         | 
| 732 | 
            -
             | 
| 733 790 | 
             
                        } catch (e) {
         | 
| 734 791 | 
             
                            if (module.headers.get('Content-Type') != 'application/wasm') {
         | 
| 735 | 
            -
                                console.warn( | 
| 736 | 
            -
             | 
| 792 | 
            +
                                console.warn(
         | 
| 793 | 
            +
                                    '`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',
         | 
| 794 | 
            +
                                    e
         | 
| 795 | 
            +
                                );
         | 
| 737 796 | 
             
                            } else {
         | 
| 738 797 | 
             
                                throw e;
         | 
| 739 798 | 
             
                            }
         | 
| @@ -742,13 +801,11 @@ async function load(module, imports) { | |
| 742 801 |  | 
| 743 802 | 
             
                    const bytes = await module.arrayBuffer();
         | 
| 744 803 | 
             
                    return await WebAssembly.instantiate(bytes, imports);
         | 
| 745 | 
            -
             | 
| 746 804 | 
             
                } else {
         | 
| 747 805 | 
             
                    const instance = await WebAssembly.instantiate(module, imports);
         | 
| 748 806 |  | 
| 749 807 | 
             
                    if (instance instanceof WebAssembly.Instance) {
         | 
| 750 808 | 
             
                        return { instance, module };
         | 
| 751 | 
            -
             | 
| 752 809 | 
             
                    } else {
         | 
| 753 810 | 
             
                        return instance;
         | 
| 754 811 | 
             
                    }
         | 
| @@ -786,17 +843,23 @@ function getImports() { | |
| 786 843 | 
             
                    const ret = getObject(arg0).fetch(getObject(arg1));
         | 
| 787 844 | 
             
                    return addHeapObject(ret);
         | 
| 788 845 | 
             
                };
         | 
| 789 | 
            -
                imports.wbg.__wbg_new_4cba26249c1686cd = function() { | 
| 790 | 
            -
                     | 
| 791 | 
            -
             | 
| 792 | 
            -
             | 
| 793 | 
            -
             | 
| 794 | 
            -
             | 
| 795 | 
            -
                 | 
| 846 | 
            +
                imports.wbg.__wbg_new_4cba26249c1686cd = function() {
         | 
| 847 | 
            +
                    return handleError(function() {
         | 
| 848 | 
            +
                        const ret = new Headers();
         | 
| 849 | 
            +
                        return addHeapObject(ret);
         | 
| 850 | 
            +
                    }, arguments);
         | 
| 851 | 
            +
                };
         | 
| 852 | 
            +
                imports.wbg.__wbg_append_9c6d4d7f71076e48 = function() {
         | 
| 853 | 
            +
                    return handleError(function(arg0, arg1, arg2, arg3, arg4) {
         | 
| 854 | 
            +
                        getObject(arg0).append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
         | 
| 855 | 
            +
                    }, arguments);
         | 
| 856 | 
            +
                };
         | 
| 796 857 | 
             
                imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
         | 
| 797 858 | 
             
                    const obj = getObject(arg1);
         | 
| 798 | 
            -
                    const ret = typeof | 
| 799 | 
            -
                    var ptr0 = isLikeNone(ret) | 
| 859 | 
            +
                    const ret = typeof obj === 'string' ? obj : undefined;
         | 
| 860 | 
            +
                    var ptr0 = isLikeNone(ret)
         | 
| 861 | 
            +
                        ? 0
         | 
| 862 | 
            +
                        : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
         | 
| 800 863 | 
             
                    var len0 = WASM_VECTOR_LEN;
         | 
| 801 864 | 
             
                    getInt32Memory0()[arg0 / 4 + 1] = len0;
         | 
| 802 865 | 
             
                    getInt32Memory0()[arg0 / 4 + 0] = ptr0;
         | 
| @@ -820,23 +883,35 @@ function getImports() { | |
| 820 883 | 
             
                    const ret = getObject(arg0).headers;
         | 
| 821 884 | 
             
                    return addHeapObject(ret);
         | 
| 822 885 | 
             
                };
         | 
| 823 | 
            -
                imports.wbg.__wbg_arrayBuffer_ccd485f4d2929b08 = function() { | 
| 824 | 
            -
                     | 
| 825 | 
            -
             | 
| 826 | 
            -
             | 
| 827 | 
            -
             | 
| 828 | 
            -
             | 
| 829 | 
            -
             | 
| 830 | 
            -
             | 
| 886 | 
            +
                imports.wbg.__wbg_arrayBuffer_ccd485f4d2929b08 = function() {
         | 
| 887 | 
            +
                    return handleError(function(arg0) {
         | 
| 888 | 
            +
                        const ret = getObject(arg0).arrayBuffer();
         | 
| 889 | 
            +
                        return addHeapObject(ret);
         | 
| 890 | 
            +
                    }, arguments);
         | 
| 891 | 
            +
                };
         | 
| 892 | 
            +
                imports.wbg.__wbg_newwithstrandinit_de7c409ec8538105 = function() {
         | 
| 893 | 
            +
                    return handleError(function(arg0, arg1, arg2) {
         | 
| 894 | 
            +
                        const ret = new Request(getStringFromWasm0(arg0, arg1), getObject(arg2));
         | 
| 895 | 
            +
                        return addHeapObject(ret);
         | 
| 896 | 
            +
                    }, arguments);
         | 
| 897 | 
            +
                };
         | 
| 831 898 | 
             
                imports.wbg.__wbindgen_is_object = function(arg0) {
         | 
| 832 899 | 
             
                    const val = getObject(arg0);
         | 
| 833 | 
            -
                    const ret = typeof | 
| 900 | 
            +
                    const ret = typeof val === 'object' && val !== null;
         | 
| 834 901 | 
             
                    return ret;
         | 
| 835 902 | 
             
                };
         | 
| 836 | 
            -
                imports.wbg. | 
| 837 | 
            -
                     | 
| 838 | 
            -
             | 
| 839 | 
            -
                 | 
| 903 | 
            +
                imports.wbg.__wbg_randomFillSync_d2ba53160aec6aba = function(arg0, arg1, arg2) {
         | 
| 904 | 
            +
                    getObject(arg0).randomFillSync(getArrayU8FromWasm0(arg1, arg2));
         | 
| 905 | 
            +
                };
         | 
| 906 | 
            +
                imports.wbg.__wbg_getRandomValues_e57c9b75ddead065 = function(arg0, arg1) {
         | 
| 907 | 
            +
                    getObject(arg0).getRandomValues(getObject(arg1));
         | 
| 908 | 
            +
                };
         | 
| 909 | 
            +
                imports.wbg.__wbg_self_86b4b13392c7af56 = function() {
         | 
| 910 | 
            +
                    return handleError(function() {
         | 
| 911 | 
            +
                        const ret = self.self;
         | 
| 912 | 
            +
                        return addHeapObject(ret);
         | 
| 913 | 
            +
                    }, arguments);
         | 
| 914 | 
            +
                };
         | 
| 840 915 | 
             
                imports.wbg.__wbg_crypto_b8c92eaac23d0d80 = function(arg0) {
         | 
| 841 916 | 
             
                    const ret = getObject(arg0).crypto;
         | 
| 842 917 | 
             
                    return addHeapObject(ret);
         | 
| @@ -861,14 +936,8 @@ function getImports() { | |
| 861 936 | 
             
                    const ret = getObject(arg0).getRandomValues;
         | 
| 862 937 | 
             
                    return addHeapObject(ret);
         | 
| 863 938 | 
             
                };
         | 
| 864 | 
            -
                imports.wbg.__wbg_getRandomValues_e57c9b75ddead065 = function(arg0, arg1) {
         | 
| 865 | 
            -
                    getObject(arg0).getRandomValues(getObject(arg1));
         | 
| 866 | 
            -
                };
         | 
| 867 | 
            -
                imports.wbg.__wbg_randomFillSync_d2ba53160aec6aba = function(arg0, arg1, arg2) {
         | 
| 868 | 
            -
                    getObject(arg0).randomFillSync(getArrayU8FromWasm0(arg1, arg2));
         | 
| 869 | 
            -
                };
         | 
| 870 939 | 
             
                imports.wbg.__wbindgen_is_function = function(arg0) {
         | 
| 871 | 
            -
                    const ret = typeof | 
| 940 | 
            +
                    const ret = typeof getObject(arg0) === 'function';
         | 
| 872 941 | 
             
                    return ret;
         | 
| 873 942 | 
             
                };
         | 
| 874 943 | 
             
                imports.wbg.__wbg_newnoargs_971e9a5abe185139 = function(arg0, arg1) {
         | 
| @@ -879,10 +948,12 @@ function getImports() { | |
| 879 948 | 
             
                    const ret = getObject(arg0).next;
         | 
| 880 949 | 
             
                    return addHeapObject(ret);
         | 
| 881 950 | 
             
                };
         | 
| 882 | 
            -
                imports.wbg.__wbg_next_3d0c4cc33e7418c9 = function() { | 
| 883 | 
            -
                     | 
| 884 | 
            -
             | 
| 885 | 
            -
             | 
| 951 | 
            +
                imports.wbg.__wbg_next_3d0c4cc33e7418c9 = function() {
         | 
| 952 | 
            +
                    return handleError(function(arg0) {
         | 
| 953 | 
            +
                        const ret = getObject(arg0).next();
         | 
| 954 | 
            +
                        return addHeapObject(ret);
         | 
| 955 | 
            +
                    }, arguments);
         | 
| 956 | 
            +
                };
         | 
| 886 957 | 
             
                imports.wbg.__wbg_done_e5655b169bb04f60 = function(arg0) {
         | 
| 887 958 | 
             
                    const ret = getObject(arg0).done;
         | 
| 888 959 | 
             
                    return ret;
         | 
| @@ -895,22 +966,52 @@ function getImports() { | |
| 895 966 | 
             
                    const ret = Symbol.iterator;
         | 
| 896 967 | 
             
                    return addHeapObject(ret);
         | 
| 897 968 | 
             
                };
         | 
| 898 | 
            -
                imports.wbg.__wbg_get_72332cd2bc57924c = function() { | 
| 899 | 
            -
                     | 
| 900 | 
            -
             | 
| 901 | 
            -
             | 
| 902 | 
            -
             | 
| 903 | 
            -
             | 
| 904 | 
            -
             | 
| 905 | 
            -
             | 
| 969 | 
            +
                imports.wbg.__wbg_get_72332cd2bc57924c = function() {
         | 
| 970 | 
            +
                    return handleError(function(arg0, arg1) {
         | 
| 971 | 
            +
                        const ret = Reflect.get(getObject(arg0), getObject(arg1));
         | 
| 972 | 
            +
                        return addHeapObject(ret);
         | 
| 973 | 
            +
                    }, arguments);
         | 
| 974 | 
            +
                };
         | 
| 975 | 
            +
                imports.wbg.__wbg_call_33d7bcddbbfa394a = function() {
         | 
| 976 | 
            +
                    return handleError(function(arg0, arg1) {
         | 
| 977 | 
            +
                        const ret = getObject(arg0).call(getObject(arg1));
         | 
| 978 | 
            +
                        return addHeapObject(ret);
         | 
| 979 | 
            +
                    }, arguments);
         | 
| 980 | 
            +
                };
         | 
| 906 981 | 
             
                imports.wbg.__wbg_new_e6a9fecc2bf26696 = function() {
         | 
| 907 982 | 
             
                    const ret = new Object();
         | 
| 908 983 | 
             
                    return addHeapObject(ret);
         | 
| 909 984 | 
             
                };
         | 
| 910 | 
            -
                imports.wbg. | 
| 911 | 
            -
                     | 
| 912 | 
            -
             | 
| 913 | 
            -
             | 
| 985 | 
            +
                imports.wbg.__wbg_self_fd00a1ef86d1b2ed = function() {
         | 
| 986 | 
            +
                    return handleError(function() {
         | 
| 987 | 
            +
                        const ret = self.self;
         | 
| 988 | 
            +
                        return addHeapObject(ret);
         | 
| 989 | 
            +
                    }, arguments);
         | 
| 990 | 
            +
                };
         | 
| 991 | 
            +
                imports.wbg.__wbg_window_6f6e346d8bbd61d7 = function() {
         | 
| 992 | 
            +
                    return handleError(function() {
         | 
| 993 | 
            +
                        const ret = window.window;
         | 
| 994 | 
            +
                        return addHeapObject(ret);
         | 
| 995 | 
            +
                    }, arguments);
         | 
| 996 | 
            +
                };
         | 
| 997 | 
            +
                imports.wbg.__wbg_globalThis_3348936ac49df00a = function() {
         | 
| 998 | 
            +
                    return handleError(function() {
         | 
| 999 | 
            +
                        const ret = globalThis.globalThis;
         | 
| 1000 | 
            +
                        return addHeapObject(ret);
         | 
| 1001 | 
            +
                    }, arguments);
         | 
| 1002 | 
            +
                };
         | 
| 1003 | 
            +
                imports.wbg.__wbg_global_67175caf56f55ca9 = function() {
         | 
| 1004 | 
            +
                    return handleError(function() {
         | 
| 1005 | 
            +
                        const ret = global.global;
         | 
| 1006 | 
            +
                        return addHeapObject(ret);
         | 
| 1007 | 
            +
                    }, arguments);
         | 
| 1008 | 
            +
                };
         | 
| 1009 | 
            +
                imports.wbg.__wbg_call_65af9f665ab6ade5 = function() {
         | 
| 1010 | 
            +
                    return handleError(function(arg0, arg1, arg2) {
         | 
| 1011 | 
            +
                        const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
         | 
| 1012 | 
            +
                        return addHeapObject(ret);
         | 
| 1013 | 
            +
                    }, arguments);
         | 
| 1014 | 
            +
                };
         | 
| 914 1015 | 
             
                imports.wbg.__wbg_getTime_58b0bdbebd4ef11d = function(arg0) {
         | 
| 915 1016 | 
             
                    const ret = getObject(arg0).getTime();
         | 
| 916 1017 | 
             
                    return ret;
         | 
| @@ -921,7 +1022,7 @@ function getImports() { | |
| 921 1022 | 
             
                };
         | 
| 922 1023 | 
             
                imports.wbg.__wbg_new_52205195aa880fc2 = function(arg0, arg1) {
         | 
| 923 1024 | 
             
                    try {
         | 
| 924 | 
            -
                        var state0 = {a: arg0, b: arg1};
         | 
| 1025 | 
            +
                        var state0 = { a: arg0, b: arg1 };
         | 
| 925 1026 | 
             
                        var cb0 = (arg0, arg1) => {
         | 
| 926 1027 | 
             
                            const a = state0.a;
         | 
| 927 1028 | 
             
                            state0.a = 0;
         | 
| @@ -949,22 +1050,6 @@ function getImports() { | |
| 949 1050 | 
             
                    const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
         | 
| 950 1051 | 
             
                    return addHeapObject(ret);
         | 
| 951 1052 | 
             
                };
         | 
| 952 | 
            -
                imports.wbg.__wbg_self_fd00a1ef86d1b2ed = function() { return handleError(function () {
         | 
| 953 | 
            -
                    const ret = self.self;
         | 
| 954 | 
            -
                    return addHeapObject(ret);
         | 
| 955 | 
            -
                }, arguments) };
         | 
| 956 | 
            -
                imports.wbg.__wbg_window_6f6e346d8bbd61d7 = function() { return handleError(function () {
         | 
| 957 | 
            -
                    const ret = window.window;
         | 
| 958 | 
            -
                    return addHeapObject(ret);
         | 
| 959 | 
            -
                }, arguments) };
         | 
| 960 | 
            -
                imports.wbg.__wbg_globalThis_3348936ac49df00a = function() { return handleError(function () {
         | 
| 961 | 
            -
                    const ret = globalThis.globalThis;
         | 
| 962 | 
            -
                    return addHeapObject(ret);
         | 
| 963 | 
            -
                }, arguments) };
         | 
| 964 | 
            -
                imports.wbg.__wbg_global_67175caf56f55ca9 = function() { return handleError(function () {
         | 
| 965 | 
            -
                    const ret = global.global;
         | 
| 966 | 
            -
                    return addHeapObject(ret);
         | 
| 967 | 
            -
                }, arguments) };
         | 
| 968 1053 | 
             
                imports.wbg.__wbg_buffer_34f5ec9f8a838ba0 = function(arg0) {
         | 
| 969 1054 | 
             
                    const ret = getObject(arg0).buffer;
         | 
| 970 1055 | 
             
                    return addHeapObject(ret);
         | 
| @@ -992,18 +1077,24 @@ function getImports() { | |
| 992 1077 | 
             
                    const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
         | 
| 993 1078 | 
             
                    return addHeapObject(ret);
         | 
| 994 1079 | 
             
                };
         | 
| 995 | 
            -
                imports.wbg.__wbg_has_3be27932089d278e = function() { | 
| 996 | 
            -
                     | 
| 997 | 
            -
             | 
| 998 | 
            -
             | 
| 999 | 
            -
             | 
| 1000 | 
            -
             | 
| 1001 | 
            -
             | 
| 1002 | 
            -
             | 
| 1003 | 
            -
             | 
| 1004 | 
            -
             | 
| 1005 | 
            -
                     | 
| 1006 | 
            -
                } | 
| 1080 | 
            +
                imports.wbg.__wbg_has_3be27932089d278e = function() {
         | 
| 1081 | 
            +
                    return handleError(function(arg0, arg1) {
         | 
| 1082 | 
            +
                        const ret = Reflect.has(getObject(arg0), getObject(arg1));
         | 
| 1083 | 
            +
                        return ret;
         | 
| 1084 | 
            +
                    }, arguments);
         | 
| 1085 | 
            +
                };
         | 
| 1086 | 
            +
                imports.wbg.__wbg_set_2762e698c2f5b7e0 = function() {
         | 
| 1087 | 
            +
                    return handleError(function(arg0, arg1, arg2) {
         | 
| 1088 | 
            +
                        const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
         | 
| 1089 | 
            +
                        return ret;
         | 
| 1090 | 
            +
                    }, arguments);
         | 
| 1091 | 
            +
                };
         | 
| 1092 | 
            +
                imports.wbg.__wbg_stringify_d8d1ee75d5b55ce4 = function() {
         | 
| 1093 | 
            +
                    return handleError(function(arg0) {
         | 
| 1094 | 
            +
                        const ret = JSON.stringify(getObject(arg0));
         | 
| 1095 | 
            +
                        return addHeapObject(ret);
         | 
| 1096 | 
            +
                    }, arguments);
         | 
| 1097 | 
            +
                };
         | 
| 1007 1098 | 
             
                imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
         | 
| 1008 1099 | 
             
                    const ret = debugString(getObject(arg1));
         | 
| 1009 1100 | 
             
                    const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
         | 
| @@ -1018,17 +1109,19 @@ function getImports() { | |
| 1018 1109 | 
             
                    const ret = wasm.memory;
         | 
| 1019 1110 | 
             
                    return addHeapObject(ret);
         | 
| 1020 1111 | 
             
                };
         | 
| 1021 | 
            -
                imports.wbg. | 
| 1022 | 
            -
                    const ret = makeMutClosure(arg0, arg1,  | 
| 1112 | 
            +
                imports.wbg.__wbindgen_closure_wrapper9983 = function(arg0, arg1, arg2) {
         | 
| 1113 | 
            +
                    const ret = makeMutClosure(arg0, arg1, 3544, __wbg_adapter_24);
         | 
| 1114 | 
            +
                    return addHeapObject(ret);
         | 
| 1115 | 
            +
                };
         | 
| 1116 | 
            +
                imports.wbg.__wbindgen_closure_wrapper9985 = function(arg0, arg1, arg2) {
         | 
| 1117 | 
            +
                    const ret = makeMutClosure(arg0, arg1, 3544, __wbg_adapter_24);
         | 
| 1023 1118 | 
             
                    return addHeapObject(ret);
         | 
| 1024 1119 | 
             
                };
         | 
| 1025 1120 |  | 
| 1026 1121 | 
             
                return imports;
         | 
| 1027 1122 | 
             
            }
         | 
| 1028 1123 |  | 
| 1029 | 
            -
            function initMemory(imports, maybe_memory) {
         | 
| 1030 | 
            -
             | 
| 1031 | 
            -
            }
         | 
| 1124 | 
            +
            function initMemory(imports, maybe_memory) { }
         | 
| 1032 1125 |  | 
| 1033 1126 | 
             
            function finalizeInit(instance, module) {
         | 
| 1034 1127 | 
             
                wasm = instance.exports;
         | 
| @@ -1036,7 +1129,6 @@ function finalizeInit(instance, module) { | |
| 1036 1129 | 
             
                cachedInt32Memory0 = new Int32Array();
         | 
| 1037 1130 | 
             
                cachedUint8Memory0 = new Uint8Array();
         | 
| 1038 1131 |  | 
| 1039 | 
            -
             | 
| 1040 1132 | 
             
                return wasm;
         | 
| 1041 1133 | 
             
            }
         | 
| 1042 1134 |  | 
| @@ -1057,7 +1149,11 @@ async function init(input) { | |
| 1057 1149 | 
             
                }
         | 
| 1058 1150 | 
             
                const imports = getImports();
         | 
| 1059 1151 |  | 
| 1060 | 
            -
                if ( | 
| 1152 | 
            +
                if (
         | 
| 1153 | 
            +
                    typeof input === 'string' ||
         | 
| 1154 | 
            +
                    (typeof Request === 'function' && input instanceof Request) ||
         | 
| 1155 | 
            +
                    (typeof URL === 'function' && input instanceof URL)
         | 
| 1156 | 
            +
                ) {
         | 
| 1061 1157 | 
             
                    input = fetch(input);
         | 
| 1062 1158 | 
             
                }
         | 
| 1063 1159 |  | 
| @@ -1068,5 +1164,5 @@ async function init(input) { | |
| 1068 1164 | 
             
                return finalizeInit(instance, module);
         | 
| 1069 1165 | 
             
            }
         | 
| 1070 1166 |  | 
| 1071 | 
            -
            export { initSync }
         | 
| 1167 | 
            +
            export { initSync };
         | 
| 1072 1168 | 
             
            export default init;
         |