@rive-app/canvas 2.14.3 → 2.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/rive.d.ts +10 -3
- package/rive.js +277 -258
- package/rive.js.map +1 -1
- package/rive.wasm +0 -0
- package/rive_advanced.mjs.d.ts +26 -4
package/rive.js
CHANGED
|
@@ -26,17 +26,17 @@ var Rive = (() => {
|
|
|
26
26
|
return (
|
|
27
27
|
function(moduleArg = {}) {
|
|
28
28
|
|
|
29
|
-
var
|
|
30
|
-
|
|
29
|
+
var n = moduleArg, aa, ba;
|
|
30
|
+
n.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 m = d;
|
|
37
37
|
c = b = 0;
|
|
38
38
|
d = new Map();
|
|
39
|
-
|
|
39
|
+
m.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 m = ++c;
|
|
53
|
+
d.set(m, g);
|
|
54
|
+
return m;
|
|
55
55
|
};
|
|
56
56
|
this.cancelAnimationFrame = function(g) {
|
|
57
57
|
d.delete(g);
|
|
@@ -59,14 +59,14 @@ function ca() {
|
|
|
59
59
|
};
|
|
60
60
|
this.Wb = 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(m) {
|
|
63
|
+
f.innerHTML = "RIVE FPS " + m.toFixed(1);
|
|
64
64
|
}, document.body.appendChild(f));
|
|
65
65
|
e = new function() {
|
|
66
|
-
let
|
|
66
|
+
let m = 0, p = 0;
|
|
67
67
|
this.Yb = function() {
|
|
68
68
|
var l = performance.now();
|
|
69
|
-
p ? (++
|
|
69
|
+
p ? (++m, l -= p, 1000 < l && (g(1000 * m / l), m = p = 0)) : (p = l, m = 0);
|
|
70
70
|
};
|
|
71
71
|
}();
|
|
72
72
|
};
|
|
@@ -92,55 +92,60 @@ function ha(a) {
|
|
|
92
92
|
return c << a;
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
|
-
const ia =
|
|
96
|
-
|
|
95
|
+
const ia = n.onRuntimeInitialized;
|
|
96
|
+
n.onRuntimeInitialized = function() {
|
|
97
97
|
ia && ia();
|
|
98
|
-
let a =
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
d
|
|
98
|
+
let a = n.decodeAudio;
|
|
99
|
+
n.decodeAudio = function(d, e) {
|
|
100
|
+
d = a(d);
|
|
101
|
+
e(d);
|
|
102
102
|
};
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
103
|
+
let b = n.decodeFont;
|
|
104
|
+
n.decodeFont = function(d, e) {
|
|
105
|
+
d = b(d);
|
|
106
|
+
e(d);
|
|
107
107
|
};
|
|
108
|
-
|
|
108
|
+
const c = n.FileAssetLoader;
|
|
109
|
+
n.ptrToAsset = d => {
|
|
110
|
+
let e = n.ptrToFileAsset(d);
|
|
111
|
+
return e.isImage ? n.ptrToImageAsset(d) : e.isFont ? n.ptrToFontAsset(d) : e.isAudio ? n.ptrToAudioAsset(d) : e;
|
|
112
|
+
};
|
|
113
|
+
n.CustomFileAssetLoader = c.extend("CustomFileAssetLoader", {__construct:function({loadContents:d}) {
|
|
109
114
|
this.__parent.__construct.call(this);
|
|
110
|
-
this.Hb =
|
|
111
|
-
}, loadContents:function(
|
|
112
|
-
|
|
113
|
-
return this.Hb(
|
|
115
|
+
this.Hb = d;
|
|
116
|
+
}, loadContents:function(d, e) {
|
|
117
|
+
d = n.ptrToAsset(d);
|
|
118
|
+
return this.Hb(d, e);
|
|
114
119
|
},});
|
|
115
|
-
|
|
120
|
+
n.CDNFileAssetLoader = c.extend("CDNFileAssetLoader", {__construct:function() {
|
|
116
121
|
this.__parent.__construct.call(this);
|
|
117
|
-
}, loadContents:function(
|
|
118
|
-
let
|
|
119
|
-
|
|
120
|
-
if ("" ===
|
|
122
|
+
}, loadContents:function(d) {
|
|
123
|
+
let e = n.ptrToAsset(d);
|
|
124
|
+
d = e.cdnUuid;
|
|
125
|
+
if ("" === d) {
|
|
121
126
|
return !1;
|
|
122
127
|
}
|
|
123
|
-
(function(
|
|
124
|
-
var
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
4 ==
|
|
128
|
+
(function(f, g) {
|
|
129
|
+
var m = new XMLHttpRequest();
|
|
130
|
+
m.responseType = "arraybuffer";
|
|
131
|
+
m.onreadystatechange = function() {
|
|
132
|
+
4 == m.readyState && 200 == m.status && g(m);
|
|
128
133
|
};
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
})(
|
|
132
|
-
|
|
134
|
+
m.open("GET", f, !0);
|
|
135
|
+
m.send(null);
|
|
136
|
+
})(e.cdnBaseUrl + "/" + d, f => {
|
|
137
|
+
e.decode(new Uint8Array(f.response));
|
|
133
138
|
});
|
|
134
139
|
return !0;
|
|
135
140
|
},});
|
|
136
|
-
|
|
141
|
+
n.FallbackFileAssetLoader = c.extend("FallbackFileAssetLoader", {__construct:function() {
|
|
137
142
|
this.__parent.__construct.call(this);
|
|
138
143
|
this.lb = [];
|
|
139
|
-
}, addLoader:function(
|
|
140
|
-
this.lb.push(
|
|
141
|
-
}, loadContents:function(
|
|
142
|
-
for (let
|
|
143
|
-
if (
|
|
144
|
+
}, addLoader:function(d) {
|
|
145
|
+
this.lb.push(d);
|
|
146
|
+
}, loadContents:function(d, e) {
|
|
147
|
+
for (let f of this.lb) {
|
|
148
|
+
if (f.loadContents(d, e)) {
|
|
144
149
|
return !0;
|
|
145
150
|
}
|
|
146
151
|
}
|
|
@@ -219,7 +224,7 @@ const ja = "createConicGradient createImageData createLinearGradient createPatte
|
|
|
219
224
|
}
|
|
220
225
|
return !0;
|
|
221
226
|
}
|
|
222
|
-
let b = null, c = 0, d = 0, e = null, f = null, g = 0,
|
|
227
|
+
let b = null, c = 0, d = 0, e = null, f = null, g = 0, m = 0, p = !1;
|
|
223
228
|
a();
|
|
224
229
|
this.nc = function() {
|
|
225
230
|
a();
|
|
@@ -270,7 +275,7 @@ const ja = "createConicGradient createImageData createLinearGradient createPatte
|
|
|
270
275
|
}
|
|
271
276
|
console.assert(w == 8 * B);
|
|
272
277
|
w = y.push(E);
|
|
273
|
-
|
|
278
|
+
m != w && (b.bufferData(b.ELEMENT_ARRAY_BUFFER, 2 * w, b.DYNAMIC_DRAW), m = w);
|
|
274
279
|
V = 0;
|
|
275
280
|
for (var va of r) {
|
|
276
281
|
b.bufferSubData(b.ELEMENT_ARRAY_BUFFER, V, va.indices), V += 2 * va.indices.length;
|
|
@@ -300,8 +305,8 @@ const ja = "createConicGradient createImageData createLinearGradient createPatte
|
|
|
300
305
|
this.canvas = function() {
|
|
301
306
|
return a() && b.canvas;
|
|
302
307
|
};
|
|
303
|
-
}(), la =
|
|
304
|
-
|
|
308
|
+
}(), la = n.onRuntimeInitialized;
|
|
309
|
+
n.onRuntimeInitialized = function() {
|
|
305
310
|
function a(q) {
|
|
306
311
|
switch(q) {
|
|
307
312
|
case l.srcOver:
|
|
@@ -352,10 +357,10 @@ m.onRuntimeInitialized = function() {
|
|
|
352
357
|
E.clear();
|
|
353
358
|
}
|
|
354
359
|
la && la();
|
|
355
|
-
var d =
|
|
356
|
-
const e =
|
|
360
|
+
var d = n.RenderPaintStyle;
|
|
361
|
+
const e = n.RenderPath, f = n.RenderPaint, g = n.Renderer, m = n.StrokeCap, p = n.StrokeJoin, l = n.BlendMode, u = d.fill, v = d.stroke, y = n.FillRule.evenOdd;
|
|
357
362
|
let k = 1;
|
|
358
|
-
var t =
|
|
363
|
+
var t = n.RenderImage.extend("CanvasRenderImage", {__construct:function({la:q, ya:z} = {}) {
|
|
359
364
|
this.__parent.__construct.call(this);
|
|
360
365
|
this.Ka = k;
|
|
361
366
|
k = k + 1 & 2147483647 || 1;
|
|
@@ -419,13 +424,13 @@ m.onRuntimeInitialized = function() {
|
|
|
419
424
|
}
|
|
420
425
|
}, cap:function(q) {
|
|
421
426
|
switch(q) {
|
|
422
|
-
case
|
|
427
|
+
case m.butt:
|
|
423
428
|
this.Ha = "butt";
|
|
424
429
|
break;
|
|
425
|
-
case
|
|
430
|
+
case m.round:
|
|
426
431
|
this.Ha = "round";
|
|
427
432
|
break;
|
|
428
|
-
case
|
|
433
|
+
case m.square:
|
|
429
434
|
this.Ha = "square";
|
|
430
435
|
}
|
|
431
436
|
}, style:function(q) {
|
|
@@ -472,7 +477,7 @@ m.onRuntimeInitialized = function() {
|
|
|
472
477
|
},});
|
|
473
478
|
const E = new Set();
|
|
474
479
|
let w = null, O = [], V = 0, ea = 0;
|
|
475
|
-
var va =
|
|
480
|
+
var va = n.CanvasRenderer = g.extend("Renderer", {__construct:function(q) {
|
|
476
481
|
this.__parent.__construct.call(this);
|
|
477
482
|
this.T = [1, 0, 0, 1, 0, 0];
|
|
478
483
|
this.C = q.getContext("2d");
|
|
@@ -531,7 +536,7 @@ m.onRuntimeInitialized = function() {
|
|
|
531
536
|
S = ka.nc();
|
|
532
537
|
wa > S && (R *= S / wa, wa = S);
|
|
533
538
|
xa > S && (fa *= S / xa, xa = S);
|
|
534
|
-
w || (w = new
|
|
539
|
+
w || (w = new n.DynamicRectanizer(S), w.reset(512, 512));
|
|
535
540
|
S = w.addRect(wa, xa);
|
|
536
541
|
0 > S && (c(), E.add(this), S = w.addRect(wa, xa), console.assert(0 <= S));
|
|
537
542
|
var ac = S & 65535, bc = S >> 16;
|
|
@@ -558,7 +563,7 @@ m.onRuntimeInitialized = function() {
|
|
|
558
563
|
}, translate:function(q, z) {
|
|
559
564
|
this.transform(1, 0, 0, 1, q, z);
|
|
560
565
|
},});
|
|
561
|
-
|
|
566
|
+
n.makeRenderer = function(q) {
|
|
562
567
|
const z = new va(q), I = z.C;
|
|
563
568
|
return new Proxy(z, {get(J, D) {
|
|
564
569
|
if ("function" === typeof J[D]) {
|
|
@@ -581,10 +586,10 @@ m.onRuntimeInitialized = function() {
|
|
|
581
586
|
}
|
|
582
587
|
},});
|
|
583
588
|
};
|
|
584
|
-
|
|
589
|
+
n.decodeImage = function(q, z) {
|
|
585
590
|
(new t({la:z})).decode(q);
|
|
586
591
|
};
|
|
587
|
-
|
|
592
|
+
n.renderFactory = {makeRenderPaint:function() {
|
|
588
593
|
return new B();
|
|
589
594
|
}, makeRenderPath:function() {
|
|
590
595
|
return new r();
|
|
@@ -600,11 +605,11 @@ m.onRuntimeInitialized = function() {
|
|
|
600
605
|
}
|
|
601
606
|
},});
|
|
602
607
|
},};
|
|
603
|
-
let H =
|
|
604
|
-
|
|
605
|
-
const J = new
|
|
608
|
+
let H = n.load, da = null;
|
|
609
|
+
n.load = function(q, z, I = !0) {
|
|
610
|
+
const J = new n.FallbackFileAssetLoader();
|
|
606
611
|
void 0 !== z && J.addLoader(z);
|
|
607
|
-
I && (z = new
|
|
612
|
+
I && (z = new n.CDNFileAssetLoader(), J.addLoader(z));
|
|
608
613
|
return new Promise(function(D) {
|
|
609
614
|
let K = null;
|
|
610
615
|
da = {total:0, loaded:0, ready:function() {
|
|
@@ -615,17 +620,17 @@ m.onRuntimeInitialized = function() {
|
|
|
615
620
|
});
|
|
616
621
|
};
|
|
617
622
|
d = new ca();
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
623
|
+
n.requestAnimationFrame = d.requestAnimationFrame.bind(d);
|
|
624
|
+
n.cancelAnimationFrame = d.cancelAnimationFrame.bind(d);
|
|
625
|
+
n.enableFPSCounter = d.Wb.bind(d);
|
|
626
|
+
n.disableFPSCounter = d.Tb;
|
|
622
627
|
d.pb = c;
|
|
623
|
-
|
|
624
|
-
|
|
628
|
+
n.resolveAnimationFrame = c;
|
|
629
|
+
n.cleanup = function() {
|
|
625
630
|
w && w.delete();
|
|
626
631
|
};
|
|
627
632
|
};
|
|
628
|
-
var ma = Object.assign({},
|
|
633
|
+
var ma = Object.assign({}, n), na = "./this.program", oa = "object" == typeof window, pa = "function" == typeof importScripts, qa = "", ra, sa;
|
|
629
634
|
if (oa || pa) {
|
|
630
635
|
pa ? qa = self.location.href : "undefined" != typeof document && document.currentScript && (qa = document.currentScript.src), _scriptDir && (qa = _scriptDir), 0 !== qa.indexOf("blob:") ? qa = qa.substr(0, qa.replace(/[?#].*/, "").lastIndexOf("/") + 1) : qa = "", pa && (sa = a => {
|
|
631
636
|
var b = new XMLHttpRequest();
|
|
@@ -644,35 +649,35 @@ if (oa || pa) {
|
|
|
644
649
|
d.send(null);
|
|
645
650
|
};
|
|
646
651
|
}
|
|
647
|
-
var ta =
|
|
648
|
-
Object.assign(
|
|
652
|
+
var ta = n.print || console.log.bind(console), ua = n.printErr || console.error.bind(console);
|
|
653
|
+
Object.assign(n, ma);
|
|
649
654
|
ma = null;
|
|
650
|
-
|
|
655
|
+
n.thisProgram && (na = n.thisProgram);
|
|
651
656
|
var ya;
|
|
652
|
-
|
|
653
|
-
var noExitRuntime =
|
|
657
|
+
n.wasmBinary && (ya = n.wasmBinary);
|
|
658
|
+
var noExitRuntime = n.noExitRuntime || !0;
|
|
654
659
|
"object" != typeof WebAssembly && za("no native wasm support detected");
|
|
655
660
|
var Aa, x, Ba = !1, A, C, Da, Ea, F, G, Fa, Ga;
|
|
656
661
|
function Ha() {
|
|
657
662
|
var a = Aa.buffer;
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
663
|
+
n.HEAP8 = A = new Int8Array(a);
|
|
664
|
+
n.HEAP16 = Da = new Int16Array(a);
|
|
665
|
+
n.HEAP32 = F = new Int32Array(a);
|
|
666
|
+
n.HEAPU8 = C = new Uint8Array(a);
|
|
667
|
+
n.HEAPU16 = Ea = new Uint16Array(a);
|
|
668
|
+
n.HEAPU32 = G = new Uint32Array(a);
|
|
669
|
+
n.HEAPF32 = Fa = new Float32Array(a);
|
|
670
|
+
n.HEAPF64 = Ga = new Float64Array(a);
|
|
666
671
|
}
|
|
667
672
|
var Ka, La = [], Ma = [], Na = [];
|
|
668
673
|
function Oa() {
|
|
669
|
-
var a =
|
|
674
|
+
var a = n.preRun.shift();
|
|
670
675
|
La.unshift(a);
|
|
671
676
|
}
|
|
672
677
|
var Pa = 0, Qa = null, Ra = null;
|
|
673
678
|
function za(a) {
|
|
674
|
-
if (
|
|
675
|
-
|
|
679
|
+
if (n.onAbort) {
|
|
680
|
+
n.onAbort(a);
|
|
676
681
|
}
|
|
677
682
|
a = "Aborted(" + a + ")";
|
|
678
683
|
ua(a);
|
|
@@ -688,7 +693,7 @@ var Ta;
|
|
|
688
693
|
Ta = "canvas_advanced.wasm";
|
|
689
694
|
if (!Sa(Ta)) {
|
|
690
695
|
var Ua = Ta;
|
|
691
|
-
Ta =
|
|
696
|
+
Ta = n.locateFile ? n.locateFile(Ua, qa) : qa + Ua;
|
|
692
697
|
}
|
|
693
698
|
function Va(a) {
|
|
694
699
|
if (a == Ta && ya) {
|
|
@@ -731,7 +736,7 @@ function Ya(a, b) {
|
|
|
731
736
|
return Xa(c, a, b);
|
|
732
737
|
}));
|
|
733
738
|
}
|
|
734
|
-
var N, P, bb = {
|
|
739
|
+
var N, P, bb = {433788:(a, b, c, d, e) => {
|
|
735
740
|
if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
|
|
736
741
|
return 0;
|
|
737
742
|
}
|
|
@@ -747,9 +752,9 @@ var N, P, bb = {433276:(a, b, c, d, e) => {
|
|
|
747
752
|
let f = window.h;
|
|
748
753
|
f.D = [];
|
|
749
754
|
f.Gc = function(g) {
|
|
750
|
-
for (var
|
|
751
|
-
if (null == f.D[
|
|
752
|
-
return f.D[
|
|
755
|
+
for (var m = 0; m < f.D.length; ++m) {
|
|
756
|
+
if (null == f.D[m]) {
|
|
757
|
+
return f.D[m] = g, m;
|
|
753
758
|
}
|
|
754
759
|
}
|
|
755
760
|
f.D.push(g);
|
|
@@ -765,9 +770,9 @@ var N, P, bb = {433276:(a, b, c, d, e) => {
|
|
|
765
770
|
}
|
|
766
771
|
};
|
|
767
772
|
f.Sc = function(g) {
|
|
768
|
-
for (var
|
|
769
|
-
if (f.D[
|
|
770
|
-
return f.Db(
|
|
773
|
+
for (var m = 0; m < f.D.length; ++m) {
|
|
774
|
+
if (f.D[m] == g) {
|
|
775
|
+
return f.Db(m);
|
|
771
776
|
}
|
|
772
777
|
}
|
|
773
778
|
};
|
|
@@ -777,9 +782,9 @@ var N, P, bb = {433276:(a, b, c, d, e) => {
|
|
|
777
782
|
f.Cb = ["touchend", "click"];
|
|
778
783
|
f.unlock = function() {
|
|
779
784
|
for (var g = 0; g < f.D.length; ++g) {
|
|
780
|
-
var
|
|
781
|
-
null !=
|
|
782
|
-
Za(
|
|
785
|
+
var m = f.D[g];
|
|
786
|
+
null != m && null != m.I && m.state === f.ga.yb && m.I.resume().then(() => {
|
|
787
|
+
Za(m.qb);
|
|
783
788
|
}, p => {
|
|
784
789
|
console.error("Failed to resume audiocontext", p);
|
|
785
790
|
});
|
|
@@ -794,9 +799,9 @@ var N, P, bb = {433276:(a, b, c, d, e) => {
|
|
|
794
799
|
}
|
|
795
800
|
window.h.Aa += 1;
|
|
796
801
|
return 1;
|
|
797
|
-
},
|
|
802
|
+
}, 435966:() => {
|
|
798
803
|
"undefined" !== typeof window.h && (--window.h.Aa, 0 === window.h.Aa && delete window.h);
|
|
799
|
-
},
|
|
804
|
+
}, 436130:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 436234:() => {
|
|
800
805
|
try {
|
|
801
806
|
var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
|
|
802
807
|
a.close();
|
|
@@ -804,13 +809,13 @@ var N, P, bb = {433276:(a, b, c, d, e) => {
|
|
|
804
809
|
} catch (c) {
|
|
805
810
|
return 0;
|
|
806
811
|
}
|
|
807
|
-
},
|
|
812
|
+
}, 436405:(a, b, c, d, e, f) => {
|
|
808
813
|
if ("undefined" === typeof window.h) {
|
|
809
814
|
return -1;
|
|
810
815
|
}
|
|
811
|
-
var g = {},
|
|
812
|
-
a == window.h.H.za && 0 != c && (
|
|
813
|
-
g.I = new (window.AudioContext || window.webkitAudioContext)(
|
|
816
|
+
var g = {}, m = {};
|
|
817
|
+
a == window.h.H.za && 0 != c && (m.sampleRate = c);
|
|
818
|
+
g.I = new (window.AudioContext || window.webkitAudioContext)(m);
|
|
814
819
|
g.I.suspend();
|
|
815
820
|
g.state = window.h.ga.stopped;
|
|
816
821
|
c = 0;
|
|
@@ -850,7 +855,7 @@ var N, P, bb = {433276:(a, b, c, d, e) => {
|
|
|
850
855
|
a == window.h.H.za && g.$.connect(g.I.destination);
|
|
851
856
|
g.qb = f;
|
|
852
857
|
return window.h.Gc(g);
|
|
853
|
-
},
|
|
858
|
+
}, 439282:a => window.h.sa(a).I.sampleRate, 439355:a => {
|
|
854
859
|
a = window.h.sa(a);
|
|
855
860
|
void 0 !== a.$ && (a.$.onaudioprocess = function() {
|
|
856
861
|
}, a.$.disconnect(), a.$ = void 0);
|
|
@@ -858,19 +863,19 @@ var N, P, bb = {433276:(a, b, c, d, e) => {
|
|
|
858
863
|
a.I.close();
|
|
859
864
|
a.I = void 0;
|
|
860
865
|
a.qb = void 0;
|
|
861
|
-
},
|
|
866
|
+
}, 439755:a => {
|
|
862
867
|
window.h.Db(a);
|
|
863
|
-
},
|
|
868
|
+
}, 439805:a => {
|
|
864
869
|
a = window.h.sa(a);
|
|
865
870
|
a.I.resume();
|
|
866
871
|
a.state = window.h.ga.yb;
|
|
867
|
-
},
|
|
872
|
+
}, 439944:a => {
|
|
868
873
|
a = window.h.sa(a);
|
|
869
874
|
a.I.suspend();
|
|
870
875
|
a.state = window.h.ga.stopped;
|
|
871
876
|
}}, cb = a => {
|
|
872
877
|
for (; 0 < a.length;) {
|
|
873
|
-
a.shift()(
|
|
878
|
+
a.shift()(n);
|
|
874
879
|
}
|
|
875
880
|
}, db = (a, b) => {
|
|
876
881
|
for (var c = 0, d = a.length - 1; 0 <= d; d--) {
|
|
@@ -965,8 +970,8 @@ var kb = "undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0, l
|
|
|
965
970
|
for (var f = 0; f < a.length; ++f) {
|
|
966
971
|
var g = a.charCodeAt(f);
|
|
967
972
|
if (55296 <= g && 57343 >= g) {
|
|
968
|
-
var
|
|
969
|
-
g = 65536 + ((g & 1023) << 10) |
|
|
973
|
+
var m = a.charCodeAt(++f);
|
|
974
|
+
g = 65536 + ((g & 1023) << 10) | m & 1023;
|
|
970
975
|
}
|
|
971
976
|
if (127 >= g) {
|
|
972
977
|
if (c >= d) {
|
|
@@ -1029,7 +1034,7 @@ var tb = {open:function(a) {
|
|
|
1029
1034
|
for (var e = 0, f = 0; f < d; f++) {
|
|
1030
1035
|
try {
|
|
1031
1036
|
var g = a.s.W.ib(a.s);
|
|
1032
|
-
} catch (
|
|
1037
|
+
} catch (m) {
|
|
1033
1038
|
throw new Q(29);
|
|
1034
1039
|
}
|
|
1035
1040
|
if (void 0 === g && 0 === e) {
|
|
@@ -1504,7 +1509,7 @@ var Cb = null, Db = {}, Eb = [], Fb = 1, Gb = null, Hb = !0, Q = null, zb = {},
|
|
|
1504
1509
|
b &= -131713;
|
|
1505
1510
|
e = Tb({node:e, path:Kb(e), flags:b, seekable:!0, position:0, m:e.m, Hc:[], error:!1});
|
|
1506
1511
|
e.m.open && e.m.open(e);
|
|
1507
|
-
!
|
|
1512
|
+
!n.logReadFiles || b & 1 || (Yb || (Yb = {}), a in Yb || (Yb[a] = 1));
|
|
1508
1513
|
return e;
|
|
1509
1514
|
}, ec = (a, b, c) => {
|
|
1510
1515
|
if (null === a.Z) {
|
|
@@ -1540,7 +1545,7 @@ var Cb = null, Db = {}, Eb = [], Fb = 1, Gb = null, Hb = !0, Q = null, zb = {},
|
|
|
1540
1545
|
f.seekable = !1;
|
|
1541
1546
|
}, close:() => {
|
|
1542
1547
|
c && c.buffer && c.buffer.length && c(10);
|
|
1543
|
-
}, read:(f, g,
|
|
1548
|
+
}, read:(f, g, m, p) => {
|
|
1544
1549
|
for (var l = 0, u = 0; u < p; u++) {
|
|
1545
1550
|
try {
|
|
1546
1551
|
var v = b();
|
|
@@ -1554,14 +1559,14 @@ var Cb = null, Db = {}, Eb = [], Fb = 1, Gb = null, Hb = !0, Q = null, zb = {},
|
|
|
1554
1559
|
break;
|
|
1555
1560
|
}
|
|
1556
1561
|
l++;
|
|
1557
|
-
g[
|
|
1562
|
+
g[m + u] = v;
|
|
1558
1563
|
}
|
|
1559
1564
|
l && (f.node.timestamp = Date.now());
|
|
1560
1565
|
return l;
|
|
1561
|
-
}, write:(f, g,
|
|
1566
|
+
}, write:(f, g, m, p) => {
|
|
1562
1567
|
for (var l = 0; l < p; l++) {
|
|
1563
1568
|
try {
|
|
1564
|
-
c(g[
|
|
1569
|
+
c(g[m + l]);
|
|
1565
1570
|
} catch (u) {
|
|
1566
1571
|
throw new Q(29);
|
|
1567
1572
|
}
|
|
@@ -1723,20 +1728,20 @@ function Sc(a) {
|
|
|
1723
1728
|
}
|
|
1724
1729
|
var Tc = {}, Uc = {};
|
|
1725
1730
|
function X(a, b, c) {
|
|
1726
|
-
function d(
|
|
1727
|
-
|
|
1728
|
-
|
|
1731
|
+
function d(m) {
|
|
1732
|
+
m = c(m);
|
|
1733
|
+
m.length !== a.length && Nc("Mismatched type converter count");
|
|
1729
1734
|
for (var p = 0; p < a.length; ++p) {
|
|
1730
|
-
Vc(a[p],
|
|
1735
|
+
Vc(a[p], m[p]);
|
|
1731
1736
|
}
|
|
1732
1737
|
}
|
|
1733
|
-
a.forEach(function(
|
|
1734
|
-
Uc[
|
|
1738
|
+
a.forEach(function(m) {
|
|
1739
|
+
Uc[m] = b;
|
|
1735
1740
|
});
|
|
1736
1741
|
var e = Array(b.length), f = [], g = 0;
|
|
1737
|
-
b.forEach((
|
|
1738
|
-
Bc.hasOwnProperty(
|
|
1739
|
-
e[p] = Bc[
|
|
1742
|
+
b.forEach((m, p) => {
|
|
1743
|
+
Bc.hasOwnProperty(m) ? e[p] = Bc[m] : (f.push(m), Tc.hasOwnProperty(m) || (Tc[m] = []), Tc[m].push(() => {
|
|
1744
|
+
e[p] = Bc[m];
|
|
1740
1745
|
++g;
|
|
1741
1746
|
g === f.length && d(e);
|
|
1742
1747
|
}));
|
|
@@ -1793,9 +1798,9 @@ function $c(a, b, c) {
|
|
|
1793
1798
|
}
|
|
1794
1799
|
}
|
|
1795
1800
|
function ad(a, b, c) {
|
|
1796
|
-
|
|
1801
|
+
n.hasOwnProperty(a) ? ((void 0 === c || void 0 !== n[a].B && void 0 !== n[a].B[c]) && U(`Cannot register public name '${a}' twice`), $c(n, a, a), n.hasOwnProperty(c) && U(`Cannot register multiple overloads of a function with the same number of arguments (${c})!`), n[a].B[c] = b) : (n[a] = b, void 0 !== c && (n[a].Pc = c));
|
|
1797
1802
|
}
|
|
1798
|
-
function bd(a, b, c, d, e, f, g,
|
|
1803
|
+
function bd(a, b, c, d, e, f, g, m) {
|
|
1799
1804
|
this.name = a;
|
|
1800
1805
|
this.constructor = b;
|
|
1801
1806
|
this.O = c;
|
|
@@ -1803,7 +1808,7 @@ function bd(a, b, c, d, e, f, g, n) {
|
|
|
1803
1808
|
this.A = e;
|
|
1804
1809
|
this.Zb = f;
|
|
1805
1810
|
this.oa = g;
|
|
1806
|
-
this.Ub =
|
|
1811
|
+
this.Ub = m;
|
|
1807
1812
|
this.rb = [];
|
|
1808
1813
|
}
|
|
1809
1814
|
function cd(a, b, c) {
|
|
@@ -1878,8 +1883,8 @@ function hd(a, b, c, d) {
|
|
|
1878
1883
|
void 0 !== b.A ? this.toWireType = fd : (this.toWireType = d ? dd : gd, this.K = null);
|
|
1879
1884
|
}
|
|
1880
1885
|
function jd(a, b, c) {
|
|
1881
|
-
|
|
1882
|
-
void 0 !==
|
|
1886
|
+
n.hasOwnProperty(a) || Nc("Replacing nonexistant public symbol");
|
|
1887
|
+
void 0 !== n[a].B && void 0 !== c ? n[a].B[c] = b : (n[a] = b, n[a].ea = c);
|
|
1883
1888
|
}
|
|
1884
1889
|
var kd = [], ld = a => {
|
|
1885
1890
|
var b = kd[a];
|
|
@@ -1891,7 +1896,7 @@ var kd = [], ld = a => {
|
|
|
1891
1896
|
c.length = 0;
|
|
1892
1897
|
Object.assign(c, arguments);
|
|
1893
1898
|
if (a.includes("j")) {
|
|
1894
|
-
var d =
|
|
1899
|
+
var d = n["dynCall_" + a];
|
|
1895
1900
|
d = c && c.length ? d.apply(null, [b].concat(c)) : d.call(null, b);
|
|
1896
1901
|
} else {
|
|
1897
1902
|
d = ld(b).apply(null, c);
|
|
@@ -1917,10 +1922,10 @@ function od(a, b) {
|
|
|
1917
1922
|
function pd(a, b, c, d, e) {
|
|
1918
1923
|
var f = b.length;
|
|
1919
1924
|
2 > f && U("argTypes array size mismatch! Must at least get return value and 'this' types!");
|
|
1920
|
-
var g = null !== b[1] && null !== c,
|
|
1925
|
+
var g = null !== b[1] && null !== c, m = !1;
|
|
1921
1926
|
for (c = 1; c < b.length; ++c) {
|
|
1922
1927
|
if (null !== b[c] && void 0 === b[c].K) {
|
|
1923
|
-
|
|
1928
|
+
m = !0;
|
|
1924
1929
|
break;
|
|
1925
1930
|
}
|
|
1926
1931
|
}
|
|
@@ -1938,7 +1943,7 @@ function pd(a, b, c, d, e) {
|
|
|
1938
1943
|
u[t] = b[t + 2].toWireType(y, arguments[t]), v.push(u[t]);
|
|
1939
1944
|
}
|
|
1940
1945
|
t = d.apply(null, v);
|
|
1941
|
-
if (
|
|
1946
|
+
if (m) {
|
|
1942
1947
|
Rc(y);
|
|
1943
1948
|
} else {
|
|
1944
1949
|
for (var r = g ? 1 : 2; r < b.length; r++) {
|
|
@@ -2145,7 +2150,7 @@ var Jd = [], Kd = [], Ld = {}, Nd = () => {
|
|
|
2145
2150
|
0 === (B = r(k.getFullYear() - t.getFullYear())) && 0 === (B = r(k.getMonth() - t.getMonth())) && (B = r(k.getDate() - t.getDate()));
|
|
2146
2151
|
return B;
|
|
2147
2152
|
}
|
|
2148
|
-
function
|
|
2153
|
+
function m(k) {
|
|
2149
2154
|
switch(k.getDay()) {
|
|
2150
2155
|
case 0:
|
|
2151
2156
|
return new Date(k.getFullYear() - 1, 11, 29);
|
|
@@ -2175,8 +2180,8 @@ var Jd = [], Kd = [], Ld = {}, Nd = () => {
|
|
|
2175
2180
|
}
|
|
2176
2181
|
}
|
|
2177
2182
|
r = new Date(k.getFullYear() + 1, 0, 4);
|
|
2178
|
-
t =
|
|
2179
|
-
r =
|
|
2183
|
+
t = m(new Date(k.getFullYear(), 0, 4));
|
|
2184
|
+
r = m(r);
|
|
2180
2185
|
return 0 >= g(t, k) ? 0 >= g(r, k) ? k.getFullYear() + 1 : k.getFullYear() : k.getFullYear() - 1;
|
|
2181
2186
|
}
|
|
2182
2187
|
var l = F[d + 40 >> 2];
|
|
@@ -2294,7 +2299,7 @@ Object.assign(oc.prototype, {get(a) {
|
|
|
2294
2299
|
this.M[a] = void 0;
|
|
2295
2300
|
this.hb.push(a);
|
|
2296
2301
|
}});
|
|
2297
|
-
qc =
|
|
2302
|
+
qc = n.BindingError = class extends Error {
|
|
2298
2303
|
constructor(a) {
|
|
2299
2304
|
super(a);
|
|
2300
2305
|
this.name = "BindingError";
|
|
@@ -2302,33 +2307,33 @@ qc = m.BindingError = class extends Error {
|
|
|
2302
2307
|
};
|
|
2303
2308
|
pc.M.push({value:void 0}, {value:null}, {value:!0}, {value:!1},);
|
|
2304
2309
|
pc.h = pc.M.length;
|
|
2305
|
-
|
|
2310
|
+
n.count_emval_handles = function() {
|
|
2306
2311
|
for (var a = 0, b = pc.h; b < pc.M.length; ++b) {
|
|
2307
2312
|
void 0 !== pc.M[b] && ++a;
|
|
2308
2313
|
}
|
|
2309
2314
|
return a;
|
|
2310
2315
|
};
|
|
2311
|
-
uc =
|
|
2316
|
+
uc = n.PureVirtualError = tc("PureVirtualError");
|
|
2312
2317
|
for (var Sd = Array(256), Td = 0; 256 > Td; ++Td) {
|
|
2313
2318
|
Sd[Td] = String.fromCharCode(Td);
|
|
2314
2319
|
}
|
|
2315
2320
|
vc = Sd;
|
|
2316
|
-
|
|
2321
|
+
n.getInheritedInstanceCount = function() {
|
|
2317
2322
|
return Object.keys(zc).length;
|
|
2318
2323
|
};
|
|
2319
|
-
|
|
2324
|
+
n.getLiveInheritedInstances = function() {
|
|
2320
2325
|
var a = [], b;
|
|
2321
2326
|
for (b in zc) {
|
|
2322
2327
|
zc.hasOwnProperty(b) && a.push(zc[b]);
|
|
2323
2328
|
}
|
|
2324
2329
|
return a;
|
|
2325
2330
|
};
|
|
2326
|
-
|
|
2327
|
-
|
|
2331
|
+
n.flushPendingDeletes = xc;
|
|
2332
|
+
n.setDelayFunction = function(a) {
|
|
2328
2333
|
yc = a;
|
|
2329
2334
|
wc.length && yc && yc(xc);
|
|
2330
2335
|
};
|
|
2331
|
-
Mc =
|
|
2336
|
+
Mc = n.InternalError = class extends Error {
|
|
2332
2337
|
constructor(a) {
|
|
2333
2338
|
super(a);
|
|
2334
2339
|
this.name = "InternalError";
|
|
@@ -2416,7 +2421,7 @@ hd.prototype.fromWireType = function(a) {
|
|
|
2416
2421
|
var e = Jc(c, this.i, d.i);
|
|
2417
2422
|
return null === e ? b.call(this) : this.va ? Oc(d.i.O, {u:d, o:e, L:this, G:a,}) : Oc(d.i.O, {u:d, o:e,});
|
|
2418
2423
|
};
|
|
2419
|
-
nd =
|
|
2424
|
+
nd = n.UnboundTypeError = tc("UnboundTypeError");
|
|
2420
2425
|
var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
2421
2426
|
kc = c;
|
|
2422
2427
|
try {
|
|
@@ -2482,15 +2487,15 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2482
2487
|
F[b + 28 >> 2] = P[1];
|
|
2483
2488
|
F[b + 32 >> 2] = 4096;
|
|
2484
2489
|
F[b + 36 >> 2] = e.Mb;
|
|
2485
|
-
var g = e.Kb.getTime(),
|
|
2490
|
+
var g = e.Kb.getTime(), m = e.rc.getTime(), p = e.Pb.getTime();
|
|
2486
2491
|
P = [Math.floor(g / 1000) >>> 0, (N = Math.floor(g / 1000), 1.0 <= +Math.abs(N) ? 0.0 < N ? +Math.floor(N / 4294967296.0) >>> 0 : ~~+Math.ceil((N - +(~~N >>> 0)) / 4294967296.0) >>> 0 : 0)];
|
|
2487
2492
|
F[b + 40 >> 2] = P[0];
|
|
2488
2493
|
F[b + 44 >> 2] = P[1];
|
|
2489
2494
|
G[b + 48 >> 2] = g % 1000 * 1000;
|
|
2490
|
-
P = [Math.floor(
|
|
2495
|
+
P = [Math.floor(m / 1000) >>> 0, (N = Math.floor(m / 1000), 1.0 <= +Math.abs(N) ? 0.0 < N ? +Math.floor(N / 4294967296.0) >>> 0 : ~~+Math.ceil((N - +(~~N >>> 0)) / 4294967296.0) >>> 0 : 0)];
|
|
2491
2496
|
F[b + 56 >> 2] = P[0];
|
|
2492
2497
|
F[b + 60 >> 2] = P[1];
|
|
2493
|
-
G[b + 64 >> 2] =
|
|
2498
|
+
G[b + 64 >> 2] = m % 1000 * 1000;
|
|
2494
2499
|
P = [Math.floor(p / 1000) >>> 0, (N = Math.floor(p / 1000), 1.0 <= +Math.abs(N) ? 0.0 < N ? +Math.floor(N / 4294967296.0) >>> 0 : ~~+Math.ceil((N - +(~~N >>> 0)) / 4294967296.0) >>> 0 : 0)];
|
|
2495
2500
|
F[b + 72 >> 2] = P[0];
|
|
2496
2501
|
F[b + 76 >> 2] = P[1];
|
|
@@ -2595,17 +2600,17 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2595
2600
|
}
|
|
2596
2601
|
var g = d ? lc() : 0;
|
|
2597
2602
|
return dc(b, c, g).Z;
|
|
2598
|
-
} catch (
|
|
2599
|
-
if ("undefined" == typeof jc || "ErrnoError" !==
|
|
2600
|
-
throw
|
|
2603
|
+
} catch (m) {
|
|
2604
|
+
if ("undefined" == typeof jc || "ErrnoError" !== m.name) {
|
|
2605
|
+
throw m;
|
|
2601
2606
|
}
|
|
2602
|
-
return -
|
|
2607
|
+
return -m.Y;
|
|
2603
2608
|
}
|
|
2604
2609
|
}, _embind_create_inheriting_constructor:function(a, b, c) {
|
|
2605
2610
|
a = W(a);
|
|
2606
2611
|
b = Fc(b, "wrapper");
|
|
2607
2612
|
c = rc(c);
|
|
2608
|
-
var d = [].slice, e = b.i, f = e.O, g = e.A.O,
|
|
2613
|
+
var d = [].slice, e = b.i, f = e.O, g = e.A.O, m = e.A.constructor;
|
|
2609
2614
|
a = nc(a, function() {
|
|
2610
2615
|
e.A.rb.forEach(function(l) {
|
|
2611
2616
|
if (this[l] === g[l]) {
|
|
@@ -2617,7 +2622,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2617
2622
|
});
|
|
2618
2623
|
f.__construct = function() {
|
|
2619
2624
|
this === f && U("Pass correct 'this' to __construct");
|
|
2620
|
-
var l =
|
|
2625
|
+
var l = m.implement.apply(void 0, [this].concat(d.call(arguments)));
|
|
2621
2626
|
Gc(l);
|
|
2622
2627
|
var u = l.g;
|
|
2623
2628
|
l.notifyOnDestruction();
|
|
@@ -2645,10 +2650,10 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2645
2650
|
delete Qc[a];
|
|
2646
2651
|
var c = b.Qa, d = b.X, e = b.fb, f = e.map(g => g.cc).concat(e.map(g => g.zc));
|
|
2647
2652
|
X([a], f, g => {
|
|
2648
|
-
var
|
|
2653
|
+
var m = {};
|
|
2649
2654
|
e.forEach((p, l) => {
|
|
2650
2655
|
var u = g[l], v = p.ac, y = p.bc, k = g[l + e.length], t = p.yc, r = p.Ac;
|
|
2651
|
-
|
|
2656
|
+
m[p.Xb] = {read:B => u.fromWireType(v(y, B)), write:(B, E) => {
|
|
2652
2657
|
var w = [];
|
|
2653
2658
|
t(r, B, k.toWireType(w, E));
|
|
2654
2659
|
Rc(w);
|
|
@@ -2656,20 +2661,20 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2656
2661
|
});
|
|
2657
2662
|
return [{name:b.name, fromWireType:function(p) {
|
|
2658
2663
|
var l = {}, u;
|
|
2659
|
-
for (u in
|
|
2660
|
-
l[u] =
|
|
2664
|
+
for (u in m) {
|
|
2665
|
+
l[u] = m[u].read(p);
|
|
2661
2666
|
}
|
|
2662
2667
|
d(p);
|
|
2663
2668
|
return l;
|
|
2664
2669
|
}, toWireType:function(p, l) {
|
|
2665
|
-
for (var u in
|
|
2670
|
+
for (var u in m) {
|
|
2666
2671
|
if (!(u in l)) {
|
|
2667
2672
|
throw new TypeError(`Missing field: "${u}"`);
|
|
2668
2673
|
}
|
|
2669
2674
|
}
|
|
2670
2675
|
var v = c();
|
|
2671
|
-
for (u in
|
|
2672
|
-
|
|
2676
|
+
for (u in m) {
|
|
2677
|
+
m[u].write(v, l[u]);
|
|
2673
2678
|
}
|
|
2674
2679
|
null !== p && p.push(d, v);
|
|
2675
2680
|
return v;
|
|
@@ -2681,24 +2686,24 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2681
2686
|
b = W(b);
|
|
2682
2687
|
Vc(a, {name:b, fromWireType:function(g) {
|
|
2683
2688
|
return !!g;
|
|
2684
|
-
}, toWireType:function(g,
|
|
2685
|
-
return
|
|
2689
|
+
}, toWireType:function(g, m) {
|
|
2690
|
+
return m ? d : e;
|
|
2686
2691
|
}, argPackAdvance:8, readValueFromPointer:function(g) {
|
|
2687
2692
|
if (1 === c) {
|
|
2688
|
-
var
|
|
2693
|
+
var m = A;
|
|
2689
2694
|
} else if (2 === c) {
|
|
2690
|
-
|
|
2695
|
+
m = Da;
|
|
2691
2696
|
} else if (4 === c) {
|
|
2692
|
-
|
|
2697
|
+
m = F;
|
|
2693
2698
|
} else {
|
|
2694
2699
|
throw new TypeError("Unknown boolean type size: " + b);
|
|
2695
2700
|
}
|
|
2696
|
-
return this.fromWireType(
|
|
2701
|
+
return this.fromWireType(m[g >> f]);
|
|
2697
2702
|
}, K:null,});
|
|
2698
|
-
}, _embind_register_class:function(a, b, c, d, e, f, g,
|
|
2703
|
+
}, _embind_register_class:function(a, b, c, d, e, f, g, m, p, l, u, v, y) {
|
|
2699
2704
|
u = W(u);
|
|
2700
2705
|
f = Y(e, f);
|
|
2701
|
-
|
|
2706
|
+
m && (m = Y(g, m));
|
|
2702
2707
|
l && (l = Y(p, l));
|
|
2703
2708
|
y = Y(v, y);
|
|
2704
2709
|
var k = mc(u);
|
|
@@ -2728,7 +2733,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2728
2733
|
});
|
|
2729
2734
|
var E = Object.create(B, {constructor:{value:t},});
|
|
2730
2735
|
t.prototype = E;
|
|
2731
|
-
var w = new bd(u, t, E, y, r, f,
|
|
2736
|
+
var w = new bd(u, t, E, y, r, f, m, l);
|
|
2732
2737
|
w.A && (void 0 === w.A.pa && (w.A.pa = []), w.A.pa.push(w));
|
|
2733
2738
|
r = new hd(u, w, !0, !1);
|
|
2734
2739
|
B = new hd(u + "*", w, !1, !1);
|
|
@@ -2738,19 +2743,19 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2738
2743
|
return [r, B, O];
|
|
2739
2744
|
});
|
|
2740
2745
|
}, _embind_register_class_class_function:function(a, b, c, d, e, f, g) {
|
|
2741
|
-
var
|
|
2746
|
+
var m = rd(c, d);
|
|
2742
2747
|
b = W(b);
|
|
2743
2748
|
f = Y(e, f);
|
|
2744
2749
|
X([], [a], function(p) {
|
|
2745
2750
|
function l() {
|
|
2746
|
-
od(`Cannot call ${u} due to unbound types`,
|
|
2751
|
+
od(`Cannot call ${u} due to unbound types`, m);
|
|
2747
2752
|
}
|
|
2748
2753
|
p = p[0];
|
|
2749
2754
|
var u = `${p.name}.${b}`;
|
|
2750
2755
|
b.startsWith("@@") && (b = Symbol[b.substring(2)]);
|
|
2751
2756
|
var v = p.i.constructor;
|
|
2752
2757
|
void 0 === v[b] ? (l.ea = c - 1, v[b] = l) : ($c(v, b, u), v[b].B[c - 1] = l);
|
|
2753
|
-
X([],
|
|
2758
|
+
X([], m, function(y) {
|
|
2754
2759
|
y = pd(u, [y[0], null].concat(y.slice(1)), null, f, g);
|
|
2755
2760
|
void 0 === v[b].B ? (y.ea = c - 1, v[b] = y) : v[b].B[c - 1] = y;
|
|
2756
2761
|
if (p.i.pa) {
|
|
@@ -2762,7 +2767,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2762
2767
|
});
|
|
2763
2768
|
return [];
|
|
2764
2769
|
});
|
|
2765
|
-
}, _embind_register_class_class_property:function(a, b, c, d, e, f, g,
|
|
2770
|
+
}, _embind_register_class_class_property:function(a, b, c, d, e, f, g, m) {
|
|
2766
2771
|
b = W(b);
|
|
2767
2772
|
f = Y(e, f);
|
|
2768
2773
|
X([], [a], function(p) {
|
|
@@ -2770,7 +2775,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2770
2775
|
var l = `${p.name}.${b}`, u = {get() {
|
|
2771
2776
|
od(`Cannot access ${l} due to unbound types`, [c]);
|
|
2772
2777
|
}, enumerable:!0, configurable:!0};
|
|
2773
|
-
u.set =
|
|
2778
|
+
u.set = m ? () => {
|
|
2774
2779
|
od(`Cannot access ${l} due to unbound types`, [c]);
|
|
2775
2780
|
} : () => {
|
|
2776
2781
|
U(`${l} is a read-only property`);
|
|
@@ -2781,9 +2786,9 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2781
2786
|
var y = {get() {
|
|
2782
2787
|
return v.fromWireType(f(d));
|
|
2783
2788
|
}, enumerable:!0};
|
|
2784
|
-
|
|
2789
|
+
m && (m = Y(g, m), y.set = k => {
|
|
2785
2790
|
var t = [];
|
|
2786
|
-
|
|
2791
|
+
m(d, v.toWireType(t, k));
|
|
2787
2792
|
Rc(t);
|
|
2788
2793
|
});
|
|
2789
2794
|
Object.defineProperty(p.i.constructor, b, y);
|
|
@@ -2794,24 +2799,24 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2794
2799
|
}, _embind_register_class_constructor:function(a, b, c, d, e, f) {
|
|
2795
2800
|
var g = rd(b, c);
|
|
2796
2801
|
e = Y(d, e);
|
|
2797
|
-
X([], [a], function(
|
|
2798
|
-
|
|
2799
|
-
var p = `constructor ${
|
|
2800
|
-
void 0 ===
|
|
2801
|
-
if (void 0 !==
|
|
2802
|
-
throw new qc(`Cannot register multiple constructors with identical number of parameters (${b - 1}) for class '${
|
|
2803
|
-
}
|
|
2804
|
-
|
|
2805
|
-
od(`Cannot construct ${
|
|
2802
|
+
X([], [a], function(m) {
|
|
2803
|
+
m = m[0];
|
|
2804
|
+
var p = `constructor ${m.name}`;
|
|
2805
|
+
void 0 === m.i.aa && (m.i.aa = []);
|
|
2806
|
+
if (void 0 !== m.i.aa[b - 1]) {
|
|
2807
|
+
throw new qc(`Cannot register multiple constructors with identical number of parameters (${b - 1}) for class '${m.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);
|
|
2808
|
+
}
|
|
2809
|
+
m.i.aa[b - 1] = () => {
|
|
2810
|
+
od(`Cannot construct ${m.name} due to unbound types`, g);
|
|
2806
2811
|
};
|
|
2807
2812
|
X([], g, function(l) {
|
|
2808
2813
|
l.splice(1, 0, null);
|
|
2809
|
-
|
|
2814
|
+
m.i.aa[b - 1] = pd(p, l, null, e, f);
|
|
2810
2815
|
return [];
|
|
2811
2816
|
});
|
|
2812
2817
|
return [];
|
|
2813
2818
|
});
|
|
2814
|
-
}, _embind_register_class_function:function(a, b, c, d, e, f, g,
|
|
2819
|
+
}, _embind_register_class_function:function(a, b, c, d, e, f, g, m) {
|
|
2815
2820
|
var p = rd(c, d);
|
|
2816
2821
|
b = W(b);
|
|
2817
2822
|
f = Y(e, f);
|
|
@@ -2822,7 +2827,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2822
2827
|
l = l[0];
|
|
2823
2828
|
var v = `${l.name}.${b}`;
|
|
2824
2829
|
b.startsWith("@@") && (b = Symbol[b.substring(2)]);
|
|
2825
|
-
|
|
2830
|
+
m && l.i.rb.push(b);
|
|
2826
2831
|
var y = l.i.O, k = y[b];
|
|
2827
2832
|
void 0 === k || void 0 === k.B && k.className !== l.name && k.ea === c - 2 ? (u.ea = c - 2, u.className = l.name, y[b] = u) : ($c(y, b, v), y[b].B[c - 2] = u);
|
|
2828
2833
|
X([], p, function(t) {
|
|
@@ -2832,7 +2837,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2832
2837
|
});
|
|
2833
2838
|
return [];
|
|
2834
2839
|
});
|
|
2835
|
-
}, _embind_register_class_property:function(a, b, c, d, e, f, g,
|
|
2840
|
+
}, _embind_register_class_property:function(a, b, c, d, e, f, g, m, p, l) {
|
|
2836
2841
|
b = W(b);
|
|
2837
2842
|
e = Y(d, e);
|
|
2838
2843
|
X([], [a], function(u) {
|
|
@@ -2852,7 +2857,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2852
2857
|
return t.fromWireType(e(f, E));
|
|
2853
2858
|
}, enumerable:!0};
|
|
2854
2859
|
if (p) {
|
|
2855
|
-
p = Y(
|
|
2860
|
+
p = Y(m, p);
|
|
2856
2861
|
var B = k[1];
|
|
2857
2862
|
r.set = function(E) {
|
|
2858
2863
|
var w = sd(this, u, v + " setter"), O = [];
|
|
@@ -2909,22 +2914,22 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2909
2914
|
ad(a, function() {
|
|
2910
2915
|
od(`Cannot call ${a} due to unbound types`, g);
|
|
2911
2916
|
}, b - 1);
|
|
2912
|
-
X([], g, function(
|
|
2913
|
-
jd(a, pd(a, [
|
|
2917
|
+
X([], g, function(m) {
|
|
2918
|
+
jd(a, pd(a, [m[0], null].concat(m.slice(1)), null, e, f), b - 1);
|
|
2914
2919
|
return [];
|
|
2915
2920
|
});
|
|
2916
2921
|
}, _embind_register_integer:function(a, b, c, d, e) {
|
|
2917
2922
|
b = W(b);
|
|
2918
2923
|
-1 === e && (e = 4294967295);
|
|
2919
2924
|
e = Wc(c);
|
|
2920
|
-
var f =
|
|
2925
|
+
var f = m => m;
|
|
2921
2926
|
if (0 === d) {
|
|
2922
2927
|
var g = 32 - 8 * c;
|
|
2923
|
-
f =
|
|
2928
|
+
f = m => m << g >>> g;
|
|
2924
2929
|
}
|
|
2925
|
-
c = b.includes("unsigned") ? function(
|
|
2930
|
+
c = b.includes("unsigned") ? function(m, p) {
|
|
2926
2931
|
return p >>> 0;
|
|
2927
|
-
} : function(
|
|
2932
|
+
} : function(m, p) {
|
|
2928
2933
|
return p;
|
|
2929
2934
|
};
|
|
2930
2935
|
Vc(a, {name:b, fromWireType:f, toWireType:c, argPackAdvance:8, readValueFromPointer:wd(b, e, 0 !== d), K:null,});
|
|
@@ -2943,9 +2948,9 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2943
2948
|
Vc(a, {name:b, fromWireType:function(d) {
|
|
2944
2949
|
var e = G[d >> 2], f = d + 4;
|
|
2945
2950
|
if (c) {
|
|
2946
|
-
for (var g = f,
|
|
2947
|
-
var p = f +
|
|
2948
|
-
if (
|
|
2951
|
+
for (var g = f, m = 0; m <= e; ++m) {
|
|
2952
|
+
var p = f + m;
|
|
2953
|
+
if (m == e || 0 == C[p]) {
|
|
2949
2954
|
g = g ? lb(C, g, p - g) : "";
|
|
2950
2955
|
if (void 0 === l) {
|
|
2951
2956
|
var l = g;
|
|
@@ -2957,8 +2962,8 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2957
2962
|
}
|
|
2958
2963
|
} else {
|
|
2959
2964
|
l = Array(e);
|
|
2960
|
-
for (
|
|
2961
|
-
l[
|
|
2965
|
+
for (m = 0; m < e; ++m) {
|
|
2966
|
+
l[m] = String.fromCharCode(C[f + m]);
|
|
2962
2967
|
}
|
|
2963
2968
|
l = l.join("");
|
|
2964
2969
|
}
|
|
@@ -2969,8 +2974,8 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2969
2974
|
var f = "string" == typeof e;
|
|
2970
2975
|
f || e instanceof Uint8Array || e instanceof Uint8ClampedArray || e instanceof Int8Array || U("Cannot pass non-string to std::string");
|
|
2971
2976
|
var g = c && f ? nb(e) : e.length;
|
|
2972
|
-
var
|
|
2973
|
-
G[
|
|
2977
|
+
var m = Vd(4 + g + 1), p = m + 4;
|
|
2978
|
+
G[m >> 2] = g;
|
|
2974
2979
|
if (c && f) {
|
|
2975
2980
|
ob(e, C, p, g + 1);
|
|
2976
2981
|
} else {
|
|
@@ -2986,8 +2991,8 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2986
2991
|
}
|
|
2987
2992
|
}
|
|
2988
2993
|
}
|
|
2989
|
-
null !== d && d.push(Ec,
|
|
2990
|
-
return
|
|
2994
|
+
null !== d && d.push(Ec, m);
|
|
2995
|
+
return m;
|
|
2991
2996
|
}, argPackAdvance:8, readValueFromPointer:Sc, K:function(d) {
|
|
2992
2997
|
Ec(d);
|
|
2993
2998
|
},});
|
|
@@ -2998,14 +3003,14 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2998
3003
|
var e = zd;
|
|
2999
3004
|
var f = Ad;
|
|
3000
3005
|
var g = () => Ea;
|
|
3001
|
-
var
|
|
3006
|
+
var m = 1;
|
|
3002
3007
|
} else {
|
|
3003
|
-
4 === b && (d = Bd, e = Cd, f = Dd, g = () => G,
|
|
3008
|
+
4 === b && (d = Bd, e = Cd, f = Dd, g = () => G, m = 2);
|
|
3004
3009
|
}
|
|
3005
3010
|
Vc(a, {name:c, fromWireType:function(p) {
|
|
3006
3011
|
for (var l = G[p >> 2], u = g(), v, y = p + 4, k = 0; k <= l; ++k) {
|
|
3007
3012
|
var t = p + 4 + k * b;
|
|
3008
|
-
if (k == l || 0 == u[t >>
|
|
3013
|
+
if (k == l || 0 == u[t >> m]) {
|
|
3009
3014
|
y = d(y, t - y), void 0 === v ? v = y : (v += String.fromCharCode(0), v += y), y = t + b;
|
|
3010
3015
|
}
|
|
3011
3016
|
}
|
|
@@ -3014,7 +3019,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3014
3019
|
}, toWireType:function(p, l) {
|
|
3015
3020
|
"string" != typeof l && U(`Cannot pass non-string to C++ string type ${c}`);
|
|
3016
3021
|
var u = f(l), v = Vd(4 + u + b);
|
|
3017
|
-
G[v >> 2] = u >>
|
|
3022
|
+
G[v >> 2] = u >> m;
|
|
3018
3023
|
e(l, v + 4, u + b);
|
|
3019
3024
|
null !== p && p.push(Ec, v);
|
|
3020
3025
|
return v;
|
|
@@ -3023,8 +3028,8 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3023
3028
|
},});
|
|
3024
3029
|
}, _embind_register_value_object:function(a, b, c, d, e, f) {
|
|
3025
3030
|
Qc[a] = {name:W(b), Qa:Y(c, d), X:Y(e, f), fb:[],};
|
|
3026
|
-
}, _embind_register_value_object_field:function(a, b, c, d, e, f, g,
|
|
3027
|
-
Qc[a].fb.push({Xb:W(b), cc:c, ac:Y(d, e), bc:f, zc:g, yc:Y(
|
|
3031
|
+
}, _embind_register_value_object_field:function(a, b, c, d, e, f, g, m, p, l) {
|
|
3032
|
+
Qc[a].fb.push({Xb:W(b), cc:c, ac:Y(d, e), bc:f, zc:g, yc:Y(m, p), Ac:l,});
|
|
3028
3033
|
}, _embind_register_void:function(a, b) {
|
|
3029
3034
|
b = W(b);
|
|
3030
3035
|
Vc(a, {mc:!0, name:b, argPackAdvance:0, fromWireType:function() {
|
|
@@ -3058,11 +3063,11 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3058
3063
|
return e;
|
|
3059
3064
|
}
|
|
3060
3065
|
var f = Array(a - 1);
|
|
3061
|
-
e = Hd((g,
|
|
3066
|
+
e = Hd((g, m, p, l) => {
|
|
3062
3067
|
for (var u = 0, v = 0; v < a - 1; ++v) {
|
|
3063
3068
|
f[v] = c[v + 1].readValueFromPointer(l + u), u += c[v + 1].argPackAdvance;
|
|
3064
3069
|
}
|
|
3065
|
-
g = g[
|
|
3070
|
+
g = g[m].apply(g, f);
|
|
3066
3071
|
for (v = 0; v < a - 1; ++v) {
|
|
3067
3072
|
c[v + 1].Rb && c[v + 1].Rb(f[v]);
|
|
3068
3073
|
}
|
|
@@ -3073,7 +3078,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3073
3078
|
return Jd[b] = e;
|
|
3074
3079
|
}, _emval_get_module_property:function(a) {
|
|
3075
3080
|
a = Fd(a);
|
|
3076
|
-
return sc(
|
|
3081
|
+
return sc(n[a]);
|
|
3077
3082
|
}, _emval_get_property:function(a, b) {
|
|
3078
3083
|
a = rc(a);
|
|
3079
3084
|
b = rc(b);
|
|
@@ -3182,9 +3187,9 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3182
3187
|
var e = Rb(a);
|
|
3183
3188
|
a = b;
|
|
3184
3189
|
for (var f, g = b = 0; g < c; g++) {
|
|
3185
|
-
var
|
|
3190
|
+
var m = G[a >> 2], p = G[a + 4 >> 2];
|
|
3186
3191
|
a += 8;
|
|
3187
|
-
var l = e, u =
|
|
3192
|
+
var l = e, u = m, v = p, y = f, k = A;
|
|
3188
3193
|
if (0 > v || 0 > y) {
|
|
3189
3194
|
throw new Q(28);
|
|
3190
3195
|
}
|
|
@@ -3254,9 +3259,9 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3254
3259
|
var e = Rb(a);
|
|
3255
3260
|
a = b;
|
|
3256
3261
|
for (var f, g = b = 0; g < c; g++) {
|
|
3257
|
-
var
|
|
3262
|
+
var m = G[a >> 2], p = G[a + 4 >> 2];
|
|
3258
3263
|
a += 8;
|
|
3259
|
-
var l = e, u =
|
|
3264
|
+
var l = e, u = m, v = p, y = f, k = A;
|
|
3260
3265
|
if (0 > v || 0 > y) {
|
|
3261
3266
|
throw new Q(28);
|
|
3262
3267
|
}
|
|
@@ -3308,7 +3313,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3308
3313
|
Ka = x.__indirect_function_table;
|
|
3309
3314
|
Ma.unshift(x.__wasm_call_ctors);
|
|
3310
3315
|
Pa--;
|
|
3311
|
-
|
|
3316
|
+
n.monitorRunDependencies && n.monitorRunDependencies(Pa);
|
|
3312
3317
|
if (0 == Pa && (null !== Qa && (clearInterval(Qa), Qa = null), Ra)) {
|
|
3313
3318
|
var d = Ra;
|
|
3314
3319
|
Ra = null;
|
|
@@ -3318,10 +3323,10 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3318
3323
|
}
|
|
3319
3324
|
var b = {env:Wd, wasi_snapshot_preview1:Wd,};
|
|
3320
3325
|
Pa++;
|
|
3321
|
-
|
|
3322
|
-
if (
|
|
3326
|
+
n.monitorRunDependencies && n.monitorRunDependencies(Pa);
|
|
3327
|
+
if (n.instantiateWasm) {
|
|
3323
3328
|
try {
|
|
3324
|
-
return
|
|
3329
|
+
return n.instantiateWasm(b, a);
|
|
3325
3330
|
} catch (c) {
|
|
3326
3331
|
ua("Module.instantiateWasm callback failed with error: " + c), ba(c);
|
|
3327
3332
|
}
|
|
@@ -3331,20 +3336,20 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3331
3336
|
}).catch(ba);
|
|
3332
3337
|
return {};
|
|
3333
3338
|
})();
|
|
3334
|
-
var Ec = a => (Ec = x.free)(a), Vd = a => (Vd = x.malloc)(a), Za =
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
var $a =
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3339
|
+
var Ec = a => (Ec = x.free)(a), Vd = a => (Vd = x.malloc)(a), Za = n._ma_device__on_notification_unlocked = a => (Za = n._ma_device__on_notification_unlocked = x.ma_device__on_notification_unlocked)(a);
|
|
3340
|
+
n._ma_malloc_emscripten = (a, b) => (n._ma_malloc_emscripten = x.ma_malloc_emscripten)(a, b);
|
|
3341
|
+
n._ma_free_emscripten = (a, b) => (n._ma_free_emscripten = x.ma_free_emscripten)(a, b);
|
|
3342
|
+
var $a = n._ma_device_process_pcm_frames_capture__webaudio = (a, b, c) => ($a = n._ma_device_process_pcm_frames_capture__webaudio = x.ma_device_process_pcm_frames_capture__webaudio)(a, b, c), ab = n._ma_device_process_pcm_frames_playback__webaudio = (a, b, c) => (ab = n._ma_device_process_pcm_frames_playback__webaudio = x.ma_device_process_pcm_frames_playback__webaudio)(a, b, c), Ud = () => (Ud = x.__errno_location)(), Dc = a => (Dc = x.__getTypeName)(a);
|
|
3343
|
+
n.__embind_initialize_bindings = () => (n.__embind_initialize_bindings = x._embind_initialize_bindings)();
|
|
3344
|
+
n.dynCall_iiiji = (a, b, c, d, e, f) => (n.dynCall_iiiji = x.dynCall_iiiji)(a, b, c, d, e, f);
|
|
3345
|
+
n.dynCall_iiji = (a, b, c, d, e) => (n.dynCall_iiji = x.dynCall_iiji)(a, b, c, d, e);
|
|
3346
|
+
n.dynCall_jiji = (a, b, c, d, e) => (n.dynCall_jiji = x.dynCall_jiji)(a, b, c, d, e);
|
|
3347
|
+
n.dynCall_iij = (a, b, c, d) => (n.dynCall_iij = x.dynCall_iij)(a, b, c, d);
|
|
3348
|
+
n.dynCall_jii = (a, b, c) => (n.dynCall_jii = x.dynCall_jii)(a, b, c);
|
|
3349
|
+
n.dynCall_viijii = (a, b, c, d, e, f, g) => (n.dynCall_viijii = x.dynCall_viijii)(a, b, c, d, e, f, g);
|
|
3350
|
+
n.dynCall_iiiiij = (a, b, c, d, e, f, g) => (n.dynCall_iiiiij = x.dynCall_iiiiij)(a, b, c, d, e, f, g);
|
|
3351
|
+
n.dynCall_iiiiijj = (a, b, c, d, e, f, g, m, p) => (n.dynCall_iiiiijj = x.dynCall_iiiiijj)(a, b, c, d, e, f, g, m, p);
|
|
3352
|
+
n.dynCall_iiiiiijj = (a, b, c, d, e, f, g, m, p, l) => (n.dynCall_iiiiiijj = x.dynCall_iiiiiijj)(a, b, c, d, e, f, g, m, p, l);
|
|
3348
3353
|
var Xd;
|
|
3349
3354
|
Ra = function Yd() {
|
|
3350
3355
|
Xd || Zd();
|
|
@@ -3352,17 +3357,17 @@ Ra = function Yd() {
|
|
|
3352
3357
|
};
|
|
3353
3358
|
function Zd() {
|
|
3354
3359
|
function a() {
|
|
3355
|
-
if (!Xd && (Xd = !0,
|
|
3356
|
-
|
|
3360
|
+
if (!Xd && (Xd = !0, n.calledRun = !0, !Ba)) {
|
|
3361
|
+
n.noFSInit || gc || (gc = !0, fc(), n.stdin = n.stdin, n.stdout = n.stdout, n.stderr = n.stderr, n.stdin ? ic("stdin", n.stdin) : Xb("/dev/tty", "/dev/stdin"), n.stdout ? ic("stdout", null, n.stdout) : Xb("/dev/tty", "/dev/stdout"), n.stderr ? ic("stderr", null, n.stderr) : Xb("/dev/tty1", "/dev/stderr"), dc("/dev/stdin", 0), dc("/dev/stdout", 1), dc("/dev/stderr", 1));
|
|
3357
3362
|
Hb = !1;
|
|
3358
3363
|
cb(Ma);
|
|
3359
|
-
aa(
|
|
3360
|
-
if (
|
|
3361
|
-
|
|
3364
|
+
aa(n);
|
|
3365
|
+
if (n.onRuntimeInitialized) {
|
|
3366
|
+
n.onRuntimeInitialized();
|
|
3362
3367
|
}
|
|
3363
|
-
if (
|
|
3364
|
-
for ("function" == typeof
|
|
3365
|
-
var b =
|
|
3368
|
+
if (n.postRun) {
|
|
3369
|
+
for ("function" == typeof n.postRun && (n.postRun = [n.postRun]); n.postRun.length;) {
|
|
3370
|
+
var b = n.postRun.shift();
|
|
3366
3371
|
Na.unshift(b);
|
|
3367
3372
|
}
|
|
3368
3373
|
}
|
|
@@ -3370,23 +3375,23 @@ function Zd() {
|
|
|
3370
3375
|
}
|
|
3371
3376
|
}
|
|
3372
3377
|
if (!(0 < Pa)) {
|
|
3373
|
-
if (
|
|
3374
|
-
for ("function" == typeof
|
|
3378
|
+
if (n.preRun) {
|
|
3379
|
+
for ("function" == typeof n.preRun && (n.preRun = [n.preRun]); n.preRun.length;) {
|
|
3375
3380
|
Oa();
|
|
3376
3381
|
}
|
|
3377
3382
|
}
|
|
3378
3383
|
cb(La);
|
|
3379
|
-
0 < Pa || (
|
|
3384
|
+
0 < Pa || (n.setStatus ? (n.setStatus("Running..."), setTimeout(function() {
|
|
3380
3385
|
setTimeout(function() {
|
|
3381
|
-
|
|
3386
|
+
n.setStatus("");
|
|
3382
3387
|
}, 1);
|
|
3383
3388
|
a();
|
|
3384
3389
|
}, 1)) : a());
|
|
3385
3390
|
}
|
|
3386
3391
|
}
|
|
3387
|
-
if (
|
|
3388
|
-
for ("function" == typeof
|
|
3389
|
-
|
|
3392
|
+
if (n.preInit) {
|
|
3393
|
+
for ("function" == typeof n.preInit && (n.preInit = [n.preInit]); 0 < n.preInit.length;) {
|
|
3394
|
+
n.preInit.pop()();
|
|
3390
3395
|
}
|
|
3391
3396
|
}
|
|
3392
3397
|
Zd();
|
|
@@ -3404,7 +3409,7 @@ Zd();
|
|
|
3404
3409
|
/* 2 */
|
|
3405
3410
|
/***/ ((module) => {
|
|
3406
3411
|
|
|
3407
|
-
module.exports = JSON.parse('{"name":"@rive-app/canvas","version":"2.
|
|
3412
|
+
module.exports = JSON.parse('{"name":"@rive-app/canvas","version":"2.15.0","description":"Rive\'s canvas 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)"],"license":"MIT","files":["rive.js","rive.js.map","rive.wasm","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
|
|
3408
3413
|
|
|
3409
3414
|
/***/ }),
|
|
3410
3415
|
/* 3 */
|
|
@@ -3702,6 +3707,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3702
3707
|
/* harmony export */ StateMachineInput: () => (/* binding */ StateMachineInput),
|
|
3703
3708
|
/* harmony export */ StateMachineInputType: () => (/* binding */ StateMachineInputType),
|
|
3704
3709
|
/* harmony export */ Testing: () => (/* binding */ Testing),
|
|
3710
|
+
/* harmony export */ decodeAudio: () => (/* binding */ decodeAudio),
|
|
3705
3711
|
/* harmony export */ decodeFont: () => (/* binding */ decodeFont),
|
|
3706
3712
|
/* harmony export */ decodeImage: () => (/* binding */ decodeImage)
|
|
3707
3713
|
/* harmony export */ });
|
|
@@ -5876,10 +5882,23 @@ var Testing = {
|
|
|
5876
5882
|
};
|
|
5877
5883
|
// #endregion
|
|
5878
5884
|
// #region asset loaders
|
|
5885
|
+
/**
|
|
5886
|
+
* Decodes bytes into an audio asset.
|
|
5887
|
+
*
|
|
5888
|
+
* Be sure to call `.unref()` on the audio once it is no longer needed. This
|
|
5889
|
+
* allows the engine to clean it up when it is not used by any more animations.
|
|
5890
|
+
*/
|
|
5891
|
+
var decodeAudio = function (bytes) {
|
|
5892
|
+
return new Promise(function (resolve) {
|
|
5893
|
+
return RuntimeLoader.getInstance(function (rive) {
|
|
5894
|
+
rive.decodeAudio(bytes, resolve);
|
|
5895
|
+
});
|
|
5896
|
+
});
|
|
5897
|
+
};
|
|
5879
5898
|
/**
|
|
5880
5899
|
* Decodes bytes into an image.
|
|
5881
5900
|
*
|
|
5882
|
-
* Be sure to call `.
|
|
5901
|
+
* Be sure to call `.unref()` on the image once it is no longer needed. This
|
|
5883
5902
|
* allows the engine to clean it up when it is not used by any more animations.
|
|
5884
5903
|
*/
|
|
5885
5904
|
var decodeImage = function (bytes) {
|
|
@@ -5892,7 +5911,7 @@ var decodeImage = function (bytes) {
|
|
|
5892
5911
|
/**
|
|
5893
5912
|
* Decodes bytes into a font.
|
|
5894
5913
|
*
|
|
5895
|
-
* Be sure to call `.
|
|
5914
|
+
* Be sure to call `.unref()` on the font once it is no longer needed. This
|
|
5896
5915
|
* allows the engine to clean it up when it is not used by any more animations.
|
|
5897
5916
|
*/
|
|
5898
5917
|
var decodeFont = function (bytes) {
|