@boundaryml/baml-bridge-web 0.0.0

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.
Files changed (87) hide show
  1. package/dist/index.d.ts +30 -0
  2. package/dist/index.d.ts.map +1 -0
  3. package/dist/index.js +57 -0
  4. package/dist/index.js.map +1 -0
  5. package/dist/native.d.ts +79 -0
  6. package/dist/native.d.ts.map +1 -0
  7. package/dist/native.js +148 -0
  8. package/dist/native.js.map +1 -0
  9. package/dist/shared/define_function.d.ts +31 -0
  10. package/dist/shared/define_function.d.ts.map +1 -0
  11. package/dist/shared/define_function.js +274 -0
  12. package/dist/shared/define_function.js.map +1 -0
  13. package/dist/shared/errors.d.ts +51 -0
  14. package/dist/shared/errors.d.ts.map +1 -0
  15. package/dist/shared/errors.js +60 -0
  16. package/dist/shared/errors.js.map +1 -0
  17. package/dist/shared/host_value_registry.d.ts +50 -0
  18. package/dist/shared/host_value_registry.d.ts.map +1 -0
  19. package/dist/shared/host_value_registry.js +134 -0
  20. package/dist/shared/host_value_registry.js.map +1 -0
  21. package/dist/shared/proto/baml_cffi.d.ts +6282 -0
  22. package/dist/shared/proto/baml_cffi.js +12482 -0
  23. package/dist/shared/proto.d.ts +55 -0
  24. package/dist/shared/proto.d.ts.map +1 -0
  25. package/dist/shared/proto.js +956 -0
  26. package/dist/shared/proto.js.map +1 -0
  27. package/dist/shared/stream.d.ts +16 -0
  28. package/dist/shared/stream.d.ts.map +1 -0
  29. package/dist/shared/stream.js +61 -0
  30. package/dist/shared/stream.js.map +1 -0
  31. package/dist/shared/typemap.d.ts +30 -0
  32. package/dist/shared/typemap.d.ts.map +1 -0
  33. package/dist/shared/typemap.js +103 -0
  34. package/dist/shared/typemap.js.map +1 -0
  35. package/dist/shared/wire_ty.d.ts +51 -0
  36. package/dist/shared/wire_ty.d.ts.map +1 -0
  37. package/dist/shared/wire_ty.js +140 -0
  38. package/dist/shared/wire_ty.js.map +1 -0
  39. package/dist/wasm/bridge_web_core.d.ts +174 -0
  40. package/dist/wasm/bridge_web_core.js +1277 -0
  41. package/dist/wasm/bridge_web_core_bg.wasm +0 -0
  42. package/dist/wasm/bridge_web_core_bg.wasm.d.ts +41 -0
  43. package/dist/wasm/package.json +19 -0
  44. package/dist/workerd/index.d.ts +30 -0
  45. package/dist/workerd/index.d.ts.map +1 -0
  46. package/dist/workerd/index.js +57 -0
  47. package/dist/workerd/index.js.map +1 -0
  48. package/dist/workerd/native.d.ts +79 -0
  49. package/dist/workerd/native.d.ts.map +1 -0
  50. package/dist/workerd/native.js +147 -0
  51. package/dist/workerd/shared/define_function.d.ts +31 -0
  52. package/dist/workerd/shared/define_function.d.ts.map +1 -0
  53. package/dist/workerd/shared/define_function.js +274 -0
  54. package/dist/workerd/shared/define_function.js.map +1 -0
  55. package/dist/workerd/shared/errors.d.ts +51 -0
  56. package/dist/workerd/shared/errors.d.ts.map +1 -0
  57. package/dist/workerd/shared/errors.js +60 -0
  58. package/dist/workerd/shared/errors.js.map +1 -0
  59. package/dist/workerd/shared/host_value_registry.d.ts +50 -0
  60. package/dist/workerd/shared/host_value_registry.d.ts.map +1 -0
  61. package/dist/workerd/shared/host_value_registry.js +134 -0
  62. package/dist/workerd/shared/host_value_registry.js.map +1 -0
  63. package/dist/workerd/shared/proto/baml_cffi.d.ts +6282 -0
  64. package/dist/workerd/shared/proto/baml_cffi.js +12482 -0
  65. package/dist/workerd/shared/proto.d.ts +55 -0
  66. package/dist/workerd/shared/proto.d.ts.map +1 -0
  67. package/dist/workerd/shared/proto.js +956 -0
  68. package/dist/workerd/shared/proto.js.map +1 -0
  69. package/dist/workerd/shared/stream.d.ts +16 -0
  70. package/dist/workerd/shared/stream.d.ts.map +1 -0
  71. package/dist/workerd/shared/stream.js +61 -0
  72. package/dist/workerd/shared/stream.js.map +1 -0
  73. package/dist/workerd/shared/typemap.d.ts +30 -0
  74. package/dist/workerd/shared/typemap.d.ts.map +1 -0
  75. package/dist/workerd/shared/typemap.js +103 -0
  76. package/dist/workerd/shared/typemap.js.map +1 -0
  77. package/dist/workerd/shared/wire_ty.d.ts +51 -0
  78. package/dist/workerd/shared/wire_ty.d.ts.map +1 -0
  79. package/dist/workerd/shared/wire_ty.js +140 -0
  80. package/dist/workerd/shared/wire_ty.js.map +1 -0
  81. package/dist/workerd-wasm/bridge_web_core.d.ts +108 -0
  82. package/dist/workerd-wasm/bridge_web_core.js +14 -0
  83. package/dist/workerd-wasm/bridge_web_core_bg.js +1178 -0
  84. package/dist/workerd-wasm/bridge_web_core_bg.wasm +0 -0
  85. package/dist/workerd-wasm/bridge_web_core_bg.wasm.d.ts +41 -0
  86. package/dist/workerd-wasm/package.json +21 -0
  87. package/package.json +31 -0
@@ -0,0 +1,1178 @@
1
+ export class IntoUnderlyingByteSource {
2
+ __destroy_into_raw() {
3
+ const ptr = this.__wbg_ptr;
4
+ this.__wbg_ptr = 0;
5
+ IntoUnderlyingByteSourceFinalization.unregister(this);
6
+ return ptr;
7
+ }
8
+ free() {
9
+ const ptr = this.__destroy_into_raw();
10
+ wasm.__wbg_intounderlyingbytesource_free(ptr, 0);
11
+ }
12
+ /**
13
+ * @returns {number}
14
+ */
15
+ get autoAllocateChunkSize() {
16
+ const ret = wasm.intounderlyingbytesource_autoAllocateChunkSize(this.__wbg_ptr);
17
+ return ret >>> 0;
18
+ }
19
+ cancel() {
20
+ const ptr = this.__destroy_into_raw();
21
+ wasm.intounderlyingbytesource_cancel(ptr);
22
+ }
23
+ /**
24
+ * @param {ReadableByteStreamController} controller
25
+ * @returns {Promise<any>}
26
+ */
27
+ pull(controller) {
28
+ const ret = wasm.intounderlyingbytesource_pull(this.__wbg_ptr, addHeapObject(controller));
29
+ return takeObject(ret);
30
+ }
31
+ /**
32
+ * @param {ReadableByteStreamController} controller
33
+ */
34
+ start(controller) {
35
+ wasm.intounderlyingbytesource_start(this.__wbg_ptr, addHeapObject(controller));
36
+ }
37
+ /**
38
+ * @returns {ReadableStreamType}
39
+ */
40
+ get type() {
41
+ const ret = wasm.intounderlyingbytesource_type(this.__wbg_ptr);
42
+ return __wbindgen_enum_ReadableStreamType[ret];
43
+ }
44
+ }
45
+ if (Symbol.dispose) IntoUnderlyingByteSource.prototype[Symbol.dispose] = IntoUnderlyingByteSource.prototype.free;
46
+
47
+ export class IntoUnderlyingSink {
48
+ __destroy_into_raw() {
49
+ const ptr = this.__wbg_ptr;
50
+ this.__wbg_ptr = 0;
51
+ IntoUnderlyingSinkFinalization.unregister(this);
52
+ return ptr;
53
+ }
54
+ free() {
55
+ const ptr = this.__destroy_into_raw();
56
+ wasm.__wbg_intounderlyingsink_free(ptr, 0);
57
+ }
58
+ /**
59
+ * @param {any} reason
60
+ * @returns {Promise<any>}
61
+ */
62
+ abort(reason) {
63
+ const ptr = this.__destroy_into_raw();
64
+ const ret = wasm.intounderlyingsink_abort(ptr, addHeapObject(reason));
65
+ return takeObject(ret);
66
+ }
67
+ /**
68
+ * @returns {Promise<any>}
69
+ */
70
+ close() {
71
+ const ptr = this.__destroy_into_raw();
72
+ const ret = wasm.intounderlyingsink_close(ptr);
73
+ return takeObject(ret);
74
+ }
75
+ /**
76
+ * @param {any} chunk
77
+ * @returns {Promise<any>}
78
+ */
79
+ write(chunk) {
80
+ const ret = wasm.intounderlyingsink_write(this.__wbg_ptr, addHeapObject(chunk));
81
+ return takeObject(ret);
82
+ }
83
+ }
84
+ if (Symbol.dispose) IntoUnderlyingSink.prototype[Symbol.dispose] = IntoUnderlyingSink.prototype.free;
85
+
86
+ export class IntoUnderlyingSource {
87
+ __destroy_into_raw() {
88
+ const ptr = this.__wbg_ptr;
89
+ this.__wbg_ptr = 0;
90
+ IntoUnderlyingSourceFinalization.unregister(this);
91
+ return ptr;
92
+ }
93
+ free() {
94
+ const ptr = this.__destroy_into_raw();
95
+ wasm.__wbg_intounderlyingsource_free(ptr, 0);
96
+ }
97
+ cancel() {
98
+ const ptr = this.__destroy_into_raw();
99
+ wasm.intounderlyingsource_cancel(ptr);
100
+ }
101
+ /**
102
+ * @param {ReadableStreamDefaultController} controller
103
+ * @returns {Promise<any>}
104
+ */
105
+ pull(controller) {
106
+ const ret = wasm.intounderlyingsource_pull(this.__wbg_ptr, addHeapObject(controller));
107
+ return takeObject(ret);
108
+ }
109
+ }
110
+ if (Symbol.dispose) IntoUnderlyingSource.prototype[Symbol.dispose] = IntoUnderlyingSource.prototype.free;
111
+
112
+ /**
113
+ * @param {string} function_name
114
+ * @param {Uint8Array} encoded_args
115
+ * @returns {Promise<Uint8Array>}
116
+ */
117
+ export function callFunction(function_name, encoded_args) {
118
+ const ptr0 = passStringToWasm0(function_name, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
119
+ const len0 = WASM_VECTOR_LEN;
120
+ const ptr1 = passArray8ToWasm0(encoded_args, wasm.__wbindgen_export2);
121
+ const len1 = WASM_VECTOR_LEN;
122
+ const ret = wasm.callFunction(ptr0, len0, ptr1, len1);
123
+ return takeObject(ret);
124
+ }
125
+
126
+ /**
127
+ * @param {string} function_name
128
+ * @param {Uint8Array} encoded_args
129
+ * @returns {Uint8Array}
130
+ */
131
+ export function callFunctionSync(function_name, encoded_args) {
132
+ try {
133
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
134
+ const ptr0 = passStringToWasm0(function_name, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
135
+ const len0 = WASM_VECTOR_LEN;
136
+ const ptr1 = passArray8ToWasm0(encoded_args, wasm.__wbindgen_export2);
137
+ const len1 = WASM_VECTOR_LEN;
138
+ wasm.callFunctionSync(retptr, ptr0, len0, ptr1, len1);
139
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
140
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
141
+ var v3 = getArrayU8FromWasm0(r0, r1).slice();
142
+ wasm.__wbindgen_export5(r0, r1 * 1, 1);
143
+ return v3;
144
+ } finally {
145
+ wasm.__wbindgen_add_to_stack_pointer(16);
146
+ }
147
+ }
148
+
149
+ /**
150
+ * @param {bigint} call_id
151
+ * @returns {boolean}
152
+ */
153
+ export function cancelFunctionCall(call_id) {
154
+ const ret = wasm.cancelFunctionCall(call_id);
155
+ return ret !== 0;
156
+ }
157
+
158
+ /**
159
+ * Complete an in-flight host call from JS.
160
+ *
161
+ * Exposed to JS as `completeHostCall(callId, isError, content)`.
162
+ *
163
+ * On success (`is_error == 0`), `content` is a protobuf-encoded `InboundValue`
164
+ * (host→engine direction, no type metadata — engine re-validates against the
165
+ * declared return type).
166
+ *
167
+ * On error (`is_error != 0`), `content` is a protobuf-encoded `InboundValue`
168
+ * representing the thrown value. The host bridge SDK wraps native exceptions
169
+ * in a synthetic `Instance` of class `baml.errors.HostCallable` carrying
170
+ * `message` / `class_name` / `language` / `traceback` fields; codegenned
171
+ * BAML errors flow through as their own `Instance` shape. The engine's
172
+ * `materialize_host_throw` runs the declared-throws contract check on the
173
+ * decoded value and either re-injects it as a catchable throw or escalates
174
+ * to a `HostContractViolation` panic.
175
+ *
176
+ * `call_id` is globally unique, so it resolves the originating runtime's
177
+ * pending call unambiguously. If `call_id` is unknown the call is silently
178
+ * dropped (likely a stale completion racing with a cancellation).
179
+ * @param {number} call_id
180
+ * @param {number} is_error
181
+ * @param {Uint8Array} content
182
+ */
183
+ export function completeHostCall(call_id, is_error, content) {
184
+ const ptr0 = passArray8ToWasm0(content, wasm.__wbindgen_export2);
185
+ const len0 = WASM_VECTOR_LEN;
186
+ wasm.completeHostCall(call_id, is_error, ptr0, len0);
187
+ }
188
+
189
+ /**
190
+ * @param {number} call_id
191
+ * @param {number} is_error
192
+ * @param {Uint8Array} content
193
+ */
194
+ export function completeWebHostCall(call_id, is_error, content) {
195
+ const ptr0 = passArray8ToWasm0(content, wasm.__wbindgen_export2);
196
+ const len0 = WASM_VECTOR_LEN;
197
+ wasm.completeWebHostCall(call_id, is_error, ptr0, len0);
198
+ }
199
+
200
+ /**
201
+ * Mint a key for a JS-owned opaque value from the same keyspace used by
202
+ * callable host values. Both kinds share one engine handle table.
203
+ * @returns {bigint}
204
+ */
205
+ export function mintHostValueKey() {
206
+ const ret = wasm.mintHostValueKey();
207
+ return BigInt.asUintN(64, ret);
208
+ }
209
+
210
+ /**
211
+ * @returns {bigint}
212
+ */
213
+ export function mintWebHostValueKey() {
214
+ const ret = wasm.mintWebHostValueKey();
215
+ return BigInt.asUintN(64, ret);
216
+ }
217
+
218
+ /**
219
+ * @returns {bigint}
220
+ */
221
+ export function newFunctionCall() {
222
+ const ret = wasm.newFunctionCall();
223
+ return BigInt.asUintN(64, ret);
224
+ }
225
+
226
+ /**
227
+ * Register a JS callable in the WASM host-value table and return its key.
228
+ *
229
+ * Exposed to JS as `registerHostCallable(fn) -> bigint`. The key is then
230
+ * embedded in `InboundValue::Handle { key, handleType: HOST_VALUE_CALLABLE }`
231
+ * by the JS encoder. The returned value is a `BigInt` because `u64` does not
232
+ * fit into JS's safe-integer range.
233
+ * @param {Function} callable
234
+ * @returns {bigint}
235
+ */
236
+ export function registerHostCallable(callable) {
237
+ const ret = wasm.registerHostCallable(addHeapObject(callable));
238
+ return BigInt.asUintN(64, ret);
239
+ }
240
+
241
+ /**
242
+ * Register the JS callback that releases opaque values from the SDK's local
243
+ * registry when the engine drops its last corresponding `HostValueArc`.
244
+ * @param {Function} callback
245
+ */
246
+ export function registerHostValueReleaseCallback(callback) {
247
+ wasm.registerHostValueReleaseCallback(addHeapObject(callback));
248
+ }
249
+
250
+ /**
251
+ * @param {Function} callable
252
+ * @returns {bigint}
253
+ */
254
+ export function registerWebHostCallable(callable) {
255
+ const ret = wasm.registerWebHostCallable(addHeapObject(callable));
256
+ return BigInt.asUintN(64, ret);
257
+ }
258
+
259
+ /**
260
+ * @param {Function} callback
261
+ */
262
+ export function registerWebHostValueReleaseCallback(callback) {
263
+ wasm.registerWebHostValueReleaseCallback(addHeapObject(callback));
264
+ }
265
+
266
+ /**
267
+ * Remove a callable that was registered but never transferred to the engine.
268
+ * @param {bigint} key
269
+ */
270
+ export function releaseHostCallable(key) {
271
+ wasm.releaseHostCallable(key);
272
+ }
273
+
274
+ /**
275
+ * @param {bigint} key
276
+ */
277
+ export function releaseWebHostCallable(key) {
278
+ wasm.releaseWebHostCallable(key);
279
+ }
280
+
281
+ /**
282
+ * @param {Uint8Array} bytecode
283
+ * @param {any} callbacks
284
+ */
285
+ export function stageRuntimeBytecode(bytecode, callbacks) {
286
+ try {
287
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
288
+ const ptr0 = passArray8ToWasm0(bytecode, wasm.__wbindgen_export2);
289
+ const len0 = WASM_VECTOR_LEN;
290
+ wasm.stageRuntimeBytecode(retptr, ptr0, len0, addBorrowedObject(callbacks));
291
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
292
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
293
+ if (r1) {
294
+ throw takeObject(r0);
295
+ }
296
+ } finally {
297
+ wasm.__wbindgen_add_to_stack_pointer(16);
298
+ heap[stack_pointer++] = undefined;
299
+ }
300
+ }
301
+ export function __wbg_BigInt_d576983233c6e0d1() { return handleError(function (arg0) {
302
+ const ret = BigInt(getObject(arg0));
303
+ return addHeapObject(ret);
304
+ }, arguments); }
305
+ export function __wbg_Error_ef53bc310eb298a0(arg0, arg1) {
306
+ const ret = Error(getStringFromWasm0(arg0, arg1));
307
+ return addHeapObject(ret);
308
+ }
309
+ export function __wbg___wbindgen_debug_string_0accd80f45e5faa2(arg0, arg1) {
310
+ const ret = debugString(getObject(arg1));
311
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
312
+ const len1 = WASM_VECTOR_LEN;
313
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
314
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
315
+ }
316
+ export function __wbg___wbindgen_is_bigint_6ffd6468a9bc44b9(arg0) {
317
+ const ret = typeof(getObject(arg0)) === 'bigint';
318
+ return ret;
319
+ }
320
+ export function __wbg___wbindgen_is_function_754e9f305ff6029e(arg0) {
321
+ const ret = typeof(getObject(arg0)) === 'function';
322
+ return ret;
323
+ }
324
+ export function __wbg___wbindgen_is_null_87c3bfe968c6a5ad(arg0) {
325
+ const ret = getObject(arg0) === null;
326
+ return ret;
327
+ }
328
+ export function __wbg___wbindgen_is_object_56732c2bc353f41d(arg0) {
329
+ const val = getObject(arg0);
330
+ const ret = typeof(val) === 'object' && val !== null;
331
+ return ret;
332
+ }
333
+ export function __wbg___wbindgen_is_string_c236cabd84a4d769(arg0) {
334
+ const ret = typeof(getObject(arg0)) === 'string';
335
+ return ret;
336
+ }
337
+ export function __wbg___wbindgen_is_undefined_67b456be8673d3d7(arg0) {
338
+ const ret = getObject(arg0) === undefined;
339
+ return ret;
340
+ }
341
+ export function __wbg___wbindgen_number_get_9bb1761122181af2(arg0, arg1) {
342
+ const obj = getObject(arg1);
343
+ const ret = typeof(obj) === 'number' ? obj : undefined;
344
+ getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
345
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
346
+ }
347
+ export function __wbg___wbindgen_string_get_72bdf95d3ae505b1(arg0, arg1) {
348
+ const obj = getObject(arg1);
349
+ const ret = typeof(obj) === 'string' ? obj : undefined;
350
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
351
+ var len1 = WASM_VECTOR_LEN;
352
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
353
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
354
+ }
355
+ export function __wbg___wbindgen_throw_1506f2235d1bdba0(arg0, arg1) {
356
+ throw new Error(getStringFromWasm0(arg0, arg1));
357
+ }
358
+ export function __wbg__wbg_cb_unref_61db23ac97f16c31(arg0) {
359
+ getObject(arg0)._wbg_cb_unref();
360
+ }
361
+ export function __wbg_abort_2ec46222bf378517(arg0) {
362
+ getObject(arg0).abort();
363
+ }
364
+ export function __wbg_abort_b29d719932441c95(arg0, arg1) {
365
+ getObject(arg0).abort(getObject(arg1));
366
+ }
367
+ export function __wbg_append_e1746995edcb0170() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
368
+ getObject(arg0).append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
369
+ }, arguments); }
370
+ export function __wbg_body_61a0827da5b6d2bc(arg0) {
371
+ const ret = getObject(arg0).body;
372
+ return isLikeNone(ret) ? 0 : addHeapObject(ret);
373
+ }
374
+ export function __wbg_buffer_d370c8cae5692933(arg0) {
375
+ const ret = getObject(arg0).buffer;
376
+ return addHeapObject(ret);
377
+ }
378
+ export function __wbg_byobRequest_2c89fb4ab478fa09(arg0) {
379
+ const ret = getObject(arg0).byobRequest;
380
+ return isLikeNone(ret) ? 0 : addHeapObject(ret);
381
+ }
382
+ export function __wbg_byteLength_2c6dc3b4b85d3547(arg0) {
383
+ const ret = getObject(arg0).byteLength;
384
+ return ret;
385
+ }
386
+ export function __wbg_byteOffset_349aa9bf0a183eca(arg0) {
387
+ const ret = getObject(arg0).byteOffset;
388
+ return ret;
389
+ }
390
+ export function __wbg_call_14a4382662630047() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
391
+ const ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3), getObject(arg4), getObject(arg5), getObject(arg6));
392
+ return addHeapObject(ret);
393
+ }, arguments); }
394
+ export function __wbg_call_40e4174f169eaca7() { return handleError(function (arg0, arg1, arg2, arg3) {
395
+ const ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3));
396
+ return addHeapObject(ret);
397
+ }, arguments); }
398
+ export function __wbg_call_6e37a87ff352da3d() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
399
+ const ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3), getObject(arg4));
400
+ return addHeapObject(ret);
401
+ }, arguments); }
402
+ export function __wbg_call_8a89609d89f6608a() { return handleError(function (arg0, arg1) {
403
+ const ret = getObject(arg0).call(getObject(arg1));
404
+ return addHeapObject(ret);
405
+ }, arguments); }
406
+ export function __wbg_call_9c758de292015997() { return handleError(function (arg0, arg1, arg2) {
407
+ const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
408
+ return addHeapObject(ret);
409
+ }, arguments); }
410
+ export function __wbg_cancel_3dedc1c2245a59d4(arg0) {
411
+ const ret = getObject(arg0).cancel();
412
+ return addHeapObject(ret);
413
+ }
414
+ export function __wbg_catch_17ae9c6dfb88ad8a(arg0, arg1) {
415
+ const ret = getObject(arg0).catch(getObject(arg1));
416
+ return addHeapObject(ret);
417
+ }
418
+ export function __wbg_clearTimeout_333bba87532ab9d3(arg0) {
419
+ const ret = clearTimeout(takeObject(arg0));
420
+ return addHeapObject(ret);
421
+ }
422
+ export function __wbg_close_4859304bbf0f8208() { return handleError(function (arg0) {
423
+ getObject(arg0).close();
424
+ }, arguments); }
425
+ export function __wbg_close_6f12196fe155e8d2() { return handleError(function (arg0) {
426
+ getObject(arg0).close();
427
+ }, arguments); }
428
+ export function __wbg_construct_e0f002bb615dbba1() { return handleError(function (arg0, arg1) {
429
+ const ret = Reflect.construct(getObject(arg0), getObject(arg1));
430
+ return addHeapObject(ret);
431
+ }, arguments); }
432
+ export function __wbg_crypto_38df2bab126b63dc(arg0) {
433
+ const ret = getObject(arg0).crypto;
434
+ return addHeapObject(ret);
435
+ }
436
+ export function __wbg_done_60cf307fcc680536(arg0) {
437
+ const ret = getObject(arg0).done;
438
+ return ret;
439
+ }
440
+ export function __wbg_enqueue_09035479e2081625() { return handleError(function (arg0, arg1) {
441
+ getObject(arg0).enqueue(getObject(arg1));
442
+ }, arguments); }
443
+ export function __wbg_entries_18ec04521d5991e6(arg0) {
444
+ const ret = getObject(arg0).entries();
445
+ return addHeapObject(ret);
446
+ }
447
+ export function __wbg_env_4abd689850958904(arg0) {
448
+ const ret = getObject(arg0).env;
449
+ return addHeapObject(ret);
450
+ }
451
+ export function __wbg_exec_6d83602c99106c1b(arg0) {
452
+ const ret = getObject(arg0).exec;
453
+ return addHeapObject(ret);
454
+ }
455
+ export function __wbg_fetch_074561c3e313c86f(arg0) {
456
+ const ret = fetch(getObject(arg0));
457
+ return addHeapObject(ret);
458
+ }
459
+ export function __wbg_fetch_344c8d3849002659(arg0, arg1) {
460
+ const ret = getObject(arg0).fetch(getObject(arg1));
461
+ return addHeapObject(ret);
462
+ }
463
+ export function __wbg_fetch_6b602715e8b82e62(arg0) {
464
+ const ret = getObject(arg0).fetch;
465
+ return addHeapObject(ret);
466
+ }
467
+ export function __wbg_getRandomValues_c44a50d8cfdaebeb() { return handleError(function (arg0, arg1) {
468
+ getObject(arg0).getRandomValues(getObject(arg1));
469
+ }, arguments); }
470
+ export function __wbg_getRandomValues_ef12552bf5acd2fe() { return handleError(function (arg0, arg1) {
471
+ globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
472
+ }, arguments); }
473
+ export function __wbg_getReader_9facd4f899beac89() { return handleError(function (arg0) {
474
+ const ret = getObject(arg0).getReader();
475
+ return addHeapObject(ret);
476
+ }, arguments); }
477
+ export function __wbg_get_2b48c7d0d006a781(arg0, arg1) {
478
+ const ret = getObject(arg0)[arg1 >>> 0];
479
+ return addHeapObject(ret);
480
+ }
481
+ export function __wbg_get_de6a0f7d4d18a304() { return handleError(function (arg0, arg1) {
482
+ const ret = Reflect.get(getObject(arg0), getObject(arg1));
483
+ return addHeapObject(ret);
484
+ }, arguments); }
485
+ export function __wbg_get_done_ea9eb315d4ec1e81(arg0) {
486
+ const ret = getObject(arg0).done;
487
+ return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
488
+ }
489
+ export function __wbg_get_value_c68fe2e1a76c69ca(arg0) {
490
+ const ret = getObject(arg0).value;
491
+ return addHeapObject(ret);
492
+ }
493
+ export function __wbg_has_73740b27f436fed3() { return handleError(function (arg0, arg1) {
494
+ const ret = Reflect.has(getObject(arg0), getObject(arg1));
495
+ return ret;
496
+ }, arguments); }
497
+ export function __wbg_headers_0feb63d2d374b44a(arg0) {
498
+ const ret = getObject(arg0).headers;
499
+ return addHeapObject(ret);
500
+ }
501
+ export function __wbg_host_dispatch_1dac439e36ac80ac(arg0) {
502
+ const ret = getObject(arg0).host_dispatch;
503
+ return addHeapObject(ret);
504
+ }
505
+ export function __wbg_input_b99b0e4613244b4c(arg0) {
506
+ const ret = getObject(arg0).input;
507
+ return addHeapObject(ret);
508
+ }
509
+ export function __wbg_instanceof_ArrayBuffer_8f49811467741499(arg0) {
510
+ let result;
511
+ try {
512
+ result = getObject(arg0) instanceof ArrayBuffer;
513
+ } catch (_) {
514
+ result = false;
515
+ }
516
+ const ret = result;
517
+ return ret;
518
+ }
519
+ export function __wbg_instanceof_Error_94c8c9d9e410014a(arg0) {
520
+ let result;
521
+ try {
522
+ result = getObject(arg0) instanceof Error;
523
+ } catch (_) {
524
+ result = false;
525
+ }
526
+ const ret = result;
527
+ return ret;
528
+ }
529
+ export function __wbg_instanceof_Object_873c13f9f41aec78(arg0) {
530
+ let result;
531
+ try {
532
+ result = getObject(arg0) instanceof Object;
533
+ } catch (_) {
534
+ result = false;
535
+ }
536
+ const ret = result;
537
+ return ret;
538
+ }
539
+ export function __wbg_instanceof_Promise_d0db99486956c8e8(arg0) {
540
+ let result;
541
+ try {
542
+ result = getObject(arg0) instanceof Promise;
543
+ } catch (_) {
544
+ result = false;
545
+ }
546
+ const ret = result;
547
+ return ret;
548
+ }
549
+ export function __wbg_instanceof_Response_cb984bd66d7bd408(arg0) {
550
+ let result;
551
+ try {
552
+ result = getObject(arg0) instanceof Response;
553
+ } catch (_) {
554
+ result = false;
555
+ }
556
+ const ret = result;
557
+ return ret;
558
+ }
559
+ export function __wbg_instanceof_Uint8Array_86f30649f63ef9c2(arg0) {
560
+ let result;
561
+ try {
562
+ result = getObject(arg0) instanceof Uint8Array;
563
+ } catch (_) {
564
+ result = false;
565
+ }
566
+ const ret = result;
567
+ return ret;
568
+ }
569
+ export function __wbg_isArray_67c2c9c4313f4448(arg0) {
570
+ const ret = Array.isArray(getObject(arg0));
571
+ return ret;
572
+ }
573
+ export function __wbg_length_4a591ecaa01354d9(arg0) {
574
+ const ret = getObject(arg0).length;
575
+ return ret;
576
+ }
577
+ export function __wbg_lsp_send_notification_9a35310ef2027b11(arg0) {
578
+ const ret = getObject(arg0).lsp_send_notification;
579
+ return addHeapObject(ret);
580
+ }
581
+ export function __wbg_message_40300ed2d1f8bdc6(arg0) {
582
+ const ret = getObject(arg0).message;
583
+ return addHeapObject(ret);
584
+ }
585
+ export function __wbg_msCrypto_bd5a034af96bcba6(arg0) {
586
+ const ret = getObject(arg0).msCrypto;
587
+ return addHeapObject(ret);
588
+ }
589
+ export function __wbg_new_0d09705104e164af() { return handleError(function () {
590
+ const ret = new AbortController();
591
+ return addHeapObject(ret);
592
+ }, arguments); }
593
+ export function __wbg_new_50bb5ebeecef71a8(arg0, arg1) {
594
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
595
+ return addHeapObject(ret);
596
+ }
597
+ export function __wbg_new_578aeef4b6b94378(arg0) {
598
+ const ret = new Uint8Array(getObject(arg0));
599
+ return addHeapObject(ret);
600
+ }
601
+ export function __wbg_new_b682b81e8eaaf027(arg0, arg1) {
602
+ try {
603
+ var state0 = {a: arg0, b: arg1};
604
+ var cb0 = (arg0, arg1) => {
605
+ const a = state0.a;
606
+ state0.a = 0;
607
+ try {
608
+ return __wasm_bindgen_func_elem_37369(a, state0.b, arg0, arg1);
609
+ } finally {
610
+ state0.a = a;
611
+ }
612
+ };
613
+ const ret = new Promise(cb0);
614
+ return addHeapObject(ret);
615
+ } finally {
616
+ state0.a = 0;
617
+ }
618
+ }
619
+ export function __wbg_new_ce1ab61c1c2b300d() {
620
+ const ret = new Object();
621
+ return addHeapObject(ret);
622
+ }
623
+ export function __wbg_new_d90091b82fdf5b91() {
624
+ const ret = new Array();
625
+ return addHeapObject(ret);
626
+ }
627
+ export function __wbg_new_e436d06bc8e77460() { return handleError(function () {
628
+ const ret = new Headers();
629
+ return addHeapObject(ret);
630
+ }, arguments); }
631
+ export function __wbg_new_from_slice_18fa1f71286d66b8(arg0, arg1) {
632
+ const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
633
+ return addHeapObject(ret);
634
+ }
635
+ export function __wbg_new_typed_bf31d18f92484486(arg0, arg1) {
636
+ try {
637
+ var state0 = {a: arg0, b: arg1};
638
+ var cb0 = (arg0, arg1) => {
639
+ const a = state0.a;
640
+ state0.a = 0;
641
+ try {
642
+ return __wasm_bindgen_func_elem_37369(a, state0.b, arg0, arg1);
643
+ } finally {
644
+ state0.a = a;
645
+ }
646
+ };
647
+ const ret = new Promise(cb0);
648
+ return addHeapObject(ret);
649
+ } finally {
650
+ state0.a = 0;
651
+ }
652
+ }
653
+ export function __wbg_new_with_byte_offset_and_length_d836f26d916dd9ad(arg0, arg1, arg2) {
654
+ const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
655
+ return addHeapObject(ret);
656
+ }
657
+ export function __wbg_new_with_length_36a4998e27b014c5(arg0) {
658
+ const ret = new Uint8Array(arg0 >>> 0);
659
+ return addHeapObject(ret);
660
+ }
661
+ export function __wbg_new_with_str_and_init_bcd02b79a793d27f() { return handleError(function (arg0, arg1, arg2) {
662
+ const ret = new Request(getStringFromWasm0(arg0, arg1), getObject(arg2));
663
+ return addHeapObject(ret);
664
+ }, arguments); }
665
+ export function __wbg_next_eb8ca7351fa27906() { return handleError(function (arg0) {
666
+ const ret = getObject(arg0).next();
667
+ return addHeapObject(ret);
668
+ }, arguments); }
669
+ export function __wbg_node_84ea875411254db1(arg0) {
670
+ const ret = getObject(arg0).node;
671
+ return addHeapObject(ret);
672
+ }
673
+ export function __wbg_now_190933fa139cc119() {
674
+ const ret = Date.now();
675
+ return ret;
676
+ }
677
+ export function __wbg_now_e7c6795a7f81e10f(arg0) {
678
+ const ret = getObject(arg0).now();
679
+ return ret;
680
+ }
681
+ export function __wbg_of_f34f1ce50f299ee9(arg0, arg1) {
682
+ const ret = Array.of(getObject(arg0), getObject(arg1));
683
+ return addHeapObject(ret);
684
+ }
685
+ export function __wbg_performance_3fcf6e32a7e1ed0a(arg0) {
686
+ const ret = getObject(arg0).performance;
687
+ return addHeapObject(ret);
688
+ }
689
+ export function __wbg_process_44c7a14e11e9f69e(arg0) {
690
+ const ret = getObject(arg0).process;
691
+ return addHeapObject(ret);
692
+ }
693
+ export function __wbg_prototypesetcall_3249fc62a0fafa30(arg0, arg1, arg2) {
694
+ Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
695
+ }
696
+ export function __wbg_push_a6822215aa43e71c(arg0, arg1) {
697
+ const ret = getObject(arg0).push(getObject(arg1));
698
+ return ret;
699
+ }
700
+ export function __wbg_queueMicrotask_35c611f4a14830b2(arg0) {
701
+ queueMicrotask(getObject(arg0));
702
+ }
703
+ export function __wbg_queueMicrotask_404ed0a58e0b63cc(arg0) {
704
+ const ret = undefined;
705
+ return addHeapObject(ret);
706
+ }
707
+ export function __wbg_randomFillSync_6c25eac9869eb53c() { return handleError(function (arg0, arg1) {
708
+ getObject(arg0).randomFillSync(takeObject(arg1));
709
+ }, arguments); }
710
+ export function __wbg_read_282e152a24fd0856(arg0) {
711
+ const ret = getObject(arg0).read();
712
+ return addHeapObject(ret);
713
+ }
714
+ export function __wbg_releaseLock_cd76770b7f82a961(arg0) {
715
+ getObject(arg0).releaseLock();
716
+ }
717
+ export function __wbg_require_b4edbdcf3e2a1ef0() { return handleError(function () {
718
+ const ret = module.require;
719
+ return addHeapObject(ret);
720
+ }, arguments); }
721
+ export function __wbg_resolve_25a7e548d5881dca(arg0) {
722
+ const ret = Promise.resolve(getObject(arg0));
723
+ return addHeapObject(ret);
724
+ }
725
+ export function __wbg_respond_33b6f330b6d299fd() { return handleError(function (arg0, arg1) {
726
+ getObject(arg0).respond(arg1 >>> 0);
727
+ }, arguments); }
728
+ export function __wbg_setTimeout_3a808dd861dd3c12(arg0, arg1) {
729
+ const ret = setTimeout(getObject(arg0), arg1);
730
+ return addHeapObject(ret);
731
+ }
732
+ export function __wbg_setTimeout_735435c9cbfa5e6d(arg0, arg1) {
733
+ const ret = setTimeout(getObject(arg0), arg1);
734
+ return ret;
735
+ }
736
+ export function __wbg_set_29c99a8aac1c01e5(arg0, arg1, arg2) {
737
+ getObject(arg0).set(getArrayU8FromWasm0(arg1, arg2));
738
+ }
739
+ export function __wbg_set_6e30c9374c26414c() { return handleError(function (arg0, arg1, arg2) {
740
+ const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
741
+ return ret;
742
+ }, arguments); }
743
+ export function __wbg_set_body_36614c7e61546809(arg0, arg1) {
744
+ getObject(arg0).body = getObject(arg1);
745
+ }
746
+ export function __wbg_set_cache_488ea16c11cbf20d(arg0, arg1) {
747
+ getObject(arg0).cache = __wbindgen_enum_RequestCache[arg1];
748
+ }
749
+ export function __wbg_set_credentials_fa9c491a27c4bdf0(arg0, arg1) {
750
+ getObject(arg0).credentials = __wbindgen_enum_RequestCredentials[arg1];
751
+ }
752
+ export function __wbg_set_headers_7c1e39ece7826bec(arg0, arg1) {
753
+ getObject(arg0).headers = getObject(arg1);
754
+ }
755
+ export function __wbg_set_method_7a6811dec7a4feff(arg0, arg1, arg2) {
756
+ getObject(arg0).method = getStringFromWasm0(arg1, arg2);
757
+ }
758
+ export function __wbg_set_mode_c90e3667002857d4(arg0, arg1) {
759
+ getObject(arg0).mode = __wbindgen_enum_RequestMode[arg1];
760
+ }
761
+ export function __wbg_set_signal_d9da62b3f215c821(arg0, arg1) {
762
+ getObject(arg0).signal = getObject(arg1);
763
+ }
764
+ export function __wbg_shell_a8bf1e7b0ef07171(arg0) {
765
+ const ret = getObject(arg0).shell;
766
+ return addHeapObject(ret);
767
+ }
768
+ export function __wbg_signal_e03304a84df9ed09(arg0) {
769
+ const ret = getObject(arg0).signal;
770
+ return addHeapObject(ret);
771
+ }
772
+ export function __wbg_static_accessor_GLOBAL_9d53f2689e622ca1() {
773
+ const ret = typeof global === 'undefined' ? null : global;
774
+ return isLikeNone(ret) ? 0 : addHeapObject(ret);
775
+ }
776
+ export function __wbg_static_accessor_GLOBAL_THIS_a1a35cec07001a8a() {
777
+ const ret = typeof globalThis === 'undefined' ? null : globalThis;
778
+ return isLikeNone(ret) ? 0 : addHeapObject(ret);
779
+ }
780
+ export function __wbg_static_accessor_SELF_4c59f6c7ea29a144() {
781
+ const ret = typeof self === 'undefined' ? null : self;
782
+ return isLikeNone(ret) ? 0 : addHeapObject(ret);
783
+ }
784
+ export function __wbg_static_accessor_WINDOW_e70ae9f2eb052253() {
785
+ const ret = typeof window === 'undefined' ? null : window;
786
+ return isLikeNone(ret) ? 0 : addHeapObject(ret);
787
+ }
788
+ export function __wbg_status_00549d55b78d949e(arg0) {
789
+ const ret = getObject(arg0).status;
790
+ return ret;
791
+ }
792
+ export function __wbg_stringify_8286df6dcc591521() { return handleError(function (arg0) {
793
+ const ret = JSON.stringify(getObject(arg0));
794
+ return addHeapObject(ret);
795
+ }, arguments); }
796
+ export function __wbg_subarray_4aa221f6a4f5ab22(arg0, arg1, arg2) {
797
+ const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
798
+ return addHeapObject(ret);
799
+ }
800
+ export function __wbg_text_a17febec76d36501() { return handleError(function (arg0) {
801
+ const ret = getObject(arg0).text();
802
+ return addHeapObject(ret);
803
+ }, arguments); }
804
+ export function __wbg_then_18f476d590e58992(arg0, arg1, arg2) {
805
+ const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
806
+ return addHeapObject(ret);
807
+ }
808
+ export function __wbg_then_ac7b025999b52837(arg0, arg1) {
809
+ const ret = getObject(arg0).then(getObject(arg1));
810
+ return addHeapObject(ret);
811
+ }
812
+ export function __wbg_toString_94ab8ae06f7372cf() { return handleError(function (arg0, arg1) {
813
+ const ret = getObject(arg0).toString(arg1);
814
+ return addHeapObject(ret);
815
+ }, arguments); }
816
+ export function __wbg_url_6808f1c468f2d0cd(arg0, arg1) {
817
+ const ret = getObject(arg1).url;
818
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
819
+ const len1 = WASM_VECTOR_LEN;
820
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
821
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
822
+ }
823
+ export function __wbg_value_f3625092ee4b37f4(arg0) {
824
+ const ret = getObject(arg0).value;
825
+ return addHeapObject(ret);
826
+ }
827
+ export function __wbg_versions_276b2795b1c6a219(arg0) {
828
+ const ret = getObject(arg0).versions;
829
+ return addHeapObject(ret);
830
+ }
831
+ export function __wbg_view_d523e3b92648b62c(arg0) {
832
+ const ret = getObject(arg0).view;
833
+ return isLikeNone(ret) ? 0 : addHeapObject(ret);
834
+ }
835
+ export function __wbindgen_cast_0000000000000001(arg0, arg1) {
836
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 231, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
837
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_1351);
838
+ return addHeapObject(ret);
839
+ }
840
+ export function __wbindgen_cast_0000000000000002(arg0, arg1) {
841
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 6592, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
842
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_37361);
843
+ return addHeapObject(ret);
844
+ }
845
+ export function __wbindgen_cast_0000000000000003(arg0, arg1) {
846
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 193, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
847
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_1130);
848
+ return addHeapObject(ret);
849
+ }
850
+ export function __wbindgen_cast_0000000000000004(arg0) {
851
+ // Cast intrinsic for `F64 -> Externref`.
852
+ const ret = arg0;
853
+ return addHeapObject(ret);
854
+ }
855
+ export function __wbindgen_cast_0000000000000005(arg0, arg1) {
856
+ // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
857
+ const ret = getArrayU8FromWasm0(arg0, arg1);
858
+ return addHeapObject(ret);
859
+ }
860
+ export function __wbindgen_cast_0000000000000006(arg0, arg1) {
861
+ // Cast intrinsic for `Ref(String) -> Externref`.
862
+ const ret = getStringFromWasm0(arg0, arg1);
863
+ return addHeapObject(ret);
864
+ }
865
+ export function __wbindgen_cast_0000000000000007(arg0) {
866
+ // Cast intrinsic for `U64 -> Externref`.
867
+ const ret = BigInt.asUintN(64, arg0);
868
+ return addHeapObject(ret);
869
+ }
870
+ export function __wbindgen_cast_0000000000000008(arg0, arg1) {
871
+ var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
872
+ wasm.__wbindgen_export5(arg0, arg1 * 1, 1);
873
+ // Cast intrinsic for `Vector(U8) -> Externref`.
874
+ const ret = v0;
875
+ return addHeapObject(ret);
876
+ }
877
+ export function __wbindgen_object_clone_ref(arg0) {
878
+ const ret = getObject(arg0);
879
+ return addHeapObject(ret);
880
+ }
881
+ export function __wbindgen_object_drop_ref(arg0) {
882
+ takeObject(arg0);
883
+ }
884
+ function __wasm_bindgen_func_elem_1130(arg0, arg1) {
885
+ wasm.__wasm_bindgen_func_elem_1130(arg0, arg1);
886
+ }
887
+
888
+ function __wasm_bindgen_func_elem_1351(arg0, arg1, arg2) {
889
+ wasm.__wasm_bindgen_func_elem_1351(arg0, arg1, addHeapObject(arg2));
890
+ }
891
+
892
+ function __wasm_bindgen_func_elem_37361(arg0, arg1, arg2) {
893
+ try {
894
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
895
+ wasm.__wasm_bindgen_func_elem_37361(retptr, arg0, arg1, addHeapObject(arg2));
896
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
897
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
898
+ if (r1) {
899
+ throw takeObject(r0);
900
+ }
901
+ } finally {
902
+ wasm.__wbindgen_add_to_stack_pointer(16);
903
+ }
904
+ }
905
+
906
+ function __wasm_bindgen_func_elem_37369(arg0, arg1, arg2, arg3) {
907
+ wasm.__wasm_bindgen_func_elem_37369(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
908
+ }
909
+
910
+
911
+ const __wbindgen_enum_ReadableStreamType = ["bytes"];
912
+
913
+
914
+ const __wbindgen_enum_RequestCache = ["default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached"];
915
+
916
+
917
+ const __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
918
+
919
+
920
+ const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"];
921
+ const IntoUnderlyingByteSourceFinalization = (typeof FinalizationRegistry === 'undefined')
922
+ ? { register: () => {}, unregister: () => {} }
923
+ : new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingbytesource_free(ptr, 1));
924
+ const IntoUnderlyingSinkFinalization = (typeof FinalizationRegistry === 'undefined')
925
+ ? { register: () => {}, unregister: () => {} }
926
+ : new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsink_free(ptr, 1));
927
+ const IntoUnderlyingSourceFinalization = (typeof FinalizationRegistry === 'undefined')
928
+ ? { register: () => {}, unregister: () => {} }
929
+ : new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsource_free(ptr, 1));
930
+
931
+ function addHeapObject(obj) {
932
+ if (heap_next === heap.length) heap.push(heap.length + 1);
933
+ const idx = heap_next;
934
+ heap_next = heap[idx];
935
+
936
+ heap[idx] = obj;
937
+ return idx;
938
+ }
939
+
940
+ function addBorrowedObject(obj) {
941
+ if (stack_pointer == 1) throw new Error('out of js stack');
942
+ heap[--stack_pointer] = obj;
943
+ return stack_pointer;
944
+ }
945
+
946
+ const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
947
+ ? { register: () => {}, unregister: () => {} }
948
+ : new FinalizationRegistry(state => wasm.__wbindgen_export4(state.a, state.b));
949
+
950
+ function debugString(val) {
951
+ // primitive types
952
+ const type = typeof val;
953
+ if (type == 'number' || type == 'boolean' || val == null) {
954
+ return `${val}`;
955
+ }
956
+ if (type == 'string') {
957
+ return `"${val}"`;
958
+ }
959
+ if (type == 'symbol') {
960
+ const description = val.description;
961
+ if (description == null) {
962
+ return 'Symbol';
963
+ } else {
964
+ return `Symbol(${description})`;
965
+ }
966
+ }
967
+ if (type == 'function') {
968
+ const name = val.name;
969
+ if (typeof name == 'string' && name.length > 0) {
970
+ return `Function(${name})`;
971
+ } else {
972
+ return 'Function';
973
+ }
974
+ }
975
+ // objects
976
+ if (Array.isArray(val)) {
977
+ const length = val.length;
978
+ let debug = '[';
979
+ if (length > 0) {
980
+ debug += debugString(val[0]);
981
+ }
982
+ for(let i = 1; i < length; i++) {
983
+ debug += ', ' + debugString(val[i]);
984
+ }
985
+ debug += ']';
986
+ return debug;
987
+ }
988
+ // Test for built-in
989
+ const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
990
+ let className;
991
+ if (builtInMatches && builtInMatches.length > 1) {
992
+ className = builtInMatches[1];
993
+ } else {
994
+ // Failed to match the standard '[object ClassName]'
995
+ return toString.call(val);
996
+ }
997
+ if (className == 'Object') {
998
+ // we're a user defined class or Object
999
+ // JSON.stringify avoids problems with cycles, and is generally much
1000
+ // easier than looping through ownProperties of `val`.
1001
+ try {
1002
+ return 'Object(' + JSON.stringify(val) + ')';
1003
+ } catch (_) {
1004
+ return 'Object';
1005
+ }
1006
+ }
1007
+ // errors
1008
+ if (val instanceof Error) {
1009
+ return `${val.name}: ${val.message}\n${val.stack}`;
1010
+ }
1011
+ // TODO we could test for more things here, like `Set`s and `Map`s.
1012
+ return className;
1013
+ }
1014
+
1015
+ function dropObject(idx) {
1016
+ if (idx < 1028) return;
1017
+ heap[idx] = heap_next;
1018
+ heap_next = idx;
1019
+ }
1020
+
1021
+ function getArrayU8FromWasm0(ptr, len) {
1022
+ ptr = ptr >>> 0;
1023
+ return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
1024
+ }
1025
+
1026
+ let cachedDataViewMemory0 = null;
1027
+ function getDataViewMemory0() {
1028
+ if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
1029
+ cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
1030
+ }
1031
+ return cachedDataViewMemory0;
1032
+ }
1033
+
1034
+ function getStringFromWasm0(ptr, len) {
1035
+ return decodeText(ptr >>> 0, len);
1036
+ }
1037
+
1038
+ let cachedUint8ArrayMemory0 = null;
1039
+ function getUint8ArrayMemory0() {
1040
+ if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
1041
+ cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
1042
+ }
1043
+ return cachedUint8ArrayMemory0;
1044
+ }
1045
+
1046
+ function getObject(idx) { return heap[idx]; }
1047
+
1048
+ function handleError(f, args) {
1049
+ try {
1050
+ return f.apply(this, args);
1051
+ } catch (e) {
1052
+ wasm.__wbindgen_export(addHeapObject(e));
1053
+ }
1054
+ }
1055
+
1056
+ let heap = new Array(1024).fill(undefined);
1057
+ heap.push(undefined, null, true, false);
1058
+
1059
+ let heap_next = heap.length;
1060
+
1061
+ function isLikeNone(x) {
1062
+ return x === undefined || x === null;
1063
+ }
1064
+
1065
+ function makeMutClosure(arg0, arg1, f) {
1066
+ const state = { a: arg0, b: arg1, cnt: 1 };
1067
+ const real = (...args) => {
1068
+
1069
+ // First up with a closure we increment the internal reference
1070
+ // count. This ensures that the Rust closure environment won't
1071
+ // be deallocated while we're invoking it.
1072
+ state.cnt++;
1073
+ const a = state.a;
1074
+ state.a = 0;
1075
+ try {
1076
+ return f(a, state.b, ...args);
1077
+ } finally {
1078
+ state.a = a;
1079
+ real._wbg_cb_unref();
1080
+ }
1081
+ };
1082
+ real._wbg_cb_unref = () => {
1083
+ if (--state.cnt === 0) {
1084
+ wasm.__wbindgen_export4(state.a, state.b);
1085
+ state.a = 0;
1086
+ CLOSURE_DTORS.unregister(state);
1087
+ }
1088
+ };
1089
+ CLOSURE_DTORS.register(real, state, state);
1090
+ return real;
1091
+ }
1092
+
1093
+ function passArray8ToWasm0(arg, malloc) {
1094
+ const ptr = malloc(arg.length * 1, 1) >>> 0;
1095
+ getUint8ArrayMemory0().set(arg, ptr / 1);
1096
+ WASM_VECTOR_LEN = arg.length;
1097
+ return ptr;
1098
+ }
1099
+
1100
+ function passStringToWasm0(arg, malloc, realloc) {
1101
+ if (realloc === undefined) {
1102
+ const buf = cachedTextEncoder.encode(arg);
1103
+ const ptr = malloc(buf.length, 1) >>> 0;
1104
+ getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
1105
+ WASM_VECTOR_LEN = buf.length;
1106
+ return ptr;
1107
+ }
1108
+
1109
+ let len = arg.length;
1110
+ let ptr = malloc(len, 1) >>> 0;
1111
+
1112
+ const mem = getUint8ArrayMemory0();
1113
+
1114
+ let offset = 0;
1115
+
1116
+ for (; offset < len; offset++) {
1117
+ const code = arg.charCodeAt(offset);
1118
+ if (code > 0x7F) break;
1119
+ mem[ptr + offset] = code;
1120
+ }
1121
+ if (offset !== len) {
1122
+ if (offset !== 0) {
1123
+ arg = arg.slice(offset);
1124
+ }
1125
+ ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
1126
+ const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
1127
+ const ret = cachedTextEncoder.encodeInto(arg, view);
1128
+
1129
+ offset += ret.written;
1130
+ ptr = realloc(ptr, len, offset, 1) >>> 0;
1131
+ }
1132
+
1133
+ WASM_VECTOR_LEN = offset;
1134
+ return ptr;
1135
+ }
1136
+
1137
+ let stack_pointer = 1024;
1138
+
1139
+ function takeObject(idx) {
1140
+ const ret = getObject(idx);
1141
+ dropObject(idx);
1142
+ return ret;
1143
+ }
1144
+
1145
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
1146
+ cachedTextDecoder.decode();
1147
+ const MAX_SAFARI_DECODE_BYTES = 2146435072;
1148
+ let numBytesDecoded = 0;
1149
+ function decodeText(ptr, len) {
1150
+ numBytesDecoded += len;
1151
+ if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
1152
+ cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
1153
+ cachedTextDecoder.decode();
1154
+ numBytesDecoded = len;
1155
+ }
1156
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
1157
+ }
1158
+
1159
+ const cachedTextEncoder = new TextEncoder();
1160
+
1161
+ if (!('encodeInto' in cachedTextEncoder)) {
1162
+ cachedTextEncoder.encodeInto = function (arg, view) {
1163
+ const buf = cachedTextEncoder.encode(arg);
1164
+ view.set(buf);
1165
+ return {
1166
+ read: arg.length,
1167
+ written: buf.length
1168
+ };
1169
+ };
1170
+ }
1171
+
1172
+ let WASM_VECTOR_LEN = 0;
1173
+
1174
+
1175
+ let wasm;
1176
+ export function __wbg_set_wasm(val) {
1177
+ wasm = val;
1178
+ }