at main 729 lines 30 kB view raw
1let wasm_bindgen; 2(function() { 3 const __exports = {}; 4 let script_src; 5 if (typeof document !== 'undefined' && document.currentScript !== null) { 6 script_src = new URL(document.currentScript.src, location.href).toString(); 7 } 8 let wasm = undefined; 9 10 function addToExternrefTable0(obj) { 11 const idx = wasm.__externref_table_alloc(); 12 wasm.__wbindgen_externrefs.set(idx, obj); 13 return idx; 14 } 15 16 const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined') 17 ? { register: () => {}, unregister: () => {} } 18 : new FinalizationRegistry(state => state.dtor(state.a, state.b)); 19 20 function getArrayU8FromWasm0(ptr, len) { 21 ptr = ptr >>> 0; 22 return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len); 23 } 24 25 let cachedDataViewMemory0 = null; 26 function getDataViewMemory0() { 27 if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) { 28 cachedDataViewMemory0 = new DataView(wasm.memory.buffer); 29 } 30 return cachedDataViewMemory0; 31 } 32 33 function getStringFromWasm0(ptr, len) { 34 ptr = ptr >>> 0; 35 return decodeText(ptr, len); 36 } 37 38 let cachedUint8ArrayMemory0 = null; 39 function getUint8ArrayMemory0() { 40 if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) { 41 cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer); 42 } 43 return cachedUint8ArrayMemory0; 44 } 45 46 function handleError(f, args) { 47 try { 48 return f.apply(this, args); 49 } catch (e) { 50 const idx = addToExternrefTable0(e); 51 wasm.__wbindgen_exn_store(idx); 52 } 53 } 54 55 function isLikeNone(x) { 56 return x === undefined || x === null; 57 } 58 59 function makeClosure(arg0, arg1, dtor, f) { 60 const state = { a: arg0, b: arg1, cnt: 1, dtor }; 61 const real = (...args) => { 62 63 // First up with a closure we increment the internal reference 64 // count. This ensures that the Rust closure environment won't 65 // be deallocated while we're invoking it. 66 state.cnt++; 67 try { 68 return f(state.a, state.b, ...args); 69 } finally { 70 real._wbg_cb_unref(); 71 } 72 }; 73 real._wbg_cb_unref = () => { 74 if (--state.cnt === 0) { 75 state.dtor(state.a, state.b); 76 state.a = 0; 77 CLOSURE_DTORS.unregister(state); 78 } 79 }; 80 CLOSURE_DTORS.register(real, state, state); 81 return real; 82 } 83 84 function makeMutClosure(arg0, arg1, dtor, f) { 85 const state = { a: arg0, b: arg1, cnt: 1, dtor }; 86 const real = (...args) => { 87 88 // First up with a closure we increment the internal reference 89 // count. This ensures that the Rust closure environment won't 90 // be deallocated while we're invoking it. 91 state.cnt++; 92 const a = state.a; 93 state.a = 0; 94 try { 95 return f(a, state.b, ...args); 96 } finally { 97 state.a = a; 98 real._wbg_cb_unref(); 99 } 100 }; 101 real._wbg_cb_unref = () => { 102 if (--state.cnt === 0) { 103 state.dtor(state.a, state.b); 104 state.a = 0; 105 CLOSURE_DTORS.unregister(state); 106 } 107 }; 108 CLOSURE_DTORS.register(real, state, state); 109 return real; 110 } 111 112 function passStringToWasm0(arg, malloc, realloc) { 113 if (realloc === undefined) { 114 const buf = cachedTextEncoder.encode(arg); 115 const ptr = malloc(buf.length, 1) >>> 0; 116 getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf); 117 WASM_VECTOR_LEN = buf.length; 118 return ptr; 119 } 120 121 let len = arg.length; 122 let ptr = malloc(len, 1) >>> 0; 123 124 const mem = getUint8ArrayMemory0(); 125 126 let offset = 0; 127 128 for (; offset < len; offset++) { 129 const code = arg.charCodeAt(offset); 130 if (code > 0x7F) break; 131 mem[ptr + offset] = code; 132 } 133 if (offset !== len) { 134 if (offset !== 0) { 135 arg = arg.slice(offset); 136 } 137 ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0; 138 const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len); 139 const ret = cachedTextEncoder.encodeInto(arg, view); 140 141 offset += ret.written; 142 ptr = realloc(ptr, len, offset, 1) >>> 0; 143 } 144 145 WASM_VECTOR_LEN = offset; 146 return ptr; 147 } 148 149 let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }); 150 cachedTextDecoder.decode(); 151 function decodeText(ptr, len) { 152 return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len)); 153 } 154 155 const cachedTextEncoder = new TextEncoder(); 156 157 if (!('encodeInto' in cachedTextEncoder)) { 158 cachedTextEncoder.encodeInto = function (arg, view) { 159 const buf = cachedTextEncoder.encode(arg); 160 view.set(buf); 161 return { 162 read: arg.length, 163 written: buf.length 164 }; 165 } 166 } 167 168 let WASM_VECTOR_LEN = 0; 169 170 function wasm_bindgen_ff1081b5ed996cf4___convert__closures_____invoke___web_sys_8097425c49dd63ff___features__gen_MessageEvent__MessageEvent_____(arg0, arg1, arg2) { 171 wasm.wasm_bindgen_ff1081b5ed996cf4___convert__closures_____invoke___web_sys_8097425c49dd63ff___features__gen_MessageEvent__MessageEvent_____(arg0, arg1, arg2); 172 } 173 174 function wasm_bindgen_ff1081b5ed996cf4___convert__closures_____invoke___wasm_bindgen_ff1081b5ed996cf4___JsValue_____(arg0, arg1, arg2) { 175 wasm.wasm_bindgen_ff1081b5ed996cf4___convert__closures_____invoke___wasm_bindgen_ff1081b5ed996cf4___JsValue_____(arg0, arg1, arg2); 176 } 177 178 function wasm_bindgen_ff1081b5ed996cf4___convert__closures_____invoke___wasm_bindgen_ff1081b5ed996cf4___JsValue__wasm_bindgen_ff1081b5ed996cf4___JsValue_____(arg0, arg1, arg2, arg3) { 179 wasm.wasm_bindgen_ff1081b5ed996cf4___convert__closures_____invoke___wasm_bindgen_ff1081b5ed996cf4___JsValue__wasm_bindgen_ff1081b5ed996cf4___JsValue_____(arg0, arg1, arg2, arg3); 180 } 181 182 const __wbindgen_enum_ReadableStreamType = ["bytes"]; 183 184 const IntoUnderlyingByteSourceFinalization = (typeof FinalizationRegistry === 'undefined') 185 ? { register: () => {}, unregister: () => {} } 186 : new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingbytesource_free(ptr >>> 0, 1)); 187 188 const IntoUnderlyingSinkFinalization = (typeof FinalizationRegistry === 'undefined') 189 ? { register: () => {}, unregister: () => {} } 190 : new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsink_free(ptr >>> 0, 1)); 191 192 const IntoUnderlyingSourceFinalization = (typeof FinalizationRegistry === 'undefined') 193 ? { register: () => {}, unregister: () => {} } 194 : new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsource_free(ptr >>> 0, 1)); 195 196 const JSOwnerFinalization = (typeof FinalizationRegistry === 'undefined') 197 ? { register: () => {}, unregister: () => {} } 198 : new FinalizationRegistry(ptr => wasm.__wbg_jsowner_free(ptr >>> 0, 1)); 199 200 class IntoUnderlyingByteSource { 201 __destroy_into_raw() { 202 const ptr = this.__wbg_ptr; 203 this.__wbg_ptr = 0; 204 IntoUnderlyingByteSourceFinalization.unregister(this); 205 return ptr; 206 } 207 free() { 208 const ptr = this.__destroy_into_raw(); 209 wasm.__wbg_intounderlyingbytesource_free(ptr, 0); 210 } 211 /** 212 * @returns {number} 213 */ 214 get autoAllocateChunkSize() { 215 const ret = wasm.intounderlyingbytesource_autoAllocateChunkSize(this.__wbg_ptr); 216 return ret >>> 0; 217 } 218 /** 219 * @param {ReadableByteStreamController} controller 220 * @returns {Promise<any>} 221 */ 222 pull(controller) { 223 const ret = wasm.intounderlyingbytesource_pull(this.__wbg_ptr, controller); 224 return ret; 225 } 226 /** 227 * @param {ReadableByteStreamController} controller 228 */ 229 start(controller) { 230 wasm.intounderlyingbytesource_start(this.__wbg_ptr, controller); 231 } 232 /** 233 * @returns {ReadableStreamType} 234 */ 235 get type() { 236 const ret = wasm.intounderlyingbytesource_type(this.__wbg_ptr); 237 return __wbindgen_enum_ReadableStreamType[ret]; 238 } 239 cancel() { 240 const ptr = this.__destroy_into_raw(); 241 wasm.intounderlyingbytesource_cancel(ptr); 242 } 243 } 244 if (Symbol.dispose) IntoUnderlyingByteSource.prototype[Symbol.dispose] = IntoUnderlyingByteSource.prototype.free; 245 __exports.IntoUnderlyingByteSource = IntoUnderlyingByteSource; 246 247 class IntoUnderlyingSink { 248 __destroy_into_raw() { 249 const ptr = this.__wbg_ptr; 250 this.__wbg_ptr = 0; 251 IntoUnderlyingSinkFinalization.unregister(this); 252 return ptr; 253 } 254 free() { 255 const ptr = this.__destroy_into_raw(); 256 wasm.__wbg_intounderlyingsink_free(ptr, 0); 257 } 258 /** 259 * @param {any} reason 260 * @returns {Promise<any>} 261 */ 262 abort(reason) { 263 const ptr = this.__destroy_into_raw(); 264 const ret = wasm.intounderlyingsink_abort(ptr, reason); 265 return ret; 266 } 267 /** 268 * @returns {Promise<any>} 269 */ 270 close() { 271 const ptr = this.__destroy_into_raw(); 272 const ret = wasm.intounderlyingsink_close(ptr); 273 return ret; 274 } 275 /** 276 * @param {any} chunk 277 * @returns {Promise<any>} 278 */ 279 write(chunk) { 280 const ret = wasm.intounderlyingsink_write(this.__wbg_ptr, chunk); 281 return ret; 282 } 283 } 284 if (Symbol.dispose) IntoUnderlyingSink.prototype[Symbol.dispose] = IntoUnderlyingSink.prototype.free; 285 __exports.IntoUnderlyingSink = IntoUnderlyingSink; 286 287 class IntoUnderlyingSource { 288 __destroy_into_raw() { 289 const ptr = this.__wbg_ptr; 290 this.__wbg_ptr = 0; 291 IntoUnderlyingSourceFinalization.unregister(this); 292 return ptr; 293 } 294 free() { 295 const ptr = this.__destroy_into_raw(); 296 wasm.__wbg_intounderlyingsource_free(ptr, 0); 297 } 298 /** 299 * @param {ReadableStreamDefaultController} controller 300 * @returns {Promise<any>} 301 */ 302 pull(controller) { 303 const ret = wasm.intounderlyingsource_pull(this.__wbg_ptr, controller); 304 return ret; 305 } 306 cancel() { 307 const ptr = this.__destroy_into_raw(); 308 wasm.intounderlyingsource_cancel(ptr); 309 } 310 } 311 if (Symbol.dispose) IntoUnderlyingSource.prototype[Symbol.dispose] = IntoUnderlyingSource.prototype.free; 312 __exports.IntoUnderlyingSource = IntoUnderlyingSource; 313 314 class JSOwner { 315 __destroy_into_raw() { 316 const ptr = this.__wbg_ptr; 317 this.__wbg_ptr = 0; 318 JSOwnerFinalization.unregister(this); 319 return ptr; 320 } 321 free() { 322 const ptr = this.__destroy_into_raw(); 323 wasm.__wbg_jsowner_free(ptr, 0); 324 } 325 } 326 if (Symbol.dispose) JSOwner.prototype[Symbol.dispose] = JSOwner.prototype.free; 327 __exports.JSOwner = JSOwner; 328 329 const EXPECTED_RESPONSE_TYPES = new Set(['basic', 'cors', 'default']); 330 331 async function __wbg_load(module, imports) { 332 if (typeof Response === 'function' && module instanceof Response) { 333 if (typeof WebAssembly.instantiateStreaming === 'function') { 334 try { 335 return await WebAssembly.instantiateStreaming(module, imports); 336 } catch (e) { 337 const validResponse = module.ok && EXPECTED_RESPONSE_TYPES.has(module.type); 338 339 if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') { 340 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); 341 342 } else { 343 throw e; 344 } 345 } 346 } 347 348 const bytes = await module.arrayBuffer(); 349 return await WebAssembly.instantiate(bytes, imports); 350 } else { 351 const instance = await WebAssembly.instantiate(module, imports); 352 353 if (instance instanceof WebAssembly.Instance) { 354 return { instance, module }; 355 } else { 356 return instance; 357 } 358 } 359 } 360 361 function __wbg_get_imports() { 362 const imports = {}; 363 imports.wbg = {}; 364 imports.wbg.__wbg___wbindgen_is_function_8d400b8b1af978cd = function(arg0) { 365 const ret = typeof(arg0) === 'function'; 366 return ret; 367 }; 368 imports.wbg.__wbg___wbindgen_is_object_ce774f3490692386 = function(arg0) { 369 const val = arg0; 370 const ret = typeof(val) === 'object' && val !== null; 371 return ret; 372 }; 373 imports.wbg.__wbg___wbindgen_is_string_704ef9c8fc131030 = function(arg0) { 374 const ret = typeof(arg0) === 'string'; 375 return ret; 376 }; 377 imports.wbg.__wbg___wbindgen_is_undefined_f6b95eab589e0269 = function(arg0) { 378 const ret = arg0 === undefined; 379 return ret; 380 }; 381 imports.wbg.__wbg___wbindgen_throw_dd24417ed36fc46e = function(arg0, arg1) { 382 throw new Error(getStringFromWasm0(arg0, arg1)); 383 }; 384 imports.wbg.__wbg__wbg_cb_unref_87dfb5aaa0cbcea7 = function(arg0) { 385 arg0._wbg_cb_unref(); 386 }; 387 imports.wbg.__wbg_buffer_6cb2fecb1f253d71 = function(arg0) { 388 const ret = arg0.buffer; 389 return ret; 390 }; 391 imports.wbg.__wbg_byobRequest_f8e3517f5f8ad284 = function(arg0) { 392 const ret = arg0.byobRequest; 393 return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); 394 }; 395 imports.wbg.__wbg_byteLength_faa9938885bdeee6 = function(arg0) { 396 const ret = arg0.byteLength; 397 return ret; 398 }; 399 imports.wbg.__wbg_byteOffset_3868b6a19ba01dea = function(arg0) { 400 const ret = arg0.byteOffset; 401 return ret; 402 }; 403 imports.wbg.__wbg_call_3020136f7a2d6e44 = function() { return handleError(function (arg0, arg1, arg2) { 404 const ret = arg0.call(arg1, arg2); 405 return ret; 406 }, arguments) }; 407 imports.wbg.__wbg_call_abb4ff46ce38be40 = function() { return handleError(function (arg0, arg1) { 408 const ret = arg0.call(arg1); 409 return ret; 410 }, arguments) }; 411 imports.wbg.__wbg_close_0af5661bf3d335f2 = function() { return handleError(function (arg0) { 412 arg0.close(); 413 }, arguments) }; 414 imports.wbg.__wbg_close_0b472ca2d13f54f7 = function(arg0) { 415 arg0.close(); 416 }; 417 imports.wbg.__wbg_close_3ec111e7b23d94d8 = function() { return handleError(function (arg0) { 418 arg0.close(); 419 }, arguments) }; 420 imports.wbg.__wbg_crypto_574e78ad8b13b65f = function(arg0) { 421 const ret = arg0.crypto; 422 return ret; 423 }; 424 imports.wbg.__wbg_data_8bf4ae669a78a688 = function(arg0) { 425 const ret = arg0.data; 426 return ret; 427 }; 428 imports.wbg.__wbg_enqueue_a7e6b1ee87963aad = function() { return handleError(function (arg0, arg1) { 429 arg0.enqueue(arg1); 430 }, arguments) }; 431 imports.wbg.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) { 432 let deferred0_0; 433 let deferred0_1; 434 try { 435 deferred0_0 = arg0; 436 deferred0_1 = arg1; 437 console.error(getStringFromWasm0(arg0, arg1)); 438 } finally { 439 wasm.__wbindgen_free(deferred0_0, deferred0_1, 1); 440 } 441 }; 442 imports.wbg.__wbg_getRandomValues_b8f5dbd5f3995a9e = function() { return handleError(function (arg0, arg1) { 443 arg0.getRandomValues(arg1); 444 }, arguments) }; 445 imports.wbg.__wbg_instanceof_Window_b5cf7783caa68180 = function(arg0) { 446 let result; 447 try { 448 result = arg0 instanceof Window; 449 } catch (_) { 450 result = false; 451 } 452 const ret = result; 453 return ret; 454 }; 455 imports.wbg.__wbg_length_22ac23eaec9d8053 = function(arg0) { 456 const ret = arg0.length; 457 return ret; 458 }; 459 imports.wbg.__wbg_log_0cc1b7768397bcfe = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) { 460 let deferred0_0; 461 let deferred0_1; 462 try { 463 deferred0_0 = arg0; 464 deferred0_1 = arg1; 465 console.log(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3), getStringFromWasm0(arg4, arg5), getStringFromWasm0(arg6, arg7)); 466 } finally { 467 wasm.__wbindgen_free(deferred0_0, deferred0_1, 1); 468 } 469 }; 470 imports.wbg.__wbg_log_cb9e190acc5753fb = function(arg0, arg1) { 471 let deferred0_0; 472 let deferred0_1; 473 try { 474 deferred0_0 = arg0; 475 deferred0_1 = arg1; 476 console.log(getStringFromWasm0(arg0, arg1)); 477 } finally { 478 wasm.__wbindgen_free(deferred0_0, deferred0_1, 1); 479 } 480 }; 481 imports.wbg.__wbg_mark_7438147ce31e9d4b = function(arg0, arg1) { 482 performance.mark(getStringFromWasm0(arg0, arg1)); 483 }; 484 imports.wbg.__wbg_measure_fb7825c11612c823 = function() { return handleError(function (arg0, arg1, arg2, arg3) { 485 let deferred0_0; 486 let deferred0_1; 487 let deferred1_0; 488 let deferred1_1; 489 try { 490 deferred0_0 = arg0; 491 deferred0_1 = arg1; 492 deferred1_0 = arg2; 493 deferred1_1 = arg3; 494 performance.measure(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3)); 495 } finally { 496 wasm.__wbindgen_free(deferred0_0, deferred0_1, 1); 497 wasm.__wbindgen_free(deferred1_0, deferred1_1, 1); 498 } 499 }, arguments) }; 500 imports.wbg.__wbg_msCrypto_a61aeb35a24c1329 = function(arg0) { 501 const ret = arg0.msCrypto; 502 return ret; 503 }; 504 imports.wbg.__wbg_new_8a6f238a6ece86ea = function() { 505 const ret = new Error(); 506 return ret; 507 }; 508 imports.wbg.__wbg_new_df1173567d5ff028 = function(arg0, arg1) { 509 const ret = new Error(getStringFromWasm0(arg0, arg1)); 510 return ret; 511 }; 512 imports.wbg.__wbg_new_ff12d2b041fb48f1 = function(arg0, arg1) { 513 try { 514 var state0 = {a: arg0, b: arg1}; 515 var cb0 = (arg0, arg1) => { 516 const a = state0.a; 517 state0.a = 0; 518 try { 519 return wasm_bindgen_ff1081b5ed996cf4___convert__closures_____invoke___wasm_bindgen_ff1081b5ed996cf4___JsValue__wasm_bindgen_ff1081b5ed996cf4___JsValue_____(a, state0.b, arg0, arg1); 520 } finally { 521 state0.a = a; 522 } 523 }; 524 const ret = new Promise(cb0); 525 return ret; 526 } finally { 527 state0.a = state0.b = 0; 528 } 529 }; 530 imports.wbg.__wbg_new_from_slice_f9c22b9153b26992 = function(arg0, arg1) { 531 const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1)); 532 return ret; 533 }; 534 imports.wbg.__wbg_new_no_args_cb138f77cf6151ee = function(arg0, arg1) { 535 const ret = new Function(getStringFromWasm0(arg0, arg1)); 536 return ret; 537 }; 538 imports.wbg.__wbg_new_with_byte_offset_and_length_d85c3da1fd8df149 = function(arg0, arg1, arg2) { 539 const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0); 540 return ret; 541 }; 542 imports.wbg.__wbg_new_with_length_aa5eaf41d35235e5 = function(arg0) { 543 const ret = new Uint8Array(arg0 >>> 0); 544 return ret; 545 }; 546 imports.wbg.__wbg_node_905d3e251edff8a2 = function(arg0) { 547 const ret = arg0.node; 548 return ret; 549 }; 550 imports.wbg.__wbg_now_8cf15d6e317793e1 = function(arg0) { 551 const ret = arg0.now(); 552 return ret; 553 }; 554 imports.wbg.__wbg_now_c8bdc8efc8c495eb = function() { 555 const ret = Date.now(); 556 return ret; 557 }; 558 imports.wbg.__wbg_performance_c77a440eff2efd9b = function(arg0) { 559 const ret = arg0.performance; 560 return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); 561 }; 562 imports.wbg.__wbg_postMessage_7243f814e0cfb266 = function() { return handleError(function (arg0, arg1) { 563 arg0.postMessage(arg1); 564 }, arguments) }; 565 imports.wbg.__wbg_process_dc0fbacc7c1c06f7 = function(arg0) { 566 const ret = arg0.process; 567 return ret; 568 }; 569 imports.wbg.__wbg_prototypesetcall_dfe9b766cdc1f1fd = function(arg0, arg1, arg2) { 570 Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2); 571 }; 572 imports.wbg.__wbg_queueMicrotask_9b549dfce8865860 = function(arg0) { 573 const ret = arg0.queueMicrotask; 574 return ret; 575 }; 576 imports.wbg.__wbg_queueMicrotask_fca69f5bfad613a5 = function(arg0) { 577 queueMicrotask(arg0); 578 }; 579 imports.wbg.__wbg_randomFillSync_ac0988aba3254290 = function() { return handleError(function (arg0, arg1) { 580 arg0.randomFillSync(arg1); 581 }, arguments) }; 582 imports.wbg.__wbg_require_60cc747a6bc5215a = function() { return handleError(function () { 583 const ret = module.require; 584 return ret; 585 }, arguments) }; 586 imports.wbg.__wbg_resolve_fd5bfbaa4ce36e1e = function(arg0) { 587 const ret = Promise.resolve(arg0); 588 return ret; 589 }; 590 imports.wbg.__wbg_respond_9f7fc54636c4a3af = function() { return handleError(function (arg0, arg1) { 591 arg0.respond(arg1 >>> 0); 592 }, arguments) }; 593 imports.wbg.__wbg_set_169e13b608078b7b = function(arg0, arg1, arg2) { 594 arg0.set(getArrayU8FromWasm0(arg1, arg2)); 595 }; 596 imports.wbg.__wbg_set_onmessage_5fe29d0fb54cb575 = function(arg0, arg1) { 597 arg0.onmessage = arg1; 598 }; 599 imports.wbg.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) { 600 const ret = arg1.stack; 601 const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); 602 const len1 = WASM_VECTOR_LEN; 603 getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); 604 getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); 605 }; 606 imports.wbg.__wbg_static_accessor_GLOBAL_769e6b65d6557335 = function() { 607 const ret = typeof global === 'undefined' ? null : global; 608 return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); 609 }; 610 imports.wbg.__wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1 = function() { 611 const ret = typeof globalThis === 'undefined' ? null : globalThis; 612 return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); 613 }; 614 imports.wbg.__wbg_static_accessor_SELF_08f5a74c69739274 = function() { 615 const ret = typeof self === 'undefined' ? null : self; 616 return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); 617 }; 618 imports.wbg.__wbg_static_accessor_WINDOW_a8924b26aa92d024 = function() { 619 const ret = typeof window === 'undefined' ? null : window; 620 return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); 621 }; 622 imports.wbg.__wbg_subarray_845f2f5bce7d061a = function(arg0, arg1, arg2) { 623 const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0); 624 return ret; 625 }; 626 imports.wbg.__wbg_then_4f95312d68691235 = function(arg0, arg1) { 627 const ret = arg0.then(arg1); 628 return ret; 629 }; 630 imports.wbg.__wbg_versions_c01dfd4722a88165 = function(arg0) { 631 const ret = arg0.versions; 632 return ret; 633 }; 634 imports.wbg.__wbg_view_788aaf149deefd2f = function(arg0) { 635 const ret = arg0.view; 636 return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); 637 }; 638 imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) { 639 // Cast intrinsic for `Ref(String) -> Externref`. 640 const ret = getStringFromWasm0(arg0, arg1); 641 return ret; 642 }; 643 imports.wbg.__wbindgen_cast_5695985a3f63a81e = function(arg0, arg1) { 644 // Cast intrinsic for `Closure(Closure { dtor_idx: 956, function: Function { arguments: [Externref], shim_idx: 957, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`. 645 const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_ff1081b5ed996cf4___closure__destroy___dyn_core_b125d98f3949a913___ops__function__FnMut__wasm_bindgen_ff1081b5ed996cf4___JsValue____Output_______, wasm_bindgen_ff1081b5ed996cf4___convert__closures_____invoke___wasm_bindgen_ff1081b5ed996cf4___JsValue_____); 646 return ret; 647 }; 648 imports.wbg.__wbindgen_cast_8e598183f7f23db7 = function(arg0, arg1) { 649 // Cast intrinsic for `Closure(Closure { dtor_idx: 128, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 129, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`. 650 const ret = makeClosure(arg0, arg1, wasm.wasm_bindgen_ff1081b5ed996cf4___closure__destroy___dyn_core_b125d98f3949a913___ops__function__Fn__web_sys_8097425c49dd63ff___features__gen_MessageEvent__MessageEvent____Output_______, wasm_bindgen_ff1081b5ed996cf4___convert__closures_____invoke___web_sys_8097425c49dd63ff___features__gen_MessageEvent__MessageEvent_____); 651 return ret; 652 }; 653 imports.wbg.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) { 654 // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`. 655 const ret = getArrayU8FromWasm0(arg0, arg1); 656 return ret; 657 }; 658 imports.wbg.__wbindgen_init_externref_table = function() { 659 const table = wasm.__wbindgen_externrefs; 660 const offset = table.grow(4); 661 table.set(0, undefined); 662 table.set(offset + 0, undefined); 663 table.set(offset + 1, null); 664 table.set(offset + 2, true); 665 table.set(offset + 3, false); 666 }; 667 668 return imports; 669 } 670 671 function __wbg_finalize_init(instance, module) { 672 wasm = instance.exports; 673 __wbg_init.__wbindgen_wasm_module = module; 674 cachedDataViewMemory0 = null; 675 cachedUint8ArrayMemory0 = null; 676 677 678 wasm.__wbindgen_start(); 679 return wasm; 680 } 681 682 function initSync(module) { 683 if (wasm !== undefined) return wasm; 684 685 686 if (typeof module !== 'undefined') { 687 if (Object.getPrototypeOf(module) === Object.prototype) { 688 ({module} = module) 689 } else { 690 console.warn('using deprecated parameters for `initSync()`; pass a single object instead') 691 } 692 } 693 694 const imports = __wbg_get_imports(); 695 if (!(module instanceof WebAssembly.Module)) { 696 module = new WebAssembly.Module(module); 697 } 698 const instance = new WebAssembly.Instance(module, imports); 699 return __wbg_finalize_init(instance, module); 700 } 701 702 async function __wbg_init(module_or_path) { 703 if (wasm !== undefined) return wasm; 704 705 706 if (typeof module_or_path !== 'undefined') { 707 if (Object.getPrototypeOf(module_or_path) === Object.prototype) { 708 ({module_or_path} = module_or_path) 709 } else { 710 console.warn('using deprecated parameters for the initialization function; pass a single object instead') 711 } 712 } 713 714 if (typeof module_or_path === 'undefined' && typeof script_src !== 'undefined') { 715 module_or_path = script_src.replace(/\.js$/, '_bg.wasm'); 716 } 717 const imports = __wbg_get_imports(); 718 719 if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) { 720 module_or_path = fetch(module_or_path); 721 } 722 723 const { instance, module } = await __wbg_load(await module_or_path, imports); 724 725 return __wbg_finalize_init(instance, module); 726 } 727 728 wasm_bindgen = Object.assign(__wbg_init, { initSync }, __exports); 729})();