@rive-app/canvas-advanced-lite 2.11.0 → 2.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/canvas_advanced.mjs +886 -829
- package/package.json +1 -1
package/canvas_advanced.mjs
CHANGED
|
@@ -5,47 +5,47 @@ var Rive = (() => {
|
|
|
5
5
|
return (
|
|
6
6
|
function(moduleArg = {}) {
|
|
7
7
|
|
|
8
|
-
var
|
|
9
|
-
|
|
8
|
+
var h = moduleArg, aa, ba;
|
|
9
|
+
h.ready = new Promise((b, a) => {
|
|
10
10
|
aa = b;
|
|
11
11
|
ba = a;
|
|
12
12
|
});
|
|
13
13
|
function ca() {
|
|
14
|
-
function b(
|
|
15
|
-
const
|
|
14
|
+
function b(m) {
|
|
15
|
+
const l = d;
|
|
16
16
|
c = a = 0;
|
|
17
17
|
d = new Map();
|
|
18
|
-
|
|
18
|
+
l.forEach(n => {
|
|
19
19
|
try {
|
|
20
|
-
m
|
|
21
|
-
} catch (
|
|
22
|
-
console.error(
|
|
20
|
+
n(m);
|
|
21
|
+
} catch (k) {
|
|
22
|
+
console.error(k);
|
|
23
23
|
}
|
|
24
24
|
});
|
|
25
25
|
this.xa();
|
|
26
26
|
e && e.Ta();
|
|
27
27
|
}
|
|
28
28
|
let a = 0, c = 0, d = new Map(), e = null, g = null;
|
|
29
|
-
this.requestAnimationFrame = function(
|
|
29
|
+
this.requestAnimationFrame = function(m) {
|
|
30
30
|
a || (a = requestAnimationFrame(b.bind(this)));
|
|
31
|
-
const
|
|
32
|
-
d.set(
|
|
33
|
-
return
|
|
31
|
+
const l = ++c;
|
|
32
|
+
d.set(l, m);
|
|
33
|
+
return l;
|
|
34
34
|
};
|
|
35
|
-
this.cancelAnimationFrame = function(
|
|
36
|
-
d.delete(
|
|
35
|
+
this.cancelAnimationFrame = function(m) {
|
|
36
|
+
d.delete(m);
|
|
37
37
|
a && 0 == d.size && (cancelAnimationFrame(a), a = 0);
|
|
38
38
|
};
|
|
39
|
-
this.Ra = function(
|
|
39
|
+
this.Ra = function(m) {
|
|
40
40
|
g && (document.body.remove(g), g = null);
|
|
41
|
-
|
|
42
|
-
g.innerHTML = "RIVE FPS " +
|
|
41
|
+
m || (g = document.createElement("div"), g.style.backgroundColor = "black", g.style.position = "fixed", g.style.right = 0, g.style.top = 0, g.style.color = "white", g.style.padding = "4px", g.innerHTML = "RIVE FPS", m = function(l) {
|
|
42
|
+
g.innerHTML = "RIVE FPS " + l.toFixed(1);
|
|
43
43
|
}, document.body.appendChild(g));
|
|
44
44
|
e = new function() {
|
|
45
|
-
let
|
|
45
|
+
let l = 0, n = 0;
|
|
46
46
|
this.Ta = function() {
|
|
47
|
-
var
|
|
48
|
-
|
|
47
|
+
var k = performance.now();
|
|
48
|
+
n ? (++l, k -= n, 1000 < k && (m(1000 * l / k), l = n = 0)) : (n = k, l = 0);
|
|
49
49
|
};
|
|
50
50
|
}();
|
|
51
51
|
};
|
|
@@ -71,48 +71,48 @@ function da(b) {
|
|
|
71
71
|
return c << b;
|
|
72
72
|
};
|
|
73
73
|
}
|
|
74
|
-
const ea =
|
|
75
|
-
|
|
74
|
+
const ea = h.onRuntimeInitialized;
|
|
75
|
+
h.onRuntimeInitialized = function() {
|
|
76
76
|
ea && ea();
|
|
77
|
-
let b =
|
|
78
|
-
|
|
77
|
+
let b = h.decodeFont;
|
|
78
|
+
h.decodeFont = function(c, d) {
|
|
79
79
|
c = b(c);
|
|
80
80
|
d(c);
|
|
81
81
|
};
|
|
82
|
-
const a =
|
|
83
|
-
|
|
84
|
-
let d =
|
|
85
|
-
return d.isImage ?
|
|
82
|
+
const a = h.FileAssetLoader;
|
|
83
|
+
h.ptrToAsset = c => {
|
|
84
|
+
let d = h.ptrToFileAsset(c);
|
|
85
|
+
return d.isImage ? h.ptrToImageAsset(c) : d.isFont ? h.ptrToFontAsset(c) : d;
|
|
86
86
|
};
|
|
87
|
-
|
|
87
|
+
h.CustomFileAssetLoader = a.extend("CustomFileAssetLoader", {__construct:function({loadContents:c}) {
|
|
88
88
|
this.__parent.__construct.call(this);
|
|
89
89
|
this.Ha = c;
|
|
90
90
|
}, loadContents:function(c, d) {
|
|
91
|
-
c =
|
|
91
|
+
c = h.ptrToAsset(c);
|
|
92
92
|
return this.Ha(c, d);
|
|
93
93
|
},});
|
|
94
|
-
|
|
94
|
+
h.CDNFileAssetLoader = a.extend("CDNFileAssetLoader", {__construct:function() {
|
|
95
95
|
this.__parent.__construct.call(this);
|
|
96
96
|
}, loadContents:function(c) {
|
|
97
|
-
let d =
|
|
97
|
+
let d = h.ptrToAsset(c);
|
|
98
98
|
c = d.cdnUuid;
|
|
99
99
|
if ("" === c) {
|
|
100
100
|
return !1;
|
|
101
101
|
}
|
|
102
102
|
(function(e, g) {
|
|
103
|
-
var
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
4 ==
|
|
103
|
+
var m = new XMLHttpRequest();
|
|
104
|
+
m.responseType = "arraybuffer";
|
|
105
|
+
m.onreadystatechange = function() {
|
|
106
|
+
4 == m.readyState && 200 == m.status && g(m);
|
|
107
107
|
};
|
|
108
|
-
|
|
109
|
-
|
|
108
|
+
m.open("GET", e, !0);
|
|
109
|
+
m.send(null);
|
|
110
110
|
})(d.cdnBaseUrl + "/" + c, e => {
|
|
111
111
|
d.decode(new Uint8Array(e.response));
|
|
112
112
|
});
|
|
113
113
|
return !0;
|
|
114
114
|
},});
|
|
115
|
-
|
|
115
|
+
h.FallbackFileAssetLoader = a.extend("FallbackFileAssetLoader", {__construct:function() {
|
|
116
116
|
this.__parent.__construct.call(this);
|
|
117
117
|
this.wa = [];
|
|
118
118
|
}, addLoader:function(c) {
|
|
@@ -148,7 +148,7 @@ const fa = "createConicGradient createImageData createLinearGradient createPatte
|
|
|
148
148
|
}
|
|
149
149
|
q = new Proxy(q, {get(D, u) {
|
|
150
150
|
if (D.isContextLost()) {
|
|
151
|
-
if (
|
|
151
|
+
if (n || (console.error("Cannot render the mesh because the GL Context was lost. Tried to invoke ", u), n = !0), "function" === typeof D[u]) {
|
|
152
152
|
return function() {
|
|
153
153
|
};
|
|
154
154
|
}
|
|
@@ -159,7 +159,7 @@ const fa = "createConicGradient createImageData createLinearGradient createPatte
|
|
|
159
159
|
}
|
|
160
160
|
}, set(D, u, I) {
|
|
161
161
|
if (D.isContextLost()) {
|
|
162
|
-
|
|
162
|
+
n || (console.error("Cannot render the mesh because the GL Context was lost. Tried to set property " + u), n = !0);
|
|
163
163
|
} else {
|
|
164
164
|
return D[u] = I, !0;
|
|
165
165
|
}
|
|
@@ -198,7 +198,7 @@ const fa = "createConicGradient createImageData createLinearGradient createPatte
|
|
|
198
198
|
}
|
|
199
199
|
return !0;
|
|
200
200
|
}
|
|
201
|
-
let a = null, c = 0, d = 0, e = null, g = null,
|
|
201
|
+
let a = null, c = 0, d = 0, e = null, g = null, m = 0, l = 0, n = !1;
|
|
202
202
|
b();
|
|
203
203
|
this.eb = function() {
|
|
204
204
|
b();
|
|
@@ -223,10 +223,10 @@ const fa = "createConicGradient createImageData createLinearGradient createPatte
|
|
|
223
223
|
2 == c ? (a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MIN_FILTER, a.LINEAR_MIPMAP_LINEAR), a.generateMipmap(a.TEXTURE_2D)) : a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MIN_FILTER, a.LINEAR);
|
|
224
224
|
return r;
|
|
225
225
|
};
|
|
226
|
-
const
|
|
226
|
+
const k = new da(8), t = new da(8), v = new da(10), x = new da(10);
|
|
227
227
|
this.Qa = function(f, r, q, G, D) {
|
|
228
228
|
if (b()) {
|
|
229
|
-
var u =
|
|
229
|
+
var u = k.push(f), I = t.push(r);
|
|
230
230
|
if (a.canvas) {
|
|
231
231
|
if (a.canvas.width != u || a.canvas.height != I) {
|
|
232
232
|
a.canvas.width = u, a.canvas.height = I;
|
|
@@ -238,7 +238,7 @@ const fa = "createConicGradient createImageData createLinearGradient createPatte
|
|
|
238
238
|
a.enable(a.SCISSOR_TEST);
|
|
239
239
|
q.sort((A, W) => W.Ba - A.Ba);
|
|
240
240
|
u = v.push(G);
|
|
241
|
-
|
|
241
|
+
m != u && (a.bufferData(a.ARRAY_BUFFER, 8 * u, a.DYNAMIC_DRAW), m = u);
|
|
242
242
|
u = 0;
|
|
243
243
|
for (var O of q) {
|
|
244
244
|
a.bufferSubData(a.ARRAY_BUFFER, u, O.ia), u += 4 * O.ia.length;
|
|
@@ -249,7 +249,7 @@ const fa = "createConicGradient createImageData createLinearGradient createPatte
|
|
|
249
249
|
}
|
|
250
250
|
console.assert(u == 8 * G);
|
|
251
251
|
u = x.push(D);
|
|
252
|
-
|
|
252
|
+
l != u && (a.bufferData(a.ELEMENT_ARRAY_BUFFER, 2 * u, a.DYNAMIC_DRAW), l = u);
|
|
253
253
|
O = 0;
|
|
254
254
|
for (var ia of q) {
|
|
255
255
|
a.bufferSubData(a.ELEMENT_ARRAY_BUFFER, O, ia.indices), O += 2 * ia.indices.length;
|
|
@@ -279,75 +279,75 @@ const fa = "createConicGradient createImageData createLinearGradient createPatte
|
|
|
279
279
|
this.canvas = function() {
|
|
280
280
|
return b() && a.canvas;
|
|
281
281
|
};
|
|
282
|
-
}(), la =
|
|
283
|
-
|
|
284
|
-
function b(
|
|
285
|
-
switch(
|
|
286
|
-
case
|
|
282
|
+
}(), la = h.onRuntimeInitialized;
|
|
283
|
+
h.onRuntimeInitialized = function() {
|
|
284
|
+
function b(p) {
|
|
285
|
+
switch(p) {
|
|
286
|
+
case k.srcOver:
|
|
287
287
|
return "source-over";
|
|
288
|
-
case
|
|
288
|
+
case k.screen:
|
|
289
289
|
return "screen";
|
|
290
|
-
case
|
|
290
|
+
case k.overlay:
|
|
291
291
|
return "overlay";
|
|
292
|
-
case
|
|
292
|
+
case k.darken:
|
|
293
293
|
return "darken";
|
|
294
|
-
case
|
|
294
|
+
case k.lighten:
|
|
295
295
|
return "lighten";
|
|
296
|
-
case
|
|
296
|
+
case k.colorDodge:
|
|
297
297
|
return "color-dodge";
|
|
298
|
-
case
|
|
298
|
+
case k.colorBurn:
|
|
299
299
|
return "color-burn";
|
|
300
|
-
case
|
|
300
|
+
case k.hardLight:
|
|
301
301
|
return "hard-light";
|
|
302
|
-
case
|
|
302
|
+
case k.softLight:
|
|
303
303
|
return "soft-light";
|
|
304
|
-
case
|
|
304
|
+
case k.difference:
|
|
305
305
|
return "difference";
|
|
306
|
-
case
|
|
306
|
+
case k.exclusion:
|
|
307
307
|
return "exclusion";
|
|
308
|
-
case
|
|
308
|
+
case k.multiply:
|
|
309
309
|
return "multiply";
|
|
310
|
-
case
|
|
310
|
+
case k.hue:
|
|
311
311
|
return "hue";
|
|
312
|
-
case
|
|
312
|
+
case k.saturation:
|
|
313
313
|
return "saturation";
|
|
314
|
-
case
|
|
314
|
+
case k.color:
|
|
315
315
|
return "color";
|
|
316
|
-
case
|
|
316
|
+
case k.luminosity:
|
|
317
317
|
return "luminosity";
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
|
-
function a(
|
|
321
|
-
return "rgba(" + ((16711680 &
|
|
320
|
+
function a(p) {
|
|
321
|
+
return "rgba(" + ((16711680 & p) >>> 16) + "," + ((65280 & p) >>> 8) + "," + ((255 & p) >>> 0) + "," + ((4278190080 & p) >>> 24) / 255 + ")";
|
|
322
322
|
}
|
|
323
323
|
function c() {
|
|
324
324
|
0 < I.length && (ha.Qa(u.drawWidth(), u.drawHeight(), I, O, X), I = [], X = O = 0, u.reset(512, 512));
|
|
325
|
-
for (const
|
|
326
|
-
for (const w of
|
|
325
|
+
for (const p of D) {
|
|
326
|
+
for (const w of p.u) {
|
|
327
327
|
w();
|
|
328
328
|
}
|
|
329
|
-
|
|
329
|
+
p.u = [];
|
|
330
330
|
}
|
|
331
331
|
D.clear();
|
|
332
332
|
}
|
|
333
333
|
la && la();
|
|
334
|
-
var d =
|
|
335
|
-
const e =
|
|
334
|
+
var d = h.RenderPaintStyle;
|
|
335
|
+
const e = h.RenderPath, g = h.RenderPaint, m = h.Renderer, l = h.StrokeCap, n = h.StrokeJoin, k = h.BlendMode, t = d.fill, v = d.stroke, x = h.FillRule.evenOdd;
|
|
336
336
|
let f = 1;
|
|
337
|
-
var r =
|
|
337
|
+
var r = h.RenderImage.extend("CanvasRenderImage", {__construct:function({R:p, W:w} = {}) {
|
|
338
338
|
this.__parent.__construct.call(this);
|
|
339
339
|
this.da = f;
|
|
340
340
|
f = f + 1 & 2147483647 || 1;
|
|
341
|
-
this.R =
|
|
341
|
+
this.R = p;
|
|
342
342
|
this.W = w;
|
|
343
343
|
}, __destruct:function() {
|
|
344
344
|
this.ca && (ha.Ma(this.ca), URL.revokeObjectURL(this.la));
|
|
345
345
|
this.__parent.__destruct.call(this);
|
|
346
|
-
}, decode:function(
|
|
346
|
+
}, decode:function(p) {
|
|
347
347
|
var w = this;
|
|
348
348
|
w.W && w.W(w);
|
|
349
349
|
var B = new Image();
|
|
350
|
-
w.la = URL.createObjectURL(new Blob([
|
|
350
|
+
w.la = URL.createObjectURL(new Blob([p], {type:"image/png",}));
|
|
351
351
|
B.onload = function() {
|
|
352
352
|
w.Ga = B;
|
|
353
353
|
w.ca = ha.La(B);
|
|
@@ -360,9 +360,9 @@ p.onRuntimeInitialized = function() {
|
|
|
360
360
|
this.F = new Path2D();
|
|
361
361
|
}, rewind:function() {
|
|
362
362
|
this.F = new Path2D();
|
|
363
|
-
}, addPath:function(
|
|
363
|
+
}, addPath:function(p, w, B, C, z, E, F) {
|
|
364
364
|
var H = this.F, T = H.addPath;
|
|
365
|
-
|
|
365
|
+
p = p.F;
|
|
366
366
|
const K = new DOMMatrix();
|
|
367
367
|
K.a = w;
|
|
368
368
|
K.b = B;
|
|
@@ -370,67 +370,67 @@ p.onRuntimeInitialized = function() {
|
|
|
370
370
|
K.d = z;
|
|
371
371
|
K.e = E;
|
|
372
372
|
K.f = F;
|
|
373
|
-
T.call(H,
|
|
374
|
-
}, fillRule:function(
|
|
375
|
-
this.ka =
|
|
376
|
-
}, moveTo:function(
|
|
377
|
-
this.F.moveTo(
|
|
378
|
-
}, lineTo:function(
|
|
379
|
-
this.F.lineTo(
|
|
380
|
-
}, cubicTo:function(
|
|
381
|
-
this.F.bezierCurveTo(
|
|
373
|
+
T.call(H, p, K);
|
|
374
|
+
}, fillRule:function(p) {
|
|
375
|
+
this.ka = p;
|
|
376
|
+
}, moveTo:function(p, w) {
|
|
377
|
+
this.F.moveTo(p, w);
|
|
378
|
+
}, lineTo:function(p, w) {
|
|
379
|
+
this.F.lineTo(p, w);
|
|
380
|
+
}, cubicTo:function(p, w, B, C, z, E) {
|
|
381
|
+
this.F.bezierCurveTo(p, w, B, C, z, E);
|
|
382
382
|
}, close:function() {
|
|
383
383
|
this.F.closePath();
|
|
384
|
-
},}), G = g.extend("CanvasRenderPaint", {color:function(
|
|
385
|
-
this.ma = a(
|
|
386
|
-
}, thickness:function(
|
|
387
|
-
this.Ja =
|
|
388
|
-
}, join:function(
|
|
389
|
-
switch(
|
|
390
|
-
case
|
|
384
|
+
},}), G = g.extend("CanvasRenderPaint", {color:function(p) {
|
|
385
|
+
this.ma = a(p);
|
|
386
|
+
}, thickness:function(p) {
|
|
387
|
+
this.Ja = p;
|
|
388
|
+
}, join:function(p) {
|
|
389
|
+
switch(p) {
|
|
390
|
+
case n.miter:
|
|
391
391
|
this.ba = "miter";
|
|
392
392
|
break;
|
|
393
|
-
case
|
|
393
|
+
case n.round:
|
|
394
394
|
this.ba = "round";
|
|
395
395
|
break;
|
|
396
|
-
case
|
|
396
|
+
case n.bevel:
|
|
397
397
|
this.ba = "bevel";
|
|
398
398
|
}
|
|
399
|
-
}, cap:function(
|
|
400
|
-
switch(
|
|
401
|
-
case
|
|
399
|
+
}, cap:function(p) {
|
|
400
|
+
switch(p) {
|
|
401
|
+
case l.butt:
|
|
402
402
|
this.aa = "butt";
|
|
403
403
|
break;
|
|
404
|
-
case
|
|
404
|
+
case l.round:
|
|
405
405
|
this.aa = "round";
|
|
406
406
|
break;
|
|
407
|
-
case
|
|
407
|
+
case l.square:
|
|
408
408
|
this.aa = "square";
|
|
409
409
|
}
|
|
410
|
-
}, style:function(
|
|
411
|
-
this.Ia =
|
|
412
|
-
}, blendMode:function(
|
|
413
|
-
this.Fa = b(
|
|
410
|
+
}, style:function(p) {
|
|
411
|
+
this.Ia = p;
|
|
412
|
+
}, blendMode:function(p) {
|
|
413
|
+
this.Fa = b(p);
|
|
414
414
|
}, clearGradient:function() {
|
|
415
415
|
this.P = null;
|
|
416
|
-
}, linearGradient:function(
|
|
417
|
-
this.P = {Ca:
|
|
418
|
-
}, radialGradient:function(
|
|
419
|
-
this.P = {Ca:
|
|
420
|
-
}, addStop:function(
|
|
421
|
-
this.P.ga.push({color:
|
|
416
|
+
}, linearGradient:function(p, w, B, C) {
|
|
417
|
+
this.P = {Ca:p, Da:w, qa:B, ra:C, ga:[],};
|
|
418
|
+
}, radialGradient:function(p, w, B, C) {
|
|
419
|
+
this.P = {Ca:p, Da:w, qa:B, ra:C, ga:[], bb:!0,};
|
|
420
|
+
}, addStop:function(p, w) {
|
|
421
|
+
this.P.ga.push({color:p, stop:w,});
|
|
422
422
|
}, completeGradient:function() {
|
|
423
|
-
}, draw:function(
|
|
423
|
+
}, draw:function(p, w, B) {
|
|
424
424
|
let C = this.Ia;
|
|
425
425
|
var z = this.ma, E = this.P;
|
|
426
|
-
|
|
426
|
+
p.globalCompositeOperation = this.Fa;
|
|
427
427
|
if (null != E) {
|
|
428
428
|
z = E.Ca;
|
|
429
429
|
var F = E.Da;
|
|
430
430
|
const T = E.qa;
|
|
431
431
|
var H = E.ra;
|
|
432
432
|
const K = E.ga;
|
|
433
|
-
E.bb ? (E = T - z, H -= F, z =
|
|
433
|
+
E.bb ? (E = T - z, H -= F, z = p.createRadialGradient(z, F, 0, z, F, Math.sqrt(E * E + H * H))) : z = p.createLinearGradient(z, F, T, H);
|
|
434
434
|
for (let Y = 0, N = K.length; Y < N; Y++) {
|
|
435
435
|
F = K[Y], z.addColorStop(F.stop, a(F.color));
|
|
436
436
|
}
|
|
@@ -439,46 +439,46 @@ p.onRuntimeInitialized = function() {
|
|
|
439
439
|
}
|
|
440
440
|
switch(C) {
|
|
441
441
|
case v:
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
442
|
+
p.strokeStyle = z;
|
|
443
|
+
p.lineWidth = this.Ja;
|
|
444
|
+
p.lineCap = this.aa;
|
|
445
|
+
p.lineJoin = this.ba;
|
|
446
|
+
p.stroke(w);
|
|
447
447
|
break;
|
|
448
448
|
case t:
|
|
449
|
-
|
|
449
|
+
p.fillStyle = z, p.fill(w, B);
|
|
450
450
|
}
|
|
451
451
|
},});
|
|
452
452
|
const D = new Set();
|
|
453
453
|
let u = null, I = [], O = 0, X = 0;
|
|
454
|
-
var ia =
|
|
454
|
+
var ia = h.CanvasRenderer = m.extend("Renderer", {__construct:function(p) {
|
|
455
455
|
this.__parent.__construct.call(this);
|
|
456
456
|
this.D = [1, 0, 0, 1, 0, 0];
|
|
457
|
-
this.o =
|
|
458
|
-
this.ja =
|
|
457
|
+
this.o = p.getContext("2d");
|
|
458
|
+
this.ja = p;
|
|
459
459
|
this.u = [];
|
|
460
460
|
}, save:function() {
|
|
461
461
|
this.D.push(...this.D.slice(this.D.length - 6));
|
|
462
462
|
this.u.push(this.o.save.bind(this.o));
|
|
463
463
|
}, restore:function() {
|
|
464
|
-
const
|
|
465
|
-
if (6 >
|
|
464
|
+
const p = this.D.length - 6;
|
|
465
|
+
if (6 > p) {
|
|
466
466
|
throw "restore() called without matching save().";
|
|
467
467
|
}
|
|
468
|
-
this.D.splice(
|
|
468
|
+
this.D.splice(p);
|
|
469
469
|
this.u.push(this.o.restore.bind(this.o));
|
|
470
|
-
}, transform:function(
|
|
470
|
+
}, transform:function(p, w, B, C, z, E) {
|
|
471
471
|
const F = this.D, H = F.length - 6;
|
|
472
|
-
F.splice(H, 6, F[H] *
|
|
473
|
-
this.u.push(this.o.transform.bind(this.o,
|
|
474
|
-
}, rotate:function(
|
|
475
|
-
const w = Math.sin(
|
|
476
|
-
|
|
477
|
-
this.transform(
|
|
478
|
-
}, _drawPath:function(
|
|
479
|
-
this.u.push(w.draw.bind(w, this.o,
|
|
480
|
-
}, _drawRiveImage:function(
|
|
481
|
-
var C =
|
|
472
|
+
F.splice(H, 6, F[H] * p + F[H + 2] * w, F[H + 1] * p + F[H + 3] * w, F[H] * B + F[H + 2] * C, F[H + 1] * B + F[H + 3] * C, F[H] * z + F[H + 2] * E + F[H + 4], F[H + 1] * z + F[H + 3] * E + F[H + 5]);
|
|
473
|
+
this.u.push(this.o.transform.bind(this.o, p, w, B, C, z, E));
|
|
474
|
+
}, rotate:function(p) {
|
|
475
|
+
const w = Math.sin(p);
|
|
476
|
+
p = Math.cos(p);
|
|
477
|
+
this.transform(p, w, -w, p, 0, 0);
|
|
478
|
+
}, _drawPath:function(p, w) {
|
|
479
|
+
this.u.push(w.draw.bind(w, this.o, p.F, p.ka === x ? "evenodd" : "nonzero"));
|
|
480
|
+
}, _drawRiveImage:function(p, w, B) {
|
|
481
|
+
var C = p.Ga;
|
|
482
482
|
if (C) {
|
|
483
483
|
var z = this.o, E = b(w);
|
|
484
484
|
this.u.push(function() {
|
|
@@ -488,57 +488,57 @@ p.onRuntimeInitialized = function() {
|
|
|
488
488
|
z.globalAlpha = 1;
|
|
489
489
|
});
|
|
490
490
|
}
|
|
491
|
-
}, _getMatrix:function(
|
|
491
|
+
}, _getMatrix:function(p) {
|
|
492
492
|
const w = this.D, B = w.length - 6;
|
|
493
493
|
for (let C = 0; 6 > C; ++C) {
|
|
494
|
-
|
|
494
|
+
p[C] = w[B + C];
|
|
495
495
|
}
|
|
496
|
-
}, _drawImageMesh:function(
|
|
496
|
+
}, _drawImageMesh:function(p, w, B, C, z, E, F, H, T, K) {
|
|
497
497
|
var Y = this.o.canvas.width, N = this.o.canvas.height;
|
|
498
|
-
const
|
|
498
|
+
const tb = T - F, ub = K - H;
|
|
499
499
|
F = Math.max(F, 0);
|
|
500
500
|
H = Math.max(H, 0);
|
|
501
501
|
T = Math.min(T, Y);
|
|
502
502
|
K = Math.min(K, N);
|
|
503
|
-
const
|
|
504
|
-
console.assert(
|
|
505
|
-
console.assert(
|
|
506
|
-
if (!(0 >=
|
|
507
|
-
T =
|
|
503
|
+
const wa = T - F, xa = K - H;
|
|
504
|
+
console.assert(wa <= Math.min(tb, Y));
|
|
505
|
+
console.assert(xa <= Math.min(ub, N));
|
|
506
|
+
if (!(0 >= wa || 0 >= xa)) {
|
|
507
|
+
T = wa < tb || xa < ub;
|
|
508
508
|
Y = K = 1;
|
|
509
|
-
var ja = Math.ceil(
|
|
509
|
+
var ja = Math.ceil(wa * K), ka = Math.ceil(xa * Y);
|
|
510
510
|
N = ha.eb();
|
|
511
511
|
ja > N && (K *= N / ja, ja = N);
|
|
512
512
|
ka > N && (Y *= N / ka, ka = N);
|
|
513
|
-
u || (u = new
|
|
513
|
+
u || (u = new h.DynamicRectanizer(N), u.reset(512, 512));
|
|
514
514
|
N = u.addRect(ja, ka);
|
|
515
515
|
0 > N && (c(), D.add(this), N = u.addRect(ja, ka), console.assert(0 <= N));
|
|
516
|
-
var
|
|
517
|
-
I.push({N:this.D.slice(this.D.length - 6), image:
|
|
516
|
+
var vb = N & 65535, wb = N >> 16;
|
|
517
|
+
I.push({N:this.D.slice(this.D.length - 6), image:p, na:vb, oa:wb, fb:F, gb:H, sb:ja, va:ka, X:K, Y, ia:new Float32Array(C), Ea:new Float32Array(z), indices:new Uint16Array(E), hb:T, Ba:p.da << 1 | (T ? 1 : 0),});
|
|
518
518
|
O += C.length;
|
|
519
519
|
X += E.length;
|
|
520
|
-
var
|
|
520
|
+
var pa = this.o, oc = b(w);
|
|
521
521
|
this.u.push(function() {
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
const
|
|
527
|
-
|
|
528
|
-
|
|
522
|
+
pa.save();
|
|
523
|
+
pa.resetTransform();
|
|
524
|
+
pa.globalCompositeOperation = oc;
|
|
525
|
+
pa.globalAlpha = B;
|
|
526
|
+
const xb = ha.canvas();
|
|
527
|
+
xb && pa.drawImage(xb, vb, wb, ja, ka, F, H, wa, xa);
|
|
528
|
+
pa.restore();
|
|
529
529
|
});
|
|
530
530
|
}
|
|
531
|
-
}, _clipPath:function(
|
|
532
|
-
this.u.push(this.o.clip.bind(this.o,
|
|
531
|
+
}, _clipPath:function(p) {
|
|
532
|
+
this.u.push(this.o.clip.bind(this.o, p.F, p.ka === x ? "evenodd" : "nonzero"));
|
|
533
533
|
}, clear:function() {
|
|
534
534
|
D.add(this);
|
|
535
535
|
this.u.push(this.o.clearRect.bind(this.o, 0, 0, this.ja.width, this.ja.height));
|
|
536
536
|
}, flush:function() {
|
|
537
|
-
}, translate:function(
|
|
538
|
-
this.transform(1, 0, 0, 1,
|
|
537
|
+
}, translate:function(p, w) {
|
|
538
|
+
this.transform(1, 0, 0, 1, p, w);
|
|
539
539
|
},});
|
|
540
|
-
|
|
541
|
-
const w = new ia(
|
|
540
|
+
h.makeRenderer = function(p) {
|
|
541
|
+
const w = new ia(p), B = w.o;
|
|
542
542
|
return new Proxy(w, {get(C, z) {
|
|
543
543
|
if ("function" === typeof C[z]) {
|
|
544
544
|
return function(...E) {
|
|
@@ -560,53 +560,53 @@ p.onRuntimeInitialized = function() {
|
|
|
560
560
|
}
|
|
561
561
|
},});
|
|
562
562
|
};
|
|
563
|
-
|
|
564
|
-
(new r({R:w})).decode(
|
|
563
|
+
h.decodeImage = function(p, w) {
|
|
564
|
+
(new r({R:w})).decode(p);
|
|
565
565
|
};
|
|
566
|
-
|
|
566
|
+
h.renderFactory = {makeRenderPaint:function() {
|
|
567
567
|
return new G();
|
|
568
568
|
}, makeRenderPath:function() {
|
|
569
569
|
return new q();
|
|
570
570
|
}, makeRenderImage:function() {
|
|
571
|
-
let
|
|
571
|
+
let p = W;
|
|
572
572
|
return new r({W:() => {
|
|
573
|
-
|
|
573
|
+
p.total++;
|
|
574
574
|
}, R:() => {
|
|
575
|
-
|
|
576
|
-
if (
|
|
577
|
-
const w =
|
|
578
|
-
w && (w(),
|
|
575
|
+
p.loaded++;
|
|
576
|
+
if (p.loaded === p.total) {
|
|
577
|
+
const w = p.ready;
|
|
578
|
+
w && (w(), p.ready = null);
|
|
579
579
|
}
|
|
580
580
|
},});
|
|
581
581
|
},};
|
|
582
|
-
let A =
|
|
583
|
-
|
|
584
|
-
const C = new
|
|
582
|
+
let A = h.load, W = null;
|
|
583
|
+
h.load = function(p, w, B = !0) {
|
|
584
|
+
const C = new h.FallbackFileAssetLoader();
|
|
585
585
|
void 0 !== w && C.addLoader(w);
|
|
586
|
-
B && (w = new
|
|
586
|
+
B && (w = new h.CDNFileAssetLoader(), C.addLoader(w));
|
|
587
587
|
return new Promise(function(z) {
|
|
588
588
|
let E = null;
|
|
589
589
|
W = {total:0, loaded:0, ready:function() {
|
|
590
590
|
z(E);
|
|
591
591
|
},};
|
|
592
|
-
E = A(
|
|
592
|
+
E = A(p, C);
|
|
593
593
|
0 == W.total && z(E);
|
|
594
594
|
});
|
|
595
595
|
};
|
|
596
596
|
d = new ca();
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
597
|
+
h.requestAnimationFrame = d.requestAnimationFrame.bind(d);
|
|
598
|
+
h.cancelAnimationFrame = d.cancelAnimationFrame.bind(d);
|
|
599
|
+
h.enableFPSCounter = d.Ra.bind(d);
|
|
600
|
+
h.disableFPSCounter = d.Oa;
|
|
601
601
|
d.xa = c;
|
|
602
|
-
|
|
603
|
-
|
|
602
|
+
h.resolveAnimationFrame = c;
|
|
603
|
+
h.cleanup = function() {
|
|
604
604
|
u && u.delete();
|
|
605
605
|
};
|
|
606
606
|
};
|
|
607
|
-
var ma = Object.assign({},
|
|
608
|
-
if (
|
|
609
|
-
|
|
607
|
+
var ma = Object.assign({}, h), na = "./this.program", oa = "object" == typeof window, qa = "function" == typeof importScripts, y = "", ra, sa;
|
|
608
|
+
if (oa || qa) {
|
|
609
|
+
qa ? y = self.location.href : "undefined" != typeof document && document.currentScript && (y = document.currentScript.src), _scriptDir && (y = _scriptDir), 0 !== y.indexOf("blob:") ? y = y.substr(0, y.replace(/[?#].*/, "").lastIndexOf("/") + 1) : y = "", qa && (sa = b => {
|
|
610
610
|
var a = new XMLHttpRequest();
|
|
611
611
|
a.open("GET", b, !1);
|
|
612
612
|
a.responseType = "arraybuffer";
|
|
@@ -623,53 +623,70 @@ if (na || pa) {
|
|
|
623
623
|
d.send(null);
|
|
624
624
|
};
|
|
625
625
|
}
|
|
626
|
-
var
|
|
627
|
-
Object.assign(
|
|
626
|
+
var ta = h.print || console.log.bind(console), ua = h.printErr || console.error.bind(console);
|
|
627
|
+
Object.assign(h, ma);
|
|
628
628
|
ma = null;
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
629
|
+
h.thisProgram && (na = h.thisProgram);
|
|
630
|
+
var va;
|
|
631
|
+
h.wasmBinary && (va = h.wasmBinary);
|
|
632
|
+
var noExitRuntime = h.noExitRuntime || !0;
|
|
633
|
+
"object" != typeof WebAssembly && ya("no native wasm support detected");
|
|
634
|
+
var za, J, Aa = !1, Ba, L, Ca, Da, M, P, Ea, Fa;
|
|
635
|
+
function Ga() {
|
|
636
|
+
var b = za.buffer;
|
|
637
|
+
h.HEAP8 = Ba = new Int8Array(b);
|
|
638
|
+
h.HEAP16 = Ca = new Int16Array(b);
|
|
639
|
+
h.HEAP32 = M = new Int32Array(b);
|
|
640
|
+
h.HEAPU8 = L = new Uint8Array(b);
|
|
641
|
+
h.HEAPU16 = Da = new Uint16Array(b);
|
|
642
|
+
h.HEAPU32 = P = new Uint32Array(b);
|
|
643
|
+
h.HEAPF32 = Ea = new Float32Array(b);
|
|
644
|
+
h.HEAPF64 = Fa = new Float64Array(b);
|
|
645
|
+
}
|
|
646
|
+
var Ha, Ia = [], Ja = [], Ka = [];
|
|
647
|
+
function La() {
|
|
648
|
+
var b = h.preRun.shift();
|
|
649
|
+
Ia.unshift(b);
|
|
650
|
+
}
|
|
651
|
+
var Ma = 0, Na = null, Oa = null;
|
|
652
|
+
function ya(b) {
|
|
653
|
+
if (h.onAbort) {
|
|
654
|
+
h.onAbort(b);
|
|
655
|
+
}
|
|
645
656
|
b = "Aborted(" + b + ")";
|
|
646
|
-
|
|
647
|
-
|
|
657
|
+
ua(b);
|
|
658
|
+
Aa = !0;
|
|
648
659
|
b = new WebAssembly.RuntimeError(b + ". Build with -sASSERTIONS for more info.");
|
|
649
660
|
ba(b);
|
|
650
661
|
throw b;
|
|
651
662
|
}
|
|
652
|
-
function
|
|
663
|
+
function Pa(b) {
|
|
653
664
|
return b.startsWith("data:application/octet-stream;base64,");
|
|
654
665
|
}
|
|
655
|
-
var
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
666
|
+
var Qa;
|
|
667
|
+
Qa = "canvas_advanced.wasm";
|
|
668
|
+
if (!Pa(Qa)) {
|
|
669
|
+
var Ra = Qa;
|
|
670
|
+
Qa = h.locateFile ? h.locateFile(Ra, y) : y + Ra;
|
|
671
|
+
}
|
|
672
|
+
function Sa(b) {
|
|
673
|
+
if (b == Qa && va) {
|
|
674
|
+
return new Uint8Array(va);
|
|
675
|
+
}
|
|
659
676
|
if (sa) {
|
|
660
677
|
return sa(b);
|
|
661
678
|
}
|
|
662
679
|
throw "both async and sync fetching of the wasm failed";
|
|
663
680
|
}
|
|
664
|
-
function
|
|
665
|
-
if (
|
|
681
|
+
function Ta(b) {
|
|
682
|
+
if (!va && (oa || qa)) {
|
|
666
683
|
if ("function" == typeof fetch && !b.startsWith("file://")) {
|
|
667
684
|
return fetch(b, {credentials:"same-origin"}).then(a => {
|
|
668
685
|
if (!a.ok) {
|
|
669
686
|
throw "failed to load wasm binary file at '" + b + "'";
|
|
670
687
|
}
|
|
671
688
|
return a.arrayBuffer();
|
|
672
|
-
}).catch(() =>
|
|
689
|
+
}).catch(() => Sa(b));
|
|
673
690
|
}
|
|
674
691
|
if (ra) {
|
|
675
692
|
return new Promise((a, c) => {
|
|
@@ -677,23 +694,28 @@ function Qa(b) {
|
|
|
677
694
|
});
|
|
678
695
|
}
|
|
679
696
|
}
|
|
680
|
-
return Promise.resolve().then(() =>
|
|
697
|
+
return Promise.resolve().then(() => Sa(b));
|
|
681
698
|
}
|
|
682
|
-
function
|
|
683
|
-
return
|
|
684
|
-
|
|
685
|
-
|
|
699
|
+
function Ua(b, a, c) {
|
|
700
|
+
return Ta(b).then(d => WebAssembly.instantiate(d, a)).then(d => d).then(c, d => {
|
|
701
|
+
ua("failed to asynchronously prepare wasm: " + d);
|
|
702
|
+
ya(d);
|
|
686
703
|
});
|
|
687
704
|
}
|
|
688
|
-
function
|
|
689
|
-
var c =
|
|
690
|
-
return "function" != typeof WebAssembly.instantiateStreaming ||
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
return
|
|
705
|
+
function Va(b, a) {
|
|
706
|
+
var c = Qa;
|
|
707
|
+
return va || "function" != typeof WebAssembly.instantiateStreaming || Pa(c) || c.startsWith("file://") || "function" != typeof fetch ? Ua(c, b, a) : fetch(c, {credentials:"same-origin"}).then(d => WebAssembly.instantiateStreaming(d, b).then(a, function(e) {
|
|
708
|
+
ua("wasm streaming compile failed: " + e);
|
|
709
|
+
ua("falling back to ArrayBuffer instantiation");
|
|
710
|
+
return Ua(c, b, a);
|
|
694
711
|
}));
|
|
695
712
|
}
|
|
696
|
-
|
|
713
|
+
var Wa = b => {
|
|
714
|
+
for (; 0 < b.length;) {
|
|
715
|
+
b.shift()(h);
|
|
716
|
+
}
|
|
717
|
+
};
|
|
718
|
+
function Xa(b) {
|
|
697
719
|
if (void 0 === b) {
|
|
698
720
|
return "_unknown";
|
|
699
721
|
}
|
|
@@ -701,24 +723,24 @@ function Ta(b) {
|
|
|
701
723
|
var a = b.charCodeAt(0);
|
|
702
724
|
return 48 <= a && 57 >= a ? `_${b}` : b;
|
|
703
725
|
}
|
|
704
|
-
function
|
|
705
|
-
b =
|
|
726
|
+
function Ya(b, a) {
|
|
727
|
+
b = Xa(b);
|
|
706
728
|
return {[b]:function() {
|
|
707
729
|
return a.apply(this, arguments);
|
|
708
730
|
}}[b];
|
|
709
731
|
}
|
|
710
|
-
function
|
|
732
|
+
function Za() {
|
|
711
733
|
this.G = [void 0];
|
|
712
734
|
this.ta = [];
|
|
713
735
|
}
|
|
714
|
-
var
|
|
715
|
-
function
|
|
716
|
-
throw new
|
|
736
|
+
var Q = new Za(), $a = void 0;
|
|
737
|
+
function R(b) {
|
|
738
|
+
throw new $a(b);
|
|
717
739
|
}
|
|
718
|
-
var
|
|
719
|
-
b ||
|
|
720
|
-
return
|
|
721
|
-
},
|
|
740
|
+
var S = b => {
|
|
741
|
+
b || R("Cannot use deleted val. handle = " + b);
|
|
742
|
+
return Q.get(b).value;
|
|
743
|
+
}, ab = b => {
|
|
722
744
|
switch(b) {
|
|
723
745
|
case void 0:
|
|
724
746
|
return 1;
|
|
@@ -729,11 +751,11 @@ var R = b => {
|
|
|
729
751
|
case !1:
|
|
730
752
|
return 4;
|
|
731
753
|
default:
|
|
732
|
-
return
|
|
754
|
+
return Q.Za({Aa:1, value:b});
|
|
733
755
|
}
|
|
734
756
|
};
|
|
735
|
-
function
|
|
736
|
-
var a = Error, c =
|
|
757
|
+
function bb(b) {
|
|
758
|
+
var a = Error, c = Ya(b, function(d) {
|
|
737
759
|
this.name = b;
|
|
738
760
|
this.message = d;
|
|
739
761
|
d = Error(d).stack;
|
|
@@ -746,122 +768,122 @@ function Xa(b) {
|
|
|
746
768
|
};
|
|
747
769
|
return c;
|
|
748
770
|
}
|
|
749
|
-
var
|
|
771
|
+
var cb = void 0, db = void 0;
|
|
750
772
|
function U(b) {
|
|
751
|
-
for (var a = "";
|
|
752
|
-
a +=
|
|
773
|
+
for (var a = ""; L[b];) {
|
|
774
|
+
a += db[L[b++]];
|
|
753
775
|
}
|
|
754
776
|
return a;
|
|
755
777
|
}
|
|
756
|
-
var
|
|
757
|
-
function
|
|
758
|
-
for (;
|
|
759
|
-
var b =
|
|
778
|
+
var eb = [];
|
|
779
|
+
function fb() {
|
|
780
|
+
for (; eb.length;) {
|
|
781
|
+
var b = eb.pop();
|
|
760
782
|
b.g.M = !1;
|
|
761
783
|
b["delete"]();
|
|
762
784
|
}
|
|
763
785
|
}
|
|
764
|
-
var
|
|
765
|
-
function
|
|
766
|
-
for (void 0 === a &&
|
|
786
|
+
var gb = void 0, hb = {};
|
|
787
|
+
function ib(b, a) {
|
|
788
|
+
for (void 0 === a && R("ptr should not be undefined"); b.l;) {
|
|
767
789
|
a = b.S(a), b = b.l;
|
|
768
790
|
}
|
|
769
791
|
return a;
|
|
770
792
|
}
|
|
771
|
-
var
|
|
772
|
-
function
|
|
773
|
-
b =
|
|
793
|
+
var jb = {};
|
|
794
|
+
function kb(b) {
|
|
795
|
+
b = lb(b);
|
|
774
796
|
var a = U(b);
|
|
775
|
-
|
|
797
|
+
mb(b);
|
|
776
798
|
return a;
|
|
777
799
|
}
|
|
778
|
-
function
|
|
779
|
-
var c =
|
|
780
|
-
void 0 === c &&
|
|
800
|
+
function nb(b, a) {
|
|
801
|
+
var c = jb[b];
|
|
802
|
+
void 0 === c && R(a + " has unknown type " + kb(b));
|
|
781
803
|
return c;
|
|
782
804
|
}
|
|
783
|
-
function
|
|
805
|
+
function ob() {
|
|
784
806
|
}
|
|
785
|
-
var
|
|
786
|
-
function
|
|
807
|
+
var pb = !1;
|
|
808
|
+
function qb(b) {
|
|
787
809
|
--b.count.value;
|
|
788
810
|
0 === b.count.value && (b.s ? b.A.H(b.s) : b.j.h.H(b.i));
|
|
789
811
|
}
|
|
790
|
-
function
|
|
812
|
+
function rb(b, a, c) {
|
|
791
813
|
if (a === c) {
|
|
792
814
|
return b;
|
|
793
815
|
}
|
|
794
816
|
if (void 0 === c.l) {
|
|
795
817
|
return null;
|
|
796
818
|
}
|
|
797
|
-
b =
|
|
819
|
+
b = rb(b, a, c.l);
|
|
798
820
|
return null === b ? null : c.Pa(b);
|
|
799
821
|
}
|
|
800
|
-
var
|
|
801
|
-
function
|
|
802
|
-
a =
|
|
803
|
-
return
|
|
822
|
+
var sb = {};
|
|
823
|
+
function yb(b, a) {
|
|
824
|
+
a = ib(b, a);
|
|
825
|
+
return hb[a];
|
|
804
826
|
}
|
|
805
|
-
var
|
|
806
|
-
function
|
|
807
|
-
throw new
|
|
827
|
+
var zb = void 0;
|
|
828
|
+
function Ab(b) {
|
|
829
|
+
throw new zb(b);
|
|
808
830
|
}
|
|
809
|
-
function
|
|
810
|
-
a.j && a.i ||
|
|
811
|
-
!!a.A !== !!a.s &&
|
|
831
|
+
function Bb(b, a) {
|
|
832
|
+
a.j && a.i || Ab("makeClassHandle requires ptr and ptrType");
|
|
833
|
+
!!a.A !== !!a.s && Ab("Both smartPtrType and smartPtr must be specified");
|
|
812
834
|
a.count = {value:1};
|
|
813
|
-
return
|
|
835
|
+
return Cb(Object.create(b, {g:{value:a,},}));
|
|
814
836
|
}
|
|
815
|
-
function
|
|
837
|
+
function Cb(b) {
|
|
816
838
|
if ("undefined" === typeof FinalizationRegistry) {
|
|
817
|
-
return
|
|
839
|
+
return Cb = a => a, b;
|
|
818
840
|
}
|
|
819
|
-
|
|
820
|
-
|
|
841
|
+
pb = new FinalizationRegistry(a => {
|
|
842
|
+
qb(a.g);
|
|
821
843
|
});
|
|
822
|
-
|
|
844
|
+
Cb = a => {
|
|
823
845
|
var c = a.g;
|
|
824
|
-
c.s &&
|
|
846
|
+
c.s && pb.register(a, {g:c}, a);
|
|
825
847
|
return a;
|
|
826
848
|
};
|
|
827
|
-
|
|
828
|
-
|
|
849
|
+
ob = a => {
|
|
850
|
+
pb.unregister(a);
|
|
829
851
|
};
|
|
830
|
-
return
|
|
852
|
+
return Cb(b);
|
|
831
853
|
}
|
|
832
|
-
var
|
|
833
|
-
function
|
|
854
|
+
var Db = {};
|
|
855
|
+
function Eb(b) {
|
|
834
856
|
for (; b.length;) {
|
|
835
857
|
var a = b.pop();
|
|
836
858
|
b.pop()(a);
|
|
837
859
|
}
|
|
838
860
|
}
|
|
839
|
-
function
|
|
840
|
-
return this.fromWireType(
|
|
861
|
+
function Fb(b) {
|
|
862
|
+
return this.fromWireType(M[b >> 2]);
|
|
841
863
|
}
|
|
842
|
-
var
|
|
864
|
+
var Gb = {}, Hb = {};
|
|
843
865
|
function V(b, a, c) {
|
|
844
|
-
function d(
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
for (var
|
|
848
|
-
|
|
866
|
+
function d(l) {
|
|
867
|
+
l = c(l);
|
|
868
|
+
l.length !== b.length && Ab("Mismatched type converter count");
|
|
869
|
+
for (var n = 0; n < b.length; ++n) {
|
|
870
|
+
Ib(b[n], l[n]);
|
|
849
871
|
}
|
|
850
872
|
}
|
|
851
|
-
b.forEach(function(
|
|
852
|
-
|
|
873
|
+
b.forEach(function(l) {
|
|
874
|
+
Hb[l] = a;
|
|
853
875
|
});
|
|
854
|
-
var e = Array(a.length), g = [],
|
|
855
|
-
a.forEach((
|
|
856
|
-
|
|
857
|
-
e[
|
|
858
|
-
++
|
|
859
|
-
|
|
876
|
+
var e = Array(a.length), g = [], m = 0;
|
|
877
|
+
a.forEach((l, n) => {
|
|
878
|
+
jb.hasOwnProperty(l) ? e[n] = jb[l] : (g.push(l), Gb.hasOwnProperty(l) || (Gb[l] = []), Gb[l].push(() => {
|
|
879
|
+
e[n] = jb[l];
|
|
880
|
+
++m;
|
|
881
|
+
m === g.length && d(e);
|
|
860
882
|
}));
|
|
861
883
|
});
|
|
862
884
|
0 === g.length && d(e);
|
|
863
885
|
}
|
|
864
|
-
function
|
|
886
|
+
function Jb(b) {
|
|
865
887
|
switch(b) {
|
|
866
888
|
case 1:
|
|
867
889
|
return 0;
|
|
@@ -875,72 +897,72 @@ function Eb(b) {
|
|
|
875
897
|
throw new TypeError(`Unknown type size: ${b}`);
|
|
876
898
|
}
|
|
877
899
|
}
|
|
878
|
-
function
|
|
900
|
+
function Kb(b, a, c = {}) {
|
|
879
901
|
var d = a.name;
|
|
880
|
-
b ||
|
|
881
|
-
if (
|
|
902
|
+
b || R(`type "${d}" must have a positive integer typeid pointer`);
|
|
903
|
+
if (jb.hasOwnProperty(b)) {
|
|
882
904
|
if (c.ab) {
|
|
883
905
|
return;
|
|
884
906
|
}
|
|
885
|
-
|
|
907
|
+
R(`Cannot register type '${d}' twice`);
|
|
886
908
|
}
|
|
887
|
-
|
|
888
|
-
delete
|
|
889
|
-
|
|
909
|
+
jb[b] = a;
|
|
910
|
+
delete Hb[b];
|
|
911
|
+
Gb.hasOwnProperty(b) && (a = Gb[b], delete Gb[b], a.forEach(e => e()));
|
|
890
912
|
}
|
|
891
|
-
function
|
|
913
|
+
function Ib(b, a, c = {}) {
|
|
892
914
|
if (!("argPackAdvance" in a)) {
|
|
893
915
|
throw new TypeError("registerType registeredInstance requires argPackAdvance");
|
|
894
916
|
}
|
|
895
|
-
|
|
917
|
+
Kb(b, a, c);
|
|
896
918
|
}
|
|
897
|
-
function
|
|
898
|
-
|
|
919
|
+
function Lb(b) {
|
|
920
|
+
R(b.g.j.h.name + " instance already deleted");
|
|
899
921
|
}
|
|
900
|
-
function
|
|
922
|
+
function Mb() {
|
|
901
923
|
}
|
|
902
|
-
function
|
|
924
|
+
function Nb(b, a, c) {
|
|
903
925
|
if (void 0 === b[a].m) {
|
|
904
926
|
var d = b[a];
|
|
905
927
|
b[a] = function() {
|
|
906
|
-
b[a].m.hasOwnProperty(arguments.length) ||
|
|
928
|
+
b[a].m.hasOwnProperty(arguments.length) || R(`Function '${c}' called with an invalid number of arguments (${arguments.length}) - expects one of (${b[a].m})!`);
|
|
907
929
|
return b[a].m[arguments.length].apply(this, arguments);
|
|
908
930
|
};
|
|
909
931
|
b[a].m = [];
|
|
910
932
|
b[a].m[d.L] = d;
|
|
911
933
|
}
|
|
912
934
|
}
|
|
913
|
-
function
|
|
914
|
-
|
|
935
|
+
function Ob(b, a, c) {
|
|
936
|
+
h.hasOwnProperty(b) ? ((void 0 === c || void 0 !== h[b].m && void 0 !== h[b].m[c]) && R(`Cannot register public name '${b}' twice`), Nb(h, b, b), h.hasOwnProperty(c) && R(`Cannot register multiple overloads of a function with the same number of arguments (${c})!`), h[b].m[c] = a) : (h[b] = a, void 0 !== c && (h[b].tb = c));
|
|
915
937
|
}
|
|
916
|
-
function
|
|
938
|
+
function Pb(b, a, c, d, e, g, m, l) {
|
|
917
939
|
this.name = b;
|
|
918
940
|
this.constructor = a;
|
|
919
941
|
this.B = c;
|
|
920
942
|
this.H = d;
|
|
921
943
|
this.l = e;
|
|
922
944
|
this.Ua = g;
|
|
923
|
-
this.S =
|
|
924
|
-
this.Pa =
|
|
945
|
+
this.S = m;
|
|
946
|
+
this.Pa = l;
|
|
925
947
|
this.ya = [];
|
|
926
948
|
}
|
|
927
|
-
function
|
|
949
|
+
function Qb(b, a, c) {
|
|
928
950
|
for (; a !== c;) {
|
|
929
|
-
a.S ||
|
|
951
|
+
a.S || R(`Expected null or instance of ${c.name}, got an instance of ${a.name}`), b = a.S(b), a = a.l;
|
|
930
952
|
}
|
|
931
953
|
return b;
|
|
932
954
|
}
|
|
933
|
-
function
|
|
955
|
+
function Rb(b, a) {
|
|
934
956
|
if (null === a) {
|
|
935
|
-
return this.ea &&
|
|
957
|
+
return this.ea && R(`null is not a valid ${this.name}`), 0;
|
|
936
958
|
}
|
|
937
|
-
a.g ||
|
|
938
|
-
a.g.i ||
|
|
939
|
-
return
|
|
959
|
+
a.g || R(`Cannot pass "${Sb(a)}" as a ${this.name}`);
|
|
960
|
+
a.g.i || R(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
961
|
+
return Qb(a.g.i, a.g.j.h, this.h);
|
|
940
962
|
}
|
|
941
|
-
function
|
|
963
|
+
function Tb(b, a) {
|
|
942
964
|
if (null === a) {
|
|
943
|
-
this.ea &&
|
|
965
|
+
this.ea && R(`null is not a valid ${this.name}`);
|
|
944
966
|
if (this.V) {
|
|
945
967
|
var c = this.fa();
|
|
946
968
|
null !== b && b.push(this.H, c);
|
|
@@ -948,14 +970,14 @@ function Ob(b, a) {
|
|
|
948
970
|
}
|
|
949
971
|
return 0;
|
|
950
972
|
}
|
|
951
|
-
a.g ||
|
|
952
|
-
a.g.i ||
|
|
953
|
-
!this.U && a.g.j.U &&
|
|
954
|
-
c =
|
|
973
|
+
a.g || R(`Cannot pass "${Sb(a)}" as a ${this.name}`);
|
|
974
|
+
a.g.i || R(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
975
|
+
!this.U && a.g.j.U && R(`Cannot convert argument of type ${a.g.A ? a.g.A.name : a.g.j.name} to parameter type ${this.name}`);
|
|
976
|
+
c = Qb(a.g.i, a.g.j.h, this.h);
|
|
955
977
|
if (this.V) {
|
|
956
|
-
switch(void 0 === a.g.s &&
|
|
978
|
+
switch(void 0 === a.g.s && R("Passing raw pointer to smart pointer is illegal"), this.nb) {
|
|
957
979
|
case 0:
|
|
958
|
-
a.g.A === this ? c = a.g.s :
|
|
980
|
+
a.g.A === this ? c = a.g.s : R(`Cannot convert argument of type ${a.g.A ? a.g.A.name : a.g.j.name} to parameter type ${this.name}`);
|
|
959
981
|
break;
|
|
960
982
|
case 1:
|
|
961
983
|
c = a.g.s;
|
|
@@ -965,195 +987,195 @@ function Ob(b, a) {
|
|
|
965
987
|
c = a.g.s;
|
|
966
988
|
} else {
|
|
967
989
|
var d = a.clone();
|
|
968
|
-
c = this.jb(c,
|
|
990
|
+
c = this.jb(c, ab(function() {
|
|
969
991
|
d["delete"]();
|
|
970
992
|
}));
|
|
971
993
|
null !== b && b.push(this.H, c);
|
|
972
994
|
}
|
|
973
995
|
break;
|
|
974
996
|
default:
|
|
975
|
-
|
|
997
|
+
R("Unsupporting sharing policy");
|
|
976
998
|
}
|
|
977
999
|
}
|
|
978
1000
|
return c;
|
|
979
1001
|
}
|
|
980
|
-
function
|
|
1002
|
+
function Ub(b, a) {
|
|
981
1003
|
if (null === a) {
|
|
982
|
-
return this.ea &&
|
|
1004
|
+
return this.ea && R(`null is not a valid ${this.name}`), 0;
|
|
983
1005
|
}
|
|
984
|
-
a.g ||
|
|
985
|
-
a.g.i ||
|
|
986
|
-
a.g.j.U &&
|
|
987
|
-
return
|
|
1006
|
+
a.g || R(`Cannot pass "${Sb(a)}" as a ${this.name}`);
|
|
1007
|
+
a.g.i || R(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
1008
|
+
a.g.j.U && R(`Cannot convert argument of type ${a.g.j.name} to parameter type ${this.name}`);
|
|
1009
|
+
return Qb(a.g.i, a.g.j.h, this.h);
|
|
988
1010
|
}
|
|
989
|
-
function
|
|
1011
|
+
function Vb(b, a, c, d) {
|
|
990
1012
|
this.name = b;
|
|
991
1013
|
this.h = a;
|
|
992
1014
|
this.ea = c;
|
|
993
1015
|
this.U = d;
|
|
994
1016
|
this.V = !1;
|
|
995
1017
|
this.H = this.jb = this.fa = this.za = this.nb = this.ib = void 0;
|
|
996
|
-
void 0 !== a.l ? this.toWireType =
|
|
1018
|
+
void 0 !== a.l ? this.toWireType = Tb : (this.toWireType = d ? Rb : Ub, this.v = null);
|
|
997
1019
|
}
|
|
998
|
-
function
|
|
999
|
-
|
|
1000
|
-
void 0 !==
|
|
1020
|
+
function Wb(b, a, c) {
|
|
1021
|
+
h.hasOwnProperty(b) || Ab("Replacing nonexistant public symbol");
|
|
1022
|
+
void 0 !== h[b].m && void 0 !== c ? h[b].m[c] = a : (h[b] = a, h[b].L = c);
|
|
1001
1023
|
}
|
|
1002
|
-
var
|
|
1003
|
-
var a =
|
|
1004
|
-
a || (b >=
|
|
1024
|
+
var Xb = [], Yb = b => {
|
|
1025
|
+
var a = Xb[b];
|
|
1026
|
+
a || (b >= Xb.length && (Xb.length = b + 1), Xb[b] = a = Ha.get(b));
|
|
1005
1027
|
return a;
|
|
1006
|
-
},
|
|
1028
|
+
}, Zb = (b, a) => {
|
|
1007
1029
|
var c = [];
|
|
1008
1030
|
return function() {
|
|
1009
1031
|
c.length = 0;
|
|
1010
1032
|
Object.assign(c, arguments);
|
|
1011
1033
|
if (b.includes("j")) {
|
|
1012
|
-
var d =
|
|
1034
|
+
var d = h["dynCall_" + b];
|
|
1013
1035
|
d = c && c.length ? d.apply(null, [a].concat(c)) : d.call(null, a);
|
|
1014
1036
|
} else {
|
|
1015
|
-
d =
|
|
1037
|
+
d = Yb(a).apply(null, c);
|
|
1016
1038
|
}
|
|
1017
1039
|
return d;
|
|
1018
1040
|
};
|
|
1019
1041
|
};
|
|
1020
1042
|
function Z(b, a) {
|
|
1021
1043
|
b = U(b);
|
|
1022
|
-
var c = b.includes("j") ?
|
|
1023
|
-
"function" != typeof c &&
|
|
1044
|
+
var c = b.includes("j") ? Zb(b, a) : Yb(a);
|
|
1045
|
+
"function" != typeof c && R(`unknown function pointer with signature ${b}: ${a}`);
|
|
1024
1046
|
return c;
|
|
1025
1047
|
}
|
|
1026
|
-
var
|
|
1027
|
-
function
|
|
1048
|
+
var $b = void 0;
|
|
1049
|
+
function ac(b, a) {
|
|
1028
1050
|
function c(g) {
|
|
1029
|
-
e[g] ||
|
|
1051
|
+
e[g] || jb[g] || (Hb[g] ? Hb[g].forEach(c) : (d.push(g), e[g] = !0));
|
|
1030
1052
|
}
|
|
1031
1053
|
var d = [], e = {};
|
|
1032
1054
|
a.forEach(c);
|
|
1033
|
-
throw new
|
|
1055
|
+
throw new $b(`${b}: ` + d.map(kb).join([", "]));
|
|
1034
1056
|
}
|
|
1035
|
-
function
|
|
1057
|
+
function bc(b, a, c, d, e) {
|
|
1036
1058
|
var g = a.length;
|
|
1037
|
-
2 > g &&
|
|
1038
|
-
var
|
|
1059
|
+
2 > g && R("argTypes array size mismatch! Must at least get return value and 'this' types!");
|
|
1060
|
+
var m = null !== a[1] && null !== c, l = !1;
|
|
1039
1061
|
for (c = 1; c < a.length; ++c) {
|
|
1040
1062
|
if (null !== a[c] && void 0 === a[c].v) {
|
|
1041
|
-
|
|
1063
|
+
l = !0;
|
|
1042
1064
|
break;
|
|
1043
1065
|
}
|
|
1044
1066
|
}
|
|
1045
|
-
var
|
|
1067
|
+
var n = "void" !== a[0].name, k = g - 2, t = Array(k), v = [], x = [];
|
|
1046
1068
|
return function() {
|
|
1047
|
-
arguments.length !==
|
|
1069
|
+
arguments.length !== k && R(`function ${b} called with ${arguments.length} arguments, expected ${k} args!`);
|
|
1048
1070
|
x.length = 0;
|
|
1049
|
-
v.length =
|
|
1071
|
+
v.length = m ? 2 : 1;
|
|
1050
1072
|
v[0] = e;
|
|
1051
|
-
if (
|
|
1073
|
+
if (m) {
|
|
1052
1074
|
var f = a[1].toWireType(x, this);
|
|
1053
1075
|
v[1] = f;
|
|
1054
1076
|
}
|
|
1055
|
-
for (var r = 0; r <
|
|
1077
|
+
for (var r = 0; r < k; ++r) {
|
|
1056
1078
|
t[r] = a[r + 2].toWireType(x, arguments[r]), v.push(t[r]);
|
|
1057
1079
|
}
|
|
1058
1080
|
r = d.apply(null, v);
|
|
1059
|
-
if (
|
|
1060
|
-
|
|
1081
|
+
if (l) {
|
|
1082
|
+
Eb(x);
|
|
1061
1083
|
} else {
|
|
1062
|
-
for (var q =
|
|
1084
|
+
for (var q = m ? 1 : 2; q < a.length; q++) {
|
|
1063
1085
|
var G = 1 === q ? f : t[q - 2];
|
|
1064
1086
|
null !== a[q].v && a[q].v(G);
|
|
1065
1087
|
}
|
|
1066
1088
|
}
|
|
1067
|
-
f =
|
|
1089
|
+
f = n ? a[0].fromWireType(r) : void 0;
|
|
1068
1090
|
return f;
|
|
1069
1091
|
};
|
|
1070
1092
|
}
|
|
1071
|
-
function
|
|
1093
|
+
function cc(b, a) {
|
|
1072
1094
|
for (var c = [], d = 0; d < b; d++) {
|
|
1073
|
-
c.push(
|
|
1095
|
+
c.push(P[a + 4 * d >> 2]);
|
|
1074
1096
|
}
|
|
1075
1097
|
return c;
|
|
1076
1098
|
}
|
|
1077
|
-
function
|
|
1078
|
-
b instanceof Object ||
|
|
1079
|
-
b instanceof a.h.constructor ||
|
|
1080
|
-
b.g.i ||
|
|
1081
|
-
return
|
|
1099
|
+
function dc(b, a, c) {
|
|
1100
|
+
b instanceof Object || R(`${c} with invalid "this": ${b}`);
|
|
1101
|
+
b instanceof a.h.constructor || R(`${c} incompatible with "this" of type ${b.constructor.name}`);
|
|
1102
|
+
b.g.i || R(`cannot call emscripten binding method ${c} on deleted object`);
|
|
1103
|
+
return Qb(b.g.i, b.g.j.h, a.h);
|
|
1082
1104
|
}
|
|
1083
|
-
function
|
|
1084
|
-
b >=
|
|
1105
|
+
function ec(b) {
|
|
1106
|
+
b >= Q.ua && 0 === --Q.get(b).Aa && Q.$a(b);
|
|
1085
1107
|
}
|
|
1086
|
-
function
|
|
1108
|
+
function fc(b, a, c) {
|
|
1087
1109
|
switch(a) {
|
|
1088
1110
|
case 0:
|
|
1089
1111
|
return function(d) {
|
|
1090
|
-
return this.fromWireType((c ?
|
|
1112
|
+
return this.fromWireType((c ? Ba : L)[d]);
|
|
1091
1113
|
};
|
|
1092
1114
|
case 1:
|
|
1093
1115
|
return function(d) {
|
|
1094
|
-
return this.fromWireType((c ?
|
|
1116
|
+
return this.fromWireType((c ? Ca : Da)[d >> 1]);
|
|
1095
1117
|
};
|
|
1096
1118
|
case 2:
|
|
1097
1119
|
return function(d) {
|
|
1098
|
-
return this.fromWireType((c ?
|
|
1120
|
+
return this.fromWireType((c ? M : P)[d >> 2]);
|
|
1099
1121
|
};
|
|
1100
1122
|
default:
|
|
1101
1123
|
throw new TypeError("Unknown integer type: " + b);
|
|
1102
1124
|
}
|
|
1103
1125
|
}
|
|
1104
|
-
function
|
|
1126
|
+
function Sb(b) {
|
|
1105
1127
|
if (null === b) {
|
|
1106
1128
|
return "null";
|
|
1107
1129
|
}
|
|
1108
1130
|
var a = typeof b;
|
|
1109
1131
|
return "object" === a || "array" === a || "function" === a ? b.toString() : "" + b;
|
|
1110
1132
|
}
|
|
1111
|
-
function
|
|
1133
|
+
function gc(b, a) {
|
|
1112
1134
|
switch(a) {
|
|
1113
1135
|
case 2:
|
|
1114
1136
|
return function(c) {
|
|
1115
|
-
return this.fromWireType(
|
|
1137
|
+
return this.fromWireType(Ea[c >> 2]);
|
|
1116
1138
|
};
|
|
1117
1139
|
case 3:
|
|
1118
1140
|
return function(c) {
|
|
1119
|
-
return this.fromWireType(
|
|
1141
|
+
return this.fromWireType(Fa[c >> 3]);
|
|
1120
1142
|
};
|
|
1121
1143
|
default:
|
|
1122
1144
|
throw new TypeError("Unknown float type: " + b);
|
|
1123
1145
|
}
|
|
1124
1146
|
}
|
|
1125
|
-
function
|
|
1147
|
+
function hc(b, a, c) {
|
|
1126
1148
|
switch(a) {
|
|
1127
1149
|
case 0:
|
|
1128
1150
|
return c ? function(d) {
|
|
1129
|
-
return
|
|
1151
|
+
return Ba[d];
|
|
1130
1152
|
} : function(d) {
|
|
1131
|
-
return
|
|
1153
|
+
return L[d];
|
|
1132
1154
|
};
|
|
1133
1155
|
case 1:
|
|
1134
1156
|
return c ? function(d) {
|
|
1135
|
-
return Ba[d >> 1];
|
|
1136
|
-
} : function(d) {
|
|
1137
1157
|
return Ca[d >> 1];
|
|
1158
|
+
} : function(d) {
|
|
1159
|
+
return Da[d >> 1];
|
|
1138
1160
|
};
|
|
1139
1161
|
case 2:
|
|
1140
1162
|
return c ? function(d) {
|
|
1141
|
-
return L[d >> 2];
|
|
1142
|
-
} : function(d) {
|
|
1143
1163
|
return M[d >> 2];
|
|
1164
|
+
} : function(d) {
|
|
1165
|
+
return P[d >> 2];
|
|
1144
1166
|
};
|
|
1145
1167
|
default:
|
|
1146
1168
|
throw new TypeError("Unknown integer type: " + b);
|
|
1147
1169
|
}
|
|
1148
1170
|
}
|
|
1149
|
-
var
|
|
1171
|
+
var ic = (b, a, c, d) => {
|
|
1150
1172
|
if (0 < d) {
|
|
1151
1173
|
d = c + d - 1;
|
|
1152
1174
|
for (var e = 0; e < b.length; ++e) {
|
|
1153
1175
|
var g = b.charCodeAt(e);
|
|
1154
1176
|
if (55296 <= g && 57343 >= g) {
|
|
1155
|
-
var
|
|
1156
|
-
g = 65536 + ((g & 1023) << 10) |
|
|
1177
|
+
var m = b.charCodeAt(++e);
|
|
1178
|
+
g = 65536 + ((g & 1023) << 10) | m & 1023;
|
|
1157
1179
|
}
|
|
1158
1180
|
if (127 >= g) {
|
|
1159
1181
|
if (c >= d) {
|
|
@@ -1186,19 +1208,19 @@ var dc = (b, a, c, d) => {
|
|
|
1186
1208
|
}
|
|
1187
1209
|
a[c] = 0;
|
|
1188
1210
|
}
|
|
1189
|
-
},
|
|
1211
|
+
}, jc = b => {
|
|
1190
1212
|
for (var a = 0, c = 0; c < b.length; ++c) {
|
|
1191
1213
|
var d = b.charCodeAt(c);
|
|
1192
1214
|
127 >= d ? a++ : 2047 >= d ? a += 2 : 55296 <= d && 57343 >= d ? (a += 4, ++c) : a += 3;
|
|
1193
1215
|
}
|
|
1194
1216
|
return a;
|
|
1195
|
-
},
|
|
1217
|
+
}, kc = "undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0, lc = (b, a, c) => {
|
|
1196
1218
|
var d = a + c;
|
|
1197
1219
|
for (c = a; b[c] && !(c >= d);) {
|
|
1198
1220
|
++c;
|
|
1199
1221
|
}
|
|
1200
|
-
if (16 < c - a && b.buffer &&
|
|
1201
|
-
return
|
|
1222
|
+
if (16 < c - a && b.buffer && kc) {
|
|
1223
|
+
return kc.decode(b.subarray(a, c));
|
|
1202
1224
|
}
|
|
1203
1225
|
for (d = ""; a < c;) {
|
|
1204
1226
|
var e = b[a++];
|
|
@@ -1207,8 +1229,8 @@ var dc = (b, a, c, d) => {
|
|
|
1207
1229
|
if (192 == (e & 224)) {
|
|
1208
1230
|
d += String.fromCharCode((e & 31) << 6 | g);
|
|
1209
1231
|
} else {
|
|
1210
|
-
var
|
|
1211
|
-
e = 224 == (e & 240) ? (e & 15) << 12 | g << 6 |
|
|
1232
|
+
var m = b[a++] & 63;
|
|
1233
|
+
e = 224 == (e & 240) ? (e & 15) << 12 | g << 6 | m : (e & 7) << 18 | g << 12 | m << 6 | b[a++] & 63;
|
|
1212
1234
|
65536 > e ? d += String.fromCharCode(e) : (e -= 65536, d += String.fromCharCode(55296 | e >> 10, 56320 | e & 1023));
|
|
1213
1235
|
}
|
|
1214
1236
|
} else {
|
|
@@ -1216,25 +1238,25 @@ var dc = (b, a, c, d) => {
|
|
|
1216
1238
|
}
|
|
1217
1239
|
}
|
|
1218
1240
|
return d;
|
|
1219
|
-
},
|
|
1241
|
+
}, mc = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void 0, nc = (b, a) => {
|
|
1220
1242
|
var c = b >> 1;
|
|
1221
|
-
for (var d = c + a / 2; !(c >= d) &&
|
|
1243
|
+
for (var d = c + a / 2; !(c >= d) && Da[c];) {
|
|
1222
1244
|
++c;
|
|
1223
1245
|
}
|
|
1224
1246
|
c <<= 1;
|
|
1225
|
-
if (32 < c - b &&
|
|
1226
|
-
return
|
|
1247
|
+
if (32 < c - b && mc) {
|
|
1248
|
+
return mc.decode(L.subarray(b, c));
|
|
1227
1249
|
}
|
|
1228
1250
|
c = "";
|
|
1229
1251
|
for (d = 0; !(d >= a / 2); ++d) {
|
|
1230
|
-
var e =
|
|
1252
|
+
var e = Ca[b + 2 * d >> 1];
|
|
1231
1253
|
if (0 == e) {
|
|
1232
1254
|
break;
|
|
1233
1255
|
}
|
|
1234
1256
|
c += String.fromCharCode(e);
|
|
1235
1257
|
}
|
|
1236
1258
|
return c;
|
|
1237
|
-
},
|
|
1259
|
+
}, pc = (b, a, c) => {
|
|
1238
1260
|
void 0 === c && (c = 2147483647);
|
|
1239
1261
|
if (2 > c) {
|
|
1240
1262
|
return 0;
|
|
@@ -1243,13 +1265,13 @@ var dc = (b, a, c, d) => {
|
|
|
1243
1265
|
var d = a;
|
|
1244
1266
|
c = c < 2 * b.length ? c / 2 : b.length;
|
|
1245
1267
|
for (var e = 0; e < c; ++e) {
|
|
1246
|
-
|
|
1268
|
+
Ca[a >> 1] = b.charCodeAt(e), a += 2;
|
|
1247
1269
|
}
|
|
1248
|
-
|
|
1270
|
+
Ca[a >> 1] = 0;
|
|
1249
1271
|
return a - d;
|
|
1250
|
-
},
|
|
1272
|
+
}, qc = b => 2 * b.length, rc = (b, a) => {
|
|
1251
1273
|
for (var c = 0, d = ""; !(c >= a / 4);) {
|
|
1252
|
-
var e =
|
|
1274
|
+
var e = M[b + 4 * c >> 2];
|
|
1253
1275
|
if (0 == e) {
|
|
1254
1276
|
break;
|
|
1255
1277
|
}
|
|
@@ -1257,7 +1279,7 @@ var dc = (b, a, c, d) => {
|
|
|
1257
1279
|
65536 <= e ? (e -= 65536, d += String.fromCharCode(55296 | e >> 10, 56320 | e & 1023)) : d += String.fromCharCode(e);
|
|
1258
1280
|
}
|
|
1259
1281
|
return d;
|
|
1260
|
-
},
|
|
1282
|
+
}, sc = (b, a, c) => {
|
|
1261
1283
|
void 0 === c && (c = 2147483647);
|
|
1262
1284
|
if (4 > c) {
|
|
1263
1285
|
return 0;
|
|
@@ -1267,61 +1289,61 @@ var dc = (b, a, c, d) => {
|
|
|
1267
1289
|
for (var e = 0; e < b.length; ++e) {
|
|
1268
1290
|
var g = b.charCodeAt(e);
|
|
1269
1291
|
if (55296 <= g && 57343 >= g) {
|
|
1270
|
-
var
|
|
1271
|
-
g = 65536 + ((g & 1023) << 10) |
|
|
1292
|
+
var m = b.charCodeAt(++e);
|
|
1293
|
+
g = 65536 + ((g & 1023) << 10) | m & 1023;
|
|
1272
1294
|
}
|
|
1273
|
-
|
|
1295
|
+
M[a >> 2] = g;
|
|
1274
1296
|
a += 4;
|
|
1275
1297
|
if (a + 4 > c) {
|
|
1276
1298
|
break;
|
|
1277
1299
|
}
|
|
1278
1300
|
}
|
|
1279
|
-
|
|
1301
|
+
M[a >> 2] = 0;
|
|
1280
1302
|
return a - d;
|
|
1281
|
-
},
|
|
1303
|
+
}, tc = b => {
|
|
1282
1304
|
for (var a = 0, c = 0; c < b.length; ++c) {
|
|
1283
1305
|
var d = b.charCodeAt(c);
|
|
1284
1306
|
55296 <= d && 57343 >= d && ++c;
|
|
1285
1307
|
a += 4;
|
|
1286
1308
|
}
|
|
1287
1309
|
return a;
|
|
1288
|
-
},
|
|
1289
|
-
function
|
|
1290
|
-
var a =
|
|
1310
|
+
}, uc = {};
|
|
1311
|
+
function vc(b) {
|
|
1312
|
+
var a = uc[b];
|
|
1291
1313
|
return void 0 === a ? U(b) : a;
|
|
1292
1314
|
}
|
|
1293
|
-
var
|
|
1294
|
-
function
|
|
1295
|
-
var a =
|
|
1296
|
-
|
|
1315
|
+
var wc = [];
|
|
1316
|
+
function xc(b) {
|
|
1317
|
+
var a = wc.length;
|
|
1318
|
+
wc.push(b);
|
|
1297
1319
|
return a;
|
|
1298
1320
|
}
|
|
1299
|
-
function
|
|
1321
|
+
function yc(b, a) {
|
|
1300
1322
|
for (var c = Array(b), d = 0; d < b; ++d) {
|
|
1301
|
-
c[d] =
|
|
1323
|
+
c[d] = nb(P[a + 4 * d >> 2], "parameter " + d);
|
|
1302
1324
|
}
|
|
1303
1325
|
return c;
|
|
1304
1326
|
}
|
|
1305
|
-
var
|
|
1306
|
-
if (!
|
|
1307
|
-
var b = {USER:"web_user", LOGNAME:"web_user", PATH:"/", PWD:"/", HOME:"/home/web_user", LANG:("object" == typeof navigator && navigator.languages && navigator.languages[0] || "C").replace("-", "_") + ".UTF-8", _:"./this.program"}, a;
|
|
1308
|
-
for (a in
|
|
1309
|
-
void 0 ===
|
|
1327
|
+
var zc = [], Ac = {}, Cc = () => {
|
|
1328
|
+
if (!Bc) {
|
|
1329
|
+
var b = {USER:"web_user", LOGNAME:"web_user", PATH:"/", PWD:"/", HOME:"/home/web_user", LANG:("object" == typeof navigator && navigator.languages && navigator.languages[0] || "C").replace("-", "_") + ".UTF-8", _:na || "./this.program"}, a;
|
|
1330
|
+
for (a in Ac) {
|
|
1331
|
+
void 0 === Ac[a] ? delete b[a] : b[a] = Ac[a];
|
|
1310
1332
|
}
|
|
1311
1333
|
var c = [];
|
|
1312
1334
|
for (a in b) {
|
|
1313
1335
|
c.push(`${a}=${b[a]}`);
|
|
1314
1336
|
}
|
|
1315
|
-
|
|
1337
|
+
Bc = c;
|
|
1316
1338
|
}
|
|
1317
|
-
return
|
|
1318
|
-
},
|
|
1319
|
-
function
|
|
1320
|
-
var a = Array(
|
|
1321
|
-
|
|
1339
|
+
return Bc;
|
|
1340
|
+
}, Bc, Dc = [null, [], []], Ec = b => 0 === b % 4 && (0 !== b % 100 || 0 === b % 400), Fc = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Gc = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
1341
|
+
function Hc(b) {
|
|
1342
|
+
var a = Array(jc(b) + 1);
|
|
1343
|
+
ic(b, a, 0, a.length);
|
|
1322
1344
|
return a;
|
|
1323
1345
|
}
|
|
1324
|
-
var
|
|
1346
|
+
var Ic = (b, a, c, d) => {
|
|
1325
1347
|
function e(f, r, q) {
|
|
1326
1348
|
for (f = "number" == typeof f ? f.toString() : f || ""; f.length < r;) {
|
|
1327
1349
|
f = q[0] + f;
|
|
@@ -1331,7 +1353,7 @@ var Dc = (b, a, c, d) => {
|
|
|
1331
1353
|
function g(f, r) {
|
|
1332
1354
|
return e(f, r, "0");
|
|
1333
1355
|
}
|
|
1334
|
-
function
|
|
1356
|
+
function m(f, r) {
|
|
1335
1357
|
function q(D) {
|
|
1336
1358
|
return 0 > D ? -1 : 0 < D ? 1 : 0;
|
|
1337
1359
|
}
|
|
@@ -1339,7 +1361,7 @@ var Dc = (b, a, c, d) => {
|
|
|
1339
1361
|
0 === (G = q(f.getFullYear() - r.getFullYear())) && 0 === (G = q(f.getMonth() - r.getMonth())) && (G = q(f.getDate() - r.getDate()));
|
|
1340
1362
|
return G;
|
|
1341
1363
|
}
|
|
1342
|
-
function
|
|
1364
|
+
function l(f) {
|
|
1343
1365
|
switch(f.getDay()) {
|
|
1344
1366
|
case 0:
|
|
1345
1367
|
return new Date(f.getFullYear() - 1, 11, 29);
|
|
@@ -1357,10 +1379,10 @@ var Dc = (b, a, c, d) => {
|
|
|
1357
1379
|
return new Date(f.getFullYear() - 1, 11, 30);
|
|
1358
1380
|
}
|
|
1359
1381
|
}
|
|
1360
|
-
function
|
|
1382
|
+
function n(f) {
|
|
1361
1383
|
var r = f.J;
|
|
1362
1384
|
for (f = new Date((new Date(f.K + 1900, 0, 1)).getTime()); 0 < r;) {
|
|
1363
|
-
var q = f.getMonth(), G = (
|
|
1385
|
+
var q = f.getMonth(), G = (Ec(f.getFullYear()) ? Fc : Gc)[q];
|
|
1364
1386
|
if (r > G - f.getDate()) {
|
|
1365
1387
|
r -= G - f.getDate() + 1, f.setDate(1), 11 > q ? f.setMonth(q + 1) : (f.setMonth(0), f.setFullYear(f.getFullYear() + 1));
|
|
1366
1388
|
} else {
|
|
@@ -1369,35 +1391,35 @@ var Dc = (b, a, c, d) => {
|
|
|
1369
1391
|
}
|
|
1370
1392
|
}
|
|
1371
1393
|
q = new Date(f.getFullYear() + 1, 0, 4);
|
|
1372
|
-
r =
|
|
1373
|
-
q =
|
|
1374
|
-
return 0 >=
|
|
1394
|
+
r = l(new Date(f.getFullYear(), 0, 4));
|
|
1395
|
+
q = l(q);
|
|
1396
|
+
return 0 >= m(r, f) ? 0 >= m(q, f) ? f.getFullYear() + 1 : f.getFullYear() : f.getFullYear() - 1;
|
|
1375
1397
|
}
|
|
1376
|
-
var
|
|
1377
|
-
d = {qb:
|
|
1378
|
-
c = c ?
|
|
1379
|
-
|
|
1380
|
-
for (var t in
|
|
1381
|
-
c = c.replace(new RegExp(t, "g"),
|
|
1398
|
+
var k = M[d + 40 >> 2];
|
|
1399
|
+
d = {qb:M[d >> 2], pb:M[d + 4 >> 2], Z:M[d + 8 >> 2], ha:M[d + 12 >> 2], $:M[d + 16 >> 2], K:M[d + 20 >> 2], C:M[d + 24 >> 2], J:M[d + 28 >> 2], ub:M[d + 32 >> 2], ob:M[d + 36 >> 2], rb:k ? k ? lc(L, k) : "" : ""};
|
|
1400
|
+
c = c ? lc(L, c) : "";
|
|
1401
|
+
k = {"%c":"%a %b %d %H:%M:%S %Y", "%D":"%m/%d/%y", "%F":"%Y-%m-%d", "%h":"%b", "%r":"%I:%M:%S %p", "%R":"%H:%M", "%T":"%H:%M:%S", "%x":"%m/%d/%y", "%X":"%H:%M:%S", "%Ec":"%c", "%EC":"%C", "%Ex":"%m/%d/%y", "%EX":"%H:%M:%S", "%Ey":"%y", "%EY":"%Y", "%Od":"%d", "%Oe":"%e", "%OH":"%H", "%OI":"%I", "%Om":"%m", "%OM":"%M", "%OS":"%S", "%Ou":"%u", "%OU":"%U", "%OV":"%V", "%Ow":"%w", "%OW":"%W", "%Oy":"%y",};
|
|
1402
|
+
for (var t in k) {
|
|
1403
|
+
c = c.replace(new RegExp(t, "g"), k[t]);
|
|
1382
1404
|
}
|
|
1383
1405
|
var v = "Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "), x = "January February March April May June July August September October November December".split(" ");
|
|
1384
|
-
|
|
1406
|
+
k = {"%a":f => v[f.C].substring(0, 3), "%A":f => v[f.C], "%b":f => x[f.$].substring(0, 3), "%B":f => x[f.$], "%C":f => g((f.K + 1900) / 100 | 0, 2), "%d":f => g(f.ha, 2), "%e":f => e(f.ha, 2, " "), "%g":f => n(f).toString().substring(2), "%G":f => n(f), "%H":f => g(f.Z, 2), "%I":f => {
|
|
1385
1407
|
f = f.Z;
|
|
1386
1408
|
0 == f ? f = 12 : 12 < f && (f -= 12);
|
|
1387
1409
|
return g(f, 2);
|
|
1388
1410
|
}, "%j":f => {
|
|
1389
|
-
for (var r = 0, q = 0; q <= f.$ - 1; r += (
|
|
1411
|
+
for (var r = 0, q = 0; q <= f.$ - 1; r += (Ec(f.K + 1900) ? Fc : Gc)[q++]) {
|
|
1390
1412
|
}
|
|
1391
1413
|
return g(f.ha + r, 3);
|
|
1392
1414
|
}, "%m":f => g(f.$ + 1, 2), "%M":f => g(f.pb, 2), "%n":() => "\n", "%p":f => 0 <= f.Z && 12 > f.Z ? "AM" : "PM", "%S":f => g(f.qb, 2), "%t":() => "\t", "%u":f => f.C || 7, "%U":f => g(Math.floor((f.J + 7 - f.C) / 7), 2), "%V":f => {
|
|
1393
1415
|
var r = Math.floor((f.J + 7 - (f.C + 6) % 7) / 7);
|
|
1394
1416
|
2 >= (f.C + 371 - f.J - 2) % 7 && r++;
|
|
1395
1417
|
if (r) {
|
|
1396
|
-
53 == r && (q = (f.C + 371 - f.J) % 7, 4 == q || 3 == q &&
|
|
1418
|
+
53 == r && (q = (f.C + 371 - f.J) % 7, 4 == q || 3 == q && Ec(f.K) || (r = 1));
|
|
1397
1419
|
} else {
|
|
1398
1420
|
r = 52;
|
|
1399
1421
|
var q = (f.C + 7 - f.J - 1) % 7;
|
|
1400
|
-
(4 == q || 5 == q &&
|
|
1422
|
+
(4 == q || 5 == q && Ec(f.K % 400 - 1)) && r++;
|
|
1401
1423
|
}
|
|
1402
1424
|
return g(r, 2);
|
|
1403
1425
|
}, "%w":f => f.C, "%W":f => g(Math.floor((f.J + 7 - (f.C + 6) % 7) / 7), 2), "%y":f => (f.K + 1900).toString().substring(2), "%Y":f => f.K + 1900, "%z":f => {
|
|
@@ -1407,18 +1429,18 @@ var Dc = (b, a, c, d) => {
|
|
|
1407
1429
|
return (r ? "+" : "-") + String("0000" + (f / 60 * 100 + f % 60)).slice(-4);
|
|
1408
1430
|
}, "%Z":f => f.rb, "%%":() => "%"};
|
|
1409
1431
|
c = c.replace(/%%/g, "\x00\x00");
|
|
1410
|
-
for (t in
|
|
1411
|
-
c.includes(t) && (c = c.replace(new RegExp(t, "g"),
|
|
1432
|
+
for (t in k) {
|
|
1433
|
+
c.includes(t) && (c = c.replace(new RegExp(t, "g"), k[t](d)));
|
|
1412
1434
|
}
|
|
1413
1435
|
c = c.replace(/\0\0/g, "%");
|
|
1414
|
-
t =
|
|
1436
|
+
t = Hc(c);
|
|
1415
1437
|
if (t.length > a) {
|
|
1416
1438
|
return 0;
|
|
1417
1439
|
}
|
|
1418
|
-
|
|
1440
|
+
Ba.set(t, b);
|
|
1419
1441
|
return t.length - 1;
|
|
1420
1442
|
};
|
|
1421
|
-
Object.assign(
|
|
1443
|
+
Object.assign(Za.prototype, {get(b) {
|
|
1422
1444
|
return this.G[b];
|
|
1423
1445
|
}, has(b) {
|
|
1424
1446
|
return void 0 !== this.G[b];
|
|
@@ -1430,48 +1452,48 @@ Object.assign(Va.prototype, {get(b) {
|
|
|
1430
1452
|
this.G[b] = void 0;
|
|
1431
1453
|
this.ta.push(b);
|
|
1432
1454
|
}});
|
|
1433
|
-
|
|
1455
|
+
$a = h.BindingError = class extends Error {
|
|
1434
1456
|
constructor(b) {
|
|
1435
1457
|
super(b);
|
|
1436
1458
|
this.name = "BindingError";
|
|
1437
1459
|
}
|
|
1438
1460
|
};
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
for (var b = 0, a =
|
|
1443
|
-
void 0 !==
|
|
1461
|
+
Q.G.push({value:void 0}, {value:null}, {value:!0}, {value:!1},);
|
|
1462
|
+
Q.ua = Q.G.length;
|
|
1463
|
+
h.count_emval_handles = function() {
|
|
1464
|
+
for (var b = 0, a = Q.ua; a < Q.G.length; ++a) {
|
|
1465
|
+
void 0 !== Q.G[a] && ++b;
|
|
1444
1466
|
}
|
|
1445
1467
|
return b;
|
|
1446
1468
|
};
|
|
1447
|
-
|
|
1448
|
-
for (var
|
|
1449
|
-
|
|
1469
|
+
cb = h.PureVirtualError = bb("PureVirtualError");
|
|
1470
|
+
for (var Jc = Array(256), Kc = 0; 256 > Kc; ++Kc) {
|
|
1471
|
+
Jc[Kc] = String.fromCharCode(Kc);
|
|
1450
1472
|
}
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
return Object.keys(
|
|
1473
|
+
db = Jc;
|
|
1474
|
+
h.getInheritedInstanceCount = function() {
|
|
1475
|
+
return Object.keys(hb).length;
|
|
1454
1476
|
};
|
|
1455
|
-
|
|
1477
|
+
h.getLiveInheritedInstances = function() {
|
|
1456
1478
|
var b = [], a;
|
|
1457
|
-
for (a in
|
|
1458
|
-
|
|
1479
|
+
for (a in hb) {
|
|
1480
|
+
hb.hasOwnProperty(a) && b.push(hb[a]);
|
|
1459
1481
|
}
|
|
1460
1482
|
return b;
|
|
1461
1483
|
};
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1484
|
+
h.flushPendingDeletes = fb;
|
|
1485
|
+
h.setDelayFunction = function(b) {
|
|
1486
|
+
gb = b;
|
|
1487
|
+
eb.length && gb && gb(fb);
|
|
1466
1488
|
};
|
|
1467
|
-
|
|
1489
|
+
zb = h.InternalError = class extends Error {
|
|
1468
1490
|
constructor(b) {
|
|
1469
1491
|
super(b);
|
|
1470
1492
|
this.name = "InternalError";
|
|
1471
1493
|
}
|
|
1472
1494
|
};
|
|
1473
|
-
|
|
1474
|
-
if (!(this instanceof
|
|
1495
|
+
Mb.prototype.isAliasOf = function(b) {
|
|
1496
|
+
if (!(this instanceof Mb && b instanceof Mb)) {
|
|
1475
1497
|
return !1;
|
|
1476
1498
|
}
|
|
1477
1499
|
var a = this.g.j.h, c = this.g.i, d = b.g.j.h;
|
|
@@ -1483,58 +1505,58 @@ Hb.prototype.isAliasOf = function(b) {
|
|
|
1483
1505
|
}
|
|
1484
1506
|
return a === d && c === b;
|
|
1485
1507
|
};
|
|
1486
|
-
|
|
1487
|
-
this.g.i ||
|
|
1508
|
+
Mb.prototype.clone = function() {
|
|
1509
|
+
this.g.i || Lb(this);
|
|
1488
1510
|
if (this.g.O) {
|
|
1489
1511
|
return this.g.count.value += 1, this;
|
|
1490
1512
|
}
|
|
1491
|
-
var b =
|
|
1513
|
+
var b = Cb, a = Object, c = a.create, d = Object.getPrototypeOf(this), e = this.g;
|
|
1492
1514
|
b = b(c.call(a, d, {g:{value:{count:e.count, M:e.M, O:e.O, i:e.i, j:e.j, s:e.s, A:e.A,},}}));
|
|
1493
1515
|
b.g.count.value += 1;
|
|
1494
1516
|
b.g.M = !1;
|
|
1495
1517
|
return b;
|
|
1496
1518
|
};
|
|
1497
|
-
|
|
1498
|
-
this.g.i ||
|
|
1499
|
-
this.g.M && !this.g.O &&
|
|
1500
|
-
|
|
1501
|
-
|
|
1519
|
+
Mb.prototype["delete"] = function() {
|
|
1520
|
+
this.g.i || Lb(this);
|
|
1521
|
+
this.g.M && !this.g.O && R("Object already scheduled for deletion");
|
|
1522
|
+
ob(this);
|
|
1523
|
+
qb(this.g);
|
|
1502
1524
|
this.g.O || (this.g.s = void 0, this.g.i = void 0);
|
|
1503
1525
|
};
|
|
1504
|
-
|
|
1526
|
+
Mb.prototype.isDeleted = function() {
|
|
1505
1527
|
return !this.g.i;
|
|
1506
1528
|
};
|
|
1507
|
-
|
|
1508
|
-
this.g.i ||
|
|
1509
|
-
this.g.M && !this.g.O &&
|
|
1510
|
-
|
|
1511
|
-
1 ===
|
|
1529
|
+
Mb.prototype.deleteLater = function() {
|
|
1530
|
+
this.g.i || Lb(this);
|
|
1531
|
+
this.g.M && !this.g.O && R("Object already scheduled for deletion");
|
|
1532
|
+
eb.push(this);
|
|
1533
|
+
1 === eb.length && gb && gb(fb);
|
|
1512
1534
|
this.g.M = !0;
|
|
1513
1535
|
return this;
|
|
1514
1536
|
};
|
|
1515
|
-
|
|
1537
|
+
Vb.prototype.Va = function(b) {
|
|
1516
1538
|
this.za && (b = this.za(b));
|
|
1517
1539
|
return b;
|
|
1518
1540
|
};
|
|
1519
|
-
|
|
1541
|
+
Vb.prototype.pa = function(b) {
|
|
1520
1542
|
this.H && this.H(b);
|
|
1521
1543
|
};
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1544
|
+
Vb.prototype.argPackAdvance = 8;
|
|
1545
|
+
Vb.prototype.readValueFromPointer = Fb;
|
|
1546
|
+
Vb.prototype.deleteObject = function(b) {
|
|
1525
1547
|
if (null !== b) {
|
|
1526
1548
|
b["delete"]();
|
|
1527
1549
|
}
|
|
1528
1550
|
};
|
|
1529
|
-
|
|
1551
|
+
Vb.prototype.fromWireType = function(b) {
|
|
1530
1552
|
function a() {
|
|
1531
|
-
return this.V ?
|
|
1553
|
+
return this.V ? Bb(this.h.B, {j:this.ib, i:c, A:this, s:b,}) : Bb(this.h.B, {j:this, i:b,});
|
|
1532
1554
|
}
|
|
1533
1555
|
var c = this.Va(b);
|
|
1534
1556
|
if (!c) {
|
|
1535
1557
|
return this.pa(b), null;
|
|
1536
1558
|
}
|
|
1537
|
-
var d =
|
|
1559
|
+
var d = yb(this.h, c);
|
|
1538
1560
|
if (void 0 !== d) {
|
|
1539
1561
|
if (0 === d.g.count.value) {
|
|
1540
1562
|
return d.g.i = c, d.g.s = b, d.clone();
|
|
@@ -1544,118 +1566,118 @@ Qb.prototype.fromWireType = function(b) {
|
|
|
1544
1566
|
return d;
|
|
1545
1567
|
}
|
|
1546
1568
|
d = this.h.Ua(c);
|
|
1547
|
-
d =
|
|
1569
|
+
d = sb[d];
|
|
1548
1570
|
if (!d) {
|
|
1549
1571
|
return a.call(this);
|
|
1550
1572
|
}
|
|
1551
1573
|
d = this.U ? d.Ka : d.pointerType;
|
|
1552
|
-
var e =
|
|
1553
|
-
return null === e ? a.call(this) : this.V ?
|
|
1574
|
+
var e = rb(c, this.h, d.h);
|
|
1575
|
+
return null === e ? a.call(this) : this.V ? Bb(d.h.B, {j:d, i:e, A:this, s:b,}) : Bb(d.h.B, {j:d, i:e,});
|
|
1554
1576
|
};
|
|
1555
|
-
|
|
1556
|
-
var
|
|
1577
|
+
$b = h.UnboundTypeError = bb("UnboundTypeError");
|
|
1578
|
+
var Mc = {_embind_create_inheriting_constructor:function(b, a, c) {
|
|
1557
1579
|
b = U(b);
|
|
1558
|
-
a =
|
|
1559
|
-
c =
|
|
1560
|
-
var d = [].slice, e = a.h, g = e.B,
|
|
1561
|
-
b =
|
|
1562
|
-
e.l.ya.forEach(function(
|
|
1563
|
-
if (this[
|
|
1564
|
-
throw new
|
|
1580
|
+
a = nb(a, "wrapper");
|
|
1581
|
+
c = S(c);
|
|
1582
|
+
var d = [].slice, e = a.h, g = e.B, m = e.l.B, l = e.l.constructor;
|
|
1583
|
+
b = Ya(b, function() {
|
|
1584
|
+
e.l.ya.forEach(function(k) {
|
|
1585
|
+
if (this[k] === m[k]) {
|
|
1586
|
+
throw new cb(`Pure virtual function ${k} must be implemented in JavaScript`);
|
|
1565
1587
|
}
|
|
1566
1588
|
}.bind(this));
|
|
1567
1589
|
Object.defineProperty(this, "__parent", {value:g});
|
|
1568
1590
|
this.__construct.apply(this, d.call(arguments));
|
|
1569
1591
|
});
|
|
1570
1592
|
g.__construct = function() {
|
|
1571
|
-
this === g &&
|
|
1572
|
-
var
|
|
1573
|
-
|
|
1574
|
-
var t =
|
|
1575
|
-
|
|
1593
|
+
this === g && R("Pass correct 'this' to __construct");
|
|
1594
|
+
var k = l.implement.apply(void 0, [this].concat(d.call(arguments)));
|
|
1595
|
+
ob(k);
|
|
1596
|
+
var t = k.g;
|
|
1597
|
+
k.notifyOnDestruction();
|
|
1576
1598
|
t.O = !0;
|
|
1577
1599
|
Object.defineProperties(this, {g:{value:t}});
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1600
|
+
Cb(this);
|
|
1601
|
+
k = t.i;
|
|
1602
|
+
k = ib(e, k);
|
|
1603
|
+
hb.hasOwnProperty(k) ? R(`Tried to register registered instance: ${k}`) : hb[k] = this;
|
|
1582
1604
|
};
|
|
1583
1605
|
g.__destruct = function() {
|
|
1584
|
-
this === g &&
|
|
1585
|
-
|
|
1586
|
-
var
|
|
1587
|
-
|
|
1588
|
-
|
|
1606
|
+
this === g && R("Pass correct 'this' to __destruct");
|
|
1607
|
+
ob(this);
|
|
1608
|
+
var k = this.g.i;
|
|
1609
|
+
k = ib(e, k);
|
|
1610
|
+
hb.hasOwnProperty(k) ? delete hb[k] : R(`Tried to unregister unregistered instance: ${k}`);
|
|
1589
1611
|
};
|
|
1590
1612
|
b.prototype = Object.create(g);
|
|
1591
|
-
for (var
|
|
1592
|
-
b.prototype[
|
|
1613
|
+
for (var n in c) {
|
|
1614
|
+
b.prototype[n] = c[n];
|
|
1593
1615
|
}
|
|
1594
|
-
return
|
|
1616
|
+
return ab(b);
|
|
1595
1617
|
}, _embind_finalize_value_object:function(b) {
|
|
1596
|
-
var a =
|
|
1597
|
-
delete
|
|
1598
|
-
var c = a.fa, d = a.H, e = a.sa, g = e.map(
|
|
1599
|
-
V([b], g,
|
|
1600
|
-
var
|
|
1601
|
-
e.forEach((
|
|
1602
|
-
var t =
|
|
1603
|
-
|
|
1618
|
+
var a = Db[b];
|
|
1619
|
+
delete Db[b];
|
|
1620
|
+
var c = a.fa, d = a.H, e = a.sa, g = e.map(m => m.Ya).concat(e.map(m => m.lb));
|
|
1621
|
+
V([b], g, m => {
|
|
1622
|
+
var l = {};
|
|
1623
|
+
e.forEach((n, k) => {
|
|
1624
|
+
var t = m[k], v = n.Wa, x = n.Xa, f = m[k + e.length], r = n.kb, q = n.mb;
|
|
1625
|
+
l[n.Sa] = {read:G => t.fromWireType(v(x, G)), write:(G, D) => {
|
|
1604
1626
|
var u = [];
|
|
1605
1627
|
r(q, G, f.toWireType(u, D));
|
|
1606
|
-
|
|
1628
|
+
Eb(u);
|
|
1607
1629
|
}};
|
|
1608
1630
|
});
|
|
1609
|
-
return [{name:a.name, fromWireType:function(
|
|
1610
|
-
var
|
|
1611
|
-
for (t in
|
|
1612
|
-
|
|
1631
|
+
return [{name:a.name, fromWireType:function(n) {
|
|
1632
|
+
var k = {}, t;
|
|
1633
|
+
for (t in l) {
|
|
1634
|
+
k[t] = l[t].read(n);
|
|
1613
1635
|
}
|
|
1614
|
-
d(
|
|
1615
|
-
return
|
|
1616
|
-
}, toWireType:function(
|
|
1617
|
-
for (var t in
|
|
1618
|
-
if (!(t in
|
|
1636
|
+
d(n);
|
|
1637
|
+
return k;
|
|
1638
|
+
}, toWireType:function(n, k) {
|
|
1639
|
+
for (var t in l) {
|
|
1640
|
+
if (!(t in k)) {
|
|
1619
1641
|
throw new TypeError(`Missing field: "${t}"`);
|
|
1620
1642
|
}
|
|
1621
1643
|
}
|
|
1622
1644
|
var v = c();
|
|
1623
|
-
for (t in
|
|
1624
|
-
|
|
1645
|
+
for (t in l) {
|
|
1646
|
+
l[t].write(v, k[t]);
|
|
1625
1647
|
}
|
|
1626
|
-
null !==
|
|
1648
|
+
null !== n && n.push(d, v);
|
|
1627
1649
|
return v;
|
|
1628
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
1650
|
+
}, argPackAdvance:8, readValueFromPointer:Fb, v:d,}];
|
|
1629
1651
|
});
|
|
1630
1652
|
}, _embind_register_bigint:function() {
|
|
1631
1653
|
}, _embind_register_bool:function(b, a, c, d, e) {
|
|
1632
|
-
var g =
|
|
1654
|
+
var g = Jb(c);
|
|
1633
1655
|
a = U(a);
|
|
1634
|
-
|
|
1635
|
-
return !!
|
|
1636
|
-
}, toWireType:function(
|
|
1637
|
-
return
|
|
1638
|
-
}, argPackAdvance:8, readValueFromPointer:function(
|
|
1656
|
+
Ib(b, {name:a, fromWireType:function(m) {
|
|
1657
|
+
return !!m;
|
|
1658
|
+
}, toWireType:function(m, l) {
|
|
1659
|
+
return l ? d : e;
|
|
1660
|
+
}, argPackAdvance:8, readValueFromPointer:function(m) {
|
|
1639
1661
|
if (1 === c) {
|
|
1640
|
-
var
|
|
1662
|
+
var l = Ba;
|
|
1641
1663
|
} else if (2 === c) {
|
|
1642
|
-
|
|
1664
|
+
l = Ca;
|
|
1643
1665
|
} else if (4 === c) {
|
|
1644
|
-
|
|
1666
|
+
l = M;
|
|
1645
1667
|
} else {
|
|
1646
1668
|
throw new TypeError("Unknown boolean type size: " + a);
|
|
1647
1669
|
}
|
|
1648
|
-
return this.fromWireType(
|
|
1670
|
+
return this.fromWireType(l[m >> g]);
|
|
1649
1671
|
}, v:null,});
|
|
1650
|
-
}, _embind_register_class:function(b, a, c, d, e, g,
|
|
1672
|
+
}, _embind_register_class:function(b, a, c, d, e, g, m, l, n, k, t, v, x) {
|
|
1651
1673
|
t = U(t);
|
|
1652
1674
|
g = Z(e, g);
|
|
1653
|
-
|
|
1654
|
-
|
|
1675
|
+
l && (l = Z(m, l));
|
|
1676
|
+
k && (k = Z(n, k));
|
|
1655
1677
|
x = Z(v, x);
|
|
1656
|
-
var f =
|
|
1657
|
-
|
|
1658
|
-
|
|
1678
|
+
var f = Xa(t);
|
|
1679
|
+
Ob(f, function() {
|
|
1680
|
+
ac(`Cannot construct ${t} due to unbound types`, [d]);
|
|
1659
1681
|
});
|
|
1660
1682
|
V([b, a, c], d ? [d] : [], function(r) {
|
|
1661
1683
|
r = r[0];
|
|
@@ -1663,50 +1685,50 @@ var Hc = {_embind_create_inheriting_constructor:function(b, a, c) {
|
|
|
1663
1685
|
var q = r.h;
|
|
1664
1686
|
var G = q.B;
|
|
1665
1687
|
} else {
|
|
1666
|
-
G =
|
|
1688
|
+
G = Mb.prototype;
|
|
1667
1689
|
}
|
|
1668
|
-
r =
|
|
1690
|
+
r = Ya(f, function() {
|
|
1669
1691
|
if (Object.getPrototypeOf(this) !== D) {
|
|
1670
|
-
throw new
|
|
1692
|
+
throw new $a("Use 'new' to construct " + t);
|
|
1671
1693
|
}
|
|
1672
1694
|
if (void 0 === u.I) {
|
|
1673
|
-
throw new
|
|
1695
|
+
throw new $a(t + " has no accessible constructor");
|
|
1674
1696
|
}
|
|
1675
1697
|
var O = u.I[arguments.length];
|
|
1676
1698
|
if (void 0 === O) {
|
|
1677
|
-
throw new
|
|
1699
|
+
throw new $a(`Tried to invoke ctor of ${t} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(u.I).toString()}) parameters instead!`);
|
|
1678
1700
|
}
|
|
1679
1701
|
return O.apply(this, arguments);
|
|
1680
1702
|
});
|
|
1681
1703
|
var D = Object.create(G, {constructor:{value:r},});
|
|
1682
1704
|
r.prototype = D;
|
|
1683
|
-
var u = new
|
|
1705
|
+
var u = new Pb(t, r, D, x, q, g, l, k);
|
|
1684
1706
|
u.l && (void 0 === u.l.T && (u.l.T = []), u.l.T.push(u));
|
|
1685
|
-
q = new
|
|
1686
|
-
G = new
|
|
1687
|
-
var I = new
|
|
1688
|
-
|
|
1689
|
-
|
|
1707
|
+
q = new Vb(t, u, !0, !1);
|
|
1708
|
+
G = new Vb(t + "*", u, !1, !1);
|
|
1709
|
+
var I = new Vb(t + " const*", u, !1, !0);
|
|
1710
|
+
sb[b] = {pointerType:G, Ka:I};
|
|
1711
|
+
Wb(f, r);
|
|
1690
1712
|
return [q, G, I];
|
|
1691
1713
|
});
|
|
1692
|
-
}, _embind_register_class_class_function:function(b, a, c, d, e, g,
|
|
1693
|
-
var
|
|
1714
|
+
}, _embind_register_class_class_function:function(b, a, c, d, e, g, m) {
|
|
1715
|
+
var l = cc(c, d);
|
|
1694
1716
|
a = U(a);
|
|
1695
1717
|
g = Z(e, g);
|
|
1696
|
-
V([], [b], function(
|
|
1697
|
-
function
|
|
1698
|
-
|
|
1718
|
+
V([], [b], function(n) {
|
|
1719
|
+
function k() {
|
|
1720
|
+
ac(`Cannot call ${t} due to unbound types`, l);
|
|
1699
1721
|
}
|
|
1700
|
-
|
|
1701
|
-
var t = `${
|
|
1722
|
+
n = n[0];
|
|
1723
|
+
var t = `${n.name}.${a}`;
|
|
1702
1724
|
a.startsWith("@@") && (a = Symbol[a.substring(2)]);
|
|
1703
|
-
var v =
|
|
1704
|
-
void 0 === v[a] ? (
|
|
1705
|
-
V([],
|
|
1706
|
-
x =
|
|
1725
|
+
var v = n.h.constructor;
|
|
1726
|
+
void 0 === v[a] ? (k.L = c - 1, v[a] = k) : (Nb(v, a, t), v[a].m[c - 1] = k);
|
|
1727
|
+
V([], l, function(x) {
|
|
1728
|
+
x = bc(t, [x[0], null].concat(x.slice(1)), null, g, m);
|
|
1707
1729
|
void 0 === v[a].m ? (x.L = c - 1, v[a] = x) : v[a].m[c - 1] = x;
|
|
1708
|
-
if (
|
|
1709
|
-
for (const f of
|
|
1730
|
+
if (n.h.T) {
|
|
1731
|
+
for (const f of n.h.T) {
|
|
1710
1732
|
f.constructor.hasOwnProperty(a) || (f.constructor[a] = x);
|
|
1711
1733
|
}
|
|
1712
1734
|
}
|
|
@@ -1714,102 +1736,102 @@ var Hc = {_embind_create_inheriting_constructor:function(b, a, c) {
|
|
|
1714
1736
|
});
|
|
1715
1737
|
return [];
|
|
1716
1738
|
});
|
|
1717
|
-
}, _embind_register_class_class_property:function(b, a, c, d, e, g,
|
|
1739
|
+
}, _embind_register_class_class_property:function(b, a, c, d, e, g, m, l) {
|
|
1718
1740
|
a = U(a);
|
|
1719
1741
|
g = Z(e, g);
|
|
1720
|
-
V([], [b], function(
|
|
1721
|
-
|
|
1722
|
-
var
|
|
1723
|
-
|
|
1742
|
+
V([], [b], function(n) {
|
|
1743
|
+
n = n[0];
|
|
1744
|
+
var k = `${n.name}.${a}`, t = {get() {
|
|
1745
|
+
ac(`Cannot access ${k} due to unbound types`, [c]);
|
|
1724
1746
|
}, enumerable:!0, configurable:!0};
|
|
1725
|
-
t.set =
|
|
1726
|
-
|
|
1747
|
+
t.set = l ? () => {
|
|
1748
|
+
ac(`Cannot access ${k} due to unbound types`, [c]);
|
|
1727
1749
|
} : () => {
|
|
1728
|
-
|
|
1750
|
+
R(`${k} is a read-only property`);
|
|
1729
1751
|
};
|
|
1730
|
-
Object.defineProperty(
|
|
1752
|
+
Object.defineProperty(n.h.constructor, a, t);
|
|
1731
1753
|
V([], [c], function(v) {
|
|
1732
1754
|
v = v[0];
|
|
1733
1755
|
var x = {get() {
|
|
1734
1756
|
return v.fromWireType(g(d));
|
|
1735
1757
|
}, enumerable:!0};
|
|
1736
|
-
|
|
1758
|
+
l && (l = Z(m, l), x.set = f => {
|
|
1737
1759
|
var r = [];
|
|
1738
|
-
|
|
1739
|
-
|
|
1760
|
+
l(d, v.toWireType(r, f));
|
|
1761
|
+
Eb(r);
|
|
1740
1762
|
});
|
|
1741
|
-
Object.defineProperty(
|
|
1763
|
+
Object.defineProperty(n.h.constructor, a, x);
|
|
1742
1764
|
return [];
|
|
1743
1765
|
});
|
|
1744
1766
|
return [];
|
|
1745
1767
|
});
|
|
1746
1768
|
}, _embind_register_class_constructor:function(b, a, c, d, e, g) {
|
|
1747
|
-
var
|
|
1769
|
+
var m = cc(a, c);
|
|
1748
1770
|
e = Z(d, e);
|
|
1749
|
-
V([], [b], function(
|
|
1750
|
-
|
|
1751
|
-
var
|
|
1752
|
-
void 0 ===
|
|
1753
|
-
if (void 0 !==
|
|
1754
|
-
throw new
|
|
1771
|
+
V([], [b], function(l) {
|
|
1772
|
+
l = l[0];
|
|
1773
|
+
var n = `constructor ${l.name}`;
|
|
1774
|
+
void 0 === l.h.I && (l.h.I = []);
|
|
1775
|
+
if (void 0 !== l.h.I[a - 1]) {
|
|
1776
|
+
throw new $a(`Cannot register multiple constructors with identical number of parameters (${a - 1}) for class '${l.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);
|
|
1755
1777
|
}
|
|
1756
|
-
|
|
1757
|
-
|
|
1778
|
+
l.h.I[a - 1] = () => {
|
|
1779
|
+
ac(`Cannot construct ${l.name} due to unbound types`, m);
|
|
1758
1780
|
};
|
|
1759
|
-
V([],
|
|
1760
|
-
|
|
1761
|
-
|
|
1781
|
+
V([], m, function(k) {
|
|
1782
|
+
k.splice(1, 0, null);
|
|
1783
|
+
l.h.I[a - 1] = bc(n, k, null, e, g);
|
|
1762
1784
|
return [];
|
|
1763
1785
|
});
|
|
1764
1786
|
return [];
|
|
1765
1787
|
});
|
|
1766
|
-
}, _embind_register_class_function:function(b, a, c, d, e, g,
|
|
1767
|
-
var
|
|
1788
|
+
}, _embind_register_class_function:function(b, a, c, d, e, g, m, l) {
|
|
1789
|
+
var n = cc(c, d);
|
|
1768
1790
|
a = U(a);
|
|
1769
1791
|
g = Z(e, g);
|
|
1770
|
-
V([], [b], function(
|
|
1792
|
+
V([], [b], function(k) {
|
|
1771
1793
|
function t() {
|
|
1772
|
-
|
|
1794
|
+
ac(`Cannot call ${v} due to unbound types`, n);
|
|
1773
1795
|
}
|
|
1774
|
-
|
|
1775
|
-
var v = `${
|
|
1796
|
+
k = k[0];
|
|
1797
|
+
var v = `${k.name}.${a}`;
|
|
1776
1798
|
a.startsWith("@@") && (a = Symbol[a.substring(2)]);
|
|
1777
|
-
|
|
1778
|
-
var x =
|
|
1779
|
-
void 0 === f || void 0 === f.m && f.className !==
|
|
1780
|
-
V([],
|
|
1781
|
-
r =
|
|
1799
|
+
l && k.h.ya.push(a);
|
|
1800
|
+
var x = k.h.B, f = x[a];
|
|
1801
|
+
void 0 === f || void 0 === f.m && f.className !== k.name && f.L === c - 2 ? (t.L = c - 2, t.className = k.name, x[a] = t) : (Nb(x, a, v), x[a].m[c - 2] = t);
|
|
1802
|
+
V([], n, function(r) {
|
|
1803
|
+
r = bc(v, r, k, g, m);
|
|
1782
1804
|
void 0 === x[a].m ? (r.L = c - 2, x[a] = r) : x[a].m[c - 2] = r;
|
|
1783
1805
|
return [];
|
|
1784
1806
|
});
|
|
1785
1807
|
return [];
|
|
1786
1808
|
});
|
|
1787
|
-
}, _embind_register_class_property:function(b, a, c, d, e, g,
|
|
1809
|
+
}, _embind_register_class_property:function(b, a, c, d, e, g, m, l, n, k) {
|
|
1788
1810
|
a = U(a);
|
|
1789
1811
|
e = Z(d, e);
|
|
1790
1812
|
V([], [b], function(t) {
|
|
1791
1813
|
t = t[0];
|
|
1792
1814
|
var v = `${t.name}.${a}`, x = {get() {
|
|
1793
|
-
|
|
1815
|
+
ac(`Cannot access ${v} due to unbound types`, [c, m]);
|
|
1794
1816
|
}, enumerable:!0, configurable:!0};
|
|
1795
|
-
x.set =
|
|
1796
|
-
|
|
1817
|
+
x.set = n ? () => {
|
|
1818
|
+
ac(`Cannot access ${v} due to unbound types`, [c, m]);
|
|
1797
1819
|
} : () => {
|
|
1798
|
-
|
|
1820
|
+
R(v + " is a read-only property");
|
|
1799
1821
|
};
|
|
1800
1822
|
Object.defineProperty(t.h.B, a, x);
|
|
1801
|
-
V([],
|
|
1823
|
+
V([], n ? [c, m] : [c], function(f) {
|
|
1802
1824
|
var r = f[0], q = {get() {
|
|
1803
|
-
var D =
|
|
1825
|
+
var D = dc(this, t, v + " getter");
|
|
1804
1826
|
return r.fromWireType(e(g, D));
|
|
1805
1827
|
}, enumerable:!0};
|
|
1806
|
-
if (
|
|
1807
|
-
|
|
1828
|
+
if (n) {
|
|
1829
|
+
n = Z(l, n);
|
|
1808
1830
|
var G = f[1];
|
|
1809
1831
|
q.set = function(D) {
|
|
1810
|
-
var u =
|
|
1811
|
-
|
|
1812
|
-
|
|
1832
|
+
var u = dc(this, t, v + " setter"), I = [];
|
|
1833
|
+
n(k, u, G.toWireType(I, D));
|
|
1834
|
+
Eb(I);
|
|
1813
1835
|
};
|
|
1814
1836
|
}
|
|
1815
1837
|
Object.defineProperty(t.h.B, a, q);
|
|
@@ -1819,240 +1841,240 @@ var Hc = {_embind_create_inheriting_constructor:function(b, a, c) {
|
|
|
1819
1841
|
});
|
|
1820
1842
|
}, _embind_register_emval:function(b, a) {
|
|
1821
1843
|
a = U(a);
|
|
1822
|
-
|
|
1823
|
-
var d =
|
|
1824
|
-
|
|
1844
|
+
Ib(b, {name:a, fromWireType:function(c) {
|
|
1845
|
+
var d = S(c);
|
|
1846
|
+
ec(c);
|
|
1825
1847
|
return d;
|
|
1826
1848
|
}, toWireType:function(c, d) {
|
|
1827
|
-
return
|
|
1828
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
1849
|
+
return ab(d);
|
|
1850
|
+
}, argPackAdvance:8, readValueFromPointer:Fb, v:null,});
|
|
1829
1851
|
}, _embind_register_enum:function(b, a, c, d) {
|
|
1830
1852
|
function e() {
|
|
1831
1853
|
}
|
|
1832
|
-
c =
|
|
1854
|
+
c = Jb(c);
|
|
1833
1855
|
a = U(a);
|
|
1834
1856
|
e.values = {};
|
|
1835
|
-
|
|
1857
|
+
Ib(b, {name:a, constructor:e, fromWireType:function(g) {
|
|
1836
1858
|
return this.constructor.values[g];
|
|
1837
|
-
}, toWireType:function(g,
|
|
1838
|
-
return
|
|
1839
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
1840
|
-
|
|
1859
|
+
}, toWireType:function(g, m) {
|
|
1860
|
+
return m.value;
|
|
1861
|
+
}, argPackAdvance:8, readValueFromPointer:fc(a, c, d), v:null,});
|
|
1862
|
+
Ob(a, e);
|
|
1841
1863
|
}, _embind_register_enum_value:function(b, a, c) {
|
|
1842
|
-
var d =
|
|
1864
|
+
var d = nb(b, "enum");
|
|
1843
1865
|
a = U(a);
|
|
1844
1866
|
b = d.constructor;
|
|
1845
|
-
d = Object.create(d.constructor.prototype, {value:{value:c}, constructor:{value:
|
|
1867
|
+
d = Object.create(d.constructor.prototype, {value:{value:c}, constructor:{value:Ya(`${d.name}_${a}`, function() {
|
|
1846
1868
|
})},});
|
|
1847
1869
|
b.values[c] = d;
|
|
1848
1870
|
b[a] = d;
|
|
1849
1871
|
}, _embind_register_float:function(b, a, c) {
|
|
1850
|
-
c =
|
|
1872
|
+
c = Jb(c);
|
|
1851
1873
|
a = U(a);
|
|
1852
|
-
|
|
1874
|
+
Ib(b, {name:a, fromWireType:function(d) {
|
|
1853
1875
|
return d;
|
|
1854
1876
|
}, toWireType:function(d, e) {
|
|
1855
1877
|
return e;
|
|
1856
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
1878
|
+
}, argPackAdvance:8, readValueFromPointer:gc(a, c), v:null,});
|
|
1857
1879
|
}, _embind_register_function:function(b, a, c, d, e, g) {
|
|
1858
|
-
var
|
|
1880
|
+
var m = cc(a, c);
|
|
1859
1881
|
b = U(b);
|
|
1860
1882
|
e = Z(d, e);
|
|
1861
|
-
|
|
1862
|
-
|
|
1883
|
+
Ob(b, function() {
|
|
1884
|
+
ac(`Cannot call ${b} due to unbound types`, m);
|
|
1863
1885
|
}, a - 1);
|
|
1864
|
-
V([],
|
|
1865
|
-
|
|
1886
|
+
V([], m, function(l) {
|
|
1887
|
+
Wb(b, bc(b, [l[0], null].concat(l.slice(1)), null, e, g), a - 1);
|
|
1866
1888
|
return [];
|
|
1867
1889
|
});
|
|
1868
1890
|
}, _embind_register_integer:function(b, a, c, d, e) {
|
|
1869
1891
|
a = U(a);
|
|
1870
1892
|
-1 === e && (e = 4294967295);
|
|
1871
|
-
e =
|
|
1872
|
-
var g =
|
|
1893
|
+
e = Jb(c);
|
|
1894
|
+
var g = l => l;
|
|
1873
1895
|
if (0 === d) {
|
|
1874
|
-
var
|
|
1875
|
-
g =
|
|
1896
|
+
var m = 32 - 8 * c;
|
|
1897
|
+
g = l => l << m >>> m;
|
|
1876
1898
|
}
|
|
1877
|
-
c = a.includes("unsigned") ? function(
|
|
1878
|
-
return
|
|
1879
|
-
} : function(
|
|
1880
|
-
return
|
|
1899
|
+
c = a.includes("unsigned") ? function(l, n) {
|
|
1900
|
+
return n >>> 0;
|
|
1901
|
+
} : function(l, n) {
|
|
1902
|
+
return n;
|
|
1881
1903
|
};
|
|
1882
|
-
|
|
1904
|
+
Ib(b, {name:a, fromWireType:g, toWireType:c, argPackAdvance:8, readValueFromPointer:hc(a, e, 0 !== d), v:null,});
|
|
1883
1905
|
}, _embind_register_memory_view:function(b, a, c) {
|
|
1884
1906
|
function d(g) {
|
|
1885
1907
|
g >>= 2;
|
|
1886
|
-
var
|
|
1887
|
-
return new e(
|
|
1908
|
+
var m = P;
|
|
1909
|
+
return new e(m.buffer, m[g + 1], m[g]);
|
|
1888
1910
|
}
|
|
1889
1911
|
var e = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array,][a];
|
|
1890
1912
|
c = U(c);
|
|
1891
|
-
|
|
1913
|
+
Ib(b, {name:c, fromWireType:d, argPackAdvance:8, readValueFromPointer:d,}, {ab:!0,});
|
|
1892
1914
|
}, _embind_register_std_string:function(b, a) {
|
|
1893
1915
|
a = U(a);
|
|
1894
1916
|
var c = "std::string" === a;
|
|
1895
|
-
|
|
1896
|
-
var e =
|
|
1917
|
+
Ib(b, {name:a, fromWireType:function(d) {
|
|
1918
|
+
var e = P[d >> 2], g = d + 4;
|
|
1897
1919
|
if (c) {
|
|
1898
|
-
for (var
|
|
1899
|
-
var
|
|
1900
|
-
if (
|
|
1901
|
-
|
|
1902
|
-
if (void 0 ===
|
|
1903
|
-
var
|
|
1920
|
+
for (var m = g, l = 0; l <= e; ++l) {
|
|
1921
|
+
var n = g + l;
|
|
1922
|
+
if (l == e || 0 == L[n]) {
|
|
1923
|
+
m = m ? lc(L, m, n - m) : "";
|
|
1924
|
+
if (void 0 === k) {
|
|
1925
|
+
var k = m;
|
|
1904
1926
|
} else {
|
|
1905
|
-
|
|
1927
|
+
k += String.fromCharCode(0), k += m;
|
|
1906
1928
|
}
|
|
1907
|
-
|
|
1929
|
+
m = n + 1;
|
|
1908
1930
|
}
|
|
1909
1931
|
}
|
|
1910
1932
|
} else {
|
|
1911
|
-
|
|
1912
|
-
for (
|
|
1913
|
-
|
|
1933
|
+
k = Array(e);
|
|
1934
|
+
for (l = 0; l < e; ++l) {
|
|
1935
|
+
k[l] = String.fromCharCode(L[g + l]);
|
|
1914
1936
|
}
|
|
1915
|
-
|
|
1937
|
+
k = k.join("");
|
|
1916
1938
|
}
|
|
1917
|
-
|
|
1918
|
-
return
|
|
1939
|
+
mb(d);
|
|
1940
|
+
return k;
|
|
1919
1941
|
}, toWireType:function(d, e) {
|
|
1920
1942
|
e instanceof ArrayBuffer && (e = new Uint8Array(e));
|
|
1921
1943
|
var g = "string" == typeof e;
|
|
1922
|
-
g || e instanceof Uint8Array || e instanceof Uint8ClampedArray || e instanceof Int8Array ||
|
|
1923
|
-
var
|
|
1924
|
-
var
|
|
1925
|
-
|
|
1944
|
+
g || e instanceof Uint8Array || e instanceof Uint8ClampedArray || e instanceof Int8Array || R("Cannot pass non-string to std::string");
|
|
1945
|
+
var m = c && g ? jc(e) : e.length;
|
|
1946
|
+
var l = Lc(4 + m + 1), n = l + 4;
|
|
1947
|
+
P[l >> 2] = m;
|
|
1926
1948
|
if (c && g) {
|
|
1927
|
-
|
|
1949
|
+
ic(e, L, n, m + 1);
|
|
1928
1950
|
} else {
|
|
1929
1951
|
if (g) {
|
|
1930
|
-
for (g = 0; g <
|
|
1931
|
-
var
|
|
1932
|
-
255 <
|
|
1933
|
-
|
|
1952
|
+
for (g = 0; g < m; ++g) {
|
|
1953
|
+
var k = e.charCodeAt(g);
|
|
1954
|
+
255 < k && (mb(n), R("String has UTF-16 code units that do not fit in 8 bits"));
|
|
1955
|
+
L[n + g] = k;
|
|
1934
1956
|
}
|
|
1935
1957
|
} else {
|
|
1936
|
-
for (g = 0; g <
|
|
1937
|
-
|
|
1958
|
+
for (g = 0; g < m; ++g) {
|
|
1959
|
+
L[n + g] = e[g];
|
|
1938
1960
|
}
|
|
1939
1961
|
}
|
|
1940
1962
|
}
|
|
1941
|
-
null !== d && d.push(
|
|
1942
|
-
return
|
|
1943
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
1944
|
-
|
|
1963
|
+
null !== d && d.push(mb, l);
|
|
1964
|
+
return l;
|
|
1965
|
+
}, argPackAdvance:8, readValueFromPointer:Fb, v:function(d) {
|
|
1966
|
+
mb(d);
|
|
1945
1967
|
},});
|
|
1946
1968
|
}, _embind_register_std_wstring:function(b, a, c) {
|
|
1947
1969
|
c = U(c);
|
|
1948
1970
|
if (2 === a) {
|
|
1949
|
-
var d =
|
|
1950
|
-
var e =
|
|
1951
|
-
var g =
|
|
1952
|
-
var
|
|
1953
|
-
var
|
|
1971
|
+
var d = nc;
|
|
1972
|
+
var e = pc;
|
|
1973
|
+
var g = qc;
|
|
1974
|
+
var m = () => Da;
|
|
1975
|
+
var l = 1;
|
|
1954
1976
|
} else {
|
|
1955
|
-
4 === a && (d =
|
|
1977
|
+
4 === a && (d = rc, e = sc, g = tc, m = () => P, l = 2);
|
|
1956
1978
|
}
|
|
1957
|
-
|
|
1958
|
-
for (var
|
|
1959
|
-
var r =
|
|
1960
|
-
if (f ==
|
|
1979
|
+
Ib(b, {name:c, fromWireType:function(n) {
|
|
1980
|
+
for (var k = P[n >> 2], t = m(), v, x = n + 4, f = 0; f <= k; ++f) {
|
|
1981
|
+
var r = n + 4 + f * a;
|
|
1982
|
+
if (f == k || 0 == t[r >> l]) {
|
|
1961
1983
|
x = d(x, r - x), void 0 === v ? v = x : (v += String.fromCharCode(0), v += x), x = r + a;
|
|
1962
1984
|
}
|
|
1963
1985
|
}
|
|
1964
|
-
|
|
1986
|
+
mb(n);
|
|
1965
1987
|
return v;
|
|
1966
|
-
}, toWireType:function(
|
|
1967
|
-
"string" != typeof
|
|
1968
|
-
var t = g(
|
|
1969
|
-
|
|
1970
|
-
e(
|
|
1971
|
-
null !==
|
|
1988
|
+
}, toWireType:function(n, k) {
|
|
1989
|
+
"string" != typeof k && R(`Cannot pass non-string to C++ string type ${c}`);
|
|
1990
|
+
var t = g(k), v = Lc(4 + t + a);
|
|
1991
|
+
P[v >> 2] = t >> l;
|
|
1992
|
+
e(k, v + 4, t + a);
|
|
1993
|
+
null !== n && n.push(mb, v);
|
|
1972
1994
|
return v;
|
|
1973
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
1974
|
-
|
|
1995
|
+
}, argPackAdvance:8, readValueFromPointer:Fb, v:function(n) {
|
|
1996
|
+
mb(n);
|
|
1975
1997
|
},});
|
|
1976
1998
|
}, _embind_register_value_object:function(b, a, c, d, e, g) {
|
|
1977
|
-
|
|
1978
|
-
}, _embind_register_value_object_field:function(b, a, c, d, e, g,
|
|
1979
|
-
|
|
1999
|
+
Db[b] = {name:U(a), fa:Z(c, d), H:Z(e, g), sa:[],};
|
|
2000
|
+
}, _embind_register_value_object_field:function(b, a, c, d, e, g, m, l, n, k) {
|
|
2001
|
+
Db[b].sa.push({Sa:U(a), Ya:c, Wa:Z(d, e), Xa:g, lb:m, kb:Z(l, n), mb:k,});
|
|
1980
2002
|
}, _embind_register_void:function(b, a) {
|
|
1981
2003
|
a = U(a);
|
|
1982
|
-
|
|
2004
|
+
Ib(b, {cb:!0, name:a, argPackAdvance:0, fromWireType:function() {
|
|
1983
2005
|
}, toWireType:function() {
|
|
1984
2006
|
},});
|
|
1985
2007
|
}, _emval_as:function(b, a, c) {
|
|
1986
|
-
b =
|
|
1987
|
-
a =
|
|
1988
|
-
var d = [], e =
|
|
1989
|
-
|
|
2008
|
+
b = S(b);
|
|
2009
|
+
a = nb(a, "emval::as");
|
|
2010
|
+
var d = [], e = ab(d);
|
|
2011
|
+
P[c >> 2] = e;
|
|
1990
2012
|
return a.toWireType(d, b);
|
|
1991
2013
|
}, _emval_call_method:function(b, a, c, d, e) {
|
|
1992
|
-
b =
|
|
1993
|
-
a =
|
|
1994
|
-
c =
|
|
2014
|
+
b = wc[b];
|
|
2015
|
+
a = S(a);
|
|
2016
|
+
c = vc(c);
|
|
1995
2017
|
var g = [];
|
|
1996
|
-
|
|
2018
|
+
P[d >> 2] = ab(g);
|
|
1997
2019
|
return b(a, c, g, e);
|
|
1998
2020
|
}, _emval_call_void_method:function(b, a, c, d) {
|
|
1999
|
-
b =
|
|
2000
|
-
a =
|
|
2001
|
-
c =
|
|
2021
|
+
b = wc[b];
|
|
2022
|
+
a = S(a);
|
|
2023
|
+
c = vc(c);
|
|
2002
2024
|
b(a, c, null, d);
|
|
2003
|
-
}, _emval_decref
|
|
2004
|
-
var c =
|
|
2005
|
-
a = d.name + "_$" + c.slice(1).map(function(
|
|
2006
|
-
return
|
|
2025
|
+
}, _emval_decref:ec, _emval_get_method_caller:function(b, a) {
|
|
2026
|
+
var c = yc(b, a), d = c[0];
|
|
2027
|
+
a = d.name + "_$" + c.slice(1).map(function(m) {
|
|
2028
|
+
return m.name;
|
|
2007
2029
|
}).join("_") + "$";
|
|
2008
|
-
var e =
|
|
2030
|
+
var e = zc[a];
|
|
2009
2031
|
if (void 0 !== e) {
|
|
2010
2032
|
return e;
|
|
2011
2033
|
}
|
|
2012
2034
|
var g = Array(b - 1);
|
|
2013
|
-
e =
|
|
2035
|
+
e = xc((m, l, n, k) => {
|
|
2014
2036
|
for (var t = 0, v = 0; v < b - 1; ++v) {
|
|
2015
|
-
g[v] = c[v + 1].readValueFromPointer(
|
|
2037
|
+
g[v] = c[v + 1].readValueFromPointer(k + t), t += c[v + 1].argPackAdvance;
|
|
2016
2038
|
}
|
|
2017
|
-
|
|
2039
|
+
m = m[l].apply(m, g);
|
|
2018
2040
|
for (v = 0; v < b - 1; ++v) {
|
|
2019
2041
|
c[v + 1].Na && c[v + 1].Na(g[v]);
|
|
2020
2042
|
}
|
|
2021
2043
|
if (!d.cb) {
|
|
2022
|
-
return d.toWireType(
|
|
2044
|
+
return d.toWireType(n, m);
|
|
2023
2045
|
}
|
|
2024
2046
|
});
|
|
2025
|
-
return
|
|
2047
|
+
return zc[a] = e;
|
|
2026
2048
|
}, _emval_get_module_property:function(b) {
|
|
2027
|
-
b =
|
|
2028
|
-
return
|
|
2049
|
+
b = vc(b);
|
|
2050
|
+
return ab(h[b]);
|
|
2029
2051
|
}, _emval_get_property:function(b, a) {
|
|
2030
|
-
b =
|
|
2031
|
-
a =
|
|
2032
|
-
return
|
|
2052
|
+
b = S(b);
|
|
2053
|
+
a = S(a);
|
|
2054
|
+
return ab(b[a]);
|
|
2033
2055
|
}, _emval_incref:function(b) {
|
|
2034
|
-
4 < b && (
|
|
2056
|
+
4 < b && (Q.get(b).Aa += 1);
|
|
2035
2057
|
}, _emval_new_cstring:function(b) {
|
|
2036
|
-
return
|
|
2058
|
+
return ab(vc(b));
|
|
2037
2059
|
}, _emval_new_object:function() {
|
|
2038
|
-
return
|
|
2060
|
+
return ab({});
|
|
2039
2061
|
}, _emval_run_destructors:function(b) {
|
|
2040
|
-
var a =
|
|
2041
|
-
|
|
2042
|
-
|
|
2062
|
+
var a = S(b);
|
|
2063
|
+
Eb(a);
|
|
2064
|
+
ec(b);
|
|
2043
2065
|
}, _emval_set_property:function(b, a, c) {
|
|
2044
|
-
b =
|
|
2045
|
-
a =
|
|
2046
|
-
c =
|
|
2066
|
+
b = S(b);
|
|
2067
|
+
a = S(a);
|
|
2068
|
+
c = S(c);
|
|
2047
2069
|
b[a] = c;
|
|
2048
2070
|
}, _emval_take_value:function(b, a) {
|
|
2049
|
-
b =
|
|
2071
|
+
b = nb(b, "_emval_take_value");
|
|
2050
2072
|
b = b.readValueFromPointer(a);
|
|
2051
|
-
return
|
|
2073
|
+
return ab(b);
|
|
2052
2074
|
}, abort:() => {
|
|
2053
|
-
|
|
2054
|
-
}, emscripten_memcpy_big:(b, a, c) =>
|
|
2055
|
-
var a =
|
|
2075
|
+
ya("");
|
|
2076
|
+
}, emscripten_memcpy_big:(b, a, c) => L.copyWithin(b, a, a + c), emscripten_resize_heap:b => {
|
|
2077
|
+
var a = L.length;
|
|
2056
2078
|
b >>>= 0;
|
|
2057
2079
|
if (2147483648 < b) {
|
|
2058
2080
|
return !1;
|
|
@@ -2063,13 +2085,13 @@ var Hc = {_embind_create_inheriting_constructor:function(b, a, c) {
|
|
|
2063
2085
|
var e = Math;
|
|
2064
2086
|
d = Math.max(b, d);
|
|
2065
2087
|
a: {
|
|
2066
|
-
e = e.min.call(e, 2147483648, d + (65536 - d % 65536) % 65536) -
|
|
2088
|
+
e = e.min.call(e, 2147483648, d + (65536 - d % 65536) % 65536) - za.buffer.byteLength + 65535 >>> 16;
|
|
2067
2089
|
try {
|
|
2068
|
-
|
|
2069
|
-
|
|
2090
|
+
za.grow(e);
|
|
2091
|
+
Ga();
|
|
2070
2092
|
var g = 1;
|
|
2071
2093
|
break a;
|
|
2072
|
-
} catch (
|
|
2094
|
+
} catch (m) {
|
|
2073
2095
|
}
|
|
2074
2096
|
g = void 0;
|
|
2075
2097
|
}
|
|
@@ -2080,86 +2102,121 @@ var Hc = {_embind_create_inheriting_constructor:function(b, a, c) {
|
|
|
2080
2102
|
return !1;
|
|
2081
2103
|
}, environ_get:(b, a) => {
|
|
2082
2104
|
var c = 0;
|
|
2083
|
-
|
|
2105
|
+
Cc().forEach(function(d, e) {
|
|
2084
2106
|
var g = a + c;
|
|
2085
|
-
e =
|
|
2107
|
+
e = P[b + 4 * e >> 2] = g;
|
|
2086
2108
|
for (g = 0; g < d.length; ++g) {
|
|
2087
|
-
|
|
2109
|
+
Ba[e++ >> 0] = d.charCodeAt(g);
|
|
2088
2110
|
}
|
|
2089
|
-
|
|
2111
|
+
Ba[e >> 0] = 0;
|
|
2090
2112
|
c += d.length + 1;
|
|
2091
2113
|
});
|
|
2092
2114
|
return 0;
|
|
2093
2115
|
}, environ_sizes_get:(b, a) => {
|
|
2094
|
-
var c =
|
|
2095
|
-
|
|
2116
|
+
var c = Cc();
|
|
2117
|
+
P[b >> 2] = c.length;
|
|
2096
2118
|
var d = 0;
|
|
2097
2119
|
c.forEach(function(e) {
|
|
2098
2120
|
d += e.length + 1;
|
|
2099
2121
|
});
|
|
2100
|
-
|
|
2122
|
+
P[a >> 2] = d;
|
|
2101
2123
|
return 0;
|
|
2102
2124
|
}, fd_close:() => 52, fd_seek:function() {
|
|
2103
2125
|
return 70;
|
|
2104
2126
|
}, fd_write:(b, a, c, d) => {
|
|
2105
2127
|
for (var e = 0, g = 0; g < c; g++) {
|
|
2106
|
-
var
|
|
2128
|
+
var m = P[a >> 2], l = P[a + 4 >> 2];
|
|
2107
2129
|
a += 8;
|
|
2108
|
-
for (var
|
|
2109
|
-
var
|
|
2110
|
-
0 ===
|
|
2130
|
+
for (var n = 0; n < l; n++) {
|
|
2131
|
+
var k = L[m + n], t = Dc[b];
|
|
2132
|
+
0 === k || 10 === k ? ((1 === b ? ta : ua)(lc(t, 0)), t.length = 0) : t.push(k);
|
|
2111
2133
|
}
|
|
2112
|
-
e +=
|
|
2134
|
+
e += l;
|
|
2113
2135
|
}
|
|
2114
|
-
|
|
2136
|
+
P[d >> 2] = e;
|
|
2115
2137
|
return 0;
|
|
2116
|
-
}, strftime_l:(b, a, c, d) =>
|
|
2138
|
+
}, strftime_l:(b, a, c, d) => Ic(b, a, c, d)};
|
|
2117
2139
|
(function() {
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2140
|
+
function b(c) {
|
|
2141
|
+
J = c = c.exports;
|
|
2142
|
+
za = J.memory;
|
|
2143
|
+
Ga();
|
|
2144
|
+
Ha = J.__indirect_function_table;
|
|
2145
|
+
Ja.unshift(J.__wasm_call_ctors);
|
|
2146
|
+
Ma--;
|
|
2147
|
+
h.monitorRunDependencies && h.monitorRunDependencies(Ma);
|
|
2148
|
+
if (0 == Ma && (null !== Na && (clearInterval(Na), Na = null), Oa)) {
|
|
2149
|
+
var d = Oa;
|
|
2150
|
+
Oa = null;
|
|
2151
|
+
d();
|
|
2152
|
+
}
|
|
2153
|
+
return c;
|
|
2154
|
+
}
|
|
2155
|
+
var a = {env:Mc, wasi_snapshot_preview1:Mc,};
|
|
2156
|
+
Ma++;
|
|
2157
|
+
h.monitorRunDependencies && h.monitorRunDependencies(Ma);
|
|
2158
|
+
if (h.instantiateWasm) {
|
|
2159
|
+
try {
|
|
2160
|
+
return h.instantiateWasm(a, b);
|
|
2161
|
+
} catch (c) {
|
|
2162
|
+
ua("Module.instantiateWasm callback failed with error: " + c), ba(c);
|
|
2163
|
+
}
|
|
2164
|
+
}
|
|
2165
|
+
Va(a, function(c) {
|
|
2166
|
+
b(c.instance);
|
|
2128
2167
|
}).catch(ba);
|
|
2129
2168
|
return {};
|
|
2130
2169
|
})();
|
|
2131
|
-
var
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
var
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2170
|
+
var mb = b => (mb = J.free)(b), Lc = b => (Lc = J.malloc)(b), lb = b => (lb = J.__getTypeName)(b);
|
|
2171
|
+
h.__embind_initialize_bindings = () => (h.__embind_initialize_bindings = J._embind_initialize_bindings)();
|
|
2172
|
+
h.dynCall_jiji = (b, a, c, d, e) => (h.dynCall_jiji = J.dynCall_jiji)(b, a, c, d, e);
|
|
2173
|
+
h.dynCall_viijii = (b, a, c, d, e, g, m) => (h.dynCall_viijii = J.dynCall_viijii)(b, a, c, d, e, g, m);
|
|
2174
|
+
h.dynCall_iiiiij = (b, a, c, d, e, g, m) => (h.dynCall_iiiiij = J.dynCall_iiiiij)(b, a, c, d, e, g, m);
|
|
2175
|
+
h.dynCall_iiiiijj = (b, a, c, d, e, g, m, l, n) => (h.dynCall_iiiiijj = J.dynCall_iiiiijj)(b, a, c, d, e, g, m, l, n);
|
|
2176
|
+
h.dynCall_iiiiiijj = (b, a, c, d, e, g, m, l, n, k) => (h.dynCall_iiiiiijj = J.dynCall_iiiiiijj)(b, a, c, d, e, g, m, l, n, k);
|
|
2177
|
+
var Nc;
|
|
2178
|
+
Oa = function Oc() {
|
|
2179
|
+
Nc || Pc();
|
|
2180
|
+
Nc || (Oa = Oc);
|
|
2142
2181
|
};
|
|
2143
|
-
function
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
Ia.shift()(p);
|
|
2182
|
+
function Pc() {
|
|
2183
|
+
function b() {
|
|
2184
|
+
if (!Nc && (Nc = !0, h.calledRun = !0, !Aa)) {
|
|
2185
|
+
Wa(Ja);
|
|
2186
|
+
aa(h);
|
|
2187
|
+
if (h.onRuntimeInitialized) {
|
|
2188
|
+
h.onRuntimeInitialized();
|
|
2151
2189
|
}
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2190
|
+
if (h.postRun) {
|
|
2191
|
+
for ("function" == typeof h.postRun && (h.postRun = [h.postRun]); h.postRun.length;) {
|
|
2192
|
+
var a = h.postRun.shift();
|
|
2193
|
+
Ka.unshift(a);
|
|
2194
|
+
}
|
|
2155
2195
|
}
|
|
2156
|
-
|
|
2157
|
-
|
|
2196
|
+
Wa(Ka);
|
|
2197
|
+
}
|
|
2198
|
+
}
|
|
2199
|
+
if (!(0 < Ma)) {
|
|
2200
|
+
if (h.preRun) {
|
|
2201
|
+
for ("function" == typeof h.preRun && (h.preRun = [h.preRun]); h.preRun.length;) {
|
|
2202
|
+
La();
|
|
2158
2203
|
}
|
|
2159
2204
|
}
|
|
2205
|
+
Wa(Ia);
|
|
2206
|
+
0 < Ma || (h.setStatus ? (h.setStatus("Running..."), setTimeout(function() {
|
|
2207
|
+
setTimeout(function() {
|
|
2208
|
+
h.setStatus("");
|
|
2209
|
+
}, 1);
|
|
2210
|
+
b();
|
|
2211
|
+
}, 1)) : b());
|
|
2212
|
+
}
|
|
2213
|
+
}
|
|
2214
|
+
if (h.preInit) {
|
|
2215
|
+
for ("function" == typeof h.preInit && (h.preInit = [h.preInit]); 0 < h.preInit.length;) {
|
|
2216
|
+
h.preInit.pop()();
|
|
2160
2217
|
}
|
|
2161
2218
|
}
|
|
2162
|
-
|
|
2219
|
+
Pc();
|
|
2163
2220
|
|
|
2164
2221
|
|
|
2165
2222
|
|