@sandvichxyz/teamtype-wasm 0.9.2-dev
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/package.json +23 -0
- package/teamtype_wasm.d.ts +217 -0
- package/teamtype_wasm.js +1319 -0
- package/teamtype_wasm_bg.wasm +0 -0
package/teamtype_wasm.js
ADDED
|
@@ -0,0 +1,1319 @@
|
|
|
1
|
+
/* @ts-self-types="./teamtype_wasm.d.ts" */
|
|
2
|
+
|
|
3
|
+
export class IntoUnderlyingByteSource {
|
|
4
|
+
__destroy_into_raw() {
|
|
5
|
+
const ptr = this.__wbg_ptr;
|
|
6
|
+
this.__wbg_ptr = 0;
|
|
7
|
+
IntoUnderlyingByteSourceFinalization.unregister(this);
|
|
8
|
+
return ptr;
|
|
9
|
+
}
|
|
10
|
+
free() {
|
|
11
|
+
const ptr = this.__destroy_into_raw();
|
|
12
|
+
wasm.__wbg_intounderlyingbytesource_free(ptr, 0);
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @returns {number}
|
|
16
|
+
*/
|
|
17
|
+
get autoAllocateChunkSize() {
|
|
18
|
+
const ret = wasm.intounderlyingbytesource_autoAllocateChunkSize(this.__wbg_ptr);
|
|
19
|
+
return ret >>> 0;
|
|
20
|
+
}
|
|
21
|
+
cancel() {
|
|
22
|
+
const ptr = this.__destroy_into_raw();
|
|
23
|
+
wasm.intounderlyingbytesource_cancel(ptr);
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* @param {ReadableByteStreamController} controller
|
|
27
|
+
* @returns {Promise<any>}
|
|
28
|
+
*/
|
|
29
|
+
pull(controller) {
|
|
30
|
+
const ret = wasm.intounderlyingbytesource_pull(this.__wbg_ptr, controller);
|
|
31
|
+
return ret;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* @param {ReadableByteStreamController} controller
|
|
35
|
+
*/
|
|
36
|
+
start(controller) {
|
|
37
|
+
wasm.intounderlyingbytesource_start(this.__wbg_ptr, controller);
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* @returns {ReadableStreamType}
|
|
41
|
+
*/
|
|
42
|
+
get type() {
|
|
43
|
+
const ret = wasm.intounderlyingbytesource_type(this.__wbg_ptr);
|
|
44
|
+
return __wbindgen_enum_ReadableStreamType[ret];
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
if (Symbol.dispose) IntoUnderlyingByteSource.prototype[Symbol.dispose] = IntoUnderlyingByteSource.prototype.free;
|
|
48
|
+
|
|
49
|
+
export class IntoUnderlyingSink {
|
|
50
|
+
__destroy_into_raw() {
|
|
51
|
+
const ptr = this.__wbg_ptr;
|
|
52
|
+
this.__wbg_ptr = 0;
|
|
53
|
+
IntoUnderlyingSinkFinalization.unregister(this);
|
|
54
|
+
return ptr;
|
|
55
|
+
}
|
|
56
|
+
free() {
|
|
57
|
+
const ptr = this.__destroy_into_raw();
|
|
58
|
+
wasm.__wbg_intounderlyingsink_free(ptr, 0);
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* @param {any} reason
|
|
62
|
+
* @returns {Promise<any>}
|
|
63
|
+
*/
|
|
64
|
+
abort(reason) {
|
|
65
|
+
const ptr = this.__destroy_into_raw();
|
|
66
|
+
const ret = wasm.intounderlyingsink_abort(ptr, reason);
|
|
67
|
+
return ret;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* @returns {Promise<any>}
|
|
71
|
+
*/
|
|
72
|
+
close() {
|
|
73
|
+
const ptr = this.__destroy_into_raw();
|
|
74
|
+
const ret = wasm.intounderlyingsink_close(ptr);
|
|
75
|
+
return ret;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* @param {any} chunk
|
|
79
|
+
* @returns {Promise<any>}
|
|
80
|
+
*/
|
|
81
|
+
write(chunk) {
|
|
82
|
+
const ret = wasm.intounderlyingsink_write(this.__wbg_ptr, chunk);
|
|
83
|
+
return ret;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
if (Symbol.dispose) IntoUnderlyingSink.prototype[Symbol.dispose] = IntoUnderlyingSink.prototype.free;
|
|
87
|
+
|
|
88
|
+
export class IntoUnderlyingSource {
|
|
89
|
+
__destroy_into_raw() {
|
|
90
|
+
const ptr = this.__wbg_ptr;
|
|
91
|
+
this.__wbg_ptr = 0;
|
|
92
|
+
IntoUnderlyingSourceFinalization.unregister(this);
|
|
93
|
+
return ptr;
|
|
94
|
+
}
|
|
95
|
+
free() {
|
|
96
|
+
const ptr = this.__destroy_into_raw();
|
|
97
|
+
wasm.__wbg_intounderlyingsource_free(ptr, 0);
|
|
98
|
+
}
|
|
99
|
+
cancel() {
|
|
100
|
+
const ptr = this.__destroy_into_raw();
|
|
101
|
+
wasm.intounderlyingsource_cancel(ptr);
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* @param {ReadableStreamDefaultController} controller
|
|
105
|
+
* @returns {Promise<any>}
|
|
106
|
+
*/
|
|
107
|
+
pull(controller) {
|
|
108
|
+
const ret = wasm.intounderlyingsource_pull(this.__wbg_ptr, controller);
|
|
109
|
+
return ret;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
if (Symbol.dispose) IntoUnderlyingSource.prototype[Symbol.dispose] = IntoUnderlyingSource.prototype.free;
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Browser-side Teamtype peer. Owns the command channels and spawns the three
|
|
116
|
+
* services (node, connection, document) on construction.
|
|
117
|
+
*/
|
|
118
|
+
export class TeamtypeClient {
|
|
119
|
+
__destroy_into_raw() {
|
|
120
|
+
const ptr = this.__wbg_ptr;
|
|
121
|
+
this.__wbg_ptr = 0;
|
|
122
|
+
TeamtypeClientFinalization.unregister(this);
|
|
123
|
+
return ptr;
|
|
124
|
+
}
|
|
125
|
+
free() {
|
|
126
|
+
const ptr = this.__destroy_into_raw();
|
|
127
|
+
wasm.__wbg_teamtypeclient_free(ptr, 0);
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Apply an edit to a file.
|
|
131
|
+
* @param {string} file_name
|
|
132
|
+
* @param {any} delta
|
|
133
|
+
*/
|
|
134
|
+
applyEdit(file_name, delta) {
|
|
135
|
+
const ptr0 = passStringToWasm0(file_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
136
|
+
const len0 = WASM_VECTOR_LEN;
|
|
137
|
+
wasm.teamtypeclient_applyEdit(this.__wbg_ptr, ptr0, len0, delta);
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Connect to a peer using a wormhole join code.
|
|
141
|
+
* @param {string} join_code
|
|
142
|
+
*/
|
|
143
|
+
connectByJoinCode(join_code) {
|
|
144
|
+
const ptr0 = passStringToWasm0(join_code, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
145
|
+
const len0 = WASM_VECTOR_LEN;
|
|
146
|
+
wasm.teamtypeclient_connectByJoinCode(this.__wbg_ptr, ptr0, len0);
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Bind an iroh endpoint and start the service tasks.
|
|
150
|
+
*/
|
|
151
|
+
constructor() {
|
|
152
|
+
const ret = wasm.teamtypeclient_new();
|
|
153
|
+
this.__wbg_ptr = ret;
|
|
154
|
+
TeamtypeClientFinalization.register(this, this.__wbg_ptr, this);
|
|
155
|
+
return this;
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* Gets our own node info (`{ nodeId, passphrase }`), or `null` until ready.
|
|
159
|
+
* @returns {any}
|
|
160
|
+
*/
|
|
161
|
+
nodeInfo() {
|
|
162
|
+
const ret = wasm.teamtypeclient_nodeInfo(this.__wbg_ptr);
|
|
163
|
+
return ret;
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* Register `disconnect(reason: DisconnectReason)`.
|
|
167
|
+
* @param {Function} callback
|
|
168
|
+
*/
|
|
169
|
+
onDisconnect(callback) {
|
|
170
|
+
wasm.teamtypeclient_onDisconnect(this.__wbg_ptr, callback);
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* Register `onEdit(fileName: string, delta)`.
|
|
174
|
+
* @param {Function} callback
|
|
175
|
+
*/
|
|
176
|
+
onEdit(callback) {
|
|
177
|
+
wasm.teamtypeclient_onEdit(this.__wbg_ptr, callback);
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* Register `onEphemeral(message: EphemeralMessage)`.
|
|
181
|
+
* @param {Function} callback
|
|
182
|
+
*/
|
|
183
|
+
onEphemeral(callback) {
|
|
184
|
+
wasm.teamtypeclient_onEphemeral(this.__wbg_ptr, callback);
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* Register `onEphemeralRemoved(cursorId: string)`.
|
|
188
|
+
* @param {Function} callback
|
|
189
|
+
*/
|
|
190
|
+
onEphemeralRemoved(callback) {
|
|
191
|
+
wasm.teamtypeclient_onEphemeralRemoved(this.__wbg_ptr, callback);
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* Register `onFileContent(fileName: string, content: string)`.
|
|
195
|
+
* @param {Function} callback
|
|
196
|
+
*/
|
|
197
|
+
onFileContent(callback) {
|
|
198
|
+
wasm.teamtypeclient_onFileContent(this.__wbg_ptr, callback);
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* Register `onFiles(files: string[])`.
|
|
202
|
+
* @param {Function} callback
|
|
203
|
+
*/
|
|
204
|
+
onFiles(callback) {
|
|
205
|
+
wasm.teamtypeclient_onFiles(this.__wbg_ptr, callback);
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* Register `onLog(message: string)`.
|
|
209
|
+
* @param {Function} callback
|
|
210
|
+
*/
|
|
211
|
+
onLog(callback) {
|
|
212
|
+
wasm.teamtypeclient_onLog(this.__wbg_ptr, callback);
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* Register `onPeers(peers: string[])`.
|
|
216
|
+
* @param {Function} callback
|
|
217
|
+
*/
|
|
218
|
+
onPeers(callback) {
|
|
219
|
+
wasm.teamtypeclient_onPeers(this.__wbg_ptr, callback);
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* Request the content of a file. The result will be returned asynchronously through
|
|
223
|
+
* `onFileContent` callback.
|
|
224
|
+
* @param {string} file_name
|
|
225
|
+
*/
|
|
226
|
+
selectFile(file_name) {
|
|
227
|
+
const ptr0 = passStringToWasm0(file_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
228
|
+
const len0 = WASM_VECTOR_LEN;
|
|
229
|
+
wasm.teamtypeclient_selectFile(this.__wbg_ptr, ptr0, len0);
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* Broadcast cursor.
|
|
233
|
+
* @param {string} file_name
|
|
234
|
+
* @param {any} ranges
|
|
235
|
+
*/
|
|
236
|
+
setCursor(file_name, ranges) {
|
|
237
|
+
const ptr0 = passStringToWasm0(file_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
238
|
+
const len0 = WASM_VECTOR_LEN;
|
|
239
|
+
wasm.teamtypeclient_setCursor(this.__wbg_ptr, ptr0, len0, ranges);
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* Set our display name.
|
|
243
|
+
* @param {string} name
|
|
244
|
+
*/
|
|
245
|
+
setName(name) {
|
|
246
|
+
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
247
|
+
const len0 = WASM_VECTOR_LEN;
|
|
248
|
+
wasm.teamtypeclient_setName(this.__wbg_ptr, ptr0, len0);
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
if (Symbol.dispose) TeamtypeClient.prototype[Symbol.dispose] = TeamtypeClient.prototype.free;
|
|
252
|
+
function __wbg_get_imports() {
|
|
253
|
+
const import0 = {
|
|
254
|
+
__proto__: null,
|
|
255
|
+
__wbg_Error_ef53bc310eb298a0: function(arg0, arg1) {
|
|
256
|
+
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
257
|
+
return ret;
|
|
258
|
+
},
|
|
259
|
+
__wbg_Number_6b506e6536831eaa: function(arg0) {
|
|
260
|
+
const ret = Number(arg0);
|
|
261
|
+
return ret;
|
|
262
|
+
},
|
|
263
|
+
__wbg_String_8564e559799eccda: function(arg0, arg1) {
|
|
264
|
+
const ret = String(arg1);
|
|
265
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
266
|
+
const len1 = WASM_VECTOR_LEN;
|
|
267
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
268
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
269
|
+
},
|
|
270
|
+
__wbg___wbindgen_bigint_get_as_i64_38130e98eecd467d: function(arg0, arg1) {
|
|
271
|
+
const v = arg1;
|
|
272
|
+
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
273
|
+
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
274
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
275
|
+
},
|
|
276
|
+
__wbg___wbindgen_boolean_get_1a45e2c38d4d41b9: function(arg0) {
|
|
277
|
+
const v = arg0;
|
|
278
|
+
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
279
|
+
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
280
|
+
},
|
|
281
|
+
__wbg___wbindgen_debug_string_0accd80f45e5faa2: function(arg0, arg1) {
|
|
282
|
+
const ret = debugString(arg1);
|
|
283
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
284
|
+
const len1 = WASM_VECTOR_LEN;
|
|
285
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
286
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
287
|
+
},
|
|
288
|
+
__wbg___wbindgen_in_70a403a56e771704: function(arg0, arg1) {
|
|
289
|
+
const ret = arg0 in arg1;
|
|
290
|
+
return ret;
|
|
291
|
+
},
|
|
292
|
+
__wbg___wbindgen_is_bigint_6ffd6468a9bc44b9: function(arg0) {
|
|
293
|
+
const ret = typeof(arg0) === 'bigint';
|
|
294
|
+
return ret;
|
|
295
|
+
},
|
|
296
|
+
__wbg___wbindgen_is_function_754e9f305ff6029e: function(arg0) {
|
|
297
|
+
const ret = typeof(arg0) === 'function';
|
|
298
|
+
return ret;
|
|
299
|
+
},
|
|
300
|
+
__wbg___wbindgen_is_object_56732c2bc353f41d: function(arg0) {
|
|
301
|
+
const val = arg0;
|
|
302
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
303
|
+
return ret;
|
|
304
|
+
},
|
|
305
|
+
__wbg___wbindgen_is_string_c236cabd84a4d769: function(arg0) {
|
|
306
|
+
const ret = typeof(arg0) === 'string';
|
|
307
|
+
return ret;
|
|
308
|
+
},
|
|
309
|
+
__wbg___wbindgen_is_undefined_67b456be8673d3d7: function(arg0) {
|
|
310
|
+
const ret = arg0 === undefined;
|
|
311
|
+
return ret;
|
|
312
|
+
},
|
|
313
|
+
__wbg___wbindgen_jsval_eq_1068e624fa87f6ab: function(arg0, arg1) {
|
|
314
|
+
const ret = arg0 === arg1;
|
|
315
|
+
return ret;
|
|
316
|
+
},
|
|
317
|
+
__wbg___wbindgen_jsval_loose_eq_2c56564c75129511: function(arg0, arg1) {
|
|
318
|
+
const ret = arg0 == arg1;
|
|
319
|
+
return ret;
|
|
320
|
+
},
|
|
321
|
+
__wbg___wbindgen_number_get_9bb1761122181af2: function(arg0, arg1) {
|
|
322
|
+
const obj = arg1;
|
|
323
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
324
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
325
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
326
|
+
},
|
|
327
|
+
__wbg___wbindgen_string_get_72bdf95d3ae505b1: function(arg0, arg1) {
|
|
328
|
+
const obj = arg1;
|
|
329
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
330
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
331
|
+
var len1 = WASM_VECTOR_LEN;
|
|
332
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
333
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
334
|
+
},
|
|
335
|
+
__wbg___wbindgen_throw_1506f2235d1bdba0: function(arg0, arg1) {
|
|
336
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
337
|
+
},
|
|
338
|
+
__wbg__wbg_cb_unref_61db23ac97f16c31: function(arg0) {
|
|
339
|
+
arg0._wbg_cb_unref();
|
|
340
|
+
},
|
|
341
|
+
__wbg_abort_2ec46222bf378517: function(arg0) {
|
|
342
|
+
arg0.abort();
|
|
343
|
+
},
|
|
344
|
+
__wbg_abort_b29d719932441c95: function(arg0, arg1) {
|
|
345
|
+
arg0.abort(arg1);
|
|
346
|
+
},
|
|
347
|
+
__wbg_addEventListener_b8b20954e04ea19f: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
348
|
+
arg0.addEventListener(getStringFromWasm0(arg1, arg2), arg3);
|
|
349
|
+
}, arguments); },
|
|
350
|
+
__wbg_append_e1746995edcb0170: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
351
|
+
arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
352
|
+
}, arguments); },
|
|
353
|
+
__wbg_arrayBuffer_05927079aabe6d46: function() { return handleError(function (arg0) {
|
|
354
|
+
const ret = arg0.arrayBuffer();
|
|
355
|
+
return ret;
|
|
356
|
+
}, arguments); },
|
|
357
|
+
__wbg_body_61a0827da5b6d2bc: function(arg0) {
|
|
358
|
+
const ret = arg0.body;
|
|
359
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
360
|
+
},
|
|
361
|
+
__wbg_buffer_d370c8cae5692933: function(arg0) {
|
|
362
|
+
const ret = arg0.buffer;
|
|
363
|
+
return ret;
|
|
364
|
+
},
|
|
365
|
+
__wbg_byobRequest_2c89fb4ab478fa09: function(arg0) {
|
|
366
|
+
const ret = arg0.byobRequest;
|
|
367
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
368
|
+
},
|
|
369
|
+
__wbg_byteLength_2c6dc3b4b85d3547: function(arg0) {
|
|
370
|
+
const ret = arg0.byteLength;
|
|
371
|
+
return ret;
|
|
372
|
+
},
|
|
373
|
+
__wbg_byteOffset_349aa9bf0a183eca: function(arg0) {
|
|
374
|
+
const ret = arg0.byteOffset;
|
|
375
|
+
return ret;
|
|
376
|
+
},
|
|
377
|
+
__wbg_call_40e4174f169eaca7: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
378
|
+
const ret = arg0.call(arg1, arg2, arg3);
|
|
379
|
+
return ret;
|
|
380
|
+
}, arguments); },
|
|
381
|
+
__wbg_call_8a89609d89f6608a: function() { return handleError(function (arg0, arg1) {
|
|
382
|
+
const ret = arg0.call(arg1);
|
|
383
|
+
return ret;
|
|
384
|
+
}, arguments); },
|
|
385
|
+
__wbg_call_9c758de292015997: function() { return handleError(function (arg0, arg1, arg2) {
|
|
386
|
+
const ret = arg0.call(arg1, arg2);
|
|
387
|
+
return ret;
|
|
388
|
+
}, arguments); },
|
|
389
|
+
__wbg_cancel_3dedc1c2245a59d4: function(arg0) {
|
|
390
|
+
const ret = arg0.cancel();
|
|
391
|
+
return ret;
|
|
392
|
+
},
|
|
393
|
+
__wbg_catch_17ae9c6dfb88ad8a: function(arg0, arg1) {
|
|
394
|
+
const ret = arg0.catch(arg1);
|
|
395
|
+
return ret;
|
|
396
|
+
},
|
|
397
|
+
__wbg_clearTimeout_3437408b3800a087: function() { return handleError(function (arg0, arg1) {
|
|
398
|
+
arg0.clearTimeout(arg1);
|
|
399
|
+
}, arguments); },
|
|
400
|
+
__wbg_clearTimeout_6b8d9a38b9263d65: function(arg0) {
|
|
401
|
+
const ret = clearTimeout(arg0);
|
|
402
|
+
return ret;
|
|
403
|
+
},
|
|
404
|
+
__wbg_close_4859304bbf0f8208: function() { return handleError(function (arg0) {
|
|
405
|
+
arg0.close();
|
|
406
|
+
}, arguments); },
|
|
407
|
+
__wbg_close_6f12196fe155e8d2: function() { return handleError(function (arg0) {
|
|
408
|
+
arg0.close();
|
|
409
|
+
}, arguments); },
|
|
410
|
+
__wbg_close_9acc00cbca310439: function() { return handleError(function (arg0) {
|
|
411
|
+
arg0.close();
|
|
412
|
+
}, arguments); },
|
|
413
|
+
__wbg_code_27a1f220ebdc7c36: function(arg0) {
|
|
414
|
+
const ret = arg0.code;
|
|
415
|
+
return ret;
|
|
416
|
+
},
|
|
417
|
+
__wbg_code_dcc2ccc631d1fc5c: function(arg0) {
|
|
418
|
+
const ret = arg0.code;
|
|
419
|
+
return ret;
|
|
420
|
+
},
|
|
421
|
+
__wbg_crypto_38df2bab126b63dc: function(arg0) {
|
|
422
|
+
const ret = arg0.crypto;
|
|
423
|
+
return ret;
|
|
424
|
+
},
|
|
425
|
+
__wbg_data_bd354b70c783c66e: function(arg0) {
|
|
426
|
+
const ret = arg0.data;
|
|
427
|
+
return ret;
|
|
428
|
+
},
|
|
429
|
+
__wbg_done_60cf307fcc680536: function(arg0) {
|
|
430
|
+
const ret = arg0.done;
|
|
431
|
+
return ret;
|
|
432
|
+
},
|
|
433
|
+
__wbg_enqueue_09035479e2081625: function() { return handleError(function (arg0, arg1) {
|
|
434
|
+
arg0.enqueue(arg1);
|
|
435
|
+
}, arguments); },
|
|
436
|
+
__wbg_entries_04b37a02507f1713: function(arg0) {
|
|
437
|
+
const ret = Object.entries(arg0);
|
|
438
|
+
return ret;
|
|
439
|
+
},
|
|
440
|
+
__wbg_fetch_344c8d3849002659: function(arg0, arg1) {
|
|
441
|
+
const ret = arg0.fetch(arg1);
|
|
442
|
+
return ret;
|
|
443
|
+
},
|
|
444
|
+
__wbg_fetch_9dad4fe911207b37: function(arg0) {
|
|
445
|
+
const ret = fetch(arg0);
|
|
446
|
+
return ret;
|
|
447
|
+
},
|
|
448
|
+
__wbg_getRandomValues_3f44b700395062e5: function() { return handleError(function (arg0, arg1) {
|
|
449
|
+
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
450
|
+
}, arguments); },
|
|
451
|
+
__wbg_getRandomValues_c44a50d8cfdaebeb: function() { return handleError(function (arg0, arg1) {
|
|
452
|
+
arg0.getRandomValues(arg1);
|
|
453
|
+
}, arguments); },
|
|
454
|
+
__wbg_getReader_b4b1868fbca77dbe: function() { return handleError(function (arg0) {
|
|
455
|
+
const ret = arg0.getReader();
|
|
456
|
+
return ret;
|
|
457
|
+
}, arguments); },
|
|
458
|
+
__wbg_getTime_00b3f7db575e4ef5: function(arg0) {
|
|
459
|
+
const ret = arg0.getTime();
|
|
460
|
+
return ret;
|
|
461
|
+
},
|
|
462
|
+
__wbg_get_1f8f054ddbaa7db2: function() { return handleError(function (arg0, arg1) {
|
|
463
|
+
const ret = Reflect.get(arg0, arg1);
|
|
464
|
+
return ret;
|
|
465
|
+
}, arguments); },
|
|
466
|
+
__wbg_get_2b48c7d0d006a781: function(arg0, arg1) {
|
|
467
|
+
const ret = arg0[arg1 >>> 0];
|
|
468
|
+
return ret;
|
|
469
|
+
},
|
|
470
|
+
__wbg_get_de6a0f7d4d18a304: function() { return handleError(function (arg0, arg1) {
|
|
471
|
+
const ret = Reflect.get(arg0, arg1);
|
|
472
|
+
return ret;
|
|
473
|
+
}, arguments); },
|
|
474
|
+
__wbg_get_done_ea9eb315d4ec1e81: function(arg0) {
|
|
475
|
+
const ret = arg0.done;
|
|
476
|
+
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
477
|
+
},
|
|
478
|
+
__wbg_get_unchecked_33f6e5c9e2f2d6b2: function(arg0, arg1) {
|
|
479
|
+
const ret = arg0[arg1 >>> 0];
|
|
480
|
+
return ret;
|
|
481
|
+
},
|
|
482
|
+
__wbg_get_value_c68fe2e1a76c69ca: function(arg0) {
|
|
483
|
+
const ret = arg0.value;
|
|
484
|
+
return ret;
|
|
485
|
+
},
|
|
486
|
+
__wbg_get_with_ref_key_6412cf3094599694: function(arg0, arg1) {
|
|
487
|
+
const ret = arg0[arg1];
|
|
488
|
+
return ret;
|
|
489
|
+
},
|
|
490
|
+
__wbg_has_73740b27f436fed3: function() { return handleError(function (arg0, arg1) {
|
|
491
|
+
const ret = Reflect.has(arg0, arg1);
|
|
492
|
+
return ret;
|
|
493
|
+
}, arguments); },
|
|
494
|
+
__wbg_headers_0feb63d2d374b44a: function(arg0) {
|
|
495
|
+
const ret = arg0.headers;
|
|
496
|
+
return ret;
|
|
497
|
+
},
|
|
498
|
+
__wbg_instanceof_ArrayBuffer_8f49811467741499: function(arg0) {
|
|
499
|
+
let result;
|
|
500
|
+
try {
|
|
501
|
+
result = arg0 instanceof ArrayBuffer;
|
|
502
|
+
} catch (_) {
|
|
503
|
+
result = false;
|
|
504
|
+
}
|
|
505
|
+
const ret = result;
|
|
506
|
+
return ret;
|
|
507
|
+
},
|
|
508
|
+
__wbg_instanceof_Blob_f6321ce92d2740fd: function(arg0) {
|
|
509
|
+
let result;
|
|
510
|
+
try {
|
|
511
|
+
result = arg0 instanceof Blob;
|
|
512
|
+
} catch (_) {
|
|
513
|
+
result = false;
|
|
514
|
+
}
|
|
515
|
+
const ret = result;
|
|
516
|
+
return ret;
|
|
517
|
+
},
|
|
518
|
+
__wbg_instanceof_Response_cb984bd66d7bd408: function(arg0) {
|
|
519
|
+
let result;
|
|
520
|
+
try {
|
|
521
|
+
result = arg0 instanceof Response;
|
|
522
|
+
} catch (_) {
|
|
523
|
+
result = false;
|
|
524
|
+
}
|
|
525
|
+
const ret = result;
|
|
526
|
+
return ret;
|
|
527
|
+
},
|
|
528
|
+
__wbg_instanceof_Uint8Array_86f30649f63ef9c2: function(arg0) {
|
|
529
|
+
let result;
|
|
530
|
+
try {
|
|
531
|
+
result = arg0 instanceof Uint8Array;
|
|
532
|
+
} catch (_) {
|
|
533
|
+
result = false;
|
|
534
|
+
}
|
|
535
|
+
const ret = result;
|
|
536
|
+
return ret;
|
|
537
|
+
},
|
|
538
|
+
__wbg_isArray_67c2c9c4313f4448: function(arg0) {
|
|
539
|
+
const ret = Array.isArray(arg0);
|
|
540
|
+
return ret;
|
|
541
|
+
},
|
|
542
|
+
__wbg_isSafeInteger_66acec27e09e99a7: function(arg0) {
|
|
543
|
+
const ret = Number.isSafeInteger(arg0);
|
|
544
|
+
return ret;
|
|
545
|
+
},
|
|
546
|
+
__wbg_iterator_8732428d309e270e: function() {
|
|
547
|
+
const ret = Symbol.iterator;
|
|
548
|
+
return ret;
|
|
549
|
+
},
|
|
550
|
+
__wbg_length_4a591ecaa01354d9: function(arg0) {
|
|
551
|
+
const ret = arg0.length;
|
|
552
|
+
return ret;
|
|
553
|
+
},
|
|
554
|
+
__wbg_length_66f1a4b2e9026940: function(arg0) {
|
|
555
|
+
const ret = arg0.length;
|
|
556
|
+
return ret;
|
|
557
|
+
},
|
|
558
|
+
__wbg_message_60b50f96f056eb26: function(arg0, arg1) {
|
|
559
|
+
const ret = arg1.message;
|
|
560
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
561
|
+
const len1 = WASM_VECTOR_LEN;
|
|
562
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
563
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
564
|
+
},
|
|
565
|
+
__wbg_msCrypto_bd5a034af96bcba6: function(arg0) {
|
|
566
|
+
const ret = arg0.msCrypto;
|
|
567
|
+
return ret;
|
|
568
|
+
},
|
|
569
|
+
__wbg_new_0_445c13a750296eb6: function() {
|
|
570
|
+
const ret = new Date();
|
|
571
|
+
return ret;
|
|
572
|
+
},
|
|
573
|
+
__wbg_new_0d09705104e164af: function() { return handleError(function () {
|
|
574
|
+
const ret = new AbortController();
|
|
575
|
+
return ret;
|
|
576
|
+
}, arguments); },
|
|
577
|
+
__wbg_new_50bb5ebeecef71a8: function(arg0, arg1) {
|
|
578
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
579
|
+
return ret;
|
|
580
|
+
},
|
|
581
|
+
__wbg_new_578aeef4b6b94378: function(arg0) {
|
|
582
|
+
const ret = new Uint8Array(arg0);
|
|
583
|
+
return ret;
|
|
584
|
+
},
|
|
585
|
+
__wbg_new_ce1ab61c1c2b300d: function() {
|
|
586
|
+
const ret = new Object();
|
|
587
|
+
return ret;
|
|
588
|
+
},
|
|
589
|
+
__wbg_new_d7e476b433a26bea: function() { return handleError(function (arg0, arg1) {
|
|
590
|
+
const ret = new WebSocket(getStringFromWasm0(arg0, arg1));
|
|
591
|
+
return ret;
|
|
592
|
+
}, arguments); },
|
|
593
|
+
__wbg_new_d90091b82fdf5b91: function() {
|
|
594
|
+
const ret = new Array();
|
|
595
|
+
return ret;
|
|
596
|
+
},
|
|
597
|
+
__wbg_new_e436d06bc8e77460: function() { return handleError(function () {
|
|
598
|
+
const ret = new Headers();
|
|
599
|
+
return ret;
|
|
600
|
+
}, arguments); },
|
|
601
|
+
__wbg_new_from_slice_18fa1f71286d66b8: function(arg0, arg1) {
|
|
602
|
+
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
603
|
+
return ret;
|
|
604
|
+
},
|
|
605
|
+
__wbg_new_typed_bf31d18f92484486: function(arg0, arg1) {
|
|
606
|
+
try {
|
|
607
|
+
var state0 = {a: arg0, b: arg1};
|
|
608
|
+
var cb0 = (arg0, arg1) => {
|
|
609
|
+
const a = state0.a;
|
|
610
|
+
state0.a = 0;
|
|
611
|
+
try {
|
|
612
|
+
return wasm_bindgen_a1427d1cfc54b76a___convert__closures_____invoke___js_sys_bee433b15c647e3e___Function_fn_wasm_bindgen_a1427d1cfc54b76a___JsValue_____wasm_bindgen_a1427d1cfc54b76a___sys__Undefined___js_sys_bee433b15c647e3e___Function_fn_wasm_bindgen_a1427d1cfc54b76a___JsValue_____wasm_bindgen_a1427d1cfc54b76a___sys__Undefined_______true_(a, state0.b, arg0, arg1);
|
|
613
|
+
} finally {
|
|
614
|
+
state0.a = a;
|
|
615
|
+
}
|
|
616
|
+
};
|
|
617
|
+
const ret = new Promise(cb0);
|
|
618
|
+
return ret;
|
|
619
|
+
} finally {
|
|
620
|
+
state0.a = 0;
|
|
621
|
+
}
|
|
622
|
+
},
|
|
623
|
+
__wbg_new_with_byte_offset_and_length_d836f26d916dd9ad: function(arg0, arg1, arg2) {
|
|
624
|
+
const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
|
|
625
|
+
return ret;
|
|
626
|
+
},
|
|
627
|
+
__wbg_new_with_length_36a4998e27b014c5: function(arg0) {
|
|
628
|
+
const ret = new Uint8Array(arg0 >>> 0);
|
|
629
|
+
return ret;
|
|
630
|
+
},
|
|
631
|
+
__wbg_new_with_str_and_init_bcd02b79a793d27f: function() { return handleError(function (arg0, arg1, arg2) {
|
|
632
|
+
const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
|
|
633
|
+
return ret;
|
|
634
|
+
}, arguments); },
|
|
635
|
+
__wbg_new_with_str_sequence_9ed2327430efed8d: function() { return handleError(function (arg0, arg1, arg2) {
|
|
636
|
+
const ret = new WebSocket(getStringFromWasm0(arg0, arg1), arg2);
|
|
637
|
+
return ret;
|
|
638
|
+
}, arguments); },
|
|
639
|
+
__wbg_next_9e03acdf51c4960d: function(arg0) {
|
|
640
|
+
const ret = arg0.next;
|
|
641
|
+
return ret;
|
|
642
|
+
},
|
|
643
|
+
__wbg_next_eb8ca7351fa27906: function() { return handleError(function (arg0) {
|
|
644
|
+
const ret = arg0.next();
|
|
645
|
+
return ret;
|
|
646
|
+
}, arguments); },
|
|
647
|
+
__wbg_node_84ea875411254db1: function(arg0) {
|
|
648
|
+
const ret = arg0.node;
|
|
649
|
+
return ret;
|
|
650
|
+
},
|
|
651
|
+
__wbg_now_190933fa139cc119: function() {
|
|
652
|
+
const ret = Date.now();
|
|
653
|
+
return ret;
|
|
654
|
+
},
|
|
655
|
+
__wbg_now_e7c6795a7f81e10f: function(arg0) {
|
|
656
|
+
const ret = arg0.now();
|
|
657
|
+
return ret;
|
|
658
|
+
},
|
|
659
|
+
__wbg_performance_3fcf6e32a7e1ed0a: function(arg0) {
|
|
660
|
+
const ret = arg0.performance;
|
|
661
|
+
return ret;
|
|
662
|
+
},
|
|
663
|
+
__wbg_process_44c7a14e11e9f69e: function(arg0) {
|
|
664
|
+
const ret = arg0.process;
|
|
665
|
+
return ret;
|
|
666
|
+
},
|
|
667
|
+
__wbg_prototypesetcall_3249fc62a0fafa30: function(arg0, arg1, arg2) {
|
|
668
|
+
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
669
|
+
},
|
|
670
|
+
__wbg_push_a6822215aa43e71c: function(arg0, arg1) {
|
|
671
|
+
const ret = arg0.push(arg1);
|
|
672
|
+
return ret;
|
|
673
|
+
},
|
|
674
|
+
__wbg_queueMicrotask_35c611f4a14830b2: function(arg0) {
|
|
675
|
+
queueMicrotask(arg0);
|
|
676
|
+
},
|
|
677
|
+
__wbg_queueMicrotask_404ed0a58e0b63cc: function(arg0) {
|
|
678
|
+
const ret = arg0.queueMicrotask;
|
|
679
|
+
return ret;
|
|
680
|
+
},
|
|
681
|
+
__wbg_randomFillSync_6c25eac9869eb53c: function() { return handleError(function (arg0, arg1) {
|
|
682
|
+
arg0.randomFillSync(arg1);
|
|
683
|
+
}, arguments); },
|
|
684
|
+
__wbg_random_33cfffca5c784d5e: function() {
|
|
685
|
+
const ret = Math.random();
|
|
686
|
+
return ret;
|
|
687
|
+
},
|
|
688
|
+
__wbg_read_282e152a24fd0856: function(arg0) {
|
|
689
|
+
const ret = arg0.read();
|
|
690
|
+
return ret;
|
|
691
|
+
},
|
|
692
|
+
__wbg_readyState_490503c1fa8f8dd6: function(arg0) {
|
|
693
|
+
const ret = arg0.readyState;
|
|
694
|
+
return ret;
|
|
695
|
+
},
|
|
696
|
+
__wbg_reason_4624d424a130e5b2: function(arg0, arg1) {
|
|
697
|
+
const ret = arg1.reason;
|
|
698
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
699
|
+
const len1 = WASM_VECTOR_LEN;
|
|
700
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
701
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
702
|
+
},
|
|
703
|
+
__wbg_releaseLock_cd76770b7f82a961: function(arg0) {
|
|
704
|
+
arg0.releaseLock();
|
|
705
|
+
},
|
|
706
|
+
__wbg_removeEventListener_2da8e9960f90ab27: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
707
|
+
arg0.removeEventListener(getStringFromWasm0(arg1, arg2), arg3);
|
|
708
|
+
}, arguments); },
|
|
709
|
+
__wbg_require_b4edbdcf3e2a1ef0: function() { return handleError(function () {
|
|
710
|
+
const ret = module.require;
|
|
711
|
+
return ret;
|
|
712
|
+
}, arguments); },
|
|
713
|
+
__wbg_resolve_25a7e548d5881dca: function(arg0) {
|
|
714
|
+
const ret = Promise.resolve(arg0);
|
|
715
|
+
return ret;
|
|
716
|
+
},
|
|
717
|
+
__wbg_respond_33b6f330b6d299fd: function() { return handleError(function (arg0, arg1) {
|
|
718
|
+
arg0.respond(arg1 >>> 0);
|
|
719
|
+
}, arguments); },
|
|
720
|
+
__wbg_send_35647f35f8bdac5d: function() { return handleError(function (arg0, arg1, arg2) {
|
|
721
|
+
arg0.send(getStringFromWasm0(arg1, arg2));
|
|
722
|
+
}, arguments); },
|
|
723
|
+
__wbg_send_4a773f523104d75e: function() { return handleError(function (arg0, arg1, arg2) {
|
|
724
|
+
arg0.send(getArrayU8FromWasm0(arg1, arg2));
|
|
725
|
+
}, arguments); },
|
|
726
|
+
__wbg_setTimeout_c3233ba3a378f224: function() { return handleError(function (arg0, arg1, arg2) {
|
|
727
|
+
const ret = arg0.setTimeout(arg1, arg2);
|
|
728
|
+
return ret;
|
|
729
|
+
}, arguments); },
|
|
730
|
+
__wbg_setTimeout_f757f00851f76c42: function(arg0, arg1) {
|
|
731
|
+
const ret = setTimeout(arg0, arg1);
|
|
732
|
+
return ret;
|
|
733
|
+
},
|
|
734
|
+
__wbg_set_29c99a8aac1c01e5: function(arg0, arg1, arg2) {
|
|
735
|
+
arg0.set(getArrayU8FromWasm0(arg1, arg2));
|
|
736
|
+
},
|
|
737
|
+
__wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
|
|
738
|
+
arg0[arg1] = arg2;
|
|
739
|
+
},
|
|
740
|
+
__wbg_set_binaryType_41994c453b95bdd2: function(arg0, arg1) {
|
|
741
|
+
arg0.binaryType = __wbindgen_enum_BinaryType[arg1];
|
|
742
|
+
},
|
|
743
|
+
__wbg_set_body_36614c7e61546809: function(arg0, arg1) {
|
|
744
|
+
arg0.body = arg1;
|
|
745
|
+
},
|
|
746
|
+
__wbg_set_cache_488ea16c11cbf20d: function(arg0, arg1) {
|
|
747
|
+
arg0.cache = __wbindgen_enum_RequestCache[arg1];
|
|
748
|
+
},
|
|
749
|
+
__wbg_set_credentials_fa9c491a27c4bdf0: function(arg0, arg1) {
|
|
750
|
+
arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
|
|
751
|
+
},
|
|
752
|
+
__wbg_set_dca99999bba88a9a: function(arg0, arg1, arg2) {
|
|
753
|
+
arg0[arg1 >>> 0] = arg2;
|
|
754
|
+
},
|
|
755
|
+
__wbg_set_handle_event_ae2ef577ff53b168: function(arg0, arg1) {
|
|
756
|
+
arg0.handleEvent = arg1;
|
|
757
|
+
},
|
|
758
|
+
__wbg_set_headers_7c1e39ece7826bec: function(arg0, arg1) {
|
|
759
|
+
arg0.headers = arg1;
|
|
760
|
+
},
|
|
761
|
+
__wbg_set_method_7a6811dec7a4feff: function(arg0, arg1, arg2) {
|
|
762
|
+
arg0.method = getStringFromWasm0(arg1, arg2);
|
|
763
|
+
},
|
|
764
|
+
__wbg_set_mode_c90e3667002857d4: function(arg0, arg1) {
|
|
765
|
+
arg0.mode = __wbindgen_enum_RequestMode[arg1];
|
|
766
|
+
},
|
|
767
|
+
__wbg_set_onclose_13787fb31ae8aefd: function(arg0, arg1) {
|
|
768
|
+
arg0.onclose = arg1;
|
|
769
|
+
},
|
|
770
|
+
__wbg_set_onerror_5a45265839edf1b1: function(arg0, arg1) {
|
|
771
|
+
arg0.onerror = arg1;
|
|
772
|
+
},
|
|
773
|
+
__wbg_set_onmessage_9c6b4cb14e244b7f: function(arg0, arg1) {
|
|
774
|
+
arg0.onmessage = arg1;
|
|
775
|
+
},
|
|
776
|
+
__wbg_set_onopen_db452f4233e99d7d: function(arg0, arg1) {
|
|
777
|
+
arg0.onopen = arg1;
|
|
778
|
+
},
|
|
779
|
+
__wbg_set_signal_d9da62b3f215c821: function(arg0, arg1) {
|
|
780
|
+
arg0.signal = arg1;
|
|
781
|
+
},
|
|
782
|
+
__wbg_signal_e03304a84df9ed09: function(arg0) {
|
|
783
|
+
const ret = arg0.signal;
|
|
784
|
+
return ret;
|
|
785
|
+
},
|
|
786
|
+
__wbg_static_accessor_GLOBAL_9d53f2689e622ca1: function() {
|
|
787
|
+
const ret = typeof global === 'undefined' ? null : global;
|
|
788
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
789
|
+
},
|
|
790
|
+
__wbg_static_accessor_GLOBAL_THIS_a1a35cec07001a8a: function() {
|
|
791
|
+
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
792
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
793
|
+
},
|
|
794
|
+
__wbg_static_accessor_SELF_4c59f6c7ea29a144: function() {
|
|
795
|
+
const ret = typeof self === 'undefined' ? null : self;
|
|
796
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
797
|
+
},
|
|
798
|
+
__wbg_static_accessor_WINDOW_e70ae9f2eb052253: function() {
|
|
799
|
+
const ret = typeof window === 'undefined' ? null : window;
|
|
800
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
801
|
+
},
|
|
802
|
+
__wbg_status_00549d55b78d949e: function(arg0) {
|
|
803
|
+
const ret = arg0.status;
|
|
804
|
+
return ret;
|
|
805
|
+
},
|
|
806
|
+
__wbg_stringify_8286df6dcc591521: function() { return handleError(function (arg0) {
|
|
807
|
+
const ret = JSON.stringify(arg0);
|
|
808
|
+
return ret;
|
|
809
|
+
}, arguments); },
|
|
810
|
+
__wbg_subarray_4aa221f6a4f5ab22: function(arg0, arg1, arg2) {
|
|
811
|
+
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
812
|
+
return ret;
|
|
813
|
+
},
|
|
814
|
+
__wbg_text_a17febec76d36501: function() { return handleError(function (arg0) {
|
|
815
|
+
const ret = arg0.text();
|
|
816
|
+
return ret;
|
|
817
|
+
}, arguments); },
|
|
818
|
+
__wbg_then_18f476d590e58992: function(arg0, arg1, arg2) {
|
|
819
|
+
const ret = arg0.then(arg1, arg2);
|
|
820
|
+
return ret;
|
|
821
|
+
},
|
|
822
|
+
__wbg_then_ac7b025999b52837: function(arg0, arg1) {
|
|
823
|
+
const ret = arg0.then(arg1);
|
|
824
|
+
return ret;
|
|
825
|
+
},
|
|
826
|
+
__wbg_url_6808f1c468f2d0cd: function(arg0, arg1) {
|
|
827
|
+
const ret = arg1.url;
|
|
828
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
829
|
+
const len1 = WASM_VECTOR_LEN;
|
|
830
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
831
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
832
|
+
},
|
|
833
|
+
__wbg_url_8b9d120d9dc02d8f: function(arg0, arg1) {
|
|
834
|
+
const ret = arg1.url;
|
|
835
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
836
|
+
const len1 = WASM_VECTOR_LEN;
|
|
837
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
838
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
839
|
+
},
|
|
840
|
+
__wbg_value_f3625092ee4b37f4: function(arg0) {
|
|
841
|
+
const ret = arg0.value;
|
|
842
|
+
return ret;
|
|
843
|
+
},
|
|
844
|
+
__wbg_versions_276b2795b1c6a219: function(arg0) {
|
|
845
|
+
const ret = arg0.versions;
|
|
846
|
+
return ret;
|
|
847
|
+
},
|
|
848
|
+
__wbg_view_d523e3b92648b62c: function(arg0) {
|
|
849
|
+
const ret = arg0.view;
|
|
850
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
851
|
+
},
|
|
852
|
+
__wbg_wasClean_9636ab9b65f5dbb9: function(arg0) {
|
|
853
|
+
const ret = arg0.wasClean;
|
|
854
|
+
return ret;
|
|
855
|
+
},
|
|
856
|
+
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
857
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 2256, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
858
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_a1427d1cfc54b76a___convert__closures_____invoke___wasm_bindgen_a1427d1cfc54b76a___JsValue______true_);
|
|
859
|
+
return ret;
|
|
860
|
+
},
|
|
861
|
+
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
862
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 4392, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
863
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_a1427d1cfc54b76a___convert__closures_____invoke___wasm_bindgen_a1427d1cfc54b76a___JsValue__core_c09542a5c46f04b6___result__Result_____wasm_bindgen_a1427d1cfc54b76a___JsError___true_);
|
|
864
|
+
return ret;
|
|
865
|
+
},
|
|
866
|
+
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
867
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 1887, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
868
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_a1427d1cfc54b76a___convert__closures_____invoke___web_sys_9299a82c88baa8d___features__gen_CloseEvent__CloseEvent______true_);
|
|
869
|
+
return ret;
|
|
870
|
+
},
|
|
871
|
+
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
872
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 3369, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
873
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_a1427d1cfc54b76a___convert__closures_____invoke___web_sys_9299a82c88baa8d___features__gen_MessageEvent__MessageEvent______true_);
|
|
874
|
+
return ret;
|
|
875
|
+
},
|
|
876
|
+
__wbindgen_cast_0000000000000005: function(arg0, arg1) {
|
|
877
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 2006, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
|
|
878
|
+
const ret = makeClosure(arg0, arg1, wasm_bindgen_a1427d1cfc54b76a___convert__closures_____invoke_______true_);
|
|
879
|
+
return ret;
|
|
880
|
+
},
|
|
881
|
+
__wbindgen_cast_0000000000000006: function(arg0, arg1) {
|
|
882
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 2223, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
883
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_a1427d1cfc54b76a___convert__closures_____invoke_______true__1_);
|
|
884
|
+
return ret;
|
|
885
|
+
},
|
|
886
|
+
__wbindgen_cast_0000000000000007: function(arg0, arg1) {
|
|
887
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 3395, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
888
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_a1427d1cfc54b76a___convert__closures_____invoke_______true__2_);
|
|
889
|
+
return ret;
|
|
890
|
+
},
|
|
891
|
+
__wbindgen_cast_0000000000000008: function(arg0) {
|
|
892
|
+
// Cast intrinsic for `F64 -> Externref`.
|
|
893
|
+
const ret = arg0;
|
|
894
|
+
return ret;
|
|
895
|
+
},
|
|
896
|
+
__wbindgen_cast_0000000000000009: function(arg0, arg1) {
|
|
897
|
+
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
898
|
+
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
899
|
+
return ret;
|
|
900
|
+
},
|
|
901
|
+
__wbindgen_cast_000000000000000a: function(arg0, arg1) {
|
|
902
|
+
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
903
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
904
|
+
return ret;
|
|
905
|
+
},
|
|
906
|
+
__wbindgen_cast_000000000000000b: function(arg0) {
|
|
907
|
+
// Cast intrinsic for `U64 -> Externref`.
|
|
908
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
909
|
+
return ret;
|
|
910
|
+
},
|
|
911
|
+
__wbindgen_init_externref_table: function() {
|
|
912
|
+
const table = wasm.__wbindgen_externrefs;
|
|
913
|
+
const offset = table.grow(4);
|
|
914
|
+
table.set(0, undefined);
|
|
915
|
+
table.set(offset + 0, undefined);
|
|
916
|
+
table.set(offset + 1, null);
|
|
917
|
+
table.set(offset + 2, true);
|
|
918
|
+
table.set(offset + 3, false);
|
|
919
|
+
},
|
|
920
|
+
};
|
|
921
|
+
return {
|
|
922
|
+
__proto__: null,
|
|
923
|
+
"./teamtype_wasm_bg.js": import0,
|
|
924
|
+
};
|
|
925
|
+
}
|
|
926
|
+
|
|
927
|
+
function wasm_bindgen_a1427d1cfc54b76a___convert__closures_____invoke_______true_(arg0, arg1) {
|
|
928
|
+
wasm.wasm_bindgen_a1427d1cfc54b76a___convert__closures_____invoke_______true_(arg0, arg1);
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
function wasm_bindgen_a1427d1cfc54b76a___convert__closures_____invoke_______true__1_(arg0, arg1) {
|
|
932
|
+
wasm.wasm_bindgen_a1427d1cfc54b76a___convert__closures_____invoke_______true__1_(arg0, arg1);
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
function wasm_bindgen_a1427d1cfc54b76a___convert__closures_____invoke_______true__2_(arg0, arg1) {
|
|
936
|
+
wasm.wasm_bindgen_a1427d1cfc54b76a___convert__closures_____invoke_______true__2_(arg0, arg1);
|
|
937
|
+
}
|
|
938
|
+
|
|
939
|
+
function wasm_bindgen_a1427d1cfc54b76a___convert__closures_____invoke___wasm_bindgen_a1427d1cfc54b76a___JsValue______true_(arg0, arg1, arg2) {
|
|
940
|
+
wasm.wasm_bindgen_a1427d1cfc54b76a___convert__closures_____invoke___wasm_bindgen_a1427d1cfc54b76a___JsValue______true_(arg0, arg1, arg2);
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
function wasm_bindgen_a1427d1cfc54b76a___convert__closures_____invoke___web_sys_9299a82c88baa8d___features__gen_CloseEvent__CloseEvent______true_(arg0, arg1, arg2) {
|
|
944
|
+
wasm.wasm_bindgen_a1427d1cfc54b76a___convert__closures_____invoke___web_sys_9299a82c88baa8d___features__gen_CloseEvent__CloseEvent______true_(arg0, arg1, arg2);
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
function wasm_bindgen_a1427d1cfc54b76a___convert__closures_____invoke___web_sys_9299a82c88baa8d___features__gen_MessageEvent__MessageEvent______true_(arg0, arg1, arg2) {
|
|
948
|
+
wasm.wasm_bindgen_a1427d1cfc54b76a___convert__closures_____invoke___web_sys_9299a82c88baa8d___features__gen_MessageEvent__MessageEvent______true_(arg0, arg1, arg2);
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
function wasm_bindgen_a1427d1cfc54b76a___convert__closures_____invoke___wasm_bindgen_a1427d1cfc54b76a___JsValue__core_c09542a5c46f04b6___result__Result_____wasm_bindgen_a1427d1cfc54b76a___JsError___true_(arg0, arg1, arg2) {
|
|
952
|
+
const ret = wasm.wasm_bindgen_a1427d1cfc54b76a___convert__closures_____invoke___wasm_bindgen_a1427d1cfc54b76a___JsValue__core_c09542a5c46f04b6___result__Result_____wasm_bindgen_a1427d1cfc54b76a___JsError___true_(arg0, arg1, arg2);
|
|
953
|
+
if (ret[1]) {
|
|
954
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
function wasm_bindgen_a1427d1cfc54b76a___convert__closures_____invoke___js_sys_bee433b15c647e3e___Function_fn_wasm_bindgen_a1427d1cfc54b76a___JsValue_____wasm_bindgen_a1427d1cfc54b76a___sys__Undefined___js_sys_bee433b15c647e3e___Function_fn_wasm_bindgen_a1427d1cfc54b76a___JsValue_____wasm_bindgen_a1427d1cfc54b76a___sys__Undefined_______true_(arg0, arg1, arg2, arg3) {
|
|
959
|
+
wasm.wasm_bindgen_a1427d1cfc54b76a___convert__closures_____invoke___js_sys_bee433b15c647e3e___Function_fn_wasm_bindgen_a1427d1cfc54b76a___JsValue_____wasm_bindgen_a1427d1cfc54b76a___sys__Undefined___js_sys_bee433b15c647e3e___Function_fn_wasm_bindgen_a1427d1cfc54b76a___JsValue_____wasm_bindgen_a1427d1cfc54b76a___sys__Undefined_______true_(arg0, arg1, arg2, arg3);
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
|
|
963
|
+
const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
|
|
964
|
+
|
|
965
|
+
|
|
966
|
+
const __wbindgen_enum_ReadableStreamType = ["bytes"];
|
|
967
|
+
|
|
968
|
+
|
|
969
|
+
const __wbindgen_enum_RequestCache = ["default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached"];
|
|
970
|
+
|
|
971
|
+
|
|
972
|
+
const __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
|
|
973
|
+
|
|
974
|
+
|
|
975
|
+
const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"];
|
|
976
|
+
const IntoUnderlyingByteSourceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
977
|
+
? { register: () => {}, unregister: () => {} }
|
|
978
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingbytesource_free(ptr, 1));
|
|
979
|
+
const IntoUnderlyingSinkFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
980
|
+
? { register: () => {}, unregister: () => {} }
|
|
981
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsink_free(ptr, 1));
|
|
982
|
+
const IntoUnderlyingSourceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
983
|
+
? { register: () => {}, unregister: () => {} }
|
|
984
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsource_free(ptr, 1));
|
|
985
|
+
const TeamtypeClientFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
986
|
+
? { register: () => {}, unregister: () => {} }
|
|
987
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_teamtypeclient_free(ptr, 1));
|
|
988
|
+
|
|
989
|
+
function addToExternrefTable0(obj) {
|
|
990
|
+
const idx = wasm.__externref_table_alloc();
|
|
991
|
+
wasm.__wbindgen_externrefs.set(idx, obj);
|
|
992
|
+
return idx;
|
|
993
|
+
}
|
|
994
|
+
|
|
995
|
+
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
996
|
+
? { register: () => {}, unregister: () => {} }
|
|
997
|
+
: new FinalizationRegistry(state => wasm.__wbindgen_destroy_closure(state.a, state.b));
|
|
998
|
+
|
|
999
|
+
function debugString(val) {
|
|
1000
|
+
// primitive types
|
|
1001
|
+
const type = typeof val;
|
|
1002
|
+
if (type == 'number' || type == 'boolean' || val == null) {
|
|
1003
|
+
return `${val}`;
|
|
1004
|
+
}
|
|
1005
|
+
if (type == 'string') {
|
|
1006
|
+
return `"${val}"`;
|
|
1007
|
+
}
|
|
1008
|
+
if (type == 'symbol') {
|
|
1009
|
+
const description = val.description;
|
|
1010
|
+
if (description == null) {
|
|
1011
|
+
return 'Symbol';
|
|
1012
|
+
} else {
|
|
1013
|
+
return `Symbol(${description})`;
|
|
1014
|
+
}
|
|
1015
|
+
}
|
|
1016
|
+
if (type == 'function') {
|
|
1017
|
+
const name = val.name;
|
|
1018
|
+
if (typeof name == 'string' && name.length > 0) {
|
|
1019
|
+
return `Function(${name})`;
|
|
1020
|
+
} else {
|
|
1021
|
+
return 'Function';
|
|
1022
|
+
}
|
|
1023
|
+
}
|
|
1024
|
+
// objects
|
|
1025
|
+
if (Array.isArray(val)) {
|
|
1026
|
+
const length = val.length;
|
|
1027
|
+
let debug = '[';
|
|
1028
|
+
if (length > 0) {
|
|
1029
|
+
debug += debugString(val[0]);
|
|
1030
|
+
}
|
|
1031
|
+
for(let i = 1; i < length; i++) {
|
|
1032
|
+
debug += ', ' + debugString(val[i]);
|
|
1033
|
+
}
|
|
1034
|
+
debug += ']';
|
|
1035
|
+
return debug;
|
|
1036
|
+
}
|
|
1037
|
+
// Test for built-in
|
|
1038
|
+
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
1039
|
+
let className;
|
|
1040
|
+
if (builtInMatches && builtInMatches.length > 1) {
|
|
1041
|
+
className = builtInMatches[1];
|
|
1042
|
+
} else {
|
|
1043
|
+
// Failed to match the standard '[object ClassName]'
|
|
1044
|
+
return toString.call(val);
|
|
1045
|
+
}
|
|
1046
|
+
if (className == 'Object') {
|
|
1047
|
+
// we're a user defined class or Object
|
|
1048
|
+
// JSON.stringify avoids problems with cycles, and is generally much
|
|
1049
|
+
// easier than looping through ownProperties of `val`.
|
|
1050
|
+
try {
|
|
1051
|
+
return 'Object(' + JSON.stringify(val) + ')';
|
|
1052
|
+
} catch (_) {
|
|
1053
|
+
return 'Object';
|
|
1054
|
+
}
|
|
1055
|
+
}
|
|
1056
|
+
// errors
|
|
1057
|
+
if (val instanceof Error) {
|
|
1058
|
+
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
1059
|
+
}
|
|
1060
|
+
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
1061
|
+
return className;
|
|
1062
|
+
}
|
|
1063
|
+
|
|
1064
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
1065
|
+
ptr = ptr >>> 0;
|
|
1066
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
1067
|
+
}
|
|
1068
|
+
|
|
1069
|
+
let cachedDataViewMemory0 = null;
|
|
1070
|
+
function getDataViewMemory0() {
|
|
1071
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
1072
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
1073
|
+
}
|
|
1074
|
+
return cachedDataViewMemory0;
|
|
1075
|
+
}
|
|
1076
|
+
|
|
1077
|
+
function getStringFromWasm0(ptr, len) {
|
|
1078
|
+
return decodeText(ptr >>> 0, len);
|
|
1079
|
+
}
|
|
1080
|
+
|
|
1081
|
+
let cachedUint8ArrayMemory0 = null;
|
|
1082
|
+
function getUint8ArrayMemory0() {
|
|
1083
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
1084
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
1085
|
+
}
|
|
1086
|
+
return cachedUint8ArrayMemory0;
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
function handleError(f, args) {
|
|
1090
|
+
try {
|
|
1091
|
+
return f.apply(this, args);
|
|
1092
|
+
} catch (e) {
|
|
1093
|
+
const idx = addToExternrefTable0(e);
|
|
1094
|
+
wasm.__wbindgen_exn_store(idx);
|
|
1095
|
+
}
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1098
|
+
function isLikeNone(x) {
|
|
1099
|
+
return x === undefined || x === null;
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1102
|
+
function makeClosure(arg0, arg1, f) {
|
|
1103
|
+
const state = { a: arg0, b: arg1, cnt: 1 };
|
|
1104
|
+
const real = (...args) => {
|
|
1105
|
+
|
|
1106
|
+
// First up with a closure we increment the internal reference
|
|
1107
|
+
// count. This ensures that the Rust closure environment won't
|
|
1108
|
+
// be deallocated while we're invoking it.
|
|
1109
|
+
state.cnt++;
|
|
1110
|
+
try {
|
|
1111
|
+
return f(state.a, state.b, ...args);
|
|
1112
|
+
} finally {
|
|
1113
|
+
real._wbg_cb_unref();
|
|
1114
|
+
}
|
|
1115
|
+
};
|
|
1116
|
+
real._wbg_cb_unref = () => {
|
|
1117
|
+
if (--state.cnt === 0) {
|
|
1118
|
+
wasm.__wbindgen_destroy_closure(state.a, state.b);
|
|
1119
|
+
state.a = 0;
|
|
1120
|
+
CLOSURE_DTORS.unregister(state);
|
|
1121
|
+
}
|
|
1122
|
+
};
|
|
1123
|
+
CLOSURE_DTORS.register(real, state, state);
|
|
1124
|
+
return real;
|
|
1125
|
+
}
|
|
1126
|
+
|
|
1127
|
+
function makeMutClosure(arg0, arg1, f) {
|
|
1128
|
+
const state = { a: arg0, b: arg1, cnt: 1 };
|
|
1129
|
+
const real = (...args) => {
|
|
1130
|
+
|
|
1131
|
+
// First up with a closure we increment the internal reference
|
|
1132
|
+
// count. This ensures that the Rust closure environment won't
|
|
1133
|
+
// be deallocated while we're invoking it.
|
|
1134
|
+
state.cnt++;
|
|
1135
|
+
const a = state.a;
|
|
1136
|
+
state.a = 0;
|
|
1137
|
+
try {
|
|
1138
|
+
return f(a, state.b, ...args);
|
|
1139
|
+
} finally {
|
|
1140
|
+
state.a = a;
|
|
1141
|
+
real._wbg_cb_unref();
|
|
1142
|
+
}
|
|
1143
|
+
};
|
|
1144
|
+
real._wbg_cb_unref = () => {
|
|
1145
|
+
if (--state.cnt === 0) {
|
|
1146
|
+
wasm.__wbindgen_destroy_closure(state.a, state.b);
|
|
1147
|
+
state.a = 0;
|
|
1148
|
+
CLOSURE_DTORS.unregister(state);
|
|
1149
|
+
}
|
|
1150
|
+
};
|
|
1151
|
+
CLOSURE_DTORS.register(real, state, state);
|
|
1152
|
+
return real;
|
|
1153
|
+
}
|
|
1154
|
+
|
|
1155
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
1156
|
+
if (realloc === undefined) {
|
|
1157
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
1158
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
1159
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
1160
|
+
WASM_VECTOR_LEN = buf.length;
|
|
1161
|
+
return ptr;
|
|
1162
|
+
}
|
|
1163
|
+
|
|
1164
|
+
let len = arg.length;
|
|
1165
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
1166
|
+
|
|
1167
|
+
const mem = getUint8ArrayMemory0();
|
|
1168
|
+
|
|
1169
|
+
let offset = 0;
|
|
1170
|
+
|
|
1171
|
+
for (; offset < len; offset++) {
|
|
1172
|
+
const code = arg.charCodeAt(offset);
|
|
1173
|
+
if (code > 0x7F) break;
|
|
1174
|
+
mem[ptr + offset] = code;
|
|
1175
|
+
}
|
|
1176
|
+
if (offset !== len) {
|
|
1177
|
+
if (offset !== 0) {
|
|
1178
|
+
arg = arg.slice(offset);
|
|
1179
|
+
}
|
|
1180
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
1181
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
1182
|
+
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
1183
|
+
|
|
1184
|
+
offset += ret.written;
|
|
1185
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
1186
|
+
}
|
|
1187
|
+
|
|
1188
|
+
WASM_VECTOR_LEN = offset;
|
|
1189
|
+
return ptr;
|
|
1190
|
+
}
|
|
1191
|
+
|
|
1192
|
+
function takeFromExternrefTable0(idx) {
|
|
1193
|
+
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
1194
|
+
wasm.__externref_table_dealloc(idx);
|
|
1195
|
+
return value;
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1198
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
1199
|
+
cachedTextDecoder.decode();
|
|
1200
|
+
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
1201
|
+
let numBytesDecoded = 0;
|
|
1202
|
+
function decodeText(ptr, len) {
|
|
1203
|
+
numBytesDecoded += len;
|
|
1204
|
+
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
1205
|
+
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
1206
|
+
cachedTextDecoder.decode();
|
|
1207
|
+
numBytesDecoded = len;
|
|
1208
|
+
}
|
|
1209
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
1210
|
+
}
|
|
1211
|
+
|
|
1212
|
+
const cachedTextEncoder = new TextEncoder();
|
|
1213
|
+
|
|
1214
|
+
if (!('encodeInto' in cachedTextEncoder)) {
|
|
1215
|
+
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
1216
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
1217
|
+
view.set(buf);
|
|
1218
|
+
return {
|
|
1219
|
+
read: arg.length,
|
|
1220
|
+
written: buf.length
|
|
1221
|
+
};
|
|
1222
|
+
};
|
|
1223
|
+
}
|
|
1224
|
+
|
|
1225
|
+
let WASM_VECTOR_LEN = 0;
|
|
1226
|
+
|
|
1227
|
+
let wasmModule, wasmInstance, wasm;
|
|
1228
|
+
function __wbg_finalize_init(instance, module) {
|
|
1229
|
+
wasmInstance = instance;
|
|
1230
|
+
wasm = instance.exports;
|
|
1231
|
+
wasmModule = module;
|
|
1232
|
+
cachedDataViewMemory0 = null;
|
|
1233
|
+
cachedUint8ArrayMemory0 = null;
|
|
1234
|
+
wasm.__wbindgen_start();
|
|
1235
|
+
return wasm;
|
|
1236
|
+
}
|
|
1237
|
+
|
|
1238
|
+
async function __wbg_load(module, imports) {
|
|
1239
|
+
if (typeof Response === 'function' && module instanceof Response) {
|
|
1240
|
+
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
1241
|
+
try {
|
|
1242
|
+
return await WebAssembly.instantiateStreaming(module, imports);
|
|
1243
|
+
} catch (e) {
|
|
1244
|
+
const validResponse = module.ok && expectedResponseType(module.type);
|
|
1245
|
+
|
|
1246
|
+
if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
|
|
1247
|
+
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);
|
|
1248
|
+
|
|
1249
|
+
} else { throw e; }
|
|
1250
|
+
}
|
|
1251
|
+
}
|
|
1252
|
+
|
|
1253
|
+
const bytes = await module.arrayBuffer();
|
|
1254
|
+
return await WebAssembly.instantiate(bytes, imports);
|
|
1255
|
+
} else {
|
|
1256
|
+
const instance = await WebAssembly.instantiate(module, imports);
|
|
1257
|
+
|
|
1258
|
+
if (instance instanceof WebAssembly.Instance) {
|
|
1259
|
+
return { instance, module };
|
|
1260
|
+
} else {
|
|
1261
|
+
return instance;
|
|
1262
|
+
}
|
|
1263
|
+
}
|
|
1264
|
+
|
|
1265
|
+
function expectedResponseType(type) {
|
|
1266
|
+
switch (type) {
|
|
1267
|
+
case 'basic': case 'cors': case 'default': return true;
|
|
1268
|
+
}
|
|
1269
|
+
return false;
|
|
1270
|
+
}
|
|
1271
|
+
}
|
|
1272
|
+
|
|
1273
|
+
function initSync(module) {
|
|
1274
|
+
if (wasm !== undefined) return wasm;
|
|
1275
|
+
|
|
1276
|
+
|
|
1277
|
+
if (module !== undefined) {
|
|
1278
|
+
if (Object.getPrototypeOf(module) === Object.prototype) {
|
|
1279
|
+
({module} = module)
|
|
1280
|
+
} else {
|
|
1281
|
+
console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
|
|
1282
|
+
}
|
|
1283
|
+
}
|
|
1284
|
+
|
|
1285
|
+
const imports = __wbg_get_imports();
|
|
1286
|
+
if (!(module instanceof WebAssembly.Module)) {
|
|
1287
|
+
module = new WebAssembly.Module(module);
|
|
1288
|
+
}
|
|
1289
|
+
const instance = new WebAssembly.Instance(module, imports);
|
|
1290
|
+
return __wbg_finalize_init(instance, module);
|
|
1291
|
+
}
|
|
1292
|
+
|
|
1293
|
+
async function __wbg_init(module_or_path) {
|
|
1294
|
+
if (wasm !== undefined) return wasm;
|
|
1295
|
+
|
|
1296
|
+
|
|
1297
|
+
if (module_or_path !== undefined) {
|
|
1298
|
+
if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
|
|
1299
|
+
({module_or_path} = module_or_path)
|
|
1300
|
+
} else {
|
|
1301
|
+
console.warn('using deprecated parameters for the initialization function; pass a single object instead')
|
|
1302
|
+
}
|
|
1303
|
+
}
|
|
1304
|
+
|
|
1305
|
+
if (module_or_path === undefined) {
|
|
1306
|
+
module_or_path = new URL('teamtype_wasm_bg.wasm', import.meta.url);
|
|
1307
|
+
}
|
|
1308
|
+
const imports = __wbg_get_imports();
|
|
1309
|
+
|
|
1310
|
+
if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
|
|
1311
|
+
module_or_path = fetch(module_or_path);
|
|
1312
|
+
}
|
|
1313
|
+
|
|
1314
|
+
const { instance, module } = await __wbg_load(await module_or_path, imports);
|
|
1315
|
+
|
|
1316
|
+
return __wbg_finalize_init(instance, module);
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1319
|
+
export { initSync, __wbg_init as default };
|