@rive-app/canvas-advanced 2.11.0 → 2.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/canvas_advanced.mjs +898 -841
- package/package.json +1 -1
package/canvas_advanced.mjs
CHANGED
|
@@ -5,19 +5,19 @@ var Rive = (() => {
|
|
|
5
5
|
return (
|
|
6
6
|
function(moduleArg = {}) {
|
|
7
7
|
|
|
8
|
-
var
|
|
9
|
-
|
|
8
|
+
var m = moduleArg, aa, ba;
|
|
9
|
+
m.ready = new Promise((a, b) => {
|
|
10
10
|
aa = a;
|
|
11
11
|
ba = b;
|
|
12
12
|
});
|
|
13
13
|
function ca() {
|
|
14
14
|
function a(g) {
|
|
15
|
-
const
|
|
15
|
+
const n = d;
|
|
16
16
|
c = b = 0;
|
|
17
17
|
d = new Map();
|
|
18
|
-
|
|
18
|
+
n.forEach(p => {
|
|
19
19
|
try {
|
|
20
|
-
|
|
20
|
+
p(g);
|
|
21
21
|
} catch (l) {
|
|
22
22
|
console.error(l);
|
|
23
23
|
}
|
|
@@ -28,9 +28,9 @@ function ca() {
|
|
|
28
28
|
let b = 0, c = 0, d = new Map(), e = null, f = null;
|
|
29
29
|
this.requestAnimationFrame = function(g) {
|
|
30
30
|
b || (b = requestAnimationFrame(a.bind(this)));
|
|
31
|
-
const
|
|
32
|
-
d.set(
|
|
33
|
-
return
|
|
31
|
+
const n = ++c;
|
|
32
|
+
d.set(n, g);
|
|
33
|
+
return n;
|
|
34
34
|
};
|
|
35
35
|
this.cancelAnimationFrame = function(g) {
|
|
36
36
|
d.delete(g);
|
|
@@ -38,14 +38,14 @@ function ca() {
|
|
|
38
38
|
};
|
|
39
39
|
this.Wb = function(g) {
|
|
40
40
|
f && (document.body.remove(f), f = null);
|
|
41
|
-
g || (f = document.createElement("div"), f.style.backgroundColor = "black", f.style.position = "fixed", f.style.right = 0, f.style.top = 0, f.style.color = "white", f.style.padding = "4px", f.innerHTML = "RIVE FPS", g = function(
|
|
42
|
-
f.innerHTML = "RIVE FPS " +
|
|
41
|
+
g || (f = document.createElement("div"), f.style.backgroundColor = "black", f.style.position = "fixed", f.style.right = 0, f.style.top = 0, f.style.color = "white", f.style.padding = "4px", f.innerHTML = "RIVE FPS", g = function(n) {
|
|
42
|
+
f.innerHTML = "RIVE FPS " + n.toFixed(1);
|
|
43
43
|
}, document.body.appendChild(f));
|
|
44
44
|
e = new function() {
|
|
45
|
-
let
|
|
45
|
+
let n = 0, p = 0;
|
|
46
46
|
this.Yb = function() {
|
|
47
47
|
var l = performance.now();
|
|
48
|
-
|
|
48
|
+
p ? (++n, l -= p, 1000 < l && (g(1000 * n / l), n = p = 0)) : (p = l, n = 0);
|
|
49
49
|
};
|
|
50
50
|
}();
|
|
51
51
|
};
|
|
@@ -71,30 +71,30 @@ function ha(a) {
|
|
|
71
71
|
return c << a;
|
|
72
72
|
};
|
|
73
73
|
}
|
|
74
|
-
const ia =
|
|
75
|
-
|
|
74
|
+
const ia = m.onRuntimeInitialized;
|
|
75
|
+
m.onRuntimeInitialized = function() {
|
|
76
76
|
ia && ia();
|
|
77
|
-
let a =
|
|
78
|
-
|
|
77
|
+
let a = m.decodeFont;
|
|
78
|
+
m.decodeFont = function(c, d) {
|
|
79
79
|
c = a(c);
|
|
80
80
|
d(c);
|
|
81
81
|
};
|
|
82
|
-
const b =
|
|
83
|
-
|
|
84
|
-
let d =
|
|
85
|
-
return d.isImage ?
|
|
82
|
+
const b = m.FileAssetLoader;
|
|
83
|
+
m.ptrToAsset = c => {
|
|
84
|
+
let d = m.ptrToFileAsset(c);
|
|
85
|
+
return d.isImage ? m.ptrToImageAsset(c) : d.isFont ? m.ptrToFontAsset(c) : d;
|
|
86
86
|
};
|
|
87
|
-
|
|
87
|
+
m.CustomFileAssetLoader = b.extend("CustomFileAssetLoader", {__construct:function({loadContents:c}) {
|
|
88
88
|
this.__parent.__construct.call(this);
|
|
89
89
|
this.Hb = c;
|
|
90
90
|
}, loadContents:function(c, d) {
|
|
91
|
-
c =
|
|
91
|
+
c = m.ptrToAsset(c);
|
|
92
92
|
return this.Hb(c, d);
|
|
93
93
|
},});
|
|
94
|
-
|
|
94
|
+
m.CDNFileAssetLoader = b.extend("CDNFileAssetLoader", {__construct:function() {
|
|
95
95
|
this.__parent.__construct.call(this);
|
|
96
96
|
}, loadContents:function(c) {
|
|
97
|
-
let d =
|
|
97
|
+
let d = m.ptrToAsset(c);
|
|
98
98
|
c = d.cdnUuid;
|
|
99
99
|
if ("" === c) {
|
|
100
100
|
return !1;
|
|
@@ -112,7 +112,7 @@ p.onRuntimeInitialized = function() {
|
|
|
112
112
|
});
|
|
113
113
|
return !0;
|
|
114
114
|
},});
|
|
115
|
-
|
|
115
|
+
m.FallbackFileAssetLoader = b.extend("FallbackFileAssetLoader", {__construct:function() {
|
|
116
116
|
this.__parent.__construct.call(this);
|
|
117
117
|
this.lb = [];
|
|
118
118
|
}, addLoader:function(c) {
|
|
@@ -148,7 +148,7 @@ const ja = "createConicGradient createImageData createLinearGradient createPatte
|
|
|
148
148
|
}
|
|
149
149
|
r = new Proxy(r, {get(E, w) {
|
|
150
150
|
if (E.isContextLost()) {
|
|
151
|
-
if (
|
|
151
|
+
if (p || (console.error("Cannot render the mesh because the GL Context was lost. Tried to invoke ", w), p = !0), "function" === typeof E[w]) {
|
|
152
152
|
return function() {
|
|
153
153
|
};
|
|
154
154
|
}
|
|
@@ -159,7 +159,7 @@ const ja = "createConicGradient createImageData createLinearGradient createPatte
|
|
|
159
159
|
}
|
|
160
160
|
}, set(E, w, O) {
|
|
161
161
|
if (E.isContextLost()) {
|
|
162
|
-
|
|
162
|
+
p || (console.error("Cannot render the mesh because the GL Context was lost. Tried to set property " + w), p = !0);
|
|
163
163
|
} else {
|
|
164
164
|
return E[w] = O, !0;
|
|
165
165
|
}
|
|
@@ -198,7 +198,7 @@ const ja = "createConicGradient createImageData createLinearGradient createPatte
|
|
|
198
198
|
}
|
|
199
199
|
return !0;
|
|
200
200
|
}
|
|
201
|
-
let b = null, c = 0, d = 0, e = null, f = null, g = 0,
|
|
201
|
+
let b = null, c = 0, d = 0, e = null, f = null, g = 0, n = 0, p = !1;
|
|
202
202
|
a();
|
|
203
203
|
this.nc = function() {
|
|
204
204
|
a();
|
|
@@ -249,7 +249,7 @@ const ja = "createConicGradient createImageData createLinearGradient createPatte
|
|
|
249
249
|
}
|
|
250
250
|
console.assert(w == 8 * B);
|
|
251
251
|
w = y.push(E);
|
|
252
|
-
|
|
252
|
+
n != w && (b.bufferData(b.ELEMENT_ARRAY_BUFFER, 2 * w, b.DYNAMIC_DRAW), n = w);
|
|
253
253
|
V = 0;
|
|
254
254
|
for (var va of r) {
|
|
255
255
|
b.bufferSubData(b.ELEMENT_ARRAY_BUFFER, V, va.indices), V += 2 * va.indices.length;
|
|
@@ -279,8 +279,8 @@ const ja = "createConicGradient createImageData createLinearGradient createPatte
|
|
|
279
279
|
this.canvas = function() {
|
|
280
280
|
return a() && b.canvas;
|
|
281
281
|
};
|
|
282
|
-
}(), la =
|
|
283
|
-
|
|
282
|
+
}(), la = m.onRuntimeInitialized;
|
|
283
|
+
m.onRuntimeInitialized = function() {
|
|
284
284
|
function a(q) {
|
|
285
285
|
switch(q) {
|
|
286
286
|
case l.srcOver:
|
|
@@ -331,10 +331,10 @@ p.onRuntimeInitialized = function() {
|
|
|
331
331
|
E.clear();
|
|
332
332
|
}
|
|
333
333
|
la && la();
|
|
334
|
-
var d =
|
|
335
|
-
const e =
|
|
334
|
+
var d = m.RenderPaintStyle;
|
|
335
|
+
const e = m.RenderPath, f = m.RenderPaint, g = m.Renderer, n = m.StrokeCap, p = m.StrokeJoin, l = m.BlendMode, u = d.fill, v = d.stroke, y = m.FillRule.evenOdd;
|
|
336
336
|
let k = 1;
|
|
337
|
-
var t =
|
|
337
|
+
var t = m.RenderImage.extend("CanvasRenderImage", {__construct:function({la:q, ya:z} = {}) {
|
|
338
338
|
this.__parent.__construct.call(this);
|
|
339
339
|
this.Ka = k;
|
|
340
340
|
k = k + 1 & 2147483647 || 1;
|
|
@@ -387,24 +387,24 @@ p.onRuntimeInitialized = function() {
|
|
|
387
387
|
this.Jb = q;
|
|
388
388
|
}, join:function(q) {
|
|
389
389
|
switch(q) {
|
|
390
|
-
case
|
|
390
|
+
case p.miter:
|
|
391
391
|
this.Ia = "miter";
|
|
392
392
|
break;
|
|
393
|
-
case
|
|
393
|
+
case p.round:
|
|
394
394
|
this.Ia = "round";
|
|
395
395
|
break;
|
|
396
|
-
case
|
|
396
|
+
case p.bevel:
|
|
397
397
|
this.Ia = "bevel";
|
|
398
398
|
}
|
|
399
399
|
}, cap:function(q) {
|
|
400
400
|
switch(q) {
|
|
401
|
-
case
|
|
401
|
+
case n.butt:
|
|
402
402
|
this.Ha = "butt";
|
|
403
403
|
break;
|
|
404
|
-
case
|
|
404
|
+
case n.round:
|
|
405
405
|
this.Ha = "round";
|
|
406
406
|
break;
|
|
407
|
-
case
|
|
407
|
+
case n.square:
|
|
408
408
|
this.Ha = "square";
|
|
409
409
|
}
|
|
410
410
|
}, style:function(q) {
|
|
@@ -451,7 +451,7 @@ p.onRuntimeInitialized = function() {
|
|
|
451
451
|
},});
|
|
452
452
|
const E = new Set();
|
|
453
453
|
let w = null, O = [], V = 0, ea = 0;
|
|
454
|
-
var va =
|
|
454
|
+
var va = m.CanvasRenderer = g.extend("Renderer", {__construct:function(q) {
|
|
455
455
|
this.__parent.__construct.call(this);
|
|
456
456
|
this.T = [1, 0, 0, 1, 0, 0];
|
|
457
457
|
this.C = q.getContext("2d");
|
|
@@ -495,37 +495,37 @@ p.onRuntimeInitialized = function() {
|
|
|
495
495
|
}
|
|
496
496
|
}, _drawImageMesh:function(q, z, I, J, D, K, L, M, Z, R) {
|
|
497
497
|
var fa = this.C.canvas.width, S = this.C.canvas.height;
|
|
498
|
-
const
|
|
498
|
+
const Zb = Z - L, $b = R - M;
|
|
499
499
|
L = Math.max(L, 0);
|
|
500
500
|
M = Math.max(M, 0);
|
|
501
501
|
Z = Math.min(Z, fa);
|
|
502
502
|
R = Math.min(R, S);
|
|
503
|
-
const
|
|
504
|
-
console.assert(
|
|
505
|
-
console.assert(
|
|
506
|
-
if (!(0 >=
|
|
507
|
-
Z =
|
|
503
|
+
const Ia = Z - L, Ja = R - M;
|
|
504
|
+
console.assert(Ia <= Math.min(Zb, fa));
|
|
505
|
+
console.assert(Ja <= Math.min($b, S));
|
|
506
|
+
if (!(0 >= Ia || 0 >= Ja)) {
|
|
507
|
+
Z = Ia < Zb || Ja < $b;
|
|
508
508
|
fa = R = 1;
|
|
509
|
-
var wa = Math.ceil(
|
|
509
|
+
var wa = Math.ceil(Ia * R), xa = Math.ceil(Ja * fa);
|
|
510
510
|
S = ka.nc();
|
|
511
511
|
wa > S && (R *= S / wa, wa = S);
|
|
512
512
|
xa > S && (fa *= S / xa, xa = S);
|
|
513
|
-
w || (w = new
|
|
513
|
+
w || (w = new m.DynamicRectanizer(S), w.reset(512, 512));
|
|
514
514
|
S = w.addRect(wa, xa);
|
|
515
515
|
0 > S && (c(), E.add(this), S = w.addRect(wa, xa), console.assert(0 <= S));
|
|
516
|
-
var
|
|
517
|
-
O.push({ha:this.T.slice(this.T.length - 6), image:q, Za
|
|
516
|
+
var ac = S & 65535, bc = S >> 16;
|
|
517
|
+
O.push({ha:this.T.slice(this.T.length - 6), image:q, Za:ac, $a:bc, oc:L, pc:M, Ic:wa, jb:xa, Ba:R, Ca:fa, Ua:new Float32Array(J), Eb:new Float32Array(D), indices:new Uint16Array(K), tc:Z, xb:q.Ka << 1 | (Z ? 1 : 0),});
|
|
518
518
|
V += J.length;
|
|
519
519
|
ea += K.length;
|
|
520
|
-
var
|
|
520
|
+
var Ca = this.C, qd = a(z);
|
|
521
521
|
this.J.push(function() {
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
const
|
|
527
|
-
|
|
528
|
-
|
|
522
|
+
Ca.save();
|
|
523
|
+
Ca.resetTransform();
|
|
524
|
+
Ca.globalCompositeOperation = qd;
|
|
525
|
+
Ca.globalAlpha = I;
|
|
526
|
+
const cc = ka.canvas();
|
|
527
|
+
cc && Ca.drawImage(cc, ac, bc, wa, xa, L, M, Ia, Ja);
|
|
528
|
+
Ca.restore();
|
|
529
529
|
});
|
|
530
530
|
}
|
|
531
531
|
}, _clipPath:function(q) {
|
|
@@ -537,7 +537,7 @@ p.onRuntimeInitialized = function() {
|
|
|
537
537
|
}, translate:function(q, z) {
|
|
538
538
|
this.transform(1, 0, 0, 1, q, z);
|
|
539
539
|
},});
|
|
540
|
-
|
|
540
|
+
m.makeRenderer = function(q) {
|
|
541
541
|
const z = new va(q), I = z.C;
|
|
542
542
|
return new Proxy(z, {get(J, D) {
|
|
543
543
|
if ("function" === typeof J[D]) {
|
|
@@ -560,10 +560,10 @@ p.onRuntimeInitialized = function() {
|
|
|
560
560
|
}
|
|
561
561
|
},});
|
|
562
562
|
};
|
|
563
|
-
|
|
563
|
+
m.decodeImage = function(q, z) {
|
|
564
564
|
(new t({la:z})).decode(q);
|
|
565
565
|
};
|
|
566
|
-
|
|
566
|
+
m.renderFactory = {makeRenderPaint:function() {
|
|
567
567
|
return new B();
|
|
568
568
|
}, makeRenderPath:function() {
|
|
569
569
|
return new r();
|
|
@@ -579,11 +579,11 @@ p.onRuntimeInitialized = function() {
|
|
|
579
579
|
}
|
|
580
580
|
},});
|
|
581
581
|
},};
|
|
582
|
-
let H =
|
|
583
|
-
|
|
584
|
-
const J = new
|
|
582
|
+
let H = m.load, da = null;
|
|
583
|
+
m.load = function(q, z, I = !0) {
|
|
584
|
+
const J = new m.FallbackFileAssetLoader();
|
|
585
585
|
void 0 !== z && J.addLoader(z);
|
|
586
|
-
I && (z = new
|
|
586
|
+
I && (z = new m.CDNFileAssetLoader(), J.addLoader(z));
|
|
587
587
|
return new Promise(function(D) {
|
|
588
588
|
let K = null;
|
|
589
589
|
da = {total:0, loaded:0, ready:function() {
|
|
@@ -594,25 +594,25 @@ p.onRuntimeInitialized = function() {
|
|
|
594
594
|
});
|
|
595
595
|
};
|
|
596
596
|
d = new ca();
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
597
|
+
m.requestAnimationFrame = d.requestAnimationFrame.bind(d);
|
|
598
|
+
m.cancelAnimationFrame = d.cancelAnimationFrame.bind(d);
|
|
599
|
+
m.enableFPSCounter = d.Wb.bind(d);
|
|
600
|
+
m.disableFPSCounter = d.Tb;
|
|
601
601
|
d.pb = c;
|
|
602
|
-
|
|
603
|
-
|
|
602
|
+
m.resolveAnimationFrame = c;
|
|
603
|
+
m.cleanup = function() {
|
|
604
604
|
w && w.delete();
|
|
605
605
|
};
|
|
606
606
|
};
|
|
607
|
-
var ma = Object.assign({},
|
|
608
|
-
if (
|
|
609
|
-
|
|
607
|
+
var ma = Object.assign({}, m), na = "./this.program", oa = "object" == typeof window, pa = "function" == typeof importScripts, qa = "", ra, sa;
|
|
608
|
+
if (oa || pa) {
|
|
609
|
+
pa ? qa = self.location.href : "undefined" != typeof document && document.currentScript && (qa = document.currentScript.src), _scriptDir && (qa = _scriptDir), 0 !== qa.indexOf("blob:") ? qa = qa.substr(0, qa.replace(/[?#].*/, "").lastIndexOf("/") + 1) : qa = "", pa && (sa = a => {
|
|
610
610
|
var b = new XMLHttpRequest();
|
|
611
611
|
b.open("GET", a, !1);
|
|
612
612
|
b.responseType = "arraybuffer";
|
|
613
613
|
b.send(null);
|
|
614
614
|
return new Uint8Array(b.response);
|
|
615
|
-
}),
|
|
615
|
+
}), ra = (a, b, c) => {
|
|
616
616
|
var d = new XMLHttpRequest();
|
|
617
617
|
d.open("GET", a, !0);
|
|
618
618
|
d.responseType = "arraybuffer";
|
|
@@ -623,77 +623,94 @@ if (na || oa) {
|
|
|
623
623
|
d.send(null);
|
|
624
624
|
};
|
|
625
625
|
}
|
|
626
|
-
var
|
|
627
|
-
Object.assign(
|
|
626
|
+
var ta = m.print || console.log.bind(console), ua = m.printErr || console.error.bind(console);
|
|
627
|
+
Object.assign(m, ma);
|
|
628
628
|
ma = null;
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
629
|
+
m.thisProgram && (na = m.thisProgram);
|
|
630
|
+
var ya;
|
|
631
|
+
m.wasmBinary && (ya = m.wasmBinary);
|
|
632
|
+
var noExitRuntime = m.noExitRuntime || !0;
|
|
633
|
+
"object" != typeof WebAssembly && za("no native wasm support detected");
|
|
634
|
+
var Aa, x, Ba = !1, A, C, Da, Ea, F, G, Fa, Ga;
|
|
635
|
+
function Ha() {
|
|
636
|
+
var a = Aa.buffer;
|
|
637
|
+
m.HEAP8 = A = new Int8Array(a);
|
|
638
|
+
m.HEAP16 = Da = new Int16Array(a);
|
|
639
|
+
m.HEAP32 = F = new Int32Array(a);
|
|
640
|
+
m.HEAPU8 = C = new Uint8Array(a);
|
|
641
|
+
m.HEAPU16 = Ea = new Uint16Array(a);
|
|
642
|
+
m.HEAPU32 = G = new Uint32Array(a);
|
|
643
|
+
m.HEAPF32 = Fa = new Float32Array(a);
|
|
644
|
+
m.HEAPF64 = Ga = new Float64Array(a);
|
|
645
|
+
}
|
|
646
|
+
var Ka, La = [], Ma = [], Na = [];
|
|
647
|
+
function Oa() {
|
|
648
|
+
var a = m.preRun.shift();
|
|
649
|
+
La.unshift(a);
|
|
650
|
+
}
|
|
651
|
+
var Pa = 0, Qa = null, Ra = null;
|
|
652
|
+
function za(a) {
|
|
653
|
+
if (m.onAbort) {
|
|
654
|
+
m.onAbort(a);
|
|
655
|
+
}
|
|
645
656
|
a = "Aborted(" + a + ")";
|
|
646
|
-
|
|
647
|
-
|
|
657
|
+
ua(a);
|
|
658
|
+
Ba = !0;
|
|
648
659
|
a = new WebAssembly.RuntimeError(a + ". Build with -sASSERTIONS for more info.");
|
|
649
660
|
ba(a);
|
|
650
661
|
throw a;
|
|
651
662
|
}
|
|
652
|
-
function
|
|
663
|
+
function Sa(a) {
|
|
653
664
|
return a.startsWith("data:application/octet-stream;base64,");
|
|
654
665
|
}
|
|
655
|
-
var
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
666
|
+
var Ta;
|
|
667
|
+
Ta = "canvas_advanced.wasm";
|
|
668
|
+
if (!Sa(Ta)) {
|
|
669
|
+
var Ua = Ta;
|
|
670
|
+
Ta = m.locateFile ? m.locateFile(Ua, qa) : qa + Ua;
|
|
671
|
+
}
|
|
672
|
+
function Va(a) {
|
|
673
|
+
if (a == Ta && ya) {
|
|
674
|
+
return new Uint8Array(ya);
|
|
675
|
+
}
|
|
676
|
+
if (sa) {
|
|
677
|
+
return sa(a);
|
|
661
678
|
}
|
|
662
679
|
throw "both async and sync fetching of the wasm failed";
|
|
663
680
|
}
|
|
664
|
-
function
|
|
665
|
-
if (
|
|
681
|
+
function Wa(a) {
|
|
682
|
+
if (!ya && (oa || pa)) {
|
|
666
683
|
if ("function" == typeof fetch && !a.startsWith("file://")) {
|
|
667
684
|
return fetch(a, {credentials:"same-origin"}).then(b => {
|
|
668
685
|
if (!b.ok) {
|
|
669
686
|
throw "failed to load wasm binary file at '" + a + "'";
|
|
670
687
|
}
|
|
671
688
|
return b.arrayBuffer();
|
|
672
|
-
}).catch(() =>
|
|
689
|
+
}).catch(() => Va(a));
|
|
673
690
|
}
|
|
674
|
-
if (
|
|
691
|
+
if (ra) {
|
|
675
692
|
return new Promise((b, c) => {
|
|
676
|
-
|
|
693
|
+
ra(a, d => b(new Uint8Array(d)), c);
|
|
677
694
|
});
|
|
678
695
|
}
|
|
679
696
|
}
|
|
680
|
-
return Promise.resolve().then(() =>
|
|
697
|
+
return Promise.resolve().then(() => Va(a));
|
|
681
698
|
}
|
|
682
|
-
function
|
|
683
|
-
return
|
|
684
|
-
|
|
685
|
-
|
|
699
|
+
function Xa(a, b, c) {
|
|
700
|
+
return Wa(a).then(d => WebAssembly.instantiate(d, b)).then(d => d).then(c, d => {
|
|
701
|
+
ua("failed to asynchronously prepare wasm: " + d);
|
|
702
|
+
za(d);
|
|
686
703
|
});
|
|
687
704
|
}
|
|
688
|
-
function
|
|
689
|
-
var c =
|
|
690
|
-
return "function" != typeof WebAssembly.instantiateStreaming ||
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
return
|
|
705
|
+
function Ya(a, b) {
|
|
706
|
+
var c = Ta;
|
|
707
|
+
return ya || "function" != typeof WebAssembly.instantiateStreaming || Sa(c) || c.startsWith("file://") || "function" != typeof fetch ? Xa(c, a, b) : fetch(c, {credentials:"same-origin"}).then(d => WebAssembly.instantiateStreaming(d, a).then(b, function(e) {
|
|
708
|
+
ua("wasm streaming compile failed: " + e);
|
|
709
|
+
ua("falling back to ArrayBuffer instantiation");
|
|
710
|
+
return Xa(c, a, b);
|
|
694
711
|
}));
|
|
695
712
|
}
|
|
696
|
-
var N, P,
|
|
713
|
+
var N, P, bb = {234964:(a, b, c, d, e) => {
|
|
697
714
|
if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
|
|
698
715
|
return 0;
|
|
699
716
|
}
|
|
@@ -709,9 +726,9 @@ var N, P, Ya = {234964:(a, b, c, d, e) => {
|
|
|
709
726
|
let f = window.h;
|
|
710
727
|
f.D = [];
|
|
711
728
|
f.Gc = function(g) {
|
|
712
|
-
for (var
|
|
713
|
-
if (null == f.D[
|
|
714
|
-
return f.D[
|
|
729
|
+
for (var n = 0; n < f.D.length; ++n) {
|
|
730
|
+
if (null == f.D[n]) {
|
|
731
|
+
return f.D[n] = g, n;
|
|
715
732
|
}
|
|
716
733
|
}
|
|
717
734
|
f.D.push(g);
|
|
@@ -727,9 +744,9 @@ var N, P, Ya = {234964:(a, b, c, d, e) => {
|
|
|
727
744
|
}
|
|
728
745
|
};
|
|
729
746
|
f.Sc = function(g) {
|
|
730
|
-
for (var
|
|
731
|
-
if (f.D[
|
|
732
|
-
return f.Db(
|
|
747
|
+
for (var n = 0; n < f.D.length; ++n) {
|
|
748
|
+
if (f.D[n] == g) {
|
|
749
|
+
return f.Db(n);
|
|
733
750
|
}
|
|
734
751
|
}
|
|
735
752
|
};
|
|
@@ -739,15 +756,15 @@ var N, P, Ya = {234964:(a, b, c, d, e) => {
|
|
|
739
756
|
f.Cb = ["touchend", "click"];
|
|
740
757
|
f.unlock = function() {
|
|
741
758
|
for (var g = 0; g < f.D.length; ++g) {
|
|
742
|
-
var
|
|
743
|
-
null !=
|
|
744
|
-
|
|
745
|
-
},
|
|
746
|
-
console.error("Failed to resume audiocontext",
|
|
759
|
+
var n = f.D[g];
|
|
760
|
+
null != n && null != n.I && n.state === f.ga.yb && n.I.resume().then(() => {
|
|
761
|
+
Za(n.qb);
|
|
762
|
+
}, p => {
|
|
763
|
+
console.error("Failed to resume audiocontext", p);
|
|
747
764
|
});
|
|
748
765
|
}
|
|
749
|
-
f.Cb.map(function(
|
|
750
|
-
document.removeEventListener(
|
|
766
|
+
f.Cb.map(function(p) {
|
|
767
|
+
document.removeEventListener(p, f.unlock, !0);
|
|
751
768
|
});
|
|
752
769
|
};
|
|
753
770
|
f.Cb.map(function(g) {
|
|
@@ -770,44 +787,44 @@ var N, P, Ya = {234964:(a, b, c, d, e) => {
|
|
|
770
787
|
if ("undefined" === typeof window.h) {
|
|
771
788
|
return -1;
|
|
772
789
|
}
|
|
773
|
-
var g = {},
|
|
774
|
-
a == window.h.H.za && 0 != c && (
|
|
775
|
-
g.I = new (window.AudioContext || window.webkitAudioContext)(
|
|
790
|
+
var g = {}, n = {};
|
|
791
|
+
a == window.h.H.za && 0 != c && (n.sampleRate = c);
|
|
792
|
+
g.I = new (window.AudioContext || window.webkitAudioContext)(n);
|
|
776
793
|
g.I.suspend();
|
|
777
794
|
g.state = window.h.ga.stopped;
|
|
778
795
|
c = 0;
|
|
779
796
|
a != window.h.H.za && (c = b);
|
|
780
797
|
g.$ = g.I.createScriptProcessor(d, c, b);
|
|
781
|
-
g.$.onaudioprocess = function(
|
|
798
|
+
g.$.onaudioprocess = function(p) {
|
|
782
799
|
if (null == g.ta || 0 == g.ta.length) {
|
|
783
|
-
g.ta = new Float32Array(
|
|
800
|
+
g.ta = new Float32Array(Fa.buffer, e, d * b);
|
|
784
801
|
}
|
|
785
802
|
if (a == window.h.H.capture || a == window.h.H.La) {
|
|
786
803
|
for (var l = 0; l < b; l += 1) {
|
|
787
|
-
for (var u =
|
|
804
|
+
for (var u = p.inputBuffer.getChannelData(l), v = g.ta, y = 0; y < d; y += 1) {
|
|
788
805
|
v[y * b + l] = u[y];
|
|
789
806
|
}
|
|
790
807
|
}
|
|
791
|
-
|
|
808
|
+
$a(f, d, e);
|
|
792
809
|
}
|
|
793
810
|
if (a == window.h.H.za || a == window.h.H.La) {
|
|
794
|
-
for (
|
|
795
|
-
for (u =
|
|
811
|
+
for (ab(f, d, e), l = 0; l < p.outputBuffer.numberOfChannels; ++l) {
|
|
812
|
+
for (u = p.outputBuffer.getChannelData(l), v = g.ta, y = 0; y < d; y += 1) {
|
|
796
813
|
u[y] = v[y * b + l];
|
|
797
814
|
}
|
|
798
815
|
}
|
|
799
816
|
} else {
|
|
800
|
-
for (l = 0; l <
|
|
801
|
-
|
|
817
|
+
for (l = 0; l < p.outputBuffer.numberOfChannels; ++l) {
|
|
818
|
+
p.outputBuffer.getChannelData(l).fill(0.0);
|
|
802
819
|
}
|
|
803
820
|
}
|
|
804
821
|
};
|
|
805
|
-
a != window.h.H.capture && a != window.h.H.La || navigator.mediaDevices.getUserMedia({audio:!0, video:!1}).then(function(
|
|
806
|
-
g.Da = g.I.createMediaStreamSource(
|
|
822
|
+
a != window.h.H.capture && a != window.h.H.La || navigator.mediaDevices.getUserMedia({audio:!0, video:!1}).then(function(p) {
|
|
823
|
+
g.Da = g.I.createMediaStreamSource(p);
|
|
807
824
|
g.Da.connect(g.$);
|
|
808
825
|
g.$.connect(g.I.destination);
|
|
809
|
-
}).catch(function(
|
|
810
|
-
console.log("Failed to get user media: " +
|
|
826
|
+
}).catch(function(p) {
|
|
827
|
+
console.log("Failed to get user media: " + p);
|
|
811
828
|
});
|
|
812
829
|
a == window.h.H.za && g.$.connect(g.I.destination);
|
|
813
830
|
g.qb = f;
|
|
@@ -830,7 +847,11 @@ var N, P, Ya = {234964:(a, b, c, d, e) => {
|
|
|
830
847
|
a = window.h.sa(a);
|
|
831
848
|
a.I.suspend();
|
|
832
849
|
a.state = window.h.ga.stopped;
|
|
833
|
-
}},
|
|
850
|
+
}}, cb = a => {
|
|
851
|
+
for (; 0 < a.length;) {
|
|
852
|
+
a.shift()(m);
|
|
853
|
+
}
|
|
854
|
+
}, db = (a, b) => {
|
|
834
855
|
for (var c = 0, d = a.length - 1; 0 <= d; d--) {
|
|
835
856
|
var e = a[d];
|
|
836
857
|
"." === e ? a.splice(d, 1) : ".." === e ? (a.splice(d, 1), c++) : c && (a.splice(d, 1), c--);
|
|
@@ -841,12 +862,12 @@ var N, P, Ya = {234964:(a, b, c, d, e) => {
|
|
|
841
862
|
}
|
|
842
863
|
}
|
|
843
864
|
return a;
|
|
844
|
-
},
|
|
865
|
+
}, eb = a => {
|
|
845
866
|
var b = "/" === a.charAt(0), c = "/" === a.substr(-1);
|
|
846
|
-
(a =
|
|
867
|
+
(a = db(a.split("/").filter(d => !!d), !b).join("/")) || b || (a = ".");
|
|
847
868
|
a && c && (a += "/");
|
|
848
869
|
return (b ? "/" : "") + a;
|
|
849
|
-
},
|
|
870
|
+
}, fb = a => {
|
|
850
871
|
var b = /^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(a).slice(1);
|
|
851
872
|
a = b[0];
|
|
852
873
|
b = b[1];
|
|
@@ -855,21 +876,21 @@ var N, P, Ya = {234964:(a, b, c, d, e) => {
|
|
|
855
876
|
}
|
|
856
877
|
b && (b = b.substr(0, b.length - 1));
|
|
857
878
|
return a + b;
|
|
858
|
-
},
|
|
879
|
+
}, gb = a => {
|
|
859
880
|
if ("/" === a) {
|
|
860
881
|
return "/";
|
|
861
882
|
}
|
|
862
|
-
a =
|
|
883
|
+
a = eb(a);
|
|
863
884
|
a = a.replace(/\/$/, "");
|
|
864
885
|
var b = a.lastIndexOf("/");
|
|
865
886
|
return -1 === b ? a : a.substr(b + 1);
|
|
866
|
-
},
|
|
887
|
+
}, hb = () => {
|
|
867
888
|
if ("object" == typeof crypto && "function" == typeof crypto.getRandomValues) {
|
|
868
889
|
return a => crypto.getRandomValues(a);
|
|
869
890
|
}
|
|
870
|
-
|
|
871
|
-
},
|
|
872
|
-
function
|
|
891
|
+
za("initRandomDevice");
|
|
892
|
+
}, ib = a => (ib = hb())(a);
|
|
893
|
+
function jb() {
|
|
873
894
|
for (var a = "", b = !1, c = arguments.length - 1; -1 <= c && !b; c--) {
|
|
874
895
|
b = 0 <= c ? arguments[c] : "/";
|
|
875
896
|
if ("string" != typeof b) {
|
|
@@ -881,16 +902,16 @@ function eb() {
|
|
|
881
902
|
a = b + "/" + a;
|
|
882
903
|
b = "/" === b.charAt(0);
|
|
883
904
|
}
|
|
884
|
-
a =
|
|
905
|
+
a = db(a.split("/").filter(d => !!d), !b).join("/");
|
|
885
906
|
return (b ? "/" : "") + a || ".";
|
|
886
907
|
}
|
|
887
|
-
var
|
|
908
|
+
var kb = "undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0, lb = (a, b, c) => {
|
|
888
909
|
var d = b + c;
|
|
889
910
|
for (c = b; a[c] && !(c >= d);) {
|
|
890
911
|
++c;
|
|
891
912
|
}
|
|
892
|
-
if (16 < c - b && a.buffer &&
|
|
893
|
-
return
|
|
913
|
+
if (16 < c - b && a.buffer && kb) {
|
|
914
|
+
return kb.decode(a.subarray(b, c));
|
|
894
915
|
}
|
|
895
916
|
for (d = ""; b < c;) {
|
|
896
917
|
var e = a[b++];
|
|
@@ -908,13 +929,13 @@ var fb = "undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0, g
|
|
|
908
929
|
}
|
|
909
930
|
}
|
|
910
931
|
return d;
|
|
911
|
-
},
|
|
932
|
+
}, mb = [], nb = a => {
|
|
912
933
|
for (var b = 0, c = 0; c < a.length; ++c) {
|
|
913
934
|
var d = a.charCodeAt(c);
|
|
914
935
|
127 >= d ? b++ : 2047 >= d ? b += 2 : 55296 <= d && 57343 >= d ? (b += 4, ++c) : b += 3;
|
|
915
936
|
}
|
|
916
937
|
return b;
|
|
917
|
-
},
|
|
938
|
+
}, ob = (a, b, c, d) => {
|
|
918
939
|
if (!(0 < d)) {
|
|
919
940
|
return 0;
|
|
920
941
|
}
|
|
@@ -923,8 +944,8 @@ var fb = "undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0, g
|
|
|
923
944
|
for (var f = 0; f < a.length; ++f) {
|
|
924
945
|
var g = a.charCodeAt(f);
|
|
925
946
|
if (55296 <= g && 57343 >= g) {
|
|
926
|
-
var
|
|
927
|
-
g = 65536 + ((g & 1023) << 10) |
|
|
947
|
+
var n = a.charCodeAt(++f);
|
|
948
|
+
g = 65536 + ((g & 1023) << 10) | n & 1023;
|
|
928
949
|
}
|
|
929
950
|
if (127 >= g) {
|
|
930
951
|
if (c >= d) {
|
|
@@ -958,19 +979,19 @@ var fb = "undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0, g
|
|
|
958
979
|
b[c] = 0;
|
|
959
980
|
return c - e;
|
|
960
981
|
};
|
|
961
|
-
function
|
|
962
|
-
var c = Array(
|
|
963
|
-
a =
|
|
982
|
+
function pb(a, b) {
|
|
983
|
+
var c = Array(nb(a) + 1);
|
|
984
|
+
a = ob(a, c, 0, c.length);
|
|
964
985
|
b && (c.length = a);
|
|
965
986
|
return c;
|
|
966
987
|
}
|
|
967
|
-
var
|
|
968
|
-
function
|
|
969
|
-
|
|
970
|
-
|
|
988
|
+
var qb = [];
|
|
989
|
+
function rb(a, b) {
|
|
990
|
+
qb[a] = {input:[], F:[], W:b};
|
|
991
|
+
sb(a, tb);
|
|
971
992
|
}
|
|
972
|
-
var
|
|
973
|
-
var b =
|
|
993
|
+
var tb = {open:function(a) {
|
|
994
|
+
var b = qb[a.node.ma];
|
|
974
995
|
if (!b) {
|
|
975
996
|
throw new Q(43);
|
|
976
997
|
}
|
|
@@ -987,7 +1008,7 @@ var ob = {open:function(a) {
|
|
|
987
1008
|
for (var e = 0, f = 0; f < d; f++) {
|
|
988
1009
|
try {
|
|
989
1010
|
var g = a.s.W.ib(a.s);
|
|
990
|
-
} catch (
|
|
1011
|
+
} catch (n) {
|
|
991
1012
|
throw new Q(29);
|
|
992
1013
|
}
|
|
993
1014
|
if (void 0 === g && 0 === e) {
|
|
@@ -1014,36 +1035,36 @@ var ob = {open:function(a) {
|
|
|
1014
1035
|
}
|
|
1015
1036
|
d && (a.node.timestamp = Date.now());
|
|
1016
1037
|
return e;
|
|
1017
|
-
},},
|
|
1038
|
+
},}, ub = {ib:function() {
|
|
1018
1039
|
a: {
|
|
1019
|
-
if (!
|
|
1040
|
+
if (!mb.length) {
|
|
1020
1041
|
var a = null;
|
|
1021
1042
|
"undefined" != typeof window && "function" == typeof window.prompt ? (a = window.prompt("Input: "), null !== a && (a += "\n")) : "function" == typeof readline && (a = readline(), null !== a && (a += "\n"));
|
|
1022
1043
|
if (!a) {
|
|
1023
1044
|
a = null;
|
|
1024
1045
|
break a;
|
|
1025
1046
|
}
|
|
1026
|
-
|
|
1047
|
+
mb = pb(a, !0);
|
|
1027
1048
|
}
|
|
1028
|
-
a =
|
|
1049
|
+
a = mb.shift();
|
|
1029
1050
|
}
|
|
1030
1051
|
return a;
|
|
1031
1052
|
}, Pa:function(a, b) {
|
|
1032
|
-
null === b || 10 === b ? (
|
|
1053
|
+
null === b || 10 === b ? (ta(lb(a.F, 0)), a.F = []) : 0 != b && a.F.push(b);
|
|
1033
1054
|
}, ra:function(a) {
|
|
1034
|
-
a.F && 0 < a.F.length && (
|
|
1055
|
+
a.F && 0 < a.F.length && (ta(lb(a.F, 0)), a.F = []);
|
|
1035
1056
|
}, ic:function() {
|
|
1036
1057
|
return {Lc:25856, Nc:5, Kc:191, Mc:35387, Jc:[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,]};
|
|
1037
1058
|
}, jc:function() {
|
|
1038
1059
|
return 0;
|
|
1039
1060
|
}, kc:function() {
|
|
1040
1061
|
return [24, 80];
|
|
1041
|
-
},},
|
|
1042
|
-
null === b || 10 === b ? (
|
|
1062
|
+
},}, vb = {Pa:function(a, b) {
|
|
1063
|
+
null === b || 10 === b ? (ua(lb(a.F, 0)), a.F = []) : 0 != b && a.F.push(b);
|
|
1043
1064
|
}, ra:function(a) {
|
|
1044
|
-
a.F && 0 < a.F.length && (
|
|
1065
|
+
a.F && 0 < a.F.length && (ua(lb(a.F, 0)), a.F = []);
|
|
1045
1066
|
},};
|
|
1046
|
-
function
|
|
1067
|
+
function wb(a, b) {
|
|
1047
1068
|
var c = a.l ? a.l.length : 0;
|
|
1048
1069
|
c >= b || (b = Math.max(b, c * (1048576 > c ? 2.0 : 1.125) >>> 0), 0 != c && (b = Math.max(b, 256)), c = a.l, a.l = new Uint8Array(b), 0 < a.v && a.l.set(c.subarray(0, a.v), 0));
|
|
1049
1070
|
}
|
|
@@ -1053,8 +1074,8 @@ var T = {P:null, V() {
|
|
|
1053
1074
|
if (24576 === (c & 61440) || 4096 === (c & 61440)) {
|
|
1054
1075
|
throw new Q(63);
|
|
1055
1076
|
}
|
|
1056
|
-
T.P || (T.P = {dir:{node:{N:T.j.N, R:T.j.R, ka:T.j.ka, wa:T.j.wa, vb:T.j.vb, Bb:T.j.Bb, wb:T.j.wb, tb:T.j.tb, Ea:T.j.Ea}, stream:{ba:T.m.ba}}, file:{node:{N:T.j.N, R:T.j.R}, stream:{ba:T.m.ba, read:T.m.read, write:T.m.write, qa:T.m.qa, mb:T.m.mb, ob:T.m.ob}}, link:{node:{N:T.j.N, R:T.j.R, na:T.j.na}, stream:{}}, ab:{node:{N:T.j.N, R:T.j.R}, stream:
|
|
1057
|
-
c =
|
|
1077
|
+
T.P || (T.P = {dir:{node:{N:T.j.N, R:T.j.R, ka:T.j.ka, wa:T.j.wa, vb:T.j.vb, Bb:T.j.Bb, wb:T.j.wb, tb:T.j.tb, Ea:T.j.Ea}, stream:{ba:T.m.ba}}, file:{node:{N:T.j.N, R:T.j.R}, stream:{ba:T.m.ba, read:T.m.read, write:T.m.write, qa:T.m.qa, mb:T.m.mb, ob:T.m.ob}}, link:{node:{N:T.j.N, R:T.j.R, na:T.j.na}, stream:{}}, ab:{node:{N:T.j.N, R:T.j.R}, stream:xb}});
|
|
1078
|
+
c = yb(a, b, c, d);
|
|
1058
1079
|
16384 === (c.mode & 61440) ? (c.j = T.P.dir.node, c.m = T.P.dir.stream, c.l = {}) : 32768 === (c.mode & 61440) ? (c.j = T.P.file.node, c.m = T.P.file.stream, c.v = 0, c.l = null) : 40960 === (c.mode & 61440) ? (c.j = T.P.link.node, c.m = T.P.link.stream) : 8192 === (c.mode & 61440) && (c.j = T.P.ab.node, c.m = T.P.ab.stream);
|
|
1059
1080
|
c.timestamp = Date.now();
|
|
1060
1081
|
a && (a.l[b] = c, a.timestamp = c.timestamp);
|
|
@@ -1091,13 +1112,13 @@ var T = {P:null, V() {
|
|
|
1091
1112
|
}
|
|
1092
1113
|
}
|
|
1093
1114
|
}, ka() {
|
|
1094
|
-
throw
|
|
1115
|
+
throw zb[44];
|
|
1095
1116
|
}, wa(a, b, c, d) {
|
|
1096
1117
|
return T.createNode(a, b, c, d);
|
|
1097
1118
|
}, vb(a, b, c) {
|
|
1098
1119
|
if (16384 === (a.mode & 61440)) {
|
|
1099
1120
|
try {
|
|
1100
|
-
var d =
|
|
1121
|
+
var d = Ab(b, c);
|
|
1101
1122
|
} catch (f) {
|
|
1102
1123
|
}
|
|
1103
1124
|
if (d) {
|
|
@@ -1116,7 +1137,7 @@ var T = {P:null, V() {
|
|
|
1116
1137
|
delete a.l[b];
|
|
1117
1138
|
a.timestamp = Date.now();
|
|
1118
1139
|
}, wb(a, b) {
|
|
1119
|
-
var c =
|
|
1140
|
+
var c = Ab(a, b), d;
|
|
1120
1141
|
for (d in c.l) {
|
|
1121
1142
|
throw new Q(55);
|
|
1122
1143
|
}
|
|
@@ -1169,7 +1190,7 @@ var T = {P:null, V() {
|
|
|
1169
1190
|
return a.l.set(b.subarray(c, c + d), e), d;
|
|
1170
1191
|
}
|
|
1171
1192
|
}
|
|
1172
|
-
|
|
1193
|
+
wb(a, e + d);
|
|
1173
1194
|
if (a.l.subarray && b.subarray) {
|
|
1174
1195
|
a.l.set(b.subarray(c, c + d), e);
|
|
1175
1196
|
} else {
|
|
@@ -1186,7 +1207,7 @@ var T = {P:null, V() {
|
|
|
1186
1207
|
}
|
|
1187
1208
|
return b;
|
|
1188
1209
|
}, qa(a, b, c) {
|
|
1189
|
-
|
|
1210
|
+
wb(a.node, b + c);
|
|
1190
1211
|
a.node.v = Math.max(a.node.v, b + c);
|
|
1191
1212
|
}, mb(a, b, c, d, e) {
|
|
1192
1213
|
if (32768 !== (a.node.mode & 61440)) {
|
|
@@ -1198,7 +1219,7 @@ var T = {P:null, V() {
|
|
|
1198
1219
|
a.subarray ? a = a.subarray(c, c + b) : a = Array.prototype.slice.call(a, c, c + b);
|
|
1199
1220
|
}
|
|
1200
1221
|
c = !0;
|
|
1201
|
-
|
|
1222
|
+
za();
|
|
1202
1223
|
b = void 0;
|
|
1203
1224
|
if (!b) {
|
|
1204
1225
|
throw new Q(48);
|
|
@@ -1212,14 +1233,14 @@ var T = {P:null, V() {
|
|
|
1212
1233
|
T.m.write(a, b, 0, d, c, !1);
|
|
1213
1234
|
return 0;
|
|
1214
1235
|
},},};
|
|
1215
|
-
function
|
|
1236
|
+
function Bb(a, b) {
|
|
1216
1237
|
var c = 0;
|
|
1217
1238
|
a && (c |= 365);
|
|
1218
1239
|
b && (c |= 146);
|
|
1219
1240
|
return c;
|
|
1220
1241
|
}
|
|
1221
|
-
var
|
|
1222
|
-
a =
|
|
1242
|
+
var Cb = null, Db = {}, Eb = [], Fb = 1, Gb = null, Hb = !0, Q = null, zb = {}, Jb = (a, b = {}) => {
|
|
1243
|
+
a = jb(a);
|
|
1223
1244
|
if (!a) {
|
|
1224
1245
|
return {path:"", node:null};
|
|
1225
1246
|
}
|
|
@@ -1228,24 +1249,24 @@ var xb = null, yb = {}, zb = [], Ab = 1, Bb = null, Cb = !0, Q = null, ub = {},
|
|
|
1228
1249
|
throw new Q(32);
|
|
1229
1250
|
}
|
|
1230
1251
|
a = a.split("/").filter(g => !!g);
|
|
1231
|
-
for (var c =
|
|
1252
|
+
for (var c = Cb, d = "/", e = 0; e < a.length; e++) {
|
|
1232
1253
|
var f = e === a.length - 1;
|
|
1233
1254
|
if (f && b.parent) {
|
|
1234
1255
|
break;
|
|
1235
1256
|
}
|
|
1236
|
-
c =
|
|
1237
|
-
d =
|
|
1257
|
+
c = Ab(c, a[e]);
|
|
1258
|
+
d = eb(d + "/" + a[e]);
|
|
1238
1259
|
c.xa && (!f || f && b.gb) && (c = c.xa.root);
|
|
1239
1260
|
if (!f || b.Ma) {
|
|
1240
1261
|
for (f = 0; 40960 === (c.mode & 61440);) {
|
|
1241
|
-
if (c =
|
|
1262
|
+
if (c = Ib(d), d = jb(fb(d), c), c = Jb(d, {Ra:b.Ra + 1}).node, 40 < f++) {
|
|
1242
1263
|
throw new Q(32);
|
|
1243
1264
|
}
|
|
1244
1265
|
}
|
|
1245
1266
|
}
|
|
1246
1267
|
}
|
|
1247
1268
|
return {path:d, node:c};
|
|
1248
|
-
},
|
|
1269
|
+
}, Kb = a => {
|
|
1249
1270
|
for (var b;;) {
|
|
1250
1271
|
if (a === a.parent) {
|
|
1251
1272
|
return a = a.V.nb, b ? "/" !== a[a.length - 1] ? `${a}/${b}` : a + b : a;
|
|
@@ -1253,34 +1274,34 @@ var xb = null, yb = {}, zb = [], Ab = 1, Bb = null, Cb = !0, Q = null, ub = {},
|
|
|
1253
1274
|
b = b ? `${a.name}/${b}` : a.name;
|
|
1254
1275
|
a = a.parent;
|
|
1255
1276
|
}
|
|
1256
|
-
},
|
|
1277
|
+
}, Lb = (a, b) => {
|
|
1257
1278
|
for (var c = 0, d = 0; d < b.length; d++) {
|
|
1258
1279
|
c = (c << 5) - c + b.charCodeAt(d) | 0;
|
|
1259
1280
|
}
|
|
1260
|
-
return (a + c >>> 0) %
|
|
1261
|
-
},
|
|
1281
|
+
return (a + c >>> 0) % Gb.length;
|
|
1282
|
+
}, Ab = (a, b) => {
|
|
1262
1283
|
var c;
|
|
1263
|
-
if (c = (c =
|
|
1284
|
+
if (c = (c = Mb(a, "x")) ? c : a.j.ka ? 0 : 2) {
|
|
1264
1285
|
throw new Q(c, a);
|
|
1265
1286
|
}
|
|
1266
|
-
for (c =
|
|
1287
|
+
for (c = Gb[Lb(a.id, b)]; c; c = c.sc) {
|
|
1267
1288
|
var d = c.name;
|
|
1268
1289
|
if (c.parent.id === a.id && d === b) {
|
|
1269
1290
|
return c;
|
|
1270
1291
|
}
|
|
1271
1292
|
}
|
|
1272
1293
|
return a.j.ka(a, b);
|
|
1273
|
-
},
|
|
1274
|
-
a = new
|
|
1275
|
-
b =
|
|
1276
|
-
a.sc =
|
|
1277
|
-
return
|
|
1278
|
-
},
|
|
1294
|
+
}, yb = (a, b, c, d) => {
|
|
1295
|
+
a = new Nb(a, b, c, d);
|
|
1296
|
+
b = Lb(a.parent.id, a.name);
|
|
1297
|
+
a.sc = Gb[b];
|
|
1298
|
+
return Gb[b] = a;
|
|
1299
|
+
}, Ob = a => {
|
|
1279
1300
|
var b = ["r", "w", "rw"][a & 3];
|
|
1280
1301
|
a & 512 && (b += "w");
|
|
1281
1302
|
return b;
|
|
1282
|
-
},
|
|
1283
|
-
if (
|
|
1303
|
+
}, Mb = (a, b) => {
|
|
1304
|
+
if (Hb) {
|
|
1284
1305
|
return 0;
|
|
1285
1306
|
}
|
|
1286
1307
|
if (!b.includes("r") || a.mode & 292) {
|
|
@@ -1291,29 +1312,29 @@ var xb = null, yb = {}, zb = [], Ab = 1, Bb = null, Cb = !0, Q = null, ub = {},
|
|
|
1291
1312
|
return 2;
|
|
1292
1313
|
}
|
|
1293
1314
|
return 0;
|
|
1294
|
-
},
|
|
1315
|
+
}, Pb = (a, b) => {
|
|
1295
1316
|
try {
|
|
1296
|
-
return
|
|
1317
|
+
return Ab(a, b), 20;
|
|
1297
1318
|
} catch (c) {
|
|
1298
1319
|
}
|
|
1299
|
-
return
|
|
1300
|
-
},
|
|
1320
|
+
return Mb(a, "wx");
|
|
1321
|
+
}, Qb = () => {
|
|
1301
1322
|
for (var a = 0; 4096 >= a; a++) {
|
|
1302
|
-
if (!
|
|
1323
|
+
if (!Eb[a]) {
|
|
1303
1324
|
return a;
|
|
1304
1325
|
}
|
|
1305
1326
|
}
|
|
1306
1327
|
throw new Q(33);
|
|
1307
|
-
},
|
|
1308
|
-
a =
|
|
1328
|
+
}, Rb = a => {
|
|
1329
|
+
a = Eb[a];
|
|
1309
1330
|
if (!a) {
|
|
1310
1331
|
throw new Q(8);
|
|
1311
1332
|
}
|
|
1312
1333
|
return a;
|
|
1313
|
-
},
|
|
1314
|
-
|
|
1334
|
+
}, Tb = (a, b = -1) => {
|
|
1335
|
+
Sb || (Sb = function() {
|
|
1315
1336
|
this.h = {};
|
|
1316
|
-
},
|
|
1337
|
+
}, Sb.prototype = {}, Object.defineProperties(Sb.prototype, {object:{get() {
|
|
1317
1338
|
return this.node;
|
|
1318
1339
|
}, set(c) {
|
|
1319
1340
|
this.node = c;
|
|
@@ -1326,24 +1347,24 @@ var xb = null, yb = {}, zb = [], Ab = 1, Bb = null, Cb = !0, Q = null, ub = {},
|
|
|
1326
1347
|
}, set(c) {
|
|
1327
1348
|
this.h.position = c;
|
|
1328
1349
|
},},}));
|
|
1329
|
-
a = Object.assign(new
|
|
1330
|
-
-1 == b && (b =
|
|
1350
|
+
a = Object.assign(new Sb(), a);
|
|
1351
|
+
-1 == b && (b = Qb());
|
|
1331
1352
|
a.Z = b;
|
|
1332
|
-
return
|
|
1333
|
-
},
|
|
1334
|
-
a.m =
|
|
1353
|
+
return Eb[b] = a;
|
|
1354
|
+
}, xb = {open:a => {
|
|
1355
|
+
a.m = Db[a.node.ma].m;
|
|
1335
1356
|
a.m.open && a.m.open(a);
|
|
1336
1357
|
}, ba:() => {
|
|
1337
1358
|
throw new Q(70);
|
|
1338
|
-
},},
|
|
1339
|
-
|
|
1340
|
-
},
|
|
1359
|
+
},}, sb = (a, b) => {
|
|
1360
|
+
Db[a] = {m:b};
|
|
1361
|
+
}, Ub = (a, b) => {
|
|
1341
1362
|
var c = "/" === b, d = !b;
|
|
1342
|
-
if (c &&
|
|
1363
|
+
if (c && Cb) {
|
|
1343
1364
|
throw new Q(10);
|
|
1344
1365
|
}
|
|
1345
1366
|
if (!c && !d) {
|
|
1346
|
-
var e =
|
|
1367
|
+
var e = Jb(b, {gb:!1});
|
|
1347
1368
|
b = e.path;
|
|
1348
1369
|
e = e.node;
|
|
1349
1370
|
if (e.xa) {
|
|
@@ -1357,14 +1378,14 @@ var xb = null, yb = {}, zb = [], Ab = 1, Bb = null, Cb = !0, Q = null, ub = {},
|
|
|
1357
1378
|
a = a.V(b);
|
|
1358
1379
|
a.V = b;
|
|
1359
1380
|
b.root = a;
|
|
1360
|
-
c ?
|
|
1361
|
-
},
|
|
1362
|
-
var d =
|
|
1363
|
-
a =
|
|
1381
|
+
c ? Cb = a : e && (e.xa = b, e.V && e.V.qc.push(b));
|
|
1382
|
+
}, Vb = (a, b, c) => {
|
|
1383
|
+
var d = Jb(a, {parent:!0}).node;
|
|
1384
|
+
a = gb(a);
|
|
1364
1385
|
if (!a || "." === a || ".." === a) {
|
|
1365
1386
|
throw new Q(28);
|
|
1366
1387
|
}
|
|
1367
|
-
var e =
|
|
1388
|
+
var e = Pb(d, a);
|
|
1368
1389
|
if (e) {
|
|
1369
1390
|
throw new Q(e);
|
|
1370
1391
|
}
|
|
@@ -1372,19 +1393,19 @@ var xb = null, yb = {}, zb = [], Ab = 1, Bb = null, Cb = !0, Q = null, ub = {},
|
|
|
1372
1393
|
throw new Q(63);
|
|
1373
1394
|
}
|
|
1374
1395
|
return d.j.wa(d, a, b, c);
|
|
1375
|
-
},
|
|
1396
|
+
}, Wb = (a, b, c) => {
|
|
1376
1397
|
"undefined" == typeof c && (c = b, b = 438);
|
|
1377
|
-
|
|
1378
|
-
},
|
|
1379
|
-
if (!
|
|
1398
|
+
Vb(a, b | 8192, c);
|
|
1399
|
+
}, Xb = (a, b) => {
|
|
1400
|
+
if (!jb(a)) {
|
|
1380
1401
|
throw new Q(44);
|
|
1381
1402
|
}
|
|
1382
|
-
var c =
|
|
1403
|
+
var c = Jb(b, {parent:!0}).node;
|
|
1383
1404
|
if (!c) {
|
|
1384
1405
|
throw new Q(44);
|
|
1385
1406
|
}
|
|
1386
|
-
b =
|
|
1387
|
-
var d =
|
|
1407
|
+
b = gb(b);
|
|
1408
|
+
var d = Pb(c, b);
|
|
1388
1409
|
if (d) {
|
|
1389
1410
|
throw new Q(d);
|
|
1390
1411
|
}
|
|
@@ -1392,16 +1413,16 @@ var xb = null, yb = {}, zb = [], Ab = 1, Bb = null, Cb = !0, Q = null, ub = {},
|
|
|
1392
1413
|
throw new Q(63);
|
|
1393
1414
|
}
|
|
1394
1415
|
c.j.Ea(c, b, a);
|
|
1395
|
-
},
|
|
1396
|
-
a =
|
|
1416
|
+
}, Ib = a => {
|
|
1417
|
+
a = Jb(a).node;
|
|
1397
1418
|
if (!a) {
|
|
1398
1419
|
throw new Q(44);
|
|
1399
1420
|
}
|
|
1400
1421
|
if (!a.j.na) {
|
|
1401
1422
|
throw new Q(28);
|
|
1402
1423
|
}
|
|
1403
|
-
return
|
|
1404
|
-
},
|
|
1424
|
+
return jb(Kb(a.parent), a.j.na(a));
|
|
1425
|
+
}, dc = (a, b, c) => {
|
|
1405
1426
|
if ("" === a) {
|
|
1406
1427
|
throw new Q(44);
|
|
1407
1428
|
}
|
|
@@ -1416,9 +1437,9 @@ var xb = null, yb = {}, zb = [], Ab = 1, Bb = null, Cb = !0, Q = null, ub = {},
|
|
|
1416
1437
|
if ("object" == typeof a) {
|
|
1417
1438
|
var e = a;
|
|
1418
1439
|
} else {
|
|
1419
|
-
a =
|
|
1440
|
+
a = eb(a);
|
|
1420
1441
|
try {
|
|
1421
|
-
e =
|
|
1442
|
+
e = Jb(a, {Ma:!(b & 131072)}).node;
|
|
1422
1443
|
} catch (f) {
|
|
1423
1444
|
}
|
|
1424
1445
|
}
|
|
@@ -1429,7 +1450,7 @@ var xb = null, yb = {}, zb = [], Ab = 1, Bb = null, Cb = !0, Q = null, ub = {},
|
|
|
1429
1450
|
throw new Q(20);
|
|
1430
1451
|
}
|
|
1431
1452
|
} else {
|
|
1432
|
-
e =
|
|
1453
|
+
e = Vb(a, c, 0), d = !0;
|
|
1433
1454
|
}
|
|
1434
1455
|
}
|
|
1435
1456
|
if (!e) {
|
|
@@ -1439,12 +1460,12 @@ var xb = null, yb = {}, zb = [], Ab = 1, Bb = null, Cb = !0, Q = null, ub = {},
|
|
|
1439
1460
|
if (b & 65536 && 16384 !== (e.mode & 61440)) {
|
|
1440
1461
|
throw new Q(54);
|
|
1441
1462
|
}
|
|
1442
|
-
if (!d && (c = e ? 40960 === (e.mode & 61440) ? 32 : 16384 === (e.mode & 61440) && ("r" !==
|
|
1463
|
+
if (!d && (c = e ? 40960 === (e.mode & 61440) ? 32 : 16384 === (e.mode & 61440) && ("r" !== Ob(b) || b & 512) ? 31 : Mb(e, Ob(b)) : 44)) {
|
|
1443
1464
|
throw new Q(c);
|
|
1444
1465
|
}
|
|
1445
1466
|
if (b & 512 && !d) {
|
|
1446
1467
|
c = e;
|
|
1447
|
-
c = "string" == typeof c ?
|
|
1468
|
+
c = "string" == typeof c ? Jb(c, {Ma:!0}).node : c;
|
|
1448
1469
|
if (!c.j.R) {
|
|
1449
1470
|
throw new Q(63);
|
|
1450
1471
|
}
|
|
@@ -1454,17 +1475,17 @@ var xb = null, yb = {}, zb = [], Ab = 1, Bb = null, Cb = !0, Q = null, ub = {},
|
|
|
1454
1475
|
if (32768 !== (c.mode & 61440)) {
|
|
1455
1476
|
throw new Q(28);
|
|
1456
1477
|
}
|
|
1457
|
-
if (d =
|
|
1478
|
+
if (d = Mb(c, "w")) {
|
|
1458
1479
|
throw new Q(d);
|
|
1459
1480
|
}
|
|
1460
1481
|
c.j.R(c, {size:0, timestamp:Date.now()});
|
|
1461
1482
|
}
|
|
1462
1483
|
b &= -131713;
|
|
1463
|
-
e =
|
|
1484
|
+
e = Tb({node:e, path:Kb(e), flags:b, seekable:!0, position:0, m:e.m, Hc:[], error:!1});
|
|
1464
1485
|
e.m.open && e.m.open(e);
|
|
1465
|
-
!
|
|
1486
|
+
!m.logReadFiles || b & 1 || (Yb || (Yb = {}), a in Yb || (Yb[a] = 1));
|
|
1466
1487
|
return e;
|
|
1467
|
-
},
|
|
1488
|
+
}, ec = (a, b, c) => {
|
|
1468
1489
|
if (null === a.Z) {
|
|
1469
1490
|
throw new Q(8);
|
|
1470
1491
|
}
|
|
@@ -1476,7 +1497,7 @@ var xb = null, yb = {}, zb = [], Ab = 1, Bb = null, Cb = !0, Q = null, ub = {},
|
|
|
1476
1497
|
}
|
|
1477
1498
|
a.position = a.m.ba(a, b, c);
|
|
1478
1499
|
a.Hc = [];
|
|
1479
|
-
},
|
|
1500
|
+
}, fc = () => {
|
|
1480
1501
|
Q || (Q = function(a, b) {
|
|
1481
1502
|
this.name = "ErrnoError";
|
|
1482
1503
|
this.node = b;
|
|
@@ -1486,20 +1507,20 @@ var xb = null, yb = {}, zb = [], Ab = 1, Bb = null, Cb = !0, Q = null, ub = {},
|
|
|
1486
1507
|
this.xc(a);
|
|
1487
1508
|
this.message = "FS error";
|
|
1488
1509
|
}, Q.prototype = Error(), Q.prototype.constructor = Q, [44].forEach(a => {
|
|
1489
|
-
|
|
1490
|
-
|
|
1510
|
+
zb[a] = new Q(a);
|
|
1511
|
+
zb[a].stack = "<generic error, no stack>";
|
|
1491
1512
|
}));
|
|
1492
|
-
},
|
|
1493
|
-
a =
|
|
1494
|
-
var d =
|
|
1495
|
-
|
|
1496
|
-
var e =
|
|
1497
|
-
|
|
1513
|
+
}, gc, ic = (a, b, c) => {
|
|
1514
|
+
a = eb("/dev/" + a);
|
|
1515
|
+
var d = Bb(!!b, !!c);
|
|
1516
|
+
hc || (hc = 64);
|
|
1517
|
+
var e = hc++ << 8 | 0;
|
|
1518
|
+
sb(e, {open:f => {
|
|
1498
1519
|
f.seekable = !1;
|
|
1499
1520
|
}, close:() => {
|
|
1500
1521
|
c && c.buffer && c.buffer.length && c(10);
|
|
1501
|
-
}, read:(f, g,
|
|
1502
|
-
for (var l = 0, u = 0; u <
|
|
1522
|
+
}, read:(f, g, n, p) => {
|
|
1523
|
+
for (var l = 0, u = 0; u < p; u++) {
|
|
1503
1524
|
try {
|
|
1504
1525
|
var v = b();
|
|
1505
1526
|
} catch (y) {
|
|
@@ -1512,28 +1533,28 @@ var xb = null, yb = {}, zb = [], Ab = 1, Bb = null, Cb = !0, Q = null, ub = {},
|
|
|
1512
1533
|
break;
|
|
1513
1534
|
}
|
|
1514
1535
|
l++;
|
|
1515
|
-
g[
|
|
1536
|
+
g[n + u] = v;
|
|
1516
1537
|
}
|
|
1517
1538
|
l && (f.node.timestamp = Date.now());
|
|
1518
1539
|
return l;
|
|
1519
|
-
}, write:(f, g,
|
|
1520
|
-
for (var l = 0; l <
|
|
1540
|
+
}, write:(f, g, n, p) => {
|
|
1541
|
+
for (var l = 0; l < p; l++) {
|
|
1521
1542
|
try {
|
|
1522
|
-
c(g[
|
|
1543
|
+
c(g[n + l]);
|
|
1523
1544
|
} catch (u) {
|
|
1524
1545
|
throw new Q(29);
|
|
1525
1546
|
}
|
|
1526
1547
|
}
|
|
1527
|
-
|
|
1548
|
+
p && (f.node.timestamp = Date.now());
|
|
1528
1549
|
return l;
|
|
1529
1550
|
}});
|
|
1530
|
-
|
|
1531
|
-
},
|
|
1532
|
-
function
|
|
1533
|
-
|
|
1534
|
-
return F[
|
|
1551
|
+
Wb(a, d, e);
|
|
1552
|
+
}, hc, jc = {}, Sb, Yb, kc = void 0;
|
|
1553
|
+
function lc() {
|
|
1554
|
+
kc += 4;
|
|
1555
|
+
return F[kc - 4 >> 2];
|
|
1535
1556
|
}
|
|
1536
|
-
function
|
|
1557
|
+
function mc(a) {
|
|
1537
1558
|
if (void 0 === a) {
|
|
1538
1559
|
return "_unknown";
|
|
1539
1560
|
}
|
|
@@ -1541,24 +1562,24 @@ function hc(a) {
|
|
|
1541
1562
|
var b = a.charCodeAt(0);
|
|
1542
1563
|
return 48 <= b && 57 >= b ? `_${a}` : a;
|
|
1543
1564
|
}
|
|
1544
|
-
function
|
|
1545
|
-
a =
|
|
1565
|
+
function nc(a, b) {
|
|
1566
|
+
a = mc(a);
|
|
1546
1567
|
return {[a]:function() {
|
|
1547
1568
|
return b.apply(this, arguments);
|
|
1548
1569
|
}}[a];
|
|
1549
1570
|
}
|
|
1550
|
-
function
|
|
1571
|
+
function oc() {
|
|
1551
1572
|
this.M = [void 0];
|
|
1552
1573
|
this.hb = [];
|
|
1553
1574
|
}
|
|
1554
|
-
var
|
|
1575
|
+
var pc = new oc(), qc = void 0;
|
|
1555
1576
|
function U(a) {
|
|
1556
|
-
throw new
|
|
1577
|
+
throw new qc(a);
|
|
1557
1578
|
}
|
|
1558
|
-
var
|
|
1579
|
+
var rc = a => {
|
|
1559
1580
|
a || U("Cannot use deleted val. handle = " + a);
|
|
1560
|
-
return
|
|
1561
|
-
},
|
|
1581
|
+
return pc.get(a).value;
|
|
1582
|
+
}, sc = a => {
|
|
1562
1583
|
switch(a) {
|
|
1563
1584
|
case void 0:
|
|
1564
1585
|
return 1;
|
|
@@ -1569,11 +1590,11 @@ var mc = a => {
|
|
|
1569
1590
|
case !1:
|
|
1570
1591
|
return 4;
|
|
1571
1592
|
default:
|
|
1572
|
-
return
|
|
1593
|
+
return pc.qa({ub:1, value:a});
|
|
1573
1594
|
}
|
|
1574
1595
|
};
|
|
1575
|
-
function
|
|
1576
|
-
var b = Error, c =
|
|
1596
|
+
function tc(a) {
|
|
1597
|
+
var b = Error, c = nc(a, function(d) {
|
|
1577
1598
|
this.name = a;
|
|
1578
1599
|
this.message = d;
|
|
1579
1600
|
d = Error(d).stack;
|
|
@@ -1586,122 +1607,122 @@ function oc(a) {
|
|
|
1586
1607
|
};
|
|
1587
1608
|
return c;
|
|
1588
1609
|
}
|
|
1589
|
-
var
|
|
1610
|
+
var uc = void 0, vc = void 0;
|
|
1590
1611
|
function W(a) {
|
|
1591
1612
|
for (var b = ""; C[a];) {
|
|
1592
|
-
b +=
|
|
1613
|
+
b += vc[C[a++]];
|
|
1593
1614
|
}
|
|
1594
1615
|
return b;
|
|
1595
1616
|
}
|
|
1596
|
-
var
|
|
1597
|
-
function
|
|
1598
|
-
for (;
|
|
1599
|
-
var a =
|
|
1617
|
+
var wc = [];
|
|
1618
|
+
function xc() {
|
|
1619
|
+
for (; wc.length;) {
|
|
1620
|
+
var a = wc.pop();
|
|
1600
1621
|
a.g.fa = !1;
|
|
1601
1622
|
a["delete"]();
|
|
1602
1623
|
}
|
|
1603
1624
|
}
|
|
1604
|
-
var
|
|
1605
|
-
function
|
|
1625
|
+
var yc = void 0, zc = {};
|
|
1626
|
+
function Ac(a, b) {
|
|
1606
1627
|
for (void 0 === b && U("ptr should not be undefined"); a.A;) {
|
|
1607
1628
|
b = a.oa(b), a = a.A;
|
|
1608
1629
|
}
|
|
1609
1630
|
return b;
|
|
1610
1631
|
}
|
|
1611
|
-
var
|
|
1612
|
-
function
|
|
1613
|
-
a =
|
|
1632
|
+
var Bc = {};
|
|
1633
|
+
function Cc(a) {
|
|
1634
|
+
a = Dc(a);
|
|
1614
1635
|
var b = W(a);
|
|
1615
|
-
|
|
1636
|
+
Ec(a);
|
|
1616
1637
|
return b;
|
|
1617
1638
|
}
|
|
1618
|
-
function
|
|
1619
|
-
var c =
|
|
1620
|
-
void 0 === c && U(b + " has unknown type " +
|
|
1639
|
+
function Fc(a, b) {
|
|
1640
|
+
var c = Bc[a];
|
|
1641
|
+
void 0 === c && U(b + " has unknown type " + Cc(a));
|
|
1621
1642
|
return c;
|
|
1622
1643
|
}
|
|
1623
|
-
function
|
|
1644
|
+
function Gc() {
|
|
1624
1645
|
}
|
|
1625
|
-
var
|
|
1626
|
-
function
|
|
1646
|
+
var Hc = !1;
|
|
1647
|
+
function Ic(a) {
|
|
1627
1648
|
--a.count.value;
|
|
1628
1649
|
0 === a.count.value && (a.G ? a.L.X(a.G) : a.u.i.X(a.o));
|
|
1629
1650
|
}
|
|
1630
|
-
function
|
|
1651
|
+
function Jc(a, b, c) {
|
|
1631
1652
|
if (b === c) {
|
|
1632
1653
|
return a;
|
|
1633
1654
|
}
|
|
1634
1655
|
if (void 0 === c.A) {
|
|
1635
1656
|
return null;
|
|
1636
1657
|
}
|
|
1637
|
-
a =
|
|
1658
|
+
a = Jc(a, b, c.A);
|
|
1638
1659
|
return null === a ? null : c.Ub(a);
|
|
1639
1660
|
}
|
|
1640
|
-
var
|
|
1641
|
-
function
|
|
1642
|
-
b =
|
|
1643
|
-
return
|
|
1661
|
+
var Kc = {};
|
|
1662
|
+
function Lc(a, b) {
|
|
1663
|
+
b = Ac(a, b);
|
|
1664
|
+
return zc[b];
|
|
1644
1665
|
}
|
|
1645
|
-
var
|
|
1646
|
-
function
|
|
1647
|
-
throw new
|
|
1666
|
+
var Mc = void 0;
|
|
1667
|
+
function Nc(a) {
|
|
1668
|
+
throw new Mc(a);
|
|
1648
1669
|
}
|
|
1649
|
-
function
|
|
1650
|
-
b.u && b.o ||
|
|
1651
|
-
!!b.L !== !!b.G &&
|
|
1670
|
+
function Oc(a, b) {
|
|
1671
|
+
b.u && b.o || Nc("makeClassHandle requires ptr and ptrType");
|
|
1672
|
+
!!b.L !== !!b.G && Nc("Both smartPtrType and smartPtr must be specified");
|
|
1652
1673
|
b.count = {value:1};
|
|
1653
|
-
return
|
|
1674
|
+
return Pc(Object.create(a, {g:{value:b,},}));
|
|
1654
1675
|
}
|
|
1655
|
-
function
|
|
1676
|
+
function Pc(a) {
|
|
1656
1677
|
if ("undefined" === typeof FinalizationRegistry) {
|
|
1657
|
-
return
|
|
1678
|
+
return Pc = b => b, a;
|
|
1658
1679
|
}
|
|
1659
|
-
|
|
1660
|
-
|
|
1680
|
+
Hc = new FinalizationRegistry(b => {
|
|
1681
|
+
Ic(b.g);
|
|
1661
1682
|
});
|
|
1662
|
-
|
|
1683
|
+
Pc = b => {
|
|
1663
1684
|
var c = b.g;
|
|
1664
|
-
c.G &&
|
|
1685
|
+
c.G && Hc.register(b, {g:c}, b);
|
|
1665
1686
|
return b;
|
|
1666
1687
|
};
|
|
1667
|
-
|
|
1668
|
-
|
|
1688
|
+
Gc = b => {
|
|
1689
|
+
Hc.unregister(b);
|
|
1669
1690
|
};
|
|
1670
|
-
return
|
|
1691
|
+
return Pc(a);
|
|
1671
1692
|
}
|
|
1672
|
-
var
|
|
1673
|
-
function
|
|
1693
|
+
var Qc = {};
|
|
1694
|
+
function Rc(a) {
|
|
1674
1695
|
for (; a.length;) {
|
|
1675
1696
|
var b = a.pop();
|
|
1676
1697
|
a.pop()(b);
|
|
1677
1698
|
}
|
|
1678
1699
|
}
|
|
1679
|
-
function
|
|
1700
|
+
function Sc(a) {
|
|
1680
1701
|
return this.fromWireType(F[a >> 2]);
|
|
1681
1702
|
}
|
|
1682
|
-
var
|
|
1703
|
+
var Tc = {}, Uc = {};
|
|
1683
1704
|
function X(a, b, c) {
|
|
1684
|
-
function d(
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
for (var
|
|
1688
|
-
|
|
1705
|
+
function d(n) {
|
|
1706
|
+
n = c(n);
|
|
1707
|
+
n.length !== a.length && Nc("Mismatched type converter count");
|
|
1708
|
+
for (var p = 0; p < a.length; ++p) {
|
|
1709
|
+
Vc(a[p], n[p]);
|
|
1689
1710
|
}
|
|
1690
1711
|
}
|
|
1691
|
-
a.forEach(function(
|
|
1692
|
-
|
|
1712
|
+
a.forEach(function(n) {
|
|
1713
|
+
Uc[n] = b;
|
|
1693
1714
|
});
|
|
1694
1715
|
var e = Array(b.length), f = [], g = 0;
|
|
1695
|
-
b.forEach((
|
|
1696
|
-
|
|
1697
|
-
e[
|
|
1716
|
+
b.forEach((n, p) => {
|
|
1717
|
+
Bc.hasOwnProperty(n) ? e[p] = Bc[n] : (f.push(n), Tc.hasOwnProperty(n) || (Tc[n] = []), Tc[n].push(() => {
|
|
1718
|
+
e[p] = Bc[n];
|
|
1698
1719
|
++g;
|
|
1699
1720
|
g === f.length && d(e);
|
|
1700
1721
|
}));
|
|
1701
1722
|
});
|
|
1702
1723
|
0 === f.length && d(e);
|
|
1703
1724
|
}
|
|
1704
|
-
function
|
|
1725
|
+
function Wc(a) {
|
|
1705
1726
|
switch(a) {
|
|
1706
1727
|
case 1:
|
|
1707
1728
|
return 0;
|
|
@@ -1715,31 +1736,31 @@ function Rc(a) {
|
|
|
1715
1736
|
throw new TypeError(`Unknown type size: ${a}`);
|
|
1716
1737
|
}
|
|
1717
1738
|
}
|
|
1718
|
-
function
|
|
1739
|
+
function Xc(a, b, c = {}) {
|
|
1719
1740
|
var d = b.name;
|
|
1720
1741
|
a || U(`type "${d}" must have a positive integer typeid pointer`);
|
|
1721
|
-
if (
|
|
1742
|
+
if (Bc.hasOwnProperty(a)) {
|
|
1722
1743
|
if (c.fc) {
|
|
1723
1744
|
return;
|
|
1724
1745
|
}
|
|
1725
1746
|
U(`Cannot register type '${d}' twice`);
|
|
1726
1747
|
}
|
|
1727
|
-
|
|
1728
|
-
delete
|
|
1729
|
-
|
|
1748
|
+
Bc[a] = b;
|
|
1749
|
+
delete Uc[a];
|
|
1750
|
+
Tc.hasOwnProperty(a) && (b = Tc[a], delete Tc[a], b.forEach(e => e()));
|
|
1730
1751
|
}
|
|
1731
|
-
function
|
|
1752
|
+
function Vc(a, b, c = {}) {
|
|
1732
1753
|
if (!("argPackAdvance" in b)) {
|
|
1733
1754
|
throw new TypeError("registerType registeredInstance requires argPackAdvance");
|
|
1734
1755
|
}
|
|
1735
|
-
|
|
1756
|
+
Xc(a, b, c);
|
|
1736
1757
|
}
|
|
1737
|
-
function
|
|
1758
|
+
function Yc(a) {
|
|
1738
1759
|
U(a.g.u.i.name + " instance already deleted");
|
|
1739
1760
|
}
|
|
1740
|
-
function
|
|
1761
|
+
function Zc() {
|
|
1741
1762
|
}
|
|
1742
|
-
function
|
|
1763
|
+
function $c(a, b, c) {
|
|
1743
1764
|
if (void 0 === a[b].B) {
|
|
1744
1765
|
var d = a[b];
|
|
1745
1766
|
a[b] = function() {
|
|
@@ -1750,10 +1771,10 @@ function Vc(a, b, c) {
|
|
|
1750
1771
|
a[b].B[d.ea] = d;
|
|
1751
1772
|
}
|
|
1752
1773
|
}
|
|
1753
|
-
function
|
|
1754
|
-
|
|
1774
|
+
function ad(a, b, c) {
|
|
1775
|
+
m.hasOwnProperty(a) ? ((void 0 === c || void 0 !== m[a].B && void 0 !== m[a].B[c]) && U(`Cannot register public name '${a}' twice`), $c(m, a, a), m.hasOwnProperty(c) && U(`Cannot register multiple overloads of a function with the same number of arguments (${c})!`), m[a].B[c] = b) : (m[a] = b, void 0 !== c && (m[a].Pc = c));
|
|
1755
1776
|
}
|
|
1756
|
-
function
|
|
1777
|
+
function bd(a, b, c, d, e, f, g, n) {
|
|
1757
1778
|
this.name = a;
|
|
1758
1779
|
this.constructor = b;
|
|
1759
1780
|
this.O = c;
|
|
@@ -1761,24 +1782,24 @@ function Xc(a, b, c, d, e, f, g, m) {
|
|
|
1761
1782
|
this.A = e;
|
|
1762
1783
|
this.Zb = f;
|
|
1763
1784
|
this.oa = g;
|
|
1764
|
-
this.Ub =
|
|
1785
|
+
this.Ub = n;
|
|
1765
1786
|
this.rb = [];
|
|
1766
1787
|
}
|
|
1767
|
-
function
|
|
1788
|
+
function cd(a, b, c) {
|
|
1768
1789
|
for (; b !== c;) {
|
|
1769
1790
|
b.oa || U(`Expected null or instance of ${c.name}, got an instance of ${b.name}`), a = b.oa(a), b = b.A;
|
|
1770
1791
|
}
|
|
1771
1792
|
return a;
|
|
1772
1793
|
}
|
|
1773
|
-
function
|
|
1794
|
+
function dd(a, b) {
|
|
1774
1795
|
if (null === b) {
|
|
1775
1796
|
return this.Oa && U(`null is not a valid ${this.name}`), 0;
|
|
1776
1797
|
}
|
|
1777
|
-
b.g || U(`Cannot pass "${
|
|
1798
|
+
b.g || U(`Cannot pass "${ed(b)}" as a ${this.name}`);
|
|
1778
1799
|
b.g.o || U(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
1779
|
-
return
|
|
1800
|
+
return cd(b.g.o, b.g.u.i, this.i);
|
|
1780
1801
|
}
|
|
1781
|
-
function
|
|
1802
|
+
function fd(a, b) {
|
|
1782
1803
|
if (null === b) {
|
|
1783
1804
|
this.Oa && U(`null is not a valid ${this.name}`);
|
|
1784
1805
|
if (this.va) {
|
|
@@ -1788,10 +1809,10 @@ function ad(a, b) {
|
|
|
1788
1809
|
}
|
|
1789
1810
|
return 0;
|
|
1790
1811
|
}
|
|
1791
|
-
b.g || U(`Cannot pass "${
|
|
1812
|
+
b.g || U(`Cannot pass "${ed(b)}" as a ${this.name}`);
|
|
1792
1813
|
b.g.o || U(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
1793
1814
|
!this.ua && b.g.u.ua && U(`Cannot convert argument of type ${b.g.L ? b.g.L.name : b.g.u.name} to parameter type ${this.name}`);
|
|
1794
|
-
c =
|
|
1815
|
+
c = cd(b.g.o, b.g.u.i, this.i);
|
|
1795
1816
|
if (this.va) {
|
|
1796
1817
|
switch(void 0 === b.g.G && U("Passing raw pointer to smart pointer is illegal"), this.Bc) {
|
|
1797
1818
|
case 0:
|
|
@@ -1805,7 +1826,7 @@ function ad(a, b) {
|
|
|
1805
1826
|
c = b.g.G;
|
|
1806
1827
|
} else {
|
|
1807
1828
|
var d = b.clone();
|
|
1808
|
-
c = this.wc(c,
|
|
1829
|
+
c = this.wc(c, sc(function() {
|
|
1809
1830
|
d["delete"]();
|
|
1810
1831
|
}));
|
|
1811
1832
|
null !== a && a.push(this.X, c);
|
|
@@ -1817,72 +1838,72 @@ function ad(a, b) {
|
|
|
1817
1838
|
}
|
|
1818
1839
|
return c;
|
|
1819
1840
|
}
|
|
1820
|
-
function
|
|
1841
|
+
function gd(a, b) {
|
|
1821
1842
|
if (null === b) {
|
|
1822
1843
|
return this.Oa && U(`null is not a valid ${this.name}`), 0;
|
|
1823
1844
|
}
|
|
1824
|
-
b.g || U(`Cannot pass "${
|
|
1845
|
+
b.g || U(`Cannot pass "${ed(b)}" as a ${this.name}`);
|
|
1825
1846
|
b.g.o || U(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
1826
1847
|
b.g.u.ua && U(`Cannot convert argument of type ${b.g.u.name} to parameter type ${this.name}`);
|
|
1827
|
-
return
|
|
1848
|
+
return cd(b.g.o, b.g.u.i, this.i);
|
|
1828
1849
|
}
|
|
1829
|
-
function
|
|
1850
|
+
function hd(a, b, c, d) {
|
|
1830
1851
|
this.name = a;
|
|
1831
1852
|
this.i = b;
|
|
1832
1853
|
this.Oa = c;
|
|
1833
1854
|
this.ua = d;
|
|
1834
1855
|
this.va = !1;
|
|
1835
1856
|
this.X = this.wc = this.Qa = this.sb = this.Bc = this.vc = void 0;
|
|
1836
|
-
void 0 !== b.A ? this.toWireType =
|
|
1857
|
+
void 0 !== b.A ? this.toWireType = fd : (this.toWireType = d ? dd : gd, this.K = null);
|
|
1837
1858
|
}
|
|
1838
|
-
function
|
|
1839
|
-
|
|
1840
|
-
void 0 !==
|
|
1859
|
+
function jd(a, b, c) {
|
|
1860
|
+
m.hasOwnProperty(a) || Nc("Replacing nonexistant public symbol");
|
|
1861
|
+
void 0 !== m[a].B && void 0 !== c ? m[a].B[c] = b : (m[a] = b, m[a].ea = c);
|
|
1841
1862
|
}
|
|
1842
|
-
var
|
|
1843
|
-
var b =
|
|
1844
|
-
b || (a >=
|
|
1863
|
+
var kd = [], ld = a => {
|
|
1864
|
+
var b = kd[a];
|
|
1865
|
+
b || (a >= kd.length && (kd.length = a + 1), kd[a] = b = Ka.get(a));
|
|
1845
1866
|
return b;
|
|
1846
|
-
},
|
|
1867
|
+
}, md = (a, b) => {
|
|
1847
1868
|
var c = [];
|
|
1848
1869
|
return function() {
|
|
1849
1870
|
c.length = 0;
|
|
1850
1871
|
Object.assign(c, arguments);
|
|
1851
1872
|
if (a.includes("j")) {
|
|
1852
|
-
var d =
|
|
1873
|
+
var d = m["dynCall_" + a];
|
|
1853
1874
|
d = c && c.length ? d.apply(null, [b].concat(c)) : d.call(null, b);
|
|
1854
1875
|
} else {
|
|
1855
|
-
d =
|
|
1876
|
+
d = ld(b).apply(null, c);
|
|
1856
1877
|
}
|
|
1857
1878
|
return d;
|
|
1858
1879
|
};
|
|
1859
1880
|
};
|
|
1860
1881
|
function Y(a, b) {
|
|
1861
1882
|
a = W(a);
|
|
1862
|
-
var c = a.includes("j") ?
|
|
1883
|
+
var c = a.includes("j") ? md(a, b) : ld(b);
|
|
1863
1884
|
"function" != typeof c && U(`unknown function pointer with signature ${a}: ${b}`);
|
|
1864
1885
|
return c;
|
|
1865
1886
|
}
|
|
1866
|
-
var
|
|
1867
|
-
function
|
|
1887
|
+
var nd = void 0;
|
|
1888
|
+
function od(a, b) {
|
|
1868
1889
|
function c(f) {
|
|
1869
|
-
e[f] ||
|
|
1890
|
+
e[f] || Bc[f] || (Uc[f] ? Uc[f].forEach(c) : (d.push(f), e[f] = !0));
|
|
1870
1891
|
}
|
|
1871
1892
|
var d = [], e = {};
|
|
1872
1893
|
b.forEach(c);
|
|
1873
|
-
throw new
|
|
1894
|
+
throw new nd(`${a}: ` + d.map(Cc).join([", "]));
|
|
1874
1895
|
}
|
|
1875
|
-
function
|
|
1896
|
+
function pd(a, b, c, d, e) {
|
|
1876
1897
|
var f = b.length;
|
|
1877
1898
|
2 > f && U("argTypes array size mismatch! Must at least get return value and 'this' types!");
|
|
1878
|
-
var g = null !== b[1] && null !== c,
|
|
1899
|
+
var g = null !== b[1] && null !== c, n = !1;
|
|
1879
1900
|
for (c = 1; c < b.length; ++c) {
|
|
1880
1901
|
if (null !== b[c] && void 0 === b[c].K) {
|
|
1881
|
-
|
|
1902
|
+
n = !0;
|
|
1882
1903
|
break;
|
|
1883
1904
|
}
|
|
1884
1905
|
}
|
|
1885
|
-
var
|
|
1906
|
+
var p = "void" !== b[0].name, l = f - 2, u = Array(l), v = [], y = [];
|
|
1886
1907
|
return function() {
|
|
1887
1908
|
arguments.length !== l && U(`function ${a} called with ${arguments.length} arguments, expected ${l} args!`);
|
|
1888
1909
|
y.length = 0;
|
|
@@ -1896,34 +1917,34 @@ function kd(a, b, c, d, e) {
|
|
|
1896
1917
|
u[t] = b[t + 2].toWireType(y, arguments[t]), v.push(u[t]);
|
|
1897
1918
|
}
|
|
1898
1919
|
t = d.apply(null, v);
|
|
1899
|
-
if (
|
|
1900
|
-
|
|
1920
|
+
if (n) {
|
|
1921
|
+
Rc(y);
|
|
1901
1922
|
} else {
|
|
1902
1923
|
for (var r = g ? 1 : 2; r < b.length; r++) {
|
|
1903
1924
|
var B = 1 === r ? k : u[r - 2];
|
|
1904
1925
|
null !== b[r].K && b[r].K(B);
|
|
1905
1926
|
}
|
|
1906
1927
|
}
|
|
1907
|
-
k =
|
|
1928
|
+
k = p ? b[0].fromWireType(t) : void 0;
|
|
1908
1929
|
return k;
|
|
1909
1930
|
};
|
|
1910
1931
|
}
|
|
1911
|
-
function
|
|
1932
|
+
function rd(a, b) {
|
|
1912
1933
|
for (var c = [], d = 0; d < a; d++) {
|
|
1913
1934
|
c.push(G[b + 4 * d >> 2]);
|
|
1914
1935
|
}
|
|
1915
1936
|
return c;
|
|
1916
1937
|
}
|
|
1917
|
-
function
|
|
1938
|
+
function sd(a, b, c) {
|
|
1918
1939
|
a instanceof Object || U(`${c} with invalid "this": ${a}`);
|
|
1919
1940
|
a instanceof b.i.constructor || U(`${c} incompatible with "this" of type ${a.constructor.name}`);
|
|
1920
1941
|
a.g.o || U(`cannot call emscripten binding method ${c} on deleted object`);
|
|
1921
|
-
return
|
|
1942
|
+
return cd(a.g.o, a.g.u.i, b.i);
|
|
1922
1943
|
}
|
|
1923
|
-
function
|
|
1924
|
-
a >=
|
|
1944
|
+
function td(a) {
|
|
1945
|
+
a >= pc.h && 0 === --pc.get(a).ub && pc.ec(a);
|
|
1925
1946
|
}
|
|
1926
|
-
function
|
|
1947
|
+
function ud(a, b, c) {
|
|
1927
1948
|
switch(b) {
|
|
1928
1949
|
case 0:
|
|
1929
1950
|
return function(d) {
|
|
@@ -1931,7 +1952,7 @@ function pd(a, b, c) {
|
|
|
1931
1952
|
};
|
|
1932
1953
|
case 1:
|
|
1933
1954
|
return function(d) {
|
|
1934
|
-
return this.fromWireType((c ?
|
|
1955
|
+
return this.fromWireType((c ? Da : Ea)[d >> 1]);
|
|
1935
1956
|
};
|
|
1936
1957
|
case 2:
|
|
1937
1958
|
return function(d) {
|
|
@@ -1941,28 +1962,28 @@ function pd(a, b, c) {
|
|
|
1941
1962
|
throw new TypeError("Unknown integer type: " + a);
|
|
1942
1963
|
}
|
|
1943
1964
|
}
|
|
1944
|
-
function
|
|
1965
|
+
function ed(a) {
|
|
1945
1966
|
if (null === a) {
|
|
1946
1967
|
return "null";
|
|
1947
1968
|
}
|
|
1948
1969
|
var b = typeof a;
|
|
1949
1970
|
return "object" === b || "array" === b || "function" === b ? a.toString() : "" + a;
|
|
1950
1971
|
}
|
|
1951
|
-
function
|
|
1972
|
+
function vd(a, b) {
|
|
1952
1973
|
switch(b) {
|
|
1953
1974
|
case 2:
|
|
1954
1975
|
return function(c) {
|
|
1955
|
-
return this.fromWireType(
|
|
1976
|
+
return this.fromWireType(Fa[c >> 2]);
|
|
1956
1977
|
};
|
|
1957
1978
|
case 3:
|
|
1958
1979
|
return function(c) {
|
|
1959
|
-
return this.fromWireType(
|
|
1980
|
+
return this.fromWireType(Ga[c >> 3]);
|
|
1960
1981
|
};
|
|
1961
1982
|
default:
|
|
1962
1983
|
throw new TypeError("Unknown float type: " + a);
|
|
1963
1984
|
}
|
|
1964
1985
|
}
|
|
1965
|
-
function
|
|
1986
|
+
function wd(a, b, c) {
|
|
1966
1987
|
switch(b) {
|
|
1967
1988
|
case 0:
|
|
1968
1989
|
return c ? function(d) {
|
|
@@ -1972,9 +1993,9 @@ function rd(a, b, c) {
|
|
|
1972
1993
|
};
|
|
1973
1994
|
case 1:
|
|
1974
1995
|
return c ? function(d) {
|
|
1975
|
-
return
|
|
1996
|
+
return Da[d >> 1];
|
|
1976
1997
|
} : function(d) {
|
|
1977
|
-
return
|
|
1998
|
+
return Ea[d >> 1];
|
|
1978
1999
|
};
|
|
1979
2000
|
case 2:
|
|
1980
2001
|
return c ? function(d) {
|
|
@@ -1986,25 +2007,25 @@ function rd(a, b, c) {
|
|
|
1986
2007
|
throw new TypeError("Unknown integer type: " + a);
|
|
1987
2008
|
}
|
|
1988
2009
|
}
|
|
1989
|
-
var
|
|
2010
|
+
var xd = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void 0, yd = (a, b) => {
|
|
1990
2011
|
var c = a >> 1;
|
|
1991
|
-
for (var d = c + b / 2; !(c >= d) &&
|
|
2012
|
+
for (var d = c + b / 2; !(c >= d) && Ea[c];) {
|
|
1992
2013
|
++c;
|
|
1993
2014
|
}
|
|
1994
2015
|
c <<= 1;
|
|
1995
|
-
if (32 < c - a &&
|
|
1996
|
-
return
|
|
2016
|
+
if (32 < c - a && xd) {
|
|
2017
|
+
return xd.decode(C.subarray(a, c));
|
|
1997
2018
|
}
|
|
1998
2019
|
c = "";
|
|
1999
2020
|
for (d = 0; !(d >= b / 2); ++d) {
|
|
2000
|
-
var e =
|
|
2021
|
+
var e = Da[a + 2 * d >> 1];
|
|
2001
2022
|
if (0 == e) {
|
|
2002
2023
|
break;
|
|
2003
2024
|
}
|
|
2004
2025
|
c += String.fromCharCode(e);
|
|
2005
2026
|
}
|
|
2006
2027
|
return c;
|
|
2007
|
-
},
|
|
2028
|
+
}, zd = (a, b, c) => {
|
|
2008
2029
|
void 0 === c && (c = 2147483647);
|
|
2009
2030
|
if (2 > c) {
|
|
2010
2031
|
return 0;
|
|
@@ -2013,11 +2034,11 @@ var sd = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void
|
|
|
2013
2034
|
var d = b;
|
|
2014
2035
|
c = c < 2 * a.length ? c / 2 : a.length;
|
|
2015
2036
|
for (var e = 0; e < c; ++e) {
|
|
2016
|
-
|
|
2037
|
+
Da[b >> 1] = a.charCodeAt(e), b += 2;
|
|
2017
2038
|
}
|
|
2018
|
-
|
|
2039
|
+
Da[b >> 1] = 0;
|
|
2019
2040
|
return b - d;
|
|
2020
|
-
},
|
|
2041
|
+
}, Ad = a => 2 * a.length, Bd = (a, b) => {
|
|
2021
2042
|
for (var c = 0, d = ""; !(c >= b / 4);) {
|
|
2022
2043
|
var e = F[a + 4 * c >> 2];
|
|
2023
2044
|
if (0 == e) {
|
|
@@ -2027,7 +2048,7 @@ var sd = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void
|
|
|
2027
2048
|
65536 <= e ? (e -= 65536, d += String.fromCharCode(55296 | e >> 10, 56320 | e & 1023)) : d += String.fromCharCode(e);
|
|
2028
2049
|
}
|
|
2029
2050
|
return d;
|
|
2030
|
-
},
|
|
2051
|
+
}, Cd = (a, b, c) => {
|
|
2031
2052
|
void 0 === c && (c = 2147483647);
|
|
2032
2053
|
if (4 > c) {
|
|
2033
2054
|
return 0;
|
|
@@ -2048,44 +2069,44 @@ var sd = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void
|
|
|
2048
2069
|
}
|
|
2049
2070
|
F[b >> 2] = 0;
|
|
2050
2071
|
return b - d;
|
|
2051
|
-
},
|
|
2072
|
+
}, Dd = a => {
|
|
2052
2073
|
for (var b = 0, c = 0; c < a.length; ++c) {
|
|
2053
2074
|
var d = a.charCodeAt(c);
|
|
2054
2075
|
55296 <= d && 57343 >= d && ++c;
|
|
2055
2076
|
b += 4;
|
|
2056
2077
|
}
|
|
2057
2078
|
return b;
|
|
2058
|
-
},
|
|
2059
|
-
function
|
|
2060
|
-
var b =
|
|
2079
|
+
}, Ed = {};
|
|
2080
|
+
function Fd(a) {
|
|
2081
|
+
var b = Ed[a];
|
|
2061
2082
|
return void 0 === b ? W(a) : b;
|
|
2062
2083
|
}
|
|
2063
|
-
var
|
|
2064
|
-
function
|
|
2065
|
-
var b =
|
|
2066
|
-
|
|
2084
|
+
var Gd = [];
|
|
2085
|
+
function Hd(a) {
|
|
2086
|
+
var b = Gd.length;
|
|
2087
|
+
Gd.push(a);
|
|
2067
2088
|
return b;
|
|
2068
2089
|
}
|
|
2069
|
-
function
|
|
2090
|
+
function Id(a, b) {
|
|
2070
2091
|
for (var c = Array(a), d = 0; d < a; ++d) {
|
|
2071
|
-
c[d] =
|
|
2092
|
+
c[d] = Fc(G[b + 4 * d >> 2], "parameter " + d);
|
|
2072
2093
|
}
|
|
2073
2094
|
return c;
|
|
2074
2095
|
}
|
|
2075
|
-
var
|
|
2076
|
-
if (!
|
|
2077
|
-
var a = {USER:"web_user", LOGNAME:"web_user", PATH:"/", PWD:"/", HOME:"/home/web_user", LANG:("object" == typeof navigator && navigator.languages && navigator.languages[0] || "C").replace("-", "_") + ".UTF-8", _:"./this.program"}, b;
|
|
2078
|
-
for (b in
|
|
2079
|
-
void 0 ===
|
|
2096
|
+
var Jd = [], Kd = [], Ld = {}, Nd = () => {
|
|
2097
|
+
if (!Md) {
|
|
2098
|
+
var a = {USER:"web_user", LOGNAME:"web_user", PATH:"/", PWD:"/", HOME:"/home/web_user", LANG:("object" == typeof navigator && navigator.languages && navigator.languages[0] || "C").replace("-", "_") + ".UTF-8", _:na || "./this.program"}, b;
|
|
2099
|
+
for (b in Ld) {
|
|
2100
|
+
void 0 === Ld[b] ? delete a[b] : a[b] = Ld[b];
|
|
2080
2101
|
}
|
|
2081
2102
|
var c = [];
|
|
2082
2103
|
for (b in a) {
|
|
2083
2104
|
c.push(`${b}=${a[b]}`);
|
|
2084
2105
|
}
|
|
2085
|
-
|
|
2106
|
+
Md = c;
|
|
2086
2107
|
}
|
|
2087
|
-
return
|
|
2088
|
-
},
|
|
2108
|
+
return Md;
|
|
2109
|
+
}, Md, Od = a => 0 === a % 4 && (0 !== a % 100 || 0 === a % 400), Pd = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Qd = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Rd = (a, b, c, d) => {
|
|
2089
2110
|
function e(k, t, r) {
|
|
2090
2111
|
for (k = "number" == typeof k ? k.toString() : k || ""; k.length < t;) {
|
|
2091
2112
|
k = r[0] + k;
|
|
@@ -2103,7 +2124,7 @@ var Ed = [], Fd = [], Gd = {}, Id = () => {
|
|
|
2103
2124
|
0 === (B = r(k.getFullYear() - t.getFullYear())) && 0 === (B = r(k.getMonth() - t.getMonth())) && (B = r(k.getDate() - t.getDate()));
|
|
2104
2125
|
return B;
|
|
2105
2126
|
}
|
|
2106
|
-
function
|
|
2127
|
+
function n(k) {
|
|
2107
2128
|
switch(k.getDay()) {
|
|
2108
2129
|
case 0:
|
|
2109
2130
|
return new Date(k.getFullYear() - 1, 11, 29);
|
|
@@ -2121,10 +2142,10 @@ var Ed = [], Fd = [], Gd = {}, Id = () => {
|
|
|
2121
2142
|
return new Date(k.getFullYear() - 1, 11, 30);
|
|
2122
2143
|
}
|
|
2123
2144
|
}
|
|
2124
|
-
function
|
|
2145
|
+
function p(k) {
|
|
2125
2146
|
var t = k.ca;
|
|
2126
2147
|
for (k = new Date((new Date(k.da + 1900, 0, 1)).getTime()); 0 < t;) {
|
|
2127
|
-
var r = k.getMonth(), B = (
|
|
2148
|
+
var r = k.getMonth(), B = (Od(k.getFullYear()) ? Pd : Qd)[r];
|
|
2128
2149
|
if (t > B - k.getDate()) {
|
|
2129
2150
|
t -= B - k.getDate() + 1, k.setDate(1), 11 > r ? k.setMonth(r + 1) : (k.setMonth(0), k.setFullYear(k.getFullYear() + 1));
|
|
2130
2151
|
} else {
|
|
@@ -2133,35 +2154,35 @@ var Ed = [], Fd = [], Gd = {}, Id = () => {
|
|
|
2133
2154
|
}
|
|
2134
2155
|
}
|
|
2135
2156
|
r = new Date(k.getFullYear() + 1, 0, 4);
|
|
2136
|
-
t =
|
|
2137
|
-
r =
|
|
2157
|
+
t = n(new Date(k.getFullYear(), 0, 4));
|
|
2158
|
+
r = n(r);
|
|
2138
2159
|
return 0 >= g(t, k) ? 0 >= g(r, k) ? k.getFullYear() + 1 : k.getFullYear() : k.getFullYear() - 1;
|
|
2139
2160
|
}
|
|
2140
2161
|
var l = F[d + 40 >> 2];
|
|
2141
|
-
d = {Ec:F[d >> 2], Dc:F[d + 4 >> 2], Fa:F[d + 8 >> 2], Ta:F[d + 12 >> 2], Ga:F[d + 16 >> 2], da:F[d + 20 >> 2], S:F[d + 24 >> 2], ca:F[d + 28 >> 2], Rc:F[d + 32 >> 2], Cc:F[d + 36 >> 2], Fc:l ? l ?
|
|
2142
|
-
c = c ?
|
|
2162
|
+
d = {Ec:F[d >> 2], Dc:F[d + 4 >> 2], Fa:F[d + 8 >> 2], Ta:F[d + 12 >> 2], Ga:F[d + 16 >> 2], da:F[d + 20 >> 2], S:F[d + 24 >> 2], ca:F[d + 28 >> 2], Rc:F[d + 32 >> 2], Cc:F[d + 36 >> 2], Fc:l ? l ? lb(C, l) : "" : ""};
|
|
2163
|
+
c = c ? lb(C, c) : "";
|
|
2143
2164
|
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",};
|
|
2144
2165
|
for (var u in l) {
|
|
2145
2166
|
c = c.replace(new RegExp(u, "g"), l[u]);
|
|
2146
2167
|
}
|
|
2147
2168
|
var v = "Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "), y = "January February March April May June July August September October November December".split(" ");
|
|
2148
|
-
l = {"%a":k => v[k.S].substring(0, 3), "%A":k => v[k.S], "%b":k => y[k.Ga].substring(0, 3), "%B":k => y[k.Ga], "%C":k => f((k.da + 1900) / 100 | 0, 2), "%d":k => f(k.Ta, 2), "%e":k => e(k.Ta, 2, " "), "%g":k =>
|
|
2169
|
+
l = {"%a":k => v[k.S].substring(0, 3), "%A":k => v[k.S], "%b":k => y[k.Ga].substring(0, 3), "%B":k => y[k.Ga], "%C":k => f((k.da + 1900) / 100 | 0, 2), "%d":k => f(k.Ta, 2), "%e":k => e(k.Ta, 2, " "), "%g":k => p(k).toString().substring(2), "%G":k => p(k), "%H":k => f(k.Fa, 2), "%I":k => {
|
|
2149
2170
|
k = k.Fa;
|
|
2150
2171
|
0 == k ? k = 12 : 12 < k && (k -= 12);
|
|
2151
2172
|
return f(k, 2);
|
|
2152
2173
|
}, "%j":k => {
|
|
2153
|
-
for (var t = 0, r = 0; r <= k.Ga - 1; t += (
|
|
2174
|
+
for (var t = 0, r = 0; r <= k.Ga - 1; t += (Od(k.da + 1900) ? Pd : Qd)[r++]) {
|
|
2154
2175
|
}
|
|
2155
2176
|
return f(k.Ta + t, 3);
|
|
2156
2177
|
}, "%m":k => f(k.Ga + 1, 2), "%M":k => f(k.Dc, 2), "%n":() => "\n", "%p":k => 0 <= k.Fa && 12 > k.Fa ? "AM" : "PM", "%S":k => f(k.Ec, 2), "%t":() => "\t", "%u":k => k.S || 7, "%U":k => f(Math.floor((k.ca + 7 - k.S) / 7), 2), "%V":k => {
|
|
2157
2178
|
var t = Math.floor((k.ca + 7 - (k.S + 6) % 7) / 7);
|
|
2158
2179
|
2 >= (k.S + 371 - k.ca - 2) % 7 && t++;
|
|
2159
2180
|
if (t) {
|
|
2160
|
-
53 == t && (r = (k.S + 371 - k.ca) % 7, 4 == r || 3 == r &&
|
|
2181
|
+
53 == t && (r = (k.S + 371 - k.ca) % 7, 4 == r || 3 == r && Od(k.da) || (t = 1));
|
|
2161
2182
|
} else {
|
|
2162
2183
|
t = 52;
|
|
2163
2184
|
var r = (k.S + 7 - k.ca - 1) % 7;
|
|
2164
|
-
(4 == r || 5 == r &&
|
|
2185
|
+
(4 == r || 5 == r && Od(k.da % 400 - 1)) && t++;
|
|
2165
2186
|
}
|
|
2166
2187
|
return f(t, 2);
|
|
2167
2188
|
}, "%w":k => k.S, "%W":k => f(Math.floor((k.ca + 7 - (k.S + 6) % 7) / 7), 2), "%y":k => (k.da + 1900).toString().substring(2), "%Y":k => k.da + 1900, "%z":k => {
|
|
@@ -2175,26 +2196,26 @@ var Ed = [], Fd = [], Gd = {}, Id = () => {
|
|
|
2175
2196
|
c.includes(u) && (c = c.replace(new RegExp(u, "g"), l[u](d)));
|
|
2176
2197
|
}
|
|
2177
2198
|
c = c.replace(/\0\0/g, "%");
|
|
2178
|
-
u =
|
|
2199
|
+
u = pb(c, !1);
|
|
2179
2200
|
if (u.length > b) {
|
|
2180
2201
|
return 0;
|
|
2181
2202
|
}
|
|
2182
2203
|
A.set(u, a);
|
|
2183
2204
|
return u.length - 1;
|
|
2184
2205
|
};
|
|
2185
|
-
function
|
|
2206
|
+
function Nb(a, b, c, d) {
|
|
2186
2207
|
a || (a = this);
|
|
2187
2208
|
this.parent = a;
|
|
2188
2209
|
this.V = a.V;
|
|
2189
2210
|
this.xa = null;
|
|
2190
|
-
this.id =
|
|
2211
|
+
this.id = Fb++;
|
|
2191
2212
|
this.name = b;
|
|
2192
2213
|
this.mode = c;
|
|
2193
2214
|
this.j = {};
|
|
2194
2215
|
this.m = {};
|
|
2195
2216
|
this.ma = d;
|
|
2196
2217
|
}
|
|
2197
|
-
Object.defineProperties(
|
|
2218
|
+
Object.defineProperties(Nb.prototype, {read:{get:function() {
|
|
2198
2219
|
return 365 === (this.mode & 365);
|
|
2199
2220
|
}, set:function(a) {
|
|
2200
2221
|
a ? this.mode |= 365 : this.mode &= -366;
|
|
@@ -2203,44 +2224,44 @@ Object.defineProperties(Ib.prototype, {read:{get:function() {
|
|
|
2203
2224
|
}, set:function(a) {
|
|
2204
2225
|
a ? this.mode |= 146 : this.mode &= -147;
|
|
2205
2226
|
}}});
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2227
|
+
fc();
|
|
2228
|
+
Gb = Array(4096);
|
|
2229
|
+
Ub(T, "/");
|
|
2230
|
+
Vb("/tmp", 16895, 0);
|
|
2231
|
+
Vb("/home", 16895, 0);
|
|
2232
|
+
Vb("/home/web_user", 16895, 0);
|
|
2212
2233
|
(() => {
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2234
|
+
Vb("/dev", 16895, 0);
|
|
2235
|
+
sb(259, {read:() => 0, write:(d, e, f, g) => g,});
|
|
2236
|
+
Wb("/dev/null", 259);
|
|
2237
|
+
rb(1280, ub);
|
|
2238
|
+
rb(1536, vb);
|
|
2239
|
+
Wb("/dev/tty", 1280);
|
|
2240
|
+
Wb("/dev/tty1", 1536);
|
|
2220
2241
|
var a = new Uint8Array(1024), b = 0, c = () => {
|
|
2221
|
-
0 === b && (b =
|
|
2242
|
+
0 === b && (b = ib(a).byteLength);
|
|
2222
2243
|
return a[--b];
|
|
2223
2244
|
};
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2245
|
+
ic("random", c);
|
|
2246
|
+
ic("urandom", c);
|
|
2247
|
+
Vb("/dev/shm", 16895, 0);
|
|
2248
|
+
Vb("/dev/shm/tmp", 16895, 0);
|
|
2228
2249
|
})();
|
|
2229
2250
|
(() => {
|
|
2230
|
-
|
|
2231
|
-
var a =
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
var b =
|
|
2251
|
+
Vb("/proc", 16895, 0);
|
|
2252
|
+
var a = Vb("/proc/self", 16895, 0);
|
|
2253
|
+
Vb("/proc/self/fd", 16895, 0);
|
|
2254
|
+
Ub({V:() => {
|
|
2255
|
+
var b = yb(a, "fd", 16895, 73);
|
|
2235
2256
|
b.j = {ka:(c, d) => {
|
|
2236
|
-
var e =
|
|
2257
|
+
var e = Rb(+d);
|
|
2237
2258
|
c = {parent:null, V:{nb:"fake"}, j:{na:() => e.path},};
|
|
2238
2259
|
return c.parent = c;
|
|
2239
2260
|
}};
|
|
2240
2261
|
return b;
|
|
2241
2262
|
}}, "/proc/self/fd");
|
|
2242
2263
|
})();
|
|
2243
|
-
Object.assign(
|
|
2264
|
+
Object.assign(oc.prototype, {get(a) {
|
|
2244
2265
|
return this.M[a];
|
|
2245
2266
|
}, has(a) {
|
|
2246
2267
|
return void 0 !== this.M[a];
|
|
@@ -2252,48 +2273,48 @@ Object.assign(jc.prototype, {get(a) {
|
|
|
2252
2273
|
this.M[a] = void 0;
|
|
2253
2274
|
this.hb.push(a);
|
|
2254
2275
|
}});
|
|
2255
|
-
|
|
2276
|
+
qc = m.BindingError = class extends Error {
|
|
2256
2277
|
constructor(a) {
|
|
2257
2278
|
super(a);
|
|
2258
2279
|
this.name = "BindingError";
|
|
2259
2280
|
}
|
|
2260
2281
|
};
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
for (var a = 0, b =
|
|
2265
|
-
void 0 !==
|
|
2282
|
+
pc.M.push({value:void 0}, {value:null}, {value:!0}, {value:!1},);
|
|
2283
|
+
pc.h = pc.M.length;
|
|
2284
|
+
m.count_emval_handles = function() {
|
|
2285
|
+
for (var a = 0, b = pc.h; b < pc.M.length; ++b) {
|
|
2286
|
+
void 0 !== pc.M[b] && ++a;
|
|
2266
2287
|
}
|
|
2267
2288
|
return a;
|
|
2268
2289
|
};
|
|
2269
|
-
|
|
2270
|
-
for (var
|
|
2271
|
-
|
|
2290
|
+
uc = m.PureVirtualError = tc("PureVirtualError");
|
|
2291
|
+
for (var Sd = Array(256), Td = 0; 256 > Td; ++Td) {
|
|
2292
|
+
Sd[Td] = String.fromCharCode(Td);
|
|
2272
2293
|
}
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
return Object.keys(
|
|
2294
|
+
vc = Sd;
|
|
2295
|
+
m.getInheritedInstanceCount = function() {
|
|
2296
|
+
return Object.keys(zc).length;
|
|
2276
2297
|
};
|
|
2277
|
-
|
|
2298
|
+
m.getLiveInheritedInstances = function() {
|
|
2278
2299
|
var a = [], b;
|
|
2279
|
-
for (b in
|
|
2280
|
-
|
|
2300
|
+
for (b in zc) {
|
|
2301
|
+
zc.hasOwnProperty(b) && a.push(zc[b]);
|
|
2281
2302
|
}
|
|
2282
2303
|
return a;
|
|
2283
2304
|
};
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2305
|
+
m.flushPendingDeletes = xc;
|
|
2306
|
+
m.setDelayFunction = function(a) {
|
|
2307
|
+
yc = a;
|
|
2308
|
+
wc.length && yc && yc(xc);
|
|
2288
2309
|
};
|
|
2289
|
-
|
|
2310
|
+
Mc = m.InternalError = class extends Error {
|
|
2290
2311
|
constructor(a) {
|
|
2291
2312
|
super(a);
|
|
2292
2313
|
this.name = "InternalError";
|
|
2293
2314
|
}
|
|
2294
2315
|
};
|
|
2295
|
-
|
|
2296
|
-
if (!(this instanceof
|
|
2316
|
+
Zc.prototype.isAliasOf = function(a) {
|
|
2317
|
+
if (!(this instanceof Zc && a instanceof Zc)) {
|
|
2297
2318
|
return !1;
|
|
2298
2319
|
}
|
|
2299
2320
|
var b = this.g.u.i, c = this.g.o, d = a.g.u.i;
|
|
@@ -2305,58 +2326,58 @@ Uc.prototype.isAliasOf = function(a) {
|
|
|
2305
2326
|
}
|
|
2306
2327
|
return b === d && c === a;
|
|
2307
2328
|
};
|
|
2308
|
-
|
|
2309
|
-
this.g.o ||
|
|
2329
|
+
Zc.prototype.clone = function() {
|
|
2330
|
+
this.g.o || Yc(this);
|
|
2310
2331
|
if (this.g.ia) {
|
|
2311
2332
|
return this.g.count.value += 1, this;
|
|
2312
2333
|
}
|
|
2313
|
-
var a =
|
|
2334
|
+
var a = Pc, b = Object, c = b.create, d = Object.getPrototypeOf(this), e = this.g;
|
|
2314
2335
|
a = a(c.call(b, d, {g:{value:{count:e.count, fa:e.fa, ia:e.ia, o:e.o, u:e.u, G:e.G, L:e.L,},}}));
|
|
2315
2336
|
a.g.count.value += 1;
|
|
2316
2337
|
a.g.fa = !1;
|
|
2317
2338
|
return a;
|
|
2318
2339
|
};
|
|
2319
|
-
|
|
2320
|
-
this.g.o ||
|
|
2340
|
+
Zc.prototype["delete"] = function() {
|
|
2341
|
+
this.g.o || Yc(this);
|
|
2321
2342
|
this.g.fa && !this.g.ia && U("Object already scheduled for deletion");
|
|
2322
|
-
|
|
2323
|
-
|
|
2343
|
+
Gc(this);
|
|
2344
|
+
Ic(this.g);
|
|
2324
2345
|
this.g.ia || (this.g.G = void 0, this.g.o = void 0);
|
|
2325
2346
|
};
|
|
2326
|
-
|
|
2347
|
+
Zc.prototype.isDeleted = function() {
|
|
2327
2348
|
return !this.g.o;
|
|
2328
2349
|
};
|
|
2329
|
-
|
|
2330
|
-
this.g.o ||
|
|
2350
|
+
Zc.prototype.deleteLater = function() {
|
|
2351
|
+
this.g.o || Yc(this);
|
|
2331
2352
|
this.g.fa && !this.g.ia && U("Object already scheduled for deletion");
|
|
2332
|
-
|
|
2333
|
-
1 ===
|
|
2353
|
+
wc.push(this);
|
|
2354
|
+
1 === wc.length && yc && yc(xc);
|
|
2334
2355
|
this.g.fa = !0;
|
|
2335
2356
|
return this;
|
|
2336
2357
|
};
|
|
2337
|
-
|
|
2358
|
+
hd.prototype.$b = function(a) {
|
|
2338
2359
|
this.sb && (a = this.sb(a));
|
|
2339
2360
|
return a;
|
|
2340
2361
|
};
|
|
2341
|
-
|
|
2362
|
+
hd.prototype.bb = function(a) {
|
|
2342
2363
|
this.X && this.X(a);
|
|
2343
2364
|
};
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2365
|
+
hd.prototype.argPackAdvance = 8;
|
|
2366
|
+
hd.prototype.readValueFromPointer = Sc;
|
|
2367
|
+
hd.prototype.deleteObject = function(a) {
|
|
2347
2368
|
if (null !== a) {
|
|
2348
2369
|
a["delete"]();
|
|
2349
2370
|
}
|
|
2350
2371
|
};
|
|
2351
|
-
|
|
2372
|
+
hd.prototype.fromWireType = function(a) {
|
|
2352
2373
|
function b() {
|
|
2353
|
-
return this.va ?
|
|
2374
|
+
return this.va ? Oc(this.i.O, {u:this.vc, o:c, L:this, G:a,}) : Oc(this.i.O, {u:this, o:a,});
|
|
2354
2375
|
}
|
|
2355
2376
|
var c = this.$b(a);
|
|
2356
2377
|
if (!c) {
|
|
2357
2378
|
return this.bb(a), null;
|
|
2358
2379
|
}
|
|
2359
|
-
var d =
|
|
2380
|
+
var d = Lc(this.i, c);
|
|
2360
2381
|
if (void 0 !== d) {
|
|
2361
2382
|
if (0 === d.g.count.value) {
|
|
2362
2383
|
return d.g.o = c, d.g.G = a, d.clone();
|
|
@@ -2366,32 +2387,32 @@ cd.prototype.fromWireType = function(a) {
|
|
|
2366
2387
|
return d;
|
|
2367
2388
|
}
|
|
2368
2389
|
d = this.i.Zb(c);
|
|
2369
|
-
d =
|
|
2390
|
+
d = Kc[d];
|
|
2370
2391
|
if (!d) {
|
|
2371
2392
|
return b.call(this);
|
|
2372
2393
|
}
|
|
2373
2394
|
d = this.ua ? d.Nb : d.pointerType;
|
|
2374
|
-
var e =
|
|
2375
|
-
return null === e ? b.call(this) : this.va ?
|
|
2395
|
+
var e = Jc(c, this.i, d.i);
|
|
2396
|
+
return null === e ? b.call(this) : this.va ? Oc(d.i.O, {u:d, o:e, L:this, G:a,}) : Oc(d.i.O, {u:d, o:e,});
|
|
2376
2397
|
};
|
|
2377
|
-
|
|
2378
|
-
var
|
|
2379
|
-
|
|
2398
|
+
nd = m.UnboundTypeError = tc("UnboundTypeError");
|
|
2399
|
+
var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
2400
|
+
kc = c;
|
|
2380
2401
|
try {
|
|
2381
|
-
var d =
|
|
2402
|
+
var d = Rb(a);
|
|
2382
2403
|
switch(b) {
|
|
2383
2404
|
case 0:
|
|
2384
|
-
var e =
|
|
2385
|
-
return 0 > e ? -28 :
|
|
2405
|
+
var e = lc();
|
|
2406
|
+
return 0 > e ? -28 : Tb(d, e).Z;
|
|
2386
2407
|
case 1:
|
|
2387
2408
|
case 2:
|
|
2388
2409
|
return 0;
|
|
2389
2410
|
case 3:
|
|
2390
2411
|
return d.flags;
|
|
2391
2412
|
case 4:
|
|
2392
|
-
return e =
|
|
2413
|
+
return e = lc(), d.flags |= e, 0;
|
|
2393
2414
|
case 5:
|
|
2394
|
-
return e =
|
|
2415
|
+
return e = lc(), Da[e + 0 >> 1] = 2, 0;
|
|
2395
2416
|
case 6:
|
|
2396
2417
|
case 7:
|
|
2397
2418
|
return 0;
|
|
@@ -2399,12 +2420,12 @@ var Rd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2399
2420
|
case 8:
|
|
2400
2421
|
return -28;
|
|
2401
2422
|
case 9:
|
|
2402
|
-
return F[
|
|
2423
|
+
return F[Ud() >> 2] = 28, -1;
|
|
2403
2424
|
default:
|
|
2404
2425
|
return -28;
|
|
2405
2426
|
}
|
|
2406
2427
|
} catch (f) {
|
|
2407
|
-
if ("undefined" == typeof
|
|
2428
|
+
if ("undefined" == typeof jc || "ErrnoError" !== f.name) {
|
|
2408
2429
|
throw f;
|
|
2409
2430
|
}
|
|
2410
2431
|
return -f.Y;
|
|
@@ -2412,9 +2433,9 @@ var Rd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2412
2433
|
}, __syscall_fstat64:function(a, b) {
|
|
2413
2434
|
try {
|
|
2414
2435
|
a: {
|
|
2415
|
-
var c =
|
|
2436
|
+
var c = Rb(a).path;
|
|
2416
2437
|
try {
|
|
2417
|
-
var d =
|
|
2438
|
+
var d = Jb(c, {Ma:!0}).node;
|
|
2418
2439
|
if (!d) {
|
|
2419
2440
|
throw new Q(44);
|
|
2420
2441
|
}
|
|
@@ -2423,7 +2444,7 @@ var Rd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2423
2444
|
}
|
|
2424
2445
|
var e = d.j.N(d);
|
|
2425
2446
|
} catch (l) {
|
|
2426
|
-
if (l && l.node &&
|
|
2447
|
+
if (l && l.node && eb(c) !== eb(Kb(l.node))) {
|
|
2427
2448
|
var f = -54;
|
|
2428
2449
|
break a;
|
|
2429
2450
|
}
|
|
@@ -2440,19 +2461,19 @@ var Rd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2440
2461
|
F[b + 28 >> 2] = P[1];
|
|
2441
2462
|
F[b + 32 >> 2] = 4096;
|
|
2442
2463
|
F[b + 36 >> 2] = e.Mb;
|
|
2443
|
-
var g = e.Kb.getTime(),
|
|
2464
|
+
var g = e.Kb.getTime(), n = e.rc.getTime(), p = e.Pb.getTime();
|
|
2444
2465
|
P = [Math.floor(g / 1000) >>> 0, (N = Math.floor(g / 1000), 1.0 <= +Math.abs(N) ? 0.0 < N ? +Math.floor(N / 4294967296.0) >>> 0 : ~~+Math.ceil((N - +(~~N >>> 0)) / 4294967296.0) >>> 0 : 0)];
|
|
2445
2466
|
F[b + 40 >> 2] = P[0];
|
|
2446
2467
|
F[b + 44 >> 2] = P[1];
|
|
2447
2468
|
G[b + 48 >> 2] = g % 1000 * 1000;
|
|
2448
|
-
P = [Math.floor(
|
|
2469
|
+
P = [Math.floor(n / 1000) >>> 0, (N = Math.floor(n / 1000), 1.0 <= +Math.abs(N) ? 0.0 < N ? +Math.floor(N / 4294967296.0) >>> 0 : ~~+Math.ceil((N - +(~~N >>> 0)) / 4294967296.0) >>> 0 : 0)];
|
|
2449
2470
|
F[b + 56 >> 2] = P[0];
|
|
2450
2471
|
F[b + 60 >> 2] = P[1];
|
|
2451
|
-
G[b + 64 >> 2] =
|
|
2452
|
-
P = [Math.floor(
|
|
2472
|
+
G[b + 64 >> 2] = n % 1000 * 1000;
|
|
2473
|
+
P = [Math.floor(p / 1000) >>> 0, (N = Math.floor(p / 1000), 1.0 <= +Math.abs(N) ? 0.0 < N ? +Math.floor(N / 4294967296.0) >>> 0 : ~~+Math.ceil((N - +(~~N >>> 0)) / 4294967296.0) >>> 0 : 0)];
|
|
2453
2474
|
F[b + 72 >> 2] = P[0];
|
|
2454
2475
|
F[b + 76 >> 2] = P[1];
|
|
2455
|
-
G[b + 80 >> 2] =
|
|
2476
|
+
G[b + 80 >> 2] = p % 1000 * 1000;
|
|
2456
2477
|
P = [e.kb >>> 0, (N = e.kb, 1.0 <= +Math.abs(N) ? 0.0 < N ? +Math.floor(N / 4294967296.0) >>> 0 : ~~+Math.ceil((N - +(~~N >>> 0)) / 4294967296.0) >>> 0 : 0)];
|
|
2457
2478
|
F[b + 88 >> 2] = P[0];
|
|
2458
2479
|
F[b + 92 >> 2] = P[1];
|
|
@@ -2460,15 +2481,15 @@ var Rd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2460
2481
|
}
|
|
2461
2482
|
return f;
|
|
2462
2483
|
} catch (l) {
|
|
2463
|
-
if ("undefined" == typeof
|
|
2484
|
+
if ("undefined" == typeof jc || "ErrnoError" !== l.name) {
|
|
2464
2485
|
throw l;
|
|
2465
2486
|
}
|
|
2466
2487
|
return -l.Y;
|
|
2467
2488
|
}
|
|
2468
2489
|
}, __syscall_ioctl:function(a, b, c) {
|
|
2469
|
-
|
|
2490
|
+
kc = c;
|
|
2470
2491
|
try {
|
|
2471
|
-
var d =
|
|
2492
|
+
var d = Rb(a);
|
|
2472
2493
|
switch(b) {
|
|
2473
2494
|
case 21509:
|
|
2474
2495
|
return d.s ? 0 : -59;
|
|
@@ -2478,7 +2499,7 @@ var Rd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2478
2499
|
}
|
|
2479
2500
|
if (d.s.W.ic) {
|
|
2480
2501
|
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,];
|
|
2481
|
-
var e =
|
|
2502
|
+
var e = lc();
|
|
2482
2503
|
F[e >> 2] = 25856;
|
|
2483
2504
|
F[e + 4 >> 2] = 5;
|
|
2484
2505
|
F[e + 8 >> 2] = 191;
|
|
@@ -2499,7 +2520,7 @@ var Rd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2499
2520
|
return -59;
|
|
2500
2521
|
}
|
|
2501
2522
|
if (d.s.W.jc) {
|
|
2502
|
-
for (e =
|
|
2523
|
+
for (e = lc(), b = [], f = 0; 32 > f; f++) {
|
|
2503
2524
|
b.push(A[e + f + 17 >> 0]);
|
|
2504
2525
|
}
|
|
2505
2526
|
}
|
|
@@ -2508,12 +2529,12 @@ var Rd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2508
2529
|
if (!d.s) {
|
|
2509
2530
|
return -59;
|
|
2510
2531
|
}
|
|
2511
|
-
e =
|
|
2532
|
+
e = lc();
|
|
2512
2533
|
return F[e >> 2] = 0;
|
|
2513
2534
|
case 21520:
|
|
2514
2535
|
return d.s ? -28 : -59;
|
|
2515
2536
|
case 21531:
|
|
2516
|
-
e =
|
|
2537
|
+
e = lc();
|
|
2517
2538
|
if (!d.m.hc) {
|
|
2518
2539
|
throw new Q(59);
|
|
2519
2540
|
}
|
|
@@ -2522,7 +2543,7 @@ var Rd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2522
2543
|
if (!d.s) {
|
|
2523
2544
|
return -59;
|
|
2524
2545
|
}
|
|
2525
|
-
d.s.W.kc && (f = [24, 80], e =
|
|
2546
|
+
d.s.W.kc && (f = [24, 80], e = lc(), Da[e >> 1] = f[0], Da[e + 2 >> 1] = f[1]);
|
|
2526
2547
|
return 0;
|
|
2527
2548
|
case 21524:
|
|
2528
2549
|
return d.s ? 0 : -59;
|
|
@@ -2532,42 +2553,42 @@ var Rd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2532
2553
|
return -28;
|
|
2533
2554
|
}
|
|
2534
2555
|
} catch (g) {
|
|
2535
|
-
if ("undefined" == typeof
|
|
2556
|
+
if ("undefined" == typeof jc || "ErrnoError" !== g.name) {
|
|
2536
2557
|
throw g;
|
|
2537
2558
|
}
|
|
2538
2559
|
return -g.Y;
|
|
2539
2560
|
}
|
|
2540
2561
|
}, __syscall_openat:function(a, b, c, d) {
|
|
2541
|
-
|
|
2562
|
+
kc = d;
|
|
2542
2563
|
try {
|
|
2543
|
-
b = b ?
|
|
2564
|
+
b = b ? lb(C, b) : "";
|
|
2544
2565
|
var e = b;
|
|
2545
2566
|
if ("/" === e.charAt(0)) {
|
|
2546
2567
|
b = e;
|
|
2547
2568
|
} else {
|
|
2548
|
-
var f = -100 === a ? "/" :
|
|
2569
|
+
var f = -100 === a ? "/" : Rb(a).path;
|
|
2549
2570
|
if (0 == e.length) {
|
|
2550
2571
|
throw new Q(44);
|
|
2551
2572
|
}
|
|
2552
|
-
b =
|
|
2573
|
+
b = eb(f + "/" + e);
|
|
2553
2574
|
}
|
|
2554
|
-
var g = d ?
|
|
2555
|
-
return
|
|
2556
|
-
} catch (
|
|
2557
|
-
if ("undefined" == typeof
|
|
2558
|
-
throw
|
|
2575
|
+
var g = d ? lc() : 0;
|
|
2576
|
+
return dc(b, c, g).Z;
|
|
2577
|
+
} catch (n) {
|
|
2578
|
+
if ("undefined" == typeof jc || "ErrnoError" !== n.name) {
|
|
2579
|
+
throw n;
|
|
2559
2580
|
}
|
|
2560
|
-
return -
|
|
2581
|
+
return -n.Y;
|
|
2561
2582
|
}
|
|
2562
2583
|
}, _embind_create_inheriting_constructor:function(a, b, c) {
|
|
2563
2584
|
a = W(a);
|
|
2564
|
-
b =
|
|
2565
|
-
c =
|
|
2566
|
-
var d = [].slice, e = b.i, f = e.O, g = e.A.O,
|
|
2567
|
-
a =
|
|
2585
|
+
b = Fc(b, "wrapper");
|
|
2586
|
+
c = rc(c);
|
|
2587
|
+
var d = [].slice, e = b.i, f = e.O, g = e.A.O, n = e.A.constructor;
|
|
2588
|
+
a = nc(a, function() {
|
|
2568
2589
|
e.A.rb.forEach(function(l) {
|
|
2569
2590
|
if (this[l] === g[l]) {
|
|
2570
|
-
throw new
|
|
2591
|
+
throw new uc(`Pure virtual function ${l} must be implemented in JavaScript`);
|
|
2571
2592
|
}
|
|
2572
2593
|
}.bind(this));
|
|
2573
2594
|
Object.defineProperty(this, "__parent", {value:f});
|
|
@@ -2575,93 +2596,93 @@ var Rd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2575
2596
|
});
|
|
2576
2597
|
f.__construct = function() {
|
|
2577
2598
|
this === f && U("Pass correct 'this' to __construct");
|
|
2578
|
-
var l =
|
|
2579
|
-
|
|
2599
|
+
var l = n.implement.apply(void 0, [this].concat(d.call(arguments)));
|
|
2600
|
+
Gc(l);
|
|
2580
2601
|
var u = l.g;
|
|
2581
2602
|
l.notifyOnDestruction();
|
|
2582
2603
|
u.ia = !0;
|
|
2583
2604
|
Object.defineProperties(this, {g:{value:u}});
|
|
2584
|
-
|
|
2605
|
+
Pc(this);
|
|
2585
2606
|
l = u.o;
|
|
2586
|
-
l =
|
|
2587
|
-
|
|
2607
|
+
l = Ac(e, l);
|
|
2608
|
+
zc.hasOwnProperty(l) ? U(`Tried to register registered instance: ${l}`) : zc[l] = this;
|
|
2588
2609
|
};
|
|
2589
2610
|
f.__destruct = function() {
|
|
2590
2611
|
this === f && U("Pass correct 'this' to __destruct");
|
|
2591
|
-
|
|
2612
|
+
Gc(this);
|
|
2592
2613
|
var l = this.g.o;
|
|
2593
|
-
l =
|
|
2594
|
-
|
|
2614
|
+
l = Ac(e, l);
|
|
2615
|
+
zc.hasOwnProperty(l) ? delete zc[l] : U(`Tried to unregister unregistered instance: ${l}`);
|
|
2595
2616
|
};
|
|
2596
2617
|
a.prototype = Object.create(f);
|
|
2597
|
-
for (var
|
|
2598
|
-
a.prototype[
|
|
2618
|
+
for (var p in c) {
|
|
2619
|
+
a.prototype[p] = c[p];
|
|
2599
2620
|
}
|
|
2600
|
-
return
|
|
2621
|
+
return sc(a);
|
|
2601
2622
|
}, _embind_finalize_value_object:function(a) {
|
|
2602
|
-
var b =
|
|
2603
|
-
delete
|
|
2623
|
+
var b = Qc[a];
|
|
2624
|
+
delete Qc[a];
|
|
2604
2625
|
var c = b.Qa, d = b.X, e = b.fb, f = e.map(g => g.cc).concat(e.map(g => g.zc));
|
|
2605
2626
|
X([a], f, g => {
|
|
2606
|
-
var
|
|
2607
|
-
e.forEach((
|
|
2608
|
-
var u = g[l], v =
|
|
2609
|
-
|
|
2627
|
+
var n = {};
|
|
2628
|
+
e.forEach((p, l) => {
|
|
2629
|
+
var u = g[l], v = p.ac, y = p.bc, k = g[l + e.length], t = p.yc, r = p.Ac;
|
|
2630
|
+
n[p.Xb] = {read:B => u.fromWireType(v(y, B)), write:(B, E) => {
|
|
2610
2631
|
var w = [];
|
|
2611
2632
|
t(r, B, k.toWireType(w, E));
|
|
2612
|
-
|
|
2633
|
+
Rc(w);
|
|
2613
2634
|
}};
|
|
2614
2635
|
});
|
|
2615
|
-
return [{name:b.name, fromWireType:function(
|
|
2636
|
+
return [{name:b.name, fromWireType:function(p) {
|
|
2616
2637
|
var l = {}, u;
|
|
2617
|
-
for (u in
|
|
2618
|
-
l[u] =
|
|
2638
|
+
for (u in n) {
|
|
2639
|
+
l[u] = n[u].read(p);
|
|
2619
2640
|
}
|
|
2620
|
-
d(
|
|
2641
|
+
d(p);
|
|
2621
2642
|
return l;
|
|
2622
|
-
}, toWireType:function(
|
|
2623
|
-
for (var u in
|
|
2643
|
+
}, toWireType:function(p, l) {
|
|
2644
|
+
for (var u in n) {
|
|
2624
2645
|
if (!(u in l)) {
|
|
2625
2646
|
throw new TypeError(`Missing field: "${u}"`);
|
|
2626
2647
|
}
|
|
2627
2648
|
}
|
|
2628
2649
|
var v = c();
|
|
2629
|
-
for (u in
|
|
2630
|
-
|
|
2650
|
+
for (u in n) {
|
|
2651
|
+
n[u].write(v, l[u]);
|
|
2631
2652
|
}
|
|
2632
|
-
null !==
|
|
2653
|
+
null !== p && p.push(d, v);
|
|
2633
2654
|
return v;
|
|
2634
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2655
|
+
}, argPackAdvance:8, readValueFromPointer:Sc, K:d,}];
|
|
2635
2656
|
});
|
|
2636
2657
|
}, _embind_register_bigint:function() {
|
|
2637
2658
|
}, _embind_register_bool:function(a, b, c, d, e) {
|
|
2638
|
-
var f =
|
|
2659
|
+
var f = Wc(c);
|
|
2639
2660
|
b = W(b);
|
|
2640
|
-
|
|
2661
|
+
Vc(a, {name:b, fromWireType:function(g) {
|
|
2641
2662
|
return !!g;
|
|
2642
|
-
}, toWireType:function(g,
|
|
2643
|
-
return
|
|
2663
|
+
}, toWireType:function(g, n) {
|
|
2664
|
+
return n ? d : e;
|
|
2644
2665
|
}, argPackAdvance:8, readValueFromPointer:function(g) {
|
|
2645
2666
|
if (1 === c) {
|
|
2646
|
-
var
|
|
2667
|
+
var n = A;
|
|
2647
2668
|
} else if (2 === c) {
|
|
2648
|
-
|
|
2669
|
+
n = Da;
|
|
2649
2670
|
} else if (4 === c) {
|
|
2650
|
-
|
|
2671
|
+
n = F;
|
|
2651
2672
|
} else {
|
|
2652
2673
|
throw new TypeError("Unknown boolean type size: " + b);
|
|
2653
2674
|
}
|
|
2654
|
-
return this.fromWireType(
|
|
2675
|
+
return this.fromWireType(n[g >> f]);
|
|
2655
2676
|
}, K:null,});
|
|
2656
|
-
}, _embind_register_class:function(a, b, c, d, e, f, g,
|
|
2677
|
+
}, _embind_register_class:function(a, b, c, d, e, f, g, n, p, l, u, v, y) {
|
|
2657
2678
|
u = W(u);
|
|
2658
2679
|
f = Y(e, f);
|
|
2659
|
-
|
|
2660
|
-
l && (l = Y(
|
|
2680
|
+
n && (n = Y(g, n));
|
|
2681
|
+
l && (l = Y(p, l));
|
|
2661
2682
|
y = Y(v, y);
|
|
2662
|
-
var k =
|
|
2663
|
-
|
|
2664
|
-
|
|
2683
|
+
var k = mc(u);
|
|
2684
|
+
ad(k, function() {
|
|
2685
|
+
od(`Cannot construct ${u} due to unbound types`, [d]);
|
|
2665
2686
|
});
|
|
2666
2687
|
X([a, b, c], d ? [d] : [], function(t) {
|
|
2667
2688
|
t = t[0];
|
|
@@ -2669,50 +2690,50 @@ var Rd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2669
2690
|
var r = t.i;
|
|
2670
2691
|
var B = r.O;
|
|
2671
2692
|
} else {
|
|
2672
|
-
B =
|
|
2693
|
+
B = Zc.prototype;
|
|
2673
2694
|
}
|
|
2674
|
-
t =
|
|
2695
|
+
t = nc(k, function() {
|
|
2675
2696
|
if (Object.getPrototypeOf(this) !== E) {
|
|
2676
|
-
throw new
|
|
2697
|
+
throw new qc("Use 'new' to construct " + u);
|
|
2677
2698
|
}
|
|
2678
2699
|
if (void 0 === w.aa) {
|
|
2679
|
-
throw new
|
|
2700
|
+
throw new qc(u + " has no accessible constructor");
|
|
2680
2701
|
}
|
|
2681
2702
|
var V = w.aa[arguments.length];
|
|
2682
2703
|
if (void 0 === V) {
|
|
2683
|
-
throw new
|
|
2704
|
+
throw new qc(`Tried to invoke ctor of ${u} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(w.aa).toString()}) parameters instead!`);
|
|
2684
2705
|
}
|
|
2685
2706
|
return V.apply(this, arguments);
|
|
2686
2707
|
});
|
|
2687
2708
|
var E = Object.create(B, {constructor:{value:t},});
|
|
2688
2709
|
t.prototype = E;
|
|
2689
|
-
var w = new
|
|
2710
|
+
var w = new bd(u, t, E, y, r, f, n, l);
|
|
2690
2711
|
w.A && (void 0 === w.A.pa && (w.A.pa = []), w.A.pa.push(w));
|
|
2691
|
-
r = new
|
|
2692
|
-
B = new
|
|
2693
|
-
var O = new
|
|
2694
|
-
|
|
2695
|
-
|
|
2712
|
+
r = new hd(u, w, !0, !1);
|
|
2713
|
+
B = new hd(u + "*", w, !1, !1);
|
|
2714
|
+
var O = new hd(u + " const*", w, !1, !0);
|
|
2715
|
+
Kc[a] = {pointerType:B, Nb:O};
|
|
2716
|
+
jd(k, t);
|
|
2696
2717
|
return [r, B, O];
|
|
2697
2718
|
});
|
|
2698
2719
|
}, _embind_register_class_class_function:function(a, b, c, d, e, f, g) {
|
|
2699
|
-
var
|
|
2720
|
+
var n = rd(c, d);
|
|
2700
2721
|
b = W(b);
|
|
2701
2722
|
f = Y(e, f);
|
|
2702
|
-
X([], [a], function(
|
|
2723
|
+
X([], [a], function(p) {
|
|
2703
2724
|
function l() {
|
|
2704
|
-
|
|
2725
|
+
od(`Cannot call ${u} due to unbound types`, n);
|
|
2705
2726
|
}
|
|
2706
|
-
|
|
2707
|
-
var u = `${
|
|
2727
|
+
p = p[0];
|
|
2728
|
+
var u = `${p.name}.${b}`;
|
|
2708
2729
|
b.startsWith("@@") && (b = Symbol[b.substring(2)]);
|
|
2709
|
-
var v =
|
|
2710
|
-
void 0 === v[b] ? (l.ea = c - 1, v[b] = l) : (
|
|
2711
|
-
X([],
|
|
2712
|
-
y =
|
|
2730
|
+
var v = p.i.constructor;
|
|
2731
|
+
void 0 === v[b] ? (l.ea = c - 1, v[b] = l) : ($c(v, b, u), v[b].B[c - 1] = l);
|
|
2732
|
+
X([], n, function(y) {
|
|
2733
|
+
y = pd(u, [y[0], null].concat(y.slice(1)), null, f, g);
|
|
2713
2734
|
void 0 === v[b].B ? (y.ea = c - 1, v[b] = y) : v[b].B[c - 1] = y;
|
|
2714
|
-
if (
|
|
2715
|
-
for (const k of
|
|
2735
|
+
if (p.i.pa) {
|
|
2736
|
+
for (const k of p.i.pa) {
|
|
2716
2737
|
k.constructor.hasOwnProperty(b) || (k.constructor[b] = y);
|
|
2717
2738
|
}
|
|
2718
2739
|
}
|
|
@@ -2720,102 +2741,102 @@ var Rd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2720
2741
|
});
|
|
2721
2742
|
return [];
|
|
2722
2743
|
});
|
|
2723
|
-
}, _embind_register_class_class_property:function(a, b, c, d, e, f, g,
|
|
2744
|
+
}, _embind_register_class_class_property:function(a, b, c, d, e, f, g, n) {
|
|
2724
2745
|
b = W(b);
|
|
2725
2746
|
f = Y(e, f);
|
|
2726
|
-
X([], [a], function(
|
|
2727
|
-
|
|
2728
|
-
var l = `${
|
|
2729
|
-
|
|
2747
|
+
X([], [a], function(p) {
|
|
2748
|
+
p = p[0];
|
|
2749
|
+
var l = `${p.name}.${b}`, u = {get() {
|
|
2750
|
+
od(`Cannot access ${l} due to unbound types`, [c]);
|
|
2730
2751
|
}, enumerable:!0, configurable:!0};
|
|
2731
|
-
u.set =
|
|
2732
|
-
|
|
2752
|
+
u.set = n ? () => {
|
|
2753
|
+
od(`Cannot access ${l} due to unbound types`, [c]);
|
|
2733
2754
|
} : () => {
|
|
2734
2755
|
U(`${l} is a read-only property`);
|
|
2735
2756
|
};
|
|
2736
|
-
Object.defineProperty(
|
|
2757
|
+
Object.defineProperty(p.i.constructor, b, u);
|
|
2737
2758
|
X([], [c], function(v) {
|
|
2738
2759
|
v = v[0];
|
|
2739
2760
|
var y = {get() {
|
|
2740
2761
|
return v.fromWireType(f(d));
|
|
2741
2762
|
}, enumerable:!0};
|
|
2742
|
-
|
|
2763
|
+
n && (n = Y(g, n), y.set = k => {
|
|
2743
2764
|
var t = [];
|
|
2744
|
-
|
|
2745
|
-
|
|
2765
|
+
n(d, v.toWireType(t, k));
|
|
2766
|
+
Rc(t);
|
|
2746
2767
|
});
|
|
2747
|
-
Object.defineProperty(
|
|
2768
|
+
Object.defineProperty(p.i.constructor, b, y);
|
|
2748
2769
|
return [];
|
|
2749
2770
|
});
|
|
2750
2771
|
return [];
|
|
2751
2772
|
});
|
|
2752
2773
|
}, _embind_register_class_constructor:function(a, b, c, d, e, f) {
|
|
2753
|
-
var g =
|
|
2774
|
+
var g = rd(b, c);
|
|
2754
2775
|
e = Y(d, e);
|
|
2755
|
-
X([], [a], function(
|
|
2756
|
-
|
|
2757
|
-
var
|
|
2758
|
-
void 0 ===
|
|
2759
|
-
if (void 0 !==
|
|
2760
|
-
throw new
|
|
2761
|
-
}
|
|
2762
|
-
|
|
2763
|
-
|
|
2776
|
+
X([], [a], function(n) {
|
|
2777
|
+
n = n[0];
|
|
2778
|
+
var p = `constructor ${n.name}`;
|
|
2779
|
+
void 0 === n.i.aa && (n.i.aa = []);
|
|
2780
|
+
if (void 0 !== n.i.aa[b - 1]) {
|
|
2781
|
+
throw new qc(`Cannot register multiple constructors with identical number of parameters (${b - 1}) for class '${n.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);
|
|
2782
|
+
}
|
|
2783
|
+
n.i.aa[b - 1] = () => {
|
|
2784
|
+
od(`Cannot construct ${n.name} due to unbound types`, g);
|
|
2764
2785
|
};
|
|
2765
2786
|
X([], g, function(l) {
|
|
2766
2787
|
l.splice(1, 0, null);
|
|
2767
|
-
|
|
2788
|
+
n.i.aa[b - 1] = pd(p, l, null, e, f);
|
|
2768
2789
|
return [];
|
|
2769
2790
|
});
|
|
2770
2791
|
return [];
|
|
2771
2792
|
});
|
|
2772
|
-
}, _embind_register_class_function:function(a, b, c, d, e, f, g,
|
|
2773
|
-
var
|
|
2793
|
+
}, _embind_register_class_function:function(a, b, c, d, e, f, g, n) {
|
|
2794
|
+
var p = rd(c, d);
|
|
2774
2795
|
b = W(b);
|
|
2775
2796
|
f = Y(e, f);
|
|
2776
2797
|
X([], [a], function(l) {
|
|
2777
2798
|
function u() {
|
|
2778
|
-
|
|
2799
|
+
od(`Cannot call ${v} due to unbound types`, p);
|
|
2779
2800
|
}
|
|
2780
2801
|
l = l[0];
|
|
2781
2802
|
var v = `${l.name}.${b}`;
|
|
2782
2803
|
b.startsWith("@@") && (b = Symbol[b.substring(2)]);
|
|
2783
|
-
|
|
2804
|
+
n && l.i.rb.push(b);
|
|
2784
2805
|
var y = l.i.O, k = y[b];
|
|
2785
|
-
void 0 === k || void 0 === k.B && k.className !== l.name && k.ea === c - 2 ? (u.ea = c - 2, u.className = l.name, y[b] = u) : (
|
|
2786
|
-
X([],
|
|
2787
|
-
t =
|
|
2806
|
+
void 0 === k || void 0 === k.B && k.className !== l.name && k.ea === c - 2 ? (u.ea = c - 2, u.className = l.name, y[b] = u) : ($c(y, b, v), y[b].B[c - 2] = u);
|
|
2807
|
+
X([], p, function(t) {
|
|
2808
|
+
t = pd(v, t, l, f, g);
|
|
2788
2809
|
void 0 === y[b].B ? (t.ea = c - 2, y[b] = t) : y[b].B[c - 2] = t;
|
|
2789
2810
|
return [];
|
|
2790
2811
|
});
|
|
2791
2812
|
return [];
|
|
2792
2813
|
});
|
|
2793
|
-
}, _embind_register_class_property:function(a, b, c, d, e, f, g,
|
|
2814
|
+
}, _embind_register_class_property:function(a, b, c, d, e, f, g, n, p, l) {
|
|
2794
2815
|
b = W(b);
|
|
2795
2816
|
e = Y(d, e);
|
|
2796
2817
|
X([], [a], function(u) {
|
|
2797
2818
|
u = u[0];
|
|
2798
2819
|
var v = `${u.name}.${b}`, y = {get() {
|
|
2799
|
-
|
|
2820
|
+
od(`Cannot access ${v} due to unbound types`, [c, g]);
|
|
2800
2821
|
}, enumerable:!0, configurable:!0};
|
|
2801
|
-
y.set =
|
|
2802
|
-
|
|
2822
|
+
y.set = p ? () => {
|
|
2823
|
+
od(`Cannot access ${v} due to unbound types`, [c, g]);
|
|
2803
2824
|
} : () => {
|
|
2804
2825
|
U(v + " is a read-only property");
|
|
2805
2826
|
};
|
|
2806
2827
|
Object.defineProperty(u.i.O, b, y);
|
|
2807
|
-
X([],
|
|
2828
|
+
X([], p ? [c, g] : [c], function(k) {
|
|
2808
2829
|
var t = k[0], r = {get() {
|
|
2809
|
-
var E =
|
|
2830
|
+
var E = sd(this, u, v + " getter");
|
|
2810
2831
|
return t.fromWireType(e(f, E));
|
|
2811
2832
|
}, enumerable:!0};
|
|
2812
|
-
if (
|
|
2813
|
-
|
|
2833
|
+
if (p) {
|
|
2834
|
+
p = Y(n, p);
|
|
2814
2835
|
var B = k[1];
|
|
2815
2836
|
r.set = function(E) {
|
|
2816
|
-
var w =
|
|
2817
|
-
|
|
2818
|
-
|
|
2837
|
+
var w = sd(this, u, v + " setter"), O = [];
|
|
2838
|
+
p(l, w, B.toWireType(O, E));
|
|
2839
|
+
Rc(O);
|
|
2819
2840
|
};
|
|
2820
2841
|
}
|
|
2821
2842
|
Object.defineProperty(u.i.O, b, r);
|
|
@@ -2825,67 +2846,67 @@ var Rd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2825
2846
|
});
|
|
2826
2847
|
}, _embind_register_emval:function(a, b) {
|
|
2827
2848
|
b = W(b);
|
|
2828
|
-
|
|
2829
|
-
var d =
|
|
2830
|
-
|
|
2849
|
+
Vc(a, {name:b, fromWireType:function(c) {
|
|
2850
|
+
var d = rc(c);
|
|
2851
|
+
td(c);
|
|
2831
2852
|
return d;
|
|
2832
2853
|
}, toWireType:function(c, d) {
|
|
2833
|
-
return
|
|
2834
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2854
|
+
return sc(d);
|
|
2855
|
+
}, argPackAdvance:8, readValueFromPointer:Sc, K:null,});
|
|
2835
2856
|
}, _embind_register_enum:function(a, b, c, d) {
|
|
2836
2857
|
function e() {
|
|
2837
2858
|
}
|
|
2838
|
-
c =
|
|
2859
|
+
c = Wc(c);
|
|
2839
2860
|
b = W(b);
|
|
2840
2861
|
e.values = {};
|
|
2841
|
-
|
|
2862
|
+
Vc(a, {name:b, constructor:e, fromWireType:function(f) {
|
|
2842
2863
|
return this.constructor.values[f];
|
|
2843
2864
|
}, toWireType:function(f, g) {
|
|
2844
2865
|
return g.value;
|
|
2845
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2846
|
-
|
|
2866
|
+
}, argPackAdvance:8, readValueFromPointer:ud(b, c, d), K:null,});
|
|
2867
|
+
ad(b, e);
|
|
2847
2868
|
}, _embind_register_enum_value:function(a, b, c) {
|
|
2848
|
-
var d =
|
|
2869
|
+
var d = Fc(a, "enum");
|
|
2849
2870
|
b = W(b);
|
|
2850
2871
|
a = d.constructor;
|
|
2851
|
-
d = Object.create(d.constructor.prototype, {value:{value:c}, constructor:{value:
|
|
2872
|
+
d = Object.create(d.constructor.prototype, {value:{value:c}, constructor:{value:nc(`${d.name}_${b}`, function() {
|
|
2852
2873
|
})},});
|
|
2853
2874
|
a.values[c] = d;
|
|
2854
2875
|
a[b] = d;
|
|
2855
2876
|
}, _embind_register_float:function(a, b, c) {
|
|
2856
|
-
c =
|
|
2877
|
+
c = Wc(c);
|
|
2857
2878
|
b = W(b);
|
|
2858
|
-
|
|
2879
|
+
Vc(a, {name:b, fromWireType:function(d) {
|
|
2859
2880
|
return d;
|
|
2860
2881
|
}, toWireType:function(d, e) {
|
|
2861
2882
|
return e;
|
|
2862
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2883
|
+
}, argPackAdvance:8, readValueFromPointer:vd(b, c), K:null,});
|
|
2863
2884
|
}, _embind_register_function:function(a, b, c, d, e, f) {
|
|
2864
|
-
var g =
|
|
2885
|
+
var g = rd(b, c);
|
|
2865
2886
|
a = W(a);
|
|
2866
2887
|
e = Y(d, e);
|
|
2867
|
-
|
|
2868
|
-
|
|
2888
|
+
ad(a, function() {
|
|
2889
|
+
od(`Cannot call ${a} due to unbound types`, g);
|
|
2869
2890
|
}, b - 1);
|
|
2870
|
-
X([], g, function(
|
|
2871
|
-
|
|
2891
|
+
X([], g, function(n) {
|
|
2892
|
+
jd(a, pd(a, [n[0], null].concat(n.slice(1)), null, e, f), b - 1);
|
|
2872
2893
|
return [];
|
|
2873
2894
|
});
|
|
2874
2895
|
}, _embind_register_integer:function(a, b, c, d, e) {
|
|
2875
2896
|
b = W(b);
|
|
2876
2897
|
-1 === e && (e = 4294967295);
|
|
2877
|
-
e =
|
|
2878
|
-
var f =
|
|
2898
|
+
e = Wc(c);
|
|
2899
|
+
var f = n => n;
|
|
2879
2900
|
if (0 === d) {
|
|
2880
2901
|
var g = 32 - 8 * c;
|
|
2881
|
-
f =
|
|
2902
|
+
f = n => n << g >>> g;
|
|
2882
2903
|
}
|
|
2883
|
-
c = b.includes("unsigned") ? function(
|
|
2884
|
-
return
|
|
2885
|
-
} : function(
|
|
2886
|
-
return
|
|
2904
|
+
c = b.includes("unsigned") ? function(n, p) {
|
|
2905
|
+
return p >>> 0;
|
|
2906
|
+
} : function(n, p) {
|
|
2907
|
+
return p;
|
|
2887
2908
|
};
|
|
2888
|
-
|
|
2909
|
+
Vc(a, {name:b, fromWireType:f, toWireType:c, argPackAdvance:8, readValueFromPointer:wd(b, e, 0 !== d), K:null,});
|
|
2889
2910
|
}, _embind_register_memory_view:function(a, b, c) {
|
|
2890
2911
|
function d(f) {
|
|
2891
2912
|
f >>= 2;
|
|
@@ -2894,176 +2915,176 @@ var Rd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2894
2915
|
}
|
|
2895
2916
|
var e = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array,][b];
|
|
2896
2917
|
c = W(c);
|
|
2897
|
-
|
|
2918
|
+
Vc(a, {name:c, fromWireType:d, argPackAdvance:8, readValueFromPointer:d,}, {fc:!0,});
|
|
2898
2919
|
}, _embind_register_std_string:function(a, b) {
|
|
2899
2920
|
b = W(b);
|
|
2900
2921
|
var c = "std::string" === b;
|
|
2901
|
-
|
|
2922
|
+
Vc(a, {name:b, fromWireType:function(d) {
|
|
2902
2923
|
var e = G[d >> 2], f = d + 4;
|
|
2903
2924
|
if (c) {
|
|
2904
|
-
for (var g = f,
|
|
2905
|
-
var
|
|
2906
|
-
if (
|
|
2907
|
-
g = g ?
|
|
2925
|
+
for (var g = f, n = 0; n <= e; ++n) {
|
|
2926
|
+
var p = f + n;
|
|
2927
|
+
if (n == e || 0 == C[p]) {
|
|
2928
|
+
g = g ? lb(C, g, p - g) : "";
|
|
2908
2929
|
if (void 0 === l) {
|
|
2909
2930
|
var l = g;
|
|
2910
2931
|
} else {
|
|
2911
2932
|
l += String.fromCharCode(0), l += g;
|
|
2912
2933
|
}
|
|
2913
|
-
g =
|
|
2934
|
+
g = p + 1;
|
|
2914
2935
|
}
|
|
2915
2936
|
}
|
|
2916
2937
|
} else {
|
|
2917
2938
|
l = Array(e);
|
|
2918
|
-
for (
|
|
2919
|
-
l[
|
|
2939
|
+
for (n = 0; n < e; ++n) {
|
|
2940
|
+
l[n] = String.fromCharCode(C[f + n]);
|
|
2920
2941
|
}
|
|
2921
2942
|
l = l.join("");
|
|
2922
2943
|
}
|
|
2923
|
-
|
|
2944
|
+
Ec(d);
|
|
2924
2945
|
return l;
|
|
2925
2946
|
}, toWireType:function(d, e) {
|
|
2926
2947
|
e instanceof ArrayBuffer && (e = new Uint8Array(e));
|
|
2927
2948
|
var f = "string" == typeof e;
|
|
2928
2949
|
f || e instanceof Uint8Array || e instanceof Uint8ClampedArray || e instanceof Int8Array || U("Cannot pass non-string to std::string");
|
|
2929
|
-
var g = c && f ?
|
|
2930
|
-
var
|
|
2931
|
-
G[
|
|
2950
|
+
var g = c && f ? nb(e) : e.length;
|
|
2951
|
+
var n = Vd(4 + g + 1), p = n + 4;
|
|
2952
|
+
G[n >> 2] = g;
|
|
2932
2953
|
if (c && f) {
|
|
2933
|
-
|
|
2954
|
+
ob(e, C, p, g + 1);
|
|
2934
2955
|
} else {
|
|
2935
2956
|
if (f) {
|
|
2936
2957
|
for (f = 0; f < g; ++f) {
|
|
2937
2958
|
var l = e.charCodeAt(f);
|
|
2938
|
-
255 < l && (
|
|
2939
|
-
C[
|
|
2959
|
+
255 < l && (Ec(p), U("String has UTF-16 code units that do not fit in 8 bits"));
|
|
2960
|
+
C[p + f] = l;
|
|
2940
2961
|
}
|
|
2941
2962
|
} else {
|
|
2942
2963
|
for (f = 0; f < g; ++f) {
|
|
2943
|
-
C[
|
|
2964
|
+
C[p + f] = e[f];
|
|
2944
2965
|
}
|
|
2945
2966
|
}
|
|
2946
2967
|
}
|
|
2947
|
-
null !== d && d.push(
|
|
2948
|
-
return
|
|
2949
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2950
|
-
|
|
2968
|
+
null !== d && d.push(Ec, n);
|
|
2969
|
+
return n;
|
|
2970
|
+
}, argPackAdvance:8, readValueFromPointer:Sc, K:function(d) {
|
|
2971
|
+
Ec(d);
|
|
2951
2972
|
},});
|
|
2952
2973
|
}, _embind_register_std_wstring:function(a, b, c) {
|
|
2953
2974
|
c = W(c);
|
|
2954
2975
|
if (2 === b) {
|
|
2955
|
-
var d =
|
|
2956
|
-
var e =
|
|
2957
|
-
var f =
|
|
2958
|
-
var g = () =>
|
|
2959
|
-
var
|
|
2976
|
+
var d = yd;
|
|
2977
|
+
var e = zd;
|
|
2978
|
+
var f = Ad;
|
|
2979
|
+
var g = () => Ea;
|
|
2980
|
+
var n = 1;
|
|
2960
2981
|
} else {
|
|
2961
|
-
4 === b && (d =
|
|
2982
|
+
4 === b && (d = Bd, e = Cd, f = Dd, g = () => G, n = 2);
|
|
2962
2983
|
}
|
|
2963
|
-
|
|
2964
|
-
for (var l = G[
|
|
2965
|
-
var t =
|
|
2966
|
-
if (k == l || 0 == u[t >>
|
|
2984
|
+
Vc(a, {name:c, fromWireType:function(p) {
|
|
2985
|
+
for (var l = G[p >> 2], u = g(), v, y = p + 4, k = 0; k <= l; ++k) {
|
|
2986
|
+
var t = p + 4 + k * b;
|
|
2987
|
+
if (k == l || 0 == u[t >> n]) {
|
|
2967
2988
|
y = d(y, t - y), void 0 === v ? v = y : (v += String.fromCharCode(0), v += y), y = t + b;
|
|
2968
2989
|
}
|
|
2969
2990
|
}
|
|
2970
|
-
|
|
2991
|
+
Ec(p);
|
|
2971
2992
|
return v;
|
|
2972
|
-
}, toWireType:function(
|
|
2993
|
+
}, toWireType:function(p, l) {
|
|
2973
2994
|
"string" != typeof l && U(`Cannot pass non-string to C++ string type ${c}`);
|
|
2974
|
-
var u = f(l), v =
|
|
2975
|
-
G[v >> 2] = u >>
|
|
2995
|
+
var u = f(l), v = Vd(4 + u + b);
|
|
2996
|
+
G[v >> 2] = u >> n;
|
|
2976
2997
|
e(l, v + 4, u + b);
|
|
2977
|
-
null !==
|
|
2998
|
+
null !== p && p.push(Ec, v);
|
|
2978
2999
|
return v;
|
|
2979
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2980
|
-
|
|
3000
|
+
}, argPackAdvance:8, readValueFromPointer:Sc, K:function(p) {
|
|
3001
|
+
Ec(p);
|
|
2981
3002
|
},});
|
|
2982
3003
|
}, _embind_register_value_object:function(a, b, c, d, e, f) {
|
|
2983
|
-
|
|
2984
|
-
}, _embind_register_value_object_field:function(a, b, c, d, e, f, g,
|
|
2985
|
-
|
|
3004
|
+
Qc[a] = {name:W(b), Qa:Y(c, d), X:Y(e, f), fb:[],};
|
|
3005
|
+
}, _embind_register_value_object_field:function(a, b, c, d, e, f, g, n, p, l) {
|
|
3006
|
+
Qc[a].fb.push({Xb:W(b), cc:c, ac:Y(d, e), bc:f, zc:g, yc:Y(n, p), Ac:l,});
|
|
2986
3007
|
}, _embind_register_void:function(a, b) {
|
|
2987
3008
|
b = W(b);
|
|
2988
|
-
|
|
3009
|
+
Vc(a, {mc:!0, name:b, argPackAdvance:0, fromWireType:function() {
|
|
2989
3010
|
}, toWireType:function() {
|
|
2990
3011
|
},});
|
|
2991
3012
|
}, _emval_as:function(a, b, c) {
|
|
2992
|
-
a =
|
|
2993
|
-
b =
|
|
2994
|
-
var d = [], e =
|
|
3013
|
+
a = rc(a);
|
|
3014
|
+
b = Fc(b, "emval::as");
|
|
3015
|
+
var d = [], e = sc(d);
|
|
2995
3016
|
G[c >> 2] = e;
|
|
2996
3017
|
return b.toWireType(d, a);
|
|
2997
3018
|
}, _emval_call_method:function(a, b, c, d, e) {
|
|
2998
|
-
a =
|
|
2999
|
-
b =
|
|
3000
|
-
c =
|
|
3019
|
+
a = Gd[a];
|
|
3020
|
+
b = rc(b);
|
|
3021
|
+
c = Fd(c);
|
|
3001
3022
|
var f = [];
|
|
3002
|
-
G[d >> 2] =
|
|
3023
|
+
G[d >> 2] = sc(f);
|
|
3003
3024
|
return a(b, c, f, e);
|
|
3004
3025
|
}, _emval_call_void_method:function(a, b, c, d) {
|
|
3005
|
-
a =
|
|
3006
|
-
b =
|
|
3007
|
-
c =
|
|
3026
|
+
a = Gd[a];
|
|
3027
|
+
b = rc(b);
|
|
3028
|
+
c = Fd(c);
|
|
3008
3029
|
a(b, c, null, d);
|
|
3009
|
-
}, _emval_decref:
|
|
3010
|
-
var c =
|
|
3030
|
+
}, _emval_decref:td, _emval_get_method_caller:function(a, b) {
|
|
3031
|
+
var c = Id(a, b), d = c[0];
|
|
3011
3032
|
b = d.name + "_$" + c.slice(1).map(function(g) {
|
|
3012
3033
|
return g.name;
|
|
3013
3034
|
}).join("_") + "$";
|
|
3014
|
-
var e =
|
|
3035
|
+
var e = Jd[b];
|
|
3015
3036
|
if (void 0 !== e) {
|
|
3016
3037
|
return e;
|
|
3017
3038
|
}
|
|
3018
3039
|
var f = Array(a - 1);
|
|
3019
|
-
e =
|
|
3040
|
+
e = Hd((g, n, p, l) => {
|
|
3020
3041
|
for (var u = 0, v = 0; v < a - 1; ++v) {
|
|
3021
3042
|
f[v] = c[v + 1].readValueFromPointer(l + u), u += c[v + 1].argPackAdvance;
|
|
3022
3043
|
}
|
|
3023
|
-
g = g[
|
|
3044
|
+
g = g[n].apply(g, f);
|
|
3024
3045
|
for (v = 0; v < a - 1; ++v) {
|
|
3025
3046
|
c[v + 1].Rb && c[v + 1].Rb(f[v]);
|
|
3026
3047
|
}
|
|
3027
3048
|
if (!d.mc) {
|
|
3028
|
-
return d.toWireType(
|
|
3049
|
+
return d.toWireType(p, g);
|
|
3029
3050
|
}
|
|
3030
3051
|
});
|
|
3031
|
-
return
|
|
3052
|
+
return Jd[b] = e;
|
|
3032
3053
|
}, _emval_get_module_property:function(a) {
|
|
3033
|
-
a =
|
|
3034
|
-
return
|
|
3054
|
+
a = Fd(a);
|
|
3055
|
+
return sc(m[a]);
|
|
3035
3056
|
}, _emval_get_property:function(a, b) {
|
|
3036
|
-
a =
|
|
3037
|
-
b =
|
|
3038
|
-
return
|
|
3057
|
+
a = rc(a);
|
|
3058
|
+
b = rc(b);
|
|
3059
|
+
return sc(a[b]);
|
|
3039
3060
|
}, _emval_incref:function(a) {
|
|
3040
|
-
4 < a && (
|
|
3061
|
+
4 < a && (pc.get(a).ub += 1);
|
|
3041
3062
|
}, _emval_new_cstring:function(a) {
|
|
3042
|
-
return
|
|
3063
|
+
return sc(Fd(a));
|
|
3043
3064
|
}, _emval_new_object:function() {
|
|
3044
|
-
return
|
|
3065
|
+
return sc({});
|
|
3045
3066
|
}, _emval_run_destructors:function(a) {
|
|
3046
|
-
var b =
|
|
3047
|
-
|
|
3048
|
-
|
|
3067
|
+
var b = rc(a);
|
|
3068
|
+
Rc(b);
|
|
3069
|
+
td(a);
|
|
3049
3070
|
}, _emval_set_property:function(a, b, c) {
|
|
3050
|
-
a =
|
|
3051
|
-
b =
|
|
3052
|
-
c =
|
|
3071
|
+
a = rc(a);
|
|
3072
|
+
b = rc(b);
|
|
3073
|
+
c = rc(c);
|
|
3053
3074
|
a[b] = c;
|
|
3054
3075
|
}, _emval_take_value:function(a, b) {
|
|
3055
|
-
a =
|
|
3076
|
+
a = Fc(a, "_emval_take_value");
|
|
3056
3077
|
a = a.readValueFromPointer(b);
|
|
3057
|
-
return
|
|
3078
|
+
return sc(a);
|
|
3058
3079
|
}, abort:() => {
|
|
3059
|
-
|
|
3080
|
+
za("");
|
|
3060
3081
|
}, emscripten_asm_const_int:(a, b, c) => {
|
|
3061
|
-
|
|
3082
|
+
Kd.length = 0;
|
|
3062
3083
|
var d;
|
|
3063
3084
|
for (c >>= 2; d = C[b++];) {
|
|
3064
|
-
c += 105 != d & c,
|
|
3085
|
+
c += 105 != d & c, Kd.push(105 == d ? F[c] : Ga[c++ >> 1]), ++c;
|
|
3065
3086
|
}
|
|
3066
|
-
return
|
|
3087
|
+
return bb[a].apply(null, Kd);
|
|
3067
3088
|
}, emscripten_memcpy_big:(a, b, c) => C.copyWithin(a, b, b + c), emscripten_resize_heap:a => {
|
|
3068
3089
|
var b = C.length;
|
|
3069
3090
|
a >>>= 0;
|
|
@@ -3076,10 +3097,10 @@ var Rd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3076
3097
|
var e = Math;
|
|
3077
3098
|
d = Math.max(a, d);
|
|
3078
3099
|
a: {
|
|
3079
|
-
e = e.min.call(e, 2147483648, d + (65536 - d % 65536) % 65536) -
|
|
3100
|
+
e = e.min.call(e, 2147483648, d + (65536 - d % 65536) % 65536) - Aa.buffer.byteLength + 65535 >>> 16;
|
|
3080
3101
|
try {
|
|
3081
|
-
|
|
3082
|
-
|
|
3102
|
+
Aa.grow(e);
|
|
3103
|
+
Ha();
|
|
3083
3104
|
var f = 1;
|
|
3084
3105
|
break a;
|
|
3085
3106
|
} catch (g) {
|
|
@@ -3093,7 +3114,7 @@ var Rd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3093
3114
|
return !1;
|
|
3094
3115
|
}, environ_get:(a, b) => {
|
|
3095
3116
|
var c = 0;
|
|
3096
|
-
|
|
3117
|
+
Nd().forEach(function(d, e) {
|
|
3097
3118
|
var f = b + c;
|
|
3098
3119
|
e = G[a + 4 * e >> 2] = f;
|
|
3099
3120
|
for (f = 0; f < d.length; ++f) {
|
|
@@ -3104,7 +3125,7 @@ var Rd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3104
3125
|
});
|
|
3105
3126
|
return 0;
|
|
3106
3127
|
}, environ_sizes_get:(a, b) => {
|
|
3107
|
-
var c =
|
|
3128
|
+
var c = Nd();
|
|
3108
3129
|
G[a >> 2] = c.length;
|
|
3109
3130
|
var d = 0;
|
|
3110
3131
|
c.forEach(function(e) {
|
|
@@ -3114,7 +3135,7 @@ var Rd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3114
3135
|
return 0;
|
|
3115
3136
|
}, fd_close:function(a) {
|
|
3116
3137
|
try {
|
|
3117
|
-
var b =
|
|
3138
|
+
var b = Rb(a);
|
|
3118
3139
|
if (null === b.Z) {
|
|
3119
3140
|
throw new Q(8);
|
|
3120
3141
|
}
|
|
@@ -3124,12 +3145,12 @@ var Rd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3124
3145
|
} catch (c) {
|
|
3125
3146
|
throw c;
|
|
3126
3147
|
} finally {
|
|
3127
|
-
|
|
3148
|
+
Eb[b.Z] = null;
|
|
3128
3149
|
}
|
|
3129
3150
|
b.Z = null;
|
|
3130
3151
|
return 0;
|
|
3131
3152
|
} catch (c) {
|
|
3132
|
-
if ("undefined" == typeof
|
|
3153
|
+
if ("undefined" == typeof jc || "ErrnoError" !== c.name) {
|
|
3133
3154
|
throw c;
|
|
3134
3155
|
}
|
|
3135
3156
|
return c.Y;
|
|
@@ -3137,12 +3158,12 @@ var Rd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3137
3158
|
}, fd_read:function(a, b, c, d) {
|
|
3138
3159
|
try {
|
|
3139
3160
|
a: {
|
|
3140
|
-
var e =
|
|
3161
|
+
var e = Rb(a);
|
|
3141
3162
|
a = b;
|
|
3142
3163
|
for (var f, g = b = 0; g < c; g++) {
|
|
3143
|
-
var
|
|
3164
|
+
var n = G[a >> 2], p = G[a + 4 >> 2];
|
|
3144
3165
|
a += 8;
|
|
3145
|
-
var l = e, u =
|
|
3166
|
+
var l = e, u = n, v = p, y = f, k = A;
|
|
3146
3167
|
if (0 > v || 0 > y) {
|
|
3147
3168
|
throw new Q(28);
|
|
3148
3169
|
}
|
|
@@ -3172,7 +3193,7 @@ var Rd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3172
3193
|
break a;
|
|
3173
3194
|
}
|
|
3174
3195
|
b += B;
|
|
3175
|
-
if (B <
|
|
3196
|
+
if (B < p) {
|
|
3176
3197
|
break;
|
|
3177
3198
|
}
|
|
3178
3199
|
"undefined" !== typeof f && (f += B);
|
|
@@ -3182,7 +3203,7 @@ var Rd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3182
3203
|
G[d >> 2] = E;
|
|
3183
3204
|
return 0;
|
|
3184
3205
|
} catch (w) {
|
|
3185
|
-
if ("undefined" == typeof
|
|
3206
|
+
if ("undefined" == typeof jc || "ErrnoError" !== w.name) {
|
|
3186
3207
|
throw w;
|
|
3187
3208
|
}
|
|
3188
3209
|
return w.Y;
|
|
@@ -3193,15 +3214,15 @@ var Rd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3193
3214
|
if (isNaN(b)) {
|
|
3194
3215
|
return 61;
|
|
3195
3216
|
}
|
|
3196
|
-
var f =
|
|
3197
|
-
|
|
3217
|
+
var f = Rb(a);
|
|
3218
|
+
ec(f, b, d);
|
|
3198
3219
|
P = [f.position >>> 0, (N = f.position, 1.0 <= +Math.abs(N) ? 0.0 < N ? +Math.floor(N / 4294967296.0) >>> 0 : ~~+Math.ceil((N - +(~~N >>> 0)) / 4294967296.0) >>> 0 : 0)];
|
|
3199
3220
|
F[e >> 2] = P[0];
|
|
3200
3221
|
F[e + 4 >> 2] = P[1];
|
|
3201
3222
|
f.Na && 0 === b && 0 === d && (f.Na = null);
|
|
3202
3223
|
return 0;
|
|
3203
3224
|
} catch (g) {
|
|
3204
|
-
if ("undefined" == typeof
|
|
3225
|
+
if ("undefined" == typeof jc || "ErrnoError" !== g.name) {
|
|
3205
3226
|
throw g;
|
|
3206
3227
|
}
|
|
3207
3228
|
return g.Y;
|
|
@@ -3209,12 +3230,12 @@ var Rd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3209
3230
|
}, fd_write:function(a, b, c, d) {
|
|
3210
3231
|
try {
|
|
3211
3232
|
a: {
|
|
3212
|
-
var e =
|
|
3233
|
+
var e = Rb(a);
|
|
3213
3234
|
a = b;
|
|
3214
3235
|
for (var f, g = b = 0; g < c; g++) {
|
|
3215
|
-
var
|
|
3236
|
+
var n = G[a >> 2], p = G[a + 4 >> 2];
|
|
3216
3237
|
a += 8;
|
|
3217
|
-
var l = e, u =
|
|
3238
|
+
var l = e, u = n, v = p, y = f, k = A;
|
|
3218
3239
|
if (0 > v || 0 > y) {
|
|
3219
3240
|
throw new Q(28);
|
|
3220
3241
|
}
|
|
@@ -3230,7 +3251,7 @@ var Rd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3230
3251
|
if (!l.m.write) {
|
|
3231
3252
|
throw new Q(28);
|
|
3232
3253
|
}
|
|
3233
|
-
l.seekable && l.flags & 1024 &&
|
|
3254
|
+
l.seekable && l.flags & 1024 && ec(l, 0, 2);
|
|
3234
3255
|
var t = "undefined" != typeof y;
|
|
3235
3256
|
if (!t) {
|
|
3236
3257
|
y = l.position;
|
|
@@ -3252,66 +3273,102 @@ var Rd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3252
3273
|
G[d >> 2] = E;
|
|
3253
3274
|
return 0;
|
|
3254
3275
|
} catch (w) {
|
|
3255
|
-
if ("undefined" == typeof
|
|
3276
|
+
if ("undefined" == typeof jc || "ErrnoError" !== w.name) {
|
|
3256
3277
|
throw w;
|
|
3257
3278
|
}
|
|
3258
3279
|
return w.Y;
|
|
3259
3280
|
}
|
|
3260
|
-
}, strftime_l:(a, b, c, d) =>
|
|
3281
|
+
}, strftime_l:(a, b, c, d) => Rd(a, b, c, d)};
|
|
3261
3282
|
(function() {
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
|
|
3283
|
+
function a(c) {
|
|
3284
|
+
x = c = c.exports;
|
|
3285
|
+
Aa = x.memory;
|
|
3286
|
+
Ha();
|
|
3287
|
+
Ka = x.__indirect_function_table;
|
|
3288
|
+
Ma.unshift(x.__wasm_call_ctors);
|
|
3289
|
+
Pa--;
|
|
3290
|
+
m.monitorRunDependencies && m.monitorRunDependencies(Pa);
|
|
3291
|
+
if (0 == Pa && (null !== Qa && (clearInterval(Qa), Qa = null), Ra)) {
|
|
3292
|
+
var d = Ra;
|
|
3293
|
+
Ra = null;
|
|
3294
|
+
d();
|
|
3295
|
+
}
|
|
3296
|
+
return c;
|
|
3297
|
+
}
|
|
3298
|
+
var b = {env:Wd, wasi_snapshot_preview1:Wd,};
|
|
3299
|
+
Pa++;
|
|
3300
|
+
m.monitorRunDependencies && m.monitorRunDependencies(Pa);
|
|
3301
|
+
if (m.instantiateWasm) {
|
|
3302
|
+
try {
|
|
3303
|
+
return m.instantiateWasm(b, a);
|
|
3304
|
+
} catch (c) {
|
|
3305
|
+
ua("Module.instantiateWasm callback failed with error: " + c), ba(c);
|
|
3306
|
+
}
|
|
3307
|
+
}
|
|
3308
|
+
Ya(b, function(c) {
|
|
3309
|
+
a(c.instance);
|
|
3272
3310
|
}).catch(ba);
|
|
3273
3311
|
return {};
|
|
3274
3312
|
})();
|
|
3275
|
-
var
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
var
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
var
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
|
|
3313
|
+
var Ec = a => (Ec = x.free)(a), Vd = a => (Vd = x.malloc)(a), Za = m._ma_device__on_notification_unlocked = a => (Za = m._ma_device__on_notification_unlocked = x.ma_device__on_notification_unlocked)(a);
|
|
3314
|
+
m._ma_malloc_emscripten = (a, b) => (m._ma_malloc_emscripten = x.ma_malloc_emscripten)(a, b);
|
|
3315
|
+
m._ma_free_emscripten = (a, b) => (m._ma_free_emscripten = x.ma_free_emscripten)(a, b);
|
|
3316
|
+
var $a = m._ma_device_process_pcm_frames_capture__webaudio = (a, b, c) => ($a = m._ma_device_process_pcm_frames_capture__webaudio = x.ma_device_process_pcm_frames_capture__webaudio)(a, b, c), ab = m._ma_device_process_pcm_frames_playback__webaudio = (a, b, c) => (ab = m._ma_device_process_pcm_frames_playback__webaudio = x.ma_device_process_pcm_frames_playback__webaudio)(a, b, c), Ud = () => (Ud = x.__errno_location)(), Dc = a => (Dc = x.__getTypeName)(a);
|
|
3317
|
+
m.__embind_initialize_bindings = () => (m.__embind_initialize_bindings = x._embind_initialize_bindings)();
|
|
3318
|
+
m.dynCall_iiji = (a, b, c, d, e) => (m.dynCall_iiji = x.dynCall_iiji)(a, b, c, d, e);
|
|
3319
|
+
m.dynCall_iiiji = (a, b, c, d, e, f) => (m.dynCall_iiiji = x.dynCall_iiiji)(a, b, c, d, e, f);
|
|
3320
|
+
m.dynCall_jiji = (a, b, c, d, e) => (m.dynCall_jiji = x.dynCall_jiji)(a, b, c, d, e);
|
|
3321
|
+
m.dynCall_iij = (a, b, c, d) => (m.dynCall_iij = x.dynCall_iij)(a, b, c, d);
|
|
3322
|
+
m.dynCall_jii = (a, b, c) => (m.dynCall_jii = x.dynCall_jii)(a, b, c);
|
|
3323
|
+
m.dynCall_viijii = (a, b, c, d, e, f, g) => (m.dynCall_viijii = x.dynCall_viijii)(a, b, c, d, e, f, g);
|
|
3324
|
+
m.dynCall_iiiiij = (a, b, c, d, e, f, g) => (m.dynCall_iiiiij = x.dynCall_iiiiij)(a, b, c, d, e, f, g);
|
|
3325
|
+
m.dynCall_iiiiijj = (a, b, c, d, e, f, g, n, p) => (m.dynCall_iiiiijj = x.dynCall_iiiiijj)(a, b, c, d, e, f, g, n, p);
|
|
3326
|
+
m.dynCall_iiiiiijj = (a, b, c, d, e, f, g, n, p, l) => (m.dynCall_iiiiiijj = x.dynCall_iiiiiijj)(a, b, c, d, e, f, g, n, p, l);
|
|
3327
|
+
var Xd;
|
|
3328
|
+
Ra = function Yd() {
|
|
3329
|
+
Xd || Zd();
|
|
3330
|
+
Xd || (Ra = Yd);
|
|
3293
3331
|
};
|
|
3294
|
-
function
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3332
|
+
function Zd() {
|
|
3333
|
+
function a() {
|
|
3334
|
+
if (!Xd && (Xd = !0, m.calledRun = !0, !Ba)) {
|
|
3335
|
+
m.noFSInit || gc || (gc = !0, fc(), m.stdin = m.stdin, m.stdout = m.stdout, m.stderr = m.stderr, m.stdin ? ic("stdin", m.stdin) : Xb("/dev/tty", "/dev/stdin"), m.stdout ? ic("stdout", null, m.stdout) : Xb("/dev/tty", "/dev/stdout"), m.stderr ? ic("stderr", null, m.stderr) : Xb("/dev/tty1", "/dev/stderr"), dc("/dev/stdin", 0), dc("/dev/stdout", 1), dc("/dev/stderr", 1));
|
|
3336
|
+
Hb = !1;
|
|
3337
|
+
cb(Ma);
|
|
3338
|
+
aa(m);
|
|
3339
|
+
if (m.onRuntimeInitialized) {
|
|
3340
|
+
m.onRuntimeInitialized();
|
|
3303
3341
|
}
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3342
|
+
if (m.postRun) {
|
|
3343
|
+
for ("function" == typeof m.postRun && (m.postRun = [m.postRun]); m.postRun.length;) {
|
|
3344
|
+
var b = m.postRun.shift();
|
|
3345
|
+
Na.unshift(b);
|
|
3346
|
+
}
|
|
3307
3347
|
}
|
|
3308
|
-
|
|
3309
|
-
|
|
3348
|
+
cb(Na);
|
|
3349
|
+
}
|
|
3350
|
+
}
|
|
3351
|
+
if (!(0 < Pa)) {
|
|
3352
|
+
if (m.preRun) {
|
|
3353
|
+
for ("function" == typeof m.preRun && (m.preRun = [m.preRun]); m.preRun.length;) {
|
|
3354
|
+
Oa();
|
|
3310
3355
|
}
|
|
3311
3356
|
}
|
|
3357
|
+
cb(La);
|
|
3358
|
+
0 < Pa || (m.setStatus ? (m.setStatus("Running..."), setTimeout(function() {
|
|
3359
|
+
setTimeout(function() {
|
|
3360
|
+
m.setStatus("");
|
|
3361
|
+
}, 1);
|
|
3362
|
+
a();
|
|
3363
|
+
}, 1)) : a());
|
|
3364
|
+
}
|
|
3365
|
+
}
|
|
3366
|
+
if (m.preInit) {
|
|
3367
|
+
for ("function" == typeof m.preInit && (m.preInit = [m.preInit]); 0 < m.preInit.length;) {
|
|
3368
|
+
m.preInit.pop()();
|
|
3312
3369
|
}
|
|
3313
3370
|
}
|
|
3314
|
-
|
|
3371
|
+
Zd();
|
|
3315
3372
|
|
|
3316
3373
|
|
|
3317
3374
|
|