@xelandernt/hrns-tui 0.0.0-stage → 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.
- package/LICENSE +21 -0
- package/README.md +60 -2
- package/dist/index.d.ts +3 -0
- package/dist/index.js +12 -0
- package/dist/terminal.d.ts +23 -0
- package/dist/terminal.js +93 -0
- package/package.json +27 -4
- package/wasm/hrns_tui.js +1217 -0
- package/wasm/hrns_tui_bg.wasm +0 -0
package/wasm/hrns_tui.js
ADDED
|
@@ -0,0 +1,1217 @@
|
|
|
1
|
+
/* @ts-self-types="./hrns_tui.d.ts" */
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Debug API exposed to browser console for terminal inspection.
|
|
5
|
+
*/
|
|
6
|
+
export class TerminalDebugApi {
|
|
7
|
+
__destroy_into_raw() {
|
|
8
|
+
const ptr = this.__wbg_ptr;
|
|
9
|
+
this.__wbg_ptr = 0;
|
|
10
|
+
TerminalDebugApiFinalization.unregister(this);
|
|
11
|
+
return ptr;
|
|
12
|
+
}
|
|
13
|
+
free() {
|
|
14
|
+
const ptr = this.__destroy_into_raw();
|
|
15
|
+
wasm.__wbg_terminaldebugapi_free(ptr, 0);
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Returns the full atlas glyph-to-symbol mapping as a JavaScript array.
|
|
19
|
+
*
|
|
20
|
+
* # Panics
|
|
21
|
+
*
|
|
22
|
+
* Panics if setting properties on the JavaScript objects fails.
|
|
23
|
+
* @returns {Array<any>}
|
|
24
|
+
*/
|
|
25
|
+
getAtlasLookup() {
|
|
26
|
+
const ret = wasm.terminaldebugapi_getAtlasLookup(this.__wbg_ptr);
|
|
27
|
+
return ret;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Returns the base glyph ID for a given symbol, or null if not found.
|
|
31
|
+
* @param {string} symbol
|
|
32
|
+
* @returns {number | undefined}
|
|
33
|
+
*/
|
|
34
|
+
getBaseGlyphId(symbol) {
|
|
35
|
+
const ptr0 = passStringToWasm0(symbol, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
36
|
+
const len0 = WASM_VECTOR_LEN;
|
|
37
|
+
const ret = wasm.terminaldebugapi_getBaseGlyphId(this.__wbg_ptr, ptr0, len0);
|
|
38
|
+
return ret === 0xFFFFFF ? undefined : ret;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Returns the canvas size in pixels as an object with `width` and `height` fields.
|
|
42
|
+
*
|
|
43
|
+
* # Panics
|
|
44
|
+
*
|
|
45
|
+
* Panics if setting properties on the JavaScript object fails.
|
|
46
|
+
* @returns {any}
|
|
47
|
+
*/
|
|
48
|
+
getCanvasSize() {
|
|
49
|
+
const ret = wasm.terminaldebugapi_getCanvasSize(this.__wbg_ptr);
|
|
50
|
+
return ret;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Returns the cell size in pixels as an object with `width` and `height` fields.
|
|
54
|
+
*
|
|
55
|
+
* # Panics
|
|
56
|
+
*
|
|
57
|
+
* Panics if setting properties on the JavaScript object fails.
|
|
58
|
+
* @returns {any}
|
|
59
|
+
*/
|
|
60
|
+
getCellSize() {
|
|
61
|
+
const ret = wasm.terminaldebugapi_getCellSize(this.__wbg_ptr);
|
|
62
|
+
return ret;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Returns the number of glyphs available in the font atlas.
|
|
66
|
+
* @returns {number}
|
|
67
|
+
*/
|
|
68
|
+
getGlyphCount() {
|
|
69
|
+
const ret = wasm.terminaldebugapi_getGlyphCount(this.__wbg_ptr);
|
|
70
|
+
return ret >>> 0;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Returns an array of glyphs that were requested but not found in the font atlas.
|
|
74
|
+
* @returns {Array<any>}
|
|
75
|
+
*/
|
|
76
|
+
getMissingGlyphs() {
|
|
77
|
+
const ret = wasm.terminaldebugapi_getMissingGlyphs(this.__wbg_ptr);
|
|
78
|
+
return ret;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Returns the symbol for a given glyph ID, or null if not found.
|
|
82
|
+
* @param {number} glyph_id
|
|
83
|
+
* @returns {string | undefined}
|
|
84
|
+
*/
|
|
85
|
+
getSymbol(glyph_id) {
|
|
86
|
+
const ret = wasm.terminaldebugapi_getSymbol(this.__wbg_ptr, glyph_id);
|
|
87
|
+
let v1;
|
|
88
|
+
if (ret[0] !== 0) {
|
|
89
|
+
v1 = getStringFromWasm0(ret[0], ret[1]);
|
|
90
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
91
|
+
}
|
|
92
|
+
return v1;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Returns the terminal size in cells as an object with `cols` and `rows` fields.
|
|
96
|
+
*
|
|
97
|
+
* # Panics
|
|
98
|
+
*
|
|
99
|
+
* Panics if setting properties on the JavaScript object fails.
|
|
100
|
+
* @returns {any}
|
|
101
|
+
*/
|
|
102
|
+
getTerminalSize() {
|
|
103
|
+
const ret = wasm.terminaldebugapi_getTerminalSize(this.__wbg_ptr);
|
|
104
|
+
return ret;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
if (Symbol.dispose) TerminalDebugApi.prototype[Symbol.dispose] = TerminalDebugApi.prototype.free;
|
|
108
|
+
|
|
109
|
+
export class WebTerminal {
|
|
110
|
+
__destroy_into_raw() {
|
|
111
|
+
const ptr = this.__wbg_ptr;
|
|
112
|
+
this.__wbg_ptr = 0;
|
|
113
|
+
WebTerminalFinalization.unregister(this);
|
|
114
|
+
return ptr;
|
|
115
|
+
}
|
|
116
|
+
free() {
|
|
117
|
+
const ptr = this.__destroy_into_raw();
|
|
118
|
+
wasm.__wbg_webterminal_free(ptr, 0);
|
|
119
|
+
}
|
|
120
|
+
draw() {
|
|
121
|
+
const ret = wasm.webterminal_draw(this.__wbg_ptr);
|
|
122
|
+
if (ret[1]) {
|
|
123
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* @param {HTMLElement} root
|
|
128
|
+
* @param {HTMLInputElement} input
|
|
129
|
+
* @param {string | null} [endpoint]
|
|
130
|
+
* @param {string | null} [cwd]
|
|
131
|
+
* @param {string | null} [session]
|
|
132
|
+
* @param {string | null} [theme]
|
|
133
|
+
*/
|
|
134
|
+
constructor(root, input, endpoint, cwd, session, theme) {
|
|
135
|
+
let ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3;
|
|
136
|
+
try {
|
|
137
|
+
ptr0 = isLikeNone(endpoint) ? 0 : passStringToWasm0(endpoint, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
138
|
+
len0 = WASM_VECTOR_LEN;
|
|
139
|
+
ptr1 = isLikeNone(cwd) ? 0 : passStringToWasm0(cwd, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
140
|
+
len1 = WASM_VECTOR_LEN;
|
|
141
|
+
ptr2 = isLikeNone(session) ? 0 : passStringToWasm0(session, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
142
|
+
len2 = WASM_VECTOR_LEN;
|
|
143
|
+
ptr3 = isLikeNone(theme) ? 0 : passStringToWasm0(theme, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
144
|
+
len3 = WASM_VECTOR_LEN;
|
|
145
|
+
} catch (e) {
|
|
146
|
+
if (ptr3) { wasm.__wbindgen_free(ptr3, len3 * 1, 1); }
|
|
147
|
+
if (ptr2) { wasm.__wbindgen_free(ptr2, len2 * 1, 1); }
|
|
148
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
149
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
150
|
+
throw e;
|
|
151
|
+
}
|
|
152
|
+
const ret = wasm.webterminal_new(root, input, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
153
|
+
if (ret[2]) {
|
|
154
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
155
|
+
}
|
|
156
|
+
this.__wbg_ptr = ret[0];
|
|
157
|
+
WebTerminalFinalization.register(this, this.__wbg_ptr, this);
|
|
158
|
+
return this;
|
|
159
|
+
}
|
|
160
|
+
resize() {
|
|
161
|
+
const ret = wasm.webterminal_resize(this.__wbg_ptr);
|
|
162
|
+
if (ret[1]) {
|
|
163
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
if (Symbol.dispose) WebTerminal.prototype[Symbol.dispose] = WebTerminal.prototype.free;
|
|
168
|
+
function __wbg_get_imports() {
|
|
169
|
+
const import0 = {
|
|
170
|
+
__proto__: null,
|
|
171
|
+
__wbg___wbindgen_debug_string_f249a2a76caa9a55: function(arg0, arg1) {
|
|
172
|
+
const ret = debugString(arg1);
|
|
173
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
174
|
+
const len1 = WASM_VECTOR_LEN;
|
|
175
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
176
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
177
|
+
},
|
|
178
|
+
__wbg___wbindgen_is_function_741ff2bb612836f5: function(arg0) {
|
|
179
|
+
const ret = typeof(arg0) === 'function';
|
|
180
|
+
return ret;
|
|
181
|
+
},
|
|
182
|
+
__wbg___wbindgen_is_string_fc456fee5d3317de: function(arg0) {
|
|
183
|
+
const ret = typeof(arg0) === 'string';
|
|
184
|
+
return ret;
|
|
185
|
+
},
|
|
186
|
+
__wbg___wbindgen_is_undefined_be5b34249ff1fc15: function(arg0) {
|
|
187
|
+
const ret = arg0 === undefined;
|
|
188
|
+
return ret;
|
|
189
|
+
},
|
|
190
|
+
__wbg___wbindgen_number_get_934b640d0889af78: function(arg0, arg1) {
|
|
191
|
+
const obj = arg1;
|
|
192
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
193
|
+
getDataViewMemory0().setFloat64((arg0 >>> 0) + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
194
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, !isLikeNone(ret), true);
|
|
195
|
+
},
|
|
196
|
+
__wbg___wbindgen_string_get_7ce8eee7fd327545: function(arg0, arg1) {
|
|
197
|
+
const obj = arg1;
|
|
198
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
199
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
200
|
+
var len1 = WASM_VECTOR_LEN;
|
|
201
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
202
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
203
|
+
},
|
|
204
|
+
__wbg___wbindgen_throw_4c88d8bf264fd984: function(arg0, arg1) {
|
|
205
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
206
|
+
},
|
|
207
|
+
__wbg__wbg_cb_unref_09736879a3f67559: function(arg0) {
|
|
208
|
+
arg0._wbg_cb_unref();
|
|
209
|
+
},
|
|
210
|
+
__wbg_addEventListener_847fd86b8c33ec43: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
211
|
+
arg0.addEventListener(getStringFromWasm0(arg1, arg2), arg3);
|
|
212
|
+
}, arguments); },
|
|
213
|
+
__wbg_altKey_423da1d67b588078: function(arg0) {
|
|
214
|
+
const ret = arg0.altKey;
|
|
215
|
+
return ret;
|
|
216
|
+
},
|
|
217
|
+
__wbg_altKey_f158b37d4bccf5ff: function(arg0) {
|
|
218
|
+
const ret = arg0.altKey;
|
|
219
|
+
return ret;
|
|
220
|
+
},
|
|
221
|
+
__wbg_appendChild_dbf7ad2f48413560: function() { return handleError(function (arg0, arg1) {
|
|
222
|
+
const ret = arg0.appendChild(arg1);
|
|
223
|
+
return ret;
|
|
224
|
+
}, arguments); },
|
|
225
|
+
__wbg_arrayBuffer_5abbcb61bd48f427: function(arg0) {
|
|
226
|
+
const ret = arg0.arrayBuffer();
|
|
227
|
+
return ret;
|
|
228
|
+
},
|
|
229
|
+
__wbg_beginPath_ab690dc0c7efe6dc: function(arg0) {
|
|
230
|
+
arg0.beginPath();
|
|
231
|
+
},
|
|
232
|
+
__wbg_body_5f971cbc6950ca4f: function(arg0) {
|
|
233
|
+
const ret = arg0.body;
|
|
234
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
235
|
+
},
|
|
236
|
+
__wbg_button_653210370515dd71: function(arg0) {
|
|
237
|
+
const ret = arg0.button;
|
|
238
|
+
return ret;
|
|
239
|
+
},
|
|
240
|
+
__wbg_clearRect_428f96a6ba73b2f4: function(arg0, arg1, arg2, arg3, arg4) {
|
|
241
|
+
arg0.clearRect(arg1, arg2, arg3, arg4);
|
|
242
|
+
},
|
|
243
|
+
__wbg_click_c6eff13daacf9806: function(arg0) {
|
|
244
|
+
arg0.click();
|
|
245
|
+
},
|
|
246
|
+
__wbg_clientHeight_b40e8971aed9fa2b: function(arg0) {
|
|
247
|
+
const ret = arg0.clientHeight;
|
|
248
|
+
return ret;
|
|
249
|
+
},
|
|
250
|
+
__wbg_clientWidth_269ea87f17b863bf: function(arg0) {
|
|
251
|
+
const ret = arg0.clientWidth;
|
|
252
|
+
return ret;
|
|
253
|
+
},
|
|
254
|
+
__wbg_clientX_7207eed549b03753: function(arg0) {
|
|
255
|
+
const ret = arg0.clientX;
|
|
256
|
+
return ret;
|
|
257
|
+
},
|
|
258
|
+
__wbg_clientY_3371139730cd6f74: function(arg0) {
|
|
259
|
+
const ret = arg0.clientY;
|
|
260
|
+
return ret;
|
|
261
|
+
},
|
|
262
|
+
__wbg_clip_26239db7c0b67972: function(arg0) {
|
|
263
|
+
arg0.clip();
|
|
264
|
+
},
|
|
265
|
+
__wbg_clipboardData_40289949920202d6: function(arg0) {
|
|
266
|
+
const ret = arg0.clipboardData;
|
|
267
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
268
|
+
},
|
|
269
|
+
__wbg_clipboard_047ad3d952a13066: function(arg0) {
|
|
270
|
+
const ret = arg0.clipboard;
|
|
271
|
+
return ret;
|
|
272
|
+
},
|
|
273
|
+
__wbg_close_5ee9c5fe4e8754a4: function() { return handleError(function (arg0) {
|
|
274
|
+
arg0.close();
|
|
275
|
+
}, arguments); },
|
|
276
|
+
__wbg_code_3e6881d821eab2c4: function(arg0) {
|
|
277
|
+
const ret = arg0.code;
|
|
278
|
+
return ret;
|
|
279
|
+
},
|
|
280
|
+
__wbg_code_5e0bc002c38697e5: function(arg0) {
|
|
281
|
+
const ret = arg0.code;
|
|
282
|
+
return ret;
|
|
283
|
+
},
|
|
284
|
+
__wbg_createElement_de4a31ed2fb252be: function() { return handleError(function (arg0, arg1, arg2) {
|
|
285
|
+
const ret = arg0.createElement(getStringFromWasm0(arg1, arg2));
|
|
286
|
+
return ret;
|
|
287
|
+
}, arguments); },
|
|
288
|
+
__wbg_ctrlKey_97b77227d0599549: function(arg0) {
|
|
289
|
+
const ret = arg0.ctrlKey;
|
|
290
|
+
return ret;
|
|
291
|
+
},
|
|
292
|
+
__wbg_ctrlKey_b7978e4cf78dc62b: function(arg0) {
|
|
293
|
+
const ret = arg0.ctrlKey;
|
|
294
|
+
return ret;
|
|
295
|
+
},
|
|
296
|
+
__wbg_data_c7e5e8500f1bca2f: function(arg0) {
|
|
297
|
+
const ret = arg0.data;
|
|
298
|
+
return ret;
|
|
299
|
+
},
|
|
300
|
+
__wbg_deltaMode_d2ba7673c0228446: function(arg0) {
|
|
301
|
+
const ret = arg0.deltaMode;
|
|
302
|
+
return ret;
|
|
303
|
+
},
|
|
304
|
+
__wbg_deltaY_37dc0a54748a91f4: function(arg0) {
|
|
305
|
+
const ret = arg0.deltaY;
|
|
306
|
+
return ret;
|
|
307
|
+
},
|
|
308
|
+
__wbg_document_3b5c3071b43e97ee: function(arg0) {
|
|
309
|
+
const ret = arg0.document;
|
|
310
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
311
|
+
},
|
|
312
|
+
__wbg_files_d7e65f35a3acc89f: function(arg0) {
|
|
313
|
+
const ret = arg0.files;
|
|
314
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
315
|
+
},
|
|
316
|
+
__wbg_fillRect_e1f0b9915220348b: function(arg0, arg1, arg2, arg3, arg4) {
|
|
317
|
+
arg0.fillRect(arg1, arg2, arg3, arg4);
|
|
318
|
+
},
|
|
319
|
+
__wbg_fillText_89d353a9ad9f4a1a: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
320
|
+
arg0.fillText(getStringFromWasm0(arg1, arg2), arg3, arg4);
|
|
321
|
+
}, arguments); },
|
|
322
|
+
__wbg_getBoundingClientRect_329ca748ec918b0c: function(arg0) {
|
|
323
|
+
const ret = arg0.getBoundingClientRect();
|
|
324
|
+
return ret;
|
|
325
|
+
},
|
|
326
|
+
__wbg_getContext_9d32151c28a36ed6: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
327
|
+
const ret = arg0.getContext(getStringFromWasm0(arg1, arg2), arg3);
|
|
328
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
329
|
+
}, arguments); },
|
|
330
|
+
__wbg_getData_a7ee5645c60062ce: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
331
|
+
const ret = arg1.getData(getStringFromWasm0(arg2, arg3));
|
|
332
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
333
|
+
const len1 = WASM_VECTOR_LEN;
|
|
334
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
335
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
336
|
+
}, arguments); },
|
|
337
|
+
__wbg_getElementById_7ee213db584f37b0: function(arg0, arg1, arg2) {
|
|
338
|
+
const ret = arg0.getElementById(getStringFromWasm0(arg1, arg2));
|
|
339
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
340
|
+
},
|
|
341
|
+
__wbg_getItem_49556a3e59cfb688: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
342
|
+
const ret = arg1.getItem(getStringFromWasm0(arg2, arg3));
|
|
343
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
344
|
+
var len1 = WASM_VECTOR_LEN;
|
|
345
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
346
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
347
|
+
}, arguments); },
|
|
348
|
+
__wbg_getRandomValues_01076ebaa66264dc: function() { return handleError(function (arg0, arg1) {
|
|
349
|
+
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
350
|
+
}, arguments); },
|
|
351
|
+
__wbg_get_955bde2b2fe2defa: function(arg0, arg1) {
|
|
352
|
+
const ret = arg0[arg1 >>> 0];
|
|
353
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
354
|
+
},
|
|
355
|
+
__wbg_hash_417b824fbef757c3: function(arg0, arg1) {
|
|
356
|
+
const ret = arg1.hash;
|
|
357
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
358
|
+
const len1 = WASM_VECTOR_LEN;
|
|
359
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
360
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
361
|
+
},
|
|
362
|
+
__wbg_height_a9545d340131bb46: function() { return handleError(function (arg0) {
|
|
363
|
+
const ret = arg0.height;
|
|
364
|
+
return ret;
|
|
365
|
+
}, arguments); },
|
|
366
|
+
__wbg_height_ce5f2b5901ba05ab: function(arg0) {
|
|
367
|
+
const ret = arg0.height;
|
|
368
|
+
return ret;
|
|
369
|
+
},
|
|
370
|
+
__wbg_host_68f98460c7328ca5: function(arg0, arg1) {
|
|
371
|
+
const ret = arg1.host;
|
|
372
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
373
|
+
const len1 = WASM_VECTOR_LEN;
|
|
374
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
375
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
376
|
+
},
|
|
377
|
+
__wbg_hostname_8ccf6cf3da91c969: function(arg0, arg1) {
|
|
378
|
+
const ret = arg1.hostname;
|
|
379
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
380
|
+
const len1 = WASM_VECTOR_LEN;
|
|
381
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
382
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
383
|
+
},
|
|
384
|
+
__wbg_href_436d1661275da591: function(arg0, arg1) {
|
|
385
|
+
const ret = arg1.href;
|
|
386
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
387
|
+
const len1 = WASM_VECTOR_LEN;
|
|
388
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
389
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
390
|
+
},
|
|
391
|
+
__wbg_href_a0128fb7c568d8e5: function() { return handleError(function (arg0, arg1) {
|
|
392
|
+
const ret = arg1.href;
|
|
393
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
394
|
+
const len1 = WASM_VECTOR_LEN;
|
|
395
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
396
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
397
|
+
}, arguments); },
|
|
398
|
+
__wbg_id_2aec05cae0b5abeb: function(arg0, arg1) {
|
|
399
|
+
const ret = arg1.id;
|
|
400
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
401
|
+
const len1 = WASM_VECTOR_LEN;
|
|
402
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
403
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
404
|
+
},
|
|
405
|
+
__wbg_innerHeight_63bad5524492f70a: function() { return handleError(function (arg0) {
|
|
406
|
+
const ret = arg0.innerHeight;
|
|
407
|
+
return ret;
|
|
408
|
+
}, arguments); },
|
|
409
|
+
__wbg_innerWidth_3bc249efddc56481: function() { return handleError(function (arg0) {
|
|
410
|
+
const ret = arg0.innerWidth;
|
|
411
|
+
return ret;
|
|
412
|
+
}, arguments); },
|
|
413
|
+
__wbg_instanceof_ArrayBuffer_12cdaa4161423e6b: function(arg0) {
|
|
414
|
+
let result;
|
|
415
|
+
try {
|
|
416
|
+
result = arg0 instanceof ArrayBuffer;
|
|
417
|
+
} catch (_) {
|
|
418
|
+
result = false;
|
|
419
|
+
}
|
|
420
|
+
const ret = result;
|
|
421
|
+
return ret;
|
|
422
|
+
},
|
|
423
|
+
__wbg_instanceof_Blob_56431c8f5387c12d: function(arg0) {
|
|
424
|
+
let result;
|
|
425
|
+
try {
|
|
426
|
+
result = arg0 instanceof Blob;
|
|
427
|
+
} catch (_) {
|
|
428
|
+
result = false;
|
|
429
|
+
}
|
|
430
|
+
const ret = result;
|
|
431
|
+
return ret;
|
|
432
|
+
},
|
|
433
|
+
__wbg_instanceof_CanvasRenderingContext2d_72a60be8aaadecab: function(arg0) {
|
|
434
|
+
let result;
|
|
435
|
+
try {
|
|
436
|
+
result = arg0 instanceof CanvasRenderingContext2D;
|
|
437
|
+
} catch (_) {
|
|
438
|
+
result = false;
|
|
439
|
+
}
|
|
440
|
+
const ret = result;
|
|
441
|
+
return ret;
|
|
442
|
+
},
|
|
443
|
+
__wbg_instanceof_HtmlCanvasElement_89f280683e987b9e: function(arg0) {
|
|
444
|
+
let result;
|
|
445
|
+
try {
|
|
446
|
+
result = arg0 instanceof HTMLCanvasElement;
|
|
447
|
+
} catch (_) {
|
|
448
|
+
result = false;
|
|
449
|
+
}
|
|
450
|
+
const ret = result;
|
|
451
|
+
return ret;
|
|
452
|
+
},
|
|
453
|
+
__wbg_instanceof_Window_5cf453f5639aa1a2: function(arg0) {
|
|
454
|
+
let result;
|
|
455
|
+
try {
|
|
456
|
+
result = arg0 instanceof Window;
|
|
457
|
+
} catch (_) {
|
|
458
|
+
result = false;
|
|
459
|
+
}
|
|
460
|
+
const ret = result;
|
|
461
|
+
return ret;
|
|
462
|
+
},
|
|
463
|
+
__wbg_isComposing_b1e74068b6ff27e2: function(arg0) {
|
|
464
|
+
const ret = arg0.isComposing;
|
|
465
|
+
return ret;
|
|
466
|
+
},
|
|
467
|
+
__wbg_key_76125a528069feff: function(arg0, arg1) {
|
|
468
|
+
const ret = arg1.key;
|
|
469
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
470
|
+
const len1 = WASM_VECTOR_LEN;
|
|
471
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
472
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
473
|
+
},
|
|
474
|
+
__wbg_lastElementChild_cba832a7e0f13cff: function(arg0) {
|
|
475
|
+
const ret = arg0.lastElementChild;
|
|
476
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
477
|
+
},
|
|
478
|
+
__wbg_left_9df47701ff317a35: function(arg0) {
|
|
479
|
+
const ret = arg0.left;
|
|
480
|
+
return ret;
|
|
481
|
+
},
|
|
482
|
+
__wbg_length_186163212ffe79c3: function(arg0) {
|
|
483
|
+
const ret = arg0.length;
|
|
484
|
+
return ret;
|
|
485
|
+
},
|
|
486
|
+
__wbg_localStorage_6827cfe6db14a9f6: function() { return handleError(function (arg0) {
|
|
487
|
+
const ret = arg0.localStorage;
|
|
488
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
489
|
+
}, arguments); },
|
|
490
|
+
__wbg_location_7320782274fc691b: function(arg0) {
|
|
491
|
+
const ret = arg0.location;
|
|
492
|
+
return ret;
|
|
493
|
+
},
|
|
494
|
+
__wbg_message_fc58bc095885b5e5: function(arg0, arg1) {
|
|
495
|
+
const ret = arg1.message;
|
|
496
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
497
|
+
const len1 = WASM_VECTOR_LEN;
|
|
498
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
499
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
500
|
+
},
|
|
501
|
+
__wbg_metaKey_33c588e07fd74724: function(arg0) {
|
|
502
|
+
const ret = arg0.metaKey;
|
|
503
|
+
return ret;
|
|
504
|
+
},
|
|
505
|
+
__wbg_name_f721590be23206c9: function(arg0, arg1) {
|
|
506
|
+
const ret = arg1.name;
|
|
507
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
508
|
+
const len1 = WASM_VECTOR_LEN;
|
|
509
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
510
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
511
|
+
},
|
|
512
|
+
__wbg_navigator_c17f443a6fe5d38d: function(arg0) {
|
|
513
|
+
const ret = arg0.navigator;
|
|
514
|
+
return ret;
|
|
515
|
+
},
|
|
516
|
+
__wbg_new_13de428334042d26: function(arg0) {
|
|
517
|
+
const ret = new Uint8Array(arg0);
|
|
518
|
+
return ret;
|
|
519
|
+
},
|
|
520
|
+
__wbg_new_37eb45aaf5eeb820: function() {
|
|
521
|
+
const ret = new Array();
|
|
522
|
+
return ret;
|
|
523
|
+
},
|
|
524
|
+
__wbg_new_7075786089b89c5e: function() {
|
|
525
|
+
const ret = new Map();
|
|
526
|
+
return ret;
|
|
527
|
+
},
|
|
528
|
+
__wbg_new_787b9fb330d55d78: function(arg0, arg1) {
|
|
529
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
530
|
+
return ret;
|
|
531
|
+
},
|
|
532
|
+
__wbg_new_96baed0986e0d99f: function() { return handleError(function (arg0, arg1) {
|
|
533
|
+
const ret = new URL(getStringFromWasm0(arg0, arg1));
|
|
534
|
+
return ret;
|
|
535
|
+
}, arguments); },
|
|
536
|
+
__wbg_new_cd4348290afae586: function() {
|
|
537
|
+
const ret = new Object();
|
|
538
|
+
return ret;
|
|
539
|
+
},
|
|
540
|
+
__wbg_new_d72daa1c90ded389: function() { return handleError(function (arg0, arg1) {
|
|
541
|
+
const ret = new WebSocket(getStringFromWasm0(arg0, arg1));
|
|
542
|
+
return ret;
|
|
543
|
+
}, arguments); },
|
|
544
|
+
__wbg_new_with_base_44e88b67db0c589b: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
545
|
+
const ret = new URL(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
|
|
546
|
+
return ret;
|
|
547
|
+
}, arguments); },
|
|
548
|
+
__wbg_new_with_str_sequence_75b26d88172889d0: function() { return handleError(function (arg0, arg1, arg2) {
|
|
549
|
+
const ret = new WebSocket(getStringFromWasm0(arg0, arg1), arg2);
|
|
550
|
+
return ret;
|
|
551
|
+
}, arguments); },
|
|
552
|
+
__wbg_offsetX_b3f88f70dc639385: function(arg0) {
|
|
553
|
+
const ret = arg0.offsetX;
|
|
554
|
+
return ret;
|
|
555
|
+
},
|
|
556
|
+
__wbg_offsetY_8037bf2718ef7393: function(arg0) {
|
|
557
|
+
const ret = arg0.offsetY;
|
|
558
|
+
return ret;
|
|
559
|
+
},
|
|
560
|
+
__wbg_password_6ace9fadcdb503bf: function(arg0, arg1) {
|
|
561
|
+
const ret = arg1.password;
|
|
562
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
563
|
+
const len1 = WASM_VECTOR_LEN;
|
|
564
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
565
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
566
|
+
},
|
|
567
|
+
__wbg_preventDefault_cfb06b02e7406899: function(arg0) {
|
|
568
|
+
arg0.preventDefault();
|
|
569
|
+
},
|
|
570
|
+
__wbg_protocol_e7b9813a6bd3e53b: function(arg0, arg1) {
|
|
571
|
+
const ret = arg1.protocol;
|
|
572
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
573
|
+
const len1 = WASM_VECTOR_LEN;
|
|
574
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
575
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
576
|
+
},
|
|
577
|
+
__wbg_prototypesetcall_13162965d1fe7aa3: function(arg0, arg1, arg2) {
|
|
578
|
+
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
579
|
+
},
|
|
580
|
+
__wbg_push_c9f4893fc209f768: function(arg0, arg1) {
|
|
581
|
+
const ret = arg0.push(arg1);
|
|
582
|
+
return ret;
|
|
583
|
+
},
|
|
584
|
+
__wbg_queueMicrotask_1e8503a8a690f0a3: function(arg0) {
|
|
585
|
+
const ret = arg0.queueMicrotask;
|
|
586
|
+
return ret;
|
|
587
|
+
},
|
|
588
|
+
__wbg_queueMicrotask_4a1a4d8dd332373b: function(arg0) {
|
|
589
|
+
queueMicrotask(arg0);
|
|
590
|
+
},
|
|
591
|
+
__wbg_readyState_039bc047141a5f6d: function(arg0) {
|
|
592
|
+
const ret = arg0.readyState;
|
|
593
|
+
return ret;
|
|
594
|
+
},
|
|
595
|
+
__wbg_reason_34b16516ab3f72d4: function(arg0, arg1) {
|
|
596
|
+
const ret = arg1.reason;
|
|
597
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
598
|
+
const len1 = WASM_VECTOR_LEN;
|
|
599
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
600
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
601
|
+
},
|
|
602
|
+
__wbg_rect_ab5601e64afdbc33: function(arg0, arg1, arg2, arg3, arg4) {
|
|
603
|
+
arg0.rect(arg1, arg2, arg3, arg4);
|
|
604
|
+
},
|
|
605
|
+
__wbg_removeEventListener_4e20bd5fac3de092: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
606
|
+
arg0.removeEventListener(getStringFromWasm0(arg1, arg2), arg3);
|
|
607
|
+
}, arguments); },
|
|
608
|
+
__wbg_remove_8228e91d7ddbc755: function(arg0) {
|
|
609
|
+
arg0.remove();
|
|
610
|
+
},
|
|
611
|
+
__wbg_resolve_dbf78ab4942478b0: function(arg0) {
|
|
612
|
+
const ret = Promise.resolve(arg0);
|
|
613
|
+
return ret;
|
|
614
|
+
},
|
|
615
|
+
__wbg_restore_f322d9dcee2d3472: function(arg0) {
|
|
616
|
+
arg0.restore();
|
|
617
|
+
},
|
|
618
|
+
__wbg_save_1375b4c2f3596b8b: function(arg0) {
|
|
619
|
+
arg0.save();
|
|
620
|
+
},
|
|
621
|
+
__wbg_screen_1825c892891632d6: function() { return handleError(function (arg0) {
|
|
622
|
+
const ret = arg0.screen;
|
|
623
|
+
return ret;
|
|
624
|
+
}, arguments); },
|
|
625
|
+
__wbg_search_88703ce66d1580b3: function(arg0, arg1) {
|
|
626
|
+
const ret = arg1.search;
|
|
627
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
628
|
+
const len1 = WASM_VECTOR_LEN;
|
|
629
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
630
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
631
|
+
},
|
|
632
|
+
__wbg_send_cd51063ca1be4d0f: function() { return handleError(function (arg0, arg1, arg2) {
|
|
633
|
+
arg0.send(getStringFromWasm0(arg1, arg2));
|
|
634
|
+
}, arguments); },
|
|
635
|
+
__wbg_send_d83d0891cf698779: function() { return handleError(function (arg0, arg1, arg2) {
|
|
636
|
+
arg0.send(getArrayU8FromWasm0(arg1, arg2));
|
|
637
|
+
}, arguments); },
|
|
638
|
+
__wbg_setItem_cfa3cb31f271776a: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
639
|
+
arg0.setItem(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
640
|
+
}, arguments); },
|
|
641
|
+
__wbg_set_2793479888329cb6: function() { return handleError(function (arg0, arg1, arg2) {
|
|
642
|
+
const ret = Reflect.set(arg0, arg1, arg2);
|
|
643
|
+
return ret;
|
|
644
|
+
}, arguments); },
|
|
645
|
+
__wbg_set_8282f7e0d2d01336: function(arg0, arg1, arg2) {
|
|
646
|
+
const ret = arg0.set(arg1, arg2);
|
|
647
|
+
return ret;
|
|
648
|
+
},
|
|
649
|
+
__wbg_set_binaryType_d5b4dafd0f127fb2: function(arg0, arg1) {
|
|
650
|
+
arg0.binaryType = __wbindgen_enum_BinaryType[arg1];
|
|
651
|
+
},
|
|
652
|
+
__wbg_set_fillStyle_95fde67582a9c695: function(arg0, arg1, arg2) {
|
|
653
|
+
arg0.fillStyle = getStringFromWasm0(arg1, arg2);
|
|
654
|
+
},
|
|
655
|
+
__wbg_set_font_aa0c0c514c73a5fa: function(arg0, arg1, arg2) {
|
|
656
|
+
arg0.font = getStringFromWasm0(arg1, arg2);
|
|
657
|
+
},
|
|
658
|
+
__wbg_set_hash_89e5e2c008b91d31: function(arg0, arg1, arg2) {
|
|
659
|
+
arg0.hash = getStringFromWasm0(arg1, arg2);
|
|
660
|
+
},
|
|
661
|
+
__wbg_set_height_ae0610d318c3428c: function(arg0, arg1) {
|
|
662
|
+
arg0.height = arg1 >>> 0;
|
|
663
|
+
},
|
|
664
|
+
__wbg_set_onclose_078935cf8d0fb024: function(arg0, arg1) {
|
|
665
|
+
arg0.onclose = arg1;
|
|
666
|
+
},
|
|
667
|
+
__wbg_set_onerror_f7f089f7f059501c: function(arg0, arg1) {
|
|
668
|
+
arg0.onerror = arg1;
|
|
669
|
+
},
|
|
670
|
+
__wbg_set_onmessage_26abc49cfa5f9ffc: function(arg0, arg1) {
|
|
671
|
+
arg0.onmessage = arg1;
|
|
672
|
+
},
|
|
673
|
+
__wbg_set_onopen_757be120cc7b1ea6: function(arg0, arg1) {
|
|
674
|
+
arg0.onopen = arg1;
|
|
675
|
+
},
|
|
676
|
+
__wbg_set_protocol_b93c106c6d73adc5: function(arg0, arg1, arg2) {
|
|
677
|
+
arg0.protocol = getStringFromWasm0(arg1, arg2);
|
|
678
|
+
},
|
|
679
|
+
__wbg_set_strokeStyle_b90c8a6e0d37c80d: function(arg0, arg1, arg2) {
|
|
680
|
+
arg0.strokeStyle = getStringFromWasm0(arg1, arg2);
|
|
681
|
+
},
|
|
682
|
+
__wbg_set_textBaseline_ff2e3c5c84684b23: function(arg0, arg1, arg2) {
|
|
683
|
+
arg0.textBaseline = getStringFromWasm0(arg1, arg2);
|
|
684
|
+
},
|
|
685
|
+
__wbg_set_value_cb7e77c93a95e491: function(arg0, arg1, arg2) {
|
|
686
|
+
arg0.value = getStringFromWasm0(arg1, arg2);
|
|
687
|
+
},
|
|
688
|
+
__wbg_set_width_5f89a551b5472887: function(arg0, arg1) {
|
|
689
|
+
arg0.width = arg1 >>> 0;
|
|
690
|
+
},
|
|
691
|
+
__wbg_shiftKey_6a84be2563ae8a55: function(arg0) {
|
|
692
|
+
const ret = arg0.shiftKey;
|
|
693
|
+
return ret;
|
|
694
|
+
},
|
|
695
|
+
__wbg_shiftKey_a6ce93ef743d5834: function(arg0) {
|
|
696
|
+
const ret = arg0.shiftKey;
|
|
697
|
+
return ret;
|
|
698
|
+
},
|
|
699
|
+
__wbg_size_9d1084e29743663c: function(arg0) {
|
|
700
|
+
const ret = arg0.size;
|
|
701
|
+
return ret;
|
|
702
|
+
},
|
|
703
|
+
__wbg_static_accessor_GLOBAL_THIS_003ee833af9699fc: function() {
|
|
704
|
+
const ret = typeof globalThis === 'undefined' ? undefined : globalThis;
|
|
705
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
706
|
+
},
|
|
707
|
+
__wbg_static_accessor_GLOBAL_e4293fb22cbe77da: function() {
|
|
708
|
+
const ret = typeof global === 'undefined' ? undefined : global;
|
|
709
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
710
|
+
},
|
|
711
|
+
__wbg_static_accessor_SELF_53bb20457401453d: function() {
|
|
712
|
+
const ret = typeof self === 'undefined' ? undefined : self;
|
|
713
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
714
|
+
},
|
|
715
|
+
__wbg_static_accessor_WINDOW_b5e0810bfecb7feb: function() {
|
|
716
|
+
const ret = typeof window === 'undefined' ? undefined : window;
|
|
717
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
718
|
+
},
|
|
719
|
+
__wbg_strokeRect_92ff808375332184: function(arg0, arg1, arg2, arg3, arg4) {
|
|
720
|
+
arg0.strokeRect(arg1, arg2, arg3, arg4);
|
|
721
|
+
},
|
|
722
|
+
__wbg_then_656f253a5dd7d8ea: function(arg0, arg1, arg2) {
|
|
723
|
+
const ret = arg0.then(arg1, arg2);
|
|
724
|
+
return ret;
|
|
725
|
+
},
|
|
726
|
+
__wbg_then_e3f7f2d365708be8: function(arg0, arg1) {
|
|
727
|
+
const ret = arg0.then(arg1);
|
|
728
|
+
return ret;
|
|
729
|
+
},
|
|
730
|
+
__wbg_top_2d45cda4e060d8bf: function(arg0) {
|
|
731
|
+
const ret = arg0.top;
|
|
732
|
+
return ret;
|
|
733
|
+
},
|
|
734
|
+
__wbg_translate_73a88129c5d9f3b2: function() { return handleError(function (arg0, arg1, arg2) {
|
|
735
|
+
arg0.translate(arg1, arg2);
|
|
736
|
+
}, arguments); },
|
|
737
|
+
__wbg_type_5f9ceabba7ef7a1a: function(arg0, arg1) {
|
|
738
|
+
const ret = arg1.type;
|
|
739
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
740
|
+
const len1 = WASM_VECTOR_LEN;
|
|
741
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
742
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
743
|
+
},
|
|
744
|
+
__wbg_type_c93f3ee8b7eb4f89: function(arg0, arg1) {
|
|
745
|
+
const ret = arg1.type;
|
|
746
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
747
|
+
const len1 = WASM_VECTOR_LEN;
|
|
748
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
749
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
750
|
+
},
|
|
751
|
+
__wbg_url_eb8098cc36a9c8e2: function(arg0, arg1) {
|
|
752
|
+
const ret = arg1.url;
|
|
753
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
754
|
+
const len1 = WASM_VECTOR_LEN;
|
|
755
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
756
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
757
|
+
},
|
|
758
|
+
__wbg_userAgent_a20b4771d027eeaa: function() { return handleError(function (arg0, arg1) {
|
|
759
|
+
const ret = arg1.userAgent;
|
|
760
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
761
|
+
const len1 = WASM_VECTOR_LEN;
|
|
762
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
763
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
764
|
+
}, arguments); },
|
|
765
|
+
__wbg_username_75b550f1f5bfb642: function(arg0, arg1) {
|
|
766
|
+
const ret = arg1.username;
|
|
767
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
768
|
+
const len1 = WASM_VECTOR_LEN;
|
|
769
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
770
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
771
|
+
},
|
|
772
|
+
__wbg_wasClean_5318a54e8ede66d8: function(arg0) {
|
|
773
|
+
const ret = arg0.wasClean;
|
|
774
|
+
return ret;
|
|
775
|
+
},
|
|
776
|
+
__wbg_width_691ab5c3475ebc9b: function() { return handleError(function (arg0) {
|
|
777
|
+
const ret = arg0.width;
|
|
778
|
+
return ret;
|
|
779
|
+
}, arguments); },
|
|
780
|
+
__wbg_width_d3c8d417d821d2fd: function(arg0) {
|
|
781
|
+
const ret = arg0.width;
|
|
782
|
+
return ret;
|
|
783
|
+
},
|
|
784
|
+
__wbg_writeText_6b6a85b68a7dd3eb: function(arg0, arg1, arg2) {
|
|
785
|
+
const ret = arg0.writeText(getStringFromWasm0(arg1, arg2));
|
|
786
|
+
return ret;
|
|
787
|
+
},
|
|
788
|
+
__wbindgen_generic_0000000000000001: function(arg0, arg1) {
|
|
789
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 475, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
790
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h98607a92767cc3f7);
|
|
791
|
+
return ret;
|
|
792
|
+
},
|
|
793
|
+
__wbindgen_generic_0000000000000002: function(arg0, arg1) {
|
|
794
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("ClipboardEvent")], shim_idx: 112, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
795
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h0cf6a545f24f3585);
|
|
796
|
+
return ret;
|
|
797
|
+
},
|
|
798
|
+
__wbindgen_generic_0000000000000003: function(arg0, arg1) {
|
|
799
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 112, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
800
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h0cf6a545f24f3585_13);
|
|
801
|
+
return ret;
|
|
802
|
+
},
|
|
803
|
+
__wbindgen_generic_0000000000000004: function(arg0, arg1) {
|
|
804
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 422, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
805
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hf8ff5373939ad172);
|
|
806
|
+
return ret;
|
|
807
|
+
},
|
|
808
|
+
__wbindgen_generic_0000000000000005: function(arg0, arg1) {
|
|
809
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("KeyboardEvent")], shim_idx: 112, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
810
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h0cf6a545f24f3585_15);
|
|
811
|
+
return ret;
|
|
812
|
+
},
|
|
813
|
+
__wbindgen_generic_0000000000000006: function(arg0, arg1) {
|
|
814
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 363, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
815
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h7879d84ce63a86f9);
|
|
816
|
+
return ret;
|
|
817
|
+
},
|
|
818
|
+
__wbindgen_generic_0000000000000007: function(arg0, arg1) {
|
|
819
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MouseEvent")], shim_idx: 440, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
820
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h350123de83ceea12);
|
|
821
|
+
return ret;
|
|
822
|
+
},
|
|
823
|
+
__wbindgen_generic_0000000000000008: function(arg0, arg1) {
|
|
824
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("WheelEvent")], shim_idx: 112, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
825
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h0cf6a545f24f3585_18);
|
|
826
|
+
return ret;
|
|
827
|
+
},
|
|
828
|
+
__wbindgen_generic_0000000000000009: function(arg0, arg1) {
|
|
829
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 114, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
830
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h836a6cd050ab46dc);
|
|
831
|
+
return ret;
|
|
832
|
+
},
|
|
833
|
+
__wbindgen_generic_000000000000000a: function(arg0) {
|
|
834
|
+
// Cast intrinsic for `F64 -> Externref`.
|
|
835
|
+
const ret = arg0;
|
|
836
|
+
return ret;
|
|
837
|
+
},
|
|
838
|
+
__wbindgen_generic_000000000000000b: function(arg0, arg1) {
|
|
839
|
+
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
840
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
841
|
+
return ret;
|
|
842
|
+
},
|
|
843
|
+
__wbindgen_init_externref_table: function() {
|
|
844
|
+
const table = wasm.__wbindgen_externrefs;
|
|
845
|
+
table.set(0, undefined);
|
|
846
|
+
table.set(1024, undefined);
|
|
847
|
+
table.set(1025, null);
|
|
848
|
+
table.set(1026, true);
|
|
849
|
+
table.set(1027, false);
|
|
850
|
+
},
|
|
851
|
+
};
|
|
852
|
+
return {
|
|
853
|
+
__proto__: null,
|
|
854
|
+
"./hrns_tui_bg.js": import0,
|
|
855
|
+
};
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
function wasm_bindgen__convert__closures_____invoke__h836a6cd050ab46dc(arg0, arg1) {
|
|
859
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h836a6cd050ab46dc(arg0, arg1);
|
|
860
|
+
}
|
|
861
|
+
|
|
862
|
+
function wasm_bindgen__convert__closures_____invoke__h0cf6a545f24f3585(arg0, arg1, arg2) {
|
|
863
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h0cf6a545f24f3585(arg0, arg1, arg2);
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
function wasm_bindgen__convert__closures_____invoke__h0cf6a545f24f3585_13(arg0, arg1, arg2) {
|
|
867
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h0cf6a545f24f3585_13(arg0, arg1, arg2);
|
|
868
|
+
}
|
|
869
|
+
|
|
870
|
+
function wasm_bindgen__convert__closures_____invoke__hf8ff5373939ad172(arg0, arg1, arg2) {
|
|
871
|
+
wasm.wasm_bindgen__convert__closures_____invoke__hf8ff5373939ad172(arg0, arg1, arg2);
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
function wasm_bindgen__convert__closures_____invoke__h0cf6a545f24f3585_15(arg0, arg1, arg2) {
|
|
875
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h0cf6a545f24f3585_15(arg0, arg1, arg2);
|
|
876
|
+
}
|
|
877
|
+
|
|
878
|
+
function wasm_bindgen__convert__closures_____invoke__h7879d84ce63a86f9(arg0, arg1, arg2) {
|
|
879
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h7879d84ce63a86f9(arg0, arg1, arg2);
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
function wasm_bindgen__convert__closures_____invoke__h350123de83ceea12(arg0, arg1, arg2) {
|
|
883
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h350123de83ceea12(arg0, arg1, arg2);
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
function wasm_bindgen__convert__closures_____invoke__h0cf6a545f24f3585_18(arg0, arg1, arg2) {
|
|
887
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h0cf6a545f24f3585_18(arg0, arg1, arg2);
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
function wasm_bindgen__convert__closures_____invoke__h98607a92767cc3f7(arg0, arg1, arg2) {
|
|
891
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h98607a92767cc3f7(arg0, arg1, arg2);
|
|
892
|
+
if (ret[1]) {
|
|
893
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
894
|
+
}
|
|
895
|
+
}
|
|
896
|
+
|
|
897
|
+
|
|
898
|
+
const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
|
|
899
|
+
const TerminalDebugApiFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
900
|
+
? { register: () => {}, unregister: () => {} }
|
|
901
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_terminaldebugapi_free(ptr, 1));
|
|
902
|
+
const WebTerminalFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
903
|
+
? { register: () => {}, unregister: () => {} }
|
|
904
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_webterminal_free(ptr, 1));
|
|
905
|
+
|
|
906
|
+
function addToExternrefTable0(obj) {
|
|
907
|
+
const idx = wasm.__externref_table_alloc();
|
|
908
|
+
wasm.__wbindgen_externrefs.set(idx, obj);
|
|
909
|
+
return idx;
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
913
|
+
? { register: () => {}, unregister: () => {} }
|
|
914
|
+
: new FinalizationRegistry(state => wasm.__wbindgen_destroy_closure(state.a, state.b));
|
|
915
|
+
|
|
916
|
+
function debugString(val) {
|
|
917
|
+
switch (typeof val) {
|
|
918
|
+
// primitive types
|
|
919
|
+
case 'number':
|
|
920
|
+
case 'boolean':
|
|
921
|
+
case 'undefined':
|
|
922
|
+
return `${val}`;
|
|
923
|
+
case 'string':
|
|
924
|
+
return JSON.stringify(val);
|
|
925
|
+
case 'bigint':
|
|
926
|
+
return `${val}n`;
|
|
927
|
+
case 'symbol':
|
|
928
|
+
return val.description !== undefined
|
|
929
|
+
? `Symbol(${val.description})`
|
|
930
|
+
: 'Symbol';
|
|
931
|
+
case 'function':
|
|
932
|
+
return typeof val.name === 'string' && val.name !== ''
|
|
933
|
+
? `Function(${val.name})`
|
|
934
|
+
: 'Function';
|
|
935
|
+
case 'object': {
|
|
936
|
+
if (val === null) {
|
|
937
|
+
return 'null';
|
|
938
|
+
}
|
|
939
|
+
// objects
|
|
940
|
+
if (Array.isArray(val)) {
|
|
941
|
+
return '[' + Array.from(val, debugString).join(', ') + ']';
|
|
942
|
+
}
|
|
943
|
+
// errors
|
|
944
|
+
if (val instanceof Error) {
|
|
945
|
+
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
const toStringOutput = toString.call(val);
|
|
949
|
+
// Test for built-in
|
|
950
|
+
const className = /\[object ([^\]]+)\]/.exec(toStringOutput)?.[1];
|
|
951
|
+
|
|
952
|
+
// Failed to match the standard '[object ClassName]'
|
|
953
|
+
if (className === undefined) {
|
|
954
|
+
return toStringOutput;
|
|
955
|
+
}
|
|
956
|
+
if (className === 'Object') {
|
|
957
|
+
// we're a user defined class or Object
|
|
958
|
+
// JSON.stringify avoids problems with cycles, and is generally much
|
|
959
|
+
// easier than looping through ownProperties of `val`.
|
|
960
|
+
try {
|
|
961
|
+
return 'Object(' + JSON.stringify(val) + ')';
|
|
962
|
+
} catch (_) {
|
|
963
|
+
return 'Object';
|
|
964
|
+
}
|
|
965
|
+
}
|
|
966
|
+
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
967
|
+
return className;
|
|
968
|
+
}
|
|
969
|
+
// Per MDN: 'This list of values is exhaustive.'
|
|
970
|
+
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/typeof#description
|
|
971
|
+
}
|
|
972
|
+
}
|
|
973
|
+
|
|
974
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
975
|
+
ptr = ptr >>> 0;
|
|
976
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
977
|
+
}
|
|
978
|
+
|
|
979
|
+
let cachedDataViewMemory0 = null;
|
|
980
|
+
function getDataViewMemory0() {
|
|
981
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
982
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
983
|
+
}
|
|
984
|
+
return cachedDataViewMemory0;
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
function getStringFromWasm0(ptr, len) {
|
|
988
|
+
ptr = ptr >>> 0;
|
|
989
|
+
return decodeText(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
990
|
+
}
|
|
991
|
+
|
|
992
|
+
let cachedUint8ArrayMemory0 = null;
|
|
993
|
+
function getUint8ArrayMemory0() {
|
|
994
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
995
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
996
|
+
}
|
|
997
|
+
return cachedUint8ArrayMemory0;
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
function handleError(f, args) {
|
|
1001
|
+
try {
|
|
1002
|
+
return f.apply(this, args);
|
|
1003
|
+
} catch (e) {
|
|
1004
|
+
const idx = addToExternrefTable0(e);
|
|
1005
|
+
wasm.__wbindgen_exn_store(idx);
|
|
1006
|
+
}
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1009
|
+
function isLikeNone(x) {
|
|
1010
|
+
return x === undefined || x === null;
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
function makeMutClosure(arg0, arg1, f) {
|
|
1014
|
+
const state = { a: arg0, b: arg1, cnt: 1 };
|
|
1015
|
+
const real = (...args) => {
|
|
1016
|
+
|
|
1017
|
+
// First up with a closure we increment the internal reference
|
|
1018
|
+
// count. This ensures that the Rust closure environment won't
|
|
1019
|
+
// be deallocated while we're invoking it.
|
|
1020
|
+
state.cnt++;
|
|
1021
|
+
const a = state.a;
|
|
1022
|
+
state.a = 0;
|
|
1023
|
+
try {
|
|
1024
|
+
return f(a, state.b, ...args);
|
|
1025
|
+
} finally {
|
|
1026
|
+
state.a = a;
|
|
1027
|
+
real._wbg_cb_unref();
|
|
1028
|
+
}
|
|
1029
|
+
};
|
|
1030
|
+
real._wbg_cb_unref = () => {
|
|
1031
|
+
if (--state.cnt === 0) {
|
|
1032
|
+
wasm.__wbindgen_destroy_closure(state.a, state.b);
|
|
1033
|
+
state.a = 0;
|
|
1034
|
+
CLOSURE_DTORS.unregister(state);
|
|
1035
|
+
}
|
|
1036
|
+
};
|
|
1037
|
+
CLOSURE_DTORS.register(real, state, state);
|
|
1038
|
+
return real;
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1041
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
1042
|
+
if (realloc === undefined) {
|
|
1043
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
1044
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
1045
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
1046
|
+
WASM_VECTOR_LEN = buf.length;
|
|
1047
|
+
return ptr;
|
|
1048
|
+
}
|
|
1049
|
+
|
|
1050
|
+
let len = arg.length;
|
|
1051
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
1052
|
+
|
|
1053
|
+
const mem = getUint8ArrayMemory0();
|
|
1054
|
+
|
|
1055
|
+
let offset = 0;
|
|
1056
|
+
|
|
1057
|
+
for (; offset < len; offset++) {
|
|
1058
|
+
const code = arg.charCodeAt(offset);
|
|
1059
|
+
if (code > 0x7F) break;
|
|
1060
|
+
mem[ptr + offset] = code;
|
|
1061
|
+
}
|
|
1062
|
+
if (offset !== len) {
|
|
1063
|
+
if (offset !== 0) {
|
|
1064
|
+
arg = arg.slice(offset);
|
|
1065
|
+
}
|
|
1066
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
1067
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
1068
|
+
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
1069
|
+
|
|
1070
|
+
offset += ret.written;
|
|
1071
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
1072
|
+
}
|
|
1073
|
+
|
|
1074
|
+
WASM_VECTOR_LEN = offset;
|
|
1075
|
+
return ptr;
|
|
1076
|
+
}
|
|
1077
|
+
|
|
1078
|
+
function takeFromExternrefTable0(idx) {
|
|
1079
|
+
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
1080
|
+
wasm.__externref_table_dealloc(idx);
|
|
1081
|
+
return value;
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true });
|
|
1085
|
+
cachedTextDecoder.decode();
|
|
1086
|
+
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
1087
|
+
let numBytesDecoded = 0;
|
|
1088
|
+
function decodeText(bytes) {
|
|
1089
|
+
numBytesDecoded += bytes.length;
|
|
1090
|
+
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
1091
|
+
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true });
|
|
1092
|
+
cachedTextDecoder.decode();
|
|
1093
|
+
numBytesDecoded = bytes.length;
|
|
1094
|
+
}
|
|
1095
|
+
return cachedTextDecoder.decode(bytes);
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1098
|
+
const cachedTextEncoder = new TextEncoder();
|
|
1099
|
+
|
|
1100
|
+
if (!('encodeInto' in cachedTextEncoder)) {
|
|
1101
|
+
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
1102
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
1103
|
+
view.set(buf);
|
|
1104
|
+
return {
|
|
1105
|
+
read: arg.length,
|
|
1106
|
+
written: buf.length
|
|
1107
|
+
};
|
|
1108
|
+
};
|
|
1109
|
+
}
|
|
1110
|
+
|
|
1111
|
+
let WASM_VECTOR_LEN = 0;
|
|
1112
|
+
|
|
1113
|
+
let wasmModule, wasmInstance, wasm;
|
|
1114
|
+
function __wbg_finalize_init(instance, module) {
|
|
1115
|
+
wasmInstance = instance;
|
|
1116
|
+
wasm = instance.exports;
|
|
1117
|
+
wasmModule = module;
|
|
1118
|
+
cachedDataViewMemory0 = null;
|
|
1119
|
+
cachedUint8ArrayMemory0 = null;
|
|
1120
|
+
wasm.__wbindgen_start();
|
|
1121
|
+
return wasm;
|
|
1122
|
+
}
|
|
1123
|
+
|
|
1124
|
+
async function __wbg_load(module, imports) {
|
|
1125
|
+
if (typeof Response === 'function' && module instanceof Response) {
|
|
1126
|
+
if (!module.ok) {
|
|
1127
|
+
throw new Error(`failed to fetch Wasm: ${module.status} ${module.statusText} fetching '${module.url}'`);
|
|
1128
|
+
}
|
|
1129
|
+
|
|
1130
|
+
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
1131
|
+
try {
|
|
1132
|
+
return await WebAssembly.instantiateStreaming(module, imports);
|
|
1133
|
+
} catch (e) {
|
|
1134
|
+
const validResponse = expectedResponseType(module.type);
|
|
1135
|
+
|
|
1136
|
+
if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
|
|
1137
|
+
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);
|
|
1138
|
+
|
|
1139
|
+
} else { throw e; }
|
|
1140
|
+
}
|
|
1141
|
+
}
|
|
1142
|
+
|
|
1143
|
+
const bytes = await module.arrayBuffer();
|
|
1144
|
+
return await WebAssembly.instantiate(bytes, imports);
|
|
1145
|
+
} else {
|
|
1146
|
+
const instance = await WebAssembly.instantiate(module, imports);
|
|
1147
|
+
|
|
1148
|
+
if (instance instanceof WebAssembly.Instance) {
|
|
1149
|
+
return { instance, module };
|
|
1150
|
+
} else {
|
|
1151
|
+
return instance;
|
|
1152
|
+
}
|
|
1153
|
+
}
|
|
1154
|
+
|
|
1155
|
+
function expectedResponseType(type) {
|
|
1156
|
+
switch (type) {
|
|
1157
|
+
case 'basic': case 'cors': case 'default': return true;
|
|
1158
|
+
}
|
|
1159
|
+
return false;
|
|
1160
|
+
}
|
|
1161
|
+
}
|
|
1162
|
+
|
|
1163
|
+
function initSync(module) {
|
|
1164
|
+
if (wasm !== undefined) return wasm;
|
|
1165
|
+
|
|
1166
|
+
|
|
1167
|
+
if (module !== undefined) {
|
|
1168
|
+
if (Object.getPrototypeOf(module) === Object.prototype) {
|
|
1169
|
+
({module} = module)
|
|
1170
|
+
} else {
|
|
1171
|
+
console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
|
|
1172
|
+
}
|
|
1173
|
+
}
|
|
1174
|
+
|
|
1175
|
+
const imports = __wbg_get_imports();
|
|
1176
|
+
if (!(module instanceof WebAssembly.Module)) {
|
|
1177
|
+
module = new WebAssembly.Module(module);
|
|
1178
|
+
}
|
|
1179
|
+
const instance = new WebAssembly.Instance(module, imports);
|
|
1180
|
+
return __wbg_finalize_init(instance, module);
|
|
1181
|
+
}
|
|
1182
|
+
|
|
1183
|
+
let __wbg_init_promise;
|
|
1184
|
+
async function __wbg_init(module_or_path) {
|
|
1185
|
+
if (wasm !== undefined) return wasm;
|
|
1186
|
+
if (__wbg_init_promise === undefined) {
|
|
1187
|
+
__wbg_init_promise = __wbg_init_once(module_or_path);
|
|
1188
|
+
__wbg_init_promise.catch(() => { __wbg_init_promise = undefined; });
|
|
1189
|
+
}
|
|
1190
|
+
return __wbg_init_promise;
|
|
1191
|
+
}
|
|
1192
|
+
|
|
1193
|
+
async function __wbg_init_once(module_or_path) {
|
|
1194
|
+
|
|
1195
|
+
if (module_or_path !== undefined) {
|
|
1196
|
+
if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
|
|
1197
|
+
({module_or_path} = module_or_path)
|
|
1198
|
+
} else {
|
|
1199
|
+
console.warn('using deprecated parameters for the initialization function; pass a single object instead')
|
|
1200
|
+
}
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1203
|
+
if (module_or_path === undefined) {
|
|
1204
|
+
module_or_path = new URL('hrns_tui_bg.wasm', import.meta.url);
|
|
1205
|
+
}
|
|
1206
|
+
const imports = __wbg_get_imports();
|
|
1207
|
+
|
|
1208
|
+
if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
|
|
1209
|
+
module_or_path = fetch(module_or_path);
|
|
1210
|
+
}
|
|
1211
|
+
|
|
1212
|
+
const { instance, module } = await __wbg_load(await module_or_path, imports);
|
|
1213
|
+
|
|
1214
|
+
return __wbg_finalize_init(instance, module);
|
|
1215
|
+
}
|
|
1216
|
+
|
|
1217
|
+
export { initSync, __wbg_init as default };
|