@rive-app/webgl2-advanced 2.25.2 → 2.25.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/rive.wasm +0 -0
- package/webgl2_advanced.mjs +268 -271
package/package.json
CHANGED
package/rive.wasm
CHANGED
|
Binary file
|
package/webgl2_advanced.mjs
CHANGED
|
@@ -5,17 +5,17 @@ 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) {
|
|
@@ -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.Jb = 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.Lb = function() {
|
|
47
47
|
var l = performance.now();
|
|
48
|
-
p ? (++
|
|
48
|
+
p ? (++n, l -= p, 1000 < l && (g(1000 * n / l), n = p = 0)) : (p = l, n = 0);
|
|
49
49
|
};
|
|
50
50
|
}();
|
|
51
51
|
};
|
|
@@ -67,44 +67,44 @@ function da() {
|
|
|
67
67
|
return b << 8;
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
|
-
const ea =
|
|
71
|
-
|
|
70
|
+
const ea = m.onRuntimeInitialized;
|
|
71
|
+
m.onRuntimeInitialized = function() {
|
|
72
72
|
ea && ea();
|
|
73
|
-
let a =
|
|
74
|
-
|
|
73
|
+
let a = m.decodeAudio;
|
|
74
|
+
m.decodeAudio = function(e, f) {
|
|
75
75
|
e = a(e);
|
|
76
76
|
f(e);
|
|
77
77
|
};
|
|
78
|
-
let b =
|
|
79
|
-
|
|
78
|
+
let b = m.decodeFont;
|
|
79
|
+
m.decodeFont = function(e, f) {
|
|
80
80
|
e = b(e);
|
|
81
81
|
f(e);
|
|
82
82
|
};
|
|
83
|
-
const c =
|
|
84
|
-
|
|
85
|
-
let f =
|
|
86
|
-
return f.isImage ?
|
|
83
|
+
const c = m.FileAssetLoader;
|
|
84
|
+
m.ptrToAsset = e => {
|
|
85
|
+
let f = m.ptrToFileAsset(e);
|
|
86
|
+
return f.isImage ? m.ptrToImageAsset(e) : f.isFont ? m.ptrToFontAsset(e) : f.isAudio ? m.ptrToAudioAsset(e) : f;
|
|
87
87
|
};
|
|
88
|
-
|
|
88
|
+
m.CustomFileAssetLoader = c.extend("CustomFileAssetLoader", {__construct:function({loadContents:e}) {
|
|
89
89
|
this.__parent.__construct.call(this);
|
|
90
90
|
this.Ab = e;
|
|
91
91
|
}, loadContents:function(e, f) {
|
|
92
|
-
e =
|
|
92
|
+
e = m.ptrToAsset(e);
|
|
93
93
|
return this.Ab(e, f);
|
|
94
94
|
},});
|
|
95
|
-
|
|
95
|
+
m.CDNFileAssetLoader = c.extend("CDNFileAssetLoader", {__construct:function() {
|
|
96
96
|
this.__parent.__construct.call(this);
|
|
97
97
|
}, loadContents:function(e) {
|
|
98
|
-
let f =
|
|
98
|
+
let f = m.ptrToAsset(e);
|
|
99
99
|
e = f.cdnUuid;
|
|
100
100
|
if ("" === e) {
|
|
101
101
|
return !1;
|
|
102
102
|
}
|
|
103
|
-
(function(g,
|
|
103
|
+
(function(g, n) {
|
|
104
104
|
var p = new XMLHttpRequest();
|
|
105
105
|
p.responseType = "arraybuffer";
|
|
106
106
|
p.onreadystatechange = function() {
|
|
107
|
-
4 == p.readyState && 200 == p.status &&
|
|
107
|
+
4 == p.readyState && 200 == p.status && n(p);
|
|
108
108
|
};
|
|
109
109
|
p.open("GET", g, !0);
|
|
110
110
|
p.send(null);
|
|
@@ -113,7 +113,7 @@ n.onRuntimeInitialized = function() {
|
|
|
113
113
|
});
|
|
114
114
|
return !0;
|
|
115
115
|
},});
|
|
116
|
-
|
|
116
|
+
m.FallbackFileAssetLoader = c.extend("FallbackFileAssetLoader", {__construct:function() {
|
|
117
117
|
this.__parent.__construct.call(this);
|
|
118
118
|
this.fb = [];
|
|
119
119
|
}, addLoader:function(e) {
|
|
@@ -126,13 +126,13 @@ n.onRuntimeInitialized = function() {
|
|
|
126
126
|
}
|
|
127
127
|
return !1;
|
|
128
128
|
},});
|
|
129
|
-
let d =
|
|
130
|
-
|
|
131
|
-
return d.call(this, e, f, g,
|
|
129
|
+
let d = m.computeAlignment;
|
|
130
|
+
m.computeAlignment = function(e, f, g, n, p = 1.0) {
|
|
131
|
+
return d.call(this, e, f, g, n, p);
|
|
132
132
|
};
|
|
133
133
|
};
|
|
134
|
-
const fa =
|
|
135
|
-
|
|
134
|
+
const fa = m.onRuntimeInitialized;
|
|
135
|
+
m.onRuntimeInitialized = function() {
|
|
136
136
|
function a(k) {
|
|
137
137
|
this.F = k;
|
|
138
138
|
this.yb = k.getContext("2d");
|
|
@@ -162,6 +162,8 @@ n.onRuntimeInitialized = function() {
|
|
|
162
162
|
e.add(this);
|
|
163
163
|
d.Ta || c();
|
|
164
164
|
};
|
|
165
|
+
this["delete"] = function() {
|
|
166
|
+
};
|
|
165
167
|
}
|
|
166
168
|
function b(k, q = !1) {
|
|
167
169
|
var v = {alpha:!0, depth:q, stencil:q, antialias:q, premultipliedAlpha:!0, preserveDrawingBuffer:0, powerPreference:"high-performance", failIfMajorPerformanceCaveat:0, enableExtensionsByDefault:!1, explicitSwapControl:0, renderViaOffscreenBackBuffer:0,};
|
|
@@ -196,8 +198,8 @@ n.onRuntimeInitialized = function() {
|
|
|
196
198
|
}
|
|
197
199
|
q = Math.min(q, k);
|
|
198
200
|
q = Math.min(v, k);
|
|
199
|
-
B.sort((Y,
|
|
200
|
-
y = new
|
|
201
|
+
B.sort((Y, rb) => rb.Ia - Y.Ia);
|
|
202
|
+
y = new m.DynamicRectanizer(k);
|
|
201
203
|
for (E = 0; E < B.length;) {
|
|
202
204
|
y.reset(q, v);
|
|
203
205
|
for (D = E; D < B.length; ++D) {
|
|
@@ -209,7 +211,7 @@ n.onRuntimeInitialized = function() {
|
|
|
209
211
|
H.ra = F & 65535;
|
|
210
212
|
H.sa = F >> 16;
|
|
211
213
|
}
|
|
212
|
-
H =
|
|
214
|
+
H = n.push(y.drawWidth());
|
|
213
215
|
F = p.push(y.drawHeight());
|
|
214
216
|
console.assert(H >= y.drawWidth());
|
|
215
217
|
console.assert(F >= y.drawHeight());
|
|
@@ -221,15 +223,15 @@ n.onRuntimeInitialized = function() {
|
|
|
221
223
|
for (H = E; H < D; ++H) {
|
|
222
224
|
F = B[H];
|
|
223
225
|
d.saveClipRect(F.ra, F.sa, F.ra + F.fa, F.sa + F.ea);
|
|
224
|
-
let Y = new
|
|
226
|
+
let Y = new m.Mat2D();
|
|
225
227
|
Y.xx = F.fa / F.F.width;
|
|
226
228
|
Y.yy = F.ea / F.F.height;
|
|
227
229
|
Y.xy = Y.yx = 0;
|
|
228
230
|
Y.tx = F.ra;
|
|
229
231
|
Y.ty = F.sa;
|
|
230
232
|
d.transform(Y);
|
|
231
|
-
for (const
|
|
232
|
-
|
|
233
|
+
for (const rb of F.S) {
|
|
234
|
+
rb();
|
|
233
235
|
}
|
|
234
236
|
d.restoreClipRect();
|
|
235
237
|
F.S = [];
|
|
@@ -244,8 +246,8 @@ n.onRuntimeInitialized = function() {
|
|
|
244
246
|
}
|
|
245
247
|
fa && fa();
|
|
246
248
|
let d = null;
|
|
247
|
-
const e = new Set(), f =
|
|
248
|
-
|
|
249
|
+
const e = new Set(), f = m.makeRenderer;
|
|
250
|
+
m.makeRenderer = function(k, q) {
|
|
249
251
|
if (!d) {
|
|
250
252
|
function v(y) {
|
|
251
253
|
var B = document.createElement("canvas");
|
|
@@ -265,25 +267,25 @@ n.onRuntimeInitialized = function() {
|
|
|
265
267
|
}
|
|
266
268
|
return q ? new a(k) : b(k, d.Ja);
|
|
267
269
|
};
|
|
268
|
-
const g =
|
|
269
|
-
|
|
270
|
+
const g = m.Artboard.prototype.draw;
|
|
271
|
+
m.Artboard.prototype.draw = function(k) {
|
|
270
272
|
k.S ? k.S.push(g.bind(this, k.Cb)) : g.call(this, k);
|
|
271
273
|
};
|
|
272
|
-
const
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
274
|
+
const n = new da(), p = new da(), l = new ca();
|
|
275
|
+
m.requestAnimationFrame = l.requestAnimationFrame.bind(l);
|
|
276
|
+
m.cancelAnimationFrame = l.cancelAnimationFrame.bind(l);
|
|
277
|
+
m.enableFPSCounter = l.Jb.bind(l);
|
|
276
278
|
l.jb = c;
|
|
277
|
-
|
|
278
|
-
let t =
|
|
279
|
-
|
|
280
|
-
const y = new
|
|
279
|
+
m.resolveAnimationFrame = c;
|
|
280
|
+
let t = m.load;
|
|
281
|
+
m.load = function(k, q, v = !0) {
|
|
282
|
+
const y = new m.FallbackFileAssetLoader();
|
|
281
283
|
void 0 !== q && y.addLoader(q);
|
|
282
|
-
v && (q = new
|
|
284
|
+
v && (q = new m.CDNFileAssetLoader(), y.addLoader(q));
|
|
283
285
|
return Promise.resolve(t(k, y));
|
|
284
286
|
};
|
|
285
|
-
const u =
|
|
286
|
-
|
|
287
|
+
const u = m.WebGL2Renderer.prototype.clear;
|
|
288
|
+
m.WebGL2Renderer.prototype.clear = function() {
|
|
287
289
|
ja(this.zb);
|
|
288
290
|
const k = this.F;
|
|
289
291
|
if (this.Va != k.width || this.Ua != k.height) {
|
|
@@ -291,16 +293,16 @@ n.onRuntimeInitialized = function() {
|
|
|
291
293
|
}
|
|
292
294
|
u.call(this);
|
|
293
295
|
};
|
|
294
|
-
|
|
295
|
-
k =
|
|
296
|
+
m.decodeImage = function(k, q) {
|
|
297
|
+
k = m.decodeWebGL2Image(k);
|
|
296
298
|
q(k);
|
|
297
299
|
};
|
|
298
|
-
let x =
|
|
299
|
-
|
|
300
|
+
let x = m.Renderer.prototype.align;
|
|
301
|
+
m.Renderer.prototype.align = function(k, q, v, y, B = 1.0) {
|
|
300
302
|
x.call(this, k, q, v, y, B);
|
|
301
303
|
};
|
|
302
304
|
};
|
|
303
|
-
var ka = Object.assign({},
|
|
305
|
+
var ka = Object.assign({}, m), la = "./this.program", ma = "object" == typeof window, na = "function" == typeof importScripts, w = "", oa, pa;
|
|
304
306
|
if (ma || na) {
|
|
305
307
|
na ? w = self.location.href : "undefined" != typeof document && document.currentScript && (w = document.currentScript.src), _scriptDir && (w = _scriptDir), 0 !== w.indexOf("blob:") ? w = w.substr(0, w.replace(/[?#].*/, "").lastIndexOf("/") + 1) : w = "", na && (pa = a => {
|
|
306
308
|
var b = new XMLHttpRequest();
|
|
@@ -319,35 +321,35 @@ if (ma || na) {
|
|
|
319
321
|
d.send(null);
|
|
320
322
|
};
|
|
321
323
|
}
|
|
322
|
-
var qa =
|
|
323
|
-
Object.assign(
|
|
324
|
+
var qa = m.print || console.log.bind(console), z = m.printErr || console.error.bind(console);
|
|
325
|
+
Object.assign(m, ka);
|
|
324
326
|
ka = null;
|
|
325
|
-
|
|
327
|
+
m.thisProgram && (la = m.thisProgram);
|
|
326
328
|
var ra;
|
|
327
|
-
|
|
328
|
-
var noExitRuntime =
|
|
329
|
+
m.wasmBinary && (ra = m.wasmBinary);
|
|
330
|
+
var noExitRuntime = m.noExitRuntime || !0;
|
|
329
331
|
"object" != typeof WebAssembly && sa("no native wasm support detected");
|
|
330
332
|
var ta, A, ua = !1, C, G, I, va, J, K, wa, xa;
|
|
331
333
|
function ya() {
|
|
332
334
|
var a = ta.buffer;
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
335
|
+
m.HEAP8 = C = new Int8Array(a);
|
|
336
|
+
m.HEAP16 = I = new Int16Array(a);
|
|
337
|
+
m.HEAP32 = J = new Int32Array(a);
|
|
338
|
+
m.HEAPU8 = G = new Uint8Array(a);
|
|
339
|
+
m.HEAPU16 = va = new Uint16Array(a);
|
|
340
|
+
m.HEAPU32 = K = new Uint32Array(a);
|
|
341
|
+
m.HEAPF32 = wa = new Float32Array(a);
|
|
342
|
+
m.HEAPF64 = xa = new Float64Array(a);
|
|
341
343
|
}
|
|
342
344
|
var za, Aa = [], Ba = [], Ca = [];
|
|
343
345
|
function Da() {
|
|
344
|
-
var a =
|
|
346
|
+
var a = m.preRun.shift();
|
|
345
347
|
Aa.unshift(a);
|
|
346
348
|
}
|
|
347
349
|
var Ea = 0, Fa = null, Ga = null;
|
|
348
350
|
function sa(a) {
|
|
349
|
-
if (
|
|
350
|
-
|
|
351
|
+
if (m.onAbort) {
|
|
352
|
+
m.onAbort(a);
|
|
351
353
|
}
|
|
352
354
|
a = "Aborted(" + a + ")";
|
|
353
355
|
z(a);
|
|
@@ -363,7 +365,7 @@ var Ia;
|
|
|
363
365
|
Ia = "webgl2_advanced.wasm";
|
|
364
366
|
if (!Ha(Ia)) {
|
|
365
367
|
var Ja = Ia;
|
|
366
|
-
Ia =
|
|
368
|
+
Ia = m.locateFile ? m.locateFile(Ja, w) : w + Ja;
|
|
367
369
|
}
|
|
368
370
|
function Ka(a) {
|
|
369
371
|
if (a == Ia && ra) {
|
|
@@ -406,7 +408,7 @@ function Na(a, b) {
|
|
|
406
408
|
return Ma(c, a, b);
|
|
407
409
|
}));
|
|
408
410
|
}
|
|
409
|
-
var Oa, Pa, Ta = {
|
|
411
|
+
var Oa, Pa, Ta = {494878:(a, b, c, d, e) => {
|
|
410
412
|
if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
|
|
411
413
|
return 0;
|
|
412
414
|
}
|
|
@@ -422,9 +424,9 @@ var Oa, Pa, Ta = {494542:(a, b, c, d, e) => {
|
|
|
422
424
|
let f = window.h;
|
|
423
425
|
f.C = [];
|
|
424
426
|
f.mc = function(g) {
|
|
425
|
-
for (var
|
|
426
|
-
if (null == f.C[
|
|
427
|
-
return f.C[
|
|
427
|
+
for (var n = 0; n < f.C.length; ++n) {
|
|
428
|
+
if (null == f.C[n]) {
|
|
429
|
+
return f.C[n] = g, n;
|
|
428
430
|
}
|
|
429
431
|
}
|
|
430
432
|
f.C.push(g);
|
|
@@ -440,9 +442,9 @@ var Oa, Pa, Ta = {494542:(a, b, c, d, e) => {
|
|
|
440
442
|
}
|
|
441
443
|
};
|
|
442
444
|
f.Oc = function(g) {
|
|
443
|
-
for (var
|
|
444
|
-
if (f.C[
|
|
445
|
-
return f.xb(
|
|
445
|
+
for (var n = 0; n < f.C.length; ++n) {
|
|
446
|
+
if (f.C[n] == g) {
|
|
447
|
+
return f.xb(n);
|
|
446
448
|
}
|
|
447
449
|
}
|
|
448
450
|
};
|
|
@@ -452,9 +454,9 @@ var Oa, Pa, Ta = {494542:(a, b, c, d, e) => {
|
|
|
452
454
|
f.wb = ["touchend", "click"];
|
|
453
455
|
f.unlock = function() {
|
|
454
456
|
for (var g = 0; g < f.C.length; ++g) {
|
|
455
|
-
var
|
|
456
|
-
null !=
|
|
457
|
-
Qa(
|
|
457
|
+
var n = f.C[g];
|
|
458
|
+
null != n && null != n.I && n.state === f.ia.sb && n.I.resume().then(() => {
|
|
459
|
+
Qa(n.kb);
|
|
458
460
|
}, p => {
|
|
459
461
|
console.error("Failed to resume audiocontext", p);
|
|
460
462
|
});
|
|
@@ -469,9 +471,9 @@ var Oa, Pa, Ta = {494542:(a, b, c, d, e) => {
|
|
|
469
471
|
}
|
|
470
472
|
window.h.Da += 1;
|
|
471
473
|
return 1;
|
|
472
|
-
},
|
|
474
|
+
}, 497056:() => {
|
|
473
475
|
"undefined" !== typeof window.h && (--window.h.Da, 0 === window.h.Da && delete window.h);
|
|
474
|
-
},
|
|
476
|
+
}, 497220:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 497324:() => {
|
|
475
477
|
try {
|
|
476
478
|
var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
|
|
477
479
|
a.close();
|
|
@@ -479,13 +481,13 @@ var Oa, Pa, Ta = {494542:(a, b, c, d, e) => {
|
|
|
479
481
|
} catch (c) {
|
|
480
482
|
return 0;
|
|
481
483
|
}
|
|
482
|
-
},
|
|
484
|
+
}, 497495:(a, b, c, d, e, f) => {
|
|
483
485
|
if ("undefined" === typeof window.h) {
|
|
484
486
|
return -1;
|
|
485
487
|
}
|
|
486
|
-
var g = {},
|
|
487
|
-
a == window.h.H.Ba && 0 != c && (
|
|
488
|
-
g.I = new (window.AudioContext || window.webkitAudioContext)(
|
|
488
|
+
var g = {}, n = {};
|
|
489
|
+
a == window.h.H.Ba && 0 != c && (n.sampleRate = c);
|
|
490
|
+
g.I = new (window.AudioContext || window.webkitAudioContext)(n);
|
|
489
491
|
g.I.suspend();
|
|
490
492
|
g.state = window.h.ia.stopped;
|
|
491
493
|
c = 0;
|
|
@@ -525,7 +527,7 @@ var Oa, Pa, Ta = {494542:(a, b, c, d, e) => {
|
|
|
525
527
|
a == window.h.H.Ba && g.Z.connect(g.I.destination);
|
|
526
528
|
g.kb = f;
|
|
527
529
|
return window.h.mc(g);
|
|
528
|
-
},
|
|
530
|
+
}, 500372:a => window.h.va(a).I.sampleRate, 500445:a => {
|
|
529
531
|
a = window.h.va(a);
|
|
530
532
|
void 0 !== a.Z && (a.Z.onaudioprocess = function() {
|
|
531
533
|
}, a.Z.disconnect(), a.Z = void 0);
|
|
@@ -533,19 +535,19 @@ var Oa, Pa, Ta = {494542:(a, b, c, d, e) => {
|
|
|
533
535
|
a.I.close();
|
|
534
536
|
a.I = void 0;
|
|
535
537
|
a.kb = void 0;
|
|
536
|
-
},
|
|
538
|
+
}, 500845:a => {
|
|
537
539
|
window.h.xb(a);
|
|
538
|
-
},
|
|
540
|
+
}, 500895:a => {
|
|
539
541
|
a = window.h.va(a);
|
|
540
542
|
a.I.resume();
|
|
541
543
|
a.state = window.h.ia.sb;
|
|
542
|
-
},
|
|
544
|
+
}, 501034:a => {
|
|
543
545
|
a = window.h.va(a);
|
|
544
546
|
a.I.suspend();
|
|
545
547
|
a.state = window.h.ia.stopped;
|
|
546
548
|
}}, Ua = a => {
|
|
547
549
|
for (; 0 < a.length;) {
|
|
548
|
-
a.shift()(
|
|
550
|
+
a.shift()(m);
|
|
549
551
|
}
|
|
550
552
|
}, Va = (a, b) => {
|
|
551
553
|
for (var c = 0, d = a.length - 1; 0 <= d; d--) {
|
|
@@ -640,8 +642,8 @@ var bb = "undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0, L
|
|
|
640
642
|
for (var f = 0; f < a.length; ++f) {
|
|
641
643
|
var g = a.charCodeAt(f);
|
|
642
644
|
if (55296 <= g && 57343 >= g) {
|
|
643
|
-
var
|
|
644
|
-
g = 65536 + ((g & 1023) << 10) |
|
|
645
|
+
var n = a.charCodeAt(++f);
|
|
646
|
+
g = 65536 + ((g & 1023) << 10) | n & 1023;
|
|
645
647
|
}
|
|
646
648
|
if (127 >= g) {
|
|
647
649
|
if (c >= d) {
|
|
@@ -704,7 +706,7 @@ var jb = {open:function(a) {
|
|
|
704
706
|
for (var e = 0, f = 0; f < d; f++) {
|
|
705
707
|
try {
|
|
706
708
|
var g = a.s.U.eb(a.s);
|
|
707
|
-
} catch (
|
|
709
|
+
} catch (n) {
|
|
708
710
|
throw new M(29);
|
|
709
711
|
}
|
|
710
712
|
if (void 0 === g && 0 === e) {
|
|
@@ -929,7 +931,7 @@ var N = {O:null, T() {
|
|
|
929
931
|
N.m.write(a, b, 0, d, c, !1);
|
|
930
932
|
return 0;
|
|
931
933
|
},},};
|
|
932
|
-
function
|
|
934
|
+
function sb(a, b) {
|
|
933
935
|
var c = 0;
|
|
934
936
|
a && (c |= 365);
|
|
935
937
|
b && (c |= 146);
|
|
@@ -1179,7 +1181,7 @@ var tb = null, ub = {}, vb = [], wb = 1, xb = null, yb = !0, M = null, pb = {},
|
|
|
1179
1181
|
b &= -131713;
|
|
1180
1182
|
e = Kb({node:e, path:Bb(e), flags:b, seekable:!0, position:0, m:e.m, nc:[], error:!1});
|
|
1181
1183
|
e.m.open && e.m.open(e);
|
|
1182
|
-
!
|
|
1184
|
+
!m.logReadFiles || b & 1 || (Ob || (Ob = {}), a in Ob || (Ob[a] = 1));
|
|
1183
1185
|
return e;
|
|
1184
1186
|
}, Qb = (a, b, c) => {
|
|
1185
1187
|
if (null === a.X) {
|
|
@@ -1208,14 +1210,14 @@ var tb = null, ub = {}, vb = [], wb = 1, xb = null, yb = !0, M = null, pb = {},
|
|
|
1208
1210
|
}));
|
|
1209
1211
|
}, Sb, Ub = (a, b, c) => {
|
|
1210
1212
|
a = Wa("/dev/" + a);
|
|
1211
|
-
var d =
|
|
1213
|
+
var d = sb(!!b, !!c);
|
|
1212
1214
|
Tb || (Tb = 64);
|
|
1213
1215
|
var e = Tb++ << 8 | 0;
|
|
1214
1216
|
ib(e, {open:f => {
|
|
1215
1217
|
f.seekable = !1;
|
|
1216
1218
|
}, close:() => {
|
|
1217
1219
|
c && c.buffer && c.buffer.length && c(10);
|
|
1218
|
-
}, read:(f, g,
|
|
1220
|
+
}, read:(f, g, n, p) => {
|
|
1219
1221
|
for (var l = 0, t = 0; t < p; t++) {
|
|
1220
1222
|
try {
|
|
1221
1223
|
var u = b();
|
|
@@ -1229,14 +1231,14 @@ var tb = null, ub = {}, vb = [], wb = 1, xb = null, yb = !0, M = null, pb = {},
|
|
|
1229
1231
|
break;
|
|
1230
1232
|
}
|
|
1231
1233
|
l++;
|
|
1232
|
-
g[
|
|
1234
|
+
g[n + t] = u;
|
|
1233
1235
|
}
|
|
1234
1236
|
l && (f.node.timestamp = Date.now());
|
|
1235
1237
|
return l;
|
|
1236
|
-
}, write:(f, g,
|
|
1238
|
+
}, write:(f, g, n, p) => {
|
|
1237
1239
|
for (var l = 0; l < p; l++) {
|
|
1238
1240
|
try {
|
|
1239
|
-
c(g[
|
|
1241
|
+
c(g[n + l]);
|
|
1240
1242
|
} catch (t) {
|
|
1241
1243
|
throw new M(29);
|
|
1242
1244
|
}
|
|
@@ -1398,20 +1400,20 @@ function Bc(a) {
|
|
|
1398
1400
|
}
|
|
1399
1401
|
var Cc = {}, Dc = {};
|
|
1400
1402
|
function T(a, b, c) {
|
|
1401
|
-
function d(
|
|
1402
|
-
|
|
1403
|
-
|
|
1403
|
+
function d(n) {
|
|
1404
|
+
n = c(n);
|
|
1405
|
+
n.length !== a.length && wc("Mismatched type converter count");
|
|
1404
1406
|
for (var p = 0; p < a.length; ++p) {
|
|
1405
|
-
U(a[p],
|
|
1407
|
+
U(a[p], n[p]);
|
|
1406
1408
|
}
|
|
1407
1409
|
}
|
|
1408
|
-
a.forEach(function(
|
|
1409
|
-
Dc[
|
|
1410
|
+
a.forEach(function(n) {
|
|
1411
|
+
Dc[n] = b;
|
|
1410
1412
|
});
|
|
1411
1413
|
var e = Array(b.length), f = [], g = 0;
|
|
1412
|
-
b.forEach((
|
|
1413
|
-
kc.hasOwnProperty(
|
|
1414
|
-
e[p] = kc[
|
|
1414
|
+
b.forEach((n, p) => {
|
|
1415
|
+
kc.hasOwnProperty(n) ? e[p] = kc[n] : (f.push(n), Cc.hasOwnProperty(n) || (Cc[n] = []), Cc[n].push(() => {
|
|
1416
|
+
e[p] = kc[n];
|
|
1415
1417
|
++g;
|
|
1416
1418
|
g === f.length && d(e);
|
|
1417
1419
|
}));
|
|
@@ -1468,9 +1470,9 @@ function Ic(a, b, c) {
|
|
|
1468
1470
|
}
|
|
1469
1471
|
}
|
|
1470
1472
|
function Jc(a, b, c) {
|
|
1471
|
-
|
|
1473
|
+
m.hasOwnProperty(a) ? ((void 0 === c || void 0 !== m[a].B && void 0 !== m[a].B[c]) && Q(`Cannot register public name '${a}' twice`), Ic(m, a, a), m.hasOwnProperty(c) && Q(`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].Lc = c));
|
|
1472
1474
|
}
|
|
1473
|
-
function Kc(a, b, c, d, e, f, g,
|
|
1475
|
+
function Kc(a, b, c, d, e, f, g, n) {
|
|
1474
1476
|
this.name = a;
|
|
1475
1477
|
this.constructor = b;
|
|
1476
1478
|
this.N = c;
|
|
@@ -1478,7 +1480,7 @@ function Kc(a, b, c, d, e, f, g, m) {
|
|
|
1478
1480
|
this.A = e;
|
|
1479
1481
|
this.Mb = f;
|
|
1480
1482
|
this.pa = g;
|
|
1481
|
-
this.Hb =
|
|
1483
|
+
this.Hb = n;
|
|
1482
1484
|
this.lb = [];
|
|
1483
1485
|
}
|
|
1484
1486
|
function Lc(a, b, c) {
|
|
@@ -1553,8 +1555,8 @@ function Qc(a, b, c, d) {
|
|
|
1553
1555
|
void 0 !== b.A ? this.toWireType = Oc : (this.toWireType = d ? Mc : Pc, this.K = null);
|
|
1554
1556
|
}
|
|
1555
1557
|
function Rc(a, b, c) {
|
|
1556
|
-
|
|
1557
|
-
void 0 !==
|
|
1558
|
+
m.hasOwnProperty(a) || wc("Replacing nonexistant public symbol");
|
|
1559
|
+
void 0 !== m[a].B && void 0 !== c ? m[a].B[c] = b : (m[a] = b, m[a].ga = c);
|
|
1558
1560
|
}
|
|
1559
1561
|
var Sc = [], Tc = a => {
|
|
1560
1562
|
var b = Sc[a];
|
|
@@ -1566,7 +1568,7 @@ var Sc = [], Tc = a => {
|
|
|
1566
1568
|
c.length = 0;
|
|
1567
1569
|
Object.assign(c, arguments);
|
|
1568
1570
|
if (a.includes("j")) {
|
|
1569
|
-
var d =
|
|
1571
|
+
var d = m["dynCall_" + a];
|
|
1570
1572
|
d = c && c.length ? d.apply(null, [b].concat(c)) : d.call(null, b);
|
|
1571
1573
|
} else {
|
|
1572
1574
|
d = Tc(b).apply(null, c);
|
|
@@ -1592,10 +1594,10 @@ function Wc(a, b) {
|
|
|
1592
1594
|
function Xc(a, b, c, d, e) {
|
|
1593
1595
|
var f = b.length;
|
|
1594
1596
|
2 > f && Q("argTypes array size mismatch! Must at least get return value and 'this' types!");
|
|
1595
|
-
var g = null !== b[1] && null !== c,
|
|
1597
|
+
var g = null !== b[1] && null !== c, n = !1;
|
|
1596
1598
|
for (c = 1; c < b.length; ++c) {
|
|
1597
1599
|
if (null !== b[c] && void 0 === b[c].K) {
|
|
1598
|
-
|
|
1600
|
+
n = !0;
|
|
1599
1601
|
break;
|
|
1600
1602
|
}
|
|
1601
1603
|
}
|
|
@@ -1613,7 +1615,7 @@ function Xc(a, b, c, d, e) {
|
|
|
1613
1615
|
t[q] = b[q + 2].toWireType(x, arguments[q]), u.push(t[q]);
|
|
1614
1616
|
}
|
|
1615
1617
|
q = d.apply(null, u);
|
|
1616
|
-
if (
|
|
1618
|
+
if (n) {
|
|
1617
1619
|
Ac(x);
|
|
1618
1620
|
} else {
|
|
1619
1621
|
for (var v = g ? 1 : 2; v < b.length; v++) {
|
|
@@ -1808,7 +1810,7 @@ function ha(a) {
|
|
|
1808
1810
|
}
|
|
1809
1811
|
function ja(a) {
|
|
1810
1812
|
Dd = r[a];
|
|
1811
|
-
|
|
1813
|
+
m.xc = Z = Dd && Dd.J;
|
|
1812
1814
|
return !(a && !Z);
|
|
1813
1815
|
}
|
|
1814
1816
|
function ia(a) {
|
|
@@ -1977,7 +1979,7 @@ var Od = a => 0 === a % 4 && (0 !== a % 100 || 0 === a % 400), Pd = [31, 29, 31,
|
|
|
1977
1979
|
0 === (y = v(k.getFullYear() - q.getFullYear())) && 0 === (y = v(k.getMonth() - q.getMonth())) && (y = v(k.getDate() - q.getDate()));
|
|
1978
1980
|
return y;
|
|
1979
1981
|
}
|
|
1980
|
-
function
|
|
1982
|
+
function n(k) {
|
|
1981
1983
|
switch(k.getDay()) {
|
|
1982
1984
|
case 0:
|
|
1983
1985
|
return new Date(k.getFullYear() - 1, 11, 29);
|
|
@@ -2007,8 +2009,8 @@ var Od = a => 0 === a % 4 && (0 !== a % 100 || 0 === a % 400), Pd = [31, 29, 31,
|
|
|
2007
2009
|
}
|
|
2008
2010
|
}
|
|
2009
2011
|
v = new Date(k.getFullYear() + 1, 0, 4);
|
|
2010
|
-
q =
|
|
2011
|
-
v =
|
|
2012
|
+
q = n(new Date(k.getFullYear(), 0, 4));
|
|
2013
|
+
v = n(v);
|
|
2012
2014
|
return 0 >= g(q, k) ? 0 >= g(v, k) ? k.getFullYear() + 1 : k.getFullYear() : k.getFullYear() - 1;
|
|
2013
2015
|
}
|
|
2014
2016
|
var l = J[d + 40 >> 2];
|
|
@@ -2126,7 +2128,7 @@ Object.assign($b.prototype, {get(a) {
|
|
|
2126
2128
|
this.M[a] = void 0;
|
|
2127
2129
|
this.cb.push(a);
|
|
2128
2130
|
}});
|
|
2129
|
-
ac =
|
|
2131
|
+
ac = m.BindingError = class extends Error {
|
|
2130
2132
|
constructor(a) {
|
|
2131
2133
|
super(a);
|
|
2132
2134
|
this.name = "BindingError";
|
|
@@ -2134,33 +2136,33 @@ ac = n.BindingError = class extends Error {
|
|
|
2134
2136
|
};
|
|
2135
2137
|
P.M.push({value:void 0}, {value:null}, {value:!0}, {value:!1},);
|
|
2136
2138
|
P.h = P.M.length;
|
|
2137
|
-
|
|
2139
|
+
m.count_emval_handles = function() {
|
|
2138
2140
|
for (var a = 0, b = P.h; b < P.M.length; ++b) {
|
|
2139
2141
|
void 0 !== P.M[b] && ++a;
|
|
2140
2142
|
}
|
|
2141
2143
|
return a;
|
|
2142
2144
|
};
|
|
2143
|
-
dc =
|
|
2145
|
+
dc = m.PureVirtualError = cc("PureVirtualError");
|
|
2144
2146
|
for (var Sd = Array(256), Td = 0; 256 > Td; ++Td) {
|
|
2145
2147
|
Sd[Td] = String.fromCharCode(Td);
|
|
2146
2148
|
}
|
|
2147
2149
|
ec = Sd;
|
|
2148
|
-
|
|
2150
|
+
m.getInheritedInstanceCount = function() {
|
|
2149
2151
|
return Object.keys(ic).length;
|
|
2150
2152
|
};
|
|
2151
|
-
|
|
2153
|
+
m.getLiveInheritedInstances = function() {
|
|
2152
2154
|
var a = [], b;
|
|
2153
2155
|
for (b in ic) {
|
|
2154
2156
|
ic.hasOwnProperty(b) && a.push(ic[b]);
|
|
2155
2157
|
}
|
|
2156
2158
|
return a;
|
|
2157
2159
|
};
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
+
m.flushPendingDeletes = gc;
|
|
2161
|
+
m.setDelayFunction = function(a) {
|
|
2160
2162
|
hc = a;
|
|
2161
2163
|
fc.length && hc && hc(gc);
|
|
2162
2164
|
};
|
|
2163
|
-
vc =
|
|
2165
|
+
vc = m.InternalError = class extends Error {
|
|
2164
2166
|
constructor(a) {
|
|
2165
2167
|
super(a);
|
|
2166
2168
|
this.name = "InternalError";
|
|
@@ -2248,7 +2250,7 @@ Qc.prototype.fromWireType = function(a) {
|
|
|
2248
2250
|
var e = sc(c, this.i, d.i);
|
|
2249
2251
|
return null === e ? b.call(this) : this.ya ? xc(d.i.N, {u:d, o:e, L:this, G:a,}) : xc(d.i.N, {u:d, o:e,});
|
|
2250
2252
|
};
|
|
2251
|
-
Vc =
|
|
2253
|
+
Vc = m.UnboundTypeError = cc("UnboundTypeError");
|
|
2252
2254
|
for (var Z, Ud = 0; 32 > Ud; ++Ud) {
|
|
2253
2255
|
Id.push(Array(Ud));
|
|
2254
2256
|
}
|
|
@@ -2374,17 +2376,17 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2374
2376
|
}
|
|
2375
2377
|
var g = d ? Xb() : 0;
|
|
2376
2378
|
return Pb(b, c, g).X;
|
|
2377
|
-
} catch (
|
|
2378
|
-
if ("undefined" == typeof Vb || "ErrnoError" !==
|
|
2379
|
-
throw
|
|
2379
|
+
} catch (n) {
|
|
2380
|
+
if ("undefined" == typeof Vb || "ErrnoError" !== n.name) {
|
|
2381
|
+
throw n;
|
|
2380
2382
|
}
|
|
2381
|
-
return -
|
|
2383
|
+
return -n.aa;
|
|
2382
2384
|
}
|
|
2383
2385
|
}, _embind_create_inheriting_constructor:function(a, b, c) {
|
|
2384
2386
|
a = S(a);
|
|
2385
2387
|
b = oc(b, "wrapper");
|
|
2386
2388
|
c = R(c);
|
|
2387
|
-
var d = [].slice, e = b.i, f = e.N, g = e.A.N,
|
|
2389
|
+
var d = [].slice, e = b.i, f = e.N, g = e.A.N, n = e.A.constructor;
|
|
2388
2390
|
a = Zb(a, function() {
|
|
2389
2391
|
e.A.lb.forEach(function(l) {
|
|
2390
2392
|
if (this[l] === g[l]) {
|
|
@@ -2396,7 +2398,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2396
2398
|
});
|
|
2397
2399
|
f.__construct = function() {
|
|
2398
2400
|
this === f && Q("Pass correct 'this' to __construct");
|
|
2399
|
-
var l =
|
|
2401
|
+
var l = n.implement.apply(void 0, [this].concat(d.call(arguments)));
|
|
2400
2402
|
pc(l);
|
|
2401
2403
|
var t = l.g;
|
|
2402
2404
|
l.notifyOnDestruction();
|
|
@@ -2424,10 +2426,10 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2424
2426
|
delete zc[a];
|
|
2425
2427
|
var c = b.Pa, d = b.V, e = b.$a, f = e.map(g => g.Qb).concat(e.map(g => g.ec));
|
|
2426
2428
|
T([a], f, g => {
|
|
2427
|
-
var
|
|
2429
|
+
var n = {};
|
|
2428
2430
|
e.forEach((p, l) => {
|
|
2429
2431
|
var t = g[l], u = p.Ob, x = p.Pb, k = g[l + e.length], q = p.dc, v = p.fc;
|
|
2430
|
-
|
|
2432
|
+
n[p.Kb] = {read:y => t.fromWireType(u(x, y)), write:(y, B) => {
|
|
2431
2433
|
var D = [];
|
|
2432
2434
|
q(v, y, k.toWireType(D, B));
|
|
2433
2435
|
Ac(D);
|
|
@@ -2435,20 +2437,20 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2435
2437
|
});
|
|
2436
2438
|
return [{name:b.name, fromWireType:function(p) {
|
|
2437
2439
|
var l = {}, t;
|
|
2438
|
-
for (t in
|
|
2439
|
-
l[t] =
|
|
2440
|
+
for (t in n) {
|
|
2441
|
+
l[t] = n[t].read(p);
|
|
2440
2442
|
}
|
|
2441
2443
|
d(p);
|
|
2442
2444
|
return l;
|
|
2443
2445
|
}, toWireType:function(p, l) {
|
|
2444
|
-
for (var t in
|
|
2446
|
+
for (var t in n) {
|
|
2445
2447
|
if (!(t in l)) {
|
|
2446
2448
|
throw new TypeError(`Missing field: "${t}"`);
|
|
2447
2449
|
}
|
|
2448
2450
|
}
|
|
2449
2451
|
var u = c();
|
|
2450
|
-
for (t in
|
|
2451
|
-
|
|
2452
|
+
for (t in n) {
|
|
2453
|
+
n[t].write(u, l[t]);
|
|
2452
2454
|
}
|
|
2453
2455
|
null !== p && p.push(d, u);
|
|
2454
2456
|
return u;
|
|
@@ -2460,24 +2462,24 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2460
2462
|
b = S(b);
|
|
2461
2463
|
U(a, {name:b, fromWireType:function(g) {
|
|
2462
2464
|
return !!g;
|
|
2463
|
-
}, toWireType:function(g,
|
|
2464
|
-
return
|
|
2465
|
+
}, toWireType:function(g, n) {
|
|
2466
|
+
return n ? d : e;
|
|
2465
2467
|
}, argPackAdvance:8, readValueFromPointer:function(g) {
|
|
2466
2468
|
if (1 === c) {
|
|
2467
|
-
var
|
|
2469
|
+
var n = C;
|
|
2468
2470
|
} else if (2 === c) {
|
|
2469
|
-
|
|
2471
|
+
n = I;
|
|
2470
2472
|
} else if (4 === c) {
|
|
2471
|
-
|
|
2473
|
+
n = J;
|
|
2472
2474
|
} else {
|
|
2473
2475
|
throw new TypeError("Unknown boolean type size: " + b);
|
|
2474
2476
|
}
|
|
2475
|
-
return this.fromWireType(
|
|
2477
|
+
return this.fromWireType(n[g >> f]);
|
|
2476
2478
|
}, K:null,});
|
|
2477
|
-
}, _embind_register_class:function(a, b, c, d, e, f, g,
|
|
2479
|
+
}, _embind_register_class:function(a, b, c, d, e, f, g, n, p, l, t, u, x) {
|
|
2478
2480
|
t = S(t);
|
|
2479
2481
|
f = V(e, f);
|
|
2480
|
-
|
|
2482
|
+
n && (n = V(g, n));
|
|
2481
2483
|
l && (l = V(p, l));
|
|
2482
2484
|
x = V(u, x);
|
|
2483
2485
|
var k = Yb(t);
|
|
@@ -2507,7 +2509,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2507
2509
|
});
|
|
2508
2510
|
var B = Object.create(y, {constructor:{value:q},});
|
|
2509
2511
|
q.prototype = B;
|
|
2510
|
-
var D = new Kc(t, q, B, x, v, f,
|
|
2512
|
+
var D = new Kc(t, q, B, x, v, f, n, l);
|
|
2511
2513
|
D.A && (void 0 === D.A.qa && (D.A.qa = []), D.A.qa.push(D));
|
|
2512
2514
|
v = new Qc(t, D, !0, !1);
|
|
2513
2515
|
y = new Qc(t + "*", D, !1, !1);
|
|
@@ -2517,19 +2519,19 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2517
2519
|
return [v, y, E];
|
|
2518
2520
|
});
|
|
2519
2521
|
}, _embind_register_class_class_function:function(a, b, c, d, e, f, g) {
|
|
2520
|
-
var
|
|
2522
|
+
var n = Yc(c, d);
|
|
2521
2523
|
b = S(b);
|
|
2522
2524
|
f = V(e, f);
|
|
2523
2525
|
T([], [a], function(p) {
|
|
2524
2526
|
function l() {
|
|
2525
|
-
Wc(`Cannot call ${t} due to unbound types`,
|
|
2527
|
+
Wc(`Cannot call ${t} due to unbound types`, n);
|
|
2526
2528
|
}
|
|
2527
2529
|
p = p[0];
|
|
2528
2530
|
var t = `${p.name}.${b}`;
|
|
2529
2531
|
b.startsWith("@@") && (b = Symbol[b.substring(2)]);
|
|
2530
2532
|
var u = p.i.constructor;
|
|
2531
2533
|
void 0 === u[b] ? (l.ga = c - 1, u[b] = l) : (Ic(u, b, t), u[b].B[c - 1] = l);
|
|
2532
|
-
T([],
|
|
2534
|
+
T([], n, function(x) {
|
|
2533
2535
|
x = Xc(t, [x[0], null].concat(x.slice(1)), null, f, g);
|
|
2534
2536
|
void 0 === u[b].B ? (x.ga = c - 1, u[b] = x) : u[b].B[c - 1] = x;
|
|
2535
2537
|
if (p.i.qa) {
|
|
@@ -2541,7 +2543,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2541
2543
|
});
|
|
2542
2544
|
return [];
|
|
2543
2545
|
});
|
|
2544
|
-
}, _embind_register_class_class_property:function(a, b, c, d, e, f, g,
|
|
2546
|
+
}, _embind_register_class_class_property:function(a, b, c, d, e, f, g, n) {
|
|
2545
2547
|
b = S(b);
|
|
2546
2548
|
f = V(e, f);
|
|
2547
2549
|
T([], [a], function(p) {
|
|
@@ -2549,7 +2551,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2549
2551
|
var l = `${p.name}.${b}`, t = {get() {
|
|
2550
2552
|
Wc(`Cannot access ${l} due to unbound types`, [c]);
|
|
2551
2553
|
}, enumerable:!0, configurable:!0};
|
|
2552
|
-
t.set =
|
|
2554
|
+
t.set = n ? () => {
|
|
2553
2555
|
Wc(`Cannot access ${l} due to unbound types`, [c]);
|
|
2554
2556
|
} : () => {
|
|
2555
2557
|
Q(`${l} is a read-only property`);
|
|
@@ -2560,9 +2562,9 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2560
2562
|
var x = {get() {
|
|
2561
2563
|
return u.fromWireType(f(d));
|
|
2562
2564
|
}, enumerable:!0};
|
|
2563
|
-
|
|
2565
|
+
n && (n = V(g, n), x.set = k => {
|
|
2564
2566
|
var q = [];
|
|
2565
|
-
|
|
2567
|
+
n(d, u.toWireType(q, k));
|
|
2566
2568
|
Ac(q);
|
|
2567
2569
|
});
|
|
2568
2570
|
Object.defineProperty(p.i.constructor, b, x);
|
|
@@ -2573,24 +2575,24 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2573
2575
|
}, _embind_register_class_constructor:function(a, b, c, d, e, f) {
|
|
2574
2576
|
var g = Yc(b, c);
|
|
2575
2577
|
e = V(d, e);
|
|
2576
|
-
T([], [a], function(
|
|
2577
|
-
|
|
2578
|
-
var p = `constructor ${
|
|
2579
|
-
void 0 ===
|
|
2580
|
-
if (void 0 !==
|
|
2581
|
-
throw new ac(`Cannot register multiple constructors with identical number of parameters (${b - 1}) for class '${
|
|
2582
|
-
}
|
|
2583
|
-
|
|
2584
|
-
Wc(`Cannot construct ${
|
|
2578
|
+
T([], [a], function(n) {
|
|
2579
|
+
n = n[0];
|
|
2580
|
+
var p = `constructor ${n.name}`;
|
|
2581
|
+
void 0 === n.i.$ && (n.i.$ = []);
|
|
2582
|
+
if (void 0 !== n.i.$[b - 1]) {
|
|
2583
|
+
throw new ac(`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!`);
|
|
2584
|
+
}
|
|
2585
|
+
n.i.$[b - 1] = () => {
|
|
2586
|
+
Wc(`Cannot construct ${n.name} due to unbound types`, g);
|
|
2585
2587
|
};
|
|
2586
2588
|
T([], g, function(l) {
|
|
2587
2589
|
l.splice(1, 0, null);
|
|
2588
|
-
|
|
2590
|
+
n.i.$[b - 1] = Xc(p, l, null, e, f);
|
|
2589
2591
|
return [];
|
|
2590
2592
|
});
|
|
2591
2593
|
return [];
|
|
2592
2594
|
});
|
|
2593
|
-
}, _embind_register_class_function:function(a, b, c, d, e, f, g,
|
|
2595
|
+
}, _embind_register_class_function:function(a, b, c, d, e, f, g, n) {
|
|
2594
2596
|
var p = Yc(c, d);
|
|
2595
2597
|
b = S(b);
|
|
2596
2598
|
f = V(e, f);
|
|
@@ -2601,7 +2603,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2601
2603
|
l = l[0];
|
|
2602
2604
|
var u = `${l.name}.${b}`;
|
|
2603
2605
|
b.startsWith("@@") && (b = Symbol[b.substring(2)]);
|
|
2604
|
-
|
|
2606
|
+
n && l.i.lb.push(b);
|
|
2605
2607
|
var x = l.i.N, k = x[b];
|
|
2606
2608
|
void 0 === k || void 0 === k.B && k.className !== l.name && k.ga === c - 2 ? (t.ga = c - 2, t.className = l.name, x[b] = t) : (Ic(x, b, u), x[b].B[c - 2] = t);
|
|
2607
2609
|
T([], p, function(q) {
|
|
@@ -2611,7 +2613,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2611
2613
|
});
|
|
2612
2614
|
return [];
|
|
2613
2615
|
});
|
|
2614
|
-
}, _embind_register_class_property:function(a, b, c, d, e, f, g,
|
|
2616
|
+
}, _embind_register_class_property:function(a, b, c, d, e, f, g, n, p, l) {
|
|
2615
2617
|
b = S(b);
|
|
2616
2618
|
e = V(d, e);
|
|
2617
2619
|
T([], [a], function(t) {
|
|
@@ -2631,7 +2633,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2631
2633
|
return q.fromWireType(e(f, B));
|
|
2632
2634
|
}, enumerable:!0};
|
|
2633
2635
|
if (p) {
|
|
2634
|
-
p = V(
|
|
2636
|
+
p = V(n, p);
|
|
2635
2637
|
var y = k[1];
|
|
2636
2638
|
v.set = function(B) {
|
|
2637
2639
|
var D = Zc(this, t, u + " setter"), E = [];
|
|
@@ -2688,22 +2690,22 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2688
2690
|
Jc(a, function() {
|
|
2689
2691
|
Wc(`Cannot call ${a} due to unbound types`, g);
|
|
2690
2692
|
}, b - 1);
|
|
2691
|
-
T([], g, function(
|
|
2692
|
-
Rc(a, Xc(a, [
|
|
2693
|
+
T([], g, function(n) {
|
|
2694
|
+
Rc(a, Xc(a, [n[0], null].concat(n.slice(1)), null, e, f), b - 1);
|
|
2693
2695
|
return [];
|
|
2694
2696
|
});
|
|
2695
2697
|
}, _embind_register_integer:function(a, b, c, d, e) {
|
|
2696
2698
|
b = S(b);
|
|
2697
2699
|
-1 === e && (e = 4294967295);
|
|
2698
2700
|
e = Ec(c);
|
|
2699
|
-
var f =
|
|
2701
|
+
var f = n => n;
|
|
2700
2702
|
if (0 === d) {
|
|
2701
2703
|
var g = 32 - 8 * c;
|
|
2702
|
-
f =
|
|
2704
|
+
f = n => n << g >>> g;
|
|
2703
2705
|
}
|
|
2704
|
-
c = b.includes("unsigned") ? function(
|
|
2706
|
+
c = b.includes("unsigned") ? function(n, p) {
|
|
2705
2707
|
return p >>> 0;
|
|
2706
|
-
} : function(
|
|
2708
|
+
} : function(n, p) {
|
|
2707
2709
|
return p;
|
|
2708
2710
|
};
|
|
2709
2711
|
U(a, {name:b, fromWireType:f, toWireType:c, argPackAdvance:8, readValueFromPointer:cd(b, e, 0 !== d), K:null,});
|
|
@@ -2722,9 +2724,9 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2722
2724
|
U(a, {name:b, fromWireType:function(d) {
|
|
2723
2725
|
var e = K[d >> 2], f = d + 4;
|
|
2724
2726
|
if (c) {
|
|
2725
|
-
for (var g = f,
|
|
2726
|
-
var p = f +
|
|
2727
|
-
if (
|
|
2727
|
+
for (var g = f, n = 0; n <= e; ++n) {
|
|
2728
|
+
var p = f + n;
|
|
2729
|
+
if (n == e || 0 == G[p]) {
|
|
2728
2730
|
g = g ? L(G, g, p - g) : "";
|
|
2729
2731
|
if (void 0 === l) {
|
|
2730
2732
|
var l = g;
|
|
@@ -2736,8 +2738,8 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2736
2738
|
}
|
|
2737
2739
|
} else {
|
|
2738
2740
|
l = Array(e);
|
|
2739
|
-
for (
|
|
2740
|
-
l[
|
|
2741
|
+
for (n = 0; n < e; ++n) {
|
|
2742
|
+
l[n] = String.fromCharCode(G[f + n]);
|
|
2741
2743
|
}
|
|
2742
2744
|
l = l.join("");
|
|
2743
2745
|
}
|
|
@@ -2748,8 +2750,8 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2748
2750
|
var f = "string" == typeof e;
|
|
2749
2751
|
f || e instanceof Uint8Array || e instanceof Uint8ClampedArray || e instanceof Int8Array || Q("Cannot pass non-string to std::string");
|
|
2750
2752
|
var g = c && f ? db(e) : e.length;
|
|
2751
|
-
var
|
|
2752
|
-
K[
|
|
2753
|
+
var n = Ld(4 + g + 1), p = n + 4;
|
|
2754
|
+
K[n >> 2] = g;
|
|
2753
2755
|
if (c && f) {
|
|
2754
2756
|
eb(e, G, p, g + 1);
|
|
2755
2757
|
} else {
|
|
@@ -2765,8 +2767,8 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2765
2767
|
}
|
|
2766
2768
|
}
|
|
2767
2769
|
}
|
|
2768
|
-
null !== d && d.push(nc,
|
|
2769
|
-
return
|
|
2770
|
+
null !== d && d.push(nc, n);
|
|
2771
|
+
return n;
|
|
2770
2772
|
}, argPackAdvance:8, readValueFromPointer:Bc, K:function(d) {
|
|
2771
2773
|
nc(d);
|
|
2772
2774
|
},});
|
|
@@ -2777,14 +2779,14 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2777
2779
|
var e = fd;
|
|
2778
2780
|
var f = gd;
|
|
2779
2781
|
var g = () => va;
|
|
2780
|
-
var
|
|
2782
|
+
var n = 1;
|
|
2781
2783
|
} else {
|
|
2782
|
-
4 === b && (d = hd, e = jd, f = kd, g = () => K,
|
|
2784
|
+
4 === b && (d = hd, e = jd, f = kd, g = () => K, n = 2);
|
|
2783
2785
|
}
|
|
2784
2786
|
U(a, {name:c, fromWireType:function(p) {
|
|
2785
2787
|
for (var l = K[p >> 2], t = g(), u, x = p + 4, k = 0; k <= l; ++k) {
|
|
2786
2788
|
var q = p + 4 + k * b;
|
|
2787
|
-
if (k == l || 0 == t[q >>
|
|
2789
|
+
if (k == l || 0 == t[q >> n]) {
|
|
2788
2790
|
x = d(x, q - x), void 0 === u ? u = x : (u += String.fromCharCode(0), u += x), x = q + b;
|
|
2789
2791
|
}
|
|
2790
2792
|
}
|
|
@@ -2793,7 +2795,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2793
2795
|
}, toWireType:function(p, l) {
|
|
2794
2796
|
"string" != typeof l && Q(`Cannot pass non-string to C++ string type ${c}`);
|
|
2795
2797
|
var t = f(l), u = Ld(4 + t + b);
|
|
2796
|
-
K[u >> 2] = t >>
|
|
2798
|
+
K[u >> 2] = t >> n;
|
|
2797
2799
|
e(l, u + 4, t + b);
|
|
2798
2800
|
null !== p && p.push(nc, u);
|
|
2799
2801
|
return u;
|
|
@@ -2802,8 +2804,8 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2802
2804
|
},});
|
|
2803
2805
|
}, _embind_register_value_object:function(a, b, c, d, e, f) {
|
|
2804
2806
|
zc[a] = {name:S(b), Pa:V(c, d), V:V(e, f), $a:[],};
|
|
2805
|
-
}, _embind_register_value_object_field:function(a, b, c, d, e, f, g,
|
|
2806
|
-
zc[a].$a.push({Kb:S(b), Qb:c, Ob:V(d, e), Pb:f, ec:g, dc:V(
|
|
2807
|
+
}, _embind_register_value_object_field:function(a, b, c, d, e, f, g, n, p, l) {
|
|
2808
|
+
zc[a].$a.push({Kb:S(b), Qb:c, Ob:V(d, e), Pb:f, ec:g, dc:V(n, p), fc:l,});
|
|
2807
2809
|
}, _embind_register_void:function(a, b) {
|
|
2808
2810
|
b = S(b);
|
|
2809
2811
|
U(a, {Yb:!0, name:b, argPackAdvance:0, fromWireType:function() {
|
|
@@ -2837,11 +2839,11 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2837
2839
|
return e;
|
|
2838
2840
|
}
|
|
2839
2841
|
var f = Array(a - 1);
|
|
2840
|
-
e = od((g,
|
|
2842
|
+
e = od((g, n, p, l) => {
|
|
2841
2843
|
for (var t = 0, u = 0; u < a - 1; ++u) {
|
|
2842
2844
|
f[u] = c[u + 1].readValueFromPointer(l + t), t += c[u + 1].argPackAdvance;
|
|
2843
2845
|
}
|
|
2844
|
-
g = g[
|
|
2846
|
+
g = g[n].apply(g, f);
|
|
2845
2847
|
for (u = 0; u < a - 1; ++u) {
|
|
2846
2848
|
c[u + 1].Gb && c[u + 1].Gb(f[u]);
|
|
2847
2849
|
}
|
|
@@ -2876,21 +2878,21 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2876
2878
|
}, abort:() => {
|
|
2877
2879
|
sa("");
|
|
2878
2880
|
}, beginPixelLocalStorageWEBGL:function(a, b, c) {
|
|
2879
|
-
(a = r[a].J.ja) && a.beginPixelLocalStorageWEBGL(
|
|
2881
|
+
(a = r[a].J.ja) && a.beginPixelLocalStorageWEBGL(m.HEAPU32.subarray(c, c + b));
|
|
2880
2882
|
}, decode_image:function(a, b, c) {
|
|
2881
|
-
var d =
|
|
2882
|
-
d || (d = new Map(),
|
|
2883
|
+
var d = m.images;
|
|
2884
|
+
d || (d = new Map(), m.images = d);
|
|
2883
2885
|
var e = new Image();
|
|
2884
2886
|
d.set(a, e);
|
|
2885
|
-
b =
|
|
2887
|
+
b = m.HEAP8.subarray(b, b + c);
|
|
2886
2888
|
c = new Uint8Array(c);
|
|
2887
2889
|
c.set(b);
|
|
2888
2890
|
e.src = URL.createObjectURL(new Blob([c], {type:"image/png"}));
|
|
2889
2891
|
e.onload = function() {
|
|
2890
|
-
|
|
2892
|
+
m._setWebImage(a, e.width, e.height);
|
|
2891
2893
|
};
|
|
2892
2894
|
}, delete_image:function(a) {
|
|
2893
|
-
var b =
|
|
2895
|
+
var b = m.images;
|
|
2894
2896
|
b && b.get(a) && b.delete(a);
|
|
2895
2897
|
}, emscripten_asm_const_int:(a, b, c) => {
|
|
2896
2898
|
rd.length = 0;
|
|
@@ -2949,7 +2951,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2949
2951
|
a.ja = a.getExtension("WEBGL_shader_pixel_local_storage");
|
|
2950
2952
|
return !(!a.ja || !a.ja.isCoherent());
|
|
2951
2953
|
}, endPixelLocalStorageWEBGL:function(a, b, c) {
|
|
2952
|
-
(a = r[a].J.ja) && a.endPixelLocalStorageWEBGL(
|
|
2954
|
+
(a = r[a].J.ja) && a.endPixelLocalStorageWEBGL(m.HEAPU32.subarray(c, c + b));
|
|
2953
2955
|
}, environ_get:(a, b) => {
|
|
2954
2956
|
var c = 0;
|
|
2955
2957
|
Hd().forEach(function(d, e) {
|
|
@@ -2999,9 +3001,9 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2999
3001
|
var e = Ib(a);
|
|
3000
3002
|
a = b;
|
|
3001
3003
|
for (var f, g = b = 0; g < c; g++) {
|
|
3002
|
-
var
|
|
3004
|
+
var n = K[a >> 2], p = K[a + 4 >> 2];
|
|
3003
3005
|
a += 8;
|
|
3004
|
-
var l = e, t =
|
|
3006
|
+
var l = e, t = n, u = p, x = f, k = C;
|
|
3005
3007
|
if (0 > u || 0 > x) {
|
|
3006
3008
|
throw new M(28);
|
|
3007
3009
|
}
|
|
@@ -3071,9 +3073,9 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3071
3073
|
var e = Ib(a);
|
|
3072
3074
|
a = b;
|
|
3073
3075
|
for (var f, g = b = 0; g < c; g++) {
|
|
3074
|
-
var
|
|
3076
|
+
var n = K[a >> 2], p = K[a + 4 >> 2];
|
|
3075
3077
|
a += 8;
|
|
3076
|
-
var l = e, t =
|
|
3078
|
+
var l = e, t = n, u = p, x = f, k = C;
|
|
3077
3079
|
if (0 > u || 0 > x) {
|
|
3078
3080
|
throw new M(28);
|
|
3079
3081
|
}
|
|
@@ -3141,8 +3143,8 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3141
3143
|
Z.blendEquation(a);
|
|
3142
3144
|
}, glBlendFunc:function(a, b) {
|
|
3143
3145
|
Z.blendFunc(a, b);
|
|
3144
|
-
}, glBlitFramebuffer:function(a, b, c, d, e, f, g,
|
|
3145
|
-
Z.blitFramebuffer(a, b, c, d, e, f, g,
|
|
3146
|
+
}, glBlitFramebuffer:function(a, b, c, d, e, f, g, n, p, l) {
|
|
3147
|
+
Z.blitFramebuffer(a, b, c, d, e, f, g, n, p, l);
|
|
3146
3148
|
}, glBufferData:function(a, b, c, d) {
|
|
3147
3149
|
c && b ? Z.bufferData(a, G, d, c, b) : Z.bufferData(a, b, d);
|
|
3148
3150
|
}, glBufferSubData:function(a, b, c, d) {
|
|
@@ -3295,15 +3297,15 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3295
3297
|
if (!d) {
|
|
3296
3298
|
for (c.oa = d = {}, c.tb = {}, f = 0; f < Z.getProgramParameter(c, 35718); ++f) {
|
|
3297
3299
|
var g = Z.getActiveUniform(c, f);
|
|
3298
|
-
var
|
|
3300
|
+
var n = g.name;
|
|
3299
3301
|
g = g.size;
|
|
3300
|
-
var p = Nd(
|
|
3301
|
-
p = 0 < p ?
|
|
3302
|
+
var p = Nd(n);
|
|
3303
|
+
p = 0 < p ? n.slice(0, p) : n;
|
|
3302
3304
|
var l = c.Sa;
|
|
3303
3305
|
c.Sa += g;
|
|
3304
3306
|
e[p] = [g, l];
|
|
3305
|
-
for (
|
|
3306
|
-
d[l] =
|
|
3307
|
+
for (n = 0; n < g; ++n) {
|
|
3308
|
+
d[l] = n, c.tb[l++] = p;
|
|
3307
3309
|
}
|
|
3308
3310
|
}
|
|
3309
3311
|
}
|
|
@@ -3324,11 +3326,6 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3324
3326
|
d[e] = J[c + 4 * e >> 2];
|
|
3325
3327
|
}
|
|
3326
3328
|
Z.invalidateFramebuffer(a, d);
|
|
3327
|
-
}, glInvalidateSubFramebuffer:function(a, b, c, d, e, f, g) {
|
|
3328
|
-
for (var m = Id[b], p = 0; p < b; p++) {
|
|
3329
|
-
m[p] = J[c + 4 * p >> 2];
|
|
3330
|
-
}
|
|
3331
|
-
Z.invalidateSubFramebuffer(a, m, d, e, f, g);
|
|
3332
3329
|
}, glLinkProgram:function(a) {
|
|
3333
3330
|
a = W[a];
|
|
3334
3331
|
Z.linkProgram(a);
|
|
@@ -3342,8 +3339,8 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3342
3339
|
Z.scissor(a, b, c, d);
|
|
3343
3340
|
}, glShaderSource:function(a, b, c, d) {
|
|
3344
3341
|
for (var e = "", f = 0; f < b; ++f) {
|
|
3345
|
-
var g = d ? J[d + 4 * f >> 2] : -1,
|
|
3346
|
-
g =
|
|
3342
|
+
var g = d ? J[d + 4 * f >> 2] : -1, n = J[c + 4 * f >> 2];
|
|
3343
|
+
g = n ? L(G, n, 0 > g ? void 0 : g) : "";
|
|
3347
3344
|
e += g;
|
|
3348
3345
|
}
|
|
3349
3346
|
Z.shaderSource(zd[a], e);
|
|
@@ -3361,15 +3358,15 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3361
3358
|
Z.texParameteri(a, b, c);
|
|
3362
3359
|
}, glTexStorage2D:function(a, b, c, d, e) {
|
|
3363
3360
|
Z.texStorage2D(a, b, c, d, e);
|
|
3364
|
-
}, glTexSubImage2D:function(a, b, c, d, e, f, g,
|
|
3361
|
+
}, glTexSubImage2D:function(a, b, c, d, e, f, g, n, p) {
|
|
3365
3362
|
if (Z.Ka) {
|
|
3366
|
-
Z.texSubImage2D(a, b, c, d, e, f, g,
|
|
3363
|
+
Z.texSubImage2D(a, b, c, d, e, f, g, n, p);
|
|
3367
3364
|
} else if (p) {
|
|
3368
|
-
var l =
|
|
3365
|
+
var l = n - 5120;
|
|
3369
3366
|
l = 0 == l ? C : 1 == l ? G : 2 == l ? I : 4 == l ? J : 6 == l ? wa : 5 == l || 28922 == l || 28520 == l || 30779 == l || 30782 == l ? K : va;
|
|
3370
|
-
Z.texSubImage2D(a, b, c, d, e, f, g,
|
|
3367
|
+
Z.texSubImage2D(a, b, c, d, e, f, g, n, l, p >> 31 - Math.clz32(l.BYTES_PER_ELEMENT));
|
|
3371
3368
|
} else {
|
|
3372
|
-
Z.texSubImage2D(a, b, c, d, e, f, g,
|
|
3369
|
+
Z.texSubImage2D(a, b, c, d, e, f, g, n, null);
|
|
3373
3370
|
}
|
|
3374
3371
|
}, glUniform1i:function(a, b) {
|
|
3375
3372
|
var c = Z, d = c.uniform1i;
|
|
@@ -3400,7 +3397,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3400
3397
|
}, provokingVertexWEBGL:function(a, b) {
|
|
3401
3398
|
(a = r[a].J.mb) && a.provokingVertexWEBGL(b);
|
|
3402
3399
|
}, strftime_l:(a, b, c, d) => Rd(a, b, c, d), upload_image:function(a, b) {
|
|
3403
|
-
var c =
|
|
3400
|
+
var c = m.images;
|
|
3404
3401
|
c && (b = c.get(b)) && (a = r[a].J, a.texImage2D(a.TEXTURE_2D, 0, a.RGBA, a.RGBA, a.UNSIGNED_BYTE, b));
|
|
3405
3402
|
}};
|
|
3406
3403
|
(function() {
|
|
@@ -3411,7 +3408,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3411
3408
|
za = A.__indirect_function_table;
|
|
3412
3409
|
Ba.unshift(A.__wasm_call_ctors);
|
|
3413
3410
|
Ea--;
|
|
3414
|
-
|
|
3411
|
+
m.monitorRunDependencies && m.monitorRunDependencies(Ea);
|
|
3415
3412
|
if (0 == Ea && (null !== Fa && (clearInterval(Fa), Fa = null), Ga)) {
|
|
3416
3413
|
var d = Ga;
|
|
3417
3414
|
Ga = null;
|
|
@@ -3421,10 +3418,10 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3421
3418
|
}
|
|
3422
3419
|
var b = {env:Wd, wasi_snapshot_preview1:Wd,};
|
|
3423
3420
|
Ea++;
|
|
3424
|
-
|
|
3425
|
-
if (
|
|
3421
|
+
m.monitorRunDependencies && m.monitorRunDependencies(Ea);
|
|
3422
|
+
if (m.instantiateWasm) {
|
|
3426
3423
|
try {
|
|
3427
|
-
return
|
|
3424
|
+
return m.instantiateWasm(b, a);
|
|
3428
3425
|
} catch (c) {
|
|
3429
3426
|
z("Module.instantiateWasm callback failed with error: " + c), ba(c);
|
|
3430
3427
|
}
|
|
@@ -3435,23 +3432,23 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3435
3432
|
return {};
|
|
3436
3433
|
})();
|
|
3437
3434
|
var nc = a => (nc = A.free)(a), Ld = a => (Ld = A.malloc)(a);
|
|
3438
|
-
|
|
3439
|
-
var Qa =
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
var Ra =
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
|
|
3435
|
+
m._setWebImage = (a, b, c) => (m._setWebImage = A.setWebImage)(a, b, c);
|
|
3436
|
+
var Qa = m._ma_device__on_notification_unlocked = a => (Qa = m._ma_device__on_notification_unlocked = A.ma_device__on_notification_unlocked)(a);
|
|
3437
|
+
m._ma_malloc_emscripten = (a, b) => (m._ma_malloc_emscripten = A.ma_malloc_emscripten)(a, b);
|
|
3438
|
+
m._ma_free_emscripten = (a, b) => (m._ma_free_emscripten = A.ma_free_emscripten)(a, b);
|
|
3439
|
+
var Ra = m._ma_device_process_pcm_frames_capture__webaudio = (a, b, c) => (Ra = m._ma_device_process_pcm_frames_capture__webaudio = A.ma_device_process_pcm_frames_capture__webaudio)(a, b, c), Sa = m._ma_device_process_pcm_frames_playback__webaudio = (a, b, c) => (Sa = m._ma_device_process_pcm_frames_playback__webaudio = A.ma_device_process_pcm_frames_playback__webaudio)(a, b, c), Vd = () => (Vd = A.__errno_location)(), mc = a => (mc = A.__getTypeName)(a);
|
|
3440
|
+
m.__embind_initialize_bindings = () => (m.__embind_initialize_bindings = A._embind_initialize_bindings)();
|
|
3441
|
+
m.dynCall_iiji = (a, b, c, d, e) => (m.dynCall_iiji = A.dynCall_iiji)(a, b, c, d, e);
|
|
3442
|
+
m.dynCall_iiiji = (a, b, c, d, e, f) => (m.dynCall_iiiji = A.dynCall_iiiji)(a, b, c, d, e, f);
|
|
3443
|
+
m.dynCall_iij = (a, b, c, d) => (m.dynCall_iij = A.dynCall_iij)(a, b, c, d);
|
|
3444
|
+
m.dynCall_jii = (a, b, c) => (m.dynCall_jii = A.dynCall_jii)(a, b, c);
|
|
3445
|
+
m.dynCall_jiji = (a, b, c, d, e) => (m.dynCall_jiji = A.dynCall_jiji)(a, b, c, d, e);
|
|
3446
|
+
m.dynCall_viijii = (a, b, c, d, e, f, g) => (m.dynCall_viijii = A.dynCall_viijii)(a, b, c, d, e, f, g);
|
|
3447
|
+
m.dynCall_iiiiij = (a, b, c, d, e, f, g) => (m.dynCall_iiiiij = A.dynCall_iiiiij)(a, b, c, d, e, f, g);
|
|
3448
|
+
m.dynCall_iiiiijj = (a, b, c, d, e, f, g, n, p) => (m.dynCall_iiiiijj = A.dynCall_iiiiijj)(a, b, c, d, e, f, g, n, p);
|
|
3449
|
+
m.dynCall_iiiiiijj = (a, b, c, d, e, f, g, n, p, l) => (m.dynCall_iiiiiijj = A.dynCall_iiiiiijj)(a, b, c, d, e, f, g, n, p, l);
|
|
3450
|
+
m.___start_em_js = 492444;
|
|
3451
|
+
m.___stop_em_js = 494878;
|
|
3455
3452
|
var Xd;
|
|
3456
3453
|
Ga = function Yd() {
|
|
3457
3454
|
Xd || Zd();
|
|
@@ -3459,17 +3456,17 @@ Ga = function Yd() {
|
|
|
3459
3456
|
};
|
|
3460
3457
|
function Zd() {
|
|
3461
3458
|
function a() {
|
|
3462
|
-
if (!Xd && (Xd = !0,
|
|
3463
|
-
|
|
3459
|
+
if (!Xd && (Xd = !0, m.calledRun = !0, !ua)) {
|
|
3460
|
+
m.noFSInit || Sb || (Sb = !0, Rb(), m.stdin = m.stdin, m.stdout = m.stdout, m.stderr = m.stderr, m.stdin ? Ub("stdin", m.stdin) : Nb("/dev/tty", "/dev/stdin"), m.stdout ? Ub("stdout", null, m.stdout) : Nb("/dev/tty", "/dev/stdout"), m.stderr ? Ub("stderr", null, m.stderr) : Nb("/dev/tty1", "/dev/stderr"), Pb("/dev/stdin", 0), Pb("/dev/stdout", 1), Pb("/dev/stderr", 1));
|
|
3464
3461
|
yb = !1;
|
|
3465
3462
|
Ua(Ba);
|
|
3466
|
-
aa(
|
|
3467
|
-
if (
|
|
3468
|
-
|
|
3463
|
+
aa(m);
|
|
3464
|
+
if (m.onRuntimeInitialized) {
|
|
3465
|
+
m.onRuntimeInitialized();
|
|
3469
3466
|
}
|
|
3470
|
-
if (
|
|
3471
|
-
for ("function" == typeof
|
|
3472
|
-
var b =
|
|
3467
|
+
if (m.postRun) {
|
|
3468
|
+
for ("function" == typeof m.postRun && (m.postRun = [m.postRun]); m.postRun.length;) {
|
|
3469
|
+
var b = m.postRun.shift();
|
|
3473
3470
|
Ca.unshift(b);
|
|
3474
3471
|
}
|
|
3475
3472
|
}
|
|
@@ -3477,23 +3474,23 @@ function Zd() {
|
|
|
3477
3474
|
}
|
|
3478
3475
|
}
|
|
3479
3476
|
if (!(0 < Ea)) {
|
|
3480
|
-
if (
|
|
3481
|
-
for ("function" == typeof
|
|
3477
|
+
if (m.preRun) {
|
|
3478
|
+
for ("function" == typeof m.preRun && (m.preRun = [m.preRun]); m.preRun.length;) {
|
|
3482
3479
|
Da();
|
|
3483
3480
|
}
|
|
3484
3481
|
}
|
|
3485
3482
|
Ua(Aa);
|
|
3486
|
-
0 < Ea || (
|
|
3483
|
+
0 < Ea || (m.setStatus ? (m.setStatus("Running..."), setTimeout(function() {
|
|
3487
3484
|
setTimeout(function() {
|
|
3488
|
-
|
|
3485
|
+
m.setStatus("");
|
|
3489
3486
|
}, 1);
|
|
3490
3487
|
a();
|
|
3491
3488
|
}, 1)) : a());
|
|
3492
3489
|
}
|
|
3493
3490
|
}
|
|
3494
|
-
if (
|
|
3495
|
-
for ("function" == typeof
|
|
3496
|
-
|
|
3491
|
+
if (m.preInit) {
|
|
3492
|
+
for ("function" == typeof m.preInit && (m.preInit = [m.preInit]); 0 < m.preInit.length;) {
|
|
3493
|
+
m.preInit.pop()();
|
|
3497
3494
|
}
|
|
3498
3495
|
}
|
|
3499
3496
|
Zd();
|