@microblink/capture 1.2.0 → 1.2.2
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/README.md +10 -6
- package/dist/capture.js +28 -14
- package/dist/capture.umd.cjs +3 -3
- package/dist/resources/advanced/capture-wasm.js +147 -3929
- package/dist/resources/advanced/capture-wasm.wasm +0 -0
- package/dist/resources/advanced-threads/capture-wasm.js +165 -4306
- package/dist/resources/advanced-threads/capture-wasm.wasm +0 -0
- package/dist/resources/advanced-threads/capture-wasm.worker.js +1 -97
- package/dist/resources/basic/capture-wasm.js +147 -3928
- package/dist/resources/basic/capture-wasm.wasm +0 -0
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
|
|
1
2
|
var createModule = (() => {
|
|
2
|
-
var _scriptDir =
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
var _scriptDir = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : undefined;
|
|
4
|
+
|
|
5
|
+
return (
|
|
6
|
+
function(moduleArg = {}) {
|
|
6
7
|
|
|
7
|
-
|
|
8
|
-
/*
|
|
8
|
+
/*
|
|
9
9
|
|
|
10
10
|
Copyright 2019 The Emscripten Authors
|
|
11
11
|
SPDX-License-Identifier: MIT
|
|
@@ -16,3930 +16,149 @@ var createModule = (() => {
|
|
|
16
16
|
This file gets implicatly injected as a `--post-js` file when
|
|
17
17
|
emcc is run with `--emrun`
|
|
18
18
|
*/
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
m ||
|
|
156
|
-
b(
|
|
157
|
-
e,
|
|
158
|
-
f,
|
|
159
|
-
function (l) {
|
|
160
|
-
g ? (g(l), (g = null)) : (m = l);
|
|
161
|
-
},
|
|
162
|
-
c,
|
|
163
|
-
);
|
|
164
|
-
k.calledRun ? d() : (k.preRun || (k.preRun = []), k.preRun.push(d));
|
|
165
|
-
})({
|
|
166
|
-
files: [
|
|
167
|
-
{
|
|
168
|
-
filename:
|
|
169
|
-
"/microblink/capture/Model_021c530a7efe77c0e90c4bfe19c3bebaaceee433103e4e6d4f1424d921885982.strop",
|
|
170
|
-
start: 0,
|
|
171
|
-
end: 308674,
|
|
172
|
-
},
|
|
173
|
-
{
|
|
174
|
-
filename:
|
|
175
|
-
"/microblink/capture/Model_07c7ab860e77ec2e92bb822f6d62424b8595a5beb4340f6b2f7f6a4cffa5d050.strop",
|
|
176
|
-
start: 308674,
|
|
177
|
-
end: 429092,
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
filename:
|
|
181
|
-
"/microblink/capture/Model_2880751121560047e6dc571bc8ff4683aeb863886f7c0789234594ceb1e23577.strop",
|
|
182
|
-
start: 429092,
|
|
183
|
-
end: 433030,
|
|
184
|
-
},
|
|
185
|
-
{
|
|
186
|
-
filename:
|
|
187
|
-
"/microblink/capture/Model_3b11c3ffacbbf390b932fb9a7024f1a0016f66281ea8c790f8b5903374ad89c2.strop",
|
|
188
|
-
start: 433030,
|
|
189
|
-
end: 721810,
|
|
190
|
-
},
|
|
191
|
-
{
|
|
192
|
-
filename:
|
|
193
|
-
"/microblink/capture/Model_e4f1f62f68ec44b71ecad3fb3f3b48fe3790beb5ab325611e17d63af06e9f644.strop",
|
|
194
|
-
start: 721810,
|
|
195
|
-
end: 778324,
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
filename:
|
|
199
|
-
"/microblink/capture/Model_ed586fd6ca47c8eebb513c4ffaaacc2c54e92162b145062d7022519fba0911de.strop",
|
|
200
|
-
start: 778324,
|
|
201
|
-
end: 1491556,
|
|
202
|
-
},
|
|
203
|
-
{
|
|
204
|
-
filename:
|
|
205
|
-
"/microblink/capture/Model_f2874f5766b779c063dbe30467979163497dc4b29c43bab23d70c798ee32993a.strop",
|
|
206
|
-
start: 1491556,
|
|
207
|
-
end: 1573062,
|
|
208
|
-
},
|
|
209
|
-
],
|
|
210
|
-
remote_package_size: 1573062,
|
|
211
|
-
});
|
|
212
|
-
k.onAbort = function (a) {
|
|
213
|
-
u("Aborted with message: " + a);
|
|
214
|
-
try {
|
|
215
|
-
throw new WebAssembly.RuntimeError(a);
|
|
216
|
-
} catch (b) {
|
|
217
|
-
u("Stacktrace: " + b.stack);
|
|
218
|
-
}
|
|
219
|
-
};
|
|
220
|
-
if ("object" == typeof window) {
|
|
221
|
-
k.arguments = window.location.search.substr(1).trim().split("&");
|
|
222
|
-
for (let a = 0; a < k.arguments.length; ++a)
|
|
223
|
-
k.arguments[a] = decodeURI(k.arguments[a]);
|
|
224
|
-
k.arguments[0] || (k.arguments = []);
|
|
225
|
-
}
|
|
226
|
-
var ca = Object.assign({}, k),
|
|
227
|
-
da = "./this.program",
|
|
228
|
-
ea = (a, b) => {
|
|
229
|
-
throw b;
|
|
230
|
-
},
|
|
231
|
-
fa = "",
|
|
232
|
-
ha,
|
|
233
|
-
ia,
|
|
234
|
-
ka;
|
|
235
|
-
fa = self.location.href;
|
|
236
|
-
_scriptDir && (fa = _scriptDir);
|
|
237
|
-
fa = fa.startsWith("blob:")
|
|
238
|
-
? ""
|
|
239
|
-
: fa.substr(0, fa.replace(/[?#].*/, "").lastIndexOf("/") + 1);
|
|
240
|
-
ha = (a) => {
|
|
241
|
-
var b = new XMLHttpRequest();
|
|
242
|
-
b.open("GET", a, !1);
|
|
243
|
-
b.send(null);
|
|
244
|
-
return b.responseText;
|
|
245
|
-
};
|
|
246
|
-
ka = (a) => {
|
|
247
|
-
var b = new XMLHttpRequest();
|
|
248
|
-
b.open("GET", a, !1);
|
|
249
|
-
b.responseType = "arraybuffer";
|
|
250
|
-
b.send(null);
|
|
251
|
-
return new Uint8Array(b.response);
|
|
252
|
-
};
|
|
253
|
-
ia = (a, b, c) => {
|
|
254
|
-
var d = new XMLHttpRequest();
|
|
255
|
-
d.open("GET", a, !0);
|
|
256
|
-
d.responseType = "arraybuffer";
|
|
257
|
-
d.onload = () => {
|
|
258
|
-
200 == d.status || (0 == d.status && d.response) ? b(d.response) : c();
|
|
259
|
-
};
|
|
260
|
-
d.onerror = c;
|
|
261
|
-
d.send(null);
|
|
262
|
-
};
|
|
263
|
-
var la = k.print || console.log.bind(console),
|
|
264
|
-
u = k.printErr || console.error.bind(console);
|
|
265
|
-
Object.assign(k, ca);
|
|
266
|
-
ca = null;
|
|
267
|
-
k.thisProgram && (da = k.thisProgram);
|
|
268
|
-
k.quit && (ea = k.quit);
|
|
269
|
-
var ma;
|
|
270
|
-
k.wasmBinary && (ma = k.wasmBinary);
|
|
271
|
-
"object" != typeof WebAssembly && na("no native wasm support detected");
|
|
272
|
-
var oa,
|
|
273
|
-
pa = !1,
|
|
274
|
-
qa,
|
|
275
|
-
w,
|
|
276
|
-
x,
|
|
277
|
-
ra,
|
|
278
|
-
z,
|
|
279
|
-
B,
|
|
280
|
-
C,
|
|
281
|
-
sa,
|
|
282
|
-
ta;
|
|
283
|
-
function ua() {
|
|
284
|
-
var a = oa.buffer;
|
|
285
|
-
k.HEAP8 = w = new Int8Array(a);
|
|
286
|
-
k.HEAP16 = ra = new Int16Array(a);
|
|
287
|
-
k.HEAPU8 = x = new Uint8Array(a);
|
|
288
|
-
k.HEAPU16 = z = new Uint16Array(a);
|
|
289
|
-
k.HEAP32 = B = new Int32Array(a);
|
|
290
|
-
k.HEAPU32 = C = new Uint32Array(a);
|
|
291
|
-
k.HEAPF32 = sa = new Float32Array(a);
|
|
292
|
-
k.HEAPF64 = ta = new Float64Array(a);
|
|
293
|
-
}
|
|
294
|
-
var va = [],
|
|
295
|
-
wa = [],
|
|
296
|
-
xa = [],
|
|
297
|
-
ya = [],
|
|
298
|
-
za = !1;
|
|
299
|
-
function Aa() {
|
|
300
|
-
var a = k.preRun.shift();
|
|
301
|
-
va.unshift(a);
|
|
302
|
-
}
|
|
303
|
-
var Ba = 0,
|
|
304
|
-
Ca = null,
|
|
305
|
-
Da = null;
|
|
306
|
-
function Ea() {
|
|
307
|
-
Ba++;
|
|
308
|
-
k.monitorRunDependencies?.(Ba);
|
|
309
|
-
}
|
|
310
|
-
function Fa() {
|
|
311
|
-
Ba--;
|
|
312
|
-
k.monitorRunDependencies?.(Ba);
|
|
313
|
-
if (0 == Ba && (null !== Ca && (clearInterval(Ca), (Ca = null)), Da)) {
|
|
314
|
-
var a = Da;
|
|
315
|
-
Da = null;
|
|
316
|
-
a();
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
function na(a) {
|
|
320
|
-
k.onAbort?.(a);
|
|
321
|
-
a = "Aborted(" + a + ")";
|
|
322
|
-
u(a);
|
|
323
|
-
pa = !0;
|
|
324
|
-
qa = 1;
|
|
325
|
-
a = new WebAssembly.RuntimeError(
|
|
326
|
-
a + ". Build with -sASSERTIONS for more info.",
|
|
327
|
-
);
|
|
328
|
-
ba(a);
|
|
329
|
-
throw a;
|
|
330
|
-
}
|
|
331
|
-
var Ga = (a) => a.startsWith("data:application/octet-stream;base64,"),
|
|
332
|
-
Ha;
|
|
333
|
-
Ha = "capture-wasm.wasm";
|
|
334
|
-
if (!Ga(Ha)) {
|
|
335
|
-
var Ia = Ha;
|
|
336
|
-
Ha = k.locateFile ? k.locateFile(Ia, fa) : fa + Ia;
|
|
337
|
-
}
|
|
338
|
-
function Ja(a) {
|
|
339
|
-
if (a == Ha && ma) return new Uint8Array(ma);
|
|
340
|
-
if (ka) return ka(a);
|
|
341
|
-
throw "both async and sync fetching of the wasm failed";
|
|
342
|
-
}
|
|
343
|
-
function Ka(a) {
|
|
344
|
-
return ma || "function" != typeof fetch
|
|
345
|
-
? Promise.resolve().then(() => Ja(a))
|
|
346
|
-
: fetch(a, { credentials: "same-origin" })
|
|
347
|
-
.then((b) => {
|
|
348
|
-
if (!b.ok) throw `failed to load wasm binary file at '${a}'`;
|
|
349
|
-
return b.arrayBuffer();
|
|
350
|
-
})
|
|
351
|
-
.catch(() => Ja(a));
|
|
352
|
-
}
|
|
353
|
-
function La(a, b, c) {
|
|
354
|
-
return Ka(a)
|
|
355
|
-
.then((d) => WebAssembly.instantiate(d, b))
|
|
356
|
-
.then((d) => d)
|
|
357
|
-
.then(c, (d) => {
|
|
358
|
-
u(`failed to asynchronously prepare wasm: ${d}`);
|
|
359
|
-
na(d);
|
|
360
|
-
});
|
|
361
|
-
}
|
|
362
|
-
function Ma(a, b) {
|
|
363
|
-
var c = Ha;
|
|
364
|
-
return ma ||
|
|
365
|
-
"function" != typeof WebAssembly.instantiateStreaming ||
|
|
366
|
-
Ga(c) ||
|
|
367
|
-
"function" != typeof fetch
|
|
368
|
-
? La(c, a, b)
|
|
369
|
-
: fetch(c, { credentials: "same-origin" }).then((d) =>
|
|
370
|
-
WebAssembly.instantiateStreaming(d, a).then(b, function (e) {
|
|
371
|
-
u(`wasm streaming compile failed: ${e}`);
|
|
372
|
-
u("falling back to ArrayBuffer instantiation");
|
|
373
|
-
return La(c, a, b);
|
|
374
|
-
}),
|
|
375
|
-
);
|
|
376
|
-
}
|
|
377
|
-
var E,
|
|
378
|
-
F,
|
|
379
|
-
Na = {
|
|
380
|
-
59700: (a, b, c, d) => {
|
|
381
|
-
a = a ? I(x, a) : "";
|
|
382
|
-
b = b ? I(x, b) : "";
|
|
383
|
-
c = c ? I(x, c) : "";
|
|
384
|
-
d = d ? I(x, d) : "";
|
|
385
|
-
throw Error(a + b + c + d);
|
|
386
|
-
},
|
|
387
|
-
59916: (a, b) => {
|
|
388
|
-
a = a ? I(x, a) : "";
|
|
389
|
-
b = b ? I(x, b) : "";
|
|
390
|
-
throw Error(a + b);
|
|
391
|
-
},
|
|
392
|
-
};
|
|
393
|
-
function Oa(a) {
|
|
394
|
-
this.name = "ExitStatus";
|
|
395
|
-
this.message = `Program terminated with exit(${a})`;
|
|
396
|
-
this.status = a;
|
|
397
|
-
}
|
|
398
|
-
var Qa = (a) => {
|
|
399
|
-
for (; 0 < a.length; ) a.shift()(k);
|
|
400
|
-
},
|
|
401
|
-
Ra = k.noExitRuntime || !1,
|
|
402
|
-
Sa = (a, b) => {
|
|
403
|
-
for (var c = 0, d = a.length - 1; 0 <= d; d--) {
|
|
404
|
-
var e = a[d];
|
|
405
|
-
"." === e
|
|
406
|
-
? a.splice(d, 1)
|
|
407
|
-
: ".." === e
|
|
408
|
-
? (a.splice(d, 1), c++)
|
|
409
|
-
: c && (a.splice(d, 1), c--);
|
|
410
|
-
}
|
|
411
|
-
if (b) for (; c; c--) a.unshift("..");
|
|
412
|
-
return a;
|
|
413
|
-
},
|
|
414
|
-
Ta = (a) => {
|
|
415
|
-
var b = "/" === a.charAt(0),
|
|
416
|
-
c = "/" === a.substr(-1);
|
|
417
|
-
(a = Sa(
|
|
418
|
-
a.split("/").filter((d) => !!d),
|
|
419
|
-
!b,
|
|
420
|
-
).join("/")) ||
|
|
421
|
-
b ||
|
|
422
|
-
(a = ".");
|
|
423
|
-
a && c && (a += "/");
|
|
424
|
-
return (b ? "/" : "") + a;
|
|
425
|
-
},
|
|
426
|
-
Ua = (a) => {
|
|
427
|
-
var b = /^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/
|
|
428
|
-
.exec(a)
|
|
429
|
-
.slice(1);
|
|
430
|
-
a = b[0];
|
|
431
|
-
b = b[1];
|
|
432
|
-
if (!a && !b) return ".";
|
|
433
|
-
b &&= b.substr(0, b.length - 1);
|
|
434
|
-
return a + b;
|
|
435
|
-
},
|
|
436
|
-
Va = (a) => {
|
|
437
|
-
if ("/" === a) return "/";
|
|
438
|
-
a = Ta(a);
|
|
439
|
-
a = a.replace(/\/$/, "");
|
|
440
|
-
var b = a.lastIndexOf("/");
|
|
441
|
-
return -1 === b ? a : a.substr(b + 1);
|
|
442
|
-
},
|
|
443
|
-
Wa = () => {
|
|
444
|
-
if (
|
|
445
|
-
"object" == typeof crypto &&
|
|
446
|
-
"function" == typeof crypto.getRandomValues
|
|
447
|
-
)
|
|
448
|
-
return (a) => crypto.getRandomValues(a);
|
|
449
|
-
na("initRandomDevice");
|
|
450
|
-
},
|
|
451
|
-
Xa = (a) => (Xa = Wa())(a);
|
|
452
|
-
function Ya() {
|
|
453
|
-
for (var a = "", b = !1, c = arguments.length - 1; -1 <= c && !b; c--) {
|
|
454
|
-
b = 0 <= c ? arguments[c] : "/";
|
|
455
|
-
if ("string" != typeof b)
|
|
456
|
-
throw new TypeError("Arguments to path.resolve must be strings");
|
|
457
|
-
if (!b) return "";
|
|
458
|
-
a = b + "/" + a;
|
|
459
|
-
b = "/" === b.charAt(0);
|
|
460
|
-
}
|
|
461
|
-
a = Sa(
|
|
462
|
-
a.split("/").filter((d) => !!d),
|
|
463
|
-
!b,
|
|
464
|
-
).join("/");
|
|
465
|
-
return (b ? "/" : "") + a || ".";
|
|
466
|
-
}
|
|
467
|
-
var Za =
|
|
468
|
-
"undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0,
|
|
469
|
-
I = (a, b, c) => {
|
|
470
|
-
var d = b + c;
|
|
471
|
-
for (c = b; a[c] && !(c >= d); ) ++c;
|
|
472
|
-
if (16 < c - b && a.buffer && Za) return Za.decode(a.subarray(b, c));
|
|
473
|
-
for (d = ""; b < c; ) {
|
|
474
|
-
var e = a[b++];
|
|
475
|
-
if (e & 128) {
|
|
476
|
-
var f = a[b++] & 63;
|
|
477
|
-
if (192 == (e & 224)) d += String.fromCharCode(((e & 31) << 6) | f);
|
|
478
|
-
else {
|
|
479
|
-
var g = a[b++] & 63;
|
|
480
|
-
e =
|
|
481
|
-
224 == (e & 240)
|
|
482
|
-
? ((e & 15) << 12) | (f << 6) | g
|
|
483
|
-
: ((e & 7) << 18) | (f << 12) | (g << 6) | (a[b++] & 63);
|
|
484
|
-
65536 > e
|
|
485
|
-
? (d += String.fromCharCode(e))
|
|
486
|
-
: ((e -= 65536),
|
|
487
|
-
(d += String.fromCharCode(
|
|
488
|
-
55296 | (e >> 10),
|
|
489
|
-
56320 | (e & 1023),
|
|
490
|
-
)));
|
|
491
|
-
}
|
|
492
|
-
} else d += String.fromCharCode(e);
|
|
493
|
-
}
|
|
494
|
-
return d;
|
|
495
|
-
},
|
|
496
|
-
$a = [],
|
|
497
|
-
ab = (a) => {
|
|
498
|
-
for (var b = 0, c = 0; c < a.length; ++c) {
|
|
499
|
-
var d = a.charCodeAt(c);
|
|
500
|
-
127 >= d
|
|
501
|
-
? b++
|
|
502
|
-
: 2047 >= d
|
|
503
|
-
? (b += 2)
|
|
504
|
-
: 55296 <= d && 57343 >= d
|
|
505
|
-
? ((b += 4), ++c)
|
|
506
|
-
: (b += 3);
|
|
507
|
-
}
|
|
508
|
-
return b;
|
|
509
|
-
},
|
|
510
|
-
K = (a, b, c, d) => {
|
|
511
|
-
if (!(0 < d)) return 0;
|
|
512
|
-
var e = c;
|
|
513
|
-
d = c + d - 1;
|
|
514
|
-
for (var f = 0; f < a.length; ++f) {
|
|
515
|
-
var g = a.charCodeAt(f);
|
|
516
|
-
if (55296 <= g && 57343 >= g) {
|
|
517
|
-
var m = a.charCodeAt(++f);
|
|
518
|
-
g = (65536 + ((g & 1023) << 10)) | (m & 1023);
|
|
519
|
-
}
|
|
520
|
-
if (127 >= g) {
|
|
521
|
-
if (c >= d) break;
|
|
522
|
-
b[c++] = g;
|
|
523
|
-
} else {
|
|
524
|
-
if (2047 >= g) {
|
|
525
|
-
if (c + 1 >= d) break;
|
|
526
|
-
b[c++] = 192 | (g >> 6);
|
|
527
|
-
} else {
|
|
528
|
-
if (65535 >= g) {
|
|
529
|
-
if (c + 2 >= d) break;
|
|
530
|
-
b[c++] = 224 | (g >> 12);
|
|
531
|
-
} else {
|
|
532
|
-
if (c + 3 >= d) break;
|
|
533
|
-
b[c++] = 240 | (g >> 18);
|
|
534
|
-
b[c++] = 128 | ((g >> 12) & 63);
|
|
535
|
-
}
|
|
536
|
-
b[c++] = 128 | ((g >> 6) & 63);
|
|
537
|
-
}
|
|
538
|
-
b[c++] = 128 | (g & 63);
|
|
539
|
-
}
|
|
540
|
-
}
|
|
541
|
-
b[c] = 0;
|
|
542
|
-
return c - e;
|
|
543
|
-
};
|
|
544
|
-
function bb(a, b) {
|
|
545
|
-
var c = Array(ab(a) + 1);
|
|
546
|
-
a = K(a, c, 0, c.length);
|
|
547
|
-
b && (c.length = a);
|
|
548
|
-
return c;
|
|
549
|
-
}
|
|
550
|
-
var cb = [];
|
|
551
|
-
function db(a, b) {
|
|
552
|
-
cb[a] = { input: [], Da: [], $a: b };
|
|
553
|
-
eb(a, fb);
|
|
554
|
-
}
|
|
555
|
-
var fb = {
|
|
556
|
-
open(a) {
|
|
557
|
-
var b = cb[a.node.gb];
|
|
558
|
-
if (!b) throw new L(43);
|
|
559
|
-
a.Ja = b;
|
|
560
|
-
a.seekable = !1;
|
|
561
|
-
},
|
|
562
|
-
close(a) {
|
|
563
|
-
a.Ja.$a.mb(a.Ja);
|
|
564
|
-
},
|
|
565
|
-
mb(a) {
|
|
566
|
-
a.Ja.$a.mb(a.Ja);
|
|
567
|
-
},
|
|
568
|
-
read(a, b, c, d) {
|
|
569
|
-
if (!a.Ja || !a.Ja.$a.Ob) throw new L(60);
|
|
570
|
-
for (var e = 0, f = 0; f < d; f++) {
|
|
571
|
-
try {
|
|
572
|
-
var g = a.Ja.$a.Ob(a.Ja);
|
|
573
|
-
} catch (m) {
|
|
574
|
-
throw new L(29);
|
|
575
|
-
}
|
|
576
|
-
if (void 0 === g && 0 === e) throw new L(6);
|
|
577
|
-
if (null === g || void 0 === g) break;
|
|
578
|
-
e++;
|
|
579
|
-
b[c + f] = g;
|
|
580
|
-
}
|
|
581
|
-
e && (a.node.timestamp = Date.now());
|
|
582
|
-
return e;
|
|
583
|
-
},
|
|
584
|
-
write(a, b, c, d) {
|
|
585
|
-
if (!a.Ja || !a.Ja.$a.Cb) throw new L(60);
|
|
586
|
-
try {
|
|
587
|
-
for (var e = 0; e < d; e++) a.Ja.$a.Cb(a.Ja, b[c + e]);
|
|
588
|
-
} catch (f) {
|
|
589
|
-
throw new L(29);
|
|
590
|
-
}
|
|
591
|
-
d && (a.node.timestamp = Date.now());
|
|
592
|
-
return e;
|
|
593
|
-
},
|
|
594
|
-
},
|
|
595
|
-
gb = {
|
|
596
|
-
Ob() {
|
|
597
|
-
a: {
|
|
598
|
-
if (!$a.length) {
|
|
599
|
-
var a = null;
|
|
600
|
-
"undefined" != typeof window && "function" == typeof window.prompt
|
|
601
|
-
? ((a = window.prompt("Input: ")), null !== a && (a += "\n"))
|
|
602
|
-
: "function" == typeof readline &&
|
|
603
|
-
((a = readline()), null !== a && (a += "\n"));
|
|
604
|
-
if (!a) {
|
|
605
|
-
a = null;
|
|
606
|
-
break a;
|
|
607
|
-
}
|
|
608
|
-
$a = bb(a, !0);
|
|
609
|
-
}
|
|
610
|
-
a = $a.shift();
|
|
611
|
-
}
|
|
612
|
-
return a;
|
|
613
|
-
},
|
|
614
|
-
Cb(a, b) {
|
|
615
|
-
null === b || 10 === b
|
|
616
|
-
? (la(I(a.Da, 0)), (a.Da = []))
|
|
617
|
-
: 0 != b && a.Da.push(b);
|
|
618
|
-
},
|
|
619
|
-
mb(a) {
|
|
620
|
-
a.Da && 0 < a.Da.length && (la(I(a.Da, 0)), (a.Da = []));
|
|
621
|
-
},
|
|
622
|
-
Rc() {
|
|
623
|
-
return {
|
|
624
|
-
Lc: 25856,
|
|
625
|
-
Nc: 5,
|
|
626
|
-
Kc: 191,
|
|
627
|
-
Mc: 35387,
|
|
628
|
-
Jc: [
|
|
629
|
-
3, 28, 127, 21, 4, 0, 1, 0, 17, 19, 26, 0, 18, 15, 23, 22, 0, 0,
|
|
630
|
-
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
631
|
-
],
|
|
632
|
-
};
|
|
633
|
-
},
|
|
634
|
-
Sc() {
|
|
635
|
-
return 0;
|
|
636
|
-
},
|
|
637
|
-
Tc() {
|
|
638
|
-
return [24, 80];
|
|
639
|
-
},
|
|
640
|
-
},
|
|
641
|
-
hb = {
|
|
642
|
-
Cb(a, b) {
|
|
643
|
-
null === b || 10 === b
|
|
644
|
-
? (u(I(a.Da, 0)), (a.Da = []))
|
|
645
|
-
: 0 != b && a.Da.push(b);
|
|
646
|
-
},
|
|
647
|
-
mb(a) {
|
|
648
|
-
a.Da && 0 < a.Da.length && (u(I(a.Da, 0)), (a.Da = []));
|
|
649
|
-
},
|
|
650
|
-
},
|
|
651
|
-
jb = (a) => {
|
|
652
|
-
a = 65536 * Math.ceil(a / 65536);
|
|
653
|
-
var b = ib(65536, a);
|
|
654
|
-
b ? (x.fill(0, b, b + a), (a = b)) : (a = 0);
|
|
655
|
-
return a;
|
|
656
|
-
};
|
|
657
|
-
function kb(a, b) {
|
|
658
|
-
var c = a.va ? a.va.length : 0;
|
|
659
|
-
c >= b ||
|
|
660
|
-
((b = Math.max(b, (c * (1048576 > c ? 2 : 1.125)) >>> 0)),
|
|
661
|
-
0 != c && (b = Math.max(b, 256)),
|
|
662
|
-
(c = a.va),
|
|
663
|
-
(a.va = new Uint8Array(b)),
|
|
664
|
-
0 < a.Aa && a.va.set(c.subarray(0, a.Aa), 0));
|
|
665
|
-
}
|
|
666
|
-
var M = {
|
|
667
|
-
Na: null,
|
|
668
|
-
Qa() {
|
|
669
|
-
return M.createNode(null, "/", 16895, 0);
|
|
670
|
-
},
|
|
671
|
-
createNode(a, b, c, d) {
|
|
672
|
-
if (24576 === (c & 61440) || 4096 === (c & 61440)) throw new L(63);
|
|
673
|
-
M.Na ||
|
|
674
|
-
(M.Na = {
|
|
675
|
-
dir: {
|
|
676
|
-
node: {
|
|
677
|
-
Ma: M.wa.Ma,
|
|
678
|
-
Ha: M.wa.Ha,
|
|
679
|
-
bb: M.wa.bb,
|
|
680
|
-
qb: M.wa.qb,
|
|
681
|
-
Wb: M.wa.Wb,
|
|
682
|
-
wb: M.wa.wb,
|
|
683
|
-
Yb: M.wa.Yb,
|
|
684
|
-
Ub: M.wa.Ub,
|
|
685
|
-
tb: M.wa.tb,
|
|
686
|
-
},
|
|
687
|
-
stream: { Ta: M.xa.Ta },
|
|
688
|
-
},
|
|
689
|
-
file: {
|
|
690
|
-
node: { Ma: M.wa.Ma, Ha: M.wa.Ha },
|
|
691
|
-
stream: {
|
|
692
|
-
Ta: M.xa.Ta,
|
|
693
|
-
read: M.xa.read,
|
|
694
|
-
write: M.xa.write,
|
|
695
|
-
ab: M.xa.ab,
|
|
696
|
-
cb: M.xa.cb,
|
|
697
|
-
rb: M.xa.rb,
|
|
698
|
-
},
|
|
699
|
-
},
|
|
700
|
-
link: {
|
|
701
|
-
node: { Ma: M.wa.Ma, Ha: M.wa.Ha, hb: M.wa.hb },
|
|
702
|
-
stream: {},
|
|
703
|
-
},
|
|
704
|
-
Jb: { node: { Ma: M.wa.Ma, Ha: M.wa.Ha }, stream: lb },
|
|
705
|
-
});
|
|
706
|
-
c = mb(a, b, c, d);
|
|
707
|
-
O(c.mode)
|
|
708
|
-
? ((c.wa = M.Na.dir.node), (c.xa = M.Na.dir.stream), (c.va = {}))
|
|
709
|
-
: 32768 === (c.mode & 61440)
|
|
710
|
-
? ((c.wa = M.Na.file.node),
|
|
711
|
-
(c.xa = M.Na.file.stream),
|
|
712
|
-
(c.Aa = 0),
|
|
713
|
-
(c.va = null))
|
|
714
|
-
: 40960 === (c.mode & 61440)
|
|
715
|
-
? ((c.wa = M.Na.link.node), (c.xa = M.Na.link.stream))
|
|
716
|
-
: 8192 === (c.mode & 61440) &&
|
|
717
|
-
((c.wa = M.Na.Jb.node), (c.xa = M.Na.Jb.stream));
|
|
718
|
-
c.timestamp = Date.now();
|
|
719
|
-
a && ((a.va[b] = c), (a.timestamp = c.timestamp));
|
|
720
|
-
return c;
|
|
721
|
-
},
|
|
722
|
-
Pc(a) {
|
|
723
|
-
return a.va
|
|
724
|
-
? a.va.subarray
|
|
725
|
-
? a.va.subarray(0, a.Aa)
|
|
726
|
-
: new Uint8Array(a.va)
|
|
727
|
-
: new Uint8Array(0);
|
|
728
|
-
},
|
|
729
|
-
wa: {
|
|
730
|
-
Ma(a) {
|
|
731
|
-
var b = {};
|
|
732
|
-
b.ic = 8192 === (a.mode & 61440) ? a.id : 1;
|
|
733
|
-
b.Pb = a.id;
|
|
734
|
-
b.mode = a.mode;
|
|
735
|
-
b.vc = 1;
|
|
736
|
-
b.uid = 0;
|
|
737
|
-
b.pc = 0;
|
|
738
|
-
b.gb = a.gb;
|
|
739
|
-
b.size = O(a.mode)
|
|
740
|
-
? 4096
|
|
741
|
-
: 32768 === (a.mode & 61440)
|
|
742
|
-
? a.Aa
|
|
743
|
-
: 40960 === (a.mode & 61440)
|
|
744
|
-
? a.link.length
|
|
745
|
-
: 0;
|
|
746
|
-
b.bc = new Date(a.timestamp);
|
|
747
|
-
b.uc = new Date(a.timestamp);
|
|
748
|
-
b.hc = new Date(a.timestamp);
|
|
749
|
-
b.cc = 4096;
|
|
750
|
-
b.dc = Math.ceil(b.size / b.cc);
|
|
751
|
-
return b;
|
|
752
|
-
},
|
|
753
|
-
Ha(a, b) {
|
|
754
|
-
void 0 !== b.mode && (a.mode = b.mode);
|
|
755
|
-
void 0 !== b.timestamp && (a.timestamp = b.timestamp);
|
|
756
|
-
if (void 0 !== b.size && ((b = b.size), a.Aa != b))
|
|
757
|
-
if (0 == b) (a.va = null), (a.Aa = 0);
|
|
758
|
-
else {
|
|
759
|
-
var c = a.va;
|
|
760
|
-
a.va = new Uint8Array(b);
|
|
761
|
-
c && a.va.set(c.subarray(0, Math.min(b, a.Aa)));
|
|
762
|
-
a.Aa = b;
|
|
763
|
-
}
|
|
764
|
-
},
|
|
765
|
-
bb() {
|
|
766
|
-
throw nb[44];
|
|
767
|
-
},
|
|
768
|
-
qb(a, b, c, d) {
|
|
769
|
-
return M.createNode(a, b, c, d);
|
|
770
|
-
},
|
|
771
|
-
Wb(a, b, c) {
|
|
772
|
-
if (O(a.mode)) {
|
|
773
|
-
try {
|
|
774
|
-
var d = ob(b, c);
|
|
775
|
-
} catch (f) {}
|
|
776
|
-
if (d) for (var e in d.va) throw new L(55);
|
|
777
|
-
}
|
|
778
|
-
delete a.parent.va[a.name];
|
|
779
|
-
a.parent.timestamp = Date.now();
|
|
780
|
-
a.name = c;
|
|
781
|
-
b.va[c] = a;
|
|
782
|
-
b.timestamp = a.parent.timestamp;
|
|
783
|
-
a.parent = b;
|
|
784
|
-
},
|
|
785
|
-
wb(a, b) {
|
|
786
|
-
delete a.va[b];
|
|
787
|
-
a.timestamp = Date.now();
|
|
788
|
-
},
|
|
789
|
-
Yb(a, b) {
|
|
790
|
-
var c = ob(a, b),
|
|
791
|
-
d;
|
|
792
|
-
for (d in c.va) throw new L(55);
|
|
793
|
-
delete a.va[b];
|
|
794
|
-
a.timestamp = Date.now();
|
|
795
|
-
},
|
|
796
|
-
Ub(a) {
|
|
797
|
-
var b = [".", ".."],
|
|
798
|
-
c;
|
|
799
|
-
for (c of Object.keys(a.va)) b.push(c);
|
|
800
|
-
return b;
|
|
801
|
-
},
|
|
802
|
-
tb(a, b, c) {
|
|
803
|
-
a = M.createNode(a, b, 41471, 0);
|
|
804
|
-
a.link = c;
|
|
805
|
-
return a;
|
|
806
|
-
},
|
|
807
|
-
hb(a) {
|
|
808
|
-
if (40960 !== (a.mode & 61440)) throw new L(28);
|
|
809
|
-
return a.link;
|
|
810
|
-
},
|
|
811
|
-
},
|
|
812
|
-
xa: {
|
|
813
|
-
read(a, b, c, d, e) {
|
|
814
|
-
var f = a.node.va;
|
|
815
|
-
if (e >= a.node.Aa) return 0;
|
|
816
|
-
a = Math.min(a.node.Aa - e, d);
|
|
817
|
-
if (8 < a && f.subarray) b.set(f.subarray(e, e + a), c);
|
|
818
|
-
else for (d = 0; d < a; d++) b[c + d] = f[e + d];
|
|
819
|
-
return a;
|
|
820
|
-
},
|
|
821
|
-
write(a, b, c, d, e, f) {
|
|
822
|
-
b.buffer === w.buffer && (f = !1);
|
|
823
|
-
if (!d) return 0;
|
|
824
|
-
a = a.node;
|
|
825
|
-
a.timestamp = Date.now();
|
|
826
|
-
if (b.subarray && (!a.va || a.va.subarray)) {
|
|
827
|
-
if (f) return (a.va = b.subarray(c, c + d)), (a.Aa = d);
|
|
828
|
-
if (0 === a.Aa && 0 === e)
|
|
829
|
-
return (a.va = b.slice(c, c + d)), (a.Aa = d);
|
|
830
|
-
if (e + d <= a.Aa) return a.va.set(b.subarray(c, c + d), e), d;
|
|
831
|
-
}
|
|
832
|
-
kb(a, e + d);
|
|
833
|
-
if (a.va.subarray && b.subarray) a.va.set(b.subarray(c, c + d), e);
|
|
834
|
-
else for (f = 0; f < d; f++) a.va[e + f] = b[c + f];
|
|
835
|
-
a.Aa = Math.max(a.Aa, e + d);
|
|
836
|
-
return d;
|
|
837
|
-
},
|
|
838
|
-
Ta(a, b, c) {
|
|
839
|
-
1 === c
|
|
840
|
-
? (b += a.position)
|
|
841
|
-
: 2 === c && 32768 === (a.node.mode & 61440) && (b += a.node.Aa);
|
|
842
|
-
if (0 > b) throw new L(28);
|
|
843
|
-
return b;
|
|
844
|
-
},
|
|
845
|
-
ab(a, b, c) {
|
|
846
|
-
kb(a.node, b + c);
|
|
847
|
-
a.node.Aa = Math.max(a.node.Aa, b + c);
|
|
848
|
-
},
|
|
849
|
-
cb(a, b, c, d, e) {
|
|
850
|
-
if (32768 !== (a.node.mode & 61440)) throw new L(43);
|
|
851
|
-
a = a.node.va;
|
|
852
|
-
if (e & 2 || a.buffer !== w.buffer) {
|
|
853
|
-
if (0 < c || c + b < a.length)
|
|
854
|
-
a = a.subarray
|
|
855
|
-
? a.subarray(c, c + b)
|
|
856
|
-
: Array.prototype.slice.call(a, c, c + b);
|
|
857
|
-
c = !0;
|
|
858
|
-
b = jb(b);
|
|
859
|
-
if (!b) throw new L(48);
|
|
860
|
-
w.set(a, b);
|
|
861
|
-
} else (c = !1), (b = a.byteOffset);
|
|
862
|
-
return { za: b, Fa: c };
|
|
863
|
-
},
|
|
864
|
-
rb(a, b, c, d) {
|
|
865
|
-
M.xa.write(a, b, 0, d, c, !1);
|
|
866
|
-
return 0;
|
|
867
|
-
},
|
|
868
|
-
},
|
|
869
|
-
},
|
|
870
|
-
pb = (a, b, c) => {
|
|
871
|
-
var d = `al ${a}`;
|
|
872
|
-
ia(
|
|
873
|
-
a,
|
|
874
|
-
(e) => {
|
|
875
|
-
b(new Uint8Array(e));
|
|
876
|
-
d && Fa(d);
|
|
877
|
-
},
|
|
878
|
-
() => {
|
|
879
|
-
if (c) c();
|
|
880
|
-
else throw `Loading data file "${a}" failed.`;
|
|
881
|
-
},
|
|
882
|
-
);
|
|
883
|
-
d && Ea(d);
|
|
884
|
-
},
|
|
885
|
-
qb = k.preloadPlugins || [],
|
|
886
|
-
rb = (a, b, c, d) => {
|
|
887
|
-
"undefined" != typeof Browser && Browser.Qc();
|
|
888
|
-
var e = !1;
|
|
889
|
-
qb.forEach((f) => {
|
|
890
|
-
!e && f.canHandle(b) && (f.handle(a, b, c, d), (e = !0));
|
|
891
|
-
});
|
|
892
|
-
return e;
|
|
893
|
-
},
|
|
894
|
-
tb = (a, b, c, d, e, f, g, m, l, n) => {
|
|
895
|
-
function q(h) {
|
|
896
|
-
function r(v) {
|
|
897
|
-
n?.();
|
|
898
|
-
m || sb(a, b, v, d, e, l);
|
|
899
|
-
f?.();
|
|
900
|
-
Fa(t);
|
|
901
|
-
}
|
|
902
|
-
rb(h, p, r, () => {
|
|
903
|
-
g?.();
|
|
904
|
-
Fa(t);
|
|
905
|
-
}) || r(h);
|
|
906
|
-
}
|
|
907
|
-
var p = b ? Ya(Ta(a + "/" + b)) : a,
|
|
908
|
-
t = `cp ${p}`;
|
|
909
|
-
Ea(t);
|
|
910
|
-
"string" == typeof c ? pb(c, q, g) : q(c);
|
|
911
|
-
},
|
|
912
|
-
ub = (a, b) => {
|
|
913
|
-
var c = 0;
|
|
914
|
-
a && (c |= 365);
|
|
915
|
-
b && (c |= 146);
|
|
916
|
-
return c;
|
|
917
|
-
},
|
|
918
|
-
vb = null,
|
|
919
|
-
wb = {},
|
|
920
|
-
xb = [],
|
|
921
|
-
yb = 1,
|
|
922
|
-
zb = null,
|
|
923
|
-
Ab = !0,
|
|
924
|
-
L = class {
|
|
925
|
-
constructor(a) {
|
|
926
|
-
this.name = "ErrnoError";
|
|
927
|
-
this.Ka = a;
|
|
928
|
-
}
|
|
929
|
-
},
|
|
930
|
-
nb = {};
|
|
931
|
-
function P(a, b = {}) {
|
|
932
|
-
a = Ya(a);
|
|
933
|
-
if (!a) return { path: "", node: null };
|
|
934
|
-
b = Object.assign({ Nb: !0, Eb: 0 }, b);
|
|
935
|
-
if (8 < b.Eb) throw new L(32);
|
|
936
|
-
a = a.split("/").filter((g) => !!g);
|
|
937
|
-
for (var c = vb, d = "/", e = 0; e < a.length; e++) {
|
|
938
|
-
var f = e === a.length - 1;
|
|
939
|
-
if (f && b.parent) break;
|
|
940
|
-
c = ob(c, a[e]);
|
|
941
|
-
d = Ta(d + "/" + a[e]);
|
|
942
|
-
c.eb && (!f || (f && b.Nb)) && (c = c.eb.root);
|
|
943
|
-
if (!f || b.lb)
|
|
944
|
-
for (f = 0; 40960 === (c.mode & 61440); )
|
|
945
|
-
if (
|
|
946
|
-
((c = Bb(d)),
|
|
947
|
-
(d = Ya(Ua(d), c)),
|
|
948
|
-
(c = P(d, { Eb: b.Eb + 1 }).node),
|
|
949
|
-
40 < f++)
|
|
950
|
-
)
|
|
951
|
-
throw new L(32);
|
|
952
|
-
}
|
|
953
|
-
return { path: d, node: c };
|
|
954
|
-
}
|
|
955
|
-
function Cb(a) {
|
|
956
|
-
for (var b; ; ) {
|
|
957
|
-
if (a === a.parent)
|
|
958
|
-
return (
|
|
959
|
-
(a = a.Qa.Rb),
|
|
960
|
-
b ? ("/" !== a[a.length - 1] ? `${a}/${b}` : a + b) : a
|
|
961
|
-
);
|
|
962
|
-
b = b ? `${a.name}/${b}` : a.name;
|
|
963
|
-
a = a.parent;
|
|
964
|
-
}
|
|
965
|
-
}
|
|
966
|
-
function Db(a, b) {
|
|
967
|
-
for (var c = 0, d = 0; d < b.length; d++)
|
|
968
|
-
c = ((c << 5) - c + b.charCodeAt(d)) | 0;
|
|
969
|
-
return ((a + c) >>> 0) % zb.length;
|
|
970
|
-
}
|
|
971
|
-
function ob(a, b) {
|
|
972
|
-
var c = O(a.mode) ? ((c = Eb(a, "x")) ? c : a.wa.bb ? 0 : 2) : 54;
|
|
973
|
-
if (c) throw new L(c);
|
|
974
|
-
for (c = zb[Db(a.id, b)]; c; c = c.Za) {
|
|
975
|
-
var d = c.name;
|
|
976
|
-
if (c.parent.id === a.id && d === b) return c;
|
|
977
|
-
}
|
|
978
|
-
return a.wa.bb(a, b);
|
|
979
|
-
}
|
|
980
|
-
function mb(a, b, c, d) {
|
|
981
|
-
a = new Fb(a, b, c, d);
|
|
982
|
-
b = Db(a.parent.id, a.name);
|
|
983
|
-
a.Za = zb[b];
|
|
984
|
-
return (zb[b] = a);
|
|
985
|
-
}
|
|
986
|
-
function O(a) {
|
|
987
|
-
return 16384 === (a & 61440);
|
|
988
|
-
}
|
|
989
|
-
function Gb(a) {
|
|
990
|
-
var b = ["r", "w", "rw"][a & 3];
|
|
991
|
-
a & 512 && (b += "w");
|
|
992
|
-
return b;
|
|
993
|
-
}
|
|
994
|
-
function Eb(a, b) {
|
|
995
|
-
if (Ab) return 0;
|
|
996
|
-
if (!b.includes("r") || a.mode & 292) {
|
|
997
|
-
if (
|
|
998
|
-
(b.includes("w") && !(a.mode & 146)) ||
|
|
999
|
-
(b.includes("x") && !(a.mode & 73))
|
|
1000
|
-
)
|
|
1001
|
-
return 2;
|
|
1002
|
-
} else return 2;
|
|
1003
|
-
return 0;
|
|
1004
|
-
}
|
|
1005
|
-
function Hb(a, b) {
|
|
1006
|
-
try {
|
|
1007
|
-
return ob(a, b), 20;
|
|
1008
|
-
} catch (c) {}
|
|
1009
|
-
return Eb(a, "wx");
|
|
1010
|
-
}
|
|
1011
|
-
function Ib() {
|
|
1012
|
-
for (var a = 0; 4096 >= a; a++) if (!xb[a]) return a;
|
|
1013
|
-
throw new L(33);
|
|
1014
|
-
}
|
|
1015
|
-
function Jb(a) {
|
|
1016
|
-
a = xb[a];
|
|
1017
|
-
if (!a) throw new L(8);
|
|
1018
|
-
return a;
|
|
1019
|
-
}
|
|
1020
|
-
function Kb(a) {
|
|
1021
|
-
var b = -1;
|
|
1022
|
-
Lb ||
|
|
1023
|
-
((Lb = function () {
|
|
1024
|
-
this.sb = {};
|
|
1025
|
-
}),
|
|
1026
|
-
(Lb.prototype = {}),
|
|
1027
|
-
Object.defineProperties(Lb.prototype, {
|
|
1028
|
-
object: {
|
|
1029
|
-
get() {
|
|
1030
|
-
return this.node;
|
|
1031
|
-
},
|
|
1032
|
-
set(c) {
|
|
1033
|
-
this.node = c;
|
|
1034
|
-
},
|
|
1035
|
-
},
|
|
1036
|
-
flags: {
|
|
1037
|
-
get() {
|
|
1038
|
-
return this.sb.flags;
|
|
1039
|
-
},
|
|
1040
|
-
set(c) {
|
|
1041
|
-
this.sb.flags = c;
|
|
1042
|
-
},
|
|
1043
|
-
},
|
|
1044
|
-
position: {
|
|
1045
|
-
get() {
|
|
1046
|
-
return this.sb.position;
|
|
1047
|
-
},
|
|
1048
|
-
set(c) {
|
|
1049
|
-
this.sb.position = c;
|
|
1050
|
-
},
|
|
1051
|
-
},
|
|
1052
|
-
}));
|
|
1053
|
-
a = Object.assign(new Lb(), a);
|
|
1054
|
-
-1 == b && (b = Ib());
|
|
1055
|
-
a.Sa = b;
|
|
1056
|
-
return (xb[b] = a);
|
|
1057
|
-
}
|
|
1058
|
-
var lb = {
|
|
1059
|
-
open(a) {
|
|
1060
|
-
a.xa = wb[a.node.gb].xa;
|
|
1061
|
-
a.xa.open?.(a);
|
|
1062
|
-
},
|
|
1063
|
-
Ta() {
|
|
1064
|
-
throw new L(70);
|
|
1065
|
-
},
|
|
1066
|
-
};
|
|
1067
|
-
function eb(a, b) {
|
|
1068
|
-
wb[a] = { xa: b };
|
|
1069
|
-
}
|
|
1070
|
-
function Mb(a, b) {
|
|
1071
|
-
var c = "/" === b;
|
|
1072
|
-
if (c && vb) throw new L(10);
|
|
1073
|
-
if (!c && b) {
|
|
1074
|
-
var d = P(b, { Nb: !1 });
|
|
1075
|
-
b = d.path;
|
|
1076
|
-
d = d.node;
|
|
1077
|
-
if (d.eb) throw new L(10);
|
|
1078
|
-
if (!O(d.mode)) throw new L(54);
|
|
1079
|
-
}
|
|
1080
|
-
b = { type: a, Wc: {}, Rb: b, tc: [] };
|
|
1081
|
-
a = a.Qa(b);
|
|
1082
|
-
a.Qa = b;
|
|
1083
|
-
b.root = a;
|
|
1084
|
-
c ? (vb = a) : d && ((d.eb = b), d.Qa && d.Qa.tc.push(b));
|
|
1085
|
-
}
|
|
1086
|
-
function Nb(a, b, c) {
|
|
1087
|
-
var d = P(a, { parent: !0 }).node;
|
|
1088
|
-
a = Va(a);
|
|
1089
|
-
if (!a || "." === a || ".." === a) throw new L(28);
|
|
1090
|
-
var e = Hb(d, a);
|
|
1091
|
-
if (e) throw new L(e);
|
|
1092
|
-
if (!d.wa.qb) throw new L(63);
|
|
1093
|
-
return d.wa.qb(d, a, b, c);
|
|
1094
|
-
}
|
|
1095
|
-
function Q(a) {
|
|
1096
|
-
return Nb(a, 16895, 0);
|
|
1097
|
-
}
|
|
1098
|
-
function Ob(a, b, c) {
|
|
1099
|
-
"undefined" == typeof c && ((c = b), (b = 438));
|
|
1100
|
-
return Nb(a, b | 8192, c);
|
|
1101
|
-
}
|
|
1102
|
-
function Pb(a, b) {
|
|
1103
|
-
if (!Ya(a)) throw new L(44);
|
|
1104
|
-
var c = P(b, { parent: !0 }).node;
|
|
1105
|
-
if (!c) throw new L(44);
|
|
1106
|
-
b = Va(b);
|
|
1107
|
-
var d = Hb(c, b);
|
|
1108
|
-
if (d) throw new L(d);
|
|
1109
|
-
if (!c.wa.tb) throw new L(63);
|
|
1110
|
-
c.wa.tb(c, b, a);
|
|
1111
|
-
}
|
|
1112
|
-
function Qb(a) {
|
|
1113
|
-
var b = P(a, { parent: !0 }).node;
|
|
1114
|
-
if (!b) throw new L(44);
|
|
1115
|
-
var c = Va(a);
|
|
1116
|
-
a = ob(b, c);
|
|
1117
|
-
a: {
|
|
1118
|
-
try {
|
|
1119
|
-
var d = ob(b, c);
|
|
1120
|
-
} catch (f) {
|
|
1121
|
-
d = f.Ka;
|
|
1122
|
-
break a;
|
|
1123
|
-
}
|
|
1124
|
-
var e = Eb(b, "wx");
|
|
1125
|
-
d = e ? e : O(d.mode) ? 31 : 0;
|
|
1126
|
-
}
|
|
1127
|
-
if (d) throw new L(d);
|
|
1128
|
-
if (!b.wa.wb) throw new L(63);
|
|
1129
|
-
if (a.eb) throw new L(10);
|
|
1130
|
-
b.wa.wb(b, c);
|
|
1131
|
-
b = Db(a.parent.id, a.name);
|
|
1132
|
-
if (zb[b] === a) zb[b] = a.Za;
|
|
1133
|
-
else
|
|
1134
|
-
for (b = zb[b]; b; ) {
|
|
1135
|
-
if (b.Za === a) {
|
|
1136
|
-
b.Za = a.Za;
|
|
1137
|
-
break;
|
|
1138
|
-
}
|
|
1139
|
-
b = b.Za;
|
|
1140
|
-
}
|
|
1141
|
-
}
|
|
1142
|
-
function Bb(a) {
|
|
1143
|
-
a = P(a).node;
|
|
1144
|
-
if (!a) throw new L(44);
|
|
1145
|
-
if (!a.wa.hb) throw new L(28);
|
|
1146
|
-
return Ya(Cb(a.parent), a.wa.hb(a));
|
|
1147
|
-
}
|
|
1148
|
-
function Rb(a, b) {
|
|
1149
|
-
a = P(a, { lb: !b }).node;
|
|
1150
|
-
if (!a) throw new L(44);
|
|
1151
|
-
if (!a.wa.Ma) throw new L(63);
|
|
1152
|
-
return a.wa.Ma(a);
|
|
1153
|
-
}
|
|
1154
|
-
function Sb(a) {
|
|
1155
|
-
return Rb(a, !0);
|
|
1156
|
-
}
|
|
1157
|
-
function Tb(a, b) {
|
|
1158
|
-
a = "string" == typeof a ? P(a, { lb: !0 }).node : a;
|
|
1159
|
-
if (!a.wa.Ha) throw new L(63);
|
|
1160
|
-
a.wa.Ha(a, {
|
|
1161
|
-
mode: (b & 4095) | (a.mode & -4096),
|
|
1162
|
-
timestamp: Date.now(),
|
|
1163
|
-
});
|
|
1164
|
-
}
|
|
1165
|
-
function Ub(a, b, c) {
|
|
1166
|
-
if ("" === a) throw new L(44);
|
|
1167
|
-
if ("string" == typeof b) {
|
|
1168
|
-
var d = { r: 0, "r+": 2, w: 577, "w+": 578, a: 1089, "a+": 1090 }[b];
|
|
1169
|
-
if ("undefined" == typeof d)
|
|
1170
|
-
throw Error(`Unknown file open mode: ${b}`);
|
|
1171
|
-
b = d;
|
|
1172
|
-
}
|
|
1173
|
-
c = b & 64 ? (("undefined" == typeof c ? 438 : c) & 4095) | 32768 : 0;
|
|
1174
|
-
if ("object" == typeof a) var e = a;
|
|
1175
|
-
else {
|
|
1176
|
-
a = Ta(a);
|
|
1177
|
-
try {
|
|
1178
|
-
e = P(a, { lb: !(b & 131072) }).node;
|
|
1179
|
-
} catch (f) {}
|
|
1180
|
-
}
|
|
1181
|
-
d = !1;
|
|
1182
|
-
if (b & 64)
|
|
1183
|
-
if (e) {
|
|
1184
|
-
if (b & 128) throw new L(20);
|
|
1185
|
-
} else (e = Nb(a, c, 0)), (d = !0);
|
|
1186
|
-
if (!e) throw new L(44);
|
|
1187
|
-
8192 === (e.mode & 61440) && (b &= -513);
|
|
1188
|
-
if (b & 65536 && !O(e.mode)) throw new L(54);
|
|
1189
|
-
if (
|
|
1190
|
-
!d &&
|
|
1191
|
-
(c = e
|
|
1192
|
-
? 40960 === (e.mode & 61440)
|
|
1193
|
-
? 32
|
|
1194
|
-
: O(e.mode) && ("r" !== Gb(b) || b & 512)
|
|
1195
|
-
? 31
|
|
1196
|
-
: Eb(e, Gb(b))
|
|
1197
|
-
: 44)
|
|
1198
|
-
)
|
|
1199
|
-
throw new L(c);
|
|
1200
|
-
if (b & 512 && !d) {
|
|
1201
|
-
c = e;
|
|
1202
|
-
c = "string" == typeof c ? P(c, { lb: !0 }).node : c;
|
|
1203
|
-
if (!c.wa.Ha) throw new L(63);
|
|
1204
|
-
if (O(c.mode)) throw new L(31);
|
|
1205
|
-
if (32768 !== (c.mode & 61440)) throw new L(28);
|
|
1206
|
-
if ((d = Eb(c, "w"))) throw new L(d);
|
|
1207
|
-
c.wa.Ha(c, { size: 0, timestamp: Date.now() });
|
|
1208
|
-
}
|
|
1209
|
-
b &= -131713;
|
|
1210
|
-
e = Kb({
|
|
1211
|
-
node: e,
|
|
1212
|
-
path: Cb(e),
|
|
1213
|
-
flags: b,
|
|
1214
|
-
seekable: !0,
|
|
1215
|
-
position: 0,
|
|
1216
|
-
xa: e.xa,
|
|
1217
|
-
Ic: [],
|
|
1218
|
-
error: !1,
|
|
1219
|
-
});
|
|
1220
|
-
e.xa.open && e.xa.open(e);
|
|
1221
|
-
!k.logReadFiles || b & 1 || ((Vb ||= {}), a in Vb || (Vb[a] = 1));
|
|
1222
|
-
return e;
|
|
1223
|
-
}
|
|
1224
|
-
function Wb(a) {
|
|
1225
|
-
if (null === a.Sa) throw new L(8);
|
|
1226
|
-
a.zb && (a.zb = null);
|
|
1227
|
-
try {
|
|
1228
|
-
a.xa.close && a.xa.close(a);
|
|
1229
|
-
} catch (b) {
|
|
1230
|
-
throw b;
|
|
1231
|
-
} finally {
|
|
1232
|
-
xb[a.Sa] = null;
|
|
1233
|
-
}
|
|
1234
|
-
a.Sa = null;
|
|
1235
|
-
}
|
|
1236
|
-
function Xb(a, b, c) {
|
|
1237
|
-
if (null === a.Sa) throw new L(8);
|
|
1238
|
-
if (!a.seekable || !a.xa.Ta) throw new L(70);
|
|
1239
|
-
if (0 != c && 1 != c && 2 != c) throw new L(28);
|
|
1240
|
-
a.position = a.xa.Ta(a, b, c);
|
|
1241
|
-
a.Ic = [];
|
|
1242
|
-
}
|
|
1243
|
-
function Yb(a, b, c, d, e, f) {
|
|
1244
|
-
if (0 > d || 0 > e) throw new L(28);
|
|
1245
|
-
if (null === a.Sa) throw new L(8);
|
|
1246
|
-
if (0 === (a.flags & 2097155)) throw new L(8);
|
|
1247
|
-
if (O(a.node.mode)) throw new L(31);
|
|
1248
|
-
if (!a.xa.write) throw new L(28);
|
|
1249
|
-
a.seekable && a.flags & 1024 && Xb(a, 0, 2);
|
|
1250
|
-
var g = "undefined" != typeof e;
|
|
1251
|
-
if (!g) e = a.position;
|
|
1252
|
-
else if (!a.seekable) throw new L(70);
|
|
1253
|
-
b = a.xa.write(a, b, c, d, e, f);
|
|
1254
|
-
g || (a.position += b);
|
|
1255
|
-
return b;
|
|
1256
|
-
}
|
|
1257
|
-
var Zb;
|
|
1258
|
-
function $b(a, b) {
|
|
1259
|
-
a = "string" == typeof a ? a : Cb(a);
|
|
1260
|
-
for (b = b.split("/").reverse(); b.length; ) {
|
|
1261
|
-
var c = b.pop();
|
|
1262
|
-
if (c) {
|
|
1263
|
-
var d = Ta(a + "/" + c);
|
|
1264
|
-
try {
|
|
1265
|
-
Q(d);
|
|
1266
|
-
} catch (e) {}
|
|
1267
|
-
a = d;
|
|
1268
|
-
}
|
|
1269
|
-
}
|
|
1270
|
-
return d;
|
|
1271
|
-
}
|
|
1272
|
-
function ac(a, b, c, d) {
|
|
1273
|
-
a = Ta(("string" == typeof a ? a : Cb(a)) + "/" + b);
|
|
1274
|
-
c = ub(c, d);
|
|
1275
|
-
return Nb(a, ((void 0 !== c ? c : 438) & 4095) | 32768, 0);
|
|
1276
|
-
}
|
|
1277
|
-
function sb(a, b, c, d, e, f) {
|
|
1278
|
-
var g = b;
|
|
1279
|
-
a &&
|
|
1280
|
-
((a = "string" == typeof a ? a : Cb(a)), (g = b ? Ta(a + "/" + b) : a));
|
|
1281
|
-
a = ub(d, e);
|
|
1282
|
-
g = Nb(g, ((void 0 !== a ? a : 438) & 4095) | 32768, 0);
|
|
1283
|
-
if (c) {
|
|
1284
|
-
if ("string" == typeof c) {
|
|
1285
|
-
b = Array(c.length);
|
|
1286
|
-
d = 0;
|
|
1287
|
-
for (e = c.length; d < e; ++d) b[d] = c.charCodeAt(d);
|
|
1288
|
-
c = b;
|
|
1289
|
-
}
|
|
1290
|
-
Tb(g, a | 146);
|
|
1291
|
-
b = Ub(g, 577);
|
|
1292
|
-
Yb(b, c, 0, c.length, 0, f);
|
|
1293
|
-
Wb(b);
|
|
1294
|
-
Tb(g, a);
|
|
1295
|
-
}
|
|
1296
|
-
}
|
|
1297
|
-
function R(a, b, c, d) {
|
|
1298
|
-
a = Ta(("string" == typeof a ? a : Cb(a)) + "/" + b);
|
|
1299
|
-
b = ub(!!c, !!d);
|
|
1300
|
-
R.Qb || (R.Qb = 64);
|
|
1301
|
-
var e = (R.Qb++ << 8) | 0;
|
|
1302
|
-
eb(e, {
|
|
1303
|
-
open(f) {
|
|
1304
|
-
f.seekable = !1;
|
|
1305
|
-
},
|
|
1306
|
-
close() {
|
|
1307
|
-
d?.buffer?.length && d(10);
|
|
1308
|
-
},
|
|
1309
|
-
read(f, g, m, l) {
|
|
1310
|
-
for (var n = 0, q = 0; q < l; q++) {
|
|
1311
|
-
try {
|
|
1312
|
-
var p = c();
|
|
1313
|
-
} catch (t) {
|
|
1314
|
-
throw new L(29);
|
|
1315
|
-
}
|
|
1316
|
-
if (void 0 === p && 0 === n) throw new L(6);
|
|
1317
|
-
if (null === p || void 0 === p) break;
|
|
1318
|
-
n++;
|
|
1319
|
-
g[m + q] = p;
|
|
1320
|
-
}
|
|
1321
|
-
n && (f.node.timestamp = Date.now());
|
|
1322
|
-
return n;
|
|
1323
|
-
},
|
|
1324
|
-
write(f, g, m, l) {
|
|
1325
|
-
for (var n = 0; n < l; n++)
|
|
1326
|
-
try {
|
|
1327
|
-
d(g[m + n]);
|
|
1328
|
-
} catch (q) {
|
|
1329
|
-
throw new L(29);
|
|
1330
|
-
}
|
|
1331
|
-
l && (f.node.timestamp = Date.now());
|
|
1332
|
-
return n;
|
|
1333
|
-
},
|
|
1334
|
-
});
|
|
1335
|
-
return Ob(a, b, e);
|
|
1336
|
-
}
|
|
1337
|
-
function bc(a) {
|
|
1338
|
-
if (!(a.rc || a.sc || a.link || a.va)) {
|
|
1339
|
-
if ("undefined" != typeof XMLHttpRequest)
|
|
1340
|
-
throw Error(
|
|
1341
|
-
"Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.",
|
|
1342
|
-
);
|
|
1343
|
-
if (ha)
|
|
1344
|
-
try {
|
|
1345
|
-
(a.va = bb(ha(a.url), !0)), (a.Aa = a.va.length);
|
|
1346
|
-
} catch (b) {
|
|
1347
|
-
throw new L(29);
|
|
1348
|
-
}
|
|
1349
|
-
else throw Error("Cannot load without read() or XMLHttpRequest.");
|
|
1350
|
-
}
|
|
1351
|
-
}
|
|
1352
|
-
function cc(a, b, c, d, e) {
|
|
1353
|
-
function f() {
|
|
1354
|
-
this.Bb = !1;
|
|
1355
|
-
this.kb = [];
|
|
1356
|
-
}
|
|
1357
|
-
function g(p, t, h, r, v) {
|
|
1358
|
-
p = p.node.va;
|
|
1359
|
-
if (v >= p.length) return 0;
|
|
1360
|
-
r = Math.min(p.length - v, r);
|
|
1361
|
-
if (p.slice) for (var A = 0; A < r; A++) t[h + A] = p[v + A];
|
|
1362
|
-
else for (A = 0; A < r; A++) t[h + A] = p.get(v + A);
|
|
1363
|
-
return r;
|
|
1364
|
-
}
|
|
1365
|
-
f.prototype.get = function (p) {
|
|
1366
|
-
if (!(p > this.length - 1 || 0 > p)) {
|
|
1367
|
-
var t = p % this.Kb;
|
|
1368
|
-
return this.nb((p / this.Kb) | 0)[t];
|
|
1369
|
-
}
|
|
1370
|
-
};
|
|
1371
|
-
f.prototype.zc = function (p) {
|
|
1372
|
-
this.nb = p;
|
|
1373
|
-
};
|
|
1374
|
-
f.prototype.Ib = function () {
|
|
1375
|
-
var p = new XMLHttpRequest();
|
|
1376
|
-
p.open("HEAD", c, !1);
|
|
1377
|
-
p.send(null);
|
|
1378
|
-
if (!((200 <= p.status && 300 > p.status) || 304 === p.status))
|
|
1379
|
-
throw Error("Couldn't load " + c + ". Status: " + p.status);
|
|
1380
|
-
var t = Number(p.getResponseHeader("Content-length")),
|
|
1381
|
-
h,
|
|
1382
|
-
r = (h = p.getResponseHeader("Accept-Ranges")) && "bytes" === h;
|
|
1383
|
-
p = (h = p.getResponseHeader("Content-Encoding")) && "gzip" === h;
|
|
1384
|
-
var v = 1048576;
|
|
1385
|
-
r || (v = t);
|
|
1386
|
-
var A = this;
|
|
1387
|
-
A.zc((J) => {
|
|
1388
|
-
var H = J * v,
|
|
1389
|
-
y = (J + 1) * v - 1;
|
|
1390
|
-
y = Math.min(y, t - 1);
|
|
1391
|
-
if ("undefined" == typeof A.kb[J]) {
|
|
1392
|
-
var N = A.kb;
|
|
1393
|
-
if (H > y)
|
|
1394
|
-
throw Error(
|
|
1395
|
-
"invalid range (" + H + ", " + y + ") or no bytes requested!",
|
|
1396
|
-
);
|
|
1397
|
-
if (y > t - 1)
|
|
1398
|
-
throw Error("only " + t + " bytes available! programmer error!");
|
|
1399
|
-
var D = new XMLHttpRequest();
|
|
1400
|
-
D.open("GET", c, !1);
|
|
1401
|
-
t !== v && D.setRequestHeader("Range", "bytes=" + H + "-" + y);
|
|
1402
|
-
D.responseType = "arraybuffer";
|
|
1403
|
-
D.overrideMimeType &&
|
|
1404
|
-
D.overrideMimeType("text/plain; charset=x-user-defined");
|
|
1405
|
-
D.send(null);
|
|
1406
|
-
if (!((200 <= D.status && 300 > D.status) || 304 === D.status))
|
|
1407
|
-
throw Error("Couldn't load " + c + ". Status: " + D.status);
|
|
1408
|
-
H =
|
|
1409
|
-
void 0 !== D.response
|
|
1410
|
-
? new Uint8Array(D.response || [])
|
|
1411
|
-
: bb(D.responseText || "", !0);
|
|
1412
|
-
N[J] = H;
|
|
1413
|
-
}
|
|
1414
|
-
if ("undefined" == typeof A.kb[J]) throw Error("doXHR failed!");
|
|
1415
|
-
return A.kb[J];
|
|
1416
|
-
});
|
|
1417
|
-
if (p || !t)
|
|
1418
|
-
(v = t = 1),
|
|
1419
|
-
(v = t = this.nb(0).length),
|
|
1420
|
-
la(
|
|
1421
|
-
"LazyFiles on gzip forces download of the whole file when length is accessed",
|
|
1422
|
-
);
|
|
1423
|
-
this.$b = t;
|
|
1424
|
-
this.Zb = v;
|
|
1425
|
-
this.Bb = !0;
|
|
1426
|
-
};
|
|
1427
|
-
if ("undefined" != typeof XMLHttpRequest) {
|
|
1428
|
-
var m = new f();
|
|
1429
|
-
Object.defineProperties(m, {
|
|
1430
|
-
length: {
|
|
1431
|
-
get: function () {
|
|
1432
|
-
this.Bb || this.Ib();
|
|
1433
|
-
return this.$b;
|
|
1434
|
-
},
|
|
1435
|
-
},
|
|
1436
|
-
Kb: {
|
|
1437
|
-
get: function () {
|
|
1438
|
-
this.Bb || this.Ib();
|
|
1439
|
-
return this.Zb;
|
|
1440
|
-
},
|
|
1441
|
-
},
|
|
1442
|
-
});
|
|
1443
|
-
var l = void 0;
|
|
1444
|
-
} else (l = c), (m = void 0);
|
|
1445
|
-
var n = ac(a, b, d, e);
|
|
1446
|
-
m ? (n.va = m) : l && ((n.va = null), (n.url = l));
|
|
1447
|
-
Object.defineProperties(n, {
|
|
1448
|
-
Aa: {
|
|
1449
|
-
get: function () {
|
|
1450
|
-
return this.va.length;
|
|
1451
|
-
},
|
|
1452
|
-
},
|
|
1453
|
-
});
|
|
1454
|
-
var q = {};
|
|
1455
|
-
Object.keys(n.xa).forEach((p) => {
|
|
1456
|
-
var t = n.xa[p];
|
|
1457
|
-
q[p] = function () {
|
|
1458
|
-
bc(n);
|
|
1459
|
-
return t.apply(null, arguments);
|
|
1460
|
-
};
|
|
1461
|
-
});
|
|
1462
|
-
q.read = (p, t, h, r, v) => {
|
|
1463
|
-
bc(n);
|
|
1464
|
-
return g(p, t, h, r, v);
|
|
1465
|
-
};
|
|
1466
|
-
q.cb = (p, t, h) => {
|
|
1467
|
-
bc(n);
|
|
1468
|
-
var r = jb(t);
|
|
1469
|
-
if (!r) throw new L(48);
|
|
1470
|
-
g(p, w, r, t, h);
|
|
1471
|
-
return { za: r, Fa: !0 };
|
|
1472
|
-
};
|
|
1473
|
-
n.xa = q;
|
|
1474
|
-
return n;
|
|
1475
|
-
}
|
|
1476
|
-
var S = {},
|
|
1477
|
-
Lb,
|
|
1478
|
-
Vb,
|
|
1479
|
-
dc = (a) => (a ? I(x, a) : "");
|
|
1480
|
-
function ec(a, b, c) {
|
|
1481
|
-
if ("/" === b.charAt(0)) return b;
|
|
1482
|
-
a = -100 === a ? "/" : Jb(a).path;
|
|
1483
|
-
if (0 == b.length) {
|
|
1484
|
-
if (!c) throw new L(44);
|
|
1485
|
-
return a;
|
|
1486
|
-
}
|
|
1487
|
-
return Ta(a + "/" + b);
|
|
1488
|
-
}
|
|
1489
|
-
function fc(a, b, c) {
|
|
1490
|
-
a = a(b);
|
|
1491
|
-
B[c >> 2] = a.ic;
|
|
1492
|
-
B[(c + 4) >> 2] = a.mode;
|
|
1493
|
-
C[(c + 8) >> 2] = a.vc;
|
|
1494
|
-
B[(c + 12) >> 2] = a.uid;
|
|
1495
|
-
B[(c + 16) >> 2] = a.pc;
|
|
1496
|
-
B[(c + 20) >> 2] = a.gb;
|
|
1497
|
-
F = [
|
|
1498
|
-
a.size >>> 0,
|
|
1499
|
-
((E = a.size),
|
|
1500
|
-
1 <= +Math.abs(E)
|
|
1501
|
-
? 0 < E
|
|
1502
|
-
? +Math.floor(E / 4294967296) >>> 0
|
|
1503
|
-
: ~~+Math.ceil((E - +(~~E >>> 0)) / 4294967296) >>> 0
|
|
1504
|
-
: 0),
|
|
1505
|
-
];
|
|
1506
|
-
B[(c + 24) >> 2] = F[0];
|
|
1507
|
-
B[(c + 28) >> 2] = F[1];
|
|
1508
|
-
B[(c + 32) >> 2] = 4096;
|
|
1509
|
-
B[(c + 36) >> 2] = a.dc;
|
|
1510
|
-
b = a.bc.getTime();
|
|
1511
|
-
var d = a.uc.getTime(),
|
|
1512
|
-
e = a.hc.getTime();
|
|
1513
|
-
F = [
|
|
1514
|
-
Math.floor(b / 1e3) >>> 0,
|
|
1515
|
-
((E = Math.floor(b / 1e3)),
|
|
1516
|
-
1 <= +Math.abs(E)
|
|
1517
|
-
? 0 < E
|
|
1518
|
-
? +Math.floor(E / 4294967296) >>> 0
|
|
1519
|
-
: ~~+Math.ceil((E - +(~~E >>> 0)) / 4294967296) >>> 0
|
|
1520
|
-
: 0),
|
|
1521
|
-
];
|
|
1522
|
-
B[(c + 40) >> 2] = F[0];
|
|
1523
|
-
B[(c + 44) >> 2] = F[1];
|
|
1524
|
-
C[(c + 48) >> 2] = (b % 1e3) * 1e3;
|
|
1525
|
-
F = [
|
|
1526
|
-
Math.floor(d / 1e3) >>> 0,
|
|
1527
|
-
((E = Math.floor(d / 1e3)),
|
|
1528
|
-
1 <= +Math.abs(E)
|
|
1529
|
-
? 0 < E
|
|
1530
|
-
? +Math.floor(E / 4294967296) >>> 0
|
|
1531
|
-
: ~~+Math.ceil((E - +(~~E >>> 0)) / 4294967296) >>> 0
|
|
1532
|
-
: 0),
|
|
1533
|
-
];
|
|
1534
|
-
B[(c + 56) >> 2] = F[0];
|
|
1535
|
-
B[(c + 60) >> 2] = F[1];
|
|
1536
|
-
C[(c + 64) >> 2] = (d % 1e3) * 1e3;
|
|
1537
|
-
F = [
|
|
1538
|
-
Math.floor(e / 1e3) >>> 0,
|
|
1539
|
-
((E = Math.floor(e / 1e3)),
|
|
1540
|
-
1 <= +Math.abs(E)
|
|
1541
|
-
? 0 < E
|
|
1542
|
-
? +Math.floor(E / 4294967296) >>> 0
|
|
1543
|
-
: ~~+Math.ceil((E - +(~~E >>> 0)) / 4294967296) >>> 0
|
|
1544
|
-
: 0),
|
|
1545
|
-
];
|
|
1546
|
-
B[(c + 72) >> 2] = F[0];
|
|
1547
|
-
B[(c + 76) >> 2] = F[1];
|
|
1548
|
-
C[(c + 80) >> 2] = (e % 1e3) * 1e3;
|
|
1549
|
-
F = [
|
|
1550
|
-
a.Pb >>> 0,
|
|
1551
|
-
((E = a.Pb),
|
|
1552
|
-
1 <= +Math.abs(E)
|
|
1553
|
-
? 0 < E
|
|
1554
|
-
? +Math.floor(E / 4294967296) >>> 0
|
|
1555
|
-
: ~~+Math.ceil((E - +(~~E >>> 0)) / 4294967296) >>> 0
|
|
1556
|
-
: 0),
|
|
1557
|
-
];
|
|
1558
|
-
B[(c + 88) >> 2] = F[0];
|
|
1559
|
-
B[(c + 92) >> 2] = F[1];
|
|
1560
|
-
return 0;
|
|
1561
|
-
}
|
|
1562
|
-
var gc = void 0,
|
|
1563
|
-
hc = {},
|
|
1564
|
-
ic = (a) => {
|
|
1565
|
-
for (; a.length; ) {
|
|
1566
|
-
var b = a.pop();
|
|
1567
|
-
a.pop()(b);
|
|
1568
|
-
}
|
|
1569
|
-
};
|
|
1570
|
-
function jc(a) {
|
|
1571
|
-
return this.fromWireType(B[a >> 2]);
|
|
1572
|
-
}
|
|
1573
|
-
var kc = {},
|
|
1574
|
-
lc = {},
|
|
1575
|
-
mc = {},
|
|
1576
|
-
nc,
|
|
1577
|
-
pc = (a, b, c) => {
|
|
1578
|
-
function d(m) {
|
|
1579
|
-
m = c(m);
|
|
1580
|
-
if (m.length !== a.length)
|
|
1581
|
-
throw new nc("Mismatched type converter count");
|
|
1582
|
-
for (var l = 0; l < a.length; ++l) oc(a[l], m[l]);
|
|
1583
|
-
}
|
|
1584
|
-
a.forEach(function (m) {
|
|
1585
|
-
mc[m] = b;
|
|
1586
|
-
});
|
|
1587
|
-
var e = Array(b.length),
|
|
1588
|
-
f = [],
|
|
1589
|
-
g = 0;
|
|
1590
|
-
b.forEach((m, l) => {
|
|
1591
|
-
lc.hasOwnProperty(m)
|
|
1592
|
-
? (e[l] = lc[m])
|
|
1593
|
-
: (f.push(m),
|
|
1594
|
-
kc.hasOwnProperty(m) || (kc[m] = []),
|
|
1595
|
-
kc[m].push(() => {
|
|
1596
|
-
e[l] = lc[m];
|
|
1597
|
-
++g;
|
|
1598
|
-
g === f.length && d(e);
|
|
1599
|
-
}));
|
|
1600
|
-
});
|
|
1601
|
-
0 === f.length && d(e);
|
|
1602
|
-
},
|
|
1603
|
-
qc,
|
|
1604
|
-
U = (a) => {
|
|
1605
|
-
for (var b = ""; x[a]; ) b += qc[x[a++]];
|
|
1606
|
-
return b;
|
|
1607
|
-
},
|
|
1608
|
-
V;
|
|
1609
|
-
function rc(a, b, c = {}) {
|
|
1610
|
-
var d = b.name;
|
|
1611
|
-
if (!a)
|
|
1612
|
-
throw new V(`type "${d}" must have a positive integer typeid pointer`);
|
|
1613
|
-
if (lc.hasOwnProperty(a)) {
|
|
1614
|
-
if (c.qc) return;
|
|
1615
|
-
throw new V(`Cannot register type '${d}' twice`);
|
|
1616
|
-
}
|
|
1617
|
-
lc[a] = b;
|
|
1618
|
-
delete mc[a];
|
|
1619
|
-
kc.hasOwnProperty(a) &&
|
|
1620
|
-
((b = kc[a]), delete kc[a], b.forEach((e) => e()));
|
|
1621
|
-
}
|
|
1622
|
-
function oc(a, b, c = {}) {
|
|
1623
|
-
if (!("argPackAdvance" in b))
|
|
1624
|
-
throw new TypeError(
|
|
1625
|
-
"registerType registeredInstance requires argPackAdvance",
|
|
1626
|
-
);
|
|
1627
|
-
return rc(a, b, c);
|
|
1628
|
-
}
|
|
1629
|
-
var sc = (a) => {
|
|
1630
|
-
throw new V(a.ua.Ba.ya.name + " instance already deleted");
|
|
1631
|
-
},
|
|
1632
|
-
tc = !1,
|
|
1633
|
-
uc = () => {},
|
|
1634
|
-
vc = (a, b, c) => {
|
|
1635
|
-
if (b === c) return a;
|
|
1636
|
-
if (void 0 === c.Ga) return null;
|
|
1637
|
-
a = vc(a, b, c.Ga);
|
|
1638
|
-
return null === a ? null : c.jc(a);
|
|
1639
|
-
},
|
|
1640
|
-
wc = {},
|
|
1641
|
-
xc = [],
|
|
1642
|
-
yc = () => {
|
|
1643
|
-
for (; xc.length; ) {
|
|
1644
|
-
var a = xc.pop();
|
|
1645
|
-
a.ua.Xa = !1;
|
|
1646
|
-
a["delete"]();
|
|
1647
|
-
}
|
|
1648
|
-
},
|
|
1649
|
-
zc,
|
|
1650
|
-
Ac = {},
|
|
1651
|
-
Bc = (a, b) => {
|
|
1652
|
-
if (void 0 === b) throw new V("ptr should not be undefined");
|
|
1653
|
-
for (; a.Ga; ) (b = a.ib(b)), (a = a.Ga);
|
|
1654
|
-
return Ac[b];
|
|
1655
|
-
},
|
|
1656
|
-
Dc = (a, b) => {
|
|
1657
|
-
if (!b.Ba || !b.za)
|
|
1658
|
-
throw new nc("makeClassHandle requires ptr and ptrType");
|
|
1659
|
-
if (!!b.Ia !== !!b.Ca)
|
|
1660
|
-
throw new nc("Both smartPtrType and smartPtr must be specified");
|
|
1661
|
-
b.count = { value: 1 };
|
|
1662
|
-
return Cc(Object.create(a, { ua: { value: b, writable: !0 } }));
|
|
1663
|
-
},
|
|
1664
|
-
Cc = (a) => {
|
|
1665
|
-
if ("undefined" === typeof FinalizationRegistry)
|
|
1666
|
-
return (Cc = (b) => b), a;
|
|
1667
|
-
tc = new FinalizationRegistry((b) => {
|
|
1668
|
-
b = b.ua;
|
|
1669
|
-
--b.count.value;
|
|
1670
|
-
0 === b.count.value && (b.Ca ? b.Ia.Oa(b.Ca) : b.Ba.ya.Oa(b.za));
|
|
1671
|
-
});
|
|
1672
|
-
Cc = (b) => {
|
|
1673
|
-
var c = b.ua;
|
|
1674
|
-
c.Ca && tc.register(b, { ua: c }, b);
|
|
1675
|
-
return b;
|
|
1676
|
-
};
|
|
1677
|
-
uc = (b) => {
|
|
1678
|
-
tc.unregister(b);
|
|
1679
|
-
};
|
|
1680
|
-
return Cc(a);
|
|
1681
|
-
};
|
|
1682
|
-
function Ec() {}
|
|
1683
|
-
var Fc = (a, b) => Object.defineProperty(b, "name", { value: a }),
|
|
1684
|
-
Gc = (a, b, c) => {
|
|
1685
|
-
if (void 0 === a[b].Ea) {
|
|
1686
|
-
var d = a[b];
|
|
1687
|
-
a[b] = function () {
|
|
1688
|
-
if (!a[b].Ea.hasOwnProperty(arguments.length))
|
|
1689
|
-
throw new V(
|
|
1690
|
-
`Function '${c}' called with an invalid number of arguments (${arguments.length}) - expects one of (${a[b].Ea})!`,
|
|
1691
|
-
);
|
|
1692
|
-
return a[b].Ea[arguments.length].apply(this, arguments);
|
|
1693
|
-
};
|
|
1694
|
-
a[b].Ea = [];
|
|
1695
|
-
a[b].Ea[d.jb] = d;
|
|
1696
|
-
}
|
|
1697
|
-
},
|
|
1698
|
-
Hc = (a, b, c) => {
|
|
1699
|
-
if (k.hasOwnProperty(a)) {
|
|
1700
|
-
if (void 0 === c || (void 0 !== k[a].Ea && void 0 !== k[a].Ea[c]))
|
|
1701
|
-
throw new V(`Cannot register public name '${a}' twice`);
|
|
1702
|
-
Gc(k, a, a);
|
|
1703
|
-
if (k.hasOwnProperty(c))
|
|
1704
|
-
throw new V(
|
|
1705
|
-
`Cannot register multiple overloads of a function with the same number of arguments (${c})!`,
|
|
1706
|
-
);
|
|
1707
|
-
k[a].Ea[c] = b;
|
|
1708
|
-
} else (k[a] = b), void 0 !== c && (k[a].Vc = c);
|
|
1709
|
-
},
|
|
1710
|
-
Ic = (a) => {
|
|
1711
|
-
if (void 0 === a) return "_unknown";
|
|
1712
|
-
a = a.replace(/[^a-zA-Z0-9_]/g, "$");
|
|
1713
|
-
var b = a.charCodeAt(0);
|
|
1714
|
-
return 48 <= b && 57 >= b ? `_${a}` : a;
|
|
1715
|
-
};
|
|
1716
|
-
function Jc(a, b, c, d, e, f, g, m) {
|
|
1717
|
-
this.name = a;
|
|
1718
|
-
this.constructor = b;
|
|
1719
|
-
this.Ya = c;
|
|
1720
|
-
this.Oa = d;
|
|
1721
|
-
this.Ga = e;
|
|
1722
|
-
this.lc = f;
|
|
1723
|
-
this.ib = g;
|
|
1724
|
-
this.jc = m;
|
|
1725
|
-
this.xc = [];
|
|
1726
|
-
}
|
|
1727
|
-
var Kc = (a, b, c) => {
|
|
1728
|
-
for (; b !== c; ) {
|
|
1729
|
-
if (!b.ib)
|
|
1730
|
-
throw new V(
|
|
1731
|
-
`Expected null or instance of ${c.name}, got an instance of ${b.name}`,
|
|
1732
|
-
);
|
|
1733
|
-
a = b.ib(a);
|
|
1734
|
-
b = b.Ga;
|
|
1735
|
-
}
|
|
1736
|
-
return a;
|
|
1737
|
-
};
|
|
1738
|
-
function Lc(a, b) {
|
|
1739
|
-
if (null === b) {
|
|
1740
|
-
if (this.Ab) throw new V(`null is not a valid ${this.name}`);
|
|
1741
|
-
return 0;
|
|
1742
|
-
}
|
|
1743
|
-
if (!b.ua) throw new V(`Cannot pass "${Mc(b)}" as a ${this.name}`);
|
|
1744
|
-
if (!b.ua.za)
|
|
1745
|
-
throw new V(
|
|
1746
|
-
`Cannot pass deleted object as a pointer of type ${this.name}`,
|
|
1747
|
-
);
|
|
1748
|
-
return Kc(b.ua.za, b.ua.Ba.ya, this.ya);
|
|
1749
|
-
}
|
|
1750
|
-
function Nc(a, b) {
|
|
1751
|
-
if (null === b) {
|
|
1752
|
-
if (this.Ab) throw new V(`null is not a valid ${this.name}`);
|
|
1753
|
-
if (this.pb) {
|
|
1754
|
-
var c = this.Db();
|
|
1755
|
-
null !== a && a.push(this.Oa, c);
|
|
1756
|
-
return c;
|
|
1757
|
-
}
|
|
1758
|
-
return 0;
|
|
1759
|
-
}
|
|
1760
|
-
if (!b || !b.ua) throw new V(`Cannot pass "${Mc(b)}" as a ${this.name}`);
|
|
1761
|
-
if (!b.ua.za)
|
|
1762
|
-
throw new V(
|
|
1763
|
-
`Cannot pass deleted object as a pointer of type ${this.name}`,
|
|
1764
|
-
);
|
|
1765
|
-
if (!this.ob && b.ua.Ba.ob)
|
|
1766
|
-
throw new V(
|
|
1767
|
-
`Cannot convert argument of type ${
|
|
1768
|
-
b.ua.Ia ? b.ua.Ia.name : b.ua.Ba.name
|
|
1769
|
-
} to parameter type ${this.name}`,
|
|
1770
|
-
);
|
|
1771
|
-
c = Kc(b.ua.za, b.ua.Ba.ya, this.ya);
|
|
1772
|
-
if (this.pb) {
|
|
1773
|
-
if (void 0 === b.ua.Ca)
|
|
1774
|
-
throw new V("Passing raw pointer to smart pointer is illegal");
|
|
1775
|
-
switch (this.Dc) {
|
|
1776
|
-
case 0:
|
|
1777
|
-
if (b.ua.Ia === this) c = b.ua.Ca;
|
|
1778
|
-
else
|
|
1779
|
-
throw new V(
|
|
1780
|
-
`Cannot convert argument of type ${
|
|
1781
|
-
b.ua.Ia ? b.ua.Ia.name : b.ua.Ba.name
|
|
1782
|
-
} to parameter type ${this.name}`,
|
|
1783
|
-
);
|
|
1784
|
-
break;
|
|
1785
|
-
case 1:
|
|
1786
|
-
c = b.ua.Ca;
|
|
1787
|
-
break;
|
|
1788
|
-
case 2:
|
|
1789
|
-
if (b.ua.Ia === this) c = b.ua.Ca;
|
|
1790
|
-
else {
|
|
1791
|
-
var d = b.clone();
|
|
1792
|
-
c = this.yc(
|
|
1793
|
-
c,
|
|
1794
|
-
Oc(() => d["delete"]()),
|
|
1795
|
-
);
|
|
1796
|
-
null !== a && a.push(this.Oa, c);
|
|
1797
|
-
}
|
|
1798
|
-
break;
|
|
1799
|
-
default:
|
|
1800
|
-
throw new V("Unsupporting sharing policy");
|
|
1801
|
-
}
|
|
1802
|
-
}
|
|
1803
|
-
return c;
|
|
1804
|
-
}
|
|
1805
|
-
function Pc(a, b) {
|
|
1806
|
-
if (null === b) {
|
|
1807
|
-
if (this.Ab) throw new V(`null is not a valid ${this.name}`);
|
|
1808
|
-
return 0;
|
|
1809
|
-
}
|
|
1810
|
-
if (!b.ua) throw new V(`Cannot pass "${Mc(b)}" as a ${this.name}`);
|
|
1811
|
-
if (!b.ua.za)
|
|
1812
|
-
throw new V(
|
|
1813
|
-
`Cannot pass deleted object as a pointer of type ${this.name}`,
|
|
1814
|
-
);
|
|
1815
|
-
if (b.ua.Ba.ob)
|
|
1816
|
-
throw new V(
|
|
1817
|
-
`Cannot convert argument of type ${b.ua.Ba.name} to parameter type ${this.name}`,
|
|
1818
|
-
);
|
|
1819
|
-
return Kc(b.ua.za, b.ua.Ba.ya, this.ya);
|
|
1820
|
-
}
|
|
1821
|
-
function Qc(a) {
|
|
1822
|
-
return this.fromWireType(C[a >> 2]);
|
|
1823
|
-
}
|
|
1824
|
-
function Rc(a, b, c, d, e, f, g, m, l, n, q) {
|
|
1825
|
-
this.name = a;
|
|
1826
|
-
this.ya = b;
|
|
1827
|
-
this.Ab = c;
|
|
1828
|
-
this.ob = d;
|
|
1829
|
-
this.pb = e;
|
|
1830
|
-
this.wc = f;
|
|
1831
|
-
this.Dc = g;
|
|
1832
|
-
this.Tb = m;
|
|
1833
|
-
this.Db = l;
|
|
1834
|
-
this.yc = n;
|
|
1835
|
-
this.Oa = q;
|
|
1836
|
-
e || void 0 !== b.Ga
|
|
1837
|
-
? (this.toWireType = Nc)
|
|
1838
|
-
: ((this.toWireType = d ? Lc : Pc), (this.La = null));
|
|
1839
|
-
}
|
|
1840
|
-
var Sc = (a, b, c) => {
|
|
1841
|
-
if (!k.hasOwnProperty(a))
|
|
1842
|
-
throw new nc("Replacing nonexistant public symbol");
|
|
1843
|
-
void 0 !== k[a].Ea && void 0 !== c
|
|
1844
|
-
? (k[a].Ea[c] = b)
|
|
1845
|
-
: ((k[a] = b), (k[a].jb = c));
|
|
1846
|
-
},
|
|
1847
|
-
Tc = [],
|
|
1848
|
-
Uc,
|
|
1849
|
-
Vc = (a) => {
|
|
1850
|
-
var b = Tc[a];
|
|
1851
|
-
b || (a >= Tc.length && (Tc.length = a + 1), (Tc[a] = b = Uc.get(a)));
|
|
1852
|
-
return b;
|
|
1853
|
-
},
|
|
1854
|
-
Wc = (a, b) => {
|
|
1855
|
-
var c = [];
|
|
1856
|
-
return function () {
|
|
1857
|
-
c.length = 0;
|
|
1858
|
-
Object.assign(c, arguments);
|
|
1859
|
-
if (a.includes("j")) {
|
|
1860
|
-
var d = k["dynCall_" + a];
|
|
1861
|
-
d = c && c.length ? d.apply(null, [b].concat(c)) : d.call(null, b);
|
|
1862
|
-
} else d = Vc(b).apply(null, c);
|
|
1863
|
-
return d;
|
|
1864
|
-
};
|
|
1865
|
-
},
|
|
1866
|
-
W = (a, b) => {
|
|
1867
|
-
a = U(a);
|
|
1868
|
-
var c = a.includes("j") ? Wc(a, b) : Vc(b);
|
|
1869
|
-
if ("function" != typeof c)
|
|
1870
|
-
throw new V(`unknown function pointer with signature ${a}: ${b}`);
|
|
1871
|
-
return c;
|
|
1872
|
-
},
|
|
1873
|
-
Xc,
|
|
1874
|
-
$c = (a) => {
|
|
1875
|
-
a = Yc(a);
|
|
1876
|
-
var b = U(a);
|
|
1877
|
-
Zc(a);
|
|
1878
|
-
return b;
|
|
1879
|
-
},
|
|
1880
|
-
ad = (a, b) => {
|
|
1881
|
-
function c(f) {
|
|
1882
|
-
e[f] ||
|
|
1883
|
-
lc[f] ||
|
|
1884
|
-
(mc[f] ? mc[f].forEach(c) : (d.push(f), (e[f] = !0)));
|
|
1885
|
-
}
|
|
1886
|
-
var d = [],
|
|
1887
|
-
e = {};
|
|
1888
|
-
b.forEach(c);
|
|
1889
|
-
throw new Xc(`${a}: ` + d.map($c).join([", "]));
|
|
1890
|
-
},
|
|
1891
|
-
bd = (a, b) => {
|
|
1892
|
-
for (var c = [], d = 0; d < a; d++) c.push(C[(b + 4 * d) >> 2]);
|
|
1893
|
-
return c;
|
|
1894
|
-
};
|
|
1895
|
-
function cd(a) {
|
|
1896
|
-
for (var b = 1; b < a.length; ++b)
|
|
1897
|
-
if (null !== a[b] && void 0 === a[b].La) return !0;
|
|
1898
|
-
return !1;
|
|
1899
|
-
}
|
|
1900
|
-
function dd(a, b, c, d, e) {
|
|
1901
|
-
var f = b.length;
|
|
1902
|
-
if (2 > f)
|
|
1903
|
-
throw new V(
|
|
1904
|
-
"argTypes array size mismatch! Must at least get return value and 'this' types!",
|
|
1905
|
-
);
|
|
1906
|
-
var g = null !== b[1] && null !== c,
|
|
1907
|
-
m = cd(b),
|
|
1908
|
-
l = "void" !== b[0].name,
|
|
1909
|
-
n = f - 2,
|
|
1910
|
-
q = Array(n),
|
|
1911
|
-
p = [],
|
|
1912
|
-
t = [];
|
|
1913
|
-
return Fc(a, function () {
|
|
1914
|
-
if (arguments.length !== n)
|
|
1915
|
-
throw new V(
|
|
1916
|
-
`function ${a} called with ${arguments.length} arguments, expected ${n}`,
|
|
1917
|
-
);
|
|
1918
|
-
t.length = 0;
|
|
1919
|
-
p.length = g ? 2 : 1;
|
|
1920
|
-
p[0] = e;
|
|
1921
|
-
if (g) {
|
|
1922
|
-
var h = b[1].toWireType(t, this);
|
|
1923
|
-
p[1] = h;
|
|
1924
|
-
}
|
|
1925
|
-
for (var r = 0; r < n; ++r)
|
|
1926
|
-
(q[r] = b[r + 2].toWireType(t, arguments[r])), p.push(q[r]);
|
|
1927
|
-
r = d.apply(null, p);
|
|
1928
|
-
if (m) ic(t);
|
|
1929
|
-
else
|
|
1930
|
-
for (var v = g ? 1 : 2; v < b.length; v++) {
|
|
1931
|
-
var A = 1 === v ? h : q[v - 2];
|
|
1932
|
-
null !== b[v].La && b[v].La(A);
|
|
1933
|
-
}
|
|
1934
|
-
h = l ? b[0].fromWireType(r) : void 0;
|
|
1935
|
-
return h;
|
|
1936
|
-
});
|
|
1937
|
-
}
|
|
1938
|
-
var ed = (a) => {
|
|
1939
|
-
a = a.trim();
|
|
1940
|
-
const b = a.indexOf("(");
|
|
1941
|
-
return -1 !== b ? a.substr(0, b) : a;
|
|
1942
|
-
};
|
|
1943
|
-
class fd {
|
|
1944
|
-
constructor() {
|
|
1945
|
-
this.Fa = [void 0];
|
|
1946
|
-
this.yb = [];
|
|
1947
|
-
}
|
|
1948
|
-
get(a) {
|
|
1949
|
-
return this.Fa[a];
|
|
1950
|
-
}
|
|
1951
|
-
has(a) {
|
|
1952
|
-
return void 0 !== this.Fa[a];
|
|
1953
|
-
}
|
|
1954
|
-
ab(a) {
|
|
1955
|
-
var b = this.yb.pop() || this.Fa.length;
|
|
1956
|
-
this.Fa[b] = a;
|
|
1957
|
-
return b;
|
|
1958
|
-
}
|
|
1959
|
-
}
|
|
1960
|
-
var X = new fd(),
|
|
1961
|
-
gd = (a) => {
|
|
1962
|
-
a >= X.Xb && 0 === --X.get(a).Vb && ((X.Fa[a] = void 0), X.yb.push(a));
|
|
1963
|
-
},
|
|
1964
|
-
hd = (a) => {
|
|
1965
|
-
if (!a) throw new V("Cannot use deleted val. handle = " + a);
|
|
1966
|
-
return X.get(a).value;
|
|
1967
|
-
},
|
|
1968
|
-
Oc = (a) => {
|
|
1969
|
-
switch (a) {
|
|
1970
|
-
case void 0:
|
|
1971
|
-
return 1;
|
|
1972
|
-
case null:
|
|
1973
|
-
return 2;
|
|
1974
|
-
case !0:
|
|
1975
|
-
return 3;
|
|
1976
|
-
case !1:
|
|
1977
|
-
return 4;
|
|
1978
|
-
default:
|
|
1979
|
-
return X.ab({ Vb: 1, value: a });
|
|
1980
|
-
}
|
|
1981
|
-
},
|
|
1982
|
-
jd = {
|
|
1983
|
-
name: "emscripten::val",
|
|
1984
|
-
fromWireType: (a) => {
|
|
1985
|
-
var b = hd(a);
|
|
1986
|
-
gd(a);
|
|
1987
|
-
return b;
|
|
1988
|
-
},
|
|
1989
|
-
toWireType: (a, b) => Oc(b),
|
|
1990
|
-
argPackAdvance: 8,
|
|
1991
|
-
readValueFromPointer: jc,
|
|
1992
|
-
La: null,
|
|
1993
|
-
},
|
|
1994
|
-
Mc = (a) => {
|
|
1995
|
-
if (null === a) return "null";
|
|
1996
|
-
var b = typeof a;
|
|
1997
|
-
return "object" === b || "array" === b || "function" === b
|
|
1998
|
-
? a.toString()
|
|
1999
|
-
: "" + a;
|
|
2000
|
-
},
|
|
2001
|
-
kd = (a, b) => {
|
|
2002
|
-
switch (b) {
|
|
2003
|
-
case 4:
|
|
2004
|
-
return function (c) {
|
|
2005
|
-
return this.fromWireType(sa[c >> 2]);
|
|
2006
|
-
};
|
|
2007
|
-
case 8:
|
|
2008
|
-
return function (c) {
|
|
2009
|
-
return this.fromWireType(ta[c >> 3]);
|
|
2010
|
-
};
|
|
2011
|
-
default:
|
|
2012
|
-
throw new TypeError(`invalid float width (${b}): ${a}`);
|
|
2013
|
-
}
|
|
2014
|
-
},
|
|
2015
|
-
ld = (a, b, c) => {
|
|
2016
|
-
switch (b) {
|
|
2017
|
-
case 1:
|
|
2018
|
-
return c ? (d) => w[d >> 0] : (d) => x[d >> 0];
|
|
2019
|
-
case 2:
|
|
2020
|
-
return c ? (d) => ra[d >> 1] : (d) => z[d >> 1];
|
|
2021
|
-
case 4:
|
|
2022
|
-
return c ? (d) => B[d >> 2] : (d) => C[d >> 2];
|
|
2023
|
-
default:
|
|
2024
|
-
throw new TypeError(`invalid integer width (${b}): ${a}`);
|
|
2025
|
-
}
|
|
2026
|
-
},
|
|
2027
|
-
md =
|
|
2028
|
-
"undefined" != typeof TextDecoder
|
|
2029
|
-
? new TextDecoder("utf-16le")
|
|
2030
|
-
: void 0,
|
|
2031
|
-
nd = (a, b) => {
|
|
2032
|
-
var c = a >> 1;
|
|
2033
|
-
for (var d = c + b / 2; !(c >= d) && z[c]; ) ++c;
|
|
2034
|
-
c <<= 1;
|
|
2035
|
-
if (32 < c - a && md) return md.decode(x.subarray(a, c));
|
|
2036
|
-
c = "";
|
|
2037
|
-
for (d = 0; !(d >= b / 2); ++d) {
|
|
2038
|
-
var e = ra[(a + 2 * d) >> 1];
|
|
2039
|
-
if (0 == e) break;
|
|
2040
|
-
c += String.fromCharCode(e);
|
|
2041
|
-
}
|
|
2042
|
-
return c;
|
|
2043
|
-
},
|
|
2044
|
-
od = (a, b, c) => {
|
|
2045
|
-
c ??= 2147483647;
|
|
2046
|
-
if (2 > c) return 0;
|
|
2047
|
-
c -= 2;
|
|
2048
|
-
var d = b;
|
|
2049
|
-
c = c < 2 * a.length ? c / 2 : a.length;
|
|
2050
|
-
for (var e = 0; e < c; ++e) (ra[b >> 1] = a.charCodeAt(e)), (b += 2);
|
|
2051
|
-
ra[b >> 1] = 0;
|
|
2052
|
-
return b - d;
|
|
2053
|
-
},
|
|
2054
|
-
pd = (a) => 2 * a.length,
|
|
2055
|
-
qd = (a, b) => {
|
|
2056
|
-
for (var c = 0, d = ""; !(c >= b / 4); ) {
|
|
2057
|
-
var e = B[(a + 4 * c) >> 2];
|
|
2058
|
-
if (0 == e) break;
|
|
2059
|
-
++c;
|
|
2060
|
-
65536 <= e
|
|
2061
|
-
? ((e -= 65536),
|
|
2062
|
-
(d += String.fromCharCode(55296 | (e >> 10), 56320 | (e & 1023))))
|
|
2063
|
-
: (d += String.fromCharCode(e));
|
|
2064
|
-
}
|
|
2065
|
-
return d;
|
|
2066
|
-
},
|
|
2067
|
-
rd = (a, b, c) => {
|
|
2068
|
-
c ??= 2147483647;
|
|
2069
|
-
if (4 > c) return 0;
|
|
2070
|
-
var d = b;
|
|
2071
|
-
c = d + c - 4;
|
|
2072
|
-
for (var e = 0; e < a.length; ++e) {
|
|
2073
|
-
var f = a.charCodeAt(e);
|
|
2074
|
-
if (55296 <= f && 57343 >= f) {
|
|
2075
|
-
var g = a.charCodeAt(++e);
|
|
2076
|
-
f = (65536 + ((f & 1023) << 10)) | (g & 1023);
|
|
2077
|
-
}
|
|
2078
|
-
B[b >> 2] = f;
|
|
2079
|
-
b += 4;
|
|
2080
|
-
if (b + 4 > c) break;
|
|
2081
|
-
}
|
|
2082
|
-
B[b >> 2] = 0;
|
|
2083
|
-
return b - d;
|
|
2084
|
-
},
|
|
2085
|
-
sd = (a) => {
|
|
2086
|
-
for (var b = 0, c = 0; c < a.length; ++c) {
|
|
2087
|
-
var d = a.charCodeAt(c);
|
|
2088
|
-
55296 <= d && 57343 >= d && ++c;
|
|
2089
|
-
b += 4;
|
|
2090
|
-
}
|
|
2091
|
-
return b;
|
|
2092
|
-
},
|
|
2093
|
-
td = (a, b) => {
|
|
2094
|
-
var c = lc[a];
|
|
2095
|
-
if (void 0 === c)
|
|
2096
|
-
throw ((a = b + " has unknown type " + $c(a)), new V(a));
|
|
2097
|
-
return c;
|
|
2098
|
-
},
|
|
2099
|
-
ud = (a, b, c) => {
|
|
2100
|
-
var d = [];
|
|
2101
|
-
a = a.toWireType(d, c);
|
|
2102
|
-
d.length && (C[b >> 2] = Oc(d));
|
|
2103
|
-
return a;
|
|
2104
|
-
},
|
|
2105
|
-
vd = [],
|
|
2106
|
-
wd = {},
|
|
2107
|
-
xd = (a) => {
|
|
2108
|
-
var b = wd[a];
|
|
2109
|
-
return void 0 === b ? U(a) : b;
|
|
2110
|
-
},
|
|
2111
|
-
yd = () => {
|
|
2112
|
-
function a(b) {
|
|
2113
|
-
b.$$$embind_global$$$ = b;
|
|
2114
|
-
var c =
|
|
2115
|
-
"object" == typeof $$$embind_global$$$ &&
|
|
2116
|
-
b.$$$embind_global$$$ == b;
|
|
2117
|
-
c || delete b.$$$embind_global$$$;
|
|
2118
|
-
return c;
|
|
2119
|
-
}
|
|
2120
|
-
if ("object" == typeof globalThis) return globalThis;
|
|
2121
|
-
if ("object" == typeof $$$embind_global$$$) return $$$embind_global$$$;
|
|
2122
|
-
"object" == typeof global && a(global)
|
|
2123
|
-
? ($$$embind_global$$$ = global)
|
|
2124
|
-
: "object" == typeof self && a(self) && ($$$embind_global$$$ = self);
|
|
2125
|
-
if ("object" == typeof $$$embind_global$$$) return $$$embind_global$$$;
|
|
2126
|
-
throw Error("unable to get global object.");
|
|
2127
|
-
},
|
|
2128
|
-
zd = (a) => {
|
|
2129
|
-
var b = vd.length;
|
|
2130
|
-
vd.push(a);
|
|
2131
|
-
return b;
|
|
2132
|
-
},
|
|
2133
|
-
Ad = (a, b) => {
|
|
2134
|
-
for (var c = Array(a), d = 0; d < a; ++d)
|
|
2135
|
-
c[d] = td(C[(b + 4 * d) >> 2], "parameter " + d);
|
|
2136
|
-
return c;
|
|
2137
|
-
},
|
|
2138
|
-
Bd = Reflect.construct,
|
|
2139
|
-
Cd = (a) => 0 === a % 4 && (0 !== a % 100 || 0 === a % 400),
|
|
2140
|
-
Dd = [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335],
|
|
2141
|
-
Ed = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334],
|
|
2142
|
-
Fd = (a, b) =>
|
|
2143
|
-
(b + 2097152) >>> 0 < 4194305 - !!a ? (a >>> 0) + 4294967296 * b : NaN,
|
|
2144
|
-
Hd = (a) => {
|
|
2145
|
-
var b = ab(a) + 1,
|
|
2146
|
-
c = Gd(b);
|
|
2147
|
-
c && K(a, x, c, b);
|
|
2148
|
-
return c;
|
|
2149
|
-
},
|
|
2150
|
-
Id = [],
|
|
2151
|
-
Jd,
|
|
2152
|
-
Kd,
|
|
2153
|
-
Ld = 0;
|
|
2154
|
-
function Md(a, b, c, d, e) {
|
|
2155
|
-
function f() {
|
|
2156
|
-
var D = 0,
|
|
2157
|
-
T = 0;
|
|
2158
|
-
y.response &&
|
|
2159
|
-
J &&
|
|
2160
|
-
0 === C[(a + 12) >> 2] &&
|
|
2161
|
-
(T = y.response.byteLength);
|
|
2162
|
-
0 < T && ((D = Gd(T)), x.set(new Uint8Array(y.response), D));
|
|
2163
|
-
C[(a + 12) >> 2] = D;
|
|
2164
|
-
Y(a + 16, T);
|
|
2165
|
-
Y(a + 24, 0);
|
|
2166
|
-
(D = y.response ? y.response.byteLength : 0) && Y(a + 32, D);
|
|
2167
|
-
z[(a + 40) >> 1] = y.readyState;
|
|
2168
|
-
z[(a + 42) >> 1] = y.status;
|
|
2169
|
-
y.statusText && K(y.statusText, x, a + 44, 64);
|
|
2170
|
-
}
|
|
2171
|
-
var g = C[(a + 8) >> 2];
|
|
2172
|
-
if (g) {
|
|
2173
|
-
var m = g ? I(x, g) : "",
|
|
2174
|
-
l = a + 112,
|
|
2175
|
-
n = dc(l + 0);
|
|
2176
|
-
n ||= "GET";
|
|
2177
|
-
var q = C[(l + 56) >> 2],
|
|
2178
|
-
p = C[(l + 68) >> 2],
|
|
2179
|
-
t = C[(l + 72) >> 2];
|
|
2180
|
-
g = C[(l + 76) >> 2];
|
|
2181
|
-
var h = C[(l + 80) >> 2],
|
|
2182
|
-
r = C[(l + 84) >> 2],
|
|
2183
|
-
v = C[(l + 88) >> 2],
|
|
2184
|
-
A = C[(l + 52) >> 2],
|
|
2185
|
-
J = !!(A & 1),
|
|
2186
|
-
H = !!(A & 2);
|
|
2187
|
-
A = !!(A & 64);
|
|
2188
|
-
p = p ? (p ? I(x, p) : "") : void 0;
|
|
2189
|
-
t = t ? (t ? I(x, t) : "") : void 0;
|
|
2190
|
-
var y = new XMLHttpRequest();
|
|
2191
|
-
y.withCredentials = !!x[(l + 60) >> 0];
|
|
2192
|
-
y.open(n, m, !A, p, t);
|
|
2193
|
-
A || (y.timeout = q);
|
|
2194
|
-
y.Yc = m;
|
|
2195
|
-
y.responseType = "arraybuffer";
|
|
2196
|
-
h && ((m = h ? I(x, h) : ""), y.overrideMimeType(m));
|
|
2197
|
-
if (g)
|
|
2198
|
-
for (;;) {
|
|
2199
|
-
l = C[g >> 2];
|
|
2200
|
-
if (!l) break;
|
|
2201
|
-
m = C[(g + 4) >> 2];
|
|
2202
|
-
if (!m) break;
|
|
2203
|
-
g += 8;
|
|
2204
|
-
l = l ? I(x, l) : "";
|
|
2205
|
-
m = m ? I(x, m) : "";
|
|
2206
|
-
y.setRequestHeader(l, m);
|
|
2207
|
-
}
|
|
2208
|
-
var N = Jd.ab(y);
|
|
2209
|
-
C[a >> 2] = N;
|
|
2210
|
-
g = r && v ? x.slice(r, r + v) : null;
|
|
2211
|
-
y.onload = (D) => {
|
|
2212
|
-
Jd.has(N) &&
|
|
2213
|
-
(f(),
|
|
2214
|
-
200 <= y.status && 300 > y.status ? b?.(a, y, D) : c?.(a, y, D));
|
|
2215
|
-
};
|
|
2216
|
-
y.onerror = (D) => {
|
|
2217
|
-
Jd.has(N) && (f(), c?.(a, y, D));
|
|
2218
|
-
};
|
|
2219
|
-
y.ontimeout = (D) => {
|
|
2220
|
-
Jd.has(N) && c?.(a, y, D);
|
|
2221
|
-
};
|
|
2222
|
-
y.onprogress = (D) => {
|
|
2223
|
-
if (Jd.has(N)) {
|
|
2224
|
-
var T = J && H && y.response ? y.response.byteLength : 0,
|
|
2225
|
-
G = 0;
|
|
2226
|
-
0 < T &&
|
|
2227
|
-
J &&
|
|
2228
|
-
H &&
|
|
2229
|
-
((G = Gd(T)), x.set(new Uint8Array(y.response), G));
|
|
2230
|
-
C[(a + 12) >> 2] = G;
|
|
2231
|
-
Y(a + 16, T);
|
|
2232
|
-
Y(a + 24, D.loaded - T);
|
|
2233
|
-
Y(a + 32, D.total);
|
|
2234
|
-
z[(a + 40) >> 1] = y.readyState;
|
|
2235
|
-
3 <= y.readyState &&
|
|
2236
|
-
0 === y.status &&
|
|
2237
|
-
0 < D.loaded &&
|
|
2238
|
-
(y.status = 200);
|
|
2239
|
-
z[(a + 42) >> 1] = y.status;
|
|
2240
|
-
y.statusText && K(y.statusText, x, a + 44, 64);
|
|
2241
|
-
d?.(a, y, D);
|
|
2242
|
-
G && Zc(G);
|
|
2243
|
-
}
|
|
2244
|
-
};
|
|
2245
|
-
y.onreadystatechange = (D) => {
|
|
2246
|
-
Jd.has(N)
|
|
2247
|
-
? ((z[(a + 40) >> 1] = y.readyState),
|
|
2248
|
-
2 <= y.readyState && (z[(a + 42) >> 1] = y.status),
|
|
2249
|
-
e?.(a, y, D))
|
|
2250
|
-
: --Ld;
|
|
2251
|
-
};
|
|
2252
|
-
try {
|
|
2253
|
-
y.send(g);
|
|
2254
|
-
} catch (D) {
|
|
2255
|
-
c?.(a, y, D);
|
|
2256
|
-
}
|
|
2257
|
-
} else c(a, 0, "no url specified!");
|
|
2258
|
-
}
|
|
2259
|
-
var Pd = (a) => {
|
|
2260
|
-
qa = a;
|
|
2261
|
-
if (!(Ra || 0 < Ld)) {
|
|
2262
|
-
Nd();
|
|
2263
|
-
Qa(xa);
|
|
2264
|
-
Zb = !1;
|
|
2265
|
-
Od(0);
|
|
2266
|
-
for (var b = 0; b < xb.length; b++) {
|
|
2267
|
-
var c = xb[b];
|
|
2268
|
-
c && Wb(c);
|
|
2269
|
-
}
|
|
2270
|
-
za = !0;
|
|
2271
|
-
}
|
|
2272
|
-
qa = a;
|
|
2273
|
-
Ra || 0 < Ld || (k.onExit?.(a), (pa = !0));
|
|
2274
|
-
ea(a, new Oa(a));
|
|
2275
|
-
},
|
|
2276
|
-
Y = (a, b) => {
|
|
2277
|
-
C[a >> 2] = b;
|
|
2278
|
-
C[(a + 4) >> 2] = (b - C[a >> 2]) / 4294967296;
|
|
2279
|
-
};
|
|
2280
|
-
function Qd(a, b, c, d) {
|
|
2281
|
-
var e = Kd;
|
|
2282
|
-
if (e) {
|
|
2283
|
-
var f = C[(a + 112 + 64) >> 2];
|
|
2284
|
-
f ||= C[(a + 8) >> 2];
|
|
2285
|
-
var g = f ? I(x, f) : "";
|
|
2286
|
-
try {
|
|
2287
|
-
var m = e
|
|
2288
|
-
.transaction(["FILES"], "readwrite")
|
|
2289
|
-
.objectStore("FILES")
|
|
2290
|
-
.put(b, g);
|
|
2291
|
-
m.onsuccess = () => {
|
|
2292
|
-
z[(a + 40) >> 1] = 4;
|
|
2293
|
-
z[(a + 42) >> 1] = 200;
|
|
2294
|
-
K("OK", x, a + 44, 64);
|
|
2295
|
-
c(a, 0, g);
|
|
2296
|
-
};
|
|
2297
|
-
m.onerror = (l) => {
|
|
2298
|
-
z[(a + 40) >> 1] = 4;
|
|
2299
|
-
z[(a + 42) >> 1] = 413;
|
|
2300
|
-
K("Payload Too Large", x, a + 44, 64);
|
|
2301
|
-
d(a, 0, l);
|
|
2302
|
-
};
|
|
2303
|
-
} catch (l) {
|
|
2304
|
-
d(a, 0, l);
|
|
2305
|
-
}
|
|
2306
|
-
} else d(a, 0, "IndexedDB not available!");
|
|
2307
|
-
}
|
|
2308
|
-
function Rd(a, b, c) {
|
|
2309
|
-
var d = Kd;
|
|
2310
|
-
if (d) {
|
|
2311
|
-
var e = C[(a + 112 + 64) >> 2];
|
|
2312
|
-
e ||= C[(a + 8) >> 2];
|
|
2313
|
-
e = e ? I(x, e) : "";
|
|
2314
|
-
try {
|
|
2315
|
-
var f = d
|
|
2316
|
-
.transaction(["FILES"], "readonly")
|
|
2317
|
-
.objectStore("FILES")
|
|
2318
|
-
.get(e);
|
|
2319
|
-
f.onsuccess = (g) => {
|
|
2320
|
-
if (g.target.result) {
|
|
2321
|
-
g = g.target.result;
|
|
2322
|
-
var m = g.byteLength || g.length,
|
|
2323
|
-
l = Gd(m);
|
|
2324
|
-
x.set(new Uint8Array(g), l);
|
|
2325
|
-
C[(a + 12) >> 2] = l;
|
|
2326
|
-
Y(a + 16, m);
|
|
2327
|
-
Y(a + 24, 0);
|
|
2328
|
-
Y(a + 32, m);
|
|
2329
|
-
z[(a + 40) >> 1] = 4;
|
|
2330
|
-
z[(a + 42) >> 1] = 200;
|
|
2331
|
-
K("OK", x, a + 44, 64);
|
|
2332
|
-
b(a, 0, g);
|
|
2333
|
-
} else
|
|
2334
|
-
(z[(a + 40) >> 1] = 4),
|
|
2335
|
-
(z[(a + 42) >> 1] = 404),
|
|
2336
|
-
K("Not Found", x, a + 44, 64),
|
|
2337
|
-
c(a, 0, "no data");
|
|
2338
|
-
};
|
|
2339
|
-
f.onerror = (g) => {
|
|
2340
|
-
z[(a + 40) >> 1] = 4;
|
|
2341
|
-
z[(a + 42) >> 1] = 404;
|
|
2342
|
-
K("Not Found", x, a + 44, 64);
|
|
2343
|
-
c(a, 0, g);
|
|
2344
|
-
};
|
|
2345
|
-
} catch (g) {
|
|
2346
|
-
c(a, 0, g);
|
|
2347
|
-
}
|
|
2348
|
-
} else c(a, 0, "IndexedDB not available!");
|
|
2349
|
-
}
|
|
2350
|
-
function Sd(a, b, c) {
|
|
2351
|
-
var d = Kd;
|
|
2352
|
-
if (d) {
|
|
2353
|
-
var e = C[(a + 112 + 64) >> 2];
|
|
2354
|
-
e ||= C[(a + 8) >> 2];
|
|
2355
|
-
e = e ? I(x, e) : "";
|
|
2356
|
-
try {
|
|
2357
|
-
var f = d
|
|
2358
|
-
.transaction(["FILES"], "readwrite")
|
|
2359
|
-
.objectStore("FILES")
|
|
2360
|
-
.delete(e);
|
|
2361
|
-
f.onsuccess = (g) => {
|
|
2362
|
-
g = g.target.result;
|
|
2363
|
-
C[(a + 12) >> 2] = 0;
|
|
2364
|
-
Y(a + 16, 0);
|
|
2365
|
-
Y(a + 24, 0);
|
|
2366
|
-
Y(a + 32, 0);
|
|
2367
|
-
z[(a + 40) >> 1] = 4;
|
|
2368
|
-
z[(a + 42) >> 1] = 200;
|
|
2369
|
-
K("OK", x, a + 44, 64);
|
|
2370
|
-
b(a, 0, g);
|
|
2371
|
-
};
|
|
2372
|
-
f.onerror = (g) => {
|
|
2373
|
-
z[(a + 40) >> 1] = 4;
|
|
2374
|
-
z[(a + 42) >> 1] = 404;
|
|
2375
|
-
K("Not Found", x, a + 44, 64);
|
|
2376
|
-
c(a, 0, g);
|
|
2377
|
-
};
|
|
2378
|
-
} catch (g) {
|
|
2379
|
-
c(a, 0, g);
|
|
2380
|
-
}
|
|
2381
|
-
} else c(a, 0, "IndexedDB not available!");
|
|
2382
|
-
}
|
|
2383
|
-
var Td = {},
|
|
2384
|
-
Vd = () => {
|
|
2385
|
-
if (!Ud) {
|
|
2386
|
-
var a = {
|
|
2387
|
-
USER: "web_user",
|
|
2388
|
-
LOGNAME: "web_user",
|
|
2389
|
-
PATH: "/",
|
|
2390
|
-
PWD: "/",
|
|
2391
|
-
HOME: "/home/web_user",
|
|
2392
|
-
LANG:
|
|
2393
|
-
(
|
|
2394
|
-
("object" == typeof navigator &&
|
|
2395
|
-
navigator.languages &&
|
|
2396
|
-
navigator.languages[0]) ||
|
|
2397
|
-
"C"
|
|
2398
|
-
).replace("-", "_") + ".UTF-8",
|
|
2399
|
-
_: da || "./this.program",
|
|
2400
|
-
},
|
|
2401
|
-
b;
|
|
2402
|
-
for (b in Td) void 0 === Td[b] ? delete a[b] : (a[b] = Td[b]);
|
|
2403
|
-
var c = [];
|
|
2404
|
-
for (b in a) c.push(`${b}=${a[b]}`);
|
|
2405
|
-
Ud = c;
|
|
2406
|
-
}
|
|
2407
|
-
return Ud;
|
|
2408
|
-
},
|
|
2409
|
-
Ud,
|
|
2410
|
-
Wd = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],
|
|
2411
|
-
Xd = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],
|
|
2412
|
-
Yd = (a, b, c, d) => {
|
|
2413
|
-
function e(h, r, v) {
|
|
2414
|
-
for (
|
|
2415
|
-
h = "number" == typeof h ? h.toString() : h || "";
|
|
2416
|
-
h.length < r;
|
|
2417
|
-
|
|
2418
|
-
)
|
|
2419
|
-
h = v[0] + h;
|
|
2420
|
-
return h;
|
|
2421
|
-
}
|
|
2422
|
-
function f(h, r) {
|
|
2423
|
-
return e(h, r, "0");
|
|
2424
|
-
}
|
|
2425
|
-
function g(h, r) {
|
|
2426
|
-
function v(J) {
|
|
2427
|
-
return 0 > J ? -1 : 0 < J ? 1 : 0;
|
|
2428
|
-
}
|
|
2429
|
-
var A;
|
|
2430
|
-
0 === (A = v(h.getFullYear() - r.getFullYear())) &&
|
|
2431
|
-
0 === (A = v(h.getMonth() - r.getMonth())) &&
|
|
2432
|
-
(A = v(h.getDate() - r.getDate()));
|
|
2433
|
-
return A;
|
|
2434
|
-
}
|
|
2435
|
-
function m(h) {
|
|
2436
|
-
switch (h.getDay()) {
|
|
2437
|
-
case 0:
|
|
2438
|
-
return new Date(h.getFullYear() - 1, 11, 29);
|
|
2439
|
-
case 1:
|
|
2440
|
-
return h;
|
|
2441
|
-
case 2:
|
|
2442
|
-
return new Date(h.getFullYear(), 0, 3);
|
|
2443
|
-
case 3:
|
|
2444
|
-
return new Date(h.getFullYear(), 0, 2);
|
|
2445
|
-
case 4:
|
|
2446
|
-
return new Date(h.getFullYear(), 0, 1);
|
|
2447
|
-
case 5:
|
|
2448
|
-
return new Date(h.getFullYear() - 1, 11, 31);
|
|
2449
|
-
case 6:
|
|
2450
|
-
return new Date(h.getFullYear() - 1, 11, 30);
|
|
2451
|
-
}
|
|
2452
|
-
}
|
|
2453
|
-
function l(h) {
|
|
2454
|
-
var r = h.Ua;
|
|
2455
|
-
for (h = new Date(new Date(h.Va + 1900, 0, 1).getTime()); 0 < r; ) {
|
|
2456
|
-
var v = h.getMonth(),
|
|
2457
|
-
A = (Cd(h.getFullYear()) ? Wd : Xd)[v];
|
|
2458
|
-
if (r > A - h.getDate())
|
|
2459
|
-
(r -= A - h.getDate() + 1),
|
|
2460
|
-
h.setDate(1),
|
|
2461
|
-
11 > v
|
|
2462
|
-
? h.setMonth(v + 1)
|
|
2463
|
-
: (h.setMonth(0), h.setFullYear(h.getFullYear() + 1));
|
|
2464
|
-
else {
|
|
2465
|
-
h.setDate(h.getDate() + r);
|
|
2466
|
-
break;
|
|
2467
|
-
}
|
|
2468
|
-
}
|
|
2469
|
-
v = new Date(h.getFullYear() + 1, 0, 4);
|
|
2470
|
-
r = m(new Date(h.getFullYear(), 0, 4));
|
|
2471
|
-
v = m(v);
|
|
2472
|
-
return 0 >= g(r, h)
|
|
2473
|
-
? 0 >= g(v, h)
|
|
2474
|
-
? h.getFullYear() + 1
|
|
2475
|
-
: h.getFullYear()
|
|
2476
|
-
: h.getFullYear() - 1;
|
|
2477
|
-
}
|
|
2478
|
-
var n = C[(d + 40) >> 2];
|
|
2479
|
-
d = {
|
|
2480
|
-
Gc: B[d >> 2],
|
|
2481
|
-
Fc: B[(d + 4) >> 2],
|
|
2482
|
-
ub: B[(d + 8) >> 2],
|
|
2483
|
-
Gb: B[(d + 12) >> 2],
|
|
2484
|
-
vb: B[(d + 16) >> 2],
|
|
2485
|
-
Va: B[(d + 20) >> 2],
|
|
2486
|
-
Pa: B[(d + 24) >> 2],
|
|
2487
|
-
Ua: B[(d + 28) >> 2],
|
|
2488
|
-
Xc: B[(d + 32) >> 2],
|
|
2489
|
-
Ec: B[(d + 36) >> 2],
|
|
2490
|
-
Hc: n ? (n ? I(x, n) : "") : "",
|
|
2491
|
-
};
|
|
2492
|
-
c = c ? I(x, c) : "";
|
|
2493
|
-
n = {
|
|
2494
|
-
"%c": "%a %b %d %H:%M:%S %Y",
|
|
2495
|
-
"%D": "%m/%d/%y",
|
|
2496
|
-
"%F": "%Y-%m-%d",
|
|
2497
|
-
"%h": "%b",
|
|
2498
|
-
"%r": "%I:%M:%S %p",
|
|
2499
|
-
"%R": "%H:%M",
|
|
2500
|
-
"%T": "%H:%M:%S",
|
|
2501
|
-
"%x": "%m/%d/%y",
|
|
2502
|
-
"%X": "%H:%M:%S",
|
|
2503
|
-
"%Ec": "%c",
|
|
2504
|
-
"%EC": "%C",
|
|
2505
|
-
"%Ex": "%m/%d/%y",
|
|
2506
|
-
"%EX": "%H:%M:%S",
|
|
2507
|
-
"%Ey": "%y",
|
|
2508
|
-
"%EY": "%Y",
|
|
2509
|
-
"%Od": "%d",
|
|
2510
|
-
"%Oe": "%e",
|
|
2511
|
-
"%OH": "%H",
|
|
2512
|
-
"%OI": "%I",
|
|
2513
|
-
"%Om": "%m",
|
|
2514
|
-
"%OM": "%M",
|
|
2515
|
-
"%OS": "%S",
|
|
2516
|
-
"%Ou": "%u",
|
|
2517
|
-
"%OU": "%U",
|
|
2518
|
-
"%OV": "%V",
|
|
2519
|
-
"%Ow": "%w",
|
|
2520
|
-
"%OW": "%W",
|
|
2521
|
-
"%Oy": "%y",
|
|
2522
|
-
};
|
|
2523
|
-
for (var q in n) c = c.replace(new RegExp(q, "g"), n[q]);
|
|
2524
|
-
var p =
|
|
2525
|
-
"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(
|
|
2526
|
-
" ",
|
|
2527
|
-
),
|
|
2528
|
-
t =
|
|
2529
|
-
"January February March April May June July August September October November December".split(
|
|
2530
|
-
" ",
|
|
2531
|
-
);
|
|
2532
|
-
n = {
|
|
2533
|
-
"%a": (h) => p[h.Pa].substring(0, 3),
|
|
2534
|
-
"%A": (h) => p[h.Pa],
|
|
2535
|
-
"%b": (h) => t[h.vb].substring(0, 3),
|
|
2536
|
-
"%B": (h) => t[h.vb],
|
|
2537
|
-
"%C": (h) => f(((h.Va + 1900) / 100) | 0, 2),
|
|
2538
|
-
"%d": (h) => f(h.Gb, 2),
|
|
2539
|
-
"%e": (h) => e(h.Gb, 2, " "),
|
|
2540
|
-
"%g": (h) => l(h).toString().substring(2),
|
|
2541
|
-
"%G": l,
|
|
2542
|
-
"%H": (h) => f(h.ub, 2),
|
|
2543
|
-
"%I": (h) => {
|
|
2544
|
-
h = h.ub;
|
|
2545
|
-
0 == h ? (h = 12) : 12 < h && (h -= 12);
|
|
2546
|
-
return f(h, 2);
|
|
2547
|
-
},
|
|
2548
|
-
"%j": (h) => {
|
|
2549
|
-
for (
|
|
2550
|
-
var r = 0, v = 0;
|
|
2551
|
-
v <= h.vb - 1;
|
|
2552
|
-
r += (Cd(h.Va + 1900) ? Wd : Xd)[v++]
|
|
2553
|
-
);
|
|
2554
|
-
return f(h.Gb + r, 3);
|
|
2555
|
-
},
|
|
2556
|
-
"%m": (h) => f(h.vb + 1, 2),
|
|
2557
|
-
"%M": (h) => f(h.Fc, 2),
|
|
2558
|
-
"%n": () => "\n",
|
|
2559
|
-
"%p": (h) => (0 <= h.ub && 12 > h.ub ? "AM" : "PM"),
|
|
2560
|
-
"%S": (h) => f(h.Gc, 2),
|
|
2561
|
-
"%t": () => "\t",
|
|
2562
|
-
"%u": (h) => h.Pa || 7,
|
|
2563
|
-
"%U": (h) => f(Math.floor((h.Ua + 7 - h.Pa) / 7), 2),
|
|
2564
|
-
"%V": (h) => {
|
|
2565
|
-
var r = Math.floor((h.Ua + 7 - ((h.Pa + 6) % 7)) / 7);
|
|
2566
|
-
2 >= (h.Pa + 371 - h.Ua - 2) % 7 && r++;
|
|
2567
|
-
if (r)
|
|
2568
|
-
53 == r &&
|
|
2569
|
-
((v = (h.Pa + 371 - h.Ua) % 7),
|
|
2570
|
-
4 == v || (3 == v && Cd(h.Va)) || (r = 1));
|
|
2571
|
-
else {
|
|
2572
|
-
r = 52;
|
|
2573
|
-
var v = (h.Pa + 7 - h.Ua - 1) % 7;
|
|
2574
|
-
(4 == v || (5 == v && Cd((h.Va % 400) - 1))) && r++;
|
|
2575
|
-
}
|
|
2576
|
-
return f(r, 2);
|
|
2577
|
-
},
|
|
2578
|
-
"%w": (h) => h.Pa,
|
|
2579
|
-
"%W": (h) => f(Math.floor((h.Ua + 7 - ((h.Pa + 6) % 7)) / 7), 2),
|
|
2580
|
-
"%y": (h) => (h.Va + 1900).toString().substring(2),
|
|
2581
|
-
"%Y": (h) => h.Va + 1900,
|
|
2582
|
-
"%z": (h) => {
|
|
2583
|
-
h = h.Ec;
|
|
2584
|
-
var r = 0 <= h;
|
|
2585
|
-
h = Math.abs(h) / 60;
|
|
2586
|
-
return (
|
|
2587
|
-
(r ? "+" : "-") +
|
|
2588
|
-
String("0000" + ((h / 60) * 100 + (h % 60))).slice(-4)
|
|
2589
|
-
);
|
|
2590
|
-
},
|
|
2591
|
-
"%Z": (h) => h.Hc,
|
|
2592
|
-
"%%": () => "%",
|
|
2593
|
-
};
|
|
2594
|
-
c = c.replace(/%%/g, "\x00\x00");
|
|
2595
|
-
for (q in n)
|
|
2596
|
-
c.includes(q) && (c = c.replace(new RegExp(q, "g"), n[q](d)));
|
|
2597
|
-
c = c.replace(/\0\0/g, "%");
|
|
2598
|
-
q = bb(c, !1);
|
|
2599
|
-
if (q.length > b) return 0;
|
|
2600
|
-
w.set(q, a);
|
|
2601
|
-
return q.length - 1;
|
|
2602
|
-
};
|
|
2603
|
-
function Fb(a, b, c, d) {
|
|
2604
|
-
a ||= this;
|
|
2605
|
-
this.parent = a;
|
|
2606
|
-
this.Qa = a.Qa;
|
|
2607
|
-
this.eb = null;
|
|
2608
|
-
this.id = yb++;
|
|
2609
|
-
this.name = b;
|
|
2610
|
-
this.mode = c;
|
|
2611
|
-
this.wa = {};
|
|
2612
|
-
this.xa = {};
|
|
2613
|
-
this.gb = d;
|
|
2614
|
-
}
|
|
2615
|
-
Object.defineProperties(Fb.prototype, {
|
|
2616
|
-
read: {
|
|
2617
|
-
get: function () {
|
|
2618
|
-
return 365 === (this.mode & 365);
|
|
2619
|
-
},
|
|
2620
|
-
set: function (a) {
|
|
2621
|
-
a ? (this.mode |= 365) : (this.mode &= -366);
|
|
2622
|
-
},
|
|
2623
|
-
},
|
|
2624
|
-
write: {
|
|
2625
|
-
get: function () {
|
|
2626
|
-
return 146 === (this.mode & 146);
|
|
2627
|
-
},
|
|
2628
|
-
set: function (a) {
|
|
2629
|
-
a ? (this.mode |= 146) : (this.mode &= -147);
|
|
2630
|
-
},
|
|
2631
|
-
},
|
|
2632
|
-
sc: {
|
|
2633
|
-
get: function () {
|
|
2634
|
-
return O(this.mode);
|
|
2635
|
-
},
|
|
2636
|
-
},
|
|
2637
|
-
rc: {
|
|
2638
|
-
get: function () {
|
|
2639
|
-
return 8192 === (this.mode & 61440);
|
|
2640
|
-
},
|
|
2641
|
-
},
|
|
2642
|
-
});
|
|
2643
|
-
[44].forEach((a) => {
|
|
2644
|
-
nb[a] = new L(a);
|
|
2645
|
-
nb[a].stack = "<generic error, no stack>";
|
|
2646
|
-
});
|
|
2647
|
-
zb = Array(4096);
|
|
2648
|
-
Mb(M, "/");
|
|
2649
|
-
Q("/tmp");
|
|
2650
|
-
Q("/home");
|
|
2651
|
-
Q("/home/web_user");
|
|
2652
|
-
(function () {
|
|
2653
|
-
Q("/dev");
|
|
2654
|
-
eb(259, { read: () => 0, write: (d, e, f, g) => g });
|
|
2655
|
-
Ob("/dev/null", 259);
|
|
2656
|
-
db(1280, gb);
|
|
2657
|
-
db(1536, hb);
|
|
2658
|
-
Ob("/dev/tty", 1280);
|
|
2659
|
-
Ob("/dev/tty1", 1536);
|
|
2660
|
-
var a = new Uint8Array(1024),
|
|
2661
|
-
b = 0,
|
|
2662
|
-
c = () => {
|
|
2663
|
-
0 === b && (b = Xa(a).byteLength);
|
|
2664
|
-
return a[--b];
|
|
2665
|
-
};
|
|
2666
|
-
R("/dev", "random", c);
|
|
2667
|
-
R("/dev", "urandom", c);
|
|
2668
|
-
Q("/dev/shm");
|
|
2669
|
-
Q("/dev/shm/tmp");
|
|
2670
|
-
})();
|
|
2671
|
-
(function () {
|
|
2672
|
-
Q("/proc");
|
|
2673
|
-
var a = Q("/proc/self");
|
|
2674
|
-
Q("/proc/self/fd");
|
|
2675
|
-
Mb(
|
|
2676
|
-
{
|
|
2677
|
-
Qa() {
|
|
2678
|
-
var b = mb(a, "fd", 16895, 73);
|
|
2679
|
-
b.wa = {
|
|
2680
|
-
bb(c, d) {
|
|
2681
|
-
var e = Jb(+d);
|
|
2682
|
-
c = {
|
|
2683
|
-
parent: null,
|
|
2684
|
-
Qa: { Rb: "fake" },
|
|
2685
|
-
wa: { hb: () => e.path },
|
|
2686
|
-
};
|
|
2687
|
-
return (c.parent = c);
|
|
2688
|
-
},
|
|
2689
|
-
};
|
|
2690
|
-
return b;
|
|
2691
|
-
},
|
|
2692
|
-
},
|
|
2693
|
-
"/proc/self/fd",
|
|
2694
|
-
);
|
|
2695
|
-
})();
|
|
2696
|
-
k.FS_createPath = $b;
|
|
2697
|
-
k.FS_createDataFile = sb;
|
|
2698
|
-
k.FS_createPreloadedFile = tb;
|
|
2699
|
-
k.FS_unlink = Qb;
|
|
2700
|
-
k.FS_createLazyFile = cc;
|
|
2701
|
-
k.FS_createDevice = R;
|
|
2702
|
-
nc = k.InternalError = class extends Error {
|
|
2703
|
-
constructor(a) {
|
|
2704
|
-
super(a);
|
|
2705
|
-
this.name = "InternalError";
|
|
2706
|
-
}
|
|
2707
|
-
};
|
|
2708
|
-
for (var Zd = Array(256), $d = 0; 256 > $d; ++$d)
|
|
2709
|
-
Zd[$d] = String.fromCharCode($d);
|
|
2710
|
-
qc = Zd;
|
|
2711
|
-
V = k.BindingError = class extends Error {
|
|
2712
|
-
constructor(a) {
|
|
2713
|
-
super(a);
|
|
2714
|
-
this.name = "BindingError";
|
|
2715
|
-
}
|
|
2716
|
-
};
|
|
2717
|
-
Object.assign(Ec.prototype, {
|
|
2718
|
-
isAliasOf: function (a) {
|
|
2719
|
-
if (!(this instanceof Ec && a instanceof Ec)) return !1;
|
|
2720
|
-
var b = this.ua.Ba.ya,
|
|
2721
|
-
c = this.ua.za;
|
|
2722
|
-
a.ua = a.ua;
|
|
2723
|
-
var d = a.ua.Ba.ya;
|
|
2724
|
-
for (a = a.ua.za; b.Ga; ) (c = b.ib(c)), (b = b.Ga);
|
|
2725
|
-
for (; d.Ga; ) (a = d.ib(a)), (d = d.Ga);
|
|
2726
|
-
return b === d && c === a;
|
|
2727
|
-
},
|
|
2728
|
-
clone: function () {
|
|
2729
|
-
this.ua.za || sc(this);
|
|
2730
|
-
if (this.ua.fb) return (this.ua.count.value += 1), this;
|
|
2731
|
-
var a = Cc,
|
|
2732
|
-
b = Object,
|
|
2733
|
-
c = b.create,
|
|
2734
|
-
d = Object.getPrototypeOf(this),
|
|
2735
|
-
e = this.ua;
|
|
2736
|
-
a = a(
|
|
2737
|
-
c.call(b, d, {
|
|
2738
|
-
ua: {
|
|
2739
|
-
value: {
|
|
2740
|
-
count: e.count,
|
|
2741
|
-
Xa: e.Xa,
|
|
2742
|
-
fb: e.fb,
|
|
2743
|
-
za: e.za,
|
|
2744
|
-
Ba: e.Ba,
|
|
2745
|
-
Ca: e.Ca,
|
|
2746
|
-
Ia: e.Ia,
|
|
2747
|
-
},
|
|
2748
|
-
},
|
|
2749
|
-
}),
|
|
2750
|
-
);
|
|
2751
|
-
a.ua.count.value += 1;
|
|
2752
|
-
a.ua.Xa = !1;
|
|
2753
|
-
return a;
|
|
2754
|
-
},
|
|
2755
|
-
["delete"]() {
|
|
2756
|
-
this.ua.za || sc(this);
|
|
2757
|
-
if (this.ua.Xa && !this.ua.fb)
|
|
2758
|
-
throw new V("Object already scheduled for deletion");
|
|
2759
|
-
uc(this);
|
|
2760
|
-
var a = this.ua;
|
|
2761
|
-
--a.count.value;
|
|
2762
|
-
0 === a.count.value && (a.Ca ? a.Ia.Oa(a.Ca) : a.Ba.ya.Oa(a.za));
|
|
2763
|
-
this.ua.fb || ((this.ua.Ca = void 0), (this.ua.za = void 0));
|
|
2764
|
-
},
|
|
2765
|
-
isDeleted: function () {
|
|
2766
|
-
return !this.ua.za;
|
|
2767
|
-
},
|
|
2768
|
-
deleteLater: function () {
|
|
2769
|
-
this.ua.za || sc(this);
|
|
2770
|
-
if (this.ua.Xa && !this.ua.fb)
|
|
2771
|
-
throw new V("Object already scheduled for deletion");
|
|
2772
|
-
xc.push(this);
|
|
2773
|
-
1 === xc.length && zc && zc(yc);
|
|
2774
|
-
this.ua.Xa = !0;
|
|
2775
|
-
return this;
|
|
2776
|
-
},
|
|
2777
|
-
});
|
|
2778
|
-
k.getInheritedInstanceCount = () => Object.keys(Ac).length;
|
|
2779
|
-
k.getLiveInheritedInstances = () => {
|
|
2780
|
-
var a = [],
|
|
2781
|
-
b;
|
|
2782
|
-
for (b in Ac) Ac.hasOwnProperty(b) && a.push(Ac[b]);
|
|
2783
|
-
return a;
|
|
2784
|
-
};
|
|
2785
|
-
k.flushPendingDeletes = yc;
|
|
2786
|
-
k.setDelayFunction = (a) => {
|
|
2787
|
-
zc = a;
|
|
2788
|
-
xc.length && zc && zc(yc);
|
|
2789
|
-
};
|
|
2790
|
-
Object.assign(Rc.prototype, {
|
|
2791
|
-
mc(a) {
|
|
2792
|
-
this.Tb && (a = this.Tb(a));
|
|
2793
|
-
return a;
|
|
2794
|
-
},
|
|
2795
|
-
Lb(a) {
|
|
2796
|
-
this.Oa?.(a);
|
|
2797
|
-
},
|
|
2798
|
-
argPackAdvance: 8,
|
|
2799
|
-
readValueFromPointer: Qc,
|
|
2800
|
-
fromWireType: function (a) {
|
|
2801
|
-
function b() {
|
|
2802
|
-
return this.pb
|
|
2803
|
-
? Dc(this.ya.Ya, { Ba: this.wc, za: c, Ia: this, Ca: a })
|
|
2804
|
-
: Dc(this.ya.Ya, { Ba: this, za: a });
|
|
2805
|
-
}
|
|
2806
|
-
var c = this.mc(a);
|
|
2807
|
-
if (!c) return this.Lb(a), null;
|
|
2808
|
-
var d = Bc(this.ya, c);
|
|
2809
|
-
if (void 0 !== d) {
|
|
2810
|
-
if (0 === d.ua.count.value)
|
|
2811
|
-
return (d.ua.za = c), (d.ua.Ca = a), d.clone();
|
|
2812
|
-
d = d.clone();
|
|
2813
|
-
this.Lb(a);
|
|
2814
|
-
return d;
|
|
2815
|
-
}
|
|
2816
|
-
d = this.ya.lc(c);
|
|
2817
|
-
d = wc[d];
|
|
2818
|
-
if (!d) return b.call(this);
|
|
2819
|
-
d = this.ob ? d.fc : d.pointerType;
|
|
2820
|
-
var e = vc(c, this.ya, d.ya);
|
|
2821
|
-
return null === e
|
|
2822
|
-
? b.call(this)
|
|
2823
|
-
: this.pb
|
|
2824
|
-
? Dc(d.ya.Ya, { Ba: d, za: e, Ia: this, Ca: a })
|
|
2825
|
-
: Dc(d.ya.Ya, { Ba: d, za: e });
|
|
2826
|
-
},
|
|
2827
|
-
});
|
|
2828
|
-
Xc = k.UnboundTypeError = ((a, b) => {
|
|
2829
|
-
var c = Fc(b, function (d) {
|
|
2830
|
-
this.name = b;
|
|
2831
|
-
this.message = d;
|
|
2832
|
-
d = Error(d).stack;
|
|
2833
|
-
void 0 !== d &&
|
|
2834
|
-
(this.stack =
|
|
2835
|
-
this.toString() + "\n" + d.replace(/^Error(:[^\n]*)?\n/, ""));
|
|
2836
|
-
});
|
|
2837
|
-
c.prototype = Object.create(a.prototype);
|
|
2838
|
-
c.prototype.constructor = c;
|
|
2839
|
-
c.prototype.toString = function () {
|
|
2840
|
-
return void 0 === this.message
|
|
2841
|
-
? this.name
|
|
2842
|
-
: `${this.name}: ${this.message}`;
|
|
2843
|
-
};
|
|
2844
|
-
return c;
|
|
2845
|
-
})(Error, "UnboundTypeError");
|
|
2846
|
-
X.Fa.push({ value: void 0 }, { value: null }, { value: !0 }, { value: !1 });
|
|
2847
|
-
Object.assign(X, { Xb: X.Fa.length });
|
|
2848
|
-
k.count_emval_handles = () => {
|
|
2849
|
-
for (var a = 0, b = X.Xb; b < X.Fa.length; ++b) void 0 !== X.Fa[b] && ++a;
|
|
2850
|
-
return a;
|
|
2851
|
-
};
|
|
2852
|
-
Jd = new fd();
|
|
2853
|
-
Ea("library_fetch_init");
|
|
2854
|
-
(function (a, b) {
|
|
2855
|
-
try {
|
|
2856
|
-
var c = indexedDB.open("emscripten_filesystem", 1);
|
|
2857
|
-
} catch (d) {
|
|
2858
|
-
b(d);
|
|
2859
|
-
return;
|
|
2860
|
-
}
|
|
2861
|
-
c.onupgradeneeded = (d) => {
|
|
2862
|
-
d = d.target.result;
|
|
2863
|
-
d.objectStoreNames.contains("FILES") && d.deleteObjectStore("FILES");
|
|
2864
|
-
d.createObjectStore("FILES");
|
|
2865
|
-
};
|
|
2866
|
-
c.onsuccess = (d) => a(d.target.result);
|
|
2867
|
-
c.onerror = b;
|
|
2868
|
-
})(
|
|
2869
|
-
(a) => {
|
|
2870
|
-
Kd = a;
|
|
2871
|
-
Fa("library_fetch_init");
|
|
2872
|
-
},
|
|
2873
|
-
() => {
|
|
2874
|
-
Kd = !1;
|
|
2875
|
-
Fa("library_fetch_init");
|
|
2876
|
-
},
|
|
2877
|
-
);
|
|
2878
|
-
var be = {
|
|
2879
|
-
N: function (a, b) {
|
|
2880
|
-
try {
|
|
2881
|
-
var c = Jb(a);
|
|
2882
|
-
return fc(Rb, c.path, b);
|
|
2883
|
-
} catch (d) {
|
|
2884
|
-
if ("undefined" == typeof S || "ErrnoError" !== d.name) throw d;
|
|
2885
|
-
return -d.Ka;
|
|
2886
|
-
}
|
|
2887
|
-
},
|
|
2888
|
-
L: function (a, b, c, d) {
|
|
2889
|
-
try {
|
|
2890
|
-
b = b ? I(x, b) : "";
|
|
2891
|
-
var e = d & 256;
|
|
2892
|
-
b = ec(a, b, d & 4096);
|
|
2893
|
-
return fc(e ? Sb : Rb, b, c);
|
|
2894
|
-
} catch (f) {
|
|
2895
|
-
if ("undefined" == typeof S || "ErrnoError" !== f.name) throw f;
|
|
2896
|
-
return -f.Ka;
|
|
2897
|
-
}
|
|
2898
|
-
},
|
|
2899
|
-
O: function (a, b, c, d) {
|
|
2900
|
-
gc = d;
|
|
2901
|
-
try {
|
|
2902
|
-
b = b ? I(x, b) : "";
|
|
2903
|
-
b = ec(a, b);
|
|
2904
|
-
if (d) {
|
|
2905
|
-
var e = B[+gc >> 2];
|
|
2906
|
-
gc += 4;
|
|
2907
|
-
var f = e;
|
|
2908
|
-
} else f = 0;
|
|
2909
|
-
return Ub(b, c, f).Sa;
|
|
2910
|
-
} catch (g) {
|
|
2911
|
-
if ("undefined" == typeof S || "ErrnoError" !== g.name) throw g;
|
|
2912
|
-
return -g.Ka;
|
|
2913
|
-
}
|
|
2914
|
-
},
|
|
2915
|
-
M: function (a, b) {
|
|
2916
|
-
try {
|
|
2917
|
-
return (a = a ? I(x, a) : ""), fc(Rb, a, b);
|
|
2918
|
-
} catch (c) {
|
|
2919
|
-
if ("undefined" == typeof S || "ErrnoError" !== c.name) throw c;
|
|
2920
|
-
return -c.Ka;
|
|
2921
|
-
}
|
|
2922
|
-
},
|
|
2923
|
-
g: (a) => {
|
|
2924
|
-
var b = hc[a];
|
|
2925
|
-
delete hc[a];
|
|
2926
|
-
var c = b.Db,
|
|
2927
|
-
d = b.Oa,
|
|
2928
|
-
e = b.Mb,
|
|
2929
|
-
f = e.map((g) => g.oc).concat(e.map((g) => g.Bc));
|
|
2930
|
-
pc([a], f, (g) => {
|
|
2931
|
-
var m = {};
|
|
2932
|
-
e.forEach((l, n) => {
|
|
2933
|
-
var q = g[n],
|
|
2934
|
-
p = l.nb,
|
|
2935
|
-
t = l.nc,
|
|
2936
|
-
h = g[n + e.length],
|
|
2937
|
-
r = l.Ac,
|
|
2938
|
-
v = l.Cc;
|
|
2939
|
-
m[l.kc] = {
|
|
2940
|
-
read: (A) => q.fromWireType(p(t, A)),
|
|
2941
|
-
write: (A, J) => {
|
|
2942
|
-
var H = [];
|
|
2943
|
-
r(v, A, h.toWireType(H, J));
|
|
2944
|
-
ic(H);
|
|
2945
|
-
},
|
|
2946
|
-
};
|
|
2947
|
-
});
|
|
2948
|
-
return [
|
|
2949
|
-
{
|
|
2950
|
-
name: b.name,
|
|
2951
|
-
fromWireType: (l) => {
|
|
2952
|
-
var n = {},
|
|
2953
|
-
q;
|
|
2954
|
-
for (q in m) n[q] = m[q].read(l);
|
|
2955
|
-
d(l);
|
|
2956
|
-
return n;
|
|
2957
|
-
},
|
|
2958
|
-
toWireType: (l, n) => {
|
|
2959
|
-
for (var q in m)
|
|
2960
|
-
if (!(q in n)) throw new TypeError(`Missing field: "${q}"`);
|
|
2961
|
-
var p = c();
|
|
2962
|
-
for (q in m) m[q].write(p, n[q]);
|
|
2963
|
-
null !== l && l.push(d, p);
|
|
2964
|
-
return p;
|
|
2965
|
-
},
|
|
2966
|
-
argPackAdvance: 8,
|
|
2967
|
-
readValueFromPointer: jc,
|
|
2968
|
-
La: d,
|
|
2969
|
-
},
|
|
2970
|
-
];
|
|
2971
|
-
});
|
|
2972
|
-
},
|
|
2973
|
-
E: () => {},
|
|
2974
|
-
S: (a, b, c, d) => {
|
|
2975
|
-
b = U(b);
|
|
2976
|
-
oc(a, {
|
|
2977
|
-
name: b,
|
|
2978
|
-
fromWireType: function (e) {
|
|
2979
|
-
return !!e;
|
|
2980
|
-
},
|
|
2981
|
-
toWireType: function (e, f) {
|
|
2982
|
-
return f ? c : d;
|
|
2983
|
-
},
|
|
2984
|
-
argPackAdvance: 8,
|
|
2985
|
-
readValueFromPointer: function (e) {
|
|
2986
|
-
return this.fromWireType(x[e]);
|
|
2987
|
-
},
|
|
2988
|
-
La: null,
|
|
2989
|
-
});
|
|
2990
|
-
},
|
|
2991
|
-
da: (a, b, c, d, e, f, g, m, l, n, q, p, t) => {
|
|
2992
|
-
q = U(q);
|
|
2993
|
-
f = W(e, f);
|
|
2994
|
-
m &&= W(g, m);
|
|
2995
|
-
n &&= W(l, n);
|
|
2996
|
-
t = W(p, t);
|
|
2997
|
-
var h = Ic(q);
|
|
2998
|
-
Hc(h, function () {
|
|
2999
|
-
ad(`Cannot construct ${q} due to unbound types`, [d]);
|
|
3000
|
-
});
|
|
3001
|
-
pc([a, b, c], d ? [d] : [], function (r) {
|
|
3002
|
-
r = r[0];
|
|
3003
|
-
if (d) {
|
|
3004
|
-
var v = r.ya;
|
|
3005
|
-
var A = v.Ya;
|
|
3006
|
-
} else A = Ec.prototype;
|
|
3007
|
-
r = Fc(q, function () {
|
|
3008
|
-
if (Object.getPrototypeOf(this) !== J)
|
|
3009
|
-
throw new V("Use 'new' to construct " + q);
|
|
3010
|
-
if (void 0 === H.Ra)
|
|
3011
|
-
throw new V(q + " has no accessible constructor");
|
|
3012
|
-
var N = H.Ra[arguments.length];
|
|
3013
|
-
if (void 0 === N)
|
|
3014
|
-
throw new V(
|
|
3015
|
-
`Tried to invoke ctor of ${q} with invalid number of parameters (${
|
|
3016
|
-
arguments.length
|
|
3017
|
-
}) - expected (${Object.keys(
|
|
3018
|
-
H.Ra,
|
|
3019
|
-
).toString()}) parameters instead!`,
|
|
3020
|
-
);
|
|
3021
|
-
return N.apply(this, arguments);
|
|
3022
|
-
});
|
|
3023
|
-
var J = Object.create(A, { constructor: { value: r } });
|
|
3024
|
-
r.prototype = J;
|
|
3025
|
-
var H = new Jc(q, r, J, t, v, f, m, n);
|
|
3026
|
-
if (H.Ga) {
|
|
3027
|
-
var y;
|
|
3028
|
-
(y = H.Ga).Hb ?? (y.Hb = []);
|
|
3029
|
-
H.Ga.Hb.push(H);
|
|
3030
|
-
}
|
|
3031
|
-
v = new Rc(q, H, !0, !1, !1);
|
|
3032
|
-
y = new Rc(q + "*", H, !1, !1, !1);
|
|
3033
|
-
A = new Rc(q + " const*", H, !1, !0, !1);
|
|
3034
|
-
wc[a] = { pointerType: y, fc: A };
|
|
3035
|
-
Sc(h, r);
|
|
3036
|
-
return [v, y, A];
|
|
3037
|
-
});
|
|
3038
|
-
},
|
|
3039
|
-
ca: (a, b, c, d, e, f) => {
|
|
3040
|
-
var g = bd(b, c);
|
|
3041
|
-
e = W(d, e);
|
|
3042
|
-
pc([], [a], function (m) {
|
|
3043
|
-
m = m[0];
|
|
3044
|
-
var l = `constructor ${m.name}`;
|
|
3045
|
-
void 0 === m.ya.Ra && (m.ya.Ra = []);
|
|
3046
|
-
if (void 0 !== m.ya.Ra[b - 1])
|
|
3047
|
-
throw new V(
|
|
3048
|
-
`Cannot register multiple constructors with identical number of parameters (${
|
|
3049
|
-
b - 1
|
|
3050
|
-
}) for class '${
|
|
3051
|
-
m.name
|
|
3052
|
-
}'! Overload resolution is currently only performed using the parameter count, not actual type info!`,
|
|
3053
|
-
);
|
|
3054
|
-
m.ya.Ra[b - 1] = () => {
|
|
3055
|
-
ad(`Cannot construct ${m.name} due to unbound types`, g);
|
|
3056
|
-
};
|
|
3057
|
-
pc([], g, (n) => {
|
|
3058
|
-
n.splice(1, 0, null);
|
|
3059
|
-
m.ya.Ra[b - 1] = dd(l, n, null, e, f);
|
|
3060
|
-
return [];
|
|
3061
|
-
});
|
|
3062
|
-
return [];
|
|
3063
|
-
});
|
|
3064
|
-
},
|
|
3065
|
-
h: (a, b, c, d, e, f, g, m) => {
|
|
3066
|
-
var l = bd(c, d);
|
|
3067
|
-
b = U(b);
|
|
3068
|
-
b = ed(b);
|
|
3069
|
-
f = W(e, f);
|
|
3070
|
-
pc([], [a], function (n) {
|
|
3071
|
-
function q() {
|
|
3072
|
-
ad(`Cannot call ${p} due to unbound types`, l);
|
|
3073
|
-
}
|
|
3074
|
-
n = n[0];
|
|
3075
|
-
var p = `${n.name}.${b}`;
|
|
3076
|
-
b.startsWith("@@") && (b = Symbol[b.substring(2)]);
|
|
3077
|
-
m && n.ya.xc.push(b);
|
|
3078
|
-
var t = n.ya.Ya,
|
|
3079
|
-
h = t[b];
|
|
3080
|
-
void 0 === h ||
|
|
3081
|
-
(void 0 === h.Ea && h.className !== n.name && h.jb === c - 2)
|
|
3082
|
-
? ((q.jb = c - 2), (q.className = n.name), (t[b] = q))
|
|
3083
|
-
: (Gc(t, b, p), (t[b].Ea[c - 2] = q));
|
|
3084
|
-
pc([], l, function (r) {
|
|
3085
|
-
r = dd(p, r, n, f, g);
|
|
3086
|
-
void 0 === t[b].Ea
|
|
3087
|
-
? ((r.jb = c - 2), (t[b] = r))
|
|
3088
|
-
: (t[b].Ea[c - 2] = r);
|
|
3089
|
-
return [];
|
|
3090
|
-
});
|
|
3091
|
-
return [];
|
|
3092
|
-
});
|
|
3093
|
-
},
|
|
3094
|
-
R: (a) => oc(a, jd),
|
|
3095
|
-
s: (a, b, c) => {
|
|
3096
|
-
b = U(b);
|
|
3097
|
-
oc(a, {
|
|
3098
|
-
name: b,
|
|
3099
|
-
fromWireType: (d) => d,
|
|
3100
|
-
toWireType: (d, e) => e,
|
|
3101
|
-
argPackAdvance: 8,
|
|
3102
|
-
readValueFromPointer: kd(b, c),
|
|
3103
|
-
La: null,
|
|
3104
|
-
});
|
|
3105
|
-
},
|
|
3106
|
-
n: (a, b, c, d, e, f) => {
|
|
3107
|
-
var g = bd(b, c);
|
|
3108
|
-
a = U(a);
|
|
3109
|
-
a = ed(a);
|
|
3110
|
-
e = W(d, e);
|
|
3111
|
-
Hc(
|
|
3112
|
-
a,
|
|
3113
|
-
function () {
|
|
3114
|
-
ad(`Cannot call ${a} due to unbound types`, g);
|
|
3115
|
-
},
|
|
3116
|
-
b - 1,
|
|
3117
|
-
);
|
|
3118
|
-
pc([], g, function (m) {
|
|
3119
|
-
Sc(a, dd(a, [m[0], null].concat(m.slice(1)), null, e, f), b - 1);
|
|
3120
|
-
return [];
|
|
3121
|
-
});
|
|
3122
|
-
},
|
|
3123
|
-
e: (a, b, c, d, e) => {
|
|
3124
|
-
b = U(b);
|
|
3125
|
-
-1 === e && (e = 4294967295);
|
|
3126
|
-
e = (m) => m;
|
|
3127
|
-
if (0 === d) {
|
|
3128
|
-
var f = 32 - 8 * c;
|
|
3129
|
-
e = (m) => (m << f) >>> f;
|
|
3130
|
-
}
|
|
3131
|
-
var g = b.includes("unsigned")
|
|
3132
|
-
? function (m, l) {
|
|
3133
|
-
return l >>> 0;
|
|
3134
|
-
}
|
|
3135
|
-
: function (m, l) {
|
|
3136
|
-
return l;
|
|
3137
|
-
};
|
|
3138
|
-
oc(a, {
|
|
3139
|
-
name: b,
|
|
3140
|
-
fromWireType: e,
|
|
3141
|
-
toWireType: g,
|
|
3142
|
-
argPackAdvance: 8,
|
|
3143
|
-
readValueFromPointer: ld(b, c, 0 !== d),
|
|
3144
|
-
La: null,
|
|
3145
|
-
});
|
|
3146
|
-
},
|
|
3147
|
-
c: (a, b, c) => {
|
|
3148
|
-
function d(f) {
|
|
3149
|
-
return new e(w.buffer, C[(f + 4) >> 2], C[f >> 2]);
|
|
3150
|
-
}
|
|
3151
|
-
var e = [
|
|
3152
|
-
Int8Array,
|
|
3153
|
-
Uint8Array,
|
|
3154
|
-
Int16Array,
|
|
3155
|
-
Uint16Array,
|
|
3156
|
-
Int32Array,
|
|
3157
|
-
Uint32Array,
|
|
3158
|
-
Float32Array,
|
|
3159
|
-
Float64Array,
|
|
3160
|
-
][b];
|
|
3161
|
-
c = U(c);
|
|
3162
|
-
oc(
|
|
3163
|
-
a,
|
|
3164
|
-
{
|
|
3165
|
-
name: c,
|
|
3166
|
-
fromWireType: d,
|
|
3167
|
-
argPackAdvance: 8,
|
|
3168
|
-
readValueFromPointer: d,
|
|
3169
|
-
},
|
|
3170
|
-
{ qc: !0 },
|
|
3171
|
-
);
|
|
3172
|
-
},
|
|
3173
|
-
t: (a, b) => {
|
|
3174
|
-
b = U(b);
|
|
3175
|
-
var c = "std::string" === b;
|
|
3176
|
-
oc(a, {
|
|
3177
|
-
name: b,
|
|
3178
|
-
fromWireType: function (d) {
|
|
3179
|
-
var e = C[d >> 2],
|
|
3180
|
-
f = d + 4;
|
|
3181
|
-
if (c)
|
|
3182
|
-
for (var g = f, m = 0; m <= e; ++m) {
|
|
3183
|
-
var l = f + m;
|
|
3184
|
-
if (m == e || 0 == x[l]) {
|
|
3185
|
-
g = g ? I(x, g, l - g) : "";
|
|
3186
|
-
if (void 0 === n) var n = g;
|
|
3187
|
-
else (n += String.fromCharCode(0)), (n += g);
|
|
3188
|
-
g = l + 1;
|
|
3189
|
-
}
|
|
3190
|
-
}
|
|
3191
|
-
else {
|
|
3192
|
-
n = Array(e);
|
|
3193
|
-
for (m = 0; m < e; ++m) n[m] = String.fromCharCode(x[f + m]);
|
|
3194
|
-
n = n.join("");
|
|
3195
|
-
}
|
|
3196
|
-
Zc(d);
|
|
3197
|
-
return n;
|
|
3198
|
-
},
|
|
3199
|
-
toWireType: function (d, e) {
|
|
3200
|
-
e instanceof ArrayBuffer && (e = new Uint8Array(e));
|
|
3201
|
-
var f = "string" == typeof e;
|
|
3202
|
-
if (
|
|
3203
|
-
!(
|
|
3204
|
-
f ||
|
|
3205
|
-
e instanceof Uint8Array ||
|
|
3206
|
-
e instanceof Uint8ClampedArray ||
|
|
3207
|
-
e instanceof Int8Array
|
|
3208
|
-
)
|
|
3209
|
-
)
|
|
3210
|
-
throw new V("Cannot pass non-string to std::string");
|
|
3211
|
-
var g = c && f ? ab(e) : e.length;
|
|
3212
|
-
var m = Gd(4 + g + 1),
|
|
3213
|
-
l = m + 4;
|
|
3214
|
-
C[m >> 2] = g;
|
|
3215
|
-
if (c && f) K(e, x, l, g + 1);
|
|
3216
|
-
else if (f)
|
|
3217
|
-
for (f = 0; f < g; ++f) {
|
|
3218
|
-
var n = e.charCodeAt(f);
|
|
3219
|
-
if (255 < n)
|
|
3220
|
-
throw (
|
|
3221
|
-
(Zc(l),
|
|
3222
|
-
new V(
|
|
3223
|
-
"String has UTF-16 code units that do not fit in 8 bits",
|
|
3224
|
-
))
|
|
3225
|
-
);
|
|
3226
|
-
x[l + f] = n;
|
|
3227
|
-
}
|
|
3228
|
-
else for (f = 0; f < g; ++f) x[l + f] = e[f];
|
|
3229
|
-
null !== d && d.push(Zc, m);
|
|
3230
|
-
return m;
|
|
3231
|
-
},
|
|
3232
|
-
argPackAdvance: 8,
|
|
3233
|
-
readValueFromPointer: Qc,
|
|
3234
|
-
La(d) {
|
|
3235
|
-
Zc(d);
|
|
3236
|
-
},
|
|
3237
|
-
});
|
|
3238
|
-
},
|
|
3239
|
-
l: (a, b, c) => {
|
|
3240
|
-
c = U(c);
|
|
3241
|
-
if (2 === b) {
|
|
3242
|
-
var d = nd;
|
|
3243
|
-
var e = od;
|
|
3244
|
-
var f = pd;
|
|
3245
|
-
var g = () => z;
|
|
3246
|
-
var m = 1;
|
|
3247
|
-
} else
|
|
3248
|
-
4 === b && ((d = qd), (e = rd), (f = sd), (g = () => C), (m = 2));
|
|
3249
|
-
oc(a, {
|
|
3250
|
-
name: c,
|
|
3251
|
-
fromWireType: (l) => {
|
|
3252
|
-
for (
|
|
3253
|
-
var n = C[l >> 2], q = g(), p, t = l + 4, h = 0;
|
|
3254
|
-
h <= n;
|
|
3255
|
-
++h
|
|
3256
|
-
) {
|
|
3257
|
-
var r = l + 4 + h * b;
|
|
3258
|
-
if (h == n || 0 == q[r >> m])
|
|
3259
|
-
(t = d(t, r - t)),
|
|
3260
|
-
void 0 === p
|
|
3261
|
-
? (p = t)
|
|
3262
|
-
: ((p += String.fromCharCode(0)), (p += t)),
|
|
3263
|
-
(t = r + b);
|
|
3264
|
-
}
|
|
3265
|
-
Zc(l);
|
|
3266
|
-
return p;
|
|
3267
|
-
},
|
|
3268
|
-
toWireType: (l, n) => {
|
|
3269
|
-
if ("string" != typeof n)
|
|
3270
|
-
throw new V(`Cannot pass non-string to C++ string type ${c}`);
|
|
3271
|
-
var q = f(n),
|
|
3272
|
-
p = Gd(4 + q + b);
|
|
3273
|
-
C[p >> 2] = q >> m;
|
|
3274
|
-
e(n, p + 4, q + b);
|
|
3275
|
-
null !== l && l.push(Zc, p);
|
|
3276
|
-
return p;
|
|
3277
|
-
},
|
|
3278
|
-
argPackAdvance: 8,
|
|
3279
|
-
readValueFromPointer: jc,
|
|
3280
|
-
La(l) {
|
|
3281
|
-
Zc(l);
|
|
3282
|
-
},
|
|
3283
|
-
});
|
|
3284
|
-
},
|
|
3285
|
-
f: (a, b, c, d, e, f) => {
|
|
3286
|
-
hc[a] = { name: U(b), Db: W(c, d), Oa: W(e, f), Mb: [] };
|
|
3287
|
-
},
|
|
3288
|
-
b: (a, b, c, d, e, f, g, m, l, n) => {
|
|
3289
|
-
hc[a].Mb.push({
|
|
3290
|
-
kc: U(b),
|
|
3291
|
-
oc: c,
|
|
3292
|
-
nb: W(d, e),
|
|
3293
|
-
nc: f,
|
|
3294
|
-
Bc: g,
|
|
3295
|
-
Ac: W(m, l),
|
|
3296
|
-
Cc: n,
|
|
3297
|
-
});
|
|
3298
|
-
},
|
|
3299
|
-
T: (a, b) => {
|
|
3300
|
-
b = U(b);
|
|
3301
|
-
oc(a, {
|
|
3302
|
-
Uc: !0,
|
|
3303
|
-
name: b,
|
|
3304
|
-
argPackAdvance: 0,
|
|
3305
|
-
fromWireType: () => {},
|
|
3306
|
-
toWireType: () => {},
|
|
3307
|
-
});
|
|
3308
|
-
},
|
|
3309
|
-
U: function (a) {
|
|
3310
|
-
if (Jd.has(a)) {
|
|
3311
|
-
var b = Jd.get(a),
|
|
3312
|
-
c = Jd;
|
|
3313
|
-
c.Fa[a] = void 0;
|
|
3314
|
-
c.yb.push(a);
|
|
3315
|
-
0 < b.readyState && 4 > b.readyState && b.abort();
|
|
3316
|
-
}
|
|
3317
|
-
},
|
|
3318
|
-
P: () => 1,
|
|
3319
|
-
j: (a, b, c) => {
|
|
3320
|
-
a = hd(a);
|
|
3321
|
-
b = td(b, "emval::as");
|
|
3322
|
-
return ud(b, c, a);
|
|
3323
|
-
},
|
|
3324
|
-
m: (a, b, c, d) => {
|
|
3325
|
-
a = vd[a];
|
|
3326
|
-
b = hd(b);
|
|
3327
|
-
return a(null, b, c, d);
|
|
3328
|
-
},
|
|
3329
|
-
$: (a, b, c, d, e) => {
|
|
3330
|
-
a = vd[a];
|
|
3331
|
-
b = hd(b);
|
|
3332
|
-
c = xd(c);
|
|
3333
|
-
return a(b, b[c], d, e);
|
|
3334
|
-
},
|
|
3335
|
-
y: gd,
|
|
3336
|
-
_: (a) => {
|
|
3337
|
-
if (0 === a) return Oc(yd());
|
|
3338
|
-
a = xd(a);
|
|
3339
|
-
return Oc(yd()[a]);
|
|
3340
|
-
},
|
|
3341
|
-
o: (a, b, c) => {
|
|
3342
|
-
var d = Ad(a, b),
|
|
3343
|
-
e = d.shift();
|
|
3344
|
-
a--;
|
|
3345
|
-
var f = Array(a);
|
|
3346
|
-
b = `methodCaller<(${d.map((g) => g.name).join(", ")}) => ${e.name}>`;
|
|
3347
|
-
return zd(
|
|
3348
|
-
Fc(b, (g, m, l, n) => {
|
|
3349
|
-
for (var q = 0, p = 0; p < a; ++p)
|
|
3350
|
-
(f[p] = d[p].readValueFromPointer(n + q)),
|
|
3351
|
-
(q += d[p].argPackAdvance);
|
|
3352
|
-
g = 1 === c ? Bd(m, f) : m.apply(g, f);
|
|
3353
|
-
return ud(e, l, g);
|
|
3354
|
-
}),
|
|
3355
|
-
);
|
|
3356
|
-
},
|
|
3357
|
-
u: (a, b) => {
|
|
3358
|
-
a = hd(a);
|
|
3359
|
-
b = hd(b);
|
|
3360
|
-
return Oc(a[b]);
|
|
3361
|
-
},
|
|
3362
|
-
i: (a) => {
|
|
3363
|
-
4 < a && (X.get(a).Vb += 1);
|
|
3364
|
-
},
|
|
3365
|
-
x: () => Oc([]),
|
|
3366
|
-
aa: (a) => Oc(xd(a)),
|
|
3367
|
-
ba: (a) => {
|
|
3368
|
-
var b = hd(a);
|
|
3369
|
-
ic(b);
|
|
3370
|
-
gd(a);
|
|
3371
|
-
},
|
|
3372
|
-
w: (a, b, c) => {
|
|
3373
|
-
a = hd(a);
|
|
3374
|
-
b = hd(b);
|
|
3375
|
-
c = hd(c);
|
|
3376
|
-
a[b] = c;
|
|
3377
|
-
},
|
|
3378
|
-
d: (a, b) => {
|
|
3379
|
-
a = td(a, "_emval_take_value");
|
|
3380
|
-
a = a.readValueFromPointer(b);
|
|
3381
|
-
return Oc(a);
|
|
3382
|
-
},
|
|
3383
|
-
B: function (a, b, c) {
|
|
3384
|
-
a = new Date(1e3 * Fd(a, b));
|
|
3385
|
-
B[c >> 2] = a.getSeconds();
|
|
3386
|
-
B[(c + 4) >> 2] = a.getMinutes();
|
|
3387
|
-
B[(c + 8) >> 2] = a.getHours();
|
|
3388
|
-
B[(c + 12) >> 2] = a.getDate();
|
|
3389
|
-
B[(c + 16) >> 2] = a.getMonth();
|
|
3390
|
-
B[(c + 20) >> 2] = a.getFullYear() - 1900;
|
|
3391
|
-
B[(c + 24) >> 2] = a.getDay();
|
|
3392
|
-
B[(c + 28) >> 2] =
|
|
3393
|
-
((Cd(a.getFullYear()) ? Dd : Ed)[a.getMonth()] + a.getDate() - 1) |
|
|
3394
|
-
0;
|
|
3395
|
-
B[(c + 36) >> 2] = -(60 * a.getTimezoneOffset());
|
|
3396
|
-
b = new Date(a.getFullYear(), 6, 1).getTimezoneOffset();
|
|
3397
|
-
var d = new Date(a.getFullYear(), 0, 1).getTimezoneOffset();
|
|
3398
|
-
B[(c + 32) >> 2] =
|
|
3399
|
-
(b != d && a.getTimezoneOffset() == Math.min(d, b)) | 0;
|
|
3400
|
-
},
|
|
3401
|
-
C: function (a) {
|
|
3402
|
-
var b = new Date(
|
|
3403
|
-
B[(a + 20) >> 2] + 1900,
|
|
3404
|
-
B[(a + 16) >> 2],
|
|
3405
|
-
B[(a + 12) >> 2],
|
|
3406
|
-
B[(a + 8) >> 2],
|
|
3407
|
-
B[(a + 4) >> 2],
|
|
3408
|
-
B[a >> 2],
|
|
3409
|
-
0,
|
|
3410
|
-
),
|
|
3411
|
-
c = B[(a + 32) >> 2],
|
|
3412
|
-
d = b.getTimezoneOffset(),
|
|
3413
|
-
e = new Date(b.getFullYear(), 6, 1).getTimezoneOffset(),
|
|
3414
|
-
f = new Date(b.getFullYear(), 0, 1).getTimezoneOffset(),
|
|
3415
|
-
g = Math.min(f, e);
|
|
3416
|
-
0 > c
|
|
3417
|
-
? (B[(a + 32) >> 2] = Number(e != f && g == d))
|
|
3418
|
-
: 0 < c != (g == d) &&
|
|
3419
|
-
((e = Math.max(f, e)),
|
|
3420
|
-
b.setTime(b.getTime() + 6e4 * ((0 < c ? g : e) - d)));
|
|
3421
|
-
B[(a + 24) >> 2] = b.getDay();
|
|
3422
|
-
B[(a + 28) >> 2] =
|
|
3423
|
-
((Cd(b.getFullYear()) ? Dd : Ed)[b.getMonth()] + b.getDate() - 1) |
|
|
3424
|
-
0;
|
|
3425
|
-
B[a >> 2] = b.getSeconds();
|
|
3426
|
-
B[(a + 4) >> 2] = b.getMinutes();
|
|
3427
|
-
B[(a + 8) >> 2] = b.getHours();
|
|
3428
|
-
B[(a + 12) >> 2] = b.getDate();
|
|
3429
|
-
B[(a + 16) >> 2] = b.getMonth();
|
|
3430
|
-
B[(a + 20) >> 2] = b.getYear();
|
|
3431
|
-
a = b.getTime();
|
|
3432
|
-
a = isNaN(a) ? -1 : a / 1e3;
|
|
3433
|
-
return (
|
|
3434
|
-
ae(
|
|
3435
|
-
((E = a),
|
|
3436
|
-
1 <= +Math.abs(E)
|
|
3437
|
-
? 0 < E
|
|
3438
|
-
? +Math.floor(E / 4294967296) >>> 0
|
|
3439
|
-
: ~~+Math.ceil((E - +(~~E >>> 0)) / 4294967296) >>> 0
|
|
3440
|
-
: 0),
|
|
3441
|
-
),
|
|
3442
|
-
a >>> 0
|
|
3443
|
-
);
|
|
3444
|
-
},
|
|
3445
|
-
z: function (a, b, c, d, e, f, g, m) {
|
|
3446
|
-
e = Fd(e, f);
|
|
3447
|
-
try {
|
|
3448
|
-
if (isNaN(e)) return 61;
|
|
3449
|
-
var l = Jb(d);
|
|
3450
|
-
if (0 !== (b & 2) && 0 === (c & 2) && 2 !== (l.flags & 2097155))
|
|
3451
|
-
throw new L(2);
|
|
3452
|
-
if (1 === (l.flags & 2097155)) throw new L(2);
|
|
3453
|
-
if (!l.xa.cb) throw new L(43);
|
|
3454
|
-
var n = l.xa.cb(l, a, e, b, c);
|
|
3455
|
-
var q = n.za;
|
|
3456
|
-
B[g >> 2] = n.Fa;
|
|
3457
|
-
C[m >> 2] = q;
|
|
3458
|
-
return 0;
|
|
3459
|
-
} catch (p) {
|
|
3460
|
-
if ("undefined" == typeof S || "ErrnoError" !== p.name) throw p;
|
|
3461
|
-
return -p.Ka;
|
|
3462
|
-
}
|
|
3463
|
-
},
|
|
3464
|
-
A: function (a, b, c, d, e, f, g) {
|
|
3465
|
-
f = Fd(f, g);
|
|
3466
|
-
try {
|
|
3467
|
-
if (isNaN(f)) return 61;
|
|
3468
|
-
var m = Jb(e);
|
|
3469
|
-
if (c & 2) {
|
|
3470
|
-
if (32768 !== (m.node.mode & 61440)) throw new L(43);
|
|
3471
|
-
d & 2 || (m.xa.rb && m.xa.rb(m, x.slice(a, a + b), f, b, d));
|
|
3472
|
-
}
|
|
3473
|
-
} catch (l) {
|
|
3474
|
-
if ("undefined" == typeof S || "ErrnoError" !== l.name) throw l;
|
|
3475
|
-
return -l.Ka;
|
|
3476
|
-
}
|
|
3477
|
-
},
|
|
3478
|
-
I: (a, b, c) => {
|
|
3479
|
-
function d(l) {
|
|
3480
|
-
return (l = l.toTimeString().match(/\(([A-Za-z ]+)\)$/))
|
|
3481
|
-
? l[1]
|
|
3482
|
-
: "GMT";
|
|
3483
|
-
}
|
|
3484
|
-
var e = new Date().getFullYear(),
|
|
3485
|
-
f = new Date(e, 0, 1),
|
|
3486
|
-
g = new Date(e, 6, 1);
|
|
3487
|
-
e = f.getTimezoneOffset();
|
|
3488
|
-
var m = g.getTimezoneOffset();
|
|
3489
|
-
C[a >> 2] = 60 * Math.max(e, m);
|
|
3490
|
-
B[b >> 2] = Number(e != m);
|
|
3491
|
-
a = d(f);
|
|
3492
|
-
b = d(g);
|
|
3493
|
-
a = Hd(a);
|
|
3494
|
-
b = Hd(b);
|
|
3495
|
-
m < e
|
|
3496
|
-
? ((C[c >> 2] = a), (C[(c + 4) >> 2] = b))
|
|
3497
|
-
: ((C[c >> 2] = b), (C[(c + 4) >> 2] = a));
|
|
3498
|
-
},
|
|
3499
|
-
a: () => {
|
|
3500
|
-
na("");
|
|
3501
|
-
},
|
|
3502
|
-
v: (a, b, c) => {
|
|
3503
|
-
Id.length = 0;
|
|
3504
|
-
for (var d; (d = x[b++]); ) {
|
|
3505
|
-
var e = 105 != d;
|
|
3506
|
-
e &= 112 != d;
|
|
3507
|
-
c += e && c % 8 ? 4 : 0;
|
|
3508
|
-
Id.push(112 == d ? C[c >> 2] : 105 == d ? B[c >> 2] : ta[c >> 3]);
|
|
3509
|
-
c += e ? 8 : 4;
|
|
3510
|
-
}
|
|
3511
|
-
return Na[a].apply(null, Id);
|
|
3512
|
-
},
|
|
3513
|
-
Q: () => Date.now(),
|
|
3514
|
-
k: () => performance.now(),
|
|
3515
|
-
W: () => !1,
|
|
3516
|
-
H: (a) => {
|
|
3517
|
-
var b = x.length;
|
|
3518
|
-
a >>>= 0;
|
|
3519
|
-
if (2147483648 < a) return !1;
|
|
3520
|
-
for (var c = 1; 4 >= c; c *= 2) {
|
|
3521
|
-
var d = Math,
|
|
3522
|
-
e = Math.max(a, b + 2097152 / c);
|
|
3523
|
-
a: {
|
|
3524
|
-
d =
|
|
3525
|
-
(d.min.call(
|
|
3526
|
-
d,
|
|
3527
|
-
2147483648,
|
|
3528
|
-
e + ((65536 - (e % 65536)) % 65536),
|
|
3529
|
-
) -
|
|
3530
|
-
oa.buffer.byteLength +
|
|
3531
|
-
65535) /
|
|
3532
|
-
65536;
|
|
3533
|
-
try {
|
|
3534
|
-
oa.grow(d);
|
|
3535
|
-
ua();
|
|
3536
|
-
var f = 1;
|
|
3537
|
-
break a;
|
|
3538
|
-
} catch (g) {}
|
|
3539
|
-
f = void 0;
|
|
3540
|
-
}
|
|
3541
|
-
if (f) return !0;
|
|
3542
|
-
}
|
|
3543
|
-
return !1;
|
|
3544
|
-
},
|
|
3545
|
-
V: function (a, b, c, d, e) {
|
|
3546
|
-
function f(G) {
|
|
3547
|
-
if (t) G();
|
|
3548
|
-
else if (!za && !pa)
|
|
3549
|
-
try {
|
|
3550
|
-
if ((G(), !(za || Ra || 0 < Ld)))
|
|
3551
|
-
try {
|
|
3552
|
-
Pd(qa);
|
|
3553
|
-
} catch (ja) {
|
|
3554
|
-
ja instanceof Oa || "unwind" == ja || ea(1, ja);
|
|
3555
|
-
}
|
|
3556
|
-
} catch (ja) {
|
|
3557
|
-
ja instanceof Oa || "unwind" == ja || ea(1, ja);
|
|
3558
|
-
}
|
|
3559
|
-
}
|
|
3560
|
-
Ld += 1;
|
|
3561
|
-
var g = a + 112,
|
|
3562
|
-
m = C[(g + 36) >> 2],
|
|
3563
|
-
l = C[(g + 40) >> 2],
|
|
3564
|
-
n = C[(g + 44) >> 2],
|
|
3565
|
-
q = C[(g + 48) >> 2],
|
|
3566
|
-
p = C[(g + 52) >> 2],
|
|
3567
|
-
t = !!(p & 64),
|
|
3568
|
-
h = (G) => {
|
|
3569
|
-
--Ld;
|
|
3570
|
-
f(() => {
|
|
3571
|
-
m ? Vc(m)(G) : b?.(G);
|
|
3572
|
-
});
|
|
3573
|
-
},
|
|
3574
|
-
r = (G) => {
|
|
3575
|
-
f(() => {
|
|
3576
|
-
n ? Vc(n)(G) : d?.(G);
|
|
3577
|
-
});
|
|
3578
|
-
},
|
|
3579
|
-
v = (G) => {
|
|
3580
|
-
--Ld;
|
|
3581
|
-
f(() => {
|
|
3582
|
-
l ? Vc(l)(G) : c?.(G);
|
|
3583
|
-
});
|
|
3584
|
-
},
|
|
3585
|
-
A = (G) => {
|
|
3586
|
-
f(() => {
|
|
3587
|
-
q ? Vc(q)(G) : e?.(G);
|
|
3588
|
-
});
|
|
3589
|
-
},
|
|
3590
|
-
J = (G) => {
|
|
3591
|
-
Md(G, h, v, r, A);
|
|
3592
|
-
},
|
|
3593
|
-
H = (G, ja) => {
|
|
3594
|
-
Qd(
|
|
3595
|
-
G,
|
|
3596
|
-
ja.response,
|
|
3597
|
-
(Pa) => {
|
|
3598
|
-
--Ld;
|
|
3599
|
-
f(() => {
|
|
3600
|
-
m ? Vc(m)(Pa) : b?.(Pa);
|
|
3601
|
-
});
|
|
3602
|
-
},
|
|
3603
|
-
(Pa) => {
|
|
3604
|
-
--Ld;
|
|
3605
|
-
f(() => {
|
|
3606
|
-
m ? Vc(m)(Pa) : b?.(Pa);
|
|
3607
|
-
});
|
|
3608
|
-
},
|
|
3609
|
-
);
|
|
3610
|
-
},
|
|
3611
|
-
y = (G) => {
|
|
3612
|
-
Md(G, H, v, r, A);
|
|
3613
|
-
},
|
|
3614
|
-
N = dc(g + 0),
|
|
3615
|
-
D = !!(p & 16),
|
|
3616
|
-
T = !!(p & 4);
|
|
3617
|
-
p = !!(p & 32);
|
|
3618
|
-
if ("EM_IDB_STORE" === N)
|
|
3619
|
-
(J = C[(g + 84) >> 2]),
|
|
3620
|
-
Qd(a, x.slice(J, J + C[(g + 88) >> 2]), h, v);
|
|
3621
|
-
else if ("EM_IDB_DELETE" === N) Sd(a, h, v);
|
|
3622
|
-
else if (D) {
|
|
3623
|
-
if (p) return 0;
|
|
3624
|
-
Md(a, T ? H : h, v, r, A);
|
|
3625
|
-
} else Rd(a, h, p ? v : T ? y : J);
|
|
3626
|
-
return a;
|
|
3627
|
-
},
|
|
3628
|
-
J: (a, b) => {
|
|
3629
|
-
var c = 0;
|
|
3630
|
-
Vd().forEach((d, e) => {
|
|
3631
|
-
var f = b + c;
|
|
3632
|
-
e = C[(a + 4 * e) >> 2] = f;
|
|
3633
|
-
for (f = 0; f < d.length; ++f) w[e++ >> 0] = d.charCodeAt(f);
|
|
3634
|
-
w[e >> 0] = 0;
|
|
3635
|
-
c += d.length + 1;
|
|
3636
|
-
});
|
|
3637
|
-
return 0;
|
|
3638
|
-
},
|
|
3639
|
-
K: (a, b) => {
|
|
3640
|
-
var c = Vd();
|
|
3641
|
-
C[a >> 2] = c.length;
|
|
3642
|
-
var d = 0;
|
|
3643
|
-
c.forEach((e) => (d += e.length + 1));
|
|
3644
|
-
C[b >> 2] = d;
|
|
3645
|
-
return 0;
|
|
3646
|
-
},
|
|
3647
|
-
Z: Pd,
|
|
3648
|
-
r: function (a) {
|
|
3649
|
-
try {
|
|
3650
|
-
var b = Jb(a);
|
|
3651
|
-
Wb(b);
|
|
3652
|
-
return 0;
|
|
3653
|
-
} catch (c) {
|
|
3654
|
-
if ("undefined" == typeof S || "ErrnoError" !== c.name) throw c;
|
|
3655
|
-
return c.Ka;
|
|
3656
|
-
}
|
|
3657
|
-
},
|
|
3658
|
-
q: function (a, b, c, d) {
|
|
3659
|
-
try {
|
|
3660
|
-
a: {
|
|
3661
|
-
var e = Jb(a);
|
|
3662
|
-
a = b;
|
|
3663
|
-
for (var f, g = (b = 0); g < c; g++) {
|
|
3664
|
-
var m = C[a >> 2],
|
|
3665
|
-
l = C[(a + 4) >> 2];
|
|
3666
|
-
a += 8;
|
|
3667
|
-
var n = e,
|
|
3668
|
-
q = f,
|
|
3669
|
-
p = w;
|
|
3670
|
-
if (0 > l || 0 > q) throw new L(28);
|
|
3671
|
-
if (null === n.Sa) throw new L(8);
|
|
3672
|
-
if (1 === (n.flags & 2097155)) throw new L(8);
|
|
3673
|
-
if (O(n.node.mode)) throw new L(31);
|
|
3674
|
-
if (!n.xa.read) throw new L(28);
|
|
3675
|
-
var t = "undefined" != typeof q;
|
|
3676
|
-
if (!t) q = n.position;
|
|
3677
|
-
else if (!n.seekable) throw new L(70);
|
|
3678
|
-
var h = n.xa.read(n, p, m, l, q);
|
|
3679
|
-
t || (n.position += h);
|
|
3680
|
-
var r = h;
|
|
3681
|
-
if (0 > r) {
|
|
3682
|
-
var v = -1;
|
|
3683
|
-
break a;
|
|
3684
|
-
}
|
|
3685
|
-
b += r;
|
|
3686
|
-
if (r < l) break;
|
|
3687
|
-
"undefined" !== typeof f && (f += r);
|
|
3688
|
-
}
|
|
3689
|
-
v = b;
|
|
3690
|
-
}
|
|
3691
|
-
C[d >> 2] = v;
|
|
3692
|
-
return 0;
|
|
3693
|
-
} catch (A) {
|
|
3694
|
-
if ("undefined" == typeof S || "ErrnoError" !== A.name) throw A;
|
|
3695
|
-
return A.Ka;
|
|
3696
|
-
}
|
|
3697
|
-
},
|
|
3698
|
-
D: function (a, b, c, d, e) {
|
|
3699
|
-
b = Fd(b, c);
|
|
3700
|
-
try {
|
|
3701
|
-
if (isNaN(b)) return 61;
|
|
3702
|
-
var f = Jb(a);
|
|
3703
|
-
Xb(f, b, d);
|
|
3704
|
-
F = [
|
|
3705
|
-
f.position >>> 0,
|
|
3706
|
-
((E = f.position),
|
|
3707
|
-
1 <= +Math.abs(E)
|
|
3708
|
-
? 0 < E
|
|
3709
|
-
? +Math.floor(E / 4294967296) >>> 0
|
|
3710
|
-
: ~~+Math.ceil((E - +(~~E >>> 0)) / 4294967296) >>> 0
|
|
3711
|
-
: 0),
|
|
3712
|
-
];
|
|
3713
|
-
B[e >> 2] = F[0];
|
|
3714
|
-
B[(e + 4) >> 2] = F[1];
|
|
3715
|
-
f.zb && 0 === b && 0 === d && (f.zb = null);
|
|
3716
|
-
return 0;
|
|
3717
|
-
} catch (g) {
|
|
3718
|
-
if ("undefined" == typeof S || "ErrnoError" !== g.name) throw g;
|
|
3719
|
-
return g.Ka;
|
|
3720
|
-
}
|
|
3721
|
-
},
|
|
3722
|
-
p: function (a, b, c, d) {
|
|
3723
|
-
try {
|
|
3724
|
-
a: {
|
|
3725
|
-
var e = Jb(a);
|
|
3726
|
-
a = b;
|
|
3727
|
-
for (var f, g = (b = 0); g < c; g++) {
|
|
3728
|
-
var m = C[a >> 2],
|
|
3729
|
-
l = C[(a + 4) >> 2];
|
|
3730
|
-
a += 8;
|
|
3731
|
-
var n = Yb(e, w, m, l, f);
|
|
3732
|
-
if (0 > n) {
|
|
3733
|
-
var q = -1;
|
|
3734
|
-
break a;
|
|
3735
|
-
}
|
|
3736
|
-
b += n;
|
|
3737
|
-
"undefined" !== typeof f && (f += n);
|
|
3738
|
-
}
|
|
3739
|
-
q = b;
|
|
3740
|
-
}
|
|
3741
|
-
C[d >> 2] = q;
|
|
3742
|
-
return 0;
|
|
3743
|
-
} catch (p) {
|
|
3744
|
-
if ("undefined" == typeof S || "ErrnoError" !== p.name) throw p;
|
|
3745
|
-
return p.Ka;
|
|
3746
|
-
}
|
|
3747
|
-
},
|
|
3748
|
-
X: function () {
|
|
3749
|
-
var a = stackTrace(),
|
|
3750
|
-
b = ab(a) + 1,
|
|
3751
|
-
c = Gd(b);
|
|
3752
|
-
K(a, x, c, b);
|
|
3753
|
-
return c;
|
|
3754
|
-
},
|
|
3755
|
-
F: (a, b) => {
|
|
3756
|
-
Xa(x.subarray(a, a + b));
|
|
3757
|
-
return 0;
|
|
3758
|
-
},
|
|
3759
|
-
Y: Yd,
|
|
3760
|
-
G: (a, b, c, d) => Yd(a, b, c, d),
|
|
3761
|
-
},
|
|
3762
|
-
Z = (function () {
|
|
3763
|
-
function a(c) {
|
|
3764
|
-
Z = c.exports;
|
|
3765
|
-
oa = Z.ea;
|
|
3766
|
-
ua();
|
|
3767
|
-
Uc = Z.ia;
|
|
3768
|
-
wa.unshift(Z.fa);
|
|
3769
|
-
Fa("wasm-instantiate");
|
|
3770
|
-
return Z;
|
|
3771
|
-
}
|
|
3772
|
-
var b = { a: be };
|
|
3773
|
-
Ea("wasm-instantiate");
|
|
3774
|
-
if (k.instantiateWasm)
|
|
3775
|
-
try {
|
|
3776
|
-
return k.instantiateWasm(b, a);
|
|
3777
|
-
} catch (c) {
|
|
3778
|
-
u(`Module.instantiateWasm callback failed with error: ${c}`), ba(c);
|
|
3779
|
-
}
|
|
3780
|
-
Ma(b, function (c) {
|
|
3781
|
-
a(c.instance);
|
|
3782
|
-
}).catch(ba);
|
|
3783
|
-
return {};
|
|
3784
|
-
})(),
|
|
3785
|
-
Zc = (a) => (Zc = Z.ga)(a),
|
|
3786
|
-
Gd = (a) => (Gd = Z.ha)(a),
|
|
3787
|
-
Od = (a) => (Od = Z.ja)(a),
|
|
3788
|
-
Yc = (a) => (Yc = Z.ka)(a),
|
|
3789
|
-
Nd = () => (Nd = Z.la)(),
|
|
3790
|
-
ib = (a, b) => (ib = Z.ma)(a, b),
|
|
3791
|
-
ae = (a) => (ae = Z.na)(a);
|
|
3792
|
-
k.dynCall_ji = (a, b) => (k.dynCall_ji = Z.oa)(a, b);
|
|
3793
|
-
k.dynCall_jiji = (a, b, c, d, e) => (k.dynCall_jiji = Z.pa)(a, b, c, d, e);
|
|
3794
|
-
k.dynCall_viijii = (a, b, c, d, e, f, g) =>
|
|
3795
|
-
(k.dynCall_viijii = Z.qa)(a, b, c, d, e, f, g);
|
|
3796
|
-
k.dynCall_iiiiij = (a, b, c, d, e, f, g) =>
|
|
3797
|
-
(k.dynCall_iiiiij = Z.ra)(a, b, c, d, e, f, g);
|
|
3798
|
-
k.dynCall_iiiiijj = (a, b, c, d, e, f, g, m, l) =>
|
|
3799
|
-
(k.dynCall_iiiiijj = Z.sa)(a, b, c, d, e, f, g, m, l);
|
|
3800
|
-
k.dynCall_iiiiiijj = (a, b, c, d, e, f, g, m, l, n) =>
|
|
3801
|
-
(k.dynCall_iiiiiijj = Z.ta)(a, b, c, d, e, f, g, m, l, n);
|
|
3802
|
-
k.__ZN2MB2NN28LinearDefragmentingAllocator10Allocation4nullE = 1024;
|
|
3803
|
-
k.___start_em_js = 60026;
|
|
3804
|
-
k.___stop_em_js = 60449;
|
|
3805
|
-
k.addRunDependency = Ea;
|
|
3806
|
-
k.removeRunDependency = Fa;
|
|
3807
|
-
k.FS_createPath = $b;
|
|
3808
|
-
k.FS_createLazyFile = cc;
|
|
3809
|
-
k.FS_createDevice = R;
|
|
3810
|
-
k.FS_createPreloadedFile = tb;
|
|
3811
|
-
k.FS_createDataFile = sb;
|
|
3812
|
-
k.FS_unlink = Qb;
|
|
3813
|
-
var ce;
|
|
3814
|
-
Da = function de() {
|
|
3815
|
-
ce || ee();
|
|
3816
|
-
ce || (Da = de);
|
|
3817
|
-
};
|
|
3818
|
-
function ee() {
|
|
3819
|
-
function a() {
|
|
3820
|
-
if (!ce && ((ce = !0), (k.calledRun = !0), !pa)) {
|
|
3821
|
-
k.noFSInit ||
|
|
3822
|
-
Zb ||
|
|
3823
|
-
((Zb = !0),
|
|
3824
|
-
(k.stdin = k.stdin),
|
|
3825
|
-
(k.stdout = k.stdout),
|
|
3826
|
-
(k.stderr = k.stderr),
|
|
3827
|
-
k.stdin
|
|
3828
|
-
? R("/dev", "stdin", k.stdin)
|
|
3829
|
-
: Pb("/dev/tty", "/dev/stdin"),
|
|
3830
|
-
k.stdout
|
|
3831
|
-
? R("/dev", "stdout", null, k.stdout)
|
|
3832
|
-
: Pb("/dev/tty", "/dev/stdout"),
|
|
3833
|
-
k.stderr
|
|
3834
|
-
? R("/dev", "stderr", null, k.stderr)
|
|
3835
|
-
: Pb("/dev/tty1", "/dev/stderr"),
|
|
3836
|
-
Ub("/dev/stdin", 0),
|
|
3837
|
-
Ub("/dev/stdout", 1),
|
|
3838
|
-
Ub("/dev/stderr", 1));
|
|
3839
|
-
Ab = !1;
|
|
3840
|
-
Qa(wa);
|
|
3841
|
-
aa(k);
|
|
3842
|
-
if (k.onRuntimeInitialized) k.onRuntimeInitialized();
|
|
3843
|
-
if (k.postRun)
|
|
3844
|
-
for (
|
|
3845
|
-
"function" == typeof k.postRun && (k.postRun = [k.postRun]);
|
|
3846
|
-
k.postRun.length;
|
|
3847
|
-
|
|
3848
|
-
) {
|
|
3849
|
-
var b = k.postRun.shift();
|
|
3850
|
-
ya.unshift(b);
|
|
3851
|
-
}
|
|
3852
|
-
Qa(ya);
|
|
3853
|
-
}
|
|
3854
|
-
}
|
|
3855
|
-
if (!(0 < Ba)) {
|
|
3856
|
-
if (k.preRun)
|
|
3857
|
-
for (
|
|
3858
|
-
"function" == typeof k.preRun && (k.preRun = [k.preRun]);
|
|
3859
|
-
k.preRun.length;
|
|
3860
|
-
|
|
3861
|
-
)
|
|
3862
|
-
Aa();
|
|
3863
|
-
Qa(va);
|
|
3864
|
-
0 < Ba ||
|
|
3865
|
-
(k.setStatus
|
|
3866
|
-
? (k.setStatus("Running..."),
|
|
3867
|
-
setTimeout(function () {
|
|
3868
|
-
setTimeout(function () {
|
|
3869
|
-
k.setStatus("");
|
|
3870
|
-
}, 1);
|
|
3871
|
-
a();
|
|
3872
|
-
}, 1))
|
|
3873
|
-
: a());
|
|
3874
|
-
}
|
|
3875
|
-
}
|
|
3876
|
-
if (k.preInit)
|
|
3877
|
-
for (
|
|
3878
|
-
"function" == typeof k.preInit && (k.preInit = [k.preInit]);
|
|
3879
|
-
0 < k.preInit.length;
|
|
19
|
+
var k=moduleArg,aa,ba;k.ready=new Promise((a,b)=>{aa=a;ba=b});k.xb||(k.xb=0);k.xb++;
|
|
20
|
+
k.ENVIRONMENT_IS_PTHREAD||k.$ww||function(a){function b(l,n,q){var p=new XMLHttpRequest;p.open("GET",l,!0);p.responseType="arraybuffer";p.onprogress=function(t){var h=n;t.total&&(h=t.total);if(t.loaded){p.ac?k.Wa[l].loaded=t.loaded:(p.ac=!0,k.Wa||(k.Wa={}),k.Wa[l]={loaded:t.loaded,total:h});var r=h=t=0,v;for(v in k.Wa){var A=k.Wa[v];t+=A.total;h+=A.loaded;r++}t=Math.ceil(t*k.xb/r);k.setStatus&&k.setStatus(`Downloading data... (${h}/${t})`)}else!k.Wa&&k.setStatus&&k.setStatus("Downloading data...")};
|
|
21
|
+
p.onerror=function(){throw Error("NetworkError for: "+l);};p.onload=function(){if(200==p.status||304==p.status||206==p.status||0==p.status&&p.response)q(p.response);else throw Error(p.statusText+" : "+p.responseURL);};p.send(null)}function c(l){console.error("package error:",l)}function d(){function l(t,h,r){this.start=t;this.end=h;this.audio=r}function n(t){if(!t)throw"Loading data file failed."+Error().stack;if(t.constructor.name!==ArrayBuffer.name)throw"bad input to processPackageData"+Error().stack;
|
|
22
|
+
t=new Uint8Array(t);l.prototype.ec=t;t=a.files;for(var h=0;h<t.length;++h)l.prototype.Fb[t[h].filename].onload();k.removeRunDependency("datafile_/Users/ivan/Dev/imagecapture-browser/packages/capture-wasm/dist/basic/capture-wasm.data")}k.FS_createPath("/","microblink",!0,!0);k.FS_createPath("/microblink","capture",!0,!0);l.prototype={Fb:{},open:function(t,h){this.name=h;this.Fb[h]=this;k.addRunDependency(`fp ${this.name}`)},send:function(){},onload:function(){this.finish(this.ec.subarray(this.start,
|
|
23
|
+
this.end))},finish:function(t){k.FS_createDataFile(this.name,null,t,!0,!0,!0);k.removeRunDependency(`fp ${this.name}`);this.Fb[this.name]=null}};for(var q=a.files,p=0;p<q.length;++p)(new l(q[p].start,q[p].end,q[p].audio||0)).open("GET",q[p].filename);k.addRunDependency("datafile_/Users/ivan/Dev/imagecapture-browser/packages/capture-wasm/dist/basic/capture-wasm.data");k.Sb||(k.Sb={});k.Sb["/Users/ivan/Dev/imagecapture-browser/packages/capture-wasm/dist/basic/capture-wasm.data"]={Oc:!1};m?(n(m),m=null):
|
|
24
|
+
g=n}"object"===typeof window?window.encodeURIComponent(window.location.pathname.toString().substring(0,window.location.pathname.toString().lastIndexOf("/"))+"/"):"undefined"===typeof process&&"undefined"!==typeof location&&encodeURIComponent(location.pathname.toString().substring(0,location.pathname.toString().lastIndexOf("/"))+"/");"function"!==typeof k.locateFilePackage||k.locateFile||(k.locateFile=k.locateFilePackage,u("warning: you defined Module.locateFilePackage, that has been renamed to Module.locateFile (using your locateFilePackage for now)"));
|
|
25
|
+
var e=k.locateFile?k.locateFile("capture-wasm.data",""):"capture-wasm.data",f=a.remote_package_size,g=null,m=k.getPreloadedPackage?k.getPreloadedPackage(e,f):null;m||b(e,f,function(l){g?(g(l),g=null):m=l},c);k.calledRun?d():(k.preRun||(k.preRun=[]),k.preRun.push(d))}({files:[{filename:"/microblink/capture/Model_021c530a7efe77c0e90c4bfe19c3bebaaceee433103e4e6d4f1424d921885982.strop",start:0,end:308674},{filename:"/microblink/capture/Model_07c7ab860e77ec2e92bb822f6d62424b8595a5beb4340f6b2f7f6a4cffa5d050.strop",
|
|
26
|
+
start:308674,end:429092},{filename:"/microblink/capture/Model_2880751121560047e6dc571bc8ff4683aeb863886f7c0789234594ceb1e23577.strop",start:429092,end:433030},{filename:"/microblink/capture/Model_3b11c3ffacbbf390b932fb9a7024f1a0016f66281ea8c790f8b5903374ad89c2.strop",start:433030,end:721810},{filename:"/microblink/capture/Model_e4f1f62f68ec44b71ecad3fb3f3b48fe3790beb5ab325611e17d63af06e9f644.strop",start:721810,end:778324},{filename:"/microblink/capture/Model_ed586fd6ca47c8eebb513c4ffaaacc2c54e92162b145062d7022519fba0911de.strop",
|
|
27
|
+
start:778324,end:1491556},{filename:"/microblink/capture/Model_f2874f5766b779c063dbe30467979163497dc4b29c43bab23d70c798ee32993a.strop",start:1491556,end:1573062}],remote_package_size:1573062});k.onAbort=function(a){u("Aborted with message: "+a);try{throw new WebAssembly.RuntimeError(a);}catch(b){u("Stacktrace: "+b.stack)}};
|
|
28
|
+
if("object"==typeof window){k.arguments=window.location.search.substr(1).trim().split("&");for(let a=0;a<k.arguments.length;++a)k.arguments[a]=decodeURI(k.arguments[a]);k.arguments[0]||(k.arguments=[])}var ca=Object.assign({},k),da="./this.program",ea=(a,b)=>{throw b;},fa="",ha,ia,ka;fa=self.location.href;_scriptDir&&(fa=_scriptDir);fa=fa.startsWith("blob:")?"":fa.substr(0,fa.replace(/[?#].*/,"").lastIndexOf("/")+1);ha=a=>{var b=new XMLHttpRequest;b.open("GET",a,!1);b.send(null);return b.responseText};
|
|
29
|
+
ka=a=>{var b=new XMLHttpRequest;b.open("GET",a,!1);b.responseType="arraybuffer";b.send(null);return new Uint8Array(b.response)};ia=(a,b,c)=>{var d=new XMLHttpRequest;d.open("GET",a,!0);d.responseType="arraybuffer";d.onload=()=>{200==d.status||0==d.status&&d.response?b(d.response):c()};d.onerror=c;d.send(null)};var la=k.print||console.log.bind(console),u=k.printErr||console.error.bind(console);Object.assign(k,ca);ca=null;k.thisProgram&&(da=k.thisProgram);k.quit&&(ea=k.quit);var ma;
|
|
30
|
+
k.wasmBinary&&(ma=k.wasmBinary);"object"!=typeof WebAssembly&&na("no native wasm support detected");var oa,pa=!1,qa,w,x,ra,z,B,C,sa,ta;function ua(){var a=oa.buffer;k.HEAP8=w=new Int8Array(a);k.HEAP16=ra=new Int16Array(a);k.HEAPU8=x=new Uint8Array(a);k.HEAPU16=z=new Uint16Array(a);k.HEAP32=B=new Int32Array(a);k.HEAPU32=C=new Uint32Array(a);k.HEAPF32=sa=new Float32Array(a);k.HEAPF64=ta=new Float64Array(a)}var va=[],wa=[],xa=[],ya=[],za=!1;function Aa(){var a=k.preRun.shift();va.unshift(a)}
|
|
31
|
+
var Ba=0,Ca=null,Da=null;function Ea(){Ba++;k.monitorRunDependencies?.(Ba)}function Fa(){Ba--;k.monitorRunDependencies?.(Ba);if(0==Ba&&(null!==Ca&&(clearInterval(Ca),Ca=null),Da)){var a=Da;Da=null;a()}}function na(a){k.onAbort?.(a);a="Aborted("+a+")";u(a);pa=!0;qa=1;a=new WebAssembly.RuntimeError(a+". Build with -sASSERTIONS for more info.");ba(a);throw a;}var Ga=a=>a.startsWith("data:application/octet-stream;base64,"),Ha;Ha="capture-wasm.wasm";
|
|
32
|
+
if(!Ga(Ha)){var Ia=Ha;Ha=k.locateFile?k.locateFile(Ia,fa):fa+Ia}function Ja(a){if(a==Ha&&ma)return new Uint8Array(ma);if(ka)return ka(a);throw"both async and sync fetching of the wasm failed";}function Ka(a){return ma||"function"!=typeof fetch?Promise.resolve().then(()=>Ja(a)):fetch(a,{credentials:"same-origin"}).then(b=>{if(!b.ok)throw`failed to load wasm binary file at '${a}'`;return b.arrayBuffer()}).catch(()=>Ja(a))}
|
|
33
|
+
function La(a,b,c){return Ka(a).then(d=>WebAssembly.instantiate(d,b)).then(d=>d).then(c,d=>{u(`failed to asynchronously prepare wasm: ${d}`);na(d)})}function Ma(a,b){var c=Ha;return ma||"function"!=typeof WebAssembly.instantiateStreaming||Ga(c)||"function"!=typeof fetch?La(c,a,b):fetch(c,{credentials:"same-origin"}).then(d=>WebAssembly.instantiateStreaming(d,a).then(b,function(e){u(`wasm streaming compile failed: ${e}`);u("falling back to ArrayBuffer instantiation");return La(c,a,b)}))}
|
|
34
|
+
var E,F,Na={59692:(a,b,c,d)=>{a=a?I(x,a):"";b=b?I(x,b):"";c=c?I(x,c):"";d=d?I(x,d):"";throw Error(a+b+c+d);},59908:(a,b)=>{a=a?I(x,a):"";b=b?I(x,b):"";throw Error(a+b);}};function Oa(a){this.name="ExitStatus";this.message=`Program terminated with exit(${a})`;this.status=a}
|
|
35
|
+
var Qa=a=>{for(;0<a.length;)a.shift()(k)},Ra=k.noExitRuntime||!1,Sa=(a,b)=>{for(var c=0,d=a.length-1;0<=d;d--){var e=a[d];"."===e?a.splice(d,1):".."===e?(a.splice(d,1),c++):c&&(a.splice(d,1),c--)}if(b)for(;c;c--)a.unshift("..");return a},Ta=a=>{var b="/"===a.charAt(0),c="/"===a.substr(-1);(a=Sa(a.split("/").filter(d=>!!d),!b).join("/"))||b||(a=".");a&&c&&(a+="/");return(b?"/":"")+a},Ua=a=>{var b=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(a).slice(1);a=b[0];b=b[1];if(!a&&
|
|
36
|
+
!b)return".";b&&=b.substr(0,b.length-1);return a+b},Va=a=>{if("/"===a)return"/";a=Ta(a);a=a.replace(/\/$/,"");var b=a.lastIndexOf("/");return-1===b?a:a.substr(b+1)},Wa=()=>{if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues)return a=>crypto.getRandomValues(a);na("initRandomDevice")},Xa=a=>(Xa=Wa())(a);
|
|
37
|
+
function Ya(){for(var a="",b=!1,c=arguments.length-1;-1<=c&&!b;c--){b=0<=c?arguments[c]:"/";if("string"!=typeof b)throw new TypeError("Arguments to path.resolve must be strings");if(!b)return"";a=b+"/"+a;b="/"===b.charAt(0)}a=Sa(a.split("/").filter(d=>!!d),!b).join("/");return(b?"/":"")+a||"."}
|
|
38
|
+
var Za="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,I=(a,b,c)=>{var d=b+c;for(c=b;a[c]&&!(c>=d);)++c;if(16<c-b&&a.buffer&&Za)return Za.decode(a.subarray(b,c));for(d="";b<c;){var e=a[b++];if(e&128){var f=a[b++]&63;if(192==(e&224))d+=String.fromCharCode((e&31)<<6|f);else{var g=a[b++]&63;e=224==(e&240)?(e&15)<<12|f<<6|g:(e&7)<<18|f<<12|g<<6|a[b++]&63;65536>e?d+=String.fromCharCode(e):(e-=65536,d+=String.fromCharCode(55296|e>>10,56320|e&1023))}}else d+=String.fromCharCode(e)}return d},
|
|
39
|
+
$a=[],ab=a=>{for(var b=0,c=0;c<a.length;++c){var d=a.charCodeAt(c);127>=d?b++:2047>=d?b+=2:55296<=d&&57343>=d?(b+=4,++c):b+=3}return b},K=(a,b,c,d)=>{if(!(0<d))return 0;var e=c;d=c+d-1;for(var f=0;f<a.length;++f){var g=a.charCodeAt(f);if(55296<=g&&57343>=g){var m=a.charCodeAt(++f);g=65536+((g&1023)<<10)|m&1023}if(127>=g){if(c>=d)break;b[c++]=g}else{if(2047>=g){if(c+1>=d)break;b[c++]=192|g>>6}else{if(65535>=g){if(c+2>=d)break;b[c++]=224|g>>12}else{if(c+3>=d)break;b[c++]=240|g>>18;b[c++]=128|g>>12&
|
|
40
|
+
63}b[c++]=128|g>>6&63}b[c++]=128|g&63}}b[c]=0;return c-e};function bb(a,b){var c=Array(ab(a)+1);a=K(a,c,0,c.length);b&&(c.length=a);return c}var cb=[];function db(a,b){cb[a]={input:[],Da:[],$a:b};eb(a,fb)}
|
|
41
|
+
var fb={open(a){var b=cb[a.node.gb];if(!b)throw new L(43);a.Ja=b;a.seekable=!1},close(a){a.Ja.$a.mb(a.Ja)},mb(a){a.Ja.$a.mb(a.Ja)},read(a,b,c,d){if(!a.Ja||!a.Ja.$a.Ob)throw new L(60);for(var e=0,f=0;f<d;f++){try{var g=a.Ja.$a.Ob(a.Ja)}catch(m){throw new L(29);}if(void 0===g&&0===e)throw new L(6);if(null===g||void 0===g)break;e++;b[c+f]=g}e&&(a.node.timestamp=Date.now());return e},write(a,b,c,d){if(!a.Ja||!a.Ja.$a.Cb)throw new L(60);try{for(var e=0;e<d;e++)a.Ja.$a.Cb(a.Ja,b[c+e])}catch(f){throw new L(29);
|
|
42
|
+
}d&&(a.node.timestamp=Date.now());return e}},gb={Ob(){a:{if(!$a.length){var a=null;"undefined"!=typeof window&&"function"==typeof window.prompt?(a=window.prompt("Input: "),null!==a&&(a+="\n")):"function"==typeof readline&&(a=readline(),null!==a&&(a+="\n"));if(!a){a=null;break a}$a=bb(a,!0)}a=$a.shift()}return a},Cb(a,b){null===b||10===b?(la(I(a.Da,0)),a.Da=[]):0!=b&&a.Da.push(b)},mb(a){a.Da&&0<a.Da.length&&(la(I(a.Da,0)),a.Da=[])},Rc(){return{Lc:25856,Nc:5,Kc:191,Mc:35387,Jc:[3,28,127,21,4,0,1,0,
|
|
43
|
+
17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}},Sc(){return 0},Tc(){return[24,80]}},hb={Cb(a,b){null===b||10===b?(u(I(a.Da,0)),a.Da=[]):0!=b&&a.Da.push(b)},mb(a){a.Da&&0<a.Da.length&&(u(I(a.Da,0)),a.Da=[])}},jb=a=>{a=65536*Math.ceil(a/65536);var b=ib(65536,a);b?(x.fill(0,b,b+a),a=b):a=0;return a};function kb(a,b){var c=a.va?a.va.length:0;c>=b||(b=Math.max(b,c*(1048576>c?2:1.125)>>>0),0!=c&&(b=Math.max(b,256)),c=a.va,a.va=new Uint8Array(b),0<a.Aa&&a.va.set(c.subarray(0,a.Aa),0))}
|
|
44
|
+
var M={Na:null,Qa(){return M.createNode(null,"/",16895,0)},createNode(a,b,c,d){if(24576===(c&61440)||4096===(c&61440))throw new L(63);M.Na||(M.Na={dir:{node:{Ma:M.wa.Ma,Ha:M.wa.Ha,bb:M.wa.bb,qb:M.wa.qb,Wb:M.wa.Wb,wb:M.wa.wb,Yb:M.wa.Yb,Ub:M.wa.Ub,tb:M.wa.tb},stream:{Ta:M.xa.Ta}},file:{node:{Ma:M.wa.Ma,Ha:M.wa.Ha},stream:{Ta:M.xa.Ta,read:M.xa.read,write:M.xa.write,ab:M.xa.ab,cb:M.xa.cb,rb:M.xa.rb}},link:{node:{Ma:M.wa.Ma,Ha:M.wa.Ha,hb:M.wa.hb},stream:{}},Jb:{node:{Ma:M.wa.Ma,Ha:M.wa.Ha},stream:lb}});
|
|
45
|
+
c=mb(a,b,c,d);O(c.mode)?(c.wa=M.Na.dir.node,c.xa=M.Na.dir.stream,c.va={}):32768===(c.mode&61440)?(c.wa=M.Na.file.node,c.xa=M.Na.file.stream,c.Aa=0,c.va=null):40960===(c.mode&61440)?(c.wa=M.Na.link.node,c.xa=M.Na.link.stream):8192===(c.mode&61440)&&(c.wa=M.Na.Jb.node,c.xa=M.Na.Jb.stream);c.timestamp=Date.now();a&&(a.va[b]=c,a.timestamp=c.timestamp);return c},Pc(a){return a.va?a.va.subarray?a.va.subarray(0,a.Aa):new Uint8Array(a.va):new Uint8Array(0)},wa:{Ma(a){var b={};b.ic=8192===(a.mode&61440)?a.id:
|
|
46
|
+
1;b.Pb=a.id;b.mode=a.mode;b.vc=1;b.uid=0;b.pc=0;b.gb=a.gb;b.size=O(a.mode)?4096:32768===(a.mode&61440)?a.Aa:40960===(a.mode&61440)?a.link.length:0;b.bc=new Date(a.timestamp);b.uc=new Date(a.timestamp);b.hc=new Date(a.timestamp);b.cc=4096;b.dc=Math.ceil(b.size/b.cc);return b},Ha(a,b){void 0!==b.mode&&(a.mode=b.mode);void 0!==b.timestamp&&(a.timestamp=b.timestamp);if(void 0!==b.size&&(b=b.size,a.Aa!=b))if(0==b)a.va=null,a.Aa=0;else{var c=a.va;a.va=new Uint8Array(b);c&&a.va.set(c.subarray(0,Math.min(b,
|
|
47
|
+
a.Aa)));a.Aa=b}},bb(){throw nb[44];},qb(a,b,c,d){return M.createNode(a,b,c,d)},Wb(a,b,c){if(O(a.mode)){try{var d=ob(b,c)}catch(f){}if(d)for(var e in d.va)throw new L(55);}delete a.parent.va[a.name];a.parent.timestamp=Date.now();a.name=c;b.va[c]=a;b.timestamp=a.parent.timestamp;a.parent=b},wb(a,b){delete a.va[b];a.timestamp=Date.now()},Yb(a,b){var c=ob(a,b),d;for(d in c.va)throw new L(55);delete a.va[b];a.timestamp=Date.now()},Ub(a){var b=[".",".."],c;for(c of Object.keys(a.va))b.push(c);return b},
|
|
48
|
+
tb(a,b,c){a=M.createNode(a,b,41471,0);a.link=c;return a},hb(a){if(40960!==(a.mode&61440))throw new L(28);return a.link}},xa:{read(a,b,c,d,e){var f=a.node.va;if(e>=a.node.Aa)return 0;a=Math.min(a.node.Aa-e,d);if(8<a&&f.subarray)b.set(f.subarray(e,e+a),c);else for(d=0;d<a;d++)b[c+d]=f[e+d];return a},write(a,b,c,d,e,f){b.buffer===w.buffer&&(f=!1);if(!d)return 0;a=a.node;a.timestamp=Date.now();if(b.subarray&&(!a.va||a.va.subarray)){if(f)return a.va=b.subarray(c,c+d),a.Aa=d;if(0===a.Aa&&0===e)return a.va=
|
|
49
|
+
b.slice(c,c+d),a.Aa=d;if(e+d<=a.Aa)return a.va.set(b.subarray(c,c+d),e),d}kb(a,e+d);if(a.va.subarray&&b.subarray)a.va.set(b.subarray(c,c+d),e);else for(f=0;f<d;f++)a.va[e+f]=b[c+f];a.Aa=Math.max(a.Aa,e+d);return d},Ta(a,b,c){1===c?b+=a.position:2===c&&32768===(a.node.mode&61440)&&(b+=a.node.Aa);if(0>b)throw new L(28);return b},ab(a,b,c){kb(a.node,b+c);a.node.Aa=Math.max(a.node.Aa,b+c)},cb(a,b,c,d,e){if(32768!==(a.node.mode&61440))throw new L(43);a=a.node.va;if(e&2||a.buffer!==w.buffer){if(0<c||c+
|
|
50
|
+
b<a.length)a=a.subarray?a.subarray(c,c+b):Array.prototype.slice.call(a,c,c+b);c=!0;b=jb(b);if(!b)throw new L(48);w.set(a,b)}else c=!1,b=a.byteOffset;return{za:b,Fa:c}},rb(a,b,c,d){M.xa.write(a,b,0,d,c,!1);return 0}}},pb=(a,b,c)=>{var d=`al ${a}`;ia(a,e=>{b(new Uint8Array(e));d&&Fa(d)},()=>{if(c)c();else throw`Loading data file "${a}" failed.`;});d&&Ea(d)},qb=k.preloadPlugins||[],rb=(a,b,c,d)=>{"undefined"!=typeof Browser&&Browser.Qc();var e=!1;qb.forEach(f=>{!e&&f.canHandle(b)&&(f.handle(a,b,c,d),
|
|
51
|
+
e=!0)});return e},tb=(a,b,c,d,e,f,g,m,l,n)=>{function q(h){function r(v){n?.();m||sb(a,b,v,d,e,l);f?.();Fa(t)}rb(h,p,r,()=>{g?.();Fa(t)})||r(h)}var p=b?Ya(Ta(a+"/"+b)):a,t=`cp ${p}`;Ea(t);"string"==typeof c?pb(c,q,g):q(c)},ub=(a,b)=>{var c=0;a&&(c|=365);b&&(c|=146);return c},vb=null,wb={},xb=[],yb=1,zb=null,Ab=!0,L=class{constructor(a){this.name="ErrnoError";this.Ka=a}},nb={};
|
|
52
|
+
function P(a,b={}){a=Ya(a);if(!a)return{path:"",node:null};b=Object.assign({Nb:!0,Eb:0},b);if(8<b.Eb)throw new L(32);a=a.split("/").filter(g=>!!g);for(var c=vb,d="/",e=0;e<a.length;e++){var f=e===a.length-1;if(f&&b.parent)break;c=ob(c,a[e]);d=Ta(d+"/"+a[e]);c.eb&&(!f||f&&b.Nb)&&(c=c.eb.root);if(!f||b.lb)for(f=0;40960===(c.mode&61440);)if(c=Bb(d),d=Ya(Ua(d),c),c=P(d,{Eb:b.Eb+1}).node,40<f++)throw new L(32);}return{path:d,node:c}}
|
|
53
|
+
function Cb(a){for(var b;;){if(a===a.parent)return a=a.Qa.Rb,b?"/"!==a[a.length-1]?`${a}/${b}`:a+b:a;b=b?`${a.name}/${b}`:a.name;a=a.parent}}function Db(a,b){for(var c=0,d=0;d<b.length;d++)c=(c<<5)-c+b.charCodeAt(d)|0;return(a+c>>>0)%zb.length}function ob(a,b){var c=O(a.mode)?(c=Eb(a,"x"))?c:a.wa.bb?0:2:54;if(c)throw new L(c);for(c=zb[Db(a.id,b)];c;c=c.Za){var d=c.name;if(c.parent.id===a.id&&d===b)return c}return a.wa.bb(a,b)}
|
|
54
|
+
function mb(a,b,c,d){a=new Fb(a,b,c,d);b=Db(a.parent.id,a.name);a.Za=zb[b];return zb[b]=a}function O(a){return 16384===(a&61440)}function Gb(a){var b=["r","w","rw"][a&3];a&512&&(b+="w");return b}function Eb(a,b){if(Ab)return 0;if(!b.includes("r")||a.mode&292){if(b.includes("w")&&!(a.mode&146)||b.includes("x")&&!(a.mode&73))return 2}else return 2;return 0}function Hb(a,b){try{return ob(a,b),20}catch(c){}return Eb(a,"wx")}function Ib(){for(var a=0;4096>=a;a++)if(!xb[a])return a;throw new L(33);}
|
|
55
|
+
function Jb(a){a=xb[a];if(!a)throw new L(8);return a}function Kb(a){var b=-1;Lb||(Lb=function(){this.sb={}},Lb.prototype={},Object.defineProperties(Lb.prototype,{object:{get(){return this.node},set(c){this.node=c}},flags:{get(){return this.sb.flags},set(c){this.sb.flags=c}},position:{get(){return this.sb.position},set(c){this.sb.position=c}}}));a=Object.assign(new Lb,a);-1==b&&(b=Ib());a.Sa=b;return xb[b]=a}var lb={open(a){a.xa=wb[a.node.gb].xa;a.xa.open?.(a)},Ta(){throw new L(70);}};
|
|
56
|
+
function eb(a,b){wb[a]={xa:b}}function Mb(a,b){var c="/"===b;if(c&&vb)throw new L(10);if(!c&&b){var d=P(b,{Nb:!1});b=d.path;d=d.node;if(d.eb)throw new L(10);if(!O(d.mode))throw new L(54);}b={type:a,Wc:{},Rb:b,tc:[]};a=a.Qa(b);a.Qa=b;b.root=a;c?vb=a:d&&(d.eb=b,d.Qa&&d.Qa.tc.push(b))}function Nb(a,b,c){var d=P(a,{parent:!0}).node;a=Va(a);if(!a||"."===a||".."===a)throw new L(28);var e=Hb(d,a);if(e)throw new L(e);if(!d.wa.qb)throw new L(63);return d.wa.qb(d,a,b,c)}function Q(a){return Nb(a,16895,0)}
|
|
57
|
+
function Ob(a,b,c){"undefined"==typeof c&&(c=b,b=438);return Nb(a,b|8192,c)}function Pb(a,b){if(!Ya(a))throw new L(44);var c=P(b,{parent:!0}).node;if(!c)throw new L(44);b=Va(b);var d=Hb(c,b);if(d)throw new L(d);if(!c.wa.tb)throw new L(63);c.wa.tb(c,b,a)}
|
|
58
|
+
function Qb(a){var b=P(a,{parent:!0}).node;if(!b)throw new L(44);var c=Va(a);a=ob(b,c);a:{try{var d=ob(b,c)}catch(f){d=f.Ka;break a}var e=Eb(b,"wx");d=e?e:O(d.mode)?31:0}if(d)throw new L(d);if(!b.wa.wb)throw new L(63);if(a.eb)throw new L(10);b.wa.wb(b,c);b=Db(a.parent.id,a.name);if(zb[b]===a)zb[b]=a.Za;else for(b=zb[b];b;){if(b.Za===a){b.Za=a.Za;break}b=b.Za}}function Bb(a){a=P(a).node;if(!a)throw new L(44);if(!a.wa.hb)throw new L(28);return Ya(Cb(a.parent),a.wa.hb(a))}
|
|
59
|
+
function Rb(a,b){a=P(a,{lb:!b}).node;if(!a)throw new L(44);if(!a.wa.Ma)throw new L(63);return a.wa.Ma(a)}function Sb(a){return Rb(a,!0)}function Tb(a,b){a="string"==typeof a?P(a,{lb:!0}).node:a;if(!a.wa.Ha)throw new L(63);a.wa.Ha(a,{mode:b&4095|a.mode&-4096,timestamp:Date.now()})}
|
|
60
|
+
function Ub(a,b,c){if(""===a)throw new L(44);if("string"==typeof b){var d={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[b];if("undefined"==typeof d)throw Error(`Unknown file open mode: ${b}`);b=d}c=b&64?("undefined"==typeof c?438:c)&4095|32768:0;if("object"==typeof a)var e=a;else{a=Ta(a);try{e=P(a,{lb:!(b&131072)}).node}catch(f){}}d=!1;if(b&64)if(e){if(b&128)throw new L(20);}else e=Nb(a,c,0),d=!0;if(!e)throw new L(44);8192===(e.mode&61440)&&(b&=-513);if(b&65536&&!O(e.mode))throw new L(54);if(!d&&(c=
|
|
61
|
+
e?40960===(e.mode&61440)?32:O(e.mode)&&("r"!==Gb(b)||b&512)?31:Eb(e,Gb(b)):44))throw new L(c);if(b&512&&!d){c=e;c="string"==typeof c?P(c,{lb:!0}).node:c;if(!c.wa.Ha)throw new L(63);if(O(c.mode))throw new L(31);if(32768!==(c.mode&61440))throw new L(28);if(d=Eb(c,"w"))throw new L(d);c.wa.Ha(c,{size:0,timestamp:Date.now()})}b&=-131713;e=Kb({node:e,path:Cb(e),flags:b,seekable:!0,position:0,xa:e.xa,Ic:[],error:!1});e.xa.open&&e.xa.open(e);!k.logReadFiles||b&1||(Vb||={},a in Vb||(Vb[a]=1));return e}
|
|
62
|
+
function Wb(a){if(null===a.Sa)throw new L(8);a.zb&&(a.zb=null);try{a.xa.close&&a.xa.close(a)}catch(b){throw b;}finally{xb[a.Sa]=null}a.Sa=null}function Xb(a,b,c){if(null===a.Sa)throw new L(8);if(!a.seekable||!a.xa.Ta)throw new L(70);if(0!=c&&1!=c&&2!=c)throw new L(28);a.position=a.xa.Ta(a,b,c);a.Ic=[]}
|
|
63
|
+
function Yb(a,b,c,d,e,f){if(0>d||0>e)throw new L(28);if(null===a.Sa)throw new L(8);if(0===(a.flags&2097155))throw new L(8);if(O(a.node.mode))throw new L(31);if(!a.xa.write)throw new L(28);a.seekable&&a.flags&1024&&Xb(a,0,2);var g="undefined"!=typeof e;if(!g)e=a.position;else if(!a.seekable)throw new L(70);b=a.xa.write(a,b,c,d,e,f);g||(a.position+=b);return b}var Zb;
|
|
64
|
+
function $b(a,b){a="string"==typeof a?a:Cb(a);for(b=b.split("/").reverse();b.length;){var c=b.pop();if(c){var d=Ta(a+"/"+c);try{Q(d)}catch(e){}a=d}}return d}function ac(a,b,c,d){a=Ta(("string"==typeof a?a:Cb(a))+"/"+b);c=ub(c,d);return Nb(a,(void 0!==c?c:438)&4095|32768,0)}
|
|
65
|
+
function sb(a,b,c,d,e,f){var g=b;a&&(a="string"==typeof a?a:Cb(a),g=b?Ta(a+"/"+b):a);a=ub(d,e);g=Nb(g,(void 0!==a?a:438)&4095|32768,0);if(c){if("string"==typeof c){b=Array(c.length);d=0;for(e=c.length;d<e;++d)b[d]=c.charCodeAt(d);c=b}Tb(g,a|146);b=Ub(g,577);Yb(b,c,0,c.length,0,f);Wb(b);Tb(g,a)}}
|
|
66
|
+
function R(a,b,c,d){a=Ta(("string"==typeof a?a:Cb(a))+"/"+b);b=ub(!!c,!!d);R.Qb||(R.Qb=64);var e=R.Qb++<<8|0;eb(e,{open(f){f.seekable=!1},close(){d?.buffer?.length&&d(10)},read(f,g,m,l){for(var n=0,q=0;q<l;q++){try{var p=c()}catch(t){throw new L(29);}if(void 0===p&&0===n)throw new L(6);if(null===p||void 0===p)break;n++;g[m+q]=p}n&&(f.node.timestamp=Date.now());return n},write(f,g,m,l){for(var n=0;n<l;n++)try{d(g[m+n])}catch(q){throw new L(29);}l&&(f.node.timestamp=Date.now());return n}});return Ob(a,
|
|
67
|
+
b,e)}function bc(a){if(!(a.rc||a.sc||a.link||a.va)){if("undefined"!=typeof XMLHttpRequest)throw Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.");if(ha)try{a.va=bb(ha(a.url),!0),a.Aa=a.va.length}catch(b){throw new L(29);}else throw Error("Cannot load without read() or XMLHttpRequest.");}}
|
|
68
|
+
function cc(a,b,c,d,e){function f(){this.Bb=!1;this.kb=[]}function g(p,t,h,r,v){p=p.node.va;if(v>=p.length)return 0;r=Math.min(p.length-v,r);if(p.slice)for(var A=0;A<r;A++)t[h+A]=p[v+A];else for(A=0;A<r;A++)t[h+A]=p.get(v+A);return r}f.prototype.get=function(p){if(!(p>this.length-1||0>p)){var t=p%this.Kb;return this.nb(p/this.Kb|0)[t]}};f.prototype.zc=function(p){this.nb=p};f.prototype.Ib=function(){var p=new XMLHttpRequest;p.open("HEAD",c,!1);p.send(null);if(!(200<=p.status&&300>p.status||304===
|
|
69
|
+
p.status))throw Error("Couldn't load "+c+". Status: "+p.status);var t=Number(p.getResponseHeader("Content-length")),h,r=(h=p.getResponseHeader("Accept-Ranges"))&&"bytes"===h;p=(h=p.getResponseHeader("Content-Encoding"))&&"gzip"===h;var v=1048576;r||(v=t);var A=this;A.zc(J=>{var H=J*v,y=(J+1)*v-1;y=Math.min(y,t-1);if("undefined"==typeof A.kb[J]){var N=A.kb;if(H>y)throw Error("invalid range ("+H+", "+y+") or no bytes requested!");if(y>t-1)throw Error("only "+t+" bytes available! programmer error!");
|
|
70
|
+
var D=new XMLHttpRequest;D.open("GET",c,!1);t!==v&&D.setRequestHeader("Range","bytes="+H+"-"+y);D.responseType="arraybuffer";D.overrideMimeType&&D.overrideMimeType("text/plain; charset=x-user-defined");D.send(null);if(!(200<=D.status&&300>D.status||304===D.status))throw Error("Couldn't load "+c+". Status: "+D.status);H=void 0!==D.response?new Uint8Array(D.response||[]):bb(D.responseText||"",!0);N[J]=H}if("undefined"==typeof A.kb[J])throw Error("doXHR failed!");return A.kb[J]});if(p||!t)v=t=1,v=t=
|
|
71
|
+
this.nb(0).length,la("LazyFiles on gzip forces download of the whole file when length is accessed");this.$b=t;this.Zb=v;this.Bb=!0};if("undefined"!=typeof XMLHttpRequest){var m=new f;Object.defineProperties(m,{length:{get:function(){this.Bb||this.Ib();return this.$b}},Kb:{get:function(){this.Bb||this.Ib();return this.Zb}}});var l=void 0}else l=c,m=void 0;var n=ac(a,b,d,e);m?n.va=m:l&&(n.va=null,n.url=l);Object.defineProperties(n,{Aa:{get:function(){return this.va.length}}});var q={};Object.keys(n.xa).forEach(p=>
|
|
72
|
+
{var t=n.xa[p];q[p]=function(){bc(n);return t.apply(null,arguments)}});q.read=(p,t,h,r,v)=>{bc(n);return g(p,t,h,r,v)};q.cb=(p,t,h)=>{bc(n);var r=jb(t);if(!r)throw new L(48);g(p,w,r,t,h);return{za:r,Fa:!0}};n.xa=q;return n}var S={},Lb,Vb,dc=a=>a?I(x,a):"";function ec(a,b,c){if("/"===b.charAt(0))return b;a=-100===a?"/":Jb(a).path;if(0==b.length){if(!c)throw new L(44);return a}return Ta(a+"/"+b)}
|
|
73
|
+
function fc(a,b,c){a=a(b);B[c>>2]=a.ic;B[c+4>>2]=a.mode;C[c+8>>2]=a.vc;B[c+12>>2]=a.uid;B[c+16>>2]=a.pc;B[c+20>>2]=a.gb;F=[a.size>>>0,(E=a.size,1<=+Math.abs(E)?0<E?+Math.floor(E/4294967296)>>>0:~~+Math.ceil((E-+(~~E>>>0))/4294967296)>>>0:0)];B[c+24>>2]=F[0];B[c+28>>2]=F[1];B[c+32>>2]=4096;B[c+36>>2]=a.dc;b=a.bc.getTime();var d=a.uc.getTime(),e=a.hc.getTime();F=[Math.floor(b/1E3)>>>0,(E=Math.floor(b/1E3),1<=+Math.abs(E)?0<E?+Math.floor(E/4294967296)>>>0:~~+Math.ceil((E-+(~~E>>>0))/4294967296)>>>0:
|
|
74
|
+
0)];B[c+40>>2]=F[0];B[c+44>>2]=F[1];C[c+48>>2]=b%1E3*1E3;F=[Math.floor(d/1E3)>>>0,(E=Math.floor(d/1E3),1<=+Math.abs(E)?0<E?+Math.floor(E/4294967296)>>>0:~~+Math.ceil((E-+(~~E>>>0))/4294967296)>>>0:0)];B[c+56>>2]=F[0];B[c+60>>2]=F[1];C[c+64>>2]=d%1E3*1E3;F=[Math.floor(e/1E3)>>>0,(E=Math.floor(e/1E3),1<=+Math.abs(E)?0<E?+Math.floor(E/4294967296)>>>0:~~+Math.ceil((E-+(~~E>>>0))/4294967296)>>>0:0)];B[c+72>>2]=F[0];B[c+76>>2]=F[1];C[c+80>>2]=e%1E3*1E3;F=[a.Pb>>>0,(E=a.Pb,1<=+Math.abs(E)?0<E?+Math.floor(E/
|
|
75
|
+
4294967296)>>>0:~~+Math.ceil((E-+(~~E>>>0))/4294967296)>>>0:0)];B[c+88>>2]=F[0];B[c+92>>2]=F[1];return 0}var gc=void 0,hc={},ic=a=>{for(;a.length;){var b=a.pop();a.pop()(b)}};function jc(a){return this.fromWireType(B[a>>2])}
|
|
76
|
+
var kc={},lc={},mc={},nc,pc=(a,b,c)=>{function d(m){m=c(m);if(m.length!==a.length)throw new nc("Mismatched type converter count");for(var l=0;l<a.length;++l)oc(a[l],m[l])}a.forEach(function(m){mc[m]=b});var e=Array(b.length),f=[],g=0;b.forEach((m,l)=>{lc.hasOwnProperty(m)?e[l]=lc[m]:(f.push(m),kc.hasOwnProperty(m)||(kc[m]=[]),kc[m].push(()=>{e[l]=lc[m];++g;g===f.length&&d(e)}))});0===f.length&&d(e)},qc,U=a=>{for(var b="";x[a];)b+=qc[x[a++]];return b},V;
|
|
77
|
+
function rc(a,b,c={}){var d=b.name;if(!a)throw new V(`type "${d}" must have a positive integer typeid pointer`);if(lc.hasOwnProperty(a)){if(c.qc)return;throw new V(`Cannot register type '${d}' twice`);}lc[a]=b;delete mc[a];kc.hasOwnProperty(a)&&(b=kc[a],delete kc[a],b.forEach(e=>e()))}function oc(a,b,c={}){if(!("argPackAdvance"in b))throw new TypeError("registerType registeredInstance requires argPackAdvance");return rc(a,b,c)}
|
|
78
|
+
var sc=a=>{throw new V(a.ua.Ba.ya.name+" instance already deleted");},tc=!1,uc=()=>{},vc=(a,b,c)=>{if(b===c)return a;if(void 0===c.Ga)return null;a=vc(a,b,c.Ga);return null===a?null:c.jc(a)},wc={},xc=[],yc=()=>{for(;xc.length;){var a=xc.pop();a.ua.Xa=!1;a["delete"]()}},zc,Ac={},Bc=(a,b)=>{if(void 0===b)throw new V("ptr should not be undefined");for(;a.Ga;)b=a.ib(b),a=a.Ga;return Ac[b]},Dc=(a,b)=>{if(!b.Ba||!b.za)throw new nc("makeClassHandle requires ptr and ptrType");if(!!b.Ia!==!!b.Ca)throw new nc("Both smartPtrType and smartPtr must be specified");
|
|
79
|
+
b.count={value:1};return Cc(Object.create(a,{ua:{value:b,writable:!0}}))},Cc=a=>{if("undefined"===typeof FinalizationRegistry)return Cc=b=>b,a;tc=new FinalizationRegistry(b=>{b=b.ua;--b.count.value;0===b.count.value&&(b.Ca?b.Ia.Oa(b.Ca):b.Ba.ya.Oa(b.za))});Cc=b=>{var c=b.ua;c.Ca&&tc.register(b,{ua:c},b);return b};uc=b=>{tc.unregister(b)};return Cc(a)};function Ec(){}
|
|
80
|
+
var Fc=(a,b)=>Object.defineProperty(b,"name",{value:a}),Gc=(a,b,c)=>{if(void 0===a[b].Ea){var d=a[b];a[b]=function(){if(!a[b].Ea.hasOwnProperty(arguments.length))throw new V(`Function '${c}' called with an invalid number of arguments (${arguments.length}) - expects one of (${a[b].Ea})!`);return a[b].Ea[arguments.length].apply(this,arguments)};a[b].Ea=[];a[b].Ea[d.jb]=d}},Hc=(a,b,c)=>{if(k.hasOwnProperty(a)){if(void 0===c||void 0!==k[a].Ea&&void 0!==k[a].Ea[c])throw new V(`Cannot register public name '${a}' twice`);
|
|
81
|
+
Gc(k,a,a);if(k.hasOwnProperty(c))throw new V(`Cannot register multiple overloads of a function with the same number of arguments (${c})!`);k[a].Ea[c]=b}else k[a]=b,void 0!==c&&(k[a].Vc=c)},Ic=a=>{if(void 0===a)return"_unknown";a=a.replace(/[^a-zA-Z0-9_]/g,"$");var b=a.charCodeAt(0);return 48<=b&&57>=b?`_${a}`:a};function Jc(a,b,c,d,e,f,g,m){this.name=a;this.constructor=b;this.Ya=c;this.Oa=d;this.Ga=e;this.lc=f;this.ib=g;this.jc=m;this.xc=[]}
|
|
82
|
+
var Kc=(a,b,c)=>{for(;b!==c;){if(!b.ib)throw new V(`Expected null or instance of ${c.name}, got an instance of ${b.name}`);a=b.ib(a);b=b.Ga}return a};function Lc(a,b){if(null===b){if(this.Ab)throw new V(`null is not a valid ${this.name}`);return 0}if(!b.ua)throw new V(`Cannot pass "${Mc(b)}" as a ${this.name}`);if(!b.ua.za)throw new V(`Cannot pass deleted object as a pointer of type ${this.name}`);return Kc(b.ua.za,b.ua.Ba.ya,this.ya)}
|
|
83
|
+
function Nc(a,b){if(null===b){if(this.Ab)throw new V(`null is not a valid ${this.name}`);if(this.pb){var c=this.Db();null!==a&&a.push(this.Oa,c);return c}return 0}if(!b||!b.ua)throw new V(`Cannot pass "${Mc(b)}" as a ${this.name}`);if(!b.ua.za)throw new V(`Cannot pass deleted object as a pointer of type ${this.name}`);if(!this.ob&&b.ua.Ba.ob)throw new V(`Cannot convert argument of type ${b.ua.Ia?b.ua.Ia.name:b.ua.Ba.name} to parameter type ${this.name}`);c=Kc(b.ua.za,b.ua.Ba.ya,this.ya);if(this.pb){if(void 0===
|
|
84
|
+
b.ua.Ca)throw new V("Passing raw pointer to smart pointer is illegal");switch(this.Dc){case 0:if(b.ua.Ia===this)c=b.ua.Ca;else throw new V(`Cannot convert argument of type ${b.ua.Ia?b.ua.Ia.name:b.ua.Ba.name} to parameter type ${this.name}`);break;case 1:c=b.ua.Ca;break;case 2:if(b.ua.Ia===this)c=b.ua.Ca;else{var d=b.clone();c=this.yc(c,Oc(()=>d["delete"]()));null!==a&&a.push(this.Oa,c)}break;default:throw new V("Unsupporting sharing policy");}}return c}
|
|
85
|
+
function Pc(a,b){if(null===b){if(this.Ab)throw new V(`null is not a valid ${this.name}`);return 0}if(!b.ua)throw new V(`Cannot pass "${Mc(b)}" as a ${this.name}`);if(!b.ua.za)throw new V(`Cannot pass deleted object as a pointer of type ${this.name}`);if(b.ua.Ba.ob)throw new V(`Cannot convert argument of type ${b.ua.Ba.name} to parameter type ${this.name}`);return Kc(b.ua.za,b.ua.Ba.ya,this.ya)}function Qc(a){return this.fromWireType(C[a>>2])}
|
|
86
|
+
function Rc(a,b,c,d,e,f,g,m,l,n,q){this.name=a;this.ya=b;this.Ab=c;this.ob=d;this.pb=e;this.wc=f;this.Dc=g;this.Tb=m;this.Db=l;this.yc=n;this.Oa=q;e||void 0!==b.Ga?this.toWireType=Nc:(this.toWireType=d?Lc:Pc,this.La=null)}
|
|
87
|
+
var Sc=(a,b,c)=>{if(!k.hasOwnProperty(a))throw new nc("Replacing nonexistant public symbol");void 0!==k[a].Ea&&void 0!==c?k[a].Ea[c]=b:(k[a]=b,k[a].jb=c)},Tc=[],Uc,Vc=a=>{var b=Tc[a];b||(a>=Tc.length&&(Tc.length=a+1),Tc[a]=b=Uc.get(a));return b},Wc=(a,b)=>{var c=[];return function(){c.length=0;Object.assign(c,arguments);if(a.includes("j")){var d=k["dynCall_"+a];d=c&&c.length?d.apply(null,[b].concat(c)):d.call(null,b)}else d=Vc(b).apply(null,c);return d}},W=(a,b)=>{a=U(a);var c=a.includes("j")?Wc(a,
|
|
88
|
+
b):Vc(b);if("function"!=typeof c)throw new V(`unknown function pointer with signature ${a}: ${b}`);return c},Xc,$c=a=>{a=Yc(a);var b=U(a);Zc(a);return b},ad=(a,b)=>{function c(f){e[f]||lc[f]||(mc[f]?mc[f].forEach(c):(d.push(f),e[f]=!0))}var d=[],e={};b.forEach(c);throw new Xc(`${a}: `+d.map($c).join([", "]));},bd=(a,b)=>{for(var c=[],d=0;d<a;d++)c.push(C[b+4*d>>2]);return c};function cd(a){for(var b=1;b<a.length;++b)if(null!==a[b]&&void 0===a[b].La)return!0;return!1}
|
|
89
|
+
function dd(a,b,c,d,e){var f=b.length;if(2>f)throw new V("argTypes array size mismatch! Must at least get return value and 'this' types!");var g=null!==b[1]&&null!==c,m=cd(b),l="void"!==b[0].name,n=f-2,q=Array(n),p=[],t=[];return Fc(a,function(){if(arguments.length!==n)throw new V(`function ${a} called with ${arguments.length} arguments, expected ${n}`);t.length=0;p.length=g?2:1;p[0]=e;if(g){var h=b[1].toWireType(t,this);p[1]=h}for(var r=0;r<n;++r)q[r]=b[r+2].toWireType(t,arguments[r]),p.push(q[r]);
|
|
90
|
+
r=d.apply(null,p);if(m)ic(t);else for(var v=g?1:2;v<b.length;v++){var A=1===v?h:q[v-2];null!==b[v].La&&b[v].La(A)}h=l?b[0].fromWireType(r):void 0;return h})}var ed=a=>{a=a.trim();const b=a.indexOf("(");return-1!==b?a.substr(0,b):a};class fd{constructor(){this.Fa=[void 0];this.yb=[]}get(a){return this.Fa[a]}has(a){return void 0!==this.Fa[a]}ab(a){var b=this.yb.pop()||this.Fa.length;this.Fa[b]=a;return b}}
|
|
91
|
+
var X=new fd,gd=a=>{a>=X.Xb&&0===--X.get(a).Vb&&(X.Fa[a]=void 0,X.yb.push(a))},hd=a=>{if(!a)throw new V("Cannot use deleted val. handle = "+a);return X.get(a).value},Oc=a=>{switch(a){case void 0:return 1;case null:return 2;case !0:return 3;case !1:return 4;default:return X.ab({Vb:1,value:a})}},jd={name:"emscripten::val",fromWireType:a=>{var b=hd(a);gd(a);return b},toWireType:(a,b)=>Oc(b),argPackAdvance:8,readValueFromPointer:jc,La:null},Mc=a=>{if(null===a)return"null";var b=typeof a;return"object"===
|
|
92
|
+
b||"array"===b||"function"===b?a.toString():""+a},kd=(a,b)=>{switch(b){case 4:return function(c){return this.fromWireType(sa[c>>2])};case 8:return function(c){return this.fromWireType(ta[c>>3])};default:throw new TypeError(`invalid float width (${b}): ${a}`);}},ld=(a,b,c)=>{switch(b){case 1:return c?d=>w[d>>0]:d=>x[d>>0];case 2:return c?d=>ra[d>>1]:d=>z[d>>1];case 4:return c?d=>B[d>>2]:d=>C[d>>2];default:throw new TypeError(`invalid integer width (${b}): ${a}`);}},md="undefined"!=typeof TextDecoder?
|
|
93
|
+
new TextDecoder("utf-16le"):void 0,nd=(a,b)=>{var c=a>>1;for(var d=c+b/2;!(c>=d)&&z[c];)++c;c<<=1;if(32<c-a&&md)return md.decode(x.subarray(a,c));c="";for(d=0;!(d>=b/2);++d){var e=ra[a+2*d>>1];if(0==e)break;c+=String.fromCharCode(e)}return c},od=(a,b,c)=>{c??=2147483647;if(2>c)return 0;c-=2;var d=b;c=c<2*a.length?c/2:a.length;for(var e=0;e<c;++e)ra[b>>1]=a.charCodeAt(e),b+=2;ra[b>>1]=0;return b-d},pd=a=>2*a.length,qd=(a,b)=>{for(var c=0,d="";!(c>=b/4);){var e=B[a+4*c>>2];if(0==e)break;++c;65536<=
|
|
94
|
+
e?(e-=65536,d+=String.fromCharCode(55296|e>>10,56320|e&1023)):d+=String.fromCharCode(e)}return d},rd=(a,b,c)=>{c??=2147483647;if(4>c)return 0;var d=b;c=d+c-4;for(var e=0;e<a.length;++e){var f=a.charCodeAt(e);if(55296<=f&&57343>=f){var g=a.charCodeAt(++e);f=65536+((f&1023)<<10)|g&1023}B[b>>2]=f;b+=4;if(b+4>c)break}B[b>>2]=0;return b-d},sd=a=>{for(var b=0,c=0;c<a.length;++c){var d=a.charCodeAt(c);55296<=d&&57343>=d&&++c;b+=4}return b},td=(a,b)=>{var c=lc[a];if(void 0===c)throw a=b+" has unknown type "+
|
|
95
|
+
$c(a),new V(a);return c},ud=(a,b,c)=>{var d=[];a=a.toWireType(d,c);d.length&&(C[b>>2]=Oc(d));return a},vd=[],wd={},xd=a=>{var b=wd[a];return void 0===b?U(a):b},yd=()=>{function a(b){b.$$$embind_global$$$=b;var c="object"==typeof $$$embind_global$$$&&b.$$$embind_global$$$==b;c||delete b.$$$embind_global$$$;return c}if("object"==typeof globalThis)return globalThis;if("object"==typeof $$$embind_global$$$)return $$$embind_global$$$;"object"==typeof global&&a(global)?$$$embind_global$$$=global:"object"==
|
|
96
|
+
typeof self&&a(self)&&($$$embind_global$$$=self);if("object"==typeof $$$embind_global$$$)return $$$embind_global$$$;throw Error("unable to get global object.");},zd=a=>{var b=vd.length;vd.push(a);return b},Ad=(a,b)=>{for(var c=Array(a),d=0;d<a;++d)c[d]=td(C[b+4*d>>2],"parameter "+d);return c},Bd=Reflect.construct,Cd=a=>0===a%4&&(0!==a%100||0===a%400),Dd=[0,31,60,91,121,152,182,213,244,274,305,335],Ed=[0,31,59,90,120,151,181,212,243,273,304,334],Fd=(a,b)=>b+2097152>>>0<4194305-!!a?(a>>>0)+4294967296*
|
|
97
|
+
b:NaN,Hd=a=>{var b=ab(a)+1,c=Gd(b);c&&K(a,x,c,b);return c},Id=[],Jd,Kd,Ld=0;
|
|
98
|
+
function Md(a,b,c,d,e){function f(){var D=0,T=0;y.response&&J&&0===C[a+12>>2]&&(T=y.response.byteLength);0<T&&(D=Gd(T),x.set(new Uint8Array(y.response),D));C[a+12>>2]=D;Y(a+16,T);Y(a+24,0);(D=y.response?y.response.byteLength:0)&&Y(a+32,D);z[a+40>>1]=y.readyState;z[a+42>>1]=y.status;y.statusText&&K(y.statusText,x,a+44,64)}var g=C[a+8>>2];if(g){var m=g?I(x,g):"",l=a+112,n=dc(l+0);n||="GET";var q=C[l+56>>2],p=C[l+68>>2],t=C[l+72>>2];g=C[l+76>>2];var h=C[l+80>>2],r=C[l+84>>2],v=C[l+88>>2],A=C[l+52>>2],
|
|
99
|
+
J=!!(A&1),H=!!(A&2);A=!!(A&64);p=p?p?I(x,p):"":void 0;t=t?t?I(x,t):"":void 0;var y=new XMLHttpRequest;y.withCredentials=!!x[l+60>>0];y.open(n,m,!A,p,t);A||(y.timeout=q);y.Yc=m;y.responseType="arraybuffer";h&&(m=h?I(x,h):"",y.overrideMimeType(m));if(g)for(;;){l=C[g>>2];if(!l)break;m=C[g+4>>2];if(!m)break;g+=8;l=l?I(x,l):"";m=m?I(x,m):"";y.setRequestHeader(l,m)}var N=Jd.ab(y);C[a>>2]=N;g=r&&v?x.slice(r,r+v):null;y.onload=D=>{Jd.has(N)&&(f(),200<=y.status&&300>y.status?b?.(a,y,D):c?.(a,y,D))};y.onerror=
|
|
100
|
+
D=>{Jd.has(N)&&(f(),c?.(a,y,D))};y.ontimeout=D=>{Jd.has(N)&&c?.(a,y,D)};y.onprogress=D=>{if(Jd.has(N)){var T=J&&H&&y.response?y.response.byteLength:0,G=0;0<T&&J&&H&&(G=Gd(T),x.set(new Uint8Array(y.response),G));C[a+12>>2]=G;Y(a+16,T);Y(a+24,D.loaded-T);Y(a+32,D.total);z[a+40>>1]=y.readyState;3<=y.readyState&&0===y.status&&0<D.loaded&&(y.status=200);z[a+42>>1]=y.status;y.statusText&&K(y.statusText,x,a+44,64);d?.(a,y,D);G&&Zc(G)}};y.onreadystatechange=D=>{Jd.has(N)?(z[a+40>>1]=y.readyState,2<=y.readyState&&
|
|
101
|
+
(z[a+42>>1]=y.status),e?.(a,y,D)):--Ld};try{y.send(g)}catch(D){c?.(a,y,D)}}else c(a,0,"no url specified!")}var Pd=a=>{qa=a;if(!(Ra||0<Ld)){Nd();Qa(xa);Zb=!1;Od(0);for(var b=0;b<xb.length;b++){var c=xb[b];c&&Wb(c)}za=!0}qa=a;Ra||0<Ld||(k.onExit?.(a),pa=!0);ea(a,new Oa(a))},Y=(a,b)=>{C[a>>2]=b;C[a+4>>2]=(b-C[a>>2])/4294967296};
|
|
102
|
+
function Qd(a,b,c,d){var e=Kd;if(e){var f=C[a+112+64>>2];f||=C[a+8>>2];var g=f?I(x,f):"";try{var m=e.transaction(["FILES"],"readwrite").objectStore("FILES").put(b,g);m.onsuccess=()=>{z[a+40>>1]=4;z[a+42>>1]=200;K("OK",x,a+44,64);c(a,0,g)};m.onerror=l=>{z[a+40>>1]=4;z[a+42>>1]=413;K("Payload Too Large",x,a+44,64);d(a,0,l)}}catch(l){d(a,0,l)}}else d(a,0,"IndexedDB not available!")}
|
|
103
|
+
function Rd(a,b,c){var d=Kd;if(d){var e=C[a+112+64>>2];e||=C[a+8>>2];e=e?I(x,e):"";try{var f=d.transaction(["FILES"],"readonly").objectStore("FILES").get(e);f.onsuccess=g=>{if(g.target.result){g=g.target.result;var m=g.byteLength||g.length,l=Gd(m);x.set(new Uint8Array(g),l);C[a+12>>2]=l;Y(a+16,m);Y(a+24,0);Y(a+32,m);z[a+40>>1]=4;z[a+42>>1]=200;K("OK",x,a+44,64);b(a,0,g)}else z[a+40>>1]=4,z[a+42>>1]=404,K("Not Found",x,a+44,64),c(a,0,"no data")};f.onerror=g=>{z[a+40>>1]=4;z[a+42>>1]=404;K("Not Found",
|
|
104
|
+
x,a+44,64);c(a,0,g)}}catch(g){c(a,0,g)}}else c(a,0,"IndexedDB not available!")}
|
|
105
|
+
function Sd(a,b,c){var d=Kd;if(d){var e=C[a+112+64>>2];e||=C[a+8>>2];e=e?I(x,e):"";try{var f=d.transaction(["FILES"],"readwrite").objectStore("FILES").delete(e);f.onsuccess=g=>{g=g.target.result;C[a+12>>2]=0;Y(a+16,0);Y(a+24,0);Y(a+32,0);z[a+40>>1]=4;z[a+42>>1]=200;K("OK",x,a+44,64);b(a,0,g)};f.onerror=g=>{z[a+40>>1]=4;z[a+42>>1]=404;K("Not Found",x,a+44,64);c(a,0,g)}}catch(g){c(a,0,g)}}else c(a,0,"IndexedDB not available!")}
|
|
106
|
+
var Td={},Vd=()=>{if(!Ud){var a={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:da||"./this.program"},b;for(b in Td)void 0===Td[b]?delete a[b]:a[b]=Td[b];var c=[];for(b in a)c.push(`${b}=${a[b]}`);Ud=c}return Ud},Ud,Wd=[31,29,31,30,31,30,31,31,30,31,30,31],Xd=[31,28,31,30,31,30,31,31,30,31,30,31],Yd=(a,b,c,d)=>{function e(h,r,v){for(h="number"==typeof h?h.toString():
|
|
107
|
+
h||"";h.length<r;)h=v[0]+h;return h}function f(h,r){return e(h,r,"0")}function g(h,r){function v(J){return 0>J?-1:0<J?1:0}var A;0===(A=v(h.getFullYear()-r.getFullYear()))&&0===(A=v(h.getMonth()-r.getMonth()))&&(A=v(h.getDate()-r.getDate()));return A}function m(h){switch(h.getDay()){case 0:return new Date(h.getFullYear()-1,11,29);case 1:return h;case 2:return new Date(h.getFullYear(),0,3);case 3:return new Date(h.getFullYear(),0,2);case 4:return new Date(h.getFullYear(),0,1);case 5:return new Date(h.getFullYear()-
|
|
108
|
+
1,11,31);case 6:return new Date(h.getFullYear()-1,11,30)}}function l(h){var r=h.Ua;for(h=new Date((new Date(h.Va+1900,0,1)).getTime());0<r;){var v=h.getMonth(),A=(Cd(h.getFullYear())?Wd:Xd)[v];if(r>A-h.getDate())r-=A-h.getDate()+1,h.setDate(1),11>v?h.setMonth(v+1):(h.setMonth(0),h.setFullYear(h.getFullYear()+1));else{h.setDate(h.getDate()+r);break}}v=new Date(h.getFullYear()+1,0,4);r=m(new Date(h.getFullYear(),0,4));v=m(v);return 0>=g(r,h)?0>=g(v,h)?h.getFullYear()+1:h.getFullYear():h.getFullYear()-
|
|
109
|
+
1}var n=C[d+40>>2];d={Gc:B[d>>2],Fc:B[d+4>>2],ub:B[d+8>>2],Gb:B[d+12>>2],vb:B[d+16>>2],Va:B[d+20>>2],Pa:B[d+24>>2],Ua:B[d+28>>2],Xc:B[d+32>>2],Ec:B[d+36>>2],Hc:n?n?I(x,n):"":""};c=c?I(x,c):"";n={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u",
|
|
110
|
+
"%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var q in n)c=c.replace(new RegExp(q,"g"),n[q]);var p="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),t="January February March April May June July August September October November December".split(" ");n={"%a":h=>p[h.Pa].substring(0,3),"%A":h=>p[h.Pa],"%b":h=>t[h.vb].substring(0,3),"%B":h=>t[h.vb],"%C":h=>f((h.Va+1900)/100|0,2),"%d":h=>f(h.Gb,2),"%e":h=>e(h.Gb,2," "),"%g":h=>l(h).toString().substring(2),"%G":l,"%H":h=>
|
|
111
|
+
f(h.ub,2),"%I":h=>{h=h.ub;0==h?h=12:12<h&&(h-=12);return f(h,2)},"%j":h=>{for(var r=0,v=0;v<=h.vb-1;r+=(Cd(h.Va+1900)?Wd:Xd)[v++]);return f(h.Gb+r,3)},"%m":h=>f(h.vb+1,2),"%M":h=>f(h.Fc,2),"%n":()=>"\n","%p":h=>0<=h.ub&&12>h.ub?"AM":"PM","%S":h=>f(h.Gc,2),"%t":()=>"\t","%u":h=>h.Pa||7,"%U":h=>f(Math.floor((h.Ua+7-h.Pa)/7),2),"%V":h=>{var r=Math.floor((h.Ua+7-(h.Pa+6)%7)/7);2>=(h.Pa+371-h.Ua-2)%7&&r++;if(r)53==r&&(v=(h.Pa+371-h.Ua)%7,4==v||3==v&&Cd(h.Va)||(r=1));else{r=52;var v=(h.Pa+7-h.Ua-1)%7;(4==
|
|
112
|
+
v||5==v&&Cd(h.Va%400-1))&&r++}return f(r,2)},"%w":h=>h.Pa,"%W":h=>f(Math.floor((h.Ua+7-(h.Pa+6)%7)/7),2),"%y":h=>(h.Va+1900).toString().substring(2),"%Y":h=>h.Va+1900,"%z":h=>{h=h.Ec;var r=0<=h;h=Math.abs(h)/60;return(r?"+":"-")+String("0000"+(h/60*100+h%60)).slice(-4)},"%Z":h=>h.Hc,"%%":()=>"%"};c=c.replace(/%%/g,"\x00\x00");for(q in n)c.includes(q)&&(c=c.replace(new RegExp(q,"g"),n[q](d)));c=c.replace(/\0\0/g,"%");q=bb(c,!1);if(q.length>b)return 0;w.set(q,a);return q.length-1};
|
|
113
|
+
function Fb(a,b,c,d){a||=this;this.parent=a;this.Qa=a.Qa;this.eb=null;this.id=yb++;this.name=b;this.mode=c;this.wa={};this.xa={};this.gb=d}Object.defineProperties(Fb.prototype,{read:{get:function(){return 365===(this.mode&365)},set:function(a){a?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146===(this.mode&146)},set:function(a){a?this.mode|=146:this.mode&=-147}},sc:{get:function(){return O(this.mode)}},rc:{get:function(){return 8192===(this.mode&61440)}}});
|
|
114
|
+
[44].forEach(a=>{nb[a]=new L(a);nb[a].stack="<generic error, no stack>"});zb=Array(4096);Mb(M,"/");Q("/tmp");Q("/home");Q("/home/web_user");(function(){Q("/dev");eb(259,{read:()=>0,write:(d,e,f,g)=>g});Ob("/dev/null",259);db(1280,gb);db(1536,hb);Ob("/dev/tty",1280);Ob("/dev/tty1",1536);var a=new Uint8Array(1024),b=0,c=()=>{0===b&&(b=Xa(a).byteLength);return a[--b]};R("/dev","random",c);R("/dev","urandom",c);Q("/dev/shm");Q("/dev/shm/tmp")})();
|
|
115
|
+
(function(){Q("/proc");var a=Q("/proc/self");Q("/proc/self/fd");Mb({Qa(){var b=mb(a,"fd",16895,73);b.wa={bb(c,d){var e=Jb(+d);c={parent:null,Qa:{Rb:"fake"},wa:{hb:()=>e.path}};return c.parent=c}};return b}},"/proc/self/fd")})();k.FS_createPath=$b;k.FS_createDataFile=sb;k.FS_createPreloadedFile=tb;k.FS_unlink=Qb;k.FS_createLazyFile=cc;k.FS_createDevice=R;nc=k.InternalError=class extends Error{constructor(a){super(a);this.name="InternalError"}};for(var Zd=Array(256),$d=0;256>$d;++$d)Zd[$d]=String.fromCharCode($d);
|
|
116
|
+
qc=Zd;V=k.BindingError=class extends Error{constructor(a){super(a);this.name="BindingError"}};
|
|
117
|
+
Object.assign(Ec.prototype,{isAliasOf:function(a){if(!(this instanceof Ec&&a instanceof Ec))return!1;var b=this.ua.Ba.ya,c=this.ua.za;a.ua=a.ua;var d=a.ua.Ba.ya;for(a=a.ua.za;b.Ga;)c=b.ib(c),b=b.Ga;for(;d.Ga;)a=d.ib(a),d=d.Ga;return b===d&&c===a},clone:function(){this.ua.za||sc(this);if(this.ua.fb)return this.ua.count.value+=1,this;var a=Cc,b=Object,c=b.create,d=Object.getPrototypeOf(this),e=this.ua;a=a(c.call(b,d,{ua:{value:{count:e.count,Xa:e.Xa,fb:e.fb,za:e.za,Ba:e.Ba,Ca:e.Ca,Ia:e.Ia}}}));a.ua.count.value+=
|
|
118
|
+
1;a.ua.Xa=!1;return a},["delete"](){this.ua.za||sc(this);if(this.ua.Xa&&!this.ua.fb)throw new V("Object already scheduled for deletion");uc(this);var a=this.ua;--a.count.value;0===a.count.value&&(a.Ca?a.Ia.Oa(a.Ca):a.Ba.ya.Oa(a.za));this.ua.fb||(this.ua.Ca=void 0,this.ua.za=void 0)},isDeleted:function(){return!this.ua.za},deleteLater:function(){this.ua.za||sc(this);if(this.ua.Xa&&!this.ua.fb)throw new V("Object already scheduled for deletion");xc.push(this);1===xc.length&&zc&&zc(yc);this.ua.Xa=!0;
|
|
119
|
+
return this}});k.getInheritedInstanceCount=()=>Object.keys(Ac).length;k.getLiveInheritedInstances=()=>{var a=[],b;for(b in Ac)Ac.hasOwnProperty(b)&&a.push(Ac[b]);return a};k.flushPendingDeletes=yc;k.setDelayFunction=a=>{zc=a;xc.length&&zc&&zc(yc)};
|
|
120
|
+
Object.assign(Rc.prototype,{mc(a){this.Tb&&(a=this.Tb(a));return a},Lb(a){this.Oa?.(a)},argPackAdvance:8,readValueFromPointer:Qc,fromWireType:function(a){function b(){return this.pb?Dc(this.ya.Ya,{Ba:this.wc,za:c,Ia:this,Ca:a}):Dc(this.ya.Ya,{Ba:this,za:a})}var c=this.mc(a);if(!c)return this.Lb(a),null;var d=Bc(this.ya,c);if(void 0!==d){if(0===d.ua.count.value)return d.ua.za=c,d.ua.Ca=a,d.clone();d=d.clone();this.Lb(a);return d}d=this.ya.lc(c);d=wc[d];if(!d)return b.call(this);d=this.ob?d.fc:d.pointerType;
|
|
121
|
+
var e=vc(c,this.ya,d.ya);return null===e?b.call(this):this.pb?Dc(d.ya.Ya,{Ba:d,za:e,Ia:this,Ca:a}):Dc(d.ya.Ya,{Ba:d,za:e})}});Xc=k.UnboundTypeError=((a,b)=>{var c=Fc(b,function(d){this.name=b;this.message=d;d=Error(d).stack;void 0!==d&&(this.stack=this.toString()+"\n"+d.replace(/^Error(:[^\n]*)?\n/,""))});c.prototype=Object.create(a.prototype);c.prototype.constructor=c;c.prototype.toString=function(){return void 0===this.message?this.name:`${this.name}: ${this.message}`};return c})(Error,"UnboundTypeError");
|
|
122
|
+
X.Fa.push({value:void 0},{value:null},{value:!0},{value:!1});Object.assign(X,{Xb:X.Fa.length});k.count_emval_handles=()=>{for(var a=0,b=X.Xb;b<X.Fa.length;++b)void 0!==X.Fa[b]&&++a;return a};Jd=new fd;Ea("library_fetch_init");
|
|
123
|
+
(function(a,b){try{var c=indexedDB.open("emscripten_filesystem",1)}catch(d){b(d);return}c.onupgradeneeded=d=>{d=d.target.result;d.objectStoreNames.contains("FILES")&&d.deleteObjectStore("FILES");d.createObjectStore("FILES")};c.onsuccess=d=>a(d.target.result);c.onerror=b})(a=>{Kd=a;Fa("library_fetch_init")},()=>{Kd=!1;Fa("library_fetch_init")});
|
|
124
|
+
var be={N:function(a,b){try{var c=Jb(a);return fc(Rb,c.path,b)}catch(d){if("undefined"==typeof S||"ErrnoError"!==d.name)throw d;return-d.Ka}},L:function(a,b,c,d){try{b=b?I(x,b):"";var e=d&256;b=ec(a,b,d&4096);return fc(e?Sb:Rb,b,c)}catch(f){if("undefined"==typeof S||"ErrnoError"!==f.name)throw f;return-f.Ka}},O:function(a,b,c,d){gc=d;try{b=b?I(x,b):"";b=ec(a,b);if(d){var e=B[+gc>>2];gc+=4;var f=e}else f=0;return Ub(b,c,f).Sa}catch(g){if("undefined"==typeof S||"ErrnoError"!==g.name)throw g;return-g.Ka}},
|
|
125
|
+
M:function(a,b){try{return a=a?I(x,a):"",fc(Rb,a,b)}catch(c){if("undefined"==typeof S||"ErrnoError"!==c.name)throw c;return-c.Ka}},g:a=>{var b=hc[a];delete hc[a];var c=b.Db,d=b.Oa,e=b.Mb,f=e.map(g=>g.oc).concat(e.map(g=>g.Bc));pc([a],f,g=>{var m={};e.forEach((l,n)=>{var q=g[n],p=l.nb,t=l.nc,h=g[n+e.length],r=l.Ac,v=l.Cc;m[l.kc]={read:A=>q.fromWireType(p(t,A)),write:(A,J)=>{var H=[];r(v,A,h.toWireType(H,J));ic(H)}}});return[{name:b.name,fromWireType:l=>{var n={},q;for(q in m)n[q]=m[q].read(l);d(l);
|
|
126
|
+
return n},toWireType:(l,n)=>{for(var q in m)if(!(q in n))throw new TypeError(`Missing field: "${q}"`);var p=c();for(q in m)m[q].write(p,n[q]);null!==l&&l.push(d,p);return p},argPackAdvance:8,readValueFromPointer:jc,La:d}]})},E:()=>{},S:(a,b,c,d)=>{b=U(b);oc(a,{name:b,fromWireType:function(e){return!!e},toWireType:function(e,f){return f?c:d},argPackAdvance:8,readValueFromPointer:function(e){return this.fromWireType(x[e])},La:null})},da:(a,b,c,d,e,f,g,m,l,n,q,p,t)=>{q=U(q);f=W(e,f);m&&=W(g,m);n&&=W(l,
|
|
127
|
+
n);t=W(p,t);var h=Ic(q);Hc(h,function(){ad(`Cannot construct ${q} due to unbound types`,[d])});pc([a,b,c],d?[d]:[],function(r){r=r[0];if(d){var v=r.ya;var A=v.Ya}else A=Ec.prototype;r=Fc(q,function(){if(Object.getPrototypeOf(this)!==J)throw new V("Use 'new' to construct "+q);if(void 0===H.Ra)throw new V(q+" has no accessible constructor");var N=H.Ra[arguments.length];if(void 0===N)throw new V(`Tried to invoke ctor of ${q} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(H.Ra).toString()}) parameters instead!`);
|
|
128
|
+
return N.apply(this,arguments)});var J=Object.create(A,{constructor:{value:r}});r.prototype=J;var H=new Jc(q,r,J,t,v,f,m,n);if(H.Ga){var y;(y=H.Ga).Hb??(y.Hb=[]);H.Ga.Hb.push(H)}v=new Rc(q,H,!0,!1,!1);y=new Rc(q+"*",H,!1,!1,!1);A=new Rc(q+" const*",H,!1,!0,!1);wc[a]={pointerType:y,fc:A};Sc(h,r);return[v,y,A]})},ca:(a,b,c,d,e,f)=>{var g=bd(b,c);e=W(d,e);pc([],[a],function(m){m=m[0];var l=`constructor ${m.name}`;void 0===m.ya.Ra&&(m.ya.Ra=[]);if(void 0!==m.ya.Ra[b-1])throw new V(`Cannot register multiple constructors with identical number of parameters (${b-
|
|
129
|
+
1}) for class '${m.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);m.ya.Ra[b-1]=()=>{ad(`Cannot construct ${m.name} due to unbound types`,g)};pc([],g,n=>{n.splice(1,0,null);m.ya.Ra[b-1]=dd(l,n,null,e,f);return[]});return[]})},h:(a,b,c,d,e,f,g,m)=>{var l=bd(c,d);b=U(b);b=ed(b);f=W(e,f);pc([],[a],function(n){function q(){ad(`Cannot call ${p} due to unbound types`,l)}n=n[0];var p=`${n.name}.${b}`;b.startsWith("@@")&&(b=Symbol[b.substring(2)]);
|
|
130
|
+
m&&n.ya.xc.push(b);var t=n.ya.Ya,h=t[b];void 0===h||void 0===h.Ea&&h.className!==n.name&&h.jb===c-2?(q.jb=c-2,q.className=n.name,t[b]=q):(Gc(t,b,p),t[b].Ea[c-2]=q);pc([],l,function(r){r=dd(p,r,n,f,g);void 0===t[b].Ea?(r.jb=c-2,t[b]=r):t[b].Ea[c-2]=r;return[]});return[]})},R:a=>oc(a,jd),s:(a,b,c)=>{b=U(b);oc(a,{name:b,fromWireType:d=>d,toWireType:(d,e)=>e,argPackAdvance:8,readValueFromPointer:kd(b,c),La:null})},n:(a,b,c,d,e,f)=>{var g=bd(b,c);a=U(a);a=ed(a);e=W(d,e);Hc(a,function(){ad(`Cannot call ${a} due to unbound types`,
|
|
131
|
+
g)},b-1);pc([],g,function(m){Sc(a,dd(a,[m[0],null].concat(m.slice(1)),null,e,f),b-1);return[]})},e:(a,b,c,d,e)=>{b=U(b);-1===e&&(e=4294967295);e=m=>m;if(0===d){var f=32-8*c;e=m=>m<<f>>>f}var g=b.includes("unsigned")?function(m,l){return l>>>0}:function(m,l){return l};oc(a,{name:b,fromWireType:e,toWireType:g,argPackAdvance:8,readValueFromPointer:ld(b,c,0!==d),La:null})},c:(a,b,c)=>{function d(f){return new e(w.buffer,C[f+4>>2],C[f>>2])}var e=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,
|
|
132
|
+
Uint32Array,Float32Array,Float64Array][b];c=U(c);oc(a,{name:c,fromWireType:d,argPackAdvance:8,readValueFromPointer:d},{qc:!0})},t:(a,b)=>{b=U(b);var c="std::string"===b;oc(a,{name:b,fromWireType:function(d){var e=C[d>>2],f=d+4;if(c)for(var g=f,m=0;m<=e;++m){var l=f+m;if(m==e||0==x[l]){g=g?I(x,g,l-g):"";if(void 0===n)var n=g;else n+=String.fromCharCode(0),n+=g;g=l+1}}else{n=Array(e);for(m=0;m<e;++m)n[m]=String.fromCharCode(x[f+m]);n=n.join("")}Zc(d);return n},toWireType:function(d,e){e instanceof ArrayBuffer&&
|
|
133
|
+
(e=new Uint8Array(e));var f="string"==typeof e;if(!(f||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int8Array))throw new V("Cannot pass non-string to std::string");var g=c&&f?ab(e):e.length;var m=Gd(4+g+1),l=m+4;C[m>>2]=g;if(c&&f)K(e,x,l,g+1);else if(f)for(f=0;f<g;++f){var n=e.charCodeAt(f);if(255<n)throw Zc(l),new V("String has UTF-16 code units that do not fit in 8 bits");x[l+f]=n}else for(f=0;f<g;++f)x[l+f]=e[f];null!==d&&d.push(Zc,m);return m},argPackAdvance:8,readValueFromPointer:Qc,
|
|
134
|
+
La(d){Zc(d)}})},l:(a,b,c)=>{c=U(c);if(2===b){var d=nd;var e=od;var f=pd;var g=()=>z;var m=1}else 4===b&&(d=qd,e=rd,f=sd,g=()=>C,m=2);oc(a,{name:c,fromWireType:l=>{for(var n=C[l>>2],q=g(),p,t=l+4,h=0;h<=n;++h){var r=l+4+h*b;if(h==n||0==q[r>>m])t=d(t,r-t),void 0===p?p=t:(p+=String.fromCharCode(0),p+=t),t=r+b}Zc(l);return p},toWireType:(l,n)=>{if("string"!=typeof n)throw new V(`Cannot pass non-string to C++ string type ${c}`);var q=f(n),p=Gd(4+q+b);C[p>>2]=q>>m;e(n,p+4,q+b);null!==l&&l.push(Zc,p);return p},
|
|
135
|
+
argPackAdvance:8,readValueFromPointer:jc,La(l){Zc(l)}})},f:(a,b,c,d,e,f)=>{hc[a]={name:U(b),Db:W(c,d),Oa:W(e,f),Mb:[]}},b:(a,b,c,d,e,f,g,m,l,n)=>{hc[a].Mb.push({kc:U(b),oc:c,nb:W(d,e),nc:f,Bc:g,Ac:W(m,l),Cc:n})},T:(a,b)=>{b=U(b);oc(a,{Uc:!0,name:b,argPackAdvance:0,fromWireType:()=>{},toWireType:()=>{}})},U:function(a){if(Jd.has(a)){var b=Jd.get(a),c=Jd;c.Fa[a]=void 0;c.yb.push(a);0<b.readyState&&4>b.readyState&&b.abort()}},P:()=>1,j:(a,b,c)=>{a=hd(a);b=td(b,"emval::as");return ud(b,c,a)},m:(a,b,c,
|
|
136
|
+
d)=>{a=vd[a];b=hd(b);return a(null,b,c,d)},$:(a,b,c,d,e)=>{a=vd[a];b=hd(b);c=xd(c);return a(b,b[c],d,e)},y:gd,_:a=>{if(0===a)return Oc(yd());a=xd(a);return Oc(yd()[a])},o:(a,b,c)=>{var d=Ad(a,b),e=d.shift();a--;var f=Array(a);b=`methodCaller<(${d.map(g=>g.name).join(", ")}) => ${e.name}>`;return zd(Fc(b,(g,m,l,n)=>{for(var q=0,p=0;p<a;++p)f[p]=d[p].readValueFromPointer(n+q),q+=d[p].argPackAdvance;g=1===c?Bd(m,f):m.apply(g,f);return ud(e,l,g)}))},u:(a,b)=>{a=hd(a);b=hd(b);return Oc(a[b])},i:a=>{4<
|
|
137
|
+
a&&(X.get(a).Vb+=1)},x:()=>Oc([]),aa:a=>Oc(xd(a)),ba:a=>{var b=hd(a);ic(b);gd(a)},w:(a,b,c)=>{a=hd(a);b=hd(b);c=hd(c);a[b]=c},d:(a,b)=>{a=td(a,"_emval_take_value");a=a.readValueFromPointer(b);return Oc(a)},B:function(a,b,c){a=new Date(1E3*Fd(a,b));B[c>>2]=a.getSeconds();B[c+4>>2]=a.getMinutes();B[c+8>>2]=a.getHours();B[c+12>>2]=a.getDate();B[c+16>>2]=a.getMonth();B[c+20>>2]=a.getFullYear()-1900;B[c+24>>2]=a.getDay();B[c+28>>2]=(Cd(a.getFullYear())?Dd:Ed)[a.getMonth()]+a.getDate()-1|0;B[c+36>>2]=-(60*
|
|
138
|
+
a.getTimezoneOffset());b=(new Date(a.getFullYear(),6,1)).getTimezoneOffset();var d=(new Date(a.getFullYear(),0,1)).getTimezoneOffset();B[c+32>>2]=(b!=d&&a.getTimezoneOffset()==Math.min(d,b))|0},C:function(a){var b=new Date(B[a+20>>2]+1900,B[a+16>>2],B[a+12>>2],B[a+8>>2],B[a+4>>2],B[a>>2],0),c=B[a+32>>2],d=b.getTimezoneOffset(),e=(new Date(b.getFullYear(),6,1)).getTimezoneOffset(),f=(new Date(b.getFullYear(),0,1)).getTimezoneOffset(),g=Math.min(f,e);0>c?B[a+32>>2]=Number(e!=f&&g==d):0<c!=(g==d)&&(e=
|
|
139
|
+
Math.max(f,e),b.setTime(b.getTime()+6E4*((0<c?g:e)-d)));B[a+24>>2]=b.getDay();B[a+28>>2]=(Cd(b.getFullYear())?Dd:Ed)[b.getMonth()]+b.getDate()-1|0;B[a>>2]=b.getSeconds();B[a+4>>2]=b.getMinutes();B[a+8>>2]=b.getHours();B[a+12>>2]=b.getDate();B[a+16>>2]=b.getMonth();B[a+20>>2]=b.getYear();a=b.getTime();a=isNaN(a)?-1:a/1E3;return ae((E=a,1<=+Math.abs(E)?0<E?+Math.floor(E/4294967296)>>>0:~~+Math.ceil((E-+(~~E>>>0))/4294967296)>>>0:0)),a>>>0},z:function(a,b,c,d,e,f,g,m){e=Fd(e,f);try{if(isNaN(e))return 61;
|
|
140
|
+
var l=Jb(d);if(0!==(b&2)&&0===(c&2)&&2!==(l.flags&2097155))throw new L(2);if(1===(l.flags&2097155))throw new L(2);if(!l.xa.cb)throw new L(43);var n=l.xa.cb(l,a,e,b,c);var q=n.za;B[g>>2]=n.Fa;C[m>>2]=q;return 0}catch(p){if("undefined"==typeof S||"ErrnoError"!==p.name)throw p;return-p.Ka}},A:function(a,b,c,d,e,f,g){f=Fd(f,g);try{if(isNaN(f))return 61;var m=Jb(e);if(c&2){if(32768!==(m.node.mode&61440))throw new L(43);d&2||m.xa.rb&&m.xa.rb(m,x.slice(a,a+b),f,b,d)}}catch(l){if("undefined"==typeof S||"ErrnoError"!==
|
|
141
|
+
l.name)throw l;return-l.Ka}},I:(a,b,c)=>{function d(l){return(l=l.toTimeString().match(/\(([A-Za-z ]+)\)$/))?l[1]:"GMT"}var e=(new Date).getFullYear(),f=new Date(e,0,1),g=new Date(e,6,1);e=f.getTimezoneOffset();var m=g.getTimezoneOffset();C[a>>2]=60*Math.max(e,m);B[b>>2]=Number(e!=m);a=d(f);b=d(g);a=Hd(a);b=Hd(b);m<e?(C[c>>2]=a,C[c+4>>2]=b):(C[c>>2]=b,C[c+4>>2]=a)},a:()=>{na("")},v:(a,b,c)=>{Id.length=0;for(var d;d=x[b++];){var e=105!=d;e&=112!=d;c+=e&&c%8?4:0;Id.push(112==d?C[c>>2]:105==d?B[c>>2]:
|
|
142
|
+
ta[c>>3]);c+=e?8:4}return Na[a].apply(null,Id)},Q:()=>Date.now(),k:()=>performance.now(),W:()=>!1,H:a=>{var b=x.length;a>>>=0;if(2147483648<a)return!1;for(var c=1;4>=c;c*=2){var d=Math,e=Math.max(a,b+2097152/c);a:{d=(d.min.call(d,2147483648,e+(65536-e%65536)%65536)-oa.buffer.byteLength+65535)/65536;try{oa.grow(d);ua();var f=1;break a}catch(g){}f=void 0}if(f)return!0}return!1},V:function(a,b,c,d,e){function f(G){if(t)G();else if(!za&&!pa)try{if(G(),!(za||Ra||0<Ld))try{Pd(qa)}catch(ja){ja instanceof
|
|
143
|
+
Oa||"unwind"==ja||ea(1,ja)}}catch(ja){ja instanceof Oa||"unwind"==ja||ea(1,ja)}}Ld+=1;var g=a+112,m=C[g+36>>2],l=C[g+40>>2],n=C[g+44>>2],q=C[g+48>>2],p=C[g+52>>2],t=!!(p&64),h=G=>{--Ld;f(()=>{m?Vc(m)(G):b?.(G)})},r=G=>{f(()=>{n?Vc(n)(G):d?.(G)})},v=G=>{--Ld;f(()=>{l?Vc(l)(G):c?.(G)})},A=G=>{f(()=>{q?Vc(q)(G):e?.(G)})},J=G=>{Md(G,h,v,r,A)},H=(G,ja)=>{Qd(G,ja.response,Pa=>{--Ld;f(()=>{m?Vc(m)(Pa):b?.(Pa)})},Pa=>{--Ld;f(()=>{m?Vc(m)(Pa):b?.(Pa)})})},y=G=>{Md(G,H,v,r,A)},N=dc(g+0),D=!!(p&16),T=!!(p&4);
|
|
144
|
+
p=!!(p&32);if("EM_IDB_STORE"===N)J=C[g+84>>2],Qd(a,x.slice(J,J+C[g+88>>2]),h,v);else if("EM_IDB_DELETE"===N)Sd(a,h,v);else if(D){if(p)return 0;Md(a,T?H:h,v,r,A)}else Rd(a,h,p?v:T?y:J);return a},J:(a,b)=>{var c=0;Vd().forEach((d,e)=>{var f=b+c;e=C[a+4*e>>2]=f;for(f=0;f<d.length;++f)w[e++>>0]=d.charCodeAt(f);w[e>>0]=0;c+=d.length+1});return 0},K:(a,b)=>{var c=Vd();C[a>>2]=c.length;var d=0;c.forEach(e=>d+=e.length+1);C[b>>2]=d;return 0},Z:Pd,r:function(a){try{var b=Jb(a);Wb(b);return 0}catch(c){if("undefined"==
|
|
145
|
+
typeof S||"ErrnoError"!==c.name)throw c;return c.Ka}},q:function(a,b,c,d){try{a:{var e=Jb(a);a=b;for(var f,g=b=0;g<c;g++){var m=C[a>>2],l=C[a+4>>2];a+=8;var n=e,q=f,p=w;if(0>l||0>q)throw new L(28);if(null===n.Sa)throw new L(8);if(1===(n.flags&2097155))throw new L(8);if(O(n.node.mode))throw new L(31);if(!n.xa.read)throw new L(28);var t="undefined"!=typeof q;if(!t)q=n.position;else if(!n.seekable)throw new L(70);var h=n.xa.read(n,p,m,l,q);t||(n.position+=h);var r=h;if(0>r){var v=-1;break a}b+=r;if(r<
|
|
146
|
+
l)break;"undefined"!==typeof f&&(f+=r)}v=b}C[d>>2]=v;return 0}catch(A){if("undefined"==typeof S||"ErrnoError"!==A.name)throw A;return A.Ka}},D:function(a,b,c,d,e){b=Fd(b,c);try{if(isNaN(b))return 61;var f=Jb(a);Xb(f,b,d);F=[f.position>>>0,(E=f.position,1<=+Math.abs(E)?0<E?+Math.floor(E/4294967296)>>>0:~~+Math.ceil((E-+(~~E>>>0))/4294967296)>>>0:0)];B[e>>2]=F[0];B[e+4>>2]=F[1];f.zb&&0===b&&0===d&&(f.zb=null);return 0}catch(g){if("undefined"==typeof S||"ErrnoError"!==g.name)throw g;return g.Ka}},p:function(a,
|
|
147
|
+
b,c,d){try{a:{var e=Jb(a);a=b;for(var f,g=b=0;g<c;g++){var m=C[a>>2],l=C[a+4>>2];a+=8;var n=Yb(e,w,m,l,f);if(0>n){var q=-1;break a}b+=n;"undefined"!==typeof f&&(f+=n)}q=b}C[d>>2]=q;return 0}catch(p){if("undefined"==typeof S||"ErrnoError"!==p.name)throw p;return p.Ka}},X:function(){var a=stackTrace(),b=ab(a)+1,c=Gd(b);K(a,x,c,b);return c},F:(a,b)=>{Xa(x.subarray(a,a+b));return 0},Y:Yd,G:(a,b,c,d)=>Yd(a,b,c,d)},Z=function(){function a(c){Z=c.exports;oa=Z.ea;ua();Uc=Z.ia;wa.unshift(Z.fa);Fa("wasm-instantiate");
|
|
148
|
+
return Z}var b={a:be};Ea("wasm-instantiate");if(k.instantiateWasm)try{return k.instantiateWasm(b,a)}catch(c){u(`Module.instantiateWasm callback failed with error: ${c}`),ba(c)}Ma(b,function(c){a(c.instance)}).catch(ba);return{}}(),Zc=a=>(Zc=Z.ga)(a),Gd=a=>(Gd=Z.ha)(a),Od=a=>(Od=Z.ja)(a),Yc=a=>(Yc=Z.ka)(a),Nd=()=>(Nd=Z.la)(),ib=(a,b)=>(ib=Z.ma)(a,b),ae=a=>(ae=Z.na)(a);k.dynCall_ji=(a,b)=>(k.dynCall_ji=Z.oa)(a,b);k.dynCall_jiji=(a,b,c,d,e)=>(k.dynCall_jiji=Z.pa)(a,b,c,d,e);
|
|
149
|
+
k.dynCall_viijii=(a,b,c,d,e,f,g)=>(k.dynCall_viijii=Z.qa)(a,b,c,d,e,f,g);k.dynCall_iiiiij=(a,b,c,d,e,f,g)=>(k.dynCall_iiiiij=Z.ra)(a,b,c,d,e,f,g);k.dynCall_iiiiijj=(a,b,c,d,e,f,g,m,l)=>(k.dynCall_iiiiijj=Z.sa)(a,b,c,d,e,f,g,m,l);k.dynCall_iiiiiijj=(a,b,c,d,e,f,g,m,l,n)=>(k.dynCall_iiiiiijj=Z.ta)(a,b,c,d,e,f,g,m,l,n);k.__ZN2MB2NN28LinearDefragmentingAllocator10Allocation4nullE=1024;k.___start_em_js=60018;k.___stop_em_js=60441;k.addRunDependency=Ea;k.removeRunDependency=Fa;k.FS_createPath=$b;
|
|
150
|
+
k.FS_createLazyFile=cc;k.FS_createDevice=R;k.FS_createPreloadedFile=tb;k.FS_createDataFile=sb;k.FS_unlink=Qb;var ce;Da=function de(){ce||ee();ce||(Da=de)};
|
|
151
|
+
function ee(){function a(){if(!ce&&(ce=!0,k.calledRun=!0,!pa)){k.noFSInit||Zb||(Zb=!0,k.stdin=k.stdin,k.stdout=k.stdout,k.stderr=k.stderr,k.stdin?R("/dev","stdin",k.stdin):Pb("/dev/tty","/dev/stdin"),k.stdout?R("/dev","stdout",null,k.stdout):Pb("/dev/tty","/dev/stdout"),k.stderr?R("/dev","stderr",null,k.stderr):Pb("/dev/tty1","/dev/stderr"),Ub("/dev/stdin",0),Ub("/dev/stdout",1),Ub("/dev/stderr",1));Ab=!1;Qa(wa);aa(k);if(k.onRuntimeInitialized)k.onRuntimeInitialized();if(k.postRun)for("function"==
|
|
152
|
+
typeof k.postRun&&(k.postRun=[k.postRun]);k.postRun.length;){var b=k.postRun.shift();ya.unshift(b)}Qa(ya)}}if(!(0<Ba)){if(k.preRun)for("function"==typeof k.preRun&&(k.preRun=[k.preRun]);k.preRun.length;)Aa();Qa(va);0<Ba||(k.setStatus?(k.setStatus("Running..."),setTimeout(function(){setTimeout(function(){k.setStatus("")},1);a()},1)):a())}}if(k.preInit)for("function"==typeof k.preInit&&(k.preInit=[k.preInit]);0<k.preInit.length;)k.preInit.pop()();ee();
|
|
153
|
+
if("object"==typeof window&&("undefined"==typeof ENVIRONMENT_IS_PTHREAD||!ENVIRONMENT_IS_PTHREAD)){var fe=()=>{var a=0,b=!1,c=l=>{var n=new XMLHttpRequest;n.open("POST","stdio.html",!1);n.send(l);try{window.close()}catch(q){}},d=l=>{var n=new XMLHttpRequest;++a;n.onreadystatechange=()=>{4==n.readyState&&0==--a&&b&&c("^exit^"+qa)};n.open("POST","stdio.html",!0);n.send(l)};if(-1!=document.URL.search("localhost")||-1!=document.URL.search(":6931/")){var e=1,f=la,g=u;xa.unshift(()=>{0==a?c("^exit^"+qa):
|
|
154
|
+
b=!0});la=l=>{d("^out^"+e++ +"^"+encodeURIComponent(l));f(l)};u=l=>{d("^err^"+e++ +"^"+encodeURIComponent(l));g(l)};var m=()=>{try{d("^pageload^")}catch(l){setTimeout(m,50)}};m()}};"undefined"!=typeof document&&fe()};
|
|
3880
155
|
|
|
3881
|
-
)
|
|
3882
|
-
k.preInit.pop()();
|
|
3883
|
-
ee();
|
|
3884
|
-
if (
|
|
3885
|
-
"object" == typeof window &&
|
|
3886
|
-
("undefined" == typeof ENVIRONMENT_IS_PTHREAD || !ENVIRONMENT_IS_PTHREAD)
|
|
3887
|
-
) {
|
|
3888
|
-
var fe = () => {
|
|
3889
|
-
var a = 0,
|
|
3890
|
-
b = !1,
|
|
3891
|
-
c = (l) => {
|
|
3892
|
-
var n = new XMLHttpRequest();
|
|
3893
|
-
n.open("POST", "stdio.html", !1);
|
|
3894
|
-
n.send(l);
|
|
3895
|
-
try {
|
|
3896
|
-
window.close();
|
|
3897
|
-
} catch (q) {}
|
|
3898
|
-
},
|
|
3899
|
-
d = (l) => {
|
|
3900
|
-
var n = new XMLHttpRequest();
|
|
3901
|
-
++a;
|
|
3902
|
-
n.onreadystatechange = () => {
|
|
3903
|
-
4 == n.readyState && 0 == --a && b && c("^exit^" + qa);
|
|
3904
|
-
};
|
|
3905
|
-
n.open("POST", "stdio.html", !0);
|
|
3906
|
-
n.send(l);
|
|
3907
|
-
};
|
|
3908
|
-
if (
|
|
3909
|
-
-1 != document.URL.search("localhost") ||
|
|
3910
|
-
-1 != document.URL.search(":6931/")
|
|
3911
|
-
) {
|
|
3912
|
-
var e = 1,
|
|
3913
|
-
f = la,
|
|
3914
|
-
g = u;
|
|
3915
|
-
xa.unshift(() => {
|
|
3916
|
-
0 == a ? c("^exit^" + qa) : (b = !0);
|
|
3917
|
-
});
|
|
3918
|
-
la = (l) => {
|
|
3919
|
-
d("^out^" + e++ + "^" + encodeURIComponent(l));
|
|
3920
|
-
f(l);
|
|
3921
|
-
};
|
|
3922
|
-
u = (l) => {
|
|
3923
|
-
d("^err^" + e++ + "^" + encodeURIComponent(l));
|
|
3924
|
-
g(l);
|
|
3925
|
-
};
|
|
3926
|
-
var m = () => {
|
|
3927
|
-
try {
|
|
3928
|
-
d("^pageload^");
|
|
3929
|
-
} catch (l) {
|
|
3930
|
-
setTimeout(m, 50);
|
|
3931
|
-
}
|
|
3932
|
-
};
|
|
3933
|
-
m();
|
|
3934
|
-
}
|
|
3935
|
-
};
|
|
3936
|
-
"undefined" != typeof document && fe();
|
|
3937
|
-
}
|
|
3938
156
|
|
|
3939
|
-
|
|
3940
|
-
|
|
157
|
+
return moduleArg.ready
|
|
158
|
+
}
|
|
159
|
+
);
|
|
3941
160
|
})();
|
|
3942
|
-
if (typeof exports ===
|
|
161
|
+
if (typeof exports === 'object' && typeof module === 'object')
|
|
3943
162
|
module.exports = createModule;
|
|
3944
|
-
else if (typeof define ===
|
|
163
|
+
else if (typeof define === 'function' && define['amd'])
|
|
3945
164
|
define([], () => createModule);
|