@rive-app/webgl2 2.25.3 → 2.25.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/rive.d.ts +2 -2
- package/rive.js +278 -276
- package/rive.js.map +1 -1
- package/rive.wasm +0 -0
package/rive.js
CHANGED
|
@@ -26,17 +26,17 @@ var Rive = (() => {
|
|
|
26
26
|
return (
|
|
27
27
|
function(moduleArg = {}) {
|
|
28
28
|
|
|
29
|
-
var
|
|
30
|
-
|
|
29
|
+
var m = moduleArg, aa, ba;
|
|
30
|
+
m.ready = new Promise((a, b) => {
|
|
31
31
|
aa = a;
|
|
32
32
|
ba = b;
|
|
33
33
|
});
|
|
34
34
|
function ca() {
|
|
35
35
|
function a(g) {
|
|
36
|
-
const
|
|
36
|
+
const n = d;
|
|
37
37
|
c = b = 0;
|
|
38
38
|
d = new Map();
|
|
39
|
-
|
|
39
|
+
n.forEach(p => {
|
|
40
40
|
try {
|
|
41
41
|
p(g);
|
|
42
42
|
} catch (l) {
|
|
@@ -49,9 +49,9 @@ function ca() {
|
|
|
49
49
|
let b = 0, c = 0, d = new Map(), e = null, f = null;
|
|
50
50
|
this.requestAnimationFrame = function(g) {
|
|
51
51
|
b || (b = requestAnimationFrame(a.bind(this)));
|
|
52
|
-
const
|
|
53
|
-
d.set(
|
|
54
|
-
return
|
|
52
|
+
const n = ++c;
|
|
53
|
+
d.set(n, g);
|
|
54
|
+
return n;
|
|
55
55
|
};
|
|
56
56
|
this.cancelAnimationFrame = function(g) {
|
|
57
57
|
d.delete(g);
|
|
@@ -59,14 +59,14 @@ function ca() {
|
|
|
59
59
|
};
|
|
60
60
|
this.Jb = function(g) {
|
|
61
61
|
f && (document.body.remove(f), f = null);
|
|
62
|
-
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(
|
|
63
|
-
f.innerHTML = "RIVE FPS " +
|
|
62
|
+
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) {
|
|
63
|
+
f.innerHTML = "RIVE FPS " + n.toFixed(1);
|
|
64
64
|
}, document.body.appendChild(f));
|
|
65
65
|
e = new function() {
|
|
66
|
-
let
|
|
66
|
+
let n = 0, p = 0;
|
|
67
67
|
this.Lb = function() {
|
|
68
68
|
var l = performance.now();
|
|
69
|
-
p ? (++
|
|
69
|
+
p ? (++n, l -= p, 1000 < l && (g(1000 * n / l), n = p = 0)) : (p = l, n = 0);
|
|
70
70
|
};
|
|
71
71
|
}();
|
|
72
72
|
};
|
|
@@ -88,44 +88,44 @@ function da() {
|
|
|
88
88
|
return b << 8;
|
|
89
89
|
};
|
|
90
90
|
}
|
|
91
|
-
const ea =
|
|
92
|
-
|
|
91
|
+
const ea = m.onRuntimeInitialized;
|
|
92
|
+
m.onRuntimeInitialized = function() {
|
|
93
93
|
ea && ea();
|
|
94
|
-
let a =
|
|
95
|
-
|
|
94
|
+
let a = m.decodeAudio;
|
|
95
|
+
m.decodeAudio = function(e, f) {
|
|
96
96
|
e = a(e);
|
|
97
97
|
f(e);
|
|
98
98
|
};
|
|
99
|
-
let b =
|
|
100
|
-
|
|
99
|
+
let b = m.decodeFont;
|
|
100
|
+
m.decodeFont = function(e, f) {
|
|
101
101
|
e = b(e);
|
|
102
102
|
f(e);
|
|
103
103
|
};
|
|
104
|
-
const c =
|
|
105
|
-
|
|
106
|
-
let f =
|
|
107
|
-
return f.isImage ?
|
|
104
|
+
const c = m.FileAssetLoader;
|
|
105
|
+
m.ptrToAsset = e => {
|
|
106
|
+
let f = m.ptrToFileAsset(e);
|
|
107
|
+
return f.isImage ? m.ptrToImageAsset(e) : f.isFont ? m.ptrToFontAsset(e) : f.isAudio ? m.ptrToAudioAsset(e) : f;
|
|
108
108
|
};
|
|
109
|
-
|
|
109
|
+
m.CustomFileAssetLoader = c.extend("CustomFileAssetLoader", {__construct:function({loadContents:e}) {
|
|
110
110
|
this.__parent.__construct.call(this);
|
|
111
111
|
this.Ab = e;
|
|
112
112
|
}, loadContents:function(e, f) {
|
|
113
|
-
e =
|
|
113
|
+
e = m.ptrToAsset(e);
|
|
114
114
|
return this.Ab(e, f);
|
|
115
115
|
},});
|
|
116
|
-
|
|
116
|
+
m.CDNFileAssetLoader = c.extend("CDNFileAssetLoader", {__construct:function() {
|
|
117
117
|
this.__parent.__construct.call(this);
|
|
118
118
|
}, loadContents:function(e) {
|
|
119
|
-
let f =
|
|
119
|
+
let f = m.ptrToAsset(e);
|
|
120
120
|
e = f.cdnUuid;
|
|
121
121
|
if ("" === e) {
|
|
122
122
|
return !1;
|
|
123
123
|
}
|
|
124
|
-
(function(g,
|
|
124
|
+
(function(g, n) {
|
|
125
125
|
var p = new XMLHttpRequest();
|
|
126
126
|
p.responseType = "arraybuffer";
|
|
127
127
|
p.onreadystatechange = function() {
|
|
128
|
-
4 == p.readyState && 200 == p.status &&
|
|
128
|
+
4 == p.readyState && 200 == p.status && n(p);
|
|
129
129
|
};
|
|
130
130
|
p.open("GET", g, !0);
|
|
131
131
|
p.send(null);
|
|
@@ -134,7 +134,7 @@ n.onRuntimeInitialized = function() {
|
|
|
134
134
|
});
|
|
135
135
|
return !0;
|
|
136
136
|
},});
|
|
137
|
-
|
|
137
|
+
m.FallbackFileAssetLoader = c.extend("FallbackFileAssetLoader", {__construct:function() {
|
|
138
138
|
this.__parent.__construct.call(this);
|
|
139
139
|
this.fb = [];
|
|
140
140
|
}, addLoader:function(e) {
|
|
@@ -147,13 +147,13 @@ n.onRuntimeInitialized = function() {
|
|
|
147
147
|
}
|
|
148
148
|
return !1;
|
|
149
149
|
},});
|
|
150
|
-
let d =
|
|
151
|
-
|
|
152
|
-
return d.call(this, e, f, g,
|
|
150
|
+
let d = m.computeAlignment;
|
|
151
|
+
m.computeAlignment = function(e, f, g, n, p = 1.0) {
|
|
152
|
+
return d.call(this, e, f, g, n, p);
|
|
153
153
|
};
|
|
154
154
|
};
|
|
155
|
-
const fa =
|
|
156
|
-
|
|
155
|
+
const fa = m.onRuntimeInitialized;
|
|
156
|
+
m.onRuntimeInitialized = function() {
|
|
157
157
|
function a(k) {
|
|
158
158
|
this.F = k;
|
|
159
159
|
this.yb = k.getContext("2d");
|
|
@@ -183,6 +183,8 @@ n.onRuntimeInitialized = function() {
|
|
|
183
183
|
e.add(this);
|
|
184
184
|
d.Ta || c();
|
|
185
185
|
};
|
|
186
|
+
this["delete"] = function() {
|
|
187
|
+
};
|
|
186
188
|
}
|
|
187
189
|
function b(k, q = !1) {
|
|
188
190
|
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,};
|
|
@@ -217,8 +219,8 @@ n.onRuntimeInitialized = function() {
|
|
|
217
219
|
}
|
|
218
220
|
q = Math.min(q, k);
|
|
219
221
|
q = Math.min(v, k);
|
|
220
|
-
B.sort((Y,
|
|
221
|
-
y = new
|
|
222
|
+
B.sort((Y, rb) => rb.Ia - Y.Ia);
|
|
223
|
+
y = new m.DynamicRectanizer(k);
|
|
222
224
|
for (E = 0; E < B.length;) {
|
|
223
225
|
y.reset(q, v);
|
|
224
226
|
for (D = E; D < B.length; ++D) {
|
|
@@ -230,7 +232,7 @@ n.onRuntimeInitialized = function() {
|
|
|
230
232
|
H.ra = F & 65535;
|
|
231
233
|
H.sa = F >> 16;
|
|
232
234
|
}
|
|
233
|
-
H =
|
|
235
|
+
H = n.push(y.drawWidth());
|
|
234
236
|
F = p.push(y.drawHeight());
|
|
235
237
|
console.assert(H >= y.drawWidth());
|
|
236
238
|
console.assert(F >= y.drawHeight());
|
|
@@ -242,15 +244,15 @@ n.onRuntimeInitialized = function() {
|
|
|
242
244
|
for (H = E; H < D; ++H) {
|
|
243
245
|
F = B[H];
|
|
244
246
|
d.saveClipRect(F.ra, F.sa, F.ra + F.fa, F.sa + F.ea);
|
|
245
|
-
let Y = new
|
|
247
|
+
let Y = new m.Mat2D();
|
|
246
248
|
Y.xx = F.fa / F.F.width;
|
|
247
249
|
Y.yy = F.ea / F.F.height;
|
|
248
250
|
Y.xy = Y.yx = 0;
|
|
249
251
|
Y.tx = F.ra;
|
|
250
252
|
Y.ty = F.sa;
|
|
251
253
|
d.transform(Y);
|
|
252
|
-
for (const
|
|
253
|
-
|
|
254
|
+
for (const rb of F.S) {
|
|
255
|
+
rb();
|
|
254
256
|
}
|
|
255
257
|
d.restoreClipRect();
|
|
256
258
|
F.S = [];
|
|
@@ -265,8 +267,8 @@ n.onRuntimeInitialized = function() {
|
|
|
265
267
|
}
|
|
266
268
|
fa && fa();
|
|
267
269
|
let d = null;
|
|
268
|
-
const e = new Set(), f =
|
|
269
|
-
|
|
270
|
+
const e = new Set(), f = m.makeRenderer;
|
|
271
|
+
m.makeRenderer = function(k, q) {
|
|
270
272
|
if (!d) {
|
|
271
273
|
function v(y) {
|
|
272
274
|
var B = document.createElement("canvas");
|
|
@@ -286,25 +288,25 @@ n.onRuntimeInitialized = function() {
|
|
|
286
288
|
}
|
|
287
289
|
return q ? new a(k) : b(k, d.Ja);
|
|
288
290
|
};
|
|
289
|
-
const g =
|
|
290
|
-
|
|
291
|
+
const g = m.Artboard.prototype.draw;
|
|
292
|
+
m.Artboard.prototype.draw = function(k) {
|
|
291
293
|
k.S ? k.S.push(g.bind(this, k.Cb)) : g.call(this, k);
|
|
292
294
|
};
|
|
293
|
-
const
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
295
|
+
const n = new da(), p = new da(), l = new ca();
|
|
296
|
+
m.requestAnimationFrame = l.requestAnimationFrame.bind(l);
|
|
297
|
+
m.cancelAnimationFrame = l.cancelAnimationFrame.bind(l);
|
|
298
|
+
m.enableFPSCounter = l.Jb.bind(l);
|
|
297
299
|
l.jb = c;
|
|
298
|
-
|
|
299
|
-
let t =
|
|
300
|
-
|
|
301
|
-
const y = new
|
|
300
|
+
m.resolveAnimationFrame = c;
|
|
301
|
+
let t = m.load;
|
|
302
|
+
m.load = function(k, q, v = !0) {
|
|
303
|
+
const y = new m.FallbackFileAssetLoader();
|
|
302
304
|
void 0 !== q && y.addLoader(q);
|
|
303
|
-
v && (q = new
|
|
305
|
+
v && (q = new m.CDNFileAssetLoader(), y.addLoader(q));
|
|
304
306
|
return Promise.resolve(t(k, y));
|
|
305
307
|
};
|
|
306
|
-
const u =
|
|
307
|
-
|
|
308
|
+
const u = m.WebGL2Renderer.prototype.clear;
|
|
309
|
+
m.WebGL2Renderer.prototype.clear = function() {
|
|
308
310
|
ja(this.zb);
|
|
309
311
|
const k = this.F;
|
|
310
312
|
if (this.Va != k.width || this.Ua != k.height) {
|
|
@@ -312,16 +314,16 @@ n.onRuntimeInitialized = function() {
|
|
|
312
314
|
}
|
|
313
315
|
u.call(this);
|
|
314
316
|
};
|
|
315
|
-
|
|
316
|
-
k =
|
|
317
|
+
m.decodeImage = function(k, q) {
|
|
318
|
+
k = m.decodeWebGL2Image(k);
|
|
317
319
|
q(k);
|
|
318
320
|
};
|
|
319
|
-
let x =
|
|
320
|
-
|
|
321
|
+
let x = m.Renderer.prototype.align;
|
|
322
|
+
m.Renderer.prototype.align = function(k, q, v, y, B = 1.0) {
|
|
321
323
|
x.call(this, k, q, v, y, B);
|
|
322
324
|
};
|
|
323
325
|
};
|
|
324
|
-
var ka = Object.assign({},
|
|
326
|
+
var ka = Object.assign({}, m), la = "./this.program", ma = "object" == typeof window, na = "function" == typeof importScripts, w = "", oa, pa;
|
|
325
327
|
if (ma || na) {
|
|
326
328
|
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 => {
|
|
327
329
|
var b = new XMLHttpRequest();
|
|
@@ -340,35 +342,35 @@ if (ma || na) {
|
|
|
340
342
|
d.send(null);
|
|
341
343
|
};
|
|
342
344
|
}
|
|
343
|
-
var qa =
|
|
344
|
-
Object.assign(
|
|
345
|
+
var qa = m.print || console.log.bind(console), z = m.printErr || console.error.bind(console);
|
|
346
|
+
Object.assign(m, ka);
|
|
345
347
|
ka = null;
|
|
346
|
-
|
|
348
|
+
m.thisProgram && (la = m.thisProgram);
|
|
347
349
|
var ra;
|
|
348
|
-
|
|
349
|
-
var noExitRuntime =
|
|
350
|
+
m.wasmBinary && (ra = m.wasmBinary);
|
|
351
|
+
var noExitRuntime = m.noExitRuntime || !0;
|
|
350
352
|
"object" != typeof WebAssembly && sa("no native wasm support detected");
|
|
351
353
|
var ta, A, ua = !1, C, G, I, va, J, K, wa, xa;
|
|
352
354
|
function ya() {
|
|
353
355
|
var a = ta.buffer;
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
356
|
+
m.HEAP8 = C = new Int8Array(a);
|
|
357
|
+
m.HEAP16 = I = new Int16Array(a);
|
|
358
|
+
m.HEAP32 = J = new Int32Array(a);
|
|
359
|
+
m.HEAPU8 = G = new Uint8Array(a);
|
|
360
|
+
m.HEAPU16 = va = new Uint16Array(a);
|
|
361
|
+
m.HEAPU32 = K = new Uint32Array(a);
|
|
362
|
+
m.HEAPF32 = wa = new Float32Array(a);
|
|
363
|
+
m.HEAPF64 = xa = new Float64Array(a);
|
|
362
364
|
}
|
|
363
365
|
var za, Aa = [], Ba = [], Ca = [];
|
|
364
366
|
function Da() {
|
|
365
|
-
var a =
|
|
367
|
+
var a = m.preRun.shift();
|
|
366
368
|
Aa.unshift(a);
|
|
367
369
|
}
|
|
368
370
|
var Ea = 0, Fa = null, Ga = null;
|
|
369
371
|
function sa(a) {
|
|
370
|
-
if (
|
|
371
|
-
|
|
372
|
+
if (m.onAbort) {
|
|
373
|
+
m.onAbort(a);
|
|
372
374
|
}
|
|
373
375
|
a = "Aborted(" + a + ")";
|
|
374
376
|
z(a);
|
|
@@ -384,7 +386,7 @@ var Ia;
|
|
|
384
386
|
Ia = "webgl2_advanced.wasm";
|
|
385
387
|
if (!Ha(Ia)) {
|
|
386
388
|
var Ja = Ia;
|
|
387
|
-
Ia =
|
|
389
|
+
Ia = m.locateFile ? m.locateFile(Ja, w) : w + Ja;
|
|
388
390
|
}
|
|
389
391
|
function Ka(a) {
|
|
390
392
|
if (a == Ia && ra) {
|
|
@@ -427,7 +429,7 @@ function Na(a, b) {
|
|
|
427
429
|
return Ma(c, a, b);
|
|
428
430
|
}));
|
|
429
431
|
}
|
|
430
|
-
var Oa, Pa, Ta = {
|
|
432
|
+
var Oa, Pa, Ta = {500942:(a, b, c, d, e) => {
|
|
431
433
|
if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
|
|
432
434
|
return 0;
|
|
433
435
|
}
|
|
@@ -443,9 +445,9 @@ var Oa, Pa, Ta = {494670:(a, b, c, d, e) => {
|
|
|
443
445
|
let f = window.h;
|
|
444
446
|
f.C = [];
|
|
445
447
|
f.mc = function(g) {
|
|
446
|
-
for (var
|
|
447
|
-
if (null == f.C[
|
|
448
|
-
return f.C[
|
|
448
|
+
for (var n = 0; n < f.C.length; ++n) {
|
|
449
|
+
if (null == f.C[n]) {
|
|
450
|
+
return f.C[n] = g, n;
|
|
449
451
|
}
|
|
450
452
|
}
|
|
451
453
|
f.C.push(g);
|
|
@@ -461,9 +463,9 @@ var Oa, Pa, Ta = {494670:(a, b, c, d, e) => {
|
|
|
461
463
|
}
|
|
462
464
|
};
|
|
463
465
|
f.Oc = function(g) {
|
|
464
|
-
for (var
|
|
465
|
-
if (f.C[
|
|
466
|
-
return f.xb(
|
|
466
|
+
for (var n = 0; n < f.C.length; ++n) {
|
|
467
|
+
if (f.C[n] == g) {
|
|
468
|
+
return f.xb(n);
|
|
467
469
|
}
|
|
468
470
|
}
|
|
469
471
|
};
|
|
@@ -473,9 +475,9 @@ var Oa, Pa, Ta = {494670:(a, b, c, d, e) => {
|
|
|
473
475
|
f.wb = ["touchend", "click"];
|
|
474
476
|
f.unlock = function() {
|
|
475
477
|
for (var g = 0; g < f.C.length; ++g) {
|
|
476
|
-
var
|
|
477
|
-
null !=
|
|
478
|
-
Qa(
|
|
478
|
+
var n = f.C[g];
|
|
479
|
+
null != n && null != n.I && n.state === f.ia.sb && n.I.resume().then(() => {
|
|
480
|
+
Qa(n.kb);
|
|
479
481
|
}, p => {
|
|
480
482
|
console.error("Failed to resume audiocontext", p);
|
|
481
483
|
});
|
|
@@ -490,9 +492,9 @@ var Oa, Pa, Ta = {494670:(a, b, c, d, e) => {
|
|
|
490
492
|
}
|
|
491
493
|
window.h.Da += 1;
|
|
492
494
|
return 1;
|
|
493
|
-
},
|
|
495
|
+
}, 503120:() => {
|
|
494
496
|
"undefined" !== typeof window.h && (--window.h.Da, 0 === window.h.Da && delete window.h);
|
|
495
|
-
},
|
|
497
|
+
}, 503284:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 503388:() => {
|
|
496
498
|
try {
|
|
497
499
|
var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
|
|
498
500
|
a.close();
|
|
@@ -500,13 +502,13 @@ var Oa, Pa, Ta = {494670:(a, b, c, d, e) => {
|
|
|
500
502
|
} catch (c) {
|
|
501
503
|
return 0;
|
|
502
504
|
}
|
|
503
|
-
},
|
|
505
|
+
}, 503559:(a, b, c, d, e, f) => {
|
|
504
506
|
if ("undefined" === typeof window.h) {
|
|
505
507
|
return -1;
|
|
506
508
|
}
|
|
507
|
-
var g = {},
|
|
508
|
-
a == window.h.H.Ba && 0 != c && (
|
|
509
|
-
g.I = new (window.AudioContext || window.webkitAudioContext)(
|
|
509
|
+
var g = {}, n = {};
|
|
510
|
+
a == window.h.H.Ba && 0 != c && (n.sampleRate = c);
|
|
511
|
+
g.I = new (window.AudioContext || window.webkitAudioContext)(n);
|
|
510
512
|
g.I.suspend();
|
|
511
513
|
g.state = window.h.ia.stopped;
|
|
512
514
|
c = 0;
|
|
@@ -546,7 +548,7 @@ var Oa, Pa, Ta = {494670:(a, b, c, d, e) => {
|
|
|
546
548
|
a == window.h.H.Ba && g.Z.connect(g.I.destination);
|
|
547
549
|
g.kb = f;
|
|
548
550
|
return window.h.mc(g);
|
|
549
|
-
},
|
|
551
|
+
}, 506436:a => window.h.va(a).I.sampleRate, 506509:a => {
|
|
550
552
|
a = window.h.va(a);
|
|
551
553
|
void 0 !== a.Z && (a.Z.onaudioprocess = function() {
|
|
552
554
|
}, a.Z.disconnect(), a.Z = void 0);
|
|
@@ -554,19 +556,19 @@ var Oa, Pa, Ta = {494670:(a, b, c, d, e) => {
|
|
|
554
556
|
a.I.close();
|
|
555
557
|
a.I = void 0;
|
|
556
558
|
a.kb = void 0;
|
|
557
|
-
},
|
|
559
|
+
}, 506909:a => {
|
|
558
560
|
window.h.xb(a);
|
|
559
|
-
},
|
|
561
|
+
}, 506959:a => {
|
|
560
562
|
a = window.h.va(a);
|
|
561
563
|
a.I.resume();
|
|
562
564
|
a.state = window.h.ia.sb;
|
|
563
|
-
},
|
|
565
|
+
}, 507098:a => {
|
|
564
566
|
a = window.h.va(a);
|
|
565
567
|
a.I.suspend();
|
|
566
568
|
a.state = window.h.ia.stopped;
|
|
567
569
|
}}, Ua = a => {
|
|
568
570
|
for (; 0 < a.length;) {
|
|
569
|
-
a.shift()(
|
|
571
|
+
a.shift()(m);
|
|
570
572
|
}
|
|
571
573
|
}, Va = (a, b) => {
|
|
572
574
|
for (var c = 0, d = a.length - 1; 0 <= d; d--) {
|
|
@@ -661,8 +663,8 @@ var bb = "undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0, L
|
|
|
661
663
|
for (var f = 0; f < a.length; ++f) {
|
|
662
664
|
var g = a.charCodeAt(f);
|
|
663
665
|
if (55296 <= g && 57343 >= g) {
|
|
664
|
-
var
|
|
665
|
-
g = 65536 + ((g & 1023) << 10) |
|
|
666
|
+
var n = a.charCodeAt(++f);
|
|
667
|
+
g = 65536 + ((g & 1023) << 10) | n & 1023;
|
|
666
668
|
}
|
|
667
669
|
if (127 >= g) {
|
|
668
670
|
if (c >= d) {
|
|
@@ -725,7 +727,7 @@ var jb = {open:function(a) {
|
|
|
725
727
|
for (var e = 0, f = 0; f < d; f++) {
|
|
726
728
|
try {
|
|
727
729
|
var g = a.s.U.eb(a.s);
|
|
728
|
-
} catch (
|
|
730
|
+
} catch (n) {
|
|
729
731
|
throw new M(29);
|
|
730
732
|
}
|
|
731
733
|
if (void 0 === g && 0 === e) {
|
|
@@ -950,7 +952,7 @@ var N = {O:null, T() {
|
|
|
950
952
|
N.m.write(a, b, 0, d, c, !1);
|
|
951
953
|
return 0;
|
|
952
954
|
},},};
|
|
953
|
-
function
|
|
955
|
+
function sb(a, b) {
|
|
954
956
|
var c = 0;
|
|
955
957
|
a && (c |= 365);
|
|
956
958
|
b && (c |= 146);
|
|
@@ -1200,7 +1202,7 @@ var tb = null, ub = {}, vb = [], wb = 1, xb = null, yb = !0, M = null, pb = {},
|
|
|
1200
1202
|
b &= -131713;
|
|
1201
1203
|
e = Kb({node:e, path:Bb(e), flags:b, seekable:!0, position:0, m:e.m, nc:[], error:!1});
|
|
1202
1204
|
e.m.open && e.m.open(e);
|
|
1203
|
-
!
|
|
1205
|
+
!m.logReadFiles || b & 1 || (Ob || (Ob = {}), a in Ob || (Ob[a] = 1));
|
|
1204
1206
|
return e;
|
|
1205
1207
|
}, Qb = (a, b, c) => {
|
|
1206
1208
|
if (null === a.X) {
|
|
@@ -1229,14 +1231,14 @@ var tb = null, ub = {}, vb = [], wb = 1, xb = null, yb = !0, M = null, pb = {},
|
|
|
1229
1231
|
}));
|
|
1230
1232
|
}, Sb, Ub = (a, b, c) => {
|
|
1231
1233
|
a = Wa("/dev/" + a);
|
|
1232
|
-
var d =
|
|
1234
|
+
var d = sb(!!b, !!c);
|
|
1233
1235
|
Tb || (Tb = 64);
|
|
1234
1236
|
var e = Tb++ << 8 | 0;
|
|
1235
1237
|
ib(e, {open:f => {
|
|
1236
1238
|
f.seekable = !1;
|
|
1237
1239
|
}, close:() => {
|
|
1238
1240
|
c && c.buffer && c.buffer.length && c(10);
|
|
1239
|
-
}, read:(f, g,
|
|
1241
|
+
}, read:(f, g, n, p) => {
|
|
1240
1242
|
for (var l = 0, t = 0; t < p; t++) {
|
|
1241
1243
|
try {
|
|
1242
1244
|
var u = b();
|
|
@@ -1250,14 +1252,14 @@ var tb = null, ub = {}, vb = [], wb = 1, xb = null, yb = !0, M = null, pb = {},
|
|
|
1250
1252
|
break;
|
|
1251
1253
|
}
|
|
1252
1254
|
l++;
|
|
1253
|
-
g[
|
|
1255
|
+
g[n + t] = u;
|
|
1254
1256
|
}
|
|
1255
1257
|
l && (f.node.timestamp = Date.now());
|
|
1256
1258
|
return l;
|
|
1257
|
-
}, write:(f, g,
|
|
1259
|
+
}, write:(f, g, n, p) => {
|
|
1258
1260
|
for (var l = 0; l < p; l++) {
|
|
1259
1261
|
try {
|
|
1260
|
-
c(g[
|
|
1262
|
+
c(g[n + l]);
|
|
1261
1263
|
} catch (t) {
|
|
1262
1264
|
throw new M(29);
|
|
1263
1265
|
}
|
|
@@ -1419,20 +1421,20 @@ function Bc(a) {
|
|
|
1419
1421
|
}
|
|
1420
1422
|
var Cc = {}, Dc = {};
|
|
1421
1423
|
function T(a, b, c) {
|
|
1422
|
-
function d(
|
|
1423
|
-
|
|
1424
|
-
|
|
1424
|
+
function d(n) {
|
|
1425
|
+
n = c(n);
|
|
1426
|
+
n.length !== a.length && wc("Mismatched type converter count");
|
|
1425
1427
|
for (var p = 0; p < a.length; ++p) {
|
|
1426
|
-
U(a[p],
|
|
1428
|
+
U(a[p], n[p]);
|
|
1427
1429
|
}
|
|
1428
1430
|
}
|
|
1429
|
-
a.forEach(function(
|
|
1430
|
-
Dc[
|
|
1431
|
+
a.forEach(function(n) {
|
|
1432
|
+
Dc[n] = b;
|
|
1431
1433
|
});
|
|
1432
1434
|
var e = Array(b.length), f = [], g = 0;
|
|
1433
|
-
b.forEach((
|
|
1434
|
-
kc.hasOwnProperty(
|
|
1435
|
-
e[p] = kc[
|
|
1435
|
+
b.forEach((n, p) => {
|
|
1436
|
+
kc.hasOwnProperty(n) ? e[p] = kc[n] : (f.push(n), Cc.hasOwnProperty(n) || (Cc[n] = []), Cc[n].push(() => {
|
|
1437
|
+
e[p] = kc[n];
|
|
1436
1438
|
++g;
|
|
1437
1439
|
g === f.length && d(e);
|
|
1438
1440
|
}));
|
|
@@ -1489,9 +1491,9 @@ function Ic(a, b, c) {
|
|
|
1489
1491
|
}
|
|
1490
1492
|
}
|
|
1491
1493
|
function Jc(a, b, c) {
|
|
1492
|
-
|
|
1494
|
+
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));
|
|
1493
1495
|
}
|
|
1494
|
-
function Kc(a, b, c, d, e, f, g,
|
|
1496
|
+
function Kc(a, b, c, d, e, f, g, n) {
|
|
1495
1497
|
this.name = a;
|
|
1496
1498
|
this.constructor = b;
|
|
1497
1499
|
this.N = c;
|
|
@@ -1499,7 +1501,7 @@ function Kc(a, b, c, d, e, f, g, m) {
|
|
|
1499
1501
|
this.A = e;
|
|
1500
1502
|
this.Mb = f;
|
|
1501
1503
|
this.pa = g;
|
|
1502
|
-
this.Hb =
|
|
1504
|
+
this.Hb = n;
|
|
1503
1505
|
this.lb = [];
|
|
1504
1506
|
}
|
|
1505
1507
|
function Lc(a, b, c) {
|
|
@@ -1574,8 +1576,8 @@ function Qc(a, b, c, d) {
|
|
|
1574
1576
|
void 0 !== b.A ? this.toWireType = Oc : (this.toWireType = d ? Mc : Pc, this.K = null);
|
|
1575
1577
|
}
|
|
1576
1578
|
function Rc(a, b, c) {
|
|
1577
|
-
|
|
1578
|
-
void 0 !==
|
|
1579
|
+
m.hasOwnProperty(a) || wc("Replacing nonexistant public symbol");
|
|
1580
|
+
void 0 !== m[a].B && void 0 !== c ? m[a].B[c] = b : (m[a] = b, m[a].ga = c);
|
|
1579
1581
|
}
|
|
1580
1582
|
var Sc = [], Tc = a => {
|
|
1581
1583
|
var b = Sc[a];
|
|
@@ -1587,7 +1589,7 @@ var Sc = [], Tc = a => {
|
|
|
1587
1589
|
c.length = 0;
|
|
1588
1590
|
Object.assign(c, arguments);
|
|
1589
1591
|
if (a.includes("j")) {
|
|
1590
|
-
var d =
|
|
1592
|
+
var d = m["dynCall_" + a];
|
|
1591
1593
|
d = c && c.length ? d.apply(null, [b].concat(c)) : d.call(null, b);
|
|
1592
1594
|
} else {
|
|
1593
1595
|
d = Tc(b).apply(null, c);
|
|
@@ -1613,10 +1615,10 @@ function Wc(a, b) {
|
|
|
1613
1615
|
function Xc(a, b, c, d, e) {
|
|
1614
1616
|
var f = b.length;
|
|
1615
1617
|
2 > f && Q("argTypes array size mismatch! Must at least get return value and 'this' types!");
|
|
1616
|
-
var g = null !== b[1] && null !== c,
|
|
1618
|
+
var g = null !== b[1] && null !== c, n = !1;
|
|
1617
1619
|
for (c = 1; c < b.length; ++c) {
|
|
1618
1620
|
if (null !== b[c] && void 0 === b[c].K) {
|
|
1619
|
-
|
|
1621
|
+
n = !0;
|
|
1620
1622
|
break;
|
|
1621
1623
|
}
|
|
1622
1624
|
}
|
|
@@ -1634,7 +1636,7 @@ function Xc(a, b, c, d, e) {
|
|
|
1634
1636
|
t[q] = b[q + 2].toWireType(x, arguments[q]), u.push(t[q]);
|
|
1635
1637
|
}
|
|
1636
1638
|
q = d.apply(null, u);
|
|
1637
|
-
if (
|
|
1639
|
+
if (n) {
|
|
1638
1640
|
Ac(x);
|
|
1639
1641
|
} else {
|
|
1640
1642
|
for (var v = g ? 1 : 2; v < b.length; v++) {
|
|
@@ -1829,7 +1831,7 @@ function ha(a) {
|
|
|
1829
1831
|
}
|
|
1830
1832
|
function ja(a) {
|
|
1831
1833
|
Dd = r[a];
|
|
1832
|
-
|
|
1834
|
+
m.xc = Z = Dd && Dd.J;
|
|
1833
1835
|
return !(a && !Z);
|
|
1834
1836
|
}
|
|
1835
1837
|
function ia(a) {
|
|
@@ -1998,7 +2000,7 @@ var Od = a => 0 === a % 4 && (0 !== a % 100 || 0 === a % 400), Pd = [31, 29, 31,
|
|
|
1998
2000
|
0 === (y = v(k.getFullYear() - q.getFullYear())) && 0 === (y = v(k.getMonth() - q.getMonth())) && (y = v(k.getDate() - q.getDate()));
|
|
1999
2001
|
return y;
|
|
2000
2002
|
}
|
|
2001
|
-
function
|
|
2003
|
+
function n(k) {
|
|
2002
2004
|
switch(k.getDay()) {
|
|
2003
2005
|
case 0:
|
|
2004
2006
|
return new Date(k.getFullYear() - 1, 11, 29);
|
|
@@ -2028,8 +2030,8 @@ var Od = a => 0 === a % 4 && (0 !== a % 100 || 0 === a % 400), Pd = [31, 29, 31,
|
|
|
2028
2030
|
}
|
|
2029
2031
|
}
|
|
2030
2032
|
v = new Date(k.getFullYear() + 1, 0, 4);
|
|
2031
|
-
q =
|
|
2032
|
-
v =
|
|
2033
|
+
q = n(new Date(k.getFullYear(), 0, 4));
|
|
2034
|
+
v = n(v);
|
|
2033
2035
|
return 0 >= g(q, k) ? 0 >= g(v, k) ? k.getFullYear() + 1 : k.getFullYear() : k.getFullYear() - 1;
|
|
2034
2036
|
}
|
|
2035
2037
|
var l = J[d + 40 >> 2];
|
|
@@ -2147,7 +2149,7 @@ Object.assign($b.prototype, {get(a) {
|
|
|
2147
2149
|
this.M[a] = void 0;
|
|
2148
2150
|
this.cb.push(a);
|
|
2149
2151
|
}});
|
|
2150
|
-
ac =
|
|
2152
|
+
ac = m.BindingError = class extends Error {
|
|
2151
2153
|
constructor(a) {
|
|
2152
2154
|
super(a);
|
|
2153
2155
|
this.name = "BindingError";
|
|
@@ -2155,33 +2157,33 @@ ac = n.BindingError = class extends Error {
|
|
|
2155
2157
|
};
|
|
2156
2158
|
P.M.push({value:void 0}, {value:null}, {value:!0}, {value:!1},);
|
|
2157
2159
|
P.h = P.M.length;
|
|
2158
|
-
|
|
2160
|
+
m.count_emval_handles = function() {
|
|
2159
2161
|
for (var a = 0, b = P.h; b < P.M.length; ++b) {
|
|
2160
2162
|
void 0 !== P.M[b] && ++a;
|
|
2161
2163
|
}
|
|
2162
2164
|
return a;
|
|
2163
2165
|
};
|
|
2164
|
-
dc =
|
|
2166
|
+
dc = m.PureVirtualError = cc("PureVirtualError");
|
|
2165
2167
|
for (var Sd = Array(256), Td = 0; 256 > Td; ++Td) {
|
|
2166
2168
|
Sd[Td] = String.fromCharCode(Td);
|
|
2167
2169
|
}
|
|
2168
2170
|
ec = Sd;
|
|
2169
|
-
|
|
2171
|
+
m.getInheritedInstanceCount = function() {
|
|
2170
2172
|
return Object.keys(ic).length;
|
|
2171
2173
|
};
|
|
2172
|
-
|
|
2174
|
+
m.getLiveInheritedInstances = function() {
|
|
2173
2175
|
var a = [], b;
|
|
2174
2176
|
for (b in ic) {
|
|
2175
2177
|
ic.hasOwnProperty(b) && a.push(ic[b]);
|
|
2176
2178
|
}
|
|
2177
2179
|
return a;
|
|
2178
2180
|
};
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
+
m.flushPendingDeletes = gc;
|
|
2182
|
+
m.setDelayFunction = function(a) {
|
|
2181
2183
|
hc = a;
|
|
2182
2184
|
fc.length && hc && hc(gc);
|
|
2183
2185
|
};
|
|
2184
|
-
vc =
|
|
2186
|
+
vc = m.InternalError = class extends Error {
|
|
2185
2187
|
constructor(a) {
|
|
2186
2188
|
super(a);
|
|
2187
2189
|
this.name = "InternalError";
|
|
@@ -2269,7 +2271,7 @@ Qc.prototype.fromWireType = function(a) {
|
|
|
2269
2271
|
var e = sc(c, this.i, d.i);
|
|
2270
2272
|
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,});
|
|
2271
2273
|
};
|
|
2272
|
-
Vc =
|
|
2274
|
+
Vc = m.UnboundTypeError = cc("UnboundTypeError");
|
|
2273
2275
|
for (var Z, Ud = 0; 32 > Ud; ++Ud) {
|
|
2274
2276
|
Id.push(Array(Ud));
|
|
2275
2277
|
}
|
|
@@ -2395,17 +2397,17 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2395
2397
|
}
|
|
2396
2398
|
var g = d ? Xb() : 0;
|
|
2397
2399
|
return Pb(b, c, g).X;
|
|
2398
|
-
} catch (
|
|
2399
|
-
if ("undefined" == typeof Vb || "ErrnoError" !==
|
|
2400
|
-
throw
|
|
2400
|
+
} catch (n) {
|
|
2401
|
+
if ("undefined" == typeof Vb || "ErrnoError" !== n.name) {
|
|
2402
|
+
throw n;
|
|
2401
2403
|
}
|
|
2402
|
-
return -
|
|
2404
|
+
return -n.aa;
|
|
2403
2405
|
}
|
|
2404
2406
|
}, _embind_create_inheriting_constructor:function(a, b, c) {
|
|
2405
2407
|
a = S(a);
|
|
2406
2408
|
b = oc(b, "wrapper");
|
|
2407
2409
|
c = R(c);
|
|
2408
|
-
var d = [].slice, e = b.i, f = e.N, g = e.A.N,
|
|
2410
|
+
var d = [].slice, e = b.i, f = e.N, g = e.A.N, n = e.A.constructor;
|
|
2409
2411
|
a = Zb(a, function() {
|
|
2410
2412
|
e.A.lb.forEach(function(l) {
|
|
2411
2413
|
if (this[l] === g[l]) {
|
|
@@ -2417,7 +2419,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2417
2419
|
});
|
|
2418
2420
|
f.__construct = function() {
|
|
2419
2421
|
this === f && Q("Pass correct 'this' to __construct");
|
|
2420
|
-
var l =
|
|
2422
|
+
var l = n.implement.apply(void 0, [this].concat(d.call(arguments)));
|
|
2421
2423
|
pc(l);
|
|
2422
2424
|
var t = l.g;
|
|
2423
2425
|
l.notifyOnDestruction();
|
|
@@ -2445,10 +2447,10 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2445
2447
|
delete zc[a];
|
|
2446
2448
|
var c = b.Pa, d = b.V, e = b.$a, f = e.map(g => g.Qb).concat(e.map(g => g.ec));
|
|
2447
2449
|
T([a], f, g => {
|
|
2448
|
-
var
|
|
2450
|
+
var n = {};
|
|
2449
2451
|
e.forEach((p, l) => {
|
|
2450
2452
|
var t = g[l], u = p.Ob, x = p.Pb, k = g[l + e.length], q = p.dc, v = p.fc;
|
|
2451
|
-
|
|
2453
|
+
n[p.Kb] = {read:y => t.fromWireType(u(x, y)), write:(y, B) => {
|
|
2452
2454
|
var D = [];
|
|
2453
2455
|
q(v, y, k.toWireType(D, B));
|
|
2454
2456
|
Ac(D);
|
|
@@ -2456,20 +2458,20 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2456
2458
|
});
|
|
2457
2459
|
return [{name:b.name, fromWireType:function(p) {
|
|
2458
2460
|
var l = {}, t;
|
|
2459
|
-
for (t in
|
|
2460
|
-
l[t] =
|
|
2461
|
+
for (t in n) {
|
|
2462
|
+
l[t] = n[t].read(p);
|
|
2461
2463
|
}
|
|
2462
2464
|
d(p);
|
|
2463
2465
|
return l;
|
|
2464
2466
|
}, toWireType:function(p, l) {
|
|
2465
|
-
for (var t in
|
|
2467
|
+
for (var t in n) {
|
|
2466
2468
|
if (!(t in l)) {
|
|
2467
2469
|
throw new TypeError(`Missing field: "${t}"`);
|
|
2468
2470
|
}
|
|
2469
2471
|
}
|
|
2470
2472
|
var u = c();
|
|
2471
|
-
for (t in
|
|
2472
|
-
|
|
2473
|
+
for (t in n) {
|
|
2474
|
+
n[t].write(u, l[t]);
|
|
2473
2475
|
}
|
|
2474
2476
|
null !== p && p.push(d, u);
|
|
2475
2477
|
return u;
|
|
@@ -2481,24 +2483,24 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2481
2483
|
b = S(b);
|
|
2482
2484
|
U(a, {name:b, fromWireType:function(g) {
|
|
2483
2485
|
return !!g;
|
|
2484
|
-
}, toWireType:function(g,
|
|
2485
|
-
return
|
|
2486
|
+
}, toWireType:function(g, n) {
|
|
2487
|
+
return n ? d : e;
|
|
2486
2488
|
}, argPackAdvance:8, readValueFromPointer:function(g) {
|
|
2487
2489
|
if (1 === c) {
|
|
2488
|
-
var
|
|
2490
|
+
var n = C;
|
|
2489
2491
|
} else if (2 === c) {
|
|
2490
|
-
|
|
2492
|
+
n = I;
|
|
2491
2493
|
} else if (4 === c) {
|
|
2492
|
-
|
|
2494
|
+
n = J;
|
|
2493
2495
|
} else {
|
|
2494
2496
|
throw new TypeError("Unknown boolean type size: " + b);
|
|
2495
2497
|
}
|
|
2496
|
-
return this.fromWireType(
|
|
2498
|
+
return this.fromWireType(n[g >> f]);
|
|
2497
2499
|
}, K:null,});
|
|
2498
|
-
}, _embind_register_class:function(a, b, c, d, e, f, g,
|
|
2500
|
+
}, _embind_register_class:function(a, b, c, d, e, f, g, n, p, l, t, u, x) {
|
|
2499
2501
|
t = S(t);
|
|
2500
2502
|
f = V(e, f);
|
|
2501
|
-
|
|
2503
|
+
n && (n = V(g, n));
|
|
2502
2504
|
l && (l = V(p, l));
|
|
2503
2505
|
x = V(u, x);
|
|
2504
2506
|
var k = Yb(t);
|
|
@@ -2528,7 +2530,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2528
2530
|
});
|
|
2529
2531
|
var B = Object.create(y, {constructor:{value:q},});
|
|
2530
2532
|
q.prototype = B;
|
|
2531
|
-
var D = new Kc(t, q, B, x, v, f,
|
|
2533
|
+
var D = new Kc(t, q, B, x, v, f, n, l);
|
|
2532
2534
|
D.A && (void 0 === D.A.qa && (D.A.qa = []), D.A.qa.push(D));
|
|
2533
2535
|
v = new Qc(t, D, !0, !1);
|
|
2534
2536
|
y = new Qc(t + "*", D, !1, !1);
|
|
@@ -2538,19 +2540,19 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2538
2540
|
return [v, y, E];
|
|
2539
2541
|
});
|
|
2540
2542
|
}, _embind_register_class_class_function:function(a, b, c, d, e, f, g) {
|
|
2541
|
-
var
|
|
2543
|
+
var n = Yc(c, d);
|
|
2542
2544
|
b = S(b);
|
|
2543
2545
|
f = V(e, f);
|
|
2544
2546
|
T([], [a], function(p) {
|
|
2545
2547
|
function l() {
|
|
2546
|
-
Wc(`Cannot call ${t} due to unbound types`,
|
|
2548
|
+
Wc(`Cannot call ${t} due to unbound types`, n);
|
|
2547
2549
|
}
|
|
2548
2550
|
p = p[0];
|
|
2549
2551
|
var t = `${p.name}.${b}`;
|
|
2550
2552
|
b.startsWith("@@") && (b = Symbol[b.substring(2)]);
|
|
2551
2553
|
var u = p.i.constructor;
|
|
2552
2554
|
void 0 === u[b] ? (l.ga = c - 1, u[b] = l) : (Ic(u, b, t), u[b].B[c - 1] = l);
|
|
2553
|
-
T([],
|
|
2555
|
+
T([], n, function(x) {
|
|
2554
2556
|
x = Xc(t, [x[0], null].concat(x.slice(1)), null, f, g);
|
|
2555
2557
|
void 0 === u[b].B ? (x.ga = c - 1, u[b] = x) : u[b].B[c - 1] = x;
|
|
2556
2558
|
if (p.i.qa) {
|
|
@@ -2562,7 +2564,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2562
2564
|
});
|
|
2563
2565
|
return [];
|
|
2564
2566
|
});
|
|
2565
|
-
}, _embind_register_class_class_property:function(a, b, c, d, e, f, g,
|
|
2567
|
+
}, _embind_register_class_class_property:function(a, b, c, d, e, f, g, n) {
|
|
2566
2568
|
b = S(b);
|
|
2567
2569
|
f = V(e, f);
|
|
2568
2570
|
T([], [a], function(p) {
|
|
@@ -2570,7 +2572,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2570
2572
|
var l = `${p.name}.${b}`, t = {get() {
|
|
2571
2573
|
Wc(`Cannot access ${l} due to unbound types`, [c]);
|
|
2572
2574
|
}, enumerable:!0, configurable:!0};
|
|
2573
|
-
t.set =
|
|
2575
|
+
t.set = n ? () => {
|
|
2574
2576
|
Wc(`Cannot access ${l} due to unbound types`, [c]);
|
|
2575
2577
|
} : () => {
|
|
2576
2578
|
Q(`${l} is a read-only property`);
|
|
@@ -2581,9 +2583,9 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2581
2583
|
var x = {get() {
|
|
2582
2584
|
return u.fromWireType(f(d));
|
|
2583
2585
|
}, enumerable:!0};
|
|
2584
|
-
|
|
2586
|
+
n && (n = V(g, n), x.set = k => {
|
|
2585
2587
|
var q = [];
|
|
2586
|
-
|
|
2588
|
+
n(d, u.toWireType(q, k));
|
|
2587
2589
|
Ac(q);
|
|
2588
2590
|
});
|
|
2589
2591
|
Object.defineProperty(p.i.constructor, b, x);
|
|
@@ -2594,24 +2596,24 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2594
2596
|
}, _embind_register_class_constructor:function(a, b, c, d, e, f) {
|
|
2595
2597
|
var g = Yc(b, c);
|
|
2596
2598
|
e = V(d, e);
|
|
2597
|
-
T([], [a], function(
|
|
2598
|
-
|
|
2599
|
-
var p = `constructor ${
|
|
2600
|
-
void 0 ===
|
|
2601
|
-
if (void 0 !==
|
|
2602
|
-
throw new ac(`Cannot register multiple constructors with identical number of parameters (${b - 1}) for class '${
|
|
2603
|
-
}
|
|
2604
|
-
|
|
2605
|
-
Wc(`Cannot construct ${
|
|
2599
|
+
T([], [a], function(n) {
|
|
2600
|
+
n = n[0];
|
|
2601
|
+
var p = `constructor ${n.name}`;
|
|
2602
|
+
void 0 === n.i.$ && (n.i.$ = []);
|
|
2603
|
+
if (void 0 !== n.i.$[b - 1]) {
|
|
2604
|
+
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!`);
|
|
2605
|
+
}
|
|
2606
|
+
n.i.$[b - 1] = () => {
|
|
2607
|
+
Wc(`Cannot construct ${n.name} due to unbound types`, g);
|
|
2606
2608
|
};
|
|
2607
2609
|
T([], g, function(l) {
|
|
2608
2610
|
l.splice(1, 0, null);
|
|
2609
|
-
|
|
2611
|
+
n.i.$[b - 1] = Xc(p, l, null, e, f);
|
|
2610
2612
|
return [];
|
|
2611
2613
|
});
|
|
2612
2614
|
return [];
|
|
2613
2615
|
});
|
|
2614
|
-
}, _embind_register_class_function:function(a, b, c, d, e, f, g,
|
|
2616
|
+
}, _embind_register_class_function:function(a, b, c, d, e, f, g, n) {
|
|
2615
2617
|
var p = Yc(c, d);
|
|
2616
2618
|
b = S(b);
|
|
2617
2619
|
f = V(e, f);
|
|
@@ -2622,7 +2624,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2622
2624
|
l = l[0];
|
|
2623
2625
|
var u = `${l.name}.${b}`;
|
|
2624
2626
|
b.startsWith("@@") && (b = Symbol[b.substring(2)]);
|
|
2625
|
-
|
|
2627
|
+
n && l.i.lb.push(b);
|
|
2626
2628
|
var x = l.i.N, k = x[b];
|
|
2627
2629
|
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);
|
|
2628
2630
|
T([], p, function(q) {
|
|
@@ -2632,7 +2634,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2632
2634
|
});
|
|
2633
2635
|
return [];
|
|
2634
2636
|
});
|
|
2635
|
-
}, _embind_register_class_property:function(a, b, c, d, e, f, g,
|
|
2637
|
+
}, _embind_register_class_property:function(a, b, c, d, e, f, g, n, p, l) {
|
|
2636
2638
|
b = S(b);
|
|
2637
2639
|
e = V(d, e);
|
|
2638
2640
|
T([], [a], function(t) {
|
|
@@ -2652,7 +2654,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2652
2654
|
return q.fromWireType(e(f, B));
|
|
2653
2655
|
}, enumerable:!0};
|
|
2654
2656
|
if (p) {
|
|
2655
|
-
p = V(
|
|
2657
|
+
p = V(n, p);
|
|
2656
2658
|
var y = k[1];
|
|
2657
2659
|
v.set = function(B) {
|
|
2658
2660
|
var D = Zc(this, t, u + " setter"), E = [];
|
|
@@ -2709,22 +2711,22 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2709
2711
|
Jc(a, function() {
|
|
2710
2712
|
Wc(`Cannot call ${a} due to unbound types`, g);
|
|
2711
2713
|
}, b - 1);
|
|
2712
|
-
T([], g, function(
|
|
2713
|
-
Rc(a, Xc(a, [
|
|
2714
|
+
T([], g, function(n) {
|
|
2715
|
+
Rc(a, Xc(a, [n[0], null].concat(n.slice(1)), null, e, f), b - 1);
|
|
2714
2716
|
return [];
|
|
2715
2717
|
});
|
|
2716
2718
|
}, _embind_register_integer:function(a, b, c, d, e) {
|
|
2717
2719
|
b = S(b);
|
|
2718
2720
|
-1 === e && (e = 4294967295);
|
|
2719
2721
|
e = Ec(c);
|
|
2720
|
-
var f =
|
|
2722
|
+
var f = n => n;
|
|
2721
2723
|
if (0 === d) {
|
|
2722
2724
|
var g = 32 - 8 * c;
|
|
2723
|
-
f =
|
|
2725
|
+
f = n => n << g >>> g;
|
|
2724
2726
|
}
|
|
2725
|
-
c = b.includes("unsigned") ? function(
|
|
2727
|
+
c = b.includes("unsigned") ? function(n, p) {
|
|
2726
2728
|
return p >>> 0;
|
|
2727
|
-
} : function(
|
|
2729
|
+
} : function(n, p) {
|
|
2728
2730
|
return p;
|
|
2729
2731
|
};
|
|
2730
2732
|
U(a, {name:b, fromWireType:f, toWireType:c, argPackAdvance:8, readValueFromPointer:cd(b, e, 0 !== d), K:null,});
|
|
@@ -2743,9 +2745,9 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2743
2745
|
U(a, {name:b, fromWireType:function(d) {
|
|
2744
2746
|
var e = K[d >> 2], f = d + 4;
|
|
2745
2747
|
if (c) {
|
|
2746
|
-
for (var g = f,
|
|
2747
|
-
var p = f +
|
|
2748
|
-
if (
|
|
2748
|
+
for (var g = f, n = 0; n <= e; ++n) {
|
|
2749
|
+
var p = f + n;
|
|
2750
|
+
if (n == e || 0 == G[p]) {
|
|
2749
2751
|
g = g ? L(G, g, p - g) : "";
|
|
2750
2752
|
if (void 0 === l) {
|
|
2751
2753
|
var l = g;
|
|
@@ -2757,8 +2759,8 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2757
2759
|
}
|
|
2758
2760
|
} else {
|
|
2759
2761
|
l = Array(e);
|
|
2760
|
-
for (
|
|
2761
|
-
l[
|
|
2762
|
+
for (n = 0; n < e; ++n) {
|
|
2763
|
+
l[n] = String.fromCharCode(G[f + n]);
|
|
2762
2764
|
}
|
|
2763
2765
|
l = l.join("");
|
|
2764
2766
|
}
|
|
@@ -2769,8 +2771,8 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2769
2771
|
var f = "string" == typeof e;
|
|
2770
2772
|
f || e instanceof Uint8Array || e instanceof Uint8ClampedArray || e instanceof Int8Array || Q("Cannot pass non-string to std::string");
|
|
2771
2773
|
var g = c && f ? db(e) : e.length;
|
|
2772
|
-
var
|
|
2773
|
-
K[
|
|
2774
|
+
var n = Ld(4 + g + 1), p = n + 4;
|
|
2775
|
+
K[n >> 2] = g;
|
|
2774
2776
|
if (c && f) {
|
|
2775
2777
|
eb(e, G, p, g + 1);
|
|
2776
2778
|
} else {
|
|
@@ -2786,8 +2788,8 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2786
2788
|
}
|
|
2787
2789
|
}
|
|
2788
2790
|
}
|
|
2789
|
-
null !== d && d.push(nc,
|
|
2790
|
-
return
|
|
2791
|
+
null !== d && d.push(nc, n);
|
|
2792
|
+
return n;
|
|
2791
2793
|
}, argPackAdvance:8, readValueFromPointer:Bc, K:function(d) {
|
|
2792
2794
|
nc(d);
|
|
2793
2795
|
},});
|
|
@@ -2798,14 +2800,14 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2798
2800
|
var e = fd;
|
|
2799
2801
|
var f = gd;
|
|
2800
2802
|
var g = () => va;
|
|
2801
|
-
var
|
|
2803
|
+
var n = 1;
|
|
2802
2804
|
} else {
|
|
2803
|
-
4 === b && (d = hd, e = jd, f = kd, g = () => K,
|
|
2805
|
+
4 === b && (d = hd, e = jd, f = kd, g = () => K, n = 2);
|
|
2804
2806
|
}
|
|
2805
2807
|
U(a, {name:c, fromWireType:function(p) {
|
|
2806
2808
|
for (var l = K[p >> 2], t = g(), u, x = p + 4, k = 0; k <= l; ++k) {
|
|
2807
2809
|
var q = p + 4 + k * b;
|
|
2808
|
-
if (k == l || 0 == t[q >>
|
|
2810
|
+
if (k == l || 0 == t[q >> n]) {
|
|
2809
2811
|
x = d(x, q - x), void 0 === u ? u = x : (u += String.fromCharCode(0), u += x), x = q + b;
|
|
2810
2812
|
}
|
|
2811
2813
|
}
|
|
@@ -2814,7 +2816,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2814
2816
|
}, toWireType:function(p, l) {
|
|
2815
2817
|
"string" != typeof l && Q(`Cannot pass non-string to C++ string type ${c}`);
|
|
2816
2818
|
var t = f(l), u = Ld(4 + t + b);
|
|
2817
|
-
K[u >> 2] = t >>
|
|
2819
|
+
K[u >> 2] = t >> n;
|
|
2818
2820
|
e(l, u + 4, t + b);
|
|
2819
2821
|
null !== p && p.push(nc, u);
|
|
2820
2822
|
return u;
|
|
@@ -2823,8 +2825,8 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2823
2825
|
},});
|
|
2824
2826
|
}, _embind_register_value_object:function(a, b, c, d, e, f) {
|
|
2825
2827
|
zc[a] = {name:S(b), Pa:V(c, d), V:V(e, f), $a:[],};
|
|
2826
|
-
}, _embind_register_value_object_field:function(a, b, c, d, e, f, g,
|
|
2827
|
-
zc[a].$a.push({Kb:S(b), Qb:c, Ob:V(d, e), Pb:f, ec:g, dc:V(
|
|
2828
|
+
}, _embind_register_value_object_field:function(a, b, c, d, e, f, g, n, p, l) {
|
|
2829
|
+
zc[a].$a.push({Kb:S(b), Qb:c, Ob:V(d, e), Pb:f, ec:g, dc:V(n, p), fc:l,});
|
|
2828
2830
|
}, _embind_register_void:function(a, b) {
|
|
2829
2831
|
b = S(b);
|
|
2830
2832
|
U(a, {Yb:!0, name:b, argPackAdvance:0, fromWireType:function() {
|
|
@@ -2858,11 +2860,11 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2858
2860
|
return e;
|
|
2859
2861
|
}
|
|
2860
2862
|
var f = Array(a - 1);
|
|
2861
|
-
e = od((g,
|
|
2863
|
+
e = od((g, n, p, l) => {
|
|
2862
2864
|
for (var t = 0, u = 0; u < a - 1; ++u) {
|
|
2863
2865
|
f[u] = c[u + 1].readValueFromPointer(l + t), t += c[u + 1].argPackAdvance;
|
|
2864
2866
|
}
|
|
2865
|
-
g = g[
|
|
2867
|
+
g = g[n].apply(g, f);
|
|
2866
2868
|
for (u = 0; u < a - 1; ++u) {
|
|
2867
2869
|
c[u + 1].Gb && c[u + 1].Gb(f[u]);
|
|
2868
2870
|
}
|
|
@@ -2897,21 +2899,21 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2897
2899
|
}, abort:() => {
|
|
2898
2900
|
sa("");
|
|
2899
2901
|
}, beginPixelLocalStorageWEBGL:function(a, b, c) {
|
|
2900
|
-
(a = r[a].J.ja) && a.beginPixelLocalStorageWEBGL(
|
|
2902
|
+
(a = r[a].J.ja) && a.beginPixelLocalStorageWEBGL(m.HEAPU32.subarray(c, c + b));
|
|
2901
2903
|
}, decode_image:function(a, b, c) {
|
|
2902
|
-
var d =
|
|
2903
|
-
d || (d = new Map(),
|
|
2904
|
+
var d = m.images;
|
|
2905
|
+
d || (d = new Map(), m.images = d);
|
|
2904
2906
|
var e = new Image();
|
|
2905
2907
|
d.set(a, e);
|
|
2906
|
-
b =
|
|
2908
|
+
b = m.HEAP8.subarray(b, b + c);
|
|
2907
2909
|
c = new Uint8Array(c);
|
|
2908
2910
|
c.set(b);
|
|
2909
2911
|
e.src = URL.createObjectURL(new Blob([c], {type:"image/png"}));
|
|
2910
2912
|
e.onload = function() {
|
|
2911
|
-
|
|
2913
|
+
m._setWebImage(a, e.width, e.height);
|
|
2912
2914
|
};
|
|
2913
2915
|
}, delete_image:function(a) {
|
|
2914
|
-
var b =
|
|
2916
|
+
var b = m.images;
|
|
2915
2917
|
b && b.get(a) && b.delete(a);
|
|
2916
2918
|
}, emscripten_asm_const_int:(a, b, c) => {
|
|
2917
2919
|
rd.length = 0;
|
|
@@ -2970,7 +2972,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2970
2972
|
a.ja = a.getExtension("WEBGL_shader_pixel_local_storage");
|
|
2971
2973
|
return !(!a.ja || !a.ja.isCoherent());
|
|
2972
2974
|
}, endPixelLocalStorageWEBGL:function(a, b, c) {
|
|
2973
|
-
(a = r[a].J.ja) && a.endPixelLocalStorageWEBGL(
|
|
2975
|
+
(a = r[a].J.ja) && a.endPixelLocalStorageWEBGL(m.HEAPU32.subarray(c, c + b));
|
|
2974
2976
|
}, environ_get:(a, b) => {
|
|
2975
2977
|
var c = 0;
|
|
2976
2978
|
Hd().forEach(function(d, e) {
|
|
@@ -3020,9 +3022,9 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3020
3022
|
var e = Ib(a);
|
|
3021
3023
|
a = b;
|
|
3022
3024
|
for (var f, g = b = 0; g < c; g++) {
|
|
3023
|
-
var
|
|
3025
|
+
var n = K[a >> 2], p = K[a + 4 >> 2];
|
|
3024
3026
|
a += 8;
|
|
3025
|
-
var l = e, t =
|
|
3027
|
+
var l = e, t = n, u = p, x = f, k = C;
|
|
3026
3028
|
if (0 > u || 0 > x) {
|
|
3027
3029
|
throw new M(28);
|
|
3028
3030
|
}
|
|
@@ -3092,9 +3094,9 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3092
3094
|
var e = Ib(a);
|
|
3093
3095
|
a = b;
|
|
3094
3096
|
for (var f, g = b = 0; g < c; g++) {
|
|
3095
|
-
var
|
|
3097
|
+
var n = K[a >> 2], p = K[a + 4 >> 2];
|
|
3096
3098
|
a += 8;
|
|
3097
|
-
var l = e, t =
|
|
3099
|
+
var l = e, t = n, u = p, x = f, k = C;
|
|
3098
3100
|
if (0 > u || 0 > x) {
|
|
3099
3101
|
throw new M(28);
|
|
3100
3102
|
}
|
|
@@ -3162,8 +3164,8 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3162
3164
|
Z.blendEquation(a);
|
|
3163
3165
|
}, glBlendFunc:function(a, b) {
|
|
3164
3166
|
Z.blendFunc(a, b);
|
|
3165
|
-
}, glBlitFramebuffer:function(a, b, c, d, e, f, g,
|
|
3166
|
-
Z.blitFramebuffer(a, b, c, d, e, f, g,
|
|
3167
|
+
}, glBlitFramebuffer:function(a, b, c, d, e, f, g, n, p, l) {
|
|
3168
|
+
Z.blitFramebuffer(a, b, c, d, e, f, g, n, p, l);
|
|
3167
3169
|
}, glBufferData:function(a, b, c, d) {
|
|
3168
3170
|
c && b ? Z.bufferData(a, G, d, c, b) : Z.bufferData(a, b, d);
|
|
3169
3171
|
}, glBufferSubData:function(a, b, c, d) {
|
|
@@ -3254,6 +3256,8 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3254
3256
|
Z.enable(a);
|
|
3255
3257
|
}, glEnableVertexAttribArray:function(a) {
|
|
3256
3258
|
Z.enableVertexAttribArray(a);
|
|
3259
|
+
}, glFlush:function() {
|
|
3260
|
+
Z.flush();
|
|
3257
3261
|
}, glFramebufferRenderbuffer:function(a, b, c, d) {
|
|
3258
3262
|
Z.framebufferRenderbuffer(a, b, c, xd[d]);
|
|
3259
3263
|
}, glFramebufferTexture2D:function(a, b, c, d, e) {
|
|
@@ -3316,15 +3320,15 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3316
3320
|
if (!d) {
|
|
3317
3321
|
for (c.oa = d = {}, c.tb = {}, f = 0; f < Z.getProgramParameter(c, 35718); ++f) {
|
|
3318
3322
|
var g = Z.getActiveUniform(c, f);
|
|
3319
|
-
var
|
|
3323
|
+
var n = g.name;
|
|
3320
3324
|
g = g.size;
|
|
3321
|
-
var p = Nd(
|
|
3322
|
-
p = 0 < p ?
|
|
3325
|
+
var p = Nd(n);
|
|
3326
|
+
p = 0 < p ? n.slice(0, p) : n;
|
|
3323
3327
|
var l = c.Sa;
|
|
3324
3328
|
c.Sa += g;
|
|
3325
3329
|
e[p] = [g, l];
|
|
3326
|
-
for (
|
|
3327
|
-
d[l] =
|
|
3330
|
+
for (n = 0; n < g; ++n) {
|
|
3331
|
+
d[l] = n, c.tb[l++] = p;
|
|
3328
3332
|
}
|
|
3329
3333
|
}
|
|
3330
3334
|
}
|
|
@@ -3345,11 +3349,6 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3345
3349
|
d[e] = J[c + 4 * e >> 2];
|
|
3346
3350
|
}
|
|
3347
3351
|
Z.invalidateFramebuffer(a, d);
|
|
3348
|
-
}, glInvalidateSubFramebuffer:function(a, b, c, d, e, f, g) {
|
|
3349
|
-
for (var m = Id[b], p = 0; p < b; p++) {
|
|
3350
|
-
m[p] = J[c + 4 * p >> 2];
|
|
3351
|
-
}
|
|
3352
|
-
Z.invalidateSubFramebuffer(a, m, d, e, f, g);
|
|
3353
3352
|
}, glLinkProgram:function(a) {
|
|
3354
3353
|
a = W[a];
|
|
3355
3354
|
Z.linkProgram(a);
|
|
@@ -3363,8 +3362,8 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3363
3362
|
Z.scissor(a, b, c, d);
|
|
3364
3363
|
}, glShaderSource:function(a, b, c, d) {
|
|
3365
3364
|
for (var e = "", f = 0; f < b; ++f) {
|
|
3366
|
-
var g = d ? J[d + 4 * f >> 2] : -1,
|
|
3367
|
-
g =
|
|
3365
|
+
var g = d ? J[d + 4 * f >> 2] : -1, n = J[c + 4 * f >> 2];
|
|
3366
|
+
g = n ? L(G, n, 0 > g ? void 0 : g) : "";
|
|
3368
3367
|
e += g;
|
|
3369
3368
|
}
|
|
3370
3369
|
Z.shaderSource(zd[a], e);
|
|
@@ -3382,15 +3381,15 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3382
3381
|
Z.texParameteri(a, b, c);
|
|
3383
3382
|
}, glTexStorage2D:function(a, b, c, d, e) {
|
|
3384
3383
|
Z.texStorage2D(a, b, c, d, e);
|
|
3385
|
-
}, glTexSubImage2D:function(a, b, c, d, e, f, g,
|
|
3384
|
+
}, glTexSubImage2D:function(a, b, c, d, e, f, g, n, p) {
|
|
3386
3385
|
if (Z.Ka) {
|
|
3387
|
-
Z.texSubImage2D(a, b, c, d, e, f, g,
|
|
3386
|
+
Z.texSubImage2D(a, b, c, d, e, f, g, n, p);
|
|
3388
3387
|
} else if (p) {
|
|
3389
|
-
var l =
|
|
3388
|
+
var l = n - 5120;
|
|
3390
3389
|
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;
|
|
3391
|
-
Z.texSubImage2D(a, b, c, d, e, f, g,
|
|
3390
|
+
Z.texSubImage2D(a, b, c, d, e, f, g, n, l, p >> 31 - Math.clz32(l.BYTES_PER_ELEMENT));
|
|
3392
3391
|
} else {
|
|
3393
|
-
Z.texSubImage2D(a, b, c, d, e, f, g,
|
|
3392
|
+
Z.texSubImage2D(a, b, c, d, e, f, g, n, null);
|
|
3394
3393
|
}
|
|
3395
3394
|
}, glUniform1i:function(a, b) {
|
|
3396
3395
|
var c = Z, d = c.uniform1i;
|
|
@@ -3421,7 +3420,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3421
3420
|
}, provokingVertexWEBGL:function(a, b) {
|
|
3422
3421
|
(a = r[a].J.mb) && a.provokingVertexWEBGL(b);
|
|
3423
3422
|
}, strftime_l:(a, b, c, d) => Rd(a, b, c, d), upload_image:function(a, b) {
|
|
3424
|
-
var c =
|
|
3423
|
+
var c = m.images;
|
|
3425
3424
|
c && (b = c.get(b)) && (a = r[a].J, a.texImage2D(a.TEXTURE_2D, 0, a.RGBA, a.RGBA, a.UNSIGNED_BYTE, b));
|
|
3426
3425
|
}};
|
|
3427
3426
|
(function() {
|
|
@@ -3432,7 +3431,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3432
3431
|
za = A.__indirect_function_table;
|
|
3433
3432
|
Ba.unshift(A.__wasm_call_ctors);
|
|
3434
3433
|
Ea--;
|
|
3435
|
-
|
|
3434
|
+
m.monitorRunDependencies && m.monitorRunDependencies(Ea);
|
|
3436
3435
|
if (0 == Ea && (null !== Fa && (clearInterval(Fa), Fa = null), Ga)) {
|
|
3437
3436
|
var d = Ga;
|
|
3438
3437
|
Ga = null;
|
|
@@ -3442,10 +3441,10 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3442
3441
|
}
|
|
3443
3442
|
var b = {env:Wd, wasi_snapshot_preview1:Wd,};
|
|
3444
3443
|
Ea++;
|
|
3445
|
-
|
|
3446
|
-
if (
|
|
3444
|
+
m.monitorRunDependencies && m.monitorRunDependencies(Ea);
|
|
3445
|
+
if (m.instantiateWasm) {
|
|
3447
3446
|
try {
|
|
3448
|
-
return
|
|
3447
|
+
return m.instantiateWasm(b, a);
|
|
3449
3448
|
} catch (c) {
|
|
3450
3449
|
z("Module.instantiateWasm callback failed with error: " + c), ba(c);
|
|
3451
3450
|
}
|
|
@@ -3456,23 +3455,23 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3456
3455
|
return {};
|
|
3457
3456
|
})();
|
|
3458
3457
|
var nc = a => (nc = A.free)(a), Ld = a => (Ld = A.malloc)(a);
|
|
3459
|
-
|
|
3460
|
-
var Qa =
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
var Ra =
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3458
|
+
m._setWebImage = (a, b, c) => (m._setWebImage = A.setWebImage)(a, b, c);
|
|
3459
|
+
var Qa = m._ma_device__on_notification_unlocked = a => (Qa = m._ma_device__on_notification_unlocked = A.ma_device__on_notification_unlocked)(a);
|
|
3460
|
+
m._ma_malloc_emscripten = (a, b) => (m._ma_malloc_emscripten = A.ma_malloc_emscripten)(a, b);
|
|
3461
|
+
m._ma_free_emscripten = (a, b) => (m._ma_free_emscripten = A.ma_free_emscripten)(a, b);
|
|
3462
|
+
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);
|
|
3463
|
+
m.__embind_initialize_bindings = () => (m.__embind_initialize_bindings = A._embind_initialize_bindings)();
|
|
3464
|
+
m.dynCall_iiji = (a, b, c, d, e) => (m.dynCall_iiji = A.dynCall_iiji)(a, b, c, d, e);
|
|
3465
|
+
m.dynCall_iiiji = (a, b, c, d, e, f) => (m.dynCall_iiiji = A.dynCall_iiiji)(a, b, c, d, e, f);
|
|
3466
|
+
m.dynCall_iij = (a, b, c, d) => (m.dynCall_iij = A.dynCall_iij)(a, b, c, d);
|
|
3467
|
+
m.dynCall_jii = (a, b, c) => (m.dynCall_jii = A.dynCall_jii)(a, b, c);
|
|
3468
|
+
m.dynCall_jiji = (a, b, c, d, e) => (m.dynCall_jiji = A.dynCall_jiji)(a, b, c, d, e);
|
|
3469
|
+
m.dynCall_viijii = (a, b, c, d, e, f, g) => (m.dynCall_viijii = A.dynCall_viijii)(a, b, c, d, e, f, g);
|
|
3470
|
+
m.dynCall_iiiiij = (a, b, c, d, e, f, g) => (m.dynCall_iiiiij = A.dynCall_iiiiij)(a, b, c, d, e, f, g);
|
|
3471
|
+
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);
|
|
3472
|
+
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);
|
|
3473
|
+
m.___start_em_js = 498508;
|
|
3474
|
+
m.___stop_em_js = 500942;
|
|
3476
3475
|
var Xd;
|
|
3477
3476
|
Ga = function Yd() {
|
|
3478
3477
|
Xd || Zd();
|
|
@@ -3480,17 +3479,17 @@ Ga = function Yd() {
|
|
|
3480
3479
|
};
|
|
3481
3480
|
function Zd() {
|
|
3482
3481
|
function a() {
|
|
3483
|
-
if (!Xd && (Xd = !0,
|
|
3484
|
-
|
|
3482
|
+
if (!Xd && (Xd = !0, m.calledRun = !0, !ua)) {
|
|
3483
|
+
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));
|
|
3485
3484
|
yb = !1;
|
|
3486
3485
|
Ua(Ba);
|
|
3487
|
-
aa(
|
|
3488
|
-
if (
|
|
3489
|
-
|
|
3486
|
+
aa(m);
|
|
3487
|
+
if (m.onRuntimeInitialized) {
|
|
3488
|
+
m.onRuntimeInitialized();
|
|
3490
3489
|
}
|
|
3491
|
-
if (
|
|
3492
|
-
for ("function" == typeof
|
|
3493
|
-
var b =
|
|
3490
|
+
if (m.postRun) {
|
|
3491
|
+
for ("function" == typeof m.postRun && (m.postRun = [m.postRun]); m.postRun.length;) {
|
|
3492
|
+
var b = m.postRun.shift();
|
|
3494
3493
|
Ca.unshift(b);
|
|
3495
3494
|
}
|
|
3496
3495
|
}
|
|
@@ -3498,23 +3497,23 @@ function Zd() {
|
|
|
3498
3497
|
}
|
|
3499
3498
|
}
|
|
3500
3499
|
if (!(0 < Ea)) {
|
|
3501
|
-
if (
|
|
3502
|
-
for ("function" == typeof
|
|
3500
|
+
if (m.preRun) {
|
|
3501
|
+
for ("function" == typeof m.preRun && (m.preRun = [m.preRun]); m.preRun.length;) {
|
|
3503
3502
|
Da();
|
|
3504
3503
|
}
|
|
3505
3504
|
}
|
|
3506
3505
|
Ua(Aa);
|
|
3507
|
-
0 < Ea || (
|
|
3506
|
+
0 < Ea || (m.setStatus ? (m.setStatus("Running..."), setTimeout(function() {
|
|
3508
3507
|
setTimeout(function() {
|
|
3509
|
-
|
|
3508
|
+
m.setStatus("");
|
|
3510
3509
|
}, 1);
|
|
3511
3510
|
a();
|
|
3512
3511
|
}, 1)) : a());
|
|
3513
3512
|
}
|
|
3514
3513
|
}
|
|
3515
|
-
if (
|
|
3516
|
-
for ("function" == typeof
|
|
3517
|
-
|
|
3514
|
+
if (m.preInit) {
|
|
3515
|
+
for ("function" == typeof m.preInit && (m.preInit = [m.preInit]); 0 < m.preInit.length;) {
|
|
3516
|
+
m.preInit.pop()();
|
|
3518
3517
|
}
|
|
3519
3518
|
}
|
|
3520
3519
|
Zd();
|
|
@@ -3532,7 +3531,7 @@ Zd();
|
|
|
3532
3531
|
/* 2 */
|
|
3533
3532
|
/***/ ((module) => {
|
|
3534
3533
|
|
|
3535
|
-
module.exports = JSON.parse('{"name":"@rive-app/webgl2","version":"2.25.
|
|
3534
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@rive-app/webgl2","version":"2.25.5","description":"Rive\'s webgl2 based web api.","main":"rive.js","homepage":"https://rive.app","repository":{"type":"git","url":"https://github.com/rive-app/rive-wasm/tree/master/js"},"keywords":["rive","animation"],"author":"Rive","contributors":["Luigi Rosso <luigi@rive.app> (https://rive.app)","Maxwell Talbot <max@rive.app> (https://rive.app)","Arthur Vivian <arthur@rive.app> (https://rive.app)","Umberto Sonnino <umberto@rive.app> (https://rive.app)","Matthew Sullivan <matt.j.sullivan@gmail.com> (mailto:matt.j.sullivan@gmail.com)","Chris Dalton <chris@rive.app> (https://rive.app)"],"license":"MIT","files":["rive.js","rive.wasm","rive.js.map","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
|
|
3536
3535
|
|
|
3537
3536
|
/***/ }),
|
|
3538
3537
|
/* 3 */
|
|
@@ -3986,7 +3985,7 @@ function sanitizeUrl(url) {
|
|
|
3986
3985
|
/******/
|
|
3987
3986
|
/************************************************************************/
|
|
3988
3987
|
var __webpack_exports__ = {};
|
|
3989
|
-
// This entry
|
|
3988
|
+
// This entry needs to be wrapped in an IIFE because it needs to be isolated against other modules in the chunk.
|
|
3990
3989
|
(() => {
|
|
3991
3990
|
__webpack_require__.r(__webpack_exports__);
|
|
3992
3991
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
@@ -4035,8 +4034,8 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
|
|
|
4035
4034
|
});
|
|
4036
4035
|
};
|
|
4037
4036
|
var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
|
|
4038
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
4039
|
-
return g =
|
|
4037
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
4038
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
4040
4039
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
4041
4040
|
function step(op) {
|
|
4042
4041
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -5461,6 +5460,9 @@ var Rive = /** @class */ (function () {
|
|
|
5461
5460
|
*/
|
|
5462
5461
|
Rive.prototype.setupRiveListeners = function (riveListenerOptions) {
|
|
5463
5462
|
var _this = this;
|
|
5463
|
+
if (this.eventCleanup) {
|
|
5464
|
+
this.eventCleanup();
|
|
5465
|
+
}
|
|
5464
5466
|
if (!this.shouldDisableRiveListeners) {
|
|
5465
5467
|
var activeStateMachines = (this.animator.stateMachines || [])
|
|
5466
5468
|
.filter(function (sm) { return sm.playing && _this.runtime.hasListeners(sm.instance); })
|
|
@@ -5522,9 +5524,9 @@ var Rive = /** @class */ (function () {
|
|
|
5522
5524
|
};
|
|
5523
5525
|
// Initializes runtime with Rive data and preps for playing
|
|
5524
5526
|
Rive.prototype.initData = function (artboardName, animationNames, stateMachineNames, autoplay) {
|
|
5525
|
-
var _a;
|
|
5526
5527
|
return __awaiter(this, void 0, void 0, function () {
|
|
5527
5528
|
var error_1, msg;
|
|
5529
|
+
var _a;
|
|
5528
5530
|
return __generator(this, function (_b) {
|
|
5529
5531
|
switch (_b.label) {
|
|
5530
5532
|
case 0:
|