@rive-app/canvas-advanced 2.36.0 → 2.37.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/canvas_advanced.mjs +480 -470
- package/package.json +1 -1
- package/rive.wasm +0 -0
- package/rive_advanced.mjs.d.ts +4 -0
- package/rive_fallback.wasm +0 -0
package/canvas_advanced.mjs
CHANGED
|
@@ -6,11 +6,11 @@ var Rive = (() => {
|
|
|
6
6
|
function(moduleArg = {}) {
|
|
7
7
|
var moduleRtn;
|
|
8
8
|
|
|
9
|
-
var m = moduleArg,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}),
|
|
13
|
-
function
|
|
9
|
+
var m = moduleArg, ca, da, ea = new Promise((a, b) => {
|
|
10
|
+
ca = a;
|
|
11
|
+
da = b;
|
|
12
|
+
}), fa = "object" == typeof window, ia = "function" == typeof importScripts;
|
|
13
|
+
function ja() {
|
|
14
14
|
function a(g) {
|
|
15
15
|
const k = d;
|
|
16
16
|
c = b = 0;
|
|
@@ -56,7 +56,7 @@ function ia() {
|
|
|
56
56
|
this.ob = function() {
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function ka(a) {
|
|
60
60
|
console.assert(!0);
|
|
61
61
|
const b = new Map();
|
|
62
62
|
let c = -Infinity;
|
|
@@ -71,71 +71,77 @@ function ja(a) {
|
|
|
71
71
|
return c << a;
|
|
72
72
|
};
|
|
73
73
|
}
|
|
74
|
-
const
|
|
74
|
+
const la = m.onRuntimeInitialized;
|
|
75
75
|
m.onRuntimeInitialized = function() {
|
|
76
|
-
|
|
76
|
+
la && la();
|
|
77
77
|
let a = m.decodeAudio;
|
|
78
|
-
m.decodeAudio = function(
|
|
79
|
-
|
|
80
|
-
f
|
|
78
|
+
m.decodeAudio = function(f, g) {
|
|
79
|
+
f = a(f);
|
|
80
|
+
g(f);
|
|
81
81
|
};
|
|
82
82
|
let b = m.decodeFont;
|
|
83
|
-
m.decodeFont = function(
|
|
84
|
-
|
|
85
|
-
f
|
|
83
|
+
m.decodeFont = function(f, g) {
|
|
84
|
+
f = b(f);
|
|
85
|
+
g(f);
|
|
86
86
|
};
|
|
87
|
-
|
|
88
|
-
m.
|
|
89
|
-
|
|
90
|
-
|
|
87
|
+
let c = m.setFallbackFontCb;
|
|
88
|
+
m.setFallbackFontCallback = "function" === typeof c ? function(f) {
|
|
89
|
+
c(f);
|
|
90
|
+
} : function() {
|
|
91
|
+
console.warn("Module.setFallbackFontCallback called, but text support is not enabled in this build.");
|
|
91
92
|
};
|
|
92
|
-
|
|
93
|
+
const d = m.FileAssetLoader;
|
|
94
|
+
m.ptrToAsset = f => {
|
|
95
|
+
let g = m.ptrToFileAsset(f);
|
|
96
|
+
return g.isImage ? m.ptrToImageAsset(f) : g.isFont ? m.ptrToFontAsset(f) : g.isAudio ? m.ptrToAudioAsset(f) : g;
|
|
97
|
+
};
|
|
98
|
+
m.CustomFileAssetLoader = d.extend("CustomFileAssetLoader", {__construct:function({loadContents:f}) {
|
|
93
99
|
this.__parent.__construct.call(this);
|
|
94
|
-
this.Eb =
|
|
95
|
-
}, loadContents:function(
|
|
96
|
-
|
|
97
|
-
return this.Eb(
|
|
100
|
+
this.Eb = f;
|
|
101
|
+
}, loadContents:function(f, g) {
|
|
102
|
+
f = m.ptrToAsset(f);
|
|
103
|
+
return this.Eb(f, g);
|
|
98
104
|
},});
|
|
99
|
-
m.CDNFileAssetLoader =
|
|
105
|
+
m.CDNFileAssetLoader = d.extend("CDNFileAssetLoader", {__construct:function() {
|
|
100
106
|
this.__parent.__construct.call(this);
|
|
101
|
-
}, loadContents:function(
|
|
102
|
-
let
|
|
103
|
-
|
|
104
|
-
if ("" ===
|
|
107
|
+
}, loadContents:function(f) {
|
|
108
|
+
let g = m.ptrToAsset(f);
|
|
109
|
+
f = g.cdnUuid;
|
|
110
|
+
if ("" === f) {
|
|
105
111
|
return !1;
|
|
106
112
|
}
|
|
107
|
-
(function(
|
|
108
|
-
var
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
4 ==
|
|
113
|
+
(function(k, p) {
|
|
114
|
+
var n = new XMLHttpRequest();
|
|
115
|
+
n.responseType = "arraybuffer";
|
|
116
|
+
n.onreadystatechange = function() {
|
|
117
|
+
4 == n.readyState && 200 == n.status && p(n);
|
|
112
118
|
};
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
})(
|
|
116
|
-
|
|
119
|
+
n.open("GET", k, !0);
|
|
120
|
+
n.send(null);
|
|
121
|
+
})(g.cdnBaseUrl + "/" + f, k => {
|
|
122
|
+
g.decode(new Uint8Array(k.response));
|
|
117
123
|
});
|
|
118
124
|
return !0;
|
|
119
125
|
},});
|
|
120
|
-
m.FallbackFileAssetLoader =
|
|
126
|
+
m.FallbackFileAssetLoader = d.extend("FallbackFileAssetLoader", {__construct:function() {
|
|
121
127
|
this.__parent.__construct.call(this);
|
|
122
128
|
this.kb = [];
|
|
123
|
-
}, addLoader:function(
|
|
124
|
-
this.kb.push(
|
|
125
|
-
}, loadContents:function(
|
|
126
|
-
for (let
|
|
127
|
-
if (
|
|
129
|
+
}, addLoader:function(f) {
|
|
130
|
+
this.kb.push(f);
|
|
131
|
+
}, loadContents:function(f, g) {
|
|
132
|
+
for (let k of this.kb) {
|
|
133
|
+
if (k.loadContents(f, g)) {
|
|
128
134
|
return !0;
|
|
129
135
|
}
|
|
130
136
|
}
|
|
131
137
|
return !1;
|
|
132
138
|
},});
|
|
133
|
-
let
|
|
134
|
-
m.computeAlignment = function(
|
|
135
|
-
return
|
|
139
|
+
let e = m.computeAlignment;
|
|
140
|
+
m.computeAlignment = function(f, g, k, p, n = 1.0) {
|
|
141
|
+
return e.call(this, f, g, k, p, n);
|
|
136
142
|
};
|
|
137
143
|
};
|
|
138
|
-
const
|
|
144
|
+
const ma = "createConicGradient createImageData createLinearGradient createPattern createRadialGradient getContextAttributes getImageData getLineDash getTransform isContextLost isPointInPath isPointInStroke measureText".split(" "), na = new function() {
|
|
139
145
|
function a() {
|
|
140
146
|
if (!b) {
|
|
141
147
|
var l = document.createElement("canvas"), u = {alpha:1, depth:0, stencil:0, antialias:0, premultipliedAlpha:1, preserveDrawingBuffer:0, powerPreference:"high-performance", failIfMajorPerformanceCaveat:0, enableExtensionsByDefault:1, explicitSwapControl:1, renderViaOffscreenBackBuffer:1,};
|
|
@@ -232,7 +238,7 @@ const la = "createConicGradient createImageData createLinearGradient createPatte
|
|
|
232
238
|
2 == c ? (b.texParameteri(b.TEXTURE_2D, b.TEXTURE_MIN_FILTER, b.LINEAR_MIPMAP_LINEAR), b.generateMipmap(b.TEXTURE_2D)) : b.texParameteri(b.TEXTURE_2D, b.TEXTURE_MIN_FILTER, b.LINEAR);
|
|
233
239
|
return u;
|
|
234
240
|
};
|
|
235
|
-
const n = new
|
|
241
|
+
const n = new ka(8), t = new ka(8), x = new ka(10), y = new ka(10);
|
|
236
242
|
this.Nb = function(l, u, r, D, I) {
|
|
237
243
|
if (a()) {
|
|
238
244
|
var w = n.push(l), L = t.push(u);
|
|
@@ -245,7 +251,7 @@ const la = "createConicGradient createImageData createLinearGradient createPatte
|
|
|
245
251
|
b.clearColor(0, 0, 0, 0);
|
|
246
252
|
b.clear(b.COLOR_BUFFER_BIT);
|
|
247
253
|
b.enable(b.SCISSOR_TEST);
|
|
248
|
-
r.sort((K,
|
|
254
|
+
r.sort((K, aa) => aa.vb - K.vb);
|
|
249
255
|
w = x.push(D);
|
|
250
256
|
g != w && (b.bufferData(b.ARRAY_BUFFER, 8 * w, b.DYNAMIC_DRAW), g = w);
|
|
251
257
|
w = 0;
|
|
@@ -271,9 +277,9 @@ const la = "createConicGradient createImageData createLinearGradient createPatte
|
|
|
271
277
|
K.image.Ja != qa && (b.bindTexture(b.TEXTURE_2D, K.image.Ia || null), qa = K.image.Ja);
|
|
272
278
|
K.hc ? (b.scissor(K.Za, L - K.$a - K.jb, K.uc, K.jb), V = !0) : V && (b.scissor(0, L - u, l, u), V = !1);
|
|
273
279
|
r = 2 / l;
|
|
274
|
-
const
|
|
275
|
-
b.uniform4f(e, K.ha[0] * r * K.Aa, K.ha[1] *
|
|
276
|
-
b.uniform2f(f, K.ha[4] * r * K.Aa + r * (K.Za - K.cc * K.Aa) - 1, K.ha[5] *
|
|
280
|
+
const aa = -2 / u;
|
|
281
|
+
b.uniform4f(e, K.ha[0] * r * K.Aa, K.ha[1] * aa * K.Ba, K.ha[2] * r * K.Aa, K.ha[3] * aa * K.Ba);
|
|
282
|
+
b.uniform2f(f, K.ha[4] * r * K.Aa + r * (K.Za - K.cc * K.Aa) - 1, K.ha[5] * aa * K.Ba + aa * (K.$a - K.dc * K.Ba) + 1);
|
|
277
283
|
b.vertexAttribPointer(0, 2, b.FLOAT, !1, 0, w);
|
|
278
284
|
b.vertexAttribPointer(1, 2, b.FLOAT, !1, 0, w + 4 * D);
|
|
279
285
|
b.drawElements(b.TRIANGLES, K.indices.length, b.UNSIGNED_SHORT, R);
|
|
@@ -288,7 +294,7 @@ const la = "createConicGradient createImageData createLinearGradient createPatte
|
|
|
288
294
|
this.canvas = function() {
|
|
289
295
|
return a() && b.canvas;
|
|
290
296
|
};
|
|
291
|
-
}(),
|
|
297
|
+
}(), oa = m.onRuntimeInitialized;
|
|
292
298
|
m.onRuntimeInitialized = function() {
|
|
293
299
|
function a(q) {
|
|
294
300
|
switch(q) {
|
|
@@ -330,7 +336,7 @@ m.onRuntimeInitialized = function() {
|
|
|
330
336
|
return "rgba(" + ((16711680 & q) >>> 16) + "," + ((65280 & q) >>> 8) + "," + ((255 & q) >>> 0) + "," + ((4278190080 & q) >>> 24) / 255 + ")";
|
|
331
337
|
}
|
|
332
338
|
function c() {
|
|
333
|
-
0 < L.length && (
|
|
339
|
+
0 < L.length && (na.Nb(w.drawWidth(), w.drawHeight(), L, R, V), L = [], V = R = 0, w.reset(512, 512));
|
|
334
340
|
for (const q of I) {
|
|
335
341
|
for (const v of q.I) {
|
|
336
342
|
v();
|
|
@@ -339,7 +345,7 @@ m.onRuntimeInitialized = function() {
|
|
|
339
345
|
}
|
|
340
346
|
I.clear();
|
|
341
347
|
}
|
|
342
|
-
|
|
348
|
+
oa && oa();
|
|
343
349
|
var d = m.RenderPaintStyle;
|
|
344
350
|
const e = m.RenderPath, f = m.RenderPaint, g = m.Renderer, k = m.StrokeCap, p = m.StrokeJoin, n = m.BlendMode, t = d.fill, x = d.stroke, y = m.FillRule.evenOdd;
|
|
345
351
|
let l = 1;
|
|
@@ -350,7 +356,7 @@ m.onRuntimeInitialized = function() {
|
|
|
350
356
|
this.la = q;
|
|
351
357
|
this.wa = v;
|
|
352
358
|
}, __destruct:function() {
|
|
353
|
-
this.Ia && (
|
|
359
|
+
this.Ia && (na.Kb(this.Ia), URL.revokeObjectURL(this.Wa));
|
|
354
360
|
this.__parent.__destruct.call(this);
|
|
355
361
|
}, decode:function(q) {
|
|
356
362
|
var v = this;
|
|
@@ -359,7 +365,7 @@ m.onRuntimeInitialized = function() {
|
|
|
359
365
|
v.Wa = URL.createObjectURL(new Blob([q], {type:"image/png",}));
|
|
360
366
|
J.onload = function() {
|
|
361
367
|
v.Db = J;
|
|
362
|
-
v.Ia =
|
|
368
|
+
v.Ia = na.Jb(J);
|
|
363
369
|
v.size(J.width, J.height);
|
|
364
370
|
v.la && v.la(v);
|
|
365
371
|
};
|
|
@@ -441,7 +447,7 @@ m.onRuntimeInitialized = function() {
|
|
|
441
447
|
var T = E.eb;
|
|
442
448
|
G = E.Qa;
|
|
443
449
|
E.ac ? (E = ha - H, T -= X, H = q.createRadialGradient(H, X, 0, H, X, Math.sqrt(E * E + T * T))) : H = q.createLinearGradient(H, X, ha, T);
|
|
444
|
-
for (let Y = 0,
|
|
450
|
+
for (let Y = 0, ba = G.length; Y < ba; Y++) {
|
|
445
451
|
E = G[Y], H.addColorStop(E.stop, b(E.color));
|
|
446
452
|
}
|
|
447
453
|
this.Xa = H;
|
|
@@ -510,37 +516,37 @@ m.onRuntimeInitialized = function() {
|
|
|
510
516
|
for (let G = 0; 6 > G; ++G) {
|
|
511
517
|
q[G] = v[J + G];
|
|
512
518
|
}
|
|
513
|
-
}, _drawImageMesh:function(q, v, J, G, A, H, E, M, ya, T, X, ha, Y,
|
|
519
|
+
}, _drawImageMesh:function(q, v, J, G, A, H, E, M, ya, T, X, ha, Y, ba) {
|
|
514
520
|
let ac, bc, cc;
|
|
515
521
|
try {
|
|
516
522
|
ac = m.HEAPF32.slice(A >> 2, (A >> 2) + H), bc = m.HEAPF32.slice(E >> 2, (E >> 2) + M), cc = m.HEAPU16.slice(ya >> 1, (ya >> 1) + T);
|
|
517
|
-
} catch (
|
|
523
|
+
} catch (tb) {
|
|
518
524
|
console.error("[Rive] _drawImageMesh: failed to read mesh data from WASM heap. Mesh skipped for this frame.");
|
|
519
525
|
return;
|
|
520
526
|
}
|
|
521
527
|
v = this.B.canvas.width;
|
|
522
528
|
A = this.B.canvas.height;
|
|
523
529
|
E = Y - X;
|
|
524
|
-
M =
|
|
530
|
+
M = ba - ha;
|
|
525
531
|
X = Math.max(X, 0);
|
|
526
532
|
ha = Math.max(ha, 0);
|
|
527
533
|
Y = Math.min(Y, v);
|
|
528
|
-
|
|
529
|
-
const Ga = Y - X, Ha =
|
|
534
|
+
ba = Math.min(ba, A);
|
|
535
|
+
const Ga = Y - X, Ha = ba - ha;
|
|
530
536
|
console.assert(Ga <= Math.min(E, v));
|
|
531
537
|
console.assert(Ha <= Math.min(M, A));
|
|
532
538
|
if (!(0 >= Ga || 0 >= Ha)) {
|
|
533
539
|
Y = Ga < E || Ha < M;
|
|
534
|
-
v =
|
|
535
|
-
var ra = Math.ceil(Ga *
|
|
536
|
-
A =
|
|
537
|
-
ra > A && (
|
|
540
|
+
v = ba = 1;
|
|
541
|
+
var ra = Math.ceil(Ga * ba), sa = Math.ceil(Ha * v);
|
|
542
|
+
A = na.bc();
|
|
543
|
+
ra > A && (ba *= A / ra, ra = A);
|
|
538
544
|
sa > A && (v *= A / sa, sa = A);
|
|
539
545
|
w || (w = new m.DynamicRectanizer(A), w.reset(512, 512));
|
|
540
546
|
A = w.addRect(ra, sa);
|
|
541
547
|
0 > A && (c(), I.add(this), A = w.addRect(ra, sa), console.assert(0 <= A));
|
|
542
548
|
var dc = A & 65535, ec = A >> 16;
|
|
543
|
-
L.push({ha:this.T.slice(this.T.length - 6), image:q, Za:dc, $a:ec, cc:X, dc:ha, uc:ra, jb:sa, Aa:
|
|
549
|
+
L.push({ha:this.T.slice(this.T.length - 6), image:q, Za:dc, $a:ec, cc:X, dc:ha, uc:ra, jb:sa, Aa:ba, Ba:v, Ta:ac, Bb:bc, indices:cc, hc:Y, vb:q.Ja << 1 | (Y ? 1 : 0),});
|
|
544
550
|
R += H;
|
|
545
551
|
V += T;
|
|
546
552
|
var za = this.B, rd = a(J), sd = Math.max(0, G * this.G[this.G.length - 1]);
|
|
@@ -549,8 +555,8 @@ m.onRuntimeInitialized = function() {
|
|
|
549
555
|
za.resetTransform();
|
|
550
556
|
za.globalCompositeOperation = rd;
|
|
551
557
|
za.globalAlpha = sd;
|
|
552
|
-
const
|
|
553
|
-
|
|
558
|
+
const tb = na.canvas();
|
|
559
|
+
tb && za.drawImage(tb, dc, ec, ra, sa, X, ha, Ga, Ha);
|
|
554
560
|
za.restore();
|
|
555
561
|
});
|
|
556
562
|
}
|
|
@@ -572,7 +578,7 @@ m.onRuntimeInitialized = function() {
|
|
|
572
578
|
};
|
|
573
579
|
}
|
|
574
580
|
if ("function" === typeof J[A]) {
|
|
575
|
-
if (-1 <
|
|
581
|
+
if (-1 < ma.indexOf(A)) {
|
|
576
582
|
throw Error("RiveException: Method call to '" + A + "()' is not allowed, as the renderer cannot immediately pass through the return values of any canvas 2d context methods.");
|
|
577
583
|
}
|
|
578
584
|
return function(...H) {
|
|
@@ -596,7 +602,7 @@ m.onRuntimeInitialized = function() {
|
|
|
596
602
|
}, makeRenderPath:function() {
|
|
597
603
|
return new r();
|
|
598
604
|
}, makeRenderImage:function() {
|
|
599
|
-
let q =
|
|
605
|
+
let q = aa;
|
|
600
606
|
return new u({wa:() => {
|
|
601
607
|
q.total++;
|
|
602
608
|
}, la:() => {
|
|
@@ -607,25 +613,25 @@ m.onRuntimeInitialized = function() {
|
|
|
607
613
|
}
|
|
608
614
|
},});
|
|
609
615
|
},};
|
|
610
|
-
let K = m.load,
|
|
616
|
+
let K = m.load, aa = null;
|
|
611
617
|
m.load = function(q, v, J = !0) {
|
|
612
618
|
const G = new m.FallbackFileAssetLoader();
|
|
613
619
|
void 0 !== v && G.addLoader(v);
|
|
614
620
|
J && (v = new m.CDNFileAssetLoader(), G.addLoader(v));
|
|
615
621
|
return new Promise(function(A) {
|
|
616
622
|
let H = null;
|
|
617
|
-
|
|
623
|
+
aa = {total:0, loaded:0, ready:function() {
|
|
618
624
|
A(H);
|
|
619
625
|
},};
|
|
620
626
|
H = K(q, G);
|
|
621
|
-
0 ==
|
|
627
|
+
0 == aa.total && A(H);
|
|
622
628
|
});
|
|
623
629
|
};
|
|
624
630
|
let td = m.RendererWrapper.prototype.align;
|
|
625
631
|
m.RendererWrapper.prototype.align = function(q, v, J, G, A = 1.0) {
|
|
626
632
|
td.call(this, q, v, J, G, A);
|
|
627
633
|
};
|
|
628
|
-
d = new
|
|
634
|
+
d = new ja();
|
|
629
635
|
m.requestAnimationFrame = d.requestAnimationFrame.bind(d);
|
|
630
636
|
m.cancelAnimationFrame = d.cancelAnimationFrame.bind(d);
|
|
631
637
|
m.enableFPSCounter = d.Ob.bind(d);
|
|
@@ -636,16 +642,16 @@ m.onRuntimeInitialized = function() {
|
|
|
636
642
|
w && w.delete();
|
|
637
643
|
};
|
|
638
644
|
};
|
|
639
|
-
var
|
|
640
|
-
if (
|
|
641
|
-
|
|
645
|
+
var pa = Object.assign({}, m), ta = "./this.program", ua = "", va, wa;
|
|
646
|
+
if (fa || ia) {
|
|
647
|
+
ia ? ua = self.location.href : "undefined" != typeof document && document.currentScript && (ua = document.currentScript.src), _scriptName && (ua = _scriptName), ua.startsWith("blob:") ? ua = "" : ua = ua.substr(0, ua.replace(/[?#].*/, "").lastIndexOf("/") + 1), ia && (wa = a => {
|
|
642
648
|
var b = new XMLHttpRequest();
|
|
643
649
|
b.open("GET", a, !1);
|
|
644
650
|
b.responseType = "arraybuffer";
|
|
645
651
|
b.send(null);
|
|
646
652
|
return new Uint8Array(b.response);
|
|
647
|
-
}),
|
|
648
|
-
if (
|
|
653
|
+
}), va = (a, b, c) => {
|
|
654
|
+
if (xa(a)) {
|
|
649
655
|
var d = new XMLHttpRequest();
|
|
650
656
|
d.open("GET", a, !0);
|
|
651
657
|
d.responseType = "arraybuffer";
|
|
@@ -659,75 +665,75 @@ if (ea || fa) {
|
|
|
659
665
|
}
|
|
660
666
|
};
|
|
661
667
|
}
|
|
662
|
-
var
|
|
663
|
-
Object.assign(m,
|
|
664
|
-
|
|
665
|
-
m.thisProgram && (
|
|
666
|
-
var
|
|
667
|
-
m.wasmBinary && (
|
|
668
|
-
var
|
|
669
|
-
function
|
|
670
|
-
var a =
|
|
668
|
+
var Aa = m.print || console.log.bind(console), Ba = m.printErr || console.error.bind(console);
|
|
669
|
+
Object.assign(m, pa);
|
|
670
|
+
pa = null;
|
|
671
|
+
m.thisProgram && (ta = m.thisProgram);
|
|
672
|
+
var Ca;
|
|
673
|
+
m.wasmBinary && (Ca = m.wasmBinary);
|
|
674
|
+
var Da, Ea = !1, z, B, Fa, Ia, C, F, Ja, Ka;
|
|
675
|
+
function La() {
|
|
676
|
+
var a = Da.buffer;
|
|
671
677
|
m.HEAP8 = z = new Int8Array(a);
|
|
672
|
-
m.HEAP16 =
|
|
678
|
+
m.HEAP16 = Fa = new Int16Array(a);
|
|
673
679
|
m.HEAPU8 = B = new Uint8Array(a);
|
|
674
|
-
m.HEAPU16 =
|
|
680
|
+
m.HEAPU16 = Ia = new Uint16Array(a);
|
|
675
681
|
m.HEAP32 = C = new Int32Array(a);
|
|
676
682
|
m.HEAPU32 = F = new Uint32Array(a);
|
|
677
|
-
m.HEAPF32 =
|
|
678
|
-
m.HEAPF64 =
|
|
683
|
+
m.HEAPF32 = Ja = new Float32Array(a);
|
|
684
|
+
m.HEAPF64 = Ka = new Float64Array(a);
|
|
679
685
|
}
|
|
680
|
-
var
|
|
681
|
-
function
|
|
686
|
+
var Ma = [], Na = [], Oa = [];
|
|
687
|
+
function Pa() {
|
|
682
688
|
var a = m.preRun.shift();
|
|
683
|
-
|
|
689
|
+
Ma.unshift(a);
|
|
684
690
|
}
|
|
685
|
-
var
|
|
686
|
-
function
|
|
691
|
+
var Qa = 0, Ra = null, Sa = null;
|
|
692
|
+
function Ta(a) {
|
|
687
693
|
m.onAbort?.(a);
|
|
688
694
|
a = "Aborted(" + a + ")";
|
|
689
|
-
|
|
690
|
-
|
|
695
|
+
Ba(a);
|
|
696
|
+
Ea = !0;
|
|
691
697
|
a = new WebAssembly.RuntimeError(a + ". Build with -sASSERTIONS for more info.");
|
|
692
|
-
|
|
698
|
+
da(a);
|
|
693
699
|
throw a;
|
|
694
700
|
}
|
|
695
|
-
var
|
|
696
|
-
function
|
|
697
|
-
if (a ==
|
|
698
|
-
return new Uint8Array(
|
|
701
|
+
var Ua = a => a.startsWith("data:application/octet-stream;base64,"), xa = a => a.startsWith("file://"), Va;
|
|
702
|
+
function Wa(a) {
|
|
703
|
+
if (a == Va && Ca) {
|
|
704
|
+
return new Uint8Array(Ca);
|
|
699
705
|
}
|
|
700
|
-
if (
|
|
701
|
-
return
|
|
706
|
+
if (wa) {
|
|
707
|
+
return wa(a);
|
|
702
708
|
}
|
|
703
709
|
throw "both async and sync fetching of the wasm failed";
|
|
704
710
|
}
|
|
705
|
-
function
|
|
706
|
-
return
|
|
707
|
-
|
|
711
|
+
function Xa(a) {
|
|
712
|
+
return Ca ? Promise.resolve().then(() => Wa(a)) : new Promise((b, c) => {
|
|
713
|
+
va(a, d => b(new Uint8Array(d)), () => {
|
|
708
714
|
try {
|
|
709
|
-
b(
|
|
715
|
+
b(Wa(a));
|
|
710
716
|
} catch (d) {
|
|
711
717
|
c(d);
|
|
712
718
|
}
|
|
713
719
|
});
|
|
714
720
|
});
|
|
715
721
|
}
|
|
716
|
-
function
|
|
717
|
-
return
|
|
718
|
-
|
|
719
|
-
|
|
722
|
+
function Ya(a, b, c) {
|
|
723
|
+
return Xa(a).then(d => WebAssembly.instantiate(d, b)).then(c, d => {
|
|
724
|
+
Ba(`failed to asynchronously prepare wasm: ${d}`);
|
|
725
|
+
Ta(d);
|
|
720
726
|
});
|
|
721
727
|
}
|
|
722
|
-
function
|
|
723
|
-
var c =
|
|
724
|
-
return
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
return
|
|
728
|
+
function Za(a, b) {
|
|
729
|
+
var c = Va;
|
|
730
|
+
return Ca || "function" != typeof WebAssembly.instantiateStreaming || Ua(c) || xa(c) || "function" != typeof fetch ? Ya(c, a, b) : fetch(c, {credentials:"same-origin"}).then(d => WebAssembly.instantiateStreaming(d, a).then(b, function(e) {
|
|
731
|
+
Ba(`wasm streaming compile failed: ${e}`);
|
|
732
|
+
Ba("falling back to ArrayBuffer instantiation");
|
|
733
|
+
return Ya(c, a, b);
|
|
728
734
|
}));
|
|
729
735
|
}
|
|
730
|
-
var
|
|
736
|
+
var $a, ab, eb = {479682:(a, b, c, d, e) => {
|
|
731
737
|
if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
|
|
732
738
|
return 0;
|
|
733
739
|
}
|
|
@@ -775,7 +781,7 @@ var Za, $a, db = {478802:(a, b, c, d, e) => {
|
|
|
775
781
|
for (var g = 0; g < f.D.length; ++g) {
|
|
776
782
|
var k = f.D[g];
|
|
777
783
|
null != k && null != k.L && k.state === f.ga.wb && k.L.resume().then(() => {
|
|
778
|
-
|
|
784
|
+
bb(k.pb);
|
|
779
785
|
}, p => {
|
|
780
786
|
console.error("Failed to resume audiocontext", p);
|
|
781
787
|
});
|
|
@@ -790,11 +796,11 @@ var Za, $a, db = {478802:(a, b, c, d, e) => {
|
|
|
790
796
|
}
|
|
791
797
|
window.h.za += 1;
|
|
792
798
|
return 1;
|
|
793
|
-
},
|
|
799
|
+
}, 481860:() => {
|
|
794
800
|
"undefined" !== typeof window.h && (window.h.Sa.map(function(a) {
|
|
795
801
|
document.removeEventListener(a, window.h.unlock, !0);
|
|
796
802
|
}), --window.h.za, 0 === window.h.za && delete window.h);
|
|
797
|
-
},
|
|
803
|
+
}, 482164:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 482268:() => {
|
|
798
804
|
try {
|
|
799
805
|
var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
|
|
800
806
|
a.close();
|
|
@@ -802,7 +808,7 @@ var Za, $a, db = {478802:(a, b, c, d, e) => {
|
|
|
802
808
|
} catch (c) {
|
|
803
809
|
return 0;
|
|
804
810
|
}
|
|
805
|
-
},
|
|
811
|
+
}, 482439:(a, b, c, d, e, f) => {
|
|
806
812
|
if ("undefined" === typeof window.h) {
|
|
807
813
|
return -1;
|
|
808
814
|
}
|
|
@@ -816,7 +822,7 @@ var Za, $a, db = {478802:(a, b, c, d, e) => {
|
|
|
816
822
|
g.Z = g.L.createScriptProcessor(d, c, b);
|
|
817
823
|
g.Z.onaudioprocess = function(p) {
|
|
818
824
|
if (null == g.ra || 0 == g.ra.length) {
|
|
819
|
-
g.ra = new Float32Array(
|
|
825
|
+
g.ra = new Float32Array(Ja.buffer, e, d * b);
|
|
820
826
|
}
|
|
821
827
|
if (a == window.h.J.capture || a == window.h.J.Ka) {
|
|
822
828
|
for (var n = 0; n < b; n += 1) {
|
|
@@ -824,10 +830,10 @@ var Za, $a, db = {478802:(a, b, c, d, e) => {
|
|
|
824
830
|
x[y * b + n] = t[y];
|
|
825
831
|
}
|
|
826
832
|
}
|
|
827
|
-
|
|
833
|
+
cb(f, d, e);
|
|
828
834
|
}
|
|
829
835
|
if (a == window.h.J.xa || a == window.h.J.Ka) {
|
|
830
|
-
for (
|
|
836
|
+
for (db(f, d, e), n = 0; n < p.outputBuffer.numberOfChannels; ++n) {
|
|
831
837
|
for (t = p.outputBuffer.getChannelData(n), x = g.ra, y = 0; y < d; y += 1) {
|
|
832
838
|
t[y] = x[y * b + n];
|
|
833
839
|
}
|
|
@@ -848,7 +854,7 @@ var Za, $a, db = {478802:(a, b, c, d, e) => {
|
|
|
848
854
|
a == window.h.J.xa && g.Z.connect(g.L.destination);
|
|
849
855
|
g.pb = f;
|
|
850
856
|
return window.h.sc(g);
|
|
851
|
-
},
|
|
857
|
+
}, 485316:a => window.h.qa(a).L.sampleRate, 485389:a => {
|
|
852
858
|
a = window.h.qa(a);
|
|
853
859
|
void 0 !== a.Z && (a.Z.onaudioprocess = function() {
|
|
854
860
|
}, a.Z.disconnect(), a.Z = void 0);
|
|
@@ -856,27 +862,27 @@ var Za, $a, db = {478802:(a, b, c, d, e) => {
|
|
|
856
862
|
a.L.close();
|
|
857
863
|
a.L = void 0;
|
|
858
864
|
a.pb = void 0;
|
|
859
|
-
},
|
|
865
|
+
}, 485789:a => {
|
|
860
866
|
window.h.Ab(a);
|
|
861
|
-
},
|
|
867
|
+
}, 485839:a => {
|
|
862
868
|
a = window.h.qa(a);
|
|
863
869
|
a.L.resume();
|
|
864
870
|
a.state = window.h.ga.wb;
|
|
865
|
-
},
|
|
871
|
+
}, 485978:a => {
|
|
866
872
|
a = window.h.qa(a);
|
|
867
873
|
a.L.suspend();
|
|
868
874
|
a.state = window.h.ga.stopped;
|
|
869
|
-
}},
|
|
875
|
+
}}, fb = a => {
|
|
870
876
|
for (; 0 < a.length;) {
|
|
871
877
|
a.shift()(m);
|
|
872
878
|
}
|
|
873
879
|
};
|
|
874
|
-
function
|
|
875
|
-
var a = C[+
|
|
876
|
-
|
|
880
|
+
function gb() {
|
|
881
|
+
var a = C[+hb >> 2];
|
|
882
|
+
hb += 4;
|
|
877
883
|
return a;
|
|
878
884
|
}
|
|
879
|
-
var
|
|
885
|
+
var ib = (a, b) => {
|
|
880
886
|
for (var c = 0, d = a.length - 1; 0 <= d; d--) {
|
|
881
887
|
var e = a[d];
|
|
882
888
|
"." === e ? a.splice(d, 1) : ".." === e ? (a.splice(d, 1), c++) : c && (a.splice(d, 1), c--);
|
|
@@ -887,12 +893,12 @@ var hb = (a, b) => {
|
|
|
887
893
|
}
|
|
888
894
|
}
|
|
889
895
|
return a;
|
|
890
|
-
},
|
|
896
|
+
}, jb = a => {
|
|
891
897
|
var b = "/" === a.charAt(0), c = "/" === a.substr(-1);
|
|
892
|
-
(a =
|
|
898
|
+
(a = ib(a.split("/").filter(d => !!d), !b).join("/")) || b || (a = ".");
|
|
893
899
|
a && c && (a += "/");
|
|
894
900
|
return (b ? "/" : "") + a;
|
|
895
|
-
},
|
|
901
|
+
}, kb = a => {
|
|
896
902
|
var b = /^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(a).slice(1);
|
|
897
903
|
a = b[0];
|
|
898
904
|
b = b[1];
|
|
@@ -901,20 +907,20 @@ var hb = (a, b) => {
|
|
|
901
907
|
}
|
|
902
908
|
b &&= b.substr(0, b.length - 1);
|
|
903
909
|
return a + b;
|
|
904
|
-
},
|
|
910
|
+
}, lb = a => {
|
|
905
911
|
if ("/" === a) {
|
|
906
912
|
return "/";
|
|
907
913
|
}
|
|
908
|
-
a =
|
|
914
|
+
a = jb(a);
|
|
909
915
|
a = a.replace(/\/$/, "");
|
|
910
916
|
var b = a.lastIndexOf("/");
|
|
911
917
|
return -1 === b ? a : a.substr(b + 1);
|
|
912
|
-
},
|
|
918
|
+
}, mb = () => {
|
|
913
919
|
if ("object" == typeof crypto && "function" == typeof crypto.getRandomValues) {
|
|
914
920
|
return a => crypto.getRandomValues(a);
|
|
915
921
|
}
|
|
916
|
-
|
|
917
|
-
},
|
|
922
|
+
Ta("initRandomDevice");
|
|
923
|
+
}, nb = a => (nb = mb())(a), ob = (...a) => {
|
|
918
924
|
for (var b = "", c = !1, d = a.length - 1; -1 <= d && !c; d--) {
|
|
919
925
|
c = 0 <= d ? a[d] : "/";
|
|
920
926
|
if ("string" != typeof c) {
|
|
@@ -926,15 +932,15 @@ var hb = (a, b) => {
|
|
|
926
932
|
b = c + "/" + b;
|
|
927
933
|
c = "/" === c.charAt(0);
|
|
928
934
|
}
|
|
929
|
-
b =
|
|
935
|
+
b = ib(b.split("/").filter(e => !!e), !c).join("/");
|
|
930
936
|
return (c ? "/" : "") + b || ".";
|
|
931
|
-
},
|
|
937
|
+
}, pb = "undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0, qb = (a, b, c) => {
|
|
932
938
|
var d = b + c;
|
|
933
939
|
for (c = b; a[c] && !(c >= d);) {
|
|
934
940
|
++c;
|
|
935
941
|
}
|
|
936
|
-
if (16 < c - b && a.buffer &&
|
|
937
|
-
return
|
|
942
|
+
if (16 < c - b && a.buffer && pb) {
|
|
943
|
+
return pb.decode(a.subarray(b, c));
|
|
938
944
|
}
|
|
939
945
|
for (d = ""; b < c;) {
|
|
940
946
|
var e = a[b++];
|
|
@@ -952,13 +958,13 @@ var hb = (a, b) => {
|
|
|
952
958
|
}
|
|
953
959
|
}
|
|
954
960
|
return d;
|
|
955
|
-
},
|
|
961
|
+
}, rb = [], sb = a => {
|
|
956
962
|
for (var b = 0, c = 0; c < a.length; ++c) {
|
|
957
963
|
var d = a.charCodeAt(c);
|
|
958
964
|
127 >= d ? b++ : 2047 >= d ? b += 2 : 55296 <= d && 57343 >= d ? (b += 4, ++c) : b += 3;
|
|
959
965
|
}
|
|
960
966
|
return b;
|
|
961
|
-
},
|
|
967
|
+
}, ub = (a, b, c, d) => {
|
|
962
968
|
if (!(0 < d)) {
|
|
963
969
|
return 0;
|
|
964
970
|
}
|
|
@@ -1002,19 +1008,19 @@ var hb = (a, b) => {
|
|
|
1002
1008
|
b[c] = 0;
|
|
1003
1009
|
return c - e;
|
|
1004
1010
|
};
|
|
1005
|
-
function
|
|
1006
|
-
var c = Array(
|
|
1007
|
-
a =
|
|
1011
|
+
function vb(a, b) {
|
|
1012
|
+
var c = Array(sb(a) + 1);
|
|
1013
|
+
a = ub(a, c, 0, c.length);
|
|
1008
1014
|
b && (c.length = a);
|
|
1009
1015
|
return c;
|
|
1010
1016
|
}
|
|
1011
|
-
var
|
|
1012
|
-
function
|
|
1013
|
-
|
|
1014
|
-
|
|
1017
|
+
var wb = [];
|
|
1018
|
+
function xb(a, b) {
|
|
1019
|
+
wb[a] = {input:[], H:[], W:b};
|
|
1020
|
+
yb(a, zb);
|
|
1015
1021
|
}
|
|
1016
|
-
var
|
|
1017
|
-
var b =
|
|
1022
|
+
var zb = {open(a) {
|
|
1023
|
+
var b = wb[a.node.ya];
|
|
1018
1024
|
if (!b) {
|
|
1019
1025
|
throw new N(43);
|
|
1020
1026
|
}
|
|
@@ -1058,36 +1064,36 @@ var yb = {open(a) {
|
|
|
1058
1064
|
}
|
|
1059
1065
|
d && (a.node.timestamp = Date.now());
|
|
1060
1066
|
return e;
|
|
1061
|
-
},},
|
|
1067
|
+
},}, Ab = {ib() {
|
|
1062
1068
|
a: {
|
|
1063
|
-
if (!
|
|
1069
|
+
if (!rb.length) {
|
|
1064
1070
|
var a = null;
|
|
1065
1071
|
"undefined" != typeof window && "function" == typeof window.prompt && (a = window.prompt("Input: "), null !== a && (a += "\n"));
|
|
1066
1072
|
if (!a) {
|
|
1067
1073
|
a = null;
|
|
1068
1074
|
break a;
|
|
1069
1075
|
}
|
|
1070
|
-
|
|
1076
|
+
rb = vb(a, !0);
|
|
1071
1077
|
}
|
|
1072
|
-
a =
|
|
1078
|
+
a = rb.shift();
|
|
1073
1079
|
}
|
|
1074
1080
|
return a;
|
|
1075
1081
|
}, Na(a, b) {
|
|
1076
|
-
null === b || 10 === b ? (
|
|
1082
|
+
null === b || 10 === b ? (Aa(qb(a.H, 0)), a.H = []) : 0 != b && a.H.push(b);
|
|
1077
1083
|
}, pa(a) {
|
|
1078
|
-
a.H && 0 < a.H.length && (
|
|
1084
|
+
a.H && 0 < a.H.length && (Aa(qb(a.H, 0)), a.H = []);
|
|
1079
1085
|
}, Yb() {
|
|
1080
1086
|
return {Ac:25856, Cc:5, zc:191, Bc:35387, yc:[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,]};
|
|
1081
1087
|
}, Zb() {
|
|
1082
1088
|
return 0;
|
|
1083
1089
|
}, $b() {
|
|
1084
1090
|
return [24, 80];
|
|
1085
|
-
},},
|
|
1086
|
-
null === b || 10 === b ? (
|
|
1091
|
+
},}, Bb = {Na(a, b) {
|
|
1092
|
+
null === b || 10 === b ? (Ba(qb(a.H, 0)), a.H = []) : 0 != b && a.H.push(b);
|
|
1087
1093
|
}, pa(a) {
|
|
1088
|
-
a.H && 0 < a.H.length && (
|
|
1094
|
+
a.H && 0 < a.H.length && (Ba(qb(a.H, 0)), a.H = []);
|
|
1089
1095
|
},};
|
|
1090
|
-
function
|
|
1096
|
+
function Cb(a, b) {
|
|
1091
1097
|
var c = a.l ? a.l.length : 0;
|
|
1092
1098
|
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));
|
|
1093
1099
|
}
|
|
@@ -1097,8 +1103,8 @@ var O = {O:null, V() {
|
|
|
1097
1103
|
if (24576 === (c & 61440) || 4096 === (c & 61440)) {
|
|
1098
1104
|
throw new N(63);
|
|
1099
1105
|
}
|
|
1100
|
-
O.O || (O.O = {dir:{node:{Y:O.j.Y, R:O.j.R, ka:O.j.ka, ua:O.j.ua, tb:O.j.tb, zb:O.j.zb, ub:O.j.ub, sb:O.j.sb, Da:O.j.Da}, stream:{ba:O.m.ba}}, file:{node:{Y:O.j.Y, R:O.j.R}, stream:{ba:O.m.ba, read:O.m.read, write:O.m.write, Ya:O.m.Ya, lb:O.m.lb, nb:O.m.nb}}, link:{node:{Y:O.j.Y, R:O.j.R, ma:O.j.ma}, stream:{}}, ab:{node:{Y:O.j.Y, R:O.j.R}, stream:
|
|
1101
|
-
c =
|
|
1106
|
+
O.O || (O.O = {dir:{node:{Y:O.j.Y, R:O.j.R, ka:O.j.ka, ua:O.j.ua, tb:O.j.tb, zb:O.j.zb, ub:O.j.ub, sb:O.j.sb, Da:O.j.Da}, stream:{ba:O.m.ba}}, file:{node:{Y:O.j.Y, R:O.j.R}, stream:{ba:O.m.ba, read:O.m.read, write:O.m.write, Ya:O.m.Ya, lb:O.m.lb, nb:O.m.nb}}, link:{node:{Y:O.j.Y, R:O.j.R, ma:O.j.ma}, stream:{}}, ab:{node:{Y:O.j.Y, R:O.j.R}, stream:Db}});
|
|
1107
|
+
c = Eb(a, b, c, d);
|
|
1102
1108
|
16384 === (c.mode & 61440) ? (c.j = O.O.dir.node, c.m = O.O.dir.stream, c.l = {}) : 32768 === (c.mode & 61440) ? (c.j = O.O.file.node, c.m = O.O.file.stream, c.v = 0, c.l = null) : 40960 === (c.mode & 61440) ? (c.j = O.O.link.node, c.m = O.O.link.stream) : 8192 === (c.mode & 61440) && (c.j = O.O.ab.node, c.m = O.O.ab.stream);
|
|
1103
1109
|
c.timestamp = Date.now();
|
|
1104
1110
|
a && (a.l[b] = c, a.timestamp = c.timestamp);
|
|
@@ -1135,13 +1141,13 @@ var O = {O:null, V() {
|
|
|
1135
1141
|
}
|
|
1136
1142
|
}
|
|
1137
1143
|
}, ka() {
|
|
1138
|
-
throw
|
|
1144
|
+
throw Fb[44];
|
|
1139
1145
|
}, ua(a, b, c, d) {
|
|
1140
1146
|
return O.createNode(a, b, c, d);
|
|
1141
1147
|
}, tb(a, b, c) {
|
|
1142
1148
|
if (16384 === (a.mode & 61440)) {
|
|
1143
1149
|
try {
|
|
1144
|
-
var d =
|
|
1150
|
+
var d = Gb(b, c);
|
|
1145
1151
|
} catch (f) {
|
|
1146
1152
|
}
|
|
1147
1153
|
if (d) {
|
|
@@ -1159,7 +1165,7 @@ var O = {O:null, V() {
|
|
|
1159
1165
|
delete a.l[b];
|
|
1160
1166
|
a.timestamp = Date.now();
|
|
1161
1167
|
}, ub(a, b) {
|
|
1162
|
-
var c =
|
|
1168
|
+
var c = Gb(a, b), d;
|
|
1163
1169
|
for (d in c.l) {
|
|
1164
1170
|
throw new N(55);
|
|
1165
1171
|
}
|
|
@@ -1212,7 +1218,7 @@ var O = {O:null, V() {
|
|
|
1212
1218
|
return a.l.set(b.subarray(c, c + d), e), d;
|
|
1213
1219
|
}
|
|
1214
1220
|
}
|
|
1215
|
-
|
|
1221
|
+
Cb(a, e + d);
|
|
1216
1222
|
if (a.l.subarray && b.subarray) {
|
|
1217
1223
|
a.l.set(b.subarray(c, c + d), e);
|
|
1218
1224
|
} else {
|
|
@@ -1229,7 +1235,7 @@ var O = {O:null, V() {
|
|
|
1229
1235
|
}
|
|
1230
1236
|
return b;
|
|
1231
1237
|
}, Ya(a, b, c) {
|
|
1232
|
-
|
|
1238
|
+
Cb(a.node, b + c);
|
|
1233
1239
|
a.node.v = Math.max(a.node.v, b + c);
|
|
1234
1240
|
}, lb(a, b, c, d, e) {
|
|
1235
1241
|
if (32768 !== (a.node.mode & 61440)) {
|
|
@@ -1241,7 +1247,7 @@ var O = {O:null, V() {
|
|
|
1241
1247
|
a.subarray ? a = a.subarray(c, c + b) : a = Array.prototype.slice.call(a, c, c + b);
|
|
1242
1248
|
}
|
|
1243
1249
|
c = !0;
|
|
1244
|
-
|
|
1250
|
+
Ta();
|
|
1245
1251
|
b = void 0;
|
|
1246
1252
|
if (!b) {
|
|
1247
1253
|
throw new N(48);
|
|
@@ -1254,17 +1260,17 @@ var O = {O:null, V() {
|
|
|
1254
1260
|
}, nb(a, b, c, d) {
|
|
1255
1261
|
O.m.write(a, b, 0, d, c, !1);
|
|
1256
1262
|
return 0;
|
|
1257
|
-
},},},
|
|
1263
|
+
},},}, Hb = (a, b) => {
|
|
1258
1264
|
var c = 0;
|
|
1259
1265
|
a && (c |= 365);
|
|
1260
1266
|
b && (c |= 146);
|
|
1261
1267
|
return c;
|
|
1262
|
-
},
|
|
1268
|
+
}, Ib = null, Jb = {}, Kb = [], Lb = 1, Mb = null, Nb = !0, N = class {
|
|
1263
1269
|
constructor(a) {
|
|
1264
1270
|
this.name = "ErrnoError";
|
|
1265
1271
|
this.aa = a;
|
|
1266
1272
|
}
|
|
1267
|
-
},
|
|
1273
|
+
}, Fb = {}, Ob = class {
|
|
1268
1274
|
constructor() {
|
|
1269
1275
|
this.h = {};
|
|
1270
1276
|
this.node = null;
|
|
@@ -1281,13 +1287,13 @@ var O = {O:null, V() {
|
|
|
1281
1287
|
set position(a) {
|
|
1282
1288
|
this.h.position = a;
|
|
1283
1289
|
}
|
|
1284
|
-
},
|
|
1290
|
+
}, Pb = class {
|
|
1285
1291
|
constructor(a, b, c, d) {
|
|
1286
1292
|
a ||= this;
|
|
1287
1293
|
this.parent = a;
|
|
1288
1294
|
this.V = a.V;
|
|
1289
1295
|
this.va = null;
|
|
1290
|
-
this.id =
|
|
1296
|
+
this.id = Lb++;
|
|
1291
1297
|
this.name = b;
|
|
1292
1298
|
this.mode = c;
|
|
1293
1299
|
this.j = {};
|
|
@@ -1307,8 +1313,8 @@ var O = {O:null, V() {
|
|
|
1307
1313
|
a ? this.mode |= 146 : this.mode &= -147;
|
|
1308
1314
|
}
|
|
1309
1315
|
};
|
|
1310
|
-
function
|
|
1311
|
-
a =
|
|
1316
|
+
function Qb(a, b = {}) {
|
|
1317
|
+
a = ob(a);
|
|
1312
1318
|
if (!a) {
|
|
1313
1319
|
return {path:"", node:null};
|
|
1314
1320
|
}
|
|
@@ -1317,17 +1323,17 @@ function Pb(a, b = {}) {
|
|
|
1317
1323
|
throw new N(32);
|
|
1318
1324
|
}
|
|
1319
1325
|
a = a.split("/").filter(g => !!g);
|
|
1320
|
-
for (var c =
|
|
1326
|
+
for (var c = Ib, d = "/", e = 0; e < a.length; e++) {
|
|
1321
1327
|
var f = e === a.length - 1;
|
|
1322
1328
|
if (f && b.parent) {
|
|
1323
1329
|
break;
|
|
1324
1330
|
}
|
|
1325
|
-
c =
|
|
1326
|
-
d =
|
|
1331
|
+
c = Gb(c, a[e]);
|
|
1332
|
+
d = jb(d + "/" + a[e]);
|
|
1327
1333
|
c.va && (!f || f && b.hb) && (c = c.va.root);
|
|
1328
1334
|
if (!f || b.gb) {
|
|
1329
1335
|
for (f = 0; 40960 === (c.mode & 61440);) {
|
|
1330
|
-
if (c =
|
|
1336
|
+
if (c = Rb(d), d = ob(kb(d), c), c = Qb(d, {Pa:b.Pa + 1}).node, 40 < f++) {
|
|
1331
1337
|
throw new N(32);
|
|
1332
1338
|
}
|
|
1333
1339
|
}
|
|
@@ -1335,7 +1341,7 @@ function Pb(a, b = {}) {
|
|
|
1335
1341
|
}
|
|
1336
1342
|
return {path:d, node:c};
|
|
1337
1343
|
}
|
|
1338
|
-
function
|
|
1344
|
+
function Sb(a) {
|
|
1339
1345
|
for (var b;;) {
|
|
1340
1346
|
if (a === a.parent) {
|
|
1341
1347
|
return a = a.V.mb, b ? "/" !== a[a.length - 1] ? `${a}/${b}` : a + b : a;
|
|
@@ -1344,18 +1350,18 @@ function Rb(a) {
|
|
|
1344
1350
|
a = a.parent;
|
|
1345
1351
|
}
|
|
1346
1352
|
}
|
|
1347
|
-
function
|
|
1353
|
+
function Tb(a, b) {
|
|
1348
1354
|
for (var c = 0, d = 0; d < b.length; d++) {
|
|
1349
1355
|
c = (c << 5) - c + b.charCodeAt(d) | 0;
|
|
1350
1356
|
}
|
|
1351
|
-
return (a + c >>> 0) %
|
|
1357
|
+
return (a + c >>> 0) % Mb.length;
|
|
1352
1358
|
}
|
|
1353
|
-
function
|
|
1354
|
-
var c = 16384 === (a.mode & 61440) ? (c =
|
|
1359
|
+
function Gb(a, b) {
|
|
1360
|
+
var c = 16384 === (a.mode & 61440) ? (c = Ub(a, "x")) ? c : a.j.ka ? 0 : 2 : 54;
|
|
1355
1361
|
if (c) {
|
|
1356
1362
|
throw new N(c);
|
|
1357
1363
|
}
|
|
1358
|
-
for (c =
|
|
1364
|
+
for (c = Mb[Tb(a.id, b)]; c; c = c.fc) {
|
|
1359
1365
|
var d = c.name;
|
|
1360
1366
|
if (c.parent.id === a.id && d === b) {
|
|
1361
1367
|
return c;
|
|
@@ -1363,19 +1369,19 @@ function Fb(a, b) {
|
|
|
1363
1369
|
}
|
|
1364
1370
|
return a.j.ka(a, b);
|
|
1365
1371
|
}
|
|
1366
|
-
function
|
|
1367
|
-
a = new
|
|
1368
|
-
b =
|
|
1369
|
-
a.fc =
|
|
1370
|
-
return
|
|
1372
|
+
function Eb(a, b, c, d) {
|
|
1373
|
+
a = new Pb(a, b, c, d);
|
|
1374
|
+
b = Tb(a.parent.id, a.name);
|
|
1375
|
+
a.fc = Mb[b];
|
|
1376
|
+
return Mb[b] = a;
|
|
1371
1377
|
}
|
|
1372
|
-
function
|
|
1378
|
+
function Vb(a) {
|
|
1373
1379
|
var b = ["r", "w", "rw"][a & 3];
|
|
1374
1380
|
a & 512 && (b += "w");
|
|
1375
1381
|
return b;
|
|
1376
1382
|
}
|
|
1377
|
-
function
|
|
1378
|
-
if (
|
|
1383
|
+
function Ub(a, b) {
|
|
1384
|
+
if (Nb) {
|
|
1379
1385
|
return 0;
|
|
1380
1386
|
}
|
|
1381
1387
|
if (!b.includes("r") || a.mode & 292) {
|
|
@@ -1387,26 +1393,26 @@ function Tb(a, b) {
|
|
|
1387
1393
|
}
|
|
1388
1394
|
return 0;
|
|
1389
1395
|
}
|
|
1390
|
-
function
|
|
1396
|
+
function Wb(a, b) {
|
|
1391
1397
|
try {
|
|
1392
|
-
return
|
|
1398
|
+
return Gb(a, b), 20;
|
|
1393
1399
|
} catch (c) {
|
|
1394
1400
|
}
|
|
1395
|
-
return
|
|
1401
|
+
return Ub(a, "wx");
|
|
1396
1402
|
}
|
|
1397
|
-
function
|
|
1398
|
-
a =
|
|
1403
|
+
function Xb(a) {
|
|
1404
|
+
a = Kb[a];
|
|
1399
1405
|
if (!a) {
|
|
1400
1406
|
throw new N(8);
|
|
1401
1407
|
}
|
|
1402
1408
|
return a;
|
|
1403
1409
|
}
|
|
1404
|
-
function
|
|
1405
|
-
a = Object.assign(new
|
|
1410
|
+
function Yb(a, b = -1) {
|
|
1411
|
+
a = Object.assign(new Ob(), a);
|
|
1406
1412
|
if (-1 == b) {
|
|
1407
1413
|
a: {
|
|
1408
1414
|
for (b = 0; 4096 >= b; b++) {
|
|
1409
|
-
if (!
|
|
1415
|
+
if (!Kb[b]) {
|
|
1410
1416
|
break a;
|
|
1411
1417
|
}
|
|
1412
1418
|
}
|
|
@@ -1414,29 +1420,29 @@ function Xb(a, b = -1) {
|
|
|
1414
1420
|
}
|
|
1415
1421
|
}
|
|
1416
1422
|
a.X = b;
|
|
1417
|
-
return
|
|
1423
|
+
return Kb[b] = a;
|
|
1418
1424
|
}
|
|
1419
|
-
function
|
|
1420
|
-
a =
|
|
1425
|
+
function Zb(a, b = -1) {
|
|
1426
|
+
a = Yb(a, b);
|
|
1421
1427
|
a.m?.Fc?.(a);
|
|
1422
1428
|
return a;
|
|
1423
1429
|
}
|
|
1424
|
-
var
|
|
1425
|
-
a.m =
|
|
1430
|
+
var Db = {open(a) {
|
|
1431
|
+
a.m = Jb[a.node.ya].m;
|
|
1426
1432
|
a.m.open?.(a);
|
|
1427
1433
|
}, ba() {
|
|
1428
1434
|
throw new N(70);
|
|
1429
1435
|
},};
|
|
1430
|
-
function
|
|
1431
|
-
|
|
1436
|
+
function yb(a, b) {
|
|
1437
|
+
Jb[a] = {m:b};
|
|
1432
1438
|
}
|
|
1433
|
-
function
|
|
1439
|
+
function $b(a, b) {
|
|
1434
1440
|
var c = "/" === b;
|
|
1435
|
-
if (c &&
|
|
1441
|
+
if (c && Ib) {
|
|
1436
1442
|
throw new N(10);
|
|
1437
1443
|
}
|
|
1438
1444
|
if (!c && b) {
|
|
1439
|
-
var d =
|
|
1445
|
+
var d = Qb(b, {hb:!1});
|
|
1440
1446
|
b = d.path;
|
|
1441
1447
|
d = d.node;
|
|
1442
1448
|
if (d.va) {
|
|
@@ -1450,15 +1456,15 @@ function Zb(a, b) {
|
|
|
1450
1456
|
a = a.V(b);
|
|
1451
1457
|
a.V = b;
|
|
1452
1458
|
b.root = a;
|
|
1453
|
-
c ?
|
|
1459
|
+
c ? Ib = a : d && (d.va = b, d.V && d.V.ec.push(b));
|
|
1454
1460
|
}
|
|
1455
|
-
function
|
|
1456
|
-
var d =
|
|
1457
|
-
a =
|
|
1461
|
+
function fc(a, b, c) {
|
|
1462
|
+
var d = Qb(a, {parent:!0}).node;
|
|
1463
|
+
a = lb(a);
|
|
1458
1464
|
if (!a || "." === a || ".." === a) {
|
|
1459
1465
|
throw new N(28);
|
|
1460
1466
|
}
|
|
1461
|
-
var e =
|
|
1467
|
+
var e = Wb(d, a);
|
|
1462
1468
|
if (e) {
|
|
1463
1469
|
throw new N(e);
|
|
1464
1470
|
}
|
|
@@ -1467,23 +1473,23 @@ function $b(a, b, c) {
|
|
|
1467
1473
|
}
|
|
1468
1474
|
return d.j.ua(d, a, b, c);
|
|
1469
1475
|
}
|
|
1470
|
-
function
|
|
1471
|
-
return
|
|
1476
|
+
function gc(a) {
|
|
1477
|
+
return fc(a, 16895, 0);
|
|
1472
1478
|
}
|
|
1473
|
-
function
|
|
1479
|
+
function hc(a, b, c) {
|
|
1474
1480
|
"undefined" == typeof c && (c = b, b = 438);
|
|
1475
|
-
|
|
1481
|
+
fc(a, b | 8192, c);
|
|
1476
1482
|
}
|
|
1477
|
-
function
|
|
1478
|
-
if (!
|
|
1483
|
+
function ic(a, b) {
|
|
1484
|
+
if (!ob(a)) {
|
|
1479
1485
|
throw new N(44);
|
|
1480
1486
|
}
|
|
1481
|
-
var c =
|
|
1487
|
+
var c = Qb(b, {parent:!0}).node;
|
|
1482
1488
|
if (!c) {
|
|
1483
1489
|
throw new N(44);
|
|
1484
1490
|
}
|
|
1485
|
-
b =
|
|
1486
|
-
var d =
|
|
1491
|
+
b = lb(b);
|
|
1492
|
+
var d = Wb(c, b);
|
|
1487
1493
|
if (d) {
|
|
1488
1494
|
throw new N(d);
|
|
1489
1495
|
}
|
|
@@ -1492,17 +1498,17 @@ function hc(a, b) {
|
|
|
1492
1498
|
}
|
|
1493
1499
|
c.j.Da(c, b, a);
|
|
1494
1500
|
}
|
|
1495
|
-
function
|
|
1496
|
-
a =
|
|
1501
|
+
function Rb(a) {
|
|
1502
|
+
a = Qb(a).node;
|
|
1497
1503
|
if (!a) {
|
|
1498
1504
|
throw new N(44);
|
|
1499
1505
|
}
|
|
1500
1506
|
if (!a.j.ma) {
|
|
1501
1507
|
throw new N(28);
|
|
1502
1508
|
}
|
|
1503
|
-
return
|
|
1509
|
+
return ob(Sb(a.parent), a.j.ma(a));
|
|
1504
1510
|
}
|
|
1505
|
-
function
|
|
1511
|
+
function jc(a, b, c) {
|
|
1506
1512
|
if ("" === a) {
|
|
1507
1513
|
throw new N(44);
|
|
1508
1514
|
}
|
|
@@ -1517,9 +1523,9 @@ function ic(a, b, c) {
|
|
|
1517
1523
|
if ("object" == typeof a) {
|
|
1518
1524
|
var e = a;
|
|
1519
1525
|
} else {
|
|
1520
|
-
a =
|
|
1526
|
+
a = jb(a);
|
|
1521
1527
|
try {
|
|
1522
|
-
e =
|
|
1528
|
+
e = Qb(a, {gb:!(b & 131072)}).node;
|
|
1523
1529
|
} catch (f) {
|
|
1524
1530
|
}
|
|
1525
1531
|
}
|
|
@@ -1530,7 +1536,7 @@ function ic(a, b, c) {
|
|
|
1530
1536
|
throw new N(20);
|
|
1531
1537
|
}
|
|
1532
1538
|
} else {
|
|
1533
|
-
e =
|
|
1539
|
+
e = fc(a, c, 0), d = !0;
|
|
1534
1540
|
}
|
|
1535
1541
|
}
|
|
1536
1542
|
if (!e) {
|
|
@@ -1540,12 +1546,12 @@ function ic(a, b, c) {
|
|
|
1540
1546
|
if (b & 65536 && 16384 !== (e.mode & 61440)) {
|
|
1541
1547
|
throw new N(54);
|
|
1542
1548
|
}
|
|
1543
|
-
if (!d && (c = e ? 40960 === (e.mode & 61440) ? 32 : 16384 === (e.mode & 61440) && ("r" !==
|
|
1549
|
+
if (!d && (c = e ? 40960 === (e.mode & 61440) ? 32 : 16384 === (e.mode & 61440) && ("r" !== Vb(b) || b & 512) ? 31 : Ub(e, Vb(b)) : 44)) {
|
|
1544
1550
|
throw new N(c);
|
|
1545
1551
|
}
|
|
1546
1552
|
if (b & 512 && !d) {
|
|
1547
1553
|
c = e;
|
|
1548
|
-
c = "string" == typeof c ?
|
|
1554
|
+
c = "string" == typeof c ? Qb(c, {gb:!0}).node : c;
|
|
1549
1555
|
if (!c.j.R) {
|
|
1550
1556
|
throw new N(63);
|
|
1551
1557
|
}
|
|
@@ -1555,18 +1561,18 @@ function ic(a, b, c) {
|
|
|
1555
1561
|
if (32768 !== (c.mode & 61440)) {
|
|
1556
1562
|
throw new N(28);
|
|
1557
1563
|
}
|
|
1558
|
-
if (d =
|
|
1564
|
+
if (d = Ub(c, "w")) {
|
|
1559
1565
|
throw new N(d);
|
|
1560
1566
|
}
|
|
1561
1567
|
c.j.R(c, {size:0, timestamp:Date.now()});
|
|
1562
1568
|
}
|
|
1563
1569
|
b &= -131713;
|
|
1564
|
-
e =
|
|
1570
|
+
e = Yb({node:e, path:Sb(e), flags:b, seekable:!0, position:0, m:e.m, tc:[], error:!1});
|
|
1565
1571
|
e.m.open && e.m.open(e);
|
|
1566
|
-
!m.logReadFiles || b & 1 || (
|
|
1572
|
+
!m.logReadFiles || b & 1 || (kc ||= {}, a in kc || (kc[a] = 1));
|
|
1567
1573
|
return e;
|
|
1568
1574
|
}
|
|
1569
|
-
function
|
|
1575
|
+
function lc(a, b, c) {
|
|
1570
1576
|
if (null === a.X) {
|
|
1571
1577
|
throw new N(8);
|
|
1572
1578
|
}
|
|
@@ -1579,13 +1585,13 @@ function kc(a, b, c) {
|
|
|
1579
1585
|
a.position = a.m.ba(a, b, c);
|
|
1580
1586
|
a.tc = [];
|
|
1581
1587
|
}
|
|
1582
|
-
var
|
|
1583
|
-
function
|
|
1584
|
-
a =
|
|
1585
|
-
var d =
|
|
1586
|
-
|
|
1587
|
-
var e =
|
|
1588
|
-
|
|
1588
|
+
var mc;
|
|
1589
|
+
function nc(a, b, c) {
|
|
1590
|
+
a = jb("/dev/" + a);
|
|
1591
|
+
var d = Hb(!!b, !!c);
|
|
1592
|
+
oc ||= 64;
|
|
1593
|
+
var e = oc++ << 8 | 0;
|
|
1594
|
+
yb(e, {open(f) {
|
|
1589
1595
|
f.seekable = !1;
|
|
1590
1596
|
}, close() {
|
|
1591
1597
|
c?.buffer?.length && c(10);
|
|
@@ -1618,13 +1624,13 @@ function mc(a, b, c) {
|
|
|
1618
1624
|
p && (f.node.timestamp = Date.now());
|
|
1619
1625
|
return n;
|
|
1620
1626
|
}});
|
|
1621
|
-
|
|
1627
|
+
hc(a, d, e);
|
|
1622
1628
|
}
|
|
1623
|
-
var
|
|
1629
|
+
var oc, pc = {}, kc, hb = void 0, qc = (a, b) => Object.defineProperty(b, "name", {value:a}), rc = [], sc = [], P, Q = a => {
|
|
1624
1630
|
if (!a) {
|
|
1625
1631
|
throw new P("Cannot use deleted val. handle = " + a);
|
|
1626
1632
|
}
|
|
1627
|
-
return
|
|
1633
|
+
return sc[a];
|
|
1628
1634
|
}, tc = a => {
|
|
1629
1635
|
switch(a) {
|
|
1630
1636
|
case void 0:
|
|
@@ -1636,13 +1642,13 @@ var nc, oc = {}, jc, gb = void 0, pc = (a, b) => Object.defineProperty(b, "name"
|
|
|
1636
1642
|
case !1:
|
|
1637
1643
|
return 8;
|
|
1638
1644
|
default:
|
|
1639
|
-
const b =
|
|
1640
|
-
|
|
1641
|
-
|
|
1645
|
+
const b = rc.pop() || sc.length;
|
|
1646
|
+
sc[b] = a;
|
|
1647
|
+
sc[b + 1] = 1;
|
|
1642
1648
|
return b;
|
|
1643
1649
|
}
|
|
1644
1650
|
}, uc = a => {
|
|
1645
|
-
var b = Error, c =
|
|
1651
|
+
var b = Error, c = qc(a, function(d) {
|
|
1646
1652
|
this.name = a;
|
|
1647
1653
|
this.message = d;
|
|
1648
1654
|
d = Error(d).stack;
|
|
@@ -1654,7 +1660,7 @@ var nc, oc = {}, jc, gb = void 0, pc = (a, b) => Object.defineProperty(b, "name"
|
|
|
1654
1660
|
return void 0 === this.message ? this.name : `${this.name}: ${this.message}`;
|
|
1655
1661
|
};
|
|
1656
1662
|
return c;
|
|
1657
|
-
}, vc, wc,
|
|
1663
|
+
}, vc, wc, S = a => {
|
|
1658
1664
|
for (var b = ""; B[a];) {
|
|
1659
1665
|
b += wc[B[a++]];
|
|
1660
1666
|
}
|
|
@@ -1675,7 +1681,7 @@ var nc, oc = {}, jc, gb = void 0, pc = (a, b) => Object.defineProperty(b, "name"
|
|
|
1675
1681
|
return b;
|
|
1676
1682
|
}, Cc = {}, Fc = a => {
|
|
1677
1683
|
a = Dc(a);
|
|
1678
|
-
var b =
|
|
1684
|
+
var b = S(a);
|
|
1679
1685
|
Ec(a);
|
|
1680
1686
|
return b;
|
|
1681
1687
|
}, Gc = (a, b) => {
|
|
@@ -1733,7 +1739,7 @@ var nc, oc = {}, jc, gb = void 0, pc = (a, b) => Object.defineProperty(b, "name"
|
|
|
1733
1739
|
function Rc(a) {
|
|
1734
1740
|
return this.fromWireType(F[a >> 2]);
|
|
1735
1741
|
}
|
|
1736
|
-
var Sc = {}, Tc = {},
|
|
1742
|
+
var Sc = {}, Tc = {}, U = (a, b, c) => {
|
|
1737
1743
|
function d(k) {
|
|
1738
1744
|
k = c(k);
|
|
1739
1745
|
if (k.length !== a.length) {
|
|
@@ -1947,8 +1953,8 @@ var hd = (a, b, c) => {
|
|
|
1947
1953
|
}, md = (a, b, c = []) => {
|
|
1948
1954
|
a.includes("j") ? (a = a.replace(/p/g, "i"), b = (0,m["dynCall_" + a])(b, ...c)) : b = ld(b)(...c);
|
|
1949
1955
|
return b;
|
|
1950
|
-
}, nd = (a, b) => (...c) => md(a, b, c),
|
|
1951
|
-
a =
|
|
1956
|
+
}, nd = (a, b) => (...c) => md(a, b, c), W = (a, b) => {
|
|
1957
|
+
a = S(a);
|
|
1952
1958
|
var c = a.includes("j") ? nd(a, b) : ld(b);
|
|
1953
1959
|
if ("function" != typeof c) {
|
|
1954
1960
|
throw new P(`unknown function pointer with signature ${a}: ${b}`);
|
|
@@ -1976,7 +1982,7 @@ function ud(a, b, c, d, e) {
|
|
|
1976
1982
|
throw new P("argTypes array size mismatch! Must at least get return value and 'this' types!");
|
|
1977
1983
|
}
|
|
1978
1984
|
var g = null !== b[1] && null !== c, k = qd(b), p = "void" !== b[0].name, n = f - 2, t = Array(n), x = [], y = [];
|
|
1979
|
-
return
|
|
1985
|
+
return qc(a, function(...l) {
|
|
1980
1986
|
if (l.length !== n) {
|
|
1981
1987
|
throw new P(`function ${a} called with ${l.length} arguments, expected ${n}`);
|
|
1982
1988
|
}
|
|
@@ -2024,9 +2030,9 @@ var vd = (a, b) => {
|
|
|
2024
2030
|
}
|
|
2025
2031
|
return bd(a.g.o, a.g.u.i, b.i);
|
|
2026
2032
|
}, yd = a => {
|
|
2027
|
-
9 < a && 0 === --
|
|
2033
|
+
9 < a && 0 === --sc[a + 1] && (sc[a] = void 0, rc.push(a));
|
|
2028
2034
|
}, zd = {name:"emscripten::val", fromWireType:a => {
|
|
2029
|
-
var b =
|
|
2035
|
+
var b = Q(a);
|
|
2030
2036
|
yd(a);
|
|
2031
2037
|
return b;
|
|
2032
2038
|
}, toWireType:(a, b) => tc(b), argPackAdvance:8, readValueFromPointer:Rc, M:null,}, Ad = (a, b, c) => {
|
|
@@ -2039,9 +2045,9 @@ var vd = (a, b) => {
|
|
|
2039
2045
|
};
|
|
2040
2046
|
case 2:
|
|
2041
2047
|
return c ? function(d) {
|
|
2042
|
-
return this.fromWireType(Ea[d >> 1]);
|
|
2043
|
-
} : function(d) {
|
|
2044
2048
|
return this.fromWireType(Fa[d >> 1]);
|
|
2049
|
+
} : function(d) {
|
|
2050
|
+
return this.fromWireType(Ia[d >> 1]);
|
|
2045
2051
|
};
|
|
2046
2052
|
case 4:
|
|
2047
2053
|
return c ? function(d) {
|
|
@@ -2062,11 +2068,11 @@ var vd = (a, b) => {
|
|
|
2062
2068
|
switch(b) {
|
|
2063
2069
|
case 4:
|
|
2064
2070
|
return function(c) {
|
|
2065
|
-
return this.fromWireType(
|
|
2071
|
+
return this.fromWireType(Ja[c >> 2]);
|
|
2066
2072
|
};
|
|
2067
2073
|
case 8:
|
|
2068
2074
|
return function(c) {
|
|
2069
|
-
return this.fromWireType(
|
|
2075
|
+
return this.fromWireType(Ka[c >> 3]);
|
|
2070
2076
|
};
|
|
2071
2077
|
default:
|
|
2072
2078
|
throw new TypeError(`invalid float width (${b}): ${a}`);
|
|
@@ -2076,7 +2082,7 @@ var vd = (a, b) => {
|
|
|
2076
2082
|
case 1:
|
|
2077
2083
|
return c ? d => z[d] : d => B[d];
|
|
2078
2084
|
case 2:
|
|
2079
|
-
return c ? d =>
|
|
2085
|
+
return c ? d => Fa[d >> 1] : d => Ia[d >> 1];
|
|
2080
2086
|
case 4:
|
|
2081
2087
|
return c ? d => C[d >> 2] : d => F[d >> 2];
|
|
2082
2088
|
default:
|
|
@@ -2084,7 +2090,7 @@ var vd = (a, b) => {
|
|
|
2084
2090
|
}
|
|
2085
2091
|
}, Dd = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void 0, Ed = (a, b) => {
|
|
2086
2092
|
var c = a >> 1;
|
|
2087
|
-
for (var d = c + b / 2; !(c >= d) &&
|
|
2093
|
+
for (var d = c + b / 2; !(c >= d) && Ia[c];) {
|
|
2088
2094
|
++c;
|
|
2089
2095
|
}
|
|
2090
2096
|
c <<= 1;
|
|
@@ -2093,7 +2099,7 @@ var vd = (a, b) => {
|
|
|
2093
2099
|
}
|
|
2094
2100
|
c = "";
|
|
2095
2101
|
for (d = 0; !(d >= b / 2); ++d) {
|
|
2096
|
-
var e =
|
|
2102
|
+
var e = Fa[a + 2 * d >> 1];
|
|
2097
2103
|
if (0 == e) {
|
|
2098
2104
|
break;
|
|
2099
2105
|
}
|
|
@@ -2109,9 +2115,9 @@ var vd = (a, b) => {
|
|
|
2109
2115
|
var d = b;
|
|
2110
2116
|
c = c < 2 * a.length ? c / 2 : a.length;
|
|
2111
2117
|
for (var e = 0; e < c; ++e) {
|
|
2112
|
-
|
|
2118
|
+
Fa[b >> 1] = a.charCodeAt(e), b += 2;
|
|
2113
2119
|
}
|
|
2114
|
-
|
|
2120
|
+
Fa[b >> 1] = 0;
|
|
2115
2121
|
return b - d;
|
|
2116
2122
|
}, Gd = a => 2 * a.length, Hd = (a, b) => {
|
|
2117
2123
|
for (var c = 0, d = ""; !(c >= b / 4);) {
|
|
@@ -2156,12 +2162,12 @@ var vd = (a, b) => {
|
|
|
2156
2162
|
a = a.toWireType(d, c);
|
|
2157
2163
|
d.length && (F[b >> 2] = tc(d));
|
|
2158
2164
|
return a;
|
|
2159
|
-
}, Ld = {},
|
|
2160
|
-
var b =
|
|
2161
|
-
return void 0 === b ?
|
|
2162
|
-
},
|
|
2163
|
-
var b =
|
|
2164
|
-
|
|
2165
|
+
}, Ld = [], Md = {}, Nd = a => {
|
|
2166
|
+
var b = Md[a];
|
|
2167
|
+
return void 0 === b ? S(a) : b;
|
|
2168
|
+
}, Od = a => {
|
|
2169
|
+
var b = Ld.length;
|
|
2170
|
+
Ld.push(a);
|
|
2165
2171
|
return b;
|
|
2166
2172
|
}, Pd = (a, b) => {
|
|
2167
2173
|
for (var c = Array(a), d = 0; d < a; ++d) {
|
|
@@ -2170,7 +2176,7 @@ var vd = (a, b) => {
|
|
|
2170
2176
|
return c;
|
|
2171
2177
|
}, Qd = Reflect.construct, Rd = a => 0 === a % 4 && (0 !== a % 100 || 0 === a % 400), Sd = [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335], Td = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334], Ud = [], Vd = {}, Xd = () => {
|
|
2172
2178
|
if (!Wd) {
|
|
2173
|
-
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", _:
|
|
2179
|
+
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", _:ta || "./this.program"}, b;
|
|
2174
2180
|
for (b in Vd) {
|
|
2175
2181
|
void 0 === Vd[b] ? delete a[b] : a[b] = Vd[b];
|
|
2176
2182
|
}
|
|
@@ -2234,8 +2240,8 @@ var vd = (a, b) => {
|
|
|
2234
2240
|
return 0 >= g(u, l) ? 0 >= g(r, l) ? l.getFullYear() + 1 : l.getFullYear() : l.getFullYear() - 1;
|
|
2235
2241
|
}
|
|
2236
2242
|
var n = F[d + 40 >> 2];
|
|
2237
|
-
d = {qc:C[d >> 2], pc:C[d + 4 >> 2], Ea:C[d + 8 >> 2], Ra:C[d + 12 >> 2], Fa:C[d + 16 >> 2], da:C[d + 20 >> 2], S:C[d + 24 >> 2], ca:C[d + 28 >> 2], Oc:C[d + 32 >> 2], oc:C[d + 36 >> 2], rc:n ? n ?
|
|
2238
|
-
c = c ?
|
|
2243
|
+
d = {qc:C[d >> 2], pc:C[d + 4 >> 2], Ea:C[d + 8 >> 2], Ra:C[d + 12 >> 2], Fa:C[d + 16 >> 2], da:C[d + 20 >> 2], S:C[d + 24 >> 2], ca:C[d + 28 >> 2], Oc:C[d + 32 >> 2], oc:C[d + 36 >> 2], rc:n ? n ? qb(B, n) : "" : ""};
|
|
2244
|
+
c = c ? qb(B, c) : "";
|
|
2239
2245
|
n = {"%c":"%a %b %d %H:%M:%S %Y", "%D":"%m/%d/%y", "%F":"%Y-%m-%d", "%h":"%b", "%r":"%I:%M:%S %p", "%R":"%H:%M", "%T":"%H:%M:%S", "%x":"%m/%d/%y", "%X":"%H:%M:%S", "%Ec":"%c", "%EC":"%C", "%Ex":"%m/%d/%y", "%EX":"%H:%M:%S", "%Ey":"%y", "%EY":"%Y", "%Od":"%d", "%Oe":"%e", "%OH":"%H", "%OI":"%I", "%Om":"%m", "%OM":"%M", "%OS":"%S", "%Ou":"%u", "%OU":"%U", "%OV":"%V", "%Ow":"%w", "%OW":"%W", "%Oy":"%y",};
|
|
2240
2246
|
for (var t in n) {
|
|
2241
2247
|
c = c.replace(new RegExp(t, "g"), n[t]);
|
|
@@ -2271,7 +2277,7 @@ var vd = (a, b) => {
|
|
|
2271
2277
|
c.includes(t) && (c = c.replace(new RegExp(t, "g"), n[t](d)));
|
|
2272
2278
|
}
|
|
2273
2279
|
c = c.replace(/\0\0/g, "%");
|
|
2274
|
-
t =
|
|
2280
|
+
t = vb(c, !1);
|
|
2275
2281
|
if (t.length > b) {
|
|
2276
2282
|
return 0;
|
|
2277
2283
|
}
|
|
@@ -2279,39 +2285,39 @@ var vd = (a, b) => {
|
|
|
2279
2285
|
return t.length - 1;
|
|
2280
2286
|
};
|
|
2281
2287
|
[44].forEach(a => {
|
|
2282
|
-
|
|
2283
|
-
|
|
2288
|
+
Fb[a] = new N(a);
|
|
2289
|
+
Fb[a].stack = "<generic error, no stack>";
|
|
2284
2290
|
});
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2291
|
+
Mb = Array(4096);
|
|
2292
|
+
$b(O, "/");
|
|
2293
|
+
gc("/tmp");
|
|
2294
|
+
gc("/home");
|
|
2295
|
+
gc("/home/web_user");
|
|
2290
2296
|
(function() {
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2297
|
+
gc("/dev");
|
|
2298
|
+
yb(259, {read:() => 0, write:(d, e, f, g) => g,});
|
|
2299
|
+
hc("/dev/null", 259);
|
|
2300
|
+
xb(1280, Ab);
|
|
2301
|
+
xb(1536, Bb);
|
|
2302
|
+
hc("/dev/tty", 1280);
|
|
2303
|
+
hc("/dev/tty1", 1536);
|
|
2298
2304
|
var a = new Uint8Array(1024), b = 0, c = () => {
|
|
2299
|
-
0 === b && (b =
|
|
2305
|
+
0 === b && (b = nb(a).byteLength);
|
|
2300
2306
|
return a[--b];
|
|
2301
2307
|
};
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2308
|
+
nc("random", c);
|
|
2309
|
+
nc("urandom", c);
|
|
2310
|
+
gc("/dev/shm");
|
|
2311
|
+
gc("/dev/shm/tmp");
|
|
2306
2312
|
})();
|
|
2307
2313
|
(function() {
|
|
2308
|
-
|
|
2309
|
-
var a =
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
var b =
|
|
2314
|
+
gc("/proc");
|
|
2315
|
+
var a = gc("/proc/self");
|
|
2316
|
+
gc("/proc/self/fd");
|
|
2317
|
+
$b({V() {
|
|
2318
|
+
var b = Eb(a, "fd", 16895, 73);
|
|
2313
2319
|
b.j = {ka(c, d) {
|
|
2314
|
-
var e =
|
|
2320
|
+
var e = Xb(+d);
|
|
2315
2321
|
c = {parent:null, V:{mb:"fake"}, j:{ma:() => e.path},};
|
|
2316
2322
|
return c.parent = c;
|
|
2317
2323
|
}};
|
|
@@ -2324,8 +2330,8 @@ P = m.BindingError = class extends Error {
|
|
|
2324
2330
|
this.name = "BindingError";
|
|
2325
2331
|
}
|
|
2326
2332
|
};
|
|
2327
|
-
|
|
2328
|
-
m.count_emval_handles = () =>
|
|
2333
|
+
sc.push(0, 1, void 0, 1, null, 1, !0, 1, !1, 1,);
|
|
2334
|
+
m.count_emval_handles = () => sc.length / 2 - 5 - rc.length;
|
|
2329
2335
|
vc = m.PureVirtualError = uc("PureVirtualError");
|
|
2330
2336
|
for (var ae = Array(256), be = 0; 256 > be; ++be) {
|
|
2331
2337
|
ae[be] = String.fromCharCode(be);
|
|
@@ -2429,43 +2435,43 @@ Object.assign(gd.prototype, {Sb(a) {
|
|
|
2429
2435
|
},});
|
|
2430
2436
|
od = m.UnboundTypeError = uc("UnboundTypeError");
|
|
2431
2437
|
var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
2432
|
-
|
|
2438
|
+
hb = c;
|
|
2433
2439
|
try {
|
|
2434
|
-
var d =
|
|
2440
|
+
var d = Xb(a);
|
|
2435
2441
|
switch(b) {
|
|
2436
2442
|
case 0:
|
|
2437
|
-
var e =
|
|
2443
|
+
var e = gb();
|
|
2438
2444
|
if (0 > e) {
|
|
2439
2445
|
break;
|
|
2440
2446
|
}
|
|
2441
|
-
for (;
|
|
2447
|
+
for (; Kb[e];) {
|
|
2442
2448
|
e++;
|
|
2443
2449
|
}
|
|
2444
|
-
return
|
|
2450
|
+
return Zb(d, e).X;
|
|
2445
2451
|
case 1:
|
|
2446
2452
|
case 2:
|
|
2447
2453
|
return 0;
|
|
2448
2454
|
case 3:
|
|
2449
2455
|
return d.flags;
|
|
2450
2456
|
case 4:
|
|
2451
|
-
return e =
|
|
2457
|
+
return e = gb(), d.flags |= e, 0;
|
|
2452
2458
|
case 12:
|
|
2453
|
-
return e =
|
|
2459
|
+
return e = gb(), Fa[e + 0 >> 1] = 2, 0;
|
|
2454
2460
|
case 13:
|
|
2455
2461
|
case 14:
|
|
2456
2462
|
return 0;
|
|
2457
2463
|
}
|
|
2458
2464
|
return -28;
|
|
2459
2465
|
} catch (f) {
|
|
2460
|
-
if ("undefined" == typeof
|
|
2466
|
+
if ("undefined" == typeof pc || "ErrnoError" !== f.name) {
|
|
2461
2467
|
throw f;
|
|
2462
2468
|
}
|
|
2463
2469
|
return -f.aa;
|
|
2464
2470
|
}
|
|
2465
2471
|
}, __syscall_ioctl:function(a, b, c) {
|
|
2466
|
-
|
|
2472
|
+
hb = c;
|
|
2467
2473
|
try {
|
|
2468
|
-
var d =
|
|
2474
|
+
var d = Xb(a);
|
|
2469
2475
|
switch(b) {
|
|
2470
2476
|
case 21509:
|
|
2471
2477
|
return d.s ? 0 : -59;
|
|
@@ -2475,7 +2481,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2475
2481
|
}
|
|
2476
2482
|
if (d.s.W.Yb) {
|
|
2477
2483
|
a = [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,];
|
|
2478
|
-
var e =
|
|
2484
|
+
var e = gb();
|
|
2479
2485
|
C[e >> 2] = 25856;
|
|
2480
2486
|
C[e + 4 >> 2] = 5;
|
|
2481
2487
|
C[e + 8 >> 2] = 191;
|
|
@@ -2496,7 +2502,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2496
2502
|
return -59;
|
|
2497
2503
|
}
|
|
2498
2504
|
if (d.s.W.Zb) {
|
|
2499
|
-
for (e =
|
|
2505
|
+
for (e = gb(), a = [], f = 0; 32 > f; f++) {
|
|
2500
2506
|
a.push(z[e + f + 17]);
|
|
2501
2507
|
}
|
|
2502
2508
|
}
|
|
@@ -2505,12 +2511,12 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2505
2511
|
if (!d.s) {
|
|
2506
2512
|
return -59;
|
|
2507
2513
|
}
|
|
2508
|
-
e =
|
|
2514
|
+
e = gb();
|
|
2509
2515
|
return C[e >> 2] = 0;
|
|
2510
2516
|
case 21520:
|
|
2511
2517
|
return d.s ? -28 : -59;
|
|
2512
2518
|
case 21531:
|
|
2513
|
-
e =
|
|
2519
|
+
e = gb();
|
|
2514
2520
|
if (!d.m.Xb) {
|
|
2515
2521
|
throw new N(59);
|
|
2516
2522
|
}
|
|
@@ -2519,7 +2525,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2519
2525
|
if (!d.s) {
|
|
2520
2526
|
return -59;
|
|
2521
2527
|
}
|
|
2522
|
-
d.s.W.$b && (f = [24, 80], e =
|
|
2528
|
+
d.s.W.$b && (f = [24, 80], e = gb(), Fa[e >> 1] = f[0], Fa[e + 2 >> 1] = f[1]);
|
|
2523
2529
|
return 0;
|
|
2524
2530
|
case 21524:
|
|
2525
2531
|
return d.s ? 0 : -59;
|
|
@@ -2529,41 +2535,41 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2529
2535
|
return -28;
|
|
2530
2536
|
}
|
|
2531
2537
|
} catch (g) {
|
|
2532
|
-
if ("undefined" == typeof
|
|
2538
|
+
if ("undefined" == typeof pc || "ErrnoError" !== g.name) {
|
|
2533
2539
|
throw g;
|
|
2534
2540
|
}
|
|
2535
2541
|
return -g.aa;
|
|
2536
2542
|
}
|
|
2537
2543
|
}, __syscall_openat:function(a, b, c, d) {
|
|
2538
|
-
|
|
2544
|
+
hb = d;
|
|
2539
2545
|
try {
|
|
2540
|
-
b = b ?
|
|
2546
|
+
b = b ? qb(B, b) : "";
|
|
2541
2547
|
var e = b;
|
|
2542
2548
|
if ("/" === e.charAt(0)) {
|
|
2543
2549
|
b = e;
|
|
2544
2550
|
} else {
|
|
2545
|
-
var f = -100 === a ? "/" :
|
|
2551
|
+
var f = -100 === a ? "/" : Xb(a).path;
|
|
2546
2552
|
if (0 == e.length) {
|
|
2547
2553
|
throw new N(44);
|
|
2548
2554
|
}
|
|
2549
|
-
b =
|
|
2555
|
+
b = jb(f + "/" + e);
|
|
2550
2556
|
}
|
|
2551
|
-
var g = d ?
|
|
2552
|
-
return
|
|
2557
|
+
var g = d ? gb() : 0;
|
|
2558
|
+
return jc(b, c, g).X;
|
|
2553
2559
|
} catch (k) {
|
|
2554
|
-
if ("undefined" == typeof
|
|
2560
|
+
if ("undefined" == typeof pc || "ErrnoError" !== k.name) {
|
|
2555
2561
|
throw k;
|
|
2556
2562
|
}
|
|
2557
2563
|
return -k.aa;
|
|
2558
2564
|
}
|
|
2559
2565
|
}, _abort_js:() => {
|
|
2560
|
-
|
|
2566
|
+
Ta("");
|
|
2561
2567
|
}, _embind_create_inheriting_constructor:(a, b, c) => {
|
|
2562
|
-
a =
|
|
2568
|
+
a = S(a);
|
|
2563
2569
|
b = Gc(b, "wrapper");
|
|
2564
|
-
c =
|
|
2570
|
+
c = Q(c);
|
|
2565
2571
|
var d = b.i, e = d.N, f = d.C.N, g = d.C.constructor;
|
|
2566
|
-
a =
|
|
2572
|
+
a = qc(a, function(...k) {
|
|
2567
2573
|
d.C.qb.forEach(function(p) {
|
|
2568
2574
|
if (this[p] === f[p]) {
|
|
2569
2575
|
throw new vc(`Pure virtual function ${p} must be implemented in JavaScript`);
|
|
@@ -2610,7 +2616,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2610
2616
|
var b = Pc[a];
|
|
2611
2617
|
delete Pc[a];
|
|
2612
2618
|
var c = b.Oa, d = b.P, e = b.fb, f = e.map(g => g.Vb).concat(e.map(g => g.lc));
|
|
2613
|
-
|
|
2619
|
+
U([a], f, g => {
|
|
2614
2620
|
var k = {};
|
|
2615
2621
|
e.forEach((p, n) => {
|
|
2616
2622
|
var t = g[n], x = p.Tb, y = p.Ub, l = g[n + e.length], u = p.kc, r = p.mc;
|
|
@@ -2643,7 +2649,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2643
2649
|
});
|
|
2644
2650
|
}, _embind_register_bigint:() => {
|
|
2645
2651
|
}, _embind_register_bool:(a, b, c, d) => {
|
|
2646
|
-
b =
|
|
2652
|
+
b = S(b);
|
|
2647
2653
|
Uc(a, {name:b, fromWireType:function(e) {
|
|
2648
2654
|
return !!e;
|
|
2649
2655
|
}, toWireType:function(e, f) {
|
|
@@ -2652,16 +2658,16 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2652
2658
|
return this.fromWireType(B[e]);
|
|
2653
2659
|
}, M:null,});
|
|
2654
2660
|
}, _embind_register_class:(a, b, c, d, e, f, g, k, p, n, t, x, y) => {
|
|
2655
|
-
t =
|
|
2656
|
-
f =
|
|
2657
|
-
k &&=
|
|
2658
|
-
n &&=
|
|
2659
|
-
y =
|
|
2661
|
+
t = S(t);
|
|
2662
|
+
f = W(e, f);
|
|
2663
|
+
k &&= W(g, k);
|
|
2664
|
+
n &&= W(p, n);
|
|
2665
|
+
y = W(x, y);
|
|
2660
2666
|
var l = $c(t);
|
|
2661
2667
|
Zc(l, function() {
|
|
2662
2668
|
pd(`Cannot construct ${t} due to unbound types`, [d]);
|
|
2663
2669
|
});
|
|
2664
|
-
|
|
2670
|
+
U([a, b, c], d ? [d] : [], u => {
|
|
2665
2671
|
u = u[0];
|
|
2666
2672
|
if (d) {
|
|
2667
2673
|
var r = u.i;
|
|
@@ -2669,7 +2675,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2669
2675
|
} else {
|
|
2670
2676
|
D = Xc.prototype;
|
|
2671
2677
|
}
|
|
2672
|
-
u =
|
|
2678
|
+
u = qc(t, function(...R) {
|
|
2673
2679
|
if (Object.getPrototypeOf(this) !== I) {
|
|
2674
2680
|
throw new P("Use 'new' to construct " + t);
|
|
2675
2681
|
}
|
|
@@ -2699,10 +2705,10 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2699
2705
|
});
|
|
2700
2706
|
}, _embind_register_class_class_function:(a, b, c, d, e, f, g) => {
|
|
2701
2707
|
var k = vd(c, d);
|
|
2702
|
-
b =
|
|
2708
|
+
b = S(b);
|
|
2703
2709
|
b = wd(b);
|
|
2704
|
-
f =
|
|
2705
|
-
|
|
2710
|
+
f = W(e, f);
|
|
2711
|
+
U([], [a], p => {
|
|
2706
2712
|
function n() {
|
|
2707
2713
|
pd(`Cannot call ${t} due to unbound types`, k);
|
|
2708
2714
|
}
|
|
@@ -2711,7 +2717,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2711
2717
|
b.startsWith("@@") && (b = Symbol[b.substring(2)]);
|
|
2712
2718
|
var x = p.i.constructor;
|
|
2713
2719
|
void 0 === x[b] ? (n.ea = c - 1, x[b] = n) : (Yc(x, b, t), x[b].A[c - 1] = n);
|
|
2714
|
-
|
|
2720
|
+
U([], k, y => {
|
|
2715
2721
|
y = ud(t, [y[0], null].concat(y.slice(1)), null, f, g);
|
|
2716
2722
|
void 0 === x[b].A ? (y.ea = c - 1, x[b] = y) : x[b].A[c - 1] = y;
|
|
2717
2723
|
if (p.i.oa) {
|
|
@@ -2724,9 +2730,9 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2724
2730
|
return [];
|
|
2725
2731
|
});
|
|
2726
2732
|
}, _embind_register_class_class_property:(a, b, c, d, e, f, g, k) => {
|
|
2727
|
-
b =
|
|
2728
|
-
f =
|
|
2729
|
-
|
|
2733
|
+
b = S(b);
|
|
2734
|
+
f = W(e, f);
|
|
2735
|
+
U([], [a], p => {
|
|
2730
2736
|
p = p[0];
|
|
2731
2737
|
var n = `${p.name}.${b}`, t = {get() {
|
|
2732
2738
|
pd(`Cannot access ${n} due to unbound types`, [c]);
|
|
@@ -2737,12 +2743,12 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2737
2743
|
throw new P(`${n} is a read-only property`);
|
|
2738
2744
|
};
|
|
2739
2745
|
Object.defineProperty(p.i.constructor, b, t);
|
|
2740
|
-
|
|
2746
|
+
U([], [c], x => {
|
|
2741
2747
|
x = x[0];
|
|
2742
2748
|
var y = {get() {
|
|
2743
2749
|
return x.fromWireType(f(d));
|
|
2744
2750
|
}, enumerable:!0};
|
|
2745
|
-
k && (k =
|
|
2751
|
+
k && (k = W(g, k), y.set = l => {
|
|
2746
2752
|
var u = [];
|
|
2747
2753
|
k(d, x.toWireType(u, l));
|
|
2748
2754
|
Qc(u);
|
|
@@ -2754,8 +2760,8 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2754
2760
|
});
|
|
2755
2761
|
}, _embind_register_class_constructor:(a, b, c, d, e, f) => {
|
|
2756
2762
|
var g = vd(b, c);
|
|
2757
|
-
e =
|
|
2758
|
-
|
|
2763
|
+
e = W(d, e);
|
|
2764
|
+
U([], [a], k => {
|
|
2759
2765
|
k = k[0];
|
|
2760
2766
|
var p = `constructor ${k.name}`;
|
|
2761
2767
|
void 0 === k.i.$ && (k.i.$ = []);
|
|
@@ -2765,7 +2771,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2765
2771
|
k.i.$[b - 1] = () => {
|
|
2766
2772
|
pd(`Cannot construct ${k.name} due to unbound types`, g);
|
|
2767
2773
|
};
|
|
2768
|
-
|
|
2774
|
+
U([], g, n => {
|
|
2769
2775
|
n.splice(1, 0, null);
|
|
2770
2776
|
k.i.$[b - 1] = ud(p, n, null, e, f);
|
|
2771
2777
|
return [];
|
|
@@ -2774,10 +2780,10 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2774
2780
|
});
|
|
2775
2781
|
}, _embind_register_class_function:(a, b, c, d, e, f, g, k) => {
|
|
2776
2782
|
var p = vd(c, d);
|
|
2777
|
-
b =
|
|
2783
|
+
b = S(b);
|
|
2778
2784
|
b = wd(b);
|
|
2779
|
-
f =
|
|
2780
|
-
|
|
2785
|
+
f = W(e, f);
|
|
2786
|
+
U([], [a], n => {
|
|
2781
2787
|
function t() {
|
|
2782
2788
|
pd(`Cannot call ${x} due to unbound types`, p);
|
|
2783
2789
|
}
|
|
@@ -2787,7 +2793,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2787
2793
|
k && n.i.qb.push(b);
|
|
2788
2794
|
var y = n.i.N, l = y[b];
|
|
2789
2795
|
void 0 === l || void 0 === l.A && l.className !== n.name && l.ea === c - 2 ? (t.ea = c - 2, t.className = n.name, y[b] = t) : (Yc(y, b, x), y[b].A[c - 2] = t);
|
|
2790
|
-
|
|
2796
|
+
U([], p, u => {
|
|
2791
2797
|
u = ud(x, u, n, f, g);
|
|
2792
2798
|
void 0 === y[b].A ? (u.ea = c - 2, y[b] = u) : y[b].A[c - 2] = u;
|
|
2793
2799
|
return [];
|
|
@@ -2795,9 +2801,9 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2795
2801
|
return [];
|
|
2796
2802
|
});
|
|
2797
2803
|
}, _embind_register_class_property:(a, b, c, d, e, f, g, k, p, n) => {
|
|
2798
|
-
b =
|
|
2799
|
-
e =
|
|
2800
|
-
|
|
2804
|
+
b = S(b);
|
|
2805
|
+
e = W(d, e);
|
|
2806
|
+
U([], [a], t => {
|
|
2801
2807
|
t = t[0];
|
|
2802
2808
|
var x = `${t.name}.${b}`, y = {get() {
|
|
2803
2809
|
pd(`Cannot access ${x} due to unbound types`, [c, g]);
|
|
@@ -2806,13 +2812,13 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2806
2812
|
throw new P(x + " is a read-only property");
|
|
2807
2813
|
};
|
|
2808
2814
|
Object.defineProperty(t.i.N, b, y);
|
|
2809
|
-
|
|
2815
|
+
U([], p ? [c, g] : [c], l => {
|
|
2810
2816
|
var u = l[0], r = {get() {
|
|
2811
2817
|
var I = xd(this, t, x + " getter");
|
|
2812
2818
|
return u.fromWireType(e(f, I));
|
|
2813
2819
|
}, enumerable:!0};
|
|
2814
2820
|
if (p) {
|
|
2815
|
-
p =
|
|
2821
|
+
p = W(k, p);
|
|
2816
2822
|
var D = l[1];
|
|
2817
2823
|
r.set = function(I) {
|
|
2818
2824
|
var w = xd(this, t, x + " setter"), L = [];
|
|
@@ -2828,7 +2834,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2828
2834
|
}, _embind_register_emval:a => Uc(a, zd), _embind_register_enum:(a, b, c, d) => {
|
|
2829
2835
|
function e() {
|
|
2830
2836
|
}
|
|
2831
|
-
b =
|
|
2837
|
+
b = S(b);
|
|
2832
2838
|
e.values = {};
|
|
2833
2839
|
Uc(a, {name:b, constructor:e, fromWireType:function(f) {
|
|
2834
2840
|
return this.constructor.values[f];
|
|
@@ -2836,29 +2842,29 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2836
2842
|
Zc(b, e);
|
|
2837
2843
|
}, _embind_register_enum_value:(a, b, c) => {
|
|
2838
2844
|
var d = Gc(a, "enum");
|
|
2839
|
-
b =
|
|
2845
|
+
b = S(b);
|
|
2840
2846
|
a = d.constructor;
|
|
2841
|
-
d = Object.create(d.constructor.prototype, {value:{value:c}, constructor:{value:
|
|
2847
|
+
d = Object.create(d.constructor.prototype, {value:{value:c}, constructor:{value:qc(`${d.name}_${b}`, function() {
|
|
2842
2848
|
})},});
|
|
2843
2849
|
a.values[c] = d;
|
|
2844
2850
|
a[b] = d;
|
|
2845
2851
|
}, _embind_register_float:(a, b, c) => {
|
|
2846
|
-
b =
|
|
2852
|
+
b = S(b);
|
|
2847
2853
|
Uc(a, {name:b, fromWireType:d => d, toWireType:(d, e) => e, argPackAdvance:8, readValueFromPointer:Bd(b, c), M:null,});
|
|
2848
2854
|
}, _embind_register_function:(a, b, c, d, e, f) => {
|
|
2849
2855
|
var g = vd(b, c);
|
|
2850
|
-
a =
|
|
2856
|
+
a = S(a);
|
|
2851
2857
|
a = wd(a);
|
|
2852
|
-
e =
|
|
2858
|
+
e = W(d, e);
|
|
2853
2859
|
Zc(a, function() {
|
|
2854
2860
|
pd(`Cannot call ${a} due to unbound types`, g);
|
|
2855
2861
|
}, b - 1);
|
|
2856
|
-
|
|
2862
|
+
U([], g, k => {
|
|
2857
2863
|
hd(a, ud(a, [k[0], null].concat(k.slice(1)), null, e, f), b - 1);
|
|
2858
2864
|
return [];
|
|
2859
2865
|
});
|
|
2860
2866
|
}, _embind_register_integer:(a, b, c, d, e) => {
|
|
2861
|
-
b =
|
|
2867
|
+
b = S(b);
|
|
2862
2868
|
-1 === e && (e = 4294967295);
|
|
2863
2869
|
e = k => k;
|
|
2864
2870
|
if (0 === d) {
|
|
@@ -2876,10 +2882,10 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2876
2882
|
return new e(z.buffer, F[f + 4 >> 2], F[f >> 2]);
|
|
2877
2883
|
}
|
|
2878
2884
|
var e = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array,][b];
|
|
2879
|
-
c =
|
|
2885
|
+
c = S(c);
|
|
2880
2886
|
Uc(a, {name:c, fromWireType:d, argPackAdvance:8, readValueFromPointer:d,}, {Wb:!0,});
|
|
2881
2887
|
}, _embind_register_std_string:(a, b) => {
|
|
2882
|
-
b =
|
|
2888
|
+
b = S(b);
|
|
2883
2889
|
var c = "std::string" === b;
|
|
2884
2890
|
Uc(a, {name:b, fromWireType:function(d) {
|
|
2885
2891
|
var e = F[d >> 2], f = d + 4;
|
|
@@ -2887,7 +2893,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2887
2893
|
for (var g = f, k = 0; k <= e; ++k) {
|
|
2888
2894
|
var p = f + k;
|
|
2889
2895
|
if (k == e || 0 == B[p]) {
|
|
2890
|
-
g = g ?
|
|
2896
|
+
g = g ? qb(B, g, p - g) : "";
|
|
2891
2897
|
if (void 0 === n) {
|
|
2892
2898
|
var n = g;
|
|
2893
2899
|
} else {
|
|
@@ -2911,11 +2917,11 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2911
2917
|
if (!(f || e instanceof Uint8Array || e instanceof Uint8ClampedArray || e instanceof Int8Array)) {
|
|
2912
2918
|
throw new P("Cannot pass non-string to std::string");
|
|
2913
2919
|
}
|
|
2914
|
-
var g = c && f ?
|
|
2920
|
+
var g = c && f ? sb(e) : e.length;
|
|
2915
2921
|
var k = ce(4 + g + 1), p = k + 4;
|
|
2916
2922
|
F[k >> 2] = g;
|
|
2917
2923
|
if (c && f) {
|
|
2918
|
-
|
|
2924
|
+
ub(e, B, p, g + 1);
|
|
2919
2925
|
} else {
|
|
2920
2926
|
if (f) {
|
|
2921
2927
|
for (f = 0; f < g; ++f) {
|
|
@@ -2937,12 +2943,12 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2937
2943
|
Ec(d);
|
|
2938
2944
|
},});
|
|
2939
2945
|
}, _embind_register_std_wstring:(a, b, c) => {
|
|
2940
|
-
c =
|
|
2946
|
+
c = S(c);
|
|
2941
2947
|
if (2 === b) {
|
|
2942
2948
|
var d = Ed;
|
|
2943
2949
|
var e = Fd;
|
|
2944
2950
|
var f = Gd;
|
|
2945
|
-
var g = k =>
|
|
2951
|
+
var g = k => Ia[k >> 1];
|
|
2946
2952
|
} else {
|
|
2947
2953
|
4 === b && (d = Hd, e = Id, f = Jd, g = k => F[k >> 2]);
|
|
2948
2954
|
}
|
|
@@ -2968,31 +2974,35 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2968
2974
|
Ec(k);
|
|
2969
2975
|
}});
|
|
2970
2976
|
}, _embind_register_value_object:(a, b, c, d, e, f) => {
|
|
2971
|
-
Pc[a] = {name:
|
|
2977
|
+
Pc[a] = {name:S(b), Oa:W(c, d), P:W(e, f), fb:[],};
|
|
2972
2978
|
}, _embind_register_value_object_field:(a, b, c, d, e, f, g, k, p, n) => {
|
|
2973
|
-
Pc[a].fb.push({Pb:
|
|
2979
|
+
Pc[a].fb.push({Pb:S(b), Vb:c, Tb:W(d, e), Ub:f, lc:g, kc:W(k, p), mc:n,});
|
|
2974
2980
|
}, _embind_register_void:(a, b) => {
|
|
2975
|
-
b =
|
|
2981
|
+
b = S(b);
|
|
2976
2982
|
Uc(a, {Jc:!0, name:b, argPackAdvance:0, fromWireType:() => {
|
|
2977
2983
|
}, toWireType:() => {
|
|
2978
2984
|
},});
|
|
2979
2985
|
}, _emscripten_get_now_is_monotonic:() => 1, _emscripten_memcpy_js:(a, b, c) => B.copyWithin(a, b, b + c), _emscripten_throw_longjmp:() => {
|
|
2980
2986
|
throw Infinity;
|
|
2981
2987
|
}, _emval_as:(a, b, c) => {
|
|
2982
|
-
a =
|
|
2988
|
+
a = Q(a);
|
|
2983
2989
|
b = Gc(b, "emval::as");
|
|
2984
2990
|
return Kd(b, c, a);
|
|
2991
|
+
}, _emval_call:(a, b, c, d) => {
|
|
2992
|
+
a = Ld[a];
|
|
2993
|
+
b = Q(b);
|
|
2994
|
+
return a(null, b, c, d);
|
|
2985
2995
|
}, _emval_call_method:(a, b, c, d, e) => {
|
|
2986
|
-
a =
|
|
2987
|
-
b =
|
|
2988
|
-
c =
|
|
2996
|
+
a = Ld[a];
|
|
2997
|
+
b = Q(b);
|
|
2998
|
+
c = Nd(c);
|
|
2989
2999
|
return a(b, b[c], d, e);
|
|
2990
3000
|
}, _emval_decref:yd, _emval_get_method_caller:(a, b, c) => {
|
|
2991
3001
|
var d = Pd(a, b), e = d.shift();
|
|
2992
3002
|
a--;
|
|
2993
3003
|
var f = Array(a);
|
|
2994
3004
|
b = `methodCaller<(${d.map(g => g.name).join(", ")}) => ${e.name}>`;
|
|
2995
|
-
return Od(
|
|
3005
|
+
return Od(qc(b, (g, k, p, n) => {
|
|
2996
3006
|
for (var t = 0, x = 0; x < a; ++x) {
|
|
2997
3007
|
f[x] = d[x].readValueFromPointer(n + t), t += d[x].argPackAdvance;
|
|
2998
3008
|
}
|
|
@@ -3000,22 +3010,22 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3000
3010
|
return Kd(e, p, g);
|
|
3001
3011
|
}));
|
|
3002
3012
|
}, _emval_get_module_property:a => {
|
|
3003
|
-
a =
|
|
3013
|
+
a = Nd(a);
|
|
3004
3014
|
return tc(m[a]);
|
|
3005
3015
|
}, _emval_get_property:(a, b) => {
|
|
3006
|
-
a =
|
|
3007
|
-
b =
|
|
3016
|
+
a = Q(a);
|
|
3017
|
+
b = Q(b);
|
|
3008
3018
|
return tc(a[b]);
|
|
3009
3019
|
}, _emval_incref:a => {
|
|
3010
|
-
9 < a && (
|
|
3011
|
-
}, _emval_new_array:() => tc([]), _emval_new_cstring:a => tc(
|
|
3012
|
-
var b =
|
|
3020
|
+
9 < a && (sc[a + 1] += 1);
|
|
3021
|
+
}, _emval_new_array:() => tc([]), _emval_new_cstring:a => tc(Nd(a)), _emval_new_object:() => tc({}), _emval_run_destructors:a => {
|
|
3022
|
+
var b = Q(a);
|
|
3013
3023
|
Qc(b);
|
|
3014
3024
|
yd(a);
|
|
3015
3025
|
}, _emval_set_property:(a, b, c) => {
|
|
3016
|
-
a =
|
|
3017
|
-
b =
|
|
3018
|
-
c =
|
|
3026
|
+
a = Q(a);
|
|
3027
|
+
b = Q(b);
|
|
3028
|
+
c = Q(c);
|
|
3019
3029
|
a[b] = c;
|
|
3020
3030
|
}, _emval_take_value:(a, b) => {
|
|
3021
3031
|
a = Gc(a, "_emval_take_value");
|
|
@@ -3054,17 +3064,17 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3054
3064
|
a = p => p.toLocaleTimeString(void 0, {hour12:!1, timeZoneName:"short"}).split(" ")[1];
|
|
3055
3065
|
f = a(f);
|
|
3056
3066
|
g = a(g);
|
|
3057
|
-
k < e ? (
|
|
3067
|
+
k < e ? (ub(f, B, c, 17), ub(g, B, d, 17)) : (ub(f, B, d, 17), ub(g, B, c, 17));
|
|
3058
3068
|
}, emscripten_asm_const_int:(a, b, c) => {
|
|
3059
3069
|
Ud.length = 0;
|
|
3060
3070
|
for (var d; d = B[b++];) {
|
|
3061
3071
|
var e = 105 != d;
|
|
3062
3072
|
e &= 112 != d;
|
|
3063
3073
|
c += e && c % 8 ? 4 : 0;
|
|
3064
|
-
Ud.push(112 == d ? F[c >> 2] : 105 == d ? C[c >> 2] :
|
|
3074
|
+
Ud.push(112 == d ? F[c >> 2] : 105 == d ? C[c >> 2] : Ka[c >> 3]);
|
|
3065
3075
|
c += e ? 8 : 4;
|
|
3066
3076
|
}
|
|
3067
|
-
return
|
|
3077
|
+
return eb[a](...Ud);
|
|
3068
3078
|
}, emscripten_date_now:() => Date.now(), emscripten_get_now:() => performance.now(), emscripten_resize_heap:a => {
|
|
3069
3079
|
var b = B.length;
|
|
3070
3080
|
a >>>= 0;
|
|
@@ -3077,10 +3087,10 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3077
3087
|
var e = Math;
|
|
3078
3088
|
d = Math.max(a, d);
|
|
3079
3089
|
a: {
|
|
3080
|
-
e = (e.min.call(e, 2147483648, d + (65536 - d % 65536) % 65536) -
|
|
3090
|
+
e = (e.min.call(e, 2147483648, d + (65536 - d % 65536) % 65536) - Da.buffer.byteLength + 65535) / 65536;
|
|
3081
3091
|
try {
|
|
3082
|
-
|
|
3083
|
-
|
|
3092
|
+
Da.grow(e);
|
|
3093
|
+
La();
|
|
3084
3094
|
var f = 1;
|
|
3085
3095
|
break a;
|
|
3086
3096
|
} catch (g) {
|
|
@@ -3113,7 +3123,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3113
3123
|
return 0;
|
|
3114
3124
|
}, fd_close:function(a) {
|
|
3115
3125
|
try {
|
|
3116
|
-
var b =
|
|
3126
|
+
var b = Xb(a);
|
|
3117
3127
|
if (null === b.X) {
|
|
3118
3128
|
throw new N(8);
|
|
3119
3129
|
}
|
|
@@ -3123,12 +3133,12 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3123
3133
|
} catch (c) {
|
|
3124
3134
|
throw c;
|
|
3125
3135
|
} finally {
|
|
3126
|
-
|
|
3136
|
+
Kb[b.X] = null;
|
|
3127
3137
|
}
|
|
3128
3138
|
b.X = null;
|
|
3129
3139
|
return 0;
|
|
3130
3140
|
} catch (c) {
|
|
3131
|
-
if ("undefined" == typeof
|
|
3141
|
+
if ("undefined" == typeof pc || "ErrnoError" !== c.name) {
|
|
3132
3142
|
throw c;
|
|
3133
3143
|
}
|
|
3134
3144
|
return c.aa;
|
|
@@ -3136,7 +3146,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3136
3146
|
}, fd_read:function(a, b, c, d) {
|
|
3137
3147
|
try {
|
|
3138
3148
|
a: {
|
|
3139
|
-
var e =
|
|
3149
|
+
var e = Xb(a);
|
|
3140
3150
|
a = b;
|
|
3141
3151
|
for (var f, g = b = 0; g < c; g++) {
|
|
3142
3152
|
var k = F[a >> 2], p = F[a + 4 >> 2];
|
|
@@ -3181,7 +3191,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3181
3191
|
F[d >> 2] = r;
|
|
3182
3192
|
return 0;
|
|
3183
3193
|
} catch (D) {
|
|
3184
|
-
if ("undefined" == typeof
|
|
3194
|
+
if ("undefined" == typeof pc || "ErrnoError" !== D.name) {
|
|
3185
3195
|
throw D;
|
|
3186
3196
|
}
|
|
3187
3197
|
return D.aa;
|
|
@@ -3192,15 +3202,15 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3192
3202
|
if (isNaN(b)) {
|
|
3193
3203
|
return 61;
|
|
3194
3204
|
}
|
|
3195
|
-
var f =
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
C[e >> 2] =
|
|
3199
|
-
C[e + 4 >> 2] =
|
|
3205
|
+
var f = Xb(a);
|
|
3206
|
+
lc(f, b, d);
|
|
3207
|
+
ab = [f.position >>> 0, ($a = f.position, 1.0 <= +Math.abs($a) ? 0.0 < $a ? +Math.floor($a / 4294967296.0) >>> 0 : ~~+Math.ceil(($a - +(~~$a >>> 0)) / 4294967296.0) >>> 0 : 0)];
|
|
3208
|
+
C[e >> 2] = ab[0];
|
|
3209
|
+
C[e + 4 >> 2] = ab[1];
|
|
3200
3210
|
f.La && 0 === b && 0 === d && (f.La = null);
|
|
3201
3211
|
return 0;
|
|
3202
3212
|
} catch (g) {
|
|
3203
|
-
if ("undefined" == typeof
|
|
3213
|
+
if ("undefined" == typeof pc || "ErrnoError" !== g.name) {
|
|
3204
3214
|
throw g;
|
|
3205
3215
|
}
|
|
3206
3216
|
return g.aa;
|
|
@@ -3208,7 +3218,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3208
3218
|
}, fd_write:function(a, b, c, d) {
|
|
3209
3219
|
try {
|
|
3210
3220
|
a: {
|
|
3211
|
-
var e =
|
|
3221
|
+
var e = Xb(a);
|
|
3212
3222
|
a = b;
|
|
3213
3223
|
for (var f, g = b = 0; g < c; g++) {
|
|
3214
3224
|
var k = F[a >> 2], p = F[a + 4 >> 2];
|
|
@@ -3229,7 +3239,7 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3229
3239
|
if (!n.m.write) {
|
|
3230
3240
|
throw new N(28);
|
|
3231
3241
|
}
|
|
3232
|
-
n.seekable && n.flags & 1024 &&
|
|
3242
|
+
n.seekable && n.flags & 1024 && lc(n, 0, 2);
|
|
3233
3243
|
var u = "undefined" != typeof y;
|
|
3234
3244
|
if (!u) {
|
|
3235
3245
|
y = n.position;
|
|
@@ -3251,53 +3261,53 @@ var ee = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3251
3261
|
F[d >> 2] = I;
|
|
3252
3262
|
return 0;
|
|
3253
3263
|
} catch (w) {
|
|
3254
|
-
if ("undefined" == typeof
|
|
3264
|
+
if ("undefined" == typeof pc || "ErrnoError" !== w.name) {
|
|
3255
3265
|
throw w;
|
|
3256
3266
|
}
|
|
3257
3267
|
return w.aa;
|
|
3258
3268
|
}
|
|
3259
3269
|
}, invoke_vii:de, isWindowsBrowser:function() {
|
|
3260
3270
|
return -1 < navigator.platform.indexOf("Win");
|
|
3261
|
-
}, strftime:$d, strftime_l:(a, b, c, d) => $d(a, b, c, d)},
|
|
3271
|
+
}, strftime:$d, strftime_l:(a, b, c, d) => $d(a, b, c, d)}, Z = function() {
|
|
3262
3272
|
function a(c) {
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
kd =
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
m.monitorRunDependencies?.(
|
|
3270
|
-
0 ==
|
|
3271
|
-
return
|
|
3273
|
+
Z = c.exports;
|
|
3274
|
+
Da = Z.memory;
|
|
3275
|
+
La();
|
|
3276
|
+
kd = Z.__indirect_function_table;
|
|
3277
|
+
Na.unshift(Z.__wasm_call_ctors);
|
|
3278
|
+
Qa--;
|
|
3279
|
+
m.monitorRunDependencies?.(Qa);
|
|
3280
|
+
0 == Qa && (null !== Ra && (clearInterval(Ra), Ra = null), Sa && (c = Sa, Sa = null, c()));
|
|
3281
|
+
return Z;
|
|
3272
3282
|
}
|
|
3273
3283
|
var b = {env:ee, wasi_snapshot_preview1:ee,};
|
|
3274
|
-
|
|
3275
|
-
m.monitorRunDependencies?.(
|
|
3284
|
+
Qa++;
|
|
3285
|
+
m.monitorRunDependencies?.(Qa);
|
|
3276
3286
|
if (m.instantiateWasm) {
|
|
3277
3287
|
try {
|
|
3278
3288
|
return m.instantiateWasm(b, a);
|
|
3279
3289
|
} catch (c) {
|
|
3280
|
-
|
|
3290
|
+
Ba(`Module.instantiateWasm callback failed with error: ${c}`), da(c);
|
|
3281
3291
|
}
|
|
3282
3292
|
}
|
|
3283
|
-
|
|
3284
|
-
|
|
3293
|
+
Va ||= Ua("canvas_advanced.wasm") ? "canvas_advanced.wasm" : m.locateFile ? m.locateFile("canvas_advanced.wasm", ua) : ua + "canvas_advanced.wasm";
|
|
3294
|
+
Za(b, function(c) {
|
|
3285
3295
|
a(c.instance);
|
|
3286
|
-
}).catch(
|
|
3296
|
+
}).catch(da);
|
|
3287
3297
|
return {};
|
|
3288
|
-
}(), Ec = a => (Ec =
|
|
3289
|
-
m._ma_malloc_emscripten = (a, b) => (m._ma_malloc_emscripten =
|
|
3290
|
-
m._ma_free_emscripten = (a, b) => (m._ma_free_emscripten =
|
|
3291
|
-
var
|
|
3292
|
-
m.dynCall_iiji = (a, b, c, d, e) => (m.dynCall_iiji =
|
|
3293
|
-
m.dynCall_jiji = (a, b, c, d, e) => (m.dynCall_jiji =
|
|
3294
|
-
m.dynCall_iiiji = (a, b, c, d, e, f) => (m.dynCall_iiiji =
|
|
3295
|
-
m.dynCall_iij = (a, b, c, d) => (m.dynCall_iij =
|
|
3296
|
-
m.dynCall_jii = (a, b, c) => (m.dynCall_jii =
|
|
3297
|
-
m.dynCall_viijii = (a, b, c, d, e, f, g) => (m.dynCall_viijii =
|
|
3298
|
-
m.dynCall_iiiiij = (a, b, c, d, e, f, g) => (m.dynCall_iiiiij =
|
|
3299
|
-
m.dynCall_iiiiijj = (a, b, c, d, e, f, g, k, p) => (m.dynCall_iiiiijj =
|
|
3300
|
-
m.dynCall_iiiiiijj = (a, b, c, d, e, f, g, k, p, n) => (m.dynCall_iiiiiijj =
|
|
3298
|
+
}(), Ec = a => (Ec = Z.free)(a), ce = a => (ce = Z.malloc)(a), Dc = a => (Dc = Z.__getTypeName)(a), bb = m._ma_device__on_notification_unlocked = a => (bb = m._ma_device__on_notification_unlocked = Z.ma_device__on_notification_unlocked)(a);
|
|
3299
|
+
m._ma_malloc_emscripten = (a, b) => (m._ma_malloc_emscripten = Z.ma_malloc_emscripten)(a, b);
|
|
3300
|
+
m._ma_free_emscripten = (a, b) => (m._ma_free_emscripten = Z.ma_free_emscripten)(a, b);
|
|
3301
|
+
var cb = m._ma_device_process_pcm_frames_capture__webaudio = (a, b, c) => (cb = m._ma_device_process_pcm_frames_capture__webaudio = Z.ma_device_process_pcm_frames_capture__webaudio)(a, b, c), db = m._ma_device_process_pcm_frames_playback__webaudio = (a, b, c) => (db = m._ma_device_process_pcm_frames_playback__webaudio = Z.ma_device_process_pcm_frames_playback__webaudio)(a, b, c), fe = (a, b) => (fe = Z.setThrew)(a, b), ge = a => (ge = Z._emscripten_stack_restore)(a), he = () => (he = Z.emscripten_stack_get_current)();
|
|
3302
|
+
m.dynCall_iiji = (a, b, c, d, e) => (m.dynCall_iiji = Z.dynCall_iiji)(a, b, c, d, e);
|
|
3303
|
+
m.dynCall_jiji = (a, b, c, d, e) => (m.dynCall_jiji = Z.dynCall_jiji)(a, b, c, d, e);
|
|
3304
|
+
m.dynCall_iiiji = (a, b, c, d, e, f) => (m.dynCall_iiiji = Z.dynCall_iiiji)(a, b, c, d, e, f);
|
|
3305
|
+
m.dynCall_iij = (a, b, c, d) => (m.dynCall_iij = Z.dynCall_iij)(a, b, c, d);
|
|
3306
|
+
m.dynCall_jii = (a, b, c) => (m.dynCall_jii = Z.dynCall_jii)(a, b, c);
|
|
3307
|
+
m.dynCall_viijii = (a, b, c, d, e, f, g) => (m.dynCall_viijii = Z.dynCall_viijii)(a, b, c, d, e, f, g);
|
|
3308
|
+
m.dynCall_iiiiij = (a, b, c, d, e, f, g) => (m.dynCall_iiiiij = Z.dynCall_iiiiij)(a, b, c, d, e, f, g);
|
|
3309
|
+
m.dynCall_iiiiijj = (a, b, c, d, e, f, g, k, p) => (m.dynCall_iiiiijj = Z.dynCall_iiiiijj)(a, b, c, d, e, f, g, k, p);
|
|
3310
|
+
m.dynCall_iiiiiijj = (a, b, c, d, e, f, g, k, p, n) => (m.dynCall_iiiiiijj = Z.dynCall_iiiiiijj)(a, b, c, d, e, f, g, k, p, n);
|
|
3301
3311
|
function de(a, b, c) {
|
|
3302
3312
|
var d = he();
|
|
3303
3313
|
try {
|
|
@@ -3311,37 +3321,37 @@ function de(a, b, c) {
|
|
|
3311
3321
|
}
|
|
3312
3322
|
}
|
|
3313
3323
|
var ie;
|
|
3314
|
-
|
|
3324
|
+
Sa = function je() {
|
|
3315
3325
|
ie || ke();
|
|
3316
|
-
ie || (
|
|
3326
|
+
ie || (Sa = je);
|
|
3317
3327
|
};
|
|
3318
3328
|
function ke() {
|
|
3319
3329
|
function a() {
|
|
3320
|
-
if (!ie && (ie = !0, m.calledRun = !0, !
|
|
3321
|
-
m.noFSInit ||
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3330
|
+
if (!ie && (ie = !0, m.calledRun = !0, !Ea)) {
|
|
3331
|
+
m.noFSInit || mc || (mc = !0, m.stdin = m.stdin, m.stdout = m.stdout, m.stderr = m.stderr, m.stdin ? nc("stdin", m.stdin) : ic("/dev/tty", "/dev/stdin"), m.stdout ? nc("stdout", null, m.stdout) : ic("/dev/tty", "/dev/stdout"), m.stderr ? nc("stderr", null, m.stderr) : ic("/dev/tty1", "/dev/stderr"), jc("/dev/stdin", 0), jc("/dev/stdout", 1), jc("/dev/stderr", 1));
|
|
3332
|
+
Nb = !1;
|
|
3333
|
+
fb(Na);
|
|
3334
|
+
ca(m);
|
|
3325
3335
|
if (m.onRuntimeInitialized) {
|
|
3326
3336
|
m.onRuntimeInitialized();
|
|
3327
3337
|
}
|
|
3328
3338
|
if (m.postRun) {
|
|
3329
3339
|
for ("function" == typeof m.postRun && (m.postRun = [m.postRun]); m.postRun.length;) {
|
|
3330
3340
|
var b = m.postRun.shift();
|
|
3331
|
-
|
|
3341
|
+
Oa.unshift(b);
|
|
3332
3342
|
}
|
|
3333
3343
|
}
|
|
3334
|
-
|
|
3344
|
+
fb(Oa);
|
|
3335
3345
|
}
|
|
3336
3346
|
}
|
|
3337
|
-
if (!(0 <
|
|
3347
|
+
if (!(0 < Qa)) {
|
|
3338
3348
|
if (m.preRun) {
|
|
3339
3349
|
for ("function" == typeof m.preRun && (m.preRun = [m.preRun]); m.preRun.length;) {
|
|
3340
|
-
|
|
3350
|
+
Pa();
|
|
3341
3351
|
}
|
|
3342
3352
|
}
|
|
3343
|
-
|
|
3344
|
-
0 <
|
|
3353
|
+
fb(Ma);
|
|
3354
|
+
0 < Qa || (m.setStatus ? (m.setStatus("Running..."), setTimeout(function() {
|
|
3345
3355
|
setTimeout(function() {
|
|
3346
3356
|
m.setStatus("");
|
|
3347
3357
|
}, 1);
|
|
@@ -3355,7 +3365,7 @@ if (m.preInit) {
|
|
|
3355
3365
|
}
|
|
3356
3366
|
}
|
|
3357
3367
|
ke();
|
|
3358
|
-
moduleRtn =
|
|
3368
|
+
moduleRtn = ea;
|
|
3359
3369
|
|
|
3360
3370
|
|
|
3361
3371
|
|