@rive-app/webgl2 2.23.3 → 2.23.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/rive.js +954 -956
- package/rive.js.map +1 -1
- package/rive.wasm +0 -0
package/rive.js
CHANGED
|
@@ -217,7 +217,7 @@ n.onRuntimeInitialized = function() {
|
|
|
217
217
|
}
|
|
218
218
|
q = Math.min(q, k);
|
|
219
219
|
q = Math.min(v, k);
|
|
220
|
-
B.sort((
|
|
220
|
+
B.sort((Y, rb) => rb.Ia - Y.Ia);
|
|
221
221
|
y = new n.DynamicRectanizer(k);
|
|
222
222
|
for (E = 0; E < B.length;) {
|
|
223
223
|
y.reset(q, v);
|
|
@@ -242,13 +242,13 @@ n.onRuntimeInitialized = function() {
|
|
|
242
242
|
for (H = E; H < D; ++H) {
|
|
243
243
|
F = B[H];
|
|
244
244
|
d.saveClipRect(F.ra, F.sa, F.ra + F.ea, F.sa + F.da);
|
|
245
|
-
let
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
d.transform(
|
|
245
|
+
let Y = new n.Mat2D();
|
|
246
|
+
Y.xx = F.ea / F.F.width;
|
|
247
|
+
Y.yy = F.da / F.F.height;
|
|
248
|
+
Y.xy = Y.yx = 0;
|
|
249
|
+
Y.tx = F.ra;
|
|
250
|
+
Y.ty = F.sa;
|
|
251
|
+
d.transform(Y);
|
|
252
252
|
for (const rb of F.S) {
|
|
253
253
|
rb();
|
|
254
254
|
}
|
|
@@ -336,70 +336,70 @@ if (ma || na) {
|
|
|
336
336
|
d.send(null);
|
|
337
337
|
};
|
|
338
338
|
}
|
|
339
|
-
var qa = n.print || console.log.bind(console),
|
|
339
|
+
var qa = n.print || console.log.bind(console), z = n.printErr || console.error.bind(console);
|
|
340
340
|
Object.assign(n, ka);
|
|
341
341
|
ka = null;
|
|
342
342
|
n.thisProgram && (la = n.thisProgram);
|
|
343
|
-
var
|
|
344
|
-
n.wasmBinary && (
|
|
343
|
+
var ra;
|
|
344
|
+
n.wasmBinary && (ra = n.wasmBinary);
|
|
345
345
|
var noExitRuntime = n.noExitRuntime || !0;
|
|
346
|
-
"object" != typeof WebAssembly &&
|
|
347
|
-
var
|
|
348
|
-
function
|
|
349
|
-
var a =
|
|
350
|
-
n.HEAP8 =
|
|
351
|
-
n.HEAP16 =
|
|
352
|
-
n.HEAP32 =
|
|
353
|
-
n.HEAPU8 =
|
|
354
|
-
n.HEAPU16 =
|
|
355
|
-
n.HEAPU32 =
|
|
356
|
-
n.HEAPF32 =
|
|
357
|
-
n.HEAPF64 =
|
|
346
|
+
"object" != typeof WebAssembly && sa("no native wasm support detected");
|
|
347
|
+
var ta, A, ua = !1, C, G, I, va, J, K, wa, xa;
|
|
348
|
+
function ya() {
|
|
349
|
+
var a = ta.buffer;
|
|
350
|
+
n.HEAP8 = C = new Int8Array(a);
|
|
351
|
+
n.HEAP16 = I = new Int16Array(a);
|
|
352
|
+
n.HEAP32 = J = new Int32Array(a);
|
|
353
|
+
n.HEAPU8 = G = new Uint8Array(a);
|
|
354
|
+
n.HEAPU16 = va = new Uint16Array(a);
|
|
355
|
+
n.HEAPU32 = K = new Uint32Array(a);
|
|
356
|
+
n.HEAPF32 = wa = new Float32Array(a);
|
|
357
|
+
n.HEAPF64 = xa = new Float64Array(a);
|
|
358
358
|
}
|
|
359
|
-
var
|
|
360
|
-
function
|
|
359
|
+
var za, Aa = [], Ba = [], Ca = [];
|
|
360
|
+
function Da() {
|
|
361
361
|
var a = n.preRun.shift();
|
|
362
|
-
|
|
362
|
+
Aa.unshift(a);
|
|
363
363
|
}
|
|
364
|
-
var
|
|
365
|
-
function
|
|
364
|
+
var Ea = 0, Fa = null, Ga = null;
|
|
365
|
+
function sa(a) {
|
|
366
366
|
if (n.onAbort) {
|
|
367
367
|
n.onAbort(a);
|
|
368
368
|
}
|
|
369
369
|
a = "Aborted(" + a + ")";
|
|
370
|
-
|
|
371
|
-
|
|
370
|
+
z(a);
|
|
371
|
+
ua = !0;
|
|
372
372
|
a = new WebAssembly.RuntimeError(a + ". Build with -sASSERTIONS for more info.");
|
|
373
373
|
ba(a);
|
|
374
374
|
throw a;
|
|
375
375
|
}
|
|
376
|
-
function
|
|
376
|
+
function Ha(a) {
|
|
377
377
|
return a.startsWith("data:application/octet-stream;base64,");
|
|
378
378
|
}
|
|
379
|
-
var
|
|
380
|
-
|
|
381
|
-
if (!Ia
|
|
382
|
-
var
|
|
383
|
-
|
|
379
|
+
var Ia;
|
|
380
|
+
Ia = "webgl2_advanced.wasm";
|
|
381
|
+
if (!Ha(Ia)) {
|
|
382
|
+
var Ja = Ia;
|
|
383
|
+
Ia = n.locateFile ? n.locateFile(Ja, w) : w + Ja;
|
|
384
384
|
}
|
|
385
|
-
function
|
|
386
|
-
if (a ==
|
|
387
|
-
return new Uint8Array(
|
|
385
|
+
function Ka(a) {
|
|
386
|
+
if (a == Ia && ra) {
|
|
387
|
+
return new Uint8Array(ra);
|
|
388
388
|
}
|
|
389
389
|
if (pa) {
|
|
390
390
|
return pa(a);
|
|
391
391
|
}
|
|
392
392
|
throw "both async and sync fetching of the wasm failed";
|
|
393
393
|
}
|
|
394
|
-
function
|
|
395
|
-
if (!
|
|
394
|
+
function La(a) {
|
|
395
|
+
if (!ra && (ma || na)) {
|
|
396
396
|
if ("function" == typeof fetch && !a.startsWith("file://")) {
|
|
397
397
|
return fetch(a, {credentials:"same-origin"}).then(b => {
|
|
398
398
|
if (!b.ok) {
|
|
399
399
|
throw "failed to load wasm binary file at '" + a + "'";
|
|
400
400
|
}
|
|
401
401
|
return b.arrayBuffer();
|
|
402
|
-
}).catch(() =>
|
|
402
|
+
}).catch(() => Ka(a));
|
|
403
403
|
}
|
|
404
404
|
if (oa) {
|
|
405
405
|
return new Promise((b, c) => {
|
|
@@ -407,23 +407,23 @@ function Ma(a) {
|
|
|
407
407
|
});
|
|
408
408
|
}
|
|
409
409
|
}
|
|
410
|
-
return Promise.resolve().then(() =>
|
|
410
|
+
return Promise.resolve().then(() => Ka(a));
|
|
411
411
|
}
|
|
412
|
-
function
|
|
413
|
-
return
|
|
414
|
-
|
|
415
|
-
|
|
412
|
+
function Ma(a, b, c) {
|
|
413
|
+
return La(a).then(d => WebAssembly.instantiate(d, b)).then(d => d).then(c, d => {
|
|
414
|
+
z("failed to asynchronously prepare wasm: " + d);
|
|
415
|
+
sa(d);
|
|
416
416
|
});
|
|
417
417
|
}
|
|
418
|
-
function
|
|
419
|
-
var c =
|
|
420
|
-
return
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
return
|
|
418
|
+
function Na(a, b) {
|
|
419
|
+
var c = Ia;
|
|
420
|
+
return ra || "function" != typeof WebAssembly.instantiateStreaming || Ha(c) || c.startsWith("file://") || "function" != typeof fetch ? Ma(c, a, b) : fetch(c, {credentials:"same-origin"}).then(d => WebAssembly.instantiateStreaming(d, a).then(b, function(e) {
|
|
421
|
+
z("wasm streaming compile failed: " + e);
|
|
422
|
+
z("falling back to ArrayBuffer instantiation");
|
|
423
|
+
return Ma(c, a, b);
|
|
424
424
|
}));
|
|
425
425
|
}
|
|
426
|
-
var
|
|
426
|
+
var Oa, Pa, Ta = {491140:(a, b, c, d, e) => {
|
|
427
427
|
if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
|
|
428
428
|
return 0;
|
|
429
429
|
}
|
|
@@ -471,7 +471,7 @@ var Pa, Qa, Ua = {488613:(a, b, c, d, e) => {
|
|
|
471
471
|
for (var g = 0; g < f.C.length; ++g) {
|
|
472
472
|
var m = f.C[g];
|
|
473
473
|
null != m && null != m.J && m.state === f.ha.rb && m.J.resume().then(() => {
|
|
474
|
-
|
|
474
|
+
Qa(m.jb);
|
|
475
475
|
}, p => {
|
|
476
476
|
console.error("Failed to resume audiocontext", p);
|
|
477
477
|
});
|
|
@@ -486,9 +486,9 @@ var Pa, Qa, Ua = {488613:(a, b, c, d, e) => {
|
|
|
486
486
|
}
|
|
487
487
|
window.h.Da += 1;
|
|
488
488
|
return 1;
|
|
489
|
-
},
|
|
489
|
+
}, 493318:() => {
|
|
490
490
|
"undefined" !== typeof window.h && (--window.h.Da, 0 === window.h.Da && delete window.h);
|
|
491
|
-
},
|
|
491
|
+
}, 493482:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 493586:() => {
|
|
492
492
|
try {
|
|
493
493
|
var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
|
|
494
494
|
a.close();
|
|
@@ -496,7 +496,7 @@ var Pa, Qa, Ua = {488613:(a, b, c, d, e) => {
|
|
|
496
496
|
} catch (c) {
|
|
497
497
|
return 0;
|
|
498
498
|
}
|
|
499
|
-
},
|
|
499
|
+
}, 493757:(a, b, c, d, e, f) => {
|
|
500
500
|
if ("undefined" === typeof window.h) {
|
|
501
501
|
return -1;
|
|
502
502
|
}
|
|
@@ -510,7 +510,7 @@ var Pa, Qa, Ua = {488613:(a, b, c, d, e) => {
|
|
|
510
510
|
g.Y = g.J.createScriptProcessor(d, c, b);
|
|
511
511
|
g.Y.onaudioprocess = function(p) {
|
|
512
512
|
if (null == g.wa || 0 == g.wa.length) {
|
|
513
|
-
g.wa = new Float32Array(
|
|
513
|
+
g.wa = new Float32Array(wa.buffer, e, d * b);
|
|
514
514
|
}
|
|
515
515
|
if (a == window.h.I.capture || a == window.h.I.La) {
|
|
516
516
|
for (var l = 0; l < b; l += 1) {
|
|
@@ -518,10 +518,10 @@ var Pa, Qa, Ua = {488613:(a, b, c, d, e) => {
|
|
|
518
518
|
u[x * b + l] = t[x];
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
|
-
|
|
521
|
+
Ra(f, d, e);
|
|
522
522
|
}
|
|
523
523
|
if (a == window.h.I.Ba || a == window.h.I.La) {
|
|
524
|
-
for (
|
|
524
|
+
for (Sa(f, d, e), l = 0; l < p.outputBuffer.numberOfChannels; ++l) {
|
|
525
525
|
for (t = p.outputBuffer.getChannelData(l), u = g.wa, x = 0; x < d; x += 1) {
|
|
526
526
|
t[x] = u[x * b + l];
|
|
527
527
|
}
|
|
@@ -542,7 +542,7 @@ var Pa, Qa, Ua = {488613:(a, b, c, d, e) => {
|
|
|
542
542
|
a == window.h.I.Ba && g.Y.connect(g.J.destination);
|
|
543
543
|
g.jb = f;
|
|
544
544
|
return window.h.lc(g);
|
|
545
|
-
},
|
|
545
|
+
}, 496634:a => window.h.va(a).J.sampleRate, 496707:a => {
|
|
546
546
|
a = window.h.va(a);
|
|
547
547
|
void 0 !== a.Y && (a.Y.onaudioprocess = function() {
|
|
548
548
|
}, a.Y.disconnect(), a.Y = void 0);
|
|
@@ -550,21 +550,21 @@ var Pa, Qa, Ua = {488613:(a, b, c, d, e) => {
|
|
|
550
550
|
a.J.close();
|
|
551
551
|
a.J = void 0;
|
|
552
552
|
a.jb = void 0;
|
|
553
|
-
},
|
|
553
|
+
}, 497107:a => {
|
|
554
554
|
window.h.wb(a);
|
|
555
|
-
},
|
|
555
|
+
}, 497157:a => {
|
|
556
556
|
a = window.h.va(a);
|
|
557
557
|
a.J.resume();
|
|
558
558
|
a.state = window.h.ha.rb;
|
|
559
|
-
},
|
|
559
|
+
}, 497296:a => {
|
|
560
560
|
a = window.h.va(a);
|
|
561
561
|
a.J.suspend();
|
|
562
562
|
a.state = window.h.ha.stopped;
|
|
563
|
-
}},
|
|
563
|
+
}}, Ua = a => {
|
|
564
564
|
for (; 0 < a.length;) {
|
|
565
565
|
a.shift()(n);
|
|
566
566
|
}
|
|
567
|
-
},
|
|
567
|
+
}, Va = (a, b) => {
|
|
568
568
|
for (var c = 0, d = a.length - 1; 0 <= d; d--) {
|
|
569
569
|
var e = a[d];
|
|
570
570
|
"." === e ? a.splice(d, 1) : ".." === e ? (a.splice(d, 1), c++) : c && (a.splice(d, 1), c--);
|
|
@@ -575,12 +575,12 @@ var Pa, Qa, Ua = {488613:(a, b, c, d, e) => {
|
|
|
575
575
|
}
|
|
576
576
|
}
|
|
577
577
|
return a;
|
|
578
|
-
},
|
|
578
|
+
}, Wa = a => {
|
|
579
579
|
var b = "/" === a.charAt(0), c = "/" === a.substr(-1);
|
|
580
|
-
(a =
|
|
580
|
+
(a = Va(a.split("/").filter(d => !!d), !b).join("/")) || b || (a = ".");
|
|
581
581
|
a && c && (a += "/");
|
|
582
582
|
return (b ? "/" : "") + a;
|
|
583
|
-
},
|
|
583
|
+
}, Xa = a => {
|
|
584
584
|
var b = /^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(a).slice(1);
|
|
585
585
|
a = b[0];
|
|
586
586
|
b = b[1];
|
|
@@ -589,21 +589,21 @@ var Pa, Qa, Ua = {488613:(a, b, c, d, e) => {
|
|
|
589
589
|
}
|
|
590
590
|
b && (b = b.substr(0, b.length - 1));
|
|
591
591
|
return a + b;
|
|
592
|
-
},
|
|
592
|
+
}, Ya = a => {
|
|
593
593
|
if ("/" === a) {
|
|
594
594
|
return "/";
|
|
595
595
|
}
|
|
596
|
-
a =
|
|
596
|
+
a = Wa(a);
|
|
597
597
|
a = a.replace(/\/$/, "");
|
|
598
598
|
var b = a.lastIndexOf("/");
|
|
599
599
|
return -1 === b ? a : a.substr(b + 1);
|
|
600
|
-
},
|
|
600
|
+
}, Za = () => {
|
|
601
601
|
if ("object" == typeof crypto && "function" == typeof crypto.getRandomValues) {
|
|
602
602
|
return a => crypto.getRandomValues(a);
|
|
603
603
|
}
|
|
604
|
-
|
|
605
|
-
},
|
|
606
|
-
function
|
|
604
|
+
sa("initRandomDevice");
|
|
605
|
+
}, $a = a => ($a = Za())(a);
|
|
606
|
+
function ab() {
|
|
607
607
|
for (var a = "", b = !1, c = arguments.length - 1; -1 <= c && !b; c--) {
|
|
608
608
|
b = 0 <= c ? arguments[c] : "/";
|
|
609
609
|
if ("string" != typeof b) {
|
|
@@ -615,16 +615,16 @@ function bb() {
|
|
|
615
615
|
a = b + "/" + a;
|
|
616
616
|
b = "/" === b.charAt(0);
|
|
617
617
|
}
|
|
618
|
-
a =
|
|
618
|
+
a = Va(a.split("/").filter(d => !!d), !b).join("/");
|
|
619
619
|
return (b ? "/" : "") + a || ".";
|
|
620
620
|
}
|
|
621
|
-
var
|
|
621
|
+
var bb = "undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0, L = (a, b, c) => {
|
|
622
622
|
var d = b + c;
|
|
623
623
|
for (c = b; a[c] && !(c >= d);) {
|
|
624
624
|
++c;
|
|
625
625
|
}
|
|
626
|
-
if (16 < c - b && a.buffer &&
|
|
627
|
-
return
|
|
626
|
+
if (16 < c - b && a.buffer && bb) {
|
|
627
|
+
return bb.decode(a.subarray(b, c));
|
|
628
628
|
}
|
|
629
629
|
for (d = ""; b < c;) {
|
|
630
630
|
var e = a[b++];
|
|
@@ -642,13 +642,13 @@ var cb = "undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0, K
|
|
|
642
642
|
}
|
|
643
643
|
}
|
|
644
644
|
return d;
|
|
645
|
-
},
|
|
645
|
+
}, cb = [], db = a => {
|
|
646
646
|
for (var b = 0, c = 0; c < a.length; ++c) {
|
|
647
647
|
var d = a.charCodeAt(c);
|
|
648
648
|
127 >= d ? b++ : 2047 >= d ? b += 2 : 55296 <= d && 57343 >= d ? (b += 4, ++c) : b += 3;
|
|
649
649
|
}
|
|
650
650
|
return b;
|
|
651
|
-
},
|
|
651
|
+
}, eb = (a, b, c, d) => {
|
|
652
652
|
if (!(0 < d)) {
|
|
653
653
|
return 0;
|
|
654
654
|
}
|
|
@@ -692,21 +692,21 @@ var cb = "undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0, K
|
|
|
692
692
|
b[c] = 0;
|
|
693
693
|
return c - e;
|
|
694
694
|
};
|
|
695
|
-
function
|
|
696
|
-
var c = Array(
|
|
697
|
-
a =
|
|
695
|
+
function fb(a, b) {
|
|
696
|
+
var c = Array(db(a) + 1);
|
|
697
|
+
a = eb(a, c, 0, c.length);
|
|
698
698
|
b && (c.length = a);
|
|
699
699
|
return c;
|
|
700
700
|
}
|
|
701
|
-
var
|
|
702
|
-
function
|
|
703
|
-
|
|
704
|
-
|
|
701
|
+
var gb = [];
|
|
702
|
+
function hb(a, b) {
|
|
703
|
+
gb[a] = {input:[], D:[], U:b};
|
|
704
|
+
ib(a, jb);
|
|
705
705
|
}
|
|
706
|
-
var
|
|
707
|
-
var b =
|
|
706
|
+
var jb = {open:function(a) {
|
|
707
|
+
var b = gb[a.node.Ca];
|
|
708
708
|
if (!b) {
|
|
709
|
-
throw new
|
|
709
|
+
throw new M(43);
|
|
710
710
|
}
|
|
711
711
|
a.s = b;
|
|
712
712
|
a.seekable = !1;
|
|
@@ -716,16 +716,16 @@ var kb = {open:function(a) {
|
|
|
716
716
|
a.s.U.ua(a.s);
|
|
717
717
|
}, read:function(a, b, c, d) {
|
|
718
718
|
if (!a.s || !a.s.U.cb) {
|
|
719
|
-
throw new
|
|
719
|
+
throw new M(60);
|
|
720
720
|
}
|
|
721
721
|
for (var e = 0, f = 0; f < d; f++) {
|
|
722
722
|
try {
|
|
723
723
|
var g = a.s.U.cb(a.s);
|
|
724
724
|
} catch (m) {
|
|
725
|
-
throw new
|
|
725
|
+
throw new M(29);
|
|
726
726
|
}
|
|
727
727
|
if (void 0 === g && 0 === e) {
|
|
728
|
-
throw new
|
|
728
|
+
throw new M(6);
|
|
729
729
|
}
|
|
730
730
|
if (null === g || void 0 === g) {
|
|
731
731
|
break;
|
|
@@ -737,59 +737,59 @@ var kb = {open:function(a) {
|
|
|
737
737
|
return e;
|
|
738
738
|
}, write:function(a, b, c, d) {
|
|
739
739
|
if (!a.s || !a.s.U.Oa) {
|
|
740
|
-
throw new
|
|
740
|
+
throw new M(60);
|
|
741
741
|
}
|
|
742
742
|
try {
|
|
743
743
|
for (var e = 0; e < d; e++) {
|
|
744
744
|
a.s.U.Oa(a.s, b[c + e]);
|
|
745
745
|
}
|
|
746
746
|
} catch (f) {
|
|
747
|
-
throw new
|
|
747
|
+
throw new M(29);
|
|
748
748
|
}
|
|
749
749
|
d && (a.node.timestamp = Date.now());
|
|
750
750
|
return e;
|
|
751
|
-
},},
|
|
751
|
+
},}, kb = {cb:function() {
|
|
752
752
|
a: {
|
|
753
|
-
if (!
|
|
753
|
+
if (!cb.length) {
|
|
754
754
|
var a = null;
|
|
755
755
|
"undefined" != typeof window && "function" == typeof window.prompt ? (a = window.prompt("Input: "), null !== a && (a += "\n")) : "function" == typeof readline && (a = readline(), null !== a && (a += "\n"));
|
|
756
756
|
if (!a) {
|
|
757
757
|
a = null;
|
|
758
758
|
break a;
|
|
759
759
|
}
|
|
760
|
-
|
|
760
|
+
cb = fb(a, !0);
|
|
761
761
|
}
|
|
762
|
-
a =
|
|
762
|
+
a = cb.shift();
|
|
763
763
|
}
|
|
764
764
|
return a;
|
|
765
765
|
}, Oa:function(a, b) {
|
|
766
|
-
null === b || 10 === b ? (qa(
|
|
766
|
+
null === b || 10 === b ? (qa(L(a.D, 0)), a.D = []) : 0 != b && a.D.push(b);
|
|
767
767
|
}, ua:function(a) {
|
|
768
|
-
a.D && 0 < a.D.length && (qa(
|
|
768
|
+
a.D && 0 < a.D.length && (qa(L(a.D, 0)), a.D = []);
|
|
769
769
|
}, Ub:function() {
|
|
770
770
|
return {sc:25856, uc:5, rc:191, tc:35387, qc:[3, 28, 127, 21, 4, 0, 1, 0, 17, 19, 26, 0, 18, 15, 23, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,]};
|
|
771
771
|
}, Vb:function() {
|
|
772
772
|
return 0;
|
|
773
773
|
}, Wb:function() {
|
|
774
774
|
return [24, 80];
|
|
775
|
-
},},
|
|
776
|
-
null === b || 10 === b ? (
|
|
775
|
+
},}, lb = {Oa:function(a, b) {
|
|
776
|
+
null === b || 10 === b ? (z(L(a.D, 0)), a.D = []) : 0 != b && a.D.push(b);
|
|
777
777
|
}, ua:function(a) {
|
|
778
|
-
a.D && 0 < a.D.length && (
|
|
778
|
+
a.D && 0 < a.D.length && (z(L(a.D, 0)), a.D = []);
|
|
779
779
|
},};
|
|
780
|
-
function
|
|
780
|
+
function mb(a, b) {
|
|
781
781
|
var c = a.j ? a.j.length : 0;
|
|
782
782
|
c >= b || (b = Math.max(b, c * (1048576 > c ? 2.0 : 1.125) >>> 0), 0 != c && (b = Math.max(b, 256)), c = a.j, a.j = new Uint8Array(b), 0 < a.v && a.j.set(c.subarray(0, a.v), 0));
|
|
783
783
|
}
|
|
784
|
-
var
|
|
785
|
-
return
|
|
784
|
+
var N = {O:null, T() {
|
|
785
|
+
return N.createNode(null, "/", 16895, 0);
|
|
786
786
|
}, createNode(a, b, c, d) {
|
|
787
787
|
if (24576 === (c & 61440) || 4096 === (c & 61440)) {
|
|
788
|
-
throw new
|
|
788
|
+
throw new M(63);
|
|
789
789
|
}
|
|
790
|
-
|
|
791
|
-
c =
|
|
792
|
-
16384 === (c.mode & 61440) ? (c.l =
|
|
790
|
+
N.O || (N.O = {dir:{node:{X:N.l.X, P:N.l.P, ma:N.l.ma, za:N.l.za, pb:N.l.pb, ub:N.l.ub, qb:N.l.qb, nb:N.l.nb, Fa:N.l.Fa}, stream:{aa:N.m.aa}}, file:{node:{X:N.l.X, P:N.l.P}, stream:{aa:N.m.aa, read:N.m.read, write:N.m.write, ta:N.m.ta, fb:N.m.fb, hb:N.m.hb}}, link:{node:{X:N.l.X, P:N.l.P, na:N.l.na}, stream:{}}, Va:{node:{X:N.l.X, P:N.l.P}, stream:nb}});
|
|
791
|
+
c = ob(a, b, c, d);
|
|
792
|
+
16384 === (c.mode & 61440) ? (c.l = N.O.dir.node, c.m = N.O.dir.stream, c.j = {}) : 32768 === (c.mode & 61440) ? (c.l = N.O.file.node, c.m = N.O.file.stream, c.v = 0, c.j = null) : 40960 === (c.mode & 61440) ? (c.l = N.O.link.node, c.m = N.O.link.stream) : 8192 === (c.mode & 61440) && (c.l = N.O.Va.node, c.m = N.O.Va.stream);
|
|
793
793
|
c.timestamp = Date.now();
|
|
794
794
|
a && (a.j[b] = c, a.timestamp = c.timestamp);
|
|
795
795
|
return c;
|
|
@@ -825,18 +825,18 @@ var M = {O:null, T() {
|
|
|
825
825
|
}
|
|
826
826
|
}
|
|
827
827
|
}, ma() {
|
|
828
|
-
throw
|
|
828
|
+
throw pb[44];
|
|
829
829
|
}, za(a, b, c, d) {
|
|
830
|
-
return
|
|
830
|
+
return N.createNode(a, b, c, d);
|
|
831
831
|
}, pb(a, b, c) {
|
|
832
832
|
if (16384 === (a.mode & 61440)) {
|
|
833
833
|
try {
|
|
834
|
-
var d =
|
|
834
|
+
var d = qb(b, c);
|
|
835
835
|
} catch (f) {
|
|
836
836
|
}
|
|
837
837
|
if (d) {
|
|
838
838
|
for (var e in d.j) {
|
|
839
|
-
throw new
|
|
839
|
+
throw new M(55);
|
|
840
840
|
}
|
|
841
841
|
}
|
|
842
842
|
}
|
|
@@ -850,9 +850,9 @@ var M = {O:null, T() {
|
|
|
850
850
|
delete a.j[b];
|
|
851
851
|
a.timestamp = Date.now();
|
|
852
852
|
}, qb(a, b) {
|
|
853
|
-
var c =
|
|
853
|
+
var c = qb(a, b), d;
|
|
854
854
|
for (d in c.j) {
|
|
855
|
-
throw new
|
|
855
|
+
throw new M(55);
|
|
856
856
|
}
|
|
857
857
|
delete a.j[b];
|
|
858
858
|
a.timestamp = Date.now();
|
|
@@ -863,12 +863,12 @@ var M = {O:null, T() {
|
|
|
863
863
|
}
|
|
864
864
|
return b;
|
|
865
865
|
}, Fa(a, b, c) {
|
|
866
|
-
a =
|
|
866
|
+
a = N.createNode(a, b, 41471, 0);
|
|
867
867
|
a.link = c;
|
|
868
868
|
return a;
|
|
869
869
|
}, na(a) {
|
|
870
870
|
if (40960 !== (a.mode & 61440)) {
|
|
871
|
-
throw new
|
|
871
|
+
throw new M(28);
|
|
872
872
|
}
|
|
873
873
|
return a.link;
|
|
874
874
|
},}, m:{read(a, b, c, d, e) {
|
|
@@ -886,7 +886,7 @@ var M = {O:null, T() {
|
|
|
886
886
|
}
|
|
887
887
|
return a;
|
|
888
888
|
}, write(a, b, c, d, e, f) {
|
|
889
|
-
b.buffer ===
|
|
889
|
+
b.buffer === C.buffer && (f = !1);
|
|
890
890
|
if (!d) {
|
|
891
891
|
return 0;
|
|
892
892
|
}
|
|
@@ -903,7 +903,7 @@ var M = {O:null, T() {
|
|
|
903
903
|
return a.j.set(b.subarray(c, c + d), e), d;
|
|
904
904
|
}
|
|
905
905
|
}
|
|
906
|
-
|
|
906
|
+
mb(a, e + d);
|
|
907
907
|
if (a.j.subarray && b.subarray) {
|
|
908
908
|
a.j.set(b.subarray(c, c + d), e);
|
|
909
909
|
} else {
|
|
@@ -916,70 +916,70 @@ var M = {O:null, T() {
|
|
|
916
916
|
}, aa(a, b, c) {
|
|
917
917
|
1 === c ? b += a.position : 2 === c && 32768 === (a.node.mode & 61440) && (b += a.node.v);
|
|
918
918
|
if (0 > b) {
|
|
919
|
-
throw new
|
|
919
|
+
throw new M(28);
|
|
920
920
|
}
|
|
921
921
|
return b;
|
|
922
922
|
}, ta(a, b, c) {
|
|
923
|
-
|
|
923
|
+
mb(a.node, b + c);
|
|
924
924
|
a.node.v = Math.max(a.node.v, b + c);
|
|
925
925
|
}, fb(a, b, c, d, e) {
|
|
926
926
|
if (32768 !== (a.node.mode & 61440)) {
|
|
927
|
-
throw new
|
|
927
|
+
throw new M(43);
|
|
928
928
|
}
|
|
929
929
|
a = a.node.j;
|
|
930
|
-
if (e & 2 || a.buffer !==
|
|
930
|
+
if (e & 2 || a.buffer !== C.buffer) {
|
|
931
931
|
if (0 < c || c + b < a.length) {
|
|
932
932
|
a.subarray ? a = a.subarray(c, c + b) : a = Array.prototype.slice.call(a, c, c + b);
|
|
933
933
|
}
|
|
934
934
|
c = !0;
|
|
935
|
-
|
|
935
|
+
sa();
|
|
936
936
|
b = void 0;
|
|
937
937
|
if (!b) {
|
|
938
|
-
throw new
|
|
938
|
+
throw new M(48);
|
|
939
939
|
}
|
|
940
|
-
|
|
940
|
+
C.set(a, b);
|
|
941
941
|
} else {
|
|
942
942
|
c = !1, b = a.byteOffset;
|
|
943
943
|
}
|
|
944
944
|
return {o:b, M:c};
|
|
945
945
|
}, hb(a, b, c, d) {
|
|
946
|
-
|
|
946
|
+
N.m.write(a, b, 0, d, c, !1);
|
|
947
947
|
return 0;
|
|
948
948
|
},},};
|
|
949
|
-
function
|
|
949
|
+
function sb(a, b) {
|
|
950
950
|
var c = 0;
|
|
951
951
|
a && (c |= 365);
|
|
952
952
|
b && (c |= 146);
|
|
953
953
|
return c;
|
|
954
954
|
}
|
|
955
|
-
var
|
|
956
|
-
a =
|
|
955
|
+
var tb = null, ub = {}, vb = [], wb = 1, xb = null, yb = !0, M = null, pb = {}, Ab = (a, b = {}) => {
|
|
956
|
+
a = ab(a);
|
|
957
957
|
if (!a) {
|
|
958
958
|
return {path:"", node:null};
|
|
959
959
|
}
|
|
960
960
|
b = Object.assign({ab:!0, Qa:0}, b);
|
|
961
961
|
if (8 < b.Qa) {
|
|
962
|
-
throw new
|
|
962
|
+
throw new M(32);
|
|
963
963
|
}
|
|
964
964
|
a = a.split("/").filter(g => !!g);
|
|
965
|
-
for (var c =
|
|
965
|
+
for (var c = tb, d = "/", e = 0; e < a.length; e++) {
|
|
966
966
|
var f = e === a.length - 1;
|
|
967
967
|
if (f && b.parent) {
|
|
968
968
|
break;
|
|
969
969
|
}
|
|
970
|
-
c =
|
|
971
|
-
d =
|
|
970
|
+
c = qb(c, a[e]);
|
|
971
|
+
d = Wa(d + "/" + a[e]);
|
|
972
972
|
c.Aa && (!f || f && b.ab) && (c = c.Aa.root);
|
|
973
973
|
if (!f || b.$a) {
|
|
974
974
|
for (f = 0; 40960 === (c.mode & 61440);) {
|
|
975
|
-
if (c =
|
|
976
|
-
throw new
|
|
975
|
+
if (c = zb(d), d = ab(Xa(d), c), c = Ab(d, {Qa:b.Qa + 1}).node, 40 < f++) {
|
|
976
|
+
throw new M(32);
|
|
977
977
|
}
|
|
978
978
|
}
|
|
979
979
|
}
|
|
980
980
|
}
|
|
981
981
|
return {path:d, node:c};
|
|
982
|
-
},
|
|
982
|
+
}, Bb = a => {
|
|
983
983
|
for (var b;;) {
|
|
984
984
|
if (a === a.parent) {
|
|
985
985
|
return a = a.T.gb, b ? "/" !== a[a.length - 1] ? `${a}/${b}` : a + b : a;
|
|
@@ -987,34 +987,34 @@ var ub = null, vb = {}, wb = [], xb = 1, yb = null, zb = !0, L = null, qb = {},
|
|
|
987
987
|
b = b ? `${a.name}/${b}` : a.name;
|
|
988
988
|
a = a.parent;
|
|
989
989
|
}
|
|
990
|
-
},
|
|
990
|
+
}, Cb = (a, b) => {
|
|
991
991
|
for (var c = 0, d = 0; d < b.length; d++) {
|
|
992
992
|
c = (c << 5) - c + b.charCodeAt(d) | 0;
|
|
993
993
|
}
|
|
994
|
-
return (a + c >>> 0) %
|
|
995
|
-
},
|
|
994
|
+
return (a + c >>> 0) % xb.length;
|
|
995
|
+
}, qb = (a, b) => {
|
|
996
996
|
var c;
|
|
997
|
-
if (c = (c =
|
|
998
|
-
throw new
|
|
997
|
+
if (c = (c = Db(a, "x")) ? c : a.l.ma ? 0 : 2) {
|
|
998
|
+
throw new M(c, a);
|
|
999
999
|
}
|
|
1000
|
-
for (c =
|
|
1000
|
+
for (c = xb[Cb(a.id, b)]; c; c = c.Zb) {
|
|
1001
1001
|
var d = c.name;
|
|
1002
1002
|
if (c.parent.id === a.id && d === b) {
|
|
1003
1003
|
return c;
|
|
1004
1004
|
}
|
|
1005
1005
|
}
|
|
1006
1006
|
return a.l.ma(a, b);
|
|
1007
|
-
},
|
|
1008
|
-
a = new
|
|
1009
|
-
b =
|
|
1010
|
-
a.Zb =
|
|
1011
|
-
return
|
|
1012
|
-
},
|
|
1007
|
+
}, ob = (a, b, c, d) => {
|
|
1008
|
+
a = new Eb(a, b, c, d);
|
|
1009
|
+
b = Cb(a.parent.id, a.name);
|
|
1010
|
+
a.Zb = xb[b];
|
|
1011
|
+
return xb[b] = a;
|
|
1012
|
+
}, Fb = a => {
|
|
1013
1013
|
var b = ["r", "w", "rw"][a & 3];
|
|
1014
1014
|
a & 512 && (b += "w");
|
|
1015
1015
|
return b;
|
|
1016
|
-
},
|
|
1017
|
-
if (
|
|
1016
|
+
}, Db = (a, b) => {
|
|
1017
|
+
if (yb) {
|
|
1018
1018
|
return 0;
|
|
1019
1019
|
}
|
|
1020
1020
|
if (!b.includes("r") || a.mode & 292) {
|
|
@@ -1025,29 +1025,29 @@ var ub = null, vb = {}, wb = [], xb = 1, yb = null, zb = !0, L = null, qb = {},
|
|
|
1025
1025
|
return 2;
|
|
1026
1026
|
}
|
|
1027
1027
|
return 0;
|
|
1028
|
-
},
|
|
1028
|
+
}, Gb = (a, b) => {
|
|
1029
1029
|
try {
|
|
1030
|
-
return
|
|
1030
|
+
return qb(a, b), 20;
|
|
1031
1031
|
} catch (c) {
|
|
1032
1032
|
}
|
|
1033
|
-
return
|
|
1034
|
-
},
|
|
1033
|
+
return Db(a, "wx");
|
|
1034
|
+
}, Hb = () => {
|
|
1035
1035
|
for (var a = 0; 4096 >= a; a++) {
|
|
1036
|
-
if (!
|
|
1036
|
+
if (!vb[a]) {
|
|
1037
1037
|
return a;
|
|
1038
1038
|
}
|
|
1039
1039
|
}
|
|
1040
|
-
throw new
|
|
1041
|
-
},
|
|
1042
|
-
a =
|
|
1040
|
+
throw new M(33);
|
|
1041
|
+
}, Ib = a => {
|
|
1042
|
+
a = vb[a];
|
|
1043
1043
|
if (!a) {
|
|
1044
|
-
throw new
|
|
1044
|
+
throw new M(8);
|
|
1045
1045
|
}
|
|
1046
1046
|
return a;
|
|
1047
|
-
},
|
|
1048
|
-
|
|
1047
|
+
}, Kb = (a, b = -1) => {
|
|
1048
|
+
Jb || (Jb = function() {
|
|
1049
1049
|
this.h = {};
|
|
1050
|
-
},
|
|
1050
|
+
}, Jb.prototype = {}, Object.defineProperties(Jb.prototype, {object:{get() {
|
|
1051
1051
|
return this.node;
|
|
1052
1052
|
}, set(c) {
|
|
1053
1053
|
this.node = c;
|
|
@@ -1060,84 +1060,84 @@ var ub = null, vb = {}, wb = [], xb = 1, yb = null, zb = !0, L = null, qb = {},
|
|
|
1060
1060
|
}, set(c) {
|
|
1061
1061
|
this.h.position = c;
|
|
1062
1062
|
},},}));
|
|
1063
|
-
a = Object.assign(new
|
|
1064
|
-
-1 == b && (b =
|
|
1063
|
+
a = Object.assign(new Jb(), a);
|
|
1064
|
+
-1 == b && (b = Hb());
|
|
1065
1065
|
a.W = b;
|
|
1066
|
-
return
|
|
1067
|
-
},
|
|
1068
|
-
a.m =
|
|
1066
|
+
return vb[b] = a;
|
|
1067
|
+
}, nb = {open:a => {
|
|
1068
|
+
a.m = ub[a.node.Ca].m;
|
|
1069
1069
|
a.m.open && a.m.open(a);
|
|
1070
1070
|
}, aa:() => {
|
|
1071
|
-
throw new
|
|
1072
|
-
},},
|
|
1073
|
-
|
|
1074
|
-
},
|
|
1071
|
+
throw new M(70);
|
|
1072
|
+
},}, ib = (a, b) => {
|
|
1073
|
+
ub[a] = {m:b};
|
|
1074
|
+
}, Lb = (a, b) => {
|
|
1075
1075
|
var c = "/" === b, d = !b;
|
|
1076
|
-
if (c &&
|
|
1077
|
-
throw new
|
|
1076
|
+
if (c && tb) {
|
|
1077
|
+
throw new M(10);
|
|
1078
1078
|
}
|
|
1079
1079
|
if (!c && !d) {
|
|
1080
|
-
var e =
|
|
1080
|
+
var e = Ab(b, {ab:!1});
|
|
1081
1081
|
b = e.path;
|
|
1082
1082
|
e = e.node;
|
|
1083
1083
|
if (e.Aa) {
|
|
1084
|
-
throw new
|
|
1084
|
+
throw new M(10);
|
|
1085
1085
|
}
|
|
1086
1086
|
if (16384 !== (e.mode & 61440)) {
|
|
1087
|
-
throw new
|
|
1087
|
+
throw new M(54);
|
|
1088
1088
|
}
|
|
1089
1089
|
}
|
|
1090
1090
|
b = {type:a, Lc:{}, gb:b, Yb:[]};
|
|
1091
1091
|
a = a.T(b);
|
|
1092
1092
|
a.T = b;
|
|
1093
1093
|
b.root = a;
|
|
1094
|
-
c ?
|
|
1095
|
-
},
|
|
1096
|
-
var d =
|
|
1097
|
-
a =
|
|
1094
|
+
c ? tb = a : e && (e.Aa = b, e.T && e.T.Yb.push(b));
|
|
1095
|
+
}, O = (a, b, c) => {
|
|
1096
|
+
var d = Ab(a, {parent:!0}).node;
|
|
1097
|
+
a = Ya(a);
|
|
1098
1098
|
if (!a || "." === a || ".." === a) {
|
|
1099
|
-
throw new
|
|
1099
|
+
throw new M(28);
|
|
1100
1100
|
}
|
|
1101
|
-
var e =
|
|
1101
|
+
var e = Gb(d, a);
|
|
1102
1102
|
if (e) {
|
|
1103
|
-
throw new
|
|
1103
|
+
throw new M(e);
|
|
1104
1104
|
}
|
|
1105
1105
|
if (!d.l.za) {
|
|
1106
|
-
throw new
|
|
1106
|
+
throw new M(63);
|
|
1107
1107
|
}
|
|
1108
1108
|
return d.l.za(d, a, b, c);
|
|
1109
|
-
},
|
|
1109
|
+
}, Mb = (a, b, c) => {
|
|
1110
1110
|
"undefined" == typeof c && (c = b, b = 438);
|
|
1111
|
-
|
|
1112
|
-
},
|
|
1113
|
-
if (!
|
|
1114
|
-
throw new
|
|
1111
|
+
O(a, b | 8192, c);
|
|
1112
|
+
}, Nb = (a, b) => {
|
|
1113
|
+
if (!ab(a)) {
|
|
1114
|
+
throw new M(44);
|
|
1115
1115
|
}
|
|
1116
|
-
var c =
|
|
1116
|
+
var c = Ab(b, {parent:!0}).node;
|
|
1117
1117
|
if (!c) {
|
|
1118
|
-
throw new
|
|
1118
|
+
throw new M(44);
|
|
1119
1119
|
}
|
|
1120
|
-
b =
|
|
1121
|
-
var d =
|
|
1120
|
+
b = Ya(b);
|
|
1121
|
+
var d = Gb(c, b);
|
|
1122
1122
|
if (d) {
|
|
1123
|
-
throw new
|
|
1123
|
+
throw new M(d);
|
|
1124
1124
|
}
|
|
1125
1125
|
if (!c.l.Fa) {
|
|
1126
|
-
throw new
|
|
1126
|
+
throw new M(63);
|
|
1127
1127
|
}
|
|
1128
1128
|
c.l.Fa(c, b, a);
|
|
1129
|
-
},
|
|
1130
|
-
a =
|
|
1129
|
+
}, zb = a => {
|
|
1130
|
+
a = Ab(a).node;
|
|
1131
1131
|
if (!a) {
|
|
1132
|
-
throw new
|
|
1132
|
+
throw new M(44);
|
|
1133
1133
|
}
|
|
1134
1134
|
if (!a.l.na) {
|
|
1135
|
-
throw new
|
|
1135
|
+
throw new M(28);
|
|
1136
1136
|
}
|
|
1137
|
-
return
|
|
1138
|
-
},
|
|
1137
|
+
return ab(Bb(a.parent), a.l.na(a));
|
|
1138
|
+
}, Pb = (a, b, c) => {
|
|
1139
1139
|
if ("" === a) {
|
|
1140
|
-
throw new
|
|
1140
|
+
throw new M(44);
|
|
1141
1141
|
}
|
|
1142
1142
|
if ("string" == typeof b) {
|
|
1143
1143
|
var d = {r:0, "r+":2, w:577, "w+":578, a:1089, "a+":1090,}[b];
|
|
@@ -1150,9 +1150,9 @@ var ub = null, vb = {}, wb = [], xb = 1, yb = null, zb = !0, L = null, qb = {},
|
|
|
1150
1150
|
if ("object" == typeof a) {
|
|
1151
1151
|
var e = a;
|
|
1152
1152
|
} else {
|
|
1153
|
-
a =
|
|
1153
|
+
a = Wa(a);
|
|
1154
1154
|
try {
|
|
1155
|
-
e =
|
|
1155
|
+
e = Ab(a, {$a:!(b & 131072)}).node;
|
|
1156
1156
|
} catch (f) {
|
|
1157
1157
|
}
|
|
1158
1158
|
}
|
|
@@ -1160,58 +1160,58 @@ var ub = null, vb = {}, wb = [], xb = 1, yb = null, zb = !0, L = null, qb = {},
|
|
|
1160
1160
|
if (b & 64) {
|
|
1161
1161
|
if (e) {
|
|
1162
1162
|
if (b & 128) {
|
|
1163
|
-
throw new
|
|
1163
|
+
throw new M(20);
|
|
1164
1164
|
}
|
|
1165
1165
|
} else {
|
|
1166
|
-
e =
|
|
1166
|
+
e = O(a, c, 0), d = !0;
|
|
1167
1167
|
}
|
|
1168
1168
|
}
|
|
1169
1169
|
if (!e) {
|
|
1170
|
-
throw new
|
|
1170
|
+
throw new M(44);
|
|
1171
1171
|
}
|
|
1172
1172
|
8192 === (e.mode & 61440) && (b &= -513);
|
|
1173
1173
|
if (b & 65536 && 16384 !== (e.mode & 61440)) {
|
|
1174
|
-
throw new
|
|
1174
|
+
throw new M(54);
|
|
1175
1175
|
}
|
|
1176
|
-
if (!d && (c = e ? 40960 === (e.mode & 61440) ? 32 : 16384 === (e.mode & 61440) && ("r" !==
|
|
1177
|
-
throw new
|
|
1176
|
+
if (!d && (c = e ? 40960 === (e.mode & 61440) ? 32 : 16384 === (e.mode & 61440) && ("r" !== Fb(b) || b & 512) ? 31 : Db(e, Fb(b)) : 44)) {
|
|
1177
|
+
throw new M(c);
|
|
1178
1178
|
}
|
|
1179
1179
|
if (b & 512 && !d) {
|
|
1180
1180
|
c = e;
|
|
1181
|
-
c = "string" == typeof c ?
|
|
1181
|
+
c = "string" == typeof c ? Ab(c, {$a:!0}).node : c;
|
|
1182
1182
|
if (!c.l.P) {
|
|
1183
|
-
throw new
|
|
1183
|
+
throw new M(63);
|
|
1184
1184
|
}
|
|
1185
1185
|
if (16384 === (c.mode & 61440)) {
|
|
1186
|
-
throw new
|
|
1186
|
+
throw new M(31);
|
|
1187
1187
|
}
|
|
1188
1188
|
if (32768 !== (c.mode & 61440)) {
|
|
1189
|
-
throw new
|
|
1189
|
+
throw new M(28);
|
|
1190
1190
|
}
|
|
1191
|
-
if (d =
|
|
1192
|
-
throw new
|
|
1191
|
+
if (d = Db(c, "w")) {
|
|
1192
|
+
throw new M(d);
|
|
1193
1193
|
}
|
|
1194
1194
|
c.l.P(c, {size:0, timestamp:Date.now()});
|
|
1195
1195
|
}
|
|
1196
1196
|
b &= -131713;
|
|
1197
|
-
e =
|
|
1197
|
+
e = Kb({node:e, path:Bb(e), flags:b, seekable:!0, position:0, m:e.m, mc:[], error:!1});
|
|
1198
1198
|
e.m.open && e.m.open(e);
|
|
1199
|
-
!n.logReadFiles || b & 1 || (
|
|
1199
|
+
!n.logReadFiles || b & 1 || (Ob || (Ob = {}), a in Ob || (Ob[a] = 1));
|
|
1200
1200
|
return e;
|
|
1201
|
-
},
|
|
1201
|
+
}, Qb = (a, b, c) => {
|
|
1202
1202
|
if (null === a.W) {
|
|
1203
|
-
throw new
|
|
1203
|
+
throw new M(8);
|
|
1204
1204
|
}
|
|
1205
1205
|
if (!a.seekable || !a.m.aa) {
|
|
1206
|
-
throw new
|
|
1206
|
+
throw new M(70);
|
|
1207
1207
|
}
|
|
1208
1208
|
if (0 != c && 1 != c && 2 != c) {
|
|
1209
|
-
throw new
|
|
1209
|
+
throw new M(28);
|
|
1210
1210
|
}
|
|
1211
1211
|
a.position = a.m.aa(a, b, c);
|
|
1212
1212
|
a.mc = [];
|
|
1213
|
-
},
|
|
1214
|
-
|
|
1213
|
+
}, Rb = () => {
|
|
1214
|
+
M || (M = function(a, b) {
|
|
1215
1215
|
this.name = "ErrnoError";
|
|
1216
1216
|
this.node = b;
|
|
1217
1217
|
this.bc = function(c) {
|
|
@@ -1219,16 +1219,16 @@ var ub = null, vb = {}, wb = [], xb = 1, yb = null, zb = !0, L = null, qb = {},
|
|
|
1219
1219
|
};
|
|
1220
1220
|
this.bc(a);
|
|
1221
1221
|
this.message = "FS error";
|
|
1222
|
-
},
|
|
1223
|
-
|
|
1224
|
-
|
|
1222
|
+
}, M.prototype = Error(), M.prototype.constructor = M, [44].forEach(a => {
|
|
1223
|
+
pb[a] = new M(a);
|
|
1224
|
+
pb[a].stack = "<generic error, no stack>";
|
|
1225
1225
|
}));
|
|
1226
|
-
},
|
|
1227
|
-
a =
|
|
1228
|
-
var d =
|
|
1229
|
-
|
|
1230
|
-
var e =
|
|
1231
|
-
|
|
1226
|
+
}, Sb, Ub = (a, b, c) => {
|
|
1227
|
+
a = Wa("/dev/" + a);
|
|
1228
|
+
var d = sb(!!b, !!c);
|
|
1229
|
+
Tb || (Tb = 64);
|
|
1230
|
+
var e = Tb++ << 8 | 0;
|
|
1231
|
+
ib(e, {open:f => {
|
|
1232
1232
|
f.seekable = !1;
|
|
1233
1233
|
}, close:() => {
|
|
1234
1234
|
c && c.buffer && c.buffer.length && c(10);
|
|
@@ -1237,10 +1237,10 @@ var ub = null, vb = {}, wb = [], xb = 1, yb = null, zb = !0, L = null, qb = {},
|
|
|
1237
1237
|
try {
|
|
1238
1238
|
var u = b();
|
|
1239
1239
|
} catch (x) {
|
|
1240
|
-
throw new
|
|
1240
|
+
throw new M(29);
|
|
1241
1241
|
}
|
|
1242
1242
|
if (void 0 === u && 0 === l) {
|
|
1243
|
-
throw new
|
|
1243
|
+
throw new M(6);
|
|
1244
1244
|
}
|
|
1245
1245
|
if (null === u || void 0 === u) {
|
|
1246
1246
|
break;
|
|
@@ -1255,19 +1255,19 @@ var ub = null, vb = {}, wb = [], xb = 1, yb = null, zb = !0, L = null, qb = {},
|
|
|
1255
1255
|
try {
|
|
1256
1256
|
c(g[m + l]);
|
|
1257
1257
|
} catch (t) {
|
|
1258
|
-
throw new
|
|
1258
|
+
throw new M(29);
|
|
1259
1259
|
}
|
|
1260
1260
|
}
|
|
1261
1261
|
p && (f.node.timestamp = Date.now());
|
|
1262
1262
|
return l;
|
|
1263
1263
|
}});
|
|
1264
|
-
|
|
1265
|
-
},
|
|
1266
|
-
function
|
|
1267
|
-
|
|
1268
|
-
return
|
|
1264
|
+
Mb(a, d, e);
|
|
1265
|
+
}, Tb, Vb = {}, Jb, Ob, Wb = void 0;
|
|
1266
|
+
function Xb() {
|
|
1267
|
+
Wb += 4;
|
|
1268
|
+
return J[Wb - 4 >> 2];
|
|
1269
1269
|
}
|
|
1270
|
-
function
|
|
1270
|
+
function Yb(a) {
|
|
1271
1271
|
if (void 0 === a) {
|
|
1272
1272
|
return "_unknown";
|
|
1273
1273
|
}
|
|
@@ -1275,24 +1275,24 @@ function Zb(a) {
|
|
|
1275
1275
|
var b = a.charCodeAt(0);
|
|
1276
1276
|
return 48 <= b && 57 >= b ? `_${a}` : a;
|
|
1277
1277
|
}
|
|
1278
|
-
function
|
|
1279
|
-
a =
|
|
1278
|
+
function Zb(a, b) {
|
|
1279
|
+
a = Yb(a);
|
|
1280
1280
|
return {[a]:function() {
|
|
1281
1281
|
return b.apply(this, arguments);
|
|
1282
1282
|
}}[a];
|
|
1283
1283
|
}
|
|
1284
|
-
function
|
|
1284
|
+
function $b() {
|
|
1285
1285
|
this.M = [void 0];
|
|
1286
1286
|
this.bb = [];
|
|
1287
1287
|
}
|
|
1288
|
-
var
|
|
1289
|
-
function
|
|
1290
|
-
throw new
|
|
1288
|
+
var P = new $b(), ac = void 0;
|
|
1289
|
+
function Q(a) {
|
|
1290
|
+
throw new ac(a);
|
|
1291
1291
|
}
|
|
1292
|
-
var
|
|
1293
|
-
a ||
|
|
1294
|
-
return
|
|
1295
|
-
},
|
|
1292
|
+
var R = a => {
|
|
1293
|
+
a || Q("Cannot use deleted val. handle = " + a);
|
|
1294
|
+
return P.get(a).value;
|
|
1295
|
+
}, bc = a => {
|
|
1296
1296
|
switch(a) {
|
|
1297
1297
|
case void 0:
|
|
1298
1298
|
return 1;
|
|
@@ -1303,11 +1303,11 @@ var Q = a => {
|
|
|
1303
1303
|
case !1:
|
|
1304
1304
|
return 4;
|
|
1305
1305
|
default:
|
|
1306
|
-
return
|
|
1306
|
+
return P.ta({ob:1, value:a});
|
|
1307
1307
|
}
|
|
1308
1308
|
};
|
|
1309
|
-
function
|
|
1310
|
-
var b = Error, c =
|
|
1309
|
+
function cc(a) {
|
|
1310
|
+
var b = Error, c = Zb(a, function(d) {
|
|
1311
1311
|
this.name = a;
|
|
1312
1312
|
this.message = d;
|
|
1313
1313
|
d = Error(d).stack;
|
|
@@ -1320,122 +1320,122 @@ function dc(a) {
|
|
|
1320
1320
|
};
|
|
1321
1321
|
return c;
|
|
1322
1322
|
}
|
|
1323
|
-
var
|
|
1324
|
-
function
|
|
1325
|
-
for (var b = "";
|
|
1326
|
-
b +=
|
|
1323
|
+
var dc = void 0, ec = void 0;
|
|
1324
|
+
function S(a) {
|
|
1325
|
+
for (var b = ""; G[a];) {
|
|
1326
|
+
b += ec[G[a++]];
|
|
1327
1327
|
}
|
|
1328
1328
|
return b;
|
|
1329
1329
|
}
|
|
1330
|
-
var
|
|
1331
|
-
function
|
|
1332
|
-
for (;
|
|
1333
|
-
var a =
|
|
1330
|
+
var fc = [];
|
|
1331
|
+
function gc() {
|
|
1332
|
+
for (; fc.length;) {
|
|
1333
|
+
var a = fc.pop();
|
|
1334
1334
|
a.g.ga = !1;
|
|
1335
1335
|
a["delete"]();
|
|
1336
1336
|
}
|
|
1337
1337
|
}
|
|
1338
|
-
var
|
|
1339
|
-
function
|
|
1340
|
-
for (void 0 === b &&
|
|
1338
|
+
var hc = void 0, ic = {};
|
|
1339
|
+
function jc(a, b) {
|
|
1340
|
+
for (void 0 === b && Q("ptr should not be undefined"); a.A;) {
|
|
1341
1341
|
b = a.pa(b), a = a.A;
|
|
1342
1342
|
}
|
|
1343
1343
|
return b;
|
|
1344
1344
|
}
|
|
1345
|
-
var
|
|
1346
|
-
function
|
|
1347
|
-
a =
|
|
1348
|
-
var b =
|
|
1349
|
-
|
|
1345
|
+
var kc = {};
|
|
1346
|
+
function lc(a) {
|
|
1347
|
+
a = mc(a);
|
|
1348
|
+
var b = S(a);
|
|
1349
|
+
nc(a);
|
|
1350
1350
|
return b;
|
|
1351
1351
|
}
|
|
1352
|
-
function
|
|
1353
|
-
var c =
|
|
1354
|
-
void 0 === c &&
|
|
1352
|
+
function oc(a, b) {
|
|
1353
|
+
var c = kc[a];
|
|
1354
|
+
void 0 === c && Q(b + " has unknown type " + lc(a));
|
|
1355
1355
|
return c;
|
|
1356
1356
|
}
|
|
1357
|
-
function
|
|
1357
|
+
function pc() {
|
|
1358
1358
|
}
|
|
1359
|
-
var
|
|
1360
|
-
function
|
|
1359
|
+
var qc = !1;
|
|
1360
|
+
function rc(a) {
|
|
1361
1361
|
--a.count.value;
|
|
1362
1362
|
0 === a.count.value && (a.G ? a.L.V(a.G) : a.u.i.V(a.o));
|
|
1363
1363
|
}
|
|
1364
|
-
function
|
|
1364
|
+
function sc(a, b, c) {
|
|
1365
1365
|
if (b === c) {
|
|
1366
1366
|
return a;
|
|
1367
1367
|
}
|
|
1368
1368
|
if (void 0 === c.A) {
|
|
1369
1369
|
return null;
|
|
1370
1370
|
}
|
|
1371
|
-
a =
|
|
1371
|
+
a = sc(a, b, c.A);
|
|
1372
1372
|
return null === a ? null : c.Gb(a);
|
|
1373
1373
|
}
|
|
1374
|
-
var
|
|
1375
|
-
function
|
|
1376
|
-
b =
|
|
1377
|
-
return
|
|
1374
|
+
var tc = {};
|
|
1375
|
+
function uc(a, b) {
|
|
1376
|
+
b = jc(a, b);
|
|
1377
|
+
return ic[b];
|
|
1378
1378
|
}
|
|
1379
|
-
var
|
|
1380
|
-
function
|
|
1381
|
-
throw new
|
|
1379
|
+
var vc = void 0;
|
|
1380
|
+
function wc(a) {
|
|
1381
|
+
throw new vc(a);
|
|
1382
1382
|
}
|
|
1383
|
-
function
|
|
1384
|
-
b.u && b.o ||
|
|
1385
|
-
!!b.L !== !!b.G &&
|
|
1383
|
+
function xc(a, b) {
|
|
1384
|
+
b.u && b.o || wc("makeClassHandle requires ptr and ptrType");
|
|
1385
|
+
!!b.L !== !!b.G && wc("Both smartPtrType and smartPtr must be specified");
|
|
1386
1386
|
b.count = {value:1};
|
|
1387
|
-
return
|
|
1387
|
+
return yc(Object.create(a, {g:{value:b,},}));
|
|
1388
1388
|
}
|
|
1389
|
-
function
|
|
1389
|
+
function yc(a) {
|
|
1390
1390
|
if ("undefined" === typeof FinalizationRegistry) {
|
|
1391
|
-
return
|
|
1391
|
+
return yc = b => b, a;
|
|
1392
1392
|
}
|
|
1393
|
-
|
|
1394
|
-
|
|
1393
|
+
qc = new FinalizationRegistry(b => {
|
|
1394
|
+
rc(b.g);
|
|
1395
1395
|
});
|
|
1396
|
-
|
|
1396
|
+
yc = b => {
|
|
1397
1397
|
var c = b.g;
|
|
1398
|
-
c.G &&
|
|
1398
|
+
c.G && qc.register(b, {g:c}, b);
|
|
1399
1399
|
return b;
|
|
1400
1400
|
};
|
|
1401
|
-
|
|
1402
|
-
|
|
1401
|
+
pc = b => {
|
|
1402
|
+
qc.unregister(b);
|
|
1403
1403
|
};
|
|
1404
|
-
return
|
|
1404
|
+
return yc(a);
|
|
1405
1405
|
}
|
|
1406
|
-
var
|
|
1407
|
-
function
|
|
1406
|
+
var zc = {};
|
|
1407
|
+
function Ac(a) {
|
|
1408
1408
|
for (; a.length;) {
|
|
1409
1409
|
var b = a.pop();
|
|
1410
1410
|
a.pop()(b);
|
|
1411
1411
|
}
|
|
1412
1412
|
}
|
|
1413
|
-
function
|
|
1414
|
-
return this.fromWireType(
|
|
1413
|
+
function Bc(a) {
|
|
1414
|
+
return this.fromWireType(J[a >> 2]);
|
|
1415
1415
|
}
|
|
1416
|
-
var
|
|
1417
|
-
function
|
|
1416
|
+
var Cc = {}, Dc = {};
|
|
1417
|
+
function T(a, b, c) {
|
|
1418
1418
|
function d(m) {
|
|
1419
1419
|
m = c(m);
|
|
1420
|
-
m.length !== a.length &&
|
|
1420
|
+
m.length !== a.length && wc("Mismatched type converter count");
|
|
1421
1421
|
for (var p = 0; p < a.length; ++p) {
|
|
1422
|
-
|
|
1422
|
+
U(a[p], m[p]);
|
|
1423
1423
|
}
|
|
1424
1424
|
}
|
|
1425
1425
|
a.forEach(function(m) {
|
|
1426
|
-
|
|
1426
|
+
Dc[m] = b;
|
|
1427
1427
|
});
|
|
1428
1428
|
var e = Array(b.length), f = [], g = 0;
|
|
1429
1429
|
b.forEach((m, p) => {
|
|
1430
|
-
|
|
1431
|
-
e[p] =
|
|
1430
|
+
kc.hasOwnProperty(m) ? e[p] = kc[m] : (f.push(m), Cc.hasOwnProperty(m) || (Cc[m] = []), Cc[m].push(() => {
|
|
1431
|
+
e[p] = kc[m];
|
|
1432
1432
|
++g;
|
|
1433
1433
|
g === f.length && d(e);
|
|
1434
1434
|
}));
|
|
1435
1435
|
});
|
|
1436
1436
|
0 === f.length && d(e);
|
|
1437
1437
|
}
|
|
1438
|
-
function
|
|
1438
|
+
function Ec(a) {
|
|
1439
1439
|
switch(a) {
|
|
1440
1440
|
case 1:
|
|
1441
1441
|
return 0;
|
|
@@ -1449,45 +1449,45 @@ function Fc(a) {
|
|
|
1449
1449
|
throw new TypeError(`Unknown type size: ${a}`);
|
|
1450
1450
|
}
|
|
1451
1451
|
}
|
|
1452
|
-
function
|
|
1452
|
+
function Fc(a, b, c = {}) {
|
|
1453
1453
|
var d = b.name;
|
|
1454
|
-
a ||
|
|
1455
|
-
if (
|
|
1454
|
+
a || Q(`type "${d}" must have a positive integer typeid pointer`);
|
|
1455
|
+
if (kc.hasOwnProperty(a)) {
|
|
1456
1456
|
if (c.Rb) {
|
|
1457
1457
|
return;
|
|
1458
1458
|
}
|
|
1459
|
-
|
|
1459
|
+
Q(`Cannot register type '${d}' twice`);
|
|
1460
1460
|
}
|
|
1461
|
-
|
|
1462
|
-
delete
|
|
1463
|
-
|
|
1461
|
+
kc[a] = b;
|
|
1462
|
+
delete Dc[a];
|
|
1463
|
+
Cc.hasOwnProperty(a) && (b = Cc[a], delete Cc[a], b.forEach(e => e()));
|
|
1464
1464
|
}
|
|
1465
|
-
function
|
|
1465
|
+
function U(a, b, c = {}) {
|
|
1466
1466
|
if (!("argPackAdvance" in b)) {
|
|
1467
1467
|
throw new TypeError("registerType registeredInstance requires argPackAdvance");
|
|
1468
1468
|
}
|
|
1469
|
-
|
|
1469
|
+
Fc(a, b, c);
|
|
1470
1470
|
}
|
|
1471
|
-
function
|
|
1472
|
-
|
|
1471
|
+
function Gc(a) {
|
|
1472
|
+
Q(a.g.u.i.name + " instance already deleted");
|
|
1473
1473
|
}
|
|
1474
|
-
function
|
|
1474
|
+
function Hc() {
|
|
1475
1475
|
}
|
|
1476
|
-
function
|
|
1476
|
+
function Ic(a, b, c) {
|
|
1477
1477
|
if (void 0 === a[b].B) {
|
|
1478
1478
|
var d = a[b];
|
|
1479
1479
|
a[b] = function() {
|
|
1480
|
-
a[b].B.hasOwnProperty(arguments.length) ||
|
|
1480
|
+
a[b].B.hasOwnProperty(arguments.length) || Q(`Function '${c}' called with an invalid number of arguments (${arguments.length}) - expects one of (${a[b].B})!`);
|
|
1481
1481
|
return a[b].B[arguments.length].apply(this, arguments);
|
|
1482
1482
|
};
|
|
1483
1483
|
a[b].B = [];
|
|
1484
1484
|
a[b].B[d.fa] = d;
|
|
1485
1485
|
}
|
|
1486
1486
|
}
|
|
1487
|
-
function
|
|
1488
|
-
n.hasOwnProperty(a) ? ((void 0 === c || void 0 !== n[a].B && void 0 !== n[a].B[c]) &&
|
|
1487
|
+
function Jc(a, b, c) {
|
|
1488
|
+
n.hasOwnProperty(a) ? ((void 0 === c || void 0 !== n[a].B && void 0 !== n[a].B[c]) && Q(`Cannot register public name '${a}' twice`), Ic(n, a, a), n.hasOwnProperty(c) && Q(`Cannot register multiple overloads of a function with the same number of arguments (${c})!`), n[a].B[c] = b) : (n[a] = b, void 0 !== c && (n[a].Kc = c));
|
|
1489
1489
|
}
|
|
1490
|
-
function
|
|
1490
|
+
function Kc(a, b, c, d, e, f, g, m) {
|
|
1491
1491
|
this.name = a;
|
|
1492
1492
|
this.constructor = b;
|
|
1493
1493
|
this.N = c;
|
|
@@ -1498,23 +1498,23 @@ function Lc(a, b, c, d, e, f, g, m) {
|
|
|
1498
1498
|
this.Gb = m;
|
|
1499
1499
|
this.kb = [];
|
|
1500
1500
|
}
|
|
1501
|
-
function
|
|
1501
|
+
function Lc(a, b, c) {
|
|
1502
1502
|
for (; b !== c;) {
|
|
1503
|
-
b.pa ||
|
|
1503
|
+
b.pa || Q(`Expected null or instance of ${c.name}, got an instance of ${b.name}`), a = b.pa(a), b = b.A;
|
|
1504
1504
|
}
|
|
1505
1505
|
return a;
|
|
1506
1506
|
}
|
|
1507
|
-
function
|
|
1507
|
+
function Mc(a, b) {
|
|
1508
1508
|
if (null === b) {
|
|
1509
|
-
return this.Na &&
|
|
1509
|
+
return this.Na && Q(`null is not a valid ${this.name}`), 0;
|
|
1510
1510
|
}
|
|
1511
|
-
b.g ||
|
|
1512
|
-
b.g.o ||
|
|
1513
|
-
return
|
|
1511
|
+
b.g || Q(`Cannot pass "${Nc(b)}" as a ${this.name}`);
|
|
1512
|
+
b.g.o || Q(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
1513
|
+
return Lc(b.g.o, b.g.u.i, this.i);
|
|
1514
1514
|
}
|
|
1515
|
-
function
|
|
1515
|
+
function Oc(a, b) {
|
|
1516
1516
|
if (null === b) {
|
|
1517
|
-
this.Na &&
|
|
1517
|
+
this.Na && Q(`null is not a valid ${this.name}`);
|
|
1518
1518
|
if (this.ya) {
|
|
1519
1519
|
var c = this.Pa();
|
|
1520
1520
|
null !== a && a.push(this.V, c);
|
|
@@ -1522,14 +1522,14 @@ function Pc(a, b) {
|
|
|
1522
1522
|
}
|
|
1523
1523
|
return 0;
|
|
1524
1524
|
}
|
|
1525
|
-
b.g ||
|
|
1526
|
-
b.g.o ||
|
|
1527
|
-
!this.xa && b.g.u.xa &&
|
|
1528
|
-
c =
|
|
1525
|
+
b.g || Q(`Cannot pass "${Nc(b)}" as a ${this.name}`);
|
|
1526
|
+
b.g.o || Q(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
1527
|
+
!this.xa && b.g.u.xa && Q(`Cannot convert argument of type ${b.g.L ? b.g.L.name : b.g.u.name} to parameter type ${this.name}`);
|
|
1528
|
+
c = Lc(b.g.o, b.g.u.i, this.i);
|
|
1529
1529
|
if (this.ya) {
|
|
1530
|
-
switch(void 0 === b.g.G &&
|
|
1530
|
+
switch(void 0 === b.g.G && Q("Passing raw pointer to smart pointer is illegal"), this.fc) {
|
|
1531
1531
|
case 0:
|
|
1532
|
-
b.g.L === this ? c = b.g.G :
|
|
1532
|
+
b.g.L === this ? c = b.g.G : Q(`Cannot convert argument of type ${b.g.L ? b.g.L.name : b.g.u.name} to parameter type ${this.name}`);
|
|
1533
1533
|
break;
|
|
1534
1534
|
case 1:
|
|
1535
1535
|
c = b.g.G;
|
|
@@ -1539,45 +1539,45 @@ function Pc(a, b) {
|
|
|
1539
1539
|
c = b.g.G;
|
|
1540
1540
|
} else {
|
|
1541
1541
|
var d = b.clone();
|
|
1542
|
-
c = this.ac(c,
|
|
1542
|
+
c = this.ac(c, bc(function() {
|
|
1543
1543
|
d["delete"]();
|
|
1544
1544
|
}));
|
|
1545
1545
|
null !== a && a.push(this.V, c);
|
|
1546
1546
|
}
|
|
1547
1547
|
break;
|
|
1548
1548
|
default:
|
|
1549
|
-
|
|
1549
|
+
Q("Unsupporting sharing policy");
|
|
1550
1550
|
}
|
|
1551
1551
|
}
|
|
1552
1552
|
return c;
|
|
1553
1553
|
}
|
|
1554
|
-
function
|
|
1554
|
+
function Pc(a, b) {
|
|
1555
1555
|
if (null === b) {
|
|
1556
|
-
return this.Na &&
|
|
1556
|
+
return this.Na && Q(`null is not a valid ${this.name}`), 0;
|
|
1557
1557
|
}
|
|
1558
|
-
b.g ||
|
|
1559
|
-
b.g.o ||
|
|
1560
|
-
b.g.u.xa &&
|
|
1561
|
-
return
|
|
1558
|
+
b.g || Q(`Cannot pass "${Nc(b)}" as a ${this.name}`);
|
|
1559
|
+
b.g.o || Q(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
1560
|
+
b.g.u.xa && Q(`Cannot convert argument of type ${b.g.u.name} to parameter type ${this.name}`);
|
|
1561
|
+
return Lc(b.g.o, b.g.u.i, this.i);
|
|
1562
1562
|
}
|
|
1563
|
-
function
|
|
1563
|
+
function Qc(a, b, c, d) {
|
|
1564
1564
|
this.name = a;
|
|
1565
1565
|
this.i = b;
|
|
1566
1566
|
this.Na = c;
|
|
1567
1567
|
this.xa = d;
|
|
1568
1568
|
this.ya = !1;
|
|
1569
1569
|
this.V = this.ac = this.Pa = this.mb = this.fc = this.$b = void 0;
|
|
1570
|
-
void 0 !== b.A ? this.toWireType =
|
|
1570
|
+
void 0 !== b.A ? this.toWireType = Oc : (this.toWireType = d ? Mc : Pc, this.K = null);
|
|
1571
1571
|
}
|
|
1572
|
-
function
|
|
1573
|
-
n.hasOwnProperty(a) ||
|
|
1572
|
+
function Rc(a, b, c) {
|
|
1573
|
+
n.hasOwnProperty(a) || wc("Replacing nonexistant public symbol");
|
|
1574
1574
|
void 0 !== n[a].B && void 0 !== c ? n[a].B[c] = b : (n[a] = b, n[a].fa = c);
|
|
1575
1575
|
}
|
|
1576
|
-
var
|
|
1577
|
-
var b =
|
|
1578
|
-
b || (a >=
|
|
1576
|
+
var Sc = [], Tc = a => {
|
|
1577
|
+
var b = Sc[a];
|
|
1578
|
+
b || (a >= Sc.length && (Sc.length = a + 1), Sc[a] = b = za.get(a));
|
|
1579
1579
|
return b;
|
|
1580
|
-
},
|
|
1580
|
+
}, Uc = (a, b) => {
|
|
1581
1581
|
var c = [];
|
|
1582
1582
|
return function() {
|
|
1583
1583
|
c.length = 0;
|
|
@@ -1586,29 +1586,29 @@ var Tc = [], Uc = a => {
|
|
|
1586
1586
|
var d = n["dynCall_" + a];
|
|
1587
1587
|
d = c && c.length ? d.apply(null, [b].concat(c)) : d.call(null, b);
|
|
1588
1588
|
} else {
|
|
1589
|
-
d =
|
|
1589
|
+
d = Tc(b).apply(null, c);
|
|
1590
1590
|
}
|
|
1591
1591
|
return d;
|
|
1592
1592
|
};
|
|
1593
1593
|
};
|
|
1594
|
-
function
|
|
1595
|
-
a =
|
|
1596
|
-
var c = a.includes("j") ?
|
|
1597
|
-
"function" != typeof c &&
|
|
1594
|
+
function V(a, b) {
|
|
1595
|
+
a = S(a);
|
|
1596
|
+
var c = a.includes("j") ? Uc(a, b) : Tc(b);
|
|
1597
|
+
"function" != typeof c && Q(`unknown function pointer with signature ${a}: ${b}`);
|
|
1598
1598
|
return c;
|
|
1599
1599
|
}
|
|
1600
|
-
var
|
|
1601
|
-
function
|
|
1600
|
+
var Vc = void 0;
|
|
1601
|
+
function Wc(a, b) {
|
|
1602
1602
|
function c(f) {
|
|
1603
|
-
e[f] ||
|
|
1603
|
+
e[f] || kc[f] || (Dc[f] ? Dc[f].forEach(c) : (d.push(f), e[f] = !0));
|
|
1604
1604
|
}
|
|
1605
1605
|
var d = [], e = {};
|
|
1606
1606
|
b.forEach(c);
|
|
1607
|
-
throw new
|
|
1607
|
+
throw new Vc(`${a}: ` + d.map(lc).join([", "]));
|
|
1608
1608
|
}
|
|
1609
|
-
function
|
|
1609
|
+
function Xc(a, b, c, d, e) {
|
|
1610
1610
|
var f = b.length;
|
|
1611
|
-
2 > f &&
|
|
1611
|
+
2 > f && Q("argTypes array size mismatch! Must at least get return value and 'this' types!");
|
|
1612
1612
|
var g = null !== b[1] && null !== c, m = !1;
|
|
1613
1613
|
for (c = 1; c < b.length; ++c) {
|
|
1614
1614
|
if (null !== b[c] && void 0 === b[c].K) {
|
|
@@ -1618,7 +1618,7 @@ function Yc(a, b, c, d, e) {
|
|
|
1618
1618
|
}
|
|
1619
1619
|
var p = "void" !== b[0].name, l = f - 2, t = Array(l), u = [], x = [];
|
|
1620
1620
|
return function() {
|
|
1621
|
-
arguments.length !== l &&
|
|
1621
|
+
arguments.length !== l && Q(`function ${a} called with ${arguments.length} arguments, expected ${l} args!`);
|
|
1622
1622
|
x.length = 0;
|
|
1623
1623
|
u.length = g ? 2 : 1;
|
|
1624
1624
|
u[0] = e;
|
|
@@ -1631,7 +1631,7 @@ function Yc(a, b, c, d, e) {
|
|
|
1631
1631
|
}
|
|
1632
1632
|
q = d.apply(null, u);
|
|
1633
1633
|
if (m) {
|
|
1634
|
-
|
|
1634
|
+
Ac(x);
|
|
1635
1635
|
} else {
|
|
1636
1636
|
for (var v = g ? 1 : 2; v < b.length; v++) {
|
|
1637
1637
|
var y = 1 === v ? k : t[v - 2];
|
|
@@ -1642,103 +1642,103 @@ function Yc(a, b, c, d, e) {
|
|
|
1642
1642
|
return k;
|
|
1643
1643
|
};
|
|
1644
1644
|
}
|
|
1645
|
-
function
|
|
1645
|
+
function Yc(a, b) {
|
|
1646
1646
|
for (var c = [], d = 0; d < a; d++) {
|
|
1647
|
-
c.push(
|
|
1647
|
+
c.push(K[b + 4 * d >> 2]);
|
|
1648
1648
|
}
|
|
1649
1649
|
return c;
|
|
1650
1650
|
}
|
|
1651
|
-
function
|
|
1652
|
-
a instanceof Object ||
|
|
1653
|
-
a instanceof b.i.constructor ||
|
|
1654
|
-
a.g.o ||
|
|
1655
|
-
return
|
|
1651
|
+
function Zc(a, b, c) {
|
|
1652
|
+
a instanceof Object || Q(`${c} with invalid "this": ${a}`);
|
|
1653
|
+
a instanceof b.i.constructor || Q(`${c} incompatible with "this" of type ${a.constructor.name}`);
|
|
1654
|
+
a.g.o || Q(`cannot call emscripten binding method ${c} on deleted object`);
|
|
1655
|
+
return Lc(a.g.o, a.g.u.i, b.i);
|
|
1656
1656
|
}
|
|
1657
|
-
function
|
|
1658
|
-
a >=
|
|
1657
|
+
function $c(a) {
|
|
1658
|
+
a >= P.h && 0 === --P.get(a).ob && P.Qb(a);
|
|
1659
1659
|
}
|
|
1660
|
-
function
|
|
1660
|
+
function ad(a, b, c) {
|
|
1661
1661
|
switch(b) {
|
|
1662
1662
|
case 0:
|
|
1663
1663
|
return function(d) {
|
|
1664
|
-
return this.fromWireType((c ?
|
|
1664
|
+
return this.fromWireType((c ? C : G)[d]);
|
|
1665
1665
|
};
|
|
1666
1666
|
case 1:
|
|
1667
1667
|
return function(d) {
|
|
1668
|
-
return this.fromWireType((c ?
|
|
1668
|
+
return this.fromWireType((c ? I : va)[d >> 1]);
|
|
1669
1669
|
};
|
|
1670
1670
|
case 2:
|
|
1671
1671
|
return function(d) {
|
|
1672
|
-
return this.fromWireType((c ?
|
|
1672
|
+
return this.fromWireType((c ? J : K)[d >> 2]);
|
|
1673
1673
|
};
|
|
1674
1674
|
default:
|
|
1675
1675
|
throw new TypeError("Unknown integer type: " + a);
|
|
1676
1676
|
}
|
|
1677
1677
|
}
|
|
1678
|
-
function
|
|
1678
|
+
function Nc(a) {
|
|
1679
1679
|
if (null === a) {
|
|
1680
1680
|
return "null";
|
|
1681
1681
|
}
|
|
1682
1682
|
var b = typeof a;
|
|
1683
1683
|
return "object" === b || "array" === b || "function" === b ? a.toString() : "" + a;
|
|
1684
1684
|
}
|
|
1685
|
-
function
|
|
1685
|
+
function bd(a, b) {
|
|
1686
1686
|
switch(b) {
|
|
1687
1687
|
case 2:
|
|
1688
1688
|
return function(c) {
|
|
1689
|
-
return this.fromWireType(
|
|
1689
|
+
return this.fromWireType(wa[c >> 2]);
|
|
1690
1690
|
};
|
|
1691
1691
|
case 3:
|
|
1692
1692
|
return function(c) {
|
|
1693
|
-
return this.fromWireType(
|
|
1693
|
+
return this.fromWireType(xa[c >> 3]);
|
|
1694
1694
|
};
|
|
1695
1695
|
default:
|
|
1696
1696
|
throw new TypeError("Unknown float type: " + a);
|
|
1697
1697
|
}
|
|
1698
1698
|
}
|
|
1699
|
-
function
|
|
1699
|
+
function cd(a, b, c) {
|
|
1700
1700
|
switch(b) {
|
|
1701
1701
|
case 0:
|
|
1702
1702
|
return c ? function(d) {
|
|
1703
|
-
return A[d];
|
|
1704
|
-
} : function(d) {
|
|
1705
1703
|
return C[d];
|
|
1704
|
+
} : function(d) {
|
|
1705
|
+
return G[d];
|
|
1706
1706
|
};
|
|
1707
1707
|
case 1:
|
|
1708
1708
|
return c ? function(d) {
|
|
1709
|
-
return
|
|
1709
|
+
return I[d >> 1];
|
|
1710
1710
|
} : function(d) {
|
|
1711
|
-
return
|
|
1711
|
+
return va[d >> 1];
|
|
1712
1712
|
};
|
|
1713
1713
|
case 2:
|
|
1714
1714
|
return c ? function(d) {
|
|
1715
|
-
return I[d >> 2];
|
|
1716
|
-
} : function(d) {
|
|
1717
1715
|
return J[d >> 2];
|
|
1716
|
+
} : function(d) {
|
|
1717
|
+
return K[d >> 2];
|
|
1718
1718
|
};
|
|
1719
1719
|
default:
|
|
1720
1720
|
throw new TypeError("Unknown integer type: " + a);
|
|
1721
1721
|
}
|
|
1722
1722
|
}
|
|
1723
|
-
var
|
|
1723
|
+
var dd = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void 0, ed = (a, b) => {
|
|
1724
1724
|
var c = a >> 1;
|
|
1725
|
-
for (var d = c + b / 2; !(c >= d) &&
|
|
1725
|
+
for (var d = c + b / 2; !(c >= d) && va[c];) {
|
|
1726
1726
|
++c;
|
|
1727
1727
|
}
|
|
1728
1728
|
c <<= 1;
|
|
1729
|
-
if (32 < c - a &&
|
|
1730
|
-
return
|
|
1729
|
+
if (32 < c - a && dd) {
|
|
1730
|
+
return dd.decode(G.subarray(a, c));
|
|
1731
1731
|
}
|
|
1732
1732
|
c = "";
|
|
1733
1733
|
for (d = 0; !(d >= b / 2); ++d) {
|
|
1734
|
-
var e =
|
|
1734
|
+
var e = I[a + 2 * d >> 1];
|
|
1735
1735
|
if (0 == e) {
|
|
1736
1736
|
break;
|
|
1737
1737
|
}
|
|
1738
1738
|
c += String.fromCharCode(e);
|
|
1739
1739
|
}
|
|
1740
1740
|
return c;
|
|
1741
|
-
},
|
|
1741
|
+
}, fd = (a, b, c) => {
|
|
1742
1742
|
void 0 === c && (c = 2147483647);
|
|
1743
1743
|
if (2 > c) {
|
|
1744
1744
|
return 0;
|
|
@@ -1747,13 +1747,13 @@ var ed = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void
|
|
|
1747
1747
|
var d = b;
|
|
1748
1748
|
c = c < 2 * a.length ? c / 2 : a.length;
|
|
1749
1749
|
for (var e = 0; e < c; ++e) {
|
|
1750
|
-
|
|
1750
|
+
I[b >> 1] = a.charCodeAt(e), b += 2;
|
|
1751
1751
|
}
|
|
1752
|
-
|
|
1752
|
+
I[b >> 1] = 0;
|
|
1753
1753
|
return b - d;
|
|
1754
|
-
},
|
|
1754
|
+
}, gd = a => 2 * a.length, hd = (a, b) => {
|
|
1755
1755
|
for (var c = 0, d = ""; !(c >= b / 4);) {
|
|
1756
|
-
var e =
|
|
1756
|
+
var e = J[a + 4 * c >> 2];
|
|
1757
1757
|
if (0 == e) {
|
|
1758
1758
|
break;
|
|
1759
1759
|
}
|
|
@@ -1761,7 +1761,7 @@ var ed = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void
|
|
|
1761
1761
|
65536 <= e ? (e -= 65536, d += String.fromCharCode(55296 | e >> 10, 56320 | e & 1023)) : d += String.fromCharCode(e);
|
|
1762
1762
|
}
|
|
1763
1763
|
return d;
|
|
1764
|
-
},
|
|
1764
|
+
}, jd = (a, b, c) => {
|
|
1765
1765
|
void 0 === c && (c = 2147483647);
|
|
1766
1766
|
if (4 > c) {
|
|
1767
1767
|
return 0;
|
|
@@ -1774,67 +1774,67 @@ var ed = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void
|
|
|
1774
1774
|
var g = a.charCodeAt(++e);
|
|
1775
1775
|
f = 65536 + ((f & 1023) << 10) | g & 1023;
|
|
1776
1776
|
}
|
|
1777
|
-
|
|
1777
|
+
J[b >> 2] = f;
|
|
1778
1778
|
b += 4;
|
|
1779
1779
|
if (b + 4 > c) {
|
|
1780
1780
|
break;
|
|
1781
1781
|
}
|
|
1782
1782
|
}
|
|
1783
|
-
|
|
1783
|
+
J[b >> 2] = 0;
|
|
1784
1784
|
return b - d;
|
|
1785
|
-
},
|
|
1785
|
+
}, kd = a => {
|
|
1786
1786
|
for (var b = 0, c = 0; c < a.length; ++c) {
|
|
1787
1787
|
var d = a.charCodeAt(c);
|
|
1788
1788
|
55296 <= d && 57343 >= d && ++c;
|
|
1789
1789
|
b += 4;
|
|
1790
1790
|
}
|
|
1791
1791
|
return b;
|
|
1792
|
-
},
|
|
1793
|
-
function
|
|
1794
|
-
var b =
|
|
1795
|
-
return void 0 === b ?
|
|
1792
|
+
}, ld = {};
|
|
1793
|
+
function md(a) {
|
|
1794
|
+
var b = ld[a];
|
|
1795
|
+
return void 0 === b ? S(a) : b;
|
|
1796
1796
|
}
|
|
1797
|
-
var
|
|
1798
|
-
function
|
|
1799
|
-
var b =
|
|
1800
|
-
|
|
1797
|
+
var nd = [];
|
|
1798
|
+
function od(a) {
|
|
1799
|
+
var b = nd.length;
|
|
1800
|
+
nd.push(a);
|
|
1801
1801
|
return b;
|
|
1802
1802
|
}
|
|
1803
|
-
function
|
|
1803
|
+
function pd(a, b) {
|
|
1804
1804
|
for (var c = Array(a), d = 0; d < a; ++d) {
|
|
1805
|
-
c[d] =
|
|
1805
|
+
c[d] = oc(K[b + 4 * d >> 2], "parameter " + d);
|
|
1806
1806
|
}
|
|
1807
1807
|
return c;
|
|
1808
1808
|
}
|
|
1809
|
-
var
|
|
1810
|
-
function
|
|
1809
|
+
var qd = [], rd = [];
|
|
1810
|
+
function sd(a) {
|
|
1811
1811
|
a.yc = a.getExtension("WEBGL_draw_instanced_base_vertex_base_instance");
|
|
1812
1812
|
}
|
|
1813
|
-
function
|
|
1813
|
+
function td(a) {
|
|
1814
1814
|
a.Gc = a.getExtension("WEBGL_multi_draw_instanced_base_vertex_base_instance");
|
|
1815
1815
|
}
|
|
1816
|
-
var
|
|
1816
|
+
var ud = 1, vd = [], W = [], wd = [], xd = [], yd = [], zd = [], Ad = [], r = [], Bd = {};
|
|
1817
1817
|
function X(a) {
|
|
1818
1818
|
Cd || (Cd = a);
|
|
1819
1819
|
}
|
|
1820
1820
|
function ha(a) {
|
|
1821
|
-
for (var b =
|
|
1821
|
+
for (var b = ud++, c = a.length; c < b; c++) {
|
|
1822
1822
|
a[c] = null;
|
|
1823
1823
|
}
|
|
1824
1824
|
return b;
|
|
1825
1825
|
}
|
|
1826
1826
|
function ja(a) {
|
|
1827
1827
|
Dd = r[a];
|
|
1828
|
-
n.wc =
|
|
1829
|
-
return !(a && !
|
|
1828
|
+
n.wc = Z = Dd && Dd.H;
|
|
1829
|
+
return !(a && !Z);
|
|
1830
1830
|
}
|
|
1831
1831
|
function ia(a) {
|
|
1832
1832
|
a || (a = Dd);
|
|
1833
1833
|
if (!a.Sb) {
|
|
1834
1834
|
a.Sb = !0;
|
|
1835
1835
|
var b = a.H;
|
|
1836
|
+
sd(b);
|
|
1836
1837
|
td(b);
|
|
1837
|
-
ud(b);
|
|
1838
1838
|
2 <= a.version && (b.Ya = b.getExtension("EXT_disjoint_timer_query_webgl2"));
|
|
1839
1839
|
if (2 > a.version || !b.Ya) {
|
|
1840
1840
|
b.Ya = b.getExtension("EXT_disjoint_timer_query");
|
|
@@ -1865,9 +1865,9 @@ var Fd = {}, Hd = () => {
|
|
|
1865
1865
|
}, Gd, Id = [];
|
|
1866
1866
|
function Jd(a, b, c, d) {
|
|
1867
1867
|
for (var e = 0; e < a; e++) {
|
|
1868
|
-
var f =
|
|
1868
|
+
var f = Z[c](), g = f && ha(d);
|
|
1869
1869
|
f ? (f.name = g, d[g] = f) : X(1282);
|
|
1870
|
-
|
|
1870
|
+
J[b + 4 * e >> 2] = g;
|
|
1871
1871
|
}
|
|
1872
1872
|
}
|
|
1873
1873
|
function Kd(a, b) {
|
|
@@ -1884,7 +1884,7 @@ function Kd(a, b) {
|
|
|
1884
1884
|
c = 0;
|
|
1885
1885
|
break;
|
|
1886
1886
|
case 34466:
|
|
1887
|
-
var d =
|
|
1887
|
+
var d = Z.getParameter(34467);
|
|
1888
1888
|
c = d ? d.length : 0;
|
|
1889
1889
|
break;
|
|
1890
1890
|
case 33309:
|
|
@@ -1892,7 +1892,7 @@ function Kd(a, b) {
|
|
|
1892
1892
|
X(1282);
|
|
1893
1893
|
return;
|
|
1894
1894
|
}
|
|
1895
|
-
c = 2 * (
|
|
1895
|
+
c = 2 * (Z.getSupportedExtensions() || []).length;
|
|
1896
1896
|
break;
|
|
1897
1897
|
case 33307:
|
|
1898
1898
|
case 33308:
|
|
@@ -1903,7 +1903,7 @@ function Kd(a, b) {
|
|
|
1903
1903
|
c = 33307 == a ? 3 : 0;
|
|
1904
1904
|
}
|
|
1905
1905
|
if (void 0 === c) {
|
|
1906
|
-
switch(d =
|
|
1906
|
+
switch(d = Z.getParameter(a), typeof d) {
|
|
1907
1907
|
case "number":
|
|
1908
1908
|
c = d;
|
|
1909
1909
|
break;
|
|
@@ -1944,7 +1944,7 @@ function Kd(a, b) {
|
|
|
1944
1944
|
} else {
|
|
1945
1945
|
if (d instanceof Float32Array || d instanceof Uint32Array || d instanceof Int32Array || d instanceof Array) {
|
|
1946
1946
|
for (a = 0; a < d.length; ++a) {
|
|
1947
|
-
|
|
1947
|
+
J[b + 4 * a >> 2] = d[a];
|
|
1948
1948
|
}
|
|
1949
1949
|
return;
|
|
1950
1950
|
}
|
|
@@ -1952,25 +1952,25 @@ function Kd(a, b) {
|
|
|
1952
1952
|
c = d.name | 0;
|
|
1953
1953
|
} catch (e) {
|
|
1954
1954
|
X(1280);
|
|
1955
|
-
|
|
1955
|
+
z("GL_INVALID_ENUM in glGet0v: Unknown object returned from WebGL getParameter(" + a + ")! (error: " + e + ")");
|
|
1956
1956
|
return;
|
|
1957
1957
|
}
|
|
1958
1958
|
}
|
|
1959
1959
|
break;
|
|
1960
1960
|
default:
|
|
1961
1961
|
X(1280);
|
|
1962
|
-
|
|
1962
|
+
z("GL_INVALID_ENUM in glGet0v: Native code calling glGet0v(" + a + ") and it returns " + d + " of type " + typeof d + "!");
|
|
1963
1963
|
return;
|
|
1964
1964
|
}
|
|
1965
1965
|
}
|
|
1966
|
-
|
|
1966
|
+
J[b >> 2] = c;
|
|
1967
1967
|
} else {
|
|
1968
1968
|
X(1281);
|
|
1969
1969
|
}
|
|
1970
1970
|
}
|
|
1971
1971
|
var Md = a => {
|
|
1972
|
-
var b =
|
|
1973
|
-
c &&
|
|
1972
|
+
var b = db(a) + 1, c = Ld(b);
|
|
1973
|
+
c && eb(a, G, c, b);
|
|
1974
1974
|
return c;
|
|
1975
1975
|
};
|
|
1976
1976
|
function Nd(a) {
|
|
@@ -2028,9 +2028,9 @@ var Od = a => 0 === a % 4 && (0 !== a % 100 || 0 === a % 400), Pd = [31, 29, 31,
|
|
|
2028
2028
|
v = m(v);
|
|
2029
2029
|
return 0 >= g(q, k) ? 0 >= g(v, k) ? k.getFullYear() + 1 : k.getFullYear() : k.getFullYear() - 1;
|
|
2030
2030
|
}
|
|
2031
|
-
var l =
|
|
2032
|
-
d = {jc:
|
|
2033
|
-
c = c ?
|
|
2031
|
+
var l = J[d + 40 >> 2];
|
|
2032
|
+
d = {jc:J[d >> 2], ic:J[d + 4 >> 2], Ga:J[d + 8 >> 2], Ra:J[d + 12 >> 2], Ha:J[d + 16 >> 2], ca:J[d + 20 >> 2], R:J[d + 24 >> 2], ba:J[d + 28 >> 2], Mc:J[d + 32 >> 2], hc:J[d + 36 >> 2], kc:l ? l ? L(G, l) : "" : ""};
|
|
2033
|
+
c = c ? L(G, c) : "";
|
|
2034
2034
|
l = {"%c":"%a %b %d %H:%M:%S %Y", "%D":"%m/%d/%y", "%F":"%Y-%m-%d", "%h":"%b", "%r":"%I:%M:%S %p", "%R":"%H:%M", "%T":"%H:%M:%S", "%x":"%m/%d/%y", "%X":"%H:%M:%S", "%Ec":"%c", "%EC":"%C", "%Ex":"%m/%d/%y", "%EX":"%H:%M:%S", "%Ey":"%y", "%EY":"%Y", "%Od":"%d", "%Oe":"%e", "%OH":"%H", "%OI":"%I", "%Om":"%m", "%OM":"%M", "%OS":"%S", "%Ou":"%u", "%OU":"%U", "%OV":"%V", "%Ow":"%w", "%OW":"%W", "%Oy":"%y",};
|
|
2035
2035
|
for (var t in l) {
|
|
2036
2036
|
c = c.replace(new RegExp(t, "g"), l[t]);
|
|
@@ -2066,26 +2066,26 @@ var Od = a => 0 === a % 4 && (0 !== a % 100 || 0 === a % 400), Pd = [31, 29, 31,
|
|
|
2066
2066
|
c.includes(t) && (c = c.replace(new RegExp(t, "g"), l[t](d)));
|
|
2067
2067
|
}
|
|
2068
2068
|
c = c.replace(/\0\0/g, "%");
|
|
2069
|
-
t =
|
|
2069
|
+
t = fb(c, !1);
|
|
2070
2070
|
if (t.length > b) {
|
|
2071
2071
|
return 0;
|
|
2072
2072
|
}
|
|
2073
|
-
|
|
2073
|
+
C.set(t, a);
|
|
2074
2074
|
return t.length - 1;
|
|
2075
2075
|
};
|
|
2076
|
-
function
|
|
2076
|
+
function Eb(a, b, c, d) {
|
|
2077
2077
|
a || (a = this);
|
|
2078
2078
|
this.parent = a;
|
|
2079
2079
|
this.T = a.T;
|
|
2080
2080
|
this.Aa = null;
|
|
2081
|
-
this.id =
|
|
2081
|
+
this.id = wb++;
|
|
2082
2082
|
this.name = b;
|
|
2083
2083
|
this.mode = c;
|
|
2084
2084
|
this.l = {};
|
|
2085
2085
|
this.m = {};
|
|
2086
2086
|
this.Ca = d;
|
|
2087
2087
|
}
|
|
2088
|
-
Object.defineProperties(
|
|
2088
|
+
Object.defineProperties(Eb.prototype, {read:{get:function() {
|
|
2089
2089
|
return 365 === (this.mode & 365);
|
|
2090
2090
|
}, set:function(a) {
|
|
2091
2091
|
a ? this.mode |= 365 : this.mode &= -366;
|
|
@@ -2094,44 +2094,44 @@ Object.defineProperties(Fb.prototype, {read:{get:function() {
|
|
|
2094
2094
|
}, set:function(a) {
|
|
2095
2095
|
a ? this.mode |= 146 : this.mode &= -147;
|
|
2096
2096
|
}}});
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2097
|
+
Rb();
|
|
2098
|
+
xb = Array(4096);
|
|
2099
|
+
Lb(N, "/");
|
|
2100
|
+
O("/tmp", 16895, 0);
|
|
2101
|
+
O("/home", 16895, 0);
|
|
2102
|
+
O("/home/web_user", 16895, 0);
|
|
2103
2103
|
(() => {
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2104
|
+
O("/dev", 16895, 0);
|
|
2105
|
+
ib(259, {read:() => 0, write:(d, e, f, g) => g,});
|
|
2106
|
+
Mb("/dev/null", 259);
|
|
2107
|
+
hb(1280, kb);
|
|
2108
|
+
hb(1536, lb);
|
|
2109
|
+
Mb("/dev/tty", 1280);
|
|
2110
|
+
Mb("/dev/tty1", 1536);
|
|
2111
2111
|
var a = new Uint8Array(1024), b = 0, c = () => {
|
|
2112
|
-
0 === b && (b =
|
|
2112
|
+
0 === b && (b = $a(a).byteLength);
|
|
2113
2113
|
return a[--b];
|
|
2114
2114
|
};
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2115
|
+
Ub("random", c);
|
|
2116
|
+
Ub("urandom", c);
|
|
2117
|
+
O("/dev/shm", 16895, 0);
|
|
2118
|
+
O("/dev/shm/tmp", 16895, 0);
|
|
2119
2119
|
})();
|
|
2120
2120
|
(() => {
|
|
2121
|
-
|
|
2122
|
-
var a =
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
var b =
|
|
2121
|
+
O("/proc", 16895, 0);
|
|
2122
|
+
var a = O("/proc/self", 16895, 0);
|
|
2123
|
+
O("/proc/self/fd", 16895, 0);
|
|
2124
|
+
Lb({T:() => {
|
|
2125
|
+
var b = ob(a, "fd", 16895, 73);
|
|
2126
2126
|
b.l = {ma:(c, d) => {
|
|
2127
|
-
var e =
|
|
2127
|
+
var e = Ib(+d);
|
|
2128
2128
|
c = {parent:null, T:{gb:"fake"}, l:{na:() => e.path},};
|
|
2129
2129
|
return c.parent = c;
|
|
2130
2130
|
}};
|
|
2131
2131
|
return b;
|
|
2132
2132
|
}}, "/proc/self/fd");
|
|
2133
2133
|
})();
|
|
2134
|
-
Object.assign(
|
|
2134
|
+
Object.assign($b.prototype, {get(a) {
|
|
2135
2135
|
return this.M[a];
|
|
2136
2136
|
}, has(a) {
|
|
2137
2137
|
return void 0 !== this.M[a];
|
|
@@ -2143,48 +2143,48 @@ Object.assign(ac.prototype, {get(a) {
|
|
|
2143
2143
|
this.M[a] = void 0;
|
|
2144
2144
|
this.bb.push(a);
|
|
2145
2145
|
}});
|
|
2146
|
-
|
|
2146
|
+
ac = n.BindingError = class extends Error {
|
|
2147
2147
|
constructor(a) {
|
|
2148
2148
|
super(a);
|
|
2149
2149
|
this.name = "BindingError";
|
|
2150
2150
|
}
|
|
2151
2151
|
};
|
|
2152
|
-
|
|
2153
|
-
|
|
2152
|
+
P.M.push({value:void 0}, {value:null}, {value:!0}, {value:!1},);
|
|
2153
|
+
P.h = P.M.length;
|
|
2154
2154
|
n.count_emval_handles = function() {
|
|
2155
|
-
for (var a = 0, b =
|
|
2156
|
-
void 0 !==
|
|
2155
|
+
for (var a = 0, b = P.h; b < P.M.length; ++b) {
|
|
2156
|
+
void 0 !== P.M[b] && ++a;
|
|
2157
2157
|
}
|
|
2158
2158
|
return a;
|
|
2159
2159
|
};
|
|
2160
|
-
|
|
2160
|
+
dc = n.PureVirtualError = cc("PureVirtualError");
|
|
2161
2161
|
for (var Sd = Array(256), Td = 0; 256 > Td; ++Td) {
|
|
2162
2162
|
Sd[Td] = String.fromCharCode(Td);
|
|
2163
2163
|
}
|
|
2164
|
-
|
|
2164
|
+
ec = Sd;
|
|
2165
2165
|
n.getInheritedInstanceCount = function() {
|
|
2166
|
-
return Object.keys(
|
|
2166
|
+
return Object.keys(ic).length;
|
|
2167
2167
|
};
|
|
2168
2168
|
n.getLiveInheritedInstances = function() {
|
|
2169
2169
|
var a = [], b;
|
|
2170
|
-
for (b in
|
|
2171
|
-
|
|
2170
|
+
for (b in ic) {
|
|
2171
|
+
ic.hasOwnProperty(b) && a.push(ic[b]);
|
|
2172
2172
|
}
|
|
2173
2173
|
return a;
|
|
2174
2174
|
};
|
|
2175
|
-
n.flushPendingDeletes =
|
|
2175
|
+
n.flushPendingDeletes = gc;
|
|
2176
2176
|
n.setDelayFunction = function(a) {
|
|
2177
|
-
|
|
2178
|
-
|
|
2177
|
+
hc = a;
|
|
2178
|
+
fc.length && hc && hc(gc);
|
|
2179
2179
|
};
|
|
2180
|
-
|
|
2180
|
+
vc = n.InternalError = class extends Error {
|
|
2181
2181
|
constructor(a) {
|
|
2182
2182
|
super(a);
|
|
2183
2183
|
this.name = "InternalError";
|
|
2184
2184
|
}
|
|
2185
2185
|
};
|
|
2186
|
-
|
|
2187
|
-
if (!(this instanceof
|
|
2186
|
+
Hc.prototype.isAliasOf = function(a) {
|
|
2187
|
+
if (!(this instanceof Hc && a instanceof Hc)) {
|
|
2188
2188
|
return !1;
|
|
2189
2189
|
}
|
|
2190
2190
|
var b = this.g.u.i, c = this.g.o, d = a.g.u.i;
|
|
@@ -2196,58 +2196,58 @@ Ic.prototype.isAliasOf = function(a) {
|
|
|
2196
2196
|
}
|
|
2197
2197
|
return b === d && c === a;
|
|
2198
2198
|
};
|
|
2199
|
-
|
|
2200
|
-
this.g.o ||
|
|
2199
|
+
Hc.prototype.clone = function() {
|
|
2200
|
+
this.g.o || Gc(this);
|
|
2201
2201
|
if (this.g.ja) {
|
|
2202
2202
|
return this.g.count.value += 1, this;
|
|
2203
2203
|
}
|
|
2204
|
-
var a =
|
|
2204
|
+
var a = yc, b = Object, c = b.create, d = Object.getPrototypeOf(this), e = this.g;
|
|
2205
2205
|
a = a(c.call(b, d, {g:{value:{count:e.count, ga:e.ga, ja:e.ja, o:e.o, u:e.u, G:e.G, L:e.L,},}}));
|
|
2206
2206
|
a.g.count.value += 1;
|
|
2207
2207
|
a.g.ga = !1;
|
|
2208
2208
|
return a;
|
|
2209
2209
|
};
|
|
2210
|
-
|
|
2211
|
-
this.g.o ||
|
|
2212
|
-
this.g.ga && !this.g.ja &&
|
|
2213
|
-
|
|
2214
|
-
|
|
2210
|
+
Hc.prototype["delete"] = function() {
|
|
2211
|
+
this.g.o || Gc(this);
|
|
2212
|
+
this.g.ga && !this.g.ja && Q("Object already scheduled for deletion");
|
|
2213
|
+
pc(this);
|
|
2214
|
+
rc(this.g);
|
|
2215
2215
|
this.g.ja || (this.g.G = void 0, this.g.o = void 0);
|
|
2216
2216
|
};
|
|
2217
|
-
|
|
2217
|
+
Hc.prototype.isDeleted = function() {
|
|
2218
2218
|
return !this.g.o;
|
|
2219
2219
|
};
|
|
2220
|
-
|
|
2221
|
-
this.g.o ||
|
|
2222
|
-
this.g.ga && !this.g.ja &&
|
|
2223
|
-
|
|
2224
|
-
1 ===
|
|
2220
|
+
Hc.prototype.deleteLater = function() {
|
|
2221
|
+
this.g.o || Gc(this);
|
|
2222
|
+
this.g.ga && !this.g.ja && Q("Object already scheduled for deletion");
|
|
2223
|
+
fc.push(this);
|
|
2224
|
+
1 === fc.length && hc && hc(gc);
|
|
2225
2225
|
this.g.ga = !0;
|
|
2226
2226
|
return this;
|
|
2227
2227
|
};
|
|
2228
|
-
|
|
2228
|
+
Qc.prototype.Mb = function(a) {
|
|
2229
2229
|
this.mb && (a = this.mb(a));
|
|
2230
2230
|
return a;
|
|
2231
2231
|
};
|
|
2232
|
-
|
|
2232
|
+
Qc.prototype.Xa = function(a) {
|
|
2233
2233
|
this.V && this.V(a);
|
|
2234
2234
|
};
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2235
|
+
Qc.prototype.argPackAdvance = 8;
|
|
2236
|
+
Qc.prototype.readValueFromPointer = Bc;
|
|
2237
|
+
Qc.prototype.deleteObject = function(a) {
|
|
2238
2238
|
if (null !== a) {
|
|
2239
2239
|
a["delete"]();
|
|
2240
2240
|
}
|
|
2241
2241
|
};
|
|
2242
|
-
|
|
2242
|
+
Qc.prototype.fromWireType = function(a) {
|
|
2243
2243
|
function b() {
|
|
2244
|
-
return this.ya ?
|
|
2244
|
+
return this.ya ? xc(this.i.N, {u:this.$b, o:c, L:this, G:a,}) : xc(this.i.N, {u:this, o:a,});
|
|
2245
2245
|
}
|
|
2246
2246
|
var c = this.Mb(a);
|
|
2247
2247
|
if (!c) {
|
|
2248
2248
|
return this.Xa(a), null;
|
|
2249
2249
|
}
|
|
2250
|
-
var d =
|
|
2250
|
+
var d = uc(this.i, c);
|
|
2251
2251
|
if (void 0 !== d) {
|
|
2252
2252
|
if (0 === d.g.count.value) {
|
|
2253
2253
|
return d.g.o = c, d.g.G = a, d.clone();
|
|
@@ -2257,35 +2257,35 @@ Rc.prototype.fromWireType = function(a) {
|
|
|
2257
2257
|
return d;
|
|
2258
2258
|
}
|
|
2259
2259
|
d = this.i.Lb(c);
|
|
2260
|
-
d =
|
|
2260
|
+
d = tc[d];
|
|
2261
2261
|
if (!d) {
|
|
2262
2262
|
return b.call(this);
|
|
2263
2263
|
}
|
|
2264
2264
|
d = this.xa ? d.Db : d.pointerType;
|
|
2265
|
-
var e =
|
|
2266
|
-
return null === e ? b.call(this) : this.ya ?
|
|
2265
|
+
var e = sc(c, this.i, d.i);
|
|
2266
|
+
return null === e ? b.call(this) : this.ya ? xc(d.i.N, {u:d, o:e, L:this, G:a,}) : xc(d.i.N, {u:d, o:e,});
|
|
2267
2267
|
};
|
|
2268
|
-
|
|
2269
|
-
for (var
|
|
2268
|
+
Vc = n.UnboundTypeError = cc("UnboundTypeError");
|
|
2269
|
+
for (var Z, Ud = 0; 32 > Ud; ++Ud) {
|
|
2270
2270
|
Id.push(Array(Ud));
|
|
2271
2271
|
}
|
|
2272
2272
|
var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
2273
|
-
|
|
2273
|
+
Wb = c;
|
|
2274
2274
|
try {
|
|
2275
|
-
var d =
|
|
2275
|
+
var d = Ib(a);
|
|
2276
2276
|
switch(b) {
|
|
2277
2277
|
case 0:
|
|
2278
|
-
var e =
|
|
2279
|
-
return 0 > e ? -28 :
|
|
2278
|
+
var e = Xb();
|
|
2279
|
+
return 0 > e ? -28 : Kb(d, e).W;
|
|
2280
2280
|
case 1:
|
|
2281
2281
|
case 2:
|
|
2282
2282
|
return 0;
|
|
2283
2283
|
case 3:
|
|
2284
2284
|
return d.flags;
|
|
2285
2285
|
case 4:
|
|
2286
|
-
return e =
|
|
2286
|
+
return e = Xb(), d.flags |= e, 0;
|
|
2287
2287
|
case 5:
|
|
2288
|
-
return e =
|
|
2288
|
+
return e = Xb(), I[e + 0 >> 1] = 2, 0;
|
|
2289
2289
|
case 6:
|
|
2290
2290
|
case 7:
|
|
2291
2291
|
return 0;
|
|
@@ -2293,20 +2293,20 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2293
2293
|
case 8:
|
|
2294
2294
|
return -28;
|
|
2295
2295
|
case 9:
|
|
2296
|
-
return
|
|
2296
|
+
return J[Vd() >> 2] = 28, -1;
|
|
2297
2297
|
default:
|
|
2298
2298
|
return -28;
|
|
2299
2299
|
}
|
|
2300
2300
|
} catch (f) {
|
|
2301
|
-
if ("undefined" == typeof
|
|
2301
|
+
if ("undefined" == typeof Vb || "ErrnoError" !== f.name) {
|
|
2302
2302
|
throw f;
|
|
2303
2303
|
}
|
|
2304
2304
|
return -f.$;
|
|
2305
2305
|
}
|
|
2306
2306
|
}, __syscall_ioctl:function(a, b, c) {
|
|
2307
|
-
|
|
2307
|
+
Wb = c;
|
|
2308
2308
|
try {
|
|
2309
|
-
var d =
|
|
2309
|
+
var d = Ib(a);
|
|
2310
2310
|
switch(b) {
|
|
2311
2311
|
case 21509:
|
|
2312
2312
|
return d.s ? 0 : -59;
|
|
@@ -2316,13 +2316,13 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2316
2316
|
}
|
|
2317
2317
|
if (d.s.U.Ub) {
|
|
2318
2318
|
b = [3, 28, 127, 21, 4, 0, 1, 0, 17, 19, 26, 0, 18, 15, 23, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,];
|
|
2319
|
-
var e =
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2319
|
+
var e = Xb();
|
|
2320
|
+
J[e >> 2] = 25856;
|
|
2321
|
+
J[e + 4 >> 2] = 5;
|
|
2322
|
+
J[e + 8 >> 2] = 191;
|
|
2323
|
+
J[e + 12 >> 2] = 35387;
|
|
2324
2324
|
for (var f = 0; 32 > f; f++) {
|
|
2325
|
-
|
|
2325
|
+
C[e + f + 17 >> 0] = b[f] || 0;
|
|
2326
2326
|
}
|
|
2327
2327
|
}
|
|
2328
2328
|
return 0;
|
|
@@ -2337,8 +2337,8 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2337
2337
|
return -59;
|
|
2338
2338
|
}
|
|
2339
2339
|
if (d.s.U.Vb) {
|
|
2340
|
-
for (e =
|
|
2341
|
-
b.push(
|
|
2340
|
+
for (e = Xb(), b = [], f = 0; 32 > f; f++) {
|
|
2341
|
+
b.push(C[e + f + 17 >> 0]);
|
|
2342
2342
|
}
|
|
2343
2343
|
}
|
|
2344
2344
|
return 0;
|
|
@@ -2346,21 +2346,21 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2346
2346
|
if (!d.s) {
|
|
2347
2347
|
return -59;
|
|
2348
2348
|
}
|
|
2349
|
-
e =
|
|
2350
|
-
return
|
|
2349
|
+
e = Xb();
|
|
2350
|
+
return J[e >> 2] = 0;
|
|
2351
2351
|
case 21520:
|
|
2352
2352
|
return d.s ? -28 : -59;
|
|
2353
2353
|
case 21531:
|
|
2354
|
-
e =
|
|
2354
|
+
e = Xb();
|
|
2355
2355
|
if (!d.m.Tb) {
|
|
2356
|
-
throw new
|
|
2356
|
+
throw new M(59);
|
|
2357
2357
|
}
|
|
2358
2358
|
return d.m.Tb(d, b, e);
|
|
2359
2359
|
case 21523:
|
|
2360
2360
|
if (!d.s) {
|
|
2361
2361
|
return -59;
|
|
2362
2362
|
}
|
|
2363
|
-
d.s.U.Wb && (f = [24, 80], e =
|
|
2363
|
+
d.s.U.Wb && (f = [24, 80], e = Xb(), I[e >> 1] = f[0], I[e + 2 >> 1] = f[1]);
|
|
2364
2364
|
return 0;
|
|
2365
2365
|
case 21524:
|
|
2366
2366
|
return d.s ? 0 : -59;
|
|
@@ -2370,84 +2370,84 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2370
2370
|
return -28;
|
|
2371
2371
|
}
|
|
2372
2372
|
} catch (g) {
|
|
2373
|
-
if ("undefined" == typeof
|
|
2373
|
+
if ("undefined" == typeof Vb || "ErrnoError" !== g.name) {
|
|
2374
2374
|
throw g;
|
|
2375
2375
|
}
|
|
2376
2376
|
return -g.$;
|
|
2377
2377
|
}
|
|
2378
2378
|
}, __syscall_openat:function(a, b, c, d) {
|
|
2379
|
-
|
|
2379
|
+
Wb = d;
|
|
2380
2380
|
try {
|
|
2381
|
-
b = b ?
|
|
2381
|
+
b = b ? L(G, b) : "";
|
|
2382
2382
|
var e = b;
|
|
2383
2383
|
if ("/" === e.charAt(0)) {
|
|
2384
2384
|
b = e;
|
|
2385
2385
|
} else {
|
|
2386
|
-
var f = -100 === a ? "/" :
|
|
2386
|
+
var f = -100 === a ? "/" : Ib(a).path;
|
|
2387
2387
|
if (0 == e.length) {
|
|
2388
|
-
throw new
|
|
2388
|
+
throw new M(44);
|
|
2389
2389
|
}
|
|
2390
|
-
b =
|
|
2390
|
+
b = Wa(f + "/" + e);
|
|
2391
2391
|
}
|
|
2392
|
-
var g = d ?
|
|
2393
|
-
return
|
|
2392
|
+
var g = d ? Xb() : 0;
|
|
2393
|
+
return Pb(b, c, g).W;
|
|
2394
2394
|
} catch (m) {
|
|
2395
|
-
if ("undefined" == typeof
|
|
2395
|
+
if ("undefined" == typeof Vb || "ErrnoError" !== m.name) {
|
|
2396
2396
|
throw m;
|
|
2397
2397
|
}
|
|
2398
2398
|
return -m.$;
|
|
2399
2399
|
}
|
|
2400
2400
|
}, _embind_create_inheriting_constructor:function(a, b, c) {
|
|
2401
|
-
a =
|
|
2402
|
-
b =
|
|
2403
|
-
c =
|
|
2401
|
+
a = S(a);
|
|
2402
|
+
b = oc(b, "wrapper");
|
|
2403
|
+
c = R(c);
|
|
2404
2404
|
var d = [].slice, e = b.i, f = e.N, g = e.A.N, m = e.A.constructor;
|
|
2405
|
-
a =
|
|
2405
|
+
a = Zb(a, function() {
|
|
2406
2406
|
e.A.kb.forEach(function(l) {
|
|
2407
2407
|
if (this[l] === g[l]) {
|
|
2408
|
-
throw new
|
|
2408
|
+
throw new dc(`Pure virtual function ${l} must be implemented in JavaScript`);
|
|
2409
2409
|
}
|
|
2410
2410
|
}.bind(this));
|
|
2411
2411
|
Object.defineProperty(this, "__parent", {value:f});
|
|
2412
2412
|
this.__construct.apply(this, d.call(arguments));
|
|
2413
2413
|
});
|
|
2414
2414
|
f.__construct = function() {
|
|
2415
|
-
this === f &&
|
|
2415
|
+
this === f && Q("Pass correct 'this' to __construct");
|
|
2416
2416
|
var l = m.implement.apply(void 0, [this].concat(d.call(arguments)));
|
|
2417
|
-
|
|
2417
|
+
pc(l);
|
|
2418
2418
|
var t = l.g;
|
|
2419
2419
|
l.notifyOnDestruction();
|
|
2420
2420
|
t.ja = !0;
|
|
2421
2421
|
Object.defineProperties(this, {g:{value:t}});
|
|
2422
|
-
|
|
2422
|
+
yc(this);
|
|
2423
2423
|
l = t.o;
|
|
2424
|
-
l =
|
|
2425
|
-
|
|
2424
|
+
l = jc(e, l);
|
|
2425
|
+
ic.hasOwnProperty(l) ? Q(`Tried to register registered instance: ${l}`) : ic[l] = this;
|
|
2426
2426
|
};
|
|
2427
2427
|
f.__destruct = function() {
|
|
2428
|
-
this === f &&
|
|
2429
|
-
|
|
2428
|
+
this === f && Q("Pass correct 'this' to __destruct");
|
|
2429
|
+
pc(this);
|
|
2430
2430
|
var l = this.g.o;
|
|
2431
|
-
l =
|
|
2432
|
-
|
|
2431
|
+
l = jc(e, l);
|
|
2432
|
+
ic.hasOwnProperty(l) ? delete ic[l] : Q(`Tried to unregister unregistered instance: ${l}`);
|
|
2433
2433
|
};
|
|
2434
2434
|
a.prototype = Object.create(f);
|
|
2435
2435
|
for (var p in c) {
|
|
2436
2436
|
a.prototype[p] = c[p];
|
|
2437
2437
|
}
|
|
2438
|
-
return
|
|
2438
|
+
return bc(a);
|
|
2439
2439
|
}, _embind_finalize_value_object:function(a) {
|
|
2440
|
-
var b =
|
|
2441
|
-
delete
|
|
2440
|
+
var b = zc[a];
|
|
2441
|
+
delete zc[a];
|
|
2442
2442
|
var c = b.Pa, d = b.V, e = b.Za, f = e.map(g => g.Pb).concat(e.map(g => g.dc));
|
|
2443
|
-
|
|
2443
|
+
T([a], f, g => {
|
|
2444
2444
|
var m = {};
|
|
2445
2445
|
e.forEach((p, l) => {
|
|
2446
2446
|
var t = g[l], u = p.Nb, x = p.Ob, k = g[l + e.length], q = p.cc, v = p.ec;
|
|
2447
2447
|
m[p.Jb] = {read:y => t.fromWireType(u(x, y)), write:(y, B) => {
|
|
2448
2448
|
var D = [];
|
|
2449
2449
|
q(v, y, k.toWireType(D, B));
|
|
2450
|
-
|
|
2450
|
+
Ac(D);
|
|
2451
2451
|
}};
|
|
2452
2452
|
});
|
|
2453
2453
|
return [{name:b.name, fromWireType:function(p) {
|
|
@@ -2469,85 +2469,85 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2469
2469
|
}
|
|
2470
2470
|
null !== p && p.push(d, u);
|
|
2471
2471
|
return u;
|
|
2472
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2472
|
+
}, argPackAdvance:8, readValueFromPointer:Bc, K:d,}];
|
|
2473
2473
|
});
|
|
2474
2474
|
}, _embind_register_bigint:function() {
|
|
2475
2475
|
}, _embind_register_bool:function(a, b, c, d, e) {
|
|
2476
|
-
var f =
|
|
2477
|
-
b =
|
|
2478
|
-
|
|
2476
|
+
var f = Ec(c);
|
|
2477
|
+
b = S(b);
|
|
2478
|
+
U(a, {name:b, fromWireType:function(g) {
|
|
2479
2479
|
return !!g;
|
|
2480
2480
|
}, toWireType:function(g, m) {
|
|
2481
2481
|
return m ? d : e;
|
|
2482
2482
|
}, argPackAdvance:8, readValueFromPointer:function(g) {
|
|
2483
2483
|
if (1 === c) {
|
|
2484
|
-
var m =
|
|
2484
|
+
var m = C;
|
|
2485
2485
|
} else if (2 === c) {
|
|
2486
|
-
m = G;
|
|
2487
|
-
} else if (4 === c) {
|
|
2488
2486
|
m = I;
|
|
2487
|
+
} else if (4 === c) {
|
|
2488
|
+
m = J;
|
|
2489
2489
|
} else {
|
|
2490
2490
|
throw new TypeError("Unknown boolean type size: " + b);
|
|
2491
2491
|
}
|
|
2492
2492
|
return this.fromWireType(m[g >> f]);
|
|
2493
2493
|
}, K:null,});
|
|
2494
2494
|
}, _embind_register_class:function(a, b, c, d, e, f, g, m, p, l, t, u, x) {
|
|
2495
|
-
t =
|
|
2496
|
-
f =
|
|
2497
|
-
m && (m =
|
|
2498
|
-
l && (l =
|
|
2499
|
-
x =
|
|
2500
|
-
var k =
|
|
2501
|
-
|
|
2502
|
-
|
|
2495
|
+
t = S(t);
|
|
2496
|
+
f = V(e, f);
|
|
2497
|
+
m && (m = V(g, m));
|
|
2498
|
+
l && (l = V(p, l));
|
|
2499
|
+
x = V(u, x);
|
|
2500
|
+
var k = Yb(t);
|
|
2501
|
+
Jc(k, function() {
|
|
2502
|
+
Wc(`Cannot construct ${t} due to unbound types`, [d]);
|
|
2503
2503
|
});
|
|
2504
|
-
|
|
2504
|
+
T([a, b, c], d ? [d] : [], function(q) {
|
|
2505
2505
|
q = q[0];
|
|
2506
2506
|
if (d) {
|
|
2507
2507
|
var v = q.i;
|
|
2508
2508
|
var y = v.N;
|
|
2509
2509
|
} else {
|
|
2510
|
-
y =
|
|
2510
|
+
y = Hc.prototype;
|
|
2511
2511
|
}
|
|
2512
|
-
q =
|
|
2512
|
+
q = Zb(k, function() {
|
|
2513
2513
|
if (Object.getPrototypeOf(this) !== B) {
|
|
2514
|
-
throw new
|
|
2514
|
+
throw new ac("Use 'new' to construct " + t);
|
|
2515
2515
|
}
|
|
2516
2516
|
if (void 0 === D.Z) {
|
|
2517
|
-
throw new
|
|
2517
|
+
throw new ac(t + " has no accessible constructor");
|
|
2518
2518
|
}
|
|
2519
2519
|
var H = D.Z[arguments.length];
|
|
2520
2520
|
if (void 0 === H) {
|
|
2521
|
-
throw new
|
|
2521
|
+
throw new ac(`Tried to invoke ctor of ${t} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(D.Z).toString()}) parameters instead!`);
|
|
2522
2522
|
}
|
|
2523
2523
|
return H.apply(this, arguments);
|
|
2524
2524
|
});
|
|
2525
2525
|
var B = Object.create(y, {constructor:{value:q},});
|
|
2526
2526
|
q.prototype = B;
|
|
2527
|
-
var D = new
|
|
2527
|
+
var D = new Kc(t, q, B, x, v, f, m, l);
|
|
2528
2528
|
D.A && (void 0 === D.A.qa && (D.A.qa = []), D.A.qa.push(D));
|
|
2529
|
-
v = new
|
|
2530
|
-
y = new
|
|
2531
|
-
var E = new
|
|
2532
|
-
|
|
2533
|
-
|
|
2529
|
+
v = new Qc(t, D, !0, !1);
|
|
2530
|
+
y = new Qc(t + "*", D, !1, !1);
|
|
2531
|
+
var E = new Qc(t + " const*", D, !1, !0);
|
|
2532
|
+
tc[a] = {pointerType:y, Db:E};
|
|
2533
|
+
Rc(k, q);
|
|
2534
2534
|
return [v, y, E];
|
|
2535
2535
|
});
|
|
2536
2536
|
}, _embind_register_class_class_function:function(a, b, c, d, e, f, g) {
|
|
2537
|
-
var m =
|
|
2538
|
-
b =
|
|
2539
|
-
f =
|
|
2540
|
-
|
|
2537
|
+
var m = Yc(c, d);
|
|
2538
|
+
b = S(b);
|
|
2539
|
+
f = V(e, f);
|
|
2540
|
+
T([], [a], function(p) {
|
|
2541
2541
|
function l() {
|
|
2542
|
-
|
|
2542
|
+
Wc(`Cannot call ${t} due to unbound types`, m);
|
|
2543
2543
|
}
|
|
2544
2544
|
p = p[0];
|
|
2545
2545
|
var t = `${p.name}.${b}`;
|
|
2546
2546
|
b.startsWith("@@") && (b = Symbol[b.substring(2)]);
|
|
2547
2547
|
var u = p.i.constructor;
|
|
2548
|
-
void 0 === u[b] ? (l.fa = c - 1, u[b] = l) : (
|
|
2549
|
-
|
|
2550
|
-
x =
|
|
2548
|
+
void 0 === u[b] ? (l.fa = c - 1, u[b] = l) : (Ic(u, b, t), u[b].B[c - 1] = l);
|
|
2549
|
+
T([], m, function(x) {
|
|
2550
|
+
x = Xc(t, [x[0], null].concat(x.slice(1)), null, f, g);
|
|
2551
2551
|
void 0 === u[b].B ? (x.fa = c - 1, u[b] = x) : u[b].B[c - 1] = x;
|
|
2552
2552
|
if (p.i.qa) {
|
|
2553
2553
|
for (const k of p.i.qa) {
|
|
@@ -2559,28 +2559,28 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2559
2559
|
return [];
|
|
2560
2560
|
});
|
|
2561
2561
|
}, _embind_register_class_class_property:function(a, b, c, d, e, f, g, m) {
|
|
2562
|
-
b =
|
|
2563
|
-
f =
|
|
2564
|
-
|
|
2562
|
+
b = S(b);
|
|
2563
|
+
f = V(e, f);
|
|
2564
|
+
T([], [a], function(p) {
|
|
2565
2565
|
p = p[0];
|
|
2566
2566
|
var l = `${p.name}.${b}`, t = {get() {
|
|
2567
|
-
|
|
2567
|
+
Wc(`Cannot access ${l} due to unbound types`, [c]);
|
|
2568
2568
|
}, enumerable:!0, configurable:!0};
|
|
2569
2569
|
t.set = m ? () => {
|
|
2570
|
-
|
|
2570
|
+
Wc(`Cannot access ${l} due to unbound types`, [c]);
|
|
2571
2571
|
} : () => {
|
|
2572
|
-
|
|
2572
|
+
Q(`${l} is a read-only property`);
|
|
2573
2573
|
};
|
|
2574
2574
|
Object.defineProperty(p.i.constructor, b, t);
|
|
2575
|
-
|
|
2575
|
+
T([], [c], function(u) {
|
|
2576
2576
|
u = u[0];
|
|
2577
2577
|
var x = {get() {
|
|
2578
2578
|
return u.fromWireType(f(d));
|
|
2579
2579
|
}, enumerable:!0};
|
|
2580
|
-
m && (m =
|
|
2580
|
+
m && (m = V(g, m), x.set = k => {
|
|
2581
2581
|
var q = [];
|
|
2582
2582
|
m(d, u.toWireType(q, k));
|
|
2583
|
-
|
|
2583
|
+
Ac(q);
|
|
2584
2584
|
});
|
|
2585
2585
|
Object.defineProperty(p.i.constructor, b, x);
|
|
2586
2586
|
return [];
|
|
@@ -2588,72 +2588,72 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2588
2588
|
return [];
|
|
2589
2589
|
});
|
|
2590
2590
|
}, _embind_register_class_constructor:function(a, b, c, d, e, f) {
|
|
2591
|
-
var g =
|
|
2592
|
-
e =
|
|
2593
|
-
|
|
2591
|
+
var g = Yc(b, c);
|
|
2592
|
+
e = V(d, e);
|
|
2593
|
+
T([], [a], function(m) {
|
|
2594
2594
|
m = m[0];
|
|
2595
2595
|
var p = `constructor ${m.name}`;
|
|
2596
2596
|
void 0 === m.i.Z && (m.i.Z = []);
|
|
2597
2597
|
if (void 0 !== m.i.Z[b - 1]) {
|
|
2598
|
-
throw new
|
|
2598
|
+
throw new ac(`Cannot register multiple constructors with identical number of parameters (${b - 1}) for class '${m.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);
|
|
2599
2599
|
}
|
|
2600
2600
|
m.i.Z[b - 1] = () => {
|
|
2601
|
-
|
|
2601
|
+
Wc(`Cannot construct ${m.name} due to unbound types`, g);
|
|
2602
2602
|
};
|
|
2603
|
-
|
|
2603
|
+
T([], g, function(l) {
|
|
2604
2604
|
l.splice(1, 0, null);
|
|
2605
|
-
m.i.Z[b - 1] =
|
|
2605
|
+
m.i.Z[b - 1] = Xc(p, l, null, e, f);
|
|
2606
2606
|
return [];
|
|
2607
2607
|
});
|
|
2608
2608
|
return [];
|
|
2609
2609
|
});
|
|
2610
2610
|
}, _embind_register_class_function:function(a, b, c, d, e, f, g, m) {
|
|
2611
|
-
var p =
|
|
2612
|
-
b =
|
|
2613
|
-
f =
|
|
2614
|
-
|
|
2611
|
+
var p = Yc(c, d);
|
|
2612
|
+
b = S(b);
|
|
2613
|
+
f = V(e, f);
|
|
2614
|
+
T([], [a], function(l) {
|
|
2615
2615
|
function t() {
|
|
2616
|
-
|
|
2616
|
+
Wc(`Cannot call ${u} due to unbound types`, p);
|
|
2617
2617
|
}
|
|
2618
2618
|
l = l[0];
|
|
2619
2619
|
var u = `${l.name}.${b}`;
|
|
2620
2620
|
b.startsWith("@@") && (b = Symbol[b.substring(2)]);
|
|
2621
2621
|
m && l.i.kb.push(b);
|
|
2622
2622
|
var x = l.i.N, k = x[b];
|
|
2623
|
-
void 0 === k || void 0 === k.B && k.className !== l.name && k.fa === c - 2 ? (t.fa = c - 2, t.className = l.name, x[b] = t) : (
|
|
2624
|
-
|
|
2625
|
-
q =
|
|
2623
|
+
void 0 === k || void 0 === k.B && k.className !== l.name && k.fa === c - 2 ? (t.fa = c - 2, t.className = l.name, x[b] = t) : (Ic(x, b, u), x[b].B[c - 2] = t);
|
|
2624
|
+
T([], p, function(q) {
|
|
2625
|
+
q = Xc(u, q, l, f, g);
|
|
2626
2626
|
void 0 === x[b].B ? (q.fa = c - 2, x[b] = q) : x[b].B[c - 2] = q;
|
|
2627
2627
|
return [];
|
|
2628
2628
|
});
|
|
2629
2629
|
return [];
|
|
2630
2630
|
});
|
|
2631
2631
|
}, _embind_register_class_property:function(a, b, c, d, e, f, g, m, p, l) {
|
|
2632
|
-
b =
|
|
2633
|
-
e =
|
|
2634
|
-
|
|
2632
|
+
b = S(b);
|
|
2633
|
+
e = V(d, e);
|
|
2634
|
+
T([], [a], function(t) {
|
|
2635
2635
|
t = t[0];
|
|
2636
2636
|
var u = `${t.name}.${b}`, x = {get() {
|
|
2637
|
-
|
|
2637
|
+
Wc(`Cannot access ${u} due to unbound types`, [c, g]);
|
|
2638
2638
|
}, enumerable:!0, configurable:!0};
|
|
2639
2639
|
x.set = p ? () => {
|
|
2640
|
-
|
|
2640
|
+
Wc(`Cannot access ${u} due to unbound types`, [c, g]);
|
|
2641
2641
|
} : () => {
|
|
2642
|
-
|
|
2642
|
+
Q(u + " is a read-only property");
|
|
2643
2643
|
};
|
|
2644
2644
|
Object.defineProperty(t.i.N, b, x);
|
|
2645
|
-
|
|
2645
|
+
T([], p ? [c, g] : [c], function(k) {
|
|
2646
2646
|
var q = k[0], v = {get() {
|
|
2647
|
-
var B =
|
|
2647
|
+
var B = Zc(this, t, u + " getter");
|
|
2648
2648
|
return q.fromWireType(e(f, B));
|
|
2649
2649
|
}, enumerable:!0};
|
|
2650
2650
|
if (p) {
|
|
2651
|
-
p =
|
|
2651
|
+
p = V(m, p);
|
|
2652
2652
|
var y = k[1];
|
|
2653
2653
|
v.set = function(B) {
|
|
2654
|
-
var D =
|
|
2654
|
+
var D = Zc(this, t, u + " setter"), E = [];
|
|
2655
2655
|
p(l, D, y.toWireType(E, B));
|
|
2656
|
-
|
|
2656
|
+
Ac(E);
|
|
2657
2657
|
};
|
|
2658
2658
|
}
|
|
2659
2659
|
Object.defineProperty(t.i.N, b, v);
|
|
@@ -2662,57 +2662,57 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2662
2662
|
return [];
|
|
2663
2663
|
});
|
|
2664
2664
|
}, _embind_register_emval:function(a, b) {
|
|
2665
|
-
b =
|
|
2666
|
-
|
|
2667
|
-
var d =
|
|
2668
|
-
|
|
2665
|
+
b = S(b);
|
|
2666
|
+
U(a, {name:b, fromWireType:function(c) {
|
|
2667
|
+
var d = R(c);
|
|
2668
|
+
$c(c);
|
|
2669
2669
|
return d;
|
|
2670
2670
|
}, toWireType:function(c, d) {
|
|
2671
|
-
return
|
|
2672
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2671
|
+
return bc(d);
|
|
2672
|
+
}, argPackAdvance:8, readValueFromPointer:Bc, K:null,});
|
|
2673
2673
|
}, _embind_register_enum:function(a, b, c, d) {
|
|
2674
2674
|
function e() {
|
|
2675
2675
|
}
|
|
2676
|
-
c =
|
|
2677
|
-
b =
|
|
2676
|
+
c = Ec(c);
|
|
2677
|
+
b = S(b);
|
|
2678
2678
|
e.values = {};
|
|
2679
|
-
|
|
2679
|
+
U(a, {name:b, constructor:e, fromWireType:function(f) {
|
|
2680
2680
|
return this.constructor.values[f];
|
|
2681
2681
|
}, toWireType:function(f, g) {
|
|
2682
2682
|
return g.value;
|
|
2683
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2684
|
-
|
|
2683
|
+
}, argPackAdvance:8, readValueFromPointer:ad(b, c, d), K:null,});
|
|
2684
|
+
Jc(b, e);
|
|
2685
2685
|
}, _embind_register_enum_value:function(a, b, c) {
|
|
2686
|
-
var d =
|
|
2687
|
-
b =
|
|
2686
|
+
var d = oc(a, "enum");
|
|
2687
|
+
b = S(b);
|
|
2688
2688
|
a = d.constructor;
|
|
2689
|
-
d = Object.create(d.constructor.prototype, {value:{value:c}, constructor:{value
|
|
2689
|
+
d = Object.create(d.constructor.prototype, {value:{value:c}, constructor:{value:Zb(`${d.name}_${b}`, function() {
|
|
2690
2690
|
})},});
|
|
2691
2691
|
a.values[c] = d;
|
|
2692
2692
|
a[b] = d;
|
|
2693
2693
|
}, _embind_register_float:function(a, b, c) {
|
|
2694
|
-
c =
|
|
2695
|
-
b =
|
|
2696
|
-
|
|
2694
|
+
c = Ec(c);
|
|
2695
|
+
b = S(b);
|
|
2696
|
+
U(a, {name:b, fromWireType:function(d) {
|
|
2697
2697
|
return d;
|
|
2698
2698
|
}, toWireType:function(d, e) {
|
|
2699
2699
|
return e;
|
|
2700
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2700
|
+
}, argPackAdvance:8, readValueFromPointer:bd(b, c), K:null,});
|
|
2701
2701
|
}, _embind_register_function:function(a, b, c, d, e, f) {
|
|
2702
|
-
var g =
|
|
2703
|
-
a =
|
|
2704
|
-
e =
|
|
2705
|
-
|
|
2706
|
-
|
|
2702
|
+
var g = Yc(b, c);
|
|
2703
|
+
a = S(a);
|
|
2704
|
+
e = V(d, e);
|
|
2705
|
+
Jc(a, function() {
|
|
2706
|
+
Wc(`Cannot call ${a} due to unbound types`, g);
|
|
2707
2707
|
}, b - 1);
|
|
2708
|
-
|
|
2709
|
-
|
|
2708
|
+
T([], g, function(m) {
|
|
2709
|
+
Rc(a, Xc(a, [m[0], null].concat(m.slice(1)), null, e, f), b - 1);
|
|
2710
2710
|
return [];
|
|
2711
2711
|
});
|
|
2712
2712
|
}, _embind_register_integer:function(a, b, c, d, e) {
|
|
2713
|
-
b =
|
|
2713
|
+
b = S(b);
|
|
2714
2714
|
-1 === e && (e = 4294967295);
|
|
2715
|
-
e =
|
|
2715
|
+
e = Ec(c);
|
|
2716
2716
|
var f = m => m;
|
|
2717
2717
|
if (0 === d) {
|
|
2718
2718
|
var g = 32 - 8 * c;
|
|
@@ -2723,26 +2723,26 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2723
2723
|
} : function(m, p) {
|
|
2724
2724
|
return p;
|
|
2725
2725
|
};
|
|
2726
|
-
|
|
2726
|
+
U(a, {name:b, fromWireType:f, toWireType:c, argPackAdvance:8, readValueFromPointer:cd(b, e, 0 !== d), K:null,});
|
|
2727
2727
|
}, _embind_register_memory_view:function(a, b, c) {
|
|
2728
2728
|
function d(f) {
|
|
2729
2729
|
f >>= 2;
|
|
2730
|
-
var g =
|
|
2730
|
+
var g = K;
|
|
2731
2731
|
return new e(g.buffer, g[f + 1], g[f]);
|
|
2732
2732
|
}
|
|
2733
2733
|
var e = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array,][b];
|
|
2734
|
-
c =
|
|
2735
|
-
|
|
2734
|
+
c = S(c);
|
|
2735
|
+
U(a, {name:c, fromWireType:d, argPackAdvance:8, readValueFromPointer:d,}, {Rb:!0,});
|
|
2736
2736
|
}, _embind_register_std_string:function(a, b) {
|
|
2737
|
-
b =
|
|
2737
|
+
b = S(b);
|
|
2738
2738
|
var c = "std::string" === b;
|
|
2739
|
-
|
|
2740
|
-
var e =
|
|
2739
|
+
U(a, {name:b, fromWireType:function(d) {
|
|
2740
|
+
var e = K[d >> 2], f = d + 4;
|
|
2741
2741
|
if (c) {
|
|
2742
2742
|
for (var g = f, m = 0; m <= e; ++m) {
|
|
2743
2743
|
var p = f + m;
|
|
2744
|
-
if (m == e || 0 ==
|
|
2745
|
-
g = g ?
|
|
2744
|
+
if (m == e || 0 == G[p]) {
|
|
2745
|
+
g = g ? L(G, g, p - g) : "";
|
|
2746
2746
|
if (void 0 === l) {
|
|
2747
2747
|
var l = g;
|
|
2748
2748
|
} else {
|
|
@@ -2754,107 +2754,107 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2754
2754
|
} else {
|
|
2755
2755
|
l = Array(e);
|
|
2756
2756
|
for (m = 0; m < e; ++m) {
|
|
2757
|
-
l[m] = String.fromCharCode(
|
|
2757
|
+
l[m] = String.fromCharCode(G[f + m]);
|
|
2758
2758
|
}
|
|
2759
2759
|
l = l.join("");
|
|
2760
2760
|
}
|
|
2761
|
-
|
|
2761
|
+
nc(d);
|
|
2762
2762
|
return l;
|
|
2763
2763
|
}, toWireType:function(d, e) {
|
|
2764
2764
|
e instanceof ArrayBuffer && (e = new Uint8Array(e));
|
|
2765
2765
|
var f = "string" == typeof e;
|
|
2766
|
-
f || e instanceof Uint8Array || e instanceof Uint8ClampedArray || e instanceof Int8Array ||
|
|
2767
|
-
var g = c && f ?
|
|
2766
|
+
f || e instanceof Uint8Array || e instanceof Uint8ClampedArray || e instanceof Int8Array || Q("Cannot pass non-string to std::string");
|
|
2767
|
+
var g = c && f ? db(e) : e.length;
|
|
2768
2768
|
var m = Ld(4 + g + 1), p = m + 4;
|
|
2769
|
-
|
|
2769
|
+
K[m >> 2] = g;
|
|
2770
2770
|
if (c && f) {
|
|
2771
|
-
|
|
2771
|
+
eb(e, G, p, g + 1);
|
|
2772
2772
|
} else {
|
|
2773
2773
|
if (f) {
|
|
2774
2774
|
for (f = 0; f < g; ++f) {
|
|
2775
2775
|
var l = e.charCodeAt(f);
|
|
2776
|
-
255 < l && (
|
|
2777
|
-
|
|
2776
|
+
255 < l && (nc(p), Q("String has UTF-16 code units that do not fit in 8 bits"));
|
|
2777
|
+
G[p + f] = l;
|
|
2778
2778
|
}
|
|
2779
2779
|
} else {
|
|
2780
2780
|
for (f = 0; f < g; ++f) {
|
|
2781
|
-
|
|
2781
|
+
G[p + f] = e[f];
|
|
2782
2782
|
}
|
|
2783
2783
|
}
|
|
2784
2784
|
}
|
|
2785
|
-
null !== d && d.push(
|
|
2785
|
+
null !== d && d.push(nc, m);
|
|
2786
2786
|
return m;
|
|
2787
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2788
|
-
|
|
2787
|
+
}, argPackAdvance:8, readValueFromPointer:Bc, K:function(d) {
|
|
2788
|
+
nc(d);
|
|
2789
2789
|
},});
|
|
2790
2790
|
}, _embind_register_std_wstring:function(a, b, c) {
|
|
2791
|
-
c =
|
|
2791
|
+
c = S(c);
|
|
2792
2792
|
if (2 === b) {
|
|
2793
|
-
var d =
|
|
2794
|
-
var e =
|
|
2795
|
-
var f =
|
|
2796
|
-
var g = () =>
|
|
2793
|
+
var d = ed;
|
|
2794
|
+
var e = fd;
|
|
2795
|
+
var f = gd;
|
|
2796
|
+
var g = () => va;
|
|
2797
2797
|
var m = 1;
|
|
2798
2798
|
} else {
|
|
2799
|
-
4 === b && (d =
|
|
2799
|
+
4 === b && (d = hd, e = jd, f = kd, g = () => K, m = 2);
|
|
2800
2800
|
}
|
|
2801
|
-
|
|
2802
|
-
for (var l =
|
|
2801
|
+
U(a, {name:c, fromWireType:function(p) {
|
|
2802
|
+
for (var l = K[p >> 2], t = g(), u, x = p + 4, k = 0; k <= l; ++k) {
|
|
2803
2803
|
var q = p + 4 + k * b;
|
|
2804
2804
|
if (k == l || 0 == t[q >> m]) {
|
|
2805
2805
|
x = d(x, q - x), void 0 === u ? u = x : (u += String.fromCharCode(0), u += x), x = q + b;
|
|
2806
2806
|
}
|
|
2807
2807
|
}
|
|
2808
|
-
|
|
2808
|
+
nc(p);
|
|
2809
2809
|
return u;
|
|
2810
2810
|
}, toWireType:function(p, l) {
|
|
2811
|
-
"string" != typeof l &&
|
|
2811
|
+
"string" != typeof l && Q(`Cannot pass non-string to C++ string type ${c}`);
|
|
2812
2812
|
var t = f(l), u = Ld(4 + t + b);
|
|
2813
|
-
|
|
2813
|
+
K[u >> 2] = t >> m;
|
|
2814
2814
|
e(l, u + 4, t + b);
|
|
2815
|
-
null !== p && p.push(
|
|
2815
|
+
null !== p && p.push(nc, u);
|
|
2816
2816
|
return u;
|
|
2817
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2818
|
-
|
|
2817
|
+
}, argPackAdvance:8, readValueFromPointer:Bc, K:function(p) {
|
|
2818
|
+
nc(p);
|
|
2819
2819
|
},});
|
|
2820
2820
|
}, _embind_register_value_object:function(a, b, c, d, e, f) {
|
|
2821
|
-
|
|
2821
|
+
zc[a] = {name:S(b), Pa:V(c, d), V:V(e, f), Za:[],};
|
|
2822
2822
|
}, _embind_register_value_object_field:function(a, b, c, d, e, f, g, m, p, l) {
|
|
2823
|
-
|
|
2823
|
+
zc[a].Za.push({Jb:S(b), Pb:c, Nb:V(d, e), Ob:f, dc:g, cc:V(m, p), ec:l,});
|
|
2824
2824
|
}, _embind_register_void:function(a, b) {
|
|
2825
|
-
b =
|
|
2826
|
-
|
|
2825
|
+
b = S(b);
|
|
2826
|
+
U(a, {Xb:!0, name:b, argPackAdvance:0, fromWireType:function() {
|
|
2827
2827
|
}, toWireType:function() {
|
|
2828
2828
|
},});
|
|
2829
2829
|
}, _emscripten_get_now_is_monotonic:() => !0, _emval_as:function(a, b, c) {
|
|
2830
|
-
a =
|
|
2831
|
-
b =
|
|
2832
|
-
var d = [], e =
|
|
2833
|
-
|
|
2830
|
+
a = R(a);
|
|
2831
|
+
b = oc(b, "emval::as");
|
|
2832
|
+
var d = [], e = bc(d);
|
|
2833
|
+
K[c >> 2] = e;
|
|
2834
2834
|
return b.toWireType(d, a);
|
|
2835
2835
|
}, _emval_call_method:function(a, b, c, d, e) {
|
|
2836
|
-
a =
|
|
2837
|
-
b =
|
|
2838
|
-
c =
|
|
2836
|
+
a = nd[a];
|
|
2837
|
+
b = R(b);
|
|
2838
|
+
c = md(c);
|
|
2839
2839
|
var f = [];
|
|
2840
|
-
|
|
2840
|
+
K[d >> 2] = bc(f);
|
|
2841
2841
|
return a(b, c, f, e);
|
|
2842
2842
|
}, _emval_call_void_method:function(a, b, c, d) {
|
|
2843
|
-
a =
|
|
2844
|
-
b =
|
|
2845
|
-
c =
|
|
2843
|
+
a = nd[a];
|
|
2844
|
+
b = R(b);
|
|
2845
|
+
c = md(c);
|
|
2846
2846
|
a(b, c, null, d);
|
|
2847
|
-
}, _emval_decref
|
|
2848
|
-
var c =
|
|
2847
|
+
}, _emval_decref:$c, _emval_get_method_caller:function(a, b) {
|
|
2848
|
+
var c = pd(a, b), d = c[0];
|
|
2849
2849
|
b = d.name + "_$" + c.slice(1).map(function(g) {
|
|
2850
2850
|
return g.name;
|
|
2851
2851
|
}).join("_") + "$";
|
|
2852
|
-
var e =
|
|
2852
|
+
var e = qd[b];
|
|
2853
2853
|
if (void 0 !== e) {
|
|
2854
2854
|
return e;
|
|
2855
2855
|
}
|
|
2856
2856
|
var f = Array(a - 1);
|
|
2857
|
-
e =
|
|
2857
|
+
e = od((g, m, p, l) => {
|
|
2858
2858
|
for (var t = 0, u = 0; u < a - 1; ++u) {
|
|
2859
2859
|
f[u] = c[u + 1].readValueFromPointer(l + t), t += c[u + 1].argPackAdvance;
|
|
2860
2860
|
}
|
|
@@ -2866,50 +2866,57 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2866
2866
|
return d.toWireType(p, g);
|
|
2867
2867
|
}
|
|
2868
2868
|
});
|
|
2869
|
-
return
|
|
2869
|
+
return qd[b] = e;
|
|
2870
2870
|
}, _emval_get_property:function(a, b) {
|
|
2871
|
-
a =
|
|
2872
|
-
b =
|
|
2873
|
-
return
|
|
2871
|
+
a = R(a);
|
|
2872
|
+
b = R(b);
|
|
2873
|
+
return bc(a[b]);
|
|
2874
2874
|
}, _emval_incref:function(a) {
|
|
2875
|
-
4 < a && (
|
|
2875
|
+
4 < a && (P.get(a).ob += 1);
|
|
2876
2876
|
}, _emval_new_cstring:function(a) {
|
|
2877
|
-
return
|
|
2877
|
+
return bc(md(a));
|
|
2878
2878
|
}, _emval_new_object:function() {
|
|
2879
|
-
return
|
|
2879
|
+
return bc({});
|
|
2880
2880
|
}, _emval_run_destructors:function(a) {
|
|
2881
|
-
var b =
|
|
2882
|
-
|
|
2883
|
-
|
|
2881
|
+
var b = R(a);
|
|
2882
|
+
Ac(b);
|
|
2883
|
+
$c(a);
|
|
2884
2884
|
}, _emval_set_property:function(a, b, c) {
|
|
2885
|
-
a =
|
|
2886
|
-
b =
|
|
2887
|
-
c =
|
|
2885
|
+
a = R(a);
|
|
2886
|
+
b = R(b);
|
|
2887
|
+
c = R(c);
|
|
2888
2888
|
a[b] = c;
|
|
2889
2889
|
}, _emval_take_value:function(a, b) {
|
|
2890
|
-
a =
|
|
2890
|
+
a = oc(a, "_emval_take_value");
|
|
2891
2891
|
a = a.readValueFromPointer(b);
|
|
2892
|
-
return
|
|
2892
|
+
return bc(a);
|
|
2893
2893
|
}, abort:() => {
|
|
2894
|
-
|
|
2894
|
+
sa("");
|
|
2895
2895
|
}, beginPixelLocalStorageWEBGL:function(a, b, c) {
|
|
2896
2896
|
(a = r[a].H.ia) && a.beginPixelLocalStorageWEBGL(n.HEAPU32.subarray(c, c + b));
|
|
2897
|
-
},
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
a
|
|
2897
|
+
}, decode_image:function(a, b, c) {
|
|
2898
|
+
var d = n.images;
|
|
2899
|
+
d || (d = new Map(), n.images = d);
|
|
2900
|
+
var e = new Image();
|
|
2901
|
+
d.set(a, e);
|
|
2902
|
+
b = n.HEAP8.subarray(b, b + c);
|
|
2903
|
+
c = new Uint8Array(c);
|
|
2904
|
+
c.set(b);
|
|
2905
|
+
e.src = URL.createObjectURL(new Blob([c], {type:"image/png"}));
|
|
2906
|
+
e.onload = function() {
|
|
2907
|
+
n._setWebImage(a, e.width, e.height);
|
|
2908
|
+
};
|
|
2902
2909
|
}, emscripten_asm_const_int:(a, b, c) => {
|
|
2903
|
-
|
|
2910
|
+
rd.length = 0;
|
|
2904
2911
|
var d;
|
|
2905
|
-
for (c >>= 2; d =
|
|
2906
|
-
c += 105 != d & c,
|
|
2912
|
+
for (c >>= 2; d = G[b++];) {
|
|
2913
|
+
c += 105 != d & c, rd.push(105 == d ? J[c] : xa[c++ >> 1]), ++c;
|
|
2907
2914
|
}
|
|
2908
|
-
return
|
|
2915
|
+
return Ta[a].apply(null, rd);
|
|
2909
2916
|
}, emscripten_date_now:function() {
|
|
2910
2917
|
return Date.now();
|
|
2911
|
-
}, emscripten_get_now:() => performance.now(), emscripten_memcpy_big:(a, b, c) =>
|
|
2912
|
-
var b =
|
|
2918
|
+
}, emscripten_get_now:() => performance.now(), emscripten_memcpy_big:(a, b, c) => G.copyWithin(a, b, b + c), emscripten_resize_heap:a => {
|
|
2919
|
+
var b = G.length;
|
|
2913
2920
|
a >>>= 0;
|
|
2914
2921
|
if (2147483648 < a) {
|
|
2915
2922
|
return !1;
|
|
@@ -2920,10 +2927,10 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2920
2927
|
var e = Math;
|
|
2921
2928
|
d = Math.max(a, d);
|
|
2922
2929
|
a: {
|
|
2923
|
-
e = e.min.call(e, 2147483648, d + (65536 - d % 65536) % 65536) -
|
|
2930
|
+
e = e.min.call(e, 2147483648, d + (65536 - d % 65536) % 65536) - ta.buffer.byteLength + 65535 >>> 16;
|
|
2924
2931
|
try {
|
|
2925
|
-
|
|
2926
|
-
|
|
2932
|
+
ta.grow(e);
|
|
2933
|
+
ya();
|
|
2927
2934
|
var f = 1;
|
|
2928
2935
|
break a;
|
|
2929
2936
|
} catch (g) {
|
|
@@ -2937,11 +2944,11 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2937
2944
|
return !1;
|
|
2938
2945
|
}, emscripten_webgl_enable_extension:function(a, b) {
|
|
2939
2946
|
a = r[a];
|
|
2940
|
-
b = b ?
|
|
2947
|
+
b = b ? L(G, b) : "";
|
|
2941
2948
|
b.startsWith("GL_") && (b = b.substr(3));
|
|
2942
|
-
"WEBGL_draw_instanced_base_vertex_base_instance" == b &&
|
|
2943
|
-
"WEBGL_multi_draw_instanced_base_vertex_base_instance" == b &&
|
|
2944
|
-
"WEBGL_multi_draw" == b && Ed(
|
|
2949
|
+
"WEBGL_draw_instanced_base_vertex_base_instance" == b && sd(Z);
|
|
2950
|
+
"WEBGL_multi_draw_instanced_base_vertex_base_instance" == b && td(Z);
|
|
2951
|
+
"WEBGL_multi_draw" == b && Ed(Z);
|
|
2945
2952
|
return !!a.H.getExtension(b);
|
|
2946
2953
|
}, emscripten_webgl_get_current_context:function() {
|
|
2947
2954
|
return Dd ? Dd.handle : 0;
|
|
@@ -2961,28 +2968,28 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2961
2968
|
var c = 0;
|
|
2962
2969
|
Hd().forEach(function(d, e) {
|
|
2963
2970
|
var f = b + c;
|
|
2964
|
-
e =
|
|
2971
|
+
e = K[a + 4 * e >> 2] = f;
|
|
2965
2972
|
for (f = 0; f < d.length; ++f) {
|
|
2966
|
-
|
|
2973
|
+
C[e++ >> 0] = d.charCodeAt(f);
|
|
2967
2974
|
}
|
|
2968
|
-
|
|
2975
|
+
C[e >> 0] = 0;
|
|
2969
2976
|
c += d.length + 1;
|
|
2970
2977
|
});
|
|
2971
2978
|
return 0;
|
|
2972
2979
|
}, environ_sizes_get:(a, b) => {
|
|
2973
2980
|
var c = Hd();
|
|
2974
|
-
|
|
2981
|
+
K[a >> 2] = c.length;
|
|
2975
2982
|
var d = 0;
|
|
2976
2983
|
c.forEach(function(e) {
|
|
2977
2984
|
d += e.length + 1;
|
|
2978
2985
|
});
|
|
2979
|
-
|
|
2986
|
+
K[b >> 2] = d;
|
|
2980
2987
|
return 0;
|
|
2981
2988
|
}, fd_close:function(a) {
|
|
2982
2989
|
try {
|
|
2983
|
-
var b =
|
|
2990
|
+
var b = Ib(a);
|
|
2984
2991
|
if (null === b.W) {
|
|
2985
|
-
throw new
|
|
2992
|
+
throw new M(8);
|
|
2986
2993
|
}
|
|
2987
2994
|
b.Ma && (b.Ma = null);
|
|
2988
2995
|
try {
|
|
@@ -2990,12 +2997,12 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2990
2997
|
} catch (c) {
|
|
2991
2998
|
throw c;
|
|
2992
2999
|
} finally {
|
|
2993
|
-
|
|
3000
|
+
vb[b.W] = null;
|
|
2994
3001
|
}
|
|
2995
3002
|
b.W = null;
|
|
2996
3003
|
return 0;
|
|
2997
3004
|
} catch (c) {
|
|
2998
|
-
if ("undefined" == typeof
|
|
3005
|
+
if ("undefined" == typeof Vb || "ErrnoError" !== c.name) {
|
|
2999
3006
|
throw c;
|
|
3000
3007
|
}
|
|
3001
3008
|
return c.$;
|
|
@@ -3003,32 +3010,32 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3003
3010
|
}, fd_read:function(a, b, c, d) {
|
|
3004
3011
|
try {
|
|
3005
3012
|
a: {
|
|
3006
|
-
var e =
|
|
3013
|
+
var e = Ib(a);
|
|
3007
3014
|
a = b;
|
|
3008
3015
|
for (var f, g = b = 0; g < c; g++) {
|
|
3009
|
-
var m =
|
|
3016
|
+
var m = K[a >> 2], p = K[a + 4 >> 2];
|
|
3010
3017
|
a += 8;
|
|
3011
|
-
var l = e, t = m, u = p, x = f, k =
|
|
3018
|
+
var l = e, t = m, u = p, x = f, k = C;
|
|
3012
3019
|
if (0 > u || 0 > x) {
|
|
3013
|
-
throw new
|
|
3020
|
+
throw new M(28);
|
|
3014
3021
|
}
|
|
3015
3022
|
if (null === l.W) {
|
|
3016
|
-
throw new
|
|
3023
|
+
throw new M(8);
|
|
3017
3024
|
}
|
|
3018
3025
|
if (1 === (l.flags & 2097155)) {
|
|
3019
|
-
throw new
|
|
3026
|
+
throw new M(8);
|
|
3020
3027
|
}
|
|
3021
3028
|
if (16384 === (l.node.mode & 61440)) {
|
|
3022
|
-
throw new
|
|
3029
|
+
throw new M(31);
|
|
3023
3030
|
}
|
|
3024
3031
|
if (!l.m.read) {
|
|
3025
|
-
throw new
|
|
3032
|
+
throw new M(28);
|
|
3026
3033
|
}
|
|
3027
3034
|
var q = "undefined" != typeof x;
|
|
3028
3035
|
if (!q) {
|
|
3029
3036
|
x = l.position;
|
|
3030
3037
|
} else if (!l.seekable) {
|
|
3031
|
-
throw new
|
|
3038
|
+
throw new M(70);
|
|
3032
3039
|
}
|
|
3033
3040
|
var v = l.m.read(l, k, t, u, x);
|
|
3034
3041
|
q || (l.position += v);
|
|
@@ -3045,10 +3052,10 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3045
3052
|
}
|
|
3046
3053
|
B = b;
|
|
3047
3054
|
}
|
|
3048
|
-
|
|
3055
|
+
K[d >> 2] = B;
|
|
3049
3056
|
return 0;
|
|
3050
3057
|
} catch (D) {
|
|
3051
|
-
if ("undefined" == typeof
|
|
3058
|
+
if ("undefined" == typeof Vb || "ErrnoError" !== D.name) {
|
|
3052
3059
|
throw D;
|
|
3053
3060
|
}
|
|
3054
3061
|
return D.$;
|
|
@@ -3059,15 +3066,15 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3059
3066
|
if (isNaN(b)) {
|
|
3060
3067
|
return 61;
|
|
3061
3068
|
}
|
|
3062
|
-
var f =
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3069
|
+
var f = Ib(a);
|
|
3070
|
+
Qb(f, b, d);
|
|
3071
|
+
Pa = [f.position >>> 0, (Oa = f.position, 1.0 <= +Math.abs(Oa) ? 0.0 < Oa ? +Math.floor(Oa / 4294967296.0) >>> 0 : ~~+Math.ceil((Oa - +(~~Oa >>> 0)) / 4294967296.0) >>> 0 : 0)];
|
|
3072
|
+
J[e >> 2] = Pa[0];
|
|
3073
|
+
J[e + 4 >> 2] = Pa[1];
|
|
3067
3074
|
f.Ma && 0 === b && 0 === d && (f.Ma = null);
|
|
3068
3075
|
return 0;
|
|
3069
3076
|
} catch (g) {
|
|
3070
|
-
if ("undefined" == typeof
|
|
3077
|
+
if ("undefined" == typeof Vb || "ErrnoError" !== g.name) {
|
|
3071
3078
|
throw g;
|
|
3072
3079
|
}
|
|
3073
3080
|
return g.$;
|
|
@@ -3075,33 +3082,33 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3075
3082
|
}, fd_write:function(a, b, c, d) {
|
|
3076
3083
|
try {
|
|
3077
3084
|
a: {
|
|
3078
|
-
var e =
|
|
3085
|
+
var e = Ib(a);
|
|
3079
3086
|
a = b;
|
|
3080
3087
|
for (var f, g = b = 0; g < c; g++) {
|
|
3081
|
-
var m =
|
|
3088
|
+
var m = K[a >> 2], p = K[a + 4 >> 2];
|
|
3082
3089
|
a += 8;
|
|
3083
|
-
var l = e, t = m, u = p, x = f, k =
|
|
3090
|
+
var l = e, t = m, u = p, x = f, k = C;
|
|
3084
3091
|
if (0 > u || 0 > x) {
|
|
3085
|
-
throw new
|
|
3092
|
+
throw new M(28);
|
|
3086
3093
|
}
|
|
3087
3094
|
if (null === l.W) {
|
|
3088
|
-
throw new
|
|
3095
|
+
throw new M(8);
|
|
3089
3096
|
}
|
|
3090
3097
|
if (0 === (l.flags & 2097155)) {
|
|
3091
|
-
throw new
|
|
3098
|
+
throw new M(8);
|
|
3092
3099
|
}
|
|
3093
3100
|
if (16384 === (l.node.mode & 61440)) {
|
|
3094
|
-
throw new
|
|
3101
|
+
throw new M(31);
|
|
3095
3102
|
}
|
|
3096
3103
|
if (!l.m.write) {
|
|
3097
|
-
throw new
|
|
3104
|
+
throw new M(28);
|
|
3098
3105
|
}
|
|
3099
|
-
l.seekable && l.flags & 1024 &&
|
|
3106
|
+
l.seekable && l.flags & 1024 && Qb(l, 0, 2);
|
|
3100
3107
|
var q = "undefined" != typeof x;
|
|
3101
3108
|
if (!q) {
|
|
3102
3109
|
x = l.position;
|
|
3103
3110
|
} else if (!l.seekable) {
|
|
3104
|
-
throw new
|
|
3111
|
+
throw new M(70);
|
|
3105
3112
|
}
|
|
3106
3113
|
var v = l.m.write(l, k, t, u, x, void 0);
|
|
3107
3114
|
q || (l.position += v);
|
|
@@ -3115,10 +3122,10 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3115
3122
|
}
|
|
3116
3123
|
B = b;
|
|
3117
3124
|
}
|
|
3118
|
-
|
|
3125
|
+
K[d >> 2] = B;
|
|
3119
3126
|
return 0;
|
|
3120
3127
|
} catch (D) {
|
|
3121
|
-
if ("undefined" == typeof
|
|
3128
|
+
if ("undefined" == typeof Vb || "ErrnoError" !== D.name) {
|
|
3122
3129
|
throw D;
|
|
3123
3130
|
}
|
|
3124
3131
|
return D.$;
|
|
@@ -3126,138 +3133,138 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3126
3133
|
}, framebufferPixelLocalClearValuefvWEBGL:function(a, b, c, d, e, f) {
|
|
3127
3134
|
(a = r[a].H.ia) && a.framebufferPixelLocalClearValuefvWEBGL(b, [c, d, e, f]);
|
|
3128
3135
|
}, framebufferTexturePixelLocalStorageWEBGL:function(a, b, c, d, e) {
|
|
3129
|
-
(a = r[a].H.ia) && a.framebufferTexturePixelLocalStorageWEBGL(b,
|
|
3136
|
+
(a = r[a].H.ia) && a.framebufferTexturePixelLocalStorageWEBGL(b, yd[c], d, e);
|
|
3130
3137
|
}, glActiveTexture:function(a) {
|
|
3131
|
-
|
|
3138
|
+
Z.activeTexture(a);
|
|
3132
3139
|
}, glAttachShader:function(a, b) {
|
|
3133
|
-
|
|
3140
|
+
Z.attachShader(W[a], zd[b]);
|
|
3134
3141
|
}, glBindBuffer:function(a, b) {
|
|
3135
|
-
35051 == a ?
|
|
3136
|
-
|
|
3142
|
+
35051 == a ? Z.Wa = b : 35052 == a && (Z.Ka = b);
|
|
3143
|
+
Z.bindBuffer(a, vd[b]);
|
|
3137
3144
|
}, glBindBufferRange:function(a, b, c, d, e) {
|
|
3138
|
-
|
|
3145
|
+
Z.bindBufferRange(a, b, vd[c], d, e);
|
|
3139
3146
|
}, glBindFramebuffer:function(a, b) {
|
|
3140
|
-
|
|
3147
|
+
Z.bindFramebuffer(a, wd[b]);
|
|
3141
3148
|
}, glBindRenderbuffer:function(a, b) {
|
|
3142
|
-
|
|
3149
|
+
Z.bindRenderbuffer(a, xd[b]);
|
|
3143
3150
|
}, glBindTexture:function(a, b) {
|
|
3144
|
-
|
|
3151
|
+
Z.bindTexture(a, yd[b]);
|
|
3145
3152
|
}, glBindVertexArray:function(a) {
|
|
3146
|
-
|
|
3153
|
+
Z.bindVertexArray(Ad[a]);
|
|
3147
3154
|
}, glBlendEquation:function(a) {
|
|
3148
|
-
|
|
3155
|
+
Z.blendEquation(a);
|
|
3149
3156
|
}, glBlendFunc:function(a, b) {
|
|
3150
|
-
|
|
3157
|
+
Z.blendFunc(a, b);
|
|
3151
3158
|
}, glBlitFramebuffer:function(a, b, c, d, e, f, g, m, p, l) {
|
|
3152
|
-
|
|
3159
|
+
Z.blitFramebuffer(a, b, c, d, e, f, g, m, p, l);
|
|
3153
3160
|
}, glBufferData:function(a, b, c, d) {
|
|
3154
|
-
c && b ?
|
|
3161
|
+
c && b ? Z.bufferData(a, G, d, c, b) : Z.bufferData(a, b, d);
|
|
3155
3162
|
}, glBufferSubData:function(a, b, c, d) {
|
|
3156
|
-
c &&
|
|
3163
|
+
c && Z.bufferSubData(a, b, G, d, c);
|
|
3157
3164
|
}, glClear:function(a) {
|
|
3158
|
-
|
|
3165
|
+
Z.clear(a);
|
|
3159
3166
|
}, glClearColor:function(a, b, c, d) {
|
|
3160
|
-
|
|
3167
|
+
Z.clearColor(a, b, c, d);
|
|
3161
3168
|
}, glClearDepthf:function(a) {
|
|
3162
|
-
|
|
3169
|
+
Z.clearDepth(a);
|
|
3163
3170
|
}, glClearStencil:function(a) {
|
|
3164
|
-
|
|
3171
|
+
Z.clearStencil(a);
|
|
3165
3172
|
}, glColorMask:function(a, b, c, d) {
|
|
3166
|
-
|
|
3173
|
+
Z.colorMask(!!a, !!b, !!c, !!d);
|
|
3167
3174
|
}, glCompileShader:function(a) {
|
|
3168
|
-
|
|
3175
|
+
Z.compileShader(zd[a]);
|
|
3169
3176
|
}, glCreateProgram:function() {
|
|
3170
|
-
var a = ha(
|
|
3177
|
+
var a = ha(W), b = Z.createProgram();
|
|
3171
3178
|
b.name = a;
|
|
3172
3179
|
b.Fc = b.Dc = b.Ec = 0;
|
|
3173
3180
|
b.Sa = 1;
|
|
3174
|
-
|
|
3181
|
+
W[a] = b;
|
|
3175
3182
|
return a;
|
|
3176
3183
|
}, glCreateShader:function(a) {
|
|
3177
3184
|
var b = ha(zd);
|
|
3178
|
-
zd[b] =
|
|
3185
|
+
zd[b] = Z.createShader(a);
|
|
3179
3186
|
return b;
|
|
3180
3187
|
}, glCullFace:function(a) {
|
|
3181
|
-
|
|
3188
|
+
Z.cullFace(a);
|
|
3182
3189
|
}, glDeleteBuffers:function(a, b) {
|
|
3183
3190
|
for (var c = 0; c < a; c++) {
|
|
3184
|
-
var d =
|
|
3185
|
-
e && (
|
|
3191
|
+
var d = J[b + 4 * c >> 2], e = vd[d];
|
|
3192
|
+
e && (Z.deleteBuffer(e), e.name = 0, vd[d] = null, d == Z.Wa && (Z.Wa = 0), d == Z.Ka && (Z.Ka = 0));
|
|
3186
3193
|
}
|
|
3187
3194
|
}, glDeleteFramebuffers:function(a, b) {
|
|
3188
3195
|
for (var c = 0; c < a; ++c) {
|
|
3189
|
-
var d =
|
|
3190
|
-
e && (
|
|
3196
|
+
var d = J[b + 4 * c >> 2], e = wd[d];
|
|
3197
|
+
e && (Z.deleteFramebuffer(e), e.name = 0, wd[d] = null);
|
|
3191
3198
|
}
|
|
3192
3199
|
}, glDeleteProgram:function(a) {
|
|
3193
3200
|
if (a) {
|
|
3194
|
-
var b =
|
|
3195
|
-
b ? (
|
|
3201
|
+
var b = W[a];
|
|
3202
|
+
b ? (Z.deleteProgram(b), b.name = 0, W[a] = null) : X(1281);
|
|
3196
3203
|
}
|
|
3197
3204
|
}, glDeleteRenderbuffers:function(a, b) {
|
|
3198
3205
|
for (var c = 0; c < a; c++) {
|
|
3199
|
-
var d =
|
|
3200
|
-
e && (
|
|
3206
|
+
var d = J[b + 4 * c >> 2], e = xd[d];
|
|
3207
|
+
e && (Z.deleteRenderbuffer(e), e.name = 0, xd[d] = null);
|
|
3201
3208
|
}
|
|
3202
3209
|
}, glDeleteShader:function(a) {
|
|
3203
3210
|
if (a) {
|
|
3204
3211
|
var b = zd[a];
|
|
3205
|
-
b ? (
|
|
3212
|
+
b ? (Z.deleteShader(b), zd[a] = null) : X(1281);
|
|
3206
3213
|
}
|
|
3207
3214
|
}, glDeleteTextures:function(a, b) {
|
|
3208
3215
|
for (var c = 0; c < a; c++) {
|
|
3209
|
-
var d =
|
|
3210
|
-
e && (
|
|
3216
|
+
var d = J[b + 4 * c >> 2], e = yd[d];
|
|
3217
|
+
e && (Z.deleteTexture(e), e.name = 0, yd[d] = null);
|
|
3211
3218
|
}
|
|
3212
3219
|
}, glDeleteVertexArrays:function(a, b) {
|
|
3213
3220
|
for (var c = 0; c < a; c++) {
|
|
3214
|
-
var d =
|
|
3215
|
-
|
|
3221
|
+
var d = J[b + 4 * c >> 2];
|
|
3222
|
+
Z.deleteVertexArray(Ad[d]);
|
|
3216
3223
|
Ad[d] = null;
|
|
3217
3224
|
}
|
|
3218
3225
|
}, glDepthFunc:function(a) {
|
|
3219
|
-
|
|
3226
|
+
Z.depthFunc(a);
|
|
3220
3227
|
}, glDepthMask:function(a) {
|
|
3221
|
-
|
|
3228
|
+
Z.depthMask(!!a);
|
|
3222
3229
|
}, glDepthRangef:function(a, b) {
|
|
3223
|
-
|
|
3230
|
+
Z.depthRange(a, b);
|
|
3224
3231
|
}, glDisable:function(a) {
|
|
3225
|
-
|
|
3232
|
+
Z.disable(a);
|
|
3226
3233
|
}, glDrawArrays:function(a, b, c) {
|
|
3227
|
-
|
|
3234
|
+
Z.drawArrays(a, b, c);
|
|
3228
3235
|
}, glDrawArraysInstanced:function(a, b, c, d) {
|
|
3229
|
-
|
|
3236
|
+
Z.drawArraysInstanced(a, b, c, d);
|
|
3230
3237
|
}, glDrawBuffers:function(a, b) {
|
|
3231
3238
|
for (var c = Id[a], d = 0; d < a; d++) {
|
|
3232
|
-
c[d] =
|
|
3239
|
+
c[d] = J[b + 4 * d >> 2];
|
|
3233
3240
|
}
|
|
3234
|
-
|
|
3241
|
+
Z.drawBuffers(c);
|
|
3235
3242
|
}, glDrawElements:function(a, b, c, d) {
|
|
3236
|
-
|
|
3243
|
+
Z.drawElements(a, b, c, d);
|
|
3237
3244
|
}, glDrawElementsInstanced:function(a, b, c, d, e) {
|
|
3238
|
-
|
|
3245
|
+
Z.drawElementsInstanced(a, b, c, d, e);
|
|
3239
3246
|
}, glEnable:function(a) {
|
|
3240
|
-
|
|
3247
|
+
Z.enable(a);
|
|
3241
3248
|
}, glEnableVertexAttribArray:function(a) {
|
|
3242
|
-
|
|
3249
|
+
Z.enableVertexAttribArray(a);
|
|
3243
3250
|
}, glFramebufferRenderbuffer:function(a, b, c, d) {
|
|
3244
|
-
|
|
3251
|
+
Z.framebufferRenderbuffer(a, b, c, xd[d]);
|
|
3245
3252
|
}, glFramebufferTexture2D:function(a, b, c, d, e) {
|
|
3246
|
-
|
|
3253
|
+
Z.framebufferTexture2D(a, b, c, yd[d], e);
|
|
3247
3254
|
}, glFrontFace:function(a) {
|
|
3248
|
-
|
|
3255
|
+
Z.frontFace(a);
|
|
3249
3256
|
}, glGenBuffers:function(a, b) {
|
|
3250
|
-
Jd(a, b, "createBuffer",
|
|
3257
|
+
Jd(a, b, "createBuffer", vd);
|
|
3251
3258
|
}, glGenFramebuffers:function(a, b) {
|
|
3252
|
-
Jd(a, b, "createFramebuffer",
|
|
3259
|
+
Jd(a, b, "createFramebuffer", wd);
|
|
3253
3260
|
}, glGenRenderbuffers:function(a, b) {
|
|
3254
|
-
Jd(a, b, "createRenderbuffer",
|
|
3261
|
+
Jd(a, b, "createRenderbuffer", xd);
|
|
3255
3262
|
}, glGenTextures:function(a, b) {
|
|
3256
|
-
Jd(a, b, "createTexture",
|
|
3263
|
+
Jd(a, b, "createTexture", yd);
|
|
3257
3264
|
}, glGenVertexArrays:function(a, b) {
|
|
3258
3265
|
Jd(a, b, "createVertexArray", Ad);
|
|
3259
3266
|
}, glGenerateMipmap:function(a) {
|
|
3260
|
-
|
|
3267
|
+
Z.generateMipmap(a);
|
|
3261
3268
|
}, glGetIntegerv:function(a, b) {
|
|
3262
3269
|
Kd(a, b);
|
|
3263
3270
|
}, glGetString:function(a) {
|
|
@@ -3265,7 +3272,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3265
3272
|
if (!b) {
|
|
3266
3273
|
switch(a) {
|
|
3267
3274
|
case 7939:
|
|
3268
|
-
b =
|
|
3275
|
+
b = Z.getSupportedExtensions() || [];
|
|
3269
3276
|
b = b.concat(b.map(function(d) {
|
|
3270
3277
|
return "GL_" + d;
|
|
3271
3278
|
}));
|
|
@@ -3275,14 +3282,14 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3275
3282
|
case 7937:
|
|
3276
3283
|
case 37445:
|
|
3277
3284
|
case 37446:
|
|
3278
|
-
(b =
|
|
3285
|
+
(b = Z.getParameter(a)) || X(1280);
|
|
3279
3286
|
b = b && Md(b);
|
|
3280
3287
|
break;
|
|
3281
3288
|
case 7938:
|
|
3282
|
-
b = Md("OpenGL ES 3.0 (" +
|
|
3289
|
+
b = Md("OpenGL ES 3.0 (" + Z.getParameter(7938) + ")");
|
|
3283
3290
|
break;
|
|
3284
3291
|
case 35724:
|
|
3285
|
-
b =
|
|
3292
|
+
b = Z.getParameter(35724);
|
|
3286
3293
|
var c = b.match(/^WebGL GLSL ES ([0-9]\.[0-9][0-9]?)(?:$| .*)/);
|
|
3287
3294
|
null !== c && (3 == c[1].length && (c[1] += "0"), b = "OpenGL ES GLSL ES " + c[1] + " (" + b + ")");
|
|
3288
3295
|
b = Md(b);
|
|
@@ -3294,14 +3301,14 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3294
3301
|
}
|
|
3295
3302
|
return b;
|
|
3296
3303
|
}, glGetUniformBlockIndex:function(a, b) {
|
|
3297
|
-
return
|
|
3304
|
+
return Z.getUniformBlockIndex(W[a], b ? L(G, b) : "");
|
|
3298
3305
|
}, glGetUniformLocation:function(a, b) {
|
|
3299
|
-
b = b ?
|
|
3300
|
-
if (a =
|
|
3306
|
+
b = b ? L(G, b) : "";
|
|
3307
|
+
if (a = W[a]) {
|
|
3301
3308
|
var c = a, d = c.oa, e = c.tb, f;
|
|
3302
3309
|
if (!d) {
|
|
3303
|
-
for (c.oa = d = {}, c.sb = {}, f = 0; f <
|
|
3304
|
-
var g =
|
|
3310
|
+
for (c.oa = d = {}, c.sb = {}, f = 0; f < Z.getProgramParameter(c, 35718); ++f) {
|
|
3311
|
+
var g = Z.getActiveUniform(c, f);
|
|
3305
3312
|
var m = g.name;
|
|
3306
3313
|
g = g.size;
|
|
3307
3314
|
var p = Nd(m);
|
|
@@ -3319,7 +3326,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3319
3326
|
e = b;
|
|
3320
3327
|
f = Nd(b);
|
|
3321
3328
|
0 < f && (d = parseInt(b.slice(f + 1)) >>> 0, e = b.slice(0, f));
|
|
3322
|
-
if ((e = a.tb[e]) && d < e[0] && (d += e[1], c[d] = c[d] ||
|
|
3329
|
+
if ((e = a.tb[e]) && d < e[0] && (d += e[1], c[d] = c[d] || Z.getUniformLocation(a, b))) {
|
|
3323
3330
|
return d;
|
|
3324
3331
|
}
|
|
3325
3332
|
} else {
|
|
@@ -3328,158 +3335,149 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3328
3335
|
return -1;
|
|
3329
3336
|
}, glInvalidateFramebuffer:function(a, b, c) {
|
|
3330
3337
|
for (var d = Id[b], e = 0; e < b; e++) {
|
|
3331
|
-
d[e] =
|
|
3338
|
+
d[e] = J[c + 4 * e >> 2];
|
|
3332
3339
|
}
|
|
3333
|
-
|
|
3340
|
+
Z.invalidateFramebuffer(a, d);
|
|
3334
3341
|
}, glLinkProgram:function(a) {
|
|
3335
|
-
a =
|
|
3336
|
-
|
|
3342
|
+
a = W[a];
|
|
3343
|
+
Z.linkProgram(a);
|
|
3337
3344
|
a.oa = 0;
|
|
3338
3345
|
a.tb = {};
|
|
3339
3346
|
}, glPixelStorei:function(a, b) {
|
|
3340
|
-
|
|
3347
|
+
Z.pixelStorei(a, b);
|
|
3341
3348
|
}, glRenderbufferStorageMultisample:function(a, b, c, d, e) {
|
|
3342
|
-
|
|
3349
|
+
Z.renderbufferStorageMultisample(a, b, c, d, e);
|
|
3343
3350
|
}, glScissor:function(a, b, c, d) {
|
|
3344
|
-
|
|
3351
|
+
Z.scissor(a, b, c, d);
|
|
3345
3352
|
}, glShaderSource:function(a, b, c, d) {
|
|
3346
3353
|
for (var e = "", f = 0; f < b; ++f) {
|
|
3347
|
-
var g = d ?
|
|
3348
|
-
g = m ?
|
|
3354
|
+
var g = d ? J[d + 4 * f >> 2] : -1, m = J[c + 4 * f >> 2];
|
|
3355
|
+
g = m ? L(G, m, 0 > g ? void 0 : g) : "";
|
|
3349
3356
|
e += g;
|
|
3350
3357
|
}
|
|
3351
|
-
|
|
3358
|
+
Z.shaderSource(zd[a], e);
|
|
3352
3359
|
}, glStencilFunc:function(a, b, c) {
|
|
3353
|
-
|
|
3360
|
+
Z.stencilFunc(a, b, c);
|
|
3354
3361
|
}, glStencilFuncSeparate:function(a, b, c, d) {
|
|
3355
|
-
|
|
3362
|
+
Z.stencilFuncSeparate(a, b, c, d);
|
|
3356
3363
|
}, glStencilMask:function(a) {
|
|
3357
|
-
|
|
3364
|
+
Z.stencilMask(a);
|
|
3358
3365
|
}, glStencilOp:function(a, b, c) {
|
|
3359
|
-
|
|
3366
|
+
Z.stencilOp(a, b, c);
|
|
3360
3367
|
}, glStencilOpSeparate:function(a, b, c, d) {
|
|
3361
|
-
|
|
3368
|
+
Z.stencilOpSeparate(a, b, c, d);
|
|
3362
3369
|
}, glTexParameteri:function(a, b, c) {
|
|
3363
|
-
|
|
3370
|
+
Z.texParameteri(a, b, c);
|
|
3364
3371
|
}, glTexStorage2D:function(a, b, c, d, e) {
|
|
3365
|
-
|
|
3372
|
+
Z.texStorage2D(a, b, c, d, e);
|
|
3366
3373
|
}, glTexSubImage2D:function(a, b, c, d, e, f, g, m, p) {
|
|
3367
|
-
if (
|
|
3368
|
-
|
|
3374
|
+
if (Z.Ka) {
|
|
3375
|
+
Z.texSubImage2D(a, b, c, d, e, f, g, m, p);
|
|
3369
3376
|
} else if (p) {
|
|
3370
3377
|
var l = m - 5120;
|
|
3371
|
-
l = 0 == l ?
|
|
3372
|
-
|
|
3378
|
+
l = 0 == l ? C : 1 == l ? G : 2 == l ? I : 4 == l ? J : 6 == l ? wa : 5 == l || 28922 == l || 28520 == l || 30779 == l || 30782 == l ? K : va;
|
|
3379
|
+
Z.texSubImage2D(a, b, c, d, e, f, g, m, l, p >> 31 - Math.clz32(l.BYTES_PER_ELEMENT));
|
|
3373
3380
|
} else {
|
|
3374
|
-
|
|
3381
|
+
Z.texSubImage2D(a, b, c, d, e, f, g, m, null);
|
|
3375
3382
|
}
|
|
3376
3383
|
}, glUniform1i:function(a, b) {
|
|
3377
|
-
var c =
|
|
3378
|
-
var e =
|
|
3384
|
+
var c = Z, d = c.uniform1i;
|
|
3385
|
+
var e = Z.Eb;
|
|
3379
3386
|
if (e) {
|
|
3380
3387
|
var f = e.oa[a];
|
|
3381
|
-
"number" == typeof f && (e.oa[a] = f =
|
|
3388
|
+
"number" == typeof f && (e.oa[a] = f = Z.getUniformLocation(e, e.sb[a] + (0 < f ? "[" + f + "]" : "")));
|
|
3382
3389
|
a = f;
|
|
3383
3390
|
} else {
|
|
3384
3391
|
X(1282), a = void 0;
|
|
3385
3392
|
}
|
|
3386
3393
|
d.call(c, a, b);
|
|
3387
3394
|
}, glUniformBlockBinding:function(a, b, c) {
|
|
3388
|
-
a =
|
|
3389
|
-
|
|
3395
|
+
a = W[a];
|
|
3396
|
+
Z.uniformBlockBinding(a, b, c);
|
|
3390
3397
|
}, glUseProgram:function(a) {
|
|
3391
|
-
a =
|
|
3392
|
-
|
|
3393
|
-
|
|
3398
|
+
a = W[a];
|
|
3399
|
+
Z.useProgram(a);
|
|
3400
|
+
Z.Eb = a;
|
|
3394
3401
|
}, glVertexAttribDivisor:function(a, b) {
|
|
3395
|
-
|
|
3402
|
+
Z.vertexAttribDivisor(a, b);
|
|
3396
3403
|
}, glVertexAttribIPointer:function(a, b, c, d, e) {
|
|
3397
|
-
|
|
3404
|
+
Z.vertexAttribIPointer(a, b, c, d, e);
|
|
3398
3405
|
}, glVertexAttribPointer:function(a, b, c, d, e, f) {
|
|
3399
|
-
|
|
3406
|
+
Z.vertexAttribPointer(a, b, c, !!d, e, f);
|
|
3400
3407
|
}, glViewport:function(a, b, c, d) {
|
|
3401
|
-
|
|
3402
|
-
}, is_texture_image_done_decoding:function(a) {
|
|
3403
|
-
a = W[a];
|
|
3404
|
-
return a.complete || a.image.complete;
|
|
3408
|
+
Z.viewport(a, b, c, d);
|
|
3405
3409
|
}, provokingVertexWEBGL:function(a, b) {
|
|
3406
3410
|
(a = r[a].H.lb) && a.provokingVertexWEBGL(b);
|
|
3407
|
-
},
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
b.complete = !0;
|
|
3414
|
-
delete b.image;
|
|
3415
|
-
}, strftime_l:(a, b, c, d) => Rd(a, b, c, d), texture_image_height:function(a) {
|
|
3416
|
-
a = W[a];
|
|
3417
|
-
return a.imageHeight;
|
|
3418
|
-
}, texture_image_width:function(a) {
|
|
3419
|
-
a = W[a];
|
|
3420
|
-
return a.imageWidth;
|
|
3411
|
+
}, strftime_l:(a, b, c, d) => Rd(a, b, c, d), upload_image:function(a, b) {
|
|
3412
|
+
var c = n.images;
|
|
3413
|
+
if (c) {
|
|
3414
|
+
var d = c.get(b);
|
|
3415
|
+
d ? (a = r[a].H, console.log("GL IS", a, d), a.texImage2D(a.TEXTURE_2D, 0, a.RGBA, a.RGBA, a.UNSIGNED_BYTE, d), c.delete(b)) : console.log("NO IMAGE");
|
|
3416
|
+
}
|
|
3421
3417
|
}, webgl_texSubImage2DWithOffset:function(a, b, c, d, e, f, g, m, p, l) {
|
|
3422
3418
|
a = r[a].H;
|
|
3423
3419
|
a.texSubImage2D(b, c, d, e, f, g, m, p, l);
|
|
3424
3420
|
}};
|
|
3425
3421
|
(function() {
|
|
3426
3422
|
function a(c) {
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
n.monitorRunDependencies && n.monitorRunDependencies(
|
|
3434
|
-
if (0 ==
|
|
3435
|
-
var d =
|
|
3436
|
-
|
|
3423
|
+
A = c = c.exports;
|
|
3424
|
+
ta = A.memory;
|
|
3425
|
+
ya();
|
|
3426
|
+
za = A.__indirect_function_table;
|
|
3427
|
+
Ba.unshift(A.__wasm_call_ctors);
|
|
3428
|
+
Ea--;
|
|
3429
|
+
n.monitorRunDependencies && n.monitorRunDependencies(Ea);
|
|
3430
|
+
if (0 == Ea && (null !== Fa && (clearInterval(Fa), Fa = null), Ga)) {
|
|
3431
|
+
var d = Ga;
|
|
3432
|
+
Ga = null;
|
|
3437
3433
|
d();
|
|
3438
3434
|
}
|
|
3439
3435
|
return c;
|
|
3440
3436
|
}
|
|
3441
3437
|
var b = {env:Wd, wasi_snapshot_preview1:Wd,};
|
|
3442
|
-
|
|
3443
|
-
n.monitorRunDependencies && n.monitorRunDependencies(
|
|
3438
|
+
Ea++;
|
|
3439
|
+
n.monitorRunDependencies && n.monitorRunDependencies(Ea);
|
|
3444
3440
|
if (n.instantiateWasm) {
|
|
3445
3441
|
try {
|
|
3446
3442
|
return n.instantiateWasm(b, a);
|
|
3447
3443
|
} catch (c) {
|
|
3448
|
-
|
|
3444
|
+
z("Module.instantiateWasm callback failed with error: " + c), ba(c);
|
|
3449
3445
|
}
|
|
3450
3446
|
}
|
|
3451
|
-
|
|
3447
|
+
Na(b, function(c) {
|
|
3452
3448
|
a(c.instance);
|
|
3453
3449
|
}).catch(ba);
|
|
3454
3450
|
return {};
|
|
3455
3451
|
})();
|
|
3456
|
-
var
|
|
3457
|
-
n.
|
|
3458
|
-
n.
|
|
3459
|
-
|
|
3460
|
-
n.
|
|
3461
|
-
n.
|
|
3462
|
-
n.
|
|
3463
|
-
n.
|
|
3464
|
-
n.
|
|
3465
|
-
n.
|
|
3466
|
-
n.
|
|
3467
|
-
n.
|
|
3468
|
-
n.
|
|
3469
|
-
n.
|
|
3470
|
-
n.
|
|
3471
|
-
n.
|
|
3452
|
+
var nc = a => (nc = A.free)(a), Ld = a => (Ld = A.malloc)(a);
|
|
3453
|
+
n._setWebImage = (a, b, c) => (n._setWebImage = A.setWebImage)(a, b, c);
|
|
3454
|
+
var Qa = n._ma_device__on_notification_unlocked = a => (Qa = n._ma_device__on_notification_unlocked = A.ma_device__on_notification_unlocked)(a);
|
|
3455
|
+
n._ma_malloc_emscripten = (a, b) => (n._ma_malloc_emscripten = A.ma_malloc_emscripten)(a, b);
|
|
3456
|
+
n._ma_free_emscripten = (a, b) => (n._ma_free_emscripten = A.ma_free_emscripten)(a, b);
|
|
3457
|
+
var Ra = n._ma_device_process_pcm_frames_capture__webaudio = (a, b, c) => (Ra = n._ma_device_process_pcm_frames_capture__webaudio = A.ma_device_process_pcm_frames_capture__webaudio)(a, b, c), Sa = n._ma_device_process_pcm_frames_playback__webaudio = (a, b, c) => (Sa = n._ma_device_process_pcm_frames_playback__webaudio = A.ma_device_process_pcm_frames_playback__webaudio)(a, b, c), Vd = () => (Vd = A.__errno_location)(), mc = a => (mc = A.__getTypeName)(a);
|
|
3458
|
+
n.__embind_initialize_bindings = () => (n.__embind_initialize_bindings = A._embind_initialize_bindings)();
|
|
3459
|
+
n.dynCall_iiji = (a, b, c, d, e) => (n.dynCall_iiji = A.dynCall_iiji)(a, b, c, d, e);
|
|
3460
|
+
n.dynCall_iiiji = (a, b, c, d, e, f) => (n.dynCall_iiiji = A.dynCall_iiiji)(a, b, c, d, e, f);
|
|
3461
|
+
n.dynCall_iij = (a, b, c, d) => (n.dynCall_iij = A.dynCall_iij)(a, b, c, d);
|
|
3462
|
+
n.dynCall_jii = (a, b, c) => (n.dynCall_jii = A.dynCall_jii)(a, b, c);
|
|
3463
|
+
n.dynCall_jiji = (a, b, c, d, e) => (n.dynCall_jiji = A.dynCall_jiji)(a, b, c, d, e);
|
|
3464
|
+
n.dynCall_viijii = (a, b, c, d, e, f, g) => (n.dynCall_viijii = A.dynCall_viijii)(a, b, c, d, e, f, g);
|
|
3465
|
+
n.dynCall_iiiiij = (a, b, c, d, e, f, g) => (n.dynCall_iiiiij = A.dynCall_iiiiij)(a, b, c, d, e, f, g);
|
|
3466
|
+
n.dynCall_iiiiijj = (a, b, c, d, e, f, g, m, p) => (n.dynCall_iiiiijj = A.dynCall_iiiiijj)(a, b, c, d, e, f, g, m, p);
|
|
3467
|
+
n.dynCall_iiiiiijj = (a, b, c, d, e, f, g, m, p, l) => (n.dynCall_iiiiiijj = A.dynCall_iiiiiijj)(a, b, c, d, e, f, g, m, p, l);
|
|
3468
|
+
n.___start_em_js = 488500;
|
|
3469
|
+
n.___stop_em_js = 491140;
|
|
3472
3470
|
var Xd;
|
|
3473
|
-
|
|
3471
|
+
Ga = function Yd() {
|
|
3474
3472
|
Xd || Zd();
|
|
3475
|
-
Xd || (
|
|
3473
|
+
Xd || (Ga = Yd);
|
|
3476
3474
|
};
|
|
3477
3475
|
function Zd() {
|
|
3478
3476
|
function a() {
|
|
3479
|
-
if (!Xd && (Xd = !0, n.calledRun = !0, !
|
|
3480
|
-
n.noFSInit ||
|
|
3481
|
-
|
|
3482
|
-
|
|
3477
|
+
if (!Xd && (Xd = !0, n.calledRun = !0, !ua)) {
|
|
3478
|
+
n.noFSInit || Sb || (Sb = !0, Rb(), n.stdin = n.stdin, n.stdout = n.stdout, n.stderr = n.stderr, n.stdin ? Ub("stdin", n.stdin) : Nb("/dev/tty", "/dev/stdin"), n.stdout ? Ub("stdout", null, n.stdout) : Nb("/dev/tty", "/dev/stdout"), n.stderr ? Ub("stderr", null, n.stderr) : Nb("/dev/tty1", "/dev/stderr"), Pb("/dev/stdin", 0), Pb("/dev/stdout", 1), Pb("/dev/stderr", 1));
|
|
3479
|
+
yb = !1;
|
|
3480
|
+
Ua(Ba);
|
|
3483
3481
|
aa(n);
|
|
3484
3482
|
if (n.onRuntimeInitialized) {
|
|
3485
3483
|
n.onRuntimeInitialized();
|
|
@@ -3487,20 +3485,20 @@ function Zd() {
|
|
|
3487
3485
|
if (n.postRun) {
|
|
3488
3486
|
for ("function" == typeof n.postRun && (n.postRun = [n.postRun]); n.postRun.length;) {
|
|
3489
3487
|
var b = n.postRun.shift();
|
|
3490
|
-
|
|
3488
|
+
Ca.unshift(b);
|
|
3491
3489
|
}
|
|
3492
3490
|
}
|
|
3493
|
-
|
|
3491
|
+
Ua(Ca);
|
|
3494
3492
|
}
|
|
3495
3493
|
}
|
|
3496
|
-
if (!(0 <
|
|
3494
|
+
if (!(0 < Ea)) {
|
|
3497
3495
|
if (n.preRun) {
|
|
3498
3496
|
for ("function" == typeof n.preRun && (n.preRun = [n.preRun]); n.preRun.length;) {
|
|
3499
|
-
|
|
3497
|
+
Da();
|
|
3500
3498
|
}
|
|
3501
3499
|
}
|
|
3502
|
-
|
|
3503
|
-
0 <
|
|
3500
|
+
Ua(Aa);
|
|
3501
|
+
0 < Ea || (n.setStatus ? (n.setStatus("Running..."), setTimeout(function() {
|
|
3504
3502
|
setTimeout(function() {
|
|
3505
3503
|
n.setStatus("");
|
|
3506
3504
|
}, 1);
|
|
@@ -3528,7 +3526,7 @@ Zd();
|
|
|
3528
3526
|
/* 2 */
|
|
3529
3527
|
/***/ ((module) => {
|
|
3530
3528
|
|
|
3531
|
-
module.exports = JSON.parse('{"name":"@rive-app/webgl2","version":"2.23.
|
|
3529
|
+
module.exports = JSON.parse('{"name":"@rive-app/webgl2","version":"2.23.5","description":"Rive\'s webgl2 based web api.","main":"rive.js","homepage":"https://rive.app","repository":{"type":"git","url":"https://github.com/rive-app/rive-wasm/tree/master/js"},"keywords":["rive","animation"],"author":"Rive","contributors":["Luigi Rosso <luigi@rive.app> (https://rive.app)","Maxwell Talbot <max@rive.app> (https://rive.app)","Arthur Vivian <arthur@rive.app> (https://rive.app)","Umberto Sonnino <umberto@rive.app> (https://rive.app)","Matthew Sullivan <matt.j.sullivan@gmail.com> (mailto:matt.j.sullivan@gmail.com)","Chris Dalton <chris@rive.app> (https://rive.app)"],"license":"MIT","files":["rive.js","rive.wasm","rive.js.map","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
|
|
3532
3530
|
|
|
3533
3531
|
/***/ }),
|
|
3534
3532
|
/* 3 */
|