@microblink/capture 1.1.0 → 1.1.1

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