@rive-app/webgl 2.36.0 → 2.37.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/rive.d.ts +7 -22
- package/rive.js +774 -671
- package/rive.js.map +1 -1
- package/rive.wasm +0 -0
- package/rive_advanced.mjs.d.ts +4 -0
- package/rive_fallback.wasm +0 -0
package/rive.js
CHANGED
|
@@ -13,6 +13,264 @@ return /******/ (() => { // webpackBootstrap
|
|
|
13
13
|
/******/ var __webpack_modules__ = ([
|
|
14
14
|
/* 0 */,
|
|
15
15
|
/* 1 */
|
|
16
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
17
|
+
|
|
18
|
+
__webpack_require__.r(__webpack_exports__);
|
|
19
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
20
|
+
/* harmony export */ Animation: () => (/* reexport safe */ _Animation__WEBPACK_IMPORTED_MODULE_0__.Animation)
|
|
21
|
+
/* harmony export */ });
|
|
22
|
+
/* harmony import */ var _Animation__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
/***/ }),
|
|
27
|
+
/* 2 */
|
|
28
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
29
|
+
|
|
30
|
+
__webpack_require__.r(__webpack_exports__);
|
|
31
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
32
|
+
/* harmony export */ Animation: () => (/* binding */ Animation)
|
|
33
|
+
/* harmony export */ });
|
|
34
|
+
/**
|
|
35
|
+
* Represents an animation that can be played on an Artboard.
|
|
36
|
+
* Wraps animations and instances from the runtime and keeps track of playback state.
|
|
37
|
+
*
|
|
38
|
+
* The `Animation` class manages the state and behavior of a single animation instance,
|
|
39
|
+
* including its current time, loop count, and ability to scrub to a specific time.
|
|
40
|
+
*
|
|
41
|
+
* The class provides methods to advance the animation, apply its interpolated keyframe
|
|
42
|
+
* values to the Artboard, and clean up the underlying animation instance when the
|
|
43
|
+
* animation is no longer needed.
|
|
44
|
+
*/
|
|
45
|
+
var Animation = /** @class */ (function () {
|
|
46
|
+
/**
|
|
47
|
+
* Constructs a new animation
|
|
48
|
+
* @constructor
|
|
49
|
+
* @param {any} animation: runtime animation object
|
|
50
|
+
* @param {any} instance: runtime animation instance object
|
|
51
|
+
*/
|
|
52
|
+
function Animation(animation, artboard, runtime, playing) {
|
|
53
|
+
this.animation = animation;
|
|
54
|
+
this.artboard = artboard;
|
|
55
|
+
this.playing = playing;
|
|
56
|
+
this.loopCount = 0;
|
|
57
|
+
/**
|
|
58
|
+
* The time to which the animation should move to on the next render.
|
|
59
|
+
* If not null, the animation will scrub to this time instead of advancing by the given time.
|
|
60
|
+
*/
|
|
61
|
+
this.scrubTo = null;
|
|
62
|
+
this.instance = new runtime.LinearAnimationInstance(animation, artboard);
|
|
63
|
+
}
|
|
64
|
+
Object.defineProperty(Animation.prototype, "name", {
|
|
65
|
+
/**
|
|
66
|
+
* Returns the animation's name
|
|
67
|
+
*/
|
|
68
|
+
get: function () {
|
|
69
|
+
return this.animation.name;
|
|
70
|
+
},
|
|
71
|
+
enumerable: false,
|
|
72
|
+
configurable: true
|
|
73
|
+
});
|
|
74
|
+
Object.defineProperty(Animation.prototype, "time", {
|
|
75
|
+
/**
|
|
76
|
+
* Returns the animation's name
|
|
77
|
+
*/
|
|
78
|
+
get: function () {
|
|
79
|
+
return this.instance.time;
|
|
80
|
+
},
|
|
81
|
+
/**
|
|
82
|
+
* Sets the animation's current time
|
|
83
|
+
*/
|
|
84
|
+
set: function (value) {
|
|
85
|
+
this.instance.time = value;
|
|
86
|
+
},
|
|
87
|
+
enumerable: false,
|
|
88
|
+
configurable: true
|
|
89
|
+
});
|
|
90
|
+
Object.defineProperty(Animation.prototype, "loopValue", {
|
|
91
|
+
/**
|
|
92
|
+
* Returns the animation's loop type
|
|
93
|
+
*/
|
|
94
|
+
get: function () {
|
|
95
|
+
return this.animation.loopValue;
|
|
96
|
+
},
|
|
97
|
+
enumerable: false,
|
|
98
|
+
configurable: true
|
|
99
|
+
});
|
|
100
|
+
Object.defineProperty(Animation.prototype, "needsScrub", {
|
|
101
|
+
/**
|
|
102
|
+
* Indicates whether the animation needs to be scrubbed.
|
|
103
|
+
* @returns `true` if the animation needs to be scrubbed, `false` otherwise.
|
|
104
|
+
*/
|
|
105
|
+
get: function () {
|
|
106
|
+
return this.scrubTo !== null;
|
|
107
|
+
},
|
|
108
|
+
enumerable: false,
|
|
109
|
+
configurable: true
|
|
110
|
+
});
|
|
111
|
+
/**
|
|
112
|
+
* Advances the animation by the give time. If the animation needs scrubbing,
|
|
113
|
+
* time is ignored and the stored scrub value is used.
|
|
114
|
+
* @param time the time to advance the animation by if no scrubbing required
|
|
115
|
+
*/
|
|
116
|
+
Animation.prototype.advance = function (time) {
|
|
117
|
+
if (this.scrubTo === null) {
|
|
118
|
+
this.instance.advance(time);
|
|
119
|
+
}
|
|
120
|
+
else {
|
|
121
|
+
this.instance.time = 0;
|
|
122
|
+
this.instance.advance(this.scrubTo);
|
|
123
|
+
this.scrubTo = null;
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
/**
|
|
127
|
+
* Apply interpolated keyframe values to the artboard. This should be called after calling
|
|
128
|
+
* .advance() on an animation instance so that new values are applied to properties.
|
|
129
|
+
*
|
|
130
|
+
* Note: This does not advance the artboard, which updates all objects on the artboard
|
|
131
|
+
* @param mix - Mix value for the animation from 0 to 1
|
|
132
|
+
*/
|
|
133
|
+
Animation.prototype.apply = function (mix) {
|
|
134
|
+
this.instance.apply(mix);
|
|
135
|
+
};
|
|
136
|
+
/**
|
|
137
|
+
* Deletes the backing Wasm animation instance; once this is called, this
|
|
138
|
+
* animation is no more.
|
|
139
|
+
*/
|
|
140
|
+
Animation.prototype.cleanup = function () {
|
|
141
|
+
this.instance.delete();
|
|
142
|
+
};
|
|
143
|
+
return Animation;
|
|
144
|
+
}());
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
/***/ }),
|
|
149
|
+
/* 3 */
|
|
150
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
151
|
+
|
|
152
|
+
__webpack_require__.r(__webpack_exports__);
|
|
153
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
154
|
+
/* harmony export */ RuntimeLoader: () => (/* binding */ RuntimeLoader)
|
|
155
|
+
/* harmony export */ });
|
|
156
|
+
/* harmony import */ var _rive_advanced_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4);
|
|
157
|
+
/* harmony import */ var package_json__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5);
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
// Runtime singleton; use getInstance to provide a callback that returns the
|
|
161
|
+
// Rive runtime
|
|
162
|
+
var RuntimeLoader = /** @class */ (function () {
|
|
163
|
+
// Class is never instantiated
|
|
164
|
+
function RuntimeLoader() {
|
|
165
|
+
}
|
|
166
|
+
// Loads the runtime
|
|
167
|
+
RuntimeLoader.loadRuntime = function () {
|
|
168
|
+
if (RuntimeLoader.enablePerfMarks)
|
|
169
|
+
performance.mark('rive:wasm-init:start');
|
|
170
|
+
_rive_advanced_mjs__WEBPACK_IMPORTED_MODULE_0__["default"]({
|
|
171
|
+
// Loads Wasm bundle
|
|
172
|
+
locateFile: function () { return RuntimeLoader.wasmURL; },
|
|
173
|
+
})
|
|
174
|
+
.then(function (rive) {
|
|
175
|
+
var _a;
|
|
176
|
+
if (RuntimeLoader.enablePerfMarks) {
|
|
177
|
+
performance.mark('rive:wasm-init:end');
|
|
178
|
+
performance.measure('rive:wasm-init', 'rive:wasm-init:start', 'rive:wasm-init:end');
|
|
179
|
+
}
|
|
180
|
+
RuntimeLoader.runtime = rive;
|
|
181
|
+
// Fire all the callbacks
|
|
182
|
+
while (RuntimeLoader.callBackQueue.length > 0) {
|
|
183
|
+
(_a = RuntimeLoader.callBackQueue.shift()) === null || _a === void 0 ? void 0 : _a(RuntimeLoader.runtime);
|
|
184
|
+
}
|
|
185
|
+
})
|
|
186
|
+
.catch(function (error) {
|
|
187
|
+
// Capture specific error details
|
|
188
|
+
var errorDetails = {
|
|
189
|
+
message: (error === null || error === void 0 ? void 0 : error.message) || "Unknown error",
|
|
190
|
+
type: (error === null || error === void 0 ? void 0 : error.name) || "Error",
|
|
191
|
+
// Some browsers may provide additional WebAssembly-specific details
|
|
192
|
+
wasmError: error instanceof WebAssembly.CompileError ||
|
|
193
|
+
error instanceof WebAssembly.RuntimeError,
|
|
194
|
+
originalError: error,
|
|
195
|
+
};
|
|
196
|
+
// Log detailed error for debugging
|
|
197
|
+
console.debug("Rive WASM load error details:", errorDetails);
|
|
198
|
+
// In case unpkg fails, or the wasm was not supported, we try to load the fallback module from jsdelivr.
|
|
199
|
+
// This `rive_fallback.wasm` is compiled to support older architecture.
|
|
200
|
+
// TODO: (Gordon): preemptively test browser support and load the correct wasm file. Then use jsdelvr only if unpkg fails.
|
|
201
|
+
var backupJsdelivrUrl = "https://cdn.jsdelivr.net/npm/".concat(package_json__WEBPACK_IMPORTED_MODULE_1__.name, "@").concat(package_json__WEBPACK_IMPORTED_MODULE_1__.version, "/rive_fallback.wasm");
|
|
202
|
+
if (RuntimeLoader.wasmURL.toLowerCase() !== backupJsdelivrUrl) {
|
|
203
|
+
console.warn("Failed to load WASM from ".concat(RuntimeLoader.wasmURL, " (").concat(errorDetails.message, "), trying jsdelivr as a backup"));
|
|
204
|
+
RuntimeLoader.setWasmUrl(backupJsdelivrUrl);
|
|
205
|
+
RuntimeLoader.loadRuntime();
|
|
206
|
+
}
|
|
207
|
+
else {
|
|
208
|
+
var errorMessage = [
|
|
209
|
+
"Could not load Rive WASM file from ".concat(RuntimeLoader.wasmURL, " or ").concat(backupJsdelivrUrl, "."),
|
|
210
|
+
"Possible reasons:",
|
|
211
|
+
"- Network connection is down",
|
|
212
|
+
"- WebAssembly is not supported in this environment",
|
|
213
|
+
"- The WASM file is corrupted or incompatible",
|
|
214
|
+
"\nError details:",
|
|
215
|
+
"- Type: ".concat(errorDetails.type),
|
|
216
|
+
"- Message: ".concat(errorDetails.message),
|
|
217
|
+
"- WebAssembly-specific error: ".concat(errorDetails.wasmError),
|
|
218
|
+
"\nTo resolve, you may need to:",
|
|
219
|
+
"1. Check your network connection",
|
|
220
|
+
"2. Set a new WASM source via RuntimeLoader.setWasmUrl()",
|
|
221
|
+
"3. Call RuntimeLoader.loadRuntime() again",
|
|
222
|
+
].join("\n");
|
|
223
|
+
console.error(errorMessage);
|
|
224
|
+
}
|
|
225
|
+
});
|
|
226
|
+
};
|
|
227
|
+
// Provides a runtime instance via a callback
|
|
228
|
+
RuntimeLoader.getInstance = function (callback) {
|
|
229
|
+
// If it's not loading, start loading runtime
|
|
230
|
+
if (!RuntimeLoader.isLoading) {
|
|
231
|
+
RuntimeLoader.isLoading = true;
|
|
232
|
+
RuntimeLoader.loadRuntime();
|
|
233
|
+
}
|
|
234
|
+
if (!RuntimeLoader.runtime) {
|
|
235
|
+
RuntimeLoader.callBackQueue.push(callback);
|
|
236
|
+
}
|
|
237
|
+
else {
|
|
238
|
+
callback(RuntimeLoader.runtime);
|
|
239
|
+
}
|
|
240
|
+
};
|
|
241
|
+
// Provides a runtime instance via a promise
|
|
242
|
+
RuntimeLoader.awaitInstance = function () {
|
|
243
|
+
return new Promise(function (resolve) {
|
|
244
|
+
return RuntimeLoader.getInstance(function (rive) { return resolve(rive); });
|
|
245
|
+
});
|
|
246
|
+
};
|
|
247
|
+
// Manually sets the wasm url
|
|
248
|
+
RuntimeLoader.setWasmUrl = function (url) {
|
|
249
|
+
RuntimeLoader.wasmURL = url;
|
|
250
|
+
};
|
|
251
|
+
// Gets the current wasm url
|
|
252
|
+
RuntimeLoader.getWasmUrl = function () {
|
|
253
|
+
return RuntimeLoader.wasmURL;
|
|
254
|
+
};
|
|
255
|
+
// Flag to indicate that loading has started/completed
|
|
256
|
+
RuntimeLoader.isLoading = false;
|
|
257
|
+
// List of callbacks for the runtime that come in while loading
|
|
258
|
+
RuntimeLoader.callBackQueue = [];
|
|
259
|
+
// Path to the Wasm file; default path works for testing only;
|
|
260
|
+
// if embedded wasm is used then this is never used.
|
|
261
|
+
RuntimeLoader.wasmURL = "https://unpkg.com/".concat(package_json__WEBPACK_IMPORTED_MODULE_1__.name, "@").concat(package_json__WEBPACK_IMPORTED_MODULE_1__.version, "/rive.wasm");
|
|
262
|
+
/**
|
|
263
|
+
* When true, performance.mark / performance.measure entries are emitted for
|
|
264
|
+
* WASM initialization.
|
|
265
|
+
*/
|
|
266
|
+
RuntimeLoader.enablePerfMarks = false;
|
|
267
|
+
return RuntimeLoader;
|
|
268
|
+
}());
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
/***/ }),
|
|
273
|
+
/* 4 */
|
|
16
274
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
17
275
|
|
|
18
276
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -92,64 +350,70 @@ const ja = l.onRuntimeInitialized;
|
|
|
92
350
|
l.onRuntimeInitialized = function() {
|
|
93
351
|
ja && ja();
|
|
94
352
|
let a = l.decodeAudio;
|
|
95
|
-
l.decodeAudio = function(
|
|
96
|
-
|
|
97
|
-
f
|
|
353
|
+
l.decodeAudio = function(f, g) {
|
|
354
|
+
f = a(f);
|
|
355
|
+
g(f);
|
|
98
356
|
};
|
|
99
357
|
let b = l.decodeFont;
|
|
100
|
-
l.decodeFont = function(
|
|
101
|
-
|
|
102
|
-
f
|
|
358
|
+
l.decodeFont = function(f, g) {
|
|
359
|
+
f = b(f);
|
|
360
|
+
g(f);
|
|
103
361
|
};
|
|
104
|
-
|
|
105
|
-
l.
|
|
106
|
-
|
|
107
|
-
|
|
362
|
+
let c = l.setFallbackFontCb;
|
|
363
|
+
l.setFallbackFontCallback = "function" === typeof c ? function(f) {
|
|
364
|
+
c(f);
|
|
365
|
+
} : function() {
|
|
366
|
+
console.warn("Module.setFallbackFontCallback called, but text support is not enabled in this build.");
|
|
108
367
|
};
|
|
109
|
-
|
|
368
|
+
const d = l.FileAssetLoader;
|
|
369
|
+
l.ptrToAsset = f => {
|
|
370
|
+
let g = l.ptrToFileAsset(f);
|
|
371
|
+
return g.isImage ? l.ptrToImageAsset(f) : g.isFont ? l.ptrToFontAsset(f) : g.isAudio ? l.ptrToAudioAsset(f) : g;
|
|
372
|
+
};
|
|
373
|
+
l.CustomFileAssetLoader = d.extend("CustomFileAssetLoader", {__construct:function({loadContents:f}) {
|
|
110
374
|
this.__parent.__construct.call(this);
|
|
111
|
-
this.yb =
|
|
112
|
-
}, loadContents:function(
|
|
113
|
-
|
|
114
|
-
return this.yb(
|
|
375
|
+
this.yb = f;
|
|
376
|
+
}, loadContents:function(f, g) {
|
|
377
|
+
f = l.ptrToAsset(f);
|
|
378
|
+
return this.yb(f, g);
|
|
115
379
|
},});
|
|
116
|
-
l.CDNFileAssetLoader =
|
|
380
|
+
l.CDNFileAssetLoader = d.extend("CDNFileAssetLoader", {__construct:function() {
|
|
117
381
|
this.__parent.__construct.call(this);
|
|
118
|
-
}, loadContents:function(
|
|
119
|
-
let
|
|
120
|
-
|
|
121
|
-
if ("" ===
|
|
382
|
+
}, loadContents:function(f) {
|
|
383
|
+
let g = l.ptrToAsset(f);
|
|
384
|
+
f = g.cdnUuid;
|
|
385
|
+
if ("" === f) {
|
|
122
386
|
return !1;
|
|
123
387
|
}
|
|
124
|
-
(function(
|
|
125
|
-
var
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
4 ==
|
|
388
|
+
(function(k, m) {
|
|
389
|
+
var p = new XMLHttpRequest();
|
|
390
|
+
p.responseType = "arraybuffer";
|
|
391
|
+
p.onreadystatechange = function() {
|
|
392
|
+
4 == p.readyState && 200 == p.status && m(p);
|
|
129
393
|
};
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
})(
|
|
133
|
-
|
|
394
|
+
p.open("GET", k, !0);
|
|
395
|
+
p.send(null);
|
|
396
|
+
})(g.cdnBaseUrl + "/" + f, k => {
|
|
397
|
+
g.decode(new Uint8Array(k.response));
|
|
134
398
|
});
|
|
135
399
|
return !0;
|
|
136
400
|
},});
|
|
137
|
-
l.FallbackFileAssetLoader =
|
|
401
|
+
l.FallbackFileAssetLoader = d.extend("FallbackFileAssetLoader", {__construct:function() {
|
|
138
402
|
this.__parent.__construct.call(this);
|
|
139
403
|
this.eb = [];
|
|
140
|
-
}, addLoader:function(
|
|
141
|
-
this.eb.push(
|
|
142
|
-
}, loadContents:function(
|
|
143
|
-
for (let
|
|
144
|
-
if (
|
|
404
|
+
}, addLoader:function(f) {
|
|
405
|
+
this.eb.push(f);
|
|
406
|
+
}, loadContents:function(f, g) {
|
|
407
|
+
for (let k of this.eb) {
|
|
408
|
+
if (k.loadContents(f, g)) {
|
|
145
409
|
return !0;
|
|
146
410
|
}
|
|
147
411
|
}
|
|
148
412
|
return !1;
|
|
149
413
|
},});
|
|
150
|
-
let
|
|
151
|
-
l.computeAlignment = function(
|
|
152
|
-
return
|
|
414
|
+
let e = l.computeAlignment;
|
|
415
|
+
l.computeAlignment = function(f, g, k, m, p = 1.0) {
|
|
416
|
+
return e.call(this, f, g, k, m, p);
|
|
153
417
|
};
|
|
154
418
|
};
|
|
155
419
|
const ka = l.onRuntimeInitialized;
|
|
@@ -214,7 +478,7 @@ l.onRuntimeInitialized = function() {
|
|
|
214
478
|
}
|
|
215
479
|
v = Math.min(v, t);
|
|
216
480
|
v = Math.min(z, t);
|
|
217
|
-
F.sort((ha,
|
|
481
|
+
F.sort((ha, zb) => zb.Ha - ha.Ha);
|
|
218
482
|
D = new l.DynamicRectanizer(t);
|
|
219
483
|
for (N = 0; N < F.length;) {
|
|
220
484
|
D.reset(v, z);
|
|
@@ -246,8 +510,8 @@ l.onRuntimeInitialized = function() {
|
|
|
246
510
|
ha.tx = L.oa;
|
|
247
511
|
ha.ty = L.pa;
|
|
248
512
|
e.transform(ha);
|
|
249
|
-
for (const
|
|
250
|
-
|
|
513
|
+
for (const zb of L.R) {
|
|
514
|
+
zb();
|
|
251
515
|
}
|
|
252
516
|
e.restoreClipRect();
|
|
253
517
|
L.R = [];
|
|
@@ -393,7 +657,7 @@ function Ra(a, b) {
|
|
|
393
657
|
return Qa(c, a, b);
|
|
394
658
|
}));
|
|
395
659
|
}
|
|
396
|
-
var Sa, Ta, Xa = {
|
|
660
|
+
var Sa, Ta, Xa = {729298:(a, b, c, d, e) => {
|
|
397
661
|
if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
|
|
398
662
|
return 0;
|
|
399
663
|
}
|
|
@@ -456,11 +720,11 @@ var Sa, Ta, Xa = {728434:(a, b, c, d, e) => {
|
|
|
456
720
|
}
|
|
457
721
|
window.h.Ca += 1;
|
|
458
722
|
return 1;
|
|
459
|
-
},
|
|
723
|
+
}, 731476:() => {
|
|
460
724
|
"undefined" !== typeof window.h && (window.h.Ra.map(function(a) {
|
|
461
725
|
document.removeEventListener(a, window.h.unlock, !0);
|
|
462
726
|
}), --window.h.Ca, 0 === window.h.Ca && delete window.h);
|
|
463
|
-
},
|
|
727
|
+
}, 731780:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 731884:() => {
|
|
464
728
|
try {
|
|
465
729
|
var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
|
|
466
730
|
a.close();
|
|
@@ -468,7 +732,7 @@ var Sa, Ta, Xa = {728434:(a, b, c, d, e) => {
|
|
|
468
732
|
} catch (c) {
|
|
469
733
|
return 0;
|
|
470
734
|
}
|
|
471
|
-
},
|
|
735
|
+
}, 732055:(a, b, c, d, e, f) => {
|
|
472
736
|
if ("undefined" === typeof window.h) {
|
|
473
737
|
return -1;
|
|
474
738
|
}
|
|
@@ -514,7 +778,7 @@ var Sa, Ta, Xa = {728434:(a, b, c, d, e) => {
|
|
|
514
778
|
a == window.h.H.Aa && g.W.connect(g.J.destination);
|
|
515
779
|
g.kb = f;
|
|
516
780
|
return window.h.fc(g);
|
|
517
|
-
},
|
|
781
|
+
}, 734932:a => window.h.ra(a).J.sampleRate, 735005:a => {
|
|
518
782
|
a = window.h.ra(a);
|
|
519
783
|
void 0 !== a.W && (a.W.onaudioprocess = function() {
|
|
520
784
|
}, a.W.disconnect(), a.W = void 0);
|
|
@@ -522,13 +786,13 @@ var Sa, Ta, Xa = {728434:(a, b, c, d, e) => {
|
|
|
522
786
|
a.J.close();
|
|
523
787
|
a.J = void 0;
|
|
524
788
|
a.kb = void 0;
|
|
525
|
-
},
|
|
789
|
+
}, 735405:a => {
|
|
526
790
|
window.h.ub(a);
|
|
527
|
-
},
|
|
791
|
+
}, 735455:a => {
|
|
528
792
|
a = window.h.ra(a);
|
|
529
793
|
a.J.resume();
|
|
530
794
|
a.state = window.h.ga.qb;
|
|
531
|
-
},
|
|
795
|
+
}, 735594:a => {
|
|
532
796
|
a = window.h.ra(a);
|
|
533
797
|
a.J.suspend();
|
|
534
798
|
a.state = window.h.ga.stopped;
|
|
@@ -920,7 +1184,7 @@ var G = {M:null, S() {
|
|
|
920
1184
|
}, ib(a, b, c, d) {
|
|
921
1185
|
G.m.write(a, b, 0, d, c, !1);
|
|
922
1186
|
return 0;
|
|
923
|
-
},},},
|
|
1187
|
+
},},}, yb = (a, b) => {
|
|
924
1188
|
var c = 0;
|
|
925
1189
|
a && (c |= 365);
|
|
926
1190
|
b && (c |= 146);
|
|
@@ -1248,7 +1512,7 @@ function Zb(a, b, c) {
|
|
|
1248
1512
|
var $b;
|
|
1249
1513
|
function ac(a, b, c) {
|
|
1250
1514
|
a = bb("/dev/" + a);
|
|
1251
|
-
var d =
|
|
1515
|
+
var d = yb(!!b, !!c);
|
|
1252
1516
|
bc ||= 64;
|
|
1253
1517
|
var e = bc++ << 8 | 0;
|
|
1254
1518
|
ob(e, {open(f) {
|
|
@@ -1286,12 +1550,12 @@ function ac(a, b, c) {
|
|
|
1286
1550
|
}});
|
|
1287
1551
|
Vb(a, d, e);
|
|
1288
1552
|
}
|
|
1289
|
-
var bc, cc = {}, Yb, $a = void 0, dc = (a, b) => Object.defineProperty(b, "name", {value:a}), ec = [], fc = [], H,
|
|
1553
|
+
var bc, cc = {}, Yb, $a = void 0, dc = (a, b) => Object.defineProperty(b, "name", {value:a}), ec = [], fc = [], H, I = a => {
|
|
1290
1554
|
if (!a) {
|
|
1291
1555
|
throw new H("Cannot use deleted val. handle = " + a);
|
|
1292
1556
|
}
|
|
1293
1557
|
return fc[a];
|
|
1294
|
-
},
|
|
1558
|
+
}, gc = a => {
|
|
1295
1559
|
switch(a) {
|
|
1296
1560
|
case void 0:
|
|
1297
1561
|
return 2;
|
|
@@ -1307,7 +1571,7 @@ var bc, cc = {}, Yb, $a = void 0, dc = (a, b) => Object.defineProperty(b, "name"
|
|
|
1307
1571
|
fc[b + 1] = 1;
|
|
1308
1572
|
return b;
|
|
1309
1573
|
}
|
|
1310
|
-
},
|
|
1574
|
+
}, hc = a => {
|
|
1311
1575
|
var b = Error, c = dc(a, function(d) {
|
|
1312
1576
|
this.name = a;
|
|
1313
1577
|
this.message = d;
|
|
@@ -1320,18 +1584,18 @@ var bc, cc = {}, Yb, $a = void 0, dc = (a, b) => Object.defineProperty(b, "name"
|
|
|
1320
1584
|
return void 0 === this.message ? this.name : `${this.name}: ${this.message}`;
|
|
1321
1585
|
};
|
|
1322
1586
|
return c;
|
|
1323
|
-
},
|
|
1587
|
+
}, ic, jc, J = a => {
|
|
1324
1588
|
for (var b = ""; u[a];) {
|
|
1325
|
-
b +=
|
|
1589
|
+
b += jc[u[a++]];
|
|
1326
1590
|
}
|
|
1327
1591
|
return b;
|
|
1328
|
-
},
|
|
1329
|
-
for (;
|
|
1330
|
-
var a =
|
|
1592
|
+
}, kc = [], lc = () => {
|
|
1593
|
+
for (; kc.length;) {
|
|
1594
|
+
var a = kc.pop();
|
|
1331
1595
|
a.g.fa = !1;
|
|
1332
1596
|
a["delete"]();
|
|
1333
1597
|
}
|
|
1334
|
-
},
|
|
1598
|
+
}, mc, nc = {}, oc = (a, b) => {
|
|
1335
1599
|
if (void 0 === b) {
|
|
1336
1600
|
throw new H("ptr should not be undefined");
|
|
1337
1601
|
}
|
|
@@ -1339,116 +1603,116 @@ var bc, cc = {}, Yb, $a = void 0, dc = (a, b) => Object.defineProperty(b, "name"
|
|
|
1339
1603
|
b = a.ma(b), a = a.B;
|
|
1340
1604
|
}
|
|
1341
1605
|
return b;
|
|
1342
|
-
},
|
|
1343
|
-
a =
|
|
1344
|
-
var b =
|
|
1345
|
-
|
|
1606
|
+
}, pc = {}, sc = a => {
|
|
1607
|
+
a = qc(a);
|
|
1608
|
+
var b = J(a);
|
|
1609
|
+
rc(a);
|
|
1346
1610
|
return b;
|
|
1347
|
-
},
|
|
1348
|
-
var c =
|
|
1611
|
+
}, tc = (a, b) => {
|
|
1612
|
+
var c = pc[a];
|
|
1349
1613
|
if (void 0 === c) {
|
|
1350
|
-
throw a = `${b} has unknown type ${
|
|
1614
|
+
throw a = `${b} has unknown type ${sc(a)}`, new H(a);
|
|
1351
1615
|
}
|
|
1352
1616
|
return c;
|
|
1353
|
-
},
|
|
1354
|
-
},
|
|
1617
|
+
}, uc = () => {
|
|
1618
|
+
}, vc = !1, wc = (a, b, c) => {
|
|
1355
1619
|
if (b === c) {
|
|
1356
1620
|
return a;
|
|
1357
1621
|
}
|
|
1358
1622
|
if (void 0 === c.B) {
|
|
1359
1623
|
return null;
|
|
1360
1624
|
}
|
|
1361
|
-
a =
|
|
1625
|
+
a = wc(a, b, c.B);
|
|
1362
1626
|
return null === a ? null : c.Eb(a);
|
|
1363
|
-
},
|
|
1364
|
-
b =
|
|
1365
|
-
return
|
|
1366
|
-
},
|
|
1627
|
+
}, xc = {}, yc = (a, b) => {
|
|
1628
|
+
b = oc(a, b);
|
|
1629
|
+
return nc[b];
|
|
1630
|
+
}, zc, Bc = (a, b) => {
|
|
1367
1631
|
if (!b.u || !b.o) {
|
|
1368
|
-
throw new
|
|
1632
|
+
throw new zc("makeClassHandle requires ptr and ptrType");
|
|
1369
1633
|
}
|
|
1370
1634
|
if (!!b.I !== !!b.D) {
|
|
1371
|
-
throw new
|
|
1635
|
+
throw new zc("Both smartPtrType and smartPtr must be specified");
|
|
1372
1636
|
}
|
|
1373
1637
|
b.count = {value:1};
|
|
1374
|
-
return
|
|
1375
|
-
},
|
|
1638
|
+
return Ac(Object.create(a, {g:{value:b, writable:!0,},}));
|
|
1639
|
+
}, Ac = a => {
|
|
1376
1640
|
if ("undefined" === typeof FinalizationRegistry) {
|
|
1377
|
-
return
|
|
1641
|
+
return Ac = b => b, a;
|
|
1378
1642
|
}
|
|
1379
|
-
|
|
1643
|
+
vc = new FinalizationRegistry(b => {
|
|
1380
1644
|
b = b.g;
|
|
1381
1645
|
--b.count.value;
|
|
1382
1646
|
0 === b.count.value && (b.D ? b.I.N(b.D) : b.u.i.N(b.o));
|
|
1383
1647
|
});
|
|
1384
|
-
|
|
1648
|
+
Ac = b => {
|
|
1385
1649
|
var c = b.g;
|
|
1386
|
-
c.D &&
|
|
1650
|
+
c.D && vc.register(b, {g:c}, b);
|
|
1387
1651
|
return b;
|
|
1388
1652
|
};
|
|
1389
|
-
|
|
1390
|
-
|
|
1653
|
+
uc = b => {
|
|
1654
|
+
vc.unregister(b);
|
|
1391
1655
|
};
|
|
1392
|
-
return
|
|
1393
|
-
},
|
|
1656
|
+
return Ac(a);
|
|
1657
|
+
}, Cc = {}, Dc = a => {
|
|
1394
1658
|
for (; a.length;) {
|
|
1395
1659
|
var b = a.pop();
|
|
1396
1660
|
a.pop()(b);
|
|
1397
1661
|
}
|
|
1398
1662
|
};
|
|
1399
|
-
function
|
|
1663
|
+
function Ec(a) {
|
|
1400
1664
|
return this.fromWireType(A[a >> 2]);
|
|
1401
1665
|
}
|
|
1402
|
-
var
|
|
1666
|
+
var Fc = {}, Gc = {}, K = (a, b, c) => {
|
|
1403
1667
|
function d(k) {
|
|
1404
1668
|
k = c(k);
|
|
1405
1669
|
if (k.length !== a.length) {
|
|
1406
|
-
throw new
|
|
1670
|
+
throw new zc("Mismatched type converter count");
|
|
1407
1671
|
}
|
|
1408
1672
|
for (var m = 0; m < a.length; ++m) {
|
|
1409
|
-
|
|
1673
|
+
Hc(a[m], k[m]);
|
|
1410
1674
|
}
|
|
1411
1675
|
}
|
|
1412
1676
|
a.forEach(function(k) {
|
|
1413
|
-
|
|
1677
|
+
Gc[k] = b;
|
|
1414
1678
|
});
|
|
1415
1679
|
var e = Array(b.length), f = [], g = 0;
|
|
1416
1680
|
b.forEach((k, m) => {
|
|
1417
|
-
|
|
1418
|
-
e[m] =
|
|
1681
|
+
pc.hasOwnProperty(k) ? e[m] = pc[k] : (f.push(k), Fc.hasOwnProperty(k) || (Fc[k] = []), Fc[k].push(() => {
|
|
1682
|
+
e[m] = pc[k];
|
|
1419
1683
|
++g;
|
|
1420
1684
|
g === f.length && d(e);
|
|
1421
1685
|
}));
|
|
1422
1686
|
});
|
|
1423
1687
|
0 === f.length && d(e);
|
|
1424
1688
|
};
|
|
1425
|
-
function
|
|
1689
|
+
function Ic(a, b, c = {}) {
|
|
1426
1690
|
var d = b.name;
|
|
1427
1691
|
if (!a) {
|
|
1428
1692
|
throw new H(`type "${d}" must have a positive integer typeid pointer`);
|
|
1429
1693
|
}
|
|
1430
|
-
if (
|
|
1694
|
+
if (pc.hasOwnProperty(a)) {
|
|
1431
1695
|
if (c.Ob) {
|
|
1432
1696
|
return;
|
|
1433
1697
|
}
|
|
1434
1698
|
throw new H(`Cannot register type '${d}' twice`);
|
|
1435
1699
|
}
|
|
1436
|
-
|
|
1437
|
-
delete
|
|
1438
|
-
|
|
1700
|
+
pc[a] = b;
|
|
1701
|
+
delete Gc[a];
|
|
1702
|
+
Fc.hasOwnProperty(a) && (b = Fc[a], delete Fc[a], b.forEach(e => e()));
|
|
1439
1703
|
}
|
|
1440
|
-
function
|
|
1704
|
+
function Hc(a, b, c = {}) {
|
|
1441
1705
|
if (!("argPackAdvance" in b)) {
|
|
1442
1706
|
throw new TypeError("registerType registeredInstance requires argPackAdvance");
|
|
1443
1707
|
}
|
|
1444
|
-
return
|
|
1708
|
+
return Ic(a, b, c);
|
|
1445
1709
|
}
|
|
1446
|
-
var
|
|
1710
|
+
var Jc = a => {
|
|
1447
1711
|
throw new H(a.g.u.i.name + " instance already deleted");
|
|
1448
1712
|
};
|
|
1449
|
-
function
|
|
1713
|
+
function Kc() {
|
|
1450
1714
|
}
|
|
1451
|
-
var
|
|
1715
|
+
var Lc = (a, b, c) => {
|
|
1452
1716
|
if (void 0 === a[b].A) {
|
|
1453
1717
|
var d = a[b];
|
|
1454
1718
|
a[b] = function(...e) {
|
|
@@ -1460,12 +1724,12 @@ var Mc = (a, b, c) => {
|
|
|
1460
1724
|
a[b].A = [];
|
|
1461
1725
|
a[b].A[d.da] = d;
|
|
1462
1726
|
}
|
|
1463
|
-
},
|
|
1727
|
+
}, Mc = (a, b, c) => {
|
|
1464
1728
|
if (l.hasOwnProperty(a)) {
|
|
1465
1729
|
if (void 0 === c || void 0 !== l[a].A && void 0 !== l[a].A[c]) {
|
|
1466
1730
|
throw new H(`Cannot register public name '${a}' twice`);
|
|
1467
1731
|
}
|
|
1468
|
-
|
|
1732
|
+
Lc(l, a, a);
|
|
1469
1733
|
if (l.hasOwnProperty(c)) {
|
|
1470
1734
|
throw new H(`Cannot register multiple overloads of a function with the same number of arguments (${c})!`);
|
|
1471
1735
|
}
|
|
@@ -1473,7 +1737,7 @@ var Mc = (a, b, c) => {
|
|
|
1473
1737
|
} else {
|
|
1474
1738
|
l[a] = b, void 0 !== c && (l[a].Dc = c);
|
|
1475
1739
|
}
|
|
1476
|
-
},
|
|
1740
|
+
}, Nc = a => {
|
|
1477
1741
|
if (void 0 === a) {
|
|
1478
1742
|
return "_unknown";
|
|
1479
1743
|
}
|
|
@@ -1481,7 +1745,7 @@ var Mc = (a, b, c) => {
|
|
|
1481
1745
|
var b = a.charCodeAt(0);
|
|
1482
1746
|
return 48 <= b && 57 >= b ? `_${a}` : a;
|
|
1483
1747
|
};
|
|
1484
|
-
function
|
|
1748
|
+
function Oc(a, b, c, d, e, f, g, k) {
|
|
1485
1749
|
this.name = a;
|
|
1486
1750
|
this.constructor = b;
|
|
1487
1751
|
this.L = c;
|
|
@@ -1492,7 +1756,7 @@ function Pc(a, b, c, d, e, f, g, k) {
|
|
|
1492
1756
|
this.Eb = k;
|
|
1493
1757
|
this.lb = [];
|
|
1494
1758
|
}
|
|
1495
|
-
var
|
|
1759
|
+
var Pc = (a, b, c) => {
|
|
1496
1760
|
for (; b !== c;) {
|
|
1497
1761
|
if (!b.ma) {
|
|
1498
1762
|
throw new H(`Expected null or instance of ${c.name}, got an instance of ${b.name}`);
|
|
@@ -1502,7 +1766,7 @@ var Qc = (a, b, c) => {
|
|
|
1502
1766
|
}
|
|
1503
1767
|
return a;
|
|
1504
1768
|
};
|
|
1505
|
-
function
|
|
1769
|
+
function Qc(a, b) {
|
|
1506
1770
|
if (null === b) {
|
|
1507
1771
|
if (this.La) {
|
|
1508
1772
|
throw new H(`null is not a valid ${this.name}`);
|
|
@@ -1510,14 +1774,14 @@ function Rc(a, b) {
|
|
|
1510
1774
|
return 0;
|
|
1511
1775
|
}
|
|
1512
1776
|
if (!b.g) {
|
|
1513
|
-
throw new H(`Cannot pass "${
|
|
1777
|
+
throw new H(`Cannot pass "${Rc(b)}" as a ${this.name}`);
|
|
1514
1778
|
}
|
|
1515
1779
|
if (!b.g.o) {
|
|
1516
1780
|
throw new H(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
1517
1781
|
}
|
|
1518
|
-
return
|
|
1782
|
+
return Pc(b.g.o, b.g.u.i, this.i);
|
|
1519
1783
|
}
|
|
1520
|
-
function
|
|
1784
|
+
function Sc(a, b) {
|
|
1521
1785
|
if (null === b) {
|
|
1522
1786
|
if (this.La) {
|
|
1523
1787
|
throw new H(`null is not a valid ${this.name}`);
|
|
@@ -1530,7 +1794,7 @@ function Tc(a, b) {
|
|
|
1530
1794
|
return 0;
|
|
1531
1795
|
}
|
|
1532
1796
|
if (!b || !b.g) {
|
|
1533
|
-
throw new H(`Cannot pass "${
|
|
1797
|
+
throw new H(`Cannot pass "${Rc(b)}" as a ${this.name}`);
|
|
1534
1798
|
}
|
|
1535
1799
|
if (!b.g.o) {
|
|
1536
1800
|
throw new H(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
@@ -1538,7 +1802,7 @@ function Tc(a, b) {
|
|
|
1538
1802
|
if (!this.ta && b.g.u.ta) {
|
|
1539
1803
|
throw new H(`Cannot convert argument of type ${b.g.I ? b.g.I.name : b.g.u.name} to parameter type ${this.name}`);
|
|
1540
1804
|
}
|
|
1541
|
-
c =
|
|
1805
|
+
c = Pc(b.g.o, b.g.u.i, this.i);
|
|
1542
1806
|
if (this.ua) {
|
|
1543
1807
|
if (void 0 === b.g.D) {
|
|
1544
1808
|
throw new H("Passing raw pointer to smart pointer is illegal");
|
|
@@ -1559,7 +1823,7 @@ function Tc(a, b) {
|
|
|
1559
1823
|
c = b.g.D;
|
|
1560
1824
|
} else {
|
|
1561
1825
|
var d = b.clone();
|
|
1562
|
-
c = this.Xb(c,
|
|
1826
|
+
c = this.Xb(c, gc(() => d["delete"]()));
|
|
1563
1827
|
null !== a && a.push(this.N, c);
|
|
1564
1828
|
}
|
|
1565
1829
|
break;
|
|
@@ -1569,7 +1833,7 @@ function Tc(a, b) {
|
|
|
1569
1833
|
}
|
|
1570
1834
|
return c;
|
|
1571
1835
|
}
|
|
1572
|
-
function
|
|
1836
|
+
function Tc(a, b) {
|
|
1573
1837
|
if (null === b) {
|
|
1574
1838
|
if (this.La) {
|
|
1575
1839
|
throw new H(`null is not a valid ${this.name}`);
|
|
@@ -1577,7 +1841,7 @@ function Uc(a, b) {
|
|
|
1577
1841
|
return 0;
|
|
1578
1842
|
}
|
|
1579
1843
|
if (!b.g) {
|
|
1580
|
-
throw new H(`Cannot pass "${
|
|
1844
|
+
throw new H(`Cannot pass "${Rc(b)}" as a ${this.name}`);
|
|
1581
1845
|
}
|
|
1582
1846
|
if (!b.g.o) {
|
|
1583
1847
|
throw new H(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
@@ -1585,9 +1849,9 @@ function Uc(a, b) {
|
|
|
1585
1849
|
if (b.g.u.ta) {
|
|
1586
1850
|
throw new H(`Cannot convert argument of type ${b.g.u.name} to parameter type ${this.name}`);
|
|
1587
1851
|
}
|
|
1588
|
-
return
|
|
1852
|
+
return Pc(b.g.o, b.g.u.i, this.i);
|
|
1589
1853
|
}
|
|
1590
|
-
function
|
|
1854
|
+
function Uc(a, b, c, d, e, f, g, k, m, p, r) {
|
|
1591
1855
|
this.name = a;
|
|
1592
1856
|
this.i = b;
|
|
1593
1857
|
this.La = c;
|
|
@@ -1599,36 +1863,36 @@ function Vc(a, b, c, d, e, f, g, k, m, p, r) {
|
|
|
1599
1863
|
this.Na = m;
|
|
1600
1864
|
this.Xb = p;
|
|
1601
1865
|
this.N = r;
|
|
1602
|
-
e || void 0 !== b.B ? this.toWireType =
|
|
1866
|
+
e || void 0 !== b.B ? this.toWireType = Sc : (this.toWireType = d ? Qc : Tc, this.K = null);
|
|
1603
1867
|
}
|
|
1604
|
-
var
|
|
1868
|
+
var Vc = (a, b, c) => {
|
|
1605
1869
|
if (!l.hasOwnProperty(a)) {
|
|
1606
|
-
throw new
|
|
1870
|
+
throw new zc("Replacing nonexistent public symbol");
|
|
1607
1871
|
}
|
|
1608
1872
|
void 0 !== l[a].A && void 0 !== c ? l[a].A[c] = b : (l[a] = b, l[a].da = c);
|
|
1609
|
-
},
|
|
1610
|
-
var b =
|
|
1611
|
-
b || (a >=
|
|
1873
|
+
}, Wc = [], Xc, P = a => {
|
|
1874
|
+
var b = Wc[a];
|
|
1875
|
+
b || (a >= Wc.length && (Wc.length = a + 1), Wc[a] = b = Xc.get(a));
|
|
1612
1876
|
return b;
|
|
1613
|
-
},
|
|
1614
|
-
a.includes("j") ? (a = a.replace(/p/g, "i"), b = (0,l["dynCall_" + a])(b, ...c)) : b =
|
|
1877
|
+
}, Yc = (a, b, c = []) => {
|
|
1878
|
+
a.includes("j") ? (a = a.replace(/p/g, "i"), b = (0,l["dynCall_" + a])(b, ...c)) : b = P(b)(...c);
|
|
1615
1879
|
return b;
|
|
1616
|
-
},
|
|
1617
|
-
a =
|
|
1618
|
-
var c = a.includes("j") ?
|
|
1880
|
+
}, Zc = (a, b) => (...c) => Yc(a, b, c), Q = (a, b) => {
|
|
1881
|
+
a = J(a);
|
|
1882
|
+
var c = a.includes("j") ? Zc(a, b) : P(b);
|
|
1619
1883
|
if ("function" != typeof c) {
|
|
1620
1884
|
throw new H(`unknown function pointer with signature ${a}: ${b}`);
|
|
1621
1885
|
}
|
|
1622
1886
|
return c;
|
|
1623
|
-
},
|
|
1887
|
+
}, $c, ad = (a, b) => {
|
|
1624
1888
|
function c(f) {
|
|
1625
|
-
e[f] ||
|
|
1889
|
+
e[f] || pc[f] || (Gc[f] ? Gc[f].forEach(c) : (d.push(f), e[f] = !0));
|
|
1626
1890
|
}
|
|
1627
1891
|
var d = [], e = {};
|
|
1628
1892
|
b.forEach(c);
|
|
1629
|
-
throw new
|
|
1893
|
+
throw new $c(`${a}: ` + d.map(sc).join([", "]));
|
|
1630
1894
|
};
|
|
1631
|
-
function
|
|
1895
|
+
function bd(a) {
|
|
1632
1896
|
for (var b = 1; b < a.length; ++b) {
|
|
1633
1897
|
if (null !== a[b] && void 0 === a[b].K) {
|
|
1634
1898
|
return !0;
|
|
@@ -1636,12 +1900,12 @@ function cd(a) {
|
|
|
1636
1900
|
}
|
|
1637
1901
|
return !1;
|
|
1638
1902
|
}
|
|
1639
|
-
function
|
|
1903
|
+
function cd(a, b, c, d, e) {
|
|
1640
1904
|
var f = b.length;
|
|
1641
1905
|
if (2 > f) {
|
|
1642
1906
|
throw new H("argTypes array size mismatch! Must at least get return value and 'this' types!");
|
|
1643
1907
|
}
|
|
1644
|
-
var g = null !== b[1] && null !== c, k =
|
|
1908
|
+
var g = null !== b[1] && null !== c, k = bd(b), m = "void" !== b[0].name, p = f - 2, r = Array(p), w = [], y = [];
|
|
1645
1909
|
return dc(a, function(...q) {
|
|
1646
1910
|
if (q.length !== p) {
|
|
1647
1911
|
throw new H(`function ${a} called with ${q.length} arguments, expected ${p}`);
|
|
@@ -1658,7 +1922,7 @@ function dd(a, b, c, d, e) {
|
|
|
1658
1922
|
}
|
|
1659
1923
|
q = d(...w);
|
|
1660
1924
|
if (k) {
|
|
1661
|
-
|
|
1925
|
+
Dc(y);
|
|
1662
1926
|
} else {
|
|
1663
1927
|
for (v = g ? 1 : 2; v < b.length; v++) {
|
|
1664
1928
|
var z = 1 === v ? t : r[v - 2];
|
|
@@ -1669,16 +1933,16 @@ function dd(a, b, c, d, e) {
|
|
|
1669
1933
|
return t;
|
|
1670
1934
|
});
|
|
1671
1935
|
}
|
|
1672
|
-
var
|
|
1936
|
+
var dd = (a, b) => {
|
|
1673
1937
|
for (var c = [], d = 0; d < a; d++) {
|
|
1674
1938
|
c.push(A[b + 4 * d >> 2]);
|
|
1675
1939
|
}
|
|
1676
1940
|
return c;
|
|
1677
|
-
},
|
|
1941
|
+
}, ed = a => {
|
|
1678
1942
|
a = a.trim();
|
|
1679
1943
|
const b = a.indexOf("(");
|
|
1680
1944
|
return -1 !== b ? a.substr(0, b) : a;
|
|
1681
|
-
},
|
|
1945
|
+
}, fd = (a, b, c) => {
|
|
1682
1946
|
if (!(a instanceof Object)) {
|
|
1683
1947
|
throw new H(`${c} with invalid "this": ${a}`);
|
|
1684
1948
|
}
|
|
@@ -1688,14 +1952,14 @@ var ed = (a, b) => {
|
|
|
1688
1952
|
if (!a.g.o) {
|
|
1689
1953
|
throw new H(`cannot call emscripten binding method ${c} on deleted object`);
|
|
1690
1954
|
}
|
|
1691
|
-
return
|
|
1692
|
-
},
|
|
1955
|
+
return Pc(a.g.o, a.g.u.i, b.i);
|
|
1956
|
+
}, gd = a => {
|
|
1693
1957
|
9 < a && 0 === --fc[a + 1] && (fc[a] = void 0, ec.push(a));
|
|
1694
|
-
},
|
|
1695
|
-
var b =
|
|
1696
|
-
|
|
1958
|
+
}, hd = {name:"emscripten::val", fromWireType:a => {
|
|
1959
|
+
var b = I(a);
|
|
1960
|
+
gd(a);
|
|
1697
1961
|
return b;
|
|
1698
|
-
}, toWireType:(a, b) =>
|
|
1962
|
+
}, toWireType:(a, b) => gc(b), argPackAdvance:8, readValueFromPointer:Ec, K:null,}, jd = (a, b, c) => {
|
|
1699
1963
|
switch(b) {
|
|
1700
1964
|
case 1:
|
|
1701
1965
|
return c ? function(d) {
|
|
@@ -1718,13 +1982,13 @@ var ed = (a, b) => {
|
|
|
1718
1982
|
default:
|
|
1719
1983
|
throw new TypeError(`invalid integer width (${b}): ${a}`);
|
|
1720
1984
|
}
|
|
1721
|
-
},
|
|
1985
|
+
}, Rc = a => {
|
|
1722
1986
|
if (null === a) {
|
|
1723
1987
|
return "null";
|
|
1724
1988
|
}
|
|
1725
1989
|
var b = typeof a;
|
|
1726
1990
|
return "object" === b || "array" === b || "function" === b ? a.toString() : "" + a;
|
|
1727
|
-
},
|
|
1991
|
+
}, kd = (a, b) => {
|
|
1728
1992
|
switch(b) {
|
|
1729
1993
|
case 4:
|
|
1730
1994
|
return function(c) {
|
|
@@ -1737,7 +2001,7 @@ var ed = (a, b) => {
|
|
|
1737
2001
|
default:
|
|
1738
2002
|
throw new TypeError(`invalid float width (${b}): ${a}`);
|
|
1739
2003
|
}
|
|
1740
|
-
},
|
|
2004
|
+
}, ld = (a, b, c) => {
|
|
1741
2005
|
switch(b) {
|
|
1742
2006
|
case 1:
|
|
1743
2007
|
return c ? d => n[d] : d => u[d];
|
|
@@ -1748,14 +2012,14 @@ var ed = (a, b) => {
|
|
|
1748
2012
|
default:
|
|
1749
2013
|
throw new TypeError(`invalid integer width (${b}): ${a}`);
|
|
1750
2014
|
}
|
|
1751
|
-
},
|
|
2015
|
+
}, md = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void 0, nd = (a, b) => {
|
|
1752
2016
|
var c = a >> 1;
|
|
1753
2017
|
for (var d = c + b / 2; !(c >= d) && Ba[c];) {
|
|
1754
2018
|
++c;
|
|
1755
2019
|
}
|
|
1756
2020
|
c <<= 1;
|
|
1757
|
-
if (32 < c - a &&
|
|
1758
|
-
return
|
|
2021
|
+
if (32 < c - a && md) {
|
|
2022
|
+
return md.decode(u.subarray(a, c));
|
|
1759
2023
|
}
|
|
1760
2024
|
c = "";
|
|
1761
2025
|
for (d = 0; !(d >= b / 2); ++d) {
|
|
@@ -1766,7 +2030,7 @@ var ed = (a, b) => {
|
|
|
1766
2030
|
c += String.fromCharCode(e);
|
|
1767
2031
|
}
|
|
1768
2032
|
return c;
|
|
1769
|
-
},
|
|
2033
|
+
}, od = (a, b, c) => {
|
|
1770
2034
|
c ??= 2147483647;
|
|
1771
2035
|
if (2 > c) {
|
|
1772
2036
|
return 0;
|
|
@@ -1779,7 +2043,7 @@ var ed = (a, b) => {
|
|
|
1779
2043
|
}
|
|
1780
2044
|
Aa[b >> 1] = 0;
|
|
1781
2045
|
return b - d;
|
|
1782
|
-
},
|
|
2046
|
+
}, pd = a => 2 * a.length, qd = (a, b) => {
|
|
1783
2047
|
for (var c = 0, d = ""; !(c >= b / 4);) {
|
|
1784
2048
|
var e = x[a + 4 * c >> 2];
|
|
1785
2049
|
if (0 == e) {
|
|
@@ -1789,7 +2053,7 @@ var ed = (a, b) => {
|
|
|
1789
2053
|
65536 <= e ? (e -= 65536, d += String.fromCharCode(55296 | e >> 10, 56320 | e & 1023)) : d += String.fromCharCode(e);
|
|
1790
2054
|
}
|
|
1791
2055
|
return d;
|
|
1792
|
-
},
|
|
2056
|
+
}, rd = (a, b, c) => {
|
|
1793
2057
|
c ??= 2147483647;
|
|
1794
2058
|
if (4 > c) {
|
|
1795
2059
|
return 0;
|
|
@@ -1810,44 +2074,44 @@ var ed = (a, b) => {
|
|
|
1810
2074
|
}
|
|
1811
2075
|
x[b >> 2] = 0;
|
|
1812
2076
|
return b - d;
|
|
1813
|
-
},
|
|
2077
|
+
}, sd = a => {
|
|
1814
2078
|
for (var b = 0, c = 0; c < a.length; ++c) {
|
|
1815
2079
|
var d = a.charCodeAt(c);
|
|
1816
2080
|
55296 <= d && 57343 >= d && ++c;
|
|
1817
2081
|
b += 4;
|
|
1818
2082
|
}
|
|
1819
2083
|
return b;
|
|
1820
|
-
},
|
|
2084
|
+
}, td = (a, b, c) => {
|
|
1821
2085
|
var d = [];
|
|
1822
2086
|
a = a.toWireType(d, c);
|
|
1823
|
-
d.length && (A[b >> 2] =
|
|
2087
|
+
d.length && (A[b >> 2] = gc(d));
|
|
1824
2088
|
return a;
|
|
1825
|
-
}, vd = {}, wd = a => {
|
|
2089
|
+
}, ud = [], vd = {}, wd = a => {
|
|
1826
2090
|
var b = vd[a];
|
|
1827
|
-
return void 0 === b ?
|
|
1828
|
-
}, xd =
|
|
1829
|
-
var b =
|
|
1830
|
-
|
|
2091
|
+
return void 0 === b ? J(a) : b;
|
|
2092
|
+
}, xd = a => {
|
|
2093
|
+
var b = ud.length;
|
|
2094
|
+
ud.push(a);
|
|
1831
2095
|
return b;
|
|
1832
|
-
},
|
|
2096
|
+
}, yd = (a, b) => {
|
|
1833
2097
|
for (var c = Array(a), d = 0; d < a; ++d) {
|
|
1834
|
-
c[d] =
|
|
2098
|
+
c[d] = tc(A[b + 4 * d >> 2], "parameter " + d);
|
|
1835
2099
|
}
|
|
1836
2100
|
return c;
|
|
1837
|
-
},
|
|
2101
|
+
}, zd = Reflect.construct, Ad = a => 0 === a % 4 && (0 !== a % 100 || 0 === a % 400), Bd = [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335], Cd = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334], Dd = [], Ed = a => {
|
|
1838
2102
|
var b = a.getExtension("ANGLE_instanced_arrays");
|
|
1839
2103
|
b && (a.vertexAttribDivisor = (c, d) => b.vertexAttribDivisorANGLE(c, d), a.drawArraysInstanced = (c, d, e, f) => b.drawArraysInstancedANGLE(c, d, e, f), a.drawElementsInstanced = (c, d, e, f, g) => b.drawElementsInstancedANGLE(c, d, e, f, g));
|
|
1840
|
-
},
|
|
2104
|
+
}, Fd = a => {
|
|
1841
2105
|
var b = a.getExtension("OES_vertex_array_object");
|
|
1842
2106
|
b && (a.createVertexArray = () => b.createVertexArrayOES(), a.deleteVertexArray = c => b.deleteVertexArrayOES(c), a.bindVertexArray = c => b.bindVertexArrayOES(c), a.isVertexArray = c => b.isVertexArrayOES(c));
|
|
1843
|
-
},
|
|
2107
|
+
}, Gd = a => {
|
|
1844
2108
|
var b = a.getExtension("WEBGL_draw_buffers");
|
|
1845
2109
|
b && (a.drawBuffers = (c, d) => b.drawBuffersWEBGL(c, d));
|
|
1846
|
-
},
|
|
2110
|
+
}, Hd = a => {
|
|
1847
2111
|
var b = "ANGLE_instanced_arrays EXT_blend_minmax EXT_disjoint_timer_query EXT_frag_depth EXT_shader_texture_lod EXT_sRGB OES_element_index_uint OES_fbo_render_mipmap OES_standard_derivatives OES_texture_float OES_texture_half_float OES_texture_half_float_linear OES_vertex_array_object WEBGL_color_buffer_float WEBGL_depth_texture WEBGL_draw_buffers EXT_color_buffer_float EXT_conservative_depth EXT_disjoint_timer_query_webgl2 EXT_texture_norm16 NV_shader_noperspective_interpolation WEBGL_clip_cull_distance EXT_color_buffer_half_float EXT_depth_clamp EXT_float_blend EXT_texture_compression_bptc EXT_texture_compression_rgtc EXT_texture_filter_anisotropic KHR_parallel_shader_compile OES_texture_float_linear WEBGL_blend_func_extended WEBGL_compressed_texture_astc WEBGL_compressed_texture_etc WEBGL_compressed_texture_etc1 WEBGL_compressed_texture_s3tc WEBGL_compressed_texture_s3tc_srgb WEBGL_debug_renderer_info WEBGL_debug_shaders WEBGL_lose_context WEBGL_multi_draw".split(" ");
|
|
1848
2112
|
return (a.getSupportedExtensions() || []).filter(c => b.includes(c));
|
|
1849
|
-
},
|
|
1850
|
-
for (var b =
|
|
2113
|
+
}, Id = 1, Jd = [], Kd = [], Ld = [], Md = [], Nd = [], Od = [], Pd = [], ma = [], Qd = [], Rd = [], Sd = {}, Td = {}, Ud = 4, Vd = 0, la = a => {
|
|
2114
|
+
for (var b = Id++, c = a.length; c < b; c++) {
|
|
1851
2115
|
a[c] = null;
|
|
1852
2116
|
}
|
|
1853
2117
|
return b;
|
|
@@ -1866,9 +2130,9 @@ var ed = (a, b) => {
|
|
|
1866
2130
|
if (!a.Pb) {
|
|
1867
2131
|
a.Pb = !0;
|
|
1868
2132
|
var b = a.Sa;
|
|
2133
|
+
Ed(b);
|
|
1869
2134
|
Fd(b);
|
|
1870
2135
|
Gd(b);
|
|
1871
|
-
Hd(b);
|
|
1872
2136
|
b.Ya = b.getExtension("WEBGL_draw_instanced_base_vertex_base_instance");
|
|
1873
2137
|
b.fb = b.getExtension("WEBGL_multi_draw_instanced_base_vertex_base_instance");
|
|
1874
2138
|
2 <= a.version && (b.Za = b.getExtension("EXT_disjoint_timer_query_webgl2"));
|
|
@@ -1876,7 +2140,7 @@ var ed = (a, b) => {
|
|
|
1876
2140
|
b.Za = b.getExtension("EXT_disjoint_timer_query");
|
|
1877
2141
|
}
|
|
1878
2142
|
b.Bc = b.getExtension("WEBGL_multi_draw");
|
|
1879
|
-
|
|
2143
|
+
Hd(b).forEach(c => {
|
|
1880
2144
|
c.includes("lose_context") || c.includes("debug") || b.getExtension(c);
|
|
1881
2145
|
});
|
|
1882
2146
|
}
|
|
@@ -1894,7 +2158,7 @@ var ed = (a, b) => {
|
|
|
1894
2158
|
Wd(a, b, "createVertexArray", Pd);
|
|
1895
2159
|
};
|
|
1896
2160
|
function be() {
|
|
1897
|
-
var a =
|
|
2161
|
+
var a = Hd(R);
|
|
1898
2162
|
return a = a.concat(a.map(b => "GL_" + b));
|
|
1899
2163
|
}
|
|
1900
2164
|
var ce = (a, b) => {
|
|
@@ -2065,7 +2329,7 @@ var ce = (a, b) => {
|
|
|
2065
2329
|
function m(q) {
|
|
2066
2330
|
var t = q.$;
|
|
2067
2331
|
for (q = new Date((new Date(q.aa + 1900, 0, 1)).getTime()); 0 < t;) {
|
|
2068
|
-
var v = q.getMonth(), z = (
|
|
2332
|
+
var v = q.getMonth(), z = (Ad(q.getFullYear()) ? oe : pe)[v];
|
|
2069
2333
|
if (t > z - q.getDate()) {
|
|
2070
2334
|
t -= z - q.getDate() + 1, q.setDate(1), 11 > v ? q.setMonth(v + 1) : (q.setMonth(0), q.setFullYear(q.getFullYear() + 1));
|
|
2071
2335
|
} else {
|
|
@@ -2091,18 +2355,18 @@ var ce = (a, b) => {
|
|
|
2091
2355
|
0 == q ? q = 12 : 12 < q && (q -= 12);
|
|
2092
2356
|
return f(q, 2);
|
|
2093
2357
|
}, "%j":q => {
|
|
2094
|
-
for (var t = 0, v = 0; v <= q.Ga - 1; t += (
|
|
2358
|
+
for (var t = 0, v = 0; v <= q.Ga - 1; t += (Ad(q.aa + 1900) ? oe : pe)[v++]) {
|
|
2095
2359
|
}
|
|
2096
2360
|
return f(q.Pa + t, 3);
|
|
2097
2361
|
}, "%m":q => f(q.Ga + 1, 2), "%M":q => f(q.cc, 2), "%n":() => "\n", "%p":q => 0 <= q.Fa && 12 > q.Fa ? "AM" : "PM", "%S":q => f(q.dc, 2), "%t":() => "\t", "%u":q => q.P || 7, "%U":q => f(Math.floor((q.$ + 7 - q.P) / 7), 2), "%V":q => {
|
|
2098
2362
|
var t = Math.floor((q.$ + 7 - (q.P + 6) % 7) / 7);
|
|
2099
2363
|
2 >= (q.P + 371 - q.$ - 2) % 7 && t++;
|
|
2100
2364
|
if (t) {
|
|
2101
|
-
53 == t && (v = (q.P + 371 - q.$) % 7, 4 == v || 3 == v &&
|
|
2365
|
+
53 == t && (v = (q.P + 371 - q.$) % 7, 4 == v || 3 == v && Ad(q.aa) || (t = 1));
|
|
2102
2366
|
} else {
|
|
2103
2367
|
t = 52;
|
|
2104
2368
|
var v = (q.P + 7 - q.$ - 1) % 7;
|
|
2105
|
-
(4 == v || 5 == v &&
|
|
2369
|
+
(4 == v || 5 == v && Ad(q.aa % 400 - 1)) && t++;
|
|
2106
2370
|
}
|
|
2107
2371
|
return f(t, 2);
|
|
2108
2372
|
}, "%w":q => q.P, "%W":q => f(Math.floor((q.$ + 7 - (q.P + 6) % 7) / 7), 2), "%y":q => (q.aa + 1900).toString().substring(2), "%Y":q => q.aa + 1900, "%z":q => {
|
|
@@ -2171,32 +2435,32 @@ H = l.BindingError = class extends Error {
|
|
|
2171
2435
|
};
|
|
2172
2436
|
fc.push(0, 1, void 0, 1, null, 1, !0, 1, !1, 1,);
|
|
2173
2437
|
l.count_emval_handles = () => fc.length / 2 - 5 - ec.length;
|
|
2174
|
-
|
|
2438
|
+
ic = l.PureVirtualError = hc("PureVirtualError");
|
|
2175
2439
|
for (var re = Array(256), se = 0; 256 > se; ++se) {
|
|
2176
2440
|
re[se] = String.fromCharCode(se);
|
|
2177
2441
|
}
|
|
2178
|
-
|
|
2179
|
-
l.getInheritedInstanceCount = () => Object.keys(
|
|
2442
|
+
jc = re;
|
|
2443
|
+
l.getInheritedInstanceCount = () => Object.keys(nc).length;
|
|
2180
2444
|
l.getLiveInheritedInstances = () => {
|
|
2181
2445
|
var a = [], b;
|
|
2182
|
-
for (b in
|
|
2183
|
-
|
|
2446
|
+
for (b in nc) {
|
|
2447
|
+
nc.hasOwnProperty(b) && a.push(nc[b]);
|
|
2184
2448
|
}
|
|
2185
2449
|
return a;
|
|
2186
2450
|
};
|
|
2187
|
-
l.flushPendingDeletes =
|
|
2451
|
+
l.flushPendingDeletes = lc;
|
|
2188
2452
|
l.setDelayFunction = a => {
|
|
2189
|
-
|
|
2190
|
-
|
|
2453
|
+
mc = a;
|
|
2454
|
+
kc.length && mc && mc(lc);
|
|
2191
2455
|
};
|
|
2192
|
-
|
|
2456
|
+
zc = l.InternalError = class extends Error {
|
|
2193
2457
|
constructor(a) {
|
|
2194
2458
|
super(a);
|
|
2195
2459
|
this.name = "InternalError";
|
|
2196
2460
|
}
|
|
2197
2461
|
};
|
|
2198
|
-
Object.assign(
|
|
2199
|
-
if (!(this instanceof
|
|
2462
|
+
Object.assign(Kc.prototype, {isAliasOf:function(a) {
|
|
2463
|
+
if (!(this instanceof Kc && a instanceof Kc)) {
|
|
2200
2464
|
return !1;
|
|
2201
2465
|
}
|
|
2202
2466
|
var b = this.g.u.i, c = this.g.o;
|
|
@@ -2210,21 +2474,21 @@ Object.assign(Lc.prototype, {isAliasOf:function(a) {
|
|
|
2210
2474
|
}
|
|
2211
2475
|
return b === d && c === a;
|
|
2212
2476
|
}, clone:function() {
|
|
2213
|
-
this.g.o ||
|
|
2477
|
+
this.g.o || Jc(this);
|
|
2214
2478
|
if (this.g.ha) {
|
|
2215
2479
|
return this.g.count.value += 1, this;
|
|
2216
2480
|
}
|
|
2217
|
-
var a =
|
|
2481
|
+
var a = Ac, b = Object, c = b.create, d = Object.getPrototypeOf(this), e = this.g;
|
|
2218
2482
|
a = a(c.call(b, d, {g:{value:{count:e.count, fa:e.fa, ha:e.ha, o:e.o, u:e.u, D:e.D, I:e.I,},}}));
|
|
2219
2483
|
a.g.count.value += 1;
|
|
2220
2484
|
a.g.fa = !1;
|
|
2221
2485
|
return a;
|
|
2222
2486
|
}, ["delete"]() {
|
|
2223
|
-
this.g.o ||
|
|
2487
|
+
this.g.o || Jc(this);
|
|
2224
2488
|
if (this.g.fa && !this.g.ha) {
|
|
2225
2489
|
throw new H("Object already scheduled for deletion");
|
|
2226
2490
|
}
|
|
2227
|
-
|
|
2491
|
+
uc(this);
|
|
2228
2492
|
var a = this.g;
|
|
2229
2493
|
--a.count.value;
|
|
2230
2494
|
0 === a.count.value && (a.D ? a.I.N(a.D) : a.u.i.N(a.o));
|
|
@@ -2232,29 +2496,29 @@ Object.assign(Lc.prototype, {isAliasOf:function(a) {
|
|
|
2232
2496
|
}, isDeleted:function() {
|
|
2233
2497
|
return !this.g.o;
|
|
2234
2498
|
}, deleteLater:function() {
|
|
2235
|
-
this.g.o ||
|
|
2499
|
+
this.g.o || Jc(this);
|
|
2236
2500
|
if (this.g.fa && !this.g.ha) {
|
|
2237
2501
|
throw new H("Object already scheduled for deletion");
|
|
2238
2502
|
}
|
|
2239
|
-
|
|
2240
|
-
1 ===
|
|
2503
|
+
kc.push(this);
|
|
2504
|
+
1 === kc.length && mc && mc(lc);
|
|
2241
2505
|
this.g.fa = !0;
|
|
2242
2506
|
return this;
|
|
2243
2507
|
},});
|
|
2244
|
-
Object.assign(
|
|
2508
|
+
Object.assign(Uc.prototype, {Kb(a) {
|
|
2245
2509
|
this.mb && (a = this.mb(a));
|
|
2246
2510
|
return a;
|
|
2247
2511
|
}, Xa(a) {
|
|
2248
2512
|
this.N?.(a);
|
|
2249
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2513
|
+
}, argPackAdvance:8, readValueFromPointer:Ec, fromWireType:function(a) {
|
|
2250
2514
|
function b() {
|
|
2251
|
-
return this.ua ?
|
|
2515
|
+
return this.ua ? Bc(this.i.L, {u:this.Wb, o:c, I:this, D:a,}) : Bc(this.i.L, {u:this, o:a,});
|
|
2252
2516
|
}
|
|
2253
2517
|
var c = this.Kb(a);
|
|
2254
2518
|
if (!c) {
|
|
2255
2519
|
return this.Xa(a), null;
|
|
2256
2520
|
}
|
|
2257
|
-
var d =
|
|
2521
|
+
var d = yc(this.i, c);
|
|
2258
2522
|
if (void 0 !== d) {
|
|
2259
2523
|
if (0 === d.g.count.value) {
|
|
2260
2524
|
return d.g.o = c, d.g.D = a, d.clone();
|
|
@@ -2264,15 +2528,15 @@ Object.assign(Vc.prototype, {Kb(a) {
|
|
|
2264
2528
|
return d;
|
|
2265
2529
|
}
|
|
2266
2530
|
d = this.i.Jb(c);
|
|
2267
|
-
d =
|
|
2531
|
+
d = xc[d];
|
|
2268
2532
|
if (!d) {
|
|
2269
2533
|
return b.call(this);
|
|
2270
2534
|
}
|
|
2271
2535
|
d = this.ta ? d.Cb : d.pointerType;
|
|
2272
|
-
var e =
|
|
2273
|
-
return null === e ? b.call(this) : this.ua ?
|
|
2536
|
+
var e = wc(c, this.i, d.i);
|
|
2537
|
+
return null === e ? b.call(this) : this.ua ? Bc(d.i.L, {u:d, o:e, I:this, D:a,}) : Bc(d.i.L, {u:d, o:e,});
|
|
2274
2538
|
},});
|
|
2275
|
-
|
|
2539
|
+
$c = l.UnboundTypeError = hc("UnboundTypeError");
|
|
2276
2540
|
for (var R, V = 0; 32 > V; ++V) {
|
|
2277
2541
|
$d.push(Array(V));
|
|
2278
2542
|
}
|
|
@@ -2415,14 +2679,14 @@ var Ke = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2415
2679
|
}, _abort_js:() => {
|
|
2416
2680
|
La("");
|
|
2417
2681
|
}, _embind_create_inheriting_constructor:(a, b, c) => {
|
|
2418
|
-
a =
|
|
2419
|
-
b =
|
|
2420
|
-
c =
|
|
2682
|
+
a = J(a);
|
|
2683
|
+
b = tc(b, "wrapper");
|
|
2684
|
+
c = I(c);
|
|
2421
2685
|
var d = b.i, e = d.L, f = d.B.L, g = d.B.constructor;
|
|
2422
2686
|
a = dc(a, function(...k) {
|
|
2423
2687
|
d.B.lb.forEach(function(m) {
|
|
2424
2688
|
if (this[m] === f[m]) {
|
|
2425
|
-
throw new
|
|
2689
|
+
throw new ic(`Pure virtual function ${m} must be implemented in JavaScript`);
|
|
2426
2690
|
}
|
|
2427
2691
|
}.bind(this));
|
|
2428
2692
|
Object.defineProperty(this, "__parent", {value:e});
|
|
@@ -2433,47 +2697,47 @@ var Ke = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2433
2697
|
throw new H("Pass correct 'this' to __construct");
|
|
2434
2698
|
}
|
|
2435
2699
|
k = g.implement(this, ...k);
|
|
2436
|
-
|
|
2700
|
+
uc(k);
|
|
2437
2701
|
var m = k.g;
|
|
2438
2702
|
k.notifyOnDestruction();
|
|
2439
2703
|
m.ha = !0;
|
|
2440
2704
|
Object.defineProperties(this, {g:{value:m}});
|
|
2441
|
-
|
|
2705
|
+
Ac(this);
|
|
2442
2706
|
k = m.o;
|
|
2443
|
-
k =
|
|
2444
|
-
if (
|
|
2707
|
+
k = oc(d, k);
|
|
2708
|
+
if (nc.hasOwnProperty(k)) {
|
|
2445
2709
|
throw new H(`Tried to register registered instance: ${k}`);
|
|
2446
2710
|
}
|
|
2447
|
-
|
|
2711
|
+
nc[k] = this;
|
|
2448
2712
|
};
|
|
2449
2713
|
e.__destruct = function() {
|
|
2450
2714
|
if (this === e) {
|
|
2451
2715
|
throw new H("Pass correct 'this' to __destruct");
|
|
2452
2716
|
}
|
|
2453
|
-
|
|
2717
|
+
uc(this);
|
|
2454
2718
|
var k = this.g.o;
|
|
2455
|
-
k =
|
|
2456
|
-
if (
|
|
2457
|
-
delete
|
|
2719
|
+
k = oc(d, k);
|
|
2720
|
+
if (nc.hasOwnProperty(k)) {
|
|
2721
|
+
delete nc[k];
|
|
2458
2722
|
} else {
|
|
2459
2723
|
throw new H(`Tried to unregister unregistered instance: ${k}`);
|
|
2460
2724
|
}
|
|
2461
2725
|
};
|
|
2462
2726
|
a.prototype = Object.create(e);
|
|
2463
2727
|
Object.assign(a.prototype, c);
|
|
2464
|
-
return
|
|
2728
|
+
return gc(a);
|
|
2465
2729
|
}, _embind_finalize_value_object:a => {
|
|
2466
|
-
var b =
|
|
2467
|
-
delete
|
|
2730
|
+
var b = Cc[a];
|
|
2731
|
+
delete Cc[a];
|
|
2468
2732
|
var c = b.Na, d = b.N, e = b.$a, f = e.map(g => g.Nb).concat(e.map(g => g.Zb));
|
|
2469
|
-
|
|
2733
|
+
K([a], f, g => {
|
|
2470
2734
|
var k = {};
|
|
2471
2735
|
e.forEach((m, p) => {
|
|
2472
2736
|
var r = g[p], w = m.Lb, y = m.Mb, q = g[p + e.length], t = m.Yb, v = m.$b;
|
|
2473
2737
|
k[m.Hb] = {read:z => r.fromWireType(w(y, z)), write:(z, D) => {
|
|
2474
2738
|
var F = [];
|
|
2475
2739
|
t(v, z, q.toWireType(F, D));
|
|
2476
|
-
|
|
2740
|
+
Dc(F);
|
|
2477
2741
|
}};
|
|
2478
2742
|
});
|
|
2479
2743
|
return [{name:b.name, fromWireType:m => {
|
|
@@ -2495,12 +2759,12 @@ var Ke = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2495
2759
|
}
|
|
2496
2760
|
null !== m && m.push(d, w);
|
|
2497
2761
|
return w;
|
|
2498
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2762
|
+
}, argPackAdvance:8, readValueFromPointer:Ec, K:d,}];
|
|
2499
2763
|
});
|
|
2500
2764
|
}, _embind_register_bigint:() => {
|
|
2501
2765
|
}, _embind_register_bool:(a, b, c, d) => {
|
|
2502
|
-
b =
|
|
2503
|
-
|
|
2766
|
+
b = J(b);
|
|
2767
|
+
Hc(a, {name:b, fromWireType:function(e) {
|
|
2504
2768
|
return !!e;
|
|
2505
2769
|
}, toWireType:function(e, f) {
|
|
2506
2770
|
return f ? c : d;
|
|
@@ -2508,22 +2772,22 @@ var Ke = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2508
2772
|
return this.fromWireType(u[e]);
|
|
2509
2773
|
}, K:null,});
|
|
2510
2774
|
}, _embind_register_class:(a, b, c, d, e, f, g, k, m, p, r, w, y) => {
|
|
2511
|
-
r =
|
|
2512
|
-
f =
|
|
2513
|
-
k &&=
|
|
2514
|
-
p &&=
|
|
2515
|
-
y =
|
|
2516
|
-
var q =
|
|
2517
|
-
|
|
2518
|
-
|
|
2775
|
+
r = J(r);
|
|
2776
|
+
f = Q(e, f);
|
|
2777
|
+
k &&= Q(g, k);
|
|
2778
|
+
p &&= Q(m, p);
|
|
2779
|
+
y = Q(w, y);
|
|
2780
|
+
var q = Nc(r);
|
|
2781
|
+
Mc(q, function() {
|
|
2782
|
+
ad(`Cannot construct ${r} due to unbound types`, [d]);
|
|
2519
2783
|
});
|
|
2520
|
-
|
|
2784
|
+
K([a, b, c], d ? [d] : [], t => {
|
|
2521
2785
|
t = t[0];
|
|
2522
2786
|
if (d) {
|
|
2523
2787
|
var v = t.i;
|
|
2524
2788
|
var z = v.L;
|
|
2525
2789
|
} else {
|
|
2526
|
-
z =
|
|
2790
|
+
z = Kc.prototype;
|
|
2527
2791
|
}
|
|
2528
2792
|
t = dc(r, function(...N) {
|
|
2529
2793
|
if (Object.getPrototypeOf(this) !== D) {
|
|
@@ -2540,35 +2804,35 @@ var Ke = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2540
2804
|
});
|
|
2541
2805
|
var D = Object.create(z, {constructor:{value:t},});
|
|
2542
2806
|
t.prototype = D;
|
|
2543
|
-
var F = new
|
|
2807
|
+
var F = new Oc(r, t, D, y, v, f, k, p);
|
|
2544
2808
|
if (F.B) {
|
|
2545
2809
|
var M;
|
|
2546
2810
|
(M = F.B).na ?? (M.na = []);
|
|
2547
2811
|
F.B.na.push(F);
|
|
2548
2812
|
}
|
|
2549
|
-
v = new
|
|
2550
|
-
M = new
|
|
2551
|
-
z = new
|
|
2552
|
-
|
|
2553
|
-
|
|
2813
|
+
v = new Uc(r, F, !0, !1, !1);
|
|
2814
|
+
M = new Uc(r + "*", F, !1, !1, !1);
|
|
2815
|
+
z = new Uc(r + " const*", F, !1, !0, !1);
|
|
2816
|
+
xc[a] = {pointerType:M, Cb:z};
|
|
2817
|
+
Vc(q, t);
|
|
2554
2818
|
return [v, M, z];
|
|
2555
2819
|
});
|
|
2556
2820
|
}, _embind_register_class_class_function:(a, b, c, d, e, f, g) => {
|
|
2557
|
-
var k =
|
|
2558
|
-
b =
|
|
2559
|
-
b =
|
|
2560
|
-
f =
|
|
2561
|
-
|
|
2821
|
+
var k = dd(c, d);
|
|
2822
|
+
b = J(b);
|
|
2823
|
+
b = ed(b);
|
|
2824
|
+
f = Q(e, f);
|
|
2825
|
+
K([], [a], m => {
|
|
2562
2826
|
function p() {
|
|
2563
|
-
|
|
2827
|
+
ad(`Cannot call ${r} due to unbound types`, k);
|
|
2564
2828
|
}
|
|
2565
2829
|
m = m[0];
|
|
2566
2830
|
var r = `${m.name}.${b}`;
|
|
2567
2831
|
b.startsWith("@@") && (b = Symbol[b.substring(2)]);
|
|
2568
2832
|
var w = m.i.constructor;
|
|
2569
|
-
void 0 === w[b] ? (p.da = c - 1, w[b] = p) : (
|
|
2570
|
-
|
|
2571
|
-
y =
|
|
2833
|
+
void 0 === w[b] ? (p.da = c - 1, w[b] = p) : (Lc(w, b, r), w[b].A[c - 1] = p);
|
|
2834
|
+
K([], k, y => {
|
|
2835
|
+
y = cd(r, [y[0], null].concat(y.slice(1)), null, f, g);
|
|
2572
2836
|
void 0 === w[b].A ? (y.da = c - 1, w[b] = y) : w[b].A[c - 1] = y;
|
|
2573
2837
|
if (m.i.na) {
|
|
2574
2838
|
for (const q of m.i.na) {
|
|
@@ -2580,28 +2844,28 @@ var Ke = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2580
2844
|
return [];
|
|
2581
2845
|
});
|
|
2582
2846
|
}, _embind_register_class_class_property:(a, b, c, d, e, f, g, k) => {
|
|
2583
|
-
b =
|
|
2584
|
-
f =
|
|
2585
|
-
|
|
2847
|
+
b = J(b);
|
|
2848
|
+
f = Q(e, f);
|
|
2849
|
+
K([], [a], m => {
|
|
2586
2850
|
m = m[0];
|
|
2587
2851
|
var p = `${m.name}.${b}`, r = {get() {
|
|
2588
|
-
|
|
2852
|
+
ad(`Cannot access ${p} due to unbound types`, [c]);
|
|
2589
2853
|
}, enumerable:!0, configurable:!0};
|
|
2590
2854
|
r.set = k ? () => {
|
|
2591
|
-
|
|
2855
|
+
ad(`Cannot access ${p} due to unbound types`, [c]);
|
|
2592
2856
|
} : () => {
|
|
2593
2857
|
throw new H(`${p} is a read-only property`);
|
|
2594
2858
|
};
|
|
2595
2859
|
Object.defineProperty(m.i.constructor, b, r);
|
|
2596
|
-
|
|
2860
|
+
K([], [c], w => {
|
|
2597
2861
|
w = w[0];
|
|
2598
2862
|
var y = {get() {
|
|
2599
2863
|
return w.fromWireType(f(d));
|
|
2600
2864
|
}, enumerable:!0};
|
|
2601
|
-
k && (k =
|
|
2865
|
+
k && (k = Q(g, k), y.set = q => {
|
|
2602
2866
|
var t = [];
|
|
2603
2867
|
k(d, w.toWireType(t, q));
|
|
2604
|
-
|
|
2868
|
+
Dc(t);
|
|
2605
2869
|
});
|
|
2606
2870
|
Object.defineProperty(m.i.constructor, b, y);
|
|
2607
2871
|
return [];
|
|
@@ -2609,9 +2873,9 @@ var Ke = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2609
2873
|
return [];
|
|
2610
2874
|
});
|
|
2611
2875
|
}, _embind_register_class_constructor:(a, b, c, d, e, f) => {
|
|
2612
|
-
var g =
|
|
2613
|
-
e =
|
|
2614
|
-
|
|
2876
|
+
var g = dd(b, c);
|
|
2877
|
+
e = Q(d, e);
|
|
2878
|
+
K([], [a], k => {
|
|
2615
2879
|
k = k[0];
|
|
2616
2880
|
var m = `constructor ${k.name}`;
|
|
2617
2881
|
void 0 === k.i.X && (k.i.X = []);
|
|
@@ -2619,61 +2883,61 @@ var Ke = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2619
2883
|
throw new H(`Cannot register multiple constructors with identical number of parameters (${b - 1}) for class '${k.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);
|
|
2620
2884
|
}
|
|
2621
2885
|
k.i.X[b - 1] = () => {
|
|
2622
|
-
|
|
2886
|
+
ad(`Cannot construct ${k.name} due to unbound types`, g);
|
|
2623
2887
|
};
|
|
2624
|
-
|
|
2888
|
+
K([], g, p => {
|
|
2625
2889
|
p.splice(1, 0, null);
|
|
2626
|
-
k.i.X[b - 1] =
|
|
2890
|
+
k.i.X[b - 1] = cd(m, p, null, e, f);
|
|
2627
2891
|
return [];
|
|
2628
2892
|
});
|
|
2629
2893
|
return [];
|
|
2630
2894
|
});
|
|
2631
2895
|
}, _embind_register_class_function:(a, b, c, d, e, f, g, k) => {
|
|
2632
|
-
var m =
|
|
2633
|
-
b =
|
|
2634
|
-
b =
|
|
2635
|
-
f =
|
|
2636
|
-
|
|
2896
|
+
var m = dd(c, d);
|
|
2897
|
+
b = J(b);
|
|
2898
|
+
b = ed(b);
|
|
2899
|
+
f = Q(e, f);
|
|
2900
|
+
K([], [a], p => {
|
|
2637
2901
|
function r() {
|
|
2638
|
-
|
|
2902
|
+
ad(`Cannot call ${w} due to unbound types`, m);
|
|
2639
2903
|
}
|
|
2640
2904
|
p = p[0];
|
|
2641
2905
|
var w = `${p.name}.${b}`;
|
|
2642
2906
|
b.startsWith("@@") && (b = Symbol[b.substring(2)]);
|
|
2643
2907
|
k && p.i.lb.push(b);
|
|
2644
2908
|
var y = p.i.L, q = y[b];
|
|
2645
|
-
void 0 === q || void 0 === q.A && q.className !== p.name && q.da === c - 2 ? (r.da = c - 2, r.className = p.name, y[b] = r) : (
|
|
2646
|
-
|
|
2647
|
-
t =
|
|
2909
|
+
void 0 === q || void 0 === q.A && q.className !== p.name && q.da === c - 2 ? (r.da = c - 2, r.className = p.name, y[b] = r) : (Lc(y, b, w), y[b].A[c - 2] = r);
|
|
2910
|
+
K([], m, t => {
|
|
2911
|
+
t = cd(w, t, p, f, g);
|
|
2648
2912
|
void 0 === y[b].A ? (t.da = c - 2, y[b] = t) : y[b].A[c - 2] = t;
|
|
2649
2913
|
return [];
|
|
2650
2914
|
});
|
|
2651
2915
|
return [];
|
|
2652
2916
|
});
|
|
2653
2917
|
}, _embind_register_class_property:(a, b, c, d, e, f, g, k, m, p) => {
|
|
2654
|
-
b =
|
|
2655
|
-
e =
|
|
2656
|
-
|
|
2918
|
+
b = J(b);
|
|
2919
|
+
e = Q(d, e);
|
|
2920
|
+
K([], [a], r => {
|
|
2657
2921
|
r = r[0];
|
|
2658
2922
|
var w = `${r.name}.${b}`, y = {get() {
|
|
2659
|
-
|
|
2923
|
+
ad(`Cannot access ${w} due to unbound types`, [c, g]);
|
|
2660
2924
|
}, enumerable:!0, configurable:!0};
|
|
2661
|
-
y.set = m ? () =>
|
|
2925
|
+
y.set = m ? () => ad(`Cannot access ${w} due to unbound types`, [c, g]) : () => {
|
|
2662
2926
|
throw new H(w + " is a read-only property");
|
|
2663
2927
|
};
|
|
2664
2928
|
Object.defineProperty(r.i.L, b, y);
|
|
2665
|
-
|
|
2929
|
+
K([], m ? [c, g] : [c], q => {
|
|
2666
2930
|
var t = q[0], v = {get() {
|
|
2667
|
-
var D =
|
|
2931
|
+
var D = fd(this, r, w + " getter");
|
|
2668
2932
|
return t.fromWireType(e(f, D));
|
|
2669
2933
|
}, enumerable:!0};
|
|
2670
2934
|
if (m) {
|
|
2671
|
-
m =
|
|
2935
|
+
m = Q(k, m);
|
|
2672
2936
|
var z = q[1];
|
|
2673
2937
|
v.set = function(D) {
|
|
2674
|
-
var F =
|
|
2938
|
+
var F = fd(this, r, w + " setter"), M = [];
|
|
2675
2939
|
m(p, F, z.toWireType(M, D));
|
|
2676
|
-
|
|
2940
|
+
Dc(M);
|
|
2677
2941
|
};
|
|
2678
2942
|
}
|
|
2679
2943
|
Object.defineProperty(r.i.L, b, v);
|
|
@@ -2681,40 +2945,40 @@ var Ke = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2681
2945
|
});
|
|
2682
2946
|
return [];
|
|
2683
2947
|
});
|
|
2684
|
-
}, _embind_register_emval:a =>
|
|
2948
|
+
}, _embind_register_emval:a => Hc(a, hd), _embind_register_enum:(a, b, c, d) => {
|
|
2685
2949
|
function e() {
|
|
2686
2950
|
}
|
|
2687
|
-
b =
|
|
2951
|
+
b = J(b);
|
|
2688
2952
|
e.values = {};
|
|
2689
|
-
|
|
2953
|
+
Hc(a, {name:b, constructor:e, fromWireType:function(f) {
|
|
2690
2954
|
return this.constructor.values[f];
|
|
2691
|
-
}, toWireType:(f, g) => g.value, argPackAdvance:8, readValueFromPointer:
|
|
2692
|
-
|
|
2955
|
+
}, toWireType:(f, g) => g.value, argPackAdvance:8, readValueFromPointer:jd(b, c, d), K:null,});
|
|
2956
|
+
Mc(b, e);
|
|
2693
2957
|
}, _embind_register_enum_value:(a, b, c) => {
|
|
2694
|
-
var d =
|
|
2695
|
-
b =
|
|
2958
|
+
var d = tc(a, "enum");
|
|
2959
|
+
b = J(b);
|
|
2696
2960
|
a = d.constructor;
|
|
2697
2961
|
d = Object.create(d.constructor.prototype, {value:{value:c}, constructor:{value:dc(`${d.name}_${b}`, function() {
|
|
2698
2962
|
})},});
|
|
2699
2963
|
a.values[c] = d;
|
|
2700
2964
|
a[b] = d;
|
|
2701
2965
|
}, _embind_register_float:(a, b, c) => {
|
|
2702
|
-
b =
|
|
2703
|
-
|
|
2966
|
+
b = J(b);
|
|
2967
|
+
Hc(a, {name:b, fromWireType:d => d, toWireType:(d, e) => e, argPackAdvance:8, readValueFromPointer:kd(b, c), K:null,});
|
|
2704
2968
|
}, _embind_register_function:(a, b, c, d, e, f) => {
|
|
2705
|
-
var g =
|
|
2706
|
-
a =
|
|
2707
|
-
a =
|
|
2708
|
-
e =
|
|
2709
|
-
|
|
2710
|
-
|
|
2969
|
+
var g = dd(b, c);
|
|
2970
|
+
a = J(a);
|
|
2971
|
+
a = ed(a);
|
|
2972
|
+
e = Q(d, e);
|
|
2973
|
+
Mc(a, function() {
|
|
2974
|
+
ad(`Cannot call ${a} due to unbound types`, g);
|
|
2711
2975
|
}, b - 1);
|
|
2712
|
-
|
|
2713
|
-
|
|
2976
|
+
K([], g, k => {
|
|
2977
|
+
Vc(a, cd(a, [k[0], null].concat(k.slice(1)), null, e, f), b - 1);
|
|
2714
2978
|
return [];
|
|
2715
2979
|
});
|
|
2716
2980
|
}, _embind_register_integer:(a, b, c, d, e) => {
|
|
2717
|
-
b =
|
|
2981
|
+
b = J(b);
|
|
2718
2982
|
-1 === e && (e = 4294967295);
|
|
2719
2983
|
e = k => k;
|
|
2720
2984
|
if (0 === d) {
|
|
@@ -2726,18 +2990,18 @@ var Ke = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2726
2990
|
} : function(k, m) {
|
|
2727
2991
|
return m;
|
|
2728
2992
|
};
|
|
2729
|
-
|
|
2993
|
+
Hc(a, {name:b, fromWireType:e, toWireType:g, argPackAdvance:8, readValueFromPointer:ld(b, c, 0 !== d), K:null,});
|
|
2730
2994
|
}, _embind_register_memory_view:(a, b, c) => {
|
|
2731
2995
|
function d(f) {
|
|
2732
2996
|
return new e(n.buffer, A[f + 4 >> 2], A[f >> 2]);
|
|
2733
2997
|
}
|
|
2734
2998
|
var e = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array,][b];
|
|
2735
|
-
c =
|
|
2736
|
-
|
|
2999
|
+
c = J(c);
|
|
3000
|
+
Hc(a, {name:c, fromWireType:d, argPackAdvance:8, readValueFromPointer:d,}, {Ob:!0,});
|
|
2737
3001
|
}, _embind_register_std_string:(a, b) => {
|
|
2738
|
-
b =
|
|
3002
|
+
b = J(b);
|
|
2739
3003
|
var c = "std::string" === b;
|
|
2740
|
-
|
|
3004
|
+
Hc(a, {name:b, fromWireType:function(d) {
|
|
2741
3005
|
var e = A[d >> 2], f = d + 4;
|
|
2742
3006
|
if (c) {
|
|
2743
3007
|
for (var g = f, k = 0; k <= e; ++k) {
|
|
@@ -2759,7 +3023,7 @@ var Ke = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2759
3023
|
}
|
|
2760
3024
|
p = p.join("");
|
|
2761
3025
|
}
|
|
2762
|
-
|
|
3026
|
+
rc(d);
|
|
2763
3027
|
return p;
|
|
2764
3028
|
}, toWireType:function(d, e) {
|
|
2765
3029
|
e instanceof ArrayBuffer && (e = new Uint8Array(e));
|
|
@@ -2777,7 +3041,7 @@ var Ke = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2777
3041
|
for (f = 0; f < g; ++f) {
|
|
2778
3042
|
var p = e.charCodeAt(f);
|
|
2779
3043
|
if (255 < p) {
|
|
2780
|
-
throw
|
|
3044
|
+
throw rc(m), new H("String has UTF-16 code units that do not fit in 8 bits");
|
|
2781
3045
|
}
|
|
2782
3046
|
u[m + f] = p;
|
|
2783
3047
|
}
|
|
@@ -2787,29 +3051,29 @@ var Ke = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2787
3051
|
}
|
|
2788
3052
|
}
|
|
2789
3053
|
}
|
|
2790
|
-
null !== d && d.push(
|
|
3054
|
+
null !== d && d.push(rc, k);
|
|
2791
3055
|
return k;
|
|
2792
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2793
|
-
|
|
3056
|
+
}, argPackAdvance:8, readValueFromPointer:Ec, K(d) {
|
|
3057
|
+
rc(d);
|
|
2794
3058
|
},});
|
|
2795
3059
|
}, _embind_register_std_wstring:(a, b, c) => {
|
|
2796
|
-
c =
|
|
3060
|
+
c = J(c);
|
|
2797
3061
|
if (2 === b) {
|
|
2798
|
-
var d =
|
|
2799
|
-
var e =
|
|
2800
|
-
var f =
|
|
3062
|
+
var d = nd;
|
|
3063
|
+
var e = od;
|
|
3064
|
+
var f = pd;
|
|
2801
3065
|
var g = k => Ba[k >> 1];
|
|
2802
3066
|
} else {
|
|
2803
|
-
4 === b && (d =
|
|
3067
|
+
4 === b && (d = qd, e = rd, f = sd, g = k => A[k >> 2]);
|
|
2804
3068
|
}
|
|
2805
|
-
|
|
3069
|
+
Hc(a, {name:c, fromWireType:k => {
|
|
2806
3070
|
for (var m = A[k >> 2], p, r = k + 4, w = 0; w <= m; ++w) {
|
|
2807
3071
|
var y = k + 4 + w * b;
|
|
2808
3072
|
if (w == m || 0 == g(y)) {
|
|
2809
3073
|
r = d(r, y - r), void 0 === p ? p = r : (p += String.fromCharCode(0), p += r), r = y + b;
|
|
2810
3074
|
}
|
|
2811
3075
|
}
|
|
2812
|
-
|
|
3076
|
+
rc(k);
|
|
2813
3077
|
return p;
|
|
2814
3078
|
}, toWireType:(k, m) => {
|
|
2815
3079
|
if ("string" != typeof m) {
|
|
@@ -2818,62 +3082,66 @@ var Ke = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2818
3082
|
var p = f(m), r = ee(4 + p + b);
|
|
2819
3083
|
A[r >> 2] = p / b;
|
|
2820
3084
|
e(m, r + 4, p + b);
|
|
2821
|
-
null !== k && k.push(
|
|
3085
|
+
null !== k && k.push(rc, r);
|
|
2822
3086
|
return r;
|
|
2823
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2824
|
-
|
|
3087
|
+
}, argPackAdvance:8, readValueFromPointer:Ec, K(k) {
|
|
3088
|
+
rc(k);
|
|
2825
3089
|
}});
|
|
2826
3090
|
}, _embind_register_value_object:(a, b, c, d, e, f) => {
|
|
2827
|
-
|
|
3091
|
+
Cc[a] = {name:J(b), Na:Q(c, d), N:Q(e, f), $a:[],};
|
|
2828
3092
|
}, _embind_register_value_object_field:(a, b, c, d, e, f, g, k, m, p) => {
|
|
2829
|
-
|
|
3093
|
+
Cc[a].$a.push({Hb:J(b), Nb:c, Lb:Q(d, e), Mb:f, Zb:g, Yb:Q(k, m), $b:p,});
|
|
2830
3094
|
}, _embind_register_void:(a, b) => {
|
|
2831
|
-
b =
|
|
2832
|
-
|
|
3095
|
+
b = J(b);
|
|
3096
|
+
Hc(a, {yc:!0, name:b, argPackAdvance:0, fromWireType:() => {
|
|
2833
3097
|
}, toWireType:() => {
|
|
2834
3098
|
},});
|
|
2835
3099
|
}, _emscripten_get_now_is_monotonic:() => 1, _emscripten_memcpy_js:(a, b, c) => u.copyWithin(a, b, b + c), _emscripten_throw_longjmp:() => {
|
|
2836
3100
|
throw Infinity;
|
|
2837
3101
|
}, _emval_as:(a, b, c) => {
|
|
2838
|
-
a =
|
|
2839
|
-
b =
|
|
2840
|
-
return
|
|
3102
|
+
a = I(a);
|
|
3103
|
+
b = tc(b, "emval::as");
|
|
3104
|
+
return td(b, c, a);
|
|
3105
|
+
}, _emval_call:(a, b, c, d) => {
|
|
3106
|
+
a = ud[a];
|
|
3107
|
+
b = I(b);
|
|
3108
|
+
return a(null, b, c, d);
|
|
2841
3109
|
}, _emval_call_method:(a, b, c, d, e) => {
|
|
2842
|
-
a =
|
|
2843
|
-
b =
|
|
3110
|
+
a = ud[a];
|
|
3111
|
+
b = I(b);
|
|
2844
3112
|
c = wd(c);
|
|
2845
3113
|
return a(b, b[c], d, e);
|
|
2846
|
-
}, _emval_decref:
|
|
2847
|
-
var d =
|
|
3114
|
+
}, _emval_decref:gd, _emval_get_method_caller:(a, b, c) => {
|
|
3115
|
+
var d = yd(a, b), e = d.shift();
|
|
2848
3116
|
a--;
|
|
2849
3117
|
var f = Array(a);
|
|
2850
3118
|
b = `methodCaller<(${d.map(g => g.name).join(", ")}) => ${e.name}>`;
|
|
2851
|
-
return
|
|
3119
|
+
return xd(dc(b, (g, k, m, p) => {
|
|
2852
3120
|
for (var r = 0, w = 0; w < a; ++w) {
|
|
2853
3121
|
f[w] = d[w].readValueFromPointer(p + r), r += d[w].argPackAdvance;
|
|
2854
3122
|
}
|
|
2855
|
-
g = 1 === c ?
|
|
2856
|
-
return
|
|
3123
|
+
g = 1 === c ? zd(k, f) : k.apply(g, f);
|
|
3124
|
+
return td(e, m, g);
|
|
2857
3125
|
}));
|
|
2858
3126
|
}, _emval_get_property:(a, b) => {
|
|
2859
|
-
a =
|
|
2860
|
-
b =
|
|
2861
|
-
return
|
|
3127
|
+
a = I(a);
|
|
3128
|
+
b = I(b);
|
|
3129
|
+
return gc(a[b]);
|
|
2862
3130
|
}, _emval_incref:a => {
|
|
2863
3131
|
9 < a && (fc[a + 1] += 1);
|
|
2864
|
-
}, _emval_new_array:() =>
|
|
2865
|
-
var b =
|
|
2866
|
-
|
|
2867
|
-
|
|
3132
|
+
}, _emval_new_array:() => gc([]), _emval_new_cstring:a => gc(wd(a)), _emval_new_object:() => gc({}), _emval_run_destructors:a => {
|
|
3133
|
+
var b = I(a);
|
|
3134
|
+
Dc(b);
|
|
3135
|
+
gd(a);
|
|
2868
3136
|
}, _emval_set_property:(a, b, c) => {
|
|
2869
|
-
a =
|
|
2870
|
-
b =
|
|
2871
|
-
c =
|
|
3137
|
+
a = I(a);
|
|
3138
|
+
b = I(b);
|
|
3139
|
+
c = I(c);
|
|
2872
3140
|
a[b] = c;
|
|
2873
3141
|
}, _emval_take_value:(a, b) => {
|
|
2874
|
-
a =
|
|
3142
|
+
a = tc(a, "_emval_take_value");
|
|
2875
3143
|
a = a.readValueFromPointer(b);
|
|
2876
|
-
return
|
|
3144
|
+
return gc(a);
|
|
2877
3145
|
}, _gmtime_js:function(a, b, c) {
|
|
2878
3146
|
a = new Date(1000 * (b + 2097152 >>> 0 < 4194305 - !!a ? (a >>> 0) + 4294967296 * b : NaN));
|
|
2879
3147
|
x[c >> 2] = a.getUTCSeconds();
|
|
@@ -2893,7 +3161,7 @@ var Ke = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2893
3161
|
x[c + 16 >> 2] = a.getMonth();
|
|
2894
3162
|
x[c + 20 >> 2] = a.getFullYear() - 1900;
|
|
2895
3163
|
x[c + 24 >> 2] = a.getDay();
|
|
2896
|
-
x[c + 28 >> 2] = (
|
|
3164
|
+
x[c + 28 >> 2] = (Ad(a.getFullYear()) ? Bd : Cd)[a.getMonth()] + a.getDate() - 1 | 0;
|
|
2897
3165
|
x[c + 36 >> 2] = -(60 * a.getTimezoneOffset());
|
|
2898
3166
|
b = (new Date(a.getFullYear(), 6, 1)).getTimezoneOffset();
|
|
2899
3167
|
var d = (new Date(a.getFullYear(), 0, 1)).getTimezoneOffset();
|
|
@@ -2909,22 +3177,22 @@ var Ke = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2909
3177
|
g = a(g);
|
|
2910
3178
|
k < e ? (kb(f, u, c, 17), kb(g, u, d, 17)) : (kb(f, u, d, 17), kb(g, u, c, 17));
|
|
2911
3179
|
}, emscripten_asm_const_int:(a, b, c) => {
|
|
2912
|
-
|
|
3180
|
+
Dd.length = 0;
|
|
2913
3181
|
for (var d; d = u[b++];) {
|
|
2914
3182
|
var e = 105 != d;
|
|
2915
3183
|
e &= 112 != d;
|
|
2916
3184
|
c += e && c % 8 ? 4 : 0;
|
|
2917
|
-
|
|
3185
|
+
Dd.push(112 == d ? A[c >> 2] : 105 == d ? x[c >> 2] : Ca[c >> 3]);
|
|
2918
3186
|
c += e ? 8 : 4;
|
|
2919
3187
|
}
|
|
2920
|
-
return Xa[a](...
|
|
3188
|
+
return Xa[a](...Dd);
|
|
2921
3189
|
}, emscripten_date_now:() => Date.now(), emscripten_get_now:() => performance.now(), emscripten_glActiveTexture:a => R.activeTexture(a), emscripten_glAttachShader:(a, b) => {
|
|
2922
|
-
R.attachShader(
|
|
3190
|
+
R.attachShader(Kd[a], Od[b]);
|
|
2923
3191
|
}, emscripten_glBindAttribLocation:(a, b, c) => {
|
|
2924
|
-
R.bindAttribLocation(
|
|
3192
|
+
R.bindAttribLocation(Kd[a], b, c ? C(u, c) : "");
|
|
2925
3193
|
}, emscripten_glBindBuffer:(a, b) => {
|
|
2926
3194
|
35051 == a ? R.Ia = b : 35052 == a && (R.ea = b);
|
|
2927
|
-
R.bindBuffer(a,
|
|
3195
|
+
R.bindBuffer(a, Jd[b]);
|
|
2928
3196
|
}, emscripten_glBindFramebuffer:Xd, emscripten_glBindRenderbuffer:(a, b) => {
|
|
2929
3197
|
R.bindRenderbuffer(a, Md[b]);
|
|
2930
3198
|
}, emscripten_glBindSampler:(a, b) => {
|
|
@@ -2944,11 +3212,11 @@ var Ke = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2944
3212
|
}, emscripten_glCompressedTexSubImage2D:(a, b, c, d, e, f, g, k, m) => {
|
|
2945
3213
|
2 <= T.version ? R.ea || !k ? R.compressedTexSubImage2D(a, b, c, d, e, f, g, k, m) : R.compressedTexSubImage2D(a, b, c, d, e, f, g, u, m, k) : R.compressedTexSubImage2D(a, b, c, d, e, f, g, m ? u.subarray(m, m + k) : null);
|
|
2946
3214
|
}, emscripten_glCopyTexSubImage2D:(a, b, c, d, e, f, g, k) => R.copyTexSubImage2D(a, b, c, d, e, f, g, k), emscripten_glCreateProgram:() => {
|
|
2947
|
-
var a = la(
|
|
3215
|
+
var a = la(Kd), b = R.createProgram();
|
|
2948
3216
|
b.name = a;
|
|
2949
3217
|
b.xa = b.va = b.wa = 0;
|
|
2950
3218
|
b.Qa = 1;
|
|
2951
|
-
|
|
3219
|
+
Kd[a] = b;
|
|
2952
3220
|
return a;
|
|
2953
3221
|
}, emscripten_glCreateShader:a => {
|
|
2954
3222
|
var b = la(Od);
|
|
@@ -2956,8 +3224,8 @@ var Ke = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2956
3224
|
return b;
|
|
2957
3225
|
}, emscripten_glCullFace:a => R.cullFace(a), emscripten_glDeleteBuffers:(a, b) => {
|
|
2958
3226
|
for (var c = 0; c < a; c++) {
|
|
2959
|
-
var d = x[b + 4 * c >> 2], e =
|
|
2960
|
-
e && (R.deleteBuffer(e), e.name = 0,
|
|
3227
|
+
var d = x[b + 4 * c >> 2], e = Jd[d];
|
|
3228
|
+
e && (R.deleteBuffer(e), e.name = 0, Jd[d] = null, d == R.Ia && (R.Ia = 0), d == R.ea && (R.ea = 0));
|
|
2961
3229
|
}
|
|
2962
3230
|
}, emscripten_glDeleteFramebuffers:(a, b) => {
|
|
2963
3231
|
for (var c = 0; c < a; ++c) {
|
|
@@ -2966,8 +3234,8 @@ var Ke = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2966
3234
|
}
|
|
2967
3235
|
}, emscripten_glDeleteProgram:a => {
|
|
2968
3236
|
if (a) {
|
|
2969
|
-
var b =
|
|
2970
|
-
b ? (R.deleteProgram(b), b.name = 0,
|
|
3237
|
+
var b = Kd[a];
|
|
3238
|
+
b ? (R.deleteProgram(b), b.name = 0, Kd[a] = null) : S ||= 1281;
|
|
2971
3239
|
}
|
|
2972
3240
|
}, emscripten_glDeleteRenderbuffers:(a, b) => {
|
|
2973
3241
|
for (var c = 0; c < a; c++) {
|
|
@@ -3024,7 +3292,7 @@ var Ke = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3024
3292
|
}, emscripten_glFramebufferTexture2D:(a, b, c, d, e) => {
|
|
3025
3293
|
R.framebufferTexture2D(a, b, c, Nd[d], e);
|
|
3026
3294
|
}, emscripten_glFrontFace:a => R.frontFace(a), emscripten_glGenBuffers:(a, b) => {
|
|
3027
|
-
Wd(a, b, "createBuffer",
|
|
3295
|
+
Wd(a, b, "createBuffer", Jd);
|
|
3028
3296
|
}, emscripten_glGenFramebuffers:(a, b) => {
|
|
3029
3297
|
Wd(a, b, "createFramebuffer", Ld);
|
|
3030
3298
|
}, emscripten_glGenRenderbuffers:(a, b) => {
|
|
@@ -3046,16 +3314,16 @@ var Ke = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3046
3314
|
}
|
|
3047
3315
|
x[d >> 2] = a;
|
|
3048
3316
|
}, emscripten_glGetIntegerv:de, emscripten_glGetProgramInfoLog:(a, b, c, d) => {
|
|
3049
|
-
a = R.getProgramInfoLog(
|
|
3317
|
+
a = R.getProgramInfoLog(Kd[a]);
|
|
3050
3318
|
null === a && (a = "(unknown error)");
|
|
3051
3319
|
b = 0 < b && d ? kb(a, u, d, b) : 0;
|
|
3052
3320
|
c && (x[c >> 2] = b);
|
|
3053
3321
|
}, emscripten_glGetProgramiv:(a, b, c) => {
|
|
3054
3322
|
if (c) {
|
|
3055
|
-
if (a >=
|
|
3323
|
+
if (a >= Id) {
|
|
3056
3324
|
S ||= 1281;
|
|
3057
3325
|
} else {
|
|
3058
|
-
if (a =
|
|
3326
|
+
if (a = Kd[a], 35716 == b) {
|
|
3059
3327
|
a = R.getProgramInfoLog(a), null === a && (a = "(unknown error)"), x[c >> 2] = a.length + 1;
|
|
3060
3328
|
} else if (35719 == b) {
|
|
3061
3329
|
if (!a.xa) {
|
|
@@ -3146,7 +3414,7 @@ var Ke = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3146
3414
|
}
|
|
3147
3415
|
}, emscripten_glGetUniformLocation:(a, b) => {
|
|
3148
3416
|
b = b ? C(u, b) : "";
|
|
3149
|
-
if (a =
|
|
3417
|
+
if (a = Kd[a]) {
|
|
3150
3418
|
var c = a, d = c.la, e = c.sb, f;
|
|
3151
3419
|
if (!d) {
|
|
3152
3420
|
for (c.la = d = {}, c.rb = {}, f = 0; f < R.getProgramParameter(c, 35718); ++f) {
|
|
@@ -3186,7 +3454,7 @@ var Ke = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3186
3454
|
}
|
|
3187
3455
|
R.invalidateSubFramebuffer(a, k, d, e, f, g);
|
|
3188
3456
|
}, emscripten_glIsSync:a => R.isSync(Rd[a]), emscripten_glIsTexture:a => (a = Nd[a]) ? R.isTexture(a) : 0, emscripten_glLineWidth:a => R.lineWidth(a), emscripten_glLinkProgram:a => {
|
|
3189
|
-
a =
|
|
3457
|
+
a = Kd[a];
|
|
3190
3458
|
R.linkProgram(a);
|
|
3191
3459
|
a.la = 0;
|
|
3192
3460
|
a.sb = {};
|
|
@@ -3436,7 +3704,7 @@ var Ke = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3436
3704
|
R.uniformMatrix4fv(U(a), !!c, e);
|
|
3437
3705
|
}
|
|
3438
3706
|
}, emscripten_glUseProgram:a => {
|
|
3439
|
-
a =
|
|
3707
|
+
a = Kd[a];
|
|
3440
3708
|
R.useProgram(a);
|
|
3441
3709
|
R.Db = a;
|
|
3442
3710
|
}, emscripten_glVertexAttrib1f:(a, b) => R.vertexAttrib1f(a, b), emscripten_glVertexAttrib2fv:(a, b) => {
|
|
@@ -3651,7 +3919,7 @@ var Ke = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3651
3919
|
W = c.exports;
|
|
3652
3920
|
ya = W.memory;
|
|
3653
3921
|
Da();
|
|
3654
|
-
|
|
3922
|
+
Xc = W.__indirect_function_table;
|
|
3655
3923
|
Fa.unshift(W.__wasm_call_ctors);
|
|
3656
3924
|
Ia--;
|
|
3657
3925
|
l.monitorRunDependencies?.(Ia);
|
|
@@ -3673,7 +3941,7 @@ var Ke = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3673
3941
|
a(c.instance);
|
|
3674
3942
|
}).catch(ba);
|
|
3675
3943
|
return {};
|
|
3676
|
-
}(),
|
|
3944
|
+
}(), rc = a => (rc = W.free)(a), ee = a => (ee = W.malloc)(a), qc = a => (qc = W.__getTypeName)(a), Ua = l._ma_device__on_notification_unlocked = a => (Ua = l._ma_device__on_notification_unlocked = W.ma_device__on_notification_unlocked)(a);
|
|
3677
3945
|
l._ma_malloc_emscripten = (a, b) => (l._ma_malloc_emscripten = W.ma_malloc_emscripten)(a, b);
|
|
3678
3946
|
l._ma_free_emscripten = (a, b) => (l._ma_free_emscripten = W.ma_free_emscripten)(a, b);
|
|
3679
3947
|
var Va = l._ma_device_process_pcm_frames_capture__webaudio = (a, b, c) => (Va = l._ma_device_process_pcm_frames_capture__webaudio = W.ma_device_process_pcm_frames_capture__webaudio)(a, b, c), Wa = l._ma_device_process_pcm_frames_playback__webaudio = (a, b, c) => (Wa = l._ma_device_process_pcm_frames_playback__webaudio = W.ma_device_process_pcm_frames_playback__webaudio)(a, b, c), xb = (a, b) => (xb = W.emscripten_builtin_memalign)(a, b), X = (a, b) => (X = W.setThrew)(a, b), Y = a => (Y = W._emscripten_stack_restore)(a),
|
|
@@ -3698,7 +3966,7 @@ l.dynCall_iiiiiijj = (a, b, c, d, e, f, g, k, m, p) => (l.dynCall_iiiiiijj = W.d
|
|
|
3698
3966
|
function Ee(a, b, c) {
|
|
3699
3967
|
var d = Z();
|
|
3700
3968
|
try {
|
|
3701
|
-
|
|
3969
|
+
P(a)(b, c);
|
|
3702
3970
|
} catch (e) {
|
|
3703
3971
|
Y(d);
|
|
3704
3972
|
if (e !== e + 0) {
|
|
@@ -3710,7 +3978,7 @@ function Ee(a, b, c) {
|
|
|
3710
3978
|
function ve(a, b) {
|
|
3711
3979
|
var c = Z();
|
|
3712
3980
|
try {
|
|
3713
|
-
return
|
|
3981
|
+
return P(a)(b);
|
|
3714
3982
|
} catch (d) {
|
|
3715
3983
|
Y(c);
|
|
3716
3984
|
if (d !== d + 0) {
|
|
@@ -3722,7 +3990,7 @@ function ve(a, b) {
|
|
|
3722
3990
|
function De(a, b) {
|
|
3723
3991
|
var c = Z();
|
|
3724
3992
|
try {
|
|
3725
|
-
|
|
3993
|
+
P(a)(b);
|
|
3726
3994
|
} catch (d) {
|
|
3727
3995
|
Y(c);
|
|
3728
3996
|
if (d !== d + 0) {
|
|
@@ -3734,7 +4002,7 @@ function De(a, b) {
|
|
|
3734
4002
|
function xe(a, b, c, d) {
|
|
3735
4003
|
var e = Z();
|
|
3736
4004
|
try {
|
|
3737
|
-
return
|
|
4005
|
+
return P(a)(b, c, d);
|
|
3738
4006
|
} catch (f) {
|
|
3739
4007
|
Y(e);
|
|
3740
4008
|
if (f !== f + 0) {
|
|
@@ -3746,7 +4014,7 @@ function xe(a, b, c, d) {
|
|
|
3746
4014
|
function Fe(a, b, c, d) {
|
|
3747
4015
|
var e = Z();
|
|
3748
4016
|
try {
|
|
3749
|
-
|
|
4017
|
+
P(a)(b, c, d);
|
|
3750
4018
|
} catch (f) {
|
|
3751
4019
|
Y(e);
|
|
3752
4020
|
if (f !== f + 0) {
|
|
@@ -3758,7 +4026,7 @@ function Fe(a, b, c, d) {
|
|
|
3758
4026
|
function Ge(a, b, c, d, e) {
|
|
3759
4027
|
var f = Z();
|
|
3760
4028
|
try {
|
|
3761
|
-
|
|
4029
|
+
P(a)(b, c, d, e);
|
|
3762
4030
|
} catch (g) {
|
|
3763
4031
|
Y(f);
|
|
3764
4032
|
if (g !== g + 0) {
|
|
@@ -3770,7 +4038,7 @@ function Ge(a, b, c, d, e) {
|
|
|
3770
4038
|
function Ce(a) {
|
|
3771
4039
|
var b = Z();
|
|
3772
4040
|
try {
|
|
3773
|
-
|
|
4041
|
+
P(a)();
|
|
3774
4042
|
} catch (c) {
|
|
3775
4043
|
Y(b);
|
|
3776
4044
|
if (c !== c + 0) {
|
|
@@ -3782,7 +4050,7 @@ function Ce(a) {
|
|
|
3782
4050
|
function Ae(a, b, c, d, e, f, g) {
|
|
3783
4051
|
var k = Z();
|
|
3784
4052
|
try {
|
|
3785
|
-
return
|
|
4053
|
+
return P(a)(b, c, d, e, f, g);
|
|
3786
4054
|
} catch (m) {
|
|
3787
4055
|
Y(k);
|
|
3788
4056
|
if (m !== m + 0) {
|
|
@@ -3794,7 +4062,7 @@ function Ae(a, b, c, d, e, f, g) {
|
|
|
3794
4062
|
function we(a, b, c) {
|
|
3795
4063
|
var d = Z();
|
|
3796
4064
|
try {
|
|
3797
|
-
return
|
|
4065
|
+
return P(a)(b, c);
|
|
3798
4066
|
} catch (e) {
|
|
3799
4067
|
Y(d);
|
|
3800
4068
|
if (e !== e + 0) {
|
|
@@ -3806,7 +4074,7 @@ function we(a, b, c) {
|
|
|
3806
4074
|
function Ie(a, b, c, d, e, f, g, k) {
|
|
3807
4075
|
var m = Z();
|
|
3808
4076
|
try {
|
|
3809
|
-
|
|
4077
|
+
P(a)(b, c, d, e, f, g, k);
|
|
3810
4078
|
} catch (p) {
|
|
3811
4079
|
Y(m);
|
|
3812
4080
|
if (p !== p + 0) {
|
|
@@ -3818,7 +4086,7 @@ function Ie(a, b, c, d, e, f, g, k) {
|
|
|
3818
4086
|
function Be(a, b, c, d, e, f, g, k, m, p) {
|
|
3819
4087
|
var r = Z();
|
|
3820
4088
|
try {
|
|
3821
|
-
return
|
|
4089
|
+
return P(a)(b, c, d, e, f, g, k, m, p);
|
|
3822
4090
|
} catch (w) {
|
|
3823
4091
|
Y(r);
|
|
3824
4092
|
if (w !== w + 0) {
|
|
@@ -3830,7 +4098,7 @@ function Be(a, b, c, d, e, f, g, k, m, p) {
|
|
|
3830
4098
|
function ye(a, b, c, d, e) {
|
|
3831
4099
|
var f = Z();
|
|
3832
4100
|
try {
|
|
3833
|
-
return
|
|
4101
|
+
return P(a)(b, c, d, e);
|
|
3834
4102
|
} catch (g) {
|
|
3835
4103
|
Y(f);
|
|
3836
4104
|
if (g !== g + 0) {
|
|
@@ -3842,7 +4110,7 @@ function ye(a, b, c, d, e) {
|
|
|
3842
4110
|
function Je(a, b, c, d, e, f, g, k, m) {
|
|
3843
4111
|
var p = Z();
|
|
3844
4112
|
try {
|
|
3845
|
-
|
|
4113
|
+
P(a)(b, c, d, e, f, g, k, m);
|
|
3846
4114
|
} catch (r) {
|
|
3847
4115
|
Y(p);
|
|
3848
4116
|
if (r !== r + 0) {
|
|
@@ -3854,7 +4122,7 @@ function Je(a, b, c, d, e, f, g, k, m) {
|
|
|
3854
4122
|
function ze(a, b, c, d, e, f) {
|
|
3855
4123
|
var g = Z();
|
|
3856
4124
|
try {
|
|
3857
|
-
return
|
|
4125
|
+
return P(a)(b, c, d, e, f);
|
|
3858
4126
|
} catch (k) {
|
|
3859
4127
|
Y(g);
|
|
3860
4128
|
if (k !== k + 0) {
|
|
@@ -3866,7 +4134,7 @@ function ze(a, b, c, d, e, f) {
|
|
|
3866
4134
|
function He(a, b, c, d, e, f, g) {
|
|
3867
4135
|
var k = Z();
|
|
3868
4136
|
try {
|
|
3869
|
-
|
|
4137
|
+
P(a)(b, c, d, e, f, g);
|
|
3870
4138
|
} catch (m) {
|
|
3871
4139
|
Y(k);
|
|
3872
4140
|
if (m !== m + 0) {
|
|
@@ -3932,147 +4200,13 @@ moduleRtn = ca;
|
|
|
3932
4200
|
|
|
3933
4201
|
|
|
3934
4202
|
/***/ }),
|
|
3935
|
-
/*
|
|
4203
|
+
/* 5 */
|
|
3936
4204
|
/***/ ((module) => {
|
|
3937
4205
|
|
|
3938
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"@rive-app/webgl","version":"2.
|
|
3939
|
-
|
|
3940
|
-
/***/ }),
|
|
3941
|
-
/* 3 */
|
|
3942
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3943
|
-
|
|
3944
|
-
__webpack_require__.r(__webpack_exports__);
|
|
3945
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3946
|
-
/* harmony export */ Animation: () => (/* reexport safe */ _Animation__WEBPACK_IMPORTED_MODULE_0__.Animation)
|
|
3947
|
-
/* harmony export */ });
|
|
3948
|
-
/* harmony import */ var _Animation__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4);
|
|
3949
|
-
|
|
3950
|
-
|
|
3951
|
-
|
|
3952
|
-
/***/ }),
|
|
3953
|
-
/* 4 */
|
|
3954
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3955
|
-
|
|
3956
|
-
__webpack_require__.r(__webpack_exports__);
|
|
3957
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3958
|
-
/* harmony export */ Animation: () => (/* binding */ Animation)
|
|
3959
|
-
/* harmony export */ });
|
|
3960
|
-
/**
|
|
3961
|
-
* Represents an animation that can be played on an Artboard.
|
|
3962
|
-
* Wraps animations and instances from the runtime and keeps track of playback state.
|
|
3963
|
-
*
|
|
3964
|
-
* The `Animation` class manages the state and behavior of a single animation instance,
|
|
3965
|
-
* including its current time, loop count, and ability to scrub to a specific time.
|
|
3966
|
-
*
|
|
3967
|
-
* The class provides methods to advance the animation, apply its interpolated keyframe
|
|
3968
|
-
* values to the Artboard, and clean up the underlying animation instance when the
|
|
3969
|
-
* animation is no longer needed.
|
|
3970
|
-
*/
|
|
3971
|
-
var Animation = /** @class */ (function () {
|
|
3972
|
-
/**
|
|
3973
|
-
* Constructs a new animation
|
|
3974
|
-
* @constructor
|
|
3975
|
-
* @param {any} animation: runtime animation object
|
|
3976
|
-
* @param {any} instance: runtime animation instance object
|
|
3977
|
-
*/
|
|
3978
|
-
function Animation(animation, artboard, runtime, playing) {
|
|
3979
|
-
this.animation = animation;
|
|
3980
|
-
this.artboard = artboard;
|
|
3981
|
-
this.playing = playing;
|
|
3982
|
-
this.loopCount = 0;
|
|
3983
|
-
/**
|
|
3984
|
-
* The time to which the animation should move to on the next render.
|
|
3985
|
-
* If not null, the animation will scrub to this time instead of advancing by the given time.
|
|
3986
|
-
*/
|
|
3987
|
-
this.scrubTo = null;
|
|
3988
|
-
this.instance = new runtime.LinearAnimationInstance(animation, artboard);
|
|
3989
|
-
}
|
|
3990
|
-
Object.defineProperty(Animation.prototype, "name", {
|
|
3991
|
-
/**
|
|
3992
|
-
* Returns the animation's name
|
|
3993
|
-
*/
|
|
3994
|
-
get: function () {
|
|
3995
|
-
return this.animation.name;
|
|
3996
|
-
},
|
|
3997
|
-
enumerable: false,
|
|
3998
|
-
configurable: true
|
|
3999
|
-
});
|
|
4000
|
-
Object.defineProperty(Animation.prototype, "time", {
|
|
4001
|
-
/**
|
|
4002
|
-
* Returns the animation's name
|
|
4003
|
-
*/
|
|
4004
|
-
get: function () {
|
|
4005
|
-
return this.instance.time;
|
|
4006
|
-
},
|
|
4007
|
-
/**
|
|
4008
|
-
* Sets the animation's current time
|
|
4009
|
-
*/
|
|
4010
|
-
set: function (value) {
|
|
4011
|
-
this.instance.time = value;
|
|
4012
|
-
},
|
|
4013
|
-
enumerable: false,
|
|
4014
|
-
configurable: true
|
|
4015
|
-
});
|
|
4016
|
-
Object.defineProperty(Animation.prototype, "loopValue", {
|
|
4017
|
-
/**
|
|
4018
|
-
* Returns the animation's loop type
|
|
4019
|
-
*/
|
|
4020
|
-
get: function () {
|
|
4021
|
-
return this.animation.loopValue;
|
|
4022
|
-
},
|
|
4023
|
-
enumerable: false,
|
|
4024
|
-
configurable: true
|
|
4025
|
-
});
|
|
4026
|
-
Object.defineProperty(Animation.prototype, "needsScrub", {
|
|
4027
|
-
/**
|
|
4028
|
-
* Indicates whether the animation needs to be scrubbed.
|
|
4029
|
-
* @returns `true` if the animation needs to be scrubbed, `false` otherwise.
|
|
4030
|
-
*/
|
|
4031
|
-
get: function () {
|
|
4032
|
-
return this.scrubTo !== null;
|
|
4033
|
-
},
|
|
4034
|
-
enumerable: false,
|
|
4035
|
-
configurable: true
|
|
4036
|
-
});
|
|
4037
|
-
/**
|
|
4038
|
-
* Advances the animation by the give time. If the animation needs scrubbing,
|
|
4039
|
-
* time is ignored and the stored scrub value is used.
|
|
4040
|
-
* @param time the time to advance the animation by if no scrubbing required
|
|
4041
|
-
*/
|
|
4042
|
-
Animation.prototype.advance = function (time) {
|
|
4043
|
-
if (this.scrubTo === null) {
|
|
4044
|
-
this.instance.advance(time);
|
|
4045
|
-
}
|
|
4046
|
-
else {
|
|
4047
|
-
this.instance.time = 0;
|
|
4048
|
-
this.instance.advance(this.scrubTo);
|
|
4049
|
-
this.scrubTo = null;
|
|
4050
|
-
}
|
|
4051
|
-
};
|
|
4052
|
-
/**
|
|
4053
|
-
* Apply interpolated keyframe values to the artboard. This should be called after calling
|
|
4054
|
-
* .advance() on an animation instance so that new values are applied to properties.
|
|
4055
|
-
*
|
|
4056
|
-
* Note: This does not advance the artboard, which updates all objects on the artboard
|
|
4057
|
-
* @param mix - Mix value for the animation from 0 to 1
|
|
4058
|
-
*/
|
|
4059
|
-
Animation.prototype.apply = function (mix) {
|
|
4060
|
-
this.instance.apply(mix);
|
|
4061
|
-
};
|
|
4062
|
-
/**
|
|
4063
|
-
* Deletes the backing Wasm animation instance; once this is called, this
|
|
4064
|
-
* animation is no more.
|
|
4065
|
-
*/
|
|
4066
|
-
Animation.prototype.cleanup = function () {
|
|
4067
|
-
this.instance.delete();
|
|
4068
|
-
};
|
|
4069
|
-
return Animation;
|
|
4070
|
-
}());
|
|
4071
|
-
|
|
4072
|
-
|
|
4206
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@rive-app/webgl","version":"2.37.0","description":"Rive\'s webgl 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.wasm","rive_fallback.wasm","rive.js.map","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
|
|
4073
4207
|
|
|
4074
4208
|
/***/ }),
|
|
4075
|
-
/*
|
|
4209
|
+
/* 6 */
|
|
4076
4210
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
4077
4211
|
|
|
4078
4212
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -4087,21 +4221,24 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4087
4221
|
/* harmony export */ FontWrapper: () => (/* reexport safe */ _finalizationRegistry__WEBPACK_IMPORTED_MODULE_2__.FontWrapper),
|
|
4088
4222
|
/* harmony export */ ImageAssetWrapper: () => (/* reexport safe */ _finalizationRegistry__WEBPACK_IMPORTED_MODULE_2__.ImageAssetWrapper),
|
|
4089
4223
|
/* harmony export */ ImageWrapper: () => (/* reexport safe */ _finalizationRegistry__WEBPACK_IMPORTED_MODULE_2__.ImageWrapper),
|
|
4224
|
+
/* harmony export */ RiveFont: () => (/* reexport safe */ _riveFont__WEBPACK_IMPORTED_MODULE_3__.RiveFont),
|
|
4090
4225
|
/* harmony export */ createFinalization: () => (/* reexport safe */ _finalizationRegistry__WEBPACK_IMPORTED_MODULE_2__.createFinalization),
|
|
4091
4226
|
/* harmony export */ finalizationRegistry: () => (/* reexport safe */ _finalizationRegistry__WEBPACK_IMPORTED_MODULE_2__.finalizationRegistry),
|
|
4092
4227
|
/* harmony export */ registerTouchInteractions: () => (/* reexport safe */ _registerTouchInteractions__WEBPACK_IMPORTED_MODULE_0__.registerTouchInteractions),
|
|
4093
4228
|
/* harmony export */ sanitizeUrl: () => (/* reexport safe */ _sanitizeUrl__WEBPACK_IMPORTED_MODULE_1__.sanitizeUrl)
|
|
4094
4229
|
/* harmony export */ });
|
|
4095
|
-
/* harmony import */ var _registerTouchInteractions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
4096
|
-
/* harmony import */ var _sanitizeUrl__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
4097
|
-
/* harmony import */ var _finalizationRegistry__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
4230
|
+
/* harmony import */ var _registerTouchInteractions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7);
|
|
4231
|
+
/* harmony import */ var _sanitizeUrl__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8);
|
|
4232
|
+
/* harmony import */ var _finalizationRegistry__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9);
|
|
4233
|
+
/* harmony import */ var _riveFont__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(10);
|
|
4234
|
+
|
|
4098
4235
|
|
|
4099
4236
|
|
|
4100
4237
|
|
|
4101
4238
|
|
|
4102
4239
|
|
|
4103
4240
|
/***/ }),
|
|
4104
|
-
/*
|
|
4241
|
+
/* 7 */
|
|
4105
4242
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
4106
4243
|
|
|
4107
4244
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -4355,7 +4492,7 @@ var registerTouchInteractions = function (_a) {
|
|
|
4355
4492
|
|
|
4356
4493
|
|
|
4357
4494
|
/***/ }),
|
|
4358
|
-
/*
|
|
4495
|
+
/* 8 */
|
|
4359
4496
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
4360
4497
|
|
|
4361
4498
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -4408,7 +4545,7 @@ function sanitizeUrl(url) {
|
|
|
4408
4545
|
|
|
4409
4546
|
|
|
4410
4547
|
/***/ }),
|
|
4411
|
-
/*
|
|
4548
|
+
/* 9 */
|
|
4412
4549
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
4413
4550
|
|
|
4414
4551
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -4686,6 +4823,79 @@ var createFinalization = function (target, finalizable) {
|
|
|
4686
4823
|
|
|
4687
4824
|
|
|
4688
4825
|
|
|
4826
|
+
/***/ }),
|
|
4827
|
+
/* 10 */
|
|
4828
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
4829
|
+
|
|
4830
|
+
__webpack_require__.r(__webpack_exports__);
|
|
4831
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
4832
|
+
/* harmony export */ RiveFont: () => (/* binding */ RiveFont)
|
|
4833
|
+
/* harmony export */ });
|
|
4834
|
+
/* harmony import */ var _runtimeLoader__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3);
|
|
4835
|
+
|
|
4836
|
+
// Class to manage fallback fonts for Rive.
|
|
4837
|
+
var RiveFont = /** @class */ (function () {
|
|
4838
|
+
// Class is never instantiated
|
|
4839
|
+
function RiveFont() {
|
|
4840
|
+
}
|
|
4841
|
+
/**
|
|
4842
|
+
* Set a callback to dynamically set a list of fallback fonts based on the missing glyph and/or style of the default font.
|
|
4843
|
+
* Set null to clear the callback.
|
|
4844
|
+
* @param fontCallback Callback to set a list of fallback fonts.
|
|
4845
|
+
*/
|
|
4846
|
+
RiveFont.setFallbackFontCallback = function (fontCallback) {
|
|
4847
|
+
RiveFont._fallbackFontCallback = fontCallback !== null && fontCallback !== void 0 ? fontCallback : null;
|
|
4848
|
+
RiveFont._wireFallbackProc();
|
|
4849
|
+
};
|
|
4850
|
+
// Get the pointer value to the Embind Font object from FontWrapper
|
|
4851
|
+
RiveFont._fontToPtr = function (fontWrapper) {
|
|
4852
|
+
var _a;
|
|
4853
|
+
if (fontWrapper == null)
|
|
4854
|
+
return null;
|
|
4855
|
+
var embindFont = fontWrapper.nativeFont;
|
|
4856
|
+
var ptr = (_a = embindFont === null || embindFont === void 0 ? void 0 : embindFont.ptr) === null || _a === void 0 ? void 0 : _a.call(embindFont);
|
|
4857
|
+
return ptr !== null && ptr !== void 0 ? ptr : null;
|
|
4858
|
+
};
|
|
4859
|
+
RiveFont._getFallbackPtr = function (fonts, index) {
|
|
4860
|
+
if (index < 0 || index >= fonts.length)
|
|
4861
|
+
return null;
|
|
4862
|
+
return RiveFont._fontToPtr(fonts[index]);
|
|
4863
|
+
};
|
|
4864
|
+
// Create the callback Rive expects to use for fallback fonts (regardless if set via a user-supplied static list, or callback)
|
|
4865
|
+
// 1. Ensure WASM is ready
|
|
4866
|
+
// 2. Bias for checking user callback over static list of fonts and pass it down to Rive to store as reference
|
|
4867
|
+
// - When calling the user callback, check if we have any fonts left to check, and if not, return null to indicate there are no more fallbacks to try.
|
|
4868
|
+
// - If the user callback returns an array of fonts, pass the pointer value to Rive of the font to try
|
|
4869
|
+
// 3. If no callback is provided, or the callback returns null, try the static list of fonts if they set any
|
|
4870
|
+
// 4. If no fallback method is set, return null.
|
|
4871
|
+
RiveFont._wireFallbackProc = function () {
|
|
4872
|
+
_runtimeLoader__WEBPACK_IMPORTED_MODULE_0__.RuntimeLoader.getInstance(function (rive) {
|
|
4873
|
+
var cb = RiveFont._fallbackFontCallback;
|
|
4874
|
+
if (cb) {
|
|
4875
|
+
rive.setFallbackFontCallback((function (missingGlyph, fallbackFontIndex, weight) {
|
|
4876
|
+
var fontsReturned = cb(missingGlyph, weight);
|
|
4877
|
+
if (fontsReturned) {
|
|
4878
|
+
if (Array.isArray(fontsReturned)) {
|
|
4879
|
+
return RiveFont._getFallbackPtr(fontsReturned, fallbackFontIndex);
|
|
4880
|
+
}
|
|
4881
|
+
// If the user callback only returns a single font, provide it to Rive the first time, otherwise if Rive
|
|
4882
|
+
// calls back a second time, return null to indicate there are no more fallbacks to try.
|
|
4883
|
+
return fallbackFontIndex === 0 ? RiveFont._fontToPtr(fontsReturned) : null;
|
|
4884
|
+
}
|
|
4885
|
+
return null;
|
|
4886
|
+
}));
|
|
4887
|
+
}
|
|
4888
|
+
else {
|
|
4889
|
+
rive.setFallbackFontCallback(null);
|
|
4890
|
+
}
|
|
4891
|
+
});
|
|
4892
|
+
};
|
|
4893
|
+
RiveFont._fallbackFontCallback = null;
|
|
4894
|
+
return RiveFont;
|
|
4895
|
+
}());
|
|
4896
|
+
|
|
4897
|
+
|
|
4898
|
+
|
|
4689
4899
|
/***/ })
|
|
4690
4900
|
/******/ ]);
|
|
4691
4901
|
/************************************************************************/
|
|
@@ -4759,7 +4969,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4759
4969
|
/* harmony export */ Rive: () => (/* binding */ Rive),
|
|
4760
4970
|
/* harmony export */ RiveEventType: () => (/* binding */ RiveEventType),
|
|
4761
4971
|
/* harmony export */ RiveFile: () => (/* binding */ RiveFile),
|
|
4762
|
-
/* harmony export */
|
|
4972
|
+
/* harmony export */ RiveFont: () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_2__.RiveFont),
|
|
4973
|
+
/* harmony export */ RuntimeLoader: () => (/* reexport safe */ _runtimeLoader__WEBPACK_IMPORTED_MODULE_1__.RuntimeLoader),
|
|
4763
4974
|
/* harmony export */ StateMachineInput: () => (/* binding */ StateMachineInput),
|
|
4764
4975
|
/* harmony export */ StateMachineInputType: () => (/* binding */ StateMachineInputType),
|
|
4765
4976
|
/* harmony export */ Testing: () => (/* binding */ Testing),
|
|
@@ -4779,10 +4990,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4779
4990
|
/* harmony export */ decodeFont: () => (/* binding */ decodeFont),
|
|
4780
4991
|
/* harmony export */ decodeImage: () => (/* binding */ decodeImage)
|
|
4781
4992
|
/* harmony export */ });
|
|
4782
|
-
/* harmony import */ var
|
|
4783
|
-
/* harmony import */ var
|
|
4784
|
-
/* harmony import */ var
|
|
4785
|
-
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5);
|
|
4993
|
+
/* harmony import */ var _animation__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
|
|
4994
|
+
/* harmony import */ var _runtimeLoader__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3);
|
|
4995
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6);
|
|
4786
4996
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
4787
4997
|
var extendStatics = function (d, b) {
|
|
4788
4998
|
extendStatics = Object.setPrototypeOf ||
|
|
@@ -4857,7 +5067,6 @@ var __spreadArray = (undefined && undefined.__spreadArray) || function (to, from
|
|
|
4857
5067
|
|
|
4858
5068
|
|
|
4859
5069
|
|
|
4860
|
-
|
|
4861
5070
|
var RiveError = /** @class */ (function (_super) {
|
|
4862
5071
|
__extends(RiveError, _super);
|
|
4863
5072
|
function RiveError() {
|
|
@@ -4867,6 +5076,7 @@ var RiveError = /** @class */ (function (_super) {
|
|
|
4867
5076
|
}
|
|
4868
5077
|
return RiveError;
|
|
4869
5078
|
}(Error));
|
|
5079
|
+
|
|
4870
5080
|
// #regions helpers
|
|
4871
5081
|
var resolveErrorMessage = function (error) {
|
|
4872
5082
|
return error && error.isHandledError
|
|
@@ -4991,115 +5201,8 @@ var Layout = /** @class */ (function () {
|
|
|
4991
5201
|
return Layout;
|
|
4992
5202
|
}());
|
|
4993
5203
|
|
|
4994
|
-
//
|
|
4995
|
-
//
|
|
4996
|
-
var RuntimeLoader = /** @class */ (function () {
|
|
4997
|
-
// Class is never instantiated
|
|
4998
|
-
function RuntimeLoader() {
|
|
4999
|
-
}
|
|
5000
|
-
// Loads the runtime
|
|
5001
|
-
RuntimeLoader.loadRuntime = function () {
|
|
5002
|
-
if (RuntimeLoader.enablePerfMarks)
|
|
5003
|
-
performance.mark('rive:wasm-init:start');
|
|
5004
|
-
_rive_advanced_mjs__WEBPACK_IMPORTED_MODULE_0__["default"]({
|
|
5005
|
-
// Loads Wasm bundle
|
|
5006
|
-
locateFile: function () { return RuntimeLoader.wasmURL; },
|
|
5007
|
-
})
|
|
5008
|
-
.then(function (rive) {
|
|
5009
|
-
var _a;
|
|
5010
|
-
if (RuntimeLoader.enablePerfMarks) {
|
|
5011
|
-
performance.mark('rive:wasm-init:end');
|
|
5012
|
-
performance.measure('rive:wasm-init', 'rive:wasm-init:start', 'rive:wasm-init:end');
|
|
5013
|
-
}
|
|
5014
|
-
RuntimeLoader.runtime = rive;
|
|
5015
|
-
// Fire all the callbacks
|
|
5016
|
-
while (RuntimeLoader.callBackQueue.length > 0) {
|
|
5017
|
-
(_a = RuntimeLoader.callBackQueue.shift()) === null || _a === void 0 ? void 0 : _a(RuntimeLoader.runtime);
|
|
5018
|
-
}
|
|
5019
|
-
})
|
|
5020
|
-
.catch(function (error) {
|
|
5021
|
-
// Capture specific error details
|
|
5022
|
-
var errorDetails = {
|
|
5023
|
-
message: (error === null || error === void 0 ? void 0 : error.message) || "Unknown error",
|
|
5024
|
-
type: (error === null || error === void 0 ? void 0 : error.name) || "Error",
|
|
5025
|
-
// Some browsers may provide additional WebAssembly-specific details
|
|
5026
|
-
wasmError: error instanceof WebAssembly.CompileError ||
|
|
5027
|
-
error instanceof WebAssembly.RuntimeError,
|
|
5028
|
-
originalError: error,
|
|
5029
|
-
};
|
|
5030
|
-
// Log detailed error for debugging
|
|
5031
|
-
console.debug("Rive WASM load error details:", errorDetails);
|
|
5032
|
-
// In case unpkg fails, or the wasm was not supported, we try to load the fallback module from jsdelivr.
|
|
5033
|
-
// This `rive_fallback.wasm` is compiled to support older architecture.
|
|
5034
|
-
// TODO: (Gordon): preemptively test browser support and load the correct wasm file. Then use jsdelvr only if unpkg fails.
|
|
5035
|
-
var backupJsdelivrUrl = "https://cdn.jsdelivr.net/npm/".concat(package_json__WEBPACK_IMPORTED_MODULE_1__.name, "@").concat(package_json__WEBPACK_IMPORTED_MODULE_1__.version, "/rive_fallback.wasm");
|
|
5036
|
-
if (RuntimeLoader.wasmURL.toLowerCase() !== backupJsdelivrUrl) {
|
|
5037
|
-
console.warn("Failed to load WASM from ".concat(RuntimeLoader.wasmURL, " (").concat(errorDetails.message, "), trying jsdelivr as a backup"));
|
|
5038
|
-
RuntimeLoader.setWasmUrl(backupJsdelivrUrl);
|
|
5039
|
-
RuntimeLoader.loadRuntime();
|
|
5040
|
-
}
|
|
5041
|
-
else {
|
|
5042
|
-
var errorMessage = [
|
|
5043
|
-
"Could not load Rive WASM file from ".concat(RuntimeLoader.wasmURL, " or ").concat(backupJsdelivrUrl, "."),
|
|
5044
|
-
"Possible reasons:",
|
|
5045
|
-
"- Network connection is down",
|
|
5046
|
-
"- WebAssembly is not supported in this environment",
|
|
5047
|
-
"- The WASM file is corrupted or incompatible",
|
|
5048
|
-
"\nError details:",
|
|
5049
|
-
"- Type: ".concat(errorDetails.type),
|
|
5050
|
-
"- Message: ".concat(errorDetails.message),
|
|
5051
|
-
"- WebAssembly-specific error: ".concat(errorDetails.wasmError),
|
|
5052
|
-
"\nTo resolve, you may need to:",
|
|
5053
|
-
"1. Check your network connection",
|
|
5054
|
-
"2. Set a new WASM source via RuntimeLoader.setWasmUrl()",
|
|
5055
|
-
"3. Call RuntimeLoader.loadRuntime() again",
|
|
5056
|
-
].join("\n");
|
|
5057
|
-
console.error(errorMessage);
|
|
5058
|
-
}
|
|
5059
|
-
});
|
|
5060
|
-
};
|
|
5061
|
-
// Provides a runtime instance via a callback
|
|
5062
|
-
RuntimeLoader.getInstance = function (callback) {
|
|
5063
|
-
// If it's not loading, start loading runtime
|
|
5064
|
-
if (!RuntimeLoader.isLoading) {
|
|
5065
|
-
RuntimeLoader.isLoading = true;
|
|
5066
|
-
RuntimeLoader.loadRuntime();
|
|
5067
|
-
}
|
|
5068
|
-
if (!RuntimeLoader.runtime) {
|
|
5069
|
-
RuntimeLoader.callBackQueue.push(callback);
|
|
5070
|
-
}
|
|
5071
|
-
else {
|
|
5072
|
-
callback(RuntimeLoader.runtime);
|
|
5073
|
-
}
|
|
5074
|
-
};
|
|
5075
|
-
// Provides a runtime instance via a promise
|
|
5076
|
-
RuntimeLoader.awaitInstance = function () {
|
|
5077
|
-
return new Promise(function (resolve) {
|
|
5078
|
-
return RuntimeLoader.getInstance(function (rive) { return resolve(rive); });
|
|
5079
|
-
});
|
|
5080
|
-
};
|
|
5081
|
-
// Manually sets the wasm url
|
|
5082
|
-
RuntimeLoader.setWasmUrl = function (url) {
|
|
5083
|
-
RuntimeLoader.wasmURL = url;
|
|
5084
|
-
};
|
|
5085
|
-
// Gets the current wasm url
|
|
5086
|
-
RuntimeLoader.getWasmUrl = function () {
|
|
5087
|
-
return RuntimeLoader.wasmURL;
|
|
5088
|
-
};
|
|
5089
|
-
// Flag to indicate that loading has started/completed
|
|
5090
|
-
RuntimeLoader.isLoading = false;
|
|
5091
|
-
// List of callbacks for the runtime that come in while loading
|
|
5092
|
-
RuntimeLoader.callBackQueue = [];
|
|
5093
|
-
// Path to the Wasm file; default path works for testing only;
|
|
5094
|
-
// if embedded wasm is used then this is never used.
|
|
5095
|
-
RuntimeLoader.wasmURL = "https://unpkg.com/".concat(package_json__WEBPACK_IMPORTED_MODULE_1__.name, "@").concat(package_json__WEBPACK_IMPORTED_MODULE_1__.version, "/rive.wasm");
|
|
5096
|
-
/**
|
|
5097
|
-
* When true, performance.mark / performance.measure entries are emitted for
|
|
5098
|
-
* WASM initialization.
|
|
5099
|
-
*/
|
|
5100
|
-
RuntimeLoader.enablePerfMarks = false;
|
|
5101
|
-
return RuntimeLoader;
|
|
5102
|
-
}());
|
|
5204
|
+
// #endregion
|
|
5205
|
+
// #region runtime
|
|
5103
5206
|
|
|
5104
5207
|
// #endregion
|
|
5105
5208
|
// #region state machines
|
|
@@ -5378,7 +5481,7 @@ var Animator = /** @class */ (function () {
|
|
|
5378
5481
|
// Try to create a new animation instance
|
|
5379
5482
|
var anim = this.artboard.animationByName(animatables[i]);
|
|
5380
5483
|
if (anim) {
|
|
5381
|
-
var newAnimation = new
|
|
5484
|
+
var newAnimation = new _animation__WEBPACK_IMPORTED_MODULE_0__.Animation(anim, this.artboard, this.runtime, playing);
|
|
5382
5485
|
// Display the first frame of the specified animation
|
|
5383
5486
|
newAnimation.advance(0);
|
|
5384
5487
|
newAnimation.apply(1.0);
|
|
@@ -5432,7 +5535,7 @@ var Animator = /** @class */ (function () {
|
|
|
5432
5535
|
// Try to create a new animation instance
|
|
5433
5536
|
var anim = this.artboard.animationByName(animatables[i]);
|
|
5434
5537
|
if (anim) {
|
|
5435
|
-
var newAnimation = new
|
|
5538
|
+
var newAnimation = new _animation__WEBPACK_IMPORTED_MODULE_0__.Animation(anim, this.artboard, this.runtime, playing);
|
|
5436
5539
|
// Display the first frame of the specified animation
|
|
5437
5540
|
newAnimation.advance(0);
|
|
5438
5541
|
newAnimation.apply(1.0);
|
|
@@ -6051,7 +6154,7 @@ var RiveFile = /** @class */ (function () {
|
|
|
6051
6154
|
: true;
|
|
6052
6155
|
this.enablePerfMarks = !!params.enablePerfMarks;
|
|
6053
6156
|
if (this.enablePerfMarks)
|
|
6054
|
-
RuntimeLoader.enablePerfMarks = true;
|
|
6157
|
+
_runtimeLoader__WEBPACK_IMPORTED_MODULE_1__.RuntimeLoader.enablePerfMarks = true;
|
|
6055
6158
|
// New event management system
|
|
6056
6159
|
this.eventManager = new EventManager();
|
|
6057
6160
|
if (params.onLoad)
|
|
@@ -6088,7 +6191,7 @@ var RiveFile = /** @class */ (function () {
|
|
|
6088
6191
|
return [2 /*return*/];
|
|
6089
6192
|
}
|
|
6090
6193
|
if (this.assetLoader) {
|
|
6091
|
-
loaderWrapper = new
|
|
6194
|
+
loaderWrapper = new _utils__WEBPACK_IMPORTED_MODULE_2__.CustomFileAssetLoaderWrapper(this.runtime, this.assetLoader);
|
|
6092
6195
|
loader = loaderWrapper.assetLoader;
|
|
6093
6196
|
}
|
|
6094
6197
|
// Load the Rive file
|
|
@@ -6102,8 +6205,8 @@ var RiveFile = /** @class */ (function () {
|
|
|
6102
6205
|
performance.mark('rive:file-load:end');
|
|
6103
6206
|
performance.measure('rive:file-load', 'rive:file-load:start', 'rive:file-load:end');
|
|
6104
6207
|
}
|
|
6105
|
-
fileFinalizer = new
|
|
6106
|
-
|
|
6208
|
+
fileFinalizer = new _utils__WEBPACK_IMPORTED_MODULE_2__.FileFinalizer(this.file);
|
|
6209
|
+
_utils__WEBPACK_IMPORTED_MODULE_2__.finalizationRegistry.register(this, fileFinalizer);
|
|
6107
6210
|
if (this.destroyed) {
|
|
6108
6211
|
this.releaseFile();
|
|
6109
6212
|
return [2 /*return*/];
|
|
@@ -6147,7 +6250,7 @@ var RiveFile = /** @class */ (function () {
|
|
|
6147
6250
|
return __generator(this, function (_a) {
|
|
6148
6251
|
if (this.enablePerfMarks)
|
|
6149
6252
|
performance.mark('rive:await-wasm:start');
|
|
6150
|
-
runtimePromise = RuntimeLoader.awaitInstance();
|
|
6253
|
+
runtimePromise = _runtimeLoader__WEBPACK_IMPORTED_MODULE_1__.RuntimeLoader.awaitInstance();
|
|
6151
6254
|
if (this.enablePerfMarks) {
|
|
6152
6255
|
runtimePromise.then(function () {
|
|
6153
6256
|
performance.mark('rive:await-wasm:end');
|
|
@@ -6261,7 +6364,7 @@ var RiveFile = /** @class */ (function () {
|
|
|
6261
6364
|
RiveFile.prototype.createBindableArtboard = function (nativeBindableArtboard) {
|
|
6262
6365
|
if (nativeBindableArtboard != null) {
|
|
6263
6366
|
var bindableArtboard = new BindableArtboard(nativeBindableArtboard);
|
|
6264
|
-
(0,
|
|
6367
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_2__.createFinalization)(bindableArtboard, bindableArtboard.nativeArtboard);
|
|
6265
6368
|
this.bindableArtboards.push(bindableArtboard);
|
|
6266
6369
|
return bindableArtboard;
|
|
6267
6370
|
}
|
|
@@ -6407,7 +6510,7 @@ var Rive = /** @class */ (function () {
|
|
|
6407
6510
|
: params.enableRiveAssetCDN;
|
|
6408
6511
|
this.enablePerfMarks = !!params.enablePerfMarks;
|
|
6409
6512
|
if (this.enablePerfMarks)
|
|
6410
|
-
RuntimeLoader.enablePerfMarks = true;
|
|
6513
|
+
_runtimeLoader__WEBPACK_IMPORTED_MODULE_1__.RuntimeLoader.enablePerfMarks = true;
|
|
6411
6514
|
// New event management system
|
|
6412
6515
|
this.eventManager = new EventManager();
|
|
6413
6516
|
if (params.onLoad)
|
|
@@ -6500,7 +6603,7 @@ var Rive = /** @class */ (function () {
|
|
|
6500
6603
|
this.loaded = false;
|
|
6501
6604
|
this.readyForPlaying = false;
|
|
6502
6605
|
// Ensure the runtime is loaded
|
|
6503
|
-
RuntimeLoader.awaitInstance()
|
|
6606
|
+
_runtimeLoader__WEBPACK_IMPORTED_MODULE_1__.RuntimeLoader.awaitInstance()
|
|
6504
6607
|
.then(function (runtime) {
|
|
6505
6608
|
if (_this.destroyed) {
|
|
6506
6609
|
return;
|
|
@@ -6558,7 +6661,7 @@ var Rive = /** @class */ (function () {
|
|
|
6558
6661
|
"isTouchScrollEnabled" in riveListenerOptions) {
|
|
6559
6662
|
touchScrollEnabledOption = riveListenerOptions.isTouchScrollEnabled;
|
|
6560
6663
|
}
|
|
6561
|
-
this.eventCleanup = (0,
|
|
6664
|
+
this.eventCleanup = (0,_utils__WEBPACK_IMPORTED_MODULE_2__.registerTouchInteractions)({
|
|
6562
6665
|
canvas: this.canvas,
|
|
6563
6666
|
artboard: this.artboard,
|
|
6564
6667
|
stateMachines: activeStateMachines,
|
|
@@ -6720,7 +6823,7 @@ var Rive = /** @class */ (function () {
|
|
|
6720
6823
|
var runtimeInstance = viewModel.defaultInstance();
|
|
6721
6824
|
if (runtimeInstance !== null) {
|
|
6722
6825
|
var viewModelInstance = new ViewModelInstance(runtimeInstance, null);
|
|
6723
|
-
(0,
|
|
6826
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_2__.createFinalization)(viewModelInstance, viewModelInstance.runtimeInstance);
|
|
6724
6827
|
this.bindViewModelInstance(viewModelInstance);
|
|
6725
6828
|
}
|
|
6726
6829
|
}
|
|
@@ -6814,10 +6917,10 @@ var Rive = /** @class */ (function () {
|
|
|
6814
6917
|
if (this.automaticallyHandleEvents) {
|
|
6815
6918
|
var newAnchorTag = document.createElement("a");
|
|
6816
6919
|
var _c = event_1, url = _c.url, target = _c.target;
|
|
6817
|
-
var sanitizedUrl = (0,
|
|
6920
|
+
var sanitizedUrl = (0,_utils__WEBPACK_IMPORTED_MODULE_2__.sanitizeUrl)(url);
|
|
6818
6921
|
url && newAnchorTag.setAttribute("href", sanitizedUrl);
|
|
6819
6922
|
target && newAnchorTag.setAttribute("target", target);
|
|
6820
|
-
if (sanitizedUrl && sanitizedUrl !==
|
|
6923
|
+
if (sanitizedUrl && sanitizedUrl !== _utils__WEBPACK_IMPORTED_MODULE_2__.BLANK_URL) {
|
|
6821
6924
|
newAnchorTag.click();
|
|
6822
6925
|
}
|
|
6823
6926
|
}
|
|
@@ -7888,7 +7991,7 @@ var ViewModel = /** @class */ (function () {
|
|
|
7888
7991
|
var instance = this._viewModel.instanceByIndex(index);
|
|
7889
7992
|
if (instance !== null) {
|
|
7890
7993
|
var viewModelInstance = new ViewModelInstance(instance, null);
|
|
7891
|
-
(0,
|
|
7994
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_2__.createFinalization)(viewModelInstance, instance);
|
|
7892
7995
|
return viewModelInstance;
|
|
7893
7996
|
}
|
|
7894
7997
|
return null;
|
|
@@ -7897,7 +8000,7 @@ var ViewModel = /** @class */ (function () {
|
|
|
7897
8000
|
var instance = this._viewModel.instanceByName(name);
|
|
7898
8001
|
if (instance !== null) {
|
|
7899
8002
|
var viewModelInstance = new ViewModelInstance(instance, null);
|
|
7900
|
-
(0,
|
|
8003
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_2__.createFinalization)(viewModelInstance, instance);
|
|
7901
8004
|
return viewModelInstance;
|
|
7902
8005
|
}
|
|
7903
8006
|
return null;
|
|
@@ -7906,7 +8009,7 @@ var ViewModel = /** @class */ (function () {
|
|
|
7906
8009
|
var runtimeInstance = this._viewModel.defaultInstance();
|
|
7907
8010
|
if (runtimeInstance !== null) {
|
|
7908
8011
|
var viewModelInstance = new ViewModelInstance(runtimeInstance, null);
|
|
7909
|
-
(0,
|
|
8012
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_2__.createFinalization)(viewModelInstance, runtimeInstance);
|
|
7910
8013
|
return viewModelInstance;
|
|
7911
8014
|
}
|
|
7912
8015
|
return null;
|
|
@@ -7915,7 +8018,7 @@ var ViewModel = /** @class */ (function () {
|
|
|
7915
8018
|
var runtimeInstance = this._viewModel.instance();
|
|
7916
8019
|
if (runtimeInstance !== null) {
|
|
7917
8020
|
var viewModelInstance = new ViewModelInstance(runtimeInstance, null);
|
|
7918
|
-
(0,
|
|
8021
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_2__.createFinalization)(viewModelInstance, runtimeInstance);
|
|
7919
8022
|
return viewModelInstance;
|
|
7920
8023
|
}
|
|
7921
8024
|
return null;
|
|
@@ -8180,7 +8283,7 @@ var ViewModelInstance = /** @class */ (function () {
|
|
|
8180
8283
|
var viewModelRuntimeInstance = (_a = this._runtimeInstance) === null || _a === void 0 ? void 0 : _a.viewModel(name);
|
|
8181
8284
|
if (viewModelRuntimeInstance !== null) {
|
|
8182
8285
|
var viewModelInstance = new ViewModelInstance(viewModelRuntimeInstance, this);
|
|
8183
|
-
(0,
|
|
8286
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_2__.createFinalization)(viewModelInstance, viewModelRuntimeInstance);
|
|
8184
8287
|
viewModelInstance.internalIncrementReferenceCount();
|
|
8185
8288
|
this._viewModelInstances.set(name, viewModelInstance);
|
|
8186
8289
|
return viewModelInstance;
|
|
@@ -8597,7 +8700,7 @@ var ViewModelInstanceList = /** @class */ (function (_super) {
|
|
|
8597
8700
|
var runtimeInstance = this._viewModelInstanceValue.instanceAt(index);
|
|
8598
8701
|
if (runtimeInstance != null) {
|
|
8599
8702
|
var viewModelInstance = new ViewModelInstance(runtimeInstance, this._parentViewModel);
|
|
8600
|
-
(0,
|
|
8703
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_2__.createFinalization)(viewModelInstance, runtimeInstance);
|
|
8601
8704
|
return viewModelInstance;
|
|
8602
8705
|
}
|
|
8603
8706
|
return null;
|
|
@@ -8750,15 +8853,15 @@ var decodeAudio = function (bytes) { return __awaiter(void 0, void 0, void 0, fu
|
|
|
8750
8853
|
switch (_a.label) {
|
|
8751
8854
|
case 0:
|
|
8752
8855
|
decodedPromise = new Promise(function (resolve) {
|
|
8753
|
-
return RuntimeLoader.getInstance(function (rive) {
|
|
8856
|
+
return _runtimeLoader__WEBPACK_IMPORTED_MODULE_1__.RuntimeLoader.getInstance(function (rive) {
|
|
8754
8857
|
rive.decodeAudio(bytes, resolve);
|
|
8755
8858
|
});
|
|
8756
8859
|
});
|
|
8757
8860
|
return [4 /*yield*/, decodedPromise];
|
|
8758
8861
|
case 1:
|
|
8759
8862
|
audio = _a.sent();
|
|
8760
|
-
audioWrapper = new
|
|
8761
|
-
|
|
8863
|
+
audioWrapper = new _utils__WEBPACK_IMPORTED_MODULE_2__.AudioWrapper(audio);
|
|
8864
|
+
_utils__WEBPACK_IMPORTED_MODULE_2__.finalizationRegistry.register(audioWrapper, audio);
|
|
8762
8865
|
return [2 /*return*/, audioWrapper];
|
|
8763
8866
|
}
|
|
8764
8867
|
});
|
|
@@ -8775,15 +8878,15 @@ var decodeImage = function (bytes) { return __awaiter(void 0, void 0, void 0, fu
|
|
|
8775
8878
|
switch (_a.label) {
|
|
8776
8879
|
case 0:
|
|
8777
8880
|
decodedPromise = new Promise(function (resolve) {
|
|
8778
|
-
return RuntimeLoader.getInstance(function (rive) {
|
|
8881
|
+
return _runtimeLoader__WEBPACK_IMPORTED_MODULE_1__.RuntimeLoader.getInstance(function (rive) {
|
|
8779
8882
|
rive.decodeImage(bytes, resolve);
|
|
8780
8883
|
});
|
|
8781
8884
|
});
|
|
8782
8885
|
return [4 /*yield*/, decodedPromise];
|
|
8783
8886
|
case 1:
|
|
8784
8887
|
image = _a.sent();
|
|
8785
|
-
imageWrapper = new
|
|
8786
|
-
|
|
8888
|
+
imageWrapper = new _utils__WEBPACK_IMPORTED_MODULE_2__.ImageWrapper(image);
|
|
8889
|
+
_utils__WEBPACK_IMPORTED_MODULE_2__.finalizationRegistry.register(imageWrapper, image);
|
|
8787
8890
|
return [2 /*return*/, imageWrapper];
|
|
8788
8891
|
}
|
|
8789
8892
|
});
|
|
@@ -8800,15 +8903,15 @@ var decodeFont = function (bytes) { return __awaiter(void 0, void 0, void 0, fun
|
|
|
8800
8903
|
switch (_a.label) {
|
|
8801
8904
|
case 0:
|
|
8802
8905
|
decodedPromise = new Promise(function (resolve) {
|
|
8803
|
-
return RuntimeLoader.getInstance(function (rive) {
|
|
8906
|
+
return _runtimeLoader__WEBPACK_IMPORTED_MODULE_1__.RuntimeLoader.getInstance(function (rive) {
|
|
8804
8907
|
rive.decodeFont(bytes, resolve);
|
|
8805
8908
|
});
|
|
8806
8909
|
});
|
|
8807
8910
|
return [4 /*yield*/, decodedPromise];
|
|
8808
8911
|
case 1:
|
|
8809
8912
|
font = _a.sent();
|
|
8810
|
-
fontWrapper = new
|
|
8811
|
-
|
|
8913
|
+
fontWrapper = new _utils__WEBPACK_IMPORTED_MODULE_2__.FontWrapper(font);
|
|
8914
|
+
_utils__WEBPACK_IMPORTED_MODULE_2__.finalizationRegistry.register(fontWrapper, font);
|
|
8812
8915
|
return [2 /*return*/, fontWrapper];
|
|
8813
8916
|
}
|
|
8814
8917
|
});
|